window.isMobile=!1;if(/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)){window.isMobile=!0}
window.isSafari=!1;if(/^((?!chrome|android).)*safari/i.test(navigator.userAgent)){window.isSafari=!0}
window.isSafariVersion='';if(window.isSafari){var version=(navigator.appVersion).match(/Version\/(\d+)\.(\d+)\.?(\d+)? Safari/);if(version!==null){window.isSafariVersion=[parseInt(version[1],10),parseInt(version[2],10),parseInt(version[3]||0,10)]}}
window.isIE=!!document.documentMode;window.browserLang=(window.navigator.userLanguage||window.navigator.language).toUpperCase().slice(0,2);window.tildaBrowserLang=window.browserLang;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 t890_init(recId,offset){var rec=document.getElementById('rec'+recId);if(!rec)return;var container=rec.querySelector('.t890');if(!container)return;var windowOffset=offset||window.innerHeight;rec.setAttribute('data-animationappear','off');rec.style.opacity=1;window.addEventListener('scroll',t_throttle(function(){if(window.pageYOffset>windowOffset){container.style.display='block'}else{t890__fadeOut(container)}},200));var isSafari=/^((?!chrome|android).)*safari/i.test(navigator.userAgent);rec.addEventListener('click',function(e){if(e.target.closest('.t890__arrow')){isSafari?t890__animateScrollPolyfill(0):t890__scrollToTop()}})}
function t890__fadeOut(el){if(el.style.display==='none')return;var opacity=1;var timer=setInterval(function(){el.style.opacity=opacity;opacity-=0.1;if(opacity<=0.1){clearInterval(timer);el.style.display='none';el.style.opacity=null}},20)}
function t890__scrollToTop(){if(window.isIE){window.scrollTo(0,0)}else{window.scrollTo({left:0,top:0,behavior:'smooth'})}}
function t890__animateScrollPolyfill(target){var documentHeight=Math.max(document.body.scrollHeight,document.documentElement.scrollHeight,document.body.offsetHeight,document.documentElement.offsetHeight,document.body.clientHeight,document.documentElement.clientHeight);var bottomViewportPoint=documentHeight-document.documentElement.clientHeight;if(target>bottomViewportPoint)target=bottomViewportPoint;if(target===window.pageYOffset)return!1;var currentPosition=window.pageYOffset;var step=(target-currentPosition)/30;var difference=window.pageYOffset;var timerID=setInterval(function(){difference+=step;window.scrollTo(0,difference);document.body.setAttribute('data-scrollable','true');if((target-currentPosition<0&&window.pageYOffset<=target)||(target-currentPosition>0&&window.pageYOffset>=target)){clearInterval(timerID);document.body.removeAttribute('data-scrollable')}},10)}
function t228__init(recid){var rec=document.getElementById('rec'+recid);if(!rec)return;var menuBlock=rec.querySelector('.t228');var mobileMenu=rec.querySelector('.t228__mobile');var menuSubLinkItems=rec.querySelectorAll('.t-menusub__link-item');var rightBtn=rec.querySelector('.t228__right_buttons_but .t-btn');var mobileMenuPosition=mobileMenu?mobileMenu.style.position||window.getComputedStyle(mobileMenu).position:'';var mobileMenuDisplay=mobileMenu?mobileMenu.style.display||window.getComputedStyle(mobileMenu).display:'';var isFixedMobileMenu=mobileMenuPosition==='fixed'&&mobileMenuDisplay==='block';var overflowEvent=document.createEvent('Event');var noOverflowEvent=document.createEvent('Event');overflowEvent.initEvent('t228_overflow',!0,!0);noOverflowEvent.initEvent('t228_nooverflow',!0,!0);if(menuBlock){menuBlock.addEventListener('t228_overflow',function(){t228_checkOverflow(recid)});menuBlock.addEventListener('t228_nooverflow',function(){t228_checkNoOverflow(recid)})}
rec.addEventListener('click',function(e){var targetLink=e.target.closest('.t-menusub__target-link');if(targetLink&&window.isMobile&&window.innerWidth<=980){if(targetLink.classList.contains('t-menusub__target-link_active')){if(menuBlock)menuBlock.dispatchEvent(overflowEvent)}else{if(menuBlock)menuBlock.dispatchEvent(noOverflowEvent)}}
var currentLink=e.target.closest('.t-menu__link-item:not(.tooltipstered):not(.t-menusub__target-link):not(.t794__tm-link):not(.t966__tm-link):not(.t978__tm-link):not(.t978__menu-link)');if(currentLink&&mobileMenu&&isFixedMobileMenu)mobileMenu.click()});Array.prototype.forEach.call(menuSubLinkItems,function(linkItem){linkItem.addEventListener('click',function(){if(mobileMenu&&isFixedMobileMenu)mobileMenu.click()})});if(rightBtn){rightBtn.addEventListener('click',function(){if(mobileMenu&&isFixedMobileMenu)mobileMenu.click()})}
if(menuBlock){menuBlock.addEventListener('showME601a',function(){var menuLinks=rec.querySelectorAll('.t966__menu-link');Array.prototype.forEach.call(menuLinks,function(menuLink){menuLink.addEventListener('click',function(){if(mobileMenu&&isFixedMobileMenu)mobileMenu.click()})})})}}
function t228_checkOverflow(recid){var rec=document.getElementById('rec'+recid);var menu=rec?rec.querySelector('.t228'):null;if(!menu)return;var mobileContainer=document.querySelector('.t228__mobile_container');var mobileContainerHeight=t228_getFullHeight(mobileContainer);var windowHeight=document.documentElement.clientHeight;var menuPosition=menu.style.position||window.getComputedStyle(menu).position;if(menuPosition==='fixed'){menu.classList.add('t228__overflow');menu.style.setProperty('height',(windowHeight-mobileContainerHeight)+'px','important')}}
function t228_checkNoOverflow(recid){var rec=document.getElementById('rec'+recid);if(!rec)return!1;var menu=rec.querySelector('.t228');var menuPosition=menu?menu.style.position||window.getComputedStyle(menu).position:'';if(menuPosition==='fixed'){if(menu)menu.classList.remove('t228__overflow');if(menu)menu.style.height='auto'}}
function t228_setWidth(recid){var rec=document.getElementById('rec'+recid);if(!rec)return;var menuCenterSideList=rec.querySelectorAll('.t228__centerside');Array.prototype.forEach.call(menuCenterSideList,function(menuCenterSide){menuCenterSide.classList.remove('t228__centerside_hidden')});if(window.innerWidth<=980)return;var menuBlocks=rec.querySelectorAll('.t228');Array.prototype.forEach.call(menuBlocks,function(menu){var maxWidth;var centerWidth=0;var paddingWidth=40;var leftSide=menu.querySelector('.t228__leftside');var rightSide=menu.querySelector('.t228__rightside');var menuList=menu.querySelector('.t228__list');var mainContainer=menu.querySelector('.t228__maincontainer');var leftContainer=menu.querySelector('.t228__leftcontainer');var rightContainer=menu.querySelector('.t228__rightcontainer');var centerContainer=menu.querySelector('.t228__centercontainer');var centerContainerLi=centerContainer?centerContainer.querySelectorAll('li'):[];var leftContainerWidth=t228_getFullWidth(leftContainer);var rightContainerWidth=t228_getFullWidth(rightContainer);var mainContainerWidth=mainContainer?mainContainer.offsetWidth:0;var dataAlign=menu.getAttribute('data-menu-items-align');var isDataAlignCenter=dataAlign==='center'||dataAlign===null;maxWidth=leftContainerWidth>=rightContainerWidth?leftContainerWidth:rightContainerWidth;maxWidth=Math.ceil(maxWidth);Array.prototype.forEach.call(centerContainerLi,function(li){centerWidth+=t228_getFullWidth(li)});if(mainContainerWidth-(maxWidth*2+paddingWidth*2)>centerWidth+20){if(isDataAlignCenter){if(leftSide)leftSide.style.minWidth=maxWidth+'px';if(rightSide)rightSide.style.minWidth=maxWidth+'px'}}else{if(leftSide)leftSide.style.minWidth=maxWidth+'';if(rightSide)rightSide.style.minWidth=maxWidth+''}
if(menuList&&menuList.classList.contains('t228__list_hidden'))menuList.classList.remove('t228__list_hidden')})}
function t228_getFullWidth(el){if(!el)return 0;var marginLeft=el.style.marginLeft||window.getComputedStyle(el).marginLeft;var marginRight=el.style.marginRight||window.getComputedStyle(el).marginRight;marginLeft=parseInt(marginLeft,10)||0;marginRight=parseInt(marginRight,10)||0;return el.offsetWidth+marginLeft+marginRight}
function t228_getFullHeight(el){if(!el)return 0;var marginTop=el.style.marginTop||window.getComputedStyle(el).marginTop;var marginBottom=el.style.marginBottom||window.getComputedStyle(el).marginBottom;marginTop=parseInt(marginTop,10)||0;marginBottom=parseInt(marginBottom,10)||0;return el.offsetHeight+marginTop+marginBottom}
function t456_setListMagin(recid,imglogo){var rec=document.getElementById('rec'+recid);if(!rec||window.innerWidth<=980)return;var menu=rec.querySelector('.t456');var leftSide=menu?menu.querySelector('.t456__leftwrapper'):null;var list=menu?menu.querySelector('.t456__list'):null;var leftSideWidth=leftSide?leftSide.offsetWidth:0;if(list)list.style.marginRight=(imglogo?leftSideWidth:leftSideWidth+30)+'px'}
function t393_appearMenu(recId){if(window.innerWidth>980){var recs=document.querySelectorAll('.t393');var scrollTop=window.pageYOffset;var body=document.body;var html=document.documentElement;var documentHeight=Math.max(body.scrollHeight,body.offsetHeight,html.clientHeight,html.scrollHeight,html.offsetHeight);for(var i=0;i<recs.length;i++){var rec=recs[i];var appearOffset=rec.getAttribute('data-appearoffset');var hideOffset=rec.getAttribute('data-hideoffset');if(appearOffset){if(appearOffset.indexOf('vh')>-1){appearOffset=Math.floor((window.innerHeight*(parseInt(appearOffset)/100)))}
appearOffset=parseInt(appearOffset,10);if(scrollTop>=appearOffset){if(rec.style.visibility==='hidden'){rec.style.visibility='visible';t393__fadeIn(rec)}}else{rec.style.visibility='hidden'}}
if(hideOffset){if(hideOffset.indexOf('vh')>-1){hideOffset=Math.floor((window.innerHeight*(parseInt(hideOffset)/100)))}
hideOffset=parseInt(hideOffset,10);if(scrollTop+window.innerHeight>=documentHeight-hideOffset){if(rec.style.visibility!=='hidden'){rec.style.visibility='hidden'}}else if(appearOffset){if(scrollTop>=appearOffset){rec.style.visibility='visible'}}else{rec.style.visibility='visible'}}}}}
function t393__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=''}},30)}
function t1003_init(recId,angle){var rec=document.getElementById('rec'+recId);if(!rec)return;var container=rec.querySelector('.t1003');if(!container)return;t1003_calc(rec,recId,angle);window.addEventListener('resize',t_throttle(function(){t1003_calc(rec,recId,angle)},300));window.addEventListener('load',function(){t1003_calc(rec,recId,angle)});container.addEventListener('displayChanged',function(){t1003_calc(rec,recId,angle);var content=container.querySelector('.t1003__content');var contentAnimName=content?window.getComputedStyle(content).animationName:'';if(!contentAnimName)return;content.style.animationName='';setTimeout(function(){content.style.animationName=contentAnimName})})}
function t1003_calc(rec,recId,angle){var wrapper=rec.querySelector('.t1003__wrapper');var contentWrapper=rec.querySelector('.t1003__content-wrapper');var content=rec.querySelector('.t1003__content');var items=content.querySelectorAll('.t1003__item');var img=items[0].querySelector('.t1003__bgimg');var index=0;if(img){for(var i=0;i<items.length;i++){if(items[i].querySelector('.t1003__bgimg').classList.contains('loaded')){index=i;break}}}
var itemWidth=items[index].offsetWidth;var windowWidth=window.innerWidth;var itemsToDisplay=parseInt(windowWidth/itemWidth)+3;var direction='';if(angle)t1003_calcRotatedWidth(rec,angle);if(wrapper.getAttribute('data-marquee-direction')==='opposite')direction='right';for(var i=1;i<items.length;i++){t1003__remove(items[i])}
for(var i=0;i<itemsToDisplay;i++){if(direction==='right'){content.insertBefore(items[index].cloneNode(!0),items[0])}else{content.insertBefore(items[index].cloneNode(!0),items[0].nextSibling)}}
t1003_anim(rec,itemWidth,recId,direction);content.style.animationName='t1003__anim-scrolling_'+recId;contentWrapper.style.opacity='1'}
function t1003_calcRotatedWidth(rec,angle){var outer=rec.querySelector('.t1003__outer');var wrapper=rec.querySelector('.t1003__wrapper');var wrapperOpacity=wrapper.style.opacity;wrapper.removeAttribute('style');angle=parseFloat(angle.replace('deg',''),10);var windowWidth=window.innerWidth;var angleRad=(angle*Math.PI)/180;var sin=Math.sin(angleRad);var paddingCoeff=Math.abs(Math.tan(angleRad)/2);var padding=windowWidth*paddingCoeff;var rotatedHeight=Math.abs(sin*windowWidth);wrapper.style.width='calc(100vw + '+padding+'px)';wrapper.style.padding='0 '+padding+'px';if(wrapperOpacity)wrapper.style.opacity=wrapperOpacity;var wrapperStyle=getComputedStyle(wrapper,null);var wrapperPaddingTop=parseInt(wrapperStyle.paddingTop)||0;var wrapperPaddingBottom=parseInt(wrapperStyle.paddingBottom)||0;var wrapperPaddingLeft=parseInt(wrapperStyle.paddingLeft)||0;var wrapperPaddingRight=parseInt(wrapperStyle.paddingRight)||0;var wrapperWidth=wrapper.clientWidth-(wrapperPaddingLeft+wrapperPaddingRight);var wrapperHeight=wrapper.clientHeight-(wrapperPaddingTop+wrapperPaddingBottom);var operator=(sin<0)?'':'-';outer.style.height=(rotatedHeight+wrapperHeight)+'px';if(window.isIE){wrapper.style.width='';wrapper.style.marginLeft='-'+wrapperWidth/2+'px';wrapper.style.marginTop=operator+wrapperHeight/2+'px'}}
function t1003_anim(rec,itemWidth,id,direction){var animationName='t1003__anim-scrolling_'+id;var speedAttr=rec.querySelector('.t1003__wrapper').getAttribute('data-marquee-speed');var start;var end;var speed;var seconds;var styleAnimation=rec.querySelector('#'+animationName);if(styleAnimation)t1003__remove(styleAnimation);if(!speedAttr)return;seconds=parseFloat(speedAttr.replace('s',''));speed=(itemWidth/100)*seconds;rec.querySelector('.t1003__content').style.animationDuration=speed+'s';if(direction==='right'){start=itemWidth*-1;end=0}else{start=0;end=itemWidth*-1}
var style=document.createElement('style');style.id=animationName;style.innerHTML='@keyframes '+animationName+'{'+'0% {'+'transform: translateX('+start+'px);'+'-webkit-transform: translateX('+start+'px);'+'}'+'100% {'+'transform: translateX('+end+'px);'+'-webkit-transform: translateX('+end+'px);'+'}'+'}';rec.appendChild(style)}
function t1003__remove(el){if(el&&el.parentNode){el.parentNode.removeChild(el)}}
function t983_init(recId){var rec=document.getElementById('rec'+recId);if(!rec)return;var container=rec.querySelector('.t983');if(!container)return;window.addEventListener('resize',t_throttle(function(){if(window.noAdaptive&&window.noAdaptive===!0&&window.isMobile)return;t983_unifyHeights(recId);t983_translateBlock(recId)}));window.addEventListener('load',function(){t983_unifyHeights(recId);t983_translateBlock(recId)});container.addEventListener('displayChanged',t_throttle(function(){t983_unifyHeights(recId);t983_translateBlock(recId)}));t983_unifyHeights(recId);t983_translateBlock(recId);t983__updateLazyLoad(recId);t_onFuncLoad('t_card__moveClickOnCard',function(){t_card__moveClickOnCard(recId)});t_onFuncLoad('t_card__addFocusOnTab',function(){t_card__addFocusOnTab(recId)})}
function t983_translateBlock(recId){var rec=document.getElementById('rec'+recId);if(!rec)return;var container=rec.querySelector('.t983');if(!container)return;var hoverBlocks=rec.querySelectorAll('.t983__card-block_hover');var wrapMarginBottom=35;var isMobile=window.isMobile||window.innerWidth<960;for(var i=0;i<hoverBlocks.length;i++){var hoverBlock=hoverBlocks[i];var blockWrapper=t983_getParent(hoverBlock,'t983__card-block-wrapper');var card=t983_getParent(hoverBlock,'t983__card');var cardHeight=card.clientHeight;var diff=cardHeight-hoverBlock.offsetHeight-wrapMarginBottom*2;var cardHideDiff=hoverBlock.querySelector('.t983__card-hide').offsetHeight;blockWrapper.style.transform='translateY('+diff+'px)';if(!isMobile){hoverBlock.style.transform='translateY('+cardHideDiff+'px)'}else{hoverBlock.style.transform=null}}
if(hoverBlocks.length===0){var rows=(isMobile?rec.querySelectorAll('.t983__container'):rec.querySelectorAll('.t983__row'));for(var i=0;i<rows.length;i++){var row=rows[i];var cardBlocks=row.querySelectorAll('.t983__card-block');var maxHeightRow=0;var card=t983_getParent(cardBlocks[0],'t983__card');if(card){var cardStyle=getComputedStyle(card,null);var cardPaddingTop=parseInt(cardStyle.paddingTop)||0;var cardPaddingBottom=parseInt(cardStyle.paddingBottom)||0;var cardHeight=card.clientHeight-(cardPaddingTop+cardPaddingBottom);for(var j=0;j<cardBlocks.length;j++){var cardHide=cardBlocks[j].querySelector('.t983__card-hide');var cardHideHeight=cardHide?cardHide.offsetHeight:0;if(cardHideHeight>maxHeightRow)maxHeightRow=cardHideHeight}
for(var j=0;j<cardBlocks.length;j++){var cardBlock=cardBlocks[j];var cardShow=cardBlock.querySelector('.t983__card-show');var cardShowHeight=cardShow?cardShow.offsetHeight:0;var diff=cardHeight-cardShowHeight-maxHeightRow-wrapMarginBottom*2;if(window.innerWidth>=480){cardBlock.style.transform='translateY('+diff+'px)'}else{cardBlock.style.transform=null}}}}}}
function t983_unifyHeights(recId){var rec=document.getElementById('rec'+recId);if(!rec)return;var main=rec.querySelector('.t983');if(!main)return;var container=rec.querySelector('.t983__container');var rows=main.querySelectorAll('.t983__row');for(var i=0;i<rows.length;i++){var row=rows[i];var cardsContent=row.querySelectorAll('.t983__card-content');var cardsWrapper=row.querySelectorAll('.t983__card-wrapper');var card=row.querySelector('.t983__card');var cardStyle=getComputedStyle(card,null);var cardPaddingLeft=parseInt(cardStyle.paddingLeft)||0;var cardPaddingRight=parseInt(cardStyle.paddingRight)||0;var cardWidth=card.clientWidth-(cardPaddingLeft+cardPaddingRight);var maxHeight=0;var ratio=container.getAttribute('data-ratio');var minHeightFromRatio=0;switch(ratio){case '16_9':minHeightFromRatio=cardWidth*0.5625;break;case '4_3':minHeightFromRatio=cardWidth*0.75;break;case '3_2':minHeightFromRatio=cardWidth*0.6666;break;case '1_1':minHeightFromRatio=cardWidth;break;case '2_3':minHeightFromRatio=cardWidth*1.5;break;case '3_4':minHeightFromRatio=cardWidth*1.3333;break;case '9_16':minHeightFromRatio=cardWidth*1.7777;break}
for(var j=0;j<cardsContent.length;j++){var cardContentHeight=cardsContent[j].offsetHeight;if(cardContentHeight>maxHeight)maxHeight=cardContentHeight}
if(maxHeight>minHeightFromRatio){for(var j=0;j<cardsWrapper.length;j++){cardsWrapper[j].style.paddingBottom=maxHeight+'px'}}else{for(var j=0;j<cardsWrapper.length;j++){cardsWrapper[j].style.paddingBottom=null}}}}
function t983__updateLazyLoad(recId){var allRecords=document.getElementById('allrecords');if(window.lazy==='y'||allRecords.getAttribute('data-tilda-lazy')==='yes'){t_onFuncLoad('t_lazyload_update',function(){var scrollContainer=document.querySelector('#rec'+recId+' .t983__container_mobile-flex');var curMode=allRecords.getAttribute('data-tilda-mode');if(scrollContainer&&curMode!='edit'&&curMode!='preview'&&window.isMobile){scrollContainer.addEventListener('touchmove',t_throttle(function(){t_lazyload_update()}))}})}}
function t983_getParent(element,className){for(var p=element&&element.parentElement;p;p=p.parentElement){if(p.classList.contains(className)){return p}}}
var t336={};t336.initeffect=function(recId){var rec=document.getElementById('rec'+recId);if(!rec)return;var cell=rec.querySelector('.t336__cell');if(!cell)return;var button=cell.querySelector('.t336__button-container');if(!button)return;var textWrapper=cell.querySelector('.t336__textwrapper__content');var buttonHeight=0;t336__getPadding();if(!window.isMobile){cell.addEventListener('mouseenter',function(){if(buttonHeight===0)t336__getPadding();textWrapper.style.paddingBottom=buttonHeight+'px';button.classList.add('t336__button-container_show')});cell.addEventListener('mouseleave',function(){textWrapper.style.paddingBottom=null;button.classList.remove('t336__button-container_show')});var cardLink=rec.querySelector('.t-card__link');if(cardLink){cardLink.addEventListener('focus',function(){if(buttonHeight===0)t336__getPadding();textWrapper.style.paddingBottom=buttonHeight+'px';button.classList.add('t336__button-container_show')});cardLink.addEventListener('blur',function(){textWrapper.style.paddingBottom=null;button.classList.remove('t336__button-container_show')})}}else{textWrapper.style.paddingBottom=buttonHeight+'px';button.classList.add('t336__button-container_show')}
function t336__getPadding(){var buttonStyle=getComputedStyle(button,null);var buttonPaddingTop=parseInt(buttonStyle.paddingTop)||0;var buttonPaddingBottom=parseInt(buttonStyle.paddingBottom)||0;buttonHeight=button.clientHeight-(buttonPaddingTop+buttonPaddingBottom)}};function t336_init(recId){t_onFuncLoad('t_card__moveClickOnCard',function(){t_card__moveClickOnCard(recId)});t_onFuncLoad('t_card__addFocusOnTab',function(){t_card__addFocusOnTab(recId)})}
function t397_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('.t397__tab'):[];if(tildaMode!=='edit'&&tildaMode!=='preview'){t397_scrollToTabs(recid);var activeTab=rec.querySelector('.t397__tab_active');if(activeTab){var currentButton=activeTab.querySelector('.t397__title');if(currentButton){currentButton.setAttribute('tabindex',0);currentButton.setAttribute('aria-selected',!0)}
var currentTabIndex=activeTab.getAttribute('data-tab-number');var wrapper=rec.querySelector('.t397__wrapper');wrapper.setAttribute('data-tab-current',currentTabIndex)}}
t397_addAttributesToBlocksInsideTabs(recid,tabs);Array.prototype.forEach.call(tabs,function(tab,i){tab.setAttribute('data-tab-index',i);tab.addEventListener('click',function(event){var tabNumber=i+1;var targetTab=event.target.closest('.t397__tab');if(targetTab&&targetTab.classList.contains('t397__tab_active')&&!event.isTrusted)return;t397_switchBetweenTabs(recid,tabNumber,targetTab,tildaMode,tildaLazyMode)});tab.addEventListener('keydown',function(event){var currentIndex=Number(rec.querySelector('.t397__wrapper').getAttribute('data-tab-current'));var targetTab=event.target.closest('.t397__tab');if(targetTab&&targetTab.classList.contains('t397__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+'"]');t397_switchBetweenTabs(recid,currentIndex,targetTab,tildaMode,tildaLazyMode);t397_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+'"]');t397_switchBetweenTabs(recid,currentIndex,targetTab,tildaMode,tildaLazyMode);t397_showActiveTabFromKeyboard(recid,currentIndex,tabs);prevent=!0;break;default:break}
if(prevent){event.stopPropagation();event.preventDefault()}})});if(tabs.length){t397_alltabs_updateContent(recid);t397_updateContentBySelect(recid);var bgColor=rec?rec.style.backgroundColor:'#ffffff';var bgColorTargets=rec.querySelectorAll('.t397__select, .t397__firefoxfix');Array.prototype.forEach.call(bgColorTargets,function(target){target.style.background=bgColor})}
document.addEventListener('click',function(e){if(e.target.closest('[href*="#!/tab/'+recid+'"]')){var currentLink=e.target.closest('[href*="#!/tab/'+recid+'"]');var hash=currentLink.hash;t397_scrollToTabs(recid,hash)}})}
function t397_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 t397_switchBetweenTabs(recid,tabNumber,targetTab,tildaMode,tildaLazyMode){var rec=document.getElementById('rec'+recid);if(!rec)return;var activeTab=rec.querySelector('.t397__tab_active');if(activeTab){activeTab.classList.remove('t397__tab_active');var activeButton=activeTab.querySelector('.t397__title');if(activeButton){activeButton.setAttribute('tabindex',-1);activeButton.setAttribute('aria-selected',!1)}}
targetTab.classList.add('t397__tab_active');var targetButton=targetTab.querySelector('.t397__title');if(targetButton){targetButton.setAttribute('tabindex',0);targetButton.setAttribute('aria-selected',!0)}
t397_removeUrl();if(tildaMode!=='edit'&&tildaMode!=='preview'&&tabNumber&&typeof history.replaceState!=='undefined'){try{window.history.replaceState('','',window.location.origin+window.location.pathname+'#!/tab/'+recid+'-'+tabNumber)}catch(err){}}
rec.querySelector('.t397__wrapper').setAttribute('data-tab-current',tabNumber);t397_alltabs_updateContent(recid);t397_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, .t1067, .t1068, .t1069, .t1070, .t1071, .t1072, .t1053');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 t397_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('.t397__title');if(currentButton){currentButton.focus()}
var tabList=rec.querySelector('.t397__wrapper');if(tabList)tabList.setAttribute('data-tab-current',currentIndex)}
function t397_alltabs_updateContent(recid){var rec=document.getElementById('rec'+recid);if(!rec)return;var tabs=Array.prototype.slice.call(rec.querySelectorAll('.t397__tab:not(.t397__tab_active)'));var activeTab=rec.querySelector('.t397__tab_active');var select=rec.querySelector('.t397__select');if(!activeTab)return;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);var tabBlock=document.getElementById('rec'+hook);if(tabBlock&&(tabBlock.getAttribute('data-record-type')==397||tabBlock.getAttribute('data-record-type')==395)){var activeTab=tabBlock.querySelector('.t397__tab_active, .t395__tab_active');if(activeTab){var noActiveSubHooks=activeTab.getAttribute('data-tab-rec-ids').split(',');noActiveSubHooks.forEach(function(subhook){if(noActive.indexOf(subhook)===-1&&hookBlocks.indexOf(subhook)===-1)noActive.push(subhook)})}}})}});if(t397_checkVisibillityEl(activeTab)||t397_checkVisibillityEl(select)){hookBlocks.forEach(function(hook){if(!hook)return;var hookEl=document.getElementById('rec'+hook);var hookElRecordType=hookEl?hookEl.getAttribute('data-record-type'):'';if(hookEl){hookEl.classList.remove('t397__off');hookEl.classList.remove('t395__off');hookEl.setAttribute('aria-hidden',!1);hookEl.style.opacity=''}
t397_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('t397__off');hookEl.setAttribute('aria-hidden',!0)}
t397_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('t397__off');hookEl.setAttribute('aria-hidden',!0)}
t397_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,scrollHeight-window.innerHeight)}}
function t397_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(recid!==currentID){t397_alltabs_updateContent(currentID);t397_updateSelect(currentID);hookElTab=hookEl?hookEl.querySelector('.t397__tab'):null;if(hookElTab)hookElTab.click()}
break}}
function t397_checkVisibillityEl(el){return!!(el&&(el.offsetWidth||el.offsetHeight||el.getClientRects().length))}
function t397_updateContentBySelect(recid){var rec=document.getElementById('rec'+recid);if(!rec)return!1;var select=rec.querySelector('.t397__select');if(select){select.addEventListener('change',function(){var tabIndex=rec.querySelector('.t397__tab[data-tab-rec-ids=\''+select.value+'\'][data-tab-index="'+select.selectedIndex+'"]');if(tabIndex)tabIndex.click()})}}
function t397_updateSelect(recid){var rec=document.getElementById('rec'+recid);if(!rec)return!1;var activeTab=rec.querySelector('.t397__tab_active');var currentTabHooks=activeTab?activeTab.getAttribute('data-tab-index'):'';var select=rec.querySelector('.t397__select');if(select)select.selectedIndex=currentTabHooks}
function t397_scrollToTabs(recid,hash){var rec=document.getElementById('rec'+recid);var curUrl=hash||decodeURI(window.location.href);var tabIndexNumber=curUrl.indexOf('#!/tab/');if(tabIndexNumber===-1)return!1;var tabIndexNumberStart=curUrl.indexOf('tab/');var firstOptionSelect=rec?rec.querySelector('.t397__wrapper_mobile .t397__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('.t397'):null;var tabNumber=parseInt(curUrl.slice(tabIndexNumberStart+4+recid.length+1),10);var tabs=rec.querySelectorAll('.t397__tab');Array.prototype.forEach.call(tabs,function(tab,i){if(i===tabNumber-1){tab.click();tab.classList.add('t397__tab_active')}else{tab.classList.remove('t397__tab_active')}});var tabsMob=rec.querySelectorAll('.t397__wrapper_mobile .t397__select option');var activeTabMob=tabsMob.length?tabsMob[tabNumber-1]:null;if(activeTabMob)activeTabMob.selected=!0;setTimeout(function(){var targetOffset=tabBlock.getBoundingClientRect().top+window.pageYOffset;var target=window.innerWidth>960?targetOffset-200:targetOffset-100;if(target<0)target=0;t397_scrollToEl(target)},50)}
function t397_scrollToEl(elTopPos){var documentHeight=Math.max(document.body.scrollHeight,document.documentElement.scrollHeight,document.body.offsetHeight,document.documentElement.offsetHeight,document.body.clientHeight,document.documentElement.clientHeight);var bottomViewportPoint=documentHeight-document.documentElement.clientHeight;if(elTopPos>bottomViewportPoint)elTopPos=bottomViewportPoint;if(elTopPos===window.pageYOffset)return!1;var currentPosition=window.pageYOffset;var step=(elTopPos-currentPosition)/30;var difference=window.pageYOffset;var timerID=setInterval(function(){difference+=step;window.scrollTo(0,difference);document.body.setAttribute('data-scrollable','true');if(elTopPos-currentPosition<0&&window.pageYOffset<=elTopPos||elTopPos-currentPosition>0&&window.pageYOffset>=elTopPos){clearInterval(timerID);document.body.removeAttribute('data-scrollable')}},10)}
function t397_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){}}}}
var t778_POPUP_SHOWED_EVENT_NAME='catalog:popupShowed';var t778_POPUP_CLOSED_EVENT_NAME='catalog:popupClosed';function t778__init(recid){t_onFuncLoad('t_prod__init',function(){t_prod__init(recid)});t778_initPopup(recid);t778__hoverZoom_init(recid);t778__updateLazyLoad(recid);t778__alignButtons_init(recid);var rec=document.getElementById('rec'+recid);if(!rec)return;var quantityBtns=rec.querySelectorAll('.t778__col .t-store__prod__quantity, .t778__product-full .t-store__prod__quantity');if(quantityBtns.length){t_onFuncLoad('t_store_addProductQuantityEvents',function(){t778_initProductQuantity(recid)})}
var event=document.createEvent('HTMLEvents');event.initEvent('twishlist_addbtn',!0,!1);document.body.dispatchEvent(event)}
function t778_initProductQuantity(recid){var rec=document.getElementById('rec'+recid);if(!rec)return;var productList=rec.querySelectorAll('.t778__col, .t778__product-full');Array.prototype.forEach.call(productList,function(product){t_store_addProductQuantityEvents(product)})}
function t778__showMore(recid){var rec=document.querySelector('#rec'+recid+' .t778');if(!rec)return;var cardsShowLimit=parseInt(rec.getAttribute('data-show-count'),10);if(isNaN(cardsShowLimit)||cardsShowLimit<=0)return;var showMoreButton=rec.querySelector('.t778__showmore');if(!showMoreButton)return;if(!showMoreButton.querySelector('td').textContent){showMoreButton.querySelector('td').textContent=t778__dict()}
showMoreButton.style.display='inline-block';var allProductCards=rec.querySelectorAll('.t778__col');Array.prototype.forEach.call(allProductCards,function(productCard){productCard.style.display='none'});var cardsNumber=allProductCards.length;t778__showSeparator(rec,cardsShowLimit);for(var i=0;i<cardsShowLimit;i++){if(allProductCards[i]){allProductCards[i].style.display='inline-block'}}
showMoreButton.addEventListener('click',function(){var currentColumns=rec.querySelectorAll('.t778__col');var currentColumnsShowed=0;Array.prototype.forEach.call(currentColumns,function(column){if(column.style.display==='inline-block'){++currentColumnsShowed}});for(var i=0;i<cardsShowLimit+currentColumnsShowed;i++){if(allProductCards[i]){allProductCards[i].style.display='inline-block'}}
t778__alignButtons(recid);var event=document.createEvent('HTMLEvents');event.initEvent('displayChanged',!0,!1);rec.dispatchEvent(event);if(cardsShowLimit+currentColumnsShowed>=cardsNumber){showMoreButton.style.display='none'}
t778__showSeparator(rec,cardsShowLimit+currentColumnsShowed);if(window.lazy==='y'||document.getElementById('allrecords').getAttribute('data-tilda-lazy')==='yes'){t_onFuncLoad('t_lazyload_update',function(){t_lazyload_update()})}})}
function t778__showSeparator(rec,cardsShowLimit){if(window.jQuery&&rec instanceof jQuery){rec=rec.get(0)}
var allSeparators=rec.querySelectorAll('.t778__separator_number');Array.prototype.forEach.call(allSeparators,function(separator){separator.classList.add('t778__separator_hide');if(separator.getAttribute('data-product-separator-number')<=cardsShowLimit){separator.classList.remove('t778__separator_hide')}})}
function t778__dict(){var dictionary={EN:'Load more',RU:'Загрузить еще',FR:'Charger plus',DE:'Mehr laden',ES:'Carga más',PT:'Carregue mais',UK:'Завантажити ще',JA:'もっと読み込む',ZH:'裝載更多',};var language=window.browserLang;return dictionary[language]?dictionary[language]:dictionary.EN}
function t778__hoverZoom_init(recid){if(window.isMobile)return;var rec=document.getElementById('rec'+recid);if(!rec)return;try{if(!rec.querySelector('[data-hover-zoom]')){return}
var hoverScript='https://static.tildacdn.com/js/tilda-hover-zoom-1.0.min.js';if(document.querySelector("script[src^='"+hoverScript+"']")){t_onFuncLoad('t_hoverZoom_init',function(){t_hoverZoom_init(recid)})}else{var script=document.createElement('script');script.type='text/javascript';script.src=hoverScript;script.onload=function(){setTimeout(function(){t_hoverZoom_init(recid)},500)};script.onerror=function(error){console.log('Upload script error: ',error)};document.head.appendChild(script)}}catch(error){console.log('Zoom image init error: '+error.message)}}
function t778__updateLazyLoad(recid){var scrollContainer=document.querySelector('#rec'+recid+' .t778__container_mobile-flex');var tRecords=document.querySelector('.t-records');if(!tRecords)return;var currentMode=tRecords.getAttribute('data-tilda-mode');var colFixed=document.querySelector('#rec'+recid+' .t778__col_fixed');var allRecords=document.getElementById('allrecords');var scrollFunc=t_throttle(function(){if(window.lazy==='y'||(allRecords&&allRecords.getAttribute('data-tilda-lazy')==='yes')){t_onFuncLoad('t_lazyload_update',function(){t_lazyload_update()})}});if(currentMode!=='edit'&&currentMode!=='preview'){if(scrollContainer)scrollContainer.addEventListener('scroll',scrollFunc);if(colFixed){var popup=document.querySelector('#rec'+recid+' .t-popup');if(popup)popup.addEventListener('scroll',scrollFunc)}}}
function t778__alignButtons_init(recid){var rec=document.getElementById('rec'+recid);if(!rec)return;if(!rec.querySelector('[data-buttons-v-align]')){return}
try{t778__alignButtons(recid);if(document.querySelector('.t-records').getAttribute('data-tilda-mode')==='edit'){setInterval(function(){t778__alignButtons(recid)},200)}
window.addEventListener('resize',t_throttle(function(){if(window.noAdaptive&&window.noAdaptive&&window.isMobile){return}
t778__alignButtons(recid)}));var wrapperBlock=rec.querySelector('.t778');if(wrapperBlock){wrapperBlock.addEventListener('displayChanged',function(){t778__alignButtons(recid)})}
if(window.isMobile){window.addEventListener('orientationchange',function(){t778__alignButtons(recid)})}}catch(error){console.log('buttons-v-align error: '+error.message)}}
function t778__alignButtons(recid){var rec=document.getElementById('rec'+recid);if(!rec)return;var contents=rec.querySelectorAll('.t778__content');var maxHeight=0;var maxHeightBtns=0;var container=rec.querySelector('.t-container');if(container){var itemsInRow=parseInt(container.getAttribute('data-blocks-per-row'),10)}
var mobileView=window.innerWidth<=480;var tableView=window.innerWidth<=960&&window.innerWidth>480;var mobileOneRow=window.innerWidth<=960&&rec.querySelector('.t778__container_mobile-flex');var mobileTwoItemsInRow=window.innerWidth<=480&&rec.querySelector('.t778 .mobile-two-columns');if(mobileView){itemsInRow=1}
if(tableView){itemsInRow=2}
if(mobileTwoItemsInRow){itemsInRow=2}
if(mobileOneRow){itemsInRow=999999}
var count=1;var textWrappersInRow=[];var btnWrappersInRow=[];Array.prototype.forEach.call(contents,function(content){var textWrapper=content.querySelector('.t778__textwrapper');if(textWrapper){textWrapper.style.height='auto';if(itemsInRow===1){textWrapper.style.height='auto'}else{textWrappersInRow.push(textWrapper);if(textWrapper.offsetHeight>maxHeight){maxHeight=textWrapper.offsetHeight}
if(maxHeight>0){Array.prototype.forEach.call(textWrappersInRow,function(textWrapper){textWrapper.style.height=maxHeight+'px'})}}}
var btnWrapper=content.querySelector('.t778__btn-wrapper');if(btnWrapper){btnWrapper.style.marginTop='';if(itemsInRow===1){btnWrapper.style.marginTop=''}else{btnWrappersInRow.push(btnWrapper);if(btnWrapper.offsetHeight>maxHeightBtns){maxHeightBtns=btnWrapper.offsetHeight}
Array.prototype.forEach.call(btnWrappersInRow,function(buttonWrapper){if(maxHeightBtns>buttonWrapper.offsetHeight){buttonWrapper.style.marginTop=maxHeightBtns-buttonWrapper.offsetHeight+'px'}})}}
if(count===itemsInRow){count=0;maxHeight=0;textWrappersInRow=[];maxHeightBtns=0;btnWrappersInRow=[]}
count++})}
function t778_initPopup(recid){var rec=document.getElementById('rec'+recid);if(!rec)return;var allPopupLinks=rec.querySelectorAll('[href^="#prodpopup"]');if(!allPopupLinks.length)return;var popup=rec.querySelector('.t-popup');popup.addEventListener('mousedown',function(event){var windowWidth=window.innerWidth;var maxScrollBarWidth=17;var windowWithoutScrollBar=windowWidth-maxScrollBarWidth;if(event.clientX>windowWithoutScrollBar){return}
if(event.target===this){t778_closePopup(document.body,popup)}});Array.prototype.forEach.call(allPopupLinks,function(popupLink){var product=popupLink.closest('.js-product');var productLid=product.getAttribute('data-product-lid');var productLinks=document.querySelectorAll('.r a[href$="#!/tproduct/'+recid+'-'+productLid+'"]');Array.prototype.forEach.call(productLinks,function(productLink){productLink.addEventListener('click',function(){if(rec.querySelector('[data-product-lid="'+productLid+'"]')){var linkToPopup=product.querySelector('[href^="#prodpopup"]');if(linkToPopup){var event=document.createEvent('HTMLEvents');event.initEvent('click',!0,!1);linkToPopup.dispatchEvent(event)}}})});popupLink.addEventListener('click',clickOnceHandler,{once:!0});function clickOnceHandler(event){event.preventDefault();t_onFuncLoad('t_sldsInit',function(){t_sldsInit(recid+' #t778__product-'+productLid)});popupLink.removeEventListener('click',clickOnceHandler,!1)}
popupLink.addEventListener('click',function(event){event.preventDefault();if(event.target.classList.contains('t1002__addBtn')||event.target.parentNode.classList.contains('t1002__addBtn')){return}
t778_showPopup(recid);Array.prototype.forEach.call(popup.querySelectorAll('.js-product'),function(product){product.style.display='none'});var productFull=popup.querySelector('.js-product[data-product-lid="'+productLid+'"]');if(productFull){productFull.style.display='block'}
var analitics=popup.getAttribute('data-track-popup');if(analitics&&productFull&&window.Tilda){var productName=productFull.querySelector('.js-product-name');if(productName){var virtualTitle=productName.textContent;if(!virtualTitle){virtualTitle='prod'+productLid}
Tilda.sendEventToStatistics(analitics,virtualTitle)}}
var currentUrl=window.location.href;if(currentUrl.indexOf('#!/tproduct/')===-1&&currentUrl.indexOf('%23!/tproduct/')===-1){if(history.replaceState){window.history.replaceState('','',window.location.href+'#!/tproduct/'+recid+'-'+productLid)}}
t778_updateSlider(recid+' #t778__product-'+productLid);setTimeout(function(){if(window.lazy==='y'||document.getElementById('allrecords').getAttribute('data-tilda-lazy')==='yes'){t_onFuncLoad('t_lazyload_update',function(){t_lazyload_update()})}},500)})});if(!document.getElementById('record'+recid)){t778_checkUrl(recid)}
if(popup&&popup.hasAttribute('data-fixed-button')){t778_fixedPopupButton(recid)}}
function t778_checkUrl(recid){var currentUrl=window.location.href;var tprodIndex=(currentUrl.indexOf('#!/tproduct/')+1||currentUrl.indexOf('%23!/tproduct/')+1||currentUrl.indexOf('#%21%2Ftproduct%2F')+1||currentUrl.indexOf('#!%2Ftproduct%2F')+1||currentUrl.indexOf('%23%21%2Ftproduct%2F')+1)-1;if(tprodIndex!==-1){var currentUrl=currentUrl.substring(tprodIndex,currentUrl.length);var curProdLid=currentUrl.substring(currentUrl.indexOf('-')+1,currentUrl.length);if(curProdLid){var curProdLidMatch=curProdLid.match(/([0-9]+)/g);if(curProdLidMatch){curProdLid=curProdLidMatch[0]}}
if(currentUrl.indexOf(recid)===-1)return;var rec=document.getElementById('rec'+recid);if(!rec)return;if(currentUrl.indexOf(recid)!==0&&rec.querySelector('[data-product-lid="'+curProdLid+'"]')){var currentLink=rec.querySelector('[data-product-lid="'+curProdLid+'"] [href^="#prodpopup"]');var event=document.createEvent('HTMLEvents');event.initEvent('click',!0,!1);if(currentLink){currentLink.dispatchEvent(event)}}}}
function t778_updateSlider(recid){var rec=document.querySelector('#rec'+recid);if(!rec)return;t_onFuncLoad('t_slds_SliderWidth',function(){t_slds_SliderWidth(recid)});var sliderWrapper=rec.querySelector('.t-slds__items-wrapper');var slider=rec.querySelector('.t-slds__container');var paddingLeft=parseInt(slider.style.paddingLeft,10)||0;var paddingRight=parseInt(slider.style.paddingRight,10)||0;var sliderWidth=slider.clientWidth-(paddingLeft+paddingRight);var position=parseInt(sliderWrapper.getAttribute('data-slider-pos'),10);sliderWrapper.style.transform='translate3d(-'+sliderWidth*position+'px, 0, 0)';t_onFuncLoad('t_slds_UpdateSliderHeight',function(){t_slds_UpdateSliderHeight(recid)});t_onFuncLoad('t_slds_UpdateSliderArrowsHeight',function(){t_slds_UpdateSliderArrowsHeight(recid)})}
function t778_showPopup(recid){var rec=document.getElementById('rec'+recid);if(!rec)return;var popup=rec.querySelector('.t-popup');popup.style.display='block';setTimeout(function(){popup.querySelector('.t-popup__container').classList.add('t-popup__container-animated');popup.classList.add('t-popup_show');t_triggerEvent(popup,t778_POPUP_SHOWED_EVENT_NAME)},50);setTimeout(function(){if(window.lazy==='y'||document.getElementById('allrecords').getAttribute('data-tilda-lazy')==='yes'){t_onFuncLoad('t_lazyload_update',function(){t_lazyload_update()})}},300);if(typeof t_triggerEvent==='function')t_triggerEvent(document.body,'popupShowed');document.body.classList.add('t-body_popupshowed');var event=document.createEvent('HTMLEvents');event.initEvent('twishlist_addbtn',!0,!1);document.body.dispatchEvent(event);var closeButtons=document.querySelectorAll('.t-popup__close, .t778__close-text');Array.prototype.forEach.call(closeButtons,function(closeButton){closeButton.addEventListener('click',function(){t778_closePopup(document.body,popup)})});document.addEventListener('keydown',function(event){var isGalleryShowedOldLib=document.body.classList.contains('t-zoomer__show');if(isGalleryShowedOldLib)return;var isGalleryShowedNewLib=document.body.classList.contains('t-zoomer__active');if(isGalleryShowedNewLib)return;var isPopupShowed=document.body.classList.contains('t-body_popupshowed');if(!isPopupShowed)return;if(popup&&popup.classList.contains('t-popup_show')){if(event.key==='Escape'){t778_closePopup(document.body,popup)}}})}
function t778_closePopup(body,popup){if(typeof t_triggerEvent==='function')t_triggerEvent(document.body,'popupHidden');body.classList.remove('t-body_popupshowed');popup.classList.remove('t-popup_show');var event=document.createEvent('HTMLEvents');event.initEvent('twishlist_addbtn',!0,!1);body.dispatchEvent(event);var currentUrl=window.location.href;var indexToRemove=currentUrl.indexOf('#!/tproduct/');if(/iPhone|iPad|iPod/i.test(navigator.userAgent)&&indexToRemove!==-1){indexToRemove=currentUrl.indexOf('%23!/tproduct/')}
currentUrl=currentUrl.substring(0,indexToRemove);setTimeout(function(){popup.scrollTop=0;popup.style.display='none';if(history.replaceState){window.history.replaceState('','',currentUrl)}},300);t_triggerEvent(popup,t778_POPUP_CLOSED_EVENT_NAME)}
function t778__unifyHeights(recid){var rec=document.getElementById('rec'+recid);if(!rec)return;var container=rec.querySelector('.t778__container');if(!container)return;var blockPerRow=container.getAttribute('data-blocks-per-row');var cards=container.querySelectorAll('.t778__col .t778__wrapper');var mobileScroll=container.querySelectorAll('.t778__scroll-icon-wrapper').length;if(window.innerWidth<=480&&mobileScroll===0){Array.prototype.forEach.call(cards,function(card){card.style.height='auto'});return}
var perRow=parseInt(blockPerRow,10);if(window.innerWidth<=960&&mobileScroll>0){perRow=cards.length}else{if(window.innerWidth<=960){var perRow=2}}
for(var i=0;i<cards.length;i+=perRow){var maxHeight=0;for(var j=0;j<perRow;j++){if(cards[i+j]){var card=cards[i+j].querySelector('.t778__content');var txt=card.querySelector('.t778__textwrapper');var btns=card.querySelector('.t778__btn-wrapper');var height=0;if(txt){height+=txt.offsetHeight}
if(btns){height+=btns.offsetHeight}
if(height>maxHeight){maxHeight=height}}}
if(!maxHeight)continue;for(var j=0;j<perRow;j++){if(cards[i+j]){var card=cards[i+j].querySelector('.t778__content');card.style.height=maxHeight+'px'}}}}
function t778_fixedPopupButton(recId){var rec=document.getElementById('rec'+recId);if(!rec)return;var MOBILE_MAX_WIDTH=560;var popup=rec.querySelector('.t-popup');var popupContainer=popup.querySelector('.t-popup__container');var btnWrappers=rec.querySelectorAll('.t778__btn-wrapper');Array.prototype.forEach.call(btnWrappers,function(el){el.classList.add('t778__btn-wrapper-fixed')});function addStyle(){popupContainer.style.paddingBottom='90px';popupContainer.style.cssText+=';transform:none !important;'}
function resetStyle(){popupContainer.style.paddingBottom='';popupContainer.style.transform=''}
function handleResize(){if(window.innerWidth>MOBILE_MAX_WIDTH){resetStyle();return}
addStyle()}
if(window.isMobile){window.addEventListener('orientationchange',handleResize)}
popup.addEventListener(t778_POPUP_SHOWED_EVENT_NAME,function(){setTimeout(function(){handleResize()})});popup.addEventListener(t778_POPUP_CLOSED_EVENT_NAME,function(){resetStyle()});window.addEventListener('resize',handleResize)}
function t142_checkSize(recId){var rec=document.getElementById('rec'+recId);if(!rec)return;var button=rec.querySelector('.t142__submit');if(!button)return;var buttonStyle=getComputedStyle(button,null);var buttonPaddingTop=parseInt(buttonStyle.paddingTop)||0;var buttonPaddingBottom=parseInt(buttonStyle.paddingBottom)||0;var buttonHeight=button.clientHeight-(buttonPaddingTop+buttonPaddingBottom)+5;var textHeight=button.scrollHeight;if(buttonHeight<textHeight){button.classList.add('t142__submit-overflowed')}}
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 t498_unifyHeights(recId){var rec=document.getElementById('rec'+recId);if(!rec)return;var containers=rec.querySelectorAll('.t498 .t-container');for(var i=0;i<containers.length;i++){var container=containers[i];var heightBox=0;var cols=container.querySelectorAll('.t498__col');for(var j=0;j<cols.length;j++){cols[j].style.height=''}
for(var j=0;j<cols.length;j++){var col=cols[j];var colStyle=getComputedStyle(col,null);var colPaddingTop=parseInt(colStyle.paddingTop)||0;var colPaddingBottom=parseInt(colStyle.paddingBottom)||0;var colHeight=col.clientHeight-(colPaddingTop+colPaddingBottom);var colWrap=col.querySelector('.t498__col-wrapper');var colWrapStyle=getComputedStyle(colWrap,null);var colWrapPaddingTop=parseInt(colWrapStyle.paddingTop)||0;var colWrapPaddingBottom=parseInt(colWrapStyle.paddingBottom)||0;var colWrapHeight=colWrap.clientHeight-(colWrapPaddingTop+colWrapPaddingBottom);if(colHeight<colWrapHeight){col.style.height=colWrapHeight+'px';heightBox=colWrapHeight}
if(colHeight>heightBox)heightBox=colHeight}
if(window.innerWidth>=960){for(var j=0;j<cols.length;j++){cols[j].style.height=heightBox+'px'}}else{for(var j=0;j<cols.length;j++){cols[j].style.height='auto'}}}};function t404_unifyHeights(recId){var rec=document.getElementById('rec'+recId);if(!rec)return;var mainContainer=rec.querySelector('.t404');if(!mainContainer)return;var containers=rec.querySelectorAll('.t-container');for(var i=0;i<containers.length;i++){var container=containers[i];var titles=container.querySelectorAll('.t404__title');var descrs=container.querySelectorAll('.t404__descr');var maxHeight=0;for(var j=0;j<titles.length;j++){var title=titles[j];title.style.height='';var titleStyle=getComputedStyle(title,null);var titlePaddingTop=parseInt(titleStyle.paddingTop)||0;var titlePaddingBottom=parseInt(titleStyle.paddingBottom)||0;var titleHeight=title.clientHeight-(titlePaddingTop+titlePaddingBottom);if(titleHeight>maxHeight)maxHeight=titleHeight}
if(window.innerWidth>=960){for(var j=0;j<titles.length;j++){titles[j].style.height=maxHeight+'px'}}else{for(var j=0;j<titles.length;j++){titles[j].style.height='auto'}}
maxHeight=0;for(var j=0;j<descrs.length;j++){var descr=descrs[j];descr.style.height='';var descrStyle=getComputedStyle(descr,null);var descrPaddingTop=parseInt(descrStyle.paddingTop)||0;var descrPaddingBottom=parseInt(descrStyle.paddingBottom)||0;var descrHeight=descr.clientHeight-(descrPaddingTop+descrPaddingBottom);if(descrHeight>maxHeight)maxHeight=descrHeight}
if(window.innerWidth>=960){for(var j=0;j<descrs.length;j++){descrs[j].style.height=maxHeight+'px'}}else{for(var j=0;j<descrs.length;j++){descrs[j].style.height='auto'}}}}
function t404_unifyHeightsTextwrapper(recId){var rec=document.getElementById('rec'+recId);if(!rec)return;var mainContainer=rec.querySelector('.t404');if(!mainContainer)return;var containers=rec.querySelectorAll('.t-container');for(var i=0;i<containers.length;i++){var container=containers[i];var textWrappers=container.querySelectorAll('.t404__textwrapper');var maxHeight=0;for(var j=0;j<textWrappers.length;j++){var textWrapper=textWrappers[j];textWrapper.style.height='auto';var textWrapperStyle=getComputedStyle(textWrapper,null);var textWrapperPaddingTop=parseInt(textWrapperStyle.paddingTop)||0;var textWrapperPaddingBottom=parseInt(textWrapperStyle.paddingBottom)||0;var textWrapperHeight=textWrapper.clientHeight-(textWrapperPaddingTop+textWrapperPaddingBottom);if(textWrapperHeight>maxHeight)maxHeight=textWrapperHeight}
if(window.innerWidth>=960){for(var j=0;j<textWrappers.length;j++){textWrappers[j].style.height=maxHeight+'px'}}else{for(var j=0;j<textWrappers.length;j++){textWrappers[j].style.height='auto'}}}}
function t404_showMore(recId){var rec=document.getElementById('rec'+recId);if(!rec)return;var container=rec.querySelector('.t404');if(!container)return;var cols=container.querySelectorAll('.t-col');var allRecords=document.getElementById('allrecords');for(var i=0;i<cols.length;i++){cols[i].style.display='none'}
var cardsLength=cols.length;var cardsCount=parseInt(container.getAttribute('data-show-count'),10);if(cardsCount>500)cardsCount=500;var startIndexShowBlock=cardsCount;var countShowBlock=cardsCount;var colsShow=t404__getShowBlocks(cols,startIndexShowBlock);for(var i=0;i<colsShow.length;i++){colsShow[i].style.display='block'}
var showMoreBtn=rec.querySelector('.t404__showmore');if(showMoreBtn){showMoreBtn.addEventListener('click',function(){startIndexShowBlock=(startIndexShowBlock+countShowBlock<=cardsLength)?startIndexShowBlock+countShowBlock:cardsLength;var newColsShow=t404__getShowBlocks(cols,startIndexShowBlock);for(var i=0;i<newColsShow.length;i++){newColsShow[i].style.display='block'}
if(startIndexShowBlock===cardsLength){showMoreBtn.style.display='none'}
t404__triggerEvent(container,'displayChanged');if(window.lazy==='y'||allRecords.getAttribute('data-tilda-lazy')==='yes'){t_onFuncLoad('t_lazyload_update',function(){t_lazyload_update()})}})}}
function t404__getShowBlocks(elements,index){var newElements=[];for(var i=0;i<elements.length;i++){if(i<=index-1)newElements.push(elements[i])}
return newElements}
function t404__triggerEvent(el,eventName){var event;if(typeof window.CustomEvent==='function'){event=new CustomEvent(eventName)}else if(document.createEvent){event=document.createEvent('HTMLEvents');event.initEvent(eventName,!0,!1)}else if(document.createEventObject){event=document.createEventObject();event.eventType=eventName}
event.eventName=eventName;if(el.dispatchEvent){el.dispatchEvent(event)}else if(el.fireEvent){el.fireEvent('on'+event.eventType,event)}else if(el[eventName]){el[eventName]()}else if(el['on'+eventName]){el['on'+eventName]()}}
function t635_init(recid,textColor,cursorColor){var rec=document.getElementById('rec'+recid);if(!rec)return;var textHolder=rec.querySelector('.t635__textholder');if(!textHolder)return;var typingRecIdList=textHolder.getAttribute('data-recid').split(',');if(typingRecIdList.length===0)return;t635_processCursorAndTextColor(rec,typingRecIdList,textColor,cursorColor);typingRecIdList.forEach(function(animRecId){var animBlock=document.getElementById('rec'+animRecId);if(!animBlock)return;var screenMin=parseInt(animBlock.getAttribute('data-screen-min'),10);var screenMax=parseInt(animBlock.getAttribute('data-screen-max'),10);if(isNaN(screenMax)&&isNaN(screenMin)){t635_startType(animRecId,textHolder)}else if(!isNaN(screenMax)&&!isNaN(screenMin)){if(window.innerWidth>=screenMin&&window.innerWidth<=screenMax){t635_startType(animRecId,textHolder)}}else if(!isNaN(screenMax)){if(window.innerWidth<=screenMax){t635_startType(animRecId,textHolder)}}else if(!isNaN(screenMin)){if(window.innerWidth>=screenMin){t635_startType(animRecId,textHolder)}}})}
function t635_processCursorAndTextColor(rec,typingRecIdList,textColor,cursorColor){if(!textColor&&!cursorColor)return;var style=document.createElement('style');var styleContent='';typingRecIdList.forEach(function(animRecId){var animBlock=document.getElementById('rec'+animRecId);if(!animBlock)return;if(textColor)styleContent+='#rec'+animRecId+' .t635__typing-text{color: '+textColor+';}';if(cursorColor)styleContent+='#rec'+animRecId+' .typed-cursor{color: '+cursorColor+';}'});if(!styleContent)return;style.textContent=styleContent;rec.appendChild(style)}
function t635_startType(animRecId,textHolder){var animText=t635_findAnimElem(animRecId);if(!animText)return;t635_wrapTypingTextSpan(animText);t635_updateAnimTextLimits(animRecId);t635_updateAnimTextLimitsOnResize(animRecId);t_onFuncLoad('Typed',function(){t635_updateTypingOnFuncLoad(animRecId,textHolder)})}
function t635_updateTypingOnFuncLoad(animRecId,textHolder){var phrasesList=[];for(var i=0;i<=5;i+=1){var currentPhrase=textHolder.getAttribute('data-text'+i);if(typeof currentPhrase==='string')phrasesList.push(currentPhrase.slice(0,80))}
if(!phrasesList.length)return;var animSpeed=parseInt(textHolder.getAttribute('data-speed'),10);var backspaceDelay=parseInt(textHolder.getAttribute('data-backspacing-delay'),10);var isTypingLoopDisabled=textHolder.getAttribute('data-loop')==='false';var animBlock=document.getElementById('rec'+animRecId);var animatedText=animBlock.querySelector('.t635__typing-text');if(!animatedText)return;var currentStateObj=t635_getCurrentScrollStateObj(animatedText);var isZeroBlock=animatedText.closest('.t396__elem');var isSBSAnimation=isZeroBlock&&isZeroBlock.getAttribute('data-animate-sbs-event');var typedInstance=t635_animateText(animRecId,phrasesList,animSpeed,isTypingLoopDisabled,backspaceDelay);if(currentStateObj.animTextBottom<currentStateObj.windowTop||currentStateObj.animTextTop>currentStateObj.windowBottom){t635_updatetypedInstance(typedInstance,'stop',!0)}
if('IntersectionObserver' in window&&!isSBSAnimation){var observer=new IntersectionObserver(function(entries){entries.forEach(function(entry){t635_processObservedTyping(entry,isTypingLoopDisabled,typedInstance)})});t635_processIntersectionObserver(function(){observer.observe(animatedText)})}else{var timerID=0;window.addEventListener('scroll',function(){if(timerID)return;timerID=setTimeout(function(){var currentStateObj=t635_getCurrentScrollStateObj(animatedText);var isOutside=currentStateObj.animTextBottom<currentStateObj.windowTop;if(!isOutside)isOutside=currentStateObj.animTextTop>currentStateObj.windowBottom;if(!isTypingLoopDisabled&&isOutside){t635_updatetypedInstance(typedInstance,'stop',!0)}else{t635_updatetypedInstance(typedInstance,'start',!1)}
clearTimeout(timerID);timerID=0},700)})}
if(isZeroBlock){var event=document.createEvent('HTMLEvents');event.initEvent('animationInited',!0,!1);window.dispatchEvent(event)}}
function t635_updatetypedInstance(typedInstance,action,resetFlag){if(resetFlag&&action==='stop')typedInstance.reset();typedInstance[action]()}
function t635_getCurrentScrollStateObj(animatedText){var animTextTop=animatedText.getAttribute('data-top-limit');var animTextBottom=animatedText.getAttribute('data-bottom-limit');var windowTop=window.pageYOffset;var windowBottom=windowTop+window.innerHeight;return{animTextTop:animTextTop,animTextBottom:animTextBottom,windowTop:windowTop,windowBottom:windowBottom,}}
function t635_wrapTypingTextSpan(animText){var animTextHtml=animText.innerHTML;var animTextSplitted=animTextHtml.split('|');animText.innerHTML=animTextSplitted[0]+'<span class="t635__typing-text"></span>'+animTextSplitted[1]}
function t635_processIntersectionObserver(callback){var recT809=document.querySelector('[data-record-type="809"]');if(!recT809){callback()}else{if(recT809.getAttribute('data-replacement-completed')==='yes'){callback()}else{document.addEventListener('replacingCompletedT809',function(){callback()})}}}
function t635_processObservedTyping(entry,isTypingLoopDisabled,typedInstance){if(!entry.isIntersecting&&isTypingLoopDisabled)return;if(entry.isIntersecting){var isTypeInited=Boolean(entry.target.typeInited);if(isTypeInited){t635_updatetypedInstance(typedInstance,'start',!1)}else{setTimeout(function(){t635_updatetypedInstance(typedInstance,'start',!1);entry.target.typeInited=!0},1000)}}else if(!isTypingLoopDisabled){t635_updatetypedInstance(typedInstance,'stop',!1)}}
function t635_findAnimElem(animRecId){var animBlock=document.getElementById('rec'+animRecId);if(!animBlock)return null;var possibleAnimElems=Array.prototype.slice.call(animBlock.querySelectorAll('h1, h2, h3, div'));if(!possibleAnimElems.length)return null;possibleAnimElems=possibleAnimElems.filter(function(elem){var elemHTML=elem.innerHTML;return elemHTML.indexOf('|')!==-1&&elemHTML.indexOf('t-map')===-1});return possibleAnimElems.length?possibleAnimElems[possibleAnimElems.length-1]:null}
function t635_updateAnimTextLimits(animRecId){var animBlock=document.getElementById('rec'+animRecId);var animText=animBlock?animBlock.querySelector('.t635__typing-text'):null;if(!animText)return;var topLimit=animText.getBoundingClientRect().top+window.pageYOffset;var bottomLimit=animBlock.getBoundingClientRect().top+window.pageYOffset+animBlock.clientHeight;animText.setAttribute('data-top-limit',topLimit.toString());animText.setAttribute('data-bottom-limit',bottomLimit.toString())}
function t635_updateAnimTextLimitsOnResize(animRecId){var timerID=0;var isTouchDevice=/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent);if(!isTouchDevice)isTouchDevice='ontouchend' in document&&navigator.userAgent.indexOf('AppleWebKit')!==-1;window.addEventListener(isTouchDevice?'orientationchange':'resize',function(){if(timerID)return;timerID=setTimeout(function(){t635_updateAnimTextLimits(animRecId);clearTimeout(timerID);timerID=0},600)})}
function t635_animateText(animRecId,phrasesList,animSpeed,isTypingLoopDisabled,backspaceDelay){if(!animSpeed||animSpeed<0)animSpeed=40;if(!backspaceDelay||backspaceDelay<0)backspaceDelay=800;var animRec='#rec'+animRecId+' .t635__typing-text';return new Typed(animRec,{strings:phrasesList,typeSpeed:animSpeed,startDelay:600,backDelay:backspaceDelay,loop:!isTypingLoopDisabled,})}
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}