(function($){
"use strict";
var gws_specials_0=["'", '"', '-','\\.',','];
var gws_specials_replacers_0=["", "", " "," ",' '];
var ilkherf='';
var prids_object="";
var gwsc_keywords_filtered=new Array();
var gwsc_keywords_filtered_raw=new Array();
var guaven_woos_init_scrollstate=jQuery('html').css('overflow');
var gws_current_segment='';
var gws_current_segment_text='';
var gws_parceprice=false;
var gws_parceprice_final='';
var gws_queued_object="";
var gws_xhr='';
var gws_keyhelper_to_push=new Array();
var guaven_woos_input='';
var liSelected=-1;
var gws_specials=[' x ',"'", '"', 'ä', 'ö', 'ü', 'à', 'â', 'é', 'è', 'ê', 'ë', 'ï', 'î', 'ô', 'ù', 'û', 'ÿ', 'å', 'ó', 'ú', 'ů', 'ý', 'ž',
'á', 'č', 'ď', 'ě', 'í', 'ň', 'ř', 'š', 'ť', 'ñ', 'ç', 'ğ',
'ı', 'İ', 'ş', 'ã', 'õ', 'ά', 'έ', 'ή', 'ί', 'ϊ', 'ΐ', 'ό', 'ύ', 'ϋ', 'ΰ', 'ώ', 'ə',
'а', 'б', 'в', 'г', 'д', 'е', 'ё', 'ж', 'з', 'и', 'й', 'к', 'л', 'м', 'н', 'о', 'п', 'р', 'с', 'т', 'у', 'ф', 'х', 'ц', 'ч', 'ш', 'щ', 'ъ', 'ы', 'ь', 'э', 'ю', 'я',
'љ', 'њ', 'ѓ', 'ќ', 'џ',
'đ','ệ','ơ','ư','ả','ờ','ă','ỏ',"ố","ế",'ắ','ậ','ử','ộ','ẳ','ứ','ự','ớ','ấ','ổ','ẫ','ổ','ầ','ợ','ừ','ữ', 'ỳ','ỹ','ẩ','ẻ','ẽ','ẹ','ì','ị','ĩ','ỉ','ò','ọ','ồ','ỗ','ỡ','ș','ț', 'ă', 'î','â',
'ū','ą'
];
var gws_specials_replacers=["x","", "", 'a', 'o', 'u', 'a', 'a', 'e', 'e', 'e', 'e', 'i', 'i', 'o', 'u', 'u', 'y', 'a', 'o', 'u', 'u', 'y', 'z',
'a', 'c', 'd', 'e', 'i', 'n', 'r', 's', 't', 'n', 'c', 'g',
'i', 'i', 's', 'a', 'o', 'α', 'ε', 'η', 'ι', 'ι', 'ι', 'ο', 'υ', 'υ', 'υ', 'ω', 'e',
'a', 'b', 'v', 'g', 'd', 'e', 'io', 'zh', 'z', 'i', 'y', 'k', 'l', 'm', 'n', 'o', 'p', 'r', 's', 't', 'u', 'f', 'h', 'c', 'c', 'sh', 'sht', 'a', 'i', 'y', 'e', 'yu', 'ya',
'lj', 'nj', 'g', 'k', 'dz',
'd','e','o','u','a','o','a','o','o','e','a','a','u','o','a','u','u','o','a','o','a','o','a','o','u','u', 'y','y','a','e','e','e','i','i','i','i','o','o','o','o','o','s','t','a','i','a',
'u','a'
];
var $gws_specials=[
' x ',"'", '"', 'ä', 'ö', 'ü', 'à', 'â', 'é', 'è', 'ê', 'ë', 'ï', 'î', 'ô', 'ù', 'û', 'ÿ', 'å', 'ó', 'ú', 'ů', 'ý', 'ž', 'á', 'č', 'ď', 'ě',
'í', 'ň', 'ř', 'š', 'ť', 'ñ', 'ç', 'ğ', 'ı', 'İ', 'ş', 'ã', 'õ', 'ά', 'έ', 'ή', 'ί', 'ϊ', 'ΐ', 'ό', 'ύ', 'ϋ', 'ΰ', 'ώ', 'ə', 'а', 'б',
'в', 'г', 'д', 'е', 'ё', 'ж', 'з', 'и', 'й', 'к', 'л', 'м', 'н', 'о', 'п', 'р', 'с', 'т', 'у', 'ф', 'х', 'ц', 'ч', 'ш', 'щ', 'ъ', 'ы',
'ь', 'э', 'ю', 'я', 'љ', 'њ', 'ѓ', 'ќ', 'џ',
'đ','ệ','ơ','ư','ả','ờ','ă','ỏ',"ố","ế",'ắ','ậ','ử','ộ','ẳ','ứ','ự','ớ','ấ','ổ','ẫ','ổ','ầ','ợ','ừ','ữ', 'ỳ','ỹ','ẩ','ẻ','ẽ','ẹ','ì','ị','ĩ','ỉ','ò','ọ','ồ','ỗ','ỡ',
'-', 'α', 'β', 'γ', 'δ', 'ε', 'ζ', 'η', 'θ', 'ι', 'κ', 'λ', 'μ', 'ν', 'ξ', 'ο', 'π', 'ρ',
'ς', 'τ', 'υ', 'φ', 'χ', 'ψ', 'ω','Ã­','σ','ζ','ș','ț', 'ă', 'î','â','ū','ą'
];
var $gws_specials_replacers=[
"x","", "", 'a', 'o', 'u', 'a', 'a', 'e', 'e', 'e', 'e', 'i', 'i', 'o', 'u', 'u', 'y', 'a', 'o', 'u', 'u', 'y', 'z', 'a', 'c', 'd', 'e',
'i', 'n', 'r', 's', 't', 'n', 'c', 'g', 'i', 'i', 's', 'a', 'o', 'α', 'ε', 'η', 'ι', 'ι', 'ι', 'ο', 'υ', 'υ', 'υ', 'ω', 'e', 'a', 'b',
'v', 'g', 'd', 'e', 'e', 'zh', 'z', 'i', 'y', 'k', 'l', 'm', 'n', 'o', 'p', 'r', 's', 't', 'u', 'f', 'h', 'c', 'c', 'sh', 'sht', 'a', 'i',
'y', 'e', 'yu', 'ya', 'lj', 'nj', 'g', 'k', 'dz',
'd','e','o','u','a','o','a','o','o','e','a','a','u','o','a','u','u','o','a','o','a','o','a','o','u','u', 'y','y','a','e','e','e','i','i','i','i','o','o','o','o','o',
' ', 'a', 'b', 'g', 'd', 'e', 'z', 'i', 'th', 'i', 'k', 'l', 'm', 'n', 'x', 'o', 'p',
'r', 's', 't', 'u', 'f', 'ch', 'ps', 'o','i','s','z','s','t','a','i','a','u','a'
];
var gwsc_keywords_arr, guaven_woos_cache_cat_keywords_arr,
runSearch, is_runSearch, runSearch_live, is_runSearch_live, gws_global_ret, guaven_woos_lastval, woos_search_existense_sku,
gws_foundids, guaven_woos_display_in,gws_this,gws_this_tempval,gws_this_tempval_nofilter,
guaven_woos_sugbarwidth,fixedtempwidh,gws_adjust_left,guaven_woos_pinned_final,gws_trend_html,gws_trend_keywords,guaven_woos_finalresult,guaven_woos_trend_final,
rescount,guaven_woos_tempval,gws_match,guaven_woos_tempval_space,
guaven_woos_tempval_nospace,guaven_woos_curcatid_str,tempformatted,maxpercent,finalpercent,guaven_woos_cfinalresult,guaven_show_all,
gws_taxonomylist_html,gws_taxonomylist_key;
function gws_cache_init_old(){
jQuery.ajax({
url: guaven_woos.data_path,
dataType: "script",
cache: true
}).done(function(){
guaven_woos.runner();
if(gws_queued_object!=''&&gws_queued_object!=undefined){
jQuery(gws_queued_object).blur();
jQuery(gws_queued_object).trigger("focus");
}});
}
function gws_cache_init(){
jQuery.ajax({
url: guaven_woos.data_path,
dataType: "json",
cache: true
}).done(function(res, _textStatus, _request){
guaven_woos.built_date=res.guaven_woos_built_date||'';
guaven_woos.cache_html=res.guaven_woos_cache_html||'';
guaven_woos.cache_keywords=res.guaven_woos_cache_keywords||'';
guaven_woos.pinned_html=res.guaven_woos_pinned_html||'';
guaven_woos.pinned_keywords=res.guaven_woos_pinned_keywords||'';
guaven_woos.pinned_cat_html=res.guaven_woos_pinned_cat_html||'';
guaven_woos.populars_html=res.guaven_woos_populars_html||'';
guaven_woos.populars_keywords=res.guaven_woos_populars_keywords||'';
if(res.guaven_woos_category_keywords&&res.guaven_woos_category_keywords.indexOf(",") > -1){
gws_taxonomylist_html=res.guaven_woos_category_html.split(",");
gws_taxonomylist_key=res.guaven_woos_category_keywords.split(",");
guaven_woos.category_keywords={};
guaven_woos.category_html={};
for (var i=0; i < gws_taxonomylist_html.length; i++){
guaven_woos.category_keywords=jQuery.extend(guaven_woos.category_keywords,res[gws_taxonomylist_key[i]]);
guaven_woos.category_html=jQuery.extend(guaven_woos.category_html,res[gws_taxonomylist_html[i]]);
}}else{
guaven_woos.category_keywords=res[res.guaven_woos_category_keywords];
guaven_woos.category_html=res[res.guaven_woos_category_html];
}
guaven_woos.runner();
if(gws_queued_object!=''&&gws_queued_object!=undefined){
jQuery(gws_queued_object).blur();
jQuery(gws_queued_object).trigger("focus");
}});
}
function gws_cache_activator(){
"use strict";
guaven_woos.data_path=gws_version_checker();
if(guaven_woos.v2_2_structure!=undefined&&guaven_woos.v2_2_structure>0){
gws_cache_init();
}else{
gws_cache_init_old();
}}
window.gws_filter_final_html=function (gws_final_html_parts){
return gws_final_html_parts[0]+gws_final_html_parts[1]+gws_final_html_parts[2]+gws_final_html_parts[3]+gws_final_html_parts[4];
}
function gws_urldecode(url){
return decodeURIComponent(url.replace(/\+/g, ' '));
}
function gws_version_checker(){
if(guaven_woos.cache_version_checker=='')return guaven_woos.data_path;
if(guaven_woos_getcookie('GWS_VERSION')){
var gws_data_search_params=new URLSearchParams(guaven_woos.data_path.split('?')[1]);
if(parseFloat(gws_data_search_params.get('v')) <  parseFloat(guaven_woos_getcookie('GWS_VERSION'))){
gws_data_search_params.set('v', guaven_woos_getcookie('GWS_VERSION'));
return guaven_woos.data_path.split('?')[0] + '?' + gws_data_search_params.toString();
}
else
return guaven_woos.data_path;
}else{
jQuery.ajax({
url: guaven_woos.ajaxurl,
data:{
action: 'guaven_get_data_version'
},
}).done(function(version){
document.cookie="GWS_VERSION="+ version +"; max-age=300; path=/";
});
return guaven_woos.data_path;
}}
window.guaven_woos_getcookie=function(name){
var match=document.cookie.match(new RegExp(name + '=([^;]+)'));
if(match)
return match[1];
}
var gws_VECTOR=[],
gws_CODES=[];
function gws_levenstein_helper(max, a, b){
if(a===b)
return 0;
const tmp=a;
if(a.length > b.length){
a=b;
b=tmp;
}
let la=a.length,
lb=b.length;
if(!la)
return lb > max ? Infinity:lb;
if(!lb)
return la > max ? Infinity:la;
while (la > 0&&(a.charCodeAt(~-la)===b.charCodeAt(~-lb))){
la--;
lb--;
}
if(!la)
return lb > max ? Infinity:lb;
let start=0;
while (start < la&&(a.charCodeAt(start)===b.charCodeAt(start)))
start++;
la -=start;
lb -=start;
if(!la)
return lb > max ? Infinity:lb;
const diff=lb - la;
if(max > lb)
max=lb;
else if(diff > max)
return Infinity;
const v0=gws_VECTOR;
let i=0;
while (i < max){
gws_CODES[i]=b.charCodeAt(start + i);
v0[i]=++i;
}
while (i < lb){
gws_CODES[i]=b.charCodeAt(start + i);
v0[i++]=max + 1;
}
const offset=max - diff,
haveMax=max < lb;
let jStart=0,
jEnd=max;
let current=0,
left,
above,
charA,
j;
for (i=0; i < la; i++){
left=i;
current=i + 1;
charA=a.charCodeAt(start + i);
jStart +=(i > offset) ? 1:0;
jEnd +=(jEnd < lb) ? 1:0;
for (j=jStart; j < jEnd; j++){
above=current;
current=left;
left=v0[j];
if(charA!==gws_CODES[j]){
if(left < current)
current=left;
if(above < current)
current=above;
current++;
}
v0[j]=current;
}
if(haveMax&&v0[i + diff] > max)
return Infinity;
}
return current <=max ? current:Infinity;
}
function guaven_woos_levenshtein (a, b){
let gws_sens=(window.guaven_woos_typo_sens==undefined )?5:window.guaven_woos_typo_sens;
if(gws_sens<=0)gws_sens=5;
gws_sens=Math.ceil(Math.min(a.length,20)/gws_sens);
return gws_levenstein_helper(gws_sens,a,b);
}
String.prototype.gws_replaceAll=function(search, replacement){
var target=this;
return target.replace(new RegExp(search, 'ig'), replacement);
};
function guaven_woos_replace_array(replaceString, find, replace, quotes){
for (var i=0; i < find.length; i++){
if(quotes==1)
replaceString=replaceString.gws_replaceAll(find[i], replace[i]);
}
return replaceString;
}
function guaven_woos_concatsearch(arrdata, str){
var hasil=0;
var respoint=0;
var arrdata_arr=arrdata.split(" ");
for (var i=0; i < arrdata_arr.length; i++){
respoint=respoint + str.indexOf(arrdata_arr[i]);
if(str.indexOf(arrdata_arr[i])==-1) hasil=-1;
}
if(hasil==-1) respoint=-1;
return respoint;
}
function guaven_woos_stripQuotes(s){
var t=s.length;
if(s.charAt(0)=='"') s=s.substring(1, t--);
if(s.charAt(--t)=='"') s=s.substring(0, t);
return s;
}
guaven_woos.mobclose=function (){
jQuery(guaven_woos.selector).trigger('focusout');
jQuery('html').css('overflow', guaven_woos_init_scrollstate);
setTimeout(function(){
jQuery(".guaven_woos_mobilesearch").hide();
jQuery("body").removeClass("guaven_woos_mobile_div_state");
jQuery("#wpadminbar").show();
}, 250);
}
function guaven_woos_format(str, ttl){
var fetch_pid_1=str.split("prli_");
var fetch_pid_2;
if(fetch_pid_1.length>1){
for (var i=1;i<fetch_pid_1.length;i++){
fetch_pid_2=fetch_pid_1[i].split('"');
if(fetch_pid_2!==null){
str=str.replace("{gwsvid}",fetch_pid_2[0]);
}}
}
str=str.gws_replaceAll('{{t}}', ttl);
str=str.gws_replaceAll('{{s}}', '</span> <span class=\"guaven_woos_hidden guaven_woos_hidden_tags\">');
str=str.gws_replaceAll('{{h}}', '<span class=\"guaven_woos_hidden\">');
str=str.gws_replaceAll('{{l}}', '<li class=\"guaven_woos_suggestion_list\" tabindex=');
str=str.gws_replaceAll('{{d}}', '\"><div class=\"guaven_woos_div\"><img class=\"guaven_woos_img\" src=\"');
str=str.gws_replaceAll('{{i}}', '\"></div><div class=\"guaven_woos_titlediv\">');
str=str.gws_replaceAll('{{e}}', '</div></a> </li>');
str=str.gws_replaceAll('{{p}}', '</span>');
str=str.gws_replaceAll('{{m}}', '<small>');
str=str.gws_replaceAll('{{a}}', '</small>');
str=str.replaceAll('{{q}}', '<span id=\"woolan_');
str=str.gws_replaceAll('{{g}}', '</span> <span class=\"gwshd\">');
str=str.gws_replaceAll('{{v}}', '</span> <span class=\"woos_sku woos_sku_variations\">');
str=str.gws_replaceAll('{{k}}', '<span class=\"woos_sku\">');
str=str.gws_replaceAll('{{n}}', '<span class=\"gwstrn\">');
str=str.gws_replaceAll('{{j}}', '<span class=\"gwshd\">');
str=str.gws_replaceAll('{{w}}', '</span><span class=\"gwstrn\">');
str=str.gws_replaceAll('{{o}}', '<span class=\"guaven_woos_hidden_description');
str=str.gws_replaceAll('{{c}}', '<span class=\"woocommerce-Price-amount amount\"><span class=\"woocommerce-Price-currencySymbol\">');
str=str.gws_replaceAll('{{u}}', guaven_woos.updir);
str=str.gws_replaceAll('"gwp=', '"' + guaven_woos.homeurl + '?post_type=product&p=');
return str;
}
function guaven_woos_add_utm_parameters(url, needle){
const utm={
source: 'guaven_woos',
medium: 'live_search',
campaign: needle
}
var query=Object.keys(utm)
.map(function(k){return encodeURIComponent(k) + '=' + encodeURIComponent(utm[k]);})
.join('&');
url +=(url.includes('?') ? '&':'?') + query;
return url;
}
guaven_woos.prepush_highlight=function(str){
if(guaven_woos.highlight==1){
var gwsf_position=str.toLowerCase().indexOf(guaven_woos.tempval_raw);
if(gwsf_position > -1){
str=str.slice(0, gwsf_position) + "<em>" +
str.slice(gwsf_position, gwsf_position + guaven_woos_tempval.length) +
"</em>" + str.slice(gwsf_position + guaven_woos_tempval.length, str.length);
}}
return str;
}
guaven_woos.prepare_push=function(guaven_woos_temphtml, guaven_woos_temptitle, woos_search_existense, guaven_woos_tempval, stortype,woos_key,_prefix_num){
rescount++;
gws_foundids.push(woos_key);
guaven_woos_temptitle=guaven_woos.prepush_highlight(guaven_woos_temptitle);
tempformatted=guaven_woos_temphtml+'~g~v~n~'+guaven_woos_temptitle;
if(stortype==''){
if(guaven_woos.dttrr==1&&typeof(Storage)!=="undefined"&&localStorage.keywordsuccess.indexOf(guaven_woos_tempval)==-1){
localStorage.keywordsuccess=localStorage.keywordsuccess + guaven_woos_tempval + ', ';
if(guaven_woos.ga_enabled==1&&typeof(ga)!="undefined"&&ga.getAll){
ga.getAll()[0].send('event', 'Live Search', 'success', guaven_woos_tempval);
}}
}else if(guaven_woos.dttrr==1&&typeof(Storage)!=="undefined"&&localStorage.keywordcorrected.indexOf(guaven_woos_tempval)==-1){
localStorage.keywordcorrected=localStorage.keywordcorrected + guaven_woos_tempval + ', ';
if(guaven_woos.ga_enabled==1&&typeof(ga)!="undefined"&&ga.getAll){
ga.getAll()[0].send('event', 'Live Search', 'corrected', guaven_woos_tempval);
}}
let prepare_push_indexhook_var=guaven_woos.prepare_push_indexhook(woos_search_existense,woos_key,guaven_woos_temphtml,_prefix_num,stortype);
return prepare_push_indexhook_var[2]+'_'+guaven_woos.keyformat(prepare_push_indexhook_var[0])+guaven_woos.keyformat(prepare_push_indexhook_var[1]) + '~g~v~n~' + tempformatted;
}
guaven_woos.prepare_push_indexhook=function (_woos_search_existense,_woos_key,_guaven_woos_temphtml,_prefix_num,stortype){
return [_woos_search_existense,_woos_key,_prefix_num];
}
guaven_woos.keyformat=function(numm){
let numstr=numm;
if(numm < 10) numstr='000' + numm;
else if(numm < 100) numstr='00' + numm;
else if(numm < 1000) numstr='0' + numm;
return numstr;
}
function guaven_woos_result_catadd(){
var crescount=0;
var guaven_woos_cfinalresult='';
var kehelpercat_relevant=new Array();
var kehelpercat=new Array();
ilkherf=guaven_woos_tempval.toLowerCase().substring(0, 1);
var guaven_woos_findin_data_cat;
if(guaven_woos.large_data==1){
guaven_woos_findin_data_cat=guaven_woos_cache_cat_keywords_arr[ilkherf];
}else{
guaven_woos_findin_data_cat=guaven_woos.category_keywords;
}
for (var guaven_woos_ckey in guaven_woos_findin_data_cat){
var guaven_woos_ctemptitle=guaven_woos.category_keywords[guaven_woos_ckey];
if(guaven_woos.stripcharacters!=undefined) guaven_woos_ctemptitle=guaven_woos_replace_array(guaven_woos_ctemptitle, gws_specials_0, gws_specials_replacers_0, 1);
if(guaven_woos.translit_data=='') guaven_woos_ctemptitle=guaven_woos_replace_array(guaven_woos_ctemptitle, gws_specials, gws_specials_replacers, 1);
var guaven_woos_ctemphtml=guaven_woos.category_html[guaven_woos_ckey];
guaven_woos_ctemptitle=guaven_woos_ctemptitle.toLowerCase();
if(guaven_woos.orderrelevancy==1){
var woos_searchcat_existense_relevant_pre=guaven_woos_ctemptitle.indexOf(" "+guaven_woos_tempval+" ");
var woos_searchcat_existense_relevant=guaven_woos_ctemptitle.indexOf(guaven_woos_tempval + " ");
}else{
var woos_searchcat_existense_relevant=-1;
var woos_searchcat_existense_relevant_pre=-1;
}
if(woos_searchcat_existense_relevant===0){
kehelpercat_relevant.push(guaven_woos.keyformat(woos_searchcat_existense_relevant)+guaven_woos.keyformat(guaven_woos_ckey) + '~g~v~n~' +  guaven_woos_ctemphtml);
}
else if(woos_searchcat_existense_relevant_pre >-1){
kehelpercat_relevant.push(guaven_woos.keyformat(woos_searchcat_existense_relevant_pre)+guaven_woos.keyformat(guaven_woos_ckey) + '~g~v~n~' +  guaven_woos_ctemphtml);
}
else if(woos_searchcat_existense_relevant >-1){
kehelpercat_relevant.push(guaven_woos.keyformat(woos_searchcat_existense_relevant)+guaven_woos.keyformat(guaven_woos_ckey) + '~g~v~n~' +  guaven_woos_ctemphtml);
}else{
var woos_searchcat_existense=guaven_woos_ctemptitle.indexOf(guaven_woos_tempval);
if(woos_searchcat_existense > -1){
kehelpercat.push(guaven_woos.keyformat(woos_searchcat_existense)+guaven_woos.keyformat(guaven_woos_ckey) + '~g~v~n~' +  guaven_woos_ctemphtml);
}else if(guaven_woos_tempval.indexOf(" ") > -1){
var concatsearch=guaven_woos_concatsearch(guaven_woos_tempval, guaven_woos_ctemptitle);
if(concatsearch > -1){
kehelpercat.push(guaven_woos.keyformat(concatsearch + guaven_woos.cmaxcount)+guaven_woos.keyformat(guaven_woos_ckey) + '~g~v~n~ ' +  guaven_woos_ctemphtml);
}}
}}
if(guaven_woos.orderrelevancy==1){
kehelpercat_relevant.sort();
kehelpercat.sort();
kehelpercat=kehelpercat_relevant.concat(kehelpercat);
}
for (var i=0; i < guaven_woos.cmaxcount&&i < kehelpercat.length; i++){
var guaven_woos_ctemphtml=kehelpercat[i].split("~g~v~n~")[1].trim();
if(guaven_woos_ctemphtml)
guaven_woos_cfinalresult=guaven_woos_cfinalresult + guaven_woos_format(guaven_woos_ctemphtml, '');
}
return guaven_woos_cfinalresult;
}
guaven_woos.send_tr_data=function (){
if(guaven_woos.dttrr!=1){
clearInterval(guaven_woos.send_tr_data_checker);
return;
}
guaven_woos.data.failed=localStorage.keywordfailed;
guaven_woos.data.success=localStorage.keywordsuccess;
guaven_woos.data.corrected=localStorage.keywordcorrected;
let temporary_sum=guaven_woos.data.failed + guaven_woos.data.success + guaven_woos.data.corrected;
guaven_woos.data.unid=localStorage.unid;
if(temporary_sum.length > 0){
localStorage.keywordfailed='';
localStorage.keywordsuccess='';
localStorage.keywordcorrected='';
jQuery.post(guaven_woos.ajaxurl, guaven_woos.data, function(response){});
}}
guaven_woos.send_tr_data_checker=setInterval('guaven_woos.send_tr_data()',1500);
guaven_woos.send_trend=function(pid, unid){
jQuery.post(guaven_woos.ajaxurl, {
'action': 'guaven_woos_trend',
'pid': pid,
'unid': unid
}, function(response){});
}
function guaven_woos_uniqid(){
var ts=String(new Date().getTime()),
i=0,
out='';
for (i=0; i < ts.length; i +=2){
out +=Number(ts.substring(i, i+2)).toString(36);
}
return ('d' + out);
}
function guaven_woos_left_setter(guaven_woos_offset_left,fixedtempwidh){
if(guaven_woos.live_ui_layout.substr(0,5)!='grid_')return guaven_woos_offset_left;
if(guaven_woos_offset_left>window.outerWidth/2){
gws_adjust_left=guaven_woos_offset_left-jQuery(".guaven_woos_suggestion").outerWidth()+fixedtempwidh;
}else{
gws_adjust_left=guaven_woos_offset_left;
}
return gws_adjust_left;
}
guaven_woos.positioner=function(guaven_woos_input){
var guaven_woos_offset=guaven_woos_input.offset();
guaven_woos_input.attr('autocomplete', 'off');
guaven_woos_sugbarwidth=guaven_woos.sugbarwidth;
if(guaven_woos_input.outerWidth()+100>window.outerWidth)guaven_woos_sugbarwidth=1;
jQuery(".guaven_woos_suggestion").css('top', guaven_woos_offset.top + parseFloat(guaven_woos_input.outerHeight()));
jQuery(".guaven_woos_suggestion").outerWidth(parseFloat(guaven_woos_input.outerWidth()) *guaven_woos_sugbarwidth);
fixedtempwidh=guaven_woos_input.outerWidth();
gws_adjust_left=guaven_woos_left_setter(guaven_woos_offset.left,fixedtempwidh);
jQuery(".guaven_woos_suggestion").css('left', gws_adjust_left);
guaven_woos.set_sb_to_show=setTimeout(function(){
if(guaven_woos_input.outerWidth()==fixedtempwidh){
jQuery(".guaven_woos_suggestion").css('display', 'block');
}}, 100);
guaven_woos.set_sb_to_show_animated=setTimeout(function(){
jQuery(".guaven_woos_suggestion").css('top', guaven_woos_offset.top + parseFloat(guaven_woos_input.outerHeight()));
jQuery(".guaven_woos_suggestion").outerWidth(parseFloat(guaven_woos_input.outerWidth()) * guaven_woos_sugbarwidth);
gws_adjust_left=guaven_woos_left_setter(guaven_woos_input.offset().left);
jQuery(".guaven_woos_suggestion").css('left',gws_adjust_left,fixedtempwidh);
jQuery(".guaven_woos_suggestion").css('display', 'block');
}, 1000);
}
guaven_woos.backend_preparer_direct=function(searchterm){
jQuery("body").append('<form method="get" id="gws_hidden_form">' +
'<input name="post_type" value="product" type="hidden">' +
'<input name="s" id="s" value="' + searchterm + '"></form>');
var searchterm_formatted_nofilter=gws_tempval(searchterm,'nofilter');
jQuery("#gws_hidden_form #s").trigger("focus");
guaven_woos_display_in=".guaven_woos_suggestion";
jQuery("#gws_hidden_form #s").trigger("keyup");
var gws_resubmit=setInterval(function(){
if(prids_object===null||prids_object==undefined||prids_object.length==0){return;}else{clearInterval(gws_resubmit);}
var guaven_woos_data_2={
'action': 'guaven_woos_pass_to_backend',
"ids": prids_object,
"kw": searchterm_formatted_nofilter
};
jQuery.ajax({
method:'post',
url: guaven_woos.ajaxurl,
data: guaven_woos_data_2,
}).done(function(response){
if(response=='ok'){gws_global_ret=1;jQuery("#gws_hidden_form").submit();}});
}, 300);
}
guaven_woos.backend_preparer=function (gws_this,gws_this_tempval,gws_this_tempval_nofilter){
gws_this.children("input:submit").attr("disabled", "disabled");
if(prids_object=='') return 'direct_submit';
if(guaven_woos.setpostform==2||(guaven_woos.setpostform!=undefined&&guaven_woos.live_server!=1)){
guaven_woos.turn_form_to_post(gws_this);
if(guaven_woos.mobilesearch==1){
guaven_woos.turn_form_to_post(jQuery(".guaven_woos_mobilesearch form"));
}
gws_this.find("#guaven_woos_ids").val(prids_object);
gws_global_ret=1;
jQuery(gws_this).submit();
return;
}
var guaven_woos_data_2={
'action': 'guaven_woos_pass_to_backend',
"ids": prids_object,
"kw": gws_this_tempval_nofilter
};
jQuery.ajax({
method:'post',
url: guaven_woos.ajaxurl,
data: guaven_woos_data_2,
}).done(function(response){
gws_this.children("input:submit").removeAttr("disabled");
if(response=='ok'){gws_global_ret=1;jQuery(gws_this).submit();}});
}
window.gws_tempval_filter=function(str){return str;}
function gws_tempval(str, nofilter){
if(!nofilter||nofilter=='') str=gws_tempval_filter(str);
guaven_woos_tempval=str.trim();
if(guaven_woos.stripcharacters!=undefined) guaven_woos_tempval=guaven_woos_replace_array(guaven_woos_tempval, gws_specials_0, gws_specials_replacers_0, 1);
if(guaven_woos.translit_data=="") guaven_woos_tempval=guaven_woos_replace_array(guaven_woos_tempval.toLowerCase(), gws_specials, gws_specials_replacers, 1);
else if(guaven_woos.translit_data==1) guaven_woos_tempval=guaven_woos_replace_array(guaven_woos_tempval.toLowerCase(), $gws_specials, $gws_specials_replacers, 1);
guaven_woos_tempval=gws_ignore_filter(guaven_woos_tempval);
return guaven_woos_tempval;
}
function gws_ignore_filter(str){
if(typeof(guaven_woos.ignorelist)=="undefined") return str;
if(guaven_woos.ignorelist[0]!=''&&guaven_woos.ignorelist[0]!=' '){
for (var i=0; i < guaven_woos.ignorelist.length; i++){
if(guaven_woos.ignorelist[i].length > 0&&str.length >=(guaven_woos.ignorelist[i].length + 2))
str=str.gws_replaceAll(guaven_woos.ignorelist[i], "");
}}
return str;
}
function gws_currency_solver(){
var gws_current_currency=typeof woocs_current_currency!=='undefined' ? 1:0;
if(guaven_woos.woo_multicurrency!=undefined){
gws_current_currency=2; woocs_current_currency=guaven_woos.woo_multicurrency;
}
if(gws_current_currency==0) return;
jQuery(".guaven_woos_suggestion .woocommerce-Price-amount").each(function(){
var price_old_cur,price_new_cur;
price_old_cur=jQuery(this).html();
price_old_cur=price_old_cur.replace(",","").replace(" ","");
if(price_old_cur.indexOf(woocs_current_currency.symbol)==-1){
price_old_cur=price_old_cur.match(/[+-]?([0-9]*[.])?[0-9]+/)[0];
price_new_cur=0.01*Math.round(100*price_old_cur*woocs_current_currency.rate);
if(gws_current_currency==2){
gws_woo_mc_calculator();
price_new_cur=Math.ceil(price_old_cur * woocs_current_currency.rate * (1 + woocs_current_currency.conv / 100)/woocs_current_currency.round)*woocs_current_currency.round-woocs_current_currency.charm;
}
if(woocs_current_currency.position=='right'){
jQuery(this).html(price_new_cur.toFixed(2)+woocs_current_currency.symbol);
}else{
jQuery(this).html(woocs_current_currency.symbol+price_new_cur.toFixed(2));
}}
});
}
function gws_woo_mc_calculator(){
if(guaven_woos.woo_multicurrency.charm=='')guaven_woos.woo_multicurrency.charm=0.01;
if(guaven_woos.woo_multicurrency.conv=='')guaven_woos.woo_multicurrency.conv=0;
if(guaven_woos.woo_multicurrency.round=='')guaven_woos.woo_multicurrency.round=1;
if(guaven_woos.woo_multicurrency.rate=='')guaven_woos.woo_multicurrency.rate=1;
}
function gws_simple_expression_sanitizer(guaven_woos_tempval_par,gws_parceprice){
guaven_woos_tempval_par=guaven_woos_tempval_par.replace(gws_current_segment_text,"");
guaven_woos_tempval_par=guaven_woos_tempval_par.replace(gws_parceprice[0],"");
guaven_woos_tempval_par=guaven_woos_tempval_par.replace(gws_parceprice[1],"");
guaven_woos_tempval_par=guaven_woos_tempval_par.replace(guaven_woos.currency_abv.toLowerCase(),"");
if(guaven_woos.currency_singular!=''&&guaven_woos.currency_plural!=''){
guaven_woos_tempval_par=guaven_woos_tempval_par.replace(guaven_woos.currency_singular.toLowerCase(),"");
guaven_woos_tempval_par=guaven_woos_tempval_par.replace(guaven_woos.currency_plural.toLowerCase(),"");
}
return guaven_woos_tempval_par;
}
function gws_simple_expression_response(gws_parceprice,gws_parceprice_final,guaven_woos_temphtml,current_segment,current_segment_text){
var cont='';
var pureprice,pureprice_final;
pureprice=guaven_woos_temphtml.replace(" ","").match('{{p}}(.*){{p}}');
if(pureprice==null) pureprice=["{{p}}0{{p}}","{{p}}0{{p}}"];
if(pureprice!='null'){
pureprice=pureprice[0].split("{{p}}");
pureprice[pureprice.length-2]=pureprice[pureprice.length-2].replace(",","");
pureprice_final=parseFloat(pureprice[pureprice.length-2].replace(/^\D+/g, ''));
if(isNaN(pureprice_final)||pureprice_final==undefined){
pureprice[pureprice.length-3]=pureprice[pureprice.length-3].replace(",","");
pureprice_final=parseFloat(pureprice[pureprice.length-3].replace(/^\D+/g, ''));
}
guaven_woos_tempval=gws_simple_expression_sanitizer(guaven_woos_tempval,gws_parceprice);
if(current_segment==1&&Math.abs(pureprice_final-gws_parceprice_final)>(pureprice_final*0.2)) cont='continue';
else if(current_segment==2&&pureprice_final<gws_parceprice_final){cont='continue';}
else if(current_segment==0&&pureprice_final>gws_parceprice_final){cont='continue';}}
return cont;
}
function gws_simple_expression_scanner(guaven_woos_tempval_raw){
let guaven_woos_tempval_raw_in=guaven_woos_tempval_raw.replace(guaven_woos.currency_abv.toLowerCase(),guaven_woos.currency_symb);
guaven_woos_tempval_raw_in=guaven_woos_tempval_raw_in.replace(guaven_woos.currency_abv.toLowerCase()+" ",guaven_woos.currency_symb);
if(guaven_woos.currency_singular!=''&&guaven_woos.currency_plural!=''){
guaven_woos_tempval_raw_in=guaven_woos_tempval_raw_in.replace(guaven_woos.currency_singular.toLowerCase(),guaven_woos.currency_symb);
guaven_woos_tempval_raw_in=guaven_woos_tempval_raw_in.replace(guaven_woos.currency_plural.toLowerCase(),guaven_woos.currency_symb);
}
gws_match=new Array();
gws_match[0]=new RegExp("["+guaven_woos.currency_symb+"]([0-9]+[\.]*[0-9]*)");
gws_match[1]=new RegExp("([0-9]+[\.]*[0-9]*)["+guaven_woos.currency_symb+"]");
gws_match[2]=new RegExp("([0-9]+[\.]*[0-9]*)[ ]["+guaven_woos.currency_symb+"]");
for (var k=0;k<gws_match.length;k++){
gws_parceprice=guaven_woos_tempval_raw_in.match(gws_match[k]);
if(gws_parceprice&&guaven_woos_tempval_raw_in.toLowerCase().indexOf(guaven_woos.currency_symb.toLowerCase())>-1){
gws_parceprice_final=gws_parceprice[0].replace(/\D/g,'');
break;
}}
gws_current_segment=1;gws_current_segment_text='';
for(var j=0;j<guaven_woos.expression_segments.length;j++){
if(guaven_woos_tempval_raw_in.indexOf(guaven_woos.expression_segments[j])>-1){
gws_current_segment=j;gws_current_segment_text=guaven_woos.expression_segments[j];
}}
return gws_parceprice;
}
guaven_woos.turn_form_to_post=function(gws_current_form){
var selector=gws_current_form.find('[name="s"]');
gws_current_form.attr("method","post");
var action=gws_current_form.attr("action");
var extension='post_type=product&s='+encodeURIComponent(selector.val());
var prefix=action.indexOf("?")>-1?'&':'?';
if(action.indexOf(extension)==-1){
gws_current_form.attr("action",action+prefix+extension);
gws_current_form.append('<input type="hidden" name="guaven_woos_ids" id="guaven_woos_ids" value="">');
}}
function guaven_woos_finish_rendering(){
guaven_woos_cfinalresult='';
if(guaven_woos.categories_enabled==1){
guaven_woos_cfinalresult=guaven_woos_result_catadd();
if(guaven_woos_cfinalresult!='')
guaven_woos_cfinalresult="<ul class='guaven_woos_suggestion_catul'>" + guaven_woos_cfinalresult + "</ul>";
}
if(guaven_woos.backend==3&&prids_object==''){
prids_object='0,0';
}
guaven_show_all='';
if(guaven_woos.show_all_text!=''&&rescount>1){
guaven_show_all='<li class="guaven_woos_showallli"><a onclick="guaven_woos.current_input_object.closest(\'form\').submit()" href="javascript://">' +
guaven_woos.show_all_text + '</a></li>';
}
if(typeof guaven_woos_display_in=="undefined"){
guaven_woos_display_in=gws_define_suggestion_area(guaven_woos.current_input_object);
}
let gws_final_html_parts=[guaven_woos_cfinalresult , "<ul class=\"guaven_woos_final_results\">" , guaven_woos_finalresult , guaven_show_all , "</ul>"];
let gws_final_html=gws_filter_final_html(gws_final_html_parts);
jQuery('.guaven_woos_suggestion').html(gws_final_html);
if(guaven_woos.utm_enabled==1){
jQuery('.guaven_woos_suggestion_list > a').each(function(i, el){
el.href=guaven_woos_add_utm_parameters(el.href, guaven_woos_tempval);
});
}
gws_currency_solver();
if(guaven_woos_display_in!='.guaven_woos_suggestion_standalone'){
if(rescount > 0) jQuery(".guaven_woos_suggestion").css('display', 'block');
else if(guaven_woos.shownotfound==''&&guaven_woos_cfinalresult=='')
jQuery(".guaven_woos_suggestion").css('display', 'none');
}
if(guaven_woos.shownotfound!=''&&guaven_woos_finalresult==''&&guaven_woos_cfinalresult==''){
jQuery('.guaven_woos_suggestion').html("<ul  class=\"guaven_woos_final_results\"><li>" + guaven_woos.shownotfound + "</li></ul>");
if(guaven_show_all!='') jQuery(".guaven_woos_showallli").remove();
if(guaven_woos.dttrr==1&&typeof(Storage)!=="undefined"){
localStorage.keywordfailed=localStorage.keywordfailed + guaven_woos_tempval + ', ';
if(guaven_woos.ga_enabled==1&&typeof(ga)!="undefined"&&ga.getAll){
ga.getAll()[0].send('event', 'Live Search', 'failed', guaven_woos_tempval);
}}
if(guaven_woos.populars_enabled==1&&guaven_woos.populars_html){
let guaven_woos_populars_final='';
for (var guaven_woos_pps in guaven_woos.populars_html){
if(!(guaven_woos_pps>0))continue;
guaven_woos_populars_final +=guaven_woos_format(guaven_woos.populars_html[guaven_woos_pps], guaven_woos.populars_keywords[guaven_woos_pps]);
}
jQuery('.guaven_woos_suggestion').append("<ul class='guaven_woos_suggestion_unlisted guaven_woos_suggestion_populars'>" +
guaven_woos_populars_final + "</ul>");
}}
}
window.gws_push_row=function (_tries,_keyhelper,guaven_woos_temphtml, guaven_woos_temptitle, woos_search_existense, guaven_woos_tempval, stortype,woos_key,_prefix_num){
_keyhelper.push(guaven_woos.prepare_push(guaven_woos_temphtml, guaven_woos_temptitle, woos_search_existense, guaven_woos_tempval, stortype,woos_key,_prefix_num));
return _keyhelper;
}
function guaven_woos_result_loop(tries, _rescount_prev){
var keyhelper=new Array();
var keyhelper_relevant=new Array();
guaven_woos_tempval=guaven_woos_tempval.gws_replaceAll(".00''", "''");
guaven_woos_tempval=guaven_woos_tempval.toLowerCase();
ilkherf=guaven_woos_tempval.substring(0, 1);
if(guaven_woos_tempval.indexOf('guaven') > -1) return;
var guaven_woos_findin_data;
if(guaven_woos.large_data==1){
guaven_woos_findin_data=gwsc_keywords_arr[ilkherf];
}else{
guaven_woos_findin_data=guaven_woos.cache_keywords;
}
gws_parceprice=false;
if(guaven_woos.simple_expressions==1){
gws_parceprice=gws_simple_expression_scanner(guaven_woos.tempval_raw);
}
guaven_woos_tempval_space=guaven_woos_tempval.indexOf(" ");
guaven_woos_tempval_nospace=guaven_woos_tempval;
if(guaven_woos_tempval_space > -1){
guaven_woos_tempval_nospace=guaven_woos_tempval.gws_replaceAll(" ","");
}
var guaven_woos_temptitle='';
var guaven_woos_temptitle_raw='';
var guaven_woos_temptitle_temp='';
var guaven_woos_temphtml='';
guaven_woos_curcatid_str=guaven_woos.live_filter_selector_prepare();
for (var guaven_woos_key in guaven_woos_findin_data){
if(!(guaven_woos_key>=0)){continue;}
guaven_woos_temphtml=guaven_woos.cache_html[guaven_woos_key];
if(gwsc_keywords_filtered[guaven_woos_key]!=undefined){
guaven_woos_temptitle=gwsc_keywords_filtered[guaven_woos_key];
guaven_woos_temptitle_raw=gwsc_keywords_filtered_raw[guaven_woos_key];
}else{
guaven_woos_temptitle=guaven_woos.cache_keywords[guaven_woos_key];
guaven_woos_temptitle_raw=guaven_woos_temptitle;
guaven_woos_temptitle=guaven_woos_temptitle.toLowerCase();
if(guaven_woos.stripcharacters!=undefined) guaven_woos_temptitle=guaven_woos_replace_array(guaven_woos_temptitle, gws_specials_0, gws_specials_replacers_0, 1);
if(guaven_woos.translit_data=='') guaven_woos_temptitle=guaven_woos_replace_array(guaven_woos_temptitle, gws_specials, gws_specials_replacers, 1);
gwsc_keywords_filtered[guaven_woos_key]=guaven_woos_temptitle;
gwsc_keywords_filtered_raw[guaven_woos_key]=guaven_woos_temptitle_raw;
}
if(guaven_woos.live_filter_selector!=''&&guaven_woos_temptitle_raw.indexOf(guaven_woos_curcatid_str)==-1){
continue;
}
if(gws_parceprice&&gws_parceprice_final!=''){
let simple_expression_response=gws_simple_expression_response(gws_parceprice,gws_parceprice_final,guaven_woos_temphtml,gws_current_segment,gws_current_segment_text);
if(simple_expression_response=='continue') continue;
}
if(guaven_woos.exactmatch==1){
guaven_woos_temptitle_exact_string=guaven_woos_temptitle.replace(/(<([^>]+)>)/ig, "");
guaven_woos_temptitle_exact_string=guaven_woos_temptitle_exact_string.gws_replaceAll(",", " ");
guaven_woos_temptitle_exact_string=guaven_woos_stripQuotes(guaven_woos_temptitle_exact_string);
guaven_woos_temptitle_exact=guaven_woos_temptitle_exact_string.split(" ");
for (var exact_key in guaven_woos_temptitle_exact){
if(guaven_woos_temptitle_exact[exact_key]==guaven_woos_tempval){
keyhelper=gws_push_row(tries,keyhelper,guaven_woos_temphtml, guaven_woos_temptitle_raw, exact_key, guaven_woos_tempval, '',guaven_woos_key,0);
}}
}else if(tries==0){
gws_keyhelper_to_push=[-1,-1];
if(guaven_woos.orderrelevancy==1){
var woos_search_existense_relevant_pre=guaven_woos_temptitle.indexOf(" "+guaven_woos_tempval+" ");
var woos_search_existense_relevant=guaven_woos_temptitle.indexOf(guaven_woos_tempval + " ");
}else{
var woos_search_existense_relevant=-1;
var woos_search_existense_relevant_pre=-1;
}
if(woos_search_existense_relevant===0){
gws_keyhelper_to_push=[woos_search_existense_relevant,0];
}
else if(woos_search_existense_relevant_pre >-1){
gws_keyhelper_to_push=[woos_search_existense_relevant_pre,0];
}else{
var woos_search_existense=guaven_woos_temptitle.indexOf(guaven_woos_tempval);
if(woos_search_existense > -1){
gws_keyhelper_to_push=[woos_search_existense,1];
}else if(guaven_woos_tempval_space > -1){
var concatsearch=guaven_woos_concatsearch(guaven_woos_tempval, guaven_woos_temptitle);
if(concatsearch > -1){
gws_keyhelper_to_push=[(concatsearch + guaven_woos.maxcount),1];
}}
}
if(gws_keyhelper_to_push[0]>-1){
keyhelper=gws_push_row(tries,keyhelper,guaven_woos_temphtml, guaven_woos_temptitle_raw, gws_keyhelper_to_push[0], guaven_woos_tempval, '',guaven_woos_key, gws_keyhelper_to_push[1]);
}
if(guaven_woos.disable_meta_correction==1&&woos_search_existense_sku==-1){
woos_search_existense_sku=guaven_woos_temptitle_raw.toLowerCase().indexOf(" " + guaven_woos.tempval_raw + " ");
if(woos_search_existense_sku==-1||woos_search_existense_sku <=guaven_woos_temptitle_raw.indexOf("woos_sku")){
woos_search_existense_sku=-1;
}}
}else if(guaven_woos.correction_enabled==1){
if(woos_search_existense_sku > -1) break;
if(guaven_woos.disable_meta_correction==1){
guaven_woos_temptitle=guaven_woos_temptitle_temp[0];
if(guaven_woos_temptitle_raw.indexOf("woos_sku")>-1){
guaven_woos_temptitle_temp=guaven_woos_temptitle_raw.toLowerCase().split("woos_sku");
}else{
guaven_woos_temptitle_temp=guaven_woos_temptitle_raw.toLowerCase().split("{{k}}");
}
guaven_woos_temptitle=guaven_woos_temptitle_temp[0];
}
if(jQuery.inArray(guaven_woos_key,gws_foundids)>-1) continue;
var lev_a=guaven_woos_tempval;
var guaven_woos_temptitle_startpoint=guaven_woos_temptitle.indexOf(lev_a.substring(0, 1));
if(guaven_woos_temptitle_startpoint==-1) guaven_woos_temptitle_startpoint=0;
var lev_b=guaven_woos_temptitle.substr(guaven_woos_temptitle_startpoint, lev_a.length
+1
).toLowerCase().gws_replaceAll(" ","").gws_replaceAll("-","");
var corrected_push=0;
var lev_a_start=lev_a;
if(typeof(guaven_woos_tempval_nospace)!='undefined')lev_a_start=guaven_woos_tempval_nospace;
finalpercent=guaven_woos_levenshtein(lev_a_start, lev_b);
var finalpercent_weight;
if(finalpercent <=100){
corrected_push=1;
finalpercent_weight=10+guaven_woos_temptitle_startpoint;
}else{
var lev_a=guaven_woos_tempval.replace(" ", "");
var gwtsp_splitted=guaven_woos_temptitle.split(' ');
for (var gwtsp in gwtsp_splitted){
if(gwtsp_splitted[gwtsp].length < 3) continue;
finalpercent=guaven_woos_levenshtein(lev_a, gwtsp_splitted[gwtsp]);
if(finalpercent <=100){
corrected_push=1;
finalpercent_weight=100+guaven_woos_temptitle_startpoint;
}}
}
if(corrected_push==1){
finalpercent_weight=finalpercent_weight+100 + parseInt(guaven_woos.maxcount) + parseInt(guaven_woos_temptitle.indexOf(guaven_woos.wpml));
finalpercent_weight=finalpercent_weight+finalpercent;
keyhelper=gws_push_row(tries,keyhelper,guaven_woos_temphtml, guaven_woos_temptitle_raw,
finalpercent_weight, guaven_woos_tempval, 'corrected',guaven_woos_key,2);
}}
}
if(guaven_woos.orderrelevancy==1||guaven_woos.orderrelevancy_custom!=undefined){
keyhelper.sort();
}
var rescount_new=_rescount_prev;
let purevalue_str;
let purevalue;
let purevalue_1;
let purevalue_2;
for (var keyh in keyhelper){
purevalue_str=keyhelper[keyh]+'';
purevalue=purevalue_str.split("~g~v~n~");
if(purevalue[1]==undefined) continue;
if(guaven_woos_finalresult.indexOf(purevalue[1])==-1){
if(guaven_woos.backend==3){
purevalue_1=purevalue[1].split("prli_");
if(typeof(purevalue_1[1])=='undefined')continue;
purevalue_2=purevalue_1[1].split('"');
prids_object=prids_object + purevalue_2[0] + ",";
}
if(rescount_new < guaven_woos.maxcount){
rescount_new++;
guaven_woos_finalresult=guaven_woos_finalresult + guaven_woos_format(purevalue[1], purevalue[2]);
}}
}}
guaven_woos.live_filter_selector_prepare=function(){
return "~"+jQuery(guaven_woos.live_filter_selector).val()+"~";
}
guaven_woos.get_unid=function(){
if(typeof(Storage)!=="undefined") return localStorage.unid;
else return guaven_woos_getcookie('gws_unid');
}
function gws_define_suggestion_area (gwsjqthis){
if(gwsjqthis.attr("id")!='guaven_woos_standalone_s'){
return '.guaven_woos_suggestion';
}else{
return '.guaven_woos_suggestion_standalone';
}}
guaven_woos.mobile_search_open=function(jthis){
jQuery('.guaven_woos_mobilesearch').show();
jQuery("body").addClass("guaven_woos_mobile_div_state");
jQuery('.guaven_woos_suggestion').css({
'overflow-y': 'scroll',
'max-height': jQuery(".guaven_woos_mobilesearch").height() - 120 + 'px'
});
jQuery("#wpadminbar").hide();
jQuery('html').css('overflow', 'hidden');
if(jthis==''||jthis.attr("id")!='guaven_woos_s'){
if(jthis!='')jthis.blur();
setTimeout(function(){
jQuery("#guaven_woos_s").trigger('focus');
}, 400);
return;
}}
guaven_woos.runner=function(){
guaven_woos.runner_initialized=1;
var guaven_woos_object_name=guaven_woos.selector;
var guaven_woos_object=jQuery(guaven_woos_object_name);
var newunid='';
if(typeof(Storage)!=="undefined"){
if(guaven_woos.dttrr==1){
if((localStorage.keywordsuccess==undefined)) localStorage.setItem("keywordsuccess", "");
if((localStorage.keywordfailed==undefined)) localStorage.setItem("keywordfailed", "");
if((localStorage.keywordcorrected==undefined)) localStorage.setItem("keywordcorrected", "");
}
if((localStorage.unid==undefined)){
newunid="user_" + guaven_woos_uniqid();
localStorage.setItem("unid", newunid);
document.cookie="gws_unid=" + newunid + ";path=/";
}else if(guaven_woos_getcookie('gws_unid')==undefined) document.cookie="gws_unid=" + localStorage.unid + ";path=/";
}else if(guaven_woos_getcookie('gws_unid')==undefined) document.cookie="gws_unid=" + "user_" + guaven_woos_uniqid() + ";path=/";
gwsc_keywords_arr=new Array();
guaven_woos_cache_cat_keywords_arr=new Array();
if(guaven_woos.large_data==1){
for (var guaven_woos_key in guaven_woos.cache_keywords){
var indexA=guaven_woos.cache_keywords[guaven_woos_key].substring(0, 1).toLowerCase();
if(!gwsc_keywords_arr.hasOwnProperty(indexA)){
gwsc_keywords_arr[indexA]=new Array();
}
gwsc_keywords_arr[indexA][guaven_woos_key]=guaven_woos.cache_keywords[guaven_woos_key];
}
for (var guaven_woos_key in guaven_woos.category_keywords){
var indexA=guaven_woos.category_keywords[guaven_woos_key].substring(0, 1).toLowerCase();
if(!guaven_woos_cache_cat_keywords_arr.hasOwnProperty(indexA)){
guaven_woos_cache_cat_keywords_arr[indexA]=new Array();
}
guaven_woos_cache_cat_keywords_arr[indexA][guaven_woos_key]=guaven_woos.category_keywords[guaven_woos_key];
}}
jQuery(document).on('touchstart focus', guaven_woos_object_name, function(){
if(guaven_woos.mobilesearch==1&&jQuery('.guaven_woos_mobilesearch').width() < '768'){
guaven_woos.mobile_search_open(jQuery(this));
}
guaven_woos_input=jQuery(this);
guaven_woos_display_in=gws_define_suggestion_area(guaven_woos_input);
if(guaven_woos_display_in=='.guaven_woos_suggestion'){
guaven_woos.positioner(guaven_woos_input);
}
if(jQuery(this).val()!=''){
jQuery(this).trigger("keyup");
}else if(guaven_woos.focused==0){
jQuery(guaven_woos_display_in).html("");
if(guaven_woos.showinit.length > 2) jQuery(guaven_woos_display_in).html("<ul class=\"guaven_woos_init_text\"><li tabindex=\"-1\">" + guaven_woos.showinit + "</li></ul>");
if(guaven_woos.pinnedtitle&&(guaven_woos.pinned_cat_html!=''||guaven_woos.pinned_html)){
guaven_woos_pinned_final='';
for (var guaven_woos_ph in guaven_woos.pinned_html){
if(guaven_woos.pinned_keywords[guaven_woos_ph].indexOf(guaven_woos.wpml) > -1)
guaven_woos_pinned_final +=guaven_woos_format(guaven_woos.pinned_html[guaven_woos_ph], guaven_woos.pinned_keywords[guaven_woos_ph]);
}
guaven_woos_pinned_final=guaven_woos.pinned_cat_html + guaven_woos_pinned_final;
jQuery(guaven_woos_display_in).append("<p class=\"guaven_woos_pinnedtitle guaven_woos_feattitle\">" + guaven_woos.pinnedtitle + "</p><ul class='guaven_woos_suggestion_unlisted'>" +
guaven_woos_pinned_final + "</ul>");
}
if(guaven_woos.trending!=undefined&&guaven_woos.trending[0].length > 2){
gws_trend_html=JSON.parse(guaven_woos.trending[0]);
gws_trend_keywords=JSON.parse(guaven_woos.trending[1]);
guaven_woos_trend_final='';
for (var guaven_woos_pps in gws_trend_html){
if(!(guaven_woos_pps>0)||gws_trend_keywords[guaven_woos_pps].indexOf(guaven_woos.wpml)==-1) continue;
guaven_woos_trend_final=guaven_woos_trend_final + guaven_woos_format(gws_trend_html[guaven_woos_pps], gws_trend_keywords[guaven_woos_pps]).replace(/\\/g, '');
}
if(guaven_woos_trend_final!=''){
jQuery(guaven_woos_display_in).append("<p class=\"guaven_woos_pinnedtitle guaven_woos_trendtitle\">" + guaven_woos.trendtitle + "</p><ul class='guaven_woos_suggestion_unlisted guaven_woos_suggestion_trend'>" +
guaven_woos_trend_final + "</ul>");
}}
if(guaven_woos.persprod!=''&&guaven_woos.persprod!=undefined){
guaven_woos.persprod=gws_urldecode(guaven_woos.persprod);
jQuery(guaven_woos_display_in).append("<p class=\"guaven_woos_pinnedtitle guaven_woos_perstitle\">" + guaven_woos.perst +
"</p><ul class='guaven_woos_suggestion_unlisted'>" + guaven_woos_format(guaven_woos.persprod) + "</ul>");
}
gws_currency_solver();
}
guaven_woos.focused=1;
});
guaven_woos.set_to_hide='calmdown';
jQuery(document).on('focusout', guaven_woos_object_name, function(){
clearTimeout(guaven_woos.set_sb_to_show);
clearTimeout(guaven_woos.set_sb_to_show_animated);
if(guaven_woos.show_when_unfocus==1){
guaven_woos.set_to_hide='';
return;
}
guaven_woos.focused=0;
guaven_woos.set_to_hide=setTimeout(function(){
if(guaven_woos.set_to_hide_inside!=undefined)guaven_woos.set_to_hide_inside();
else if(jQuery(".guaven_woos_mobilesearch").css("display")!='block'){
jQuery(".guaven_woos_suggestion").css('display', 'none');
}}, guaven_woos.delay_time);
});
jQuery(document).on('click',".guaven_woos_suggestion",function(){
clearTimeout(guaven_woos.set_to_hide);
guaven_woos.set_to_hide='calmdown';
setTimeout(function(){guaven_woos.set_to_hide='tobefocusedout';},200);
});
jQuery(document).on('click',function(){
if(guaven_woos.set_to_hide=='tobefocusedout')jQuery(guaven_woos.selector).trigger('focusout');
if(guaven_woos.show_when_unfocus==1&&guaven_woos.set_to_hide==''){
guaven_woos.set_to_hide=setTimeout(function(){
if(guaven_woos.set_to_hide_inside!=undefined)guaven_woos.set_to_hide_inside();
else if(jQuery(".guaven_woos_mobilesearch").css("display")!='block'){
jQuery(".guaven_woos_suggestion").css('display', 'none');
}}, guaven_woos.delay_time);
}});
runSearch='';is_runSearch=0;runSearch_live='';is_runSearch_live=0;
gws_global_ret=0;
guaven_woos_lastval='';
woos_search_existense_sku=-1;
guaven_woos.current_input_object='';
gws_foundids=[];
jQuery(document).on('keyup', guaven_woos_object_name, function(e){
guaven_woos.current_input_object=jQuery(this);
if(guaven_woos_lastval==jQuery(this).val()) return;
else guaven_woos_lastval=jQuery(this).val();
woos_search_existense_sku=-1;
prids_object="";
if(e.which===40||e.which===38)
return;
guaven_woos_finalresult='';
rescount=0;
guaven_woos.tempval=gws_tempval(jQuery(this).val());
guaven_woos_tempval=guaven_woos.tempval;
guaven_woos.tempval_raw=jQuery(this).val().toLowerCase();
is_runSearch=1;
is_runSearch_live=1;
gws_foundids=[];
clearTimeout(runSearch);
clearTimeout(runSearch_live);
runSearch_live=setTimeout(function(){
if(guaven_woos.live_server!=1) return;
if(guaven_woos_tempval.length >=(guaven_woos.minkeycount - 1)){
is_runSearch_live=0;
guaven_woos_do_newer_search(guaven_woos_tempval);
}
else if(guaven_woos.showinit.length > 2){
jQuery('.guaven_woos_suggestion').html("<ul  class=\"guaven_woos_init_text\"><li>" + guaven_woos.showinit + "</li></ul>");
}else if(guaven_woos.showinit.length==0){
jQuery('.guaven_woos_suggestion').html("");
}
if(e.which!=undefined){
setTimeout('guaven_woos.send_tr_data()', 3000);
}},guaven_woos.engine_start_delay);
runSearch=setTimeout(function(){
if(guaven_woos.live_server==1) return;
if(guaven_woos_tempval.length >=(guaven_woos.minkeycount - 1)){
guaven_woos_result_loop(0,0);
if(rescount <=guaven_woos.maxtypocount||rescount <=guaven_woos.maxcount){
maxpercent=0;
finalpercent=0;
let maxsimilarword='';
guaven_woos_result_loop(1,rescount);
}
is_runSearch=0;
guaven_woos_finish_rendering();
}else if(guaven_woos.showinit.length > 2){
jQuery('.guaven_woos_suggestion').html("<ul  class=\"guaven_woos_init_text\"><li>" + guaven_woos.showinit + "</li></ul>");
}else if(guaven_woos.showinit.length==0){
jQuery('.guaven_woos_suggestion').html("");
}
if(e.which!=undefined){
setTimeout('guaven_woos.send_tr_data()', 3000);
}}, guaven_woos.engine_start_delay);
});
jQuery(window).keydown(function(e){
let li=jQuery('.guaven_woos_suggestion li');
let next=1;let prev=0;
if(e.which===40){
if(liSelected!=-1){
li.eq(liSelected).removeClass('guaven_woos_selected');
next=liSelected+1;
if(next <=li.length-1){
liSelected=liSelected+1;
}else{
liSelected=0;
}
li.eq(liSelected).addClass('guaven_woos_selected');
}else{
liSelected=0;
li.eq(liSelected).addClass('guaven_woos_selected');
}}else if(e.which===38){
if(liSelected!=-1){
li.eq(liSelected).removeClass('guaven_woos_selected');
prev=liSelected-1;
if(prev >=0){
liSelected=liSelected-1;
}else{
liSelected=li.length-1;
}
li.eq(liSelected).addClass('guaven_woos_selected');
}else{
liSelected=0;
li.eq(liSelected).addClass('guaven_woos_selected');
}}
else if(e.which==13&&jQuery(".guaven_woos_selected").html()!=undefined&&jQuery(".guaven_woos_selected>a").html()!=undefined){
if(jQuery(".guaven_woos_selected>a").attr("href")!=undefined&&jQuery(".guaven_woos_selected>a").attr("href").indexOf("http")>-1){
e.preventDefault();
window.location.href=jQuery(".guaven_woos_selected>a").attr("href");
return false;
}}
});
jQuery("form").each(function(){
if(guaven_woos.backend==2&&jQuery(this).has(guaven_woos.selector).length > 0){
jQuery(this).attr("action", guaven_woos.search_results);
jQuery(this).append('<input type="hidden" name="guaven_woos_stdnln" value="1">');
}});
jQuery(guaven_woos.selector).closest('form').on('submit',function(){
if(gws_global_ret==1||guaven_woos.backend!=3||guaven_woos.live_server==1) return true;
gws_this=jQuery(this);
gws_this_tempval=gws_tempval(gws_this.find('[name="s"]').val());
gws_this_tempval_nofilter=gws_tempval(gws_this.find('[name="s"]').val(),'nofilter');
if(gws_this_tempval=='') return true;
if(is_runSearch==1){
setTimeout(function(){
guaven_woos.backend_preparer(gws_this,gws_this_tempval,gws_this_tempval_nofilter);
jQuery(gws_this).submit();
},1000);
}else{
var check_direct_submit=guaven_woos.backend_preparer(gws_this,gws_this_tempval,gws_this_tempval_nofilter);
if(check_direct_submit=='direct_submit') return true;
}
return false;
});
jQuery(".guaven_woos_showallli a").on("click", function(e){
e.preventDefault();
jQuery(guaven_woos.selector).closest('form').submit();
});
}
function guaven_woos_do_newer_search (keyword){
if(typeof(gws_xhr)!='string'){
gws_xhr.abort();
}
gws_parceprice=false;
if(guaven_woos.simple_expressions==1){
gws_parceprice=gws_simple_expression_scanner(keyword);
if(gws_parceprice_final!=undefined&&gws_parceprice_final!=""){
keyword=gws_simple_expression_sanitizer(keyword,gws_parceprice);
}}
var gws_pe_data={
action: guaven_woos.live_server_path,
product_category_string: jQuery(guaven_woos.live_filter_selector).val() ? '~'+jQuery(guaven_woos.live_filter_selector).val()+'~':'',
gws_search: keyword,
price: gws_parceprice_final,
price_segment: gws_current_segment,
gws_lang: guaven_woos.wpml,
validate_code: guaven_woos.validate_code,
};
gws_xhr=jQuery.post(guaven_woos.ajaxurl, gws_pe_data, function(response){
let response_split=response.split("~gws_plus_found_ids~");
guaven_woos_finalresult=guaven_woos_format(response_split[0]);
prids_object=response_split[1];
guaven_woos_finish_rendering();
});
}
jQuery(window).on('load',function(){
if(guaven_woos.callafterrender!=undefined){
gws_cache_activator();
}else{
jQuery(document).trigger('ready');
}});
jQuery(document).ready(function(){
jQuery('.guaven_woos_mobilesearch').css({
'height': (jQuery(window).height()) + 'px'
});
jQuery(guaven_woos.selector).each(function(){
if(jQuery(this).is(":focus")){
jQuery(this).blur();
}});
jQuery(document).on('keyup', guaven_woos.selector, function(e){
if(typeof guaven_woos.cache_keywords=="undefined"){gws_queued_object=jQuery(this);}});
if(guaven_woos.callafterrender==undefined){
gws_cache_activator();
}
jQuery(".gws_clearable").each(function(){
var gws_inp=jQuery(this).find("input:text"),
gws_cle=jQuery(this).find(".gws_clearable__clear");
gws_inp.on("input", function(){
gws_cle.toggle(!!this.value);
});
gws_cle.on("touchstart click", function(e){
e.preventDefault();
gws_inp.val("").trigger("input");
});
});
});
})(jQuery);
document.documentElement.className+=" js_active ",document.documentElement.className+="ontouchstart"in document.documentElement?" vc_mobile ":" vc_desktop ",(()=>{for(var e=["-webkit-","-moz-","-ms-","-o-",""],t=0;t<e.length;t++)e[t]+"transform"in document.documentElement.style&&(document.documentElement.className+=" vc_transform ")})(),(c=>{"function"!=typeof window.vc_js&&(window.vc_js=function(){vc_toggleBehaviour(),vc_tabsBehaviour(),vc_accordionBehaviour(),vc_teaserGrid(),vc_carouselBehaviour(),vc_slidersBehaviour(),vc_prettyPhoto(),vc_pinterest(),vc_progress_bar(),vc_plugin_flexslider(),vc_gridBehaviour(),vc_rowBehaviour(),vc_prepareHoverBox(),vc_googleMapsPointer(),vc_ttaActivation(),vc_ttaToggleBehaviour(),jQuery(document).trigger("vc_js"),window.setTimeout(vc_waypoints,500)}),"function"!=typeof window.vc_plugin_flexslider&&(window.vc_plugin_flexslider=function(e){(e?e.find(".wpb_flexslider"):jQuery(".wpb_flexslider")).each(function(){var e=jQuery(this),t=1e3*parseInt(e.attr("data-interval"),10),o=e.attr("data-flex_fx"),i=0==t?!1:!0;e.is(":visible")&&setTimeout(function(){e.flexslider({animation:o,slideshow:i,slideshowSpeed:t,sliderSpeed:800,smoothHeight:!0})},1)})}),"function"!=typeof window.vc_googleplus&&(window.vc_googleplus=function(){var e,t;0<jQuery(".wpb_googleplus").length&&((e=document.createElement("script")).type="text/javascript",e.async=!0,e.src="https://apis.google.com/js/plusone.js",(t=document.getElementsByTagName("script")[0]).parentNode.insertBefore(e,t))}),"function"!=typeof window.vc_pinterest&&(window.vc_pinterest=function(){var e,t;0<jQuery(".wpb_pinterest").length&&((e=document.createElement("script")).type="text/javascript",e.async=!0,e.src="https://assets.pinterest.com/js/pinit.js",(t=document.getElementsByTagName("script")[0]).parentNode.insertBefore(e,t))}),"function"!=typeof window.vc_progress_bar&&(window.vc_progress_bar=function(){void 0!==jQuery.fn.vcwaypoint&&jQuery(".vc_progress_bar").each(function(){var e=jQuery(this);e.vcwaypoint(function(){e.find(".vc_single_bar").each(function(e){var t=jQuery(this).find(".vc_bar"),o=t.data("percentage-value");setTimeout(function(){t.css({width:o+"%"})},200*e)})},{offset:"85%"})})}),"function"!=typeof window.vc_waypoints&&(window.vc_waypoints=function(){void 0!==jQuery.fn.vcwaypoint&&jQuery(".wpb_animate_when_almost_visible:not(.wpb_start_animation)").each(function(){var e=jQuery(this);e.vcwaypoint(function(){e.addClass("wpb_start_animation animated")},{offset:"85%"})})}),"function"!=typeof window.vc_toggleBehaviour&&(window.vc_toggleBehaviour=function(e){function t(e){e&&e.preventDefault&&e.preventDefault();var t=jQuery(this).closest(".vc_toggle"),e=t.find(".vc_toggle_content");t.hasClass("vc_toggle_active")?e.slideUp({duration:300,complete:function(){t.removeClass("vc_toggle_active")}}):e.slideDown({duration:300,complete:function(){t.addClass("vc_toggle_active")}})}(e?e.hasClass("vc_toggle_title")?e.unbind("click"):e.find(".vc_toggle_title").off("click"):jQuery(".vc_toggle_title").off("click")).on("click",t)}),"function"!=typeof window.vc_ttaToggleBehaviour&&(window.vc_ttaToggleBehaviour=function(e){function t(){var e=jQuery(this);e.toggleClass("wpb-tta-toggle-active"),e.parent().parent().parent().find(".vc_pagination-item").each(function(){if(!c(this).hasClass("vc_active"))return c(this).find("a").click(),!1})}(e?e.find(".wpb-tta-toggle"):jQuery(".wpb-tta-toggle")).off("click").on("click",t),setTimeout(function(){jQuery(".wpb-tta-toggle").each(function(){var e=jQuery(this);e.parent().parent().parent().find(".vc_tta-panels-container .vc_pagination li:first").hasClass("vc_active")||e.addClass("wpb-tta-toggle-active")})},1e3)}),"function"!=typeof window.vc_tabsBehaviour&&(window.vc_tabsBehaviour=function(e){var t,i;jQuery.ui&&(e=e||jQuery(".wpb_tabs, .wpb_tour"),t=jQuery.ui&&jQuery.ui.version?jQuery.ui.version.split("."):"1.10",i=1===parseInt(t[0],10)&&parseInt(t[1],10)<9,e.each(function(){var e=jQuery(this).attr("data-interval"),t=[],o=jQuery(this).find(".wpb_tour_tabs_wrapper").tabs({show:function(e,t){wpb_prepare_tab_content(e,t)},activate:function(e,t){wpb_prepare_tab_content(e,t)}});if(e&&0<e)try{o.tabs("rotate",1e3*e)}catch(e){window.console&&window.console.warn&&console.warn("tabs behaviours error",e)}jQuery(this).find(".wpb_tab").each(function(){t.push(this.id)}),jQuery(this).find(".wpb_tabs_nav li").on("click",function(e){return e&&e.preventDefault&&e.preventDefault(),i?o.tabs("select",jQuery("a",this).attr("href")):o.tabs("option","active",jQuery(this).index()),!1}),jQuery(this).find(".wpb_prev_slide a, .wpb_next_slide a").on("click",function(e){var t;e&&e.preventDefault&&e.preventDefault(),i?(t=o.tabs("option","selected"),jQuery(this).parent().hasClass("wpb_next_slide")?t++:t--,t<0?t=o.tabs("length")-1:t>=o.tabs("length")&&(t=0),o.tabs("select",t)):(t=o.tabs("option","active"),e=o.find(".wpb_tab").length,t=jQuery(this).parent().hasClass("wpb_next_slide")?e<=t+1?0:t+1:t-1<0?e-1:t-1,o.tabs("option","active",t))})}))}),"function"!=typeof window.vc_accordionBehaviour&&(window.vc_accordionBehaviour=function(){jQuery(".wpb_accordion").each(function(){var e=jQuery(this),t=(e.attr("data-interval"),!isNaN(jQuery(this).data("active-tab"))&&0<parseInt(e.data("active-tab"),10)&&parseInt(e.data("active-tab"),10)-1),o=!1===t||"yes"===e.data("collapsible"),t=e.find(".wpb_accordion_wrapper").accordion({header:"> div > h3",autoHeight:!1,heightStyle:"content",active:t,collapsible:o,navigation:!0,activate:vc_accordionActivate,change:function(e,t){void 0!==jQuery.fn.isotope&&t.newContent.find(".isotope").isotope("layout"),vc_carouselBehaviour(t.newPanel)}});!0===e.data("vcDisableKeydown")&&(t.data("uiAccordion")._keydown=function(){})})}),"function"!=typeof window.vc_teaserGrid&&(window.vc_teaserGrid=function(){var i={fitrows:"fitRows",masonry:"masonry"};jQuery(".wpb_grid .teaser_grid_container:not(.wpb_carousel), .wpb_filtered_grid .teaser_grid_container:not(.wpb_carousel)").each(function(){var e=jQuery(this),t=e.find(".wpb_thumbnails"),o=t.attr("data-layout-mode");t.isotope({itemSelector:".isotope-item",layoutMode:void 0===i[o]?"fitRows":i[o]}),e.find(".categories_filter a").data("isotope",t).on("click",function(e){e&&e.preventDefault&&e.preventDefault();e=jQuery(this).data("isotope");jQuery(this).parent().parent().find(".active").removeClass("active"),jQuery(this).parent().addClass("active"),e.isotope({filter:jQuery(this).attr("data-filter")})}),jQuery(window).on("load resize",function(){t.isotope("layout")})})}),"function"!=typeof window.vc_carouselBehaviour&&(window.vc_carouselBehaviour=function(e){(e?e.find(".wpb_carousel"):jQuery(".wpb_carousel")).each(function(){var e=jQuery(this);!0!==e.data("carousel_enabled")&&e.is(":visible")&&(e.data("carousel_enabled",!0),getColumnsCount(jQuery(this)),jQuery(this).hasClass("columns_count_1"),(e=jQuery(this).find(".wpb_thumbnails-fluid li")).css({"margin-right":e.css("margin-left"),"margin-left":0}),(e=jQuery(this).find("ul.wpb_thumbnails-fluid")).width(e.width()+300))})}),"function"!=typeof window.vc_slidersBehaviour&&(window.vc_slidersBehaviour=function(){jQuery(".wpb_gallery_slides").each(function(){var e,t,o=jQuery(this);o.hasClass("wpb_slider_nivo")?(0===(t=1e3*o.attr("data-interval"))&&(t=9999999999),o.find(".nivoSlider").nivoSlider({effect:"boxRainGrow,boxRain,boxRainReverse,boxRainGrowReverse",slices:15,boxCols:8,boxRows:4,animSpeed:800,pauseTime:t,startSlide:0,directionNav:!0,directionNavHide:!0,controlNav:!0,keyboardNav:!1,pauseOnHover:!0,manualAdvance:!1,prevText:"Prev",nextText:"Next"})):o.hasClass("wpb_image_grid")&&o.find(".wpb_image_grid_ul")&&o.find(".wpb_image_grid_ul").isotope&&(jQuery.fn.imagesLoaded?e=o.find(".wpb_image_grid_ul").imagesLoaded(function(){e.isotope({itemSelector:".isotope-item",layoutMode:"fitRows"})}):o.find(".wpb_image_grid_ul").isotope({itemSelector:".isotope-item",layoutMode:"fitRows"}))})}),"function"!=typeof window.vc_prettyPhoto&&(window.vc_prettyPhoto=function(){try{jQuery&&jQuery.fn&&jQuery.fn.prettyPhoto&&jQuery('a.prettyphoto, .gallery-icon a[href*=".jpg"]').prettyPhoto({animationSpeed:"normal",hook:"data-rel",padding:15,opacity:.7,showTitle:!0,allowresize:!0,counter_separator_label:"/",hideflash:!1,deeplinking:!1,modal:!1,callback:function(){-1<location.href.indexOf("#!prettyPhoto")&&(location.hash="")},social_tools:""})}catch(e){window.console&&window.console.warn&&window.console.warn("vc_prettyPhoto initialize error",e)}}),"function"!=typeof window.vc_google_fonts&&(window.vc_google_fonts=function(){return window.console&&window.console.warn&&window.console.warn("function vc_google_fonts is deprecated, no need to use it"),!1}),window.vcParallaxSkroll=!1,"function"!=typeof window.vc_rowBehaviour&&(window.vc_rowBehaviour=function(){var s=window.jQuery;function e(){var e;void 0!==window.wpb_disable_full_width_row_js&&window.wpb_disable_full_width_row_js||(e=s('[data-vc-full-width="true"]'),s.each(e,function(){var e,t,o,i,n,a,r,c=s(this),d=(c.addClass("vc_hidden"),c.next(".vc_row-full-width"));(d=d.length?d:c.parent().next(".vc_row-full-width")).length&&(e=parseInt(c.css("margin-left"),10),t=parseInt(c.css("margin-right"),10),o=0-d.offset().left-e,i=s(window).width(),n={position:"relative",left:o="rtl"===c.css("direction")?(o=o-d.width()+i)+e+t:o,"box-sizing":"border-box",width:i,"max-width":i},c.css(n),c.data("vcStretchContent")||("rtl"===c.css("direction")?((a=o)<0&&(a=0),(r=o)<0&&(r=0)):(r=i-(a=(a=-1*o)<0?0:a)-d.width()+e+t)<0&&(r=0),c.css({"padding-left":a+"px","padding-right":r+"px"})),c.attr("data-vc-full-width-init","true"),c.removeClass("vc_hidden"),s(document).trigger("vc-full-width-row-single",{el:c,offset:o,marginLeft:e,marginRight:t,elFull:d,width:i,maxWidth:i}))}),s(document).trigger("vc-full-width-row",e))}function t(){var e,t,o=s(".vc_row-o-full-height:first");o.length&&(e=s(window).height(),(t=o.offset().top)<e)&&o.css("min-height",100-t/(e/100)+"vh"),s(document).trigger("vc-full-height-row",o)}s(window).off("resize.vcRowBehaviour").on("resize.vcRowBehaviour",e).on("resize.vcRowBehaviour",t),e(),t(),(0<window.navigator.userAgent.indexOf("MSIE ")||navigator.userAgent.match(/Trident.*rv\:11\./))&&s(".vc_row-o-full-height").each(function(){"flex"===s(this).css("display")&&s(this).wrap('<div class="vc_ie-flexbox-fixer"></div>')}),vc_initVideoBackgrounds();var n=!1;if(window.vcParallaxSkroll&&window.vcParallaxSkroll.destroy(),s(".vc_parallax-inner").remove(),s("[data-5p-top-bottom]").removeAttr("data-5p-top-bottom data-30p-top-bottom"),s("[data-vc-parallax]").each(function(){var e,t,o,i;n=!0,"on"===s(this).data("vcParallaxOFade")&&s(this).children().attr("data-5p-top-bottom","opacity:0;").attr("data-30p-top-bottom","opacity:1;"),e=100*s(this).data("vcParallax"),(t=s("<div />").addClass("vc_parallax-inner").appendTo(s(this))).height(e+"%"),o=s(this).data("vcParallaxImage"),(i=vcExtractYoutubeId(o))?insertYoutubeVideoAsBackground(t,i):void 0!==o&&t.css("background-image","url("+o+")"),t.attr("data-bottom-top","top: "+-(e-100)+"%;").attr("data-top-bottom","top: 0%;")}),n&&window.skrollr)window.vcParallaxSkroll=skrollr.init({forceHeight:!1,smoothScrolling:!1,mobileCheck:function(){return!1}}),window.vcParallaxSkroll}),"function"!=typeof window.vc_gridBehaviour&&(window.vc_gridBehaviour=function(){jQuery.fn.vcGrid&&jQuery("[data-vc-grid]").vcGrid()}),"function"!=typeof window.getColumnsCount&&(window.getColumnsCount=function(e){for(var t=!1,o=1;!1===t;){if(e.hasClass("columns_count_"+o))return t=!0,o;o++}}),"function"!=typeof window.wpb_prepare_tab_content&&(window.wpb_prepare_tab_content=function(e,t){var o=t.panel||t.newPanel,i=o.find(".vc_pie_chart:not(.vc_ready)"),n=o.find(".vc_round-chart"),a=o.find(".vc_line-chart"),r=o.find('[data-ride="vc_carousel"]');vc_carouselBehaviour(),vc_plugin_flexslider(o),t.newPanel.find(".vc_masonry_media_grid, .vc_masonry_grid").length&&t.newPanel.find(".vc_masonry_media_grid, .vc_masonry_grid").each(function(){var e=jQuery(this).data("vcGrid");e&&e.gridBuilder&&e.gridBuilder.setMasonry&&e.gridBuilder.setMasonry()}),o.find(".vc_masonry_media_grid, .vc_masonry_grid").length&&o.find(".vc_masonry_media_grid, .vc_masonry_grid").each(function(){var e=jQuery(this).data("vcGrid");e&&e.gridBuilder&&e.gridBuilder.setMasonry&&e.gridBuilder.setMasonry()}),i.length&&jQuery.fn.vcChat&&i.vcChat(),n.length&&jQuery.fn.vcRoundChart&&n.vcRoundChart({reload:!1}),a.length&&jQuery.fn.vcLineChart&&a.vcLineChart({reload:!1}),r.length&&jQuery.fn.carousel&&r.carousel("resizeAction"),t=o.find(".isotope, .wpb_image_grid_ul"),i=o.find(".wpb_gmaps_widget"),0<t.length&&t.isotope("layout"),i.length&&!i.is(".map_ready")&&((n=i.find("iframe")).attr("src",n.attr("src")),i.addClass("map_ready")),o.parents(".isotope").length&&o.parents(".isotope").each(function(){jQuery(this).isotope("layout")}),c(document).trigger("wpb_prepare_tab_content",o)}),"function"!=typeof window.vc_ttaActivation&&(window.vc_ttaActivation=function(){jQuery("[data-vc-accordion]").on("show.vc.accordion",function(e){var t=window.jQuery,o={};o.newPanel=t(this).data("vc.accordion").getTarget(),window.wpb_prepare_tab_content(e,o)})}),"function"!=typeof window.vc_accordionActivate&&(window.vc_accordionActivate=function(e,t){var o,i,n,a;t.newPanel.length&&t.newHeader.length&&(o=t.newPanel.find(".vc_pie_chart:not(.vc_ready)"),i=t.newPanel.find(".vc_round-chart"),n=t.newPanel.find(".vc_line-chart"),a=t.newPanel.find('[data-ride="vc_carousel"]'),void 0!==jQuery.fn.isotope&&t.newPanel.find(".isotope, .wpb_image_grid_ul").isotope("layout"),t.newPanel.find(".vc_masonry_media_grid, .vc_masonry_grid").length&&t.newPanel.find(".vc_masonry_media_grid, .vc_masonry_grid").each(function(){var e=jQuery(this).data("vcGrid");e&&e.gridBuilder&&e.gridBuilder.setMasonry&&e.gridBuilder.setMasonry()}),vc_carouselBehaviour(t.newPanel),vc_plugin_flexslider(t.newPanel),o.length&&jQuery.fn.vcChat&&o.vcChat(),i.length&&jQuery.fn.vcRoundChart&&i.vcRoundChart({reload:!1}),n.length&&jQuery.fn.vcLineChart&&n.vcLineChart({reload:!1}),a.length&&jQuery.fn.carousel&&a.carousel("resizeAction"),t.newPanel.parents(".isotope").length)&&t.newPanel.parents(".isotope").each(function(){jQuery(this).isotope("layout")})}),"function"!=typeof window.initVideoBackgrounds&&(window.initVideoBackgrounds=function(){return window.console&&window.console.warn&&window.console.warn("this function is deprecated use vc_initVideoBackgrounds"),vc_initVideoBackgrounds()}),"function"!=typeof window.vc_initVideoBackgrounds&&(window.vc_initVideoBackgrounds=function(){c(".vc_video-bg").remove(),c("[data-vc-video-bg]").each(function(){var e,o=jQuery(this);o.data("vcVideoBg")?(e=o.data("vcVideoBg"),(e=vcExtractYoutubeId(e))&&(o.find(".vc_video-bg").remove(),insertYoutubeVideoAsBackground(o,e)),jQuery(window).on("grid:items:added",function(e,t){o.has(t).length&&vcResizeVideoBackground(o)})):o.find(".vc_video-bg").remove()})}),"function"!=typeof window.insertYoutubeVideoAsBackground&&(window.insertYoutubeVideoAsBackground=function(e,t,o){if("undefined"==typeof YT||void 0===YT.Player)return 100<(o=void 0===o?0:o)?void console.warn("Too many attempts to load YouTube api"):void setTimeout(function(){insertYoutubeVideoAsBackground(e,t,o++)},100);var i=e.prepend('<div class="vc_video-bg"><div class="inner"></div></div>').find(".inner");new YT.Player(i[0],{width:"100%",height:"100%",videoId:t,playerVars:{playlist:t,iv_load_policy:3,enablejsapi:1,disablekb:1,autoplay:1,controls:0,showinfo:0,rel:0,loop:1,mute:1,wmode:"transparent"},events:{onReady:function(e){e.target.mute().setLoop(!0)}}}),vcResizeVideoBackground(e),jQuery(window).on("resize",function(){vcResizeVideoBackground(e)})}),"function"!=typeof window.vcResizeVideoBackground&&(window.vcResizeVideoBackground=function(e){var t,o,i,n,a=e.innerWidth(),r=e.innerHeight();a/r<16/9?(t=r*(16/9),o=r,i=-Math.round((t-a)/2)+"px",n=-Math.round((o-r)/2)+"px"):(o=(t=a)*(9/16),n=-Math.round((o-r)/2)+"px",i=-Math.round((t-a)/2)+"px"),t+="px",o+="px",e.find(".vc_video-bg iframe").css({maxWidth:"1000%",marginLeft:i,marginTop:n,width:t,height:o})}),"function"!=typeof window.vcExtractYoutubeId&&(window.vcExtractYoutubeId=function(e){return void 0!==e&&null!==(e=e.match(/(?:https?:\/{2})?(?:w{3}\.)?youtu(?:be)?\.(?:com|be)(?:\/watch\?v=|\/)([^\s&]+)/))&&e[1]}),"function"!=typeof window.vc_googleMapsPointer&&(window.vc_googleMapsPointer=function(){var e=window.jQuery,t=e(".wpb_gmaps_widget");t.on("click",function(){e("iframe",this).css("pointer-events","auto")}),t.on("mouseleave",function(){e("iframe",this).css("pointer-events","none")}),e(".wpb_gmaps_widget iframe").css("pointer-events","none")}),"function"!=typeof window.vc_setHoverBoxPerspective&&(window.vc_setHoverBoxPerspective=function(e){e.each(function(){var e=jQuery(this),t=e.width();e.css("perspective",4*t+"px")})}),"function"!=typeof window.vc_setHoverBoxHeight&&(window.vc_setHoverBoxHeight=function(e){e.each(function(){var e=jQuery(this),t=e.find(".vc-hoverbox-inner"),o=(t.css("min-height",0),e.find(".vc-hoverbox-front-inner").outerHeight()),e=e.find(".vc-hoverbox-back-inner").outerHeight(),o=e<o?o:e;t.css("min-height",(o=o<250?250:o)+"px")})}),"function"!=typeof window.vc_prepareHoverBox&&(window.vc_prepareHoverBox=function(){var e=jQuery(".vc-hoverbox");vc_setHoverBoxHeight(e),vc_setHoverBoxPerspective(e)}),jQuery(document).ready(window.vc_prepareHoverBox),jQuery(window).on("resize",window.vc_prepareHoverBox),jQuery(document).ready(function(){window.vc_js()})})(window.jQuery);
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e():"function"==typeof define&&define.amd?define(e):(t="undefined"!=typeof globalThis?globalThis:t||self).bootstrap=e()}(this,(function(){"use strict";const t={find:(t,e=document.documentElement)=>[].concat(...Element.prototype.querySelectorAll.call(e,t)),findOne:(t,e=document.documentElement)=>Element.prototype.querySelector.call(e,t),children:(t,e)=>[].concat(...t.children).filter((t=>t.matches(e))),parents(t,e){const n=[];let i=t.parentNode;for(;i&&i.nodeType===Node.ELEMENT_NODE&&3!==i.nodeType;)i.matches(e)&&n.push(i),i=i.parentNode;return n},prev(t,e){let n=t.previousElementSibling;for(;n;){if(n.matches(e))return[n];n=n.previousElementSibling}return[]},next(t,e){let n=t.nextElementSibling;for(;n;){if(n.matches(e))return[n];n=n.nextElementSibling}return[]}},e="transitionend",n=t=>{do{t+=Math.floor(1e6*Math.random())}while(document.getElementById(t));return t},i=t=>{let e=t.getAttribute("data-bs-target");if(!e||"#"===e){let n=t.getAttribute("href");if(!n||!n.includes("#")&&!n.startsWith("."))return null;n.includes("#")&&!n.startsWith("#")&&(n=`#${n.split("#")[1]}`),e=n&&"#"!==n?n.trim():null}return e},o=t=>{const e=i(t);return e&&document.querySelector(e)?e:null},r=t=>{const e=i(t);return e?document.querySelector(e):null},s=t=>!(!t||"object"!=typeof t)&&(void 0!==t.jquery&&(t=t[0]),void 0!==t.nodeType),a=e=>s(e)?e.jquery?e[0]:e:"string"==typeof e&&e.length>0?t.findOne(e):null,l=(t,n)=>{let i=!1;const o=n+5;t.addEventListener(e,(function n(){i=!0,t.removeEventListener(e,n)})),setTimeout((()=>{i||(t=>{t.dispatchEvent(new Event(e))})(t)}),o)},c=(t,e,n)=>{Object.keys(n).forEach((i=>{const o=n[i],r=e[i],a=r&&s(r)?"element":null==(l=r)?`${l}`:{}.toString.call(l).match(/\s([a-z]+)/i)[1].toLowerCase();var l;if(!new RegExp(o).test(a))throw new TypeError(`${t.toUpperCase()}: Option "${i}" provided type "${a}" but expected type "${o}".`)}))},f=t=>{if(!t)return!1;if(t.style&&t.parentNode&&t.parentNode.style){const e=getComputedStyle(t),n=getComputedStyle(t.parentNode);return"none"!==e.display&&"none"!==n.display&&"hidden"!==e.visibility}return!1},u=t=>!t||t.nodeType!==Node.ELEMENT_NODE||(!!t.classList.contains("disabled")||(void 0!==t.disabled?t.disabled:t.hasAttribute("disabled")&&"false"!==t.getAttribute("disabled"))),d=t=>{if(!document.documentElement.attachShadow)return null;if("function"==typeof t.getRootNode){const e=t.getRootNode();return e instanceof ShadowRoot?e:null}return t instanceof ShadowRoot?t:t.parentNode?d(t.parentNode):null},p=()=>{},h=t=>t.offsetHeight,g=()=>{const{jQuery:t}=window;return t&&!document.body.hasAttribute("data-bs-no-jquery")?t:null},m=()=>"rtl"===document.documentElement.dir,_=t=>{var e;e=()=>{const e=g();if(e){const n=t.NAME,i=e.fn[n];e.fn[n]=t.jQueryInterface,e.fn[n].Constructor=t,e.fn[n].noConflict=()=>(e.fn[n]=i,t.jQueryInterface)}},"loading"===document.readyState?document.addEventListener("DOMContentLoaded",e):e()},v=t=>{"function"==typeof t&&t()},b=new Map;var y={set(t,e,n){b.has(t)||b.set(t,new Map);const i=b.get(t);i.has(e)||0===i.size?i.set(e,n):console.error(`Bootstrap doesn't allow more than one instance per element. Bound instance: ${Array.from(i.keys())[0]}.`)},get:(t,e)=>b.has(t)&&b.get(t).get(e)||null,remove(t,e){if(!b.has(t))return;const n=b.get(t);n.delete(e),0===n.size&&b.delete(t)}};const w=/[^.]*(?=\..*)\.|.*/,E=/\..*/,O=/::\d+$/,T={};let A=1;const L={mouseenter:"mouseover",mouseleave:"mouseout"},x=/^(mouseenter|mouseleave)/i,C=new Set(["click","dblclick","mouseup","mousedown","contextmenu","mousewheel","DOMMouseScroll","mouseover","mouseout","mousemove","selectstart","selectend","keydown","keypress","keyup","orientationchange","touchstart","touchmove","touchend","touchcancel","pointerdown","pointermove","pointerup","pointerleave","pointercancel","gesturestart","gesturechange","gestureend","focus","blur","change","reset","select","submit","focusin","focusout","load","unload","beforeunload","resize","move","DOMContentLoaded","readystatechange","error","abort","scroll"]);function D(t,e){return e&&`${e}::${A++}`||t.uidEvent||A++}function N(t){const e=D(t);return t.uidEvent=e,T[e]=T[e]||{},T[e]}function $(t,e,n=null){const i=Object.keys(t);for(let o=0,r=i.length;o<r;o++){const r=t[i[o]];if(r.originalHandler===e&&r.delegationSelector===n)return r}return null}function S(t,e,n){const i="string"==typeof e,o=i?n:e;let r=P(t);return C.has(r)||(r=t),[i,o,r]}function k(t,e,n,i,o){if("string"!=typeof e||!t)return;if(n||(n=i,i=null),x.test(e)){const t=t=>function(e){if(!e.relatedTarget||e.relatedTarget!==e.delegateTarget&&!e.delegateTarget.contains(e.relatedTarget))return t.call(this,e)};i?i=t(i):n=t(n)}const[r,s,a]=S(e,n,i),l=N(t),c=l[a]||(l[a]={}),f=$(c,s,r?n:null);if(f)return void(f.oneOff=f.oneOff&&o);const u=D(s,e.replace(w,"")),d=r?function(t,e,n){return function i(o){const r=t.querySelectorAll(e);for(let{target:s}=o;s&&s!==this;s=s.parentNode)for(let a=r.length;a--;)if(r[a]===s)return o.delegateTarget=s,i.oneOff&&M.off(t,o.type,e,n),n.apply(s,[o]);return null}}(t,n,i):function(t,e){return function n(i){return i.delegateTarget=t,n.oneOff&&M.off(t,i.type,e),e.apply(t,[i])}}(t,n);d.delegationSelector=r?n:null,d.originalHandler=s,d.oneOff=o,d.uidEvent=u,c[u]=d,t.addEventListener(a,d,r)}function j(t,e,n,i,o){const r=$(e[n],i,o);r&&(t.removeEventListener(n,r,Boolean(o)),delete e[n][r.uidEvent])}function P(t){return t=t.replace(E,""),L[t]||t}const M={on(t,e,n,i){k(t,e,n,i,!1)},one(t,e,n,i){k(t,e,n,i,!0)},off(t,e,n,i){if("string"!=typeof e||!t)return;const[o,r,s]=S(e,n,i),a=s!==e,l=N(t),c=e.startsWith(".");if(void 0!==r){if(!l||!l[s])return;return void j(t,l,s,r,o?n:null)}c&&Object.keys(l).forEach((n=>{!function(t,e,n,i){const o=e[n]||{};Object.keys(o).forEach((r=>{if(r.includes(i)){const i=o[r];j(t,e,n,i.originalHandler,i.delegationSelector)}}))}(t,l,n,e.slice(1))}));const f=l[s]||{};Object.keys(f).forEach((n=>{const i=n.replace(O,"");if(!a||e.includes(i)){const e=f[n];j(t,l,s,e.originalHandler,e.delegationSelector)}}))},trigger(t,e,n){if("string"!=typeof e||!t)return null;const i=g(),o=P(e),r=e!==o,s=C.has(o);let a,l=!0,c=!0,f=!1,u=null;return r&&i&&(a=i.Event(e,n),i(t).trigger(a),l=!a.isPropagationStopped(),c=!a.isImmediatePropagationStopped(),f=a.isDefaultPrevented()),s?(u=document.createEvent("HTMLEvents"),u.initEvent(o,l,!0)):u=new CustomEvent(e,{bubbles:l,cancelable:!0}),void 0!==n&&Object.keys(n).forEach((t=>{Object.defineProperty(u,t,{get:()=>n[t]})})),f&&u.preventDefault(),c&&t.dispatchEvent(u),u.defaultPrevented&&void 0!==a&&a.preventDefault(),u}};class H{constructor(t){(t=a(t))&&(this._element=t,y.set(this._element,this.constructor.DATA_KEY,this))}dispose(){y.remove(this._element,this.constructor.DATA_KEY),M.off(this._element,this.constructor.EVENT_KEY),Object.getOwnPropertyNames(this).forEach((t=>{this[t]=null}))}_queueCallback(t,e,n=!0){if(!n)return void v(t);const i=(t=>{if(!t)return 0;let{transitionDuration:e,transitionDelay:n}=window.getComputedStyle(t);const i=Number.parseFloat(e),o=Number.parseFloat(n);return i||o?(e=e.split(",")[0],n=n.split(",")[0],1e3*(Number.parseFloat(e)+Number.parseFloat(n))):0})(e);M.one(e,"transitionend",(()=>v(t))),l(e,i)}static getInstance(t){return y.get(t,this.DATA_KEY)}static get VERSION(){return"5.0.1"}static get NAME(){throw new Error('You have to implement the static method "NAME", for each component!')}static get DATA_KEY(){return`bs.${this.NAME}`}static get EVENT_KEY(){return`.${this.DATA_KEY}`}}const I="bs.alert",R=`.${I}`,B=`close${R}`,W=`closed${R}`,q=`click${R}.data-api`;class z extends H{static get NAME(){return"alert"}close(t){const e=t?this._getRootElement(t):this._element,n=this._triggerCloseEvent(e);null===n||n.defaultPrevented||this._removeElement(e)}_getRootElement(t){return r(t)||t.closest(".alert")}_triggerCloseEvent(t){return M.trigger(t,B)}_removeElement(t){t.classList.remove("show");const e=t.classList.contains("fade");this._queueCallback((()=>this._destroyElement(t)),t,e)}_destroyElement(t){t.parentNode&&t.parentNode.removeChild(t),M.trigger(t,W)}static jQueryInterface(t){return this.each((function(){let e=y.get(this,I);e||(e=new z(this)),"close"===t&&e[t](this)}))}static handleDismiss(t){return function(e){e&&e.preventDefault(),t.close(this)}}}M.on(document,q,'[data-bs-dismiss="alert"]',z.handleDismiss(new z)),_(z);const U="bs.button",F='[data-bs-toggle="button"]',Y=`click${`.${U}`}.data-api`;class K extends H{static get NAME(){return"button"}toggle(){this._element.setAttribute("aria-pressed",this._element.classList.toggle("active"))}static jQueryInterface(t){return this.each((function(){let e=y.get(this,U);e||(e=new K(this)),"toggle"===t&&e[t]()}))}}function V(t){return"true"===t||"false"!==t&&(t===Number(t).toString()?Number(t):""===t||"null"===t?null:t)}function Q(t){return t.replace(/[A-Z]/g,(t=>`-${t.toLowerCase()}`))}M.on(document,Y,F,(t=>{t.preventDefault();const e=t.target.closest(F);let n=y.get(e,U);n||(n=new K(e)),n.toggle()})),_(K);const G={setDataAttribute(t,e,n){t.setAttribute(`data-bs-${Q(e)}`,n)},removeDataAttribute(t,e){t.removeAttribute(`data-bs-${Q(e)}`)},getDataAttributes(t){if(!t)return{};const e={};return Object.keys(t.dataset).filter((t=>t.startsWith("bs"))).forEach((n=>{let i=n.replace(/^bs/,"");i=i.charAt(0).toLowerCase()+i.slice(1,i.length),e[i]=V(t.dataset[n])})),e},getDataAttribute:(t,e)=>V(t.getAttribute(`data-bs-${Q(e)}`)),offset(t){const e=t.getBoundingClientRect();return{top:e.top+document.body.scrollTop,left:e.left+document.body.scrollLeft}},position:t=>({top:t.offsetTop,left:t.offsetLeft})},X="collapse",Z="bs.collapse",J=`.${Z}`,tt={toggle:!0,parent:""},et={toggle:"boolean",parent:"(string|element)"},nt=`show${J}`,it=`shown${J}`,ot=`hide${J}`,rt=`hidden${J}`,st=`click${J}.data-api`,at="show",lt="collapse",ct="collapsing",ft="collapsed",ut="width",dt='[data-bs-toggle="collapse"]';class pt extends H{constructor(e,n){super(e),this._isTransitioning=!1,this._config=this._getConfig(n),this._triggerArray=t.find(`${dt}[href="#${this._element.id}"],${dt}[data-bs-target="#${this._element.id}"]`);const i=t.find(dt);for(let e=0,n=i.length;e<n;e++){const n=i[e],r=o(n),s=t.find(r).filter((t=>t===this._element));null!==r&&s.length&&(this._selector=r,this._triggerArray.push(n))}this._parent=this._config.parent?this._getParent():null,this._config.parent||this._addAriaAndCollapsedClass(this._element,this._triggerArray),this._config.toggle&&this.toggle()}static get Default(){return tt}static get NAME(){return X}toggle(){this._element.classList.contains(at)?this.hide():this.show()}show(){if(this._isTransitioning||this._element.classList.contains(at))return;let e,n;this._parent&&(e=t.find(".show, .collapsing",this._parent).filter((t=>"string"==typeof this._config.parent?t.getAttribute("data-bs-parent")===this._config.parent:t.classList.contains(lt))),0===e.length&&(e=null));const i=t.findOne(this._selector);if(e){const t=e.find((t=>i!==t));if(n=t?y.get(t,Z):null,n&&n._isTransitioning)return}if(M.trigger(this._element,nt).defaultPrevented)return;e&&e.forEach((t=>{i!==t&&pt.collapseInterface(t,"hide"),n||y.set(t,Z,null)}));const o=this._getDimension();this._element.classList.remove(lt),this._element.classList.add(ct),this._element.style[o]=0,this._triggerArray.length&&this._triggerArray.forEach((t=>{t.classList.remove(ft),t.setAttribute("aria-expanded",!0)})),this.setTransitioning(!0);const r=`scroll${o[0].toUpperCase()+o.slice(1)}`;this._queueCallback((()=>{this._element.classList.remove(ct),this._element.classList.add(lt,at),this._element.style[o]="",this.setTransitioning(!1),M.trigger(this._element,it)}),this._element,!0),this._element.style[o]=`${this._element[r]}px`}hide(){if(this._isTransitioning||!this._element.classList.contains(at))return;if(M.trigger(this._element,ot).defaultPrevented)return;const t=this._getDimension();this._element.style[t]=`${this._element.getBoundingClientRect()[t]}px`,h(this._element),this._element.classList.add(ct),this._element.classList.remove(lt,at);const e=this._triggerArray.length;if(e>0)for(let t=0;t<e;t++){const e=this._triggerArray[t],n=r(e);n&&!n.classList.contains(at)&&(e.classList.add(ft),e.setAttribute("aria-expanded",!1))}this.setTransitioning(!0);this._element.style[t]="",this._queueCallback((()=>{this.setTransitioning(!1),this._element.classList.remove(ct),this._element.classList.add(lt),M.trigger(this._element,rt)}),this._element,!0)}setTransitioning(t){this._isTransitioning=t}_getConfig(t){return(t={...tt,...t}).toggle=Boolean(t.toggle),c(X,t,et),t}_getDimension(){return this._element.classList.contains(ut)?ut:"height"}_getParent(){let{parent:e}=this._config;e=a(e);const n=`${dt}[data-bs-parent="${e}"]`;return t.find(n,e).forEach((t=>{const e=r(t);this._addAriaAndCollapsedClass(e,[t])})),e}_addAriaAndCollapsedClass(t,e){if(!t||!e.length)return;const n=t.classList.contains(at);e.forEach((t=>{n?t.classList.remove(ft):t.classList.add(ft),t.setAttribute("aria-expanded",n)}))}static collapseInterface(t,e){let n=y.get(t,Z);const i={...tt,...G.getDataAttributes(t),..."object"==typeof e&&e?e:{}};if(!n&&i.toggle&&"string"==typeof e&&/show|hide/.test(e)&&(i.toggle=!1),n||(n=new pt(t,i)),"string"==typeof e){if(void 0===n[e])throw new TypeError(`No method named "${e}"`);n[e]()}}static jQueryInterface(t){return this.each((function(){pt.collapseInterface(this,t)}))}}M.on(document,st,dt,(function(e){("A"===e.target.tagName||e.delegateTarget&&"A"===e.delegateTarget.tagName)&&e.preventDefault();const n=G.getDataAttributes(this),i=o(this);t.find(i).forEach((t=>{const e=y.get(t,Z);let i;e?(null===e._parent&&"string"==typeof n.parent&&(e._config.parent=n.parent,e._parent=e._getParent()),i="toggle"):i=n,pt.collapseInterface(t,i)}))})),_(pt);var ht="top",gt="bottom",mt="right",_t="left",vt="auto",bt=[ht,gt,mt,_t],yt="start",wt="end",Et="clippingParents",Ot="viewport",Tt="popper",At="reference",Lt=bt.reduce((function(t,e){return t.concat([e+"-"+yt,e+"-"+wt])}),[]),xt=[].concat(bt,[vt]).reduce((function(t,e){return t.concat([e,e+"-"+yt,e+"-"+wt])}),[]),Ct="beforeRead",Dt="read",Nt="afterRead",$t="beforeMain",St="main",kt="afterMain",jt="beforeWrite",Pt="write",Mt="afterWrite",Ht=[Ct,Dt,Nt,$t,St,kt,jt,Pt,Mt];function It(t){return t?(t.nodeName||"").toLowerCase():null}function Rt(t){if(null==t)return window;if("[object Window]"!==t.toString()){var e=t.ownerDocument;return e&&e.defaultView||window}return t}function Bt(t){return t instanceof Rt(t).Element||t instanceof Element}function Wt(t){return t instanceof Rt(t).HTMLElement||t instanceof HTMLElement}function qt(t){return"undefined"!=typeof ShadowRoot&&(t instanceof Rt(t).ShadowRoot||t instanceof ShadowRoot)}var zt={name:"applyStyles",enabled:!0,phase:"write",fn:function(t){var e=t.state;Object.keys(e.elements).forEach((function(t){var n=e.styles[t]||{},i=e.attributes[t]||{},o=e.elements[t];Wt(o)&&It(o)&&(Object.assign(o.style,n),Object.keys(i).forEach((function(t){var e=i[t];!1===e?o.removeAttribute(t):o.setAttribute(t,!0===e?"":e)})))}))},effect:function(t){var e=t.state,n={popper:{position:e.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(e.elements.popper.style,n.popper),e.styles=n,e.elements.arrow&&Object.assign(e.elements.arrow.style,n.arrow),function(){Object.keys(e.elements).forEach((function(t){var i=e.elements[t],o=e.attributes[t]||{},r=Object.keys(e.styles.hasOwnProperty(t)?e.styles[t]:n[t]).reduce((function(t,e){return t[e]="",t}),{});Wt(i)&&It(i)&&(Object.assign(i.style,r),Object.keys(o).forEach((function(t){i.removeAttribute(t)})))}))}},requires:["computeStyles"]};function Ut(t){return t.split("-")[0]}function Ft(t){var e=t.getBoundingClientRect();return{width:e.width,height:e.height,top:e.top,right:e.right,bottom:e.bottom,left:e.left,x:e.left,y:e.top}}function Yt(t){var e=Ft(t),n=t.offsetWidth,i=t.offsetHeight;return Math.abs(e.width-n)<=1&&(n=e.width),Math.abs(e.height-i)<=1&&(i=e.height),{x:t.offsetLeft,y:t.offsetTop,width:n,height:i}}function Kt(t,e){var n=e.getRootNode&&e.getRootNode();if(t.contains(e))return!0;if(n&&qt(n)){var i=e;do{if(i&&t.isSameNode(i))return!0;i=i.parentNode||i.host}while(i)}return!1}function Vt(t){return Rt(t).getComputedStyle(t)}function Qt(t){return["table","td","th"].indexOf(It(t))>=0}function Gt(t){return((Bt(t)?t.ownerDocument:t.document)||window.document).documentElement}function Xt(t){return"html"===It(t)?t:t.assignedSlot||t.parentNode||(qt(t)?t.host:null)||Gt(t)}function Zt(t){return Wt(t)&&"fixed"!==Vt(t).position?t.offsetParent:null}function Jt(t){for(var e=Rt(t),n=Zt(t);n&&Qt(n)&&"static"===Vt(n).position;)n=Zt(n);return n&&("html"===It(n)||"body"===It(n)&&"static"===Vt(n).position)?e:n||function(t){var e=-1!==navigator.userAgent.toLowerCase().indexOf("firefox");if(-1!==navigator.userAgent.indexOf("Trident")&&Wt(t)&&"fixed"===Vt(t).position)return null;for(var n=Xt(t);Wt(n)&&["html","body"].indexOf(It(n))<0;){var i=Vt(n);if("none"!==i.transform||"none"!==i.perspective||"paint"===i.contain||-1!==["transform","perspective"].indexOf(i.willChange)||e&&"filter"===i.willChange||e&&i.filter&&"none"!==i.filter)return n;n=n.parentNode}return null}(t)||e}function te(t){return["top","bottom"].indexOf(t)>=0?"x":"y"}var ee=Math.max,ne=Math.min,ie=Math.round;function oe(t,e,n){return ee(t,ne(e,n))}function re(t){return Object.assign({},{top:0,right:0,bottom:0,left:0},t)}function se(t,e){return e.reduce((function(e,n){return e[n]=t,e}),{})}var ae={name:"arrow",enabled:!0,phase:"main",fn:function(t){var e,n=t.state,i=t.name,o=t.options,r=n.elements.arrow,s=n.modifiersData.popperOffsets,a=Ut(n.placement),l=te(a),c=[_t,mt].indexOf(a)>=0?"height":"width";if(r&&s){var f=function(t,e){return re("number"!=typeof(t="function"==typeof t?t(Object.assign({},e.rects,{placement:e.placement})):t)?t:se(t,bt))}(o.padding,n),u=Yt(r),d="y"===l?ht:_t,p="y"===l?gt:mt,h=n.rects.reference[c]+n.rects.reference[l]-s[l]-n.rects.popper[c],g=s[l]-n.rects.reference[l],m=Jt(r),_=m?"y"===l?m.clientHeight||0:m.clientWidth||0:0,v=h/2-g/2,b=f[d],y=_-u[c]-f[p],w=_/2-u[c]/2+v,E=oe(b,w,y),O=l;n.modifiersData[i]=((e={})[O]=E,e.centerOffset=E-w,e)}},effect:function(t){var e=t.state,n=t.options.element,i=void 0===n?"[data-popper-arrow]":n;null!=i&&("string"!=typeof i||(i=e.elements.popper.querySelector(i)))&&Kt(e.elements.popper,i)&&(e.elements.arrow=i)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]},le={top:"auto",right:"auto",bottom:"auto",left:"auto"};function ce(t){var e,n=t.popper,i=t.popperRect,o=t.placement,r=t.offsets,s=t.position,a=t.gpuAcceleration,l=t.adaptive,c=t.roundOffsets,f=!0===c?function(t){var e=t.x,n=t.y,i=window.devicePixelRatio||1;return{x:ie(ie(e*i)/i)||0,y:ie(ie(n*i)/i)||0}}(r):"function"==typeof c?c(r):r,u=f.x,d=void 0===u?0:u,p=f.y,h=void 0===p?0:p,g=r.hasOwnProperty("x"),m=r.hasOwnProperty("y"),_=_t,v=ht,b=window;if(l){var y=Jt(n),w="clientHeight",E="clientWidth";y===Rt(n)&&"static"!==Vt(y=Gt(n)).position&&(w="scrollHeight",E="scrollWidth"),o===ht&&(v=gt,h-=y[w]-i.height,h*=a?1:-1),o===_t&&(_=mt,d-=y[E]-i.width,d*=a?1:-1)}var O,T=Object.assign({position:s},l&&le);return a?Object.assign({},T,((O={})[v]=m?"0":"",O[_]=g?"0":"",O.transform=(b.devicePixelRatio||1)<2?"translate("+d+"px, "+h+"px)":"translate3d("+d+"px, "+h+"px, 0)",O)):Object.assign({},T,((e={})[v]=m?h+"px":"",e[_]=g?d+"px":"",e.transform="",e))}var fe={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(t){var e=t.state,n=t.options,i=n.gpuAcceleration,o=void 0===i||i,r=n.adaptive,s=void 0===r||r,a=n.roundOffsets,l=void 0===a||a,c={placement:Ut(e.placement),popper:e.elements.popper,popperRect:e.rects.popper,gpuAcceleration:o};null!=e.modifiersData.popperOffsets&&(e.styles.popper=Object.assign({},e.styles.popper,ce(Object.assign({},c,{offsets:e.modifiersData.popperOffsets,position:e.options.strategy,adaptive:s,roundOffsets:l})))),null!=e.modifiersData.arrow&&(e.styles.arrow=Object.assign({},e.styles.arrow,ce(Object.assign({},c,{offsets:e.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-placement":e.placement})},data:{}},ue={passive:!0};var de={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(t){var e=t.state,n=t.instance,i=t.options,o=i.scroll,r=void 0===o||o,s=i.resize,a=void 0===s||s,l=Rt(e.elements.popper),c=[].concat(e.scrollParents.reference,e.scrollParents.popper);return r&&c.forEach((function(t){t.addEventListener("scroll",n.update,ue)})),a&&l.addEventListener("resize",n.update,ue),function(){r&&c.forEach((function(t){t.removeEventListener("scroll",n.update,ue)})),a&&l.removeEventListener("resize",n.update,ue)}},data:{}},pe={left:"right",right:"left",bottom:"top",top:"bottom"};function he(t){return t.replace(/left|right|bottom|top/g,(function(t){return pe[t]}))}var ge={start:"end",end:"start"};function me(t){return t.replace(/start|end/g,(function(t){return ge[t]}))}function _e(t){var e=Rt(t);return{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function ve(t){return Ft(Gt(t)).left+_e(t).scrollLeft}function be(t){var e=Vt(t),n=e.overflow,i=e.overflowX,o=e.overflowY;return/auto|scroll|overlay|hidden/.test(n+o+i)}function ye(t){return["html","body","#document"].indexOf(It(t))>=0?t.ownerDocument.body:Wt(t)&&be(t)?t:ye(Xt(t))}function we(t,e){var n;void 0===e&&(e=[]);var i=ye(t),o=i===(null==(n=t.ownerDocument)?void 0:n.body),r=Rt(i),s=o?[r].concat(r.visualViewport||[],be(i)?i:[]):i,a=e.concat(s);return o?a:a.concat(we(Xt(s)))}function Ee(t){return Object.assign({},t,{left:t.x,top:t.y,right:t.x+t.width,bottom:t.y+t.height})}function Oe(t,e){return e===Ot?Ee(function(t){var e=Rt(t),n=Gt(t),i=e.visualViewport,o=n.clientWidth,r=n.clientHeight,s=0,a=0;return i&&(o=i.width,r=i.height,/^((?!chrome|android).)*safari/i.test(navigator.userAgent)||(s=i.offsetLeft,a=i.offsetTop)),{width:o,height:r,x:s+ve(t),y:a}}(t)):Wt(e)?function(t){var e=Ft(t);return e.top=e.top+t.clientTop,e.left=e.left+t.clientLeft,e.bottom=e.top+t.clientHeight,e.right=e.left+t.clientWidth,e.width=t.clientWidth,e.height=t.clientHeight,e.x=e.left,e.y=e.top,e}(e):Ee(function(t){var e,n=Gt(t),i=_e(t),o=null==(e=t.ownerDocument)?void 0:e.body,r=ee(n.scrollWidth,n.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),s=ee(n.scrollHeight,n.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),a=-i.scrollLeft+ve(t),l=-i.scrollTop;return"rtl"===Vt(o||n).direction&&(a+=ee(n.clientWidth,o?o.clientWidth:0)-r),{width:r,height:s,x:a,y:l}}(Gt(t)))}function Te(t,e,n){var i="clippingParents"===e?function(t){var e=we(Xt(t)),n=["absolute","fixed"].indexOf(Vt(t).position)>=0&&Wt(t)?Jt(t):t;return Bt(n)?e.filter((function(t){return Bt(t)&&Kt(t,n)&&"body"!==It(t)})):[]}(t):[].concat(e),o=[].concat(i,[n]),r=o[0],s=o.reduce((function(e,n){var i=Oe(t,n);return e.top=ee(i.top,e.top),e.right=ne(i.right,e.right),e.bottom=ne(i.bottom,e.bottom),e.left=ee(i.left,e.left),e}),Oe(t,r));return s.width=s.right-s.left,s.height=s.bottom-s.top,s.x=s.left,s.y=s.top,s}function Ae(t){return t.split("-")[1]}function Le(t){var e,n=t.reference,i=t.element,o=t.placement,r=o?Ut(o):null,s=o?Ae(o):null,a=n.x+n.width/2-i.width/2,l=n.y+n.height/2-i.height/2;switch(r){case ht:e={x:a,y:n.y-i.height};break;case gt:e={x:a,y:n.y+n.height};break;case mt:e={x:n.x+n.width,y:l};break;case _t:e={x:n.x-i.width,y:l};break;default:e={x:n.x,y:n.y}}var c=r?te(r):null;if(null!=c){var f="y"===c?"height":"width";switch(s){case yt:e[c]=e[c]-(n[f]/2-i[f]/2);break;case wt:e[c]=e[c]+(n[f]/2-i[f]/2)}}return e}function xe(t,e){void 0===e&&(e={});var n=e,i=n.placement,o=void 0===i?t.placement:i,r=n.boundary,s=void 0===r?Et:r,a=n.rootBoundary,l=void 0===a?Ot:a,c=n.elementContext,f=void 0===c?Tt:c,u=n.altBoundary,d=void 0!==u&&u,p=n.padding,h=void 0===p?0:p,g=re("number"!=typeof h?h:se(h,bt)),m=f===Tt?At:Tt,_=t.elements.reference,v=t.rects.popper,b=t.elements[d?m:f],y=Te(Bt(b)?b:b.contextElement||Gt(t.elements.popper),s,l),w=Ft(_),E=Le({reference:w,element:v,strategy:"absolute",placement:o}),O=Ee(Object.assign({},v,E)),T=f===Tt?O:w,A={top:y.top-T.top+g.top,bottom:T.bottom-y.bottom+g.bottom,left:y.left-T.left+g.left,right:T.right-y.right+g.right},L=t.modifiersData.offset;if(f===Tt&&L){var x=L[o];Object.keys(A).forEach((function(t){var e=[mt,gt].indexOf(t)>=0?1:-1,n=[ht,gt].indexOf(t)>=0?"y":"x";A[t]+=x[n]*e}))}return A}function Ce(t,e){void 0===e&&(e={});var n=e,i=n.placement,o=n.boundary,r=n.rootBoundary,s=n.padding,a=n.flipVariations,l=n.allowedAutoPlacements,c=void 0===l?xt:l,f=Ae(i),u=f?a?Lt:Lt.filter((function(t){return Ae(t)===f})):bt,d=u.filter((function(t){return c.indexOf(t)>=0}));0===d.length&&(d=u);var p=d.reduce((function(e,n){return e[n]=xe(t,{placement:n,boundary:o,rootBoundary:r,padding:s})[Ut(n)],e}),{});return Object.keys(p).sort((function(t,e){return p[t]-p[e]}))}var De={name:"flip",enabled:!0,phase:"main",fn:function(t){var e=t.state,n=t.options,i=t.name;if(!e.modifiersData[i]._skip){for(var o=n.mainAxis,r=void 0===o||o,s=n.altAxis,a=void 0===s||s,l=n.fallbackPlacements,c=n.padding,f=n.boundary,u=n.rootBoundary,d=n.altBoundary,p=n.flipVariations,h=void 0===p||p,g=n.allowedAutoPlacements,m=e.options.placement,_=Ut(m),v=l||(_===m||!h?[he(m)]:function(t){if(Ut(t)===vt)return[];var e=he(t);return[me(t),e,me(e)]}(m)),b=[m].concat(v).reduce((function(t,n){return t.concat(Ut(n)===vt?Ce(e,{placement:n,boundary:f,rootBoundary:u,padding:c,flipVariations:h,allowedAutoPlacements:g}):n)}),[]),y=e.rects.reference,w=e.rects.popper,E=new Map,O=!0,T=b[0],A=0;A<b.length;A++){var L=b[A],x=Ut(L),C=Ae(L)===yt,D=[ht,gt].indexOf(x)>=0,N=D?"width":"height",$=xe(e,{placement:L,boundary:f,rootBoundary:u,altBoundary:d,padding:c}),S=D?C?mt:_t:C?gt:ht;y[N]>w[N]&&(S=he(S));var k=he(S),j=[];if(r&&j.push($[x]<=0),a&&j.push($[S]<=0,$[k]<=0),j.every((function(t){return t}))){T=L,O=!1;break}E.set(L,j)}if(O)for(var P=function(t){var e=b.find((function(e){var n=E.get(e);if(n)return n.slice(0,t).every((function(t){return t}))}));if(e)return T=e,"break"},M=h?3:1;M>0;M--){if("break"===P(M))break}e.placement!==T&&(e.modifiersData[i]._skip=!0,e.placement=T,e.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}};function Ne(t,e,n){return void 0===n&&(n={x:0,y:0}),{top:t.top-e.height-n.y,right:t.right-e.width+n.x,bottom:t.bottom-e.height+n.y,left:t.left-e.width-n.x}}function $e(t){return[ht,mt,gt,_t].some((function(e){return t[e]>=0}))}var Se={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(t){var e=t.state,n=t.name,i=e.rects.reference,o=e.rects.popper,r=e.modifiersData.preventOverflow,s=xe(e,{elementContext:"reference"}),a=xe(e,{altBoundary:!0}),l=Ne(s,i),c=Ne(a,o,r),f=$e(l),u=$e(c);e.modifiersData[n]={referenceClippingOffsets:l,popperEscapeOffsets:c,isReferenceHidden:f,hasPopperEscaped:u},e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-reference-hidden":f,"data-popper-escaped":u})}};var ke={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(t){var e=t.state,n=t.options,i=t.name,o=n.offset,r=void 0===o?[0,0]:o,s=xt.reduce((function(t,n){return t[n]=function(t,e,n){var i=Ut(t),o=[_t,ht].indexOf(i)>=0?-1:1,r="function"==typeof n?n(Object.assign({},e,{placement:t})):n,s=r[0],a=r[1];return s=s||0,a=(a||0)*o,[_t,mt].indexOf(i)>=0?{x:a,y:s}:{x:s,y:a}}(n,e.rects,r),t}),{}),a=s[e.placement],l=a.x,c=a.y;null!=e.modifiersData.popperOffsets&&(e.modifiersData.popperOffsets.x+=l,e.modifiersData.popperOffsets.y+=c),e.modifiersData[i]=s}};var je={name:"popperOffsets",enabled:!0,phase:"read",fn:function(t){var e=t.state,n=t.name;e.modifiersData[n]=Le({reference:e.rects.reference,element:e.rects.popper,strategy:"absolute",placement:e.placement})},data:{}};var Pe={name:"preventOverflow",enabled:!0,phase:"main",fn:function(t){var e=t.state,n=t.options,i=t.name,o=n.mainAxis,r=void 0===o||o,s=n.altAxis,a=void 0!==s&&s,l=n.boundary,c=n.rootBoundary,f=n.altBoundary,u=n.padding,d=n.tether,p=void 0===d||d,h=n.tetherOffset,g=void 0===h?0:h,m=xe(e,{boundary:l,rootBoundary:c,padding:u,altBoundary:f}),_=Ut(e.placement),v=Ae(e.placement),b=!v,y=te(_),w="x"===y?"y":"x",E=e.modifiersData.popperOffsets,O=e.rects.reference,T=e.rects.popper,A="function"==typeof g?g(Object.assign({},e.rects,{placement:e.placement})):g,L={x:0,y:0};if(E){if(r||a){var x="y"===y?ht:_t,C="y"===y?gt:mt,D="y"===y?"height":"width",N=E[y],$=E[y]+m[x],S=E[y]-m[C],k=p?-T[D]/2:0,j=v===yt?O[D]:T[D],P=v===yt?-T[D]:-O[D],M=e.elements.arrow,H=p&&M?Yt(M):{width:0,height:0},I=e.modifiersData["arrow#persistent"]?e.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},R=I[x],B=I[C],W=oe(0,O[D],H[D]),q=b?O[D]/2-k-W-R-A:j-W-R-A,z=b?-O[D]/2+k+W+B+A:P+W+B+A,U=e.elements.arrow&&Jt(e.elements.arrow),F=U?"y"===y?U.clientTop||0:U.clientLeft||0:0,Y=e.modifiersData.offset?e.modifiersData.offset[e.placement][y]:0,K=E[y]+q-Y-F,V=E[y]+z-Y;if(r){var Q=oe(p?ne($,K):$,N,p?ee(S,V):S);E[y]=Q,L[y]=Q-N}if(a){var G="x"===y?ht:_t,X="x"===y?gt:mt,Z=E[w],J=Z+m[G],tt=Z-m[X],et=oe(p?ne(J,K):J,Z,p?ee(tt,V):tt);E[w]=et,L[w]=et-Z}}e.modifiersData[i]=L}},requiresIfExists:["offset"]};function Me(t,e,n){void 0===n&&(n=!1);var i,o,r=Gt(e),s=Ft(t),a=Wt(e),l={scrollLeft:0,scrollTop:0},c={x:0,y:0};return(a||!a&&!n)&&(("body"!==It(e)||be(r))&&(l=(i=e)!==Rt(i)&&Wt(i)?{scrollLeft:(o=i).scrollLeft,scrollTop:o.scrollTop}:_e(i)),Wt(e)?((c=Ft(e)).x+=e.clientLeft,c.y+=e.clientTop):r&&(c.x=ve(r))),{x:s.left+l.scrollLeft-c.x,y:s.top+l.scrollTop-c.y,width:s.width,height:s.height}}function He(t){var e=new Map,n=new Set,i=[];function o(t){n.add(t.name),[].concat(t.requires||[],t.requiresIfExists||[]).forEach((function(t){if(!n.has(t)){var i=e.get(t);i&&o(i)}})),i.push(t)}return t.forEach((function(t){e.set(t.name,t)})),t.forEach((function(t){n.has(t.name)||o(t)})),i}var Ie={placement:"bottom",modifiers:[],strategy:"absolute"};function Re(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return!e.some((function(t){return!(t&&"function"==typeof t.getBoundingClientRect)}))}function Be(t){void 0===t&&(t={});var e=t,n=e.defaultModifiers,i=void 0===n?[]:n,o=e.defaultOptions,r=void 0===o?Ie:o;return function(t,e,n){void 0===n&&(n=r);var o,s,a={placement:"bottom",orderedModifiers:[],options:Object.assign({},Ie,r),modifiersData:{},elements:{reference:t,popper:e},attributes:{},styles:{}},l=[],c=!1,f={state:a,setOptions:function(n){u(),a.options=Object.assign({},r,a.options,n),a.scrollParents={reference:Bt(t)?we(t):t.contextElement?we(t.contextElement):[],popper:we(e)};var o,s,c=function(t){var e=He(t);return Ht.reduce((function(t,n){return t.concat(e.filter((function(t){return t.phase===n})))}),[])}((o=[].concat(i,a.options.modifiers),s=o.reduce((function(t,e){var n=t[e.name];return t[e.name]=n?Object.assign({},n,e,{options:Object.assign({},n.options,e.options),data:Object.assign({},n.data,e.data)}):e,t}),{}),Object.keys(s).map((function(t){return s[t]}))));return a.orderedModifiers=c.filter((function(t){return t.enabled})),a.orderedModifiers.forEach((function(t){var e=t.name,n=t.options,i=void 0===n?{}:n,o=t.effect;if("function"==typeof o){var r=o({state:a,name:e,instance:f,options:i}),s=function(){};l.push(r||s)}})),f.update()},forceUpdate:function(){if(!c){var t=a.elements,e=t.reference,n=t.popper;if(Re(e,n)){a.rects={reference:Me(e,Jt(n),"fixed"===a.options.strategy),popper:Yt(n)},a.reset=!1,a.placement=a.options.placement,a.orderedModifiers.forEach((function(t){return a.modifiersData[t.name]=Object.assign({},t.data)}));for(var i=0;i<a.orderedModifiers.length;i++)if(!0!==a.reset){var o=a.orderedModifiers[i],r=o.fn,s=o.options,l=void 0===s?{}:s,u=o.name;"function"==typeof r&&(a=r({state:a,options:l,name:u,instance:f})||a)}else a.reset=!1,i=-1}}},update:(o=function(){return new Promise((function(t){f.forceUpdate(),t(a)}))},function(){return s||(s=new Promise((function(t){Promise.resolve().then((function(){s=void 0,t(o())}))}))),s}),destroy:function(){u(),c=!0}};if(!Re(t,e))return f;function u(){l.forEach((function(t){return t()})),l=[]}return f.setOptions(n).then((function(t){!c&&n.onFirstUpdate&&n.onFirstUpdate(t)})),f}}var We=Be(),qe=Be({defaultModifiers:[de,je,fe,zt]}),ze=Be({defaultModifiers:[de,je,fe,zt,ke,De,Pe,ae,Se]}),Ue=Object.freeze({__proto__:null,popperGenerator:Be,detectOverflow:xe,createPopperBase:We,createPopper:ze,createPopperLite:qe,top:ht,bottom:gt,right:mt,left:_t,auto:vt,basePlacements:bt,start:yt,end:wt,clippingParents:Et,viewport:Ot,popper:Tt,reference:At,variationPlacements:Lt,placements:xt,beforeRead:Ct,read:Dt,afterRead:Nt,beforeMain:$t,main:St,afterMain:kt,beforeWrite:jt,write:Pt,afterWrite:Mt,modifierPhases:Ht,applyStyles:zt,arrow:ae,computeStyles:fe,eventListeners:de,flip:De,hide:Se,offset:ke,popperOffsets:je,preventOverflow:Pe});const Fe="dropdown",Ye="bs.dropdown",Ke=`.${Ye}`,Ve=".data-api",Qe="Escape",Ge="Space",Xe="ArrowUp",Ze="ArrowDown",Je=new RegExp(`${Xe}|${Ze}|${Qe}`),tn=`hide${Ke}`,en=`hidden${Ke}`,nn=`show${Ke}`,on=`shown${Ke}`,rn=`click${Ke}`,sn=`click${Ke}${Ve}`,an=`keydown${Ke}${Ve}`,ln=`keyup${Ke}${Ve}`,cn="show",fn='[data-bs-toggle="dropdown"]',un=".dropdown-menu",dn=m()?"top-end":"top-start",pn=m()?"top-start":"top-end",hn=m()?"bottom-end":"bottom-start",gn=m()?"bottom-start":"bottom-end",mn=m()?"left-start":"right-start",_n=m()?"right-start":"left-start",vn={offset:[0,2],boundary:"clippingParents",reference:"toggle",display:"dynamic",popperConfig:null,autoClose:!0},bn={offset:"(array|string|function)",boundary:"(string|element)",reference:"(string|element|object)",display:"string",popperConfig:"(null|object|function)",autoClose:"(boolean|string)"};class yn extends H{constructor(t,e){super(t),this._popper=null,this._config=this._getConfig(e),this._menu=this._getMenuElement(),this._inNavbar=this._detectNavbar(),this._addEventListeners()}static get Default(){return vn}static get DefaultType(){return bn}static get NAME(){return Fe}toggle(){if(u(this._element))return;this._element.classList.contains(cn)?this.hide():this.show()}show(){if(u(this._element)||this._menu.classList.contains(cn))return;const t=yn.getParentFromElement(this._element),e={relatedTarget:this._element};if(!M.trigger(this._element,nn,e).defaultPrevented){if(this._inNavbar)G.setDataAttribute(this._menu,"popper","none");else{if(void 0===Ue)throw new TypeError("Bootstrap's dropdowns require Popper (https://popper.js.org)");let e=this._element;"parent"===this._config.reference?e=t:s(this._config.reference)?e=a(this._config.reference):"object"==typeof this._config.reference&&(e=this._config.reference);const n=this._getPopperConfig(),i=n.modifiers.find((t=>"applyStyles"===t.name&&!1===t.enabled));this._popper=ze(e,this._menu,n),i&&G.setDataAttribute(this._menu,"popper","static")}"ontouchstart"in document.documentElement&&!t.closest(".navbar-nav")&&[].concat(...document.body.children).forEach((t=>M.on(t,"mouseover",p))),this._element.focus(),this._element.setAttribute("aria-expanded",!0),this._menu.classList.toggle(cn),this._element.classList.toggle(cn),M.trigger(this._element,on,e)}}hide(){if(u(this._element)||!this._menu.classList.contains(cn))return;const t={relatedTarget:this._element};this._completeHide(t)}dispose(){this._popper&&this._popper.destroy(),super.dispose()}update(){this._inNavbar=this._detectNavbar(),this._popper&&this._popper.update()}_addEventListeners(){M.on(this._element,rn,(t=>{t.preventDefault(),this.toggle()}))}_completeHide(t){M.trigger(this._element,tn,t).defaultPrevented||("ontouchstart"in document.documentElement&&[].concat(...document.body.children).forEach((t=>M.off(t,"mouseover",p))),this._popper&&this._popper.destroy(),this._menu.classList.remove(cn),this._element.classList.remove(cn),this._element.setAttribute("aria-expanded","false"),G.removeDataAttribute(this._menu,"popper"),M.trigger(this._element,en,t))}_getConfig(t){if(t={...this.constructor.Default,...G.getDataAttributes(this._element),...t},c(Fe,t,this.constructor.DefaultType),"object"==typeof t.reference&&!s(t.reference)&&"function"!=typeof t.reference.getBoundingClientRect)throw new TypeError(`${Fe.toUpperCase()}: Option "reference" provided type "object" without a required "getBoundingClientRect" method.`);return t}_getMenuElement(){return t.next(this._element,un)[0]}_getPlacement(){const t=this._element.parentNode;if(t.classList.contains("dropend"))return mn;if(t.classList.contains("dropstart"))return _n;const e="end"===getComputedStyle(this._menu).getPropertyValue("--bs-position").trim();return t.classList.contains("dropup")?e?pn:dn:e?gn:hn}_detectNavbar(){return null!==this._element.closest(".navbar")}_getOffset(){const{offset:t}=this._config;return"string"==typeof t?t.split(",").map((t=>Number.parseInt(t,10))):"function"==typeof t?e=>t(e,this._element):t}_getPopperConfig(){const t={placement:this._getPlacement(),modifiers:[{name:"preventOverflow",options:{boundary:this._config.boundary}},{name:"offset",options:{offset:this._getOffset()}}]};return"static"===this._config.display&&(t.modifiers=[{name:"applyStyles",enabled:!1}]),{...t,..."function"==typeof this._config.popperConfig?this._config.popperConfig(t):this._config.popperConfig}}_selectMenuItem(e){const n=t.find(".dropdown-menu .dropdown-item:not(.disabled):not(:disabled)",this._menu).filter(f);if(!n.length)return;let i=n.indexOf(e.target);e.key===Xe&&i>0&&i--,e.key===Ze&&i<n.length-1&&i++,i=-1===i?0:i,n[i].focus()}static dropdownInterface(t,e){let n=y.get(t,Ye);if(n||(n=new yn(t,"object"==typeof e?e:null)),"string"==typeof e){if(void 0===n[e])throw new TypeError(`No method named "${e}"`);n[e]()}}static jQueryInterface(t){return this.each((function(){yn.dropdownInterface(this,t)}))}static clearMenus(e){if(e&&(2===e.button||"keyup"===e.type&&"Tab"!==e.key))return;const n=t.find(fn);for(let t=0,i=n.length;t<i;t++){const i=y.get(n[t],Ye);if(!i||!1===i._config.autoClose)continue;if(!i._element.classList.contains(cn))continue;const o={relatedTarget:i._element};if(e){const t=e.composedPath(),n=t.includes(i._menu);if(t.includes(i._element)||"inside"===i._config.autoClose&&!n||"outside"===i._config.autoClose&&n)continue;if(i._menu.contains(e.target)&&("keyup"===e.type&&"Tab"===e.key||/input|select|option|textarea|form/i.test(e.target.tagName)))continue;"click"===e.type&&(o.clickEvent=e)}i._completeHide(o)}}static getParentFromElement(t){return r(t)||t.parentNode}static dataApiKeydownHandler(e){if(/input|textarea/i.test(e.target.tagName)?e.key===Ge||e.key!==Qe&&(e.key!==Ze&&e.key!==Xe||e.target.closest(un)):!Je.test(e.key))return;const n=this.classList.contains(cn);if(!n&&e.key===Qe)return;if(e.preventDefault(),e.stopPropagation(),u(this))return;const i=()=>this.matches(fn)?this:t.prev(this,fn)[0];if(e.key===Qe)return i().focus(),void yn.clearMenus();n||e.key!==Xe&&e.key!==Ze?n&&e.key!==Ge?yn.getInstance(i())._selectMenuItem(e):yn.clearMenus():i().click()}}M.on(document,an,fn,yn.dataApiKeydownHandler),M.on(document,an,un,yn.dataApiKeydownHandler),M.on(document,sn,yn.clearMenus),M.on(document,ln,yn.clearMenus),M.on(document,sn,fn,(function(t){t.preventDefault(),yn.dropdownInterface(this)})),_(yn);const wn=new Set(["background","cite","href","itemtype","longdesc","poster","src","xlink:href"]),En=/^(?:(?:https?|mailto|ftp|tel|file):|[^#&/:?]*(?:[#/?]|$))/i,On=/^data:(?:image\/(?:bmp|gif|jpeg|jpg|png|tiff|webp)|video\/(?:mpeg|mp4|ogg|webm)|audio\/(?:mp3|oga|ogg|opus));base64,[\d+/a-z]+=*$/i,Tn=(t,e)=>{const n=t.nodeName.toLowerCase();if(e.includes(n))return!wn.has(n)||Boolean(En.test(t.nodeValue)||On.test(t.nodeValue));const i=e.filter((t=>t instanceof RegExp));for(let t=0,e=i.length;t<e;t++)if(i[t].test(n))return!0;return!1},An={"*":["class","dir","id","lang","role",/^aria-[\w-]*$/i],a:["target","href","title","rel"],area:[],b:[],br:[],col:[],code:[],div:[],em:[],hr:[],h1:[],h2:[],h3:[],h4:[],h5:[],h6:[],i:[],img:["src","srcset","alt","title","width","height"],li:[],ol:[],p:[],pre:[],s:[],small:[],span:[],sub:[],sup:[],strong:[],u:[],ul:[]};function Ln(t,e,n){if(!t.length)return t;if(n&&"function"==typeof n)return n(t);const i=(new window.DOMParser).parseFromString(t,"text/html"),o=Object.keys(e),r=[].concat(...i.body.querySelectorAll("*"));for(let t=0,n=r.length;t<n;t++){const n=r[t],i=n.nodeName.toLowerCase();if(!o.includes(i)){n.parentNode.removeChild(n);continue}const s=[].concat(...n.attributes),a=[].concat(e["*"]||[],e[i]||[]);s.forEach((t=>{Tn(t,a)||n.removeAttribute(t.nodeName)}))}return i.body.innerHTML}const xn="tooltip",Cn="bs.tooltip",Dn=`.${Cn}`,Nn="bs-tooltip",$n=new RegExp(`(^|\\s)${Nn}\\S+`,"g"),Sn=new Set(["sanitize","allowList","sanitizeFn"]),kn={animation:"boolean",template:"string",title:"(string|element|function)",trigger:"string",delay:"(number|object)",html:"boolean",selector:"(string|boolean)",placement:"(string|function)",offset:"(array|string|function)",container:"(string|element|boolean)",fallbackPlacements:"array",boundary:"(string|element)",customClass:"(string|function)",sanitize:"boolean",sanitizeFn:"(null|function)",allowList:"object",popperConfig:"(null|object|function)"},jn={AUTO:"auto",TOP:"top",RIGHT:m()?"left":"right",BOTTOM:"bottom",LEFT:m()?"right":"left"},Pn={animation:!0,template:'<div class="tooltip" role="tooltip"><div class="tooltip-arrow"></div><div class="tooltip-inner"></div></div>',trigger:"hover focus",title:"",delay:0,html:!1,selector:!1,placement:"top",offset:[0,0],container:!1,fallbackPlacements:["top","right","bottom","left"],boundary:"clippingParents",customClass:"",sanitize:!0,sanitizeFn:null,allowList:An,popperConfig:null},Mn={HIDE:`hide${Dn}`,HIDDEN:`hidden${Dn}`,SHOW:`show${Dn}`,SHOWN:`shown${Dn}`,INSERTED:`inserted${Dn}`,CLICK:`click${Dn}`,FOCUSIN:`focusin${Dn}`,FOCUSOUT:`focusout${Dn}`,MOUSEENTER:`mouseenter${Dn}`,MOUSELEAVE:`mouseleave${Dn}`},Hn="fade",In="modal",Rn="show",Bn="show",Wn="out",qn="hover",zn="focus";class Un extends H{constructor(t,e){if(void 0===Ue)throw new TypeError("Bootstrap's tooltips require Popper (https://popper.js.org)");super(t),this._isEnabled=!0,this._timeout=0,this._hoverState="",this._activeTrigger={},this._popper=null,this._config=this._getConfig(e),this.tip=null,this._setListeners()}static get Default(){return Pn}static get NAME(){return xn}static get Event(){return Mn}static get DefaultType(){return kn}enable(){this._isEnabled=!0}disable(){this._isEnabled=!1}toggleEnabled(){this._isEnabled=!this._isEnabled}toggle(t){if(this._isEnabled)if(t){const e=this._initializeOnDelegatedTarget(t);e._activeTrigger.click=!e._activeTrigger.click,e._isWithActiveTrigger()?e._enter(null,e):e._leave(null,e)}else{if(this.getTipElement().classList.contains(Rn))return void this._leave(null,this);this._enter(null,this)}}dispose(){clearTimeout(this._timeout),M.off(this._element.closest(`.${In}`),"hide.bs.modal",this._hideModalHandler),this.tip&&this.tip.parentNode&&this.tip.parentNode.removeChild(this.tip),this._popper&&this._popper.destroy(),super.dispose()}show(){if("none"===this._element.style.display)throw new Error("Please use show on visible elements");if(!this.isWithContent()||!this._isEnabled)return;const t=M.trigger(this._element,this.constructor.Event.SHOW),e=d(this._element),i=null===e?this._element.ownerDocument.documentElement.contains(this._element):e.contains(this._element);if(t.defaultPrevented||!i)return;const o=this.getTipElement(),r=n(this.constructor.NAME);o.setAttribute("id",r),this._element.setAttribute("aria-describedby",r),this.setContent(),this._config.animation&&o.classList.add(Hn);const s="function"==typeof this._config.placement?this._config.placement.call(this,o,this._element):this._config.placement,a=this._getAttachment(s);this._addAttachmentClass(a);const{container:l}=this._config;y.set(o,this.constructor.DATA_KEY,this),this._element.ownerDocument.documentElement.contains(this.tip)||(l.appendChild(o),M.trigger(this._element,this.constructor.Event.INSERTED)),this._popper?this._popper.update():this._popper=ze(this._element,o,this._getPopperConfig(a)),o.classList.add(Rn);const c="function"==typeof this._config.customClass?this._config.customClass():this._config.customClass;c&&o.classList.add(...c.split(" ")),"ontouchstart"in document.documentElement&&[].concat(...document.body.children).forEach((t=>{M.on(t,"mouseover",p)}));const f=this.tip.classList.contains(Hn);this._queueCallback((()=>{const t=this._hoverState;this._hoverState=null,M.trigger(this._element,this.constructor.Event.SHOWN),t===Wn&&this._leave(null,this)}),this.tip,f)}hide(){if(!this._popper)return;const t=this.getTipElement();if(M.trigger(this._element,this.constructor.Event.HIDE).defaultPrevented)return;t.classList.remove(Rn),"ontouchstart"in document.documentElement&&[].concat(...document.body.children).forEach((t=>M.off(t,"mouseover",p))),this._activeTrigger.click=!1,this._activeTrigger[zn]=!1,this._activeTrigger[qn]=!1;const e=this.tip.classList.contains(Hn);this._queueCallback((()=>{this._isWithActiveTrigger()||(this._hoverState!==Bn&&t.parentNode&&t.parentNode.removeChild(t),this._cleanTipClass(),this._element.removeAttribute("aria-describedby"),M.trigger(this._element,this.constructor.Event.HIDDEN),this._popper&&(this._popper.destroy(),this._popper=null))}),this.tip,e),this._hoverState=""}update(){null!==this._popper&&this._popper.update()}isWithContent(){return Boolean(this.getTitle())}getTipElement(){if(this.tip)return this.tip;const t=document.createElement("div");return t.innerHTML=this._config.template,this.tip=t.children[0],this.tip}setContent(){const e=this.getTipElement();this.setElementContent(t.findOne(".tooltip-inner",e),this.getTitle()),e.classList.remove(Hn,Rn)}setElementContent(t,e){if(null!==t)return s(e)?(e=a(e),void(this._config.html?e.parentNode!==t&&(t.innerHTML="",t.appendChild(e)):t.textContent=e.textContent)):void(this._config.html?(this._config.sanitize&&(e=Ln(e,this._config.allowList,this._config.sanitizeFn)),t.innerHTML=e):t.textContent=e)}getTitle(){let t=this._element.getAttribute("data-bs-original-title");return t||(t="function"==typeof this._config.title?this._config.title.call(this._element):this._config.title),t}updateAttachment(t){return"right"===t?"end":"left"===t?"start":t}_initializeOnDelegatedTarget(t,e){const n=this.constructor.DATA_KEY;return(e=e||y.get(t.delegateTarget,n))||(e=new this.constructor(t.delegateTarget,this._getDelegateConfig()),y.set(t.delegateTarget,n,e)),e}_getOffset(){const{offset:t}=this._config;return"string"==typeof t?t.split(",").map((t=>Number.parseInt(t,10))):"function"==typeof t?e=>t(e,this._element):t}_getPopperConfig(t){const e={placement:t,modifiers:[{name:"flip",options:{fallbackPlacements:this._config.fallbackPlacements}},{name:"offset",options:{offset:this._getOffset()}},{name:"preventOverflow",options:{boundary:this._config.boundary}},{name:"arrow",options:{element:`.${this.constructor.NAME}-arrow`}},{name:"onChange",enabled:!0,phase:"afterWrite",fn:t=>this._handlePopperPlacementChange(t)}],onFirstUpdate:t=>{t.options.placement!==t.placement&&this._handlePopperPlacementChange(t)}};return{...e,..."function"==typeof this._config.popperConfig?this._config.popperConfig(e):this._config.popperConfig}}_addAttachmentClass(t){this.getTipElement().classList.add(`${Nn}-${this.updateAttachment(t)}`)}_getAttachment(t){return jn[t.toUpperCase()]}_setListeners(){this._config.trigger.split(" ").forEach((t=>{if("click"===t)M.on(this._element,this.constructor.Event.CLICK,this._config.selector,(t=>this.toggle(t)));else if("manual"!==t){const e=t===qn?this.constructor.Event.MOUSEENTER:this.constructor.Event.FOCUSIN,n=t===qn?this.constructor.Event.MOUSELEAVE:this.constructor.Event.FOCUSOUT;M.on(this._element,e,this._config.selector,(t=>this._enter(t))),M.on(this._element,n,this._config.selector,(t=>this._leave(t)))}})),this._hideModalHandler=()=>{this._element&&this.hide()},M.on(this._element.closest(`.${In}`),"hide.bs.modal",this._hideModalHandler),this._config.selector?this._config={...this._config,trigger:"manual",selector:""}:this._fixTitle()}_fixTitle(){const t=this._element.getAttribute("title"),e=typeof this._element.getAttribute("data-bs-original-title");(t||"string"!==e)&&(this._element.setAttribute("data-bs-original-title",t||""),!t||this._element.getAttribute("aria-label")||this._element.textContent||this._element.setAttribute("aria-label",t),this._element.setAttribute("title",""))}_enter(t,e){e=this._initializeOnDelegatedTarget(t,e),t&&(e._activeTrigger["focusin"===t.type?zn:qn]=!0),e.getTipElement().classList.contains(Rn)||e._hoverState===Bn?e._hoverState=Bn:(clearTimeout(e._timeout),e._hoverState=Bn,e._config.delay&&e._config.delay.show?e._timeout=setTimeout((()=>{e._hoverState===Bn&&e.show()}),e._config.delay.show):e.show())}_leave(t,e){e=this._initializeOnDelegatedTarget(t,e),t&&(e._activeTrigger["focusout"===t.type?zn:qn]=e._element.contains(t.relatedTarget)),e._isWithActiveTrigger()||(clearTimeout(e._timeout),e._hoverState=Wn,e._config.delay&&e._config.delay.hide?e._timeout=setTimeout((()=>{e._hoverState===Wn&&e.hide()}),e._config.delay.hide):e.hide())}_isWithActiveTrigger(){for(const t in this._activeTrigger)if(this._activeTrigger[t])return!0;return!1}_getConfig(t){const e=G.getDataAttributes(this._element);return Object.keys(e).forEach((t=>{Sn.has(t)&&delete e[t]})),(t={...this.constructor.Default,...e,..."object"==typeof t&&t?t:{}}).container=!1===t.container?document.body:a(t.container),"number"==typeof t.delay&&(t.delay={show:t.delay,hide:t.delay}),"number"==typeof t.title&&(t.title=t.title.toString()),"number"==typeof t.content&&(t.content=t.content.toString()),c(xn,t,this.constructor.DefaultType),t.sanitize&&(t.template=Ln(t.template,t.allowList,t.sanitizeFn)),t}_getDelegateConfig(){const t={};if(this._config)for(const e in this._config)this.constructor.Default[e]!==this._config[e]&&(t[e]=this._config[e]);return t}_cleanTipClass(){const t=this.getTipElement(),e=t.getAttribute("class").match($n);null!==e&&e.length>0&&e.map((t=>t.trim())).forEach((e=>t.classList.remove(e)))}_handlePopperPlacementChange(t){const{state:e}=t;e&&(this.tip=e.elements.popper,this._cleanTipClass(),this._addAttachmentClass(this._getAttachment(e.placement)))}static jQueryInterface(t){return this.each((function(){let e=y.get(this,Cn);const n="object"==typeof t&&t;if((e||!/dispose|hide/.test(t))&&(e||(e=new Un(this,n)),"string"==typeof t)){if(void 0===e[t])throw new TypeError(`No method named "${t}"`);e[t]()}}))}}_(Un);const Fn="scrollspy",Yn=".bs.scrollspy",Kn={offset:10,method:"auto",target:""},Vn={offset:"number",method:"string",target:"(string|element)"},Qn=`activate${Yn}`,Gn=`scroll${Yn}`,Xn=`load${Yn}.data-api`,Zn="dropdown-item",Jn="active",ti=".nav-link",ei=".list-group-item",ni="position";class ii extends H{constructor(t,e){super(t),this._scrollElement="BODY"===this._element.tagName?window:this._element,this._config=this._getConfig(e),this._selector=`${this._config.target} ${ti}, ${this._config.target} ${ei}, ${this._config.target} .${Zn}`,this._offsets=[],this._targets=[],this._activeTarget=null,this._scrollHeight=0,M.on(this._scrollElement,Gn,(()=>this._process())),this.refresh(),this._process()}static get Default(){return Kn}static get NAME(){return Fn}refresh(){const e=this._scrollElement===this._scrollElement.window?"offset":ni,n="auto"===this._config.method?e:this._config.method,i=n===ni?this._getScrollTop():0;this._offsets=[],this._targets=[],this._scrollHeight=this._getScrollHeight();t.find(this._selector).map((e=>{const r=o(e),s=r?t.findOne(r):null;if(s){const t=s.getBoundingClientRect();if(t.width||t.height)return this._scrollElement===this._scrollElement.window&&"offset"==n?[t.top+this._scrollElement.window.pageYOffset+i,r]:[G[n](s).top+i,r]}return null})).filter((t=>t)).sort(((t,e)=>t[0]-e[0])).forEach((t=>{this._offsets.push(t[0]),this._targets.push(t[1])}))}dispose(){M.off(this._scrollElement,Yn),super.dispose()}_getConfig(t){if("string"!=typeof(t={...Kn,...G.getDataAttributes(this._element),..."object"==typeof t&&t?t:{}}).target&&s(t.target)){let{id:e}=t.target;e||(e=n(Fn),t.target.id=e),t.target=`#${e}`}return c(Fn,t,Vn),t}_getScrollTop(){return this._scrollElement===window?this._scrollElement.pageYOffset:this._scrollElement.scrollTop}_getScrollHeight(){return this._scrollElement.scrollHeight||Math.max(document.body.scrollHeight,document.documentElement.scrollHeight)}_getOffsetHeight(){return this._scrollElement===window?window.innerHeight:this._scrollElement.getBoundingClientRect().height}_process(){const t=this._getScrollTop()+this._config.offset,e=this._getScrollHeight(),n=this._config.offset+e-this._getOffsetHeight();if(this._scrollHeight!==e&&this.refresh(),t>=n){const t=this._targets[this._targets.length-1];this._activeTarget!==t&&this._activate(t)}else{if(this._activeTarget&&t<this._offsets[0]&&this._offsets[0]>0)return this._activeTarget=null,void this._clear();for(let e=this._offsets.length;e--;){this._activeTarget!==this._targets[e]&&t>=this._offsets[e]&&(void 0===this._offsets[e+1]||t<this._offsets[e+1])&&this._activate(this._targets[e])}}}_activate(e){this._activeTarget=e,this._clear();const n=this._selector.split(",").map((t=>`${t}[data-bs-target="${e}"],${t}[href="${e}"]`)),i=t.findOne(n.join(","));i.classList.contains(Zn)?(t.findOne(".dropdown-toggle",i.closest(".dropdown")).classList.add(Jn),i.classList.add(Jn)):(i.classList.add(Jn),t.parents(i,".nav, .list-group").forEach((e=>{t.prev(e,`${ti}, ${ei}`).forEach((t=>t.classList.add(Jn))),t.prev(e,".nav-item").forEach((e=>{t.children(e,ti).forEach((t=>t.classList.add(Jn)))}))}))),M.trigger(this._scrollElement,Qn,{relatedTarget:e})}_clear(){t.find(this._selector).filter((t=>t.classList.contains(Jn))).forEach((t=>t.classList.remove(Jn)))}static jQueryInterface(t){return this.each((function(){const e=ii.getInstance(this)||new ii(this,"object"==typeof t?t:{});if("string"==typeof t){if(void 0===e[t])throw new TypeError(`No method named "${t}"`);e[t]()}}))}}M.on(window,Xn,(()=>{t.find('[data-bs-spy="scroll"]').forEach((t=>new ii(t)))})),_(ii);const oi="bs.tab",ri=`.${oi}`,si=`hide${ri}`,ai=`hidden${ri}`,li=`show${ri}`,ci=`shown${ri}`,fi=`click${ri}.data-api`,ui="active",di="fade",pi="show",hi=".active",gi=":scope > li > .active";class mi extends H{static get NAME(){return"tab"}show(){if(this._element.parentNode&&this._element.parentNode.nodeType===Node.ELEMENT_NODE&&this._element.classList.contains(ui))return;let e;const n=r(this._element),i=this._element.closest(".nav, .list-group");if(i){const n="UL"===i.nodeName||"OL"===i.nodeName?gi:hi;e=t.find(n,i),e=e[e.length-1]}const o=e?M.trigger(e,si,{relatedTarget:this._element}):null;if(M.trigger(this._element,li,{relatedTarget:e}).defaultPrevented||null!==o&&o.defaultPrevented)return;this._activate(this._element,i);const s=()=>{M.trigger(e,ai,{relatedTarget:this._element}),M.trigger(this._element,ci,{relatedTarget:e})};n?this._activate(n,n.parentNode,s):s()}_activate(e,n,i){const o=(!n||"UL"!==n.nodeName&&"OL"!==n.nodeName?t.children(n,hi):t.find(gi,n))[0],r=i&&o&&o.classList.contains(di),s=()=>this._transitionComplete(e,o,i);o&&r?(o.classList.remove(pi),this._queueCallback(s,e,!0)):s()}_transitionComplete(e,n,i){if(n){n.classList.remove(ui);const e=t.findOne(":scope > .dropdown-menu .active",n.parentNode);e&&e.classList.remove(ui),"tab"===n.getAttribute("role")&&n.setAttribute("aria-selected",!1)}e.classList.add(ui),"tab"===e.getAttribute("role")&&e.setAttribute("aria-selected",!0),h(e),e.classList.contains(di)&&e.classList.add(pi);let o=e.parentNode;if(o&&"LI"===o.nodeName&&(o=o.parentNode),o&&o.classList.contains("dropdown-menu")){const n=e.closest(".dropdown");n&&t.find(".dropdown-toggle",n).forEach((t=>t.classList.add(ui))),e.setAttribute("aria-expanded",!0)}i&&i()}static jQueryInterface(t){return this.each((function(){const e=y.get(this,oi)||new mi(this);if("string"==typeof t){if(void 0===e[t])throw new TypeError(`No method named "${t}"`);e[t]()}}))}}return M.on(document,fi,'[data-bs-toggle="tab"], [data-bs-toggle="pill"], [data-bs-toggle="list"]',(function(t){if(["A","AREA"].includes(this.tagName)&&t.preventDefault(),u(this))return;(y.get(this,oi)||new mi(this)).show()})),_(mi),{Alert:z,Button:K,Collapse:pt,Dropdown:yn,ScrollSpy:ii,Tab:mi,Tooltip:Un,SelectorEngine:t}}));
!function(e){"function"==typeof define&&define.amd?define(["jquery"],e):"object"==typeof exports?e(require("jquery")):e(jQuery)}(function(e){var n=/\+/g;function o(e){return r.raw?e:encodeURIComponent(e)}function i(e,o){var i=r.raw?e:function(e){0===e.indexOf('"')&&(e=e.slice(1,-1).replace(/\\"/g,'"').replace(/\\\\/g,"\\"));try{return e=decodeURIComponent(e.replace(n," ")),r.json?JSON.parse(e):e}catch(o){}}(e);return"function"==typeof o?o(i):i}var r=e.cookie=function(n,t,u){if(t!==undefined&&"function"!=typeof t){if("number"==typeof(u=e.extend({},r.defaults,u)).expires){var c=u.expires,f=u.expires=new Date;f.setTime(+f+864e5*c)}return document.cookie=[o(n),"=",function(e){return o(r.json?JSON.stringify(e):String(e))}(t),u.expires?"; expires="+u.expires.toUTCString():"",u.path?"; path="+u.path:"",u.domain?"; domain="+u.domain:"",u.secure?"; secure":""].join("")}for(var d,a=n?undefined:{},p=document.cookie?document.cookie.split("; "):[],s=0,m=p.length;s<m;s++){var x=p[s].split("="),y=(d=x.shift(),r.raw?d:decodeURIComponent(d)),k=x.join("=");if(n&&n===y){a=i(k,t);break}n||(k=i(k))===undefined||(a[y]=k)}return a};r.defaults={},e.removeCookie=function(n,o){return e.cookie(n)!==undefined&&(e.cookie(n,"",e.extend({},o,{expires:-1})),!e.cookie(n))}});
!function(t,e,i,s){function n(e,i){this.settings=null,this.options=t.extend({},n.Defaults,i),this.$element=t(e),this._handlers={},this._plugins={},this._supress={},this._current=null,this._speed=null,this._coordinates=[],this._breakpoint=null,this._width=null,this._items=[],this._clones=[],this._mergers=[],this._widths=[],this._invalidated={},this._pipe=[],this._drag={time:null,target:null,pointer:null,stage:{start:null,current:null},direction:null},this._states={current:{},tags:{initializing:["busy"],animating:["busy"],dragging:["interacting"]}},t.each(["onResize","onThrottledResize"],t.proxy((function(e,i){this._handlers[i]=t.proxy(this[i],this)}),this)),t.each(n.Plugins,t.proxy((function(t,e){this._plugins[t.charAt(0).toLowerCase()+t.slice(1)]=new e(this)}),this)),t.each(n.Workers,t.proxy((function(e,i){this._pipe.push({filter:i.filter,run:t.proxy(i.run,this)})}),this)),this.setup(),this.initialize()}n.Defaults={items:3,loop:!1,center:!1,rewind:!1,checkVisibility:!0,mouseDrag:!0,touchDrag:!0,pullDrag:!0,freeDrag:!1,margin:0,stagePadding:0,merge:!1,mergeFit:!0,autoWidth:!1,startPosition:0,rtl:!1,smartSpeed:250,fluidSpeed:!1,dragEndSpeed:!1,responsive:{},responsiveRefreshRate:200,responsiveBaseElement:e,fallbackEasing:"swing",slideTransition:"",info:!1,nestedItemSelector:!1,itemElement:"div",stageElement:"div",refreshClass:"owl-refresh",loadedClass:"owl-loaded",loadingClass:"owl-loading",rtlClass:"owl-rtl",responsiveClass:"owl-responsive",dragClass:"owl-drag",itemClass:"owl-item",stageClass:"owl-stage",stageOuterClass:"owl-stage-outer",grabClass:"owl-grab"},n.Width={Default:"default",Inner:"inner",Outer:"outer"},n.Type={Event:"event",State:"state"},n.Plugins={},n.Workers=[{filter:["width","settings"],run:function(){this._width=this.$element.width()}},{filter:["width","items","settings"],run:function(t){t.current=this._items&&this._items[this.relative(this._current)]}},{filter:["items","settings"],run:function(){this.$stage.children(".cloned").remove()}},{filter:["width","items","settings"],run:function(t){var e=this.settings.margin||"",i=!this.settings.autoWidth,s=this.settings.rtl,n={width:"auto","margin-left":s?e:"","margin-right":s?"":e};!i&&this.$stage.children().css(n),t.css=n}},{filter:["width","items","settings"],run:function(t){var e=(this.width()/this.settings.items).toFixed(3)-this.settings.margin,i=null,s=this._items.length,n=!this.settings.autoWidth,o=[];for(t.items={merge:!1,width:e};s--;)i=this._mergers[s],i=this.settings.mergeFit&&Math.min(i,this.settings.items)||i,t.items.merge=i>1||t.items.merge,o[s]=n?e*i:this._items[s].width();this._widths=o}},{filter:["items","settings"],run:function(){var e=[],i=this._items,s=this.settings,n=Math.max(2*s.items,4),o=2*Math.ceil(i.length/2),r=s.loop&&i.length?s.rewind?n:Math.max(n,o):0,a="",h="";for(r/=2;r>0;)e.push(this.normalize(e.length/2,!0)),a+=i[e[e.length-1]][0].outerHTML,e.push(this.normalize(i.length-1-(e.length-1)/2,!0)),h=i[e[e.length-1]][0].outerHTML+h,r-=1;this._clones=e,t(a).addClass("cloned").appendTo(this.$stage),t(h).addClass("cloned").prependTo(this.$stage)}},{filter:["width","items","settings"],run:function(){for(var t=this.settings.rtl?1:-1,e=this._clones.length+this._items.length,i=-1,s=0,n=0,o=[];++i<e;)s=o[i-1]||0,n=this._widths[this.relative(i)]+this.settings.margin,o.push(s+n*t);this._coordinates=o}},{filter:["width","items","settings"],run:function(){var t=this.settings.stagePadding,e=this._coordinates,i={width:Math.ceil(Math.abs(e[e.length-1]))+2*t,"padding-left":t||"","padding-right":t||""};this.$stage.css(i)}},{filter:["width","items","settings"],run:function(t){var e=this._coordinates.length,i=!this.settings.autoWidth,s=this.$stage.children();if(i&&t.items.merge)for(;e--;)t.css.width=this._widths[this.relative(e)],s.eq(e).css(t.css);else i&&(t.css.width=t.items.width,s.css(t.css))}},{filter:["items"],run:function(){this._coordinates.length<1&&this.$stage.removeAttr("style")}},{filter:["width","items","settings"],run:function(t){t.current=t.current?this.$stage.children().index(t.current):0,t.current=Math.max(this.minimum(),Math.min(this.maximum(),t.current)),this.reset(t.current)}},{filter:["position"],run:function(){this.animate(this.coordinates(this._current))}},{filter:["width","position","items","settings"],run:function(){var t,e,i,s,n=this.settings.rtl?1:-1,o=2*this.settings.stagePadding,r=this.coordinates(this.current())+o,a=r+this.width()*n,h=[];for(i=0,s=this._coordinates.length;i<s;i++)t=this._coordinates[i-1]||0,e=Math.abs(this._coordinates[i])+o*n,(this.op(t,"<=",r)&&this.op(t,">",a)||this.op(e,"<",r)&&this.op(e,">",a))&&h.push(i);this.$stage.children(".active").removeClass("active"),this.$stage.children(":eq("+h.join("), :eq(")+")").addClass("active"),this.$stage.children(".center").removeClass("center"),this.settings.center&&this.$stage.children().eq(this.current()).addClass("center")}}],n.prototype.initializeStage=function(){this.$stage=this.$element.find("."+this.settings.stageClass),this.$stage.length||(this.$element.addClass(this.options.loadingClass),this.$stage=t("<"+this.settings.stageElement+">",{class:this.settings.stageClass}).wrap(t("<div/>",{class:this.settings.stageOuterClass})),this.$element.append(this.$stage.parent()))},n.prototype.initializeItems=function(){var e=this.$element.find(".owl-item");if(e.length)return this._items=e.get().map((function(e){return t(e)})),this._mergers=this._items.map((function(){return 1})),void this.refresh();this.replace(this.$element.children().not(this.$stage.parent())),this.isVisible()?this.refresh():this.invalidate("width"),this.$element.removeClass(this.options.loadingClass).addClass(this.options.loadedClass)},n.prototype.initialize=function(){var t,e,i;(this.enter("initializing"),this.trigger("initialize"),this.$element.toggleClass(this.settings.rtlClass,this.settings.rtl),this.settings.autoWidth&&!this.is("pre-loading"))&&(t=this.$element.find("img"),e=this.settings.nestedItemSelector?"."+this.settings.nestedItemSelector:s,i=this.$element.children(e).width(),t.length&&i<=0&&this.preloadAutoWidthImages(t));this.initializeStage(),this.initializeItems(),this.registerEventHandlers(),this.leave("initializing"),this.trigger("initialized")},n.prototype.isVisible=function(){return!this.settings.checkVisibility||this.$element.is(":visible")},n.prototype.setup=function(){var e=this.viewport(),i=this.options.responsive,s=-1,n=null;i?(t.each(i,(function(t){t<=e&&t>s&&(s=Number(t))})),"function"==typeof(n=t.extend({},this.options,i[s])).stagePadding&&(n.stagePadding=n.stagePadding()),delete n.responsive,n.responsiveClass&&this.$element.attr("class",this.$element.attr("class").replace(new RegExp("("+this.options.responsiveClass+"-)\\S+\\s","g"),"$1"+s))):n=t.extend({},this.options),this.trigger("change",{property:{name:"settings",value:n}}),this._breakpoint=s,this.settings=n,this.invalidate("settings"),this.trigger("changed",{property:{name:"settings",value:this.settings}})},n.prototype.optionsLogic=function(){this.settings.autoWidth&&(this.settings.stagePadding=!1,this.settings.merge=!1)},n.prototype.prepare=function(e){var i=this.trigger("prepare",{content:e});return i.data||(i.data=t("<"+this.settings.itemElement+"/>").addClass(this.options.itemClass).append(e)),this.trigger("prepared",{content:i.data}),i.data},n.prototype.update=function(){for(var e=0,i=this._pipe.length,s=t.proxy((function(t){return this[t]}),this._invalidated),n={};e<i;)(this._invalidated.all||t.grep(this._pipe[e].filter,s).length>0)&&this._pipe[e].run(n),e++;this._invalidated={},!this.is("valid")&&this.enter("valid")},n.prototype.width=function(t){switch(t=t||n.Width.Default){case n.Width.Inner:case n.Width.Outer:return this._width;default:return this._width-2*this.settings.stagePadding+this.settings.margin}},n.prototype.refresh=function(){this.enter("refreshing"),this.trigger("refresh"),this.setup(),this.optionsLogic(),this.$element.addClass(this.options.refreshClass),this.update(),this.$element.removeClass(this.options.refreshClass),this.leave("refreshing"),this.trigger("refreshed")},n.prototype.onThrottledResize=function(){e.clearTimeout(this.resizeTimer),this.resizeTimer=e.setTimeout(this._handlers.onResize,this.settings.responsiveRefreshRate)},n.prototype.onResize=function(){return!!this._items.length&&(this._width!==this.$element.width()&&(!!this.isVisible()&&(this.enter("resizing"),this.trigger("resize").isDefaultPrevented()?(this.leave("resizing"),!1):(this.invalidate("width"),this.refresh(),this.leave("resizing"),void this.trigger("resized")))))},n.prototype.registerEventHandlers=function(){t.support.transition&&this.$stage.on(t.support.transition.end+".owl.core",t.proxy(this.onTransitionEnd,this)),!1!==this.settings.responsive&&this.on(e,"resize",this._handlers.onThrottledResize),this.settings.mouseDrag&&(this.$element.addClass(this.options.dragClass),this.$stage.on("mousedown.owl.core",t.proxy(this.onDragStart,this)),this.$stage.on("dragstart.owl.core selectstart.owl.core",(function(){return!1}))),this.settings.touchDrag&&(this.$stage.on("touchstart.owl.core",t.proxy(this.onDragStart,this)),this.$stage.on("touchcancel.owl.core",t.proxy(this.onDragEnd,this)))},n.prototype.onDragStart=function(e){var s=null;3!==e.which&&(t.support.transform?s={x:(s=this.$stage.css("transform").replace(/.*\(|\)| /g,"").split(","))[16===s.length?12:4],y:s[16===s.length?13:5]}:(s=this.$stage.position(),s={x:this.settings.rtl?s.left+this.$stage.width()-this.width()+this.settings.margin:s.left,y:s.top}),this.is("animating")&&(t.support.transform?this.animate(s.x):this.$stage.stop(),this.invalidate("position")),this.$element.toggleClass(this.options.grabClass,"mousedown"===e.type),this.speed(0),this._drag.time=(new Date).getTime(),this._drag.target=t(e.target),this._drag.stage.start=s,this._drag.stage.current=s,this._drag.pointer=this.pointer(e),t(i).on("mouseup.owl.core touchend.owl.core",t.proxy(this.onDragEnd,this)),t(i).one("mousemove.owl.core touchmove.owl.core",t.proxy((function(e){var s=this.difference(this._drag.pointer,this.pointer(e));t(i).on("mousemove.owl.core touchmove.owl.core",t.proxy(this.onDragMove,this)),Math.abs(s.x)<Math.abs(s.y)&&this.is("valid")||(e.preventDefault(),this.enter("dragging"),this.trigger("drag"))}),this)))},n.prototype.onDragMove=function(t){var e=null,i=null,s=null,n=this.difference(this._drag.pointer,this.pointer(t)),o=this.difference(this._drag.stage.start,n);this.is("dragging")&&(t.preventDefault(),this.settings.loop?(e=this.coordinates(this.minimum()),i=this.coordinates(this.maximum()+1)-e,o.x=((o.x-e)%i+i)%i+e):(e=this.settings.rtl?this.coordinates(this.maximum()):this.coordinates(this.minimum()),i=this.settings.rtl?this.coordinates(this.minimum()):this.coordinates(this.maximum()),s=this.settings.pullDrag?-1*n.x/5:0,o.x=Math.max(Math.min(o.x,e+s),i+s)),this._drag.stage.current=o,this.animate(o.x))},n.prototype.onDragEnd=function(e){var s=this.difference(this._drag.pointer,this.pointer(e)),n=this._drag.stage.current,o=s.x>0^this.settings.rtl?"left":"right";t(i).off(".owl.core"),this.$element.removeClass(this.options.grabClass),(0!==s.x&&this.is("dragging")||!this.is("valid"))&&(this.speed(this.settings.dragEndSpeed||this.settings.smartSpeed),this.current(this.closest(n.x,0!==s.x?o:this._drag.direction)),this.invalidate("position"),this.update(),this._drag.direction=o,(Math.abs(s.x)>3||(new Date).getTime()-this._drag.time>300)&&this._drag.target.one("click.owl.core",(function(){return!1}))),this.is("dragging")&&(this.leave("dragging"),this.trigger("dragged"))},n.prototype.closest=function(e,i){var n=-1,o=this.width(),r=this.coordinates();return this.settings.freeDrag||t.each(r,t.proxy((function(t,a){return"left"===i&&e>a-30&&e<a+30?n=t:"right"===i&&e>a-o-30&&e<a-o+30?n=t+1:this.op(e,"<",a)&&this.op(e,">",r[t+1]!==s?r[t+1]:a-o)&&(n="left"===i?t+1:t),-1===n}),this)),this.settings.loop||(this.op(e,">",r[this.minimum()])?n=e=this.minimum():this.op(e,"<",r[this.maximum()])&&(n=e=this.maximum())),n},n.prototype.animate=function(e){var i=this.speed()>0;this.is("animating")&&this.onTransitionEnd(),i&&(this.enter("animating"),this.trigger("translate")),t.support.transform3d&&t.support.transition?this.$stage.css({transform:"translate3d("+e+"px,0px,0px)",transition:this.speed()/1e3+"s"+(this.settings.slideTransition?" "+this.settings.slideTransition:"")}):i?this.$stage.animate({left:e+"px"},this.speed(),this.settings.fallbackEasing,t.proxy(this.onTransitionEnd,this)):this.$stage.css({left:e+"px"})},n.prototype.is=function(t){return this._states.current[t]&&this._states.current[t]>0},n.prototype.current=function(t){if(t===s)return this._current;if(0===this._items.length)return s;if(t=this.normalize(t),this._current!==t){var e=this.trigger("change",{property:{name:"position",value:t}});e.data!==s&&(t=this.normalize(e.data)),this._current=t,this.invalidate("position"),this.trigger("changed",{property:{name:"position",value:this._current}})}return this._current},n.prototype.invalidate=function(e){return"string"==typeof e&&(this._invalidated[e]=!0,this.is("valid")&&this.leave("valid")),t.map(this._invalidated,(function(t,e){return e}))},n.prototype.reset=function(t){(t=this.normalize(t))!==s&&(this._speed=0,this._current=t,this.suppress(["translate","translated"]),this.animate(this.coordinates(t)),this.release(["translate","translated"]))},n.prototype.normalize=function(t,e){var i=this._items.length,n=e?0:this._clones.length;return!this.isNumeric(t)||i<1?t=s:(t<0||t>=i+n)&&(t=((t-n/2)%i+i)%i+n/2),t},n.prototype.relative=function(t){return t-=this._clones.length/2,this.normalize(t,!0)},n.prototype.maximum=function(t){var e,i,s,n=this.settings,o=this._coordinates.length;if(n.loop)o=this._clones.length/2+this._items.length-1;else if(n.autoWidth||n.merge){if(e=this._items.length)for(i=this._items[--e].width(),s=this.$element.width();e--&&!((i+=this._items[e].width()+this.settings.margin)>s););o=e+1}else o=n.center?this._items.length-1:this._items.length-n.items;return t&&(o-=this._clones.length/2),Math.max(o,0)},n.prototype.minimum=function(t){return t?0:this._clones.length/2},n.prototype.items=function(t){return t===s?this._items.slice():(t=this.normalize(t,!0),this._items[t])},n.prototype.mergers=function(t){return t===s?this._mergers.slice():(t=this.normalize(t,!0),this._mergers[t])},n.prototype.clones=function(e){var i=this._clones.length/2,n=i+this._items.length,o=function(t){return t%2==0?n+t/2:i-(t+1)/2};return e===s?t.map(this._clones,(function(t,e){return o(e)})):t.map(this._clones,(function(t,i){return t===e?o(i):null}))},n.prototype.speed=function(t){return t!==s&&(this._speed=t),this._speed},n.prototype.coordinates=function(e){var i,n=1,o=e-1;return e===s?t.map(this._coordinates,t.proxy((function(t,e){return this.coordinates(e)}),this)):(this.settings.center?(this.settings.rtl&&(n=-1,o=e+1),i=this._coordinates[e],i+=(this.width()-i+(this._coordinates[o]||0))/2*n):i=this._coordinates[o]||0,i=Math.ceil(i))},n.prototype.duration=function(t,e,i){return 0===i?0:Math.min(Math.max(Math.abs(e-t),1),6)*Math.abs(i||this.settings.smartSpeed)},n.prototype.to=function(t,e){var i=this.current(),s=null,n=t-this.relative(i),o=(n>0)-(n<0),r=this._items.length,a=this.minimum(),h=this.maximum();this.settings.loop?(!this.settings.rewind&&Math.abs(n)>r/2&&(n+=-1*o*r),(s=(((t=i+n)-a)%r+r)%r+a)!==t&&s-n<=h&&s-n>0&&(i=s-n,t=s,this.reset(i))):t=this.settings.rewind?(t%(h+=1)+h)%h:Math.max(a,Math.min(h,t)),this.speed(this.duration(i,t,e)),this.current(t),this.isVisible()&&this.update()},n.prototype.next=function(t){t=t||!1,this.to(this.relative(this.current())+1,t)},n.prototype.prev=function(t){t=t||!1,this.to(this.relative(this.current())-1,t)},n.prototype.onTransitionEnd=function(t){if(t!==s&&(t.stopPropagation(),(t.target||t.srcElement||t.originalTarget)!==this.$stage.get(0)))return!1;this.leave("animating"),this.trigger("translated")},n.prototype.viewport=function(){var s;return this.options.responsiveBaseElement!==e?s=t(this.options.responsiveBaseElement).width():e.innerWidth?s=e.innerWidth:i.documentElement&&i.documentElement.clientWidth?s=i.documentElement.clientWidth:console.warn("Can not detect viewport width."),s},n.prototype.replace=function(e){this.$stage.empty(),this._items=[],e&&(e=e instanceof jQuery?e:t(e)),this.settings.nestedItemSelector&&(e=e.find("."+this.settings.nestedItemSelector)),e.filter((function(){return 1===this.nodeType})).each(t.proxy((function(t,e){e=this.prepare(e),this.$stage.append(e),this._items.push(e),this._mergers.push(1*e.find("[data-merge]").addBack("[data-merge]").attr("data-merge")||1)}),this)),this.reset(this.isNumeric(this.settings.startPosition)?this.settings.startPosition:0),this.invalidate("items")},n.prototype.add=function(e,i){var n=this.relative(this._current);i=i===s?this._items.length:this.normalize(i,!0),e=e instanceof jQuery?e:t(e),this.trigger("add",{content:e,position:i}),e=this.prepare(e),0===this._items.length||i===this._items.length?(0===this._items.length&&this.$stage.append(e),0!==this._items.length&&this._items[i-1].after(e),this._items.push(e),this._mergers.push(1*e.find("[data-merge]").addBack("[data-merge]").attr("data-merge")||1)):(this._items[i].before(e),this._items.splice(i,0,e),this._mergers.splice(i,0,1*e.find("[data-merge]").addBack("[data-merge]").attr("data-merge")||1)),this._items[n]&&this.reset(this._items[n].index()),this.invalidate("items"),this.trigger("added",{content:e,position:i})},n.prototype.remove=function(t){(t=this.normalize(t,!0))!==s&&(this.trigger("remove",{content:this._items[t],position:t}),this._items[t].remove(),this._items.splice(t,1),this._mergers.splice(t,1),this.invalidate("items"),this.trigger("removed",{content:null,position:t}))},n.prototype.preloadAutoWidthImages=function(e){e.each(t.proxy((function(e,i){this.enter("pre-loading"),i=t(i),t(new Image).one("load",t.proxy((function(t){i.attr("src",t.target.src),i.css("opacity",1),this.leave("pre-loading"),!this.is("pre-loading")&&!this.is("initializing")&&this.refresh()}),this)).attr("src",i.attr("src")||i.attr("data-src")||i.attr("data-src-retina"))}),this))},n.prototype.destroy=function(){for(var s in this.$element.off(".owl.core"),this.$stage.off(".owl.core"),t(i).off(".owl.core"),!1!==this.settings.responsive&&(e.clearTimeout(this.resizeTimer),this.off(e,"resize",this._handlers.onThrottledResize)),this._plugins)this._plugins[s].destroy();this.$stage.children(".cloned").remove(),this.$stage.unwrap(),this.$stage.children().contents().unwrap(),this.$stage.children().unwrap(),this.$stage.remove(),this.$element.removeClass(this.options.refreshClass).removeClass(this.options.loadingClass).removeClass(this.options.loadedClass).removeClass(this.options.rtlClass).removeClass(this.options.dragClass).removeClass(this.options.grabClass).attr("class",this.$element.attr("class").replace(new RegExp(this.options.responsiveClass+"-\\S+\\s","g"),"")).removeData("owl.carousel")},n.prototype.op=function(t,e,i){var s=this.settings.rtl;switch(e){case"<":return s?t>i:t<i;case">":return s?t<i:t>i;case">=":return s?t<=i:t>=i;case"<=":return s?t>=i:t<=i}},n.prototype.on=function(t,e,i,s){t.addEventListener?t.addEventListener(e,i,s):t.attachEvent&&t.attachEvent("on"+e,i)},n.prototype.off=function(t,e,i,s){t.removeEventListener?t.removeEventListener(e,i,s):t.detachEvent&&t.detachEvent("on"+e,i)},n.prototype.trigger=function(e,i,s,o,r){var a={item:{count:this._items.length,index:this.current()}},h=t.camelCase(t.grep(["on",e,s],(function(t){return t})).join("-").toLowerCase()),l=t.Event([e,"owl",s||"carousel"].join(".").toLowerCase(),t.extend({relatedTarget:this},a,i));return this._supress[e]||(t.each(this._plugins,(function(t,e){e.onTrigger&&e.onTrigger(l)})),this.register({type:n.Type.Event,name:e}),this.$element.trigger(l),this.settings&&"function"==typeof this.settings[h]&&this.settings[h].call(this,l)),l},n.prototype.enter=function(e){t.each([e].concat(this._states.tags[e]||[]),t.proxy((function(t,e){this._states.current[e]===s&&(this._states.current[e]=0),this._states.current[e]++}),this))},n.prototype.leave=function(e){t.each([e].concat(this._states.tags[e]||[]),t.proxy((function(t,e){this._states.current[e]--}),this))},n.prototype.register=function(e){if(e.type===n.Type.Event){if(t.event.special[e.name]||(t.event.special[e.name]={}),!t.event.special[e.name].owl){var i=t.event.special[e.name]._default;t.event.special[e.name]._default=function(t){return!i||!i.apply||t.namespace&&-1!==t.namespace.indexOf("owl")?t.namespace&&t.namespace.indexOf("owl")>-1:i.apply(this,arguments)},t.event.special[e.name].owl=!0}}else e.type===n.Type.State&&(this._states.tags[e.name]?this._states.tags[e.name]=this._states.tags[e.name].concat(e.tags):this._states.tags[e.name]=e.tags,this._states.tags[e.name]=t.grep(this._states.tags[e.name],t.proxy((function(i,s){return t.inArray(i,this._states.tags[e.name])===s}),this)))},n.prototype.suppress=function(e){t.each(e,t.proxy((function(t,e){this._supress[e]=!0}),this))},n.prototype.release=function(e){t.each(e,t.proxy((function(t,e){delete this._supress[e]}),this))},n.prototype.pointer=function(t){var i={x:null,y:null};return(t=(t=t.originalEvent||t||e.event).touches&&t.touches.length?t.touches[0]:t.changedTouches&&t.changedTouches.length?t.changedTouches[0]:t).pageX?(i.x=t.pageX,i.y=t.pageY):(i.x=t.clientX,i.y=t.clientY),i},n.prototype.isNumeric=function(t){return!isNaN(parseFloat(t))},n.prototype.difference=function(t,e){return{x:t.x-e.x,y:t.y-e.y}},t.fn.owlCarousel=function(e){var i=Array.prototype.slice.call(arguments,1);return this.each((function(){var s=t(this),o=s.data("owl.carousel");o||(o=new n(this,"object"==typeof e&&e),s.data("owl.carousel",o),t.each(["next","prev","to","destroy","refresh","replace","add","remove"],(function(e,i){o.register({type:n.Type.Event,name:i}),o.$element.on(i+".owl.carousel.core",t.proxy((function(t){t.namespace&&t.relatedTarget!==this&&(this.suppress([i]),o[i].apply(this,[].slice.call(arguments,1)),this.release([i]))}),o))}))),"string"==typeof e&&"_"!==e.charAt(0)&&o[e].apply(o,i)}))},t.fn.owlCarousel.Constructor=n}(window.jQuery||window.Zepto,window,document),function(t,e,i,s){var n=function(e){this._core=e,this._interval=null,this._visible=null,this._handlers={"initialized.owl.carousel":t.proxy((function(t){t.namespace&&this._core.settings.autoRefresh&&this.watch()}),this)},this._core.options=t.extend({},n.Defaults,this._core.options),this._core.$element.on(this._handlers)};n.Defaults={autoRefresh:!0,autoRefreshInterval:500},n.prototype.watch=function(){this._interval||(this._visible=this._core.isVisible(),this._interval=e.setInterval(t.proxy(this.refresh,this),this._core.settings.autoRefreshInterval))},n.prototype.refresh=function(){this._core.isVisible()!==this._visible&&(this._visible=!this._visible,this._core.$element.toggleClass("owl-hidden",!this._visible),this._visible&&this._core.invalidate("width")&&this._core.refresh())},n.prototype.destroy=function(){var t,i;for(t in e.clearInterval(this._interval),this._handlers)this._core.$element.off(t,this._handlers[t]);for(i in Object.getOwnPropertyNames(this))"function"!=typeof this[i]&&(this[i]=null)},t.fn.owlCarousel.Constructor.Plugins.AutoRefresh=n}(window.jQuery||window.Zepto,window,document),function(t,e,i,s){var n=function(e){this._core=e,this._loaded=[],this._handlers={"initialized.owl.carousel change.owl.carousel resized.owl.carousel":t.proxy((function(e){if(e.namespace&&this._core.settings&&this._core.settings.lazyLoad&&(e.property&&"position"==e.property.name||"initialized"==e.type)){var i=this._core.settings,s=i.center&&Math.ceil(i.items/2)||i.items,n=i.center&&-1*s||0,o=(e.property&&undefined!==e.property.value?e.property.value:this._core.current())+n,r=this._core.clones().length,a=t.proxy((function(t,e){this.load(e)}),this);for(i.lazyLoadEager>0&&(s+=i.lazyLoadEager,i.loop&&(o-=i.lazyLoadEager,s++));n++<s;)this.load(r/2+this._core.relative(o)),r&&t.each(this._core.clones(this._core.relative(o)),a),o++}}),this)},this._core.options=t.extend({},n.Defaults,this._core.options),this._core.$element.on(this._handlers)};n.Defaults={lazyLoad:!1,lazyLoadEager:0},n.prototype.load=function(i){var s=this._core.$stage.children().eq(i),n=s&&s.find(".owl-lazy");!n||t.inArray(s.get(0),this._loaded)>-1||(n.each(t.proxy((function(i,s){var n,o=t(s),r=e.devicePixelRatio>1&&o.attr("data-src-retina")||o.attr("data-src")||o.attr("data-srcset");this._core.trigger("load",{element:o,url:r},"lazy"),o.is("img")?o.one("load.owl.lazy",t.proxy((function(){o.addClass("owl-lazy-loaded"),this._core.trigger("loaded",{element:o,url:r},"lazy")}),this)).attr("src",r):o.is("source")?o.one("load.owl.lazy",t.proxy((function(){this._core.trigger("loaded",{element:o,url:r},"lazy")}),this)).attr("srcset",r):((n=new Image).onload=t.proxy((function(){o.css({"background-image":'url("'+r+'")',opacity:"1"}),this._core.trigger("loaded",{element:o,url:r},"lazy")}),this),n.src=r)}),this)),this._loaded.push(s.get(0)))},n.prototype.destroy=function(){var t,e;for(t in this.handlers)this._core.$element.off(t,this.handlers[t]);for(e in Object.getOwnPropertyNames(this))"function"!=typeof this[e]&&(this[e]=null)},t.fn.owlCarousel.Constructor.Plugins.Lazy=n}(window.jQuery||window.Zepto,window,document),function(t,e,i,s){var n=function(i){this._core=i,this._previousHeight=null,this._handlers={"initialized.owl.carousel refreshed.owl.carousel":t.proxy((function(t){t.namespace&&this._core.settings.autoHeight&&this.update()}),this),"changed.owl.carousel":t.proxy((function(t){t.namespace&&this._core.settings.autoHeight&&"position"===t.property.name&&this.update()}),this),"loaded.owl.lazy":t.proxy((function(t){t.namespace&&this._core.settings.autoHeight&&t.element.closest("."+this._core.settings.itemClass).index()===this._core.current()&&this.update()}),this)},this._core.options=t.extend({},n.Defaults,this._core.options),this._core.$element.on(this._handlers),this._intervalId=null;var s=this;t(e).on("load",(function(){s._core.settings.autoHeight&&s.update()})),t(e).on("resize",(function(){s._core.settings.autoHeight&&(null!=s._intervalId&&clearTimeout(s._intervalId),s._intervalId=setTimeout((function(){s.update()}),250))}))};n.Defaults={autoHeight:!1,autoHeightClass:"owl-height"},n.prototype.update=function(){var e=this._core._current,i=e+this._core.settings.items,s=this._core.settings.lazyLoad,n=this._core.$stage.children().toArray().slice(e,i),o=[],r=0;t.each(n,(function(e,i){o.push(t(i).height())})),(r=Math.max.apply(null,o))<=1&&s&&this._previousHeight&&(r=this._previousHeight),this._previousHeight=r,this._core.$stage.parent().height(r).addClass(this._core.settings.autoHeightClass)},n.prototype.destroy=function(){var t,e;for(t in this._handlers)this._core.$element.off(t,this._handlers[t]);for(e in Object.getOwnPropertyNames(this))"function"!=typeof this[e]&&(this[e]=null)},t.fn.owlCarousel.Constructor.Plugins.AutoHeight=n}(window.jQuery||window.Zepto,window,document),function(t,e,i,s){var n=function(e){this._core=e,this._videos={},this._playing=null,this._handlers={"initialized.owl.carousel":t.proxy((function(t){t.namespace&&this._core.register({type:"state",name:"playing",tags:["interacting"]})}),this),"resize.owl.carousel":t.proxy((function(t){t.namespace&&this._core.settings.video&&this.isInFullScreen()&&t.preventDefault()}),this),"refreshed.owl.carousel":t.proxy((function(t){t.namespace&&this._core.is("resizing")&&this._core.$stage.find(".cloned .owl-video-frame").remove()}),this),"changed.owl.carousel":t.proxy((function(t){t.namespace&&"position"===t.property.name&&this._playing&&this.stop()}),this),"prepared.owl.carousel":t.proxy((function(e){if(e.namespace){var i=t(e.content).find(".owl-video");i.length&&(i.css("display","none"),this.fetch(i,t(e.content)))}}),this)},this._core.options=t.extend({},n.Defaults,this._core.options),this._core.$element.on(this._handlers),this._core.$element.on("click.owl.video",".owl-video-play-icon",t.proxy((function(t){this.play(t)}),this))};n.Defaults={video:!1,videoHeight:!1,videoWidth:!1},n.prototype.fetch=function(t,e){var i=t.attr("data-vimeo-id")?"vimeo":t.attr("data-vzaar-id")?"vzaar":"youtube",s=t.attr("data-vimeo-id")||t.attr("data-youtube-id")||t.attr("data-vzaar-id"),n=t.attr("data-width")||this._core.settings.videoWidth,o=t.attr("data-height")||this._core.settings.videoHeight,r=t.attr("href");if(!r)throw new Error("Missing video URL.");if((s=r.match(/(http:|https:|)\/\/(player.|www.|app.)?(vimeo\.com|youtu(be\.com|\.be|be\.googleapis\.com|be\-nocookie\.com)|vzaar\.com)\/(video\/|videos\/|embed\/|channels\/.+\/|groups\/.+\/|watch\?v=|v\/)?([A-Za-z0-9._%-]*)(\&\S+)?/))[3].indexOf("youtu")>-1)i="youtube";else if(s[3].indexOf("vimeo")>-1)i="vimeo";else{if(!(s[3].indexOf("vzaar")>-1))throw new Error("Video URL not supported.");i="vzaar"}s=s[6],this._videos[r]={type:i,id:s,width:n,height:o},e.attr("data-video",r),this.thumbnail(t,this._videos[r])},n.prototype.thumbnail=function(e,i){var s,n,o=i.width&&i.height?"width:"+i.width+"px;height:"+i.height+"px;":"",r=e.find("img"),a="src",h="",l=this._core.settings,c=function(i){'<div class="owl-video-play-icon"></div>',s=l.lazyLoad?t("<div/>",{class:"owl-video-tn "+h,srcType:i}):t("<div/>",{class:"owl-video-tn",style:"opacity:1;background-image:url("+i+")"}),e.after(s),e.after('<div class="owl-video-play-icon"></div>')};if(e.wrap(t("<div/>",{class:"owl-video-wrapper",style:o})),this._core.settings.lazyLoad&&(a="data-src",h="owl-lazy"),r.length)return c(r.attr(a)),r.remove(),!1;"youtube"===i.type?(n="//img.youtube.com/vi/"+i.id+"/hqdefault.jpg",c(n)):"vimeo"===i.type?t.ajax({type:"GET",url:"//vimeo.com/api/v2/video/"+i.id+".json",jsonp:"callback",dataType:"jsonp",success:function(t){n=t[0].thumbnail_large,c(n)}}):"vzaar"===i.type&&t.ajax({type:"GET",url:"//vzaar.com/api/videos/"+i.id+".json",jsonp:"callback",dataType:"jsonp",success:function(t){n=t.framegrab_url,c(n)}})},n.prototype.stop=function(){this._core.trigger("stop",null,"video"),this._playing.find(".owl-video-frame").remove(),this._playing.removeClass("owl-video-playing"),this._playing=null,this._core.leave("playing"),this._core.trigger("stopped",null,"video")},n.prototype.play=function(e){var i,s=t(e.target).closest("."+this._core.settings.itemClass),n=this._videos[s.attr("data-video")],o=n.width||"100%",r=n.height||this._core.$stage.height();this._playing||(this._core.enter("playing"),this._core.trigger("play",null,"video"),s=this._core.items(this._core.relative(s.index())),this._core.reset(s.index()),(i=t('<iframe frameborder="0" allowfullscreen mozallowfullscreen webkitAllowFullScreen ></iframe>')).attr("height",r),i.attr("width",o),"youtube"===n.type?i.attr("src","//www.youtube.com/embed/"+n.id+"?autoplay=1&rel=0&v="+n.id):"vimeo"===n.type?i.attr("src","//player.vimeo.com/video/"+n.id+"?autoplay=1"):"vzaar"===n.type&&i.attr("src","//view.vzaar.com/"+n.id+"/player?autoplay=true"),t(i).wrap('<div class="owl-video-frame" />').insertAfter(s.find(".owl-video")),this._playing=s.addClass("owl-video-playing"))},n.prototype.isInFullScreen=function(){var e=i.fullscreenElement||i.mozFullScreenElement||i.webkitFullscreenElement;return e&&t(e).parent().hasClass("owl-video-frame")},n.prototype.destroy=function(){var t,e;for(t in this._core.$element.off("click.owl.video"),this._handlers)this._core.$element.off(t,this._handlers[t]);for(e in Object.getOwnPropertyNames(this))"function"!=typeof this[e]&&(this[e]=null)},t.fn.owlCarousel.Constructor.Plugins.Video=n}(window.jQuery||window.Zepto,window,document),function(t,e,i,s){var n=function(e){this.core=e,this.core.options=t.extend({},n.Defaults,this.core.options),this.swapping=!0,this.previous=s,this.next=s,this.handlers={"change.owl.carousel":t.proxy((function(t){t.namespace&&"position"==t.property.name&&(this.previous=this.core.current(),this.next=t.property.value)}),this),"drag.owl.carousel dragged.owl.carousel translated.owl.carousel":t.proxy((function(t){t.namespace&&(this.swapping="translated"==t.type)}),this),"translate.owl.carousel":t.proxy((function(t){t.namespace&&this.swapping&&(this.core.options.animateOut||this.core.options.animateIn)&&this.swap()}),this)},this.core.$element.on(this.handlers)};n.Defaults={animateOut:!1,animateIn:!1},n.prototype.swap=function(){if(1===this.core.settings.items&&t.support.animation&&t.support.transition){this.core.speed(0);var e,i=t.proxy(this.clear,this),s=this.core.$stage.children().eq(this.previous),n=this.core.$stage.children().eq(this.next),o=this.core.settings.animateIn,r=this.core.settings.animateOut;this.core.current()!==this.previous&&(r&&(e=this.core.coordinates(this.previous)-this.core.coordinates(this.next),s.one(t.support.animation.end,i).css({left:e+"px"}).addClass("animated owl-animated-out").addClass(r)),o&&n.one(t.support.animation.end,i).addClass("animated owl-animated-in").addClass(o))}},n.prototype.clear=function(e){t(e.target).css({left:""}).removeClass("animated owl-animated-out owl-animated-in").removeClass(this.core.settings.animateIn).removeClass(this.core.settings.animateOut),this.core.onTransitionEnd()},n.prototype.destroy=function(){var t,e;for(t in this.handlers)this.core.$element.off(t,this.handlers[t]);for(e in Object.getOwnPropertyNames(this))"function"!=typeof this[e]&&(this[e]=null)},t.fn.owlCarousel.Constructor.Plugins.Animate=n}(window.jQuery||window.Zepto,window,document),function(t,e,i,s){var n=function(e){this._core=e,this._call=null,this._time=0,this._timeout=0,this._paused=!0,this._handlers={"changed.owl.carousel":t.proxy((function(t){t.namespace&&"settings"===t.property.name?this._core.settings.autoplay?this.play():this.stop():t.namespace&&"position"===t.property.name&&this._paused&&(this._time=0)}),this),"initialized.owl.carousel":t.proxy((function(t){t.namespace&&this._core.settings.autoplay&&this.play()}),this),"play.owl.autoplay":t.proxy((function(t,e,i){t.namespace&&this.play(e,i)}),this),"stop.owl.autoplay":t.proxy((function(t){t.namespace&&this.stop()}),this),"mouseover.owl.autoplay":t.proxy((function(){this._core.settings.autoplayHoverPause&&this._core.is("rotating")&&this.pause()}),this),"mouseleave.owl.autoplay":t.proxy((function(){this._core.settings.autoplayHoverPause&&this._core.is("rotating")&&this.play()}),this),"touchstart.owl.core":t.proxy((function(){this._core.settings.autoplayHoverPause&&this._core.is("rotating")&&this.pause()}),this),"touchend.owl.core":t.proxy((function(){this._core.settings.autoplayHoverPause&&this.play()}),this)},this._core.$element.on(this._handlers),this._core.options=t.extend({},n.Defaults,this._core.options)};n.Defaults={autoplay:!1,autoplayTimeout:5e3,autoplayHoverPause:!1,autoplaySpeed:!1},n.prototype._next=function(s){this._call=e.setTimeout(t.proxy(this._next,this,s),this._timeout*(Math.round(this.read()/this._timeout)+1)-this.read()),this._core.is("interacting")||i.hidden||this._core.next(s||this._core.settings.autoplaySpeed)},n.prototype.read=function(){return(new Date).getTime()-this._time},n.prototype.play=function(i,s){var n;this._core.is("rotating")||this._core.enter("rotating"),i=i||this._core.settings.autoplayTimeout,n=Math.min(this._time%(this._timeout||i),i),this._paused?(this._time=this.read(),this._paused=!1):e.clearTimeout(this._call),this._time+=this.read()%i-n,this._timeout=i,this._call=e.setTimeout(t.proxy(this._next,this,s),i-n)},n.prototype.stop=function(){this._core.is("rotating")&&(this._time=0,this._paused=!0,e.clearTimeout(this._call),this._core.leave("rotating"))},n.prototype.pause=function(){this._core.is("rotating")&&!this._paused&&(this._time=this.read(),this._paused=!0,e.clearTimeout(this._call))},n.prototype.destroy=function(){var t,e;for(t in this.stop(),this._handlers)this._core.$element.off(t,this._handlers[t]);for(e in Object.getOwnPropertyNames(this))"function"!=typeof this[e]&&(this[e]=null)},t.fn.owlCarousel.Constructor.Plugins.autoplay=n}(window.jQuery||window.Zepto,window,document),function(t,e,i,s){"use strict";var n=function(e){this._core=e,this._initialized=!1,this._pages=[],this._controls={},this._templates=[],this.$element=this._core.$element,this._overrides={next:this._core.next,prev:this._core.prev,to:this._core.to},this._handlers={"prepared.owl.carousel":t.proxy((function(e){e.namespace&&this._core.settings.dotsData&&this._templates.push('<div class="'+this._core.settings.dotClass+'">'+t(e.content).find("[data-dot]").addBack("[data-dot]").attr("data-dot")+"</div>")}),this),"added.owl.carousel":t.proxy((function(t){t.namespace&&this._core.settings.dotsData&&this._templates.splice(t.position,0,this._templates.pop())}),this),"remove.owl.carousel":t.proxy((function(t){t.namespace&&this._core.settings.dotsData&&this._templates.splice(t.position,1)}),this),"changed.owl.carousel":t.proxy((function(t){t.namespace&&"position"==t.property.name&&this.draw()}),this),"initialized.owl.carousel":t.proxy((function(t){t.namespace&&!this._initialized&&(this._core.trigger("initialize",null,"navigation"),this.initialize(),this.update(),this.draw(),this._initialized=!0,this._core.trigger("initialized",null,"navigation"))}),this),"refreshed.owl.carousel":t.proxy((function(t){t.namespace&&this._initialized&&(this._core.trigger("refresh",null,"navigation"),this.update(),this.draw(),this._core.trigger("refreshed",null,"navigation"))}),this)},this._core.options=t.extend({},n.Defaults,this._core.options),this.$element.on(this._handlers)};n.Defaults={nav:!1,navText:['<span aria-label="Previous">&#x2039;</span>','<span aria-label="Next">&#x203a;</span>'],navSpeed:!1,navElement:'button type="button" aria-label="owl-button" role="button"',navContainer:!1,navContainerClass:"owl-nav",navClass:["owl-prev","owl-next"],slideBy:1,dotClass:"owl-dot",dotsClass:"owl-dots",dots:!0,dotsEach:!1,dotsData:!1,dotsSpeed:!1,dotsContainer:!1},n.prototype.initialize=function(){var e,i=this._core.settings;for(e in this._controls.$relative=(i.navContainer?t(i.navContainer):t("<div>").addClass(i.navContainerClass).appendTo(this.$element)).addClass("disabled"),this._controls.$previous=t("<"+i.navElement+">").addClass(i.navClass[0]).html(i.navText[0]).prependTo(this._controls.$relative).on("click",t.proxy((function(t){this.prev(i.navSpeed)}),this)),this._controls.$next=t("<"+i.navElement+">").addClass(i.navClass[1]).html(i.navText[1]).appendTo(this._controls.$relative).on("click",t.proxy((function(t){this.next(i.navSpeed)}),this)),i.dotsData||(this._templates=[t('<button aria-label="owl-dot"  role="button">').addClass(i.dotClass).append(t("<span>")).prop("outerHTML")]),this._controls.$absolute=(i.dotsContainer?t(i.dotsContainer):t("<div>").addClass(i.dotsClass).appendTo(this.$element)).addClass("disabled"),this._controls.$absolute.on("click","button",t.proxy((function(e){var s=t(e.target).parent().is(this._controls.$absolute)?t(e.target).index():t(e.target).parent().index();e.preventDefault(),this.to(s,i.dotsSpeed)}),this)),this._overrides)this._core[e]=t.proxy(this[e],this)},n.prototype.destroy=function(){var t,e,i,s,n;for(t in n=this._core.settings,this._handlers)this.$element.off(t,this._handlers[t]);for(e in this._controls)"$relative"===e&&n.navContainer?this._controls[e].html(""):this._controls[e].remove();for(s in this.overides)this._core[s]=this._overrides[s];for(i in Object.getOwnPropertyNames(this))"function"!=typeof this[i]&&(this[i]=null)},n.prototype.update=function(){var t,e,i=this._core.clones().length/2,s=i+this._core.items().length,n=this._core.maximum(!0),o=this._core.settings,r=o.center||o.autoWidth||o.dotsData?1:o.dotsEach||o.items;if("page"!==o.slideBy&&(o.slideBy=Math.min(o.slideBy,o.items)),o.dots||"page"==o.slideBy)for(this._pages=[],t=i,e=0,0;t<s;t++){if(e>=r||0===e){if(this._pages.push({start:Math.min(n,t-i),end:t-i+r-1}),Math.min(n,t-i)===n)break;e=0}e+=this._core.mergers(this._core.relative(t))}},n.prototype.draw=function(){var e,i=this._core.settings,s=this._core.items().length<=i.items,n=this._core.relative(this._core.current()),o=i.loop||i.rewind;this._controls.$relative.toggleClass("disabled",!i.nav||s),i.nav&&(this._controls.$previous.toggleClass("disabled",!o&&n<=this._core.minimum(!0)),this._controls.$next.toggleClass("disabled",!o&&n>=this._core.maximum(!0))),this._controls.$absolute.toggleClass("disabled",!i.dots||s),i.dots&&(e=this._pages.length-this._controls.$absolute.children().length,i.dotsData&&0!==e?this._controls.$absolute.html(this._templates.join("")):e>0?this._controls.$absolute.append(new Array(e+1).join(this._templates[0])):e<0&&this._controls.$absolute.children().slice(e).remove(),this._controls.$absolute.find(".active").removeClass("active"),this._controls.$absolute.children().eq(t.inArray(this.current(),this._pages)).addClass("active"))},n.prototype.onTrigger=function(e){var i=this._core.settings;e.page={index:t.inArray(this.current(),this._pages),count:this._pages.length,size:i&&(i.center||i.autoWidth||i.dotsData?1:i.dotsEach||i.items)}},n.prototype.current=function(){var e=this._core.relative(this._core.current());return t.grep(this._pages,t.proxy((function(t,i){return t.start<=e&&t.end>=e}),this)).pop()},n.prototype.getPosition=function(e){var i,s,n=this._core.settings;return"page"==n.slideBy?(i=t.inArray(this.current(),this._pages),s=this._pages.length,e?++i:--i,i=this._pages[(i%s+s)%s].start):(i=this._core.relative(this._core.current()),s=this._core.items().length,e?i+=n.slideBy:i-=n.slideBy),i},n.prototype.next=function(e){t.proxy(this._overrides.to,this._core)(this.getPosition(!0),e)},n.prototype.prev=function(e){t.proxy(this._overrides.to,this._core)(this.getPosition(!1),e)},n.prototype.to=function(e,i,s){var n;!s&&this._pages.length?(n=this._pages.length,t.proxy(this._overrides.to,this._core)(this._pages[(e%n+n)%n].start,i)):t.proxy(this._overrides.to,this._core)(e,i)},t.fn.owlCarousel.Constructor.Plugins.Navigation=n}(window.jQuery||window.Zepto,window,document),function(t,e,i,s){"use strict";var n=function(i){this._core=i,this._hashes={},this.$element=this._core.$element,this._handlers={"initialized.owl.carousel":t.proxy((function(i){i.namespace&&"URLHash"===this._core.settings.startPosition&&t(e).trigger("hashchange.owl.navigation")}),this),"prepared.owl.carousel":t.proxy((function(e){if(e.namespace){var i=t(e.content).find("[data-hash]").addBack("[data-hash]").attr("data-hash");if(!i)return;this._hashes[i]=e.content}}),this),"changed.owl.carousel":t.proxy((function(i){if(i.namespace&&"position"===i.property.name){var s=this._core.items(this._core.relative(this._core.current())),n=t.map(this._hashes,(function(t,e){return t===s?e:null})).join();if(!n||e.location.hash.slice(1)===n)return;e.location.hash=n}}),this)},this._core.options=t.extend({},n.Defaults,this._core.options),this.$element.on(this._handlers),t(e).on("hashchange.owl.navigation",t.proxy((function(t){var i=e.location.hash.substring(1),s=this._core.$stage.children(),n=this._hashes[i]&&s.index(this._hashes[i]);undefined!==n&&n!==this._core.current()&&this._core.to(this._core.relative(n),!1,!0)}),this))};n.Defaults={URLhashListener:!1},n.prototype.destroy=function(){var i,s;for(i in t(e).off("hashchange.owl.navigation"),this._handlers)this._core.$element.off(i,this._handlers[i]);for(s in Object.getOwnPropertyNames(this))"function"!=typeof this[s]&&(this[s]=null)},t.fn.owlCarousel.Constructor.Plugins.Hash=n}(window.jQuery||window.Zepto,window,document),function(t,e,i,s){var n=t("<support>").get(0).style,o="Webkit Moz O ms".split(" "),r={transition:{end:{WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd",transition:"transitionend"}},animation:{end:{WebkitAnimation:"webkitAnimationEnd",MozAnimation:"animationend",OAnimation:"oAnimationEnd",animation:"animationend"}}},a=function(){return!!c("transform")},h=function(){return!!c("perspective")},l=function(){return!!c("animation")};function c(e,i){var r=!1,a=e.charAt(0).toUpperCase()+e.slice(1);return t.each((e+" "+o.join(a+" ")+a).split(" "),(function(t,e){if(n[e]!==s)return r=!i||e,!1})),r}function p(t){return c(t,!0)}(function(){return!!c("transition")})()&&(t.support.transition=new String(p("transition")),t.support.transition.end=r.transition.end[t.support.transition]),l()&&(t.support.animation=new String(p("animation")),t.support.animation.end=r.animation.end[t.support.animation]),a()&&(t.support.transform=new String(p("transform")),t.support.transform3d=h())}(window.jQuery||window.Zepto,window,document);
!function(t,e){"object"==typeof module&&module.exports?module.exports=e():t.EvEmitter=e()}("undefined"!=typeof window?window:this,(function(){function t(){}let e=t.prototype;return e.on=function(t,e){if(!t||!e)return this;let i=this._events=this._events||{},s=i[t]=i[t]||[];return s.includes(e)||s.push(e),this},e.once=function(t,e){if(!t||!e)return this;this.on(t,e);let i=this._onceEvents=this._onceEvents||{};return(i[t]=i[t]||{})[e]=!0,this},e.off=function(t,e){let i=this._events&&this._events[t];if(!i||!i.length)return this;let s=i.indexOf(e);return-1!=s&&i.splice(s,1),this},e.emitEvent=function(t,e){let i=this._events&&this._events[t];if(!i||!i.length)return this;i=i.slice(0),e=e||[];let s=this._onceEvents&&this._onceEvents[t];for(let n of i){s&&s[n]&&(this.off(t,n),delete s[n]),n.apply(this,e)}return this},e.allOff=function(){return delete this._events,delete this._onceEvents,this},t})),
function(t,e){"object"==typeof module&&module.exports?module.exports=e(t,require("ev-emitter")):t.imagesLoaded=e(t,t.EvEmitter)}("undefined"!=typeof window?window:this,(function(t,e){let i=t.jQuery,s=t.console;function n(t,e,o){if(!(this instanceof n))return new n(t,e,o);let r=t;var h;("string"==typeof t&&(r=document.querySelectorAll(t)),r)?(this.elements=(h=r,Array.isArray(h)?h:"object"==typeof h&&"number"==typeof h.length?[...h]:[h]),this.options={},"function"==typeof e?o=e:Object.assign(this.options,e),o&&this.on("always",o),this.getImages(),i&&(this.jqDeferred=new i.Deferred),setTimeout(this.check.bind(this))):s.error(`Bad element for imagesLoaded ${r||t}`)}n.prototype=Object.create(e.prototype),n.prototype.getImages=function(){this.images=[],this.elements.forEach(this.addElementImages,this)};const o=[1,9,11];n.prototype.addElementImages=function(t){"IMG"===t.nodeName&&this.addImage(t),!0===this.options.background&&this.addElementBackgroundImages(t);let{nodeType:e}=t;if(!e||!o.includes(e))return;let i=t.querySelectorAll("img");for(let t of i)this.addImage(t);if("string"==typeof this.options.background){let e=t.querySelectorAll(this.options.background);for(let t of e)this.addElementBackgroundImages(t)}};const r=/url\((['"])?(.*?)\1\)/gi;function h(t){this.img=t}function d(t,e){this.url=t,this.element=e,this.img=new Image}return n.prototype.addElementBackgroundImages=function(t){let e=getComputedStyle(t);if(!e)return;let i=r.exec(e.backgroundImage);for(;null!==i;){let s=i&&i[2];s&&this.addBackground(s,t),i=r.exec(e.backgroundImage)}},n.prototype.addImage=function(t){let e=new h(t);this.images.push(e)},n.prototype.addBackground=function(t,e){let i=new d(t,e);this.images.push(i)},n.prototype.check=function(){if(this.progressedCount=0,this.hasAnyBroken=!1,!this.images.length)return void this.complete();let t=(t,e,i)=>{setTimeout((()=>{this.progress(t,e,i)}))};this.images.forEach((function(e){e.once("progress",t),e.check()}))},n.prototype.progress=function(t,e,i){this.progressedCount++,this.hasAnyBroken=this.hasAnyBroken||!t.isLoaded,this.emitEvent("progress",[this,t,e]),this.jqDeferred&&this.jqDeferred.notify&&this.jqDeferred.notify(this,t),this.progressedCount===this.images.length&&this.complete(),this.options.debug&&s&&s.log(`progress: ${i}`,t,e)},n.prototype.complete=function(){let t=this.hasAnyBroken?"fail":"done";if(this.isComplete=!0,this.emitEvent(t,[this]),this.emitEvent("always",[this]),this.jqDeferred){let t=this.hasAnyBroken?"reject":"resolve";this.jqDeferred[t](this)}},h.prototype=Object.create(e.prototype),h.prototype.check=function(){this.getIsImageComplete()?this.confirm(0!==this.img.naturalWidth,"naturalWidth"):(this.proxyImage=new Image,this.img.crossOrigin&&(this.proxyImage.crossOrigin=this.img.crossOrigin),this.proxyImage.addEventListener("load",this),this.proxyImage.addEventListener("error",this),this.img.addEventListener("load",this),this.img.addEventListener("error",this),this.proxyImage.src=this.img.currentSrc||this.img.src)},h.prototype.getIsImageComplete=function(){return this.img.complete&&this.img.naturalWidth},h.prototype.confirm=function(t,e){this.isLoaded=t;let{parentNode:i}=this.img,s="PICTURE"===i.nodeName?i:this.img;this.emitEvent("progress",[this,s,e])},h.prototype.handleEvent=function(t){let e="on"+t.type;this[e]&&this[e](t)},h.prototype.onload=function(){this.confirm(!0,"onload"),this.unbindEvents()},h.prototype.onerror=function(){this.confirm(!1,"onerror"),this.unbindEvents()},h.prototype.unbindEvents=function(){this.proxyImage.removeEventListener("load",this),this.proxyImage.removeEventListener("error",this),this.img.removeEventListener("load",this),this.img.removeEventListener("error",this)},d.prototype=Object.create(h.prototype),d.prototype.check=function(){this.img.addEventListener("load",this),this.img.addEventListener("error",this),this.img.src=this.url,this.getIsImageComplete()&&(this.confirm(0!==this.img.naturalWidth,"naturalWidth"),this.unbindEvents())},d.prototype.unbindEvents=function(){this.img.removeEventListener("load",this),this.img.removeEventListener("error",this)},d.prototype.confirm=function(t,e){this.isLoaded=t,this.emitEvent("progress",[this,this.element,e])},n.makeJQueryPlugin=function(e){(e=e||t.jQuery)&&(i=e,i.fn.imagesLoaded=function(t,e){return new n(this,t,e).jqDeferred.promise(i(this))})},n.makeJQueryPlugin(),n}));
!function(a){"function"==typeof define&&define.amd?define(["jquery"],a):a("object"==typeof exports?require("jquery"):window.jQuery||window.Zepto)}(function(a){var b,c,d,e,f,g,h="Close",i="BeforeClose",j="AfterClose",k="BeforeAppend",l="MarkupParse",m="Open",n="Change",o="mfp",p="."+o,q="mfp-ready",r="mfp-removing",s="mfp-prevent-close",t=function(){},u=!!window.jQuery,v=a(window),w=function(a,c){b.ev.on(o+a+p,c)},x=function(b,c,d,e){var f=document.createElement("div");return f.className="mfp-"+b,d&&(f.innerHTML=d),e?c&&c.appendChild(f):(f=a(f),c&&f.appendTo(c)),f},y=function(c,d){b.ev.triggerHandler(o+c,d),b.st.callbacks&&(c=c.charAt(0).toLowerCase()+c.slice(1),b.st.callbacks[c]&&b.st.callbacks[c].apply(b,Array.isArray(d)?d:[d]))},z=function(c){return c===g&&b.currTemplate.closeBtn||(b.currTemplate.closeBtn=a(b.st.closeMarkup.replace("%title%",b.st.tClose)),g=c),b.currTemplate.closeBtn},A=function(){a.magnificPopup.instance||(b=new t,b.init(),a.magnificPopup.instance=b)},B=function(){var a=document.createElement("p").style,b=["ms","O","Moz","Webkit"];if(void 0!==a.transition)return!0;for(;b.length;)if(b.pop()+"Transition"in a)return!0;return!1};t.prototype={constructor:t,init:function(){var c=navigator.appVersion;b.isLowIE=b.isIE8=document.all&&!document.addEventListener,b.isAndroid=/android/gi.test(c),b.isIOS=/iphone|ipad|ipod/gi.test(c),b.supportsTransition=B(),b.probablyMobile=b.isAndroid||b.isIOS||/(Opera Mini)|Kindle|webOS|BlackBerry|(Opera Mobi)|(Windows Phone)|IEMobile/i.test(navigator.userAgent),d=a(document),b.popupsCache={}},open:function(c){var e;if(c.isObj===!1){b.items=c.items.toArray(),b.index=0;var g,h=c.items;for(e=0;e<h.length;e++)if(g=h[e],g.parsed&&(g=g.el[0]),g===c.el[0]){b.index=e;break}}else b.items=Array.isArray(c.items)?c.items:[c.items],b.index=c.index||0;if(b.isOpen)return void b.updateItemHTML();b.types=[],f="",c.mainEl&&c.mainEl.length?b.ev=c.mainEl.eq(0):b.ev=d,c.key?(b.popupsCache[c.key]||(b.popupsCache[c.key]={}),b.currTemplate=b.popupsCache[c.key]):b.currTemplate={},b.st=a.extend(!0,{},a.magnificPopup.defaults,c),b.fixedContentPos="auto"===b.st.fixedContentPos?!b.probablyMobile:b.st.fixedContentPos,b.st.modal&&(b.st.closeOnContentClick=!1,b.st.closeOnBgClick=!1,b.st.showCloseBtn=!1,b.st.enableEscapeKey=!1),b.bgOverlay||(b.bgOverlay=x("bg").on("click"+p,function(){b.close()}),b.wrap=x("wrap").attr("tabindex",-1).on("click"+p,function(a){b._checkIfClose(a.target)&&b.close()}),b.container=x("container",b.wrap)),b.contentContainer=x("content"),b.st.preloader&&(b.preloader=x("preloader",b.container,b.st.tLoading));var i=a.magnificPopup.modules;for(e=0;e<i.length;e++){var j=i[e];j=j.charAt(0).toUpperCase()+j.slice(1),b["init"+j].call(b)}y("BeforeOpen"),b.st.showCloseBtn&&(b.st.closeBtnInside?(w(l,function(a,b,c,d){c.close_replaceWith=z(d.type)}),f+=" mfp-close-btn-in"):b.wrap.append(z())),b.st.alignTop&&(f+=" mfp-align-top"),b.fixedContentPos?b.wrap.css({overflow:b.st.overflowY,overflowX:"hidden",overflowY:b.st.overflowY}):b.wrap.css({top:v.scrollTop(),position:"absolute"}),(b.st.fixedBgPos===!1||"auto"===b.st.fixedBgPos&&!b.fixedContentPos)&&b.bgOverlay.css({height:d.height(),position:"absolute"}),b.st.enableEscapeKey&&d.on("keyup"+p,function(a){27===a.keyCode&&b.close()}),v.on("resize"+p,function(){b.updateSize()}),b.st.closeOnContentClick||(f+=" mfp-auto-cursor"),f&&b.wrap.addClass(f);var k=b.wH=v.height(),n={};if(b.fixedContentPos&&b._hasScrollBar(k)){var o=b._getScrollbarSize();o&&(n.marginRight=o)}b.fixedContentPos&&(b.isIE7?a("body, html").css("overflow","hidden"):n.overflow="hidden");var r=b.st.mainClass;return b.isIE7&&(r+=" mfp-ie7"),r&&b._addClassToMFP(r),b.updateItemHTML(),y("BuildControls"),a("html").css(n),b.bgOverlay.add(b.wrap).prependTo(b.st.prependTo||a(document.body)),b._lastFocusedEl=document.activeElement,setTimeout(function(){b.content?(b._addClassToMFP(q),b._setFocus()):b.bgOverlay.addClass(q),d.on("focusin"+p,b._onFocusIn)},16),b.isOpen=!0,b.updateSize(k),y(m),c},close:function(){b.isOpen&&(y(i),b.isOpen=!1,b.st.removalDelay&&!b.isLowIE&&b.supportsTransition?(b._addClassToMFP(r),setTimeout(function(){b._close()},b.st.removalDelay)):b._close())},_close:function(){y(h);var c=r+" "+q+" ";if(b.bgOverlay.detach(),b.wrap.detach(),b.container.empty(),b.st.mainClass&&(c+=b.st.mainClass+" "),b._removeClassFromMFP(c),b.fixedContentPos){var e={marginRight:""};b.isIE7?a("body, html").css("overflow",""):e.overflow="",a("html").css(e)}d.off("keyup"+p+" focusin"+p),b.ev.off(p),b.wrap.attr("class","mfp-wrap").removeAttr("style"),b.bgOverlay.attr("class","mfp-bg"),b.container.attr("class","mfp-container"),!b.st.showCloseBtn||b.st.closeBtnInside&&b.currTemplate[b.currItem.type]!==!0||b.currTemplate.closeBtn&&b.currTemplate.closeBtn.detach(),b.st.autoFocusLast&&b._lastFocusedEl&&a(b._lastFocusedEl).trigger('focus'),b.currItem=null,b.content=null,b.currTemplate=null,b.prevHeight=0,y(j)},updateSize:function(a){if(b.isIOS){var c=document.documentElement.clientWidth/window.innerWidth,d=window.innerHeight*c;b.wrap.css("height",d),b.wH=d}else b.wH=a||v.height();b.fixedContentPos||b.wrap.css("height",b.wH),y("Resize")},updateItemHTML:function(){var c=b.items[b.index];b.contentContainer.detach(),b.content&&b.content.detach(),c.parsed||(c=b.parseEl(b.index));var d=c.type;if(y("BeforeChange",[b.currItem?b.currItem.type:"",d]),b.currItem=c,!b.currTemplate[d]){var f=b.st[d]?b.st[d].markup:!1;y("FirstMarkupParse",f),f?b.currTemplate[d]=a(f):b.currTemplate[d]=!0}e&&e!==c.type&&b.container.removeClass("mfp-"+e+"-holder");var g=b["get"+d.charAt(0).toUpperCase()+d.slice(1)](c,b.currTemplate[d]);b.appendContent(g,d),c.preloaded=!0,y(n,c),e=c.type,b.container.prepend(b.contentContainer),y("AfterChange")},appendContent:function(a,c){b.content=a,a?b.st.showCloseBtn&&b.st.closeBtnInside&&b.currTemplate[c]===!0?b.content.find(".mfp-close").length||b.content.append(z()):b.content=a:b.content="",y(k),b.container.addClass("mfp-"+c+"-holder"),b.contentContainer.append(b.content)},parseEl:function(c){var d,e=b.items[c];if(e.tagName?e={el:a(e)}:(d=e.type,e={data:e,src:e.src}),e.el){for(var f=b.types,g=0;g<f.length;g++)if(e.el.hasClass("mfp-"+f[g])){d=f[g];break}e.src=e.el.attr("data-mfp-src"),e.src||(e.src=e.el.attr("href"))}return e.type=d||b.st.type||"inline",e.index=c,e.parsed=!0,b.items[c]=e,y("ElementParse",e),b.items[c]},addGroup:function(a,c){var d=function(d){d.mfpEl=this,b._openClick(d,a,c)};c||(c={});var e="click.magnificPopup";c.mainEl=a,c.items?(c.isObj=!0,a.off(e).on(e,d)):(c.isObj=!1,c.delegate?a.off(e).on(e,c.delegate,d):(c.items=a,a.off(e).on(e,d)))},_openClick:function(c,d,e){var f=void 0!==e.midClick?e.midClick:a.magnificPopup.defaults.midClick;if(f||!(2===c.which||c.ctrlKey||c.metaKey||c.altKey||c.shiftKey)){var g=void 0!==e.disableOn?e.disableOn:a.magnificPopup.defaults.disableOn;if(g)if(a.isFunction(g)){if(!g.call(b))return!0}else if(v.width()<g)return!0;c.type&&(c.preventDefault(),b.isOpen&&c.stopPropagation()),e.el=a(c.mfpEl),e.delegate&&(e.items=d.find(e.delegate)),b.open(e)}},updateStatus:function(a,d){if(b.preloader){c!==a&&b.container.removeClass("mfp-s-"+c),d||"loading"!==a||(d=b.st.tLoading);var e={status:a,text:d};y("UpdateStatus",e),a=e.status,d=e.text,b.preloader.html(d),b.preloader.find("a").on("click",function(a){a.stopImmediatePropagation()}),b.container.addClass("mfp-s-"+a),c=a}},_checkIfClose:function(c){if(!a(c).hasClass(s)){var d=b.st.closeOnContentClick,e=b.st.closeOnBgClick;if(d&&e)return!0;if(!b.content||a(c).hasClass("mfp-close")||b.preloader&&c===b.preloader[0])return!0;if(c===b.content[0]||a.contains(b.content[0],c)){if(d)return!0}else if(e&&a.contains(document,c))return!0;return!1}},_addClassToMFP:function(a){b.bgOverlay.addClass(a),b.wrap.addClass(a)},_removeClassFromMFP:function(a){this.bgOverlay.removeClass(a),b.wrap.removeClass(a)},_hasScrollBar:function(a){return(b.isIE7?d.height():document.body.scrollHeight)>(a||v.height())},_setFocus:function(){(b.st.focus?b.content.find(b.st.focus).eq(0):b.wrap).trigger('focus')},_onFocusIn:function(c){return c.target===b.wrap[0]||a.contains(b.wrap[0],c.target)?void 0:(b._setFocus(),!1)},_parseMarkup:function(b,c,d){var e;d.data&&(c=a.extend(d.data,c)),y(l,[b,c,d]),a.each(c,function(c,d){if(void 0===d||d===!1)return!0;if(e=c.split("_"),e.length>1){var f=b.find(p+"-"+e[0]);if(f.length>0){var g=e[1];"replaceWith"===g?f[0]!==d[0]&&f.replaceWith(d):"img"===g?f.is("img")?f.attr("src",d):f.replaceWith(a("<img>").attr("src",d).attr("class",f.attr("class"))):f.attr(e[1],d)}}else b.find(p+"-"+c).html(d)})},_getScrollbarSize:function(){if(void 0===b.scrollbarSize){var a=document.createElement("div");a.style.cssText="width: 99px; height: 99px; overflow: scroll; position: absolute; top: -9999px;",document.body.appendChild(a),b.scrollbarSize=a.offsetWidth-a.clientWidth,document.body.removeChild(a)}return b.scrollbarSize}},a.magnificPopup={instance:null,proto:t.prototype,modules:[],open:function(b,c){return A(),b=b?a.extend(!0,{},b):{},b.isObj=!0,b.index=c||0,this.instance.open(b)},close:function(){return a.magnificPopup.instance&&a.magnificPopup.instance.close()},registerModule:function(b,c){c.options&&(a.magnificPopup.defaults[b]=c.options),a.extend(this.proto,c.proto),this.modules.push(b)},defaults:{disableOn:0,key:null,midClick:!1,mainClass:"",preloader:!0,focus:"",closeOnContentClick:!1,closeOnBgClick:!0,closeBtnInside:!0,showCloseBtn:!0,enableEscapeKey:!0,modal:!1,alignTop:!1,removalDelay:0,prependTo:null,fixedContentPos:"auto",fixedBgPos:"auto",overflowY:"auto",closeMarkup:'<button title="%title%" type="button" class="mfp-close">&#215;</button>',tClose:"Close (Esc)",tLoading:"Loading...",autoFocusLast:!0}},a.fn.magnificPopup=function(c){A();var d=a(this);if("string"==typeof c)if("open"===c){var e,f=u?d.data("magnificPopup"):d[0].magnificPopup,g=parseInt(arguments[1],10)||0;f.items?e=f.items[g]:(e=d,f.delegate&&(e=e.find(f.delegate)),e=e.eq(g)),b._openClick({mfpEl:e},d,f)}else b.isOpen&&b[c].apply(b,Array.prototype.slice.call(arguments,1));else c=a.extend(!0,{},c),u?d.data("magnificPopup",c):d[0].magnificPopup=c,b.addGroup(d,c);return d};var C,D,E,F="inline",G=function(){E&&(D.after(E.addClass(C)).detach(),E=null)};a.magnificPopup.registerModule(F,{options:{hiddenClass:"hide",markup:"",tNotFound:"Content not found"},proto:{initInline:function(){b.types.push(F),w(h+"."+F,function(){G()})},getInline:function(c,d){if(G(),c.src){var e=b.st.inline,f=a(c.src);if(f.length){var g=f[0].parentNode;g&&g.tagName&&(D||(C=e.hiddenClass,D=x(C),C="mfp-"+C),E=f.after(D).detach().removeClass(C)),b.updateStatus("ready")}else b.updateStatus("error",e.tNotFound),f=a("<div>");return c.inlineElement=f,f}return b.updateStatus("ready"),b._parseMarkup(d,{},c),d}}});var H,I="ajax",J=function(){H&&a(document.body).removeClass(H)},K=function(){J(),b.req&&b.req.abort()};a.magnificPopup.registerModule(I,{options:{settings:null,cursor:"mfp-ajax-cur",tError:'<a href="%url%">The content</a> could not be loaded.'},proto:{initAjax:function(){b.types.push(I),H=b.st.ajax.cursor,w(h+"."+I,K),w("BeforeChange."+I,K)},getAjax:function(c){H&&a(document.body).addClass(H),b.updateStatus("loading");var d=a.extend({url:c.src,success:function(d,e,f){var g={data:d,xhr:f};y("ParseAjax",g),b.appendContent(a(g.data),I),c.finished=!0,J(),b._setFocus(),setTimeout(function(){b.wrap.addClass(q)},16),b.updateStatus("ready"),y("AjaxContentAdded")},error:function(){J(),c.finished=c.loadError=!0,b.updateStatus("error",b.st.ajax.tError.replace("%url%",c.src))}},b.st.ajax.settings);return b.req=a.ajax(d),""}}});var L,M=function(c){if(c.data&&void 0!==c.data.title)return c.data.title;var d=b.st.image.titleSrc;if(d){if(a.isFunction(d))return d.call(b,c);if(c.el)return c.el.attr(d)||""}return""};a.magnificPopup.registerModule("image",{options:{markup:'<div class="mfp-figure"><div class="mfp-close"></div><figure><div class="mfp-img"></div><figcaption><div class="mfp-bottom-bar"><div class="mfp-title"></div><div class="mfp-counter"></div></div></figcaption></figure></div>',cursor:"mfp-zoom-out-cur",titleSrc:"title",verticalFit:!0,tError:'<a href="%url%">The image</a> could not be loaded.'},proto:{initImage:function(){var c=b.st.image,d=".image";b.types.push("image"),w(m+d,function(){"image"===b.currItem.type&&c.cursor&&a(document.body).addClass(c.cursor)}),w(h+d,function(){c.cursor&&a(document.body).removeClass(c.cursor),v.off("resize"+p)}),w("Resize"+d,b.resizeImage),b.isLowIE&&w("AfterChange",b.resizeImage)},resizeImage:function(){var a=b.currItem;if(a&&a.img&&b.st.image.verticalFit){var c=0;b.isLowIE&&(c=parseInt(a.img.css("padding-top"),10)+parseInt(a.img.css("padding-bottom"),10)),a.img.css("max-height",b.wH-c)}},_onImageHasSize:function(a){a.img&&(a.hasSize=!0,L&&clearInterval(L),a.isCheckingImgSize=!1,y("ImageHasSize",a),a.imgHidden&&(b.content&&b.content.removeClass("mfp-loading"),a.imgHidden=!1))},findImageSize:function(a){var c=0,d=a.img[0],e=function(f){L&&clearInterval(L),L=setInterval(function(){return d.naturalWidth>0?void b._onImageHasSize(a):(c>200&&clearInterval(L),c++,void(3===c?e(10):40===c?e(50):100===c&&e(500)))},f)};e(1)},getImage:function(c,d){var e=0,f=function(){c&&(c.img[0].complete?(c.img.off(".mfploader"),c===b.currItem&&(b._onImageHasSize(c),b.updateStatus("ready")),c.hasSize=!0,c.loaded=!0,y("ImageLoadComplete")):(e++,200>e?setTimeout(f,100):g()))},g=function(){c&&(c.img.off(".mfploader"),c===b.currItem&&(b._onImageHasSize(c),b.updateStatus("error",h.tError.replace("%url%",c.src))),c.hasSize=!0,c.loaded=!0,c.loadError=!0)},h=b.st.image,i=d.find(".mfp-img");if(i.length){var j=document.createElement("img");j.className="mfp-img",c.el&&c.el.find("img").length&&(j.alt=c.el.find("img").attr("alt")),c.img=a(j).on("load.mfploader",f).on("error.mfploader",g),j.src=c.src,i.is("img")&&(c.img=c.img.clone()),j=c.img[0],j.naturalWidth>0?c.hasSize=!0:j.width||(c.hasSize=!1)}return b._parseMarkup(d,{title:M(c),img_replaceWith:c.img},c),b.resizeImage(),c.hasSize?(L&&clearInterval(L),c.loadError?(d.addClass("mfp-loading"),b.updateStatus("error",h.tError.replace("%url%",c.src))):(d.removeClass("mfp-loading"),b.updateStatus("ready")),d):(b.updateStatus("loading"),c.loading=!0,c.hasSize||(c.imgHidden=!0,d.addClass("mfp-loading"),b.findImageSize(c)),d)}}});var N,O=function(){return void 0===N&&(N=void 0!==document.createElement("p").style.MozTransform),N};a.magnificPopup.registerModule("zoom",{options:{enabled:!1,easing:"ease-in-out",duration:300,opener:function(a){return a.is("img")?a:a.find("img")}},proto:{initZoom:function(){var a,c=b.st.zoom,d=".zoom";if(c.enabled&&b.supportsTransition){var e,f,g=c.duration,j=function(a){var b=a.clone().removeAttr("style").removeAttr("class").addClass("mfp-animated-image"),d="all "+c.duration/1e3+"s "+c.easing,e={position:"fixed",zIndex:9999,left:0,top:0,"-webkit-backface-visibility":"hidden"},f="transition";return e["-webkit-"+f]=e["-moz-"+f]=e["-o-"+f]=e[f]=d,b.css(e),b},k=function(){b.content.css("visibility","visible")};w("BuildControls"+d,function(){if(b._allowZoom()){if(clearTimeout(e),b.content.css("visibility","hidden"),a=b._getItemToZoom(),!a)return void k();f=j(a),f.css(b._getOffset()),b.wrap.append(f),e=setTimeout(function(){f.css(b._getOffset(!0)),e=setTimeout(function(){k(),setTimeout(function(){f.remove(),a=f=null,y("ZoomAnimationEnded")},16)},g)},16)}}),w(i+d,function(){if(b._allowZoom()){if(clearTimeout(e),b.st.removalDelay=g,!a){if(a=b._getItemToZoom(),!a)return;f=j(a)}f.css(b._getOffset(!0)),b.wrap.append(f),b.content.css("visibility","hidden"),setTimeout(function(){f.css(b._getOffset())},16)}}),w(h+d,function(){b._allowZoom()&&(k(),f&&f.remove(),a=null)})}},_allowZoom:function(){return"image"===b.currItem.type},_getItemToZoom:function(){return b.currItem.hasSize?b.currItem.img:!1},_getOffset:function(c){var d;d=c?b.currItem.img:b.st.zoom.opener(b.currItem.el||b.currItem);var e=d.offset(),f=parseInt(d.css("padding-top"),10),g=parseInt(d.css("padding-bottom"),10);e.top-=a(window).scrollTop()-f;var h={width:d.width(),height:(u?d.innerHeight():d[0].offsetHeight)-g-f};return O()?h["-moz-transform"]=h.transform="translate("+e.left+"px,"+e.top+"px)":(h.left=e.left,h.top=e.top),h}}});var P="iframe",Q="//about:blank",R=function(a){if(b.currTemplate[P]){var c=b.currTemplate[P].find("iframe");c.length&&(a||(c[0].src=Q),b.isIE8&&c.css("display",a?"block":"none"))}};a.magnificPopup.registerModule(P,{options:{markup:'<div class="mfp-iframe-scaler"><div class="mfp-close"></div><iframe class="mfp-iframe" src="//about:blank" frameborder="0" allowfullscreen></iframe></div>',srcAction:"iframe_src",patterns:{youtube:{index:"youtube.com",id:"v=",src:"//www.youtube.com/embed/%id%?autoplay=1"},vimeo:{index:"vimeo.com/",id:"/",src:"//player.vimeo.com/video/%id%?autoplay=1"},gmaps:{index:"//maps.google.",src:"%id%&output=embed"}}},proto:{initIframe:function(){b.types.push(P),w("BeforeChange",function(a,b,c){b!==c&&(b===P?R():c===P&&R(!0))}),w(h+"."+P,function(){R()})},getIframe:function(c,d){var e=c.src,f=b.st.iframe;a.each(f.patterns,function(){return e.indexOf(this.index)>-1?(this.id&&(e="string"==typeof this.id?e.substr(e.lastIndexOf(this.id)+this.id.length,e.length):this.id.call(this,e)),e=this.src.replace("%id%",e),!1):void 0});var g={};return f.srcAction&&(g[f.srcAction]=e),b._parseMarkup(d,g,c),b.updateStatus("ready"),d}}});var S=function(a){var c=b.items.length;return a>c-1?a-c:0>a?c+a:a},T=function(a,b,c){return a.replace(/%curr%/gi,b+1).replace(/%total%/gi,c)};a.magnificPopup.registerModule("gallery",{options:{enabled:!1,arrowMarkup:'<button title="%title%" type="button" class="mfp-arrow mfp-arrow-%dir%"></button>',preload:[0,2],navigateByImgClick:!0,arrows:!0,tPrev:"Previous (Left arrow key)",tNext:"Next (Right arrow key)",tCounter:"%curr% of %total%"},proto:{initGallery:function(){var c=b.st.gallery,e=".mfp-gallery";return b.direction=!0,c&&c.enabled?(f+=" mfp-gallery",w(m+e,function(){c.navigateByImgClick&&b.wrap.on("click"+e,".mfp-img",function(){return b.items.length>1?(b.next(),!1):void 0}),d.on("keydown"+e,function(a){37===a.keyCode?b.prev():39===a.keyCode&&b.next()})}),w("UpdateStatus"+e,function(a,c){c.text&&(c.text=T(c.text,b.currItem.index,b.items.length))}),w(l+e,function(a,d,e,f){var g=b.items.length;e.counter=g>1?T(c.tCounter,f.index,g):""}),w("BuildControls"+e,function(){if(b.items.length>1&&c.arrows&&!b.arrowLeft){var d=c.arrowMarkup,e=b.arrowLeft=a(d.replace(/%title%/gi,c.tPrev).replace(/%dir%/gi,"left")).addClass(s),f=b.arrowRight=a(d.replace(/%title%/gi,c.tNext).replace(/%dir%/gi,"right")).addClass(s);e.click(function(){b.prev()}),f.click(function(){b.next()}),b.container.append(e.add(f))}}),w(n+e,function(){b._preloadTimeout&&clearTimeout(b._preloadTimeout),b._preloadTimeout=setTimeout(function(){b.preloadNearbyImages(),b._preloadTimeout=null},16)}),void w(h+e,function(){d.off(e),b.wrap.off("click"+e),b.arrowRight=b.arrowLeft=null})):!1},next:function(){b.direction=!0,b.index=S(b.index+1),b.updateItemHTML()},prev:function(){b.direction=!1,b.index=S(b.index-1),b.updateItemHTML()},goTo:function(a){b.direction=a>=b.index,b.index=a,b.updateItemHTML()},preloadNearbyImages:function(){var a,c=b.st.gallery.preload,d=Math.min(c[0],b.items.length),e=Math.min(c[1],b.items.length);for(a=1;a<=(b.direction?e:d);a++)b._preloadItem(b.index+a);for(a=1;a<=(b.direction?d:e);a++)b._preloadItem(b.index-a)},_preloadItem:function(c){if(c=S(c),!b.items[c].preloaded){var d=b.items[c];d.parsed||(d=b.parseEl(c)),y("LazyLoad",d),"image"===d.type&&(d.img=a('<img class="mfp-img" />').on("load.mfploader",function(){d.hasSize=!0}).on("error.mfploader",function(){d.hasSize=!0,d.loadError=!0,y("LazyLoadError",d)}).attr("src",d.src)),d.preloaded=!0}}}});var U="retina";a.magnificPopup.registerModule(U,{options:{replaceSrc:function(a){return a.src.replace(/\.\w+$/,function(a){return"@2x"+a})},ratio:1},proto:{initRetina:function(){if(window.devicePixelRatio>1){var a=b.st.retina,c=a.ratio;c=isNaN(c)?c():c,c>1&&(w("ImageHasSize."+U,function(a,b){b.img.css({"max-width":b.img[0].naturalWidth/c,width:"100%"})}),w("ElementParse."+U,function(b,d){d.src=a.replaceSrc(d,c)}))}}}}),A()});
String.prototype.endsWith||(String.prototype.endsWith=function(t,e){return(void 0===e||e>this.length)&&(e=this.length),this.substring(e-t.length,e)===t}),window.NodeList&&!NodeList.prototype.forEach&&(NodeList.prototype.forEach=Array.prototype.forEach),String.prototype.trim||(String.prototype.trim=function(){return this.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}),function(t,e){"use strict";jQuery.fn[e]=function(t){return t?this.on("resize",(i=t,function(){var t=this,e=arguments;s&&s.val?theme.deleteTimeout(s):n&&i.apply(t,e),s=theme.requestTimeout((function(){n||i.apply(t,e),s=null}),o||100)})):this.trigger(e);var i,o,n,s}}(jQuery,"smartresize"),jQuery.extend(jQuery.easing,{def:"easeOutQuad",swing:function(t,e,i,o,n){return jQuery.easing[jQuery.easing.def](t,e,i,o,n)},easeOutQuad:function(t,e,i,o,n){return-o*(e/=n)*(e-2)+i},easeInOutQuart:function(t,e,i,o,n){return(e/=n/2)<1?o/2*e*e*e*e+i:-o/2*((e-=2)*e*e*e-2)+i},easeOutQuint:function(t,e,i,o,n){return o*((e=e/n-1)*e*e*e*e+1)+i}}),function(t){t.fn.visible=function(e,i,o,n){if(!(this.length<1)){var s=this.length>1?this.eq(0):this,a=null!=n,r=t(a?n:window),l=a?r.position():0,d=s.get(0),c=r.outerWidth(),h=r.outerHeight(),p=(o=o||"both",!0!==i||d.offsetWidth*d.offsetHeight);if("function"==typeof d.getBoundingClientRect){var u=d.getBoundingClientRect(),f=a?u.top-l.top>=0&&u.top<h+l.top:u.top>=0&&u.top<h,m=a?u.bottom-l.top>0&&u.bottom<=h+l.top:u.bottom>0&&u.bottom<=h,g=a?u.left-l.left>=0&&u.left<c+l.left:u.left>=0&&u.left<c,v=a?u.right-l.left>0&&u.right<c+l.left:u.right>0&&u.right<=c,w=e?f||m:f&&m,y=e?g||v:g&&v;if("both"===o)return p&&w&&y;if("vertical"===o)return p&&w;if("horizontal"===o)return p&&y}else{var _=a?0:l,b=_+h,C=r.scrollLeft(),k=C+c,x=s.position(),$=x.top,T=$+s.height(),j=x.left,I=j+s.width(),O=!0===e?T:$,z=!0===e?$:T,H=!0===e?I:j,S=!0===e?j:I;if("both"===o)return!!p&&z<=b&&O>=_&&S<=k&&H>=C;if("vertical"===o)return!!p&&z<=b&&O>=_;if("horizontal"===o)return!!p&&S<=k&&H>=C}}}}(jQuery),window.theme||(window.theme={}),function(t,e){"use strict";t=t||{},e.extend(t,{rtl:"1"==js_porto_vars.rtl,rtl_browser:e("html").hasClass("browser-rtl"),ajax_url:js_porto_vars.ajax_url,request_error:js_porto_vars.request_error,change_logo:"1"==js_porto_vars.change_logo,show_sticky_header:"1"==js_porto_vars.show_sticky_header,show_sticky_header_tablet:"1"==js_porto_vars.show_sticky_header_tablet,show_sticky_header_mobile:"1"==js_porto_vars.show_sticky_header_mobile,category_ajax:"1"==js_porto_vars.category_ajax,prdctfltr_ajax:"1"==js_porto_vars.prdctfltr_ajax,container_width:parseInt(js_porto_vars.container_width),grid_gutter_width:parseInt(js_porto_vars.grid_gutter_width),screen_xl:parseInt(js_porto_vars.screen_xl),screen_xxl:parseInt(js_porto_vars.screen_xxl),slider_loop:"1"==js_porto_vars.slider_loop,slider_autoplay:"1"==js_porto_vars.slider_autoplay,slider_autoheight:"1"==js_porto_vars.slider_autoheight,slider_speed:js_porto_vars.slider_speed?js_porto_vars.slider_speed:5e3,slider_nav:"1"==js_porto_vars.slider_nav,slider_nav_hover:"1"==js_porto_vars.slider_nav_hover,slider_margin:"1"==js_porto_vars.slider_margin?40:0,slider_dots:"1"==js_porto_vars.slider_dots,slider_animatein:js_porto_vars.slider_animatein?js_porto_vars.slider_animatein:"",slider_animateout:js_porto_vars.slider_animateout?js_porto_vars.slider_animateout:"",product_thumbs_count:js_porto_vars.product_thumbs_count?parseInt(js_porto_vars.product_thumbs_count,10):4,product_zoom:"1"==js_porto_vars.product_zoom,product_zoom_mobile:"1"==js_porto_vars.product_zoom_mobile,product_image_popup:"1"==js_porto_vars.product_image_popup&&"fadeOut",innerHeight:window.innerHeight,animation_support:!e("html").hasClass("no-csstransitions"),owlConfig:{rtl:"1"==js_porto_vars.rtl,loop:"1"==js_porto_vars.slider_loop,autoplay:"1"==js_porto_vars.slider_autoplay,autoHeight:"1"==js_porto_vars.slider_autoheight,autoplayTimeout:js_porto_vars.slider_speed?js_porto_vars.slider_speed:7e3,autoplayHoverPause:!0,lazyLoad:!0,nav:"1"==js_porto_vars.slider_nav,navText:["",""],dots:"1"==js_porto_vars.slider_dots,stagePadding:"1"!=js_porto_vars.slider_nav_hover&&"1"==js_porto_vars.slider_margin?40:0,animateOut:js_porto_vars.slider_animateout?js_porto_vars.slider_animateout:"",animateIn:js_porto_vars.slider_animatein?js_porto_vars.slider_animatein:""},sticky_nav_height:0,is_device_mobile:/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm(os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows (ce|phone)|xda|xiino/i.test(navigator.userAgent||navigator.vendor||window.opera)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s\-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|\-m|r |s)|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw\-(n|u)|c55\/|capi|ccwa|cdm\-|cell|chtm|cldc|cmd\-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc\-s|devi|dica|dmob|do(c|p)o|ds(12|\-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(\-|_)|g1 u|g560|gene|gf\-5|g\-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd\-(m|p|t)|hei\-|hi(pt|ta)|hp(i|ip)|hs\-c|ht(c(\-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i\-(20|go|ma)|i230|iac(|\-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt(|\/)|klon|kpt |kwc\-|kyo(c|k)|le(no|xi)|lg(g|\/(k|l|u)|50|54|\-[a-w])|libw|lynx|m1\-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m\-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(\-| |o|v)|zz)|mt(50|p1|v)|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)\-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|\-([1-8]|c))|phil|pire|pl(ay|uc)|pn\-2|po(ck|rt|se)|prox|psio|pt\-g|qa\-a|qc(07|12|21|32|60|\-[2-7]|i\-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h\-|oo|p\-)|sdk\/|se(c(\-|0|1)|47|mc|nd|ri)|sgh\-|shar|sie(\-|m)|sk\-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h\-|v\-|v)|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl\-|tdg\-|tel(i|m)|tim\-|t\-mo|to(pl|sh)|ts(70|m\-|m3|m5)|tx\-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|\-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(\-|)|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas\-|your|zeto|zte\-/i.test((navigator.userAgent||navigator.vendor||window.opera).substr(0,4)),getScrollbarWidth:function(){return void 0===this.scrollbarSize&&(this.scrollbarSize=window.innerWidth-document.documentElement.clientWidth),this.scrollbarSize},isTablet:function(){return window.innerWidth<992},isMobile:function(){return window.innerWidth<=480},isIOS:function(){return["iPad Simulator","iPhone Simulator","iPod Simulator","iPad","iPhone","iPod"].includes(navigator.platform)||navigator.userAgent.includes("Mac")&&"ontouchend"in document},refreshVCContent:function(i){(i||e(document.body).hasClass("elementor-page"))&&e(window).trigger("resize"),t.refreshStickySidebar(!0),"function"==typeof window.vc_js&&window.vc_js(),e(document.body).trigger("porto_refresh_vc_content",[i])},adminBarHeight:function(){if(t.adminBarHeightNum||0===t.adminBarHeightNum)return t.adminBarHeightNum;var i=document.getElementById("wpadminbar"),o=e(".porto-scroll-progress.fixed-top:not(.fixed-under-header)");return o.length&&"0px"==o.css("margin-top")?t.adminBarHeightNum=o.height():t.adminBarHeightNum=0,i&&i.offsetHeight&&window.innerWidth>600&&(t.adminBarHeightNum+=i.offsetHeight),t.adminBarHeightNum},refreshStickySidebar:function(i,o){void 0===o&&(o=e(".sidebar [data-plugin-sticky]")),o.get(0)&&(i?t.requestTimeout((function(){o.trigger("recalc.pin")}),400):o.trigger("recalc.pin"))},scrolltoContainer:function(i,o){i.get(0)&&(window.innerWidth<992&&e(".sidebar-overlay").trigger("click"),o||(o=600),e("html, body").stop().animate({scrollTop:i.offset().top-t.StickyHeader.sticky_height-t.adminBarHeight()-t.sticky_nav_height-18},o,"easeOutQuad"))},requestFrame:function(t){var e=window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame;if(!e)return setTimeout(t,1e3/60);var i=new Object;return i.val=e(t),i},requestTimeout:function(t,e){var i=window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame;if(!i)return setTimeout(t,e);var o,n=new Object;return n.val=i((function s(a){o||(o=a),a-o>=e?t.call():n.val=i(s)})),n},deleteTimeout:function(t){if(t){var e=window.cancelAnimationFrame||window.webkitCancelAnimationFrame||window.mozCancelAnimationFrame;return e?t.val?e(t.val):void 0:clearTimeout(t)}},execPluginFunction:function(t,e){for(var i=Array.prototype.slice.call(arguments,2),o=t.split("."),n=o.pop(),s=0;s<o.length;s++)e=e[o[s]];return e[n].apply(e,i)},getOptions:function(t){if("object"==typeof t)return t;if("string"!=typeof t)return{};try{return JSON.parse(t.replace(/'/g,'"').replace(";",""))}catch(t){return{}}},mergeOptions:function(t,e){var i={};for(var o in t)i[o]=t[o];for(var o in e)i[o]=e[o];return i},intObs:function(i,o,n){var s;s="string"==typeof i?document.querySelectorAll(i):i;var a={rootMargin:"200px"};void 0!==n&&(a.rootMargin="0px 0px "+Number(n)+"px 0px");var r=new IntersectionObserver((function(i){for(var n=0;n<i.length;n++){var s=i[n];if(s.intersectionRatio>0){var a,l=e(s.target);if("string"==typeof o){var d=t.getOptions(l.data("plugin-options"));d&&(a=d),t.execPluginFunction(o,l,a)}else{o.call(l)}r.unobserve(s.target)}}}),a);Array.prototype.forEach.call(s,(function(t){r.observe(t)}))},dynIntObsInit:function(i,o,n){var s;s="string"==typeof i?document.querySelectorAll(i):i,Array.prototype.forEach.call(s,(function(i){var s,a=e(i);if(!a.data("observer-init")){var r=t.getOptions(a.data("plugin-options"));r&&(s=r);var l=t.mergeOptions(n,s),d={rootMargin:"0px 0px 200px 0px",thresholds:0};l.accY&&(d.rootMargin="0px 0px "+Number(l.accY)+"px 0px");var c=new IntersectionObserver((function(e){for(var i=0;i<e.length;i++){var n=e[i];n.intersectionRatio>0&&(t.execPluginFunction(o,a,l),c.unobserve(n.target))}}),d);c.observe(i),a.data("observer-init",!0)}}))}}),t.isIOS()&&document.body.classList.add("ios"),e.extend(t,{add_query_arg:function(t,e){t=escape(t),e=escape(e);var i=document.location.search,o=t+"="+e,n=new RegExp("(&|\\?)"+t+"=[^&]*");return i=i.replace(n,"$1"+o),RegExp.$1||(i+=(i.length>0?"&":"?")+o),i},addUrlParam:function(t,e,i){var o,n,s=document.createElement("a");return t=decodeURIComponent(decodeURI(t)),s.href=t,0<=(o=s.search).indexOf(e+"=")?n=o.replace(new RegExp(e+"=[^&]*"),e+"="+i):((n=o.length&&0<=o.indexOf("?")?o:"?").endsWith("?")||(n+="&"),n+=e+"="+i),encodeURI(t.replace(o,"")+n.replace(/&+/,"&"))},removeUrlParam:function(t,e){var i,o,n=document.createElement("a");return t=decodeURIComponent(decodeURI(t)),n.href=t,0<=(i=n.search).indexOf(e+"=")?((o=i.replace(new RegExp(e+"=[^&]*"),"").replace(/&+/,"&").replace("?&","?")).endsWith("&")&&(o=o.substr(0,o.length-1)),o.endsWith("?")&&(o=o.substr(0,o.length-1)),o=o.replace("&&","&")):o=i,encodeURI(t.replace(i,"")+o)}})}.apply(this,[window.theme,jQuery]),function(t,e){"use strict";t=t||{};e.extend(t,{disableMobileAnimations:function(){e(document.body).hasClass("porto-dm-animate")&&window.innerWidth<768&&(t.animation_support=!1,e("[data-appear-animation]").removeAttr("data-appear-animation"),e(".elementor-invisible").removeAttr("data-settings").removeData("settings").removeClass("elementor-invisible").add(e(".appear-animation").removeClass("appear-animation")))}}),t.disableMobileAnimations()}.apply(this,[window.theme,jQuery]),function(){"use strict";if("object"==typeof window)if("IntersectionObserver"in window&&"IntersectionObserverEntry"in window&&"intersectionRatio"in window.IntersectionObserverEntry.prototype)"isIntersecting"in window.IntersectionObserverEntry.prototype||Object.defineProperty(window.IntersectionObserverEntry.prototype,"isIntersecting",{get:function(){return this.intersectionRatio>0}});else{var t=function(t){for(var e=window.document,i=n(e);i;)i=n(e=i.ownerDocument);return e}(),e=[],i=null,o=null;a.prototype.THROTTLE_TIMEOUT=100,a.prototype.POLL_INTERVAL=null,a.prototype.USE_MUTATION_OBSERVER=!0,a._setupCrossOriginUpdater=function(){return i||(i=function(t,i){o=t&&i?h(t,i):{top:0,bottom:0,left:0,right:0,width:0,height:0},e.forEach((function(t){t._checkForIntersections()}))}),i},a._resetCrossOriginUpdater=function(){i=null,o=null},a.prototype.observe=function(t){if(!this._observationTargets.some((function(e){return e.element==t}))){if(!t||1!=t.nodeType)throw new Error("target must be an Element");this._registerInstance(),this._observationTargets.push({element:t,entry:null}),this._monitorIntersections(t.ownerDocument),this._checkForIntersections()}},a.prototype.unobserve=function(t){this._observationTargets=this._observationTargets.filter((function(e){return e.element!=t})),this._unmonitorIntersections(t.ownerDocument),0==this._observationTargets.length&&this._unregisterInstance()},a.prototype.disconnect=function(){this._observationTargets=[],this._unmonitorAllIntersections(),this._unregisterInstance()},a.prototype.takeRecords=function(){var t=this._queuedEntries.slice();return this._queuedEntries=[],t},a.prototype._initThresholds=function(t){var e=t||[0];return Array.isArray(e)||(e=[e]),e.sort().filter((function(t,e,i){if("number"!=typeof t||isNaN(t)||t<0||t>1)throw new Error("threshold must be a number between 0 and 1 inclusively");return t!==i[e-1]}))},a.prototype._parseRootMargin=function(t){var e=(t||"0px").split(/\s+/).map((function(t){var e=/^(-?\d*\.?\d+)(px|%)$/.exec(t);if(!e)throw new Error("rootMargin must be specified in pixels or percent");return{value:parseFloat(e[1]),unit:e[2]}}));return e[1]=e[1]||e[0],e[2]=e[2]||e[0],e[3]=e[3]||e[1],e},a.prototype._monitorIntersections=function(e){var i=e.defaultView;if(i&&-1==this._monitoringDocuments.indexOf(e)){var o=this._checkForIntersections,s=null,a=null;this.POLL_INTERVAL?s=i.setInterval(o,this.POLL_INTERVAL):(r(i,"resize",o,!0),r(e,"scroll",o,!0),this.USE_MUTATION_OBSERVER&&"MutationObserver"in i&&(a=new i.MutationObserver(o)).observe(e,{attributes:!0,childList:!0,characterData:!0,subtree:!0})),this._monitoringDocuments.push(e),this._monitoringUnsubscribes.push((function(){var t=e.defaultView;t&&(s&&t.clearInterval(s),l(t,"resize",o,!0)),l(e,"scroll",o,!0),a&&a.disconnect()}));var d=this.root&&(this.root.ownerDocument||this.root)||t;if(e!=d){var c=n(e);c&&this._monitorIntersections(c.ownerDocument)}}},a.prototype._unmonitorIntersections=function(e){var i=this._monitoringDocuments.indexOf(e);if(-1!=i){var o=this.root&&(this.root.ownerDocument||this.root)||t;if(!this._observationTargets.some((function(t){var i=t.element.ownerDocument;if(i==e)return!0;for(;i&&i!=o;){var s=n(i);if((i=s&&s.ownerDocument)==e)return!0}return!1}))){var s=this._monitoringUnsubscribes[i];if(this._monitoringDocuments.splice(i,1),this._monitoringUnsubscribes.splice(i,1),s(),e!=o){var a=n(e);a&&this._unmonitorIntersections(a.ownerDocument)}}}},a.prototype._unmonitorAllIntersections=function(){var t=this._monitoringUnsubscribes.slice(0);this._monitoringDocuments.length=0,this._monitoringUnsubscribes.length=0;for(var e=0;e<t.length;e++)t[e]()},a.prototype._checkForIntersections=function(){if(this.root||!i||o){var t=this._rootIsInDom(),e=t?this._getRootRect():{top:0,bottom:0,left:0,right:0,width:0,height:0};this._observationTargets.forEach((function(o){var n=o.element,a=d(n),r=this._rootContainsTarget(n),l=o.entry,c=t&&r&&this._computeTargetAndRootIntersection(n,a,e),h=null;this._rootContainsTarget(n)?i&&!this.root||(h=e):h={top:0,bottom:0,left:0,right:0,width:0,height:0};var p=o.entry=new s({time:window.performance&&performance.now&&performance.now(),target:n,boundingClientRect:a,rootBounds:h,intersectionRect:c});l?t&&r?this._hasCrossedThreshold(l,p)&&this._queuedEntries.push(p):l&&l.isIntersecting&&this._queuedEntries.push(p):this._queuedEntries.push(p)}),this),this._queuedEntries.length&&this._callback(this.takeRecords(),this)}},a.prototype._computeTargetAndRootIntersection=function(e,n,s){if("none"!=window.getComputedStyle(e).display){for(var a,r,l,c,p,f,m,g,v=n,w=u(e),y=!1;!y&&w;){var _=null,b=1==w.nodeType?window.getComputedStyle(w):{};if("none"==b.display)return null;if(w==this.root||9==w.nodeType)if(y=!0,w==this.root||w==t)i&&!this.root?!o||0==o.width&&0==o.height?(w=null,_=null,v=null):_=o:_=s;else{var C=u(w),k=C&&d(C),x=C&&this._computeTargetAndRootIntersection(C,k,s);k&&x?(w=C,_=h(k,x)):(w=null,v=null)}else{var $=w.ownerDocument;w!=$.body&&w!=$.documentElement&&"visible"!=b.overflow&&(_=d(w))}if(_&&(a=_,r=v,void 0,void 0,void 0,void 0,void 0,void 0,l=Math.max(a.top,r.top),c=Math.min(a.bottom,r.bottom),p=Math.max(a.left,r.left),g=c-l,v=(m=(f=Math.min(a.right,r.right))-p)>=0&&g>=0&&{top:l,bottom:c,left:p,right:f,width:m,height:g}||null),!v)break;w=w&&u(w)}return v}},a.prototype._getRootRect=function(){var e;if(this.root&&!f(this.root))e=d(this.root);else{var i=f(this.root)?this.root:t,o=i.documentElement,n=i.body;e={top:0,left:0,right:o.clientWidth||n.clientWidth,width:o.clientWidth||n.clientWidth,bottom:o.clientHeight||n.clientHeight,height:o.clientHeight||n.clientHeight}}return this._expandRectByRootMargin(e)},a.prototype._expandRectByRootMargin=function(t){var e=this._rootMarginValues.map((function(e,i){return"px"==e.unit?e.value:e.value*(i%2?t.width:t.height)/100})),i={top:t.top-e[0],right:t.right+e[1],bottom:t.bottom+e[2],left:t.left-e[3]};return i.width=i.right-i.left,i.height=i.bottom-i.top,i},a.prototype._hasCrossedThreshold=function(t,e){var i=t&&t.isIntersecting?t.intersectionRatio||0:-1,o=e.isIntersecting?e.intersectionRatio||0:-1;if(i!==o)for(var n=0;n<this.thresholds.length;n++){var s=this.thresholds[n];if(s==i||s==o||s<i!=s<o)return!0}},a.prototype._rootIsInDom=function(){return!this.root||p(t,this.root)},a.prototype._rootContainsTarget=function(e){var i=this.root&&(this.root.ownerDocument||this.root)||t;return p(i,e)&&(!this.root||i==e.ownerDocument)},a.prototype._registerInstance=function(){e.indexOf(this)<0&&e.push(this)},a.prototype._unregisterInstance=function(){var t=e.indexOf(this);-1!=t&&e.splice(t,1)},window.IntersectionObserver=a,window.IntersectionObserverEntry=s}function n(t){try{return t.defaultView&&t.defaultView.frameElement||null}catch(t){return null}}function s(t){this.time=t.time,this.target=t.target,this.rootBounds=c(t.rootBounds),this.boundingClientRect=c(t.boundingClientRect),this.intersectionRect=c(t.intersectionRect||{top:0,bottom:0,left:0,right:0,width:0,height:0}),this.isIntersecting=!!t.intersectionRect;var e=this.boundingClientRect,i=e.width*e.height,o=this.intersectionRect,n=o.width*o.height;this.intersectionRatio=i?Number((n/i).toFixed(4)):this.isIntersecting?1:0}function a(t,e){var i,o,n,s=e||{};if("function"!=typeof t)throw new Error("callback must be a function");if(s.root&&1!=s.root.nodeType&&9!=s.root.nodeType)throw new Error("root must be a Document or Element");this._checkForIntersections=(i=this._checkForIntersections.bind(this),o=this.THROTTLE_TIMEOUT,n=null,function(){n||(n=setTimeout((function(){i(),n=null}),o))}),this._callback=t,this._observationTargets=[],this._queuedEntries=[],this._rootMarginValues=this._parseRootMargin(s.rootMargin),this.thresholds=this._initThresholds(s.threshold),this.root=s.root||null,this.rootMargin=this._rootMarginValues.map((function(t){return t.value+t.unit})).join(" "),this._monitoringDocuments=[],this._monitoringUnsubscribes=[]}function r(t,e,i,o){"function"==typeof t.addEventListener?t.addEventListener(e,i,o||!1):"function"==typeof t.attachEvent&&t.attachEvent("on"+e,i)}function l(t,e,i,o){"function"==typeof t.removeEventListener?t.removeEventListener(e,i,o||!1):"function"==typeof t.detatchEvent&&t.detatchEvent("on"+e,i)}function d(t){var e;try{e=t.getBoundingClientRect()}catch(t){}return e?(e.width&&e.height||(e={top:e.top,right:e.right,bottom:e.bottom,left:e.left,width:e.right-e.left,height:e.bottom-e.top}),e):{top:0,bottom:0,left:0,right:0,width:0,height:0}}function c(t){return!t||"x"in t?t:{top:t.top,y:t.top,bottom:t.bottom,left:t.left,x:t.left,right:t.right,width:t.width,height:t.height}}function h(t,e){var i=e.top-t.top,o=e.left-t.left;return{top:i,left:o,height:e.height,width:e.width,bottom:i+e.height,right:o+e.width}}function p(t,e){for(var i=e;i;){if(i==t)return!0;i=u(i)}return!1}function u(e){var i=e.parentNode;return 9==e.nodeType&&e!=t?n(e):(i&&i.assignedSlot&&(i=i.assignedSlot.parentNode),i&&11==i.nodeType&&i.host?i.host:i)}function f(t){return t&&9===t.nodeType}}(),function(t){"use strict";t.extend({browserSelector:function(){var e="ontouchstart"in window||navigator.msMaxTouchPoints,i=navigator.userAgent.toLowerCase(),o=function(t){return i.indexOf(t)>-1},n="gecko",s="webkit",a="safari",r="opera",l=document.documentElement,d=[!/opera|webtv/i.test(i)&&/msie\s(\d)/.test(i)?"ie ie"+parseFloat(navigator.appVersion.split("MSIE")[1]):o("firefox/2")?n+" ff2":o("firefox/3.5")?n+" ff3 ff3_5":o("firefox/3")?n+" ff3":o("gecko/")?n:o("opera")?r+(/version\/(\d+)/.test(i)?" "+r+RegExp.jQuery1:/opera(\s|\/)(\d+)/.test(i)?" "+r+RegExp.jQuery2:""):o("konqueror")?"konqueror":o("chrome")?s+" chrome":o("iron")?s+" iron":o("applewebkit/")?s+" "+a+(/version\/(\d+)/.test(i)?" "+a+RegExp.jQuery1:""):o("mozilla/")?n:"",o("j2me")?"mobile":o("iphone")?"iphone":o("ipod")?"ipod":o("mac")||o("darwin")?"mac":o("webtv")?"webtv":o("win")?"win":o("freebsd")?"freebsd":o("x11")||o("linux")?"linux":"","js"].join(" ");theme.is_device_mobile&&(d+=" mobile"),e&&(d+=" touch"),l.className+=" "+d,!window.ActiveXObject&&"ActiveXObject"in window&&t("html").removeClass("gecko").addClass("ie ie11")}}),t.browserSelector()}(jQuery),function(t,e){"use strict";t=t||{};var i="__accordion",o=function(t,e){return this.initialize(t,e)};o.defaults={},o.prototype={initialize:function(t,e){return t.data(i)||(this.$el=t,this.setData().setOptions(e).build()),this},setData:function(){return this.$el.data(i,this),this},setOptions:function(t){return this.options=e.extend(!0,{},o.defaults,t,{wrapper:this.$el}),this},build:function(){var t=function(t){e(t).each((function(){let t=e(this);t.addClass("show"),t.prev().find(".accordion-toggle").removeClass("collapsed").attr("aria-expanded",!0)}))},i=this.options.wrapper,o=i.find(".collapse"),n=i.data("collapsible"),s=i.data("active-tab");return o.length>0&&(i.data("use-accordion")&&"yes"==i.data("use-accordion")&&i.find(".collapse").attr("data-bs-parent","#"+i.attr("id")),"yes"==n?e.fn.collapse&&o.collapse({toggle:!1,parent:"#"+i.attr("id")}):!isNaN(s)&&s==parseInt(s)&&i.find(".collapse").length>=s?e.fn.collapse?(i.find(".collapse").collapse({toggle:!1,parent:"#"+i.attr("id")}),i.find(".collapse").eq(s-1).collapse("toggle")):t(i.find(".collapse").eq(s-1)):e.fn.collapse?i.find(".collapse").collapse({parent:"#"+i.attr("id")}):t(i.find(".collapse"))),this}},e.extend(t,{Accordion:o}),e.fn.themeAccordion=function(o){return this.map((function(){var n=e(this);return n.data(i)?n.data(i):new t.Accordion(n,o)}))}}.apply(this,[window.theme,jQuery]),function(t,e){"use strict";t=t||{};var i="__accordionMenu",o=function(t,e){return this.initialize(t,e)};o.defaults={},o.prototype={initialize:function(t,e){return t.data(i)||(this.$el=t,this.setData().setOptions(e).build()),this},setData:function(){return this.$el.data(i,this),this},setOptions:function(t){return this.options=e.extend(!0,{},o.defaults,t,{wrapper:this.$el}),this},build:function(){var t=this,i=this.options.wrapper;return i.find("li.menu-item.active").each((function(){var t=e(this);t.find("> .arrow").get(0)&&t.find("> .arrow").trigger("click")})),i.on("click",".arrow",(function(i){i.preventDefault(),i.stopPropagation();var o=e(this),n=o.closest("li");return void 0!==t.options.open_one?(n.siblings(".open").children(".arrow").next().hide(),n.siblings(".open").removeClass("open"),o.next().stop().toggle()):o.next().stop().slideToggle(),n.hasClass("open")?n.removeClass("open"):n.addClass("open"),o.closest(".header-side-nav .sidebar-menu").length&&e(".header-side-nav [data-plugin-sticky]").trigger("recalc.pin"),!1})),i.find(".menu-item-has-children").each((function(){var t=e(this);0==t.find(">.sub-menu > li:not(.hidden-item)").length&&t.addClass("hidden-item")})),this}},e.extend(t,{AccordionMenu:o}),e.fn.themeAccordionMenu=function(o){return this.map((function(){var n=e(this);return n.data(i)?n.data(i):new t.AccordionMenu(n,o)}))}}.apply(this,[window.theme,jQuery]),function(t,e){"use strict";t=t||{};var i="__flickrZoom",o=function(t,e){return this.initialize(t,e)};o.defaults={},o.prototype={initialize:function(t,e){return t.data(i)||(this.$el=t,this.setData().setOptions(e).build()),this},setData:function(){return this.$el.data(i,this),this},setOptions:function(t){return this.options=e.extend(!0,{},o.defaults,t,{wrapper:this.$el}),this},build:function(){var i=this.options.wrapper,o=[],n=0,s=i.find(".flickr_badge_image > a");return s.each((function(){var t={},i=e(this).find("> img");t.src=i.attr("src").replace("_s.","_b."),t.title=i.attr("title"),o[n]=t,n++})),s.on("click",(function(i){i.preventDefault(),e.fn.magnificPopup&&(e.magnificPopup.close(),e.magnificPopup.open(e.extend(!0,{},t.mfpConfig,{items:o,gallery:{enabled:!0},type:"image"}),s.index(e(this))))})),this}},e.extend(t,{FlickrZoom:o}),e.fn.themeFlickrZoom=function(o){return this.map((function(){var n=e(this);return n.data(i)?n.data(i):new t.FlickrZoom(n,o)}))}}.apply(this,[window.theme,jQuery]),function(t,e){"use strict";t=t||{};var i="__lazyload",o=function(t,e){return this.initialize(t,e)};o.defaults={effect:"show",appearEffect:"",appear:function(t,e){},load:function(t,i){e(this).addClass("lazy-load-loaded")}},o.prototype={initialize:function(t,i){if(!t.length)return this;if(!e.fn.lazyload)return this;var n=e.extend(!0,{},o.defaults,i,{});return lazyload(t,n)}},e.extend(t,{PluginLazyLoad:o}),e.fn.themePluginLazyLoad=function(t){var n=e(this);if(n.data(i))return this;var s=new o(e.makeArray(this),t);return n.data(i,s),this}}.apply(this,[window.theme,jQuery]),function(t,e){"use strict";var i="__masonry",o=function(t,e){return this.initialize(t,e)};o.defaults={itemSelector:"li",isOriginLeft:!(t=t||{}).rtl},o.prototype={initialize:function(t,e){return t.data(i)||(this.$el=t,this.setData().setOptions(e).build()),this},setData:function(){return this.$el.data(i,this),this},setOptions:function(t){return this.options=e.extend(!0,{},o.defaults,t,{wrapper:this.$el}),this},build:function(){if(!e.fn.isotope)return this;var t=this,i=this.options.wrapper;return i.isotope(this.options),i.isotope("on","layoutComplete",(function(){"function"==typeof this.options.callback&&this.options.callback.call(),i.find(".porto-lazyload:not(.lazy-load-loaded):visible").length&&e(window).trigger("scroll")})),i.isotope("layout"),t.resize(),e(window).smartresize((function(){t.resize()})),this},resize:function(){var e=this,i=this.options.wrapper;e.resizeTimer&&t.deleteTimeout(e.resizeTimer),e.resizeTimer=t.requestTimeout((function(){i.data("isotope")&&i.isotope("layout"),delete e.resizeTimer}),600)}},e.extend(t,{Masonry:o}),e.fn.themeMasonry=function(o){return this.map((function(){var n=e(this);imagesLoaded(this,(function(){return n.data(i)?n.data(i):new t.Masonry(n,o)}))}))}}.apply(this,[window.theme,jQuery]),function(t,e){"use strict";t=t||{};var i="__toggle",o=function(t,e){return this.initialize(t,e)};o.defaults={},o.prototype={initialize:function(t,e){return t.data(i)||(this.$el=t,this.setData().setOptions(e).build()),this},setData:function(){return this.$el.data(i,this),this},setOptions:function(t){return this.options=e.extend(!0,{},o.defaults,t,{wrapper:this.$el}),this},build:function(){var i=this.options.wrapper;return i.hasClass("active")&&i.find("> div.toggle-content").stop().slideDown(350,(function(){e(this).attr("style","").show()})),i.on("click","> label",(function(i){var o=e(this).parent(),n=e(this).closest("div.toogle"),s=e(this).closest(".porto-toggles"),a=n.hasClass("toogle-accordion"),r=o.find("> div.toggle-content");a&&void 0!==i.originalEvent&&n.find("section.toggle.active > label").trigger("click"),o.hasClass("active")?s.length&&"one-toggle"==s.data("view")||(r.stop().slideUp(350,(function(){e(this).attr("style","").hide()})),o.removeClass("active")):(s.length&&"one-toggle"==s.data("view")&&s.find(".toggle").each((function(){e(this).removeClass("active"),e(this).find("> div.toggle-content").stop().slideUp(350,(function(){e(this).attr("style","").hide()}))})),r.stop().slideDown(350,(function(){e(this).attr("style","").show(),t.refreshVCContent(r)})),o.addClass("active"))})),this}},e.extend(t,{Toggle:o}),e.fn.themeToggle=function(o){return this.map((function(){var n=e(this);return n.data(i)?n.data(i):new t.Toggle(n,o)}))}}.apply(this,[window.theme,jQuery]),function(t,e){"use strict";e.fn.themePin=function(i){var o=0,n=0,s=[],a=!1,r=e(window),l=[],d=[],c=[];i=i||{};var h=function(){for(var o=0,n=s.length;o<n;o++){var l=s[o];if(i.minWidth&&window.innerWidth<i.minWidth)l.parent().hasClass("pin-wrapper")&&(i.hasWrap?l.parent().css("height",""):l.unwrap()),l.css({width:"",left:"",top:"",position:""}),i.activeClass&&l.removeClass(i.activeClass),l.removeClass("sticky-transition"),l.removeClass("sticky-absolute"),a=!0;else{a=!1;var d=i.containerSelector?l.closest(i.containerSelector).length?l.closest(i.containerSelector):e(i.containerSelector):e(document.body),c=l.offset();i.hasWrap&&d.height()<l.closest(".pin-wrapper").outerHeight()&&(d=l.closest(".pin-wrapper"));var h=d.offset();if(void 0!==h){var p=l.parent().offset();if(!l.parent().hasClass("pin-wrapper")&&(l.wrap("<div class='pin-wrapper'>"),l.hasClass("elementor-element-populated"))){var u=l.closest(".elementor-container");if(u.length){var f=u.attr("class").match(/elementor-column-gap-([a-z]*)/g);if(f&&f.length){var m=f[0].replace("elementor-column-gap-","");l.addClass("porto-gap-"+m)}}}var g=e.extend({top:0,bottom:0},i.padding||{}),v=l.parent(),w=parseInt(v.parent().css("padding-top")),y=parseInt(v.parent().css("padding-bottom"));i.autoInit&&(e("#header").hasClass("header-side")?g.top=t.adminBarHeight():(g.top=t.adminBarHeight(),!e("#header > .main-menu-wrap").length&&e("#header").hasClass("sticky-menu-header")||(g.top+=t.StickyHeader.sticky_height?t.StickyHeader.sticky_height:0)),void 0!==i.paddingOffsetTop?g.top+=parseInt(i.paddingOffsetTop,10):g.top+=18,void 0!==i.paddingOffsetBottom?g.bottom=parseInt(i.paddingOffsetBottom,10):g.bottom=0);var _=l.css("border-bottom"),b=l.outerHeight();l.css("border-bottom","1px solid transparent");var C=l.outerHeight()-b-1;l.css("border-bottom",_),l.css({width:l.outerWidth()<=v.width()?l.outerWidth():v.width()}),v.css("height",l.outerHeight()+C),!i.autoFit&&!i.fitToBottom||l.outerHeight()<=r.height()?l.data("themePin",{pad:g,from:(i.containerSelector?h.top:c.top)-g.top+w,pb:y,parentTop:p.top-w,offset:C,stickyOffset:i.stickyOffset?i.stickyOffset:0}):l.data("themePin",{pad:g,fromFitTop:(i.containerSelector?h.top:c.top)-g.top+w,from:(i.containerSelector?h.top:c.top)+l.outerHeight()-window.innerHeight+w,pb:y,parentTop:p.top-w,offset:C,stickyOffset:i.stickyOffset?i.stickyOffset:0})}}}},p=function(){if(!a){o=r.scrollTop();for(var t=window.innerHeight||r.height(),h=0,p=s.length;h<p;h++){var u,f=e(s[h]),m=f.data("themePin");let a=f.closest(".porto-products-filter-body"),r=f.closest(".sidebar");if((!(a.length&&r.length&&e.contains(a[0],r[0]))||a.hasClass("opened"))&&(m&&void 0!==m.pad)){var g=i.containerSelector?f.closest(i.containerSelector).length?f.closest(i.containerSelector):e(i.containerSelector):e(document.body),v=!i.autoFit&&!i.fitToBottom||f.outerHeight()+m.pad.top<=t;if(i.hasWrap&&g.height()<f.closest(".pin-wrapper").outerHeight()&&(g=f.closest(".pin-wrapper")),m.end=g.offset().top+g.height(),v?m.to=g.offset().top+g.height()-f.outerHeight()-m.pad.bottom-m.pb:(m.to=g.offset().top+g.height()-t-m.pb,m.to2=g.height()-f.outerHeight()-m.pad.bottom-m.pb),0===c[h]&&(c[h]=m.to),v){var w,y=m.from-m.pad.bottom,_=m.to-m.pad.top-m.offset,b=f.closest(".sticky-nav-wrapper");if(b.length&&(w=b.offset().top-m.pad.top)>y&&(y=w),void 0!==m.fromFitTop&&m.fromFitTop&&(y=m.fromFitTop-m.pad.bottom),y+f.outerHeight()>m.end||y>=_){f.css({position:"",top:"",left:""}),i.activeClass&&f.removeClass(i.activeClass),f.removeClass("sticky-transition"),f.removeClass("sticky-absolute");continue}o>y+m.stickyOffset&&o<_?("fixed"!=f.css("position")&&f.css({left:f.offset().left,top:m.pad.top}).css("position","fixed"),i.activeClass&&f.addClass(i.activeClass),f.removeClass("sticky-transition"),f.removeClass("sticky-absolute")):o>=_?(f.css({left:"",top:_-m.parentTop+m.pad.top}).css("position","absolute"),i.activeClass&&f.addClass(i.activeClass),f.hasClass("sticky-absolute")&&f.addClass("sticky-transition"),f.addClass("sticky-absolute")):(f.css({position:"",top:"",left:""}),i.activeClass&&f.removeClass(i.activeClass),f.removeClass("sticky-transition"),f.removeClass("sticky-absolute"))}else if(i.fitToBottom){y=m.from,_=m.to;if(m.from+t>m.end||m.from>=_){f.css({position:"",top:"",bottom:"",left:""}),i.activeClass&&f.removeClass(i.activeClass),f.removeClass("sticky-transition"),f.removeClass("sticky-absolute");continue}o>y&&o<_?("fixed"!=f.css("position")&&f.css({left:f.offset().left,bottom:m.pad.bottom,top:""}).css("position","fixed"),i.activeClass&&f.addClass(i.activeClass),f.removeClass("sticky-transition"),f.removeClass("sticky-absolute")):o>=_?(f.css({left:"",top:m.to2,bottom:""}).css("position","absolute"),i.activeClass&&f.addClass(i.activeClass),f.hasClass("sticky-absolute")&&f.addClass("sticky-transition"),f.addClass("sticky-absolute")):(f.css({position:"",top:"",bottom:"",left:""}),i.activeClass&&f.removeClass(i.activeClass),f.removeClass("sticky-transition"),f.removeClass("sticky-absolute"))}else{var C=f.outerHeight();if(c[h]!=m.to&&d[h]&&C+f.offset().top+m.pad.bottom<o+t&&(d[h]=!1),C+m.pad.top+m.pad.bottom>t||l[h]||d[h]){var k=parseInt(f.parent().parent().css("padding-top"));o+m.pad.top-k<=m.parentTop?(f.css({position:"",top:"",bottom:"",left:""}),l[h]=d[h]=!1,i.activeClass&&f.removeClass(i.activeClass)):o>=m.to?(f.css({left:"",top:m.to2,bottom:""}).css("position","absolute"),i.activeClass&&f.addClass(i.activeClass)):o>=n?l[h]?(l[h]=!1,u=f.offset().top-m.parentTop,f.css({left:"",top:u,bottom:""}).css("position","absolute"),i.activeClass&&f.addClass(i.activeClass)):!d[h]&&C+f.offset().top+m.pad.bottom<o+t&&(d[h]=!0,"fixed"!=f.css("position")&&f.css({left:f.offset().left,bottom:m.pad.bottom,top:""}).css("position","fixed"),i.activeClass&&f.addClass(i.activeClass)):o<n&&(d[h]?(d[h]=!1,u=f.offset().top-m.parentTop,f.css({left:"",top:u,bottom:""}).css("position","absolute"),i.activeClass&&f.addClass(i.activeClass)):!l[h]&&f.offset().top>=o+m.pad.top?(l[h]=!0,"fixed"!=f.css("position")&&f.css({left:f.offset().left,top:m.pad.top,bottom:""}).css("position","fixed"),i.activeClass&&f.addClass(i.activeClass)):!d[h]&&l[h]&&"absolute"==f.css("position")&&f.offset().top>=o+m.pad.top&&(l[h]=!1))}else o>=m.parentTop-m.pad.top?f.css({position:"fixed",top:m.pad.top}):(f.css({position:"",top:"",bottom:"",left:""}),i.activeClass&&f.removeClass(i.activeClass)),l[h]=d[h]=!1}c[h]=m.to}}n=o}},u=function(){h(),p()},f=null;return this.each((function(){var i=e(this),o=i.data("themePin")||{};o&&o.update||(s.push(i),e("img",this).one("load",(function(){f&&t.deleteTimeout(f),f=t.requestFrame(h)})),o.update=u,i.data("themePin",o),l.push(!1),d.push(!1),c.push(0))})),window.addEventListener("touchmove",p,{passive:!0}),window.addEventListener("scroll",p,{passive:!0}),h(),t.isLoaded?u():r.on("load",u),e(this).on("recalc.pin",(function(){h(),p()})),this},t=t||{};var i="__sticky",o=function(t,e){return this.initialize(t,e)};o.defaults={autoInit:!1,minWidth:767,activeClass:"sticky-active",padding:{top:0,bottom:0},offsetTop:0,offsetBottom:0,autoFit:!1,fitToBottom:!1,stickyOffset:0},o.prototype={initialize:function(t,e){return t.data(i)||(this.$el=t,this.setData().setOptions(e).build()),this},setData:function(){return this.$el.data(i,this),this},setOptions:function(t){return this.options=e.extend(!0,{},o.defaults,t,{wrapper:this.$el}),this},build:function(){if(!e.fn.themePin)return this;var i,o=this,n=this.options.wrapper;if(n.hasClass("porto-sticky-nav")){this.options.padding.top=t.StickyHeader.sticky_height+t.adminBarHeight(),this.options.activeClass="sticky-active",this.options.containerSelector=".main-content-wrap",t.sticky_nav_height=n.outerHeight(),this.options.minWidth>window.innerWidth&&(t.sticky_nav_height=0);var s=e(".porto-scroll-progress.fixed-top:not(.fixed-under-header)");if(s.length){var a=!1;s.is(":hidden")&&(s.show(),a=!0),a&&s.hide()}var r=t.adminBarHeight()+t.StickyHeader.sticky_height-1,l=r>100?r:100;this.options.stickyOffset=t.sticky_nav_height+l;var d=function(){var i=n.data("prev-pos")?n.data("prev-pos"):0,o=0,s=n.outerHeight()+parseInt(n.css("margin-bottom")),a=e(window).scrollTop();e(".page-wrapper").hasClass("sticky-scroll-up")&&(a>=i?n.addClass("scroll-down"):n.removeClass("scroll-down"),o=-t.StickyHeader.sticky_height,void 0===t.StickyHeader.sticky_height?n.data("prev-pos",0):(n.parent().offset().top+s+l<a+r+o?n.addClass("sticky-ready"):n.removeClass("sticky-ready"),n.data("prev-pos",a)))};this.options.minWidth<=window.innerWidth&&(window.removeEventListener("scroll",d),window.addEventListener("scroll",d,{passive:!0}),d())}return n.themePin(this.options),e(window).smartresize((function(){i&&clearTimeout(i),i=setTimeout((function(){n.trigger("recalc.pin")}),800);var e=n.parent();n.outerWidth(e.width()),"fixed"==n.css("position")&&n.css("left",e.offset().left),n.hasClass("porto-sticky-nav")&&(t.sticky_nav_height=n.outerHeight(),o.options.minWidth>window.innerWidth&&(t.sticky_nav_height=0))})),this}},e.extend(t,{Sticky:o}),e.fn.themeSticky=function(o){return this.map((function(){var n=e(this);return n.data(i)?(n.trigger("recalc.pin"),setTimeout((function(){n.trigger("recalc.pin")}),800),n.data(i)):new t.Sticky(n,o)}))}}.apply(this,[window.theme,jQuery]),function(t,e){"use strict";e((function(){e(document.body).on("click",".mobile-toggle",(function(i){var o=e("#nav-panel");if(o.length>0){if(e(this).closest(".header-main").length&&o.closest(".header-builder-p").length&&!o.parent(".header-main").length?o.appendTo(e(this).closest(".header-main")):e(this).closest(".header-main").length&&o.closest(".wp-block-template-part").length&&o.insertAfter(e(this).closest(".header-main")),o.is(":visible")&&e("#header").hasClass("sticky-header")){var n=e("#header").height(),s=o.outerHeight();n>s+30&&e("#header").css("height",n-s)}o.stop().slideToggle()}else e("#side-nav-panel").length>0&&(e("html").toggleClass("panel-opened"),e(".panel-overlay").toggleClass("active"),e("#side-nav-panel").hasClass("panel-right")&&e("html").addClass("panel-right-opened"));e("#nav-panel .skeleton-body, #side-nav-panel .skeleton-body").length&&t.lazyload_menu(1,"mobile_menu"),i.preventDefault()})),e(document.body).on("click",".panel-overlay",(function(){e("html").css("transition","margin .3s").removeClass("panel-opened").removeClass("panel-right-opened"),t.requestTimeout((function(){e("html").css("transition","")}),260),e(this).removeClass("active")})),e(document.body).on("click",".side-nav-panel-close",(function(t){t.preventDefault(),e(".panel-overlay").trigger("click")})),e(document.body).on("click","#side-nav-panel .mobile-tab-items .nav-item",(function(t){t.preventDefault();var i=e(this),o=i.attr("pane-id"),n=i.closest(".mobile-tabs");o&&(n.find(".active").removeClass("active"),i.addClass("active"),n.find('.mobile-tab-content [tab-id="'+o+'"]').addClass("active"))})),e(window).on("resize",(function(){window.innerWidth>991&&(e("#nav-panel").hide(),e("html").hasClass("panel-opened")&&e(".panel-overlay").trigger("click"))}))}))}.apply(this,[window.theme,jQuery]);var scrolltotop={setting:{startline:100,scrollto:0,scrollduration:1e3,fadeduration:[500,100]},controlHTML:'<img src="assets/img/up.png" style="width:40px; height:40px" />',controlattrs:{offsetx:10,offsety:10},anchorkeyword:"#top",state:{isvisible:!1,shouldvisible:!1},scrollup:function(){this.cssfixedsupport||this.$control.css({opacity:0});var t=isNaN(this.setting.scrollto)?this.setting.scrollto:parseInt(this.setting.scrollto);t="string"==typeof t&&1==jQuery("#"+t).length?jQuery("#"+t).offset().top:0,this.$body.stop().animate({scrollTop:t},this.setting.scrollduration)},keepfixed:function(){var t=jQuery(window),e=t.scrollLeft()+t.width()-this.$control.width()-this.controlattrs.offsetx,i=t.scrollTop()+t.height()-this.$control.height()-this.controlattrs.offsety;this.$control.css({left:e+"px",top:i+"px"})},togglecontrol:function(){var t=jQuery(window).scrollTop();this.cssfixedsupport||this.keepfixed(),this.state.shouldvisible=t>=this.setting.startline,this.state.shouldvisible&&!this.state.isvisible?(this.$control.stop().animate({opacity:1},this.setting.fadeduration[0]),this.state.isvisible=!0):0==this.state.shouldvisible&&this.state.isvisible&&(this.$control.stop().animate({opacity:0},this.setting.fadeduration[1]),this.state.isvisible=!1)},init:function(){jQuery(document).ready((function(t){var e=scrolltotop,i=document.all;e.cssfixedsupport=!i||i&&"CSS1Compat"==document.compatMode&&window.XMLHttpRequest,e.$body=window.opera?"CSS1Compat"==document.compatMode?t("html"):t("body"):t("html,body"),e.$control=t('<div id="topcontrol">'+e.controlHTML+"</div>").css({position:e.cssfixedsupport?"fixed":"absolute",bottom:e.controlattrs.offsety,opacity:0,cursor:"pointer"}).attr({title:""}).on("click",(function(){return e.scrollup(),!1})).appendTo("body"),document.all&&!window.XMLHttpRequest&&""!=e.$control.text()&&e.$control.css({width:e.$control.width()}),e.togglecontrol(),t('a[href="'+e.anchorkeyword+'"]').on("click",(function(){return e.scrollup(),!1})),t(window).on("scroll resize",(function(t){e.togglecontrol()}))}))}};function porto_init(t){"use strict";jQuery(window).on("touchstart",(function(){})),t||(t=jQuery(document.body));var e=t.get(0);t.trigger("porto_init_start",[e]),function(i){(i.fn.themeAccordion&&i((function(){t.find(".accordion:not(.manual)").each((function(){var t,e=i(this),o=e.data("plugin-options");o&&(t=o),e.themeAccordion(t)}))})),i.fn.themeAccordionMenu&&i((function(){t.find(".accordion-menu:not(.manual)").each((function(){var t,e=i(this),o=e.data("plugin-options");o&&(t=o),e.themeAccordionMenu(t)}))})),i.fn.themeFlickrZoom&&i((function(){t.find(".wpb_flickr_widget:not(.manual)").each((function(){var t,e=i(this),o=e.data("plugin-options");o&&(t=o),e.themeFlickrZoom(t)}))})),i.fn.themePluginLazyLoad&&i((function(){t.find("[data-plugin-lazyload]:not(.manual)").each((function(){var t,e=i(this),o=e.data("plugin-options");o&&(t=o),e.themePluginLazyLoad(t)})),t.find(".porto-lazyload").length&&(t.find(".porto-lazyload").filter((function(){return!(i(this).data("__lazyload")||i(this).closest(".owl-carousel").length&&i(this).closest(".owl-carousel").find(".owl-item.cloned").length)})).themePluginLazyLoad({effect:"fadeIn",effect_speed:400}),t.find(".porto-lazyload").closest(".nivoSlider").length&&theme.requestTimeout((function(){t.find(".nivoSlider").each((function(){i(this).find(".porto-lazyload").length&&i(this).closest(".nivoSlider").find(".nivo-main-image").attr("src",i(this).closest(".nivoSlider").find(".porto-lazyload").eq(0).attr("src"))}))}),100),t.find(".porto-lazyload").closest(".porto-carousel-wrapper").length&&theme.requestTimeout((function(){t.find(".porto-carousel-wrapper").each((function(){i(this).find(".porto-lazyload:not(.lazy-load-loaded)").length&&i(this).find(".slick-list").css("height","auto")}))}),100))})),i.fn.themeMasonry&&i((function(){t.find("[data-plugin-masonry]:not(.manual)").each((function(){var t,e=i(this);e.hasClass("elementor-row")&&e.children(".elementor-column").addClass("porto-grid-item");var o=e.data("plugin-options");o&&(t=o),e.themeMasonry(t)})),t.find(".posts-masonry .posts-container:not(.manual)").each((function(){var t=i(this).data("plugin-options");t||(t={}),t.itemSelector=".post",i(this).themeMasonry(t)})),t.find(".page-portfolios .portfolio-row:not(.manual)").each((function(){if(!(i(this).closest(".porto-grid-container").length>0||void 0!==i(this).attr("data-plugin-masonry"))){var t,e=i(this).parent(),o="masonry",n=".portfolio:not(.w2)",s=null;e.hasClass("portfolios-grid")||e.hasClass("portfolios-masonry")&&(e.children(".bounce-loader").length||e.append('<div class="bounce-loader"><div class="bounce1"></div><div class="bounce2"></div><div class="bounce3"></div></div>')),t={itemSelector:".portfolio",layoutMode:o,callback:function(){s&&clearTimeout(s),s=setTimeout((function(){void 0!==theme.FilterZoom&&theme.FilterZoom.initialize(i(".page-portfolios")),e.addClass("portfolio-iso-active")}),400)}},e.find(".portfolio:not(.w2)").length||(n=".portfolio"),t=i.extend(!0,{},t,{masonry:{columnWidth:n}}),i(this).themeMasonry(t)}})),t.find(".page-members .member-row:not(.manual)").each((function(){i(this).themeMasonry({itemSelector:".member",callback:function(){setTimeout((function(){void 0!==theme.FilterZoom&&theme.FilterZoom.initialize(i(".page-members"))}),400)}})}))})),i.fn.themeToggle&&i((function(){t.find("section.toggle:not(.manual)").each((function(){var t,e=i(this),o=e.data("plugin-options");o&&(t=o),e.themeToggle(t)}))})),i.fn.themeSticky&&i((function(){t.find("[data-plugin-sticky]:not(.manual), .porto-sticky:not(.manual), .porto-sticky-nav:not(.manual)").each((function(){var t,e=i(this),o=e.data("plugin-options");o&&(t=o),e.is(":visible")&&e.themeSticky(t)}))})),i.fn.themePluginFloatElement&&i((function(){t.find("[data-plugin-float-element]:not(.manual)").each((function(){var t,e=i(this),o=theme.getOptions(e.data("plugin-options"));o&&(t=o),e.themePluginFloatElement(t)}))})),"undefined"!=typeof bootstrap&&void 0!==e)&&[].slice.call(e.querySelectorAll("[data-bs-tooltip]:not(.manual), [data-toggle='tooltip']:not(.manual), .star-rating:not(.manual)")).map((function(t){return new bootstrap.Tooltip(t)}));t.find('a[data-bs-toggle="tab"]').off("shown.bs.tab").on("shown.bs.tab",(function(t){if(i(this).parents(".nav-tabs").find(".active").removeClass("active"),i(this).addClass("active").parent().addClass("active"),i(this).closest(".tabs")){var e=i(this).closest(".tabs").find(".tab-content>.active").find(".owl-carousel");e.data("owl.carousel")||e.themeCarousel(e.data("plugin-options"))}})),"function"==typeof theme.initAsync?theme.initAsync(t,e):i(document.body).on("porto_async_init",(function(){theme.initAsync(t,e)}))}(jQuery),jQuery(document.body).trigger("porto_init",[t])}(function(t,e){"use strict";t=t||{},e.extend(t,{ScrollToTop:{defaults:{html:'<i class="fas fa-chevron-up"></i>',offsetx:10,offsety:0},initialize:function(t,i,o){return e("#topcontrol").length||(this.html=t||this.defaults.html,this.offsetx=i||this.defaults.offsetx,this.offsety=o||this.defaults.offsety,this.build()),this},build:function(){var t=this;return void 0!==scrolltotop&&(scrolltotop.controlHTML=t.html,scrolltotop.controlattrs={offsetx:t.offsetx,offsety:t.offsety},scrolltotop.init()),t}}})}).apply(this,[window.theme,jQuery]),function(t,e){"use strict";t=t||{},e.extend(t,{MegaMenu:{defaults:{menu:e(".mega-menu")},initialize:function(t){return this.$menu=t||this.defaults.menu,this.events(),this},popupWidth:function(){var i=window.innerWidth,o=t.bodyWidth-2*t.grid_gutter_width;return e("body").hasClass("wide")||(i>=1140+t.grid_gutter_width&&i<=t.container_width+2*t.grid_gutter_width-1&&t.container_width>=1360?o=1140-t.grid_gutter_width:i>=t.container_width+t.grid_gutter_width-1?o=t.container_width-t.grid_gutter_width:i>=992?o=960-t.grid_gutter_width:i>=768&&(o=720-t.grid_gutter_width)),o},calcMenuPosition:function(t,i){var o,n=t,s=o=e(n).closest(".elementor-top-section").length?e(n).closest(".elementor-top-section"):e(n).closest(".e-con.e-parent").length?e(n).closest(".e-con.e-parent"):e(n).closest(".e-con").length?e(n).closest(".e-con"):e(n).closest(".header-main").length?e(n).closest(".header-main"):e(n).closest(".main-menu-wrap").length?e(n).closest(".main-menu-wrap"):e(n).closest(".header-top").length?e(n).closest(".header-top"):e(n).closest(".header-bottom").length?e(n).closest(".header-bottom"):e(n).closest(".top-row"),a=0;if(o.children(".elementor-container").length?s=o.children(".elementor-container"):o.find(".container-fluid").length?s=o.find(".container-fluid"):o.find(".container").length?s=o.find(".container"):o.find(".e-con-inner").length?s=o.find(".e-con-inner"):o.find(".vc_column_container").length&&(a=2*parseInt(o.find(".vc_column_container").css("padding-left"))),s.length>=1){var r=!1;s.each((function(){var t=e(this);t.find(n).length&&!r&&(s=t,r=!0)})),r||(s=o)}if(s.length){var l=s.outerWidth()-parseInt(s.css("padding-left"))-parseInt(s.css("padding-right"))-a;if(!(l<900)){n.parent().hasClass("pos-fullwidth")&&(n.get(0).style.width=l+"px");var d=document.body.offsetWidth,c=n.offset().left-(d-l)/2,h=!1;if("center"==i)(u=l-(c+n.width()))<=0?h=u:c<=0&&(h=-c);else if("justify"==i){window.theme.rtl&&(c=d-(n.offset().left+n.outerWidth())-(d-l)/2);var p=n.width();c>(u=l-(c+p))&&c<p&&(h=(c+u)/3),u<=0&&(h=-u)}else if(!1!==i){var u;(u=l-(c+n.width()))<=0&&(h=-u)}else c<=0&&(h=-c);return h}}},build:function(i){var o=this;return i||(i=o.$menu),i.each((function(){var i=e(this),n=(i.closest(".container"),o.popupWidth());if(i.closest(".porto-popup-menu").length)return!1;i.children("li.has-sub").each((function(){var i=e(this),s=i.children(".popup");if(s.length){var a=s.get(0);if(a.style.display="block",i.hasClass("wide")){a.style.left=0;var r=parseInt(s.css("padding-left"))+parseInt(s.css("padding-right"))+parseInt(s.find("> .inner").css("padding-left"))+parseInt(s.find("> .inner").css("padding-right")),l=4;i.hasClass("col-1")&&(l=1),i.hasClass("col-2")&&(l=2),i.hasClass("col-3")&&(l=3),i.hasClass("col-4")&&(l=4),i.hasClass("col-5")&&(l=5),i.hasClass("col-6")&&(l=6),window.innerWidth<992&&(l=1);var d=0;s.find("> .inner > ul > li").each((function(){var t=parseFloat(e(this).attr("data-cols"));(t<=0||!t)&&(t=1),t>l&&(t=l),d+=t})),d>l&&(d=l);var c=s.data("popup-mw")?s.data("popup-mw"):s.find(".inner").css("max-width"),h=n/l;if("none"!==c&&parseInt(c)<n&&(h=parseInt(c)/l),s.find("> .inner > ul > li").each((function(){var t=parseFloat(e(this).data("cols"));t<=0&&(t=1),t>l&&(t=l),i.hasClass("pos-center")||i.hasClass("pos-left")||i.hasClass("pos-right")?this.style.width=100/d*t+"%":this.style.width=100/l*t+"%"})),i.hasClass("pos-center")){var p=h*d-r;s.find("> .inner > ul").get(0).style.width=p+"px";var u=(i.outerWidth()-p)/2;a.style.left=u+"px",a.style.right="auto",o.SetMenuPosition(a,s,"center",u)}else i.hasClass("pos-left")?(s.find("> .inner > ul").get(0).style.width=h*d-r+"px",a.style.left="0",a.style.right="auto",o.SetMenuPosition(a,s)):i.hasClass("pos-right")?(s.find("> .inner > ul").get(0).style.width=h*d-r+"px",a.style.right="0",a.style.left="auto",o.SetMenuPosition(a,s,!1)):i.hasClass("pos-fullwidth")?(a.style.right="auto",a.style.left="0",o.SetMenuPosition(a,s)):(s.find("> .inner > ul").get(0).style.width=n-r+"px",t.rtl?(a.style.right="0",a.style.left="auto"):(a.style.left="0",a.style.right="auto"),o.SetMenuPosition(a,s,"justify"))}else if(i.hasClass("pos-left"))s.offset().left+s.width()>window.innerWidth&&i.removeClass("pos-left").addClass("pos-right");else if(i.hasClass("pos-right"))s.offset().left<0&&i.removeClass("pos-right").addClass("pos-left");else if(s.offset().left+s.width()>window.innerWidth)i.addClass("pos-right");else if(s.find("> .inner > ul").length){var f=s.find("> .inner > ul").eq(0);f.offset().left+f.width()+200>window.innerWidth&&f.addClass("pos-left")}i.addClass("sub-ready")}}))})),o},SetMenuPosition:function(i,o,n=!0,s=0){setTimeout((()=>{var a=this.calcMenuPosition(o,n);0!==a&&("center"==n?!1!==a&&(i.style.left=s+a+"px",i.style.right="auto"):"justify"==n?t.rtl?(i.style.left="auto",a?i.style.right="-"+a+"px":e("body").hasClass("wide")?i.style.right="0":i.style.right="-15px"):(i.style.right="auto",a?i.style.left="-"+a+"px":e("body").hasClass("wide")?i.style.left="0":i.style.left="-15px"):n?(i.style.right="auto",!1!==a?i.style.left="-"+a+"px":e("body").hasClass("wide")?i.style.left="0":i.style.left="-15px"):(i.style.left="auto",!1!==a?i.style.right="-"+a+"px":e("body").hasClass("wide")?i.style.right="0":i.style.right="-15px"))}))},events:function(){var i=this;return e(window).smartresize((function(t){t.originalEvent&&i.build()})),t.isLoaded?t.requestFrame((function(){i.build()})):e(window).on("load",(function(){t.requestFrame((function(){i.build()}))})),i.$menu.length&&i.$menu.on("mouseenter",".menu-item.has-sub",(function(t){var i=e(t.currentTarget).find(">.popup");0!=i.find(".owl-carousel:not(.owl-loaded)").length&&i.find(".owl-carousel:not(.owl-loaded)").each((function(){var t,i=e(this);if(!i.hasClass("owl-loaded")){var o=i.data("plugin-options");o&&(t=o),e.fn.themeCarousel&&i.themeCarousel(t)}}))})),i}}})}.apply(this,[window.theme,jQuery]),function(t,e){"use strict";t=t||{},e.extend(t,{StickyHeader:{defaults:{header:e("#header")},initialize:function(i){if(this.$header=i||this.defaults.header,this.sticky_height=0,this.sticky_pos=0,this.change_logo=t.change_logo,!t.show_sticky_header||!this.$header.length||e(".side-header-narrow-bar").length)return this;var o=this,n=o.$header.find("> .main-menu-wrap");return n.length?(o.$menu_wrap=n,o.menu_height=n.height()):o.$menu_wrap=!1,o.$header_main=o.$header.find(".header-main"),o.$header_main.length>1&&(o.$header_main=e(o.$header_main[0])),!o.$header_main.length&&o.$header.children(".elementor-location-header").length&&(o.$header_main=o.$header.children(".elementor-location-header").last().addClass("header-main")),o.$header_main.length?(o.reveal=o.$header.parents(".header-wrapper").hasClass("header-reveal"),o.is_sticky=!1,o.reset().build().events(),o):this},build:function(){var i=this;if(!i.is_sticky&&window.innerHeight+i.header_height+t.adminBarHeight()+parseInt(i.$header.css("border-top-width"))>=e(document).height())return i;window.innerHeight>e(document.body).height()&&window.scrollTo(0,0);var o=e(window).scrollTop(),n=e(".page-wrapper");if(i.$menu_wrap&&!t.isTablet())if(i.$header_main.stop().css("top",0),i.$header.parent().hasClass("fixed-header")&&i.$header.parent().attr("style",""),e(".page-wrapper").hasClass("sticky-scroll-up")&&((o-=i.sticky_height)>i.sticky_pos+100?i.$header.addClass("sticky-ready"):i.$header.removeClass("sticky-ready")),o>i.sticky_pos){if(!i.$header.hasClass("sticky-header")&&(!n.hasClass("sticky-scroll-up")||n.hasClass("sticky-scroll-up")&&void 0!==n.data("prev-scrollpos"))){var s,a=i.$header.outerHeight();i.$header.addClass("sticky-header").css("height",a),i.$menu_wrap.stop().css("top",t.adminBarHeight()),(s=i.$header.find(".header-main .searchform select").data("selectric"))&&void 0!==s.close&&s.close(),i.$header.parent().hasClass("fixed-header")&&(i.$header_main.hide(),i.$header.css("height","")),i.init_toggle_menu||(i.init_toggle_menu=!0,t.MegaMenu.build(),e("#main-toggle-menu").length&&(e("#main-toggle-menu").hasClass("show-always")&&(e("#main-toggle-menu").data("show-always",!0),e("#main-toggle-menu").removeClass("show-always")),e("#main-toggle-menu").addClass("closed"),e("#main-toggle-menu .menu-title").addClass("closed"),e("#main-toggle-menu .toggle-menu-wrap").attr("style",""))),i.is_sticky=!0}}else i.$header.hasClass("sticky-header")&&(i.$header.removeClass("sticky-header"),i.$header.css("height",""),i.$menu_wrap.stop().css("top",0),i.$header_main.show(),(s=i.$header.find(".main-menu-wrap .searchform select").data("selectric"))&&void 0!==s.close&&s.close(),i.init_toggle_menu&&(i.init_toggle_menu=!1,t.MegaMenu.build(),e("#main-toggle-menu").length&&e("#main-toggle-menu").data("show-always")&&(e("#main-toggle-menu").addClass("show-always"),e("#main-toggle-menu").removeClass("closed"),e("#main-toggle-menu .menu-title").removeClass("closed"),e("#main-toggle-menu .toggle-menu-wrap").attr("style",""))),i.is_sticky=!1);else if(i.$header_main.show(),i.$header.parent().hasClass("fixed-header")&&e("#wpadminbar").length&&"absolute"==e("#wpadminbar").css("position")||(i.$header.parent().hasClass("fixed-header")||i.$header.parent().hasClass("fixed-header"))&&i.$header.parent().attr("style",""),i.$header.hasClass("sticky-menu-header")&&!t.isTablet())i.$header_main.stop().css("top",0),i.change_logo&&i.$header_main.removeClass("change-logo"),i.$header_main.removeClass("sticky"),i.$header.removeClass("sticky-header"),i.is_sticky=!1,i.sticky_height=0;else if(i.$menu_wrap&&i.$menu_wrap.stop().css("top",0),n.hasClass("sticky-scroll-up")&&((o-=i.sticky_height)>i.sticky_pos+100?i.$header.addClass("sticky-ready"):i.$header.removeClass("sticky-ready")),o>i.sticky_pos&&(!t.isTablet()||t.isTablet()&&!t.isMobile()&&t.show_sticky_header_tablet||t.isMobile()&&t.show_sticky_header_tablet&&t.show_sticky_header_mobile)){if(!i.$header.hasClass("sticky-header")&&(!n.hasClass("sticky-scroll-up")||n.hasClass("sticky-scroll-up")&&void 0!==n.data("prev-scrollpos"))){a=i.$header.outerHeight();i.$header.addClass("sticky-header").css("height",a),i.$header_main.addClass("sticky"),i.change_logo&&i.$header_main.addClass("change-logo"),i.$header_main.stop().css("top",t.adminBarHeight()),i.init_toggle_menu||(i.init_toggle_menu=!0,t.MegaMenu.build(),e("#main-toggle-menu").length&&(e("#main-toggle-menu").hasClass("show-always")&&(e("#main-toggle-menu").data("show-always",!0),e("#main-toggle-menu").removeClass("show-always")),e("#main-toggle-menu").addClass("closed"),e("#main-toggle-menu .menu-title").addClass("closed"),e("#main-toggle-menu .toggle-menu-wrap").attr("style",""))),i.is_sticky=!0}}else i.$header.hasClass("sticky-header")&&(i.change_logo&&i.$header_main.removeClass("change-logo"),i.$header_main.removeClass("sticky"),i.$header.removeClass("sticky-header"),i.$header.css("height",""),i.$header_main.stop().css("top",0),i.init_toggle_menu&&(i.init_toggle_menu=!1,t.MegaMenu.build(),e("#main-toggle-menu").length&&e("#main-toggle-menu").data("show-always")&&(e("#main-toggle-menu").addClass("show-always"),e("#main-toggle-menu").removeClass("closed"),e("#main-toggle-menu .menu-title").removeClass("closed"),e("#main-toggle-menu .toggle-menu-wrap").attr("style",""))),i.is_sticky=!1);return i.$header.hasClass("header-loaded")||i.$header.addClass("header-loaded"),i.$header.find(".logo").hasClass("logo-transition")||i.$header.find(".logo").addClass("logo-transition"),i.$header.find(".overlay-logo").get(0)&&!i.$header.find(".overlay-logo").hasClass("overlay-logo-transition")&&i.$header.find(".overlay-logo").addClass("overlay-logo-transition"),i},reset:function(){var i=this;return i.$header.find(".logo").hasClass("logo-transition")&&i.$header.find(".logo").removeClass("logo-transition"),i.$header.find(".overlay-logo").get(0)&&i.$header.find(".overlay-logo").hasClass("overlay-logo-transition")&&i.$header.find(".overlay-logo").removeClass("overlay-logo-transition"),i.$menu_wrap&&!t.isTablet()?(i.$header.addClass("sticky-header sticky-header-calc"),i.$header_main.addClass("sticky"),i.change_logo&&i.$header_main.addClass("change-logo"),i.sticky_height=i.$menu_wrap.height()+parseInt(i.$menu_wrap.css("padding-top"))+parseInt(i.$menu_wrap.css("padding-bottom")),i.change_logo&&i.$header_main.removeClass("change-logo"),i.$header_main.removeClass("sticky"),i.$header.removeClass("sticky-header sticky-header-calc"),i.header_height=i.$header.height()+parseInt(i.$header.css("margin-top")),i.menu_height=i.$menu_wrap.height()+parseInt(i.$menu_wrap.css("padding-top"))+parseInt(i.$menu_wrap.css("padding-bottom")),i.sticky_pos=i.header_height-i.sticky_height+parseInt(e("body").css("padding-top"))+parseInt(i.$header.css("border-top-width")),e(".banner-before-header").length&&(i.sticky_pos+=e(".banner-before-header").height()),e(".porto-block-html-top").length&&(i.sticky_pos+=e(".porto-block-html-top").height())):(i.$header.addClass("sticky-header sticky-header-calc"),i.$header_main.addClass("sticky"),i.change_logo&&i.$header_main.addClass("change-logo"),i.sticky_height=i.$header_main.outerHeight(),i.change_logo&&i.$header_main.removeClass("change-logo"),i.$header_main.removeClass("sticky"),i.$header.removeClass("sticky-header sticky-header-calc"),i.header_height=i.$header.height()+parseInt(i.$header.css("margin-top")),i.main_height=i.$header_main.height(),!t.isTablet()||t.isTablet()&&!t.isMobile()&&t.show_sticky_header_tablet||t.isMobile()&&t.show_sticky_header_tablet&&t.show_sticky_header_mobile||(i.sticky_height=0),i.sticky_pos=i.$header.offset().top+i.header_height-i.sticky_height-t.adminBarHeight()+parseInt(i.$header.css("border-top-width"))),i.reveal&&(i.menu_height?i.sticky_pos+=i.menu_height+30:i.sticky_pos+=30),i.sticky_pos<0&&(i.sticky_pos=0),i.init_toggle_menu=!1,i.$header_main.removeAttr("style"),!t.isTablet()&&i.$header.hasClass("header-side")&&void 0!==i.$header.attr("data-plugin-sticky")?i.$header.css("height",""):i.$header.removeAttr("style"),i},events:function(){var i=this,o=0;e(window).smartresize((function(){o!=window.innerWidth&&(i.reset().build(),o=window.innerWidth)}));var n=function(){t.requestFrame((function(){i.build();var t=e(".page-wrapper");if(t.hasClass("sticky-scroll-up")&&!e("html").hasClass("porto-search-opened")){var o=0,n=e(window).scrollTop();t.data("prev-scrollpos")&&(o=t.data("prev-scrollpos")),n>=o?i.$header.addClass("scroll-down"):i.$header.removeClass("scroll-down"),t.data("prev-scrollpos",n)}}))};return window.addEventListener("scroll",n,{passive:!0}),n(),i}}})}.apply(this,[window.theme,jQuery]),function(t,e){"use strict";t=t||{},e.extend(t,{HashScroll:{initialize:function(){return this.build().events(),this},build:function(){try{var i=window.location.hash,o=e(i);return o.length&&"#review_form"!=i&&"#reviews"!=i&&-1==i.indexOf("#comment-")&&e("html, body").delay(600).stop().animate({scrollTop:o.offset().top-t.StickyHeader.sticky_height-t.adminBarHeight()-t.sticky_nav_height+1},600,"easeOutQuad"),this}catch(t){return this}},getTarget:function(t){if("#"==t||t.endsWith("#"))return!1;var i;if(0==t.indexOf("#"))i=e(t);else{var o=window.location.href;-1!=(o=o.substring(o.indexOf("://")+3)).indexOf("#")&&(o=o.substring(0,o.indexOf("#"))),0==(t=(t=t.substring(t.indexOf("://")+3)).substring(t.indexOf(o)+o.length)).indexOf("#")&&(i=e(t))}return i},activeMenuItem:function(){var i=this,o=e(window).scrollTop(),n=e('.menu-item > a[href*="#"], .porto-sticky-nav .nav > li > a[href*="#"]');return n.length&&n.each((function(){var n=e(this),s=n.attr("href"),a=i.getTarget(s);if(a&&a.get(0))if(n.parent().is(":last-child")&&o+window.innerHeight>=a.offset().top+a.outerHeight())n.parent().siblings().removeClass("active"),n.parent().addClass("active");else{var r=a.offset().top-t.StickyHeader.sticky_height-t.adminBarHeight()-t.sticky_nav_height+1,l=n.parent();r<=o+5?(l.siblings().removeClass("active"),l.addClass("active"),l.closest(".secondary-menu").length&&l.closest("#header").find(".main-menu").eq(0).children(".menu-item.active").removeClass("active")):l.removeClass("active")}})),i},events:function(){var i=this;e('.menu-item > a[href*="#"], .porto-sticky-nav .nav > li > a[href*="#"], a[href*="#"].hash-scroll, .hash-scroll-wrap a[href*="#"]').on("click",(function(o){o.preventDefault();var n=e(this),s=n.attr("href"),a=i.getTarget(s);if(a&&a.get(0)){var r=n.parent(),l=a.offset().top-t.StickyHeader.sticky_height-t.adminBarHeight()-t.sticky_nav_height+1;e("html, body").stop().animate({scrollTop:l},600,"easeOutQuad",(function(){r.siblings().removeClass("active"),r.addClass("active")})),n.closest(".porto-popup-menu.opened").length&&n.closest(".porto-popup-menu.opened").children(".hamburguer-btn").trigger("click")}else"#"==s&&n.closest(".porto-popup-menu.opened").length||n.hasClass("nolink")||(window.location.href=n.attr("href"))}));var o=e('.menu-item > a[href*="#"], .porto-sticky-nav .nav > li > a[href*="#"]');return o.each((function(){var t="-20% 0px -79.9% 0px",n=e(this).parent().is(":last-child");if(n){var s=document.getElementById(this.hash.replace("#",""));if(s&&document.body.offsetHeight-s.offsetTop<window.innerHeight){var a=(window.innerHeight-document.body.offsetHeight+s.offsetTop)/window.innerHeight*.8;t="-"+(20+(a=Math.round(100*a)))+"% 0px -"+(79.9-a)+"% 0px"}}i.scrollSpyIntObs(this.hash,(function(){this&&void 0!==this[0]&&this[0].id&&e('.menu-item > a[href*="#'+this[0].id+'"], .porto-sticky-nav .nav > li > a[href*="#'+this[0].id+'"]').parent().addClass("active").siblings().removeClass("active")}),{rootMargin:t,thresholds:0},!0,n,!0,o,e(this).parent().index())})),i},scrollSpyIntObs:function(t,i,o,n,s,a,r,l){if("undefined"==typeof IntersectionObserver)return this;var d=document.getElementById(t.replace("#",""));if(!d)return this;var c={rootMargin:"0px 0px 200px 0px"};return Object.keys(o).length&&(c=e.extend(c,o)),new IntersectionObserver((function(t){for(var o=0;o<t.length;o++){var n=t[o];if(n.intersectionRatio>0)if("string"==typeof i)Function("return "+i)();else i.call(e(n.target));else 0==a&&s&&!r.closest(".porto-sticky-nav").length&&r.filter('[href*="'+n.target.id+'"]').parent().prev().addClass("active").siblings().removeClass("active"),a=!1}}),c).observe(d),this}}})}.apply(this,[window.theme,jQuery]),function(t,e){"use strict";t=t||{};var i="__floatElement",o=function(t,e){return this.initialize(t,e)};o.defaults={startPos:"top",speed:3,horizontal:!1,circle:!1,transition:!1,transitionDelay:0,transitionDuration:500},o.prototype={initialize:function(t,e){return t.data(i)||(this.$el=t,this.setData().setOptions(e).build()),this},setData:function(){return this.$el.data(i,this),this},setOptions:function(t){return this.options=e.extend(!0,{},o.defaults,t,{wrapper:this.$el}),this},build:function(){var i,o=this,n=this.options.wrapper,s=e(window);return o.options.style&&n.attr("style",o.options.style),o.options.circle?(o.options.transition&&n.css({transition:"ease-out transform "+o.options.transitionDuration+"ms "+o.options.transitionDelay+"ms"}),window.addEventListener("scroll",(function(){o.movement(i)}),{passive:!0})):s.width()>767&&("none"==o.options.startPos?i="":"top"==o.options.startPos?(n.css({top:0}),i=""):(n.css({bottom:0}),i="-"),o.options.transition&&n.css({transition:"ease-out transform "+o.options.transitionDuration+"ms "+o.options.transitionDelay+"ms"}),o.$el.hasClass("marquee")||o.movement(i),window.addEventListener("scroll",(function(){o.movement(i)}),{passive:!0}),t.locomotiveScroll&&t.locomotiveScroll.on("scroll",(function(t){o.movement(i,t.scroll.y)}))),this},movement:function(t,i=!1){var o=this,n=this.options.wrapper,s=e(window),a=!1===i?s.scrollTop():i,r=n.offset().top,l=r-a;if(!1!==i&&(r=(l=n.offset().top)+a),o.options.circle)n.css({transform:"rotate("+.25*a+"deg)"});else{var d=100*l/s.height();r+n.height()>=a&&r<=a+window.innerHeight&&(o.options.horizontal?n.css({transform:"translate3d("+t+d/o.options.speed+"%, 0, 0)"}):n.css({transform:"translate3d(0, "+t+d/o.options.speed+"%, 0)"}))}}},e.extend(t,{PluginFloatElement:o}),e.fn.themePluginFloatElement=function(t){return this.map((function(){var n=e(this);return n.data(i)?n.data(i):new o(n,t)}))}}.apply(this,[window.theme,jQuery]),function(t,e){"use strict";e(document).ready((function(){var i=0;e(window).smartresize((function(){i!=window.innerWidth&&(t.adminBarHeightNum=null,i=window.innerWidth),t.bodyWidth=document.body.offsetWidth})),void 0!==t.ScrollToTop&&t.ScrollToTop.initialize(),setTimeout((function(){porto_init()}),0),t.bodyWidth=t.bodyWidth||document.body.offsetWidth,void 0!==t.MegaMenu&&t.MegaMenu.initialize(),setTimeout((()=>{void 0!==t.StickyHeader&&t.StickyHeader.initialize(),void 0!==t.HashScroll&&t.HashScroll.initialize()})),e(document).trigger("porto_theme_init"),t.isReady=!0})),e(window).on("load",(function(){e(document).on("click",".sidebar-toggle",(function(t){t.preventDefault();var i=e("html"),o=e("#main"),n=e(this);n.siblings(".porto-product-filters").length?i.hasClass("filter-sidebar-opened")?(i.removeClass("filter-sidebar-opened"),n.siblings(".sidebar-overlay").removeClass("active"),i.hasClass("sidebar-right-opened")&&i.removeClass("sidebar-right-opened")):(i.removeClass("sidebar-opened"),i.addClass("filter-sidebar-opened"),n.siblings(".sidebar-overlay").addClass("active"),(o.hasClass("column2-right-sidebar")||o.hasClass("column2-wide-right-sidebar"))&&i.addClass("sidebar-right-opened")):i.hasClass("sidebar-opened")?(i.removeClass("sidebar-opened"),e(".sidebar-overlay").removeClass("active"),i.hasClass("sidebar-right-opened")&&i.removeClass("sidebar-right-opened")):(i.addClass("sidebar-opened"),e(".sidebar-overlay").addClass("active"),(o.hasClass("column2-right-sidebar")||o.hasClass("column2-wide-right-sidebar"))&&i.addClass("sidebar-right-opened"))})),e("#header .mini-cart").on("click",(function(t){let i=e("body");js_porto_vars.cart_url&&(i.hasClass("woocommerce-cart")||i.hasClass("woocommerce-checkout"))&&(location.href=js_porto_vars.cart_url)})),e(".minicart-offcanvas .cart-head").on("click",(function(){let i=e("body");if(!js_porto_vars.cart_url||!i.hasClass("woocommerce-cart")&&!i.hasClass("woocommerce-checkout")){var o=e(this);o.closest(".minicart-offcanvas").toggleClass("minicart-opened"),o.closest(".minicart-offcanvas").hasClass("minicart-opened")?(e("html").css("margin-right",t.getScrollbarWidth()),e("html").css("overflow","hidden")):(e("html").css("overflow",""),e("html").css("margin-right",""))}})),e(".minicart-offcanvas .minicart-overlay").on("click",(function(){e(this).closest(".minicart-offcanvas").removeClass("minicart-opened"),e("html").css("overflow",""),e("html").css("margin-right","")})),e(document.body).on("click",".sidebar-overlay",(function(){var t=e("html");t.removeClass("sidebar-opened"),t.removeClass("filter-sidebar-opened"),e(this).removeClass("active"),t.removeClass("sidebar-right-opened")})),e(document.body).on("click",".section-tabs .nav-link",(function(t){t.preventDefault();var i=e(this),o=i.data("tab"),n=i.closest(".section-tabs"),s=n.children("ul.nav"),a=n.children(".tab-content");if(o){s.find(".active").removeClass("active"),i.addClass("active").parent(".nav-item").addClass("active"),a.find(">.active").removeClass("show active"),a.find('>.tab-pane[id="'+o+'"]').addClass("active");a.find(">.active").get(0).offsetHeight;a.find(">.active").addClass("show");var r=a.find(">.active").find(".owl-carousel");r.data("owl.carousel")||r.themeCarousel(r.data("plugin-options"))}})),e(window).on("resize",(function(t){t.originalEvent&&window.innerWidth>991&&e("html").hasClass("sidebar-opened")&&e(".sidebar-overlay").trigger("click")}));var i=e(".tabs-simple .featured-box .box-content, .porto-content-box .featured-box .box-content, .vc_general.vc_cta3, .match-height");if(i.length)if(e.fn.matchHeight)i.matchHeight();else{var o=document.createElement("script");o.addEventListener("load",(function(t){i.matchHeight()})),o.src=js_porto_vars.ajax_loader_url.replace("/images/ajax-loader@2x.gif","/js/libs/jquery.matchHeight.min.js"),o.async=!0,document.body.appendChild(o)}/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)&&e(".share-whatsapp").css("display","inline-block"),e(document).ajaxComplete((function(t,i,o){/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)&&e(".share-whatsapp").css("display","inline-block")})),window.navigator.userAgent.indexOf("Edge/")>0&&e("html").addClass("ie12"),e(document).on("click",".portfolios-lightbox a.portfolio-link",(function(t){return e(this).find(".thumb-info-zoom").trigger("click"),!1})),e(".porto-faqs").each((function(){e(this).find(".faq .toggle.active").length<1&&(e(this).find(".faq").eq(0).find(".toggle").addClass("active"),e(this).find(".faq").eq(0).find(".toggle-content").show())})),e(document).on("shown.bs.collapse",".collapse",(function(){var i=e(this);t.refreshVCContent(i)})),e(document).on("shown.bs.tab",'a[data-bs-toggle="tab"]',(function(i){var o=e(e(i.target).attr("href"));t.refreshVCContent(o)})),e(".porto-tooltip .tooltip-icon").on("click",(function(){"none"==e(this).parent().children(".tooltip-popup").css("display")?e(this).parent().children(".tooltip-popup").fadeIn(200):e(this).parent().children(".tooltip-popup").fadeOut(200)})),e(".porto-tooltip .tooltip-close").on("click",(function(){e(this).parent().fadeOut(200)})),e("body").css("--porto-scroll-w",t.getScrollbarWidth()+"px")}))}.apply(this,[window.theme,jQuery]),function(t,e,i){"use strict";e(document).ready((function(){e(window).on("vc_reload",(function(){porto_init(),e(".type-post").addClass("post"),e(".type-portfolio").addClass("portfolio"),e(".type-member").addClass("member"),e(".type-block").addClass("block")}))}));var o={$timeline:e("#exp-timeline"),$timelineBar:e("#exp-timeline .timeline-bar"),$firstTimelineItem:e("#exp-timeline .timeline-box").first(),$lastTimelineItem:e("#exp-timeline .timeline-box").last(),build:function(){this.adjustHeight()},adjustHeight:function(){var t=this,e=t.$firstTimelineItem.outerHeight(!0)/2+5,i=t.$lastTimelineItem.outerHeight(!0)/2+5;t.$timelineBar.css({top:e,bottom:i})}};if(e("#exp-timeline").get(0)){var n=null;e(window).smartresize((function(){n&&clearTimeout(n),n=setTimeout((function(){o.build()}),800)})),o.build()}e(".custom-view-our-location").on("click",(function(t){t.preventDefault();var i=e(this);e(".custom-googlemap").slideDown("1000",(function(){i.delay(700).hide()}))})),window.addEventListener("LazyLoad::Initialized",(function(e){t.w3tcLazyLoadInstance=e.detail.instance}),!1)}(window.theme,jQuery),function(t,e,i){"use strict";if(window.addEventListener("load",(function(){t.isLoaded=!0})),e(document).ready((function(){"undefined"!=typeof elementorFrontend&&e(window).on("elementor/frontend/init",(function(){elementorFrontend.hooks.addFilter("frontend/handlers/menu_anchor/scroll_top_distance",(function(e){return t&&t.StickyHeader&&void 0!==t.sticky_nav_height&&(elementorFrontend.elements.$wpAdminBar.length&&(e+=elementorFrontend.elements.$wpAdminBar.height()),e=e-t.adminBarHeight()-t.StickyHeader.sticky_height-t.sticky_nav_height+1),e})),elementorFrontend.elements.$window.on("elementor/nested-tabs/activate",(function(t,i){var o=e(i).find(".owl-carousel");o.data("owl.carousel")||o.themeCarousel(o.data("plugin-options"))}))}))})),e("#footer .widget_wysija .wysija-submit:not(.btn)").addClass("btn btn-default"),e("[data-vc-parallax] .owl-carousel").length&&t.requestTimeout((function(){"object"==typeof window.vcParallaxSkroll&&window.vcParallaxSkroll.refresh()}),200),e(".page-content > .alignfull, .post-content > .alignfull").length){var o=function(){e(".page-content > .alignfull, .post-content > .alignfull").each((function(){e(this).css("left",-1*e(this).parent().offset().left).css("right",-1*e(this).parent().offset().left).css("width",e("body").width()-(parseInt(e(this).css("margin-left"),10)+parseInt(e(this).css("margin-right"),10)))}))};o(),e(window).smartresize((function(){o()}))}}(window.theme,jQuery);
(function(t,e){"use strict";t=t||{},e.extend(t,{mfpConfig:{tClose:js_porto_vars.popup_close,tLoading:'<div class="porto-ajax-loading"><i class="porto-loading-icon"></i></div>',gallery:{tPrev:js_porto_vars.popup_prev,tNext:js_porto_vars.popup_next,tCounter:js_porto_vars.mfp_counter},image:{tError:js_porto_vars.mfp_img_error},ajax:{tError:js_porto_vars.mfp_ajax_error},callbacks:{open:function(){e("body").addClass("lightbox-opened"),this.st.fixedContentPos&&e("#header.sticky-header .header-main.sticky, #header.sticky-header .main-menu-wrap, .fixed-header #header.sticky-header .header-main, .fixed-header #header.sticky-header .main-menu-wrap").css(t.rtl_browser?"left":"right",t.getScrollbarWidth());var a=e(this._lastFocusedEl);if(a.closest(".portfolios-lightbox").hasClass("with-thumbs")&&e(document).width()>=1024){var i=a.closest(".portfolios-lightbox.with-thumbs").find(".porto-portfolios-lighbox-thumbnails").clone(),o=e.magnificPopup.instance;e("body").prepend(i);var n=e("body > .porto-portfolios-lighbox-thumbnails").children(".owl-carousel");n.themeCarousel(n.data("plugin-options")),n.trigger("refresh.owl.carousel");var s=n.find(".owl-stage");s.find(".owl-item").removeClass("current"),s.find(".owl-item").eq(o.currItem.index).addClass("current"),e.magnificPopup.instance.next=function(){var t=e.magnificPopup.instance;e.magnificPopup.proto.next.call(this),s.find(".owl-item").removeClass("current"),s.find(".owl-item").eq(t.currItem.index).addClass("current")},e.magnificPopup.instance.prev=function(){var t=e.magnificPopup.instance;e.magnificPopup.proto.prev.call(this),s.find(".owl-item").removeClass("current"),s.find(".owl-item").eq(t.currItem.index).addClass("current")},s.find(".owl-item").on("click",(function(){s.find(".owl-item").removeClass("current"),e.magnificPopup.instance.goTo(e(this).index()),e(this).addClass("current")}))}},close:function(){e("body").removeClass("lightbox-opened"),this.st.fixedContentPos&&e("#header.sticky-header .header-main.sticky, #header.sticky-header .main-menu-wrap, .fixed-header #header.sticky-header .header-main, .fixed-header #header.sticky-header .main-menu-wrap").css(t.rtl_browser?"left":"right",""),e(".owl-carousel .owl-stage").each((function(){var t=e(this),a=t.width()+parseInt(t.css("padding-left"))+parseInt(t.css("padding-right"));t.css({width:a+200}),setTimeout((function(){t.css({width:a})}),0)})),e(this._lastFocusedEl).parents(".portfolios-lightbox").hasClass("with-thumbs")&&e(document).width()>=1024&&e(" body > .porto-portfolios-lighbox-thumbnails").remove()}}}})}).apply(this,[window.theme,jQuery]),function(t,e){"use strict";t=t||{},e.extend(t,{Search:{defaults:{popup:e(".searchform-popup"),form:e(".searchform")},initialize:function(t,e){return this.$popup=t||this.defaults.popup,this.$form=e||this.defaults.form,this.form_layout=this.$form.hasClass("search-layout-overlay")?"overlay":!!this.$form.hasClass("search-layout-reveal")&&"reveal",this.build().events(),this},build:function(){var t=this.$form.find(".text input"),a=this.$form.find(".cat");return e(".searchform .cat").get(0)&&e.fn.selectric&&e(".searchform .cat").selectric({arrowButtonMarkup:"",expandToItemText:!0,maxHeight:240}),t.on("change",(function(){var a=e(this),i=a.val();t.each((function(){a!=e(this)&&e(this).val(i)}))})),a.on("change",(function(){var t=e(this),i=t.val();a.each((function(){t!=e(this)&&e(this).val(i)}))})),this},events:function(){var t=this;return e("body").on("click",".searchform-popup",(function(t){t.stopPropagation()})),e("body").off("click",".searchform-popup .search-toggle").on("click",".searchform-popup .search-toggle",(function(a){var i=e(this),o=i.next();if(i.toggleClass("opened"),"overlay"==t.form_layout)i.siblings(".search-layout-overlay").addClass("show"),e("html").addClass("porto-search-opened porto-search-overlay-wrap"),i.closest(".vc_row.vc_row-flex>.vc_column_container>.vc_column-inner").css("z-index","999");else if("reveal"==t.form_layout){t.parents=[];for(var n=t.$popup;!(n.hasClass("elementor-container")&&!n.parent().hasClass("elementor-inner-container")||n.hasClass("e-con-inner")&&!n.parent().hasClass("e-child")||n.parent().hasClass("vc_row")&&!n.parent().hasClass("vc_inner")||"header"==n.parent().attr("id")||n.parent().hasClass("header-main")||n.parent().hasClass("header-top")||n.parent().hasClass("header-bottom"));)(n=n.parent()).addClass("position-static"),t.parents.push(n);"static"==n.parent().css("position")&&(t.topParent=n.parent(),t.topParent.addClass("position-relative")),o.toggle(),window.setTimeout((function(){e("body").addClass("porto-search-opened"),o.find('.text>input[name="s"]').focus()}),100)}else o.toggle();i.hasClass("opened")?(e("#mini-cart.open").removeClass("open"),i.next().find('input[type="text"]').focus(),t.$popup.find(".btn-close-search-form").length&&t.$popup.parent().addClass("position-static")):"reveal"==t.form_layout&&t.removeFormStyle(),a.preventDefault(),a.stopPropagation()})),e("html,body").on("click",(function(){t.removeFormStyle()})),"ontouchstart"in document||e(window).on("resize",(function(){t.removeFormStyle()})),e(".btn-close-search-form").on("click",(function(e){e.preventDefault(),t.removeFormStyle()})),t},removeFormStyle:function(){this.$form.removeAttr("style");var t=this.$popup.find(".search-toggle");t.removeClass("opened"),"overlay"==this.form_layout?(e("html").removeClass("porto-search-opened porto-search-overlay-wrap"),t.siblings(".search-layout-overlay").removeClass("show"),t.closest(".vc_row.vc_row-flex>.vc_column_container>.vc_column-inner").css("z-index","")):"reveal"==this.form_layout&&this.parents&&this.parents.length>=1&&(e("body").removeClass("porto-search-opened"),this.parents.forEach((t=>{t.removeClass("position-static")})),this.topParent&&this.topParent.removeClass("position-relative")),this.$popup.find(".btn-close-search-form").length&&this.$popup.parent().removeClass("position-static")}}})}.apply(this,[window.theme,jQuery]),function(t,e){"use strict";t=t||{};var a="__animate",i=function(t,e){return this.initialize(t,e)};i.defaults={accX:0,accY:-120,delay:1,duration:1e3},i.prototype={initialize:function(t,e){return t.data(a)||(this.$el=t,this.setData().setOptions(e).build()),this},setData:function(){return this.$el.data(a,!0),this},setOptions:function(t){return this.options=e.extend(!0,{},i.defaults,t,{wrapper:this.$el}),this},build:function(){var a,i,o=this.options.wrapper;if(o.data("appear-animation-svg"))return o.find("[data-appear-animation]").each((function(){var a,i=e(this),o=t.getOptions(i.data("plugin-options"));o&&(a=o),i.themeAnimate(a)})),this;o.addClass("appear-animation");var n=o.get(0);return a=Math.abs(o.data("appear-animation-delay")?o.data("appear-animation-delay"):this.options.delay),i=Math.abs(o.data("appear-animation-duration")?o.data("appear-animation-duration"):this.options.duration),void 0!==o.data("appear-animation")&&o.data("appear-animation").includes("revealDir")?(a>1&&n.style.setProperty("--porto-reveal-animation-delay",a+"ms"),1e3!=i&&n.style.setProperty("--porto-reveal-animation-duration",i+"ms"),o.data("animation-reveal-clr")&&n.style.setProperty("--porto-reveal-clr",o.data("animation-reveal-clr"))):(a>1&&(n.style.animationDelay=a+"ms"),1e3!=i&&(n.style.animationDuration=i+"ms")),o.addClass(o.data("appear-animation")+" appear-animation-visible"),this}},e.extend(t,{Animate:i}),e.fn.themeAnimate=function(i){return this.map((function(){var o=e(this);return o.data(a)?o:new t.Animate(o,i)}))}}.apply(this,[window.theme,jQuery]),function(t,e){"use strict";t=t||{};var a="__carousel",i=function(t,e){return this.initialize(t,e)};i.defaults=e.extend({},{loop:!0,navText:[],themeConfig:!1,lazyLoad:!0,lg:0,md:0,sm:0,xs:0,single:!1,rtl:t.rtl}),i.prototype={initialize:function(t,e){return t.data(a)||(this.$el=t,this.setData().setOptions(e).build()),this},setData:function(){return this.$el.data(a,!0),this},setOptions:function(a){return a&&a.themeConfig||!a?this.options=e.extend(!0,{},i.defaults,t.owlConfig,a,{wrapper:this.$el,themeConfig:!0}):this.options=e.extend(!0,{},i.defaults,a,{wrapper:this.$el}),this},calcOwlHeight:function(t){var a=0;t.find(".owl-item.active").each((function(){a<e(this).height()&&(a=e(this).height())})),t.children(".owl-stage-outer").height(a)},build:function(){if(!e.fn.owlCarousel)return this;var a,i=this.options.wrapper,o=this.options.loop,n=this.options.lg,s=this.options.md,r=this.options.sm,l=this.options.xs,d=this.options.single,p=i.find(".zoom").filter((function(){return!e(this).closest(".tb-image-type-slider").length})).get(0),c={},h=i.find(".owl-item").length>0?i.find(".owl-item:not(.cloned)").length:i.find("> *").length;void 0!==this.options.fullscreen&&this.options.fullscreen;if(d)a=1;else if(void 0!==this.options.responsive)for(var m in this.options.responsive){var f=Number(this.options.responsive[m]);c[Number(m)]={items:f,loop:!!(o&&h>=f)}}else{a=this.options.items?this.options.items:n||1,(this.options.xxl||this.options.xl||n||s||r||l)&&(this.options.xxl?c[t.screen_xxl]={items:this.options.xxl,loop:!!(o&&h>this.options.xxl),mergeFit:this.options.mergeFit}:n&&a>n+1&&(c[t.screen_xxl]={items:a,loop:!!(o&&h>a),mergeFit:this.options.mergeFit},c[t.screen_xl]={items:n+1,loop:!!(o&&h>n+1),mergeFit:this.options.mergeFit}),this.options.xl?c[t.screen_xl]={items:this.options.xl,loop:!!(o&&h>this.options.xl),mergeFit:this.options.mergeFit}:void 0!==c[t.screen_xl]||n&&a==n||(c[t.screen_xl]={items:a,loop:!!(o&&h>=a),mergeFit:this.options.mergeFit}),n&&(c[992]={items:n,loop:!!(o&&h>=n),mergeFit:this.options.mergeFit_lg}),s&&(c[768]={items:s,loop:!!(o&&h>s),mergeFit:this.options.mergeFit_md}),c[576]=r?{items:r,loop:!!(o&&h>r),mergeFit:this.options.mergeFit_sm}:l&&l>1?{items:l,loop:!!(o&&h>l),mergeFit:this.options.mergeFit_sm}:{items:1,mergeFit:!1},c[0]=l?{items:l,loop:!!(o&&h>l),mergeFit:this.options.mergeFit_xs}:{items:1})}if(!i.hasClass("show-nav-title")&&this.options.themeConfig&&t.slider_nav&&t.slider_nav_hover&&i.addClass("show-nav-hover"),this.options=e.extend(!0,{},this.options,{items:a,loop:!!(o&&h>a),responsive:c,onInitialized:function(){i.hasClass("stage-margin")&&i.find(".owl-stage-outer").css({"margin-left":this.options.stagePadding,"margin-right":this.options.stagePadding});var t=".porto-u-heading, .vc_custom_heading, .slider-title, .elementor-widget-heading, .porto-heading";if(i.hasClass("show-dots-title")&&(i.prev(t).length||i.closest(".slider-wrapper").prev(t).length||i.closest(".porto-recent-posts").prev(t).length||i.closest(".elementor-widget-porto_recent_posts, .elementor-section").prev(t).length)){var a=i.prev(t);a.length||(a=i.closest(".slider-wrapper").prev(t)),a.length||(a=i.closest(".porto-recent-posts").prev(t)),a.length||(a=i.closest(".elementor-widget-porto_recent_posts, .elementor-section").prev(t));try{var o=a.addClass("w-auto").css("display","inline-block").width();a.removeClass("w-auto").css("display",""),o+15+i.find(".owl-dots").width()<=a.width()?(i.find(".owl-dots").css(e("body").hasClass("rtl")?"right":"left",o+15+(i.width()-a.width())/2),i.find(".owl-dots").css("top",-1*a.height()/2-parseInt(a.css("margin-bottom"))-i.find(".owl-dots").height()/2+2)):i.find(".owl-dots").css("position","static")}catch(t){}}}}),this.options.autoHeight){var u=this;e(window).on("resize",(function(){u.calcOwlHeight(i)})),t.isLoaded?setTimeout((function(){u.calcOwlHeight(i)}),100):e(window).on("load",(function(){u.calcOwlHeight(i)}))}var g=!1;if(p){g=[];var v=0;i.find(".zoom").each((function(){var t={},a=e(this);t.src=a.data("src")?a.data("src"):a.data("mfp-src"),t.title=a.data("title"),g[v]=t,a.data("index",v),v++}))}return i.hasClass("show-nav-title")?this.options.stagePadding=0:(this.options.themeConfig&&t.slider_nav&&t.slider_nav_hover&&i.addClass("show-nav-hover"),this.options.themeConfig&&!t.slider_nav_hover&&t.slider_margin&&i.addClass("stage-margin")),i.hasClass("has-ccols-spacing")&&i.removeClass("has-ccols-spacing"),i.owlCarousel(this.options),p&&g&&i.on("click",".zoom",(function(a){if(a.preventDefault(),e.fn.magnificPopup){var o=e(this).data("index");void 0===o&&(o=(e(this).closest(".owl-item").index()-i.find(".cloned").length/2)%i.data("owl.carousel").items().length),e.magnificPopup.close(),e.magnificPopup.open(e.extend(!0,{},t.mfpConfig,{items:g,gallery:{enabled:!0},type:"image"}),o)}return!1})),this}},e.extend(t,{Carousel:i}),e.fn.themeCarousel=function(i,o){return"function"!=typeof e.fn.owlCarousel?this:this.map((function(){var n=e(this);return n.data(a)?n:new t.Carousel(n,i,o)}))}}.apply(this,[window.theme,jQuery]),function(t,e){"use strict";t=t||{};var a="__lightbox",i=function(t,e){return this.initialize(t,e)};i.defaults={callbacks:{open:function(){e("body").addClass("lightbox-opened")},close:function(){e("body").removeClass("lightbox-opened")}}},i.prototype={initialize:function(t,e){return t.data(a)||(this.$el=t,this.setData().setOptions(e).build()),this},setData:function(){return this.$el.data(a,this),this},setOptions:function(a){return this.options=e.extend(!0,{},i.defaults,t.mfpConfig,a,{wrapper:this.$el}),this},build:function(){return e.fn.magnificPopup?(this.options.wrapper.magnificPopup(this.options),this):this}},e.extend(t,{Lightbox:i}),e.fn.themeLightbox=function(i){return this.map((function(){var o=e(this);return o.data(a)?o.data(a):new t.Lightbox(o,i)}))}}.apply(this,[window.theme,jQuery]),function(t,e){"use strict";t=t||{},e.extend(t,{PostFilter:{cache:{},defaults:{elements:".portfolio-filter"},initialize:function(t,a){return this.$elements=t||e(this.defaults.elements),this.build(a),this},filterFn:function(a){if(void 0!==a&&void 0!==a.data&&void 0!==a.data.elements&&a.data.elements&&a.data.elements.length){var i=a.data.selfobj;if(i.isLoading)return!1;var o=a.data.thisobj,n=(a.data.elements,a.data.position),s=a.data.post_type,r=a.data.parent,l=a.data.posts_wrap,d=a.data.use_ajax,p=a.data.page_path,c=a.data.infinite_load,h=a.data.load_more;if(a.preventDefault(),!e(this).hasClass("active")){i.isLoading=!0;var m=e(this).attr("data-filter");if("sidebar"==n&&e(".sidebar-overlay").trigger("click"),o.find(".active").removeClass("active"),d){var f="*"==m?"":m;p||(p=l.data("page_path")),p&&l.data("page_path",p.replace(/&category=[^&]*&/,"&category="+f+"&")),e(this).addClass("active"),i.load_posts(f,!(!c&&!h),r,s,l,void 0,e(this).children("a").attr("href"))}else if("faq"==s)r.find(".faq").each((function(){var t=e(this),a="easeInOutQuart";"*"==m||t.hasClass(m)?("none"==t.css("display")&&t.stop(!0).slideDown(300,a,(function(){e(this).attr("style","").show()})),u++):"none"!=t.css("display")&&t.stop(!0).slideUp(300,a,(function(){e(this).attr("style","").hide()}))})),!u&&r.find(".faqs-infinite").length&&void 0!==e.fn.infinitescroll&&r.find(".faqs-infinite").infinitescroll("retrieve");else if(r.hasClass("portfolios-timeline")){var u=0;r.find(".portfolio").each((function(){var t=e(this),a="easeInOutQuart";"*"==m||t.hasClass(m)?("none"==t.css("display")&&t.stop(!0).slideDown(300,a,(function(){e(this).attr("style","").show()})),u++):"none"!=t.css("display")&&t.stop(!0).slideUp(300,a,(function(){e(this).attr("style","").hide()}))})),!u&&r.find(".portfolios-infinite").length&&void 0!==e.fn.infinitescroll&&r.find(".portfolios-infinite").infinitescroll("retrieve"),setTimeout((function(){t.FilterZoom.initialize(r)}),400)}else r.find("."+s+"-row").isotope({filter:"*"==m?m:"."+m});return d||(e(this).addClass("active"),i.isLoading=!1),"sidebar"==n&&i.$elements.each((function(){var t=e(this);t==o&&"sidebar"!=t.data("position")||(t.find("li").removeClass("active"),t.find('li[data-filter="'+m+'"]').addClass("active"))})),d||(window.location.hash="#"+m),t.refreshVCContent(),!1}}},build:function(a){var i=this;return i.$elements.each((function(){var o,n,s=e(this),r=s.data("position");if(n=void 0===a?s.hasClass("member-filter")?"member":s.hasClass("faq-filter")?"faq":s.hasClass("product-filter")?"product":s.hasClass("post-filter")?"post":s.hasClass("portfolio-filter")?"portfolio":s.attr("data-filter-type"):a,(o="sidebar"==r||"global"==r?e(".main-content .page-"+n+"s"):s.closest(".page-"+n+"s")).length||(o=s.closest(".porto-posts-grid")),o&&o.length){var l,d=s.hasClass("porto-ajax-filter"),p=o.hasClass("load-infinite"),c=o.hasClass("load-more"),h=o.find("."+n+"s-container");if(d&&(!p&&!c||!o.data("ajax_load_options"))){var m=window.location.href;-1!==m.indexOf("#")&&(m=m.split("#")[0]),l=t.ajax_url+(-1===t.ajax_url.indexOf("?")?"?":"&")+"action=porto_ajax_posts&nonce="+js_porto_vars.porto_nonce+"&post_type="+n+"&current_link="+m+"&category=&page=%cur_page%",o.data("post_layout")&&(l+="&post_layout="+o.data("post_layout")),h.data("page_path",l)}s.find("li").on("click",{thisobj:s,selfobj:i,elements:i.$elements,position:r,parent:o,post_type:n,posts_wrap:h,use_ajax:d,page_path:l,infinite_load:p,load_more:c},i.filterFn)}})),e(window).on("hashchange",{elements:i.$elements},i.hashchange),i.hashchange({data:{elements:i.$elements}}),i},hashchange:function(t){if(void 0!==t&&void 0!==t.data&&void 0!==t.data.elements&&t.data.elements&&t.data.elements.length){var a=t.data.elements,i=e(a.get(0)),o=window.location.hash;if(o){var n=i.find('li[data-filter="'+o.replace("#","")+'"]');n.hasClass("active")||n.trigger("click")}}},set_elements:function(t){var a=this;void 0!==t&&t&&t.length?(a.$elements=t,e(window).off("hashchange",a.hashchange).on("hashchange",{elements:t},a.hashchange)):a.destroy(a.$elements)},destroy:function(t){if(void 0!==t&&t&&t.length){t.find("li").off("click",this.filterFn),e(window).off("hashchange",this.hashchange)}},load_posts:function(a,i,o,n,s,r,l){var d="";o.hasClass("archive-products")&&null!=(d=new URLSearchParams(location.search.substring(1)).get("gridcookie"))&&""!=d&&"grid"!=d&&(l=t.addUrlParam(l,"gridcookie",d));var p=o.attr("id"),c=this,h=o.hasClass("archive-posts"),m=function(m,f){if(m){void 0!==f&&!0===f||void 0!==r||!p||(c.cache[p]||(c.cache[p]={}),c.cache[p][a+d]=m);var u=e(m),g=o.hasClass("archive-products"),v=u.find(h?".archive-posts .posts-wrap":".posts-wrap").children();if(v.length&&((void 0===s||h)&&(s=o.find("."+n+"s-container")),s.length)){s.data("isotope")?s.isotope("remove",s.children()):s.children().remove(),s.hasClass("owl-loaded")&&s.removeClass("owl-loaded"),v.children().addClass("fadeInUp animated"),s.append(v),t.refreshVCContent(v);var w=o.find("."+n+"-filter");if(w.length&&!w.hasClass("porto-ajax-filter")&&!o.hasClass("load-infinite")&&!o.hasClass("load-more")){var y=u.find((h?".archive-posts ":"")+"."+n+"-filter");y.length&&(w.find("li:first-child").trigger("click"),t.PostFilter.destroy(w),w.replaceWith(y),t.PostFilter.initialize(y,n),t.PostFilter.set_elements(e("ul[data-filter-type], ul.portfolio-filter, ul.member-filter, ul.faq-filter, .porto-ajax-filter.product-filter, .porto-ajax-filter.post-filter")))}porto_init(o);var _="";_="product"!=n&&"member"!=n&&"faq"!=n&&"portfolio"!=n&&"post"!=n?"ptu":n,t.PostsInfinite[_+"Behavior"](v,s),e(document.body).trigger("porto_init_countdown",[s]);var C=o.find(".pagination-wrap"),b=u.find((h?".archive-posts ":"")+".pagination-wrap").eq(0),x=!1,k=!1;if(C.length?b.length?(C.replaceWith(b),x=!0,k=!0):C.children().remove():b.length&&(o.append(b),x=!0,k=!0),g){let t=e(".woocommerce-pagination");C=t.find("ul.page-numbers"),b=u.find(".woocommerce-pagination ul.page-numbers").eq(0),x=!1;C.length?b.length?(C.replaceWith(b),x=!0):C.children().remove():b.length&&(t.append(b),x=!0)}if(i){var P=s.data("infinitescroll");if(x||g&&k){var j=u.find(h?".archive-posts .posts-wrap":".posts-wrap");j.data("cur_page")&&(s.data("cur_page",j.data("cur_page")),s.data("max_page",j.data("max_page")));var z=!0;if(P&&(P.options.state.isDestroyed?s.removeData("infinitescroll"):(z=!1,j.data("cur_page")&&P.update({maxPage:j.data("max_page"),state:{currPage:j.data("cur_page")}}),P.options.state.isPaused&&P.resume())),z){var F=s.data("__postsinfinite");F&&F.destroy();var $="."+n+", .timeline-date";g&&($=".archive-products .products",e(".elementor-widget-wc-archive-products").length&&($=".elementor-widget-wc-archive-products .products")),new t.PostsInfinite(s,$,s.data("infiniteoptions"),n)}if(h){var I=s.siblings(".pagination-wrap").find(".next").attr("href");I&&(I=(I+=(-1!==I.indexOf("?")?"&":"?")+"portoajax=1&load_posts_only=2").replace(/(paged=)(\d+)|(page\/)(\d+)/,"$1$3%cur_page%"),s.data("page_path",I))}$="."+n+", .timeline-date";g&&($=".archive-products .products",e(".elementor-widget-wc-archive-products").length&&($=".elementor-widget-wc-archive-products .products")),new t.PostsInfinite(s,$,s.data("infiniteoptions"),n)}}if(h){if(e(".sidebar-content").each((function(t){var a=e(this),i=e(u.find(".sidebar-content").get(t));if(a.html(i.html()),g&&"undefined"!=typeof updateSelect2&&updateSelect2){if(jQuery().selectWoo){a.find("select.woocommerce-widget-layered-nav-dropdown").each((function(){e(this).selectWoo({placeholder:e(this).find("option").eq(0).text(),minimumResultsForSearch:5,width:"100%",allowClear:void 0!==e(this).attr("multiple")&&"multiple"==e(this).attr("multiple")?"false":"true"})}))}e("body").children("span.select2-container").remove()}})),g){var L=u.filter('script:contains("var woocommerce_price_slider_params")').first();if(L&&L.length&&-1!==L.text().indexOf("{")&&-1!==L.text().indexOf("}")){var O=L.text().substring(L.text().indexOf("{"),L.text().indexOf("}")+1);window.woocommerce_price_slider_params=JSON.parse(O)}var T=e(".entry-title");if(T.length){var D=u.find(".entry-title").eq(0);D.length&&T.html(D.html())}var S=e(".entry-description");if(S.length){var q=u.find(".entry-description").eq(0);q.length&&S.html(q.html())}var A=".shop-loop-before",W=e(A);W.length&&(u.find(A).length?W.each((function(t){var a=u.find(A).eq(t);a.length&&e(this).html(a.html()).show()})):W.empty());var E=e(".woocommerce-result-count");if(E.length){var Q=u.find(".woocommerce-result-count").eq(0);Q.length&&(E[0].outerHTML=Q.length?Q[0].outerHTML:"")}e(document).trigger("yith_wcan_init_shortcodes"),e(document).trigger("yith-wcan-ajax-filtered")}l&&!navigator.userAgent.match(/msie/i)&&window.history.pushState({pageTitle:m&&m.pageTitle||""},"",l)}e(document.body).trigger("porto_load_posts_end",[o.parent()])}}};if(void 0===r&&void 0!==c.cache[p]&&void 0!==c.cache[p][a+d]&&c.cache[p][a+d])return m(c.cache[p][a+d],!0),c.isLoading=!1,void o.removeClass("porto-ajax-loading").removeClass("loading").find(".porto-loading-icon").remove();var f=o.data("ajax_load_options");if(o.hasClass("archive-products")&&-1!=js_porto_vars.use_skeleton_screen.indexOf("shop")||h&&-1!=js_porto_vars.use_skeleton_screen.indexOf("blog"))if(s=o.find("."+n+"s-container"),f){var u="div";"product"==n&&"ul"==s.get(0).tagName.toLowerCase()&&(u="li"),s.addClass("skeleton-body").empty();for(var g=0;g<Number(f.count||f.columns&&3*f.columns||12);g++)s.append("<"+u+' class="porto-tb-item post '+n+("product"==n?" product-col":"")+'"></'+u+">")}else s.addClass("skeleton-body").children().empty();else o.children(".porto-loading-icon").length||o.append('<i class="porto-loading-icon"></i>'),o.addClass("porto-ajax-loading");var v=window.location.href;-1!==v.indexOf("#")&&(v=v.split("#")[0]);var w,y=t.ajax_url;o.hasClass("archive-posts")?(w={portoajax:!0,load_posts_only:!0},o.closest(".porto-block").length&&(w.builder_id=o.closest(".porto-block").data("id")),y=void 0!==l?l:v):(w={action:"porto_ajax_posts",nonce:js_porto_vars.porto_nonce,post_type:n,current_link:v},o.data("post_layout")&&(w.post_layout=o.data("post_layout")),f&&(w.extra=f),void 0!==r&&(w=e.extend(w,r))),a&&(w.category=a),e.ajax({url:y,type:"post",data:w,success:m,complete:function(){c.isLoading=!1,s.removeClass("skeleton-body"),o.removeClass("porto-ajax-loading").removeClass("loading").find(".porto-loading-icon").remove()}})}}})}.apply(this,[window.theme,jQuery]),function(t,e){"use strict";t=t||{},e.extend(t,{FilterZoom:{defaults:{elements:null},initialize:function(t){return this.$elements=t||this.defaults.elements,this.build(),this},build:function(){return this.$elements.each((function(){var a=e(this);if(a.find(".zoom, .thumb-info-zoom").get(0)){a.find(".zoom, .thumb-info-zoom").off("click");var i=[],o=0;a.find("article").each((function(){var t=e(this);if("none"!=t.css("display")){var a,n=t.find(".zoom, .thumb-info-zoom"),s=n.data("src"),r=n.data("title");n.data("index",o),Array.isArray(s)?e.each(s,(function(t,e){(a={}).src=e,a.title=r[t],i[o]=a,o++})):((a={}).src=s,a.title=r,i[o]=a,o++)}})),a.find("article").each((function(){var a=e(this);"none"!=a.css("display")&&a.off("click",".zoom, .thumb-info-zoom").on("click",".zoom, .thumb-info-zoom",(function(a){var o=e(this),n=o.parents(".thumb-info"),s=0;if(n.get(0)){var r=n.find(".porto-carousel");r.get(0)&&(s=r.data("owl.carousel").current()-r.find(".cloned").length/2)}return a.preventDefault(),e.fn.magnificPopup&&(e.magnificPopup.close(),e.magnificPopup.open(e.extend(!0,{},t.mfpConfig,{items:i,gallery:{enabled:!0},type:"image"}),o.data("index")+s)),!1}))}))}})),this}}})}.apply(this,[window.theme,jQuery]),function(t,e){t.initAsync=function(a,i){e.fn.themeAnimate&&void 0!==i&&e((function(){var a=i.querySelectorAll("svg [data-appear-animation]");a.length&&e(a).closest("svg").attr("data-appear-animation-svg","1");var o=i.querySelectorAll("[data-plugin-animate], [data-appear-animation], [data-appear-animation-svg]");if(o.length){var n=function(){window.innerWidth<768&&(window.removeEventListener("resize",n),o.forEach((function(t){t.classList.add("appear-animation-visible")})))};t.animation_support?(window.addEventListener("resize",n),t.dynIntObsInit(o,"themeAnimate",t.Animate.defaults)):o.forEach((function(t){t.classList.add("appear-animation-visible")}))}})),e.fn.themeCarousel&&e((function(){var i=function(t){for(var e=t.find(".owl-item img"),a=0,i=0;i<e.length;i++){var o=e.eq(i).height();a<o&&(a=o)}t.hasClass("products-slider")?t.children(".owl-nav").css("top",5+a/2+"px"):t.children(".owl-nav").css("top",a/2+"px")},o=a.find(".owl-carousel:not(.manual)");o.on("initialized.owl.carousel refreshed.owl.carousel",(function(a){var o=e(a.currentTarget);if(o.find("[data-appear-animation]:not(.appear-animation)").addClass("appear-animation"),o.find(".owl-item.cloned").length){o.find("img.lazy:not(.loaded)").length&&("object"==typeof window.w3tc_lazyload?window.w3tc_lazyload.update():t.w3tcLazyLoadInstance&&t.w3tcLazyLoadInstance.update()),o.find(".porto-lazyload:not(.lazy-load-loaded)").themePluginLazyLoad({effect:"fadeIn",effect_speed:400});var n=a.currentTarget.querySelectorAll(".appear-animation");n.length&&(t.animation_support?t.dynIntObsInit(n,"themeAnimate",t.Animate.defaults):n.forEach((function(t){t.classList.add("appear-animation-visible")}))),e.fn.themePluginAnimatedLetters&&e(this).find(".owl-item.cloned [data-plugin-animated-letters]:not(.manual)").length&&t.dynIntObsInit(e(this).find(".owl-item.cloned [data-plugin-animated-letters]:not(.manual)"),"themePluginAnimatedLetters")}setTimeout((function(){var a=o.find(".owl-item:not(.active)");t.animation_support&&(a.find(".appear-animation").removeClass("appear-animation-visible"),a.find(".appear-animation").each((function(){var t=e(this),a=Math.abs(t.data("appear-animation-delay")?t.data("appear-animation-delay"):0);a>1&&(this.style.animationDelay=a+"ms");var i=Math.abs(t.data("appear-animation-duration")?t.data("appear-animation-duration"):1e3);1e3!=i&&(this.style.animationDuration=i+"ms")}))),window.innerWidth>=1200&&a.find("[data-vce-animate]").removeAttr("data-vcv-o-animated"),o.hasClass("nav-center-images-only")&&i(o)}),300)})).on("translated.owl.carousel",(function(a){var i=e(a.currentTarget),o=i.find(".owl-item.active");o.hasClass("translating")?o.removeClass("translating"):(i.find(".owl-item.translating").removeClass("translating"),i.find("[data-plugin-animated-letters]").removeClass("invisible"),i.find(".owl-item.active [data-plugin-animated-letters]").trigger("animated.letters.initialize"),window.innerWidth>767&&(i.find(".appear-animation").removeClass("appear-animation-visible"),o.find(".appear-animation").each((function(){var t=e(this),a=t.data("appear-animation");t.addClass(a+" appear-animation-visible")}))),window.innerWidth>991&&i.closest("[data-plugin-sticky]").length&&t.refreshStickySidebar(!1,i.closest("[data-plugin-sticky]")),o.find(".slide-animate").each((function(){var a=e(this),i=a.data("settings");if(i&&(i._animation||i.animation)){var o=i._animation||i.animation,n=i._animation_delay||i.animation_delay||0;t.requestTimeout((function(){a.removeClass("elementor-invisible").addClass("animated "+o)}),n)}})),window.innerWidth>=1200&&(i.find("[data-vce-animate]").removeAttr("data-vcv-o-animated").removeAttr("data-vcv-o-animated-fully"),o.find("[data-vce-animate]").each((function(){var t=e(this);if(t.data("porto-origin-anim")){var a=t.data("porto-origin-anim");t.attr("data-vce-animate",a).attr("data-vcv-o-animated",!0);var i=1e3*parseFloat(window.getComputedStyle(this).animationDuration),o=1e3*parseFloat(window.getComputedStyle(this).animationDelay);window.setTimeout((function(){t.attr("data-vcv-o-animated-fully",!0)}),o+i+5)}}))))})),o.on("translate.owl.carousel",(function(){e(this).find("[data-plugin-animated-letters]").addClass("invisible"),e(this).find("[data-plugin-animated-letters]").trigger("animated.letters.destroy")})),o.on("resized.owl.carousel",(function(){var t=e(this);t.hasClass("nav-center-images-only")&&i(t)})),o.filter((function(){return!!e(this).find("[data-vce-animate]").length})).on("translate.owl.carousel",(function(t){var a=e(t.currentTarget);a.find(".owl-item.active").addClass("translating"),window.innerWidth>=1200&&a.find("[data-vce-animate]").each((function(){var t=e(this);t.data("porto-origin-anim",t.data("vce-animate")).attr("data-vce-animate","")}))})),o.filter((function(){var t=e(this).find(".elementor-invisible");return!!t.length&&(t.addClass("slide-animate"),!0)})).on("translate.owl.carousel",(function(t){var a=e(t.currentTarget);a.find(".owl-item.active").addClass("translating"),a.find(".owl-item:not(.active) .slide-animate").addClass("elementor-invisible"),a.find(".slide-animate").each((function(){var t=e(this),a=t.data("settings");(a._animation||a.animation)&&t.removeClass(a._animation||a.animation)}))})),o.filter((function(){return!!e(this).find(".appear-animation, [data-appear-animation]").length})).on("translate.owl.carousel",(function(t){if(window.innerWidth>767){var a=e(t.currentTarget);a.find(".owl-item.active").addClass("translating"),a.find(".appear-animation").each((function(){var t=e(this);t.removeClass(t.data("appear-animation"))}))}})),a.find("[data-plugin-carousel]:not(.manual), .porto-carousel:not(.manual)").each((function(){var t,a=e(this);if((!a.closest(".tab-pane").length||a.closest(".tab-pane").hasClass("active"))&&(!a.closest(".e-n-tabs-content > .e-con").length||a.closest(".e-n-tabs-content > .e-con").hasClass("e-active"))&&!a.closest(".sidebar-menu:not(.side-menu-accordion) .menu-block").length&&!a.closest(".mega-menu .menu-block").length){var i=a.data("plugin-options");i&&(t=i),setTimeout((function(){a.themeCarousel(t)}),0)}}))})),a.find(".video-fixed").each((function(){var a=e(this),i=a.find("video, iframe");i.length&&window.addEventListener("scroll",(function(){var o=e(window).scrollTop()-a.position().top+t.adminBarHeight();i.css("cssText","top: "+o+"px !important;")}),{passive:!0})})),setTimeout((function(){void 0!==t.Search&&t.Search.initialize()}),0),e(document.body).trigger("porto_after_async_init",[a,i])},e(document.body).trigger("porto_async_init")}.apply(this,[window.theme,jQuery]),jQuery(document).ready((function(t){"use strict";function e(e){var a=e.data("trigger-id"),i=e.data("overlay-class"),o=e.data("disable-overlay"),n=e.data("extra-class")?e.data("extra-class"):"",s=e.data("type");if(void 0!==a){void 0===s&&(s="inline"),"inline"==s&&(a="#"+escape(a));var r={items:{src:a},type:s,mainClass:n+(o?" popup-builder-disable-overlay ":""),prependTo:t(".page-wrapper")};"#popup-builder"==a&&(r.fixedContentPos=!0);var l=e;(e.hasClass("porto-onload")||e.hasClass("porto-exit-intent"))&&(o&&(r.closeOnBgClick=!1,r.fixedContentPos=!1,r.focus=".bb-none"),r.callbacks={beforeClose:function(){t(".mfp-wrap .porto-disable-modal-onload").length&&(t(".mfp-wrap .porto-disable-modal-onload").is(":checked")||t('.mfp-wrap .porto-disable-modal-onload input[type="checkbox"]').is(":checked"))?t.cookie("porto_modal_disable_onload","true",{expires:7}):void 0!==l.data("expired")&&void 0!==l.data("popup-id")&&t.cookie("porto_modal_disable_period_onload_"+l.data("popup-id"),l.data("expired"),{expires:l.data("expired")})},afterClose:function(){t("#header .minicart-opened").length&&(t("html").css(theme.rtl_browser?"margin-left":"margin-right",theme.getScrollbarWidth()),t("html").css("overflow","hidden"))},open:function(){o&&t(".popup-builder.mfp-bg").remove();var e=t(".mfp-wrap .porto-block[data-bs-original-title]");e.length&&bootstrap.Tooltip.getInstance(e[0]).update(),t(".mfp-wrap .porto-block .owl-carousel")&&t(".mfp-wrap .porto-block .owl-carousel").trigger("refresh.owl.carousel")}}),void 0!==i&&i&&(r.mainClass+=escape(i)),setTimeout((()=>{t.magnificPopup.open(t.extend(!0,{},theme.mfpConfig,r),0)}))}}function a(a){if(void 0!==a&&a.length||(a=t(document.body)),a.find(".lightbox:not(.manual)").each((function(){var e,a=t(this);if(!a.find(">.lb-dataContainer").length){var i=a.data("lightbox-options");i?e=i:("object"!=typeof(i=a.data("plugin-options"))&&(i=JSON.parse(i)),i&&(e=i)),a.themeLightbox(e)}})),a.find(".porto-popup-iframe").magnificPopup(t.extend(!0,{},theme.mfpConfig,{disableOn:700,type:"iframe",mainClass:"mfp-fade",removalDelay:160,preloader:!1,fixedContentPos:!1})),a.find(".porto-popup-ajax").magnificPopup(t.extend(!0,{},theme.mfpConfig,{type:"ajax"})),a.find(".porto-popup-content").each((function(){var e=t(this).attr("data-animation");t(this).magnificPopup(t.extend(!0,{},theme.mfpConfig,{type:"inline",fixedContentPos:!1,fixedBgPos:!0,overflowY:"auto",closeBtnInside:!0,preloader:!1,midClick:!0,removalDelay:300,mainClass:e}))})),a.find(".popup-youtube, .popup-vimeo, .popup-gmaps").each((function(e){var a=t(this).find(".porto-modal-trigger").data("overlay-class"),i={type:"iframe",removalDelay:160,preloader:!1,fixedContentPos:!1};void 0!==a&&a&&(i.mainClass=escape(a)),t(this).magnificPopup(i)})),a.find(".porto-modal-trigger.porto-onload").length){var i=a.find(".porto-modal-trigger.porto-onload").eq(0),o=0;i.data("timeout")&&(o=parseInt(i.data("timeout"),10)),setTimeout((function(){e(i)}),o)}if(a.on("click",".porto-modal-trigger",(function(a){a.preventDefault(),e(t(this))})),a.hasClass("login-popup")&&a.find(".porto-link-login, .porto-link-register").magnificPopup({items:{src:theme.ajax_url+(-1===theme.ajax_url.indexOf("?")?"?":"&")+"action=porto_account_login_popup&nonce="+js_porto_vars.porto_nonce,type:"ajax"},tLoading:'<i class="porto-loading-icon"></i>',callbacks:{ajaxContentAdded:function(){t(window).trigger("porto_login_popup_opened")}}}),"undefined"!=typeof PhotoSwipe){let e=a.find(".product-images"),i=[],o=0;e.find("img").each((function(){var e={};e.src=t(this).attr("href"),e.title=t(this).attr("alt"),e.w=parseInt(t(this).attr("data-large_image_width")),e.h=parseInt(t(this).attr("data-large_image_height")),i[o]=e,o++})),e.data("links",i),e.on("click",".img-thumbnail a.zoom",(function(a){a.preventDefault();var i=t.extend({index:t(this).closest(".img-thumbnail").index(),addCaptionHTMLFn:function(t,e){return t.title?(e.children[0].textContent=t.title,!0):(e.children[0].textContent="",!1)}},wc_single_product_params.photoswipe_options);new PhotoSwipe(t(".pswp")[0],PhotoSwipeUI_Default,e.data("links"),i).init()}))}else a.find(".product-images").magnificPopup(t.extend(!0,{},theme.mfpConfig,{delegate:".img-thumbnail a.zoom",type:"image",gallery:{enabled:!0}}));a.find(".porto-posts-grid").each((function(){t(this).magnificPopup(t.extend(!0,{},theme.mfpConfig,{delegate:".porto-tb-featured-image span.zoom, .porto-tb-featured-image a.zoom, .post-image span.zoom",type:"image",gallery:{enabled:!0}}))})),a.find(".porto-posts-grid .tb-image-type-slider div.zoom").each((function(){var e=t(this),a=[];e.find("a").each((function(){var e={};e.src=t(this).attr("href"),e.title=t(this).attr("title"),a.push(e)})),a.length&&e.on("click",(function(){var i=e.siblings(".porto-carousel");if(i.length){var o=i.data("owl.carousel").current()-i.find(".cloned").length/2;t.magnificPopup.open(t.extend(!0,{},theme.mfpConfig,{items:a,gallery:{enabled:!0},type:"image"}),o)}}))}))}if(theme.porto_modal_open=e,t.fn.magnificPopup?a():setTimeout((function(){t.fn.magnificPopup&&a()}),500),t(document.body).on("porto_load_posts_end",(function(e,i){t.fn.magnificPopup&&a(i)})),void 0!==theme.PostFilter){var i=t("ul[data-filter-type], .portfolio-filter, .member-filter, .faq-filter, .porto-ajax-filter.product-filter, .porto-ajax-filter.post-filter");i.length&&theme.PostFilter.initialize(i)}t("body").on("click",".porto-ajax-load .pagination:not(.load-more) .page-numbers",(function(e){var a=t(this);if(!a.hasClass("current")&&!a.hasClass("dots")){e.preventDefault();var i=a.closest(".porto-ajax-load"),o=i.data("post_type"),n=i.find("."+o+"s-container");if(n.length&&!i.hasClass("loading")){i.addClass("loading");var s=i.find(".porto-ajax-filter"),r=s.length&&s.children(".active").length&&s.children(".active").data("filter");"*"==r&&(r="");var l={},d=a.attr("href").match(/paged=(\d+)|page\/(\d+)/);d&&Array.isArray(d)&&(d[1]||d[2])?l.page=parseInt(d[1]||d[2]):a.hasClass("prev")?l.page=parseInt(a.next().text()):a.hasClass("next")?l.page=parseInt(a.prev().text()):l.page=parseInt(a.text()),""==r&&i.find("input[type=hidden].category").length&&(r=i.find("input[type=hidden].category").val(),l.taxonomy=i.find("input[type=hidden].taxonomy").val()),theme.PostFilter.load_posts(r,i.hasClass("load-infinite"),i,o,n,l,a.attr("href"))}}})),void 0!==theme.FilterZoom&&(theme.FilterZoom.initialize(t(".page-portfolios")),theme.FilterZoom.initialize(t(".page-members")),theme.FilterZoom.initialize(t(".blog-posts-related")));var o=t(".minicart-offcanvas"),n=t(".wishlist-offcanvas"),s=t(".mobile-sidebar"),r=t("#side-nav-panel"),l=t("#header .btn-close-search-form"),d=t("html");(o.length||n.length||s.length||r.length||t(".skeleton-loading").length||l.length)&&(t(document.documentElement).on("keyup",(function(e){try{27==e.keyCode&&(o.removeClass("minicart-opened"),n.removeClass("minicart-opened"),s.length&&(d.removeClass("filter-sidebar-opened"),d.removeClass("sidebar-opened"),t(".sidebar-overlay").removeClass("active"),t("html").css("overflow",""),t("html").css(theme.rtl_browser?"margin-left":"margin-right","")),r.length&&d.hasClass("panel-opened")&&(d.removeClass("panel-opened"),t(".panel-overlay").removeClass("active")),l.length&&l.trigger("click"))}catch(t){}})),t(".skeleton-loading").on("skeleton-loaded",(function(){s=t(".mobile-sidebar")})))}));
function porto_woocommerce_init(t){"use strict";var o;t||(t=jQuery(document.body)),(o=jQuery).fn.themeWooWidgetToggle&&o((function(){t.find(".widget_filter_by_brand, .widget_product_categories, .widget_price_filter, .widget_layered_nav, .widget_layered_nav_filters, .widget_rating_filter, .widget-woof, .porto_widget_price_filter, #wcfmmp-store .widget.sidebar-box, #wcfmmp-store-lists-sidebar .sidebar-box").find(".widget-title").each((function(){var t,e=o(this),i=e.data("plugin-options");i&&(t=i),e.themeWooWidgetToggle(t)}))})),o.fn.themeWooWidgetAccordion&&o((function(){t.find(".widget_filter_by_brand, .widget_product_categories, .widget_price_filter, .widget_layered_nav, .widget_layered_nav_filters, .widget_rating_filter, .widget-woof, #wcfmmp-store .widget.sidebar-box, #wcfmmp-store-lists-sidebar .sidebar-box").each((function(){var t,e=o(this),i=e.data("plugin-options");i&&(t=i),e.themeWooWidgetAccordion(t)}))})),o.fn.themeWooProductsSlider&&o((function(){var e=t.find(".products-slider:not(.manual)").filter((function(){return!o(this).closest(".porto-carousel:not(.owl-loaded)").length})),i=t.find(".porto-carousel:not(.owl-loaded)").filter((function(){return!!o(this).find(".products-slider:not(.manual)").length}));i.length&&i.one("initialized.owl.carousel",(function(){o(this).find(".products-slider:not(.manual)").each((function(){var t=o(this);t.themeWooProductsSlider(t.data("plugin-options"))}))})),e.each((function(){var t,e=o(this),i=e.data("plugin-options");i&&(t=i),setTimeout((function(){e.themeWooProductsSlider(t)}),0)}))})),theme.isMobile()||t.find(".product-col .quickview, .product-col .add_to_cart_read_more, .product-col .add_to_cart_button, .product-col a.compare, .product-col .add_to_wishlist, .product-col .yith-wcwl-wishlistaddedbrowse > a, .product-col .yith-wcwl-wishlistexistsbrowse > a").each((function(){let t=o(this),e=t.closest(".product-col");if(!t.closest(".porto-tb-woo-link").hasClass("no-tooltip")){if(t.hasClass("add_to_cart_read_more")||t.hasClass("add_to_cart_button")){if(e.hasClass("product-wq_onimage")||e.hasClass("product-onimage")||e.hasClass("product-outimage")||e.hasClass("product-default"))return;if(t.closest("ul.products").hasClass("list"))return}t.hasClass("quickview")&&(e.hasClass("product-wq_onimage")||e.hasClass("product-onimage3")||e.hasClass("product-onimage2")||e.hasClass("product-onimage")||e.hasClass("product-outimage_aq_onimage"))||(t.attr("title")||t.attr("title",t.text().trim()),t.tooltip())}}))}function porto_woocommerce_variations_init(t){"use strict";theme.requestTimeout((function(){var o=t.find("form.variations_form:not(.vf_init)");o.length&&jQuery.fn.wc_variation_form&&o.each((function(){var t=jQuery._data(this,"events");t&&t.show_variation||jQuery(this).wc_variation_form()}))}),100)}function porto_ajax_load_products(t,o,e,i,a,r){"use strict";var n;n=jQuery,t.hasClass("loading")||(t.addClass("loading"),"load_more"!=e&&(t.addClass("yith-wcan-loading"),t.children(".porto-loading-icon").length||t.append('<i class="porto-loading-icon"></i>')),null==i[a]&&(i[a]={}),n.ajax({url:theme.ajax_url,data:o,type:"post",success:function(o){n(o).length?i[a][r]=n(o).html():i[a][r]="",porto_ajax_load_products_success(t,o,e)},complete:function(){t.removeClass("loading")}}))}function porto_ajax_load_products_success(t,o,e){"use strict";!function(i){let a=i(o).find("ul.products");if(t.data("cur_page")&&a.data("cur_page")&&t.data("cur_page",a.data("cur_page")),t.hasClass("grid-creative")&&void 0!==t.attr("data-plugin-masonry")||a.children(":not(.grid-col-sizer)").addClass("fadeInUp animated"),"load_more"==e)t.append(a.html());else if(t.hasClass("owl-carousel")&&t.parent().css("min-height",t.parent().height()),t.hasClass("grid-creative")&&void 0!==t.attr("data-plugin-masonry")){t.isotope("remove",t.children()),t.find(".grid-col-sizer").remove();var r=a.children();t.append(r),t.isotope("appended",r),t.imagesLoaded((function(){t.isotope("layout")}))}else i(o).length?t.html(a.html()):t.html("");if(t.hasClass("owl-carousel")&&i.fn.themeWooProductsSlider&&(t.trigger("destroy.owl.carousel"),theme.requestTimeout((function(){var o,e=t.data("plugin-options");e&&(o=e),t.data("__wooProductsSlider","").themeWooProductsSlider(o),t.parent().css("min-height","")}),100)),t.closest(".porto-products").find(".shop-loop-after").length&&(i(o).find(".shop-loop-after").length?t.closest(".porto-products").find(".shop-loop-after").replaceWith(i(o).find(".shop-loop-after")):t.closest(".porto-products").find(".shop-loop-after").remove()),void 0!==t.data("infinitescroll")){var n=t.data("infinitescroll");n.options.state.currPage=1,t.data("infinitescroll",n)}t.removeClass("yith-wcan-loading"),"load_more"==e&&void 0!==t&&void 0!==t.data("text")&&t.text(t.data("text")),i(document).trigger("yith-wcan-ajax-filtered")}(jQuery)}!function(){"use strict";function t(t,o){var e=t.find(".show-nav-title .owl-nav");if(e.length&&(window.theme.rtl?e.css("left",o):e.css("right",o),e.closest(".porto-products").length&&e.closest(".porto-products").parent().children(".products-slider-title").length)){var i=e.closest(".porto-products").parent().children(".products-slider-title"),a=i.offset().top-t.offset().top-parseInt(i.css("padding-top"),10)-parseInt(i.css("line-height"),10)/2+e.children().outerHeight()-parseInt(e.children().css("margin-top"),10);e.css("margin-top",a)}}var o;"undefined"!=typeof yith_wcwl_l10n&&(yith_wcwl_l10n.enable_tooltip=!1),jQuery(document).on("yith_wcwl_add_to_wishlist_data",(function(t,o){o.length&&o.tooltip("dispose")})),"function"==typeof jQuery.fn.owlCarousel&&function(o,e){var i="__wooProductsSlider",a=function(t,o){return this.initialize(t,o)};a.defaults={rtl:(o=o||{}).rtl,autoplay:"1"==o.slider_autoplay,autoplayTimeout:o.slider_speed?o.slider_speed:5e3,loop:o.slider_loop,nav:!1,navText:["",""],dots:!1,autoplayHoverPause:!0,items:1,responsive:{},autoHeight:!0,lazyLoad:!0},a.prototype={initialize:function(t,o){return t.data(i)||(this.$el=t,this.setData().setOptions(o).build()),this},setData:function(){return this.$el.data(i,!0),this},setOptions:function(t){return this.options=e.extend(!0,{},a.defaults,t,{wrapper:this.$el}),this},calcOwlHeight:function(t){var o=0;t.find(".owl-item.active").each((function(){o<e(this).height()&&(o=e(this).height())})),t.find(".owl-stage-outer").height(o)},build:function(){var i,a=this.options.wrapper,r=this.options.lg,n=this.options.md,s=this.options.xs,c=this.options.ls,d=a.closest(".slider-wrapper"),l=this.options.single,u=(this.options.dots,this.options.nav,{}),p=a.find("> *").length,m=o.screen_xl-0,f=o.screen_xxl-0;if(a.find(".product-col").get(0)&&t(d,a.find(".product-col").css("padding-left")),l?i=1:(i=r||1,this.options.xl&&(u[f]={items:this.options.xl,loop:!!(this.options.loop&&p>this.options.xl)}),u[m]={items:i,loop:!!(this.options.loop&&p>i)},n&&(u[768]={items:n,loop:!!(this.options.loop&&p>n)}),s&&(u[576]={items:s,loop:!!(this.options.loop&&p>s)}),c&&(u[0]={items:c,loop:!!(this.options.loop&&p>c)})),this.options=e.extend(!0,{},this.options,{loop:!!(this.options.loop&&p>i),items:i,responsive:u,onRefresh:function(){a.find(".product-col").get(0)&&t(d,a.find(".product-col").css("padding-left"))},onInitialized:function(){a.find(".product-col").get(0)&&t(d,a.find(".product-col").css("padding-left")),a.find(".owl-item.cloned").length&&setTimeout((function(){var t=a.find(".owl-item.cloned .porto-lazyload:not(.lazy-load-loaded)").themePluginLazyLoad({effect:"fadeIn",effect_speed:400});t&&t.loadAndDestroy&&t.loadAndDestroy()}),100)},touchDrag:1!=p,mouseDrag:1!=p}),this.options.autoHeight){var h=this;e(window).on("resize",(function(){h.calcOwlHeight(a)})),o.isLoaded?setTimeout((function(){h.calcOwlHeight(a)}),100):e(window).on("load",(function(){h.calcOwlHeight(a)}))}return a.owlCarousel(this.options),this}},e.extend(o,{WooProductsSlider:a}),e.fn.themeWooProductsSlider=function(t){return this.map((function(){var a=e(this);return a.data(i)?a:new o.WooProductsSlider(a,t)}))}}.apply(this,[window.theme,jQuery]),function(t,o){var e;try{e="sessionStorage"in window&&null!==window.sessionStorage,window.sessionStorage.setItem("wc","test"),window.sessionStorage.removeItem("wc")}catch(t){e=!1}var i=function(){o(document).off("click",".widget_shopping_cart .remove-product, .shop_table.cart .remove-product, .shop_table.review-order .remove-product").on("click",".widget_shopping_cart .remove-product, .shop_table.cart .remove-product, .shop_table.review-order .remove-product",(function(e){e.preventDefault();var i=o(this),a=i.data("cart_id"),n=i.data("product_id");return i.closest("li").find(".ajax-loading").show(),void 0===a&&(!0,a=i.closest(".cart_item").data("key")),o.ajax({type:"POST",dataType:"json",url:t.ajax_url,data:{action:"porto_cart_item_remove",nonce:js_porto_vars.porto_nonce,cart_id:a},success:function(t){r(t),o(document.body).trigger("wc_fragments_refreshed");var e=window.location.toString(),i=o(t.fragments["div.widget_shopping_cart_content"]).find(".mini_cart_item").length;e=e.replace("add-to-cart","added-to-cart"),o(".viewcart-"+n).removeClass("added"),o(".porto_cart_item_"+a).remove(),0==i&&(o("body").hasClass("woocommerce-cart")||o("body").hasClass("woocommerce-checkout"))?o(".page-content").fadeTo(400,.8).block({message:null,overlayCSS:{opacity:.2}}):o("form.woocommerce-cart-form, #order_review, .updating, .cart_totals").fadeTo(400,.8).block({message:null,overlayCSS:{opacity:.2}}),o(".widget_shopping_cart, .updating").stop(!0).css("opacity","1").unblock(),0==i&&(o("body").hasClass("woocommerce-cart")||o("body").hasClass("woocommerce-checkout"))?o(".page-content").load(e+" .page-content:eq(0) > *",(function(){o(".page-content").stop(!0).css("opacity","1").unblock()})):(o("form.woocommerce-cart-form").load(e+" form.woocommerce-cart-form:eq(0) > *",(function(){o("form.woocommerce-cart-form").stop(!0).css("opacity","1").unblock()})),o(".cart_totals").load(e+" .cart_totals:eq(0) > *",(function(){o(".cart_totals").stop(!0).css("opacity","1").unblock()})),o("#order_review").load(e+" #order_review:eq(0) > *",(function(){o("#order_review").stop(!0).css("opacity","1").unblock()})))}}),!1}))},a=function(){i(),o.cookie("woocommerce_items_in_cart")>0?o(".hide_cart_widget_if_empty").closest(".widget_shopping_cart").show():o(".hide_cart_widget_if_empty").closest(".widget_shopping_cart").hide()},r=function(t){if(t&&t.fragments){var i=t.fragments,a=t.cart_hash;if(o.each(i,(function(t,e){o(t).replaceWith(e)})),"undefined"==typeof wc_cart_fragments_params)return;if(e){var r=sessionStorage.getItem("wc_cart_hash");null!=r&&""!==r||e&&sessionStorage.setItem("wc_cart_created",(new Date).getTime()),sessionStorage.setItem(wc_cart_fragments_params.fragment_name,JSON.stringify(i)),function(t){e&&wc_cart_fragments_params&&(localStorage.setItem(wc_cart_fragments_params.cart_hash_key,t),sessionStorage.setItem(wc_cart_fragments_params.cart_hash_key,t))}(a)}}};o((function(){a(),o(document).on("click",".add_to_cart_button",(function(e){var i=o(this);void 0===t.noAjaxCart&&(t.noAjaxCart=!o("#wc-add-to-cart-js").length),i.is(".product_type_simple")?("SPAN"!=i.prop("tagName")||!t.noAjaxCart&&i.attr("data-product_id")||(window.location.href=i.attr("href")),i.attr("data-product_id")&&i.addClass("product-adding"),o.fn.tooltip&&i.tooltip("hide"),(i.hasClass("viewcart-style-2")||i.hasClass("viewcart-style-3"))&&(0==i.closest(".porto-hotspot").length&&0==i.closest(".menu-block").length&&o("body").append('<div id="loading-mask"><div class="background-overlay"></div></div>'),o(this).closest(".product").find(".loader-container").length||o(this).closest(".product").find(".product-image").append('<div class="loader-container"><div class="loader"><i class="porto-ajax-loader"></i></div></div>'),o(this).closest(".product").find(".loader-container").show())):"SPAN"==i.prop("tagName")&&(window.location.href=i.attr("href"))})),o(document.body).on("added_to_cart",(function(){o("ul.products li.product .added_to_cart, .porto-tb-item .added_to_cart").remove(),i()})),o(document.body).on("wc_cart_button_updated",(function(){o("ul.products li.product .added_to_cart, .porto-tb-item .added_to_cart").remove()})),o(document.body).on("wc_fragments_refreshed wc_fragments_loaded",(function(){a()})),o(document).on("click",".product-image .viewcart, .after-loading-success-message .viewcart",(function(t){wc_add_to_cart_params.cart_url&&(window.location.href=wc_add_to_cart_params.cart_url),t.preventDefault()}));var e,n=null;if(o(document).on("added_to_cart","body",(function(e){var i=o("#mini-cart .cart-items");i.length&&(i.addClass("count-updating"),setTimeout((function(){i.removeClass("count-updating")}),1e3)),o("body #loading-mask").remove(),o(".add_to_cart_button.product-adding").each((function(){var e=o(this);if(e.removeClass("product-adding"),!o(".woocommerce-wishlist.woocommerce-page").length)if(e.hasClass("viewcart-style-1"))e.closest(".product").find(".viewcart").addClass("added"),o(".minicart-offcanvas").addClass("minicart-opened");else{if(e.closest(".product").find(".loader-container").hide(),e.closest("li.outofstock").length)return;var i;if(e.hasClass("viewcart-style-2")?(i=o(".after-loading-success-message .success-message-container").eq(0)).find(".product-name").text(e.closest(".product").find(".woocommerce-loop-product__title").text()):(i=o(".after-loading-success-message .success-message-container").last().clone().removeClass("d-none")).find(".product-name").empty().append(e.closest(".product").find(".product-loop-title, .post-title a").clone()),i.find(".msg-box img").remove(),e.closest(".product").find(".product-image img").length){var a=e.closest(".product").find(".product-image img").eq(0);o("<img />").attr("src",a.data("oi")?a.data("oi"):a.attr("src")).appendTo(i.find(".msg-box"))}o(".after-loading-success-message").eq(0).stop().show(),e.hasClass("viewcart-style-2")?(n&&clearTimeout(n),n=setTimeout((function(){o(".after-loading-success-message").eq(0).hide()}),4e3)):(i.prependTo(".after-loading-success-message"),t.requestTimeout((function(){i.addClass("active")}),50),setTimeout((function(){i.find(".mfp-close").trigger("click")}),5e3))}}))})),o(".after-loading-success-message .continue_shopping").on("click",(function(){o(".after-loading-success-message").eq(0).fadeOut(200)})),o(".after-loading-success-message").on("click",".mfp-close",(function(){var e=o(this).closest(".success-message-container");e.removeClass("active"),t.requestTimeout((function(){e.slideUp(300,(function(){e.remove()}))}),350)})),o(document.body).on("click",".variations_form .variations .filter-item-list .filter-color, .variations_form .variations .filter-item-list .filter-item",(function(t){t.preventDefault();var e=o(this),i=e.closest("ul").siblings("select");if(i.length&&!e.hasClass("disabled")){var a=e.closest("li");a.hasClass("active")?(a.removeClass("active"),i.val("")):(a.addClass("active").siblings().removeClass("active"),i.val(e.data("value"))),i.trigger("change.wc-variation-form")}})),o(document.body).on("click",".porto-general-swatch .filter-color, .porto-general-swatch .filter-item",(function(t){t.preventDefault();var e,i=o(this),a=i.parent(),r=o(this).closest(".product, .product-col");r.hasClass("porto-tb-item")?e=r.find(".porto-tb-featured-image img").eq(0):r.hasClass("product-col")&&(e=r.find("div.product-image .inner img:first-child"));var n=e.data("original-src"),s=e.data("original-srcset "),c=e.data("original-sizes");void 0===n&&(e.data("original-src",e.attr("src")),void 0===s&&e.attr("srcset")&&e.data("original-srcset",e.attr("srcset")),void 0===c&&e.attr("sizes")&&e.data("original-sizes",e.attr("sizes")));var d="",l="",u="";if(i.parent().hasClass("active")?a.removeClass("active"):(i.closest("ul").find("li").removeClass("active"),a.addClass("active"),a.data("image-src")&&(d=a.data("image-src"),l=a.data("image-srcset"),u=a.data("image-sizes"))),!d){var p=i.closest(".porto-general-swatch").find("li.active");p.length&&p.data("image-src")?(d=p.data("image-src"),l=p.data("image-srcset"),u=p.data("image-sizes")):(e.data("original-src")&&(d=e.data("original-src")),e.data("original-srcset")&&(l=e.data("original-srcset")),e.data("original-sizes")&&(u=e.data("original-sizes")))}if(d){e.attr("src",d).attr("srcset",l).attr("image_sizes",u);var m=r.find(".owl-carousel");m.length&&m.trigger("to.owl.carousel",[0,300,!0])}})),o(document).on("wc_variation_form",".variations_form",(function(){o(this).addClass("vf_init"),o(this).find(".filter-item-list").length<1||o(this).find(".variations select").trigger("focusin")})),o(document).on("updated_wc_div",(function(){o(".woocommerce-cart-form .porto-lazyload").themePluginLazyLoad()})),o(document).on("found_variation reset_data",".variations_form",(function(t,e){var i=o(this);i.find(".product-attr-description").length&&(void 0===e?i.find(".product-attr-description").removeClass("active"):(i.find(".product-attr-description").addClass("active"),i.find(".product-attr-description .attr-desc").removeClass("active"),i.find(".variations select").each((function(){var t=o(this);i.find('.product-attr-description .attr-desc[data-attrid="'+t.val()+'"]').addClass("active")})))),i.find(".filter-item-list").length<1||i.find(".filter-item-list").each((function(){if(!(o(this).next("select").length<1)){var t=o(this).next("select"),e=o(this);e.find("li.active").removeClass("active"),e.find(".filter-color, .filter-item").removeClass("enabled").removeClass("disabled"),t.children("option").each((function(){o(this).val()&&(e.find('[data-value="'+o(this).val().replace(/"/g,'\\"')+'"]').addClass("enabled"),o(this).val()==t.val()&&e.find('[data-value="'+o(this).val().replace(/"/g,'\\"')+'"]').parent().addClass("active"))})),e.find(".filter-color:not(.enabled), .filter-item:not(.enabled)").addClass("disabled")}}))})),o(document).on("found_variation reset_data",".variations_form",(function(t,e){var i=o(this).closest(".product"),a=i.find(".sale-product-daily-deal.for-some-variations");if(a.length||(a=i.find(".porto-product-sale-timer").eq(0)).length)if(e&&e.is_purchasable&&void 0!==e.porto_date_on_sale_to&&e.porto_date_on_sale_to){var r=a.find(".porto_countdown-dateAndTime");if(r.data("terminal-date")!=e.porto_date_on_sale_to){var n=new Date(e.porto_date_on_sale_to);r.porto_countdown("option",{until:n}),r.data("terminal-date",e.porto_date_on_sale_to)}a.slideDown()}else a.is(":hidden")?a.hide():a.slideUp()})),o("body").on("click",".product-attr-description > a",(function(t){t.preventDefault(),o(this).next().stop().slideToggle(400)})),o(document.body).hasClass("single-product")&&(o(document).on("woocommerce_variation_has_changed",".variations_form",(function(t,e){o(document.body).removeClass("single-add-to-cart")})),o(document).on("found_variation",".variations_form",(function(e,i){try{var a=JSON.parse(sessionStorage.getItem(wc_cart_fragments_params.fragment_name));if(a["div.widget_shopping_cart_content"])o(a["div.widget_shopping_cart_content"]).find(".porto-variation-"+i.variation_id).length&&t.requestFrame((function(){o(document.body).addClass("single-add-to-cart")}))}catch(e){}}))),o(document).on("change input",".cart_list .quantity .qty, .woocommerce-checkout-review-order-table .quantity .qty",(function(){var i=o(this),a="",n=i.val(),s=i.attr("max"),c=!1;clearTimeout(e),parseInt(n)>parseInt(s)&&(n=s),i.closest(".cart_list").length?a=i.parents(".woocommerce-mini-cart-item").data("key"):(c=!0,a=i.closest(".cart_item").data("key")),e=setTimeout((function(){c||i.parents(".mini_cart_item").find(".ajax-loading").show(),o.ajax({url:t.ajax_url,data:{action:"porto_update_cart_item",item_id:a,qty:n},success:function(t){t&&t.fragments&&(r(t),o(document.body).trigger("wc_fragments_refreshed")),c?i.closest("form.checkout").trigger("update"):i.parents(".mini_cart_item").find(".ajax-loading").hide()},dataType:"json",method:"GET"})}),500)})),o("form.woocommerce-cart-form button.update-button-hidden").length>0&&o(document).on("change input","form.woocommerce-cart-form .product-quantity input",(function(){var t=o(this).closest("form").find(".update-button-hidden");t.removeAttr("disabled"),t.click()})),"undefined"!=typeof yith_wcwl_l10n&&yith_wcwl_l10n.reload_on_found_variation&&o(".products-container .variations_form").length){var s=function(){yith_wcwl_l10n.reload_on_found_variation=!0,o(this).closest(".products-container").length&&(yith_wcwl_l10n.reload_on_found_variation=!1)};o(".products-container").one("woocommerce_variation_has_changed woocommerce_variation_select_change",".variations_form",(function(){yith_wcwl_l10n.reload_on_found_variation=!0,o(document).off("update_variation_values",".variations_form",s)})),o(document).on("update_variation_values",".variations_form",s)}}))}.apply(this,[window.theme,jQuery]),function(t,o){t=t||{};var e=300,i=!1;o.extend(t,{WooProductImageSlider:{defaults:{elements:".product-image-slider"},initialize:function(t){return this.$elements=t||o(this.defaults.elements),this.$elements.length||o(".product-images-block").length?(this.build(),this):this},build:function(){var e=this,i=t.product_thumbs_count;if(t.product_zoom&&(!("ontouchstart"in document)||"ontouchstart"in document&&t.product_zoom_mobile)){var a={responsive:!0,zoomWindowFadeIn:200,zoomWindowFadeOut:100,zoomType:js_porto_vars.zoom_type,cursor:"grab"};if("lens"==js_porto_vars.zoom_type&&(a.scrollZoom=js_porto_vars.zoom_scroll,a.lensSize=js_porto_vars.zoom_lens_size,a.lensShape=js_porto_vars.zoom_lens_shape,a.containLensZoom=js_porto_vars.zoom_contain_lens,a.lensBorderSize=js_porto_vars.zoom_lens_border,a.borderColour=js_porto_vars.zoom_border_color),"inner"==js_porto_vars.zoom_type?a.borderSize=0:a.borderSize=js_porto_vars.zoom_border,a.zoomActivation="dbltouch",!e.$elements.length){var r=o(".product-images-block");r.length&&e.initZoom(r,a)}}return e.$elements.each((function(){var r=o(this),n=r.closest(".product");n.length||(n=r.closest(".product_layout, .product-layout-image").eq(0));var s=n.find(".product-thumbs-slider"),c=n.find(".product-thumbnails-inner"),d=n.find(".product-thumbs-vertical-slider"),l=0,u=r.find("> *").length;r.find("> *:first-child").imagesLoaded((function(){var n=[];if(t.product_image_popup){var p=0;r.find("img").each((function(){var t={},e=o(this);e.closest(".vd-image").length||(t.src=e.attr("href"),t.title=e.attr("alt"),t.w=parseInt(e.attr("data-large_image_width")),t.h=parseInt(e.attr("data-large_image_height")),n[p]=t,p++)}))}if(o.fn.owlCarousel){if(s.removeClass("has-ccols-spacing"),s.owlCarousel({rtl:t.rtl,loop:!1,autoplay:!1,items:i,nav:!1,navText:["",""],dots:!1,rewind:!0,margin:8,stagePadding:1,lazyLoad:!0,onInitialized:function(){e.selectThumb(null,s,0),s.find(".owl-item").length>=i&&s.append('<div class="thumb-nav"><div class="thumb-prev"></div><div class="thumb-next"></div></div>')}}).on("click",".owl-item",(function(){e.selectThumb(r,s,o(this).index())})),d.length>0&&"function"==typeof o.fn.slick){var m={dots:!1,vertical:!0,slidesToShow:i,slidesToScroll:1,infinite:!1};i>=5&&(m.responsive=[{breakpoint:992,settings:{slidesToShow:4}},{breakpoint:768,settings:{slidesToShow:3}}]),d.slick(m).on("click",".img-thumbnail",(function(){e.selectVerticalSliderThumb(r,d,o(this).data("slick-index"))})),o(".product-layout-transparent .product-image-slider").on("resized.owl.carousel",(function(){o(window).trigger("resize.slick")})),e.selectVerticalSliderThumb(null,d,0),d.find(".porto-lazyload").length&&t.requestTimeout((function(){d.find(".slick-cloned .porto-lazyload:not(.lazy-load-loaded)").each((function(){o(this).attr("src",o(this).data("oi")).removeAttr("data-oi").addClass("lazy-load-loaded")}))}),100)}e.selectVerticalThumb(null,c,0),c.off("click",".img-thumbnail").on("click",".img-thumbnail",(function(){e.selectVerticalThumb(r,c,o(this).index())})),s.off("click",".thumb-prev").on("click",".thumb-prev",(function(t){var o=s.data("currentThumb");e.selectThumb(r,s,--o)})),s.off("click",".thumb-next").on("click",".thumb-next",(function(t){var o=s.data("currentThumb");e.selectThumb(r,s,++o)}));var f=void 0!==r.data("items")?r.data("items"):1,h=void 0!==r.data("responsive")?r.data("responsive"):{},_=void 0!==r.data("centeritem"),g=void 0!==r.data("margin")?r.data("margin"):0,v=u>1&&(void 0===r.data("loop")||r.data("loop"));for(var w in h)h[w]={items:h[w]};r.removeClass("has-ccols-spacing"),r.owlCarousel({rtl:t.rtl,loop:v,autoplay:!1,items:f,margin:g,responsive:h,autoHeight:!0,nav:!0,navText:["",""],dots:!1,rewind:!0,lazyLoad:!0,center:_,onInitialized:function(){r.find(".owl-item.cloned").length&&setTimeout((function(){var t=r.find(".owl-item.cloned .porto-lazyload:not(.lazy-load-loaded)").themePluginLazyLoad({effect:"fadeIn",effect_speed:400});t&&t.loadAndDestroy&&t.loadAndDestroy()}),100),e.initZoom(r,a)},onTranslate:function(t){l=((l=t.item.index-r.find(".cloned").length/2)+t.item.count)%t.item.count,e.selectThumb(null,s,l),e.selectVerticalThumb(null,c,l),e.selectVerticalSliderThumb(null,d,l)},onRefreshed:function(){t.product_zoom&&(!("ontouchstart"in document)||"ontouchstart"in document&&t.product_zoom_mobile)&&r.find("img").each((function(){var t=o(this),e=void 0!==t.attr("href")?t.attr("href"):t.data("oi")?t.data("oi"):t.attr("src"),i=t.data("elevateZoom"),r=t.data("src")?t.data("src"):t.data("oi")?t.data("oi"):t.attr("src");void 0!==i?(i.startZoom(),i.swaptheimage(r,e)):o.fn.elevateZoom&&(a.zoomContainer=t.parent(),t.closest(".vd-image").length||t.elevateZoom(a))}))}})}else e.initZoom(r,a);(r.data("links",n),t.product_image_popup)&&r.siblings(".zoom").off("click").on("click",(function(t){if(r.data("links").length&&(t.preventDefault(),"undefined"!=typeof PhotoSwipe)){var e=o.extend({index:l||0,addCaptionHTMLFn:function(t,o){return t.title?(o.children[0].textContent=t.title,!0):(o.children[0].textContent="",!1)}},wc_single_product_params.photoswipe_options);new PhotoSwipe(o(".pswp")[0],PhotoSwipeUI_Default,r.data("links"),e).init()}}))}))})),e},selectThumb:function(t,a,r){if(!i&&a.length){i=!0;var n=a.find(".owl-item").length,s=[],c=0;r=(r+n)%n,t&&t.trigger("to.owl.carousel",[r,e,!0]),a.find(".owl-item").removeClass("selected"),a.find(".owl-item:eq("+r+")").addClass("selected"),a.data("currentThumb",r),a.find(".owl-item.active").each((function(){s[c++]=o(this).index()})),-1==o.inArray(r,s)&&(Math.abs(r-s[0])>Math.abs(r-s[s.length-1])?a.trigger("to.owl.carousel",[(r-s.length+1)%n,e,!0]):a.trigger("to.owl.carousel",[r%n,e,!0])),i=!1}},selectVerticalSliderThumb:function(t,a,r){if(!i&&a.length&&(i=!0,void 0!==a[0].slick)){var n=a[0].slick.slideCount,s=[],c=0;r=(r+n)%n,t&&t.trigger("to.owl.carousel",[r,e,!0]),a.find(".img-thumbnail").removeClass("selected"),a.find(".img-thumbnail:eq("+r+")").addClass("selected"),a.data("currentThumb",r),a.find(".img-thumbnail.slick-active").each((function(){s[c++]=o(this).index()})),-1==o.inArray(r,s)&&(Math.abs(r-s[0])>Math.abs(r-s[s.length-1])?a.get(0).slick.goTo((r-s.length+1)%n,!1):a.get(0).slick.goTo(r%n,!1)),i=!1}},selectVerticalThumb:function(t,o,a){if(!i&&o.length){i=!0;var r=o.find(".img-thumbnail").length;a=(a+r)%r,t&&t.trigger("to.owl.carousel",[a,e,!0]),o.find(".img-thumbnail").removeClass("selected"),o.find(".img-thumbnail:eq("+a+")").addClass("selected"),o.data("currentThumb",a),i=!1}},initZoom:function(e,i){t.product_zoom&&(!("ontouchstart"in document)||"ontouchstart"in document&&t.product_zoom_mobile)&&e.find("img").each((function(){var t=o(this);i.zoomContainer=t.parent(),o.fn.elevateZoom?t.closest(".vd-image").length||t.elevateZoom(i):setTimeout((function(){o.fn.elevateZoom&&(t.closest(".vd-image").length||t.elevateZoom(i))}),1e3)}))}}})}.apply(this,[window.theme,jQuery]),function(t,o){t=t||{},o.extend(t,{WooQuickView:{initialize:function(){return this.events(),this},events:function(){return o(document).on("click",".quickview",(function(e){if(e.preventDefault(),!o.fn.elevateZoom&&!o("#porto-script-jquery-elevatezoom").length){var i=document.createElement("script");i.id="porto-script-jquery-elevatezoom",o(i).appendTo("body").attr("src",js_porto_vars.ajax_loader_url.replace("/images/ajax-loader@2x.gif","/js/libs/jquery.elevatezoom.min.js"))}var a=o(this).attr("data-id");function r(){var e={href:t.ajax_url,ajax:{data:{action:"porto_product_quickview",variation_flag:"undefined"!=typeof wc_add_to_cart_variation_params,pid:a,nonce:js_porto_vars.porto_nonce}},type:"ajax",helpers:{overlay:{locked:!0,fixed:!0}},tpl:{error:'<p class="fancybox-error">'+t.request_error+"</p>",closeBtn:'<a title="'+js_porto_vars.popup_close+'" class="fancybox-item fancybox-close" href="javascript:;"></a>',next:'<a title="'+js_porto_vars.popup_next+'" class="fancybox-nav fancybox-next" href="javascript:;"><span></span></a>',prev:'<a title="'+js_porto_vars.popup_prev+'" class="fancybox-nav fancybox-prev" href="javascript:;"><span></span></a>'},autoSize:!0,autoWidth:!0,afterShow:function(e){t.requestTimeout((function(){var i=o(".quickview-wrap-"+a);0==i.length&&o(".woocommerce-wishlist").length&&(i=o(".quickview-wrap")),(void 0===e||e)&&porto_woocommerce_init(),t.WooProductImageSlider.initialize(i.find(".product-image-slider")),o(document.body).hasClass("yith-booking")&&o(document).trigger("yith-wcbk-init-booking-form");var r=i.find("form.variations_form");if(r.length>0&&r.wc_variation_form(),o(".quickview-wrap-"+a+" .porto_countdown").length&&!t.isFirstLoad&&void 0===o.fn.porto_countdown){t.isFirstLoad=!0;var n=["countdown.min.js","countdown-loader.min.js"];for(let t=0;t<n.length;t++){var s,c;if(!document.getElementById(n[t]))s=document.createElement("script"),c=document.scripts[0],s.id=n[t],s.src=js_porto_vars.func_url+"shortcodes/assets/js/"+n[t],c.parentNode.insertBefore(s,c)}}if(o(document.body).trigger("porto_init_countdown",[i]),"undefined"!=typeof yith_wcwl_l10n&&yith_wcwl_l10n.enable_ajax_loading&&o(".fancybox-opened .wishlist-fragment").length){var d={},l=o(".fancybox-opened .wishlist-fragment");if(d[l.attr("class").split(" ").filter((t=>t.length&&"exists"!==t)).join(yith_wcwl_l10n.fragments_index_glue)]=l.data("fragment-options"),!d)return;var u={action:yith_wcwl_l10n.actions.load_fragments,context:"frontend",fragments:d};void 0!==yith_wcwl_l10n.nonce&&(u.nonce=yith_wcwl_l10n.nonce.load_fragments_nonce),o.ajax({ajaxData:u,method:"post",success:function(t){void 0!==t.fragments&&o.each(t.fragments,(function(t,e){var i="."+t.split(yith_wcwl_l10n.fragments_index_glue).filter((t=>t.length&&"exists"!==t&&"with-count"!==t)).join("."),a=o(i),r=o(e).filter(i);r.length||(r=o(e).find(i)),a.length&&r.length&&a.replaceWith(r)}))},url:yith_wcwl_l10n.ajax_url})}}),200)},onUpdate:function(){t.requestTimeout((function(){var t=o(".quickview-wrap-"+a);0==t.length&&o(".woocommerce-wishlist").length&&(t=o(".quickview-wrap")),-1!=js_porto_vars.use_skeleton_screen.indexOf("quickview")&&js_porto_vars.quickview_skeleton||porto_woocommerce_init();var e=t.find(".product-image-slider");void 0!==e.data("owl.carousel")&&void 0!==e.data("owl.carousel")._invalidated&&(e.data("owl.carousel")._invalidated.width=!0),e.trigger("refresh.owl.carousel"),o(document.body).trigger("porto_init_countdown",[t])}),300)}};-1!=js_porto_vars.use_skeleton_screen.indexOf("quickview")&&js_porto_vars.quickview_skeleton?(delete e.href,delete e.ajax,e.type="inline",o.fancybox.open(js_porto_vars.quickview_skeleton,e),o.ajax({url:t.ajax_url,type:"post",dataType:"html",data:{action:"porto_product_quickview",variation_flag:"undefined"!=typeof wc_add_to_cart_variation_params,pid:a,nonce:js_porto_vars.porto_nonce},success:function(i){var a=o(i);a.imagesLoaded((function(){o(".skeleton-body.product").replaceWith(a),t.WooQtyField.initialize(),o(window).trigger("resize"),e.afterShow.call(!1)}))}})):"function"==typeof o.fancybox?o.fancybox(e):"object"==typeof o.fancybox&&o.fancybox.version&&0===o.fancybox.version.indexOf("3")&&(e.src=e.href,e.ajax.settings={data:e.ajax.data},o.fancybox.open(e))}if(o.fn.fancybox)r();else if(!o("#porto-script-jquery-fancybox").length){var n=document.createElement("script");n.id="porto-script-jquery-fancybox",o(n).appendTo("body").on("load",(function(){r()})).attr("src",js_porto_vars.ajax_loader_url.replace("/images/ajax-loader@2x.gif","/js/libs/jquery.fancybox.min.js"))}return!1})),"undefined"!=typeof wc_add_to_cart_params&&o(document.body).on("click",".single-product .single_add_to_cart_button:not(.disabled, .wpcbn-btn)",(function(e){if(o(this).closest(".single-product").hasClass("product-type-external")||o(this).closest(".single-product").hasClass("product-type-grouped"))return!0;if(o(this).hasClass("readmore"))return!0;e.preventDefault();var i=o(this),a=i.val(),r=i.closest("form").find('input[name="variation_id"]').val(),n=i.closest("form").find('input[name="quantity"]').val();if(i.hasClass("loading"))return!1;if(i.removeClass("added"),i.addClass("loading"),i.parent().addClass("porto-ajax-loading"),!i.siblings(".porto-loading-icon").length){let t=i.siblings("button:last-of-type");o('<span class="porto-loading-icon"></span>').insertAfter(t.length?t:i)}var s={action:"porto_add_to_cart",product_id:r||a,quantity:n};if(r){var c=i.closest("form").find(".variations select");c.length&&c.each((function(){var t=o(this).data("attribute_name"),e=o(this).val();t&&e&&(s[t]=e)}))}o(document.body).trigger("adding_to_cart",[i,s]),o.ajax({type:"POST",url:t.ajax_url,data:s,dataType:"json",success:function(t){i.parent().removeClass("porto-ajax-loading"),t&&(t.error&&t.product_url?window.location=t.product_url:"yes"!==wc_add_to_cart_params.cart_redirect_after_add?o(document.body).trigger("added_to_cart",[t.fragments,t.cart_hash,i]):window.location=wc_add_to_cart_params.cart_url)}})})),this}}})}.apply(this,[window.theme,jQuery]),function(t,o){t=t||{},o.extend(t,{WooQtyField:{initialize:function(){return this.build().events(),this},qty_handler:function(){var t=o(this);if(t.closest(".quantity").next(".add_to_cart_button[data-quantity]").length){var e=t.val();e&&t.closest(".quantity").next(".add_to_cart_button[data-quantity]").attr("data-quantity",e)}},build:function(){var t=this;return o("div.quantity:not(.buttons_added), td.quantity:not(.buttons_added)").addClass("buttons_added").append('<button type="button" value="+" class="plus">+</button>').prepend('<button type="button" value="-" class="minus">-</button>'),o("input.qty:not(.product-quantity input.qty)").each((function(){var t=parseFloat(o(this).attr("min"));t&&t>0&&parseFloat(o(this).val())<t&&o(this).val(t)})),o("input.qty:not(.product-quantity input.qty)").off("change",t.qty_handler).on("change",t.qty_handler),o(document).off("click",".quantity .plus, .quantity .minus").on("click",".quantity .plus, .quantity .minus",(function(){var t=o(this).closest(".quantity").find(".qty"),e=parseFloat(t.val()),i=parseFloat(t.attr("max")),a=parseFloat(t.attr("min")),r=t.attr("step");e&&""!==e&&"NaN"!==e||(e=0),""!==i&&"NaN"!==i||(i=""),""!==a&&"NaN"!==a||(a=0),"any"!==r&&""!==r&&void 0!==r&&"NaN"!==parseFloat(r)||(r=1),o(this).is(".plus")?i&&(i==e||e>i)?t.val(i):t.val(e+parseFloat(r)):a&&(a==e||e<a)?t.val(a):e>0&&t.val(e-parseFloat(r)),t.trigger("change")})),t},events:function(){var t=this;return o(document).ajaxComplete((function(o,e,i){t.build()})),t}}})}.apply(this,[window.theme,jQuery]),function(t,o){t=t||{};var e=300;o.extend(t,{WooVariationForm:{initialize:function(){return this.init().events(),this},init:function(){return o(".variations_form").each((function(){var t=o(this).find(".reset_variations");"hidden"==t.css("visibility")&&t.hide()})),this},events:function(){o(document).on("check_variations",".variations_form",(function(t,e,i){var a=o(this).find(".reset_variations");"hidden"==a.css("visibility")&&a.hide()})),o(document).on("reset_image",".variations_form",(function(i){var a=o(this).closest(".product, .product-col"),r=a.find("div.product-images .woocommerce-main-image");a.hasClass("porto-tb-item")?r=a.find(".porto-tb-featured-image img").eq(0):a.hasClass("product-col")&&(r=a.find("div.product-image .inner img:first-child"));var n,s=r.attr("data-o_src"),c=r.attr("data-o_title"),d=r.attr("data-o_href"),l=a.find(".woocommerce-main-thumb"),u=l.attr("data-o_src"),p=a.find(".product-image-slider"),m=a.find(".product-thumbs-slider");p.length&&(p.trigger("to.owl.carousel",[0,e,!0]),n=p.data("links")),m.length&&(m.trigger("to.owl.carousel",[0,e,!0]),m.find(".owl-item:eq(0)").trigger("click")),s&&(r.attr("src",s).attr("srcset","").attr("alt",c).attr("href",d),r.each((function(){var t=o(this).data("elevateZoom");void 0!==t&&t.swaptheimage(o(this).attr("src"),o(this).attr("src"))})),t.product_image_popup&&void 0!==n&&(n[0].src=d,n[0].title=c)),u&&l.attr("src",u)})),o(document).on("found_variation",".variations_form",(function(i,a){if(void 0!==a){var r,n=o(this).closest(".product, .product-col"),s=n.find(".product-image-slider"),c=n.find(".product-thumbs-slider");s.length&&(s.trigger("to.owl.carousel",[0,e,!0]),r=s.data("links")),c.length&&(c.trigger("to.owl.carousel",[0,e,!0]),c.find(".owl-item:eq(0)").trigger("click"));var d=n.find("div.product-images .woocommerce-main-image").length?n.find("div.product-images .woocommerce-main-image"):o(".single-product div.product-images .woocommerce-main-image"),l=d.attr("data-o_src"),u=d.attr("data-o_title"),p=d.attr("data-o_href"),m=n.find(".woocommerce-main-thumb"),f=m.attr("data-o_src"),h=a.image_src,_=a.image_link,g=a.image_title,v=a.image_thumb;n.hasClass("porto-tb-item")?(l=(d=n.find(".porto-tb-featured-image img").eq(0)).attr("data-o_src"),h=a.image.thumb_src):n.hasClass("product-col")&&(l=(d=n.find("div.product-image .inner img:first-child")).attr("data-o_src"),h=a.image.thumb_src),l||(l=d.attr("data-oi")?d.attr("data-oi"):d.attr("src")?d.attr("src"):"",d.attr("data-o_src",l)),p||(p=d.attr("href")?d.attr("href"):"",d.attr("data-o_href",p)),u||(u=d.attr("alt")?d.attr("alt"):"",d.attr("data-o_title",u)),f||(f=m.attr("data-oi")?m.attr("data-oi"):m.attr("src")?m.attr("src"):"",m.attr("data-o_src",f)),h?(d.attr("src",h),d.attr("srcset",""),d.attr("alt",g),d.attr("href",_),m.attr("src",v),t.product_image_popup&&void 0!==r&&(r[0].src=_,r[0].title=g)):(d.attr("src",l),d.attr("srcset",""),d.attr("alt",u),d.attr("href",p),m.attr("src",f),t.product_image_popup&&void 0!==r&&(r[0].src=p,r[0].title=u)),d.each((function(){var t=o(this).data("elevateZoom");void 0!==t&&t.swaptheimage(o(this).attr("src"),o(this).attr("src"))}))}}));var i=null;return o(document).on("found_variation reset_image",".variations_form",(function(e,a){o(this).closest(".fancybox-inner").length&&o.fancybox&&(o(window).off("resize.fb",o.fancybox.update),i&&t.deleteTimeout(i),i=t.requestTimeout((function(){o(window).on("resize.fb",o.fancybox.update),o.fancybox.reposition(),i=!1}),600))})),this}}})}.apply(this,[window.theme,jQuery]),function(t,o){t=t||{},o.extend(t,{WooEvents:{initialize:function(){return this.events(),this},events:function(){var t=this;return o(document).on("click",".wcml-switcher li",(function(){if("disabled"!=o(this).parent().attr("disabled")){var e=o(this).attr("rel");t.loadCurrency(e)}})),o(document).on("click",".woocs-switcher li",(function(){if("disabled"!=o(this).parent().attr("disabled")){var e=o(this).attr("rel");t.loadWoocsCurrency(e)}})),t},loadCurrency:function(e){o(".wcml-switcher").attr("disabled","disabled"),o(".wcml-switcher").append('<li class="loading"></li>');o.ajax({type:"post",url:t.ajax_url,data:{action:"wcml_switch_currency",currency:e},success:function(t){o(".wcml-switcher").removeAttr("disabled"),o(".wcml-switcher").find(".loading").remove(),window.location=window.location.href}})},loadWoocsCurrency:function(t){o(".woocs-switcher").attr("disabled","disabled"),o(".woocs-switcher").append('<li class="loading"></li>');var e=window.location.href;e=(e=e.split("?"))[0];var i="?";woocs_array_of_get.currency=t,Object.keys(woocs_array_of_get).length>0&&jQuery.each(woocs_array_of_get,(function(t,o){i=i+"&"+t+"="+o})),window.location=e+i},removeParameterFromUrl:function(t,o){return t.replace(new RegExp("[?&]"+o+"=[^&#]*(#.*)?$"),"$1").replace(new RegExp("([?&])"+o+"=[^&]*&"),"$1")}}})}.apply(this,[window.theme,jQuery]),function(t,o){o(document).ready((function(){void 0!==t.WooQtyField&&t.WooQtyField.initialize(),void 0!==t.WooQuickView&&t.WooQuickView.initialize(),void 0!==t.WooEvents&&t.WooEvents.initialize(),"ontouchstart"in document?(o("#mini-cart .cart-head").on("click",(function(t){o(this).parent().toggleClass("open")})),o("html,body").on("click",(function(t){o("#mini-cart").hasClass("open")&&!o(t.target).closest("#mini-cart").length&&o("#mini-cart").removeClass("open")}))):o(".mini-cart").on("hide.bs.dropdown",(function(){return!1})),o(document).on("tabactivate",".woocommerce-tabs",(function(e,i){var a=o(i).attr("aria-controls"),r=o('[aria-labelledby="'+a+'"');t.refreshVCContent(r)})),o(document).find('.pwb-columns a[href="'+window.location.href+'"').each((function(){o(this).addClass("active")}))}))}.apply(this,[window.theme,jQuery]),function(t,o,e){o(document).ready((function(){t.isMobile()||o(document).on("yith_wcwl_init_after_ajax",(function(){o(".product-col .add_to_wishlist:not([data-bs-original-title]), .product-col .yith-wcwl-wishlistaddedbrowse > a:not([data-bs-original-title]), .product-col .yith-wcwl-wishlistexistsbrowse > a:not([data-bs-original-title])").each((function(){let t=o(this);t.attr("title")||t.attr("title",t.text().trim()),t.tooltip()}))})),t.WooVariationForm.initialize(),"function"==typeof t.initAsync?(t.WooProductImageSlider.initialize(),porto_woocommerce_init()):o.when(t.asyncDeferred).done((function(){t.WooProductImageSlider.initialize(),porto_woocommerce_init()})),o(document).on("yith_wccl_product_gallery_loaded",(function(){t.WooProductImageSlider.initialize()})),o(window).on("vc_reload",(function(){porto_woocommerce_init(),o(".type-product").addClass("product")})),o(document).on("click",".porto-product-filters-toggle a",(function(e){e.preventDefault(),o(this).closest(".porto-product-filters-toggle").toggleClass("opened");var i,a=o(this).closest("#main").find(".main-content").find("ul.products"),r=o(this).closest("#main").find(".main-content-wrap");if(r.toggleClass("opened"),i=r.hasClass("opened")?-1:1,a.hasClass("grid"))for(var n=0,s=0,c=0,d=0,l=1;l<=8;l++)!n&&a.hasClass("pcols-lg-"+l)&&(n=l,l+i>=1&&(a.removeClass("pcols-lg-"+l),a.addClass("pcols-lg-"+(l+i)))),!s&&a.hasClass("pcols-md-"+l)&&(s=l,l+i>=1&&(a.removeClass("pcols-md-"+l),-1===i&&a.addClass("pcols-sm-"+l),a.addClass("pcols-md-"+(l+i)))),!c&&a.hasClass("pwidth-lg-"+l)&&(c=l,l+i>=1&&(a.removeClass("pwidth-lg-"+l),a.addClass("pwidth-lg-"+(l+i)))),!d&&a.hasClass("pwidth-md-"+l)&&(d=l,l+i>=1&&(a.removeClass("pwidth-md-"+l),a.addClass("pwidth-md-"+(l+i))));return t.requestTimeout((function(){o(window).trigger("scroll"),o(document).find(".owl-carousel").each((function(t){var e=o(this);e.data("owl.carousel")&&e.trigger("refresh.owl.carousel")})),o(document).find(".swiper-container").each((function(t){var e=o(this).data("swiper");e&&e.update()}))}),300),r.hasClass("opened")?o.cookie("porto_horizontal_filter","opened"):o.cookie("porto_horizontal_filter","closed"),t.refreshStickySidebar(!0),!1})),o.cookie&&"opened"==o.cookie("porto_horizontal_filter")&&o("#main .porto-products-filter-body").length&&!t.isTablet()&&(o(".porto-product-filters-toggle a").trigger("click"),o("#main .porto-products-filter-body [data-plugin-sticky]:not(.manual)").addClass("manual"),setTimeout((function(){var e=o("#main .porto-products-filter-body [data-plugin-sticky].manual"),i=e.data("plugin-options");e.removeClass("manual").themeSticky(i),t.requestTimeout((function(){o(window).trigger("scroll")}),100)}),500)),o(document).on("click",".porto-product-filters.style2 .widget-title",(function(t){return t.preventDefault(),o(this).next().is(":hidden")?(o(".porto-product-filters.style2 .widget-title").next().hide(),o(".porto-product-filters.style2 .widget").removeClass("opened"),o(this).next().show(),o(this).next().find('input[type="text"]:first-child').focus()):o(this).next().hide(),o(this).parent().toggleClass("opened"),!1})),o("body").on("click",(function(t){o(t.target).is(".porto-product-filters")||o(t.target).is(".porto-product-filters *")||(o(".porto-product-filters.style2 .widget-title").next().hide(),o(".porto-product-filters.style2 .widget").removeClass("opened"))})),o("body").on("click","#login-form-popup form .woocommerce-Button",(function(e){var i=o(this),a=i.closest("form"),r=i.hasClass("login-btn");r||i.hasClass("register-btn")||(r=a.hasClass("login")),a.find("#email").val(a.find("#username").val()),a.find("p.status").show().text(js_porto_vars.login_popup_waiting_msg?js_porto_vars.login_popup_waiting_msg:"Please wait...").addClass("loading"),a.find("button[type=submit]").attr("disabled","disabled"),o.ajax({type:"POST",dataType:"json",url:t.ajax_url,data:a.serialize()+"&action=porto_account_login_popup_"+(r?"login":"register"),success:function(t){a.find("p.status").html(t.message.replace("/<script.*?/script>/s","")).removeClass("loading"),a.find("button[type=submit]").removeAttr("disabled"),!0===t.loggedin&&window.location.reload()}}),e.preventDefault()}));var e,i={};o(document).on("click",".porto-products.show-category .product-categories a",(function(t){t.preventDefault();var e=o(this),i=e.closest(".porto-products").find(".pagination-form"),a=e.closest(".porto-products").attr("id"),r=[];o(this).parent().siblings().removeClass("current"),o(this).parent().addClass("current"),void 0!==e.data("sort_id")&&(i.find('input[name="orderby"]').val(e.data("sort_id")),r=e.data("sort_id"),i.find('input[name="category"]').val("")),void 0!==e.data("cat_id")&&(void 0===e.data("sort_id")&&(i.find('input[name="orderby"]').val(i.find('input[name="original_orderby"]').val()),r=i.find('input[name="original_orderby"]').val()),void 0===i.data("original_cat_id")&&(i.data("original_cat_id",i.find('input[name="category"]').val()),r=i.find('input[name="category"]').val()),e.data("cat_id")?(i.find('input[name="category"]').val(e.data("cat_id")),r=e.data("cat_id")):i.data("original_cat_id")?(i.find('input[name="category"]').val(i.data("original_cat_id")),r=i.data("original_cat_id")):(i.find('input[name="category"]').val(""),r=""));var n=i.serialize()+"&product-page=1&action=porto_woocommerce_shortcodes_products&nonce="+js_porto_vars.porto_nonce;e.closest(".porto-products").find("ul.products").trigger("porto_update_products",[n,"",e,a,r])})),o(document).on("click",".porto-products .page-numbers a",(function(e){var i,a=o(this),r=a.closest(".porto-products").find("ul.products"),n=r.data("cur_page"),s=r.data("max_page"),c=a.closest(".porto-products").find(".pagination-form");if(e.preventDefault(),a.closest(".pagination").hasClass("load-more")){if(!n||!s||++n>s)return;i="load_more",a.data("text",a.text()),a.text(js_porto_vars.loader_text)}else{var d=new RegExp("product-page(=|/)([^(&|/)]*)","i").exec(this.href);n=d&&unescape(d[2])||"",i="default"}var l=n?"&product-page="+escape(n):"",u=c.serialize()+l+"&action=porto_woocommerce_shortcodes_products&nonce="+js_porto_vars.porto_nonce;r.trigger("porto_update_products",[u,i,a]),"default"==i&&t.scrolltoContainer(r)})),o(document).on("porto_update_products","ul.products",(function(t,e,a,r,n,s){var c=o(this);if(null==i[n]||-1==Object.keys(i[n]).indexOf(s))porto_ajax_load_products(c,e,a,i,n,s);else{var d=i[n][s];c.css("opacity",0),c.animate({opacity:1},400,(function(){c.css("opacity","")})),porto_ajax_load_products_success(c,d,a)}})),o(".skeleton-loading").on("skeleton-loaded",(function(){var i=o(this);e&&t.deleteTimeout(e),porto_woocommerce_variations_init(i),(i.hasClass("products")||i.hasClass("product"))&&o(document).trigger("yith_infs_added_elem"),e=t.requestTimeout((function(){if(porto_woocommerce_init(),o("body").hasClass("single-product")){t.WooVariationForm.init();var e=o(".product-image-slider");e.length&&e.data("owl.carousel")?e.trigger("refresh.owl.carousel"):t.WooProductImageSlider.initialize(),o(".wc-tabs-wrapper, .woocommerce-tabs, #rating").trigger("init"),o(document.body).hasClass("yith-booking")&&o(document).trigger("yith-wcbk-init-booking-form")}i.find(".widget_shopping_cart_content").length&&o(document.body).trigger("wc_fragment_refresh")}),100)}))}));var i=function(){var e,i=o(".single-product .sticky-product"),a=o(document.body).hasClass("elementor-editor-active"),r=function(i,a){a&&elementorFrontend&&elementorFrontend.hooks&&elementorFrontend.hooks.addAction("frontend/element_ready/porto_cp_addcart_sticky.default",(function(t){i=o(".single-product .sticky-product"),window.dispatchEvent(new Event("scroll"))})),e=o("form.cart:visible").eq(0),window.addEventListener("scroll",(function(){var a=o(window).scrollTop(),r=t.adminBarHeight()+(t.StickyHeader.sticky_height>1?t.StickyHeader.sticky_height:0),n=i.data("prev-pos")?i.data("prev-pos"):0;if(!i.hasClass("show-mobile")&&o(window).width()<768)o("body").css("padding-bottom","");else if(e.length&&e.offset().top+e.height()/2<=a+r){if(o(".page-wrapper").hasClass("sticky-scroll-up")&&!o("html").hasClass("porto-search-opened")&&i.hasClass("pos-top")){a>=n?i.addClass("scroll-down"):i.removeClass("scroll-down");var s=-t.StickyHeader.sticky_height;if(void 0===t.StickyHeader.sticky_height)i.data("prev-pos",0);else{var c=r>100?r:100;o("form.cart").offset().top+i.outerHeight()+c<a+r+s?i.addClass("sticky-ready"):i.removeClass("sticky-ready"),i.data("prev-pos",a)}}var d=o(".porto-scroll-progress.fixed-top.fixed-under-header");d.length>0&&(r+=d.height()),i.removeClass("hide"),i.hasClass("pos-bottom")?(i.hasClass("show-mobile")||!i.hasClass("show-mobile")&&o(window).width()>=768)&&o("body").css("padding-bottom",i.outerHeight()):i.css("top",r)}else i.addClass("hide"),i.hasClass("pos-bottom")&&(i.hasClass("show-mobile")||!i.hasClass("show-mobile")&&o(window).width()>=768)&&o("body").css("padding-bottom","")}),{passive:!0}),i.find(".add-to-cart .button").on("click",(function(t){t.preventDefault(),i.find(".add-to-cart .qty").length&&o(".single-product form .quantity .qty").filter((function(){return!o(this).closest(".product-col").length})).val(i.find(".add-to-cart .qty").val()),o(".single-product form .single_add_to_cart_button").filter((function(){return!o(this).closest(".product-col").length})).eq(0).trigger("click")})),o(".single-product .entry-summary .quantity").clone().prependTo(".single-product .sticky-product .add-to-cart");var r=i.find(".sticky-image img").data("oi")?i.find(".sticky-image img").data("oi"):i.find(".sticky-image img").attr("src"),n=i.find(".price").html(),s=i.find(".availability").html(),c=!1;o(document).on("found_variation reset_data",".variations_form",(function(t,e){0==o(t.currentTarget).closest(".product-col").length&&(e?(c=!0,i.find(".sticky-image img").attr("src",e.image_thumb?e.image_thumb:r),i.find(".price").replaceWith(e.price_html),i.find(".availability").html(e.availability_html?e.availability_html:s)):c&&(c=!1,i.find(".sticky-image img").attr("src",r),i.find(".price").html(n),i.find(".availability").html(s)))}))};if(i.length||a?r(i,a):o(document.body).on("porto_elementor_editor_init",(function(){var t=o(".single-product .sticky-product"),e=o(document.body).hasClass("elementor-editor-active");(t.length||e)&&r(t,e)})),1===o(".shop-loop-before").length){var n=o(".porto-scroll-progress.fixed-top.fixed-under-header"),s=0;if(n.length>0){var c=!1;n.is(":hidden")&&(n.show(),c=!0),s=n.height(),c&&n.hide()}else s=0;var d=function(){var e=o(".shop-loop-before"),i=e.data("prev-pos")?e.data("prev-pos"):0,a=0,r=o(".page-wrapper");if("none"!=e.css("display")){e.prev(".filter-placeholder").length||o('<div class="filter-placeholder m-0"></div>').insertBefore(e);var n=e.prev(".filter-placeholder"),c=o(window).scrollTop(),d=t.adminBarHeight()+t.StickyHeader.sticky_height+s-1,l=e.outerHeight()+parseInt(e.css("margin-bottom"));if(o(".page-wrapper").hasClass("sticky-scroll-up"))if(c>=i?e.addClass("scroll-down"):e.removeClass("scroll-down"),a=-t.StickyHeader.sticky_height,void 0===t.StickyHeader.sticky_height)e.data("prev-pos",0);else{var u=d>100?d:100;n.offset().top+l+u<c+d+a?e.addClass("sticky-ready"):e.removeClass("sticky-ready"),e.data("prev-pos",c)}n.offset().top+l<c+d+a?(!r.hasClass("sticky-scroll-up")||r.hasClass("sticky-scroll-up")&&0!==i)&&(n.css("height",l),e.css("top",d),e.addClass("sticky")):(n.css("height",""),e.removeClass("sticky").css("top",""))}};window.innerWidth<992&&(window.removeEventListener("scroll",d),window.addEventListener("scroll",d,{passive:!0}),d());var l=null,u=window.innerWidth;o(window).on("resize",(function(){u!=window.innerWidth&&(l&&(t.deleteTimeout(l),l=!1),window.innerWidth<992?l=t.requestTimeout((function(){window.removeEventListener("scroll",d),window.addEventListener("scroll",d,{passive:!0}),o(window).trigger("scroll")}),100):(window.removeEventListener("scroll",d),o(".shop-loop-before").removeClass("sticky").css("top","").prev(".filter-placeholder").css("height","")),i.length&&(e=o("form.cart:visible").eq(0)),u=window.innerWidth)}))}};if(t.isReady&&i(),o(document).on("porto_theme_init",i),o(".cart-v2 .cart_totals .accordion-toggle.out").removeClass("out"),o(document).ajaxComplete((function(t,e,i){o(".cart-v2 .cart_totals .accordion-toggle.out").each((function(){o(o(this).attr("href")).length&&o(o(this).attr("href")).is(":hidden")&&(o(this).removeClass("collapsed"),o(o(this).attr("href")).addClass("show"))}))})),o(".porto_products_filter_form .btn-submit").on("click",(function(t){t.preventDefault();var e=o(this).closest("form").serializeArray(),i="";for(var a in e){var r=e[a];if(r.value&&(i&&(i+="&"),i+=r.name+"="+r.value,"min_price"==r.name)){var n=o(this).closest("form").find(".porto_dropdown_price_range option:selected").data("maxprice");n&&(i+="&max_price="+n)}}var s=o(this).closest("form").attr("action");location.href=s+(-1===s.indexOf("?")?"?":"&")+i})),o(".wishlist_table.responsive").length&&o(window).on("resize",(function(){var t=window.matchMedia("(max-width: 768px)"),e=o(".wishlist_table.responsive");e.hasClass("traditional")&&(t.matches?e.addClass("mobile"):e.removeClass("mobile"))})),js_porto_vars.pre_order){var a={init:function(){this.$add_to_cart_btn=o(".product-summary-wrap .single_add_to_cart_button:not(.wpcbn-btn)"),this.add_to_cart_label=this.$add_to_cart_btn.html(),o(".product-summary-wrap form.variations_form").on("show_variation",(function(t,e,i){e.porto_pre_order?(a.$add_to_cart_btn.html(e.porto_pre_order_label),e.porto_pre_order_date&&o(this).find(".woocommerce-variation-description").append(e.porto_pre_order_date)):a.$add_to_cart_btn.html(a.add_to_cart_label)})).on("hide_variation",(function(){a.$add_to_cart_btn.html(a.add_to_cart_label)}))}};o("div.product.skeleton-loading").length?o("div.product.skeleton-loading").on("skeleton-loaded",(function(){a.init()})):a.init()}if(o("#header .my-wishlist .wishlist-count").length&&o(document.body).on("added_to_wishlist removed_from_wishlist added_to_cart",(function(e){var i=o("#header .my-wishlist .wishlist-count");i.text()&&o.ajax({type:"POST",dataType:"json",url:t.ajax_url,data:{action:"porto_refresh_wishlist_count",nonce:js_porto_vars.porto_nonce},success:function(t){(t||0===t)&&(i.addClass("count-updating").text(Number(t)),setTimeout((function(){i.removeClass("count-updating")}),1e3))}})})),o(document.body).hasClass("woocommerce-cart")&&o(".wpcf7 .screen-reader-response").length&&o(".wpcf7 .screen-reader-response").attr("role",""),o("#dokan-store-listing-filter-form-wrap .store-search-input").on("keydown",(function(t){t.which&&13==event.which&&(o(this).closest("form").find("#apply-filter-btn").trigger("click"),t.preventDefault())})),o.fn.block){var r=o.fn.block;o.fn.block=function(t){return this.hasClass("yith-wcwl-add-to-wishlist")?(this.children().addClass("pe-none opacity-6"),this):(this.is(".woocommerce-checkout")&&this.append('<div class="loader-container d-block"><div class="loader"><i class="porto-ajax-loader"></i></div></div>'),r.call(this,t))};var n=o.fn.unblock;o.fn.unblock=function(t){return this.hasClass("yith-wcwl-add-to-wishlist")?(this.children().removeClass("pe-none opacity-6"),this):(n.call(this,t),this.is(".processing")||this.is(".woocommerce-checkout")&&this.children(".loader-container").remove(),this)}}o("body").on("click",".single_add_to_cart_button.scroll-to-sticky",(function(t){o("html, body").animate({scrollTop:o("form.cart").offset().top-200})}))}(window.theme,jQuery),window.theme,(o=window.jQuery)("body").on("click",".yith_woocompare_colorbox #cboxClose, #cboxOverlay",(function(){o("html").css({overflow:"","margin-right":""})}))}();
(()=>{var e=0,r={};function i(t){if(!t)throw new Error("No options passed to Waypoint constructor");if(!t.element)throw new Error("No element option passed to Waypoint constructor");if(!t.handler)throw new Error("No handler option passed to Waypoint constructor");this.key="waypoint-"+e,this.options=i.Adapter.extend({},i.defaults,t),this.element=this.options.element,this.adapter=new i.Adapter(this.element),this.callback=t.handler,this.axis=this.options.horizontal?"horizontal":"vertical",this.enabled=this.options.enabled,this.triggerPoint=null,this.group=i.Group.findOrCreate({name:this.options.group,axis:this.axis}),this.context=i.Context.findOrCreateByElement(this.options.context),i.offsetAliases[this.options.offset]&&(this.options.offset=i.offsetAliases[this.options.offset]),this.group.add(this),this.context.add(this),r[this.key]=this,e+=1}i.prototype.queueTrigger=function(t){this.group.queueTrigger(this,t)},i.prototype.trigger=function(t){this.enabled&&this.callback&&this.callback.apply(this,t)},i.prototype.destroy=function(){this.context.remove(this),this.group.remove(this),delete r[this.key]},i.prototype.disable=function(){return this.enabled=!1,this},i.prototype.enable=function(){return this.context.refresh(),this.enabled=!0,this},i.prototype.next=function(){return this.group.next(this)},i.prototype.previous=function(){return this.group.previous(this)},i.invokeAll=function(t){var e,i=[];for(e in r)i.push(r[e]);for(var o=0,n=i.length;o<n;o++)i[o][t]()},i.destroyAll=function(){i.invokeAll("destroy")},i.disableAll=function(){i.invokeAll("disable")},i.enableAll=function(){for(var t in i.Context.refreshAll(),r)r[t].enabled=!0;return this},i.refreshAll=function(){i.Context.refreshAll()},i.viewportHeight=function(){return window.innerHeight||document.documentElement.clientHeight},i.viewportWidth=function(){return document.documentElement.clientWidth},i.adapters=[],i.defaults={context:window,continuous:!0,enabled:!0,group:"default",horizontal:!1,offset:0},i.offsetAliases={"bottom-in-view":function(){return this.context.innerHeight()-this.adapter.outerHeight()},"right-in-view":function(){return this.context.innerWidth()-this.adapter.outerWidth()}},window.VcWaypoint=i})(),(()=>{function e(t){window.setTimeout(t,1e3/60)}var i=0,o={},u=window.VcWaypoint,t=window.onload;function n(t){this.element=t,this.Adapter=u.Adapter,this.adapter=new this.Adapter(t),this.key="waypoint-context-"+i,this.didScroll=!1,this.didResize=!1,this.oldScroll={x:this.adapter.scrollLeft(),y:this.adapter.scrollTop()},this.waypoints={vertical:{},horizontal:{}},t.waypointContextKey=this.key,o[t.waypointContextKey]=this,i+=1,u.windowContext||(u.windowContext=!0,u.windowContext=new n(window)),this.createThrottledScrollHandler(),this.createThrottledResizeHandler()}n.prototype.add=function(t){var e=t.options.horizontal?"horizontal":"vertical";this.waypoints[e][t.key]=t,this.refresh()},n.prototype.checkEmpty=function(){var t=this.Adapter.isEmptyObject(this.waypoints.horizontal),e=this.Adapter.isEmptyObject(this.waypoints.vertical),i=this.element==this.element.window;t&&e&&!i&&(this.adapter.off(".vcwaypoints"),delete o[this.key])},n.prototype.createThrottledResizeHandler=function(){var t=this;function e(){t.handleResize(),t.didResize=!1}this.adapter.on("resize.vcwaypoints",function(){t.didResize||(t.didResize=!0,u.requestAnimationFrame(e))})},n.prototype.createThrottledScrollHandler=function(){var t=this;function e(){t.handleScroll(),t.didScroll=!1}this.adapter.on("scroll.vcwaypoints",function(){t.didScroll&&!u.isTouch||(t.didScroll=!0,u.requestAnimationFrame(e))})},n.prototype.handleResize=function(){u.Context.refreshAll()},n.prototype.handleScroll=function(){var t,e,i={},o={horizontal:{newScroll:this.adapter.scrollLeft(),oldScroll:this.oldScroll.x,forward:"right",backward:"left"},vertical:{newScroll:this.adapter.scrollTop(),oldScroll:this.oldScroll.y,forward:"down",backward:"up"}};for(t in o){var n,r=o[t],s=r.newScroll>r.oldScroll?r.forward:r.backward;for(n in this.waypoints[t]){var a,l,h=this.waypoints[t][n];null!==h.triggerPoint&&(a=r.oldScroll<h.triggerPoint,l=r.newScroll>=h.triggerPoint,a&&l||!a&&!l)&&(h.queueTrigger(s),i[h.group.id]=h.group)}}for(e in i)i[e].flushTriggers();this.oldScroll={x:o.horizontal.newScroll,y:o.vertical.newScroll}},n.prototype.innerHeight=function(){return this.element==this.element.window?u.viewportHeight():this.adapter.innerHeight()},n.prototype.remove=function(t){delete this.waypoints[t.axis][t.key],this.checkEmpty()},n.prototype.innerWidth=function(){return this.element==this.element.window?u.viewportWidth():this.adapter.innerWidth()},n.prototype.destroy=function(){var t,e=[];for(t in this.waypoints)for(var i in this.waypoints[t])e.push(this.waypoints[t][i]);for(var o=0,n=e.length;o<n;o++)e[o].destroy()},n.prototype.refresh=function(){var t,e,i=this.element==this.element.window,o=i?void 0:this.adapter.offset(),n={};for(e in this.handleScroll(),t={horizontal:{contextOffset:i?0:o.left,contextScroll:i?0:this.oldScroll.x,contextDimension:this.innerWidth(),oldScroll:this.oldScroll.x,forward:"right",backward:"left",offsetProp:"left"},vertical:{contextOffset:i?0:o.top,contextScroll:i?0:this.oldScroll.y,contextDimension:this.innerHeight(),oldScroll:this.oldScroll.y,forward:"down",backward:"up",offsetProp:"top"}}){var r,s=t[e];for(r in this.waypoints[e]){var a,l=this.waypoints[e][r],h=l.options.offset,p=l.triggerPoint,c=0,d=null==p;l.element!==l.element.window&&(c=l.adapter.offset()[s.offsetProp]),"function"==typeof h?h=h.apply(l):"string"==typeof h&&(h=parseFloat(h),-1<l.options.offset.indexOf("%"))&&(h=Math.ceil(s.contextDimension*h/100)),a=s.contextScroll-s.contextOffset,l.triggerPoint=Math.floor(c+a-h),c=p<s.oldScroll,a=l.triggerPoint>=s.oldScroll,h=!c&&!a,!d&&(c&&a)?(l.queueTrigger(s.backward),n[l.group.id]=l.group):(!d&&h||d&&s.oldScroll>=l.triggerPoint)&&(l.queueTrigger(s.forward),n[l.group.id]=l.group)}}return u.requestAnimationFrame(function(){for(var t in n)n[t].flushTriggers()}),this},n.findOrCreateByElement=function(t){return n.findByElement(t)||new n(t)},n.refreshAll=function(){for(var t in o)o[t].refresh()},n.findByElement=function(t){return o[t.waypointContextKey]},window.onload=function(){t&&t(),n.refreshAll()},u.requestAnimationFrame=function(t){(window.requestAnimationFrame||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame||e).call(window,t)},u.Context=n})(),(()=>{function r(t,e){return t.triggerPoint-e.triggerPoint}function s(t,e){return e.triggerPoint-t.triggerPoint}var e={vertical:{},horizontal:{}},i=window.VcWaypoint;function o(t){this.name=t.name,this.axis=t.axis,this.id=this.name+"-"+this.axis,this.waypoints=[],this.clearTriggerQueues(),e[this.axis][this.name]=this}o.prototype.add=function(t){this.waypoints.push(t)},o.prototype.clearTriggerQueues=function(){this.triggerQueues={up:[],down:[],left:[],right:[]}},o.prototype.flushTriggers=function(){for(var t in this.triggerQueues){var e=this.triggerQueues[t];e.sort("up"===t||"left"===t?s:r);for(var i=0,o=e.length;i<o;i+=1){var n=e[i];!n.options.continuous&&i!==e.length-1||n.trigger([t])}}this.clearTriggerQueues()},o.prototype.next=function(t){this.waypoints.sort(r);t=i.Adapter.inArray(t,this.waypoints);return t===this.waypoints.length-1?null:this.waypoints[t+1]},o.prototype.previous=function(t){this.waypoints.sort(r);t=i.Adapter.inArray(t,this.waypoints);return t?this.waypoints[t-1]:null},o.prototype.queueTrigger=function(t,e){this.triggerQueues[e].push(t)},o.prototype.remove=function(t){t=i.Adapter.inArray(t,this.waypoints);-1<t&&this.waypoints.splice(t,1)},o.prototype.first=function(){return this.waypoints[0]},o.prototype.last=function(){return this.waypoints[this.waypoints.length-1]},o.findOrCreate=function(t){return e[t.axis][t.name]||new o(t)},i.Group=o})(),(()=>{var i=window.jQuery,t=window.VcWaypoint;function o(t){this.$element=i(t)}i.each(["innerHeight","innerWidth","off","offset","on","outerHeight","outerWidth","scrollLeft","scrollTop"],function(t,e){o.prototype[e]=function(){var t=Array.prototype.slice.call(arguments);return this.$element[e].apply(this.$element,t)}}),i.each(["extend","inArray","isEmptyObject"],function(t,e){o[e]=i[e]}),t.adapters.push({name:"jquery",Adapter:o}),t.Adapter=o})(),(()=>{var n=window.VcWaypoint;function t(o){return function(){var e=[],i=arguments[0];return o.isFunction(arguments[0])&&((i=o.extend({},arguments[1])).handler=arguments[0]),this.each(function(){var t=o.extend({},i,{element:this});"string"==typeof t.context&&(t.context=o(this).closest(t.context)[0]),e.push(new n(t))}),e}}window.jQuery&&(window.jQuery.fn.vcwaypoint=t(window.jQuery)),window.Zepto&&(window.Zepto.fn.vcwaypoint=t(window.Zepto))})();
(function(e,i){"use strict";e=e||{},i.extend(e,{SidebarMenu:{defaults:{menu:i(".sidebar-menu:not(.side-menu-accordion)"),toggle:i(".widget_sidebar_menu .widget-title .toggle"),menu_toggle:i("#main-toggle-menu .menu-title")},rtl:e.rtl,initialize:function(e,t,s){return this.$menu&&this.$menu.length&&e&&e.length?(this.$menu=i.uniqueSort(i.merge(this.$menu,e)),this.build(),this):(this.$menu=e||this.defaults.menu,this.$menu.length?(this.$toggle=t||this.defaults.toggle,this.$menu_toggle=s||this.defaults.menu_toggle,this.events(),this):this)},isRightSidebar:function(e){var t=!1;t=this.rtl?!(i("#main").hasClass("column2-right-sidebar")||i("#main").hasClass("column2-wide-right-sidebar")):i("#main").hasClass("column2-right-sidebar")||i("#main").hasClass("column2-wide-right-sidebar"),e.closest("#main-toggle-menu").length&&(t=!!this.rtl);var s=e.closest(".header-wrapper");return s.length&&s.hasClass("header-side-nav")&&(t=!!this.rtl,i(".page-wrapper").hasClass("side-nav-right")&&(t=!this.rtl)),t},popupWidth:function(){var t=window.innerWidth,s=e.bodyWidth-2*e.grid_gutter_width;return i("body").hasClass("wide")||(t>=1140+e.grid_gutter_width&&t<=e.container_width+2*e.grid_gutter_width-1&&e.container_width>=1360?s=1140-e.grid_gutter_width:t>=e.container_width+e.grid_gutter_width-1?s=e.container_width-e.grid_gutter_width:t>=992?s=960-e.grid_gutter_width:t>=768&&(s=720-e.grid_gutter_width)),s},build:function(t){var s=this;if(t||(t=s.$menu),t.length){t.find(".menu-item-has-children").each((function(){var e=i(this);e.find(">.popup").length>0&&0==e.find(">.popup>.inner>.sub-menu > li:not(.hidden-item)").length&&e.addClass("hidden-item")}));var n=t.parent(".toggle-menu-wrap"),a=null;if(n.length&&n.is(":hidden")&&((a=n.get(0)).style.display="block",a.style.visibility="hidden"),t.each((function(){var n,a=this,o=i(this);if(!a.classList.contains("side-menu-slide")){if(window.innerWidth<992)n=s.popupWidth();else{var l=this.offsetWidth?this.offsetWidth:o.width();n=s.popupWidth()-l-45}var d=s.isRightSidebar(o),h=o.children("li");h.each((function(){var s=i(this),l=s.children(".popup");if(l.length){var r=l.get(0),u=!1;if(l.is(":visible")?u=!0:r.style.display="block",s.hasClass("wide")){o.hasClass("side-menu-columns")||(r.style.left=0);var c=4;s.hasClass("col-1")&&(c=1),s.hasClass("col-2")&&(c=2),s.hasClass("col-3")&&(c=3),s.hasClass("col-4")&&(c=4),s.hasClass("col-5")&&(c=5),s.hasClass("col-6")&&(c=6),window.innerWidth<992&&(c=1);var m=0;l.find("> .inner > ul > li").each((function(){var e=parseFloat(i(this).data("cols"));(!e||e<=0)&&(e=1),e>c&&(e=c),m+=e})),m>c&&(m=c);var p=l.data("popup-mw")?l.data("popup-mw"):l.find(".inner").css("max-width"),f=n/c;"none"!==p&&parseInt(p)<n&&(f=parseInt(p)/c),l.find("> .inner > ul > li").each((function(){var e=parseFloat(i(this).data("cols"));e<=0&&(e=1),e>c&&(e=c),s.hasClass("pos-center")||s.hasClass("pos-left")||s.hasClass("pos-right")?this.style.width=100/m*e+"%":this.style.width=100/c*e+"%"})),r.children[0].children[0].style.width=f*m+1+"px",o.hasClass("side-menu-columns")||(d?(r.style.left="auto",r.style.right=(this.offsetWidth?this.offsetWidth:i(this).width())+"px"):(r.style.left=(this.offsetWidth?this.offsetWidth:i(this).width())+"px",r.style.right="auto"))}u||(r.style.display="none"),a.classList.contains("side-menu-accordion")||a.classList.contains("side-menu-slide")||s.hasClass("sub-ready")||(!("ontouchstart"in document)&&window.innerWidth>991?s.on("mouseenter",(function(){if(h.find(".popup").hide(),l.show(),l.parent().addClass("open"),!o.hasClass("side-menu-columns")&&"static"!==l.parent().css("position")){let i=this.getBoundingClientRect().top;if(this.offsetParent&&i+r.offsetHeight>e.innerHeight){let t=i+r.offsetHeight-e.innerHeight,s=i-this.parentNode.getBoundingClientRect().top;s<t&&(t=s),r.style.top=-1*t+"px",r.style.setProperty("--porto-sd-menu-popup-top",-1*t+"px")}else r.style.top="",r.style.setProperty("--porto-sd-menu-popup-top","")}l.find(".owl-carousel").length&&l.find(".owl-carousel").each((function(){var e,t=i(this);if(!t.hasClass("owl-loaded")){var s=t.data("plugin-options");s&&(e=s),t.themeCarousel(e)}}))})).on("mouseleave",(function(){l.hide(),l.parent().removeClass("open")})):s.on("click",".arrow",(function(){!o.hasClass("side-menu-columns")&&!l.parent().hasClass("open")&&window.innerWidth>991&&t.children("li.has-sub").removeClass("open").children(".popup").hide(),l.slideToggle(),l.parent().toggleClass("open")})),s.addClass("sub-ready"))}}))}})),t.hasClass("side-menu-slide")){var o={$mainNav:t,$mainNavItem:t.find("li"),build:function(){this.menuNav()},initSub:function(e){var i=e.closest("ul"),t=e.parent().find("ul").first();t.children(".menu-item").children(".go-back").length<1&&t.prepend('<li class="menu-item"><a class="go-back" href="#">'+js_porto_vars.submenu_back+"</a></li>"),i.addClass("next-menu"),t.addClass("visible"),i.css({overflow:"visible","overflow-y":"visible"}),t.outerHeight()<t.closest(".header-main").outerHeight()-100&&t.css({height:t.outerHeight()+t.find("> li").outerHeight()});var s=t.find("> li").length*t.find("> li").outerHeight()-t.outerHeight();s>0&&t.css({overflow:"hidden","overflow-y":"scroll"}),t.css({"padding-top":s+"px"})},menuNav:function(){var e=this;e.$mainNav.find(".menu-item-has-children > a.nolink").removeClass("nolink").attr("href",""),e.$mainNav.find(".menu-item-has-children > a:not(.go-back)").off("click").on("click",(function(t){t.stopImmediatePropagation(),t.preventDefault();var s=i(this);js_porto_vars.lazyload_menu&&!e.$mainNav.hasClass("sub-ready")?(e.initSub(s),e.$mainNav.on("sub-loaded",(function(){e.initSub(s)}))):e.initSub(s)}))}};o.build()}return a&&(a.style.display="",a.style.visibility=""),s}},events:function(){var e,t=this;(t.$toggle.on("click",(function(){var e=i(this).parent().parent(),s=i(this);s.hasClass("closed")?(s.removeClass("closed"),e.removeClass("closed"),e.find(".sidebar-menu-wrap").stop().slideDown(400,(function(){i(this).attr("style","").show(),t.build()}))):(s.addClass("closed"),e.addClass("closed"),e.find(".sidebar-menu-wrap").stop().slideUp(400,(function(){i(this).attr("style","").hide()})))})),this.$menu_toggle.on("click",(function(){var e=i(this).parent();if(!e.hasClass("show-always")&&!e.hasClass("show-hover")){var s=i(this);s.hasClass("closed")?(s.removeClass("closed"),e.removeClass("closed"),e.find(".toggle-menu-wrap").stop().slideDown(400,(function(){i(this).attr("style","").show()})),t.build()):(s.addClass("closed"),e.addClass("closed"),e.find(".toggle-menu-wrap").stop().slideUp(400,(function(){i(this).attr("style","").hide()})))}})),t.$menu.hasClass("side-menu-slide")&&t.$menu.on("click",".go-back",(function(e){e.preventDefault();var t=i(this).closest(".next-menu"),s=0;t.length&&t.find("> li").length&&(s=t.find("> li").length*t.find("> li").outerHeight()-t.outerHeight()),t.removeClass("next-menu"),i(this).closest("ul").removeClass("visible"),s>0&&t.css({overflow:"hidden","overflow-y":"scroll"})})),i(".sidebar-menu:not(.side-menu-accordion)").closest("[data-plugin-sticky]").length)?i(window).smartresize((function(){e&&clearTimeout(e),e=setTimeout((function(){t.build()}),800)})):i(window).smartresize((function(e){e.originalEvent&&t.build()}));return setTimeout((function(){t.build()}),400),"ontouchstart"in document&&i(document.body).on("click",(function(e){window.innerWidth>991&&(i(e.target).closest("li.has-sub.open").length||t.$menu.each((function(){var e=i(this);e.hasClass("side-menu-accordion")||e.hasClass("side-menu-slide")||e.hasClass("side-menu-columns")||e.children("li.has-sub").removeClass("open").children(".popup").hide()})))})),t}}})}).apply(this,[window.theme,jQuery]),jQuery(document).ready((function(e){void 0!==theme.SidebarMenu&&(theme.bodyWidth||(theme.bodyWidth=theme.bodyWidth||document.body.offsetWidth),theme.SidebarMenu.initialize(),e.fn.themeAccordionMenu&&e(".sidebar-menu.side-menu-accordion").themeAccordionMenu({open_one:!0}))}));