!function(){"use strict";const{enterprise:{selector:e,siteKey:t,src:n}}=pmcRecaptcha;(()=>{async function c(e){var n,c;if(this.querySelector('input[name="pmc-recaptcha-token"]'))return;if(e.preventDefault(),"undefined"==typeof grecaptcha||"function"!=typeof(null===(n=grecaptcha)||void 0===n||null===(c=n.enterprise)||void 0===c?void 0:c.execute))return void this.submit();const i=await grecaptcha.enterprise.execute(t,{action:"newsletter_signup"});if(i){const e=document.createElement("input");e.setAttribute("type","hidden"),e.setAttribute("name","pmc-recaptcha-token"),e.setAttribute("value",i),this.appendChild(e),this.getAttribute("action")?(this.submit(),e.remove()):this.dispatchEvent(new Event("submit",{bubbles:!0,cancelable:!0}))}}const i=()=>{document.querySelectorAll(e+" input").forEach((e=>{e.removeEventListener("focus",i)}));const t=document.createElement("script");t.src=n,t.async=!0,document.body.appendChild(t)};document.querySelectorAll(e).forEach((e=>{e.querySelectorAll("input").forEach((e=>{e.addEventListener("focus",i)})),e.addEventListener("submit",c)}))})()}();