101event.preventDefault()})}}102function t887_init(recid){var rec=document.querySelector('#rec'+recid);if(!rec)return;var notificationBlock=rec.querySelector('.t887');var closeButton=rec.querySelector('.t887__icon-close');var storageItem=notificationBlock.getAttribute('data-storage-item');var lastOpen;try{lastOpen=localStorage.getItem(storageItem)}catch(error){console.log('Your web browser does not support localStorage. Error status: ',error)}103if(!lastOpen){notificationBlock.classList.remove('t887_closed')}104closeButton.addEventListener('click',function(event){notificationBlock.classList.add('t887_closed');try{localStorage.setItem(storageItem,Math.floor(Date.now()/1000))}catch(error){console.log('Your web browser does not support localStorage. Error status: ',error)}105event.preventDefault()})}106function t972_init(recId){t972_runGtag([],'default');t972_handleWidgetLinks(recId);var rec=document.querySelector('#rec'+recId);if(!rec)return;var widget=rec.querySelector('.t972__widget');var links=document.querySelectorAll('a[href="#opencookiebanner"]');var cookieConsent=t972_getCookie('t_cookiesConsentGiven');var cookieReject=t972_getCookie('t_cookiesRejectAll');if(cookieConsent.val){t972_acceptCookies();if(!widget&&!links.length)return}107if(!cookieConsent.val&&!cookieReject.val){var wrapper=rec.querySelector('.t972');var cookiesBanner=wrapper.querySelector('.t972__banner');if(widget){var widgetBtn=wrapper.querySelector('.t972__widget-button');t972_showWidget(widgetBtn,cookiesBanner)}else{cookiesBanner.classList.add('t972__banner_show')}}
t972_addEvents(recId);t972_addCookieEvents(recId);t972_translateToggle(recId)}function t972_initPreview(recId){t972_addEvents(recId);t972_translateToggle(recId)}function t972_runGtag(allowedCookiesList,action){var advertisingStatus=allowedCookiesList.indexOf('advertising')!==-1?'granted':'denied';var analyticsStatus=allowedCookiesList.indexOf('analytics')!==-1?'granted':'denied';t972_gtag('consent',action,{ad_storage:advertisingStatus,ad_user_data:advertisingStatus,ad_personalization:advertisingStatus,analytics_storage:analyticsStatus,})}function t972_gtag(){dataLayer.push(arguments)}function t972_getCookie(name){var matches=document.cookie.match(new RegExp('(?:^|; )'+name.replace(/([\.$?*|{}\(\)\[\]\\\/\+^])/g,'\\$1')+'=([^;]*)'));var cookie={name:'',val:'',};if(matches){try{cookie={name:name,val:decodeURIComponent(matches[1]),}}catch(e){}}return cookie}function t972_createCookie(name,value,days){var expires;if(days){var date=new Date();var dayInMs=24*60*60*1000;date.setTime(date.getTime()+days*dayInMs);expires='; expires='+date.toGMTString()}else{expires=''}var isInIframe=window.self!==window.top;var isHTTPS=window.location.protocol==='https:';var cookieString=name+'='+value+expires+'; path=/';if(isInIframe){if(isHTTPS){cookieString+='; SameSite=None; Secure'}else{cookieString+='; SameSite=Lax'}}else{cookieString+='; path=/'}document.cookie=cookieString}function t972_deleteCookie(name){var cookieString=name+'=; max-age=0; path=/';document.cookie=cookieString}function t972_confirmCookies(list){var checkBoxes=document.querySelectorAll('.t972__categories input[name="cookie_type"]');var selectedCookies=[];if(list==='all'){Array.prototype.forEach.call(checkBoxes,function(checkBox){checkBox.checked=!0})}else if(list==='reject'){Array.prototype.forEach.call(checkBoxes,function(checkBox){checkBox.checked=!1})}Array.prototype.forEach.call(checkBoxes,function(checkBox){if(checkBox.checked===!0){selectedCookies.push(checkBox.value)}});var cookiesRejectAll=t972_getCookie('t_cookiesRejectAll').val;if(cookiesRejectAll&&list!=='reject'){t972_deleteCookie('t_cookiesRejectAll')}var allowedCookiesList=JSON.stringify(selectedCookies);t972_createCookie('t_cookiesCategories',allowedCookiesList,365);t972_acceptCookies();t972_runGtag(allowedCookiesList,'update')}function t972_acceptCookies(){var allowedCookiesList=t972_getCookie('t_cookiesCategories').val;var scriptsList=document.querySelectorAll('script[data-tilda-cookie-type]:not([data-tilda-cookie-consent="accepted"])');Array.prototype.forEach.call(scriptsList,function(item){if(allowedCookiesList.indexOf(item.getAttribute('data-tilda-cookie-type'))!==-1){if(item.getAttribute('type')&&item.getAttribute('type')==='text/plain'){var str=item.innerHTML;item.innerHTML='';item.setAttribute('type','text/javascript');item.innerHTML=str.replace('}, 2000);','}, 200);');if(allowedCookiesList.indexOf('advertising')==-1){if(str.indexOf('google-analytics')!==-1){item.innerHTML=str.replace('auto','{ storeGac: false }')}}if(allowedCookiesList.indexOf('analytics')!==-1){if(typeof tildastat=='function'){tildastat('cookieenabled')}else{setTimeout(function(){if(typeof tildastat=='function'){tildastat('cookieenabled')}},1000)}}item.setAttribute('data-tilda-cookie-consent','accepted')}if(item.getAttribute('data-src')){item.setAttribute('src',item.getAttribute('data-src'));item.setAttribute('data-tilda-cookie-consent','accepted')}}});t972_createCookie('t_cookiesConsentGiven','true',365)}function t972_addEvents(recId){var rec=document.querySelector('#rec'+recId);if(!rec)return;var wrapper=rec.querySelector('.t972');if(!wrapper)return;var allowedCookiesListData=t972_getCookie('t_cookiesCategories');var allowedCookiesList=[];if(allowedCookiesListData&&allowedCookiesListData.val){allowedCookiesList=JSON.parse(allowedCookiesListData.val)}var settingsBtn=wrapper.querySelector('.t972__settings-btn');var settingsHeader=wrapper.querySelector('.t972__settings-header');var categoryTitle=wrapper.querySelectorAll('.t972__category-header');var categoryToggle=wrapper.querySelectorAll('.t972__toggle-input');var cookiesBanner=wrapper.querySelector('.t972__banner');var settingsBanner=wrapper.querySelector('.t972__settings');var widgetBtn=wrapper.querySelector('.t972__widget-button');if(settingsBtn){settingsBtn.addEventListener('click',function(){cookiesBanner.classList.remove('t972__banner_show');settingsBanner.classList.add('t972__settings_show')})}if(settingsHeader){settingsHeader.addEventListener('click',function(){cookiesBanner.classList.add('t972__banner_show');settingsBanner.classList.remove('t972__settings_show')})}Array.prototype.forEach.call(categoryTitle,function(title){title.addEventListener('click',function(){var categoryBody=title.closest('.t972__category').querySelector('.t972__category-body');title.classList.toggle('t972__opened');title.style.pointerEvents='none';t972_slideToggle(categoryBody,title,300)})});Array.prototype.forEach.call(categoryToggle,function(toggle){toggle.addEventListener('change',function(){var toggleText=toggle.closest('.t972__category-toggle').querySelector('.t972__toggle-txt');if(toggle.checked){toggleText.classList.add('t972__category-enabled');toggleText.textContent=t972_trans('enabled')}else{toggleText.classList.remove('t972__category-enabled');toggleText.textContent=t972_trans('disabled')}})});Array.prototype.forEach.call(allowedCookiesList,function(allowed){var checkBox=wrapper.querySelector('.t972__toggle-input[value="'+allowed+'"]');if(!checkBox)return;checkBox.checked=!0});if(!widgetBtn)return;widgetBtn.addEventListener('click',function(){t972_toggleWidget(widgetBtn,cookiesBanner,settingsBanner)})}function t972_toggleWidget(widgetBtn,cookiesBanner,settingsBanner){if(widgetBtn.classList.contains('t972__widget-button_active')){t972_hideWidget(widgetBtn,cookiesBanner,settingsBanner)}else{t972_showWidget(widgetBtn,cookiesBanner)}}function t972_showWidget(widgetBtn,cookiesBanner){if(widgetBtn){widgetBtn.classList.add('t972__widget-button_active');var closeAriaLabel=widgetBtn.getAttribute('data-alt-aria-label')||'';var openAriaLabel=widgetBtn.getAttribute('aria-label')||'';widgetBtn.setAttribute('aria-label',closeAriaLabel);widgetBtn.setAttribute('data-alt-aria-label',openAriaLabel)}cookiesBanner.classList.add('t972__banner_show')}function t972_hideWidget(widgetBtn,cookiesBanner,settingsBanner){if(widgetBtn){if(widgetBtn)widgetBtn.classList.remove('t972__widget-button_active');var openAriaLabel=widgetBtn.getAttribute('data-alt-aria-label')||'';var closeAriaLabel=widgetBtn.getAttribute('aria-label')||'';widgetBtn.setAttribute('aria-label',openAriaLabel);widgetBtn.setAttribute('data-alt-aria-label',closeAriaLabel)}t972_hideBanners(cookiesBanner,settingsBanner)}function t972_hideBanners(cookiesBanner,settingsBanner){cookiesBanner.classList.remove('t972__banner_show');settingsBanner.classList.remove('t972__settings_show')}function t972_addCookieEvents(recId){var rec=document.querySelector('#rec'+recId);if(!rec)return;var wrapper=rec.querySelector('.t972');if(!wrapper)return;var confirmBtn=wrapper.querySelector('.t972__confirm-btn');var acceptBtn=wrapper.querySelector('.t972__accept-btn');var rejectBtn=wrapper.querySelector('.t972__reject-btn');var widgetBtn=wrapper.querySelector('.t972__widget-button');var cookiesBanner=wrapper.querySelector('.t972__banner');var settingsBanner=wrapper.querySelector('.t972__settings');if(confirmBtn){confirmBtn.addEventListener('click',function(event){event.preventDefault();t972_confirmCookies('selected');t972_hideWidget(widgetBtn,cookiesBanner,settingsBanner)})}if(acceptBtn){acceptBtn.addEventListener('click',function(event){event.preventDefault();t972_confirmCookies('all');t972_hideWidget(widgetBtn,cookiesBanner,settingsBanner)})}if(rejectBtn){rejectBtn.addEventListener('click',function(event){var cookieCategories=t972_getCookie('t_cookiesCategories');event.preventDefault();t972_confirmCookies('reject');t972_hideWidget(widgetBtn,cookiesBanner,settingsBanner);t972_createCookie('t_cookiesRejectAll','true',365);if(cookieCategories.val){var cookieCategoriesList=JSON.parse(cookieCategories.val);if(cookieCategoriesList.length){window.location.reload()}}})}}function t972_handleWidgetLinks(recId){var links=document.querySelectorAll('a[href="#opencookiebanner"]');if(!links.length)return;var rec=document.querySelector('#rec'+recId);if(!rec)return;var wrapper=rec.querySelector('.t972');var cookiesBanner=rec.querySelector('.t972__banner');var widgetBtn=rec.querySelector('.t972__widget-button');if(!cookiesBanner||!wrapper)return;Array.prototype.forEach.call(links,function(link){link.addEventListener('click',function(event){event.preventDefault();if(widgetBtn){widgetBtn.click();return}cookiesBanner.classList.add('t972__banner_show')})})}function t972_slideToggle(target,triggerElement,duration){if(!target)return;if(!duration&&duration!==0)duration=500;if(window.getComputedStyle(target).display==='none'){return t972_slideDown(target,triggerElement,duration)}else{return t972_slideUp(target,triggerElement,duration)}}function t972_slideUp(target,triggerElement,duration){if(!target)return;if(!duration&&duration!==0)duration=500;target.style.transitionProperty='height, margin, padding';target.style.transitionDuration=duration+'ms';target.style.boxSizing='border-box';target.style.height=target.offsetHeight+'px';target.offsetHeight;target.style.overflow='hidden';target.style.height='0';target.style.paddingTop='0';target.style.paddingBottom='0';target.style.marginTop='0';target.style.marginBottom='0';setTimeout(function(){triggerElement.style.pointerEvents='auto';target.style.display='none';target.style.height='';target.style.paddingTop='';target.style.paddingBottom='';target.style.marginTop='';target.style.marginBottom='';target.style.overflow='';target.style.transitionDuration='';target.style.transitionProperty=''},duration)}function t972_slideDown(target,triggerElement,duration){if(!target)return;if(!duration&&duration!==0)duration=500;target.style.display='';var cashedDisplay=window.getComputedStyle(target).display;if(cashedDisplay==='none')cashedDisplay='block';target.style.display=cashedDisplay;var targetHeight=target.offsetHeight;target.style.overflow='hidden';target.style.height='0';target.style.paddingTop='0';target.style.paddingBottom='0';target.style.marginTop='0';target.style.marginBottom='0';target.offsetHeight;target.style.boxSizing='border-box';target.style.transitionProperty='height, margin, padding';target.style.transitionDuration=duration+'ms';target.style.height=targetHeight+'px';target.style.paddingTop='';target.style.paddingBottom='';target.style.marginTop='';target.style.marginBottom='';setTimeout(function(){triggerElement.style.pointerEvents='auto';target.style.height='';target.style.overflow='';target.style.transitionDuration='';target.style.transitionProperty=''},duration)}function t972_translateToggle(recId){var rec=document.querySelector('#rec'+recId);if(!rec)return;var wrapper=rec.querySelector('.t972');if(!wrapper)return;var category=wrapper.querySelectorAll('.t972__category-toggle');Array.prototype.forEach.call(category,function(cat){var categoryText=cat.querySelectorAll('.t972__toggle-txt');Array.prototype.forEach.call(categoryText,function(item){if(item.classList.contains('js_always-enabled')){item.textContent=t972_trans('alwaysEnabled')}else{var itemParent=item.parentNode;var categoryInput=itemParent.querySelector('.t972__toggle-input');if(categoryInput.checked){item.textContent=t972_trans('enabled')}else{item.textContent=t972_trans('disabled')}}})})}function t972_trans(key){var data={alwaysEnabled:{EN:'Always Enabled',RU:'Всегда разрешено',FR:'Toujours actif',DE:'Immer aktiv',ES:'Activas siempre',PT:'Sempre ativos',JA:'常にアクティブ',ZH:'始終啟用',UK:'Завжди дозволено',PL:'Zawsze aktywne',KK:'Әрқашан қосылады',IT:'Sempre attivi',LV:'Vienmēr iespējots',},enabled:{EN:'Enabled',RU:'Разрешено',FR:'Actif',DE:'Aktiv',ES:'Activas',PT:'Ativos',JA:'アクティブ',ZH:'启用',UK:'Дозволено',PL:'Aktywne',KK:'Қосылды',IT:'Attivi',LV:'Iespējots',},disabled:{EN:'Disabled',RU:'Запрещено',FR:'Désactivé',DE:'Inaktiv',ES:'Deshabilitadas',PT:'Desativado',JA:'オフにした',ZH:'已禁用',UK:'Вимкнено',PL:'Wyłączone',KK:'Өшірілген',IT:'Disabilitato',LV:'Atspējots',},};var lang=(document.documentElement.lang||window.browserLang).toUpperCase()||'RU';return lang&&data[key][lang]?data[key][lang]:data[key].EN}function t658_init(recid){var rec=document.querySelector('#rec'+recid);if(!rec)return;rec.setAttribute('data-animationappear','off');rec.classList.remove('r_hidden');rec.classList.remove('r_anim');var wrapperBlock=rec.querySelector('.t658');var confirmPopup=rec.querySelector('.t658__popup_confirm');var denyPopup=rec.querySelector('.t658__popup_deny');var yesButton=rec.querySelector('.t658__btn_yes');var noButton=rec.querySelector('.t658__btn_no');var storageItem=wrapperBlock.getAttribute('data-storage-item');var lastOpen;try{lastOpen=localStorage.getItem(storageItem)}catch(e){console.log('Your web browser does not support localStorage.')}if(!lastOpen||wrapperBlock.getAttribute('data-unpublish')){wrapperBlock.style.display='block';setTimeout(function(){wrapperBlock.classList.remove('t658_closed')},500);if(typeof t_triggerEvent==='function')t_triggerEvent(document.body,'popupShowed');document.querySelector('body').classList.add('t658__body_popupshowed')}if(yesButton){yesButton.addEventListener('click',function(e){wrapperBlock.classList.add('t658_closed');setTimeout(function(){wrapperBlock.style.display='none'},300);if(typeof t_triggerEvent==='function')t_triggerEvent(document.body,'popupHidden');document.querySelector('body').classList.remove('t658__body_popupshowed');try{localStorage.setItem(storageItem,Math.floor(Date.now()/1000))}catch(e){console.log('Your web browser does not support localStorage.')}e.preventDefault()})}if(noButton){noButton.addEventListener('click',function(e){setTimeout(function(){confirmPopup.style.display='none';denyPopup.style.display='block'},300);e.preventDefault()})}}function t235__next(){var cur=parseInt($('.t235').attr('data-slide-count'),10);var event=document.createEvent('Event');event.initEvent('displayChanged',!0,!0);if(cur+1>=$('.r').not('[data-t263-block-notslide=yes]').size())return;cur++;$('.r').not('[data-t263-block-notslide=yes]').each(function(i){if(cur-1==i){var el=$(this);var trans_out_y='-100px';if(el.height()+100>$(window).height())trans_out_y='0px';el.transition({y:trans_out_y,opacity:0,},250,'out',function(){el.css('display','none')})}if(cur==i){var el=$(this);el.css('display','none');var trans_in_y='50px';if(el.height()+100>$(window).height())trans_in_y='0px';el.transition({y:trans_in_y,},1,'ease',function(){});el.animate({opacity:'0',},300,function(){el.css('display','block');el.css('opacity','0');el.transition({y:'0px',opacity:1,},500,'ease',function(){});$('.r').removeClass('t235__active');el.addClass('t235__active');var els=document.querySelectorAll('.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, .t959, .t979, .t982, .t983, .t989, .t994, .t1069, .t1071');Array.prototype.forEach.call(els,function(child){child.dispatchEvent(event)});if(window.lazy==='y'||$('#allrecords').attr('data-tilda-lazy')==='yes'){t_onFuncLoad('t_lazyload_update',function(){t_lazyload_update()})}});if(el.height()>$(window).height()){$('#t235__scrldonwicon').fadeIn('slow',function(){$('#t235__scrldonwicon').delay(1000).fadeOut('slow')})}var bg=el.attr('data-bg-color');if(bg!==undefined&&bg!=='none'){$('#allrecordstable').css('background-color',bg)}else{$('#allrecordstable').css('background-color','')}}});$('.t235').attr('data-slide-count',cur);t235__update()}function t235__prev(){var cur=parseInt($('.t235').attr('data-slide-count'),10);var event=document.createEvent('Event');event.initEvent('displayChanged',!0,!0);if(cur-1==-1)return;cur--;$('.r').not('[data-t263-block-notslide=yes]').each(function(i){if(cur+1==i){var el=$(this);el.css('display','none')}if(cur==i){var el=$(this);el.css('display','block');el.css('opacity','0');el.transition({y:'0px',},1,'easeOutSine');el.animate({opacity:'1',},50,function(){});$('.r').removeClass('t235__active');el.addClass('t235__active');var bg=el.attr('data-bg-color');if(bg!==undefined&&bg!=='none'){$('#allrecordstable').css('background-color',bg)}else{$('#allrecordstable').css('background-color','')}var els=document.querySelectorAll('.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, .t959, .t979, .t982, .t983, .t989, .t994, .t1071');Array.prototype.forEach.call(els,function(child){child.dispatchEvent(event)})}});$('.t235').attr('data-slide-count',cur);t235__update()}function t235__galnext(){var elactive=$('.t235__active');var tplid=elactive.attr('data-record-type');if(tplid=='5')elactive.find('[data-slide=next]').trigger('click')}function t235__update(){var cur=parseInt($('.t235').attr('data-slide-count'),10);var c=cur+1;var t=$('.r').not('[data-t263-block-notslide=yes]').size();$('.t235__count').html(c+'/'+t);if(window.lazy==='y'||$('#allrecords').attr('data-tilda-lazy')==='yes'){t_onFuncLoad('t_lazyload_update',function(){t_lazyload_update()})}}function t235__init(){$('#allrecords').wrap("<table id='allrecordstable' width='100%' height='100%' style='height:100vh; border:0px; margin:0px; padding:0px; border-spacing:0px;'><tr><td></td></tr></table>");$('#allrecords').css('width',$(window).width()+'px');var wnd=$(window);$('.r').not('[data-t263-block-notslide=yes]').each(function(){var el=$(this);el.css('padding','0px');if(el.height()>wnd.height()&&el.find('.t396__artboard_scale').length===0){el.css('padding-top','150px');el.css('padding-bottom','150px')}el.css('display','none');el.css('opacity','');el.css('background-color','')});$(window).on('resize',function(){$('#allrecords').css('width',$(window).width()+'px')});var cur=-1;var slideCount=$('.t235').attr('data-slide-count');if(typeof slideCount!=='undefined'){cur=parseInt(slideCount,10)}else{$('.t235').attr('data-slide-count',cur)}if(!isNaN(cur)){$('.t235').find('.t235__next').on('click',function(){t235__next()});$('.t235').find('.t235__prev').on('click',function(){t235__prev()});t235__next();$('#tildacopy').css('display','none');$('.t235').css('right','-=100');setTimeout(function(){$('.t235').addClass('t235_anim');$('.t235').css('right','+=100')},800);$(document).keydown(function(e){switch(e.which){case 38:t235__prev();break;case 40:t235__next();break;case 33:t235__prev();break;case 34:t235__next();break;case 32:t235__next();break;case 190:t235__galnext();break;default:return}if(e.which!=190){e.preventDefault()}})}$('#allrecordstable').css('transition','background-color 500ms linear');$('.t-cover__carrier').css('background-attachment','scroll')}function t803_init(recid){var rec=document.getElementById('rec'+recid);if(!rec)return;var cardsMultiData=rec.querySelector('.t803__multi-datablock').children;var multidata={};Array.prototype.forEach.call(cardsMultiData,function(card){var source=card.querySelector('.t803__multi-source').innerHTML;var value=card.querySelector('.t803__multi-key-values').innerHTML;var key=card.querySelector('.t803__multi-key').innerHTML;var defaultValue=card.querySelector('.t803__multi-default').innerHTML;var values={};values[source]=value;multidata[source]={default:defaultValue,key:key,values:values}});if(rec.closest('#t-header')||rec.closest('#t-footer')){Array.prototype.forEach.call(document.querySelectorAll('.t-rec div, .t-rec span, .t-rec a, .t-rec p, .t-rec h1, .t-rec h2, .t-rec h3, .t-rec h4'),function(item){var childElements=item.querySelectorAll('div, span, a, p, h1, h2, h3, h4');if(childElements.length)return;var html=item.innerHTML;var replaced=html.replace(/(?!%%)[A-zА-яё0-9_-]*(?=%%)/gi,"<span data-replace-key='$&'></span>").replace(/%{2}/gim,'');if(replaced!==html){item.innerHTML=replaced}})}var params=window.location.search.replace('?','').split('&').reduce(function(paramsObject,paramsItem){var paramsItemSplitted=paramsItem.split('=');try{paramsObject[decodeURIComponent(paramsItemSplitted[0])+'='+decodeURIComponent(paramsItemSplitted[1])]=decodeURIComponent(paramsItemSplitted[0])+'='+decodeURIComponent(paramsItemSplitted[1])}catch(error){}return paramsObject},{});var stop=0;for(utmTerm in multidata){var key=params[utmTerm];if(typeof key!=='undefined'){var allMacros=document.querySelectorAll('[data-replace-key="'+multidata[utmTerm].key+'"]');Array.prototype.forEach.call(allMacros,function(macros){macros.innerHTML=multidata[utmTerm].values[key]});stop=1}if(stop===0){var allMacros=document.querySelectorAll('[data-replace-key="'+multidata[utmTerm].key+'"]');Array.prototype.forEach.call(allMacros,function(macros){macros.innerHTML=multidata[utmTerm].default})}}}if(!Element.prototype.matches){Element.prototype.matches=Element.prototype.matchesSelector||Element.prototype.msMatchesSelector||Element.prototype.mozMatchesSelector||Element.prototype.webkitMatchesSelector||Element.prototype.oMatchesSelector}if(!Element.prototype.closest){Element.prototype.closest=function(s){var rec=this;while(rec&&rec.nodeType===1){if(Element.prototype.matches.call(rec,s)){return rec}rec=rec.parentElement||rec.parentNode}return null}}function t804_init(recid){var rec=document.querySelector('#rec'+recid);if(!rec)return;var geodata=[];var geoDataBlock=rec.querySelector('.t_804_geo-datablock');var key=geoDataBlock.querySelector('.t_804_geo-key').innerHTML;var defValue=geoDataBlock.querySelector('.t_804_geo-default').innerHTML;var cards=geoDataBlock.querySelector('.t_804_geo-data').children;Array.prototype.forEach.call(cards,function(regionCard){var geoIpSet=regionCard.querySelectorAll('.t_804_geo-geoip');var geo=[];Array.prototype.forEach.call(geoIpSet,function(geoIPBlock){var geoIPInnerText=geoIPBlock.innerHTML;var geoIPArray=geoIPInnerText.split(';');Array.prototype.forEach.call(geoIPArray,function(geoIP){if(geoIP==='')return!0;var regex=/,/g;var geoIPValue=geoIP.replace(regex,'-');geo.push(geoIPValue)})});var value=regionCard.querySelector('.t_804_geo-value').innerHTML;geodata.push({value:value,geo:geo})});if(rec.closest('#t-header')||rec.closest('#t-footer')){var elementList=t804__getReplacedNodes();elementList.forEach(function(element){var html=element.innerHTML;var replaced=html.replace(/(?!%%)[A-zА-яё0-9_-]*(?=%%)/gi,'<span data-replace-key="$&"></span>').replace(/%{2}/gim,'');if(replaced!==html){element.innerHTML=replaced}});var event=document.createEvent('HTMLEvents');event.initEvent('replacingCompleted',!0,!1);document.dispatchEvent(event)}var request=new XMLHttpRequest();request.open('GET','https://geo.tildacdn.com/geo/full/');request.timeout=15*1000;request.send();request.onprogress=function(){try{var data=JSON.parse(request.response);replaceGeo(data,key,geodata,defValue)}catch(e){}};request.onerror=function(){try{var data=JSON.parse(request.response);replaceGeo(data,key,geodata,defValue)}catch(e){}};request.ontimeout=function(){console.error('Timeout error: ',request.status)};function replaceGeo(data,key,geodata,defValue){var city=data.city.name_en;var region=data.region.name_en;var country=data.country.iso;var fullMatch=country+'-'+region+'-'+city;var partMatch=country+'-'+region;var val=defValue;Array.prototype.forEach.call(geodata,function(value){if(value.geo.indexOf(country)!==-1){val=value.value}if(value.geo.indexOf(partMatch)!==-1){val=value.value}if(value.geo.indexOf(fullMatch)!==-1){val=value.value}});var insertion=document.querySelectorAll('[data-replace-key="'+key+'"]');Array.prototype.forEach.call(insertion,function(span){span.innerHTML=val})}}function t804__getReplacedNodes(){var allRecord=document.getElementById('allrecords');var result=[];var walker=document.createTreeWalker(allRecord,NodeFilter.SHOW_TEXT,{acceptNode(node){if(node.textContent.match(/(?!%%)[A-zА-яё0-9_-]*(?=%%)/gi)){return NodeFilter.FILTER_ACCEPT}return NodeFilter.FILTER_REJECT},});while(walker.nextNode()){var node=walker.currentNode;if(!['SCRIPT','STYLE'].includes(node.parentElement.tagName)){result.push(node.parentElement)}}return result}function t808_geoRedirect(geo,data){if(!geo||!data)return;if(!window.isSearchBot){var city=geo.city.name_en;var region=geo.region.name_en;var country=geo.country.iso;Array.prototype.forEach.call(data,function(value){if(value.geo.indexOf(country)!==-1||value.geo.indexOf(region)!==-1||value.geo.indexOf(city)!==-1){window.location.href=value.link+window.location.search}})}}function t810_getGeoData(){return window.t810_fetchGeo?window.t810_fetchGeo():Promise.resolve(null)}function t826_init(recid){var rec=document.querySelector('#rec'+recid);if(!rec)return;var wrapper=rec.querySelector('.t826');t826_startAnimation(recid);if(!window.isMobile){window.addEventListener('resize',t_throttle(function(){t826_prepareAnimation(recid)}))}if(window.isMobile){window.addEventListener('orientationchange',function(){t826_prepareAnimation(recid)})}wrapper.addEventListener('displayChanged',function(){t826_prepareAnimation(recid)})}function t826_prepareAnimation(recid){var galaxyList=document.querySelectorAll('div:not(.t826__animation) > div[data-galaxy-id="'+recid+'"]');Array.prototype.forEach.call(galaxyList,function(galaxy){if(galaxy&&galaxy.parentNode!==null){galaxy.parentNode.removeChild(galaxy)}});t826_startAnimation(recid)}function t826_startAnimation(recid){var rec=document.querySelector('#rec'+recid);if(!rec)return;var wrapper=rec.querySelector('.t826');if(!wrapper)return;var galaxy=rec.querySelector('.t826__galaxy');if(!galaxy)return;var allRecords=document.querySelector('#allrecords');var recIds=wrapper.getAttribute('data-galaxy-rec-ids');var wholePage=wrapper.getAttribute('data-galaxy-whole-page');var verticalFlip=wrapper.getAttribute('data-galaxy-vflip');var color=wrapper.getAttribute('data-element-color');var opacity=wrapper.getAttribute('data-element-opacity');var options={color:!color?'#fff':color,opacity:!opacity?1:opacity.replace(/^0?.([0-9])0?$/g,'.$1'),};if(options.color.indexOf('#')!==-1){var color=options.color;if(color[1]===color[2]&&color[3]===color[4]&&color[5]===color[6]){options.color='#'+color[1]+color[3]+color[5]}}if(verticalFlip==='yes'){galaxy.classList.add('t826__galaxy_flip')}if(allRecords.getAttribute('data-tilda-mode')==='edit'){var wrapper=rec.querySelector('.t826__demo');wrapper.insertAdjacentElement('beforeend',galaxy);wrapper.style.position='relative';t826_runningAnimation(wrapper,options);return}if(recIds){recIds=recIds.split(',');recIds.forEach(function(rec){var currentRec=document.querySelector('#rec'+rec);var currentGalaxy=galaxy.cloneNode(!0);currentGalaxy.style.position='absolute';t826_addAnimation(currentRec,currentGalaxy,options)})}else{var nextBlock;if(rec.nextElementSibling&&(rec.nextElementSibling.querySelector('.t-cover')||rec.nextElementSibling.querySelector('.t-hero'))){nextBlock=rec.nextElementSibling}var prevBlock;if(rec.previousElementSibling&&(rec.previousElementSibling.querySelector('.t-cover')||rec.previousElementSibling.querySelector('.t-hero'))){prevBlock=rec.previousElementSibling}var currentGalaxy=galaxy.cloneNode(!0);if(currentGalaxy)currentGalaxy.style.position='absolute';if(nextBlock){t826_addAnimation(nextBlock,currentGalaxy,options)}else if(prevBlock){t826_addAnimation(prevBlock,currentGalaxy,options)}}if(wholePage==='yes'){var animationWrapper=rec.querySelector('.t826__animation');animationWrapper.style.display='block';galaxy.style.position='fixed';t826_addAnimation(allRecords,galaxy,options)}}function t826_addAnimation(currentRec,galaxy,options){if(!currentRec)return;currentRec.setAttribute('data-animationappear','off');currentRec.classList.remove('r_hidden');var currentRecType=currentRec.getAttribute('data-parenttplid')||currentRec.getAttribute('data-record-type');var currentRecId=currentRec.getAttribute('id');if(currentRecType==='396'){var filter=currentRec.querySelector('.t396__filter');filter.insertAdjacentElement('afterend',galaxy);galaxy.style.zIndex='0'}else if(currentRecId==='allrecords'){galaxy.style.zIndex='-1'}else{var coverWrapper=currentRec.querySelector('.t-cover');var heroWrapper=currentRec.querySelector('.t-hero');if(coverWrapper){var filter=coverWrapper.querySelector('.t-cover__filter');filter.insertAdjacentElement('afterend',galaxy);galaxy.style.zIndex='0'}else if(heroWrapper){var heroMedia=heroWrapper.querySelector('.t-hero__media');if(heroMedia){heroMedia.insertAdjacentElement('afterend',galaxy)}else{heroWrapper.insertAdjacentElement('afterbegin',galaxy)}galaxy.style.zIndex='0'}else{var wrapper=currentRec;if(wrapper.length===0){return!0}wrapper.appendChild(galaxy);wrapper.style.position='relative';var excludesAboutBlocks=['480','478','477'];var recordType=wrapper.getAttribute('data-parenttplid')||wrapper.getAttribute('data-record-type');var isBlockExclude=excludesAboutBlocks.some(function(block){return recordType===block});var firstChildDiv;if(isBlockExclude){firstChildDiv=wrapper.querySelector('.t'+recordType)}else{firstChildDiv=wrapper.querySelector('div')}firstChildDiv.style.position='relative';firstChildDiv.style.zIndex='1';if(currentRecType==='734'||currentRecType==='675'||currentRecType==='215'){return}var excludesBlocks=['754','776','778','786','770','838'];var feedsBlocks=['924'];var firstChildDiv=wrapper.querySelector('div');if(excludesBlocks.indexOf(currentRecType)!==-1){firstChildDiv.style.zIndex='';galaxy.style.zIndex='-1'}else if(feedsBlocks.indexOf(currentRecType)!==-1){firstChildDiv.style.zIndex='2000'}else{galaxy.style.zIndex='0'}}}t826_runningAnimation(currentRec,options)}function t826_runningAnimation(currentRec,options){var starsSetting;if(window.isMobile){starsSetting=[{name:'near',count:25,speed:50,},{name:'mid',count:50,speed:100,},{name:'far',count:175,speed:150,},]}else{starsSetting=[{name:'near',count:100,speed:50,},{name:'mid',count:200,speed:100,},{name:'far',count:700,speed:150,},]}var currentRecId=currentRec.getAttribute('id');var maxHeight=currentRec.offsetHeight;var maxWidth=currentRec.offsetWidth;if(typeof currentRecId==='undefined'){currentRecId='demo'}else if(currentRecId==='allrecords'){maxHeight=window.innerHeight;maxWidth=window.innerWidth}var animationName='t826__galaxy-'+currentRecId;var animation=currentRec.querySelector('#'+animationName);if(animation&&animation.parentNode!==null){animation.parentNode.removeChild(animation)}var newStyle=document.createElement('style');newStyle.id=animationName;newStyle.innerHTML='@keyframes '+animationName+'{'+'to{'+'transform:translateY('+ -maxHeight+'px)'+'}'+'}';starsSetting.forEach(function(value,index,array){var x=Math.round(Math.random()*maxHeight);var y=Math.round(Math.random()*maxWidth);var dot='';if(options.color.indexOf('#')!==-1){dot=x+'px '+y+'px'}else if(options.opacity<1){dot=x+'px '+y+'px rgba('+options.color+','+options.opacity+')'}else{dot=x+'px '+y+'px rgb('+options.color+')'}