/**handles:generate-menu,googlesitekit-events-provider-content-events,mc4wp-forms-api,googlesitekit-events-provider-mailchimp**/ (()=>{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{function n(e){return e.pathname.split("/").filter(Boolean)}function a(e){return(e||"").toLowerCase()}let e=[{type:"phone",schemes:["tel:"]},{type:"email",schemes:["mailto:"]},{type:"sms",schemes:["sms:","smsto:"]},{type:"whatsapp",schemes:["whatsapp:"],hosts:["wa.me","api.whatsapp.com","web.whatsapp.com"],hasRecipient:e=>{var t,o;return"wa.me"===e.hostname?([t,o]=n(e),/^\d+$/.test(t||"")||["message","qr"].includes(a(t))&&!!o):!!e.searchParams.get("phone")}},{type:"messenger",schemes:["fb-messenger:"],hosts:["m.me","messenger.com"],hasRecipient:e=>{var t,o;return"m.me"===e.hostname?0{var e;return"tg:"===e.protocol?"resolve"===e.hostname&&!!e.searchParams.get("domain"):([e]=n(e),!!e&&!e.startsWith("+")&&!["share","joinchat","addstickers","proxy"].includes(a(e)))}},{type:"viber",schemes:["viber:"],hasRecipient:e=>["chat","add","pa"].includes(e.hostname)},{type:"signal",schemes:["sgnl:"],hosts:["signal.me"],hasRecipient:e=>"sgnl:"===e.protocol||e.hash.startsWith("#p/")&&3{var e,e,t,o,i;return"page.line.me"===e.hostname?0{t.schemes?.forEach(e=>{l[e]=t}),t.hosts?.forEach(e=>{s[e]=t})}),["sponsored","ugc","nofollow"]);function c(e){return"http:"===e.protocol||"https:"===e.protocol?{transport_type:"beacon"}:{}}let h="a.post-page-numbers";function m(e){try{let t=new URL(e.href);for(let e of["page","paged"]){var o=parseInt(t.searchParams.get(e)||"",10);if(0{let o;function i(t){return(...e)=>{clearTimeout(o),t(...e)}}n.addEventListener("load",i(()=>e()),{once:!0}),n.addEventListener("error",i(()=>t(new Error("Site Kit: failed to load the Vimeo Player SDK script."))),{once:!0}),void 0!==a&&(o=setTimeout(i(()=>t(new Error("Site Kit: timed out waiting for the Vimeo Player SDK script to load."))),a))})}let u=null,b=[10,25,50,75];function t(e,t){try{e()}catch(e){console.error(...t?[t,e]:[e])}}let T={postID:0,isReadableSinglePost:!1,hasVimeoEmbed:!1,wordCount:0,estimatedReadTimeSeconds:0,isLastPageOfMultiPagePost:!1,readTimeThresholdPercent:85,minimumReadTimeSeconds:5,...globalThis._googlesitekit?.contentEvents||{}};(async e=>{if(e.hasVimeoEmbed){var t=globalThis.document.querySelectorAll('iframe[src*="player.vimeo.com"]'),o;if(t.length)try{let r=await("function"==typeof(o=g())?.Player?Promise.resolve(o.Player):u=u||(async()=>{var e=globalThis.document.querySelector(`script[src^="${i}"]`),e,t;e&&!e.hasAttribute(d)?await p(e,1e4):(e?.remove(),(e=globalThis.document.createElement("script")).src=i,e.setAttribute(d,""),t=p(e),globalThis.document.head.appendChild(e),await t)})().then(()=>{var e=g()?.Player;if("function"!=typeof e)throw new Error("Site Kit: the Vimeo Player SDK script did not expose Vimeo.Player.");return e}).catch(e=>{throw u=null,e}));await Promise.allSettled(Array.from(t).map(async(n,a)=>{{var n=new r(n),l=a;let e=Promise.all([n.getVideoTitle(),n.getVideoUrl()]).then(([e,t])=>({video_provider:"vimeo",video_title:e,video_url:t,video_instance_index:l}));function s(t,o){e.then(e=>{globalThis._googlesitekit?.gtagEvent?.(t,{...e,video_percent:o})}).catch(()=>{})}e.catch(e=>{console.error("Site Kit: failed to fetch this Vimeo video’s title/URL; its engagement events will not be tracked.",e)});let t=!1,o=!1,i=new Set;n.on("play",()=>{t||(t=!0,s("video_start",0))}),n.on("timeupdate",e=>{if(i.size!==b.length){let t=Math.floor(100*e.percent);b.forEach(e=>{t>=e&&!i.has(e)&&(i.add(e),s("video_progress",e))})}}),n.on("ended",()=>{o||(o=!0,s("video_complete",100))}),await e}}))}catch(e){console.error("Site Kit: failed to load the Vimeo Player SDK; video engagement events will not be tracked on this page.",e)}}})(T),t(()=>{var i;i=T,globalThis.document.addEventListener("click",e=>{try{var t,o;e.target instanceof Element&&(t=e.target.closest(h+", body.single-topic .bbp-pagination-links a.page-numbers"))&&(o=t.matches(h)?"post":"bbpress",globalThis._googlesitekit?.gtagEvent?.("pagination_click",{pagination_type:o,page_number:m(t),post_id:i.postID,transport_type:"beacon"}))}catch(e){console.error("Site Kit: failed to track this pagination click.",e)}})},"Site Kit: failed to initialize pagination click tracking."),t(()=>{globalThis.document.addEventListener("click",e=>{try{if(e.target instanceof Element){var o=e.target.closest("a[href]");if(o){let t;try{t=new URL(o.href)}catch{return}var i=(n=t,n=new URL(n),a="http:"===n.protocol||"https:"===n.protocol,n.hostname=a?n.hostname.replace(/^www\./,""):n.hostname.toLowerCase(),(a=a?s[n.hostname]:l[n.protocol])&&(!a.hasRecipient||a.hasRecipient(n))?a.type:null);if(i)globalThis._googlesitekit?.gtagEvent?.("contact_link_click",{link_type:i,...c(t)});else{let e=((e,t)=>{if("http:"!==t.protocol&&"https:"!==t.protocol||t.hostname===globalThis.location.hostname)return null;let o=new Set((e.getAttribute("rel")||"").toLowerCase().split(/[\s,]+/).filter(Boolean));return r.filter(e=>o.has(e)).join(" ")||null})(o,t);e&&globalThis._googlesitekit?.gtagEvent?.("outbound_link_click",{link_rel:e,link_url:t.href,link_domain:t.hostname,...c(t)})}}}}catch(e){console.error("Site Kit: failed to track this link click.",e)}var n,a})},"Site Kit: failed to initialize link click tracking."),t(()=>{{var o;let{postID:r,isReadableSinglePost:e,isLastPageOfMultiPagePost:t,wordCount:c,estimatedReadTimeSeconds:h,readTimeThresholdPercent:m,minimumReadTimeSeconds:d}=T;if(e&&t){let e=1e3*Math.max(d,h*m/100),t=!1,o=!1,i=null,n=null,a=0,l=0,s=(()=>{for(var e=globalThis.document.createTreeWalker(globalThis.document.body,globalThis.NodeFilter.SHOW_COMMENT);e.nextNode();){var t=e.currentNode;if("[googlesitekit-end-of-content]"===t.data){let e=t.previousElementSibling;for(;e&&0===e.getClientRects().length;)e=e.previousElementSibling;return e||t.parentElement}}return null})();function g(){if(t&&o){try{globalThis._googlesitekit?.gtagEvent?.("read_article",{post_id:r,word_count:c,estimated_read_time_seconds:h})}catch(e){console.error("Site Kit: failed to send the read article event.",e)}p(),f(),globalThis.removeEventListener("blur",v),globalThis.removeEventListener("focus",v),globalThis.document.removeEventListener("visibilitychange",v)}}function p(){i?.disconnect(),i=null,globalThis.removeEventListener("scroll",b)}function u(){t=!0,p(),g()}function b(){.9<=(globalThis.scrollY+globalThis.innerHeight)/globalThis.document.documentElement.scrollHeight&&u()}function f(){null!==n&&(globalThis.clearTimeout(n),n=null,a+=globalThis.performance.now()-l)}function v(){"hidden"!==globalThis.document.visibilityState&&globalThis.document.hasFocus()?o||null!==n||(l=globalThis.performance.now(),n=globalThis.setTimeout(()=>{n=null,o=!0,g()},e-a)):f()}s&&"function"==typeof globalThis.IntersectionObserver?(i=new globalThis.IntersectionObserver(e=>{e.some(e=>!e.isIntersecting&&e.rootBounds&&e.boundingClientRect.bottom<=e.rootBounds.top)&&u()},{rootMargin:"-100% 0px 1000000px 0px"}),"complete"===globalThis.document.readyState?i.observe(s):globalThis.addEventListener("load",()=>i?.observe(s),{once:!0})):(globalThis.addEventListener("scroll",b,{passive:!0}),b()),globalThis.addEventListener("blur",v),globalThis.addEventListener("focus",v),globalThis.document.addEventListener("visibilitychange",v),v()}}},"Site Kit: failed to initialize read article tracking.")})(); (()=>{var r={9885(e){function t(){this.listeners={}}t.prototype.emit=function(e,t){this.listeners[e]=this.listeners[e]??[],this.listeners[e].forEach(e=>e.apply(null,t))},t.prototype.on=function(e,t){this.listeners[e]=this.listeners[e]??[],this.listeners[e].push(t)},e.exports=t},5626(){function r(e){var t=!!e.getAttribute("data-show-if"),r=(t?e.getAttribute("data-show-if"):e.getAttribute("data-hide-if")).split(":"),n=r[0],a=(1{var r=[],n=e.querySelectorAll('input[name="'+t+'"],select[name="'+t+'"],textarea[name="'+t+'"]');for(let e=0;e{let t=e;for(;t.parentElement;)if("FORM"===(t=t.parentElement).tagName)return t;return null})(e),n);let o=!1;for(let e=0;e{var t=[],r=new RegExp(a),n=/^([^\[\]]*)/.exec(e);for(n[1]&&t.push(n[1]);null!==(n=r.exec(e));)t.push(n[1]);return t})(t),r):(n=e[t])?(Array.isArray(n)||(e[t]=[n]),e[t].push(r)):e[t]=r,e}function y(e,t,r){return r=r.replace(/(\r)?\n/g,"\r\n"),r=(r=encodeURIComponent(r)).replace(/%20/g,"+"),e+(e?"&":"")+encodeURIComponent(t)+"="+r}e.exports=function(e,t){"object"!=typeof t?t={hash:!!t}:void 0===t.hash&&(t.hash=!0);for(var r=t.hash?{}:"",n=t.serializer||(t.hash?v:y),a=e&&e.elements?e.elements:[],i=Object.create(null),o=0;o{var t;e.target&&("string"==typeof(t=e.target).className&&-1{let m="email",s="phone",u="name",o={email:["email","e-mail","mail","email address"],phone:["phone","tel","mobile","cell","telephone","phone number"],name:["name","full-name","full name","full_name","fullname","first-name","first name","first_name","firstname","last-name","last name","last_name","lastname","given-name","given name","given_name","givenname","family-name","family name","family_name","familyname","fname","lname","first","last","your-name","your name"]};function f(e){return e&&"string"==typeof e?e.trim().toLowerCase():""}function c(e){var e=f(e),t=e.lastIndexOf("@"),n;return-1!==t&&(n=e.slice(t+1),["gmail.com","googlemail.com"].includes(n))?e.slice(0,t).replace(/\./g,"")+"@"+n:e}function g(e){var e=f(e),t=e.replace(/\D/g,"");return e.startsWith("+")?"+"+t:t}function l(e){var e=e.filter(({type:e})=>e===u).map(({value:e})=>f(e)).filter(Boolean),e,t;if(e.length)return[e,...t]=1===e.length?e[0].split(" "):e,{first_name:e,...0e===m)?.value}function p(e){return e.find(({type:e})=>e===s)?.value}var e;(e=globalThis.mc4wp)&&e.forms.on("subscribed",(e,t)=>{var n,t=globalThis._googlesitekit?.gtagUserData?((i,r)=>{if(i&&i instanceof HTMLFormElement){var e=Object.entries(r).map(([e,t])=>{if("NAME"===e&&("FNAME"in r||"LNAME"in r))return null;var n=i.querySelector(`[name='${e}']`),l=n?.type,l,{type:l,name:n,value:a,label:e}=l={type:l,label:n?.id?i.querySelector(`label[for='${n?.id}']`)?.textContent:void 0,name:e,value:t},l=f(l),n=f(n),a=f(a),t,e=(t=e)&&"string"==typeof t?t.trim().toLowerCase().replace(/\s*\*+\s*$/,"").replace(/\s*\(required\)\s*$/i,"").replace(/\s*:\s*$/,"").trim():"";switch(l){case"email":return{type:m,value:c(a)};case"tel":return{type:s,value:g(a)}}return(e=>{var e;if(e)return e=c(e),/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(e)})(a)||o[m].includes(n)||o[m].includes(e)?{type:m,value:c(a)}:o[s].includes(n)||o[s].includes(e)?{type:s,value:g(a)}:o[u].includes(n)||o[u].includes(e)?{type:u,value:f(a)}:(e=>{if(e&&!((n=(t=e).replace(/\D/g,"")).length<7||n.lengthnull!==e),e;if(0!==(e=[["address",l(e)],["email",a(e)],["phone_number",p(e)]].filter(([,e])=>e)).length)return Object.fromEntries(e)}})(e.element,t):null;globalThis._googlesitekit?.gtagEvent?.("submit_lead_form",{event_category:"mailchimp",googlesitekit_event_provider:"mailchimp",googlesitekit_form_id:String(e.id),...t?{user_data:t}:{}})})})();