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 t607_init(recid){t_onFuncLoad('t_menu__getSectionByHref',function(){t607_checkAnchorLinks(recid);window.addEventListener('orientationchange',function(){setTimeout(function(){t607_checkAnchorLinks(recid)},500)})})}
function t607_checkAnchorLinks(recid){var rec=document.getElementById('rec'+recid);if(!rec||window.innerWidth<980&&rec.getAttribute('data-menu-inited'))return;rec.setAttribute('data-menu-inited','y');var navLinks=rec.querySelectorAll('.t607__list_item a[href*=\'#\']');navLinks=Array.prototype.filter.call(navLinks,function(navLink){return!navLink.classList.contains('tooltipstered')});if(navLinks.length){t607_catchScroll(navLinks)}}
function t607_initKeydownEvent(navLinks,sections){document.addEventListener('keydown',function(e){var direction='';if(e.which===38||e.which===33)direction='top';if(e.which===40||e.which===34)direction='bottom';var activeLink=navLinks.filter(function(el){return el.classList.contains('t-active')});activeLink=activeLink.length?activeLink[0]:null;var activeSection=t_menu__getSectionByHref(activeLink);var activeSectionID=activeSection?activeSection.id:'';var sectionIndexList=sections.map(function(section,i){if(direction==='top'&&section.id===activeSectionID)return i+1;if(direction==='bottom'&&section.id===activeSectionID)return i-1});sectionIndexList=sectionIndexList.filter(function(item){return typeof item==='number'});var newActiveSection=sections[sectionIndexList[0]];if(!newActiveSection)return;var menu=document.querySelector('.t607');var topOffset=menu?menu.getAttribute('data-offset-top')||'0':'0';var sectionTopOffset=newActiveSection.getAttribute('data-offset-top');topOffset=parseInt(topOffset,10);sectionTopOffset=parseInt(sectionTopOffset,10);var topPos=sectionTopOffset-topOffset;t607_scrollToEl(topPos)})}
function t607_catchScroll(navLinks){navLinks=Array.prototype.slice.call(navLinks);var clickedSectionID=null;var sections=[];var sectionToNavigationLinkID={};var interval=100;var lastCall;var timeoutID;navLinks=navLinks.reverse();navLinks.forEach(function(link){var currentSection=t_menu__getSectionByHref(link);if(currentSection&&currentSection.id){sections.push(currentSection);sectionToNavigationLinkID[currentSection.id]=link}});t_menu__updateSectionsOffsets(sections);sections.sort(function(a,b){var firstTopOffset=parseInt(a.getAttribute('data-offset-top'),10)||0;var secondTopOffset=parseInt(b.getAttribute('data-offset-top'),10)||0;return secondTopOffset-firstTopOffset});window.addEventListener('resize',t_throttle(function(){t_menu__updateSectionsOffsets(sections)}));var menuEls=document.querySelectorAll('.t607');Array.prototype.forEach.call(menuEls,function(menu){menu.addEventListener('displayChanged',function(){t_menu__updateSectionsOffsets(sections)})});setInterval(function(){t_menu__updateSectionsOffsets(sections)},5000);t_menu__highlightNavLinks(navLinks,sections,sectionToNavigationLinkID,clickedSectionID);t607_initKeydownEvent(navLinks,sections);navLinks.forEach(function(navLink,i){navLink.addEventListener('click',function(e){var clickedSection=t_menu__getSectionByHref(navLink);if(!navLink.classList.contains('tooltipstered')&&clickedSection&&clickedSection.id){navLinks.forEach(function(link,index){if(index===i){link.classList.add('t-active');if(!document.querySelector('.t270')){e.preventDefault();var menu=document.querySelector('.t607');var topOffset=menu?menu.getAttribute('data-offset-top')||'0':'0';var sectionTopOffset=clickedSection.getAttribute('data-offset-top');topOffset=parseInt(topOffset,10);sectionTopOffset=parseInt(sectionTopOffset,10);var topPos=sectionTopOffset-topOffset;t607_scrollToEl(topPos)}}else{link.classList.remove('t-active')}});clickedSectionID=clickedSection.id}})});window.addEventListener('scroll',function(){var dateNow=new Date().getTime();if(lastCall&&dateNow<lastCall+interval){clearTimeout(timeoutID);timeoutID=setTimeout(function(){lastCall=dateNow;clickedSectionID=t_menu__highlightNavLinks(navLinks,sections,sectionToNavigationLinkID,clickedSectionID)},interval-(dateNow-lastCall))}else{lastCall=dateNow;clickedSectionID=t_menu__highlightNavLinks(navLinks,sections,sectionToNavigationLinkID,clickedSectionID)}})}
function t607_scrollToEl(elTopPos){if(elTopPos===window.pageYOffset)return!1;var scrollHeight=Math.max(document.body.scrollHeight,document.documentElement.scrollHeight,document.body.offsetHeight,document.documentElement.offsetHeight,document.body.clientHeight,document.documentElement.clientHeight);var maxTopPosViewport=scrollHeight-window.innerHeight;if(elTopPos<0)elTopPos=0;if(elTopPos>maxTopPosViewport)elTopPos=maxTopPosViewport;var stepDivider=20;var duration=400/stepDivider;var difference=window.pageYOffset;var step=Math.abs(window.pageYOffset-elTopPos)/duration;var direction=window.pageYOffset>elTopPos?'top':'bottom';var timerID=setInterval(function(){if(direction==='top'){difference-=step}else{difference+=step}
window.scrollTo(0,difference);document.body.setAttribute('data-scrollable','true');if(direction==='top'&&difference<=elTopPos||direction==='bottom'&&difference>=elTopPos){document.body.removeAttribute('data-scrollable');window.scrollTo(0,elTopPos);clearInterval(timerID)}},stepDivider)}
function t395_init(recid){var rec=document.getElementById('rec'+recid);if(!rec)return;var allRecords=document.getElementById('allrecords');var tildaMode=allRecords?allRecords.getAttribute('data-tilda-mode'):'';var tildaLazyMode=allRecords?allRecords.getAttribute('data-tilda-lazy'):'';var tabs=rec?rec.querySelectorAll('.t395__tab'):[];if(tildaMode!=='edit'&&tildaMode!=='preview'){setTimeout(function(){t395_scrollToTabs(recid);var activeTab=rec.querySelector('.t395__tab_active');if(activeTab){var currentButton=activeTab.querySelector('.t395__title');if(currentButton){currentButton.setAttribute('tabindex',0);currentButton.setAttribute('aria-selected',!0)}
var currentTabIndex=activeTab.getAttribute('data-tab-number');var wrapper=rec.querySelector('.t395__wrapper');wrapper.setAttribute('data-tab-current',currentTabIndex)}},300)}
t395_addAttributesToBlocksInsideTabs(recid,tabs);Array.prototype.forEach.call(tabs,function(tab,i){tab.addEventListener('click',function(event){var tabNumber=i+1;var targetTab=event.target.closest('.t395__tab');if(targetTab&&targetTab.classList.contains('t395__tab_active')&&!event.isTrusted)return;t395_switchBetweenTabs(recid,tabNumber,targetTab,tildaMode,tildaLazyMode)});tab.addEventListener('keydown',function(event){var currentIndex=Number(rec.querySelector('.t395__wrapper').getAttribute('data-tab-current'));var targetTab=event.target.closest('.t395__tab');if(targetTab&&targetTab.classList.contains('t395__tab_active')&&!event.isTrusted)return;var prevent=!1;switch(event.key){case 'Left':case 'ArrowLeft':currentIndex=currentIndex===1?tabs.length:currentIndex-1;targetTab=rec.querySelector('[data-tab-number="'+currentIndex+'"]');t395_switchBetweenTabs(recid,currentIndex,targetTab,tildaMode,tildaLazyMode);t395_showActiveTabFromKeyboard(recid,currentIndex,tabs);prevent=!0;break;case 'Right':case 'ArrowRight':currentIndex=currentIndex===tabs.length?1:currentIndex+1;targetTab=rec.querySelector('[data-tab-number="'+currentIndex+'"]');t395_switchBetweenTabs(recid,currentIndex,targetTab,tildaMode,tildaLazyMode);t395_showActiveTabFromKeyboard(recid,currentIndex,tabs);prevent=!0;break;default:break}
if(prevent){event.stopPropagation();event.preventDefault()}})});if(tabs.length){t395_alltabs_updateContent(recid);t395_updateContentBySelect(recid);var bgColor=rec?rec.style.backgroundColor:'#ffffff';var bgColorTargets=rec.querySelectorAll('.t395__select, .t395__firefoxfix');Array.prototype.forEach.call(bgColorTargets,function(target){target.style.background=bgColor})}}
function t395_addAttributesToBlocksInsideTabs(recid,tabs){if(tabs.length>0){Array.prototype.forEach.call(tabs,function(tab,i){var firstBlockInsideTabId=tab.getAttribute('data-tab-rec-ids').split(',')[0];var firstBlockInsideTab=document.querySelector('#rec'+firstBlockInsideTabId);if(firstBlockInsideTab&&!firstBlockInsideTab.getAttribute('aria-labelledby')){firstBlockInsideTab.setAttribute('aria-labelledby','tab'+(i+1)+'_'+recid)}
if(firstBlockInsideTab&&!firstBlockInsideTab.getAttribute('role')){firstBlockInsideTab.setAttribute('role','tabpanel')}
if(firstBlockInsideTab&&!firstBlockInsideTab.getAttribute('tabindex')){firstBlockInsideTab.setAttribute('tabindex','0')}})}}
function t395_switchBetweenTabs(recid,tabNumber,targetTab,tildaMode,tildaLazyMode){var rec=document.getElementById('rec'+recid);if(!rec)return;var activeTab=rec.querySelector('.t395__tab_active');if(activeTab){activeTab.classList.remove('t395__tab_active');var activeButton=activeTab.querySelector('.t395__title');if(activeButton){activeButton.setAttribute('tabindex',-1);activeButton.setAttribute('aria-selected',!1)}}
targetTab.classList.add('t395__tab_active');var targetButton=targetTab.querySelector('.t395__title');if(targetButton){targetButton.setAttribute('tabindex',0);targetButton.setAttribute('aria-selected',!0)}
t395_removeUrl();if(tildaMode!=='edit'&&tildaMode!=='preview'&&tabNumber&&typeof history.replaceState!=='undefined'){try{window.history.replaceState('','',window.location.href+'#!/tab/'+recid+'-'+tabNumber)}catch(err){}}
rec.querySelector('.t395__wrapper').setAttribute('data-tab-current',tabNumber);t395_alltabs_updateContent(recid);t395_updateSelect(recid);var hookBlocks=targetTab.getAttribute('data-tab-rec-ids').split(',');var event=document.createEvent('Event');event.initEvent('displayChanged',!0,!0);var hooksCopy=hookBlocks.slice();hooksCopy.forEach(function(recid){var currentRec=document.getElementById('rec'+recid);if(!currentRec)return;var recordType=currentRec.getAttribute('data-record-type');if(recordType==='395'||recordType==='397'){var selector='.t'+recordType+'__tab_active';var activeIDs=currentRec.querySelector(selector).getAttribute('data-tab-rec-ids');activeIDs=activeIDs.split(',');hookBlocks=hookBlocks.concat(activeIDs)}});hookBlocks.forEach(function(curRecid){var currentRec=document.getElementById('rec'+curRecid);if(!currentRec)return;var currentRecChildren=currentRec.querySelectorAll('.t-feed, .t-store, .t-store__product-snippet, .t117, .t121, .t132, .t223, .t226, .t228, .t229, .t230, .t268, .t279, .t341, .t346, .t347, .t349, .t351, .t353, .t384, .t385, .t386, .t396, .t400, .t404, .t409, .t410, .t412, .t418, .t422, .t425, .t428, .t433, .t448, .t456, .t477, .t478, .t480, .t486, .t498, .t504, .t506, .t509, .t511, .t517, .t518, .t519, .t520, .t532, .t533, .t538, .t539, .t544, .t545, .t552, .t554, .t569, .t570, .t577, .t592, .t598, .t599, .t601, .t604, .t605, .t609, .t615, .t616, .t650, .t659, .t670, .t675, .t686, .t688, .t694, .t698, .t700, .t726, .t728, .t730, .t734, .t738, .t740, .t744, .t754, .t760, .t762, .t764, .t774, .t776, .t778, .t780, .t786, .t798, .t799, .t801, .t813, .t814, .t822, .t826, .t827, .t829, .t842, .t843, .t849, .t850, .t851, .t856, .t858, .t859, .t860, .t881, .t889, .t902, .t912, .t923, .t937, .t958, .t959, .t979, .t982, .t983, .t989, .t994, .t1053, .t1067, .t1068, .t1069, .t1070, .t1071, .t1072');Array.prototype.forEach.call(currentRecChildren,function(child){child.dispatchEvent(event)});var displayChangedBlock=currentRec.querySelector('[data-display-changed="true"]');if(displayChangedBlock)displayChangedBlock.dispatchEvent(event)});var galaxyEffectBlocks=document.querySelectorAll('.t826');Array.prototype.forEach.call(galaxyEffectBlocks,function(galaxyEffectBlock){galaxyEffectBlock.dispatchEvent(event)});if(window.lazy==='y'||tildaLazyMode==='yes'){t_onFuncLoad('t_lazyload_update',function(){t_lazyload_update()})}}
function t395_showActiveTabFromKeyboard(recid,currentIndex,tabs){var rec=document.querySelector('#rec'+recid);var currentTab=rec.querySelector('[data-tab-number="'+currentIndex+'"]');if(!currentTab)return;var currentButton=currentTab.querySelector('.t395__title');if(currentButton){currentButton.focus()}
var tabList=rec.querySelector('.t395__wrapper');if(tabList)tabList.setAttribute('data-tab-current',currentIndex)}
function t395_alltabs_updateContent(recid){var rec=document.getElementById('rec'+recid);var activeTabs=rec?rec.querySelectorAll('.t395__tab_active'):null;var select=rec?rec.querySelector('.t395__select'):null;var tabs=rec.querySelectorAll('.t395__tab');if(activeTabs.length!==1)return!1;var activeTab=activeTabs[0];var hookBlocks=activeTab.getAttribute('data-tab-rec-ids').split(',');var noActive=[];var popupBlocks=[190,217,312,331,358,364,365,390,702,706,746,750,756,768,862,868,890,945,1013,1014];Array.prototype.forEach.call(tabs,function(tab){if(tab!==activeTab){var noActiveHooks=tab.getAttribute('data-tab-rec-ids').split(',');noActiveHooks.forEach(function(hook){if(noActive.indexOf(hook)===-1&&hookBlocks.indexOf(hook)===-1)noActive.push(hook)})}});if(t395_checkVisibillityEl(activeTab)||t395_checkVisibillityEl(select)){hookBlocks.forEach(function(hook){if(hook){var hookEl=document.getElementById('rec'+hook);var hookElRecordType=hookEl?hookEl.getAttribute('data-record-type'):'';if(hookEl){hookEl.classList.remove('t395__off');hookEl.classList.remove('t397__off');hookEl.setAttribute('aria-hidden',!1);hookEl.style.opacity=''}
t395_updateTabsByHook(hookElRecordType,hookEl,hook,recid)}})}else{hookBlocks.forEach(function(hook){var hookEl=document.getElementById('rec'+hook);var hookElRecordType=hookEl?hookEl.getAttribute('data-record-type'):'';var isPopupBlock=popupBlocks.some(function(id){return hookElRecordType==id});if(hookEl&&!isPopupBlock){hookEl.setAttribute('data-animationappear','off');hookEl.classList.add('t395__off');hookEl.setAttribute('aria-hidden',!0)}
t395_updateTabsByHook(hookElRecordType,hookEl,hook,recid)})}
noActive.forEach(function(noActiveID){if(!noActiveID)return;var hookEl=document.getElementById('rec'+noActiveID);var hookElRecordType=hookEl?hookEl.getAttribute('data-record-type'):'';var isPopupBlock=popupBlocks.some(function(id){return hookElRecordType==id});if(hookEl&&!isPopupBlock){hookEl.setAttribute('data-connect-with-tab','yes');hookEl.setAttribute('data-animationappear','off');hookEl.classList.add('t395__off');hookEl.setAttribute('aria-hidden',!0)}
t395_updateTabsByHook(hookElRecordType,hookEl,noActiveID,recid)});var scrollHeight=Math.max(document.body.scrollHeight,document.documentElement.scrollHeight,document.body.offsetHeight,document.documentElement.offsetHeight,document.body.clientHeight,document.documentElement.clientHeight);if(scrollHeight-window.innerHeight<window.pageYOffset){window.scrollTo(0,0)}}
function t395_updateTabsByHook(hookElRecordType,hookEl,currentID,recid){var hookElTab;switch(hookElRecordType){case '395':if(window.t395_alltabs_updateContent&&window.t395_updateSelect&&recid!==currentID){window.t395_alltabs_updateContent(currentID);window.t395_updateSelect(currentID);hookElTab=hookEl?hookEl.querySelector('.t395__tab'):null;if(hookElTab)hookElTab.click()}
break;case '397':if(t397_alltabs_updateContent&&t397_updateSelect&&recid!==currentID){t397_alltabs_updateContent(currentID);t397_updateSelect(currentID);hookElTab=hookEl?hookEl.querySelector('.t397__tab'):null;if(hookElTab)hookElTab.click()}
break}}
function t395_checkVisibillityEl(el){return!!(el&&(el.offsetWidth||el.offsetHeight||el.getClientRects().length))}
function t395_updateContentBySelect(recid){var rec=document.getElementById('rec'+recid);if(!rec)return!1;var select=rec.querySelector('.t395__select');if(select){select.addEventListener('change',function(){var currentValue=select.value;var tabIndex=rec.querySelector('.t395__tab[data-tab-rec-ids=\''+currentValue+'\']');if(tabIndex)tabIndex.click()})}}
function t395_updateSelect(recid){var rec=document.getElementById('rec'+recid);if(!rec)return!1;var activeTab=rec.querySelector('.t395__tab_active');var currentTabHooks=activeTab?activeTab.getAttribute('data-tab-rec-ids'):'';var select=rec.querySelector('.t395__select');if(select)select.value=currentTabHooks}
function t395_scrollToTabs(recid){var rec=document.getElementById('rec'+recid);var curUrl=window.location.href;var tabIndexNumber=curUrl.indexOf('#!/tab/');if(tabIndexNumber===-1)return!1;var tabIndexNumberStart=curUrl.indexOf('tab/');var firstOptionSelect=rec?rec.querySelector('.t395__wrapper_mobile .t395__select option'):null;if(firstOptionSelect)firstOptionSelect.selected=!1;var tabRec=curUrl.substring(tabIndexNumberStart+4,tabIndexNumberStart+4+recid.length);if(tabRec!==recid)return!1;var tabBlock=rec?rec.querySelector('.t395'):null;var tabNumber=parseInt(curUrl.slice(tabIndexNumberStart+4+recid.length+1),10);var tabs=rec.querySelectorAll('.t395__tab');Array.prototype.forEach.call(tabs,function(tab,i){if(i===tabNumber-1){tab.click();tab.classList.add('t395__tab_active')}else{tab.classList.remove('t395__tab_active')}});var tabsMob=rec.querySelectorAll('.t395__wrapper_mobile .t395__select option');var activeTabMob=tabsMob.length?tabsMob[tabNumber-1]:null;if(activeTabMob)activeTabMob.selected=!0;var targetOffset=tabBlock.getBoundingClientRect().top+window.pageYOffset;var target=window.innerWidth>960?targetOffset-200:targetOffset-100;if(target<0)target=0;t395_scrollToEl(target)}
function t395_scrollToEl(elTopPos){if(elTopPos===window.pageYOffset)return!1;var duration=300;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||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 t395_removeUrl(){var curUrl=window.location.href;var indexToRemove=curUrl.indexOf('#!/tab/');if(indexToRemove===-1){indexToRemove=curUrl.indexOf('%23!/tab/')}
curUrl=curUrl.substring(0,indexToRemove);if(indexToRemove!==-1){if(typeof history.replaceState!='undefined'){try{window.history.replaceState('','',curUrl)}catch(err){}}}}
function t585_init(recId){var rec=document.getElementById('rec'+recId);if(!rec)return;var accordion=rec.querySelectorAll('.t585__accordion')[0];var headers=rec.querySelectorAll('.t585__header');var isLazy=document.getElementById('allrecords').getAttribute('data-tilda-lazy');var accordionScroll;if(accordion){accordionScroll=accordion.getAttribute('data-scroll-to-expanded');accordion=accordion.getAttribute('data-accordion')}else{accordion='false';accordionScroll='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('.t585__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('t585__opened')){element.classList.remove('t585__opened');t585_accordionHide(container)}else{if(accordionScroll==='true'&&accordion==='true'){activeHeight=t585__getOldAction(rec);isAccordionDown=t585__getAccordionPosition(headers,element)}
if(accordion==='true')t585_accordionAllHide(headers);element.classList.add('t585__opened');container.style.display='block';var height=container.scrollHeight;container.style.maxHeight='0px';setTimeout(function(){container.style.maxHeight=height+'px';if(accordionScroll==='true'){t585__calcHeight(element,container,activeHeight,isAccordionDown)}},0)}
if(window.lazy==='y'||isLazy==='yes'){t_onFuncLoad('t_lazyload_update',function(){t_lazyload_update()})}})}}
function t585_accordionAllHide(headers){for(var i=0;i<headers.length;i++){var elementHide=headers[i];elementHide.classList.remove('t585__opened');t585_accordionHide(elementHide.nextElementSibling)}}
function t585_accordionHide(container){if(!container.style.maxHeight)container.style.maxHeight=container.scrollHeight+'px';setTimeout(function(){container.style.maxHeight='0px'},0)}
function t585__getOldAction(rec){var activeHeader=rec.querySelector('.t585__opened');var activeHeight=0;if(activeHeader)var activeContainer=activeHeader.nextElementSibling;if(activeContainer)activeHeight=activeContainer.offsetHeight;return activeHeight}
function t585__getAccordionPosition(headers,element){var oldIndex;var newIndex;for(var i=0;i<headers.length;i++){var header=headers[i];if(header.classList.contains('t585__opened'))oldIndex=i;if(header===element)newIndex=i}
return oldIndex<newIndex?!0:!1}
function t585__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){t585__scroll(target)}}
function t585__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 t585__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 t585__animateScroll(){currentTime+=increment;window.scrollTo(0,t585__easeInOutCubic(currentTime));if(currentTime<duration){setTimeout(t585__animateScroll,increment)}else{document.body.removeAttribute('data-scrollable')}}
t585__animateScroll()}
window.requestAnimationFrame=(function(){return window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.oRequestAnimationFrame||window.msRequestAnimationFrame||function(callback){window.setTimeout(callback,1000/60)}})();function t270_scroll(hash,offset){if(!hash)return;t270_checkLoad(hash,offset);if(hash.indexOf('#!/tproduct/')!==-1||hash.indexOf('#!/tab/')!==-1){return!0}
var isHistoryChangeAllowed=window.location.hash!==hash;var wrapperBlock=document.querySelector('.t270');var dontChangeHistory=wrapperBlock?Boolean(wrapperBlock.getAttribute('data-history-disabled')):!1;t270_scrollToEl(hash,offset);if(!dontChangeHistory&&isHistoryChangeAllowed){if(history.pushState){history.pushState(null,null,hash)}else{window.location.hash=hash}
isHistoryChangeAllowed=!1}
return!0}
function t270_checkLoad(hash,offset){if(window.t270_loadChecked)return;var sliderWrappers=document.body.querySelectorAll('.t-slds__items-wrapper');if(!sliderWrappers.length)return;var lastWrapper=sliderWrappers[sliderWrappers.length-1];var sliderImgs=lastWrapper?lastWrapper.querySelectorAll('.t-slds__bgimg'):[];var lastImg=sliderImgs[sliderImgs.length-1];var imageUrl=lastImg?window.getComputedStyle(lastImg).backgroundImage:'';imageUrl=imageUrl.substring(5,imageUrl.length-2);var preloaderImg=document.createElement('img');preloaderImg.src=imageUrl?imageUrl:'';preloaderImg.addEventListener('load',function(){t270_scroll(hash,offset);window.t270_loadChecked=!0})}
function t270_scrollToEl(hash,offset){if(document.body.getAttribute('data-scroll'))return;var scrollTargetY=t270_getTarget(hash,offset);if(isNaN(scrollTargetY))return;var body=document.body;var canSmoothScroll=window.CSS&&window.CSS.supports('scroll-behavior','smooth');if(window.isMobile&&canSmoothScroll&&'scrollBehavior' in document.documentElement.style){body.setAttribute('data-scroll','true');window.scrollTo({left:0,top:scrollTargetY,behavior:'smooth'});setTimeout(function(){body.removeAttribute('data-scroll')},500)}else{var html=document.querySelector('html');var documentHeight=Math.max(body.scrollHeight,body.offsetHeight,body.clientHeight,html.offsetHeight);var scrollY=window.scrollY||document.documentElement.scrollTop;var speed=2000;var time=Math.max(.1,Math.min(Math.abs(scrollY-scrollTargetY)/speed,.8));var currentTime=0;function t270_easeInQuad(pos){return Math.pow(pos,2)}
function t270_animationScroll(){currentTime+=1/60;var newDocumentHeight=Math.max(body.scrollHeight,body.offsetHeight,body.clientHeight,html.offsetHeight);if(documentHeight<newDocumentHeight){documentHeight=newDocumentHeight;scrollTargetY=t270_getTarget(hash,offset);scrollY=window.scrollY||document.documentElement.scrollTop;time=Math.max(.1,Math.min(Math.abs(scrollY-scrollTargetY)/speed,.8))}
var difference=currentTime/time;var animation=t270_easeInQuad(difference);if(difference<1){requestAnimationFrame(t270_animationScroll);window.scrollTo(0,scrollY+((scrollTargetY-scrollY)*animation))}else{body.removeAttribute('data-scroll');body.removeAttribute('data-scrollable');window.scrollTo(0,scrollTargetY)}}
body.setAttribute('data-scroll','true');body.setAttribute('data-scrollable','true');t270_animationScroll()}}
function t270_getTarget(hash,offset){var target;try{if(hash.substring(0,1)==='#'){target=document.getElementById(hash.substring(1))}else{target=document.querySelector(hash)}}catch(event){console.log('Exception t270: '+event.message);return}
if(!target){target=document.querySelector('a[name="'+hash.substr(1)+'"]');if(!target)return}
target=parseInt((target.getBoundingClientRect().top+window.pageYOffset)-offset,10);target=Math.max(target,0);return target}
function t282_showMenu(recid){var rec=document.getElementById('rec'+recid);if(!rec)return;var menu=rec.querySelector('.t282');var submenu=rec.querySelector('.t-menusub__container');var allRec=document.getElementById('allrecords');var isEdit=allRec?allRec.getAttribute('data-tilda-mode')==='edit':!1;if(isEdit&&submenu){submenu.style.position='relative';submenu.style.zIndex='10';submenu.style.pointerEvents='none'}
var menuLinks=rec.querySelectorAll('.t-menusub__link-item');var menuContainer=rec.querySelector('.t282__container');var menuAndOverlay=rec.querySelectorAll('.t282__menu__container, .t282__overlay');var canBeClickedItems=rec.querySelectorAll('.t282 .t-menuburger, .t282__menu__link:not(.tooltipstered):not(.t282__menu__link_submenu), .t282__overlay');var menuBlock=rec.querySelector('.t282__menu__container');var menuWrapper=menu.querySelector('.t282__menu__wrapper');var menuContainerHeight=menuContainer?menuContainer.getBoundingClientRect().height:0;var menuBurger=menu?menu.querySelector('.t-menuburger'):null;Array.prototype.forEach.call(canBeClickedItems,function(element){element.addEventListener('click',function(){if(element.closest('.t282__menu__link.tooltipstered, .t794__tm-link, .t978__tm-link, .t966__tm-link'))return;if(document.body.classList.contains('t282_opened')){if(typeof t_triggerEvent==='function')t_triggerEvent(document.body,'popupHidden');document.body.classList.remove('t282_opened')}else{if(typeof t_triggerEvent==='function')t_triggerEvent(document.body,'popupShowed');document.body.classList.add('t282_opened')}
Array.prototype.forEach.call(menuAndOverlay,function(el){el.style.transform='';if(element.closest('.t-menuburger')&&el.closest('.t282__menu__container')&&el.classList.contains('t282__closed')&&!window.isMobile){el.style.pointerEvents='none';setTimeout(function(){el.style.pointerEvents=''},500)}
var menuContainerHeight=menuContainer?menuContainer.getBoundingClientRect().height:0;if(element.closest('.t-menuburger')&&menuWrapper.clientHeight>menuBlock.clientHeight&&!el.classList.contains('t282__closed')){el.style.transform='translateY(calc(-100% - '+menuContainerHeight+'px))'}
el.classList.toggle('t282__closed')});if(menuBlock)menuBlock.style.top=menuContainerHeight+'px';var menuBurger=rec.querySelector('.t-menuburger')
if(menuBurger)menuBurger.classList.toggle('t-menuburger-opened',document.body.classList.contains('t282_opened'))
if(element.classList.contains('t-menuburger')){var expandedStatus=element.classList.contains('t-menuburger-opened');element.setAttribute('aria-expanded',expandedStatus)}
t282_highlight(recid)})});menu.addEventListener('clickedAnchorInTooltipMenu',function(){if(typeof t_triggerEvent==='function')t_triggerEvent(document.body,'popupHidden');document.body.classList.remove('t282_opened');Array.prototype.forEach.call(menuAndOverlay,function(el){el.classList.add('t282__closed')})});Array.prototype.forEach.call(menuLinks,function(link){link.addEventListener('click',function(){if(typeof t_triggerEvent==='function')t_triggerEvent(document.body,'popupHidden');document.body.classList.remove('t282_opened');Array.prototype.forEach.call(menuAndOverlay,function(el){el.classList.add('t282__closed');if(menuBurger){menuBurger.classList.remove('t-menuburger-opened');menuBurger.setAttribute('aria-expanded',!1)}})})})}
function t282_changeSize(recid){var rec=document.getElementById('rec'+recid);if(!rec)return;var menu=rec.querySelector('.t282__container');var menuContainer=rec.querySelector('.t282__menu__container');var menuWrapper=document.getElementById('nav'+recid);var menuHeight=menu?menu.offsetHeight:0;var menuContainerHeight=menuContainer?menuContainer.offsetHeight:0;if(menuHeight>document.documentElement.clientHeight-menuContainerHeight){if(menuWrapper)menuWrapper.classList.add('t282__menu_static')}else{if(menuWrapper)menuWrapper.classList.remove('t282__menu_static')}}
function t282_changeBgOpacityMenu(recid){var rec=document.getElementById('rec'+recid);if(!rec)return;var menuBlocks=rec.querySelectorAll('.t282__container__bg');Array.prototype.forEach.call(menuBlocks,function(menu){var bgColor=menu.getAttribute('data-bgcolor-rgba');var bgColorAfterScroll=menu.getAttribute('data-bgcolor-rgba-afterscroll');var bgOpacity=menu.getAttribute('data-bgopacity');var bgOpacityTwo=menu.getAttribute('data-bgopacity2');var menuShadowOpacity=parseInt(menu.getAttribute('data-menushadow'),10)||0;menuShadowOpacity/=100;var menuShadowCSS=menu.getAttribute('data-menushadow-css');menu.style.backgroundColor=window.pageYOffset>20?bgColorAfterScroll:bgColor;if((window.pageYOffset>20&&bgOpacityTwo==='0')||(window.pageYOffset<=20&&(bgOpacity==='0.0'||bgOpacity==='0'))||(!menuShadowOpacity&&!menuShadowCSS)){menu.style.boxShadow='none'}else if(menuShadowCSS){menu.style.boxShadow=menuShadowCSS}else if(menuShadowOpacity){menu.style.boxShadow='0px 1px 3px rgba(0,0,0,'+menuShadowOpacity+')'}})}
function t282_highlight(recid){var url=window.location.href;var pathname=window.location.pathname;var hash=window.location.hash;if(url.substr(url.length-1)==='/'){url=url.slice(0,-1)}
if(pathname.substr(pathname.length-1)==='/'){pathname=pathname.slice(0,-1)}
if(pathname.charAt(0)==='/'){pathname=pathname.slice(1)}
if(pathname===''){pathname='/'}
var shouldBeActiveElements=document.querySelectorAll('.t282__menu a[href=\''+url+'\'], '+'.t282__menu a[href=\''+url+'/\'], '+'.t282__menu a[href=\''+pathname+'\'], '+'.t282__menu a[href=\'/'+pathname+'\'], '+'.t282__menu a[href=\''+pathname+'/\'], '+'.t282__menu a[href=\'/'+pathname+'/\']'+(hash?', .t282__menu a[href=\''+hash+'\']':'')+(hash?', .t282__menu a[href=\'/'+hash+'\']':'')+(hash?', .t282__menu a[href=\''+hash+'/\']':'')+(hash?', .t282__menu a[href=\'/'+hash+'/\']':''));var rec=document.getElementById('rec'+recid);var menuLinks=rec?rec.querySelectorAll('.t282__menu a'):[];Array.prototype.forEach.call(menuLinks,function(link){link.classList.remove('t-active')});Array.prototype.forEach.call(shouldBeActiveElements,function(link){link.classList.add('t-active')})}
function t282_appearMenu(recid){var record=document.getElementById('rec'+recid);var menuBlock=record.querySelector('.t282');var fixedMenu=menuBlock?menuBlock.querySelector('.t282__positionfixed'):null;if(!fixedMenu)return;var appearOffset=menuBlock.getAttribute('data-appearoffset');if(appearOffset&&appearOffset.indexOf('vh')!==-1){appearOffset=Math.floor((window.innerHeight*(parseInt(appearOffset)/100)))}
appearOffset=parseInt(appearOffset,10);var menuHeight=fixedMenu.clientHeight;if(typeof appearOffset==='number'&&window.pageYOffset>=appearOffset){if(fixedMenu.style.transform==='translateY(-'+menuHeight+'px)'){t282_slideUpElement(fixedMenu,menuHeight,'toBottom')}}else if(fixedMenu.style.transform==='translateY(0px)'){t282_slideUpElement(fixedMenu,menuHeight,'toTop')}else{fixedMenu.style.transform='translateY(-'+menuHeight+'px)';fixedMenu.style.opacity='0'}}
function t282_slideUpElement(menu,menuHeight,direction){var diff=direction==='toTop'?0:menuHeight;var diffOpacity=direction==='toTop'?1:0;var timerID=setInterval(function(){menu.style.transform='translateY(-'+diff+'px)';menu.style.opacity=diffOpacity.toString();diffOpacity=direction==='toTop'?diffOpacity-0.1:diffOpacity+0.1;diff=direction==='toTop'?diff+(menuHeight/20):diff-(menuHeight/20);if(direction==='toTop'&&diff>=menuHeight){menu.style.transform='translateY(-'+menuHeight+'px)';menu.style.opacity='0';clearInterval(timerID)}
if(direction==='toBottom'&&diff<=0){menu.style.transform='translateY(0px)';menu.style.opacity='1';clearInterval(timerID)}},10)}
function t804_init(recid){var rec=document.querySelector('#rec'+recid);if(!rec)return;var geodata=[];var geoDataBlock=rec.querySelector('.t_804_geo-datablock');var key=geoDataBlock.querySelector('.t_804_geo-key').innerHTML;var defValue=geoDataBlock.querySelector('.t_804_geo-default').innerHTML;var cards=geoDataBlock.querySelector('.t_804_geo-data').children;Array.prototype.forEach.call(cards,function(regionCard){var geoIpSet=regionCard.querySelectorAll('.t_804_geo-geoip');var geo=[];Array.prototype.forEach.call(geoIpSet,function(geoIPBlock){var geoIPInnerText=geoIPBlock.innerHTML;var geoIPArray=geoIPInnerText.split(';');Array.prototype.forEach.call(geoIPArray,function(geoIP){if(geoIP==='')return!0;var regex=/,/g;var geoIPValue=geoIP.replace(regex,'-');geo.push(geoIPValue)})});var value=regionCard.querySelector('.t_804_geo-value').innerHTML;geodata.push({value:value,geo:geo})});if(rec.closest('#t-header')||rec.closest('#t-footer')){var elements=document.querySelectorAll('.t-rec div, .t-rec span, .t-rec a, .t-rec p');Array.prototype.forEach.call(elements,function(elem){var html=elem.innerHTML;var replaced=html.replace(/(?!%%)[A-zА-яё0-9_-]*(?=%%)/gi,'<span data-replace-key="$&"></span>').replace(/%{2}/gim,'');if(replaced!==html){elem.innerHTML=replaced}});var event=document.createEvent('HTMLEvents');event.initEvent('replacingCompleted',!0,!1);document.dispatchEvent(event)}
var request=new XMLHttpRequest();request.open('GET','https://geo.tildacdn.com/geo/full/');request.timeout=15*1000;request.send();request.onprogress=function(){try{var data=JSON.parse(request.response);replaceGeo(data,key,geodata,defValue)}catch(e){}};request.onerror=function(){try{var data=JSON.parse(request.response);replaceGeo(data,key,geodata,defValue)}catch(e){}};request.ontimeout=function(){console.error('Timeout error: ',request.status)};function replaceGeo(data,key,geodata,defValue){var city=data.city.name_en;var region=data.region.name_en;var country=data.country.iso;var fullMatch=country+'-'+region+'-'+city;var partMatch=country+'-'+region;var val=defValue;Array.prototype.forEach.call(geodata,function(value){if(value.geo.indexOf(country)!==-1){val=value.value}
if(value.geo.indexOf(partMatch)!==-1){val=value.value}
if(value.geo.indexOf(fullMatch)!==-1){val=value.value}});var insertion=document.querySelectorAll('[data-replace-key="'+key+'"]');Array.prototype.forEach.call(insertion,function(span){span.innerHTML=val})}}
if(!Element.prototype.matches){Element.prototype.matches=Element.prototype.matchesSelector||Element.prototype.msMatchesSelector||Element.prototype.mozMatchesSelector||Element.prototype.webkitMatchesSelector||Element.prototype.oMatchesSelector}
if(!Element.prototype.closest){Element.prototype.closest=function(s){var rec=this;while(rec&&rec.nodeType===1){if(Element.prototype.matches.call(rec,s)){return rec}
rec=rec.parentElement||rec.parentNode}
return null}}