
(()=>{"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:()=>f,dayofweek:()=>u,email:()=>r,enum:()=>h,file:()=>m,maxdate:()=>z,maxfilesize:()=>$,maxitems:()=>v,maxlength:()=>x,maxnumber:()=>b,mindate:()=>A,minfilesize:()=>j,minitems:()=>w,minlength:()=>g,minnumber:()=>y,number:()=>c,required:()=>n,requiredfile:()=>a,tel:()=>l,time:()=>d,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).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).every((t=>{if((t=t.trim()).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);if(!e.every((t=>{if(""===(t=t.trim()))return!1;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).every((t=>(t=(t=t.trim()).replaceAll(/[()/.*#\s-]+/g,""),/^[+]?[0-9]+$/.test(t)))))throw new o(this)},c=function(t){if(!t.getAll(this.field).every((t=>(t=t.trim(),!!/^[-]?[0-9]+(?:[eE][+-]?[0-9]+)?$/.test(t)||!!/^[-]?(?:[0-9]+)?[.][0-9]+(?:[eE][+-]?[0-9]+)?$/.test(t)))))throw new o(this)},f=function(t){if(!t.getAll(this.field).every((t=>{if(t=t.trim(),!/^[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)},d=function(t){if(!t.getAll(this.field).every((t=>{const e=t.trim().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)},m=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).every((t=>this.accept?.some((e=>t===String(e))))))throw new o(this)},u=function(t){if(!t.getAll(this.field).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).length<parseInt(this.threshold))throw new o(this)},v=function(t){const e=t.getAll(this.field);if(parseInt(this.threshold)<e.length)throw new o(this)},g=function(t){const e=t.getAll(this.field);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);let i=0;if(e.forEach((t=>{"string"==typeof t&&(i+=t.length)})),parseInt(this.threshold)<i)throw new o(this)},y=function(t){if(!t.getAll(this.field).every((t=>!(parseFloat(t)<parseFloat(this.threshold)))))throw new o(this)},b=function(t){if(!t.getAll(this.field).every((t=>!(parseFloat(this.threshold)<parseFloat(t)))))throw new o(this)},A=function(t){if(!t.getAll(this.field).every((t=>(t=t.trim(),!(/^[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).every((t=>(t=t.trim(),!(/^[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)},j=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)},$=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=({ruleObj:t,options:i})=>{const{rule:s,...o}=t;return"function"==typeof e[s]&&("function"!=typeof e[s].matches||e[s].matches(o,i))},O=({ruleObj:t,formDataTree:i,options:s})=>{const{rule:o}=t;e[o].call(t,i,s)},E=[],k=t=>[...E].reduce(((t,e)=>i=>e(i,t)),t),D=function(t,e={}){const i=(this.rules??[]).filter((t=>I({ruleObj:t,options:e}))),s=k(O);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=>I({ruleObj:t,options:e}))),s=k(O);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 F;window.swv={validators:e,validate:(t,e,i={})=>{const n=(t.rules??[]).filter((t=>I({ruleObj:t,options:i})));if(!n.length)return new Map;const a=k(O),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=>{E.push(t)},...null!==(F=window.swv)&&void 0!==F?F:{}}})();



( function( domain, translations ) {
	var localeData = translations.locale_data[ domain ] || translations.locale_data.messages;
	localeData[""].domain = domain;
	wp.i18n.setLocaleData( localeData, domain );
} )( "contact-form-7", {"translation-revision-date":"2024-07-17 09:00:42+0000","generator":"GlotPress\/4.0.1","domain":"messages","locale_data":{"messages":{"":{"domain":"messages","plural-forms":"nplurals=2; plural=n != 1;","lang":"es"},"This contact form is placed in the wrong place.":["Este formulario de contacto est\u00e1 situado en el lugar incorrecto."],"Error:":["Error:"]}},"comment":{"reference":"includes\/js\/index.js"}} );
(()=>{"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 o.reduceRight(((e,t)=>a=>t(a,e)),(e=>{let n,r,{url:o,path:c,endpoint:s,headers:i,body:l,data:p,...d}=e;"string"==typeof s&&(n=a.replace(/^\/|\/$/g,""),r=s.replace(/^\//,""),c=r?n+"/"+r:n),"string"==typeof c&&(-1!==t.indexOf("?")&&(c=c.replace("?","&")),c=c.replace(/^\//,""),o=t+c),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(o||c||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)},o=[];function c(e,t={}){const{target:a,scope:r=e,...o}=t;if(void 0===e.wpcf7?.schema)return;const c={...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(c,d,t);for(const t of p){if(void 0===t.dataset.name)continue;const o=t.dataset.name;if(n.has(o)){const{error:t,validInputs:a}=n.get(o);i(e,o),void 0!==t&&s(e,o,t,{scope:r}),l(e,o,null!=a?a:[])}if(t.contains(a))break}}})).finally((()=>{n(e,f)}))}r.use=e=>{o.unshift(e)};const s=(e,t,a,n)=>{const{scope:r=e,...o}=null!=n?n:{},c=`${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",c),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",c),"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 o=new FormData(e);t.submitter&&t.submitter.name&&o.append(t.submitter.name,t.submitter.value);const 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(o,(e=>{const t=e[0],a=e[1];return!t.match(/^_/)&&{name:t,value:a}})).filter((e=>!1!==e)),formData:o};r({endpoint:`contact-forms/${e.wpcf7.id}/feedback`,method:"POST",body:o,wpcf7:{endpoint:"feedback",form:e,detail:c}}).then((t=>{const r=n(e,t.status);return c.status=t.status,c.apiResponse=t,["invalid","unaccepted","spam","aborted"].includes(r)?a(e,r,c):["sent","failed"].includes(r)&&a(e,`mail${r}`,c),a(e,"submit",c),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),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(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:o}}).then((t=>{e.wpcf7.resetOnMailSent?(delete e.wpcf7.resetOnMailSent,n(e,"mail_sent")):n(e,"init"),o.apiResponse=t,a(e,"reset",o)})).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")),o=t(e.getAttribute("data-minimum-value")),c=e.classList.contains("down")?n-a.value.length:a.value.length;e.setAttribute("data-current-value",c),e.innerText=c,r&&r<a.value.length?e.classList.add("too-long"):e.classList.remove("too-long"),o&&a.value.length<o?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"),o=e.querySelector(`[name="${r}"]`);o&&(o.value=o.defaultValue,a(n,o),t.init&&o.addEventListener("keyup",(e=>{a(n,o)})))}))};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:c,schemas:new Map,...null!==(a=wpcf7)&&void 0!==a?a:{}},document.querySelectorAll("form .wpcf7").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($){$.fn.antiscroll=function(options){return this.each(function(){if($(this).data('antiscroll')){$(this).data('antiscroll').destroy()}
$(this).data('antiscroll',new $.Antiscroll(this,options))})};$.Antiscroll=Antiscroll;function Antiscroll(el,opts){this.el=$(el);this.options=opts||{};this.x=(!1!==this.options.x)||this.options.forceHorizontal;this.y=(!1!==this.options.y)||this.options.forceVertical;this.autoHide=!1!==this.options.autoHide;this.padding=undefined==this.options.padding?2:this.options.padding;this.inner=this.el.find('.antiscroll-inner');this.inner.css({'width':'+='+(this.y?scrollbarSize():0),'height':'+='+(this.x?scrollbarSize():0)});this.refresh()};Antiscroll.prototype.refresh=function(){var needHScroll=this.inner.get(0).scrollWidth>this.el.width()+(this.y?scrollbarSize():0),needVScroll=this.inner.get(0).scrollHeight>this.el.height()+(this.x?scrollbarSize():0);if(this.x){if(!this.horizontal&&needHScroll){this.horizontal=new Scrollbar.Horizontal(this)}else if(this.horizontal&&!needHScroll){this.horizontal.destroy();this.horizontal=null}else if(this.horizontal){this.horizontal.update()}}
if(this.y){if(!this.vertical&&needVScroll){this.vertical=new Scrollbar.Vertical(this)}else if(this.vertical&&!needVScroll){this.vertical.destroy();this.vertical=null}else if(this.vertical){this.vertical.update()}}};Antiscroll.prototype.destroy=function(){if(this.horizontal){this.horizontal.destroy();this.horizontal=null}
if(this.vertical){this.vertical.destroy();this.vertical=null}
return this};Antiscroll.prototype.rebuild=function(){this.destroy();this.inner.attr('style','');Antiscroll.call(this,this.el,this.options);return this};function Scrollbar(pane){this.pane=pane;this.pane.el.append(this.el);this.innerEl=this.pane.inner.get(0);this.dragging=!1;this.enter=!1;this.shown=!1;this.pane.el.mouseenter($.proxy(this,'mouseenter'));this.pane.el.mouseleave($.proxy(this,'mouseleave'));this.el.mousedown($.proxy(this,'mousedown'));this.innerPaneScrollListener=$.proxy(this,'scroll');this.pane.inner.scroll(this.innerPaneScrollListener);this.innerPaneMouseWheelListener=$.proxy(this,'mousewheel');this.pane.inner.bind('mousewheel',this.innerPaneMouseWheelListener);var initialDisplay=this.pane.options.initialDisplay;if(initialDisplay!==!1){this.show();if(this.pane.autoHide){this.hiding=setTimeout($.proxy(this,'hide'),parseInt(initialDisplay,10)||3000)}}};Scrollbar.prototype.destroy=function(){this.el.remove();this.pane.inner.unbind('scroll',this.innerPaneScrollListener);this.pane.inner.unbind('mousewheel',this.innerPaneMouseWheelListener);return this};Scrollbar.prototype.mouseenter=function(){this.enter=!0;this.show()};Scrollbar.prototype.mouseleave=function(){this.enter=!1;if(!this.dragging){if(this.pane.autoHide){this.hide()}}};Scrollbar.prototype.scroll=function(){if(!this.shown){this.show();if(!this.enter&&!this.dragging){if(this.pane.autoHide){this.hiding=setTimeout($.proxy(this,'hide'),1500)}}}
this.update()};Scrollbar.prototype.mousedown=function(ev){ev.preventDefault();this.dragging=!0;this.startPageY=ev.pageY-parseInt(this.el.css('top'),10);this.startPageX=ev.pageX-parseInt(this.el.css('left'),10);this.el[0].ownerDocument.onselectstart=function(){return!1};var pane=this.pane,move=$.proxy(this,'mousemove'),self=this
$(this.el[0].ownerDocument).mousemove(move).mouseup(function(){self.dragging=!1;this.onselectstart=null;$(this).unbind('mousemove',move);if(!self.enter){self.hide()}})};Scrollbar.prototype.show=function(duration){var _=this;setTimeout(function(){if(!_.shown&&_.update()){_.el.addClass('antiscroll-scrollbar-shown');if(_.hiding){clearTimeout(_.hiding);_.hiding=null}
_.shown=!0}},100)};Scrollbar.prototype.hide=function(){var _=this;setTimeout(function(){if(_.pane.autoHide!==!1&&_.shown){_.el.removeClass('antiscroll-scrollbar-shown');_.shown=!1}},100)};Scrollbar.Horizontal=function(pane){this.el=$('<div class="antiscroll-scrollbar antiscroll-scrollbar-horizontal"/>',pane.el);Scrollbar.call(this,pane)};inherits(Scrollbar.Horizontal,Scrollbar);Scrollbar.Horizontal.prototype.update=function(){var paneWidth=this.pane.el.width(),trackWidth=paneWidth-this.pane.padding*2,innerEl=this.pane.inner.get(0)
this.el.css('width',trackWidth*paneWidth/innerEl.scrollWidth).css('left',trackWidth*innerEl.scrollLeft/innerEl.scrollWidth);return paneWidth<innerEl.scrollWidth};Scrollbar.Horizontal.prototype.mousemove=function(ev){var trackWidth=this.pane.el.width()-this.pane.padding*2,pos=ev.pageX-this.startPageX,barWidth=this.el.width(),innerEl=this.pane.inner.get(0)
var y=Math.min(Math.max(pos,0),trackWidth-barWidth);innerEl.scrollLeft=(innerEl.scrollWidth-this.pane.el.width())*y/(trackWidth-barWidth)};Scrollbar.Horizontal.prototype.mousewheel=function(ev,delta,x,y){if((x<0&&0==this.pane.inner.get(0).scrollLeft)||(x>0&&(this.innerEl.scrollLeft+Math.ceil(this.pane.el.width())==this.innerEl.scrollWidth))){ev.preventDefault();return!1}};Scrollbar.Vertical=function(pane){this.el=$('<div class="antiscroll-scrollbar antiscroll-scrollbar-vertical"/>',pane.el);Scrollbar.call(this,pane)};inherits(Scrollbar.Vertical,Scrollbar);Scrollbar.Vertical.prototype.update=function(){var paneHeight=this.pane.el.height(),trackHeight=paneHeight-this.pane.padding*2,innerEl=this.innerEl;var scrollbarHeight=trackHeight*paneHeight/innerEl.scrollHeight;scrollbarHeight=scrollbarHeight<20?20:scrollbarHeight;var topPos=trackHeight*innerEl.scrollTop/innerEl.scrollHeight;if((topPos+scrollbarHeight)>trackHeight){var diff=(topPos+scrollbarHeight)-trackHeight;topPos=topPos-diff-3}
this.el.css('height',scrollbarHeight).css('top',topPos);return paneHeight<innerEl.scrollHeight};Scrollbar.Vertical.prototype.mousemove=function(ev){var paneHeight=this.pane.el.height(),trackHeight=paneHeight-this.pane.padding*2,pos=ev.pageY-this.startPageY,barHeight=this.el.height(),innerEl=this.innerEl
var y=Math.min(Math.max(pos,0),trackHeight-barHeight);innerEl.scrollTop=(innerEl.scrollHeight-paneHeight)*y/(trackHeight-barHeight)};Scrollbar.Vertical.prototype.mousewheel=function(ev,delta,x,y){if((y>0&&0==this.innerEl.scrollTop)||(y<0&&(this.innerEl.scrollTop+Math.ceil(this.pane.el.height())==this.innerEl.scrollHeight))){ev.preventDefault();return!1}};function inherits(ctorA,ctorB){function f(){};f.prototype=ctorB.prototype;ctorA.prototype=new f};var size;function scrollbarSize(){if(size===undefined){var div=$('<div class="antiscroll-inner" style="width:50px;height:50px;overflow-y:scroll;'+'position:absolute;top:-200px;left:-200px;"><div style="height:100px;width:100%"/>'+'</div>');$('body').append(div);var w1=$(div).innerWidth();var w2=$('div',div).innerWidth();$(div).remove();size=w1-w2}
return size}})(jQuery);



jQuery(function($){$.fn.freezeTable=function(options){return this.each(function(){var $this=$(this);if($this.hasClass('frzTbl-clone-table')){return}
if(options=='destroy'){if($this.data('freezeTable')){$this.data('freezeTable').destroy()}
return!0}
if(!$this.data('freezeTable')){$this.data('freezeTable',new $.FreezeTable(this,options));return!0}
if(options=='resize'){$this.data('freezeTable').resize();return!0}
if(options=='cell_resize'){$this.data('freezeTable').cell_resize();return!0}
$this.data('freezeTable').reload(options)})};$.FreezeTable=FreezeTable;function FreezeTable(table,options){var $table=$(table);this.el={$table:$table}
this.ev={touchstart:!1}
this.options=$.extend(!0,{},this.default_options,typeof options==='object'?options:{});this.namespace=Math.floor((Math.random()*100000)+1);if(this.options.height&&!this.options.force_sticky_outer_heading){this.options._sticky_outer_heading=!1}else if(this.options.force_sticky_outer_heading){this.options._sticky_outer_heading=!0}
$table.trigger('before_freeze_table_build',this);this.build();$table.trigger('after_freeze_table_build',this)};FreezeTable.prototype.default_options={left:0,right:0,heading:0,offset:0,wrapperWidth:0,wrapperHeight:0,tableWidth:0,captureScroll:!1,force_sticky_outer_heading:!1,_sticky_outer_heading:!0};FreezeTable.prototype.maybe_disable=function(){var settings=this.get_breakpoint_options(),$table=this.el.$table,$container=$table.closest('.frzTbl').length?$table.closest('.frzTbl'):$table.parent(),container_width=settings.wrapperWidth?settings.wrapperWidth:$container.width(),table_original_width=$table[0].style.width,table_compressed_width=$table.outerWidth(container_width).outerWidth();$table[0].style.width=table_original_width;$(window).off('resize.ft'+this.namespace);if(!settings.tableWidth&&table_compressed_width<=container_width&&!settings.left&&!settings.right&&!settings.heading){this.unwrap();$(window).on('resize.ft'+this.namespace,$.proxy(this,'try_enable'));return!0}}
FreezeTable.prototype.try_enable=function(){var _build=$.proxy(this,'build');clearTimeout(this.try_enable_clear);this.try_enable_clear=setTimeout(_build,200)};FreezeTable.prototype.get_overflow_permission=function(){var $table=this.el.$table,$table_parent=$table.parent(),settings=this.get_breakpoint_options(),table_overflows=!1;if($table_parent.hasClass('frzTbl-table-wrapper__inner')){$table_parent.addClass('frzTbl-table-wrapper__inner--overflow-check');table_overflows=$table.outerWidth()>$table_parent.width();$table_parent.removeClass('frzTbl-table-wrapper__inner--overflow-check')}else{table_overflows=$table.outerWidth()>$table_parent.width()}
return table_overflows||settings.left||settings.right}
FreezeTable.prototype.build=function(){if(this.maybe_disable()){return}
var settings=this.get_breakpoint_options(),$table=this.el.$table,$temp_wrapper=$('<div class="frzTbl frzTbl--temp-wrapper">').insertBefore($table),tpl_master=$('#frzTbl-tpl').html(),overflow_permit=this.get_overflow_permission();if(!overflow_permit&&!settings.tableWidth){settings.tableWidth=$table.parent().width()}
if(settings.tableWidth){$table.css({width:settings.tableWidth,height:'',});var table_width=$table.width(),table_height=$table.height()}else{$table.css({width:'',height:'',});$temp_wrapper[0].innerHTML='<div>'+$table[0].outerHTML+'</div>';var $temp_table=$('>div>table',$temp_wrapper),table_width=Math.max($temp_table.outerWidth(),$temp_wrapper.width()),table_height=$temp_table.outerHeight();if(table_width>$temp_wrapper.width()){++table_width}
this.el.$table.css('min-width',$temp_wrapper.innerWidth())}
var wrapper_width=this.options.wrapperWidth?this.options.wrapperWidth:'',wrapper_height=this.options.wrapperHeight?this.options.wrapperHeight:table_height;$temp_wrapper.remove();this.tpl=tpl_master.replace(/{{wrapper_height}}/g,'height:'+wrapper_height+'px; ').replace(/{{wrapper_width}}/g,wrapper_width?'width:'+wrapper_width+'px; ':'').replace(/{{table_height}}/g,'height:'+table_height+'px; ').replace(/{{table_width}}/g,'width:'+table_width+'px; ');this.build_heading();this.build_left();this.build_right();$table.addClass('frzTbl-table');var $wrapper=this.el.$wrapper=$(this.tpl).insertBefore($table);$wrapper.find('.frzTbl-table-placeholder').replaceWith($table);var $window=$(window);this.el.$firstCell=this.el.$table.find('.wcpt-cell:first');this.el.$scrollOverlay=this.el.$wrapper.children('.frzTbl-scroll-overlay');this.el.$scrollOverlayInner=this.el.$scrollOverlay.children('.frzTbl-scroll-overlay__inner');this.el.$contentWrapper=this.el.$wrapper.children('.frzTbl-content-wrapper');this.el.$frozenColumnsWrapper=this.el.$contentWrapper.children('.frzTbl-frozen-columns-wrapper');this.el.$frozenColumnsInner=this.el.$frozenColumnsWrapper.children('.frzTbl-frozen-columns-wrapper__inner');this.el.$frozenColumnsLeft=this.el.$frozenColumnsInner.children('.frzTbl-frozen-columns-wrapper__columns--left');this.el.$frozenColumnsLeftSticky=this.el.$frozenColumnsLeft.children('.frzTbl-top-sticky');this.el.$frozenColumnsRight=this.el.$frozenColumnsInner.children('.frzTbl-frozen-columns-wrapper__columns--right');this.el.$frozenColumnsRightSticky=this.el.$frozenColumnsRight.children('.frzTbl-top-sticky');this.el.$fixedHeadingWrapperOuter=this.el.$contentWrapper.children('.frzTbl-fixed-heading-wrapper-outer');this.el.$fixedHeadingWrapper=this.el.$fixedHeadingWrapperOuter.children('.frzTbl-fixed-heading-wrapper');this.el.$fixedHeadingLeftColumn=this.el.$fixedHeadingWrapperOuter.children('.frzTbl-fixed-heading-wrapper__columns--left');this.el.$fixedHeadingRightColumn=this.el.$fixedHeadingWrapperOuter.children('.frzTbl-fixed-heading-wrapper__columns--right');this.el.$fixedHeadingInner=this.el.$fixedHeadingWrapper.children('.frzTbl-fixed-heading-wrapper__inner');this.el.$tableWrapper=this.el.$contentWrapper.children('.frzTbl-table-wrapper');this.el.$tableInner=this.el.$tableWrapper.children('.frzTbl-table-wrapper__inner');this.el.$tableWrapperSticky=this.el.$tableInner.children('.frzTbl-top-sticky');this.sticky_heading();this.resize_clone_cells();this.antiscroll();$(window).on('scroll',$.proxy(this,'page_scroll'));this.page_scroll({target:document});this.el.$wrapper.on('wheel',$.proxy(this,'wrapper_wheel'));this.el.$wrapper.on('touchstart touchmove touchend',$.proxy(this,'wrapper_touch'));this.el.$scrollOverlay.on('wheel scroll',$.proxy(this,'scrollOverlay_wheel'));var affected=[this.el.$scrollOverlay,this.el.$tableWrapper,this.el.$fixedHeadingWrapper,this.el.$frozenColumnsWrapper,];$.each(affected,function(i,$elm){$elm[0].scrollTop=0;$elm[0].scrollLeft=0})
if(this.el.$wrapper.innerWidth()==this.el.$table.outerWidth()){this.el.$wrapper.addClass('frzTbl--scrolled-to-left-edge frzTbl--scrolled-to-right-edge')}
$window.on('resize.ft'+this.namespace,$.proxy(this,'resize'));$table[0].addEventListener('load',this.load_image,!0);this.recordEnv()};FreezeTable.prototype.load_image=function(e){var ft=$(this).data('freezeTable'),cell_resize=$.proxy(ft,'cell_resize');if(e.target.tagName==='IMG'){cell_resize(e.target)}}
FreezeTable.prototype.build_heading=function(){if(this.get_breakpoint_options().heading){var $heading=this.clone_table();$heading.find('tbody').remove();this.tpl=this.tpl.replace(/{{heading}}/g,$heading[0].outerHTML)}else{this.tpl=this.tpl.replace(/{{heading}}/g,'')}};FreezeTable.prototype.sticky_heading=function(){var settings=this.get_breakpoint_options(),offset=settings.offset?settings.offset:0,$heading=this.el.$table.children('thead'),heading_height=$heading[0].getBoundingClientRect().height,gap_top=parseInt(this.el.$table.css('border-top-width')),heading_border=parseInt(this.el.$table.find('> thead > tr').css('border-bottom-width'));if(isNaN(offset)){if(typeof offset==='string'){offset=$(offset).height()}else if(typeof offset==='object'){offset=offset.height()}}
if(gap_top%2){--gap_top}
gap_top*=.5;this.el.$fixedHeadingWrapperOuter.css({height:heading_height+gap_top+heading_border,top:parseFloat(offset)+'px',});if(!settings._sticky_outer_heading){this.el.$fixedHeadingWrapperOuter.hide()}else{this.el.$fixedHeadingWrapperOuter.show()}
$('> div > table',this.el.$frozenColumnsInner).each(function(){var $this=$(this);$('> thead',$this).remove();$this.css('margin-top',(heading_height+gap_top)+'px')})
if(!settings.heading){this.el.$fixedHeadingWrapperOuter.css({position:'relative',top:0})}
this.el.$wrapper.parents().each(function(){var $this=$(this),overflow=$this.css('overflow');if(!$this.is('html')&&!$this.is('body')&&overflow&&overflow!=='visible'){$this.addClass('frzTbl-force-parent-overlow-visible')}})};FreezeTable.prototype.build_left=function(){var settings=this.get_breakpoint_options();if(!settings.left){this.tpl=this.tpl.replace(/{{left-columns}}/g,'');this.tpl=this.tpl.replace(/{{left-columns-heading}}/g,'');this.tpl=this.tpl.replace(/{{hide-left-columns-heading}}/g,'frzTbl-fixed-heading-wrapper__columns--empty');this.tpl=this.tpl.replace(/{{hide-left-column}}/g,'frzTbl-frozen-columns-wrapper__columns--empty');return}
var $left=this.clone_table();$left.find('td, th').each(function(){var $this=$(this);if($this.index()>=settings.left){$this.remove()}})
this.tpl=this.tpl.replace(/{{left-columns}}/g,($left[0].outerHTML||''));$left_heading=$left.clone();$left_heading.find('tbody').remove();this.tpl=this.tpl.replace(/{{left-columns-heading}}/g,($left_heading[0].outerHTML||''));this.tpl=this.tpl.replace(/{{hide-left-column}}/g,'');if($('> thead > tr.wcpt-heading-row.wcpt-hide',this.el.$table).length){this.tpl=this.tpl.replace(/{{hide-top-sticky}}/g,' frzTbl-top-sticky--empty ')}else{this.tpl=this.tpl.replace(/{{hide-top-sticky}}/g,'')}};FreezeTable.prototype.build_right=function(){var settings=this.get_breakpoint_options();if(!settings.right){this.tpl=this.tpl.replace(/{{right-columns}}/g,'');this.tpl=this.tpl.replace(/{{right-columns-heading}}/g,'');this.tpl=this.tpl.replace(/{{hide-right-columns-heading}}/g,'frzTbl-fixed-heading-wrapper__columns--empty');this.tpl=this.tpl.replace(/{{hide-right-column}}/g,'frzTbl-frozen-columns-wrapper__columns--empty');return}
var $right=this.clone_table();$right.find('td, th').each(function(){var $this=$(this);if($this.siblings().length-$this.index()>=settings.right){$this.remove()}})
this.tpl=this.tpl.replace(/{{right-columns}}/g,($right[0].outerHTML||''));$right_heading=$right.clone();$right_heading.find('tbody').remove();this.tpl=this.tpl.replace(/{{right-columns-heading}}/g,($right_heading[0].outerHTML||''));this.tpl=this.tpl.replace(/{{hide-right-column}}/g,'');if($('> thead > tr.wcpt-heading-row.wcpt-hide',this.el.$table).length){this.tpl=this.tpl.replace(/{{hide-top-sticky}}/g,' frzTbl-top-sticky--empty ')}else{this.tpl=this.tpl.replace(/{{hide-top-sticky}}/g,'')}};FreezeTable.prototype.clone_table=function(){var $table=this.el.$table,$cloneTable=this.el.$table.clone();$cloneTable.css({'width':'','min-width':'',}).addClass('frzTbl-clone-table');$('> tbody > tr > td, > thead > tr > th',$cloneTable).each(function(){var $this=$(this);$this.attr({'data-index':$this.index(),})});return $cloneTable};FreezeTable.prototype.resize_clone_cells=function(){var $table=this.el.$table,$cloneTables=this.get_clone_tables(),$cloneCells=$('> tbody > tr > td, > thead > tr > th',$cloneTables),dimensions=[];$cloneCells.each(function(){var $this=$(this),$row=$this.parent(),wrapper=$row.parent().is('thead')?'thead':'tbody',selector='> '+wrapper+' > tr:nth-child('+($row.index()+1)+') > *:nth-child('+(parseInt($this.attr('data-index'))+1)+')',$original=$(selector,$table);dimensions.push({width:$original[0].getBoundingClientRect().width,rowOuterHeight:$original.parent()[0].getBoundingClientRect().height})});$cloneCells.each(function(i){var $this=$(this);$this.css({width:Math.ceil(dimensions[i].width),minWidth:Math.ceil(dimensions[i].width),});$this.parent().outerHeight(dimensions[i].rowOuterHeight)});var $heading=this.el.$table.children('thead'),heading_height=$heading[0].getBoundingClientRect().height,gap_top=parseInt(this.el.$table.css('border-top-width'));if(gap_top%2){--gap_top}
gap_top*=.5;$('> div > table',this.el.$frozenColumnsInner).each(function(){var $this=$(this);$this.css('margin-top',(heading_height+gap_top)+'px')})};FreezeTable.prototype.get_clone_tables=function(){var $table=this.el.$table,$cloneTables=$();$.each(this.el,function(name,$el){var $childTables=$el.children().filter(function(){return $(this).is('table')&&this!==$table[0]});$cloneTables=$cloneTables.add($childTables)});return $cloneTables};FreezeTable.prototype.page_scroll=function(e){if(e.target!==document){return}
var heading_rect=this.el.$fixedHeadingWrapperOuter[0].getBoundingClientRect(),table_rect=this.el.$table[0].getBoundingClientRect();if(heading_rect.top==table_rect.top){this.el.$wrapper.addClass('frzTbl--scrolled-to-top')}else{this.el.$wrapper.removeClass('frzTbl--scrolled-to-top')}};FreezeTable.prototype.wrapper_wheel=function(e){if("webkitLineBreak" in document.documentElement.style&&!e.originalEvent.deltaX&&!this.get_breakpoint_options().wrapperHeight){return!0}
var $wrapper=this.el.$wrapper,scrolling='frzTbl--scrolling';$wrapper.addClass(scrolling);clearTimeout(this.scroll_clear);this.scroll_clear=setTimeout(function(){$wrapper.removeClass(scrolling)},300);e.preventDefault();if(!this.options.captureScroll||!this.options.wrapperHeight){if(this.el.$scrollOverlay[0].scrollHeight==this.el.$scrollOverlay.height()||(e.originalEvent.deltaY>0&&this.el.$scrollOverlay[0].scrollTop+this.el.$scrollOverlay.height()==this.el.$scrollOverlayInner.height())||(e.originalEvent.deltaY<0&&!this.el.$scrollOverlay[0].scrollTop)){$('html')[0].scrollTop+=e.originalEvent.deltaY;$('body')[0].scrollTop+=e.originalEvent.deltaY}}};FreezeTable.prototype.wrapper_touch=function(e){if(e.type=='touchstart'){this.el.$scrollOverlay.stop(!0)}
if(e.type=='touchmove'&&this.ev.prevClientX!==!1){var diffX=this.ev.prevClientX-e.originalEvent.touches[0].clientX,diffY=this.ev.prevClientY-e.originalEvent.touches[0].clientY;var e2={originalEvent:{deltaX:diffX,deltaY:diffY}};this.scrollOverlay_wheel(e2);if(Math.abs(diffX)>5){this.ev.animScroll=20*diffX+this.el.$scrollOverlay[0].scrollLeft}else{this.ev.animScroll=!1}}
if(e.type=='touchend'){if(this.ev.animScroll){this.el.$scrollOverlay.animate({scrollLeft:this.ev.animScroll},{specialEasing:{scrollLeft:'easeOutQuad',}});this.ev.animScroll=!1}
this.ev.prevClientX=!1;this.ev.prevClientY=!1}else{this.ev.prevClientX=e.originalEvent.touches[0].clientX,this.ev.prevClientY=e.originalEvent.touches[0].clientY}};FreezeTable.prototype.scrollOverlay_wheel=function(e){var $scrollOverlay=this.el.$scrollOverlay,scrollTop=this.layout_memory.scrollTop,scrollLeft=this.layout_memory.scrollLeft,scrollOverlayWidth=this.layout_memory.scrollOverlayWidth,scrollOverlayInnerWidth=this.layout_memory.scrollOverlayInnerWidth,deltaX=e.originalEvent.deltaX||0,deltaY=e.originalEvent.deltaY||0,mode='transform';if(deltaX==0&&deltaY==0){deltaX=$scrollOverlay[0].scrollLeft-this.layout_memory.scrollLeft}
scrollTop+=deltaY;scrollLeft+=deltaX;if(scrollLeft<0){scrollLeft=0}
if(scrollLeft+scrollOverlayWidth>scrollOverlayInnerWidth){scrollLeft=scrollOverlayInnerWidth-scrollOverlayWidth}
this.layout_memory.scrollTop=scrollTop;this.layout_memory.scrollLeft=scrollLeft;$scrollOverlay[0].scrollTop=scrollTop;$scrollOverlay[0].scrollLeft=scrollLeft;if(mode=='scroll'){this.el.$tableWrapper[0].scrollLeft=scrollLeft;this.el.$fixedHeadingWrapper[0].scrollLeft=scrollLeft}
if(mode=='transform'){this.el.$tableInner[0].style.transform='translate3d(-'+scrollLeft+'px, 0, 0)';this.el.$fixedHeadingInner[0].style.transform='translate3d(-'+scrollLeft+'px, 0, 0)'}
this.el.$wrapper.removeClass('frzTbl--scrolled-to-left-edge frzTbl--scrolled-to-right-edge');if(!scrollLeft){this.el.$wrapper.addClass('frzTbl--scrolled-to-left-edge')}
if(scrollLeft+scrollOverlayWidth>=scrollOverlayInnerWidth){this.el.$wrapper.addClass('frzTbl--scrolled-to-right-edge')}};FreezeTable.prototype.get_breakpoint_options=function(){var settings=this.get_options(),current_bp=this.current_breakpoint();if(current_bp){var ops=$.extend(!0,{},this.default_options,settings.breakpoint[current_bp]);return ops}
return settings};FreezeTable.prototype.get_options=function(){return $.extend(!0,{},this.options)};FreezeTable.prototype.resize=function(){var _resize=$.proxy(this,'_resize');clearTimeout(this.resize_clear);this.resize_clear=setTimeout(_resize,200)};FreezeTable.prototype._resize=function(){var wrapperWidth=this.el.$wrapper.width();if(this.env.wrapperWidth!==wrapperWidth){if(this.crossed_breakpoint()){this.reload(this.get_options());return}
this.antiscroll();this.recordEnv()}};FreezeTable.prototype.cell_resize=function(){var _cell_resize=$.proxy(this,'_cell_resize');clearTimeout(this.cell_resize_timeout);this.cell_resize_timeout=setTimeout(_cell_resize,200)};FreezeTable.prototype._cell_resize=function(cell){if(!this.el.$table.hasClass('frzTbl-table')){return}
if(typeof this.el.$scrollOverlay=='undefined'){return}
var scrollLeft=this.el.$scrollOverlay[0].scrollLeft;var settings=this.get_breakpoint_options(),$table=this.el.$table,overflow_permit=this.get_overflow_permission();if(!overflow_permit&&!settings.tableWidth){settings.tableWidth=this.el.$wrapper.width()}
if(settings.tableWidth){$table.css({width:settings.tableWidth,height:'',});var table_width=this.el.$table.width(),table_height=this.el.$table.height()}else{$table.css({width:'',height:'',});this.el.$tableInner.addClass('frzTbl-table-wrapper__inner--unrestrict-table-wrapper');var table_width=Math.max(this.el.$table.outerWidth(),this.el.$wrapper.innerWidth());table_height=this.el.$table.outerHeight();if(table_width>this.el.$wrapper.width()){++table_width}
this.el.$tableInner.removeClass('frzTbl-table-wrapper__inner--unrestrict-table-wrapper');this.el.$table.css('min-width',table_width)}
var $affected=[this.el.$scrollOverlayInner,this.el.$frozenColumnsInner];if(!this.get_breakpoint_options.wrapperHeight){$affected.push(this.el.$wrapper)}
$.each($affected,function(key,$elm){$elm.css({height:table_height,width:table_width,})});this.resize_clone_cells();this.antiscroll();this.el.$scrollOverlay[0].scrollLeft=scrollLeft;this.recordEnv()};FreezeTable.prototype.antiscroll=function(){var $table=this.el.$table,$scrollOverlay=this.el.$scrollOverlay;this.layout_memory={scrollTop:$scrollOverlay[0].scrollTop=0,scrollLeft:$scrollOverlay[0].scrollLeft=0,scrollOverlayWidth:$scrollOverlay.width(),scrollOverlayInnerWidth:this.el.$scrollOverlayInner.width(),}
this.el.$wrapper.antiscroll();this.el.$wrapper.children('> .frzTbl-antiscroll-wrap').remove().end().children('.antiscroll-scrollbar-horizontal').wrap('<div class="frzTbl-antiscroll-wrap">')};FreezeTable.prototype.crossed_breakpoint=function(){return this.current_breakpoint()!==this.env.breakpoint};FreezeTable.prototype.recordEnv=function(){var _=this;_.env={windowWidth:$(window).width(),windowHeight:$(window).height(),wrapperWidth:this.el.$wrapper.width(),wrapperHeight:this.el.$wrapper.height(),tableWidth:_.el.$table.width(),tableHeight:_.el.$table.height(),firstCellWidth:_.el.$firstCell.width(),firstCellHeight:_.el.$firstCell.height(),breakpoint:_.current_breakpoint(),}};FreezeTable.prototype.current_breakpoint=function(){var settings=this.get_options(),breakpoint=!1,windowWidth=$(window).width();if(!settings.breakpoint){return!1}
$.each(settings.breakpoint,function(bp,bp_settings){var bp=parseInt(bp);if(bp<windowWidth){return!0}
if(!breakpoint||bp<breakpoint){breakpoint=bp}})
return breakpoint};FreezeTable.prototype.destroy=function(){this.clear_handlers();this.unwrap();this.el.$table.removeData('freezeTable')};FreezeTable.prototype.clear_handlers=function(){$(window).off('resize.ft'+this.namespace)};FreezeTable.prototype.unwrap=function(){var $table=this.el.$table,$wrapper=this.el.$wrapper;$table.removeClass('frzTbl-table').css({'width':'','min-width':''});if(!$wrapper||!$wrapper.length){return}
$table.insertBefore($wrapper);$wrapper.remove()};FreezeTable.prototype.reload=function(options){var $table=this.el.$table;this.destroy();$table.data('freezeTable',new $.FreezeTable($table[0],options))};$.extend($.easing,{easeOutQuad:function(x,t,b,c,d){return-c*(t/=d)*(t-2)+b},})});


