!function(){"use strict";var t,a={n:function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return a.d(e,{a:e}),e},d:function(t,e){for(var n in e)a.o(e,n)&&!a.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:e[n]})},o:function(t,a){return Object.prototype.hasOwnProperty.call(t,a)}},e=jQuery;(t=a.n(e)())((function(){window.rankMathValidate={init:function(){this.extendLibrary(),this.watchFields()},extendLibrary:function(){t.validator.addMethod("regex",(function(a,e,n){var i=new RegExp("string"==typeof n?n:t(e).data("validate-pattern"));return this.optional(e)||i.test(a)}),rankMath.validationl10n.regexErrorDefault),t.extend(t.validator.messages,{required:rankMath.validationl10n.requiredErrorDefault,email:rankMath.validationl10n.emailErrorDefault,url:rankMath.validationl10n.urlErrorDefault}),t.extend(t.validator.defaults,{errorClass:"invalid"})},watchFields:function(){var a=this;t(".rank-math-validate-field").on("focus","input[type=text], input[type=password], input[type=url], input[type=email], input[type=number], textarea",(function(){a.fieldValidation(t(this).closest("form"))}))},fieldValidation:function(t){return"1"!==t.data("validated")&&(t.data("validated","1").validate(),!0)}},window.rankMathValidate.init()}))}();