(function($,app){"use strict";function WpfFrontendPage(){this.$obj=this;this.noWoo=this.$obj.checkNoWooPage();this.readyFuncs=['.berocket_load_more_preload','woocommerce-product-bundle-hide','show_variation','woo_variation_swatches_pro_init','.variations_form','yith_infs_start','flatsome_infinite_scroll','.dipl_woo_products_pagination_wrapper','divi_filter_loadmore_ajax_handler'];this.isSafari=navigator.vendor&&navigator.vendor.indexOf('Apple')>-1&&navigator.userAgent&&navigator.userAgent.indexOf('CriOS')==-1&&navigator.userAgent.indexOf('FxiOS')==-1;this.disableScrollJs=true;this.lastFids=[];return this.$obj;}
WpfFrontendPage.prototype.init=(function(){var _thisObj=this.$obj;app.wpfNewUrl='';window.wpfDoNotLoadMore=false;_thisObj.filterClick=true;_thisObj.filteringId=0;_thisObj.setCurrentLocation();_thisObj.filterLoadTypes=[];_thisObj.defaultProductSelector='ul.products';_thisObj.isAdminPreview=jQuery('#wpfFiltersEditForm').length>0||(typeof isElementorPreview!='undefined'&&isElementorPreview==1);_thisObj.moveFloatingElements();_thisObj.checkForceFilters();_thisObj.eventsPriceFilter();_thisObj.disableLeerOptions();_thisObj.eventsFrontend();_thisObj.changeSlugByUrl();_thisObj.runCustomJs();_thisObj.addCustomCss();_thisObj.chageRangeFieldWidth();_thisObj.addSpecificPluginActions();_thisObj.resizeWindow();_thisObj.changeOrderBy();_thisObj.copySelectsForSafari();jQuery('.wpfMainWrapper').each(function(){_thisObj.markCheckboxSelected(jQuery(this),true);});if(_thisObj.isAdminPreview){_thisObj.hideFiltersLoader();}else{setTimeout(function(){_thisObj.hideFiltersLoader();},100);}});WpfFrontendPage.prototype.moveFloatingElements=(function(){var _thisObj=this.$obj;if(!_thisObj.isAdminPreview&&jQuery('.wpfFloatingBlock').length==0&&jQuery('.wpfFloatingWrapper').length==1){jQuery('body').append('<div class="wpfFloatingBlock"></div>');if(jQuery('.wpfFloatingSwitcher').length==1){var button=$('.wpfFloatingSwitcher');if(button.hasClass('wpfSwitcherRealFloat')){button.detach();$('.wpfFloatingBlock').append(button);}}
if(jQuery('.wpfFloatingOverlay').length==1){var overlay=$('.wpfFloatingOverlay').detach();$('.wpfFloatingBlock').append(overlay);}
var block=$('.wpfFloatingWrapper').detach();$('.wpfFloatingBlock').append(block);}});WpfFrontendPage.prototype.changeOrderBy=(function(){jQuery('.woocommerce-ordering select').on('change',function(e){e.preventDefault();var orderBy=jQuery(this).val(),curUrl=window.location.href;if((curUrl.indexOf('?')===-1)){curUrl+='?orderby='+orderBy;jQuery('.wpfMainWrapper').each(function(){var filter=$(this).data('filter-settings');if(typeof filter.settings.filters.defaults!=='undefined'){curUrl+='&'+filter.settings.filters.defaults.replace(';','&');}});}else{if(curUrl.indexOf('orderby')===-1){curUrl+=((curUrl.indexOf('?')===-1)?'?':'&')+'orderby='+orderBy;}else{curUrl=curUrl.replace(/(orderby=)[^&]*/,'$1'+orderBy);}}
jQuery(location).attr('href',curUrl);return false;});});WpfFrontendPage.prototype.resizeWindow=(function(){var _thisObj=this.$obj;_thisObj.filterOptionsForDevices();jQuery(window).on('resize',function(){_thisObj.filterOptionsForDevices();});});WpfFrontendPage.prototype.copySelectsForSafari=(function(){var _thisObj=this.$obj;if(!_thisObj.isSafari)return;jQuery('.wpfMainWrapper').each(function(){var $wrapper=jQuery(this),$selectsWrapper=$wrapper.find('.wpfSelectCopies');if($selectsWrapper.length==0){jQuery('<div/>').addClass('wpfSelectCopies').appendTo($wrapper);$selectsWrapper=$wrapper.find('.wpfSelectCopies');}
if($selectsWrapper.length==0)return;$wrapper.find('.wpfFilterWrapper[data-display-type="dropdown"] select').each(function(){var $select=jQuery(this),$filter=$select.closest('.wpfFilterWrapper'),blockId=$filter.attr('id');if($selectsWrapper.find('select[data-block="'+blockId+'"]').length==0){$select.clone().attr('data-block',blockId).appendTo($selectsWrapper);}});_thisObj.removeHiddenOptionsForSafari($wrapper);});});WpfFrontendPage.prototype.restoreSelectsForSafari=(function(){var _thisObj=this.$obj;if(!_thisObj.isSafari)return;jQuery('.wpfMainWrapper').each(function(){var $wrapper=jQuery(this),$selectsWrapper=$wrapper.find('.wpfSelectCopies');if($selectsWrapper.length==1){$selectsWrapper.find('select').each(function(){var $select=jQuery(this),blockId=$select.attr('data-block'),$filterSelect=$wrapper.find('#'+blockId+' select');if($filterSelect.length==1){var value=$filterSelect.val();$filterSelect.html($select.html());$filterSelect.val(value);}});}});});WpfFrontendPage.prototype.removeHiddenOptionsForSafari=(function(){var _thisObj=this.$obj;if(!_thisObj.isSafari)return;jQuery('.wpfFilterWrapper[data-display-type="dropdown"] select:visible option').each(function(){if(jQuery(this).css('display')=='none')jQuery(this).remove();});});WpfFrontendPage.prototype.checkForceFilters=(function(){var forceShowFilter=jQuery('.wpfMainWrapper[data-force="1"]');if(!forceShowFilter.length)return;jQuery('.wpfMainWrapper').each(function(){var wrapper=jQuery(this),forceShowCurrent=wrapper.attr('data-force');if(!forceShowCurrent){wrapper.remove();if(wrapper.closest('.WpfWoofiltersWidget').length){wrapper.closest('.WpfWoofiltersWidget').remove();}}});});WpfFrontendPage.prototype.showFiltersLoader=(function(){jQuery('.wpfMainWrapper').each(function(){var wrapper=jQuery(this);wrapper.css('position','relative');if(!wrapper.find('.wpfLoaderLayout').length){jQuery('<div/>').addClass('wpfLoaderLayout').appendTo(wrapper);wrapper.find('.wpfLoaderLayout').append('<i class="fa fa-spinner fa-pulse fa-3x fa-fw"/>');}
wrapper.find('.wpfLoaderLayout').show();});});WpfFrontendPage.prototype.hideFiltersLoader=(function(){jQuery('.wpfMainWrapper').each(function(){var wrapper=jQuery(this);hideFilterLoader(wrapper);});});WpfFrontendPage.prototype.runCustomJs=(function(){var _thisObj=this.$obj;jQuery('.wpfMainWrapper').each(function(){var wrapper=jQuery(this),jsCodeStr='',settings=_thisObj.getFilterMainSettings(wrapper);if(settings){settings=settings.settings;jsCodeStr=settings.js_editor;}
if(jsCodeStr.length>0){try{eval(jsCodeStr);}catch(e){console.log(e);}}});});WpfFrontendPage.prototype.addCustomCss=(function(){if(jQuery('style#wpfCustomCss').length===0){var cssCodeStr='';jQuery('.wpfMainWrapper').each(function(){var wrapper=jQuery(this),customCss=jQuery('style#wpfCustomCss-'+wrapper.attr('data-viewid'));if(customCss.length){cssCodeStr+=customCss.html();customCss.remove();}});if(cssCodeStr.length>0){jQuery('<style type="text/css" id="wpfCustomCss">'+cssCodeStr+'</style>').appendTo('head');}}});WpfFrontendPage.prototype.chageRangeFieldWidth=(function(){var _thisObj=this.$obj;jQuery('.wpfFilterWrapper[data-filter-type="wpfPrice"]').each(function(){var filter=jQuery(this),input1=filter.find('#wpfMinPrice'),input2=filter.find('#wpfMaxPrice'),fontSize1=input1.css('font-size'),fontSize2=input2.css('font-size'),visbleBuffer1=filter.find('.wpfVisibleBufferMin'),visbleBuffer2=filter.find('.wpfVisibleBufferMax');if(fontSize1)visbleBuffer1.css('font-size',fontSize1);if(fontSize2)visbleBuffer2.css('font-size',fontSize2);jQuery(visbleBuffer1).text(input1.val());jQuery(visbleBuffer2).text(input2.val());if(navigator.userAgent.toLowerCase().indexOf('firefox')>-1){jQuery(input1).width(visbleBuffer1.width()+20);jQuery(input2).width(visbleBuffer2.width()+20);}else{jQuery(input1).width(visbleBuffer1.width()+10);jQuery(input2).width(visbleBuffer2.width()+10);}});});WpfFrontendPage.prototype.eventsPriceFilter=(function(){var _thisObj=this.$obj;jQuery('.wpfFilterWrapper[data-filter-type="wpfPrice"]').each(function(){_thisObj.initDefaultSlider(jQuery(this));});jQuery('.wpfFilterWrapper[data-filter-type="wpfPrice"]').on('wpfPriceChange',function(event){var filter=jQuery(this),mainWrapper=filter.closest('.wpfMainWrapper');mainWrapper.find('.wpfFilterWrapper[data-filter-type="wpfPriceRange"] input').prop('checked',false);mainWrapper.find('.wpfFilterWrapper[data-filter-type="wpfPriceRange"] select').val(mainWrapper.find('.wpfFilterWrapper[data-filter-type="wpfPriceRange"] select option:first').val());filter.removeClass('wpfNotActive');mainWrapper.find('.wpfFilterWrapper[data-filter-type="wpfPriceRange"]').addClass('wpfNotActive');});jQuery('.wpfFilterWrapper[data-filter-type="wpfPriceRange"] input, .wpfFilterWrapper[data-filter-type="wpfPriceRange"] select').on('change',function(e){e.preventDefault();jQuery('.wpfFilterWrapper[data-filter-type="wpfPrice"]').addClass('wpfNotActive');});});WpfFrontendPage.prototype.initDefaultSlider=(function(filter,type){var _thisObj=this.$obj,wrapper=filter.closest('.wpfMainWrapper'),filterType=typeof type!=='undefined'?type:'price',getAttr=filter.data('get-attribute'),minInputId='#wpfMinPrice',maxInputId='#wpfMaxPrice',triggerName='wpfPriceChange';if(filterType==='attr'){minInputId='#wpfMinAttrNum';maxInputId='#wpfMaxAttrNum';triggerName='wpfAttrSliderChange';}
var minSelector=wrapper.find(minInputId),maxSelector=wrapper.find(maxInputId),wpfDataStep=wrapper.find('#wpfDataStep').val()
if(wpfDataStep=='0.001'){wpfDataStep='0.00000001';}
wpfDataStep=Number(wpfDataStep);var valMin=parseFloat(minSelector.attr('min')),valMax=parseFloat(maxSelector.attr('max')),curUrl=window.location.href,urlParams=_thisObj.findGetParameter(curUrl),rate=filter.data('rate');urlParams=_thisObj.getConvertedPrices(urlParams,rate);var minPriceGetParams=urlParams.wpf_min_price?parseFloat(urlParams.wpf_min_price):valMin,maxPriceGetParams=urlParams.wpf_max_price?parseFloat(urlParams.wpf_max_price):valMax;if(filterType==='attr'){if(urlParams[getAttr]){var idsAnd=urlParams[getAttr].split(','),idsOr=urlParams[getAttr].split('|'),isAnd=idsAnd.length>idsOr.length;var filterTypeValues=isAnd?idsAnd:idsOr;}
minPriceGetParams=urlParams[getAttr]?parseFloat(filterTypeValues[0]):valMin;maxPriceGetParams=urlParams[getAttr]?parseFloat(filterTypeValues.pop()):valMax;}
var sliderWrapper=filter.find("#wpfSliderRange"),autoFilteringEnable=(wrapper.find('.wpfFilterButton').length==0),skin=filter.attr('data-price-skin');if(skin==='default'){sliderWrapper.slider({range:true,orientation:"horizontal",min:valMin,max:valMax,step:wpfDataStep,values:[minPriceGetParams,maxPriceGetParams],slide:function(event,ui){minSelector.val(ui.values[0]);maxSelector.val(ui.values[1]);filter.trigger(triggerName);},start:function(){filter.trigger(triggerName);},stop:function(){if(autoFilteringEnable){_thisObj.setCurrentLocation();_thisObj.filtering(wrapper);}},});minSelector.val(sliderWrapper.slider("values",0));maxSelector.val(sliderWrapper.slider("values",1));}});WpfFrontendPage.prototype.QStringWork=(function($attr,$value,$noWooPage,$filterWrapper,$type){$noWooPage=false;if(window.wpfAdminPage){$noWooPage=true;}
if($type==='change'){var curUrl=changeUrl($attr,$value,$noWooPage,$filterWrapper);$filterWrapper.attr('data-hide-url',decodeURI(curUrl));}else if($type==='remove'){var curUrl=removeQString($attr,$noWooPage,$filterWrapper);$filterWrapper.attr('data-hide-url',decodeURI(curUrl));}});WpfFrontendPage.prototype.eventChangeFilter=(function(e){var _thisObj=this.$obj,_this=jQuery(e.target),mainWrapper=_this.closest('.wpfMainWrapper'),settings=_thisObj.getFilterMainSettings(mainWrapper);_thisObj.setCurrentLocation();_this.closest('.wpfFilterWrapper').removeClass('wpfNotActive');if(typeof(_thisObj.eventChangeFilterPro)=='function'){_thisObj.eventChangeFilterPro(_this,settings);}
var redirectOnlyClick=Number(settings.settings.redirect_only_click),autoUpdateFilter=Number(settings.settings.auto_update_filter),loaderEnable=Number(settings.settings.filter_loader_icon_onload_enable),isButton=(mainWrapper.find('.wpfFilterButton').length>0),isCheckbox=_this.attr('type')=='checkbox',redirectLink=isCheckbox?_this.closest('li').attr('data-link'):_this.find('option:selected').attr('data-link');if(typeof redirectLink!=='undefined'&&isCheckbox){var filter=_this.closest('.wpfFilterWrapper');if(filter.attr('data-display-type')!='list'&&_this.is(':checked')){filter.find('input').prop('checked',false);_this.prop('checked',true);}}
if(isButton){if(autoUpdateFilter||redirectOnlyClick){if(loaderEnable){mainWrapper.find('.wpfLoaderLayout').show();}
_thisObj.filterClick=false;_thisObj.filtering(mainWrapper,false,redirectLink);}}else{_thisObj.filterClick=true;_thisObj.filtering(mainWrapper,false,redirectLink);}});WpfFrontendPage.prototype.eventsFrontend=(function(){var _thisObj=this.$obj,searchParams=jQuery.toQueryParams(window.location.search);if(searchParams['all_products_filtering']&&searchParams['all_products_filtering']=='1'){jQuery(document).ajaxSend(function(event,jqxhr,settings){if(settings.data){var response=_thisObj.unserializeStr(settings.data);if(response['action']&&response['action']=='us_ajax_grid'){if(response['template_vars']&&response['template_vars'].length){try{var query=JSON.parse(response['template_vars']);}catch(e){var query=false;}
if(query&&query['query_args']){var args=query['query_args'];if(args['product_cat'])delete args.product_cat;if(args['product_tag'])delete args.product_tag;response['template_vars']=JSON.stringify(query);var result=[];jQuery.each(response,function(key,val){result.push(encodeURIComponent(key)+"="+encodeURIComponent(val));});settings.data=result.join("&").replace(/%20/g,"+");}}}}});}
if(jQuery('.divi-filter-archive-loop, .eael-woo-pagination').length){var actions=['divi_filter_loadmore_ajax_handler','woo_product_pagination_product'];jQuery(document).ajaxSend(function(event,jqxhr,settings){if(settings.data){var response=_thisObj.unserializeStr(settings.data);if(response['action']&&actions.indexOf(response['action'])!=-1){var s=window.location.search;if(s&&s.length>1){response['with_wpf_filter']=s.replace('?','');var result=[];jQuery.each(response,function(key,val){result.push(encodeURIComponent(key)+"="+encodeURIComponent(val));});settings.data=result.join("&").replace(/%20/g,"+");}}}});}
if(typeof window.wpfFetchHookCreated=='undefined'||window.wpfFetchHookCreated!=1){window.fetch=new Proxy(window.fetch,{apply(fetch,that,args){var url=args.length?args[0]:'';if(typeof url==='string'&&url.length){if(url.indexOf('wp-json/wc/store/')!=-1&&url.indexOf('/products?')!=-1&&url.indexOf('per_page=')!=-1){var s=window.location.search;if(s.length)args[0]+=s.replace('?','&');else{var urlPreselects='';jQuery('.wpfMainWrapper').each(function(){var settings=_thisObj.getFilterMainSettings(jQuery(this)),preselects=typeof settings.settings.filters.preselect!=='undefined'?settings.settings.filters.preselect:'';if(preselects.length){urlPreselects+='&'+preselects.replace(/;/g,'&');if(settings.settings.filtering_by_variations=='1')urlPreselects+='&wpf_fbv=1';if(settings.settings.exclude_backorder_variations=='1')urlPreselects+='&wpf_ebv=1';if(settings.settings.display_product_variations=='1')urlPreselects+='&wpf_dpv=1';}});if(urlPreselects.length){args[0]+=urlPreselects+'&wpf_preselects=1';}}}}
const result=fetch.apply(that,args);return result;}});window.wpfFetchHookCreated=1;}
jQuery(document).ajaxComplete(function(event,xhr,options){setTimeout(function(){if(jQuery('.wpfLoaderLayout:visible').length){window.wpfFrontendPage.init();if(typeof(window.wpfFrontendPage.eventsFrontendPro)=='function'){window.wpfFrontendPage.eventsFrontendPro();}}},500);});jQuery('.wpfMainWrapper').find('select[multiple]').each(function(){var select=jQuery(this),selectAll=select.attr('data-placeholder'),search=JSON.parse(select.attr('data-search')),singleSelect=select.data('single-select'),showCheckbox=(typeof select.data('hide-checkboxes')==='undefined');setTimeout(function(){select.multiselect({search:search.show,columns:1,placeholder:selectAll?selectAll:'Select options',optionAttributes:['style','data-term-id'],searchOptions:{'default':search.placeholder},showCheckbox:showCheckbox,onOptionClick:function(element,option){if(typeof singleSelect!=='undefined'){var value=jQuery(option).val();jQuery(option).closest('ul').find('input[type="checkbox"][value!='+value+']').prop('checked',false);jQuery(element).val(value);jQuery(element).siblings('.ms-options-wrap').find('.ms-options:visible').hide();}},});},100);if(search.show){jQuery('.ms-options-wrap').on('click','button',function(){$(this).next('.ms-options').find('.ms-search input').focus();});}});if(jQuery('.wpfFilterWrapper[data-filter-type="wpfSortBy"]').length==0){jQuery('.woocommerce-ordering').css('display','block');}
jQuery('.wpfFilterWrapper[data-hide-single="1"]').each(function(){var filter=jQuery(this),selector=filter.find('.wpfColorsFilter').length?'li[data-term-slug]':'[data-term-id]',visible=0;if(filter.attr('data-display-type')!='slider'){filter.find(selector).each(function(){if(jQuery(this).css('display')!='none')visible++;});if(visible<=1){filter.hide();}}});if(jQuery('.wpfFilterWrapper').length<1){jQuery('.wpfMainWrapper').addClass('wpfHidden');}
jQuery('body').on('mousedown','.wpfFilterButton, .js-wpfFilterButtonSearch',function(e){e.preventDefault();var $this=jQuery(this),mainWrapper=$this.closest('.wpfMainWrapper'),inputSearch=mainWrapper.find('.js-passiveFilterSearch');if(inputSearch.length){inputSearch.each(function(){var $sElem=jQuery(this);if($sElem.val()!==''){$sElem.closest('.wpfFilterWrapper').removeClass('wpfNotActive');}
$sElem.trigger('blur');});}
applyFilter(_thisObj,$this);});jQuery('input.js-passiveFilterSearch').on('keydown',function(e){var char_code=e.which;if(parseInt(char_code)==13){e.preventDefault();var $this=jQuery(this);$this.closest('.wpfFilterWrapper').removeClass('wpfNotActive');$this.trigger('blur');applyFilter(_thisObj,$this);}});jQuery('body').on('click','.wpfClearButton',function(e){e.preventDefault();var $filterWrapper=jQuery(this).closest('.wpfMainWrapper'),settings=_thisObj.getFilterMainSettings($filterWrapper),resetAllFilters=typeof settings.settings.reset_all_filters!=='undefined'?settings.settings.reset_all_filters:0;_thisObj.setCurrentLocation();if(resetAllFilters!=='0'){jQuery('.wpfMainWrapper').each(function(){_thisObj.clearFilters(jQuery(this).find('.wpfFilterWrapper'),true);});}else{_thisObj.clearFilters($filterWrapper.find('.wpfFilterWrapper'),true);}
if(Number(settings.settings.redirect_after_select)||Number(settings.settings.redirect_only_click)){_thisObj.filterClick=false;}
_thisObj.filtering($filterWrapper,true);if(typeof(_thisObj.initOneByOne)=='function'){_thisObj.initOneByOne($filterWrapper);}});jQuery('.wpfFilterWrapper[data-filter-type="wpfPriceRange"] .wpfFilterContent input').on('change',function(e){e.preventDefault();var input=jQuery(this),inputs=input.closest('.wpfFilterWrapper').find('input');if(input.is(":checked")){inputs.prop('checked',false);input.prop('checked',true);}});jQuery('.wpfFilterWrapper[data-filter-type="wpfCategory"], .wpfFilterWrapper[data-filter-type="wpfPerfectBrand"], .wpfFilterWrapper[data-filter-type="wpfAttribute"]').each(function(){var categoryFilter=jQuery(this),displayType=categoryFilter.data('display-type'),categoryMulti=displayType=='multi';if(categoryFilter.data('filter-type')=='wpfAttribute'){if(displayType=='list'||displayType=='switch')categoryMulti=true;}
categoryFilter.find('.wpfFilterContent input').on('change',function(e){e.preventDefault();var input=jQuery(this);if(categoryMulti){var mainWrapper=input.closest('.wpfMainWrapper'),filterWrapper=input.closest('.wpfFilterWrapper'),expandSelectedToChild=_thisObj.getFilterParam('f_multi_extend_parent_select',mainWrapper,filterWrapper);if(expandSelectedToChild&&input.is(':checked')){input.closest('li').find('ul input').prop('checked',true);}
if(expandSelectedToChild&&!input.is(':checked')){input.closest('li').find('ul input').prop('checked',false);}}});});jQuery('.wpfFilterWrapper[data-filter-type="wpfRating"] .wpfFilterContent input').on('change',function(e){e.preventDefault();var input=jQuery(this),inputs=input.closest('.wpfFilterWrapper').find('input');if(input.is(":checked")){inputs.prop('checked',false);input.prop('checked',true);}});jQuery('body').off('change','.wpfFilterWrapper select, .wpfFilterWrapper input:not(.passiveFilter)').on('change','.wpfFilterWrapper select, .wpfFilterWrapper input:not(.passiveFilter)',function(e){e.preventDefault();var isExeptionCase=_thisObj.checkExeptionCasesBeforeFiltering(this);if(!isExeptionCase){var $this=jQuery(this);if($this.is('input')&&$this.closest('.wpfFilterWrapper').data('display-type')=='mul_dropdown'){isExeptionCase=true;}}
if(!isExeptionCase){setTimeout(function(){_thisObj.eventChangeFilter(e);},100);}});jQuery('.wpfFilterWrapper input:not(.passiveFilter)').on('change',function(e){e.preventDefault();_thisObj.moveCheckedToTop(jQuery(this));_thisObj.detectSingleCheckbox(jQuery(this))
_thisObj.markCheckboxSelected(jQuery(this).closest('.wpfFilterWrapper'));});jQuery('.wpfMainWrapper').each(function(){var mainWrapper=jQuery(this),settings=_thisObj.getFilterMainSettings(mainWrapper);if(settings&&settings.settings&&settings.settings.checked_items_top==='1'){mainWrapper.find('.wpfFilterWrapper input').attr('autocomplete','off');mainWrapper.find('.wpfFilterWrapper input:checked').each(function(){_thisObj.moveCheckedToTop(jQuery(this),false);});}});jQuery('.wpfFilterWrapper .wpfSearchFieldsFilter').on('keyup',function(e){var _this=jQuery(this),wrapper=_this.closest('.wpfFilterWrapper'),searchVal=_this.val().toLowerCase(),isIconFunc=typeof(_thisObj.getIcons)=='function',unfolding=(searchVal.length&&_this.attr('data-unfolding')=='1'&&isIconFunc),collapse=(searchVal.length==0&&_this.attr('data-collapse-search')=='1'&&isIconFunc);wrapper.find('.wpfFilterContent li:not(.wpfShowFewerWrapper)').filter(function(){var $li=jQuery(this);if($li.find('.wpfValue').text().toLowerCase().indexOf(searchVal)>-1){$li.removeClass('wpfSearchHidden');if(unfolding||collapse){var $parentLi=$li.closest('li');while($parentLi.length&&$parentLi.closest('.wpfFilterWrapper')){var $label=$parentLi.children('label'),$icon=$label.length?$label.find('i.fa, svg'):'';if($icon.length){var $icons=_thisObj.getIcons($icon.eq(0));if($icons.collapsed&&unfolding||!$icons.collapsed&&collapse){_thisObj.collapsibleToggle($icon.eq(0),$icons,$parentLi);}}
$parentLi=$parentLi.closest('ul').closest('li');}}}else{$li.addClass('wpfSearchHidden');}});if(typeof(_thisObj.initShowMore)=='function'){_thisObj.initShowMore(wrapper.find('.wpfFilterVerScroll'));}});jQuery('body').off('click','.wpfSlugDelete').on('click','.wpfSlugDelete',function(){var _this=jQuery(this),wrapper=_this.closest('.wpfSlug'),filterType=wrapper.attr('data-filter-type'),filterAttr=wrapper.attr('data-get-attribute'),filterWrapper=false;_thisObj.setCurrentLocation();jQuery('.wpfFilterWrapper[data-filter-type="'+filterType+'"][data-get-attribute="'+filterAttr+'"]').each(function(){var $this=jQuery(this),filterType=$this.attr("data-filter-type");if(filterType=='wpfPrice'||filterType=='wpfPriceRange'){_thisObj.clearFilters($("[data-filter-type='wpfPrice']:not(.wpfSelectedParameter)"));_thisObj.clearFilters($("[data-filter-type='wpfPriceRange']:not(.wpfSelectedParameter)"));}else{_thisObj.clearFilters($this);}
if(filterWrapper==false){filterWrapper=$this.closest('.wpfMainWrapper');}});if(filterWrapper!=false){_thisObj.filtering(filterWrapper);}});jQuery('body').off('click','.wpfFilterWrapper .wpfFilterTitle').on('click','.wpfFilterWrapper .wpfFilterTitle',function(e){e.preventDefault();var _this=jQuery(this),wrapper=_this.closest('.wpfMainWrapper'),settings=_thisObj.getFilterMainSettings(wrapper),content=_this.closest('.wpfFilterWrapper').find('.wpfFilterContent');setTimeout(function(){var toggle=_this.find('i.wpfTitleToggle, svg'),icons={};if(toggle.length){if(typeof(_thisObj.getIcons)=='function'){icons=_thisObj.getIcons(toggle);}else{icons={collapsed:toggle.hasClass('fa-plus'),plusIcon:'fa-plus',minusIcon:'fa-minus'};}
if(settings.settings.hide_filter_icon!=='0'){if(icons.collapsed){_thisObj.openFilterToggle(toggle,content,true,icons);}else{_thisObj.closeFilterToggle(toggle,content,true,icons);}}}},100);});jQuery('body').off('click','.wpfFilterWrapper .wpfBlockClear').on('click','.wpfFilterWrapper .wpfBlockClear',function(){var parent=jQuery(this).closest(".wpfFilterWrapper"),parentAttr=parent.attr("data-filter-type");_thisObj.setCurrentLocation();if(parentAttr=='wpfPrice'||parentAttr=='wpfPriceRange'){_thisObj.clearFilters($("[data-filter-type='wpfPrice']:not(.wpfSelectedParameter)"));_thisObj.clearFilters($("[data-filter-type='wpfPriceRange']:not(.wpfSelectedParameter)"));}else{_thisObj.clearFilters(parent);}
_thisObj.filtering(parent.closest('.wpfMainWrapper'));return false;});jQuery('body').off('wpffiltering').on('wpffiltering',function(){_thisObj.setPagination(1);_thisObj.setCurrentLocation();_thisObj.filtering();_thisObj.setPagination(0);});jQuery('body').off('click','.wpfNoWooPage .woocommerce-pagination a.page-numbers').on('click','.wpfNoWooPage .woocommerce-pagination a.page-numbers',function(e){e.preventDefault();var _this=jQuery(this),paginationWrapper=_this.closest('.woocommerce-pagination'),currentNumber=paginationWrapper.find('.current').text();if(!_this.hasClass('next')&&!_this.hasClass('prev')){var number=_this.text();}else if(_this.hasClass('next')){var number=parseInt(currentNumber)+1;}else if(_this.hasClass('prev')){var number=(parseInt(currentNumber)-1)<1?parseInt(currentNumber)-1:1;}
var wrapper=jQuery('.wpfMainWrapper').first(),$queryVars=wrapper.attr('data-settings');try{var settings=JSON.parse($queryVars);}catch(e){var settings=false;}
if(settings){settings.paged=number;settings.pagination=1;wrapper.attr('data-settings',JSON.stringify(settings));}
_thisObj.setCurrentLocation();_thisObj.filtering(jQuery('.wpfMainWrapper'));_thisObj.setPagination(0);});var prevLocation=location.href.split('#').shift();jQuery(window).on('popstate',function(e){var currentLocation=location.href.split('#').shift();if(location.href.split('#').length>1&&prevLocation===currentLocation){return;}
if(typeof window.wpfAdminPage==='undefined'&&!_thisObj.isSafari){location.reload();}});jQuery('.wpfPreselected:not([data-filter-type="wpfPriceRange"]) .wpfCheckbox input').prop('checked',true);jQuery('#wpfOverlay:not([data-filter]').each(function(){var $overlay=jQuery(this),$wrapper=$overlay.closest('.wpfMainWrapper');$overlay.attr('data-filter-for',$wrapper.attr('id')).attr('data-filter',$wrapper.attr('data-filter'));$overlay.appendTo('body');});});function applyFilter(_thisObj,$this){var mainWrapper=$this.closest('.wpfMainWrapper');_thisObj.setCurrentLocation();_thisObj.filterClick=true;_thisObj.filtering(mainWrapper);}
WpfFrontendPage.prototype.filterOptionsForDevices=(function(){var _thisObj=this.$obj;jQuery('.wpfMainWrapper .wpfFilterWrapper').each(function(){var _this=jQuery(this),wrapper=_this.closest('.wpfMainWrapper'),settings=_thisObj.getFilterMainSettings(wrapper),isMobile=false,screenSize=jQuery(window).width();if(settings.settings!==undefined){var isMobileBreakpoint=settings.settings.desctop_mobile_breakpoint_switcher,mobileBreakpoinWidth=isMobileBreakpoint&&isMobileBreakpoint=='1'?settings.settings.desctop_mobile_breakpoint_width:'0',displayFor=settings.settings.display_for,filterWidthDesktop=settings.settings.filter_width,filterWidthDesktopUnit=settings.settings.filter_width_in,filterWidthMobile=settings.settings.filter_width_mobile,filterWidthMobileUnit=settings.settings.filter_width_in_mobile,filterBlockWidthDesktop=settings.settings.filter_block_width,filterBlockWidthDesktopUnit=settings.settings.filter_block_width_in,filterBlockWidthMobile=settings.settings.filter_block_width_mobile,filterBlockWidthMobileUnit=settings.settings.filter_block_width_in_mobile;if(mobileBreakpoinWidth&&'0'!==mobileBreakpoinWidth){if(screenSize<=mobileBreakpoinWidth){isMobile=true;}
if(isMobile&&filterBlockWidthMobile!='0'){wrapper.css('width',filterWidthMobile+filterWidthMobileUnit);_this.css('width',filterBlockWidthMobile+filterBlockWidthMobileUnit);if(filterBlockWidthMobile+filterBlockWidthMobileUnit!='100%'){_this.css('float','left');}}else if(!isMobile&&filterBlockWidthDesktop!='0'){wrapper.css('width',filterWidthDesktop+filterWidthDesktopUnit);_this.css('width',filterBlockWidthDesktop+filterBlockWidthDesktopUnit);if(filterBlockWidthDesktop+filterBlockWidthDesktopUnit!='100%'){_this.css('float','left');}}
if(isMobile&&displayFor=='desktop'){wrapper.hide();}else if(!isMobile&&displayFor=='mobile'){wrapper.hide();}
_this.find('.wpfFilterTitle[data-show-on-mobile]').each(function(){jQuery(this).closest('.wpfFilterMainWrapper').find('wpfLoaderLayout').show();var showDesctop=jQuery(this).data('show-on-desctop'),showMobile=jQuery(this).data('show-on-mobile'),content=jQuery(this).closest('.wpfFilterWrapper').find('.wpfFilterContent'),title=jQuery(this).find('.wfpTitle'),icons={};title.show();var toggle=jQuery(this).closest('.wpfFilterWrapper').find('i.wpfTitleToggle, svg');setTimeout(function(){if(toggle.length){toggle.show();if(typeof(_thisObj.getIcons)=='function'){icons=_thisObj.getIcons(toggle);}else{icons={collapsed:toggle.hasClass('fa-plus'),plusIcon:'fa-plus',minusIcon:'fa-minus'};}
if(isMobile){if(showMobile=='yes_open'){_thisObj.openFilterToggle(toggle,content,false,icons);}else if(showMobile=='yes_close'){_thisObj.closeFilterToggle(toggle,content,false,icons);}else if(showMobile=='no'){_thisObj.openFilterToggle(toggle,content,false,icons);toggle.hide();title.hide();}}else{if(showDesctop=='yes_open'){_thisObj.openFilterToggle(toggle,content,false,icons);}else if(showDesctop=='yes_close'){_thisObj.closeFilterToggle(toggle,content,false,icons);}else if(showDesctop=='no'){_thisObj.openFilterToggle(toggle,content,false,icons);toggle.hide();title.hide();}}}},100);});}}});});WpfFrontendPage.prototype.checkExeptionCasesBeforeFiltering=(function(filterInput){var isExeption=false;if(jQuery(filterInput).parent().hasClass('wpfPriceCheckboxCustom')){var customPriceWrapper=jQuery(filterInput).closest('li'),customMin=customPriceWrapper.find('input[name=wpf_custom_min]').val(),customMax=customPriceWrapper.find('input[name=wpf_custom_max]').val();if(!customMin&&!customMax){isExeption=true;}}
return isExeption;});WpfFrontendPage.prototype.detectSingleCheckbox=(function(checkedInput){var filterWrapper=checkedInput.closest('.wpfFilterWrapper'),displayType=filterWrapper.data('display-type'),filterType=filterWrapper.data('filter-type');if(filterType=='wpfCategory'||filterType=='wpfPerfectBrand'||filterType=='wpfBrand'){var isOne=displayType=='list';}else{var isOne=displayType=='radio';}
if(isOne){var inputs=filterWrapper.find('input');if(checkedInput.is(':checked')){inputs.prop('checked',false);checkedInput.prop('checked',true);}}});WpfFrontendPage.prototype.moveCheckedToTop=(function(checkedInput,setPause){var _thisObj=this.$obj,sPause=setPause===false?0:200;setTimeout(function(){var checkboxWrapper=checkedInput.closest('li'),mainWrapper=checkedInput.closest('.wpfMainWrapper'),filterWrapper=checkedInput.closest('.wpfFilterWrapper'),isHierarchical=filterWrapper.data('show-hierarchical'),settings=_thisObj.getFilterMainSettings(mainWrapper),checkboxesWrapper=checkedInput.closest(isHierarchical?'ul':'.wpfFilterVerScroll');if(settings&&checkboxesWrapper.length){settings=settings.settings;var checkedItemsTop=settings.checked_items_top==='1',isExeptionCase=_thisObj.checkExeptionCasesBeforeFiltering(checkedInput);if(checkedItemsTop&&!isExeptionCase){if(checkedInput.is(":checked")){checkboxesWrapper.prepend(checkboxWrapper);}else{checkboxesWrapper.append(checkboxWrapper);checkboxesWrapper.append(checkboxesWrapper.find('.wpfShowFewerWrapper,.wpfShowMoreWrapper'));}
checkboxesWrapper.scrollTop(0);}}},sPause);});WpfFrontendPage.prototype.closeFilterToggle=(function(toggle,content,isTimeout,icons){if(toggle.hasClass(icons.minusIcon)){toggle.removeClass(icons.minusIcon);toggle.addClass(icons.plusIcon);content.addClass('wpfBlockAnimated');if(typeof isTimeout!=='undefined'&&isTimeout){setTimeout(function(){if(content.hasClass('wpfBlockAnimated'))content.addClass('wpfHide');},10);}else{if(content.hasClass('wpfBlockAnimated'))content.addClass('wpfHide');}}});WpfFrontendPage.prototype.openFilterToggle=(function(toggle,content,isTimeout,icons){if(toggle.hasClass(icons.plusIcon)){toggle.removeClass(icons.plusIcon);toggle.addClass(icons.minusIcon);content.removeClass('wpfHide');if(typeof isTimeout!=='undefined'&&isTimeout){setTimeout(function(){if(!content.hasClass('wpfHide'))content.removeClass('wpfBlockAnimated');},400);}else{if(!content.hasClass('wpfHide'))content.removeClass('wpfBlockAnimated');}}});WpfFrontendPage.prototype.setPagination=(function(pagination){var wrapper=jQuery('.wpfMainWrapper').first(),$queryVars=wrapper.attr('data-settings');try{var settings=JSON.parse($queryVars);}catch(e){var settings=false;}
if(settings){settings.pagination=pagination;wrapper.attr('data-settings',JSON.stringify(settings));}});WpfFrontendPage.prototype.setCurrentLocation=(function(){app.wpfOldUrl=window.location.href;app.wpfNewUrl=app.wpfOldUrl;});WpfFrontendPage.prototype.filtering=(function($filterWrapper,clearAll,redirectLink,onlyRecalcFilter){var _thisObj=this.$obj;_thisObj.chageRangeFieldWidth();if(_thisObj.isAdminPreview)return;if(typeof $filterWrapper=='undefined'||$filterWrapper.length==0){$filterWrapper=jQuery('.wpfMainWrapper').first();}
if(_thisObj.filterClick&&$filterWrapper.length){_thisObj.createOverlay($filterWrapper.attr('id'));}
if(typeof(_thisObj.beforeFilteringPro)==='function'){_thisObj.beforeFilteringPro($filterWrapper);}
_thisObj.isSynchro=false;_thisObj.isStatistics=false;if($filterWrapper.length!==0){_thisObj.filteringId++;_thisObj.lastFids[$filterWrapper.data('viewid')]=_thisObj.filteringId;var $filtersDataBackend=[],$filtersDataFrontend=[],noWooPage=_thisObj.noWoo,$generalSettings=_thisObj.getFilterMainSettings($filterWrapper);_thisObj.isSynchro=$generalSettings['settings']['use_filter_synchro']&&($generalSettings['settings']['use_filter_synchro']=='1')?true:false;_thisObj.isStatistics=$filterWrapper.attr('data-is-stats')==1;if(_thisObj.isSynchro){_thisObj.syncronizeFilters($filterWrapper);}
(_thisObj.isSynchro?jQuery('.wpfMainWrapper'):$filterWrapper).find('.wpfFilterWrapper:not(.wpfNotActive), .wpfFilterWrapper.wpfPreselected').each(function(){var $filter=jQuery(this),filterType=$filter.attr('data-filter-type'),filterName=$filter.attr('data-get-attribute'),wrapper=$filter.closest('.wpfMainWrapper'),idFilter=wrapper.data('filter'),uniqId=$filter.attr('data-uniq-id'),allSettings=_thisObj.getFilterOptionsByType($filter,filterType),valueToPushBackend={},valueToPushFrontend={},logic=$filter.attr('data-query-logic'),isGroup=false,cgIndex=null;if(_thisObj.isStatistics&&typeof(_thisObj.prepareStatisticsData)=='function'){_thisObj.prepareStatisticsData($filter,allSettings);}
try{var order=JSON.parse(_thisObj.getFilterMainSettings(wrapper).settings.filters.order);jQuery.each(order,function(i,v){if(v.uniqId===uniqId){jQuery.each(v.settings,function(i,v){cgIndex=i.match(/^f_cglist\[(\d+)\]/);if(cgIndex!==null&&typeof cgIndex[1]!=='undefined'&&v!==''){isGroup=true;}});}});}catch(e){}
if(typeof logic==='undefined'){logic='or';}else if(logic=='not'){var notIds=$filter.attr('data-not-ids');if(notIds&&notIds.length>0){allSettings={backend:notIds.split(',')};}}
var withChildren=$filter.attr('data-query-children');if(typeof withChildren==='undefined'){withChildren='1';}
if(allSettings['backend'].length&&typeof allSettings['backend']!=='undefined'||filterType==='wpfSearchText'||filterType==='wpfSearchNumber'){valueToPushBackend['id']=filterType;valueToPushBackend['uniqId']=uniqId;valueToPushBackend['logic']=logic;valueToPushBackend['children']=withChildren;valueToPushBackend['settings']=allSettings['backend'];valueToPushBackend['name']=filterName;$filtersDataBackend.push(valueToPushBackend);}
if('frontend'in allSettings){valueToPushFrontend['id']=filterType;var logicDelimetrList={or:'|',and:',',not_in:';'}
valueToPushFrontend['delim']=logicDelimetrList[logic];valueToPushFrontend['children']=withChildren;valueToPushFrontend['settings']=allSettings['frontend'];valueToPushFrontend['name']=filterName;if(isGroup){valueToPushFrontend['idFilter']=idFilter;valueToPushFrontend['idBlock']=uniqId.replace(/^wpf/,'');}
$filtersDataFrontend.push(valueToPushFrontend);}});var redirectTerm=typeof redirectLink!=='undefined';if(redirectTerm||(typeof $filterWrapper.data('redirect-page-url')!=='undefined'&&_thisObj.filterClick)){history.pushState({state:1,rand:Math.random(),wpf:true},'',location.protocol+'//'+location.host+location.pathname);}
var filterId=$filterWrapper.data('filter');if(typeof filterId!=='undefined'){jQuery('span.wpfHidden').each(function(){var $span=jQuery(this),attribute=$span.data('shortcode-attribute'),fclass='wpf-filter-'+filterId;if((attribute.class!==''&&fclass===attribute.class)||$span.closest('.'+fclass).length){_thisObj.QStringWork('wpf_id',filterId,noWooPage,$filterWrapper,'change');}});}
_thisObj.changeUrlByFilterParams($filtersDataFrontend);_thisObj.QStringWork('wpf_reload','',noWooPage,$filterWrapper,'remove');var $queryVars=$filterWrapper.attr('data-settings'),$defQuery=$filterWrapper.attr('data-default-query'),$queryVarsSettings=JSON.parse($queryVars);var $filterSettings=$generalSettings===false?{}:{'wpf_fid':_thisObj.filteringId,'filter_recount':$generalSettings['settings']['filter_recount']&&($generalSettings['settings']['filter_recount']=='1')?true:false,'filter_recount_price':$generalSettings['settings']['filter_recount_price']&&($generalSettings['settings']['filter_recount_price']=='1')?true:false,'text_no_products':$generalSettings['settings']['text_no_products']?$generalSettings['settings']['text_no_products']:'','count_product_shop':$generalSettings['settings']['count_product_shop']?parseInt($generalSettings['settings']['count_product_shop']):0,'f_multi_logic':$generalSettings['settings']['f_multi_logic']?$generalSettings['settings']['f_multi_logic']:'and','remove_actions':$generalSettings['settings']['remove_actions']&&($generalSettings['settings']['remove_actions']=='1')?true:false,'filtering_by_variations':$generalSettings['settings']['filtering_by_variations']&&($generalSettings['settings']['filtering_by_variations']=='1')?true:false,'form_filter_by_variations':$generalSettings['settings']['form_filter_by_variations']&&($generalSettings['settings']['form_filter_by_variations']=='1')?true:false,'exclude_backorder_variations':$generalSettings['settings']['exclude_backorder_variations']&&($generalSettings['settings']['exclude_backorder_variations']=='1')?true:false,'display_product_variations':$generalSettings['settings']['display_product_variations']&&($generalSettings['settings']['display_product_variations']=='1')?true:false,'all_products_filtering':$generalSettings['settings']['all_products_filtering']&&($generalSettings['settings']['all_products_filtering']=='1')?true:false,'do_not_use_shortcut':$generalSettings['settings']['do_not_use_shortcut']&&($generalSettings['settings']['do_not_use_shortcut']=='1')?true:false,'use_category_filtration':$generalSettings['settings']['use_category_filtration']?$generalSettings['settings']['use_category_filtration']:1,'product_list_selector':$generalSettings['settings']['product_list_selector']?$generalSettings['settings']['product_list_selector']:'','product_container_selector':$generalSettings['settings']['product_container_selector']?$generalSettings['settings']['product_container_selector']:'','auto_update_filter':Number($generalSettings['settings']['auto_update_filter']),'redirect_only_click':Number($generalSettings['settings']['redirect_only_click']),'display_status_private':$generalSettings['settings']['display_status_private']&&($generalSettings['settings']['display_status_private']=='1')?true:false,'open_one_by_one':$generalSettings['settings']['open_one_by_one']?$generalSettings['settings']['open_one_by_one']:'','obo_only_children':$generalSettings['settings']['obo_only_children']?$generalSettings['settings']['obo_only_children']:'',};var $withPerPage=$filterWrapper.find('select.wpfPerPageDD'),perPageCount=$withPerPage.length?$withPerPage.find('option:selected'):'';if(perPageCount.length){$filterSettings['count_product_shop']=perPageCount.val();}
$filterSettings['sort_by_title']=($generalSettings['settings']['sort_by_title']!=undefined&&$generalSettings['settings']['sort_by_title']=='1'?true:false);if(typeof $defQuery!=='undefined'&&$defQuery.length)$filterSettings['default_query']=JSON.parse($defQuery);var productContainerSelector=_thisObj.fixSelector($filterSettings['product_container_selector'],''),productContainerElem=(productContainerSelector!=='')?jQuery(productContainerSelector):jQuery(document);$queryVars=JSON.parse($queryVars);var shortcode=jQuery('span[data-shortcode-attribute]',productContainerElem),$shortcodeAttr={};if(shortcode.length){$shortcodeAttr=shortcode.data('shortcode-attribute');if($shortcodeAttr['limit']>0){$queryVars['posts_per_page']=$shortcodeAttr['limit'];}
$queryVars['wc_loop_type']='shortcode';$queryVars['paginate_type']='shortcode';$queryVars['paginate_base']='product-page';}else{$queryVars['wc_loop_type']='loop';}
var $wppp=jQuery('.wppp-select').first();if($wppp.length){$queryVars['posts_per_page']=$wppp.val();}
$queryVars=JSON.stringify($queryVars);$shortcodeAttr=JSON.stringify($shortcodeAttr);if(clearAll){var newUrl=getCurrentUrlPartsWpf();if(newUrl.search.length&&newUrl.search.indexOf('wpf_'))clearAll=false;}
if($filterSettings['count_product_shop']>0&&!clearAll){_thisObj.QStringWork('wpf_count',$filterSettings['count_product_shop'],noWooPage,$filterWrapper,'change');}
if($filterSettings['sort_by_title']){_thisObj.QStringWork('wpf_order','title',noWooPage,$filterWrapper,'change');}
if($filterSettings['filtering_by_variations']&&!clearAll){_thisObj.QStringWork('wpf_fbv',1,noWooPage,$filterWrapper,'change');}
if($filterSettings['exclude_backorder_variations']&&!clearAll){_thisObj.QStringWork('wpf_ebv',1,noWooPage,$filterWrapper,'change');}
if($filterSettings['display_product_variations']&&!clearAll){_thisObj.QStringWork('wpf_dpv',1,noWooPage,$filterWrapper,'change');}
if($filterSettings['all_products_filtering']&&!clearAll){_thisObj.QStringWork('all_products_filtering','1',noWooPage,$filterWrapper,'change');}
if($filtersDataBackend.length===0){_thisObj.QStringWork('all_products_filtering','',noWooPage,$filterWrapper,'remove');}
if($filterSettings['f_multi_logic']!=='and'&&!clearAll){_thisObj.QStringWork('wpf_filter_tax_block_logic',$filterSettings['f_multi_logic'],noWooPage,$filterWrapper,'change');}
if($filtersDataBackend.length===0){_thisObj.QStringWork('wpf_filter_tax_block_logic','',noWooPage,$filterWrapper,'remove');}
_thisObj.QStringWork($queryVarsSettings['paginate_base'],'',noWooPage,$filterWrapper,'remove');_thisObj.QStringWork('product-page','',noWooPage,$filterWrapper,'remove');_thisObj.QStringWork('shopPage','',noWooPage,$filterWrapper,'remove');var curUrl=getCurrentUrlPartsWpf();if(curUrl.search.length){var $pages=curUrl.search.match(/query-\d+-page/i);if($pages!=null&&$pages.length)_thisObj.QStringWork($pages[0],'',noWooPage,$filterWrapper,'remove');}
var $woocommerceSettings={};if(jQuery('.wpfFilterWrapper[data-filter-type="wpfSortBy"]').length==0){var $wooCommerceSort=jQuery('.woocommerce-ordering select');if($wooCommerceSort.length>0){$woocommerceSettings['woocommercefSortBy']=$wooCommerceSort.eq(0).val();}}
if(onlyRecalcFilter){var requestData=_thisObj.getAjaxRequestData($filtersDataBackend,$queryVars,$filterSettings,$generalSettings,$shortcodeAttr,$woocommerceSettings);_thisObj.ajaxOnlyRecount(requestData,$filterWrapper.attr('id'));return;}
var redirect=(typeof $filterWrapper.data('redirect-page-url')!=='undefined');if(history.pushState&&app.wpfNewUrl!=window.wpfOldUrl&&!redirect&&!redirectTerm){var newUrl=app.wpfNewUrl.indexOf('pr_search_')>0?app.wpfNewUrl.replace('+','%2b'):app.wpfNewUrl;history.pushState({state:1,rand:Math.random(),wpf:true},'',newUrl);app.wpfOldUrl=app.wpfNewUrl;_thisObj.changeSlugByUrl();}
if(redirectTerm||(redirect&&_thisObj.filterClick)){let queryString=app.wpfNewUrl.split('?')[1]||'';if(queryString!==''){if(_thisObj.isStatistics){var requestData=_thisObj.getAjaxRequestData($filtersDataBackend,$queryVars,$filterSettings,$generalSettings,$shortcodeAttr,$woocommerceSettings);wpfDoActionsAfterLoad(_thisObj.filteringId,-1,requestData);}
var redLink=(redirectTerm?redirectLink:$filterWrapper.data('redirect-page-url'));jQuery(location).attr('href',redLink+(redLink.indexOf('?')==-1?'?':'&')+queryString+'&redirect');}}else{if($generalSettings&&$generalSettings.settings.enable_ajax!=='1'){if(_thisObj.isStatistics){var requestData=_thisObj.getAjaxRequestData($filtersDataBackend,$queryVars,$filterSettings,$generalSettings,$shortcodeAttr,$woocommerceSettings);wpfDoActionsAfterLoad(_thisObj.filteringId,-1,requestData);}
if(_thisObj.isSafari||navigator.userAgent.match(/firefox|fxios/i))location.reload(true);else location.reload();return;}
_thisObj.currentFilterBackend=$filtersDataBackend;var customEvent=document.createEvent('Event');customEvent.initEvent('wpfAjaxStart',false,true);document.dispatchEvent(customEvent);_thisObj.currentLoadId=$filterWrapper.attr('id');if($filterWrapper.closest('.wpfFilterForWtbp').length){var wtbpTableId=$filterWrapper.closest('.wtbpTableWrapper').attr('data-table-id'),wtbpTable=wtbpTableId?window.woobewoo.WooTablepress.getTableInstanceById(wtbpTableId):false;if(wtbpTable&&wtbpTable.isSSP){wtbpTable.ajax.reload();return;}}
_thisObj.sendFiltersOptionsByAjax(_thisObj.currentFilterBackend,$queryVars,$filterSettings,$generalSettings,$woocommerceSettings,$shortcodeAttr);if(_thisObj.isSynchro){jQuery('.wpfMainWrapper:not(#'+_thisObj.currentLoadId+')').each(function(){var $synchroWrapper=jQuery(this);$generalSettings=_thisObj.getFilterMainSettings($synchroWrapper);var requestData=_thisObj.getAjaxRequestData($filtersDataBackend,$queryVars,$filterSettings,$generalSettings,$shortcodeAttr,$woocommerceSettings);_thisObj.ajaxOnlyRecount(requestData,$synchroWrapper.attr('id'));});}}}});WpfFrontendPage.prototype.getAjaxRequestData=(function($filtersDataBackend,$queryVars,$filterSettings,$generalSettings,$shortcodeAttr,$woocommerceSettings){$generalSettings=$generalSettings?$generalSettings['settings']['filters']['order']:[];var typeSettings=typeof $generalSettings;if(typeSettings=='undefined')$generalSettings='[]';else if(typeSettings!='string')$generalSettings=JSON.stringify($generalSettings);return{mod:'woofilters',action:'filtersFrontend',filtersDataBackend:JSON.stringify($filtersDataBackend),queryvars:$queryVars,filterSettings:JSON.stringify($filterSettings),generalSettings:$generalSettings,shortcodeAttr:$shortcodeAttr,woocommerceSettings:JSON.stringify($woocommerceSettings),currenturl:window.location.href,};});WpfFrontendPage.prototype.createOverlay=(function(filterId){var selector='#wpfOverlay';if(typeof filterId!='undefined')selector+='[data-filter-for="'+filterId+'"]';jQuery(selector).css({'display':'block'});});WpfFrontendPage.prototype.removeOverlay=(function(){jQuery('#wpfOverlay').css({'display':'none'});jQuery('#wpfOverlay[data-filter-for]').css({'display':'none'});});WpfFrontendPage.prototype.syncronizeFilters=(function($filterWrapper){var _thisObj=this.$obj,filterId=$filterWrapper.attr('id');$filterWrapper.find('.wpfFilterWrapper').each(function(){var $filter=jQuery(this),filterType=$filter.attr('data-filter-type'),filterDisplay=$filter.attr('data-display-type'),filterSlug=$filter.attr('data-slug'),filterTaxonomy=$filter.attr('data-taxonomy'),selector='.wpfMainWrapper:not(#'+filterId+') .wpfFilterWrapper[data-filter-type="'+filterType+'"]';if(filterDisplay)selector+='[data-display-type="'+filterDisplay+'"]';if(filterSlug)selector+='[data-slug="'+filterSlug+'"]';if(filterTaxonomy)selector+='[data-taxonomy="'+filterTaxonomy+'"]';var $synchroFilters=jQuery(selector);if($synchroFilters.length){$synchroFilters.find('input').prop('checked',false).trigger('wpf-synchro');$filter.find('input:checked').each(function(){var $li=jQuery(this).closest('[data-term-id]');if($li){var $synchroInput=$synchroFilters.find('[data-term-id="'+$li.attr('data-term-id')+'"] input');if($synchroInput.length==0&&filterDisplay=='colors')$synchroInput=$synchroFilters.find('input[data-term-id="'+$li.attr('data-term-id')+'"]');if($synchroInput.length)$synchroInput.prop('checked',true).trigger('wpf-synchro');}});if(filterType==='wpfPrice'){var min=$filter.find('#wpfMinPrice').val(),max=$filter.find('#wpfMaxPrice').val();$synchroFilters.each(function(){var $slider=jQuery(this);$slider.find('#wpfMinPrice').val(min);$slider.find('#wpfMaxPrice').val(max);});}else if(filterDisplay=='mul_dropdown'){$synchroFilters.find('select').val($filter.find('select').val());$synchroFilters.find('select.jqmsLoaded').multiselect('reload');}else if(filterDisplay=='text'){$synchroFilters.find('input').val($filter.find('input').val());}else{var value=$filter.find('select').val();$synchroFilters.find('select').each(function(){if(jQuery(this).find('option[value="'+value+'"]').length)jQuery(this).val(value);});}
if(typeof(_thisObj.syncronizeFiltersPro)=='function'){_thisObj.syncronizeFiltersPro($filter,$synchroFilters);}
if($filter.hasClass('wpfNotActive'))$synchroFilters.addClass('wpfNotActive');else $synchroFilters.removeClass('wpfNotActive');}});});WpfFrontendPage.prototype.clearFilters=(function(filter,clearAll){var _thisObj=this.$obj,noWooPage=_thisObj.noWoo,clearAll=typeof clearAll=='undefined'?false:true;(filter?filter:jQuery('.wpfFilterWrapper')).each(function(){var $filter=jQuery(this),$filterWrapper=$filter.closest('.wpfMainWrapper'),filterAttribute=$filter.attr('data-get-attribute'),filterType=$filter.attr('data-display-type'),defValue=$filter.attr('data-filter-default');if(typeof defValue==='undefined'){defValue='';}
filterAttribute=filterAttribute.split(",");var count=filterAttribute.length;for(var i=0;i<count;i++){_thisObj.QStringWork(filterAttribute[i],'',noWooPage,$filterWrapper,'remove');}
if($filter.hasClass('wpfHidden')){$filter.removeClass('wpfNotActive');}else{$filter.find('input').prop('checked',false);if(filterType=='mul_dropdown'){$filter.find('select').val('');$filter.find('select.jqmsLoaded').multiselect('reload');}else if(filterType=='text'){$filter.find('input').val('');}else{$filter.find("select").val($filter.find("select option:first").val());}
if(defValue.length&&clearAll){if(filterType=='dropdown'){$filter.find('select').val($filter.find('select option[data-term-slug="'+defValue+'"]').val());}else{$filter.find('li[data-term-slug="'+defValue+'"] input').prop('checked',true);}
$filter.removeClass('wpfNotActive');}else{$filter.addClass('wpfNotActive');}}
if($filter.attr('data-filter-type')==='wpfPrice'){var min=$filter.find('#wpfMinPrice').attr('min'),max=$filter.find('#wpfMaxPrice').attr('max');$filter.find('#wpfMinPrice').val(min);$filter.find('#wpfMaxPrice').val(max);jQuery("#wpfSliderRange").slider("option","values",[min,max]);}
if(typeof(_thisObj.clearFiltersPro)=='function'){_thisObj.clearFiltersPro($filter);}
if(typeof(_thisObj.eventChangeFilterPro)=='function'){_thisObj.eventChangeFilterPro($filter);}
if(clearAll){_thisObj.QStringWork('wpf_order','',noWooPage,$filterWrapper,'remove');_thisObj.QStringWork('wpf_count','',noWooPage,$filterWrapper,'remove');_thisObj.QStringWork('all_products_filtering','',noWooPage,$filterWrapper,'remove');_thisObj.QStringWork('wpf_oistock','',noWooPage,$filterWrapper,'remove');_thisObj.QStringWork('wpf_fbv','',noWooPage,$filterWrapper,'remove');_thisObj.QStringWork('wpf_dpv','',noWooPage,$filterWrapper,'remove');_thisObj.QStringWork('wpf_ebv','',noWooPage,$filterWrapper,'remove');}});_thisObj.markCheckboxSelected(filter);});WpfFrontendPage.prototype.getFilterMainSettings=(function($selector){var settingsStr=$selector.attr('data-filter-settings');try{var settings=JSON.parse(settingsStr);}catch(e){var settings=false;}
if(settings===false){settingsStr=settingsStr.replace('}]"','}]').replace('"[{','[{');try{settings=JSON.parse(settingsStr);}catch(e){settings=false;}}
return settings;});WpfFrontendPage.prototype.getFilterParam=(function(paramSlug,mainWrapper,filterWrapper){var paramValue=null,_thisObj=this.$obj,mainSettings=_thisObj.getFilterMainSettings(mainWrapper),orderKey=filterWrapper.attr('data-order-key');if(mainSettings.settings.filters.order&&typeof orderKey!==undefined){var filtersOderList=JSON.parse(mainSettings.settings.filters.order);if(typeof filtersOderList[orderKey]!==undefined){var filterParamList=filtersOderList[orderKey].settings;if(typeof filterParamList[paramSlug]!==undefined){paramValue=filterParamList[paramSlug];}}}
return paramValue;});WpfFrontendPage.prototype.checkNoWooPage=(function(){var noWooPage=false;if(jQuery('.wpfMainWrapper').first().attr('data-nowoo')){noWooPage=true;}
return noWooPage;});WpfFrontendPage.prototype.changeLmpButton=(function(){var lmpBtn=jQuery('.br_lmp_button_settings .lmp_button');if(lmpBtn.length){var parentStyle=lmpBtn.parent().attr('style').replace(' ','');if(parentStyle.indexOf('display:none')>-1){return;}
var url=lmpBtn.attr('href').split('?')[0];url+=window.location.search;url=url.indexOf('/page/2')>-1?url:url.replace(/\/page\/[0-9]{1,}/ig,'/page/2');lmpBtn.attr('href',url);setTimeout(function(){jQuery('.woocommerce-pagination').addClass('wpfHidden');},1000);}});WpfFrontendPage.prototype.changeUrlByFilterParams=(function($filtersDataFrontend){var _thisObj=this.$obj,noWooPage=_thisObj.noWoo;if(typeof $filtersDataFrontend!=='undefined'&&$filtersDataFrontend.length>0){var count=$filtersDataFrontend.length,filterWrapper=jQuery('.wpfMainWrapper'),priceFlag=true;for(var i=0;i<count;i++){switch($filtersDataFrontend[i]['id']){case'wpfPrice':case'wpfPriceRange':if(priceFlag){var minPrice=$filtersDataFrontend[i]['settings']['wpf_min_price'],maxPrice=$filtersDataFrontend[i]['settings']['wpf_max_price'],tax=$filtersDataFrontend[i]['settings']['tax'];if(typeof minPrice!=='undefined'&&minPrice.length>0){_thisObj.QStringWork('wpf_min_price',minPrice,noWooPage,filterWrapper,'change');}else{_thisObj.QStringWork('wpf_min_price','',noWooPage,filterWrapper,'remove');}
if(typeof maxPrice!=='undefined'&&maxPrice.length>0){_thisObj.QStringWork('wpf_max_price',maxPrice,noWooPage,filterWrapper,'change');}else{_thisObj.QStringWork('wpf_max_price','',noWooPage,filterWrapper,'remove');}
if(typeof tax!=='undefined'){_thisObj.QStringWork('tax',tax,noWooPage,filterWrapper,'change');}else{_thisObj.QStringWork('tax','',noWooPage,filterWrapper,'remove');}
priceFlag=false;}
break;case'wpfSortBy':var orderby=$filtersDataFrontend[i]['settings']['orderby'],oistock=$filtersDataFrontend[i]['settings']['oistock'];if(typeof orderby!=='undefined'&&orderby.length>0){_thisObj.QStringWork('orderby',orderby,noWooPage,filterWrapper,'change');}else{_thisObj.QStringWork('orderby','',noWooPage,filterWrapper,'remove');}
if(typeof oistock!=='undefined'&&oistock==1){_thisObj.QStringWork('wpf_oistock',1,noWooPage,filterWrapper,'change');}else{_thisObj.QStringWork('wpf_oistock','',noWooPage,filterWrapper,'remove');}
break;case'wpfCategory':case'wpfPerfectBrand':var product_cat=$filtersDataFrontend[i]['settings']['settings'],name=$filtersDataFrontend[i]['name'],delim=$filtersDataFrontend[i]['delim'];product_cat=product_cat.join(delim?delim:'|');if(typeof product_cat!=='undefined'&&product_cat.length>0){_thisObj.QStringWork(name,product_cat,noWooPage,filterWrapper,'change');}else{_thisObj.QStringWork(name,'',noWooPage,filterWrapper,'remove');}
break;case'wpfTags':var product_tag=$filtersDataFrontend[i]['settings']['settings'],name=$filtersDataFrontend[i]['name'],delim=$filtersDataFrontend[i]['delim'];product_tag=product_tag.join(delim?delim:'|');if(typeof product_tag!=='undefined'&&product_tag.length>0){_thisObj.QStringWork(name,product_tag,noWooPage,filterWrapper,'change');}else{_thisObj.QStringWork(name,'',noWooPage,filterWrapper,'remove');}
break;case'wpfAttribute':var product_taxonomy=$filtersDataFrontend[i]['settings']['taxonomy'],product_attr=$filtersDataFrontend[i]['settings']['settings'],delim=$filtersDataFrontend[i]['delim'];product_attr=product_attr.join(delim?delim:'|');if(typeof product_attr!=='undefined'&&product_attr.length>0){_thisObj.QStringWork(product_taxonomy,product_attr,noWooPage,filterWrapper,'change');}else{_thisObj.QStringWork(product_taxonomy,'',noWooPage,filterWrapper,'remove');}
if(typeof $filtersDataFrontend[i]['idBlock']!=='undefined'&&typeof $filtersDataFrontend[i]['idFilter']!=='undefined'){_thisObj.QStringWork('group'+product_taxonomy.replace('filter','')+$filtersDataFrontend[i]['idBlock'],$filtersDataFrontend[i]['idFilter'],noWooPage,filterWrapper,'change');}
break;case'wpfAuthor':var authorVal=$filtersDataFrontend[i]['settings']['settings'],name=$filtersDataFrontend[i]['name'],delim=$filtersDataFrontend[i]['delim'];authorVal=authorVal.join(delim?delim:'|');if(typeof authorVal!=='undefined'&&authorVal.length>0){_thisObj.QStringWork('pr_author',authorVal,noWooPage,filterWrapper,'change');}else{_thisObj.QStringWork('pr_author','',noWooPage,filterWrapper,'remove');}
break;case'wpfFeatured':var featureVal=$filtersDataFrontend[i]['settings']['settings'];if(typeof featureVal!=='undefined'&&featureVal.length>0){_thisObj.QStringWork('pr_featured',featureVal,noWooPage,filterWrapper,'change');}else{_thisObj.QStringWork('pr_featured','',noWooPage,filterWrapper,'remove');}
break;case'wpfOnSale':var onSaleVal=$filtersDataFrontend[i]['settings']['settings'];if(typeof onSaleVal!=='undefined'&&onSaleVal.length>0){_thisObj.QStringWork('pr_onsale',onSaleVal,noWooPage,filterWrapper,'change');}else{_thisObj.QStringWork('pr_onsale','',noWooPage,filterWrapper,'remove');}
break;case'wpfInStock':var pr_stock=$filtersDataFrontend[i]['settings']['settings'];pr_stock=pr_stock.join(delim?delim:'|');if(typeof pr_stock!=='undefined'&&pr_stock.length>0){_thisObj.QStringWork('pr_stock',pr_stock,noWooPage,filterWrapper,'change');}else{_thisObj.QStringWork('pr_stock','',noWooPage,filterWrapper,'remove');}
break;case'wpfRating':var ratingVal=$filtersDataFrontend[i]['settings']['settings'];if(typeof ratingVal!=='undefined'&&checkArray(ratingVal)&&ratingVal.length>0){_thisObj.QStringWork('pr_rating',ratingVal,noWooPage,filterWrapper,'change');}else{_thisObj.QStringWork('pr_rating','',noWooPage,filterWrapper,'remove');}
break;default:if(typeof(_thisObj.changeUrlByFilterParamsPro)=='function'){_thisObj.changeUrlByFilterParamsPro($filtersDataFrontend[i],noWooPage,filterWrapper);}
break;}}}else{return false;}});WpfFrontendPage.prototype.changeSlugByUrl=(function(){jQuery('.wpfSlugWrapper .wpfSlug').remove();var _thisObj=this.$obj,noWooPage=_thisObj.noWoo;if(noWooPage){if(jQuery('.wpfMainWrapper').first().attr('data-hide-url')){var searchParams=jQuery.toQueryParams(jQuery('.wpfMainWrapper').first().attr('data-hide-url'));}}else{var searchParams=jQuery.toQueryParams(window.location.search);}
for(var key in searchParams){if(key==='wpf_min_price'){key='wpf_min_price,wpf_max_price,tax';}
if(jQuery('.wpfFilterWrapper[data-get-attribute="'+key+'"]').length>0){var elem=jQuery('.wpfFilterWrapper[data-get-attribute="'+key+'"]').first(),$slug=elem.attr('data-slug'),$label=elem.attr('data-label'),$title=elem.attr('data-title'),$getAttr=elem.attr('data-get-attribute'),$filterType=elem.attr('data-filter-type');if(typeof $title!='undefined')$label=$title;else if(typeof $label=='undefined')$label=$slug;var html='';if(jQuery('.wpfSlugWrapper').length>0){if(!jQuery('.wpfSlugWrapper .wpfSlug[data-slug="'+$slug+'"]').length>0){html+='<div class="wpfSlug" data-slug="'+$slug+'" data-get-attribute="'+$getAttr+'" data-filter-type="'+$filterType+'"><div class="wpfSlugTitle">'+$label+'</div><div class="wpfSlugDelete">x</div></div>';jQuery('.wpfSlugWrapper').append(html);}}else{if(!jQuery('.wpfSlugWrapper .wpfSlug[data-slug="'+$slug+'"]').length>0){html+='<div class="wpfSlugWrapper">';html+='<div class="wpfSlug" data-slug="'+$slug+'" data-get-attribute="'+$getAttr+'" data-filter-type="'+$filterType+'"><div class="wpfSlugTitle">'+$label+'</div><div class="wpfSlugDelete">x</div></div>';html+='</div>';jQuery('.storefront-sorting').append(html);}}}}});WpfFrontendPage.prototype.sendFiltersOptionsByAjax=(function($filtersDataBackend,$queryVars,$filterSettings,$generalSettings,$woocommerceSettings,$shortcodeAttr){var _thisObj=this.$obj,$wrapperSettings=[];if(window.wpfAdminPage){return false;}
_thisObj.currentAjaxJSLoaded=false;_thisObj.currentProductBlock=false;if(_thisObj.filterLoadTypes[_thisObj.currentLoadId]&&_thisObj.filterLoadTypes[_thisObj.currentLoadId]=='reload'){location.reload();return;}
var ajax_leave_products=$generalSettings&&$generalSettings['settings']&&$generalSettings['settings']['ajax_leave_products']=='1'
if(typeof $generalSettings!=='undefined'){$wrapperSettings=$generalSettings['settings'];}
var customListSelector=$filterSettings['product_list_selector'],productListSelector=_thisObj.fixSelector(customListSelector,_thisObj.defaultProductSelector),productContainerSelector=_thisObj.fixSelector($filterSettings['product_container_selector'],''),forceThemeTemplates=($wrapperSettings['force_theme_templates']==1);var productContainerElem=(productContainerSelector!=='')?jQuery(productContainerSelector):jQuery(document);if(productContainerElem.length===0){location.reload();return;}
var productListElem=jQuery(productListSelector,productContainerElem);if(productListElem.hasClass('wpfNoWooPage')||productListElem.closest('.wpfNoWooPage').length){forceThemeTemplates=false;}
if(productListElem.length&&(_thisObj.filterClick)){if(_thisObj.enableFiltersLoaderPro&&ajax_leave_products){_thisObj.enableFiltersLoaderPro(_thisObj.currentLoadId,productListElem);}else{_thisObj.enableFiltersLoader(_thisObj.currentLoadId,productListElem);}}
var onlyRecount=false;if($filterSettings===undefined){$filterSettings=[];}else{if(!_thisObj.filterClick&&$filterSettings.auto_update_filter&&!$filterSettings.redirect_only_click){onlyRecount=true;}}
var requestData=_thisObj.getAjaxRequestData($filtersDataBackend,$queryVars,$filterSettings,$generalSettings,$shortcodeAttr,$woocommerceSettings);if(onlyRecount){_thisObj.ajaxOnlyRecount(requestData,_thisObj.currentLoadId,$wrapperSettings);return;}else if(forceThemeTemplates||_thisObj.filterLoadTypes[_thisObj.currentLoadId]=='force'){_thisObj.ajaxForceThemeTemplates(productContainerSelector,productListSelector,requestData,$wrapperSettings);return;}
if(window.InfiniteScroll&&window.InfiniteScroll.prototype){if(_thisObj.filterClick&&jQuery('body').hasClass('theme-flatsome')){location.reload();return;}}
_thisObj.filterLoadTypes[_thisObj.currentLoadId]='ajax';jQuery.sendFormWpf({data:requestData,onSuccess:function(res){if(!res.error){if('fid'in res.data&&toeInArray(res.data['fid'],_thisObj.lastFids)==-1){return false;}
if('jscript'in res.data){_thisObj.setAjaxJScript(res.data['jscript']);}
if(_thisObj.filterClick){if(customListSelector!==''&&productListElem.length){var loopContainer=productListElem;loopContainer.html(res.data['productHtml']);}else{var catSelector=wpfGetSelector(res.data['categoryHtml'],true,_thisObj.defaultProductSelector,1,false,productContainerElem),loopSelector=wpfGetSelector(res.data['loopStartHtml'],true,_thisObj.defaultProductSelector,3,false,productContainerElem),loopContainer=jQuery(loopSelector,productContainerElem);if(!loopContainer.length){loopSelector=wpfGetSelector(res.data['loopStartHtml'],true,_thisObj.defaultProductSelector,3,true,productContainerElem);loopContainer=jQuery(loopSelector,productContainerElem);}
loopContainer.prev('.brand-description').remove();if(typeof res.data['beforeProductHtml']!=='undefined'){loopContainer.before('<div class="brand-description">'+res.data['beforeProductHtml']+'</div>');}
if(typeof jQuery('.product-categories-wrapper',productContainerElem)!=='undefined'&&jQuery('.product-categories-wrapper > ul.products',productContainerElem).length>0){if(res.data['categoryHtml'].length){jQuery('.product-categories-wrapper > ul.products',productContainerElem).html(res.data['categoryHtml']);}
jQuery(_thisObj.defaultProductSelector,productContainerElem).eq(1).html(res.data['productHtml']);}else if(jQuery('.elementor-widget-container ul.products',productContainerElem).length>0){jQuery('.elementor-widget-container ul.products',productContainerElem).each(function(){if(!jQuery(this).find('.product-category').length){jQuery(this).html(res.data['categoryHtml']+res.data['productHtml']);}});}else if(jQuery('.woocommerce > .products[data-filterargs][data-innerargs]',productContainerElem).length>0){jQuery('.woocommerce > .products[data-filterargs][data-innerargs]',productContainerElem).html(res.data['categoryHtml']+res.data['productHtml']);}else{if(!loopContainer.length){if(!jQuery('.wpfMainWrapper',productContainerElem).attr('data-nowoo')!==typeof undefined&&!jQuery('.wpfMainWrapper',productContainerElem).attr('data-nowoo')!==false)
_thisObj.ajaxForceThemeTemplates(productContainerSelector,productListSelector,requestData,$wrapperSettings);else{location.reload(true);}
_thisObj.afterAjaxFiltering($wrapperSettings);return false;}
loopContainer.each(function(){jQuery(this).html(res.data['categoryHtml']);jQuery(this).append(res.data['productHtml']);});}}
var countSelector=wpfGetSelector(res.data['resultCountHtml'],true,'.woocommerce-result-count',1,false,productContainerElem),wooCount=jQuery(countSelector,productContainerElem);if(wooCount.length>0){wooCount.replaceWith(res.data['resultCountHtml']);}
var isLeerPagination=res.data['paginationHtml']=='',paginationSelector=wpfGetSelector(res.data[isLeerPagination?'paginationLeerHtml':'paginationHtml'],false,'.woocommerce-pagination',1,false,productContainerElem),wooPagination=jQuery(paginationSelector,productContainerElem),newPagination=res.data['paginationHtml'];if(wooPagination.length>0){if(typeof _thisObj.paginationClasses=='undefined'){_thisObj.paginationClasses=wooPagination.attr('class');}
if(isLeerPagination){wooPagination.css({'display':'none'});wooPagination.empty();}else{wooPagination.replaceWith(newPagination);}}else if(!isLeerPagination){var afterLoop=jQuery('.after-shop-loop',productContainerElem);if(afterLoop.length>0){afterLoop.prepend(newPagination);}else{wooCount=jQuery('.storefront-sorting '+countSelector,productContainerElem);if(wooCount.length>0){wooCount.after(newPagination);}else{let shortcodeData=productContainerElem.find('span[data-shortcode-attribute]'),isPaginate=shortcodeData.length?shortcodeData.data('shortcode-attribute').paginate:true;if(typeof isPaginate==='undefined'||isPaginate){loopContainer.eq(0).after(newPagination);}}}}
if(typeof _thisObj.paginationClasses!='undefined'){jQuery(paginationSelector,productContainerElem).attr('class',_thisObj.paginationClasses);}
_thisObj.currentProductBlock=loopContainer.selector;if(!_thisObj.currentProductBlock){loopContainer.addClass('wpfCurrentProductBlock');_thisObj.currentProductBlock='.wpfCurrentProductBlock';}}
_thisObj.afterAjaxFiltering($wrapperSettings);jQuery('.wpfLoaderLayout').hide();}}});});WpfFrontendPage.prototype.ajaxForceThemeTemplates=(function(productContainerSelector,productListSelector,requestData,$wrapperSettings){var _thisObj=this.$obj,curUrl=window.location.href,isContainer=(productContainerSelector!='');_thisObj.filterLoadTypes[_thisObj.currentLoadId]='force';if($wrapperSettings.recalculate_filters!=='1'){_thisObj.ajaxOnlyRecount(requestData);}
jQuery.ajax({type:"GET",url:curUrl+(curUrl.indexOf('?')==-1?'?':'&')+'wpf_skip=1&wpf_fid='+_thisObj.filteringId,cache:false,dataType:'html',success:function(data){var block='',foundContainer=false,noProducts=false,$loadedData=jQuery(data),$loadedJS=$loadedData.find('.wpfExistsTermsJS');if($loadedJS.length){if(toeInArray($loadedJS.eq(0).attr('data-fid'),_thisObj.lastFids)==-1){return false;}}
if(isContainer){block=jQuery(data).find(productContainerSelector);}
if(block.length){foundContainer=true;}else{block=jQuery(data).find(productListSelector);}
var pageBlock=jQuery(isContainer&&(foundContainer||block.length==0)?productContainerSelector:productListSelector);if(block.length==0||pageBlock.length==0){if($wrapperSettings.recalculate_filters==='1'){var existsTermsJS=jQuery(data).find('.wpfExistsTermsJS').html();_thisObj.setAjaxJScript(existsTermsJS);}
if($wrapperSettings.no_redirect_by_no_products==='1'&&pageBlock.length>0){block=jQuery('<div><div class="wpfNoProducts">'+$wrapperSettings.text_no_products+'</div></div>');noProducts=true;}else{_thisObj.filterLoadTypes[_thisObj.currentLoadId]='reload';location.reload();return;}}
_thisObj.currentProductBlock=(typeof pageBlock.selector!=='undefined')?pageBlock.selector:productListSelector;block.each(function(index,value){var blockWhere=pageBlock.eq(index),blockWhat=jQuery(value);if(!foundContainer&&!noProducts){blockWhere=blockWhere.parent();blockWhat=blockWhat.parent();}
blockWhat.find('input[name="wpf_skip"]').remove();blockWhere.html(blockWhat.html().replace(/wpf_skip=1/g,'').replace(/wpf_fid=[0-9]*/g,'').replace(/&amp;&amp;/g,'&amp;'));var paginationPageBlock=jQuery(blockWhere).find('.woocommerce-pagination');if(!paginationPageBlock.length){var paginationPage=jQuery('.woocommerce-pagination');var paginationResponse=jQuery(data).find('.woocommerce-pagination');if(paginationResponse.length){paginationResponse=paginationResponse.eq(0).html().replace(/wpf_skip=1/g,'').replace(/wpf_fid=[0-9]*/g,'').replace(/&amp;&amp;/g,'&amp;');if(paginationPage.length){paginationPage.html(paginationResponse);}else{jQuery(blockWhere).parent().after('<nav class="woocommerce-pagination">'+paginationResponse+'</nav>');}}else if(paginationPage.length){paginationPage.remove();}}
var resultCountBlock=jQuery(blockWhere).find('.woocommerce-result-count');var resultCountResponse=jQuery(data).find('.woocommerce-result-count');if(!resultCountBlock.length&&resultCountResponse.length){var resultCount=jQuery('.woocommerce-result-count');if(resultCount.length){resultCount.replaceWith(resultCountResponse);}}});var $styleObj=jQuery('style[id^="et-builder-module-design-"]');if($styleObj.length==1){var $styleObjLoaded=$loadedData.find('style[id^="et-builder-module-design-"]');if($styleObjLoaded.length==0)$styleObjLoaded=$loadedData.filter('style[id^="et-builder-module-design-"]');if($styleObjLoaded.length==1)$styleObj.html($styleObjLoaded.html());}
_thisObj.afterAjaxFiltering($wrapperSettings);_thisObj.runReadyList();if($wrapperSettings.recalculate_filters==='1'){var existsTermsJS=jQuery(data).find('.wpfExistsTermsJS').html();_thisObj.setAjaxJScript(existsTermsJS);}}});return false;});WpfFrontendPage.prototype.ajaxOnlyRecount=(function(requestData,filterId,$wrapperSettings){var _thisObj=this.$obj;if(!_thisObj.currentAjaxJSLoaded&&requestData){requestData['only_recound']=1;if(typeof filterId!=='undefined'){requestData['synchro_filter_id']=filterId;}
jQuery.sendFormWpf({data:requestData,onSuccess:function(res){if(typeof $wrapperSettings!=='undefined'&&typeof $wrapperSettings.filter_loader_icon_onload_enable!=='undefined'&&Number($wrapperSettings.filter_loader_icon_onload_enable)){hideFilterLoader(jQuery('#'+filterId));}
if(!res.error){if('jscript'in res.data){_thisObj.setAjaxJScript(res.data['jscript'],filterId);}}
_thisObj.removeOverlay();}});}});WpfFrontendPage.prototype.setAjaxJScript=(function(jscript,filterId){var _thisObj=this.$obj,filter=jQuery('#'+(typeof(filterId)=='undefined'?_thisObj.currentLoadId:filterId));if(filter.length&&jscript!=''){var jsBlock=filter.find('.wpfAjaxJSBlock');if(jsBlock.length==0){jQuery('<div class="wpfAjaxJSBlock wpfHidden"></div>').appendTo(filter);}
filter.find('.wpfAjaxJSBlock').html(jscript);}
_thisObj.currentAjaxJSLoaded=true;});WpfFrontendPage.prototype.afterAjaxFiltering=(function($wrapperSettings){var _thisObj=this.$obj;_thisObj.getUrlParamsChangeFiltersValues();_thisObj.disableFiltersLoader();_thisObj.removeOverlay();toggleClear();if(jQuery('body').find('.products').hasClass('oceanwp-row')){var products=jQuery('body').find('.products'),aligns=['center','left','right'];products.find('li:first').addClass('col');for(var i=1;i<=7;i++){if(products.find('li').hasClass('span_1_of_'+i)){products.find('li:first').addClass('span_1_of_'+i);break;}}
for(var j=0;j<aligns.length;j++){if(products.find('li').hasClass('owp-content-'+aligns[j])){products.find('li:first').addClass('owp-content-'+aligns[j]);break;}}}
_thisObj.changeLmpButton();jQuery(document).trigger('yith_wcqv_wcajaxnav_update');if(typeof(_thisObj.scrollToProductsPro)=='function'){_thisObj.scrollToProductsPro($wrapperSettings);}
if(jQuery(_thisObj.defaultProductSelector).closest('.et_pb_shop').length&&jQuery(_thisObj.defaultProductSelector).find('[loading="lazy"]').length==0){heightIdenticalInRow('.et_pb_shop li.product');}
jQuery('.form-wppp-select').each(function(){var $form=jQuery(this);$form.attr('action',jQuery('#'+_thisObj.currentLoadId).attr('data-hide-url'));$form.find('input[type="hidden"]').remove();});var customEvent=document.createEvent('Event');customEvent.initEvent('wpfAjaxSuccess',false,true);document.dispatchEvent(customEvent);});WpfFrontendPage.prototype.runReadyList=(function(){if(window.readyList&&readyList.length){var _thisObj=this.$obj;if(_thisObj.disableScrollJs){jQuery(window).off("yith_infs_start").off("scroll touchstart");if(typeof(jQuery.fn)=='object'&&typeof(jQuery.fn.init_infinitescroll)=='function'){jQuery.fn.init_infinitescroll();}}
jQuery(window.readyList).each(function(i,el){var strFunc=el['a'][0].toString();if(strFunc.indexOf('WpfFrontendPage')==-1){for(var i=0;i<_thisObj.readyFuncs.length;i++){if(strFunc.indexOf(_thisObj.readyFuncs[i])!=-1&&(strFunc.indexOf('.ajaxComplete(')==-1||i==3||i==4)){try{window.originalReadyMethod.apply(el['c'],el['a']);}catch(e){console.log(e);}
break;}}}});}
jQuery(window).trigger("fusion-element-render-fusion_woo_product_grid");var fusionPrInfinite=jQuery(".fusion-products-container-infinite");if(fusionPrInfinite.length&&typeof(fusionPrInfinite.infinitescroll)=='function'){fusionPrInfinite.infinitescroll('unbind');fusionPrInfinite.infinitescroll('bind');}
var $eaPagination=jQuery('.elementor-widget-eicon-woocommerce');if($eaPagination.length&&window.elementorFrontend&&window.elementorFrontend.hooks){window.elementorFrontend.hooks.doAction('frontend/element_ready/eicon-woocommerce.default',$eaPagination,jQuery);}
if(jQuery('.fusion-grid-container-infinite').length==1){jQuery(document).trigger('fusion-element-render-fusion_post_cards');jQuery('.fusion-grid-container-infinite').infinitescroll('unbind');jQuery('.fusion-grid-container-infinite').infinitescroll('bind');}});WpfFrontendPage.prototype.enableFiltersLoader=(function(idWrapper,productListElem){var preview=jQuery('#'+idWrapper+' .wpfPreviewLoader').first().clone().removeClass('wpfHidden');productListElem.html(preview);});WpfFrontendPage.prototype.disableFiltersLoader=(function(){jQuery('.wpfPreviewLoader').first().clone().addClass('wpfHidden');});WpfFrontendPage.prototype.getUrlParamsChangeFiltersValues=(function(){var _thisObj=this.$obj,noWooPage=_thisObj.noWoo;if(noWooPage){var curUrl=jQuery('.wpfMainWrapper').first().attr('data-hide-url');}else{var curUrl=window.location.href;}
if(!curUrl){return;}
var urlParams=_thisObj.findGetParameter(curUrl);jQuery('.wpfFilterWrapper').each(function(){var $filter=jQuery(this),filterType=$filter.attr('data-filter-type'),settings=_thisObj.getFilterMainSettings($filter.closest('.wpfMainWrapper'));switch(filterType){case'wpfAttribute':if(typeof(_thisObj.eventChangeFilterPro)=='function'){_thisObj.eventChangeFilterPro($filter,settings);}
break;case'wpfPrice':var rate=$filter.data('rate');urlParams=_thisObj.getConvertedPrices(urlParams,rate);var minPrice=urlParams.wpf_min_price?urlParams.wpf_min_price:$filter.attr('data-minvalue'),maxPrice=urlParams.wpf_max_price?urlParams.wpf_max_price:$filter.attr('data-maxvalue'),skin='default';if(minPrice){$filter.find('#wpfMinPrice').val(minPrice);}
if(maxPrice){$filter.find('#wpfMaxPrice').val(maxPrice);}
if(settings){skin=$filter.attr('data-price-skin');}
if(skin==='default'){var sliderWrapper=$filter.find("#wpfSliderRange");}else{var sliderCurBefore=($filter.attr('data-slider-currency-before')!=undefined)?$filter.attr('data-slider-currency-before'):'';var sliderCurAfter=($filter.attr('data-slider-currency-after')!=undefined)?$filter.attr('data-slider-currency-after'):'';var sliderWrapper=$filter.find('.ion-range-slider').data('ionRangeSlider');$filter.addClass('wpfNotActiveSlider');if(sliderCurBefore||sliderCurAfter){setTimeout(function()
{$filter.find('span.irs-min:first').html(sliderCurBefore+sliderWrapper['result'].min_pretty+sliderCurAfter);$filter.find('span.irs-max:first').html(sliderCurBefore+sliderWrapper['result'].max_pretty+sliderCurAfter);$filter.find('span.irs-from:first').html(sliderCurBefore+sliderWrapper['result'].from_pretty+sliderCurAfter);$filter.find('span.irs-to:first').html(sliderCurBefore+sliderWrapper['result'].to_pretty+sliderCurAfter);},500);}}
if(minPrice&&maxPrice){if(skin==='default'){sliderWrapper.slider({values:[minPrice,maxPrice]});}else if(typeof(sliderWrapper)!='undefined'){sliderWrapper.update({from:minPrice,to:maxPrice});$filter.removeClass('wpfNotActiveSlider');}}
_thisObj.chageRangeFieldWidth();if(typeof(_thisObj.eventChangeFilterPro)=='function'){_thisObj.eventChangeFilterPro($filter,settings);}
break;case'wpfPriceRange':var rate=$filter.data('rate');urlParams=_thisObj.getConvertedPrices(urlParams,rate);var minPrice=urlParams.wpf_min_price?parseFloat(urlParams.wpf_min_price):false,maxPrice=urlParams.wpf_max_price?parseFloat(urlParams.wpf_max_price):false,$options=$filter.find('li');$options.find('input[type="checkbox"]').prop('checked',false);$options.each(function(){var _this=jQuery(this),range=_this.attr('data-range');if(typeof range!='undefined'){range=range.split(',');var minRange=range[0]==''?false:parseFloat(range[0]),maxRange=range[1]==''?false:parseFloat(range[1]),minPrices=[minPrice-1,minPrice,minPrice+1],maxPrices=[maxPrice-1,maxPrice,maxPrice+1];if(minPrices.includes(minRange)&&maxPrices.includes(maxRange)){_this.find('input[type="checkbox"]').prop('checked',true);return false;}}});if(typeof(_thisObj.eventChangeFilterPro)=='function'){_thisObj.eventChangeFilterPro($filter,settings);}
break;}});});WpfFrontendPage.prototype.findGetParameter=(function(url){var query_string={},usefulParam=url.split("?")[1]||"",query=usefulParam||"",vars=query.split("&");for(var i=0;i<vars.length;i++){var pair=vars[i].split("=");if(typeof query_string[pair[0]]==="undefined"){query_string[pair[0]]=decodeURIComponent(pair[1]);}else if(typeof query_string[pair[0]]==="string"){var arr=[query_string[pair[0]],decodeURIComponent(pair[1])];query_string[pair[0]]=arr;}else{query_string[pair[0]].push(decodeURIComponent(pair[1]));}}
return query_string;});WpfFrontendPage.prototype.getClearLabel=(function(label,withCount){if(withCount){var cnt=label.lastIndexOf('(');if(cnt==-1)cnt=label.lastIndexOf('<span');if(cnt!=-1)label=label.substring(0,cnt).trim();}
label=label.replace(/&nbsp;/g,'');return label;});WpfFrontendPage.prototype.getFilterOptionsByType=(function($filter,filterType){var _thisObj=this.$obj;return _thisObj['get'+filterType.replace('wpf','')+'FilterOptions']($filter);});WpfFrontendPage.prototype.getPriceFilterOptions=(function($filter){var _thisObj=this.$obj,optionsArray=[],options=[],minPrice=$filter.find('#wpfMinPrice').val(),maxPrice=$filter.find('#wpfMaxPrice').val(),tax=$filter.data('tax'),rate=$filter.data('rate'),str='';[minPrice,maxPrice,tax]=_thisObj.getConvertedPrices([minPrice,maxPrice,tax],rate);str=minPrice+','+maxPrice;options.push(str);var frontendOptions=[],getParams=$filter.attr('data-get-attribute');frontendOptions['rate']=rate;getParams=getParams.split(",");for(var i=0;i<getParams.length;i++){if(i===0){frontendOptions[getParams[i]]=minPrice;}
if(i===1){frontendOptions[getParams[i]]=maxPrice;}
if(i===2&&tax!==''){frontendOptions[getParams[i]]=tax;}}
var symbol=$filter.find('.wpfCurrencySymbol'),symbolB=symbol.length&&!symbol.is(':last-child')?symbol.html():'',symbolA=symbol.length&&symbol.is(':last-child')?symbol.html():'',selectedOptions={'is_one':true,'list':[symbolB+minPrice+symbolA+' - '+symbolB+maxPrice+symbolA]};optionsArray['backend']=options;optionsArray['frontend']=frontendOptions;optionsArray['selected']=selectedOptions;optionsArray['stats']=[[minPrice,maxPrice]];return optionsArray;});WpfFrontendPage.prototype.getPriceRangeFilterOptions=(function($filter){var _thisObj=this.$obj,optionsArray=[],options=[],frontendOptions=[],selectedOptions={'is_one':true,'list':[]},statistics=[],i=0,rate=$filter.data('rate');if($filter.attr('data-display-type')==='list'){if($filter.find("input:checked").length){var li=$filter.find('input:checked').closest('li');options[i]=li.attr('data-range');selectedOptions['list'][i]=li.find('.wpfValue').html();}}else if($filter.attr('data-display-type')==='dropdown'){if($filter.find(":selected").attr('data-range')){var option=$filter.find(":selected");options[i]=option.attr('data-range');selectedOptions['list'][i]=option.html();}}
if(typeof options!=='undefined'&&options.length>0){var getParams=$filter.attr('data-get-attribute'),tax=$filter.data('tax');frontendOptions['rate']=rate;getParams=getParams.split(",");if(typeof options[0]!=='undefined'&&options[0].length>0){var prices=options[0].split(',');[prices[0],prices[1],tax]=_thisObj.getConvertedPrices([prices[0],prices[1],tax],rate);frontendOptions[getParams[0]]=prices[0];frontendOptions[getParams[1]]=prices[1];if(typeof tax!=='undefined'){frontendOptions[getParams[2]]=tax;}}}
if(options.length==0){var defRange=$filter.attr('data-default');if(typeof defRange!='undefined'&&defRange.length){options[i]=defRange;}}
if(typeof rate!=='undefined'){var minPrice='',maxPrice='';options=options.map(function(elem){[minPrice,maxPrice]=_thisObj.getConvertedPrices(elem.split(","),rate);return minPrice+','+maxPrice;});}
if(options.length){statistics=options.map(function(elem){return elem.split(",");});}
optionsArray['backend']=options;optionsArray['frontend']=frontendOptions;optionsArray['selected']=selectedOptions;optionsArray['stats']=statistics;return optionsArray;});WpfFrontendPage.prototype.getSortByFilterOptions=(function($filter){var optionsArray=[],options=[],frontendOptions=[],selectedOptions={'is_one':true,'list':[]},value='';if($filter.data('display-type')==='radio'){var elem=$filter.find('input:checked').closest('li'),name=elem.find('.wpfFilterTaxNameWrapper').html();}else{var elem=$filter.find('select:not(.wpfPerPageDD)').find('option:selected'),name=elem.html();}
if(elem.length){value=elem.data('term-slug');options.push(value);var getParams=$filter.attr('data-get-attribute');frontendOptions[getParams]=value;selectedOptions['list'][0]=name;optionsArray['stats']=[name];}
if($filter.data('first-instock')=='1'){frontendOptions['oistock']=1;options.push('oistock');}
optionsArray['backend']=options;optionsArray['frontend']=frontendOptions;optionsArray['selected']=selectedOptions;return optionsArray;});WpfFrontendPage.prototype.getInStockFilterOptions=(function($filter){var optionsArray=[],frontendOptions=[],options=[],filterType=$filter.attr('data-display-type'),selectedOptions={'is_one':(filterType==='dropdown'),'list':[]},statistics=[],i=0;if(filterType==='dropdown'){var option=$filter.find(":selected"),value=option.attr('data-slug');if(value!=''){options[i]=value;frontendOptions[i]=value;var name=option.html();selectedOptions['list'][i]=name;statistics.push(name);}}else{$filter.find('input:checked').each(function(){var li=jQuery(this).closest('li'),slug=li.attr('data-term-slug'),name=li.find('.wpfFilterTaxNameWrapper').length?li.find('.wpfFilterTaxNameWrapper').html():li.find('.wpfValue').html();options[i]=slug;frontendOptions[i]=slug;selectedOptions['list'][li.attr('data-term-id')]=name;statistics.push(name);i++;});}
optionsArray['backend']=options;var getParams=$filter.attr('data-get-attribute');optionsArray['frontend']=[];optionsArray['frontend']['taxonomy']=getParams;optionsArray['frontend']['settings']=frontendOptions;optionsArray['selected']=selectedOptions;optionsArray['stats']=statistics;return optionsArray;});WpfFrontendPage.prototype.getCategoryFilterOptions=(function($filter){var _thisObj=this.$obj,optionsArray=[],frontendOptions=[],options=[],filterType=$filter.attr('data-display-type'),useSlugs=$filter.attr('data-use-slugs')=='1',selectedOptions={'is_one':(filterType=='list'||filterType=='dropdown'),'list':[]},statistics=[],i=0;if(filterType==='dropdown'){var option=$filter.find(":selected"),id=option.attr('data-term-id'),value=option.val();if(value!=''){options[i]=value;var name=_thisObj.getClearLabel(option.html(),$filter.hasClass('wpfShowCount'));selectedOptions['list'][id]=name;statistics.push(name);}
frontendOptions[i]=(useSlugs?option.attr('data-term-slug'):id);}else if(filterType==='mul_dropdown'){$filter.find(':selected').each(function(){var option=jQuery(this),id=option.attr('data-term-id');options[i]=option.val();frontendOptions[i]=(useSlugs?option.attr('data-term-slug'):id);var name=_thisObj.getClearLabel(option.html(),$filter.hasClass('wpfShowCount'));selectedOptions['list'][id]=name;statistics.push(name);i++;});}else{var removeSelectedList=[];$filter.find('input').each(function(){var inputCurent=jQuery(this),liCurent=inputCurent.closest('li'),id=liCurent.data('term-id'),isParent=liCurent.children('ul').length>0,isChecked=inputCurent.is(':checked'),hierarchicalLogic=$filter.attr('data-logic-hierarchical'),type=$filter.attr('data-display-type'),isHierarchical=$filter.attr('data-show-hierarchical'),isHierarchicalLogic=isHierarchical==='true'&&type==='multi'||type==='text';if(isParent){var isAllChildChecked=true,childList=[];liCurent.find('ul li').each(function(){var childId=jQuery(this).data('term-id'),childLi=jQuery(this),childInput=childLi.find('input'),isChildChecked=childInput.prop('checked');childList.push(childId);if(!isChildChecked){isAllChildChecked=false;return false;}});if(isChecked&&isAllChildChecked){removeSelectedList=removeSelectedList.concat(childList);var onlyUnique=function(value,index,self){return self.indexOf(value)===index;}
removeSelectedList=removeSelectedList.filter(onlyUnique);selectedOptions.removeSelected=removeSelectedList;}}
if(jQuery(this).is(':checked')){if(isHierarchicalLogic&&hierarchicalLogic=='child'){var liElements=liCurent.find('li'),isChildChicked=false;for(var j=0;j<liElements.length;++j){var li=liElements[j];if(jQuery(li).find('input').prop('checked')){isChildChicked=true;}}
if(!isChildChicked){options[i]=id;frontendOptions[i]=(useSlugs?liCurent.attr('data-term-slug'):id);}}else if(isHierarchicalLogic&&hierarchicalLogic=='parent'){var parents=liCurent.parents('li'),isChildChicked=false;for(var j=0;j<parents.length;++j){var li=parents[j];if(jQuery(li).find('input').prop('checked')){isChildChicked=true;}}
if(!isChildChicked){options[i]=id;frontendOptions[i]=(useSlugs?liCurent.attr('data-term-slug'):id);}}else{options[i]=id;frontendOptions[i]=(useSlugs?liCurent.attr('data-term-slug'):id);}
var name=liCurent.find('.wpfValue').html();selectedOptions['list'][id]=name;statistics.push(liCurent.find('.wpfFilterTaxNameWrapper:first').length?liCurent.find('.wpfFilterTaxNameWrapper:first').html():name);i++;}});}
var options=options.filter(function(el){return el!=null;});var frontendOptions=frontendOptions.filter(function(el){return el!=null;});optionsArray['backend']=options;var getParams=$filter.attr('data-get-attribute');optionsArray['frontend']=[];optionsArray['frontend']['taxonomy']=getParams;optionsArray['frontend']['settings']=frontendOptions;optionsArray['selected']=selectedOptions;optionsArray['stats']=statistics;return optionsArray;});WpfFrontendPage.prototype.getPerfectBrandFilterOptions=(function($filter){return this.$obj.getCategoryFilterOptions($filter);});WpfFrontendPage.prototype.getTagsFilterOptions=(function($filter){var _thisObj=this.$obj,optionsArray=[],options=[],frontendOptions=[],filterType=$filter.attr('data-display-type'),selectedOptions={'is_one':(filterType=='dropdown'),'list':[]},statistics=[],withCount=$filter.hasClass('wpfShowCount'),i=0,proFilterType=['colors'];if(filterType==='dropdown'){var option=$filter.find(":selected"),value=option.val();if(value!=''){options[i]=value;frontendOptions[i]=option.attr('data-slug');var name=_thisObj.getClearLabel(option.html(),withCount);selectedOptions['list'][option.attr('data-term-id')]=name;statistics.push(name);}}else if(filterType==='mul_dropdown'){$filter.find(':selected').each(function(){var option=jQuery(this);options[i]=option.val();frontendOptions[i]=option.attr('data-slug');var name=_thisObj.getClearLabel(option.html(),withCount);selectedOptions['list'][option.attr('data-term-id')]=name;statistics.push(name);i++;});}else if(jQuery.inArray(filterType,proFilterType)==-1){$filter.find('input:checked').each(function(){var li=jQuery(this).closest('li'),id=li.attr('data-term-id');options[i]=id;frontendOptions[i]=li.attr('data-term-slug');var name=li.find('.wpfValue').html();selectedOptions['list'][id]=name;statistics.push(li.find('.wpfFilterTaxNameWrapper').length?li.find('.wpfFilterTaxNameWrapper').html():name);i++;});}
var data={options:options,frontendOptions:frontendOptions,selectedOptions:selectedOptions,statistics:statistics,i:i,}
if(typeof window.wpfFrontendPage.getTagsFilterOptionsPro=='function'){data=window.wpfFrontendPage.getTagsFilterOptionsPro($filter,data);}
optionsArray['backend']=data.options;var getParams=$filter.attr('data-get-attribute');optionsArray['frontend']=[];optionsArray['frontend']['taxonomy']=getParams;optionsArray['frontend']['settings']=data.frontendOptions;optionsArray['selected']=data.selectedOptions;optionsArray['stats']=data.statistics;return optionsArray;});WpfFrontendPage.prototype.getAttributeFilterOptions=(function($filter){var _thisObj=this.$obj,optionsArray=[],options=[],frontendOptions=[],filterType=$filter.attr('data-display-type'),selectedOptions={'is_one':(filterType=='dropdown'),'list':[]},statistics=[],withCount=$filter.hasClass('wpfShowCount'),i=0,proFilterType=['slider','colors'];if(filterType==='dropdown'){var option=$filter.find(":selected"),value=option.val();if(value!=''){options[i]=value;frontendOptions[i]=option.attr('data-slug');var name=_thisObj.getClearLabel(option.html(),withCount);selectedOptions['list'][option.attr('data-term-id')]=name;statistics.push(name);}}else if(filterType==='mul_dropdown'){$filter.find(':selected').each(function(){var option=jQuery(this);options[i]=option.val();frontendOptions[i]=option.attr('data-slug');var name=_thisObj.getClearLabel(option.html(),withCount);selectedOptions['list'][option.attr('data-term-id')]=name;statistics.push(name);i++;});}else if(jQuery.inArray(filterType,proFilterType)==-1){$filter.find('input:checked').each(function(){var li=jQuery(this).closest('li'),id=li.attr('data-term-id');options[i]=id;frontendOptions[i]=li.attr('data-term-slug');var name=li.find('.wpfValue').html();selectedOptions['list'][id]=name;statistics.push(li.find('.wpfFilterTaxNameWrapper').length?li.find('.wpfFilterTaxNameWrapper').html():name);i++;});}
var data={options:options,frontendOptions:frontendOptions,selectedOptions:selectedOptions,statistics:statistics,i:i,}
if(typeof window.wpfFrontendPage.getAttributeFilterOptionsPro=='function'){data=window.wpfFrontendPage.getAttributeFilterOptionsPro($filter,data);}
optionsArray['backend']=data.options;var getParams=$filter.attr('data-get-attribute');optionsArray['frontend']=[];optionsArray['frontend']['taxonomy']=getParams;optionsArray['frontend']['settings']=data.frontendOptions;optionsArray['selected']=data.selectedOptions;optionsArray['stats']=data.statistics;return optionsArray;});WpfFrontendPage.prototype.getAuthorFilterOptions=(function($filter){var _thisObj=this.$obj,optionsArray=[],options=[],frontendOptions=[],filterType=$filter.attr('data-display-type'),selectedOptions={'is_one':(filterType=='dropdown'),'list':[]},statistics=[],i=0;if(filterType==='list'){$filter.find('input:checked').each(function(){var li=jQuery(this).closest('li'),id=li.attr('data-term-id');options[i]=id;frontendOptions[i]=li.attr('data-term-slug');var name=li.find('.wpfValue').html();selectedOptions['list'][id]=name;statistics.push(li.find('.wpfFilterTaxNameWrapper').length?li.find('.wpfFilterTaxNameWrapper').html():name);i++;});}else if(filterType==='mul_dropdown'){$filter.find(':selected').each(function(){var option=jQuery(this);options[i]=option.val();frontendOptions[i]=option.attr('data-slug');var name=_thisObj.getClearLabel(option.html());selectedOptions['list'][option.attr('data-term-id')]=name;statistics.push(name);i++;});}else if(filterType==='dropdown'){var option=$filter.find(":selected"),value=option.val();options[i]=value;if(value!=''){frontendOptions[i]=option.attr('data-slug');var name=option.html();selectedOptions['list'][option.attr('data-term-id')]=name;statistics.push(name);}}
optionsArray['backend']=options;var getParams=$filter.attr('data-get-attribute');optionsArray['frontend']=[];optionsArray['frontend']['taxonomy']=getParams;optionsArray['frontend']['settings']=frontendOptions;optionsArray['selected']=selectedOptions;optionsArray['stats']=statistics;return optionsArray;});WpfFrontendPage.prototype.getFeaturedFilterOptions=(function($filter){var optionsArray=[],options=[],frontendOptions=[],filterType=$filter.attr('data-display-type'),selectedOptions={'is_one':(filterType=='dropdown'),'list':[]},statistics=[],i=0;$filter.find('input:checked').each(function(){var li=jQuery(this).closest('li'),id=li.attr('data-term-id');options[i]=id;frontendOptions[i]=li.attr('data-term-slug');var name=li.find('.wpfValue').html();selectedOptions['list'][id]=name;statistics.push(li.find('.wpfFilterTaxNameWrapper').length?li.find('.wpfFilterTaxNameWrapper').html():name);i++;});optionsArray['backend']=options;var getParams=$filter.attr('data-get-attribute');optionsArray['frontend']=[];optionsArray['frontend']['taxonomy']=getParams;optionsArray['frontend']['settings']=frontendOptions;optionsArray['selected']=selectedOptions;optionsArray['stats']=statistics;return optionsArray;});WpfFrontendPage.prototype.getOnSaleFilterOptions=(function($filter){var optionsArray=[],options=[],frontendOptions=[],filterType=$filter.attr('data-display-type'),selectedOptions={'is_one':(filterType=='dropdown'),'list':[]},statistics=[],i=0;$filter.find('input:checked').each(function(){var li=jQuery(this).closest('li'),id=li.attr('data-term-id');options[i]=id;frontendOptions[i]=li.attr('data-term-slug');var name=li.find('.wpfValue').html();selectedOptions['list'][id]=name;statistics.push(li.find('.wpfFilterTaxNameWrapper').length?li.find('.wpfFilterTaxNameWrapper').html():name);i++;});optionsArray['backend']=options;var getParams=$filter.attr('data-get-attribute');optionsArray['frontend']=[];optionsArray['frontend']['taxonomy']=getParams;optionsArray['frontend']['settings']=frontendOptions;optionsArray['selected']=selectedOptions;optionsArray['stats']=statistics;return optionsArray;});WpfFrontendPage.prototype.getRatingFilterOptions=(function($filter){var optionsArray=[],frontendOptions=[],options=[],filterType=$filter.attr('data-display-type'),selectedOptions={'is_one':true,'list':[]},statistics=[],i=0;if(filterType=='linestars'||filterType=='liststars'){var input=$filter.find('input.wpfStarInput:checked'),rating=input.val();options[i]=rating;frontendOptions[i]=rating;var name=input.attr('data-label');selectedOptions['list'][i]=name;statistics.push(name);}else if(filterType=='list'){$filter.find('input:checked').each(function(){var li=jQuery(this).closest('li'),id=li.attr('data-term-id');options[i]=id;frontendOptions[i]=li.attr('data-term-slug');var name=li.find('.wpfValue').html();selectedOptions['list'][id]=name;statistics.push(li.find('.wpfFilterTaxNameWrapper').length?li.find('.wpfFilterTaxNameWrapper').html():name);i++;});}else if(filterType=='dropdown'){var option=$filter.find(":selected"),value=option.val();options[i]=value;if(value!=''){frontendOptions[i]=option.attr('data-slug');var name=option.html();selectedOptions['list'][option.attr('data-term-id')]=name;statistics.push(name);}}
optionsArray['backend']=options;var getParams=$filter.attr('data-get-attribute');optionsArray['frontend']=[];optionsArray['frontend']['taxonomy']=getParams;optionsArray['frontend']['settings']=frontendOptions;optionsArray['selected']=selectedOptions;optionsArray['stats']=statistics;return optionsArray;});WpfFrontendPage.prototype.disableLeerOptions=(function(){var _thisObj=this.$obj;jQuery('.wpfMainWrapper').each(function(){var mainWrapper=jQuery(this),settings=_thisObj.getFilterMainSettings(mainWrapper);if(settings&&settings.settings.filter_null_disabled==='1'){var filters=mainWrapper.find('.wpfFilterWrapper.wpfShowCount');if(filters.length){filters.find('option[data-term-id]').prop('disabled',false);filters.find('option[data-term-id][data-count="0"]').prop('disabled',true);filters.find('.wpfCount').each(function(){var cntObj=jQuery(this),leer=cntObj.html()=='(0)',el=cntObj.closest('[data-term-id]'),input=false;if(el.length==0){el=cntObj.closest('[data-term-slug]');}
if(el.length){if(el.is('input')){input=el;el=input.parent();}else{input=el.find('input');}
input.prop('disabled',leer);if(leer)el.addClass('wpfOptionDisabled');else el.removeClass('wpfOptionDisabled');}});}}});});WpfFrontendPage.prototype.addSpecificPluginActions=(function(){jQuery(window).on('load',function(){if(window.elementorFrontend){if(window.elementorFrontend.hooks){elementorFrontend.hooks.addAction('frontend/element_ready/widget',function($scope){var wrapper=$scope.find('.wpfMainWrapper');hideFilterLoader(wrapper);});}}else if(jQuery('.elementor .wpfMainWrapper').length){setTimeout(function(){jQuery('.elementor .wpfMainWrapper').each(function(){var wrapper=jQuery(this);hideFilterLoader(wrapper);});},2000);}});});WpfFrontendPage.prototype.fixSelector=(function(selector,defaultSelector){if(typeof selector=='undefined'||selector===''){return typeof defaultSelector=='undefined'?'':defaultSelector;}
return(selector.search(/\.|#/)===-1)?'.'+selector.replace(/(\s+)(\w+)/g,' .$2'):selector;});WpfFrontendPage.prototype.markCheckboxSelected=(function($filter,first){if($filter.length){var settings=this.getFilterMainSettings($filter.closest('.wpfMainWrapper'));if(settings){if(settings.settings.checked_items_bold=='1'){var wpfMainWrapper=$filter.closest('.wpfMainWrapper');wpfMainWrapper.find('.wpfDisplay').css('font-weight','');wpfMainWrapper.find('.wpfAttrLabel').css('font-weight','');wpfMainWrapper.find('input:checked').each(function(){var wpfDisplay=jQuery(this).closest('.wpfLiLabel').find('.wpfDisplay'),wpfAttrLabel=jQuery(this).closest('.wpfColorsColBlock').find('.wpfAttrLabel');wpfDisplay.css('font-weight','bold');wpfAttrLabel.css('font-weight','bold');});}}
if(first){setTimeout(function(){$filter.find('input').each(function(){var input=this;if(input.type=="checkbox"){if(input.defaultChecked==true){if(input.checked!=true)input.checked=true;}else{if(input.checked==true){input.checked=false;jQuery(input).closest('.wpfLiLabel').find('.wpfDisplay').removeClass('selected').css('font-weight','');}}}});},100);}}});jQuery(document).ready(function(){window.wpfFrontendPage=new WpfFrontendPage();if(typeof isElementorEditMode=='undefined'){window.wpfFrontendPage.init();}});WpfFrontendPage.prototype.unserializeStr=function(serializedString){var str=decodeURI(serializedString);var pairs=str.split('&');var obj={},p,idx;for(var i=0,n=pairs.length;i<n;i++){p=pairs[i].split('=');idx=p[0];if(obj[idx]===undefined){obj[idx]=unescape(p[1]).replace(/\+/g,' ');}else{if(typeof obj[idx]=="string"){obj[idx]=[obj[idx]];}
obj[idx].push(unescape(p[1]).replace(/\+/g,' '));}}
return obj;};WpfFrontendPage.prototype.getConvertedPrices=function(data,rate){if(typeof rate!=='undefined'&&rate!==1){if(typeof data[0]!=='undefined'){data[0]=String(Math.round(data[0]/rate));if(typeof data[1]!=='undefined'){data[1]=String(Math.round(data[1]/rate));}
if(typeof data[2]!=='undefined'){data[2]=String(Math.round(data[2]/rate));}}else{if(data.wpf_min_price){data.wpf_min_price=String(Math.round(data.wpf_min_price*rate));}
if(data.wpf_max_price){data.wpf_max_price=String(Math.round(data.wpf_max_price*rate));}
if(data.tax){data.tax=String(Math.round(data.tax*rate));}}}
return data;};if(jQuery('.variations_form').length>0&&typeof $(this).wc_variation_form=='function'){document.addEventListener('wpfAjaxSuccess',function(event){$('.variations_form').each(function(){$(this).wc_variation_form();});});}
if(jQuery('.jetpack-lazy-image').length>0){document.addEventListener('wpfAjaxSuccess',function(event){jQuery('.jetpack-lazy-image').each(function(){jQuery(this).removeAttr('srcset');});});}
jQuery(document).ready(function(){if(jQuery('a.lmp_button').length>0){document.addEventListener('wpfAjaxSuccess',function(event){if(!window.wpfDoNotLoadMore&&typeof load_next_page=='function'){load_next_page(true,decodeURIComponent(location.href));}});}});jQuery(document).on('ixProductFilterRequestProcessed',function(event){window.wpfFrontendPage.filtering();});}(window.jQuery,window));var objQueryString={};toggleClear();function wpfGetSelector(html,controlExist,defSelector,countChilds,removeDynamicClasses,context){if(html.length==0)return defSelector;var elem=(typeof context!=='undefined')?jQuery(html,context):jQuery(html),selector='',i=0;if(typeof countChilds=='undefined'){countChilds=1;}
while(i<countChilds&&elem&&elem.length){if(i>0){selector+=' ';}
i++;if(elem.length>1){elem=elem.last();}
var elemId=elem.attr('id');if(typeof elemId!='undefined'){selector+='#'+elemId;}else{var elemClass=elem.attr('class');if(removeDynamicClasses){classList=elemClass.split(' ');classList.forEach(function(className,key){var hasNumber=/\d/.test(className);if(hasNumber){classList.splice(key,1);}});elemClass=classList.join(' ');}
if(typeof elemClass!='undefined'&&elemClass!=''){if(elemClass=='container'&&countChilds==1)countChilds=2;selector+=elem.get(0).tagName+'.'+elemClass.trim().replace(/ +/g,'.');}}
if(controlExist&&selector!=''&&jQuery(selector).length==0){selector='';break;}
var elem=elem.children();}
return selector.length==0?defSelector:selector;}
function getUrlParams(){var params={};window.location.search.replace(/[?&]+([^=&]+)=([^&]*)/gi,function(str,key,value){params[key]=value;});return params;}
function toggleClear(){var params=getUrlParams();jQuery(".wpfBlockClear").hide();jQuery(".wpfFilterWrapper").each(function(){var attr=jQuery(this).attr('data-get-attribute');if(attr in params){jQuery(this).find(".wpfBlockClear").show();}});if('wpf_min_price'in params||'wpf_max_price'in params){jQuery("[data-filter-type='wpfPrice']").find(".wpfBlockClear").show();jQuery("[data-filter-type='wpfPriceRange']").find(".wpfBlockClear").show();}}
function getParameterByName(name,searchUrl){name=name.replace(/[\[]/,"\\[").replace(/[\]]/,"\\]");var regex=new RegExp("[\\?&]"+name+"=([^&#]*)"),results=regex.exec(searchUrl);return results===null?"":decodeURIComponent(results[1]);}
function getCurrentUrlPartsWpf(){var parts=window.wpfNewUrl.split('?'),s=(parts[1]||'');return{href:window.wpfNewUrl,path:parts[0].replace(/#.*$/,''),search:(s.length?'?'+s:'')};}
function changeUrl(filterSlug,filterValue,$wooPage,$filterWrapper){removePageQString();$wooPage=(typeof $wooPage!='undefined'?$wooPage:false);var curUrl=getCurrentUrlPartsWpf();if(!$wooPage){var searchUrl=decodeURIComponent(curUrl.search);}else{if($filterWrapper.attr('data-hide-url')){var searchUrl=$filterWrapper.attr('data-hide-url');}else{var searchUrl='';}}
if(searchUrl.indexOf("redirect")!==-1){searchUrl='';}
if(searchUrl.indexOf("?")=="-1"){var urlValue=curUrl.path+'?'+filterSlug+'='+filterValue;}else{if(searchUrl.indexOf('&'+filterSlug+'=')=="-1"&&searchUrl.indexOf('?'+filterSlug+'=')=="-1"){var urlValue=searchUrl+'&'+filterSlug+'='+filterValue;}else{var oldValue=getParameterByName(filterSlug,searchUrl);if(searchUrl.indexOf("?"+filterSlug+"=")!="-1"){var urlValue=searchUrl.replace('?'+filterSlug+'='+oldValue,'?'+filterSlug+'='+filterValue);}else{var urlValue=searchUrl.replace('&'+filterSlug+'='+oldValue,'&'+filterSlug+'='+filterValue);}}
urlValue=curUrl.path+urlValue;}
if(!$wooPage){window.wpfNewUrl=encodeURI(urlValue).indexOf('%25')===-1?encodeURI(urlValue):urlValue;}
objQueryString.key=filterValue;return urlValue;}
function removePageQString(){var curUrl=getCurrentUrlPartsWpf(),path=curUrl.path,page=path.indexOf('/page/');if(page!=-1&&history.pushState){window.wpfNewUrl=path.substr(0,page+1)+curUrl.search;}}
function removeQString(key,$wooPage,$filterWrapper){removePageQString();var curUrl=getCurrentUrlPartsWpf(),urlValue=decodeURI(curUrl.href);$wooPage=(typeof $wooPage!='undefined'?$wooPage:false);if(!$wooPage){var searchUrl=decodeURIComponent(curUrl.search);}else{if($filterWrapper.attr('data-hide-url')){var searchUrl=decodeURI($filterWrapper.attr('data-hide-url'));}else{var searchUrl='';}
var urlValue=curUrl.href+searchUrl;}
if(key!=""){var oldValue=getParameterByName(key,searchUrl),removeVal=key+"="+oldValue;if(searchUrl.indexOf('?'+removeVal+'&')!="-1"){urlValue=urlValue.replace('?'+removeVal+'&','?');}
else if(searchUrl.indexOf('&'+removeVal+'&')!="-1"){urlValue=urlValue.replace('&'+removeVal+'&','&');}
else if(searchUrl.indexOf('?'+removeVal)!="-1"){urlValue=urlValue.replace('?'+removeVal,'');}
else if(searchUrl.indexOf('&'+removeVal)!="-1"){urlValue=urlValue.replace('&'+removeVal,'');}
if($wooPage){urlValue=urlValue.replace(curUrl.href,'');}}else{if(!$wooPage){var searchUrl=decodeURIComponent(curUrl.search);urlValue=urlValue.replace(searchUrl,'');}else{var searchUrl=$filterWrapper.attr('data-hide-url');urlValue=urlValue.replace(searchUrl,'');urlValue=urlValue.replace(curUrl.href,'');}}
if(!$wooPage){window.wpfNewUrl=encodeURI(urlValue).indexOf('%25')===-1?encodeURI(urlValue):urlValue;}
return urlValue.indexOf('%25')!==-1?decodeURI(urlValue):urlValue;}
function checkArray(my_arr){for(var i=0;i<my_arr.length;i++){if(my_arr[i]==="")
return false;}
return true;}
jQuery.toQueryParams=function(str,separator){separator=separator||'&';var obj={};if(str.length==0)
return obj
var c=str.substr(0,1),s=c=='?'||c=='#'?str.substr(1):str,a=s.split(separator);for(var i=0;i<a.length;i++){var p=a[i].indexOf('=');if(p<0){obj[a[i]]='';continue}
var k=decodeURIComponent(a[i].substr(0,p)),v=decodeURIComponent(a[i].substr(p+1)),bps=k.indexOf('[');if(bps<0){obj[k]=v
continue;}
var bpe=k.substr(bps+1).indexOf(']');if(bpe<0){obj[k]=v
continue;}
var bpv=k.substr(bps+1,bps+bpe-1),k=k.substr(0,bps);if(bpv.length<=0){if(typeof(obj[k])!='object')obj[k]=[];obj[k].push(v);}else{if(typeof(obj[k])!='object')obj[k]={};obj[k][bpv]=v;}}
return obj;}
function wpfChangeFiltersCount(wpfExistTerms,synchroFilterId){var wpfPage=window.wpfFrontendPage,curFilter=wpfPage.isSynchro?(typeof(synchroFilterId)!='undefined'&&synchroFilterId.length?'#'+synchroFilterId:'#'+wpfPage.currentLoadId):'body';jQuery(curFilter).find(".wpfShowCount").find(".wpfCount").html("(0)");jQuery(curFilter).find(".wpfShowCount select:not([multiple]) option[data-count]").each(function(){var attr=jQuery(this).attr("data-term-name");jQuery(this).attr('data-count',0).html(attr+" (0)");});jQuery(curFilter).find(".wpfShowCount select[multiple]").find("option").each(function(){attr=jQuery(this).attr("data-term-name");jQuery(this).attr('data-count',0).html(attr+" (0)");});jQuery(curFilter).find(".wpfShowCount").each(function(filterCounter){var filter=jQuery(this);if(filter.attr("data-filter-type").length>0){var taxonomy=filter.data('taxonomy');if(typeof taxonomy=='undefined'||taxonomy.length==0)taxonomy=filter.data('slug');if(taxonomy in wpfExistTerms){if(typeof(wpfExistTerms[taxonomy].relation)!=='undefined'){var htmlArray={};jQuery(curFilter).find('div.wpfShowCount[data-taxonomy="'+taxonomy+'"] li').each(function(){htmlArray[jQuery(this).data('term-id')]=jQuery('.wpfFilterTaxNameWrapper',this).html();});jQuery.each(wpfExistTerms[taxonomy].relation,function(index,value){jQuery.each(htmlArray,function(i,v){if(v===value&&i!==index){wpfExistTerms[taxonomy][i]=wpfExistTerms[taxonomy][index];delete wpfExistTerms[taxonomy][index];}});});}
jQuery.each(wpfExistTerms[taxonomy],function(index,value){changeCount(taxonomy,index,value,curFilter);});delete wpfExistTerms[taxonomy];}}});window.wpfFrontendPage.disableLeerOptions();var multi=jQuery('.wpfShowCount').find('select[multiple]');if(multi.length)multi.multiselect('reload');};function changeCount(taxonomy,index,value,curFilter){var oIndex=index;index=index.toLowerCase();var els=jQuery(curFilter).find('div.wpfShowCount[data-taxonomy="'+taxonomy+'"] [data-term-id="'+oIndex+'"]');if(els.length===0){els=jQuery(curFilter).find('div.wpfShowCount[data-slug="'+taxonomy+'"] [data-term-id="'+oIndex+'"]');}
if(els.length===0){els=jQuery(curFilter).find('div.wpfShowCount[data-taxonomy="'+taxonomy+'"] [data-term-id="'+index+'"]');}
if(els.length===0){els=jQuery(curFilter).find('div.wpfShowCount[data-slug="'+taxonomy+'"] [data-term-id="'+index+'"]');}
if(els.length>0){els.each(function(){var el=jQuery(this);if(el.find('.wpfCount').length>0){el.find('.wpfCount:first').html('('+value+')');}else if(el.parent().attr('class')=='wpfColorsColBlock'){el.parent().find('.wpfCount').html('('+value+')');}else{var attrname=el.attr('data-term-name');var tooltipstered=el.siblings('.tooltipstered');if(tooltipstered.length){attrname=tooltipstered.attr('data-term-name');tooltipstered.tooltipster('content',''+attrname+' ('+value+')');if(tooltipstered.attr('data-show-count'))tooltipstered.text(value);}else if(attrname!==undefined){el.html(''+attrname+' ('+value+')');}else{el.html(''+index+' ('+value+')');}}
if(el.is('option')){el.attr('data-count',value);}});}}
function wpfShowHideFiltersAtts(wpfExistTerms,wpfExistUsers,synchroFilterId){var wpfPage=window.wpfFrontendPage,curFilter=typeof(synchroFilterId)!='undefined'&&synchroFilterId.length?synchroFilterId:wpfPage.currentLoadId;wpfPage.restoreSelectsForSafari();jQuery((curFilter?'#'+curFilter+' ':'')+'.wpfFilterWrapper').each(function(){var filter=jQuery(this),filterType=filter.data('filter-type'),isTextFilter=filter.attr('data-display-type')=='text',filterContentType=isTextFilter&&filter.attr('data-control-products')=='1'?'taxonomy':filter.data('content-type'),taxonomy=filter.data('taxonomy'),getAttr=filter.data('get-attribute'),isFilterCurentlyActivated=getParameterByName(getAttr,location.search),isHideActive=filter.data('hide-active'),isShowAll=Boolean(filter.data('show-all')),isNotInLogic=getAttr.indexOf('pr_filter')==-1?false:true,userExistIds=[];switch(filterContentType){case'user':jQuery.each(wpfExistUsers,function(index,value){userExistIds.push(parseInt(value.ID));});if(!isFilterCurentlyActivated&&userExistIds.length>0){filter.find('[data-term-id]').each(function(){var el=jQuery(this),userId=el.data('term-id');if(userExistIds.indexOf(userId)>=0){el.show();}else{el.hide();}});}
break;case'taxonomy':if(typeof taxonomy=='undefined'||taxonomy.length==0){taxonomy=filter.data('slug');}
if((!isFilterCurentlyActivated||isHideActive)&&!isNotInLogic&&!isShowAll){if(taxonomy in wpfExistTerms||isFilterCurentlyActivated){var termIds=wpfExistTerms[taxonomy]||{};filter.find('[data-term-id]').each(function(){var elem=jQuery(this),id=elem.data('term-id'),selected=isFilterCurentlyActivated&&(elem.is('input:checked')||elem.find('input:checked').length||elem.is('option:selected'));if(id in termIds||selected){if(elem.closest('.wpfButtonsFilter').length)elem.css('display','inline-block');else elem.show();if(elem.parent().hasClass('wpfColorsColBlock')){elem.parent().parent().show();}
if(elem.closest('.wpfColorsRow').length){elem.parent().css('display','inline-block');}}else{elem.hide();elem.find('input').prop('checked',false);if(elem.parent().hasClass('wpfColorsColBlock')){elem.parent().parent().hide();}
if(elem.closest('.wpfColorsRow').length){elem.parent().hide();}}});if(filter.attr('data-display-type')=='slider'){if(typeof(wpfPage.updateAttrSlider)=='function'){wpfPage.updateAttrSlider(filter,termIds);}}else{var hideSingle=filter.attr('data-hide-single')=='1',preSelector=hideSingle&&filter.find('select[multiple]').length?'option':'',selector=hideSingle&&filter.find('.wpfColorsFilter').length?'li[data-term-slug]':'[data-term-id]',cntAll=isTextFilter?1:filter.find(preSelector+selector).length,cntHidden=filter.find(preSelector+selector+'[style*="none"]').length,limit=hideSingle?1:0;if(cntAll-cntHidden<=limit){filter.hide();}else{filter.show();}}}else{filter.find('input').prop('checked',false);filter.find('select').val('');filter.hide();}}
var multi=filter.find('select[multiple]');if(multi.length)multi.multiselect('reload');if(typeof(window.wpfFrontendPage.wpfShowHideFiltersAttsPro)=='function'){window.wpfFrontendPage.wpfShowHideFiltersAttsPro(filter);}
break;default:}});wpfPage.removeHiddenOptionsForSafari();}
function wpfChangePriceFiltersCount(prices){var _thisObj=window.wpfFrontendPage,noWooPage=_thisObj.noWoo,filterWrapper=jQuery('.wpfMainWrapper'),priceFilters=jQuery('.wpfFilterWrapper[data-filter-type="wpfPrice"].wpfNotActive');jQuery('.wpfFilterWrapper[data-filter-type="wpfPrice"]').each(function(){var wpfPrice=jQuery(this);wpfPrice.attr('data-minvalue',prices.wpf_min_price).attr('data-maxvalue',prices.wpf_max_price);wpfPrice.find('#wpfMinPrice').attr('min',prices.wpf_min_price).val(prices.wpf_min_price);wpfPrice.find('#wpfMaxPrice').attr('max',prices.wpf_max_price).val(prices.wpf_max_price);if(wpfPrice.find(".ion-range-slider").length){wpfPrice.find(".ion-range-slider").each(function(){jQuery(this).attr('data-min',prices.wpf_min_price).attr('data-max',prices.wpf_max_price);var ionSlider=jQuery(this).data("ionRangeSlider");ionSlider.update({min:prices.wpf_min_price,max:prices.wpf_max_price,});});}});window.wpfFrontendPage.eventsPriceFilter();_thisObj.getUrlParamsChangeFiltersValues();}
function hideFilterLoader(wrapper){wrapper.find('.wpfLoaderLayout').hide();wrapper.css({position:''});wrapper.find('.wpfFilterWrapper').css({visibility:'inherit'});}
function heightIdenticalInRow(selector){var setMaxHeight=function(elements){if(elements.length>1){var elementHeightMax=elements[0].height;for(var j=1;j<elements.length;j++){if(elements[j].height>elementHeightMax){elementHeightMax=elements[j].height;}}
for(var j=0;j<elements.length;j++){jQuery(elements[j].selector).height(elementHeightMax);}}};var elementsHeight=[];var rowIndex=0;var elementIndex=0;jQuery(selector).each(function(index,element){if(!elementsHeight[rowIndex]){elementsHeight[rowIndex]=[];}
if(elementsHeight[rowIndex][elementsHeight[rowIndex].length-1]&&elementsHeight[rowIndex][elementsHeight[rowIndex].length-1].top&&elementsHeight[rowIndex][elementsHeight[rowIndex].length-1].top!==jQuery(element).offset().top){setMaxHeight(elementsHeight[rowIndex]);rowIndex++;}
if(!elementsHeight[rowIndex]){elementsHeight[rowIndex]=[];}
elementsHeight[rowIndex].push({selector:selector+':eq('+elementIndex+')',height:jQuery(element).height(),top:jQuery(element).offset().top});elementIndex++;});if(elementsHeight[rowIndex]){setMaxHeight(elementsHeight[rowIndex]);}}
function wpfDoActionsAfterLoad(fid,isFound,requestData){if(typeof(window.wpfFrontendPage.saveStatistics)=='function'){window.wpfFrontendPage.saveStatistics(fid,isFound,requestData);}}
;/*! elementor-pro - v3.24.0 - 09-10-2024 */
(()=>{"use strict";var e,r,a,n={},c={};function __webpack_require__(e){var r=c[e];if(void 0!==r)return r.exports;var a=c[e]={exports:{}};return n[e].call(a.exports,a,a.exports,__webpack_require__),a.exports}__webpack_require__.m=n,e=[],__webpack_require__.O=(r,a,n,c)=>{if(!a){var i=1/0;for(o=0;o<e.length;o++){for(var[a,n,c]=e[o],t=!0,_=0;_<a.length;_++)(!1&c||i>=c)&&Object.keys(__webpack_require__.O).every((e=>__webpack_require__.O[e](a[_])))?a.splice(_--,1):(t=!1,c<i&&(i=c));if(t){e.splice(o--,1);var b=n();void 0!==b&&(r=b)}}return r}c=c||0;for(var o=e.length;o>0&&e[o-1][2]>c;o--)e[o]=e[o-1];e[o]=[a,n,c]},__webpack_require__.f={},__webpack_require__.e=e=>Promise.all(Object.keys(__webpack_require__.f).reduce(((r,a)=>(__webpack_require__.f[a](e,r),r)),[])),__webpack_require__.u=e=>635===e?"code-highlight.d86022c8668c4b072592.bundle.min.js":519===e?"video-playlist.af20fd9fd8778929829e.bundle.min.js":375===e?"paypal-button.f4f64e46173f50701949.bundle.min.js":234===e?"52e03298e7f0852c96a1.bundle.min.js":857===e?"stripe-button.61d93594d6b7865f8b3f.bundle.min.js":581===e?"progress-tracker.8cccdda9737c272489fc.bundle.min.js":961===e?"animated-headline.73c41dd605898fe2d075.bundle.min.js":692===e?"media-carousel.afbaabb756a7c18ddb09.bundle.min.js":897===e?"carousel.3620fca501cb18163600.bundle.min.js":416===e?"countdown.0e9e688751d29d07a8d3.bundle.min.js":292===e?"hotspot.fa04300164c35a866a51.bundle.min.js":325===e?"form.a8f0864f4b4fda696ad1.bundle.min.js":543===e?"gallery.572e8a2bca1a0b7e4f42.bundle.min.js":970===e?"lottie.e74a53bfa4c0bd939250.bundle.min.js":334===e?"nav-menu.997320c05a0d163c76e8.bundle.min.js":887===e?"popup.f7b15b2ca565b152bf98.bundle.min.js":535===e?"load-more.376b5bcb2e56386f470e.bundle.min.js":396===e?"posts.aec59265318492b89cb5.bundle.min.js":726===e?"portfolio.4cd5da34009c30cb5d70.bundle.min.js":316===e?"share-buttons.63d984f8c96d1e053bc0.bundle.min.js":829===e?"slides.c0029640cbdb48199471.bundle.min.js":158===e?"social.f215e8a3efafbdbeb7ef.bundle.min.js":404===e?"table-of-contents.1cfda3ead7ac082861dd.bundle.min.js":345===e?"archive-posts.16a93245d08246e5e540.bundle.min.js":798===e?"search-form.b7065999d77832a1b764.bundle.min.js":6===e?"woocommerce-menu-cart.eb61fe086245485310a4.bundle.min.js":80===e?"woocommerce-purchase-summary.3676ccd8c29ef0924b84.bundle.min.js":354===e?"woocommerce-checkout-page.776b4cec45070fe32636.bundle.min.js":4===e?"woocommerce-cart.d0d01530f5be6736b5d2.bundle.min.js":662===e?"woocommerce-my-account.4e940a8b4a52d1c98c5c.bundle.min.js":621===e?"woocommerce-notices.bcee9b5e1c8f65ac7927.bundle.min.js":787===e?"product-add-to-cart.51a22e1fbd8f914ab3d5.bundle.min.js":993===e?"loop.8130a6b4d3121c5aaaae.bundle.min.js":932===e?"loop-carousel.f8067ec0c24b628c786e.bundle.min.js":550===e?"ajax-pagination.2090b5f4906bcda1dcc2.bundle.min.js":727===e?"mega-menu.cd787a5946bfee971978.bundle.min.js":87===e?"mega-menu-stretch-content.480e081cebe071d683e8.bundle.min.js":912===e?"menu-title-keyboard-handler.dff562edd49e93d1658e.bundle.min.js":33===e?"nested-carousel.10dc0cdc82d55919a863.bundle.min.js":225===e?"taxonomy-filter.e839f2be32b7ea832b34.bundle.min.js":579===e?"off-canvas.bc9ebf2aa5a940324b7b.bundle.min.js":1===e?"contact-buttons.5398b922eb2a8fb72fd3.bundle.min.js":61===e?"contact-buttons-var-10.83d4216a4d1a44095e5c.bundle.min.js":249===e?"floating-bars-var-2.6e9b0bce703a2a6f2410.bundle.min.js":440===e?"floating-bars-var-3.e3ae97fbef2242a8b036.bundle.min.js":187===e?"search.9686bb2092445d2ad477.bundle.min.js":void 0,__webpack_require__.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),__webpack_require__.o=(e,r)=>Object.prototype.hasOwnProperty.call(e,r),r={},a="elementor-pro:",__webpack_require__.l=(e,n,c,i)=>{if(r[e])r[e].push(n);else{var t,_;if(void 0!==c)for(var b=document.getElementsByTagName("script"),o=0;o<b.length;o++){var d=b[o];if(d.getAttribute("src")==e||d.getAttribute("data-webpack")==a+c){t=d;break}}t||(_=!0,(t=document.createElement("script")).charset="utf-8",t.timeout=120,__webpack_require__.nc&&t.setAttribute("nonce",__webpack_require__.nc),t.setAttribute("data-webpack",a+c),t.src=e),r[e]=[n];var onScriptComplete=(a,n)=>{t.onerror=t.onload=null,clearTimeout(u);var c=r[e];if(delete r[e],t.parentNode&&t.parentNode.removeChild(t),c&&c.forEach((e=>e(n))),a)return a(n)},u=setTimeout(onScriptComplete.bind(null,void 0,{type:"timeout",target:t}),12e4);t.onerror=onScriptComplete.bind(null,t.onerror),t.onload=onScriptComplete.bind(null,t.onload),_&&document.head.appendChild(t)}},(()=>{var e;__webpack_require__.g.importScripts&&(e=__webpack_require__.g.location+"");var r=__webpack_require__.g.document;if(!e&&r&&(r.currentScript&&(e=r.currentScript.src),!e)){var a=r.getElementsByTagName("script");if(a.length)for(var n=a.length-1;n>-1&&(!e||!/^http(s?):/.test(e));)e=a[n--].src}if(!e)throw new Error("Automatic publicPath is not supported in this browser");e=e.replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),__webpack_require__.p=e})(),(()=>{var e={978:0};__webpack_require__.f.j=(r,a)=>{var n=__webpack_require__.o(e,r)?e[r]:void 0;if(0!==n)if(n)a.push(n[2]);else if(978!=r){var c=new Promise(((a,c)=>n=e[r]=[a,c]));a.push(n[2]=c);var i=__webpack_require__.p+__webpack_require__.u(r),t=new Error;__webpack_require__.l(i,(a=>{if(__webpack_require__.o(e,r)&&(0!==(n=e[r])&&(e[r]=void 0),n)){var c=a&&("load"===a.type?"missing":a.type),i=a&&a.target&&a.target.src;t.message="Loading chunk "+r+" failed.\n("+c+": "+i+")",t.name="ChunkLoadError",t.type=c,t.request=i,n[1](t)}}),"chunk-"+r,r)}else e[r]=0},__webpack_require__.O.j=r=>0===e[r];var webpackJsonpCallback=(r,a)=>{var n,c,[i,t,_]=a,b=0;if(i.some((r=>0!==e[r]))){for(n in t)__webpack_require__.o(t,n)&&(__webpack_require__.m[n]=t[n]);if(_)var o=_(__webpack_require__)}for(r&&r(a);b<i.length;b++)c=i[b],__webpack_require__.o(e,c)&&e[c]&&e[c][0](),e[c]=0;return __webpack_require__.O(o)},r=self.webpackChunkelementor_pro=self.webpackChunkelementor_pro||[];r.forEach(webpackJsonpCallback.bind(null,0)),r.push=webpackJsonpCallback.bind(null,r.push.bind(r))})()})();
;/*! elementor - v3.24.0 - 23-09-2024 */
(()=>{"use strict";var e,r,_,t,a,i={},n={};function __webpack_require__(e){var r=n[e];if(void 0!==r)return r.exports;var _=n[e]={exports:{}};return i[e].call(_.exports,_,_.exports,__webpack_require__),_.exports}__webpack_require__.m=i,e=[],__webpack_require__.O=(r,_,t,a)=>{if(!_){var i=1/0;for(u=0;u<e.length;u++){for(var[_,t,a]=e[u],n=!0,c=0;c<_.length;c++)(!1&a||i>=a)&&Object.keys(__webpack_require__.O).every((e=>__webpack_require__.O[e](_[c])))?_.splice(c--,1):(n=!1,a<i&&(i=a));if(n){e.splice(u--,1);var o=t();void 0!==o&&(r=o)}}return r}a=a||0;for(var u=e.length;u>0&&e[u-1][2]>a;u--)e[u]=e[u-1];e[u]=[_,t,a]},_=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__,__webpack_require__.t=function(e,t){if(1&t&&(e=this(e)),8&t)return e;if("object"==typeof e&&e){if(4&t&&e.__esModule)return e;if(16&t&&"function"==typeof e.then)return e}var a=Object.create(null);__webpack_require__.r(a);var i={};r=r||[null,_({}),_([]),_(_)];for(var n=2&t&&e;"object"==typeof n&&!~r.indexOf(n);n=_(n))Object.getOwnPropertyNames(n).forEach((r=>i[r]=()=>e[r]));return i.default=()=>e,__webpack_require__.d(a,i),a},__webpack_require__.d=(e,r)=>{for(var _ in r)__webpack_require__.o(r,_)&&!__webpack_require__.o(e,_)&&Object.defineProperty(e,_,{enumerable:!0,get:r[_]})},__webpack_require__.f={},__webpack_require__.e=e=>Promise.all(Object.keys(__webpack_require__.f).reduce(((r,_)=>(__webpack_require__.f[_](e,r),r)),[])),__webpack_require__.u=e=>723===e?"lightbox.26bf6b6c4232d8789c0e.bundle.min.js":48===e?"text-path.2bc8a9cd0e50cf1a5a9c.bundle.min.js":209===e?"accordion.8799675460c73eb48972.bundle.min.js":745===e?"alert.cbc2a0fee74ee3ed0419.bundle.min.js":120===e?"counter.02cef29c589e742d4c8c.bundle.min.js":192===e?"progress.985f012a6336ab21cb44.bundle.min.js":520===e?"tabs.c2af5be7f9cb3cdcf3d5.bundle.min.js":181===e?"toggle.31881477c45ff5cf9d4d.bundle.min.js":791===e?"video.78c625e89ab767d621c5.bundle.min.js":268===e?"image-carousel.4455c6362492d9067512.bundle.min.js":357===e?"text-editor.2c35aafbe5bf0e127950.bundle.min.js":52===e?"wp-audio.75f0ced143febb8cd31a.bundle.min.js":413===e?"container.c65a2a923085e1120e75.bundle.min.js":void 0,__webpack_require__.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),__webpack_require__.o=(e,r)=>Object.prototype.hasOwnProperty.call(e,r),t={},a="elementor:",__webpack_require__.l=(e,r,_,i)=>{if(t[e])t[e].push(r);else{var n,c;if(void 0!==_)for(var o=document.getElementsByTagName("script"),u=0;u<o.length;u++){var b=o[u];if(b.getAttribute("src")==e||b.getAttribute("data-webpack")==a+_){n=b;break}}n||(c=!0,(n=document.createElement("script")).charset="utf-8",n.timeout=120,__webpack_require__.nc&&n.setAttribute("nonce",__webpack_require__.nc),n.setAttribute("data-webpack",a+_),n.src=e),t[e]=[r];var onScriptComplete=(r,_)=>{n.onerror=n.onload=null,clearTimeout(p);var a=t[e];if(delete t[e],n.parentNode&&n.parentNode.removeChild(n),a&&a.forEach((e=>e(_))),r)return r(_)},p=setTimeout(onScriptComplete.bind(null,void 0,{type:"timeout",target:n}),12e4);n.onerror=onScriptComplete.bind(null,n.onerror),n.onload=onScriptComplete.bind(null,n.onload),c&&document.head.appendChild(n)}},__webpack_require__.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},(()=>{var e;__webpack_require__.g.importScripts&&(e=__webpack_require__.g.location+"");var r=__webpack_require__.g.document;if(!e&&r&&(r.currentScript&&(e=r.currentScript.src),!e)){var _=r.getElementsByTagName("script");if(_.length)for(var t=_.length-1;t>-1&&!e;)e=_[t--].src}if(!e)throw new Error("Automatic publicPath is not supported in this browser");e=e.replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),__webpack_require__.p=e})(),(()=>{var e={162:0};__webpack_require__.f.j=(r,_)=>{var t=__webpack_require__.o(e,r)?e[r]:void 0;if(0!==t)if(t)_.push(t[2]);else if(162!=r){var a=new Promise(((_,a)=>t=e[r]=[_,a]));_.push(t[2]=a);var i=__webpack_require__.p+__webpack_require__.u(r),n=new Error;__webpack_require__.l(i,(_=>{if(__webpack_require__.o(e,r)&&(0!==(t=e[r])&&(e[r]=void 0),t)){var a=_&&("load"===_.type?"missing":_.type),i=_&&_.target&&_.target.src;n.message="Loading chunk "+r+" failed.\n("+a+": "+i+")",n.name="ChunkLoadError",n.type=a,n.request=i,t[1](n)}}),"chunk-"+r,r)}else e[r]=0},__webpack_require__.O.j=r=>0===e[r];var webpackJsonpCallback=(r,_)=>{var t,a,[i,n,c]=_,o=0;if(i.some((r=>0!==e[r]))){for(t in n)__webpack_require__.o(n,t)&&(__webpack_require__.m[t]=n[t]);if(c)var u=c(__webpack_require__)}for(r&&r(_);o<i.length;o++)a=i[o],__webpack_require__.o(e,a)&&e[a]&&e[a][0](),e[a]=0;return __webpack_require__.O(u)},r=self.webpackChunkelementor=self.webpackChunkelementor||[];r.forEach(webpackJsonpCallback.bind(null,0)),r.push=webpackJsonpCallback.bind(null,r.push.bind(r))})()})();
;/*! elementor - v3.24.0 - 23-09-2024 */
(self.webpackChunkelementor=self.webpackChunkelementor||[]).push([[354],{381:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;t.default=(e,t)=>{t=Array.isArray(t)?t:[t];for(const n of t)if(e.constructor.name===n.prototype[Symbol.toStringTag])return!0;return!1}},8135:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;class _default extends elementorModules.ViewModule{getDefaultSettings(){return{selectors:{elements:".elementor-element",nestedDocumentElements:".elementor .elementor-element"},classes:{editMode:"elementor-edit-mode"}}}getDefaultElements(){const e=this.getSettings("selectors");return{$elements:this.$element.find(e.elements).not(this.$element.find(e.nestedDocumentElements))}}getDocumentSettings(e){let t;if(this.isEdit){t={};const e=elementor.settings.page.model;jQuery.each(e.getActiveControls(),(n=>{t[n]=e.attributes[n]}))}else t=this.$element.data("elementor-settings")||{};return this.getItems(t,e)}runElementsHandlers(){this.elements.$elements.each(((e,t)=>setTimeout((()=>elementorFrontend.elementsHandler.runReadyTrigger(t)))))}onInit(){this.$element=this.getSettings("$element"),super.onInit(),this.isEdit=this.$element.hasClass(this.getSettings("classes.editMode")),this.isEdit?elementor.on("document:loaded",(()=>{elementor.settings.page.model.on("change",this.onSettingsChange.bind(this))})):this.runElementsHandlers()}onSettingsChange(){}}t.default=_default},6752:(e,t,n)=>{"use strict";var i=n(3203);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var s=i(n(3090));class NestedTitleKeyboardHandler extends s.default{__construct(e){super.__construct(e),this.directionNext="next",this.directionPrevious="previous",this.focusableElementSelector='audio, button, canvas, details, iframe, input, select, summary, textarea, video, [accesskey], [contenteditable], [href], [tabindex]:not([tabindex="-1"])'}getWidgetNumber(){return this.$element.find("> .elementor-widget-container > .e-n-tabs, > .e-n-tabs").attr("data-widget-number")}getDefaultSettings(){return{selectors:{itemTitle:`[id*="e-n-tab-title-${this.getWidgetNumber()}"]`,itemContainer:`[id*="e-n-tab-content-${this.getWidgetNumber()}"]`},ariaAttributes:{titleStateAttribute:"aria-selected",activeTitleSelector:'[aria-selected="true"]'},datasets:{titleIndex:"data-tab-index"},keyDirection:{ArrowLeft:elementorFrontendConfig.is_rtl?this.directionNext:this.directionPrevious,ArrowUp:this.directionPrevious,ArrowRight:elementorFrontendConfig.is_rtl?this.directionPrevious:this.directionNext,ArrowDown:this.directionNext}}}getDefaultElements(){const e=this.getSettings("selectors");return{$itemTitles:this.findElement(e.itemTitle),$itemContainers:this.findElement(e.itemContainer),$focusableContainerElements:this.getFocusableElements(this.findElement(e.itemContainer))}}getFocusableElements(e){return e.find(this.focusableElementSelector).not("[disabled], [inert]")}getKeyDirectionValue(e){const t=this.getSettings("keyDirection")[e.key];return this.directionNext===t?1:-1}getTitleIndex(e){const{titleIndex:t}=this.getSettings("datasets");return e.getAttribute(t)}getTitleFilterSelector(e){const{titleIndex:t}=this.getSettings("datasets");return`[${t}="${e}"]`}getActiveTitleElement(){const e=this.getSettings("ariaAttributes").activeTitleSelector;return this.elements.$itemTitles.filter(e)}onInit(){super.onInit(...arguments)}bindEvents(){this.elements.$itemTitles.on(this.getTitleEvents()),this.elements.$focusableContainerElements.on(this.getContentElementEvents())}unbindEvents(){this.elements.$itemTitles.off(this.getTitleEvents()),this.elements.$focusableContainerElements.children().off(this.getContentElementEvents())}getTitleEvents(){return{keydown:this.handleTitleKeyboardNavigation.bind(this)}}getContentElementEvents(){return{keydown:this.handleContentElementKeyboardNavigation.bind(this)}}isDirectionKey(e){return["ArrowLeft","ArrowRight","ArrowUp","ArrowDown","Home","End"].includes(e.key)}isActivationKey(e){return["Enter"," "].includes(e.key)}handleTitleKeyboardNavigation(e){if(this.isDirectionKey(e)){e.preventDefault();const t=parseInt(this.getTitleIndex(e.currentTarget))||1,n=this.elements.$itemTitles.length,i=this.getTitleIndexFocusUpdated(e,t,n);this.changeTitleFocus(i),e.stopPropagation()}else if(this.isActivationKey(e)){if(e.preventDefault(),this.handeTitleLinkEnterOrSpaceEvent(e))return;const t=this.getTitleIndex(e.currentTarget);elementorFrontend.elements.$window.trigger("elementor/nested-elements/activate-by-keyboard",{widgetId:this.getID(),titleIndex:t})}else"Escape"===e.key&&this.handleTitleEscapeKeyEvents(e)}handeTitleLinkEnterOrSpaceEvent(e){const t="a"===e?.currentTarget?.tagName?.toLowerCase();return!elementorFrontend.isEditMode()&&t&&(e?.currentTarget?.click(),e.stopPropagation()),t}getTitleIndexFocusUpdated(e,t,n){let i=0;switch(e.key){case"Home":i=1;break;case"End":i=n;break;default:const s=this.getKeyDirectionValue(e);i=n<t+s?1:0===t+s?n:t+s}return i}changeTitleFocus(e){const t=this.elements.$itemTitles.filter(this.getTitleFilterSelector(e));this.setTitleTabindex(e),t.trigger("focus")}setTitleTabindex(e){this.elements.$itemTitles.attr("tabindex","-1");this.elements.$itemTitles.filter(this.getTitleFilterSelector(e)).attr("tabindex","0")}handleTitleEscapeKeyEvents(){}handleContentElementKeyboardNavigation(e){"Tab"!==e.key||e.shiftKey?"Escape"===e.key&&(e.preventDefault(),e.stopPropagation(),this.handleContentElementEscapeEvents(e)):this.handleContentElementTabEvents(e)}handleContentElementEscapeEvents(){this.getActiveTitleElement().trigger("focus")}handleContentElementTabEvents(){}}t.default=NestedTitleKeyboardHandler},1292:(e,t,n)=>{"use strict";var i=n(3203);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var s=i(n(2821));class CarouselHandlerBase extends s.default{getDefaultSettings(){return{selectors:{carousel:`.${elementorFrontend.config.swiperClass}`,swiperWrapper:".swiper-wrapper",slideContent:".swiper-slide",swiperArrow:".elementor-swiper-button",paginationWrapper:".swiper-pagination",paginationBullet:".swiper-pagination-bullet",paginationBulletWrapper:".swiper-pagination-bullets"}}}getDefaultElements(){const e=this.getSettings("selectors"),t={$swiperContainer:this.$element.find(e.carousel),$swiperWrapper:this.$element.find(e.swiperWrapper),$swiperArrows:this.$element.find(e.swiperArrow),$paginationWrapper:this.$element.find(e.paginationWrapper),$paginationBullets:this.$element.find(e.paginationBullet),$paginationBulletWrapper:this.$element.find(e.paginationBulletWrapper)};return t.$slides=t.$swiperContainer.find(e.slideContent),t}getSwiperSettings(){const e=this.getElementSettings(),t=+e.slides_to_show||3,n=1===t,i=elementorFrontend.config.responsive.activeBreakpoints,s={mobile:1,tablet:n?1:2},r={slidesPerView:t,loop:"yes"===e.infinite,speed:e.speed,handleElementorBreakpoints:!0,breakpoints:{}};let o=t;Object.keys(i).reverse().forEach((t=>{const n=s[t]?s[t]:o;r.breakpoints[i[t].value]={slidesPerView:+e["slides_to_show_"+t]||n,slidesPerGroup:+e["slides_to_scroll_"+t]||1},e.image_spacing_custom&&(r.breakpoints[i[t].value].spaceBetween=this.getSpaceBetween(t)),o=+e["slides_to_show_"+t]||n})),"yes"===e.autoplay&&(r.autoplay={delay:e.autoplay_speed,disableOnInteraction:"yes"===e.pause_on_interaction}),n?(r.effect=e.effect,"fade"===e.effect&&(r.fadeEffect={crossFade:!0})):r.slidesPerGroup=+e.slides_to_scroll||1,e.image_spacing_custom&&(r.spaceBetween=this.getSpaceBetween());const a="arrows"===e.navigation||"both"===e.navigation,l="dots"===e.navigation||"both"===e.navigation||e.pagination;return a&&(r.navigation={prevEl:".elementor-swiper-button-prev",nextEl:".elementor-swiper-button-next"}),l&&(r.pagination={el:`.elementor-element-${this.getID()} .swiper-pagination`,type:e.pagination?e.pagination:"bullets",clickable:!0,renderBullet:(e,t)=>`<span class="${t}" data-bullet-index="${e}" aria-label="${elementorFrontend.config.i18n.a11yCarouselPaginationBulletMessage} ${e+1}"></span>`}),"yes"===e.lazyload&&(r.lazy={loadPrevNext:!0,loadPrevNextAmount:1}),r.a11y={enabled:!0,prevSlideMessage:elementorFrontend.config.i18n.a11yCarouselPrevSlideMessage,nextSlideMessage:elementorFrontend.config.i18n.a11yCarouselNextSlideMessage,firstSlideMessage:elementorFrontend.config.i18n.a11yCarouselFirstSlideMessage,lastSlideMessage:elementorFrontend.config.i18n.a11yCarouselLastSlideMessage},r.on={slideChangeTransitionEnd:()=>{this.a11ySetSlideAriaHidden()},slideChange:()=>{this.a11ySetPaginationTabindex(),this.handleElementHandlers()},init:()=>{this.a11ySetWidgetAriaDetails(),this.a11ySetPaginationTabindex(),this.a11ySetSlideAriaHidden("initialisation")}},this.applyOffsetSettings(e,r,t),r}getOffsetWidth(){const e=elementorFrontend.getCurrentDeviceMode();return elementorFrontend.utils.controls.getResponsiveControlValue(this.getElementSettings(),"offset_width","size",e)||0}applyOffsetSettings(e,t,n){const i=e.offset_sides;if(!(elementorFrontend.isEditMode()&&"NestedCarousel"===this.constructor.name)&&i&&"none"!==i)switch(i){case"right":this.forceSliderToShowNextSlideWhenOnLast(t,n),this.addClassToSwiperContainer("offset-right");break;case"left":this.addClassToSwiperContainer("offset-left");break;case"both":this.forceSliderToShowNextSlideWhenOnLast(t,n),this.addClassToSwiperContainer("offset-both")}}forceSliderToShowNextSlideWhenOnLast(e,t){e.slidesPerView=t+.001}addClassToSwiperContainer(e){this.getDefaultElements().$swiperContainer[0].classList.add(e)}async onInit(){if(super.onInit(...arguments),!this.elements.$swiperContainer.length||2>this.elements.$slides.length)return;await this.initSwiper();"yes"===this.getElementSettings().pause_on_hover&&this.togglePauseOnHover(!0)}async initSwiper(){const e=elementorFrontend.utils.swiper;this.swiper=await new e(this.elements.$swiperContainer,this.getSwiperSettings()),this.elements.$swiperContainer.data("swiper",this.swiper)}bindEvents(){this.elements.$swiperArrows.on("keydown",this.onDirectionArrowKeydown.bind(this)),this.elements.$paginationWrapper.on("keydown",".swiper-pagination-bullet",this.onDirectionArrowKeydown.bind(this)),this.elements.$swiperContainer.on("keydown",".swiper-slide",this.onDirectionArrowKeydown.bind(this)),this.$element.find(":focusable").on("focus",this.onFocusDisableAutoplay.bind(this)),elementorFrontend.elements.$window.on("resize",this.getSwiperSettings.bind(this))}unbindEvents(){this.elements.$swiperArrows.off(),this.elements.$paginationWrapper.off(),this.elements.$swiperContainer.off(),this.$element.find(":focusable").off(),elementorFrontend.elements.$window.off("resize")}onDirectionArrowKeydown(e){const t=elementorFrontend.config.is_rtl,n=e.originalEvent.code,i=t?"ArrowLeft":"ArrowRight";if(!(-1!==["ArrowLeft","ArrowRight"].indexOf(n)))return!0;(t?"ArrowRight":"ArrowLeft")===n?this.swiper.slidePrev():i===n&&this.swiper.slideNext()}onFocusDisableAutoplay(){this.swiper.autoplay.stop()}updateSwiperOption(e){const t=this.getElementSettings()[e],n=this.swiper.params;switch(e){case"autoplay_speed":n.autoplay.delay=t;break;case"speed":n.speed=t}this.swiper.update()}getChangeableProperties(){return{pause_on_hover:"pauseOnHover",autoplay_speed:"delay",speed:"speed",arrows_position:"arrows_position"}}onElementChange(e){if(0===e.indexOf("image_spacing_custom"))return void this.updateSpaceBetween(e);if(this.getChangeableProperties()[e])if("pause_on_hover"===e){const e=this.getElementSettings("pause_on_hover");this.togglePauseOnHover("yes"===e)}else this.updateSwiperOption(e)}onEditSettingsChange(e){"activeItemIndex"===e&&this.swiper.slideToLoop(this.getEditSettings("activeItemIndex")-1)}getSpaceBetween(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return elementorFrontend.utils.controls.getResponsiveControlValue(this.getElementSettings(),"image_spacing_custom","size",e)||0}updateSpaceBetween(e){const t=e.match("image_spacing_custom_(.*)"),n=t?t[1]:"desktop",i=this.getSpaceBetween(n);"desktop"!==n&&(this.swiper.params.breakpoints[elementorFrontend.config.responsive.activeBreakpoints[n].value].spaceBetween=i),this.swiper.params.spaceBetween=i,this.swiper.update()}getPaginationBullets(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"array";const t=this.$element.find(this.getSettings("selectors").paginationBullet);return"array"===e?Array.from(t):t}a11ySetWidgetAriaDetails(){const e=this.$element;e.attr("aria-roledescription","carousel"),e.attr("aria-label",elementorFrontend.config.i18n.a11yCarouselWrapperAriaLabel)}a11ySetPaginationTabindex(){const e=this.swiper?.params?.pagination.bulletClass,t=this.swiper?.params?.pagination.bulletActiveClass;this.getPaginationBullets().forEach((e=>{e.classList?.contains(t)||e.removeAttribute("tabindex")}));const n="ArrowLeft"===event?.code||"ArrowRight"===event?.code;event?.target?.classList?.contains(e)&&n&&this.$element.find(`.${t}`).trigger("focus")}getSwiperWrapperTranformXValue(){let e=this.elements.$swiperWrapper[0]?.style.transform;return e=e.replace("translate3d(",""),e=e.split(","),e=parseInt(e[0].replace("px","")),e||0}a11ySetSlideAriaHidden(){if("number"!=typeof("initialisation"===(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"")?0:this.swiper?.activeIndex))return;const e=this.getSwiperWrapperTranformXValue(),t=this.elements.$swiperWrapper[0].clientWidth;this.elements.$swiperContainer.find(this.getSettings("selectors").slideContent).each(((n,i)=>{0<=i.offsetLeft+e&&t>i.offsetLeft+e?(i.removeAttribute("aria-hidden"),i.removeAttribute("inert")):(i.setAttribute("aria-hidden",!0),i.setAttribute("inert",""))}))}handleElementHandlers(){}}t.default=CarouselHandlerBase},2821:(e,t,n)=>{"use strict";var i=n(3203);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var s=i(n(3090));class SwiperHandlerBase extends s.default{getInitialSlide(){const e=this.getEditSettings();return e.activeItemIndex?e.activeItemIndex-1:0}getSlidesCount(){return this.elements.$slides.length}togglePauseOnHover(e){e?this.elements.$swiperContainer.on({mouseenter:()=>{this.swiper.autoplay.stop()},mouseleave:()=>{this.swiper.autoplay.start()}}):this.elements.$swiperContainer.off("mouseenter mouseleave")}handleKenBurns(){const e=this.getSettings();this.$activeImageBg&&this.$activeImageBg.removeClass(e.classes.kenBurnsActive),this.activeItemIndex=this.swiper?this.swiper.activeIndex:this.getInitialSlide(),this.swiper?this.$activeImageBg=jQuery(this.swiper.slides[this.activeItemIndex]).children("."+e.classes.slideBackground):this.$activeImageBg=jQuery(this.elements.$slides[0]).children("."+e.classes.slideBackground),this.$activeImageBg.addClass(e.classes.kenBurnsActive)}}t.default=SwiperHandlerBase},3090:e=>{"use strict";e.exports=elementorModules.ViewModule.extend({$element:null,editorListeners:null,onElementChange:null,onEditSettingsChange:null,onPageSettingsChange:null,isEdit:null,__construct(e){this.isActive(e)&&(this.$element=e.$element,this.isEdit=this.$element.hasClass("elementor-element-edit-mode"),this.isEdit&&this.addEditorListeners())},isActive:()=>!0,isElementInTheCurrentDocument(){return!!elementorFrontend.isEditMode()&&elementor.documents.currentDocument.id.toString()===this.$element[0].closest(".elementor").dataset.elementorId},findElement(e){var t=this.$element;return t.find(e).filter((function(){return jQuery(this).parent().closest(".elementor-element").is(t)}))},getUniqueHandlerID(e,t){return e||(e=this.getModelCID()),t||(t=this.$element),e+t.attr("data-element_type")+this.getConstructorID()},initEditorListeners(){var e=this;if(e.editorListeners=[{event:"element:destroy",to:elementor.channels.data,callback(t){t.cid===e.getModelCID()&&e.onDestroy()}}],e.onElementChange){const t=e.getWidgetType()||e.getElementType();let n="change";"global"!==t&&(n+=":"+t),e.editorListeners.push({event:n,to:elementor.channels.editor,callback(t,n){e.getUniqueHandlerID(n.model.cid,n.$el)===e.getUniqueHandlerID()&&e.onElementChange(t.model.get("name"),t,n)}})}e.onEditSettingsChange&&e.editorListeners.push({event:"change:editSettings",to:elementor.channels.editor,callback(t,n){if(n.model.cid!==e.getModelCID())return;const i=Object.keys(t.changed)[0];e.onEditSettingsChange(i,t.changed[i])}}),["page"].forEach((function(t){var n="on"+t[0].toUpperCase()+t.slice(1)+"SettingsChange";e[n]&&e.editorListeners.push({event:"change",to:elementor.settings[t].model,callback(t){e[n](t.changed)}})}))},getEditorListeners(){return this.editorListeners||this.initEditorListeners(),this.editorListeners},addEditorListeners(){var e=this.getUniqueHandlerID();this.getEditorListeners().forEach((function(t){elementorFrontend.addListenerOnce(e,t.event,t.callback,t.to)}))},removeEditorListeners(){var e=this.getUniqueHandlerID();this.getEditorListeners().forEach((function(t){elementorFrontend.removeListeners(e,t.event,null,t.to)}))},getElementType(){return this.$element.data("element_type")},getWidgetType(){const e=this.$element.data("widget_type");if(e)return e.split(".")[0]},getID(){return this.$element.data("id")},getModelCID(){return this.$element.data("model-cid")},getElementSettings(e){let t={};const n=this.getModelCID();if(this.isEdit&&n){const e=elementorFrontend.config.elements.data[n],i=e.attributes;let s=i.widgetType||i.elType;i.isInner&&(s="inner-"+s);let r=elementorFrontend.config.elements.keys[s];r||(r=elementorFrontend.config.elements.keys[s]=[],jQuery.each(e.controls,((e,t)=>{(t.frontend_available||t.editor_available)&&r.push(e)}))),jQuery.each(e.getActiveControls(),(function(e){if(-1!==r.indexOf(e)){let n=i[e];n.toJSON&&(n=n.toJSON()),t[e]=n}}))}else t=this.$element.data("settings")||{};return this.getItems(t,e)},getEditSettings(e){var t={};return this.isEdit&&(t=elementorFrontend.config.elements.editSettings[this.getModelCID()].attributes),this.getItems(t,e)},getCurrentDeviceSetting(e){return elementorFrontend.getCurrentDeviceSetting(this.getElementSettings(),e)},onInit(){this.isActive(this.getSettings())&&elementorModules.ViewModule.prototype.onInit.apply(this,arguments)},onDestroy(){this.isEdit&&this.removeEditorListeners(),this.unbindEvents&&this.unbindEvents()}})},2263:(e,t,n)=>{"use strict";var i=n(3203);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var s=i(n(3090));class StretchedElement extends s.default{getStretchedClass(){return"e-stretched"}getStretchSettingName(){return"stretch_element"}getStretchActiveValue(){return"yes"}bindEvents(){const e=this.getUniqueHandlerID();elementorFrontend.addListenerOnce(e,"resize",this.stretch),elementorFrontend.addListenerOnce(e,"sticky:stick",this.stretch,this.$element),elementorFrontend.addListenerOnce(e,"sticky:unstick",this.stretch,this.$element),elementorFrontend.isEditMode()&&(this.onKitChangeStretchContainerChange=this.onKitChangeStretchContainerChange.bind(this),elementor.channels.editor.on("kit:change:stretchContainer",this.onKitChangeStretchContainerChange))}unbindEvents(){elementorFrontend.removeListeners(this.getUniqueHandlerID(),"resize",this.stretch),elementorFrontend.isEditMode()&&elementor.channels.editor.off("kit:change:stretchContainer",this.onKitChangeStretchContainerChange)}isActive(e){return elementorFrontend.isEditMode()||e.$element.hasClass(this.getStretchedClass())}getStretchElementForConfig(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return e?this.$element.find(e):this.$element}getStretchElementConfig(){return{element:this.getStretchElementForConfig(),selectors:{container:this.getStretchContainer()},considerScrollbar:elementorFrontend.isEditMode()&&elementorFrontend.config.is_rtl}}initStretch(){this.stretch=this.stretch.bind(this),this.stretchElement=new elementorModules.frontend.tools.StretchElement(this.getStretchElementConfig())}getStretchContainer(){return elementorFrontend.getKitSettings("stretched_section_container")||window}isStretchSettingEnabled(){return this.getElementSettings(this.getStretchSettingName())===this.getStretchActiveValue()}stretch(){this.isStretchSettingEnabled()&&this.stretchElement.stretch()}onInit(){this.isActive(this.getSettings())&&(this.initStretch(),super.onInit(...arguments),this.stretch())}onElementChange(e){this.getStretchSettingName()===e&&(this.isStretchSettingEnabled()?this.stretch():this.stretchElement.reset())}onKitChangeStretchContainerChange(){this.stretchElement.setSettings("selectors.container",this.getStretchContainer()),this.stretch()}}t.default=StretchedElement},6412:(e,t,n)=>{"use strict";var i=n(3203),s=i(n(5955)),r=i(n(8135)),o=i(n(5658)),a=i(n(2263)),l=i(n(3090)),c=i(n(2821)),d=i(n(1292)),u=i(n(7323)),h=i(n(32)),m=i(n(5877)),g=i(n(7712)),p=i(n(6752));s.default.frontend={Document:r.default,tools:{StretchElement:o.default},handlers:{Base:l.default,StretchedElement:a.default,SwiperBase:c.default,CarouselBase:d.default,NestedTabs:u.default,NestedAccordion:h.default,NestedTitleKeyboardHandler:p.default,ContactButtonsHandler:m.default,FloatingBarsHandler:g.default}}},5658:e=>{"use strict";e.exports=elementorModules.ViewModule.extend({getDefaultSettings:()=>({element:null,direction:elementorFrontend.config.is_rtl?"right":"left",selectors:{container:window},considerScrollbar:!1,cssOutput:"inline"}),getDefaultElements(){return{$element:jQuery(this.getSettings("element"))}},stretch(){const e=this.getSettings();let t;try{t=jQuery(e.selectors.container)}catch(e){}t&&t.length||(t=jQuery(this.getDefaultSettings().selectors.container)),this.reset();var n=this.elements.$element,i=t.innerWidth(),s=n.offset().left,r="fixed"===n.css("position"),o=r?0:s,a=window===t[0];if(!a){var l=t.offset().left;r&&(o=l),s>l&&(o=s-l)}if(e.considerScrollbar&&a){o-=window.innerWidth-i}r||(elementorFrontend.config.is_rtl&&(o=i-(n.outerWidth()+o)),o=-o),e.margin&&(o+=e.margin);var c={};let d=i;e.margin&&(d-=2*e.margin),c.width=d+"px",c[e.direction]=o+"px","variables"!==e.cssOutput?n.css(c):this.applyCssVariables(n,c)},reset(){const e={},t=this.getSettings(),n=this.elements.$element;"variables"!==t.cssOutput?(e.width="",e[t.direction]="",n.css(e)):this.resetCssVariables(n)},applyCssVariables(e,t){e.css("--stretch-width",t.width),t.left?e.css("--stretch-left",t.left):e.css("--stretch-right",t.right)},resetCssVariables(e){e.css({"--stretch-width":"","--stretch-left":"","--stretch-right":""})}})},6630:(e,t)=>{"use strict";function getChildrenWidth(e){let t=0;const n=e[0].parentNode,i=getComputedStyle(n),s=parseFloat(i.gap)||0;for(let n=0;n<e.length;n++)t+=e[n].offsetWidth+s;return t}Object.defineProperty(t,"__esModule",{value:!0}),t.changeScrollStatus=function changeScrollStatus(e,t){"mousedown"===t.type?(e.classList.add("e-scroll"),e.dataset.pageX=t.pageX):(e.classList.remove("e-scroll","e-scroll-active"),e.dataset.pageX="")},t.setHorizontalScrollAlignment=function setHorizontalScrollAlignment(e){let{element:t,direction:n,justifyCSSVariable:i,horizontalScrollStatus:s}=e;if(!t)return;!function isHorizontalScroll(e,t){return e.clientWidth<getChildrenWidth(e.children)&&"enable"===t}(t,s)?t.style.setProperty(i,""):function initialScrollPosition(e,t,n){const i=elementorFrontend.config.is_rtl;if("end"===t)e.style.setProperty(n,"start"),e.scrollLeft=i?-1*getChildrenWidth(e.children):getChildrenWidth(e.children);else e.style.setProperty(n,"start"),e.scrollLeft=0}(t,n,i)},t.setHorizontalTitleScrollValues=function setHorizontalTitleScrollValues(e,t,n){const i=e.classList.contains("e-scroll"),s="enable"===t,r=e.scrollWidth>e.clientWidth;if(!i||!s||!r)return;n.preventDefault();const o=parseFloat(e.dataset.pageX),a=n.pageX-o;let l=0;l=20<a?5:-20>a?-5:a;e.scrollLeft=e.scrollLeft-l,e.classList.add("e-scroll-active")}},2618:(e,t,n)=>{"use strict";var i=n(3203);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,n(740);var s=i(n(7597)),r=i(n(381));class ArgsObject extends s.default{static getInstanceType(){return"ArgsObject"}constructor(e){super(),this.args=e}requireArgument(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.args;if(!Object.prototype.hasOwnProperty.call(t,e))throw Error(`${e} is required.`)}requireArgumentType(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:this.args;if(this.requireArgument(e,n),typeof n[e]!==t)throw Error(`${e} invalid type: ${t}.`)}requireArgumentInstance(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:this.args;if(this.requireArgument(e,n),!(n[e]instanceof t||(0,r.default)(n[e],t)))throw Error(`${e} invalid instance.`)}requireArgumentConstructor(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:this.args;if(this.requireArgument(e,n),n[e].constructor.toString()!==t.prototype.constructor.toString())throw Error(`${e} invalid constructor type.`)}}t.default=ArgsObject},869:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.ForceMethodImplementation=void 0,n(740);class ForceMethodImplementation extends Error{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};super(`${e.isStatic?"static ":""}${e.fullName}() should be implemented, please provide '${e.functionName||e.fullName}' functionality.`,t),Object.keys(t).length&&console.error(t),Error.captureStackTrace(this,ForceMethodImplementation)}}t.ForceMethodImplementation=ForceMethodImplementation;t.default=e=>{const t=Error().stack.split("\n")[2].trim(),n=t.startsWith("at new")?"constructor":t.split(" ")[1],i={};if(i.functionName=n,i.fullName=n,i.functionName.includes(".")){const e=i.functionName.split(".");i.className=e[0],i.functionName=e[1]}else i.isStatic=!0;throw new ForceMethodImplementation(i,e)}},7597:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;class InstanceType{static[Symbol.hasInstance](e){let t=super[Symbol.hasInstance](e);if(e&&!e.constructor.getInstanceType)return t;if(e&&(e.instanceTypes||(e.instanceTypes=[]),t||this.getInstanceType()===e.constructor.getInstanceType()&&(t=!0),t)){const t=this.getInstanceType===InstanceType.getInstanceType?"BaseInstanceType":this.getInstanceType();-1===e.instanceTypes.indexOf(t)&&e.instanceTypes.push(t)}return!t&&e&&(t=e.instanceTypes&&Array.isArray(e.instanceTypes)&&-1!==e.instanceTypes.indexOf(this.getInstanceType())),t}static getInstanceType(){elementorModules.ForceMethodImplementation()}constructor(){let e=new.target;const t=[];for(;e.__proto__&&e.__proto__.name;)t.push(e.__proto__),e=e.__proto__;t.reverse().forEach((e=>this instanceof e))}}t.default=InstanceType},1192:(e,t,n)=>{"use strict";n(740);const Module=function(){const e=jQuery,t=arguments,n=this,i={};let s;this.getItems=function(e,t){if(t){const n=t.split("."),i=n.splice(0,1);if(!n.length)return e[i];if(!e[i])return;return this.getItems(e[i],n.join("."))}return e},this.getSettings=function(e){return this.getItems(s,e)},this.setSettings=function(t,i,r){if(r||(r=s),"object"==typeof t)return e.extend(r,t),n;const o=t.split("."),a=o.splice(0,1);return o.length?(r[a]||(r[a]={}),n.setSettings(o.join("."),i,r[a])):(r[a]=i,n)},this.getErrorMessage=function(e,t){let n;if("forceMethodImplementation"===e)n=`The method '${t}' must to be implemented in the inheritor child.`;else n="An error occurs";return n},this.forceMethodImplementation=function(e){throw new Error(this.getErrorMessage("forceMethodImplementation",e))},this.on=function(t,s){if("object"==typeof t)return e.each(t,(function(e){n.on(e,this)})),n;return t.split(" ").forEach((function(e){i[e]||(i[e]=[]),i[e].push(s)})),n},this.off=function(e,t){if(!i[e])return n;if(!t)return delete i[e],n;const s=i[e].indexOf(t);return-1!==s&&(delete i[e][s],i[e]=i[e].filter((e=>e))),n},this.trigger=function(t){const s="on"+t[0].toUpperCase()+t.slice(1),r=Array.prototype.slice.call(arguments,1);n[s]&&n[s].apply(n,r);const o=i[t];return o?(e.each(o,(function(e,t){t.apply(n,r)})),n):n},n.__construct.apply(n,t),e.each(n,(function(e){const t=n[e];"function"==typeof t&&(n[e]=function(){return t.apply(n,arguments)})})),function(){s=n.getDefaultSettings();const i=t[0];i&&e.extend(!0,s,i)}(),n.trigger("init")};Module.prototype.__construct=function(){},Module.prototype.getDefaultSettings=function(){return{}},Module.prototype.getConstructorID=function(){return this.constructor.name},Module.extend=function(e){const t=jQuery,n=this,child=function(){return n.apply(this,arguments)};return t.extend(child,n),(child.prototype=Object.create(t.extend({},n.prototype,e))).constructor=child,child.__super__=n.prototype,child},e.exports=Module},6516:(e,t,n)=>{"use strict";var i=n(3203);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var s=i(n(2640)).default.extend({getDefaultSettings:()=>({container:null,items:null,columnsCount:3,verticalSpaceBetween:30}),getDefaultElements(){return{$container:jQuery(this.getSettings("container")),$items:jQuery(this.getSettings("items"))}},run(){var e=[],t=this.elements.$container.position().top,n=this.getSettings(),i=n.columnsCount;t+=parseInt(this.elements.$container.css("margin-top"),10),this.elements.$items.each((function(s){var r=Math.floor(s/i),o=jQuery(this),a=o[0].getBoundingClientRect().height+n.verticalSpaceBetween;if(r){var l=o.position(),c=s%i,d=l.top-t-e[c];d-=parseInt(o.css("margin-top"),10),d*=-1,o.css("margin-top",d+"px"),e[c]+=a}else e.push(a)}))}});t.default=s},400:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;t.default=class Scroll{static scrollObserver(e){let t=0;const n={root:e.root||null,rootMargin:e.offset||"0px",threshold:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;const t=[];if(e>0&&e<=100){const n=100/e;for(let e=0;e<=100;e+=n)t.push(e/100)}else t.push(0);return t}(e.sensitivity)};return new IntersectionObserver((function handleIntersect(n){const i=n[0].boundingClientRect.y,s=n[0].isIntersecting,r=i<t?"down":"up",o=Math.abs(parseFloat((100*n[0].intersectionRatio).toFixed(2)));e.callback({sensitivity:e.sensitivity,isInViewport:s,scrollPercentage:o,intersectionScrollDirection:r}),t=i}),n)}static getElementViewportPercentage(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const n=e[0].getBoundingClientRect(),i=t.start||0,s=t.end||0,r=window.innerHeight*i/100,o=window.innerHeight*s/100,a=n.top-window.innerHeight,l=0-a+r,c=n.top+r+e.height()-a+o,d=Math.max(0,Math.min(l/c,1));return parseFloat((100*d).toFixed(2))}static getPageScrollPercentage(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;const n=e.start||0,i=e.end||0,s=t||document.documentElement.scrollHeight-document.documentElement.clientHeight,r=s*n/100,o=s+r+s*i/100;return(document.documentElement.scrollTop+document.body.scrollTop+r)/o*100}}},2640:(e,t,n)=>{"use strict";var i=n(3203);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var s=i(n(1192)).default.extend({elements:null,getDefaultElements:()=>({}),bindEvents(){},onInit(){this.initElements(),this.bindEvents()},initElements(){this.elements=this.getDefaultElements()}});t.default=s},5955:(e,t,n)=>{"use strict";var i=n(3203);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var s=i(n(1192)),r=i(n(2640)),o=i(n(2618)),a=i(n(6516)),l=i(n(400)),c=i(n(869)),d=window.elementorModules={Module:s.default,ViewModule:r.default,ArgsObject:o.default,ForceMethodImplementation:c.default,utils:{Masonry:a.default,Scroll:l.default}};t.default=d},9509:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;t.default=class FloatingBarDomHelper{constructor(e){this.$element=e}maybeMoveToTop(){const e=this.$element[0],t=e.querySelector(".e-floating-bars");if(elementorFrontend.isEditMode())t.classList.add("is-sticky");else if(e.dataset.widget_type.startsWith("floating-bars")&&t.classList.contains("has-vertical-position-top")&&!t.classList.contains("is-sticky")){const t=document.getElementById("wpadminbar"),n=e.closest(".elementor");t?t.after(n):document.body.prepend(n)}}}},7712:(e,t,n)=>{"use strict";var i=n(3203);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var s=i(n(3090)),r=i(n(9509)),o=i(n(4380));class FloatingBarsHandler extends s.default{getDefaultSettings(){return{selectors:{main:".e-floating-bars",closeButton:".e-floating-bars__close-button",ctaButton:".e-floating-bars__cta-button"},constants:{ctaEntranceAnimation:"style_cta_button_animation",ctaEntranceAnimationDelay:"style_cta_button_animation_delay",hasEntranceAnimation:"has-entrance-animation",visible:"visible",isSticky:"is-sticky",hasVerticalPositionTop:"has-vertical-position-top",hasVerticalPositionBottom:"has-vertical-position-bottom",isHidden:"is-hidden",animated:"animated"}}}getDefaultElements(){const e=this.getSettings("selectors");return{main:this.$element[0].querySelector(e.main),mainAll:this.$element[0].querySelectorAll(e.main),closeButton:this.$element[0].querySelector(e.closeButton),ctaButton:this.$element[0].querySelector(e.ctaButton)}}onElementChange(e){["advanced_vertical_position"].includes(e)&&this.initDefaultState()}getResponsiveSetting(e){const t=elementorFrontend.getCurrentDeviceMode();return elementorFrontend.utils.controls.getResponsiveControlValue(this.getElementSettings(),e,"",t)}bindEvents(){this.elements.closeButton&&this.elements.closeButton.addEventListener("click",this.closeFloatingBar.bind(this)),this.elements.ctaButton&&this.elements.ctaButton.addEventListener("animationend",this.handleAnimationEnd.bind(this)),this.elements.main&&window.addEventListener("keyup",this.onDocumentKeyup.bind(this)),this.hasStickyElements()&&window.addEventListener("resize",this.handleStickyElements.bind(this))}isStickyTop(){const{isSticky:e,hasVerticalPositionTop:t}=this.getSettings("constants");return this.elements.main.classList.contains(e)&&this.elements.main.classList.contains(t)}isStickyBottom(){const{isSticky:e,hasVerticalPositionBottom:t}=this.getSettings("constants");return this.elements.main.classList.contains(e)&&this.elements.main.classList.contains(t)}hasStickyElements(){return document.querySelectorAll(".elementor-sticky").length>0}focusOnLoad(){this.elements.main.setAttribute("tabindex","0"),this.elements.main.focus({focusVisible:!0})}applyBodyPadding(){const e=this.elements.main.offsetHeight;document.body.style.paddingTop=`${e}px`}removeBodyPadding(){document.body.style.paddingTop="0"}handleWPAdminBar(){const e=elementorFrontend.elements.$wpAdminBar;e.length&&(this.elements.main.style.top=`${e.height()}px`)}handleStickyElements(){const e=this.elements.main.offsetHeight,t=elementorFrontend.elements.$wpAdminBar,n=document.querySelectorAll(".elementor-sticky:not(.elementor-sticky__spacer)");0!==n.length&&(n.forEach((n=>{const i=n.getAttribute("data-settings"),s=JSON.parse(i)?.sticky,r="0px"===n.style.top||"top"===s,o="0px"===n.style.bottom||"bottom"===s;this.isStickyTop()&&r?t.length?n.style.top=`${e+t.height()}px`:n.style.top=`${e}px`:this.isStickyBottom()&&o&&(n.style.bottom=`${e}px`),elementorFrontend.isEditMode()&&(r?n.style.top=this.isStickyTop()?`${e}px`:"0px":o&&(n.style.bottom=this.isStickyBottom()?`${e}px`:"0px"))})),document.querySelectorAll(".elementor-sticky__spacer").forEach((t=>{const n=t.getAttribute("data-settings"),i=JSON.parse(n)?.sticky,s="0px"===t.style.top||"top"===i;this.isStickyTop()&&s&&(t.style.marginBottom=`${e}px`)})))}closeFloatingBar(){const{isHidden:e}=this.getSettings("constants");elementorFrontend.isEditMode()||(this.elements.main.classList.add(e),this.hasStickyElements()?this.handleStickyElements():this.isStickyTop()&&this.removeBodyPadding())}initEntranceAnimation(){const{animated:e,ctaEntranceAnimation:t,ctaEntranceAnimationDelay:n,hasEntranceAnimation:i}=this.getSettings("constants"),s=this.getResponsiveSetting(t),r=(this.getResponsiveSetting(n)||0)+500;this.elements.ctaButton.classList.add(e),this.elements.ctaButton.classList.add(s),setTimeout((()=>{this.elements.ctaButton.classList.remove(i)}),r)}handleAnimationEnd(){this.removeEntranceAnimationClasses(),this.focusOnLoad()}removeEntranceAnimationClasses(){if(!this.elements.ctaButton)return;const{animated:e,ctaEntranceAnimation:t,visible:n}=this.getSettings("constants"),i=this.getResponsiveSetting(t);this.elements.ctaButton.classList.remove(e),this.elements.ctaButton.classList.remove(i),this.elements.ctaButton.classList.add(n)}onDocumentKeyup(e){27===e.keyCode&&this.elements.main&&this.elements.main.contains(document.activeElement)&&this.closeFloatingBar()}initDefaultState(){const{hasEntranceAnimation:e}=this.getSettings("constants");this.isStickyTop()&&this.handleWPAdminBar(),this.hasStickyElements()?this.handleStickyElements():this.isStickyTop()&&this.applyBodyPadding(),!this.elements.main||this.elements.ctaButton.classList.contains(e)||elementorFrontend.isEditMode()||this.focusOnLoad()}setupInnerContainer(){this.elements.main.closest(".e-con-inner").classList.add("e-con-inner--floating-bars"),this.elements.main.closest(".e-con").classList.add("e-con--floating-bars")}onInit(){const{hasEntranceAnimation:e}=this.getSettings("constants");super.onInit(...arguments),this.clickTrackingHandler=new o.default({$element:this.$element});new r.default(this.$element).maybeMoveToTop(),this.elements.ctaButton&&this.elements.ctaButton.classList.contains(e)&&this.initEntranceAnimation(),this.initDefaultState(),this.setupInnerContainer()}}t.default=FloatingBarsHandler},5877:(e,t,n)=>{"use strict";var i=n(3203);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var s=i(n(3090)),r=i(n(4380));class ContactButtonsHandler extends s.default{getDefaultSettings(){return{selectors:{main:".e-contact-buttons",content:".e-contact-buttons__content",contentWrapper:".e-contact-buttons__content-wrapper",chatButton:".e-contact-buttons__chat-button",closeButton:".e-contact-buttons__close-button",messageBubbleTime:".e-contact-buttons__message-bubble-time"},constants:{entranceAnimation:"style_chat_box_entrance_animation",exitAnimation:"style_chat_box_exit_animation",chatButtonAnimation:"style_chat_button_animation",animated:"animated",animatedWrapper:"animated-wrapper",visible:"visible",reverse:"reverse",hidden:"hidden",hasAnimations:"has-animations",hasEntranceAnimation:"has-entrance-animation",none:"none"}}}getDefaultElements(){const e=this.getSettings("selectors");return{main:this.$element[0].querySelector(e.main),content:this.$element[0].querySelector(e.content),contentWrapper:this.$element[0].querySelector(e.contentWrapper),chatButton:this.$element[0].querySelector(e.chatButton),closeButton:this.$element[0].querySelector(e.closeButton),messageBubbleTime:this.$element[0].querySelector(e.messageBubbleTime)}}getResponsiveSetting(e){const t=elementorFrontend.getCurrentDeviceMode();return elementorFrontend.utils.controls.getResponsiveControlValue(this.getElementSettings(),e,"",t)}bindEvents(){this.elements.closeButton&&this.elements.closeButton.addEventListener("click",this.closeChatBox.bind(this)),this.elements.chatButton&&(this.elements.chatButton.addEventListener("click",this.onChatButtonClick.bind(this)),this.elements.chatButton.addEventListener("animationend",this.removeChatButtonAnimationClasses.bind(this))),this.elements.content&&this.elements.content.addEventListener("animationend",this.removeAnimationClasses.bind(this)),this.elements.contentWrapper&&window.addEventListener("keyup",this.onDocumentKeyup.bind(this))}contentWrapperIsHidden(e){if(!this.elements.contentWrapper)return!1;const{hidden:t}=this.getSettings("constants");return!0===e?(this.elements.contentWrapper.classList.add(t),void this.elements.contentWrapper.setAttribute("aria-hidden","true")):!1===e?(this.elements.contentWrapper.classList.remove(t),void this.elements.contentWrapper.setAttribute("aria-hidden","false")):this.elements.contentWrapper.classList.contains(t)}onDocumentKeyup(e){27===e.keyCode&&this.elements.main&&!this.contentWrapperIsHidden()&&this.elements.main.contains(document.activeElement)&&this.closeChatBox()}removeAnimationClasses(){if(!this.elements.content)return;const{reverse:e,entranceAnimation:t,exitAnimation:n,animated:i,visible:s}=this.getSettings("constants"),r=this.elements.content.classList.contains(e),o=this.getResponsiveSetting(t),a=this.getResponsiveSetting(n);r?(this.elements.content.classList.remove(i),this.elements.content.classList.remove(e),a&&this.elements.content.classList.remove(a),this.elements.content.classList.remove(s)):(this.elements.content.classList.remove(i),o&&this.elements.content.classList.remove(o),this.elements.content.classList.add(s))}chatBoxEntranceAnimation(){const{entranceAnimation:e,animated:t,animatedWrapper:n,none:i}=this.getSettings("constants"),s=this.getResponsiveSetting(e);s&&i!==s&&(this.elements.content&&(this.elements.content.classList.add(t),this.elements.content.classList.add(s)),this.elements.contentWrapper&&this.elements.contentWrapper.classList.remove(n))}chatBoxExitAnimation(){const{reverse:e,exitAnimation:t,animated:n,animatedWrapper:i,none:s}=this.getSettings("constants"),r=this.getResponsiveSetting(t);r&&s!==r&&(this.elements.content&&(this.elements.content.classList.add(n),this.elements.content.classList.add(e),this.elements.content.classList.add(r)),this.elements.contentWrapper&&this.elements.contentWrapper.classList.add(i))}openChatBox(){const{hasAnimations:e,visible:t}=this.getSettings("constants");this.elements.main&&this.elements.main.classList.contains(e)?this.chatBoxEntranceAnimation():this.elements.content&&this.elements.content.classList.add(t),this.elements.contentWrapper&&(this.contentWrapperIsHidden(!1),elementorFrontend.isEditMode()||(this.elements.contentWrapper.setAttribute("tabindex","0"),this.elements.contentWrapper.focus({focusVisible:!0}))),this.elements.chatButton&&this.elements.chatButton.setAttribute("aria-expanded","true"),this.elements.closeButton&&this.elements.closeButton.setAttribute("aria-expanded","true")}closeChatBox(){const{hasAnimations:e,visible:t}=this.getSettings("constants");this.elements.main&&this.elements.main.classList.contains(e)?this.chatBoxExitAnimation():this.elements.content&&this.elements.content.classList.remove(t),this.elements.contentWrapper&&this.contentWrapperIsHidden(!0),this.elements.chatButton&&(this.elements.chatButton.setAttribute("aria-expanded","false"),this.elements.chatButton.focus({focusVisible:!0})),this.elements.closeButton&&this.elements.closeButton.setAttribute("aria-expanded","false")}onChatButtonClick(){this.elements.contentWrapper&&this.contentWrapperIsHidden()?this.openChatBox():this.closeChatBox()}initMessageBubbleTime(){if(!this.elements.messageBubbleTime)return;const e="12h"===this.elements.messageBubbleTime.dataset.timeFormat;this.elements.messageBubbleTime.innerHTML=new Intl.DateTimeFormat("default",{hour12:e,hour:"numeric",minute:"numeric"}).format(new Date)}removeChatButtonAnimationClasses(){if(!this.elements.chatButton)return;const{chatButtonAnimation:e,visible:t}=this.getSettings("constants");this.elements.chatButton.classList.remove(e),this.elements.chatButton.classList.add(t)}initChatButtonEntranceAnimation(){const{none:e,chatButtonAnimation:t}=this.getSettings("constants"),n=this.getResponsiveSetting(t);n&&e!==n&&this.elements.chatButton.classList.add(n)}initDefaultState(){if(this.elements.contentWrapper){const e=this.contentWrapperIsHidden();this.elements.chatButton&&this.elements.chatButton.setAttribute("aria-expanded",!e),this.elements.closeButton&&this.elements.closeButton.setAttribute("aria-expanded",!e)}elementorFrontend.isEditMode()&&"floating-buttons"===elementor?.config?.document?.type&&this.openChatBox()}setupInnerContainer(){this.elements.main.closest(".e-con-inner").classList.add("e-con-inner--floating-buttons")}onInit(){const{hasEntranceAnimation:e}=this.getSettings("constants");super.onInit(...arguments),this.clickTrackingHandler=new r.default({$element:this.$element}),this.elements.messageBubbleTime&&this.initMessageBubbleTime(),this.initDefaultState(),this.elements.chatButton&&this.elements.chatButton.classList.contains(e)&&this.initChatButtonEntranceAnimation(),this.setupInnerContainer()}}t.default=ContactButtonsHandler},4380:(e,t,n)=>{"use strict";var i=n(3203);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var s=i(n(3231)),r=i(n(3090));class ClickTrackingHandler extends r.default{constructor(){super(...arguments),(0,s.default)(this,"clicks",[])}getDefaultSettings(){return{selectors:{contentWrapper:".e-contact-buttons__content-wrapper",contactButtonCore:".e-contact-buttons__send-button",contentWrapperFloatingBars:".e-floating-bars",floatingBarCTAButton:".e-floating-bars__cta-button",elementorWrapper:'[data-elementor-type="floating-buttons"]'}}}getDefaultElements(){const e=this.getSettings("selectors");return{contentWrapper:this.$element[0].querySelector(e.contentWrapper),contentWrapperFloatingBars:this.$element[0].querySelector(e.contentWrapperFloatingBars)}}bindEvents(){this.elements.contentWrapper&&this.elements.contentWrapper.addEventListener("click",this.onChatButtonTrackClick.bind(this)),this.elements.contentWrapperFloatingBars&&this.elements.contentWrapperFloatingBars.addEventListener("click",this.onChatButtonTrackClick.bind(this)),window.addEventListener("beforeunload",(()=>{this.clicks.length>0&&this.sendClicks()}))}onChatButtonTrackClick(e){const t=e.target||e.srcElement,n=this.getSettings("selectors");(t.matches(n.contactButtonCore)||t.closest(n.contactButtonCore)||t.matches(n.floatingBarCTAButton)||t.closest(n.floatingBarCTAButton))&&this.getDocumentIdAndTrack(t,n)}getDocumentIdAndTrack(e,t){const n=e.closest(t.elementorWrapper).dataset.elementorId;this.trackClick(n)}trackClick(e){e&&(this.clicks.push(e),this.clicks.length>=10&&this.sendClicks())}sendClicks(){const e=new FormData;e.append("action","elementor_send_clicks"),e.append("_nonce",elementorFrontendConfig?.nonces?.floatingButtonsClickTracking),this.clicks.forEach((t=>e.append("clicks[]",t))),fetch(elementorFrontendConfig?.urls?.ajaxurl,{method:"POST",body:e}).then((()=>{this.clicks=[]}))}}t.default=ClickTrackingHandler},7148:(e,t,n)=>{"use strict";var i=n(3203);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var s=i(n(6752));class NestedAccordionTitleKeyboardHandler extends s.default{__construct(){super.__construct(...arguments);const e=arguments.length<=0?void 0:arguments[0];this.toggleTitle=e.toggleTitle}getDefaultSettings(){return{...super.getDefaultSettings(),selectors:{itemTitle:".e-n-accordion-item-title",itemContainer:".e-n-accordion-item > .e-con"},ariaAttributes:{titleStateAttribute:"aria-expanded",activeTitleSelector:'[aria-expanded="true"]'},datasets:{titleIndex:"data-accordion-index"}}}handeTitleLinkEnterOrSpaceEvent(e){this.toggleTitle(e)}handleContentElementEscapeEvents(e){this.getActiveTitleElement().trigger("focus"),this.toggleTitle(e)}handleTitleEscapeKeyEvents(e){const t=e?.currentTarget?.parentElement,n=t?.open;n&&this.toggleTitle(e)}}t.default=NestedAccordionTitleKeyboardHandler},32:(e,t,n)=>{"use strict";var i=n(3203);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var s=i(n(3090)),r=i(n(7148));class NestedAccordion extends s.default{constructor(){super(...arguments),this.animations=new Map}getDefaultSettings(){return{selectors:{accordion:".e-n-accordion",accordionContentContainers:".e-n-accordion > .e-con",accordionItems:".e-n-accordion-item",accordionItemTitles:".e-n-accordion-item-title",accordionItemTitlesText:".e-n-accordion-item-title-text",accordionContent:".e-n-accordion-item > .e-con",directAccordionItems:":scope > .e-n-accordion-item",directAccordionItemTitles:":scope > .e-n-accordion-item > .e-n-accordion-item-title"},default_state:"expanded",attributes:{index:"data-accordion-index",ariaLabelledBy:"aria-labelledby"}}}getDefaultElements(){const e=this.getSettings("selectors");return{$accordion:this.findElement(e.accordion),$contentContainers:this.findElement(e.accordionContentContainers),$accordionItems:this.findElement(e.accordionItems),$accordionTitles:this.findElement(e.accordionItemTitles),$accordionContent:this.findElement(e.accordionContent)}}onInit(){super.onInit(...arguments),elementorFrontend.isEditMode()&&!elementorCommon.config.experimentalFeatures.e_nested_atomic_repeaters&&this.interlaceContainers(),this.injectKeyboardHandler()}injectKeyboardHandler(){"nested-accordion.default"===this.getSettings("elementName")&&new r.default({$element:this.$element,toggleTitle:this.clickListener.bind(this)})}interlaceContainers(){const{$contentContainers:e,$accordionItems:t}=this.getDefaultElements();e.each(((e,n)=>{t[e].appendChild(n)}))}linkContainer(e){const{container:t,index:n,targetContainer:i,action:{type:s}}=e.detail,r=t.view.$el;if(t.model.get("id")===this.$element.data("id")){const{$accordionItems:e}=this.getDefaultElements();let t,o;switch(s){case"move":[t,o]=this.move(r,n,i,e);break;case"duplicate":[t,o]=this.duplicate(r,n,i,e)}void 0!==t&&t.appendChild(o),this.updateIndexValues(),this.updateListeners(r),elementor.$preview[0].contentWindow.dispatchEvent(new CustomEvent("elementor/elements/link-data-bindings"))}}move(e,t,n,i){return[i[t],n.view.$el[0]]}duplicate(e,t,n,i){return[i[t+1],n.view.$el[0]]}updateIndexValues(){const{$accordionContent:e,$accordionItems:t}=this.getDefaultElements(),n=this.getSettings(),i=t[0].getAttribute("id").slice(0,-1);t.each(((t,s)=>{s.setAttribute("id",`${i}${t}`),s.querySelector(n.selectors.accordionItemTitles).setAttribute(n.attributes.index,t+1),s.querySelector(n.selectors.accordionItemTitles).setAttribute("aria-controls",`${i}${t}`),s.querySelector(n.selectors.accordionItemTitlesText).setAttribute("data-binding-index",t+1),e[t].setAttribute(n.attributes.ariaLabelledBy,`${i}${t}`)}))}updateListeners(e){this.elements.$accordionTitles=e.find(this.getSettings("selectors.accordionItemTitles")),this.elements.$accordionItems=e.find(this.getSettings("selectors.accordionItems")),this.elements.$accordionTitles.on("click",this.clickListener.bind(this))}bindEvents(){this.elements.$accordionTitles.on("click",this.clickListener.bind(this)),elementorFrontend.elements.$window.on("elementor/nested-container/atomic-repeater",this.linkContainer.bind(this))}unbindEvents(){this.elements.$accordionTitles.off()}clickListener(e){e.preventDefault(),this.elements=this.getDefaultElements();const t=this.getSettings(),n=e?.currentTarget?.closest(t.selectors.accordionItems),i=e?.currentTarget?.closest(t.selectors.accordion),s=n.querySelector(t.selectors.accordionItemTitles),r=n.querySelector(t.selectors.accordionContent),{max_items_expended:o}=this.getElementSettings(),a=i.querySelectorAll(t.selectors.directAccordionItems),l=i.querySelectorAll(t.selectors.directAccordionItemTitles);"one"===o&&this.closeAllItems(a,l),n.open?this.closeAccordionItem(n,s):this.prepareOpenAnimation(n,s,r)}animateItem(e,t,n,i){e.style.overflow="hidden";let s=this.animations.get(e);s&&s.cancel(),s=e.animate({height:[t,n]},{duration:this.getAnimationDuration()}),s.onfinish=()=>this.onAnimationFinish(e,i),this.animations.set(e,s),e.querySelector("summary")?.setAttribute("aria-expanded",i)}closeAccordionItem(e,t){const n=`${e.offsetHeight}px`,i=`${t.offsetHeight}px`;this.animateItem(e,n,i,!1)}prepareOpenAnimation(e,t,n){e.style.overflow="hidden",e.style.height=`${e.offsetHeight}px`,e.open=!0,window.requestAnimationFrame((()=>this.openAccordionItem(e,t,n)))}openAccordionItem(e,t,n){const i=`${e.offsetHeight}px`,s=`${t.offsetHeight+n.offsetHeight}px`;this.animateItem(e,i,s,!0)}onAnimationFinish(e,t){e.open=t,this.animations.set(e,null),e.style.height=e.style.overflow=""}closeAllItems(e,t){t.forEach(((t,n)=>{this.closeAccordionItem(e[n],t)}))}getAnimationDuration(){const{size:e,unit:t}=this.getElementSettings("n_accordion_animation_duration");return e*("ms"===t?1:1e3)}}t.default=NestedAccordion},7323:(e,t,n)=>{"use strict";var i=n(3203);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var s=i(n(3090)),r=n(6630);class NestedTabs extends s.default{getTabTitleFilterSelector(e){return`[${this.getSettings("dataAttributes").tabIndex}="${e}"]`}getTabContentFilterSelector(e){return`*:nth-child(${e})`}getTabIndex(e){return e.getAttribute(this.getSettings("dataAttributes").tabIndex)}getActiveTabIndex(){const e=this.getSettings(),t=e.ariaAttributes.activeTitleSelector,n=e.dataAttributes.tabIndex;return this.elements.$tabTitles.filter(t).attr(n)||null}getWidgetNumber(){return this.$element.find("> .elementor-widget-container > .e-n-tabs, > .e-n-tabs").attr("data-widget-number")}getDefaultSettings(){const e=this.getWidgetNumber();return{selectors:{widgetContainer:`[data-widget-number="${e}"]`,tabTitle:`[aria-controls*="e-n-tab-content-${e}"]`,tabTitleIcon:`[id*="e-n-tab-title-${e}"] > .e-n-tab-icon`,tabTitleText:`[id*="e-n-tab-title-${e}"] > .e-n-tab-title-text`,tabContent:`[data-widget-number="${e}"] > .e-n-tabs-content > .e-con`,headingContainer:`[data-widget-number="${e}"] > .e-n-tabs-heading`,activeTabContentContainers:`[id*="e-n-tab-content-${e}"].e-active`},classes:{active:"e-active"},dataAttributes:{tabIndex:"data-tab-index"},ariaAttributes:{titleStateAttribute:"aria-selected",activeTitleSelector:'[aria-selected="true"]'},showTabFn:"show",hideTabFn:"hide",toggleSelf:!1,hidePrevious:!0,autoExpand:!0}}getDefaultElements(){const e=this.getSettings("selectors");return{$widgetContainer:this.findElement(e.widgetContainer),$tabTitles:this.findElement(e.tabTitle),$tabContents:this.findElement(e.tabContent),$headingContainer:this.findElement(e.headingContainer)}}getKeyboardNavigationSettings(){return this.getSettings()}activateDefaultTab(){const e=this.getSettings(),t=this.getEditSettings("activeItemIndex")||1,n={showTabFn:e.showTabFn,hideTabFn:e.hideTabFn};this.setSettings({showTabFn:"show",hideTabFn:"hide"}),this.changeActiveTab(t),this.setSettings(n),this.elements.$widgetContainer.addClass("e-activated")}deactivateActiveTab(e){const t=this.getSettings(),n=t.classes.active,i=t.ariaAttributes.activeTitleSelector,s="."+n,r=this.elements.$tabTitles.filter(i),o=this.elements.$tabContents.filter(s);return this.setTabDeactivationAttributes(r,e),o.removeClass(n),o[t.hideTabFn](0,(()=>this.onHideTabContent(o))),o}getTitleActivationAttributes(){return{tabindex:"0",[this.getSettings("ariaAttributes").titleStateAttribute]:"true"}}setTabDeactivationAttributes(e){const t=this.getSettings("ariaAttributes").titleStateAttribute;e.attr({tabindex:"-1",[t]:"false"})}onHideTabContent(){}activateTab(e){const t=this.getSettings(),n=t.classes.active,i="show"===t.showTabFn?0:400;let s=this.elements.$tabTitles.filter(this.getTabTitleFilterSelector(e)),r=this.elements.$tabContents.filter(this.getTabContentFilterSelector(e));if(!s.length){const t=Math.max(e-1,1);s=this.elements.$tabTitles.filter(this.getTabTitleFilterSelector(t)),r=this.elements.$tabContents.filter(this.getTabContentFilterSelector(t))}s.attr(this.getTitleActivationAttributes()),r.addClass(n),r[t.showTabFn](i,(()=>this.onShowTabContent(r)))}onShowTabContent(e){elementorFrontend.elements.$window.trigger("elementor-pro/motion-fx/recalc"),elementorFrontend.elements.$window.trigger("elementor/nested-tabs/activate",e),elementorFrontend.elements.$window.trigger("elementor/bg-video/recalc")}isActiveTab(e){const t=this.getSettings(),n="true"===this.elements.$tabTitles.filter(`[${t.dataAttributes.tabIndex}="${e}"]`).attr(t.ariaAttributes.titleStateAttribute),i=this.elements.$tabContents.filter(this.getTabContentFilterSelector(e)).hasClass(this.getActiveClass());return n&&i}onTabClick(e){e.preventDefault(),this.changeActiveTab(e.currentTarget?.getAttribute(this.getSettings("dataAttributes").tabIndex),!0)}getTabEvents(){return{click:this.onTabClick.bind(this)}}getHeadingEvents(){const e=this.elements.$headingContainer[0];return{mousedown:r.changeScrollStatus.bind(this,e),mouseup:r.changeScrollStatus.bind(this,e),mouseleave:r.changeScrollStatus.bind(this,e),mousemove:r.setHorizontalTitleScrollValues.bind(this,e,this.getHorizontalScrollSetting())}}bindEvents(){this.elements.$tabTitles.on(this.getTabEvents()),this.elements.$headingContainer.on(this.getHeadingEvents()),elementorFrontend.elements.$window.on("resize",this.onResizeUpdateHorizontalScrolling.bind(this)),elementorFrontend.elements.$window.on("resize",this.setTouchMode.bind(this)),elementorFrontend.elements.$window.on("elementor/nested-tabs/activate",this.reInitSwipers),elementorFrontend.elements.$window.on("elementor/nested-elements/activate-by-keyboard",this.changeActiveTabByKeyboard.bind(this)),elementorFrontend.elements.$window.on("elementor/nested-container/atomic-repeater",this.linkContainer.bind(this))}unbindEvents(){this.elements.$tabTitles.off(),this.elements.$headingContainer.off(),this.elements.$tabContents.children().off(),elementorFrontend.elements.$window.off("resize",this.onResizeUpdateHorizontalScrolling.bind(this)),elementorFrontend.elements.$window.off("resize",this.setTouchMode.bind(this)),elementorFrontend.elements.$window.off("elementor/nested-tabs/activate",this.reInitSwipers),elementorFrontend.elements.$window.off("elementor/nested-elements/activate-by-keyboard",this.changeActiveTabByKeyboard.bind(this)),elementorFrontend.elements.$window.off("elementor/nested-container/atomic-repeater",this.linkContainer.bind(this))}reInitSwipers(e,t){const n=t.querySelectorAll(`.${elementorFrontend.config.swiperClass}`);for(const e of n){if(!e.swiper)return;e.swiper.initialized=!1,e.swiper.init()}}onInit(){super.onInit(...arguments),this.getSettings("autoExpand")&&this.activateDefaultTab(),(0,r.setHorizontalScrollAlignment)(this.getHorizontalScrollingSettings()),this.setTouchMode(),"nested-tabs.default"===this.getSettings("elementName")&&new elementorModules.frontend.handlers.NestedTitleKeyboardHandler(this.getKeyboardNavigationSettings())}onEditSettingsChange(e,t){"activeItemIndex"===e&&this.changeActiveTab(t,!1)}onElementChange(e){this.checkSliderPropsToWatch(e)&&(0,r.setHorizontalScrollAlignment)(this.getHorizontalScrollingSettings())}checkSliderPropsToWatch(e){return 0===e.indexOf("horizontal_scroll")||"breakpoint_selector"===e||0===e.indexOf("tabs_justify_horizontal")||0===e.indexOf("tabs_title_space_between")}changeActiveTab(e){if(arguments.length>1&&void 0!==arguments[1]&&arguments[1]&&this.isEdit&&this.isElementInTheCurrentDocument())return window.top.$e.run("document/repeater/select",{container:elementor.getContainer(this.$element.attr("data-id")),index:parseInt(e)});const t=this.isActiveTab(e),n=this.getSettings();if(!n.toggleSelf&&t||!n.hidePrevious||this.deactivateActiveTab(e),!n.hidePrevious&&t&&this.deactivateActiveTab(e),!t){if(this.isAccordionVersion())return void this.activateMobileTab(e);this.activateTab(e)}}changeActiveTabByKeyboard(e,t){t.widgetId.toString()===this.getID().toString()&&this.changeActiveTab(t.titleIndex,!0)}activateMobileTab(e){setTimeout((()=>{this.activateTab(e),this.forceActiveTabToBeInViewport(e)}),10)}forceActiveTabToBeInViewport(e){if(!elementorFrontend.isEditMode())return;const t=this.elements.$tabTitles.filter(this.getTabTitleFilterSelector(e));elementor.helpers.isInViewport(t[0])||t[0].scrollIntoView({block:"center"})}getActiveClass(){return this.getSettings().classes.active}getTabsDirection(){const e=elementorFrontend.getCurrentDeviceMode();return elementorFrontend.utils.controls.getResponsiveControlValue(this.getElementSettings(),"tabs_justify_horizontal","",e)}getHorizontalScrollSetting(){const e=elementorFrontend.getCurrentDeviceMode();return elementorFrontend.utils.controls.getResponsiveControlValue(this.getElementSettings(),"horizontal_scroll","",e)}isAccordionVersion(){return"contents"===this.elements.$headingContainer.css("display")}setTouchMode(){const e=this.getSettings("selectors").widgetContainer;if(elementorFrontend.isEditMode()||"resize"===event?.type){const t=["mobile","mobile_extra","tablet","tablet_extra"],n=elementorFrontend.getCurrentDeviceMode();if(-1!==t.indexOf(n))return void this.$element.find(e).attr("data-touch-mode","true")}else if("ontouchstart"in window)return void this.$element.find(e).attr("data-touch-mode","true");this.$element.find(e).attr("data-touch-mode","false")}linkContainer(e){const{container:t}=e.detail,n=t.model.get("id"),i=this.$element.data("id"),s=t.view.$el;if(n===i&&(this.updateIndexValues(),this.updateListeners(s),elementor.$preview[0].contentWindow.dispatchEvent(new CustomEvent("elementor/elements/link-data-bindings"))),!this.getActiveTabIndex()){const t=e.detail.index+1||1;this.changeActiveTab(t)}}updateListeners(e){this.elements.$tabContents=e.find(this.getSettings("selectors.tabContent")),this.elements.$tabTitles=e.find(this.getSettings("selectors.tabTitle")),this.elements.$tabTitles.on(this.getTabEvents())}updateIndexValues(){const{$widgetContainer:e,$tabContents:t,$tabTitles:n}=this.getDefaultElements(),i=this.getSettings(),s=i.dataAttributes.tabIndex,r=e.data("widgetNumber");n.each(((e,n)=>{const o=e+1,a=`e-n-tab-title-${r}${o}`,l=`e-n-tab-content-${r}${o}`;n.setAttribute("id",a),n.setAttribute("style",`--n-tabs-title-order: ${o}`),n.setAttribute(s,o),n.setAttribute("aria-controls",l),n.querySelector(i.selectors.tabTitleIcon)?.setAttribute("data-binding-index",o),n.querySelector(i.selectors.tabTitleText).setAttribute("data-binding-index",o),t[e].setAttribute("aria-labelledby",a),t[e].setAttribute(s,o),t[e].setAttribute("id",l),t[e].setAttribute("style",`--n-tabs-title-order: ${o}`)}))}onResizeUpdateHorizontalScrolling(){(0,r.setHorizontalScrollAlignment)(this.getHorizontalScrollingSettings())}getHorizontalScrollingSettings(){return{element:this.elements.$headingContainer[0],direction:this.getTabsDirection(),justifyCSSVariable:"--n-tabs-heading-justify-content",horizontalScrollStatus:this.getHorizontalScrollSetting()}}}t.default=NestedTabs},5089:(e,t,n)=>{"use strict";var i=n(930),s=n(9268),r=TypeError;e.exports=function(e){if(i(e))return e;throw r(s(e)+" is not a function")}},1378:(e,t,n)=>{"use strict";var i=n(930),s=String,r=TypeError;e.exports=function(e){if("object"==typeof e||i(e))return e;throw r("Can't set "+s(e)+" as a prototype")}},6112:(e,t,n)=>{"use strict";var i=n(8759),s=String,r=TypeError;e.exports=function(e){if(i(e))return e;throw r(s(e)+" is not an object")}},6198:(e,t,n)=>{"use strict";var i=n(4088),s=n(7740),r=n(2871),createMethod=function(e){return function(t,n,o){var a,l=i(t),c=r(l),d=s(o,c);if(e&&n!=n){for(;c>d;)if((a=l[d++])!=a)return!0}else for(;c>d;d++)if((e||d in l)&&l[d]===n)return e||d||0;return!e&&-1}};e.exports={includes:createMethod(!0),indexOf:createMethod(!1)}},2306:(e,t,n)=>{"use strict";var i=n(8240),s=i({}.toString),r=i("".slice);e.exports=function(e){return r(s(e),8,-1)}},375:(e,t,n)=>{"use strict";var i=n(2371),s=n(930),r=n(2306),o=n(211)("toStringTag"),a=Object,l="Arguments"==r(function(){return arguments}());e.exports=i?r:function(e){var t,n,i;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=function(e,t){try{return e[t]}catch(e){}}(t=a(e),o))?n:l?r(t):"Object"==(i=r(t))&&s(t.callee)?"Arguments":i}},8474:(e,t,n)=>{"use strict";var i=n(9606),s=n(6095),r=n(4399),o=n(7826);e.exports=function(e,t,n){for(var a=s(t),l=o.f,c=r.f,d=0;d<a.length;d++){var u=a[d];i(e,u)||n&&i(n,u)||l(e,u,c(t,u))}}},2585:(e,t,n)=>{"use strict";var i=n(5283),s=n(7826),r=n(5736);e.exports=i?function(e,t,n){return s.f(e,t,r(1,n))}:function(e,t,n){return e[t]=n,e}},5736:e=>{"use strict";e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},1343:(e,t,n)=>{"use strict";var i=n(930),s=n(7826),r=n(3712),o=n(9444);e.exports=function(e,t,n,a){a||(a={});var l=a.enumerable,c=void 0!==a.name?a.name:t;if(i(n)&&r(n,c,a),a.global)l?e[t]=n:o(t,n);else{try{a.unsafe?e[t]&&(l=!0):delete e[t]}catch(e){}l?e[t]=n:s.f(e,t,{value:n,enumerable:!1,configurable:!a.nonConfigurable,writable:!a.nonWritable})}return e}},9444:(e,t,n)=>{"use strict";var i=n(2086),s=Object.defineProperty;e.exports=function(e,t){try{s(i,e,{value:t,configurable:!0,writable:!0})}catch(n){i[e]=t}return t}},5283:(e,t,n)=>{"use strict";var i=n(3677);e.exports=!i((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}))},7886:e=>{"use strict";var t="object"==typeof document&&document.all,n=void 0===t&&void 0!==t;e.exports={all:t,IS_HTMLDDA:n}},821:(e,t,n)=>{"use strict";var i=n(2086),s=n(8759),r=i.document,o=s(r)&&s(r.createElement);e.exports=function(e){return o?r.createElement(e):{}}},4999:e=>{"use strict";e.exports="undefined"!=typeof navigator&&String(navigator.userAgent)||""},1448:(e,t,n)=>{"use strict";var i,s,r=n(2086),o=n(4999),a=r.process,l=r.Deno,c=a&&a.versions||l&&l.version,d=c&&c.v8;d&&(s=(i=d.split("."))[0]>0&&i[0]<4?1:+(i[0]+i[1])),!s&&o&&(!(i=o.match(/Edge\/(\d+)/))||i[1]>=74)&&(i=o.match(/Chrome\/(\d+)/))&&(s=+i[1]),e.exports=s},8684:e=>{"use strict";e.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},79:(e,t,n)=>{"use strict";var i=n(8240),s=Error,r=i("".replace),o=String(s("zxcasd").stack),a=/\n\s*at [^:]*:[^\n]*/,l=a.test(o);e.exports=function(e,t){if(l&&"string"==typeof e&&!s.prepareStackTrace)for(;t--;)e=r(e,a,"");return e}},8395:(e,t,n)=>{"use strict";var i=n(2585),s=n(79),r=n(2114),o=Error.captureStackTrace;e.exports=function(e,t,n,a){r&&(o?o(e,t):i(e,"stack",s(n,a)))}},2114:(e,t,n)=>{"use strict";var i=n(3677),s=n(5736);e.exports=!i((function(){var e=Error("a");return!("stack"in e)||(Object.defineProperty(e,"stack",s(1,7)),7!==e.stack)}))},1695:(e,t,n)=>{"use strict";var i=n(2086),s=n(4399).f,r=n(2585),o=n(1343),a=n(9444),l=n(8474),c=n(7189);e.exports=function(e,t){var n,d,u,h,m,g=e.target,p=e.global,f=e.stat;if(n=p?i:f?i[g]||a(g,{}):(i[g]||{}).prototype)for(d in t){if(h=t[d],u=e.dontCallGetSet?(m=s(n,d))&&m.value:n[d],!c(p?d:g+(f?".":"#")+d,e.forced)&&void 0!==u){if(typeof h==typeof u)continue;l(h,u)}(e.sham||u&&u.sham)&&r(h,"sham",!0),o(n,d,h,e)}}},3677:e=>{"use strict";e.exports=function(e){try{return!!e()}catch(e){return!0}}},7258:(e,t,n)=>{"use strict";var i=n(6059),s=Function.prototype,r=s.apply,o=s.call;e.exports="object"==typeof Reflect&&Reflect.apply||(i?o.bind(r):function(){return o.apply(r,arguments)})},6059:(e,t,n)=>{"use strict";var i=n(3677);e.exports=!i((function(){var e=function(){}.bind();return"function"!=typeof e||e.hasOwnProperty("prototype")}))},9413:(e,t,n)=>{"use strict";var i=n(6059),s=Function.prototype.call;e.exports=i?s.bind(s):function(){return s.apply(s,arguments)}},4398:(e,t,n)=>{"use strict";var i=n(5283),s=n(9606),r=Function.prototype,o=i&&Object.getOwnPropertyDescriptor,a=s(r,"name"),l=a&&"something"===function something(){}.name,c=a&&(!i||i&&o(r,"name").configurable);e.exports={EXISTS:a,PROPER:l,CONFIGURABLE:c}},1518:(e,t,n)=>{"use strict";var i=n(8240),s=n(5089);e.exports=function(e,t,n){try{return i(s(Object.getOwnPropertyDescriptor(e,t)[n]))}catch(e){}}},8240:(e,t,n)=>{"use strict";var i=n(6059),s=Function.prototype,r=s.call,o=i&&s.bind.bind(r,r);e.exports=i?o:function(e){return function(){return r.apply(e,arguments)}}},563:(e,t,n)=>{"use strict";var i=n(2086),s=n(930);e.exports=function(e,t){return arguments.length<2?(n=i[e],s(n)?n:void 0):i[e]&&i[e][t];var n}},2964:(e,t,n)=>{"use strict";var i=n(5089),s=n(1858);e.exports=function(e,t){var n=e[t];return s(n)?void 0:i(n)}},2086:function(e,t,n){"use strict";var check=function(e){return e&&e.Math==Math&&e};e.exports=check("object"==typeof globalThis&&globalThis)||check("object"==typeof window&&window)||check("object"==typeof self&&self)||check("object"==typeof n.g&&n.g)||function(){return this}()||this||Function("return this")()},9606:(e,t,n)=>{"use strict";var i=n(8240),s=n(3060),r=i({}.hasOwnProperty);e.exports=Object.hasOwn||function hasOwn(e,t){return r(s(e),t)}},7153:e=>{"use strict";e.exports={}},6761:(e,t,n)=>{"use strict";var i=n(5283),s=n(3677),r=n(821);e.exports=!i&&!s((function(){return 7!=Object.defineProperty(r("div"),"a",{get:function(){return 7}}).a}))},5974:(e,t,n)=>{"use strict";var i=n(8240),s=n(3677),r=n(2306),o=Object,a=i("".split);e.exports=s((function(){return!o("z").propertyIsEnumerable(0)}))?function(e){return"String"==r(e)?a(e,""):o(e)}:o},5070:(e,t,n)=>{"use strict";var i=n(930),s=n(8759),r=n(7530);e.exports=function(e,t,n){var o,a;return r&&i(o=t.constructor)&&o!==n&&s(a=o.prototype)&&a!==n.prototype&&r(e,a),e}},9277:(e,t,n)=>{"use strict";var i=n(8240),s=n(930),r=n(4489),o=i(Function.toString);s(r.inspectSource)||(r.inspectSource=function(e){return o(e)}),e.exports=r.inspectSource},8945:(e,t,n)=>{"use strict";var i=n(8759),s=n(2585);e.exports=function(e,t){i(t)&&"cause"in t&&s(e,"cause",t.cause)}},3278:(e,t,n)=>{"use strict";var i,s,r,o=n(640),a=n(2086),l=n(8759),c=n(2585),d=n(9606),u=n(4489),h=n(8944),m=n(7153),g="Object already initialized",p=a.TypeError,f=a.WeakMap;if(o||u.state){var b=u.state||(u.state=new f);b.get=b.get,b.has=b.has,b.set=b.set,i=function(e,t){if(b.has(e))throw p(g);return t.facade=e,b.set(e,t),t},s=function(e){return b.get(e)||{}},r=function(e){return b.has(e)}}else{var v=h("state");m[v]=!0,i=function(e,t){if(d(e,v))throw p(g);return t.facade=e,c(e,v,t),t},s=function(e){return d(e,v)?e[v]:{}},r=function(e){return d(e,v)}}e.exports={set:i,get:s,has:r,enforce:function(e){return r(e)?s(e):i(e,{})},getterFor:function(e){return function(t){var n;if(!l(t)||(n=s(t)).type!==e)throw p("Incompatible receiver, "+e+" required");return n}}}},930:(e,t,n)=>{"use strict";var i=n(7886),s=i.all;e.exports=i.IS_HTMLDDA?function(e){return"function"==typeof e||e===s}:function(e){return"function"==typeof e}},7189:(e,t,n)=>{"use strict";var i=n(3677),s=n(930),r=/#|\.prototype\./,isForced=function(e,t){var n=a[o(e)];return n==c||n!=l&&(s(t)?i(t):!!t)},o=isForced.normalize=function(e){return String(e).replace(r,".").toLowerCase()},a=isForced.data={},l=isForced.NATIVE="N",c=isForced.POLYFILL="P";e.exports=isForced},1858:e=>{"use strict";e.exports=function(e){return null==e}},8759:(e,t,n)=>{"use strict";var i=n(930),s=n(7886),r=s.all;e.exports=s.IS_HTMLDDA?function(e){return"object"==typeof e?null!==e:i(e)||e===r}:function(e){return"object"==typeof e?null!==e:i(e)}},3296:e=>{"use strict";e.exports=!1},2071:(e,t,n)=>{"use strict";var i=n(563),s=n(930),r=n(5516),o=n(1876),a=Object;e.exports=o?function(e){return"symbol"==typeof e}:function(e){var t=i("Symbol");return s(t)&&r(t.prototype,a(e))}},2871:(e,t,n)=>{"use strict";var i=n(4005);e.exports=function(e){return i(e.length)}},3712:(e,t,n)=>{"use strict";var i=n(8240),s=n(3677),r=n(930),o=n(9606),a=n(5283),l=n(4398).CONFIGURABLE,c=n(9277),d=n(3278),u=d.enforce,h=d.get,m=String,g=Object.defineProperty,p=i("".slice),f=i("".replace),b=i([].join),v=a&&!s((function(){return 8!==g((function(){}),"length",{value:8}).length})),y=String(String).split("String"),S=e.exports=function(e,t,n){"Symbol("===p(m(t),0,7)&&(t="["+f(m(t),/^Symbol\(([^)]*)\)/,"$1")+"]"),n&&n.getter&&(t="get "+t),n&&n.setter&&(t="set "+t),(!o(e,"name")||l&&e.name!==t)&&(a?g(e,"name",{value:t,configurable:!0}):e.name=t),v&&n&&o(n,"arity")&&e.length!==n.arity&&g(e,"length",{value:n.arity});try{n&&o(n,"constructor")&&n.constructor?a&&g(e,"prototype",{writable:!1}):e.prototype&&(e.prototype=void 0)}catch(e){}var i=u(e);return o(i,"source")||(i.source=b(y,"string"==typeof t?t:"")),e};Function.prototype.toString=S((function toString(){return r(this)&&h(this).source||c(this)}),"toString")},5681:e=>{"use strict";var t=Math.ceil,n=Math.floor;e.exports=Math.trunc||function trunc(e){var i=+e;return(i>0?n:t)(i)}},1879:(e,t,n)=>{"use strict";var i=n(4059);e.exports=function(e,t){return void 0===e?arguments.length<2?"":t:i(e)}},7826:(e,t,n)=>{"use strict";var i=n(5283),s=n(6761),r=n(8202),o=n(6112),a=n(2258),l=TypeError,c=Object.defineProperty,d=Object.getOwnPropertyDescriptor,u="enumerable",h="configurable",m="writable";t.f=i?r?function defineProperty(e,t,n){if(o(e),t=a(t),o(n),"function"==typeof e&&"prototype"===t&&"value"in n&&m in n&&!n[m]){var i=d(e,t);i&&i[m]&&(e[t]=n.value,n={configurable:h in n?n[h]:i[h],enumerable:u in n?n[u]:i[u],writable:!1})}return c(e,t,n)}:c:function defineProperty(e,t,n){if(o(e),t=a(t),o(n),s)try{return c(e,t,n)}catch(e){}if("get"in n||"set"in n)throw l("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},4399:(e,t,n)=>{"use strict";var i=n(5283),s=n(9413),r=n(7446),o=n(5736),a=n(4088),l=n(2258),c=n(9606),d=n(6761),u=Object.getOwnPropertyDescriptor;t.f=i?u:function getOwnPropertyDescriptor(e,t){if(e=a(e),t=l(t),d)try{return u(e,t)}catch(e){}if(c(e,t))return o(!s(r.f,e,t),e[t])}},62:(e,t,n)=>{"use strict";var i=n(1352),s=n(8684).concat("length","prototype");t.f=Object.getOwnPropertyNames||function getOwnPropertyNames(e){return i(e,s)}},6952:(e,t)=>{"use strict";t.f=Object.getOwnPropertySymbols},5516:(e,t,n)=>{"use strict";var i=n(8240);e.exports=i({}.isPrototypeOf)},1352:(e,t,n)=>{"use strict";var i=n(8240),s=n(9606),r=n(4088),o=n(6198).indexOf,a=n(7153),l=i([].push);e.exports=function(e,t){var n,i=r(e),c=0,d=[];for(n in i)!s(a,n)&&s(i,n)&&l(d,n);for(;t.length>c;)s(i,n=t[c++])&&(~o(d,n)||l(d,n));return d}},7446:(e,t)=>{"use strict";var n={}.propertyIsEnumerable,i=Object.getOwnPropertyDescriptor,s=i&&!n.call({1:2},1);t.f=s?function propertyIsEnumerable(e){var t=i(this,e);return!!t&&t.enumerable}:n},7530:(e,t,n)=>{"use strict";var i=n(1518),s=n(6112),r=n(1378);e.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,n={};try{(e=i(Object.prototype,"__proto__","set"))(n,[]),t=n instanceof Array}catch(e){}return function setPrototypeOf(n,i){return s(n),r(i),t?e(n,i):n.__proto__=i,n}}():void 0)},7999:(e,t,n)=>{"use strict";var i=n(9413),s=n(930),r=n(8759),o=TypeError;e.exports=function(e,t){var n,a;if("string"===t&&s(n=e.toString)&&!r(a=i(n,e)))return a;if(s(n=e.valueOf)&&!r(a=i(n,e)))return a;if("string"!==t&&s(n=e.toString)&&!r(a=i(n,e)))return a;throw o("Can't convert object to primitive value")}},6095:(e,t,n)=>{"use strict";var i=n(563),s=n(8240),r=n(62),o=n(6952),a=n(6112),l=s([].concat);e.exports=i("Reflect","ownKeys")||function ownKeys(e){var t=r.f(a(e)),n=o.f;return n?l(t,n(e)):t}},1632:(e,t,n)=>{"use strict";var i=n(7826).f;e.exports=function(e,t,n){n in e||i(e,n,{configurable:!0,get:function(){return t[n]},set:function(e){t[n]=e}})}},9586:(e,t,n)=>{"use strict";var i=n(1858),s=TypeError;e.exports=function(e){if(i(e))throw s("Can't call method on "+e);return e}},8944:(e,t,n)=>{"use strict";var i=n(9197),s=n(5422),r=i("keys");e.exports=function(e){return r[e]||(r[e]=s(e))}},4489:(e,t,n)=>{"use strict";var i=n(2086),s=n(9444),r="__core-js_shared__",o=i[r]||s(r,{});e.exports=o},9197:(e,t,n)=>{"use strict";var i=n(3296),s=n(4489);(e.exports=function(e,t){return s[e]||(s[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.32.0",mode:i?"pure":"global",copyright:"© 2014-2023 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.32.0/LICENSE",source:"https://github.com/zloirock/core-js"})},5558:(e,t,n)=>{"use strict";var i=n(1448),s=n(3677),r=n(2086).String;e.exports=!!Object.getOwnPropertySymbols&&!s((function(){var e=Symbol();return!r(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&i&&i<41}))},7740:(e,t,n)=>{"use strict";var i=n(9502),s=Math.max,r=Math.min;e.exports=function(e,t){var n=i(e);return n<0?s(n+t,0):r(n,t)}},4088:(e,t,n)=>{"use strict";var i=n(5974),s=n(9586);e.exports=function(e){return i(s(e))}},9502:(e,t,n)=>{"use strict";var i=n(5681);e.exports=function(e){var t=+e;return t!=t||0===t?0:i(t)}},4005:(e,t,n)=>{"use strict";var i=n(9502),s=Math.min;e.exports=function(e){return e>0?s(i(e),9007199254740991):0}},3060:(e,t,n)=>{"use strict";var i=n(9586),s=Object;e.exports=function(e){return s(i(e))}},1288:(e,t,n)=>{"use strict";var i=n(9413),s=n(8759),r=n(2071),o=n(2964),a=n(7999),l=n(211),c=TypeError,d=l("toPrimitive");e.exports=function(e,t){if(!s(e)||r(e))return e;var n,l=o(e,d);if(l){if(void 0===t&&(t="default"),n=i(l,e,t),!s(n)||r(n))return n;throw c("Can't convert object to primitive value")}return void 0===t&&(t="number"),a(e,t)}},2258:(e,t,n)=>{"use strict";var i=n(1288),s=n(2071);e.exports=function(e){var t=i(e,"string");return s(t)?t:t+""}},2371:(e,t,n)=>{"use strict";var i={};i[n(211)("toStringTag")]="z",e.exports="[object z]"===String(i)},4059:(e,t,n)=>{"use strict";var i=n(375),s=String;e.exports=function(e){if("Symbol"===i(e))throw TypeError("Cannot convert a Symbol value to a string");return s(e)}},9268:e=>{"use strict";var t=String;e.exports=function(e){try{return t(e)}catch(e){return"Object"}}},5422:(e,t,n)=>{"use strict";var i=n(8240),s=0,r=Math.random(),o=i(1..toString);e.exports=function(e){return"Symbol("+(void 0===e?"":e)+")_"+o(++s+r,36)}},1876:(e,t,n)=>{"use strict";var i=n(5558);e.exports=i&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},8202:(e,t,n)=>{"use strict";var i=n(5283),s=n(3677);e.exports=i&&s((function(){return 42!=Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype}))},640:(e,t,n)=>{"use strict";var i=n(2086),s=n(930),r=i.WeakMap;e.exports=s(r)&&/native code/.test(String(r))},211:(e,t,n)=>{"use strict";var i=n(2086),s=n(9197),r=n(9606),o=n(5422),a=n(5558),l=n(1876),c=i.Symbol,d=s("wks"),u=l?c.for||c:c&&c.withoutSetter||o;e.exports=function(e){return r(d,e)||(d[e]=a&&r(c,e)?c[e]:u("Symbol."+e)),d[e]}},1557:(e,t,n)=>{"use strict";var i=n(563),s=n(9606),r=n(2585),o=n(5516),a=n(7530),l=n(8474),c=n(1632),d=n(5070),u=n(1879),h=n(8945),m=n(8395),g=n(5283),p=n(3296);e.exports=function(e,t,n,f){var b="stackTraceLimit",v=f?2:1,y=e.split("."),S=y[y.length-1],w=i.apply(null,y);if(w){var E=w.prototype;if(!p&&s(E,"cause")&&delete E.cause,!n)return w;var T=i("Error"),x=t((function(e,t){var n=u(f?t:e,void 0),i=f?new w(e):new w;return void 0!==n&&r(i,"message",n),m(i,x,i.stack,2),this&&o(E,this)&&d(i,this,x),arguments.length>v&&h(i,arguments[v]),i}));if(x.prototype=E,"Error"!==S?a?a(x,T):l(x,T,{name:!0}):g&&b in w&&(c(x,w,b),c(x,w,"prepareStackTrace")),l(x,w),!p)try{E.name!==S&&r(E,"name",S),E.constructor=x}catch(e){}return x}}},740:(e,t,n)=>{"use strict";var i=n(1695),s=n(2086),r=n(7258),o=n(1557),a="WebAssembly",l=s[a],c=7!==Error("e",{cause:7}).cause,exportGlobalErrorCauseWrapper=function(e,t){var n={};n[e]=o(e,t,c),i({global:!0,constructor:!0,arity:1,forced:c},n)},exportWebAssemblyErrorCauseWrapper=function(e,t){if(l&&l[e]){var n={};n[e]=o(a+"."+e,t,c),i({target:a,stat:!0,constructor:!0,arity:1,forced:c},n)}};exportGlobalErrorCauseWrapper("Error",(function(e){return function Error(t){return r(e,this,arguments)}})),exportGlobalErrorCauseWrapper("EvalError",(function(e){return function EvalError(t){return r(e,this,arguments)}})),exportGlobalErrorCauseWrapper("RangeError",(function(e){return function RangeError(t){return r(e,this,arguments)}})),exportGlobalErrorCauseWrapper("ReferenceError",(function(e){return function ReferenceError(t){return r(e,this,arguments)}})),exportGlobalErrorCauseWrapper("SyntaxError",(function(e){return function SyntaxError(t){return r(e,this,arguments)}})),exportGlobalErrorCauseWrapper("TypeError",(function(e){return function TypeError(t){return r(e,this,arguments)}})),exportGlobalErrorCauseWrapper("URIError",(function(e){return function URIError(t){return r(e,this,arguments)}})),exportWebAssemblyErrorCauseWrapper("CompileError",(function(e){return function CompileError(t){return r(e,this,arguments)}})),exportWebAssemblyErrorCauseWrapper("LinkError",(function(e){return function LinkError(t){return r(e,this,arguments)}})),exportWebAssemblyErrorCauseWrapper("RuntimeError",(function(e){return function RuntimeError(t){return r(e,this,arguments)}}))},3231:(e,t,n)=>{var i=n(4040);e.exports=function _defineProperty(e,t,n){return(t=i(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e},e.exports.__esModule=!0,e.exports.default=e.exports},3203:e=>{e.exports=function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}},e.exports.__esModule=!0,e.exports.default=e.exports},6027:(e,t,n)=>{var i=n(7501).default;e.exports=function toPrimitive(e,t){if("object"!=i(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var s=n.call(e,t||"default");if("object"!=i(s))return s;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)},e.exports.__esModule=!0,e.exports.default=e.exports},4040:(e,t,n)=>{var i=n(7501).default,s=n(6027);e.exports=function toPropertyKey(e){var t=s(e,"string");return"symbol"==i(t)?t:String(t)},e.exports.__esModule=!0,e.exports.default=e.exports},7501:e=>{function _typeof(t){return e.exports=_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e.exports.__esModule=!0,e.exports.default=e.exports,_typeof(t)}e.exports=_typeof,e.exports.__esModule=!0,e.exports.default=e.exports}},e=>{var t;t=6412,e(e.s=t)}]);