function googleTranslateElementInit(){new google.translate.TranslateElement({pageLanguage:"en",layout:google.translate.TranslateElement.FloatPosition.BOTTOM_RIGHT,includedLanguages:"es,zh-CN,zh-TW,vi,hi,ko,fr,de,ur,ar,pt,ru,gu,fa,ja,tl"},"google-translate")}(function(){var e=this;(function(){(function(){this.Rails={linkClickSelector:"a[data-confirm], a[data-method], a[data-remote]:not([disabled]), a[data-disable-with], a[data-disable]",buttonClickSelector:{selector:"button[data-remote]:not([form]), button[data-confirm]:not([form])",exclude:"form button"},inputChangeSelector:"select[data-remote], input[data-remote], textarea[data-remote]",formSubmitSelector:"form",formInputClickSelector:"form input[type=submit], form input[type=image], form button[type=submit], form button:not([type]), input[type=submit][form], input[type=image][form], button[type=submit][form], button[form]:not([type])",formDisableSelector:"input[data-disable-with]:enabled, button[data-disable-with]:enabled, textarea[data-disable-with]:enabled, input[data-disable]:enabled, button[data-disable]:enabled, textarea[data-disable]:enabled",formEnableSelector:"input[data-disable-with]:disabled, button[data-disable-with]:disabled, textarea[data-disable-with]:disabled, input[data-disable]:disabled, button[data-disable]:disabled, textarea[data-disable]:disabled",fileInputSelector:"input[name][type=file]:not([disabled])",linkDisableSelector:"a[data-disable-with], a[data-disable]",buttonDisableSelector:"button[data-remote][data-disable-with], button[data-remote][data-disable]"}}).call(this)}).call(e);var y=e.Rails;(function(){(function(){var t;t=null,y.loadCSPNonce=function(){var e;return t=null!=(e=document.querySelector("meta[name=csp-nonce]"))?e.content:void 0},y.cspNonce=function(){return null!=t?t:y.loadCSPNonce()}}).call(this),function(){var i,n;n=Element.prototype.matches||Element.prototype.matchesSelector||Element.prototype.mozMatchesSelector||Element.prototype.msMatchesSelector||Element.prototype.oMatchesSelector||Element.prototype.webkitMatchesSelector,y.matches=function(e,t){return null!=t.exclude?n.call(e,t.selector)&&!n.call(e,t.exclude):n.call(e,t)},i="_ujsData",y.getData=function(e,t){var n;return null!=(n=e[i])?n[t]:void 0},y.setData=function(e,t,n){return null==e[i]&&(e[i]={}),e[i][t]=n},y.$=function(e){return Array.prototype.slice.call(document.querySelectorAll(e))}}.call(this),function(){var n,i,r;n=y.$,r=y.csrfToken=function(){var e;return(e=document.querySelector("meta[name=csrf-token]"))&&e.content},i=y.csrfParam=function(){var e;return(e=document.querySelector("meta[name=csrf-param]"))&&e.content},y.CSRFProtection=function(e){var t;if(null!=(t=r()))return e.setRequestHeader("X-CSRF-Token",t)},y.refreshCSRFTokens=function(){var e,t;if(t=r(),e=i(),null!=t&&null!=e)return n('form input[name="'+e+'"]').forEach(function(e){return e.value=t})}}.call(this),function(){var r,t,o,n;o=y.matches,"function"!=typeof(r=window.CustomEvent)&&((r=function(e,t){var n;return(n=document.createEvent("CustomEvent")).initCustomEvent(e,t.bubbles,t.cancelable,t.detail),n}).prototype=window.Event.prototype,n=r.prototype.preventDefault,r.prototype.preventDefault=function(){var e;return e=n.call(this),this.cancelable&&!this.defaultPrevented&&Object.defineProperty(this,"defaultPrevented",{get:function(){return!0}}),e}),t=y.fire=function(e,t,n){var i;return i=new r(t,{bubbles:!0,cancelable:!0,detail:n}),e.dispatchEvent(i),!i.defaultPrevented},y.stopEverything=function(e){return t(e.target,"ujs:everythingStopped"),e.preventDefault(),e.stopPropagation(),e.stopImmediatePropagation()},y.delegate=function(e,n,t,i){return e.addEventListener(t,function(e){var t;for(t=e.target;t instanceof Element&&!o(t,n);)t=t.parentNode;if(t instanceof Element&&!1===i.call(t,e))return e.preventDefault(),e.stopPropagation()})}}.call(this),function(){var t,i,e,o,r,s;o=y.cspNonce,i=y.CSRFProtection,y.fire,t={"*":"*/*",text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript",script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},y.ajax=function(n){var i;return n=r(n),i=e(n,function(){var e,t;return t=s(null!=(e=i.response)?e:i.responseText,i.getResponseHeader("Content-Type")),2===Math.floor(i.status/100)?"function"==typeof n.success&&n.success(t,i.statusText,i):"function"==typeof n.error&&n.error(t,i.statusText,i),"function"==typeof n.complete?n.complete(i,i.statusText):void 0}),!(null!=n.beforeSend&&!n.beforeSend(i,n))&&(i.readyState===XMLHttpRequest.OPENED?i.send(n.data):void 0)},r=function(e){return e.url=e.url||location.href,e.type=e.type.toUpperCase(),"GET"===e.type&&e.data&&(e.url.indexOf("?")<0?e.url+="?"+e.data:e.url+="&"+e.data),null==t[e.dataType]&&(e.dataType="*"),e.accept=t[e.dataType],"*"!==e.dataType&&(e.accept+=", */*; q=0.01"),e},e=function(e,t){var n;return(n=new XMLHttpRequest).open(e.type,e.url,!0),n.setRequestHeader("Accept",e.accept),"string"==typeof e.data&&n.setRequestHeader("Content-Type","application/x-www-form-urlencoded; charset=UTF-8"),e.crossDomain||(n.setRequestHeader("X-Requested-With","XMLHttpRequest"),i(n)),n.withCredentials=!!e.withCredentials,n.onreadystatechange=function(){if(n.readyState===XMLHttpRequest.DONE)return t(n)},n},s=function(e,t){var n,i;if("string"==typeof e&&"string"==typeof t)if(t.match(/\bjson\b/))try{e=JSON.parse(e)}catch(r){}else if(t.match(/\b(?:java|ecma)script\b/))(i=document.createElement("script")).setAttribute("nonce",o()),i.text=e,document.head.appendChild(i).parentNode.removeChild(i);else if(t.match(/\b(xml|html|svg)\b/)){n=new DOMParser,t=t.replace(/;.+/,"");try{e=n.parseFromString(e,t)}catch(r){}}return e},y.href=function(e){return e.href},y.isCrossDomain=function(e){var t,n;(t=document.createElement("a")).href=location.href,n=document.createElement("a");try{return n.href=e,!((!n.protocol||":"===n.protocol)&&!n.host||t.protocol+"//"+t.host==n.protocol+"//"+n.host)}catch(i){return i,!0}}}.call(this),function(){var r,o;r=y.matches,o=function(e){return Array.prototype.slice.call(e)},y.serializeElement=function(e,t){var n,i;return n=[e],r(e,"form")&&(n=o(e.elements)),i=[],n.forEach(function(t){if(t.name&&!t.disabled)return r(t,"select")?o(t.options).forEach(function(e){if(e.selected)return i.push({name:t.name,value:e.value})}):t.checked||-1===["radio","checkbox","submit"].indexOf(t.type)?i.push({name:t.name,value:t.value}):void 0}),t&&i.push(t),i.map(function(e){return null!=e.name?encodeURIComponent(e.name)+"="+encodeURIComponent(e.value):e}).join("&")},y.formElements=function(e,t){return r(e,"form")?o(e.elements).filter(function(e){return r(e,t)}):o(e.querySelectorAll(t))}}.call(this),function(){var t,o,n;o=y.fire,n=y.stopEverything,y.handleConfirm=function(e){if(!t(this))return n(e)},t=function(e){var t,n,i;if(!(i=e.getAttribute("data-confirm")))return!0;if(t=!1,o(e,"confirm")){try{t=confirm(i)}catch(r){}n=o(e,"confirm:complete",[t])}return t&&n}}.call(this),function(){var n,i,r,o,s,a,t,l,u,c,d;u=y.matches,l=y.getData,c=y.setData,d=y.stopEverything,t=y.formElements,y.handleDisabledElement=function(e){if(this.disabled)return d(e)},y.enableElement=function(e){var t;return t=e instanceof Event?e.target:e,u(t,y.linkDisableSelector)?a(t):u(t,y.buttonDisableSelector)||u(t,y.formEnableSelector)?o(t):u(t,y.formSubmitSelector)?s(t):void 0},y.disableElement=function(e){var t;return t=e instanceof Event?e.target:e,u(t,y.linkDisableSelector)?r(t):u(t,y.buttonDisableSelector)||u(t,y.formDisableSelector)?n(t):u(t,y.formSubmitSelector)?i(t):void 0},r=function(e){var t;return null!=(t=e.getAttribute("data-disable-with"))&&(c(e,"ujs:enable-with",e.innerHTML),e.innerHTML=t),e.addEventListener("click",d),c(e,"ujs:disabled",!0)},a=function(e){var t;return null!=(t=l(e,"ujs:enable-with"))&&(e.innerHTML=t,c(e,"ujs:enable-with",null)),e.removeEventListener("click",d),c(e,"ujs:disabled",null)},i=function(e){return t(e,y.formDisableSelector).forEach(n)},n=function(e){var t;return null!=(t=e.getAttribute("data-disable-with"))&&(u(e,"button")?(c(e,"ujs:enable-with",e.innerHTML),e.innerHTML=t):(c(e,"ujs:enable-with",e.value),e.value=t)),e.disabled=!0,c(e,"ujs:disabled",!0)},s=function(e){return t(e,y.formEnableSelector).forEach(o)},o=function(e){var t;return null!=(t=l(e,"ujs:enable-with"))&&(u(e,"button")?e.innerHTML=t:e.value=t,c(e,"ujs:enable-with",null)),e.disabled=!1,c(e,"ujs:disabled",null)}}.call(this),function(){var l;l=y.stopEverything,y.handleMethod=function(e){var t,n,i,r,o,s,a;if(a=(s=this).getAttribute("data-method"))return o=y.href(s),n=y.csrfToken(),t=y.csrfParam(),i=document.createElement("form"),r="<input name='_method' value='"+a+"' type='hidden' />",null==t||null==n||y.isCrossDomain(o)||(r+="<input name='"+t+"' value='"+n+"' type='hidden' />"),r+='<input type="submit" />',i.method="post",i.action=o,i.target=s.target,i.innerHTML=r,i.style.display="none",document.body.appendChild(i),i.querySelector('[type="submit"]').click(),l(e)}}.call(this),function(){var l,u,c,d,h,f,p,m,g,v=[].slice;f=y.matches,c=y.getData,m=y.setData,u=y.fire,g=y.stopEverything,l=y.ajax,d=y.isCrossDomain,p=y.serializeElement,h=function(e){var t;return null!=(t=e.getAttribute("data-remote"))&&"false"!==t},y.handleRemote=function(e){var t,n,i,r,o,s,a;return!h(r=this)||(u(r,"ajax:before")?(a=r.getAttribute("data-with-credentials"),i=r.getAttribute("data-type")||"script",f(r,y.formSubmitSelector)?(t=c(r,"ujs:submit-button"),o=c(r,"ujs:submit-button-formmethod")||r.method,s=c(r,"ujs:submit-button-formaction")||r.getAttribute("action")||location.href,"GET"===o.toUpperCase()&&(s=s.replace(/\?.*$/,"")),"multipart/form-data"===r.enctype?(n=new FormData(r),null!=t&&n.append(t.name,t.value)):n=p(r,t),m(r,"ujs:submit-button",null),m(r,"ujs:submit-button-formmethod",null),m(r,"ujs:submit-button-formaction",null)):f(r,y.buttonClickSelector)||f(r,y.inputChangeSelector)?(o=r.getAttribute("data-method"),s=r.getAttribute("data-url"),n=p(r,r.getAttribute("data-params"))):(o=r.getAttribute("data-method"),s=y.href(r),n=r.getAttribute("data-params")),l({type:o||"GET",url:s,data:n,dataType:i,beforeSend:function(e,t){return u(r,"ajax:beforeSend",[e,t])?u(r,"ajax:send",[e]):(u(r,"ajax:stopped"),!1)},success:function(){var e;return e=1<=arguments.length?v.call(arguments,0):[],u(r,"ajax:success",e)},error:function(){var e;return e=1<=arguments.length?v.call(arguments,0):[],u(r,"ajax:error",e)},complete:function(){var e;return e=1<=arguments.length?v.call(arguments,0):[],u(r,"ajax:complete",e)},crossDomain:d(s),withCredentials:null!=a&&"false"!==a}),g(e)):(u(r,"ajax:stopped"),!1))},y.formSubmitButtonClick=function(){var e,t;if(t=(e=this).form)return e.name&&m(t,"ujs:submit-button",{name:e.name,value:e.value}),m(t,"ujs:formnovalidate-button",e.formNoValidate),m(t,"ujs:submit-button-formaction",e.getAttribute("formaction")),m(t,"ujs:submit-button-formmethod",e.getAttribute("formmethod"))},y.preventInsignificantClick=function(e){var t,n,i,r;if(r=((i=this).getAttribute("data-method")||"GET").toUpperCase(),t=i.getAttribute("data-params"),n=(e.metaKey||e.ctrlKey)&&"GET"===r&&!t,null!=e.button&&0!==e.button||n)return e.stopImmediatePropagation()}}.call(this),function(){var e,i,t,n,r,o,s,a,l,u,c,d,h,f,p;if(o=y.fire,t=y.delegate,a=y.getData,e=y.$,p=y.refreshCSRFTokens,i=y.CSRFProtection,h=y.loadCSPNonce,r=y.enableElement,n=y.disableElement,u=y.handleDisabledElement,l=y.handleConfirm,f=y.preventInsignificantClick,d=y.handleRemote,s=y.formSubmitButtonClick,c=y.handleMethod,"undefined"!=typeof jQuery&&null!==jQuery&&null!=jQuery.ajax){if(jQuery.rails)throw new Error("If you load both jquery_ujs and rails-ujs, use rails-ujs only.");jQuery.rails=y,jQuery.ajaxPrefilter(function(e,t,n){if(!e.crossDomain)return i(n)})}y.start=function(){if(window._rails_loaded)throw new Error("rails-ujs has already been loaded!");return window.addEventListener("pageshow",function(){return e(y.formEnableSelector).forEach(function(e){if(a(e,"ujs:disabled"))return r(e)}),e(y.linkDisableSelector).forEach(function(e){if(a(e,"ujs:disabled"))return r(e)})}),t(document,y.linkDisableSelector,"ajax:complete",r),t(document,y.linkDisableSelector,"ajax:stopped",r),t(document,y.buttonDisableSelector,"ajax:complete",r),t(document,y.buttonDisableSelector,"ajax:stopped",r),t(document,y.linkClickSelector,"click",f),t(document,y.linkClickSelector,"click",u),t(document,y.linkClickSelector,"click",l),t(document,y.linkClickSelector,"click",n),t(document,y.linkClickSelector,"click",d),t(document,y.linkClickSelector,"click",c),t(document,y.buttonClickSelector,"click",f),t(document,y.buttonClickSelector,"click",u),t(document,y.buttonClickSelector,"click",l),t(document,y.buttonClickSelector,"click",n),t(document,y.buttonClickSelector,"click",d),t(document,y.inputChangeSelector,"change",u),t(document,y.inputChangeSelector,"change",l),t(document,y.inputChangeSelector,"change",d),t(document,y.formSubmitSelector,"submit",u),t(document,y.formSubmitSelector,"submit",l),t(document,y.formSubmitSelector,"submit",d),t(document,y.formSubmitSelector,"submit",function(e){return setTimeout(function(){return n(e)},13)}),t(document,y.formSubmitSelector,"ajax:send",n),t(document,y.formSubmitSelector,"ajax:complete",r),t(document,y.formInputClickSelector,"click",f),t(document,y.formInputClickSelector,"click",u),t(document,y.formInputClickSelector,"click",l),t(document,y.formInputClickSelector,"click",s),document.addEventListener("DOMContentLoaded",p),document.addEventListener("DOMContentLoaded",h),window._rails_loaded=!0},window.Rails===y&&o(document,"rails:attachBindings")&&y.start()}.call(this)}).call(this),"object"==typeof module&&module.exports?module.exports=y:"function"==typeof define&&define.amd&&define(y)}).call(this),function(e,t){"use strict";"object"==typeof module&&"object"==typeof module.exports?module.exports=e.document?t(e,!0):function(e){if(!e.document)throw new Error("jQuery requires a window with a document");return t(e)}:t(e)}("undefined"!=typeof window?window:this,function(_,e){"use strict";function m(e,t,n){var i,r,o=(n=n||Se).createElement("script");if(o.text=e,t)for(i in ke)(r=t[i]||t.getAttribute&&t.getAttribute(i))&&o.setAttribute(i,r);n.head.appendChild(o).parentNode.removeChild(o)}function g(e){return null==e?e+"":"object"==typeof e||"function"==typeof e?fe[pe.call(e)]||"object":typeof e}function a(e){var t=!!e&&"length"in e&&e.length,n=g(e);return!be(e)&&!we(e)&&("array"===n||0===t||"number"==typeof t&&0<t&&t-1 in e)}function u(e,t){return e.nodeName&&e.nodeName.toLowerCase()===t.toLowerCase()}function t(e,n,i){return be(n)?_e.grep(e,function(e,t){return!!n.call(e,t,e)!==i}):n.nodeType?_e.grep(e,function(e){return e===n!==i}):"string"!=typeof n?_e.grep(e,function(e){return-1<he.call(n,e)!==i}):_e.filter(n,e,i)}function n(e,t){for(;(e=e[t])&&1!==e.nodeType;);return e}function c(e){var n={};return _e.each(e.match(Ie)||[],function(e,t){n[t]=!0}),n}function d(e){return e}function h(e){throw e}function l(e,t,n,i){var r;try{e&&be(r=e.promise)?r.call(e).done(t).fail(n):e&&be(r=e.then)?r.call(e,t,n):t.apply(undefined,[e].slice(i))}catch(e){n.apply(undefined,[e])}}function i(){Se.removeEventListener("DOMContentLoaded",i),_.removeEventListener("load",i),_e.ready()}function r(e,t){return t.toUpperCase()}function f(e){return e.replace(Re,"ms-").replace(Ve,r)}function o(){this.expando=_e.expando+o.uid++}function s(e){return"true"===e||"false"!==e&&("null"===e?null:e===+e+""?+e:ze.test(e)?JSON.parse(e):e)}function p(e,t,n){var i;if(n===undefined&&1===e.nodeType)if(i="data-"+t.replace(He,"-$&").toLowerCase(),"string"==typeof(n=e.getAttribute(i))){try{n=s(n)}catch(r){}Be.set(e,t,n)}else n=undefined;return n}function v(e,t,n,i){var r,o,s=20,a=i?function(){return i.cur()}:function(){return _e.css(e,t,"")},l=a(),u=n&&n[3]||(_e.cssNumber[t]?"":"px"),c=e.nodeType&&(_e.cssNumber[t]||"px"!==u&&+l)&&We.exec(_e.css(e,t));if(c&&c[3]!==u){for(l/=2,u=u||c[3],c=+l||1;s--;)_e.style(e,t,c+u),(1-o)*(1-(o=a()/l||.5))<=0&&(s=0),c/=o;c*=2,_e.style(e,t,c+u),n=n||[]}return n&&(c=+c||+l||0,r=n[1]?c+(n[1]+1)*n[2]:+n[2],i&&(i.unit=u,i.start=c,i.end=r)),r}function y(e){var t,n=e.ownerDocument,i=e.nodeName,r=Xe[i];return r||(t=n.body.appendChild(n.createElement(i)),r=_e.css(t,"display"),t.parentNode.removeChild(t),"none"===r&&(r="block"),Xe[i]=r)}function b(e,t){for(var n,i,r=[],o=0,s=e.length;o<s;o++)(i=e[o]).style&&(n=i.style.display,t?("none"===n&&(r[o]=Ue.get(i,"display")||null,r[o]||(i.style.display="")),""===i.style.display&&Qe(i)&&(r[o]=y(i))):"none"!==n&&(r[o]="none",Ue.set(i,"display",n)));for(o=0;o<s;o++)null!=r[o]&&(e[o].style.display=r[o]);return e}function w(e,t){var n;return n="undefined"!=typeof e.getElementsByTagName?e.getElementsByTagName(t||"*"):"undefined"!=typeof e.querySelectorAll?e.querySelectorAll(t||"*"):[],t===undefined||t&&u(e,t)?_e.merge([e],n):n}function S(e,t){for(var n=0,i=e.length;n<i;n++)Ue.set(e[n],"globalEval",!t||Ue.get(t[n],"globalEval"))}function k(e,t,n,i,r){for(var o,s,a,l,u,c,d=t.createDocumentFragment(),h=[],f=0,p=e.length;f<p;f++)if((o=e[f])||0===o)if("object"===g(o))_e.merge(h,o.nodeType?[o]:o);else if(ot.test(o)){for(s=s||d.appendChild(t.createElement("div")),a=(nt.exec(o)||["",""])[1].toLowerCase(),l=rt[a]||rt._default,s.innerHTML=l[1]+_e.htmlPrefilter(o)+l[2],c=l[0];c--;)s=s.lastChild;_e.merge(h,s.childNodes),(s=d.firstChild).textContent=""}else h.push(t.createTextNode(o));for(d.textContent="",f=0;o=h[f++];)if(i&&-1<_e.inArray(o,i))r&&r.push(o);else if(u=Ke(o),s=w(d.appendChild(o),"script"),u&&S(s),n)for(c=0;o=s[c++];)it.test(o.type||"")&&n.push(o);return d}function x(){return!0}function C(){return!1}function T(e,t){return e===E()==("focus"===t)}function E(){try{return Se.activeElement}catch(e){}}function P(e,t,n,i,r,o){var s,a;if("object"==typeof t){for(a in"string"!=typeof n&&(i=i||n,n=undefined),t)P(e,a,n,i,t[a],o);return e}if(null==i&&null==r?(r=n,i=n=undefined):null==r&&("string"==typeof n?(r=i,i=undefined):(r=i,i=n,n=undefined)),!1===r)r=C;else if(!r)return e;return 1===o&&(s=r,(r=function(e){return _e().off(e),s.apply(this,arguments)}).guid=s.guid||(s.guid=_e.guid++)),e.each(function(){_e.event.add(this,t,r,i,n)})}function O(e,r,o){o?(Ue.set(e,r,!1),_e.event.add(e,r,{namespace:!1,handler:function(e){var t,n,i=Ue.get(this,r);if(1&e.isTrigger&&this[r]){if(i.length)(_e.event.special[r]||{}).delegateType&&e.stopPropagation();else if(i=ue.call(arguments),Ue.set(this,r,i),t=o(this,r),this[r](),i!==(n=Ue.get(this,r))||t?Ue.set(this,r,!1):n={},i!==n)return e.stopImmediatePropagation(),e.preventDefault(),n.value}else i.length&&(Ue.set(this,r,{value:_e.event.trigger(_e.extend(i[0],_e.Event.prototype),i.slice(1),this)}),e.stopImmediatePropagation())}})):Ue.get(e,r)===undefined&&_e.event.add(e,r,x)}function N(e,t){return u(e,"table")&&u(11!==t.nodeType?t:t.firstChild,"tr")&&_e(e).children("tbody")[0]||e}function A(e){return e.type=(null!==e.getAttribute("type"))+"/"+e.type,e}function D(e){return"true/"===(e.type||"").slice(0,5)?e.type=e.type.slice(5):e.removeAttribute("type"),e}function F(e,t){var n,i,r,o,s,a;if(1===t.nodeType){if(Ue.hasData(e)&&(a=Ue.get(e).events))for(r in Ue.remove(t,"handle events"),a)for(n=0,i=a[r].length;n<i;n++)_e.event.add(t,r,a[r][n]);Be.hasData(e)&&(o=Be.access(e),s=_e.extend({},o),Be.set(t,s))}}function I(e,t){var n=t.nodeName.toLowerCase();"input"===n&&tt.test(e.type)?t.checked=e.checked:"input"!==n&&"textarea"!==n||(t.defaultValue=e.defaultValue)}function L(n,i,r,o){i=ce(i);var e,t,s,a,l,u,c=0,d=n.length,h=d-1,f=i[0],p=be(f);if(p||1<d&&"string"==typeof f&&!ye.checkClone&&ct.test(f))return n.each(function(e){var t=n.eq(e);p&&(i[0]=f.call(this,e,t.html())),L(t,i,r,o)});if(d&&(t=(e=k(i,n[0].ownerDocument,!1,n,o)).firstChild,1===e.childNodes.length&&(e=t),t||o)){for(a=(s=_e.map(w(e,"script"),A)).length;c<d;c++)l=e,c!==h&&(l=_e.clone(l,!0,!0),a&&_e.merge(s,w(l,"script"))),r.call(n[c],l,c);if(a)for(u=s[s.length-1].ownerDocument,_e.map(s,D),c=0;c<a;c++)l=s[c],it.test(l.type||"")&&!Ue.access(l,"globalEval")&&_e.contains(u,l)&&(l.src&&"module"!==(l.type||"").toLowerCase()?_e._evalUrl&&!l.noModule&&_e._evalUrl(l.src,{nonce:l.nonce||l.getAttribute("nonce")},u):m(l.textContent.replace(dt,""),l,u))}return n}function M(e,t,n){for(var i,r=t?_e.filter(t,e):e,o=0;null!=(i=r[o]);o++)n||1!==i.nodeType||_e.cleanData(w(i)),i.parentNode&&(n&&Ke(i)&&S(w(i,"script")),i.parentNode.removeChild(i));return e}function j(e,t,n){var i,r,o,s,a=e.style;return(n=n||ft(e))&&(""!==(s=n.getPropertyValue(t)||n[t])||Ke(e)||(s=_e.style(e,t)),!ye.pixelBoxStyles()&&ht.test(s)&&mt.test(t)&&(i=a.width,r=a.minWidth,o=a.maxWidth,a.minWidth=a.maxWidth=a.width=s,s=n.width,a.width=i,a.minWidth=r,a.maxWidth=o)),s!==undefined?s+"":s}function R(e,t){return{get:function(){if(!e())return(this.get=t).apply(this,arguments);delete this.get}}}function V(e){for(var t=e[0].toUpperCase()+e.slice(1),n=gt.length;n--;)if((e=gt[n]+t)in vt)return e}function $(e){var t=_e.cssProps[e]||yt[e];return t||(e in vt?e:yt[e]=V(e)||e)}function U(e,t,n){var i=We.exec(t);return i?Math.max(0,i[2]-(n||0))+(i[3]||"px"):t}function B(e,t,n,i,r,o){var s="width"===t?1:0,a=0,l=0;if(n===(i?"border":"content"))return 0;for(;s<4;s+=2)"margin"===n&&(l+=_e.css(e,n+Ye[s],!0,r)),i?("content"===n&&(l-=_e.css(e,"padding"+Ye[s],!0,r)),"margin"!==n&&(l-=_e.css(e,"border"+Ye[s]+"Width",!0,r))):(l+=_e.css(e,"padding"+Ye[s],!0,r),"padding"!==n?l+=_e.css(e,"border"+Ye[s]+"Width",!0,r):a+=_e.css(e,"border"+Ye[s]+"Width",!0,r));return!i&&0<=o&&(l+=Math.max(0,Math.ceil(e["offset"+t[0].toUpperCase()+t.slice(1)]-o-l-a-.5))||0),l}function z(e,t,n){var i=ft(e),r=(!ye.boxSizingReliable()||n)&&"border-box"===_e.css(e,"boxSizing",!1,i),o=r,s=j(e,t,i),a="offset"+t[0].toUpperCase()+t.slice(1);if(ht.test(s)){if(!n)return s;s="auto"}return(!ye.boxSizingReliable()&&r||!ye.reliableTrDimensions()&&u(e,"tr")||"auto"===s||!parseFloat(s)&&"inline"===_e.css(e,"display",!1,i))&&e.getClientRects().length&&(r="border-box"===_e.css(e,"boxSizing",!1,i),(o=a in e)&&(s=e[a])),(s=parseFloat(s)||0)+B(e,t,n||(r?"border":"content"),o,i,s)+"px"}function H(e,t,n,i,r){return new H.prototype.init(e,t,n,i,r)}function q(){_t&&(!1===Se.hidden&&_.requestAnimationFrame?_.requestAnimationFrame(q):_.setTimeout(q,_e.fx.interval),_e.fx.tick())}function W(){return _.setTimeout(function(){xt=undefined}),xt=Date.now()}function Y(e,t){var n,i=0,r={height:e};for(t=t?1:0;i<4;i+=2-t)r["margin"+(n=Ye[i])]=r["padding"+n]=e;return t&&(r.opacity=r.width=e),r}function G(e,t,n){for(var i,r=(Q.tweeners[t]||[]).concat(Q.tweeners["*"]),o=0,s=r.length;o<s;o++)if(i=r[o].call(n,t,e))return i}function K(e,t,n){var i,r,o,s,a,l,u,c,d="width"in t||"height"in t,h=this,f={},p=e.style,m=e.nodeType&&Qe(e),g=Ue.get(e,"fxshow");for(i in n.queue||(null==(s=_e._queueHooks(e,"fx")).unqueued&&(s.unqueued=0,a=s.empty.fire,s.empty.fire=function(){s.unqueued||a()}),s.unqueued++,h.always(function(){h.always(function(){s.unqueued--,_e.queue(e,"fx").length||s.empty.fire()})})),t)if(r=t[i],Et.test(r)){if(delete t[i],o=o||"toggle"===r,r===(m?"hide":"show")){if("show"!==r||!g||g[i]===undefined)continue;m=!0}f[i]=g&&g[i]||_e.style(e,i)}if((l=!_e.isEmptyObject(t))||!_e.isEmptyObject(f))for(i in d&&1===e.nodeType&&(n.overflow=[p.overflow,p.overflowX,p.overflowY],null==(u=g&&g.display)&&(u=Ue.get(e,"display")),"none"===(c=_e.css(e,"display"))&&(u?c=u:(b([e],!0),u=e.style.display||u,c=_e.css(e,"display"),b([e]))),("inline"===c||"inline-block"===c&&null!=u)&&"none"===_e.css(e,"float")&&(l||(h.done(function(){p.display=u}),null==u&&(c=p.display,u="none"===c?"":c)),p.display="inline-block")),n.overflow&&(p.overflow="hidden",h.always(function(){p.overflow=n.overflow[0],p.overflowX=n.overflow[1],p.overflowY=n.overflow[2]})),l=!1,f)l||(g?"hidden"in g&&(m=g.hidden):g=Ue.access(e,"fxshow",{display:u}),o&&(g.hidden=!m),m&&b([e],!0),h.done(function(){for(i in m||b([e]),Ue.remove(e,"fxshow"),f)_e.style(e,i,f[i])})),l=G(m?g[i]:0,i,h),i in g||(g[i]=l.start,m&&(l.end=l.start,l.start=0))}function Z(e,t){var n,i,r,o,s;for(n in e)if(r=t[i=f(n)],o=e[n],Array.isArray(o)&&(r=o[1],o=e[n]=o[0]),n!==i&&(e[i]=o,delete e[n]),(s=_e.cssHooks[i])&&"expand"in s)for(n in o=s.expand(o),delete e[i],o)n in e||(e[n]=o[n],t[n]=r);else t[i]=r}function Q(o,e,t){var n,s,i=0,r=Q.prefilters.length,a=_e.Deferred().always(function(){delete l.elem}),l=function(){if(s)return!1;for(var e=xt||W(),t=Math.max(0,u.startTime+u.duration-e),n=1-(t/u.duration||0),i=0,r=u.tweens.length;i<r;i++)u.tweens[i].run(n);return a.notifyWith(o,[u,n,t]),n<1&&r?t:(r||a.notifyWith(o,[u,1,0]),a.resolveWith(o,[u]),!1)},u=a.promise({elem:o,props:_e.extend({},e),opts:_e.extend(!0,{specialEasing:{},easing:_e.easing._default},t),originalProperties:e,originalOptions:t,startTime:xt||W(),duration:t.duration,tweens:[],createTween:function(e,t){var n=_e.Tween(o,u.opts,e,t,u.opts.specialEasing[e]||u.opts.easing);return u.tweens.push(n),n},stop:function(e){var t=0,n=e?u.tweens.length:0;if(s)return this;for(s=!0;t<n;t++)u.tweens[t].run(1);return e?(a.notifyWith(o,[u,1,0]),a.resolveWith(o,[u,e])):a.rejectWith(o,[u,e]),this}}),c=u.props;for(Z(c,u.opts.specialEasing);i<r;i++)if(n=Q.prefilters[i].call(u,o,c,u.opts))return be(n.stop)&&(_e._queueHooks(u.elem,u.opts.queue).stop=n.stop.bind(n)),n;return _e.map(c,G,u),be(u.opts.start)&&u.opts.start.call(o,u),u.progress(u.opts.progress).done(u.opts.done,u.opts.complete).fail(u.opts.fail).always(u.opts.always),_e.fx.timer(_e.extend(l,{elem:o,anim:u,queue:u.opts.queue})),u}function X(e){return(e.match(Ie)||[]).join(" ")}function J(e){return e.getAttribute&&e.getAttribute("class")||""}function ee(e){return Array.isArray(e)?e:"string"==typeof e&&e.match(Ie)||[]}function te(n,e,i,r){var t;if(Array.isArray(e))_e.each(e,function(e,t){i||Vt.test(n)?r(n,t):te(n+"["+("object"==typeof t&&null!=t?e:"")+"]",t,i,r)});else if(i||"object"!==g(e))r(n,e);else for(t in e)te(n+"["+t+"]",e[t],i,r)}function ne(o){return function(e,t){"string"!=typeof e&&(t=e,e="*");var n,i=0,r=e.toLowerCase().match(Ie)||[];if(be(t))for(;n=r[i++];)"+"===n[0]?(n=n.slice(1)||"*",(o[n]=o[n]||[]).unshift(t)):(o[n]=o[n]||[]).push(t)}}function ie(t,r,o,s){function a(e){var i;return l[e]=!0,_e.each(t[e]||[],function(e,t){var n=t(r,o,s);return"string"!=typeof n||u||l[n]?u?!(i=n):void 0:(r.dataTypes.unshift(n),a(n),!1)}),i}var l={},u=t===Qt;return a(r.dataTypes[0])||!l["*"]&&a("*")}function re(e,t){var n,i,r=_e.ajaxSettings.flatOptions||{};for(n in t)t[n]!==undefined&&((r[n]?e:i||(i={}))[n]=t[n]);return i&&_e.extend(!0,e,i),e}function oe(e,t,n){for(var i,r,o,s,a=e.contents,l=e.dataTypes;"*"===l[0];)l.shift(),i===undefined&&(i=e.mimeType||t.getResponseHeader("Content-Type"));if(i)for(r in a)if(a[r]&&a[r].test(i)){l.unshift(r);break}if(l[0]in n)o=l[0];else{for(r in n){if(!l[0]||e.converters[r+" "+l[0]]){o=r;break}s||(s=r)}o=o||s}if(o)return o!==l[0]&&l.unshift(o),n[o]}function se(e,t,n,i){var r,o,s,a,l,u={},c=e.dataTypes.slice();if(c[1])for(s in e.converters)u[s.toLowerCase()]=e.converters[s];for(o=c.shift();o;)if(e.responseFields[o]&&(n[e.responseFields[o]]=t),!l&&i&&e.dataFilter&&(t=e.dataFilter(t,e.dataType)),l=o,o=c.shift())if("*"===o)o=l;else if("*"!==l&&l!==o){if(!(s=u[l+" "+o]||u["* "+o]))for(r in u)if((a=r.split(" "))[1]===o&&(s=u[l+" "+a[0]]||u["* "+a[0]])){!0===s?s=u[r]:!0!==u[r]&&(o=a[0],c.unshift(a[1]));break}if(!0!==s)if(s&&e["throws"])t=s(t);else try{t=s(t)}catch(d){return{state:"parsererror",error:s?d:"No conversion from "+l+" to "+o}}}return{state:"success",data:t}}var ae=[],le=Object.getPrototypeOf,ue=ae.slice,ce=ae.flat?function(e){return ae.flat.call(e)}:function(e){return ae.concat.apply([],e)},de=ae.push,he=ae.indexOf,fe={},pe=fe.toString,me=fe.hasOwnProperty,ge=me.toString,ve=ge.call(Object),ye={},be=function(e){return"function"==typeof e&&"number"!=typeof e.nodeType},we=function(e){return null!=e&&e===e.window},Se=_.document,ke={type:!0,src:!0,nonce:!0,noModule:!0},xe="3.5.1",_e=function(e,t){return new _e.fn.init(e,t)};_e.fn=_e.prototype={jquery:xe,constructor:_e,length:0,toArray:function(){return ue.call(this)},get:function(e){return null==e?ue.call(this):e<0?this[e+this.length]:this[e]},pushStack:function(e){var t=_e.merge(this.constructor(),e);return t.prevObject=this,t},each:function(e){return _e.each(this,e)},map:function(n){return this.pushStack(_e.map(this,function(e,t){return n.call(e,t,e)}))},slice:function(){return this.pushStack(ue.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},even:function(){return this.pushStack(_e.grep(this,function(e,t){return(t+1)%2}))},odd:function(){return this.pushStack(_e.grep(this,function(e,t){return t%2}))},eq:function(e){var t=this.length,n=+e+(e<0?t:0);return this.pushStack(0<=n&&n<t?[this[n]]:[])},end:function(){return this.prevObject||this.constructor()},push:de,sort:ae.sort,splice:ae.splice},_e.extend=_e.fn.extend=function(e){var t,n,i,r,o,s,a=e||{},l=1,u=arguments.length,c=!1;for("boolean"==typeof a&&(c=a,a=arguments[l]||{},l++),"object"==typeof a||be(a)||(a={}),l===u&&(a=this,l--);l<u;l++)if(null!=(t=arguments[l]))for(n in t)r=t[n],"__proto__"!==n&&a!==r&&(c&&r&&(_e.isPlainObject(r)||(o=Array.isArray(r)))?(i=a[n],s=o&&!Array.isArray(i)?[]:o||_e.isPlainObject(i)?i:{},o=!1,a[n]=_e.extend(c,s,r)):r!==undefined&&(a[n]=r));return a},_e.extend({expando:"jQuery"+(xe+Math.random()).replace(/\D/g,""),isReady:!0,error:function(e){throw new Error(e)},noop:function(){},isPlainObject:function(e){var t,n;return!(!e||"[object Object]"!==pe.call(e))&&(!(t=le(e))||"function"==typeof(n=me.call(t,"constructor")&&t.constructor)&&ge.call(n)===ve)},isEmptyObject:function(e){var t;for(t in e)return!1;return!0},globalEval:function(e,t,n){m(e,{nonce:t&&t.nonce},n)},each:function(e,t){var n,i=0;if(a(e))for(n=e.length;i<n&&!1!==t.call(e[i],i,e[i]);i++);else for(i in e)if(!1===t.call(e[i],i,e[i]))break;return e},makeArray:function(e,t){var n=t||[];return null!=e&&(a(Object(e))?_e.merge(n,"string"==typeof e?[e]:e):de.call(n,e)),n},inArray:function(e,t,n){return null==t?-1:he.call(t,e,n)},merge:function(e,t){for(var n=+t.length,i=0,r=e.length;i<n;i++)e[r++]=t[i];return e.length=r,e},grep:function(e,t,n){for(var i=[],r=0,o=e.length,s=!n;r<o;r++)!t(e[r],r)!==s&&i.push(e[r]);return i},map:function(e,t,n){var i,r,o=0,s=[];if(a(e))for(i=e.length;o<i;o++)null!=(r=t(e[o],o,n))&&s.push(r);else for(o in e)null!=(r=t(e[o],o,n))&&s.push(r);return ce(s)},guid:1,support:ye}),"function"==typeof Symbol&&(_e.fn[Symbol.iterator]=ae[Symbol.iterator]),_e.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),function(e,t){fe["[object "+t+"]"]=t.toLowerCase()});var Ce=function(n){function w(e,t,n,i){var r,o,s,a,l,u,c,d=t&&t.ownerDocument,h=t?t.nodeType:9;if(n=n||[],"string"!=typeof e||!e||1!==h&&9!==h&&11!==h)return n;if(!i&&(D(t),t=t||F,L)){if(11!==h&&(l=be.exec(e)))if(r=l[1]){if(9===h){if(!(s=t.getElementById(r)))return n;if(s.id===r)return n.push(s),n}else if(d&&(s=d.getElementById(r))&&V(t,s)&&s.id===r)return n.push(s),n}else{if(l[2])return J.apply(n,t.getElementsByTagName(e)),n;if((r=l[3])&&k.getElementsByClassName&&t.getElementsByClassName)return J.apply(n,t.getElementsByClassName(r)),n}if(k.qsa&&!Y[e+" "]&&(!M||!M.test(e))&&(1!==h||"object"!==t.nodeName.toLowerCase())){if(c=e,d=t,1===h&&(de.test(e)||ce.test(e))){for((d=we.test(e)&&p(t.parentNode)||t)===t&&k.scope||((a=t.getAttribute("id"))?a=a.replace(xe,_e):t.setAttribute("id",a=$)),o=(u=T(e)).length;o--;)u[o]=(a?"#"+a:":scope")+" "+m(u[o]);c=u.join(",")}try{return J.apply(n,d.querySelectorAll(c)),n}catch(f){Y(e,!0)}finally{a===$&&t.removeAttribute("id")}}}return P(e.replace(le,"$1"),t,n,i)}function e(){function n(e,t){return i.push(e+" ")>x.cacheLength&&delete n[i.shift()],n[e+" "]=t}var i=[];return n}function l(e){return e[$]=!0,e}function r(e){var t=F.createElement("fieldset");try{return!!e(t)}catch(n){return!1}finally{t.parentNode&&t.parentNode.removeChild(t),t=null}}function t(e,t){for(var n=e.split("|"),i=n.length;i--;)x.attrHandle[n[i]]=t}function u(e,t){var n=t&&e,i=n&&1===e.nodeType&&1===t.nodeType&&e.sourceIndex-t.sourceIndex;if(i)return i;if(n)for(;n=n.nextSibling;)if(n===t)return-1;return e?1:-1}function i(t){return function(e){return"input"===e.nodeName.toLowerCase()&&e.type===t}}function o(n){return function(e){var t=e.nodeName.toLowerCase();return("input"===t||"button"===t)&&e.type===n}}function s(t){return function(e){return"form"in e?e.parentNode&&!1===e.disabled?"label"in e?"label"in e.parentNode?e.parentNode.disabled===t:e.disabled===t:e.isDisabled===t||e.isDisabled!==!t&&Te(e)===t:e.disabled===t:"label"in e&&e.disabled===t}}function a(s){return l(function(o){return o=+o,l(function(e,t){for(var n,i=s([],e.length,o),r=i.length;r--;)e[n=i[r]]&&(e[n]=!(t[n]=e[n]))})})}function p(e){return e&&"undefined"!=typeof e.getElementsByTagName&&e}
function c(){}function m(e){for(var t=0,n=e.length,i="";t<n;t++)i+=e[t].value;return i}function d(a,e,t){var l=e.dir,u=e.next,c=u||l,d=t&&"parentNode"===c,h=z++;return e.first?function(e,t,n){for(;e=e[l];)if(1===e.nodeType||d)return a(e,t,n);return!1}:function(e,t,n){var i,r,o,s=[B,h];if(n){for(;e=e[l];)if((1===e.nodeType||d)&&a(e,t,n))return!0}else for(;e=e[l];)if(1===e.nodeType||d)if(r=(o=e[$]||(e[$]={}))[e.uniqueID]||(o[e.uniqueID]={}),u&&u===e.nodeName.toLowerCase())e=e[l]||e;else{if((i=r[c])&&i[0]===B&&i[1]===h)return s[2]=i[2];if((r[c]=s)[2]=a(e,t,n))return!0}return!1}}function h(r){return 1<r.length?function(e,t,n){for(var i=r.length;i--;)if(!r[i](e,t,n))return!1;return!0}:r[0]}function y(e,t,n){for(var i=0,r=t.length;i<r;i++)w(e,t[i],n);return n}function S(e,t,n,i,r){for(var o,s=[],a=0,l=e.length,u=null!=t;a<l;a++)(o=e[a])&&(n&&!n(o,i,r)||(s.push(o),u&&t.push(a)));return s}function b(f,p,m,g,v,e){return g&&!g[$]&&(g=b(g)),v&&!v[$]&&(v=b(v,e)),l(function(e,t,n,i){var r,o,s,a=[],l=[],u=t.length,c=e||y(p||"*",n.nodeType?[n]:n,[]),d=!f||!e&&p?c:S(c,a,f,n,i),h=m?v||(e?f:u||g)?[]:t:d;if(m&&m(d,h,n,i),g)for(r=S(h,l),g(r,[],n,i),o=r.length;o--;)(s=r[o])&&(h[l[o]]=!(d[l[o]]=s));if(e){if(v||f){if(v){for(r=[],o=h.length;o--;)(s=h[o])&&r.push(d[o]=s);v(null,h=[],r,i)}for(o=h.length;o--;)(s=h[o])&&-1<(r=v?te(e,s):a[o])&&(e[r]=!(t[r]=s))}}else h=S(h===t?h.splice(u,h.length):h),v?v(null,t,h,i):J.apply(t,h)})}function f(e){for(var r,t,n,i=e.length,o=x.relative[e[0].type],s=o||x.relative[" "],a=o?1:0,l=d(function(e){return e===r},s,!0),u=d(function(e){return-1<te(r,e)},s,!0),c=[function(e,t,n){var i=!o&&(n||t!==O)||((r=t).nodeType?l(e,t,n):u(e,t,n));return r=null,i}];a<i;a++)if(t=x.relative[e[a].type])c=[d(h(c),t)];else{if((t=x.filter[e[a].type].apply(null,e[a].matches))[$]){for(n=++a;n<i&&!x.relative[e[n].type];n++);return b(1<a&&h(c),1<a&&m(e.slice(0,a-1).concat({value:" "===e[a-2].type?"*":""})).replace(le,"$1"),t,a<n&&f(e.slice(a,n)),n<i&&f(e=e.slice(n)),n<i&&m(e))}c.push(t)}return h(c)}function g(g,v){var y=0<v.length,b=0<g.length,e=function(e,t,n,i,r){var o,s,a,l=0,u="0",c=e&&[],d=[],h=O,f=e||b&&x.find.TAG("*",r),p=B+=null==h?1:Math.random()||.1,m=f.length;for(r&&(O=t==F||t||r);u!==m&&null!=(o=f[u]);u++){if(b&&o){for(s=0,t||o.ownerDocument==F||(D(o),n=!L);a=g[s++];)if(a(o,t||F,n)){i.push(o);break}r&&(B=p)}y&&((o=!a&&o)&&l--,e&&c.push(o))}if(l+=u,y&&u!==l){for(s=0;a=v[s++];)a(c,d,t,n);if(e){if(0<l)for(;u--;)c[u]||d[u]||(d[u]=Q.call(i));d=S(d)}J.apply(i,d),r&&!e&&0<d.length&&1<l+v.length&&w.uniqueSort(i)}return r&&(B=p,O=h),c};return y?l(e):e}var v,k,x,_,C,T,E,P,O,N,A,D,F,I,L,M,j,R,V,$="sizzle"+1*new Date,U=n.document,B=0,z=0,H=e(),q=e(),W=e(),Y=e(),G=function(e,t){return e===t&&(A=!0),0},K={}.hasOwnProperty,Z=[],Q=Z.pop,X=Z.push,J=Z.push,ee=Z.slice,te=function(e,t){for(var n=0,i=e.length;n<i;n++)if(e[n]===t)return n;return-1},ne="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",ie="[\\x20\\t\\r\\n\\f]",re="(?:\\\\[\\da-fA-F]{1,6}"+ie+"?|\\\\[^\\r\\n\\f]|[\\w-]|[^\0-\\x7f])+",oe="\\["+ie+"*("+re+")(?:"+ie+"*([*^$|!~]?=)"+ie+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+re+"))|)"+ie+"*\\]",se=":("+re+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+oe+")*)|.*)\\)|)",ae=new RegExp(ie+"+","g"),le=new RegExp("^"+ie+"+|((?:^|[^\\\\])(?:\\\\.)*)"+ie+"+$","g"),ue=new RegExp("^"+ie+"*,"+ie+"*"),ce=new RegExp("^"+ie+"*([>+~]|"+ie+")"+ie+"*"),de=new RegExp(ie+"|>"),he=new RegExp(se),fe=new RegExp("^"+re+"$"),pe={ID:new RegExp("^#("+re+")"),CLASS:new RegExp("^\\.("+re+")"),TAG:new RegExp("^("+re+"|[*])"),ATTR:new RegExp("^"+oe),PSEUDO:new RegExp("^"+se),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+ie+"*(even|odd|(([+-]|)(\\d*)n|)"+ie+"*(?:([+-]|)"+ie+"*(\\d+)|))"+ie+"*\\)|)","i"),bool:new RegExp("^(?:"+ne+")$","i"),needsContext:new RegExp("^"+ie+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+ie+"*((?:-\\d)?\\d*)"+ie+"*\\)|)(?=[^-]|$)","i")},me=/HTML$/i,ge=/^(?:input|select|textarea|button)$/i,ve=/^h\d$/i,ye=/^[^{]+\{\s*\[native \w/,be=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,we=/[+~]/,Se=new RegExp("\\\\[\\da-fA-F]{1,6}"+ie+"?|\\\\([^\\r\\n\\f])","g"),ke=function(e,t){var n="0x"+e.slice(1)-65536;return t||(n<0?String.fromCharCode(n+65536):String.fromCharCode(n>>10|55296,1023&n|56320))},xe=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\0-\x1f\x7f-\uFFFF\w-]/g,_e=function(e,t){return t?"\0"===e?"\ufffd":e.slice(0,-1)+"\\"+e.charCodeAt(e.length-1).toString(16)+" ":"\\"+e},Ce=function(){D()},Te=d(function(e){return!0===e.disabled&&"fieldset"===e.nodeName.toLowerCase()},{dir:"parentNode",next:"legend"});try{J.apply(Z=ee.call(U.childNodes),U.childNodes),Z[U.childNodes.length].nodeType}catch(Ee){J={apply:Z.length?function(e,t){X.apply(e,ee.call(t))}:function(e,t){for(var n=e.length,i=0;e[n++]=t[i++];);e.length=n-1}}}for(v in k=w.support={},C=w.isXML=function(e){var t=e.namespaceURI,n=(e.ownerDocument||e).documentElement;return!me.test(t||n&&n.nodeName||"HTML")},D=w.setDocument=function(e){var t,n,i=e?e.ownerDocument||e:U;return i!=F&&9===i.nodeType&&i.documentElement&&(I=(F=i).documentElement,L=!C(F),U!=F&&(n=F.defaultView)&&n.top!==n&&(n.addEventListener?n.addEventListener("unload",Ce,!1):n.attachEvent&&n.attachEvent("onunload",Ce)),k.scope=r(function(e){return I.appendChild(e).appendChild(F.createElement("div")),"undefined"!=typeof e.querySelectorAll&&!e.querySelectorAll(":scope fieldset div").length}),k.attributes=r(function(e){return e.className="i",!e.getAttribute("className")}),k.getElementsByTagName=r(function(e){return e.appendChild(F.createComment("")),!e.getElementsByTagName("*").length}),k.getElementsByClassName=ye.test(F.getElementsByClassName),k.getById=r(function(e){return I.appendChild(e).id=$,!F.getElementsByName||!F.getElementsByName($).length}),k.getById?(x.filter.ID=function(e){var t=e.replace(Se,ke);return function(e){return e.getAttribute("id")===t}},x.find.ID=function(e,t){if("undefined"!=typeof t.getElementById&&L){var n=t.getElementById(e);return n?[n]:[]}}):(x.filter.ID=function(e){var n=e.replace(Se,ke);return function(e){var t="undefined"!=typeof e.getAttributeNode&&e.getAttributeNode("id");return t&&t.value===n}},x.find.ID=function(e,t){if("undefined"!=typeof t.getElementById&&L){var n,i,r,o=t.getElementById(e);if(o){if((n=o.getAttributeNode("id"))&&n.value===e)return[o];for(r=t.getElementsByName(e),i=0;o=r[i++];)if((n=o.getAttributeNode("id"))&&n.value===e)return[o]}return[]}}),x.find.TAG=k.getElementsByTagName?function(e,t){return"undefined"!=typeof t.getElementsByTagName?t.getElementsByTagName(e):k.qsa?t.querySelectorAll(e):void 0}:function(e,t){var n,i=[],r=0,o=t.getElementsByTagName(e);if("*"===e){for(;n=o[r++];)1===n.nodeType&&i.push(n);return i}return o},x.find.CLASS=k.getElementsByClassName&&function(e,t){if("undefined"!=typeof t.getElementsByClassName&&L)return t.getElementsByClassName(e)},j=[],M=[],(k.qsa=ye.test(F.querySelectorAll))&&(r(function(e){var t;I.appendChild(e).innerHTML="<a id='"+$+"'></a><select id='"+$+"-\r\\' msallowcapture=''><option selected=''></option></select>",e.querySelectorAll("[msallowcapture^='']").length&&M.push("[*^$]="+ie+"*(?:''|\"\")"),e.querySelectorAll("[selected]").length||M.push("\\["+ie+"*(?:value|"+ne+")"),e.querySelectorAll("[id~="+$+"-]").length||M.push("~="),(t=F.createElement("input")).setAttribute("name",""),e.appendChild(t),e.querySelectorAll("[name='']").length||M.push("\\["+ie+"*name"+ie+"*="+ie+"*(?:''|\"\")"),e.querySelectorAll(":checked").length||M.push(":checked"),e.querySelectorAll("a#"+$+"+*").length||M.push(".#.+[+~]"),e.querySelectorAll("\\\f"),M.push("[\\r\\n\\f]")}),r(function(e){e.innerHTML="<a href='' disabled='disabled'></a><select disabled='disabled'><option/></select>";var t=F.createElement("input");t.setAttribute("type","hidden"),e.appendChild(t).setAttribute("name","D"),e.querySelectorAll("[name=d]").length&&M.push("name"+ie+"*[*^$|!~]?="),2!==e.querySelectorAll(":enabled").length&&M.push(":enabled",":disabled"),I.appendChild(e).disabled=!0,2!==e.querySelectorAll(":disabled").length&&M.push(":enabled",":disabled"),e.querySelectorAll("*,:x"),M.push(",.*:")})),(k.matchesSelector=ye.test(R=I.matches||I.webkitMatchesSelector||I.mozMatchesSelector||I.oMatchesSelector||I.msMatchesSelector))&&r(function(e){k.disconnectedMatch=R.call(e,"*"),R.call(e,"[s!='']:x"),j.push("!=",se)}),M=M.length&&new RegExp(M.join("|")),j=j.length&&new RegExp(j.join("|")),t=ye.test(I.compareDocumentPosition),V=t||ye.test(I.contains)?function(e,t){var n=9===e.nodeType?e.documentElement:e,i=t&&t.parentNode;return e===i||!(!i||1!==i.nodeType||!(n.contains?n.contains(i):e.compareDocumentPosition&&16&e.compareDocumentPosition(i)))}:function(e,t){if(t)for(;t=t.parentNode;)if(t===e)return!0;return!1},G=t?function(e,t){if(e===t)return A=!0,0;var n=!e.compareDocumentPosition-!t.compareDocumentPosition;return n||(1&(n=(e.ownerDocument||e)==(t.ownerDocument||t)?e.compareDocumentPosition(t):1)||!k.sortDetached&&t.compareDocumentPosition(e)===n?e==F||e.ownerDocument==U&&V(U,e)?-1:t==F||t.ownerDocument==U&&V(U,t)?1:N?te(N,e)-te(N,t):0:4&n?-1:1)}:function(e,t){if(e===t)return A=!0,0;var n,i=0,r=e.parentNode,o=t.parentNode,s=[e],a=[t];if(!r||!o)return e==F?-1:t==F?1:r?-1:o?1:N?te(N,e)-te(N,t):0;if(r===o)return u(e,t);for(n=e;n=n.parentNode;)s.unshift(n);for(n=t;n=n.parentNode;)a.unshift(n);for(;s[i]===a[i];)i++;return i?u(s[i],a[i]):s[i]==U?-1:a[i]==U?1:0}),F},w.matches=function(e,t){return w(e,null,null,t)},w.matchesSelector=function(e,t){if(D(e),k.matchesSelector&&L&&!Y[t+" "]&&(!j||!j.test(t))&&(!M||!M.test(t)))try{var n=R.call(e,t);if(n||k.disconnectedMatch||e.document&&11!==e.document.nodeType)return n}catch(Ee){Y(t,!0)}return 0<w(t,F,null,[e]).length},w.contains=function(e,t){return(e.ownerDocument||e)!=F&&D(e),V(e,t)},w.attr=function(e,t){(e.ownerDocument||e)!=F&&D(e);var n=x.attrHandle[t.toLowerCase()],i=n&&K.call(x.attrHandle,t.toLowerCase())?n(e,t,!L):undefined;return i!==undefined?i:k.attributes||!L?e.getAttribute(t):(i=e.getAttributeNode(t))&&i.specified?i.value:null},w.escape=function(e){return(e+"").replace(xe,_e)},w.error=function(e){throw new Error("Syntax error, unrecognized expression: "+e)},w.uniqueSort=function(e){var t,n=[],i=0,r=0;if(A=!k.detectDuplicates,N=!k.sortStable&&e.slice(0),e.sort(G),A){for(;t=e[r++];)t===e[r]&&(i=n.push(r));for(;i--;)e.splice(n[i],1)}return N=null,e},_=w.getText=function(e){var t,n="",i=0,r=e.nodeType;if(r){if(1===r||9===r||11===r){if("string"==typeof e.textContent)return e.textContent;for(e=e.firstChild;e;e=e.nextSibling)n+=_(e)}else if(3===r||4===r)return e.nodeValue}else for(;t=e[i++];)n+=_(t);return n},(x=w.selectors={cacheLength:50,createPseudo:l,match:pe,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(e){return e[1]=e[1].replace(Se,ke),e[3]=(e[3]||e[4]||e[5]||"").replace(Se,ke),"~="===e[2]&&(e[3]=" "+e[3]+" "),e.slice(0,4)},CHILD:function(e){return e[1]=e[1].toLowerCase(),"nth"===e[1].slice(0,3)?(e[3]||w.error(e[0]),e[4]=+(e[4]?e[5]+(e[6]||1):2*("even"===e[3]||"odd"===e[3])),e[5]=+(e[7]+e[8]||"odd"===e[3])):e[3]&&w.error(e[0]),e},PSEUDO:function(e){var t,n=!e[6]&&e[2];return pe.CHILD.test(e[0])?null:(e[3]?e[2]=e[4]||e[5]||"":n&&he.test(n)&&(t=T(n,!0))&&(t=n.indexOf(")",n.length-t)-n.length)&&(e[0]=e[0].slice(0,t),e[2]=n.slice(0,t)),e.slice(0,3))}},filter:{TAG:function(e){var t=e.replace(Se,ke).toLowerCase();return"*"===e?function(){return!0}:function(e){return e.nodeName&&e.nodeName.toLowerCase()===t}},CLASS:function(e){var t=H[e+" "];return t||(t=new RegExp("(^|"+ie+")"+e+"("+ie+"|$)"))&&H(e,function(e){return t.test("string"==typeof e.className&&e.className||"undefined"!=typeof e.getAttribute&&e.getAttribute("class")||"")})},ATTR:function(n,i,r){return function(e){var t=w.attr(e,n);return null==t?"!="===i:!i||(t+="","="===i?t===r:"!="===i?t!==r:"^="===i?r&&0===t.indexOf(r):"*="===i?r&&-1<t.indexOf(r):"$="===i?r&&t.slice(-r.length)===r:"~="===i?-1<(" "+t.replace(ae," ")+" ").indexOf(r):"|="===i&&(t===r||t.slice(0,r.length+1)===r+"-"))}},CHILD:function(p,e,t,m,g){var v="nth"!==p.slice(0,3),y="last"!==p.slice(-4),b="of-type"===e;return 1===m&&0===g?function(e){return!!e.parentNode}:function(e,t,n){var i,r,o,s,a,l,u=v!==y?"nextSibling":"previousSibling",c=e.parentNode,d=b&&e.nodeName.toLowerCase(),h=!n&&!b,f=!1;if(c){if(v){for(;u;){for(s=e;s=s[u];)if(b?s.nodeName.toLowerCase()===d:1===s.nodeType)return!1;l=u="only"===p&&!l&&"nextSibling"}return!0}if(l=[y?c.firstChild:c.lastChild],y&&h){for(f=(a=(i=(r=(o=(s=c)[$]||(s[$]={}))[s.uniqueID]||(o[s.uniqueID]={}))[p]||[])[0]===B&&i[1])&&i[2],s=a&&c.childNodes[a];s=++a&&s&&s[u]||(f=a=0)||l.pop();)if(1===s.nodeType&&++f&&s===e){r[p]=[B,a,f];break}}else if(h&&(f=a=(i=(r=(o=(s=e)[$]||(s[$]={}))[s.uniqueID]||(o[s.uniqueID]={}))[p]||[])[0]===B&&i[1]),!1===f)for(;(s=++a&&s&&s[u]||(f=a=0)||l.pop())&&((b?s.nodeName.toLowerCase()!==d:1!==s.nodeType)||!++f||(h&&((r=(o=s[$]||(s[$]={}))[s.uniqueID]||(o[s.uniqueID]={}))[p]=[B,f]),s!==e)););return(f-=g)===m||f%m==0&&0<=f/m}}},PSEUDO:function(e,o){var t,s=x.pseudos[e]||x.setFilters[e.toLowerCase()]||w.error("unsupported pseudo: "+e);return s[$]?s(o):1<s.length?(t=[e,e,"",o],x.setFilters.hasOwnProperty(e.toLowerCase())?l(function(e,t){for(var n,i=s(e,o),r=i.length;r--;)e[n=te(e,i[r])]=!(t[n]=i[r])}):function(e){return s(e,0,t)}):s}},pseudos:{not:l(function(e){var i=[],r=[],a=E(e.replace(le,"$1"));return a[$]?l(function(e,t,n,i){for(var r,o=a(e,null,i,[]),s=e.length;s--;)(r=o[s])&&(e[s]=!(t[s]=r))}):function(e,t,n){return i[0]=e,a(i,null,n,r),i[0]=null,!r.pop()}}),has:l(function(t){return function(e){return 0<w(t,e).length}}),contains:l(function(t){return t=t.replace(Se,ke),function(e){return-1<(e.textContent||_(e)).indexOf(t)}}),lang:l(function(n){return fe.test(n||"")||w.error("unsupported lang: "+n),n=n.replace(Se,ke).toLowerCase(),function(e){var t;do{if(t=L?e.lang:e.getAttribute("xml:lang")||e.getAttribute("lang"))return(t=t.toLowerCase())===n||0===t.indexOf(n+"-")}while((e=e.parentNode)&&1===e.nodeType);return!1}}),target:function(e){var t=n.location&&n.location.hash;return t&&t.slice(1)===e.id},root:function(e){return e===I},focus:function(e){return e===F.activeElement&&(!F.hasFocus||F.hasFocus())&&!!(e.type||e.href||~e.tabIndex)},enabled:s(!1),disabled:s(!0),checked:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&!!e.checked||"option"===t&&!!e.selected},selected:function(e){return e.parentNode&&e.parentNode.selectedIndex,!0===e.selected},empty:function(e){for(e=e.firstChild;e;e=e.nextSibling)if(e.nodeType<6)return!1;return!0},parent:function(e){return!x.pseudos.empty(e)},header:function(e){return ve.test(e.nodeName)},input:function(e){return ge.test(e.nodeName)},button:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&"button"===e.type||"button"===t},text:function(e){var t;return"input"===e.nodeName.toLowerCase()&&"text"===e.type&&(null==(t=e.getAttribute("type"))||"text"===t.toLowerCase())},first:a(function(){return[0]}),last:a(function(e,t){return[t-1]}),eq:a(function(e,t,n){return[n<0?n+t:n]}),even:a(function(e,t){for(var n=0;n<t;n+=2)e.push(n);return e}),odd:a(function(e,t){for(var n=1;n<t;n+=2)e.push(n);return e}),lt:a(function(e,t,n){for(var i=n<0?n+t:t<n?t:n;0<=--i;)e.push(i);return e}),gt:a(function(e,t,n){for(var i=n<0?n+t:n;++i<t;)e.push(i);return e})}}).pseudos.nth=x.pseudos.eq,{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})x.pseudos[v]=i(v);for(v in{submit:!0,reset:!0})x.pseudos[v]=o(v);return c.prototype=x.filters=x.pseudos,x.setFilters=new c,T=w.tokenize=function(e,t){var n,i,r,o,s,a,l,u=q[e+" "];if(u)return t?0:u.slice(0);for(s=e,a=[],l=x.preFilter;s;){for(o in n&&!(i=ue.exec(s))||(i&&(s=s.slice(i[0].length)||s),a.push(r=[])),n=!1,(i=ce.exec(s))&&(n=i.shift(),r.push({value:n,type:i[0].replace(le," ")}),s=s.slice(n.length)),x.filter)!(i=pe[o].exec(s))||l[o]&&!(i=l[o](i))||(n=i.shift(),r.push({value:n,type:o,matches:i}),s=s.slice(n.length));if(!n)break}return t?s.length:s?w.error(e):q(e,a).slice(0)},E=w.compile=function(e,t){var n,i=[],r=[],o=W[e+" "];if(!o){for(t||(t=T(e)),n=t.length;n--;)(o=f(t[n]))[$]?i.push(o):r.push(o);(o=W(e,g(r,i))).selector=e}return o},P=w.select=function(e,t,n,i){var r,o,s,a,l,u="function"==typeof e&&e,c=!i&&T(e=u.selector||e);if(n=n||[],1===c.length){if(2<(o=c[0]=c[0].slice(0)).length&&"ID"===(s=o[0]).type&&9===t.nodeType&&L&&x.relative[o[1].type]){if(!(t=(x.find.ID(s.matches[0].replace(Se,ke),t)||[])[0]))return n;u&&(t=t.parentNode),e=e.slice(o.shift().value.length)}for(r=pe.needsContext.test(e)?0:o.length;r--&&(s=o[r],!x.relative[a=s.type]);)if((l=x.find[a])&&(i=l(s.matches[0].replace(Se,ke),we.test(o[0].type)&&p(t.parentNode)||t))){if(o.splice(r,1),!(e=i.length&&m(o)))return J.apply(n,i),n;break}}return(u||E(e,c))(i,t,!L,n,!t||we.test(e)&&p(t.parentNode)||t),n},k.sortStable=$.split("").sort(G).join("")===$,k.detectDuplicates=!!A,D(),k.sortDetached=r(function(e){return 1&e.compareDocumentPosition(F.createElement("fieldset"))}),r(function(e){return e.innerHTML="<a href='#'></a>","#"===e.firstChild.getAttribute("href")})||t("type|href|height|width",function(e,t,n){if(!n)return e.getAttribute(t,"type"===t.toLowerCase()?1:2)}),k.attributes&&r(function(e){return e.innerHTML="<input/>",e.firstChild.setAttribute("value",""),""===e.firstChild.getAttribute("value")})||t("value",function(e,t,n){if(!n&&"input"===e.nodeName.toLowerCase())return e.defaultValue}),r(function(e){return null==e.getAttribute("disabled")})||t(ne,function(e,t,n){var i;if(!n)return!0===e[t]?t.toLowerCase():(i=e.getAttributeNode(t))&&i.specified?i.value:null}),w}(_);_e.find=Ce,_e.expr=Ce.selectors,_e.expr[":"]=_e.expr.pseudos,_e.uniqueSort=_e.unique=Ce.uniqueSort,_e.text=Ce.getText,_e.isXMLDoc=Ce.isXML,_e.contains=Ce.contains,_e.escapeSelector=Ce.escape;var Te=function(e,t,n){for(var i=[],r=n!==undefined;(e=e[t])&&9!==e.nodeType;)if(1===e.nodeType){if(r&&_e(e).is(n))break;i.push(e)}return i},Ee=function(e,t){for(var n=[];e;e=e.nextSibling)1===e.nodeType&&e!==t&&n.push(e);return n},Pe=_e.expr.match.needsContext,Oe=/^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i;_e.filter=function(e,t,n){var i=t[0];return n&&(e=":not("+e+")"),1===t.length&&1===i.nodeType?_e.find.matchesSelector(i,e)?[i]:[]:_e.find.matches(e,_e.grep(t,function(e){return 1===e.nodeType}))},_e.fn.extend({find:function(e){var t,n,i=this.length,r=this;if("string"!=typeof e)return this.pushStack(_e(e).filter(function(){for(t=0;t<i;t++)if(_e.contains(r[t],this))return!0}));for(n=this.pushStack([]),t=0;t<i;t++)_e.find(e,r[t],n);return 1<i?_e.uniqueSort(n):n},filter:function(e){return this.pushStack(t(this,e||[],!1))},not:function(e){return this.pushStack(t(this,e||[],!0))},is:function(e){return!!t(this,"string"==typeof e&&Pe.test(e)?_e(e):e||[],!1).length}});var Ne,Ae=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/;(_e.fn.init=function(e,t,n){var i,r;if(!e)return this;if(n=n||Ne,"string"==typeof e){if(!(i="<"===e[0]&&">"===e[e.length-1]&&3<=e.length?[null,e,null]:Ae.exec(e))||!i[1]&&t)return!t||t.jquery?(t||n).find(e):this.constructor(t).find(e);if(i[1]){if(t=t instanceof _e?t[0]:t,_e.merge(this,_e.parseHTML(i[1],t&&t.nodeType?t.ownerDocument||t:Se,!0)),Oe.test(i[1])&&_e.isPlainObject(t))for(i in t)be(this[i])?this[i](t[i]):this.attr(i,t[i]);return this}return(r=Se.getElementById(i[2]))&&(this[0]=r,this.length=1),this}return e.nodeType?(this[0]=e,this.length=1,this):be(e)?n.ready!==undefined?n.ready(e):e(_e):_e.makeArray(e,this)}).prototype=_e.fn,Ne=_e(Se);var De=/^(?:parents|prev(?:Until|All))/,Fe={children:!0,contents:!0,next:!0,prev:!0};_e.fn.extend({has:function(e){var t=_e(e,this),n=t.length;return this.filter(function(){for(var e=0;e<n;e++)if(_e.contains(this,t[e]))return!0})},closest:function(e,t){var n,i=0,r=this.length,o=[],s="string"!=typeof e&&_e(e);if(!Pe.test(e))for(;i<r;i++)for(n=this[i];n&&n!==t;n=n.parentNode)if(n.nodeType<11&&(s?-1<s.index(n):1===n.nodeType&&_e.find.matchesSelector(n,e))){o.push(n);break}return this.pushStack(1<o.length?_e.uniqueSort(o):o)},index:function(e){return e?"string"==typeof e?he.call(_e(e),this[0]):he.call(this,e.jquery?e[0]:e):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(e,t){return this.pushStack(_e.uniqueSort(_e.merge(this.get(),_e(e,t))))},addBack:function(e){return this.add(null==e?this.prevObject:this.prevObject.filter(e))}}),_e.each({parent:function(e){var t=e.parentNode;return t&&11!==t.nodeType?t:null},parents:function(e){return Te(e,"parentNode")},parentsUntil:function(e,t,n){return Te(e,"parentNode",n)},next:function(e){return n(e,"nextSibling")},prev:function(e){return n(e,"previousSibling")},nextAll:function(e){return Te(e,"nextSibling")},prevAll:function(e){return Te(e,"previousSibling")},nextUntil:function(e,t,n){return Te(e,"nextSibling",n)},prevUntil:function(e,t,n){return Te(e,"previousSibling",n)},siblings:function(e){return Ee((e.parentNode||{}).firstChild,e)},children:function(e){return Ee(e.firstChild)},contents:function(e){return null!=e.contentDocument&&le(e.contentDocument)?e.contentDocument:(u(e,"template")&&(e=e.content||e),_e.merge([],e.childNodes))}},function(i,r){_e.fn[i]=function(e,t){var n=_e.map(this,r,e);return"Until"!==i.slice(-5)&&(t=e),t&&"string"==typeof t&&(n=_e.filter(t,n)),1<this.length&&(Fe[i]||_e.uniqueSort(n),De.test(i)&&n.reverse()),this.pushStack(n)}});var Ie=/[^\x20\t\r\n\f]+/g;_e.Callbacks=function(i){i="string"==typeof i?c(i):_e.extend({},i);var r,e,t,n,o=[],s=[],a=-1,l=function(){for(n=n||i.once,t=r=!0;s.length;a=-1)for(e=s.shift();++a<o.length;)!1===o[a].apply(e[0],e[1])&&i.stopOnFalse&&(a=o.length,e=!1);i.memory||(e=!1),r=!1,n&&(o=e?[]:"")},u={add:function(){return o&&(e&&!r&&(a=o.length-1,s.push(e)),function n(e){_e.each(e,function(e,t){be(t)?i.unique&&u.has(t)||o.push(t):t&&t.length&&"string"!==g(t)&&n(t)})}(arguments),e&&!r&&l()),this},remove:function(){return _e.each(arguments,function(e,t){for(var n;-1<(n=_e.inArray(t,o,n));)o.splice(n,1),n<=a&&a--}),this},has:function(e){return e?-1<_e.inArray(e,o):0<o.length},empty:function(){return o&&(o=[]),this},disable:function(){return n=s=[],o=e="",this},disabled:function(){return!o},lock:function(){return n=s=[],e||r||(o=e=""),this},locked:function(){return!!n},fireWith:function(e,t){return n||(t=[e,(t=t||[]).slice?t.slice():t],s.push(t),r||l()),this},fire:function(){return u.fireWith(this,arguments),this},fired:function(){return!!t}};return u},_e.extend({Deferred:function(e){var o=[["notify","progress",_e.Callbacks("memory"),_e.Callbacks("memory"),2],["resolve","done",_e.Callbacks("once memory"),_e.Callbacks("once memory"),0,"resolved"],["reject","fail",_e.Callbacks("once memory"),_e.Callbacks("once memory"),1,"rejected"]],r="pending",s={state:function(){return r},always:function(){return a.done(arguments).fail(arguments),this},"catch":function(e){return s.then(null,e)},pipe:function(){var r=arguments;return _e.Deferred(function(i){_e.each(o,function(e,t){var n=be(r[t[4]])&&r[t[4]];a[t[1]](function(){var e=n&&n.apply(this,arguments);e&&be(e.promise)?e.promise().progress(i.notify).done(i.resolve).fail(i.reject):i[t[0]+"With"](this,n?[e]:arguments)})}),r=null}).promise()},then:function(t,n,i){function u(o,s,a,l){return function(){var n=this,i=arguments,t=function(){var e,t;if(!(o<c)){if((e=a.apply(n,i))===s.promise())throw new TypeError("Thenable self-resolution");t=e&&("object"==typeof e||"function"==typeof e)&&e.then,be(t)?l?t.call(e,u(c,s,d,l),u(c,s,h,l)):(c++,t.call(e,u(c,s,d,l),u(c,s,h,l),u(c,s,d,s.notifyWith))):(a!==d&&(n=undefined,i=[e]),(l||s.resolveWith)(n,i))}},r=l?t:function(){try{t()}catch(e){_e.Deferred.exceptionHook&&_e.Deferred.exceptionHook(e,r.stackTrace),c<=o+1&&(a!==h&&(n=undefined,i=[e]),s.rejectWith(n,i))}};o?r():(_e.Deferred.getStackHook&&(r.stackTrace=_e.Deferred.getStackHook()),_.setTimeout(r))}}var c=0;return _e.Deferred(function(e){o[0][3].add(u(0,e,be(i)?i:d,e.notifyWith)),o[1][3].add(u(0,e,be(t)?t:d)),o[2][3].add(u(0,e,be(n)?n:h))}).promise()},promise:function(e){return null!=e?_e.extend(e,s):s}},a={};return _e.each(o,function(e,t){var n=t[2],i=t[5];s[t[1]]=n.add,i&&n.add(function(){r=i},o[3-e][2].disable,o[3-e][3].disable,o[0][2].lock,o[0][3].lock),n.add(t[3].fire),a[t[0]]=function(){return a[t[0]+"With"](this===a?undefined:this,arguments),this},a[t[0]+"With"]=n.fireWith}),s.promise(a),e&&e.call(a,a),a},when:function(e){var n=arguments.length,t=n,i=Array(t),r=ue.call(arguments),o=_e.Deferred(),s=function(t){return function(e){i[t]=this,r[t]=1<arguments.length?ue.call(arguments):e,--n||o.resolveWith(i,r)}};if(n<=1&&(l(e,o.done(s(t)).resolve,o.reject,!n),"pending"===o.state()||be(r[t]&&r[t].then)))return o.then();for(;t--;)l(r[t],s(t),o.reject);return o.promise()}});var Le=/^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/;_e.Deferred.exceptionHook=function(e,t){_.console&&_.console.warn&&e&&Le.test(e.name)&&_.console.warn("jQuery.Deferred exception: "+e.message,e.stack,t)},_e.readyException=function(e){_.setTimeout(function(){throw e})};var Me=_e.Deferred();_e.fn.ready=function(e){return Me.then(e)["catch"](function(e){_e.readyException(e)}),this},_e.extend({isReady:!1,readyWait:1,ready:function(e){(!0===e?--_e.readyWait:_e.isReady)||(_e.isReady=!0)!==e&&0<--_e.readyWait||Me.resolveWith(Se,[_e])}}),_e.ready.then=Me.then,"complete"===Se.readyState||"loading"!==Se.readyState&&!Se.documentElement.doScroll?_.setTimeout(_e.ready):(Se.addEventListener("DOMContentLoaded",i),_.addEventListener("load",i));var je=function(e,t,n,i,r,o,s){var a=0,l=e.length,u=null==n;if("object"===g(n))for(a in r=!0,n)je(e,t,a,n[a],!0,o,s);else if(i!==undefined&&(r=!0,be(i)||(s=!0),u&&(s?(t.call(e,i),t=null):(u=t,t=function(e,t,n){return u.call(_e(e),n)})),t))for(;a<l;a++)t(e[a],n,s?i:i.call(e[a],a,t(e[a],n)));return r?e:u?t.call(e):l?t(e[0],n):o},Re=/^-ms-/,Ve=/-([a-z])/g,$e=function(e){return 1===e.nodeType||9===e.nodeType||!+e.nodeType};o.uid=1,o.prototype={cache:function(e){var t=e[this.expando];return t||(t={},$e(e)&&(e.nodeType?e[this.expando]=t:Object.defineProperty(e,this.expando,{value:t,configurable:!0}))),t},set:function(e,t,n){var i,r=this.cache(e);if("string"==typeof t)r[f(t)]=n;else for(i in t)r[f(i)]=t[i];return r},get:function(e,t){return t===undefined?this.cache(e):e[this.expando]&&e[this.expando][f(t)]},access:function(e,t,n){return t===undefined||t&&"string"==typeof t&&n===undefined?this.get(e,t):(this.set(e,t,n),n!==undefined?n:t)},remove:function(e,t){var n,i=e[this.expando];if(i!==undefined){if(t!==undefined){n=(t=Array.isArray(t)?t.map(f):(t=f(t))in i?[t]:t.match(Ie)||[]).length;for(;n--;)delete i[t[n]]}(t===undefined||_e.isEmptyObject(i))&&(e.nodeType?e[this.expando]=undefined:delete e[this.expando])}},hasData:function(e){var t=e[this.expando];return t!==undefined&&!_e.isEmptyObject(t)}};var Ue=new o,Be=new o,ze=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,He=/[A-Z]/g;_e.extend({hasData:function(e){return Be.hasData(e)||Ue.hasData(e)},data:function(e,t,n){return Be.access(e,t,n)},removeData:function(e,t){Be.remove(e,t)},_data:function(e,t,n){return Ue.access(e,t,n)},_removeData:function(e,t){Ue.remove(e,t)}}),_e.fn.extend({data:function(n,e){var t,i,r,o=this[0],s=o&&o.attributes;if(n===undefined){if(this.length&&(r=Be.get(o),1===o.nodeType&&!Ue.get(o,"hasDataAttrs"))){for(t=s.length;t--;)s[t]&&0===(i=s[t].name).indexOf("data-")&&(i=f(i.slice(5)),p(o,i,r[i]));Ue.set(o,"hasDataAttrs",!0)}return r}return"object"==typeof n?this.each(function(){Be.set(this,n)}):je(this,function(e){var t;if(o&&e===undefined)return(t=Be.get(o,n))!==undefined?t:(t=p(o,n))!==undefined?t:void 0;this.each(function(){Be.set(this,n,e)})},null,e,1<arguments.length,null,!0)},removeData:function(e){return this.each(function(){Be.remove(this,e)})}}),_e.extend({queue:function(e,t,n){var i;if(e)return t=(t||"fx")+"queue",i=Ue.get(e,t),n&&(!i||Array.isArray(n)?i=Ue.access(e,t,_e.makeArray(n)):i.push(n)),i||[]},dequeue:function(e,t){t=t||"fx";var n=_e.queue(e,t),i=n.length,r=n.shift(),o=_e._queueHooks(e,t),s=function(){_e.dequeue(e,t)};"inprogress"===r&&(r=n.shift(),i--),r&&("fx"===t&&n.unshift("inprogress"),delete o.stop,r.call(e,s,o)),!i&&o&&o.empty.fire()},_queueHooks:function(e,t){var n=t+"queueHooks";return Ue.get(e,n)||Ue.access(e,n,{empty:_e.Callbacks("once memory").add(function(){Ue.remove(e,[t+"queue",n])})})}}),_e.fn.extend({queue:function(t,n){var e=2;return"string"!=typeof t&&(n=t,t="fx",e--),arguments.length<e?_e.queue(this[0],t):n===undefined?this:this.each(function(){var e=_e.queue(this,t,n);_e._queueHooks(this,t),"fx"===t&&"inprogress"!==e[0]&&_e.dequeue(this,t)})},dequeue:function(e){return this.each(function(){_e.dequeue(this,e)})},clearQueue:function(e){return this.queue(e||"fx",[])},promise:function(e,t){var n,i=1,r=_e.Deferred(),o=this,s=this.length,a=function(){--i||r.resolveWith(o,[o])};for("string"!=typeof e&&(t=e,e=undefined),e=e||"fx";s--;)(n=Ue.get(o[s],e+"queueHooks"))&&n.empty&&(i++,n.empty.add(a));return a(),r.promise(t)}});var qe=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,We=new RegExp("^(?:([+-])=|)("+qe+")([a-z%]*)$","i"),Ye=["Top","Right","Bottom","Left"],Ge=Se.documentElement,Ke=function(e){return _e.contains(e.ownerDocument,e)},Ze={composed:!0};Ge.getRootNode&&(Ke=function(e){return _e.contains(e.ownerDocument,e)||e.getRootNode(Ze)===e.ownerDocument});var Qe=function(e,t){return"none"===(e=t||e).style.display||""===e.style.display&&Ke(e)&&"none"===_e.css(e,"display")},Xe={};_e.fn.extend({show:function(){return b(this,!0)},hide:function(){return b(this)},toggle:function(e){return"boolean"==typeof e?e?this.show():this.hide():this.each(function(){Qe(this)?_e(this).show():_e(this).hide()})}});var Je,et,tt=/^(?:checkbox|radio)$/i,nt=/<([a-z][^\/\0>\x20\t\r\n\f]*)/i,it=/^$|^module$|\/(?:java|ecma)script/i;Je=Se.createDocumentFragment().appendChild(Se.createElement("div")),(et=Se.createElement("input")).setAttribute("type","radio"),et.setAttribute("checked","checked"),et.setAttribute("name","t"),Je.appendChild(et),ye.checkClone=Je.cloneNode(!0).cloneNode(!0).lastChild.checked,Je.innerHTML="<textarea>x</textarea>",ye.noCloneChecked=!!Je.cloneNode(!0).lastChild.defaultValue,Je.innerHTML="<option></option>",ye.option=!!Je.lastChild;var rt={thead:[1,"<table>","</table>"],col:[2,"<table><colgroup>","</colgroup></table>"],tr:[2,"<table><tbody>","</tbody></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],_default:[0,"",""]};rt.tbody=rt.tfoot=rt.colgroup=rt.caption=rt.thead,rt.th=rt.td,ye.option||(rt.optgroup=rt.option=[1,"<select multiple='multiple'>","</select>"]);var ot=/<|&#?\w+;/,st=/^key/,at=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,lt=/^([^.]*)(?:\.(.+)|)/;_e.event={global:{},add:function(t,e,n,i,r){var o,s,a,l,u,c,d,h,f,p,m,g=Ue.get(t);if($e(t))for(n.handler&&(n=(o=n).handler,r=o.selector),r&&_e.find.matchesSelector(Ge,r),n.guid||(n.guid=_e.guid++),(l=g.events)||(l=g.events=Object.create(null)),(s=g.handle)||(s=g.handle=function(e){return void 0!==_e&&_e.event.triggered!==e.type?_e.event.dispatch.apply(t,arguments):undefined}),u=(e=(e||"").match(Ie)||[""]).length;u--;)f=m=(a=lt.exec(e[u])||[])[1],p=(a[2]||"").split(".").sort(),f&&(d=_e.event.special[f]||{},f=(r?d.delegateType:d.bindType)||f,d=_e.event.special[f]||{},c=_e.extend({type:f,origType:m,data:i,handler:n,guid:n.guid,selector:r,needsContext:r&&_e.expr.match.needsContext.test(r),namespace:p.join(".")},o),(h=l[f])||((h=l[f]=[]).delegateCount=0,d.setup&&!1!==d.setup.call(t,i,p,s)||t.addEventListener&&t.addEventListener(f,s)),d.add&&(d.add.call(t,c),c.handler.guid||(c.handler.guid=n.guid)),r?h.splice(h.delegateCount++,0,c):h.push(c),_e.event.global[f]=!0)},remove:function(e,t,n,i,r){var o,s,a,l,u,c,d,h,f,p,m,g=Ue.hasData(e)&&Ue.get(e);if(g&&(l=g.events)){for(u=(t=(t||"").match(Ie)||[""]).length;u--;)if(f=m=(a=lt.exec(t[u])||[])[1],p=(a[2]||"").split(".").sort(),f){for(d=_e.event.special[f]||{},h=l[f=(i?d.delegateType:d.bindType)||f]||[],a=a[2]&&new RegExp("(^|\\.)"+p.join("\\.(?:.*\\.|)")+"(\\.|$)"),s=o=h.length;o--;)c=h[o],!r&&m!==c.origType||n&&n.guid!==c.guid||a&&!a.test(c.namespace)||i&&i!==c.selector&&("**"!==i||!c.selector)||(h.splice(o,1),c.selector&&h.delegateCount--,d.remove&&d.remove.call(e,c));s&&!h.length&&(d.teardown&&!1!==d.teardown.call(e,p,g.handle)||_e.removeEvent(e,f,g.handle),delete l[f])}else for(f in l)_e.event.remove(e,f+t[u],n,i,!0);_e.isEmptyObject(l)&&Ue.remove(e,"handle events")}},dispatch:function(e){var t,n,i,r,o,s,a=new Array(arguments.length),l=_e.event.fix(e),u=(Ue.get(this,"events")||Object.create(null))[l.type]||[],c=_e.event.special[l.type]||{};for(a[0]=l,t=1;t<arguments.length;t++)a[t]=arguments[t]
;if(l.delegateTarget=this,!c.preDispatch||!1!==c.preDispatch.call(this,l)){for(s=_e.event.handlers.call(this,l,u),t=0;(r=s[t++])&&!l.isPropagationStopped();)for(l.currentTarget=r.elem,n=0;(o=r.handlers[n++])&&!l.isImmediatePropagationStopped();)l.rnamespace&&!1!==o.namespace&&!l.rnamespace.test(o.namespace)||(l.handleObj=o,l.data=o.data,(i=((_e.event.special[o.origType]||{}).handle||o.handler).apply(r.elem,a))!==undefined&&!1===(l.result=i)&&(l.preventDefault(),l.stopPropagation()));return c.postDispatch&&c.postDispatch.call(this,l),l.result}},handlers:function(e,t){var n,i,r,o,s,a=[],l=t.delegateCount,u=e.target;if(l&&u.nodeType&&!("click"===e.type&&1<=e.button))for(;u!==this;u=u.parentNode||this)if(1===u.nodeType&&("click"!==e.type||!0!==u.disabled)){for(o=[],s={},n=0;n<l;n++)s[r=(i=t[n]).selector+" "]===undefined&&(s[r]=i.needsContext?-1<_e(r,this).index(u):_e.find(r,this,null,[u]).length),s[r]&&o.push(i);o.length&&a.push({elem:u,handlers:o})}return u=this,l<t.length&&a.push({elem:u,handlers:t.slice(l)}),a},addProp:function(t,e){Object.defineProperty(_e.Event.prototype,t,{enumerable:!0,configurable:!0,get:be(e)?function(){if(this.originalEvent)return e(this.originalEvent)}:function(){if(this.originalEvent)return this.originalEvent[t]},set:function(e){Object.defineProperty(this,t,{enumerable:!0,configurable:!0,writable:!0,value:e})}})},fix:function(e){return e[_e.expando]?e:new _e.Event(e)},special:{load:{noBubble:!0},click:{setup:function(e){var t=this||e;return tt.test(t.type)&&t.click&&u(t,"input")&&O(t,"click",x),!1},trigger:function(e){var t=this||e;return tt.test(t.type)&&t.click&&u(t,"input")&&O(t,"click"),!0},_default:function(e){var t=e.target;return tt.test(t.type)&&t.click&&u(t,"input")&&Ue.get(t,"click")||u(t,"a")}},beforeunload:{postDispatch:function(e){e.result!==undefined&&e.originalEvent&&(e.originalEvent.returnValue=e.result)}}}},_e.removeEvent=function(e,t,n){e.removeEventListener&&e.removeEventListener(t,n)},_e.Event=function(e,t){if(!(this instanceof _e.Event))return new _e.Event(e,t);e&&e.type?(this.originalEvent=e,this.type=e.type,this.isDefaultPrevented=e.defaultPrevented||e.defaultPrevented===undefined&&!1===e.returnValue?x:C,this.target=e.target&&3===e.target.nodeType?e.target.parentNode:e.target,this.currentTarget=e.currentTarget,this.relatedTarget=e.relatedTarget):this.type=e,t&&_e.extend(this,t),this.timeStamp=e&&e.timeStamp||Date.now(),this[_e.expando]=!0},_e.Event.prototype={constructor:_e.Event,isDefaultPrevented:C,isPropagationStopped:C,isImmediatePropagationStopped:C,isSimulated:!1,preventDefault:function(){var e=this.originalEvent;this.isDefaultPrevented=x,e&&!this.isSimulated&&e.preventDefault()},stopPropagation:function(){var e=this.originalEvent;this.isPropagationStopped=x,e&&!this.isSimulated&&e.stopPropagation()},stopImmediatePropagation:function(){var e=this.originalEvent;this.isImmediatePropagationStopped=x,e&&!this.isSimulated&&e.stopImmediatePropagation(),this.stopPropagation()}},_e.each({altKey:!0,bubbles:!0,cancelable:!0,changedTouches:!0,ctrlKey:!0,detail:!0,eventPhase:!0,metaKey:!0,pageX:!0,pageY:!0,shiftKey:!0,view:!0,"char":!0,code:!0,charCode:!0,key:!0,keyCode:!0,button:!0,buttons:!0,clientX:!0,clientY:!0,offsetX:!0,offsetY:!0,pointerId:!0,pointerType:!0,screenX:!0,screenY:!0,targetTouches:!0,toElement:!0,touches:!0,which:function(e){var t=e.button;return null==e.which&&st.test(e.type)?null!=e.charCode?e.charCode:e.keyCode:!e.which&&t!==undefined&&at.test(e.type)?1&t?1:2&t?3:4&t?2:0:e.which}},_e.event.addProp),_e.each({focus:"focusin",blur:"focusout"},function(e,t){_e.event.special[e]={setup:function(){return O(this,e,T),!1},trigger:function(){return O(this,e),!0},delegateType:t}}),_e.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},function(e,o){_e.event.special[e]={delegateType:o,bindType:o,handle:function(e){var t,n=this,i=e.relatedTarget,r=e.handleObj;return i&&(i===n||_e.contains(n,i))||(e.type=r.origType,t=r.handler.apply(this,arguments),e.type=o),t}}}),_e.fn.extend({on:function(e,t,n,i){return P(this,e,t,n,i)},one:function(e,t,n,i){return P(this,e,t,n,i,1)},off:function(e,t,n){var i,r;if(e&&e.preventDefault&&e.handleObj)return i=e.handleObj,_e(e.delegateTarget).off(i.namespace?i.origType+"."+i.namespace:i.origType,i.selector,i.handler),this;if("object"==typeof e){for(r in e)this.off(r,t,e[r]);return this}return!1!==t&&"function"!=typeof t||(n=t,t=undefined),!1===n&&(n=C),this.each(function(){_e.event.remove(this,e,n,t)})}});var ut=/<script|<style|<link/i,ct=/checked\s*(?:[^=]|=\s*.checked.)/i,dt=/^\s*<!(?:\[CDATA\[|--)|(?:\]\]|--)>\s*$/g;_e.extend({htmlPrefilter:function(e){return e},clone:function(e,t,n){var i,r,o,s,a=e.cloneNode(!0),l=Ke(e);if(!(ye.noCloneChecked||1!==e.nodeType&&11!==e.nodeType||_e.isXMLDoc(e)))for(s=w(a),i=0,r=(o=w(e)).length;i<r;i++)I(o[i],s[i]);if(t)if(n)for(o=o||w(e),s=s||w(a),i=0,r=o.length;i<r;i++)F(o[i],s[i]);else F(e,a);return 0<(s=w(a,"script")).length&&S(s,!l&&w(e,"script")),a},cleanData:function(e){for(var t,n,i,r=_e.event.special,o=0;(n=e[o])!==undefined;o++)if($e(n)){if(t=n[Ue.expando]){if(t.events)for(i in t.events)r[i]?_e.event.remove(n,i):_e.removeEvent(n,i,t.handle);n[Ue.expando]=undefined}n[Be.expando]&&(n[Be.expando]=undefined)}}}),_e.fn.extend({detach:function(e){return M(this,e,!0)},remove:function(e){return M(this,e)},text:function(e){return je(this,function(e){return e===undefined?_e.text(this):this.empty().each(function(){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||(this.textContent=e)})},null,e,arguments.length)},append:function(){return L(this,arguments,function(e){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||N(this,e).appendChild(e)})},prepend:function(){return L(this,arguments,function(e){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var t=N(this,e);t.insertBefore(e,t.firstChild)}})},before:function(){return L(this,arguments,function(e){this.parentNode&&this.parentNode.insertBefore(e,this)})},after:function(){return L(this,arguments,function(e){this.parentNode&&this.parentNode.insertBefore(e,this.nextSibling)})},empty:function(){for(var e,t=0;null!=(e=this[t]);t++)1===e.nodeType&&(_e.cleanData(w(e,!1)),e.textContent="");return this},clone:function(e,t){return e=null!=e&&e,t=null==t?e:t,this.map(function(){return _e.clone(this,e,t)})},html:function(e){return je(this,function(e){var t=this[0]||{},n=0,i=this.length;if(e===undefined&&1===t.nodeType)return t.innerHTML;if("string"==typeof e&&!ut.test(e)&&!rt[(nt.exec(e)||["",""])[1].toLowerCase()]){e=_e.htmlPrefilter(e);try{for(;n<i;n++)1===(t=this[n]||{}).nodeType&&(_e.cleanData(w(t,!1)),t.innerHTML=e);t=0}catch(r){}}t&&this.empty().append(e)},null,e,arguments.length)},replaceWith:function(){var n=[];return L(this,arguments,function(e){var t=this.parentNode;_e.inArray(this,n)<0&&(_e.cleanData(w(this)),t&&t.replaceChild(e,this))},n)}}),_e.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(e,s){_e.fn[e]=function(e){for(var t,n=[],i=_e(e),r=i.length-1,o=0;o<=r;o++)t=o===r?this:this.clone(!0),_e(i[o])[s](t),de.apply(n,t.get());return this.pushStack(n)}});var ht=new RegExp("^("+qe+")(?!px)[a-z%]+$","i"),ft=function(e){var t=e.ownerDocument.defaultView;return t&&t.opener||(t=_),t.getComputedStyle(e)},pt=function(e,t,n){var i,r,o={};for(r in t)o[r]=e.style[r],e.style[r]=t[r];for(r in i=n.call(e),t)e.style[r]=o[r];return i},mt=new RegExp(Ye.join("|"),"i");!function(){function e(){if(u){l.style.cssText="position:absolute;left:-11111px;width:60px;margin-top:1px;padding:0;border:0",u.style.cssText="position:relative;display:block;box-sizing:border-box;overflow:scroll;margin:auto;border:1px;padding:1px;width:60%;top:1%",Ge.appendChild(l).appendChild(u);var e=_.getComputedStyle(u);n="1%"!==e.top,a=12===t(e.marginLeft),u.style.right="60%",o=36===t(e.right),i=36===t(e.width),u.style.position="absolute",r=12===t(u.offsetWidth/3),Ge.removeChild(l),u=null}}function t(e){return Math.round(parseFloat(e))}var n,i,r,o,s,a,l=Se.createElement("div"),u=Se.createElement("div");u.style&&(u.style.backgroundClip="content-box",u.cloneNode(!0).style.backgroundClip="",ye.clearCloneStyle="content-box"===u.style.backgroundClip,_e.extend(ye,{boxSizingReliable:function(){return e(),i},pixelBoxStyles:function(){return e(),o},pixelPosition:function(){return e(),n},reliableMarginLeft:function(){return e(),a},scrollboxSize:function(){return e(),r},reliableTrDimensions:function(){var e,t,n,i;return null==s&&(e=Se.createElement("table"),t=Se.createElement("tr"),n=Se.createElement("div"),e.style.cssText="position:absolute;left:-11111px",t.style.height="1px",n.style.height="9px",Ge.appendChild(e).appendChild(t).appendChild(n),i=_.getComputedStyle(t),s=3<parseInt(i.height),Ge.removeChild(e)),s}}))}();var gt=["Webkit","Moz","ms"],vt=Se.createElement("div").style,yt={},bt=/^(none|table(?!-c[ea]).+)/,wt=/^--/,St={position:"absolute",visibility:"hidden",display:"block"},kt={letterSpacing:"0",fontWeight:"400"};_e.extend({cssHooks:{opacity:{get:function(e,t){if(t){var n=j(e,"opacity");return""===n?"1":n}}}},cssNumber:{animationIterationCount:!0,columnCount:!0,fillOpacity:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,gridArea:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnStart:!0,gridRow:!0,gridRowEnd:!0,gridRowStart:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{},style:function(e,t,n,i){if(e&&3!==e.nodeType&&8!==e.nodeType&&e.style){var r,o,s,a=f(t),l=wt.test(t),u=e.style;if(l||(t=$(a)),s=_e.cssHooks[t]||_e.cssHooks[a],n===undefined)return s&&"get"in s&&(r=s.get(e,!1,i))!==undefined?r:u[t];"string"===(o=typeof n)&&(r=We.exec(n))&&r[1]&&(n=v(e,t,r),o="number"),null!=n&&n==n&&("number"!==o||l||(n+=r&&r[3]||(_e.cssNumber[a]?"":"px")),ye.clearCloneStyle||""!==n||0!==t.indexOf("background")||(u[t]="inherit"),s&&"set"in s&&(n=s.set(e,n,i))===undefined||(l?u.setProperty(t,n):u[t]=n))}},css:function(e,t,n,i){var r,o,s,a=f(t);return wt.test(t)||(t=$(a)),(s=_e.cssHooks[t]||_e.cssHooks[a])&&"get"in s&&(r=s.get(e,!0,n)),r===undefined&&(r=j(e,t,i)),"normal"===r&&t in kt&&(r=kt[t]),""===n||n?(o=parseFloat(r),!0===n||isFinite(o)?o||0:r):r}}),_e.each(["height","width"],function(e,l){_e.cssHooks[l]={get:function(e,t,n){if(t)return!bt.test(_e.css(e,"display"))||e.getClientRects().length&&e.getBoundingClientRect().width?z(e,l,n):pt(e,St,function(){return z(e,l,n)})},set:function(e,t,n){var i,r=ft(e),o=!ye.scrollboxSize()&&"absolute"===r.position,s=(o||n)&&"border-box"===_e.css(e,"boxSizing",!1,r),a=n?B(e,l,n,s,r):0;return s&&o&&(a-=Math.ceil(e["offset"+l[0].toUpperCase()+l.slice(1)]-parseFloat(r[l])-B(e,l,"border",!1,r)-.5)),a&&(i=We.exec(t))&&"px"!==(i[3]||"px")&&(e.style[l]=t,t=_e.css(e,l)),U(e,t,a)}}}),_e.cssHooks.marginLeft=R(ye.reliableMarginLeft,function(e,t){if(t)return(parseFloat(j(e,"marginLeft"))||e.getBoundingClientRect().left-pt(e,{marginLeft:0},function(){return e.getBoundingClientRect().left}))+"px"}),_e.each({margin:"",padding:"",border:"Width"},function(r,o){_e.cssHooks[r+o]={expand:function(e){for(var t=0,n={},i="string"==typeof e?e.split(" "):[e];t<4;t++)n[r+Ye[t]+o]=i[t]||i[t-2]||i[0];return n}},"margin"!==r&&(_e.cssHooks[r+o].set=U)}),_e.fn.extend({css:function(e,t){return je(this,function(e,t,n){var i,r,o={},s=0;if(Array.isArray(t)){for(i=ft(e),r=t.length;s<r;s++)o[t[s]]=_e.css(e,t[s],!1,i);return o}return n!==undefined?_e.style(e,t,n):_e.css(e,t)},e,t,1<arguments.length)}}),(_e.Tween=H).prototype={constructor:H,init:function(e,t,n,i,r,o){this.elem=e,this.prop=n,this.easing=r||_e.easing._default,this.options=t,this.start=this.now=this.cur(),this.end=i,this.unit=o||(_e.cssNumber[n]?"":"px")},cur:function(){var e=H.propHooks[this.prop];return e&&e.get?e.get(this):H.propHooks._default.get(this)},run:function(e){var t,n=H.propHooks[this.prop];return this.options.duration?this.pos=t=_e.easing[this.easing](e,this.options.duration*e,0,1,this.options.duration):this.pos=t=e,this.now=(this.end-this.start)*t+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),n&&n.set?n.set(this):H.propHooks._default.set(this),this}},H.prototype.init.prototype=H.prototype,H.propHooks={_default:{get:function(e){var t;return 1!==e.elem.nodeType||null!=e.elem[e.prop]&&null==e.elem.style[e.prop]?e.elem[e.prop]:(t=_e.css(e.elem,e.prop,""))&&"auto"!==t?t:0},set:function(e){_e.fx.step[e.prop]?_e.fx.step[e.prop](e):1!==e.elem.nodeType||!_e.cssHooks[e.prop]&&null==e.elem.style[$(e.prop)]?e.elem[e.prop]=e.now:_e.style(e.elem,e.prop,e.now+e.unit)}}},H.propHooks.scrollTop=H.propHooks.scrollLeft={set:function(e){e.elem.nodeType&&e.elem.parentNode&&(e.elem[e.prop]=e.now)}},_e.easing={linear:function(e){return e},swing:function(e){return.5-Math.cos(e*Math.PI)/2},_default:"swing"},_e.fx=H.prototype.init,_e.fx.step={};var xt,_t,Ct,Tt,Et=/^(?:toggle|show|hide)$/,Pt=/queueHooks$/;_e.Animation=_e.extend(Q,{tweeners:{"*":[function(e,t){var n=this.createTween(e,t);return v(n.elem,e,We.exec(t),n),n}]},tweener:function(e,t){be(e)?(t=e,e=["*"]):e=e.match(Ie);for(var n,i=0,r=e.length;i<r;i++)n=e[i],Q.tweeners[n]=Q.tweeners[n]||[],Q.tweeners[n].unshift(t)},prefilters:[K],prefilter:function(e,t){t?Q.prefilters.unshift(e):Q.prefilters.push(e)}}),_e.speed=function(e,t,n){var i=e&&"object"==typeof e?_e.extend({},e):{complete:n||!n&&t||be(e)&&e,duration:e,easing:n&&t||t&&!be(t)&&t};return _e.fx.off?i.duration=0:"number"!=typeof i.duration&&(i.duration in _e.fx.speeds?i.duration=_e.fx.speeds[i.duration]:i.duration=_e.fx.speeds._default),null!=i.queue&&!0!==i.queue||(i.queue="fx"),i.old=i.complete,i.complete=function(){be(i.old)&&i.old.call(this),i.queue&&_e.dequeue(this,i.queue)},i},_e.fn.extend({fadeTo:function(e,t,n,i){return this.filter(Qe).css("opacity",0).show().end().animate({opacity:t},e,n,i)},animate:function(t,e,n,i){var r=_e.isEmptyObject(t),o=_e.speed(e,n,i),s=function(){var e=Q(this,_e.extend({},t),o);(r||Ue.get(this,"finish"))&&e.stop(!0)};return s.finish=s,r||!1===o.queue?this.each(s):this.queue(o.queue,s)},stop:function(r,e,o){var s=function(e){var t=e.stop;delete e.stop,t(o)};return"string"!=typeof r&&(o=e,e=r,r=undefined),e&&this.queue(r||"fx",[]),this.each(function(){var e=!0,t=null!=r&&r+"queueHooks",n=_e.timers,i=Ue.get(this);if(t)i[t]&&i[t].stop&&s(i[t]);else for(t in i)i[t]&&i[t].stop&&Pt.test(t)&&s(i[t]);for(t=n.length;t--;)n[t].elem!==this||null!=r&&n[t].queue!==r||(n[t].anim.stop(o),e=!1,n.splice(t,1));!e&&o||_e.dequeue(this,r)})},finish:function(s){return!1!==s&&(s=s||"fx"),this.each(function(){var e,t=Ue.get(this),n=t[s+"queue"],i=t[s+"queueHooks"],r=_e.timers,o=n?n.length:0;for(t.finish=!0,_e.queue(this,s,[]),i&&i.stop&&i.stop.call(this,!0),e=r.length;e--;)r[e].elem===this&&r[e].queue===s&&(r[e].anim.stop(!0),r.splice(e,1));for(e=0;e<o;e++)n[e]&&n[e].finish&&n[e].finish.call(this);delete t.finish})}}),_e.each(["toggle","show","hide"],function(e,i){var r=_e.fn[i];_e.fn[i]=function(e,t,n){return null==e||"boolean"==typeof e?r.apply(this,arguments):this.animate(Y(i,!0),e,t,n)}}),_e.each({slideDown:Y("show"),slideUp:Y("hide"),slideToggle:Y("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(e,i){_e.fn[e]=function(e,t,n){return this.animate(i,e,t,n)}}),_e.timers=[],_e.fx.tick=function(){var e,t=0,n=_e.timers;for(xt=Date.now();t<n.length;t++)(e=n[t])()||n[t]!==e||n.splice(t--,1);n.length||_e.fx.stop(),xt=undefined},_e.fx.timer=function(e){_e.timers.push(e),_e.fx.start()},_e.fx.interval=13,_e.fx.start=function(){_t||(_t=!0,q())},_e.fx.stop=function(){_t=null},_e.fx.speeds={slow:600,fast:200,_default:400},_e.fn.delay=function(i,e){return i=_e.fx&&_e.fx.speeds[i]||i,e=e||"fx",this.queue(e,function(e,t){var n=_.setTimeout(e,i);t.stop=function(){_.clearTimeout(n)}})},Ct=Se.createElement("input"),Tt=Se.createElement("select").appendChild(Se.createElement("option")),Ct.type="checkbox",ye.checkOn=""!==Ct.value,ye.optSelected=Tt.selected,(Ct=Se.createElement("input")).value="t",Ct.type="radio",ye.radioValue="t"===Ct.value;var Ot,Nt=_e.expr.attrHandle;_e.fn.extend({attr:function(e,t){return je(this,_e.attr,e,t,1<arguments.length)},removeAttr:function(e){return this.each(function(){_e.removeAttr(this,e)})}}),_e.extend({attr:function(e,t,n){var i,r,o=e.nodeType;if(3!==o&&8!==o&&2!==o)return"undefined"==typeof e.getAttribute?_e.prop(e,t,n):(1===o&&_e.isXMLDoc(e)||(r=_e.attrHooks[t.toLowerCase()]||(_e.expr.match.bool.test(t)?Ot:undefined)),n!==undefined?null===n?void _e.removeAttr(e,t):r&&"set"in r&&(i=r.set(e,n,t))!==undefined?i:(e.setAttribute(t,n+""),n):r&&"get"in r&&null!==(i=r.get(e,t))?i:null==(i=_e.find.attr(e,t))?undefined:i)},attrHooks:{type:{set:function(e,t){if(!ye.radioValue&&"radio"===t&&u(e,"input")){var n=e.value;return e.setAttribute("type",t),n&&(e.value=n),t}}}},removeAttr:function(e,t){var n,i=0,r=t&&t.match(Ie);if(r&&1===e.nodeType)for(;n=r[i++];)e.removeAttribute(n)}}),Ot={set:function(e,t,n){return!1===t?_e.removeAttr(e,n):e.setAttribute(n,n),n}},_e.each(_e.expr.match.bool.source.match(/\w+/g),function(e,t){var s=Nt[t]||_e.find.attr;Nt[t]=function(e,t,n){var i,r,o=t.toLowerCase();return n||(r=Nt[o],Nt[o]=i,i=null!=s(e,t,n)?o:null,Nt[o]=r),i}});var At=/^(?:input|select|textarea|button)$/i,Dt=/^(?:a|area)$/i;_e.fn.extend({prop:function(e,t){return je(this,_e.prop,e,t,1<arguments.length)},removeProp:function(e){return this.each(function(){delete this[_e.propFix[e]||e]})}}),_e.extend({prop:function(e,t,n){var i,r,o=e.nodeType;if(3!==o&&8!==o&&2!==o)return 1===o&&_e.isXMLDoc(e)||(t=_e.propFix[t]||t,r=_e.propHooks[t]),n!==undefined?r&&"set"in r&&(i=r.set(e,n,t))!==undefined?i:e[t]=n:r&&"get"in r&&null!==(i=r.get(e,t))?i:e[t]},propHooks:{tabIndex:{get:function(e){var t=_e.find.attr(e,"tabindex");return t?parseInt(t,10):At.test(e.nodeName)||Dt.test(e.nodeName)&&e.href?0:-1}}},propFix:{"for":"htmlFor","class":"className"}}),ye.optSelected||(_e.propHooks.selected={get:function(e){var t=e.parentNode;return t&&t.parentNode&&t.parentNode.selectedIndex,null},set:function(e){var t=e.parentNode;t&&(t.selectedIndex,t.parentNode&&t.parentNode.selectedIndex)}}),_e.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],function(){_e.propFix[this.toLowerCase()]=this}),_e.fn.extend({addClass:function(t){var e,n,i,r,o,s,a,l=0;if(be(t))return this.each(function(e){_e(this).addClass(t.call(this,e,J(this)))});if((e=ee(t)).length)for(;n=this[l++];)if(r=J(n),i=1===n.nodeType&&" "+X(r)+" "){for(s=0;o=e[s++];)i.indexOf(" "+o+" ")<0&&(i+=o+" ");r!==(a=X(i))&&n.setAttribute("class",a)}return this},removeClass:function(t){var e,n,i,r,o,s,a,l=0;if(be(t))return this.each(function(e){_e(this).removeClass(t.call(this,e,J(this)))});if(!arguments.length)return this.attr("class","");if((e=ee(t)).length)for(;n=this[l++];)if(r=J(n),i=1===n.nodeType&&" "+X(r)+" "){for(s=0;o=e[s++];)for(;-1<i.indexOf(" "+o+" ");)i=i.replace(" "+o+" "," ");r!==(a=X(i))&&n.setAttribute("class",a)}return this},toggleClass:function(r,t){var o=typeof r,s="string"===o||Array.isArray(r);return"boolean"==typeof t&&s?t?this.addClass(r):this.removeClass(r):be(r)?this.each(function(e){_e(this).toggleClass(r.call(this,e,J(this),t),t)}):this.each(function(){var e,t,n,i;if(s)for(t=0,n=_e(this),i=ee(r);e=i[t++];)n.hasClass(e)?n.removeClass(e):n.addClass(e);else r!==undefined&&"boolean"!==o||((e=J(this))&&Ue.set(this,"__className__",e),this.setAttribute&&this.setAttribute("class",e||!1===r?"":Ue.get(this,"__className__")||""))})},hasClass:function(e){var t,n,i=0;for(t=" "+e+" ";n=this[i++];)if(1===n.nodeType&&-1<(" "+X(J(n))+" ").indexOf(t))return!0;return!1}});var Ft=/\r/g;_e.fn.extend({val:function(n){var i,e,r,t=this[0];return arguments.length?(r=be(n),this.each(function(e){var t;1===this.nodeType&&(null==(t=r?n.call(this,e,_e(this).val()):n)?t="":"number"==typeof t?t+="":Array.isArray(t)&&(t=_e.map(t,function(e){return null==e?"":e+""})),(i=_e.valHooks[this.type]||_e.valHooks[this.nodeName.toLowerCase()])&&"set"in i&&i.set(this,t,"value")!==undefined||(this.value=t))})):t?(i=_e.valHooks[t.type]||_e.valHooks[t.nodeName.toLowerCase()])&&"get"in i&&(e=i.get(t,"value"))!==undefined?e:"string"==typeof(e=t.value)?e.replace(Ft,""):null==e?"":e:void 0}}),_e.extend({valHooks:{option:{get:function(e){var t=_e.find.attr(e,"value");return null!=t?t:X(_e.text(e))}},select:{get:function(e){var t,n,i,r=e.options,o=e.selectedIndex,s="select-one"===e.type,a=s?null:[],l=s?o+1:r.length;for(i=o<0?l:s?o:0;i<l;i++)if(((n=r[i]).selected||i===o)&&!n.disabled&&(!n.parentNode.disabled||!u(n.parentNode,"optgroup"))){if(t=_e(n).val(),s)return t;a.push(t)}return a},set:function(e,t){for(var n,i,r=e.options,o=_e.makeArray(t),s=r.length;s--;)((i=r[s]).selected=-1<_e.inArray(_e.valHooks.option.get(i),o))&&(n=!0);return n||(e.selectedIndex=-1),o}}}}),_e.each(["radio","checkbox"],function(){_e.valHooks[this]={set:function(e,t){if(Array.isArray(t))return e.checked=-1<_e.inArray(_e(e).val(),t)}},ye.checkOn||(_e.valHooks[this].get=function(e){return null===e.getAttribute("value")?"on":e.value})}),ye.focusin="onfocusin"in _;var It=/^(?:focusinfocus|focusoutblur)$/,Lt=function(e){e.stopPropagation()};_e.extend(_e.event,{trigger:function(e,t,n,i){var r,o,s,a,l,u,c,d,h=[n||Se],f=me.call(e,"type")?e.type:e,p=me.call(e,"namespace")?e.namespace.split("."):[];if(o=d=s=n=n||Se,3!==n.nodeType&&8!==n.nodeType&&!It.test(f+_e.event.triggered)&&(-1<f.indexOf(".")&&(f=(p=f.split(".")).shift(),p.sort()),l=f.indexOf(":")<0&&"on"+f,(e=e[_e.expando]?e:new _e.Event(f,"object"==typeof e&&e)).isTrigger=i?2:3,e.namespace=p.join("."),e.rnamespace=e.namespace?new RegExp("(^|\\.)"+p.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,e.result=undefined,e.target||(e.target=n),t=null==t?[e]:_e.makeArray(t,[e]),c=_e.event.special[f]||{},i||!c.trigger||!1!==c.trigger.apply(n,t))){if(!i&&!c.noBubble&&!we(n)){for(a=c.delegateType||f,It.test(a+f)||(o=o.parentNode);o;o=o.parentNode)h.push(o),s=o;s===(n.ownerDocument||Se)&&h.push(s.defaultView||s.parentWindow||_)}for(r=0;(o=h[r++])&&!e.isPropagationStopped();)d=o,e.type=1<r?a:c.bindType||f,(u=(Ue.get(o,"events")||Object.create(null))[e.type]&&Ue.get(o,"handle"))&&u.apply(o,t),(u=l&&o[l])&&u.apply&&$e(o)&&(e.result=u.apply(o,t),!1===e.result&&e.preventDefault());return e.type=f,i||e.isDefaultPrevented()||c._default&&!1!==c._default.apply(h.pop(),t)||!$e(n)||l&&be(n[f])&&!we(n)&&((s=n[l])&&(n[l]=null),_e.event.triggered=f,e.isPropagationStopped()&&d.addEventListener(f,Lt),n[f](),e.isPropagationStopped()&&d.removeEventListener(f,Lt),_e.event.triggered=undefined,s&&(n[l]=s)),e.result}},simulate:function(e,t,n){var i=_e.extend(new _e.Event,n,{type:e,isSimulated:!0});_e.event.trigger(i,null,t)}}),_e.fn.extend({trigger:function(e,t){return this.each(function(){_e.event.trigger(e,t,this)})},triggerHandler:function(e,t){var n=this[0];if(n)return _e.event.trigger(e,t,n,!0)}}),ye.focusin||_e.each({focus:"focusin",blur:"focusout"},function(n,i){var r=function(e){_e.event.simulate(i,e.target,_e.event.fix(e))};_e.event.special[i]={setup:function(){var e=this.ownerDocument||this.document||this,t=Ue.access(e,i);t||e.addEventListener(n,r,!0),Ue.access(e,i,(t||0)+1)},teardown:function(){var e=this.ownerDocument||this.document||this,t=Ue.access(e,i)-1;t?Ue.access(e,i,t):(e.removeEventListener(n,r,!0),Ue.remove(e,i))}}});var Mt=_.location,jt={guid:Date.now()},Rt=/\?/;_e.parseXML=function(e){var t;if(!e||"string"!=typeof e)return null;try{t=(new _.DOMParser).parseFromString(e,"text/xml")}catch(n){t=undefined}return t&&!t.getElementsByTagName("parsererror").length||_e.error("Invalid XML: "+e),t};var Vt=/\[\]$/,$t=/\r?\n/g,Ut=/^(?:submit|button|image|reset|file)$/i,Bt=/^(?:input|select|textarea|keygen)/i;_e.param=function(e,t){var n,i=[],r=function(e,t){var n=be(t)?t():t;i[i.length]=encodeURIComponent(e)+"="+encodeURIComponent(null==n?"":n)};if(null==e)return"";if(Array.isArray(e)||e.jquery&&!_e.isPlainObject(e))_e.each(e,function(){r(this.name,this.value)});else for(n in e)te(n,e[n],t,r);return i.join("&")},_e.fn.extend({serialize:function(){return _e.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var e=_e.prop(this,"elements");return e?_e.makeArray(e):this}).filter(function(){var e=this.type;return this.name&&!_e(this).is(":disabled")&&Bt.test(this.nodeName)&&!Ut.test(e)&&(this.checked||!tt.test(e))}).map(function(e,t){var n=_e(this).val();return null==n?null:Array.isArray(n)?_e.map(n,function(e){return{name:t.name,value:e.replace($t,"\r\n")}}):{name:t.name,value:n.replace($t,"\r\n")}}).get()}});var zt=/%20/g,Ht=/#.*$/,qt=/([?&])_=[^&]*/,Wt=/^(.*?):[ \t]*([^\r\n]*)$/gm,Yt=/^(?:about|app|app-storage|.+-extension|file|res|widget):$/,Gt=/^(?:GET|HEAD)$/,Kt=/^\/\//,Zt={},Qt={},Xt="*/".concat("*"),Jt=Se.createElement("a");Jt.href=Mt.href,_e.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:Mt.href,type:"GET",isLocal:Yt.test(Mt.protocol),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":Xt,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/\bxml\b/,html:/\bhtml/,json:/\bjson\b/},responseFields:{xml:"responseXML",text:"responseText",json:"responseJSON"},converters:{"* text":String,"text html":!0,"text json":JSON.parse,"text xml":_e.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(e,t){return t?re(re(e,_e.ajaxSettings),t):re(_e.ajaxSettings,e)},ajaxPrefilter:ne(Zt),ajaxTransport:ne(Qt),ajax:function(e,t){function n(e,t,n,i){var r,o,s,a,l,u=t;p||(p=!0,f&&_.clearTimeout(f),c=undefined,h=i||"",k.readyState=0<e?4:0,r=200<=e&&e<300||304===e,n&&(a=oe(g,k,n)),!r&&-1<_e.inArray("script",g.dataTypes)&&(g.converters["text script"]=function(){}),a=se(g,a,k,r),r?(g.ifModified&&((l=k.getResponseHeader("Last-Modified"))&&(_e.lastModified[d]=l),(l=k.getResponseHeader("etag"))&&(_e.etag[d]=l)),204===e||"HEAD"===g.type?u="nocontent":304===e?u="notmodified":(u=a.state,o=a.data,r=!(s=a.error))):(s=u,!e&&u||(u="error",e<0&&(e=0))),k.status=e,k.statusText=(t||u)+"",r?b.resolveWith(v,[o,u,k]):b.rejectWith(v,[k,u,s]),k.statusCode(S),S=undefined,m&&y.trigger(r?"ajaxSuccess":"ajaxError",[k,g,r?o:s]),w.fireWith(v,[k,u]),m&&(y.trigger("ajaxComplete",[k,g]),--_e.active||_e.event.trigger("ajaxStop")))}"object"==typeof e&&(t=e,e=undefined),t=t||{};var c,d,h,i,f,r,p,m,o,s,g=_e.ajaxSetup({},t),v=g.context||g,y=g.context&&(v.nodeType||v.jquery)?_e(v):_e.event,b=_e.Deferred(),w=_e.Callbacks("once memory"),S=g.statusCode||{},a={},l={},u="canceled",k={readyState:0,getResponseHeader:function(e){var t;if(p){if(!i)for(i={};t=Wt.exec(h);)i[t[1].toLowerCase()+" "]=(i[t[1].toLowerCase()+" "]||[]).concat(t[2]);t=i[e.toLowerCase()+" "]}return null==t?null:t.join(", ")},getAllResponseHeaders:function(){return p?h:null},setRequestHeader:function(e,t){return null==p&&(e=l[e.toLowerCase()]=l[e.toLowerCase()]||e,a[e]=t),this},overrideMimeType:function(e){return null==p&&(g.mimeType=e),this},statusCode:function(e){var t;if(e)if(p)k.always(e[k.status]);else for(t in e)S[t]=[S[t],e[t]];return this},abort:function(e){var t=e||u;return c&&c.abort(t),n(0,t),this}};if(b.promise(k),g.url=((e||g.url||Mt.href)+"").replace(Kt,Mt.protocol+"//"),g.type=t.method||t.type||g.method||g.type,g.dataTypes=(g.dataType||"*").toLowerCase().match(Ie)||[""],null==g.crossDomain){r=Se.createElement("a");try{r.href=g.url,r.href=r.href,g.crossDomain=Jt.protocol+"//"+Jt.host!=r.protocol+"//"+r.host}catch(x){g.crossDomain=!0}}if(g.data&&g.processData&&"string"!=typeof g.data&&(g.data=_e.param(g.data,g.traditional)),ie(Zt,g,t,k),p)return k;for(o in(m=_e.event&&g.global)&&0==_e.active++&&_e.event.trigger("ajaxStart"),g.type=g.type.toUpperCase(),g.hasContent=!Gt.test(g.type),d=g.url.replace(Ht,""),g.hasContent?g.data&&g.processData&&0===(g.contentType||"").indexOf("application/x-www-form-urlencoded")&&(g.data=g.data.replace(zt,"+")):(s=g.url.slice(d.length),g.data&&(g.processData||"string"==typeof g.data)&&(d+=(Rt.test(d)?"&":"?")+g.data,delete g.data),!1===g.cache&&(d=d.replace(qt,"$1"),s=(Rt.test(d)?"&":"?")+"_="+jt.guid+++s),g.url=d+s),g.ifModified&&(_e.lastModified[d]&&k.setRequestHeader("If-Modified-Since",_e.lastModified[d]),_e.etag[d]&&k.setRequestHeader("If-None-Match",_e.etag[d])),(g.data&&g.hasContent&&!1!==g.contentType||t.contentType)&&k.setRequestHeader("Content-Type",g.contentType),k.setRequestHeader("Accept",g.dataTypes[0]&&g.accepts[g.dataTypes[0]]?g.accepts[g.dataTypes[0]]+("*"!==g.dataTypes[0]?", "+Xt+"; q=0.01":""):g.accepts["*"]),g.headers)k.setRequestHeader(o,g.headers[o]);if(g.beforeSend&&(!1===g.beforeSend.call(v,k,g)||p))return k.abort();if(u="abort",w.add(g.complete),k.done(g.success),k.fail(g.error),c=ie(Qt,g,t,k)){if(k.readyState=1,m&&y.trigger("ajaxSend",[k,g]),p)return k;g.async&&0<g.timeout&&(f=_.setTimeout(function(){k.abort("timeout")},g.timeout));try{p=!1,c.send(a,n)}catch(x){if(p)throw x;n(-1,x)}}else n(-1,"No Transport");return k},getJSON:function(e,t,n){return _e.get(e,t,n,"json")},getScript:function(e,t){return _e.get(e,undefined,t,"script")}}),_e.each(["get","post"],function(e,r){_e[r]=function(e,t,n,i){return be(t)&&(i=i||n,n=t,t=undefined),_e.ajax(_e.extend({url:e,type:r,dataType:i,data:t,success:n},_e.isPlainObject(e)&&e))}}),_e.ajaxPrefilter(function(e){var t;for(t in e.headers)"content-type"===t.toLowerCase()&&(e.contentType=e.headers[t]||"")}),_e._evalUrl=function(e,t,n){return _e.ajax({url:e,type:"GET",dataType:"script",cache:!0,async:!1,global:!1,converters:{"text script":function(){}},dataFilter:function(e){_e.globalEval(e,t,n)}})},_e.fn.extend({wrapAll:function(e){var t;return this[0]&&(be(e)&&(e=e.call(this[0])),t=_e(e,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&t.insertBefore(this[0]),t.map(function(){for(var e=this;e.firstElementChild;)e=e.firstElementChild;return e}).append(this)),this},wrapInner:function(n){return be(n)?this.each(function(e){_e(this).wrapInner(n.call(this,e))}):this.each(function(){var e=_e(this),t=e.contents();t.length?t.wrapAll(n):e.append(n)})},wrap:function(t){var n=be(t);return this.each(function(e){_e(this).wrapAll(n?t.call(this,e):t)})},unwrap:function(e){return this.parent(e).not("body").each(function(){_e(this).replaceWith(this.childNodes)}),this}}),_e.expr.pseudos.hidden=function(e){return!_e.expr.pseudos.visible(e)},_e.expr.pseudos.visible=function(e){return!!(e.offsetWidth||e.offsetHeight||e.getClientRects().length)},_e.ajaxSettings.xhr=function(){try{return new _.XMLHttpRequest}catch(e){}};var en={0:200,1223:204},tn=_e.ajaxSettings.xhr();ye.cors=!!tn&&"withCredentials"in tn,ye.ajax=tn=!!tn,_e.ajaxTransport(function(o){var s,a;if(ye.cors||tn&&!o.crossDomain)return{send:function(e,t){var n,i=o.xhr();if(i.open(o.type,o.url,o.async,o.username,o.password),o.xhrFields)for(n in o.xhrFields)i[n]=o.xhrFields[n];for(n in o.mimeType&&i.overrideMimeType&&i.overrideMimeType(o.mimeType),o.crossDomain||e["X-Requested-With"]||(e["X-Requested-With"]="XMLHttpRequest"),e)i.setRequestHeader(n,e[n]);s=function(e){return function(){s&&(s=a=i.onload=i.onerror=i.onabort=i.ontimeout=i.onreadystatechange=null,"abort"===e?i.abort():"error"===e?"number"!=typeof i.status?t(0,"error"):t(i.status,i.statusText):t(en[i.status]||i.status,i.statusText,"text"!==(i.responseType||"text")||"string"!=typeof i.responseText?{binary:i.response}:{text:i.responseText},i.getAllResponseHeaders()))}},i.onload=s(),a=i.onerror=i.ontimeout=s("error"),i.onabort!==undefined?i.onabort=a:i.onreadystatechange=function(){4===i.readyState&&_.setTimeout(function(){s&&a()})},s=s("abort");try{i.send(o.hasContent&&o.data||null)}catch(r){if(s)throw r}},abort:function(){s&&s()}}}),_e.ajaxPrefilter(function(e){e.crossDomain&&(e.contents.script=!1)}),_e.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/\b(?:java|ecma)script\b/},converters:{"text script":function(e){return _e.globalEval(e),e}}}),_e.ajaxPrefilter("script",function(e){e.cache===undefined&&(e.cache=!1),e.crossDomain&&(e.type="GET")}),_e.ajaxTransport("script",function(n){var i,r;if(n.crossDomain||n.scriptAttrs)return{send:function(e,t){i=_e("<script>").attr(n.scriptAttrs||{}).prop({charset:n.scriptCharset,src:n.url}).on("load error",r=function(e){i.remove(),r=null,e&&t("error"===e.type?404:200,e.type)}),Se.head.appendChild(i[0])},abort:function(){r&&r()}}});var nn,rn=[],on=/(=)\?(?=&|$)|\?\?/;_e.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var e=rn.pop()||_e.expando+"_"+jt.guid++;return this[e]=!0,e}}),_e.ajaxPrefilter("json jsonp",function(e,t,n){
var i,r,o,s=!1!==e.jsonp&&(on.test(e.url)?"url":"string"==typeof e.data&&0===(e.contentType||"").indexOf("application/x-www-form-urlencoded")&&on.test(e.data)&&"data");if(s||"jsonp"===e.dataTypes[0])return i=e.jsonpCallback=be(e.jsonpCallback)?e.jsonpCallback():e.jsonpCallback,s?e[s]=e[s].replace(on,"$1"+i):!1!==e.jsonp&&(e.url+=(Rt.test(e.url)?"&":"?")+e.jsonp+"="+i),e.converters["script json"]=function(){return o||_e.error(i+" was not called"),o[0]},e.dataTypes[0]="json",r=_[i],_[i]=function(){o=arguments},n.always(function(){r===undefined?_e(_).removeProp(i):_[i]=r,e[i]&&(e.jsonpCallback=t.jsonpCallback,rn.push(i)),o&&be(r)&&r(o[0]),o=r=undefined}),"script"}),ye.createHTMLDocument=((nn=Se.implementation.createHTMLDocument("").body).innerHTML="<form></form><form></form>",2===nn.childNodes.length),_e.parseHTML=function(e,t,n){return"string"!=typeof e?[]:("boolean"==typeof t&&(n=t,t=!1),t||(ye.createHTMLDocument?((i=(t=Se.implementation.createHTMLDocument("")).createElement("base")).href=Se.location.href,t.head.appendChild(i)):t=Se),o=!n&&[],(r=Oe.exec(e))?[t.createElement(r[1])]:(r=k([e],t,o),o&&o.length&&_e(o).remove(),_e.merge([],r.childNodes)));var i,r,o},_e.fn.load=function(e,t,n){var i,r,o,s=this,a=e.indexOf(" ");return-1<a&&(i=X(e.slice(a)),e=e.slice(0,a)),be(t)?(n=t,t=undefined):t&&"object"==typeof t&&(r="POST"),0<s.length&&_e.ajax({url:e,type:r||"GET",dataType:"html",data:t}).done(function(e){o=arguments,s.html(i?_e("<div>").append(_e.parseHTML(e)).find(i):e)}).always(n&&function(e,t){s.each(function(){n.apply(this,o||[e.responseText,t,e])})}),this},_e.expr.pseudos.animated=function(t){return _e.grep(_e.timers,function(e){return t===e.elem}).length},_e.offset={setOffset:function(e,t,n){var i,r,o,s,a,l,u=_e.css(e,"position"),c=_e(e),d={};"static"===u&&(e.style.position="relative"),a=c.offset(),o=_e.css(e,"top"),l=_e.css(e,"left"),("absolute"===u||"fixed"===u)&&-1<(o+l).indexOf("auto")?(s=(i=c.position()).top,r=i.left):(s=parseFloat(o)||0,r=parseFloat(l)||0),be(t)&&(t=t.call(e,n,_e.extend({},a))),null!=t.top&&(d.top=t.top-a.top+s),null!=t.left&&(d.left=t.left-a.left+r),"using"in t?t.using.call(e,d):("number"==typeof d.top&&(d.top+="px"),"number"==typeof d.left&&(d.left+="px"),c.css(d))}},_e.fn.extend({offset:function(t){if(arguments.length)return t===undefined?this:this.each(function(e){_e.offset.setOffset(this,t,e)});var e,n,i=this[0];return i?i.getClientRects().length?(e=i.getBoundingClientRect(),n=i.ownerDocument.defaultView,{top:e.top+n.pageYOffset,left:e.left+n.pageXOffset}):{top:0,left:0}:void 0},position:function(){if(this[0]){var e,t,n,i=this[0],r={top:0,left:0};if("fixed"===_e.css(i,"position"))t=i.getBoundingClientRect();else{for(t=this.offset(),n=i.ownerDocument,e=i.offsetParent||n.documentElement;e&&(e===n.body||e===n.documentElement)&&"static"===_e.css(e,"position");)e=e.parentNode;e&&e!==i&&1===e.nodeType&&((r=_e(e).offset()).top+=_e.css(e,"borderTopWidth",!0),r.left+=_e.css(e,"borderLeftWidth",!0))}return{top:t.top-r.top-_e.css(i,"marginTop",!0),left:t.left-r.left-_e.css(i,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){for(var e=this.offsetParent;e&&"static"===_e.css(e,"position");)e=e.offsetParent;return e||Ge})}}),_e.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(t,r){var o="pageYOffset"===r;_e.fn[t]=function(e){return je(this,function(e,t,n){var i;if(we(e)?i=e:9===e.nodeType&&(i=e.defaultView),n===undefined)return i?i[r]:e[t];i?i.scrollTo(o?i.pageXOffset:n,o?n:i.pageYOffset):e[t]=n},t,e,arguments.length)}}),_e.each(["top","left"],function(e,n){_e.cssHooks[n]=R(ye.pixelPosition,function(e,t){if(t)return t=j(e,n),ht.test(t)?_e(e).position()[n]+"px":t})}),_e.each({Height:"height",Width:"width"},function(s,a){_e.each({padding:"inner"+s,content:a,"":"outer"+s},function(i,o){_e.fn[o]=function(e,t){var n=arguments.length&&(i||"boolean"!=typeof e),r=i||(!0===e||!0===t?"margin":"border");return je(this,function(e,t,n){var i;return we(e)?0===o.indexOf("outer")?e["inner"+s]:e.document.documentElement["client"+s]:9===e.nodeType?(i=e.documentElement,Math.max(e.body["scroll"+s],i["scroll"+s],e.body["offset"+s],i["offset"+s],i["client"+s])):n===undefined?_e.css(e,t,r):_e.style(e,t,n,r)},a,n?e:undefined,n)}})}),_e.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(e,t){_e.fn[t]=function(e){return this.on(t,e)}}),_e.fn.extend({bind:function(e,t,n){return this.on(e,null,t,n)},unbind:function(e,t){return this.off(e,null,t)},delegate:function(e,t,n,i){return this.on(t,e,n,i)},undelegate:function(e,t,n){return 1===arguments.length?this.off(e,"**"):this.off(t,e||"**",n)},hover:function(e,t){return this.mouseenter(e).mouseleave(t||e)}}),_e.each("blur focus focusin focusout resize scroll click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup contextmenu".split(" "),function(e,n){_e.fn[n]=function(e,t){return 0<arguments.length?this.on(n,null,e,t):this.trigger(n)}});var sn=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g;_e.proxy=function(e,t){var n,i,r;return"string"==typeof t&&(n=e[t],t=e,e=n),be(e)?(i=ue.call(arguments,2),(r=function(){return e.apply(t||this,i.concat(ue.call(arguments)))}).guid=e.guid=e.guid||_e.guid++,r):undefined},_e.holdReady=function(e){e?_e.readyWait++:_e.ready(!0)},_e.isArray=Array.isArray,_e.parseJSON=JSON.parse,_e.nodeName=u,_e.isFunction=be,_e.isWindow=we,_e.camelCase=f,_e.type=g,_e.now=Date.now,_e.isNumeric=function(e){var t=_e.type(e);return("number"===t||"string"===t)&&!isNaN(e-parseFloat(e))},_e.trim=function(e){return null==e?"":(e+"").replace(sn,"")},"function"==typeof define&&define.amd&&define("jquery",[],function(){return _e});var an=_.jQuery,ln=_.$;return _e.noConflict=function(e){return _.$===_e&&(_.$=ln),e&&_.jQuery===_e&&(_.jQuery=an),_e},void 0===e&&(_.jQuery=_.$=_e),_e}),function(l){"use strict";function n(i){return this.each(function(){var e=l(this),t=e.data("bs.affix"),n="object"==typeof i&&i;t||e.data("bs.affix",t=new u(this,n)),"string"==typeof i&&t[i]()})}var u=function(e,t){this.options=l.extend({},u.DEFAULTS,t);var n=this.options.target===u.DEFAULTS.target?l(this.options.target):l(document).find(this.options.target);this.$target=n.on("scroll.bs.affix.data-api",l.proxy(this.checkPosition,this)).on("click.bs.affix.data-api",l.proxy(this.checkPositionWithEventLoop,this)),this.$element=l(e),this.affixed=null,this.unpin=null,this.pinnedOffset=null,this.checkPosition()};u.VERSION="3.4.1",u.RESET="affix affix-top affix-bottom",u.DEFAULTS={offset:0,target:window},u.prototype.getState=function(e,t,n,i){var r=this.$target.scrollTop(),o=this.$element.offset(),s=this.$target.height();if(null!=n&&"top"==this.affixed)return r<n&&"top";if("bottom"==this.affixed)return null!=n?!(r+this.unpin<=o.top)&&"bottom":!(r+s<=e-i)&&"bottom";var a=null==this.affixed,l=a?r:o.top;return null!=n&&r<=n?"top":null!=i&&e-i<=l+(a?s:t)&&"bottom"},u.prototype.getPinnedOffset=function(){if(this.pinnedOffset)return this.pinnedOffset;this.$element.removeClass(u.RESET).addClass("affix");var e=this.$target.scrollTop(),t=this.$element.offset();return this.pinnedOffset=t.top-e},u.prototype.checkPositionWithEventLoop=function(){setTimeout(l.proxy(this.checkPosition,this),1)},u.prototype.checkPosition=function(){if(this.$element.is(":visible")){var e=this.$element.height(),t=this.options.offset,n=t.top,i=t.bottom,r=Math.max(l(document).height(),l(document.body).height());"object"!=typeof t&&(i=n=t),"function"==typeof n&&(n=t.top(this.$element)),"function"==typeof i&&(i=t.bottom(this.$element));var o=this.getState(r,e,n,i);if(this.affixed!=o){null!=this.unpin&&this.$element.css("top","");var s="affix"+(o?"-"+o:""),a=l.Event(s+".bs.affix");if(this.$element.trigger(a),a.isDefaultPrevented())return;this.affixed=o,this.unpin="bottom"==o?this.getPinnedOffset():null,this.$element.removeClass(u.RESET).addClass(s).trigger(s.replace("affix","affixed")+".bs.affix")}"bottom"==o&&this.$element.offset({top:r-e-i})}};var e=l.fn.affix;l.fn.affix=n,l.fn.affix.Constructor=u,l.fn.affix.noConflict=function(){return l.fn.affix=e,this},l(window).on("load",function(){l('[data-spy="affix"]').each(function(){var e=l(this),t=e.data();t.offset=t.offset||{},null!=t.offsetBottom&&(t.offset.bottom=t.offsetBottom),null!=t.offsetTop&&(t.offset.top=t.offsetTop),n.call(e,t)})})}(jQuery),function(o){"use strict";function e(n){return this.each(function(){var e=o(this),t=e.data("bs.alert");t||e.data("bs.alert",t=new s(this)),"string"==typeof n&&t[n].call(e)})}var t='[data-dismiss="alert"]',s=function(e){o(e).on("click",t,this.close)};s.VERSION="3.4.1",s.TRANSITION_DURATION=150,s.prototype.close=function(e){function t(){r.detach().trigger("closed.bs.alert").remove()}var n=o(this),i=n.attr("data-target");i||(i=(i=n.attr("href"))&&i.replace(/.*(?=#[^\s]*$)/,"")),i="#"===i?[]:i;var r=o(document).find(i);e&&e.preventDefault(),r.length||(r=n.closest(".alert")),r.trigger(e=o.Event("close.bs.alert")),e.isDefaultPrevented()||(r.removeClass("in"),o.support.transition&&r.hasClass("fade")?r.one("bsTransitionEnd",t).emulateTransitionEnd(s.TRANSITION_DURATION):t())};var n=o.fn.alert;o.fn.alert=e,o.fn.alert.Constructor=s,o.fn.alert.noConflict=function(){return o.fn.alert=n,this},o(document).on("click.bs.alert.data-api",t,s.prototype.close)}(jQuery),function(o){"use strict";function n(i){return this.each(function(){var e=o(this),t=e.data("bs.button"),n="object"==typeof i&&i;t||e.data("bs.button",t=new r(this,n)),"toggle"==i?t.toggle():i&&t.setState(i)})}var r=function(e,t){this.$element=o(e),this.options=o.extend({},r.DEFAULTS,t),this.isLoading=!1};r.VERSION="3.4.1",r.DEFAULTS={loadingText:"loading..."},r.prototype.setState=function(e){var t="disabled",n=this.$element,i=n.is("input")?"val":"html",r=n.data();e+="Text",null==r.resetText&&n.data("resetText",n[i]()),setTimeout(o.proxy(function(){n[i](null==r[e]?this.options[e]:r[e]),"loadingText"==e?(this.isLoading=!0,n.addClass(t).attr(t,t).prop(t,!0)):this.isLoading&&(this.isLoading=!1,n.removeClass(t).removeAttr(t).prop(t,!1))},this),0)},r.prototype.toggle=function(){var e=!0,t=this.$element.closest('[data-toggle="buttons"]');if(t.length){var n=this.$element.find("input");"radio"==n.prop("type")?(n.prop("checked")&&(e=!1),t.find(".active").removeClass("active"),this.$element.addClass("active")):"checkbox"==n.prop("type")&&(n.prop("checked")!==this.$element.hasClass("active")&&(e=!1),this.$element.toggleClass("active")),n.prop("checked",this.$element.hasClass("active")),e&&n.trigger("change")}else this.$element.attr("aria-pressed",!this.$element.hasClass("active")),this.$element.toggleClass("active")};var e=o.fn.button;o.fn.button=n,o.fn.button.Constructor=r,o.fn.button.noConflict=function(){return o.fn.button=e,this},o(document).on("click.bs.button.data-api",'[data-toggle^="button"]',function(e){var t=o(e.target).closest(".btn");n.call(t,"toggle"),o(e.target).is('input[type="radio"], input[type="checkbox"]')||(e.preventDefault(),t.is("input,button")?t.trigger("focus"):t.find("input:visible,button:visible").first().trigger("focus"))}).on("focus.bs.button.data-api blur.bs.button.data-api",'[data-toggle^="button"]',function(e){o(e.target).closest(".btn").toggleClass("focus",/^focus(in)?$/.test(e.type))})}(jQuery),function(d){"use strict";function a(r){return this.each(function(){var e=d(this),t=e.data("bs.carousel"),n=d.extend({},h.DEFAULTS,e.data(),"object"==typeof r&&r),i="string"==typeof r?r:n.slide;t||e.data("bs.carousel",t=new h(this,n)),"number"==typeof r?t.to(r):i?t[i]():n.interval&&t.pause().cycle()})}var h=function(e,t){this.$element=d(e),this.$indicators=this.$element.find(".carousel-indicators"),this.options=t,this.paused=null,this.sliding=null,this.interval=null,this.$active=null,this.$items=null,this.options.keyboard&&this.$element.on("keydown.bs.carousel",d.proxy(this.keydown,this)),"hover"==this.options.pause&&!("ontouchstart"in document.documentElement)&&this.$element.on("mouseenter.bs.carousel",d.proxy(this.pause,this)).on("mouseleave.bs.carousel",d.proxy(this.cycle,this))};h.VERSION="3.4.1",h.TRANSITION_DURATION=600,h.DEFAULTS={interval:5e3,pause:"hover",wrap:!0,keyboard:!0},h.prototype.keydown=function(e){if(!/input|textarea/i.test(e.target.tagName)){switch(e.which){case 37:this.prev();break;case 39:this.next();break;default:return}e.preventDefault()}},h.prototype.cycle=function(e){return e||(this.paused=!1),this.interval&&clearInterval(this.interval),this.options.interval&&!this.paused&&(this.interval=setInterval(d.proxy(this.next,this),this.options.interval)),this},h.prototype.getItemIndex=function(e){return this.$items=e.parent().children(".item"),this.$items.index(e||this.$active)},h.prototype.getItemForDirection=function(e,t){var n=this.getItemIndex(t);if(("prev"==e&&0===n||"next"==e&&n==this.$items.length-1)&&!this.options.wrap)return t;var i=(n+("prev"==e?-1:1))%this.$items.length;return this.$items.eq(i)},h.prototype.to=function(e){var t=this,n=this.getItemIndex(this.$active=this.$element.find(".item.active"));if(!(e>this.$items.length-1||e<0))return this.sliding?this.$element.one("slid.bs.carousel",function(){t.to(e)}):n==e?this.pause().cycle():this.slide(n<e?"next":"prev",this.$items.eq(e))},h.prototype.pause=function(e){return e||(this.paused=!0),this.$element.find(".next, .prev").length&&d.support.transition&&(this.$element.trigger(d.support.transition.end),this.cycle(!0)),this.interval=clearInterval(this.interval),this},h.prototype.next=function(){if(!this.sliding)return this.slide("next")},h.prototype.prev=function(){if(!this.sliding)return this.slide("prev")},h.prototype.slide=function(e,t){var n=this.$element.find(".item.active"),i=t||this.getItemForDirection(e,n),r=this.interval,o="next"==e?"left":"right",s=this;if(i.hasClass("active"))return this.sliding=!1;var a=i[0],l=d.Event("slide.bs.carousel",{relatedTarget:a,direction:o});if(this.$element.trigger(l),!l.isDefaultPrevented()){if(this.sliding=!0,r&&this.pause(),this.$indicators.length){this.$indicators.find(".active").removeClass("active");var u=d(this.$indicators.children()[this.getItemIndex(i)]);u&&u.addClass("active")}var c=d.Event("slid.bs.carousel",{relatedTarget:a,direction:o});return d.support.transition&&this.$element.hasClass("slide")?(i.addClass(e),"object"==typeof i&&i.length&&i[0].offsetWidth,n.addClass(o),i.addClass(o),n.one("bsTransitionEnd",function(){i.removeClass([e,o].join(" ")).addClass("active"),n.removeClass(["active",o].join(" ")),s.sliding=!1,setTimeout(function(){s.$element.trigger(c)},0)}).emulateTransitionEnd(h.TRANSITION_DURATION)):(n.removeClass("active"),i.addClass("active"),this.sliding=!1,this.$element.trigger(c)),r&&this.cycle(),this}};var e=d.fn.carousel;d.fn.carousel=a,d.fn.carousel.Constructor=h,d.fn.carousel.noConflict=function(){return d.fn.carousel=e,this};var t=function(e){var t=d(this),n=t.attr("href");n&&(n=n.replace(/.*(?=#[^\s]+$)/,""));var i=t.attr("data-target")||n,r=d(document).find(i);if(r.hasClass("carousel")){var o=d.extend({},r.data(),t.data()),s=t.attr("data-slide-to");s&&(o.interval=!1),a.call(r,o),s&&r.data("bs.carousel").to(s),e.preventDefault()}};d(document).on("click.bs.carousel.data-api","[data-slide]",t).on("click.bs.carousel.data-api","[data-slide-to]",t),d(window).on("load",function(){d('[data-ride="carousel"]').each(function(){var e=d(this);a.call(e,e.data())})})}(jQuery),function(s){"use strict";function r(e){var t,n=e.attr("data-target")||(t=e.attr("href"))&&t.replace(/.*(?=#[^\s]+$)/,"");return s(document).find(n)}function a(i){return this.each(function(){var e=s(this),t=e.data("bs.collapse"),n=s.extend({},l.DEFAULTS,e.data(),"object"==typeof i&&i);!t&&n.toggle&&/show|hide/.test(i)&&(n.toggle=!1),t||e.data("bs.collapse",t=new l(this,n)),"string"==typeof i&&t[i]()})}var l=function(e,t){this.$element=s(e),this.options=s.extend({},l.DEFAULTS,t),this.$trigger=s('[data-toggle="collapse"][href="#'+e.id+'"],[data-toggle="collapse"][data-target="#'+e.id+'"]'),this.transitioning=null,this.options.parent?this.$parent=this.getParent():this.addAriaAndCollapsedClass(this.$element,this.$trigger),this.options.toggle&&this.toggle()};l.VERSION="3.4.1",l.TRANSITION_DURATION=350,l.DEFAULTS={toggle:!0},l.prototype.dimension=function(){return this.$element.hasClass("width")?"width":"height"},l.prototype.show=function(){if(!this.transitioning&&!this.$element.hasClass("in")){var e,t=this.$parent&&this.$parent.children(".panel").children(".in, .collapsing");if(!(t&&t.length&&(e=t.data("bs.collapse"))&&e.transitioning)){var n=s.Event("show.bs.collapse");if(this.$element.trigger(n),!n.isDefaultPrevented()){t&&t.length&&(a.call(t,"hide"),e||t.data("bs.collapse",null));var i=this.dimension();this.$element.removeClass("collapse").addClass("collapsing")[i](0).attr("aria-expanded",!0),this.$trigger.removeClass("collapsed").attr("aria-expanded",!0),this.transitioning=1;var r=function(){this.$element.removeClass("collapsing").addClass("collapse in")[i](""),this.transitioning=0,this.$element.trigger("shown.bs.collapse")};if(!s.support.transition)return r.call(this);var o=s.camelCase(["scroll",i].join("-"));this.$element.one("bsTransitionEnd",s.proxy(r,this)).emulateTransitionEnd(l.TRANSITION_DURATION)[i](this.$element[0][o])}}}},l.prototype.hide=function(){if(!this.transitioning&&this.$element.hasClass("in")){var e=s.Event("hide.bs.collapse");if(this.$element.trigger(e),!e.isDefaultPrevented()){var t=this.dimension();this.$element[t](this.$element[t]())[0].offsetHeight,this.$element.addClass("collapsing").removeClass("collapse in").attr("aria-expanded",!1),this.$trigger.addClass("collapsed").attr("aria-expanded",!1),this.transitioning=1;var n=function(){this.transitioning=0,this.$element.removeClass("collapsing").addClass("collapse").trigger("hidden.bs.collapse")};if(!s.support.transition)return n.call(this);this.$element[t](0).one("bsTransitionEnd",s.proxy(n,this)).emulateTransitionEnd(l.TRANSITION_DURATION)}}},l.prototype.toggle=function(){this[this.$element.hasClass("in")?"hide":"show"]()},l.prototype.getParent=function(){return s(document).find(this.options.parent).find('[data-toggle="collapse"][data-parent="'+this.options.parent+'"]').each(s.proxy(function(e,t){var n=s(t);this.addAriaAndCollapsedClass(r(n),n)},this)).end()},l.prototype.addAriaAndCollapsedClass=function(e,t){var n=e.hasClass("in");e.attr("aria-expanded",n),t.toggleClass("collapsed",!n).attr("aria-expanded",n)};var e=s.fn.collapse;s.fn.collapse=a,s.fn.collapse.Constructor=l,s.fn.collapse.noConflict=function(){return s.fn.collapse=e,this},s(document).on("click.bs.collapse.data-api",'[data-toggle="collapse"]',function(e){var t=s(this);t.attr("data-target")||e.preventDefault();var n=r(t),i=n.data("bs.collapse")?"toggle":t.data();a.call(n,i)})}(jQuery),function(a){"use strict";function l(e){var t=e.attr("data-target");t||(t=(t=e.attr("href"))&&/#[A-Za-z]/.test(t)&&t.replace(/.*(?=#[^\s]*$)/,""));var n="#"!==t?a(document).find(t):null;return n&&n.length?n:e.parent()}function o(i){i&&3===i.which||(a(t).remove(),a(u).each(function(){var e=a(this),t=l(e),n={relatedTarget:this};t.hasClass("open")&&(i&&"click"==i.type&&/input|textarea/i.test(i.target.tagName)&&a.contains(t[0],i.target)||(t.trigger(i=a.Event("hide.bs.dropdown",n)),i.isDefaultPrevented()||(e.attr("aria-expanded","false"),t.removeClass("open").trigger(a.Event("hidden.bs.dropdown",n)))))}))}function e(n){return this.each(function(){var e=a(this),t=e.data("bs.dropdown");t||e.data("bs.dropdown",t=new i(this)),"string"==typeof n&&t[n].call(e)})}var t=".dropdown-backdrop",u='[data-toggle="dropdown"]',i=function(e){a(e).on("click.bs.dropdown",this.toggle)};i.VERSION="3.4.1",i.prototype.toggle=function(e){var t=a(this);if(!t.is(".disabled, :disabled")){var n=l(t),i=n.hasClass("open");if(o(),!i){"ontouchstart"in document.documentElement&&!n.closest(".navbar-nav").length&&a(document.createElement("div")).addClass("dropdown-backdrop").insertAfter(a(this)).on("click",o);var r={relatedTarget:this};if(n.trigger(e=a.Event("show.bs.dropdown",r)),e.isDefaultPrevented())return;t.trigger("focus").attr("aria-expanded","true"),n.toggleClass("open").trigger(a.Event("shown.bs.dropdown",r))}return!1}},i.prototype.keydown=function(e){if(/(38|40|27|32)/.test(e.which)&&!/input|textarea/i.test(e.target.tagName)){var t=a(this);if(e.preventDefault(),e.stopPropagation(),!t.is(".disabled, :disabled")){var n=l(t),i=n.hasClass("open");if(!i&&27!=e.which||i&&27==e.which)return 27==e.which&&n.find(u).trigger("focus"),t.trigger("click");var r=" li:not(.disabled):visible a",o=n.find(".dropdown-menu"+r);if(o.length){var s=o.index(e.target);38==e.which&&0<s&&s--,40==e.which&&s<o.length-1&&s++,~s||(s=0),o.eq(s).trigger("focus")}}}};var n=a.fn.dropdown;a.fn.dropdown=e,a.fn.dropdown.Constructor=i,a.fn.dropdown.noConflict=function(){return a.fn.dropdown=n,this},a(document).on("click.bs.dropdown.data-api",o).on("click.bs.dropdown.data-api",".dropdown form",function(e){e.stopPropagation()}).on("click.bs.dropdown.data-api",u,i.prototype.toggle).on("keydown.bs.dropdown.data-api",u,i.prototype.keydown).on("keydown.bs.dropdown.data-api",".dropdown-menu",i.prototype.keydown)}(jQuery),function(s){"use strict";function a(i,r){return this.each(function(){var e=s(this),t=e.data("bs.modal"),n=s.extend({},o.DEFAULTS,e.data(),"object"==typeof i&&i);t||e.data("bs.modal",t=new o(this,n)),"string"==typeof i?t[i](r):n.show&&t.show(r)})}var o=function(e,t){this.options=t,this.$body=s(document.body),this.$element=s(e),this.$dialog=this.$element.find(".modal-dialog"),this.$backdrop=null,this.isShown=null,this.originalBodyPad=null,this.scrollbarWidth=0,this.ignoreBackdropClick=!1,this.fixedContent=".navbar-fixed-top, .navbar-fixed-bottom",this.options.remote&&this.$element.find(".modal-content").load(this.options.remote,s.proxy(function(){this.$element.trigger("loaded.bs.modal")},this))};o.VERSION="3.4.1",o.TRANSITION_DURATION=300,o.BACKDROP_TRANSITION_DURATION=150,o.DEFAULTS={backdrop:!0,keyboard:!0,show:!0},o.prototype.toggle=function(e){return this.isShown?this.hide():this.show(e)},o.prototype.show=function(n){var i=this,e=s.Event("show.bs.modal",{relatedTarget:n});this.$element.trigger(e),this.isShown||e.isDefaultPrevented()||(this.isShown=!0,this.checkScrollbar(),this.setScrollbar(),this.$body.addClass("modal-open"),this.escape(),this.resize(),this.$element.on("click.dismiss.bs.modal",'[data-dismiss="modal"]',s.proxy(this.hide,this)),this.$dialog.on("mousedown.dismiss.bs.modal",function(){i.$element.one("mouseup.dismiss.bs.modal",function(e){s(e.target).is(i.$element)&&(i.ignoreBackdropClick=!0)})}),this.backdrop(function(){var e=s.support.transition&&i.$element.hasClass("fade");i.$element.parent().length||i.$element.appendTo(i.$body),i.$element.show().scrollTop(0),i.adjustDialog(),e&&i.$element[0].offsetWidth,i.$element.addClass("in"),i.enforceFocus();var t=s.Event("shown.bs.modal",{relatedTarget:n});e?i.$dialog.one("bsTransitionEnd",function(){i.$element.trigger("focus").trigger(t)}).emulateTransitionEnd(o.TRANSITION_DURATION):i.$element.trigger("focus").trigger(t)}))},o.prototype.hide=function(e){e&&e.preventDefault(),e=s.Event("hide.bs.modal"),this.$element.trigger(e),this.isShown&&!e.isDefaultPrevented()&&(this.isShown=!1,this.escape(),this.resize(),s(document).off("focusin.bs.modal"),this.$element.removeClass("in").off("click.dismiss.bs.modal").off("mouseup.dismiss.bs.modal"),this.$dialog.off("mousedown.dismiss.bs.modal"),s.support.transition&&this.$element.hasClass("fade")?this.$element.one("bsTransitionEnd",s.proxy(this.hideModal,this)).emulateTransitionEnd(o.TRANSITION_DURATION):this.hideModal())},o.prototype.enforceFocus=function(){s(document).off("focusin.bs.modal").on("focusin.bs.modal",s.proxy(function(e){document===e.target||this.$element[0]===e.target||this.$element.has(e.target).length||this.$element.trigger("focus")},this))},o.prototype.escape=function(){this.isShown&&this.options.keyboard?this.$element.on("keydown.dismiss.bs.modal",s.proxy(function(e){27==e.which&&this.hide()},this)):this.isShown||this.$element.off("keydown.dismiss.bs.modal")},o.prototype.resize=function(){this.isShown?s(window).on("resize.bs.modal",s.proxy(this.handleUpdate,this)):s(window).off("resize.bs.modal")},o.prototype.hideModal=function(){var e=this;this.$element.hide(),this.backdrop(function(){e.$body.removeClass("modal-open"),e.resetAdjustments(),e.resetScrollbar(),e.$element.trigger("hidden.bs.modal")})},o.prototype.removeBackdrop=function(){this.$backdrop&&this.$backdrop.remove(),this.$backdrop=null},o.prototype.backdrop=function(e){var t=this,n=this.$element.hasClass("fade")?"fade":"";if(this.isShown&&this.options.backdrop){var i=s.support.transition&&n;if(this.$backdrop=s(document.createElement("div")).addClass("modal-backdrop "+n).appendTo(this.$body),this.$element.on("click.dismiss.bs.modal",s.proxy(function(e){this.ignoreBackdropClick?this.ignoreBackdropClick=!1:e.target===e.currentTarget&&("static"==this.options.backdrop?this.$element[0].focus():this.hide())},this)),i&&this.$backdrop[0].offsetWidth,this.$backdrop.addClass("in"),!e)return;i?this.$backdrop.one("bsTransitionEnd",e).emulateTransitionEnd(o.BACKDROP_TRANSITION_DURATION):e()}else if(!this.isShown&&this.$backdrop){this.$backdrop.removeClass("in");var r=function(){t.removeBackdrop(),e&&e()};s.support.transition&&this.$element.hasClass("fade")?this.$backdrop.one("bsTransitionEnd",r).emulateTransitionEnd(o.BACKDROP_TRANSITION_DURATION):r()}else e&&e()},o.prototype.handleUpdate=function(){this.adjustDialog()},o.prototype.adjustDialog=function(){var e=this.$element[0].scrollHeight>document.documentElement.clientHeight;this.$element.css({paddingLeft:!this.bodyIsOverflowing&&e?this.scrollbarWidth:"",paddingRight:this.bodyIsOverflowing&&!e?this.scrollbarWidth:""})},o.prototype.resetAdjustments=function(){this.$element.css({paddingLeft:"",paddingRight:""})},o.prototype.checkScrollbar=function(){var e=window.innerWidth;if(!e){var t=document.documentElement.getBoundingClientRect();e=t.right-Math.abs(t.left)}this.bodyIsOverflowing=document.body.clientWidth<e,this.scrollbarWidth=this.measureScrollbar()},o.prototype.setScrollbar=function(){var e=parseInt(this.$body.css("padding-right")||0,10);this.originalBodyPad=document.body.style.paddingRight||"";var r=this.scrollbarWidth;this.bodyIsOverflowing&&(this.$body.css("padding-right",e+r),s(this.fixedContent).each(function(e,t){var n=t.style.paddingRight,i=s(t).css("padding-right");s(t).data("padding-right",n).css("padding-right",parseFloat(i)+r+"px")}))},o.prototype.resetScrollbar=function(){this.$body.css("padding-right",this.originalBodyPad),s(this.fixedContent).each(function(e,t){var n=s(t).data("padding-right");s(t).removeData("padding-right"),t.style.paddingRight=n||""})},o.prototype.measureScrollbar=function(){var e=document.createElement("div");e.className="modal-scrollbar-measure",this.$body.append(e);var t=e.offsetWidth-e.clientWidth;return this.$body[0].removeChild(e),t};var e=s.fn.modal;s.fn.modal=a,s.fn.modal.Constructor=o,s.fn.modal.noConflict=function(){return s.fn.modal=e,this},s(document).on("click.bs.modal.data-api",'[data-toggle="modal"]',function(e){var t=s(this),n=t.attr("href"),i=t.attr("data-target")||n&&n.replace(/.*(?=#[^\s]+$)/,""),r=s(document).find(i),o=r.data("bs.modal")?"toggle":s.extend({remote:!/#/.test(n)&&n},r.data(),t.data());t.is("a")&&e.preventDefault(),r.one("show.bs.modal",function(e){e.isDefaultPrevented()||r.one("hidden.bs.modal",function(){t.is(":visible")&&t.trigger("focus")})}),a.call(r,o,this)})}(jQuery),function(o){"use strict";function r(e,t){this.$body=o(document.body),this.$scrollElement=o(e).is(document.body)?o(window):o(e),this.options=o.extend({},r.DEFAULTS,t),this.selector=(this.options.target||"")+" .nav li > a",this.offsets=[],this.targets=[],this.activeTarget=null,this.scrollHeight=0,this.$scrollElement.on("scroll.bs.scrollspy",o.proxy(this.process,this)),this.refresh(),this.process()}function t(i){return this.each(function(){var e=o(this),t=e.data("bs.scrollspy"),n="object"==typeof i&&i;t||e.data("bs.scrollspy",t=new r(this,n)),"string"==typeof i&&t[i]()})}r.VERSION="3.4.1",r.DEFAULTS={offset:10},r.prototype.getScrollHeight=function(){return this.$scrollElement[0].scrollHeight||Math.max(this.$body[0].scrollHeight,document.documentElement.scrollHeight)},r.prototype.refresh=function(){var e=this,i="offset",r=0;this.offsets=[],this.targets=[],this.scrollHeight=this.getScrollHeight(),o.isWindow(this.$scrollElement[0])||(i="position",r=this.$scrollElement.scrollTop()),this.$body.find(this.selector).map(function(){var e=o(this),t=e.data("target")||e.attr("href"),n=/^#./.test(t)&&o(t);return n&&n.length&&n.is(":visible")&&[[n[i]().top+r,t]]||null}).sort(function(e,t){return e[0]-t[0]}).each(function(){e.offsets.push(this[0]),e.targets.push(this[1])})},r.prototype.process=function(){var e,t=this.$scrollElement.scrollTop()+this.options.offset,n=this.getScrollHeight(),i=this.options.offset+n-this.$scrollElement.height(),r=this.offsets,o=this.targets,s=this.activeTarget;if(this.scrollHeight!=n&&this.refresh(),i<=t)return s!=(e=o[o.length-1])&&this.activate(e);if(s&&t<r[0])return this.activeTarget=null,this.clear();for(e=r.length;e--;)s!=o[e]&&t>=r[e]&&(r[e+1]===undefined||t<r[e+1])&&this.activate(o[e])},r.prototype.activate=function(e){this.activeTarget=e,this.clear();var t=this.selector+'[data-target="'+e+'"],'+this.selector+'[href="'+e+'"]',n=o(t).parents("li").addClass("active");n.parent(".dropdown-menu").length&&(n=n.closest("li.dropdown").addClass("active")),n.trigger("activate.bs.scrollspy")},r.prototype.clear=function(){o(this.selector).parentsUntil(this.options.target,".active").removeClass("active")};var e=o.fn.scrollspy;o.fn.scrollspy=t,o.fn.scrollspy.Constructor=r,o.fn.scrollspy.noConflict=function(){return o.fn.scrollspy=e,this},o(window).on("load.bs.scrollspy.data-api",function(){o('[data-spy="scroll"]').each(function(){var e=o(this);t.call(e,e.data())})})}(jQuery),function(a){"use strict";function t(n){return this.each(function(){var e=a(this),t=e.data("bs.tab");t||e.data("bs.tab",t=new s(this)),"string"==typeof n&&t[n]()})}var s=function(e){this.element=a(e)};s.VERSION="3.4.1",s.TRANSITION_DURATION=150,s.prototype.show=function(){var e=this.element,t=e.closest("ul:not(.dropdown-menu)"),n=e.data("target");if(n||(n=(n=e.attr("href"))&&n.replace(/.*(?=#[^\s]*$)/,"")),!e.parent("li").hasClass("active")){var i=t.find(".active:last a"),r=a.Event("hide.bs.tab",{relatedTarget:e[0]}),o=a.Event("show.bs.tab",{relatedTarget:i[0]});if(i.trigger(r),e.trigger(o),!o.isDefaultPrevented()&&!r.isDefaultPrevented()){var s=a(document).find(n);this.activate(e.closest("li"),t),this.activate(s,s.parent(),function(){i.trigger({type:"hidden.bs.tab",relatedTarget:e[0]}),e.trigger({type:"shown.bs.tab",relatedTarget:i[0]})})}}},s.prototype.activate=function(e,t,n){function i(){r.removeClass("active").find("> .dropdown-menu > .active").removeClass("active").end().find('[data-toggle="tab"]').attr("aria-expanded",!1),e.addClass("active").find('[data-toggle="tab"]').attr("aria-expanded",!0),o?(e[0].offsetWidth,e.addClass("in")):e.removeClass("fade"),e.parent(".dropdown-menu").length&&e.closest("li.dropdown").addClass("active").end().find('[data-toggle="tab"]').attr("aria-expanded",!0),n&&n()}var r=t.find("> .active"),o=n&&a.support.transition&&(r.length&&r.hasClass("fade")||!!t.find("> .fade").length);r.length&&o?r.one("bsTransitionEnd",i).emulateTransitionEnd(s.TRANSITION_DURATION):i(),r.removeClass("in")};var e=a.fn.tab;a.fn.tab=t,a.fn.tab.Constructor=s,a.fn.tab.noConflict=function(){return a.fn.tab=e,this};var n=function(e){e.preventDefault(),t.call(a(this),"show")};a(document).on("click.bs.tab.data-api",'[data-toggle="tab"]',n).on("click.bs.tab.data-api",'[data-toggle="pill"]',n)}(jQuery),function(i){"use strict";function e(){var e=document.createElement("bootstrap"),t={WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd otransitionend",transition:"transitionend"};for(var n in t)if(e.style[n]!==undefined)return{end:t[n]};return!1}i.fn.emulateTransitionEnd=function(e){var t=!1,n=this;return i(this).one("bsTransitionEnd",function(){t=!0}),setTimeout(function(){t||i(n).trigger(i.support.transition.end)},e),this},i(function(){i.support.transition=e(),i.support.transition&&(i.event.special.bsTransitionEnd={bindType:i.support.transition.end,delegateType:i.support.transition.end,handle:function(e){if(i(e.target).is(this))return e.handleObj.handler.apply(this,arguments)}})})}(jQuery),function(m){"use strict";function p(e,t){var n=e.nodeName.toLowerCase();if(-1!==m.inArray(n,t))return-1===m.inArray(n,s)||Boolean(e.nodeValue.match(a)||e.nodeValue.match(l));for(var i=m(t).filter(function(e,t){return t instanceof RegExp
}),r=0,o=i.length;r<o;r++)if(n.match(i[r]))return!0;return!1}function i(e,t,n){if(0===e.length)return e;if(n&&"function"==typeof n)return n(e);if(!document.implementation||!document.implementation.createHTMLDocument)return e;var i=document.implementation.createHTMLDocument("sanitization");i.body.innerHTML=e;for(var r=m.map(t,function(e,t){return t}),o=m(i.body).find("*"),s=0,a=o.length;s<a;s++){var l=o[s],u=l.nodeName.toLowerCase();if(-1!==m.inArray(u,r))for(var c=m.map(l.attributes,function(e){return e}),d=[].concat(t["*"]||[],t[u]||[]),h=0,f=c.length;h<f;h++)p(c[h],d)||l.removeAttribute(c[h].nodeName);else l.parentNode.removeChild(l)}return i.body.innerHTML}function e(i){return this.each(function(){var e=m(this),t=e.data("bs.tooltip"),n="object"==typeof i&&i;!t&&/destroy|hide/.test(i)||(t||e.data("bs.tooltip",t=new g(this,n)),"string"==typeof i&&t[i]())})}var r=["sanitize","whiteList","sanitizeFn"],s=["background","cite","href","itemtype","longdesc","poster","src","xlink:href"],t={"*":["class","dir","id","lang","role",/^aria-[\w-]*$/i],a:["target","href","title","rel"],area:[],b:[],br:[],col:[],code:[],div:[],em:[],hr:[],h1:[],h2:[],h3:[],h4:[],h5:[],h6:[],i:[],img:["src","alt","title","width","height"],li:[],ol:[],p:[],pre:[],s:[],small:[],span:[],sub:[],sup:[],strong:[],u:[],ul:[]},a=/^(?:(?:https?|mailto|ftp|tel|file):|[^&:/?#]*(?:[/?#]|$))/gi,l=/^data:(?:image\/(?:bmp|gif|jpeg|jpg|png|tiff|webp)|video\/(?:mpeg|mp4|ogg|webm)|audio\/(?:mp3|oga|ogg|opus));base64,[a-z0-9+/]+=*$/i,g=function(e,t){this.type=null,this.options=null,this.enabled=null,this.timeout=null,this.hoverState=null,this.$element=null,this.inState=null,this.init("tooltip",e,t)};g.VERSION="3.4.1",g.TRANSITION_DURATION=150,g.DEFAULTS={animation:!0,placement:"top",selector:!1,template:'<div class="tooltip" role="tooltip"><div class="tooltip-arrow"></div><div class="tooltip-inner"></div></div>',trigger:"hover focus",title:"",delay:0,html:!1,container:!1,viewport:{selector:"body",padding:0},sanitize:!0,sanitizeFn:null,whiteList:t},g.prototype.init=function(e,t,n){if(this.enabled=!0,this.type=e,this.$element=m(t),this.options=this.getOptions(n),this.$viewport=this.options.viewport&&m(document).find(m.isFunction(this.options.viewport)?this.options.viewport.call(this,this.$element):this.options.viewport.selector||this.options.viewport),this.inState={click:!1,hover:!1,focus:!1},this.$element[0]instanceof document.constructor&&!this.options.selector)throw new Error("`selector` option must be specified when initializing "+this.type+" on the window.document object!");for(var i=this.options.trigger.split(" "),r=i.length;r--;){var o=i[r];if("click"==o)this.$element.on("click."+this.type,this.options.selector,m.proxy(this.toggle,this));else if("manual"!=o){var s="hover"==o?"mouseenter":"focusin",a="hover"==o?"mouseleave":"focusout";this.$element.on(s+"."+this.type,this.options.selector,m.proxy(this.enter,this)),this.$element.on(a+"."+this.type,this.options.selector,m.proxy(this.leave,this))}}this.options.selector?this._options=m.extend({},this.options,{trigger:"manual",selector:""}):this.fixTitle()},g.prototype.getDefaults=function(){return g.DEFAULTS},g.prototype.getOptions=function(e){var t=this.$element.data();for(var n in t)t.hasOwnProperty(n)&&-1!==m.inArray(n,r)&&delete t[n];return(e=m.extend({},this.getDefaults(),t,e)).delay&&"number"==typeof e.delay&&(e.delay={show:e.delay,hide:e.delay}),e.sanitize&&(e.template=i(e.template,e.whiteList,e.sanitizeFn)),e},g.prototype.getDelegateOptions=function(){var n={},i=this.getDefaults();return this._options&&m.each(this._options,function(e,t){i[e]!=t&&(n[e]=t)}),n},g.prototype.enter=function(e){var t=e instanceof this.constructor?e:m(e.currentTarget).data("bs."+this.type);if(t||(t=new this.constructor(e.currentTarget,this.getDelegateOptions()),m(e.currentTarget).data("bs."+this.type,t)),e instanceof m.Event&&(t.inState["focusin"==e.type?"focus":"hover"]=!0),t.tip().hasClass("in")||"in"==t.hoverState)t.hoverState="in";else{if(clearTimeout(t.timeout),t.hoverState="in",!t.options.delay||!t.options.delay.show)return t.show();t.timeout=setTimeout(function(){"in"==t.hoverState&&t.show()},t.options.delay.show)}},g.prototype.isInStateTrue=function(){for(var e in this.inState)if(this.inState[e])return!0;return!1},g.prototype.leave=function(e){var t=e instanceof this.constructor?e:m(e.currentTarget).data("bs."+this.type);if(t||(t=new this.constructor(e.currentTarget,this.getDelegateOptions()),m(e.currentTarget).data("bs."+this.type,t)),e instanceof m.Event&&(t.inState["focusout"==e.type?"focus":"hover"]=!1),!t.isInStateTrue()){if(clearTimeout(t.timeout),t.hoverState="out",!t.options.delay||!t.options.delay.hide)return t.hide();t.timeout=setTimeout(function(){"out"==t.hoverState&&t.hide()},t.options.delay.hide)}},g.prototype.show=function(){var e=m.Event("show.bs."+this.type);if(this.hasContent()&&this.enabled){this.$element.trigger(e);var t=m.contains(this.$element[0].ownerDocument.documentElement,this.$element[0]);if(e.isDefaultPrevented()||!t)return;var n=this,i=this.tip(),r=this.getUID(this.type);this.setContent(),i.attr("id",r),this.$element.attr("aria-describedby",r),this.options.animation&&i.addClass("fade");var o="function"==typeof this.options.placement?this.options.placement.call(this,i[0],this.$element[0]):this.options.placement,s=/\s?auto?\s?/i,a=s.test(o);a&&(o=o.replace(s,"")||"top"),i.detach().css({top:0,left:0,display:"block"}).addClass(o).data("bs."+this.type,this),this.options.container?i.appendTo(m(document).find(this.options.container)):i.insertAfter(this.$element),this.$element.trigger("inserted.bs."+this.type);var l=this.getPosition(),u=i[0].offsetWidth,c=i[0].offsetHeight;if(a){var d=o,h=this.getPosition(this.$viewport);o="bottom"==o&&l.bottom+c>h.bottom?"top":"top"==o&&l.top-c<h.top?"bottom":"right"==o&&l.right+u>h.width?"left":"left"==o&&l.left-u<h.left?"right":o,i.removeClass(d).addClass(o)}var f=this.getCalculatedOffset(o,l,u,c);this.applyPlacement(f,o);var p=function(){var e=n.hoverState;n.$element.trigger("shown.bs."+n.type),n.hoverState=null,"out"==e&&n.leave(n)};m.support.transition&&this.$tip.hasClass("fade")?i.one("bsTransitionEnd",p).emulateTransitionEnd(g.TRANSITION_DURATION):p()}},g.prototype.applyPlacement=function(e,t){var n=this.tip(),i=n[0].offsetWidth,r=n[0].offsetHeight,o=parseInt(n.css("margin-top"),10),s=parseInt(n.css("margin-left"),10);isNaN(o)&&(o=0),isNaN(s)&&(s=0),e.top+=o,e.left+=s,m.offset.setOffset(n[0],m.extend({using:function(e){n.css({top:Math.round(e.top),left:Math.round(e.left)})}},e),0),n.addClass("in");var a=n[0].offsetWidth,l=n[0].offsetHeight;"top"==t&&l!=r&&(e.top=e.top+r-l);var u=this.getViewportAdjustedDelta(t,e,a,l);u.left?e.left+=u.left:e.top+=u.top;var c=/top|bottom/.test(t),d=c?2*u.left-i+a:2*u.top-r+l,h=c?"offsetWidth":"offsetHeight";n.offset(e),this.replaceArrow(d,n[0][h],c)},g.prototype.replaceArrow=function(e,t,n){this.arrow().css(n?"left":"top",50*(1-e/t)+"%").css(n?"top":"left","")},g.prototype.setContent=function(){var e=this.tip(),t=this.getTitle();this.options.html?(this.options.sanitize&&(t=i(t,this.options.whiteList,this.options.sanitizeFn)),e.find(".tooltip-inner").html(t)):e.find(".tooltip-inner").text(t),e.removeClass("fade in top bottom left right")},g.prototype.hide=function(e){function t(){"in"!=n.hoverState&&i.detach(),n.$element&&n.$element.removeAttr("aria-describedby").trigger("hidden.bs."+n.type),e&&e()}var n=this,i=m(this.$tip),r=m.Event("hide.bs."+this.type);if(this.$element.trigger(r),!r.isDefaultPrevented())return i.removeClass("in"),m.support.transition&&i.hasClass("fade")?i.one("bsTransitionEnd",t).emulateTransitionEnd(g.TRANSITION_DURATION):t(),this.hoverState=null,this},g.prototype.fixTitle=function(){var e=this.$element;(e.attr("title")||"string"!=typeof e.attr("data-original-title"))&&e.attr("data-original-title",e.attr("title")||"").attr("title","")},g.prototype.hasContent=function(){return this.getTitle()},g.prototype.getPosition=function(e){var t=(e=e||this.$element)[0],n="BODY"==t.tagName,i=t.getBoundingClientRect();null==i.width&&(i=m.extend({},i,{width:i.right-i.left,height:i.bottom-i.top}));var r=window.SVGElement&&t instanceof window.SVGElement,o=n?{top:0,left:0}:r?null:e.offset(),s={scroll:n?document.documentElement.scrollTop||document.body.scrollTop:e.scrollTop()},a=n?{width:m(window).width(),height:m(window).height()}:null;return m.extend({},i,s,a,o)},g.prototype.getCalculatedOffset=function(e,t,n,i){return"bottom"==e?{top:t.top+t.height,left:t.left+t.width/2-n/2}:"top"==e?{top:t.top-i,left:t.left+t.width/2-n/2}:"left"==e?{top:t.top+t.height/2-i/2,left:t.left-n}:{top:t.top+t.height/2-i/2,left:t.left+t.width}},g.prototype.getViewportAdjustedDelta=function(e,t,n,i){var r={top:0,left:0};if(!this.$viewport)return r;var o=this.options.viewport&&this.options.viewport.padding||0,s=this.getPosition(this.$viewport);if(/right|left/.test(e)){var a=t.top-o-s.scroll,l=t.top+o-s.scroll+i;a<s.top?r.top=s.top-a:l>s.top+s.height&&(r.top=s.top+s.height-l)}else{var u=t.left-o,c=t.left+o+n;u<s.left?r.left=s.left-u:c>s.right&&(r.left=s.left+s.width-c)}return r},g.prototype.getTitle=function(){var e=this.$element,t=this.options;return e.attr("data-original-title")||("function"==typeof t.title?t.title.call(e[0]):t.title)},g.prototype.getUID=function(e){for(;e+=~~(1e6*Math.random()),document.getElementById(e););return e},g.prototype.tip=function(){if(!this.$tip&&(this.$tip=m(this.options.template),1!=this.$tip.length))throw new Error(this.type+" `template` option must consist of exactly 1 top-level element!");return this.$tip},g.prototype.arrow=function(){return this.$arrow=this.$arrow||this.tip().find(".tooltip-arrow")},g.prototype.enable=function(){this.enabled=!0},g.prototype.disable=function(){this.enabled=!1},g.prototype.toggleEnabled=function(){this.enabled=!this.enabled},g.prototype.toggle=function(e){var t=this;e&&((t=m(e.currentTarget).data("bs."+this.type))||(t=new this.constructor(e.currentTarget,this.getDelegateOptions()),m(e.currentTarget).data("bs."+this.type,t))),e?(t.inState.click=!t.inState.click,t.isInStateTrue()?t.enter(t):t.leave(t)):t.tip().hasClass("in")?t.leave(t):t.enter(t)},g.prototype.destroy=function(){var e=this;clearTimeout(this.timeout),this.hide(function(){e.$element.off("."+e.type).removeData("bs."+e.type),e.$tip&&e.$tip.detach(),e.$tip=null,e.$arrow=null,e.$viewport=null,e.$element=null})},g.prototype.sanitizeHtml=function(e){return i(e,this.options.whiteList,this.options.sanitizeFn)};var n=m.fn.tooltip;m.fn.tooltip=e,m.fn.tooltip.Constructor=g,m.fn.tooltip.noConflict=function(){return m.fn.tooltip=n,this}}(jQuery),function(r){"use strict";function e(i){return this.each(function(){var e=r(this),t=e.data("bs.popover"),n="object"==typeof i&&i;!t&&/destroy|hide/.test(i)||(t||e.data("bs.popover",t=new o(this,n)),"string"==typeof i&&t[i]())})}var o=function(e,t){this.init("popover",e,t)};if(!r.fn.tooltip)throw new Error("Popover requires tooltip.js");o.VERSION="3.4.1",o.DEFAULTS=r.extend({},r.fn.tooltip.Constructor.DEFAULTS,{placement:"right",trigger:"click",content:"",template:'<div class="popover" role="tooltip"><div class="arrow"></div><h3 class="popover-title"></h3><div class="popover-content"></div></div>'}),o.prototype=r.extend({},r.fn.tooltip.Constructor.prototype),(o.prototype.constructor=o).prototype.getDefaults=function(){return o.DEFAULTS},o.prototype.setContent=function(){var e=this.tip(),t=this.getTitle(),n=this.getContent();if(this.options.html){var i=typeof n;this.options.sanitize&&(t=this.sanitizeHtml(t),"string"===i&&(n=this.sanitizeHtml(n))),e.find(".popover-title").html(t),e.find(".popover-content").children().detach().end()["string"===i?"html":"append"](n)}else e.find(".popover-title").text(t),e.find(".popover-content").children().detach().end().text(n);e.removeClass("fade top bottom left right in"),e.find(".popover-title").html()||e.find(".popover-title").hide()},o.prototype.hasContent=function(){return this.getTitle()||this.getContent()},o.prototype.getContent=function(){var e=this.$element,t=this.options;return e.attr("data-content")||("function"==typeof t.content?t.content.call(e[0]):t.content)},o.prototype.arrow=function(){return this.$arrow=this.$arrow||this.tip().find(".arrow")};var t=r.fn.popover;r.fn.popover=e,r.fn.popover.Constructor=o,r.fn.popover.noConflict=function(){return r.fn.popover=t,this}}(jQuery),function(n){function i(e){if(r[e])return r[e].exports;var t=r[e]={i:e,l:!1,exports:{}};return n[e].call(t.exports,t,t.exports,i),t.l=!0,t.exports}var r={};i.m=n,i.c=r,i.d=function(e,t,n){i.o(e,t)||Object.defineProperty(e,t,{configurable:!1,enumerable:!0,get:n})},i.r=function(e){Object.defineProperty(e,"__esModule",{value:!0})},i.n=function(e){var t=e&&e.__esModule?function(){return e["default"]}:function(){return e};return i.d(t,"a",t),t},i.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},i.p="",i(i.s=24)}([function(e,t,n){e.exports=!n(2)(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},function(e){e.exports=function(e){return"object"==typeof e?null!==e:"function"==typeof e}},function(e){e.exports=function(e){try{return!!e()}catch(e){return!0}}},function(e,t,n){var i=n(13),r=n(12),o=n(10),s=Object.defineProperty;t.f=n(0)?Object.defineProperty:function(e,t,n){if(i(e),t=o(t,!0),i(n),r)try{return s(e,t,n)}catch(e){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(e[t]=n.value),e}},function(e){var t=e.exports={version:"2.5.5"};"number"==typeof __e&&(__e=t)},function(e){var t=e.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=t)},function(e){e.exports=jQuery},function(e){e.exports=function(e){return e&&e.__esModule?e:{"default":e}}},function(e){var n={}.hasOwnProperty;e.exports=function(e,t){return n.call(e,t)}},function(e){e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},function(e,t,n){var r=n(1);e.exports=function(e,t){if(!r(e))return e;var n,i;if(t&&"function"==typeof(n=e.toString)&&!r(i=n.call(e)))return i;if("function"==typeof(n=e.valueOf)&&!r(i=n.call(e)))return i;if(!t&&"function"==typeof(n=e.toString)&&!r(i=n.call(e)))return i;throw TypeError("Can't convert object to primitive value")}},function(e,t,n){var i=n(1),r=n(5).document,o=i(r)&&i(r.createElement);e.exports=function(e){return o?r.createElement(e):{}}},function(e,t,n){e.exports=!n(0)&&!n(2)(function(){return 7!=Object.defineProperty(n(11)("div"),"a",{get:function(){return 7}}).a})},function(e,t,n){var i=n(1);e.exports=function(e){if(!i(e))throw TypeError(e+" is not an object!");return e}},function(e,t,n){var i=n(3),r=n(9);e.exports=n(0)?function(e,t,n){return i.f(e,t,r(1,n))}:function(e,t,n){return e[t]=n,e}},function(e){e.exports=function(e){if("function"!=typeof e)throw TypeError(e+" is not a function!");return e}},function(e,t,n){var o=n(15);e.exports=function(i,r,e){if(o(i),void 0===r)return i;switch(e){case 1:return function(e){return i.call(r,e)};case 2:return function(e,t){return i.call(r,e,t)};case 3:return function(e,t,n){return i.call(r,e,t,n)}}return function(){return i.apply(r,arguments)}}},function(e,t,n){var m=n(5),g=n(4),v=n(16),y=n(14),b=n(8),w=function(e,t,n){var i,r,o,s=e&w.F,a=e&w.G,l=e&w.S,u=e&w.P,c=e&w.B,d=e&w.W,h=a?g:g[t]||(g[t]={}),f=h.prototype,p=a?m:l?m[t]:(m[t]||{}).prototype;for(i in a&&(n=t),n)(r=!s&&p&&void 0!==p[i])&&b(h,i)||(o=r?p[i]:n[i],h[i]=a&&"function"!=typeof p[i]?n[i]:c&&r?v(o,m):d&&p[i]==o?function(i){var e=function(e,t,n){if(this instanceof i){switch(arguments.length){case 0:return new i;case 1:return new i(e);case 2:return new i(e,t)}return new i(e,t,n)}return i.apply(this,arguments)};return e.prototype=i.prototype,e}(o):u&&"function"==typeof o?v(Function.call,o):o,u&&((h.virtual||(h.virtual={}))[i]=o,e&w.R&&f&&!f[i]&&y(f,i,o)))};w.F=1,w.G=2,w.S=4,w.P=8,w.B=16,w.W=32,w.U=64,w.R=128,e.exports=w},function(e,t,n){var i=n(17);i(i.S+i.F*!n(0),"Object",{defineProperty:n(3).f})},function(e,t,n){n(18);var i=n(4).Object;e.exports=function(e,t,n){return i.defineProperty(e,t,n)}},function(e,t,n){e.exports=n(19)},function(e,t,n){function i(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),r(e,i.key,i)}}var r=n(20);e.exports=function(e,t,n){return t&&i(e.prototype,t),n&&i(e,n),e}},function(e){e.exports=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}},function(e,t,n){"use strict";var i=n(7);Object.defineProperty(t,"__esModule",{value:!0}),t["default"]=void 0;var s=i(n(22)),a=i(n(21)),l=i(n(6)),u=27,h=35,f=36,p=37,m=38,g=39,v=40,y=400,b=40,w=400,o=0,S=function(){function r(e,t){(0,s["default"])(this,r),this.menu=e,this.$element=t,this.$link=t.find("a").first(),this.open=!1,this.$element.attr("role")||this.$element.attr("role","none"),this.$link.attr("role")||this.$link.attr("role","menuitem");var n,i=t.find("ul").first();i.length&&(i.attr("id")||i.attr("id",(o=n=o+1,"sl-menu__submenu_".concat(n))),this.submenu=new e.constructor(i,{role:"menu",focusContainer:!1}),this.$element.addClass("sl-menu--has-submenu"),this.$link.attr("aria-haspopup","menu").attr("aria-controls",i.attr("id")),this.$toggle=(0,l["default"])('<button type="button" class="sl-menu__toggle">Toggle menu</button>').attr("aria-controls",i.attr("id")).attr("tabindex","-1").insertAfter(this.$link),i.addClass("sl-menu__submenu"),i.attr("aria-label")||i.attr("aria-label",this.$link.text())),this.update()}return(0,a["default"])(r,[{key:"setOpen",value:function(e){this.submenu&&(this.open=e,this.submenu.setOpenIndex(-1),this.update())}},{key:"update",value:function(){if(this.submenu){this.open?(this.$element.removeClass("sl-menu--closed"),this.$element.addClass("sl-menu--open")):(this.$element.removeClass("sl-menu--open"),this.$element.addClass("sl-menu--closed"));var e=this.submenu.$element.is(":visible")?"true":"false";this.$link.attr("aria-expanded",e),this.$toggle.attr("aria-expanded",e)}}},{key:"focus",value:function(){this.$link.focus()}}]),r}(),r=function(){function o(t,e){var n,i,d=this,r=1<arguments.length&&void 0!==e?e:{};(0,s["default"])(this,o),this.$element=t,this.role=r.role||"menubar",this.focusContainer="boolean"!=typeof r.focusContainer||r.focusContainer,this.items=[],this.openIndex=-1,this.hoverMode=!0,this.hoverIntent=!1,this.$element.attr("role")||this.$element.attr("role",this.role),t.focusin(function(e){if(d.focusContainer){var t=(0,l["default"])(e.target);d.setActiveElement(t)}d.setOrientation()}),this.focusContainer&&(0,l["default"])(document).on("keypress click focusin",function(e){-1!==d.openIndex&&0===t.has(e.target).length&&(d.setActiveElement(d.items[d.openIndex].$link),d.setOpenIndex(-1))}),t.keydown(function(e){if(e.which===u&&-1!==d.openIndex){var t=d.items[d.openIndex];d.setOpenIndex(-1),t.focus(),e.stopPropagation(),e.preventDefault()}}),t.mouseenter(function(){d.setHoverMode()}),t.children("li").each(function(u,e){var t=(0,l["default"])(e),c=new S(d,t);d.items.push(c),c.$link.attr("tabindex","-1"),t.keydown(function(e){var t="horizontal"===d.orientation?v:g,n="horizontal"===d.orientation?m:p,i="horizontal"===d.orientation?p:m,r="horizontal"===d.orientation?g:v;switch(e.which){case t:c.submenu&&d.openIndex!==u&&(d.setOpenIndex(u),c.submenu.focusFirstItem(),e.stopPropagation(),e.preventDefault());break;case n:c.submenu&&d.openIndex===u&&(d.setOpenIndex(-1),c.focus(),e.stopPropagation(),e.preventDefault());break;case i:if(0<u){if(u!==d.openIndex||"horizontal"===d.orientation){var o=d.items[u-1];o.submenu&&-1!==d.openIndex?(d.setOpenIndex(u-1),o.submenu.focusFirstItem()):(d.setOpenIndex(-1),o.focus())}e.stopPropagation(),e.preventDefault()}break;case r:if(u<d.items.length-1){var s=d.items[u+1];s.submenu&&-1!==d.openIndex?(d.setOpenIndex(u+1),s.submenu.focusFirstItem()):(d.setOpenIndex(-1),s.focus())}e.stopPropagation(),e.preventDefault();break;case f:if(0<d.items.length){var a=d.items[0];a.submenu&&-1!==d.openIndex?(d.setOpenIndex(1),a.submenu.focusFirstItem()):(d.setOpenIndex(-1),a.focus()),e.stopPropagation(),e.preventDefault()}break;case h:if(0<d.items.length){var l=d.items[d.items.length-1];l.submenu&&-1!==d.openIndex?(d.setOpenIndex(d.items.length-1),l.submenu.focusFirstItem()):(d.setOpenIndex(-1),l.focus()),e.stopPropagation(),e.preventDefault()}}}),t.mouseenter(function(){d.hoverMode&&(n&&(clearTimeout(n),n=void 0),d.hoverIntent?d.setOpenIndex(u):n=setTimeout(function(){d.hoverMode&&(d.hoverIntent=!0,d.setOpenIndex(u))},y),i&&(clearTimeout(i),i=void 0))}),t.mousemove(function(){d.hoverMode&&!d.hoverIntent&&(i&&clearTimeout(i),i=setTimeout(function(){d.hoverIntent=!0,d.setOpenIndex(u)},b))}),t.mouseleave(function(){d.hoverMode&&(n&&clearTimeout(n),n=setTimeout(function(){d.openIndex===u&&(d.hoverIntent=!1,d.setOpenIndex(-1))},w),i&&(clearTimeout(i),i=void 0))}),c.submenu&&c.$toggle&&c.$toggle.click(function(){d.openIndex===u?(d.setOpenIndex(-1),c.focus()):(d.setOpenIndex(u),c.submenu.focusFirstItem())})}),this.focusContainer&&0<this.items.length&&this.setActiveElement(this.items[0].$link),this.setOrientation(),this.update()}return(0,a["default"])(o,[{key:"setActiveElement",value:function(e){if(0!==this.$element.has(e).length){this.$prevActiveElement&&this.$prevActiveElement.attr("tabindex","-1");var t=e;t.attr("tabindex","0"),this.$prevActiveElement=t}}},{key:"setOrientation",value:function(){if(this.$element.is(":visible")&&2<=this.items.length){var e=this.items[0].$element.offset(),t=this.items[1].$element.offset(),n=Math.abs(t.left-e.left),i=Math.abs(t.top-e.top);this.orientation=i<n?"horizontal":"vertical"}else"menubar"===this.role?this.orientation="horizontal":this.orientation="vertical";this.$element.attr("aria-orientation",this.orientation)}},{key:"setHoverMode",value:function(){this.hoverMode=!this.items.some(function(e){return e.$toggle&&e.$toggle.is(":visible")})}},{key:"setOpenIndex",value:function(e){this.openIndex=e,this.update()}},{key:"update",value:function(){var n=this;this.items.forEach(function(e,t){e.setOpen(t===n.openIndex)})}},{key:"focusFirstItem",value:function(){0!==this.items.length&&this.items[0].focus()}}]),o}();t["default"]=r},function(e,t,n){"use strict";var i=n(7),r=i(n(6)),o=i(n(23));r["default"].fn.slMenu=function(){return new o["default"](this)},(0,r["default"])(document).ready(function(){(0,r["default"])(".sl-menu").slMenu()})}]),function(e){"use strict";"function"==typeof define&&define.amd?define(["jquery"],e):"undefined"!=typeof exports?module.exports=e(require("jquery")):e(jQuery)}(function(c){"use strict";var a=window.Slick||{};(a=function(){function e(e,t){var n,i=this;i.defaults={accessibility:!0,adaptiveHeight:!1,appendArrows:c(e),appendDots:c(e),arrows:!0,asNavFor:null,prevArrow:'<button class="slick-prev" aria-label="Previous" type="button">Previous</button>',nextArrow:'<button class="slick-next" aria-label="Next" type="button">Next</button>',autoplay:!1,autoplaySpeed:3e3,centerMode:!1,centerPadding:"50px",cssEase:"ease",customPaging:function(e,t){return c('<button type="button" />').text(t+1)},dots:!1,dotsClass:"slick-dots",draggable:!0,easing:"linear",edgeFriction:.35,fade:!1,focusOnSelect:!1,focusOnChange:!1,infinite:!0,initialSlide:0,lazyLoad:"ondemand",mobileFirst:!1,pauseOnHover:!0,pauseOnFocus:!0,pauseOnDotsHover:!1,respondTo:"window",responsive:null,rows:1,rtl:!1,slide:"",slidesPerRow:1,slidesToShow:1,slidesToScroll:1,speed:500,swipe:!0,swipeToSlide:!1,touchMove:!0,touchThreshold:5,useCSS:!0,useTransform:!0,variableWidth:!1,vertical:!1,verticalSwiping:!1,waitForAnimate:!0,zIndex:1e3},i.initials={animating:!1,dragging:!1,autoPlayTimer:null,currentDirection:0,currentLeft:null,currentSlide:0,direction:1,$dots:null,listWidth:null,listHeight:null,loadIndex:0,$nextArrow:null,$prevArrow:null,scrolling:!1,slideCount:null,slideWidth:null,$slideTrack:null,$slides:null,sliding:!1,slideOffset:0,swipeLeft:null,swiping:!1,$list:null,touchObject:{},transformsEnabled:!1,unslicked:!1},c.extend(i,i.initials),i.activeBreakpoint=null,i.animType=null,i.animProp=null,i.breakpoints=[],i.breakpointSettings=[],i.cssTransitions=!1,i.focussed=!1,i.interrupted=!1,i.hidden="hidden",i.paused=!0,i.positionProp=null,i.respondTo=null,i.rowCount=1,i.shouldClick=!0,i.$slider=c(e),i.$slidesCache=null,i.transformType=null,i.transitionType=null,i.visibilityChange="visibilitychange",i.windowWidth=0,i.windowTimer=null,n=c(e).data("slick")||{},i.options=c.extend({},i.defaults,t,n),i.currentSlide=i.options.initialSlide,i.originalSettings=i.options,"undefined"!=typeof document.mozHidden?(i.hidden="mozHidden",i.visibilityChange="mozvisibilitychange"):"undefined"!=typeof document.webkitHidden&&(i.hidden="webkitHidden",i.visibilityChange="webkitvisibilitychange"),i.autoPlay=c.proxy(i.autoPlay,i),i.autoPlayClear=c.proxy(i.autoPlayClear,i),i.autoPlayIterator=c.proxy(i.autoPlayIterator,i),i.changeSlide=c.proxy(i.changeSlide,i),i.clickHandler=c.proxy(i.clickHandler,i),i.selectHandler=c.proxy(i.selectHandler,i),i.setPosition=c.proxy(i.setPosition,i),i.swipeHandler=c.proxy(i.swipeHandler,i),i.dragHandler=c.proxy(i.dragHandler,i),i.keyHandler=c.proxy(i.keyHandler,i),i.instanceUid=r++,i.htmlExpr=/^(?:\s*(<[\w\W]+>)[^>]*)$/,i.registerBreakpoints(),i.init(!0)}var r=0;return e}()).prototype.activateADA=function(){this.$slideTrack.find(".slick-active").attr({"aria-hidden":"false"}).find("a, input, button, select").attr({tabindex:"0"})},a.prototype.addSlide=a.prototype.slickAdd=function(e,t,n){var i=this;if("boolean"==typeof t)n=t,t=null;else if(t<0||t>=i.slideCount)return!1;i.unload(),"number"==typeof t?0===t&&0===i.$slides.length?c(e).appendTo(i.$slideTrack):n?c(e).insertBefore(i.$slides.eq(t)):c(e).insertAfter(i.$slides.eq(t)):!0===n?c(e).prependTo(i.$slideTrack):c(e).appendTo(i.$slideTrack),i.$slides=i.$slideTrack.children(this.options.slide),i.$slideTrack.children(this.options.slide).detach(),i.$slideTrack.append(i.$slides),i.$slides.each(function(e,t){c(t).attr("data-slick-index",e)}),i.$slidesCache=i.$slides,i.reinit()},a.prototype.animateHeight=function(){var e=this;if(1===e.options.slidesToShow&&!0===e.options.adaptiveHeight&&!1===e.options.vertical){var t=e.$slides.eq(e.currentSlide).outerHeight(!0);e.$list.animate({height:t},e.options.speed)}},a.prototype.animateSlide=function(e,t){var n={},i=this;i.animateHeight(),!0===i.options.rtl&&!1===i.options.vertical&&(e=-e),!1===i.transformsEnabled?!1===i.options.vertical?i.$slideTrack.animate({left:e},i.options.speed,i.options.easing,t):i.$slideTrack.animate({top:e},i.options.speed,i.options.easing,t):!1===i.cssTransitions?(!0===i.options.rtl&&(i.currentLeft=-i.currentLeft),c({animStart:i.currentLeft}).animate({animStart:e},{duration:i.options.speed,easing:i.options.easing,step:function(e){e=Math.ceil(e),!1===i.options.vertical?n[i.animType]="translate("+e+"px, 0px)":n[i.animType]="translate(0px,"+e+"px)",i.$slideTrack.css(n)},complete:function(){t&&t.call()}})):(i.applyTransition(),e=Math.ceil(e),!1===i.options.vertical?n[i.animType]="translate3d("+e+"px, 0px, 0px)":n[i.animType]="translate3d(0px,"+e+"px, 0px)",i.$slideTrack.css(n),t&&setTimeout(function(){i.disableTransition(),t.call()},i.options.speed))},a.prototype.getNavTarget=function(){var e=this,t=e.options.asNavFor;return t&&null!==t&&(t=c(t).not(e.$slider)),t},a.prototype.asNavFor=function(t){var e=this.getNavTarget();null!==e&&"object"==typeof e&&e.each(function(){var e=c(this).slick("getSlick");e.unslicked||e.slideHandler(t,!0)})},a.prototype.applyTransition=function(e){var t=this,n={};!1===t.options.fade?n[t.transitionType]=t.transformType+" "+t.options.speed+"ms "+t.options.cssEase:n[t.transitionType]="opacity "+t.options.speed+"ms "+t.options.cssEase,!1===t.options.fade?t.$slideTrack.css(n):t.$slides.eq(e).css(n)},a.prototype.autoPlay=function(){var e=this;e.autoPlayClear(),e.slideCount>e.options.slidesToShow&&(e.autoPlayTimer=setInterval(e.autoPlayIterator,e.options.autoplaySpeed))},a.prototype.autoPlayClear=function(){var e=this;e.autoPlayTimer&&clearInterval(e.autoPlayTimer)},a.prototype.autoPlayIterator=function(){var e=this,t=e.currentSlide+e.options.slidesToScroll;e.paused||e.interrupted||e.focussed||(!1===e.options.infinite&&(1===e.direction&&e.currentSlide+1===e.slideCount-1?e.direction=0:0===e.direction&&(t=e.currentSlide-e.options.slidesToScroll,e.currentSlide-1==0&&(e.direction=1))),e.slideHandler(t))},a.prototype.buildArrows=function(){var e=this;!0===e.options.arrows&&(e.$prevArrow=c(e.options.prevArrow).addClass("slick-arrow"),e.$nextArrow=c(e.options.nextArrow).addClass("slick-arrow"),e.slideCount>e.options.slidesToShow?(e.$prevArrow.removeClass("slick-hidden").removeAttr("aria-hidden tabindex"),e.$nextArrow.removeClass("slick-hidden").removeAttr("aria-hidden tabindex"),e.htmlExpr.test(e.options.prevArrow)&&e.$prevArrow.prependTo(e.options.appendArrows),e.htmlExpr.test(e.options.nextArrow)&&e.$nextArrow.appendTo(e.options.appendArrows),!0!==e.options.infinite&&e.$prevArrow.addClass("slick-disabled").attr("aria-disabled","true")):e.$prevArrow.add(e.$nextArrow).addClass("slick-hidden").attr({"aria-disabled":"true",tabindex:"-1"}))},a.prototype.buildDots=function(){var e,t,n=this;if(!0===n.options.dots&&n.slideCount>n.options.slidesToShow){for(n.$slider.addClass("slick-dotted"),t=c("<ul />").addClass(n.options.dotsClass),e=0;e<=n.getDotCount();e+=1)t.append(c("<li />").append(n.options.customPaging.call(this,n,e)));n.$dots=t.appendTo(n.options.appendDots),n.$dots.find("li").first().addClass("slick-active")}},a.prototype.buildOut=function(){var e=this;e.$slides=e.$slider.children(e.options.slide+":not(.slick-cloned)").addClass("slick-slide"),e.slideCount=e.$slides.length,e.$slides.each(function(e,t){c(t).attr("data-slick-index",e).data("originalStyling",c(t).attr("style")||"")}),e.$slider.addClass("slick-slider"),e.$slideTrack=0===e.slideCount?c('<div class="slick-track"/>').appendTo(e.$slider):e.$slides.wrapAll('<div class="slick-track"/>').parent(),e.$list=e.$slideTrack.wrap('<div class="slick-list"/>').parent(),e.$slideTrack.css("opacity",0),!0!==e.options.centerMode&&!0!==e.options.swipeToSlide||(e.options.slidesToScroll=1),c("img[data-lazy]",e.$slider).not("[src]").addClass("slick-loading"),e.setupInfinite(),e.buildArrows(),e.buildDots(),e.updateDots(),e.setSlideClasses("number"==typeof e.currentSlide?e.currentSlide:0),!0===e.options.draggable&&e.$list.addClass("draggable")},a.prototype.buildRows=function(){var e,t,n,i,r,o,s,a=this;if(i=document.createDocumentFragment(),o=a.$slider.children(),0<a.options.rows){for(s=a.options.slidesPerRow*a.options.rows,r=Math.ceil(o.length/s),e=0;e<r;e++){var l=document.createElement("div");for(t=0;t<a.options.rows;t++){var u=document.createElement("div");for(n=0;n<a.options.slidesPerRow;n++){var c=e*s+(t*a.options.slidesPerRow+n);o.get(c)&&u.appendChild(o.get(c))}l.appendChild(u)}i.appendChild(l)}a.$slider.empty().append(i),a.$slider.children().children().children().css({width:100/a.options.slidesPerRow+"%",display:"inline-block"})}},a.prototype.checkResponsive=function(e,t){var n,i,r,o=this,s=!1,a=o.$slider.width(),l=window.innerWidth||c(window).width();if("window"===o.respondTo?r=l:"slider"===o.respondTo?r=a:"min"===o.respondTo&&(r=Math.min(l,a)),o.options.responsive&&o.options.responsive.length&&null!==o.options.responsive){for(n in i=null,o.breakpoints)o.breakpoints.hasOwnProperty(n)&&(!1===o.originalSettings.mobileFirst?r<o.breakpoints[n]&&(i=o.breakpoints[n]):r>o.breakpoints[n]&&(i=o.breakpoints[n]));null!==i?null!==o.activeBreakpoint?(i!==o.activeBreakpoint||t)&&(o.activeBreakpoint=i,"unslick"===o.breakpointSettings[i]?o.unslick(i):(o.options=c.extend({},o.originalSettings,o.breakpointSettings[i]),!0===e&&(o.currentSlide=o.options.initialSlide),o.refresh(e)),s=i):(o.activeBreakpoint=i,"unslick"===o.breakpointSettings[i]?o.unslick(i):(o.options=c.extend({},o.originalSettings,o.breakpointSettings[i]),!0===e&&(o.currentSlide=o.options.initialSlide),o.refresh(e)),s=i):null!==o.activeBreakpoint&&(o.activeBreakpoint=null,o.options=o.originalSettings,!0===e&&(o.currentSlide=o.options.initialSlide),o.refresh(e),s=i),e||!1===s||o.$slider.trigger("breakpoint",[o,s])}},a.prototype.changeSlide=function(e,t){var n,i,r=this,o=c(e.currentTarget);switch(o.is("a")&&e.preventDefault(),o.is("li")||(o=o.closest("li")),n=r.slideCount%r.options.slidesToScroll!=0?0:(r.slideCount-r.currentSlide)%r.options.slidesToScroll,e.data.message){case"previous":i=0===n?r.options.slidesToScroll:r.options.slidesToShow-n,r.slideCount>r.options.slidesToShow&&r.slideHandler(r.currentSlide-i,!1,t);break;case"next":i=0===n?r.options.slidesToScroll:n,r.slideCount>r.options.slidesToShow&&r.slideHandler(r.currentSlide+i,!1,t);break
;case"index":var s=0===e.data.index?0:e.data.index||o.index()*r.options.slidesToScroll;r.slideHandler(r.checkNavigable(s),!1,t),o.children().trigger("focus");break;default:return}},a.prototype.checkNavigable=function(e){var t,n;if(n=0,e>(t=this.getNavigableIndexes())[t.length-1])e=t[t.length-1];else for(var i in t){if(e<t[i]){e=n;break}n=t[i]}return e},a.prototype.cleanUpEvents=function(){var e=this;e.options.dots&&null!==e.$dots&&(c("li",e.$dots).off("click.slick",e.changeSlide).off("mouseenter.slick",c.proxy(e.interrupt,e,!0)).off("mouseleave.slick",c.proxy(e.interrupt,e,!1)),!0===e.options.accessibility&&e.$dots.off("keydown.slick",e.keyHandler)),e.$slider.off("focus.slick blur.slick"),!0===e.options.arrows&&e.slideCount>e.options.slidesToShow&&(e.$prevArrow&&e.$prevArrow.off("click.slick",e.changeSlide),e.$nextArrow&&e.$nextArrow.off("click.slick",e.changeSlide),!0===e.options.accessibility&&(e.$prevArrow&&e.$prevArrow.off("keydown.slick",e.keyHandler),e.$nextArrow&&e.$nextArrow.off("keydown.slick",e.keyHandler))),e.$list.off("touchstart.slick mousedown.slick",e.swipeHandler),e.$list.off("touchmove.slick mousemove.slick",e.swipeHandler),e.$list.off("touchend.slick mouseup.slick",e.swipeHandler),e.$list.off("touchcancel.slick mouseleave.slick",e.swipeHandler),e.$list.off("click.slick",e.clickHandler),c(document).off(e.visibilityChange,e.visibility),e.cleanUpSlideEvents(),!0===e.options.accessibility&&e.$list.off("keydown.slick",e.keyHandler),!0===e.options.focusOnSelect&&c(e.$slideTrack).children().off("click.slick",e.selectHandler),c(window).off("orientationchange.slick.slick-"+e.instanceUid,e.orientationChange),c(window).off("resize.slick.slick-"+e.instanceUid,e.resize),c("[draggable!=true]",e.$slideTrack).off("dragstart",e.preventDefault),c(window).off("load.slick.slick-"+e.instanceUid,e.setPosition)},a.prototype.cleanUpSlideEvents=function(){var e=this;e.$list.off("mouseenter.slick",c.proxy(e.interrupt,e,!0)),e.$list.off("mouseleave.slick",c.proxy(e.interrupt,e,!1))},a.prototype.cleanUpRows=function(){var e,t=this;0<t.options.rows&&((e=t.$slides.children().children()).removeAttr("style"),t.$slider.empty().append(e))},a.prototype.clickHandler=function(e){!1===this.shouldClick&&(e.stopImmediatePropagation(),e.stopPropagation(),e.preventDefault())},a.prototype.destroy=function(e){var t=this;t.autoPlayClear(),t.touchObject={},t.cleanUpEvents(),c(".slick-cloned",t.$slider).detach(),t.$dots&&t.$dots.remove(),t.$prevArrow&&t.$prevArrow.length&&(t.$prevArrow.removeClass("slick-disabled slick-arrow slick-hidden").removeAttr("aria-hidden aria-disabled tabindex").css("display",""),t.htmlExpr.test(t.options.prevArrow)&&t.$prevArrow.remove()),t.$nextArrow&&t.$nextArrow.length&&(t.$nextArrow.removeClass("slick-disabled slick-arrow slick-hidden").removeAttr("aria-hidden aria-disabled tabindex").css("display",""),t.htmlExpr.test(t.options.nextArrow)&&t.$nextArrow.remove()),t.$slides&&(t.$slides.removeClass("slick-slide slick-active slick-center slick-visible slick-current").removeAttr("aria-hidden").removeAttr("data-slick-index").each(function(){c(this).attr("style",c(this).data("originalStyling"))}),t.$slideTrack.children(this.options.slide).detach(),t.$slideTrack.detach(),t.$list.detach(),t.$slider.append(t.$slides)),t.cleanUpRows(),t.$slider.removeClass("slick-slider"),t.$slider.removeClass("slick-initialized"),t.$slider.removeClass("slick-dotted"),t.unslicked=!0,e||t.$slider.trigger("destroy",[t])},a.prototype.disableTransition=function(e){var t=this,n={};n[t.transitionType]="",!1===t.options.fade?t.$slideTrack.css(n):t.$slides.eq(e).css(n)},a.prototype.fadeSlide=function(e,t){var n=this;!1===n.cssTransitions?(n.$slides.eq(e).css({zIndex:n.options.zIndex}),n.$slides.eq(e).animate({opacity:1},n.options.speed,n.options.easing,t)):(n.applyTransition(e),n.$slides.eq(e).css({opacity:1,zIndex:n.options.zIndex}),t&&setTimeout(function(){n.disableTransition(e),t.call()},n.options.speed))},a.prototype.fadeSlideOut=function(e){var t=this;!1===t.cssTransitions?t.$slides.eq(e).animate({opacity:0,zIndex:t.options.zIndex-2},t.options.speed,t.options.easing):(t.applyTransition(e),t.$slides.eq(e).css({opacity:0,zIndex:t.options.zIndex-2}))},a.prototype.filterSlides=a.prototype.slickFilter=function(e){var t=this;null!==e&&(t.$slidesCache=t.$slides,t.unload(),t.$slideTrack.children(this.options.slide).detach(),t.$slidesCache.filter(e).appendTo(t.$slideTrack),t.reinit())},a.prototype.focusHandler=function(){var n=this;n.$slider.off("focus.slick blur.slick").on("focus.slick blur.slick","*",function(e){e.stopImmediatePropagation();var t=c(this);setTimeout(function(){n.options.pauseOnFocus&&(n.focussed=t.is(":focus"),n.autoPlay())},0)})},a.prototype.getCurrent=a.prototype.slickCurrentSlide=function(){return this.currentSlide},a.prototype.getDotCount=function(){var e=this,t=0,n=0,i=0;if(!0===e.options.infinite)if(e.slideCount<=e.options.slidesToShow)++i;else for(;t<e.slideCount;)++i,t=n+e.options.slidesToScroll,n+=e.options.slidesToScroll<=e.options.slidesToShow?e.options.slidesToScroll:e.options.slidesToShow;else if(!0===e.options.centerMode)i=e.slideCount;else if(e.options.asNavFor)for(;t<e.slideCount;)++i,t=n+e.options.slidesToScroll,n+=e.options.slidesToScroll<=e.options.slidesToShow?e.options.slidesToScroll:e.options.slidesToShow;else i=1+Math.ceil((e.slideCount-e.options.slidesToShow)/e.options.slidesToScroll);return i-1},a.prototype.getLeft=function(e){var t,n,i,r,o=this,s=0;return o.slideOffset=0,n=o.$slides.first().outerHeight(!0),!0===o.options.infinite?(o.slideCount>o.options.slidesToShow&&(o.slideOffset=o.slideWidth*o.options.slidesToShow*-1,r=-1,!0===o.options.vertical&&!0===o.options.centerMode&&(2===o.options.slidesToShow?r=-1.5:1===o.options.slidesToShow&&(r=-2)),s=n*o.options.slidesToShow*r),o.slideCount%o.options.slidesToScroll!=0&&e+o.options.slidesToScroll>o.slideCount&&o.slideCount>o.options.slidesToShow&&(e>o.slideCount?(o.slideOffset=(o.options.slidesToShow-(e-o.slideCount))*o.slideWidth*-1,s=(o.options.slidesToShow-(e-o.slideCount))*n*-1):(o.slideOffset=o.slideCount%o.options.slidesToScroll*o.slideWidth*-1,s=o.slideCount%o.options.slidesToScroll*n*-1))):e+o.options.slidesToShow>o.slideCount&&(o.slideOffset=(e+o.options.slidesToShow-o.slideCount)*o.slideWidth,s=(e+o.options.slidesToShow-o.slideCount)*n),o.slideCount<=o.options.slidesToShow&&(s=o.slideOffset=0),!0===o.options.centerMode&&o.slideCount<=o.options.slidesToShow?o.slideOffset=o.slideWidth*Math.floor(o.options.slidesToShow)/2-o.slideWidth*o.slideCount/2:!0===o.options.centerMode&&!0===o.options.infinite?o.slideOffset+=o.slideWidth*Math.floor(o.options.slidesToShow/2)-o.slideWidth:!0===o.options.centerMode&&(o.slideOffset=0,o.slideOffset+=o.slideWidth*Math.floor(o.options.slidesToShow/2)),t=!1===o.options.vertical?e*o.slideWidth*-1+o.slideOffset:e*n*-1+s,!0===o.options.variableWidth&&(i=o.slideCount<=o.options.slidesToShow||!1===o.options.infinite?o.$slideTrack.children(".slick-slide").eq(e):o.$slideTrack.children(".slick-slide").eq(e+o.options.slidesToShow),t=!0===o.options.rtl?i[0]?-1*(o.$slideTrack.width()-i[0].offsetLeft-i.width()):0:i[0]?-1*i[0].offsetLeft:0,!0===o.options.centerMode&&(i=o.slideCount<=o.options.slidesToShow||!1===o.options.infinite?o.$slideTrack.children(".slick-slide").eq(e):o.$slideTrack.children(".slick-slide").eq(e+o.options.slidesToShow+1),t=!0===o.options.rtl?i[0]?-1*(o.$slideTrack.width()-i[0].offsetLeft-i.width()):0:i[0]?-1*i[0].offsetLeft:0,t+=(o.$list.width()-i.outerWidth())/2)),t},a.prototype.getOption=a.prototype.slickGetOption=function(e){return this.options[e]},a.prototype.getNavigableIndexes=function(){var e,t=this,n=0,i=0,r=[];for(!1===t.options.infinite?e=t.slideCount:(n=-1*t.options.slidesToScroll,i=-1*t.options.slidesToScroll,e=2*t.slideCount);n<e;)r.push(n),n=i+t.options.slidesToScroll,i+=t.options.slidesToScroll<=t.options.slidesToShow?t.options.slidesToScroll:t.options.slidesToShow;return r},a.prototype.getSlick=function(){return this},a.prototype.getSlideCount=function(){var n,i,r=this;return i=!0===r.options.centerMode?r.slideWidth*Math.floor(r.options.slidesToShow/2):0,!0===r.options.swipeToSlide?(r.$slideTrack.find(".slick-slide").each(function(e,t){if(t.offsetLeft-i+c(t).outerWidth()/2>-1*r.swipeLeft)return n=t,!1}),Math.abs(c(n).attr("data-slick-index")-r.currentSlide)||1):r.options.slidesToScroll},a.prototype.goTo=a.prototype.slickGoTo=function(e,t){this.changeSlide({data:{message:"index",index:parseInt(e)}},t)},a.prototype.init=function(e){var t=this;c(t.$slider).hasClass("slick-initialized")||(c(t.$slider).addClass("slick-initialized"),t.buildRows(),t.buildOut(),t.setProps(),t.startLoad(),t.loadSlider(),t.initializeEvents(),t.updateArrows(),t.updateDots(),t.checkResponsive(!0),t.focusHandler()),e&&t.$slider.trigger("init",[t]),!0===t.options.accessibility&&t.initADA(),t.options.autoplay&&(t.paused=!1,t.autoPlay())},a.prototype.initADA=function(){var i=this,n=Math.ceil(i.slideCount/i.options.slidesToShow),r=i.getNavigableIndexes().filter(function(e){return 0<=e&&e<i.slideCount});i.$slides.add(i.$slideTrack.find(".slick-cloned")).attr({"aria-hidden":"true",tabindex:"-1"}).find("a, input, button, select").attr({tabindex:"-1"}),null!==i.$dots&&(i.$slides.not(i.$slideTrack.find(".slick-cloned")).each(function(e){var t=r.indexOf(e);if(c(this).attr({role:"tabpanel",id:"slick-slide"+i.instanceUid+e,tabindex:-1}),-1!==t){var n="slick-slide-control"+i.instanceUid+t;c("#"+n).length&&c(this).attr({"aria-describedby":n})}}),i.$dots.attr("role","tablist").find("li").each(function(e){var t=r[e];c(this).attr({role:"presentation"}),c(this).find("button").first().attr({role:"tab",id:"slick-slide-control"+i.instanceUid+e,"aria-controls":"slick-slide"+i.instanceUid+t,"aria-label":e+1+" of "+n,"aria-selected":null,tabindex:"-1"})}).eq(i.currentSlide).find("button").attr({"aria-selected":"true",tabindex:"0"}).end());for(var e=i.currentSlide,t=e+i.options.slidesToShow;e<t;e++)i.options.focusOnChange?i.$slides.eq(e).attr({tabindex:"0"}):i.$slides.eq(e).removeAttr("tabindex");i.activateADA()},a.prototype.initArrowEvents=function(){var e=this;!0===e.options.arrows&&e.slideCount>e.options.slidesToShow&&(e.$prevArrow.off("click.slick").on("click.slick",{message:"previous"},e.changeSlide),e.$nextArrow.off("click.slick").on("click.slick",{message:"next"},e.changeSlide),!0===e.options.accessibility&&(e.$prevArrow.on("keydown.slick",e.keyHandler),e.$nextArrow.on("keydown.slick",e.keyHandler)))},a.prototype.initDotEvents=function(){var e=this;!0===e.options.dots&&e.slideCount>e.options.slidesToShow&&(c("li",e.$dots).on("click.slick",{message:"index"},e.changeSlide),!0===e.options.accessibility&&e.$dots.on("keydown.slick",e.keyHandler)),!0===e.options.dots&&!0===e.options.pauseOnDotsHover&&e.slideCount>e.options.slidesToShow&&c("li",e.$dots).on("mouseenter.slick",c.proxy(e.interrupt,e,!0)).on("mouseleave.slick",c.proxy(e.interrupt,e,!1))},a.prototype.initSlideEvents=function(){var e=this;e.options.pauseOnHover&&(e.$list.on("mouseenter.slick",c.proxy(e.interrupt,e,!0)),e.$list.on("mouseleave.slick",c.proxy(e.interrupt,e,!1)))},a.prototype.initializeEvents=function(){var e=this;e.initArrowEvents(),e.initDotEvents(),e.initSlideEvents(),e.$list.on("touchstart.slick mousedown.slick",{action:"start"},e.swipeHandler),e.$list.on("touchmove.slick mousemove.slick",{action:"move"},e.swipeHandler),e.$list.on("touchend.slick mouseup.slick",{action:"end"},e.swipeHandler),e.$list.on("touchcancel.slick mouseleave.slick",{action:"end"},e.swipeHandler),e.$list.on("click.slick",e.clickHandler),c(document).on(e.visibilityChange,c.proxy(e.visibility,e)),!0===e.options.accessibility&&e.$list.on("keydown.slick",e.keyHandler),!0===e.options.focusOnSelect&&c(e.$slideTrack).children().on("click.slick",e.selectHandler),c(window).on("orientationchange.slick.slick-"+e.instanceUid,c.proxy(e.orientationChange,e)),c(window).on("resize.slick.slick-"+e.instanceUid,c.proxy(e.resize,e)),c("[draggable!=true]",e.$slideTrack).on("dragstart",e.preventDefault),c(window).on("load.slick.slick-"+e.instanceUid,e.setPosition),c(e.setPosition)},a.prototype.initUI=function(){var e=this;!0===e.options.arrows&&e.slideCount>e.options.slidesToShow&&(e.$prevArrow.show(),e.$nextArrow.show()),!0===e.options.dots&&e.slideCount>e.options.slidesToShow&&e.$dots.show()},a.prototype.keyHandler=function(e){var t=this;e.target.tagName.match("TEXTAREA|INPUT|SELECT")||(37===e.keyCode&&!0===t.options.accessibility?t.changeSlide({data:{message:!0===t.options.rtl?"next":"previous"}}):39===e.keyCode&&!0===t.options.accessibility&&t.changeSlide({data:{message:!0===t.options.rtl?"previous":"next"}}))},a.prototype.lazyLoad=function(){function e(e){c("img[data-lazy]",e).each(function(){var e=c(this),t=c(this).attr("data-lazy"),n=c(this).attr("data-srcset"),i=c(this).attr("data-sizes")||o.$slider.attr("data-sizes"),r=document.createElement("img");r.onload=function(){e.animate({opacity:0},100,function(){n&&(e.attr("srcset",n),i&&e.attr("sizes",i)),e.attr("src",t).animate({opacity:1},200,function(){e.removeAttr("data-lazy data-srcset data-sizes").removeClass("slick-loading")}),o.$slider.trigger("lazyLoaded",[o,e,t])})},r.onerror=function(){e.removeAttr("data-lazy").removeClass("slick-loading").addClass("slick-lazyload-error"),o.$slider.trigger("lazyLoadError",[o,e,t])},r.src=t})}var t,n,i,o=this;if(!0===o.options.centerMode?!0===o.options.infinite?i=(n=o.currentSlide+(o.options.slidesToShow/2+1))+o.options.slidesToShow+2:(n=Math.max(0,o.currentSlide-(o.options.slidesToShow/2+1)),i=o.options.slidesToShow/2+1+2+o.currentSlide):(n=o.options.infinite?o.options.slidesToShow+o.currentSlide:o.currentSlide,i=Math.ceil(n+o.options.slidesToShow),!0===o.options.fade&&(0<n&&n--,i<=o.slideCount&&i++)),t=o.$slider.find(".slick-slide").slice(n,i),"anticipated"===o.options.lazyLoad)for(var r=n-1,s=i,a=o.$slider.find(".slick-slide"),l=0;l<o.options.slidesToScroll;l++)r<0&&(r=o.slideCount-1),t=(t=t.add(a.eq(r))).add(a.eq(s)),r--,s++;e(t),o.slideCount<=o.options.slidesToShow?e(o.$slider.find(".slick-slide")):o.currentSlide>=o.slideCount-o.options.slidesToShow?e(o.$slider.find(".slick-cloned").slice(0,o.options.slidesToShow)):0===o.currentSlide&&e(o.$slider.find(".slick-cloned").slice(-1*o.options.slidesToShow))},a.prototype.loadSlider=function(){var e=this;e.setPosition(),e.$slideTrack.css({opacity:1}),e.$slider.removeClass("slick-loading"),e.initUI(),"progressive"===e.options.lazyLoad&&e.progressiveLazyLoad()},a.prototype.next=a.prototype.slickNext=function(){this.changeSlide({data:{message:"next"}})},a.prototype.orientationChange=function(){var e=this;e.checkResponsive(),e.setPosition()},a.prototype.pause=a.prototype.slickPause=function(){var e=this;e.autoPlayClear(),e.paused=!0},a.prototype.play=a.prototype.slickPlay=function(){var e=this;e.autoPlay(),e.options.autoplay=!0,e.paused=!1,e.focussed=!1,e.interrupted=!1},a.prototype.postSlide=function(e){var t=this;t.unslicked||(t.$slider.trigger("afterChange",[t,e]),t.animating=!1,t.slideCount>t.options.slidesToShow&&t.setPosition(),t.swipeLeft=null,t.options.autoplay&&t.autoPlay(),!0===t.options.accessibility&&(t.initADA(),t.options.focusOnChange&&c(t.$slides.get(t.currentSlide)).attr("tabindex",0).focus()))},a.prototype.prev=a.prototype.slickPrev=function(){this.changeSlide({data:{message:"previous"}})},a.prototype.preventDefault=function(e){e.preventDefault()},a.prototype.progressiveLazyLoad=function(e){e=e||1;var t,n,i,r,o,s=this,a=c("img[data-lazy]",s.$slider);a.length?(t=a.first(),n=t.attr("data-lazy"),i=t.attr("data-srcset"),r=t.attr("data-sizes")||s.$slider.attr("data-sizes"),(o=document.createElement("img")).onload=function(){i&&(t.attr("srcset",i),r&&t.attr("sizes",r)),t.attr("src",n).removeAttr("data-lazy data-srcset data-sizes").removeClass("slick-loading"),!0===s.options.adaptiveHeight&&s.setPosition(),s.$slider.trigger("lazyLoaded",[s,t,n]),s.progressiveLazyLoad()},o.onerror=function(){e<3?setTimeout(function(){s.progressiveLazyLoad(e+1)},500):(t.removeAttr("data-lazy").removeClass("slick-loading").addClass("slick-lazyload-error"),s.$slider.trigger("lazyLoadError",[s,t,n]),s.progressiveLazyLoad())},o.src=n):s.$slider.trigger("allImagesLoaded",[s])},a.prototype.refresh=function(e){var t,n,i=this;n=i.slideCount-i.options.slidesToShow,!i.options.infinite&&i.currentSlide>n&&(i.currentSlide=n),i.slideCount<=i.options.slidesToShow&&(i.currentSlide=0),t=i.currentSlide,i.destroy(!0),c.extend(i,i.initials,{currentSlide:t}),i.init(),e||i.changeSlide({data:{message:"index",index:t}},!1)},a.prototype.registerBreakpoints=function(){var e,t,n,i=this,r=i.options.responsive||null;if("array"===c.type(r)&&r.length){for(e in i.respondTo=i.options.respondTo||"window",r)if(n=i.breakpoints.length-1,r.hasOwnProperty(e)){for(t=r[e].breakpoint;0<=n;)i.breakpoints[n]&&i.breakpoints[n]===t&&i.breakpoints.splice(n,1),n--;i.breakpoints.push(t),i.breakpointSettings[t]=r[e].settings}i.breakpoints.sort(function(e,t){return i.options.mobileFirst?e-t:t-e})}},a.prototype.reinit=function(){var e=this;e.$slides=e.$slideTrack.children(e.options.slide).addClass("slick-slide"),e.slideCount=e.$slides.length,e.currentSlide>=e.slideCount&&0!==e.currentSlide&&(e.currentSlide=e.currentSlide-e.options.slidesToScroll),e.slideCount<=e.options.slidesToShow&&(e.currentSlide=0),e.registerBreakpoints(),e.setProps(),e.setupInfinite(),e.buildArrows(),e.updateArrows(),e.initArrowEvents(),e.buildDots(),e.updateDots(),e.initDotEvents(),e.cleanUpSlideEvents(),e.initSlideEvents(),e.checkResponsive(!1,!0),!0===e.options.focusOnSelect&&c(e.$slideTrack).children().on("click.slick",e.selectHandler),e.setSlideClasses("number"==typeof e.currentSlide?e.currentSlide:0),e.setPosition(),e.focusHandler(),e.paused=!e.options.autoplay,e.autoPlay(),e.$slider.trigger("reInit",[e])},a.prototype.resize=function(){var e=this;c(window).width()!==e.windowWidth&&(clearTimeout(e.windowDelay),e.windowDelay=window.setTimeout(function(){e.windowWidth=c(window).width(),e.checkResponsive(),e.unslicked||e.setPosition()},50))},a.prototype.removeSlide=a.prototype.slickRemove=function(e,t,n){var i=this;if(e="boolean"==typeof e?!0===(t=e)?0:i.slideCount-1:!0===t?--e:e,i.slideCount<1||e<0||e>i.slideCount-1)return!1;i.unload(),!0===n?i.$slideTrack.children().remove():i.$slideTrack.children(this.options.slide).eq(e).remove(),i.$slides=i.$slideTrack.children(this.options.slide),i.$slideTrack.children(this.options.slide).detach(),i.$slideTrack.append(i.$slides),i.$slidesCache=i.$slides,i.reinit()},a.prototype.setCSS=function(e){var t,n,i=this,r={};!0===i.options.rtl&&(e=-e),t="left"==i.positionProp?Math.ceil(e)+"px":"0px",n="top"==i.positionProp?Math.ceil(e)+"px":"0px",r[i.positionProp]=e,!1===i.transformsEnabled||(!(r={})===i.cssTransitions?r[i.animType]="translate("+t+", "+n+")":r[i.animType]="translate3d("+t+", "+n+", 0px)"),i.$slideTrack.css(r)},a.prototype.setDimensions=function(){var e=this;!1===e.options.vertical?!0===e.options.centerMode&&e.$list.css({padding:"0px "+e.options.centerPadding}):(e.$list.height(e.$slides.first().outerHeight(!0)*e.options.slidesToShow),!0===e.options.centerMode&&e.$list.css({padding:e.options.centerPadding+" 0px"})),e.listWidth=e.$list.width(),e.listHeight=e.$list.height(),!1===e.options.vertical&&!1===e.options.variableWidth?(e.slideWidth=Math.ceil(e.listWidth/e.options.slidesToShow),e.$slideTrack.width(Math.ceil(e.slideWidth*e.$slideTrack.children(".slick-slide").length))):!0===e.options.variableWidth?e.$slideTrack.width(5e3*e.slideCount):(e.slideWidth=Math.ceil(e.listWidth),e.$slideTrack.height(Math.ceil(e.$slides.first().outerHeight(!0)*e.$slideTrack.children(".slick-slide").length)));var t=e.$slides.first().outerWidth(!0)-e.$slides.first().width();!1===e.options.variableWidth&&e.$slideTrack.children(".slick-slide").width(e.slideWidth-t)},a.prototype.setFade=function(){var n,i=this;i.$slides.each(function(e,t){n=i.slideWidth*e*-1,!0===i.options.rtl?c(t).css({position:"relative",right:n,top:0,zIndex:i.options.zIndex-2,opacity:0}):c(t).css({position:"relative",left:n,top:0,zIndex:i.options.zIndex-2,opacity:0})}),i.$slides.eq(i.currentSlide).css({zIndex:i.options.zIndex-1,opacity:1})},a.prototype.setHeight=function(){var e=this;if(1===e.options.slidesToShow&&!0===e.options.adaptiveHeight&&!1===e.options.vertical){var t=e.$slides.eq(e.currentSlide).outerHeight(!0);e.$list.css("height",t)}},a.prototype.setOption=a.prototype.slickSetOption=function(e,t,n){var i,r,o,s,a,l=this,u=!1;if("object"===c.type(e)?(o=e,u=t,a="multiple"):"string"===c.type(e)&&(s=t,u=n,"responsive"===(o=e)&&"array"===c.type(t)?a="responsive":void 0!==t&&(a="single")),"single"===a)l.options[o]=s;else if("multiple"===a)c.each(o,function(e,t){l.options[e]=t});else if("responsive"===a)for(r in s)if("array"!==c.type(l.options.responsive))l.options.responsive=[s[r]];else{for(i=l.options.responsive.length-1;0<=i;)l.options.responsive[i].breakpoint===s[r].breakpoint&&l.options.responsive.splice(i,1),i--;l.options.responsive.push(s[r])}u&&(l.unload(),l.reinit())},a.prototype.setPosition=function(){var e=this;e.setDimensions(),e.setHeight(),!1===e.options.fade?e.setCSS(e.getLeft(e.currentSlide)):e.setFade(),e.$slider.trigger("setPosition",[e])},a.prototype.setProps=function(){var e=this,t=document.body.style;e.positionProp=!0===e.options.vertical?"top":"left","top"===e.positionProp?e.$slider.addClass("slick-vertical"):e.$slider.removeClass("slick-vertical"),t.WebkitTransition===undefined&&t.MozTransition===undefined&&t.msTransition===undefined||!0===e.options.useCSS&&(e.cssTransitions=!0),e.options.fade&&("number"==typeof e.options.zIndex?e.options.zIndex<3&&(e.options.zIndex=3):e.options.zIndex=e.defaults.zIndex),t.OTransform!==undefined&&(e.animType="OTransform",e.transformType="-o-transform",e.transitionType="OTransition",t.perspectiveProperty===undefined&&t.webkitPerspective===undefined&&(e.animType=!1)),t.MozTransform!==undefined&&(e.animType="MozTransform",e.transformType="-moz-transform",e.transitionType="MozTransition",t.perspectiveProperty===undefined&&t.MozPerspective===undefined&&(e.animType=!1)),t.webkitTransform!==undefined&&(e.animType="webkitTransform",e.transformType="-webkit-transform",e.transitionType="webkitTransition",t.perspectiveProperty===undefined&&t.webkitPerspective===undefined&&(e.animType=!1)),t.msTransform!==undefined&&(e.animType="msTransform",e.transformType="-ms-transform",e.transitionType="msTransition",t.msTransform===undefined&&(e.animType=!1)),t.transform!==undefined&&!1!==e.animType&&(e.animType="transform",e.transformType="transform",e.transitionType="transition"),e.transformsEnabled=e.options.useTransform&&null!==e.animType&&!1!==e.animType},a.prototype.setSlideClasses=function(e){var t,n,i,r,o=this;if(n=o.$slider.find(".slick-slide").removeClass("slick-active slick-center slick-current").attr("aria-hidden","true"),o.$slides.eq(e).addClass("slick-current"),!0===o.options.centerMode){var s=o.options.slidesToShow%2==0?1:0;t=Math.floor(o.options.slidesToShow/2),!0===o.options.infinite&&(t<=e&&e<=o.slideCount-1-t?o.$slides.slice(e-t+s,e+t+1).addClass("slick-active").attr("aria-hidden","false"):(i=o.options.slidesToShow+e,n.slice(i-t+1+s,i+t+2).addClass("slick-active").attr("aria-hidden","false")),0===e?n.eq(n.length-1-o.options.slidesToShow).addClass("slick-center"):e===o.slideCount-1&&n.eq(o.options.slidesToShow).addClass("slick-center")),o.$slides.eq(e).addClass("slick-center")}else 0<=e&&e<=o.slideCount-o.options.slidesToShow?o.$slides.slice(e,e+o.options.slidesToShow).addClass("slick-active").attr("aria-hidden","false"):n.length<=o.options.slidesToShow?n.addClass("slick-active").attr("aria-hidden","false"):(r=o.slideCount%o.options.slidesToShow,i=!0===o.options.infinite?o.options.slidesToShow+e:e,o.options.slidesToShow==o.options.slidesToScroll&&o.slideCount-e<o.options.slidesToShow?n.slice(i-(o.options.slidesToShow-r),i+r).addClass("slick-active").attr("aria-hidden","false"):n.slice(i,i+o.options.slidesToShow).addClass("slick-active").attr("aria-hidden","false"));"ondemand"!==o.options.lazyLoad&&"anticipated"!==o.options.lazyLoad||o.lazyLoad()},a.prototype.setupInfinite=function(){var e,t,n,i=this;if(!0===i.options.fade&&(i.options.centerMode=!1),!0===i.options.infinite&&!1===i.options.fade&&(t=null,i.slideCount>i.options.slidesToShow)){for(n=!0===i.options.centerMode?i.options.slidesToShow+1:i.options.slidesToShow,e=i.slideCount;e>i.slideCount-n;e-=1)t=e-1,c(i.$slides[t]).clone(!0).attr("id","").attr("data-slick-index",t-i.slideCount).prependTo(i.$slideTrack).addClass("slick-cloned");for(e=0;e<n+i.slideCount;e+=1)t=e,c(i.$slides[t]).clone(!0).attr("id","").attr("data-slick-index",t+i.slideCount).appendTo(i.$slideTrack).addClass("slick-cloned");i.$slideTrack.find(".slick-cloned").find("[id]").each(function(){c(this).attr("id","")})}},a.prototype.interrupt=function(e){var t=this;e||t.autoPlay(),t.interrupted=e},a.prototype.selectHandler=function(e){var t=this,n=c(e.target).is(".slick-slide")?c(e.target):c(e.target).parents(".slick-slide"),i=parseInt(n.attr("data-slick-index"));i||(i=0),t.slideCount<=t.options.slidesToShow?t.slideHandler(i,!1,!0):t.slideHandler(i)},a.prototype.slideHandler=function(e,t,n){var i,r,o,s,a,l=null,u=this;if(t=t||!1,!(!0===u.animating&&!0===u.options.waitForAnimate||!0===u.options.fade&&u.currentSlide===e))if(!1===t&&u.asNavFor(e),i=e,l=u.getLeft(i),s=u.getLeft(u.currentSlide),u.currentLeft=null===u.swipeLeft?s:u.swipeLeft,!1===u.options.infinite&&!1===u.options.centerMode&&(e<0||e>u.getDotCount()*u.options.slidesToScroll))!1===u.options.fade&&(i=u.currentSlide,!0!==n&&u.slideCount>u.options.slidesToShow?u.animateSlide(s,function(){u.postSlide(i)}):u.postSlide(i));else if(!1===u.options.infinite&&!0===u.options.centerMode&&(e<0||e>u.slideCount-u.options.slidesToScroll))!1===u.options.fade&&(i=u.currentSlide,!0!==n&&u.slideCount>u.options.slidesToShow?u.animateSlide(s,function(){u.postSlide(i)}):u.postSlide(i));else{if(u.options.autoplay&&clearInterval(u.autoPlayTimer),r=i<0?u.slideCount%u.options.slidesToScroll!=0?u.slideCount-u.slideCount%u.options.slidesToScroll:u.slideCount+i:i>=u.slideCount?u.slideCount%u.options.slidesToScroll!=0?0:i-u.slideCount:i,u.animating=!0,u.$slider.trigger("beforeChange",[u,u.currentSlide,r]),o=u.currentSlide,u.currentSlide=r,u.setSlideClasses(u.currentSlide),u.options.asNavFor&&(a=(a=u.getNavTarget()).slick("getSlick")).slideCount<=a.options.slidesToShow&&a.setSlideClasses(u.currentSlide),u.updateDots(),u.updateArrows(),!0===u.options.fade)return!0!==n?(u.fadeSlideOut(o),u.fadeSlide(r,function(){u.postSlide(r)})):u.postSlide(r),void u.animateHeight();!0!==n&&u.slideCount>u.options.slidesToShow?u.animateSlide(l,function(){u.postSlide(r)}):u.postSlide(r)}},a.prototype.startLoad=function(){var e=this;!0===e.options.arrows&&e.slideCount>e.options.slidesToShow&&(e.$prevArrow.hide(),e.$nextArrow.hide()),!0===e.options.dots&&e.slideCount>e.options.slidesToShow&&e.$dots.hide(),e.$slider.addClass("slick-loading")},a.prototype.swipeDirection=function(){var e,t,n,i,r=this;return e=r.touchObject.startX-r.touchObject.curX,t=r.touchObject.startY-r.touchObject.curY,n=Math.atan2(t,e),(i=Math.round(180*n/Math.PI))<0&&(i=360-Math.abs(i)),i<=45&&0<=i?!1===r.options.rtl?"left":"right":i<=360&&315<=i?!1===r.options.rtl?"left":"right":135<=i&&i<=225?!1===r.options.rtl?"right":"left":!0===r.options.verticalSwiping?35<=i&&i<=135?"down":"up":"vertical"},a.prototype.swipeEnd=function(){var e,t,n=this;if(n.dragging=!1,n.swiping=!1,n.scrolling)return n.scrolling=!1;if(n.interrupted=!1,n.shouldClick=!(10<n.touchObject.swipeLength),n.touchObject.curX===undefined)return!1;if(!0===n.touchObject.edgeHit&&n.$slider.trigger("edge",[n,n.swipeDirection()]),n.touchObject.swipeLength>=n.touchObject.minSwipe){switch(t=n.swipeDirection()){case"left":case"down":e=n.options.swipeToSlide?n.checkNavigable(n.currentSlide+n.getSlideCount()):n.currentSlide+n.getSlideCount(),n.currentDirection=0;break;case"right":case"up":e=n.options.swipeToSlide?n.checkNavigable(n.currentSlide-n.getSlideCount()):n.currentSlide-n.getSlideCount(),n.currentDirection=1}"vertical"!=t&&(n.slideHandler(e),n.touchObject={},n.$slider.trigger("swipe",[n,t]))}else n.touchObject.startX!==n.touchObject.curX&&(n.slideHandler(n.currentSlide),n.touchObject={})},a.prototype.swipeHandler=function(e){var t=this;if(!(!1===t.options.swipe||"ontouchend"in document&&!1===t.options.swipe||!1===t.options.draggable&&-1!==e.type.indexOf("mouse")))switch(t.touchObject.fingerCount=e.originalEvent&&e.originalEvent.touches!==undefined?e.originalEvent.touches.length:1,t.touchObject.minSwipe=t.listWidth/t.options.touchThreshold,!0===t.options.verticalSwiping&&(t.touchObject.minSwipe=t.listHeight/t.options.touchThreshold),e.data.action){case"start":t.swipeStart(e);break;case"move":t.swipeMove(e);break;case"end":t.swipeEnd(e)}},a.prototype.swipeMove=function(e){var t,n,i,r,o,s,a=this;return o=e.originalEvent!==undefined?e.originalEvent.touches:null,!(!a.dragging||a.scrolling||o&&1!==o.length)&&(t=a.getLeft(a.currentSlide),a.touchObject.curX=o!==undefined?o[0].pageX:e.clientX,a.touchObject.curY=o!==undefined?o[0].pageY:e.clientY,a.touchObject.swipeLength=Math.round(Math.sqrt(Math.pow(a.touchObject.curX-a.touchObject.startX,2))),s=Math.round(Math.sqrt(Math.pow(a.touchObject.curY-a.touchObject.startY,2))),!a.options.verticalSwiping&&!a.swiping&&4<s?!(a.scrolling=!0):(!0===a.options.verticalSwiping&&(a.touchObject.swipeLength=s),n=a.swipeDirection(),e.originalEvent!==undefined&&4<a.touchObject.swipeLength&&(a.swiping=!0,e.preventDefault()),r=(!1===a.options.rtl?1:-1)*(a.touchObject.curX>a.touchObject.startX?1:-1),!0===a.options.verticalSwiping&&(r=a.touchObject.curY>a.touchObject.startY?1:-1),i=a.touchObject.swipeLength,(a.touchObject.edgeHit=!1)===a.options.infinite&&(0===a.currentSlide&&"right"===n||a.currentSlide>=a.getDotCount()&&"left"===n)&&(i=a.touchObject.swipeLength*a.options.edgeFriction,a.touchObject.edgeHit=!0),!1===a.options.vertical?a.swipeLeft=t+i*r:a.swipeLeft=t+i*(a.$list.height()/a.listWidth)*r,!0===a.options.verticalSwiping&&(a.swipeLeft=t+i*r),!0!==a.options.fade&&!1!==a.options.touchMove&&(!0===a.animating?(a.swipeLeft=null,!1):void a.setCSS(a.swipeLeft))))},a.prototype.swipeStart=function(e){var t,n=this;if(n.interrupted=!0,1!==n.touchObject.fingerCount||n.slideCount<=n.options.slidesToShow)return!(n.touchObject={});e.originalEvent!==undefined&&e.originalEvent.touches!==undefined&&(t=e.originalEvent.touches[0]),n.touchObject.startX=n.touchObject.curX=t!==undefined?t.pageX:e.clientX,n.touchObject.startY=n.touchObject.curY=t!==undefined?t.pageY:e.clientY,n.dragging=!0},a.prototype.unfilterSlides=a.prototype.slickUnfilter=function(){var e=this;null!==e.$slidesCache&&(e.unload(),e.$slideTrack.children(this.options.slide).detach(),e.$slidesCache.appendTo(e.$slideTrack),e.reinit())},a.prototype.unload=function(){var e=this;c(".slick-cloned",e.$slider).remove(),e.$dots&&e.$dots.remove(),e.$prevArrow&&e.htmlExpr.test(e.options.prevArrow)&&e.$prevArrow.remove(),e.$nextArrow&&e.htmlExpr.test(e.options.nextArrow)&&e.$nextArrow.remove(),e.$slides.removeClass("slick-slide slick-active slick-visible slick-current").attr("aria-hidden","true").css("width","")},a.prototype.unslick=function(e){var t=this;t.$slider.trigger("unslick",[t,e]),t.destroy()},a.prototype.updateArrows=function(){var e=this;Math.floor(e.options.slidesToShow/2),!0===e.options.arrows&&e.slideCount>e.options.slidesToShow&&!e.options.infinite&&(e.$prevArrow.removeClass("slick-disabled").attr("aria-disabled","false"),e.$nextArrow.removeClass("slick-disabled").attr("aria-disabled","false"),0===e.currentSlide?(e.$prevArrow.addClass("slick-disabled").attr("aria-disabled","true"),e.$nextArrow.removeClass("slick-disabled").attr("aria-disabled","false")):e.currentSlide>=e.slideCount-e.options.slidesToShow&&!1===e.options.centerMode?(e.$nextArrow.addClass("slick-disabled").attr("aria-disabled","true"),e.$prevArrow.removeClass("slick-disabled").attr("aria-disabled","false")):e.currentSlide>=e.slideCount-1&&!0===e.options.centerMode&&(e.$nextArrow.addClass("slick-disabled").attr("aria-disabled","true"),e.$prevArrow.removeClass("slick-disabled").attr("aria-disabled","false")))},a.prototype.updateDots=function(){var e=this;null!==e.$dots&&(e.$dots.find("li").removeClass("slick-active").end(),e.$dots.find("li").eq(Math.floor(e.currentSlide/e.options.slidesToScroll)).addClass("slick-active"))},a.prototype.visibility=function(){var e=this;e.options.autoplay&&(document[e.hidden]?e.interrupted=!0:e.interrupted=!1)},c.fn.slick=function(e){var t,n,i=this,r=e,o=Array.prototype.slice.call(arguments,1),s=i.length;for(t=0;t<s;t++)if("object"==typeof r||void 0===r?i[t].slick=new a(i[t],r):n=i[t].slick[r].apply(i[t].slick,o),void 0!==n)return n
;return i}}),function(e){var t;"undefined"!=typeof window?t=window:"undefined"!=typeof self&&(t=self),t.ALGOLIA_MIGRATION_LAYER=e()}(function(){return function o(s,a,l){function u(n,e){if(!a[n]){if(!s[n]){var t="function"==typeof require&&require;if(!e&&t)return t(n,!0);if(c)return c(n,!0);var i=new Error("Cannot find module '"+n+"'");throw i.code="MODULE_NOT_FOUND",i}var r=a[n]={exports:{}};s[n][0].call(r.exports,function(e){var t=s[n][1][e];return u(t||e)},r,r.exports,o,s,a,l)}return a[n].exports}for(var c="function"==typeof require&&require,e=0;e<l.length;e++)u(l[e]);return u}({1:[function(e,t){function o(e,t){for(var n in t)e.setAttribute(n,t[n])}function s(e,t){e.onload=function(){this.onerror=this.onload=null,t(null,e)},e.onerror=function(){this.onerror=this.onload=null,t(new Error("Failed to load "+this.src),e)}}function a(e,t){e.onreadystatechange=function(){"complete"!=this.readyState&&"loaded"!=this.readyState||(this.onreadystatechange=null,t(null,e))}}t.exports=function(e,t,n){var i=document.head||document.getElementsByTagName("head")[0],r=document.createElement("script");"function"==typeof t&&(n=t,t={}),t=t||{},n=n||function(){},r.type=t.type||"text/javascript",r.charset=t.charset||"utf8",r.async=!("async"in t)||!!t.async,r.src=e,t.attrs&&o(r,t.attrs),t.text&&(r.text=""+t.text),("onload"in r?s:a)(r,n),r.onload||s(r,n),i.appendChild(r)}},{}],2:[function(e,t){"use strict";function n(e){for(var t=new RegExp("cdn\\.jsdelivr\\.net/algoliasearch/latest/"+e.replace(".","\\.")+"(?:\\.min)?\\.js$"),n=document.getElementsByTagName("script"),i=!1,r=0,o=n.length;r<o;r++)if(n[r].src&&t.test(n[r].src)){i=!0;break}return i}t.exports=n},{}],3:[function(o,e){"use strict";function t(e){var t=o(1),n="//cdn.jsdelivr.net/algoliasearch/2/"+e+".min.js",i="-- AlgoliaSearch `latest` warning --\nWarning, you are using the `latest` version string from jsDelivr to load the AlgoliaSearch library.\nUsing `latest` is no more recommended, you should load //cdn.jsdelivr.net/algoliasearch/2/algoliasearch.min.js\n\nAlso, we updated the AlgoliaSearch JavaScript client to V3. If you want to upgrade,\nplease read our migration guide at https://github.com/algolia/algoliasearch-client-js/wiki/Migration-guide-from-2.x.x-to-3.x.x\n-- /AlgoliaSearch  `latest` warning --";window.console&&(window.console.warn?window.console.warn(i):window.console.log&&window.console.log(i));try{document.write("<script>window.ALGOLIA_SUPPORTS_DOCWRITE = true</script>"),!0===window.ALGOLIA_SUPPORTS_DOCWRITE?(document.write('<script src="'+n+'"></script>'),s("document.write")()):t(n,s("DOMElement"))}catch(r){t(n,s("DOMElement"))}}function s(t){return function(){var e="AlgoliaSearch: loaded V2 script using "+t;window.console&&window.console.log&&window.console.log(e)}}e.exports=t},{1:1}],4:[function(e,t){"use strict";function n(){var e="-- AlgoliaSearch V2 => V3 error --\nYou are trying to use a new version of the AlgoliaSearch JavaScript client with an old notation.\nPlease read our migration guide at https://github.com/algolia/algoliasearch-client-js/wiki/Migration-guide-from-2.x.x-to-3.x.x\n-- /AlgoliaSearch V2 => V3 error --";window.AlgoliaSearch=function(){throw new Error(e)},window.AlgoliaSearchHelper=function(){throw new Error(e)},window.AlgoliaExplainResults=function(){throw new Error(e)}}t.exports=n},{}],5:[function(r){"use strict";function e(e){var t=r(2),n=r(3),i=r(4);t(e)?n(e):i()}e("algoliasearch")},{2:2,3:3,4:4}]},{},[5])(5)}),function(e){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=e();else if("function"==typeof define&&define.amd)define([],e);else{("undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this).algoliasearch=e()}}(function(){var r;return function o(s,a,l){function u(n,e){if(!a[n]){if(!s[n]){var t="function"==typeof require&&require;if(!e&&t)return t(n,!0);if(c)return c(n,!0);var i=new Error("Cannot find module '"+n+"'");throw i.code="MODULE_NOT_FOUND",i}var r=a[n]={exports:{}};s[n][0].call(r.exports,function(e){var t=s[n][1][e];return u(t||e)},r,r.exports,o,s,a,l)}return a[n].exports}for(var c="function"==typeof require&&require,e=0;e<l.length;e++)u(l[e]);return u}({1:[function(a,l,u){(function(n){function e(){return!("undefined"==typeof window||!window.process||"renderer"!==window.process.type)||("undefined"!=typeof document&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||"undefined"!=typeof window&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&31<=parseInt(RegExp.$1,10)||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/))}function t(e){var t=this.useColors;if(e[0]=(t?"%c":"")+this.namespace+(t?" %c":" ")+e[0]+(t?"%c ":" ")+"+"+u.humanize(this.diff),t){var n="color: "+this.color;e.splice(1,0,n,"color: inherit");var i=0,r=0;e[0].replace(/%[a-zA-Z%]/g,function(e){"%%"!==e&&(i++,"%c"===e&&(r=i))}),e.splice(r,0,n)}}function i(){return"object"==typeof console&&console.log&&Function.prototype.apply.call(console.log,console,arguments)}function r(e){try{null==e?u.storage.removeItem("debug"):u.storage.debug=e}catch(t){}}function o(){var e;try{e=u.storage.debug}catch(t){}return!e&&void 0!==n&&"env"in n&&(e=n.env.DEBUG),e}function s(){try{return window.localStorage}catch(e){}}(u=l.exports=a(2)).log=i,u.formatArgs=t,u.save=r,u.load=o,u.useColors=e,u.storage="undefined"!=typeof chrome&&"undefined"!=typeof chrome.storage?chrome.storage.local:s(),u.colors=["lightseagreen","forestgreen","goldenrod","dodgerblue","darkorchid","crimson"],u.formatters.j=function(e){try{return JSON.stringify(e)}catch(t){return"[UnexpectedJSONParseError]: "+t.message}},u.enable(o())}).call(this,a(12))},{12:12,2:2}],2:[function(e,t,a){function n(e){var t,n=0;for(t in e)n=(n<<5)-n+e.charCodeAt(t),n|=0;return a.colors[Math.abs(n)%a.colors.length]}function i(e){function i(){if(i.enabled){var r=i,e=+new Date,t=e-(u||e);r.diff=t,r.prev=u,r.curr=e,u=e;for(var o=new Array(arguments.length),n=0;n<o.length;n++)o[n]=arguments[n];o[0]=a.coerce(o[0]),"string"!=typeof o[0]&&o.unshift("%O");var s=0;o[0]=o[0].replace(/%([a-zA-Z%])/g,function(e,t){if("%%"===e)return e;s++;var n=a.formatters[t];if("function"==typeof n){var i=o[s];e=n.call(r,i),o.splice(s,1),s--}return e}),a.formatArgs.call(r,o),(i.log||a.log||console.log.bind(console)).apply(r,o)}}return i.namespace=e,i.enabled=a.enabled(e),i.useColors=a.useColors(),i.color=n(e),"function"==typeof a.init&&a.init(i),i}function r(e){a.save(e),a.names=[],a.skips=[];for(var t=("string"==typeof e?e:"").split(/[\s,]+/),n=t.length,i=0;i<n;i++)t[i]&&("-"===(e=t[i].replace(/\*/g,".*?"))[0]?a.skips.push(new RegExp("^"+e.substr(1)+"$")):a.names.push(new RegExp("^"+e+"$")))}function o(){a.enable("")}function s(e){var t,n;for(t=0,n=a.skips.length;t<n;t++)if(a.skips[t].test(e))return!1;for(t=0,n=a.names.length;t<n;t++)if(a.names[t].test(e))return!0;return!1}function l(e){return e instanceof Error?e.stack||e.message:e}var u;(a=t.exports=i.debug=i["default"]=i).coerce=l,a.disable=o,a.enable=r,a.enabled=s,a.humanize=e(9),a.names=[],a.skips=[],a.formatters={}},{9:9}],3:[function(ue,n,i){(function(ae,le){var e,t;e=this,t=function(){"use strict";function n(e){var t=typeof e;return null!==e&&("object"===t||"function"===t)}function u(e){return"function"==typeof e}function e(e){q=e}function t(e){W=e}function i(){return function(){return ae.nextTick(l)}}function r(){return void 0!==H?function(){H(l)}:a()}function o(){var e=0,t=new K(l),n=document.createTextNode("");return t.observe(n,{characterData:!0}),function(){n.data=e=++e%2}}function s(){var e=new MessageChannel;return e.port1.onmessage=l,function(){return e.port2.postMessage(0)}}function a(){var e=setTimeout;return function(){return e(l,1)}}function l(){for(var e=0;e<z;e+=2){(0,X[e])(X[e+1]),X[e]=undefined,X[e+1]=undefined}z=0}function c(){try{var e=ue("vertx");return H=e.runOnLoop||e.runOnContext,r()}catch(t){return a()}}function d(e,t){var n=arguments,i=this,r=new this.constructor(f);r[ee]===undefined&&D(r);var o,s=i._state;return s?(o=n[s-1],W(function(){return O(s,r,o,i._result)})):C(i,r,e,t),r}function h(e){var t=this;if(e&&"object"==typeof e&&e.constructor===t)return e;var n=new t(f);return S(n,e),n}function f(){}function p(){return new TypeError("You cannot resolve a promise with itself")}function m(){return new TypeError("A promises callback cannot return that same promise.")}function g(e){try{return e.then}catch(t){return re.error=t,re}}function v(e,t,n,i){try{e.call(t,n,i)}catch(r){return r}}function y(e,i,r){W(function(t){var n=!1,e=v(r,i,function(e){n||(n=!0,i!==e?S(t,e):x(t,e))},function(e){n||(n=!0,_(t,e))},"Settle: "+(t._label||" unknown promise"));!n&&e&&(n=!0,_(t,e))},e)}function b(t,e){e._state===ne?x(t,e._result):e._state===ie?_(t,e._result):C(e,undefined,function(e){return S(t,e)},function(e){return _(t,e)})}function w(e,t,n){t.constructor===e.constructor&&n===d&&t.constructor.resolve===h?b(e,t):n===re?(_(e,re.error),re.error=null):n===undefined?x(e,t):u(n)?y(e,t,n):x(e,t)}function S(e,t){e===t?_(e,p()):n(t)?w(e,t,g(t)):x(e,t)}function k(e){e._onerror&&e._onerror(e._result),T(e)}function x(e,t){e._state===te&&(e._result=t,e._state=ne,0!==e._subscribers.length&&W(T,e))}function _(e,t){e._state===te&&(e._state=ie,e._result=t,W(k,e))}function C(e,t,n,i){var r=e._subscribers,o=r.length;e._onerror=null,r[o]=t,r[o+ne]=n,r[o+ie]=i,0===o&&e._state&&W(T,e)}function T(e){var t=e._subscribers,n=e._state;if(0!==t.length){for(var i=undefined,r=undefined,o=e._result,s=0;s<t.length;s+=3)i=t[s],r=t[s+n],i?O(n,i,r,o):r(o);e._subscribers.length=0}}function E(){this.error=null}function P(e,t){try{return e(t)}catch(n){return oe.error=n,oe}}function O(e,t,n,i){var r=u(n),o=undefined,s=undefined,a=undefined,l=undefined;if(r){if((o=P(n,i))===oe?(l=!0,s=o.error,o.error=null):a=!0,t===o)return void _(t,m())}else o=i,a=!0;t._state!==te||(r&&a?S(t,o):l?_(t,s):e===ne?x(t,o):e===ie&&_(t,o))}function N(t,e){try{e(function(e){S(t,e)},function(e){_(t,e)})}catch(n){_(t,n)}}function A(){return se++}function D(e){e[ee]=se++,e._state=undefined,e._result=undefined,e._subscribers=[]}function F(e,t){this._instanceConstructor=e,this.promise=new e(f),this.promise[ee]||D(this.promise),B(t)?(this.length=t.length,this._remaining=t.length,this._result=new Array(this.length),0===this.length?x(this.promise,this._result):(this.length=this.length||0,this._enumerate(t),0===this._remaining&&x(this.promise,this._result))):_(this.promise,I())}function I(){return new Error("Array Methods must be provided an Array")}function L(e){return new F(this,e).promise}function M(r){var o=this;return B(r)?new o(function(e,t){for(var n=r.length,i=0;i<n;i++)o.resolve(r[i]).then(e,t)}):new o(function(e,t){return t(new TypeError("You must pass an array to race."))})}function j(e){var t=new this(f);return _(t,e),t}function R(){throw new TypeError("You must pass a resolver function as the first argument to the promise constructor")}function V(){throw new TypeError("Failed to construct 'Promise': Please use the 'new' operator, this object constructor cannot be called as a function.")}function $(e){this[ee]=A(),this._result=this._state=undefined,this._subscribers=[],f!==e&&("function"!=typeof e&&R(),this instanceof $?N(this,e):V())}function U(){var e=undefined;if(void 0!==le)e=le;else if("undefined"!=typeof self)e=self;else try{e=Function("return this")()}catch(i){throw new Error("polyfill failed because global object is unavailable in this environment")}var t=e.Promise;if(t){var n=null;try{n=Object.prototype.toString.call(t.resolve())}catch(i){}if("[object Promise]"===n&&!t.cast)return}e.Promise=$}undefined;var B=Array.isArray?Array.isArray:function(e){return"[object Array]"===Object.prototype.toString.call(e)},z=0,H=undefined,q=undefined,W=function(e,t){X[z]=e,X[z+1]=t,2===(z+=2)&&(q?q(l):J())},Y="undefined"!=typeof window?window:undefined,G=Y||{},K=G.MutationObserver||G.WebKitMutationObserver,Z="undefined"==typeof self&&void 0!==ae&&"[object process]"==={}.toString.call(ae),Q="undefined"!=typeof Uint8ClampedArray&&"undefined"!=typeof importScripts&&"undefined"!=typeof MessageChannel,X=new Array(1e3),J=undefined;J=Z?i():K?o():Q?s():Y===undefined&&"function"==typeof ue?c():a();var ee=Math.random().toString(36).substring(16),te=void 0,ne=1,ie=2,re=new E,oe=new E,se=0;return F.prototype._enumerate=function(e){for(var t=0;this._state===te&&t<e.length;t++)this._eachEntry(e[t],t)},F.prototype._eachEntry=function(t,e){var n=this._instanceConstructor,i=n.resolve;if(i===h){var r=g(t);if(r===d&&t._state!==te)this._settledAt(t._state,e,t._result);else if("function"!=typeof r)this._remaining--,this._result[e]=t;else if(n===$){var o=new n(f);w(o,t,r),this._willSettleAt(o,e)}else this._willSettleAt(new n(function(e){return e(t)}),e)}else this._willSettleAt(i(t),e)},F.prototype._settledAt=function(e,t,n){var i=this.promise;i._state===te&&(this._remaining--,e===ie?_(i,n):this._result[t]=n),0===this._remaining&&x(i,this._result)},F.prototype._willSettleAt=function(e,t){var n=this;C(e,undefined,function(e){return n._settledAt(ne,t,e)},function(e){return n._settledAt(ie,t,e)})},$.all=L,$.race=M,$.resolve=h,$.reject=j,$._setScheduler=e,$._setAsap=t,$._asap=W,$.prototype={constructor:$,then:d,"catch":function(e){return this.then(null,e)}},$.polyfill=U,$.Promise=$},"object"==typeof i&&void 0!==n?n.exports=t():"function"==typeof r&&r.amd?r(t):e.ES6Promise=t()}).call(this,ue(12),"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{12:12}],4:[function(e,t){function i(){this._events=this._events||{},this._maxListeners=this._maxListeners||undefined}function c(e){return"function"==typeof e}function n(e){return"number"==typeof e}function d(e){return"object"==typeof e&&null!==e}function h(e){return void 0===e}((t.exports=i).EventEmitter=i).prototype._events=undefined,i.prototype._maxListeners=undefined,i.defaultMaxListeners=10,i.prototype.setMaxListeners=function(e){if(!n(e)||e<0||isNaN(e))throw TypeError("n must be a positive number");return this._maxListeners=e,this},i.prototype.emit=function(e,t,n){var i,r,o,s,a,l;if(this._events||(this._events={}),"error"===e&&(!this._events.error||d(this._events.error)&&!this._events.error.length)){if((i=t)instanceof Error)throw i;var u=new Error('Uncaught, unspecified "error" event. ('+i+")");throw u.context=i,u}if(h(r=this._events[e]))return!1;if(c(r))switch(arguments.length){case 1:r.call(this);break;case 2:r.call(this,t);break;case 3:r.call(this,t,n);break;default:s=Array.prototype.slice.call(arguments,1),r.apply(this,s)}else if(d(r))for(s=Array.prototype.slice.call(arguments,1),o=(l=r.slice()).length,a=0;a<o;a++)l[a].apply(this,s);return!0},i.prototype.addListener=function(e,t){var n;if(!c(t))throw TypeError("listener must be a function");return this._events||(this._events={}),this._events.newListener&&this.emit("newListener",e,c(t.listener)?t.listener:t),this._events[e]?d(this._events[e])?this._events[e].push(t):this._events[e]=[this._events[e],t]:this._events[e]=t,d(this._events[e])&&!this._events[e].warned&&(n=h(this._maxListeners)?i.defaultMaxListeners:this._maxListeners)&&0<n&&this._events[e].length>n&&(this._events[e].warned=!0,console.error("(node) warning: possible EventEmitter memory leak detected. %d listeners added. Use emitter.setMaxListeners() to increase limit.",this._events[e].length),"function"==typeof console.trace&&console.trace()),this},i.prototype.on=i.prototype.addListener,i.prototype.once=function(e,t){function n(){this.removeListener(e,n),i||(i=!0,t.apply(this,arguments))}if(!c(t))throw TypeError("listener must be a function");var i=!1;return n.listener=t,this.on(e,n),this},i.prototype.removeListener=function(e,t){var n,i,r,o;if(!c(t))throw TypeError("listener must be a function");if(!this._events||!this._events[e])return this;if(r=(n=this._events[e]).length,i=-1,n===t||c(n.listener)&&n.listener===t)delete this._events[e],this._events.removeListener&&this.emit("removeListener",e,t);else if(d(n)){for(o=r;0<o--;)if(n[o]===t||n[o].listener&&n[o].listener===t){i=o;break}if(i<0)return this;1===n.length?(n.length=0,delete this._events[e]):n.splice(i,1),this._events.removeListener&&this.emit("removeListener",e,t)}return this},i.prototype.removeAllListeners=function(e){var t,n;if(!this._events)return this;if(!this._events.removeListener)return 0===arguments.length?this._events={}:this._events[e]&&delete this._events[e],this;if(0===arguments.length){for(t in this._events)"removeListener"!==t&&this.removeAllListeners(t);return this.removeAllListeners("removeListener"),this._events={},this}if(c(n=this._events[e]))this.removeListener(e,n);else if(n)for(;n.length;)this.removeListener(e,n[n.length-1]);return delete this._events[e],this},i.prototype.listeners=function(e){return this._events&&this._events[e]?c(this._events[e])?[this._events[e]]:this._events[e].slice():[]},i.prototype.listenerCount=function(e){if(this._events){var t=this._events[e];if(c(t))return 1;if(t)return t.length}return 0},i.listenerCount=function(e,t){return e.listenerCount(t)}},{}],5:[function(e,t){var s=Object.prototype.hasOwnProperty,a=Object.prototype.toString;t.exports=function(e,t,n){if("[object Function]"!==a.call(t))throw new TypeError("iterator must be a function");var i=e.length;if(i===+i)for(var r=0;r<i;r++)t.call(n,e[r],r,e);else for(var o in e)s.call(e,o)&&t.call(n,e[o],o,e)}},{}],6:[function(e,n){(function(e){var t;t="undefined"!=typeof window?window:void 0!==e?e:"undefined"!=typeof self?self:{},n.exports=t}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],7:[function(e,t){"function"==typeof Object.create?t.exports=function(e,t){e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}})}:t.exports=function(e,t){e.super_=t;var n=function(){};n.prototype=t.prototype,e.prototype=new n,e.prototype.constructor=e}},{}],8:[function(e,t){var n={}.toString;t.exports=Array.isArray||function(e){return"[object Array]"==n.call(e)}},{}],9:[function(e,t){function i(e){if(!(100<(e=String(e)).length)){var t=/^((?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|years?|yrs?|y)?$/i.exec(e);if(t){var n=parseFloat(t[1]);switch((t[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return n*c;case"days":case"day":case"d":return n*u;case"hours":case"hour":case"hrs":case"hr":case"h":return n*l;case"minutes":case"minute":case"mins":case"min":case"m":return n*a;case"seconds":case"second":case"secs":case"sec":case"s":return n*s;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return n;default:return undefined}}}}function r(e){return u<=e?Math.round(e/u)+"d":l<=e?Math.round(e/l)+"h":a<=e?Math.round(e/a)+"m":s<=e?Math.round(e/s)+"s":e+"ms"}function o(e){return n(e,u,"day")||n(e,l,"hour")||n(e,a,"minute")||n(e,s,"second")||e+" ms"}function n(e,t,n){if(!(e<t))return e<1.5*t?Math.floor(e/t)+" "+n:Math.ceil(e/t)+" "+n+"s"}var s=1e3,a=60*s,l=60*a,u=24*l,c=365.25*u;t.exports=function(e,t){t=t||{};var n=typeof e;if("string"===n&&0<e.length)return i(e);if("number"===n&&!1===isNaN(e))return t["long"]?o(e):r(e);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))}},{}],10:[function(e,t){"use strict";var h=Object.prototype.hasOwnProperty,f=Object.prototype.toString,n=Array.prototype.slice,p=e(11),i=Object.prototype.propertyIsEnumerable,m=!i.call({toString:null},"toString"),g=i.call(function(){},"prototype"),v=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],r=function(e){var t=e.constructor;return t&&t.prototype===e},o={$console:!0,$external:!0,$frame:!0,$frameElement:!0,$frames:!0,$innerHeight:!0,$innerWidth:!0,$outerHeight:!0,$outerWidth:!0,$pageXOffset:!0,$pageYOffset:!0,$parent:!0,$scrollLeft:!0,$scrollTop:!0,$scrollX:!0,$scrollY:!0,$self:!0,$webkitIndexedDB:!0,$webkitStorageInfo:!0,$window:!0},s=function(){if("undefined"==typeof window)return!1;for(var e in window)try{if(!o["$"+e]&&h.call(window,e)&&null!==window[e]&&"object"==typeof window[e])try{r(window[e])}catch(t){return!0}}catch(t){return!0}return!1}(),y=function(e){if("undefined"==typeof window||!s)return r(e);try{return r(e)}catch(t){return!1}},a=function(e){var t=null!==e&&"object"==typeof e,n="[object Function]"===f.call(e),i=p(e),r=t&&"[object String]"===f.call(e),o=[];if(!t&&!n&&!i)throw new TypeError("Object.keys called on a non-object");var s=g&&n;if(r&&0<e.length&&!h.call(e,0))for(var a=0;a<e.length;++a)o.push(String(a));if(i&&0<e.length)for(var l=0;l<e.length;++l)o.push(String(l));else for(var u in e)s&&"prototype"===u||!h.call(e,u)||o.push(String(u));if(m)for(var c=y(e),d=0;d<v.length;++d)c&&"constructor"===v[d]||!h.call(e,v[d])||o.push(v[d]);return o};a.shim=function(){if(Object.keys){if(!function(){return 2===(Object.keys(arguments)||"").length}(1,2)){var t=Object.keys;Object.keys=function(e){return p(e)?t(n.call(e)):t(e)}}}else Object.keys=a;return Object.keys||a},t.exports=a},{11:11}],11:[function(e,t){"use strict";var i=Object.prototype.toString;t.exports=function(e){var t=i.call(e),n="[object Arguments]"===t;return n||(n="[object Array]"!==t&&null!==e&&"object"==typeof e&&"number"==typeof e.length&&0<=e.length&&"[object Function]"===i.call(e.callee)),n}},{}],12:[function(e,t){function n(){throw new Error("setTimeout has not been defined")}function i(){throw new Error("clearTimeout has not been defined")}function r(e){if(c===setTimeout)return setTimeout(e,0);if((c===n||!c)&&setTimeout)return c=setTimeout,setTimeout(e,0);try{return c(e,0)}catch(t){try{return c.call(null,e,0)}catch(t){return c.call(this,e,0)}}}function o(e){if(d===clearTimeout)return clearTimeout(e);if((d===i||!d)&&clearTimeout)return d=clearTimeout,clearTimeout(e);try{return d(e)}catch(t){try{return d.call(null,e)}catch(t){return d.call(this,e)}}}function s(){m&&f&&(m=!1,f.length?p=f.concat(p):g=-1,p.length&&a())}function a(){if(!m){var e=r(s);m=!0;for(var t=p.length;t;){for(f=p,p=[];++g<t;)f&&f[g].run();g=-1,t=p.length}f=null,m=!1,o(e)}}function l(e,t){this.fun=e,this.array=t}function u(){}var c,d,h=t.exports={};!function(){try{c="function"==typeof setTimeout?setTimeout:n}catch(e){c=n}try{d="function"==typeof clearTimeout?clearTimeout:i}catch(e){d=i}}();var f,p=[],m=!1,g=-1;h.nextTick=function(e){var t=new Array(arguments.length-1);if(1<arguments.length)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];p.push(new l(e,t)),1!==p.length||m||r(a)},l.prototype.run=function(){this.fun.apply(null,this.array)},h.title="browser",h.browser=!0,h.env={},h.argv=[],h.version="",h.versions={},h.on=u,h.addListener=u,h.once=u,h.off=u,h.removeListener=u,h.removeAllListeners=u,h.emit=u,h.binding=function(){throw new Error("process.binding is not supported")},h.cwd=function(){return"/"},h.chdir=function(){throw new Error("process.chdir is not supported")},h.umask=function(){return 0}},{}],13:[function(e,t){"use strict";function o(e,t){if(e.map)return e.map(t);for(var n=[],i=0;i<e.length;i++)n.push(t(e[i],i));return n}var s=function(e){switch(typeof e){case"string":return e;case"boolean":return e?"true":"false";case"number":return isFinite(e)?e:"";default:return""}};t.exports=function(n,i,r,e){return i=i||"&",r=r||"=",null===n&&(n=undefined),"object"==typeof n?o(l(n),function(e){var t=encodeURIComponent(s(e))+r;return a(n[e])?o(n[e],function(e){return t+encodeURIComponent(s(e))}).join(i):t+encodeURIComponent(s(n[e]))}).join(i):e?encodeURIComponent(s(e))+r+encodeURIComponent(s(n)):""};var a=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)},l=Object.keys||function(e){var t=[];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.push(n);return t}},{}],14:[function(s,e){function t(){a.apply(this,arguments)}function n(){var e="Not implemented in this environment.\nIf you feel this is a mistake, write to support@algolia.com";throw new u.AlgoliaSearchError(e)}e.exports=t;var i=s(16),r=s(25),o=s(26),a=s(15),l=s(7),u=s(27);l(t,a),t.prototype.deleteIndex=function(e,t){return this._jsonRequest({method:"DELETE",url:"/1/indexes/"+encodeURIComponent(e),hostType:"write",callback:t})},t.prototype.moveIndex=function(e,t,n){var i={operation:"move",destination:t};return this._jsonRequest({method:"POST",url:"/1/indexes/"+encodeURIComponent(e)+"/operation",body:i,hostType:"write",callback:n})},t.prototype.copyIndex=function(e,t,n,i){var r={operation:"copy",destination:t},o=i;if("function"==typeof n)o=n;else if(Array.isArray(n)&&0<n.length)r.scope=n;else if(void 0!==n)throw new Error("the scope given to `copyIndex` was not an array with settings, synonyms or rules");return this._jsonRequest({method:"POST",url:"/1/indexes/"+encodeURIComponent(e)+"/operation",body:r,hostType:"write",callback:o})},t.prototype.getLogs=function(e,t,n){var i=s(24),r={};return"object"==typeof e?(r=i(e),n=t):0===arguments.length||"function"==typeof e?n=e:1===arguments.length||"function"==typeof t?(n=t,r.offset=e):(r.offset=e,r.length=t),r.offset===undefined&&(r.offset=0),r.length===undefined&&(r.length=10),this._jsonRequest({method:"GET",url:"/1/logs?"+this._getSearchParams(r,""),hostType:"read",callback:n})},t.prototype.listIndexes=function(e,t){var n="";return e===undefined||"function"==typeof e?t=e:n="?page="+e,this._jsonRequest({method:"GET",url:"/1/indexes"+n,hostType:"read",callback:t})},t.prototype.initIndex=function(e){return new i(this,e)},t.prototype.listUserKeys=r(function(e){return this.listApiKeys(e)},o("client.listUserKeys()","client.listApiKeys()")),t.prototype.listApiKeys=function(e){return this._jsonRequest({method:"GET",url:"/1/keys",hostType:"read",callback:e})},t.prototype.getUserKeyACL=r(function(e,t){return this.getApiKey(e,t)},o("client.getUserKeyACL()","client.getApiKey()")),t.prototype.getApiKey=function(e,t){return this._jsonRequest({method:"GET",url:"/1/keys/"+e,hostType:"read",callback:t})},t.prototype.deleteUserKey=r(function(e,t){return this.deleteApiKey(e,t)},o("client.deleteUserKey()","client.deleteApiKey()")),t.prototype.deleteApiKey=function(e,t){return this._jsonRequest({method:"DELETE",url:"/1/keys/"+e,hostType:"write",callback:t})},t.prototype.addUserKey=r(function(e,t,n){return this.addApiKey(e,t,n)},o("client.addUserKey()","client.addApiKey()")),t.prototype.addApiKey=function(e,t,n){var i="Usage: client.addApiKey(arrayOfAcls[, params, callback])";if(!s(8)(e))throw new Error(i);1!==arguments.length&&"function"!=typeof t||(n=t,t=null);var r={acl:e};return t&&(r.validity=t.validity,r.maxQueriesPerIPPerHour=t.maxQueriesPerIPPerHour,r.maxHitsPerQuery=t.maxHitsPerQuery,r.indexes=t.indexes,r.description=t.description,t.queryParameters&&(r.queryParameters=this._getSearchParams(t.queryParameters,"")),r.referers=t.referers),this._jsonRequest({method:"POST",url:"/1/keys",body:r,hostType:"write",callback:n})},t.prototype.addUserKeyWithValidity=r(function(e,t,n){return this.addApiKey(e,t,n)},o("client.addUserKeyWithValidity()","client.addApiKey()")),t.prototype.updateUserKey=r(function(e,t,n,i){return this.updateApiKey(e,t,n,i)},o("client.updateUserKey()","client.updateApiKey()")),t.prototype.updateApiKey=function(e,t,n,i){var r="Usage: client.updateApiKey(key, arrayOfAcls[, params, callback])";if(!s(8)(t))throw new Error(r);2!==arguments.length&&"function"!=typeof n||(i=n,n=null);var o={acl:t};return n&&(o.validity=n.validity,o.maxQueriesPerIPPerHour=n.maxQueriesPerIPPerHour,o.maxHitsPerQuery=n.maxHitsPerQuery,o.indexes=n.indexes,o.description=n.description,n.queryParameters&&(o.queryParameters=this._getSearchParams(n.queryParameters,"")),o.referers=n.referers),this._jsonRequest({method:"PUT",url:"/1/keys/"+e,body:o,hostType:"write",callback:i})},t.prototype.startQueriesBatch=r(function(){this._batch=[]},o("client.startQueriesBatch()","client.search()")),t.prototype.addQueryInBatch=r(function(e,t,n){this._batch.push({indexName:e,query:t,params:n})},o("client.addQueryInBatch()","client.search()")),t.prototype.sendQueriesBatch=r(function(e){return this.search(this._batch,e)},o("client.sendQueriesBatch()","client.search()")),t.prototype.batch=function(e,t){var n="Usage: client.batch(operations[, callback])";if(!s(8)(e))throw new Error(n);return this._jsonRequest({method:"POST",url:"/1/indexes/*/batch",body:{requests:e},hostType:"write",callback:t})},t.prototype.assignUserID=function(e,t){if(!e.userID||!e.cluster)throw new u.AlgoliaSearchError("You have to provide both a userID and cluster",e);return this._jsonRequest({method:"POST",url:"/1/clusters/mapping",hostType:"write",body:{cluster:e.cluster},callback:t,headers:{"X-Algolia-User-ID":e.userID}})},t.prototype.getTopUserID=function(e){return this._jsonRequest({method:"GET",url:"/1/clusters/mapping/top",hostType:"read",callback:e})},t.prototype.getUserID=function(e,t){if(!e.userID)throw new u.AlgoliaSearchError("You have to provide a userID",{debugData:e});return this._jsonRequest({method:"GET",url:"/1/clusters/mapping/"+e.userID,hostType:"read",callback:t})},t.prototype.listClusters=function(e){return this._jsonRequest({method:"GET",url:"/1/clusters",hostType:"read",callback:e})},t.prototype.listUserIDs=function(e,t){return this._jsonRequest({method:"GET",url:"/1/clusters/mapping",body:e,hostType:"read",callback:t})},t.prototype.removeUserID=function(e,t){if(!e.userID)throw new u.AlgoliaSearchError("You have to provide a userID",{debugData:e});return this._jsonRequest({method:"DELETE",url:"/1/clusters/mapping",hostType:"write",callback:t,headers:{"X-Algolia-User-ID":e.userID}})},t.prototype.searchUserIDs=function(e,t){return this._jsonRequest({method:"POST",url:"/1/clusters/mapping/search",body:e,hostType:"read",callback:t})},t.prototype.destroy=n,t.prototype.enableRateLimitForward=n,t.prototype.disableRateLimitForward=n,t.prototype.useSecuredAPIKey=n,t.prototype.disableSecuredAPIKey=n,t.prototype.generateSecuredApiKey=n},{15:15,16:16,24:24,25:25,26:26,27:27,7:7,8:8}],15:[function(T,l){(function(e){function t(t,e,n){var i=T(1)("algoliasearch"),r=T(24),o=T(8),s=T(29),a="Usage: algoliasearch(applicationID, apiKey, opts)";if(!0!==n._allowEmptyCredentials&&!t)throw new C.AlgoliaSearchError("Please provide an application ID. "+a);if(!0!==n._allowEmptyCredentials&&!e)throw new C.AlgoliaSearchError("Please provide an API key. "+a);this.applicationID=t,this.apiKey=e,this.hosts={read:[],write:[]},n=n||{},this._timeouts=n.timeouts||{connect:1e3,read:2e3,write:3e4},n.timeout&&(this._timeouts.connect=this._timeouts.read=this._timeouts.write=n.timeout);var l=n.protocol||"https:";if(/:$/.test(l)||(l+=":"),"http:"!==l&&"https:"!==l)throw new C.AlgoliaSearchError("protocol must be `http:` or `https:` (was `"+n.protocol+"`)");if(this._checkAppIdData(),n.hosts)o(n.hosts)?(this.hosts.read=r(n.hosts),this.hosts.write=r(n.hosts)):(this.hosts.read=r(n.hosts.read),this.hosts.write=r(n.hosts.write));else{var u=s(this._shuffleResult,function(e){return t+"-"+e+".algolianet.com"}),c=(!1===n.dsn?"":"-dsn")+".algolia.net";this.hosts.read=[this.applicationID+c].concat(u),this.hosts.write=[this.applicationID+".algolia.net"].concat(u)}this.hosts.read=s(this.hosts.read,d(l)),this.hosts.write=s(this.hosts.write,d(l)),this.extraHeaders={},this.cache=n._cache||{},this._ua=n._ua,this._useCache=!(n._useCache!==undefined&&!n._cache)||n._useCache,this._useFallback=n.useFallback===undefined||n.useFallback,this._setTimeout=n._setTimeout,i("init done, %j",this)}function d(t){return function(e){return t+"//"+e.toLowerCase()}}function x(e){if(Array.prototype.toJSON===undefined)return JSON.stringify(e);var t=Array.prototype.toJSON;delete Array.prototype.toJSON;var n=JSON.stringify(e);return Array.prototype.toJSON=t,n}function n(e){for(var t,n,i=e.length;0!==i;)n=Math.floor(Math.random()*i),t=e[i-=1],e[i]=e[n],e[n]=t;return e}function _(e){var t={};for(var n in e){var i;if(Object.prototype.hasOwnProperty.call(e,n))i="x-algolia-api-key"===n||"x-algolia-application-id"===n?"**hidden for security purposes**":e[n],t[n]=i}return t}l.exports=t;var C=T(27),i=T(28),r=T(18),o=T(33),s=500,a=e.env.RESET_APP_DATA_TIMER&&parseInt(e.env.RESET_APP_DATA_TIMER,10)||12e4;t.prototype.initIndex=function(e){return new r(this,e)},t.prototype.setExtraHeader=function(e,t){this.extraHeaders[e.toLowerCase()]=t},t.prototype.getExtraHeader=function(e){return this.extraHeaders[e.toLowerCase()]},t.prototype.unsetExtraHeader=function(e){delete this.extraHeaders[e.toLowerCase()]},t.prototype.addAlgoliaAgent=function(e){-1===this._ua.indexOf(";"+e)&&(this._ua+=";"+e)},
t.prototype._jsonRequest=function(d){function h(e,o){function t(e){var t=e&&e.body&&e.body.message&&e.body.status||e.statusCode||e&&e.body&&200;m("received response: statusCode: %s, computed statusCode: %d, headers: %j",e.statusCode,t,e.headers);var n=2===Math.floor(t/100),i=new Date;if(k.push({currentHost:u,headers:_(p),content:f||null,contentLength:f!==undefined?f.length:null,method:o.method,timeouts:o.timeouts,url:o.url,startTime:l,endTime:i,duration:i-l,statusCode:t}),n)return y._useCache&&v&&(v[a]=e.responseText),e.body;if(4!==Math.floor(t/100))return b+=1,s();m("unrecoverable error");var r=new C.AlgoliaSearchError(e.body&&e.body.message,{debugData:k,statusCode:t});return y._promise.reject(r)}function n(e){m("error: %s, stack: %s",e.message,e.stack);var t=new Date;return k.push({currentHost:u,headers:_(p),content:f||null,contentLength:f!==undefined?f.length:null,method:o.method,timeouts:o.timeouts,url:o.url,startTime:l,endTime:t,duration:t-l}),e instanceof C.AlgoliaSearchError||(e=new C.Unknown(e&&e.message,e)),b+=1,e instanceof C.Unknown||e instanceof C.UnparsableJSON||b>=y.hosts[d.hostType].length&&(w||!S)?(e.debugData=k,y._promise.reject(e)):e instanceof C.RequestTimeout?i():s()}function s(){return m("retrying request"),y._incrementHostIndex(d.hostType),h(e,o)}function i(){return m("retrying request with higher timeout"),y._incrementHostIndex(d.hostType),y._incrementTimeoutMultipler(),o.timeouts=y._getTimeoutsForRequest(d.hostType),h(e,o)}y._checkAppIdData();var a,l=new Date;if(y._useCache&&(a=d.url),y._useCache&&f&&(a+="_body_"+o.body),y._useCache&&v&&v[a]!==undefined)return m("serving response from cache"),y._promise.resolve(JSON.parse(v[a]));if(b>=y.hosts[d.hostType].length)return!S||w?(m("could not get any response"),y._promise.reject(new C.AlgoliaSearchError("Cannot connect to the AlgoliaSearch API. Send an email to support@algolia.com to report and resolve the issue. Application id was: "+y.applicationID,{debugData:k}))):(m("switching to fallback"),b=0,o.method=d.fallback.method,o.url=d.fallback.url,o.jsonBody=d.fallback.body,o.jsonBody&&(o.body=x(o.jsonBody)),p=y._computeRequestHeaders({additionalUA:g,headers:d.headers}),o.timeouts=y._getTimeoutsForRequest(d.hostType),y._setHostIndexByType(0,d.hostType),w=!0,h(y._request.fallback,o));var u=y._getHostByType(d.hostType),r=u+o.url,c={body:o.body,jsonBody:o.jsonBody,method:o.method,headers:p,timeouts:o.timeouts,debug:m};return m("method: %s, url: %s, headers: %j, timeouts: %d",c.method,r,c.headers,c.timeouts),e===y._request.fallback&&m("using fallback"),e.call(y,r,c).then(t,n)}this._checkAppIdData();var f,p,m=T(1)("algoliasearch:"+d.url),g=d.additionalUA||"",v=d.cache,y=this,b=0,w=!1,S=y._useFallback&&y._request.fallback&&d.fallback;this.apiKey.length>s&&d.body!==undefined&&(d.body.params!==undefined||d.body.requests!==undefined)?(d.body.apiKey=this.apiKey,p=this._computeRequestHeaders({additionalUA:g,withApiKey:!1,headers:d.headers})):p=this._computeRequestHeaders({additionalUA:g,headers:d.headers}),d.body!==undefined&&(f=x(d.body)),m("request start");var k=[],e=h(y._request,{url:d.url,method:d.method,body:f,jsonBody:d.body,timeouts:y._getTimeoutsForRequest(d.hostType)});if("function"!=typeof d.callback)return e;e.then(function(e){i(function(){d.callback(null,e)},y._setTimeout||setTimeout)},function(e){i(function(){d.callback(e)},y._setTimeout||setTimeout)})},t.prototype._getSearchParams=function(e,t){if(e===undefined||null===e)return t;for(var n in e)null!==n&&e[n]!==undefined&&e.hasOwnProperty(n)&&(t+=""===t?"":"&",t+=n+"="+encodeURIComponent("[object Array]"===Object.prototype.toString.call(e[n])?x(e[n]):e[n]));return t},t.prototype._computeRequestHeaders=function(e){var t=T(5),n={"x-algolia-agent":e.additionalUA?this._ua+";"+e.additionalUA:this._ua,"x-algolia-application-id":this.applicationID};return!1!==e.withApiKey&&(n["x-algolia-api-key"]=this.apiKey),this.userToken&&(n["x-algolia-usertoken"]=this.userToken),this.securityTags&&(n["x-algolia-tagfilters"]=this.securityTags),t(this.extraHeaders,function(e,t){n[t]=e}),e.headers&&t(e.headers,function(e,t){n[t]=e}),n},t.prototype.search=function(e,t,n){var i=T(8),r=T(29),o="Usage: client.search(arrayOfQueries[, callback])";if(!i(e))throw new Error(o);"function"==typeof t?(n=t,t={}):t===undefined&&(t={});var s=this,a={requests:r(e,function(e){var t="";return e.query!==undefined&&(t+="query="+encodeURIComponent(e.query)),{indexName:e.indexName,params:s._getSearchParams(e.params,t)}})},l=r(a.requests,function(e,t){return t+"="+encodeURIComponent("/1/indexes/"+encodeURIComponent(e.indexName)+"?"+e.params)}).join("&"),u="/1/indexes/*/queries";return t.strategy!==undefined&&(u+="?strategy="+t.strategy),this._jsonRequest({cache:this.cache,method:"POST",url:u,body:a,hostType:"read",fallback:{method:"GET",url:"/1/indexes/*",body:{params:l}},callback:n})},t.prototype.searchForFacetValues=function(e){var t=T(8),n=T(29),l="Usage: client.searchForFacetValues([{indexName, params: {facetName, facetQuery, ...params}}, ...queries])";if(!t(e))throw new Error(l);var u=this;return u._promise.all(n(e,function(e){if(!e||e.indexName===undefined||e.params.facetName===undefined||e.params.facetQuery===undefined)throw new Error(l);var t=T(24),n=T(31),i=e.indexName,r=e.params,o=r.facetName,s=n(t(r),function(e){return"facetName"===e}),a=u._getSearchParams(s,"");return u._jsonRequest({cache:u.cache,method:"POST",url:"/1/indexes/"+encodeURIComponent(i)+"/facets/"+encodeURIComponent(o)+"/query",hostType:"read",body:{params:a}})}))},t.prototype.setSecurityTags=function(e){if("[object Array]"===Object.prototype.toString.call(e)){for(var t=[],n=0;n<e.length;++n)if("[object Array]"===Object.prototype.toString.call(e[n])){for(var i=[],r=0;r<e[n].length;++r)i.push(e[n][r]);t.push("("+i.join(",")+")")}else t.push(e[n]);e=t.join(",")}this.securityTags=e},t.prototype.setUserToken=function(e){this.userToken=e},t.prototype.clearCache=function(){this.cache={}},t.prototype.setRequestTimeout=function(e){e&&(this._timeouts.connect=this._timeouts.read=this._timeouts.write=e)},t.prototype.setTimeouts=function(e){this._timeouts=e},t.prototype.getTimeouts=function(){return this._timeouts},t.prototype._getAppIdData=function(){var e=o.get(this.applicationID);return null!==e&&this._cacheAppIdData(e),e},t.prototype._setAppIdData=function(e){return e.lastChange=(new Date).getTime(),this._cacheAppIdData(e),o.set(this.applicationID,e)},t.prototype._checkAppIdData=function(){var e=this._getAppIdData(),t=(new Date).getTime();return null===e||t-e.lastChange>a?this._resetInitialAppIdData(e):e},t.prototype._resetInitialAppIdData=function(e){var t=e||{};return t.hostIndexes={read:0,write:0},t.timeoutMultiplier=1,t.shuffleResult=t.shuffleResult||n([1,2,3]),this._setAppIdData(t)},t.prototype._cacheAppIdData=function(e){this._hostIndexes=e.hostIndexes,this._timeoutMultiplier=e.timeoutMultiplier,this._shuffleResult=e.shuffleResult},t.prototype._partialAppIdDataUpdate=function(e){var t=T(5),n=this._getAppIdData();return t(e,function(e,t){n[t]=e}),this._setAppIdData(n)},t.prototype._getHostByType=function(e){return this.hosts[e][this._getHostIndexByType(e)]},t.prototype._getTimeoutMultiplier=function(){return this._timeoutMultiplier},t.prototype._getHostIndexByType=function(e){return this._hostIndexes[e]},t.prototype._setHostIndexByType=function(e,t){var n=T(24)(this._hostIndexes);return n[t]=e,this._partialAppIdDataUpdate({hostIndexes:n}),e},t.prototype._incrementHostIndex=function(e){return this._setHostIndexByType((this._getHostIndexByType(e)+1)%this.hosts[e].length,e)},t.prototype._incrementTimeoutMultipler=function(){var e=Math.max(this._timeoutMultiplier+1,4);return this._partialAppIdDataUpdate({timeoutMultiplier:e})},t.prototype._getTimeoutsForRequest=function(e){return{connect:this._timeouts.connect*this._timeoutMultiplier,complete:this._timeouts[e]*this._timeoutMultiplier}}}).call(this,T(12))},{1:1,12:12,18:18,24:24,27:27,28:28,29:29,31:31,33:33,5:5,8:8}],16:[function(f,e){function t(){r.apply(this,arguments)}function n(n,i,t){function a(e,t){var o={page:e||0,hitsPerPage:i||100},s=t||[];return n(o).then(function(e){var t=e.hits,n=e.nbHits,i=t.map(function(e){return delete e._highlightResult,e}),r=s.concat(i);return r.length<n?a(o.page+1,r):r})}return a().then(function(e){return"function"==typeof t?(t(e),undefined):e})}var i=f(7),r=f(18),o=f(25),s=f(26),p=f(28),a=f(27),l=o(function(){},s("forwardToSlaves","forwardToReplicas"));i(e.exports=t,r),t.prototype.addObject=function(e,t,n){var i=this;return 1!==arguments.length&&"function"!=typeof t||(n=t,t=undefined),this.as._jsonRequest({method:t!==undefined?"PUT":"POST",url:"/1/indexes/"+encodeURIComponent(i.indexName)+(t!==undefined?"/"+encodeURIComponent(t):""),body:e,hostType:"write",callback:n})},t.prototype.addObjects=function(e,t){var n="Usage: index.addObjects(arrayOfObjects[, callback])";if(!f(8)(e))throw new Error(n);for(var i=this,r={requests:[]},o=0;o<e.length;++o){var s={action:"addObject",body:e[o]};r.requests.push(s)}return this.as._jsonRequest({method:"POST",url:"/1/indexes/"+encodeURIComponent(i.indexName)+"/batch",body:r,hostType:"write",callback:t})},t.prototype.partialUpdateObject=function(e,t,n){1!==arguments.length&&"function"!=typeof t||(n=t,t=undefined);var i="/1/indexes/"+encodeURIComponent(this.indexName)+"/"+encodeURIComponent(e.objectID)+"/partial";return!1===t&&(i+="?createIfNotExists=false"),this.as._jsonRequest({method:"POST",url:i,body:e,hostType:"write",callback:n})},t.prototype.partialUpdateObjects=function(e,t,n){1!==arguments.length&&"function"!=typeof t||(n=t,t=!0);var i="Usage: index.partialUpdateObjects(arrayOfObjects[, callback])";if(!f(8)(e))throw new Error(i);for(var r=this,o={requests:[]},s=0;s<e.length;++s){var a={action:!0===t?"partialUpdateObject":"partialUpdateObjectNoCreate",objectID:e[s].objectID,body:e[s]};o.requests.push(a)}return this.as._jsonRequest({method:"POST",url:"/1/indexes/"+encodeURIComponent(r.indexName)+"/batch",body:o,hostType:"write",callback:n})},t.prototype.saveObject=function(e,t){var n=this;return this.as._jsonRequest({method:"PUT",url:"/1/indexes/"+encodeURIComponent(n.indexName)+"/"+encodeURIComponent(e.objectID),body:e,hostType:"write",callback:t})},t.prototype.saveObjects=function(e,t){var n="Usage: index.saveObjects(arrayOfObjects[, callback])";if(!f(8)(e))throw new Error(n);for(var i=this,r={requests:[]},o=0;o<e.length;++o){var s={action:"updateObject",objectID:e[o].objectID,body:e[o]};r.requests.push(s)}return this.as._jsonRequest({method:"POST",url:"/1/indexes/"+encodeURIComponent(i.indexName)+"/batch",body:r,hostType:"write",callback:t})},t.prototype.deleteObject=function(e,t){if("function"==typeof e||"string"!=typeof e&&"number"!=typeof e){var n=new a.AlgoliaSearchError("Cannot delete an object without an objectID");return"function"==typeof(t=e)?t(n):this.as._promise.reject(n)}var i=this;return this.as._jsonRequest({method:"DELETE",url:"/1/indexes/"+encodeURIComponent(i.indexName)+"/"+encodeURIComponent(e),hostType:"write",callback:t})},t.prototype.deleteObjects=function(e,t){var n=f(8),i=f(29),r="Usage: index.deleteObjects(arrayOfObjectIDs[, callback])";if(!n(e))throw new Error(r);var o=this,s={requests:i(e,function(e){return{action:"deleteObject",objectID:e,body:{objectID:e}}})};return this.as._jsonRequest({method:"POST",url:"/1/indexes/"+encodeURIComponent(o.indexName)+"/batch",body:s,hostType:"write",callback:t})},t.prototype.deleteByQuery=o(function(e,t,n){function i(e){if(0===e.nbHits)return e;var t=u(e.hits,function(e){return e.objectID});return c.deleteObjects(t).then(r).then(o)}function r(e){return c.waitTask(e.taskID)}function o(){return c.deleteByQuery(e,t)}function s(){p(function(){n(null)},d._setTimeout||setTimeout)}function a(e){p(function(){n(e)},d._setTimeout||setTimeout)}var l=f(24),u=f(29),c=this,d=c.as;1===arguments.length||"function"==typeof t?(n=t,t={}):t=l(t),t.attributesToRetrieve="objectID",t.hitsPerPage=1e3,t.distinct=!1,this.clearCache();var h=this.search(e,t).then(i);if(!n)return h;h.then(s,a)},s("index.deleteByQuery()","index.deleteBy()")),t.prototype.deleteBy=function(e,t){var n=this;return this.as._jsonRequest({method:"POST",url:"/1/indexes/"+encodeURIComponent(n.indexName)+"/deleteByQuery",body:{params:n.as._getSearchParams(e,"")},hostType:"write",callback:t})},t.prototype.browseAll=function(e,t){function n(e){var t;o._stopped||(t=e!==undefined?{cursor:e}:{params:l},s._jsonRequest({method:"POST",url:"/1/indexes/"+encodeURIComponent(a.indexName)+"/browse",hostType:"read",body:t,callback:i}))}function i(e,t){o._stopped||(e?o._error(e):(o._result(t),t.cursor!==undefined?n(t.cursor):o._end()))}"object"==typeof e&&(t=e,e=undefined);var r=f(30),o=new(f(17)),s=this.as,a=this,l=s._getSearchParams(r({},t||{},{query:e}),"");return n(),o},t.prototype.ttAdapter=o(function(r){var o=this;return function(e,t,n){var i;i="function"==typeof n?n:t,o.search(e,r,function(e,t){i(e||t.hits)})}},"ttAdapter is not necessary anymore and will be removed in the next version,\nhave a look at autocomplete.js (https://github.com/algolia/autocomplete.js)"),t.prototype.waitTask=function(e,t){function n(){return u._jsonRequest({method:"GET",hostType:"read",url:"/1/indexes/"+encodeURIComponent(l.indexName)+"/task/"+e}).then(function(e){var t=o*++a*a;return s<t&&(t=s),"published"!==e.status?u._promise.delay(t).then(n):e})}function i(e){p(function(){t(null,e)},u._setTimeout||setTimeout)}function r(e){p(function(){t(e)},u._setTimeout||setTimeout)}var o=100,s=5e3,a=0,l=this,u=l.as,c=n();if(!t)return c;c.then(i,r)},t.prototype.clearIndex=function(e){var t=this;return this.as._jsonRequest({method:"POST",url:"/1/indexes/"+encodeURIComponent(t.indexName)+"/clear",hostType:"write",callback:e})},t.prototype.getSettings=function(e,t){1===arguments.length&&"function"==typeof e&&(t=e,e={}),e=e||{};var n=encodeURIComponent(this.indexName);return this.as._jsonRequest({method:"GET",url:"/1/indexes/"+n+"/settings?getVersion=2"+(e.advanced?"&advanced="+e.advanced:""),hostType:"read",callback:t})},t.prototype.searchSynonyms=function(e,t){return"function"==typeof e?(t=e,e={}):e===undefined&&(e={}),this.as._jsonRequest({method:"POST",url:"/1/indexes/"+encodeURIComponent(this.indexName)+"/synonyms/search",body:e,hostType:"read",callback:t})},t.prototype.exportSynonyms=function(e,t){return n(this.searchSynonyms.bind(this),e,t)},t.prototype.saveSynonym=function(e,t,n){"function"==typeof t?(n=t,t={}):t===undefined&&(t={}),t.forwardToSlaves!==undefined&&l();var i=t.forwardToSlaves||t.forwardToReplicas?"true":"false";return this.as._jsonRequest({method:"PUT",url:"/1/indexes/"+encodeURIComponent(this.indexName)+"/synonyms/"+encodeURIComponent(e.objectID)+"?forwardToReplicas="+i,body:e,hostType:"write",callback:n})},t.prototype.getSynonym=function(e,t){return this.as._jsonRequest({method:"GET",url:"/1/indexes/"+encodeURIComponent(this.indexName)+"/synonyms/"+encodeURIComponent(e),hostType:"read",callback:t})},t.prototype.deleteSynonym=function(e,t,n){"function"==typeof t?(n=t,t={}):t===undefined&&(t={}),t.forwardToSlaves!==undefined&&l();var i=t.forwardToSlaves||t.forwardToReplicas?"true":"false";return this.as._jsonRequest({method:"DELETE",url:"/1/indexes/"+encodeURIComponent(this.indexName)+"/synonyms/"+encodeURIComponent(e)+"?forwardToReplicas="+i,hostType:"write",callback:n})},t.prototype.clearSynonyms=function(e,t){"function"==typeof e?(t=e,e={}):e===undefined&&(e={}),e.forwardToSlaves!==undefined&&l();var n=e.forwardToSlaves||e.forwardToReplicas?"true":"false";return this.as._jsonRequest({method:"POST",url:"/1/indexes/"+encodeURIComponent(this.indexName)+"/synonyms/clear?forwardToReplicas="+n,hostType:"write",callback:t})},t.prototype.batchSynonyms=function(e,t,n){"function"==typeof t?(n=t,t={}):t===undefined&&(t={}),t.forwardToSlaves!==undefined&&l();var i=t.forwardToSlaves||t.forwardToReplicas?"true":"false";return this.as._jsonRequest({method:"POST",url:"/1/indexes/"+encodeURIComponent(this.indexName)+"/synonyms/batch?forwardToReplicas="+i+"&replaceExistingSynonyms="+(t.replaceExistingSynonyms?"true":"false"),hostType:"write",body:e,callback:n})},t.prototype.searchRules=function(e,t){return"function"==typeof e?(t=e,e={}):e===undefined&&(e={}),this.as._jsonRequest({method:"POST",url:"/1/indexes/"+encodeURIComponent(this.indexName)+"/rules/search",body:e,hostType:"read",callback:t})},t.prototype.exportRules=function(e,t){return n(this.searchRules.bind(this),e,t)},t.prototype.saveRule=function(e,t,n){if("function"==typeof t?(n=t,t={}):t===undefined&&(t={}),!e.objectID)throw new a.AlgoliaSearchError("Missing or empty objectID field for rule");var i=!0===t.forwardToReplicas?"true":"false";return this.as._jsonRequest({method:"PUT",url:"/1/indexes/"+encodeURIComponent(this.indexName)+"/rules/"+encodeURIComponent(e.objectID)+"?forwardToReplicas="+i,body:e,hostType:"write",callback:n})},t.prototype.getRule=function(e,t){return this.as._jsonRequest({method:"GET",url:"/1/indexes/"+encodeURIComponent(this.indexName)+"/rules/"+encodeURIComponent(e),hostType:"read",callback:t})},t.prototype.deleteRule=function(e,t,n){"function"==typeof t?(n=t,t={}):t===undefined&&(t={});var i=!0===t.forwardToReplicas?"true":"false";return this.as._jsonRequest({method:"DELETE",url:"/1/indexes/"+encodeURIComponent(this.indexName)+"/rules/"+encodeURIComponent(e)+"?forwardToReplicas="+i,hostType:"write",callback:n})},t.prototype.clearRules=function(e,t){"function"==typeof e?(t=e,e={}):e===undefined&&(e={});var n=!0===e.forwardToReplicas?"true":"false";return this.as._jsonRequest({method:"POST",url:"/1/indexes/"+encodeURIComponent(this.indexName)+"/rules/clear?forwardToReplicas="+n,hostType:"write",callback:t})},t.prototype.batchRules=function(e,t,n){"function"==typeof t?(n=t,t={}):t===undefined&&(t={});var i=!0===t.forwardToReplicas?"true":"false";return this.as._jsonRequest({method:"POST",url:"/1/indexes/"+encodeURIComponent(this.indexName)+"/rules/batch?forwardToReplicas="+i+"&clearExistingRules="+(!0===t.clearExistingRules?"true":"false"),hostType:"write",body:e,callback:n})},t.prototype.setSettings=function(e,t,n){1!==arguments.length&&"function"!=typeof t||(n=t,t={}),t.forwardToSlaves!==undefined&&l();var i=t.forwardToSlaves||t.forwardToReplicas?"true":"false",r=this;return this.as._jsonRequest({method:"PUT",url:"/1/indexes/"+encodeURIComponent(r.indexName)+"/settings?forwardToReplicas="+i,hostType:"write",body:e,callback:n})},t.prototype.listUserKeys=o(function(e){return this.listApiKeys(e)},s("index.listUserKeys()","client.listApiKeys()")),t.prototype.listApiKeys=o(function(e){var t=this;return this.as._jsonRequest({method:"GET",url:"/1/indexes/"+encodeURIComponent(t.indexName)+"/keys",hostType:"read",callback:e})},s("index.listApiKeys()","client.listApiKeys()")),t.prototype.getUserKeyACL=o(function(e,t){return this.getApiKey(e,t)},s("index.getUserKeyACL()","client.getApiKey()")),t.prototype.getApiKey=o(function(e,t){var n=this;return this.as._jsonRequest({method:"GET",url:"/1/indexes/"+encodeURIComponent(n.indexName)+"/keys/"+e,hostType:"read",callback:t})},s("index.getApiKey()","client.getApiKey()")),t.prototype.deleteUserKey=o(function(e,t){return this.deleteApiKey(e,t)},s("index.deleteUserKey()","client.deleteApiKey()")),t.prototype.deleteApiKey=o(function(e,t){var n=this;return this.as._jsonRequest({method:"DELETE",url:"/1/indexes/"+encodeURIComponent(n.indexName)+"/keys/"+e,hostType:"write",callback:t})},s("index.deleteApiKey()","client.deleteApiKey()")),t.prototype.addUserKey=o(function(e,t,n){return this.addApiKey(e,t,n)},s("index.addUserKey()","client.addApiKey()")),t.prototype.addApiKey=o(function(e,t,n){var i="Usage: index.addApiKey(arrayOfAcls[, params, callback])";if(!f(8)(e))throw new Error(i);1!==arguments.length&&"function"!=typeof t||(n=t,t=null);var r={acl:e};return t&&(r.validity=t.validity,r.maxQueriesPerIPPerHour=t.maxQueriesPerIPPerHour,r.maxHitsPerQuery=t.maxHitsPerQuery,r.description=t.description,t.queryParameters&&(r.queryParameters=this.as._getSearchParams(t.queryParameters,"")),r.referers=t.referers),this.as._jsonRequest({method:"POST",url:"/1/indexes/"+encodeURIComponent(this.indexName)+"/keys",body:r,hostType:"write",callback:n})},s("index.addApiKey()","client.addApiKey()")),t.prototype.addUserKeyWithValidity=o(function(e,t,n){return this.addApiKey(e,t,n)},s("index.addUserKeyWithValidity()","client.addApiKey()")),t.prototype.updateUserKey=o(function(e,t,n,i){return this.updateApiKey(e,t,n,i)},s("index.updateUserKey()","client.updateApiKey()")),t.prototype.updateApiKey=o(function(e,t,n,i){var r="Usage: index.updateApiKey(key, arrayOfAcls[, params, callback])";if(!f(8)(t))throw new Error(r);2!==arguments.length&&"function"!=typeof n||(i=n,n=null);var o={acl:t};return n&&(o.validity=n.validity,o.maxQueriesPerIPPerHour=n.maxQueriesPerIPPerHour,o.maxHitsPerQuery=n.maxHitsPerQuery,o.description=n.description,n.queryParameters&&(o.queryParameters=this.as._getSearchParams(n.queryParameters,"")),o.referers=n.referers),this.as._jsonRequest({method:"PUT",url:"/1/indexes/"+encodeURIComponent(this.indexName)+"/keys/"+e,body:o,hostType:"write",callback:i})},s("index.updateApiKey()","client.updateApiKey()"))},{17:17,18:18,24:24,25:25,26:26,27:27,28:28,29:29,30:30,7:7,8:8}],17:[function(e,t){"use strict";function n(){}t.exports=n,e(7)(n,e(4).EventEmitter),n.prototype.stop=function(){this._stopped=!0,this._clean()},n.prototype._end=function(){this.emit("end"),this._clean()},n.prototype._error=function(e){this.emit("error",e),this._clean()},n.prototype._result=function(e){this.emit("result",e)},n.prototype._clean=function(){this.removeAllListeners("stop"),this.removeAllListeners("end"),this.removeAllListeners("error"),this.removeAllListeners("result")}},{4:4,7:7}],18:[function(l,e){function t(e,t){this.indexName=t,this.as=e,this.typeAheadArgs=null,this.typeAheadValueOption=null,this.cache={}}var n=l(23),i=l(25),r=l(26);(e.exports=t).prototype.clearCache=function(){this.cache={}},t.prototype.search=n("query"),t.prototype.similarSearch=n("similarQuery"),t.prototype.browse=function(e,t,n){var i,r,o=l(30),s=this;0===arguments.length||1===arguments.length&&"function"==typeof e?(i=0,n=e,e=undefined):"number"==typeof e?(i=e,"number"==typeof t?r=t:"function"==typeof t&&(n=t,r=undefined),e=undefined,t=undefined):"object"==typeof e?("function"==typeof t&&(n=t),t=e,e=undefined):"string"==typeof e&&"function"==typeof t&&(n=t,t=undefined),t=o({},t||{},{page:i,hitsPerPage:r,query:e});var a=this.as._getSearchParams(t,"");return this.as._jsonRequest({method:"POST",url:"/1/indexes/"+encodeURIComponent(s.indexName)+"/browse",body:{params:a},hostType:"read",callback:n})},t.prototype.browseFrom=function(e,t){return this.as._jsonRequest({method:"POST",url:"/1/indexes/"+encodeURIComponent(this.indexName)+"/browse",body:{cursor:e},hostType:"read",callback:t})},t.prototype.searchForFacetValues=function(e,t){var n=l(24),i=l(31),r="Usage: index.searchForFacetValues({facetName, facetQuery, ...params}[, callback])";if(e.facetName===undefined||e.facetQuery===undefined)throw new Error(r);var o=e.facetName,s=i(n(e),function(e){return"facetName"===e}),a=this.as._getSearchParams(s,"");return this.as._jsonRequest({method:"POST",url:"/1/indexes/"+encodeURIComponent(this.indexName)+"/facets/"+encodeURIComponent(o)+"/query",hostType:"read",body:{params:a},callback:t})},t.prototype.searchFacet=i(function(e,t){return this.searchForFacetValues(e,t)},r("index.searchFacet(params[, callback])","index.searchForFacetValues(params[, callback])")),t.prototype._search=function(e,t,n,i){return this.as._jsonRequest({cache:this.cache,method:"POST",url:t||"/1/indexes/"+encodeURIComponent(this.indexName)+"/query",body:{params:e},hostType:"read",fallback:{method:"GET",url:"/1/indexes/"+encodeURIComponent(this.indexName),body:{params:e}},callback:n,additionalUA:i})},t.prototype.getObject=function(e,t,n){var i=this;1!==arguments.length&&"function"!=typeof t||(n=t,t=undefined);var r="";if(t!==undefined){r="?attributes=";for(var o=0;o<t.length;++o)0!==o&&(r+=","),r+=t[o]}return this.as._jsonRequest({method:"GET",url:"/1/indexes/"+encodeURIComponent(i.indexName)+"/"+encodeURIComponent(e)+r,hostType:"read",callback:n})},t.prototype.getObjects=function(e,n,t){var i=l(8),r=l(29),o="Usage: index.getObjects(arrayOfObjectIDs[, callback])";if(!i(e))throw new Error(o);var s=this;1!==arguments.length&&"function"!=typeof n||(t=n,n=undefined);var a={requests:r(e,function(e){var t={indexName:s.indexName,objectID:e};return n&&(t.attributesToRetrieve=n.join(",")),t})};return this.as._jsonRequest({method:"POST",url:"/1/indexes/*/objects",hostType:"read",body:a,callback:t})},t.prototype.as=null,t.prototype.indexName=null,t.prototype.typeAheadArgs=null,t.prototype.typeAheadValueOption=null},{23:23,24:24,25:25,26:26,29:29,30:30,31:31,8:8}],19:[function(e,t){"use strict";var n=e(14),i=e(20);t.exports=i(n)},{14:14,20:20}],20:[function(c,e){(function(a){"use strict";var l=c(6),u=l.Promise||c(3).Promise;e.exports=function(e,t){function i(e,t,n){return(n=c(24)(n||{}))._ua=n._ua||i.ua,new r(e,t,n)}function r(){e.apply(this,arguments)}var n=c(7),m=c(27),g=c(21),o=c(22),s=c(32);t=t||"","debug"===a.env.NODE_ENV&&c(1).enable("algoliasearch*"),i.version=c(34),i.ua="Algolia for vanilla JavaScript "+t+i.version,i.initPlaces=s(i),l.__algolia={debug:c(1),algoliasearch:i};var v={hasXMLHttpRequest:"XMLHttpRequest"in l,hasXDomainRequest:"XDomainRequest"in l};return v.hasXMLHttpRequest&&(v.cors="withCredentials"in new XMLHttpRequest),n(r,e),r.prototype._request=function(f,p){return new u(function(n,i){function e(){if(!u){var e;clearTimeout(l);try{e={body:JSON.parse(d.responseText),responseText:d.responseText,statusCode:d.status,headers:d.getAllResponseHeaders&&d.getAllResponseHeaders()||{}}}catch(t){e=new m.UnparsableJSON({more:d.responseText})}e instanceof m.UnparsableJSON?i(e):n(e)}}function t(e){u||(clearTimeout(l),i(new m.Network({more:e})))}function r(){u=!0,d.abort(),i(new m.RequestTimeout)}function o(){h=!0,clearTimeout(l),l=setTimeout(r,p.timeouts.complete)}function s(){h||o()}function a(){!h&&1<d.readyState&&o()}if(v.cors||v.hasXDomainRequest){f=g(f,p.headers);var l,u,c=p.body,d=v.cors?new XMLHttpRequest:new XDomainRequest,h=!1;l=setTimeout(r,p.timeouts.connect),d.onprogress=s,"onreadystatechange"in d&&(d.onreadystatechange=a),d.onload=e,d.onerror=t,d instanceof XMLHttpRequest?d.open(p.method,f,!0):d.open(p.method,f),v.cors&&(c&&("POST"===p.method?d.setRequestHeader("content-type","application/x-www-form-urlencoded"):d.setRequestHeader("content-type","application/json")),d.setRequestHeader("accept","application/json")),d.send(c)}else i(new m.Network("CORS not supported"))})},r.prototype._request.fallback=function(e,t){return e=g(e,t.headers),new u(function(n,i){o(e,t,function(e,t){e?i(e):n(t)})})},r.prototype._promise={reject:function(e){return u.reject(e)},resolve:function(e){return u.resolve(e)},delay:function(t){return new u(function(e){setTimeout(e,t)})},all:function(e){return u.all(e)}},i}}).call(this,c(12))},{1:1,12:12,21:21,22:22,24:24,27:27,3:3,32:32,34:34,6:6,7:7}],21:[function(e,t){"use strict";function n(e,t){return/\?/.test(e)?e+="&":e+="?",e+i(t)}t.exports=n;var i=e(13)},{13:13}],22:[function(e,t){"use strict";function n(e,t,n){function i(){t.debug("JSONP: success"),p||c||(p=!0,u||(t.debug("JSONP: Fail. Script loaded but did not call the callback"),o(),n(new g.JSONPScriptFail)))}function r(){"loaded"!==this.readyState&&"complete"!==this.readyState||i()}function o(){clearTimeout(m),h.onload=null,h.onreadystatechange=null,h.onerror=null,d.removeChild(h)}function s(){try{delete window[f],delete window[f+"_loaded"]}catch(e){window[f]=window[f+"_loaded"]=undefined}}function a(){t.debug("JSONP: Script timeout"),c=!0,o(),n(new g.RequestTimeout)}function l(){t.debug("JSONP: Script error"),p||c||(o(),n(new g.JSONPScriptError))}if("GET"===t.method){t.debug("JSONP: start");var u=!1,c=!1;v+=1;var d=document.getElementsByTagName("head")[0],h=document.createElement("script"),f="algoliaJSONP_"+v,p=!1;window[f]=function(e){s(),c?t.debug("JSONP: Late answer, ignoring"):(u=!0,o(),n(null,{body:e}))},e+="&callback="+f,t.jsonBody&&t.jsonBody.params&&(e+="&"+t.jsonBody.params);var m=setTimeout(a,t.timeouts.complete);h.onreadystatechange=r,h.onload=i,h.onerror=l,h.async=!0,h.defer=!0,h.src=e,d.appendChild(h)}else n(new Error("Method "+t.method+" "+e+" is not supported by JSONP."))}t.exports=n;var g=e(27),v=0},{27:27}],23:[function(e,t){function n(o,s){return function(e,t,n){if("function"==typeof e&&"object"==typeof t||"object"==typeof n)throw new a.AlgoliaSearchError("index.search usage is index.search(query, params, cb)");0===arguments.length||"function"==typeof e?(n=e,e=""):1!==arguments.length&&"function"!=typeof t||(n=t,t=undefined),"object"==typeof e&&null!==e?(t=e,e=undefined):e!==undefined&&null!==e||(e="");var i,r="";return e!==undefined&&(r+=o+"="+encodeURIComponent(e)),t!==undefined&&(t.additionalUA&&(i=t.additionalUA,delete t.additionalUA),r=this.as._getSearchParams(t,r)),this._search(r,s,n,i)}}t.exports=n;var a=e(27)},{27:27}],24:[function(e,t){t.exports=function(e){return JSON.parse(JSON.stringify(e))}},{}],25:[function(e,t){t.exports=function(e,t){function n(){return i||(console.warn(t),i=!0),e.apply(this,arguments)}var i=!1;return n}},{}],26:[function(e,t){t.exports=function(e,t){return"algoliasearch: `"+e+"` was replaced by `"+t+"`. Please see https://github.com/algolia/algoliasearch-client-javascript/wiki/Deprecated#"+e.toLowerCase().replace(/[\.\(\)]/g,"")}},{}],27:[function(r,e){"use strict";function i(e,t){var n=r(5),i=this;"function"==typeof Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):i.stack=(new Error).stack||"Cannot get a stacktrace, browser is too old",this.name="AlgoliaSearchError",this.message=e||"Unknown error",t&&n(t,function(e,t){i[t]=e})}function t(t,n){function e(){var e=Array.prototype.slice.call(arguments,0);"string"!=typeof e[0]&&e.unshift(n),i.apply(this,e),this.name="AlgoliaSearch"+t+"Error"}return o(e,i),e}var o=r(7);o(i,Error),e.exports={AlgoliaSearchError:i,UnparsableJSON:t("UnparsableJSON","Could not parse the incoming response as JSON, see err.more for details"),RequestTimeout:t("RequestTimeout","Request timedout before getting a response"),Network:t("Network","Network issue, see err.more for details"),JSONPScriptFail:t("JSONPScriptFail","<script> was loaded but did not call our provided callback"),JSONPScriptError:t("JSONPScriptError","<script> unable to load due to an `error` event on it"),Unknown:t("Unknown","Unknown error occured")}},{5:5,7:7}],28:[function(e,t){t.exports=function(e,t){t(e,0)}},{}],29:[function(e,t){var o=e(5);t.exports=function(n,i){var r=[];return o(n,function(e,t){r.push(i(e,t,n))}),r}},{5:5}],30:[function(e,t){var r=e(5);t.exports=function n(i){var e=Array.prototype.slice.call(arguments);return r(e,function(e){for(var t in e)e.hasOwnProperty(t)&&("object"==typeof i[t]&&"object"==typeof e[t]?i[t]=n({},i[t],e[t]):e[t]!==undefined&&(i[t]=e[t]))}),i}},{5:5}],31:[function(o,e){e.exports=function(t,n){var e=o(10),i=o(5),r={};return i(e(t),function(e){!0!==n(e)&&(r[e]=t[e])}),r}},{10:10,5:5}],32:[function(s,e){function t(o){return function(e,t,n){var i=s(24);(n=n&&i(n)||{}).hosts=n.hosts||["places-dsn.algolia.net","places-1.algolianet.com","places-2.algolianet.com","places-3.algolianet.com"],0!==arguments.length&&"object"!=typeof e&&e!==undefined||(t=e="",n._allowEmptyCredentials=!0);var r=o(e,t,n).initIndex("places");return r.search=a("query","/1/places/query"),r.getObject=function(e,t){return this.as._jsonRequest({method:"GET",url:"/1/places/"+encodeURIComponent(e),hostType:"read",callback:t})},r}}e.exports=t;var a=s(23)},{23:23,24:24}],33:[function(c,d){(function(r){function o(e,t){return s("localStorage failed with",t),n(),(i=l).get(e)}function e(e,t){return 1===arguments.length?i.get(e):i.set(e,t)}function t(){try{return"localStorage"in r&&null!==r.localStorage&&(r.localStorage[a]||r.localStorage.setItem(a,JSON.stringify({})),!0)}catch(e){return!1}}function n(){try{r.localStorage.removeItem(a)}catch(e){}}var i,s=c(1)("algoliasearch:src/hostIndexState.js"),a="algoliasearch-client-js",l={state:{},set:function(e,t){return this.state[e]=t,this.state[e]},get:function(e){return this.state[e]||null}},u={set:function(e,t){l.set(e,t);try{var n=JSON.parse(r.localStorage[a]);return n[e]=t,r.localStorage[a]=JSON.stringify(n),n[e]}catch(i){return o(e,i)}},get:function(e){try{return JSON.parse(r.localStorage[a])[e]||null}catch(t){return o(e,t)}}};i=t()?u:l,d.exports={get:e,set:e,supportsLocalStorage:t}}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{1:1}],34:[function(e,t){"use strict";t.exports="3.27.1"},{}]},{},[19])(19)}),function(e,t){
"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):e.moment=t()}(this,function(){"use strict";function d(){return tr.apply(null,arguments)}function e(e){tr=e}function s(e){return e instanceof Array||"[object Array]"===Object.prototype.toString.call(e)}function a(e){return null!=e&&"[object Object]"===Object.prototype.toString.call(e)}function u(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function l(e){if(Object.getOwnPropertyNames)return 0===Object.getOwnPropertyNames(e).length;var t;for(t in e)if(u(e,t))return!1;return!0}function c(e){return void 0===e}function h(e){return"number"==typeof e||"[object Number]"===Object.prototype.toString.call(e)}function r(e){return e instanceof Date||"[object Date]"===Object.prototype.toString.call(e)}function i(e,t){var n,i=[],r=e.length;for(n=0;n<r;++n)i.push(t(e[n],n));return i}function f(e,t){for(var n in t)u(t,n)&&(e[n]=t[n]);return u(t,"toString")&&(e.toString=t.toString),u(t,"valueOf")&&(e.valueOf=t.valueOf),e}function p(e,t,n,i){return Tt(e,t,n,i,!0).utc()}function t(){return{empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidEra:null,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1,parsedDateParts:[],era:null,meridiem:null,rfc2822:!1,weekdayMismatch:!1}}function m(e){return null==e._pf&&(e._pf=t()),e._pf}function g(e){if(null==e._isValid){var t=m(e),n=nr.call(t.parsedDateParts,function(e){return null!=e}),i=!isNaN(e._d.getTime())&&t.overflow<0&&!t.empty&&!t.invalidEra&&!t.invalidMonth&&!t.invalidWeekday&&!t.weekdayMismatch&&!t.nullInput&&!t.invalidFormat&&!t.userInvalidated&&(!t.meridiem||t.meridiem&&n);if(e._strict&&(i=i&&0===t.charsLeftOver&&0===t.unusedTokens.length&&t.bigHour===undefined),null!=Object.isFrozen&&Object.isFrozen(e))return i;e._isValid=i}return e._isValid}function o(e){var t=p(NaN);return null!=e?f(m(t),e):m(t).userInvalidated=!0,t}function v(e,t){var n,i,r,o=rr.length;if(c(t._isAMomentObject)||(e._isAMomentObject=t._isAMomentObject),c(t._i)||(e._i=t._i),c(t._f)||(e._f=t._f),c(t._l)||(e._l=t._l),c(t._strict)||(e._strict=t._strict),c(t._tzm)||(e._tzm=t._tzm),c(t._isUTC)||(e._isUTC=t._isUTC),c(t._offset)||(e._offset=t._offset),c(t._pf)||(e._pf=m(t)),c(t._locale)||(e._locale=t._locale),0<o)for(n=0;n<o;n++)c(r=t[i=rr[n]])||(e[i]=r);return e}function y(e){v(this,e),this._d=new Date(null!=e._d?e._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),!1===or&&(or=!0,d.updateOffset(this),or=!1)}function b(e){return e instanceof y||null!=e&&null!=e._isAMomentObject}function w(e){!1===d.suppressDeprecationWarnings&&"undefined"!=typeof console&&console.warn&&console.warn("Deprecation warning: "+e)}function n(s,a){var l=!0;return f(function(e){if(null!=d.deprecationHandler&&d.deprecationHandler(null,s),l){var t,n,i,r=[],o=arguments.length;for(n=0;n<o;n++){if(t="","object"==typeof arguments[n]){for(i in t+="\n["+n+"] ",e)u(e,i)&&(t+=i+": "+e[i]+", ");t=t.slice(0,-2)}else t=arguments[n];r.push(t)}w(s+"\nArguments: "+Array.prototype.slice.call(r).join("")+"\n"+(new Error).stack),l=!1}return a.apply(this,arguments)},a)}function S(e,t){null!=d.deprecationHandler&&d.deprecationHandler(e,t),sr[e]||(w(t),sr[e]=!0)}function k(e){return"undefined"!=typeof Function&&e instanceof Function||"[object Function]"===Object.prototype.toString.call(e)}function x(e){var t,n;for(n in e)u(e,n)&&(k(t=e[n])?this[n]=t:this["_"+n]=t);this._config=e,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)}function _(e,t){var n,i=f({},e);for(n in t)u(t,n)&&(a(e[n])&&a(t[n])?(i[n]={},f(i[n],e[n]),f(i[n],t[n])):null!=t[n]?i[n]=t[n]:delete i[n]);for(n in e)u(e,n)&&!u(t,n)&&a(e[n])&&(i[n]=f({},i[n]));return i}function C(e){null!=e&&this.set(e)}function T(e,t,n){var i=this._calendar[e]||this._calendar.sameElse;return k(i)?i.call(t,n):i}function E(e,t,n){var i=""+Math.abs(e),r=t-i.length;return(0<=e?n?"+":"":"-")+Math.pow(10,Math.max(0,r)).toString().substr(1)+i}function P(e,t,n,i){var r=i;"string"==typeof i&&(r=function(){return this[i]()}),e&&(hr[e]=r),t&&(hr[t[0]]=function(){return E(r.apply(this,arguments),t[1],t[2])}),n&&(hr[n]=function(){return this.localeData().ordinal(r.apply(this,arguments),e)})}function O(e){return e.match(/\[[\s\S]/)?e.replace(/^\[|\]$/g,""):e.replace(/\\/g,"")}function N(i){var e,r,o=i.match(ur);for(e=0,r=o.length;e<r;e++)hr[o[e]]?o[e]=hr[o[e]]:o[e]=O(o[e]);return function(e){var t,n="";for(t=0;t<r;t++)n+=k(o[t])?o[t].call(e,i):o[t];return n}}function A(e,t){return e.isValid()?(t=D(t,e.localeData()),dr[t]=dr[t]||N(t),dr[t](e)):e.localeData().invalidDate()}function D(e,t){function n(e){return t.longDateFormat(e)||e}var i=5;for(cr.lastIndex=0;0<=i&&cr.test(e);)e=e.replace(cr,n),cr.lastIndex=0,i-=1;return e}function F(e){var t=this._longDateFormat[e],n=this._longDateFormat[e.toUpperCase()];return t||!n?t:(this._longDateFormat[e]=n.match(ur).map(function(e){return"MMMM"===e||"MM"===e||"DD"===e||"dddd"===e?e.slice(1):e}).join(""),this._longDateFormat[e])}function I(){return this._invalidDate}function L(e){return this._ordinal.replace("%d",e)}function M(e,t,n,i){var r=this._relativeTime[n];return k(r)?r(e,t,n,i):r.replace(/%d/i,e)}function j(e,t){var n=this._relativeTime[0<e?"future":"past"];return k(n)?n(t):n.replace(/%s/i,t)}function R(e,t){var n=e.toLowerCase();yr[n]=yr[n+"s"]=yr[t]=e}function V(e){return"string"==typeof e?yr[e]||yr[e.toLowerCase()]:undefined}function $(e){var t,n,i={};for(n in e)u(e,n)&&(t=V(n))&&(i[t]=e[n]);return i}function U(e,t){br[e]=t}function B(e){var t,n=[];for(t in e)u(e,t)&&n.push({unit:t,priority:br[t]});return n.sort(function(e,t){return e.priority-t.priority}),n}function z(e){return e%4==0&&e%100!=0||e%400==0}function H(e){return e<0?Math.ceil(e)||0:Math.floor(e)}function q(e){var t=+e,n=0;return 0!==t&&isFinite(t)&&(n=H(t)),n}function W(t,n){return function(e){return null!=e?(G(this,t,e),d.updateOffset(this,n),this):Y(this,t)}}function Y(e,t){return e.isValid()?e._d["get"+(e._isUTC?"UTC":"")+t]():NaN}function G(e,t,n){e.isValid()&&!isNaN(n)&&("FullYear"===t&&z(e.year())&&1===e.month()&&29===e.date()?(n=q(n),e._d["set"+(e._isUTC?"UTC":"")+t](n,e.month(),oe(n,e.month()))):e._d["set"+(e._isUTC?"UTC":"")+t](n))}function K(e){return k(this[e=V(e)])?this[e]():this}function Z(e,t){if("object"==typeof e){var n,i=B(e=$(e)),r=i.length;for(n=0;n<r;n++)this[i[n].unit](e[i[n].unit])}else if(k(this[e=V(e)]))return this[e](t);return this}function Q(e,t,n){ar[e]=k(t)?t:function(e){return e&&n?n:t}}function X(e,t){return u(ar,e)?ar[e](t._strict,t._locale):new RegExp(J(e))}function J(e){return ee(e.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(e,t,n,i,r){return t||n||i||r}))}function ee(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}function te(e,n){var t,i,r=n;for("string"==typeof e&&(e=[e]),h(n)&&(r=function(e,t){t[n]=q(e)}),i=e.length,t=0;t<i;t++)Rr[e[t]]=r}function ne(e,r){te(e,function(e,t,n,i){n._w=n._w||{},r(e,n._w,n,i)})}function ie(e,t,n){null!=t&&u(Rr,e)&&Rr[e](t,n._a,n,e)}function re(e,t){return(e%t+t)%t}function oe(e,t){if(isNaN(e)||isNaN(t))return NaN;var n=re(t,12);return e+=(t-n)/12,1===n?z(e)?29:28:31-n%7%2}function se(e,t){return e?s(this._months)?this._months[e.month()]:this._months[(this._months.isFormat||Zr).test(t)?"format":"standalone"][e.month()]:s(this._months)?this._months:this._months.standalone}function ae(e,t){return e?s(this._monthsShort)?this._monthsShort[e.month()]:this._monthsShort[Zr.test(t)?"format":"standalone"][e.month()]:s(this._monthsShort)?this._monthsShort:this._monthsShort.standalone}function le(e,t,n){var i,r,o,s=e.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],i=0;i<12;++i)o=p([2e3,i]),this._shortMonthsParse[i]=this.monthsShort(o,"").toLocaleLowerCase(),this._longMonthsParse[i]=this.months(o,"").toLocaleLowerCase();return n?"MMM"===t?-1!==(r=jr.call(this._shortMonthsParse,s))?r:null:-1!==(r=jr.call(this._longMonthsParse,s))?r:null:"MMM"===t?-1!==(r=jr.call(this._shortMonthsParse,s))?r:-1!==(r=jr.call(this._longMonthsParse,s))?r:null:-1!==(r=jr.call(this._longMonthsParse,s))?r:-1!==(r=jr.call(this._shortMonthsParse,s))?r:null}function ue(e,t,n){var i,r,o;if(this._monthsParseExact)return le.call(this,e,t,n);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),i=0;i<12;i++){if(r=p([2e3,i]),n&&!this._longMonthsParse[i]&&(this._longMonthsParse[i]=new RegExp("^"+this.months(r,"").replace(".","")+"$","i"),this._shortMonthsParse[i]=new RegExp("^"+this.monthsShort(r,"").replace(".","")+"$","i")),n||this._monthsParse[i]||(o="^"+this.months(r,"")+"|^"+this.monthsShort(r,""),this._monthsParse[i]=new RegExp(o.replace(".",""),"i")),n&&"MMMM"===t&&this._longMonthsParse[i].test(e))return i;if(n&&"MMM"===t&&this._shortMonthsParse[i].test(e))return i;if(!n&&this._monthsParse[i].test(e))return i}}function ce(e,t){var n;if(!e.isValid())return e;if("string"==typeof t)if(/^\d+$/.test(t))t=q(t);else if(!h(t=e.localeData().monthsParse(t)))return e;return n=Math.min(e.date(),oe(e.year(),t)),e._d["set"+(e._isUTC?"UTC":"")+"Month"](t,n),e}function de(e){return null!=e?(ce(this,e),d.updateOffset(this,!0),this):Y(this,"Month")}function he(){return oe(this.year(),this.month())}function fe(e){return this._monthsParseExact?(u(this,"_monthsRegex")||me.call(this),e?this._monthsShortStrictRegex:this._monthsShortRegex):(u(this,"_monthsShortRegex")||(this._monthsShortRegex=Qr),this._monthsShortStrictRegex&&e?this._monthsShortStrictRegex:this._monthsShortRegex)}function pe(e){return this._monthsParseExact?(u(this,"_monthsRegex")||me.call(this),e?this._monthsStrictRegex:this._monthsRegex):(u(this,"_monthsRegex")||(this._monthsRegex=Xr),this._monthsStrictRegex&&e?this._monthsStrictRegex:this._monthsRegex)}function me(){function e(e,t){return t.length-e.length}var t,n,i=[],r=[],o=[];for(t=0;t<12;t++)n=p([2e3,t]),i.push(this.monthsShort(n,"")),r.push(this.months(n,"")),o.push(this.months(n,"")),o.push(this.monthsShort(n,""));for(i.sort(e),r.sort(e),o.sort(e),t=0;t<12;t++)i[t]=ee(i[t]),r[t]=ee(r[t]);for(t=0;t<24;t++)o[t]=ee(o[t]);this._monthsRegex=new RegExp("^("+o.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+r.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+i.join("|")+")","i")}function ge(e){return z(e)?366:365}function ve(){return z(this.year())}function ye(e,t,n,i,r,o,s){var a;return e<100&&0<=e?(a=new Date(e+400,t,n,i,r,o,s),isFinite(a.getFullYear())&&a.setFullYear(e)):a=new Date(e,t,n,i,r,o,s),a}function be(e){var t,n;return e<100&&0<=e?((n=Array.prototype.slice.call(arguments))[0]=e+400,t=new Date(Date.UTC.apply(null,n)),isFinite(t.getUTCFullYear())&&t.setUTCFullYear(e)):t=new Date(Date.UTC.apply(null,arguments)),t}function we(e,t,n){var i=7+t-n;return-((7+be(e,0,i).getUTCDay()-t)%7)+i-1}function Se(e,t,n,i,r){var o,s,a=1+7*(t-1)+(7+n-i)%7+we(e,i,r);return a<=0?s=ge(o=e-1)+a:a>ge(e)?(o=e+1,s=a-ge(e)):(o=e,s=a),{year:o,dayOfYear:s}}function ke(e,t,n){var i,r,o=we(e.year(),t,n),s=Math.floor((e.dayOfYear()-o-1)/7)+1;return s<1?i=s+xe(r=e.year()-1,t,n):s>xe(e.year(),t,n)?(i=s-xe(e.year(),t,n),r=e.year()+1):(r=e.year(),i=s),{week:i,year:r}}function xe(e,t,n){var i=we(e,t,n),r=we(e+1,t,n);return(ge(e)-i+r)/7}function _e(e){return ke(e,this._week.dow,this._week.doy).week}function Ce(){return this._week.dow}function Te(){return this._week.doy}function Ee(e){var t=this.localeData().week(this);return null==e?t:this.add(7*(e-t),"d")}function Pe(e){var t=ke(this,1,4).week;return null==e?t:this.add(7*(e-t),"d")}function Oe(e,t){return"string"!=typeof e?e:isNaN(e)?"number"==typeof(e=t.weekdaysParse(e))?e:null:parseInt(e,10)}function Ne(e,t){return"string"==typeof e?t.weekdaysParse(e)%7||7:isNaN(e)?null:e}function Ae(e,t){return e.slice(t,7).concat(e.slice(0,t))}function De(e,t){var n=s(this._weekdays)?this._weekdays:this._weekdays[e&&!0!==e&&this._weekdays.isFormat.test(t)?"format":"standalone"];return!0===e?Ae(n,this._week.dow):e?n[e.day()]:n}function Fe(e){return!0===e?Ae(this._weekdaysShort,this._week.dow):e?this._weekdaysShort[e.day()]:this._weekdaysShort}function Ie(e){return!0===e?Ae(this._weekdaysMin,this._week.dow):e?this._weekdaysMin[e.day()]:this._weekdaysMin}function Le(e,t,n){var i,r,o,s=e.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],i=0;i<7;++i)o=p([2e3,1]).day(i),this._minWeekdaysParse[i]=this.weekdaysMin(o,"").toLocaleLowerCase(),this._shortWeekdaysParse[i]=this.weekdaysShort(o,"").toLocaleLowerCase(),this._weekdaysParse[i]=this.weekdays(o,"").toLocaleLowerCase();return n?"dddd"===t?-1!==(r=jr.call(this._weekdaysParse,s))?r:null:"ddd"===t?-1!==(r=jr.call(this._shortWeekdaysParse,s))?r:null:-1!==(r=jr.call(this._minWeekdaysParse,s))?r:null:"dddd"===t?-1!==(r=jr.call(this._weekdaysParse,s))?r:-1!==(r=jr.call(this._shortWeekdaysParse,s))?r:-1!==(r=jr.call(this._minWeekdaysParse,s))?r:null:"ddd"===t?-1!==(r=jr.call(this._shortWeekdaysParse,s))?r:-1!==(r=jr.call(this._weekdaysParse,s))?r:-1!==(r=jr.call(this._minWeekdaysParse,s))?r:null:-1!==(r=jr.call(this._minWeekdaysParse,s))?r:-1!==(r=jr.call(this._weekdaysParse,s))?r:-1!==(r=jr.call(this._shortWeekdaysParse,s))?r:null}function Me(e,t,n){var i,r,o;if(this._weekdaysParseExact)return Le.call(this,e,t,n);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),i=0;i<7;i++){if(r=p([2e3,1]).day(i),n&&!this._fullWeekdaysParse[i]&&(this._fullWeekdaysParse[i]=new RegExp("^"+this.weekdays(r,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[i]=new RegExp("^"+this.weekdaysShort(r,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[i]=new RegExp("^"+this.weekdaysMin(r,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[i]||(o="^"+this.weekdays(r,"")+"|^"+this.weekdaysShort(r,"")+"|^"+this.weekdaysMin(r,""),this._weekdaysParse[i]=new RegExp(o.replace(".",""),"i")),n&&"dddd"===t&&this._fullWeekdaysParse[i].test(e))return i;if(n&&"ddd"===t&&this._shortWeekdaysParse[i].test(e))return i;if(n&&"dd"===t&&this._minWeekdaysParse[i].test(e))return i;if(!n&&this._weekdaysParse[i].test(e))return i}}function je(e){if(!this.isValid())return null!=e?this:NaN;var t=this._isUTC?this._d.getUTCDay():this._d.getDay();return null!=e?(e=Oe(e,this.localeData()),this.add(e-t,"d")):t}function Re(e){if(!this.isValid())return null!=e?this:NaN;var t=(this.day()+7-this.localeData()._week.dow)%7;return null==e?t:this.add(e-t,"d")}function Ve(e){if(!this.isValid())return null!=e?this:NaN;if(null!=e){var t=Ne(e,this.localeData());return this.day(this.day()%7?t:t-7)}return this.day()||7}function $e(e){return this._weekdaysParseExact?(u(this,"_weekdaysRegex")||ze.call(this),e?this._weekdaysStrictRegex:this._weekdaysRegex):(u(this,"_weekdaysRegex")||(this._weekdaysRegex=ro),this._weekdaysStrictRegex&&e?this._weekdaysStrictRegex:this._weekdaysRegex)}function Ue(e){return this._weekdaysParseExact?(u(this,"_weekdaysRegex")||ze.call(this),e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(u(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=oo),this._weekdaysShortStrictRegex&&e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)}function Be(e){return this._weekdaysParseExact?(u(this,"_weekdaysRegex")||ze.call(this),e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(u(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=so),this._weekdaysMinStrictRegex&&e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)}function ze(){function e(e,t){return t.length-e.length}var t,n,i,r,o,s=[],a=[],l=[],u=[];for(t=0;t<7;t++)n=p([2e3,1]).day(t),i=ee(this.weekdaysMin(n,"")),r=ee(this.weekdaysShort(n,"")),o=ee(this.weekdays(n,"")),s.push(i),a.push(r),l.push(o),u.push(i),u.push(r),u.push(o);s.sort(e),a.sort(e),l.sort(e),u.sort(e),this._weekdaysRegex=new RegExp("^("+u.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+l.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+a.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+s.join("|")+")","i")}function He(){return this.hours()%12||12}function qe(){return this.hours()||24}function We(e,t){P(e,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)})}function Ye(e,t){return t._meridiemParse}function Ge(e){return"p"===(e+"").toLowerCase().charAt(0)}function Ke(e,t,n){return 11<e?n?"pm":"PM":n?"am":"AM"}function Ze(e,t){var n,i=Math.min(e.length,t.length);for(n=0;n<i;n+=1)if(e[n]!==t[n])return n;return i}function Qe(e){return e?e.toLowerCase().replace("_","-"):e}function Xe(e){for(var t,n,i,r,o=0;o<e.length;){for(t=(r=Qe(e[o]).split("-")).length,n=(n=Qe(e[o+1]))?n.split("-"):null;0<t;){if(i=et(r.slice(0,t).join("-")))return i;if(n&&n.length>=t&&Ze(r,n)>=t-1)break;t--}o++}return ao}function Je(e){return null!=e.match("^[^/\\\\]*$")}function et(e){var t=null;if(ho[e]===undefined&&"undefined"!=typeof module&&module&&module.exports&&Je(e))try{t=ao._abbr,require("./locale/"+e),tt(t)}catch(n){ho[e]=null}return ho[e]}function tt(e,t){var n;return e&&((n=c(t)?rt(e):nt(e,t))?ao=n:"undefined"!=typeof console&&console.warn&&console.warn("Locale "+e+" not found. Did you forget to load it?")),ao._abbr}function nt(e,t){if(null!==t){var n,i=co;if(t.abbr=e,null!=ho[e])S("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),i=ho[e]._config;else if(null!=t.parentLocale)if(null!=ho[t.parentLocale])i=ho[t.parentLocale]._config;else{if(null==(n=et(t.parentLocale)))return fo[t.parentLocale]||(fo[t.parentLocale]=[]),fo[t.parentLocale].push({name:e,config:t}),null;i=n._config}return ho[e]=new C(_(i,t)),fo[e]&&fo[e].forEach(function(e){nt(e.name,e.config)}),tt(e),ho[e]}return delete ho[e],null}function it(e,t){if(null!=t){var n,i,r=co;null!=ho[e]&&null!=ho[e].parentLocale?ho[e].set(_(ho[e]._config,t)):(null!=(i=et(e))&&(r=i._config),t=_(r,t),null==i&&(t.abbr=e),(n=new C(t)).parentLocale=ho[e],ho[e]=n),tt(e)}else null!=ho[e]&&(null!=ho[e].parentLocale?(ho[e]=ho[e].parentLocale,e===tt()&&tt(e)):null!=ho[e]&&delete ho[e]);return ho[e]}function rt(e){var t;if(e&&e._locale&&e._locale._abbr&&(e=e._locale._abbr),!e)return ao;if(!s(e)){if(t=et(e))return t;e=[e]}return Xe(e)}function ot(){return ir(ho)}function st(e){var t,n=e._a;return n&&-2===m(e).overflow&&(t=n[$r]<0||11<n[$r]?$r:n[Ur]<1||n[Ur]>oe(n[Vr],n[$r])?Ur:n[Br]<0||24<n[Br]||24===n[Br]&&(0!==n[zr]||0!==n[Hr]||0!==n[qr])?Br:n[zr]<0||59<n[zr]?zr:n[Hr]<0||59<n[Hr]?Hr:n[qr]<0||999<n[qr]?qr:-1,m(e)._overflowDayOfYear&&(t<Vr||Ur<t)&&(t=Ur),m(e)._overflowWeeks&&-1===t&&(t=Wr),m(e)._overflowWeekday&&-1===t&&(t=Yr),m(e).overflow=t),e}function at(e){var t,n,i,r,o,s,a=e._i,l=po.exec(a)||mo.exec(a),u=vo.length,c=yo.length;if(l){for(m(e).iso=!0,t=0,n=u;t<n;t++)if(vo[t][1].exec(l[1])){r=vo[t][0],i=!1!==vo[t][2];break}if(null==r)return void(e._isValid=!1);if(l[3]){for(t=0,n=c;t<n;t++)if(yo[t][1].exec(l[3])){o=(l[2]||" ")+yo[t][0];break}if(null==o)return void(e._isValid=!1)}if(!i&&null!=o)return void(e._isValid=!1);if(l[4]){if(!go.exec(l[4]))return void(e._isValid=!1);s="Z"}e._f=r+(o||"")+(s||""),bt(e)}else e._isValid=!1}function lt(e,t,n,i,r,o){var s=[ut(e),Kr.indexOf(t),parseInt(n,10),parseInt(i,10),parseInt(r,10)];return o&&s.push(parseInt(o,10)),s}function ut(e){var t=parseInt(e,10);return t<=49?2e3+t:t<=999?1900+t:t}function ct(e){return e.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,"")}function dt(e,t,n){if(e&&no.indexOf(e)!==new Date(t[0],t[1],t[2]).getDay())return m(n).weekdayMismatch=!0,n._isValid=!1;return!0}function ht(e,t,n){if(e)return So[e];if(t)return 0;var i=parseInt(n,10),r=i%100;return 60*((i-r)/100)+r}function ft(e){var t,n=wo.exec(ct(e._i));if(n){if(t=lt(n[4],n[3],n[2],n[5],n[6],n[7]),!dt(n[1],t,e))return;e._a=t,e._tzm=ht(n[8],n[9],n[10]),e._d=be.apply(null,e._a),e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),m(e).rfc2822=!0}else e._isValid=!1}function pt(e){var t=bo.exec(e._i);null===t?(at(e),!1===e._isValid&&(delete e._isValid,ft(e),!1===e._isValid&&(delete e._isValid,e._strict?e._isValid=!1:d.createFromInputFallback(e)))):e._d=new Date(+t[1])}function mt(e,t,n){return null!=e?e:null!=t?t:n}function gt(e){var t=new Date(d.now());return e._useUTC?[t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate()]:[t.getFullYear(),t.getMonth(),t.getDate()]}function vt(e){var t,n,i,r,o,s=[];if(!e._d){for(i=gt(e),e._w&&null==e._a[Ur]&&null==e._a[$r]&&yt(e),null!=e._dayOfYear&&(o=mt(e._a[Vr],i[Vr]),(e._dayOfYear>ge(o)||0===e._dayOfYear)&&(m(e)._overflowDayOfYear=!0),n=be(o,0,e._dayOfYear),e._a[$r]=n.getUTCMonth(),e._a[Ur]=n.getUTCDate()),t=0;t<3&&null==e._a[t];++t)e._a[t]=s[t]=i[t];for(;t<7;t++)e._a[t]=s[t]=null==e._a[t]?2===t?1:0:e._a[t];24===e._a[Br]&&0===e._a[zr]&&0===e._a[Hr]&&0===e._a[qr]&&(e._nextDay=!0,e._a[Br]=0),e._d=(e._useUTC?be:ye).apply(null,s),r=e._useUTC?e._d.getUTCDay():e._d.getDay(),null!=e._tzm&&e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),e._nextDay&&(e._a[Br]=24),e._w&&"undefined"!=typeof e._w.d&&e._w.d!==r&&(m(e).weekdayMismatch=!0)}}function yt(e){var t,n,i,r,o,s,a,l,u;null!=(t=e._w).GG||null!=t.W||null!=t.E?(o=1,s=4,n=mt(t.GG,e._a[Vr],ke(Et(),1,4).year),i=mt(t.W,1),((r=mt(t.E,1))<1||7<r)&&(l=!0)):(o=e._locale._week.dow,s=e._locale._week.doy,u=ke(Et(),o,s),n=mt(t.gg,e._a[Vr],u.year),i=mt(t.w,u.week),null!=t.d?((r=t.d)<0||6<r)&&(l=!0):null!=t.e?(r=t.e+o,(t.e<0||6<t.e)&&(l=!0)):r=o),i<1||i>xe(n,o,s)?m(e)._overflowWeeks=!0:null!=l?m(e)._overflowWeekday=!0:(a=Se(n,i,r,o,s),e._a[Vr]=a.year,e._dayOfYear=a.dayOfYear)}function bt(e){if(e._f!==d.ISO_8601)if(e._f!==d.RFC_2822){e._a=[],m(e).empty=!0;var t,n,i,r,o,s,a,l=""+e._i,u=l.length,c=0;for(a=(i=D(e._f,e._locale).match(ur)||[]).length,t=0;t<a;t++)r=i[t],(n=(l.match(X(r,e))||[])[0])&&(0<(o=l.substr(0,l.indexOf(n))).length&&m(e).unusedInput.push(o),l=l.slice(l.indexOf(n)+n.length),c+=n.length),hr[r]?(n?m(e).empty=!1:m(e).unusedTokens.push(r),ie(r,n,e)):e._strict&&!n&&m(e).unusedTokens.push(r);m(e).charsLeftOver=u-c,0<l.length&&m(e).unusedInput.push(l),e._a[Br]<=12&&!0===m(e).bigHour&&0<e._a[Br]&&(m(e).bigHour=undefined),m(e).parsedDateParts=e._a.slice(0),m(e).meridiem=e._meridiem,e._a[Br]=wt(e._locale,e._a[Br],e._meridiem),null!==(s=m(e).era)&&(e._a[Vr]=e._locale.erasConvertYear(s,e._a[Vr])),vt(e),st(e)}else ft(e);else at(e)}function wt(e,t,n){var i;return null==n?t:null!=e.meridiemHour?e.meridiemHour(t,n):(null!=e.isPM&&((i=e.isPM(n))&&t<12&&(t+=12),i||12!==t||(t=0)),t)}function St(e){var t,n,i,r,o,s,a=!1,l=e._f.length;if(0===l)return m(e).invalidFormat=!0,void(e._d=new Date(NaN));for(r=0;r<l;r++)o=0,s=!1,t=v({},e),null!=e._useUTC&&(t._useUTC=e._useUTC),t._f=e._f[r],bt(t),g(t)&&(s=!0),o+=m(t).charsLeftOver,o+=10*m(t).unusedTokens.length,m(t).score=o,a?o<i&&(i=o,n=t):(null==i||o<i||s)&&(i=o,n=t,s&&(a=!0));f(e,n||t)}function kt(e){if(!e._d){var t=$(e._i),n=t.day===undefined?t.date:t.day;e._a=i([t.year,t.month,n,t.hour,t.minute,t.second,t.millisecond],function(e){return e&&parseInt(e,10)}),vt(e)}}function xt(e){var t=new y(st(_t(e)));return t._nextDay&&(t.add(1,"d"),t._nextDay=undefined),t}function _t(e){var t=e._i,n=e._f;return e._locale=e._locale||rt(e._l),null===t||n===undefined&&""===t?o({nullInput:!0}):("string"==typeof t&&(e._i=t=e._locale.preparse(t)),b(t)?new y(st(t)):(r(t)?e._d=t:s(n)?St(e):n?bt(e):Ct(e),g(e)||(e._d=null),e))}function Ct(e){var t=e._i;c(t)?e._d=new Date(d.now()):r(t)?e._d=new Date(t.valueOf()):"string"==typeof t?pt(e):s(t)?(e._a=i(t.slice(0),function(e){return parseInt(e,10)}),vt(e)):a(t)?kt(e):h(t)?e._d=new Date(t):d.createFromInputFallback(e)}function Tt(e,t,n,i,r){var o={};return!0!==t&&!1!==t||(i=t,t=undefined),!0!==n&&!1!==n||(i=n,n=undefined),(a(e)&&l(e)||s(e)&&0===e.length)&&(e=undefined),o._isAMomentObject=!0,o._useUTC=o._isUTC=r,o._l=n,o._i=e,o._f=t,o._strict=i,xt(o)}function Et(e,t,n,i){return Tt(e,t,n,i,!1)}function Pt(e,t){var n,i;if(1===t.length&&s(t[0])&&(t=t[0]),!t.length)return Et();for(n=t[0],i=1;i<t.length;++i)t[i].isValid()&&!t[i][e](n)||(n=t[i]);return n}function Ot(){return Pt("isBefore",[].slice.call(arguments,0))}function Nt(){return Pt("isAfter",[].slice.call(arguments,0))}function At(e){var t,n,i=!1,r=Co.length;for(t in e)if(u(e,t)&&(-1===jr.call(Co,t)||null!=e[t]&&isNaN(e[t])))return!1;for(n=0;n<r;++n)if(e[Co[n]]){if(i)return!1;parseFloat(e[Co[n]])!==q(e[Co[n]])&&(i=!0)}return!0}function Dt(){return this._isValid}function Ft(){return Jt(NaN)}function It(e){var t=$(e),n=t.year||0,i=t.quarter||0,r=t.month||0,o=t.week||t.isoWeek||0,s=t.day||0,a=t.hour||0,l=t.minute||0,u=t.second||0,c=t.millisecond||0;this._isValid=At(t),this._milliseconds=+c+1e3*u+6e4*l+1e3*a*60*60,this._days=+s+7*o,this._months=+r+3*i+12*n,this._data={},this._locale=rt(),this._bubble()}function Lt(e){return e instanceof It}function Mt(e){return e<0?-1*Math.round(-1*e):Math.round(e)}function jt(e,t,n){var i,r=Math.min(e.length,t.length),o=Math.abs(e.length-t.length),s=0;for(i=0;i<r;i++)(n&&e[i]!==t[i]||!n&&q(e[i])!==q(t[i]))&&s++;return s+o}function Rt(e,n){P(e,0,0,function(){var e=this.utcOffset(),t="+";return e<0&&(e=-e,t="-"),t+E(~~(e/60),2)+n+E(~~e%60,2)})}function Vt(e,t){var n,i,r=(t||"").match(e);return null===r?null:0===(i=60*(n=((r[r.length-1]||[])+"").match(To)||["-",0,0])[1]+q(n[2]))?0:"+"===n[0]?i:-i}function $t(e,t){var n,i;return t._isUTC?(n=t.clone(),i=(b(e)||r(e)?e.valueOf():Et(e).valueOf())-n.valueOf(),n._d.setTime(n._d.valueOf()+i),d.updateOffset(n,!1),n):Et(e).local()}function Ut(e){return-Math.round(e._d.getTimezoneOffset())}function Bt(e,t,n){var i,r=this._offset||0;if(!this.isValid())return null!=e?this:NaN;if(null!=e){if("string"==typeof e){if(null===(e=Vt(Ir,e)))return this}else Math.abs(e)<16&&!n&&(e*=60);return!this._isUTC&&t&&(i=Ut(this)),this._offset=e,this._isUTC=!0,null!=i&&this.add(i,"m"),r!==e&&(!t||this._changeInProgress?on(this,Jt(e-r,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,d.updateOffset(this,!0),this._changeInProgress=null)),this}return this._isUTC?r:Ut(this)}function zt(e,t){return null!=e?("string"!=typeof e&&(e=-e),this.utcOffset(e,t),this):-this.utcOffset()}function Ht(e){return this.utcOffset(0,e)}function qt(e){return this._isUTC&&(this.utcOffset(0,e),this._isUTC=!1,e&&this.subtract(Ut(this),"m")),this}function Wt(){if(null!=this._tzm)this.utcOffset(this._tzm,!1,!0);else if("string"==typeof this._i){var e=Vt(Fr,this._i);null!=e?this.utcOffset(e):this.utcOffset(0,!0)}return this}function Yt(e){return!!this.isValid()&&(e=e?Et(e).utcOffset():0,(this.utcOffset()-e)%60==0)}function Gt(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function Kt(){if(!c(this._isDSTShifted))return this._isDSTShifted;var e,t={};return v(t,this),(t=_t(t))._a?(e=t._isUTC?p(t._a):Et(t._a),this._isDSTShifted=this.isValid()&&0<jt(t._a,e.toArray())):this._isDSTShifted=!1,this._isDSTShifted}function Zt(){return!!this.isValid()&&!this._isUTC}function Qt(){return!!this.isValid()&&this._isUTC}function Xt(){return!!this.isValid()&&(this._isUTC&&0===this._offset)}function Jt(e,t){var n,i,r,o=e,s=null;return Lt(e)?o={ms:e._milliseconds,d:e._days,M:e._months}:h(e)||!isNaN(+e)?(o={},t?o[t]=+e:o.milliseconds=+e):(s=Eo.exec(e))?(n="-"===s[1]?-1:1,o={y:0,d:q(s[Ur])*n,h:q(s[Br])*n,m:q(s[zr])*n,s:q(s[Hr])*n,ms:q(Mt(1e3*s[qr]))*n}):(s=Po.exec(e))?(n="-"===s[1]?-1:1,o={y:en(s[2],n),M:en(s[3],n),w:en(s[4],n),d:en(s[5],n),h:en(s[6],n),m:en(s[7],n),s:en(s[8],n)}):null==o?o={}:"object"==typeof o&&("from"in o||"to"in o)&&(r=nn(Et(o.from),Et(o.to)),(o={}).ms=r.milliseconds,o.M=r.months),i=new It(o),Lt(e)&&u(e,"_locale")&&(i._locale=e._locale),Lt(e)&&u(e,"_isValid")&&(i._isValid=e._isValid),i}function en(e,t){var n=e&&parseFloat(e.replace(",","."));return(isNaN(n)?0:n)*t}function tn(e,t){var n={};return n.months=t.month()-e.month()+12*(t.year()-e.year()),e.clone().add(n.months,"M").isAfter(t)&&--n.months,n.milliseconds=+t-+e.clone().add(n.months,"M"),n}function nn(e,t){var n;return e.isValid()&&t.isValid()?(t=$t(t,e),e.isBefore(t)?n=tn(e,t):((n=tn(t,e)).milliseconds=-n.milliseconds,n.months=-n.months),n):{milliseconds:0,months:0}}function rn(i,r){return function(e,t){var n;return null===t||isNaN(+t)||(S(r,"moment()."+r+"(period, number) is deprecated. Please use moment()."+r+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),n=e,e=t,t=n),on(this,Jt(e,t),i),this}}function on(e,t,n,i){var r=t._milliseconds,o=Mt(t._days),s=Mt(t._months);e.isValid()&&(i=null==i||i,s&&ce(e,Y(e,"Month")+s*n),o&&G(e,"Date",Y(e,"Date")+o*n),r&&e._d.setTime(e._d.valueOf()+r*n),i&&d.updateOffset(e,o||s))}function sn(e){return"string"==typeof e||e instanceof String}function an(e){return b(e)||r(e)||sn(e)||h(e)||un(e)||ln(e)||null===e||e===undefined}function ln(e){var t,n,i=a(e)&&!l(e),r=!1,o=["years","year","y","months","month","M","days","day","d","dates","date","D","hours","hour","h","minutes","minute","m","seconds","second","s","milliseconds","millisecond","ms"],s=o.length;for(t=0;t<s;t+=1)n=o[t],r=r||u(e,n);return i&&r}function un(t){var e=s(t),n=!1;return e&&(n=0===t.filter(function(e){return!h(e)&&sn(t)}).length),e&&n}function cn(e){var t,n,i=a(e)&&!l(e),r=!1,o=["sameDay","nextDay","lastDay","nextWeek","lastWeek","sameElse"];for(t=0;t<o.length;t+=1)n=o[t],r=r||u(e,n);return i&&r}function dn(e,t){var n=e.diff(t,"days",!0);return n<-6?"sameElse":n<-1?"lastWeek":n<0?"lastDay":n<1?"sameDay":n<2?"nextDay":n<7?"nextWeek":"sameElse"}function hn(e,t){1===arguments.length&&(e?an(e)?(e=e,t=undefined):cn(e)&&(t=e,e=undefined):(e=undefined,t=undefined));var n=e||Et(),i=$t(n,this).startOf("day"),r=d.calendarFormat(this,i)||"sameElse",o=t&&(k(t[r])?t[r].call(this,n):t[r]);return this.format(o||this.localeData().calendar(r,this,Et(n)))}function fn(){return new y(this)}function pn(e,t){var n=b(e)?e:Et(e);return!(!this.isValid()||!n.isValid())&&("millisecond"===(t=V(t)||"millisecond")?this.valueOf()>n.valueOf():n.valueOf()<this.clone().startOf(t).valueOf())}function mn(e,t){var n=b(e)?e:Et(e);return!(!this.isValid()||!n.isValid())&&("millisecond"===(t=V(t)||"millisecond")?this.valueOf()<n.valueOf():this.clone().endOf(t).valueOf()<n.valueOf())}function gn(e,t,n,i){var r=b(e)?e:Et(e),o=b(t)?t:Et(t);return!!(this.isValid()&&r.isValid()&&o.isValid())&&(("("===(i=i||"()")[0]?this.isAfter(r,n):!this.isBefore(r,n))&&(")"===i[1]?this.isBefore(o,n):!this.isAfter(o,n)))}function vn(e,t){var n,i=b(e)?e:Et(e);return!(!this.isValid()||!i.isValid())&&("millisecond"===(t=V(t)||"millisecond")?this.valueOf()===i.valueOf():(n=i.valueOf(),this.clone().startOf(t).valueOf()<=n&&n<=this.clone().endOf(t).valueOf()))}function yn(e,t){return this.isSame(e,t)||this.isAfter(e,t)}function bn(e,t){return this.isSame(e,t)||this.isBefore(e,t)}function wn(e,t,n){var i,r,o;if(!this.isValid())return NaN;if(!(i=$t(e,this)).isValid())return NaN;switch(r=6e4*(i.utcOffset()-this.utcOffset()),t=V(t)){case"year":o=Sn(this,i)/12;break;case"month":o=Sn(this,i);break;case"quarter":o=Sn(this,i)/3;break;case"second":o=(this-i)/1e3;break;case"minute":o=(this-i)/6e4;break;case"hour":o=(this-i)/36e5;break;case"day":o=(this-i-r)/864e5;break;case"week":o=(this-i-r)/6048e5;break;default:o=this-i}return n?o:H(o)}function Sn(e,t){if(e.date()<t.date())return-Sn(t,e);var n=12*(t.year()-e.year())+(t.month()-e.month()),i=e.clone().add(n,"months");return-(n+(t-i<0?(t-i)/(i-e.clone().add(n-1,"months")):(t-i)/(e.clone().add(n+1,"months")-i)))||0}function kn(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")}function xn(e){if(!this.isValid())return null;var t=!0!==e,n=t?this.clone().utc():this;return n.year()<0||9999<n.year()?A(n,t?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):k(Date.prototype.toISOString)?t?this.toDate().toISOString():new Date(this.valueOf()+60*this.utcOffset()*1e3).toISOString().replace("Z",A(n,"Z")):A(n,t?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")}function _n(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var e,t,n,i,r="moment",o="";return this.isLocal()||(r=0===this.utcOffset()?"moment.utc":"moment.parseZone",o="Z"),e="["+r+'("]',t=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",n="-MM-DD[T]HH:mm:ss.SSS",i=o+'[")]',this.format(e+t+n+i)}function Cn(e){e||(e=this.isUtc()?d.defaultFormatUtc:d.defaultFormat);var t=A(this,e)
;return this.localeData().postformat(t)}function Tn(e,t){return this.isValid()&&(b(e)&&e.isValid()||Et(e).isValid())?Jt({to:this,from:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function En(e){return this.from(Et(),e)}function Pn(e,t){return this.isValid()&&(b(e)&&e.isValid()||Et(e).isValid())?Jt({from:this,to:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function On(e){return this.to(Et(),e)}function Nn(e){var t;return e===undefined?this._locale._abbr:(null!=(t=rt(e))&&(this._locale=t),this)}function An(){return this._locale}function Dn(e,t){return(e%t+t)%t}function Fn(e,t,n){return e<100&&0<=e?new Date(e+400,t,n)-Lo:new Date(e,t,n).valueOf()}function In(e,t,n){return e<100&&0<=e?Date.UTC(e+400,t,n)-Lo:Date.UTC(e,t,n)}function Ln(e){var t,n;if((e=V(e))===undefined||"millisecond"===e||!this.isValid())return this;switch(n=this._isUTC?In:Fn,e){case"year":t=n(this.year(),0,1);break;case"quarter":t=n(this.year(),this.month()-this.month()%3,1);break;case"month":t=n(this.year(),this.month(),1);break;case"week":t=n(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":t=n(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":t=n(this.year(),this.month(),this.date());break;case"hour":t=this._d.valueOf(),t-=Dn(t+(this._isUTC?0:this.utcOffset()*Fo),Io);break;case"minute":t=this._d.valueOf(),t-=Dn(t,Fo);break;case"second":t=this._d.valueOf(),t-=Dn(t,Do)}return this._d.setTime(t),d.updateOffset(this,!0),this}function Mn(e){var t,n;if((e=V(e))===undefined||"millisecond"===e||!this.isValid())return this;switch(n=this._isUTC?In:Fn,e){case"year":t=n(this.year()+1,0,1)-1;break;case"quarter":t=n(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":t=n(this.year(),this.month()+1,1)-1;break;case"week":t=n(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":t=n(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":t=n(this.year(),this.month(),this.date()+1)-1;break;case"hour":t=this._d.valueOf(),t+=Io-Dn(t+(this._isUTC?0:this.utcOffset()*Fo),Io)-1;break;case"minute":t=this._d.valueOf(),t+=Fo-Dn(t,Fo)-1;break;case"second":t=this._d.valueOf(),t+=Do-Dn(t,Do)-1}return this._d.setTime(t),d.updateOffset(this,!0),this}function jn(){return this._d.valueOf()-6e4*(this._offset||0)}function Rn(){return Math.floor(this.valueOf()/1e3)}function Vn(){return new Date(this.valueOf())}function $n(){var e=this;return[e.year(),e.month(),e.date(),e.hour(),e.minute(),e.second(),e.millisecond()]}function Un(){var e=this;return{years:e.year(),months:e.month(),date:e.date(),hours:e.hours(),minutes:e.minutes(),seconds:e.seconds(),milliseconds:e.milliseconds()}}function Bn(){return this.isValid()?this.toISOString():null}function zn(){return g(this)}function Hn(){return f({},m(this))}function qn(){return m(this).overflow}function Wn(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}}function Yn(){var e,t,n,i=this._eras||rt("en")._eras;for(e=0,t=i.length;e<t;++e){switch(typeof i[e].since){case"string":n=d(i[e].since).startOf("day"),i[e].since=n.valueOf()}switch(typeof i[e].until){case"undefined":i[e].until=+Infinity;break;case"string":n=d(i[e].until).startOf("day").valueOf(),i[e].until=n.valueOf()}}return i}function Gn(e,t,n){var i,r,o,s,a,l=this.eras();for(e=e.toUpperCase(),i=0,r=l.length;i<r;++i)if(o=l[i].name.toUpperCase(),s=l[i].abbr.toUpperCase(),a=l[i].narrow.toUpperCase(),n)switch(t){case"N":case"NN":case"NNN":if(s===e)return l[i];break;case"NNNN":if(o===e)return l[i];break;case"NNNNN":if(a===e)return l[i]}else if(0<=[o,s,a].indexOf(e))return l[i]}function Kn(e,t){var n=e.since<=e.until?1:-1;return t===undefined?d(e.since).year():d(e.since).year()+(t-e.offset)*n}function Zn(){var e,t,n,i=this.localeData().eras();for(e=0,t=i.length;e<t;++e){if(n=this.clone().startOf("day").valueOf(),i[e].since<=n&&n<=i[e].until)return i[e].name;if(i[e].until<=n&&n<=i[e].since)return i[e].name}return""}function Qn(){var e,t,n,i=this.localeData().eras();for(e=0,t=i.length;e<t;++e){if(n=this.clone().startOf("day").valueOf(),i[e].since<=n&&n<=i[e].until)return i[e].narrow;if(i[e].until<=n&&n<=i[e].since)return i[e].narrow}return""}function Xn(){var e,t,n,i=this.localeData().eras();for(e=0,t=i.length;e<t;++e){if(n=this.clone().startOf("day").valueOf(),i[e].since<=n&&n<=i[e].until)return i[e].abbr;if(i[e].until<=n&&n<=i[e].since)return i[e].abbr}return""}function Jn(){var e,t,n,i,r=this.localeData().eras();for(e=0,t=r.length;e<t;++e)if(n=r[e].since<=r[e].until?1:-1,i=this.clone().startOf("day").valueOf(),r[e].since<=i&&i<=r[e].until||r[e].until<=i&&i<=r[e].since)return(this.year()-d(r[e].since).year())*n+r[e].offset;return this.year()}function ei(e){return u(this,"_erasNameRegex")||ai.call(this),e?this._erasNameRegex:this._erasRegex}function ti(e){return u(this,"_erasAbbrRegex")||ai.call(this),e?this._erasAbbrRegex:this._erasRegex}function ni(e){return u(this,"_erasNarrowRegex")||ai.call(this),e?this._erasNarrowRegex:this._erasRegex}function ii(e,t){return t.erasAbbrRegex(e)}function ri(e,t){return t.erasNameRegex(e)}function oi(e,t){return t.erasNarrowRegex(e)}function si(e,t){return t._eraYearOrdinalRegex||Ar}function ai(){var e,t,n=[],i=[],r=[],o=[],s=this.eras();for(e=0,t=s.length;e<t;++e)i.push(ee(s[e].name)),n.push(ee(s[e].abbr)),r.push(ee(s[e].narrow)),o.push(ee(s[e].name)),o.push(ee(s[e].abbr)),o.push(ee(s[e].narrow));this._erasRegex=new RegExp("^("+o.join("|")+")","i"),this._erasNameRegex=new RegExp("^("+i.join("|")+")","i"),this._erasAbbrRegex=new RegExp("^("+n.join("|")+")","i"),this._erasNarrowRegex=new RegExp("^("+r.join("|")+")","i")}function li(e,t){P(0,[e,e.length],0,t)}function ui(e){return mi.call(this,e,this.week(),this.weekday(),this.localeData()._week.dow,this.localeData()._week.doy)}function ci(e){return mi.call(this,e,this.isoWeek(),this.isoWeekday(),1,4)}function di(){return xe(this.year(),1,4)}function hi(){return xe(this.isoWeekYear(),1,4)}function fi(){var e=this.localeData()._week;return xe(this.year(),e.dow,e.doy)}function pi(){var e=this.localeData()._week;return xe(this.weekYear(),e.dow,e.doy)}function mi(e,t,n,i,r){var o;return null==e?ke(this,i,r).year:((o=xe(e,i,r))<t&&(t=o),gi.call(this,e,t,n,i,r))}function gi(e,t,n,i,r){var o=Se(e,t,n,i,r),s=be(o.year,0,o.dayOfYear);return this.year(s.getUTCFullYear()),this.month(s.getUTCMonth()),this.date(s.getUTCDate()),this}function vi(e){return null==e?Math.ceil((this.month()+1)/3):this.month(3*(e-1)+this.month()%3)}function yi(e){var t=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return null==e?t:this.add(e-t,"d")}function bi(e,t){t[qr]=q(1e3*("0."+e))}function wi(){return this._isUTC?"UTC":""}function Si(){return this._isUTC?"Coordinated Universal Time":""}function ki(e){return Et(1e3*e)}function xi(){return Et.apply(null,arguments).parseZone()}function _i(e){return e}function Ci(e,t,n,i){var r=rt(),o=p().set(i,t);return r[n](o,e)}function Ti(e,t,n){if(h(e)&&(t=e,e=undefined),e=e||"",null!=t)return Ci(e,t,n,"month");var i,r=[];for(i=0;i<12;i++)r[i]=Ci(e,i,n,"month");return r}function Ei(e,t,n,i){"boolean"==typeof e?h(t)&&(n=t,t=undefined):(t=e,e=!1,h(n=t)&&(n=t,t=undefined)),t=t||"";var r,o=rt(),s=e?o._week.dow:0,a=[];if(null!=n)return Ci(t,(n+s)%7,i,"day");for(r=0;r<7;r++)a[r]=Ci(t,(r+s)%7,i,"day");return a}function Pi(e,t){return Ti(e,t,"months")}function Oi(e,t){return Ti(e,t,"monthsShort")}function Ni(e,t,n){return Ei(e,t,n,"weekdays")}function Ai(e,t,n){return Ei(e,t,n,"weekdaysShort")}function Di(e,t,n){return Ei(e,t,n,"weekdaysMin")}function Fi(){var e=this._data;return this._milliseconds=zo(this._milliseconds),this._days=zo(this._days),this._months=zo(this._months),e.milliseconds=zo(e.milliseconds),e.seconds=zo(e.seconds),e.minutes=zo(e.minutes),e.hours=zo(e.hours),e.months=zo(e.months),e.years=zo(e.years),this}function Ii(e,t,n,i){var r=Jt(t,n);return e._milliseconds+=i*r._milliseconds,e._days+=i*r._days,e._months+=i*r._months,e._bubble()}function Li(e,t){return Ii(this,e,t,1)}function Mi(e,t){return Ii(this,e,t,-1)}function ji(e){return e<0?Math.floor(e):Math.ceil(e)}function Ri(){var e,t,n,i,r,o=this._milliseconds,s=this._days,a=this._months,l=this._data;return 0<=o&&0<=s&&0<=a||o<=0&&s<=0&&a<=0||(o+=864e5*ji($i(a)+s),a=s=0),l.milliseconds=o%1e3,e=H(o/1e3),l.seconds=e%60,t=H(e/60),l.minutes=t%60,n=H(t/60),l.hours=n%24,a+=r=H(Vi(s+=H(n/24))),s-=ji($i(r)),i=H(a/12),a%=12,l.days=s,l.months=a,l.years=i,this}function Vi(e){return 4800*e/146097}function $i(e){return 146097*e/4800}function Ui(e){if(!this.isValid())return NaN;var t,n,i=this._milliseconds;if("month"===(e=V(e))||"quarter"===e||"year"===e)switch(t=this._days+i/864e5,n=this._months+Vi(t),e){case"month":return n;case"quarter":return n/3;case"year":return n/12}else switch(t=this._days+Math.round($i(this._months)),e){case"week":return t/7+i/6048e5;case"day":return t+i/864e5;case"hour":return 24*t+i/36e5;case"minute":return 1440*t+i/6e4;case"second":return 86400*t+i/1e3;case"millisecond":return Math.floor(864e5*t)+i;default:throw new Error("Unknown unit "+e)}}function Bi(){return this.isValid()?this._milliseconds+864e5*this._days+this._months%12*2592e6+31536e6*q(this._months/12):NaN}function zi(e){return function(){return this.as(e)}}function Hi(){return Jt(this)}function qi(e){return e=V(e),this.isValid()?this[e+"s"]():NaN}function Wi(e){return function(){return this.isValid()?this._data[e]:NaN}}function Yi(){return H(this.days()/7)}function Gi(e,t,n,i,r){return r.relativeTime(t||1,!!n,e,i)}function Ki(e,t,n,i){var r=Jt(e).abs(),o=ss(r.as("s")),s=ss(r.as("m")),a=ss(r.as("h")),l=ss(r.as("d")),u=ss(r.as("M")),c=ss(r.as("w")),d=ss(r.as("y")),h=o<=n.ss&&["s",o]||o<n.s&&["ss",o]||s<=1&&["m"]||s<n.m&&["mm",s]||a<=1&&["h"]||a<n.h&&["hh",a]||l<=1&&["d"]||l<n.d&&["dd",l];return null!=n.w&&(h=h||c<=1&&["w"]||c<n.w&&["ww",c]),(h=h||u<=1&&["M"]||u<n.M&&["MM",u]||d<=1&&["y"]||["yy",d])[2]=t,h[3]=0<+e,h[4]=i,Gi.apply(null,h)}function Zi(e){return e===undefined?ss:"function"==typeof e&&(ss=e,!0)}function Qi(e,t){return as[e]!==undefined&&(t===undefined?as[e]:(as[e]=t,"s"===e&&(as.ss=t-1),!0))}function Xi(e,t){if(!this.isValid())return this.localeData().invalidDate();var n,i,r=!1,o=as;return"object"==typeof e&&(t=e,e=!1),"boolean"==typeof e&&(r=e),"object"==typeof t&&(o=Object.assign({},as,t),null!=t.s&&null==t.ss&&(o.ss=t.s-1)),i=Ki(this,!r,o,n=this.localeData()),r&&(i=n.pastFuture(+this,i)),n.postformat(i)}function Ji(e){return(0<e)-(e<0)||+e}function er(){if(!this.isValid())return this.localeData().invalidDate();var e,t,n,i,r,o,s,a,l=ls(this._milliseconds)/1e3,u=ls(this._days),c=ls(this._months),d=this.asSeconds();return d?(t=H((e=H(l/60))/60),l%=60,e%=60,n=H(c/12),c%=12,i=l?l.toFixed(3).replace(/\.?0+$/,""):"",r=d<0?"-":"",o=Ji(this._months)!==Ji(d)?"-":"",s=Ji(this._days)!==Ji(d)?"-":"",a=Ji(this._milliseconds)!==Ji(d)?"-":"",r+"P"+(n?o+n+"Y":"")+(c?o+c+"M":"")+(u?s+u+"D":"")+(t||e||l?"T":"")+(t?a+t+"H":"")+(e?a+e+"M":"")+(l?a+i+"S":"")):"P0D"}var tr,nr;nr=Array.prototype.some?Array.prototype.some:function(e){var t,n=Object(this),i=n.length>>>0;for(t=0;t<i;t++)if(t in n&&e.call(this,n[t],t,n))return!0;return!1};var ir,rr=d.momentProperties=[],or=!1,sr={};d.suppressDeprecationWarnings=!1,d.deprecationHandler=null,ir=Object.keys?Object.keys:function(e){var t,n=[];for(t in e)u(e,t)&&n.push(t);return n};var ar,lr={sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},ur=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,cr=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,dr={},hr={},fr={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},pr="Invalid date",mr="%d",gr=/\d{1,2}/,vr={future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",w:"a week",ww:"%d weeks",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},yr={},br={},wr=/\d/,Sr=/\d\d/,kr=/\d{3}/,xr=/\d{4}/,_r=/[+-]?\d{6}/,Cr=/\d\d?/,Tr=/\d\d\d\d?/,Er=/\d\d\d\d\d\d?/,Pr=/\d{1,3}/,Or=/\d{1,4}/,Nr=/[+-]?\d{1,6}/,Ar=/\d+/,Dr=/[+-]?\d+/,Fr=/Z|[+-]\d\d:?\d\d/gi,Ir=/Z|[+-]\d\d(?::?\d\d)?/gi,Lr=/[+-]?\d+(\.\d{1,3})?/,Mr=/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i;ar={};var jr,Rr={},Vr=0,$r=1,Ur=2,Br=3,zr=4,Hr=5,qr=6,Wr=7,Yr=8;jr=Array.prototype.indexOf?Array.prototype.indexOf:function(e){var t;for(t=0;t<this.length;++t)if(this[t]===e)return t;return-1},P("M",["MM",2],"Mo",function(){return this.month()+1}),P("MMM",0,0,function(e){return this.localeData().monthsShort(this,e)}),P("MMMM",0,0,function(e){return this.localeData().months(this,e)}),R("month","M"),U("month",8),Q("M",Cr),Q("MM",Cr,Sr),Q("MMM",function(e,t){return t.monthsShortRegex(e)}),Q("MMMM",function(e,t){return t.monthsRegex(e)}),te(["M","MM"],function(e,t){t[$r]=q(e)-1}),te(["MMM","MMMM"],function(e,t,n,i){var r=n._locale.monthsParse(e,i,n._strict);null!=r?t[$r]=r:m(n).invalidMonth=e});var Gr="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),Kr="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),Zr=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,Qr=Mr,Xr=Mr;P("Y",0,0,function(){var e=this.year();return e<=9999?E(e,4):"+"+e}),P(0,["YY",2],0,function(){return this.year()%100}),P(0,["YYYY",4],0,"year"),P(0,["YYYYY",5],0,"year"),P(0,["YYYYYY",6,!0],0,"year"),R("year","y"),U("year",1),Q("Y",Dr),Q("YY",Cr,Sr),Q("YYYY",Or,xr),Q("YYYYY",Nr,_r),Q("YYYYYY",Nr,_r),te(["YYYYY","YYYYYY"],Vr),te("YYYY",function(e,t){t[Vr]=2===e.length?d.parseTwoDigitYear(e):q(e)}),te("YY",function(e,t){t[Vr]=d.parseTwoDigitYear(e)}),te("Y",function(e,t){t[Vr]=parseInt(e,10)}),d.parseTwoDigitYear=function(e){return q(e)+(68<q(e)?1900:2e3)};var Jr=W("FullYear",!0);P("w",["ww",2],"wo","week"),P("W",["WW",2],"Wo","isoWeek"),R("week","w"),R("isoWeek","W"),U("week",5),U("isoWeek",5),Q("w",Cr),Q("ww",Cr,Sr),Q("W",Cr),Q("WW",Cr,Sr),ne(["w","ww","W","WW"],function(e,t,n,i){t[i.substr(0,1)]=q(e)});var eo={dow:0,doy:6};P("d",0,"do","day"),P("dd",0,0,function(e){return this.localeData().weekdaysMin(this,e)}),P("ddd",0,0,function(e){return this.localeData().weekdaysShort(this,e)}),P("dddd",0,0,function(e){return this.localeData().weekdays(this,e)}),P("e",0,0,"weekday"),P("E",0,0,"isoWeekday"),R("day","d"),R("weekday","e"),R("isoWeekday","E"),U("day",11),U("weekday",11),U("isoWeekday",11),Q("d",Cr),Q("e",Cr),Q("E",Cr),Q("dd",function(e,t){return t.weekdaysMinRegex(e)}),Q("ddd",function(e,t){return t.weekdaysShortRegex(e)}),Q("dddd",function(e,t){return t.weekdaysRegex(e)}),ne(["dd","ddd","dddd"],function(e,t,n,i){var r=n._locale.weekdaysParse(e,i,n._strict);null!=r?t.d=r:m(n).invalidWeekday=e}),ne(["d","e","E"],function(e,t,n,i){t[i]=q(e)});var to="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),no="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),io="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),ro=Mr,oo=Mr,so=Mr;P("H",["HH",2],0,"hour"),P("h",["hh",2],0,He),P("k",["kk",2],0,qe),P("hmm",0,0,function(){return""+He.apply(this)+E(this.minutes(),2)}),P("hmmss",0,0,function(){return""+He.apply(this)+E(this.minutes(),2)+E(this.seconds(),2)}),P("Hmm",0,0,function(){return""+this.hours()+E(this.minutes(),2)}),P("Hmmss",0,0,function(){return""+this.hours()+E(this.minutes(),2)+E(this.seconds(),2)}),We("a",!0),We("A",!1),R("hour","h"),U("hour",13),Q("a",Ye),Q("A",Ye),Q("H",Cr),Q("h",Cr),Q("k",Cr),Q("HH",Cr,Sr),Q("hh",Cr,Sr),Q("kk",Cr,Sr),Q("hmm",Tr),Q("hmmss",Er),Q("Hmm",Tr),Q("Hmmss",Er),te(["H","HH"],Br),te(["k","kk"],function(e,t){var n=q(e);t[Br]=24===n?0:n}),te(["a","A"],function(e,t,n){n._isPm=n._locale.isPM(e),n._meridiem=e}),te(["h","hh"],function(e,t,n){t[Br]=q(e),m(n).bigHour=!0}),te("hmm",function(e,t,n){var i=e.length-2;t[Br]=q(e.substr(0,i)),t[zr]=q(e.substr(i)),m(n).bigHour=!0}),te("hmmss",function(e,t,n){var i=e.length-4,r=e.length-2;t[Br]=q(e.substr(0,i)),t[zr]=q(e.substr(i,2)),t[Hr]=q(e.substr(r)),m(n).bigHour=!0}),te("Hmm",function(e,t){var n=e.length-2;t[Br]=q(e.substr(0,n)),t[zr]=q(e.substr(n))}),te("Hmmss",function(e,t){var n=e.length-4,i=e.length-2;t[Br]=q(e.substr(0,n)),t[zr]=q(e.substr(n,2)),t[Hr]=q(e.substr(i))});var ao,lo=/[ap]\.?m?\.?/i,uo=W("Hours",!0),co={calendar:lr,longDateFormat:fr,invalidDate:pr,ordinal:mr,dayOfMonthOrdinalParse:gr,relativeTime:vr,months:Gr,monthsShort:Kr,week:eo,weekdays:to,weekdaysMin:io,weekdaysShort:no,meridiemParse:lo},ho={},fo={},po=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,mo=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d|))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,go=/Z|[+-]\d\d(?::?\d\d)?/,vo=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/],["YYYYMM",/\d{6}/,!1],["YYYY",/\d{4}/,!1]],yo=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],bo=/^\/?Date\((-?\d+)/i,wo=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/,So={UT:0,GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};d.createFromInputFallback=n("value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.",function(e){e._d=new Date(e._i+(e._useUTC?" UTC":""))}),d.ISO_8601=function(){},d.RFC_2822=function(){};var ko=n("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var e=Et.apply(null,arguments);return this.isValid()&&e.isValid()?e<this?this:e:o()}),xo=n("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var e=Et.apply(null,arguments);return this.isValid()&&e.isValid()?this<e?this:e:o()}),_o=function(){return Date.now?Date.now():+new Date},Co=["year","quarter","month","week","day","hour","minute","second","millisecond"];Rt("Z",":"),Rt("ZZ",""),Q("Z",Ir),Q("ZZ",Ir),te(["Z","ZZ"],function(e,t,n){n._useUTC=!0,n._tzm=Vt(Ir,e)});var To=/([\+\-]|\d\d)/gi;d.updateOffset=function(){};var Eo=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,Po=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;Jt.fn=It.prototype,Jt.invalid=Ft;var Oo=rn(1,"add"),No=rn(-1,"subtract");d.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",d.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";var Ao=n("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",function(e){return e===undefined?this.localeData():this.locale(e)}),Do=1e3,Fo=60*Do,Io=60*Fo,Lo=3506328*Io;P("N",0,0,"eraAbbr"),P("NN",0,0,"eraAbbr"),P("NNN",0,0,"eraAbbr"),P("NNNN",0,0,"eraName"),P("NNNNN",0,0,"eraNarrow"),P("y",["y",1],"yo","eraYear"),P("y",["yy",2],0,"eraYear"),P("y",["yyy",3],0,"eraYear"),P("y",["yyyy",4],0,"eraYear"),Q("N",ii),Q("NN",ii),Q("NNN",ii),Q("NNNN",ri),Q("NNNNN",oi),te(["N","NN","NNN","NNNN","NNNNN"],function(e,t,n,i){var r=n._locale.erasParse(e,i,n._strict);r?m(n).era=r:m(n).invalidEra=e}),Q("y",Ar),Q("yy",Ar),Q("yyy",Ar),Q("yyyy",Ar),Q("yo",si),te(["y","yy","yyy","yyyy"],Vr),te(["yo"],function(e,t,n){var i;n._locale._eraYearOrdinalRegex&&(i=e.match(n._locale._eraYearOrdinalRegex)),n._locale.eraYearOrdinalParse?t[Vr]=n._locale.eraYearOrdinalParse(e,i):t[Vr]=parseInt(e,10)}),P(0,["gg",2],0,function(){return this.weekYear()%100}),P(0,["GG",2],0,function(){return this.isoWeekYear()%100}),li("gggg","weekYear"),li("ggggg","weekYear"),li("GGGG","isoWeekYear"),li("GGGGG","isoWeekYear"),R("weekYear","gg"),R("isoWeekYear","GG"),U("weekYear",1),U("isoWeekYear",1),Q("G",Dr),Q("g",Dr),Q("GG",Cr,Sr),Q("gg",Cr,Sr),Q("GGGG",Or,xr),Q("gggg",Or,xr),Q("GGGGG",Nr,_r),Q("ggggg",Nr,_r),ne(["gggg","ggggg","GGGG","GGGGG"],function(e,t,n,i){t[i.substr(0,2)]=q(e)}),ne(["gg","GG"],function(e,t,n,i){t[i]=d.parseTwoDigitYear(e)}),P("Q",0,"Qo","quarter"),R("quarter","Q"),U("quarter",7),Q("Q",wr),te("Q",function(e,t){t[$r]=3*(q(e)-1)}),P("D",["DD",2],"Do","date"),R("date","D"),U("date",9),Q("D",Cr),Q("DD",Cr,Sr),Q("Do",function(e,t){return e?t._dayOfMonthOrdinalParse||t._ordinalParse:t._dayOfMonthOrdinalParseLenient}),te(["D","DD"],Ur),te("Do",function(e,t){t[Ur]=q(e.match(Cr)[0])});var Mo=W("Date",!0);P("DDD",["DDDD",3],"DDDo","dayOfYear"),R("dayOfYear","DDD"),U("dayOfYear",4),Q("DDD",Pr),Q("DDDD",kr),te(["DDD","DDDD"],function(e,t,n){n._dayOfYear=q(e)}),P("m",["mm",2],0,"minute"),R("minute","m"),U("minute",14),Q("m",Cr),Q("mm",Cr,Sr),te(["m","mm"],zr);var jo=W("Minutes",!1);P("s",["ss",2],0,"second"),R("second","s"),U("second",15),Q("s",Cr),Q("ss",Cr,Sr),te(["s","ss"],Hr);var Ro,Vo,$o=W("Seconds",!1);for(P("S",0,0,function(){return~~(this.millisecond()/100)}),P(0,["SS",2],0,function(){return~~(this.millisecond()/10)}),P(0,["SSS",3],0,"millisecond"),P(0,["SSSS",4],0,function(){return 10*this.millisecond()}),P(0,["SSSSS",5],0,function(){return 100*this.millisecond()}),P(0,["SSSSSS",6],0,function(){return 1e3*this.millisecond()}),P(0,["SSSSSSS",7],0,function(){return 1e4*this.millisecond()}),P(0,["SSSSSSSS",8],0,function(){return 1e5*this.millisecond()}),P(0,["SSSSSSSSS",9],0,function(){return 1e6*this.millisecond()}),R("millisecond","ms"),U("millisecond",16),Q("S",Pr,wr),Q("SS",Pr,Sr),Q("SSS",Pr,kr),Ro="SSSS";Ro.length<=9;Ro+="S")Q(Ro,Ar);for(Ro="S";Ro.length<=9;Ro+="S")te(Ro,bi);Vo=W("Milliseconds",!1),P("z",0,0,"zoneAbbr"),P("zz",0,0,"zoneName");var Uo=y.prototype;Uo.add=Oo,Uo.calendar=hn,Uo.clone=fn,Uo.diff=wn,Uo.endOf=Mn,Uo.format=Cn,Uo.from=Tn,Uo.fromNow=En,Uo.to=Pn,Uo.toNow=On,Uo.get=K,Uo.invalidAt=qn,Uo.isAfter=pn,Uo.isBefore=mn,Uo.isBetween=gn,Uo.isSame=vn,Uo.isSameOrAfter=yn,Uo.isSameOrBefore=bn,Uo.isValid=zn,Uo.lang=Ao,Uo.locale=Nn,Uo.localeData=An,Uo.max=xo,Uo.min=ko,Uo.parsingFlags=Hn,Uo.set=Z,Uo.startOf=Ln,Uo.subtract=No,Uo.toArray=$n,Uo.toObject=Un,Uo.toDate=Vn,Uo.toISOString=xn,Uo.inspect=_n,"undefined"!=typeof Symbol&&null!=Symbol["for"]&&(Uo[Symbol["for"]("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"}),Uo.toJSON=Bn,Uo.toString=kn,Uo.unix=Rn,Uo.valueOf=jn,Uo.creationData=Wn,Uo.eraName=Zn,Uo.eraNarrow=Qn,Uo.eraAbbr=Xn,Uo.eraYear=Jn,Uo.year=Jr,Uo.isLeapYear=ve,Uo.weekYear=ui,Uo.isoWeekYear=ci,Uo.quarter=Uo.quarters=vi,Uo.month=de,Uo.daysInMonth=he,Uo.week=Uo.weeks=Ee,Uo.isoWeek=Uo.isoWeeks=Pe,Uo.weeksInYear=fi,Uo.weeksInWeekYear=pi,Uo.isoWeeksInYear=di,Uo.isoWeeksInISOWeekYear=hi,Uo.date=Mo,Uo.day=Uo.days=je,Uo.weekday=Re,Uo.isoWeekday=Ve,Uo.dayOfYear=yi,Uo.hour=Uo.hours=uo,Uo.minute=Uo.minutes=jo,Uo.second=Uo.seconds=$o,Uo.millisecond=Uo.milliseconds=Vo,Uo.utcOffset=Bt,Uo.utc=Ht,Uo.local=qt,Uo.parseZone=Wt,Uo.hasAlignedHourOffset=Yt,Uo.isDST=Gt,Uo.isLocal=Zt,Uo.isUtcOffset=Qt,Uo.isUtc=Xt,Uo.isUTC=Xt,Uo.zoneAbbr=wi,Uo.zoneName=Si,Uo.dates=n("dates accessor is deprecated. Use date instead.",Mo),Uo.months=n("months accessor is deprecated. Use month instead",de),Uo.years=n("years accessor is deprecated. Use year instead",Jr),Uo.zone=n("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",zt),Uo.isDSTShifted=n("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",Kt);var Bo=C.prototype;Bo.calendar=T,Bo.longDateFormat=F,Bo.invalidDate=I,Bo.ordinal=L,Bo.preparse=_i,Bo.postformat=_i,Bo.relativeTime=M,Bo.pastFuture=j,Bo.set=x,Bo.eras=Yn,Bo.erasParse=Gn,Bo.erasConvertYear=Kn,Bo.erasAbbrRegex=ti,Bo.erasNameRegex=ei,Bo.erasNarrowRegex=ni,Bo.months=se,Bo.monthsShort=ae,Bo.monthsParse=ue,Bo.monthsRegex=pe,Bo.monthsShortRegex=fe,Bo.week=_e,Bo.firstDayOfYear=Te,Bo.firstDayOfWeek=Ce,Bo.weekdays=De,Bo.weekdaysMin=Ie,Bo.weekdaysShort=Fe,Bo.weekdaysParse=Me,Bo.weekdaysRegex=$e,Bo.weekdaysShortRegex=Ue,Bo.weekdaysMinRegex=Be,Bo.isPM=Ge,Bo.meridiem=Ke,tt("en",{eras:[{since:"0001-01-01",until:+Infinity,offset:1,name:"Anno Domini",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-Infinity,offset:1,name:"Before Christ",narrow:"BC",abbr:"BC"}],dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(e){var t=e%10;return e+(1===q(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")}}),d.lang=n("moment.lang is deprecated. Use moment.locale instead.",tt),d.langData=n("moment.langData is deprecated. Use moment.localeData instead.",rt);var zo=Math.abs,Ho=zi("ms"),qo=zi("s"),Wo=zi("m"),Yo=zi("h"),Go=zi("d"),Ko=zi("w"),Zo=zi("M"),Qo=zi("Q"),Xo=zi("y"),Jo=Wi("milliseconds"),es=Wi("seconds"),ts=Wi("minutes"),ns=Wi("hours"),is=Wi("days"),rs=Wi("months"),os=Wi("years"),ss=Math.round,as={ss:44,s:45,m:45,h:22,d:26,w:null,M:11},ls=Math.abs,us=It.prototype;return us.isValid=Dt,us.abs=Fi,us.add=Li,us.subtract=Mi,us.as=Ui,us.asMilliseconds=Ho,us.asSeconds=qo,us.asMinutes=Wo,us.asHours=Yo,us.asDays=Go,us.asWeeks=Ko,us.asMonths=Zo,us.asQuarters=Qo,us.asYears=Xo,us.valueOf=Bi,us._bubble=Ri,us.clone=Hi,us.get=qi,us.milliseconds=Jo,us.seconds=es,us.minutes=ts,us.hours=ns,us.days=is,us.weeks=Yi,us.months=rs,us.years=os,us.humanize=Xi,us.toISOString=er,us.toString=er,us.toJSON=er,us.locale=Nn,us.localeData=An,us.toIsoString=n("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",er),us.lang=Ao,P("X",0,0,"unix"),P("x",0,0,"valueOf"),Q("x",Dr),Q("X",Lr),te("X",function(e,t,n){n._d=new Date(1e3*parseFloat(e))}),te("x",function(e,t,n){n._d=new Date(q(e))}),d.version="2.29.4",e(Et),d.fn=Uo,d.min=Ot,d.max=Nt,d.now=_o,d.utc=p,d.unix=ki,d.months=Pi,d.isDate=r,d.locale=tt,d.invalid=o,d.duration=Jt,d.isMoment=b,d.weekdays=Ni,d.parseZone=xi,d.localeData=rt,d.isDuration=Lt,d.monthsShort=Oi,d.weekdaysMin=Di,d.defineLocale=nt,d.updateLocale=it,d.locales=ot,d.weekdaysShort=Ai,d.normalizeUnits=V,d.relativeTimeRounding=Zi,d.relativeTimeThreshold=Qi,d.calendarFormat=dn,d.prototype=Uo,d.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"},d}),function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):e.ahoy=t()}(this,function(){"use strict";function t(e){return e===undefined}function s(e){return null===e}function a(e){return e===Object(e)}function l(e){return Array.isArray(e)}function u(e){return e instanceof Date}function c(e){return e&&"number"==typeof e.size&&"string"==typeof e.type&&"function"==typeof e.slice}function d(e){return c(e)&&("object"==typeof e.lastModifiedDate||"number"==typeof e.lastModified)&&"string"==typeof e.name}function h(e){return e instanceof FormData}function f(n,i,r,o){if(h(i)&&(o=r,r=i,i=null),(i=i||{}).indices=!t(i.indices)&&i.indices,i.nulls=!!t(i.nulls)||i.nulls,r=r||new FormData,t(n))return r;if(s(n))i.nulls&&r.append(o,"");else if(l(n))if(n.length)n.forEach(function(e,t){var n=o+"["+(i.indices?t:"")+"]";f(e,i,r,n)});else{var e=o+"[]";r.append(e,"")}else u(n)?r.append(o,n.toISOString()):!a(n)||d(n)||c(n)?r.append(o,n):Object.keys(n).forEach(function(e){var t=n[e];if(l(t))for(;2<e.length&&e.lastIndexOf("[]")===e.length-2;)e=e.substring(0,e.length-2);f(t,i,r,o?o+"["+e+"]":e)});return r}function n(){return V.urlPrefix+V.visitsUrl}function r(){return V.urlPrefix+V.eventsUrl}function e(e){return 0===Object.keys(e).length}function i(){return(V.useBeacon||V.trackNow)&&e(V.headers)&&K&&"undefined"!=typeof window.navigator.sendBeacon&&!V.withCredentials}function o(e,t,n){R.set(e,t,n,V.cookieDomain||V.domain)}function p(e){return R.get(e)}function m(e){R.set(e,"",-1)}function g(e){p("ahoy_debug")&&window.console.log(e)}function v(){for(var e;e=G.shift();)e();Y=!0}function y(e){Y?e():G.push(e)}function b(e,t){var n=e.matches||e.matchesSelector||e.mozMatchesSelector||e.msMatchesSelector||e.oMatchesSelector||e.webkitMatchesSelector;return n?n.apply(e,[t]):(g("Unable to match"),!1)}function w(e,t,n){document.addEventListener(e,function(e){b(e.target,t)&&n(e)})}function S(e){"interactive"===document.readyState||"complete"===document.readyState?e():document.addEventListener("DOMContentLoaded",e)}function k(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(e){var t=16*Math.random()|0;return("x"==e?t:3&t|8).toString(16)})}function x(){V.cookies&&K&&o("ahoy_events",JSON.stringify(Z),1)}function _(){var e=document.querySelector("meta[name=csrf-token]");return e&&e.content}function C(){var e=document.querySelector("meta[name=csrf-param]");return e&&e.content}function T(e){var t=_();t&&e.setRequestHeader("X-CSRF-Token",t)}function E(e,t,n){if(K)if(H)H.ajax({type:"POST",url:e,data:JSON.stringify(t),contentType:"application/json; charset=utf-8",dataType:"json",beforeSend:T,success:n,headers:V.headers,xhrFields:{withCredentials:V.withCredentials}});else{var i=new XMLHttpRequest;for(var r in i.open("POST",e,!0),i.withCredentials=V.withCredentials,i.setRequestHeader("Content-Type","application/json"),V.headers)V.headers.hasOwnProperty(r)&&i.setRequestHeader(r,V.headers[r]);i.onload=function(){200===i.status&&n()},T(i),i.send(JSON.stringify(t))}}function P(e){var t={events:[e]};return V.cookies&&(t.visit_token=e.visit_token,t.visitor_token=e.visitor_token),delete e.visit_token,delete e.visitor_token,t}function O(t){y(function(){E(r(),P(t),function(){for(var e=0;e<Z.length;e++)if(Z[e].id==t.id){Z.splice(e,1);break}x()})})}function N(i){y(function(){var e=P(i),t=C(),n=_();t&&n&&(e[t]=n),e.events_json=JSON.stringify(e.events),delete e.events,window.navigator.sendBeacon(r(),j(e))})}function A(){return V.page||window.location.pathname}function D(e){return e&&0<e.length?e:null}function F(e){for(var t in e)e.hasOwnProperty(t)&&null===e[t]&&delete e[t];return e}function I(e){var t=e.target;return F({tag:t.tagName.toLowerCase(),id:D(t.id),"class":D(t.className),page:A(),section:L(t)})}function L(e){for(;e&&e!==document;e=e.parentNode)if(e.hasAttribute("data-section"))return e.getAttribute("data-section");return null}function M(){if(Y=!1,U=$.getVisitId(),B=$.getVisitorId(),z=p("ahoy_track"),!1===V.cookies||!1===V.trackVisits)g("Visit tracking disabled"),v();else if(U&&B&&!z)g("Active visit"),v();else if(U||o("ahoy_visit",U=k(),q),p("ahoy_visit")){g("Visit started"),B||o("ahoy_visitor",B=k(),W);var e={visit_token:U,visitor_token:B,platform:V.platform,landing_page:window.location.href,screen_width:window.screen.width,screen_height:window.screen.height,js:!0};for(var t in 0<document.referrer.length&&(e.referrer=document.referrer),V.visitParams)V.visitParams.hasOwnProperty(t)&&(e[t]=V.visitParams[t]);g(e),E(n(),e,function(){m("ahoy_track"),v()})}else g("Cookies disabled"),v()}var j=f,R={set:function(e,t,n,i){var r="",o="";if(n){var s=new Date;s.setTime(s.getTime()+60*n*1e3),r="; expires="+s.toGMTString()}i&&(o="; domain="+i),document.cookie=e+"="+escape(t)+r+o+"; path=/"},get:function(e){var t,n,i=e+"=",r=document.cookie.split(";");for(t=0;t<r.length;t++){for(n=r[t];" "===n.charAt(0);)n=n.substring(1,n.length);if(0===n.indexOf(i))return unescape(n.substring(i.length,n.length))}return null}},V={urlPrefix:"",visitsUrl:"/ahoy/visits",eventsUrl:"/ahoy/events",page:null,platform:"Web",useBeacon:!0,startOnReady:!0,trackVisits:!0,cookies:!0,cookieDomain:null,headers:{},visitParams:{},withCredentials:!1},$=window.ahoy||window.Ahoy||{};$.configure=function(e){for(var t in e)e.hasOwnProperty(t)&&(V[t]=e[t])},$.configure($);var U,B,z,H=window.jQuery||window.Zepto||window.$,q=240,W=1051200,Y=!1,G=[],K="undefined"!=typeof JSON&&"undefined"!=typeof JSON.stringify,Z=[]
;$.getVisitId=$.getVisitToken=function(){return p("ahoy_visit")},$.getVisitorId=$.getVisitorToken=function(){return p("ahoy_visitor")},$.reset=function(){return m("ahoy_visit"),m("ahoy_visitor"),m("ahoy_events"),m("ahoy_track"),!0},$.debug=function(e){return!1===e?m("ahoy_debug"):o("ahoy_debug","t",525600),!0},$.track=function(e,t){var n={name:e,properties:t||{},time:(new Date).getTime()/1e3,id:k(),js:!0};return y(function(){V.cookies&&!$.getVisitId()&&M(),y(function(){g(n),n.visit_token=$.getVisitId(),n.visitor_token=$.getVisitorId(),i()?N(n):(Z.push(n),x(),setTimeout(function(){O(n)},1e3))})}),!0},$.trackView=function(e){var t={url:window.location.href,title:document.title,page:A()};if(e)for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);$.track("$view",t)},$.trackClicks=function(){w("click","a, button, input[type=submit]",function(e){var t=e.target,n=I(e);n.text="input"==n.tag?t.value:(t.textContent||t.innerText||t.innerHTML).replace(/[\s\r\n]+/g," ").trim(),n.href=t.href,$.track("$click",n)})},$.trackSubmits=function(){w("submit","form",function(e){var t=I(e);$.track("$submit",t)})},$.trackChanges=function(){w("change","input, textarea, select",function(e){var t=I(e);$.track("$change",t)})},$.trackAll=function(){$.trackView(),$.trackClicks(),$.trackSubmits(),$.trackChanges()};try{Z=JSON.parse(p("ahoy_events")||"[]")}catch(X){}for(var Q=0;Q<Z.length;Q++)O(Z[Q]);return $.start=function(){M(),$.start=function(){}},S(function(){V.startOnReady&&$.start()}),$}),function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t(require("jquery")):"function"==typeof define&&define.amd?define(["jquery"],t):(e=e||self).parsley=t(e.jQuery)}(this,function(d){"use strict";function r(e){return(r="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 l(){return(l=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(this,arguments)}function a(e,t){return n(e)||o(e,t)||c()}function u(e){return t(e)||i(e)||s()}function t(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t<e.length;t++)n[t]=e[t];return n}}function n(e){if(Array.isArray(e))return e}function i(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}function o(e,t){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e)){var n=[],i=!0,r=!1,o=undefined;try{for(var s,a=e[Symbol.iterator]();!(i=(s=a.next()).done)&&(n.push(s.value),!t||n.length!==t);i=!0);}catch(l){r=!0,o=l}finally{try{i||null==a["return"]||a["return"]()}finally{if(r)throw o}}return n}}function s(){throw new TypeError("Invalid attempt to spread non-iterable instance")}function c(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}function h(t,n){return t.parsleyAdaptedCallback||(t.parsleyAdaptedCallback=function(){var e=Array.prototype.slice.call(arguments,0);e.unshift(this),t.apply(n||z,e)}),t.parsleyAdaptedCallback}function f(e){return 0===e.lastIndexOf(q,0)?e.substr(q.length):e}function p(){var i=this,r=window||global;l(this,{isNativeEvent:function(e){return e.originalEvent&&!1!==e.originalEvent.isTrusted},fakeInputEvent:function(e){i.isNativeEvent(e)&&d(e.target).trigger("input")},misbehaves:function(e){i.isNativeEvent(e)&&(i.behavesOk(e),d(document).on("change.inputevent",e.data.selector,i.fakeInputEvent),i.fakeInputEvent(e))},behavesOk:function(e){i.isNativeEvent(e)&&d(document).off("input.inputevent",e.data.selector,i.behavesOk).off("change.inputevent",e.data.selector,i.misbehaves)},install:function(){if(!r.inputEventPatched){r.inputEventPatched="0.0.3";for(var e=0,t=["select",'input[type="checkbox"]','input[type="radio"]','input[type="file"]'];e<t.length;e++){var n=t[e];d(document).on("input.inputevent",n,{selector:n},i.behavesOk).on("change.inputevent",n,{selector:n},i.misbehaves)}}},uninstall:function(){delete r.inputEventPatched,d(document).off(".inputevent")}})}var m,g=1,v={},y={attr:function(e,t,n){var i,r,o,s=new RegExp("^"+t,"i");if(void 0===n)n={};else for(i in n)n.hasOwnProperty(i)&&delete n[i];if(!e)return n;for(i=(o=e.attributes).length;i--;)(r=o[i])&&r.specified&&s.test(r.name)&&(n[this.camelize(r.name.slice(t.length))]=this.deserializeValue(r.value));return n},checkAttr:function(e,t,n){return e.hasAttribute(t+n)},setAttr:function(e,t,n,i){e.setAttribute(this.dasherize(t+n),String(i))},getType:function(e){return e.getAttribute("type")||"text"},generateID:function(){return""+g++},deserializeValue:function(e){var t;try{return e?"true"==e||"false"!=e&&("null"==e?null:isNaN(t=Number(e))?/^[\[\{]/.test(e)?JSON.parse(e):e:t):e}catch(n){return e}},camelize:function(e){return e.replace(/-+(.)?/g,function(e,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){v[e]||(v[e]=!0,this.warn.apply(this,arguments))},_resetWarnings:function(){v={}},trimString:function(e){return e.replace(/^\s+|\s+$/g,"")},parse:{date:function(e){var t=e.match(/^(\d{4,})-(\d\d)-(\d\d)$/);if(!t)return null;var n=a(t.map(function(e){return parseInt(e,10)}),4),i=(n[0],n[1]),r=n[2],o=n[3],s=new Date(i,r-1,o);return s.getFullYear()!==i||s.getMonth()+1!==r||s.getDate()!==o?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 y.deserializeValue(e)},regexp:function(e){var t="";return/^\/.*\/(?:[gimy]*)$/.test(e)?(t=e.replace(/.*\/([gimy]*)$/,"$1"),e=e.replace(new RegExp("^/(.*?)/"+t+"$"),"$1")):e="^"+e+"$",new RegExp(e,t)}},parseRequirement:function(e,t){var n=this.parse[e||"string"];if(!n)throw'Unknown requirement specification: "'+e+'"';var i=n(t);if(null===i)throw"Requirement is not a ".concat(e,': "').concat(t,'"');return i},namespaceEvents:function(e,t){return(e=this.trimString(e||"").split(/\s+/))[0]?d.map(e,function(e){return"".concat(e,".").concat(t)}).join(" "):""},difference:function(e,n){var i=[];return d.each(e,function(e,t){-1==n.indexOf(t)&&i.push(t)}),i},all:function(e){return d.when.apply(d,u(e).concat([42,42]))},objectCreate:Object.create||(m=function(){},function(e){if(1<arguments.length)throw Error("Second argument not supported");if("object"!=r(e))throw TypeError("Argument must be an object");m.prototype=e;var t=new m;return m.prototype=null,t}),_SubmitSelector:'input[type="submit"], button:submit'},b={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>"},w=function(){this.__id__=y.generateID()};w.prototype={asyncSupport:!0,_pipeAccordingToValidationResult:function(){var t=this,e=function(){var e=d.Deferred();return!0!==t.validationResult&&e.reject(),e.resolve().promise()};return[e,e]},actualizeOptions:function(){return y.attr(this.element,this.options.namespace,this.domOptions),this.parent&&this.parent.actualizeOptions&&this.parent.actualizeOptions(),this},_resetOptions:function(e){for(var t in this.domOptions=y.objectCreate(this.parent.options),this.options=y.objectCreate(this.domOptions),e)e.hasOwnProperty(t)&&(this.options[t]=e[t]);this.actualizeOptions()},_listeners:null,on:function(e,t){return this._listeners=this._listeners||{},(this._listeners[e]=this._listeners[e]||[]).push(t),this},subscribe:function(e,t){d.listenTo(this,e.toLowerCase(),t)},off:function(e,t){var n=this._listeners&&this._listeners[e];if(n)if(t)for(var i=n.length;i--;)n[i]===t&&n.splice(i,1);else delete this._listeners[e];return this},unsubscribe:function(e){d.unsubscribeTo(this,e.toLowerCase())},trigger:function(e,t,n){t=t||this;var i,r=this._listeners&&this._listeners[e];if(r)for(var o=r.length;o--;)if(!1===(i=r[o].call(t,t,n)))return i;return!this.parent||this.parent.trigger(e,t,n)},asyncIsValid:function(e,t){return y.warnOnce("asyncIsValid is deprecated; please use whenValid instead"),this.whenValid({group:e,force:t})},_findRelated:function(){return this.options.multiple?d(this.parent.element.querySelectorAll("[".concat(this.options.namespace,'multiple="').concat(this.options.multiple,'"]'))):this.$element}};var S=function(e,t){var n=e.match(/^\s*\[(.*)\]\s*$/);if(!n)throw'Requirement is not an array: "'+e+'"';var i=n[1].split(",").map(y.trimString);if(i.length!==t)throw"Requirement has "+i.length+" values when "+t+" are needed";return i},k=function(e,t,n){var i=null,r={};for(var o in e)if(o){var s=n(o);"string"==typeof s&&(s=y.parseRequirement(e[o],s)),r[o]=s}else i=y.parseRequirement(e[o],t);return[i,r]},x=function(e){d.extend(!0,this,e)};x.prototype={validate:function(e,t){if(this.fn)return 3<arguments.length&&(t=[].slice.call(arguments,1,-1)),this.fn(e,t);if(Array.isArray(e)){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]=y.parse.date(e),null!==e&&this.validateDate.apply(this,arguments);if(this.validateNumber)return!e||!isNaN(e)&&(arguments[0]=parseFloat(e),this.validateNumber.apply(this,arguments));if(this.validateString)return this.validateString.apply(this,arguments);throw"Validator `"+this.name+"` only handles multiple values"},parseRequirements:function(e,t){if("string"!=typeof e)return Array.isArray(e)?e:[e];var n=this.requirementType;if(Array.isArray(n)){for(var i=S(e,n.length),r=0;r<i.length;r++)i[r]=y.parseRequirement(n[r],i[r]);return i}return d.isPlainObject(n)?k(n,e,t):[y.parseRequirement(n,e)]},requirementType:"string",priority:2};var _=function(e,t){this.__class__="ValidatorRegistry",this.locale="en",this.init(e||{},t||{})},C={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!==y.parse.date(e)}},url:new RegExp("^(?:(?: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*)?$")};C.range=C.number;var T=function(e){var t=(""+e).match(/(?:\.(\d+))?(?:[eE]([+-]?\d+))?$/);return t?Math.max(0,(t[1]?t[1].length:0)-(t[2]?+t[2]:0)):0},E=function(e,t){return t.map(y.parse[e])},P=function(r,o){return function(e){for(var t=arguments.length,n=new Array(1<t?t-1:0),i=1;i<t;i++)n[i-1]=arguments[i];return n.pop(),o.apply(void 0,[e].concat(u(E(r,n))))}},O=function(e){return{validateDate:P("date",e),validateNumber:P("number",e),requirementType:e.length<=2?"string":["string","string"],priority:30}};_.prototype={init:function(e,t){for(var n in this.catalog=t,this.validators=l({},this.validators),e)this.addValidator(n,e[n].fn,e[n].priority);window.Parsley.trigger("parsley:validator:init")},setLocale:function(e){if("undefined"==typeof this.catalog[e])throw new Error(e+" is not available in the catalog");return this.locale=e,this},addCatalog:function(e,t,n){return"object"===r(t)&&(this.catalog[e]=t),!0===n?this.setLocale(e):this},addMessage:function(e,t,n){return"undefined"==typeof this.catalog[e]&&(this.catalog[e]={}),this.catalog[e][t]=n,this},addMessages:function(e,t){for(var n in t)this.addMessage(e,n,t[n]);return this},addValidator:function(e){if(this.validators[e])y.warn('Validator "'+e+'" is already defined.');else if(b.hasOwnProperty(e))return void y.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):(y.warn('Validator "'+e+'" is not already defined.'),this.addValidator.apply(this,arguments))},removeValidator:function(e){return this.validators[e]||y.warn('Validator "'+e+'" is not defined.'),delete this.validators[e],this},_setValidator:function(e,t,n){for(var i in"object"!==r(t)&&(t={fn:t,priority:n}),t.validate||(t=new x(t)),(this.validators[e]=t).messages||{})this.addMessage(i,e,t.messages[i]);return this},getErrorMessage:function(e){var t;"type"===e.name?t=(this.catalog[this.locale][e.name]||{})[e.requirements]:t=this.formatMessage(this.catalog[this.locale][e.name],e.requirements);return t||this.catalog[this.locale].defaultMessage||this.catalog.en.defaultMessage},formatMessage:function(e,t){if("object"===r(t)){for(var n in t)e=this.formatMessage(e,t[n]);return e}return"string"==typeof e?e.replace(/%s/i,t):""},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(e,t,n){var i=2<arguments.length&&n!==undefined?n:{},r=i.step,o=void 0===r?"any":r,s=i.base,a=void 0===s?0:s,l=C[t];if(!l)throw new Error("validator type `"+t+"` is not supported");if(!e)return!0;if(!l.test(e))return!1;if("number"===t&&!/^any$/i.test(o||"")){var u=Number(e),c=Math.max(T(o),T(a));if(T(u)>c)return!1;var d=function(e){return Math.round(e*Math.pow(10,c))};if((d(u)-d(a))%d(o)!=0)return!1}return!0},requirementType:{"":"string",step:"string",base:"number"},priority:256},pattern:{validateString:function(e,t){return!e||t.test(e)},requirementType:"regexp",priority:64},minlength:{validateString:function(e,t){return!e||e.length>=t},requirementType:"integer",priority:30},maxlength:{validateString:function(e,t){return e.length<=t},requirementType:"integer",priority:30},length:{validateString:function(e,t,n){return!e||e.length>=t&&e.length<=n},requirementType:["integer","integer"],priority:30},mincheck:{validateMultiple:function(e,t){return e.length>=t},requirementType:"integer",priority:30},maxcheck:{validateMultiple:function(e,t){return e.length<=t},requirementType:"integer",priority:30},check:{validateMultiple:function(e,t,n){return e.length>=t&&e.length<=n},requirementType:["integer","integer"],priority:30},min:O(function(e,t){return t<=e}),max:O(function(e,t){return e<=t}),range:O(function(e,t,n){return t<=e&&e<=n}),equalto:{validateString:function(e,t){if(!e)return!0;var n=d(t);return n.length?e===n.val():e===t},priority:256},euvatin:{validateString:function(e){return!e||/^[A-Z][A-Z][A-Za-z0-9 -]{2,}$/.test(e)},priority:30}}};var N={},A=function e(t,n,i){for(var r=[],o=[],s=0;s<t.length;s++){for(var a=!1,l=0;l<n.length;l++)if(t[s].assert.name===n[l].assert.name){a=!0;break}a?o.push(t[s]):r.push(t[s])}return{kept:o,added:r,removed:i?[]:e(n,t,!0).added}};N.Form={_actualizeTriggers:function(){var t=this;this.$element.on("submit.Parsley",function(e){t.onSubmitValidate(e)}),this.$element.on("click.Parsley",y._SubmitSelector,function(e){t.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 e=0;e<this.fields.length;e++){var t=this.fields[e];if(!0!==t.validationResult&&0<t.validationResult.length&&"undefined"==typeof t.options.noFocus&&(this._focusedField=t.$element,"first"===this.options.focus))break}return null===this._focusedField?null:this._focusedField.focus()},_destroyUI:function(){this.$element.off(".Parsley")}},N.Field={_reflowUI:function(){if(this._buildUI(),this._ui){var e=A(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 e=[],t=0;t<this.validationResult.length;t++)e.push(this.validationResult[t].errorMessage||this._getErrorMessage(this.validationResult[t].assert));return e},addError:function(e,t){var n=1<arguments.length&&t!==undefined?t:{},i=n.message,r=n.assert,o=n.updateClass,s=void 0===o||o;this._buildUI(),this._addError(e,{message:i,assert:r}),s&&this._errorClass()},updateError:function(e,t){var n=1<arguments.length&&t!==undefined?t:{},i=n.message,r=n.assert,o=n.updateClass,s=void 0===o||o;this._buildUI(),this._updateError(e,{message:i,assert:r}),s&&this._errorClass()},removeError:function(e,t){var n=(1<arguments.length&&t!==undefined?t:{}).updateClass,i=void 0===n||n;this._buildUI(),this._removeError(e),i&&this._manageStatusClass()},_manageStatusClass:function(){this.hasConstraints()&&this.needsValidation()&&!0===this.validationResult?this._successClass():0<this.validationResult.length?this._errorClass():this._resetClass()},_manageErrorsMessages:function(e){if("undefined"==typeof this.options.errorsMessagesDisabled){if("undefined"!=typeof this.options.errorMessage)return e.added.length||e.kept.length?(this._insertErrorWrapper(),0===this._ui.$errorsWrapper.find(".parsley-custom-error-message").length&&this._ui.$errorsWrapper.append(d(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<e.removed.length;t++)this._removeError(e.removed[t].assert.name);for(t=0;t<e.added.length;t++)this._addError(e.added[t].assert.name,{message:e.added[t].errorMessage,assert:e.added[t].assert});for(t=0;t<e.kept.length;t++)this._updateError(e.kept[t].assert.name,{message:e.kept[t].errorMessage,assert:e.kept[t].assert})}},_addError:function(e,t){var n=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(d(this.options.errorTemplate).addClass("parsley-"+e).html(n||this._getErrorMessage(i)))},_updateError:function(e,t){var n=t.message,i=t.assert;this._ui.$errorsWrapper.addClass("filled").find(".parsley-"+e).html(n||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(e){var t=e.name+"Message";return"undefined"!=typeof this.options[t]?window.Parsley.formatMessage(this.options[t],e.requirements):window.Parsley.getErrorMessage(e)},_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=d(this.options.errorsWrapper).attr("id",e.errorsWrapperId),e.lastValidationResult=[],e.validationInformationVisible=!1,this._ui=e}},_manageClassHandler:function(){if("string"==typeof this.options.classHandler&&d(this.options.classHandler).length)return d(this.options.classHandler);var e=this.options.classHandler;if("string"==typeof this.options.classHandler&&"function"==typeof window[this.options.classHandler]&&(e=window[this.options.classHandler]),"function"==typeof e){var t=e.call(this,this);if(void 0!==t&&t.length)return t}else{if("object"===r(e)&&e instanceof jQuery&&e.length)return e;e&&y.warn("The class handler `"+e+"` 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(d(e).length)return d(e).append(this._ui.$errorsWrapper);"function"==typeof window[e]?e=window[e]:y.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"===r(e)&&e.length?e.append(this._ui.$errorsWrapper):this._inputHolder().after(this._ui.$errorsWrapper)},_actualizeTriggers:function(){var e,t=this,n=this._findRelated();n.off(".Parsley"),this._failedOnce?n.on(y.namespaceEvents(this.options.triggerAfterFailure,"Parsley"),function(){t._validateIfNeeded()}):(e=y.namespaceEvents(this.options.trigger,"Parsley"))&&n.on(e,function(e){t._validateIfNeeded(e)})},_validateIfNeeded:function(e){var t=this;e&&/key|input/.test(e.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(),"undefined"!=typeof this._ui&&(this._ui.$errorsWrapper.removeClass("filled").children().remove(),this._resetClass(),this._ui.lastValidationResult=[],this._ui.validationInformationVisible=!1)},_destroyUI:function(){this._resetUI(),"undefined"!=typeof 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)}};var D=function(e,t,n){this.__class__="Form",this.element=e,this.$element=d(e),this.domOptions=t,this.options=n,this.parent=window.Parsley,this.fields=[],this.validationResult=null},F={pending:null,resolved:!0,rejected:!1};D.prototype={onSubmitValidate:function(e){var t=this;if(!0!==e.parsley){var n=this._submitSource||this.$element.find(y._SubmitSelector)[0];if(this._submitSource=null,this.$element.find(".parsley-synthetic-submit-button").prop("disabled",!0),!n||null===n.getAttribute("formnovalidate")){window.Parsley._remoteCache={};var i=this.whenValidate({event:e});"resolved"===i.state()&&!1!==this._trigger("submit")||(e.stopImmediatePropagation(),e.preventDefault(),"pending"===i.state()&&i.done(function(){t._submit(n)}))}}},onSubmitButton:function(e){this._submitSource=e.currentTarget},_submit:function(e){if(!1!==this._trigger("submit")){if(e){var t=this.$element.find(".parsley-synthetic-submit-button").prop("disabled",!1);0===t.length&&(t=d('<input class="parsley-synthetic-submit-button" type="hidden">').appendTo(this.$element)),t.attr({name:e.getAttribute("name"),value:e.getAttribute("value")})}this.$element.trigger(l(d.Event("submit"),{parsley:!0}))}},validate:function(e){if(1<=arguments.length&&!d.isPlainObject(e)){y.warnOnce("Calling validate on a parsley form without passing arguments as an object is deprecated.");var t=Array.prototype.slice.call(arguments);e={group:t[0],force:t[1],event:t[2]}}return F[this.whenValidate(e).state()]},whenValidate:function(e){var t,n=this,i=0<arguments.length&&e!==undefined?e:{},r=i.group,o=i.force,s=i.event;(this.submitEvent=s)&&(this.submitEvent=l({},s,{preventDefault:function(){y.warnOnce("Using `this.submitEvent.preventDefault()` is deprecated; instead, call `this.validationResult = false`"),n.validationResult=!1}})),this.validationResult=!0,this._trigger("validate"),this._refreshFields();var a=this._withoutReactualizingFormOptions(function(){return d.map(n.fields,function(e){return e.whenValidate({force:o,group:r})})});return(t=y.all(a).done(function(){n._trigger("success")}).fail(function(){n.validationResult=!1,n.focus(),n._trigger("error")}).always(function(){n._trigger("validated")})).pipe.apply(t,u(this._pipeAccordingToValidationResult()))},isValid:function(e){if(1<=arguments.length&&!d.isPlainObject(e)){y.warnOnce("Calling isValid on a parsley form without passing arguments as an object is deprecated.");var t=Array.prototype.slice.call(arguments);e={group:t[0],force:t[1]}}return F[this.whenValid(e).state()]},whenValid:function(e){var t=this,n=0<arguments.length&&e!==undefined?e:{},i=n.group,r=n.force;this._refreshFields();var o=this._withoutReactualizingFormOptions(function(){return d.map(t.fields,function(e){return e.whenValid({group:i,force:r})})});return y.all(o)},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 r=this,e=this.fields;return this.fields=[],this.fieldsMappedById={},this._withoutReactualizingFormOptions(function(){r.$element.find(r.options.inputs).not(r.options.excluded).not("[".concat(r.options.namespace,"excluded=true]")).each(function(e,t){var n=new window.Parsley.Factory(t,{},r);if("Field"===n.__class__||"FieldMultiple"===n.__class__){var i=n.__class__+"-"+n.__id__;"undefined"==typeof r.fieldsMappedById[i]&&(r.fieldsMappedById[i]=n,r.fields.push(n))}}),d.each(y.difference(e,r.fields),function(e,t){t.reset()})}),this},_withoutReactualizingFormOptions:function(e){var t=this.actualizeOptions;this.actualizeOptions=function(){return this};var n=e();return this.actualizeOptions=t,n},_trigger:function(e){return this.trigger("form:"+e)}};var I=function(e,t,n,i,r){var o=window.Parsley._validatorRegistry.validators[t],s=new x(o);l(this,{validator:s,name:t,requirements:n,priority:i=i||e.options[t+"Priority"]||s.priority,isDomConstraint:r=!0===r}),this._parseRequirements(e.options)},L=function(e){return e[0].toUpperCase()+e.slice(1)};I.prototype={validate:function(e,t){var n;return(n=this.validator).validate.apply(n,[e].concat(u(this.requirementList),[t]))},_parseRequirements:function(t){var n=this;this.requirementList=this.validator.parseRequirements(this.requirements,function(e){return t[n.name+L(e)]})}};var M=function(e,t,n,i){this.__class__="Field",this.element=e,this.$element=d(e),void 0!==i&&(this.parent=i),this.options=n,this.domOptions=t,this.constraints=[],this.constraintsByName={},this.validationResult=!0,this._bindConstraints()},j={pending:null,resolved:!0,rejected:!1};M.prototype={validate:function(e){1<=arguments.length&&!d.isPlainObject(e)&&(y.warnOnce("Calling validate on a parsley field without passing arguments as an object is deprecated."),e={options:e});var t=this.whenValidate(e);if(!t)return!0;switch(t.state()){case"pending":return null;case"resolved":return!0;case"rejected":return this.validationResult}},whenValidate:function(e){var t,n=this,i=0<arguments.length&&e!==undefined?e:{},r=i.force,o=i.group;if(this.refresh(),!o||this._isInGroup(o))return this.value=this.getValue(),this._trigger("validate"),(t=this.whenValid({force:r,value:this.value,_refreshed:!0}).always(function(){n._reflowUI()}).done(function(){n._trigger("success")}).fail(function(){n._trigger("error")}).always(function(){n._trigger("validated")})).pipe.apply(t,u(this._pipeAccordingToValidationResult()))},hasConstraints:function(){return 0!==this.constraints.length},needsValidation:function(e){return void 0===e&&(e=this.getValue()),!(!e.length&&!this._isRequired()&&"undefined"==typeof this.options.validateIfEmpty)},_isInGroup:function(e){return Array.isArray(this.options.group)?-1!==d.inArray(e,this.options.group):this.options.group===e},isValid:function(e){if(1<=arguments.length&&!d.isPlainObject(e)){y.warnOnce("Calling isValid on a parsley field without passing arguments as an object is deprecated.");var t=Array.prototype.slice.call(arguments);e={force:t[0],value:t[1]}}var n=this.whenValid(e);return!n||j[n.state()]},whenValid:function(e){var i=this,t=0<arguments.length&&e!==undefined?e:{},n=t.force,r=void 0!==n&&n,o=t.value,s=t.group;if(t._refreshed||this.refresh(),!s||this._isInGroup(s)){if(this.validationResult=!0,!this.hasConstraints())return d.when();if(null==o&&(o=this.getValue()),!this.needsValidation(o)&&!0!==r)return d.when();var a=this._getGroupedConstraints(),l=[];return d.each(a,function(e,t){var n=y.all(d.map(t,function(e){return i._validateConstraint(o,e)}));if(l.push(n),"rejected"===n.state())return!1}),y.all(l)}},_validateConstraint:function(e,t){var n=this,i=t.validate(e,this);return!1===i&&(i=d.Deferred().reject()),y.all([i]).fail(function(e){n.validationResult instanceof Array||(n.validationResult=[]),n.validationResult.push({assert:t,errorMessage:"string"==typeof e&&e})})},getValue:function(){var e;return null==(e="function"==typeof this.options.value?this.options.value(this):"undefined"!=typeof this.options.value?this.options.value:this.$element.val())?"":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 y.warnOnce("Parsley's refreshConstraints is deprecated. Please use refresh"),this.refresh()},addConstraint:function(e,t,n,i){if(window.Parsley._validatorRegistry.validators[e]){var r=new I(this,e,t,n,i);"undefined"!==this.constraintsByName[r.name]&&this.removeConstraint(r.name),this.constraints.push(r),this.constraintsByName[r.name]=r}return this},removeConstraint:function(e){for(var t=0;t<this.constraints.length;t++)if(e===this.constraints[t].name){this.constraints.splice(t,1);break}return delete this.constraintsByName[e],this},updateConstraint:function(e,t,n){return this.removeConstraint(e).addConstraint(e,t,n)},_bindConstraints:function(){for(var e=[],t={},n=0;n<this.constraints.length;n++)!1===this.constraints[n].isDomConstraint&&(e.push(this.constraints[n]),t[this.constraints[n].name]=this.constraints[n]);for(var i in this.constraints=e,this.constraintsByName=t,this.options)this.addConstraint(i,this.options[i],undefined,!0);return this._bindHtml5Constraints()},_bindHtml5Constraints:function(){null!==this.element.getAttribute("required")&&this.addConstraint("required",!0,undefined,!0),null!==this.element.getAttribute("pattern")&&this.addConstraint("pattern",this.element.getAttribute("pattern"),undefined,!0);var e=this.element.getAttribute("min"),t=this.element.getAttribute("max");null!==e&&null!==t?this.addConstraint("range",[e,t],undefined,!0):null!==e?this.addConstraint("min",e,undefined,!0):null!==t&&this.addConstraint("max",t,undefined,!0),
null!==this.element.getAttribute("minlength")&&null!==this.element.getAttribute("maxlength")?this.addConstraint("length",[this.element.getAttribute("minlength"),this.element.getAttribute("maxlength")],undefined,!0):null!==this.element.getAttribute("minlength")?this.addConstraint("minlength",this.element.getAttribute("minlength"),undefined,!0):null!==this.element.getAttribute("maxlength")&&this.addConstraint("maxlength",this.element.getAttribute("maxlength"),undefined,!0);var n=y.getType(this.element);return"number"===n?this.addConstraint("type",["number",{step:this.element.getAttribute("step")||"1",base:e||this.element.getAttribute("value")}],undefined,!0):/^(email|url|range|date)$/i.test(n)?this.addConstraint("type",n,undefined,!0):this},_isRequired:function(){return"undefined"!=typeof this.constraintsByName.required&&!1!==this.constraintsByName.required.requirements},_trigger:function(e){return this.trigger("field:"+e)},_handleWhitespace:function(e){return!0===this.options.trimValue&&y.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=y.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 e=[],t={},n=0;n<this.constraints.length;n++){var i=this.constraints[n].priority;t[i]||e.push(t[i]=[]),t[i].push(this.constraints[n])}return e.sort(function(e,t){return t[0].priority-e[0].priority}),e}};var R=function(){this.__class__="FieldMultiple"};R.prototype={addElement:function(e){return this.$elements.push(e),this},_refreshConstraints:function(){var e;if(this.constraints=[],"SELECT"===this.element.nodeName)return this.actualizeOptions()._bindConstraints(),this;for(var t=0;t<this.$elements.length;t++)if(d("html").has(this.$elements[t]).length){e=this.$elements[t].data("FieldMultiple")._refreshConstraints().constraints;for(var n=0;n<e.length;n++)this.addConstraint(e[n].name,e[n].requirements,e[n].priority,e[n].isDomConstraint)}else this.$elements.splice(t,1);return this},getValue:function(){if("function"==typeof this.options.value)return this.options.value(this);if("undefined"!=typeof this.options.value)return this.options.value;if("INPUT"===this.element.nodeName){var e=y.getType(this.element);if("radio"===e)return this._findRelated().filter(":checked").val()||"";if("checkbox"===e){var t=[];return this._findRelated().filter(":checked").each(function(){t.push(d(this).val())}),t}}return"SELECT"===this.element.nodeName&&null===this.$element.val()?[]:this.$element.val()},_init:function(){return this.$elements=[this.$element],this}};var V=function(e,t,n){this.element=e,this.$element=d(e);var i=this.$element.data("Parsley");if(i)return void 0!==n&&i.parent===window.Parsley&&(i.parent=n,i._resetOptions(i.options)),"object"===r(t)&&l(i.options,t),i;if(!this.$element.length)throw new Error("You must bind Parsley on an existing element.");if(void 0!==n&&"Form"!==n.__class__)throw new Error("Parent instance must be a Form instance");return this.parent=n||window.Parsley,this.init(t)};V.prototype={init:function(e){return this.__class__="Parsley",this.__version__="2.9.2",this.__id__=y.generateID(),this._resetOptions(e),"FORM"===this.element.nodeName||y.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=y.getType(this.element);return"radio"===e||"checkbox"===e||"SELECT"===this.element.nodeName&&null!==this.element.getAttribute("multiple")},handleMultiple:function(){var e,t,i=this;if(this.options.multiple=this.options.multiple||(e=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 y.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,""),e&&d('input[name="'+e+'"]').each(function(e,t){var n=y.getType(t);"radio"!==n&&"checkbox"!==n||t.setAttribute(i.options.namespace+"multiple",i.options.multiple)});for(var n=this._findRelated(),r=0;r<n.length;r++)if(void 0!==(t=d(n.get(r)).data("Parsley"))){this.$element.data("FieldMultiple")||t.addElement(this.$element);break}return this.bind("parsleyField",!0),t||this.bind("parsleyFieldMultiple")},bind:function(e,t){var n;switch(e){case"parsleyForm":n=d.extend(new D(this.element,this.domOptions,this.options),new w,window.ParsleyExtend)._bindFields();break;case"parsleyField":n=d.extend(new M(this.element,this.domOptions,this.options,this.parent),new w,window.ParsleyExtend);break;case"parsleyFieldMultiple":n=d.extend(new M(this.element,this.domOptions,this.options,this.parent),new R,new w,window.ParsleyExtend)._init();break;default:throw new Error(e+"is not a supported Parsley type")}return this.options.multiple&&y.setAttr(this.element,this.options.namespace,"multiple",this.options.multiple),void 0!==t?this.$element.data("FieldMultiple",n):(this.$element.data("Parsley",n),n._actualizeTriggers(),n._trigger("init")),n}};var $=d.fn.jquery.split(".");if(parseInt($[0])<=1&&parseInt($[1])<8)throw"The loaded version of jQuery is too old. Please upgrade to 1.8.x or better.";$.forEach||y.warn("Parsley requires ES5 to run properly. Please include https://github.com/es-shims/es5-shim");var U=l(new w,{element:document,$element:d(document),actualizeOptions:null,_resetOptions:null,Factory:V,version:"2.9.2"});l(M.prototype,N.Field,w.prototype),l(D.prototype,N.Form,w.prototype),l(V.prototype,w.prototype),d.fn.parsley=d.fn.psly=function(e){if(1<this.length){var t=[];return this.each(function(){t.push(d(this).parsley(e))}),t}if(0!=this.length)return new V(this[0],e)},"undefined"==typeof window.ParsleyExtend&&(window.ParsleyExtend={}),U.options=l(y.objectCreate(b),window.ParsleyConfig),window.ParsleyConfig=U.options,window.Parsley=window.psly=U,U.Utils=y,window.ParsleyUtils={},d.each(y,function(e,t){"function"==typeof t&&(window.ParsleyUtils[e]=function(){return y.warnOnce("Accessing `window.ParsleyUtils` is deprecated. Use `window.Parsley.Utils` instead."),y[e].apply(y,arguments)})});var B=window.Parsley._validatorRegistry=new _(window.ParsleyConfig.validators,window.ParsleyConfig.i18n);window.ParsleyValidator={},d.each("setLocale addCatalog addMessage addMessages getErrorMessage formatMessage addValidator updateValidator removeValidator hasValidator".split(" "),function(e,t){window.Parsley[t]=function(){return B[t].apply(B,arguments)},window.ParsleyValidator[t]=function(){var e;return y.warnOnce("Accessing the method '".concat(t,"' through Validator is deprecated. Simply call 'window.Parsley.").concat(t,"(...)'")),(e=window.Parsley)[t].apply(e,arguments)}}),window.Parsley.UI=N,window.ParsleyUI={removeError:function(e,t,n){var i=!0!==n;return y.warnOnce("Accessing UI 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:i})},getErrorsMessages:function(e){return y.warnOnce("Accessing UI is deprecated. Call 'getErrorsMessages' on the instance directly."),e.getErrorsMessages()}},d.each("addError updateError".split(" "),function(e,s){window.ParsleyUI[s]=function(e,t,n,i,r){var o=!0!==r;return y.warnOnce("Accessing UI is deprecated. Call '".concat(s,"' on the instance directly. Please comment in issue 1073 as to your need to call this method.")),e[s](t,{message:n,assert:i,updateClass:o})}}),!1!==window.ParsleyConfig.autoBind&&d(function(){d("[data-parsley-validate]").length&&d("[data-parsley-validate]").parsley()});var z=d({}),H=function(){y.warnOnce("Parsley's pubsub module is deprecated; use the 'on' and 'off' methods on parsley instances or window.Parsley")},q="parsley:";return d.listen=function(e,t,n){var i;if(H(),"object"===r(t)&&"function"==typeof n&&(i=t,t=n),"function"!=typeof t)throw new Error("Wrong parameters");window.Parsley.on(f(e),h(t,i))},d.listenTo=function(e,t,n){if(H(),!(e instanceof M||e instanceof D))throw new Error("Must give Parsley instance");if("string"!=typeof t||"function"!=typeof n)throw new Error("Wrong parameters");e.on(f(t),h(n))},d.unsubscribe=function(e,t){if(H(),"string"!=typeof e||"function"!=typeof t)throw new Error("Wrong arguments");window.Parsley.off(f(e),t.parsleyAdaptedCallback)},d.unsubscribeTo=function(e,t){if(H(),!(e instanceof M||e instanceof D))throw new Error("Must give Parsley instance");e.off(f(t))},d.unsubscribeAll=function(t){H(),window.Parsley.off(f(t)),d("form,input,textarea,select").each(function(){var e=d(this).data("Parsley");e&&e.off(f(t))})},d.emit=function(e,t){var n;H();var i=t instanceof M||t instanceof D,r=Array.prototype.slice.call(arguments,i?2:1);r.unshift(f(e)),i||(t=window.Parsley),(n=t).trigger.apply(n,u(r))},d.extend(!0,U,{asyncValidators:{"default":{fn:function(e){return 200<=e.status&&e.status<300},url:!1},reverse:{fn:function(e){return e.status<200||300<=e.status},url:!1}},addAsyncValidator:function(e,t,n,i){return U.asyncValidators[e]={fn:t,url:n||!1,options:i||{}},this}}),U.addValidator("remote",{requirementType:{"":"string",validator:"string",reverse:"boolean",options:"object"},validateString:function(e,t,n,i){var r,o,s={},a=n.validator||(!0===n.reverse?"reverse":"default");if("undefined"==typeof U.asyncValidators[a])throw new Error("Calling an undefined async validator: `"+a+"`");-1<(t=U.asyncValidators[a].url||t).indexOf("{value}")?t=t.replace("{value}",encodeURIComponent(e)):s[i.element.getAttribute("name")||i.element.getAttribute("id")]=e;var l=d.extend(!0,n.options||{},U.asyncValidators[a].options);r=d.extend(!0,{},{url:t,data:s,type:"GET"},l),i.trigger("field:ajaxoptions",i,r),o=d.param(r),"undefined"==typeof U._remoteCache&&(U._remoteCache={});var u=U._remoteCache[o]=U._remoteCache[o]||d.ajax(r),c=function(){var e=U.asyncValidators[a].fn.call(i,u,t,n);return e||(e=d.Deferred().reject()),d.when(e)};return u.then(c,c)},priority:-1}),U.on("form:submit",function(){U._remoteCache={}}),w.prototype.addAsyncValidator=function(){return y.warnOnce("Accessing the method `addAsyncValidator` through an instance is deprecated. Simply call `Parsley.addAsyncValidator(...)`"),U.addAsyncValidator.apply(U,arguments)},U.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."}),U.setLocale("en"),(new p).install(),U}),function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.AutoNumeric=t():e.AutoNumeric=t()}(this,function(){return function(n){function r(e){if(i[e])return i[e].exports;var t=i[e]={i:e,l:!1,exports:{}};return n[e].call(t.exports,t,t.exports,r),t.l=!0,t.exports}var i={};return r.m=n,r.c=i,r.d=function(e,t,n){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(t,e){if(1&e&&(t=r(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var i in t)r.d(n,i,function(e){return t[e]}.bind(null,i));return n},r.n=function(e){var t=e&&e.__esModule?function(){return e["default"]}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="",r(r.s="./src/main.js")}({"./src/AutoNumeric.js":function(e,t,n){"use strict";function v(e){return o(e)||r(e)||a(e)||i()}function i(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function r(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}function o(e){if(Array.isArray(e))return l(e)}function b(e,t){return c(e)||u(e,t)||a(e,t)||s()}function s(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function a(e,t){if(e){if("string"==typeof e)return l(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(n):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?l(e,t):void 0}}function l(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}function u(e,t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e)){var n=[],i=!0,r=!1,o=undefined;try{for(var s,a=e[Symbol.iterator]();!(i=(s=a.next()).done)&&(n.push(s.value),!t||n.length!==t);i=!0);}catch(l){r=!0,o=l}finally{try{i||null==a["return"]||a["return"]()}finally{if(r)throw o}}return n}}function c(e){if(Array.isArray(e))return e}function m(){return(m=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(this,arguments)}function y(e){"@babel/helpers - typeof";return(y="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(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function d(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function f(e,t,n){return t&&d(e.prototype,t),n&&d(e,n),e}n.r(t),n.d(t,"default",function(){return S});var R=n("./src/AutoNumericHelper.js"),p=n("./src/AutoNumericEnum.js"),g=n("./src/maths/Evaluator.js"),w=n("./src/maths/Parser.js"),S=function(){function j(e,t,n){var s=this,i=0<arguments.length&&e!==undefined?e:null,r=1<arguments.length&&t!==undefined?t:null,o=2<arguments.length&&n!==undefined?n:null;h(this,j);var a=j._setArgumentsValues(i,r,o),l=a.domElement,u=a.initialValue,c=a.userOptions;if(this.domElement=l,this.defaultRawValue="",this._setSettings(c,!1),this._checkElement(),this.savedCancellableValue=null,this.historyTable=[],this.historyTableIndex=-1,this.onGoingRedo=!1,this.parentForm=this._getParentForm(),!this.runOnce&&this.settings.formatOnPageLoad)this._formatDefaultValueOnPageLoad(u);else{var d;if(R["default"].isNull(u))switch(this.settings.emptyInputBehavior){case j.options.emptyInputBehavior.min:d=this.settings.minimumValue;break;case j.options.emptyInputBehavior.max:d=this.settings.maximumValue;break;case j.options.emptyInputBehavior.zero:d="0";break;case j.options.emptyInputBehavior.focus:case j.options.emptyInputBehavior.press:case j.options.emptyInputBehavior.always:case j.options.emptyInputBehavior["null"]:d="";break;default:d=this.settings.emptyInputBehavior}else d=u;this._setElementAndRawValue(d)}this.runOnce=!0,this.hasEventListeners=!1,(this.isInputElement||this.isContentEditable)&&(this.settings.noEventListeners||this._createEventListeners(),this._setWritePermissions(!0)),this._saveInitialValues(u),this.sessionStorageAvailable=this.constructor._storageTest(),this.storageNamePrefix="AUTO_",this._setPersistentStorageName(),this.validState=!0,this.isFocused=!1,this.isWheelEvent=!1,this.isDropEvent=!1,this.isEditing=!1,this.rawValueOnFocus=void 0,this.internalModification=!1,this.attributeToWatch=this._getAttributeToWatch(),this.getterSetter=Object.getOwnPropertyDescriptor(this.domElement.__proto__,this.attributeToWatch),this._addWatcher(),this.settings.createLocalList&&this._createLocalList(),this.constructor._addToGlobalList(this),this.global={set:function(t,e){var n=1<arguments.length&&e!==undefined?e:null;s.autoNumericLocalList.forEach(function(e){e.set(t,n)})},setUnformatted:function(t,e){var n=1<arguments.length&&e!==undefined?e:null;s.autoNumericLocalList.forEach(function(e){e.setUnformatted(t,n)})},get:function(e){var t=0<arguments.length&&e!==undefined?e:null,n=[];return s.autoNumericLocalList.forEach(function(e){n.push(e.get())}),s._executeCallback(n,t),n},getNumericString:function(e){var t=0<arguments.length&&e!==undefined?e:null,n=[];return s.autoNumericLocalList.forEach(function(e){n.push(e.getNumericString())}),s._executeCallback(n,t),n},getFormatted:function(e){var t=0<arguments.length&&e!==undefined?e:null,n=[];return s.autoNumericLocalList.forEach(function(e){n.push(e.getFormatted())}),s._executeCallback(n,t),n},getNumber:function(e){var t=0<arguments.length&&e!==undefined?e:null,n=[];return s.autoNumericLocalList.forEach(function(e){n.push(e.getNumber())}),s._executeCallback(n,t),n},getLocalized:function(e){var t=0<arguments.length&&e!==undefined?e:null,n=[];return s.autoNumericLocalList.forEach(function(e){n.push(e.getLocalized())}),s._executeCallback(n,t),n},reformat:function(){s.autoNumericLocalList.forEach(function(e){e.reformat()})},unformat:function(){s.autoNumericLocalList.forEach(function(e){e.unformat()})},unformatLocalized:function(e){var t=0<arguments.length&&e!==undefined?e:null;s.autoNumericLocalList.forEach(function(e){e.unformatLocalized(t)})},update:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];s.autoNumericLocalList.forEach(function(e){e.update.apply(e,t)})},isPristine:function(e){var t=!(0<arguments.length&&e!==undefined)||e,n=!0;return s.autoNumericLocalList.forEach(function(e){n&&!e.isPristine(t)&&(n=!1)}),n},clear:function(e){var t=0<arguments.length&&e!==undefined&&e;s.autoNumericLocalList.forEach(function(e){e.clear(t)})},remove:function(){s.autoNumericLocalList.forEach(function(e){e.remove()})},wipe:function(){s.autoNumericLocalList.forEach(function(e){e.wipe()})},nuke:function(){s.autoNumericLocalList.forEach(function(e){e.nuke()})},has:function(e){return e instanceof j?s.autoNumericLocalList.has(e.node()):s.autoNumericLocalList.has(e)},addObject:function(e){var t,n;e instanceof j?(t=e.node(),n=e):(t=e,n=j.getAutoNumericElement(t)),s._hasLocalList()||s._createLocalList();var i,r=n._getLocalList();0===r.size&&(n._createLocalList(),r=n._getLocalList()),r instanceof Map?i=R["default"].mergeMaps(s._getLocalList(),r):(s._addToLocalList(t,n),i=s._getLocalList()),i.forEach(function(e){e._setLocalList(i)})},removeObject:function(e,t){var n,i,r=1<arguments.length&&t!==undefined&&t;e instanceof j?(n=e.node(),i=e):(n=e,i=j.getAutoNumericElement(n));var o=s.autoNumericLocalList;s.autoNumericLocalList["delete"](n),o.forEach(function(e){e._setLocalList(s.autoNumericLocalList)}),r||n!==s.node()?i._createLocalList():i._setLocalList(new Map)},empty:function(e){var t=0<arguments.length&&e!==undefined&&e;s.autoNumericLocalList.forEach(function(e){t?e._createLocalList():e._setLocalList(new Map)})},elements:function(){var t=[];return s.autoNumericLocalList.forEach(function(e){t.push(e.node())}),t},getList:function(){return s.autoNumericLocalList},size:function(){return s.autoNumericLocalList.size}},this.options={reset:function(){return s.settings={rawValue:s.defaultRawValue},s.update(j.defaultSettings),s},allowDecimalPadding:function(e){return s.update({allowDecimalPadding:e}),s},alwaysAllowDecimalCharacter:function(e){return s.update({alwaysAllowDecimalCharacter:e}),s},caretPositionOnFocus:function(e){return s.settings.caretPositionOnFocus=e,s},createLocalList:function(e){return s.settings.createLocalList=e,s.settings.createLocalList?s._hasLocalList()||s._createLocalList():s._deleteLocalList(),s},currencySymbol:function(e){return s.update({currencySymbol:e}),s},currencySymbolPlacement:function(e){return s.update({currencySymbolPlacement:e}),s},decimalCharacter:function(e){return s.update({decimalCharacter:e}),s},decimalCharacterAlternative:function(e){return s.settings.decimalCharacterAlternative=e,s},decimalPlaces:function(e){return R["default"].warning("Using `options.decimalPlaces()` instead of calling the specific `options.decimalPlacesRawValue()`, `options.decimalPlacesShownOnFocus()` and `options.decimalPlacesShownOnBlur()` methods will reset those options.\nPlease call the specific methods if you do not want to reset those.",s.settings.showWarnings),s.update({decimalPlaces:e}),s},decimalPlacesRawValue:function(e){return s.update({decimalPlacesRawValue:e}),s},decimalPlacesShownOnBlur:function(e){return s.update({decimalPlacesShownOnBlur:e}),s},decimalPlacesShownOnFocus:function(e){return s.update({decimalPlacesShownOnFocus:e}),s},defaultValueOverride:function(e){return s.update({defaultValueOverride:e}),s},digitalGroupSpacing:function(e){return s.update({digitalGroupSpacing:e}),s},digitGroupSeparator:function(e){return s.update({digitGroupSeparator:e}),s},divisorWhenUnfocused:function(e){return s.update({divisorWhenUnfocused:e}),s},emptyInputBehavior:function(e){return null===s.rawValue&&e!==j.options.emptyInputBehavior["null"]&&(R["default"].warning("You are trying to modify the `emptyInputBehavior` option to something different than `'null'` (".concat(e,"), but the element raw value is currently set to `null`. This would result in an invalid `rawValue`. In order to fix that, the element value has been changed to the empty string `''`."),s.settings.showWarnings),s.rawValue=""),s.update({emptyInputBehavior:e}),s},eventBubbles:function(e){return s.settings.eventBubbles=e,s},eventIsCancelable:function(e){return s.settings.eventIsCancelable=e,s},failOnUnknownOption:function(e){return s.settings.failOnUnknownOption=e,s},formatOnPageLoad:function(e){return s.settings.formatOnPageLoad=e,s},formulaMode:function(e){return s.settings.formulaMode=e,s},historySize:function(e){return s.settings.historySize=e,s},invalidClass:function(e){return s.settings.invalidClass=e,s},isCancellable:function(e){return s.settings.isCancellable=e,s},leadingZero:function(e){return s.update({leadingZero:e}),s},maximumValue:function(e){return s.update({maximumValue:e}),s},minimumValue:function(e){return s.update({minimumValue:e}),s},modifyValueOnWheel:function(e){return s.settings.modifyValueOnWheel=e,s},negativeBracketsTypeOnBlur:function(e){return s.update({negativeBracketsTypeOnBlur:e}),s},negativePositiveSignPlacement:function(e){return s.update({negativePositiveSignPlacement:e}),s},negativeSignCharacter:function(e){return s.update({negativeSignCharacter:e}),s},noEventListeners:function(e){return e===j.options.noEventListeners.noEvents&&s.settings.noEventListeners===j.options.noEventListeners.addEvents&&s._removeEventListeners(),s.update({noEventListeners:e}),s},onInvalidPaste:function(e){return s.settings.onInvalidPaste=e,s},outputFormat:function(e){return s.settings.outputFormat=e,s},overrideMinMaxLimits:function(e){return s.update({overrideMinMaxLimits:e}),s},positiveSignCharacter:function(e){return s.update({positiveSignCharacter:e}),s},rawValueDivisor:function(e){return s.update({rawValueDivisor:e}),s},readOnly:function(e){return s.settings.readOnly=e,s._setWritePermissions(),s},roundingMethod:function(e){return s.update({roundingMethod:e}),s},saveValueToSessionStorage:function(e){return s.update({saveValueToSessionStorage:e}),s},symbolWhenUnfocused:function(e){return s.update({symbolWhenUnfocused:e}),s},selectNumberOnly:function(e){return s.settings.selectNumberOnly=e,s},selectOnFocus:function(e){return s.settings.selectOnFocus=e,s},serializeSpaces:function(e){return s.settings.serializeSpaces=e,s},showOnlyNumbersOnFocus:function(e){return s.update({showOnlyNumbersOnFocus:e}),s},showPositiveSign:function(e){return s.update({showPositiveSign:e}),s},showWarnings:function(e){return s.settings.showWarnings=e,s},styleRules:function(e){return s.update({styleRules:e}),s},suffixText:function(e){return s.update({suffixText:e}),s},unformatOnHover:function(e){return s.settings.unformatOnHover=e,s},unformatOnSubmit:function(e){return s.settings.unformatOnSubmit=e,s},valuesToStrings:function(e){return s.update({valuesToStrings:e}),s},watchExternalChanges:function(e){return s.update({watchExternalChanges:e}),s},wheelOn:function(e){return s.settings.wheelOn=e,s},wheelStep:function(e){return s.settings.wheelStep=e,s}},this._triggerEvent(j.events.initialized,this.domElement,{newValue:R["default"].getElementValue(this.domElement),newRawValue:this.rawValue,error:null,aNElement:this})}return f(j,[{key:"_saveInitialValues",value:function(e){this.initialValueHtmlAttribute=R["default"].scientificToDecimal(this.domElement.getAttribute("value")),R["default"].isNull(this.initialValueHtmlAttribute)&&(this.initialValueHtmlAttribute=""),this.initialValue=e,R["default"].isNull(this.initialValue)&&(this.initialValue="")}},{key:"_createEventListeners",value:function(){var t=this;this.formulaMode=!1,this._onFocusInFunc=function(e){t._onFocusIn(e)},this._onFocusInAndMouseEnterFunc=function(e){t._onFocusInAndMouseEnter(e)},this._onFocusFunc=function(){t._onFocus()},this._onKeydownFunc=function(e){t._onKeydown(e)},this._onKeypressFunc=function(e){t._onKeypress(e)},this._onKeyupFunc=function(e){t._onKeyup(e)},this._onFocusOutAndMouseLeaveFunc=function(e){t._onFocusOutAndMouseLeave(e)},this._onPasteFunc=function(e){t._onPaste(e)},this._onWheelFunc=function(e){t._onWheel(e)},this._onDropFunc=function(e){t._onDrop(e)},this._onKeydownGlobalFunc=function(e){t._onKeydownGlobal(e)},this._onKeyupGlobalFunc=function(e){t._onKeyupGlobal(e)},this.domElement.addEventListener("focusin",this._onFocusInFunc,!1),this.domElement.addEventListener("focus",this._onFocusInAndMouseEnterFunc,!1),this.domElement.addEventListener("focus",this._onFocusFunc,!1),this.domElement.addEventListener("mouseenter",this._onFocusInAndMouseEnterFunc,!1),this.domElement.addEventListener("keydown",this._onKeydownFunc,!1),this.domElement.addEventListener("keypress",this._onKeypressFunc,!1),this.domElement.addEventListener("keyup",this._onKeyupFunc,!1),this.domElement.addEventListener("blur",this._onFocusOutAndMouseLeaveFunc,!1),this.domElement.addEventListener("mouseleave",this._onFocusOutAndMouseLeaveFunc,!1),this.domElement.addEventListener("paste",this._onPasteFunc,!1),this.domElement.addEventListener("wheel",this._onWheelFunc,!1),this.domElement.addEventListener("drop",this._onDropFunc,!1),this._setupFormListener(),this.hasEventListeners=!0,j._doesGlobalListExists()||(document.addEventListener("keydown",this._onKeydownGlobalFunc,!1),document.addEventListener("keyup",this._onKeyupGlobalFunc,!1))}},{key:"_removeEventListeners",value:function(){this.domElement.removeEventListener("focusin",this._onFocusInFunc,!1),this.domElement.removeEventListener("focus",this._onFocusInAndMouseEnterFunc,!1),this.domElement.removeEventListener("focus",this._onFocusFunc,!1),this.domElement.removeEventListener("mouseenter",this._onFocusInAndMouseEnterFunc,!1),this.domElement.removeEventListener("blur",this._onFocusOutAndMouseLeaveFunc,!1),this.domElement.removeEventListener("mouseleave",this._onFocusOutAndMouseLeaveFunc,!1),this.domElement.removeEventListener("keydown",this._onKeydownFunc,!1),this.domElement.removeEventListener("keypress",this._onKeypressFunc,!1),this.domElement.removeEventListener("keyup",this._onKeyupFunc,!1),this.domElement.removeEventListener("paste",this._onPasteFunc,!1),this.domElement.removeEventListener("wheel",this._onWheelFunc,!1),this.domElement.removeEventListener("drop",this._onDropFunc,!1),this._removeFormListener(),this.hasEventListeners=!1,document.removeEventListener("keydown",this._onKeydownGlobalFunc,!1),document.removeEventListener("keyup",this._onKeyupGlobalFunc,!1)}},{key:"_updateEventListeners",value:function(){this.settings.noEventListeners||this.hasEventListeners||this._createEventListeners(),this.settings.noEventListeners&&this.hasEventListeners&&this._removeEventListeners()}},{key:"_setupFormListener",value:function(){var e=this;R["default"].isNull(this.parentForm)||(this._onFormSubmitFunc=function(){e._onFormSubmit()},this._onFormResetFunc=function(){e._onFormReset()},this._hasParentFormCounter()?this._incrementParentFormCounter():(this._initializeFormCounterToOne(),this.parentForm.addEventListener("submit",this._onFormSubmitFunc,!1),this.parentForm.addEventListener("reset",this._onFormResetFunc,!1),this._storeFormHandlerFunction()))}},{key:"_removeFormListener",value:function(){if(!R["default"].isNull(this.parentForm)){var e=this._getParentFormCounter();1===e?(this.parentForm.removeEventListener("submit",this._getFormHandlerFunction().submitFn,!1),this.parentForm.removeEventListener("reset",this._getFormHandlerFunction().resetFn,!1),this._removeFormDataSetInfo()):1<e?this._decrementParentFormCounter():R["default"].throwError("The AutoNumeric object count on the form is incoherent.")}}},{key:"_hasParentFormCounter",value:function(){return"anCount"in this.parentForm.dataset}},{key:"_getParentFormCounter",value:function(){return Number(this.parentForm.dataset.anCount)}},{key:"_initializeFormCounterToOne",value:function(e){var t=0<arguments.length&&e!==undefined?e:null;this._getFormElement(t).dataset.anCount=1}},{key:"_incrementParentFormCounter",value:function(e){var t=0<arguments.length&&e!==undefined?e:null;this._getFormElement(t).dataset.anCount++}},{key:"_decrementParentFormCounter",value:function(){this.parentForm.dataset.anCount--}},{key:"_hasFormHandlerFunction",value:function(e){var t=0<arguments.length&&e!==undefined?e:null;return"anFormHandler"in this._getFormElement(t).dataset}},{key:"_getFormElement",value:function(e){var t=0<arguments.length&&e!==undefined?e:null;return R["default"].isNull(t)?this.parentForm:t}},{key:"_storeFormHandlerFunction",value:function(e){var t=0<arguments.length&&e!==undefined?e:null;this.constructor._doesFormHandlerListExists()||this.constructor._createFormHandlerList();var n=R["default"].randomString();this._getFormElement(t).dataset.anFormHandler=n,window.aNFormHandlerMap.set(n,{submitFn:this._onFormSubmitFunc,resetFn:this._onFormResetFunc})}},{key:"_getFormHandlerKey",value:function(){this._hasFormHandlerFunction()||R["default"].throwError("Unable to retrieve the form handler name");var e=this.parentForm.dataset.anFormHandler;return""===e&&R["default"].throwError("The form handler name is invalid"),e}},{key:"_getFormHandlerFunction",value:function(){var e=this._getFormHandlerKey();return window.aNFormHandlerMap.get(e)}},{key:"_removeFormDataSetInfo",value:function(){this._decrementParentFormCounter(),window.aNFormHandlerMap["delete"](this._getFormHandlerKey()),this.parentForm.removeAttribute("data-an-count"),this.parentForm.removeAttribute("data-an-form-handler")}},{key:"_setWritePermissions",value:function(e){0<arguments.length&&e!==undefined&&e&&this.domElement.readOnly||this.settings.readOnly?this._setReadOnly():this._setReadWrite()}},{key:"_setReadOnly",value:function(){this.isInputElement?this.domElement.readOnly=!0:this.domElement.setAttribute("contenteditable",!1)}},{key:"_setReadWrite",value:function(){this.isInputElement?this.domElement.readOnly=!1:this.domElement.setAttribute("contenteditable",!0)}},{key:"_addWatcher",value:function(){var t=this;if(!R["default"].isUndefined(this.getterSetter)){var e=this.getterSetter,n=e.set,i=e.get;Object.defineProperty(this.domElement,this.attributeToWatch,{configurable:!0,get:function(){return i.call(t.domElement)},set:function(e){n.call(t.domElement,e),t.settings.watchExternalChanges&&!t.internalModification&&t.set(e)}})}}},{
key:"_removeWatcher",value:function(){var t=this;if(!R["default"].isUndefined(this.getterSetter)){var e=this.getterSetter,n=e.set,i=e.get;Object.defineProperty(this.domElement,this.attributeToWatch,{configurable:!0,get:function(){return i.call(t.domElement)},set:function(e){n.call(t.domElement,e)}})}}},{key:"_getAttributeToWatch",value:function(){var e;if(this.isInputElement)e="value";else{var t=this.domElement.nodeType;t===Node.ELEMENT_NODE||t===Node.DOCUMENT_NODE||t===Node.DOCUMENT_FRAGMENT_NODE?e="textContent":t===Node.TEXT_NODE&&(e="nodeValue")}return e}},{key:"_historyTableAdd",value:function(){var e=0===this.historyTable.length;if(e||this.rawValue!==this._historyTableCurrentValueUsed()){var t=!0;if(!e){var n=this.historyTableIndex+1;n<this.historyTable.length&&this.rawValue===this.historyTable[n].value?t=!1:R["default"].arrayTrim(this.historyTable,this.historyTableIndex+1)}if(this.historyTableIndex++,t){var i=R["default"].getElementSelection(this.domElement);this.selectionStart=i.start,this.selectionEnd=i.end,this.historyTable.push({value:this.rawValue,start:this.selectionStart+1,end:this.selectionEnd+1}),1<this.historyTable.length&&(this.historyTable[this.historyTableIndex-1].start=this.selectionStart,this.historyTable[this.historyTableIndex-1].end=this.selectionEnd)}this.historyTable.length>this.settings.historySize&&this._historyTableForget()}}},{key:"_historyTableUndoOrRedo",value:function(e){var t;if(!(0<arguments.length&&e!==undefined)||e?(t=0<this.historyTableIndex)&&this.historyTableIndex--:(t=this.historyTableIndex+1<this.historyTable.length)&&this.historyTableIndex++,t){var n=this.historyTable[this.historyTableIndex];this.set(n.value,null,!1),R["default"].setElementSelection(this.domElement,n.start,n.end)}}},{key:"_historyTableUndo",value:function(){this._historyTableUndoOrRedo(!0)}},{key:"_historyTableRedo",value:function(){this._historyTableUndoOrRedo(!1)}},{key:"_historyTableForget",value:function(e){for(var t=0<arguments.length&&e!==undefined?e:1,n=[],i=0;i<t;i++)n.push(this.historyTable.shift()),this.historyTableIndex--,this.historyTableIndex<0&&(this.historyTableIndex=0);return 1===n.length?n[0]:n}},{key:"_historyTableCurrentValueUsed",value:function(){var e=this.historyTableIndex;return e<0&&(e=0),R["default"].isUndefinedOrNullOrEmpty(this.historyTable[e])?"":this.historyTable[e].value}},{key:"_parseStyleRules",value:function(){var i=this;R["default"].isUndefinedOrNullOrEmpty(this.settings.styleRules)||""===this.rawValue||(R["default"].isUndefinedOrNullOrEmpty(this.settings.styleRules.positive)||(0<=this.rawValue?this._addCSSClass(this.settings.styleRules.positive):this._removeCSSClass(this.settings.styleRules.positive)),R["default"].isUndefinedOrNullOrEmpty(this.settings.styleRules.negative)||(this.rawValue<0?this._addCSSClass(this.settings.styleRules.negative):this._removeCSSClass(this.settings.styleRules.negative)),R["default"].isUndefinedOrNullOrEmpty(this.settings.styleRules.ranges)||0===this.settings.styleRules.ranges.length||this.settings.styleRules.ranges.forEach(function(e){i.rawValue>=e.min&&i.rawValue<e.max?i._addCSSClass(e["class"]):i._removeCSSClass(e["class"])}),R["default"].isUndefinedOrNullOrEmpty(this.settings.styleRules.userDefined)||0===this.settings.styleRules.userDefined.length||this.settings.styleRules.userDefined.forEach(function(e){if(R["default"].isFunction(e.callback))if(R["default"].isString(e.classes))e.callback(i.rawValue)?i._addCSSClass(e.classes):i._removeCSSClass(e.classes);else if(R["default"].isArray(e.classes))if(2===e.classes.length)e.callback(i.rawValue)?(i._addCSSClass(e.classes[0]),i._removeCSSClass(e.classes[1])):(i._removeCSSClass(e.classes[0]),i._addCSSClass(e.classes[1]));else if(2<e.classes.length){var n=e.callback(i.rawValue);R["default"].isArray(n)?e.classes.forEach(function(e,t){R["default"].isInArray(t,n)?i._addCSSClass(e):i._removeCSSClass(e)}):R["default"].isInt(n)?e.classes.forEach(function(e,t){t===n?i._addCSSClass(e):i._removeCSSClass(e)}):R["default"].isNull(n)?e.classes.forEach(function(e){i._removeCSSClass(e)}):R["default"].throwError("The callback result is not an array nor a valid array index, ".concat(y(n)," given."))}else R["default"].throwError("The classes attribute is not valid for the `styleRules` option.");else R["default"].isUndefinedOrNullOrEmpty(e.classes)?e.callback(i):R["default"].throwError("The callback/classes structure is not valid for the `styleRules` option.");else R["default"].warning("The given `styleRules` callback is not a function, ".concat("undefined"==typeof callback?"undefined":y(callback)," given."),i.settings.showWarnings)}))}},{key:"_addCSSClass",value:function(e){this.domElement.classList.add(e)}},{key:"_removeCSSClass",value:function(e){this.domElement.classList.remove(e)}},{key:"update",value:function(){for(var t=this,e=arguments.length,n=new Array(e),i=0;i<e;i++)n[i]=arguments[i];Array.isArray(n)&&Array.isArray(n[0])&&(n=n[0]);var r=R["default"].cloneObject(this.settings),o=this.rawValue,s={};R["default"].isUndefinedOrNullOrEmpty(n)||0===n.length?s=null:1<=n.length&&n.forEach(function(e){t.constructor._isPreDefinedOptionValid(e)&&(e=t.constructor._getOptionObject(e)),m(s,e)});try{this._setSettings(s,!0),this._setWritePermissions(),this._updateEventListeners(),this.set(o)}catch(a){return this._setSettings(r,!0),R["default"].throwError("Unable to update the settings, those are invalid: [".concat(a,"]")),this}return this}},{key:"getSettings",value:function(){return this.settings}},{key:"set",value:function(e,t,n){var i,r,o=1<arguments.length&&t!==undefined?t:null,s=!(2<arguments.length&&n!==undefined)||n;if(R["default"].isUndefined(e))return R["default"].warning("You are trying to set an 'undefined' value ; an error could have occurred.",this.settings.showWarnings),this;if(R["default"].isNull(o)||this._setSettings(o,!0),null===e&&this.settings.emptyInputBehavior!==j.options.emptyInputBehavior["null"])return R["default"].warning("You are trying to set the `null` value while the `emptyInputBehavior` option is set to ".concat(this.settings.emptyInputBehavior,". If you want to be able to set the `null` value, you need to change the 'emptyInputBehavior' option to `'null'`."),this.settings.showWarnings),this;if(null===e)return this._setElementAndRawValue(null,null,s),this._saveValueToPersistentStorage(),this;if(i=this.constructor._toNumericValue(e,this.settings),isNaN(Number(i)))return R["default"].warning("The value you are trying to set results in `NaN`. The element value is set to the empty string instead.",this.settings.showWarnings),this.setValue("",s),this;if(""===i)switch(this.settings.emptyInputBehavior){case j.options.emptyInputBehavior.zero:i=0;break;case j.options.emptyInputBehavior.min:i=this.settings.minimumValue;break;case j.options.emptyInputBehavior.max:i=this.settings.maximumValue;break;default:R["default"].isNumber(this.settings.emptyInputBehavior)&&(i=Number(this.settings.emptyInputBehavior))}if(""!==i){var a=b(this.constructor._checkIfInRangeWithOverrideOption(i,this.settings),2),l=a[0],u=a[1];if(l&&u&&this.settings.valuesToStrings&&this._checkValuesToStrings(i))return this._setElementAndRawValue(this.settings.valuesToStrings[i],i,s),this._saveValueToPersistentStorage(),this;if(R["default"].isZeroOrHasNoValue(i)&&(i="0"),l&&u){var c=this.constructor._roundRawValue(i,this.settings);return c=this._trimLeadingAndTrailingZeros(c.replace(this.settings.decimalCharacter,".")),i=this._getRawValueToFormat(i),this.isFocused?i=this.constructor._roundFormattedValueShownOnFocus(i,this.settings):(this.settings.divisorWhenUnfocused&&(i=(i/=this.settings.divisorWhenUnfocused).toString()),i=this.constructor._roundFormattedValueShownOnBlur(i,this.settings)),i=this.constructor._modifyNegativeSignAndDecimalCharacterForFormattedValue(i,this.settings),i=this.constructor._addGroupSeparators(i,this.settings,this.isFocused,this.rawValue,c),!this.isFocused&&this.settings.symbolWhenUnfocused&&(i="".concat(i).concat(this.settings.symbolWhenUnfocused)),(this.settings.decimalPlacesShownOnFocus||this.settings.divisorWhenUnfocused)&&this._saveValueToPersistentStorage(),this._setElementAndRawValue(i,c,s),this._setValidOrInvalidState(c),this}return this._triggerRangeEvents(l,u),R["default"].throwError("The value [".concat(i,"] being set falls outside of the minimumValue [").concat(this.settings.minimumValue,"] and maximumValue [").concat(this.settings.maximumValue,"] range set for this element")),this._removeValueFromPersistentStorage(),this.setValue("",s),this}return r=this.settings.emptyInputBehavior===j.options.emptyInputBehavior.always?this.settings.currencySymbol:"",this._setElementAndRawValue(r,"",s),this}},{key:"setUnformatted",value:function(e,t){var n=1<arguments.length&&t!==undefined?t:null;if(null===e||R["default"].isUndefined(e))return this;R["default"].isNull(n)||this._setSettings(n,!0);var i=this.constructor._removeBrackets(e,this.settings),r=this.constructor._stripAllNonNumberCharacters(i,this.settings,!0,this.isFocused);return R["default"].isNumber(r)||R["default"].throwError("The value is not a valid one, it's not a numeric string nor a recognized currency."),this.constructor._isWithinRangeWithOverrideOption(r,this.settings)?this.setValue(e):R["default"].throwError("The value is out of the range limits [".concat(this.settings.minimumValue,", ").concat(this.settings.maximumValue,"].")),this}},{key:"setValue",value:function(e,t){var n=!(1<arguments.length&&t!==undefined)||t;return this._setElementAndRawValue(e,n),this}},{key:"_setRawValue",value:function(e,t){var n=!(1<arguments.length&&t!==undefined)||t;if(this.rawValue!==e){var i=this.rawValue;this.rawValue=e,!R["default"].isNull(this.settings.rawValueDivisor)&&0!==this.settings.rawValueDivisor&&""!==e&&null!==e&&this._isUserManuallyEditingTheValue()&&(this.rawValue/=this.settings.rawValueDivisor),this._triggerEvent(j.events.rawValueModified,this.domElement,{oldRawValue:i,newRawValue:this.rawValue,isPristine:this.isPristine(!0),error:null,aNElement:this}),this._parseStyleRules(),n&&this._historyTableAdd()}}},{key:"_setElementValue",value:function(e,t){var n=!(1<arguments.length&&t!==undefined)||t,i=R["default"].getElementValue(this.domElement);return e!==i&&(this.internalModification=!0,R["default"].setElementValue(this.domElement,e),this.internalModification=!1,n&&this._triggerEvent(j.events.formatted,this.domElement,{oldValue:i,newValue:e,oldRawValue:this.rawValue,newRawValue:this.rawValue,isPristine:this.isPristine(!1),error:null,aNElement:this})),this}},{key:"_setElementAndRawValue",value:function(e,t,n){var i=1<arguments.length&&t!==undefined?t:null,r=!(2<arguments.length&&n!==undefined)||n;return R["default"].isNull(i)?i=e:R["default"].isBoolean(i)&&(r=i,i=e),this._setElementValue(e),this._setRawValue(i,r),this}},{key:"_getRawValueToFormat",value:function(e){return R["default"].isNull(this.settings.rawValueDivisor)||0===this.settings.rawValueDivisor||""===e||null===e?e:e*this.settings.rawValueDivisor}},{key:"_checkValuesToStrings",value:function(e){return this.constructor._checkValuesToStringsArray(e,this.valuesToStringsKeys)}},{key:"_isUserManuallyEditingTheValue",value:function(){return this.isFocused&&this.isEditing||this.isDropEvent}},{key:"_executeCallback",value:function(e,t){!R["default"].isNull(t)&&R["default"].isFunction(t)&&t(e,this)}},{key:"_triggerEvent",value:function(e,t,n){var i=1<arguments.length&&t!==undefined?t:document,r=2<arguments.length&&n!==undefined?n:null;R["default"].triggerEvent(e,i,r,this.settings.eventBubbles,this.settings.eventIsCancelable)}},{key:"get",value:function(e){var t=0<arguments.length&&e!==undefined?e:null;return this.getNumericString(t)}},{key:"getNumericString",value:function(e){var t,n=0<arguments.length&&e!==undefined?e:null;return t=R["default"].isNull(this.rawValue)?null:R["default"].trimPaddedZerosFromDecimalPlaces(this.rawValue),this._executeCallback(t,n),t}},{key:"getFormatted",value:function(e){var t=0<arguments.length&&e!==undefined?e:null;"value"in this.domElement||"textContent"in this.domElement||R["default"].throwError("Unable to get the formatted string from the element.");var n=R["default"].getElementValue(this.domElement);return this._executeCallback(n,t),n}},{key:"getNumber",value:function(e){var t,n=0<arguments.length&&e!==undefined?e:null;return t=null===this.rawValue?null:this.constructor._toLocale(this.getNumericString(),"number",this.settings),this._executeCallback(t,n),t}},{key:"getLocalized",value:function(e,t){var n,i,r=0<arguments.length&&e!==undefined?e:null,o=1<arguments.length&&t!==undefined?t:null;R["default"].isFunction(r)&&R["default"].isNull(o)&&(o=r,r=null),""!==(n=R["default"].isEmptyString(this.rawValue)?"":""+Number(this.rawValue))&&0===Number(n)&&this.settings.leadingZero!==j.options.leadingZero.keep&&(n="0"),i=R["default"].isNull(r)?this.settings.outputFormat:r;var s=this.constructor._toLocale(n,i,this.settings);return this._executeCallback(s,o),s}},{key:"reformat",value:function(){return this.set(this.rawValue),this}},{key:"unformat",value:function(){return this._setElementValue(this.getNumericString()),this}},{key:"unformatLocalized",value:function(e){var t=0<arguments.length&&e!==undefined?e:null;return this._setElementValue(this.getLocalized(t)),this}},{key:"isPristine",value:function(e){return!(0<arguments.length&&e!==undefined)||e?this.initialValue===this.getNumericString():this.initialValueHtmlAttribute===this.getFormatted()}},{key:"select",value:function(){return this.settings.selectNumberOnly?this.selectNumber():this._defaultSelectAll(),this}},{key:"_defaultSelectAll",value:function(){R["default"].setElementSelection(this.domElement,0,R["default"].getElementValue(this.domElement).length)}},{key:"selectNumber",value:function(){var e,t,n=R["default"].getElementValue(this.domElement),i=n.length,r=this.settings.currencySymbol.length,o=this.settings.currencySymbolPlacement,s=R["default"].isNegative(n,this.settings.negativeSignCharacter)?1:0,a=this.settings.suffixText.length;if(e=o===j.options.currencySymbolPlacement.suffix?0:this.settings.negativePositiveSignPlacement===j.options.negativePositiveSignPlacement.left&&1===s&&0<r?r+1:r,o===j.options.currencySymbolPlacement.prefix)t=i-a;else switch(this.settings.negativePositiveSignPlacement){case j.options.negativePositiveSignPlacement.left:t=i-(a+r);break;case j.options.negativePositiveSignPlacement.right:t=0<r?i-(r+s+a):i-(r+a);break;default:t=i-(r+a)}return R["default"].setElementSelection(this.domElement,e,t),this}},{key:"selectInteger",value:function(){var e=0,t=0<=this.rawValue;this.settings.currencySymbolPlacement!==j.options.currencySymbolPlacement.prefix&&(this.settings.currencySymbolPlacement!==j.options.currencySymbolPlacement.suffix||this.settings.negativePositiveSignPlacement!==j.options.negativePositiveSignPlacement.prefix&&this.settings.negativePositiveSignPlacement!==j.options.negativePositiveSignPlacement.none)||(this.settings.showPositiveSign&&t||!t&&this.settings.currencySymbolPlacement===j.options.currencySymbolPlacement.prefix&&this.settings.negativePositiveSignPlacement===j.options.negativePositiveSignPlacement.left)&&(e+=1),this.settings.currencySymbolPlacement===j.options.currencySymbolPlacement.prefix&&(e+=this.settings.currencySymbol.length);var n=R["default"].getElementValue(this.domElement),i=n.indexOf(this.settings.decimalCharacter);return-1===i&&(i=this.settings.currencySymbolPlacement===j.options.currencySymbolPlacement.suffix?n.length-this.settings.currencySymbol.length:n.length,t||this.settings.negativePositiveSignPlacement!==j.options.negativePositiveSignPlacement.suffix&&this.settings.currencySymbolPlacement!==j.options.currencySymbolPlacement.suffix||(i-=1),i-=this.settings.suffixText.length),R["default"].setElementSelection(this.domElement,e,i),this}},{key:"selectDecimal",value:function(){var e,t,n=R["default"].getElementValue(this.domElement).indexOf(this.settings.decimalCharacter);-1===n?e=n=0:(n+=1,t=this.isFocused?this.settings.decimalPlacesShownOnFocus:this.settings.decimalPlacesShownOnBlur,e=n+Number(t));return R["default"].setElementSelection(this.domElement,n,e),this}},{key:"node",value:function(){return this.domElement}},{key:"parent",value:function(){return this.domElement.parentNode}},{key:"detach",value:function(e){var t,n=0<arguments.length&&e!==undefined?e:null;return t=R["default"].isNull(n)?this.domElement:n.node(),this._removeFromLocalList(t),this}},{key:"attach",value:function(e,t){var n=!(1<arguments.length&&t!==undefined)||t;return this._addToLocalList(e.node()),n&&e.update(this.settings),this}},{key:"formatOther",value:function(e,t){var n=1<arguments.length&&t!==undefined?t:null;return this._formatOrUnformatOther(!0,e,n)}},{key:"unformatOther",value:function(e,t){var n=1<arguments.length&&t!==undefined?t:null;return this._formatOrUnformatOther(!1,e,n)}},{key:"_formatOrUnformatOther",value:function(e,t,n){var i,r,o=2<arguments.length&&n!==undefined?n:null;if(i=R["default"].isNull(o)?this.settings:this._cloneAndMergeSettings(o),R["default"].isElement(t)){var s=R["default"].getElementValue(t);return r=e?j.format(s,i):j.unformat(s,i),R["default"].setElementValue(t,r),null}return r=e?j.format(t,i):j.unformat(t,i)}},{key:"init",value:function(e,t){var i=this,r=!(1<arguments.length&&t!==undefined)||t,n=!1,o=[];if(R["default"].isString(e)?o=v(document.querySelectorAll(e)):R["default"].isElement(e)?(o.push(e),n=!0):R["default"].isArray(e)?o=e:R["default"].throwError("The given parameters to the 'init' function are invalid."),0===o.length)return R["default"].warning("No valid DOM elements were given hence no AutoNumeric object were instantiated.",!0),[];var s=this._getLocalList(),a=[];return o.forEach(function(e){var t=i.settings.createLocalList;r&&(i.settings.createLocalList=!1);var n=new j(e,R["default"].getElementValue(e),i.settings);r&&(n._setLocalList(s),i._addToLocalList(e,n),i.settings.createLocalList=t),a.push(n)}),n?a[0]:a}},{key:"clear",value:function(e){if(0<arguments.length&&e!==undefined&&e){var t={emptyInputBehavior:j.options.emptyInputBehavior.focus};this.set("",t)}else this.set("");return this}},{key:"remove",value:function(){this._removeValueFromPersistentStorage(),this._removeEventListeners(),this._removeWatcher(),this._removeFromLocalList(this.domElement),this.constructor._removeFromGlobalList(this)}},{key:"wipe",value:function(){this._setElementValue("",!1),this.remove()}},{key:"nuke",value:function(){this.remove(),this.domElement.parentNode.removeChild(this.domElement)}},{key:"form",value:function(e){if(0<arguments.length&&e!==undefined&&e||R["default"].isUndefinedOrNullOrEmpty(this.parentForm)){var t=this._getParentForm();if(!R["default"].isNull(t)&&t!==this.parentForm){var n=this._getFormAutoNumericChildren(this.parentForm);this.parentForm.dataset.anCount=n.length,this._hasFormHandlerFunction(t)?this._incrementParentFormCounter(t):(this._storeFormHandlerFunction(t),this._initializeFormCounterToOne(t))}this.parentForm=t}return this.parentForm}},{key:"_getFormAutoNumericChildren",value:function(e){var t=this;return v(e.querySelectorAll("input")).filter(function(e){return t.constructor.isManagedByAutoNumeric(e)})}},{key:"_getParentForm",value:function(){if("body"===this.domElement.tagName.toLowerCase())return null;var e,t=this.domElement;do{if(t=t.parentNode,R["default"].isNull(t))return null;if("body"===(e=t.tagName?t.tagName.toLowerCase():""))break}while("form"!==e);return"form"===e?t:null}},{key:"formNumericString",value:function(){return this.constructor._serializeNumericString(this.form(),this.settings.serializeSpaces)}},{key:"formFormatted",value:function(){return this.constructor._serializeFormatted(this.form(),this.settings.serializeSpaces)}},{key:"formLocalized",value:function(e){var t,n=0<arguments.length&&e!==undefined?e:null;return t=R["default"].isNull(n)?this.settings.outputFormat:n,this.constructor._serializeLocalized(this.form(),this.settings.serializeSpaces,t)}},{key:"formArrayNumericString",value:function(){return this.constructor._serializeNumericStringArray(this.form(),this.settings.serializeSpaces)}},{key:"formArrayFormatted",value:function(){return this.constructor._serializeFormattedArray(this.form(),this.settings.serializeSpaces)}},{key:"formArrayLocalized",value:function(e){var t,n=0<arguments.length&&e!==undefined?e:null;return t=R["default"].isNull(n)?this.settings.outputFormat:n,this.constructor._serializeLocalizedArray(this.form(),this.settings.serializeSpaces,t)}},{key:"formJsonNumericString",value:function(){return JSON.stringify(this.formArrayNumericString())}},{key:"formJsonFormatted",value:function(){return JSON.stringify(this.formArrayFormatted())}},{key:"formJsonLocalized",value:function(e){var t=0<arguments.length&&e!==undefined?e:null;return JSON.stringify(this.formArrayLocalized(t))}},{key:"formUnformat",value:function(){return this.constructor._getChildANInputElement(this.form()).forEach(function(e){j.getAutoNumericElement(e).unformat()}),this}},{key:"formUnformatLocalized",value:function(){return this.constructor._getChildANInputElement(this.form()).forEach(function(e){j.getAutoNumericElement(e).unformatLocalized()}),this}},{key:"formReformat",value:function(){return this.constructor._getChildANInputElement(this.form()).forEach(function(e){j.getAutoNumericElement(e).reformat()}),this}},{key:"formSubmitNumericString",value:function(e){var t=0<arguments.length&&e!==undefined?e:null;return R["default"].isNull(t)?(this.formUnformat(),this.form().submit(),this.formReformat()):R["default"].isFunction(t)?t(this.formNumericString()):R["default"].throwError("The given callback is not a function."),this}},{key:"formSubmitFormatted",value:function(e){var t=0<arguments.length&&e!==undefined?e:null;return R["default"].isNull(t)?this.form().submit():R["default"].isFunction(t)?t(this.formFormatted()):R["default"].throwError("The given callback is not a function."),this}},{key:"formSubmitLocalized",value:function(e,t){var n=0<arguments.length&&e!==undefined?e:null,i=1<arguments.length&&t!==undefined?t:null;return R["default"].isNull(i)?(this.formUnformatLocalized(),this.form().submit(),this.formReformat()):R["default"].isFunction(i)?i(this.formLocalized(n)):R["default"].throwError("The given callback is not a function."),this}},{key:"formSubmitArrayNumericString",value:function(e){return R["default"].isFunction(e)?e(this.formArrayNumericString()):R["default"].throwError("The given callback is not a function."),this}},{key:"formSubmitArrayFormatted",value:function(e){return R["default"].isFunction(e)?e(this.formArrayFormatted()):R["default"].throwError("The given callback is not a function."),this}},{key:"formSubmitArrayLocalized",value:function(e,t){var n=1<arguments.length&&t!==undefined?t:null;return R["default"].isFunction(e)?e(this.formArrayLocalized(n)):R["default"].throwError("The given callback is not a function."),this}},{key:"formSubmitJsonNumericString",value:function(e){return R["default"].isFunction(e)?e(this.formJsonNumericString()):R["default"].throwError("The given callback is not a function."),this}},{key:"formSubmitJsonFormatted",value:function(e){return R["default"].isFunction(e)?e(this.formJsonFormatted()):R["default"].throwError("The given callback is not a function."),this}},{key:"formSubmitJsonLocalized",value:function(e,t){var n=1<arguments.length&&t!==undefined?t:null;return R["default"].isFunction(e)?e(this.formJsonLocalized(n)):R["default"].throwError("The given callback is not a function."),this}},{key:"_createLocalList",value:function(){this.autoNumericLocalList=new Map,this._addToLocalList(this.domElement)}},{key:"_deleteLocalList",value:function(){delete this.autoNumericLocalList}},{key:"_setLocalList",value:function(e){this.autoNumericLocalList=e}},{key:"_getLocalList",value:function(){return this.autoNumericLocalList}},{key:"_hasLocalList",value:function(){return this.autoNumericLocalList instanceof Map&&0!==this.autoNumericLocalList.size}},{key:"_addToLocalList",value:function(e,t){var n=1<arguments.length&&t!==undefined?t:null;R["default"].isNull(n)&&(n=this),R["default"].isUndefined(this.autoNumericLocalList)?R["default"].throwError("The local list provided does not exists when trying to add an element. [".concat(this.autoNumericLocalList,"] given.")):this.autoNumericLocalList.set(e,n)}},{key:"_removeFromLocalList",value:function(e){R["default"].isUndefined(this.autoNumericLocalList)?this.settings.createLocalList&&R["default"].throwError("The local list provided does not exists when trying to remove an element. [".concat(this.autoNumericLocalList,"] given.")):this.autoNumericLocalList["delete"](e)}},{key:"_mergeSettings",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];m.apply(void 0,[this.settings].concat(t))}},{key:"_cloneAndMergeSettings",value:function(){for(var e={},t=arguments.length,n=new Array(t),i=0;i<t;i++)n[i]=arguments[i];return m.apply(void 0,[e,this.settings].concat(n)),e}},{key:"_updatePredefinedOptions",value:function(e,t){var n=1<arguments.length&&t!==undefined?t:null;return R["default"].isNull(n)?this.update(e):(this._mergeSettings(e,n),this.update(this.settings)),this}},{key:"french",value:function(e){var t=0<arguments.length&&e!==undefined?e:null;return this._updatePredefinedOptions(j.getPredefinedOptions().French,t),this}},{key:"northAmerican",value:function(e){var t=0<arguments.length&&e!==undefined?e:null;return this._updatePredefinedOptions(j.getPredefinedOptions().NorthAmerican,t),this}},{key:"british",value:function(e){var t=0<arguments.length&&e!==undefined?e:null;return this._updatePredefinedOptions(j.getPredefinedOptions().British,t),this}},{key:"swiss",value:function(e){var t=0<arguments.length&&e!==undefined?e:null;return this._updatePredefinedOptions(j.getPredefinedOptions().Swiss,t),this}},{key:"japanese",value:function(e){var t=0<arguments.length&&e!==undefined?e:null;return this._updatePredefinedOptions(j.getPredefinedOptions().Japanese,t),this}},{key:"spanish",value:function(e){var t=0<arguments.length&&e!==undefined?e:null;return this._updatePredefinedOptions(j.getPredefinedOptions().Spanish,t),this}},{key:"chinese",value:function(e){var t=0<arguments.length&&e!==undefined?e:null;return this._updatePredefinedOptions(j.getPredefinedOptions().Chinese,t),this}},{key:"brazilian",value:function(e){var t=0<arguments.length&&e!==undefined?e:null;return this._updatePredefinedOptions(j.getPredefinedOptions().Brazilian,t),this}},{key:"_runCallbacksFoundInTheSettingsObject",value:function(){for(var e in this.settings)if(Object.prototype.hasOwnProperty.call(this.settings,e)){var t=this.settings[e];if("function"==typeof t)this.settings[e]=t(this,e);else{var n=this.domElement.getAttribute(e);n=R["default"].camelize(n),"function"==typeof this.settings[n]&&(this.settings[e]=n(this,e))}}}},{key:"_setTrailingNegativeSignInfo",value:function(){this.isTrailingNegative=this.settings.currencySymbolPlacement===j.options.currencySymbolPlacement.prefix&&this.settings.negativePositiveSignPlacement===j.options.negativePositiveSignPlacement.suffix||this.settings.currencySymbolPlacement===j.options.currencySymbolPlacement.suffix&&(this.settings.negativePositiveSignPlacement===j.options.negativePositiveSignPlacement.left||this.settings.negativePositiveSignPlacement===j.options.negativePositiveSignPlacement.right)}},{key:"_modifyNegativeSignAndDecimalCharacterForRawValue",value:function(e){return"."!==this.settings.decimalCharacter&&(e=e.replace(this.settings.decimalCharacter,".")),"-"!==this.settings.negativeSignCharacter&&this.settings.isNegativeSignAllowed&&(e=e.replace(this.settings.negativeSignCharacter,"-")),e.match(/\d/)||(e+="0"),e}},{key:"_initialCaretPosition",value:function(e){R["default"].isNull(this.settings.caretPositionOnFocus)&&this.settings.selectOnFocus===j.options.selectOnFocus.doNotSelect&&R["default"].throwError("`_initialCaretPosition()` should never be called when the `caretPositionOnFocus` option is `null`.");var t=this.rawValue<0,n=R["default"].isZeroOrHasNoValue(e),i=e.length,r=0,o=0,s=!1,a=0;this.settings.caretPositionOnFocus!==j.options.caretPositionOnFocus.start&&(r=(e=(e=(e=e.replace(this.settings.negativeSignCharacter,"")).replace(this.settings.positiveSignCharacter,"")).replace(this.settings.currencySymbol,"")).length,s=R["default"].contains(e,this.settings.decimalCharacter),this.settings.caretPositionOnFocus!==j.options.caretPositionOnFocus.decimalLeft&&this.settings.caretPositionOnFocus!==j.options.caretPositionOnFocus.decimalRight||(s?(o=e.indexOf(this.settings.decimalCharacter),a=this.settings.decimalCharacter.length):(o=r,a=0)));var l="";t?l=this.settings.negativeSignCharacter:this.settings.showPositiveSign&&!n&&(l=this.settings.positiveSignCharacter);var u,c=l.length,d=this.settings.currencySymbol.length;if(this.settings.currencySymbolPlacement===j.options.currencySymbolPlacement.prefix){if(this.settings.caretPositionOnFocus===j.options.caretPositionOnFocus.start)if(this.settings.negativePositiveSignPlacement!==j.options.negativePositiveSignPlacement.none&&(t||!t&&this.settings.showPositiveSign&&!n))switch(this.settings.negativePositiveSignPlacement){case j.options.negativePositiveSignPlacement.prefix:case j.options.negativePositiveSignPlacement.left:case j.options.negativePositiveSignPlacement.right:u=c+d;break;case j.options.negativePositiveSignPlacement.suffix:u=d}else u=d;else if(this.settings.caretPositionOnFocus===j.options.caretPositionOnFocus.end)if(this.settings.negativePositiveSignPlacement!==j.options.negativePositiveSignPlacement.none&&(t||!t&&this.settings.showPositiveSign&&!n))switch(this.settings.negativePositiveSignPlacement){case j.options.negativePositiveSignPlacement.prefix:case j.options.negativePositiveSignPlacement.left:case j.options.negativePositiveSignPlacement.right:u=i;break;case j.options.negativePositiveSignPlacement.suffix:u=d+r}else u=i;else if(this.settings.caretPositionOnFocus===j.options.caretPositionOnFocus.decimalLeft)if(this.settings.negativePositiveSignPlacement!==j.options.negativePositiveSignPlacement.none&&(t||!t&&this.settings.showPositiveSign&&!n))switch(this.settings.negativePositiveSignPlacement){case j.options.negativePositiveSignPlacement.prefix:case j.options.negativePositiveSignPlacement.left:case j.options.negativePositiveSignPlacement.right:u=c+d+o;break;case j.options.negativePositiveSignPlacement.suffix:u=d+o}else u=d+o;else if(this.settings.caretPositionOnFocus===j.options.caretPositionOnFocus.decimalRight)if(this.settings.negativePositiveSignPlacement!==j.options.negativePositiveSignPlacement.none&&(t||!t&&this.settings.showPositiveSign&&!n))switch(this.settings.negativePositiveSignPlacement){case j.options.negativePositiveSignPlacement.prefix:case j.options.negativePositiveSignPlacement.left:case j.options.negativePositiveSignPlacement.right:u=c+d+o+a;break;case j.options.negativePositiveSignPlacement.suffix:u=d+o+a}else u=d+o+a}else if(this.settings.currencySymbolPlacement===j.options.currencySymbolPlacement.suffix)if(this.settings.caretPositionOnFocus===j.options.caretPositionOnFocus.start)if(this.settings.negativePositiveSignPlacement!==j.options.negativePositiveSignPlacement.none&&(t||!t&&this.settings.showPositiveSign&&!n))switch(this.settings.negativePositiveSignPlacement){case j.options.negativePositiveSignPlacement.suffix:case j.options.negativePositiveSignPlacement.right:case j.options.negativePositiveSignPlacement.left:u=0;break;case j.options.negativePositiveSignPlacement.prefix:u=c}else u=0;else if(this.settings.caretPositionOnFocus===j.options.caretPositionOnFocus.end)if(this.settings.negativePositiveSignPlacement!==j.options.negativePositiveSignPlacement.none&&(t||!t&&this.settings.showPositiveSign&&!n))switch(this.settings.negativePositiveSignPlacement){case j.options.negativePositiveSignPlacement.suffix:case j.options.negativePositiveSignPlacement.right:case j.options.negativePositiveSignPlacement.left:u=r;break;case j.options.negativePositiveSignPlacement.prefix:u=c+r}else u=r;else if(this.settings.caretPositionOnFocus===j.options.caretPositionOnFocus.decimalLeft)if(this.settings.negativePositiveSignPlacement!==j.options.negativePositiveSignPlacement.none&&(t||!t&&this.settings.showPositiveSign&&!n))switch(this.settings.negativePositiveSignPlacement){case j.options.negativePositiveSignPlacement.suffix:case j.options.negativePositiveSignPlacement.right:case j.options.negativePositiveSignPlacement.left:u=o;break;case j.options.negativePositiveSignPlacement.prefix:u=c+o}else u=o;else if(this.settings.caretPositionOnFocus===j.options.caretPositionOnFocus.decimalRight)if(this.settings.negativePositiveSignPlacement!==j.options.negativePositiveSignPlacement.none&&(t||!t&&this.settings.showPositiveSign&&!n))switch(this.settings.negativePositiveSignPlacement){
case j.options.negativePositiveSignPlacement.suffix:case j.options.negativePositiveSignPlacement.right:case j.options.negativePositiveSignPlacement.left:u=o+a;break;case j.options.negativePositiveSignPlacement.prefix:u=c+o+a}else u=o+a;return u}},{key:"_triggerRangeEvents",value:function(e,t){e||this._triggerEvent(j.events.minRangeExceeded,this.domElement),t||this._triggerEvent(j.events.maxRangeExceeded,this.domElement)}},{key:"_setInvalidState",value:function(){this.isInputElement?R["default"].setInvalidState(this.domElement):this._addCSSClass(this.settings.invalidClass),this._triggerEvent(j.events.invalidValue,this.domElement),this.validState=!1}},{key:"_setValidState",value:function(){this.isInputElement?R["default"].setValidState(this.domElement):this._removeCSSClass(this.settings.invalidClass),this.validState||this._triggerEvent(j.events.correctedValue,this.domElement),this.validState=!0}},{key:"_setValidOrInvalidState",value:function(e){if(this.settings.overrideMinMaxLimits===j.options.overrideMinMaxLimits.invalid){var t=this.constructor._isMinimumRangeRespected(e,this.settings),n=this.constructor._isMaximumRangeRespected(e,this.settings);t&&n?this._setValidState():this._setInvalidState(),this._triggerRangeEvents(t,n)}}},{key:"_keepAnOriginalSettingsCopy",value:function(){this.originalDigitGroupSeparator=this.settings.digitGroupSeparator,this.originalCurrencySymbol=this.settings.currencySymbol,this.originalSuffixText=this.settings.suffixText}},{key:"_trimLeadingAndTrailingZeros",value:function(e){if(""===e||null===e)return e;if(this.settings.leadingZero!==j.options.leadingZero.keep){if(0===Number(e))return"0";e=e.replace(/^(-)?0+(?=\d)/g,"$1")}return R["default"].contains(e,".")&&(e=e.replace(/(\.[0-9]*?)0+$/,"$1")),e=e.replace(/\.$/,"")}},{key:"_setPersistentStorageName",value:function(){this.settings.saveValueToSessionStorage&&(""===this.domElement.name||R["default"].isUndefined(this.domElement.name)?this.rawValueStorageName="".concat(this.storageNamePrefix).concat(this.domElement.id):this.rawValueStorageName="".concat(this.storageNamePrefix).concat(decodeURIComponent(this.domElement.name)))}},{key:"_saveValueToPersistentStorage",value:function(){this.settings.saveValueToSessionStorage&&(this.sessionStorageAvailable?sessionStorage.setItem(this.rawValueStorageName,this.rawValue):document.cookie="".concat(this.rawValueStorageName,"=").concat(this.rawValue,"; expires= ; path=/"))}},{key:"_getValueFromPersistentStorage",value:function(){return this.settings.saveValueToSessionStorage?this.sessionStorageAvailable?sessionStorage.getItem(this.rawValueStorageName):this.constructor._readCookie(this.rawValueStorageName):(R["default"].warning("`_getValueFromPersistentStorage()` is called but `settings.saveValueToSessionStorage` is false. There must be an error that needs fixing.",this.settings.showWarnings),null)}},{key:"_removeValueFromPersistentStorage",value:function(){if(this.settings.saveValueToSessionStorage)if(this.sessionStorageAvailable)sessionStorage.removeItem(this.rawValueStorageName);else{var e=new Date;e.setTime(e.getTime()-864e5);var t="; expires=".concat(e.toUTCString());document.cookie="".concat(this.rawValueStorageName,"='' ;").concat(t,"; path=/")}}},{key:"_getDefaultValue",value:function(e){var t=e.getAttribute("value");return R["default"].isNull(t)?"":t}},{key:"_onFocusInAndMouseEnter",value:function(e){if(this.isEditing=!1,!this.formulaMode&&this.settings.unformatOnHover&&"mouseenter"===e.type&&e.altKey)this.constructor._unformatAltHovered(this);else if("focus"===e.type&&(this.isFocused=!0,this.rawValueOnFocus=this.rawValue),"focus"===e.type&&this.settings.unformatOnHover&&this.hoveredWithAlt&&this.constructor._reformatAltHovered(this),"focus"===e.type||"mouseenter"===e.type&&!this.isFocused){var t=null;this.settings.emptyInputBehavior===j.options.emptyInputBehavior.focus&&this.rawValue<0&&null!==this.settings.negativeBracketsTypeOnBlur&&this.settings.isNegativeSignAllowed&&(t=this.constructor._removeBrackets(R["default"].getElementValue(this.domElement),this.settings));var n=this._getRawValueToFormat(this.rawValue);if(""!==n){var i=this.constructor._roundFormattedValueShownOnFocusOrBlur(n,this.settings,this.isFocused);if(this.settings.showOnlyNumbersOnFocus===j.options.showOnlyNumbersOnFocus.onlyNumbers)this.settings.digitGroupSeparator="",this.settings.currencySymbol="",this.settings.suffixText="",t=i.replace(".",this.settings.decimalCharacter);else t=R["default"].isNull(i)?"":this.constructor._addGroupSeparators(i.replace(".",this.settings.decimalCharacter),this.settings,this.isFocused,n)}R["default"].isNull(t)?this.valueOnFocus="":this.valueOnFocus=t,this.lastVal=this.valueOnFocus;var r=this.constructor._isElementValueEmptyOrOnlyTheNegativeSign(this.valueOnFocus,this.settings),o=this.constructor._orderValueCurrencySymbolAndSuffixText(this.valueOnFocus,this.settings,!0),s=r&&""!==o&&this.settings.emptyInputBehavior===j.options.emptyInputBehavior.focus;s&&(t=o),R["default"].isNull(t)||this._setElementValue(t),s&&o===this.settings.currencySymbol&&this.settings.currencySymbolPlacement===j.options.currencySymbolPlacement.suffix&&R["default"].setElementSelection(e.target,0)}}},{key:"_onFocus",value:function(){this.settings.isCancellable&&this._saveCancellableValue()}},{key:"_onFocusIn",value:function(e){this.settings.selectOnFocus?this.select():R["default"].isNull(this.settings.caretPositionOnFocus)||R["default"].setElementSelection(e.target,this._initialCaretPosition(R["default"].getElementValue(this.domElement)))}},{key:"_enterFormulaMode",value:function(){this.settings.formulaMode&&(this.formulaMode=!0,R["default"].setElementValue(this.domElement,"="),R["default"].setElementSelection(this.domElement,1))}},{key:"_exitFormulaMode",value:function(){var e,t=R["default"].getElementValue(this.domElement);t=t.replace(/^\s*=/,"");try{var n=new w["default"](t,this.settings.decimalCharacter);e=(new g["default"]).evaluate(n)}catch(i){return this._triggerEvent(j.events.invalidFormula,this.domElement,{formula:t,aNElement:this}),this.reformat(),void(this.formulaMode=!1)}this._triggerEvent(j.events.validFormula,this.domElement,{formula:t,result:e,aNElement:this}),this.set(e),this.formulaMode=!1}},{key:"_acceptNonPrintableKeysInFormulaMode",value:function(){return this.eventKey===p["default"].keyName.Backspace||this.eventKey===p["default"].keyName.Delete||this.eventKey===p["default"].keyName.LeftArrow||this.eventKey===p["default"].keyName.RightArrow||this.eventKey===p["default"].keyName.Home||this.eventKey===p["default"].keyName.End}},{key:"_onKeydown",value:function(e){if(this.formatted=!1,this.isEditing=!0,this.formulaMode||this.isFocused||!this.settings.unformatOnHover||!e.altKey||this.domElement!==R["default"].getHoveredElement()){if(this._updateEventKeyInfo(e),this.keydownEventCounter+=1,1===this.keydownEventCounter&&(this.initialValueOnFirstKeydown=R["default"].getElementValue(e.target),this.initialRawValueOnFirstKeydown=this.rawValue),this.formulaMode){if(this.eventKey===p["default"].keyName.Esc)return this.formulaMode=!1,void this.reformat();if(this.eventKey===p["default"].keyName.Enter)return void this._exitFormulaMode();if(this._acceptNonPrintableKeysInFormulaMode())return}else if(this.eventKey===p["default"].keyName.Equal)return void this._enterFormulaMode();if(this.domElement.readOnly||this.settings.readOnly||this.domElement.disabled)this.processed=!0;else{this.eventKey===p["default"].keyName.Esc&&(e.preventDefault(),this.settings.isCancellable&&this.rawValue!==this.savedCancellableValue&&(this.set(this.savedCancellableValue),this._triggerEvent(j.events["native"].input,e.target)),this.select());var t=R["default"].getElementValue(e.target);if(this.eventKey===p["default"].keyName.Enter&&this.rawValue!==this.rawValueOnFocus&&(this._triggerEvent(j.events["native"].change,e.target),this.valueOnFocus=t,this.rawValueOnFocus=this.rawValue,this.settings.isCancellable&&this._saveCancellableValue()),this._updateInternalProperties(e),this._processNonPrintableKeysAndShortcuts(e))this.processed=!0;else if(this.eventKey===p["default"].keyName.Backspace||this.eventKey===p["default"].keyName.Delete){var n=this._processCharacterDeletion();if(this.processed=!0,!n)return void e.preventDefault();this._formatValue(e),(t=R["default"].getElementValue(e.target))!==this.lastVal&&this.throwInput&&(this._triggerEvent(j.events["native"].input,e.target),e.preventDefault()),this.lastVal=t,this.throwInput=!0}}}else this.constructor._unformatAltHovered(this)}},{key:"_onKeypress",value:function(e){if(this.formulaMode){if(this._acceptNonPrintableKeysInFormulaMode())return;if(this.settings.formulaChars.test(this.eventKey))return;e.preventDefault()}else if(this.eventKey!==p["default"].keyName.Insert){var t=this.processed;if(this._updateInternalProperties(e),!this._processNonPrintableKeysAndShortcuts(e))if(t)e.preventDefault();else{if(this._processCharacterInsertion()){this._formatValue(e);var n=R["default"].getElementValue(e.target);if(n!==this.lastVal&&this.throwInput)this._triggerEvent(j.events["native"].input,e.target),e.preventDefault();else{if((this.eventKey===this.settings.decimalCharacter||this.eventKey===this.settings.decimalCharacterAlternative)&&R["default"].getElementSelection(e.target).start===R["default"].getElementSelection(e.target).end&&R["default"].getElementSelection(e.target).start===n.indexOf(this.settings.decimalCharacter)){var i=R["default"].getElementSelection(e.target).start+1;R["default"].setElementSelection(e.target,i)}e.preventDefault()}return this.lastVal=R["default"].getElementValue(e.target),this.throwInput=!0,void this._setValidOrInvalidState(this.rawValue)}e.preventDefault()}}}},{key:"_onKeyup",value:function(e){if(this.isEditing=!1,this.keydownEventCounter=0,!this.formulaMode)if(this.settings.isCancellable&&this.eventKey===p["default"].keyName.Esc)e.preventDefault();else{if(this.eventKey===p["default"].keyName.Z||this.eventKey===p["default"].keyName.z){if(e.ctrlKey&&e.shiftKey)return e.preventDefault(),this._historyTableRedo(),void(this.onGoingRedo=!0);if(e.ctrlKey&&!e.shiftKey){if(!this.onGoingRedo)return e.preventDefault(),void this._historyTableUndo();this.onGoingRedo=!1}}if(this.onGoingRedo&&(e.ctrlKey||e.shiftKey)&&(this.onGoingRedo=!1),(e.ctrlKey||e.metaKey)&&this.eventKey===p["default"].keyName.x){var t=R["default"].getElementSelection(this.domElement).start,n=this.constructor._toNumericValue(R["default"].getElementValue(e.target),this.settings);this.set(n),this._setCaretPosition(t)}if(this.eventKey===p["default"].keyName.Alt&&this.settings.unformatOnHover&&this.hoveredWithAlt)this.constructor._reformatAltHovered(this);else if(!e.ctrlKey&&!e.metaKey||this.eventKey!==p["default"].keyName.Backspace&&this.eventKey!==p["default"].keyName.Delete){this._updateInternalProperties(e);var i=this._processNonPrintableKeysAndShortcuts(e);delete this.valuePartsBeforePaste;var r=R["default"].getElementValue(e.target);if(!(i||""===r&&""===this.initialValueOnFirstKeydown)&&(r===this.settings.currencySymbol?this.settings.currencySymbolPlacement===j.options.currencySymbolPlacement.suffix?R["default"].setElementSelection(e.target,0):R["default"].setElementSelection(e.target,this.settings.currencySymbol.length):this.eventKey===p["default"].keyName.Tab&&R["default"].setElementSelection(e.target,0,r.length),(r===this.settings.suffixText||""===this.rawValue&&""!==this.settings.currencySymbol&&""!==this.settings.suffixText)&&R["default"].setElementSelection(e.target,0),null!==this.settings.decimalPlacesShownOnFocus&&this._saveValueToPersistentStorage(),this.formatted||this._formatValue(e),this._setValidOrInvalidState(this.rawValue),this._saveRawValueForAndroid(),r!==this.initialValueOnFirstKeydown&&this._triggerEvent(j.events.formatted,e.target,{oldValue:this.initialValueOnFirstKeydown,newValue:r,oldRawValue:this.initialRawValueOnFirstKeydown,newRawValue:this.rawValue,isPristine:this.isPristine(!1),error:null,aNElement:this}),1<this.historyTable.length)){var o=R["default"].getElementSelection(this.domElement);this.selectionStart=o.start,this.selectionEnd=o.end,this.historyTable[this.historyTableIndex].start=this.selectionStart,this.historyTable[this.historyTableIndex].end=this.selectionEnd}}else{var s=R["default"].getElementValue(e.target);this._setRawValue(this._formatOrUnformatOther(!1,s))}}}},{key:"_saveRawValueForAndroid",value:function(){if(this.eventKey===p["default"].keyName.AndroidDefault){var e=this.constructor._stripAllNonNumberCharactersExceptCustomDecimalChar(this.getFormatted(),this.settings,!0,this.isFocused);e=this.constructor._convertToNumericString(e,this.settings),this._setRawValue(e)}}},{key:"_onFocusOutAndMouseLeave",value:function(e){if(this.isEditing=!1,"mouseleave"!==e.type||!this.formulaMode)if(this.settings.unformatOnHover&&"mouseleave"===e.type&&this.hoveredWithAlt)this.constructor._reformatAltHovered(this);else if("mouseleave"===e.type&&!this.isFocused||"blur"===e.type){"blur"===e.type&&this.formulaMode&&this._exitFormulaMode(),this._saveValueToPersistentStorage(),this.settings.showOnlyNumbersOnFocus===j.options.showOnlyNumbersOnFocus.onlyNumbers&&(this.settings.digitGroupSeparator=this.originalDigitGroupSeparator,this.settings.currencySymbol=this.originalCurrencySymbol,this.settings.suffixText=this.originalSuffixText);var t=this._getRawValueToFormat(this.rawValue),n=R["default"].isNull(t),i=b(this.constructor._checkIfInRangeWithOverrideOption(t,this.settings),2),r=i[0],o=i[1],s=!1;if(""===t||n||(this._triggerRangeEvents(r,o),this.settings.valuesToStrings&&this._checkValuesToStrings(t)&&(this._setElementValue(this.settings.valuesToStrings[t]),s=!0)),!s){var a;if(a=n||""===t?t:String(t),""===t||n){if(""===t)switch(this.settings.emptyInputBehavior){case j.options.emptyInputBehavior.zero:this._setRawValue("0"),a=this.constructor._roundValue("0",this.settings,0);break;case j.options.emptyInputBehavior.min:this._setRawValue(this.settings.minimumValue),a=this.constructor._roundFormattedValueShownOnFocusOrBlur(this.settings.minimumValue,this.settings,this.isFocused);break;case j.options.emptyInputBehavior.max:this._setRawValue(this.settings.maximumValue),a=this.constructor._roundFormattedValueShownOnFocusOrBlur(this.settings.maximumValue,this.settings,this.isFocused);break;default:R["default"].isNumber(this.settings.emptyInputBehavior)&&(this._setRawValue(this.settings.emptyInputBehavior),a=this.constructor._roundFormattedValueShownOnFocusOrBlur(this.settings.emptyInputBehavior,this.settings,this.isFocused))}}else r&&o&&!this.constructor._isElementValueEmptyOrOnlyTheNegativeSign(t,this.settings)?(a=this._modifyNegativeSignAndDecimalCharacterForRawValue(a),this.settings.divisorWhenUnfocused&&!R["default"].isNull(a)&&(a=(a/=this.settings.divisorWhenUnfocused).toString()),a=this.constructor._roundFormattedValueShownOnBlur(a,this.settings),a=this.constructor._modifyNegativeSignAndDecimalCharacterForFormattedValue(a,this.settings)):this._triggerRangeEvents(r,o);var l=this.constructor._orderValueCurrencySymbolAndSuffixText(a,this.settings,!1);this.constructor._isElementValueEmptyOrOnlyTheNegativeSign(a,this.settings)||n&&this.settings.emptyInputBehavior===j.options.emptyInputBehavior["null"]||(l=this.constructor._addGroupSeparators(a,this.settings,!1,t)),l===t&&""!==t&&this.settings.allowDecimalPadding!==j.options.allowDecimalPadding.never&&this.settings.allowDecimalPadding!==j.options.allowDecimalPadding.floats||(this.settings.symbolWhenUnfocused&&""!==t&&null!==t&&(l="".concat(l).concat(this.settings.symbolWhenUnfocused)),this._setElementValue(l))}this._setValidOrInvalidState(this.rawValue),"blur"===e.type&&this._onBlur(e)}}},{key:"_onPaste",value:function(e){if(e.preventDefault(),!(this.settings.readOnly||this.domElement.readOnly||this.domElement.disabled)){var t,n;window.clipboardData&&window.clipboardData.getData?t=window.clipboardData.getData("Text"):e.clipboardData&&e.clipboardData.getData?t=e.clipboardData.getData("text/plain"):R["default"].throwError("Unable to retrieve the pasted value. Please use a modern browser (ie. Firefox or Chromium)."),n=e.target.tagName?e.target:e.explicitOriginalTarget;var i=R["default"].getElementValue(n),r=n.selectionStart||0,o=n.selectionEnd||0,s=o-r;if(s===i.length){var a=this._preparePastedText(t),l=R["default"].arabicToLatinNumbers(a,!1,!1,!1);return"."===l||""===l||"."!==l&&!R["default"].isNumber(l)?(this.formatted=!0,void(this.settings.onInvalidPaste===j.options.onInvalidPaste.error&&R["default"].throwError("The pasted value '".concat(t,"' is not a valid paste content.")))):(this.set(l),this.formatted=!0,void this._triggerEvent(j.events["native"].input,n))}var u=R["default"].isNegativeStrict(t,this.settings.negativeSignCharacter);u&&(t=t.slice(1,t.length));var c,d,h=this._preparePastedText(t);if("."!==(c="."===h?".":R["default"].arabicToLatinNumbers(h,!1,!1,!1))&&(!R["default"].isNumber(c)||""===c))return this.formatted=!0,void(this.settings.onInvalidPaste===j.options.onInvalidPaste.error&&R["default"].throwError("The pasted value '".concat(t,"' is not a valid paste content.")));var f,p,m=R["default"].isNegativeStrict(this.getNumericString(),this.settings.negativeSignCharacter);f=!(!u||m)&&(m=!0);var g=i.slice(0,r),v=i.slice(o,i.length);p=r!==o?this._preparePastedText(g+v):this._preparePastedText(i),m&&(p=R["default"].setRawNegativeSign(p)),d=R["default"].convertCharacterCountToIndexPosition(R["default"].countNumberCharactersOnTheCaretLeftSide(i,r,this.settings.decimalCharacter)),f&&d++;var y=p.slice(0,d),b=p.slice(d,p.length),w=!1;"."===c&&(R["default"].contains(y,".")&&(w=!0,y=y.replace(".","")),b=b.replace(".",""));var S=!1;switch(""===y&&"-"===b&&(y="-",S=!(b="")),this.settings.onInvalidPaste){case j.options.onInvalidPaste.truncate:case j.options.onInvalidPaste.replace:for(var k=R["default"].parseStr(this.settings.minimumValue),x=R["default"].parseStr(this.settings.maximumValue),_=p,C=0,T=y;C<c.length&&(p=(T+=c[C])+b,this.constructor._checkIfInRange(p,k,x));)_=p,C++;if(d+=C,S&&d++,this.settings.onInvalidPaste===j.options.onInvalidPaste.truncate){p=_,w&&d--;break}for(var E=d,P=_.length;C<c.length&&E<P;)if("."!==_[E]){if(p=R["default"].replaceCharAt(_,E,c[C]),!this.constructor._checkIfInRange(p,k,x))break;_=p,C++,E++}else E++;d=E,w&&d--,p=_;break;case j.options.onInvalidPaste.error:case j.options.onInvalidPaste.ignore:case j.options.onInvalidPaste.clamp:default:if(p="".concat(y).concat(c).concat(b),r===o)d=R["default"].convertCharacterCountToIndexPosition(R["default"].countNumberCharactersOnTheCaretLeftSide(i,r,this.settings.decimalCharacter))+c.length;else if(""===b)d=R["default"].convertCharacterCountToIndexPosition(R["default"].countNumberCharactersOnTheCaretLeftSide(i,r,this.settings.decimalCharacter))+c.length,S&&d++;else{var O=R["default"].convertCharacterCountToIndexPosition(R["default"].countNumberCharactersOnTheCaretLeftSide(i,o,this.settings.decimalCharacter)),N=R["default"].getElementValue(n).slice(r,o);d=O-s+R["default"].countCharInText(this.settings.digitGroupSeparator,N)+c.length}f&&d++,w&&d--}if(R["default"].isNumber(p)&&""!==p){var A=!1,D=!1;try{this.set(p),A=!0}catch(M){var F;switch(this.settings.onInvalidPaste){case j.options.onInvalidPaste.clamp:F=R["default"].clampToRangeLimits(p,this.settings);try{this.set(F)}catch(M){R["default"].throwError("Fatal error: Unable to set the clamped value '".concat(F,"'."))}A=D=!0,p=F;break;case j.options.onInvalidPaste.error:case j.options.onInvalidPaste.truncate:case j.options.onInvalidPaste.replace:R["default"].throwError("The pasted value '".concat(t,"' results in a value '").concat(p,"' that is outside of the minimum [").concat(this.settings.minimumValue,"] and maximum [").concat(this.settings.maximumValue,"] value range."));case j.options.onInvalidPaste.ignore:default:return}}var I,L=R["default"].getElementValue(n);if(A)switch(this.settings.onInvalidPaste){case j.options.onInvalidPaste.clamp:if(D){this.settings.currencySymbolPlacement===j.options.currencySymbolPlacement.suffix?R["default"].setElementSelection(n,L.length-this.settings.currencySymbol.length):R["default"].setElementSelection(n,L.length);break}case j.options.onInvalidPaste.error:case j.options.onInvalidPaste.ignore:case j.options.onInvalidPaste.truncate:case j.options.onInvalidPaste.replace:default:I=R["default"].findCaretPositionInFormattedNumber(p,d,L,this.settings.decimalCharacter),R["default"].setElementSelection(n,I)}A&&i!==L&&this._triggerEvent(j.events["native"].input,n)}else this.settings.onInvalidPaste===j.options.onInvalidPaste.error&&R["default"].throwError("The pasted value '".concat(t,"' would result into an invalid content '").concat(p,"'."))}}},{key:"_onBlur",value:function(e){this.isFocused=!1,this.isEditing=!1,this.rawValue!==this.rawValueOnFocus&&this._triggerEvent(j.events["native"].change,e.target),this.rawValueOnFocus=void 0}},{key:"_onWheel",value:function(e){this.formulaMode||this.settings.readOnly||this.domElement.readOnly||this.domElement.disabled||this.settings.modifyValueOnWheel&&(this.settings.wheelOn===j.options.wheelOn.focus?this.isFocused?e.shiftKey||this.wheelAction(e):e.shiftKey&&this.wheelAction(e):this.settings.wheelOn===j.options.wheelOn.hover?e.shiftKey?(e.preventDefault(),window.scrollBy(0,R["default"].isNegativeStrict(String(e.deltaY))?-50:50)):this.wheelAction(e):R["default"].throwError("Unknown `wheelOn` option."))}},{key:"wheelAction",value:function(e){this.isWheelEvent=!0;var t,n=e.target.selectionStart||0,i=e.target.selectionEnd||0,r=this.rawValue;if(R["default"].isUndefinedOrNullOrEmpty(r)?0<this.settings.minimumValue||this.settings.maximumValue<0?R["default"].isWheelUpEvent(e)?t=this.settings.minimumValue:R["default"].isWheelDownEvent(e)?t=this.settings.maximumValue:R["default"].throwError("The event is not a 'wheel' event."):t=0:t=r,t=+t,R["default"].isNumber(this.settings.wheelStep)){var o=+this.settings.wheelStep;R["default"].isWheelUpEvent(e)?t+=o:R["default"].isWheelDownEvent(e)&&(t-=o)}else R["default"].isWheelUpEvent(e)?t=R["default"].addAndRoundToNearestAuto(t,this.settings.decimalPlacesRawValue):R["default"].isWheelDownEvent(e)&&(t=R["default"].subtractAndRoundToNearestAuto(t,this.settings.decimalPlacesRawValue));(t=R["default"].clampToRangeLimits(t,this.settings))!==+r&&(this.set(t),this._triggerEvent(j.events["native"].input,e.target)),e.preventDefault(),this._setSelection(n,i),this.isWheelEvent=!1}},{key:"_onDrop",value:function(e){if(!this.formulaMode){var t;this.isDropEvent=!0,e.preventDefault(),t=R["default"].isIE11()?"text":"text/plain";var n=e.dataTransfer.getData(t),i=this.unformatOther(n);this.set(i),this.isDropEvent=!1}}},{key:"_onFormSubmit",value:function(){var t=this;return this._getFormAutoNumericChildren(this.parentForm).map(function(e){return t.constructor.getAutoNumericElement(e)}).forEach(function(e){return e._unformatOnSubmit()}),!0}},{key:"_onFormReset",value:function(){var n=this;this._getFormAutoNumericChildren(this.parentForm).map(function(e){return n.constructor.getAutoNumericElement(e)}).forEach(function(e){var t=n._getDefaultValue(e.node());setTimeout(function(){return e.set(t)},0)})}},{key:"_unformatOnSubmit",value:function(){this.settings.unformatOnSubmit&&this._setElementValue(this.rawValue)}},{key:"_onKeydownGlobal",value:function(e){if(R["default"].character(e)===p["default"].keyName.Alt){var t=R["default"].getHoveredElement();if(j.isManagedByAutoNumeric(t)){var n=j.getAutoNumericElement(t);!n.formulaMode&&n.settings.unformatOnHover&&this.constructor._unformatAltHovered(n)}}}},{key:"_onKeyupGlobal",value:function(e){if(R["default"].character(e)===p["default"].keyName.Alt){var t=R["default"].getHoveredElement();if(j.isManagedByAutoNumeric(t)){var n=j.getAutoNumericElement(t);if(n.formulaMode||!n.settings.unformatOnHover)return;this.constructor._reformatAltHovered(n)}}}},{key:"_isElementTagSupported",value:function(){return R["default"].isElement(this.domElement)||R["default"].throwError("The DOM element is not valid, ".concat(this.domElement," given.")),R["default"].isInArray(this.domElement.tagName.toLowerCase(),this.allowedTagList)}},{key:"_isInputElement",value:function(){return"input"===this.domElement.tagName.toLowerCase()}},{key:"_isInputTypeSupported",value:function(){return"text"===this.domElement.type||"hidden"===this.domElement.type||"tel"===this.domElement.type||R["default"].isUndefinedOrNullOrEmpty(this.domElement.type)}},{key:"_checkElement",value:function(){var e=this.domElement.tagName.toLowerCase();this._isElementTagSupported()||R["default"].throwError("The <".concat(e,"> tag is not supported by autoNumeric")),this._isInputElement()?(this._isInputTypeSupported()||R["default"].throwError('The input type "'.concat(this.domElement.type,'" is not supported by autoNumeric')),this.isInputElement=!0):(this.isInputElement=!1,this.isContentEditable=this.domElement.hasAttribute("contenteditable")&&"true"===this.domElement.getAttribute("contenteditable"))}},{key:"_formatDefaultValueOnPageLoad",value:function(e){var t,n=0<arguments.length&&e!==undefined?e:null,i=!0;if(R["default"].isNull(n)?(t=R["default"].getElementValue(this.domElement).trim(),this.domElement.setAttribute("value",t)):t=n,this.isInputElement||this.isContentEditable){var r=this.constructor._toNumericValue(t,this.settings);if(this.domElement.hasAttribute("value")&&""!==this.domElement.getAttribute("value")){if(null!==this.settings.defaultValueOverride&&this.settings.defaultValueOverride.toString()!==t||null===this.settings.defaultValueOverride&&""!==t&&t!==this.domElement.getAttribute("value")||""!==t&&"hidden"===this.domElement.getAttribute("type")&&!R["default"].isNumber(r)){if(this.settings.saveValueToSessionStorage&&(null!==this.settings.decimalPlacesShownOnFocus||this.settings.divisorWhenUnfocused)&&this._setRawValue(this._getValueFromPersistentStorage()),!this.settings.saveValueToSessionStorage){var o=this.constructor._removeBrackets(t,this.settings);(this.settings.negativePositiveSignPlacement===j.options.negativePositiveSignPlacement.suffix||this.settings.negativePositiveSignPlacement!==j.options.negativePositiveSignPlacement.prefix&&this.settings.currencySymbolPlacement===j.options.currencySymbolPlacement.suffix)&&""!==this.settings.negativeSignCharacter&&R["default"].isNegative(t,this.settings.negativeSignCharacter)?this._setRawValue("-".concat(this.constructor._stripAllNonNumberCharacters(o,this.settings,!0,this.isFocused))):this._setRawValue(this.constructor._stripAllNonNumberCharacters(o,this.settings,!0,this.isFocused))}i=!1}}else isNaN(Number(r))||Infinity===r?R["default"].throwError("The value [".concat(t,"] used in the input is not a valid value autoNumeric can work with.")):(this.set(r),i=!1);if(""===t)switch(this.settings.emptyInputBehavior){case j.options.emptyInputBehavior.focus:case j.options.emptyInputBehavior["null"]:case j.options.emptyInputBehavior.press:break;case j.options.emptyInputBehavior.always:this._setElementValue(this.settings.currencySymbol);break;case j.options.emptyInputBehavior.min:this.set(this.settings.minimumValue);break;case j.options.emptyInputBehavior.max:this.set(this.settings.maximumValue);break;case j.options.emptyInputBehavior.zero:this.set("0");break;default:this.set(this.settings.emptyInputBehavior)}else i&&t===this.domElement.getAttribute("value")&&this.set(t)}else null!==this.settings.defaultValueOverride&&this.settings.defaultValueOverride!==t||this.set(t)}},{key:"_calculateVMinAndVMaxIntegerSizes",value:function(){var e=b(this.settings.maximumValue.toString().split("."),1)[0],t=b(this.settings.minimumValue||0===this.settings.minimumValue?this.settings.minimumValue.toString().split("."):[],1)[0];e=e.replace(this.settings.negativeSignCharacter,""),t=t.replace(this.settings.negativeSignCharacter,""),this.settings.mIntPos=Math.max(e.length,1),this.settings.mIntNeg=Math.max(t.length,1)}},{key:"_calculateValuesToStringsKeys",value:function(){this.settings.valuesToStrings?this.valuesToStringsKeys=Object.keys(this.settings.valuesToStrings):this.valuesToStringsKeys=[]}},{key:"_transformOptionsValuesToDefaultTypes",value:function(){for(var e in this.settings)if(Object.prototype.hasOwnProperty.call(this.settings,e)){var t=this.settings[e];"true"!==t&&"false"!==t||(this.settings[e]="true"===t),"number"==typeof t&&(this.settings[e]=t.toString())}}},{key:"_setSettings",value:function(e,t){var n=1<arguments.length&&t!==undefined&&t;(!n&&R["default"].isNull(e)||this.constructor._convertOldOptionsToNewOnes(e),n)?("decimalPlacesRawValue"in e&&(this.settings.originalDecimalPlacesRawValue=e.decimalPlacesRawValue),"decimalPlaces"in e&&(this.settings.originalDecimalPlaces=e.decimalPlaces),this.constructor._calculateDecimalPlacesOnUpdate(e,this.settings),this._mergeSettings(e)):(this.settings={},this._mergeSettings(this.constructor.getDefaultConfig(),this.domElement.dataset,e,{rawValue:this.defaultRawValue}),this.caretFix=!1,this.throwInput=!0,this.allowedTagList=p["default"].allowedTagList,this.runOnce=!1,this.hoveredWithAlt=!1);this._transformOptionsValuesToDefaultTypes(),this._runCallbacksFoundInTheSettingsObject(),this.constructor._correctNegativePositiveSignPlacementOption(this.settings),this.constructor._correctCaretPositionOnFocusAndSelectOnFocusOptions(this.settings),this.constructor._setNegativePositiveSignPermissions(this.settings),n||(R["default"].isNull(e)||!e.decimalPlaces?this.settings.originalDecimalPlaces=null:this.settings.originalDecimalPlaces=e.decimalPlaces,this.settings.originalDecimalPlacesRawValue=this.settings.decimalPlacesRawValue,this.constructor._calculateDecimalPlacesOnInit(this.settings)),this._calculateVMinAndVMaxIntegerSizes(),this._setTrailingNegativeSignInfo(),this.regex={},this.constructor._cachesUsualRegularExpressions(this.settings,this.regex),this.constructor._setBrackets(this.settings),this._calculateValuesToStringsKeys(),R["default"].isEmptyObj(this.settings)&&R["default"].throwError("Unable to set the settings, those are invalid ; an empty object was given."),this.constructor.validate(this.settings,!1,e),this._keepAnOriginalSettingsCopy()}},{key:"_preparePastedText",value:function(e){return this.constructor._stripAllNonNumberCharacters(e,this.settings,!0,this.isFocused)}},{key:"_updateInternalProperties",value:function(){this.selection=R["default"].getElementSelection(this.domElement),this.processed=!1}},{key:"_updateEventKeyInfo",value:function(e){this.eventKey=R["default"].character(e)}},{key:"_saveCancellableValue",value:function(){this.savedCancellableValue=this.rawValue}},{key:"_setSelection",value:function(e,t){e=Math.max(e,0),t=Math.min(t,R["default"].getElementValue(this.domElement).length),this.selection={start:e,end:t,length:t-e},R["default"].setElementSelection(this.domElement,e,t)}},{key:"_setCaretPosition",value:function(e){this._setSelection(e,e)}},{key:"_getLeftAndRightPartAroundTheSelection",value:function(){var e=R["default"].getElementValue(this.domElement);return[e.substring(0,this.selection.start),e.substring(this.selection.end,e.length)]}},{key:"_getUnformattedLeftAndRightPartAroundTheSelection",value:function(){var e=b(this._getLeftAndRightPartAroundTheSelection(),2),t=e[0],n=e[1];if(""===t&&""===n)return["",""];var i=!0;return this.eventKey!==p["default"].keyName.Hyphen&&this.eventKey!==p["default"].keyName.Minus||0!==Number(t)||(i=!1),this.isTrailingNegative&&(R["default"].isNegative(n,this.settings.negativeSignCharacter)&&!R["default"].isNegative(t,this.settings.negativeSignCharacter)||""===n&&R["default"].isNegative(t,this.settings.negativeSignCharacter,!0))&&(t=t.replace(this.settings.negativeSignCharacter,""),n=n.replace(this.settings.negativeSignCharacter,""),t=t.replace("-",""),n=n.replace("-",""),t="-".concat(t)),[t=j._stripAllNonNumberCharactersExceptCustomDecimalChar(t,this.settings,i,this.isFocused),n=j._stripAllNonNumberCharactersExceptCustomDecimalChar(n,this.settings,!1,this.isFocused)]}},{key:"_normalizeParts",value:function(e,t){var n=!0;this.eventKey!==p["default"].keyName.Hyphen&&this.eventKey!==p["default"].keyName.Minus||0!==Number(e)||(n=!1),this.isTrailingNegative&&R["default"].isNegative(t,this.settings.negativeSignCharacter)&&!R["default"].isNegative(e,this.settings.negativeSignCharacter)&&(e="-".concat(e),t=t.replace(this.settings.negativeSignCharacter,"")),e=j._stripAllNonNumberCharactersExceptCustomDecimalChar(e,this.settings,n,this.isFocused),t=j._stripAllNonNumberCharactersExceptCustomDecimalChar(t,this.settings,!1,this.isFocused),this.settings.leadingZero!==j.options.leadingZero.deny||this.eventKey!==p["default"].keyName.num0&&this.eventKey!==p["default"].keyName.numpad0||0!==Number(e)||R["default"].contains(e,this.settings.decimalCharacter)||""===t||(e=e.substring(0,e.length-1));var i=e+t;if(this.settings.decimalCharacter){
var r=i.match(new RegExp("^".concat(this.regex.aNegRegAutoStrip,"\\").concat(this.settings.decimalCharacter)));r&&(i=(e=e.replace(r[1],r[1]+"0"))+t)}return[e,t,i]}},{key:"_setValueParts",value:function(e,t,n){var i=2<arguments.length&&n!==undefined&&n,r=b(this._normalizeParts(e,t),3),o=r[0],s=r[1],a=r[2],l=b(j._checkIfInRangeWithOverrideOption(a,this.settings),2),u=l[0],c=l[1];if(u&&c){var d=j._truncateDecimalPlaces(a,this.settings,i,this.settings.decimalPlacesRawValue).replace(this.settings.decimalCharacter,".");if(""===d||d===this.settings.negativeSignCharacter){var h;switch(this.settings.emptyInputBehavior){case j.options.emptyInputBehavior.focus:case j.options.emptyInputBehavior.press:case j.options.emptyInputBehavior.always:h="";break;case j.options.emptyInputBehavior.min:h=this.settings.minimumValue;break;case j.options.emptyInputBehavior.max:h=this.settings.maximumValue;break;case j.options.emptyInputBehavior.zero:h="0";break;case j.options.emptyInputBehavior["null"]:h=null;break;default:h=this.settings.emptyInputBehavior}this._setRawValue(h)}else this._setRawValue(this._trimLeadingAndTrailingZeros(d));var f=j._truncateDecimalPlaces(a,this.settings,i,this.settings.decimalPlacesShownOnFocus),p=o.length;return p>f.length&&(p=f.length),1===p&&"0"===o&&this.settings.leadingZero===j.options.leadingZero.deny&&(p=""===s||"0"===o&&""!==s?1:0),this._setElementValue(f,!1),this._setCaretPosition(p),!0}return this._triggerRangeEvents(u,c),!1}},{key:"_getSignPosition",value:function(){var e;if(this.settings.currencySymbol){var t=this.settings.currencySymbol.length,n=R["default"].getElementValue(this.domElement);if(this.settings.currencySymbolPlacement===j.options.currencySymbolPlacement.prefix){e=this.settings.negativeSignCharacter&&n&&n.charAt(0)===this.settings.negativeSignCharacter?[1,t+1]:[0,t]}else{var i=n.length;e=[i-t,i]}}else e=[1e3,-1];return e}},{key:"_expandSelectionOnSign",value:function(){var e=b(this._getSignPosition(),2),t=e[0],n=e[1],i=this.selection;i.start<n&&i.end>t&&((i.start<t||i.end>n)&&R["default"].getElementValue(this.domElement).substring(Math.max(i.start,t),Math.min(i.end,n)).match(/^\s*$/)?i.start<t?this._setSelection(i.start,t):this._setSelection(n,i.end):this._setSelection(Math.min(i.start,t),Math.max(i.end,n)))}},{key:"_checkPaste",value:function(){if(!this.formatted&&!R["default"].isUndefined(this.valuePartsBeforePaste)){var e=this.valuePartsBeforePaste,t=b(this._getLeftAndRightPartAroundTheSelection(),2),n=t[0],i=t[1];delete this.valuePartsBeforePaste;var r=n.substr(0,e[0].length)+j._stripAllNonNumberCharactersExceptCustomDecimalChar(n.substr(e[0].length),this.settings,!0,this.isFocused);this._setValueParts(r,i,!0)||(this._setElementValue(e.join(""),!1),this._setCaretPosition(e[0].length))}}},{key:"_processNonPrintableKeysAndShortcuts",value:function(e){if((e.ctrlKey||e.metaKey)&&"keyup"===e.type&&!R["default"].isUndefined(this.valuePartsBeforePaste)||e.shiftKey&&this.eventKey===p["default"].keyName.Insert)return this._checkPaste(),!1;if(this.constructor._shouldSkipEventKey(this.eventKey))return!0;if((e.ctrlKey||e.metaKey)&&this.eventKey===p["default"].keyName.a)return this.settings.selectNumberOnly&&(e.preventDefault(),this.selectNumber()),!0;if((e.ctrlKey||e.metaKey)&&(this.eventKey===p["default"].keyName.c||this.eventKey===p["default"].keyName.v||this.eventKey===p["default"].keyName.x))return"keydown"===e.type&&this._expandSelectionOnSign(),this.eventKey!==p["default"].keyName.v&&this.eventKey!==p["default"].keyName.Insert||("keydown"===e.type||"keypress"===e.type?R["default"].isUndefined(this.valuePartsBeforePaste)&&(this.valuePartsBeforePaste=this._getLeftAndRightPartAroundTheSelection()):this._checkPaste()),"keydown"===e.type||"keypress"===e.type||this.eventKey===p["default"].keyName.c;if(e.ctrlKey||e.metaKey)return!(this.eventKey===p["default"].keyName.Z||this.eventKey===p["default"].keyName.z);if(this.eventKey===p["default"].keyName.LeftArrow||this.eventKey===p["default"].keyName.RightArrow){if("keydown"===e.type&&!e.shiftKey){var t=R["default"].getElementValue(this.domElement);this.eventKey!==p["default"].keyName.LeftArrow||t.charAt(this.selection.start-2)!==this.settings.digitGroupSeparator&&t.charAt(this.selection.start-2)!==this.settings.decimalCharacter?this.eventKey!==p["default"].keyName.RightArrow||t.charAt(this.selection.start+1)!==this.settings.digitGroupSeparator&&t.charAt(this.selection.start+1)!==this.settings.decimalCharacter||this._setCaretPosition(this.selection.start+1):this._setCaretPosition(this.selection.start-1)}return!0}return R["default"].isInArray(this.eventKey,p["default"].keyName._directionKeys)}},{key:"_processCharacterDeletionIfTrailingNegativeSign",value:function(e){var t=b(e,2),n=t[0],i=t[1],r=R["default"].getElementValue(this.domElement),o=R["default"].isNegative(r,this.settings.negativeSignCharacter);if(this.settings.currencySymbolPlacement===j.options.currencySymbolPlacement.prefix&&this.settings.negativePositiveSignPlacement===j.options.negativePositiveSignPlacement.suffix&&(this.eventKey===p["default"].keyName.Backspace?(this.caretFix=this.selection.start>=r.indexOf(this.settings.suffixText)&&""!==this.settings.suffixText,"-"===r.charAt(this.selection.start-1)?n=n.substring(1):this.selection.start<=r.length-this.settings.suffixText.length&&(n=n.substring(0,n.length-1))):(this.caretFix=this.selection.start>=r.indexOf(this.settings.suffixText)&&""!==this.settings.suffixText,this.selection.start>=r.indexOf(this.settings.currencySymbol)+this.settings.currencySymbol.length&&(i=i.substring(1,i.length)),R["default"].isNegative(n,this.settings.negativeSignCharacter)&&"-"===r.charAt(this.selection.start)&&(n=n.substring(1)))),this.settings.currencySymbolPlacement===j.options.currencySymbolPlacement.suffix)switch(this.settings.negativePositiveSignPlacement){case j.options.negativePositiveSignPlacement.left:this.caretFix=this.selection.start>=r.indexOf(this.settings.negativeSignCharacter)+this.settings.negativeSignCharacter.length,this.eventKey===p["default"].keyName.Backspace?this.selection.start===r.indexOf(this.settings.negativeSignCharacter)+this.settings.negativeSignCharacter.length&&o?n=n.substring(1):"-"!==n&&(this.selection.start<=r.indexOf(this.settings.negativeSignCharacter)||!o)&&(n=n.substring(0,n.length-1)):("-"===n[0]&&(i=i.substring(1)),this.selection.start===r.indexOf(this.settings.negativeSignCharacter)&&o&&(n=n.substring(1)));break;case j.options.negativePositiveSignPlacement.right:this.caretFix=this.selection.start>=r.indexOf(this.settings.negativeSignCharacter)+this.settings.negativeSignCharacter.length,this.eventKey===p["default"].keyName.Backspace?this.selection.start===r.indexOf(this.settings.negativeSignCharacter)+this.settings.negativeSignCharacter.length?n=n.substring(1):"-"!==n&&this.selection.start<=r.indexOf(this.settings.negativeSignCharacter)-this.settings.currencySymbol.length?n=n.substring(0,n.length-1):""===n||o||(n=n.substring(0,n.length-1)):(this.caretFix=this.selection.start>=r.indexOf(this.settings.currencySymbol)&&""!==this.settings.currencySymbol,this.selection.start===r.indexOf(this.settings.negativeSignCharacter)&&(n=n.substring(1)),i=i.substring(1))}return[n,i]}},{key:"_processCharacterDeletion",value:function(){var e,t;if(this.selection.length){this._expandSelectionOnSign();var n=b(this._getUnformattedLeftAndRightPartAroundTheSelection(),2);e=n[0],t=n[1]}else{var i=b(this._getUnformattedLeftAndRightPartAroundTheSelection(),2);if(e=i[0],t=i[1],""===e&&""===t&&(this.throwInput=!1),this.isTrailingNegative&&R["default"].isNegative(R["default"].getElementValue(this.domElement),this.settings.negativeSignCharacter)){var r=b(this._processCharacterDeletionIfTrailingNegativeSign([e,t]),2);e=r[0],t=r[1]}else this.eventKey===p["default"].keyName.Backspace?e=e.substring(0,e.length-1):t=t.substring(1,t.length)}return!!this.constructor._isWithinRangeWithOverrideOption("".concat(e).concat(t),this.settings)&&(this._setValueParts(e,t),!0)}},{key:"_isDecimalCharacterInsertionAllowed",value:function(){return String(this.settings.decimalPlacesShownOnFocus)!==String(j.options.decimalPlacesShownOnFocus.none)&&String(this.settings.decimalPlaces)!==String(j.options.decimalPlaces.none)}},{key:"_processCharacterInsertion",value:function(){var e=b(this._getUnformattedLeftAndRightPartAroundTheSelection(),2),t=e[0],n=e[1];if(this.eventKey!==p["default"].keyName.AndroidDefault&&(this.throwInput=!0),this.eventKey===this.settings.decimalCharacter||this.settings.decimalCharacterAlternative&&this.eventKey===this.settings.decimalCharacterAlternative){if(!this._isDecimalCharacterInsertionAllowed()||!this.settings.decimalCharacter)return!1;if(this.settings.alwaysAllowDecimalCharacter)t=t.replace(this.settings.decimalCharacter,""),n=n.replace(this.settings.decimalCharacter,"");else{if(R["default"].contains(t,this.settings.decimalCharacter))return!0;if(0<n.indexOf(this.settings.decimalCharacter))return!0;0===n.indexOf(this.settings.decimalCharacter)&&(n=n.substr(1))}return this.settings.negativeSignCharacter&&R["default"].contains(n,this.settings.negativeSignCharacter)&&(t="".concat(this.settings.negativeSignCharacter).concat(t),n=n.replace(this.settings.negativeSignCharacter,"")),this._setValueParts(t+this.settings.decimalCharacter,n),!0}if(("-"===this.eventKey||"+"===this.eventKey)&&this.settings.isNegativeSignAllowed)return""===t&&R["default"].contains(n,"-")?n=n.replace("-",""):t=R["default"].isNegativeStrict(t,"-")?t.replace("-",""):"".concat(this.settings.negativeSignCharacter).concat(t),this._setValueParts(t,n),!0;var i=Number(this.eventKey);return 0<=i&&i<=9?(this.settings.isNegativeSignAllowed&&""===t&&R["default"].contains(n,"-")&&(t="-",n=n.substring(1,n.length)),this.settings.maximumValue<=0&&this.settings.minimumValue<this.settings.maximumValue&&!R["default"].contains(R["default"].getElementValue(this.domElement),this.settings.negativeSignCharacter)&&"0"!==this.eventKey&&(t="-".concat(t)),this._setValueParts("".concat(t).concat(this.eventKey),n),!0):this.throwInput=!1}},{key:"_formatValue",value:function(e){var t=R["default"].getElementValue(this.domElement),n=b(this._getUnformattedLeftAndRightPartAroundTheSelection(),1)[0];if((""===this.settings.digitGroupSeparator||""!==this.settings.digitGroupSeparator&&!R["default"].contains(t,this.settings.digitGroupSeparator))&&(""===this.settings.currencySymbol||""!==this.settings.currencySymbol&&!R["default"].contains(t,this.settings.currencySymbol))){var i=b(t.split(this.settings.decimalCharacter),1)[0],r="";R["default"].isNegative(i,this.settings.negativeSignCharacter)&&(r=this.settings.negativeSignCharacter,i=i.replace(this.settings.negativeSignCharacter,""),n=n.replace("-","")),""===r&&i.length>this.settings.mIntPos&&"0"===n.charAt(0)&&(n=n.slice(1)),r===this.settings.negativeSignCharacter&&i.length>this.settings.mIntNeg&&"0"===n.charAt(0)&&(n=n.slice(1)),this.isTrailingNegative||(n="".concat(r).concat(n))}var o=this.constructor._addGroupSeparators(t,this.settings,this.isFocused,this.rawValue),s=o.length;if(o){var a,l=n.split("");if((this.settings.negativePositiveSignPlacement===j.options.negativePositiveSignPlacement.suffix||this.settings.negativePositiveSignPlacement!==j.options.negativePositiveSignPlacement.prefix&&this.settings.currencySymbolPlacement===j.options.currencySymbolPlacement.suffix)&&l[0]===this.settings.negativeSignCharacter&&!this.settings.isNegativeSignAllowed&&(l.shift(),(this.eventKey===p["default"].keyName.Backspace||this.eventKey===p["default"].keyName.Delete)&&this.caretFix&&((this.settings.currencySymbolPlacement===j.options.currencySymbolPlacement.suffix&&this.settings.negativePositiveSignPlacement===j.options.negativePositiveSignPlacement.left||this.settings.currencySymbolPlacement===j.options.currencySymbolPlacement.prefix&&this.settings.negativePositiveSignPlacement===j.options.negativePositiveSignPlacement.suffix)&&(l.push(this.settings.negativeSignCharacter),this.caretFix="keydown"===e.type),this.settings.currencySymbolPlacement===j.options.currencySymbolPlacement.suffix&&this.settings.negativePositiveSignPlacement===j.options.negativePositiveSignPlacement.right))){var u=this.settings.currencySymbol.split(""),c=["\\","^","$",".","|","?","*","+","(",")","["],d=[];u.forEach(function(e,t){t=u[e],R["default"].isInArray(t,c)?d.push("\\"+t):d.push(t)}),this.eventKey===p["default"].keyName.Backspace&&"-"===this.settings.negativeSignCharacter&&d.push("-"),l.push(d.join("")),this.caretFix="keydown"===e.type}for(var h=0;h<l.length;h++)l[h].match("\\d")||(l[h]="\\"+l[h]);a=this.settings.currencySymbolPlacement===j.options.currencySymbolPlacement.suffix?new RegExp("^.*?".concat(l.join(".*?"))):new RegExp("^.*?".concat(this.settings.currencySymbol).concat(l.join(".*?")));var f=o.match(a);f?(s=f[0].length,this.settings.showPositiveSign&&(0===s&&f.input.charAt(0)===this.settings.positiveSignCharacter&&(s=1===f.input.indexOf(this.settings.currencySymbol)?this.settings.currencySymbol.length+1:1),0===s&&f.input.charAt(this.settings.currencySymbol.length)===this.settings.positiveSignCharacter&&(s=this.settings.currencySymbol.length+1)),(0===s&&o.charAt(0)!==this.settings.negativeSignCharacter||1===s&&o.charAt(0)===this.settings.negativeSignCharacter)&&this.settings.currencySymbol&&this.settings.currencySymbolPlacement===j.options.currencySymbolPlacement.prefix&&(s=this.settings.currencySymbol.length+(R["default"].isNegativeStrict(o,this.settings.negativeSignCharacter)?1:0))):(this.settings.currencySymbol&&this.settings.currencySymbolPlacement===j.options.currencySymbolPlacement.suffix&&(s-=this.settings.currencySymbol.length),this.settings.suffixText&&(s-=this.settings.suffixText.length))}o!==t&&(this._setElementValue(o,!1),this._setCaretPosition(s)),this.formatted=!0}}],[{key:"version",value:function(){return"4.6.0"}},{key:"_setArgumentsValues",value:function(e,t,n){R["default"].isNull(e)&&R["default"].throwError("At least one valid parameter is needed in order to initialize an AutoNumeric object");var i,r,o,s=R["default"].isElement(e),a=R["default"].isString(e),l=R["default"].isObject(t),u=Array.isArray(t)&&0<t.length,c=R["default"].isNumberOrArabic(t)||""===t,d=this._isPreDefinedOptionValid(t),h=R["default"].isNull(t),f=R["default"].isEmptyString(t),p=R["default"].isObject(n),m=Array.isArray(n)&&0<n.length,g=R["default"].isNull(n),v=this._isPreDefinedOptionValid(n);return s&&h&&g?(i=e,r=o=null):s&&c&&g?(i=e,o=t,r=null):s&&l&&g?(i=e,o=null,r=t):s&&d&&g?(i=e,o=null,r=this._getOptionObject(t)):s&&u&&g?(i=e,o=null,r=this.mergeOptions(t)):s&&(h||f)&&p?(i=e,o=null,r=n):s&&(h||f)&&m?(i=e,o=null,r=this.mergeOptions(n)):a&&h&&g?(i=document.querySelector(e),r=o=null):a&&l&&g?(i=document.querySelector(e),o=null,r=t):a&&d&&g?(i=document.querySelector(e),o=null,r=this._getOptionObject(t)):a&&u&&g?(i=document.querySelector(e),o=null,r=this.mergeOptions(t)):a&&(h||f)&&p?(i=document.querySelector(e),o=null,r=n):a&&(h||f)&&m?(i=document.querySelector(e),o=null,r=this.mergeOptions(n)):a&&c&&g?(i=document.querySelector(e),o=t,r=null):a&&c&&p?(i=document.querySelector(e),o=t,r=n):a&&c&&v?(i=document.querySelector(e),o=t,r=this._getOptionObject(n)):a&&c&&m?(i=document.querySelector(e),o=t,r=this.mergeOptions(n)):s&&c&&p?(i=e,o=t,r=n):s&&c&&v?(i=e,o=t,r=this._getOptionObject(n)):s&&c&&m?(i=e,o=t,r=this.mergeOptions(n)):R["default"].throwError("The parameters given to the AutoNumeric object are not valid, '".concat(e,"', '").concat(t,"' and '").concat(n,"' given.")),R["default"].isNull(i)&&R["default"].throwError("The selector '".concat(e,"' did not select any valid DOM element. Please check on which element you called AutoNumeric.")),{domElement:i,initialValue:o,userOptions:r}}},{key:"mergeOptions",value:function(e){var t=this,n={};return e.forEach(function(e){m(n,t._getOptionObject(e))}),n}},{key:"_isPreDefinedOptionValid",value:function(e){return Object.prototype.hasOwnProperty.call(j.predefinedOptions,e)}},{key:"_getOptionObject",value:function(e){var t;return R["default"].isString(e)?null==(t=j.getPredefinedOptions()[e])&&R["default"].warning("The given pre-defined option [".concat(e,"] is not recognized by autoNumeric. Please check that pre-defined option name."),!0):t=e,t}},{key:"_doesFormHandlerListExists",value:function(){var e=y(window.aNFormHandlerMap);return"undefined"!==e&&"object"===e}},{key:"_createFormHandlerList",value:function(){window.aNFormHandlerMap=new Map}},{key:"_checkValuesToStringsArray",value:function(e,t){return R["default"].isInArray(String(e),t)}},{key:"_checkValuesToStringsSettings",value:function(e,t){return this._checkValuesToStringsArray(e,Object.keys(t.valuesToStrings))}},{key:"_checkStringsToValuesSettings",value:function(e,t){return this._checkValuesToStringsArray(e,Object.values(t.valuesToStrings))}},{key:"_unformatAltHovered",value:function(e){e.hoveredWithAlt=!0,e.unformat()}},{key:"_reformatAltHovered",value:function(e){e.hoveredWithAlt=!1,e.reformat()}},{key:"_getChildANInputElement",value:function(e){var t=this,n=e.getElementsByTagName("input"),i=[];return Array.prototype.slice.call(n,0).forEach(function(e){t.test(e)&&i.push(e)}),i}},{key:"test",value:function(e){return this._isInGlobalList(R["default"].domElement(e))}},{key:"_createWeakMap",value:function(e){window[e]=new WeakMap}},{key:"_createGlobalList",value:function(){this.autoNumericGlobalListName="autoNumericGlobalList",this._createWeakMap(this.autoNumericGlobalListName)}},{key:"_doesGlobalListExists",value:function(){var e=y(window[this.autoNumericGlobalListName]);return"undefined"!==e&&"object"===e}},{key:"_addToGlobalList",value:function(e){this._doesGlobalListExists()||this._createGlobalList();var t=e.node();if(this._isInGlobalList(t)){if(this._getFromGlobalList(t)===this)return;R["default"].warning("A reference to the DOM element you just initialized already exists in the global AutoNumeric element list. Please make sure to not initialize the same DOM element multiple times.",e.getSettings().showWarnings)}window[this.autoNumericGlobalListName].set(t,e)}},{key:"_removeFromGlobalList",value:function(e){this._doesGlobalListExists()&&window[this.autoNumericGlobalListName]["delete"](e.node())}},{key:"_getFromGlobalList",value:function(e){return this._doesGlobalListExists()?window[this.autoNumericGlobalListName].get(e):null}},{key:"_isInGlobalList",value:function(e){return!!this._doesGlobalListExists()&&window[this.autoNumericGlobalListName].has(e)}},{key:"validate",value:function(e,t,n){var i=!(1<arguments.length&&t!==undefined)||t,r=2<arguments.length&&n!==undefined?n:null;!R["default"].isUndefinedOrNullOrEmpty(e)&&R["default"].isObject(e)||R["default"].throwError("The userOptions are invalid ; it should be a valid object, [".concat(e,"] given."));var o,s=R["default"].isObject(r);s||R["default"].isNull(r)||R["default"].throwError("The 'originalOptions' parameter is invalid ; it should either be a valid option object or `null`, [".concat(e,"] given.")),R["default"].isNull(e)||this._convertOldOptionsToNewOnes(e),o=i?m({},this.getDefaultConfig(),e):e,R["default"].isTrueOrFalseString(o.showWarnings)||R["default"].isBoolean(o.showWarnings)||R["default"].throwError("The debug option 'showWarnings' is invalid ; it should be either 'true' or 'false', [".concat(o.showWarnings,"] given."));var a,l=/^[0-9]+$/,u=/[0-9]+/,c=/^-?[0-9]+(\.?[0-9]+)?$/,d=/^[0-9]+(\.?[0-9]+)?$/;R["default"].isTrueOrFalseString(o.allowDecimalPadding)||R["default"].isBoolean(o.allowDecimalPadding)||o.allowDecimalPadding===j.options.allowDecimalPadding.floats||R["default"].throwError("The decimal padding option 'allowDecimalPadding' is invalid ; it should either be `false`, `true` or `'floats'`, [".concat(o.allowDecimalPadding,"] given.")),o.allowDecimalPadding!==j.options.allowDecimalPadding.never&&"false"!==o.allowDecimalPadding||o.decimalPlaces===j.options.decimalPlaces.none&&o.decimalPlacesShownOnBlur===j.options.decimalPlacesShownOnBlur.none&&o.decimalPlacesShownOnFocus===j.options.decimalPlacesShownOnFocus.none||R["default"].warning("Setting 'allowDecimalPadding' to [".concat(o.allowDecimalPadding,"] will override the current 'decimalPlaces*' settings [").concat(o.decimalPlaces,", ").concat(o.decimalPlacesShownOnBlur," and ").concat(o.decimalPlacesShownOnFocus,"]."),o.showWarnings),R["default"].isTrueOrFalseString(o.alwaysAllowDecimalCharacter)||R["default"].isBoolean(o.alwaysAllowDecimalCharacter)||R["default"].throwError("The option 'alwaysAllowDecimalCharacter' is invalid ; it should either be `true` or `false`, [".concat(o.alwaysAllowDecimalCharacter,"] given.")),R["default"].isNull(o.caretPositionOnFocus)||R["default"].isInArray(o.caretPositionOnFocus,[j.options.caretPositionOnFocus.start,j.options.caretPositionOnFocus.end,j.options.caretPositionOnFocus.decimalLeft,j.options.caretPositionOnFocus.decimalRight])||R["default"].throwError("The display on empty string option 'caretPositionOnFocus' is invalid ; it should either be `null`, 'focus', 'press', 'always' or 'zero', [".concat(o.caretPositionOnFocus,"] given.")),a=s?r:this._correctCaretPositionOnFocusAndSelectOnFocusOptions(e),R["default"].isNull(a)||a.caretPositionOnFocus===j.options.caretPositionOnFocus.doNoForceCaretPosition||a.selectOnFocus!==j.options.selectOnFocus.select||R["default"].warning("The 'selectOnFocus' option is set to 'select', which is in conflict with the 'caretPositionOnFocus' which is set to '".concat(a.caretPositionOnFocus,"'. As a result, if this has been called when instantiating an AutoNumeric object, the 'selectOnFocus' option is forced to 'doNotSelect'."),o.showWarnings),R["default"].isInArray(o.digitGroupSeparator,[j.options.digitGroupSeparator.comma,j.options.digitGroupSeparator.dot,j.options.digitGroupSeparator.normalSpace,j.options.digitGroupSeparator.thinSpace,j.options.digitGroupSeparator.narrowNoBreakSpace,j.options.digitGroupSeparator.noBreakSpace,j.options.digitGroupSeparator.noSeparator,j.options.digitGroupSeparator.apostrophe,j.options.digitGroupSeparator.arabicThousandsSeparator,j.options.digitGroupSeparator.dotAbove,j.options.digitGroupSeparator.privateUseTwo])||R["default"].throwError("The thousand separator character option 'digitGroupSeparator' is invalid ; it should be ',', '.', '\u066c', '\u02d9', \"'\", '\x92', ' ', '\u2009', '\u202f', '\xa0' or empty (''), [".concat(o.digitGroupSeparator,"] given.")),R["default"].isTrueOrFalseString(o.showOnlyNumbersOnFocus)||R["default"].isBoolean(o.showOnlyNumbersOnFocus)||R["default"].throwError("The 'showOnlyNumbersOnFocus' option is invalid ; it should be either 'true' or 'false', [".concat(o.showOnlyNumbersOnFocus,"] given.")),R["default"].isInArray(o.digitalGroupSpacing,[j.options.digitalGroupSpacing.two,j.options.digitalGroupSpacing.twoScaled,j.options.digitalGroupSpacing.three,j.options.digitalGroupSpacing.four])||2<=o.digitalGroupSpacing&&o.digitalGroupSpacing<=4||R["default"].throwError("The grouping separator option for thousands 'digitalGroupSpacing' is invalid ; it should be '2', '2s', '3', or '4', [".concat(o.digitalGroupSpacing,"] given.")),R["default"].isInArray(o.decimalCharacter,[j.options.decimalCharacter.comma,j.options.decimalCharacter.dot,j.options.decimalCharacter.middleDot,j.options.decimalCharacter.arabicDecimalSeparator,j.options.decimalCharacter.decimalSeparatorKeySymbol])||R["default"].throwError("The decimal separator character option 'decimalCharacter' is invalid ; it should be '.', ',', '\xb7', '\u2396' or '\u066b', [".concat(o.decimalCharacter,"] given.")),o.decimalCharacter===o.digitGroupSeparator&&R["default"].throwError("autoNumeric will not function properly when the decimal character 'decimalCharacter' [".concat(o.decimalCharacter,"] and the thousand separator 'digitGroupSeparator' [").concat(o.digitGroupSeparator,"] are the same character.")),R["default"].isNull(o.decimalCharacterAlternative)||R["default"].isString(o.decimalCharacterAlternative)||R["default"].throwError("The alternate decimal separator character option 'decimalCharacterAlternative' is invalid ; it should be a string, [".concat(o.decimalCharacterAlternative,"] given.")),""===o.currencySymbol||R["default"].isString(o.currencySymbol)||R["default"].throwError("The currency symbol option 'currencySymbol' is invalid ; it should be a string, [".concat(o.currencySymbol,"] given.")),R["default"].isInArray(o.currencySymbolPlacement,[j.options.currencySymbolPlacement.prefix,j.options.currencySymbolPlacement.suffix])||R["default"].throwError("The placement of the currency sign option 'currencySymbolPlacement' is invalid ; it should either be 'p' (prefix) or 's' (suffix), [".concat(o.currencySymbolPlacement,"] given.")),R["default"].isInArray(o.negativePositiveSignPlacement,[j.options.negativePositiveSignPlacement.prefix,j.options.negativePositiveSignPlacement.suffix,j.options.negativePositiveSignPlacement.left,j.options.negativePositiveSignPlacement.right,j.options.negativePositiveSignPlacement.none])||R["default"].throwError("The placement of the negative sign option 'negativePositiveSignPlacement' is invalid ; it should either be 'p' (prefix), 's' (suffix), 'l' (left), 'r' (right) or 'null', [".concat(o.negativePositiveSignPlacement,"] given.")),R["default"].isTrueOrFalseString(o.showPositiveSign)||R["default"].isBoolean(o.showPositiveSign)||R["default"].throwError("The show positive sign option 'showPositiveSign' is invalid ; it should be either 'true' or 'false', [".concat(o.showPositiveSign,"] given.")),(!R["default"].isString(o.suffixText)||""!==o.suffixText&&(R["default"].isNegative(o.suffixText,o.negativeSignCharacter)||u.test(o.suffixText)))&&R["default"].throwError("The additional suffix option 'suffixText' is invalid ; it should not contains the negative sign '".concat(o.negativeSignCharacter,"' nor any numerical characters, [").concat(o.suffixText,"] given.")),(!R["default"].isString(o.negativeSignCharacter)||1!==o.negativeSignCharacter.length||R["default"].isUndefinedOrNullOrEmpty(o.negativeSignCharacter)||u.test(o.negativeSignCharacter))&&R["default"].throwError("The negative sign character option 'negativeSignCharacter' is invalid ; it should be a single character, and cannot be any numerical characters, [".concat(o.negativeSignCharacter,"] given.")),(!R["default"].isString(o.positiveSignCharacter)||1!==o.positiveSignCharacter.length||R["default"].isUndefinedOrNullOrEmpty(o.positiveSignCharacter)||u.test(o.positiveSignCharacter))&&R["default"].throwError("The positive sign character option 'positiveSignCharacter' is invalid ; it should be a single character, and cannot be any numerical characters, [".concat(o.positiveSignCharacter,"] given.\nIf you want to hide the positive sign character, you need to set the `showPositiveSign` option to `true`.")),o.negativeSignCharacter===o.positiveSignCharacter&&R["default"].throwError("The positive 'positiveSignCharacter' and negative 'negativeSignCharacter' sign characters cannot be identical ; [".concat(o.negativeSignCharacter,"] given."));var h=b(R["default"].isNull(o.negativeBracketsTypeOnBlur)?["",""]:o.negativeBracketsTypeOnBlur.split(","),2),f=h[0],p=h[1];(R["default"].contains(o.digitGroupSeparator,o.negativeSignCharacter)||R["default"].contains(o.decimalCharacter,o.negativeSignCharacter)||R["default"].contains(o.decimalCharacterAlternative,o.negativeSignCharacter)||R["default"].contains(f,o.negativeSignCharacter)||R["default"].contains(p,o.negativeSignCharacter)||R["default"].contains(o.suffixText,o.negativeSignCharacter))&&R["default"].throwError("The negative sign character option 'negativeSignCharacter' is invalid ; it should not be equal or a part of the digit separator, the decimal character, the decimal character alternative, the negative brackets or the suffix text, [".concat(o.negativeSignCharacter,"] given.")),(R["default"].contains(o.digitGroupSeparator,o.positiveSignCharacter)||R["default"].contains(o.decimalCharacter,o.positiveSignCharacter)||R["default"].contains(o.decimalCharacterAlternative,o.positiveSignCharacter)||R["default"].contains(f,o.positiveSignCharacter)||R["default"].contains(p,o.positiveSignCharacter)||R["default"].contains(o.suffixText,o.positiveSignCharacter))&&R["default"].throwError("The positive sign character option 'positiveSignCharacter' is invalid ; it should not be equal or a part of the digit separator, the decimal character, the decimal character alternative, the negative brackets or the suffix text, [".concat(o.positiveSignCharacter,"] given.")),R["default"].isNull(o.overrideMinMaxLimits)||R["default"].isInArray(o.overrideMinMaxLimits,[j.options.overrideMinMaxLimits.ceiling,j.options.overrideMinMaxLimits.floor,j.options.overrideMinMaxLimits.ignore,j.options.overrideMinMaxLimits.invalid])||R["default"].throwError("The override min & max limits option 'overrideMinMaxLimits' is invalid ; it should either be 'ceiling', 'floor', 'ignore' or 'invalid', [".concat(o.overrideMinMaxLimits,"] given.")),o.overrideMinMaxLimits!==j.options.overrideMinMaxLimits.invalid&&o.overrideMinMaxLimits!==j.options.overrideMinMaxLimits.ignore&&(0<o.minimumValue||o.maximumValue<0)&&R["default"].warning("You've set a `minimumValue` or a `maximumValue` excluding the value `0`. AutoNumeric will force the users to always have a valid value in the input, hence preventing them to clear the field. If you want to allow for temporary invalid values (ie. out-of-range), you should use the 'invalid' option for the 'overrideMinMaxLimits' setting."),R["default"].isString(o.maximumValue)&&c.test(o.maximumValue)||R["default"].throwError("The maximum possible value option 'maximumValue' is invalid ; it should be a string that represents a positive or negative number, [".concat(o.maximumValue,"] given.")),R["default"].isString(o.minimumValue)&&c.test(o.minimumValue)||R["default"].throwError("The minimum possible value option 'minimumValue' is invalid ; it should be a string that represents a positive or negative number, [".concat(o.minimumValue,"] given.")),parseFloat(o.minimumValue)>parseFloat(o.maximumValue)&&R["default"].throwError("The minimum possible value option is greater than the maximum possible value option ; 'minimumValue' [".concat(o.minimumValue,"] should be smaller than 'maximumValue' [").concat(o.maximumValue,"].")),R["default"].isInt(o.decimalPlaces)&&0<=o.decimalPlaces||R["default"].isString(o.decimalPlaces)&&l.test(o.decimalPlaces)||R["default"].throwError("The number of decimal places option 'decimalPlaces' is invalid ; it should be a positive integer, [".concat(o.decimalPlaces,"] given.")),R["default"].isNull(o.decimalPlacesRawValue)||R["default"].isInt(o.decimalPlacesRawValue)&&0<=o.decimalPlacesRawValue||R["default"].isString(o.decimalPlacesRawValue)&&l.test(o.decimalPlacesRawValue)||R["default"].throwError("The number of decimal places for the raw value option 'decimalPlacesRawValue' is invalid ; it should be a positive integer or `null`, [".concat(o.decimalPlacesRawValue,"] given.")),this._validateDecimalPlacesRawValue(o),R["default"].isNull(o.decimalPlacesShownOnFocus)||l.test(String(o.decimalPlacesShownOnFocus))||R["default"].throwError("The number of expanded decimal places option 'decimalPlacesShownOnFocus' is invalid ; it should be a positive integer or `null`, [".concat(o.decimalPlacesShownOnFocus,"] given.")),!R["default"].isNull(o.decimalPlacesShownOnFocus)&&Number(o.decimalPlaces)>Number(o.decimalPlacesShownOnFocus)&&R["default"].warning("The extended decimal places 'decimalPlacesShownOnFocus' [".concat(o.decimalPlacesShownOnFocus,"] should be greater than the 'decimalPlaces' [").concat(o.decimalPlaces,"] value. Currently, this will limit the ability of your user to manually change some of the decimal places. Do you really want to do that?"),o.showWarnings),(R["default"].isNull(o.divisorWhenUnfocused)||d.test(o.divisorWhenUnfocused))&&0!==o.divisorWhenUnfocused&&"0"!==o.divisorWhenUnfocused&&1!==o.divisorWhenUnfocused&&"1"!==o.divisorWhenUnfocused||R["default"].throwError("The divisor option 'divisorWhenUnfocused' is invalid ; it should be a positive number higher than one, preferably an integer, [".concat(o.divisorWhenUnfocused,"] given.")),R["default"].isNull(o.decimalPlacesShownOnBlur)||l.test(o.decimalPlacesShownOnBlur)||R["default"].throwError("The number of decimals shown when unfocused option 'decimalPlacesShownOnBlur' is invalid ; it should be a positive integer or `null`, [".concat(o.decimalPlacesShownOnBlur,"] given.")),R["default"].isNull(o.symbolWhenUnfocused)||R["default"].isString(o.symbolWhenUnfocused)||R["default"].throwError("The symbol to show when unfocused option 'symbolWhenUnfocused' is invalid ; it should be a string, [".concat(o.symbolWhenUnfocused,"] given.")),
R["default"].isTrueOrFalseString(o.saveValueToSessionStorage)||R["default"].isBoolean(o.saveValueToSessionStorage)||R["default"].throwError("The save to session storage option 'saveValueToSessionStorage' is invalid ; it should be either 'true' or 'false', [".concat(o.saveValueToSessionStorage,"] given.")),R["default"].isInArray(o.onInvalidPaste,[j.options.onInvalidPaste.error,j.options.onInvalidPaste.ignore,j.options.onInvalidPaste.clamp,j.options.onInvalidPaste.truncate,j.options.onInvalidPaste.replace])||R["default"].throwError("The paste behavior option 'onInvalidPaste' is invalid ; it should either be 'error', 'ignore', 'clamp', 'truncate' or 'replace' (cf. documentation), [".concat(o.onInvalidPaste,"] given.")),R["default"].isInArray(o.roundingMethod,[j.options.roundingMethod.halfUpSymmetric,j.options.roundingMethod.halfUpAsymmetric,j.options.roundingMethod.halfDownSymmetric,j.options.roundingMethod.halfDownAsymmetric,j.options.roundingMethod.halfEvenBankersRounding,j.options.roundingMethod.upRoundAwayFromZero,j.options.roundingMethod.downRoundTowardZero,j.options.roundingMethod.toCeilingTowardPositiveInfinity,j.options.roundingMethod.toFloorTowardNegativeInfinity,j.options.roundingMethod.toNearest05,j.options.roundingMethod.toNearest05Alt,j.options.roundingMethod.upToNext05,j.options.roundingMethod.downToNext05])||R["default"].throwError("The rounding method option 'roundingMethod' is invalid ; it should either be 'S', 'A', 's', 'a', 'B', 'U', 'D', 'C', 'F', 'N05', 'CHF', 'U05' or 'D05' (cf. documentation), [".concat(o.roundingMethod,"] given.")),R["default"].isNull(o.negativeBracketsTypeOnBlur)||R["default"].isInArray(o.negativeBracketsTypeOnBlur,[j.options.negativeBracketsTypeOnBlur.parentheses,j.options.negativeBracketsTypeOnBlur.brackets,j.options.negativeBracketsTypeOnBlur.chevrons,j.options.negativeBracketsTypeOnBlur.curlyBraces,j.options.negativeBracketsTypeOnBlur.angleBrackets,j.options.negativeBracketsTypeOnBlur.japaneseQuotationMarks,j.options.negativeBracketsTypeOnBlur.halfBrackets,j.options.negativeBracketsTypeOnBlur.whiteSquareBrackets,j.options.negativeBracketsTypeOnBlur.quotationMarks,j.options.negativeBracketsTypeOnBlur.guillemets])||R["default"].throwError("The brackets for negative values option 'negativeBracketsTypeOnBlur' is invalid ; it should either be '(,)', '[,]', '<,>', '{,}', '\u3008,\u3009', '\uff62,\uff63', '\u2e24,\u2e25', '\u27e6,\u27e7', '\u2039,\u203a' or '\xab,\xbb', [".concat(o.negativeBracketsTypeOnBlur,"] given.")),(R["default"].isString(o.emptyInputBehavior)||R["default"].isNumber(o.emptyInputBehavior))&&(R["default"].isInArray(o.emptyInputBehavior,[j.options.emptyInputBehavior.focus,j.options.emptyInputBehavior.press,j.options.emptyInputBehavior.always,j.options.emptyInputBehavior.min,j.options.emptyInputBehavior.max,j.options.emptyInputBehavior.zero,j.options.emptyInputBehavior["null"]])||c.test(o.emptyInputBehavior))||R["default"].throwError("The display on empty string option 'emptyInputBehavior' is invalid ; it should either be 'focus', 'press', 'always', 'min', 'max', 'zero', 'null', a number, or a string that represents a number, [".concat(o.emptyInputBehavior,"] given.")),o.emptyInputBehavior===j.options.emptyInputBehavior.zero&&(0<o.minimumValue||o.maximumValue<0)&&R["default"].throwError("The 'emptyInputBehavior' option is set to 'zero', but this value is outside of the range defined by 'minimumValue' and 'maximumValue' [".concat(o.minimumValue,", ").concat(o.maximumValue,"].")),c.test(String(o.emptyInputBehavior))&&(this._isWithinRangeWithOverrideOption(o.emptyInputBehavior,o)||R["default"].throwError("The 'emptyInputBehavior' option is set to a number or a string that represents a number, but its value [".concat(o.emptyInputBehavior,"] is outside of the range defined by the 'minimumValue' and 'maximumValue' options [").concat(o.minimumValue,", ").concat(o.maximumValue,"]."))),R["default"].isTrueOrFalseString(o.eventBubbles)||R["default"].isBoolean(o.eventBubbles)||R["default"].throwError("The event bubbles option 'eventBubbles' is invalid ; it should be either 'true' or 'false', [".concat(o.eventBubbles,"] given.")),R["default"].isTrueOrFalseString(o.eventIsCancelable)||R["default"].isBoolean(o.eventIsCancelable)||R["default"].throwError("The event is cancelable option 'eventIsCancelable' is invalid ; it should be either 'true' or 'false', [".concat(o.eventIsCancelable,"] given.")),!R["default"].isBoolean(o.invalidClass)&&/^-?[_a-zA-Z]+[_a-zA-Z0-9-]*$/.test(o.invalidClass)||R["default"].throwError("The name of the 'invalidClass' option is not a valid CSS class name ; it should not be empty, and should follow the '^-?[_a-zA-Z]+[_a-zA-Z0-9-]*$' regex, [".concat(o.invalidClass,"] given.")),R["default"].isInArray(o.leadingZero,[j.options.leadingZero.allow,j.options.leadingZero.deny,j.options.leadingZero.keep])||R["default"].throwError("The leading zero behavior option 'leadingZero' is invalid ; it should either be 'allow', 'deny' or 'keep', [".concat(o.leadingZero,"] given.")),R["default"].isTrueOrFalseString(o.formatOnPageLoad)||R["default"].isBoolean(o.formatOnPageLoad)||R["default"].throwError("The format on initialization option 'formatOnPageLoad' is invalid ; it should be either 'true' or 'false', [".concat(o.formatOnPageLoad,"] given.")),R["default"].isTrueOrFalseString(o.formulaMode)||R["default"].isBoolean(o.formulaMode)||R["default"].throwError("The formula mode option 'formulaMode' is invalid ; it should be either 'true' or 'false', [".concat(o.formulaMode,"] given.")),l.test(o.historySize)&&0!==o.historySize||R["default"].throwError("The history size option 'historySize' is invalid ; it should be a positive integer, [".concat(o.historySize,"] given.")),R["default"].isTrueOrFalseString(o.selectNumberOnly)||R["default"].isBoolean(o.selectNumberOnly)||R["default"].throwError("The select number only option 'selectNumberOnly' is invalid ; it should be either 'true' or 'false', [".concat(o.selectNumberOnly,"] given.")),R["default"].isTrueOrFalseString(o.selectOnFocus)||R["default"].isBoolean(o.selectOnFocus)||R["default"].throwError("The select on focus option 'selectOnFocus' is invalid ; it should be either 'true' or 'false', [".concat(o.selectOnFocus,"] given.")),R["default"].isNull(o.defaultValueOverride)||""===o.defaultValueOverride||c.test(o.defaultValueOverride)||R["default"].throwError("The unformatted default value option 'defaultValueOverride' is invalid ; it should be a string that represents a positive or negative number, [".concat(o.defaultValueOverride,"] given.")),R["default"].isTrueOrFalseString(o.unformatOnSubmit)||R["default"].isBoolean(o.unformatOnSubmit)||R["default"].throwError("The remove formatting on submit option 'unformatOnSubmit' is invalid ; it should be either 'true' or 'false', [".concat(o.unformatOnSubmit,"] given.")),R["default"].isNull(o.valuesToStrings)||R["default"].isObject(o.valuesToStrings)||R["default"].throwError("The option 'valuesToStrings' is invalid ; it should be an object, ideally with 'key -> value' entries, [".concat(o.valuesToStrings,"] given.")),R["default"].isNull(o.outputFormat)||R["default"].isInArray(o.outputFormat,[j.options.outputFormat.string,j.options.outputFormat.number,j.options.outputFormat.dot,j.options.outputFormat.negativeDot,j.options.outputFormat.comma,j.options.outputFormat.negativeComma,j.options.outputFormat.dotNegative,j.options.outputFormat.commaNegative])||R["default"].throwError("The custom locale format option 'outputFormat' is invalid ; it should either be null, 'string', 'number', '.', '-.', ',', '-,', '.-' or ',-', [".concat(o.outputFormat,"] given.")),R["default"].isTrueOrFalseString(o.isCancellable)||R["default"].isBoolean(o.isCancellable)||R["default"].throwError("The cancellable behavior option 'isCancellable' is invalid ; it should be either 'true' or 'false', [".concat(o.isCancellable,"] given.")),R["default"].isTrueOrFalseString(o.modifyValueOnWheel)||R["default"].isBoolean(o.modifyValueOnWheel)||R["default"].throwError("The increment/decrement on mouse wheel option 'modifyValueOnWheel' is invalid ; it should be either 'true' or 'false', [".concat(o.modifyValueOnWheel,"] given.")),R["default"].isTrueOrFalseString(o.watchExternalChanges)||R["default"].isBoolean(o.watchExternalChanges)||R["default"].throwError("The option 'watchExternalChanges' is invalid ; it should be either 'true' or 'false', [".concat(o.watchExternalChanges,"] given.")),R["default"].isInArray(o.wheelOn,[j.options.wheelOn.focus,j.options.wheelOn.hover])||R["default"].throwError("The wheel behavior option 'wheelOn' is invalid ; it should either be 'focus' or 'hover', [".concat(o.wheelOn,"] given.")),(!R["default"].isString(o.wheelStep)&&!R["default"].isNumber(o.wheelStep)||"progressive"!==o.wheelStep&&!d.test(o.wheelStep)||0===Number(o.wheelStep))&&R["default"].throwError("The wheel step value option 'wheelStep' is invalid ; it should either be the string 'progressive', or a number or a string that represents a positive number (excluding zero), [".concat(o.wheelStep,"] given.")),R["default"].isInArray(o.serializeSpaces,[j.options.serializeSpaces.plus,j.options.serializeSpaces.percent])||R["default"].throwError("The space replacement character option 'serializeSpaces' is invalid ; it should either be '+' or '%20', [".concat(o.serializeSpaces,"] given.")),R["default"].isTrueOrFalseString(o.noEventListeners)||R["default"].isBoolean(o.noEventListeners)||R["default"].throwError("The option 'noEventListeners' that prevent the creation of event listeners is invalid ; it should be either 'true' or 'false', [".concat(o.noEventListeners,"] given.")),R["default"].isNull(o.styleRules)||R["default"].isObject(o.styleRules)&&(Object.prototype.hasOwnProperty.call(o.styleRules,"positive")||Object.prototype.hasOwnProperty.call(o.styleRules,"negative")||Object.prototype.hasOwnProperty.call(o.styleRules,"ranges")||Object.prototype.hasOwnProperty.call(o.styleRules,"userDefined"))||R["default"].throwError("The option 'styleRules' is invalid ; it should be a correctly structured object, with one or more 'positive', 'negative', 'ranges' or 'userDefined' attributes, [".concat(o.styleRules,"] given.")),R["default"].isNull(o.styleRules)||!Object.prototype.hasOwnProperty.call(o.styleRules,"userDefined")||R["default"].isNull(o.styleRules.userDefined)||o.styleRules.userDefined.forEach(function(e){Object.prototype.hasOwnProperty.call(e,"callback")&&!R["default"].isFunction(e.callback)&&R["default"].throwError("The callback defined in the `userDefined` attribute is not a function, ".concat(y(e.callback)," given."))}),(R["default"].isNull(o.rawValueDivisor)||d.test(o.rawValueDivisor))&&0!==o.rawValueDivisor&&"0"!==o.rawValueDivisor&&1!==o.rawValueDivisor&&"1"!==o.rawValueDivisor||R["default"].throwError("The raw value divisor option 'rawValueDivisor' is invalid ; it should be a positive number higher than one, preferably an integer, [".concat(o.rawValueDivisor,"] given.")),R["default"].isTrueOrFalseString(o.readOnly)||R["default"].isBoolean(o.readOnly)||R["default"].throwError("The option 'readOnly' is invalid ; it should be either 'true' or 'false', [".concat(o.readOnly,"] given.")),R["default"].isTrueOrFalseString(o.unformatOnHover)||R["default"].isBoolean(o.unformatOnHover)||R["default"].throwError("The option 'unformatOnHover' is invalid ; it should be either 'true' or 'false', [".concat(o.unformatOnHover,"] given.")),R["default"].isTrueOrFalseString(o.failOnUnknownOption)||R["default"].isBoolean(o.failOnUnknownOption)||R["default"].throwError("The debug option 'failOnUnknownOption' is invalid ; it should be either 'true' or 'false', [".concat(o.failOnUnknownOption,"] given.")),R["default"].isTrueOrFalseString(o.createLocalList)||R["default"].isBoolean(o.createLocalList)||R["default"].throwError("The debug option 'createLocalList' is invalid ; it should be either 'true' or 'false', [".concat(o.createLocalList,"] given."))}},{key:"_validateDecimalPlacesRawValue",value:function(e){R["default"].isNull(e.decimalPlacesRawValue)||(e.decimalPlacesRawValue<e.decimalPlaces&&R["default"].warning("The number of decimal places to store in the raw value [".concat(e.decimalPlacesRawValue,"] is lower than the ones to display [").concat(e.decimalPlaces,"]. This will likely confuse your users.\nTo solve that, you'd need to either set `decimalPlacesRawValue` to `null`, or set a number of decimal places for the raw value equal of bigger than `decimalPlaces`."),e.showWarnings),e.decimalPlacesRawValue<e.decimalPlacesShownOnFocus&&R["default"].warning("The number of decimal places to store in the raw value [".concat(e.decimalPlacesRawValue,"] is lower than the ones shown on focus [").concat(e.decimalPlacesShownOnFocus,"]. This will likely confuse your users.\nTo solve that, you'd need to either set `decimalPlacesRawValue` to `null`, or set a number of decimal places for the raw value equal of bigger than `decimalPlacesShownOnFocus`."),e.showWarnings),e.decimalPlacesRawValue<e.decimalPlacesShownOnBlur&&R["default"].warning("The number of decimal places to store in the raw value [".concat(e.decimalPlacesRawValue,"] is lower than the ones shown when unfocused [").concat(e.decimalPlacesShownOnBlur,"]. This will likely confuse your users.\nTo solve that, you'd need to either set `decimalPlacesRawValue` to `null`, or set a number of decimal places for the raw value equal of bigger than `decimalPlacesShownOnBlur`."),e.showWarnings))}},{key:"areSettingsValid",value:function(e){var t=!0;try{this.validate(e,!0)}catch(n){t=!1}return t}},{key:"getDefaultConfig",value:function(){return j.defaultSettings}},{key:"getPredefinedOptions",value:function(){return j.predefinedOptions}},{key:"_generateOptionsObjectFromOptionsArray",value:function(e){var t,n=this;return R["default"].isUndefinedOrNullOrEmpty(e)||0===e.length?t=null:(t={},1===e.length&&Array.isArray(e[0])?e[0].forEach(function(e){m(t,n._getOptionObject(e))}):1<=e.length&&e.forEach(function(e){m(t,n._getOptionObject(e))})),t}},{key:"format",value:function(e){if(R["default"].isUndefined(e)||null===e)return null;var t;t=R["default"].isElement(e)?R["default"].getElementValue(e):e,R["default"].isString(t)||R["default"].isNumber(t)||R["default"].throwError('The value "'.concat(t,'" being "set" is not numeric and therefore cannot be used appropriately.'));for(var n=arguments.length,i=new Array(1<n?n-1:0),r=1;r<n;r++)i[r-1]=arguments[r];var o=this._generateOptionsObjectFromOptionsArray(i),s=m({},this.getDefaultConfig(),o);s.isNegativeSignAllowed=t<0,s.isPositiveSignAllowed=0<=t,this._setBrackets(s);var a={};this._cachesUsualRegularExpressions(s,a);var l=this._toNumericValue(t,s);return isNaN(Number(l))&&R["default"].throwError("The value [".concat(l,"] that you are trying to format is not a recognized number.")),this._isWithinRangeWithOverrideOption(l,s)||(R["default"].triggerEvent(j.events.formatted,document,{oldValue:null,newValue:null,oldRawValue:null,newRawValue:null,isPristine:null,error:"Range test failed",aNElement:null},!0,!0),R["default"].throwError("The value [".concat(l,"] being set falls outside of the minimumValue [").concat(s.minimumValue,"] and maximumValue [").concat(s.maximumValue,"] range set for this element"))),s.valuesToStrings&&this._checkValuesToStringsSettings(t,s)?s.valuesToStrings[t]:(this._correctNegativePositiveSignPlacementOption(s),this._calculateDecimalPlacesOnInit(s),R["default"].isUndefinedOrNullOrEmpty(s.rawValueDivisor)||0===s.rawValueDivisor||""===l||null===l||(l*=s.rawValueDivisor),l=this._roundFormattedValueShownOnFocus(l,s),l=this._modifyNegativeSignAndDecimalCharacterForFormattedValue(l,s),l=this._addGroupSeparators(l,s,!1,l))}},{key:"formatAndSet",value:function(e,t){var n=1<arguments.length&&t!==undefined?t:null,i=this.format(e,n);return R["default"].setElementValue(e,i),i}},{key:"unformat",value:function(e){if(R["default"].isNumberStrict(e))return e;var t;if(""===(t=R["default"].isElement(e)?R["default"].getElementValue(e):e))return"";if(R["default"].isUndefined(t)||null===t)return null;(R["default"].isArray(t)||R["default"].isObject(t))&&R["default"].throwError("A number or a string representing a number is needed to be able to unformat it, [".concat(t,"] given."));for(var n=arguments.length,i=new Array(1<n?n-1:0),r=1;r<n;r++)i[r-1]=arguments[r];var o=this._generateOptionsObjectFromOptionsArray(i),s=m({},this.getDefaultConfig(),o);if(s.isNegativeSignAllowed=!1,s.isPositiveSignAllowed=!0,t=t.toString(),s.valuesToStrings&&this._checkStringsToValuesSettings(t,s))return R["default"].objectKeyLookup(s.valuesToStrings,t);if(R["default"].isNegative(t,s.negativeSignCharacter))s.isNegativeSignAllowed=!0,s.isPositiveSignAllowed=!1;else if(!R["default"].isNull(s.negativeBracketsTypeOnBlur)){var a=b(s.negativeBracketsTypeOnBlur.split(","),2);s.firstBracket=a[0],s.lastBracket=a[1],t.charAt(0)===s.firstBracket&&t.charAt(t.length-1)===s.lastBracket&&(s.isNegativeSignAllowed=!0,s.isPositiveSignAllowed=!1,t=this._removeBrackets(t,s,!1))}return t=this._convertToNumericString(t,s),new RegExp("[^+-0123456789.]","gi").test(t)?NaN:(this._correctNegativePositiveSignPlacementOption(s),s.decimalPlacesRawValue?s.originalDecimalPlacesRawValue=s.decimalPlacesRawValue:s.originalDecimalPlacesRawValue=s.decimalPlaces,this._calculateDecimalPlacesOnInit(s),R["default"].isUndefinedOrNullOrEmpty(s.rawValueDivisor)||0===s.rawValueDivisor||""===t||null===t||(t/=s.rawValueDivisor),t=(t=this._roundRawValue(t,s)).replace(s.decimalCharacter,"."),t=this._toLocale(t,s.outputFormat,s))}},{key:"unformatAndSet",value:function(e,t){var n=1<arguments.length&&t!==undefined?t:null,i=this.unformat(e,n);return R["default"].setElementValue(e,i),i}},{key:"localize",value:function(e,t){var n,i,r=1<arguments.length&&t!==undefined?t:null;return""===(n=R["default"].isElement(e)?R["default"].getElementValue(e):e)?"":(R["default"].isNull(r)&&(r=j.defaultSettings),n=this.unformat(n,r),0===Number(n)&&r.leadingZero!==j.options.leadingZero.keep&&(n="0"),i=R["default"].isNull(r)?r.outputFormat:j.defaultSettings.outputFormat,this._toLocale(n,i,r))}},{key:"localizeAndSet",value:function(e,t){var n=1<arguments.length&&t!==undefined?t:null,i=this.localize(e,n);return R["default"].setElementValue(e,i),i}},{key:"isManagedByAutoNumeric",value:function(e){return this._isInGlobalList(R["default"].domElement(e))}},{key:"getAutoNumericElement",value:function(e){var t=R["default"].domElement(e);return this.isManagedByAutoNumeric(t)?this._getFromGlobalList(t):null}},{key:"set",value:function(e,t,n,i){var r,o=2<arguments.length&&n!==undefined?n:null,s=!(3<arguments.length&&i!==undefined)||i,a=R["default"].domElement(e);return this.isManagedByAutoNumeric(a)?this.getAutoNumericElement(a).set(t,o,s):(r=!(!R["default"].isNull(o)&&Object.prototype.hasOwnProperty.call(o,"showWarnings"))||o.showWarnings,R["default"].warning("Impossible to find an AutoNumeric object for the given DOM element or selector.",r),null)}},{key:"getNumericString",value:function(e,t){var n=1<arguments.length&&t!==undefined?t:null;return this._get(e,"getNumericString",n)}},{key:"getFormatted",value:function(e,t){var n=1<arguments.length&&t!==undefined?t:null;return this._get(e,"getFormatted",n)}},{key:"getNumber",value:function(e,t){var n=1<arguments.length&&t!==undefined?t:null;return this._get(e,"getNumber",n)}},{key:"_get",value:function(e,t,n){var i=2<arguments.length&&n!==undefined?n:null,r=R["default"].domElement(e);return this.isManagedByAutoNumeric(r)||R["default"].throwError("Impossible to find an AutoNumeric object for the given DOM element or selector."),this.getAutoNumericElement(r)[t](i)}},{key:"getLocalized",value:function(e,t,n){var i=1<arguments.length&&t!==undefined?t:null,r=2<arguments.length&&n!==undefined?n:null,o=R["default"].domElement(e);return this.isManagedByAutoNumeric(o)||R["default"].throwError("Impossible to find an AutoNumeric object for the given DOM element or selector."),this.getAutoNumericElement(o).getLocalized(i,r)}},{key:"_stripAllNonNumberCharacters",value:function(e,t,n,i){return this._stripAllNonNumberCharactersExceptCustomDecimalChar(e,t,n,i).replace(t.decimalCharacter,".")}},{key:"_stripAllNonNumberCharactersExceptCustomDecimalChar",value:function(e,t,n,i){var r=(e=(e=this._normalizeCurrencySuffixAndNegativeSignCharacters(e,t)).replace(t.allowedAutoStrip,"")).match(t.numRegAutoStrip);if(e=r?[r[1],r[2],r[3]].join(""):"",t.leadingZero===j.options.leadingZero.allow||t.leadingZero===j.options.leadingZero.keep){var o="",s=b(e.split(t.decimalCharacter),2),a=s[0],l=s[1],u=a;R["default"].contains(u,t.negativeSignCharacter)&&(o=t.negativeSignCharacter,u=u.replace(t.negativeSignCharacter,"")),""===o&&u.length>t.mIntPos&&"0"===u.charAt(0)&&(u=u.slice(1)),""!==o&&u.length>t.mIntNeg&&"0"===u.charAt(0)&&(u=u.slice(1)),e="".concat(o).concat(u).concat(R["default"].isUndefined(l)?"":t.decimalCharacter+l)}return(n&&t.leadingZero===j.options.leadingZero.deny||!i&&t.leadingZero===j.options.leadingZero.allow)&&(e=e.replace(t.stripReg,"$1$2")),e}},{key:"_toggleNegativeBracket",value:function(e,t,n){return n?this._removeBrackets(e,t):this._addBrackets(e,t)}},{key:"_addBrackets",value:function(e,t){return R["default"].isNull(t.negativeBracketsTypeOnBlur)?e:"".concat(t.firstBracket).concat(e.replace(t.negativeSignCharacter,"")).concat(t.lastBracket)}},{key:"_removeBrackets",value:function(e,t,n){var i,r=!(2<arguments.length&&n!==undefined)||n;return R["default"].isNull(t.negativeBracketsTypeOnBlur)||e.charAt(0)!==t.firstBracket?i=e:(i=(i=e.replace(t.firstBracket,"")).replace(t.lastBracket,""),r?(i=i.replace(t.currencySymbol,""),i=this._mergeCurrencySignNegativePositiveSignAndValue(i,t,!0,!1)):i="".concat(t.negativeSignCharacter).concat(i)),i}},{key:"_setBrackets",value:function(e){if(R["default"].isNull(e.negativeBracketsTypeOnBlur))e.firstBracket="",e.lastBracket="";else{var t=b(e.negativeBracketsTypeOnBlur.split(","),2),n=t[0],i=t[1];e.firstBracket=n,e.lastBracket=i}}},{key:"_convertToNumericString",value:function(e,t){e=this._removeBrackets(e,t,!1),e=(e=this._normalizeCurrencySuffixAndNegativeSignCharacters(e,t)).replace(new RegExp("[".concat(t.digitGroupSeparator,"]"),"g"),""),"."!==t.decimalCharacter&&(e=e.replace(t.decimalCharacter,".")),R["default"].isNegative(e)&&e.lastIndexOf("-")===e.length-1&&(e=e.replace("-",""),e="-".concat(e)),t.showPositiveSign&&(e=e.replace(t.positiveSignCharacter,""));var n=t.leadingZero!==j.options.leadingZero.keep,i=R["default"].arabicToLatinNumbers(e,n,!1,!1);return isNaN(i)||(e=i.toString()),e}},{key:"_normalizeCurrencySuffixAndNegativeSignCharacters",value:function(e,t){return e=String(e),t.currencySymbol!==j.options.currencySymbol.none&&(e=e.replace(t.currencySymbol,"")),t.suffixText!==j.options.suffixText.none&&(e=e.replace(t.suffixText,"")),t.negativeSignCharacter!==j.options.negativeSignCharacter.hyphen&&(e=e.replace(t.negativeSignCharacter,"-")),e}},{key:"_toLocale",value:function(e,t,n){if(R["default"].isNull(t)||t===j.options.outputFormat.string)return e;var i;switch(t){case j.options.outputFormat.number:i=Number(e);break;case j.options.outputFormat.dotNegative:i=R["default"].isNegative(e)?e.replace("-","")+"-":e;break;case j.options.outputFormat.comma:case j.options.outputFormat.negativeComma:i=e.replace(".",",");break;case j.options.outputFormat.commaNegative:i=e.replace(".",","),i=R["default"].isNegative(i)?i.replace("-","")+"-":i;break;case j.options.outputFormat.dot:case j.options.outputFormat.negativeDot:i=e;break;default:R["default"].throwError("The given outputFormat [".concat(t,"] option is not recognized."))}return t!==j.options.outputFormat.number&&"-"!==n.negativeSignCharacter&&(i=i.replace("-",n.negativeSignCharacter)),i}},{key:"_modifyNegativeSignAndDecimalCharacterForFormattedValue",value:function(e,t){return"-"!==t.negativeSignCharacter&&(e=e.replace("-",t.negativeSignCharacter)),"."!==t.decimalCharacter&&(e=e.replace(".",t.decimalCharacter)),e}},{key:"_isElementValueEmptyOrOnlyTheNegativeSign",value:function(e,t){return""===e||e===t.negativeSignCharacter}},{key:"_orderValueCurrencySymbolAndSuffixText",value:function(e,t,n){var i;if(t.emptyInputBehavior===j.options.emptyInputBehavior.always||n)switch(t.negativePositiveSignPlacement){case j.options.negativePositiveSignPlacement.left:case j.options.negativePositiveSignPlacement.prefix:case j.options.negativePositiveSignPlacement.none:i=e+t.currencySymbol+t.suffixText;break;default:i=t.currencySymbol+e+t.suffixText}else i=e;return i}},{key:"_addGroupSeparators",value:function(e,t,n,i,r){var o,s=4<arguments.length&&r!==undefined?r:null;if(o=R["default"].isNull(s)?R["default"].isNegative(e,t.negativeSignCharacter)||R["default"].isNegativeWithBrackets(e,t.firstBracket,t.lastBracket):s<0,e=this._stripAllNonNumberCharactersExceptCustomDecimalChar(e,t,!1,n),this._isElementValueEmptyOrOnlyTheNegativeSign(e,t))return this._orderValueCurrencySymbolAndSuffixText(e,t,!0);var a,l=R["default"].isZeroOrHasNoValue(e);switch(o&&(e=e.replace("-","")),t.digitalGroupSpacing=t.digitalGroupSpacing.toString(),t.digitalGroupSpacing){case j.options.digitalGroupSpacing.two:a=/(\d)((\d)(\d{2}?)+)$/;break;case j.options.digitalGroupSpacing.twoScaled:a=/(\d)((?:\d{2}){0,2}\d{3}(?:(?:\d{2}){2}\d{3})*?)$/;break;case j.options.digitalGroupSpacing.four:a=/(\d)((\d{4}?)+)$/;break;case j.options.digitalGroupSpacing.three:default:a=/(\d)((\d{3}?)+)$/}var u,c=b(e.split(t.decimalCharacter),2),d=c[0],h=c[1];if(t.decimalCharacterAlternative&&R["default"].isUndefined(h)){var f=b(e.split(t.decimalCharacterAlternative),2);d=f[0],h=f[1]}if(""!==t.digitGroupSeparator)for(;a.test(d);)d=d.replace(a,"$1".concat(t.digitGroupSeparator,"$2"));return 0===(u=n?t.decimalPlacesShownOnFocus:t.decimalPlacesShownOnBlur)||R["default"].isUndefined(h)?e=d:(h.length>u&&(h=h.substring(0,u)),e="".concat(d).concat(t.decimalCharacter).concat(h)),e=j._mergeCurrencySignNegativePositiveSignAndValue(e,t,o,l),R["default"].isNull(s)&&(s=i),null!==t.negativeBracketsTypeOnBlur&&(s<0||R["default"].isNegativeStrict(e,t.negativeSignCharacter))&&(e=this._toggleNegativeBracket(e,t,n)),t.suffixText?"".concat(e).concat(t.suffixText):e}},{key:"_mergeCurrencySignNegativePositiveSignAndValue",value:function(e,t,n,i){var r,o="";if(n?o=t.negativeSignCharacter:t.showPositiveSign&&!i&&(o=t.positiveSignCharacter),t.currencySymbolPlacement===j.options.currencySymbolPlacement.prefix)if(t.negativePositiveSignPlacement!==j.options.negativePositiveSignPlacement.none&&(n||!n&&t.showPositiveSign&&!i))switch(t.negativePositiveSignPlacement){case j.options.negativePositiveSignPlacement.prefix:case j.options.negativePositiveSignPlacement.left:r="".concat(o).concat(t.currencySymbol).concat(e);break;case j.options.negativePositiveSignPlacement.right:r="".concat(t.currencySymbol).concat(o).concat(e);break;case j.options.negativePositiveSignPlacement.suffix:r="".concat(t.currencySymbol).concat(e).concat(o)}else r=t.currencySymbol+e;else if(t.currencySymbolPlacement===j.options.currencySymbolPlacement.suffix)if(t.negativePositiveSignPlacement!==j.options.negativePositiveSignPlacement.none&&(n||!n&&t.showPositiveSign&&!i))switch(t.negativePositiveSignPlacement){case j.options.negativePositiveSignPlacement.suffix:case j.options.negativePositiveSignPlacement.right:r="".concat(e).concat(t.currencySymbol).concat(o);break;case j.options.negativePositiveSignPlacement.left:r="".concat(e).concat(o).concat(t.currencySymbol);break;case j.options.negativePositiveSignPlacement.prefix:r="".concat(o).concat(e).concat(t.currencySymbol)}else r=e+t.currencySymbol;return r}},{key:"_truncateZeros",value:function(e,t){var n;switch(t){case 0:n=/(\.(?:\d*[1-9])?)0*$/;break;case 1:n=/(\.\d(?:\d*[1-9])?)0*$/;break;default:n=new RegExp("(\\.\\d{".concat(t,"}(?:\\d*[1-9])?)0*"))}return e=e.replace(n,"$1"),0===t&&(e=e.replace(/\.$/,"")),e}},{key:"_roundRawValue",value:function(e,t){return this._roundValue(e,t,t.decimalPlacesRawValue)}},{key:"_roundFormattedValueShownOnFocus",value:function(e,t){return this._roundValue(e,t,Number(t.decimalPlacesShownOnFocus))}},{key:"_roundFormattedValueShownOnBlur",value:function(e,t){return this._roundValue(e,t,Number(t.decimalPlacesShownOnBlur))}},{key:"_roundFormattedValueShownOnFocusOrBlur",value:function(e,t,n){return n?this._roundFormattedValueShownOnFocus(e,t):this._roundFormattedValueShownOnBlur(e,t)}},{key:"_roundValue",value:function(e,t,n){if(R["default"].isNull(e))return e;if(e=""===e?"0":e.toString(),t.roundingMethod===j.options.roundingMethod.toNearest05||t.roundingMethod===j.options.roundingMethod.toNearest05Alt||t.roundingMethod===j.options.roundingMethod.upToNext05||t.roundingMethod===j.options.roundingMethod.downToNext05)return this._roundCloseTo05(e,t);var i,r=b(j._prepareValueForRounding(e,t),2),o=r[0],s=(e=r[1]).lastIndexOf("."),a=-1===s,l=b(e.split("."),2),u=l[0];if(!(0<l[1])&&(t.allowDecimalPadding===j.options.allowDecimalPadding.never||t.allowDecimalPadding===j.options.allowDecimalPadding.floats))return 0===Number(e)?u:"".concat(o).concat(u);i=t.allowDecimalPadding===j.options.allowDecimalPadding.always||t.allowDecimalPadding===j.options.allowDecimalPadding.floats?n:0;var c,d=a?e.length-1:s,h=e.length-1-d,f="";if(h<=n){if(f=e,h<i){a&&(f="".concat(f).concat(t.decimalCharacter));for(var p="000000";h<i;)f+=p=p.substring(0,i-h),h+=p.length}else i<h?f=this._truncateZeros(f,i):0===h&&0===i&&(f=f.replace(/\.$/,""));return 0===Number(f)?f:"".concat(o).concat(f)}c=a?n-1:Number(n)+Number(s);var m,g=Number(e.charAt(c+1)),v=e.substring(0,c+1).split("");if(m="."===e.charAt(c)?e.charAt(c-1)%2:e.charAt(c)%2,this._shouldRoundUp(g,t,o,m))for(var y=v.length-1;0<=y;y-=1)if("."!==v[y]){if(v[y]=+v[y]+1,v[y]<10)break;0<y&&(v[y]="0")}return v=v.slice(0,c+1),f=this._truncateZeros(v.join(""),i),0===Number(f)?f:"".concat(o).concat(f)}},{key:"_roundCloseTo05",value:function(e,t){switch(t.roundingMethod){case j.options.roundingMethod.toNearest05:case j.options.roundingMethod.toNearest05Alt:e=(Math.round(20*e)/20).toString();break;case j.options.roundingMethod.upToNext05:e=(Math.ceil(20*e)/20).toString();break;default:e=(Math.floor(20*e)/20).toString()}return R["default"].contains(e,".")?e.length-e.indexOf(".")<3?e+"0":e:e+".00"}},{key:"_prepareValueForRounding",value:function(e,t){var n="";return R["default"].isNegativeStrict(e,"-")&&(n="-",e=e.replace("-","")),e.match(/^\d/)||(e="0".concat(e)),0===Number(e)&&(n=""),(0<Number(e)&&t.leadingZero!==j.options.leadingZero.keep||0<e.length&&t.leadingZero===j.options.leadingZero.allow)&&(e=e.replace(/^0*(\d)/,"$1")),[n,e]}},{key:"_shouldRoundUp",value:function(e,t,n,i){return 4<e&&t.roundingMethod===j.options.roundingMethod.halfUpSymmetric||4<e&&t.roundingMethod===j.options.roundingMethod.halfUpAsymmetric&&""===n||5<e&&t.roundingMethod===j.options.roundingMethod.halfUpAsymmetric&&"-"===n||5<e&&t.roundingMethod===j.options.roundingMethod.halfDownSymmetric||5<e&&t.roundingMethod===j.options.roundingMethod.halfDownAsymmetric&&""===n||4<e&&t.roundingMethod===j.options.roundingMethod.halfDownAsymmetric&&"-"===n||5<e&&t.roundingMethod===j.options.roundingMethod.halfEvenBankersRounding||5===e&&t.roundingMethod===j.options.roundingMethod.halfEvenBankersRounding&&1===i||0<e&&t.roundingMethod===j.options.roundingMethod.toCeilingTowardPositiveInfinity&&""===n||0<e&&t.roundingMethod===j.options.roundingMethod.toFloorTowardNegativeInfinity&&"-"===n||0<e&&t.roundingMethod===j.options.roundingMethod.upRoundAwayFromZero}},{key:"_truncateDecimalPlaces",value:function(e,t,n,i){n&&(e=this._roundFormattedValueShownOnFocus(e,t));var r=b(e.split(t.decimalCharacter),2),o=r[0],s=r[1];if(s&&s.length>i)if(0<i){var a=s.substring(0,i);e="".concat(o).concat(t.decimalCharacter).concat(a)}else e=o;return e}},{key:"_checkIfInRangeWithOverrideOption",value:function(e,t){if(R["default"].isNull(e)&&t.emptyInputBehavior===j.options.emptyInputBehavior["null"]||t.overrideMinMaxLimits===j.options.overrideMinMaxLimits.ignore||t.overrideMinMaxLimits===j.options.overrideMinMaxLimits.invalid)return[!0,!0];e=(e=e.toString()).replace(",",".");var n,i=R["default"].parseStr(t.minimumValue),r=R["default"].parseStr(t.maximumValue),o=R["default"].parseStr(e);switch(t.overrideMinMaxLimits){case j.options.overrideMinMaxLimits.floor:n=[-1<R["default"].testMinMax(i,o),!0];break;case j.options.overrideMinMaxLimits.ceiling:n=[!0,R["default"].testMinMax(r,o)<1];break;default:n=[-1<R["default"].testMinMax(i,o),R["default"].testMinMax(r,o)<1]}return n}},{key:"_isWithinRangeWithOverrideOption",value:function(e,t){var n=b(this._checkIfInRangeWithOverrideOption(e,t),2),i=n[0],r=n[1];return i&&r}},{key:"_cleanValueForRangeParse",value:function(e){return e=e.toString().replace(",","."),R["default"].parseStr(e)}},{key:"_isMinimumRangeRespected",value:function(e,t){
return-1<R["default"].testMinMax(R["default"].parseStr(t.minimumValue),this._cleanValueForRangeParse(e))}},{key:"_isMaximumRangeRespected",value:function(e,t){return R["default"].testMinMax(R["default"].parseStr(t.maximumValue),this._cleanValueForRangeParse(e))<1}},{key:"_readCookie",value:function(e){for(var t=e+"=",n=document.cookie.split(";"),i="",r=0;r<n.length;r+=1){for(i=n[r];" "===i.charAt(0);)i=i.substring(1,i.length);if(0===i.indexOf(t))return i.substring(t.length,i.length)}return null}},{key:"_storageTest",value:function(){var e="modernizr";try{return sessionStorage.setItem(e,e),sessionStorage.removeItem(e),!0}catch(t){return!1}}},{key:"_correctNegativePositiveSignPlacementOption",value:function(e){if(R["default"].isNull(e.negativePositiveSignPlacement))if(R["default"].isUndefined(e)||!R["default"].isUndefinedOrNullOrEmpty(e.negativePositiveSignPlacement)||R["default"].isUndefinedOrNullOrEmpty(e.currencySymbol))e.negativePositiveSignPlacement=j.options.negativePositiveSignPlacement.left;else switch(e.currencySymbolPlacement){case j.options.currencySymbolPlacement.suffix:e.negativePositiveSignPlacement=j.options.negativePositiveSignPlacement.prefix;break;case j.options.currencySymbolPlacement.prefix:e.negativePositiveSignPlacement=j.options.negativePositiveSignPlacement.left}}},{key:"_correctCaretPositionOnFocusAndSelectOnFocusOptions",value:function(e){return R["default"].isNull(e)?null:(!R["default"].isUndefinedOrNullOrEmpty(e.caretPositionOnFocus)&&R["default"].isUndefinedOrNullOrEmpty(e.selectOnFocus)&&(e.selectOnFocus=j.options.selectOnFocus.doNotSelect),R["default"].isUndefinedOrNullOrEmpty(e.caretPositionOnFocus)&&!R["default"].isUndefinedOrNullOrEmpty(e.selectOnFocus)&&e.selectOnFocus===j.options.selectOnFocus.select&&(e.caretPositionOnFocus=j.options.caretPositionOnFocus.doNoForceCaretPosition),e)}},{key:"_calculateDecimalPlacesOnInit",value:function(e){this._validateDecimalPlacesRawValue(e),e.decimalPlacesShownOnFocus===j.options.decimalPlacesShownOnFocus.useDefault&&(e.decimalPlacesShownOnFocus=e.decimalPlaces),e.decimalPlacesShownOnBlur===j.options.decimalPlacesShownOnBlur.useDefault&&(e.decimalPlacesShownOnBlur=e.decimalPlaces),e.decimalPlacesRawValue===j.options.decimalPlacesRawValue.useDefault&&(e.decimalPlacesRawValue=e.decimalPlaces);var t=0;e.rawValueDivisor&&e.rawValueDivisor!==j.options.rawValueDivisor.none&&(t=String(e.rawValueDivisor).length-1)<0&&(t=0),e.decimalPlacesRawValue=Math.max(Math.max(e.decimalPlacesShownOnBlur,e.decimalPlacesShownOnFocus)+t,Number(e.originalDecimalPlacesRawValue)+t)}},{key:"_calculateDecimalPlacesOnUpdate",value:function(e,t){var n=1<arguments.length&&t!==undefined?t:null;this._validateDecimalPlacesRawValue(e),R["default"].isNull(n)&&R["default"].throwError("When updating the settings, the previous ones should be passed as an argument.");var i="decimalPlaces"in e;if(i||"decimalPlacesRawValue"in e||"decimalPlacesShownOnFocus"in e||"decimalPlacesShownOnBlur"in e||"rawValueDivisor"in e){i?("decimalPlacesShownOnFocus"in e&&e.decimalPlacesShownOnFocus!==j.options.decimalPlacesShownOnFocus.useDefault||(e.decimalPlacesShownOnFocus=e.decimalPlaces),"decimalPlacesShownOnBlur"in e&&e.decimalPlacesShownOnBlur!==j.options.decimalPlacesShownOnBlur.useDefault||(e.decimalPlacesShownOnBlur=e.decimalPlaces),"decimalPlacesRawValue"in e&&e.decimalPlacesRawValue!==j.options.decimalPlacesRawValue.useDefault||(e.decimalPlacesRawValue=e.decimalPlaces)):(R["default"].isUndefined(e.decimalPlacesShownOnFocus)&&(e.decimalPlacesShownOnFocus=n.decimalPlacesShownOnFocus),R["default"].isUndefined(e.decimalPlacesShownOnBlur)&&(e.decimalPlacesShownOnBlur=n.decimalPlacesShownOnBlur));var r=0;e.rawValueDivisor&&e.rawValueDivisor!==j.options.rawValueDivisor.none&&(r=String(e.rawValueDivisor).length-1)<0&&(r=0),e.decimalPlaces||e.decimalPlacesRawValue?e.decimalPlacesRawValue=Math.max(Math.max(e.decimalPlacesShownOnBlur,e.decimalPlacesShownOnFocus)+r,Number(e.decimalPlacesRawValue)+r):e.decimalPlacesRawValue=Math.max(Math.max(e.decimalPlacesShownOnBlur,e.decimalPlacesShownOnFocus)+r,Number(n.originalDecimalPlacesRawValue)+r)}}},{key:"_cachesUsualRegularExpressions",value:function(e,t){var n;n=e.negativeSignCharacter!==j.options.negativeSignCharacter.hyphen?"([-\\".concat(e.negativeSignCharacter,"]?)"):"(-?)",t.aNegRegAutoStrip=n,e.allowedAutoStrip=new RegExp("[^-0123456789\\".concat(e.decimalCharacter,"]"),"g"),e.numRegAutoStrip=new RegExp("".concat(n,"(?:\\").concat(e.decimalCharacter,"?([0-9]+\\").concat(e.decimalCharacter,"[0-9]+)|([0-9]*(?:\\").concat(e.decimalCharacter,"[0-9]*)?))")),e.stripReg=new RegExp("^".concat(t.aNegRegAutoStrip,"0*([0-9])")),e.formulaChars=new RegExp("[0-9".concat(e.decimalCharacter,"+\\-*/() ]"))}},{key:"_convertOldOptionsToNewOnes",value:function(e){var t={aSep:"digitGroupSeparator",nSep:"showOnlyNumbersOnFocus",dGroup:"digitalGroupSpacing",aDec:"decimalCharacter",altDec:"decimalCharacterAlternative",aSign:"currencySymbol",pSign:"currencySymbolPlacement",pNeg:"negativePositiveSignPlacement",aSuffix:"suffixText",oLimits:"overrideMinMaxLimits",vMax:"maximumValue",vMin:"minimumValue",mDec:"decimalPlacesOverride",eDec:"decimalPlacesShownOnFocus",scaleDecimal:"decimalPlacesShownOnBlur",aStor:"saveValueToSessionStorage",mRound:"roundingMethod",aPad:"allowDecimalPadding",nBracket:"negativeBracketsTypeOnBlur",wEmpty:"emptyInputBehavior",lZero:"leadingZero",aForm:"formatOnPageLoad",sNumber:"selectNumberOnly",anDefault:"defaultValueOverride",unSetOnSubmit:"unformatOnSubmit",outputType:"outputFormat",debug:"showWarnings",allowDecimalPadding:!0,alwaysAllowDecimalCharacter:!0,caretPositionOnFocus:!0,createLocalList:!0,currencySymbol:!0,currencySymbolPlacement:!0,decimalCharacter:!0,decimalCharacterAlternative:!0,decimalPlaces:!0,decimalPlacesRawValue:!0,decimalPlacesShownOnBlur:!0,decimalPlacesShownOnFocus:!0,defaultValueOverride:!0,digitalGroupSpacing:!0,digitGroupSeparator:!0,divisorWhenUnfocused:!0,emptyInputBehavior:!0,eventBubbles:!0,eventIsCancelable:!0,failOnUnknownOption:!0,formatOnPageLoad:!0,formulaMode:!0,historySize:!0,isCancellable:!0,leadingZero:!0,maximumValue:!0,minimumValue:!0,modifyValueOnWheel:!0,negativeBracketsTypeOnBlur:!0,negativePositiveSignPlacement:!0,negativeSignCharacter:!0,noEventListeners:!0,onInvalidPaste:!0,outputFormat:!0,overrideMinMaxLimits:!0,positiveSignCharacter:!0,rawValueDivisor:!0,readOnly:!0,roundingMethod:!0,saveValueToSessionStorage:!0,selectNumberOnly:!0,selectOnFocus:!0,serializeSpaces:!0,showOnlyNumbersOnFocus:!0,showPositiveSign:!0,showWarnings:!0,styleRules:!0,suffixText:!0,symbolWhenUnfocused:!0,unformatOnHover:!0,unformatOnSubmit:!0,valuesToStrings:!0,watchExternalChanges:!0,wheelOn:!0,wheelStep:!0,allowedAutoStrip:!0,formulaChars:!0,isNegativeSignAllowed:!0,isPositiveSignAllowed:!0,mIntNeg:!0,mIntPos:!0,numRegAutoStrip:!0,originalDecimalPlaces:!0,originalDecimalPlacesRawValue:!0,stripReg:!0};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(!0===t[n])continue;Object.prototype.hasOwnProperty.call(t,n)?(R["default"].warning("You are using the deprecated option name '".concat(n,"'. Please use '").concat(t[n],"' instead from now on. The old option name will be dropped very soon\u2122."),!0),e[t[n]]=e[n],delete e[n]):e.failOnUnknownOption&&R["default"].throwError("Option name '".concat(n,"' is unknown. Please fix the options passed to autoNumeric"))}"mDec"in e&&R["default"].warning("The old `mDec` option has been deprecated in favor of more accurate options ; `decimalPlaces`, `decimalPlacesRawValue`, `decimalPlacesShownOnFocus` and `decimalPlacesShownOnBlur`.",!0)}},{key:"_setNegativePositiveSignPermissions",value:function(e){e.isNegativeSignAllowed=e.minimumValue<0,e.isPositiveSignAllowed=0<=e.maximumValue}},{key:"_toNumericValue",value:function(e,t){var n;return R["default"].isNumber(Number(e))?n=R["default"].scientificToDecimal(e):(n=this._convertToNumericString(e.toString(),t),R["default"].isNumber(Number(n))||(R["default"].warning('The given value "'.concat(e,'" cannot be converted to a numeric one and therefore cannot be used appropriately.'),t.showWarnings),n=NaN)),n}},{key:"_checkIfInRange",value:function(e,t,n){var i=R["default"].parseStr(e);return-1<R["default"].testMinMax(t,i)&&R["default"].testMinMax(n,i)<1}},{key:"_shouldSkipEventKey",value:function(e){var t=R["default"].isInArray(e,p["default"].keyName._allFnKeys),n=e===p["default"].keyName.OSLeft||e===p["default"].keyName.OSRight,i=e===p["default"].keyName.ContextMenu,r=R["default"].isInArray(e,p["default"].keyName._someNonPrintableKeys),o=e===p["default"].keyName.NumLock||e===p["default"].keyName.ScrollLock||e===p["default"].keyName.Insert||e===p["default"].keyName.Command,s=e===p["default"].keyName.Unidentified;return t||n||i||r||s||o}},{key:"_serialize",value:function(e,t,n,i,r){var o,s=this,a=1<arguments.length&&t!==undefined&&t,l=2<arguments.length&&n!==undefined?n:"unformatted",u=3<arguments.length&&i!==undefined?i:"+",c=4<arguments.length&&r!==undefined?r:null,d=[];return"object"===y(e)&&"form"===e.nodeName.toLowerCase()&&Array.prototype.slice.call(e.elements).forEach(function(t){if(t.name&&!t.disabled&&-1===["file","reset","submit","button"].indexOf(t.type))if("select-multiple"===t.type)Array.prototype.slice.call(t.options).forEach(function(e){e.selected&&(a?d.push({name:t.name,value:e.value}):d.push("".concat(encodeURIComponent(t.name),"=").concat(encodeURIComponent(e.value))))});else if(-1===["checkbox","radio"].indexOf(t.type)||t.checked){var e,n;if(s.isManagedByAutoNumeric(t))switch(l){case"unformatted":n=s.getAutoNumericElement(t),R["default"].isNull(n)||(e=s.unformat(t,n.getSettings()));break;case"localized":if(n=s.getAutoNumericElement(t),!R["default"].isNull(n)){var i=R["default"].cloneObject(n.getSettings());R["default"].isNull(c)||(i.outputFormat=c),e=s.localize(t,i)}break;case"formatted":default:e=t.value}else e=t.value;R["default"].isUndefined(e)&&R["default"].throwError("This error should never be hit. If it has, something really wrong happened!"),a?d.push({name:t.name,value:e}):d.push("".concat(encodeURIComponent(t.name),"=").concat(encodeURIComponent(e)))}}),a?o=d:(o=d.join("&"),"+"===u&&(o=o.replace(/%20/g,"+"))),o}},{key:"_serializeNumericString",value:function(e,t){var n=1<arguments.length&&t!==undefined?t:"+";return this._serialize(e,!1,"unformatted",n)}},{key:"_serializeFormatted",value:function(e,t){var n=1<arguments.length&&t!==undefined?t:"+";return this._serialize(e,!1,"formatted",n)}},{key:"_serializeLocalized",value:function(e,t,n){var i=1<arguments.length&&t!==undefined?t:"+",r=2<arguments.length&&n!==undefined?n:null;return this._serialize(e,!1,"localized",i,r)}},{key:"_serializeNumericStringArray",value:function(e,t){var n=1<arguments.length&&t!==undefined?t:"+";return this._serialize(e,!0,"unformatted",n)}},{key:"_serializeFormattedArray",value:function(e,t){var n=1<arguments.length&&t!==undefined?t:"+";return this._serialize(e,!0,"formatted",n)}},{key:"_serializeLocalizedArray",value:function(e,t,n){var i=1<arguments.length&&t!==undefined?t:"+",r=2<arguments.length&&n!==undefined?n:null;return this._serialize(e,!0,"localized",i,r)}}]),j}();S.multiple=function(e,t,n){var i=1<arguments.length&&t!==undefined?t:null,r=2<arguments.length&&n!==undefined?n:null,o=[];if(R["default"].isObject(i)&&(r=i,i=null),R["default"].isString(e))e=v(document.querySelectorAll(e));else if(R["default"].isObject(e)){Object.prototype.hasOwnProperty.call(e,"rootElement")||R["default"].throwError("The object passed to the 'multiple' function is invalid ; no 'rootElement' attribute found.");var s=v(e.rootElement.querySelectorAll("input"));Object.prototype.hasOwnProperty.call(e,"exclude")?(Array.isArray(e.exclude)||R["default"].throwError("The 'exclude' array passed to the 'multiple' function is invalid."),e=R["default"].filterOut(s,e.exclude)):e=s}else R["default"].isArray(e)||R["default"].throwError("The given parameters to the 'multiple' function are invalid.");if(0===e.length){var a=!0;return!R["default"].isNull(r)&&R["default"].isBoolean(r.showWarnings)&&(a=r.showWarnings),R["default"].warning("No valid DOM elements were given hence no AutoNumeric objects were instantiated.",a),[]}var l=R["default"].isArray(i)&&1<=i.length,u=!1,c=!1;if(l){var d=y(Number(i[0]));(u="number"===d&&!isNaN(Number(i[0])))||("string"===d||isNaN(d)||"object"===d)&&(c=!0)}var h,f=!1;if(R["default"].isArray(r)&&1<=r.length){var p=y(r[0]);"string"!==p&&"object"!==p||(f=!0)}h=c?S.mergeOptions(i):f?S.mergeOptions(r):r;var m,g=R["default"].isNumber(i);return u&&(m=i.length),e.forEach(function(e,t){g?o.push(new S(e,i,h)):u&&t<=m?o.push(new S(e,i[t],h)):o.push(new S(e,null,h))}),o},function(){function e(e,t){t=t||{bubbles:!1,cancelable:!1,detail:void 0};var n=document.createEvent("CustomEvent");return n.initCustomEvent(e,t.bubbles,t.cancelable,t.detail),n}if(Array.from||(Array.from=function(e){return[].slice.call(e)}),"undefined"==typeof window||"function"==typeof window.CustomEvent)return;e.prototype=window.Event.prototype,window.CustomEvent=e}()},"./src/AutoNumericDefaultSettings.js":function(e,t,n){"use strict";n.r(t);var i=n("./src/AutoNumeric.js");n("./src/AutoNumericOptions.js");i["default"].defaultSettings={allowDecimalPadding:i["default"].options.allowDecimalPadding.always,alwaysAllowDecimalCharacter:i["default"].options.alwaysAllowDecimalCharacter.doNotAllow,caretPositionOnFocus:i["default"].options.caretPositionOnFocus.doNoForceCaretPosition,createLocalList:i["default"].options.createLocalList.createList,currencySymbol:i["default"].options.currencySymbol.none,currencySymbolPlacement:i["default"].options.currencySymbolPlacement.prefix,decimalCharacter:i["default"].options.decimalCharacter.dot,decimalCharacterAlternative:i["default"].options.decimalCharacterAlternative.none,decimalPlaces:i["default"].options.decimalPlaces.two,decimalPlacesRawValue:i["default"].options.decimalPlacesRawValue.useDefault,decimalPlacesShownOnBlur:i["default"].options.decimalPlacesShownOnBlur.useDefault,decimalPlacesShownOnFocus:i["default"].options.decimalPlacesShownOnFocus.useDefault,defaultValueOverride:i["default"].options.defaultValueOverride.doNotOverride,digitalGroupSpacing:i["default"].options.digitalGroupSpacing.three,digitGroupSeparator:i["default"].options.digitGroupSeparator.comma,divisorWhenUnfocused:i["default"].options.divisorWhenUnfocused.none,emptyInputBehavior:i["default"].options.emptyInputBehavior.focus,eventBubbles:i["default"].options.eventBubbles.bubbles,eventIsCancelable:i["default"].options.eventIsCancelable.isCancelable,failOnUnknownOption:i["default"].options.failOnUnknownOption.ignore,formatOnPageLoad:i["default"].options.formatOnPageLoad.format,formulaMode:i["default"].options.formulaMode.disabled,historySize:i["default"].options.historySize.medium,invalidClass:i["default"].options.invalidClass,isCancellable:i["default"].options.isCancellable.cancellable,leadingZero:i["default"].options.leadingZero.deny,maximumValue:i["default"].options.maximumValue.tenTrillions,minimumValue:i["default"].options.minimumValue.tenTrillions,modifyValueOnWheel:i["default"].options.modifyValueOnWheel.modifyValue,negativeBracketsTypeOnBlur:i["default"].options.negativeBracketsTypeOnBlur.none,negativePositiveSignPlacement:i["default"].options.negativePositiveSignPlacement.none,negativeSignCharacter:i["default"].options.negativeSignCharacter.hyphen,noEventListeners:i["default"].options.noEventListeners.addEvents,onInvalidPaste:i["default"].options.onInvalidPaste.error,outputFormat:i["default"].options.outputFormat.none,overrideMinMaxLimits:i["default"].options.overrideMinMaxLimits.doNotOverride,positiveSignCharacter:i["default"].options.positiveSignCharacter.plus,rawValueDivisor:i["default"].options.rawValueDivisor.none,readOnly:i["default"].options.readOnly.readWrite,roundingMethod:i["default"].options.roundingMethod.halfUpSymmetric,saveValueToSessionStorage:i["default"].options.saveValueToSessionStorage.doNotSave,selectNumberOnly:i["default"].options.selectNumberOnly.selectNumbersOnly,selectOnFocus:i["default"].options.selectOnFocus.select,serializeSpaces:i["default"].options.serializeSpaces.plus,showOnlyNumbersOnFocus:i["default"].options.showOnlyNumbersOnFocus.showAll,showPositiveSign:i["default"].options.showPositiveSign.hide,showWarnings:i["default"].options.showWarnings.show,styleRules:i["default"].options.styleRules.none,suffixText:i["default"].options.suffixText.none,symbolWhenUnfocused:i["default"].options.symbolWhenUnfocused.none,unformatOnHover:i["default"].options.unformatOnHover.unformat,unformatOnSubmit:i["default"].options.unformatOnSubmit.keepCurrentValue,valuesToStrings:i["default"].options.valuesToStrings.none,watchExternalChanges:i["default"].options.watchExternalChanges.doNotWatch,wheelOn:i["default"].options.wheelOn.focus,wheelStep:i["default"].options.wheelStep.progressive},Object.freeze(i["default"].defaultSettings),Object.defineProperty(i["default"],"defaultSettings",{configurable:!1,writable:!1})},"./src/AutoNumericEnum.js":function(e,t,n){"use strict";n.r(t);var i={allowedTagList:["b","caption","cite","code","const","dd","del","div","dfn","dt","em","h1","h2","h3","h4","h5","h6","input","ins","kdb","label","li","option","output","p","q","s","sample","span","strong","td","th","u"]};Object.freeze(i.allowedTagList),Object.defineProperty(i,"allowedTagList",{configurable:!1,writable:!1}),i.keyCode={Backspace:8,Tab:9,Enter:13,Shift:16,Ctrl:17,Alt:18,Pause:19,CapsLock:20,Esc:27,Space:32,PageUp:33,PageDown:34,End:35,Home:36,LeftArrow:37,UpArrow:38,RightArrow:39,DownArrow:40,Insert:45,Delete:46,num0:48,num1:49,num2:50,num3:51,num4:52,num5:53,num6:54,num7:55,num8:56,num9:57,a:65,b:66,c:67,d:68,e:69,f:70,g:71,h:72,i:73,j:74,k:75,l:76,m:77,n:78,o:79,p:80,q:81,r:82,s:83,t:84,u:85,v:86,w:87,x:88,y:89,z:90,OSLeft:91,OSRight:92,ContextMenu:93,numpad0:96,numpad1:97,numpad2:98,numpad3:99,numpad4:100,numpad5:101,numpad6:102,numpad7:103,numpad8:104,numpad9:105,MultiplyNumpad:106,PlusNumpad:107,MinusNumpad:109,DotNumpad:110,SlashNumpad:111,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,NumLock:144,ScrollLock:145,HyphenFirefox:173,MyComputer:182,MyCalculator:183,Semicolon:186,Equal:187,Comma:188,Hyphen:189,Dot:190,Slash:191,Backquote:192,LeftBracket:219,Backslash:220,RightBracket:221,Quote:222,Command:224,AltGraph:225,AndroidDefault:229},Object.freeze(i.keyCode),Object.defineProperty(i,"keyCode",{configurable:!1,writable:!1}),i.fromCharCodeKeyCode={0:"LaunchCalculator",8:"Backspace",9:"Tab",13:"Enter",16:"Shift",17:"Ctrl",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",48:"0",49:"1",50:"2",51:"3",52:"4",53:"5",54:"6",55:"7",56:"8",57:"9",91:"OS",92:"OSRight",93:"ContextMenu",96:"0",97:"1",98:"2",99:"3",100:"4",101:"5",102:"6",103:"7",104:"8",105:"9",106:"*",107:"+",109:"-",110:".",111:"/",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",173:"-",182:"MyComputer",183:"MyCalculator",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'",224:"Meta",225:"AltGraph"},Object.freeze(i.fromCharCodeKeyCode),Object.defineProperty(i,"fromCharCodeKeyCode",{configurable:!1,writable:!1}),i.keyName={Unidentified:"Unidentified",AndroidDefault:"AndroidDefault",Alt:"Alt",AltGr:"AltGraph",CapsLock:"CapsLock",Ctrl:"Control",Fn:"Fn",FnLock:"FnLock",Hyper:"Hyper",Meta:"Meta",OSLeft:"OS",OSRight:"OS",Command:"OS",NumLock:"NumLock",ScrollLock:"ScrollLock",Shift:"Shift",Super:"Super",Symbol:"Symbol",SymbolLock:"SymbolLock",Enter:"Enter",Tab:"Tab",Space:" ",LeftArrow:"ArrowLeft",UpArrow:"ArrowUp",RightArrow:"ArrowRight",DownArrow:"ArrowDown",End:"End",Home:"Home",PageUp:"PageUp",PageDown:"PageDown",Backspace:"Backspace",Clear:"Clear",Copy:"Copy",CrSel:"CrSel",Cut:"Cut",Delete:"Delete",EraseEof:"EraseEof",ExSel:"ExSel",Insert:"Insert",Paste:"Paste",Redo:"Redo",Undo:"Undo",Accept:"Accept",Again:"Again",Attn:"Attn",Cancel:"Cancel",ContextMenu:"ContextMenu",Esc:"Escape",Execute:"Execute",Find:"Find",Finish:"Finish",Help:"Help",Pause:"Pause",Play:"Play",Props:"Props",Select:"Select",ZoomIn:"ZoomIn",ZoomOut:"ZoomOut",BrightnessDown:"BrightnessDown",BrightnessUp:"BrightnessUp",Eject:"Eject",LogOff:"LogOff",Power:"Power",PowerOff:"PowerOff",PrintScreen:"PrintScreen",Hibernate:"Hibernate",Standby:"Standby",WakeUp:"WakeUp",Compose:"Compose",Dead:"Dead",F1:"F1",F2:"F2",F3:"F3",F4:"F4",F5:"F5",F6:"F6",F7:"F7",F8:"F8",F9:"F9",F10:"F10",F11:"F11",F12:"F12",Print:"Print",num0:"0",num1:"1",num2:"2",num3:"3",num4:"4",num5:"5",num6:"6",num7:"7",num8:"8",num9:"9",a:"a",b:"b",c:"c",d:"d",e:"e",f:"f",g:"g",h:"h",i:"i",j:"j",k:"k",l:"l",m:"m",n:"n",o:"o",p:"p",q:"q",r:"r",s:"s",t:"t",u:"u",v:"v",w:"w",x:"x",y:"y",z:"z",A:"A",B:"B",C:"C",D:"D",E:"E",F:"F",G:"G",H:"H",I:"I",J:"J",K:"K",L:"L",M:"M",N:"N",O:"O",P:"P",Q:"Q",R:"R",S:"S",T:"T",U:"U",V:"V",W:"W",X:"X",Y:"Y",Z:"Z",Semicolon:";",Equal:"=",Comma:",",Hyphen:"-",Minus:"-",Plus:"+",Dot:".",Slash:"/",Backquote:"`",LeftParenthesis:"(",RightParenthesis:")",LeftBracket:"[",RightBracket:"]",Backslash:"\\",Quote:"'",numpad0:"0",numpad1:"1",numpad2:"2",numpad3:"3",numpad4:"4",numpad5:"5",numpad6:"6",numpad7:"7",numpad8:"8",numpad9:"9",NumpadDot:".",NumpadDotAlt:",",NumpadMultiply:"*",NumpadPlus:"+",NumpadMinus:"-",NumpadSubtract:"-",NumpadSlash:"/",NumpadDotObsoleteBrowsers:"Decimal",NumpadMultiplyObsoleteBrowsers:"Multiply",NumpadPlusObsoleteBrowsers:"Add",NumpadMinusObsoleteBrowsers:"Subtract",NumpadSlashObsoleteBrowsers:"Divide",_allFnKeys:["F1","F2","F3","F4","F5","F6","F7","F8","F9","F10","F11","F12"],_someNonPrintableKeys:["Tab","Enter","Shift","ShiftLeft","ShiftRight","Control","ControlLeft","ControlRight","Alt","AltLeft","AltRight","Pause","CapsLock","Escape"],_directionKeys:["PageUp","PageDown","End","Home","ArrowDown","ArrowLeft","ArrowRight","ArrowUp"]},Object.freeze(i.keyName._allFnKeys),Object.freeze(i.keyName._someNonPrintableKeys),Object.freeze(i.keyName._directionKeys),Object.freeze(i.keyName),Object.defineProperty(i,"keyName",{configurable:!1,writable:!1}),Object.freeze(i),t["default"]=i},"./src/AutoNumericEvents.js":function(e,t,n){"use strict";n.r(t);var i=n("./src/AutoNumeric.js");i["default"].events={correctedValue:"autoNumeric:correctedValue",initialized:"autoNumeric:initialized",invalidFormula:"autoNumeric:invalidFormula",invalidValue:"autoNumeric:invalidValue",formatted:"autoNumeric:formatted",rawValueModified:"autoNumeric:rawValueModified",minRangeExceeded:"autoNumeric:minExceeded",maxRangeExceeded:"autoNumeric:maxExceeded","native":{input:"input",change:"change"},validFormula:"autoNumeric:validFormula"},Object.freeze(i["default"].events["native"]),Object.freeze(i["default"].events),Object.defineProperty(i["default"],"events",{configurable:!1,writable:!1})},"./src/AutoNumericHelper.js":function(e,t,n){"use strict";function i(e){return s(e)||o(e)||u(e)||r()}function r(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function o(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}function s(e){if(Array.isArray(e))return c(e)}function a(){return(a=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(this,arguments)}function d(e,t){return f(e)||h(e,t)||u(e,t)||l()}function l(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function u(e,t){if(e){if("string"==typeof e)return c(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(n):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?c(e,t):void 0}}function c(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}function h(e,t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e)){var n=[],i=!0,r=!1,o=undefined;try{for(var s,a=e[Symbol.iterator]();!(i=(s=a.next()).done)&&(n.push(s.value),!t||n.length!==t);i=!0);}catch(l){r=!0,o=l}finally{try{i||null==a["return"]||a["return"]()}finally{if(r)throw o}}return n}}function f(e){if(Array.isArray(e))return e}function p(e){"@babel/helpers - typeof";return(p="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 m(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function g(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function v(e,t,n){return t&&g(e.prototype,t),n&&g(e,n),e}n.r(t),n.d(t,"default",function(){return b});var y=n("./src/AutoNumericEnum.js"),b=function(){function s(){m(this,s)}return v(s,null,[{key:"isNull",value:function(e){return null===e}},{key:"isUndefined",value:function(e){return void 0===e}},{key:"isUndefinedOrNullOrEmpty",value:function(e){return null==e||""===e}},{key:"isString",value:function(e){return"string"==typeof e||e instanceof String}},{key:"isEmptyString",value:function(e){return""===e}},{key:"isBoolean",value:function(e){return"boolean"==typeof e}},{key:"isTrueOrFalseString",value:function(e){var t=String(e).toLowerCase();return"true"===t||"false"===t}},{key:"isObject",value:function(e){return"object"===p(e)&&null!==e&&!Array.isArray(e)}},{key:"isEmptyObj",value:function(e){for(var t in e)if(Object.prototype.hasOwnProperty.call(e,t))return!1;return!0}},{key:"isNumberStrict",value:function(e){return"number"==typeof e}},{key:"isNumber",value:function(e){return!this.isArray(e)&&!isNaN(parseFloat(e))&&isFinite(e)}},{key:"isDigit",value:function(e){return/\d/.test(e)}},{key:"isNumberOrArabic",value:function(e){var t=this.arabicToLatinNumbers(e,!1,!0,!0);return this.isNumber(t)}},{key:"isInt",value:function(e){return"number"==typeof e&&parseFloat(e)===parseInt(e,10)&&!isNaN(e)}},{key:"isFunction",value:function(e){return"function"==typeof e}},{key:"isIE11",value:function(){return"undefined"!=typeof window&&!!window.MSInputMethodContext&&!!document.documentMode}},{key:"contains",value:function(e,t){return!(!this.isString(e)||!this.isString(t)||""===e||""===t)&&-1!==e.indexOf(t)}},{key:"isInArray",value:function(e,t){return!(!this.isArray(t)||t===[]||this.isUndefined(e))&&-1!==t.indexOf(e)}},{key:"isArray",value:function(e){if("[object Array]"===Object.prototype.toString.call([]))return Array.isArray(e)||"object"===p(e)&&"[object Array]"===Object.prototype.toString.call(e);throw new Error("toString message changed for Object Array")}},{key:"isElement",value:function(e){return"undefined"!=typeof Element&&e instanceof Element}},{key:"isInputElement",value:function(e){return this.isElement(e)&&"input"===e.tagName.toLowerCase()}},{key:"decimalPlaces",value:function(e){var t=d(e.split("."),2)[1];return this.isUndefined(t)?0:t.length}},{key:"indexFirstNonZeroDecimalPlace",value:function(e){var t=d(String(Math.abs(e)).split("."),2)[1];if(this.isUndefined(t))return 0;var n=t.lastIndexOf("0");return-1===n?n=0:n+=2,n}},{key:"keyCodeNumber",value:function(e){return"undefined"==typeof e.which?e.keyCode:e.which}},{key:"character",value:function(e){var t;if("Unidentified"===e.key||void 0===e.key||this.isSeleniumBot()){var n=this.keyCodeNumber(e);if(n===y["default"].keyCode.AndroidDefault)return y["default"].keyName.AndroidDefault;var i=y["default"].fromCharCodeKeyCode[n];t=s.isUndefinedOrNullOrEmpty(i)?String.fromCharCode(n):i}else{var r;switch(e.key){case"Add":t=y["default"].keyName.NumpadPlus;break;case"Apps":t=y["default"].keyName.ContextMenu;break;case"Crsel":t=y["default"].keyName.CrSel;break;case"Decimal":t=e["char"]?e["char"]:y["default"].keyName.NumpadDot;break;case"Del":t="firefox"===(r=this.browser()).name&&r.version<=36||"ie"===r.name&&r.version<=9?y["default"].keyName.Dot:y["default"].keyName.Delete;break;case"Divide":t=y["default"].keyName.NumpadSlash;break;case"Down":t=y["default"].keyName.DownArrow;break;case"Esc":t=y["default"].keyName.Esc;break;case"Exsel":t=y["default"].keyName.ExSel;break;case"Left":t=y["default"].keyName.LeftArrow;break;case"Meta":case"Super":t=y["default"].keyName.OSLeft;break;case"Multiply":t=y["default"].keyName.NumpadMultiply;break;case"Right":t=y["default"].keyName.RightArrow;break;case"Spacebar":t=y["default"].keyName.Space;break;case"Subtract":t=y["default"].keyName.NumpadMinus;break;case"Up":t=y["default"].keyName.UpArrow;break;default:t=e.key}}return t}},{key:"browser",value:function(){var e,t=navigator.userAgent,n=t.match(/(opera|chrome|safari|firefox|msie|trident(?=\/))\/?\s*(\d+)/i)||[];return/trident/i.test(n[1])?{name:"ie",version:(e=/\brv[ :]+(\d+)/g.exec(t)||[])[1]||""}:"Chrome"===n[1]&&null!==(e=t.match(/\b(OPR|Edge)\/(\d+)/))?{name:e[1].replace("OPR","opera"),version:e[2]}:(n=n[2]?[n[1],n[2]]:[navigator.appName,navigator.appVersion,"-?"],null!==(e=t.match(/version\/(\d+)/i))&&n.splice(1,1,e[1]),{name:n[0].toLowerCase(),version:n[1]})}},{key:"isSeleniumBot",value:function(){return!0===window.navigator.webdriver}},{key:"isNegative",value:function(e,t,n){var i=1<arguments.length&&t!==undefined?t:"-",r=!(2<arguments.length&&n!==undefined)||n;return e===i||""!==e&&(s.isNumber(e)?e<0:r?this.contains(e,i):this.isNegativeStrict(e,i))}},{key:"isNegativeStrict",value:function(e,t){var n=1<arguments.length&&t!==undefined?t:"-";return e.charAt(0)===n}},{key:"isNegativeWithBrackets",value:function(e,t,n){return e.charAt(0)===t&&this.contains(e,n)}},{key:"isZeroOrHasNoValue",value:function(e){return!/[1-9]/g.test(e)}},{key:"setRawNegativeSign",value:function(e){return this.isNegativeStrict(e,"-")?e:"-".concat(e)}},{key:"replaceCharAt",value:function(e,t,n){return"".concat(e.substr(0,t)).concat(n).concat(e.substr(t+n.length))}},{key:"clampToRangeLimits",value:function(e,t){return Math.max(t.minimumValue,Math.min(t.maximumValue,e))}},{key:"countNumberCharactersOnTheCaretLeftSide",value:function(e,t,n){for(var i=new RegExp("[0-9".concat(n,"-]")),r=0,o=0;o<t;o++)i.test(e[o])&&r++;return r}},{key:"findCaretPositionInFormattedNumber",value:function(e,t,n,i){var r,o=n.length,s=e.length,a=0;for(r=0;r<o&&a<s&&a<t;r++)(e[a]===n[r]||"."===e[a]&&n[r]===i)&&a++;return r}},{key:"countCharInText",value:function(e,t){for(var n=0,i=0;i<t.length;i++)t[i]===e&&n++;return n}},{key:"convertCharacterCountToIndexPosition",value:function(e){return Math.max(e,e-1)}},{key:"getElementSelection",value:function(e){var t,n={};try{t=this.isUndefined(e.selectionStart)}catch(r){t=!1}try{if(t){var i=window.getSelection().getRangeAt(0);n.start=i.startOffset,n.end=i.endOffset,n.length=n.end-n.start}else n.start=e.selectionStart,n.end=e.selectionEnd,n.length=n.end-n.start}catch(r){n.start=0,n.end=0,n.length=0}return n}},{key:"setElementSelection",value:function(e,t,n){var i=2<arguments.length&&n!==undefined?n:null;if(this.isUndefinedOrNullOrEmpty(i)&&(i=t),this.isInputElement(e))e.setSelectionRange(t,i);else if(!s.isNull(e.firstChild)){var r=document.createRange();r.setStart(e.firstChild,t),r.setEnd(e.firstChild,i);var o=window.getSelection();o.removeAllRanges(),o.addRange(r)}}},{key:"throwError",value:function(e){throw new Error(e)}},{key:"warning",value:function(e,t){(!(1<arguments.length&&t!==undefined)||t)&&console.warn("Warning: ".concat(e))}},{key:"isWheelUpEvent",value:function(e){return e.deltaY||this.throwError("The event passed as a parameter is not a valid wheel event, '".concat(e.type,"' given.")),e.deltaY<0}},{key:"isWheelDownEvent",value:function(e){return e.deltaY||this.throwError("The event passed as a parameter is not a valid wheel event, '".concat(e.type,"' given.")),0<e.deltaY}},{key:"forceDecimalPlaces",value:function(e,t){var n=d(String(e).split("."),2),i=n[0],r=n[1];return r?"".concat(i,".").concat(r.substr(0,t)):e}},{key:"roundToNearest",value:function(e,t){var n=1<arguments.length&&t!==undefined?t:1e3;return 0===e?0:(0===n&&this.throwError("The `stepPlace` used to round is equal to `0`. This value must not be equal to zero."),Math.round(e/n)*n)}},{key:"modifyAndRoundToNearestAuto",value:function(e,t,n){e=Number(this.forceDecimalPlaces(e,n));var i=Math.abs(e);if(0<=i&&i<1){var r,o=Math.pow(10,-n);if(0===e)return t?o:-o;var s,a=n,l=this.indexFirstNonZeroDecimalPlace(e);return r=a-1<=l?o:Math.pow(10,-(l+1)),s=t?e+r:e-r,this.roundToNearest(s,r)}
e=parseInt(e,10);var u,c=Math.abs(e).toString().length;switch(c){case 1:u=0;break;case 2:case 3:u=1;break;case 4:case 5:u=2;break;default:u=c-3}var d,h=Math.pow(10,u);return(d=t?e+h:e-h)<=10&&-10<=d?d:this.roundToNearest(d,h)}},{key:"addAndRoundToNearestAuto",value:function(e,t){return this.modifyAndRoundToNearestAuto(e,!0,t)}},{key:"subtractAndRoundToNearestAuto",value:function(e,t){return this.modifyAndRoundToNearestAuto(e,!1,t)}},{key:"arabicToLatinNumbers",value:function(e,t,n,i){var r=!(1<arguments.length&&t!==undefined)||t,o=2<arguments.length&&n!==undefined&&n,s=3<arguments.length&&i!==undefined&&i;if(this.isNull(e))return e;var a=e.toString();if(""===a)return e;if(null===a.match(/[\u0660\u0661\u0662\u0663\u0664\u0665\u0666\u0667\u0668\u0669\u06f4\u06f5\u06f6]/g))return r&&(a=Number(a)),a;o&&(a=a.replace(/\u066b/,".")),s&&(a=a.replace(/\u066c/g,"")),a=a.replace(/[\u0660\u0661\u0662\u0663\u0664\u0665\u0666\u0667\u0668\u0669]/g,function(e){return e.charCodeAt(0)-1632}).replace(/[\u06f0\u06f1\u06f2\u06f3\u06f4\u06f5\u06f6\u06f7\u06f8\u06f9]/g,function(e){return e.charCodeAt(0)-1776});var l=Number(a);return isNaN(l)?l:(r&&(a=l),a)}},{key:"triggerEvent",value:function(e,t,n,i,r){var o,s=1<arguments.length&&t!==undefined?t:document,a=2<arguments.length&&n!==undefined?n:null,l=!(3<arguments.length&&i!==undefined)||i,u=!(4<arguments.length&&r!==undefined)||r;window.CustomEvent?o=new CustomEvent(e,{detail:a,bubbles:l,cancelable:u}):(o=document.createEvent("CustomEvent")).initCustomEvent(e,l,u,{detail:a}),s.dispatchEvent(o)}},{key:"parseStr",value:function(e){var t,n,i,r,o={};if(0===e&&1/e<0&&(e="-0"),e=e.toString(),this.isNegativeStrict(e,"-")?(e=e.slice(1),o.s=-1):o.s=1,-1<(t=e.indexOf("."))&&(e=e.replace(".","")),t<0&&(t=e.length),(n=-1===e.search(/[1-9]/i)?e.length:e.search(/[1-9]/i))===(i=e.length))o.e=0,o.c=[0];else{for(r=i-1;"0"===e.charAt(r);r-=1)i-=1;for(i-=1,o.e=t-n-1,o.c=[],t=0;n<=i;n+=1)o.c[t]=+e.charAt(n),t+=1}return o}},{key:"testMinMax",value:function(e,t){var n=t.c,i=e.c,r=t.s,o=e.s,s=t.e,a=e.e;if(!n[0]||!i[0])return n[0]?r:i[0]?-o:0;if(r!==o)return r;var l=r<0;if(s!==a)return a<s^l?1:-1;for(r=-1,o=(s=n.length)<(a=i.length)?s:a,r+=1;r<o;r+=1)if(n[r]!==i[r])return n[r]>i[r]^l?1:-1;return s===a?0:a<s^l?1:-1}},{key:"randomString",value:function(e){var t=0<arguments.length&&e!==undefined?e:5;return Math.random().toString(36).substr(2,t)}},{key:"domElement",value:function(e){var t;return t=s.isString(e)?document.querySelector(e):e,t}},{key:"getElementValue",value:function(e){return"input"===e.tagName.toLowerCase()?e.value:this.text(e)}},{key:"setElementValue",value:function(e,t){var n=1<arguments.length&&t!==undefined?t:null;"input"===e.tagName.toLowerCase()?e.value=n:e.textContent=n}},{key:"setInvalidState",value:function(e,t){var n=1<arguments.length&&t!==undefined?t:"Invalid";(""===n||this.isNull(n))&&this.throwError("Cannot set the invalid state with an empty message."),e.setCustomValidity(n)}},{key:"setValidState",value:function(e){e.setCustomValidity("")}},{key:"cloneObject",value:function(e){return a({},e)}},{key:"camelize",value:function(e,t,n,i){var r=1<arguments.length&&t!==undefined?t:"-",o=!(2<arguments.length&&n!==undefined)||n,s=!(3<arguments.length&&i!==undefined)||i;if(this.isNull(e))return null;o&&(e=e.replace(/^data-/,""));var a=e.split(r).map(function(e){return"".concat(e.charAt(0).toUpperCase()).concat(e.slice(1))});return a=a.join(""),s&&(a="".concat(a.charAt(0).toLowerCase()).concat(a.slice(1))),a}},{key:"text",value:function(e){var t=e.nodeType;return t===Node.ELEMENT_NODE||t===Node.DOCUMENT_NODE||t===Node.DOCUMENT_FRAGMENT_NODE?e.textContent:t===Node.TEXT_NODE?e.nodeValue:""}},{key:"setText",value:function(e,t){var n=e.nodeType;n!==Node.ELEMENT_NODE&&n!==Node.DOCUMENT_NODE&&n!==Node.DOCUMENT_FRAGMENT_NODE||(e.textContent=t)}},{key:"filterOut",value:function(e,t){var n=this;return e.filter(function(e){return!n.isInArray(e,t)})}},{key:"trimPaddedZerosFromDecimalPlaces",value:function(e){if(""===(e=String(e)))return"";var t=d(e.split("."),2),n=t[0],i=t[1];if(this.isUndefinedOrNullOrEmpty(i))return n;var r=i.replace(/0+$/g,"");return""===r?n:"".concat(n,".").concat(r)}},{key:"getHoveredElement",value:function(){var e=i(document.querySelectorAll(":hover"));return e[e.length-1]}},{key:"arrayTrim",value:function(e,t){var n=e.length;return 0===n||n<t?e:t<0?[]:(e.length=parseInt(t,10),e)}},{key:"arrayUnique",value:function(){var e;return i(new Set((e=[]).concat.apply(e,arguments)))}},{key:"mergeMaps",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return new Map(t.reduce(function(e,t){return e.concat(i(t))},[]))}},{key:"objectKeyLookup",value:function(e,t){var n=Object.entries(e).find(function(e){return e[1]===t}),i=null;return void 0!==n&&(i=n[0]),i}},{key:"insertAt",value:function(e,t,n){if(n>(e=String(e)).length)throw new Error("The given index is out of the string range.");if(1!==t.length)throw new Error("The given string `char` should be only one character long.");return""===e&&0===n?t:"".concat(e.slice(0,n)).concat(t).concat(e.slice(n))}},{key:"scientificToDecimal",value:function(e){var t=Number(e);if(isNaN(t))return NaN;if(e=String(e),!(this.contains(e,"e")||this.contains(e,"E")))return e;var n=d(e.split(/e/i),2),i=n[0],r=n[1],o=i<0;o&&(i=i.replace("-",""));var s=+r<0;s&&(r=r.replace("-",""));var a,l=d(i.split(/\./),2),u=l[0],c=l[1];return s?(a=u.length>r?this.insertAt(u,".",u.length-r):"0.".concat("0".repeat(r-u.length)).concat(u),a="".concat(a).concat(c||"")):c?(i="".concat(u).concat(c),a=r<c.length?this.insertAt(i,".",+r+u.length):"".concat(i).concat("0".repeat(r-c.length))):(i=i.replace(".",""),a="".concat(i).concat("0".repeat(Number(r)))),o&&(a="-".concat(a)),a}}]),s}()},"./src/AutoNumericOptions.js":function(e,t,n){"use strict";function i(t){return Object.getOwnPropertyNames(t).forEach(function(e){"valuesToStrings"===e?Object.getOwnPropertyNames(t.valuesToStrings).forEach(function(e){o["default"].isIE11()||null===t.valuesToStrings[e]||Object.freeze(t.valuesToStrings[e])}):"styleRules"!==e&&(o["default"].isIE11()||null===t[e]||Object.freeze(t[e]))}),Object.freeze(t)}n.r(t);var r=n("./src/AutoNumeric.js"),o=n("./src/AutoNumericHelper.js");r["default"].options={allowDecimalPadding:{always:!0,never:!1,floats:"floats"},alwaysAllowDecimalCharacter:{alwaysAllow:!0,doNotAllow:!1},caretPositionOnFocus:{start:"start",end:"end",decimalLeft:"decimalLeft",decimalRight:"decimalRight",doNoForceCaretPosition:null},createLocalList:{createList:!0,doNotCreateList:!1},currencySymbol:{none:"",currencySign:"\xa4",austral:"\u20b3",australCentavo:"\xa2",baht:"\u0e3f",cedi:"\u20b5",cent:"\xa2",colon:"\u20a1",cruzeiro:"\u20a2",dollar:"$",dong:"\u20ab",drachma:"\u20af",dram:"\u200b\u058f",european:"\u20a0",euro:"\u20ac",florin:"\u0192",franc:"\u20a3",guarani:"\u20b2",hryvnia:"\u20b4",kip:"\u20ad",att:"\u0ead\u0eb1\u0e94",lepton:"\u039b.",lira:"\u20ba",liraOld:"\u20a4",lari:"\u20be",mark:"\u2133",mill:"\u20a5",naira:"\u20a6",peseta:"\u20a7",peso:"\u20b1",pfennig:"\u20b0",pound:"\xa3",real:"R$",riel:"\u17db",ruble:"\u20bd",rupee:"\u20b9",rupeeOld:"\u20a8",shekel:"\u20aa",shekelAlt:"\u05e9\u05f4\u05d7\u200e\u200e",taka:"\u09f3",tenge:"\u20b8",togrog:"\u20ae",won:"\u20a9",yen:"\xa5"},currencySymbolPlacement:{prefix:"p",suffix:"s"},decimalCharacter:{comma:",",dot:".",middleDot:"\xb7",arabicDecimalSeparator:"\u066b",decimalSeparatorKeySymbol:"\u2396"},decimalCharacterAlternative:{none:null,comma:",",dot:"."},decimalPlaces:{none:0,one:1,two:2,three:3,four:4,five:5,six:6},decimalPlacesRawValue:{useDefault:null,none:0,one:1,two:2,three:3,four:4,five:5,six:6},decimalPlacesShownOnBlur:{useDefault:null,none:0,one:1,two:2,three:3,four:4,five:5,six:6},decimalPlacesShownOnFocus:{useDefault:null,none:0,one:1,two:2,three:3,four:4,five:5,six:6},defaultValueOverride:{doNotOverride:null},digitalGroupSpacing:{two:"2",twoScaled:"2s",three:"3",four:"4"},digitGroupSeparator:{comma:",",dot:".",normalSpace:" ",thinSpace:"\u2009",narrowNoBreakSpace:"\u202f",noBreakSpace:"\xa0",noSeparator:"",apostrophe:"'",arabicThousandsSeparator:"\u066c",dotAbove:"\u02d9",privateUseTwo:"\u2019"},divisorWhenUnfocused:{none:null,percentage:100,permille:1e3,basisPoint:1e4},emptyInputBehavior:{focus:"focus",press:"press",always:"always",zero:"zero",min:"min",max:"max","null":"null"},eventBubbles:{bubbles:!0,doesNotBubble:!1},eventIsCancelable:{isCancelable:!0,isNotCancelable:!1},failOnUnknownOption:{fail:!0,ignore:!1},formatOnPageLoad:{format:!0,doNotFormat:!1},formulaMode:{enabled:!0,disabled:!1},historySize:{verySmall:5,small:10,medium:20,large:50,veryLarge:100,insane:Number.MAX_SAFE_INTEGER},invalidClass:"an-invalid",isCancellable:{cancellable:!0,notCancellable:!1},leadingZero:{allow:"allow",deny:"deny",keep:"keep"},maximumValue:{tenTrillions:"10000000000000",oneBillion:"1000000000",zero:"0"},minimumValue:{tenTrillions:"-10000000000000",oneBillion:"-1000000000",zero:"0"},modifyValueOnWheel:{modifyValue:!0,doNothing:!1},negativeBracketsTypeOnBlur:{parentheses:"(,)",brackets:"[,]",chevrons:"<,>",curlyBraces:"{,}",angleBrackets:"\u3008,\u3009",japaneseQuotationMarks:"\uff62,\uff63",halfBrackets:"\u2e24,\u2e25",whiteSquareBrackets:"\u27e6,\u27e7",quotationMarks:"\u2039,\u203a",guillemets:"\xab,\xbb",none:null},negativePositiveSignPlacement:{prefix:"p",suffix:"s",left:"l",right:"r",none:null},negativeSignCharacter:{hyphen:"-",minus:"\u2212",heavyMinus:"\u2796",fullWidthHyphen:"\uff0d",circledMinus:"\u2296",squaredMinus:"\u229f",triangleMinus:"\u2a3a",plusMinus:"\xb1",minusPlus:"\u2213",dotMinus:"\u2238",minusTilde:"\u2242",not:"\xac"},noEventListeners:{noEvents:!0,addEvents:!1},onInvalidPaste:{error:"error",ignore:"ignore",clamp:"clamp",truncate:"truncate",replace:"replace"},outputFormat:{string:"string",number:"number",dot:".",negativeDot:"-.",comma:",",negativeComma:"-,",dotNegative:".-",commaNegative:",-",none:null},overrideMinMaxLimits:{ceiling:"ceiling",floor:"floor",ignore:"ignore",invalid:"invalid",doNotOverride:null},positiveSignCharacter:{plus:"+",fullWidthPlus:"\uff0b",heavyPlus:"\u2795",doublePlus:"\u29fa",triplePlus:"\u29fb",circledPlus:"\u2295",squaredPlus:"\u229e",trianglePlus:"\u2a39",plusMinus:"\xb1",minusPlus:"\u2213",dotPlus:"\u2214",altHebrewPlus:"\ufb29",normalSpace:" ",thinSpace:"\u2009",narrowNoBreakSpace:"\u202f",noBreakSpace:"\xa0"},rawValueDivisor:{none:null,percentage:100,permille:1e3,basisPoint:1e4},readOnly:{readOnly:!0,readWrite:!1},roundingMethod:{halfUpSymmetric:"S",halfUpAsymmetric:"A",halfDownSymmetric:"s",halfDownAsymmetric:"a",halfEvenBankersRounding:"B",upRoundAwayFromZero:"U",downRoundTowardZero:"D",toCeilingTowardPositiveInfinity:"C",toFloorTowardNegativeInfinity:"F",toNearest05:"N05",toNearest05Alt:"CHF",upToNext05:"U05",downToNext05:"D05"},saveValueToSessionStorage:{save:!0,doNotSave:!1},selectNumberOnly:{selectNumbersOnly:!0,selectAll:!1},selectOnFocus:{select:!0,doNotSelect:!1},serializeSpaces:{plus:"+",percent:"%20"},showOnlyNumbersOnFocus:{onlyNumbers:!0,showAll:!1},showPositiveSign:{show:!0,hide:!1},showWarnings:{show:!0,hide:!1},styleRules:{none:null,positiveNegative:{positive:"autoNumeric-positive",negative:"autoNumeric-negative"},range0To100With4Steps:{ranges:[{min:0,max:25,"class":"autoNumeric-red"},{min:25,max:50,"class":"autoNumeric-orange"},{min:50,max:75,"class":"autoNumeric-yellow"},{min:75,max:100,"class":"autoNumeric-green"}]},evenOdd:{userDefined:[{callback:function(e){return e%2==0},classes:["autoNumeric-even","autoNumeric-odd"]}]},rangeSmallAndZero:{userDefined:[{callback:function(e){return-1<=e&&e<0?0:0===Number(e)?1:0<e&&e<=1?2:null},classes:["autoNumeric-small-negative","autoNumeric-zero","autoNumeric-small-positive"]}]}},suffixText:{none:"",percentage:"%",permille:"\u2030",basisPoint:"\u2031"},symbolWhenUnfocused:{none:null,percentage:"%",permille:"\u2030",basisPoint:"\u2031"},unformatOnHover:{unformat:!0,doNotUnformat:!1},unformatOnSubmit:{unformat:!0,keepCurrentValue:!1},valuesToStrings:{none:null,zeroDash:{0:"-"},oneAroundZero:{"-1":"Min",1:"Max"}},watchExternalChanges:{watch:!0,doNotWatch:!1},wheelOn:{focus:"focus",hover:"hover"},wheelStep:{progressive:"progressive"}},i(r["default"].options),Object.defineProperty(r["default"],"options",{configurable:!1,writable:!1})},"./src/AutoNumericPredefinedOptions.js":function(e,t,n){"use strict";n.r(t);var i=n("./src/AutoNumeric.js"),r=n("./src/AutoNumericHelper.js"),o={digitGroupSeparator:i["default"].options.digitGroupSeparator.dot,decimalCharacter:i["default"].options.decimalCharacter.comma,decimalCharacterAlternative:i["default"].options.decimalCharacterAlternative.dot,currencySymbol:"\u202f\u20ac",currencySymbolPlacement:i["default"].options.currencySymbolPlacement.suffix,negativePositiveSignPlacement:i["default"].options.negativePositiveSignPlacement.prefix},s={digitGroupSeparator:i["default"].options.digitGroupSeparator.comma,decimalCharacter:i["default"].options.decimalCharacter.dot,currencySymbol:i["default"].options.currencySymbol.dollar,currencySymbolPlacement:i["default"].options.currencySymbolPlacement.prefix,negativePositiveSignPlacement:i["default"].options.negativePositiveSignPlacement.right},a={digitGroupSeparator:i["default"].options.digitGroupSeparator.comma,decimalCharacter:i["default"].options.decimalCharacter.dot,currencySymbol:i["default"].options.currencySymbol.yen,currencySymbolPlacement:i["default"].options.currencySymbolPlacement.prefix,negativePositiveSignPlacement:i["default"].options.negativePositiveSignPlacement.right};r["default"].cloneObject(o).formulaMode=i["default"].options.formulaMode.enabled;var l=r["default"].cloneObject(o);l.minimumValue=0;var u=r["default"].cloneObject(o);u.maximumValue=0,u.negativePositiveSignPlacement=i["default"].options.negativePositiveSignPlacement.prefix;var c=r["default"].cloneObject(o);c.digitGroupSeparator=i["default"].options.digitGroupSeparator.normalSpace;var d=r["default"].cloneObject(c);d.minimumValue=0;var h=r["default"].cloneObject(c);h.maximumValue=0,h.negativePositiveSignPlacement=i["default"].options.negativePositiveSignPlacement.prefix;var f=r["default"].cloneObject(o);f.currencySymbol=i["default"].options.currencySymbol.none,f.suffixText="\u202f".concat(i["default"].options.suffixText.percentage),f.wheelStep=1e-4,f.rawValueDivisor=i["default"].options.rawValueDivisor.percentage;var p=r["default"].cloneObject(f);p.minimumValue=0;var m=r["default"].cloneObject(f);m.maximumValue=0,m.negativePositiveSignPlacement=i["default"].options.negativePositiveSignPlacement.prefix;var g=r["default"].cloneObject(f);g.decimalPlaces=3;var v=r["default"].cloneObject(p);v.decimalPlaces=3;var y=r["default"].cloneObject(m);y.decimalPlaces=3,r["default"].cloneObject(s).formulaMode=i["default"].options.formulaMode.enabled;var b=r["default"].cloneObject(s);b.minimumValue=0;var w=r["default"].cloneObject(s);w.maximumValue=0,w.negativePositiveSignPlacement=i["default"].options.negativePositiveSignPlacement.prefix;var S=r["default"].cloneObject(w);S.negativeBracketsTypeOnBlur=i["default"].options.negativeBracketsTypeOnBlur.parentheses;var k=r["default"].cloneObject(s);k.currencySymbol=i["default"].options.currencySymbol.none,k.suffixText=i["default"].options.suffixText.percentage,k.wheelStep=1e-4,k.rawValueDivisor=i["default"].options.rawValueDivisor.percentage;var x=r["default"].cloneObject(k);x.minimumValue=0;var _=r["default"].cloneObject(k);_.maximumValue=0,_.negativePositiveSignPlacement=i["default"].options.negativePositiveSignPlacement.prefix;var C=r["default"].cloneObject(k);C.decimalPlaces=3;var T=r["default"].cloneObject(x);T.decimalPlaces=3;var E=r["default"].cloneObject(_);E.decimalPlaces=3;var P=r["default"].cloneObject(o);P.currencySymbol=i["default"].options.currencySymbol.lira,i["default"].predefinedOptions={euro:o,euroPos:l,euroNeg:u,euroSpace:c,euroSpacePos:d,euroSpaceNeg:h,percentageEU2dec:f,percentageEU2decPos:p,percentageEU2decNeg:m,percentageEU3dec:g,percentageEU3decPos:v,percentageEU3decNeg:y,dollar:s,dollarPos:b,dollarNeg:w,dollarNegBrackets:S,percentageUS2dec:k,percentageUS2decPos:x,percentageUS2decNeg:_,percentageUS3dec:C,percentageUS3decPos:T,percentageUS3decNeg:E,French:o,Spanish:o,NorthAmerican:s,British:{digitGroupSeparator:i["default"].options.digitGroupSeparator.comma,decimalCharacter:i["default"].options.decimalCharacter.dot,currencySymbol:i["default"].options.currencySymbol.pound,currencySymbolPlacement:i["default"].options.currencySymbolPlacement.prefix,negativePositiveSignPlacement:i["default"].options.negativePositiveSignPlacement.right},Swiss:{digitGroupSeparator:i["default"].options.digitGroupSeparator.apostrophe,decimalCharacter:i["default"].options.decimalCharacter.dot,currencySymbol:"\u202fCHF",currencySymbolPlacement:i["default"].options.currencySymbolPlacement.suffix,negativePositiveSignPlacement:i["default"].options.negativePositiveSignPlacement.prefix},Japanese:a,Chinese:a,Brazilian:{digitGroupSeparator:i["default"].options.digitGroupSeparator.dot,decimalCharacter:i["default"].options.decimalCharacter.comma,currencySymbol:i["default"].options.currencySymbol.real,currencySymbolPlacement:i["default"].options.currencySymbolPlacement.prefix,negativePositiveSignPlacement:i["default"].options.negativePositiveSignPlacement.right},Turkish:P,dotDecimalCharCommaSeparator:{digitGroupSeparator:i["default"].options.digitGroupSeparator.comma,decimalCharacter:i["default"].options.decimalCharacter.dot},commaDecimalCharDotSeparator:{digitGroupSeparator:i["default"].options.digitGroupSeparator.dot,decimalCharacter:i["default"].options.decimalCharacter.comma,decimalCharacterAlternative:i["default"].options.decimalCharacterAlternative.dot},integer:{decimalPlaces:0},integerPos:{minimumValue:i["default"].options.minimumValue.zero,decimalPlaces:0},integerNeg:{maximumValue:i["default"].options.maximumValue.zero,decimalPlaces:0},"float":{allowDecimalPadding:i["default"].options.allowDecimalPadding.never},floatPos:{allowDecimalPadding:i["default"].options.allowDecimalPadding.never,minimumValue:i["default"].options.minimumValue.zero,maximumValue:i["default"].options.maximumValue.tenTrillions},floatNeg:{allowDecimalPadding:i["default"].options.allowDecimalPadding.never,minimumValue:i["default"].options.minimumValue.tenTrillions,maximumValue:i["default"].options.maximumValue.zero},numeric:{digitGroupSeparator:i["default"].options.digitGroupSeparator.noSeparator,decimalCharacter:i["default"].options.decimalCharacter.dot,currencySymbol:i["default"].options.currencySymbol.none},numericPos:{digitGroupSeparator:i["default"].options.digitGroupSeparator.noSeparator,decimalCharacter:i["default"].options.decimalCharacter.dot,currencySymbol:i["default"].options.currencySymbol.none,minimumValue:i["default"].options.minimumValue.zero,maximumValue:i["default"].options.maximumValue.tenTrillions},numericNeg:{digitGroupSeparator:i["default"].options.digitGroupSeparator.noSeparator,decimalCharacter:i["default"].options.decimalCharacter.dot,currencySymbol:i["default"].options.currencySymbol.none,minimumValue:i["default"].options.minimumValue.tenTrillions,maximumValue:i["default"].options.maximumValue.zero}},Object.getOwnPropertyNames(i["default"].predefinedOptions).forEach(function(e){Object.freeze(i["default"].predefinedOptions[e])}),Object.freeze(i["default"].predefinedOptions),Object.defineProperty(i["default"],"predefinedOptions",{configurable:!1,writable:!1})},"./src/main.js":function(e,t,n){"use strict";n.r(t);var i=n("./src/AutoNumeric.js");n("./src/AutoNumericEvents.js"),n("./src/AutoNumericOptions.js"),n("./src/AutoNumericDefaultSettings.js"),n("./src/AutoNumericPredefinedOptions.js");t["default"]=i["default"]},"./src/maths/ASTNode.js":function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function o(e,t,n){return t&&r(e.prototype,t),n&&r(e,n),e}n.r(t),n.d(t,"default",function(){return s});var s=function(){function r(){i(this,r)}return o(r,null,[{key:"createNode",value:function(e,t,n){var i=new r;return i.type=e,i.left=t,i.right=n,i}},{key:"createUnaryNode",value:function(e){var t=new r;return t.type="unaryMinus",t.left=e,t.right=null,t}},{key:"createLeaf",value:function(e){var t=new r;return t.type="number",t.value=e,t}}]),r}()},"./src/maths/Evaluator.js":function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function o(e,t,n){return t&&r(e.prototype,t),n&&r(e,n),e}n.r(t),n.d(t,"default",function(){return s});var s=function(){function t(e){if(i(this,t),null===e)throw new Error("Invalid AST")}return o(t,[{key:"evaluate",value:function(e){if(null==e)throw new Error("Invalid AST sub-tree");if("number"===e.type)return e.value;if("unaryMinus"===e.type)return-this.evaluate(e.left);var t=this.evaluate(e.left),n=this.evaluate(e.right);switch(e.type){case"op_+":return Number(t)+Number(n);case"op_-":return t-n;case"op_*":return t*n;case"op_/":return t/n;default:throw new Error("Invalid operator '".concat(e.type,"'"))}}}]),t}()},"./src/maths/Lexer.js":function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function o(e,t,n){return t&&r(e.prototype,t),n&&r(e,n),e}n.r(t),n.d(t,"default",function(){return l});var s=n("./src/AutoNumericHelper.js"),a=n("./src/maths/Token.js"),l=function(){function t(e){i(this,t),this.text=e,this.textLength=e.length,this.index=0,this.token=new a["default"]("Error",0,0)}return o(t,[{key:"_skipSpaces",value:function(){for(;" "===this.text[this.index]&&this.index<=this.textLength;)this.index++}},{key:"getIndex",value:function(){return this.index}},{key:"getNextToken",value:function(e){var t=0<arguments.length&&e!==undefined?e:".";if(this._skipSpaces(),this.textLength===this.index)return this.token.type="EOT",this.token;if(s["default"].isDigit(this.text[this.index]))return this.token.type="num",this.token.value=this._getNumber(t),this.token;switch(this.token.type="Error",this.text[this.index]){case"+":this.token.type="+";break;case"-":this.token.type="-";break;case"*":this.token.type="*";break;case"/":this.token.type="/";break;case"(":this.token.type="(";break;case")":this.token.type=")"}if("Error"===this.token.type)throw new Error("Unexpected token '".concat(this.token.symbol,"' at position '").concat(this.token.index,"' in the token function"));return this.token.symbol=this.text[this.index],this.index++,this.token}},{key:"_getNumber",value:function(e){this._skipSpaces();for(var t=this.index;this.index<=this.textLength&&s["default"].isDigit(this.text[this.index]);)this.index++;for(this.text[this.index]===e&&this.index++;this.index<=this.textLength&&s["default"].isDigit(this.text[this.index]);)this.index++;if(this.index===t)throw new Error("No number has been found while it was expected");return this.text.substring(t,this.index).replace(e,".")}}]),t}()},"./src/maths/Parser.js":function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function o(e,t,n){return t&&i(e.prototype,t),n&&i(e,n),e}n.r(t),n.d(t,"default",function(){return l});var s=n("./src/maths/ASTNode.js"),a=n("./src/maths/Lexer.js"),l=function(){function i(e,t){var n=1<arguments.length&&t!==undefined?t:".";return r(this,i),this.text=e,this.decimalCharacter=n,this.lexer=new a["default"](e),this.token=this.lexer.getNextToken(this.decimalCharacter),this._exp()}return o(i,[{key:"_exp",value:function(){var e=this._term(),t=this._moreExp();return s["default"].createNode("op_+",e,t)}},{key:"_moreExp",value:function(){var e,t;switch(this.token.type){case"+":return this.token=this.lexer.getNextToken(this.decimalCharacter),e=this._term(),t=this._moreExp(),s["default"].createNode("op_+",t,e);case"-":return this.token=this.lexer.getNextToken(this.decimalCharacter),e=this._term(),t=this._moreExp(),s["default"].createNode("op_-",t,e)}return s["default"].createLeaf(0)}},{key:"_term",value:function(){var e=this._factor(),t=this._moreTerms();return s["default"].createNode("op_*",e,t)}},{key:"_moreTerms",value:function(){var e,t;switch(this.token.type){case"*":return this.token=this.lexer.getNextToken(this.decimalCharacter),e=this._factor(),t=this._moreTerms(),s["default"].createNode("op_*",t,e);case"/":return this.token=this.lexer.getNextToken(this.decimalCharacter),e=this._factor(),t=this._moreTerms(),s["default"].createNode("op_/",t,e)}return s["default"].createLeaf(1)}},{key:"_factor",value:function(){var e,t,n;switch(this.token.type){case"num":return n=this.token.value,this.token=this.lexer.getNextToken(this.decimalCharacter),s["default"].createLeaf(n);case"-":return this.token=this.lexer.getNextToken(this.decimalCharacter),t=this._factor(),s["default"].createUnaryNode(t);case"(":return this.token=this.lexer.getNextToken(this.decimalCharacter),e=this._exp(),this._match(")"),e;default:throw new Error("Unexpected token '".concat(this.token.symbol,"' with type '").concat(this.token.type,"' at position '").concat(this.token.index,"' in the factor function"))}}},{key:"_match",value:function(e){var t=this.lexer.getIndex()-1;if(this.text[t]!==e)throw new Error("Unexpected token '".concat(this.token.symbol,"' at position '").concat(t,"' in the match function"));this.token=this.lexer.getNextToken(this.decimalCharacter)}}]),i}()},"./src/maths/Token.js":function(t,n,i){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}i.r(n),i.d(n,"default",function(){return o});var o=function e(t,n,i){r(this,e),this.type=t,this.value=n,this.symbol=i}}})["default"]}),function(t,n){"function"==typeof define&&define.amd?define("jquery-bridget/jquery-bridget",["jquery"],function(e){return n(t,e)}):"object"==typeof module&&module.exports?module.exports=n(t,require("jquery")):t.jQueryBridget=n(t,t.jQuery)}(window,function(e,i){"use strict";function t(u,r,c){function t(e,o,s){var a,l="$()."+u+'("'+o+'")';return e.each(function(e,t){var n=c.data(t,u);if(n){var i=n[o];if(i&&"_"!=o.charAt(0)){var r=i.apply(n,s);a=a===undefined?r:a}else d(l+" is not a valid method")}else d(u+" not initialized. Cannot call methods, i.e. "+l)}),a!==undefined?a:e}function n(e,i){e.each(function(e,t){var n=c.data(t,u);n?(n.option(i),n._init()):(n=new r(t,i),c.data(t,u,n))})}(c=c||i||e.jQuery)&&(r.prototype.option||(r.prototype.option=function(e){c.isPlainObject(e)&&(this.options=c.extend(!0,this.options,e))}),c.fn[u]=function(e){return"string"==typeof e?t(this,e,s.call(arguments,1)):(n(this,e),this)},o(c))}function o(e){!e||e&&e.bridget||(e.bridget=t)}var s=Array.prototype.slice,n=e.console,d=void 0===n?function(){}:function(e){n.error(e)};return o(i||e.jQuery),t}),function(e,t){"function"==typeof define&&define.amd?define("ev-emitter/ev-emitter",t):"object"==typeof module&&module.exports?module.exports=t():e.EvEmitter=t()}("undefined"!=typeof window?window:this,function(){function e(){}var t=e.prototype;return t.on=function(e,t){if(e&&t){var n=this._events=this._events||{},i=n[e]=n[e]||[];return-1==i.indexOf(t)&&i.push(t),this}},t.once=function(e,t){if(e&&t){this.on(e,t);var n=this._onceEvents=this._onceEvents||{};return(n[e]=n[e]||{})[t]=!0,this}},t.off=function(e,t){var n=this._events&&this._events[e];if(n&&n.length){var i=n.indexOf(t);return-1!=i&&n.splice(i,1),this}},t.emitEvent=function(e,t){var n=this._events&&this._events[e];if(n&&n.length){n=n.slice(0),t=t||[];for(var i=this._onceEvents&&this._onceEvents[e],r=0;r<n.length;r++){var o=n[r];i&&i[o]&&(this.off(e,o),delete i[o]),o.apply(this,t)}return this}},t.allOff=function(){delete this._events,delete this._onceEvents},e}),function(e,t){"function"==typeof define&&define.amd?define("get-size/get-size",t):"object"==typeof module&&module.exports?module.exports=t():e.getSize=t()}(window,function(){"use strict";function v(e){var t=parseFloat(e);return-1==e.indexOf("%")&&!isNaN(t)&&t}function e(){}function y(){for(var e={width:0,height:0,innerWidth:0,innerHeight:0,outerWidth:0,outerHeight:0},t=0;t<x;t++){e[k[t]]=0}return e}function b(e){var t=getComputedStyle(e);return t||n("Style returned "+t+". Are you running this code in a hidden iframe on Firefox? See https://bit.ly/getsizebug1"),t}function w(){if(!r){r=!0;var e=document.createElement("div");e.style.width="200px",e.style.padding="1px 2px 3px 4px",e.style.borderStyle="solid",e.style.borderWidth="1px 2px 3px 4px",e.style.boxSizing="border-box";var t=document.body||document.documentElement;t.appendChild(e);var n=b(e);S=200==Math.round(v(n.width)),i.isBoxSizeOuter=S,t.removeChild(e)}}function i(e){if(w(),"string"==typeof e&&(e=document.querySelector(e)),e&&"object"==typeof e&&e.nodeType){var t=b(e);if("none"==t.display)return y();var n={};n.width=e.offsetWidth,n.height=e.offsetHeight;for(var i=n.isBorderBox="border-box"==t.boxSizing,r=0;r<x;r++){var o=k[r],s=t[o],a=parseFloat(s);n[o]=isNaN(a)?0:a}var l=n.paddingLeft+n.paddingRight,u=n.paddingTop+n.paddingBottom,c=n.marginLeft+n.marginRight,d=n.marginTop+n.marginBottom,h=n.borderLeftWidth+n.borderRightWidth,f=n.borderTopWidth+n.borderBottomWidth,p=i&&S,m=v(t.width);!1!==m&&(n.width=m+(p?0:l+h));var g=v(t.height);return!1!==g&&(n.height=g+(p?0:u+f)),n.innerWidth=n.width-(l+h),n.innerHeight=n.height-(u+f),n.outerWidth=n.width+c,n.outerHeight=n.height+d,n}}var S,n="undefined"==typeof console?e:function(e){console.error(e)},k=["paddingLeft","paddingRight","paddingTop","paddingBottom","marginLeft","marginRight","marginTop","marginBottom","borderLeftWidth","borderRightWidth","borderTopWidth","borderBottomWidth"],x=k.length,r=!1;return i}),function(e,t){"use strict";"function"==typeof define&&define.amd?define("desandro-matches-selector/matches-selector",t):"object"==typeof module&&module.exports?module.exports=t():e.matchesSelector=t()}(window,function(){"use strict";var n=function(){var e=window.Element.prototype;if(e.matches)return"matches";if(e.matchesSelector)return"matchesSelector";for(var t=["webkit","moz","ms","o"],n=0;n<t.length;n++){var i=t[n]+"MatchesSelector";if(e[i])return i}}();return function(e,t){return e[n](t)}}),function(t,n){"function"==typeof define&&define.amd?define("fizzy-ui-utils/utils",["desandro-matches-selector/matches-selector"],function(e){return n(t,e)}):"object"==typeof module&&module.exports?module.exports=n(t,require("desandro-matches-selector")):t.fizzyUIUtils=n(t,t.matchesSelector)}(window,function(r,o){var c={extend:function(e,t){for(var n in t)e[n]=t[n];return e},modulo:function(e,t){return(e%t+t)%t}},t=Array.prototype.slice;c.makeArray=function(e){return Array.isArray(e)?e:null===e||e===undefined?[]:"object"==typeof e&&"number"==typeof e.length?t.call(e):[e]},c.removeFrom=function(e,t){var n=e.indexOf(t);-1!=n&&e.splice(n,1)},c.getParent=function(e,t){for(;e.parentNode&&e!=document.body;)if(e=e.parentNode,o(e,t))return e},c.getQueryElement=function(e){return"string"==typeof e?document.querySelector(e):e},c.handleEvent=function(e){var t="on"+e.type;this[t]&&this[t](e)},c.filterFindElements=function(e,i){e=c.makeArray(e);var r=[];return e.forEach(function(e){if(e instanceof HTMLElement)if(i){o(e,i)&&r.push(e);for(var t=e.querySelectorAll(i),n=0;n<t.length;n++)r.push(t[n])}else r.push(e)}),r},c.debounceMethod=function(e,t,i){i=i||100;var r=e.prototype[t],o=t+"Timeout";e.prototype[t]=function(){var e=this[o];clearTimeout(e);var t=arguments,n=this;this[o]=setTimeout(function(){r.apply(n,t),delete n[o]},i)}},c.docReady=function(e){var t=document.readyState;"complete"==t||"interactive"==t?setTimeout(e):document.addEventListener("DOMContentLoaded",e)},c.toDashed=function(e){return e.replace(/(.)([A-Z])/g,function(e,t,n){return t+"-"+n}).toLowerCase()};var d=r.console;return c.htmlInit=function(l,u){c.docReady(function(){var e=c.toDashed(u),o="data-"+e,t=document.querySelectorAll("["+o+"]"),n=document.querySelectorAll(".js-"+e),i=c.makeArray(t).concat(c.makeArray(n)),s=o+"-options",a=r.jQuery;i.forEach(function(e){var t,n=e.getAttribute(o)||e.getAttribute(s);try{t=n&&JSON.parse(n)}catch(r){return void(d&&d.error("Error parsing "+o+" on "+e.className+": "+r))}var i=new l(e,t);a&&a.data(e,u,i)})})},c}),function(t,n){
"function"==typeof define&&define.amd?define("flickity/js/cell",["get-size/get-size"],function(e){return n(t,e)}):"object"==typeof module&&module.exports?module.exports=n(t,require("get-size")):(t.Flickity=t.Flickity||{},t.Flickity.Cell=n(t,t.getSize))}(window,function(e,t){function n(e,t){this.element=e,this.parent=t,this.create()}var i=n.prototype;return i.create=function(){this.element.style.position="absolute",this.element.setAttribute("aria-hidden","true"),this.x=0,this.shift=0},i.destroy=function(){this.unselect(),this.element.style.position="";var e=this.parent.originSide;this.element.style[e]="",this.element.removeAttribute("aria-hidden")},i.getSize=function(){this.size=t(this.element)},i.setPosition=function(e){this.x=e,this.updateTarget(),this.renderPosition(e)},i.updateTarget=i.setDefaultTarget=function(){var e="left"==this.parent.originSide?"marginLeft":"marginRight";this.target=this.x+this.size[e]+this.size.width*this.parent.cellAlign},i.renderPosition=function(e){var t=this.parent.originSide;this.element.style[t]=this.parent.getPositionValue(e)},i.select=function(){this.element.classList.add("is-selected"),this.element.removeAttribute("aria-hidden")},i.unselect=function(){this.element.classList.remove("is-selected"),this.element.setAttribute("aria-hidden","true")},i.wrapShift=function(e){this.shift=e,this.renderPosition(this.x+this.parent.slideableWidth*e)},i.remove=function(){this.element.parentNode.removeChild(this.element)},n}),function(e,t){"function"==typeof define&&define.amd?define("flickity/js/slide",t):"object"==typeof module&&module.exports?module.exports=t():(e.Flickity=e.Flickity||{},e.Flickity.Slide=t())}(window,function(){"use strict";function e(e){this.parent=e,this.isOriginLeft="left"==e.originSide,this.cells=[],this.outerWidth=0,this.height=0}var t=e.prototype;return t.addCell=function(e){if(this.cells.push(e),this.outerWidth+=e.size.outerWidth,this.height=Math.max(e.size.outerHeight,this.height),1==this.cells.length){this.x=e.x;var t=this.isOriginLeft?"marginLeft":"marginRight";this.firstMargin=e.size[t]}},t.updateTarget=function(){var e=this.isOriginLeft?"marginRight":"marginLeft",t=this.getLastCell(),n=t?t.size[e]:0,i=this.outerWidth-(this.firstMargin+n);this.target=this.x+this.firstMargin+i*this.parent.cellAlign},t.getLastCell=function(){return this.cells[this.cells.length-1]},t.select=function(){this.cells.forEach(function(e){e.select()})},t.unselect=function(){this.cells.forEach(function(e){e.unselect()})},t.getCellElements=function(){return this.cells.map(function(e){return e.element})},e}),function(t,n){"function"==typeof define&&define.amd?define("flickity/js/animate",["fizzy-ui-utils/utils"],function(e){return n(t,e)}):"object"==typeof module&&module.exports?module.exports=n(t,require("fizzy-ui-utils")):(t.Flickity=t.Flickity||{},t.Flickity.animatePrototype=n(t,t.fizzyUIUtils))}(window,function(e,t){var n={startAnimation:function(){this.isAnimating||(this.isAnimating=!0,this.restingFrames=0,this.animate())},animate:function(){this.applyDragForce(),this.applySelectedAttraction();var e=this.x;if(this.integratePhysics(),this.positionSlider(),this.settle(e),this.isAnimating){var t=this;requestAnimationFrame(function(){t.animate()})}},positionSlider:function(){var e=this.x;this.options.wrapAround&&1<this.cells.length&&(e=t.modulo(e,this.slideableWidth),e-=this.slideableWidth,this.shiftWrapCells(e)),this.setTranslateX(e,this.isAnimating),this.dispatchScrollEvent()},setTranslateX:function(e,t){e+=this.cursorPosition,e=this.options.rightToLeft?-e:e;var n=this.getPositionValue(e);this.slider.style.transform=t?"translate3d("+n+",0,0)":"translateX("+n+")"},dispatchScrollEvent:function(){var e=this.slides[0];if(e){var t=-this.x-e.target,n=t/this.slidesWidth;this.dispatchEvent("scroll",null,[n,t])}},positionSliderAtSelected:function(){this.cells.length&&(this.x=-this.selectedSlide.target,this.velocity=0,this.positionSlider())},getPositionValue:function(e){return this.options.percentPosition?.01*Math.round(e/this.size.innerWidth*1e4)+"%":Math.round(e)+"px"},settle:function(e){!this.isPointerDown&&Math.round(100*this.x)==Math.round(100*e)&&this.restingFrames++,2<this.restingFrames&&(this.isAnimating=!1,delete this.isFreeScrolling,this.positionSlider(),this.dispatchEvent("settle",null,[this.selectedIndex]))},shiftWrapCells:function(e){var t=this.cursorPosition+e;this._shiftCells(this.beforeShiftCells,t,-1);var n=this.size.innerWidth-(e+this.slideableWidth+this.cursorPosition);this._shiftCells(this.afterShiftCells,n,1)},_shiftCells:function(e,t,n){for(var i=0;i<e.length;i++){var r=e[i],o=0<t?n:0;r.wrapShift(o),t-=r.size.outerWidth}},_unshiftCells:function(e){if(e&&e.length)for(var t=0;t<e.length;t++)e[t].wrapShift(0)},integratePhysics:function(){this.x+=this.velocity,this.velocity*=this.getFrictionFactor()},applyForce:function(e){this.velocity+=e},getFrictionFactor:function(){return 1-this.options[this.isFreeScrolling?"freeScrollFriction":"friction"]},getRestingPosition:function(){return this.x+this.velocity/(1-this.getFrictionFactor())},applyDragForce:function(){if(this.isDraggable&&this.isPointerDown){var e=this.dragX-this.x-this.velocity;this.applyForce(e)}},applySelectedAttraction:function(){if(!(this.isDraggable&&this.isPointerDown)&&!this.isFreeScrolling&&this.slides.length){var e=(-1*this.selectedSlide.target-this.x)*this.options.selectedAttraction;this.applyForce(e)}}};return n}),function(s,a){if("function"==typeof define&&define.amd)define("flickity/js/flickity",["ev-emitter/ev-emitter","get-size/get-size","fizzy-ui-utils/utils","./cell","./slide","./animate"],function(e,t,n,i,r,o){return a(s,e,t,n,i,r,o)});else if("object"==typeof module&&module.exports)module.exports=a(s,require("ev-emitter"),require("get-size"),require("fizzy-ui-utils"),require("./cell"),require("./slide"),require("./animate"));else{var e=s.Flickity;s.Flickity=a(s,s.EvEmitter,s.getSize,s.fizzyUIUtils,e.Cell,e.Slide,e.animatePrototype)}}(window,function(i,e,t,a,n,s,r){function o(e,t){for(e=a.makeArray(e);e.length;)t.appendChild(e.shift())}function l(e,t){var n=a.getQueryElement(e);if(n){if(this.element=n,this.element.flickityGUID){var i=f[this.element.flickityGUID];return i&&i.option(t),i}u&&(this.$element=u(this.element)),this.options=a.extend({},this.constructor.defaults),this.option(t),this._create()}else d&&d.error("Bad element for Flickity: "+(n||e))}var u=i.jQuery,c=i.getComputedStyle,d=i.console,h=0,f={};l.defaults={accessibility:!0,cellAlign:"center",freeScrollFriction:.075,friction:.28,namespaceJQueryEvents:!0,percentPosition:!0,resize:!0,selectedAttraction:.025,setGallerySize:!0},l.createMethods=[];var p=l.prototype;a.extend(p,e.prototype),p._create=function(){var e=this.guid=++h;for(var t in this.element.flickityGUID=e,(f[e]=this).selectedIndex=0,this.restingFrames=0,this.x=0,this.velocity=0,this.originSide=this.options.rightToLeft?"right":"left",this.viewport=document.createElement("div"),this.viewport.className="flickity-viewport",this._createSlider(),(this.options.resize||this.options.watchCSS)&&i.addEventListener("resize",this),this.options.on){var n=this.options.on[t];this.on(t,n)}l.createMethods.forEach(function(e){this[e]()},this),this.options.watchCSS?this.watchCSS():this.activate()},p.option=function(e){a.extend(this.options,e)},p.activate=function(){this.isActive||(this.isActive=!0,this.element.classList.add("flickity-enabled"),this.options.rightToLeft&&this.element.classList.add("flickity-rtl"),this.getSize(),o(this._filterFindCellElements(this.element.children),this.slider),this.viewport.appendChild(this.slider),this.element.appendChild(this.viewport),this.reloadCells(),this.options.accessibility&&(this.element.tabIndex=0,this.element.addEventListener("keydown",this)),this.emitEvent("activate"),this.selectInitialIndex(),this.isInitActivated=!0,this.dispatchEvent("ready"))},p._createSlider=function(){var e=document.createElement("div");e.className="flickity-slider",e.style[this.originSide]=0,this.slider=e},p._filterFindCellElements=function(e){return a.filterFindElements(e,this.options.cellSelector)},p.reloadCells=function(){this.cells=this._makeCells(this.slider.children),this.positionCells(),this._getWrapShiftCells(),this.setGallerySize()},p._makeCells=function(e){return this._filterFindCellElements(e).map(function(e){return new n(e,this)},this)},p.getLastCell=function(){return this.cells[this.cells.length-1]},p.getLastSlide=function(){return this.slides[this.slides.length-1]},p.positionCells=function(){this._sizeCells(this.cells),this._positionCells(0)},p._positionCells=function(e){e=e||0,this.maxCellHeight=e&&this.maxCellHeight||0;var t=0;if(0<e){var n=this.cells[e-1];t=n.x+n.size.outerWidth}for(var i=this.cells.length,r=e;r<i;r++){var o=this.cells[r];o.setPosition(t),t+=o.size.outerWidth,this.maxCellHeight=Math.max(o.size.outerHeight,this.maxCellHeight)}this.slideableWidth=t,this.updateSlides(),this._containSlides(),this.slidesWidth=i?this.getLastSlide().target-this.slides[0].target:0},p._sizeCells=function(e){e.forEach(function(e){e.getSize()})},p.updateSlides=function(){if(this.slides=[],this.cells.length){var i=new s(this);this.slides.push(i);var r="left"==this.originSide?"marginRight":"marginLeft",o=this._getCanCellFit();this.cells.forEach(function(e,t){if(i.cells.length){var n=i.outerWidth-i.firstMargin+(e.size.outerWidth-e.size[r]);o.call(this,t,n)||(i.updateTarget(),i=new s(this),this.slides.push(i)),i.addCell(e)}else i.addCell(e)},this),i.updateTarget(),this.updateSelectedSlide()}},p._getCanCellFit=function(){var e=this.options.groupCells;if(!e)return function(){return!1};if("number"==typeof e){var t=parseInt(e,10);return function(e){return e%t!=0}}var n="string"==typeof e&&e.match(/^(\d+)%$/),i=n?parseInt(n[1],10)/100:1;return function(e,t){return t<=(this.size.innerWidth+1)*i}},p._init=p.reposition=function(){this.positionCells(),this.positionSliderAtSelected()},p.getSize=function(){this.size=t(this.element),this.setCellAlign(),this.cursorPosition=this.size.innerWidth*this.cellAlign};var m={center:{left:.5,right:.5},left:{left:0,right:1},right:{right:0,left:1}};return p.setCellAlign=function(){var e=m[this.options.cellAlign];this.cellAlign=e?e[this.originSide]:this.options.cellAlign},p.setGallerySize=function(){if(this.options.setGallerySize){var e=this.options.adaptiveHeight&&this.selectedSlide?this.selectedSlide.height:this.maxCellHeight;this.viewport.style.height=e+"px"}},p._getWrapShiftCells=function(){if(this.options.wrapAround){this._unshiftCells(this.beforeShiftCells),this._unshiftCells(this.afterShiftCells);var e=this.cursorPosition,t=this.cells.length-1;this.beforeShiftCells=this._getGapCells(e,t,-1),e=this.size.innerWidth-this.cursorPosition,this.afterShiftCells=this._getGapCells(e,0,1)}},p._getGapCells=function(e,t,n){for(var i=[];0<e;){var r=this.cells[t];if(!r)break;i.push(r),t+=n,e-=r.size.outerWidth}return i},p._containSlides=function(){if(this.options.contain&&!this.options.wrapAround&&this.cells.length){var e=this.options.rightToLeft,t=e?"marginRight":"marginLeft",n=e?"marginLeft":"marginRight",i=this.slideableWidth-this.getLastCell().size[n],r=i<this.size.innerWidth,o=this.cursorPosition+this.cells[0].size[t],s=i-this.size.innerWidth*(1-this.cellAlign);this.slides.forEach(function(e){r?e.target=i*this.cellAlign:(e.target=Math.max(e.target,o),e.target=Math.min(e.target,s))},this)}},p.dispatchEvent=function(e,t,n){var i=t?[t].concat(n):n;if(this.emitEvent(e,i),u&&this.$element){var r=e+=this.options.namespaceJQueryEvents?".flickity":"";if(t){var o=new u.Event(t);o.type=e,r=o}this.$element.trigger(r,n)}},p.select=function(e,t,n){if(this.isActive&&(e=parseInt(e,10),this._wrapSelect(e),(this.options.wrapAround||t)&&(e=a.modulo(e,this.slides.length)),this.slides[e])){var i=this.selectedIndex;this.selectedIndex=e,this.updateSelectedSlide(),n?this.positionSliderAtSelected():this.startAnimation(),this.options.adaptiveHeight&&this.setGallerySize(),this.dispatchEvent("select",null,[e]),e!=i&&this.dispatchEvent("change",null,[e]),this.dispatchEvent("cellSelect")}},p._wrapSelect=function(e){var t=this.slides.length;if(!(this.options.wrapAround&&1<t))return e;var n=a.modulo(e,t),i=Math.abs(n-this.selectedIndex),r=Math.abs(n+t-this.selectedIndex),o=Math.abs(n-t-this.selectedIndex);!this.isDragSelect&&r<i?e+=t:!this.isDragSelect&&o<i&&(e-=t),e<0?this.x-=this.slideableWidth:t<=e&&(this.x+=this.slideableWidth)},p.previous=function(e,t){this.select(this.selectedIndex-1,e,t)},p.next=function(e,t){this.select(this.selectedIndex+1,e,t)},p.updateSelectedSlide=function(){var e=this.slides[this.selectedIndex];e&&(this.unselectSelectedSlide(),(this.selectedSlide=e).select(),this.selectedCells=e.cells,this.selectedElements=e.getCellElements(),this.selectedCell=e.cells[0],this.selectedElement=this.selectedElements[0])},p.unselectSelectedSlide=function(){this.selectedSlide&&this.selectedSlide.unselect()},p.selectInitialIndex=function(){var e=this.options.initialIndex;if(this.isInitActivated)this.select(this.selectedIndex,!1,!0);else{if(e&&"string"==typeof e)if(this.queryCell(e))return void this.selectCell(e,!1,!0);var t=0;e&&this.slides[e]&&(t=e),this.select(t,!1,!0)}},p.selectCell=function(e,t,n){var i=this.queryCell(e);if(i){var r=this.getCellSlideIndex(i);this.select(r,t,n)}},p.getCellSlideIndex=function(e){for(var t=0;t<this.slides.length;t++){if(-1!=this.slides[t].cells.indexOf(e))return t}},p.getCell=function(e){for(var t=0;t<this.cells.length;t++){var n=this.cells[t];if(n.element==e)return n}},p.getCells=function(e){e=a.makeArray(e);var n=[];return e.forEach(function(e){var t=this.getCell(e);t&&n.push(t)},this),n},p.getCellElements=function(){return this.cells.map(function(e){return e.element})},p.getParentCell=function(e){var t=this.getCell(e);return t||(e=a.getParent(e,".flickity-slider > *"),this.getCell(e))},p.getAdjacentCellElements=function(e,t){if(!e)return this.selectedSlide.getCellElements();t=t===undefined?this.selectedIndex:t;var n=this.slides.length;if(n<=1+2*e)return this.getCellElements();for(var i=[],r=t-e;r<=t+e;r++){var o=this.options.wrapAround?a.modulo(r,n):r,s=this.slides[o];s&&(i=i.concat(s.getCellElements()))}return i},p.queryCell=function(e){if("number"==typeof e)return this.cells[e];if("string"==typeof e){if(e.match(/^[#.]?[\d/]/))return;e=this.element.querySelector(e)}return this.getCell(e)},p.uiChange=function(){this.emitEvent("uiChange")},p.childUIPointerDown=function(e){"touchstart"!=e.type&&e.preventDefault(),this.focus()},p.onresize=function(){this.watchCSS(),this.resize()},a.debounceMethod(l,"onresize",150),p.resize=function(){if(this.isActive){this.getSize(),this.options.wrapAround&&(this.x=a.modulo(this.x,this.slideableWidth)),this.positionCells(),this._getWrapShiftCells(),this.setGallerySize(),this.emitEvent("resize");var e=this.selectedElements&&this.selectedElements[0];this.selectCell(e,!1,!0)}},p.watchCSS=function(){this.options.watchCSS&&(-1!=c(this.element,":after").content.indexOf("flickity")?this.activate():this.deactivate())},p.onkeydown=function(e){var t=document.activeElement&&document.activeElement!=this.element;if(this.options.accessibility&&!t){var n=l.keyboardHandlers[e.keyCode];n&&n.call(this)}},l.keyboardHandlers={37:function(){var e=this.options.rightToLeft?"next":"previous";this.uiChange(),this[e]()},39:function(){var e=this.options.rightToLeft?"previous":"next";this.uiChange(),this[e]()}},p.focus=function(){var e=i.pageYOffset;this.element.focus({preventScroll:!0}),i.pageYOffset!=e&&i.scrollTo(i.pageXOffset,e)},p.deactivate=function(){this.isActive&&(this.element.classList.remove("flickity-enabled"),this.element.classList.remove("flickity-rtl"),this.unselectSelectedSlide(),this.cells.forEach(function(e){e.destroy()}),this.element.removeChild(this.viewport),o(this.slider.children,this.element),this.options.accessibility&&(this.element.removeAttribute("tabIndex"),this.element.removeEventListener("keydown",this)),this.isActive=!1,this.emitEvent("deactivate"))},p.destroy=function(){this.deactivate(),i.removeEventListener("resize",this),this.allOff(),this.emitEvent("destroy"),u&&this.$element&&u.removeData(this.element,"flickity"),delete this.element.flickityGUID,delete f[this.guid]},a.extend(p,r),l.data=function(e){var t=(e=a.getQueryElement(e))&&e.flickityGUID;return t&&f[t]},a.htmlInit(l,"flickity"),u&&u.bridget&&u.bridget("flickity",l),l.setJQuery=function(e){u=e},l.Cell=n,l.Slide=s,l}),function(t,n){"function"==typeof define&&define.amd?define("unipointer/unipointer",["ev-emitter/ev-emitter"],function(e){return n(t,e)}):"object"==typeof module&&module.exports?module.exports=n(t,require("ev-emitter")):t.Unipointer=n(t,t.EvEmitter)}(window,function(r,e){function t(){}function n(){}var i=n.prototype=Object.create(e.prototype);i.bindStartEvent=function(e){this._bindStartEvent(e,!0)},i.unbindStartEvent=function(e){this._bindStartEvent(e,!1)},i._bindStartEvent=function(e,t){var n=(t=t===undefined||t)?"addEventListener":"removeEventListener",i="mousedown";r.PointerEvent?i="pointerdown":"ontouchstart"in r&&(i="touchstart"),e[n](i,this)},i.handleEvent=function(e){var t="on"+e.type;this[t]&&this[t](e)},i.getTouch=function(e){for(var t=0;t<e.length;t++){var n=e[t];if(n.identifier==this.pointerIdentifier)return n}},i.onmousedown=function(e){var t=e.button;t&&0!==t&&1!==t||this._pointerDown(e,e)},i.ontouchstart=function(e){this._pointerDown(e,e.changedTouches[0])},i.onpointerdown=function(e){this._pointerDown(e,e)},i._pointerDown=function(e,t){e.button||this.isPointerDown||(this.isPointerDown=!0,this.pointerIdentifier=t.pointerId!==undefined?t.pointerId:t.identifier,this.pointerDown(e,t))},i.pointerDown=function(e,t){this._bindPostStartEvents(e),this.emitEvent("pointerDown",[e,t])};var o={mousedown:["mousemove","mouseup"],touchstart:["touchmove","touchend","touchcancel"],pointerdown:["pointermove","pointerup","pointercancel"]};return i._bindPostStartEvents=function(e){if(e){var t=o[e.type];t.forEach(function(e){r.addEventListener(e,this)},this),this._boundPointerEvents=t}},i._unbindPostStartEvents=function(){this._boundPointerEvents&&(this._boundPointerEvents.forEach(function(e){r.removeEventListener(e,this)},this),delete this._boundPointerEvents)},i.onmousemove=function(e){this._pointerMove(e,e)},i.onpointermove=function(e){e.pointerId==this.pointerIdentifier&&this._pointerMove(e,e)},i.ontouchmove=function(e){var t=this.getTouch(e.changedTouches);t&&this._pointerMove(e,t)},i._pointerMove=function(e,t){this.pointerMove(e,t)},i.pointerMove=function(e,t){this.emitEvent("pointerMove",[e,t])},i.onmouseup=function(e){this._pointerUp(e,e)},i.onpointerup=function(e){e.pointerId==this.pointerIdentifier&&this._pointerUp(e,e)},i.ontouchend=function(e){var t=this.getTouch(e.changedTouches);t&&this._pointerUp(e,t)},i._pointerUp=function(e,t){this._pointerDone(),this.pointerUp(e,t)},i.pointerUp=function(e,t){this.emitEvent("pointerUp",[e,t])},i._pointerDone=function(){this._pointerReset(),this._unbindPostStartEvents(),this.pointerDone()},i._pointerReset=function(){this.isPointerDown=!1,delete this.pointerIdentifier},i.pointerDone=t,i.onpointercancel=function(e){e.pointerId==this.pointerIdentifier&&this._pointerCancel(e,e)},i.ontouchcancel=function(e){var t=this.getTouch(e.changedTouches);t&&this._pointerCancel(e,t)},i._pointerCancel=function(e,t){this._pointerDone(),this.pointerCancel(e,t)},i.pointerCancel=function(e,t){this.emitEvent("pointerCancel",[e,t])},n.getPointerPoint=function(e){return{x:e.pageX,y:e.pageY}},n}),function(t,n){"function"==typeof define&&define.amd?define("unidragger/unidragger",["unipointer/unipointer"],function(e){return n(t,e)}):"object"==typeof module&&module.exports?module.exports=n(t,require("unipointer")):t.Unidragger=n(t,t.Unipointer)}(window,function(o,e){function t(){}var n=t.prototype=Object.create(e.prototype);n.bindHandles=function(){this._bindHandles(!0)},n.unbindHandles=function(){this._bindHandles(!1)},n._bindHandles=function(e){for(var t=(e=e===undefined||e)?"addEventListener":"removeEventListener",n=e?this._touchActionValue:"",i=0;i<this.handles.length;i++){var r=this.handles[i];this._bindStartEvent(r,e),r[t]("click",this),o.PointerEvent&&(r.style.touchAction=n)}},n._touchActionValue="none",n.pointerDown=function(e,t){this.okayPointerDown(e)&&(this.pointerDownPointer={pageX:t.pageX,pageY:t.pageY},e.preventDefault(),this.pointerDownBlur(),this._bindPostStartEvents(e),this.emitEvent("pointerDown",[e,t]))};var r={TEXTAREA:!0,INPUT:!0,SELECT:!0,OPTION:!0},s={radio:!0,checkbox:!0,button:!0,submit:!0,image:!0,file:!0};return n.okayPointerDown=function(e){var t=r[e.target.nodeName],n=s[e.target.type],i=!t||n;return i||this._pointerReset(),i},n.pointerDownBlur=function(){var e=document.activeElement;e&&e.blur&&e!=document.body&&e.blur()},n.pointerMove=function(e,t){var n=this._dragPointerMove(e,t);this.emitEvent("pointerMove",[e,t,n]),this._dragMove(e,t,n)},n._dragPointerMove=function(e,t){var n={x:t.pageX-this.pointerDownPointer.pageX,y:t.pageY-this.pointerDownPointer.pageY};return!this.isDragging&&this.hasDragStarted(n)&&this._dragStart(e,t),n},n.hasDragStarted=function(e){return 3<Math.abs(e.x)||3<Math.abs(e.y)},n.pointerUp=function(e,t){this.emitEvent("pointerUp",[e,t]),this._dragPointerUp(e,t)},n._dragPointerUp=function(e,t){this.isDragging?this._dragEnd(e,t):this._staticClick(e,t)},n._dragStart=function(e,t){this.isDragging=!0,this.isPreventingClicks=!0,this.dragStart(e,t)},n.dragStart=function(e,t){this.emitEvent("dragStart",[e,t])},n._dragMove=function(e,t,n){this.isDragging&&this.dragMove(e,t,n)},n.dragMove=function(e,t,n){e.preventDefault(),this.emitEvent("dragMove",[e,t,n])},n._dragEnd=function(e,t){this.isDragging=!1,setTimeout(function(){delete this.isPreventingClicks}.bind(this)),this.dragEnd(e,t)},n.dragEnd=function(e,t){this.emitEvent("dragEnd",[e,t])},n.onclick=function(e){this.isPreventingClicks&&e.preventDefault()},n._staticClick=function(e,t){this.isIgnoringMouseUp&&"mouseup"==e.type||(this.staticClick(e,t),"mouseup"!=e.type&&(this.isIgnoringMouseUp=!0,setTimeout(function(){delete this.isIgnoringMouseUp}.bind(this),400)))},n.staticClick=function(e,t){this.emitEvent("staticClick",[e,t])},t.getPointerPoint=e.getPointerPoint,t}),function(i,r){"function"==typeof define&&define.amd?define("flickity/js/drag",["./flickity","unidragger/unidragger","fizzy-ui-utils/utils"],function(e,t,n){return r(i,e,t,n)}):"object"==typeof module&&module.exports?module.exports=r(i,require("./flickity"),require("unidragger"),require("fizzy-ui-utils")):i.Flickity=r(i,i.Flickity,i.Unidragger,i.fizzyUIUtils)}(window,function(n,e,t,a){function i(){return{x:n.pageXOffset,y:n.pageYOffset}}a.extend(e.defaults,{draggable:">1",dragThreshold:3}),e.createMethods.push("_createDrag");var r=e.prototype;a.extend(r,t.prototype),r._touchActionValue="pan-y";var o="createTouch"in document,s=!1;r._createDrag=function(){this.on("activate",this.onActivateDrag),this.on("uiChange",this._uiChangeDrag),this.on("deactivate",this.onDeactivateDrag),this.on("cellChange",this.updateDraggable),o&&!s&&(n.addEventListener("touchmove",function(){}),s=!0)},r.onActivateDrag=function(){this.handles=[this.viewport],this.bindHandles(),this.updateDraggable()},r.onDeactivateDrag=function(){this.unbindHandles(),this.element.classList.remove("is-draggable")},r.updateDraggable=function(){">1"==this.options.draggable?this.isDraggable=1<this.slides.length:this.isDraggable=this.options.draggable,this.isDraggable?this.element.classList.add("is-draggable"):this.element.classList.remove("is-draggable")},r.bindDrag=function(){this.options.draggable=!0,this.updateDraggable()},r.unbindDrag=function(){this.options.draggable=!1,this.updateDraggable()},r._uiChangeDrag=function(){delete this.isFreeScrolling},r.pointerDown=function(e,t){this.isDraggable?this.okayPointerDown(e)&&(this._pointerDownPreventDefault(e),this.pointerDownFocus(e),document.activeElement!=this.element&&this.pointerDownBlur(),this.dragX=this.x,this.viewport.classList.add("is-pointer-down"),this.pointerDownScroll=i(),n.addEventListener("scroll",this),this._pointerDownDefault(e,t)):this._pointerDownDefault(e,t)},r._pointerDownDefault=function(e,t){this.pointerDownPointer={pageX:t.pageX,pageY:t.pageY},this._bindPostStartEvents(e),this.dispatchEvent("pointerDown",e,[t])};var l={INPUT:!0,TEXTAREA:!0,SELECT:!0};return r.pointerDownFocus=function(e){l[e.target.nodeName]||this.focus()},r._pointerDownPreventDefault=function(e){var t="touchstart"==e.type,n="touch"==e.pointerType,i=l[e.target.nodeName];t||n||i||e.preventDefault()},r.hasDragStarted=function(e){return Math.abs(e.x)>this.options.dragThreshold},r.pointerUp=function(e,t){delete this.isTouchScrolling,this.viewport.classList.remove("is-pointer-down"),this.dispatchEvent("pointerUp",e,[t]),this._dragPointerUp(e,t)},r.pointerDone=function(){n.removeEventListener("scroll",this),delete this.pointerDownScroll},r.dragStart=function(e,t){this.isDraggable&&(this.dragStartPosition=this.x,this.startAnimation(),n.removeEventListener("scroll",this),this.dispatchEvent("dragStart",e,[t]))},r.pointerMove=function(e,t){var n=this._dragPointerMove(e,t);this.dispatchEvent("pointerMove",e,[t,n]),this._dragMove(e,t,n)},r.dragMove=function(e,t,n){if(this.isDraggable){e.preventDefault(),this.previousDragX=this.dragX;var i=this.options.rightToLeft?-1:1;this.options.wrapAround&&(n.x%=this.slideableWidth);var r=this.dragStartPosition+n.x*i;if(!this.options.wrapAround&&this.slides.length){var o=Math.max(-this.slides[0].target,this.dragStartPosition);r=o<r?.5*(r+o):r;var s=Math.min(-this.getLastSlide().target,this.dragStartPosition);r=r<s?.5*(r+s):r}this.dragX=r,this.dragMoveTime=new Date,this.dispatchEvent("dragMove",e,[t,n])}},r.dragEnd=function(e,t){if(this.isDraggable){this.options.freeScroll&&(this.isFreeScrolling=!0);var n=this.dragEndRestingSelect();if(this.options.freeScroll&&!this.options.wrapAround){var i=this.getRestingPosition();this.isFreeScrolling=-i>this.slides[0].target&&-i<this.getLastSlide().target}else this.options.freeScroll||n!=this.selectedIndex||(n+=this.dragEndBoostSelect());delete this.previousDragX,this.isDragSelect=this.options.wrapAround,this.select(n),delete this.isDragSelect,this.dispatchEvent("dragEnd",e,[t])}},r.dragEndRestingSelect=function(){var e=this.getRestingPosition(),t=Math.abs(this.getSlideDistance(-e,this.selectedIndex)),n=this._getClosestResting(e,t,1),i=this._getClosestResting(e,t,-1);return n.distance<i.distance?n.index:i.index},r._getClosestResting=function(e,t,n){for(var i=this.selectedIndex,r=Infinity,o=this.options.contain&&!this.options.wrapAround?function(e,t){return e<=t}:function(e,t){return e<t};o(t,r)&&(i+=n,r=t,null!==(t=this.getSlideDistance(-e,i)));)t=Math.abs(t);return{distance:r,index:i-n}},r.getSlideDistance=function(e,t){var n=this.slides.length,i=this.options.wrapAround&&1<n,r=i?a.modulo(t,n):t,o=this.slides[r];if(!o)return null;var s=i?this.slideableWidth*Math.floor(t/n):0;return e-(o.target+s)},r.dragEndBoostSelect=function(){if(this.previousDragX===undefined||!this.dragMoveTime||100<new Date-this.dragMoveTime)return 0;var e=this.getSlideDistance(-this.dragX,this.selectedIndex),t=this.previousDragX-this.dragX;return 0<e&&0<t?1:e<0&&t<0?-1:0},r.staticClick=function(e,t){var n=this.getParentCell(e.target),i=n&&n.element,r=n&&this.cells.indexOf(n);this.dispatchEvent("staticClick",e,[t,i,r])},r.onscroll=function(){var e=i(),t=this.pointerDownScroll.x-e.x,n=this.pointerDownScroll.y-e.y;(3<Math.abs(t)||3<Math.abs(n))&&this._pointerDone()},e}),function(i,r){"function"==typeof define&&define.amd?define("flickity/js/prev-next-button",["./flickity","unipointer/unipointer","fizzy-ui-utils/utils"],function(e,t,n){return r(i,e,t,n)}):"object"==typeof module&&module.exports?module.exports=r(i,require("./flickity"),require("unipointer"),require("fizzy-ui-utils")):r(i,i.Flickity,i.Unipointer,i.fizzyUIUtils)}(window,function(e,t,n,i){"use strict";function r(e,t){this.direction=e,this.parent=t,this._create()}function o(e){return"string"==typeof e?e:"M "+e.x0+",50 L "+e.x1+","+(e.y1+50)+" L "+e.x2+","+(e.y2+50)+" L "+e.x3+",50  L "+e.x2+","+(50-e.y2)+" L "+e.x1+","+(50-e.y1)+" Z"}var s="http://www.w3.org/2000/svg";r.prototype=Object.create(n.prototype),r.prototype._create=function(){this.isEnabled=!0,this.isPrevious=-1==this.direction;var e=this.parent.options.rightToLeft?1:-1;this.isLeft=this.direction==e;var t=this.element=document.createElement("button");t.className="flickity-button flickity-prev-next-button",t.className+=this.isPrevious?" previous":" next",t.setAttribute("type","button"),this.disable(),t.setAttribute("aria-label",this.isPrevious?"Previous":"Next");var n=this.createSVG();t.appendChild(n),this.parent.on("select",this.update.bind(this)),this.on("pointerDown",this.parent.childUIPointerDown.bind(this.parent))},r.prototype.activate=function(){this.bindStartEvent(this.element),this.element.addEventListener("click",this),this.parent.element.appendChild(this.element)},r.prototype.deactivate=function(){this.parent.element.removeChild(this.element),this.unbindStartEvent(this.element),this.element.removeEventListener("click",this)},r.prototype.createSVG=function(){var e=document.createElementNS(s,"svg");e.setAttribute("class","flickity-button-icon"),e.setAttribute("viewBox","0 0 100 100");var t=document.createElementNS(s,"path"),n=o(this.parent.options.arrowShape);return t.setAttribute("d",n),t.setAttribute("class","arrow"),this.isLeft||t.setAttribute("transform","translate(100, 100) rotate(180) "),e.appendChild(t),e},r.prototype.handleEvent=i.handleEvent,r.prototype.onclick=function(){if(this.isEnabled){this.parent.uiChange();var e=this.isPrevious?"previous":"next";this.parent[e]()}},r.prototype.enable=function(){this.isEnabled||(this.element.disabled=!1,this.isEnabled=!0)},r.prototype.disable=function(){this.isEnabled&&(this.element.disabled=!0,this.isEnabled=!1)},r.prototype.update=function(){var e=this.parent.slides;if(this.parent.options.wrapAround&&1<e.length)this.enable();else{var t=e.length?e.length-1:0,n=this.isPrevious?0:t;this[this.parent.selectedIndex==n?"disable":"enable"]()}},r.prototype.destroy=function(){this.deactivate(),this.allOff()},i.extend(t.defaults,{prevNextButtons:!0,arrowShape:{x0:10,x1:60,y1:50,x2:70,y2:40,x3:30}}),t.createMethods.push("_createPrevNextButtons");var a=t.prototype;return a._createPrevNextButtons=function(){this.options.prevNextButtons&&(this.prevButton=new r(-1,this),this.nextButton=new r(1,this),this.on("activate",this.activatePrevNextButtons))},a.activatePrevNextButtons=function(){this.prevButton.activate(),this.nextButton.activate(),this.on("deactivate",this.deactivatePrevNextButtons)},a.deactivatePrevNextButtons=function(){this.prevButton.deactivate(),this.nextButton.deactivate(),this.off("deactivate",this.deactivatePrevNextButtons)},t.PrevNextButton=r,t}),function(i,r){"function"==typeof define&&define.amd?define("flickity/js/page-dots",["./flickity","unipointer/unipointer","fizzy-ui-utils/utils"],function(e,t,n){return r(i,e,t,n)}):"object"==typeof module&&module.exports?module.exports=r(i,require("./flickity"),require("unipointer"),require("fizzy-ui-utils")):r(i,i.Flickity,i.Unipointer,i.fizzyUIUtils)}(window,function(e,t,n,i){function r(e){this.parent=e,this._create()}r.prototype=Object.create(n.prototype),r.prototype._create=function(){this.holder=document.createElement("ol"),this.holder.className="flickity-page-dots",this.dots=[],this.handleClick=this.onClick.bind(this),this.on("pointerDown",this.parent.childUIPointerDown.bind(this.parent))},r.prototype.activate=function(){this.setDots(),this.holder.addEventListener("click",this.handleClick),this.bindStartEvent(this.holder),this.parent.element.appendChild(this.holder)},r.prototype.deactivate=function(){this.holder.removeEventListener("click",this.handleClick),this.unbindStartEvent(this.holder),this.parent.element.removeChild(this.holder)},r.prototype.setDots=function(){var e=this.parent.slides.length-this.dots.length;0<e?this.addDots(e):e<0&&this.removeDots(-e)},r.prototype.addDots=function(e){for(var t=document.createDocumentFragment(),n=[],i=this.dots.length,r=i+e,o=i;o<r;o++){var s=document.createElement("li");s.className="dot",s.setAttribute("aria-label","Page dot "+(o+1)),t.appendChild(s),n.push(s)}this.holder.appendChild(t),this.dots=this.dots.concat(n)},r.prototype.removeDots=function(e){this.dots.splice(this.dots.length-e,e).forEach(function(e){this.holder.removeChild(e)},this)},r.prototype.updateSelected=function(){this.selectedDot&&(this.selectedDot.className="dot",this.selectedDot.removeAttribute("aria-current")),this.dots.length&&(this.selectedDot=this.dots[this.parent.selectedIndex],this.selectedDot.className="dot is-selected",this.selectedDot.setAttribute("aria-current","step"))},r.prototype.onTap=r.prototype.onClick=function(e){
var t=e.target;if("LI"==t.nodeName){this.parent.uiChange();var n=this.dots.indexOf(t);this.parent.select(n)}},r.prototype.destroy=function(){this.deactivate(),this.allOff()},t.PageDots=r,i.extend(t.defaults,{pageDots:!0}),t.createMethods.push("_createPageDots");var o=t.prototype;return o._createPageDots=function(){this.options.pageDots&&(this.pageDots=new r(this),this.on("activate",this.activatePageDots),this.on("select",this.updateSelectedPageDots),this.on("cellChange",this.updatePageDots),this.on("resize",this.updatePageDots),this.on("deactivate",this.deactivatePageDots))},o.activatePageDots=function(){this.pageDots.activate()},o.updateSelectedPageDots=function(){this.pageDots.updateSelected()},o.updatePageDots=function(){this.pageDots.setDots()},o.deactivatePageDots=function(){this.pageDots.deactivate()},t.PageDots=r,t}),function(e,i){"function"==typeof define&&define.amd?define("flickity/js/player",["ev-emitter/ev-emitter","fizzy-ui-utils/utils","./flickity"],function(e,t,n){return i(e,t,n)}):"object"==typeof module&&module.exports?module.exports=i(require("ev-emitter"),require("fizzy-ui-utils"),require("./flickity")):i(e.EvEmitter,e.fizzyUIUtils,e.Flickity)}(window,function(e,t,n){function i(e){this.parent=e,this.state="stopped",this.onVisibilityChange=this.visibilityChange.bind(this),this.onVisibilityPlay=this.visibilityPlay.bind(this)}i.prototype=Object.create(e.prototype),i.prototype.play=function(){"playing"!=this.state&&(document.hidden?document.addEventListener("visibilitychange",this.onVisibilityPlay):(this.state="playing",document.addEventListener("visibilitychange",this.onVisibilityChange),this.tick()))},i.prototype.tick=function(){if("playing"==this.state){var e=this.parent.options.autoPlay;e="number"==typeof e?e:3e3;var t=this;this.clear(),this.timeout=setTimeout(function(){t.parent.next(!0),t.tick()},e)}},i.prototype.stop=function(){this.state="stopped",this.clear(),document.removeEventListener("visibilitychange",this.onVisibilityChange)},i.prototype.clear=function(){clearTimeout(this.timeout)},i.prototype.pause=function(){"playing"==this.state&&(this.state="paused",this.clear())},i.prototype.unpause=function(){"paused"==this.state&&this.play()},i.prototype.visibilityChange=function(){this[document.hidden?"pause":"unpause"]()},i.prototype.visibilityPlay=function(){this.play(),document.removeEventListener("visibilitychange",this.onVisibilityPlay)},t.extend(n.defaults,{pauseAutoPlayOnHover:!0}),n.createMethods.push("_createPlayer");var r=n.prototype;return r._createPlayer=function(){this.player=new i(this),this.on("activate",this.activatePlayer),this.on("uiChange",this.stopPlayer),this.on("pointerDown",this.stopPlayer),this.on("deactivate",this.deactivatePlayer)},r.activatePlayer=function(){this.options.autoPlay&&(this.player.play(),this.element.addEventListener("mouseenter",this))},r.playPlayer=function(){this.player.play()},r.stopPlayer=function(){this.player.stop()},r.pausePlayer=function(){this.player.pause()},r.unpausePlayer=function(){this.player.unpause()},r.deactivatePlayer=function(){this.player.stop(),this.element.removeEventListener("mouseenter",this)},r.onmouseenter=function(){this.options.pauseAutoPlayOnHover&&(this.player.pause(),this.element.addEventListener("mouseleave",this))},r.onmouseleave=function(){this.player.unpause(),this.element.removeEventListener("mouseleave",this)},n.Player=i,n}),function(n,i){"function"==typeof define&&define.amd?define("flickity/js/add-remove-cell",["./flickity","fizzy-ui-utils/utils"],function(e,t){return i(n,e,t)}):"object"==typeof module&&module.exports?module.exports=i(n,require("./flickity"),require("fizzy-ui-utils")):i(n,n.Flickity,n.fizzyUIUtils)}(window,function(e,t,i){function l(e){var t=document.createDocumentFragment();return e.forEach(function(e){t.appendChild(e.element)}),t}var n=t.prototype;return n.insert=function(e,t){var n=this._makeCells(e);if(n&&n.length){var i=this.cells.length;t=t===undefined?i:t;var r=l(n),o=t==i;if(o)this.slider.appendChild(r);else{var s=this.cells[t].element;this.slider.insertBefore(r,s)}if(0===t)this.cells=n.concat(this.cells);else if(o)this.cells=this.cells.concat(n);else{var a=this.cells.splice(t,i-t);this.cells=this.cells.concat(n).concat(a)}this._sizeCells(n),this.cellChange(t,!0)}},n.append=function(e){this.insert(e,this.cells.length)},n.prepend=function(e){this.insert(e,0)},n.remove=function(e){var t=this.getCells(e);if(t&&t.length){var n=this.cells.length-1;t.forEach(function(e){e.remove();var t=this.cells.indexOf(e);n=Math.min(t,n),i.removeFrom(this.cells,e)},this),this.cellChange(n,!0)}},n.cellSizeChange=function(e){var t=this.getCell(e);if(t){t.getSize();var n=this.cells.indexOf(t);this.cellChange(n)}},n.cellChange=function(e,t){var n=this.selectedElement;this._positionCells(e),this._getWrapShiftCells(),this.setGallerySize();var i=this.getCell(n);i&&(this.selectedIndex=this.getCellSlideIndex(i)),this.selectedIndex=Math.min(this.slides.length-1,this.selectedIndex),this.emitEvent("cellChange",[e]),this.select(this.selectedIndex),t&&this.positionSliderAtSelected()},t}),function(n,i){"function"==typeof define&&define.amd?define("flickity/js/lazyload",["./flickity","fizzy-ui-utils/utils"],function(e,t){return i(n,e,t)}):"object"==typeof module&&module.exports?module.exports=i(n,require("./flickity"),require("fizzy-ui-utils")):i(n,n.Flickity,n.fizzyUIUtils)}(window,function(e,t,s){"use strict";function r(e){if("IMG"==e.nodeName){var t=e.getAttribute("data-flickity-lazyload"),n=e.getAttribute("data-flickity-lazyload-src"),i=e.getAttribute("data-flickity-lazyload-srcset");if(t||n||i)return[e]}var r="img[data-flickity-lazyload], img[data-flickity-lazyload-src], img[data-flickity-lazyload-srcset]",o=e.querySelectorAll(r);return s.makeArray(o)}function o(e,t){this.img=e,this.flickity=t,this.load()}t.createMethods.push("_createLazyload");var n=t.prototype;return n._createLazyload=function(){this.on("select",this.lazyLoad)},n.lazyLoad=function(){var e=this.options.lazyLoad;if(e){var t="number"==typeof e?e:0,n=this.getAdjacentCellElements(t),i=[];n.forEach(function(e){var t=r(e);i=i.concat(t)}),i.forEach(function(e){new o(e,this)},this)}},o.prototype.handleEvent=s.handleEvent,o.prototype.load=function(){this.img.addEventListener("load",this),this.img.addEventListener("error",this);var e=this.img.getAttribute("data-flickity-lazyload")||this.img.getAttribute("data-flickity-lazyload-src"),t=this.img.getAttribute("data-flickity-lazyload-srcset");this.img.src=e,t&&this.img.setAttribute("srcset",t),this.img.removeAttribute("data-flickity-lazyload"),this.img.removeAttribute("data-flickity-lazyload-src"),this.img.removeAttribute("data-flickity-lazyload-srcset")},o.prototype.onload=function(e){this.complete(e,"flickity-lazyloaded")},o.prototype.onerror=function(e){this.complete(e,"flickity-lazyerror")},o.prototype.complete=function(e,t){this.img.removeEventListener("load",this),this.img.removeEventListener("error",this);var n=this.flickity.getParentCell(this.img),i=n&&n.element;this.flickity.cellSizeChange(i),this.img.classList.add(t),this.flickity.dispatchEvent("lazyLoad",e,i)},t.LazyLoader=o,t}),function(e,t){"function"==typeof define&&define.amd?define("flickity/js/index",["./flickity","./drag","./prev-next-button","./page-dots","./player","./add-remove-cell","./lazyload"],t):"object"==typeof module&&module.exports&&(module.exports=t(require("./flickity"),require("./drag"),require("./prev-next-button"),require("./page-dots"),require("./player"),require("./add-remove-cell"),require("./lazyload")))}(window,function(e){return e}),function(e,t){"function"==typeof define&&define.amd?define("flickity-as-nav-for/as-nav-for",["flickity/js/index","fizzy-ui-utils/utils"],t):"object"==typeof module&&module.exports?module.exports=t(require("flickity"),require("fizzy-ui-utils")):e.Flickity=t(e.Flickity,e.fizzyUIUtils)}(window,function(i,r){function a(e,t,n){return(t-e)*n+e}i.createMethods.push("_createAsNavFor");var e=i.prototype;return e._createAsNavFor=function(){this.on("activate",this.activateAsNavFor),this.on("deactivate",this.deactivateAsNavFor),this.on("destroy",this.destroyAsNavFor);var e=this.options.asNavFor;if(e){var t=this;setTimeout(function(){t.setNavCompanion(e)})}},e.setNavCompanion=function(e){e=r.getQueryElement(e);var t=i.data(e);if(t&&t!=this){this.navCompanion=t;var n=this;this.onNavCompanionSelect=function(){n.navCompanionSelect()},t.on("select",this.onNavCompanionSelect),this.on("staticClick",this.onNavStaticClick),this.navCompanionSelect(!0)}},e.navCompanionSelect=function(e){var t=this.navCompanion&&this.navCompanion.selectedCells;if(t){var n=t[0],i=this.navCompanion.cells.indexOf(n),r=i+t.length-1,o=Math.floor(a(i,r,this.navCompanion.cellAlign));if(this.selectCell(o,!1,e),this.removeNavSelectedElements(),!(o>=this.cells.length)){var s=this.cells.slice(i,r+1);this.navSelectedElements=s.map(function(e){return e.element}),this.changeNavSelectedClass("add")}}},e.changeNavSelectedClass=function(t){this.navSelectedElements.forEach(function(e){e.classList[t]("is-nav-selected")})},e.activateAsNavFor=function(){this.navCompanionSelect(!0)},e.removeNavSelectedElements=function(){this.navSelectedElements&&(this.changeNavSelectedClass("remove"),delete this.navSelectedElements)},e.onNavStaticClick=function(e,t,n,i){"number"==typeof i&&this.navCompanion.selectCell(i)},e.deactivateAsNavFor=function(){this.removeNavSelectedElements()},e.destroyAsNavFor=function(){this.navCompanion&&(this.navCompanion.off("select",this.onNavCompanionSelect),this.off("staticClick",this.onNavStaticClick),delete this.navCompanion)},i}),function(t,n){"use strict";"function"==typeof define&&define.amd?define("imagesloaded/imagesloaded",["ev-emitter/ev-emitter"],function(e){return n(t,e)}):"object"==typeof module&&module.exports?module.exports=n(t,require("ev-emitter")):t.imagesLoaded=n(t,t.EvEmitter)}("undefined"!=typeof window?window:this,function(t,e){function r(e,t){for(var n in t)e[n]=t[n];return e}function o(e){return Array.isArray(e)?e:"object"==typeof e&&"number"==typeof e.length?u.call(e):[e]}function s(e,t,n){if(!(this instanceof s))return new s(e,t,n);var i=e;"string"==typeof e&&(i=document.querySelectorAll(e)),i?(this.elements=o(i),this.options=r({},this.options),"function"==typeof t?n=t:r(this.options,t),n&&this.on("always",n),this.getImages(),a&&(this.jqDeferred=new a.Deferred),setTimeout(this.check.bind(this))):l.error("Bad element for imagesLoaded "+(i||e))}function n(e){this.img=e}function i(e,t){this.url=e,this.element=t,this.img=new Image}var a=t.jQuery,l=t.console,u=Array.prototype.slice;s.prototype=Object.create(e.prototype),s.prototype.options={},s.prototype.getImages=function(){this.images=[],this.elements.forEach(this.addElementImages,this)},s.prototype.addElementImages=function(e){"IMG"==e.nodeName&&this.addImage(e),!0===this.options.background&&this.addElementBackgroundImages(e);var t=e.nodeType;if(t&&c[t]){for(var n=e.querySelectorAll("img"),i=0;i<n.length;i++){var r=n[i];this.addImage(r)}if("string"==typeof this.options.background){var o=e.querySelectorAll(this.options.background);for(i=0;i<o.length;i++){var s=o[i];this.addElementBackgroundImages(s)}}}};var c={1:!0,9:!0,11:!0};return s.prototype.addElementBackgroundImages=function(e){var t=getComputedStyle(e);if(t)for(var n=/url\((['"])?(.*?)\1\)/gi,i=n.exec(t.backgroundImage);null!==i;){var r=i&&i[2];r&&this.addBackground(r,e),i=n.exec(t.backgroundImage)}},s.prototype.addImage=function(e){var t=new n(e);this.images.push(t)},s.prototype.addBackground=function(e,t){var n=new i(e,t);this.images.push(n)},s.prototype.check=function(){function t(e,t,n){setTimeout(function(){i.progress(e,t,n)})}var i=this;this.progressedCount=0,this.hasAnyBroken=!1,this.images.length?this.images.forEach(function(e){e.once("progress",t),e.check()}):this.complete()},s.prototype.progress=function(e,t,n){this.progressedCount++,this.hasAnyBroken=this.hasAnyBroken||!e.isLoaded,this.emitEvent("progress",[this,e,t]),this.jqDeferred&&this.jqDeferred.notify&&this.jqDeferred.notify(this,e),this.progressedCount==this.images.length&&this.complete(),this.options.debug&&l&&l.log("progress: "+n,e,t)},s.prototype.complete=function(){var e=this.hasAnyBroken?"fail":"done";if(this.isComplete=!0,this.emitEvent(e,[this]),this.emitEvent("always",[this]),this.jqDeferred){var t=this.hasAnyBroken?"reject":"resolve";this.jqDeferred[t](this)}},n.prototype=Object.create(e.prototype),n.prototype.check=function(){this.getIsImageComplete()?this.confirm(0!==this.img.naturalWidth,"naturalWidth"):(this.proxyImage=new Image,this.proxyImage.addEventListener("load",this),this.proxyImage.addEventListener("error",this),this.img.addEventListener("load",this),this.img.addEventListener("error",this),this.proxyImage.src=this.img.src)},n.prototype.getIsImageComplete=function(){return this.img.complete&&this.img.naturalWidth},n.prototype.confirm=function(e,t){this.isLoaded=e,this.emitEvent("progress",[this,this.img,t])},n.prototype.handleEvent=function(e){var t="on"+e.type;this[t]&&this[t](e)},n.prototype.onload=function(){this.confirm(!0,"onload"),this.unbindEvents()},n.prototype.onerror=function(){this.confirm(!1,"onerror"),this.unbindEvents()},n.prototype.unbindEvents=function(){this.proxyImage.removeEventListener("load",this),this.proxyImage.removeEventListener("error",this),this.img.removeEventListener("load",this),this.img.removeEventListener("error",this)},i.prototype=Object.create(n.prototype),i.prototype.check=function(){this.img.addEventListener("load",this),this.img.addEventListener("error",this),this.img.src=this.url,this.getIsImageComplete()&&(this.confirm(0!==this.img.naturalWidth,"naturalWidth"),this.unbindEvents())},i.prototype.unbindEvents=function(){this.img.removeEventListener("load",this),this.img.removeEventListener("error",this)},i.prototype.confirm=function(e,t){this.isLoaded=e,this.emitEvent("progress",[this,this.element,t])},s.makeJQueryPlugin=function(e){(e=e||t.jQuery)&&((a=e).fn.imagesLoaded=function(e,t){return new s(this,e,t).jqDeferred.promise(a(this))})},s.makeJQueryPlugin(),s}),function(n,i){"function"==typeof define&&define.amd?define(["flickity/js/index","imagesloaded/imagesloaded"],function(e,t){return i(n,e,t)}):"object"==typeof module&&module.exports?module.exports=i(n,require("flickity"),require("imagesloaded")):n.Flickity=i(n,n.Flickity,n.imagesLoaded)}(window,function(e,t,n){"use strict";t.createMethods.push("_createImagesLoaded");var i=t.prototype;return i._createImagesLoaded=function(){this.on("activate",this.imagesLoaded)},i.imagesLoaded=function(){function e(e,t){var n=i.getParentCell(t.img);i.cellSizeChange(n&&n.element),i.options.freeScroll||i.positionSliderAtSelected()}if(this.options.imagesLoaded){var i=this;n(this.slider).on("progress",e)}},t}),function(e,t){"function"==typeof define&&define.amd?define(["flickity/js/index","fizzy-ui-utils/utils"],t):"object"==typeof module&&module.exports?module.exports=t(require("flickity"),require("fizzy-ui-utils")):t(e.Flickity,e.fizzyUIUtils)}(this,function(e,a){var t=e.Slide,r=t.prototype.updateTarget;t.prototype.updateTarget=function(){if(r.apply(this,arguments),this.parent.options.fade){var n=this.target-this.x,i=this.cells[0].x;this.cells.forEach(function(e){var t=e.x-i-n;e.renderPosition(t)})}},t.prototype.setOpacity=function(t){this.cells.forEach(function(e){e.element.style.opacity=t})};var n=e.prototype;e.createMethods.push("_createFade"),n._createFade=function(){this.fadeIndex=this.selectedIndex,this.prevSelectedIndex=this.selectedIndex,this.on("select",this.onSelectFade),this.on("dragEnd",this.onDragEndFade),this.on("settle",this.onSettleFade),this.on("activate",this.onActivateFade),this.on("deactivate",this.onDeactivateFade)};var i=n.updateSlides;n.updateSlides=function(){i.apply(this,arguments),this.options.fade&&this.slides.forEach(function(e,t){var n=t==this.selectedIndex?1:0;e.setOpacity(n)},this)},n.onSelectFade=function(){this.fadeIndex=Math.min(this.prevSelectedIndex,this.slides.length-1),this.prevSelectedIndex=this.selectedIndex},n.onSettleFade=function(){(delete this.didDragEnd,this.options.fade)&&(this.selectedSlide.setOpacity(1),this.slides[this.fadeIndex]&&this.fadeIndex!=this.selectedIndex&&this.slides[this.fadeIndex].setOpacity(0))},n.onDragEndFade=function(){this.didDragEnd=!0},n.onActivateFade=function(){this.options.fade&&this.element.classList.add("is-fade")},n.onDeactivateFade=function(){this.options.fade&&(this.element.classList.remove("is-fade"),this.slides.forEach(function(e){e.setOpacity("")}))};var o=n.positionSlider;n.positionSlider=function(){this.options.fade?(this.fadeSlides(),this.dispatchScrollEvent()):o.apply(this,arguments)};var s=n.positionSliderAtSelected;n.positionSliderAtSelected=function(){this.options.fade&&this.setTranslateX(0),s.apply(this,arguments)},n.fadeSlides=function(){if(!(this.slides.length<2)){var e=this.getFadeIndexes(),t=this.slides[e.a],n=this.slides[e.b],i=this.wrapDifference(t.target,n.target),r=this.wrapDifference(t.target,-this.x);r/=i,t.setOpacity(1-r),n.setOpacity(r);var o=e.a;this.isDragging&&(o=.5<r?e.a:e.b),this.fadeHideIndex!=undefined&&this.fadeHideIndex!=o&&this.fadeHideIndex!=e.a&&this.fadeHideIndex!=e.b&&this.slides[this.fadeHideIndex].setOpacity(0),this.fadeHideIndex=o}},n.getFadeIndexes=function(){return this.isDragging||this.didDragEnd?this.options.wrapAround?this.getFadeDragWrapIndexes():this.getFadeDragLimitIndexes():{a:this.fadeIndex,b:this.selectedIndex}},n.getFadeDragWrapIndexes=function(){var e=this.slides.map(function(e,t){return this.getSlideDistance(-this.x,t)},this),t=e.map(function(e){return Math.abs(e)}),n=Math.min.apply(Math,t),i=t.indexOf(n),r=e[i],o=this.slides.length,s=0<=r?1:-1;return{a:i,b:a.modulo(i+s,o)}},n.getFadeDragLimitIndexes=function(){for(var e=0,t=0;t<this.slides.length-1;t++){var n=this.slides[t];if(-this.x<n.target)break;e=t}return{a:e,b:e+1}},n.wrapDifference=function(e,t){var n=t-e;if(!this.options.wrapAround)return n;var i=n+this.slideableWidth,r=n-this.slideableWidth;return Math.abs(i)<Math.abs(n)&&(n=i),Math.abs(r)<Math.abs(n)&&(n=r),n};var l=n._getWrapShiftCells;n._getWrapShiftCells=function(){this.options.fade||l.apply(this,arguments)};var u=n.shiftWrapCells;return n.shiftWrapCells=function(){this.options.fade||u.apply(this,arguments)},e}),function(){function c(o,s,a){function l(n,e){if(!s[n]){if(!o[n]){var t="function"==typeof require&&require;if(!e&&t)return t(n,!0);if(u)return u(n,!0);var i=new Error("Cannot find module '"+n+"'");throw i.code="MODULE_NOT_FOUND",i}var r=s[n]={exports:{}};o[n][0].call(r.exports,function(e){var t=o[n][1][e];return l(t||e)},r,r.exports,c,o,s,a)}return s[n].exports}for(var u="function"==typeof require&&require,e=0;e<a.length;e++)l(a[e]);return l}return c}()({1:[function(){try{var e=new window.CustomEvent("test");if(e.preventDefault(),!0!==e.defaultPrevented)throw new Error("Could not prevent default")}catch(n){var t=function(e,t){var n,i;return t=t||{bubbles:!1,cancelable:!1,detail:undefined},(n=document.createEvent("CustomEvent")).initCustomEvent(e,t.bubbles,t.cancelable,t.detail),i=n.preventDefault,n.preventDefault=function(){i.call(this);try{Object.defineProperty(this,"defaultPrevented",{get:function(){return!0}})}catch(PSb){this.defaultPrevented=!0}},n};t.prototype=window.Event.prototype,window.CustomEvent=t}},{}],2:[function(e,t){"use strict";function n(e){if(e===undefined||null===e)throw new TypeError("Cannot convert first argument to object");for(var t=Object(e),n=1;n<arguments.length;n++){var i=arguments[n];if(i!==undefined&&null!==i)for(var r=Object.keys(Object(i)),o=0,s=r.length;o<s;o++){var a=r[o],l=Object.getOwnPropertyDescriptor(i,a);l!==undefined&&l.enumerable&&(t[a]=i[a])}}return t}function i(){Object.assign||Object.defineProperty(Object,"assign",{enumerable:!1,configurable:!0,writable:!0,value:n})}t.exports={assign:n,polyfill:i}},{}],3:[function(e,t){"use strict";var n=e("../index"),i=function(e){e.fn.modalVideo=function(e){return"strings"==typeof e||new n(this,e),this}};if("function"==typeof define&&define.amd)define(["jquery"],i);else{var r=window.jQuery?window.jQuery:window.$;void 0!==r&&i(r)}t.exports=i},{"../index":5}],4:[function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(n,"__esModule",{value:!0});var o=function(){function i(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(e,t,n){return t&&i(e.prototype,t),n&&i(e,n),e}}();e("custom-event-polyfill");var g=e("../lib/util"),s=e("es6-object-assign").assign,a={channel:"youtube",facebook:{},youtube:{autoplay:1,cc_load_policy:1,color:null,controls:1,disablekb:0,enablejsapi:0,end:null,fs:1,h1:null,iv_load_policy:1,loop:0,modestbranding:null,mute:0,origin:null,playsinline:null,rel:0,showinfo:1,start:0,wmode:"transparent",theme:"dark",nocookie:!1},ratio:"16:9",vimeo:{api:!1,autopause:!0,autoplay:!0,byline:!0,callback:null,color:null,controls:!0,height:null,loop:!1,maxheight:null,maxwidth:null,muted:!1,player_id:null,portrait:!0,title:!0,width:null,xhtml:!1},allowFullScreen:!0,allowAutoplay:!0,animationSpeed:300,classNames:{modalVideo:"modal-video",modalVideoClose:"modal-video-close",modalVideoBody:"modal-video-body",modalVideoInner:"modal-video-inner",modalVideoIframeWrap:"modal-video-movie-wrap",modalVideoCloseBtn:"modal-video-close-btn"},aria:{openMessage:"You just openned the modal video",dismissBtnMessage:"Close the modal by clicking here"}},i=function(){function i(e,t){var d=this;r(this,i);var h=s({},a,t),n="string"==typeof e?document.querySelectorAll(e):e,f=document.querySelector("body"),p=h.classNames,m=h.animationSpeed;[].forEach.call(n,function(c){c.addEventListener("click",function(e){"A"===c.tagName&&e.preventDefault();var t=c.dataset.videoId,n=c.dataset.channel||h.channel,i=(0,g.getUniqId)(),r=c.dataset.videoUrl||d.getVideoUrl(h,n,t),o=d.getHtml(h,r,i);(0,g.append)(f,o);var s=document.getElementById(i),a=s.querySelector(".js-modal-video-dismiss-btn"),l=void 0,u=function(){clearTimeout(l),l=setTimeout(function(){var e=d.getWidthFulfillAspectRatio(h.ratio,window.innerHeight,window.innerWidth),t=document.getElementById("modal-video-inner-"+i);t.style.maxWidth!==e&&(t.style.maxWidth=e)},10)};s.focus(),s.addEventListener("click",function(){(0,g.addClass)(s,p.modalVideoClose),window.removeEventListener("resize",u),setTimeout(function(){(0,g.remove)(s),c.focus()},m)}),s.addEventListener("keydown",function(e){9===e.which&&(e.preventDefault(),document.activeElement===s?a.focus():(s.setAttribute("aria-label",""),s.focus()))}),window.addEventListener("resize",u),a.addEventListener("click",function(){(0,g.triggerEvent)(s,"click")})})})}return o(i,[{key:"getPadding",value:function(e){var t=e.split(":"),n=Number(t[0]);return 100*Number(t[1])/n+"%"}},{key:"getWidthFulfillAspectRatio",value:function(e,t,n){var i=e.split(":"),r=Number(i[0]),o=Number(i[1]);return t<n*(o/r)?Math.floor(r/o*t)+"px":"100%"}},{key:"getQueryString",value:function(t){var n="";return Object.keys(t).forEach(function(e){n+=e+"="+t[e]+"&"}),n.substr(0,n.length-1)}},{key:"getVideoUrl",value:function(e,t,n){return"youtube"===t?this.getYoutubeUrl(e.youtube,n):"vimeo"===t?this.getVimeoUrl(e.vimeo,n):"facebook"===t?this.getFacebookUrl(e.facebook,n):"custom"===t?e.url:""}},{key:"getVimeoUrl",value:function(e,t){return"//player.vimeo.com/video/"+t+"?"+this.getQueryString(e)}},{key:"getYoutubeUrl",value:function(e,t){var n=this.getQueryString(e);return!0===e.nocookie?"//www.youtube-nocookie.com/embed/"+t+"?"+n:"//www.youtube.com/embed/"+t+"?"+n}},{key:"getFacebookUrl",value:function(e,t){return"//www.facebook.com/v2.10/plugins/video.php?href=https://www.facebook.com/facebook/videos/"+t+"&"+this.getQueryString(e)}},{key:"getHtml",value:function(e,t,n){var i=this.getPadding(e.ratio),r=e.classNames;return'\n      <div class="'+r.modalVideo+'" tabindex="-1" role="dialog" aria-label="'+e.aria.openMessage+'" id="'+n+'">\n        <div class="'+r.modalVideoBody+'">\n          <div class="'+r.modalVideoInner+'" id="modal-video-inner-'+n+'">\n            <div class="'+r.modalVideoIframeWrap+'" style="padding-bottom:'+i+'">\n              <button class="'+r.modalVideoCloseBtn+' js-modal-video-dismiss-btn" aria-label="'+e.aria.dismissBtnMessage+"\"></button>\n              <iframe width='460' height='230' src=\""+t+"\" frameborder='0' allowfullscreen="+e.allowFullScreen+' tabindex="-1" allow="'+(e.allowAutoplay?"autoplay;":"")+' accelerometer; encrypted-media; gyroscope; picture-in-picture" />\n            </div>\n          </div>\n        </div>\n      </div>\n    '}}]),i}();n["default"]=i,t.exports=n["default"]},{"../lib/util":6,"custom-event-polyfill":1,"es6-object-assign":2}],5:[function(e,t){"use strict";t.exports=e("./core/")},{"./core/":4}],6:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0});n.append=function(e,t){var n=document.createElement("div");for(n.innerHTML=t;0<n.children.length;)e.appendChild(n.children[0])},n.getUniqId=function(){return(Date.now().toString(36)+Math.random().toString(36).substr(2,5)).toUpperCase()},n.remove=function(e){e&&e.parentNode&&e.parentNode.removeChild(e)},n.addClass=function(e,t){e.classList?e.classList.add(t):e.className+=" "+t},n.triggerEvent=function(e,t,n){var i=void 0;window.CustomEvent?i=new CustomEvent(t,{cancelable:!0}):(i=document.createEvent("CustomEvent")).initCustomEvent(t,!1,!1,n),e.dispatchEvent(i)}},{}]},{},[3]),$(function(){$(".accordion-wrapper").each(function(){var n=$(this);n.find(".accordion-header").on("click keypress",function(e){if("keypress"!==e.type||"Enter"===e.code||"Space"===e.code){var t=$(e.target).hasClass("active");$(e.target).toggleClass("active"),$(e.target).attr("aria-expanded",!t),n.find(".accordion-content").slideToggle(),window.dispatchEvent(new Event("resize"))}})})}),$(function(){$(".traction-image-gallery").slick({slidesToShow:1,slidesToScroll:1,speed:250,fade:!0,arrows:!1,autoplay:!0,autoplaySpeed:5e3,adaptiveHeight:!1,asNavFor:".traction-image-gallery-nav"}),$(".traction-image-gallery-nav").slick({slidesToShow:3,slidesToScroll:1,arrows:!0,dots:!1,centerMode:!0,variableWidth:!0,pauseOnHover:!0,focusOnSelect:!0,adaptiveHeight:!1,asNavFor:".traction-image-gallery"})});var Carousel=function(e){this.domNode=e,this.items=[],this.firstItem=null,this.lastItem=null,this.currentDomNode=null,this.liveRegionNode=null,this.currentItem=null,this.pauseButton=null,this.startLabel="Start automatic slide show",this.stopLabel="Stop automatic slide show",this.rotate=!0,this.hasFocus=!1,this.hasHover=!1,this.isStopped=!1,this.timeInterval=5e3};Carousel.prototype.init=function(){this.liveRegionNode=this.domNode.querySelector(".homepage-carousel-items");var e=this.domNode.querySelectorAll(".homepage-carousel-item");if(this.clampCaptions(),1!==e.length){this.showPrevNextControls();for(var t=0;t<e.length;t++){var n=new CarouselItem(e[t],this);n.init(),this.items.push(n),this.firstItem||(this.firstItem=n,this.currentDomNode=n.domNode),this.lastItem=n;var i=e[t].querySelectorAll(".homepage-carousel-image a");i&&i[0]&&(i[0].addEventListener("focus",this.handleImageLinkFocus.bind(this)),i[0].addEventListener("blur",this.handleImageLinkBlur.bind(this)))}var r=document.querySelectorAll(".homepage-carousel a.homepage-carousel-control");for(t=0;t<r.length;t++){if("a"==r[t].tagName.toLowerCase())new CarouselButton(r[t],this).init()}if(this.currentItem=this.firstItem,this.pauseButton=this.domNode.parentNode.parentNode.querySelector("button.pause"),this.pauseButton)new PauseButton(this.pauseButton,this).init(),this.pauseButton.innerHTML=this.stopLabel;var o=this.domNode.querySelector(".homepage-carousel-inner");o.addEventListener("mouseover",this.handleMouseOver.bind(this)),o.addEventListener("mouseout",this.handleMouseOut.bind(this)),setTimeout(this.rotateSlides.bind(this),this.timeInterval)}else this.convertToSplashImage(e)},Carousel.prototype.showPrevNextControls=function(){for(var e=this.domNode.querySelectorAll(".homepage-carousel-control"),t=0;t<e.length;t++)e[t].classList.remove("hidden")},Carousel.prototype.clampCaptions=function(){for(var e=this.domNode.querySelectorAll(".homepage-carousel-caption div"),t=0;t<e.length;t++)$clamp(e[t],{clamp:2})},Carousel.prototype.convertToSplashImage=function(e){var t=document.querySelector(".homepage-carousel");t.removeAttribute("aria-roledescription"),t.removeAttribute("aria-label"),Array.from(document.querySelectorAll(".homepage-carousel-control")).forEach(function(e){e.parentNode.removeChild(e)}),this.liveRegionNode.removeAttribute("aria-live"),e[0].removeAttribute("role"),e[0].removeAttribute("aria-roledescription"),e[0].removeAttribute("aria-label")},Carousel.prototype.setSelected=function(e,t){"boolean"!=typeof t&&(t=!1);for(var n=0;n<this.items.length;n++)this.items[n].hide();this.currentItem=e,this.currentItem.show(),t&&this.currentItem.domNode.focus()},Carousel.prototype.setSelectedToPreviousItem=function(e,t){var n;"boolean"!=typeof t&&(t=!1),"object"!=typeof e&&(e=this.currentItem),e===this.firstItem?this.setSelected(this.lastItem,t):(n=this.items.indexOf(e),this.setSelected(this.items[n-1],t))},Carousel.prototype.setSelectedToNextItem=function(e,t){var n;"boolean"!=typeof t&&(t=!1),"object"!=typeof e&&(e=this.currentItem),e===this.lastItem?this.setSelected(this.firstItem,t):(n=this.items.indexOf(e),this.setSelected(this.items[n+1],t))},Carousel.prototype.rotateSlides=function(){this.rotate&&this.setSelectedToNextItem(),setTimeout(this.rotateSlides.bind(this),this.timeInterval)},Carousel.prototype.startRotation=function(){this.hasHover||this.hasFocus||this.isStopped||(this.rotate=!0,this.liveRegionNode.setAttribute("aria-live","off"),this.pauseButton.innerHTML=this.stopLabel),this.disablePauseButton()},Carousel.prototype.stopRotation=function(){this.rotate=!1,this.liveRegionNode.setAttribute("aria-live","polite"),this.pauseButton.innerHTML=this.startLabel,this.disablePauseButton()},Carousel.prototype.disablePauseButton=function(){this.hasHover||this.hasFocus?this.pauseButton.setAttribute("aria-disabled","true"):this.pauseButton.removeAttribute("aria-disabled")},Carousel.prototype.toggleRotation=function(){this.isStopped?"true"!==this.pauseButton.getAttribute("aria-disabled")&&(this.isStopped=!1,this.startRotation()):(this.isStopped=!0,this.stopRotation())},Carousel.prototype.handleImageLinkFocus=function(){this.liveRegionNode.classList.add("focus")},Carousel.prototype.handleImageLinkBlur=function(){this.liveRegionNode.classList.remove("focus")},Carousel.prototype.handleMouseOver=function(){this.hasHover=!0,this.stopRotation()},Carousel.prototype.handleMouseOut=function(){this.hasHover=!1,this.startRotation()};var CarouselItem=function(e,t){this.domNode=e,this.carousel=t};CarouselItem.prototype.init=function(){this.domNode.addEventListener("focusin",this.handleFocusIn.bind(this)),this.domNode.addEventListener("focusout",this.handleFocusOut.bind(this))},CarouselItem.prototype.hide=function(){var e=this.domNode;e.classList.contains("active")&&(e.classList.remove("active"),setTimeout(function(){e.style.display="none"},500))},CarouselItem.prototype.show=function(){var e=this.domNode;e.style.display="block",setTimeout(function(){e.classList.add("active")},1)},CarouselItem.prototype.handleFocusIn=function(){this.domNode.classList.add("focus"),this.carousel.hasFocus=!0,this.carousel.stopRotation()},CarouselItem.prototype.handleFocusOut=function(){this.domNode.classList.remove("focus"),this.carousel.hasFocus=!1,this.carousel.startRotation()};var CarouselButton=function(e,t){this.domNode=e,this.carousel=t,this.direction="previous",this.domNode.classList.contains("next")&&(this.direction="next"),this.keyCode=Object.freeze({RETURN:13,SPACE:32,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40})};CarouselButton.prototype.init=function(){this.domNode.addEventListener("keydown",this.handleKeydown.bind(this)),this.domNode.addEventListener("click",this.handleClick.bind(this)),this.domNode.addEventListener("focus",this.handleFocus.bind(this)),this.domNode.addEventListener("blur",this.handleBlur.bind(this))},CarouselButton.prototype.changeItem=function(){"previous"===this.direction?this.carousel.setSelectedToPreviousItem():this.carousel.setSelectedToNextItem()},CarouselButton.prototype.handleKeydown=function(e){var t=!1;switch(e.keyCode){case this.keyCode.SPACE:case this.keyCode.RETURN:this.changeItem(),this.domNode.focus(),t=!0}t&&(e.stopPropagation(),e.preventDefault())},CarouselButton.prototype.handleClick=function(){this.changeItem()},CarouselButton.prototype.handleFocus=function(){this.carousel.hasFocus=!0,this.domNode.classList.add("focus"),this.carousel.stopRotation()},
CarouselButton.prototype.handleBlur=function(){this.carousel.hasFocus=!1,this.domNode.classList.remove("focus"),this.carousel.startRotation()};var PauseButton=function(e,t){this.domNode=e,this.carousel=t},StartButton=function(e,t){this.domNode=e,this.carousel=t};PauseButton.prototype.init=function(){this.domNode.addEventListener("click",this.handleClick.bind(this)),this.domNode.addEventListener("focus",this.handleFocus.bind(this)),this.domNode.addEventListener("blur",this.handleBlur.bind(this))},PauseButton.prototype.handleClick=function(){this.carousel.toggleRotation()},PauseButton.prototype.handleFocus=function(){this.domNode.classList.add("focus")},PauseButton.prototype.handleBlur=function(){this.domNode.classList.remove("focus")},window.addEventListener("load",function(){for(var e=document.querySelectorAll(".homepage-carousel"),t=0;t<e.length;t++){new Carousel(e[t]).init()}},!1),window.$clamp=function(i,e){function n(e,t){return c.getComputedStyle||(c.getComputedStyle=function(n){return this.el=n,this.getPropertyValue=function(e){var t=/(\-([a-z]){1})/g;return"float"==e&&(e="styleFloat"),t.test(e)&&(e=e.replace(t,function(e,t,n){return n.toUpperCase()})),n.currentStyle&&n.currentStyle[e]?n.currentStyle[e]:null},this}),c.getComputedStyle(e,null).getPropertyValue(t)}function t(e){e=e||i.clientHeight;var t=o(i);return Math.max(Math.floor(e/t),0)}function r(e){return o(i)*e}function o(e){var t=n(e,"line-height");return"normal"==t&&(t=1.2*parseInt(n(e,"font-size"))),parseInt(t)}function s(e){return e.lastChild.children&&0<e.lastChild.children.length?s(Array.prototype.slice.call(e.children).pop()):e.lastChild&&e.lastChild.nodeValue&&""!=e.lastChild.nodeValue&&e.lastChild.nodeValue!=d.truncationChar?e.lastChild:(e.lastChild.parentNode.removeChild(e.lastChild),s(i))}function a(e,t){if(t){var n=e.nodeValue.replace(d.truncationChar,"");if(v||(S=0<w.length?w.shift():"",v=n.split(S)),1<v.length?(y=v.pop(),l(e,v.join(S))):v=null,u&&(e.nodeValue=e.nodeValue.replace(d.truncationChar,""),i.innerHTML=e.nodeValue+" "+u.innerHTML+d.truncationChar),v){if(i.clientHeight<=t){if(!(0<=w.length&&""!=S))return i.innerHTML;l(e,v.join(S)+S+y),v=null}}else""==S&&(l(e,""),e=s(i),w=d.splitOnChars.slice(0),S=w[0],y=v=null);if(!d.animate)return a(e,t);setTimeout(function(){a(e,t)},!0===d.animate?10:d.animate)}}function l(e,t){e.nodeValue=t+d.truncationChar}e=e||{};var u,c=window,d={clamp:e.clamp||2,useNativeClamp:"undefined"==typeof e.useNativeClamp||e.useNativeClamp,splitOnChars:e.splitOnChars||[".","-","\u2013","\u2014"," "],animate:e.animate||!1,truncationChar:e.truncationChar||"\u2026",truncationHTML:e.truncationHTML},h=i.style,f=i.innerHTML,p="undefined"!=typeof i.style.webkitLineClamp,m=d.clamp,g=m.indexOf&&(-1<m.indexOf("px")||-1<m.indexOf("em"));d.truncationHTML&&((u=document.createElement("span")).innerHTML=d.truncationHTML);var v,y,b,w=d.splitOnChars.slice(0),S=w[0];return"auto"==m?m=t():g&&(m=t(parseInt(m))),p&&d.useNativeClamp?(h.overflow="hidden",h.textOverflow="ellipsis",h.webkitBoxOrient="vertical",h.display="-webkit-box",h.webkitLineClamp=m,g&&(h.height=d.clamp+"px")):(h=r(m))<=i.clientHeight&&(b=a(s(i),h)),{original:f,clamped:b}},"undefined"==typeof Traction&&(Traction={}),Traction.EmergencyNotification=function(){var n="tractionEmergencyNotificationDismissedVersion";return{get:function(){return Traction.settings.emergencyNotification},dismissedVersion:function(){var e;try{e=window.localStorage.getItem(n)}catch(t){}return e||0},isDismissed:function(){var e=this.get();return e&&e.version?e.version<=this.dismissedVersion():undefined},setDismissed:function(){var e=this.get();if(e&&e.version)try{window.localStorage.setItem(n,e.version)}catch(t){}},setShowHandler:function(e){this.handler=e}}}(),Traction.EmergencyNotification.setShowHandler(function(e){function t(){"relative"===r.css("position")||"static"===r.css("position")?r.slideUp(function(){r.remove()}):r.fadeOut(function(){r.remove()})}var n,i,r=$('<div class="traction-emergency-notification" role="alert"></div>'),o=$('<div class="inner"></div>').appendTo(r);$("<button>Dismiss</button>").click(function(e){e.preventDefault(),e.stopPropagation(),Traction.EmergencyNotification.setDismissed(),t()}).appendTo(o),e.type&&r.addClass("traction-emergency-notification--"+e.type.replace(/^[a-z0-9_-]$/i,"-")),e.title&&(n=$("<h2></h2>").text(e.title)).appendTo(o),e.message&&(i=$("<p></p>").text(e.message)).appendTo(o);var s=$("#app"),a=$("#app > .app-body > .page"),l=a.length?a:s.length?s:document.body;r.hide().prependTo(l),e.url&&($link=$("<a></a>").attr({href:e.url}),n&&n.wrap($link),i&&i.wrap($link)),r.delay(500).slideDown()}),$(function(){var e=Traction.EmergencyNotification.get();if(e&&!Traction.EmergencyNotification.isDismissed()){var t=Traction.EmergencyNotification.handler;"function"==typeof t&&t(e)}}),$(function(){var e=$("#engage-modal");if(0<e.length){e.on("shown.bs.modal",function(){e.find("input[type=email]").focus()});var t=e.find("form");t.on("ajax:send",function(){e.find(".alert-success").addClass("hidden"),e.find(".alert-danger").addClass("hidden")}).on("ajax:error",function(){e.find(".alert-danger").removeClass("hidden"),i.removeAttr("disabled")}).on("ajax:success",function(){e.find(".alert-success").removeClass("hidden"),t.addClass("hidden")});var n=t.find(":checkbox[required]");n.on("change",function(){n.is(":checked")?n.removeAttr("required"):n.attr("required","required")});var i=e.find(".btn-default");window.submitEngageSignupModal=function(){0<t.find("input").filter(function(){return this.checkValidity&&!this.checkValidity()}).length?t[0].reportValidity?t[0].reportValidity():alert("One or more fields cannot be blank"):(i.attr("disabled","disabled"),Rails.fire(t[0],"submit"))}}}),$(function(){function e(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}var t=Traction.settings.internalHosts||[],n=window.location.host;t.push(n);var i=new RegExp("^(https?://("+t.map(e).join("|")+"))?/files/"),r=new RegExp("^https?://("+t.map(e).join("|")+")"),o=/^https?:\/\//;$("a").filter(function(){try{return this.href.match(i)||this.href.match(o)&&!this.href.match(r)}catch(e){return!1}}).addClass("external").click(function(e){window.open(this.href,"_blank"),e.preventDefault()})}),document.addEventListener("DOMContentLoaded",function(){var e,t,n,i;!function(){var e=document.querySelector("#external-site-scan-show-more");if(e){var t=document.querySelector("#external-site-scan-show-less"),n=document.querySelector("#external-site-scan-extra-results");e.onclick=function(){e.classList.add("hide"),t.classList.remove("hide"),n.classList.remove("hide")},t.onclick=function(){e.classList.remove("hide"),t.classList.add("hide"),n.classList.add("hide")}}}(),(e=document.querySelector("#report-link"))&&(e.setAttribute("value",location.href),document.querySelector("#report-link-button").onclick=function(){e.select(),document.execCommand("copy")}),t=1040,n=function(e){e.style.zIndex=t},i=function(e){e.style.zIndex=null},document.querySelectorAll("[data-toggle-external-page-scan-modal]").forEach(function(t){t.onclick=function(e){e.preventDefault(),$("#external-page-scan-modal .modal-body").load(t.dataset.url,function(){$("#external-page-scan-modal").modal({show:!0})})}}),$(".lighthouse-audit-modal").on("show.bs.modal",function(){var e=document.querySelector(".external-page-scan-modal.in");e&&n(e)}),$(".lighthouse-audit-modal").on("hide.bs.modal",function(){var e=document.querySelector(".external-page-scan-modal.in");e&&i(e)})},!1),$(function(){var i=500,r=3e3,o=250;$("#app-flash").each(function(){function e(){n.slideDown(o)}function t(){n.slideUp(o)}var n=$(this);setTimeout(function(){e(),setTimeout(function(){t()},r),n.click(function(){t()})},i)})}),$(function(){$(".carousel-card .main-carousel").flickity({cellAlign:"left",contain:!0,autoPlay:4e3,prevNextButtons:!1,fade:!0})}),$(function(){$(".carousel-clean .main-carousel").flickity({cellAlign:"left",contain:!0,autoPlay:4e3,prevNextButtons:!1})}),$(function(){$(".carousel-clean-spotlight .main-carousel").flickity({cellAlign:"left",contain:!0,autoPlay:4e3,prevNextButtons:!1})}),$(function(){$(".feature-carousel .main-carousel").flickity({cellAlign:"left",contain:!0,autoPlay:4e3,prevNextButtons:!1})}),$(function(){$(".feature-dropdown .dropdown-anchor").each(function(){var t=$(this);t.find(".menu__toggle").on("click",function(e){e.preventDefault(),t.find(".menu--has-submenu").toggleClass("expanded")}),$("#feature-dropdown-menu__toggle").on("keypress",function(e){13==e.which&&t.find(".menu--has-submenu").toggleClass("expanded")})})}),$(function(){$(".header-clean .menu-icon").on("click",function(e){e.preventDefault(),$(e.target).hasClass("active")?($(e.target).removeClass("active"),$("body").removeClass("menu-active")):($(e.target).addClass("active"),$("body").addClass("menu-active"))}),$(".header-clean .search-icon").on("click",function(e){e.preventDefault(),$(e.target).addClass("active"),$("body").addClass("search-active"),setTimeout(function(){$("#site-search").focus()},500)}),$(".header-clean .toolbar .close-icon").on("click",function(e){e.preventDefault(),$(e.target).removeClass("active"),$("body").removeClass("search-active")})}),$(function(){function e(e){e.isValid()?n.removeAttr("disabled"):n.attr("disabled","disabled")}var t=$("#stripe-payment-form");if(0<t.length){window.Parsley.addValidator("minimumAmount",{requirementType:"string",validateString:function(e,t){return t<=parseFloat(e.replace(/[^0-9.]/g,""))},messages:{en:"Amount must be greater than or equal to $%s"}});var n=t.find("input[type=submit]"),i=$("#pay-now"),r=$("#checkout-form-container");i.find("button").on("click",function(e){e.preventDefault(),r.slideDown(400,function(){i.hide()})});var o=t.parsley({trigger:"focusout keyup",errorsContainer:"#parsley-error-container"});$("#parsley-error-container").hide(),$(".require-at-least-one-checkbox").removeClass("require-at-least-one-checkbox"),window.Parsley.on("field:success",function(){e(o)}),window.Parsley.on("field:error",function(){e(o)}),t.on("change",function(){e(o)});var s=t.find('input[name="amount"]');0<s.length&&new AutoNumeric(s[0],{currencySymbol:""}),t.on("submit",function(){n.attr("disabled","disabled"),n.val("Processing..."),$.ajax({type:"POST",url:"/payments/stripe_checkout/create_checkout_session",data:t.serialize()}).done(function(e){return stripe.redirectToCheckout({sessionId:e.id})}).fail(function(){alert("Unable to process order"),n.removeAttr("disabled")})})}}),$(function(){$(".require-at-least-one-checkbox").each(function(e,t){var i=$(t).find("input[type=checkbox][required]");i.on("change",function(n){var e=i.filter(function(e,t){return $(n.target).attr("name")===$(t).attr("name")}),t=e.is(":checked");e.prop("required",!t)})})}),$(function(){function c(l,e){l=(l||"").trim(),e=e||0;var u=$("#search-modal");u.find(".search-box input").val(l),0!=l.length?i.search(l,{page:e,hitsPerPage:10,attributesToHighlight:["poc.title","text"],attributesToSnippet:["text:65"],distinct:1,facets:"siteID",facetFilters:["siteID:"+t],maxValuesPerFacet:1},function(e,t){u.modal({show:!0}),u.find(".search-results").empty();for(var n=0;n<t.hits.length;n++){var i=t.hits[n],r='<div class="search-result">';if(r+='<div class="poc-type">'+i.poc.pocType.label,i.source&&i.source.type){var o="";switch(i.source.type){case"body_file":o="File attachment";break;case"agenda":o="Agenda";break;case"minutes":o="Minutes";break;case"supporting_document":o="Supporting document"}0<o.length&&(r+=" - "+o)}r+="</div>",r+="<h5>";var s=i.poc.date&&moment(i.poc.date).format("ddd MMM D, YYYY")||"",a=[i.poc.title,s,i.poc.pocType.label,o];a=(a=(a=$.map(a,function(e){return""===e?null:e})).join(" ")).replace(/"/g,""),"body_file"==i.source.type?r+='<a aria-label="'+a+'" href="/pocs/'+i.poc.id+"#"+i.source.type+"-"+i.source.id+'">':r+='<a aria-label="'+a+'" href="/pocs/'+i.poc.id+'">',r+=i._highlightResult.poc.title.value,0<s.length&&(r+=" - "+s),r+="</a>",r+="</h5>",i._snippetResult&&i._snippetResult.text&&(r+="<p>"+i._snippetResult.text.value+"</p>"),r+="</div>",u.find(".search-results").append(r)}if(1<t.nbPages){r='<div class="search-pager">',r+='<ul class="pagination">';for(n=1;n<=t.nbPages;n++)t.page+1===n?r+='<li class="active"><a href="#">'+n+"</a></li>":r+='<li><a href="#">'+n+"</a></li>";r+="</ul>",r+="</div>",u.find(".search-results").append(r),u.find(".search-pager a").click(function(){c(l,parseInt(this.text)-1)})}t.hits.length||u.find(".search-results").append('<div class="search-no-results"><h4>No results found!</h4><p>Please rephrase your search and try again.</p></div>')}):u.find(".search-results").empty()}$("#search-modal").modal({show:!1});var e=Traction.settings.env,t=Traction.settings.siteId,n=Traction.settings.algoliaSearch;if(n){var i=algoliasearch(n.applicationId,n.apiKey).initIndex(e+"_content");$("form.search-box").submit(function(e){e.preventDefault(),c($(this).find("input").val())})}}),Traction.settings=Traction.settings||{},$(function(){var e=$(".wysiwym-embed-video");e.each(function(){var e=$(this).find("iframe");e.data("aspectRatio",e.height()/e.width()).removeAttr("height").removeAttr("width")}),$(window).bind("resize",function(){e.each(function(){var e=$(this),t=e.find("iframe"),n=e.width();t.width(n),t.height(n*t.data("aspectRatio"))})}).trigger("resize")}),$(function(){var e=$("#website-accessibility-policy-modal");if(0<e.length){var t=e.find("form");t.on("ajax:send",function(){e.find(".alert-success").addClass("hidden"),e.find(".alert-danger").addClass("hidden")}).on("ajax:error",function(){e.find(".alert-danger").removeClass("hidden"),n.removeAttr("disabled")}).on("ajax:success",function(){e.find(".alert-success").removeClass("hidden"),t.addClass("hidden")});var n=e.find(".btn-default");window.submitAccessibilityIssue=function(){0<t.find("input").filter(function(){return this.checkValidity&&!this.checkValidity()}).length?t[0].reportValidity?t[0].reportValidity():alert("One or more fields cannot be blank"):(n.attr("disabled","disabled"),Rails.fire(t[0],"submit"))}}window.location.hash.match(/website-accessibility-policy-modal/)&&(e.modal("show"),e.animate({scrollTop:e.height()},500))});