/**handles:swv,contact-form-7,generate-menu,generate-back-to-top**/ (()=>{let a=t=>{var t=t.trim().match(/^([a-z][0-9a-z:_-]*)((?:\[\s*(?:[a-z][0-9a-z:_-]*|[0-9]*)\s*\])*)$/i),e,t;return t?(e=t[1],(t=t[2].match(/\[.*?\]/gi))?[e,...t.map(t=>t.slice(1,-1).trim())]:[e]):[]};function s(){this.trunk={},this.largestIndex=0}s.prototype={filter(t){if(!(t instanceof Function))throw new TypeError("'callback' is not a function");var e=new s,r,i;for([r,i]of Object.entries(this.trunk))i instanceof s?(i=i.filter(t),i.size&&e.set(r,i)):t(i)&&e.set(r,i);return e},getAll(t,e="string"){var r=a(t);if(!r.length)return{};let i,o=this;for("string"===e?o=o.filter(t=>"string"==typeof t):"file"===e&&(o=o.filter(t=>t instanceof File));i=r.shift();){if(/^[0-9]*$/.test(i)||void 0===o.trunk[i])return{};o=o.trunk[i]}return o instanceof s?o.valueOf():{0:o}},getAllFiles(t){return this.getAll(t,"file")},set(t,e){return(e=s.excludeBlank(e))&&(""===t?t=this.largestIndex++:/^[0-9]+$/.test(t)&&(t=parseInt(t),this.largestIndex<=t)&&(this.largestIndex=t+1),this.trunk[t.toString()]=e),this},valueOf(){var t={},e,r;for([e,r]of Object.entries(this.trunk))t[e]=r.valueOf();return t},get size(){return Object.keys(this.trunk).length}},s.excludeBlank=t=>{if(t instanceof s)return t;if(t instanceof Blob){if(t.size)return t}else if(t=t.toString().trim())return t},s.from=t=>{if(!(t instanceof FormData))throw new TypeError("'formData' is not a FormData object");var e=new s,r,i,o;for([r,i]of t){let t=a(r);t.length&&(i=s.excludeBlank(i))&&(o=t.pop(),t.reduce((t,e)=>{var r;return t.trunk[e]instanceof s?t.trunk[e]:(r=new s,t.set(e,r),r)},e).set(o,i))}return e};let l=t=>{var e=[];if(Object===t.constructor)for(var r of Object.values(t))e.push(...l(r));else if(t instanceof Map)for(var[i,o]of t)e.push(...l(o));else if(Array.isArray(t))for(var a of t)e.push(...l(a));else e.push(t);return e};function n(t,e={}){Error.call(this,t.error??""),this.cause=e.cause,this.rule=t}function e(){}function r(){e.call(this),this.rules=[]}function t(t){r.call(this),this.field=t.field,this.error=t.error}function i(t){r.call(this),this.field=t.field,this.error=t.error}function o(t){e.call(this),this.field=t.field,this.error=t.error}function p(t){e.call(this),this.field=t.field,this.error=t.error,this.accept=t.accept}function h(t){e.call(this),this.field=t.field,this.error=t.error}function f(t){e.call(this),this.field=t.field,this.error=t.error,this.accept=t.accept}function c(t){e.call(this),this.field=t.field,this.error=t.error,this.accept=t.accept}function d(t){e.call(this),this.field=t.field,this.error=t.error,this.threshold=t.threshold}function u(t){e.call(this),this.field=t.field,this.error=t.error,this.threshold=t.threshold}function m(t){e.call(this),this.field=t.field,this.error=t.error,this.threshold=t.threshold}function v(t){e.call(this),this.field=t.field,this.error=t.error,this.threshold=t.threshold}function g(t){e.call(this),this.field=t.field,this.error=t.error}function y(t){e.call(this),this.field=t.field,this.error=t.error,this.threshold=t.threshold}function w(t){e.call(this),this.field=t.field,this.error=t.error,this.threshold=t.threshold}function x(t){e.call(this),this.field=t.field,this.error=t.error,this.threshold=t.threshold}function b(t){e.call(this),this.field=t.field,this.error=t.error,this.threshold=t.threshold}function E(t){e.call(this),this.field=t.field,this.error=t.error,this.threshold=t.threshold}function O(t){e.call(this),this.field=t.field,this.error=t.error,this.threshold=t.threshold}function N(t){e.call(this),this.field=t.field,this.error=t.error}function A(t){e.call(this),this.field=t.field,this.error=t.error}function j(t){e.call(this),this.field=t.field,this.error=t.error,this.base=t.base,this.interval=t.interval}function M(t){e.call(this),this.field=t.field,this.error=t.error}function L(t){e.call(this),this.field=t.field,this.error=t.error}function R(t){e.call(this),this.field=t.field,this.error=t.error}n.prototype={get name(){return"InvalidityException"},get message(){return this.cause instanceof n?this.cause.message:this.rule.error??""},get field(){return this.cause instanceof n?this.cause.field:this.rule.field??""}},Object.setPrototypeOf(n.prototype,Error.prototype),e.prototype={matches:t=>!0,validate:(t,e)=>!0,toJSON(){let r=[];return Object.entries(this).forEach(([t,e])=>{r.push([t,e])}),this.constructor.RULE_NAME&&r.unshift(["rule",this.constructor.RULE_NAME]),Object.fromEntries(r)}},r.prototype={addRule(t){if(t instanceof e)return this.rules.push(t),!0;throw new TypeError("'rule' is not a rule object")},toJSON(){let r=[];return Object.entries(this).forEach(([t,e])=>{"rules"===t?r.push([t,e.map(t=>t.toJSON())]):r.push([t,e])}),this.constructor.RULE_NAME&&r.unshift(["rule",this.constructor.RULE_NAME]),Object.fromEntries(r)}},Object.setPrototypeOf(r.prototype,e.prototype),t.RULE_NAME="all",t.prototype={validate(t,e){var r=(this.rules??[]).filter(t=>t.matches(e));if(r.length)for(var i of r)try{i.validate(t,e)}catch(t){throw t instanceof n?new n(this,{cause:t}):t}return!0}},Object.setPrototypeOf(t.prototype,r.prototype),i.RULE_NAME="any",i.prototype={validate(e,r){var i=(this.rules??[]).filter(t=>t.matches(r));if(i.length){let t=null;for(var o of i){try{t=!0,o.validate(e,r)}catch(e){if(!(e instanceof n))throw e;t=!1}if(t)break}if(!1===t)throw new n(this)}return!0}},Object.setPrototypeOf(i.prototype,r.prototype),o.RULE_NAME="date",o.prototype={validate(t,e){var r=l(t.getAll(this.field));if(r.length)for(let t of r)if(!o.isDate(t))throw new n(this,{cause:t});return!0}},Object.setPrototypeOf(o.prototype,e.prototype),o.isDate=t=>{var e=/^(?[0-9]{4,})-(?[0-9]{2})-(?[0-9]{2})$/.exec(t),t;return null!==e&&(t=new Date(t),!Number.isNaN(t.valueOf()))&&e.groups.y==t.getFullYear()&&e.groups.m==t.getMonth()+1&&e.groups.d==t.getDate()},p.RULE_NAME="dayofweek",p.prototype={validate(t,e){var r=l(t.getAll(this.field));if(r.length){var i=t=>0===t?7:t;for(let e of r)if(o.isDate(e)){let t=i(new Date(e).getDay());if(!this.accept?.map(String).includes(String(t)))throw new n(this,{cause:e})}}return!0}},Object.setPrototypeOf(p.prototype,e.prototype),h.RULE_NAME="email",h.prototype={validate(t,e){var r=l(t.getAll(this.field));if(r.length)for(let t of r)if(!h.isEmail(t))throw new n(this,{cause:t});return!0}},Object.setPrototypeOf(h.prototype,e.prototype),h.isEmail=t=>{if(t.length<6)return!1;if(-1===t.indexOf("@",1))return!1;if(t.indexOf("@")!==t.lastIndexOf("@"))return!1;var[t,e]=t.split("@",2);if(!/^[a-zA-Z0-9!#$%&\'*+\/=?^_`{|}~\.-]+$/.test(t))return!1;if(/\.{2,}/.test(e))return!1;if(/(?:^[ \t\n\r\0\x0B.]|[ \t\n\r\0\x0B.]$)/.test(e))return!1;var e=e.split(".");if(e.length<2)return!1;for(let t of e){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},f.RULE_NAME="enum",f.prototype={validate(t,e){var r=l(t.getAll(this.field));if(r.length)for(let t of r)if(!this.accept?.map(String).includes(t))throw new n(this,{cause:t});return!0}},Object.setPrototypeOf(f.prototype,e.prototype),c.RULE_NAME="file",c.prototype={validate(t,e){var r=l(t.getAllFiles(this.field));if(r.length){var i=e=>e instanceof File&&this.accept?.some(t=>/^\.[a-z0-9]+$/i.test(t)?e.name.toLowerCase().endsWith(t.toLowerCase()):c.convertMimeToExt(t).some(t=>(t="."+t.trim(),e.name.toLowerCase().endsWith(t.toLowerCase()))));for(let t of r)if(!i(t))throw new n(this,{cause:t})}return!0}},Object.setPrototypeOf(c.prototype,e.prototype),c.mimeTypes=new Map([["application/java",["class"]],["application/javascript",["js"]],["application/msword",["doc"]],["application/octet-stream",["psd","xcf"]],["application/onenote",["onetoc","onetoc2","onetmp","onepkg"]],["application/oxps",["oxps"]],["application/pdf",["pdf"]],["application/rar",["rar"]],["application/rtf",["rtf"]],["application/ttaf+xml",["dfxp"]],["application/vnd.apple.keynote",["key"]],["application/vnd.apple.numbers",["numbers"]],["application/vnd.apple.pages",["pages"]],["application/vnd.ms-access",["mdb"]],["application/vnd.ms-excel",["xla","xls","xlt","xlw"]],["application/vnd.ms-excel.addin.macroEnabled.12",["xlam"]],["application/vnd.ms-excel.sheet.binary.macroEnabled.12",["xlsb"]],["application/vnd.ms-excel.sheet.macroEnabled.12",["xlsm"]],["application/vnd.ms-excel.template.macroEnabled.12",["xltm"]],["application/vnd.ms-powerpoint",["pot","pps","ppt"]],["application/vnd.ms-powerpoint.addin.macroEnabled.12",["ppam"]],["application/vnd.ms-powerpoint.presentation.macroEnabled.12",["pptm"]],["application/vnd.ms-powerpoint.slide.macroEnabled.12",["sldm"]],["application/vnd.ms-powerpoint.slideshow.macroEnabled.12",["ppsm"]],["application/vnd.ms-powerpoint.template.macroEnabled.12",["potm"]],["application/vnd.ms-project",["mpp"]],["application/vnd.ms-word.document.macroEnabled.12",["docm"]],["application/vnd.ms-word.template.macroEnabled.12",["dotm"]],["application/vnd.ms-write",["wri"]],["application/vnd.ms-xpsdocument",["xps"]],["application/vnd.oasis.opendocument.chart",["odc"]],["application/vnd.oasis.opendocument.database",["odb"]],["application/vnd.oasis.opendocument.formula",["odf"]],["application/vnd.oasis.opendocument.graphics",["odg"]],["application/vnd.oasis.opendocument.presentation",["odp"]],["application/vnd.oasis.opendocument.spreadsheet",["ods"]],["application/vnd.oasis.opendocument.text",["odt"]],["application/vnd.openxmlformats-officedocument.presentationml.presentation",["pptx"]],["application/vnd.openxmlformats-officedocument.presentationml.slide",["sldx"]],["application/vnd.openxmlformats-officedocument.presentationml.slideshow",["ppsx"]],["application/vnd.openxmlformats-officedocument.presentationml.template",["potx"]],["application/vnd.openxmlformats-officedocument.spreadsheetml.sheet",["xlsx"]],["application/vnd.openxmlformats-officedocument.spreadsheetml.template",["xltx"]],["application/vnd.openxmlformats-officedocument.wordprocessingml.document",["docx"]],["application/vnd.openxmlformats-officedocument.wordprocessingml.template",["dotx"]],["application/wordperfect",["wp","wpd"]],["application/x-7z-compressed",["7z"]],["application/x-gzip",["gz","gzip"]],["application/x-msdownload",["exe"]],["application/x-shockwave-flash",["swf"]],["application/x-tar",["tar"]],["application/zip",["zip"]],["audio/3gpp",["3gp","3gpp"]],["audio/3gpp2",["3g2","3gp2"]],["audio/aac",["aac"]],["audio/flac",["flac"]],["audio/midi",["mid","midi"]],["audio/mpeg",["mp3","m4a","m4b"]],["audio/ogg",["ogg","oga"]],["audio/wav",["wav","x-wav"]],["audio/x-matroska",["mka"]],["audio/x-ms-wax",["wax"]],["audio/x-ms-wma",["wma"]],["audio/x-realaudio",["ra","ram"]],["image/avif",["avif"]],["image/bmp",["bmp"]],["image/gif",["gif"]],["image/heic",["heic"]],["image/heic-sequence",["heic","heics"]],["image/heif",["heic","heif"]],["image/heif-sequence",["heic","heifs"]],["image/jpeg",["jpg","jpeg","jpe"]],["image/png",["png"]],["image/tiff",["tiff","tif"]],["image/webp",["webp"]],["image/x-icon",["ico"]],["text/calendar",["ics"]],["text/css",["css"]],["text/csv",["csv"]],["text/html",["htm","html"]],["text/plain",["txt","asc","c","cc","h","srt"]],["text/richtext",["rtx"]],["text/tab-separated-values",["tsv"]],["text/vtt",["vtt"]],["video/3gpp",["3gp","3gpp"]],["video/3gpp2",["3g2","3gp2"]],["video/avi",["avi"]],["video/divx",["divx"]],["video/mp4",["mp4","m4v"]],["video/mpeg",["mpeg","mpg","mpe"]],["video/ogg",["ogv"]],["video/quicktime",["mov","qt"]],["video/webm",["webm"]],["video/x-flv",["flv"]],["video/x-matroska",["mkv"]],["video/x-ms-asf",["asf","asx"]],["video/x-ms-wm",["wm"]],["video/x-ms-wmv",["wmv"]],["video/x-ms-wmx",["wmx"]]]),c.convertMimeToExt=t=>{var r=[],i=t.match(/^(?[a-z]+)\/(?[*]|[a-z0-9.+-]+)$/i);if(i){let t=i.groups.toplevel.toLowerCase(),e=i.groups.sub.toLowerCase();for(var[o,a]of c.mimeTypes)(o===i[0]||"*"===e&&o.startsWith(t+"/"))&&r.push(...a)}return r},d.RULE_NAME="maxdate",d.prototype={validate(t,e){var r=l(t.getAll(this.field));if(r.length&&o.isDate(this.threshold))for(let t of r)if(o.isDate(t)&&this.threshold(e instanceof File&&(t+=e.size),t),0);if(!Number.isNaN(r)&&rt+e.length,0);if(!Number.isNaN(r)&&r!!/^[-]?[0-9]+(?:[eE][+-]?[0-9]+)?$/.test(t)||!!/^[-]?(?:[0-9]+)?[.][0-9]+(?:[eE][+-]?[0-9]+)?$/.test(t),y.RULE_NAME="maxnumber",y.prototype={validate(t,e){var r=l(t.getAll(this.field));if(r.length){var i=parseFloat(this.threshold);if(!Number.isNaN(i))for(let t of r)if(g.isNumber(t)&&i(e instanceof File&&(t+=e.size),t),0);if(!Number.isNaN(r)&&tt+e.length,0);if(!Number.isNaN(r)&&t{var t=(parseFloat(t)-e)%r;return"0.000000"===Math.abs(t).toFixed(6)||"0.000000"===Math.abs(t-r).toFixed(6)};for(let t of i)if(g.isNumber(t)&&!o(t))throw new n(this,{cause:t})}}return!0}},Object.setPrototypeOf(j.prototype,e.prototype),M.RULE_NAME="tel",M.prototype={validate(t,e){var r=l(t.getAll(this.field));if(r.length)for(let t of r)if(!M.isTel(t))throw new n(this,{cause:t});return!0}},Object.setPrototypeOf(M.prototype,e.prototype),M.isTel=t=>(((t=(t=t.replace(/[#*].*$/,"")).replaceAll(/[()/.*#\s-]+/g,"")).startsWith("+")||t.startsWith("00"))&&(t="+"+t.replace(/^[+0]+/,"")),!!/^[+]?[0-9]+$/.test(t)&&5{var t=t.match(/^([0-9]{2})\:([0-9]{2})(?:\:([0-9]{2}))?$/),e,r,t;return!!t&&(e=parseInt(t[1]),r=parseInt(t[2]),t=t[3]?parseInt(t[3]):0,0<=e)&&e<=23&&0<=r&&r<=59&&0<=t&&t<=59},R.RULE_NAME="url",R.prototype={validate(t,e){var r=l(t.getAll(this.field));if(r.length)for(let t of r)if(!R.isUrl(t))throw new n(this,{cause:t});return!0}},Object.setPrototypeOf(R.prototype,e.prototype),R.isUrl=t=>{var e=["http","https"];try{var r=new URL(t).protocol.replace(/:$/,"");return e.includes(r)}catch{return!1}};let U=new Map([["all",t],["any",i],["date",o],["dayofweek",p],["email",h],["enum",f],["file",c],["maxdate",d],["maxfilesize",u],["maxitems",m],["maxlength",v],["maxnumber",y],["mindate",w],["minfilesize",x],["minitems",b],["minlength",E],["minnumber",O],["number",g],["required",N],["requiredfile",A],["stepnumber",j],["tel",M],["time",L],["url",R]]);function _(t){r.call(this),t.rules.forEach(t=>{var t=_.createRule(t);t&&this.addRule(t)})}_.prototype={*validate(t,e){var r,i;for(i of this.rules.filter(t=>t.matches(e)))try{i.validate(t,e)}catch(t){if(!(t instanceof n))throw t;yield{field:t.field,message:t.message}}}},Object.setPrototypeOf(_.prototype,r.prototype),_.createRule=t=>{if(U.has(t.rule)){let e=new(U.get(t.rule))(t);return e instanceof r&&t.rules.forEach(t=>{var t=_.createRule(t);t&&e.addRule(t)}),e}},window.swv={rulesDictionary:U,validate:(t,e,r)=>{var i=new _(t),o=s.from(e),a={};for(let{field:t,message:e}of i.validate(o))a[t]??={error:e};for(let e in o.trunk){if(void 0===a[e]){let t=l(o.getAll(e));t.length&&(a[e]={validInputs:t})}if(void 0===a[e]){let t=l(o.getAllFiles(e));t.length&&(a[e]={validInputs:t})}}return a}}})(); (()=>{let n=window.wp.i18n,i=e=>Math.abs(parseInt(e,10)),c=(e,t,a)=>{var t=new CustomEvent("wpcf7"+t,{bubbles:!0,detail:a});(e="string"==typeof e?document.querySelector(e):e).dispatchEvent(t)},l=(t,e)=>{var a=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"]]),a=(a.has(e)&&(e=a.get(e)),Array.from(a.values()).includes(e)||(e="custom-"+(e=(e=e.replace(/[^0-9a-z]+/i," ").trim()).replace(/\s+/,"-"))),t.getAttribute("data-status"));if(t.wpcf7.status=e,t.setAttribute("data-status",e),t.classList.add(e),a&&a!==e){t.classList.remove(a);let e={contactFormId:t.wpcf7.id,pluginVersion:t.wpcf7.pluginVersion,contactFormLocale:t.wpcf7.locale,unitTag:t.wpcf7.unitTag,containerPostId:t.wpcf7.containerPost,status:t.wpcf7.status,prevStatus:a};c(t,"statuschanged",e)}return e},o=e=>{let{root:f,namespace:u="contact-form-7/v1"}=wpcf7.api;return t.reduceRight((t,a)=>e=>a(e,t),e=>{let t,a,{url:r,path:n,endpoint:c,headers:o,body:i,data:s,...l}=e,p=("string"==typeof c&&(t=u.replace(/^\/|\/$/g,""),a=c.replace(/^\//,""),n=a?t+"/"+a:t),"string"==typeof n&&(n=(n=-1!==f.indexOf("?")?n.replace("?","&"):n).replace(/^\//,""),r=f+n),delete(o={Accept:"application/json, */*;q=0.1",...o})["X-WP-Nonce"],s&&(i=JSON.stringify(s),o["Content-Type"]="application/json"),{code:"fetch_error",message:"You are probably offline."}),d={code:"invalid_json",message:"The response is not a valid JSON response."};return window.fetch(r||n||window.location.href,{...l,headers:o,body:i}).then(e=>Promise.resolve(e).then(e=>{if(200<=e.status&&e.status<300)return e;throw e}).then(e=>{if(204===e.status)return null;if(e&&e.json)return e.json().catch(()=>{throw d});throw d}),()=>{throw p})})(e)},t=[];async function a(n,e={}){let{target:t,scope:c=n,...a}=e;if(void 0!==n.wpcf7?.schema){var o={...n.wpcf7.schema};if(void 0!==t){if(!n.contains(t))return;if(!t.closest(".wpcf7-form-control-wrap[data-name]"))return;if(t.closest(".novalidate"))return}var i=c.querySelectorAll(".wpcf7-form-control-wrap"),s=Array.from(i).reduce((r,e)=>(e.closest(".novalidate")||e.querySelectorAll(":where( input, textarea, select ):enabled").forEach(e=>{if(e.name)switch(e.type){case"button":case"image":case"reset":case"submit":break;case"checkbox":case"radio":e.checked&&r.append(e.name,e.value);break;case"select-multiple":for(var t of e.selectedOptions)r.append(e.name,t.value);break;case"file":for(var a of e.files)r.append(e.name,a);break;default:r.append(e.name,e.value)}}),r),new FormData),r=n.getAttribute("data-status");if(l(n,"validating"),void 0!==swv){let r=swv.validate(o,s,e);for(let e of i)if(void 0!==e.dataset.name){let a=e.dataset.name;if(void 0!==r[a]){let{error:e,validInputs:t}=r[a];d(n,a),void 0!==e&&p(n,a,e,{scope:c}),f(n,a,t??[])}if(e.contains(t))break}}l(n,r)}}o.use=e=>{t.unshift(e)};let p=(e,t,a,r)=>{let{scope:n=e,...c}=r??{},o=(e.wpcf7?.unitTag+"-ve-"+t).replaceAll(/[^0-9a-z_-]+/gi,""),i=e.querySelector(`.wpcf7-form-control-wrap[data-name="${t}"] .wpcf7-form-control`);var r;(r=document.createElement("li")).setAttribute("id",o),i&&i.id?r.insertAdjacentHTML("beforeend",`${a}`):r.insertAdjacentText("beforeend",a),e.wpcf7.parent.querySelector(".screen-reader-response ul").appendChild(r),n.querySelectorAll(`.wpcf7-form-control-wrap[data-name="${t}"]`).forEach(e=>{let 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")}))})})},d=(e,t)=>{var 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("")})})},f=(e,r,n)=>{e.querySelectorAll(`[data-reflection-of="${r}"]`).forEach(a=>{if("output"===a.tagName.toLowerCase()){let t=a;0===n.length&&n.push(t.dataset.default),n.slice(0,1).forEach(e=>{e instanceof File&&(e=e.name),t.textContent=e})}else a.querySelectorAll("output").forEach(e=>{e.hasAttribute("data-default")?0===n.length?e.removeAttribute("hidden"):e.setAttribute("hidden","hidden"):e.remove()}),n.forEach(e=>{e instanceof File&&(e=e.name);var t=document.createElement("output");t.setAttribute("name",r),t.textContent=e,a.appendChild(t)})})};async function r(a,r={}){if("submitting"!==a.wpcf7.status)if(wpcf7.blocked)s(a),l(a,"submitting");else{var n=new FormData(a),r=(r.submitter&&r.submitter.name&&n.append(r.submitter.name,r.submitter.value),{contactFormId:a.wpcf7.id,pluginVersion:a.wpcf7.pluginVersion,contactFormLocale:a.wpcf7.locale,unitTag:a.wpcf7.unitTag,containerPostId:a.wpcf7.containerPost,status:a.wpcf7.status,inputs:Array.from(n,e=>{var t=e[0],e=e[1];return!t.match(/^_/)&&{name:t,value:e}}).filter(e=>!1!==e),formData:n});s(a),c(a,"beforesubmit",r),l(a,"submitting");let t=await o({endpoint:`contact-forms/${a.wpcf7.id}/feedback`,method:"POST",body:n,wpcf7:{endpoint:"feedback",form:a,detail:r}}),e=l(a,t.status);r.status=t.status,r.apiResponse=t,["invalid","unaccepted","spam","aborted"].includes(e)?c(a,e,r):["sent","failed"].includes(e)&&c(a,"mail"+e,r),c(a,"submit",r),t.posted_data_hash&&(a.querySelector('input[name="_wpcf7_posted_data_hash"]').value=t.posted_data_hash),"mail_sent"===t.status&&(a.reset(),a.wpcf7.resetOnMailSent=!0),t.invalid_fields&&t.invalid_fields.forEach(e=>{p(a,e.field,e.message)}),a.wpcf7.parent.querySelector('.screen-reader-response [role="status"]').insertAdjacentText("beforeend",t.message),a.querySelectorAll(".wpcf7-response-output").forEach(e=>{e.innerText=t.message})}}let s=t=>{t.querySelectorAll(".wpcf7-form-control-wrap").forEach(e=>{e.dataset.name&&d(t,e.dataset.name)}),t.wpcf7.parent.querySelector('.screen-reader-response [role="status"]').innerText="",t.querySelectorAll(".wpcf7-response-output").forEach(e=>{e.innerText=""})};async function u(e){var t,t,a;"resetting"!==e.wpcf7.status&&(t=new FormData(e),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,inputs:Array.from(t,e=>{var t=e[0],e=e[1];return!t.match(/^_/)&&{name:t,value:e}}).filter(e=>!1!==e),formData:t},s(e),l(e,"resetting"),a=await o({endpoint:`contact-forms/${e.wpcf7.id}/refill`,method:"GET",wpcf7:{endpoint:"refill",form:e,detail:t}}),e.wpcf7.resetOnMailSent?(delete e.wpcf7.resetOnMailSent,l(e,"mail_sent")):l(e,"init"),t.apiResponse=a,c(e,"reset",t))}let m=(e,r)=>{for(var n in r){let t=r[n],a=(e.querySelectorAll(`input[name="${n}"]`).forEach(e=>{e.value=""}),e.querySelectorAll("img.wpcf7-captcha-"+n.replaceAll(":","")).forEach(e=>{e.setAttribute("src",t)}),/([0-9]+)\.(png|gif|jpeg)$/.exec(t));a&&e.querySelectorAll(`input[name="_wpcf7_captcha_challenge_${n}"]`).forEach(e=>{e.value=a[1]})}},w=(e,n)=>{for(let r in n){let t=n[r][0],a=n[r][1];e.querySelectorAll(`.wpcf7-form-control-wrap[data-name="${r}"]`).forEach(e=>{e.querySelector(`input[name="${r}"]`).value="",e.querySelector(".wpcf7-quiz-label").textContent=t,e.querySelector(`input[name="_wpcf7_quiz_answer_${r}"]`).value=a})}};function h(a){var e=new FormData(a),t,r,n,c=(a.wpcf7={id:i(e.get("_wpcf7")),status:a.getAttribute("data-status"),pluginVersion:e.get("_wpcf7_version"),locale:e.get("_wpcf7_locale"),unitTag:e.get("_wpcf7_unit_tag"),containerPost:i(e.get("_wpcf7_container_post")),parent:a.closest(".wpcf7"),get schema(){return wpcf7.schemas.get(this.id)}},wpcf7.schemas.set(a.wpcf7.id,void 0),a.querySelectorAll(".has-spinner").forEach(e=>{e.insertAdjacentHTML("afterend",'')}),(n=a).querySelectorAll(".wpcf7-exclusive-checkbox").forEach(e=>{e.addEventListener("change",t=>{var e=t.target.getAttribute("name");n.querySelectorAll(`input[type="checkbox"][name="${e}"]`).forEach(e=>{e!==t.target&&(e.checked=!1)})})}),(r=a).querySelectorAll(".has-free-text").forEach(e=>{let t=e.querySelector("input.wpcf7-free-text"),a=e.querySelector('input[type="checkbox"], input[type="radio"]');t.disabled=!a.checked,r.addEventListener("change",e=>{t.disabled=!a.checked,e.target===a&&a.checked&&t.focus()})}),a.querySelectorAll(".wpcf7-validates-as-url").forEach(a=>{a.addEventListener("change",e=>{let t=a.value.trim();t&&!t.match(/^[a-z][a-z0-9.+-]*:/i)&&-1!==t.indexOf(".")&&(t="http://"+(t=t.replace(/^\/+/,""))),a.value=t})}),a);if(c.querySelector(".wpcf7-acceptance")&&!c.classList.contains("wpcf7-acceptance-as-validation")){let t=()=>{let a=!0;c.querySelectorAll(".wpcf7-acceptance").forEach(e=>{var t;a&&!e.classList.contains("optional")&&(t=e.querySelector('input[type="checkbox"]'),e.classList.contains("invert")&&t.checked||!e.classList.contains("invert")&&!t.checked)&&(a=!1)}),c.querySelectorAll(".wpcf7-submit").forEach(e=>{e.disabled=!a})};t(),c.addEventListener("change",e=>{t()}),c.addEventListener("wpcf7reset",e=>{t()})}{var o=a;let n=(e,t)=>{var a=i(e.getAttribute("data-starting-value")),r=i(e.getAttribute("data-maximum-value")),n=i(e.getAttribute("data-minimum-value")),a=e.classList.contains("down")?a-t.value.trim().length:t.value.trim().length;e.setAttribute("data-current-value",a),e.innerText=a,r&&r{r={init:!1,...r},o.querySelectorAll(".wpcf7-character-count").forEach(t=>{let e=t.getAttribute("data-target-name"),a=o.querySelector(`[name="${e}"]`);a&&(a.value=a.defaultValue,n(t,a),r.init)&&a.addEventListener("keyup",e=>{n(t,a)})})};t({init:!0}),o.addEventListener("wpcf7reset",e=>{t()})}window.addEventListener("load",e=>{wpcf7.cached&&a.reset()}),a.addEventListener("reset",e=>{wpcf7.reset(a)}),a.addEventListener("submit",e=>{wpcf7.submit(a,{submitter:e.submitter}),e.preventDefault()}),a.addEventListener("wpcf7submit",e=>{e.detail.apiResponse.captcha&&m(a,e.detail.apiResponse.captcha),e.detail.apiResponse.quiz&&w(a,e.detail.apiResponse.quiz)}),a.addEventListener("wpcf7reset",e=>{e.detail.apiResponse.captcha&&m(a,e.detail.apiResponse.captcha),e.detail.apiResponse.quiz&&w(a,e.detail.apiResponse.quiz)}),a.addEventListener("change",e=>{e.target.closest(".wpcf7-form-control")&&wpcf7.validate(a,{target:e.target})}),a.addEventListener("wpcf7statuschanged",e=>{var e=e.detail.status;a.querySelectorAll(".active-on-any").forEach(e=>{e.removeAttribute("inert"),e.classList.remove("active-on-any")}),a.querySelectorAll(".inert-on-"+e).forEach(e=>{e.setAttribute("inert","inert"),e.classList.add("active-on-any")})})}document.addEventListener("DOMContentLoaded",e=>{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:h,submit:r,reset:u,validate:a,schemas:new Map,...wpcf7??{}},document.querySelectorAll("form .wpcf7[data-wpcf7-id]").forEach(e=>{var t=document.createElement("p"),a=(t.setAttribute("class","wpcf7-form-in-wrong-place"),document.createElement("strong")),r=(a.append((0,n.__)("Error:","contact-form-7")),(0,n.__)("This contact form is placed in the wrong place.","contact-form-7"));t.append(a," ",r),e.replaceWith(t)}),document.querySelectorAll(".wpcf7 > form").forEach(e=>{wpcf7.init(e),e.closest(".wpcf7").classList.replace("no-js","js")});for(let t of wpcf7.schemas.keys())o({endpoint:`contact-forms/${t}/feedback/schema`,method:"GET"}).then(e=>{wpcf7.schemas.set(t,e)})}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.")})})(); (()=>{var e=document.querySelectorAll(".main-nav .sub-menu, .main-nav .children");if(e&&e.forEach(function(e){var t,n=e.closest("li"),s=n.querySelector('.dropdown-menu-toggle[role="button"]');e.id||(t=n.id||"menu-item-"+Math.floor(1e5*Math.random()),e.id=t+"-sub-menu"),(s=s||n.querySelector('a[role="button"]'))&&s.setAttribute("aria-controls",e.id)}),"querySelector"in document&&"addEventListener"in window){Element.prototype.matches||(Element.prototype.matches=Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector),Element.prototype.closest||(Element.prototype.closest=function(e){var t=this;if(document.documentElement.contains(this))do{if(t.matches(e))return t}while(null!==(t=t.parentElement));return null});var o=function(t){return Array.prototype.filter.call(t.parentNode.children,function(e){return e!==t})},t=document.querySelectorAll(".menu-toggle"),n=document.querySelectorAll("nav .dropdown-menu-toggle"),s=document.querySelectorAll("nav .main-nav ul a"),l=document.querySelector(".mobile-menu-control-wrapper"),c=document.body,u=document.documentElement,d=function(e){if(e&&c.classList.contains("dropdown-hover")){var t=e.querySelectorAll("li.menu-item-has-children");for(h=0;h a"),g=function(){if(!this.closest("nav").classList.contains("toggled")&&!this.closest("nav").classList.contains("slideout-navigation"))for(var e=this;-1===e.className.indexOf("main-nav");)"li"===e.tagName.toLowerCase()&&e.classList.toggle("sfHover"),e=e.parentElement},v=function(){if(!this.closest("nav").classList.contains("toggled")&&!this.closest("nav").classList.contains("slideout-navigation"))for(var e=this;-1===e.className.indexOf("menu-bar-items");)e.classList.contains("menu-bar-item")&&e.classList.toggle("sfHover"),e=e.parentElement},h=0;h{var c;"querySelector"in document&&"addEventListener"in window&&(c=document.querySelector(".generate-back-to-top"))&&(window.addEventListener("scroll",function(){var e=window.pageYOffset,t=c.getAttribute("data-start-scroll");t