window.isMobile=!1;if(/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)){window.isMobile=!0}
function t_throttle(fn,threshhold,scope){var last;var deferTimer;threshhold||(threshhold=250);return function(){var context=scope||this;var now=+new Date();var args=arguments;if(last&&now<last+threshhold){clearTimeout(deferTimer);deferTimer=setTimeout(function(){last=now;fn.apply(context,args)},threshhold)}else{last=now;fn.apply(context,args)}}}
function t446_init(recid){var rec=document.getElementById('rec'+recid);if(!rec)return;var linkItems=rec.querySelectorAll('.t-menu__link-item');var subMenuLinks=rec.querySelectorAll('.t-menusub__link-item');var menu=rec.querySelector('.t446');Array.prototype.forEach.call(linkItems,function(link){link.addEventListener('click',function(){if(link.classList.contains('t-menusub__target-link')||link.classList.contains('tooltipstered')||link.classList.contains('t794__tm-link')||link.classList.contains('t966__tm-link')||link.classList.contains('t978__tm-link'))return;t446_hideMenuOnMobile(link,rec)})});Array.prototype.forEach.call(subMenuLinks,function(subMenuLink){subMenuLink.addEventListener('click',function(){t446_hideMenuOnMobile(subMenuLink,rec)})})}
function t446_setLogoPadding(recid){var rec=document.getElementById('rec'+recid);if(!rec||window.innerWidth<=980)return;var menu=rec.querySelector('.t446');var logo=menu?menu.querySelector('.t446__logowrapper'):null;var logoWidth=logo?logo.offsetWidth:0;var leftWrapper=menu?menu.querySelector('.t446__leftwrapper'):null;var rightWrapper=menu?menu.querySelector('.t446__rightwrapper'):null;if(leftWrapper)leftWrapper.style.paddingRight=((logoWidth/2)+50)+'px';if(rightWrapper)rightWrapper.style.paddingLeft=((logoWidth/2)+50)+'px'}
function t446_checkOverflow(recid,menuheight){var rec=document.getElementById('rec'+recid);var menu=rec?rec.querySelector('.t446'):null;if(!menu)return;var rightWrapper=menu.querySelector('.t446__rightwrapper');var rightMenuWrap=rightWrapper?rightWrapper.querySelector('.t446__rightmenuwrapper'):null;var additionalWrap=rightWrapper?rightWrapper.querySelector('.t446__additionalwrapper'):null;var burgerWrapOverflow=rightWrapper?rightWrapper.querySelector('.t446__burgerwrapper_overflow'):null;var burgerWrap=rightWrapper?rightWrapper.querySelector('.t446__burgerwrapper_withoutoverflow'):null;var rightWrapperWidth=t446_getPureWidth(rightWrapper);var rightMenuWrapWidth=rightMenuWrap?rightMenuWrap.offsetWidth:0;var additionalWrapWidth=additionalWrap?additionalWrap.offsetWidth:0;var additionalWrapFloating=additionalWrap?additionalWrap.style.float||window.getComputedStyle(additionalWrap).float:'';var blockHeight=menuheight>0?menuheight:80;if(window.innerWidth>980&&rightMenuWrapWidth+additionalWrapWidth>rightWrapperWidth){menu.style.height=(blockHeight*2)+'px';if(additionalWrap)additionalWrap.style.float='right';if(burgerWrapOverflow)burgerWrapOverflow.style.display='table-cell';if(burgerWrap)burgerWrap.style.display='none'}else{if(menu.offsetHeight>blockHeight)menu.style.height=blockHeight+'px';if(additionalWrap&&additionalWrapFloating==='right')additionalWrap.style.float='none';if(burgerWrapOverflow)burgerWrapOverflow.style.display='none';if(burgerWrap)burgerWrap.style.display='table-cell'}}
function t446_getPureWidth(el){if(!el)return 0;var elWidth=el.offsetWidth;var elPaddingLeft=parseInt(window.getComputedStyle(el).paddingLeft,10)||0;var elPaddingRight=parseInt(window.getComputedStyle(el).paddingRight,10)||0;var width=elWidth-(elPaddingLeft+elPaddingRight);return width>0?width:0}
function t446_createMobileMenu(recid){var rec=document.getElementById('rec'+recid);if(!rec)return;t_onFuncLoad('t_menu__createMobileMenu',function(){t_menu__createMobileMenu(recid,'.t446')});var linkItems=rec.querySelectorAll('.t-menu__link-item');var submenuClassList=['t978__menu-link_hook','t978__tm-link','t966__tm-link','t794__tm-link','t-menusub__target-link'];Array.prototype.forEach.call(linkItems,function(link){link.addEventListener('click',function(){var isSubmenuHook=submenuClassList.some(function(submenuClass){return link.classList.contains(submenuClass)});if(isSubmenuHook)return;t446_hideMenuOnMobile(link,rec)})});var wrappersLinks=rec.querySelectorAll('.t446__logowrapper2 a, .t446__right_buttons_wrap a');Array.prototype.forEach.call(wrappersLinks,function(link){link.addEventListener('click',function(){t446_hideMenuOnMobile(link,rec)})})}
function t446_hideMenuOnMobile(link,rec){if(!rec||!link||window.innerWidth>=980)return!1;var url=link.href?link.href.trim():'';var menu=rec.querySelector('.t446');var burger=rec.querySelector('.tmenu-mobile');if(url&&link.matches('[href*="#"]')){if(burger)burger.classList.remove('tmenu-mobile_opened');if(menu){if(menu.classList.contains('t446__positionabsolute')||(burger&&!burger.classList.contains('.tmenu-mobile_positionfixed'))){menu.style.display='none';menu.style.opacity='0'}else{t_onFuncLoad('t_menu__FadeOut',function(){t_menu__FadeOut(menu,300)})}}}}
function t602_init(recid){var rec=document.getElementById('rec'+recid);if(!rec)return;var indicator=rec.querySelector('.t602__indicator');if(!indicator)return;window.addEventListener('scroll',t_throttle(function(){var documentHeight=document.body.clientHeight;var windowScrollTop=document.documentElement.scrollTop;var windowHeight=window.innerHeight;var scrollPercent=(windowScrollTop/(documentHeight-windowHeight))*100;indicator.style.width=scrollPercent+'%'},100))}
function t826_init(recid){var rec=document.querySelector('#rec'+recid);if(!rec)return;var wrapper=rec.querySelector('.t826');t826_startAnimation(recid);if(!window.isMobile){window.addEventListener('resize',t_throttle(function(){t826_prepareAnimation(recid)}))}
if(window.isMobile){window.addEventListener('orientationchange',function(){t826_prepareAnimation(recid)})}
wrapper.addEventListener('displayChanged',function(){t826_prepareAnimation(recid)})}
function t826_prepareAnimation(recid){var galaxyList=document.querySelectorAll('div:not(.t826__animation) > div[data-galaxy-id="'+recid+'"]');Array.prototype.forEach.call(galaxyList,function(galaxy){if(galaxy&&galaxy.parentNode!==null){galaxy.parentNode.removeChild(galaxy)}});t826_startAnimation(recid)}
function t826_startAnimation(recid){var rec=document.querySelector('#rec'+recid);if(!rec)return;var wrapper=rec.querySelector('.t826');if(!wrapper)return;var galaxy=rec.querySelector('.t826__galaxy');if(!galaxy)return;var allRecords=document.querySelector('#allrecords');var recIds=wrapper.getAttribute('data-galaxy-rec-ids');var wholePage=wrapper.getAttribute('data-galaxy-whole-page');var verticalFlip=wrapper.getAttribute('data-galaxy-vflip');var color=wrapper.getAttribute('data-element-color');var opacity=wrapper.getAttribute('data-element-opacity');var options={'color':(!color?'#fff':color),'opacity':(!opacity?1:opacity.replace(/^0?.([0-9])0?$/g,'.$1'))};if(options.color.indexOf('#')!==-1){var color=options.color;if(color[1]===color[2]&&color[3]===color[4]&&color[5]===color[6]){options.color='#'+color[1]+color[3]+color[5]}}
if(verticalFlip==='yes'){galaxy.classList.add('t826__galaxy_flip')}
if(allRecords.getAttribute('data-tilda-mode')==='edit'){var wrapper=rec.querySelector('.t826__demo');wrapper.insertAdjacentElement('beforeend',galaxy);wrapper.style.position='relative';t826_runningAnimation(wrapper,options);return}
if(recIds){recIds=recIds.split(',');recIds.forEach(function(rec){var currentRec=document.querySelector('#rec'+rec);var currentGalaxy=galaxy.cloneNode(!0);currentGalaxy.style.position='absolute';t826_addAnimation(currentRec,currentGalaxy,options)})}else{var nextBlock;if(rec.nextElementSibling&&rec.nextElementSibling.querySelector('.t-cover')){nextBlock=rec.nextElementSibling}
var prevBlock;if(rec.previousElementSibling&&rec.previousElementSibling.querySelector('.t-cover')){prevBlock=rec.previousElementSibling}
var currentGalaxy=galaxy.cloneNode(!0);if(currentGalaxy)currentGalaxy.style.position='absolute';if(nextBlock){t826_addAnimation(nextBlock,currentGalaxy,options)}else if(prevBlock){t826_addAnimation(prevBlock,currentGalaxy,options)}}
if(wholePage==='yes'){var animationWrapper=rec.querySelector('.t826__animation');animationWrapper.style.display='block';galaxy.style.position='fixed';t826_addAnimation(allRecords,galaxy,options)}}
function t826_addAnimation(currentRec,galaxy,options){if(!currentRec)return;currentRec.setAttribute('data-animationappear','off');currentRec.classList.remove('r_hidden');var currentRecType=currentRec.getAttribute('data-record-type');var currentRecId=currentRec.getAttribute('id');if(currentRecType==='396'){var filter=currentRec.querySelector('.t396__filter');filter.insertAdjacentElement('afterend',galaxy);galaxy.style.zIndex='0'}else if(currentRecId==='allrecords'){galaxy.style.zIndex='-1'}else{var coverWrapper=currentRec.querySelector('.t-cover');if(coverWrapper){var filter=coverWrapper.querySelector('.t-cover__filter');filter.insertAdjacentElement('afterend',galaxy);galaxy.style.zIndex='0'}else{var wrapper=currentRec;if(wrapper.length===0){return!0}
wrapper.appendChild(galaxy);wrapper.style.position='relative';var excludesAboutBlocks=[480,478,477];var recordType=wrapper.getAttribute('data-record-type');var isBlockExclude=excludesAboutBlocks.some(function(block){return Number(recordType)===block});var firstChildDiv;if(isBlockExclude){firstChildDiv=wrapper.querySelector('.t'+recordType)}else{firstChildDiv=wrapper.querySelector('div')}
firstChildDiv.style.position='relative';firstChildDiv.style.zIndex='1';if(currentRecType=='734'||currentRecType=='675'||currentRecType=='215'){return}
var excludesBlocks=[754,776,778,786,770];var feedsBlocks=[924];var firstChildDiv=wrapper.querySelector('div');if(excludesBlocks.indexOf(parseInt(currentRecType,10))!==-1){firstChildDiv.style.zIndex='';galaxy.style.zIndex='-1'}else if(feedsBlocks.indexOf(parseInt(currentRecType,10))!==-1){firstChildDiv.style.zIndex='2000'}else{galaxy.style.zIndex='0'}}}
t826_runningAnimation(currentRec,options)}
function t826_runningAnimation(currentRec,options){var starsSetting;if(window.isMobile){starsSetting=[{name:'near',count:25,speed:50},{name:'mid',count:50,speed:100},{name:'far',count:175,speed:150}]}else{starsSetting=[{name:'near',count:100,speed:50},{name:'mid',count:200,speed:100},{name:'far',count:700,speed:150}]}
var currentRecId=currentRec.getAttribute('id');var maxHeight=currentRec.offsetHeight;var maxWidth=currentRec.offsetWidth;if(typeof currentRecId==='undefined'){currentRecId='demo'}else if(currentRecId==='allrecords'){maxHeight=window.innerHeight;maxWidth=window.innerWidth}
var animationName='t826__galaxy-'+currentRecId;var animation=currentRec.querySelector('#'+animationName);if(animation&&animation.parentNode!==null){animation.parentNode.removeChild(animation)}
var newStyle=document.createElement('style');newStyle.id=animationName;newStyle.innerHTML='@keyframes '+animationName+'{'+'to{'+'transform:translateY('+(-maxHeight)+'px)'+'}'+'}';starsSetting.forEach(function(value,index,array){var x=Math.round(Math.random()*maxHeight);var y=Math.round(Math.random()*maxWidth);var dot='';if(options.color.indexOf('#')!==-1){dot=x+'px '+y+'px'}else if(options.opacity<1){dot=x+'px '+y+'px rgba('+options.color+','+options.opacity+')'}else{dot=x+'px '+y+'px rgb('+options.color+')'}
var countDots=Math.round(array[index].count*maxHeight/2000);for(var i=0;i<countDots;i++){var x=Math.round(Math.random()*maxWidth);var y=Math.round(Math.random()*maxHeight);if(options.color.indexOf('#')!==-1){dot+=', '+x+'px '+y+'px';dot+=', '+x+'px '+(y+maxHeight)+'px'}else if(options.opacity<1){dot+=', '+x+'px '+y+'px rgba('+options.color+','+options.opacity+')';dot+=', '+x+'px '+(y+maxHeight)+'px rgba('+options.color+','+options.opacity+')'}else{dot+=', '+x+'px '+y+'px rgb('+options.color+')';dot+=', '+x+'px '+(y+maxHeight)+'px rgb('+options.color+')'}}
var animationDuration=Math.round(array[index].speed*maxHeight/2000);var className='t826__galaxy-'+array[index].name+'-'+currentRecId;newStyle.innerHTML+='.'+className+':after, .'+className+'{'+'box-shadow:'+dot+';'+'animation-duration:'+animationDuration+'s;'+'animation-name:'+animationName+';'+(options.color.indexOf('#')!==-1?'color:'+options.color+';':'')+(options.color.indexOf('#')!==-1&&options.opacity<1?'opacity:'+options.opacity:'')+'}'+'.'+className+':after{'+"content:' ';"+'position:absolute;'+'top:'+maxHeight+'px'+'}';var galaxies=currentRec.querySelectorAll('.t826__galaxy > .t826__galaxy-wrapper > .t826__galaxy-'+array[index].name);Array.prototype.forEach.call(galaxies,function(galaxy){galaxy.classList.add(className)})});currentRec.insertAdjacentElement('afterbegin',newStyle);var galaxyWrappers=currentRec.querySelectorAll('.t826__galaxy > .t826__galaxy-wrapper');Array.prototype.forEach.call(galaxyWrappers,function(galaxy){galaxy.style.animationName='t826__galaxy-fadeIn'})}
function t898_init(recId){var rec=document.getElementById('rec'+recId);if(!rec)return;var container=rec.querySelector('.t898');if(!container)return;rec.setAttribute('data-animationappear','off');rec.style.opacity=1;var whatsApp=rec.querySelector('.t898__icon-whatsapp_wrapper');if(whatsApp){var whatsAppHref=whatsApp.getAttribute('href');if(whatsAppHref&&(whatsAppHref.indexOf('whatsapp://')>-1||whatsAppHref.indexOf('wa.me')>-1)){t898_removeExtraSymbolsFromWhatsApp(whatsApp,whatsAppHref)}}
if(window.lazy==='y'||document.getElementById('allrecords').getAttribute('data-tilda-lazy')==='yes'){t_onFuncLoad('t_lazyload_update',function(){t_lazyload_update()})}}
function t898_removeExtraSymbolsFromWhatsApp(whatsApp,whatsAppHref){if(whatsAppHref&&whatsAppHref.indexOf('?text=')!==-1){var whatsAppHrefArr=whatsAppHref.split('?text=');whatsAppHrefArr[0]=whatsAppHrefArr[0].replace(/[\(\)+-]/g,'');whatsAppHref=whatsAppHrefArr[0]+'?text='+whatsAppHrefArr[1]}else{whatsAppHref=whatsAppHref.replace(/[\(\)+-]/,'')}
whatsApp.setAttribute('href',whatsAppHref)}
function t734_init(recid){var rec=document.getElementById('rec'+recid);if(!rec)return;var coverBlock=document.querySelector('.t830');if(coverBlock){var slidesWrapper=rec.querySelector('.t-slds__items-wrapper');if(slidesWrapper&&slidesWrapper.classList.contains('t-slds_animated-none')){t_onFuncLoad('t_sldsInit',function(){t_sldsInit(recid)})}else{setTimeout(function(){t_onFuncLoad('t_sldsInit',function(){t_sldsInit(recid)})},500)}}else{t_onFuncLoad('t_sldsInit',function(){t_sldsInit(recid)})}
var currentCoverBlock=rec.querySelector('.t734');if(currentCoverBlock){currentCoverBlock.addEventListener('displayChanged',function(){t_onFuncLoad('t_slds_updateSlider',function(){t_slds_updateSlider(recid)})})}}
function t819_init(recid){var rec=document.querySelector('#rec'+recid);if(!rec)return;var currentMode=document.querySelector('.t-records').getAttribute('data-tilda-mode');var tabs=rec.querySelectorAll('.t819__tab');var select=rec.querySelector('.t819__select');var content=rec.querySelectorAll('.t819__content');if(!tabs.length)return;if(!content.length)return;if(currentMode!=='edit'&&currentMode!=='preview'){t819_scrollToTabs(recid);window.onload=function(){t819_scrollToTabs(recid)}}
t819_showTabByUrl(recid,tabs,content,select);t819_showTab(recid,tabs,content,currentMode);t819_showTabMobile(recid,select,content,currentMode)}
function t819_showTab(recid,tabs,content,currentMode){var rec=document.querySelector('#rec'+recid);if(!rec)return;Array.prototype.forEach.call(tabs,function(tabItem){tabItem.addEventListener('click',function(event){var tabNumber=this.getAttribute('data-tab-number');rec.querySelector('.t819__wrapper').setAttribute('data-tab-current',tabNumber);Array.prototype.forEach.call(tabs,function(tabItem){tabItem.classList.remove('t819__tab_active');var button=tabItem.querySelector('.t817__tab-name');if(button){button.setAttribute('tabindex',-1);button.setAttribute('aria-selected',!1)}});Array.prototype.forEach.call(content,function(contentItem){contentItem.classList.remove('t819__content_active');if(parseInt(contentItem.getAttribute('data-tab-content-number'),10)===parseInt(tabNumber,10)){contentItem.classList.add('t819__content_active')}});tabItem.classList.add('t819__tab_active');var currentButton=tabItem.querySelector('.t817__tab-name');if(currentButton){currentButton.setAttribute('tabindex',0);currentButton.setAttribute('aria-selected',!0)}
t819_changeUrl(recid,currentMode,tabNumber);t819__updateLazyLoad(currentMode);event.preventDefault()});tabItem.addEventListener('keydown',function(event){var currentIndex=Number(rec.querySelector('.t819__wrapper').getAttribute('data-tab-current'));var prevent=!1;switch(event.key){case 'Left':case 'ArrowLeft':currentIndex=currentIndex===1?tabs.length:currentIndex-1;t819_showActiveTabFromKeyboard(recid,tabs,content,currentMode,currentIndex);prevent=!0;break;case 'Right':case 'ArrowRight':currentIndex=currentIndex===tabs.length?1:currentIndex+1;t819_showActiveTabFromKeyboard(recid,tabs,content,currentMode,currentIndex);prevent=!0;break;default:break}
if(prevent){event.stopPropagation();event.preventDefault()}})})}
function t819_showActiveTabFromKeyboard(recid,tabs,content,currentMode,currentIndex){var rec=document.querySelector('#rec'+recid);Array.prototype.forEach.call(tabs,function(tabItem){tabItem.classList.remove('t819__tab_active');var button=tabItem.querySelector('.t819__tab-name');if(button){button.setAttribute('tabindex',-1);button.setAttribute('aria-selected',!1)}});Array.prototype.forEach.call(content,function(contentItem){contentItem.classList.remove('t819__content_active')});var currentTab=rec.querySelector('[data-tab-number="'+currentIndex+'"]');if(!currentTab)return;currentTab.classList.add('t819__tab_active');var currentButton=currentTab.querySelector('.t819__tab-name');if(currentButton){currentButton.setAttribute('tabindex',0);currentButton.setAttribute('aria-selected',!0);currentButton.focus()}
var currentContent=rec.querySelector('[data-tab-content-number="'+currentIndex+'"]');if(currentContent)currentContent.classList.add('t819__content_active');var tabList=rec.querySelector('.t819__wrapper');if(tabList)tabList.setAttribute('data-tab-current',currentIndex);t819_changeUrl(recid,currentMode,currentIndex);t819__updateLazyLoad(currentMode)}
function t819_changeUrl(recid,currentMode,index){t819_removeUrl();if(currentMode!=='edit'&&currentMode!=='preview'){if(typeof history.replaceState==='function'){window.history.replaceState('','',window.location.href+'#!/tab/'+recid+'-'+index)}}}
function t819__updateLazyLoad(currentMode){if(!currentMode){if(window.lazy==='y'||document.querySelector('#allrecords').getAttribute('data-tilda-lazy')==='yes'){t_onFuncLoad('t_lazyload_update',function(){t_lazyload_update()})}}}
function t819_showTabMobile(recid,select,content,currentMode){select.addEventListener('change',function(event){var tabNumberMobile=this.value;Array.prototype.forEach.call(content,function(contentItem){contentItem.classList.remove('t819__content_active');if(parseInt(contentItem.getAttribute('data-tab-content-number'),10)===parseInt(tabNumberMobile,10)){contentItem.classList.add('t819__content_active')}});t819_removeUrl();if(currentMode!=='edit'&&currentMode!=='preview'){if(typeof history.replaceState==='function'){window.history.replaceState('','',window.location.href+'#!/tab/'+recid+'-'+tabNumberMobile)}}
if(!currentMode){if(window.lazy==='y'||document.querySelector('#allrecords').getAttribute('data-tilda-lazy')==='yes'){t_onFuncLoad('t_lazyload_update',function(){t_lazyload_update()})}}
event.preventDefault()})}
function t819_showTabByUrl(recid,tabs,content,select){var rec=document.querySelector('#rec'+recid);var currentUrl=window.location.href;var tabIndexNumber=currentUrl.indexOf(recid+'-');var tabIndex=currentUrl.substring(tabIndexNumber+recid.length+1);if(tabIndexNumber!==-1){Array.prototype.forEach.call(tabs,function(tabItem){if(parseInt(tabItem.getAttribute('data-tab-number'),10)===parseInt(tabIndex,10)){tabItem.classList.add('t819__tab_active');tabItem.querySelector('.t819__tab-name').setAttribute('tabindex',0);tabItem.querySelector('.t819__tab-name').setAttribute('aria-selected',!0)}});Array.prototype.forEach.call(content,function(contentItem){if(parseInt(contentItem.getAttribute('data-tab-content-number'),10)===parseInt(tabIndex,10)){contentItem.classList.add('t819__content_active')}});select.value=tabIndex;rec.querySelector('.t819__wrapper').setAttribute('data-tab-current',tabIndex)}else{tabs[0].classList.add('t819__tab_active');content[0].classList.add('t819__content_active');rec.querySelector('.t819__wrapper').setAttribute('data-tab-current',1);tabs[0].querySelector('.t819__tab-name').setAttribute('tabindex',0);tabs[0].querySelector('.t819__tab-name').setAttribute('aria-selected',!0)}}
function t819_scrollToTabs(recid){var currentUrl=window.location.href;var tabIndexNumber=currentUrl.indexOf('#!/tab/');var tabIndexNumberStart=currentUrl.indexOf('tab/');if(parseInt(tabIndexNumber,10)!==-1){var tabRecord=currentUrl.substring(tabIndexNumberStart+4,tabIndexNumberStart+4+recid.length);if(parseInt(tabRecord,10)===parseInt(recid,10)){var tabBlock=document.querySelector('#rec'+tabRecord).querySelector('.t819');var targetOffset=tabBlock.getBoundingClientRect().top+window.pageYOffset;if(window.innerWidth>960){var target=targetOffset-200}else{var target=targetOffset-100}
t819_scrollToEl(target,300)}}}
function t819_removeUrl(){var currentUrl=window.location.href;var indexToRemove=currentUrl.indexOf('#!/tab/');if(/iPhone|iPad|iPod/i.test(navigator.userAgent)&&indexToRemove<0){indexToRemove=currentUrl.indexOf('%23!/tab/')}
currentUrl=currentUrl.substring(0,indexToRemove);if(parseInt(indexToRemove,10)!==-1){if(typeof history.replaceState==='function'){window.history.replaceState('','',currentUrl)}}}
function t819_scrollToEl(elTopPos,duration){if(elTopPos===window.pageYOffset)return!1;var difference=window.pageYOffset;var cashedDiff=window.pageYOffset;var step=(10*(elTopPos||window.pageYOffset))/duration;var timer=setInterval(function(){if(cashedDiff>elTopPos){difference-=step}else{difference+=step}
window.scrollTo(0,difference);document.body.setAttribute('data-scrollable','true');if(cashedDiff>elTopPos&&window.pageYOffset<=elTopPos){document.body.removeAttribute('data-scrollable');clearInterval(timer)}else if(cashedDiff<=elTopPos&&window.pageYOffset>=elTopPos){document.body.removeAttribute('data-scrollable');clearInterval(timer)}},10);var timer2=setTimeout(function(){clearInterval(timer);document.body.removeAttribute('data-scrollable');clearTimeout(timer2)},duration*2)}
function t582_init(recId){var rec=document.getElementById('rec'+recId);if(!rec)return;var container=rec.querySelector('.t582');if(!container)return;container.classList.remove('t582__beforeready');window.addEventListener('scroll',t_throttle(function(){t582_appearMenu(rec)},200));t582_appearMenu(rec)}
function t582_appearMenu(rec){var container=rec.querySelector('.t582');var appearOffset=container.getAttribute('data-appearoffset');var scrollTop=window.pageYOffset;var windowHeight=window.innerHeight;var body=document.body;var html=document.documentElement;var documentHeight=Math.max(body.scrollHeight,body.offsetHeight,html.clientHeight,html.scrollHeight,html.offsetHeight);if(window.innerWidth<=980&&appearOffset)appearOffset='150';if(!appearOffset)appearOffset='0';if(appearOffset.indexOf('vh')>-1){appearOffset=Math.floor((windowHeight*(parseInt(appearOffset)/100)))}
appearOffset=parseInt(appearOffset,10);if(scrollTop>=appearOffset&&scrollTop+windowHeight+70<=documentHeight){if(getComputedStyle(container,null).visibility==='hidden'){container.style.bottom='-100px';container.style.visibility='visible';t582__fadeIn(container);t582__animate(container,'bottom')}}else{container.style.visibility='hidden';container.style.opacity='0'}}
function t582__animate(element,animate){var duration=400;var start=parseInt(getComputedStyle(element,null)[animate]);var change=0-start;var currentTime=0;var increment=16;function t582__easeInOutCubic(currentTime,start,change){if((currentTime/=duration/2)<1){return change/2*currentTime*currentTime*currentTime+start}else{return change/2*((currentTime-=2)*currentTime*currentTime+2)+start}}
function t582__animateElement(){currentTime+=increment;element.style[animate]=t582__easeInOutCubic(currentTime,start,change)+'px';if(currentTime<duration){setTimeout(t582__animateElement,increment)}else{element.style[animate]='0px'}}
t582__animateElement()}
function t582__fadeIn(el){if(el.style.display==='block')return;var opacity=0;el.style.opacity=opacity;el.style.display='block';var timer=setInterval(function(){el.style.opacity=opacity;opacity+=0.1;if(opacity>=1.0){clearInterval(timer);el.style.display=''}},40)}
function t668_init(recId){var rec=document.getElementById('rec'+recId);if(!rec)return;var container=rec.querySelector('.t668');if(!container)return;var accordion=rec.querySelectorAll('.t668__accordion')[0];var undercuts=rec.querySelectorAll('.ql-undercut');var headers=rec.querySelectorAll('.t668__header');var isLazy=document.getElementById('allrecords').getAttribute('data-tilda-lazy');var content=rec.querySelector('.t668__content');if(!content)return;var accordionScroll;var contentStyle=window.getComputedStyle(content,null);if(!contentStyle&&typeof contentStyle!=='object')return;if(accordion){accordionScroll=accordion.getAttribute('data-scroll-to-expanded');accordion=accordion.getAttribute('data-accordion')}else{accordionScroll='false';accordion='false'}
for(var i=0;i<headers.length;i++){headers[i].addEventListener('click',function(){var element=this;var container=element.nextElementSibling;var triggerButton=element.querySelector('.t668__trigger-button');var activeHeight=0;var isAccordionDown=!1;if(triggerButton){var isExpanded=triggerButton.getAttribute('aria-expanded')==='true';triggerButton.setAttribute('aria-expanded',!isExpanded);container.hidden=isExpanded}
if(element.classList.contains('t668__opened')){element.classList.remove('t668__opened');t668_accordionHide(container)}else{if(accordionScroll==='true'&&accordion==='true'){activeHeight=t668__getOldAction(rec);isAccordionDown=t668__getAccordionPosition(headers,element)}
if(accordion==='true'){t668_accordionAllHide(headers)}
element.classList.add('t668__opened');container.style.display='block';var paddingBottom=Number(contentStyle.paddingBottom.replace('px',''));var height=container.scrollHeight+paddingBottom;container.style.maxHeight='0px';setTimeout(function(){container.style.maxHeight=height+'px';if(accordionScroll==='true'){t668__calcHeight(element,container,activeHeight,isAccordionDown)}},0)}
if(window.lazy==='y'||isLazy==='yes'){t_onFuncLoad('t_lazyload_update',function(){t_lazyload_update()})}})}
for(var i=0;i<undercuts.length;i++){undercuts[i].addEventListener('click',function(event){const target=event.target;const content=target.closest('.t668__content');const textBlock=target.closest('.t668__textwrapper');setTimeout(()=>{content.style.maxHeight=textBlock.scrollHeight+'px'},0)})}}
function t668_accordionAllHide(headers){for(var i=0;i<headers.length;i++){var elementHide=headers[i];elementHide.classList.remove('t668__opened');t668_accordionHide(elementHide.nextElementSibling)}}
function t668_accordionHide(container){if(!container.style.maxHeight)container.style.maxHeight=container.scrollHeight+'px';setTimeout(function(){container.style.maxHeight=0},0)}
function t668__getOldAction(rec){var activeHeader=rec.querySelector('.t668__opened');var activeHeight=0;if(activeHeader)var activeContainer=activeHeader.nextElementSibling;if(activeContainer)activeHeight=activeContainer.offsetHeight;return activeHeight}
function t668__getAccordionPosition(headers,element){var oldIndex;var newIndex;for(var i=0;i<headers.length;i++){var header=headers[i];if(header.classList.contains('t668__opened'))oldIndex=i;if(header===element)newIndex=i}
return oldIndex<newIndex?!0:!1}
function t668__calcHeight(element,container,activeHeight,isAccordionDown){var windowHeight=window.innerHeight;var windowScroll=window.scrollY;var containerHeight=container.scrollHeight;var accordionHeight=containerHeight+element.offsetHeight;var elementTopOffset=element.getBoundingClientRect().top+windowScroll;var target=isAccordionDown?elementTopOffset-activeHeight:elementTopOffset;var accordionBottomLine=target+accordionHeight;var windowBottomLine=windowScroll+windowHeight;if(target<windowScroll||accordionHeight>windowHeight||accordionBottomLine>windowBottomLine){t668__scroll(target)}}
function t668__scroll(target){var duration=400;var start=(window.pageYOffset||document.documentElement.scrollTop)-(document.documentElement.clientTop||0);var change=target-start;var currentTime=0;var increment=16;document.body.setAttribute('data-scrollable','true');function t668__easeInOutCubic(currentTime){if((currentTime/=duration/2)<1){return change/2*currentTime*currentTime*currentTime+start}else{return change/2*((currentTime-=2)*currentTime*currentTime+2)+start}}
function t668__animateScroll(){currentTime+=increment;window.scrollTo(0,t668__easeInOutCubic(currentTime));if(currentTime<duration){setTimeout(t668__animateScroll,increment)}else{document.body.removeAttribute('data-scrollable')}}
t668__animateScroll()}
function t796_init(recId){var rec=document.getElementById('rec'+recId);if(!rec)return;var container=rec.querySelector('.t796');if(!container)return;var windowWidth=window.innerWidth;var screenMin=rec.getAttribute('data-screen-min');var screenMax=rec.getAttribute('data-screen-max');if(screenMin&&windowWidth<parseInt(screenMin,10))return!1;if(screenMax&&windowWidth>parseInt(screenMax,10))return!1;var shapeBorder=rec.querySelector('.t796__shape-border');var shapeRecId=container.getAttribute('data-shape-rec-ids');if(shapeRecId){shapeRecId=shapeRecId.split(',');for(var i=0;i<shapeRecId.length;i++){var shapeId=shapeRecId[i];var currentRec=document.querySelector('#rec'+shapeId);var currentShape=shapeBorder.cloneNode(!0);t796_setColor(rec,currentShape);t796_addDivider(currentRec,currentShape)}}else{var excludesBlocks=[215,316,390,651,702,706,708,750,756,766,825,862,868,943,945,674];var excludes='';for(var i=0;i<excludesBlocks.length;i++){excludes+=':not([data-record-type="'+excludesBlocks[i]+'"])'}
if(excludes.slice(-1)===','){excludes=excludes.slice(0,-1)}
var recs=[];if(shapeBorder.classList.contains('t796__shape-border_top')||shapeBorder.classList.contains('t796__shape-border_top-flip')){recs=t796__nextAll(rec,excludes)}
if(shapeBorder.classList.contains('t796__shape-border_bottom')||shapeBorder.classList.contains('t796__shape-border_bottom-flip')){recs=t796__prevAll(rec,excludes)}
if(recs.length!==0){var currentShape=shapeBorder.cloneNode(!0);t796_setColor(rec,currentShape);t796_addDivider(recs[0],currentShape)}}}
function t796_setColor(rec,shape){if(shape.getAttribute('data-fill-color'))return;var nearestBlock;if(shape.classList.contains('t796__shape-border_bottom')||shape.classList.contains('t796__shape-border_bottom-flip')){var nextBlock=rec.nextElementSibling;if(nextBlock){nearestBlock=nextBlock.matches('.r')?nextBlock:!1}}else{var prevBlock=rec.previousElementSibling;if(prevBlock){nearestBlock=prevBlock.matches('.r')?prevBlock:!1}}
if(!nearestBlock)return;var fillColor=nearestBlock.getAttribute('data-bg-color');if(!fillColor)return;var svg=shape.querySelector('.t796__svg');if(svg)svg.style.fill=fillColor}
function t796_addDivider(rec,shape){if(!rec)return;rec.setAttribute('data-animationappear','off');rec.classList.remove('r_hidden');var cover=rec.querySelector('.t-cover');var zeroBlock=rec.querySelector('.t396');if(cover||zeroBlock){if(cover){var showLayers=cover.querySelectorAll('.t557__snow-layer');if(showLayers.length>0)shape.style.zIndex=1;var coverFilter=cover.querySelector('.t-cover__filter');if(coverFilter)coverFilter.insertAdjacentElement('afterend',shape)}
if(zeroBlock){zeroBlock.insertAdjacentElement('afterend',shape);rec.style.position='relative';var zeroFilter=zeroBlock.querySelector('.t396__filter');if(zeroFilter){var zIndex=1;var zeroArtboard=zeroBlock.querySelector('.t396__artboard');var isVisible=getComputedStyle(zeroArtboard,null).overflow==='visible';if(!isVisible)zIndex=99;shape.style.zIndex=zIndex}}
shape.style.display='block'}else{var wrapper=rec;var recordType=parseInt(rec.getAttribute('data-record-type'));if(!wrapper)return!0;wrapper.appendChild(shape);wrapper.style.position='relative';var excludesBlocks=[125,331,554,746,754,776,778,786,858,896,897,924,915,943,945,951,1004,1025];if(excludesBlocks.indexOf(recordType)===-1){var notZIndexBlocks=[983];var firstDiv=wrapper.querySelector('div');firstDiv.style.position='relative';firstDiv.classList.add('t796_cont-near-shape-divider');if(notZIndexBlocks.indexOf(recordType)!==-1){firstDiv.style.zIndex=0}else{firstDiv.style.zIndex='1'}}
var blocks=[195,246,279,675,694,734,823,938];if(blocks.indexOf(recordType)!==-1){shape.style.zIndex=1}
shape.style.display='block'}}
function t796__nextAll(element,selector){var nextElements=[];var nextElement=element;while(nextElement.nextElementSibling){nextElement=nextElement.nextElementSibling;if(nextElement.id==='t-footer'){var footerElements=nextElement.querySelectorAll('.r');if(footerElements.length!==0){nextElement=footerElements[0];if(nextElement.matches(selector)){nextElements.push(nextElement)}
nextElements=nextElements.concat(t796__nextAll(nextElement,selector))}}else if(nextElement.matches(selector)){nextElements.push(nextElement)}}
return nextElements}
function t796__prevAll(element,selector){var prevElements=[];var prevElement=element;while(prevElement.previousElementSibling){prevElement=prevElement.previousElementSibling;if(prevElement.id==='t-header'){var headerElements=prevElement.querySelectorAll('.r');if(headerElements.length!==0){prevElement=headerElements[headerElements.length-1];if(prevElement.matches(selector)){prevElements.push(prevElement)}
prevElements=prevElements.concat(t796__prevAll(prevElement,selector))}}else if(prevElement.matches(selector)){prevElements.push(prevElement)}}
return prevElements}
if(!Element.prototype.matches){Element.prototype.matches=Element.prototype.matchesSelector||Element.prototype.msMatchesSelector||Element.prototype.mozMatchesSelector||Element.prototype.webkitMatchesSelector||Element.prototype.oMatchesSelector}
function t738_init(recId){t_onFuncLoad('t_card__moveClickOnCard',function(){t_card__moveClickOnCard(recId)});t_onFuncLoad('t_card__addFocusOnTab',function(){t_card__addFocusOnTab(recId)})}
function t738_unifyHeights(recId){var rec=document.getElementById('rec'+recId);if(!rec)return;var container=rec.querySelector('.t738');if(!container)return;var items=rec.querySelectorAll('.t738__item');var maxHeight=0;for(var i=0;i<items.length;i++){items[i].style.height=''}
for(var i=0;i<items.length;i++){var itemPaddingTop=parseInt(getComputedStyle(items[i]).paddingTop)||0;var itemPaddingBottom=parseInt(getComputedStyle(items[i]).paddingBottom)||0;var imgHeight=items[i].querySelector('img').offsetHeight+itemPaddingTop+itemPaddingBottom;if(imgHeight>maxHeight){maxHeight=imgHeight}}
for(var i=0;i<items.length;i++){var itemPaddingTop=parseInt(getComputedStyle(items[i]).paddingTop)||0;var itemPaddingBottom=parseInt(getComputedStyle(items[i]).paddingBottom)||0;items[i].style.height=maxHeight+itemPaddingTop+itemPaddingBottom+'px'}
t_onFuncLoad('t_slds_updateSlider',function(){t_slds_updateSlider(recId)})}
function t505__createPieChart(recId,data1,data2,data3,data4,sectorColor,pieBgColor,bgcolor,blocksNumber,diagramWidth,diameter){var rec=document.getElementById('rec'+recId);if(!rec)return;var container=rec.querySelector('.t505');if(!container)return;var radius;if(diameter>300||diameter==''||diameter<100){if(diameter==''){radius=100;diameter=200}
if(diameter>300){radius=150;diameter=300}
if(diameter<100){radius=50;diameter=100}}else{radius=diameter/2}
if(diagramWidth=='')diagramWidth=10;if(diagramWidth>radius)diagramWidth=10;if(diagramWidth<1)diagramWidth=1;if(window.devicePixelRatio>=2){var oldSize=diameter;radius=radius*2;diameter=diameter*2;diagramWidth=diagramWidth*2}
var correction=+diagramWidth/2;var dataArray=[data1,data2,data3,data4];for(var i=0;i<4;i++){if(dataArray[i]!=''&&blocksNumber>i){var canvas=rec.querySelector('.t505__pie'+(i+1));canvas.setAttribute('width',diameter);canvas.setAttribute('height',diameter);var context=canvas.getContext('2d');if(window.devicePixelRatio>=2){canvas.style.width=oldSize+'px';canvas.style.height=oldSize+'px'}
for(var j=0;j<2;j++){if(j===1&&dataArray[i]==0)continue;if(j==0){context.strokeStyle=pieBgColor;var angle=Math.PI*2;context.lineWidth=diagramWidth-1}else{context.strokeStyle=sectorColor;var angle=Math.PI*2*(dataArray[i]/100);context.lineWidth=diagramWidth}
context.beginPath();context.lineCap='round';context.moveTo(diameter-correction,radius);context.arc(radius,radius,radius-correction,0,angle,!1);context.stroke()}}}}
function t554__init(recid){var rec=document.querySelector('#rec'+recid);if(!rec)return;var wrapperBlock=rec.querySelector('.t554');var mapElement=rec.querySelector('.t554_map');var card=rec.querySelector('.t554__card');var generalWrapper=rec.querySelector('.t554__general-wrapper');if(!wrapperBlock||!mapElement||!card||!generalWrapper)return;t554__calcHeight(mapElement,card,generalWrapper);wrapperBlock.addEventListener('displayChanged',function(){t554__calcHeight(mapElement,card,generalWrapper)})}
function t554__calcHeight(mapElement,card,generalWrapper){generalWrapper.style.paddingBottom=null;var paddingTop=parseInt(mapElement.style.paddingTop,10)||0;var paddingBottom=parseInt(mapElement.style.paddingBottom,10)||0;var mapHeight=mapElement.clientHeight-(paddingTop+paddingBottom);var cardHeight=parseInt(card.offsetHeight,10);var cardTop=parseInt((card.style.top||'').replace('px',''),10);if(generalWrapper&&mapHeight<cardHeight+cardTop&&window.innerWidth>960&&generalWrapper.classList.contains('t554__general-wrapper_padding')){var mapPaddingBottom=cardHeight+cardTop-mapHeight;generalWrapper.style.paddingBottom=mapPaddingBottom+'px'}}
function t830_init(recid){var rec=document.getElementById('rec'+recid);var allRec=document.getElementById('allrecords');if(!allRec||!rec)return;var panel=rec.querySelector('.t830__panel');var overlay=rec.querySelector('.t830m__overlay');var menu=rec.querySelector('.t830m');var submenu=rec.querySelector('.t830m__submenu');var burger=rec.querySelector('.t830__side .t830__burger');var menuItemList=rec.querySelectorAll('.t830m__list-title a');var submenuItemList=rec.querySelectorAll('.t830m__submenu-item a');t830_initMenu(rec,menu,burger,overlay);t830_removePadding(rec,allRec);t830_calcCol(rec,menu,allRec,!1);t_onFuncLoad('t_menu__highlightActiveLinks',function(){t_menu__highlightActiveLinks('.t830m__list a');t830_openSubmenu(rec)});t830_hoverShowMenu(rec,menu,panel,overlay,burger);window.addEventListener('resize',function(){t830_calcCol(rec,menu,allRec,!0);t830_removePadding(rec,allRec);if(menu&&menu.classList.contains('t830m_close')&&window.innerWidth>1499){if(overlay)overlay.classList.remove('t830m__menu_show')}});if(submenu&&submenu.classList.contains('t830m__submenu_close')){t830_toggleMenu(rec)}
if(window.innerWidth>1199){t830_scrollSideMenu(rec)}
var isHashNotEmpty=window.location.hash.length!==0;Array.prototype.forEach.call(menuItemList,function(menuItem){menuItem.addEventListener('click',function(){if(isHashNotEmpty){Array.prototype.forEach.call(menuItemList,function(menuEl){menuEl.classList.remove('t-active')});menuItem.classList.add('t-active')}})});Array.prototype.forEach.call(submenuItemList,function(submenuItem){submenuItem.addEventListener('click',function(){if(isHashNotEmpty){Array.prototype.forEach.call(submenuItemList,function(submenuEl){submenuEl.classList.remove('t-active')});submenuItem.classList.add('t-active')}})});t_onFuncLoad('t_menu__findAnchorLinks',function(){t_menu__findAnchorLinks(recid,'.t830m__list a')})}
function t830_calcCol(rec,menu,allrecords,isResized){if(window.innerWidth<=1199||!menu||window.getComputedStyle(rec).display==='none')return;var label=document.querySelector('.t-tildalabel');if(menu.classList.contains('t830m_open')){if(allrecords)allrecords.classList.add('t830__allrecords_padd-small');if(label)label.classList.add('t830__t-tildalabel_padd-small')}else{if(allrecords)allrecords.classList.add('t830__allrecords_padd');if(label)label.classList.add('t830__t-tildalabel_padd')}
if(isResized)return;var event=document.createEvent('Event');event.initEvent('allRecPaddingInit',!0,!0);if(allrecords)allrecords.dispatchEvent(event)}
function t830_toggleMenu(rec){var titleList=rec.querySelectorAll('.t830m__list-title_toggle');Array.prototype.forEach.call(titleList,function(listTitle){listTitle.addEventListener('click',function(){var submenu=listTitle.nextElementSibling;var textTitle=listTitle.querySelector('.t830m__list-title-text');t830_slideToggle(submenu);if(textTitle)textTitle.classList.toggle('t830m__list-title-text_opacity');if(textTitle)textTitle.classList.toggle('t-menu__link-item')})})}
function t830_openSubmenu(rec){var activeLink=rec.querySelector('.t830m__submenu-item a.t-active');var submenu=activeLink?activeLink.closest('.t830m__submenu'):null;if(submenu)submenu.style.display='block'}
function t830_hoverShowMenu(rec,menu,panel,overlay,burger){if(window.innerWidth<=1199||!panel||!panel.classList.contains('t830__panel_hover'))return;panel.addEventListener('mouseenter',function(){if(menu)menu.classList.add('t830m__menu_show');if(burger)burger.classList.add('t830__burger_open');if(overlay)overlay.classList.add('t830m__overlay_hover')});if(menu){menu.addEventListener('mouseleave',function(){menu.classList.remove('t830m__menu_show');if(burger)burger.classList.remove('t830__burger_open')})}
if(overlay){overlay.addEventListener('mouseenter',function(){overlay.classList.remove('t830m__overlay_hover');if(burger)burger.classList.remove('t830__burger_open');if(menu)menu.classList.remove('t830m__menu_show')})}
var menuLinks=menu.querySelectorAll('a');Array.prototype.forEach.call(menuLinks,function(link){link.addEventListener('click',function(){menu.classList.remove('t830m__menu_show');if(burger)burger.classList.remove('t830__burger_open')})});if(burger){burger.addEventListener('click',function(){if(burger.classList.contains('t830__burger_open')){t830_closeMenu(rec,menu,overlay);burger.classList.remove('t830__burger_open')}else{burger.classList.add('t830__burger_open');if(menu)menu.classList.add('t830m__menu_show');if(overlay)overlay.classList.add('t830m__overlay_hover')}})}}
function t830_showMenu(rec,menu,burger,overlay){var panel=rec.querySelector('.t830__panel');if(typeof t_triggerEvent==='function')t_triggerEvent(document.body,'popupShowed');document.body.classList.add('t830__body_menushowed');if(overlay)overlay.classList.add('t830m__menu_show');if(menu)menu.classList.add('t830m__menu_show');var closedMenuEls=rec.querySelectorAll('.t830m__overlay, .t830m__close, a[href*="#"]');closedMenuEls=Array.prototype.filter.call(closedMenuEls,function(el){return!(el.classList.contains('tooltipstered')||el.classList.contains('t794__tm-link')||el.classList.contains('t978__tm-link')||el.classList.contains('t966__tm-link'))});closedMenuEls.forEach(function(el){el.addEventListener('click',function(){t830_closeMenu(rec,menu,overlay);if(burger)burger.classList.remove('t830__burger_open')})});if(panel)panel.classList.add('t830__panel_close');var popupBg=document.querySelector('.t-site-search-popup__background');document.addEventListener('keydown',function(e){if(e.keyCode!==27||popupBg)return;if(typeof t_triggerEvent==='function')t_triggerEvent(document.body,'popupHidden');document.body.classList.remove('t830__body_menushowed');if(menu)menu.classList.remove('t830m__menu_show');if(burger)burger.classList.remove('t830__burger_open');if(overlay)overlay.classList.remove('t830m__menu_show')})}
function t830_closeMenu(rec,menu,overlay){var panel=rec.querySelector('.t830__panel');if(menu&&menu.classList.contains('t830m_open')&&window.innerWidth<1500){if(panel)panel.classList.remove('t830__panel_close')}
if(typeof t_triggerEvent==='function')t_triggerEvent(document.body,'popupHidden');document.body.classList.remove('t830__body_menushowed');if(menu)menu.classList.remove('t830m__menu_show');if(overlay)overlay.classList.remove('t830m__menu_show')}
function t830_initMenu(rec,menu,burger,overlay){if(!rec)return;var panel=rec.querySelector('.t830__panel');var menuContent=rec.querySelector('.t830__menu__content');if(typeof jQuery!=='undefined'){$('.t830').bind('clickedAnchorInTooltipMenu',function(){t830_closeMenu(rec,menu,overlay)})}else{var menuBlock=document.querySelector('.t830');if(menuBlock){menuBlock.addEventListener('clickedAnchorInTooltipMenu',function(){t830_closeMenu(rec,menu,overlay)})}}
if(!panel||!menuContent||!menu)return;if(panel.classList.contains('t830__panel_click')||(panel.classList.contains('t830__panel_hover')&&window.innerWidth<=1199)){menuContent.addEventListener('click',function(e){if(menu.classList.contains('t830m__menu_show')){if(burger)burger.classList.remove('t830__burger_open');t830_closeMenu(rec,menu,overlay)}else{if(burger)burger.classList.add('t830__burger_open');t830_showMenu(rec,menu,burger,overlay)}})}}
function t830_scrollSideMenu(rec){var container=rec?rec.querySelector('.t830m__container'):null;if(!container)return;var events=['scroll','wheel','DOMMouseScroll','mousewheel'];events.forEach(function(event){container.addEventListener(event,function(e){var searchResult=rec.querySelector('.t-site-search-dm');if(!searchResult){t830_stopScroll(container,e)}})})}
function t830_stopScroll(container,eventScroll){var scrollTop=container.scrollTop;var scrollHeight=container.scrollHeight;var height=container.offsetHeight;var delta=eventScroll.type==='DOMMouseScroll'?eventScroll.detail*-40:eventScroll.wheelDelta;var up=delta>0;var prevent=function(){eventScroll.stopPropagation();eventScroll.preventDefault();eventScroll.returnValue=!1;return!1};if(!up&&-delta>scrollHeight-height-scrollTop){container.scrollTo(0,scrollHeight);return prevent()}else if(up&&delta>scrollTop){container.scrollTo(0,0);return prevent()}}
function t830_removePadding(rec,allrecords){if(!allrecords||!rec||window.getComputedStyle(rec).display!=='none')return;allrecords.classList.remove('t830__allrecords_padd');allrecords.classList.remove('t830__allrecords_padd-small');allrecords.style.paddingLeft='';var label=document.querySelector('.t-tildalabel');if(label){label.classList.remove('t830__t-tildalabel_padd');label.classList.remove('t830__t-tildalabel_padd-small');label.style.paddingLeft=''}}
function t830_slideToggle(target){if(!target)return;if(target.getAttribute('data-slide')==='y')return;if(window.getComputedStyle(target).display==='none'){return t830_slideDown(target)}else{return t830_slideUp(target)}}
function t830_slideUp(target){if(!target)return;var step=target.offsetHeight/30;var difference=target.offsetHeight;target.style.overflow='hidden';target.setAttribute('data-slide','y');var timerID=setInterval(function(){difference-=step;target.style.height=difference+'px';if(difference<=0){target.style.height='';target.style.overflow='';target.style.display='none';target.removeAttribute('data-slide');clearInterval(timerID)}},10)}
function t830_slideDown(target){if(!target)return;target.style.display='';var currentDisplayValue=window.getComputedStyle(target).display;target.style.display=currentDisplayValue==='none'?'block':currentDisplayValue;var targetHeight=target.offsetHeight;target.style.height='0';target.style.overflow='hidden';target.setAttribute('data-slide','y');var step=targetHeight/30;var difference=0;var timerID=setInterval(function(){target.style.height=difference+'px';difference+=step;if(difference>=targetHeight){target.style.height='';target.style.overflow='';target.removeAttribute('data-slide');clearInterval(timerID)}},10)}