function t_store_fixImgs(){var t=/Version\/16\.3/.test(navigator.userAgent)&&/Safari/.test(navigator.userAgent);if(t){var e=['754','776','778','786','1025'];e.forEach(function(t){var e=document.querySelectorAll('[data-record-type="'+t+'"] .t-img');Array.prototype.forEach.call(e,function(t){t.style.objectFit='contain'})})}}function t_store_init(t,e){var r=document.getElementById('rec'+t);if(r)if(window.tStoreInit||(window.tStoreInit={}),window.tStoreInit[t]=!0,'IntersectionObserver'in window&&Object.keys(window.tStoreInit).length>7){window.tStoreInit[t]='lazy';var o=new IntersectionObserver(function(r,o){r.forEach(function(r){if(r.isIntersecting){var i=r.target;o.unobserve(i),'lazy'===window.tStoreInit[t]&&(t_store_lazyInit(t,e),window.tStoreInit[t]=!0)}})},{rootMargin:'150px 0px'});o.observe(r)}else t_store_lazyInit(t,e)}function t_store_lazyInit(t,e){var r=document.getElementById('rec'+t),o=document.getElementById('allrecords')!==document.querySelector('.t-store__product-snippet')&&document.getElementById('allrecords').contains(document.querySelector('.t-store__product-snippet'));o||t_store_initRouting(),window.tStoreDict||t_store_getDictObj();var i=r.querySelector('.js-store'),s=t_store_get_productPopup_html(t,e);i&&i.insertAdjacentHTML('beforeend',s);var a=document.getElementById('allrecords').getAttribute('data-tilda-mode');e.isPublishedPage='edit'!==a&&'preview'!==a,e.isPublishedPage&&t_store_checkUrl(e,t);var n=document.getElementById('record'+t);if(n&&!e.isPublishedPage){var d=n.getAttribute('off');if('y'==d)return}var l=r.querySelector('.js-store-grid-cont-preloader');if(''!==e.storepart){setTimeout(function(){l&&l.classList.remove('t-store__grid-cont-preloader_hidden')},1e3);var c=1,p=t_store_paramsToObj(t,e);if(p[t]){var _=t_store_updateOptionsBasedOnUrl(e,p,t);_&&(e=_)}if(e.sidebar){var u=r.querySelector('.js-store-parts-select-container');if(u){var g=u.querySelector('.t951__sidebar');g||u.insertAdjacentHTML('afterbegin','
')}}var m=function(){p[t]&&p[t].page&&(c=Array.isArray(p[t].page)?p[t].page.join(''):p[t].page),t_store_loadProducts('',t,e,c),t_store_mobileHoriz_checkBtnVisibility(t,e)},y=function(){p[t]&&_&&r.addEventListener('controlsDrawn',function(){t_store_filters_render_selected(e,t)}),e.sidebar&&r.addEventListener('controlsDrawn',function(){t_store_filters_opts_sort(e,t)}),c=1,m()},v=function(e){if(window.tStoreFilters||(window.tStoreFilters={}),e&&(e.filters&&e.filters.length>0||e.search||e.sort)){window.tStoreFilters[t]=e;var r='tilda-catalog-filters-1.0';if(document.head.querySelector('script[src*="'+r+'"]'))t_store_onFuncLoad('t_store_filters_init',function(){y()});else{var o=document.createElement('script');o.type='text/javascript',o.src='https://static.tildacdn.com/js/'+r+'.min.js',o.onload=y,o.onerror=function(){console.error('Failed to load tilda-catalog-filters: ',this.src),m()},document.head.appendChild(o)}if(!document.head.querySelector('link[href*="'+r+'"]')){var i=document.createElement('link');i.rel='stylesheet',i.type='text/css',i.href='https://static.tildacdn.com/css/'+r+'.min.css',i.media='all',document.head.appendChild(i)}}else m()};if(t_store_loadFilters(e,v,function(t){t_store_changeEndpoint(t,function(){t_store_loadFilters(e,v)})}),e.isHorizOnMob){var f=t_store_get_handIcon_html(t,e.horizontalScrollHint);l&&l.insertAdjacentHTML('beforebegin',f)}if(e.tabs){var h='tilda-catalog-tabs-1.0';if(!document.head.querySelector('script[src*="'+h+'"]')){var w=document.createElement('script');w.type='text/javascript',w.src='https://static.tildacdn.com/js/'+h+'.min.js',w.onerror=function(){console.error('Failed to load tilda-catalog-tabs: ',this.src)},document.head.appendChild(w)}if(!document.head.querySelector('link[href*="'+h+'"]')){var b=document.createElement('link');b.rel='stylesheet',b.type='text/css',b.href='https://static.tildacdn.com/css/'+h+'.min.css',b.media='all',document.head.appendChild(b)}}if(e.showPagination&&'on'===e.showPagination){h='tilda-catalog-pagination-1.0';if(!document.head.querySelector('script[src*="'+h+'"]')){w=document.createElement('script');w.type='text/javascript',w.src='https://static.tildacdn.com/js/'+h+'.min.js',w.onerror=function(){console.error('Failed to load tilda-catalog-pagination: ',this.src)},document.head.appendChild(w)}if(!document.head.querySelector('link[href*="'+h+'"]')){b=document.createElement('link');b.rel='stylesheet',b.type='text/css',b.href='https://static.tildacdn.com/css/'+h+'.min.css',b.media='all',document.head.appendChild(b)}}window.addEventListener('resize',t_throttle(function(){r&&('1025'==e.prodCard.blockId?t_store_unifyCardsWidth(t):t_store_unifyCardsHeights(t,e),t_store_loadMoreBtn_display(t),(e.sidebar||Object.keys(e.filters||{}).length>1)&&t_store_moveSearhSort(t,e),e.showPagination&&'on'===e.showPagination&&t_store_onFuncLoad('t_store_pagination_display',function(){t_store_pagination_display(t)}))}));var S=r.querySelector('.t-store');S&&S.addEventListener('displayChanged',function(){setTimeout(function(){t_store_unifyCardsHeights(t,e)})}),S&&S.addEventListener('displayChanged',function(){setTimeout(function(){t_store_unifyCardsWidth(t)})});try{e.verticalAlignButtons&&(window.addEventListener('resize',t_throttle(function(){t_store_verticalAlignButtons(t,e)},500)),S&&S.addEventListener('displayChanged',function(){t_store_verticalAlignButtons(t,e)}))}catch(t){console.log('verticalAlignButtons error: '+t)}e.popup_opts.fixedButton&&t_store_fixedPopupButton(t)}else if(l.style.display='none',e.sidebar){var E=r.querySelector('.t951__grid-cont');E&&E.classList.remove('t951__grid-cont_hidden')}}function t_store_history_pushState(t,e,r){try{void 0!==history.pushState&&window.history.pushState(t,e,r)}catch(t){}}function t_store_productInit(t,e,r){t_store_snippet_initProduct(t,e,r)}function t_store_snippet_initProduct(t,e,r){var o=document.querySelector('#rec'+t),i=o.querySelector('.t-store__product-snippet.js-store-product'),s=t_store_snippet_getJsonFromUrl();if('100'===e.popup_opts.popupContainer){var a=i.querySelector('.t-container');a.classList.add('t-container_fluid'),a.style.maxWidth='100%',a.firstElementChild&&a.firstElementChild.classList.add('t-container_fluid')}t_store_snippet_removeSizesFromStyles(t,e),t_store_drawProdPopup_drawGallery(t,i,r,e);var n=function(){t_store_addProductOptions(t,r,i,e,'largecard'),t_store_snippet_chooseEditionFromUrl(t,r,i,e),t_store_onFuncLoad('t_prod__init',function(){t_prod__init(t)})},d=document.getElementById('allrecords');if(d){var l=d.getAttribute('data-tilda-project-lang');l&&(window.tStoreBrowserLang=l)}window.tStoreDict||t_store_getDictObj();var c=i.querySelector('.js-store-prod-sku');if(c&&'none'!==c.style.display&&c.insertAdjacentHTML('beforebegin',window.tStoreDict.sku+': '),i.setAttribute('data-product-gen-uid',r.uid),i.setAttribute('data-product-part-uid',r.partuids?r.partuids.join(','):''),e.tabs){var p='tilda-catalog-tabs-1.0';if(document.head.querySelector('script[src*="'+p+'"]'))t_onFuncLoad('t_store_tabs_initSnippet',function(){t_store_tabs_initSnippet(t,e,i,r),n()});else{var _=document.createElement('script');_.type='text/javascript',_.src='https://static.tildacdn.com/js/'+p+'.min.js',_.onload=function(){t_onFuncLoad('t_store_tabs_initSnippet',function(){t_store_tabs_initSnippet(t,e,i,r),n()})},_.onerror=function(){console.error('Failed to load tilda-catalog-tabs: ',this.src)},document.head.appendChild(_)}if(!document.head.querySelector('link[href*="'+p+'"]')){var u=document.createElement('link');u.rel='stylesheet',u.type='text/css',u.href='https://static.tildacdn.com/css/'+p+'.min.css',u.media='all',document.head.appendChild(u)}}else t_store_initTextAndCharacteristics(i,r),n();if(t_triggerEvent(document.body,'twishlist_addbtn'),!e.relevants_slider){var g=o.querySelector('.t-store__relevants-grid-cont.t-store__grid-cont_mobile-one-row');if(g){var m=t_store_get_handIcon_html(t,e.horizontalScrollHint);g.insertAdjacentHTML('beforebegin',m)}}setTimeout(function(){!window.tStoreIsSearchBot&&window.Tilda&&'function'==typeof Tilda.sendEcommerceEvent&&(s.editionuid?r.editions.forEach(function(t){t.uid===s.editionuid&&Tilda.sendEcommerceEvent('detail',[{id:''+t.uid,uid:''+t.uid,price:''+t.price,sku:t.sku?t.sku:'',name:r.title}])}):Tilda.sendEcommerceEvent('detail',[{id:''+(r.id?r.id:r.uid),uid:''+r.uid,price:''+(r.price_min?r.price_min:r.price),sku:r.sku?r.sku:'',name:r.title}]))},3e3)}function t_store_initRouting(){window.onpopstate=function(){if(window.history.state&&window.history.state.productData){var t=window.history.state.productData,e=t.recid,r=t.opts,o=t.productObj,i=t.isRelevantsShow;t_store_openProductPopup(e,r,o,i)}}}function t_store_verticalAlignButtons(t,e){var r=document.getElementById('rec'+t);if(r){var o=r.querySelector('.js-store-grid-cont');o&&o.classList.add('t-store__valign-buttons');var i=r.querySelectorAll('.js-store-grid-cont .t-store__card__textwrapper'),s=0,a=parseInt(e.blocksInRow,10),n=window.innerWidth<=480,d=window.innerWidth<=960&&window.innerWidth>480,l=!!(window.innerWidth<=960&&r.querySelector('.js-store-grid-cont.t-store__grid-cont_mobile-one-row')),c=!!(window.innerWidth<=480&&r.querySelector('.t-store__mobile-two-columns'));n&&(a=1),d&&(a=2),c&&(a=2),l&&(a=999999);var p=1,_=[];if(i&&Array.prototype.forEach.call(i,function(t){t.style.height='unset',1===a?t.style.height='auto':(_.push(t),t.offsetHeight>s&&(s=t.offsetHeight),Array.prototype.forEach.call(_,function(t){t.style.height=s+'px'}),p===a&&(p=0,s=0,_=[]),p++)}),e.showRelevants){var u=r.querySelectorAll('.js-product-relevant .t-store__card__textwrapper'),g=0,m=[];Array.prototype.forEach.call(u,function(t){t.style.height='unset'}),Array.prototype.forEach.call(u,function(t){m.push(t),t.offsetHeight>g&&(g=t.offsetHeight),Array.prototype.forEach.call(m,function(t){t.style.height=g+'px'})})}}}function t_store_hoverZoom_init(t){var e=document.getElementById('rec'+t);if(e.querySelector('[data-hover-zoom]')){var r=document.head,o=document.createElement('script');o.type='text/javascript',o.src='https://static.tildacdn.com/js/tilda-hover-zoom-1.0.min.js',o.onload=function(){t_hoverZoom_init(t)},o.onerror=function(t){console.log('Upload script error: '+t)},r.appendChild(o)}}function t_store_loadProducts(t,e,r,o,i){window.tStoreProductsRequested=!0;var s='relevants'===t,a=Date.now(),n=r.storepart,d=!o||1===parseInt(o,10),l=document.getElementById('rec'+e);if(l){var c,p=s?l.querySelector('.js-store-relevants-grid-cont'):l.querySelector('.js-store-grid-cont'),_='973'===l.getAttribute('data-record-type');if(s){c={storepartuid:n,productuid:i.currentProductUid,quantity:i.relevantsQuantity,method:i.relevantsMethod,sort:i.relevantsSort};p=l.querySelector('.t-store__relevants-grid-cont');p&&(p.style.opacity=0)}else c={storepartuid:n,recid:e,c:a};if(d&&(c.getparts=!0,c.getoptions=!0),o&&(c.slice=o),r.filters&&(c.filters=r.filters,c.getparts=!0),r.sort&&!s&&(c.sort=r.sort),r.size&&r.size>0&&(c.size=r.size),r&&r.defaultSort&&r.defaultSort.in_stock&&s&&(c.filters||(c.filters={}),c.filters.quantity='y'),!window.t_store_endpoint){window.t_store_endpoint='store.tildacdn.com';try{var u=document.getElementById('allrecords').getAttribute('data-tilda-root-zone');u&&(window.t_store_endpoint='store.tildaapi.'+u)}catch(t){}}var g='https://'+window.t_store_endpoint+'/api'+(s?'/getrelevantproducts/':'/getproductslist/');if(!r.isPublishedPage){var m=window.location.hostname.split('.'),y='tilda.'+m[m.length-1];c.projectid=document.getElementById('allrecords').getAttribute('data-tilda-project-id'),g='https://'+y+'/projects/store'+(s?'/getrelevantproducts/':'/getproductslist/')}var v=Date.now();window.tStoreXHR||(window.tStoreXHR={}),window.tStoreXHR[e]&&(window.tStoreXHR[e].abort(),delete window.tStoreXHR[e]);var f=new XMLHttpRequest;window.tStoreXHR[e]=f,f.onload=function(){if(f.readyState===f.DONE&&200===f.status){var t=f.responseText;clearTimeout(l.getAttribute('data-preloader-timeout'));var i=l.querySelector('.js-store-grid-cont-preloader');if(i&&(i.style.display='none'),r.sidebar){var a=l.querySelector('.t951__grid-cont');a&&a.classList.remove('t951__grid-cont_hidden')}if(d&&p&&(p.innerHTML=''),'string'==typeof t&&'{'!==t.substring(0,1)&&(-1!==t.indexOf('ERROR:')||-1!==t.indexOf('Wrong'))){var n=t_store_get_errorBox(r,t);return p.insertAdjacentHTML('beforeend',n),void t_store__fadeIn(l.querySelector('.js-store-error-msg'))}if(''===t)return;var c={};try{c=JSON.parse(t),c.partlinks&&(r.linksSizeChart=c.partlinks)}catch(e){console.log(t)}if('object'!=typeof c)return;var u=s?c.relevants:c.products;if(c.options&&c.options.length>=1&&(window.tStoreOptionsList=c.options),t_store_process(u,e,r,!!o,s,c),c.parts&&c.parts.length>1&&!l.querySelector('.js-store-parts-switcher')&&!r.hideStoreParts){var g=function(){t_store_onFuncLoad('t_store_addStoreParts',function(){t_store_addStoreParts(e,r,c.parts),t_store_setActiveStorePart(e)})},m='tilda-catalog-filters-1.0';if(document.head.querySelector('script[src*="'+m+'"]'))g();else{var y=document.createElement('script');y.type='text/javascript',y.src='https://static.tildacdn.com/js/'+m+'.min.js',y.onload=g,y.onerror=function(){console.error('Failed to load tilda-catalog-filters: ',this.src)},document.head.appendChild(y)}if(!document.head.querySelector('link[href*="'+m+'"]')){var v=document.createElement('link');v.rel='stylesheet',v.type='text/css',v.href='https://static.tildacdn.com/css/'+m+'.min.css',v.media='all',document.head.appendChild(v)}}window.tStoreFilters||(window.tStoreFilters={});t=window.tStoreFilters[e];if('y'===c.filter&&!r.hideFilters&&t)t&&(t.filters&&t.filters.length>0||t.search||t.sort)&&t_store_onFuncLoad('t_store_filters_init',function(){t_store_filters_init(e,r,t),s||t_store_filters_prodsNumber_update(l,r,c)});else if(r.sidebar&&!s&&c.parts&&0===c.parts.length){var h=l.querySelector('.t951__sidebar');if(h){h.classList.add('t951__sidebar_empty');var w='RU'===window.tStoreBrowserLang?'Пожалуйста, добавьте хотя бы один фильтр каталога для отображения боковой панели магазина. Справка':'Please add at least one catalog filter to display the store sidebar';h.innerHTML=''+w+''}}if(t_store_isQueryInAddressBar('tstore')&&window.t_store__scrollToBlock){var b=decodeURI(window.location.hash).split('/'),S=b.indexOf('r')+1,E=b[S];E===e&&('scrollBehavior'in document.documentElement.style?window.scrollTo({left:0,top:l.getBoundingClientRect().top+window.pageYOffset-50,behavior:'smooth'}):window.scrollTo(0,l.getBoundingClientRect().top+window.pageYOffset-50),window.t_store__scrollToBlock=null)}var A=l.querySelector('.js-store-load-more-btn');A&&A.classList.remove('t-btn_sending');var x=t_throttle(function(){if(!window.tStoreProductsRequested&&window.innerWidth<960){var t=p.scrollWidth,e=p.scrollLeft,r=p.offsetWidth;r+e+20>t&&'none'!==A.style.display&&(A.click(),p.removeEventListener('scroll',x))}}),C=p&&p.classList.contains('t-store__grid-cont_mobile-one-row');if(c.nextslice){if(!A){if(A=t_store_get_loadMoreBtn_html(l,r),r.sidebar){var L=l.querySelector('.t951__cont-w-filter .t951__cont-wrapper + .t-store__pagination');L||l.querySelector('.t951__cont-w-filter').insertAdjacentHTML('beforeend',A)}else if(!s){var j=l.querySelector('.js-store-grid-cont');j&&j.insertAdjacentHTML('afterend',A)}A=l.querySelector('.js-store-load-more-btn')}if(A){A.style.display='';var q=function(){window.tStoreProductsRequested||(A.classList.add('t-btn_sending'),t_store_loadProducts('',e,r,c.nextslice))};A.parentNode.replaceChild(A.cloneNode(!0),A),A=l.querySelector('.js-store-load-more-btn'),A.addEventListener('click',q)}C&&p.addEventListener('scroll',x)}else s||(A&&(A.style.display='none'),p&&p.removeEventListener('scroll',x));if(r.showPagination&&'on'===r.showPagination&&!s&&t_store_onFuncLoad('t_store_pagination_draw',function(){t_store_pagination_draw(e,r,o,c.total)}),C){var P=document.getElementById('allrecords').getAttribute('data-tilda-mode');p&&'edit'!==P&&'preview'!==P&&('y'!==window.lazy&&'yes'!==document.getElementById('allrecords').getAttribute('data-tilda-lazy')||t_store_onFuncLoad('t_lazyload_update',function(){p.addEventListener('scroll',t_throttle(function(){t_lazyload_update()}))}))}if(s){l.querySelector('.t-store__relevants-grid-cont').style.opacity=1;var k=4;r.relevants_slider&&(u.length>k||window.innerWidth<=960)&&t_store_onFuncLoad('t_sldsInit',function(){t_sldsInit(e+' .js-store-relevants-grid-cont')})}_&&!s&&t_store_onFuncLoad('t_sldsInit',function(){t_sldsInit(e+' .js-store-grid-cont')}),r.verticalAlignButtons&&t_store_verticalAlignButtons(e,r),r.verticalAlignButtons&&('complete'===document.readyState?t_store_verticalAlignButtons(e,r):window.addEventListener('load',function(){t_store_verticalAlignButtons(e,r)})),r.itemsAnim&&r.previewmode&&t_store_onFuncLoad('t_animate__startAnimation',function(){t_animate__startAnimation()}),p.style.height='',t_triggerEvent(document.body,'twishlist_addbtn'),t_triggerEvent(p,'tStoreRendered'),window.tStoreProductsRequested=!1}},f.ontimeout=f.onerror=function(s){if(-1!==window.t_store_endpoint.indexOf('store.tilda'))t_store_changeEndpoint(s,function(){t_store_loadProducts(t,e,r,o,i)});else{var a=l.querySelector('.js-store-load-more-btn');a&&a.classList.remove('t-btn_sending');var n=Date.now()-v;0===f.status&&n<100&&console.log('Request error (get store products). Please check internet connection...'),window.tStoreProductsRequested=!1;var d=l.querySelector('.js-store-grid-cont-preloader');d&&(d.style.display='none');var c=t_store_get_errorBox(r,'Request timeout (40s). Please check internet connection and reload the page. If the situation has not changed, please contact support team@tilda.cc.');p.insertAdjacentHTML('beforeend',c),t_store__fadeIn(l.querySelector('.js-store-error-msg'))}},f.open('GET',g+'?'+t_store__serializeData(c)),f.timeout=2e4,f.send()}}function t_store_loadOneProduct(t,e,r,o,i){var s=Date.now(),a=e.storepart,n={storepartuid:a,recid:t,productuid:r,c:s},d=new XMLHttpRequest;if(d.onload=function(){d.readyState===d.DONE&&200===d.status&&o()},d.ontimeout=d.onerror=function(t){console.log('Can\'t get product with uid = '+r+' in storepart = '+e.storepart),'function'==typeof i&&i(t)},!window.t_store_endpoint){window.t_store_endpoint='store.tildacdn.com';try{var l=document.getElementById('allrecords').getAttribute('data-tilda-root-zone');l&&(window.t_store_endpoint='store.tildaapi.'+l)}catch(t){}}d.open('GET','https://'+window.t_store_endpoint+'/api/getproduct/?'+t_store__serializeData(n)),d.timeout=2e4,d.send()}function t_store_loadProducts_byId(t,e,r,o){var i=Date.now(),s={productsuid:t,c:i};if(!window.t_store_endpoint){window.t_store_endpoint='store.tildacdn.com';try{var a=document.getElementById('allrecords').getAttribute('data-tilda-root-zone');a&&(window.t_store_endpoint='store.tildaapi.'+a)}catch(t){}}var n='https://'+window.t_store_endpoint+'/api/getproductsbyuid/';if(e&&!e.isPublishedPage){s.projectid=document.getElementById('allrecords').getAttribute('data-tilda-project-id');var d=window.location.hostname.split('.'),l='tilda.'+d[d.length-1];n='https://'+l+'/projects/store/getproductsbyuid/'}s=JSON.stringify(s);var c=new XMLHttpRequest;c.onload=function(){c.readyState===c.DONE&&200===c.status&&('string'==typeof c.responseText&&'{'===c.responseText.substring(0,1)||console.log('Can\'t get products array by uid list'),r(JSON.parse(c.responseText)))},c.ontimeout=c.onerror=function(e){console.log('Can\'t get getproductsbyuid. Requesting idArr: '+t),'function'==typeof o&&o(e)},c.open('POST',n),c.timeout=2e4,c.send(s)}function t_store_loadFilters(t,e,r){var o=Date.now(),i=t.storepart,s={storepartuid:i,c:o},a=document.getElementById('allrecords');if(a&&'y'===a.getAttribute('data-tilda-ts')&&t&&t.defaultSort&&t.defaultSort.in_stock&&(s.filters||(s.filters={}),s.filters.quantity='y'),!window.t_store_endpoint){window.t_store_endpoint='store.tildacdn.com';try{if(a){var n=a.getAttribute('data-tilda-root-zone');n&&(window.t_store_endpoint='store.tildaapi.'+n)}}catch(t){}}var d='https://'+window.t_store_endpoint+'/api/getfilters/';if(!t.isPublishedPage){a&&(s.projectid=a.getAttribute('data-tilda-project-id'));var l=window.location.hostname.split('.'),c='tilda.'+l[l.length-1];d='https://'+c+'/projects/store/getfilters/'}var p=new XMLHttpRequest;p.onload=function(){if(p.readyState===p.DONE&&200===p.status)try{e(JSON.parse(p.responseText))}catch(t){e()}},p.ontimeout=p.onerror=function(e){console.log('Can\'t get filters in storepart = '+t.storepart),'function'==typeof r&&r(e)},p.open('GET',d+'?'+t_store__serializeData(s)),p.timeout=2e4,p.send()}function t_store_process(t,e,r,o,i,s){var a=document.getElementById('rec'+e);if(a){var n=a.querySelector('.js-store-grid-cont');if(n){var d='973'===a.getAttribute('data-record-type'),l='1025'===r.prodCard.blockId,c=!!r.prodCard.hasWrap,p=document.getElementById('allrecords')!==document.querySelector('.t-store__product-snippet')&&document.getElementById('allrecords').contains(document.querySelector('.t-store__product-snippet'));i&&(n=a.querySelector('.js-store-relevants-grid-cont'));var _=t_store_get_horizSeparator_html(r),u={},g=n.querySelectorAll('.t-store__card').length;if(0===t.length){var m=t_store_get_emptyMsg_html(r);return n.insertAdjacentHTML('beforeend',m),void t_store__fadeIn(a.querySelector('.js-store-empty-part-msg'))}if(i&&r.relevants_slider){var y=r.prodCard.shadowSize,v=r.prodCard.shadow,f=r.prodCard.shadowHover,h=r.prodCard.shadowSizeHover,w=r.prodCard.shadowOpacityHover,b=r.prodCard.shadowShiftyHover,S=parseInt(y,10)||0;S=Math.min(S,10);var E=h?parseInt(h,10):20;E=Math.min(E,40);var A=w?parseInt(w,10)/100:.3,x=v||f?20:Math.max(E,S),C='';if(f)C='box-shadow: '+f+' !important;';else if(h||w){var L={sm:10,md:20},j=L[b]||0;C='box-shadow: 0px '+j+'px '+E+'px rgba(0,0,0,'+A+') !important;'}var q='';if(C&&c&&(q+='#rec'+e+' .t-store .t-store__relevants__container .t-store__relevants-grid-cont .t-store__card__wrap_all:hover {',q+=C,q+='}\n'),(y||h||v||f)&&(q+='@media screen and (max-width:960px) {\n',q+='#rec'+e+' .t-store .t-store__relevants__container .t-store__relevants-grid-cont .t-store__card__wrap_all {\n',q+='margin: '+x+'px;\n',q+='}\n',q+='}\n',q+='@media screen and (min-width:961px) {\n',q+='#rec'+e+' .t-store .t-store__relevants__container .t-store__relevants-grid-cont .t-slds__items-wrapper {\n',q+='padding-top: '+x+'px;\n',q+='padding-bottom: '+x+'px;\n',q+='}\n',q+='#rec'+e+' .t-store .t-store__relevants__container .t-store__relevants__title-wrapper .t-store__relevants__title {\n',q+='margin-bottom: '+(40-x)+'px;\n',q+='}\n',q+='}\n'),q){q='';var P=a.querySelector('.t-popup .t-store__relevants__container');if(P&&P.insertAdjacentHTML('beforebegin',q),p){var k=a.querySelector('.t-store__product-snippet + .t-store__relevants__container');k&&(k.insertAdjacentHTML('beforebegin',q),r.isFlexCols&&k.classList.add('t-store__grid-cont_col-width_stretch'))}}}var O='',I=4,T=i?I:r.blocksInRow;if(i&&r.relevants_slider&&(t.length>I||window.innerWidth<=960)||!i&&d){var B='',z='300';'fast'===r.slider_opts.anim_speed&&(B='t-slds_animated-fast'),'slow'===r.slider_opts.anim_speed&&(B='t-slds_animated-slow',z='500'),O+='',R&&i&&(O+=R)}if(t_store_process_appendAndShowProducts(a,n,O),-1===O.indexOf('data-animate-style="fadeinleft"')||n.classList.contains('t-store__grid-cont_mobile-one-row')||(n.style.overflowX='hidden'),Array.prototype.forEach.call(t,function(t){var o=i?a.querySelector('.t-store__relevants__container .js-product.t-item[data-product-gen-uid="'+t.uid+'"]'):a.querySelector('.t-store__grid-cont .js-product.t-item[data-product-gen-uid="'+t.uid+'"]');o.setAttribute('data-card-size','small'),t=u[t.uid];var s=parseInt(t.quantity,10)<=0;s||'both'!==r.showStoreBtnQuantity&&'list'!==r.showStoreBtnQuantity||t_store_addProductQuantity(o,t,r),t_store_addProductOptions(e,t,o,r),t_store_option_handleOnChange(o),t_store_option_handleOnChange_custom(e,o,r),t_store_onFuncLoad('t_prod__initProduct',function(){t_prod__initProduct(o,r)})}),!i&&window.tStoreFilters&&'object'==typeof window.tStoreFilters&&window.tStoreFilters[e]&&'object'==typeof window.tStoreFilters[e]&&window.tStoreCustomUrlParams&&'object'==typeof window.tStoreCustomUrlParams&&window.tStoreCustomUrlParams[e]&&'object'==typeof window.tStoreCustomUrlParams[e]&&Array.prototype.forEach.call(t,function(t){var r=a.querySelector('.t-store__grid-cont .js-product.t-item[data-product-gen-uid="'+t.uid+'"]');Array.prototype.forEach.call(r.querySelectorAll('.js-product-edition-option'),function(t){var r=!1,o=t.querySelector('select');o&&Object.keys(window.tStoreCustomUrlParams[e]).forEach(function(t){Array.prototype.slice.call(window.tStoreFilters[e].filters).forEach(function(i){if(i.name===t&&i.name.indexOf('charact')<0){var s=window.tStoreCustomUrlParams[e][t];'object'==typeof s&&s.slice().reverse().forEach(function(t){if(!r)if(t!==o.value){var e=o.querySelector('[value="'+t_store_escapeQuote(t)+'"]');e&&!e.getAttribute('disabled')&&(o.value=t,t_triggerEvent(o,'change'),r=!0)}else t_triggerEvent(o,'change'),r=!0})}})})})}),!o&&r.isFlexCols&&r.isHorizOnMob){var D=n.querySelector('.t-store__tail-gap');t_store__removeElement(D),n.insertAdjacentHTML('beforeend','
')}if('y'!==window.lazy&&'yes'!==document.getElementById('allrecords').getAttribute('data-tilda-lazy')||(r.relevants_slider?setTimeout(function(){t_store_onFuncLoad('t_lazyload_update',function(){t_lazyload_update()})},100):t_store_onFuncLoad('t_lazyload_update',function(){t_lazyload_update()})),document.querySelector('.t706__cartwin')||document.querySelector('.t706__sidebar')?'function'==typeof tcart__addEvent__links&&tcart__addEvent__links(e):console.log('Warning: cart block is not added to this page'),t_store_initPopup(e,u,r,i,s),'1025'==r.prodCard.blockId?t_store_unifyCardsWidth(e):(setTimeout(function(){t_store_unifyCardsHeights(e,r),r.verticalAlignButtons&&t_store_verticalAlignButtons(e,r)},1),document.fonts&&document.fonts.ready?document.fonts.ready.then(function(){setTimeout(function(){t_store_unifyCardsHeights(e,r)},1e3)}):setTimeout(function(){t_store_unifyCardsHeights(e,r)},1e3),r.verticalAlignButtons&&('complete'===document.readyState?t_store_verticalAlignButtons(e,r):window.addEventListener('load',function(){t_store_verticalAlignButtons(e,r)}))),!r.previewmode)try{addEditFieldEvents_new(e)}catch(t){console.log(t.message)}}}}function t_store_process_appendAndShowProducts(t,e,r){e.insertAdjacentHTML('beforeend',r),!0===t.getAttribute('data-already-loaded-first-products')?setTimeout(function(){Array.prototype.forEach.call(t.querySelectorAll('.t-store__card'),function(t){t.classList.remove('t-store__card_hidden')})},10):(Array.prototype.forEach.call(t.querySelectorAll('.t-store__card'),function(t){t.classList.remove('t-store__card_hidden')}),t.setAttribute('data-already-loaded-first-products',!0))}function t_store_mobileHoriz_checkBtnVisibility(t,e){var r=function(t,e){var r=document.getElementById('rec'+t);if(window.innerWidth<960&&e.hasMobileHorizScroll){var o=r.querySelector('.js-store-load-more-btn');t_store__removeElement(o)}};r(t,e),window.addEventListener('resize',t_throttle(function(){r(t,e)},500))}function t_store_get_productPopup_html(t,e){var r='',o=e.popup_opts.popupStat?'data-track-popup="'+e.popup_opts.popupStat+'"':'',i=e.popup_opts.overlayBgColorRgba?'style="background-color:'+e.popup_opts.overlayBgColorRgba+'"':'',s='t-popup__container t-popup__container-static ',a=e.verticalAlignButtons?'t-store__valign-buttons':'',n=e.showRelevants,d=e.titleRelevants?e.titleRelevants:window.tStoreDict.seeAlso,l=e.relevants_slider?'':'t-store__grid-cont_mobile-one-row',c=e.galleryStyle&&''!==e.galleryStyle&&parseInt(e.popup_opts.columns,10)+parseInt(e.popup_opts.columns2,10)<=12;e.popup_opts.isVertical&&(s+='t-store__popup-container_8-cols ');var p='',_=e.popup_opts.isVertical?'':'t-store__prod-popup__col-left t-col t-col_'+e.popup_opts.columns,u=document.querySelector('#rec'+t),g=u&&'1025'===u.getAttribute('data-record-type'),m='t-align_'+(g||'center'!==e.popup_opts.align?'left':'center')+' ',y=m+(e.popup_opts.isVertical?'':'t-store__prod-popup__col-right t-col t-col_'+e.popup_opts.columns2),v='js-store-product js-product t-store__product-popup ';e.popup_opts.containerBgColor&&(p+='background-color:'+e.popup_opts.containerBgColor+';'),'100'===e.popup_opts.popupContainer&&(p+='max-width:100%;',v+='t-container_fluid '),r+='
',r+=t_store_get_productPopup_closeIcon_html(e),r+=t_store_get_productPopup_closeText_html(e),r+='
',r+='
',r+='
',r+='
';var f=[];return'100'===e.popup_opts.popupContainer&&f.push('t-container_fluid'),e.popup_opts.mobileGalleryStyle&&f.push('t-store__popup-with-mobile-gallery'),r+=f.length?'
':'
',c&&(r+=''),r+='
',e.popup_opts.mobileGalleryStyle&&(r+=''),r+='
',r+=t_store_get_productPopup_titleText_html(),r+='
',r+=t_store_get_productPopup_onePrice_html(e,'current'),r+=t_store_get_productPopup_onePrice_html(e,'old'),r+='
',r+='
',r+=t_store_get_productPopup_linksSizeChart_html(),r+=t_store_get_productPopup_buyBtn_html(e),r+=t_store_get_productPopup_text_html(),r+='
',r+='
',r+='
',n&&(r+='
',r+='
', r+='
'+d+'
',r+='
',e.relevants_slider||(r+=t_store_get_handIcon_html(t,e.horizontalScrollHint)),r+='
',r+='
'),r+='
',r+='
',r+='
',r+='
',r}function t_store_get_productPopup_text_html(){var t='';return t+='
',t}function t_store_get_productPopup_linksSizeChart_html(){var t='';return t+='',t}function t_store_get_productPopup_buyBtn_html(t){var e='',r=t.btn1_style,o=t.popup_opts.btnTitle;return''!==o&&(e+='
',e+='',e+='
',e+=o,e+='
',e+='
',e+='
'),e}function t_store_get_productPopup_onePrice_html(t,e){var r,o='',i='current'===e?'js-store-prod-price t-store__prod-popup__price':'js-store-prod-price-old t-store__prod-popup__price_old',s=Object.prototype.hasOwnProperty.call(t.price,'fontWeight')&&Object.prototype.hasOwnProperty.call(t.price,'fontSize'),a='',n='current'===e?t.price.color:t.price.colorOld,d=t.popup_opts.containerBgColor;0===Math.abs(t_store_getLightnessColor(n)-t_store_getLightnessColor(d))&&(n=t_store_luma_rgb(d),s||(a+=n?'color:'+n+';':'')),s&&(a+=n?'color:'+n+';':'',a+=t.price.fontWeight?'font-weight:'+t.price.fontWeight+';':''),r=''!==a?'style = "'+a+'"':'';var l=t.currencyTxt?'
'+t.currencyTxt+'
':'',c='current'===e?'js-product-price js-store-prod-price-val':'js-store-prod-price-old-val';return o+='
',o+='r'!==t.currencySide&&l?l:'',o+='
',o+='r'===t.currencySide&&l?l:'',o+='
',o}function t_store_get_productPopup_titleText_html(){var t='';return t+='
',t+='
',t+='
',t+='
',t+=window.tStoreDict.sku+': ',t+='',t+='',t+='
',t+='
',t}function t_store_get_productPopup_closeIcon_html(t){var e='',r=t.popup_opts.iconColor?t.popup_opts.iconColor:'#000000',o=t.popup_opts.overlayBgColorRgba?t_store_removeRgbOpacity(t.popup_opts.overlayBgColorRgba):t.popup_opts.containerBgColor,i=o&&o.length?o:'#ffffff';if(t.popup_opts.overlayBgColorRgba&&!t.popup_opts.iconColor){var s=t_store_removeRgbOpacity(t.popup_opts.overlayBgColorRgba);r=t_store_luma_rgb(s)}return e+='
',e+='
',e+='',e+='',e+='',e+=' ',e+=' ',e+=' ',e+=' ',e+=' ',e+=' ',e+='
',e+='
',e}function t_store_get_productPopup_closeIcon_color(t,e){var r=e.popup_opts.iconColor?e.popup_opts.iconColor:'#000000',o=e.popup_opts.overlayBgColorRgba?t_store_removeRgbOpacity(e.popup_opts.overlayBgColorRgba):e.popup_opts.containerBgColor,i=o&&o.length?o:'#ffffff';if(e.popup_opts.overlayBgColorRgba&&!e.popup_opts.iconColor){var s=t_store_removeRgbOpacity(e.popup_opts.overlayBgColorRgba);r=t_store_luma_rgb(s)}var a=document.getElementById('rec'+t),n=document.getElementById('allrecords')!==document.querySelector('.t-store__product-snippet')&&document.getElementById('allrecords').contains(document.querySelector('.t-store__product-snippet')),d=n?a.querySelector('.t-store__prod-snippet__container'):a.querySelector('.t-popup'),l=d.querySelector('.t-popup__close');l.style.backgroundColor=i;var c=d.querySelector('.t-popup__close-icon_cross');if(n&&!e.popup_opts.iconColor&&Math.abs(t_store_getLightnessColor(r)-t_store_getLightnessColor(t_store_removeRgbOpacity(i)))>.1){s=t_store_removeRgbOpacity(e.popup_opts.containerBgColor)||'rgb(255,255,255)';c.querySelector('g').setAttribute('fill',t_store_luma_rgb(s))}else c.querySelector('g').setAttribute('fill',r);var p=d.querySelector('.t-popup__close-icon_arrow');p.querySelector('path').setAttribute('fill',r)}function t_store_get_productPopup_closeText_html(t){if(!t.popup_opts.closeText)return'';var e=t_store_unescapeHtml(t.popup_opts.closeText),r=t.popup_opts.iconColor?t.popup_opts.iconColor:'#000000',o=t.popup_opts.containerBgColor&&t.popup_opts.containerBgColor.length?t.popup_opts.containerBgColor:'#ffffff';if(t.popup_opts.containerBgColor&&!t.popup_opts.iconColor){var i=t_store_hexToRgb(o);r=t_store_luma_rgb(i)}var s='style="color:'+r+'"',a='';return a+='
',a+='
',a+=e,a+='
',a+='
',a}function t_store_get_loadMoreBtn_html(t,e){var r='',o=!!(window.innerWidth<960&&t.querySelector('.js-store-grid-cont.t-store__grid-cont_mobile-one-row')),i=o?' t-store__load-more-btn-wrap_hidden ':'',s='sm'===e.btnSize?'t-btn_xs':'t-btn_sm';return r+='
',r+='
',r+='
'+window.tStoreDict.loadmore+'
',r+='
',r+='
',r}function t_store_get_handIcon_html(t,e){var r,o=document.getElementById('rec'+t),i='rgba(190,190,190,0.3)',s='rgba(190,190,190,1)',a='rgba(190,190,190,0.3)',n='mix-blend-mode: multiply;',d=o.getAttribute('data-bg-color');d&&(r=-1!==d.indexOf('-gradient(')?t_store_getFirstColorFromGradient(d):t_store_hexToRgb(d));var l=document.getElementById('allrecords')!==document.querySelector('.t-store__product-snippet')&&document.getElementById('allrecords').contains(document.querySelector('.t-store__product-snippet'));if(l&&(r=o.style.backgroundColor),r){var c=t_store_luma_rgb(r);'white'===c&&(n='mix-blend-mode: lighten;',i='rgba(255,255,255,0.2)',s='rgba(255,255,255,1)',a='rgba(255,255,255,0.2)')}var p='
',_='
';return'hand'!==e&&e?'circle'===e?_:'':p}function t_store_get_emptyMsg_html(t){var e='',r=t.typo.titleColor?'color:'+t.typo.titleColor+';border-color:'+t.typo.titleColor+';':'',o='js-store-empty-part-msg t-store__empty-part-msg-cont';return o+=t.colClassFullWidth?' '+t.colClassFullWidth:'',e+='',e}function t_store_get_errorBox(t,e){var r='',o=t.typo.titleColor?'color:'+t.typo.titleColor+';border-color:'+t.typo.titleColor+';':'',i='js-store-error-msg t-store__error-msg-cont';return i+=t.colClassFullWidth?' '+t.colClassFullWidth:'',r+='',r+='',r+='',r+='',r+='',r}function t_store_get_productCard_html(t,e,r,o,i,s){var a=o?'t-col t-col_3':r.colClass,n=t_store_product_getFirstAvailableEditionData(e.editions),d='',l='left'===r.align?'t-align_left':'t-align_center',c=r.itemsAnim&&r.previewmode?'t-animate':'';if(window.tStoreIsMobile){var p=navigator.connection||navigator.mozConnection||navigator.webkitConnection;p&&('slow-2g'!==p.effectiveType&&'2g'!==p.effectiveType&&'3g'!==p.effectiveType||(c=''))}var _=r.itemsAnim?'data-animate-style="'+r.itemsAnim+'" data-animate-chain="yes" ':'',u=n.quantity&&parseInt(n.quantity,10)<=0,g='data-product-inv="'+(n.quantity||'')+'" ',m='1025'===r.prodCard.blockId,y=r.prodCard.btnLink1,v=t_store_get_productCard_link(y,e,o,t),f=t_store_get_productCard_targetAttr(y,e),h={open:r.previewmode?'':'',close:r.previewmode?'':''};(u&&'#order'===v||!document.querySelector('.t706__cartwin')&&!document.querySelector('.t706__sidebar')&&'#order'===v)&&(h.open='',h.close='');var w='';o&&(w='js-product-relevant');var b=4,S=e.pack_label,E=e.pack_m,A=e.pack_x,x=e.pack_y,C=e.pack_z;i=parseInt(i,10)+1;var L='973'===t.getAttribute('data-record-type')&&!o,j=o&&r.relevants_slider&&(s.length>b||window.innerWidth<=960);(j||L)&&(d+='
',d+='
');var q=e.url||'',P='';m&&('2'===r.prodCard.style?P+=' t-store__card_in-row':'3'===r.prodCard.style?P+=' t-store__card_under-description':P+=' t-store__card_in-column',P+=r.prodCard.hasSeparator?'':' t-store__card_no-separator',P+=parseInt(r.rightColumnWidth,10)?' t-store__card_fixed-width':'',P+=r.verticalAlign?' t-store__card_verticalAlign_'+r.verticalAlign:'');var k=[];try{k=JSON.parse(e.partuids)}catch(t){}return d+='
',r.prodCard.hasWrap?d+=t_store_get_productCard_wrapperStructure(e,n,r,h,o,t):d+=m&&!o?t_store_get_productCard_horizontalStructure(e,n,r,h,o,t):t_store_get_productCard_simpleStructure(e,n,r,h,o,t),d+='
',(j||L)&&(d+='
',d+='
'),d}function t_store_get_productCard_simpleStructure(t,e,r,o,i,s){var a=r.prodCard.showOpts?'':'style="display:none;"',n=t_store_get_productCard_img_html(t,r),d='';return d+=o.open,d+=' '+n,d+=' '+t_store_get_productCard_txtAndPrice_html(t,e,r,n),d+=o.close,d+='
',d+=t_store_get_productCard_btn_html(t,r,i,s),d}function t_store_get_productCard_wrapperStructure(t,e,r,o,i,s){var a='',n=t_store_get_productCard_getWrapperStylesStr(r),d=r.prodCard.showOpts?'':'style="display:none;"',l=r.prodCard&&r.prodCard.txtPad?'t-store__card__wrap_pad-'+r.prodCard.txtPad:'';return a+='
',a+=' '+o.open,a+=' '+t_store_get_productCard_img_html(t,r),a+=' '+o.close,a+='
',a+='
',a+=' '+o.open,a+=' '+t_store_get_productCard_txtAndPrice_html(t,e,r),a+=' '+o.close,a+='
',a+='
',a+=' '+t_store_get_productCard_btn_html(t,r,i,s),a+='
',a+='
',a}function t_store_get_productCard_getWrapperStylesStr(t){var e='';e+=t.prodCard.bgColor?'background-color:'+t.prodCard.bgColor+';':'',e+=t.prodCard.borderRadius?'border-radius:'+parseInt(t.prodCard.borderRadius,10)+'px;':'';var r=t.prodCard.shadowOpacity,o=t.prodCard.shadowSize,i=t.prodCard.shadow,s='';return i?s='box-shadow:'+i+';':(r||o)&&(r=r?parseInt(r,10)/100:.3,o=o?parseInt(o,10):10,s='box-shadow: 0px 0px '+o+'px rgba(0,0,0,'+r+');'),e+=s,e}function t_store_get_productCard_img_html(t,e,r){var o='1025'===e.prodCard.blockId;if(o&&!e.prodCard.hasImg)return'';var i='',s=e.hasOriginalAspectRatio&&!e.isHorizOnMob?'t-store__card__imgwrapper_original-ratio':'',a='t-store__card__imgwrapper ';a+=o?e.imageRatioClass:s+(e.isFlexCols?' '+e.imageRatioClass:'');var n=document.getElementById('allrecords')!==document.querySelector('.t-store__product-snippet')&&document.getElementById('allrecords').contains(document.querySelector('.t-store__product-snippet'));if(n&&!e.colWidth){var d={1:760,2:560,3:360,4:260};e.colWidth=d[e.blocksInRow]}var l=!e.imageHeight||e.isFlexCols||o?'':'padding-bottom:'+100*parseInt(e.imageHeight,10)/(e.colWidth||360)+'%;';if(e.hasOriginalAspectRatio&&e.prodCard.borderRadius){var c=parseInt(e.prodCard.borderRadius,10);l+='border-radius:'+c+'px '+c+'px 0px 0px; overflow: hidden;'}var p,_=t_store_get_productCard_imgElHover_html(t,e,r),u=e.imageHover&&_,g=r||t_store_getProductFirstImg(t);if(g=g.replace(/&amp;/,'&'),''!==g){if(e.hasOriginalAspectRatio){p=document.createElement('img'),p.classList.add('js-product-img'),p.classList.add('t-store__card__img'),u&&p.classList.add('t-store__card__img_hover');var m=/Version\/16\.3 Safari/.test(navigator.userAgent);m&&(p.style.objectFit='contain'),p.classList.add('t-img'),p.setAttribute('data-original',g),p.src=t_store_getLazySrc(e,g)}else p=document.createElement('div'),p.classList.add('js-product-img'),p.classList.add('t-store__card__bgimg'),u&&p.classList.add('t-store__card__bgimg_hover'),p.classList.add('t-bgimg'),p.setAttribute('data-original',g),p.style.backgroundImage='url("'+t_store_getLazyUrl(e,g)+'")',t_store_get_productCard_getImgStyles(p,e);if(1===t.editions.length){var y=t_store_product_getFirstAvailableEditionData(t.editions);y.uid&&p.setAttribute(e.hasOriginalAspectRatio?'imgfield':'bgimgfield','st_gallery__'+y.uid+':::0')}return i+='
',i+=' '+t_store_get_productCard_mark_html(t,e),i+=' '+p.outerHTML,i+=' '+(e.imageHover?_:''),i+='
',i}return''}function t_store_get_productCard_img_replaceWith(t,e,r,o){var i=e.querySelector('.t-store__card__imgwrapper'),s=t_store_get_productCard_img_html(t,r,o);i&&(i.outerHTML=s),'y'!==window.lazy&&'yes'!==document.getElementById('allrecords').getAttribute('data-tilda-lazy')||t_store_onFuncLoad('t_lazyload_update',function(){t_lazyload_update()}),t_triggerEvent(document.body,'twishlist_addbtn')}function t_store_get_productCard_imgElHover_html(t,e,r){if(t.gallery&&'['===t.gallery[0]){var o=JSON.parse(t.gallery);if(void 0!==o[1]){var i,s=o[1].img;if(r&&r.length)for(var a=0;a0&&!window.tStoreIsMobile&&(t.style.top='-2px')}}function t_store_get_productCard_mark_html(t,e){if(!t.mark)return'';var r='';r+=e.markColor?'color:'+e.markColor+';':'',r+=e.markBgColor?'background-color:'+e.markBgColor+';':'';var o=r?'style="'+r+'"':'',i='';return i+='
',i+='
',i+=t.mark,i+='
',i+='
',i}function t_store_get_productCard_txtAndPrice_html(t,e,r,o){var i='',s=''===o?'style="padding-top:0px;"':'';return i+='
',i+=t_store_get_productCard_txt_html(t,e,r),Object.prototype.hasOwnProperty.call(r.price,'position')&&''!==r.price.position||(i+=t_store_get_productCard_Price_html(t,e,r)),i+='
',i}function t_store_get_productCard_txt_html(t,e,r){var o='',i='';if(Object.prototype.hasOwnProperty.call(r.price,'position')&&'at'===r.price.position&&(o+=t_store_get_productCard_Price_html(t,e,r)),t.title){i=4===parseInt(r.blocksInRow,10)?'t-name_xs':2===parseInt(r.blocksInRow,10)?'t-name_xl':'t-name_md';var s=1===t.editions.length&&e.uid?'field="st_title__'+e.uid+'" data-redactor-toolbar="no"':'';o+='
',o+=t.title,o+='
'}if(Object.prototype.hasOwnProperty.call(r.price,'position')&&'bt'===r.price.position&&(o+=t_store_get_productCard_Price_html(t,e,r)),e.sku){var a=r.prodCard.showOpts?'':'display:none;',n=r.typo.descrColor?'color:'+r.typo.descrColor+';':'',d='style="'+a+n+'"',l=1===t.editions.length&&e.uid?'field="st_sku__'+e.uid+'" data-redactor-toolbar="no"':'';o+='
',o+=window.tStoreDict.sku+': ',o+='',o+=e.sku,o+='',o+='
'}if(t.descr){var c=1===t.editions.length&&e.uid?'field="st_descr__'+e.uid+'" data-redactor-toolbar="no"':'';o+='
',o+=t.descr,o+='
'}return o}function t_store_get_productCard_Price_html(t,e,r){var o='',i='',s=t_store__getFormattedPriceRange(r,t);return Object.prototype.hasOwnProperty.call(r.price,'position')&&('at'===r.price.position?i=' t-store__card__price-wrapper_above-title':'bt'===r.price.position&&(i=' t-store__card__price-wrapper_below-title')),o+='
',o+=t_store_get_productCard_onePrice_html(t,e,r,'current'),s||(o+=t_store_get_productCard_onePrice_html(t,e,r,'old')),o+='
',o}function t_store_get_productCard_onePrice_html(t,e,r,o){var i='current'===o?e.price:e.priceold,s=t_store__getFormattedPrice(r,i),a=r.price.priceRange,n=t_store__getFormattedPriceRange(r,t);n&&'range'===a&&(s=n);var d,l='current'===o?'price':'priceold',c='',p='current'===o?'t-store__card__price':'t-store__card__price_old',_='';_+=i&&'0'!==i&&'0.0000'!==i?'':'display: none;';var u=Object.prototype.hasOwnProperty.call(r.price,'fontWeight')&&Object.prototype.hasOwnProperty.call(r.price,'fontSize');if(u){var g='current'===o?r.price.color:r.price.colorOld;_+=g?'color:'+g+';':'',_+=r.price.fontSize?'font-size:'+r.price.fontSize+';':'',_+=r.price.fontWeight?'font-weight:'+r.price.fontWeight+';':''}d=''!==_?'style = "'+_+'"':'';var m=1===t.editions.length&&e.uid?'field="st_'+l+'__'+e.uid+'" data-redactor-toolbar="no"':'',y=r.currencyTxt?'
'+r.currencyTxt+'
':'',v='current'===o?'js-product-price js-store-prod-price-val':'js-store-prod-price-old-val';n&&(v+=' js-store-prod-price-range-val');var f='1025'===r.prodCard.blockId;if(c+='
',n&&'from'===a){c+='
'+window.tStoreDict.from+'
';var h=t_store__getFormattedMinPrice(r,t);null!==h&&(s=h)}return c+='r'!==r.currencySide&&y?y:'',c+='
'+s+'
',c+='r'===r.currencySide&&y?y:'',t.unit&&t.portion>0&&(c+='
/','1'!==t.portion&&(c+=+t.portion+' '),c+=window.tStoreDict[t.unit]+'
'),c+='
',c}function t_store_get_productCard_btn_html(t,e,r,o){if(!e.prodCard.btnTitle1&&!e.prodCard.btnTitle2)return'';var i,s,a='1025'===e.prodCard.blockId,n='',d='sm'===e.btnSize?'t-btn_xs':'t-btn_sm';return n+='
',e.prodCard.btnTitle1&&(i=t_store_get_productCard_link(e.prodCard.btnLink1,t,r,o),s=t_store_get_productCard_targetAttr(e.prodCard.btnLink1,t),a&&(n+='
'),n+=''+e.prodCard.btnTitle1+'',a&&(n+='
')),e.prodCard.btnTitle2&&(i=t_store_get_productCard_link(e.prodCard.btnLink2,t,r,o),s=t_store_get_productCard_targetAttr(e.prodCard.btnLink2,t),a&&(n+='
'),n+=''+e.prodCard.btnTitle2+'',a&&(n+='
')),n+='
',n}function t_store_get_productCard_link(t,e,r,o){if(o[0]){var i=document.getElementById('allrecords')!==document.querySelector('.t-store__product-snippet')&&document.getElementById('allrecords').contains(document.querySelector('.t-store__product-snippet'));if(i&&'popup'===t)return t_store_generateUrl(e)}if('order'===t)return'#order';if(r)return e.buttonlink?e.buttonlink:'#prodpopup';if('popup'===t){if(e.buttonlink){var s=e.buttonlink;return-1===s.indexOf('//')&&'/'!==s.slice(0,1)&&'#'!==s.slice(0,1)&&(s='https://'+s),s}return'#prodpopup'}return'#prodpopup'}function t_store_get_productCard_targetAttr(t,e){return'popup'===t&&e.buttonlink&&'_blank'===e.buttontarget?'target="_blank"':''}function t_store_get_horizSeparator_html(t){var e='
';return e=e.replace('[[style]]',t.vindent?'style="margin-bottom:'+t.vindent+';"':''),e}function t_store_unifyCardsHeights(t,e){if(e.prodCard&&e.prodCard.hasWrap){var r=document.getElementById('rec'+t);r&&['.t-store__grid-cont .t-store__card','.t-popup__container .t-store__card'].forEach(function(t){var o=r.querySelectorAll(t);if(o){var i=t_store_unifyCardsHeights_getBlocksInRow(e,o),s=r.querySelector('.t-store__card__wrap_txt-and-btns');if(window.innerWidth<=480&&!e.isHorizOnMob&&s)return void(s.style.height='auto');for(var a=0;an&&(n=_)}for(d=0;ds&&(s=d)}if(o){var l=Math.ceil(parseFloat(window.getComputedStyle(o).width));l>a&&(a=l)}}else{var c=Math.ceil(parseFloat(window.getComputedStyle(e).width));c>i&&(i=c)}}),Array.prototype.forEach.call(o,function(t){var e=t.querySelector('.t-store__card__price-buttons');if(e)if(e.classList.contains('t-store__card__price-buttons_in-row')){var r=e.querySelector('.t-store__card__price-wrapper'),o=e.querySelector('.t-store__card__btns-wrapper');r&&(r.style.width=s+'px'),o&&(o.style.width=a+'px'),e.style.width=s+a+'px'}else e.style.width=i+'px'})}}}}function t_store_initPopup(t,e,r,o,i){if(!o)try{window.sessionStorage.setItem('urlBeforePopupOpen',window.location.href),window.sessionStorage.setItem('titleBeforePopupOpen',document.title)}catch(t){}var s=document.getElementById('allrecords')!==document.querySelector('.t-store__product-snippet')&&document.getElementById('allrecords').contains(document.querySelector('.t-store__product-snippet')),a=document.getElementById('rec'+t);for(var n in e){var d=o?a.querySelector('.js-product-relevant[data-product-gen-uid="'+n+'"]'):a.querySelector('[data-product-gen-uid="'+n+'"]'),l=d.querySelectorAll('[href^="#prodpopup"]');Array.prototype.forEach.call(l,function(a){var n=d.closest('.js-product'),l=n.getAttribute('data-product-gen-uid'),c=e[l];c&&a.setAttribute('href',c.url);var p=function(s){if(s.preventDefault(),!s.target.closest('.t1002__addBtn')){n=this.closest('.js-product'),l=n.getAttribute('data-product-gen-uid'),c=e[l];var a=s.ctrlKey,d=s.metaKey&&-1!==navigator.platform.indexOf('Mac');a||d?window.open(c.url):(i.header||i.footer)&&i.disablepopup?location.href=c.url:t_store_openProductPopup(t,r,c,o,!1,!!o)}};s||a.addEventListener('click',p)})}r.isPublishedPage&&setTimeout(function(){t_store_checkUrl(r,t)},300),t_store_copyTypographyFromLeadToPopup(t,r)}function t_store_openProductPopup(t,e,r,o,i,s){var a=document.getElementById('allrecords')!==document.querySelector('.t-store__product-snippet')&&document.getElementById('allrecords').contains(document.querySelector('.t-store__product-snippet'));a||t_store_open_popup_routing_init(t,e);var n=e.showRelevants,d=document.getElementById('rec'+t),l=d.querySelector('.t-popup');if(l&&t_store_drawProdPopup(t,l,r,e,s),t_store_showPopup(t,i,s),window.Tilda&&(Tilda.sendEcommerceEvent&&(window.tStoreDetailEvent||(window.tStoreDetailEvent={}),window.tStoreDetailEvent[r.id?r.id:r.uid]||(Tilda.sendEcommerceEvent('detail',[{id:''+(r.id?r.id:r.uid),uid:''+r.uid,price:''+(r.price_min?r.price_min:r.price),sku:r.sku?r.sku:'',name:r.title}]),window.tStoreDetailEvent[r.id?r.id:r.uid]=!0)),Tilda.sendEventToStatistics)){var c=l.getAttribute('data-track-popup');if(c){var p='Popup: '+r.title;Tilda.sendEventToStatistics(c,p,'',0)}}if(e.isPublishedPage&&!i&&t_store_changeUrl(t,r,o,e),n&&!a){var _={cc:'current_category',all:'all_categories'},u=_[n]||'category_'+n,g='random',m=e.relevants_quantity||4;t_store_loadProducts('relevants',t,e,!1,{currentProductUid:r.uid,relevantsQuantity:m,relevantsMethod:u,relevantsSort:g})}'y'!==window.lazy&&'yes'!==document.getElementById('allrecords').getAttribute('data-tilda-lazy')||t_store_popup_updLazyOnScroll(t);var y=parseInt(r.quantity,10)<=0;if(!y&&('both'===e.showStoreBtnQuantity||'popup'===e.showStoreBtnQuantity)){var v=document.querySelector('#rec'+t+' .t-popup .js-store-product');t_store_addProductQuantity(v,r,e)}window.tStoreIsMobile||t_store_hoverZoom_init(t),e.itemsAnim&&e.previewmode&&setTimeout(function(){t_store_onFuncLoad('t_animate__setAnimationStateChains',function(){var t=document.querySelectorAll('.r'),e=[];Array.prototype.forEach.call(t,function(t){t.querySelector('.t-animate[data-animate-chain=yes]')&&e.push(t)}),e.length&&t_animate__setAnimationStateChains(e)})},300)}function t_store_addProductQuantity(t,e,r){if(window.jQuery&&t instanceof jQuery){if(0===t.length)return;t=$(t).get(0)}var o=t.querySelector('.t-store__prod-popup__btn-wrapper a[href="#order"]:not(.t-store__prod-popup__btn_disabled)'),i=t.querySelector('.t-store__card__btns-wrapper a[href="#order"]:not([style*="display: none"])'),s=parseInt(e.quantity,10);if(isNaN(s)&&e.editions){ var a=t_store_product_getFirstAvailableEditionData(e.editions);s=parseInt(a.quantity,10)}if((i||o)&&0!==s&&1!==s&&''!==r.showStoreBtnQuantity&&r.showStoreBtnQuantity){if('list'===r.showStoreBtnQuantity&&t.classList.contains('t-store__card')||'popup'===r.showStoreBtnQuantity&&t.classList.contains('t-store__product-snippet')||'popup'===r.showStoreBtnQuantity&&t.classList.contains('t-store__product-popup')||'both'===r.showStoreBtnQuantity){r||(r={});w=t.querySelector('.t-store__prod__quantity');if(w)var n=w.querySelector('.t-store__prod__quantity-input');if(w){var d=n.min||1;n.value=d,t_triggerEvent(n,'change');var l=n.value;isNaN(s)?w.classList.remove('t-store__prod-popup__btn_disabled'):s>1?(w.classList.remove('t-store__prod-popup__btn_disabled'),0===parseInt(l,10)&&(n.value=d)):w.classList.add('t-store__prod-popup__btn_disabled')}else{var c='',p=r.btn1_style,_='',u='';if(t.classList.contains('t-store__card')&&(u='','sm'===r.btnSize&&(u='t-store__prod__quantity_xs')),''!==p&&p){var g=p.indexOf('border-radius');if(-1!==g){var m=p.slice(g).indexOf(';');_=p.slice(g+14,g+m)}}var y='';if(''!==_&&(y='border-radius:'+_+';'),c+='
',c+='
',c+='',c+='
',c+='',c+='
',c+='',c+='
',c+='
',o?o.insertAdjacentHTML('beforebegin',c):i&&i.insertAdjacentHTML('beforebegin',c),t_store_addProductQuantityEvents(t),w=t.querySelector('.t-store__prod__quantity'),n=w.querySelector('.t-store__prod__quantity-input'),i){var v=i.parentNode;if(v.classList.add('t-store__card__btns-wrapper--quantity'),v.querySelectorAll('a:not([href^="#order"])').length>0&&Element.prototype.matches.call(v.parentNode,'div[class]')){var f=v.parentNode,h=document.createElement('div');h.appendChild(v),f&&f.appendChild(h)}}}n&&(isNaN(s)?n.max=9999:s>0&&(n.max=s))}}else{var w=t.querySelector('.t-store__prod__quantity');w&&(w.parentNode.classList.remove('t-store__card__btns-wrapper--quantity'),t_store__removeElement(w))}}function t_store_addProductQuantityEvents(t){if(window.jQuery&&t instanceof jQuery){if(0===t.length)return;t=t[0]}var e=t.querySelector('.t-store__prod__quantity');if(e){var r=e.querySelector('.t-store__prod__quantity-input'),o=function(){r.stepDown()},i=t.querySelector('.t-store__prod__quantity__minus-wrapper');i&&(i.removeEventListener('click',o),i.addEventListener('click',o));var s=function(){r.stepUp()},a=t.querySelector('.t-store__prod__quantity__plus-wrapper');a&&(a.removeEventListener('click',s),a.addEventListener('click',s));var n=function(){var t=r.min||1,e=r.max||9999,o=parseInt(r.value||1,10);o<1||isNaN(o)?r.value=t:r.value=o>e?e:o},d=t.querySelector('.t-store__prod__quantity-input');d&&(d.removeEventListener('change',n),d.addEventListener('change',n))}}function t_store_removeProductQuantity(t){var e=t.querySelector('.t-store__prod-popup__btn-wrapper a[href="#order"]:not(.t-store__prod-popup__btn_disabled)'),r=t.querySelector('.t-store__card__btns-wrapper a[href="#order"]:not([style*="display: none"])');if(r||e){var o=t.querySelector('.t-store__prod__quantity');o&&(o.parentNode.classList.remove('t-store__card__btns-wrapper--quantity'),t_store__removeElement(o))}}function t_store_open_popup_routing_init(t,e){window.onpopstate=function(){if(window.history.state)if(window.history.state.productData){var r=window.history.state.productData,o=r.recid,i=r.opts,s=r.productObj,a=r.isRelevantsShow;t_store_openProductPopup(o,i,s,a,!0)}else t_store_closePopup(!0,t,e);else t_store_closePopup(!0,t,e)}}function t_store_popup_updLazyOnScroll(t){var e=document.querySelector('#rec'+t+' .t-popup'),r=document.getElementById('allrecords').getAttribute('data-tilda-mode');e&&'edit'!==r&&'preview'!==r&&e.addEventListener('scroll',t_throttle(function(){t_store_onFuncLoad('t_lazyload_update',function(){t_lazyload_update()})}))}function t_store_changeUrl(t,e,r,o){var i,s=/iPhone|iPad|iPod/i.test(navigator.userAgent),a=/^((?!chrome|android).)*safari/i.test(navigator.userAgent),n=window.location.href,d={productObj:e,opts:o,isRelevantsShow:r,recid:t},l=document.title+' – '+e.title;n.indexOf('/tproduct/')<0&&n.indexOf('%2Ftproduct%2F')<0?(i=t_store_generateUrl(e),t_store_history_pushState({productData:d},l,i),s&&a&&(document.querySelector('head link[rel="canonical"]').setAttribute('href',i),document.title=l)):r&&(i=t_store_generateUrl(e),t_store_history_pushState({productData:d},l,i))}function t_store_generateUrl(t){var e,r=window.location.protocol,o=window.location.host;return e=t.url.split('://')[1],e=e.split('/'),e.shift(),e=e.join('/'),r+'//'+o+'/'+e}function t_store_drawProdPopup(t,e,r,o,i){e.scrollTop=0;var s=e.querySelector('.js-store-product.js-product');s.setAttribute('data-card-size','large'),t_store_drawProdPopup_drawGallery(t,e,r,o),window.tStoreDefPackObj||(window.tStoreDefPackObj={});var a=e.querySelector('.js-store-product');a.setAttribute('data-product-lid',r.uid),a.setAttribute('data-product-uid',r.uid),a.setAttribute('data-product-gen-uid',r.uid);var n=e.querySelector('.js-store-prod-name');r.title?(n.innerHTML=r.title,n.style.display=''):(n.innerHTML='',n.style.display='none');var d=[];try{d=JSON.parse(r.partuids)}catch(t){}if(a.setAttribute('data-product-part-uid',d.join(',')),o.linksSizeChart&&d.length>0){for(var l='',c=[],p=0;p',l+='',l+=o.linksSizeChart[_].infotext,l+='',l+='
',c.push(o.linksSizeChart[_].infourl))}e.querySelector('.t-store__prod-popup__links-wrapper').innerHTML=l}else e.querySelector('.t-store__prod-popup__links-wrapper').innerHTML='';t_store_initTextAndCharacteristics(e,r);var u=function(){t_store_addProductOptions(t,r,s,o),t_store_option_handleOnChange(s),t_store_option_handleOnChange_custom(t,s,o),t_store_onFuncLoad('t_prod__initProduct',function(){t_prod__initProduct(s,o)}),window.t_store_prodPopup_updateGalleryThumbsEvent=function(){t_store_prodPopup_updateGalleryThumbs(t,e,r,o)},i&&window.removeEventListener('resize',window.t_store_prodPopup_updateGalleryThumbsEvent),window.addEventListener('resize',window.t_store_prodPopup_updateGalleryThumbsEvent)};u(),o.tabs&&t_store_onFuncLoad('t_store_tabs_init',function(){t_store_tabs_init(t,o,r,s,e,u)})}function t_store_initTextAndCharacteristics(t,e){var r=document.getElementById('allrecords')!==document.querySelector('.t-store__product-snippet')&&document.getElementById('allrecords').contains(document.querySelector('.t-store__product-snippet')),o=t.querySelector('.js-store-prod-text');if(o){for(;o.firstChild;)o.removeChild(o.firstChild);o.style.display='none'}var i=e.pack_label||'',s=parseInt(e.pack_m,10)||0,a=parseInt(e.pack_x,10)||0,n=parseInt(e.pack_y,10)||0,d=parseInt(e.pack_z,10)||0,l=e.url||'',c=i&&a&&n&&d,p=s,_=e.characteristics&&e.characteristics.length>0||c||p,u=!0,g=_,m=t.querySelectorAll('.t-store__tabs .t-store__tabs__item[data-tab-type="text"]');m.length&&(u=!1);var y=t.querySelectorAll('.t-store__tabs .t-store__tabs__item[data-tab-type="chars"]');y.length&&(g=!1);var v='';var f=u?'margin-top: 20px;':'';f+=g?'':'display: none;';var h='
',w='';if(_&&e.characteristics.forEach(function(t){w+='

'+t.title+': '+t.value+'

'}),w+='

',w+='

',h+=w,h+='
',o&&(o.insertAdjacentHTML('beforeend',v),o.insertAdjacentHTML('beforeend',h),o.style.display=''),r&&y.length&&Array.prototype.forEach.call(y,function(t,e){var r=t.querySelector('.t-store__tabs__content');if(r){for(;r.firstChild;)r.removeChild(r.firstChild);r.insertAdjacentHTML('beforeend',w),0!==e&&(r.querySelector('.js-store-prod-dimensions').parentNode.style.display='')}}),c){var b=a+'x'+n+'x'+d,S=window.tStoreDict['product-'+i]+': '+b+' '+window.tStoreDict.mm,E=t.querySelector('.js-store-prod-dimensions');E&&(E.innerHTML=S),r&&(Array.prototype.forEach.call(y,function(t){var e=t.querySelector('.js-store-prod-dimensions');e&&(e.innerHTML=S)}),t.setAttribute('data-product-pack-label',i),t.setAttribute('data-product-pack-x',a),t.setAttribute('data-product-pack-y',n),t.setAttribute('data-product-pack-z',d))}if(p){var A=window.tStoreDict['product-weight']+': '+s+' '+window.tStoreDict.g;t.querySelector('.js-store-prod-weight').innerHTML=A,r&&(y.length&&Array.prototype.forEach.call(y,function(t){var e=t.querySelector('.js-store-prod-weight');e&&(e.innerHTML=A)}),t.setAttribute('data-product-pack-m',s))}var x=t.querySelector('.js-store-product');r&&t.classList.contains('js-store-product')&&(x=t),x&&(x.setAttribute('data-product-pack-label',i),x.setAttribute('data-product-pack-m',s),x.setAttribute('data-product-pack-x',a),x.setAttribute('data-product-pack-y',n),x.setAttribute('data-product-pack-z',d),x.setAttribute('data-product-url',l))}function t_store_addProductOptions(t,e,r,o){if(window.jQuery&&r instanceof jQuery){if(0===r.length)return;r=r[0]}var i=r.querySelector('.js-product-controls-wrapper');if(i){i.innerHTML='';var s=document.getElementById('allrecords')!==document.querySelector('.t-store__product-snippet')&&document.getElementById('allrecords').contains(document.querySelector('.t-store__product-snippet')),a=t_store_product_getFirstAvailableEditionData(e.editions);t_store_product_initEditions(t,e,r,o);var n={name:e.prod_option,values:e.prod_variants},d={name:e.prod_option2,values:e.prod_variants2},l={name:e.prod_option3,values:e.prod_variants3},c={name:e.prod_option4,values:e.prod_variants4},p={name:e.prod_option5,values:e.prod_variants5};if(t_store_product_addOneOptionsControl('modificator',n,i,o,a,t),t_store_product_addOneOptionsControl('modificator',d,i,o,a,t),t_store_product_addOneOptionsControl('modificator',l,i,o,a,t),t_store_product_addOneOptionsControl('modificator',c,i,o,a,t),t_store_product_addOneOptionsControl('modificator',p,i,o,a,t),s){t_store_option_handleOnChange(r);var _=r.closest('.t-records');_&&'t-header'!==_.getAttribute('id')&&'t-footer'!==_.getAttribute('id')&&t_store_option_handleOnChange_custom(t,r,o)}}}function t_store_get_control_option_html(t){var e,r='',o='',i=t.typo&&t.typo.descrColor?t.typo.descrColor:'';return o+=''!==i?'color:'+i+';':'',e=''!==o?'style = "'+o+'"':'',r+='
',r+='
[[name]]
',r+='
',r+='
',r}function t_store_get_control_editionOption_html(t,e){var r,o='',i='',s='',a=t.typo&&t.typo.descrColor?t.typo.descrColor:'';i+=''!==a?'color:'+a+';':'',r=''!==i?'style = "'+i+'"':'';var n=t_store_option_checkIfCustom(e),d=n?' style="display: none;"':'';return e.params&&(e.params.view&&(s+=' data-view-type="'+e.params.view+'"'),e.params.hasColor?s+=' data-option-type="color"':s+=' data-option-type="regular"'),o+='
',o+='
[[name]]
',o+='
',o+='
',o}function t_store_option_styleCustomControl(t,e,r,o,i){var s='',a=o.querySelector('.js-product-edition-option[data-edition-option-id="'+r.id+'"]');if(a){var n=r.params&&'select'===r.params.view,d=r.params&&r.params.hasColor&&!r.params.linkImage,l=r.params&&r.params.linkImage,c=r.values[0],p=t_store_option_getClassModificator(r,'select','t-product__option-variants'),_=t_store_option_getClassModificator(r,'select','t-product__option-item'),u=t_store_option_getClassModificator(r,'select','t-product__option-input'),g=t_store_option_getClassModificator(r,'select','t-product__option-checkmark'),m=t_store_option_getClassModificator(r,'select','t-product__option-title');if(n){var y=t_store_option_getClassModificator(r,'select','t-product__option-selected');if(s+='
',d){var v=' style="background-color: '+t_store_option_getColorValue(r.valuesObj,c)+';"';s+=''}else if(l){var f=r.values[0],h=r.imagesObj[f],w=t_store_getLazyUrl(e,h),b=w?' style="background-image: url(\''+w+'\');"':'';s+='
'}s+=''+c+'',s+='
',p+=' t-product__option-variants_hidden'}s+='
';for(var S=0;S',s+='',l&&r.imagesObj){h=r.imagesObj[f],w=t_store_getLazyUrl(e,h);C=w?' style="background-image: url(\''+w+'\');"':'',s+='
'}else s+='
';s+=''+f+'',s+=''}}s+='',a.insertAdjacentHTML('beforeend',s)}}function t_store_option_getColorValue(t,e){var r='#ffffff';for(var o in e=e.toString(),t){var i=t[o];if(i.value===e){r=i.color;break}}return r}function t_store_option_getClassModificator(t,e,r){if(!t)return'';var o=t.params,i=r+'_'+o.view;return o.hasColor&&o.linkImage?'filter'===e?(i=r+'_buttons',i+=' '+r+'_color'):i+=' '+r+'_image':o.hasColor?i+=' '+r+'_color':o.linkImage?i+=' '+r+'_image':i+=' '+r+'_simple',i}function t_store_checkUrl(t,e){var r=window.location.href,o=r.indexOf('/tproduct/');if(/iPhone|iPad|iPod/i.test(navigator.userAgent)&&o<0&&(o=r.indexOf('/tproduct/'),o<0&&(o=r.indexOf('%2Ftproduct%2F'))),o>=0){r=r.substring(o,r.length);var i=r.split('-');if(void 0===i[1])return;var s=i[1],a=document.getElementById('rec'+e),n=a.querySelector('.js-store-grid-cont [data-product-gen-uid="'+s+'"]'),d=a.querySelector('.t-popup');if(r.indexOf(e)>=0&&n){if(!d.classList.contains('t-popup_show')){var l=n.querySelector('[href^="#prodpopup"]');l&&l.click()}}else if(r.indexOf(e)>=0&&d){if(d.classList.contains('t-popup_show'))return;var c=document.getElementById('allrecords')!==document.querySelector('.t-store__product-snippet')&&document.getElementById('allrecords').contains(document.querySelector('.t-store__product-snippet'));if(!c){var p=function(r){if('string'==typeof r&&'{'===r.substring(0,1)){var o;try{var i=JSON.parse(r);o=i.product}catch(t){console.log(r)}if(!o)return void console.log('Can\'t get product with uid = '+s+' in storepart = '+t.storepart);t_store_openProductPopup(e,t,o)}else console.log('Can\'t get product with uid = '+s+' in storepart = '+t.storepart)};t_store_loadOneProduct(e,t,s,p,function(r){t_store_changeEndpoint(r,function(){t_store_loadOneProduct(e,t,s,p)})})}}}}function t_store_showPopup(t,e,r){var o=document.getElementById('rec'+t),i=o.querySelector('.t-popup');t_store_resetNavStyles(t),t_triggerEvent(document.body,'popupShowed'),document.body.classList.add('t-body_popupshowed'),i.style.display='block';var s=i.scrollHeight>document.documentElement.clientHeight;s||(i.style.overflow='hidden'),setTimeout(function(){i.querySelector('.t-popup__container').classList.add('t-popup__container-animated'),i.classList.add('t-popup_show'),t_triggerEvent(document.body,'twishlist_addbtn'),'y'!==window.lazy&&'yes'!==document.getElementById('allrecords').getAttribute('data-tilda-lazy')||t_store_onFuncLoad('t_lazyload_update',function(){t_lazyload_update()}),s?(i.scrollTop=0,t_triggerEvent(i,t_store_POPUP_SHOWED_EVENT_NAME)):setTimeout(function(){i.style.overflow='auto',t_triggerEvent(i,t_store_POPUP_SHOWED_EVENT_NAME)},300)},50),r||addPopupEvents(o,t)}function t_store_closePopupKeyDown(t){var e=document.body.classList.contains('t-zoomer__show');if(!e){var r=document.body.classList.contains('t-zoomer__active');r||27===t.keyCode&&t_store_closePopup(!1)}}function addPopupEvents(t){var e=function(t){t.target===this&&t_store_closePopup(!1)};t.querySelector('.t-popup').removeEventListener('click',e),t.querySelector('.t-popup').addEventListener('click',e);var r=function(){t_store_closePopup(!1)};Array.prototype.forEach.call(t.querySelectorAll('.t-popup__close, .js-store-close-text'),function(t){t.removeEventListener('click',r),t.addEventListener('click',r)}),document.addEventListener('keydown',t_store_closePopupKeyDown);var o=30,i=200,s=t.querySelectorAll('.t-popup__close-opacity-scroll');if(s.length){var a=function(t){var e,r=t.scrollTop();e=r>=i?1:r<=o?0:r/i,s.style.backgroundClor='rgba(255,255,255,'+e+')'};t.querySelector('.t-popup').removeEventListener('scroll',a),t.querySelector('.t-popup').addEventListener('scroll',a)}}function t_store_resetNavStyles(t){var e=document.getElementById('rec'+t).querySelector('.t-popup__close');e.classList.contains('t-popup__close-solid')?e.style.backgroundColor='rgba(255,255,255,1)':e.classList.contains('t-popup__close-opacity-scroll')&&(e.style.backgroundColor='rgba(255,255,255,0)')}function t_store_closePopup(t,e,r){var o,i,s=/iPhone|iPad|iPod/i.test(navigator.userAgent),a=/^((?!chrome|android).)*safari/i.test(navigator.userAgent),n=document.getElementById('allrecords')!==document.querySelector('.t-store__product-snippet')&&document.getElementById('allrecords').contains(document.querySelector('.t-store__product-snippet'));if(n||t_store_closePopup_routing(),Array.prototype.forEach.call(document.querySelectorAll('.t-popup'),function(t){var e=t.querySelector('.t-slds__item_active .t-slds__frame');e&&e.src&&-1!==e.src.indexOf('&enablejsapi=1')&&e.contentWindow.postMessage('{"event":"command","func":"pauseVideo","args":""}','*'),t.classList.remove('t-popup_show')}),t_triggerEvent(document.body,'popupHidden'),document.body.classList.remove('t-body_popupshowed'),t)if(t_store_isQueryInAddressBar('tstore')){var d,l=decodeURI(window.location.hash).split('/'),c=l.indexOf('c')+1,p=l.indexOf('r')+1,_=l[p];d=-1!==l[c].indexOf('-')?l[c].slice(0,l[c].indexOf('-')):l[c],window.history.state&&(o=window.history.state.opts,o.storepart=d),t_store_isStorepartFromHistoryActive(d,e,r)||t_store_loadProducts('',_,o)}else t_store_isStorepartFromHistoryActive(r.storepart,e,r)||t_store_loadProducts('',e,r);else if(window.history.state&&window.history.state.productData)try{var u=window.sessionStorage.getItem('urlBeforePopupOpen'),g=window.sessionStorage.getItem('titleBeforePopupOpen');i=window.history.state.productData,d=i.opts.storepart,r=i.opts,e=i.recid,t_store_history_pushState({storepartuid:d,opts:r,recid:e},null,u),s&&a&&(document.querySelector('head link[rel="canonical"]').setAttribute('href',u),document.title=g)}catch(t){}e&&(document.getElementById('rec'+e).querySelector('.js-store-parts-switcher')&&!r.hideStoreParts&&t_store_setActiveStorePart(e),t_store_galleryVideoClearFrame(e),r.tabs&&t_store_onFuncLoad('t_store_tabs_videoClearFrame',function(){t_store_tabs_videoClearFrame(e)}));var m=document.querySelector('.t-popup');setTimeout(function(){m.scrollTop=0,Array.prototype.forEach.call(document.querySelectorAll('.t-popup:not(.t-popup_show)'),function(t){t.style.display='none'})},300),document.removeEventListener('keydown',t_store_closePopupKeyDown),window.removeEventListener('resize',window.t_store_prodPopup_updateGalleryThumbsEvent),t_triggerEvent(document.body,'twishlist_addbtn'),t_triggerEvent(m,t_store_POPUP_CLOSED_EVENT_NAME)}function t_store_isStorepartFromHistoryActive(t,e,r){var o=document.getElementById('rec'+e);if(r&&!r.storePartsArr)return!0;if(!t)return!1;t=parseInt(t,10);var i=o.querySelector('.js-store-parts-switcher.t-active').getAttribute('data-storepartUid');return i===t}function t_store_closePopup_routing(){window.onpopstate=function(){if(window.history.state){if(window.history.state.productData){var t=window.history.state.productData,e=t.recid,r=t.opts,o=t.productObj,i=t.isRelevantsShow;t_store_openProductPopup(e,r,o,i,!0)}if(window.history.state.storepartuid){var s=window.history.state.opts,a=window.history.state.recid;r.isPublishedPage=!0,t_store_loadProducts('',a,s)}}}}function t_store_copyTypographyFromLeadToPopup(t,e){var r,o,i=document.getElementById('rec'+t),s=i.querySelector('.js-store-grid-cont .js-store-prod-name'),a=i.querySelector('.js-store-grid-cont .js-store-prod-descr'),n=i.querySelector('.t-popup .t-popup__container');if(n&&(r=n.style.backgroundColor),s){var d=s.getAttribute('style'),l=i.querySelector('.t-popup .js-store-prod-name');if(l&&(l.setAttribute('style',t_store_removeSizesFromStylesLine(d)),r)){var c=e.typo.titleColor;0===Math.abs(t_store_getLightnessColor(c)-t_store_getLightnessColor(r))&&(l.style.color=t_store_luma_rgb(r))}}a&&(o=a.getAttribute('style')),!o&&e&&e.typo&&e.typo.descr&&(o=e.typo.descr,o=o.replace('line-height:0;',''));var p=i.querySelector('.t-popup .js-store-prod-text');if(p&&(p.setAttribute('style',t_store_removeSizesFromStylesLine(o)),r)){var _=e.typo.descrColor;0===Math.abs(t_store_getLightnessColor(_)-t_store_getLightnessColor(r))&&(p.style.color=t_store_luma_rgb(r))}}function t_store_snippet_removeSizesFromStyles(t){var e=document.getElementById('rec'+t),r=e.querySelector('.t-store__product-snippet .js-store-prod-name');if(r){var o=r.getAttribute('style');r.setAttribute('style',t_store_removeSizesFromStylesLine(o))}var i=e.querySelector('.t-store__product-snippet .js-store-prod-text');if(i){var s=i.getAttribute('style');i.setAttribute('style',t_store_removeSizesFromStylesLine(s))}}function t_store_removeSizesFromStylesLine(t){if(t){var e=t.split(';'),r=e.filter(function(t){return!t.match(/(font-size|padding-(top|bottom))/)});return r.join(';')}return''}function t_store_drawProdPopup_drawGallery(t,e,r,o){var i=document.getElementById('rec'+t);if(window.jQuery&&e instanceof jQuery){if(0===e.length)return;e=e[0]}if(e){var s,a=e.querySelector('.js-store-prod-slider');if(r.gallery)if(s='string'==typeof r.gallery?JSON.parse(r.gallery):r.gallery,0!==s.length){var n=document.getElementById('allrecords')!==document.querySelector('.t-store__product-snippet')&&document.getElementById('allrecords').contains(document.querySelector('.t-store__product-snippet')),d=o.galleryStyle&&''!==o.galleryStyle&&parseInt(o.popup_opts.columns,10)+parseInt(o.popup_opts.columns2,10)<=12;if(n&&d){var l=e.querySelector('.t-store__prod-popup__info');l&&l.classList.add('t-store__prod-popup__col_fixed');var c=o.popup_opts.isVertical?'':'t-store__prod-popup__col-left t-col t-col_'+o.popup_opts.columns,p='t-store__prod-popup__col_fixed';a.insertAdjacentHTML('beforebegin','')}n&&o.popup_opts.mobileGalleryStyle&&(e.classList.add('t-store__popup-with-mobile-gallery'),a.insertAdjacentHTML('afterend',''));var _,u,g=t_store_get_productcard_slider_html(i,o),m='',y='',v='thumbs'===o.slider_opts.controls||'arrowsthumbs'===o.slider_opts.controls||'dots'===o.slider_opts.controls||''===o.slider_opts.controls,f='thumbs'===o.slider_opts.controls||'arrowsthumbs'===o.slider_opts.controls,h=parseInt(o.popup_opts.columns,10),w=+o.slider_slidesOpts.ratio,b=60,S=10,E='',A=e.querySelector('.js-store-prod-gallery-column'),x=(d=o.galleryStyle&&''!==o.galleryStyle&&parseInt(o.popup_opts.columns,10)+parseInt(o.popup_opts.columns2,10)<=12&&('col1_fixed'===o.galleryStyle||'col2_fixed'===o.galleryStyle),''),C=e.querySelector('.js-store-mobile-custom-gallery');Array.prototype.forEach.call(s,function(t,e){d&&(E+='
',E+=t_store_addVideoIconForGallery(o,t),E+=' ',E+='
'),o.popup_opts.mobileGalleryStyle&&(x+='');var r=t_store_get_productcard_oneSlide_html(o,t);if(m+=r.replace('[[activeClass]]',0===e?'t-slds__item_active':'').replace('[[productClass]]',0===e?'js-product-img':'').replace(/\[\[index\]\]/g,e+1).replace(/\[\[imgsource_lazy\]\]/g,t_store_getLazyUrl(o,t.img)).replace(/\[\[imgsource\]\]/g,t.img).replace(/\[\[imgalttext\]\]/g,t_store_escapeQuote(t.alt)),v)if(f&&'l'===o.sliderthumbsside){var i=t_store_prodPopup_gallery_calcMaxThumbsCount(h,w,b,S);e<=i-1&&(e<=i-2||e===s.length-1?(_=t_store_get_productcard_oneSliderBullet_html(o),u=_.replace('[[videoPlayIcon]]','').replace('[[activeClass]]',0===e?'t-slds__bullet_active':'').replace(/\[\[index\]\]/g,e+1).replace(/\[\[imgsource_lazy\]\]/g,t_store_getLazyUrl(o,t.img)).replace(/\[\[imgsource\]\]/g,t.img).replace(/\[\[imgalttext\]\]/g,t_store_escapeQuote(t.alt))):(_=t_store_get_productcard_thumbsGallery_html(o,s.length,i),u=_.replace('[[activeClass]]',0===e?'t-slds__bullet_active':'').replace(/\[\[index\]\]/g,e+1).replace(/\[\[imgsource_lazy\]\]/g,t_store_getLazyUrl(o,t.img)).replace(/\[\[imgsource\]\]/g,t.img).replace(/\[\[imgalttext\]\]/g,t_store_escapeQuote(t.alt))),y+=u)}else _=t_store_get_productcard_oneSliderBullet_html(o),u=_.replace('[[videoPlayIcon]]',t.video?'
'+t_store_svgVideoIcon(o)+'
':'').replace('[[activeClass]]',0===e?'t-slds__bullet_active':'').replace(/\[\[index\]\]/g,e+1).replace(/\[\[imgsource_lazy\]\]/g,t_store_getLazyUrl(o,t.img)).replace(/\[\[imgsource\]\]/g,t.img).replace(/\[\[imgalttext\]\]/g,t_store_escapeQuote(t.alt)),y+=u}),g=g.replace('[[slides]]',m),v&&(g=g.replace('[[bullets]]',y)),A&&(A.innerHTML=E),a&&(a.innerHTML=g),C&&o.popup_opts.mobileGalleryStyle&&(C.innerHTML=''),t_store_galleryVideoHandle(t);var L,j='.t-slds__arrow_container, .t-slds__bullet_wrapper, .t-slds__thumbsbullet-wrapper',q=e.querySelectorAll(j);q&&(1===s.length?Array.prototype.forEach.call(q,function(t){t.style.display='none'}):Array.prototype.forEach.call(q,function(t){t.style.display=''})),'l'===o.sliderthumbsside&&(L={thumbsbulletGallery:!0,storeOptions:o}),setTimeout(function(){t_store_onFuncLoad('t_sldsInit',function(){t_sldsInit(t+' .js-store-product',L)})},200)}else a&&(a.innerHTML='');else a&&(a.innerHTML='')}}function t_store_galleryVideoHandle(t){var e=document.getElementById('rec'+t),r=e.querySelectorAll('.t-slds__play_icon');Array.prototype.forEach.call(r,function(r){var o;r&&(r.addEventListener('click',function(){var t=this.parentNode;if(t.querySelector('.t-slds__frame-wrapper')||this.insertAdjacentHTML('afterend','
'),'youtube.com'===this.getAttribute('data-slider-video-type')){var e=this.getAttribute('data-slider-video-params');o=this.getAttribute('data-slider-video-url'),this.nextElementSibling.innerHTML=''}'vimeo.com'===this.getAttribute('data-slider-video-type')&&(o=this.getAttribute('data-slider-video-url'),this.nextElementSibling.innerHTML=''),this.nextElementSibling.style.zIndex=3}),e.addEventListener('updateSlider',function(){t_store_galleryVideoClearFrame(t)}))})}function t_store_addVideoIconForGallery(t,e){var r,o='',i=e.video;i&&('youtube.com'===e.vtype&&-1!==i.indexOf('?v='+e.videoid)&&(r=i.split('?v='+e.videoid)[1],r=r.replace(/&/g,'&'),-1!==r.indexOf('loop=1')&&-1===r.indexOf('&playlist=')&&(r+='&playlist='+e.videoid)),o+='
',o+='
',o+=t_store_svgVideoIcon(t),o+='
',o+='
',o+='
');return o}function t_store_svgVideoIcon(t){var e='',r=t.slider_opts.videoPlayerIconColor||'#fff';return e+='',e+='',e+='',e+='',e+='',e+='',e+='',e}function t_store_galleryVideoClearFrame(t){var e=document.getElementById('rec'+t),r=e.querySelector('.t-slds__frame-wrapper');r&&(r.innerHTML='',r.style.zIndex='')}function t_store_prodPopup_updateGalleryThumbs(t,e,r,o){var i,s=document.getElementById('rec'+t),a='thumbs'===o.slider_opts.controls||'arrowsthumbs'===o.slider_opts.controls;if(!a&&'l'===o.sliderthumbsside&&r.gallery){i='string'==typeof r.gallery?JSON.parse(r.gallery):r.gallery;var n=e.querySelector('.js-store-prod-slider');if(0!==i.length){var d,l,c,p=parseInt(o.popup_opts.columns,10),_=+o.slider_slidesOpts.ratio,u=60,g=10,m=s.querySelectorAll('.t-slds__thumbsbullet').length,y=t_store_prodPopup_gallery_calcMaxThumbsCount(p,_,u,g);if(m!==y&&i.length>=y||m=960&&s<=1240&&(i=440);var a=Math.floor(100*e),n=Math.floor(a*(i-(r+o))/100),d=Math.floor(n/(r+o));return(r+o)*(d+1)-o<=n&&(d+=1),d}function t_store_get_productcard_slider_html(t,e){var r='',o='t-slds_animated-none',i='300';'fast'===e.slider_opts.anim_speed&&(o='t-slds_animated-fast'),'slow'===e.slider_opts.anim_speed&&(o='t-slds_animated-slow',i='500');var s='',a='thumbs'===e.slider_opts.controls||'arrowsthumbs'===e.slider_opts.controls;if(a&&'l'===e.sliderthumbsside&&(s='t-slds__thumbsbullets-with-gallery'),r+='','arrows'===e.slider_opts.controls||'arrowsthumbs'===e.slider_opts.controls||''===e.slider_opts.controls){var n=t.querySelector('.js-store-tpl-slider-arrows'),d=n.innerHTML,l='t-slds__arrow_container '+(''===e.slider_opts.cycle?'t-slds__nocycle':'');d='
'+d+'
',r=r.replace('[[arrows]]',d)}else r=r.replace('[[arrows]]','');if('thumbs'===e.slider_opts.controls||'arrowsthumbs'===e.slider_opts.controls){var c='
[[bullets]]
';r=r.replace('[[bullets]]',c)}else r='dots'===e.slider_opts.controls||''===e.slider_opts.controls?r.replace('[[bullets]]','
[[bullets]]
'):r.replace('[[bullets]]','');return r=r.replace('[[containerStyles]]',e.slider_opts.bgcolor?'style="background-color:'+e.slider_opts.bgcolor+';"':'').replace('[[noCycleClass]]',e.slider_opts.cycle?'':'t-slds__nocycle').replace('[[isCycled]]',e.slider_opts.cycle?'true':'false'),r}function t_store_get_productcard_oneSlide_html(t,e){var r='';return r+='
',r+='
',r+=' ',r+=' ',r+='
',r+='
',r+='
',r+='
',r+=t_store_addVideoIconForGallery(t,e),r+='
',r+='
',r=r.replace('[[zoomAttrs]]',t.slider_slidesOpts.zoomable?'data-zoom-target="[[index]]" data-zoomable="yes" data-img-zoom-url="[[imgsource]]"':'').replace('[[zoomClass]]',t.slider_slidesOpts.zoomable?'t-zoomable':'').replace('[[containClass]]','contain'===t.slider_slidesOpts.bgsize?'t-slds__bgimg-contain':'').replace('[[paddingBottomVal]]',100*t.slider_slidesOpts.ratio+'%'),r}function t_store_get_productcard_oneSliderBullet_html(t){var e='';if('thumbs'!==t.slider_opts.controls&&'arrowsthumbs'!==t.slider_opts.controls||(e+='
',e+=' [[videoPlayIcon]]',e+='
',e+='
',e+='
'),'dots'===t.slider_opts.controls||''===t.slider_opts.controls){e+='
',e+='
',e+='
';var r='';if(t.slider_dotsOpts.size){var o=parseInt(t.slider_dotsOpts.size,10);o=o>20?20:o,r+='width:'+o+'px;height:'+o+'px;'}if(t.slider_dotsOpts.bgcolor&&(r+='background-color:'+t.slider_dotsOpts.bgcolor+';'),t.slider_dotsOpts.bordersize){var i=t.slider_dotsOpts.bgcoloractive?t.slider_dotsOpts.bgcoloractive:'#222';r+='border: '+t.slider_dotsOpts.bordersize+' solid '+i+';'}e=e.replace('[[styles]]',''!==r?'style="'+r+'"':'')}return e}function t_store_get_productcard_thumbsGallery_html(t,e,r){var o='',i=e-r;if('thumbs'===t.slider_opts.controls||'arrowsthumbs'===t.slider_opts.controls){var s='t-slds__thumbsbullet t-slds__bullet t-slds__thumbs_gallery [[activeClass]]';t.slider_slidesOpts.zoomable&&(s+=' t-slds__thumbs_gallery-zoomable'),o+='
',o+='
',o+='
',o+='
',o=o.replace('[[zoomAttrs]]',t.slider_slidesOpts.zoomable?'data-zoom-target="[[index]]" data-zoomable="yes" data-img-zoom-url="[[imgsource]]"':'')}return o}function t_store_getLazyUrl(t,e){if(!t.isPublishedPage||'y'!==window.lazy)return e;if(-1===e.indexOf('static.tildacdn.com'))return e;var r=e.split('/');return r.splice(e.split('/').length-1,0,'-/resizeb/x20'),r.join('/')}function t_store_getLazySrc(t,e){if(!t.isPublishedPage||'y'!==window.lazy)return e;if(-1===e.indexOf('.tildacdn.com')||-1!==e.indexOf('-/empty/')||-1!==e.indexOf('-/resize/'))return e;var r=e.split('/');return r.splice(e.split('/').length-1,0,'-/empty'),r.join('/')}function t_store_dict(t){return window.tStoreDict||t_store_getDictObj(),window.tStoreDict[t]||'Text not found for "'+t+'"'}function t_store_escapeQuote(t){if(!t)return'';var e={'"':'"','\'':'''};return t.replace(/["']/g,function(t){return e[t]})}function t_store_product_initEditions(t,e,r,o){var i=r.querySelector('.js-product-controls-wrapper');t_store_product_addEditionControls(e,i,o,t);var s=t_store_product_selectAvailableEdition(t,e,r,o);if(s){t_store_product_triggerSoldOutMsg(r,!1,o);var a=t_store_product_getFirstAvailableEditionData(e.editions);a&&t_store_addProductQuantity(r,a,o),t_store_product_disableUnavailOpts(r,e),t_store_product_disableUnavaileOptions(r,e)}else t_store_product_triggerSoldOutMsg(r,!0,o),t_store_removeProductQuantity(r),t_store_product_disableUnavaileOptions(r,e);var n=document.getElementById('rec'+t),d=n.querySelector('.t-store');Array.prototype.forEach.call(r.querySelectorAll('.js-product-edition-option'),function(i){i.addEventListener('change',function(){var i=t_store_product_detectEditionByControls(r,e),s=!0;if(i){t_store_product_updateEdition(t,r,i,e,o,s),t_prod__updatePrice(r,o);var a=parseInt(i.quantity,10)<=0;t_store_product_triggerSoldOutMsg(r,a,o),a?t_store_removeProductQuantity(r):t_store_addProductQuantity(r,i,o),window.Tilda&&Tilda.sendEcommerceEvent&&(window.tStoreDetailEvent||(window.tStoreDetailEvent={}),window.tStoreDetailEvent[i.id?i.id:i.uid]||(Tilda.sendEcommerceEvent('detail',[{id:''+(i.id?i.id:i.uid),uid:''+i.uid,price:''+(i.price_min?i.price_min:i.price),sku:i.sku?i.sku:'',name:e.title}]),window.tStoreDetailEvent[i.id?i.id:i.uid]=!0))}else{for(var n=this.getAttribute('data-edition-option-id'),l=[],c=0;c0?t_store_product_getFirstAvailableEditionData_forCertainVals(e.editions,i,r):t_store_product_getFirstAvailableEditionData(e.editions);if(!a)return console.log('No available edition for uid = '+e.uid+' with selected options values'),!1;var n=parseInt(a.quantity,10)>0||''===a.quantity;if(Array.prototype.forEach.call(e.editionOptions,function(t){var e=a[t.name],o=t_store_product_getEditionSelectEl(r,t);if(o){var i=o.querySelector('.js-product-edition-option-variants');i&&(i.value=(e||'').replace(/>/g,'>').replace(/</g,'<'));var s=o.querySelectorAll('.t-product__option-variants_custom');Array.prototype.forEach.call(s,function(t){var r=t.querySelectorAll('.t-product__option-item');Array.prototype.forEach.call(r,function(t){var r=t.querySelector('.t-product__option-input');r.value===(e||'').replace(/&/g,'&')?(t.classList.add('t-product__option-item_active'),setTimeout(function(){r.checked=!0,r.click()})):(r.checked=!1,t.classList.remove('t-product__option-item_active'))})})}}),r.classList.contains('js-product-relevant'))t_store_product_updateEdition(t,r,a,e,o,s);else{var d,l=t_store_snippet_getJsonFromUrl(),c=l.editionuid;c&&document.querySelector('#rec'+t+' .js-product').getAttribute('data-product-uid')!==c&&e.editions.forEach(function(t){t.uid===c&&(d=t)}),t_store_product_updateEdition(t,r,d||a,e,o,s)}return n}function t_store_product_disableUnavailOpts(t,e){var r=[];e.editionOptions.length>0&&r.push(e.editionOptions[0]);for(var o=1;o').replace(/</g,'<');var i=e.editions.some(function(e){var r=(e[t.name]||'').replace(/>/g,'>').replace(/</g,'<');return r===o&&'0'!==e.quantity});if(!i){var s={};s[t.name]=o,window.tStoreDisabledOptionsList[r].push(s)}})}),0===window.tStoreDisabledOptionsList[r].length&&delete window.tStoreDisabledOptionsList[r]}function t_store_product_updateEdition(t,e,r,o,i,s){var a=t_store_snippet_getJsonFromUrl();if(a.editionuid=parseInt(a.editionuid,10),window.jQuery&&e instanceof jQuery&&(e=e[0]),r||o.editions.forEach(function(t){t.uid===a.editionuid&&(r=t)}),a.editionuid===r.uid&&(Array.prototype.forEach.call(document.querySelectorAll('.js-store-product'),function(t){t.setAttribute('data-product-lid',r.uid),t.setAttribute('data-product-uid',r.uid),t.setAttribute('data-product-url',window.location),t.setAttribute('data-product-img',r.img)}),setTimeout(function(){t_store_product_updateEdition_moveSlider(t,e,r)},200),Array.prototype.forEach.call(o.editionOptions,function(t){var o=r[t.name],i=t_store_product_getEditionSelectEl(e,t);if(i){var s=i.querySelector('.js-product-edition-option-variants');s&&s.value!==o&&(s.value=(o||'').replace(/>/g,'>').replace(/</g,'<'),setTimeout(function(){t_triggerEvent(s,'change')}))}})),r.price&&0!==parseFloat(r.price)){var n=t_store__getFormattedPrice(i,r.price),d=t_store__getFormattedPriceRange(i,o);if(i.price){var l=i.price.priceRange;if(d&&'range'===l&&(n=d),d&&'from'===l){var c=t_store__getFormattedMinPrice(i,o);null!==c&&(n=c)}}e.querySelector('.js-store-prod-price-val').textContent=n;var p=e.querySelector('.js-store-prod-price');p&&(p.style.display='');var _=t_store__cleanPrice(r.price),u=e.querySelector('.js-product-price');if(u&&(u.setAttribute('data-product-price-def',_),u.setAttribute('data-product-price-def-str',_)),Array.prototype.forEach.call(e.querySelectorAll('.t-store__prod__price-portion'),function(t){t_store__removeElement(t)}),o.unit&&o.portion>0){var g='
/';'1'!==o.portion&&(g+=+o.portion+' '),g+=window.tStoreDict[o.unit]+'
';var m=['.t-store__card__price-currency + .js-product-price','.t-store__card__price-currency + .js-store-prod-price-old-val','.js-product-price + .t-store__card__price-currency','.js-store-prod-price-old-val + .t-store__card__price-currency','.t-store__prod-popup__price-currency + .js-product-price','.js-product-price + .t-store__prod-popup__price-currency','.t-store__prod-popup__price-currency + .js-store-prod-price-old-val','.js-store-prod-price-old-val + .t-store__prod-popup__price-currency','.js-product-price-currency + .js-product-price','.js-product-price + .js-product-price-currency','.js-product-price-currency + .js-store-prod-price-old-val','.js-store-prod-price-old-val + .js-product-price-currency'];Array.prototype.forEach.call(e.querySelectorAll(m.join(',')),function(t){t.insertAdjacentHTML('afterend',g)})}}else{p=e.querySelector('.js-store-prod-price');p&&(p.style.display='none'),e.querySelector('.js-store-prod-price-val').textContent='',e.querySelector('.js-product-price').setAttribute('data-product-price-def',''),e.querySelector('.js-product-price').setAttribute('data-product-price-def-str',''),t_store__removeElement(e.querySelector('.t-store__prod__price-portion'))}if(r.priceold&&'0'!==r.priceold){var y=t_store__getFormattedPrice(i,r.priceold),v=e.querySelector('.js-store-prod-price-old');v&&(v.style.display='');var f=e.querySelector('.t-store__card__price_old');f&&(f.style.display='');var h=e.querySelector('.js-store-prod-price-old-val');h&&(h.innerHTML=y)}else{v=e.querySelector('.js-store-prod-price-old');v&&(v.style.display='none');f=e.querySelector('.t-store__card__price_old');f&&(f.style.display='none');h=e.querySelector('.js-store-prod-price-old-val');h&&(h.innerHTML='')}var w=e.querySelector('.t-store__prod-popup__brand');o.brand&&o.brand>''&&w&&(1===w.querySelectorAll('span[itemprop=brand]').length?w.querySelector('span[itemprop=brand]').innerHTML=o.brand:w.innerHTML=''+o.brand+''),!o.brand&&w&&(w.style.display='none');var b=e.querySelector('.t-store__prod-popup__sku'),S=e.querySelector('.js-store-prod-sku');r.sku?(S.innerHTML=r.sku,'large'===e.getAttribute('data-card-size')&&(S.style.display='',b&&(b.style.display=''))):(S&&(S.innerHTML='',S.style.display='none'),b&&(b.style.display='none')),e.setAttribute('data-product-inv',r.quantity),e.setAttribute('data-product-lid',r.uid),e.setAttribute('data-product-uid',r.uid),window.tStoreDefPackObj||(window.tStoreDefPackObj={});try{var E=window.tStoreDefPackObj[o.uid],A=e.querySelectorAll('.t-store__tabs .t-store__tabs__item[data-tab-type="chars"]'),x='';if(r.pack_x&&r.pack_y&&r.pack_z){E||(E={pack_x:e.getAttribute('data-product-pack-x')||0,pack_y:e.getAttribute('data-product-pack-y')||0,pack_z:e.getAttribute('data-product-pack-z')||0,pack_label:e.getAttribute('data-product-pack-label')||o.pack_label||'lwh',pack_m:e.getAttribute('data-product-pack-m')||0},window.tStoreDefPackObj[o.uid]=E),e.setAttribute('data-product-pack-x',r.pack_x),e.setAttribute('data-product-pack-y',r.pack_y),e.setAttribute('data-product-pack-z',r.pack_z),e.setAttribute('data-product-pack-label',E.pack_label);var C=r.pack_x+'x'+r.pack_y+'x'+r.pack_z,L=e.querySelector('.js-store-prod-dimensions');x=window.tStoreDict['product-'+E.pack_label]+': '+C+' '+window.tStoreDict.mm,L&&(e.querySelector('.js-store-prod-dimensions').innerHTML=x)}else if(E&&E.pack_x){e.setAttribute('data-product-pack-x',E.pack_x),e.setAttribute('data-product-pack-y',E.pack_y),e.setAttribute('data-product-pack-z',E.pack_z),e.setAttribute('data-product-pack-label',E.pack_label);C=E.pack_x+'x'+E.pack_y+'x'+E.pack_z;x=window.tStoreDict['product-'+E.pack_label]+': '+C+' '+window.tStoreDict.mm;L=e.querySelector('.js-store-prod-dimensions');L&&(L.innerHTML=x)}x&&Array.prototype.forEach.call(A,function(t){var e=t.querySelector('.js-store-prod-dimensions');e&&(e.innerHTML=x)});var j='';if(r.pack_m){e.setAttribute('data-product-pack-m',r.pack_m),j=window.tStoreDict['product-weight']+': '+r.pack_m+' '+window.tStoreDict.g;var q=e.querySelector('.js-store-prod-weight');q&&(q.innerHTML=j)}else if(E&&parseFloat(E.pack_m)>0){e.setAttribute('data-product-pack-m',E.pack_m),j=window.tStoreDict['product-weight']+': '+E.pack_m+' '+window.tStoreDict.g;q=e.querySelector('.js-store-prod-weight');q&&(q.innerHTML=j)}j&&Array.prototype.forEach.call(A,function(t){var e=t.querySelector('.js-store-prod-weight');e&&(e.innerHTML=j)})}catch(t){console.log(t)}if(r.img)e.setAttribute('data-product-img',r.img),'large'===e.getAttribute('data-card-size')?t_store_product_updateEdition_moveSlider(t,e,r):s&&t_store_get_productCard_img_replaceWith(o,e,i,r.img);else{var P=e.getAttribute('data-product-img');P&&'large'===e.getAttribute('data-card-size')&&(t_store_product_updateEdition_moveSlider(t,e,r),e.setAttribute('data-product-img',''))}o.unit&&o.portion>0?(e.setAttribute('data-product-unit',o.unit),e.setAttribute('data-product-portion',o.portion),e.setAttribute('data-product-single',o.single)):(e.removeAttribute('data-product-unit'),e.removeAttribute('data-product-portion'),e.removeAttribute('data-product-single'))}function t_store_product_updateEdition_moveSlider(t,e,r){var o=1;-1!==r.img.indexOf('&')&&(r.img=r.img.replace('&','&'));var i=e.querySelector('.t-slds__items-wrapper'),s=e.querySelector('.t-slds__item .t-slds__bgimg[data-original="'+r.img+'"]');if(!s&&-1!==r.img.indexOf('.com')){var a=(r.img||'').split('https://static.tildacdn.com');2===a.length&&(s=e.querySelector('.t-slds__item .t-slds__bgimg[data-original$="'+a[1]+'"]'))}if(-1!==r.img.indexOf('https://')||-1!==r.img.indexOf('https://'))try{var n=new URL(r.img),d=n.pathname;'/'===d[0]&&(d=d.slice(1).replace(/\//,'__'));var l=e.querySelector('.t-slds__item .t-slds__bgimg[data-original$="'+d+'"]');!s&&l&&(s=l)}catch(t){}s&&(o=s.closest('.t-slds__item').getAttribute('data-slide-index'),0===parseInt(o,10)&&(o=i.getAttribute('data-slider-totalslides'))),i&&i.setAttribute('data-slider-pos',o),e.classList.contains('t922')||t_store_onFuncLoad('t_slideMoveInstantly',function(){t_slideMoveInstantly(t+' .js-store-product')})}function t_store_product_triggerSoldOutMsg(t,e,r){t_store__removeElement(t.querySelector('.js-store-prod-sold-out'));var o=t.querySelectorAll('.t-store__card__btns-wrapper [href="#order"], .t-store__prod-popup__btn-wrapper [href="#order"]');0===o.length&&(o=t.querySelectorAll('[href="#order"]')),window.jQuery&&t instanceof jQuery&&(t=$(t).get(0));var i=r.prodCard&&'order'===r.prodCard.btnLink1,s=r.prodCard&&'order'===r.prodCard.btnLink2;if(o[0]){var a=o[0].querySelector('.js-store-prod-popup-buy-btn-txt');'small'===t.getAttribute('data-card-size')&&(a=o[0].querySelector('.t-store__card__btn-text')),a||(a=o[0].querySelector('.js-store-prod-buy-btn-txt'))}if(e)o.length||t.querySelector('.js-store-price-wrapper').insertAdjacentHTML('beforeend','
'+window.tStoreDict.soldOut+'
'),Array.prototype.forEach.call(o,function(t){t.classList.add('t-store__prod-popup__btn_disabled')}),a&&(a.textContent=window.tStoreDict.soldOut);else{Array.prototype.forEach.call(o,function(t){t.classList.remove('t-store__prod-popup__btn_disabled')});var n=r.buyBtnTitle||r.popup_opts&&r.popup_opts.btnTitle||window.tStoreDict.addtocart;'small'===t.getAttribute('data-card-size')&&(i&&r.prodCard.btnTitle1&&(n=r.prodCard.btnTitle1),s&&r.prodCard.btnTitle2&&(n=r.prodCard.btnTitle2)),a&&(a.textContent=n)}}function t_store_product_addOneOptionsControl(t,e,r,o,i,s){if(e.name){var a,n,d,l='';if('modificator'===t){if(void 0===e.values)return;n='';var c=e.values.split('\n');Array.prototype.forEach.call(c,function(t){var e=t.split('=')[0],r=t.split('=')[1];l+=n.replace(/\[\[value\]\]/g,t_store_escapeQuote(e).replace(/&/g,'&amp;')).replace(/\[\[text\]\]/g,t_store_escapeQuote(e)).replace(/\[\[price\]\]/g,r||'')}),d=t_store_get_control_option_html(o),a=d.replace(/\[\[name\]\]/g,e.name).replace(/\[\[optiontags\]\]/g,l)}else n='',Array.prototype.forEach.call(e.values,function(t){''!==t&&(l+=n.replace(/\[\[value\]\]/g,t_store_escapeQuote(t).replace(/&/g,'&amp;')).replace(/\[\[text\]\]/g,t_store_escapeQuote(t)))}),''!==l&&(d=t_store_get_control_editionOption_html(o,e),a=d.replace(/\[\[id\]\]/g,e.id.replace(/&/g,'&amp;')).replace(/\[\[name\]\]/g,e.name).replace(/\[\[optiontags\]\]/g,l));a&&r.insertAdjacentHTML('beforeend',a);var p=t_store_option_checkIfCustom(e);if(p&&t_store_option_styleCustomControl(s,o,e,r,i),'editionopt'===t){var _=r.querySelectorAll('.js-product-edition-option'),u=_.length-1,g=_[u];if(g)return g}}}function t_store_product_getEditionOptionsArr(t,e){var r=t.editions,o=['quantity','price','priceold','gallery','sku','uid','img','externalid','pack_x','pack_y','pack_z','pack_m'],i={},s=[];return r.forEach(function(t){Object.keys(t).forEach(function(t){-1!==o.indexOf(t)||i[t]||(i[t]=!0)}),Object.keys(i).length}),Object.keys(i).forEach(function(o){var i={name:o,id:t_store_combineOptionIdByName(o),params:t_store_product_getEditionOptionsArr_getParams(o,t,e),values:t_store_product_getEditionOptionsArr_getValues(o,r),imagesObj:t_store_product_getEditionOptionsArr_getImgValues(o,r),valuesObj:e&&e[o]?e[o].values:{}};s.push(i)}),s}function t_store_product_getFirstAvailableEditionData(t){for(var e=0;e').replace(/</g,'<'),o&&d===e.length-1&&(p=o),a[l]!==p){n=!1;break}}if(n){if(0!==parseInt(a.quantity,10))return a;i||(i=a)}}return i&&0===parseInt(i.quantity,10)&&(i=''),i}function t_store_product_getEditionOptionsArr_getValues(t,e){var r=[];return e.forEach(function(e){var o=e[t];void 0!==o&&-1===r.indexOf(o)&&r.push(o)}),r=t_store_product_sortValues(r),r}function t_store_product_sortValuesByOrder(t,e,r){return t.sort(function(t,o){var i='filter'===e?t.value:t,s='filter'===e?o.value:o;return i=i.toString().toUpperCase(),s=s.toString().toUpperCase(),r.indexOf(i)-r.indexOf(s)})}function t_store_product_isSimpleOrderValid(t,e){return t.every(function(t){return'object'==typeof t&&'string'==typeof t.value&&(t=t.value),'string'==typeof t&&(t=t.trim().toUpperCase(),e.indexOf(t)>=0)})}function t_store_product_isDateOrderValid(t){var e=/(\d{2})\.(\d{2})\.(\d{4})/;return t.every(function(t){return'object'==typeof t&&'string'==typeof t.value&&(t=t.value),'string'==typeof t&&(t=t.trim().toUpperCase(),t.match(e))})}function t_store_product_sortValues(t,e,r){var o=t||[];if(t.length<2)return o;var i='filter'===e?t[0].value.toString():t[0].toString(),s='filter'===e?t[1].value.toString():t[1].toString(),a=['XXXS','3XS','XXS','2XS','XS','XS-S','S','S-M','M','M-L','L','L-XL','XL','XXL','2XL','XXXL','3XL','XXXXL','BXL','4XL','BXXL','5XL','BXXXL','6XL','ONE SIZE','ОДИН РАЗМЕР','УНИВЕРСАЛЬНЫЙ'],n=['ПОНЕДЕЛЬНИК','MONDAY','ВТОРНИК','TUESDAY','СРЕДА','WEDNESDAY','ЧЕТВЕРГ','THURSDAY','ПЯТНИЦА','FRIDAY','СУББОТА','SATURDAY','ВОСКРЕСЕНЬЕ','SUNDAY'],d=['ЯНВАРЬ','ФЕВРАЛЬ','МАРТ','АПРЕЛЬ','МАЙ','ИЮНЬ','ИЮЛЬ','АВГУСТ','СЕНТЯБРЬ','ОКТЯБРЬ','НОЯБРЬ','ДЕКАБРЬ','JANUARY','FEBRUARY','MARCH','APRIL','MAY','JUNE','JULY','AUGUST','SEPTEMBER','OCTOBER','NOVEMBER','DECEMBER'],l=['Вт','W','даВт','daW','гВт','hW','кВт','kW','мВт','mW','ГВт','GW','ТВт','TW','ПВт','PW'],c=['Кб','Кбайт','KiB','KB','Мбайт','Мб','MiB','MB','Mb','Гбайт','Гб','GiB','GB','Gb','Тбайт','Тб','TiB','TB'],p=['мкг','mcg','мг','mg','г','g','кг','kg','т','t','ц'],_=['мкм','мм','mm','дм','dm','см','cm','м','m','км','km'],u=['мл','л'],g=['тыс','млн','млрд'],m={watt:l,bytes:c,weight:p,length:_,litre:u,largeNums:g},y=r||t,v=/(\d{2})\.(\d{2})\.(\d{4})/;if(t_store_product_isSimpleOrderValid(y,a))o=t_store_product_sortValuesByOrder(o,e,a);else if(t_store_product_isSimpleOrderValid(y,n))o=t_store_product_sortValuesByOrder(o,e,n);else if(t_store_product_isSimpleOrderValid(y,d))o=t_store_product_sortValuesByOrder(o,e,d);else if(t_store_product_isDateOrderValid(y))o=t.sort(function(t,r){var o='filter'===e?t.value:t,i='filter'===e?r.value:r;return o=new Date(o.toString().replace(v,'$2/$1/$3').trim()),i=new Date(i.toString().replace(v,'$2/$1/$3').trim()),isNaN(o)||isNaN(i)?0:o-i});else{try{o=t.sort(function(t,r){var o='filter'===e?t.value:t,i='filter'===e?r.value:r;if(o=o.toString().replace(/^(от|from)\s+/i,''),i=i.toString().replace(/^(от|from)\s+/i,''),o=parseFloat(o.toString().replace(',','.').trim()),i=parseFloat(i.toString().replace(',','.').trim()),isNaN(o)||isNaN(i))return 0;if(o===i){var s='filter'===e?t.value:t,a='filter'===e?r.value:r;s=s.toString().replace(/^(от|from)\s+/i,'').replace(',','.').trim(),a=a.toString().replace(/^(от|from)\s+/i,'').replace(',','.').trim();var n=/(\d+)\s?(x|х|×)\s?(\d+)/gi,d=s.match(n),l=a.match(n);return d&&l&&(s=d[2],a=l[2]),s>a?1:a>s?-1:0}return o-i})}catch(t){console.log(t)}try{for(var f in m){t=m[f];var h=t_store_product_hasMeasureUnit(t,i)&&t_store_product_hasMeasureUnit(t,s),w=new RegExp(/^\d*,?\.?\d+\s*/,'gi');if(h)return o=o.sort(function(r,o){var i='filter'===e?r.value:r,s='filter'===e?o.value:o;return i=i.toString().replace(w,'').trim(),s=s.toString().replace(w,'').trim(),t.indexOf(i)-t.indexOf(s)}),o}}catch(t){console.log(t)}}return o}function t_store_product_hasMeasureUnit(t,e){return e=e.replace(/\s/g,''),t.some(function(t){var r='^[\\d.,]+('+t+'){1}$',o=new RegExp(r,'i');return o.test(e)})}function t_store_product_getEditionOptionsArr_getParams(t,e,r){var o={};if(r)o=r[t]?r[t].params:{};else try{var i=JSON.parse(e.json_options);i&&i.forEach(function(e){e.params&&e.title&&e.title===t&&(o=e.params)})}catch(t){}return o}function t_store_product_getEditionOptionsArr_getImgValues(t,e){var r={};return e.forEach(function(e){var o=e[t];r[o]||(r[o]=e.img)}),r}function t_store_product_getCurEditionOptValById(t,e){var r=t.querySelector('.js-product-edition-option[data-edition-option-id="'+e+'"]');return r?r.querySelector('.js-product-edition-option-variants').value:''}function t_store_product_getEditionSelectEl(t,e){return t.querySelector('.js-product-edition-option[data-edition-option-id="'+e.id+'"]')}function t_store_combineOptionIdByName(t){return t.replace(/[\\'"<>{}]/g,'')}function t_store_getProductFirstImg(t){if(t.gallery&&'['===t.gallery[0]){var e=JSON.parse(t.gallery);if(e[0]&&e[0].img)return e[0].img}return''}function t_store__getFormattedPrice(t,e){if(null==e||0===e||''===e)return'';e=t_store__cleanPrice(e),e=e.toString();var r=!1,o=!1;if(t.currencyDecimal?r='00'===t.currencyDecimal:void 0!==window.tcart&&void 0!==window.tcart.currency_dec&&(r='00'===window.tcart.currency_dec),t.currencySeparator?o='.'===t.currencySeparator:void 0!==window.tcart&&void 0!==window.tcart.currency_sep&&(o='.'===window.tcart.currency_sep),r)if(-1===e.indexOf('.')&&-1===e.indexOf(','))e+='.00';else{var i=e.substring(e.indexOf('.')+1);1===i.length&&(e+='0')}return e=o?e.replace(',','.'):e.replace('.',','),e=e.toString().replace(/\B(?=(\d{3})+(?!\d))/g,' '),e}function t_store__getFormattedMinPrice(t,e){var r=e.minPrice;return null!=r&&(r=t_store__getFormattedPrice(t,r)),r}function t_store__getFormattedPriceRange(t,e){if(!Object.prototype.hasOwnProperty.call(t,'prodCard')||t.prodCard.showOpts||!t.price.priceRange||''===t.price.priceRange||!Object.prototype.hasOwnProperty.call(e,'minPrice')||!Object.prototype.hasOwnProperty.call(e,'maxPrice'))return null;var r=e.minPrice,o=e.maxPrice;if(null===r||null===o||r===o)return null;r=t_store__getFormattedPrice(t,r),o=t_store__getFormattedPrice(t,o);var i=t.price.priceRange;return'range'===i?r+'—'+o:'from'===i?window.tStoreDict.from+' '+r:void 0}function t_store_loadMoreBtn_display(t){var e=document.getElementById('rec'+t);if(e){var r=e.querySelector('.t-store__load-more-btn-wrap'),o=e.querySelector('.js-store-grid-cont.t-store__grid-cont_mobile-one-row'),i=!!(window.innerWidth<960&&o);r&&r.classList.toggle('t-store__load-more-btn-wrap_hidden',i)}}function t_store_oneProduct_init(t,e){var r=document.querySelector('#rec'+t+' .js-store-product_single');if(r){var o=r.getAttribute('data-product-gen-uid');o=t_store_oneProduct_clearUid(o),r.setAttribute('data-product-gen-uid',o),window.tStoreIsSearchBot||t_store_oneProduct_preloader_add(t);var i=document.getElementById('allrecords').getAttribute('data-tilda-mode');e.isPublishedPage='edit'!==i&&'preview'!==i;var s=window.tStoreSingleProdsObj&&!e.previewmode ;!window.tStoreSingleProductsIsRequested||s?(t_store_oneProduct_requestAllSingle(e),window.tStoreSingleProductsIsRequested=!0,r.addEventListener('tStoreSingleProductsLoaded',function(){t_store_oneProduct_fill(t,window.tStoreSingleProdsObj[o],e)})):window.tStoreSingleProdsObj?t_store_oneProduct_fill(t,window.tStoreSingleProdsObj[o],e):r.addEventListener('tStoreSingleProductsLoaded',function(){t_store_oneProduct_fill(t,window.tStoreSingleProdsObj[o],e)})}}function t_store_oneProduct_clearUid(t){return t.replace('product id: ','')}function t_store_oneProduct_preloader_add(t){var e=document.getElementById('rec'+t),r=e.querySelector('.js-store-product_single');if(r){var o=r.querySelector('.js-store-single-product-info');o.style.display='none',clearTimeout(e.getAttribute('data-preloader-timeout'));var i=setTimeout(function(){var t='';t+='',o.insertAdjacentHTML('beforebegin',t),t_store__fadeIn(r.querySelector('.t-store__single-prod-preloader'))},1e3);e.setAttribute('data-preloader-timeout',i)}}function t_store_oneProduct_preloader_hide(t){var e=document.getElementById('rec'+t),r=e.querySelector('.js-store-product_single');if(r){clearTimeout(e.getAttribute('data-preloader-timeout'));var o=r.querySelector('.js-store-single-product-info');o&&(o.style.display='');var i=r.querySelector('a.t-btn[href="#order"]'),s=i?i.parentElement||i.parentNode:'';s&&(s.style.pointerEvents='inherit'),t_store__removeElement(r.querySelector('.t-store__single-prod-preloader'))}}function t_store_oneProduct_requestAllSingle(t){var e=document.querySelectorAll('.js-store-product_single'),r=[];Array.prototype.forEach.call(e,function(t){var e=t.getAttribute('data-product-gen-uid');e=t_store_oneProduct_clearUid(e),r.push(e)});var o=function(t){var r=t.products;''!==r?(t.options&&t.options.length&&!window.tStoreOptionsList&&(window.tStoreOptionsList=t.options),window.tStoreSingleProdsObj=t_store_oneProduct_prodsArrToAssociative(r),Array.prototype.forEach.call(e,function(t){t_triggerEvent(t,'tStoreSingleProductsLoaded')})):console.log('Something went wrong. Can\'t get products array by uid list. Please check products UID.')};t_store_loadProducts_byId(r,t,o,function(e){t_store_changeEndpoint(e,function(){t_store_loadProducts_byId(r,t,o)})})}function t_store_oneProduct_prodsArrToAssociative(t){var e={};if(!t)return e;for(var r=0;r',t_store_showMsgInRedactor(o,i,'success')}}function t_store_oneProduct_error_show(t,e){if(!e.previewmode){var r=document.getElementById('rec'+t),o='RU'===window.tStoreBrowserLang?'Не удается получить товар из каталога. Возможно он был удален или отключен. Пожалуйста, проверьте, что товар с таким ID существует.':'Can\'t find a product in the catalog. It may have been deleted or disabled. Please check that the product with this ID exists.';t_store_showMsgInRedactor(r,o,'error')}}function t_store_showMsgInRedactor(t,e,r){var o=t.querySelector('.js-store-msg');t_store__removeElement(o);var i='success'===r?'#fff':'#000',s='success'===r?'#62C584':'yellow',a='';a+='
',a+='
',a+='
',a+=' ',a+='
',a+=e,a+='
',a+='
',t.insertAdjacentHTML('afterbegin',a)}function t_store_isQueryInAddressBar(t){var e;try{e=decodeURI(window.location.href)}catch(t){e=window.location.href}return!!e&&-1!==e.indexOf(t)}function t_store_getColumnWidth(t){var e=window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth,r=e>1200?'minWidth1200':'maxWidth1200',o={minWidth1200:{col_1:60,col_2:160,col_3:260,col_4:360,col_5:460,col_6:560,col_7:660,col_8:760,col_9:860,col_10:960,col_11:1060,col_12:1160},maxWidth1200:{col_1:60,col_2:140,col_3:220,col_4:300,col_5:380,col_6:460,col_7:540,col_8:620,col_9:700,col_10:780,col_11:860,col_12:940}};return o[r]['col_'+t]}function t_store_option_getOptionsData(){var t=window.tStoreOptionsList;if(!t)return null;for(var e={},r=0;r7e3&&'function'!=typeof window[t]&&s(),setTimeout(i,r||100)):e()})}}function t_store_hexToRgb(t){var e=/^#?([a-f\d])([a-f\d])([a-f\d])$/i;t=t.replace(e,function(t,e,r,o){return e+e+r+r+o+o});var r=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(t),o=r?{r:parseInt(r[1],16),g:parseInt(r[2],16),b:parseInt(r[3],16)}:null;return r?[o.r,o.g,o.b]:null}function t_store_getFirstColorFromGradient(t){var e=/rgba\(\d+,\d+,\d+,\d+\)/gi,r=/(\d+),(\d+),(\d+)/i,o=t.match(e),i=o?o[0]:null,s=r.exec(i),a=s?{r:s[1],g:s[2],b:s[3]}:null;return s?[a.r,a.g,a.b]:null}function t_store_luma_rgb(t){var e=Array.isArray(t);if(void 0===t)return'black';if(0!==t.indexOf('rgb')&&!e)return'black';var r=e?t:t.split('(')[1].split(')')[0].split(',');return r.length<3?'black':.2126*r[0]+.7152*r[1]+.0722*r[2]>128?'black':'white'}function t_store_getLightnessColor(t){var e;if(-1===t.indexOf('rgb')){var r=parseInt(t.indexOf('#')>-1?t.substring(1):t,16);e={r:r>>16,g:(65280&r)>>8,b:255&r}}else{var o=t.replace(/[^\d,.]/g,''),i=o.split(',');e={r:i[0],g:i[1],b:i[2]}}e.r/=255,e.g/=255,e.b/=255;var s=Math.max(e.r,e.g,e.b),a=Math.min(e.r,e.g,e.b);return(s+a)/2}function t_store_removeRgbOpacity(t){if(!t||!t.length)return null;var e=t.split(',');return e[3]&&(e[3]='1)'),e.join()}function t_store_snippet_getJsonFromUrl(){var t=window.location.search,e=t.substring(1),r={};return e.split('&').forEach(function(t){var e=t.split('=');try{r[e[0]]=decodeURIComponent(e[1])}catch(t){r[e[0]]=e[1]}}),r}function t_store__cleanPrice(t){return t?(t=t.toString(),t=t.replace(',','.').replace(/[^0-9.]/g,''),t=parseFloat(t).toFixed(2),isNaN(t)&&(t=0),t=parseFloat(t),t*=1,t<0&&(t=0)):t=0,t}function t_store__removeElement(t){t&&t.parentNode&&t.parentNode.removeChild(t)}function t_store__fadeIn(t,e){if(('1'===getComputedStyle(t).opacity||''===getComputedStyle(t).opacity)&&'none'!==getComputedStyle(t).display)return!1;var r=0;e||(e=200),e=parseInt(e);var o=e>0?e/10:40;t.style.opacity=r,t.style.display='block';var i=setInterval(function(){t.style.opacity=r,r+=.1,r>=1&&clearInterval(i)},o)}function t_store__serializeData(t,e){var r=[];for(var o in t)if(Object.prototype.hasOwnProperty.call(t,o)){var i=e?e+'['+o+']':o,s=t[o],a=JSON.stringify(s);'{}'!==a&&null!==s&&r.push(null!==s&&'object'==typeof s?t_store__serializeData(s,i):encodeURIComponent(i)+'='+encodeURIComponent(s))}return r.join('&')}function t_store_changeEndpoint(t,e){var r='';t&&(t.status>=500||408==t.status||410==t.status||429==t.status||'timeout'===t.type)&&-1!==window.t_store_endpoint.indexOf('store.tilda')?(window.t_store_endpoint='store2.tildacdn.com','function'==typeof e&&e()):(r=t&&t.responseText>''?'['+t.status+'] '+t.responseText:t&&t.statusText?'Error ['+t.status+', '+t.statusText+']':'Error type ['+t.type+']',console.log(r+'. Please, try again later.'))}function t_store_paramsToObj(t,e){var r;try{r=decodeURI(window.location.search)}catch(t){r=window.location.search}var o={otherParams:[]};o[t]={};try{r=r.replace(/&/g,'%26amp')}catch(t){console.log(t)}var i=r.slice(1).split('&');if(i=i.map(function(t){return t.replace(/%26amp/g,'&')}),o.otherParams=i.filter(function(t){var e=/^tfc_/i.test(t)||/^s_/i.test(t);return!e&&t}),-1!==window.location.href.indexOf('s_recid=')){var s=window.location.href.split('s_recid=')[1].split('&')[0];s===t&&i.splice(1).forEach(function(e){try{var r=/^s_/i.test(e),i=document.querySelector('#rec'+t);if(!i)return;if(o[t]||(o[t]={}),r){e=e.replace(/^s_/i,'tfc_'),e=e.replace(/%3A/gi,':');var s=e.split('='),a=s[0],n=s[1].replace(/\+/g,' ').split(':::'),d=a.replace(/^tfc_/i,'');o[t][d]=o[t][d]?o[t][d].concat(n):n}}catch(t){console.log(t)}})}else-1!==window.location.href.indexOf('tfc_')&&i.forEach(function(t){var e=t.split('=');try{var r=/^tfc_/i.test(t);if(r&&'tfc_div'!==e[0]){var i,s=e[0];i=-1!==window.location.href.indexOf('tfc_div')?e[1].replace(/\+/g,' ').replace(/%2B/g,'+').split(':::'):e[1].replace(/\+/g,' ').split('%2B');var a=new RegExp(/\[\d.*\]$/,'gi'),n=s.match(a),d=n?Number(JSON.parse(n[0])):null;if(!d)return void console.error('Can\'t find recid in URL param');var l=document.querySelector('#rec'+d);if(!l)return;var c=s.replace(a,'').replace('tfc_','');o[d]||(o[d]={}),o[d][c]=o[d][c]?o[d][c].concat(i):i}}catch(t){console.log(t)}});window.tStoreCustomUrlParams=o,t_store_paramsToObj_updateUrl(o);var a=t_store_paramsToObj_getDefaultSort(t,e.defaultSort);for(var n in a){var d=a[n].sort,l=a[n].quantity;(d||l)&&(o[n]&&o[n].sort&&e.previewmode||d&&(o[n]||(o[n]={}),o[n].sort=d),o[n]&&o[n].quantity&&'object'==typeof o[n].quantity&&'y'===o[n].quantity[0]&&e.previewmode||l&&(o[n]||(o[n]={}),o[t].quantity||(o[n].quantity=['y'])))}return window.tStoreCustomUrlParams=o,o}function t_store_paramsToObj_updateUrl(t){var e=t_store_customURLParamsToString(t);window.location.hash&&(e+=window.location.hash);try{window.history.replaceState(null,null,e)}catch(t){}}function t_store_paramsToObj_getDefaultSort(t,e){var r=window.tStoreDefaultSort?window.tStoreDefaultSort:{};if(!e)return r;if(e.default){var o={'sort-price-asc':'price:asc','sort-price-desc':'price:desc','sort-name-asc':'title:asc','sort-name-desc':'title:desc','sort-created-asc':'created:asc','sort-created-desc':'created:desc'};r[t]||(r[t]={}),r[t].sort=new Array(o[e.default])}return e.in_stock&&(r[t]||(r[t]={}),r[t].quantity||(r[t].quantity=['y'])),window.tStoreDefaultSort=r,r}function t_store_customURLParamsToString(t){var e='',r='';for(var o in t){var i=t[o];if('otherParams'!==o)for(var s in i)try{var a=Array.isArray(i[s])?i[s].join('[[PLUS]]'):i[s].toString();a=a.replace(/%/g,'%25'),a=a.replace(/#/g,'%23'),a=a.replace(/\+/g,'%2B'),a=a.replace(/\[\[PLUS\]\]/g,':::'),a=a.replace(/%26amp/g,'&'),a=a.replace(/\s/gi,'+'),e+=e.length?'&':'?',e+='tfc_'+s+'['+o+']='+a}catch(t){console.log(t)}}return e&&(e+='&tfc_div=:::'),t.otherParams&&t.otherParams.length&&(t.otherParams.forEach(function(t){t.length&&(r+='&'+t)}),e=e.length?e+r:'?'+r.slice(1)),e.length?e:window.location.origin+window.location.pathname}function t_store_updateOptionsBasedOnUrl(t,e,r){try{var o=e[r];for(var i in t.filters={},o)if('sort'!==i){var s=-1!==i.indexOf('price:m')||-1!==i.indexOf('quantity');t.filters[i]=s?o[i].toString():o[i]}else{t.sort={};var a=o[i].join().split(':'),n=(i=a[0],a[1]);t.sort[i]=n}return t}catch(t){console.log('something wrong in t_store_updateOptionsBasedOnUrl',t)}}function t_store_snippet_chooseEditionFromUrl(t,e,r,o){try{var i=t_store_snippet_getJsonFromUrl(),s=i.editionuid;if(s&&r.getAttribute('data-product-uid')!==s){console.log('show product by uid from url = '+s);var a='';if(e.editions.forEach(function(t){t.uid===parseInt(s,10)&&(a=t)}),!a)return;t_store_product_updateEdition(t,r,a,e,o);var n=0===parseInt(a.quantity);t_store_product_triggerSoldOutMsg(r,n,o)}}catch(t){console.log('error decode url')}}function t_store_moveSearhSort(t,e){var r=document.getElementById('rec'+t);if(r){var o=r.querySelector('.t-store__filter__search-and-sort');if(window.innerWidth>960&&o&&'none'===window.getComputedStyle(o).display&&(o.style.display=''),e.sidebar){var i=r.querySelector('.t-store__filter__controls-wrapper'),s=r.querySelector('.js-store-cont-w-filter');if(o){var a=o.parentNode.classList.contains('js-store-cont-w-filter');window.innerWidth<960?a&&(t_store__removeElement(o),i.insertAdjacentElement('beforeend',o)):a||(t_store__removeElement(o),s.insertAdjacentElement('afterbegin',o))}}}}function t_store_get_productCard_horizontalStructure(t,e,r,o,i,s){var a='';return(t.gallery[0]&&''!==t.gallery[0]||t.gallery[0]&&''!==t.gallery[0])&&r.prodCard.hasImg&&(a+='
'+o.open+t_store_get_productCard_img_html(t,r)+o.close+'
'),a+='
'+t_store_get_horizontalProductCard_txt_html(t,r,o,e,i,s)+t_store_get_horizontalProductCard_priceAndButtons(t,r,e,i,s)+'
',a}function t_store_get_horizontalProductCard_txt_html(t,e,r,o){var i=t.title;if(e.isTitleClip)i=t.title.length>50?t.title.slice(0,50)+'...':t.title;if(t.title)var s='
'+i+'
';var a='';t.descr&&e.prodCard.hasDescr&&(a='
'+t.descr+'
');var n='';o.sku&&(n='');var d='
'+r.open+s+r.close+a+n+'
';return d}function t_store_get_horizontalProductCard_priceAndButtons(t,e,r,o,i){var s=parseInt(e.rightColumnWidth,10),a=s?'style="width: '+s+'px;"':'',n='
'+t_store_get_productCard_Price_html(t,r,e)+t_store_get_productCard_btn_html(t,e,o,i)+'
';return n}function t_store_getDictObj(){var t={sku:{EN:'SKU',RU:'Артикул',FR:'UGS',DE:'SKU',ES:'SKU',PT:'SKU',UK:'Код товару',JA:'単品管理',ZH:'存货单位',PL:'SKU',KK:'SKU',IT:'SKU',LV:'SKU'},soldOut:{EN:'Out of stock',RU:'Нет в наличии',FR:'En rupture de stock',DE:'Ausverkauft',ES:'Agotado',PT:'Fora de estoque',UK:'Немає в наявності',JA:'在庫切れ',ZH:'缺货',PL:'Nie ma na stanie',KK:'Сатылды',IT:'Esaurito',LV:'Nav noliktavā'},all:{EN:'All',RU:'Все',FR:'Tout',DE:'Alles',ES:'Todos',PT:'Todos',UK:'Всі',JA:'すべて',ZH:'所有',PL:'Wszystkie',KK:'Барлық',IT:'Tutti',LV:'Visi'},from:{EN:'from',RU:'от',FR:'de',DE:'von',ES:'de',PT:'de',JA:'から',ZH:'从',UK:'від',PL:'od',KK:'бастап',IT:'da',LV:'no'},emptypartmsg:{EN:'Nothing found',RU:'Ничего не найдено',FR:'Rien trouvé',DE:'Nichts gefunden',ES:'Nada encontrado',PT:'Nada encontrado',UK:'Нічого не знайдено',JA:'何も見つかりませんでした',ZH:'什么都没找到',PL:'Nic nie znaleziono',KK:'Ештеңе табылмады',IT:'Non abbiamo trovato nulla',LV:'Nekas nav atrasts'},seeotherproducts:{EN:'See other',RU:'Другие товары',FR:'Autres produits',DE:'Andere produkte',ES:'Otros productos',PT:'Outros produtos',UK:'Інші товари',JA:'その他の商品',ZH:'其他产品',PL:'Inne produkty',KK:'Басқа қараңыз',IT:'Vedi altri',LV:'Skatiet citas'},seeAlso:{EN:'See also',RU:'Смотрите также',FR:'Voir également',DE:'Siehe auch',ES:'Ver también',PT:'Veja também',UK:'Дивись також',JA:'また見なさい',ZH:'也可以看看',PL:'Patrz również',KK:'Сондай-ақ, қараңыз',IT:'Guarda anche',LV:'Skatīt arī'},addtocart:{EN:'Buy now',RU:'Купить',FR:'Acheter',DE:'Zu kaufen',ES:'Para comprar',PT:'Comprar',UK:'Купити',JA:'購入する',ZH:'要买',PL:'Kup',KK:'Қазір сатып Ал',IT:'Acquista ora',LV:'Pērc tagad'},loadmore:{EN:'Load more',RU:'Загрузить еще',FR:'Charger plus',DE:'Mehr laden',ES:'Carga más',PT:'Carregue mais',UK:'Завантажити ще',JA:'もっと読み込む',ZH:'裝載更多',PL:'Pokaż więcej',KK:'Load көп',IT:'Carica ancora',LV:'Ielādēt vairāk'},PCE:{EN:'pc',RU:'шт',UK:'шт',KK:'шт'},NMP:{EN:'pack',RU:'уп',UK:'уп',KK:'уп'},MGM:{EN:'mg',RU:'мг',UK:'мг',KK:'мг'}};t.g=t.GRM={EN:'g',RU:'г',UK:'г',PL:'r',KK:'г'},t.KGM={EN:'kg',RU:'кг',UK:'кг',KK:'кг'},t.TNE={EN:'t',RU:'т',UK:'т',KK:'т'},t.MLT={EN:'ml',RU:'мл',UK:'мл',KK:'мл'},t.LTR={EN:'l',RU:'л',UK:'л',KK:'л'},t.mm=t.MMT={EN:'mm',RU:'мм',UK:'мм',KK:'мм'},t.CMT={EN:'cm',RU:'см',UK:'см',KK:'см'},t.DMT={EN:'dm',RU:'дм',UK:'дм',KK:'дм'},t.MTR={EN:'m',RU:'м',UK:'м',KK:'м'},t.MTK={EN:'m²',RU:'м²',UK:'м²',KK:'м²'},t.MTQ={EN:'m³',RU:'м³',UK:'м³',KK:'м³'},t.LMT={EN:'lm',RU:'пог. м',UK:'пог. м',KK:'пог. м'},t.HAR={EN:'ha',RU:'га',UK:'га',KK:'га'},t.ACR={EN:'acre'},t.YRD={EN:'yd'},t.LBR={EN:'lb'},t.ONZ={EN:'oz'},t.INH={EN:'in'},t.FOT={EN:'ft'},t['product-lwh']={EN:'LxWxH',RU:'ДxШxВ',DE:'LxBxH',ES:'PxLxK',UK:'ДxШxВ'},t['product-wht']={EN:'WxHxT',RU:'ШxВxТ',FR:'LxHxÉ',DE:'BxHxD',ES:'LxKxP',PT:'LxAxE',UK:'ШxВxТ'},t['product-whd']={EN:'WxHxD',RU:'ШxВxГ',FR:'LxHxP',DE:'BxHxT',ES:'LxKxS',PT:'LxAxP',UK:'ШxВxГ'},t['product-weight']={EN:'Weight',RU:'Вес',FR:'Poids',DE:'Gewicht',ES:'Kaal',PT:'Peso',UK:'Вага',JA:'重さ',ZH:'機重',PL:'Waga',KK:'Салмақ',IT:'Peso',LV:'Svars'};var e=window.tStoreBrowserLang;window.tStoreDict||(window.tStoreDict={}),Object.keys(t).forEach(function(r){window.tStoreDict[r]=t[r][e]?t[r][e]:t[r].EN})}function t_triggerEvent(t,e){var r;document.createEvent?(r=document.createEvent('HTMLEvents'),r.initEvent(e,!0,!1)):document.createEventObject&&(r=document.createEventObject(),r.eventType=e),r.eventName=e,t.dispatchEvent?t.dispatchEvent(r):t.fireEvent?t.fireEvent('on'+r.eventType,r):t[e]?t[e]():t['on'+e]&&t['on'+e]()}function t_store_fixedPopupButton(t){function e(){c.style.paddingBottom=s+i+'px',c.style.cssText+=';transform:none !important;'}function r(){c.style.paddingBottom='',c.style.transform=''}function o(){window.innerWidth>a?r():e()}var i=130,s=90,a=560,n='t-store__prod-popup__btn-wrapper-fixed',d=document.getElementById('rec'+t);if(d){var l=d.querySelector('.t-popup'),c=l.querySelector('.t-popup__container'),p=d.querySelectorAll('.t-store__prod-popup__btn-wrapper');Array.prototype.forEach.call(p,function(t){t.classList.add(n)}),window.isMobile&&window.addEventListener('orientationchange',o),l.addEventListener(t_store_POPUP_SHOWED_EVENT_NAME,function(){setTimeout(function(){o()},0)}),l.addEventListener(t_store_POPUP_CLOSED_EVENT_NAME,function(){setTimeout(function(){r()},0)}),window.addEventListener('resize',o)}}window.tStoreIsSearchBot=/Bot/i.test(navigator.userAgent),window.tStoreIsMobile=/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent),window.tStoreBrowserLang=(window.navigator.userLanguage||window.navigator.language).toUpperCase().slice(0,2),window.t_store_endpoint='store.tildacdn.com';var t_store_POPUP_SHOWED_EVENT_NAME='catalog:popupShowed',t_store_POPUP_CLOSED_EVENT_NAME='catalog:popupClosed';t_onReady(function(){var t,e=document.getElementById('allrecords');if(e){var r=e.getAttribute('data-tilda-project-lang');r&&(window.tStoreBrowserLang=r),t=e.getAttribute('data-tilda-root-zone'),t&&(window.t_store_endpoint='store.tildaapi.'+t)}t_store_getDictObj(),t_store_fixImgs()}),Array.prototype.some||(Array.prototype.some=function(t){'use strict';if(null===this)throw new TypeError('Array.prototype.some called on null or undefined');if('function'!=typeof t)throw new TypeError;for(var e=Object(this),r=e.length>>>0,o=arguments.length>=2?arguments[1]:void 0,i=0;i