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&&nowhighestTitle){highestTitle=titleDimension.height}});if(window.innerWidth>=960&&t1032_isVisible(container)){Array.prototype.forEach.call(allTitles,function(title){title.style.height=highestTitle+'px'})}else{Array.prototype.forEach.call(allTitles,function(title){title.style.height='auto'})} Array.prototype.forEach.call(allDescriptions,function(description){description.style.height='auto';var descriptionDimension=t1032_getElementDimension(description);if(descriptionDimension.height>highestDescription){highestDescription=descriptionDimension.height}});if(window.innerWidth>=960&&t1032_isVisible(container)){Array.prototype.forEach.call(allDescriptions,function(description){description.style.height=highestDescription+'px'})}else{Array.prototype.forEach.call(allDescriptions,function(description){description.style.height='auto'})} Array.prototype.forEach.call(allWrappers,function(wrapper){wrapper.style.height='auto';var wrapperDimension=t1032_getElementDimension(wrapper);if(wrapperDimension.height>highestWrapper){highestWrapper=wrapperDimension.height}});if(window.innerWidth>=960&&t1032_isVisible(container)){Array.prototype.forEach.call(allWrappers,function(wrapper){wrapper.style.height=highestWrapper+'px'})}else{Array.prototype.forEach.call(allWrappers,function(wrapper){wrapper.style.height='auto'})}}} function t1032_getElementDimension(element){var zeroes={height:0,width:0,paddingLeft:0,paddingRight:0,};if(!element)return zeroes;var elStyle=getComputedStyle(element);if(!elStyle)return zeroes;return{height:parseFloat(elStyle.height.replace('px',''),10),width:parseFloat(elStyle.width.replace('px',''),10),paddingLeft:parseFloat(elStyle.paddingLeft.replace('px',''),10),paddingRight:parseFloat(elStyle.paddingRight.replace('px',''),10),}} function t1032_isVisible(element){return!!(element.offsetWidth||element.offsetHeight||element.getClientRects().length)} function t1029_init(recId){t_onFuncLoad('t_card__moveClickOnCard',function(){t_card__moveClickOnCard(recId)});t_onFuncLoad('t_card__addFocusOnTab',function(){t_card__addFocusOnTab(recId)})} function t226_floating_init(elementOnInput){setTimeout(function(){var element=elementOnInput[0]?elementOnInput[0]:elementOnInput;var image=element.querySelector('img');if(image){image.onload=function(){t226_floating_inner_init(element)}}else{t226_floating_inner_init(element)}},100)} function t226_floating_inner_init(element){setTimeout(function(){var localWindow=window;var column=element.parentNode;var elementDimensions=t226_getElementDimension(element);element.style.maxWidth=elementDimensions.width+'px';element.style.width='100%';column.style.minHeight=elementDimensions.height+'px';var timer;var timerCount=0;var timerReact=5;localWindow.addEventListener('scroll',function(){if(timer){window.clearTimeout(timer);if(timerCount>=timerReact){t226_floating_scroll(element,localWindow,column);timerCount=0} timerCount++} timer=window.setTimeout(function(){t226_floating_scroll(element,localWindow,column);timerCount=0},50)});localWindow.addEventListener('resize',function(){localWindow.dispatchEvent(new CustomEvent('scroll'))});localWindow.dispatchEvent(new CustomEvent('scroll'))},100)} function t226_floating_scroll(element,localWindow,column){var windowWidth=localWindow.innerWidth;var elementDimensions=t226_getElementDimension(element);var columnDimensions=t226_getElementDimension(column);if(windowWidth<=1024){element.classList.remove('t226__fixedTop');element.classList.remove('t226__fixedBottom');element.classList.remove('t226__floating');return ''} element.style.maxWidth=columnDimensions.width+'px';if(columnDimensions.height0){column.style.height=element.style.height} var elementHeight=elementDimensions.height;var columnTop=column.getBoundingClientRect().top+window.pageYOffset;var columnHeight=columnDimensions.height;var columnBottom=columnTop+columnHeight;var windowTop=localWindow.pageYOffset;if(windowTop+elementHeight+50>=columnBottom){element.classList.add('t226__fixedBottom');element.classList.remove('t226__fixedTop');element.classList.remove('t226__floating')}else if(windowTop+50>columnTop){element.classList.add('t226__floating');element.classList.remove('t226__fixedBottom');element.classList.remove('t226__fixedTop')}else{element.classList.add('t226__fixedTop');element.classList.remove('t226__fixedBottom');element.classList.remove('t226__floating')}} function t226_getElementDimension(element){return{height:Math.round(parseFloat(getComputedStyle(element).height.replace('px',''),10)),width:Math.round(parseFloat(getComputedStyle(element).width.replace('px',''),10)),}} function t817_init(recid){var rec=document.querySelector('#rec'+recid);if(!rec)return;var currentMode=document.querySelector('.t-records').getAttribute('data-tilda-mode');var tabs=rec.querySelectorAll('.t817__tab');var select=rec.querySelector('.t817__select');var content=rec.querySelectorAll('.t817__content');if(!tabs.length)return;if(!content.length)return;if(currentMode!=='edit'&¤tMode!=='preview'){t817_scrollToTabs(recid);window.onload=function(){t817_scrollToTabs(recid)}} t817_showTabByUrl(recid,tabs,content,select);t817_showTab(recid,tabs,content,currentMode);t817_showTabMobile(recid,select,content,currentMode)} function t817_showTab(recid,tabs,content,currentMode){var rec=document.querySelector('#rec'+recid);if(!rec)return;Array.prototype.forEach.call(tabs,function(tabItem){tabItem.addEventListener('click',function(event){var tabNumber=this.getAttribute('data-tab-number');rec.querySelector('.t817__wrapper').setAttribute('data-tab-current',tabNumber);Array.prototype.forEach.call(tabs,function(tabItem){tabItem.classList.remove('t817__tab_active');var button=tabItem.querySelector('.t817__tab-name');if(button){button.setAttribute('tabindex',-1);button.setAttribute('aria-selected',!1)}});Array.prototype.forEach.call(content,function(contentItem){contentItem.classList.remove('t817__content_active');if(parseInt(contentItem.getAttribute('data-tab-content-number'),10)===parseInt(tabNumber,10)){contentItem.classList.add('t817__content_active')}});tabItem.classList.add('t817__tab_active');var currentButton=tabItem.querySelector('.t817__tab-name');if(currentButton){currentButton.setAttribute('tabindex',0);currentButton.setAttribute('aria-selected',!0)} t817_changeUrl(recid,currentMode,tabNumber);t817__updateLazyLoad(currentMode);event.preventDefault()});tabItem.addEventListener('keydown',function(event){var currentIndex=Number(rec.querySelector('.t817__wrapper').getAttribute('data-tab-current'));var prevent=!1;switch(event.key){case 'Left':case 'ArrowLeft':currentIndex=currentIndex===1?tabs.length:currentIndex-1;t817_showActiveTabFromKeyboard(recid,tabs,content,currentMode,currentIndex);prevent=!0;break;case 'Right':case 'ArrowRight':currentIndex=currentIndex===tabs.length?1:currentIndex+1;t817_showActiveTabFromKeyboard(recid,tabs,content,currentMode,currentIndex);prevent=!0;break;default:break} if(prevent){event.stopPropagation();event.preventDefault()}})})} function t817_showActiveTabFromKeyboard(recid,tabs,content,currentMode,currentIndex){var rec=document.querySelector('#rec'+recid);Array.prototype.forEach.call(tabs,function(tabItem){tabItem.classList.remove('t817__tab_active');var button=tabItem.querySelector('.t817__tab-name');if(button){button.setAttribute('tabindex',-1);button.setAttribute('aria-selected',!1)}});Array.prototype.forEach.call(content,function(contentItem){contentItem.classList.remove('t817__content_active')});var currentTab=rec.querySelector('[data-tab-number="'+currentIndex+'"]');if(!currentTab)return;currentTab.classList.add('t817__tab_active');var currentButton=currentTab.querySelector('.t817__tab-name');if(currentButton){currentButton.setAttribute('tabindex',0);currentButton.setAttribute('aria-selected',!0);currentButton.focus()} var currentContent=rec.querySelector('[data-tab-content-number="'+currentIndex+'"]');if(currentContent)currentContent.classList.add('t817__content_active');var tabList=rec.querySelector('.t817__wrapper');if(tabList)tabList.setAttribute('data-tab-current',currentIndex);t817_changeUrl(recid,currentMode,currentIndex);t817__updateLazyLoad(currentMode)} function t817_changeUrl(recid,currentMode,index){t817_removeUrl();if(currentMode!=='edit'&¤tMode!=='preview'){if(typeof history.replaceState==='function'){window.history.replaceState('','',window.location.href+'#!/tab/'+recid+'-'+index)}}} function t817__updateLazyLoad(currentMode){if(!currentMode){if(window.lazy==='y'||document.querySelector('#allrecords').getAttribute('data-tilda-lazy')==='yes'){t_onFuncLoad('t_lazyload_update',function(){t_lazyload_update()})}}} function t817_showTabMobile(recid,select,content,currentMode){select.addEventListener('change',function(event){var tabNumberMobile=this.value;Array.prototype.forEach.call(content,function(contentItem){contentItem.classList.remove('t817__content_active');if(parseInt(contentItem.getAttribute('data-tab-content-number'),10)===parseInt(tabNumberMobile,10)){contentItem.classList.add('t817__content_active')}});t817_removeUrl();if(currentMode!=='edit'&¤tMode!=='preview'){if(typeof history.replaceState==='function'){window.history.replaceState('','',window.location.href+'#!/tab/'+recid+'-'+tabNumberMobile)}} if(!currentMode){if(window.lazy==='y'||document.querySelector('#allrecords').getAttribute('data-tilda-lazy')==='yes'){t_onFuncLoad('t_lazyload_update',function(){t_lazyload_update()})}} event.preventDefault()})} function t817_showTabByUrl(recid,tabs,content,select){var rec=document.querySelector('#rec'+recid);var currentUrl=window.location.href;var tabIndexNumber=currentUrl.indexOf(recid+'-');var tabIndex=currentUrl.substring(tabIndexNumber+recid.length+1);if(tabIndexNumber!==-1){Array.prototype.forEach.call(tabs,function(tabItem){if(parseInt(tabItem.getAttribute('data-tab-number'),10)===parseInt(tabIndex,10)){tabItem.classList.add('t817__tab_active');tabItem.querySelector('.t817__tab-name').setAttribute('tabindex',0);tabItem.querySelector('.t817__tab-name').setAttribute('aria-selected',!0)}});Array.prototype.forEach.call(content,function(contentItem){if(parseInt(contentItem.getAttribute('data-tab-content-number'),10)===parseInt(tabIndex,10)){contentItem.classList.add('t817__content_active')}});select.value=tabIndex;rec.querySelector('.t817__wrapper').setAttribute('data-tab-current',tabIndex)}else{tabs[0].classList.add('t817__tab_active');content[0].classList.add('t817__content_active');rec.querySelector('.t817__wrapper').setAttribute('data-tab-current',1);tabs[0].querySelector('.t817__tab-name').setAttribute('tabindex',0);tabs[0].querySelector('.t817__tab-name').setAttribute('aria-selected',!0)}} function t817_scrollToTabs(recid){var currentUrl=window.location.href;var tabIndexNumber=currentUrl.indexOf('#!/tab/');var tabIndexNumberStart=currentUrl.indexOf('tab/');if(parseInt(tabIndexNumber,10)!==-1){var tabRecord=currentUrl.substring(tabIndexNumberStart+4,tabIndexNumberStart+4+recid.length);if(parseInt(tabRecord,10)===parseInt(recid,10)){var tabBlock=document.querySelector('#rec'+tabRecord).querySelector('.t817');var targetOffset=tabBlock.getBoundingClientRect().top+window.pageYOffset;if(window.innerWidth>960){var target=targetOffset-200}else{var target=targetOffset-100} t817_scrollToEl(target,300)}}} function t817_removeUrl(){var currentUrl=window.location.href;var indexToRemove=currentUrl.indexOf('#!/tab/');if(/iPhone|iPad|iPod/i.test(navigator.userAgent)&&indexToRemove<0){indexToRemove=currentUrl.indexOf('%23!/tab/')} currentUrl=currentUrl.substring(0,indexToRemove);if(parseInt(indexToRemove,10)!==-1){if(typeof history.replaceState==='function'){window.history.replaceState('','',currentUrl)}}} function t817_scrollToEl(elTopPos,duration){if(elTopPos===window.pageYOffset)return!1;var difference=window.pageYOffset;var cashedDiff=window.pageYOffset;var step=(10*(elTopPos||window.pageYOffset))/duration;var timer=setInterval(function(){if(cashedDiff>elTopPos){difference-=step}else{difference+=step} window.scrollTo(0,difference);document.body.setAttribute('data-scrollable','true');if(cashedDiff>elTopPos&&window.pageYOffset<=elTopPos){document.body.removeAttribute('data-scrollable');clearInterval(timer)}else if(cashedDiff<=elTopPos&&window.pageYOffset>=elTopPos){document.body.removeAttribute('data-scrollable');clearInterval(timer)}},10);var timer2=setTimeout(function(){clearInterval(timer);document.body.removeAttribute('data-scrollable');clearTimeout(timer2)},duration*2)} function t819_init(recid){var rec=document.querySelector('#rec'+recid);if(!rec)return;var currentMode=document.querySelector('.t-records').getAttribute('data-tilda-mode');var tabs=rec.querySelectorAll('.t819__tab');var select=rec.querySelector('.t819__select');var content=rec.querySelectorAll('.t819__content');if(!tabs.length)return;if(!content.length)return;if(currentMode!=='edit'&¤tMode!=='preview'){t819_scrollToTabs(recid);window.onload=function(){t819_scrollToTabs(recid)}} t819_showTabByUrl(recid,tabs,content,select);t819_showTab(recid,tabs,content,currentMode);t819_showTabMobile(recid,select,content,currentMode)} function t819_showTab(recid,tabs,content,currentMode){var rec=document.querySelector('#rec'+recid);if(!rec)return;Array.prototype.forEach.call(tabs,function(tabItem){tabItem.addEventListener('click',function(event){var tabNumber=this.getAttribute('data-tab-number');rec.querySelector('.t819__wrapper').setAttribute('data-tab-current',tabNumber);Array.prototype.forEach.call(tabs,function(tabItem){tabItem.classList.remove('t819__tab_active');var button=tabItem.querySelector('.t817__tab-name');if(button){button.setAttribute('tabindex',-1);button.setAttribute('aria-selected',!1)}});Array.prototype.forEach.call(content,function(contentItem){contentItem.classList.remove('t819__content_active');if(parseInt(contentItem.getAttribute('data-tab-content-number'),10)===parseInt(tabNumber,10)){contentItem.classList.add('t819__content_active')}});tabItem.classList.add('t819__tab_active');var currentButton=tabItem.querySelector('.t817__tab-name');if(currentButton){currentButton.setAttribute('tabindex',0);currentButton.setAttribute('aria-selected',!0)} t819_changeUrl(recid,currentMode,tabNumber);t819__updateLazyLoad(currentMode);event.preventDefault()});tabItem.addEventListener('keydown',function(event){var currentIndex=Number(rec.querySelector('.t819__wrapper').getAttribute('data-tab-current'));var prevent=!1;switch(event.key){case 'Left':case 'ArrowLeft':currentIndex=currentIndex===1?tabs.length:currentIndex-1;t819_showActiveTabFromKeyboard(recid,tabs,content,currentMode,currentIndex);prevent=!0;break;case 'Right':case 'ArrowRight':currentIndex=currentIndex===tabs.length?1:currentIndex+1;t819_showActiveTabFromKeyboard(recid,tabs,content,currentMode,currentIndex);prevent=!0;break;default:break} if(prevent){event.stopPropagation();event.preventDefault()}})})} function t819_showActiveTabFromKeyboard(recid,tabs,content,currentMode,currentIndex){var rec=document.querySelector('#rec'+recid);Array.prototype.forEach.call(tabs,function(tabItem){tabItem.classList.remove('t819__tab_active');var button=tabItem.querySelector('.t819__tab-name');if(button){button.setAttribute('tabindex',-1);button.setAttribute('aria-selected',!1)}});Array.prototype.forEach.call(content,function(contentItem){contentItem.classList.remove('t819__content_active')});var currentTab=rec.querySelector('[data-tab-number="'+currentIndex+'"]');if(!currentTab)return;currentTab.classList.add('t819__tab_active');var currentButton=currentTab.querySelector('.t819__tab-name');if(currentButton){currentButton.setAttribute('tabindex',0);currentButton.setAttribute('aria-selected',!0);currentButton.focus()} var currentContent=rec.querySelector('[data-tab-content-number="'+currentIndex+'"]');if(currentContent)currentContent.classList.add('t819__content_active');var tabList=rec.querySelector('.t819__wrapper');if(tabList)tabList.setAttribute('data-tab-current',currentIndex);t819_changeUrl(recid,currentMode,currentIndex);t819__updateLazyLoad(currentMode)} function t819_changeUrl(recid,currentMode,index){t819_removeUrl();if(currentMode!=='edit'&¤tMode!=='preview'){if(typeof history.replaceState==='function'){window.history.replaceState('','',window.location.href+'#!/tab/'+recid+'-'+index)}}} function t819__updateLazyLoad(currentMode){if(!currentMode){if(window.lazy==='y'||document.querySelector('#allrecords').getAttribute('data-tilda-lazy')==='yes'){t_onFuncLoad('t_lazyload_update',function(){t_lazyload_update()})}}} function t819_showTabMobile(recid,select,content,currentMode){select.addEventListener('change',function(event){var tabNumberMobile=this.value;Array.prototype.forEach.call(content,function(contentItem){contentItem.classList.remove('t819__content_active');if(parseInt(contentItem.getAttribute('data-tab-content-number'),10)===parseInt(tabNumberMobile,10)){contentItem.classList.add('t819__content_active')}});t819_removeUrl();if(currentMode!=='edit'&¤tMode!=='preview'){if(typeof history.replaceState==='function'){window.history.replaceState('','',window.location.href+'#!/tab/'+recid+'-'+tabNumberMobile)}} if(!currentMode){if(window.lazy==='y'||document.querySelector('#allrecords').getAttribute('data-tilda-lazy')==='yes'){t_onFuncLoad('t_lazyload_update',function(){t_lazyload_update()})}} event.preventDefault()})} function t819_showTabByUrl(recid,tabs,content,select){var rec=document.querySelector('#rec'+recid);var currentUrl=window.location.href;var tabIndexNumber=currentUrl.indexOf(recid+'-');var tabIndex=currentUrl.substring(tabIndexNumber+recid.length+1);if(tabIndexNumber!==-1){Array.prototype.forEach.call(tabs,function(tabItem){if(parseInt(tabItem.getAttribute('data-tab-number'),10)===parseInt(tabIndex,10)){tabItem.classList.add('t819__tab_active');tabItem.querySelector('.t819__tab-name').setAttribute('tabindex',0);tabItem.querySelector('.t819__tab-name').setAttribute('aria-selected',!0)}});Array.prototype.forEach.call(content,function(contentItem){if(parseInt(contentItem.getAttribute('data-tab-content-number'),10)===parseInt(tabIndex,10)){contentItem.classList.add('t819__content_active')}});select.value=tabIndex;rec.querySelector('.t819__wrapper').setAttribute('data-tab-current',tabIndex)}else{tabs[0].classList.add('t819__tab_active');content[0].classList.add('t819__content_active');rec.querySelector('.t819__wrapper').setAttribute('data-tab-current',1);tabs[0].querySelector('.t819__tab-name').setAttribute('tabindex',0);tabs[0].querySelector('.t819__tab-name').setAttribute('aria-selected',!0)}} function t819_scrollToTabs(recid){var currentUrl=window.location.href;var tabIndexNumber=currentUrl.indexOf('#!/tab/');var tabIndexNumberStart=currentUrl.indexOf('tab/');if(parseInt(tabIndexNumber,10)!==-1){var tabRecord=currentUrl.substring(tabIndexNumberStart+4,tabIndexNumberStart+4+recid.length);if(parseInt(tabRecord,10)===parseInt(recid,10)){var tabBlock=document.querySelector('#rec'+tabRecord).querySelector('.t819');var targetOffset=tabBlock.getBoundingClientRect().top+window.pageYOffset;if(window.innerWidth>960){var target=targetOffset-200}else{var target=targetOffset-100} t819_scrollToEl(target,300)}}} function t819_removeUrl(){var currentUrl=window.location.href;var indexToRemove=currentUrl.indexOf('#!/tab/');if(/iPhone|iPad|iPod/i.test(navigator.userAgent)&&indexToRemove<0){indexToRemove=currentUrl.indexOf('%23!/tab/')} currentUrl=currentUrl.substring(0,indexToRemove);if(parseInt(indexToRemove,10)!==-1){if(typeof history.replaceState==='function'){window.history.replaceState('','',currentUrl)}}} function t819_scrollToEl(elTopPos,duration){if(elTopPos===window.pageYOffset)return!1;var difference=window.pageYOffset;var cashedDiff=window.pageYOffset;var step=(10*(elTopPos||window.pageYOffset))/duration;var timer=setInterval(function(){if(cashedDiff>elTopPos){difference-=step}else{difference+=step} window.scrollTo(0,difference);document.body.setAttribute('data-scrollable','true');if(cashedDiff>elTopPos&&window.pageYOffset<=elTopPos){document.body.removeAttribute('data-scrollable');clearInterval(timer)}else if(cashedDiff<=elTopPos&&window.pageYOffset>=elTopPos){document.body.removeAttribute('data-scrollable');clearInterval(timer)}},10);var timer2=setTimeout(function(){clearInterval(timer);document.body.removeAttribute('data-scrollable');clearTimeout(timer2)},duration*2)} function t822_init(recid){t822_setHeight(recid);window.onload=function(){t822_setHeight(recid)};window.addEventListener('resize',function(){t_throttle(function(){if(window.noAdaptive&&window.$isMobile){return} t822_setHeight(recid)},200)});var currentBlock=document.querySelector('.t822');if(!currentBlock)return;currentBlock.addEventListener('displayChanged',function(){t822_setHeight(recid)})} function t822_setHeight(recid){var allContainer=document.querySelectorAll('#rec'+recid+' .t822 .t-container');if(!allContainer)return;Array.prototype.forEach.call(allContainer,function(container){var highestColumn=0;Array.prototype.forEach.call(container.querySelectorAll('.t822__col'),function(column){var columnChild=column.querySelector('.t822__col-wrapper');var childDimension=t822_getElementDimension(columnChild);var columnDimension=t822_getElementDimension(column);if(childDimension.height!=0){column.style.height=childDimension.height+'px'} columnDimension=t822_getElementDimension(column);if(columnDimension.height>highestColumn){highestColumn=columnDimension.height}});Array.prototype.forEach.call(container.querySelectorAll('.t822__col'),function(column){if(window.innerWidth>=960&&highestColumn!=0){column.style.height=highestColumn+'px'}else{column.style.height='auto'}})})} function t822_getElementDimension(element){return{height:parseInt(getComputedStyle(element).height.replace('px',''),10),width:parseInt(getComputedStyle(element).width.replace('px',''),10),}}