functionn(){vart=this,i=window||global;e.extend(this,{isNativeEvent:function(e){returne.originalEvent&&e.originalEvent.isTrusted!==!1},fakeInputEvent:function(i){t.isNativeEvent(i)&&e(i.target).trigger("input")},misbehaves:function(i){t.isNativeEvent(i)&&(t.behavesOk(i),e(document).on("change.inputevent",i.data.selector,t.fakeInputEvent),t.fakeInputEvent(i))},behavesOk:function(i){t.isNativeEvent(i)&&e(document).off("input.inputevent",i.data.selector,t.behavesOk).off("change.inputevent",i.data.selector,t.misbehaves)},install:function(){if(!i.inputEventPatched){i.inputEventPatched="0.0.3";for(varn=["select",'input[type="checkbox"]','input[type="radio"]','input[type="file"]'],r=0;r<n.length;r++){vars=n[r];e(document).on("input.inputevent",s,{selector:s},t.behavesOk).on("change.inputevent",s,{selector:s},t.misbehaves)}}},uninstall:function(){deletei.inputEventPatched,e(document).off(".inputevent")}})}varr=1,s={},a={attr:function(e,t,i){varn,r,s,a=newRegExp("^"+t,"i");if("undefined"==typeofi)i={};elsefor(nini)i.hasOwnProperty(n)&&deletei[n];if("undefined"==typeofe||"undefined"==typeofe[0])returni;for(s=e[0].attributes,n=s.length;n--;)r=s[n],r&&r.specified&&a.test(r.name)&&(i[this.camelize(r.name.slice(t.length))]=this.deserializeValue(r.value));returni},checkAttr:function(e,t,i){returne.is("["+t+i+"]")},setAttr:function(e,t,i,n){e[0].setAttribute(this.dasherize(t+i),String(n))},generateID:function(){return""+r++},deserializeValue:function(t){vari;try{returnt?"true"==t||("false"==t?!1:"null"==t?null:isNaN(i=Number(t))?/^[\[\{]/.test(t)?e.parseJSON(t):t:i):t}catch(n){returnt}},camelize:function(e){returne.replace(/-+(.)?/g,function(e,t){returnt?t.toUpperCase():""})},dasherize:function(e){returne.replace(/::/g,"/").replace(/([A-Z]+)([A-Z][a-z])/g,"$1_$2").replace(/([a-z\d])([A-Z])/g,"$1_$2").replace(/_/g,"-").toLowerCase()},warn:function(){vare;window.console&&"function"==typeofwindow.console.warn&&(e=window.console).warn.apply(e,arguments)},warnOnce:function(e){s[e]||(s[e]=!0,this.warn.apply(this,arguments))},_resetWarnings:function(){s={}},trimString:function(e){returne.replace(/^\s+|\s+$/g,"")},namespaceEvents:function(t,i){returnt=this.trimString(t||"").split(/\s+/),t[0]?e.map(t,function(e){returne+"."+i}).join(" "):""},objectCreate:Object.create||function(){vare=function(){};returnfunction(t){if(arguments.length>1)throwError("Second argument not supported");if("object"!=typeoft)throwTypeError("Argument must be an object");e.prototype=t;vari=newe;returne.prototype=null,i}}()},o=a,l={namespace:"data-parsley-",inputs:"input, textarea, select",excluded:"input[type=button], input[type=submit], input[type=reset], input[type=hidden]",priorityEnabled:!0,multiple:null,group:null,uiEnabled:!0,validationThreshold:3,focus:"first",trigger:!1,triggerAfterFailure:"input",errorClass:"parsley-error",successClass:"parsley-success",classHandler:function(e){},errorsContainer:function(e){},errorsWrapper:'<ul class="parsley-errors-list"></ul>',errorTemplate:"<li></li>"},u=function(){this.__id__=o.generateID()};u.prototype={asyncSupport:!0,_pipeAccordingToValidationResult:function(){vart=this,i=function(){vari=e.Deferred();return!0!==t.validationResult&&i.reject(),i.resolve().promise()};return[i,i]},actualizeOptions:function(){returno.attr(this.$element,this.options.namespace,this.domOptions),this.parent&&this.parent.actualizeOptions&&this.parent.actualizeOptions(),this},_resetOptions:function(e){this.domOptions=o.objectCreate(this.parent.options),this.options=o.objectCreate(this.domOptions);for(vartine)e.hasOwnProperty(t)&&(this.options[t]=e[t]);this.actualizeOptions()},_listeners:null,on:function(e,t){this._listeners=this._listeners||{};vari=this._listeners[e]=this._listeners[e]||[];returni.push(t),this},subscribe:function(t,i){e.listenTo(this,t.toLowerCase(),i)},off:function(e,t){vari=this._listeners&&this._listeners[e];if(i)if(t)for(varn=i.length;n--;)i[n]===t&&i.splice(n,1);elsedeletethis._listeners[e];returnthis},unsubscribe:function(t,i){e.unsubscribeTo(this,t.toLowerCase())},trigger:fun
this.$element.is("select")&&"undefined"!=typeofthis.$element.attr("multiple"))returnthis.options.multiple=this.options.multiple||this.__id__,this.bind("parsleyFieldMultiple");if(!this.options.multiple)returno.warn("To be bound by Parsley, a radio, a checkbox and a multiple select input must have either a name or a multiple option.",this.$element),this;this.options.multiple=this.options.multiple.replace(/(:|\.|\[|\]|\{|\}|\$)/g,""),"undefined"!=typeoft&&e('input[name="'+t+'"]').each(function(t,i){e(i).is("input[type=radio], input[type=checkbox]")&&e(i).attr(n.options.namespace+"multiple",n.options.multiple)});for(varr=this._findRelated(),s=0;s<r.length;s++)if(i=e(r.get(s)).data("Parsley"),"undefined"!=typeofi){this.$element.data("ParsleyFieldMultiple")||i.addElement(this.$element);break}returnthis.bind("parsleyField",!0),i||this.bind("parsleyFieldMultiple")},bind:function(t,i){varn;switch(t){case"parsleyForm":n=e.extend(neww(this.$element,this.domOptions,this.options),newu,window.ParsleyExtend)._bindFields();break;case"parsleyField":n=e.extend(newE(this.$element,this.domOptions,this.options,this.parent),newu,window.ParsleyExtend);break;case"parsleyFieldMultiple":n=e.extend(newE(this.$element,this.domOptions,this.options,this.parent),newP,newu,window.ParsleyExtend)._init();break;default:thrownewError(t+"is not a supported Parsley type")}returnthis.options.multiple&&o.setAttr(this.$element,this.options.namespace,"multiple",this.options.multiple),"undefined"!=typeofi?(this.$element.data("ParsleyFieldMultiple",n),n):(this.$element.data("Parsley",n),n._actualizeTriggers(),n._trigger("init"),n)}};varM=e.fn.jquery.split(".");if(parseInt(M[0])<=1&&parseInt(M[1])<8)throw"The loaded version of jQuery is too old. Please upgrade to 1.8.x or better.";M.forEach||o.warn("Parsley requires ES5 to run properly. Please include https://github.com/es-shims/es5-shim");varO=e.extend(newu,{$element:e(document),actualizeOptions:null,_resetOptions:null,Factory:V,version:"2.3.11"});e.extend(E.prototype,y.Field,u.prototype),e.extend(w.prototype,y.Form,u.prototype),e.extend(V.prototype,u.prototype),e.fn.parsley=e.fn.psly=function(t){if(this.length>1){vari=[];returnthis.each(function(){i.push(e(this).parsley(t))}),i}returne(this).length?newV(this,t):voido.warn("You must bind Parsley on an existing element.")},"undefined"==typeofwindow.ParsleyExtend&&(window.ParsleyExtend={}),O.options=e.extend(o.objectCreate(l),window.ParsleyConfig),window.ParsleyConfig=O.options,window.Parsley=window.psly=O,window.ParsleyUtils=o;varA=window.Parsley._validatorRegistry=newm(window.ParsleyConfig.validators,window.ParsleyConfig.i18n);window.ParsleyValidator={},e.each("setLocale addCatalog addMessage addMessages getErrorMessage formatMessage addValidator updateValidator removeValidator".split(" "),function(t,i){window.Parsley[i]=e.proxy(A,i),window.ParsleyValidator[i]=function(){vare;returno.warnOnce("Accessing the method '"+i+"' through ParsleyValidator is deprecated. Simply call 'window.Parsley."+i+"(...)'"),(e=window.Parsley)[i].apply(e,arguments)}}),window.Parsley.UI=y,window.ParsleyUI={removeError:function(e,t,i){varn=!0!==i;returno.warnOnce("Accessing ParsleyUI is deprecated. Call 'removeError' on the instance directly. Please comment in issue 1073 as to your need to call this method."),e.removeError(t,{updateClass:n})},getErrorsMessages:function(e){returno.warnOnce("Accessing ParsleyUI is deprecated. Call 'getErrorsMessages' on the instance directly."),e.getErrorsMessages()}},e.each("addError updateError".split(" "),function(e,t){window.ParsleyUI[t]=function(e,i,n,r,s){vara=!0!==s;returno.warnOnce("Accessing ParsleyUI is deprecated. Call '"+t+"' on the instance directly. Please comment in issue 1073 as to your need to call this method."),e[t](i,{message:n,assert:r,updateClass:a})}}),!1!==window.ParsleyConfig.autoBind&&e(function(){e("[data-parsley-validate]").length&&e("[data-parsley-validate]").parsley()});varR=e({}),T=function(){o.warnOnce("Parsley's pubsub module is deprecated; use the 'on' and 'off'methodsonparsleyinst