(function(e,t){"function"==typeof define&&define.amd?define(["jquery"],function(e){return t(e)}):"object"==typeof exports?module.exports=t(require("jquery")):t(jQuery)})(this,function(t){var e=Math.floor,i=Math.ceil,o=Math.max,n=Math.round;function s(e){this.$container,this.constraints=null,this.__$tooltip,this.__init(e)}function r(e,o){var n=!0;return t.each(e,function(t){if(void 0===o[t]||e[t]!==o[t])return n=!1,!1}),n}function a(e){var i=e.attr("id"),o=i?p.window.document.getElementById(i):null;return o?o===e[0]:t.contains(p.window.document.body,e[0])}var l={animation:"fade",animationDuration:350,content:null,contentAsHTML:!1,contentCloning:!1,debug:!0,delay:300,delayTouch:[300,500],functionInit:null,functionBefore:null,functionReady:null,functionAfter:null,functionFormat:null,IEmin:6,interactive:!1,multiple:!1,parent:null,plugins:["sideTip"],repositionOnScroll:!1,restoration:"none",selfDestruction:!0,theme:[],timer:0,trackerInterval:500,trackOrigin:!1,trackTooltip:!1,trigger:"hover",triggerClose:{click:!1,mouseleave:!1,originClick:!1,scroll:!1,tap:!1,touchleave:!1},triggerOpen:{click:!1,mouseenter:!1,tap:!1,touchstart:!1},updateAnimation:"rotate",zIndex:9999999},d="undefined"==typeof window?null:window,p={hasTouchCapability:!!(d&&("ontouchstart"in d||d.DocumentTouch&&d.document instanceof d.DocumentTouch||d.navigator.maxTouchPoints)),hasTransitions:function(){if(!d)return!1;var e=d.document.body||d.document.documentElement,t=e.style,o="transition",n=["Moz","Webkit","Khtml","O","ms"];if("string"==typeof t[o])return!0;o=o.charAt(0).toUpperCase()+o.substr(1);for(var s=0;s<n.length;s++)if("string"==typeof t[n[s]+o])return!0;return!1}(),IE:!1,semVer:"4.2.8",window:d},_=function(){this.__$emitterPrivate=t({}),this.__$emitterPublic=t({}),this.__instancesLatestArr=[],this.__plugins={},this._env=p};_.prototype={__bridge:function(e,i,o){if(!i[o]){var n=function(){};n.prototype=e;var s=new n;s.__init&&s.__init(i),t.each(e,function(e){0!=e.indexOf("__")&&(i[e]?l.debug&&console.log("The "+e+" method of the "+o+" plugin conflicts with another plugin or native methods"):(i[e]=function(){return s[e].apply(s,Array.prototype.slice.apply(arguments))},i[e].bridged=s))}),i[o]=s}return this},__setWindow:function(e){return p.window=e,this},_getRuler:function(e){return new s(e)},_off:function(){return this.__$emitterPrivate.off.apply(this.__$emitterPrivate,Array.prototype.slice.apply(arguments)),this},_on:function(){return this.__$emitterPrivate.on.apply(this.__$emitterPrivate,Array.prototype.slice.apply(arguments)),this},_one:function(){return this.__$emitterPrivate.one.apply(this.__$emitterPrivate,Array.prototype.slice.apply(arguments)),this},_plugin:function(e){var i=this;if("string"==typeof e){var o=e,n=null;return 0<o.indexOf(".")?n=i.__plugins[o]:t.each(i.__plugins,function(e,t){if(t.name.substring(t.name.length-o.length-1)=="."+o)return n=t,!1}),n}if(0>e.name.indexOf("."))throw new Error("Plugins must be namespaced");return i.__plugins[e.name]=e,e.core&&i.__bridge(e.core,i,e.name),this},_trigger:function(){var e=Array.prototype.slice.apply(arguments);return"string"==typeof e[0]&&(e[0]={type:e[0]}),this.__$emitterPrivate.trigger.apply(this.__$emitterPrivate,e),this.__$emitterPublic.trigger.apply(this.__$emitterPublic,e),this},instances:function(e){var o=[];return t(e||".tooltipstered").each(function(){var e=t(this),i=e.data("tooltipster-ns");i&&t.each(i,function(t,i){o.push(e.data(i))})}),o},instancesLatest:function(){return this.__instancesLatestArr},off:function(){return this.__$emitterPublic.off.apply(this.__$emitterPublic,Array.prototype.slice.apply(arguments)),this},on:function(){return this.__$emitterPublic.on.apply(this.__$emitterPublic,Array.prototype.slice.apply(arguments)),this},one:function(){return this.__$emitterPublic.one.apply(this.__$emitterPublic,Array.prototype.slice.apply(arguments)),this},origins:function(e){var i=e?e+" ":"";return t(i+".tooltipstered").toArray()},setDefaults:function(e){return t.extend(l,e),this},triggerHandler:function(){return this.__$emitterPublic.triggerHandler.apply(this.__$emitterPublic,Array.prototype.slice.apply(arguments)),this}},t.tooltipster=new _,t.Tooltipster=function(e,i){this.__callbacks={close:[],open:[]},this.__closingTime,this.__Content,this.__contentBcr,this.__destroyed=!1,this.__$emitterPrivate=t({}),this.__$emitterPublic=t({}),this.__enabled=!0,this.__garbageCollector,this.__Geometry,this.__lastPosition,this.__namespace="tooltipster-"+n(1e6*Math.random()),this.__options,this.__$originParents,this.__pointerIsOverOrigin=!1,this.__previousThemes=[],this.__state="closed",this.__timeouts={close:[],open:null},this.__touchEvents=[],this.__tracker=null,this._$origin,this._$tooltip,this.__init(e,i)},t.Tooltipster.prototype={__init:function(e,i){var o=this;if(o._$origin=t(e),o.__options=t.extend(!0,{},l,i),o.__optionsFormat(),!p.IE||p.IE>=o.__options.IEmin){var n=null;if(void 0===o._$origin.data("tooltipster-initialTitle")&&(n=o._$origin.attr("title"),void 0===n&&(n=null),o._$origin.data("tooltipster-initialTitle",n)),null!==o.__options.content)o.__contentSet(o.__options.content);else{var s,r=o._$origin.attr("data-tooltip-content");r&&(s=t(r)),s&&s[0]?o.__contentSet(s.first()):o.__contentSet(n)}o._$origin.removeAttr("title").addClass("tooltipstered"),o.__prepareOrigin(),o.__prepareGC(),t.each(o.__options.plugins,function(e,t){o._plug(t)}),p.hasTouchCapability&&t(p.window.document.body).on("touchmove."+o.__namespace+"-triggerOpen",function(e){o._touchRecordEvent(e)}),o._on("created",function(){o.__prepareTooltip()})._on("repositioned",function(t){o.__lastPosition=t.position})}else o.__options.disabled=!0},__contentInsert:function(){var e=this,t=e._$tooltip.find(".tooltipster-content"),i=e.__Content;return e._trigger({type:"format",content:e.__Content,format:function(e){i=e}}),e.__options.functionFormat&&(i=e.__options.functionFormat.call(e,e,{origin:e._$origin[0]},e.__Content)),"string"!=typeof i||e.__options.contentAsHTML?t.empty().append(i):t.text(i),e},__contentSet:function(e){return e instanceof t&&this.__options.contentCloning&&(e=e.clone(!0)),this.__Content=e,this._trigger({type:"updated",content:e}),this},__destroyError:function(){throw new Error("This tooltip has been destroyed and cannot execute your method call.")},__geometry:function(){var e=this,n=e._$origin,s=e._$origin.is("area");if(s){var r=e._$origin.parent().attr("name");n=t("img[usemap=\"#"+r+"\"]")}var a=n[0].getBoundingClientRect(),l=t(p.window.document),d=t(p.window),_=n,c={available:{document:null,window:null},document:{size:{height:l.height(),width:l.width()}},window:{scroll:{left:p.window.scrollX||p.window.document.documentElement.scrollLeft,top:p.window.scrollY||p.window.document.documentElement.scrollTop},size:{height:d.height(),width:d.width()}},origin:{fixedLineage:!1,offset:{},size:{height:a.bottom-a.top,width:a.right-a.left},usemapImage:s?n[0]:null,windowOffset:{bottom:a.bottom,left:a.left,right:a.right,top:a.top}}};if(s){var g=e._$origin.attr("shape"),u=e._$origin.attr("coords");if(u&&(u=u.split(","),t.map(u,function(e,t){u[t]=parseInt(e)})),"default"!=g)switch(g){case"circle":var m=u[0],h=u[1],f=u[2];c.origin.size.height=2*f,c.origin.size.width=c.origin.size.height,c.origin.windowOffset.left+=m-f,c.origin.windowOffset.top+=h-f;break;case"rect":var y=u[0],v=u[1],w=u[2],b=u[3];c.origin.size.height=b-v,c.origin.size.width=w-y,c.origin.windowOffset.left+=y,c.origin.windowOffset.top+=v;break;case"poly":for(var C,$=0,O=0,E=0,T=0,P="even",I=0;I<u.length;I++)C=u[I],"even"==P?(C>E&&(E=C,0===I&&($=E)),C<$&&($=C),P="odd"):(C>T&&(T=C,1==I&&(O=T)),C<O&&(O=C),P="even");c.origin.size.height=T-O,c.origin.size.width=E-$,c.origin.windowOffset.left+=$,c.origin.windowOffset.top+=O}}var z=function(e){c.origin.size.height=e.height,c.origin.windowOffset.left=e.left,c.origin.windowOffset.top=e.top,c.origin.size.width=e.width};for(e._trigger({type:"geometry",edit:z,geometry:{height:c.origin.size.height,left:c.origin.windowOffset.left,top:c.origin.windowOffset.top,width:c.origin.size.width}}),c.origin.windowOffset.right=c.origin.windowOffset.left+c.origin.size.width,c.origin.windowOffset.bottom=c.origin.windowOffset.top+c.origin.size.height,c.origin.offset.left=c.origin.windowOffset.left+c.window.scroll.left,c.origin.offset.top=c.origin.windowOffset.top+c.window.scroll.top,c.origin.offset.bottom=c.origin.offset.top+c.origin.size.height,c.origin.offset.right=c.origin.offset.left+c.origin.size.width,c.available.document={bottom:{height:c.document.size.height-c.origin.offset.bottom,width:c.document.size.width},left:{height:c.document.size.height,width:c.origin.offset.left},right:{height:c.document.size.height,width:c.document.size.width-c.origin.offset.right},top:{height:c.origin.offset.top,width:c.document.size.width}},c.available.window={bottom:{height:o(c.window.size.height-o(c.origin.windowOffset.bottom,0),0),width:c.window.size.width},left:{height:c.window.size.height,width:o(c.origin.windowOffset.left,0)},right:{height:c.window.size.height,width:o(c.window.size.width-o(c.origin.windowOffset.right,0),0)},top:{height:o(c.origin.windowOffset.top,0),width:c.window.size.width}};"html"!=_[0].tagName.toLowerCase();){if("fixed"==_.css("position")){c.origin.fixedLineage=!0;break}_=_.parent()}return c},__optionsFormat:function(){return"number"==typeof this.__options.animationDuration&&(this.__options.animationDuration=[this.__options.animationDuration,this.__options.animationDuration]),"number"==typeof this.__options.delay&&(this.__options.delay=[this.__options.delay,this.__options.delay]),"number"==typeof this.__options.delayTouch&&(this.__options.delayTouch=[this.__options.delayTouch,this.__options.delayTouch]),"string"==typeof this.__options.theme&&(this.__options.theme=[this.__options.theme]),null===this.__options.parent?this.__options.parent=t(p.window.document.body):"string"==typeof this.__options.parent&&(this.__options.parent=t(this.__options.parent)),"hover"==this.__options.trigger?(this.__options.triggerOpen={mouseenter:!0,touchstart:!0},this.__options.triggerClose={mouseleave:!0,originClick:!0,touchleave:!0}):"click"==this.__options.trigger&&(this.__options.triggerOpen={click:!0,tap:!0},this.__options.triggerClose={click:!0,tap:!0}),this._trigger("options"),this},__prepareGC:function(){var e=this;return e.__options.selfDestruction?e.__garbageCollector=setInterval(function(){var i=new Date().getTime();e.__touchEvents=t.grep(e.__touchEvents,function(e){return 6e4<i-e.time}),a(e._$origin)||e.close(function(){e.destroy()})},2e4):clearInterval(e.__garbageCollector),e},__prepareOrigin:function(){var e=this;if(e._$origin.off("."+e.__namespace+"-triggerOpen"),p.hasTouchCapability&&e._$origin.on("touchstart."+e.__namespace+"-triggerOpen touchend."+e.__namespace+"-triggerOpen touchcancel."+e.__namespace+"-triggerOpen",function(t){e._touchRecordEvent(t)}),e.__options.triggerOpen.click||e.__options.triggerOpen.tap&&p.hasTouchCapability){var t="";e.__options.triggerOpen.click&&(t+="click."+e.__namespace+"-triggerOpen "),e.__options.triggerOpen.tap&&p.hasTouchCapability&&(t+="touchend."+e.__namespace+"-triggerOpen"),e._$origin.on(t,function(t){e._touchIsMeaningfulEvent(t)&&e._open(t)})}if(e.__options.triggerOpen.mouseenter||e.__options.triggerOpen.touchstart&&p.hasTouchCapability){var t="";e.__options.triggerOpen.mouseenter&&(t+="mouseenter."+e.__namespace+"-triggerOpen "),e.__options.triggerOpen.touchstart&&p.hasTouchCapability&&(t+="touchstart."+e.__namespace+"-triggerOpen"),e._$origin.on(t,function(t){(e._touchIsTouchEvent(t)||!e._touchIsEmulatedEvent(t))&&(e.__pointerIsOverOrigin=!0,e._openShortly(t))})}if(e.__options.triggerClose.mouseleave||e.__options.triggerClose.touchleave&&p.hasTouchCapability){var t="";e.__options.triggerClose.mouseleave&&(t+="mouseleave."+e.__namespace+"-triggerOpen "),e.__options.triggerClose.touchleave&&p.hasTouchCapability&&(t+="touchend."+e.__namespace+"-triggerOpen touchcancel."+e.__namespace+"-triggerOpen"),e._$origin.on(t,function(t){e._touchIsMeaningfulEvent(t)&&(e.__pointerIsOverOrigin=!1)})}return e},__prepareTooltip:function(){var e=this,i=e.__options.interactive?"auto":"";return e._$tooltip.attr("id",e.__namespace).css({"pointer-events":i,zIndex:e.__options.zIndex}),t.each(e.__previousThemes,function(t,i){e._$tooltip.removeClass(i)}),t.each(e.__options.theme,function(t,i){e._$tooltip.addClass(i)}),e.__previousThemes=t.merge([],e.__options.theme),e},__scrollHandler:function(e){var i=this;if(i.__options.triggerClose.scroll)i._close(e);else if(a(i._$origin)&&a(i._$tooltip)){var o=null;if(e.target===p.window.document)!i.__Geometry.origin.fixedLineage&&i.__options.repositionOnScroll&&i.reposition(e);else{o=i.__geometry();var n=!1;if("fixed"!=i._$origin.css("position")&&i.__$originParents.each(function(e,i){var s=t(i),r=s.css("overflow-x"),a=s.css("overflow-y");if("visible"!=r||"visible"!=a){var l=i.getBoundingClientRect();if("visible"!=r&&(o.origin.windowOffset.left<l.left||o.origin.windowOffset.right>l.right))return n=!0,!1;if("visible"!=a&&(o.origin.windowOffset.top<l.top||o.origin.windowOffset.bottom>l.bottom))return n=!0,!1}return"fixed"!=s.css("position")&&void 0}),n)i._$tooltip.css("visibility","hidden");else if(i._$tooltip.css("visibility","visible"),i.__options.repositionOnScroll)i.reposition(e);else{var s=o.origin.offset.left-i.__Geometry.origin.offset.left,r=o.origin.offset.top-i.__Geometry.origin.offset.top;i._$tooltip.css({left:i.__lastPosition.coord.left+s,top:i.__lastPosition.coord.top+r})}}i._trigger({type:"scroll",event:e,geo:o})}return i},__stateSet:function(e){return this.__state=e,this._trigger({type:"state",state:e}),this},__timeoutsClear:function(){return clearTimeout(this.__timeouts.open),this.__timeouts.open=null,t.each(this.__timeouts.close,function(e,t){clearTimeout(t)}),this.__timeouts.close=[],this},__trackerStart:function(){var e=this,t=e._$tooltip.find(".tooltipster-content");return e.__options.trackTooltip&&(e.__contentBcr=t[0].getBoundingClientRect()),e.__tracker=setInterval(function(){if(!a(e._$origin)||!a(e._$tooltip))e._close();else{if(e.__options.trackOrigin){var i=e.__geometry(),o=!1;r(i.origin.size,e.__Geometry.origin.size)&&(e.__Geometry.origin.fixedLineage?r(i.origin.windowOffset,e.__Geometry.origin.windowOffset)&&(o=!0):r(i.origin.offset,e.__Geometry.origin.offset)&&(o=!0)),o||(e.__options.triggerClose.mouseleave?e._close():e.reposition())}if(e.__options.trackTooltip){var n=t[0].getBoundingClientRect();(n.height!==e.__contentBcr.height||n.width!==e.__contentBcr.width)&&(e.reposition(),e.__contentBcr=n)}}},e.__options.trackerInterval),e},_close:function(e,i,o){var n=this,s=!0;if(n._trigger({type:"close",event:e,stop:function(){s=!1}}),s||o){i&&n.__callbacks.close.push(i),n.__callbacks.open=[],n.__timeoutsClear();var r=function(){t.each(n.__callbacks.close,function(t,i){i.call(n,n,{event:e,origin:n._$origin[0]})}),n.__callbacks.close=[]};if("closed"!=n.__state){var a=!0,l=new Date,d=l.getTime(),_=d+n.__options.animationDuration[1];if("disappearing"==n.__state&&_>n.__closingTime&&0<n.__options.animationDuration[1]&&(a=!1),a){n.__closingTime=_,"disappearing"!=n.__state&&n.__stateSet("disappearing");var c=function(){clearInterval(n.__tracker),n._trigger({type:"closing",event:e}),n._$tooltip.off("."+n.__namespace+"-triggerClose").removeClass("tooltipster-dying"),t(p.window).off("."+n.__namespace+"-triggerClose"),n.__$originParents.each(function(e,i){t(i).off("scroll."+n.__namespace+"-triggerClose")}),n.__$originParents=null,t(p.window.document.body).off("."+n.__namespace+"-triggerClose"),n._$origin.off("."+n.__namespace+"-triggerClose"),n._off("dismissable"),n.__stateSet("closed"),n._trigger({type:"after",event:e}),n.__options.functionAfter&&n.__options.functionAfter.call(n,n,{event:e,origin:n._$origin[0]}),r()};p.hasTransitions?(n._$tooltip.css({"-moz-animation-duration":n.__options.animationDuration[1]+"ms","-ms-animation-duration":n.__options.animationDuration[1]+"ms","-o-animation-duration":n.__options.animationDuration[1]+"ms","-webkit-animation-duration":n.__options.animationDuration[1]+"ms","animation-duration":n.__options.animationDuration[1]+"ms","transition-duration":n.__options.animationDuration[1]+"ms"}),n._$tooltip.clearQueue().removeClass("tooltipster-show").addClass("tooltipster-dying"),0<n.__options.animationDuration[1]&&n._$tooltip.delay(n.__options.animationDuration[1]),n._$tooltip.queue(c)):n._$tooltip.stop().fadeOut(n.__options.animationDuration[1],c)}}else r()}return n},_off:function(){return this.__$emitterPrivate.off.apply(this.__$emitterPrivate,Array.prototype.slice.apply(arguments)),this},_on:function(){return this.__$emitterPrivate.on.apply(this.__$emitterPrivate,Array.prototype.slice.apply(arguments)),this},_one:function(){return this.__$emitterPrivate.one.apply(this.__$emitterPrivate,Array.prototype.slice.apply(arguments)),this},_open:function(e,i){var o=this;if(!o.__destroying&&a(o._$origin)&&o.__enabled){var n=!0;if("closed"==o.__state&&(o._trigger({type:"before",event:e,stop:function(){n=!1}}),n&&o.__options.functionBefore&&(n=o.__options.functionBefore.call(o,o,{event:e,origin:o._$origin[0]}))),!1!==n&&null!==o.__Content){i&&o.__callbacks.open.push(i),o.__callbacks.close=[],o.__timeoutsClear();var s,r=function(){"stable"!=o.__state&&o.__stateSet("stable"),t.each(o.__callbacks.open,function(e,t){t.call(o,o,{origin:o._$origin[0],tooltip:o._$tooltip[0]})}),o.__callbacks.open=[]};if("closed"!==o.__state)s=0,"disappearing"===o.__state?(o.__stateSet("appearing"),p.hasTransitions?(o._$tooltip.clearQueue().removeClass("tooltipster-dying").addClass("tooltipster-show"),0<o.__options.animationDuration[0]&&o._$tooltip.delay(o.__options.animationDuration[0]),o._$tooltip.queue(r)):o._$tooltip.stop().fadeIn(r)):"stable"==o.__state&&r();else{if(o.__stateSet("appearing"),s=o.__options.animationDuration[0],o.__contentInsert(),o.reposition(e,!0),p.hasTransitions?(o._$tooltip.addClass("tooltipster-"+o.__options.animation).addClass("tooltipster-initial").css({"-moz-animation-duration":o.__options.animationDuration[0]+"ms","-ms-animation-duration":o.__options.animationDuration[0]+"ms","-o-animation-duration":o.__options.animationDuration[0]+"ms","-webkit-animation-duration":o.__options.animationDuration[0]+"ms","animation-duration":o.__options.animationDuration[0]+"ms","transition-duration":o.__options.animationDuration[0]+"ms"}),setTimeout(function(){"closed"!=o.__state&&(o._$tooltip.addClass("tooltipster-show").removeClass("tooltipster-initial"),0<o.__options.animationDuration[0]&&o._$tooltip.delay(o.__options.animationDuration[0]),o._$tooltip.queue(r))},0)):o._$tooltip.css("display","none").fadeIn(o.__options.animationDuration[0],r),o.__trackerStart(),t(p.window).on("resize."+o.__namespace+"-triggerClose",function(i){var e=t(document.activeElement);(e.is("input")||e.is("textarea"))&&t.contains(o._$tooltip[0],e[0])||o.reposition(i)}).on("scroll."+o.__namespace+"-triggerClose",function(t){o.__scrollHandler(t)}),o.__$originParents=o._$origin.parents(),o.__$originParents.each(function(e,i){t(i).on("scroll."+o.__namespace+"-triggerClose",function(t){o.__scrollHandler(t)})}),o.__options.triggerClose.mouseleave||o.__options.triggerClose.touchleave&&p.hasTouchCapability){o._on("dismissable",function(e){e.dismissable?e.delay?(c=setTimeout(function(){o._close(e.event)},e.delay),o.__timeouts.close.push(c)):o._close(e):clearTimeout(c)});var l=o._$origin,d="",_="",c=null;o.__options.interactive&&(l=l.add(o._$tooltip)),o.__options.triggerClose.mouseleave&&(d+="mouseenter."+o.__namespace+"-triggerClose ",_+="mouseleave."+o.__namespace+"-triggerClose "),o.__options.triggerClose.touchleave&&p.hasTouchCapability&&(d+="touchstart."+o.__namespace+"-triggerClose",_+="touchend."+o.__namespace+"-triggerClose touchcancel."+o.__namespace+"-triggerClose"),l.on(_,function(e){if(o._touchIsTouchEvent(e)||!o._touchIsEmulatedEvent(e)){var t="mouseleave"==e.type?o.__options.delay:o.__options.delayTouch;o._trigger({delay:t[1],dismissable:!0,event:e,type:"dismissable"})}}).on(d,function(e){(o._touchIsTouchEvent(e)||!o._touchIsEmulatedEvent(e))&&o._trigger({dismissable:!1,event:e,type:"dismissable"})})}o.__options.triggerClose.originClick&&o._$origin.on("click."+o.__namespace+"-triggerClose",function(e){o._touchIsTouchEvent(e)||o._touchIsEmulatedEvent(e)||o._close(e)}),(o.__options.triggerClose.click||o.__options.triggerClose.tap&&p.hasTouchCapability)&&setTimeout(function(){if("closed"!=o.__state){var e="",i=t(p.window.document.body);o.__options.triggerClose.click&&(e+="click."+o.__namespace+"-triggerClose "),o.__options.triggerClose.tap&&p.hasTouchCapability&&(e+="touchend."+o.__namespace+"-triggerClose"),i.on(e,function(e){o._touchIsMeaningfulEvent(e)&&(o._touchRecordEvent(e),(!o.__options.interactive||!t.contains(o._$tooltip[0],e.target))&&o._close(e))}),o.__options.triggerClose.tap&&p.hasTouchCapability&&i.on("touchstart."+o.__namespace+"-triggerClose",function(e){o._touchRecordEvent(e)})}},0),o._trigger("ready"),o.__options.functionReady&&o.__options.functionReady.call(o,o,{origin:o._$origin[0],tooltip:o._$tooltip[0]})}if(0<o.__options.timer){var c=setTimeout(function(){o._close()},o.__options.timer+s);o.__timeouts.close.push(c)}}}return o},_openShortly:function(e){var t=this,i=!0;if("stable"!=t.__state&&"appearing"!=t.__state&&!t.__timeouts.open&&(t._trigger({type:"start",event:e,stop:function(){i=!1}}),i)){var o=0==e.type.indexOf("touch")?t.__options.delayTouch:t.__options.delay;o[0]?t.__timeouts.open=setTimeout(function(){t.__timeouts.open=null,t.__pointerIsOverOrigin&&t._touchIsMeaningfulEvent(e)?(t._trigger("startend"),t._open(e)):t._trigger("startcancel")},o[0]):(t._trigger("startend"),t._open(e))}return t},_optionsExtract:function(e,i){var n=this,s=t.extend(!0,{},i),r=n.__options[e];return r||(r={},t.each(i,function(e){var t=n.__options[e];void 0!==t&&(r[e]=t)})),t.each(s,function(e,i){void 0!==r[e]&&("object"!=typeof i||i instanceof Array||null==i||"object"!=typeof r[e]||r[e]instanceof Array||null==r[e]?s[e]=r[e]:t.extend(s[e],r[e]))}),s},_plug:function(e){var i=t.tooltipster._plugin(e);if(i)i.instance&&t.tooltipster.__bridge(i.instance,this,i.name);else throw new Error("The \""+e+"\" plugin is not defined");return this},_touchIsEmulatedEvent:function(t){for(var o,n=!1,s=new Date().getTime(),r=this.__touchEvents.length-1;0<=r&&(o=this.__touchEvents[r],500>s-o.time);r--)o.target===t.target&&(n=!0);return n},_touchIsMeaningfulEvent:function(e){return this._touchIsTouchEvent(e)&&!this._touchSwiped(e.target)||!this._touchIsTouchEvent(e)&&!this._touchIsEmulatedEvent(e)},_touchIsTouchEvent:function(e){return 0==e.type.indexOf("touch")},_touchRecordEvent:function(e){return this._touchIsTouchEvent(e)&&(e.time=new Date().getTime(),this.__touchEvents.push(e)),this},_touchSwiped:function(t){for(var o,n=!1,s=this.__touchEvents.length-1;0<=s;s--)if(o=this.__touchEvents[s],"touchmove"==o.type){n=!0;break}else if("touchstart"==o.type&&t===o.target)break;return n},_trigger:function(){var e=Array.prototype.slice.apply(arguments);return"string"==typeof e[0]&&(e[0]={type:e[0]}),e[0].instance=this,e[0].origin=this._$origin?this._$origin[0]:null,e[0].tooltip=this._$tooltip?this._$tooltip[0]:null,this.__$emitterPrivate.trigger.apply(this.__$emitterPrivate,e),t.tooltipster._trigger.apply(t.tooltipster,e),this.__$emitterPublic.trigger.apply(this.__$emitterPublic,e),this},_unplug:function(e){var i=this;if(i[e]){var o=t.tooltipster._plugin(e);o.instance&&t.each(o.instance,function(t){i[t]&&i[t].bridged===i[e]&&delete i[t]}),i[e].__destroy&&i[e].__destroy(),delete i[e]}return i},close:function(e){return this.__destroyed?this.__destroyError():this._close(null,e),this},content:function(e){var t=this;if(void 0===e)return t.__Content;if(!!t.__destroyed)t.__destroyError();else if(t.__contentSet(e),null===t.__Content)t._close();else if("closed"!==t.__state&&(t.__contentInsert(),t.reposition(),t.__options.updateAnimation))if(p.hasTransitions){var i=t.__options.updateAnimation;t._$tooltip.addClass("tooltipster-update-"+i),setTimeout(function(){"closed"!=t.__state&&t._$tooltip.removeClass("tooltipster-update-"+i)},1e3)}else t._$tooltip.fadeTo(200,.5,function(){"closed"!=t.__state&&t._$tooltip.fadeTo(200,1)});return t},destroy:function(){var e=this;if(!e.__destroyed){"closed"==e.__state?e.__timeoutsClear():e.option("animationDuration",0)._close(null,null,!0),e._trigger("destroy"),e.__destroyed=!0,e._$origin.removeData(e.__namespace).off("."+e.__namespace+"-triggerOpen"),t(p.window.document.body).off("."+e.__namespace+"-triggerOpen");var i=e._$origin.data("tooltipster-ns");if(i)if(1===i.length){var o=null;"previous"==e.__options.restoration?o=e._$origin.data("tooltipster-initialTitle"):"current"==e.__options.restoration&&(o="string"==typeof e.__Content?e.__Content:t("<div></div>").append(e.__Content).html()),o&&e._$origin.attr("title",o),e._$origin.removeClass("tooltipstered"),e._$origin.removeData("tooltipster-ns").removeData("tooltipster-initialTitle")}else i=t.grep(i,function(t){return t!==e.__namespace}),e._$origin.data("tooltipster-ns",i);e._trigger("destroyed"),e._off(),e.off(),e.__Content=null,e.__$emitterPrivate=null,e.__$emitterPublic=null,e.__options.parent=null,e._$origin=null,e._$tooltip=null,t.tooltipster.__instancesLatestArr=t.grep(t.tooltipster.__instancesLatestArr,function(t){return e!==t}),clearInterval(e.__garbageCollector)}else e.__destroyError();return e},disable:function(){return this.__destroyed?(this.__destroyError(),this):(this._close(),this.__enabled=!1,this)},elementOrigin:function(){return this.__destroyed?void this.__destroyError():this._$origin[0]},elementTooltip:function(){return this._$tooltip?this._$tooltip[0]:null},enable:function(){return this.__enabled=!0,this},hide:function(e){return this.close(e)},instance:function(){return this},off:function(){return this.__destroyed||this.__$emitterPublic.off.apply(this.__$emitterPublic,Array.prototype.slice.apply(arguments)),this},on:function(){return this.__destroyed?this.__destroyError():this.__$emitterPublic.on.apply(this.__$emitterPublic,Array.prototype.slice.apply(arguments)),this},one:function(){return this.__destroyed?this.__destroyError():this.__$emitterPublic.one.apply(this.__$emitterPublic,Array.prototype.slice.apply(arguments)),this},open:function(e){return this.__destroyed?this.__destroyError():this._open(null,e),this},option:function(e,i){return void 0===i?this.__options[e]:(this.__destroyed?this.__destroyError():(this.__options[e]=i,this.__optionsFormat(),0<=t.inArray(e,["trigger","triggerClose","triggerOpen"])&&this.__prepareOrigin(),"selfDestruction"===e&&this.__prepareGC()),this)},reposition:function(e,t){var i=this;return i.__destroyed?i.__destroyError():"closed"!=i.__state&&a(i._$origin)&&(t||a(i._$tooltip))&&(!t&&i._$tooltip.detach(),i.__Geometry=i.__geometry(),i._trigger({type:"reposition",event:e,helper:{geo:i.__Geometry}})),i},show:function(e){return this.open(e)},status:function(){return{destroyed:this.__destroyed,enabled:this.__enabled,open:"closed"!==this.__state,state:this.__state}},triggerHandler:function(){return this.__destroyed?this.__destroyError():this.__$emitterPublic.triggerHandler.apply(this.__$emitterPublic,Array.prototype.slice.apply(arguments)),this}},t.fn.tooltipster=function(){var e=Array.prototype.slice.apply(arguments);if(0===this.length)return this;if("string"==typeof e[0]){var i="#*$~&";return this.each(function(){var o=t(this).data("tooltipster-ns"),n=o?t(this).data(o[0]):null;if(n){if("function"==typeof n[e[0]]){1<this.length&&"content"==e[0]&&(e[1]instanceof t||"object"==typeof e[1]&&null!=e[1]&&e[1].tagName)&&!n.__options.contentCloning&&n.__options.debug&&console.log("You are using a single HTML element as content for several tooltips. You probably want to set the contentCloning option to TRUE.");var s=n[e[0]](e[1],e[2])}else throw new Error("Unknown method \""+e[0]+"\"");if(s!==n||"instance"===e[0])return i=s,!1}else throw new Error("You called Tooltipster's \""+e[0]+"\" method on an uninitialized element")}),"#*$~&"===i?this:i}t.tooltipster.__instancesLatestArr=[];var o=e[0]&&void 0!==e[0].multiple,n=o&&e[0].multiple||!o&&l.multiple,s=e[0]&&void 0!==e[0].content,r=s&&e[0].content||!s&&l.content,a=e[0]&&void 0!==e[0].contentCloning,d=a&&e[0].contentCloning||!a&&l.contentCloning,p=e[0]&&void 0!==e[0].debug,_=p&&e[0].debug||!p&&l.debug;return 1<this.length&&(r instanceof t||"object"==typeof r&&null!=r&&r.tagName)&&!d&&_&&console.log("You are using a single HTML element as content for several tooltips. You probably want to set the contentCloning option to TRUE."),this.each(function(){var i=!1,o=t(this),s=o.data("tooltipster-ns"),r=null;s?n?i=!0:_&&(console.log("Tooltipster: one or more tooltips are already attached to the element below. Ignoring."),console.log(this)):i=!0,i&&(r=new t.Tooltipster(this,e[0]),!s&&(s=[]),s.push(r.__namespace),o.data("tooltipster-ns",s),o.data(r.__namespace,r),r.__options.functionInit&&r.__options.functionInit.call(r,r,{origin:this}),r._trigger("init")),t.tooltipster.__instancesLatestArr.push(r)}),this},s.prototype={__init:function(e){this.__$tooltip=e,this.__$tooltip.css({left:0,overflow:"hidden",position:"absolute",top:0}).find(".tooltipster-content").css("overflow","auto"),this.$container=t("<div class=\"tooltipster-ruler\"></div>").append(this.__$tooltip).appendTo(p.window.document.body)},__forceRedraw:function(){var e=this.__$tooltip.parent();this.__$tooltip.detach(),this.__$tooltip.appendTo(e)},constrain:function(e,t){return this.constraints={width:e,height:t},this.__$tooltip.css({display:"block",height:"",overflow:"auto",width:e}),this},destroy:function(){this.__$tooltip.detach().find(".tooltipster-content").css({display:"",overflow:""}),this.$container.remove()},free:function(){return this.constraints=null,this.__$tooltip.css({display:"",height:"",overflow:"visible",width:""}),this},measure:function(){this.__forceRedraw();var e=this.__$tooltip[0].getBoundingClientRect(),t={size:{height:e.height||e.bottom-e.top,width:e.width||e.right-e.left}};if(this.constraints){var o=this.__$tooltip.find(".tooltipster-content"),n=this.__$tooltip.outerHeight(),s=o[0].getBoundingClientRect(),r={height:n<=this.constraints.height,width:e.width<=this.constraints.width&&s.width>=o[0].scrollWidth-1};t.fits=r.height&&r.width}return p.IE&&11>=p.IE&&t.size.width!==p.window.document.documentElement.clientWidth&&(t.size.width=i(t.size.width)+1),t}};var c=navigator.userAgent.toLowerCase();-1==c.indexOf("msie")?-1!==c.toLowerCase().indexOf("trident")&&-1!==c.indexOf(" rv:11")?p.IE=11:-1!=c.toLowerCase().indexOf("edge/")&&(p.IE=parseInt(c.toLowerCase().split("edge/")[1])):p.IE=parseInt(c.split("msie")[1]);return t.tooltipster._plugin({name:"tooltipster.sideTip",instance:{__defaults:function(){return{arrow:!0,distance:6,functionPosition:null,maxWidth:null,minIntersection:16,minWidth:0,position:null,side:"top",viewportAware:!0}},__init:function(e){var t=this;t.__instance=e,t.__namespace="tooltipster-sideTip-"+n(1e6*Math.random()),t.__previousState="closed",t.__options,t.__optionsFormat(),t.__instance._on("state."+t.__namespace,function(e){"closed"==e.state?t.__close():"appearing"==e.state&&"closed"==t.__previousState&&t.__create(),t.__previousState=e.state}),t.__instance._on("options."+t.__namespace,function(){t.__optionsFormat()}),t.__instance._on("reposition."+t.__namespace,function(i){t.__reposition(i.event,i.helper)})},__close:function(){this.__instance.content()instanceof t&&this.__instance.content().detach(),this.__instance._$tooltip.remove(),this.__instance._$tooltip=null},__create:function(){var e=t("<div class=\"tooltipster-base tooltipster-sidetip\"><div class=\"tooltipster-box\"><div class=\"tooltipster-content\"></div></div><div class=\"tooltipster-arrow\"><div class=\"tooltipster-arrow-uncropped\"><div class=\"tooltipster-arrow-border\"></div><div class=\"tooltipster-arrow-background\"></div></div></div></div>");this.__options.arrow||e.find(".tooltipster-box").css("margin",0).end().find(".tooltipster-arrow").hide(),this.__options.minWidth&&e.css("min-width",this.__options.minWidth+"px"),this.__options.maxWidth&&e.css("max-width",this.__options.maxWidth+"px"),this.__instance._$tooltip=e,this.__instance._trigger("created")},__destroy:function(){this.__instance._off("."+self.__namespace)},__optionsFormat:function(){var e=this;if(e.__options=e.__instance._optionsExtract("tooltipster.sideTip",e.__defaults()),e.__options.position&&(e.__options.side=e.__options.position),"object"!=typeof e.__options.distance&&(e.__options.distance=[e.__options.distance]),4>e.__options.distance.length&&(void 0===e.__options.distance[1]&&(e.__options.distance[1]=e.__options.distance[0]),void 0===e.__options.distance[2]&&(e.__options.distance[2]=e.__options.distance[0]),void 0===e.__options.distance[3]&&(e.__options.distance[3]=e.__options.distance[1])),e.__options.distance={top:e.__options.distance[0],right:e.__options.distance[1],bottom:e.__options.distance[2],left:e.__options.distance[3]},"string"==typeof e.__options.side){e.__options.side=[e.__options.side,{top:"bottom",right:"left",bottom:"top",left:"right"}[e.__options.side]],"left"==e.__options.side[0]||"right"==e.__options.side[0]?e.__options.side.push("top","bottom"):e.__options.side.push("right","left")}6===t.tooltipster._env.IE&&!0!==e.__options.arrow&&(e.__options.arrow=!1)},__reposition:function(o,n){var s,r=this,a=r.__targetFind(n),l=[];r.__instance._$tooltip.detach();var d=r.__instance._$tooltip.clone(),p=t.tooltipster._getRuler(d),_=!1,c=r.__instance.option("animation");switch(c&&d.removeClass("tooltipster-"+c),t.each(["window","document"],function(e,s){var c=null;if(r.__instance._trigger({container:s,helper:n,satisfied:_,takeTest:function(e){c=e},results:l,type:"positionTest"}),!0==c||!1!=c&&!1==_&&("window"!=s||r.__options.viewportAware))for(var e=0;e<r.__options.side.length;e++){var g={horizontal:0,vertical:0},u=r.__options.side[e];"top"==u||"bottom"==u?g.vertical=r.__options.distance[u]:g.horizontal=r.__options.distance[u],r.__sideChange(d,u),t.each(["natural","constrained"],function(e,t){if(c=null,r.__instance._trigger({container:s,event:o,helper:n,mode:t,results:l,satisfied:_,side:u,takeTest:function(e){c=e},type:"positionTest"}),!0==c||!1!=c&&!1==_){var i={container:s,distance:g,fits:null,mode:t,outerSize:null,side:u,size:null,target:a[u],whole:null},d="natural"==t?p.free():p.constrain(n.geo.available[s][u].width-g.horizontal,n.geo.available[s][u].height-g.vertical),m=d.measure();if(i.size=m.size,i.outerSize={height:m.size.height+g.vertical,width:m.size.width+g.horizontal},i.fits="natural"==t?!!(n.geo.available[s][u].width>=i.outerSize.width&&n.geo.available[s][u].height>=i.outerSize.height):m.fits,"window"==s&&(i.fits?"top"==u||"bottom"==u?i.whole=n.geo.origin.windowOffset.right>=r.__options.minIntersection&&n.geo.window.size.width-n.geo.origin.windowOffset.left>=r.__options.minIntersection:i.whole=n.geo.origin.windowOffset.bottom>=r.__options.minIntersection&&n.geo.window.size.height-n.geo.origin.windowOffset.top>=r.__options.minIntersection:i.whole=!1),l.push(i),i.whole)_=!0;else if("natural"==i.mode&&(i.fits||i.size.width<=n.geo.available[s][u].width))return!1}})}}),r.__instance._trigger({edit:function(e){l=e},event:o,helper:n,results:l,type:"positionTested"}),l.sort(function(e,t){if(e.whole&&!t.whole)return-1;if(!e.whole&&t.whole)return 1;if(e.whole&&t.whole){var i=r.__options.side.indexOf(e.side),o=r.__options.side.indexOf(t.side);return i<o?-1:i>o?1:"natural"==e.mode?-1:1}if(e.fits&&!t.fits)return-1;if(!e.fits&&t.fits)return 1;if(e.fits&&t.fits){var i=r.__options.side.indexOf(e.side),o=r.__options.side.indexOf(t.side);return i<o?-1:i>o?1:"natural"==e.mode?-1:1}return"document"==e.container&&"bottom"==e.side&&"natural"==e.mode?-1:1}),s=l[0],s.coord={},s.side){case"left":case"right":s.coord.top=e(s.target-s.size.height/2);break;case"bottom":case"top":s.coord.left=e(s.target-s.size.width/2)}switch(s.side){case"left":s.coord.left=n.geo.origin.windowOffset.left-s.outerSize.width;break;case"right":s.coord.left=n.geo.origin.windowOffset.right+s.distance.horizontal;break;case"top":s.coord.top=n.geo.origin.windowOffset.top-s.outerSize.height;break;case"bottom":s.coord.top=n.geo.origin.windowOffset.bottom+s.distance.vertical}"window"==s.container?"top"==s.side||"bottom"==s.side?0>s.coord.left?0<=n.geo.origin.windowOffset.right-this.__options.minIntersection?s.coord.left=0:s.coord.left=n.geo.origin.windowOffset.right-this.__options.minIntersection-1:s.coord.left>n.geo.window.size.width-s.size.width&&(n.geo.origin.windowOffset.left+this.__options.minIntersection<=n.geo.window.size.width?s.coord.left=n.geo.window.size.width-s.size.width:s.coord.left=n.geo.origin.windowOffset.left+this.__options.minIntersection+1-s.size.width):0>s.coord.top?0<=n.geo.origin.windowOffset.bottom-this.__options.minIntersection?s.coord.top=0:s.coord.top=n.geo.origin.windowOffset.bottom-this.__options.minIntersection-1:s.coord.top>n.geo.window.size.height-s.size.height&&(n.geo.origin.windowOffset.top+this.__options.minIntersection<=n.geo.window.size.height?s.coord.top=n.geo.window.size.height-s.size.height:s.coord.top=n.geo.origin.windowOffset.top+this.__options.minIntersection+1-s.size.height):(s.coord.left>n.geo.window.size.width-s.size.width&&(s.coord.left=n.geo.window.size.width-s.size.width),0>s.coord.left&&(s.coord.left=0)),r.__sideChange(d,s.side),n.tooltipClone=d[0],n.tooltipParent=r.__instance.option("parent").parent[0],n.mode=s.mode,n.whole=s.whole,n.origin=r.__instance._$origin[0],n.tooltip=r.__instance._$tooltip[0],delete s.container,delete s.fits,delete s.mode,delete s.outerSize,delete s.whole,s.distance=s.distance.horizontal||s.distance.vertical;var g=t.extend(!0,{},s);if(r.__instance._trigger({edit:function(e){s=e},event:o,helper:n,position:g,type:"position"}),r.__options.functionPosition){var u=r.__options.functionPosition.call(r,r.__instance,n,g);u&&(s=u)}p.destroy();var m,h;"top"==s.side||"bottom"==s.side?(m={prop:"left",val:s.target-s.coord.left},h=s.size.width-this.__options.minIntersection):(m={prop:"top",val:s.target-s.coord.top},h=s.size.height-this.__options.minIntersection),m.val<this.__options.minIntersection?m.val=this.__options.minIntersection:m.val>h&&(m.val=h);var f;f=n.geo.origin.fixedLineage?n.geo.origin.windowOffset:{left:n.geo.origin.windowOffset.left+n.geo.window.scroll.left,top:n.geo.origin.windowOffset.top+n.geo.window.scroll.top},s.coord={left:f.left+(s.coord.left-n.geo.origin.windowOffset.left),top:f.top+(s.coord.top-n.geo.origin.windowOffset.top)},r.__sideChange(r.__instance._$tooltip,s.side),n.geo.origin.fixedLineage?r.__instance._$tooltip.css("position","fixed"):r.__instance._$tooltip.css("position",""),r.__instance._$tooltip.css({left:s.coord.left,top:s.coord.top,height:s.size.height,width:s.size.width}).find(".tooltipster-arrow").css({left:"",top:""}).css(m.prop,m.val),r.__instance._$tooltip.appendTo(r.__instance.option("parent")),r.__instance._trigger({type:"repositioned",event:o,position:s})},__sideChange:function(e,t){e.removeClass("tooltipster-bottom").removeClass("tooltipster-left").removeClass("tooltipster-right").removeClass("tooltipster-top").addClass("tooltipster-"+t)},__targetFind:function(t){var o={},n=this.__instance._$origin[0].getClientRects();if(1<n.length){var s=this.__instance._$origin.css("opacity");1==s&&(this.__instance._$origin.css("opacity",.99),n=this.__instance._$origin[0].getClientRects(),this.__instance._$origin.css("opacity",1))}if(2>n.length)o.top=e(t.geo.origin.windowOffset.left+t.geo.origin.size.width/2),o.bottom=o.top,o.left=e(t.geo.origin.windowOffset.top+t.geo.origin.size.height/2),o.right=o.left;else{var r=n[0];o.top=e(r.left+(r.right-r.left)/2),r=2<n.length?n[i(n.length/2)-1]:n[0],o.right=e(r.top+(r.bottom-r.top)/2),r=n[n.length-1],o.bottom=e(r.left+(r.right-r.left)/2),r=2<n.length?n[i((n.length+1)/2)-1]:n[n.length-1],o.left=e(r.top+(r.bottom-r.top)/2)}return o}}}),t}),!function(i,o){"object"==typeof exports&&"undefined"!=typeof module?module.exports=o(require("jquery")):"function"==typeof define&&define.amd?define(["jquery"],o):(i=i||self).parsley=o(i.jQuery)}(this,function(T){"use strict";var I=Math.max,z=Math.round;function k(e){return(k="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function h(){return(h=Object.assign||function(o){for(var t,n=1;n<arguments.length;n++)for(var s in t=arguments[n],t)Object.prototype.hasOwnProperty.call(t,s)&&(o[s]=t[s]);return o}).apply(this,arguments)}function R(i,t){return function(e){if(Array.isArray(e))return e}(i)||function(l,t){if(Symbol.iterator in Object(l)||"[object Arguments]"===Object.prototype.toString.call(l)){var e,d=[],i=!0,p=!1;try{for(var _,c=l[Symbol.iterator]();!(i=(_=c.next()).done)&&(d.push(_.value),!t||d.length!==t);i=!0);}catch(i){p=!0,e=i}finally{try{i||null==c.return||c.return()}finally{if(p)throw e}}return d}}(i,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}function S(e){return function(o){if(Array.isArray(o)){for(var t=0,n=Array(o.length);t<o.length;t++)n[t]=o[t];return n}}(e)||function(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}function o(){}function i(){this.__id__=M.generateID()}function u(e){T.extend(!0,this,e)}function r(i,t){this.__class__="ValidatorRegistry",this.locale="en",this.init(i||{},t||{})}function a(i){var t=(""+i).match(/(?:\.(\d+))?(?:[eE]([+-]?\d+))?$/);return t?I(0,(t[1]?t[1].length:0)-(t[2]?+t[2]:0)):0}function c(o,s){return function(a){for(var t=arguments.length,e=Array(1<t?t-1:0),i=1;i<t;i++)e[i-1]=arguments[i];return e.pop(),s.apply(void 0,[a].concat(S((l=o,e.map(M.parse[l])))));var l}}function m(e){return{validateDate:c("date",e),validateNumber:c("number",e),requirementType:2>=e.length?"string":["string","string"],priority:30}}function g(o,t,e){this.__class__="Form",this.element=o,this.$element=T(o),this.domOptions=t,this.options=e,this.parent=window.Parsley,this.fields=[],this.validationResult=null}function f(o,t,e,i,l){var d=window.Parsley._validatorRegistry.validators[t],s=new u(d);h(this,{validator:s,name:t,requirements:e,priority:i=i||o.options[t+"Priority"]||s.priority,isDomConstraint:l=!0===l}),this._parseRequirements(o.options)}function y(o,t,e,i){this.__class__="Field",this.element=o,this.$element=T(o),void 0!==i&&(this.parent=i),this.options=e,this.domOptions=t,this.constraints=[],this.constraintsByName={},this.validationResult=!0,this._bindConstraints()}function w(){this.__class__="FieldMultiple"}function b(o,t,e){this.element=o,this.$element=T(o);var i=this.$element.data("Parsley");if(i)return void 0!==e&&i.parent===window.Parsley&&(i.parent=e,i._resetOptions(i.options)),"object"===k(t)&&h(i.options,t),i;if(!this.$element.length)throw new Error("You must bind Parsley on an existing element.");if(void 0!==e&&"Form"!==e.__class__)throw new Error("Parent instance must be a Form instance");return this.parent=e||window.Parsley,this.init(t)}function C(){M.warnOnce("Parsley's pubsub module is deprecated; use the 'on' and 'off' methods on parsley instances or window.Parsley")}function A(o,e){return o.parsleyAdaptedCallback||(o.parsleyAdaptedCallback=function(){var i=Array.prototype.slice.call(arguments,0);i.unshift(this),o.apply(e||$,i)}),o.parsleyAdaptedCallback}function O(e){return 0===e.lastIndexOf("parsley:",0)?e.substr("parsley:".length):e}var V=1,D={},M={attr:function(o,t,e){var l,d,p,_=new RegExp("^"+t,"i");if(void 0===e)e={};else for(l in e)e.hasOwnProperty(l)&&delete e[l];if(!o)return e;for(l=(p=o.attributes).length;l--;)(d=p[l])&&d.specified&&_.test(d.name)&&(e[this.camelize(d.name.slice(t.length))]=this.deserializeValue(d.value));return e},checkAttr:function(o,t,e){return o.hasAttribute(t+e)},setAttr:function(o,t,e,i){o.setAttribute(this.dasherize(t+e),i+"")},getType:function(e){return e.getAttribute("type")||"text"},generateID:function(){return""+V++},deserializeValue:function(i){var e;try{return i?"true"==i||"false"!=i&&("null"==i?null:isNaN(e=+i)?/^[\[\{]/.test(i)?JSON.parse(i):i:e):i}catch(e){return i}},camelize:function(e){return e.replace(/-+(.)?/g,function(i,t){return t?t.toUpperCase():""})},dasherize:function(e){return e.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(){var e;window.console&&"function"==typeof window.console.warn&&(e=window.console).warn.apply(e,arguments)},warnOnce:function(e){D[e]||(D[e]=!0,this.warn.apply(this,arguments))},_resetWarnings:function(){D={}},trimString:function(e){return e.replace(/^\s+|\s+$/g,"")},parse:{date:function(o){var t=o.match(/^(\d{4,})-(\d\d)-(\d\d)$/);if(!t)return null;var e=R(t.map(function(e){return parseInt(e,10)}),4),i=(e[0],e[1]),r=e[2],n=e[3],s=new Date(i,r-1,n);return s.getFullYear()!==i||s.getMonth()+1!==r||s.getDate()!==n?null:s},string:function(e){return e},integer:function(e){return isNaN(e)?null:parseInt(e,10)},number:function(e){if(isNaN(e))throw null;return parseFloat(e)},boolean:function(e){return!/^\s*false\s*$/i.test(e)},object:function(e){return M.deserializeValue(e)},regexp:function(i){var o="";return i=/^\/.*\/(?:[gimy]*)$/.test(i)?(o=i.replace(/.*\/([gimy]*)$/,"$1"),i.replace(new RegExp("^/(.*?)/"+o+"$"),"$1")):"^"+i+"$",new RegExp(i,o)}},parseRequirement:function(o,t){var e=this.parse[o||"string"];if(!e)throw"Unknown requirement specification: \""+o+"\"";var i=e(t);if(null===i)throw"Requirement is not a ".concat(o,": \"").concat(t,"\"");return i},namespaceEvents:function(i,o){return(i=this.trimString(i||"").split(/\s+/))[0]?T.map(i,function(e){return"".concat(e,".").concat(o)}).join(" "):""},difference:function(e,o){var i=[];return T.each(e,function(n,t){-1==o.indexOf(t)&&i.push(t)}),i},all:function(e){return T.when.apply(T,S(e).concat([42,42]))},objectCreate:Object.create||function(i){if(1<arguments.length)throw Error("Second argument not supported");if("object"!=k(i))throw TypeError("Argument must be an object");o.prototype=i;var t=new o;return o.prototype=null,t},_SubmitSelector:"input[type=\"submit\"], button:submit"},d={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(){},errorsContainer:function(){},errorsWrapper:"<ul class=\"parsley-errors-list\"></ul>",errorTemplate:"<li></li>"};i.prototype={asyncSupport:!0,_pipeAccordingToValidationResult:function(){function i(){var e=T.Deferred();return!0!==o.validationResult&&e.reject(),e.resolve().promise()}var o=this;return[i,i]},actualizeOptions:function(){return M.attr(this.element,this.options.namespace,this.domOptions),this.parent&&this.parent.actualizeOptions&&this.parent.actualizeOptions(),this},_resetOptions:function(i){for(var t in this.domOptions=M.objectCreate(this.parent.options),this.options=M.objectCreate(this.domOptions),i)i.hasOwnProperty(t)&&(this.options[t]=i[t]);this.actualizeOptions()},_listeners:null,on:function(i,t){return this._listeners=this._listeners||{},(this._listeners[i]=this._listeners[i]||[]).push(t),this},subscribe:function(i,t){T.listenTo(this,i.toLowerCase(),t)},off:function(o,t){var e=this._listeners&&this._listeners[o];if(e)if(t)for(var i=e.length;i--;)e[i]===t&&e.splice(i,1);else delete this._listeners[o];return this},unsubscribe:function(e){T.unsubscribeTo(this,e.toLowerCase())},trigger:function(o,t,a){t=t||this;var i,l=this._listeners&&this._listeners[o];if(l)for(var n=l.length;n--;)if(!1===(i=l[n].call(t,t,a)))return i;return!this.parent||this.parent.trigger(o,t,a)},asyncIsValid:function(i,t){return M.warnOnce("asyncIsValid is deprecated; please use whenValid instead"),this.whenValid({group:i,force:t})},_findRelated:function(){return this.options.multiple?T(this.parent.element.querySelectorAll("[".concat(this.options.namespace,"multiple=\"").concat(this.options.multiple,"\"]"))):this.$element}},u.prototype={validate:function(o,t){if(this.fn)return 3<arguments.length&&(t=[].slice.call(arguments,1,-1)),this.fn(o,t);if(Array.isArray(o)){if(!this.validateMultiple)throw"Validator `"+this.name+"` does not handle multiple values";return this.validateMultiple.apply(this,arguments)}var n=arguments[arguments.length-1];if(this.validateDate&&n._isDateInput())return arguments[0]=M.parse.date(arguments[0]),null!==arguments[0]&&this.validateDate.apply(this,arguments);if(this.validateNumber)return!o||!isNaN(o)&&(arguments[0]=parseFloat(arguments[0]),this.validateNumber.apply(this,arguments));if(this.validateString)return this.validateString.apply(this,arguments);throw"Validator `"+this.name+"` only handles multiple values"},parseRequirements:function(o,t){if("string"!=typeof o)return Array.isArray(o)?o:[o];var e=this.requirementType;if(Array.isArray(e)){for(var i=function(o,t){var e=o.match(/^\s*\[(.*)\]\s*$/);if(!e)throw"Requirement is not an array: \""+o+"\"";var i=e[1].split(",").map(M.trimString);if(i.length!==t)throw"Requirement has "+i.length+" values when "+t+" are needed";return i}(o,e.length),s=0;s<i.length;s++)i[s]=M.parseRequirement(e[s],i[s]);return i}return T.isPlainObject(e)?function(o,t,e){var i=null,l={};for(var n in o)if(n){var d=e(n);"string"==typeof d&&(d=M.parseRequirement(o[n],d)),l[n]=d}else i=M.parseRequirement(o[n],t);return[i,l]}(e,o,t):[M.parseRequirement(e,o)]},requirementType:"string",priority:2};var q={email:/^((([a-zA-Z]|\d|[!#\$%&'\*\+\-\/=\?\^_`{\|}~]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])+(\.([a-zA-Z]|\d|[!#\$%&'\*\+\-\/=\?\^_`{\|}~]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])+)*)|((\x22)((((\x20|\x09)*(\x0d\x0a))?(\x20|\x09)+)?(([\x01-\x08\x0b\x0c\x0e-\x1f\x7f]|\x21|[\x23-\x5b]|[\x5d-\x7e]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(\\([\x01-\x09\x0b\x0c\x0d-\x7f]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]))))*(((\x20|\x09)*(\x0d\x0a))?(\x20|\x09)+)?(\x22)))@((([a-zA-Z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-zA-Z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-zA-Z]|\d|-|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-zA-Z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.)+(([a-zA-Z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-zA-Z]|\d|-|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-zA-Z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]))$/,number:/^-?(\d*\.)?\d+(e[-+]?\d+)?$/i,integer:/^-?\d+$/,digits:/^\d+$/,alphanum:/^\w+$/i,date:{test:function(e){return null!==M.parse.date(e)}},url:/^(?:(?:https?|ftp):\/\/)?(?:\S+(?::\S*)?@)?(?:(?:[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-zA-Z\u00a1-\uffff0-9]-*)*[a-zA-Z\u00a1-\uffff0-9]+)(?:\.(?:[a-zA-Z\u00a1-\uffff0-9]-*)*[a-zA-Z\u00a1-\uffff0-9]+)*(?:\.(?:[a-zA-Z\u00a1-\uffff]{2,})))(?::\d{2,5})?(?:\/\S*)?$/};q.range=q.number,r.prototype={init:function(o,t){for(var e in this.catalog=t,this.validators=h({},this.validators),o)this.addValidator(e,o[e].fn,o[e].priority);window.Parsley.trigger("parsley:validator:init")},setLocale:function(e){if(void 0===this.catalog[e])throw new Error(e+" is not available in the catalog");return this.locale=e,this},addCatalog:function(o,t,e){return"object"===k(t)&&(this.catalog[o]=t),!0===e?this.setLocale(o):this},addMessage:function(o,t,e){return void 0===this.catalog[o]&&(this.catalog[o]={}),this.catalog[o][t]=e,this},addMessages:function(o,t){for(var e in t)this.addMessage(o,e,t[e]);return this},addValidator:function(e){if(this.validators[e])M.warn("Validator \""+e+"\" is already defined.");else if(d.hasOwnProperty(e))return void M.warn("\""+e+"\" is a restricted keyword and is not a valid validator name.");return this._setValidator.apply(this,arguments)},hasValidator:function(e){return!!this.validators[e]},updateValidator:function(e){return this.validators[e]?this._setValidator.apply(this,arguments):(M.warn("Validator \""+e+"\" is not already defined."),this.addValidator.apply(this,arguments))},removeValidator:function(e){return this.validators[e]||M.warn("Validator \""+e+"\" is not defined."),delete this.validators[e],this},_setValidator:function(o,t,n){for(var i in"object"!==k(t)&&(t={fn:t,priority:n}),t.validate||(t=new u(t)),(this.validators[o]=t).messages||{})this.addMessage(i,o,t.messages[i]);return this},getErrorMessage:function(i){var t;return t="type"===i.name?(this.catalog[this.locale][i.name]||{})[i.requirements]:this.formatMessage(this.catalog[this.locale][i.name],i.requirements),t||this.catalog[this.locale].defaultMessage||this.catalog.en.defaultMessage},formatMessage:function(o,n){if("object"!==k(n))return"string"==typeof o?o.replace(/%s/i,n):"";for(var e in n)o=this.formatMessage(o,n[e]);return o},validators:{notblank:{validateString:function(e){return /\S/.test(e)},priority:2},required:{validateMultiple:function(e){return 0<e.length},validateString:function(e){return /\S/.test(e)},priority:512},type:{validateString:function(p,t,e){var i=2<arguments.length&&void 0!==e?e:{},r=i.step,n=void 0===r?"any":r,s=i.base,_=void 0===s?0:s,o=q[t];if(!o)throw new Error("validator type `"+t+"` is not supported");if(!p)return!0;if(!o.test(p))return!1;if("number"===t&&!/^any$/i.test(n||"")){var l=+p,c=I(a(n),a(_));if(a(l)>c)return!1;var d=function(e){var t=Math.pow;return z(e*t(10,c))};if(0!=(d(l)-d(_))%d(n))return!1}return!0},requirementType:{"":"string",step:"string",base:"number"},priority:256},pattern:{validateString:function(i,t){return!i||t.test(i)},requirementType:"regexp",priority:64},minlength:{validateString:function(i,t){return!i||i.length>=t},requirementType:"integer",priority:30},maxlength:{validateString:function(i,t){return i.length<=t},requirementType:"integer",priority:30},length:{validateString:function(o,t,e){return!o||o.length>=t&&o.length<=e},requirementType:["integer","integer"],priority:30},mincheck:{validateMultiple:function(i,t){return i.length>=t},requirementType:"integer",priority:30},maxcheck:{validateMultiple:function(i,t){return i.length<=t},requirementType:"integer",priority:30},check:{validateMultiple:function(o,t,e){return o.length>=t&&o.length<=e},requirementType:["integer","integer"],priority:30},min:m(function(i,t){return t<=i}),max:m(function(i,t){return i<=t}),range:m(function(o,t,e){return t<=o&&o<=e}),equalto:{validateString:function(o,t){if(!o)return!0;var e=T(t);return e.length?o===e.val():o===t},priority:256},euvatin:{validateString:function(e){return!e||/^[A-Z][A-Z][A-Za-z0-9 -]{2,}$/.test(e)},priority:30}}};var s={Form:{_actualizeTriggers:function(){var i=this;this.$element.on("submit.Parsley",function(e){i.onSubmitValidate(e)}),this.$element.on("click.Parsley",M._SubmitSelector,function(e){i.onSubmitButton(e)}),!1!==this.options.uiEnabled&&this.element.setAttribute("novalidate","")},focus:function(){if(!(this._focusedField=null)===this.validationResult||"none"===this.options.focus)return null;for(var i,o=0;o<this.fields.length&&(i=this.fields[o],!(!0!==i.validationResult&&0<i.validationResult.length&&void 0===i.options.noFocus&&(this._focusedField=i.$element,"first"===this.options.focus)));o++);return null===this._focusedField?null:this._focusedField.focus()},_destroyUI:function(){this.$element.off(".Parsley")}},Field:{_reflowUI:function(){if(this._buildUI(),this._ui){var e=function r(d,e,i){for(var t=[],n=[],s=0;s<d.length;s++){for(var p=!1,_=0;_<e.length;_++)if(d[s].assert.name===e[_].assert.name){p=!0;break}p?n.push(d[s]):t.push(d[s])}return{kept:n,added:t,removed:i?[]:r(e,d,!0).added}}(this.validationResult,this._ui.lastValidationResult);this._ui.lastValidationResult=this.validationResult,this._manageStatusClass(),this._manageErrorsMessages(e),this._actualizeTriggers(),(e.kept.length||e.added.length)&&!this._failedOnce&&(this._failedOnce=!0,this._actualizeTriggers())}},getErrorsMessages:function(){if(!0===this.validationResult)return[];for(var i=[],t=0;t<this.validationResult.length;t++)i.push(this.validationResult[t].errorMessage||this._getErrorMessage(this.validationResult[t].assert));return i},addError:function(o,t){var e=1<arguments.length&&void 0!==t?t:{},i=e.message,r=e.assert,n=e.updateClass,s=void 0===n||n;this._buildUI(),this._addError(o,{message:i,assert:r}),s&&this._errorClass()},updateError:function(o,t){var e=1<arguments.length&&void 0!==t?t:{},i=e.message,r=e.assert,n=e.updateClass,s=void 0===n||n;this._buildUI(),this._updateError(o,{message:i,assert:r}),s&&this._errorClass()},removeError:function(o,t){var e=(1<arguments.length&&void 0!==t?t:{}).updateClass,i=void 0===e||e;this._buildUI(),this._removeError(o),i&&this._manageStatusClass()},_manageStatusClass:function(){this.hasConstraints()&&this.needsValidation()&&!0===this.validationResult?this._successClass():0<this.validationResult.length?this._errorClass():this._resetClass()},_manageErrorsMessages:function(i){if(void 0===this.options.errorsMessagesDisabled){if(void 0!==this.options.errorMessage)return i.added.length||i.kept.length?(this._insertErrorWrapper(),0===this._ui.$errorsWrapper.find(".parsley-custom-error-message").length&&this._ui.$errorsWrapper.append(T(this.options.errorTemplate).addClass("parsley-custom-error-message")),this._ui.$errorClassHandler.attr("aria-describedby",this._ui.errorsWrapperId),this._ui.$errorsWrapper.addClass("filled").attr("aria-hidden","false").find(".parsley-custom-error-message").html(this.options.errorMessage)):(this._ui.$errorClassHandler.removeAttr("aria-describedby"),this._ui.$errorsWrapper.removeClass("filled").attr("aria-hidden","true").find(".parsley-custom-error-message").remove());for(var t=0;t<i.removed.length;t++)this._removeError(i.removed[t].assert.name);for(t=0;t<i.added.length;t++)this._addError(i.added[t].assert.name,{message:i.added[t].errorMessage,assert:i.added[t].assert});for(t=0;t<i.kept.length;t++)this._updateError(i.kept[t].assert.name,{message:i.kept[t].errorMessage,assert:i.kept[t].assert})}},_addError:function(o,t){var e=t.message,i=t.assert;this._insertErrorWrapper(),this._ui.$errorClassHandler.attr("aria-describedby",this._ui.errorsWrapperId),this._ui.$errorsWrapper.addClass("filled").attr("aria-hidden","false").append(T(this.options.errorTemplate).addClass("parsley-"+o).html(e||this._getErrorMessage(i)))},_updateError:function(o,t){var e=t.message,i=t.assert;this._ui.$errorsWrapper.addClass("filled").find(".parsley-"+o).html(e||this._getErrorMessage(i))},_removeError:function(e){this._ui.$errorClassHandler.removeAttr("aria-describedby"),this._ui.$errorsWrapper.removeClass("filled").attr("aria-hidden","true").find(".parsley-"+e).remove()},_getErrorMessage:function(i){var t=i.name+"Message";return void 0===this.options[t]?window.Parsley.getErrorMessage(i):window.Parsley.formatMessage(this.options[t],i.requirements)},_buildUI:function(){if(!this._ui&&!1!==this.options.uiEnabled){var e={};this.element.setAttribute(this.options.namespace+"id",this.__id__),e.$errorClassHandler=this._manageClassHandler(),e.errorsWrapperId="parsley-id-"+(this.options.multiple?"multiple-"+this.options.multiple:this.__id__),e.$errorsWrapper=T(this.options.errorsWrapper).attr("id",e.errorsWrapperId),e.lastValidationResult=[],e.validationInformationVisible=!1,this._ui=e}},_manageClassHandler:function(){if("string"==typeof this.options.classHandler&&T(this.options.classHandler).length)return T(this.options.classHandler);var i=this.options.classHandler;if("string"==typeof this.options.classHandler&&"function"==typeof window[this.options.classHandler]&&(i=window[this.options.classHandler]),"function"==typeof i){var o=i.call(this,this);if(void 0!==o&&o.length)return o}else{if("object"===k(i)&&i instanceof jQuery&&i.length)return i;i&&M.warn("The class handler `"+i+"` does not exist in DOM nor as a global JS function")}return this._inputHolder()},_inputHolder:function(){return this.options.multiple&&"SELECT"!==this.element.nodeName?this.$element.parent():this.$element},_insertErrorWrapper:function(){var e=this.options.errorsContainer;if(0!==this._ui.$errorsWrapper.parent().length)return this._ui.$errorsWrapper.parent();if("string"==typeof e){if(T(e).length)return T(e).append(this._ui.$errorsWrapper);"function"==typeof window[e]?e=window[e]:M.warn("The errors container `"+e+"` does not exist in DOM nor as a global JS function")}return"function"==typeof e&&(e=e.call(this,this)),"object"===k(e)&&e.length?e.append(this._ui.$errorsWrapper):this._inputHolder().after(this._ui.$errorsWrapper)},_actualizeTriggers:function(){var o,n=this,e=this._findRelated();e.off(".Parsley"),this._failedOnce?e.on(M.namespaceEvents(this.options.triggerAfterFailure,"Parsley"),function(){n._validateIfNeeded()}):(o=M.namespaceEvents(this.options.trigger,"Parsley"))&&e.on(o,function(e){n._validateIfNeeded(e)})},_validateIfNeeded:function(i){var t=this;i&&/key|input/.test(i.type)&&(!this._ui||!this._ui.validationInformationVisible)&&this.getValue().length<=this.options.validationThreshold||(this.options.debounce?(window.clearTimeout(this._debounced),this._debounced=window.setTimeout(function(){return t.validate()},this.options.debounce)):this.validate())},_resetUI:function(){this._failedOnce=!1,this._actualizeTriggers(),void 0!==this._ui&&(this._ui.$errorsWrapper.removeClass("filled").children().remove(),this._resetClass(),this._ui.lastValidationResult=[],this._ui.validationInformationVisible=!1)},_destroyUI:function(){this._resetUI(),void 0!==this._ui&&this._ui.$errorsWrapper.remove(),delete this._ui},_successClass:function(){this._ui.validationInformationVisible=!0,this._ui.$errorClassHandler.removeClass(this.options.errorClass).addClass(this.options.successClass)},_errorClass:function(){this._ui.validationInformationVisible=!0,this._ui.$errorClassHandler.removeClass(this.options.successClass).addClass(this.options.errorClass)},_resetClass:function(){this._ui.$errorClassHandler.removeClass(this.options.successClass).removeClass(this.options.errorClass)}}},p={pending:null,resolved:!0,rejected:!1};g.prototype={onSubmitValidate:function(o){var t=this;if(!0!==o.parsley){var e=this._submitSource||this.$element.find(M._SubmitSelector)[0];if(this._submitSource=null,this.$element.find(".parsley-synthetic-submit-button").prop("disabled",!0),!e||null===e.getAttribute("formnovalidate")){window.Parsley._remoteCache={};var i=this.whenValidate({event:o});"resolved"===i.state()&&!1!==this._trigger("submit")||(o.stopImmediatePropagation(),o.preventDefault(),"pending"===i.state()&&i.done(function(){t._submit(e)}))}}},onSubmitButton:function(e){this._submitSource=e.currentTarget},_submit:function(i){if(!1!==this._trigger("submit")){if(i){var t=this.$element.find(".parsley-synthetic-submit-button").prop("disabled",!1);0===t.length&&(t=T("<input class=\"parsley-synthetic-submit-button\" type=\"hidden\">").appendTo(this.$element)),t.attr({name:i.getAttribute("name"),value:i.getAttribute("value")})}this.$element.trigger(h(T.Event("submit"),{parsley:!0}))}},validate:function(i){if(1<=arguments.length&&!T.isPlainObject(i)){M.warnOnce("Calling validate on a parsley form without passing arguments as an object is deprecated.");var o=Array.prototype.slice.call(arguments);i={group:o[0],force:o[1],event:o[2]}}return p[this.whenValidate(i).state()]},whenValidate:function(l){var t,d=this,i=0<arguments.length&&void 0!==l?l:{},r=i.group,n=i.force,s=i.event;(this.submitEvent=s)&&(this.submitEvent=h({},s,{preventDefault:function(){M.warnOnce("Using `this.submitEvent.preventDefault()` is deprecated; instead, call `this.validationResult = false`"),d.validationResult=!1}})),this.validationResult=!0,this._trigger("validate"),this._refreshFields();var a=this._withoutReactualizingFormOptions(function(){return T.map(d.fields,function(e){return e.whenValidate({force:n,group:r})})});return(t=M.all(a).done(function(){d._trigger("success")}).fail(function(){d.validationResult=!1,d.focus(),d._trigger("error")}).always(function(){d._trigger("validated")})).pipe.apply(t,S(this._pipeAccordingToValidationResult()))},isValid:function(i){if(1<=arguments.length&&!T.isPlainObject(i)){M.warnOnce("Calling isValid on a parsley form without passing arguments as an object is deprecated.");var o=Array.prototype.slice.call(arguments);i={group:o[0],force:o[1]}}return p[this.whenValid(i).state()]},whenValid:function(o){var t=this,e=0<arguments.length&&void 0!==o?o:{},i=e.group,r=e.force;this._refreshFields();var n=this._withoutReactualizingFormOptions(function(){return T.map(t.fields,function(e){return e.whenValid({group:i,force:r})})});return M.all(n)},refresh:function(){return this._refreshFields(),this},reset:function(){for(var e=0;e<this.fields.length;e++)this.fields[e].reset();this._trigger("reset")},destroy:function(){this._destroyUI();for(var e=0;e<this.fields.length;e++)this.fields[e].destroy();this.$element.removeData("Parsley"),this._trigger("destroy")},_refreshFields:function(){return this.actualizeOptions()._bindFields()},_bindFields:function(){var o=this,e=this.fields;return this.fields=[],this.fieldsMappedById={},this._withoutReactualizingFormOptions(function(){o.$element.find(o.options.inputs).not(o.options.excluded).not("[".concat(o.options.namespace,"excluded=true]")).each(function(n,t){var e=new window.Parsley.Factory(t,{},o);if("Field"===e.__class__||"FieldMultiple"===e.__class__){var i=e.__class__+"-"+e.__id__;void 0===o.fieldsMappedById[i]&&(o.fieldsMappedById[i]=e,o.fields.push(e))}}),T.each(M.difference(e,o.fields),function(i,t){t.reset()})}),this},_withoutReactualizingFormOptions:function(o){var t=this.actualizeOptions;this.actualizeOptions=function(){return this};var e=o();return this.actualizeOptions=t,e},_trigger:function(e){return this.trigger("form:"+e)}};var _={pending:null,resolved:!0,rejected:!(f.prototype={validate:function(o,t){var e;return(e=this.validator).validate.apply(e,[o].concat(S(this.requirementList),[t]))},_parseRequirements:function(o){var i=this;this.requirementList=this.validator.parseRequirements(this.requirements,function(n){return o[i.name+((t=n)[0].toUpperCase()+t.slice(1))];var t})}})};y.prototype={validate:function(i){1<=arguments.length&&!T.isPlainObject(i)&&(M.warnOnce("Calling validate on a parsley field without passing arguments as an object is deprecated."),i={options:i});var o=this.whenValidate(i);if(!o)return!0;switch(o.state()){case"pending":return null;case"resolved":return!0;case"rejected":return this.validationResult}},whenValidate:function(o){var t,a=this,i=0<arguments.length&&void 0!==o?o:{},r=i.force,n=i.group;if(this.refresh(),!n||this._isInGroup(n))return this.value=this.getValue(),this._trigger("validate"),(t=this.whenValid({force:r,value:this.value,_refreshed:!0}).always(function(){a._reflowUI()}).done(function(){a._trigger("success")}).fail(function(){a._trigger("error")}).always(function(){a._trigger("validated")})).pipe.apply(t,S(this._pipeAccordingToValidationResult()))},hasConstraints:function(){return 0!==this.constraints.length},needsValidation:function(e){return void 0===e&&(e=this.getValue()),e.length||this._isRequired()||void 0!==this.options.validateIfEmpty},_isInGroup:function(e){return Array.isArray(this.options.group)?-1!==T.inArray(e,this.options.group):this.options.group===e},isValid:function(o){if(1<=arguments.length&&!T.isPlainObject(o)){M.warnOnce("Calling isValid on a parsley field without passing arguments as an object is deprecated.");var n=Array.prototype.slice.call(arguments);o={force:n[0],value:n[1]}}var e=this.whenValid(o);return!e||_[e.state()]},whenValid:function(d){var p=this,t=0<arguments.length&&void 0!==d?d:{},e=t.force,i=void 0!==e&&e,n=t.value,r=t.group;if(t._refreshed||this.refresh(),!r||this._isInGroup(r)){if(this.validationResult=!0,!this.hasConstraints())return T.when();if(null==n&&(n=this.getValue()),!this.needsValidation(n)&&!0!==i)return T.when();var a=this._getGroupedConstraints(),o=[];return T.each(a,function(s,t){var e=M.all(T.map(t,function(e){return p._validateConstraint(n,e)}));if(o.push(e),"rejected"===e.state())return!1}),M.all(o)}},_validateConstraint:function(o,n){var e=this,t=n.validate(o,this);return!1===t&&(t=T.Deferred().reject()),M.all([t]).fail(function(i){e.validationResult instanceof Array||(e.validationResult=[]),e.validationResult.push({assert:n,errorMessage:"string"==typeof i&&i})})},getValue:function(){var e;return null==(e="function"==typeof this.options.value?this.options.value(this):void 0===this.options.value?this.$element.val():this.options.value)?"":this._handleWhitespace(e)},reset:function(){return this._resetUI(),this._trigger("reset")},destroy:function(){this._destroyUI(),this.$element.removeData("Parsley"),this.$element.removeData("FieldMultiple"),this._trigger("destroy")},refresh:function(){return this._refreshConstraints(),this},_refreshConstraints:function(){return this.actualizeOptions()._bindConstraints()},refreshConstraints:function(){return M.warnOnce("Parsley's refreshConstraints is deprecated. Please use refresh"),this.refresh()},addConstraint:function(o,t,e,i){if(window.Parsley._validatorRegistry.validators[o]){var s=new f(this,o,t,e,i);"undefined"!==this.constraintsByName[s.name]&&this.removeConstraint(s.name),this.constraints.push(s),this.constraintsByName[s.name]=s}return this},removeConstraint:function(i){for(var t=0;t<this.constraints.length;t++)if(i===this.constraints[t].name){this.constraints.splice(t,1);break}return delete this.constraintsByName[i],this},updateConstraint:function(o,t,e){return this.removeConstraint(o).addConstraint(o,t,e)},_bindConstraints:function(){for(var o=[],t={},e=0;e<this.constraints.length;e++)!1===this.constraints[e].isDomConstraint&&(o.push(this.constraints[e]),t[this.constraints[e].name]=this.constraints[e]);for(var n in this.constraints=o,this.constraintsByName=t,this.options)this.addConstraint(n,this.options[n],void 0,!0);return this._bindHtml5Constraints()},_bindHtml5Constraints:function(){null!==this.element.getAttribute("required")&&this.addConstraint("required",!0,void 0,!0),null!==this.element.getAttribute("pattern")&&this.addConstraint("pattern",this.element.getAttribute("pattern"),void 0,!0);var o=this.element.getAttribute("min"),t=this.element.getAttribute("max");null!==o&&null!==t?this.addConstraint("range",[o,t],void 0,!0):null===o?null!==t&&this.addConstraint("max",t,void 0,!0):this.addConstraint("min",o,void 0,!0),null!==this.element.getAttribute("minlength")&&null!==this.element.getAttribute("maxlength")?this.addConstraint("length",[this.element.getAttribute("minlength"),this.element.getAttribute("maxlength")],void 0,!0):null===this.element.getAttribute("minlength")?null!==this.element.getAttribute("maxlength")&&this.addConstraint("maxlength",this.element.getAttribute("maxlength"),void 0,!0):this.addConstraint("minlength",this.element.getAttribute("minlength"),void 0,!0);var e=M.getType(this.element);return"number"===e?this.addConstraint("type",["number",{step:this.element.getAttribute("step")||"1",base:o||this.element.getAttribute("value")}],void 0,!0):/^(email|url|range|date)$/i.test(e)?this.addConstraint("type",e,void 0,!0):this},_isRequired:function(){return void 0!==this.constraintsByName.required&&!1!==this.constraintsByName.required.requirements},_trigger:function(e){return this.trigger("field:"+e)},_handleWhitespace:function(e){return!0===this.options.trimValue&&M.warnOnce("data-parsley-trim-value=\"true\" is deprecated, please use data-parsley-whitespace=\"trim\""),"squish"===this.options.whitespace&&(e=e.replace(/\s{2,}/g," ")),"trim"!==this.options.whitespace&&"squish"!==this.options.whitespace&&!0!==this.options.trimValue||(e=M.trimString(e)),e},_isDateInput:function(){var e=this.constraintsByName.type;return e&&"date"===e.requirements},_getGroupedConstraints:function(){if(!1===this.options.priorityEnabled)return[this.constraints];for(var o,n=[],t={},e=0;e<this.constraints.length;e++)o=this.constraints[e].priority,t[o]||n.push(t[o]=[]),t[o].push(this.constraints[e]);return n.sort(function(i,t){return t[0].priority-i[0].priority}),n}},w.prototype={addElement:function(e){return this.$elements.push(e),this},_refreshConstraints:function(){var o;if(this.constraints=[],"SELECT"===this.element.nodeName)return this.actualizeOptions()._bindConstraints(),this;for(var n=0;n<this.$elements.length;n++)if(T("html").has(this.$elements[n]).length){o=this.$elements[n].data("FieldMultiple")._refreshConstraints().constraints;for(var s=0;s<o.length;s++)this.addConstraint(o[s].name,o[s].requirements,o[s].priority,o[s].isDomConstraint)}else this.$elements.splice(n,1);return this},getValue:function(){if("function"==typeof this.options.value)return this.options.value(this);if(void 0!==this.options.value)return this.options.value;if("INPUT"===this.element.nodeName){var i=M.getType(this.element);if("radio"===i)return this._findRelated().filter(":checked").val()||"";if("checkbox"===i){var t=[];return this._findRelated().filter(":checked").each(function(){t.push(T(this).val())}),t}}return"SELECT"===this.element.nodeName&&null===this.$element.val()?[]:this.$element.val()},_init:function(){return this.$elements=[this.$element],this}},b.prototype={init:function(e){return this.__class__="Parsley",this.__version__="2.9.2",this.__id__=M.generateID(),this._resetOptions(e),"FORM"===this.element.nodeName||M.checkAttr(this.element,this.options.namespace,"validate")&&!this.$element.is(this.options.inputs)?this.bind("parsleyForm"):this.isMultiple()?this.handleMultiple():this.bind("parsleyField")},isMultiple:function(){var e=M.getType(this.element);return"radio"===e||"checkbox"===e||"SELECT"===this.element.nodeName&&null!==this.element.getAttribute("multiple")},handleMultiple:function(){var o,s,a=this;if(this.options.multiple=this.options.multiple||(o=this.element.getAttribute("name"))||this.element.getAttribute("id"),"SELECT"===this.element.nodeName&&null!==this.element.getAttribute("multiple"))return this.options.multiple=this.options.multiple||this.__id__,this.bind("parsleyFieldMultiple");if(!this.options.multiple)return M.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,""),o&&T("input[name=\""+o+"\"]").each(function(o,t){var e=M.getType(t);"radio"!==e&&"checkbox"!==e||t.setAttribute(a.options.namespace+"multiple",a.options.multiple)});for(var r=this._findRelated(),i=0;i<r.length;i++)if(void 0!==(s=T(r.get(i)).data("Parsley"))){this.$element.data("FieldMultiple")||s.addElement(this.$element);break}return this.bind("parsleyField",!0),s||this.bind("parsleyFieldMultiple")},bind:function(o,t){var e;switch(o){case"parsleyForm":e=T.extend(new g(this.element,this.domOptions,this.options),new i,window.ParsleyExtend)._bindFields();break;case"parsleyField":e=T.extend(new y(this.element,this.domOptions,this.options,this.parent),new i,window.ParsleyExtend);break;case"parsleyFieldMultiple":e=T.extend(new y(this.element,this.domOptions,this.options,this.parent),new w,new i,window.ParsleyExtend)._init();break;default:throw new Error(o+"is not a supported Parsley type")}return this.options.multiple&&M.setAttr(this.element,this.options.namespace,"multiple",this.options.multiple),void 0===t?(this.$element.data("Parsley",e),e._actualizeTriggers(),e._trigger("init")):this.$element.data("FieldMultiple",e),e}};var v=T.fn.jquery.split(".");if(1>=parseInt(v[0])&&8>parseInt(v[1]))throw"The loaded version of jQuery is too old. Please upgrade to 1.8.x or better.";v.forEach||M.warn("Parsley requires ES5 to run properly. Please include https://github.com/es-shims/es5-shim");var E=h(new i,{element:document,$element:T(document),actualizeOptions:null,_resetOptions:null,Factory:b,version:"2.9.2"});h(y.prototype,s.Field,i.prototype),h(g.prototype,s.Form,i.prototype),h(b.prototype,i.prototype),T.fn.parsley=T.fn.psly=function(i){if(1<this.length){var t=[];return this.each(function(){t.push(T(this).parsley(i))}),t}return 0==this.length?void 0:new b(this[0],i)},void 0===window.ParsleyExtend&&(window.ParsleyExtend={}),E.options=h(M.objectCreate(d),window.ParsleyConfig),window.ParsleyConfig=E.options,window.Parsley=window.psly=E,E.Utils=M,window.ParsleyUtils={},T.each(M,function(i,t){"function"==typeof t&&(window.ParsleyUtils[i]=function(){return M.warnOnce("Accessing `window.ParsleyUtils` is deprecated. Use `window.Parsley.Utils` instead."),M[i].apply(M,arguments)})});var x=window.Parsley._validatorRegistry=new r(window.ParsleyConfig.validators,window.ParsleyConfig.i18n);window.ParsleyValidator={},T.each(["setLocale","addCatalog","addMessage","addMessages","getErrorMessage","formatMessage","addValidator","updateValidator","removeValidator","hasValidator"],function(i,o){window.Parsley[o]=function(){return x[o].apply(x,arguments)},window.ParsleyValidator[o]=function(){var e;return M.warnOnce("Accessing the method '".concat(o,"' through Validator is deprecated. Simply call 'window.Parsley.").concat(o,"(...)'")),(e=window.Parsley)[o].apply(e,arguments)}}),window.Parsley.UI=s,window.ParsleyUI={removeError:function(o,t,e){var i=!0!==e;return M.warnOnce("Accessing UI is deprecated. Call 'removeError' on the instance directly. Please comment in issue 1073 as to your need to call this method."),o.removeError(t,{updateClass:i})},getErrorsMessages:function(e){return M.warnOnce("Accessing UI is deprecated. Call 'getErrorsMessages' on the instance directly."),e.getErrorsMessages()}},T.each(["addError","updateError"],function(e,o){window.ParsleyUI[o]=function(a,t,e,i,r){var n=!0!==r;return M.warnOnce("Accessing UI is deprecated. Call '".concat(o,"' on the instance directly. Please comment in issue 1073 as to your need to call this method.")),a[o](t,{message:e,assert:i,updateClass:n})}}),!1!==window.ParsleyConfig.autoBind&&T(function(){T("[data-parsley-validate]").length&&T("[data-parsley-validate]").parsley()});var $=T({});return T.listen=function(o,t){var n;if(C(),"object"===k(arguments[1])&&"function"==typeof arguments[2]&&(n=arguments[1],t=arguments[2]),"function"!=typeof t)throw new Error("Wrong parameters");window.Parsley.on(O(o),A(t,n))},T.listenTo=function(o,t,e){if(C(),!(o instanceof y||o instanceof g))throw new Error("Must give Parsley instance");if("string"!=typeof t||"function"!=typeof e)throw new Error("Wrong parameters");o.on(O(t),A(e))},T.unsubscribe=function(i,t){if(C(),"string"!=typeof i||"function"!=typeof t)throw new Error("Wrong arguments");window.Parsley.off(O(i),t.parsleyAdaptedCallback)},T.unsubscribeTo=function(i,t){if(C(),!(i instanceof y||i instanceof g))throw new Error("Must give Parsley instance");i.off(O(t))},T.unsubscribeAll=function(i){C(),window.Parsley.off(O(i)),T("form,input,textarea,select").each(function(){var e=T(this).data("Parsley");e&&e.off(O(i))})},T.emit=function(o,t){C();var n=t instanceof y||t instanceof g,i=Array.prototype.slice.call(arguments,n?2:1);i.unshift(O(o)),n||(t=window.Parsley),t.trigger.apply(t,S(i))},T.extend(!0,E,{asyncValidators:{default:{fn:function(e){return 200<=e.status&&300>e.status},url:!1},reverse:{fn:function(e){return 200>e.status||300<=e.status},url:!1}},addAsyncValidator:function(o,t,e,i){return E.asyncValidators[o]={fn:t,url:e||!1,options:i||{}},this}}),E.addValidator("remote",{requirementType:{"":"string",validator:"string",reverse:"boolean",options:"object"},validateString:function(p,_,c,i){function t(){var e=E.asyncValidators[a].fn.call(i,l,_,c);return e=e||T.Deferred().reject(),T.when(e)}var r,g,u={},a=c.validator||(!0===c.reverse?"reverse":"default");if(void 0===E.asyncValidators[a])throw new Error("Calling an undefined async validator: `"+a+"`");-1<(_=E.asyncValidators[a].url||_).indexOf("{value}")?_=_.replace("{value}",encodeURIComponent(p)):u[i.element.getAttribute("name")||i.element.getAttribute("id")]=p;var o=T.extend(!0,c.options||{},E.asyncValidators[a].options);r=T.extend(!0,{},{url:_,data:u,type:"GET"},o),i.trigger("field:ajaxoptions",i,r),g=T.param(r),void 0===E._remoteCache&&(E._remoteCache={});var l=E._remoteCache[g]=E._remoteCache[g]||T.ajax(r);return l.then(t,t)},priority:-1}),E.on("form:submit",function(){E._remoteCache={}}),i.prototype.addAsyncValidator=function(){return M.warnOnce("Accessing the method `addAsyncValidator` through an instance is deprecated. Simply call `Parsley.addAsyncValidator(...)`"),E.addAsyncValidator.apply(E,arguments)},E.addMessages("en",{defaultMessage:"This value seems to be invalid.",type:{email:"This value should be a valid email.",url:"This value should be a valid url.",number:"This value should be a valid number.",integer:"This value should be a valid integer.",digits:"This value should be digits.",alphanum:"This value should be alphanumeric."},notblank:"This value should not be blank.",required:"This value is required.",pattern:"This value seems to be invalid.",min:"This value should be greater than or equal to %s.",max:"This value should be lower than or equal to %s.",range:"This value should be between %s and %s.",minlength:"This value is too short. It should have %s characters or more.",maxlength:"This value is too long. It should have %s characters or fewer.",length:"This value length is invalid. It should be between %s and %s characters long.",mincheck:"You must select at least %s choices.",maxcheck:"You must select %s choices or fewer.",check:"You must select between %s and %s choices.",equalto:"This value should be the same.",euvatin:"It's not a valid VAT Identification Number."}),E.setLocale("en"),new function(){var o=this,s=window||global;h(this,{isNativeEvent:function(e){return e.originalEvent&&!1!==e.originalEvent.isTrusted},fakeInputEvent:function(e){o.isNativeEvent(e)&&T(e.target).trigger("input")},misbehaves:function(e){o.isNativeEvent(e)&&(o.behavesOk(e),T(document).on("change.inputevent",e.data.selector,o.fakeInputEvent),o.fakeInputEvent(e))},behavesOk:function(e){o.isNativeEvent(e)&&T(document).off("input.inputevent",e.data.selector,o.behavesOk).off("change.inputevent",e.data.selector,o.misbehaves)},install:function(){if(!s.inputEventPatched){s.inputEventPatched="0.0.3";for(var n,r=0,a=["select","input[type=\"checkbox\"]","input[type=\"radio\"]","input[type=\"file\"]"];r<a.length;r++)n=a[r],T(document).on("input.inputevent",n,{selector:n},o.behavesOk).on("change.inputevent",n,{selector:n},o.misbehaves)}},uninstall:function(){delete s.inputEventPatched,T(document).off(".inputevent")}})}().install(),E}),Parsley.addMessages("de",{defaultMessage:"Die Eingabe scheint nicht korrekt zu sein.",type:{email:"Die Eingabe muss eine g\xFCltige E-Mail-Adresse sein.",url:"Die Eingabe muss eine g\xFCltige URL sein.",number:"Die Eingabe muss eine Zahl sein.",integer:"Die Eingabe muss eine Zahl sein.",digits:"Die Eingabe darf nur Ziffern enthalten.",alphanum:"Die Eingabe muss alphanumerisch sein."},notblank:"Die Eingabe darf nicht leer sein.",required:"Dies ist ein Pflichtfeld.",pattern:"Die Eingabe scheint ung\xFCltig zu sein.",min:"Die Eingabe muss gr\xF6\xDFer oder gleich %s sein.",max:"Die Eingabe muss kleiner oder gleich %s sein.",range:"Die Eingabe muss zwischen %s und %s liegen.",minlength:"Die Eingabe ist zu kurz. Es m\xFCssen mindestens %s Zeichen eingegeben werden.",maxlength:"Die Eingabe ist zu lang. Es d\xFCrfen h\xF6chstens %s Zeichen eingegeben werden.",length:"Die L\xE4nge der Eingabe ist ung\xFCltig. Es m\xFCssen zwischen %s und %s Zeichen eingegeben werden.",mincheck:"W\xE4hlen Sie mindestens %s Angaben aus.",maxcheck:"W\xE4hlen Sie maximal %s Angaben aus.",check:"W\xE4hlen Sie zwischen %s und %s Angaben.",equalto:"Dieses Feld muss dem anderen entsprechen."}),Parsley.setLocale("de");