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 t694_init(recId){var rec=document.getElementById('rec'+recId);if(!rec)return;var container=rec.querySelector('.t694');if(!container)return;t694_setHeight(recId);setTimeout(function(){t694_setHeight(recId)},500);window.addEventListener('resize',t_throttle(function(){t694_setHeight(recId)}));container.addEventListener('displayChanged',function(){t694_setHeight(recId)});t_onFuncLoad('t_card__moveClickOnCard',function(){t_card__moveClickOnCard(recId)});t_onFuncLoad('t_card__addFocusOnTab',function(){t_card__addFocusOnTab(recId)})}
function t694_setHeight(recId){var rec=document.getElementById('rec'+recId);if(!rec)return;var container=rec.querySelector('.t694');if(!container)return;var rows=rec.querySelectorAll('.t694__row');var col=rec.querySelector('.t694__col');var ratio=container.getAttribute('data-tile-ratio');if(!col)return;var colStyle=getComputedStyle(col,null);var colPaddingLeft=parseInt(colStyle.paddingLeft)||0;var colPaddingRight=parseInt(colStyle.paddingRight)||0;var colHeight=(col.clientWidth-(colPaddingLeft+colPaddingRight))*+ratio;var maxHeight=0;if(window.innerWidth>=768){for(var i=0;i<rows.length;i++){var row=rows[i];var tables=row.querySelectorAll('.t694__table');for(var j=0;j<tables.length;j++){var table=tables[j];var textWrapHeight=table.querySelector('.t694__textwrapper').offsetHeight;var cell=table.querySelector('.t694__cell');if(cell.classList.contains('t694__button-bottom')){textWrapHeight+=table.querySelector('.t694__button-container').offsetHeight}
if(textWrapHeight>maxHeight)maxHeight=textWrapHeight}
if(maxHeight>colHeight){for(var j=0;j<tables.length;j++){tables[j].style.height=maxHeight+'px'}}else{for(var j=0;j<tables.length;j++){tables[j].style.height=''}}}}else{var tables=rec.querySelectorAll('.t694__table');for(var i=0;i<tables.length;i++){tables[i].style.height=''}}}
function t690_onSuccess(form){t_onFuncLoad('t_forms__onSuccess',function(){t_forms__onSuccess(form)})}
function t466_initMobileMenu(recid){var rec=document.getElementById('rec'+recid);if(!rec)return;var menu=rec.querySelector('.t466');var mobileList=rec.querySelector('.t466__mobile');var burger=rec.querySelector('.t-menuburger');menu.addEventListener('clickedAnchorInTooltipMenu',function(){rec.classList.remove('t466_opened');if(mobileList)t466_slideUp(mobileList)});if(screen.width>980)return;var bigContainer=menu.querySelector('.t466__container__bg_main');if(mobileList)mobileList.style.top=(bigContainer?bigContainer.offsetHeight+2:2)+'px';menu.addEventListener('click',function(e){var link=e.target.closest('.t466 .t-menuburger, a[href*=\'#\']');var burgerOpenClass='t-menuburger-opened';if(!link||link.closest('.tooltipstered')||link.closest('.t794__tm-link')||link.closest('.t978__tm-link')||link.closest('.t966__tm-link')){return}
burger.classList.contains(burgerOpenClass)?burger.classList.remove(burgerOpenClass):burger.classList.add(burgerOpenClass);rec.classList.toggle('t466_opened');if(burger.classList.contains('t-menuburger')){var expandedStatus=burger.classList.contains(burgerOpenClass);burger.setAttribute('aria-expanded',expandedStatus)}
t466_slideToggle(rec,mobileList,300)})}
function t466_slideUp(target,duration){if(!target)return;if(!duration)duration=500;var step=target.offsetHeight*10/duration;var difference=target.offsetHeight;target.style.overflow='hidden';target.setAttribute('data-slide','y');var timerID=setInterval(function(){difference-=step;target.style.height=difference+'px';if(difference<=0){target.style.height='';target.style.overflow='';target.style.display='none';target.removeAttribute('data-slide');clearInterval(timerID)}},10)}
function t466_slideDown(rec,target,duration){if(!target)return;if(!duration)duration=500;target.style.display='';var newDisplayValue=window.getComputedStyle(target).display==='none'?'block':window.getComputedStyle(target).display;target.style.display=newDisplayValue;var container=rec.querySelector('.t466');var targetRect=getComputedStyle(target);var targetTop=parseInt(targetRect.top)+parseInt(container.style.top);var targetMaxHeight=window.innerHeight-targetTop-10;var targetHeight=target.offsetHeight;var isTargetScroll=!1;if(targetHeight>targetMaxHeight){targetHeight=targetMaxHeight;isTargetScroll=!0}
target.style.height='0';target.style.overflow='hidden';var step=targetHeight*10/duration;var difference=0;var timerID=setInterval(function(){target.style.height=difference+'px';difference+=step;if(target.offsetHeight>=targetHeight){target.style.overflow='';if(isTargetScroll){target.style.height=targetHeight+'px';target.style.overflowY='auto'}else{target.style.height=''}
target.style.display=newDisplayValue;clearInterval(timerID)}},10)}
function t466_slideToggle(rec,target,duration){if(!target)return;if(!duration&&duration!==0)duration=300;if(window.getComputedStyle(target).display==='none'){return t466_slideDown(rec,target,duration)}else{return t466_slideUp(target,duration)}}
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);var excludeHashes=['#!/tproduct/','#!/tab/','#opencart']
if(excludeHashes.includes(hash)){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){var SCROLL_DURATION_MS=500;var body=document.body;if(body.getAttribute('data-scroll'))return;var scrollTargetY=t270_getTarget(hash,offset);if(isNaN(scrollTargetY))return;var canSmoothScroll=window.CSS&&window.CSS.supports('scroll-behavior','smooth')&&'scrollBehavior' in document.documentElement.style;var userAgent=navigator.userAgent.toLowerCase();var isAndroid=userAgent.indexOf('android')!==-1;if(window.isMobile&&!isAndroid&&canSmoothScroll){body.setAttribute('data-scroll','true');window.scrollTo({left:0,top:scrollTargetY,behavior:'smooth'});setTimeout(function(){body.removeAttribute('data-scroll')},SCROLL_DURATION_MS)}else{t270_smoothScrollTo(scrollTargetY,SCROLL_DURATION_MS)}}
function t270_smoothScrollTo(targetY,duration=500){var body=document.body;var startY=window.scrollY||window.pageYOffset;var deltaY=targetY-startY;var startTime=performance.now();function easeInOutQuad(t){return Math.pow(t,2)}
function scroll(){var currentTime=performance.now();var elapsedTime=Math.min((currentTime-startTime)/duration,1);var ease=easeInOutQuad(elapsedTime);window.scrollTo(0,startY+deltaY*ease);if(elapsedTime<1){requestAnimationFrame(scroll)}else{body.removeAttribute('data-scroll');body.removeAttribute('data-scrollable');window.scrollTo(0,targetY)}}
body.setAttribute('data-scroll','true');body.setAttribute('data-scrollable','true');requestAnimationFrame(scroll)}
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)+'"], div[id="'+hash.substr(1)+'"]');if(!target)return}
target=parseInt((target.getBoundingClientRect().top+window.pageYOffset)-offset,10);target=Math.max(target,0);return target}