(()=>{"use strict";var t={d:(e,i)=>{for(var s in i)t.o(i,s)&&!t.o(e,s)&&Object.defineProperty(e,s,{enumerable:!0,get:i[s]})},o:(t,e)=>Object.prototype.hasOwnProperty.call(t,e),r:t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})}},e={};function i(t){if(this.formData={},this.tree={},!(t instanceof FormData))return this;this.formData=t;const e=()=>{const t=new Map;return t.largestIndex=0,t.set=function(e,i){""===e?e=t.largestIndex++:/^[0-9]+$/.test(e)&&(e=parseInt(e),t.largestIndex<=e&&(t.largestIndex=e+1)),Map.prototype.set.call(t,e,i)},t};this.tree=e();const i=/^(?<name>[a-z][-a-z0-9_:]*)(?<array>(?:\[(?:[a-z][-a-z0-9_:]*|[0-9]*)\])*)/i;for(const[t,s]of this.formData){const o=t.match(i);if(o)if(""===o.groups.array)this.tree.set(o.groups.name,s);else{const t=[...o.groups.array.matchAll(/\[([a-z][-a-z0-9_:]*|[0-9]*)\]/gi)].map((([t,e])=>e));t.unshift(o.groups.name);const i=t.pop();t.reduce(((t,i)=>{if(/^[0-9]+$/.test(i)&&(i=parseInt(i)),t.get(i)instanceof Map)return t.get(i);const s=e();return t.set(i,s),s}),this.tree).set(i,s)}}}t.r(e),t.d(e,{all:()=>D,any:()=>M,date:()=>m,dayofweek:()=>u,email:()=>r,enum:()=>h,file:()=>d,maxdate:()=>z,maxfilesize:()=>j,maxitems:()=>v,maxlength:()=>x,maxnumber:()=>y,mindate:()=>A,minfilesize:()=>$,minitems:()=>w,minlength:()=>g,minnumber:()=>b,number:()=>c,required:()=>n,requiredfile:()=>a,stepnumber:()=>I,tel:()=>l,time:()=>f,url:()=>p}),i.prototype.entries=function(){return this.tree.entries()},i.prototype.get=function(t){return this.tree.get(t)},i.prototype.getAll=function(t){if(!this.has(t))return[];const e=t=>{const i=[];if(t instanceof Map)for(const[s,o]of t)i.push(...e(o));else""!==t&&i.push(t);return i};return e(this.get(t))},i.prototype.has=function(t){return this.tree.has(t)},i.prototype.keys=function(){return this.tree.keys()},i.prototype.values=function(){return this.tree.values()};const s=i;function o({rule:t,field:e,error:i,...s}){this.rule=t,this.field=e,this.error=i,this.properties=s}const n=function(t){if(0===t.getAll(this.field).map((t=>t.trim())).filter((t=>""!==t)).length)throw new o(this)},a=function(t){if(0===t.getAll(this.field).length)throw new o(this)},r=function(t){if(!t.getAll(this.field).map((t=>t.trim())).filter((t=>""!==t)).every((t=>{if(t.length<6)return!1;if(-1===t.indexOf("@",1))return!1;if(t.indexOf("@")!==t.lastIndexOf("@"))return!1;const[e,i]=t.split("@",2);if(!/^[a-zA-Z0-9!#$%&\'*+\/=?^_`{|}~\.-]+$/.test(e))return!1;if(/\.{2,}/.test(i))return!1;if(/(?:^[ \t\n\r\0\x0B.]|[ \t\n\r\0\x0B.]$)/.test(i))return!1;const s=i.split(".");if(s.length<2)return!1;for(const t of s){if(/(?:^[ \t\n\r\0\x0B-]|[ \t\n\r\0\x0B-]$)/.test(t))return!1;if(!/^[a-z0-9-]+$/i.test(t))return!1}return!0})))throw new o(this)},p=function(t){const e=t.getAll(this.field).map((t=>t.trim())).filter((t=>""!==t));if(!e.every((t=>{try{return(t=>-1!==["http","https","ftp","ftps","mailto","news","irc","irc6","ircs","gopher","nntp","feed","telnet","mms","rtsp","sms","svn","tel","fax","xmpp","webcal","urn"].indexOf(t))(new URL(t).protocol.replace(/:$/,""))}catch{return!1}})))throw new o(this)},l=function(t){if(!t.getAll(this.field).map((t=>t.trim())).filter((t=>""!==t)).every((t=>(((t=(t=t.replace(/[#*].*$/,"")).replaceAll(/[()/.*#\s-]+/g,"")).startsWith("+")||t.startsWith("00"))&&(t=`+${t.replace(/^[+0]+/,"")}`),!!/^[+]?[0-9]+$/.test(t)&&5<t.length&&t.length<16))))throw new o(this)},c=function(t){if(!t.getAll(this.field).map((t=>t.trim())).filter((t=>""!==t)).every((t=>!!/^[-]?[0-9]+(?:[eE][+-]?[0-9]+)?$/.test(t)||!!/^[-]?(?:[0-9]+)?[.][0-9]+(?:[eE][+-]?[0-9]+)?$/.test(t))))throw new o(this)},m=function(t){if(!t.getAll(this.field).map((t=>t.trim())).filter((t=>""!==t)).every((t=>{if(!/^[0-9]{4,}-[0-9]{2}-[0-9]{2}$/.test(t))return!1;const e=new Date(t);return!Number.isNaN(e.valueOf())})))throw new o(this)},f=function(t){if(!t.getAll(this.field).map((t=>t.trim())).filter((t=>""!==t)).every((t=>{const e=t.match(/^([0-9]{2})\:([0-9]{2})(?:\:([0-9]{2}))?$/);if(!e)return!1;const i=parseInt(e[1]),s=parseInt(e[2]),o=e[3]?parseInt(e[3]):0;return 0<=i&&i<=23&&0<=s&&s<=59&&0<=o&&o<=59})))throw new o(this)},d=function(t){if(!t.getAll(this.field).every((t=>t instanceof File&&this.accept?.some((e=>/^\.[a-z0-9]+$/i.test(e)?t.name.toLowerCase().endsWith(e.toLowerCase()):(t=>{const e=[],i=t.match(/^(?<toplevel>[a-z]+)\/(?<sub>[*]|[a-z0-9.+-]+)$/i);if(i){const t=i.groups.toplevel.toLowerCase(),s=i.groups.sub.toLowerCase();for(const[o,n]of(()=>{const t=new Map;return t.set("jpg|jpeg|jpe","image/jpeg"),t.set("gif","image/gif"),t.set("png","image/png"),t.set("bmp","image/bmp"),t.set("tiff|tif","image/tiff"),t.set("webp","image/webp"),t.set("ico","image/x-icon"),t.set("heic","image/heic"),t.set("asf|asx","video/x-ms-asf"),t.set("wmv","video/x-ms-wmv"),t.set("wmx","video/x-ms-wmx"),t.set("wm","video/x-ms-wm"),t.set("avi","video/avi"),t.set("divx","video/divx"),t.set("flv","video/x-flv"),t.set("mov|qt","video/quicktime"),t.set("mpeg|mpg|mpe","video/mpeg"),t.set("mp4|m4v","video/mp4"),t.set("ogv","video/ogg"),t.set("webm","video/webm"),t.set("mkv","video/x-matroska"),t.set("3gp|3gpp","video/3gpp"),t.set("3g2|3gp2","video/3gpp2"),t.set("txt|asc|c|cc|h|srt","text/plain"),t.set("csv","text/csv"),t.set("tsv","text/tab-separated-values"),t.set("ics","text/calendar"),t.set("rtx","text/richtext"),t.set("css","text/css"),t.set("htm|html","text/html"),t.set("vtt","text/vtt"),t.set("dfxp","application/ttaf+xml"),t.set("mp3|m4a|m4b","audio/mpeg"),t.set("aac","audio/aac"),t.set("ra|ram","audio/x-realaudio"),t.set("wav","audio/wav"),t.set("ogg|oga","audio/ogg"),t.set("flac","audio/flac"),t.set("mid|midi","audio/midi"),t.set("wma","audio/x-ms-wma"),t.set("wax","audio/x-ms-wax"),t.set("mka","audio/x-matroska"),t.set("rtf","application/rtf"),t.set("js","application/javascript"),t.set("pdf","application/pdf"),t.set("swf","application/x-shockwave-flash"),t.set("class","application/java"),t.set("tar","application/x-tar"),t.set("zip","application/zip"),t.set("gz|gzip","application/x-gzip"),t.set("rar","application/rar"),t.set("7z","application/x-7z-compressed"),t.set("exe","application/x-msdownload"),t.set("psd","application/octet-stream"),t.set("xcf","application/octet-stream"),t.set("doc","application/msword"),t.set("pot|pps|ppt","application/vnd.ms-powerpoint"),t.set("wri","application/vnd.ms-write"),t.set("xla|xls|xlt|xlw","application/vnd.ms-excel"),t.set("mdb","application/vnd.ms-access"),t.set("mpp","application/vnd.ms-project"),t.set("docx","application/vnd.openxmlformats-officedocument.wordprocessingml.document"),t.set("docm","application/vnd.ms-word.document.macroEnabled.12"),t.set("dotx","application/vnd.openxmlformats-officedocument.wordprocessingml.template"),t.set("dotm","application/vnd.ms-word.template.macroEnabled.12"),t.set("xlsx","application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"),t.set("xlsm","application/vnd.ms-excel.sheet.macroEnabled.12"),t.set("xlsb","application/vnd.ms-excel.sheet.binary.macroEnabled.12"),t.set("xltx","application/vnd.openxmlformats-officedocument.spreadsheetml.template"),t.set("xltm","application/vnd.ms-excel.template.macroEnabled.12"),t.set("xlam","application/vnd.ms-excel.addin.macroEnabled.12"),t.set("pptx","application/vnd.openxmlformats-officedocument.presentationml.presentation"),t.set("pptm","application/vnd.ms-powerpoint.presentation.macroEnabled.12"),t.set("ppsx","application/vnd.openxmlformats-officedocument.presentationml.slideshow"),t.set("ppsm","application/vnd.ms-powerpoint.slideshow.macroEnabled.12"),t.set("potx","application/vnd.openxmlformats-officedocument.presentationml.template"),t.set("potm","application/vnd.ms-powerpoint.template.macroEnabled.12"),t.set("ppam","application/vnd.ms-powerpoint.addin.macroEnabled.12"),t.set("sldx","application/vnd.openxmlformats-officedocument.presentationml.slide"),t.set("sldm","application/vnd.ms-powerpoint.slide.macroEnabled.12"),t.set("onetoc|onetoc2|onetmp|onepkg","application/onenote"),t.set("oxps","application/oxps"),t.set("xps","application/vnd.ms-xpsdocument"),t.set("odt","application/vnd.oasis.opendocument.text"),t.set("odp","application/vnd.oasis.opendocument.presentation"),t.set("ods","application/vnd.oasis.opendocument.spreadsheet"),t.set("odg","application/vnd.oasis.opendocument.graphics"),t.set("odc","application/vnd.oasis.opendocument.chart"),t.set("odb","application/vnd.oasis.opendocument.database"),t.set("odf","application/vnd.oasis.opendocument.formula"),t.set("wp|wpd","application/wordperfect"),t.set("key","application/vnd.apple.keynote"),t.set("numbers","application/vnd.apple.numbers"),t.set("pages","application/vnd.apple.pages"),t})())("*"===s&&n.startsWith(t+"/")||n===i[0])&&e.push(...o.split("|"))}return e})(e).some((e=>(e="."+e.trim(),t.name.toLowerCase().endsWith(e.toLowerCase())))))))))throw new o(this)},h=function(t){if(!t.getAll(this.field).map((t=>t.trim())).filter((t=>""!==t)).every((t=>this.accept?.some((e=>t===String(e))))))throw new o(this)},u=function(t){if(!t.getAll(this.field).map((t=>t.trim())).filter((t=>""!==t)).every((t=>{const e=0===(i=new Date(t).getDay())?7:i;var i;return this.accept?.some((t=>e===parseInt(t)))})))throw new o(this)},w=function(t){if(t.getAll(this.field).map((t=>t.trim())).filter((t=>""!==t)).length<parseInt(this.threshold))throw new o(this)},v=function(t){const e=t.getAll(this.field).map((t=>t.trim())).filter((t=>""!==t));if(parseInt(this.threshold)<e.length)throw new o(this)},g=function(t){const e=t.getAll(this.field).map((t=>t.trim())).filter((t=>""!==t));let i=0;if(e.forEach((t=>{"string"==typeof t&&(i+=t.length)})),0!==i&&i<parseInt(this.threshold))throw new o(this)},x=function(t){const e=t.getAll(this.field).map((t=>t.trim())).filter((t=>""!==t));let i=0;if(e.forEach((t=>{"string"==typeof t&&(i+=t.length)})),parseInt(this.threshold)<i)throw new o(this)},b=function(t){if(!t.getAll(this.field).map((t=>t.trim())).filter((t=>""!==t)).every((t=>!(parseFloat(t)<parseFloat(this.threshold)))))throw new o(this)},y=function(t){if(!t.getAll(this.field).map((t=>t.trim())).filter((t=>""!==t)).every((t=>!(parseFloat(this.threshold)<parseFloat(t)))))throw new o(this)},A=function(t){if(!t.getAll(this.field).map((t=>t.trim())).filter((t=>""!==t)).every((t=>!(/^[0-9]{4,}-[0-9]{2}-[0-9]{2}$/.test(t)&&/^[0-9]{4,}-[0-9]{2}-[0-9]{2}$/.test(this.threshold)&&t<this.threshold))))throw new o(this)},z=function(t){if(!t.getAll(this.field).map((t=>t.trim())).filter((t=>""!==t)).every((t=>!(/^[0-9]{4,}-[0-9]{2}-[0-9]{2}$/.test(t)&&/^[0-9]{4,}-[0-9]{2}-[0-9]{2}$/.test(this.threshold)&&this.threshold<t))))throw new o(this)},$=function(t){const e=t.getAll(this.field);let i=0;if(e.forEach((t=>{t instanceof File&&(i+=t.size)})),i<parseInt(this.threshold))throw new o(this)},j=function(t){const e=t.getAll(this.field);let i=0;if(e.forEach((t=>{t instanceof File&&(i+=t.size)})),parseInt(this.threshold)<i)throw new o(this)},I=function(t){const e=t.getAll(this.field).map((t=>t.trim())).filter((t=>""!==t)),i=parseFloat(this.base),s=parseFloat(this.interval);if(!(0<s))return!0;if(!e.every((t=>{const e=(parseFloat(t)-i)%s;return"0.000000"===Math.abs(e).toFixed(6)||"0.000000"===Math.abs(e-s).toFixed(6)})))throw new o(this)},O=({ruleObj:t,options:i})=>{const{rule:s,...o}=t;return"function"==typeof e[s]&&("function"!=typeof e[s].matches||e[s].matches(o,i))},E=({ruleObj:t,formDataTree:i,options:s})=>{const{rule:o}=t;e[o].call(t,i,s)},k=[],F=t=>[...k].reduce(((t,e)=>i=>e(i,t)),t),D=function(t,e={}){const i=(this.rules??[]).filter((t=>O({ruleObj:t,options:e}))),s=F(E);if(!i.every((i=>{try{s({ruleObj:i,formDataTree:t,options:e})}catch(t){if(!(t instanceof o))throw t;if(void 0!==t.error)throw t;return!1}return!0})))throw new o(this)},M=function(t,e={}){const i=(this.rules??[]).filter((t=>O({ruleObj:t,options:e}))),s=F(E);if(!i.some((i=>{try{s({ruleObj:i,formDataTree:t,options:e})}catch(t){if(!(t instanceof o))throw t;return!1}return!0})))throw new o(this)};var L;window.swv={validators:e,validate:(t,e,i={})=>{const n=(t.rules??[]).filter((t=>O({ruleObj:t,options:i})));if(!n.length)return new Map;const a=F(E),r=new s(e),p=n.reduce(((t,e)=>{try{a({ruleObj:e,formDataTree:r,options:i})}catch(e){if(!(e instanceof o))throw e;if(void 0!==e.field&&!t.has(e.field)&&void 0!==e.error)return t.set(e.field,e)}return t}),new Map);for(const t of r.keys())p.has(t)||p.set(t,{validInputs:r.getAll(t)});return p},use:t=>{k.push(t)},...null!==(L=window.swv)&&void 0!==L?L:{}}})();
(()=>{"use strict";const e=window.wp.i18n,t=e=>Math.abs(parseInt(e,10)),a=(e,t,a)=>{const n=new CustomEvent(`wpcf7${t}`,{bubbles:!0,detail:a});"string"==typeof e&&(e=document.querySelector(e)),e.dispatchEvent(n)},n=(e,t)=>{const n=new Map([["init","init"],["validation_failed","invalid"],["acceptance_missing","unaccepted"],["spam","spam"],["aborted","aborted"],["mail_sent","sent"],["mail_failed","failed"],["submitting","submitting"],["resetting","resetting"],["validating","validating"],["payment_required","payment-required"]]);n.has(t)&&(t=n.get(t)),Array.from(n.values()).includes(t)||(t=`custom-${t=(t=t.replace(/[^0-9a-z]+/i," ").trim()).replace(/\s+/,"-")}`);const r=e.getAttribute("data-status");if(e.wpcf7.status=t,e.setAttribute("data-status",t),e.classList.add(t),r&&r!==t){e.classList.remove(r);const t={contactFormId:e.wpcf7.id,pluginVersion:e.wpcf7.pluginVersion,contactFormLocale:e.wpcf7.locale,unitTag:e.wpcf7.unitTag,containerPostId:e.wpcf7.containerPost,status:e.wpcf7.status,prevStatus:r};a(e,"statuschanged",t)}return t},r=e=>{const{root:t,namespace:a="contact-form-7/v1"}=wpcf7.api;return c.reduceRight(((e,t)=>a=>t(a,e)),(e=>{let n,r,{url:c,path:o,endpoint:s,headers:i,body:l,data:p,...d}=e;"string"==typeof s&&(n=a.replace(/^\/|\/$/g,""),r=s.replace(/^\//,""),o=r?n+"/"+r:n),"string"==typeof o&&(-1!==t.indexOf("?")&&(o=o.replace("?","&")),o=o.replace(/^\//,""),c=t+o),i={Accept:"application/json, */*;q=0.1",...i},delete i["X-WP-Nonce"],p&&(l=JSON.stringify(p),i["Content-Type"]="application/json");const f={code:"fetch_error",message:"You are probably offline."},u={code:"invalid_json",message:"The response is not a valid JSON response."};return window.fetch(c||o||window.location.href,{...d,headers:i,body:l}).then((e=>Promise.resolve(e).then((e=>{if(e.status>=200&&e.status<300)return e;throw e})).then((e=>{if(204===e.status)return null;if(e&&e.json)return e.json().catch((()=>{throw u}));throw u}))),(()=>{throw f}))}))(e)},c=[];function o(e,t={}){const{target:a,scope:r=e,...c}=t;if(void 0===e.wpcf7?.schema)return;const o={...e.wpcf7.schema};if(void 0!==a){if(!e.contains(a))return;if(!a.closest(".wpcf7-form-control-wrap[data-name]"))return;if(a.closest(".novalidate"))return}const p=r.querySelectorAll(".wpcf7-form-control-wrap"),d=Array.from(p).reduce(((e,t)=>(t.closest(".novalidate")||t.querySelectorAll(":where(input, textarea, select):enabled").forEach((t=>{if(t.name)switch(t.type){case"button":case"image":case"reset":case"submit":break;case"checkbox":case"radio":t.checked&&e.append(t.name,t.value);break;case"select-multiple":for(const a of t.selectedOptions)e.append(t.name,a.value);break;case"file":for(const a of t.files)e.append(t.name,a);break;default:e.append(t.name,t.value)}})),e)),new FormData),f=e.getAttribute("data-status");Promise.resolve(n(e,"validating")).then((n=>{if(void 0!==swv){const n=swv.validate(o,d,t);for(const t of p){if(void 0===t.dataset.name)continue;const c=t.dataset.name;if(n.has(c)){const{error:t,validInputs:a}=n.get(c);i(e,c),void 0!==t&&s(e,c,t,{scope:r}),l(e,c,null!=a?a:[])}if(t.contains(a))break}}})).finally((()=>{n(e,f)}))}r.use=e=>{c.unshift(e)};const s=(e,t,a,n)=>{const{scope:r=e,...c}=null!=n?n:{},o=`${e.wpcf7?.unitTag}-ve-${t}`.replaceAll(/[^0-9a-z_-]+/gi,""),s=e.querySelector(`.wpcf7-form-control-wrap[data-name="${t}"] .wpcf7-form-control`);(()=>{const t=document.createElement("li");t.setAttribute("id",o),s&&s.id?t.insertAdjacentHTML("beforeend",`<a href="#${s.id}">${a}</a>`):t.insertAdjacentText("beforeend",a),e.wpcf7.parent.querySelector(".screen-reader-response ul").appendChild(t)})(),r.querySelectorAll(`.wpcf7-form-control-wrap[data-name="${t}"]`).forEach((e=>{const t=document.createElement("span");t.classList.add("wpcf7-not-valid-tip"),t.setAttribute("aria-hidden","true"),t.insertAdjacentText("beforeend",a),e.appendChild(t),e.querySelectorAll("[aria-invalid]").forEach((e=>{e.setAttribute("aria-invalid","true")})),e.querySelectorAll(".wpcf7-form-control").forEach((e=>{e.classList.add("wpcf7-not-valid"),e.setAttribute("aria-describedby",o),"function"==typeof e.setCustomValidity&&e.setCustomValidity(a),e.closest(".use-floating-validation-tip")&&(e.addEventListener("focus",(e=>{t.setAttribute("style","display: none")})),t.addEventListener("click",(e=>{t.setAttribute("style","display: none")})))}))}))},i=(e,t)=>{const a=`${e.wpcf7?.unitTag}-ve-${t}`.replaceAll(/[^0-9a-z_-]+/gi,"");e.wpcf7.parent.querySelector(`.screen-reader-response ul li#${a}`)?.remove(),e.querySelectorAll(`.wpcf7-form-control-wrap[data-name="${t}"]`).forEach((e=>{e.querySelector(".wpcf7-not-valid-tip")?.remove(),e.querySelectorAll("[aria-invalid]").forEach((e=>{e.setAttribute("aria-invalid","false")})),e.querySelectorAll(".wpcf7-form-control").forEach((e=>{e.removeAttribute("aria-describedby"),e.classList.remove("wpcf7-not-valid"),"function"==typeof e.setCustomValidity&&e.setCustomValidity("")}))}))},l=(e,t,a)=>{e.querySelectorAll(`[data-reflection-of="${t}"]`).forEach((e=>{if("output"===e.tagName.toLowerCase()){const t=e;0===a.length&&a.push(t.dataset.default),a.slice(0,1).forEach((e=>{e instanceof File&&(e=e.name),t.textContent=e}))}else e.querySelectorAll("output").forEach((e=>{e.hasAttribute("data-default")?0===a.length?e.removeAttribute("hidden"):e.setAttribute("hidden","hidden"):e.remove()})),a.forEach((a=>{a instanceof File&&(a=a.name);const n=document.createElement("output");n.setAttribute("name",t),n.textContent=a,e.appendChild(n)}))}))};function p(e,t={}){if(wpcf7.blocked)return d(e),void n(e,"submitting");const c=new FormData(e);t.submitter&&t.submitter.name&&c.append(t.submitter.name,t.submitter.value);const o={contactFormId:e.wpcf7.id,pluginVersion:e.wpcf7.pluginVersion,contactFormLocale:e.wpcf7.locale,unitTag:e.wpcf7.unitTag,containerPostId:e.wpcf7.containerPost,status:e.wpcf7.status,inputs:Array.from(c,(e=>{const t=e[0],a=e[1];return!t.match(/^_/)&&{name:t,value:a}})).filter((e=>!1!==e)),formData:c};r({endpoint:`contact-forms/${e.wpcf7.id}/feedback`,method:"POST",body:c,wpcf7:{endpoint:"feedback",form:e,detail:o}}).then((t=>{const r=n(e,t.status);return o.status=t.status,o.apiResponse=t,["invalid","unaccepted","spam","aborted"].includes(r)?a(e,r,o):["sent","failed"].includes(r)&&a(e,`mail${r}`,o),a(e,"submit",o),t})).then((t=>{t.posted_data_hash&&(e.querySelector('input[name="_wpcf7_posted_data_hash"]').value=t.posted_data_hash),"mail_sent"===t.status&&(e.reset(),e.wpcf7.resetOnMailSent=!0),t.invalid_fields&&t.invalid_fields.forEach((t=>{s(e,t.field,t.message)})),e.wpcf7.parent.querySelector('.screen-reader-response [role="status"]').insertAdjacentText("beforeend",t.message),e.querySelectorAll(".wpcf7-response-output").forEach((e=>{e.innerText=t.message}))})).catch((e=>console.error(e)))}r.use(((e,t)=>{if(e.wpcf7&&"feedback"===e.wpcf7.endpoint){const{form:t,detail:r}=e.wpcf7;d(t),a(t,"beforesubmit",r),n(t,"submitting")}return t(e)}));const d=e=>{e.querySelectorAll(".wpcf7-form-control-wrap").forEach((t=>{t.dataset.name&&i(e,t.dataset.name)})),e.wpcf7.parent.querySelector('.screen-reader-response [role="status"]').innerText="",e.querySelectorAll(".wpcf7-response-output").forEach((e=>{e.innerText=""}))};function f(e){const t=new FormData(e),c={contactFormId:e.wpcf7.id,pluginVersion:e.wpcf7.pluginVersion,contactFormLocale:e.wpcf7.locale,unitTag:e.wpcf7.unitTag,containerPostId:e.wpcf7.containerPost,status:e.wpcf7.status,inputs:Array.from(t,(e=>{const t=e[0],a=e[1];return!t.match(/^_/)&&{name:t,value:a}})).filter((e=>!1!==e)),formData:t};r({endpoint:`contact-forms/${e.wpcf7.id}/refill`,method:"GET",wpcf7:{endpoint:"refill",form:e,detail:c}}).then((t=>{e.wpcf7.resetOnMailSent?(delete e.wpcf7.resetOnMailSent,n(e,"mail_sent")):n(e,"init"),c.apiResponse=t,a(e,"reset",c)})).catch((e=>console.error(e)))}r.use(((e,t)=>{if(e.wpcf7&&"refill"===e.wpcf7.endpoint){const{form:t,detail:a}=e.wpcf7;d(t),n(t,"resetting")}return t(e)}));const u=(e,t)=>{for(const a in t){const n=t[a];e.querySelectorAll(`input[name="${a}"]`).forEach((e=>{e.value=""})),e.querySelectorAll(`img.wpcf7-captcha-${a.replaceAll(":","")}`).forEach((e=>{e.setAttribute("src",n)}));const r=/([0-9]+)\.(png|gif|jpeg)$/.exec(n);r&&e.querySelectorAll(`input[name="_wpcf7_captcha_challenge_${a}"]`).forEach((e=>{e.value=r[1]}))}},m=(e,t)=>{for(const a in t){const n=t[a][0],r=t[a][1];e.querySelectorAll(`.wpcf7-form-control-wrap[data-name="${a}"]`).forEach((e=>{e.querySelector(`input[name="${a}"]`).value="",e.querySelector(".wpcf7-quiz-label").textContent=n,e.querySelector(`input[name="_wpcf7_quiz_answer_${a}"]`).value=r}))}};function w(e){const a=new FormData(e);e.wpcf7={id:t(a.get("_wpcf7")),status:e.getAttribute("data-status"),pluginVersion:a.get("_wpcf7_version"),locale:a.get("_wpcf7_locale"),unitTag:a.get("_wpcf7_unit_tag"),containerPost:t(a.get("_wpcf7_container_post")),parent:e.closest(".wpcf7"),get schema(){return wpcf7.schemas.get(this.id)}},wpcf7.schemas.set(e.wpcf7.id,void 0),e.querySelectorAll(".has-spinner").forEach((e=>{e.insertAdjacentHTML("afterend",'<span class="wpcf7-spinner"></span>')})),(e=>{e.querySelectorAll(".wpcf7-exclusive-checkbox").forEach((t=>{t.addEventListener("change",(t=>{const a=t.target.getAttribute("name");e.querySelectorAll(`input[type="checkbox"][name="${a}"]`).forEach((e=>{e!==t.target&&(e.checked=!1)}))}))}))})(e),(e=>{e.querySelectorAll(".has-free-text").forEach((t=>{const a=t.querySelector("input.wpcf7-free-text"),n=t.querySelector('input[type="checkbox"], input[type="radio"]');a.disabled=!n.checked,e.addEventListener("change",(e=>{a.disabled=!n.checked,e.target===n&&n.checked&&a.focus()}))}))})(e),(e=>{e.querySelectorAll(".wpcf7-validates-as-url").forEach((e=>{e.addEventListener("change",(t=>{let a=e.value.trim();a&&!a.match(/^[a-z][a-z0-9.+-]*:/i)&&-1!==a.indexOf(".")&&(a=a.replace(/^\/+/,""),a="http://"+a),e.value=a}))}))})(e),(e=>{if(!e.querySelector(".wpcf7-acceptance")||e.classList.contains("wpcf7-acceptance-as-validation"))return;const t=()=>{let t=!0;e.querySelectorAll(".wpcf7-acceptance").forEach((e=>{if(!t||e.classList.contains("optional"))return;const a=e.querySelector('input[type="checkbox"]');(e.classList.contains("invert")&&a.checked||!e.classList.contains("invert")&&!a.checked)&&(t=!1)})),e.querySelectorAll(".wpcf7-submit").forEach((e=>{e.disabled=!t}))};t(),e.addEventListener("change",(e=>{t()})),e.addEventListener("wpcf7reset",(e=>{t()}))})(e),(e=>{const a=(e,a)=>{const n=t(e.getAttribute("data-starting-value")),r=t(e.getAttribute("data-maximum-value")),c=t(e.getAttribute("data-minimum-value")),o=e.classList.contains("down")?n-a.value.trim().length:a.value.trim().length;e.setAttribute("data-current-value",o),e.innerText=o,r&&r<a.value.length?e.classList.add("too-long"):e.classList.remove("too-long"),c&&a.value.length<c?e.classList.add("too-short"):e.classList.remove("too-short")},n=t=>{t={init:!1,...t},e.querySelectorAll(".wpcf7-character-count").forEach((n=>{const r=n.getAttribute("data-target-name"),c=e.querySelector(`[name="${r}"]`);c&&(c.value=c.defaultValue,a(n,c),t.init&&c.addEventListener("keyup",(e=>{a(n,c)})))}))};n({init:!0}),e.addEventListener("wpcf7reset",(e=>{n()}))})(e),window.addEventListener("load",(t=>{wpcf7.cached&&e.reset()})),e.addEventListener("reset",(t=>{wpcf7.reset(e)})),e.addEventListener("submit",(t=>{wpcf7.submit(e,{submitter:t.submitter}),t.preventDefault()})),e.addEventListener("wpcf7submit",(t=>{t.detail.apiResponse.captcha&&u(e,t.detail.apiResponse.captcha),t.detail.apiResponse.quiz&&m(e,t.detail.apiResponse.quiz)})),e.addEventListener("wpcf7reset",(t=>{t.detail.apiResponse.captcha&&u(e,t.detail.apiResponse.captcha),t.detail.apiResponse.quiz&&m(e,t.detail.apiResponse.quiz)})),e.addEventListener("change",(t=>{t.target.closest(".wpcf7-form-control")&&wpcf7.validate(e,{target:t.target})})),e.addEventListener("wpcf7statuschanged",(t=>{const a=t.detail.status;e.querySelectorAll(".active-on-any").forEach((e=>{e.removeAttribute("inert"),e.classList.remove("active-on-any")})),e.querySelectorAll(`.inert-on-${a}`).forEach((e=>{e.setAttribute("inert","inert"),e.classList.add("active-on-any")}))}))}document.addEventListener("DOMContentLoaded",(t=>{var a;if("undefined"!=typeof wpcf7)if(void 0!==wpcf7.api)if("function"==typeof window.fetch)if("function"==typeof window.FormData)if("function"==typeof NodeList.prototype.forEach)if("function"==typeof String.prototype.replaceAll){wpcf7={init:w,submit:p,reset:f,validate:o,schemas:new Map,...null!==(a=wpcf7)&&void 0!==a?a:{}},document.querySelectorAll("form .wpcf7[data-wpcf7-id]").forEach((t=>{const a=document.createElement("p");a.setAttribute("class","wpcf7-form-in-wrong-place");const n=document.createElement("strong");n.append((0,e.__)("Error:","contact-form-7"));const r=(0,e.__)("This contact form is placed in the wrong place.","contact-form-7");a.append(n," ",r),t.replaceWith(a)})),document.querySelectorAll(".wpcf7 > form").forEach((e=>{wpcf7.init(e),e.closest(".wpcf7").classList.replace("no-js","js")}));for(const e of wpcf7.schemas.keys())r({endpoint:`contact-forms/${e}/feedback/schema`,method:"GET"}).then((t=>{wpcf7.schemas.set(e,t)}))}else console.error("Your browser does not support String.replaceAll().");else console.error("Your browser does not support NodeList.forEach().");else console.error("Your browser does not support window.FormData().");else console.error("Your browser does not support window.fetch().");else console.error("wpcf7.api is not defined.");else console.error("wpcf7 is not defined.")}))})();
!function(){function e(e,t){let n=e.id?e.id:"wpbf-"+Math.random().toString(36).substring(2,9);e.id||(e.id=n);let i=`wpbf-style-${n}`,s=document.querySelector(`#${i}`);if(s&&s instanceof HTMLStyleElement)return t&&(s.innerHTML=t),s;let o=document.createElement("style");return o.id=`wpbf-style-${n}`,t&&(o.innerHTML=t),document.head.appendChild(o),o}function t(t){return e(t,void 0).id}function n(e,t){if(!(e instanceof NodeList)&&"string"!=typeof e||"function"!=typeof t)return;let n=e instanceof NodeList?e:document.querySelectorAll(e);if(n.length)for(let e=0;e<n.length;e++){let i=n[e];i instanceof HTMLElement&&t(i)}}function i(e,t,n){if("string"!=typeof e||"function"!=typeof n)return;let i=e;switch(e){case"mouseenter":i="mouseover";break;case"mouseleave":i="mouseout"}document.addEventListener(i,function(e){if(!e.target||!(e.target instanceof HTMLElement))return;let s=e.target;if(t){let n=e.target.closest(t);if(!n)return;n instanceof HTMLElement&&(s=n)}s&&"mouseout"===i&&e instanceof MouseEvent&&e.relatedTarget instanceof Node&&s.contains(e.relatedTarget)||n.call(s,e)})}function s(e,t){let n=e instanceof HTMLElement?e:document.querySelector(e);return n&&n.getAttribute&&t&&n.getAttribute(t)||""}function o(e,t){let n=s(e,t);return n?parseInt(n,10):0}function a(){return!!window.wp&&!!window.wp.customize}let c={desktop:1024,tablet:768,mobile:480};function l(e){let t=c[e]||0,n=document.body.className.match("wpbf-"+e+"-breakpoint-[\\w-]*\\b");if(!n)return t;let i=n.toString().match(/\d+/);return Array.isArray(i)?parseInt(i[0],10):0}function u(){return c.desktop=l("desktop"),c.tablet=l("tablet"),c.mobile=l("mobile"),c}function r(){let e=u(),t=document.documentElement.clientWidth,n="desktop";return t>e.desktop?n:n=t>e.tablet?"tablet":"mobile"}function d(e,t){if(!e.parentNode)return[];let n=[],i=e.parentNode.firstChild;for(;i;)1===i.nodeType&&i instanceof HTMLElement&&i!==e&&(!t||i.matches(t))&&n.push(i),i=i.nextSibling;return n}function f(e){if(!e)return 0;e.style.opacity="0",e.style.display="block";let t=window.getComputedStyle(e),n=e.offsetHeight-parseFloat(t.paddingTop)-parseFloat(t.paddingBottom)-parseFloat(t.borderTopWidth)-parseFloat(t.borderBottomWidth),i=e.getAttribute("style");return i&&(i=(i=i.replace(/display\s*:\s*block\s*;/,"")).replace(/opacity\s*:\s*0\s*;/,""),e.setAttribute("style",i)),n}!function(){let e=u();function t(){let t=document.documentElement.clientWidth,n="";n=t>e.desktop?"wpbf-is-desktop":t>e.tablet?"wpbf-is-tablet":"wpbf-is-mobile",document.body.classList.remove("wpbf-is-desktop"),document.body.classList.remove("wpbf-is-tablet"),document.body.classList.remove("wpbf-is-mobile"),document.body.classList.add(n)}t(),function(){let e=document.querySelector(".scrolltop");if(!e||!(e instanceof HTMLElement))return;let t=e.dataset.scrolltopValue,n=t?parseFloat(t):0;window.addEventListener("scroll",function(t){window.scrollY>n?e.classList.add("is-visible"):e.classList.remove("is-visible")}),i("click",".scrolltop",function(e){document.body.tabIndex=-1,document.body.focus(),this.blur(),function(e,t){let n=window.scrollY,i=0-n,s=performance.now();requestAnimationFrame(function e(t){let o=t-s;window.scrollTo(0,n+i/2-i/2*Math.cos(Math.PI*o/500)),o<500&&requestAnimationFrame(e)})}(0,0)})}(),n(".wpcf7-form-control-wrap",function(e){e.addEventListener("mouseenter",function(){e.querySelectorAll(".wpcf7-not-valid-tip").forEach(function(e){e.classList.add("wpbf-fading"),e.classList.add("wpbf-fade-out"),e instanceof HTMLElement&&e&&setTimeout(function(){e.style.display="none"},400)})})}),function(){let e=document.querySelector(".wpbf-page");if(!e||!(e instanceof HTMLElement))return;let t=window.getComputedStyle(e).marginTop;window.addEventListener("resize",function(){e.offsetWidth>=document.documentElement.clientWidth?(e.style.marginTop="0",e.style.marginBottom="0"):(e.style.marginTop=t,e.style.marginBottom=t)})}(),document.body.classList.add("wpbf-vanilla"),window.addEventListener("resize",function(e){t()}),window.addEventListener("load",function(){window.setTimeout(function(){n(".opacity",function(e){e.classList.add("is-visible")})},200),n(".display-none",function(e){e.style.display="block"}),window.dispatchEvent(new Event("resize")),window.dispatchEvent(new Event("scroll"))})}(),function(){let s=o(".wpbf-navigation","data-sub-menu-animation-duration");function c(){n(".wpbf-menu-item-search",function(e){if(!e.classList.contains("active"))return;let t=e.querySelector(".wpbf-menu-search");t&&(t.classList.remove("is-expanded"),setTimeout(function(){t.classList.remove("display-block")},250)),setTimeout(function(){e.classList.remove("active"),e.setAttribute("aria-expanded","false")},400)})}function l(){if(!document.querySelector(".wpbf-menu-centered"))return;let e=document.querySelectorAll(".wpbf-navigation .wpbf-menu-centered .wpbf-menu > li > a").length/2;e=Math.floor(e)-1,n(".wpbf-menu-centered .logo-container",function(t){let n=document.querySelector(".wpbf-navigation .wpbf-menu-centered .wpbf-menu > li:nth-child("+e+")");n&&n.parentNode&&(n.parentNode.insertBefore(t,n.nextSibling),t.style.display="block")})}i("click",".wpbf-menu-item-search",function(t){t.stopPropagation(),this.classList.contains("active")||t.preventDefault(),function(t){Array.from(document.querySelectorAll(".wpbf-navigation .wpbf-menu > li")).slice(-3).forEach(function(e){e.classList.add("calculate-width")});let i=0;if(n(".calculate-width",function(e){i+=e.offsetWidth}),i<200&&(i=250),!t.classList.contains("active")){t.classList.add("active"),t.setAttribute("aria-expanded","true");let n=t.querySelector(".wpbf-menu-search"),s=t.querySelector("input[type=search]");n&&n instanceof HTMLElement&&s&&s instanceof HTMLInputElement&&(e(n,`
.wpbf-menu-item-search .wpbf-menu-search.display-block {display: block;}
.wpbf-menu-item-search .wpbf-menu-search.is-expanded {width: ${i}px;}
`),n.classList.add("display-block"),setTimeout(function(){n.classList.add("is-expanded")},1),s.value="",s.focus())}}(this)}),window.addEventListener("click",function(e){c()}),document.addEventListener("keyup",function(e){if("Escape"===e.key||"Esc"===e.key){c();return}"Tab"===e.key&&e.target&&e.target instanceof HTMLElement&&!e.target.classList.contains("wpbff-search")&&c()}),l(),i("mouseenter",".wpbf-sub-menu > .menu-item-has-children:not(.wpbf-mega-menu) .menu-item-has-children",function(n){let i=this.querySelector(".sub-menu");if(!i||!(i instanceof HTMLElement)||i.classList.contains("is-shown"))return;let o=t(i).replace("wpbf-style-","");e(i,`
#${o}.display-block {display: block;}
#${o}.is-shown {opacity: 1;}
#${o} {opacity: 0; transition-duration: ${s}ms;}
`),i.classList.add("display-block"),setTimeout(function(){i.classList.add("is-shown")},1)}),i("mouseleave",".wpbf-sub-menu > .menu-item-has-children:not(.wpbf-mega-menu) .menu-item-has-children",function(){let e=this.querySelector(".sub-menu");e&&e.classList.contains("is-shown")&&(e.classList.remove("is-shown"),setTimeout(function(){e.classList.remove("display-block")},s))}),i("mouseenter",".wpbf-sub-menu-animation-fade > .menu-item-has-children",function(){let n=this.querySelector(".sub-menu");if(!n||!(n instanceof HTMLElement)||n.classList.contains("is-shown"))return;let i=t(n).replace("wpbf-style-","");e(n,`
#${i}.display-block {display:block;}
#${i}.is-shown {opacity: 1;}
#${i} {opacity: 0; transition: opacity ${s}ms ease-in-out;}
`),n.classList.add("display-block"),setTimeout(function(){n.classList.add("is-shown")},1)}),i("mouseleave",".wpbf-sub-menu-animation-fade > .menu-item-has-children",function(e){let t=this.querySelector(".sub-menu");t&&t.classList.contains("is-shown")&&(t.classList.remove("is-shown"),setTimeout(function(){t.classList.remove("display-block")},s))}),n(".menu-item-has-children",function(e){e.setAttribute("aria-haspopup","true")}),document.body.addEventListener("mousedown",function(){this.classList.add("using-mouse"),n(".menu-item-has-children",function(e){e.classList.remove("wpbf-sub-menu-focus")})}),document.body.addEventListener("keydown",function(){this.classList.remove("using-mouse")}),i("mouseenter",".wpbf-sub-menu > .menu-item-has-children:not(.wpbf-sub-menu-focus)",function(){document.body.classList.add("using-mouse"),n(".menu-item-has-children",function(e){e.classList.remove("wpbf-sub-menu-focus")});let e=function(e,t){let n=e.className;n=(n=n.replace(/^\s+|\s+$/g,"")).replace(/\s/g,".");let i=e.parentNode;if(!i)return null;let s=i.querySelectorAll(`.${n} > a`);if(!s.length)return null;let o=null;for(let t=0;t<s.length;t++){if(s[t].parentNode!=e)continue;let n=s[t];if(n instanceof HTMLElement){o=n;break}}return o}(this,0);e&&e.focus()}),i("mouseleave",".wpbf-sub-menu > .menu-item-has-children.wpbf-sub-menu-focus",function(){this.classList.remove("wpbf-sub-menu-focus")}),i("focus",".wpbf-sub-menu a",function(){if(document.body.classList.contains("using-mouse"))return;n(".wpbf-sub-menu > .menu-item-has-children",function(e){e.classList.remove("wpbf-sub-menu-focus")}),n(".wpbf-sub-menu > .menu-item-has-children > .sub-menu",function(e){e.style.display="none"});let e=this;for(;e.parentNode&&e.parentNode instanceof HTMLElement;)e.classList.contains("menu-item-has-children")&&e.classList.add("wpbf-sub-menu-focus"),e=e.parentNode}),a()&&wp.customize.bind("preview-ready",function(){wp.customize.selectiveRefresh.bind("partial-content-rendered",function(e){s=o(".wpbf-navigation","data-sub-menu-animation-duration"),l()})})}(),function(){let s,o=u();function a(){let e=document.querySelector(".wpbf-mobile-menu-hamburger");if(e){s="hamburger";return}if(e=document.querySelector(".wpbf-mobile-menu-default")){s="default";return}s="premium"}function c(n){if("premium"===n)return;let i=document.querySelector("#wpbf-mobile-menu-toggle");if(!i||!i.classList.contains("active"))return;let s=document.querySelector(".wpbf-mobile-menu-container");if(s&&s instanceof HTMLElement&&s.classList.contains("active")){let n=f(s),i=t(s).replace("wpbf-style-","");e(s,`
#${i}.wpbf-slide-anim {display: block; height: 0; overflow: hidden;}
#${i}.wpbf-slide-anim.is-expanded {height: ${n}px;}
`),setTimeout(function(){s.classList.remove("active"),s.classList.remove("is-expanded"),setTimeout(function(){s.classList.remove("wpbf-slide-anim")},400)},1)}i.classList.remove("active"),i.setAttribute("aria-expanded","false"),"hamburger"===n&&(i.classList.remove("wpbff-times"),i.classList.add("wpbff-hamburger"))}function l(e){i("click","hamburger"===e?".wpbf-mobile-menu-hamburger .wpbf-submenu-toggle":".wpbf-mobile-menu-default .wpbf-submenu-toggle",function(e){e.preventDefault(),this.classList.contains("active")?m(this):r(this)})}function r(n){n.querySelectorAll("i").forEach(function(e){e.classList.remove("wpbff-arrow-down"),e.classList.add("wpbff-arrow-up")}),n.classList.add("active"),n.setAttribute("aria-expanded","true"),d(n,".sub-menu").forEach(function(n){let i=f(n),s=t(n).replace("wpbf-style-","");e(n,`
#${s}.wpbf-slide-anim {display: block; height: 0; overflow: hidden;}
#${s}.wpbf-slide-anim.is-expanded {height: ${i}px;}
`),n.classList.add("wpbf-slide-anim"),setTimeout(function(){n.classList.add("is-expanded"),setTimeout(function(){e(n,`#${s}.wpbf-slide-anim {display: block}`)},400)},1)}),function(e){let t=e.closest(".wpbf-navigation");if(t&&!t.classList.contains("wpbf-mobile-sub-menu-auto-collapse"))return;let n=[],i=e.closest(".menu-item-has-children");i&&i instanceof HTMLElement&&(n=d(i,".menu-item-has-children")),n.forEach(function(e){let t=e.querySelector(".wpbf-submenu-toggle");t&&t instanceof HTMLElement&&m(t)})}(n)}function m(n){n.querySelectorAll("i").forEach(function(e){e.classList.remove("wpbff-arrow-up"),e.classList.add("wpbff-arrow-down")}),n.classList.remove("active"),n.setAttribute("aria-expanded","false"),d(n,".sub-menu").forEach(function(n){let i=f(n),s=t(n).replace("wpbf-style-","");e(n,`
#${s}.wpbf-slide-anim {display: block; height: 0; overflow: hidden;}
#${s}.wpbf-slide-anim.is-expanded {height: ${i}px;}
`),setTimeout(function(){n.classList.remove("is-expanded"),setTimeout(function(){n.classList.remove("wpbf-slide-anim")},400)},1)})}window.addEventListener("resize",function(e){o=u()}),a(),i("click",".wpbf-mobile-menu a",function(){if("premium"===s||!this.href.match("#")&&!this.href.match("/#"))return;let e=this.parentNode;e instanceof HTMLElement&&e.classList.contains("menu-item-has-children")?this.closest(".wpbf-mobile-mega-menu")?c(s):function(e){let t=d(e,".wpbf-submenu-toggle");if(!t.length)return;let n=t[0];n.classList.contains("active")?m(n):r(n)}(this):c(s)}),i("click",".wpbf-mobile-menu-toggle",function(){a(),function(n){if("premium"===n)return;let i=document.querySelector("#wpbf-mobile-menu-toggle");i&&(i.classList.contains("active")?c(n):function(n){if("premium"===n)return;let i=document.querySelector("#wpbf-mobile-menu-toggle");if(!i)return;let s=document.querySelector(".wpbf-mobile-menu-container");if(s&&s instanceof HTMLElement&&!s.classList.contains("active")){s.classList.add("active");let n=f(s),i=t(s).replace("wpbf-style-","");e(s,`
#${i}.wpbf-slide-anim {display: block; height: 0; overflow: hidden;}
#${i}.wpbf-slide-anim.is-expanded {height: ${n}px;}
`),s.classList.add("wpbf-slide-anim"),setTimeout(function(){s.classList.add("is-expanded"),setTimeout(function(){e(s,`#${i}.wpbf-slide-anim {display: block;}`)},400)},1)}i.classList.add("active"),i.setAttribute("aria-expanded","true"),"hamburger"===n&&(i.classList.remove("wpbff-hamburger"),i.classList.add("wpbff-times"))}(n))}(s)}),window.addEventListener("resize",function(){let e=document.documentElement.clientHeight,t=document.documentElement.clientWidth,i=document.querySelector(".wpbf-mobile-nav-wrapper"),a=i&&i instanceof HTMLElement?i.offsetHeight:0;n(".wpbf-mobile-menu-container.active nav",function(t){t.style.maxHeight=e-a+"px"}),t>o.desktop&&c(s)}),l("default"),l("hamburger")}(),window.Wpbf={site:{getBreakpoints:u,getActiveBreakpoint:r,isInsideCustomizer:a,forEachEl:n,listenDocumentEvent:i,getAttr:s,getAttrAsNumber:o}},window.WpbfTheme={breakpoints:u(),activeBreakpoint:r(),isInsideCustomizer:a()}}();
window.NodeList&&!NodeList.prototype.forEach&&(NodeList.prototype.forEach=Array.prototype.forEach);var WpbfPremium={};WpbfPremium.site=(t=>{var e=!(!window.wp||!wp.customize),a={desktop:1024,tablet:768,mobile:480};function n(){o("desktop"),o("tablet"),o("mobile"),t(document).on("click",".wpbf-video-opt-in-button, .wpbf-video-opt-in-image",function(e){e.preventDefault();var e=t(this).parent().next(),n=e.attr("data-wpbf-video");e.attr("data-wpbf-video"),e.children().attr("src",n),e.removeClass("opt-in"),this.parentNode.remove(this)}),window.addEventListener("load",function(e){var n=t(".wpbf-post-grid-masonry");n.length&&n.isotope({itemSelector:".wpbf-article-wrapper",transitionDuration:0})})}function o(e){var n="wpbf-"+e+"-breakpoint-[\\w-]*\\b",n=t("body").attr("class").match(n);null!=n&&(a[e]=n.toString().match(/\d+/),a[e]=Array.isArray(a[e])?a[e][0]:a[e])}return n(),n(),{isInsideCustomizer:e,breakpoints:a}})(jQuery),WpbfPremium.desktopMenu=(a=>{var e=WpbfPremium.isInsideCustomizer,n=WpbfPremium.site.breakpoints,t=parseInt(a(".wpbf-navigation").data("sub-menu-animation-duration"),10),o=(a(document).on("click",".wpbf-menu-full-screen a",function(){i("full-screen")&&(this.href.match("#")||this.href.match("/#"))&&l("full-screen")}),a(document).on("click",".wpbf-menu-off-canvas a",function(){var e;i("off-canvas")&&(this.href.match("#")||this.href.match("/#"))&&(!this.parentNode.classList.contains("menu-item-has-children")||a(this).closest(".wpbf-mega-menu").length?l("off-canvas"):(e=a(e=this).siblings(".wpbf-submenu-toggle")).length&&((e=e[0]).classList.contains("active")?f:u)(e))}),a(document).on("click",".wpbf-menu-toggle",function(){i("full-screen")?s("full-screen"):i("off-canvas")&&s("off-canvas")}),a(document).on("click",".wpbf-menu-full-screen .wpbf-close",function(){l("full-screen")}),a(document).on("click",".wpbf-menu-full-screen",function(){l("full-screen")}),a(document).on("click",".wpbf-menu-full-screen.active nav",function(e){e.stopPropagation()}),a(document).on("click",".wpbf-menu-off-canvas .wpbf-close",function(){s("off-canvas")}),window.addEventListener("click",function(){i("off-canvas")&&l("off-canvas")}),a(document).on("keyup",function(e){"Escape"!==e.key&&"Esc"!==e.key&&27!==e.keyCode||(i("full-screen")?l("full-screen"):i("off-canvas")&&l("off-canvas"))}),a(window).on("resize",function(){var e=a(window).width();i("off-canvas")&&e<n.desktop&&l("off-canvas")}),a(document).on("click",'.wpbf-mega-menu > .sub-menu > .menu-item a[href="#"]',function(e){e.preventDefault()}),a(window).on("resize",function(){var e;a(window).width()>n.desktop?(e=a(".wpbf-mobile-mega-menu")).length&&(e.removeClass("wpbf-mobile-mega-menu").addClass("wpbf-mega-menu"),e.hasClass("wpbf-mobile-mega-menu-container-width")&&e.removeClass("wpbf-mobile-mega-menu-container-width").addClass("wpbf-mega-menu-container-width"),e.hasClass("wpbf-mobile-mega-menu-full-width")&&e.removeClass("wpbf-mobile-mega-menu-full-width").addClass("wpbf-mega-menu-full-width"),e.hasClass("wpbf-mobile-mega-menu-custom-width"))&&e.removeClass("wpbf-mobile-mega-menu-custom-width").addClass("wpbf-mega-menu-custom-width"):(e=a(".wpbf-mega-menu")).length&&(e.removeClass("wpbf-mega-menu").addClass("wpbf-mobile-mega-menu"),e.hasClass("wpbf-mega-menu-container-width")&&e.removeClass("wpbf-mega-menu-container-width").addClass("wpbf-mobile-mega-menu-container-width"),e.hasClass("wpbf-mega-menu-full-width")&&e.removeClass("wpbf-mega-menu-full-width").addClass("wpbf-mobile-mega-menu-full-width"),e.hasClass("wpbf-mega-menu-custom-width"))&&e.removeClass("wpbf-mega-menu-custom-width").addClass("wpbf-mobile-mega-menu-custom-width")}),a(document).on("click",".wpbf-menu-off-canvas .wpbf-submenu-toggle",function(e){e.preventDefault(),(this.classList.contains("active")?f:u)(this)}),".wpbf-sub-menu-animation-down > .menu-item-has-children"),o=(a(document).on("mouseenter",o,function(){a(".sub-menu",this).first().css({display:"block"}).stop().animate({marginTop:"0",opacity:"1"},t)}).on("mouseleave",o,function(){a(".sub-menu",this).first().stop().animate({opacity:"0",marginTop:"-10px"},t,function(){this.style.display="none"})}),".wpbf-sub-menu-animation-up > .menu-item-has-children"),o=(a(document).on("mouseenter",o,function(){a(".sub-menu",this).first().css({display:"block"}).stop().animate({marginTop:"0",opacity:"1"},t)}).on("mouseleave",o,function(){a(".sub-menu",this).first().stop().animate({opacity:"0",marginTop:"10px"},t,function(){this.style.display="none"})}),".wpbf-sub-menu-animation-zoom-in > .menu-item-has-children"),o=(a(document).on("mouseenter",o,function(){a(".sub-menu",this).first().stop(!0).css({display:"block"}).animate({scale:1,opacity:1},t)}).on("mouseleave",o,function(){a(".sub-menu",this).first().stop(!0).animate({scale:.95,opacity:0},t,function(){a(this).stop(!0).fadeOut(5)})}),".wpbf-sub-menu-animation-zoom-out > .menu-item-has-children");function i(e){switch(e){case"full-screen":return!!document.querySelector(".wpbf-menu-full-screen");case"off-canvas":return!!document.querySelector(".wpbf-menu-off-canvas");default:return}}function s(e){var n;"full-screen"===e?((n=document.querySelector(".wpbf-menu-full-screen")).classList.contains("active")?l:c)(e,n):"off-canvas"===e&&((n=document.querySelector(".wpbf-menu-off-canvas")).classList.contains("active")?l:c)(e,n)}function c(e,n){var t=document.querySelector(".wpbf-menu-toggle");t.classList.add("active"),t.setAttribute("aria-expanded","true"),n.classList.add("active"),"full-screen"===e?a(n).stop().fadeIn(150):"off-canvas"===e&&(n.setAttribute("tabindex","-1"),n.focus(),document.body.classList.add("active"),a(".wpbf-menu-overlay").stop().css({display:"block"}).animate({opacity:"1"},300))}function l(e,n){n||("full-screen"===e?n=document.querySelector(".wpbf-menu-full-screen"):"off-canvas"===e&&(n=document.querySelector(".wpbf-menu-off-canvas")));var t=document.querySelector(".wpbf-menu-toggle");t.classList.remove("active"),t.setAttribute("aria-expanded","false"),n.classList.remove("active"),"full-screen"===e?a(n).stop().fadeOut(150):"off-canvas"===e&&(document.body.classList.remove("active"),a(".wpbf-menu-overlay").stop().animate({opacity:"0"},300,function(){this.style.display="none"}))}function u(e){a("i",e).removeClass("wpbff-arrow-down").addClass("wpbff-arrow-up"),a(e).addClass("active").attr("aria-expanded","true").siblings(".sub-menu").stop().slideDown()}function f(e){a("i",e).removeClass("wpbff-arrow-up").addClass("wpbff-arrow-down"),a(e).removeClass("active").attr("aria-expanded","false").siblings(".sub-menu").stop().slideUp()}a(document).on("mouseenter",o,function(){a(".sub-menu",this).first().stop(!0).css({display:"block"}).animate({scale:1,opacity:1},t)}).on("mouseleave",o,function(){a(".sub-menu",this).first().stop(!0).animate({scale:1.05,opacity:0},t,function(){a(this).stop(!0).fadeOut(5)})}),a(document).on({mouseenter:function(){a(this).find(".wpbf-woo-sub-menu").stop().fadeIn(t)},mouseleave:function(){a(this).find(".wpbf-woo-sub-menu").stop().fadeOut(t)}},".wpbf-woo-menu-item.menu-item-has-children"),a(window).on("resize",function(){var e=a(window).width();document.querySelector('[data-transparent-header-disabled="mobile"]')&&(e<=n.desktop?(a("body").removeClass("wpbf-transparent-header"),a(".wpbf-navigation").removeClass("wpbf-navigation-transparent")):(a("body").addClass("wpbf-transparent-header"),a(".wpbf-navigation").addClass("wpbf-navigation-transparent")))}),a(document).on("click",".wpbf-menu-off-canvas, .wpbf-menu-toggle",function(e){e.stopPropagation()}),e&&wp.customize.bind("preview-ready",function(){wp.customize.selectiveRefresh.bind("partial-content-rendered",function(e){t=parseInt(a(".wpbf-navigation").data("sub-menu-animation-duration"),10)})})})(jQuery),WpbfPremium.mobileMenu=(t=>{var n=WpbfPremium.site.breakpoints;function a(e){return"mobile-off-canvas"===e&&!!document.querySelector(".wpbf-mobile-menu-off-canvas")}function e(e){var n=document.querySelector(".wpbf-mobile-menu-toggle");n&&(n.classList.contains("active")?o(e):(n=e,(e=document.querySelector(".wpbf-mobile-menu-toggle"))&&(e.classList.add("active"),e.setAttribute("aria-expanded","true"),"mobile-off-canvas"===n)&&(document.body.classList.add("active-mobile"),t(".wpbf-mobile-menu-container").addClass("active"),t(".wpbf-mobile-menu-overlay").css({display:"block"}).stop().animate({opacity:"1"},300))))}function o(e){var n=document.querySelector(".wpbf-mobile-menu-toggle");n&&"mobile-off-canvas"===e&&n.classList.contains("active")&&(document.body.classList.remove("active-mobile"),n.classList.remove("active"),n.setAttribute("aria-expanded","false"),t(".wpbf-mobile-menu-container").removeClass("active"),t(".wpbf-mobile-menu-overlay").stop().animate({opacity:"0"},300,function(){this.style.display="none"}))}function i(e){t("i",e).removeClass("wpbff-arrow-down").addClass("wpbff-arrow-up"),e.classList.add("active"),e.setAttribute("aria-expanded","true"),t(e).siblings(".sub-menu").stop().slideDown(),t(e).closest(".wpbf-navigation").hasClass("wpbf-mobile-sub-menu-auto-collapse")&&t(e).closest(".menu-item-has-children").siblings(".menu-item-has-children").each(function(e,n){s(n.querySelector(".wpbf-submenu-toggle"))})}function s(e){t("i",e).removeClass("wpbff-arrow-up").addClass("wpbff-arrow-down"),e.classList.remove("active"),e.setAttribute("aria-expanded","false"),t(e).siblings(".sub-menu").stop().slideUp()}t(document).on("click",".wpbf-mobile-menu a",function(){var e;a("mobile-off-canvas")&&(this.href.match("#")||this.href.match("/#"))&&(!this.parentNode.classList.contains("menu-item-has-children")||t(this).closest(".wpbf-mobile-mega-menu").length?o("mobile-off-canvas"):(e=t(e=this).siblings(".wpbf-submenu-toggle")).length&&((e=e[0]).classList.contains("active")?s:i)(e))}),t(document).on("click",".wpbf-mobile-menu-toggle",function(){a("mobile-off-canvas")&&e("mobile-off-canvas")}),t(document).on("click",".wpbf-mobile-menu-off-canvas .wpbf-close",function(){e("mobile-off-canvas")}),window.addEventListener("click",function(){a("mobile-off-canvas")&&o("mobile-off-canvas")}),t(document).on("keyup",function(e){"Escape"!==e.key&&"Esc"!==e.key&&27!==e.keyCode||a("mobile-off-canvas")&&o("mobile-off-canvas")}),t(window).on("resize",function(){var e=t(window).width();a("mobile-off-canvas")&&e>n.desktop&&o("mobile-off-canvas")}),t(document).on("click",".wpbf-mobile-menu-off-canvas .wpbf-submenu-toggle",function(e){e.preventDefault(),((e=this).classList.contains("active")?s:i)(e)}),t(document).on("click",".wpbf-mobile-menu-container, .wpbf-mobile-menu-toggle",function(e){e.stopPropagation()})})(jQuery),WpbfPremium.stickyNavigation=(t=>{var a=WpbfPremium.site.isInsideCustomizer,o={},i={},s={};function n(){o.nav=document.querySelector(".wpbf-navigation"),o.nav&&(o.$nav=t(o.nav),o.sticky=o.nav.dataset.sticky,o.delay=o.nav.dataset.stickyDelay,o.animation=o.nav.dataset.stickyAnimation,o.duration=o.nav.dataset.stickyAnimationDuration,o.duration=parseInt(o.duration,10),o.distance=parseInt(o.$nav.offset().top)+parseInt(o.delay,10),i.prevScrollTop=window.pageYOffset,i.isFired=0,s.menuActiveLogoUrl=t(".wpbf-logo").data("menu-active-logo"),s.menuLogoUrl=t(".wpbf-logo img").attr("src"),s.mobileMenuLogoUrl=t(".wpbf-mobile-logo img").attr("src"))}function c(){t(window).off("scroll",e),o.sticky?t(window).on("scroll",e):t(window).off("scroll",e)}function e(){var e,n;(!a||o.nav&&o.sticky)&&(n=t(window).scrollTop(),e=o.$nav.outerHeight(),n>o.distance&&!i.isFired?(o.nav.classList.add("wpbf-navigation-active"),"slide"===o.animation?o.$nav.css({position:"fixed",left:"0",zIndex:"666",top:-e}).stop().animate({top:0},o.duration):"fade"===o.animation?o.$nav.css({display:"none",position:"fixed",top:"0",left:"0",zIndex:"666"}).stop().fadeIn(o.duration):"shrink"===o.animation?(o.$nav.css({position:"fixed",top:"0",left:"0",zIndex:"666"}),"shrink"===o.animation&&o.nav.classList.add("wpbf-navigation-shrink")):(o.$nav.css({position:"fixed",top:"0",left:"0",zIndex:"666"}),"scroll"===o.animation&&o.nav.classList.add("wpbf-navigation-animate")),document.body.classList.contains("wpbf-transparent-header")||t(".wpbf-page-header").css("marginTop",e),s.menuActiveLogoUrl&&(t(".wpbf-logo img").attr("src",s.menuActiveLogoUrl),t(".wpbf-mobile-logo img").attr("src",s.menuActiveLogoUrl)),i.isFired=1):n<o.distance&&i.isFired&&(o.nav.classList.remove("wpbf-navigation-active"),o.nav.classList.remove("wpbf-navigation-animate"),o.nav.classList.remove("wpbf-navigation-shrink"),t("body").hasClass("wpbf-transparent-header")?o.$nav.css({position:"absolute",top:"",left:"",zIndex:""}):(o.$nav.css({position:"",top:"",left:"",zIndex:""}),t(".wpbf-page-header").css("marginTop","")),s.menuActiveLogoUrl&&(t(".wpbf-logo img").attr("src",s.menuLogoUrl),t(".wpbf-mobile-logo img").attr("src",s.mobileMenuLogoUrl)),i.isFired=0),"scroll"===o.animation)&&(e=t(window).scrollTop(),n=o.$nav.outerHeight(),e>i.prevScrollTop&&n<e?(t(".wpbf-navigation").css({top:-n}),t(".wpbf-navigation").removeClass("wpbf-navigation-scroll-up").addClass("wpbf-navigation-scroll-down")):e+t(window).height()<t(document).height()&&(t(".wpbf-navigation").css({top:"0px"}),t(".wpbf-navigation").removeClass("wpbf-navigation-scroll-down").addClass("wpbf-navigation-scroll-up")),i.prevScrollTop=e)}return a&&wp.customize.selectiveRefresh.bind("partial-content-rendered",function(e){n(),c()}),n(),c(),{opts:o,state:i,data:s}})(jQuery);