"use strict";var wpforms=window.wpforms||function(i,s,l){var p={cache:{},init:function(){l(p.ready),l(s).on("load",function(){"function"==typeof l.ready.then?l.ready.then(p.load):p.load()}),p.bindUIActions(),p.bindOptinMonster()},ready:function(){p.clearUrlQuery(),p.setUserIndentifier(),p.loadValidation(),p.loadDatePicker(),p.loadTimePicker(),p.loadInputMask(),p.loadSmartPhoneField(),p.loadPayments(),p.loadMailcheck(),p.loadChoicesJS(),l(".wpforms-randomize").each(function(){for(var e=l(this),t=e.children();t.length;)e.append(t.splice(Math.floor(Math.random()*t.length),1)[0])}),l(".wpforms-page-button").prop("disabled",!1),l(i).trigger("wpformsReady")},load:function(){},clearUrlQuery:function(){var e=s.location,t=e.search;-1!==t.indexOf("wpforms_form_id=")&&(t=t.replace(/([&?]wpforms_form_id=[0-9]*$|wpforms_form_id=[0-9]*&|[?&]wpforms_form_id=[0-9]*(?=#))/,""),history.replaceState({},null,e.origin+e.pathname+t))},loadValidation:function(){void 0!==l.fn.validate&&(l(".wpforms-input-temp-name").each(function(e,t){var r=Math.floor(9999*Math.random())+1;l(this).attr("name","wpf-temp-"+r)}),l(i).on("change",".wpforms-validate input[type=url]",function(){var e=l(this).val();if(!e)return!1;"http://"!==e.substr(0,7)&&"https://"!==e.substr(0,8)&&l(this).val("https://"+e)}),l.validator.messages.required=wpforms_settings.val_required,l.validator.messages.url=wpforms_settings.val_url,l.validator.messages.email=wpforms_settings.val_email,l.validator.messages.number=wpforms_settings.val_number,void 0!==l.fn.payment&&l.validator.addMethod("creditcard",function(e,t){e=l.payment.validateCardNumber(e);return this.optional(t)||e},wpforms_settings.val_creditcard),l.validator.addMethod("extension",function(e,t,r){return r="string"==typeof r?r.replace(/,/g,"|"):"png|jpe?g|gif",this.optional(t)||e.match(new RegExp("\\.("+r+")$","i"))},wpforms_settings.val_fileextension),l.validator.addMethod("maxsize",function(e,t,r){var a,o,n=r,r=this.optional(t);if(r)return r;if(t.files&&t.files.length)for(a=0,o=t.files.length;an)return!1;return!0},wpforms_settings.val_filesize),l.validator.addMethod("step",function(e,t,r){n=r;const a=Math.floor(n)!==n&&n.toString().split(".")[1].length||0;function o(e){return Math.round(e*Math.pow(10,a))}var n=o(l(t).attr("min"));return e=o(e)-n,this.optional(t)||o(e)%o(r)==0}),l.validator.methods.email=function(e,t){return this.optional(t)||function(e){if("string"!=typeof e)return!1;var t=e.indexOf("@",1);if(e.length<6||254=Number(r.data("password-strength-level"))},wpforms_settings.val_password_strength),l(".wpforms-validate").each(function(){var e=l(this),t=e.data("formid"),t=void 0!==s["wpforms_"+t]&&s["wpforms_"+t].hasOwnProperty("validate")?s["wpforms_"+t].validate:"undefined"!=typeof wpforms_validate?wpforms_validate:{errorElement:p.isModernMarkupEnabled()?"em":"label",errorClass:"wpforms-error",validClass:"wpforms-valid",ignore:":hidden:not(textarea.wp-editor-area), .wpforms-conditional-hide textarea.wp-editor-area",ignoreTitle:!0,errorPlacement(e,t){p.isLikertScaleField(t)?(t.closest("table").hasClass("single-row")?t.closest(".wpforms-field"):t.closest("tr").find("th")).append(e):p.isWrappedField(t)?t.closest(".wpforms-field").append(e):p.isDateTimeField(t)?p.dateTimeErrorPlacement(t,e):p.isFieldInColumn(t)||p.isFieldHasHint(t)?t.parent().append(e):p.isLeadFormsSelect(t)?t.parent().parent().append(e):t.hasClass("wp-editor-area")?t.parent().parent().parent().append(e):e.insertAfter(t),p.isModernMarkupEnabled()&&e.attr({role:"alert","aria-label":wpforms_settings.errorMessagePrefix,for:""})},highlight:function(e,t,r){var a=l(e),o=a.closest(".wpforms-field"),n=a.attr("name");("radio"===a.attr("type")||"checkbox"===a.attr("type")?o.find('input[name="'+n+'"]'):a).addClass(t).removeClass(r),"password"===a.attr("type")&&""===a.val().trim()&&s.WPFormsPasswordField&&a.data("rule-password-strength")&&a.hasClass("wpforms-field-required")&&WPFormsPasswordField.passwordStrength("",e),o.addClass("wpforms-has-error")},unhighlight:function(e,t,r){var e=l(e),a=e.closest(".wpforms-field"),o=e.attr("name");("radio"===e.attr("type")||"checkbox"===e.attr("type")?a.find('input[name="'+o+'"]'):e).addClass(r).removeClass(t),a.find(":input.wpforms-error,[data-dz-errormessage]:not(:empty)").length||a.removeClass("wpforms-has-error"),p.isModernMarkupEnabled()&&e.parent().find("em.wpforms-error").remove()},submitHandler:function(i){function s(e,t){let r="label",a="";p.isModernMarkupEnabled()&&(r="em",a='role="alert"');var o=`<${r} id="wpforms-field_recaptcha-error" class="wpforms-error" ${a}> ${wpforms_settings.val_recaptcha_fail_msg}`;e.find(".wpforms-recaptcha-container").append(o),p.restoreSubmitButton(e,t)}function e(){const e=l(i),t=e.closest(".wpforms-container"),r=e.find(".wpforms-submit"),a=r.data("captchaInvalid"),o=r.data("alt-text"),n=r.get(0).recaptchaID;return e.data("token")&&0===l(".wpforms-token",e).length&&l('').val(e.data("token")).appendTo(e),e.find("#wpforms-field_recaptcha-error").remove(),r.prop("disabled",!0),WPFormsUtils.triggerEvent(e,"wpformsFormSubmitButtonDisable",[e,r]),o&&r.text(o),a?s(e,t):p.empty(n)&&0!==n?(l(".wpforms-input-temp-name").removeAttr("name"),void p.formSubmit(e)):(grecaptcha.execute(n).then(null,function(){grecaptcha.getResponse()||s(e,t)}),!1)}return"function"==typeof wpformsRecaptchaV3Execute?wpformsRecaptchaV3Execute(e):e()},invalidHandler:function(e,t){void 0!==t.errorList[0]&&p.scrollToError(l(t.errorList[0].element))},onkeyup:WPFormsUtils.debounce(function(e,t){l(e).hasClass("wpforms-novalidate-onkeyup")||9===t.which&&""===this.elementValue(e)||-1!==l.inArray(t.keyCode,[16,17,18,20,35,36,37,38,39,40,45,144,225])||(e.name in this.submitted||e.name in this.invalid)&&this.element(e)},1e3),onfocusout:function(e){var t=!1;l(e).hasClass("wpforms-novalidate-onkeyup")&&!e.value&&(t=!0),(t=this.checkable(e)||!(e.name in this.submitted)&&this.optional(e)?t:!0)&&this.element(e)},onclick:function(e){var t=!1,r=(e||{}).type,a=l(e);-1<["checkbox","radio"].indexOf(r)&&((a=a.hasClass("wpforms-likert-scale-option")?a.closest("tr"):a.closest(".wpforms-field")).find("label.wpforms-error, em.wpforms-error").remove(),t=!0),t&&this.element(e)}};e.validate(t)}))},restrictedEmailRequest(r,a){var e=l(r),t=e.closest("form");const o=t.data("validator"),n=t.data("formid");t=e.closest(".wpforms-field").data("field-id");p.cache[n]=p.cache[n]||{},o.startRequest(r),l.post({url:wpforms_settings.ajaxurl,type:"post",data:{action:"wpforms_restricted_email",form_id:n,field_id:t,email:a},dataType:"json",success(e){var t={},e=e.success&&e.data;e||(t[r.name]=wpforms_settings.val_email_restricted,o.showErrors(t)),p.cache[n].restrictedEmailValidation=p.cache[n].restrictedEmailValidation||[],Object.prototype.hasOwnProperty.call(p.cache[n].restrictedEmailValidation,a)||(p.cache[n].restrictedEmailValidation[a]=e),o.stopRequest(r,e)}})},isFieldInColumn(e){return e.parent().hasClass("wpforms-one-half")||e.parent().hasClass("wpforms-two-fifths")||e.parent().hasClass("wpforms-one-fifth")},isFieldHasHint:function(e){return 0'"()/\\|:;=@%&\s]/gi,"").substr(0,64),a=decodeURI(t.domain).replaceAll(/[<>'"()/\\|:;=@%&+_\s]/gi,"");t=''+r+"@"+a+"",t=wpforms_settings.val_email_suggestion.replace("{suggestion}",t),e.closest(".wpforms-field").find("#"+o+"_suggestion").remove(),e.parent().append('")},empty:function(){l("#"+o+"_suggestion").remove()}})}),l(i).on("click",".wpforms-field-email .mailcheck-suggestion",function(e){var t=l(this),r=t.closest(".wpforms-field"),a=t.data("id");e.preventDefault(),r.find("#"+a).val(t.text()),t.parent().remove()}))},loadChoicesJS:function(){"function"==typeof s.Choices&&(l(".wpforms-field-select-style-modern .choicesjs-select, .wpforms-field-payment-select .choicesjs-select").each(function(e,t){var r,a;l(t).data("choicesjs")||(r=s.wpforms_choicesjs_config||{},a=l(t).data("search-enabled"),r.searchEnabled=void 0===a||a,r.callbackOnInit=function(){var t=this,r=l(t.passedElement.element),a=l(t.input.element),e=r.data("size-class");r.removeAttr("hidden").addClass(t.config.classNames.input+"--hidden"),e&&l(t.containerOuter.element).addClass(e),r.prop("multiple")&&(a.data("placeholder",a.attr("placeholder")),t.getValue(!0).length)&&a.removeAttr("placeholder"),r.on("change",function(){var e;r.prop("multiple")&&(t.getValue(!0).length?a.removeAttr("placeholder"):a.attr("placeholder",a.data("placeholder"))),(e=r.closest("form").data("validator"))&&e.element(r)})},r.callbackOnCreateTemplates=function(){var r=l(this.passedElement.element);return{option:function(e){var t=Choices.defaults.templates.option.call(this,e);return void 0!==e.placeholder&&!0===e.placeholder&&t.classList.add("placeholder"),r.hasClass("wpforms-payment-price")&&void 0!==e.customProperties&&null!==e.customProperties&&(t.dataset.amount=e.customProperties),t}}},l(t).data("choicesjs",new Choices(t,r)))}),l(i).on("click",".choices",function(e){var t=l(this),r=t.find("select").data("choicesjs");r&&t.hasClass("is-open")&&(e.target.classList.contains("choices__inner")||e.target.classList.contains("choices__arrow"))&&r.hideDropdown()}))},bindUIActions:function(){var e=l(i);e.on("click",".wpforms-page-button",function(e){e.preventDefault(),p.pagebreakNav(this)}),e.on("change input",".wpforms-payment-price",function(){p.amountTotal(this,!0)}),e.on("input",".wpforms-payment-user-input",function(){var e=l(this),t=e.val();e.val(t.replace(/[^0-9.,]/g,""))}),e.on("focusout",".wpforms-payment-user-input",function(){var e=l(this),t=e.val();if(!t)return t;t=p.amountSanitize(t),t=p.amountFormat(t);e.val(t)}),e.on("wpformsProcessConditionals",function(e,t){p.amountTotal(t,!0)}),e.on("mouseenter",".wpforms-field-rating-item",function(){l(this).parent().find(".wpforms-field-rating-item").removeClass("selected hover"),l(this).prevAll().addBack().addClass("hover")}).on("mouseleave",".wpforms-field-rating-item",function(){l(this).parent().find(".wpforms-field-rating-item").removeClass("selected hover"),l(this).parent().find("input:checked").parent().prevAll().addBack().addClass("selected")}),l(i).on("change",".wpforms-field-rating-item input",function(){var e=l(this),t=e.closest(".wpforms-field-rating-items").find(".wpforms-field-rating-item");e.focus(),t.removeClass("hover selected"),e.parent().prevAll().addBack().addClass("selected")}),l(function(){l(".wpforms-field-rating-item input:checked").trigger("change")}),e.on("keydown",".wpforms-image-choices-item label",function(e){var t=l(this);if(t.closest(".wpforms-field").hasClass("wpforms-conditional-hide"))return e.preventDefault(),!1;32===e.keyCode&&(t.find("input").trigger("click"),e.preventDefault())}),s.document.documentMode&&e.on("click",".wpforms-image-choices-item img",function(){l(this).closest("label").find("input").trigger("click")}),e.on("change",".wpforms-field-checkbox input, .wpforms-field-radio input, .wpforms-field-payment-multiple input, .wpforms-field-payment-checkbox input, .wpforms-field-gdpr-checkbox input",function(e){var t=l(this);if(t.closest(".wpforms-field").hasClass("wpforms-conditional-hide"))return e.preventDefault(),!1;switch(t.attr("type")){case"radio":t.closest("ul").find("li").removeClass("wpforms-selected").find("input[type=radio]").removeProp("checked"),t.prop("checked",!0).closest("li").addClass("wpforms-selected");break;case"checkbox":t.is(":checked")?(t.closest("li").addClass("wpforms-selected"),t.prop("checked",!0)):(t.closest("li").removeClass("wpforms-selected"),t.prop("checked",!1))}}),e.on("input",".wpforms-field-file-upload",function(){var e=l(this),t=e.closest("form.wpforms-form").find('.wpforms-field-file-upload input:not(".dropzone-input")'),a=0,r=Number(wpforms_settings.post_max_size),o='
'+wpforms_settings.val_post_max_size+"
",e=e.closest("form.wpforms-form").find(".wpforms-submit-container"),n=e.find("button.wpforms-submit"),i=e.prev(),s=n.closest("form"),p=s.find(".wpforms-page-next:visible");0!==s.find(".wpforms-page-indicator").length&&0!==p.length&&(n=p),t.each(function(){for(var e=l(this),t=0,r=e[0].files.length;t{errorMsg}'.replace(/{errorMsg}/,o)),i=e.prev()),n.prop("disabled",!0),WPFormsUtils.triggerEvent(s,"wpformsFormSubmitButtonDisable",[s,n]),WPFormsUtils.triggerEvent(s,"wpformsCombinedUploadsSizeError",[s,i]))}),e.on("change input",".wpforms-field-number-slider input[type=range]",function(e){var t=l(e.target).siblings(".wpforms-field-number-slider-hint");t.html(t.data("hint").replace("{value}",""+e.target.value+""))}),e.on("keydown",".wpforms-form input",function(e){var t,r;13!==e.keyCode||0===(r=(t=l(this)).closest(".wpforms-page")).length||["text","tel","number","email","url","radio","checkbox"].indexOf(t.attr("type"))<0||(t.hasClass("wpforms-datepicker")&&t.flatpickr("close"),e.preventDefault(),(r.hasClass("last")?r.closest(".wpforms-form").find(".wpforms-submit"):r.find(".wpforms-page-next")).trigger("click"))}),e.on("keypress",".wpforms-field-number input",function(e){return/^[-0-9.]+$/.test(String.fromCharCode(e.keyCode||e.which))}),e.one("input",".wpforms-field input, .wpforms-field textarea, .wpforms-field select",p.formChanged).one("change",".wpforms-field-select-style-modern, .wpforms-timepicker",p.formChanged).one("focus",".dropzone-input",p.formChanged).one("click touchstart",".wpforms-signature-canvas",p.formChanged).one("wpformsRichTextContentChange",p.richTextContentChanged),l("form.wpforms-form").on("wpformsBeforePageChange",p.skipEmptyPages)},skipEmptyPages(e,t,r,a){var o=p.findNonEmptyPage(t,r,a);o!==t&&(e.preventDefault(),1===o&&"prev"===a?(e=r.find(".wpforms-page-2"),a=r.find(".wpforms-page-"+t),t=(e.find(".wpforms-page-prev").length?e:a).find(".wpforms-page-prev"),wpforms.navigateToPage(t,"prev",2,r,e)):(t=r.find(".wpforms-page-"+(a=o-1)),wpforms.navigateToPage(t.find(".wpforms-page-next"),"next",a,r,t)))},findNonEmptyPage(e,t,r){let a=e;for(;p.isEmptyPage(t,a);)"prev"===r?a--:a++;return a},isEmptyPage(e,t){return 1!==t&&!(e=e.find(".wpforms-page-"+t)).hasClass("last")&&(t=e.find(".wpforms-field:not(.wpforms-field-pagebreak):not(.wpforms-field-hidden)"),e.find(".wpforms-conditional-hide").length===t.length)},formChanged:function(e){var t=l(this).closest(".wpforms-form");p.maybeSetStartTime(t)},richTextContentChanged:function(e,t,r){r=r.getContainer(),r=l(r).closest(".wpforms-form");p.maybeSetStartTime(r)},maybeSetStartTime:function(e){e.data("timestamp")||(e.hasClass("wpforms-ajax-form")&&"undefined"!=typeof FormData?e.data("timestamp",Date.now()):e.append(''))},entryPreviewFieldPageChange:function(e,t,r){console.warn("WARNING! Obsolete function called. Function wpforms.entryPreviewFieldPageChange has been deprecated, please use the WPFormsEntryPreview.pageChange function instead!"),WPFormsEntryPreview.pageChange(e,t,r)},entryPreviewFieldUpdate:function(e,t){console.warn("WARNING! Obsolete function called. Function wpforms.entryPreviewFieldUpdate has been deprecated, please use the WPFormsEntryPreview.update function instead!"),WPFormsEntryPreview.update(e,t)},scrollToError:function(e){var t,r;0!==e.length&&0!==(t=0===(t=e.find(".wpforms-field.wpforms-has-error")).length?e.closest(".wpforms-field"):t).length&&void 0!==(r=t.offset())&&p.animateScrollTop(r.top-75,750).done(function(){var e=t.find(".wpforms-error").first();"function"==typeof e.focus&&e.trigger("focus")})},pagebreakNav:function(e){const t=l(e),r=t.data("action"),a=t.data("page"),o=t.closest(".wpforms-form"),n=o.find(".wpforms-page-"+a);p.saveTinyMCE(),"next"===r&&void 0!==l.fn.validate?p.checkForInvalidFields(o,n,function(){p.navigateToPage(t,r,a,o,n)}):"prev"!==r&&"next"!==r||p.navigateToPage(t,r,a,o,n)},checkForInvalidFields:function(e,t,r){var a=e.data("validator");if(a)if(0'),r.render(t,{sitekey:e,callback:function(){wpformsRecaptchaCallback(l("#"+t))}}))},amountTotal(e,t){t=t||!1;const r=l(e).closest(".wpforms-form"),a=p.amountTotalCalc(r),o=p.amountFormatSymbol(a);r.find(".wpforms-payment-total").each(function(){"hidden"===l(this).attr("type")||"text"===l(this).attr("type")?(l(this).val(o),"text"===l(this).attr("type")&&t&&r.data("validator")&&l(this).valid()):l(this).text(o)})},amountTotalCalc:function(e){var a=0,t=(l(".wpforms-payment-price",e).each(function(){var e=0,t=l(this),r=t.attr("type");t.closest(".wpforms-field-payment-single").hasClass("wpforms-conditional-hide")||("text"===r||"hidden"===r?e=t.val():"radio"!==r&&"checkbox"!==r||!t.is(":checked")?t.is("select")&&0'),e.get(0).submit())},formHasCaptcha:function(e){return!(!e||!e.length||"undefined"==typeof hcaptcha&&"undefined"==typeof grecaptcha&&"undefined"==typeof turnstile)&&(e=e.find(".wpforms-recaptcha-container"),Boolean(e.length))},resetFormRecaptcha:function(e){var t,r;p.formHasCaptcha(e)&&(t=(t=e.find(".wpforms-recaptcha-container")).hasClass("wpforms-is-hcaptcha")?hcaptcha:t.hasClass("wpforms-is-turnstile")?turnstile:grecaptcha,r=e.find(".wpforms-submit").get(0).recaptchaID,p.empty(r)&&0!==r&&(r=e.find(".g-recaptcha").data("recaptcha-id")),p.empty(r)&&0!==r||t.reset(r))},consoleLogAjaxError:function(e){e?console.error("WPForms AJAX submit error:\n%s",e):console.error("WPForms AJAX submit error")},displayFormAjaxErrors:function(e,t){"string"==typeof t?p.displayFormAjaxGeneralErrors(e,t):(t=t&&"errors"in t?t.errors:null,p.empty(t)||p.empty(t.general)&&p.empty(t.field)?p.consoleLogAjaxError():(p.empty(t.general)||p.displayFormAjaxGeneralErrors(e,t.general),p.empty(t.field)||p.displayFormAjaxFieldErrors(e,t.field)))},displayFormAjaxGeneralErrors:function(e,t){var r,a,o;e&&e.length&&(p.empty(t)||(r=e.data("formid"),p.isModernMarkupEnabled()&&e.attr({"aria-invalid":"true","aria-errormessage":""}),"string"==typeof t?(a=p.isModernMarkupEnabled()?' role="alert"':"",o=p.isModernMarkupEnabled()?`${wpforms_settings.formErrorMessagePrefix}`:"",e.find(".wpforms-submit-container").before(`
${o}${t}
`),p.setCurrentPage(e,{})):p.printGeneralErrors(e,t,r)))},printGeneralErrors:function(a,e,o){l.each(e,function(e,t){switch(e){case"header":a.prepend(t);break;case"footer":0===a.find(".wpforms-page-indicator").length?a.find(".wpforms-submit-container").before(t):a.find(".wpforms-page-1").append(t);break;case"recaptcha":a.find(".wpforms-recaptcha-container").append(t)}var r;p.isModernMarkupEnabled()&&(r=a.attr("aria-errormessage")||"",a.attr("aria-errormessage",r+` wpforms-${o}-${e}-error`))})},clearFormAjaxGeneralErrors:function(e){e.find(".wpforms-error-container").remove(),e.find("#wpforms-field_recaptcha-error").remove(),p.isModernMarkupEnabled()&&e.attr({"aria-invalid":"false","aria-errormessage":""})},displayFormAjaxFieldErrors:function(e,t){var r;e&&e.length&&(p.empty(t)||(r=e.data("validator"))&&(r.showErrors(t),p.formHasCaptcha(e)||r.focusInvalid()))},formSubmitAjax:function(a){var r,t,e;return a.length?(r=a.closest(".wpforms-container"),e=a.find(".wpforms-submit-spinner"),r.css("opacity",.6),e.show(),p.clearFormAjaxGeneralErrors(a),(e=new FormData(a.get(0))).append("action","wpforms_submit"),e.append("page_url",s.location.href),e.append("page_title",wpforms_settings.page_title),e.append("page_id",wpforms_settings.page_id),e.append("start_timestamp",a.data("timestamp")),e.append("end_timestamp",Date.now()),e={type:"post",dataType:"json",url:wpforms_settings.ajaxurl,data:e,cache:!1,contentType:!1,processData:!1,success:function(e){e?e.data&&e.data.action_required?a.trigger("wpformsAjaxSubmitActionRequired",e):e.success?(a.trigger("wpformsAjaxSubmitSuccess",e),e.data&&(e.data.redirect_url?(a.trigger("wpformsAjaxSubmitBeforeRedirect",e),s.location=e.data.redirect_url):e.data.confirmation&&(r.html(e.data.confirmation),t=r.find("div.wpforms-confirmation-scroll"),r.trigger("wpformsAjaxSubmitSuccessConfirmation",e),t.length)&&p.animateScrollTop(t.offset().top-100))):(p.resetFormRecaptcha(a),p.displayFormAjaxErrors(a,e.data),a.trigger("wpformsAjaxSubmitFailed",e),p.setCurrentPage(a,e.data)):p.consoleLogAjaxError()},error:function(e,t,r){p.consoleLogAjaxError(r),a.trigger("wpformsAjaxSubmitError",[e,t,r])},complete:function(e,t){e.responseJSON&&e.responseJSON.data&&(e.responseJSON.data.action_required||"success"===t&&e.responseJSON.data.redirect_url)||(p.restoreSubmitButton(a,r),a.trigger("wpformsAjaxSubmitCompleted",[e,t]))}},WPFormsUtils.triggerEvent(a,"wpformsAjaxBeforeSubmit",[a]).isDefaultPrevented()?(p.restoreSubmitButton(a,r),l.Deferred().reject()):l.ajax(e)):l.Deferred().reject()},setCurrentPage:function(a,o){if(0!==a.find(".wpforms-page-indicator").length){let r=[];a.find(".wpforms-page").each(function(e,t){if(1<=l(t).find(".wpforms-has-error").length)return r.push(l(t))});var n=0