PageSourceSearch

https://www.vijittresort.com/wp-content/themes/vijittresort/js/validate/jquery.validate.min.js

js vijittresort.com collected 2026-09-25 00:50:33 UTC 35,205 bytes, 600 lines download raw bytes

vendor: 34,610 bytes, lines 1-585
1/*! jQuery Validation Plugin - v1.16.0 - 12/2/2016
2 * http://jqueryvalidation.org/
3 * Copyright (c) 2016 Jörn Zaefferer; Licensed MIT */
4! function(a) {
5    "function" == typeof define && define.amd ? define(["jquery"], a) : "object" == typeof module && module.exports ? module.exports = a(require("jquery")) : a(jQuery)
6}(function(a) {
7    a.extend(a.fn, {
8        validate: function(b) {
9            if (!this.length) return void(b && b.debug && window.console && console.warn("Nothing selected, can't validate, returning nothing."));
10            var c = a.data(this[0], "validator");
11            return c ? c : (this.attr("novalidate", "novalidate"), c = new a.validator(b, this[0]), a.data(this[0], "validator", c), c.settings.onsubmit && (this.on("click.validate", ":submit", function(b) {
12                c.settings.submitHandler && (c.submitButton = b.target), a(this).hasClass("cancel") && (c.cancelSubmit = !0), void 0 !== a(this).attr("formnovalidate") && (c.cancelSubmit = !0)
13            }), this.on("submit.validate", function(b) {
14                function d() {
15                    var d, e;
16                    return !c.settings.submitHandler || (c.submitButton && (d = a("<input type='hidden'/>").attr("name", c.submitButton.name).val(a(c.submitButton).val()).appendTo(c.currentForm)), e = c.settings.submitHandler.call(c, c.currentForm, b), c.submitButton && d.remove(), void 0 !== e && e)
17                }
18                return c.settings.debug && b.preventDefault(), c.cancelSubmit ? (c.cancelSubmit = !1, d()) : c.form() ? c.pendingRequest ? (c.formSubmitted = !0, !1) : d() : (c.focusInvalid(), !1)
19            })), c)
20        },
21        valid: function() {
22            var b, c, d;
23            return a(this[0]).is("form") ? b = this.validate().form() : (d = [], b = !0, c = a(this[0].form).validate(), this.each(function() {
24                b = c.element(this) && b, b || (d = d.concat(c.errorList))
25            }), c.errorList = d), b
26        },
27        rules: function(b, c) {
28            var d, e, f, g, h, i, j = this[0];
29            if (null != j && null != j.form) {
30                if (b) switch (d = a.data(j.form, "validator").settings, e = d.rules, f = a.validator.staticRules(j), b) {
31                    case "add":
32                        a.extend(f, a.validator.normalizeRule(c)), delete f.messages, e[j.name] = f, c.messages && (d.messages[j.name] = a.extend(d.messages[j.name], c.messages));
33                        break;
34                    case "remove":
35                        return c ? (i = {}, a.each(c.split(/\s/), function(b, c) {
36                            i[c] = f[c], delete f[c], "required" === c && a(j).removeAttr("aria-required")
37                        }), i) : (delete e[j.name], f)
38                }
39                return g = a.validator.normalizeRules(a.extend({}, a.validator.classRules(j), a.validator.attributeRules(j), a.validator.dataRules(j), a.validator.staticRules(j)), j), g.required && (h = g.required, delete g.required, g = a.extend({
40                    required: h
41                }, g), a(j).attr("aria-required", "true")), g.remote && (h = g.remote, delete g.remote, g = a.extend(g, {
42                    remote: h
43                })), g
44            }
45        }
46    }), a.extend(a.expr.pseudos || a.expr[":"], {
47        blank: function(b) {
48            return !a.trim("" + a(b).val())
49        },
50        filled: function(b) {
51            var c = a(b).val();
52            return null !== c && !!a.trim("" + c)
53        },
54        unchecked: function(b) {
55            return !a(b).prop("checked")
56        }
57    }), a.validator = function(b, c) {
58        this.settings = a.extend(!0, {}, a.validator.defaults, b), this.currentForm = c, this.init()
59    }, a.validator.format = function(b, c) {
60        return 1 === arguments.length ? function() {
61            var c = a.makeArray(arguments);
62            return c.unshift(b), a.validator.format.apply(this, c)
63        } : void 0 === c ? b : (arguments.length > 2 && c.constructor !== Array && (c = a.makeArray(arguments).slice(1)), c.constructor !== Array && (c = [c]), a.each(c, function(a, c) {
64            b = b.replace(new RegExp("\\{" + a + "\\}", "g"), function() {
65                return c
66            })
67        }), b)
68    }, a.extend(a.validator, {
69        defaults: {
70            messages: {},
71            groups: {},
72            rules: {},
73            errorClass: "error",
74            pendingClass: "pending",
75            validClass: "valid",
76            errorElement: "label",
77            focusCleanup: !1,
78            focusInvalid: !0,
79            errorContainer: a([]),
80            errorLabelContainer: a([]),
81            onsubmit: !0,
82            ignore: ":hidden",
83            ignoreTitle: !1,
84            onfocusin: function(a) {
85                this.lastActive = a, this.settings.focusCleanup && (this.settings.unhighlight && this.settings.unhighlight.call(this, a, this.settings.errorClass, this.settings.validClass), this.hideThese(this.errorsFor(a)))
86            },
87            onfocusout: function(a) {
88                this.checkable(a) || !(a.name in this.submitted) && this.optional(a) || this.element(a)
89            },
90            onkeyup: function(b, c) {
91                var d = [16, 17, 18, 20, 35, 36, 37, 38, 39, 40, 45, 144, 225];
92                9 === c.which && "" === this.elementValue(b) || a.inArray(c.keyCode, d) !== -1 || (b.name in this.submitted || b.name in this.invalid) && this.element(b)
93            },
94            onclick: function(a) {
95                a.name in this.submitted ? this.element(a) : a.parentNode.name in this.submitted && this.element(a.parentNode)
96            },
97            highlight: function(b, c, d) {
98                "radio" === b.type ? this.findByName(b.name).addClass(c).removeClass(d) : a(b).addClass(c).removeClass(d)
99            },
100            unhighlight: function(b, c, d) {
101                "radio" === b.type ? this.findByName(b.name).removeClass(c).addClass(d) : a(b).removeClass(c).addClass(d)
102            }
103        },
104        setDefaults: function(b) {
105            a.extend(a.validator.defaults, b)
106        },
107        messages: {
108            required: "This field is required.",
109            remote: "Please fix this field.",
110            email: "Please enter a valid email address.",
111            url: "Please enter a valid URL.",
112            date: "Please enter a valid date.",
113            dateISO: "Please enter a valid date (ISO).",
114            number: "Please enter a valid number.",
115            digits: "Please enter only digits.",
116            equalTo: "Please enter the same value again.",
117            maxlength: a.validator.format("Please enter no more than {0} characters."),
118            minlength: a.validator.format("Please enter at least {0} characters."),
119            rangelength: a.validator.format("Please enter a value between {0} and {1} characters long."),
120            range: a.validator.format("Please enter a value between {0} and {1}."),
121            max: a.validator.format("Please enter a value less than or equal to {0}."),
122            min: a.validator.format("Please enter a value greater than or equal to {0}."),
123            step: a.validator.format("Please enter a multiple of {0}.")
124        },
125        autoCreateRanges: !1,
126        prototype: {
127            init: function() {
128                function b(b) {
129                    !this.form && this.hasAttribute("contenteditable") && (this.form = a(this).closest("form")[0]);
130                    var c = a.data(this.form, "validator"),
131                        d = "on" + b.type.replace(/^validate/, ""),
132                        e = c.settings;
133                    e[d] && !a(this).is(e.ignore) && e[d].call(c, this, b)
134                }
135                this.labelContainer = a(this.settings.errorLabelContainer), this.errorContext = this.labelContainer.length && this.labelContainer || a(this.currentForm), this.containers = a(this.settings.errorContainer).add(this.settings.errorLabelContainer), this.submitted = {}, this.valueCache = {}, this.pendingRequest = 0, this.pending = {}, this.invalid = {}, this.reset();
136                var c, d = this.groups = {};
137                a.each(this.settings.groups, function(b, c) {
138                    "string" == typeof c && (c = c.split(/\s/)), a.each(c, function(a, c) {
139                        d[c] = b
140                    })
141                }), c = this.settings.rules, a.each(c, function(b, d) {
142                    c[b] = a.validator.normalizeRule(d)
143                }), a(this.currentForm).on("focusin.validate focusout.validate keyup.validate", ":text, [type='password'], [type='file'], select, textarea, [type='number'], [type='search'], [type='tel'], [type='url'], [type='email'], [type='datetime'], [type='date'], [type='month'], [type='week'], [type='time'], [type='datetime-local'], [type='range'], [type='color'], [type='radio'], [type='checkbox'], [contenteditable], [type='button']", b).on("click.validate", "select, option, [type='radio'], [type='checkbox']", b), this.settings.invalidHandler && a(this.currentForm).on("invalid-form.validate", this.settings.invalidHandler), a(this.currentForm).find("[required], [data-rule-required], .required").attr("aria-required", "true")
144            },
145            form: function() {
146                return this.checkForm(), a.extend(this.submitted, this.errorMap), this.invalid = a.extend({}, this.errorMap), this.valid() || a(this.currentForm).triggerHandler("invalid-form", [this]), this.showErrors(), this.valid()
147            },
148            checkForm: function() {
149                this.prepareForm();
150                for (var a = 0, b = this.currentElements = this.elements(); b[a]; a++) this.check(b[a]);
151                return this.valid()
152            },
153            element: function(b) {
154                var c, d, e = this.clean(b),
155                    f = this.validationTargetFor(e),
156                    g = this,
157                    h = !0;
158                return void 0 === f ? delete this.invalid[e.name] : (this.prepareElement(f), this.currentElements = a(f), d = this.groups[f.name], d && a.each(this.groups, function(a, b) {
159                    b === d && a !== f.name && (e = g.validationTargetFor(g.clean(g.findByName(a))), e && e.name in g.invalid && (g.currentElements.push(e), h = g.check(e) && h))
160                }), c = this.check(f) !== !1, h = h && c, c ? this.invalid[f.name] = !1 : this.invalid[f.name] = !0, this.numberOfInvalids() || (this.toHide = this.toHide.add(this.containers)), this.showErrors(), a(b).attr("aria-invalid", !c)), h
161            },
162            showErrors: function(b) {
163                if (b) {
164                    var c = this;
165                    a.extend(this.errorMap, b), this.errorList = a.map(this.errorMap, function(a, b) {
166                        return {
167                            message: a,
168                            element: c.findByName(b)[0]
169                        }
170                    }), this.successList = a.grep(this.successList, function(a) {
171                        return !(a.name in b)
172                    })
173                }
174                this.settings.showErrors ? this.settings.showErrors.call(this, this.errorMap, this.errorList) : this.defaultShowErrors()
175            },
176            resetForm: function() {
177                a.fn.resetForm && a(this.currentForm).resetForm(), this.invalid = {}, this.submitted = {}, this.prepareForm(), this.hideErrors();
178                var b = this.elements().removeData("previousValue").removeAttr("aria-invalid");
179                this.resetElements(b)
180            },
181            resetElements: function(a) {
182                var b;
183                if (this.settings.unhighlight)
184                    for (b = 0; a[b]; b++) this.settings.unhighlight.call(this, a[b], this.settings.errorClass, ""), this.findByName(a[b].name).removeClass(this.settings.validClass);
185                else a.removeClass(this.settings.errorClass).removeClass(this.settings.validClass)
186            },
187            numberOfInvalids: function() {
188                return this.objectLength(this.invalid)
189            },
190            objectLength: function(a) {
191                var b, c = 0;
192                for (b in a) a[b] && c++;
193                return c
194            },
195            hideErrors: function() {
196                this.hideThese(this.toHide)
197            },
198            hideThese: function(a) {
199                a.not(this.containers).text(""), this.addWrapper(a).hide()
200            },
201            valid: function() {
202                return 0 === this.size()
203            },
204            size: function() {
205                return this.errorList.length
206            },
207            focusInvalid: function() {
208                if (this.settings.focusInvalid) try {
209                    a(this.findLastActive() || this.errorList.length && this.errorList[0].element || []).filter(":visible").focus().trigger("focusin")
210                } catch (b) {}
211            },
212            findLastActive: function() {
213                var b = this.lastActive;
214                return b && 1 === a.grep(this.errorList, function(a) {
215                    return a.element.name === b.name
216                }).length && b
217            },
218            elements: function() {
219                var b = this,
220                    c = {};
221                return a(this.currentForm).find("input, select, textarea, [contenteditable]").not(":submit, :reset, :image, :disabled").not(this.settings.ignore).filter(function() {
222                    var d = this.name || a(this).attr("name");
223                    return !d && b.settings.debug && window.console && console.error("%o has no name assigned", this), this.hasAttribute("contenteditable") && (this.form = a(this).closest("form")[0]), !(d in c || !b.objectLength(a(this).rules())) && (c[d] = !0, !0)
224                })
225            },
226            clean: function(b) {
227                return a(b)[0]
228            },
229            errors: function() {
230                var b = this.settings.errorClass.split(" ").join(".");
231                return a(this.settings.errorElement + "." + b, this.errorContext)
232            },
233            resetInternals: function() {
234                this.successList = [], this.errorList = [], this.errorMap = {}, this.toShow = a([]), this.toHide = a([])
235            },
236            reset: function() {
237                this.resetInternals(), this.currentElements = a([])
238            },
239            prepareForm: function() {
240                this.reset(), this.toHide = this.errors().add(this.containers)
241            },
242            prepareElement: function(a) {
243                this.reset(), this.toHide = this.errorsFor(a)
244            },
245            elementValue: function(b) {
246                var c, d, e = a(b),
247                    f = b.type;
248                return "radio" === f || "checkbox" === f ? this.findByName(b.name).filter(":checked").val() : "number" === f && "undefined" != typeof b.validity ? b.validity.badInput ? "NaN" : e.val() : (c = b.hasAttribute("contenteditable") ? e.text() : e.val(), "file" === f ? "C:\\fakepath\\" === c.substr(0, 12) ? c.substr(12) : (d = c.lastIndexOf("/"), d >= 0 ? c.substr(d + 1) : (d = c.lastIndexOf("\\"), d >= 0 ? c.substr(d + 1) : c)) : "string" == typeof c ? c.replace(/\r/g, "") : c)
249            },
250            check: function(b) {
251                b = this.validationTargetFor(this.clean(b));
252                var c, d, e, f = a(b).rules(),
253                    g = a.map(f, function(a, b) {
254                        return b
255                    }).length,
256                    h = !1,
257                    i = this.elementValue(b);
258                if ("function" == typeof f.normalizer) {
259                    if (i = f.normalizer.call(b, i), "string" != typeof i) throw new TypeError("The normalizer should return a string value.");
260                    delete f.normalizer
261                }
262                for (d in f) {
263                    e = {
264                        method: d,
265                        parameters: f[d]
266                    };
267                    try {
268                        if (c = a.validator.methods[d].call(this, i, b, e.parameters), "dependency-mismatch" === c && 1 === g) {
269                            h = !0;
270                            continue
271                        }
272                        if (h = !1, "pending" === c) return void(this.toHide = this.toHide.not(this.errorsFor(b)));
273                        if (!c) return this.formatAndAdd(b, e), !1
274                    } catch (j) {
275                        throw this.settings.debug && window.console && console.log("Exception occurred when checking element " + b.id + ", check the '" + e.method + "' method.", j), j instanceof TypeError && (j.message += ".  Exception occurred when checking element " + b.id + ", check the '" + e.method + "' method."), j
276                    }
277                }
278                if (!h) return this.objectLength(f) && this.successList.push(b), !0
279            },
280            customDataMessage: function(b, c) {
281                return a(b).data("msg" + c.charAt(0).toUpperCase() + c.substring(1).toLowerCase()) || a(b).data("msg")
282            },
283            customMessage: function(a, b) {
284                var c = this.settings.messages[a];
285                return c && (c.constructor === String ? c : c[b])
286            },
287            findDefined: function() {
288                for (var a = 0; a < arguments.length; a++)
289                    if (void 0 !== arguments[a]) return arguments[a]
290            },
291            defaultMessage: function(b, c) {
292                "string" == typeof c && (c = {
293                    method: c
294                });
295                var d = this.findDefined(this.customMessage(b.name, c.method), this.customDataMessage(b, c.method), !this.settings.ignoreTitle && b.title || void 0, a.validator.messages[c.method], "<strong>Warning: No message defined for " + b.name + "</strong>"),
296                    e = /\$?\{(\d+)\}/g;
297                return "function" == typeof d ? d = d.call(this, c.parameters, b) : e.test(d) && (d = a.validator.format(d.replace(e, "{$1}"), c.parameters)), d
298            },
299            formatAndAdd: function(a, b) {
300                var c = this.defaultMessage(a, b);
301                this.errorList.push({
302                    message: c,
303                    element: a,
304                    method: b.method
305                }), this.errorMap[a.name] = c, this.submitted[a.name] = c
306            },
307            addWrapper: function(a) {
308                return this.settings.wrapper && (a = a.add(a.parent(this.settings.wrapper))), a
309            },
310            defaultShowErrors: function() {
311                var a, b, c;
312                for (a = 0; this.errorList[a]; a++) c = this.errorList[a], this.settings.highlight && this.settings.highlight.call(this, c.element, this.settings.errorClass, this.settings.validClass), this.showLabel(c.element, c.message);
313                if (this.errorList.length && (this.toShow = this.toShow.add(this.containers)), this.settings.success)
314                    for (a = 0; this.successList[a]; a++) this.showLabel(this.successList[a]);
315                if (this.settings.unhighlight)
316                    for (a = 0, b = this.validElements(); b[a]; a++) this.settings.unhighlight.call(this, b[a], this.settings.errorClass, this.settings.validClass);
317                this.toHide = this.toHide.not(this.toShow), this.hideErrors(), this.addWrapper(this.toShow).show()
318            },
319            validElements: function() {
320                return this.currentElements.not(this.invalidElements())
321            },
322            invalidElements: function() {
323                return a(this.errorList).map(function() {
324                    return this.element
325                })
326            },
327            showLabel: function(b, c) {
328                var d, e, f, g, h = this.errorsFor(b),
329                    i = this.idOrName(b),
330                    j = a(b).attr("aria-describedby");
331                h.length ? (h.removeClass(this.settings.validClass).addClass(this.settings.errorClass), h.html(c)) : (h = a("<" + this.settings.errorElement + ">").attr("id", i + "-error").addClass(this.settings.errorClass).html(c || ""), d = h, this.settings.wrapper && (d = h.hide().show().wrap("<" + this.settings.wrapper + "/>").parent()), this.labelContainer.length ? this.labelContainer.append(d) : this.settings.errorPlacement ? this.settings.errorPlacement.call(this, d, a(b)) : d.insertAfter(b), h.is("label") ? h.attr("for", i) : 0 === h.parents("label[for='" + this.escapeCssMeta(i) + "']").length && (f = h.attr("id"), j ? j.match(new RegExp("\\b" + this.escapeCssMeta(f) + "\\b")) || (j += " " + f) : j = f, a(b).attr("aria-describedby", j), e = this.groups[b.name], e && (g = this, a.each(g.groups, function(b, c) {
332                    c === e && a("[name='" + g.escapeCssMeta(b) + "']", g.currentForm).attr("aria-describedby", h.attr("id"))
333                })))), !c && this.settings.success && (h.text(""), "string" == typeof this.settings.success ? h.addClass(this.settings.success) : this.settings.success(h, b)), this.toShow = this.toShow.add(h)
334            },
335            errorsFor: function(b) {
336                var c = this.escapeCssMeta(this.idOrName(b)),
337                    d = a(b).attr("aria-describedby"),
338                    e = "label[for='" + c + "'], label[for='" + c + "'] *";
339                return d && (e = e + ", #" + this.escapeCssMeta(d).replace(/\s+/g, ", #")), this.errors().filter(e)
340            },
341            escapeCssMeta: function(a) {
342                return a.replace(/([\\!"#$%&'()*+,./:;<=>?@\[\]^`{|}~])/g, "\\$1")
343            },
344            idOrName: function(a) {
345                return this.groups[a.name] || (this.checkable(a) ? a.name : a.id || a.name)
346            },
347            validationTargetFor: function(b) {
348                return this.checkable(b) && (b = this.findByName(b.name)), a(b).not(this.settings.ignore)[0]
349            },
350            checkable: function(a) {
351                return /radio|checkbox/i.test(a.type)
352            },
353            findByName: function(b) {
354                return a(this.currentForm).find("[name='" + this.escapeCssMeta(b) + "']")
355            },
356            getLength: function(b, c) {
357                switch (c.nodeName.toLowerCase()) {
358                    case "select":
359                        return a("option:selected", c).length;
360                    case "input":
361                        if (this.checkable(c)) return this.findByName(c.name).filter(":checked").length
362                }
363                return b.length
364            },
365            depend: function(a, b) {
366                return !this.dependTypes[typeof a] || this.dependTypes[typeof a](a, b)
367            },
368            dependTypes: {
369                "boolean": function(a) {
370                    return a
371                },
372                string: function(b, c) {
373                    return !!a(b, c.form).length
374                },
375                "function": function(a, b) {
376                    return a(b)
377                }
378            },
379            optional: function(b) {
380                var c = this.elementValue(b);
381                return !a.validator.methods.required.call(this, c, b) && "dependency-mismatch"
382            },
383            startRequest: function(b) {
384                this.pending[b.name] || (this.pendingRequest++, a(b).addClass(this.settings.pendingClass), this.pending[b.name] = !0)
385            },
386            stopRequest: function(b, c) {
387                this.pendingRequest--, this.pendingRequest < 0 && (this.pendingRequest = 0), delete this.pending[b.name], a(b).removeClass(this.settings.pendingClass), c && 0 === this.pendingRequest && this.formSubmitted && this.form() ? (a(this.currentForm).submit(), this.formSubmitted = !1) : !c && 0 === this.pendingRequest && this.formSubmitted && (a(this.currentForm).triggerHandler("invalid-form", [this]), this.formSubmitted = !1)
388            },
389            previousValue: function(b, c) {
390                return c = "string" == typeof c && c || "remote", a.data(b, "previousValue") || a.data(b, "previousValue", {
391                    old: null,
392                    valid: !0,
393                    message: this.defaultMessage(b, {
394                        method: c
395                    })
396                })
397            },
398            destroy: function() {
399                this.resetForm(), a(this.currentForm).off(".validate").removeData("validator").find(".validate-equalTo-blur").off(".validate-equalTo").removeClass("validate-equalTo-blur")
400            }
401        },
402        classRuleSettings: {
403            required: {
404                required: !0
405            },
406            email: {
407                email: !0
408            },
409            url: {
410                url: !0
411            },
412            date: {
413                date: !0
414            },
415            dateISO: {
416                dateISO: !0
417            },
418            number: {
419                number: !0
420            },
421            digits: {
422                digits: !0
423            },
424            creditcard: {
425                creditcard: !0
426            }
427        },
428        addClassRules: function(b, c) {
429            b.constructor === String ? this.classRuleSettings[b] = c : a.extend(this.classRuleSettings, b)
430        },
431        classRules: function(b) {
432            var c = {},
433                d = a(b).attr("class");
434            return d && a.each(d.split(" "), function() {
435                this in a.validator.classRuleSettings && a.extend(c, a.validator.classRuleSettings[this])
436            }), c
437        },
438        normalizeAttributeRule: function(a, b, c, d) {
439            /min|max|step/.test(c) && (null === b || /number|range|text/.test(b)) && (d = Number(d), isNaN(d) && (d = void 0)), d || 0 === d ? a[c] = d : b === c && "range" !== b && (a[c] = !0)
440        },
441        attributeRules: function(b) {
442            var c, d, e = {},
443                f = a(b),
444                g = b.getAttribute("type");
445            for (c in a.validator.methods) "required" === c ? (d = b.getAttribute(c), "" === d && (d = !0), d = !!d) : d = f.attr(c), this.normalizeAttributeRule(e, g, c, d);
446            return e.maxlength && /-1|2147483647|524288/.test(e.maxlength) && delete e.maxlength, e
447        },
448        dataRules: function(b) {
449            var c, d, e = {},
450                f = a(b),
451                g = b.getAttribute("type");
452            for (c in a.validator.methods) d = f.data("rule" + c.charAt(0).toUpperCase() + c.substring(1).toLowerCase()), this.normalizeAttributeRule(e, g, c, d);
453            return e
454        },
455        staticRules: function(b) {
456            var c = {},
457                d = a.data(b.form, "validator");
458            return d.settings.rules && (c = a.validator.normalizeRule(d.settings.rules[b.name]) || {}), c
459        },
460        normalizeRules: function(b, c) {
461            return a.each(b, function(d, e) {
462                if (e === !1) return void delete b[d];
463                if (e.param || e.depends) {
464                    var f = !0;
465                    switch (typeof e.depends) {
466                        case "string":
467                            f = !!a(e.depends, c.form).length;
468                            break;
469                        case "function":
470                            f = e.depends.call(c, c)
471                    }
472                    f ? b[d] = void 0 === e.param || e.param : (a.data(c.form, "validator").resetElements(a(c)), delete b[d])
473                }
474            }), a.each(b, function(d, e) {
475                b[d] = a.isFunction(e) && "normalizer" !== d ? e(c) : e
476            }), a.each(["minlength", "maxlength"], function() {
477                b[this] && (b[this] = Number(b[this]))
478            }), a.each(["rangelength", "range"], function() {
479                var c;
480                b[this] && (a.isArray(b[this]) ? b[this] = [Number(b[this][0]), Number(b[this][1])] : "string" == typeof b[this] && (c = b[this].replace(/[\[\]]/g, "").split(/[\s,]+/), b[this] = [Number(c[0]), Number(c[1])]))
481            }), a.validator.autoCreateRanges && (null != b.min && null != b.max && (b.range = [b.min, b.max], delete b.min, delete b.max), null != b.minlength && null != b.maxlength && (b.rangelength = [b.minlength, b.maxlength], delete b.minlength, delete b.maxlength)), b
482        },
483        normalizeRule: function(b) {
484            if ("string" == typeof b) {
485                var c = {};
486                a.each(b.split(/\s/), function() {
487                    c[this] = !0
488                }), b = c
489            }
490            return b
491        },
492        addMethod: function(b, c, d) {
493            a.validator.methods[b] = c, a.validator.messages[b] = void 0 !== d ? d : a.validator.messages[b], c.length < 3 && a.validator.addClassRules(b, a.validator.normalizeRule(b))
494        },
495        methods: {
496            required: function(b, c, d) {
497                if (!this.depend(d, c)) return "dependency-mismatch";
498                if ("select" === c.nodeName.toLowerCase()) {
499                    var e = a(c).val();
500                    return e && e.length > 0
501                }
502                return this.checkable(c) ? this.getLength(b, c) > 0 : b.length > 0
503            },
504            email: function(a, b) {
505                return this.optional(b) || /^[a-zA-Z0-9.!#$%&'*+\/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/.test(a)
506            },
507            url: function(a, b) {
508                return this.optional(b) || /^(?:(?:(?:https?|ftp):)?\/\/)(?:\S+(?::\S*)?@)?(?:(?!(?:10|127)(?:\.\d{1,3}){3})(?!(?:169\.254|192\.168)(?:\.\d{1,3}){2})(?!172\.(?:1[6-9]|2\d|3[0-1])(?:\.\d{1,3}){2})(?:[1-9]\d?|1\d\d|2[01]\d|22[0-3])(?:\.(?:1?\d{1,2}|2[0-4]\d|25[0-5])){2}(?:\.(?:[1-9]\d?|1\d\d|2[0-4]\d|25[0-4]))|(?:(?:[a-z\u00a1-\uffff0-9]-*)*[a-z\u00a1-\uffff0-9]+)(?:\.(?:[a-z\u00a1-\uffff0-9]-*)*[a-z\u00a1-\uffff0-9]+)*(?:\.(?:[a-z\u00a1-\uffff]{2,})).?)(?::\d{2,5})?(?:[/?#]\S*)?$/i.test(a)
509            },
510            date: function(a, b) {
511                return this.optional(b) || !/Invalid|NaN/.test(new Date(a).toString())
512            },
513            dateISO: function(a, b) {
514                return this.optional(b) || /^\d{4}[\/\-](0?[1-9]|1[012])[\/\-](0?[1-9]|[12][0-9]|3[01])$/.test(a)
515            },
516            number: function(a, b) {
517                return this.optional(b) || /^(?:-?\d+|-?\d{1,3}(?:,\d{3})+)?(?:\.\d+)?$/.test(a)
518            },
519            digits: function(a, b) {
520                return this.optional(b) || /^\d+$/.test(a)
521            },
522            minlength: function(b, c, d) {
523                var e = a.isArray(b) ? b.length : this.getLength(b, c);
524                return this.optional(c) || e >= d
525            },
526            maxlength: function(b, c, d) {
527                var e = a.isArray(b) ? b.length : this.getLength(b, c);
528                return this.optional(c) || e <= d
529            },
530            rangelength: function(b, c, d) {
531                var e = a.isArray(b) ? b.length : this.getLength(b, c);
532                return this.optional(c) || e >= d[0] && e <= d[1]
533            },
534            min: function(a, b, c) {
535                return this.optional(b) || a >= c
536            },
537            max: function(a, b, c) {
538                return this.optional(b) || a <= c
539            },
540            range: function(a, b, c) {
541                return this.optional(b) || a >= c[0] && a <= c[1]
542            },
543            step: function(b, c, d) {
544                var e, f = a(c).attr("type"),
545                    g = "Step attribute on input type " + f + " is not supported.",
546                    h = ["text", "number", "range"],
547                    i = new RegExp("\\b" + f + "\\b"),
548                    j = f && !i.test(h.join()),
549                    k = function(a) {
550                        var b = ("" + a).match(/(?:\.(\d+))?$/);
551                        return b && b[1] ? b[1].length : 0
552                    },
553                    l = function(a) {
554                        return Math.round(a * Math.pow(10, e))
555                    },
556                    m = !0;
557                if (j) throw new Error(g);
558                return e = k(d), (k(b) > e || l(b) % l(d) !== 0) && (m = !1), this.optional(c) || m
559            },
560            equalTo: function(b, c, d) {
561                var e = a(d);
562                return this.settings.onfocusout && e.not(".validate-equalTo-blur").length && e.addClass("validate-equalTo-blur").on("blur.validate-equalTo", function() {
563                    a(c).valid()
564                }), b === e.val()
565            },
566            remote: function(b, c, d, e) {
567                if (this.optional(c)) return "dependency-mismatch";
568                e = "string" == typeof e && e || "remote";
569                var f, g, h, i = this.previousValue(c, e);
570                return this.settings.messages[c.name] || (this.settings.messages[c.name] = {}), i.originalMessage = i.originalMessage || this.settings.messages[c.name][e], this.settings.messages[c.name][e] = i.message, d = "string" == typeof d && {
571                    url: d
572                } || d, h = a.param(a.extend({
573                    data: b
574                }, d.data)), i.old === h ? i.valid : (i.old = h, f = this, this.startRequest(c), g = {}, g[c.name] = b, a.ajax(a.extend(!0, {
575                    mode: "abort",
576                    port: "validate" + c.name,
577                    dataType: "json",
578                    data: g,
579                    context: f.currentForm,
580                    success: function(a) {
581                        var d, g, h, j = a === !0 || "true" === a;
582                        f.settings.messages[c.name][e] = i.originalMessage, j ? (h = f.formSubmitted, f.resetInternals(), f.toHide = f.errorsFor(c), f.formSubmitted = h, f.successList.push(c), f.invalid[c.name] = !1, f.showErrors()) : (d = {}, g = a || f.defaultMessage(c, {
583                            method: e,
584                            parameters: b
585                        }), d[c.name] = i.message = g, f.invalid[c.name] = !0, f.showErrors(d)), i.val
585id = j, f.stopRequest(c, j)
586                    }
587                }, d)), "pending")
588            }
589        }
590    });
591    var b, c = {};
592    return a.ajaxPrefilter ? a.ajaxPrefilter(function(a, b, d) {
593        var e = a.port;
594        "abort" === a.mode && (c[e] && c[e].abort(), c[e] = d)
595    }) : (b = a.ajax, a.ajax = function(d) {
596        var e = ("mode" in d ? d : a.ajaxSettings).mode,
597            f = ("port" in d ? d : a.ajaxSettings).port;
598        return "abort" === e ? (c[f] && c[f].abort(), c[f] = b.apply(this, arguments), c[f]) : b.apply(this, arguments)
599    }), a
600});

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.