PageSourceSearch

https://www.mvmdistrict.org/assets/traction/application-e3ab3374be…2cbf337383f290761ede2f4ebd9cc1ab58c1c485.js

js mvmdistrict.org collected 2026-09-28 23:42:01 UTC 669,489 bytes, 21 lines download raw bytes

1function 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:not([data-turbo=true])",formInputClickSelector:"form:not([data-turbo=true]) input[type=submit], form:not([data-turbo=true]) input[type=image], form:not([data-turbo=true]) button[type=submit], form:not([data-turbo=true]) 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 t=e.Rails;(function(){(function(){var e;e=null,t.loadCSPNonce=function(){var t;return e=null!=(t=document.querySelector("meta[name=csp-nonce]"))?t.content:void 0},t.cspNonce=function(){return null!=e?e:t.loadCSPNonce()}}).call(this),function(){var e,i;i=Element.prototype.matches||Element.prototype.matchesSelector||Element.prototype.mozMatchesSelector||Element.prototype.msMatchesSelector||Element.prototype.oMatchesSelector||Element.prototype.webkitMatchesSelector,t.matches=function(e,t){return null!=t.exclude?i.call(e,t.selector)&&!i.call(e,t.exclude):i.call(e,t)},e="_ujsData",t.getData=function(t,i){var n;return null!=(n=t[e])?n[i]:void 0},t.setData=function(t,i,n){return null==t[e]&&(t[e]={}),t[e][i]=n},t.isContentEditable=function(e){var t;for(t=!1;;){if(e.isContentEditable){t=!0;break}if(!(e=e.parentElement))break}return t},t.$=function(e){return Array.prototype.slice.call(document.querySelectorAll(e))}}.call(this),function(){var e,i,n;e=t.$,n=t.csrfToken=function(){var e;return(e=document.querySelector("meta[name=csrf-token]"))&&e.content},i=t.csrfParam=function(){var e;return(e=document.querySelector("meta[name=csrf-param]"))&&e.content},t.CSRFProtection=function(e){var t;if(null!=(t=n()))return e.setRequestHeader("X-CSRF-Token",t)},t.refreshCSRFTokens=function(){var t,r;if(r=n(),t=i(),null!=r&&null!=t)return e('form input[name="'+t+'"]').forEach((function(e){return e.value=r}))}}.call(this),function(){var e,i,n,r;n=t.matches,"function"!=typeof(e=window.CustomEvent)&&((e=function(e,t){var i;return(i=document.createEvent("CustomEvent")).initCustomEvent(e,t.bubbles,t.cancelable,t.detail),i}).prototype=window.Event.prototype,r=e.prototype.preventDefault,e.prototype.preventDefault=function(){var e;return e=r.call(this),this.cancelable&&!this.defaultPrevented&&Object.defineProperty(this,"defaultPrevented",{get:function(){return!0}}),e}),i=t.fire=function(t,i,n){var r;return r=new e(i,{bubbles:!0,cancelable:!0,detail:n}
1),t.dispatchEvent(r),!r.defaultPrevented},t.stopEverything=function(e){return i(e.target,"ujs:everythingStopped"),e.preventDefault(),e.stopPropagation(),e.stopImmediatePropagation()},t.delegate=function(e,t,i,r){return e.addEventListener(i,(function(e){var i;for(i=e.target;i instanceof Element&&!n(i,t);)i=i.parentNode;if(i instanceof Element&&!1===r.call(i,e))return e.preventDefault(),e.stopPropagation()}))}}.call(this),function(){var e,i,n,r,o,s;r=t.cspNonce,i=t.CSRFProtection,t.fire,e={"*":"*/*",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"},t.ajax=function(e){var t;return e=o(e),t=n(e,(function(){var i,n;return n=s(null!=(i=t.response)?i:t.responseText,t.getResponseHeader("Content-Type")),2===Math.floor(t.status/100)?"function"==typeof e.success&&e.success(n,t.statusText,t):"function"==typeof e.error&&e.error(n,t.statusText,t),"function"==typeof e.complete?e.complete(t,t.statusText):void 0})),!(null!=e.beforeSend&&!e.beforeSend(t,e))&&(t.readyState===XMLHttpRequest.OPENED?t.send(e.data):void 0)},o=function(t){return t.url=t.url||location.href,t.type=t.type.toUpperCase(),"GET"===t.type&&t.data&&(t.url.indexOf("?")<0?t.url+="?"+t.data:t.url+="&"+t.data),null==e[t.dataType]&&(t.dataType="*"),t.accept=e[t.dataType],"*"!==t.dataType&&(t.accept+=", */*; q=0.01"),t},n=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 i,n;if("string"==typeof e&&"string"==typeof t)if(t.match(/\bjson\b/))try{e=JSON.parse(e)}catch(e){}else if(t.match(/\b(?:java|ecma)script\b/))(n=document.createElement("script")).setAttribute("nonce",r()),n.text=e,document.head.appendChild(n).parentNode.removeChild(n);else if(t.match(/\b(xml|html|svg)\b/)){i=new DOMParser,t=t.replace(/;.+/,"");try{e=i.parseFromString(e,t)}catch(e){}}return e},t.href=function(e){return e.href},t.isCrossDomain=function(e){var t,i;(t=document.createElement("a")).href=location.href,i=document.createElement("a");try{return i.href=e,!((!i.protocol||":"===i.protocol)&&!i.host||t.protocol+"//"+t.host==i.protocol+"//"+i.host)}catch(e){return!0}}}.call(this),function(){var e,i;e=t.matches,i=function(e){return Array.prototype.slice.call(e)},t.serializeElement=function(t,n){var r,o;return r=[t],e(t,"form")&&(r=i(t.elements)),o=[],r.forEach((function(t){if(t.name&&!t.disabled&&!e(t,"fieldset[disabled] *"))return e(t,"select")?i(t.options).forEach((function(e){if(e.selected)return o.push({name:t.name,value:e.value})})):t.checked||-1===["radio","checkbox","submit"].indexOf(t.type)?o.push({name:t.name,value:t.value}):void 0})),n&&o.push(n),o.map((function(e){return null!=e.name?encodeURIComponent(e.name)+"="+encodeURIComponent(e.value):e})).join("&")},t.formElements=function(t,n){return e(t,"form")?i(t.elements).filter((function(t){return e(t,n)})):i(t.querySelectorAll(n))}}.call(this),function(){var e,i,n;i=t.fire,n=t.stopEverything,t.handleConfirm=function(t){if(!e(this))return n(t)},t.confirm=function(e){return confirm(e)},e=function(e){var n,r,o;if(!(o=e.getAttribute("data-confirm")))return!0;if(n=!1,i(e,"confirm")){try{n=t.confirm(o,e)}catch(e){}r=i(e,"confirm:complete",[n])}return n&&r}}.call(this),function(){var e,i,n,r,o,s,a,l,u,c,d,h,f;d=t.matches,l=t.getData,h=t.setData,f=t.stopEverything,a=t.formElements,u=t.isContentEditable,t.handleDisabledElement=function(e){if(this.disabled)return f(e)},t.enableElement=function(e){var i;if(e instanceof Event){if(c(e))return;i=e.target}else i=e;if(!u(i))return d(i,t.linkDisableSelector)?s(i):d(i,t.buttonDisableSelector)||d(i,t.formEnableSelector)?r(i):d(i,t.formSubmitSelector)?o(i):void 0},t.disableElement=function(r){var o;if(o=r instanceof Event?r.target:r,!u(o))return d(o,t.linkDisableSelector)?n(o):d(o,t.buttonDisableSelector)||d(o,t.formDisableSelector)?e(o):d(o,t.formSubmitSelector)?i(o):void 0},n=function(e){var t;if(!l(e,"ujs:disabled"))return null!=(t=e.getAttribute("data-disable-with"))&&(h(e,"ujs:enable-with",e.innerHTML),e.innerHTML=t),e.addEventListener("click",f),h(e,"ujs:disabled",!0)},s=function(e){var t;return null!=(t=l(e,"ujs:enable-with"))&&(e.innerHTML=t,h(e,"ujs:enable-with",null)),e.removeEventListener("click",f),h(e,"ujs:disabled",null)},i=function(i){return a(i,t.formDisableSelector).forEach(e)},e=function(e){var t;if(!l(e,"ujs:disabled"))return null!=(t=e.getAttribute("data-disable-with"))&&(d(e,"button")?(h(e,"ujs:enable-with",e.innerHTML),e.innerHTML=t):(h(e,"ujs:enable-with",e.value),e.value=t)),e.disabled=!0,h(e,"ujs:disabled",!0)},o=function(e){return a(e,t.formEnableSelector).forEach(r)},r=function(e){var t;return null!=(t=l(e,"ujs:enable-with"))&&(d(e,"button")?e.innerHTML=t:e.value=t,h(e,"ujs:enable-with",null)),e.disabled=!1,h(e,"ujs:disabled",null)},c=function(e){var t,i;return null!=(null!=(i=null!=(t=e.detail)?t[0]:void 0)?i.getResponseHeader("X-Xhr-Redirect"):void 0)}}.call(this),function(){var e,i;i=t.stopEverything,e=t.isContentEditable,t.handleMethod=function(n){var r,o,s,a,l,u,c;if((c=(u=this).getAttribute("data-method"))&&!e(this))return l=t.href(u),o=t.csrfToken(),r=t.csrfParam(),s=document.createElement("form"),a="<input name='_method' value='"+c+"' type='hidden' />",null==r||null==o||t.isCrossDomain(l)||(a+="<input name='"+r+"' value='"+o+"' type='hidden' />"),a+='<input type="submit" />',s.method="post",s.action=l,s.target=u.target,s.innerHTML=a,s.style.display="none",document.body.appendChild(s),s.querySelector('[type="submit"]').click(),i(n)}}.call(this),function(){var e,i,n,r,o,s,a,l,u,c,d=[].slice;a=t.matches,n=t.getData,u=t.setData,i=t.fire,c=t.stopEverything,e=t.ajax,o=t.isCrossDomain,l=t.serializeElement,r=t.isContentEditable,s=function(e){var t;return null!=(t=e.getAttribute("data-remote"))&&"false"!==t},t.handleRemote=function(h){var f,p,m,g,v,y,b;return!s(g=this)||(i(g,"ajax:before")?r(g)?(i(g,"ajax:stopped"),!1):(b=g.getAttribute("data-with-credentials"),m=g.getAttribute("data-type")||"script",a(g,t.formSubmitSelector)?(f=n(g,"ujs:submit-button"),v=n(g,"ujs:submit-button-formmethod")||g.method,y=n(g,"ujs:submit-button-formaction")||g.getAttribute("action")||location.href,"GET"===v.toUpperCase()&&(y=y.replace(/\?.*$/,"")),"multipart/form-data"===g.enctype?(p=new FormData(g),null!=f&&p.append(f.name,f.value)):p=l(g,f),u(g,"ujs:submit-button",null),u(g,"ujs:submit-button-formmethod",null),u(g,"ujs:submit-button-formaction",null)):a(g,t.buttonClickSelector)||a(g,t.inputChangeSelector)?(v=g.getAttribute("data-method"),y=g.getAttribute("data-url"),p=l(g,g.getAttribute("data-params"))):(v=g.getAttribute("data-method"),y=t.href(g),p=g.getAttribute("data-params")),e({type:v||"GET",url:y,data:p,dataType:m,beforeSend:function(e,t){return i(g,"ajax:beforeSend",[e,t])?i(g,"ajax:send",[e]):(i(g,"ajax:stopped"),!1)},success:function(){var e;return e=1<=arguments.length?d.call(arguments,0):[],i(g,"ajax:success",e)},error:function(){var e;return e=1<=arguments.length?d.call(arguments,0):[],i(g,"ajax:error",e)},complete:function(){var e;return e=1<=arguments.length?d.call(arguments,0):[],i(g,"ajax:complete",e)},crossDomain:o(y),withCredentials:null!=b&&"false"!==b}),c(h)):(i(g,"ajax:stopped"),!1))},t.formSubmitButtonClick=function(){var e,t;if(t=(e=this).form)return e.name&&u(t,"ujs:submit-button",{name:e.name,value:e.value}),u(t,"ujs:formnovalidate-button",e.formNoValidate),u(t,"ujs:submit-button-formaction",e.getAttribute("formaction")),u(t,"ujs:submit-button-formmethod",e.getAttribute("formmethod"))},t.preventInsignificantClick=function(e){var t,i,n,r;if(r=((n=this).getAttribute("data-method")||"GET").toUpperCase(),t=n.getAttribute("data-params"),i=(e.metaKey||e.ctrlKey)&&"GET"===r&&!t,null!=e.button&&0!==e.button||i)return e.stopImmediatePropagation()}}.call(this),function(){var e,i,n,r,o,s,a,l,u,c,d,h,f,p,m;if(s=t.fire,n=t.delegate,l=t.getData,e=t.$,m=t.refreshCSRFTokens,i=t.CSRFProtection,f=t.loadCSPNonce,o=t.enableElement,r=t.disableElement,c=t.handleDisabledElement,u=t.handleConfirm,p=t.preventInsignificantClick,h=t.handleRemote,a=t.formSubmitButtonClick,d=t.handleMethod,"undefined"!=typeof jQuery&&null!==jQuery&&null!=jQuery.ajax){if(jQuery.rails)throw new Error("If you load both jquery_ujs and rails-u
1js, use rails-ujs only.");jQuery.rails=t,jQuery.ajaxPrefilter((function(e,t,n){if(!e.crossDomain)return i(n)}))}t.start=function(){if(window._rails_loaded)throw new Error("rails-ujs has already been loaded!");return window.addEventListener("pageshow",(function(){return e(t.formEnableSelector).forEach((function(e){if(l(e,"ujs:disabled"))return o(e)})),e(t.linkDisableSelector).forEach((function(e){if(l(e,"ujs:disabled"))return o(e)}))})),n(document,t.linkDisableSelector,"ajax:complete",o),n(document,t.linkDisableSelector,"ajax:stopped",o),n(document,t.buttonDisableSelector,"ajax:complete",o),n(document,t.buttonDisableSelector,"ajax:stopped",o),n(document,t.linkClickSelector,"click",p),n(document,t.linkClickSelector,"click",c),n(document,t.linkClickSelector,"click",u),n(document,t.linkClickSelector,"click",r),n(document,t.linkClickSelector,"click",h),n(document,t.linkClickSelector,"click",d),n(document,t.buttonClickSelector,"click",p),n(document,t.buttonClickSelector,"click",c),n(document,t.buttonClickSelector,"click",u),n(document,t.buttonClickSelector,"click",r),n(document,t.buttonClickSelector,"click",h),n(document,t.inputChangeSelector,"change",c),n(document,t.inputChangeSelector,"change",u),n(document,t.inputChangeSelector,"change",h),n(document,t.formSubmitSelector,"submit",c),n(document,t.formSubmitSelector,"submit",u),n(document,t.formSubmitSelector,"submit",h),n(document,t.formSubmitSelector,"submit",(function(e){return setTimeout((function(){return r(e)}),13)})),n(document,t.formSubmitSelector,"ajax:send",r),n(document,t.formSubmitSelector,"ajax:complete",o),n(document,t.formInputClickSelector,"click",p),n(document,t.formInputClickSelector,"click",c),n(document,t.formInputClickSelector,"click",u),n(document,t.formInputClickSelector,"click",a),document.addEventListener("DOMContentLoaded",m),document.addEventListener("DOMContentLoaded",f),window._rails_loaded=!0},window.Rails===t&&s(document,"rails:attachBindings")&&t.start()}.call(this)}).call(this),"object"==typeof module&&module.exports?module.exports=t:"function"==typeof define&&define.amd&&define(t)}).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,t){"use strict";function i(e,t,i){var n,r,o=(i=i||Se).createElement("script");if(o.text=e,t)for(n in ke)(r=t[n]||t.getAttribute&&t.getAttribute(n))&&o.setAttribute(n,r);i.head.appendChild(o).parentNode.removeChild(o)}function n(e){return null==e?e+"":"object"==typeof e||"function"==typeof e?fe[pe.call(e)]||"object":typeof e}function r(e){var t=!!e&&"length"in e&&e.length,i=n(e);return!be(e)&&!we(e)&&("array"===i||0===t||"number"==typeof t&&t>0&&t-1 in e)}function o(e,t){return e.nodeName&&e.nodeName.toLowerCase()===t.toLowerCase()}function s(e,t,i){return be(t)?_e.grep(e,(function(e,n){return!!t.call(e,n,e)!==i})):t.nodeType?_e.grep(e,(function(e){return e===t!==i})):"string"!=typeof t?_e.grep(e,(function(e){return he.call(t,e)>-1!==i})):_e.filter(t,e,i)}function a(e,t){for(;(e=e[t])&&1!==e.nodeType;);return e}function l(e){var t={};return _e.each(e.match(Ie)||[],(function(e,i){t[i]=!0})),t}function u(e){return e}function c(e){throw e}function d(e,t,i,n){var r;try{e&&be(r=e.promise)?r.call(e).done(t).fail(i):e&&be(r=e.then)?r.call(e,t,i):t.apply(void 0,[e].slice(n))}catch(e){i.apply(void 0,[e])}}function h(){Se.removeEventListener("DOMContentLoaded",h),e.removeEventListener("load",h),_e.ready()}function f(e,t){return t.toUpperCase()}function p(e){return e.replace(Re,"ms-").replace(Ve,f)}function m(){this.expando=_e.expando+m.uid++}function g(e){return"true"===e||"false"!==e&&("null"===e?null:e===+e+""?+e:ze.test(e)?JSON.parse(e):e)}function v(e,t,i){var n;if(void 0===i&&1===e.nodeType)if(n="data-"+t.replace(He,"-$&").toLowerCase(),"string"==typeof(i=e.getAttribute(n))){try{i=g(i)}catch(e){}Be.set(e,t,i)}else i=void 0;return i}function y(e,t,i,n){var r,o,s=20,a=n?function(){return n.cur()}:function(){return _e.css(e,t,"")},l=a(),u=i&&i[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),i=i||[]}return i&&(c=+c||+l||0,r=i[1]?c+(i[1]+1)*i[2]:+i[2],n&&(n.unit=u,n.start=c,n.end=r)),r}function b(e){var t,i=e.ownerDocument,n=e.nodeName,r=Xe[n];return r||(t=i.body.appendChild(i.createElement(n)),r=_e.css(t,"display"),t.parentNode.removeChild(t),"none"===r&&(r="block"),Xe[n]=r,r)}function w(e,t){for(var i,n,r=[],o=0,s=e.length;o<s;o++)(n=e[o]).style&&(i=n.style.display,t?("none"===i&&(r[o]=Ue.get(n,"display")||null,r[o]||(n.style.display="")),""===n.style.display&&Qe(n)&&(r[o]=b(n))):"none"!==i&&(r[o]="none",Ue.set(n,"display",i)));for(o=0;o<s;o++)null!=r[o]&&(e[o].style.display=r[o]);return e}function S(e,t){var i;return i=void 0!==e.getElementsByTagName?e.getElementsByTagName(t||"*"):void 0!==e.querySelectorAll?e.querySelectorAll(t||"*"):[],void 0===t||t&&o(e,t)?_e.merge([e],i):i}function k(e,t){for(var i=0,n=e.length;i<n;i++)Ue.set(e[i],"globalEval",!t||Ue.get(t[i],"globalEval"))}function x(e,t,i,r,o){for(var s,a,l,u,c,d,h=t.createDocumentFragment(),f=[],p=0,m=e.length;p<m;p++)if((s=e[p])||0===s)if("object"===n(s))_e.merge(f,s.nodeType?[s]:s);else if(ot.test(s)){for(a=a||h.appendChild(t.createElement("div")),l=(it.exec(s)||["",""])[1].toLowerCase(),u=rt[l]||rt._default,a.innerHTML=u[1]+_e.htmlPrefilter(s)+u[2],d=u[0];d--;)a=a.lastChild;_e.merge(f,a.childNodes),(a=h.firstChild).textContent=""}else f.push(t.createTextNode(s));for(h.textContent="",p=0;s=f[p++];)if(r&&_e.inArray(s,r)>-1)o&&o.push(s);else if(c=Ke(s),a=S(h.appendChild(s),"script"),c&&k(a),i)for(d=0;s=a[d++];)nt.test(s.type||"")&&i.push(s);return h}function _(){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,i,n,r,o){var s,a;if("object"==typeof t){for(a in"string"!=typeof i&&(n=n||i,i=void 0),t)P(e,a,i,n,t[a],o);return e}if(null==n&&null==r?(r=i,n=i=void 0):null==r&&("string"==typeof i?(r=n,n=void 0):(r=n,n=i,i=void 0)),!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)},r.guid=s.guid||(s.guid=_e.guid++)),e.each((function(){_e.event.add(this,t,r,n,i)}))}function O(e,t,i){i?(Ue.set(e,t,!1),_e.event.add(e,t,{namespace:!1,handler:function(e){var n,r,o=Ue.get(this,t);if(1&e.isTrigger&&this[t]){if(o.length)(_e.event.special[t]||{}).delegateType&&e.stopPropagation();else if(o=ue.call(arguments),Ue.set(this,t,o),n=i(this,t),this[t](),o!==(r=Ue.get(this,t))||n?Ue.set(this,t,!1):r={},o!==r)return e.stopImmediatePropagation(),e.preventDefault(),r.value}else o.length&&(Ue.set(this,t,{value:_e.event.trigger(_e.extend(o[0],_e.Event.prototype),o.slice(1),this)}),e.stopImmediatePropagation())}})):void 0===Ue.get(e,t)&&_e.event.add(e,t,_)}function N(e,t){return o(e,"table")&&o(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 i,n,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(i=0,n=a[r].length;i<n;i++)_e.event.add(t,r,a[r][i]);Be.hasData(e)&&(o=Be.access(e),s=_e.extend({},o),Be.set(t,s))}}function I(e,t){var i=t.nodeName.toLowerCase();
vendor: 5,510 bytes, line 1
1"input"===i&&tt.test(e.type)?t.checked=e.checked:"input"!==i&&"textarea"!==i||(t.defaultValue=e.defaultValue)}function L(e,t,n,r){t=ce(t);var o,s,a,l,u,c,d=0,h=e.length,f=h-1,p=t[0],m=be(p);if(m||h>1&&"string"==typeof p&&!ye.checkClone&&ct.test(p))return e.each((function(i){var o=e.eq(i);m&&(t[0]=p.call(this,i,o.html())),L(o,t,n,r)}));if(h&&(s=(o=x(t,e[0].ownerDocument,!1,e,r)).firstChild,1===o.childNodes.length&&(o=s),s||r)){for(l=(a=_e.map(S(o,"script"),A)).length;d<h;d++)u=o,d!==f&&(u=_e.clone(u,!0,!0),l&&_e.merge(a,S(u,"script"))),n.call(e[d],u,d);if(l)for(c=a[a.length-1].ownerDocument,_e.map(a,D),d=0;d<l;d++)u=a[d],nt.test(u.type||"")&&!Ue.access(u,"globalEval")&&_e.contains(c,u)&&(u.src&&"module"!==(u.type||"").toLowerCase()?_e._evalUrl&&!u.noModule&&_e._evalUrl(u.src,{nonce:u.nonce||u.getAttribute("nonce")},c):i(u.textContent.replace(dt,""),u,c))}return e}function M(e,t,i){for(var n,r=t?_e.filter(t,e):e,o=0;null!=(n=r[o]);o++)i||1!==n.nodeType||_e.cleanData(S(n)),n.parentNode&&(i&&Ke(n)&&k(S(n,"script")),n.parentNode.removeChild(n));return e}function j(e,t,i){var n,r,o,s,a=e.style;return(i=i||ft(e))&&(""!==(s=i.getPropertyValue(t)||i[t])||Ke(e)||(s=_e.style(e,t)),!ye.pixelBoxStyles()&&ht.test(s)&&mt.test(t)&&(n=a.width,r=a.minWidth,o=a.maxWidth,a.minWidth=a.maxWidth=a.width=s,s=i.width,a.width=n,a.minWidth=r,a.maxWidth=o)),void 0!==s?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),i=gt.length;i--;)if((e=gt[i]+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,i){var n=We.exec(t);return n?Math.max(0,n[2]-(i||0))+(n[3]||"px"):t}function B(e,t,i,n,r,o){var s="width"===t?1:0,a=0,l=0;if(i===(n?"border":"content"))return 0;for(;s<4;s+=2)"margin"===i&&(l+=_e.css(e,i+Ye[s],!0,r)),n?("content"===i&&(l-=_e.css(e,"padding"+Ye[s],!0,r)),"margin"!==i&&(l-=_e.css(e,"border"+Ye[s]+"Width",!0,r))):(l+=_e.css(e,"padding"+Ye[s],!0,r),"padding"!==i?l+=_e.css(e,"border"+Ye[s]+"Width",!0,r):a+=_e.css(e,"border"+Ye[s]+"Width",!0,r));return!n&&o>=0&&(l+=Math.max(0,Math.ceil(e["offset"+t[0].toUpperCase()+t.slice(1)]-o-l-a-.5))||0),l}function z(e,t,i){var n=ft(e),r=(!ye.boxSizingReliable()||i)&&"border-box"===_e.css(e,"boxSizing",!1,n),s=r,a=j(e,t,n),l="offset"+t[0].toUpperCase()+t.slice(1);if(ht.test(a)){if(!i)return a;a="auto"}return(!ye.boxSizingReliable()&&r||!ye.reliableTrDimensions()&&o(e,"tr")||"auto"===a||!parseFloat(a)&&"inline"===_e.css(e,"display",!1,n))&&e.getClientRects().length&&(r="border-box"===_e.css(e,"boxSizing",!1,n),(s=l in e)&&(a=e[l])),(a=parseFloat(a)||0)+B(e,t,i||(r?"border":"content"),s,n,a)+"px"}function H(e,t,i,n,r){return new H.prototype.init(e,t,i,n,r)}function q(){_t&&(!1===Se.hidden&&e.requestAnimationFrame?e.requestAnimationFrame(q):e.setTimeout(q,_e.fx.interval),_e.fx.tick())}function W(){return e.setTimeout((function(){xt=void 0})),xt=Date.now()}function Y(e,t){var i,n=0,r={height:e};for(t=t?1:0;n<4;n+=2-t)r["margin"+(i=Ye[n])]=r["padding"+i]=e;return t&&(r.opacity=r.width=e),r}function G(e,t,i){for(var n,r=(Q.tweeners[t]||[]).concat(Q.tweeners["*"]),o=0,s=r.length;o<s;o++)if(n=r[o].call(i,t,e))return n}function K(e,t,i){var n,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(n in i.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[n],Ct.test(r)){if(delete t[n],o=o||"toggle"===r,r===(m?"hide":"show")){if("show"!==r||!g||void 0===g[n])continue;m=!0}f[n]=g&&g[n]||_e.style(e,n)}if((l=!_e.isEmptyObject(t))||!_e.isEmptyObject(f))for(n in d&&1===e.nodeType&&(i.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:(w([e],!0),u=e.style.display||u,c=_e.css(e,"display"),w([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")),i.overflow&&(p.overflow="hidden",h.always((function(){p.overflow=i.overflow[0],p.overflowX=i.overflow[1],p.overflowY=i.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&&w([e],!0),h.done((function(){for(n in m||w([e]),Ue.remove(e,"fxshow"),f)_e.style(e,n,f[n])}))),l=G(m?g[n]:0,n,h),n in g||(g[n]=l.start,m&&(l.end=l.start,l.start=0))}function Z(e,t){var i,n,r,o,s;for(i in e)if(r=t[n=p(i)],o=e[i],Array.isArray(o)&&(r=o[1],o=e[i]=o[0]),i!==n&&(e[n]=o,delete e[i]),(s=_e.cssHooks[n])&&"expand"in s)for(i in o=s.expand(o),delete e[n],o)i in e||(e[i]=o[i],t[i]=r);else t[n]=r}function Q(e,t,i){var n,r,o=0,s=Q.prefilters.length,a=_e.Deferred().always((function(){delete l.elem})),l=function(){if(r)return!1;for(var t=xt||W(),i=Math.max(0,u.startTime+u.duration-t),n=1-(i/u.duration||0),o=0,s=u.tweens.length;o<s;o++)u.tweens[o].run(n);return a.notifyWith(e,[u,n,i]),n<1&&s?i:(s||a.notifyWith(e,[u,1,0]),a.resolveWith(e,[u]),!1)},u=a.promise({elem:e,props:_e.extend({},t),opts:_e.extend(!0,{specialEasing:{},easing:_e.easing._default},i),originalProperties:t,originalOptions:i,startTime:xt||W(),duration:i.duration,tweens:[],createTween:function(t,i){var n=_e.Tween(e,u.opts,t,i,u.opts.specialEasing[t]||u.o
vendor: 7,708 bytes, lines 1-2
1pts.easing);return u.tweens.push(n),n},stop:function(t){var i=0,n=t?u.tweens.length:0;if(r)return this;for(r=!0;i<n;i++)u.tweens[i].run(1);return t?(a.notifyWith(e,[u,1,0]),a.resolveWith(e,[u,t])):a.rejectWith(e,[u,t]),this}}),c=u.props;for(Z(c,u.opts.specialEasing);o<s;o++)if(n=Q.prefilters[o].call(u,e,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(e,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:e,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(e,t,i,r){var o;if(Array.isArray(t))_e.each(t,(function(t,n){i||jt.test(e)?r(e,n):te(e+"["+("object"==typeof n&&null!=n?t:"")+"]",n,i,r)}));else if(i||"object"!==n(t))r(e,t);else for(o in t)te(e+"["+o+"]",t[o],i,r)}function ie(e){return function(t,i){"string"!=typeof t&&(i=t,t="*");var n,r=0,o=t.toLowerCase().match(Ie)||[];if(be(i))for(;n=o[r++];)"+"===n[0]?(n=n.slice(1)||"*",(e[n]=e[n]||[]).unshift(i)):(e[n]=e[n]||[]).push(i)}}function ne(e,t,i,n){function r(a){var l;return o[a]=!0,_e.each(e[a]||[],(function(e,a){var u=a(t,i,n);return"string"!=typeof u||s||o[u]?s?!(l=u):void 0:(t.dataTypes.unshift(u),r(u),!1)})),l}var o={},s=e===Kt;return r(t.dataTypes[0])||!o["*"]&&r("*")}function re(e,t){var i,n,r=_e.ajaxSettings.flatOptions||{};for(i in t)void 0!==t[i]&&((r[i]?e:n||(n={}))[i]=t[i]);return n&&_e.extend(!0,e,n),e}function oe(e,t,i){for(var n,r,o,s,a=e.contents,l=e.dataTypes;"*"===l[0];)l.shift(),void 0===n&&(n=e.mimeType||t.getResponseHeader("Content-Type"));if(n)for(r in a)if(a[r]&&a[r].test(n)){l.unshift(r);break}if(l[0]in i)o=l[0];else{for(r in i){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),i[o]}function se(e,t,i,n){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]&&(i[e.responseFields[o]]=t),!l&&n&&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(e){return{state:"parsererror",error:s?e:"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=e.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(e){return this.pushStack(_e.map(this,(function(t,i){return e.call(t,i,t)})))},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,i=+e+(e<0?t:0);return this.pushStack(i>=0&&i<t?[this[i]]:[])},end:function(){return this.prevObject||this.constructor()},push:de,sort:ae.sort,splice:ae.splice},_e.extend=_e.fn.extend=function(){var e,t,i,n,r,o,s=arguments[0]||{},a=1,l=arguments.length,u=!1;for("boolean"==typeof s&&(u=s,s=arguments[a]||{},a++),"object"==typeof s||be(s)||(s={}),a===l&&(s=this,a--);a<l;a++)if(null!=(e=arguments[a]))for(t in e)n=e[t],"__proto__"!==t&&s!==n&&(u&&n&&(_e.isPlainObject(n)||(r=Array.isArray(n)))?(i=s[t],o=r&&!Array.isArray(i)?[]:r||_e.isPlainObject(i)?i:{},r=!1,s[t]=_e.extend(u,o,n)):void 0!==n&&(s[t]=n));return s},_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,i;return!(!e||"[object Object]"!==pe.call(e))&&(!(t=le(e))||"function"==typeof(i=me.call(t,"constructor")&&t.constructor)&&ge.call(i)===ve)},isEmptyObject:function(e){var t;for(t in e)return!1;return!0},globalEval:function(e,t,n){i(e,{nonce:t&&t.nonce},n)},each:function(e,t){var i,n=0;if(r(e))for(i=e.length;n<i&&!1!==t.call(e[n],n,e[n]);n++);else for(n in e)if(!1===t.call(e[n],n,e[n]))break;return e},makeArray:function(e,t){var i=t||[];return null!=e&&(r(Object(e))?_e.merge(i,"string"==typeof e?[e]:e):de.call(i,e)),i},inArray:function(e,t,i){return null==t?-1:he.call(t,e,i)},merge:function(e,t){for(var i=+t.length,n=0,r=e.length;n<i;n++)e[r++]=t[n];return e.length=r,e},grep:function(e,t,i){for(var n=[],r=0,o=e.length,s=!i;r<o;r++)!t(e[r],r)!==s&&n.push(e[r]);return n},map:function(e,t,i){var n,o,s=0,a=[];if(r(e))for(n=e.length;s<n;s++)null!=(o=t(e[s],s,i))&&a.push(o);else for(s in e)null!=(o=t(e[s],s,i))&&a.push(o);return ce(a)},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(e){function t(e,t,i,n){var r,o,s,a,l,u,c,h=t&&t.ownerDocument,p=t?t.nodeType:9;if(i=i||[],"string"!=typeof e||!e||1!==p&&9!==p&&11!==p)return i;if(!n&&(D(t),t=t||F,L)){if(11!==p&&(l=be.exec(e)))if(r=l[1]){if(9===p){if(!(s=t.getElementById(r)))return i;if(s.id===r)return i.push(s),i}else if(h&&(s=h.getElementById(r))&&V(t,s)&&s.id===r)return i.push(s),i}else{if(l[2])return J.apply(i,t.getElementsByTagName(e)),i;if((r=l[3])&&k.getElementsByClassName&&t.getElementsByClassName)return J.apply(i,t.getElementsByClassName(r)),i}if(k.qsa&&!Y[e+" "]&&(!M||!M.test(e))&&(1!==p||"object"!==t.nodeName.toLowerCase())){if(c=e,h=t,1===p&&(de.test(e)||ce.test(e))){for((h=we.test(e)&&d(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")+" "+f(u[o]);c=u.join(",")}try{return J.apply(i,h.querySelectorAll(c)),i}catch(t){Y(e,!0)}finally{a===$&&t.removeAttribute("id")}}}return P(e.replace(le,"$1"),t,i,n)}function i(){function e(i,n){return t.push(i+" ")>x.cacheLength&&delete e[t.shift()],e[i+" "]=n}var t=[];return e}function n(e){return e[$]=!0,e}function r(e){var t=F.createElement("fieldset");try{return!!e(t)}catch(e){return!1}finally{t.parentNode&&t.parentNode.removeChild(t),t=null}}function o(e,t){for(var i=e.split("|"),n=i.length;n--;)x.attrHandle[i[n]]=t}function s(e,t){var i=t&&e,n=i&&1===e.nodeType&&1===t.nodeType&&e.sourceIndex-t.sourceIndex;if(n)return n;if(i)for(;i=i.nextSibling;)if(i===t)return-1;return e?1:-1}function a(e){
2return function(t){return"input"===t.nodeName.toLowerCase()&&t.type===e}}function l(e){return function(t){var i=t.nodeName.toLowerCase();return("input"===i||"button"===i)&&t.type===e}}function u(e){return function(t){return"form"in t?t.parentNode&&!1===t.disabled?"label"in t?"label"in t.parentNode?t.parentNode.disabled===e:t.disabled===e:t.isDisabled===e||t.isDisabled!==!e&&Te(t)===e
vendor: 16,046 bytes, line 2
2:t.disabled===e:"label"in t&&t.disabled===e}}function c(e){return n((function(t){return t=+t,n((function(i,n){for(var r,o=e([],i.length,t),s=o.length;s--;)i[r=o[s]]&&(i[r]=!(n[r]=i[r]))}))}))}function d(e){return e&&void 0!==e.getElementsByTagName&&e}function h(){}function f(e){for(var t=0,i=e.length,n="";t<i;t++)n+=e[t].value;return n}function p(e,t,i){var n=t.dir,r=t.next,o=r||n,s=i&&"parentNode"===o,a=z++;return t.first?function(t,i,r){for(;t=t[n];)if(1===t.nodeType||s)return e(t,i,r);return!1}:function(t,i,l){var u,c,d,h=[B,a];if(l){for(;t=t[n];)if((1===t.nodeType||s)&&e(t,i,l))return!0}else for(;t=t[n];)if(1===t.nodeType||s)if(c=(d=t[$]||(t[$]={}))[t.uniqueID]||(d[t.uniqueID]={}),r&&r===t.nodeName.toLowerCase())t=t[n]||t;else{if((u=c[o])&&u[0]===B&&u[1]===a)return h[2]=u[2];if(c[o]=h,h[2]=e(t,i,l))return!0}return!1}}function m(e){return e.length>1?function(t,i,n){for(var r=e.length;r--;)if(!e[r](t,i,n))return!1;return!0}:e[0]}function g(e,i,n){for(var r=0,o=i.length;r<o;r++)t(e,i[r],n);return n}function v(e,t,i,n,r){for(var o,s=[],a=0,l=e.length,u=null!=t;a<l;a++)(o=e[a])&&(i&&!i(o,n,r)||(s.push(o),u&&t.push(a)));return s}function y(e,t,i,r,o,s){return r&&!r[$]&&(r=y(r)),o&&!o[$]&&(o=y(o,s)),n((function(n,s,a,l){var u,c,d,h=[],f=[],p=s.length,m=n||g(t||"*",a.nodeType?[a]:a,[]),y=!e||!n&&t?m:v(m,h,e,a,l),b=i?o||(n?e:p||r)?[]:s:y;if(i&&i(y,b,a,l),r)for(u=v(b,f),r(u,[],a,l),c=u.length;c--;)(d=u[c])&&(b[f[c]]=!(y[f[c]]=d));if(n){if(o||e){if(o){for(u=[],c=b.length;c--;)(d=b[c])&&u.push(y[c]=d);o(null,b=[],u,l)}for(c=b.length;c--;)(d=b[c])&&(u=o?te(n,d):h[c])>-1&&(n[u]=!(s[u]=d))}}else b=v(b===s?b.splice(p,b.length):b),o?o(null,s,b,l):J.apply(s,b)}))}function b(e){for(var t,i,n,r=e.length,o=x.relative[e[0].type],s=o||x.relative[" "],a=o?1:0,l=p((function(e){return e===t}),s,!0),u=p((function(e){return te(t,e)>-1}),s,!0),c=[function(e,i,n){var r=!o&&(n||i!==O)||((t=i).nodeType?l(e,i,n):u(e,i,n));return t=null,r}];a<r;a++)if(i=x.relative[e[a].type])c=[p(m(c),i)];else{if((i=x.filter[e[a].type].apply(null,e[a].matches))[$]){for(n=++a;n<r&&!x.relative[e[n].type];n++);return y(a>1&&m(c),a>1&&f(e.slice(0,a-1).concat({value:" "===e[a-2].type?"*":""})).replace(le,"$1"),i,a<n&&b(e.slice(a,n)),n<r&&b(e=e.slice(n)),n<r&&f(e))}c.push(i)}return m(c)}function w(e,i){var r=i.length>0,o=e.length>0,s=function(n,s,a,l,u){var c,d,h,f=0,p="0",m=n&&[],g=[],y=O,b=n||o&&x.find.TAG("*",u),w=B+=null==y?1:Math.random()||.1,S=b.length;for(u&&(O=s==F||s||u);p!==S&&null!=(c=b[p]);p++){if(o&&c){for(d=0,s||c.ownerDocument==F||(D(c),a=!L);h=e[d++];)if(h(c,s||F,a)){l.push(c);break}u&&(B=w)}r&&((c=!h&&c)&&f--,n&&m.push(c))}if(f+=p,r&&p!==f){for(d=0;h=i[d++];)h(m,g,s,a);if(n){if(f>0)for(;p--;)m[p]||g[p]||(g[p]=Q.call(l));g=v(g)}J.apply(l,g),u&&!n&&g.length>0&&f+i.length>1&&t.uniqueSort(l)}return u&&(B=w,O=y),m};return r?n(s):s}var S,k,x,_,C,T,E,P,O,N,A,D,F,I,L,M,j,R,V,$="sizzle"+1*new Date,U=e.document,B=0,z=0,H=i(),q=i(),W=i(),Y=i(),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 i=0,n=e.length;i<n;i++)if(e[i]===t)return i;return-1},ie="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",ne="[\\x20\\t\\r\\n\\f]",re="(?:\\\\[\\da-fA-F]{1,6}"+ne+"?|\\\\[^\\r\\n\\f]|[\\w-]|[^\0-\\x7f])+",oe="\\["+ne+"*("+re+")(?:"+ne+"*([*^$|!~]?=)"+ne+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+re+"))|)"+ne+"*\\]",se=":("+re+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+oe+")*)|.*)\\)|)",ae=new RegExp(ne+"+","g"),le=new RegExp("^"+ne+"+|((?:^|[^\\\\])(?:\\\\.)*)"+ne+"+$","g"),ue=new RegExp("^"+ne+"*,"+ne+"*"),ce=new RegExp("^"+ne+"*([>+~]|"+ne+")"+ne+"*"),de=new RegExp(ne+"|>"),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)(?:\\("+ne+"*(even|odd|(([+-]|)(\\d*)n|)"+ne+"*(?:([+-]|)"+ne+"*(\\d+)|))"+ne+"*\\)|)","i"),bool:new RegExp("^(?:"+ie+")$","i"),needsContext:new RegExp("^"+ne+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+ne+"*((?:-\\d)?\\d*)"+ne+"*\\)|)(?=[^-]|$)","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}"+ne+"?|\\\\([^\\r\\n\\f])","g"),ke=function(e,t){var i="0x"+e.slice(1)-65536;return t||(i<0?String.fromCharCode(i+65536):String.fromCharCode(i>>10|55296,1023&i|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=p((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(e){J={apply:Z.length?function(e,t){X.apply(e,ee.call(t))}:function(e,t){for(var i=e.length,n=0;e[i++]=t[n++];);e.length=i-1}}}for(S in k=t.support={},C=t.isXML=function(e){var t=e.namespaceURI,i=(e.ownerDocument||e).documentElement;return!me.test(t||i&&i.nodeName||"HTML")},D=t.setDocument=function(e){var t,i,n=e?e.ownerDocument||e:U;return n!=F&&9===n.nodeType&&n.documentElement?(I=(F=n).documentElement,L=!C(F),U!=F&&(i=F.defaultView)&&i.top!==i&&(i.addEventListener?i.addEventListener("unload",Ce,!1):i.attachEvent&&i.attachEvent("onunload",Ce)),k.scope=r((function(e){return I.appendChild(e).appendChild(F.createElement("div")),void 0!==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(void 0!==t.getElementById&&L){var i=t.getElementById(e);return i?[i]:[]}}):(x.filter.ID=function(e){var t=e.replace(Se,ke);return function(e){var i=void 0!==e.getAttributeNode&&e.getAttributeNode("id");return i&&i.value===t}},x.find.ID=function(e,t){if(void 0!==t.getElementById&&L){var i,n,r,o=t.getElementById(e);if(o){if((i=o.getAttributeNode("id"))&&i.value===e)return[o];for(r=t.getElementsByName(e),n=0;o=r[n++];)if((i=o.getAttributeNode("id"))&&i.value===e)return[o]}return[]}}),x.find.TAG=k.getElementsByTagName?function(e,t){return void 0!==t.getElementsByTagName?t.getElementsByTagName(e):k.qsa?t.querySelectorAll(e):void 0}:function(e,t){var i,n=[],r=0,o=t.getElementsByTagName(e);if("*"===e){for(;i=o[r++];)1===i.nodeType&&n.push(i);return n}return o},x.find.CLASS=k.getElementsByClassName&&function(e,t){if(void 0!==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("[*^$]="+ne+"*(?:''|\"\")"),e.querySelectorAll("[selected]").length||M.push("\\["+ne+"*(?:value|"+ie+")"),e.querySelectorAll("[id~="+$+"-]").length||M.push("~="),(t=F.createElement("input")).setAttribute("name",""),e.appendChild(t),e.querySelectorAll("[name='']").length||M.push("\\["+ne+"*name"+ne+"*="+ne+"*(?:''|\"\")"),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"+ne+"*[*^$|!~]?="),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 i=9===e.nodeType?e.documentElement:e,n=t&&t.parentNode;return e===n||!(!n||1!==n.nodeType||!(i.contains?i.contains(n):e.compareDocumentPosition&&16&e.compareDocumentPosition(n)))}: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 i=!e.compareDocumentPosition-!t.compareDocumentPosition;return i||(1&(i=(e.ownerDocument||e)==(t.ownerDocument||t)?e.compareDocumentPosition(t):1)||!k.sortDetached&&t.compareDocumentPosition(e)===i?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&i?-1:1)}:function(e,t){if(e===t)return A=!0,0;var i,n=0,r=e.parentNode,o=t.parentNode,a=[e],l=[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 s(e,t);for(i=e;i=i.parentNode;)a.unshift(i);for(i=t;i=i.parentNode;)l.unshift(i);for(;a[n]===l[n];)n++;return n?s(a[n],l[n]):a[n]==U?-1:l[n]==U?1:0},F):F},t.matches=function(e,i){return t(e,null,null,i)},t.matchesSelector=function(e,i){if(D(e),k.matchesSelector&&L&&!Y[i+" "]&&(!j||!j.test(i))&&(!M||!M.test(i)))try{var n=R.call(e,i);if(n||k.disconnectedMatch||e.document&&11!==e.document.nodeType)return n}catch(e){Y(i,!0)}return t(i,F,null,[e]).length>0},t.contains=function(e,t){return(e.ownerDocument||e)!=F&&D(e),V(e,t)},t.attr=function(e,t){(e.ownerDocument||e)!=F&&D(e);var i=x.attrHandle[t.toLowerCase()],n=i&&K.call(x.attrHandle,t.toLowerCase())?i(e,t,!L):void 0;return void 0!==n?n:k.attributes||!L?e.getAttribute(t):(n=e.getAttributeNode(t))&&n.specified?n.value:null},t.escape=function(e){return(e+"").replace(xe,_e)},t.error=function(e){throw new Error("Syntax error, unrecognized expression: "+e)},t.uniqueSort=function(e){var t,i=[],n=0,r=0;if(A=!k.detectDuplicates,N=!k.sortStable&&e.slice(0),e.sort(G),A){for(;t=e[r++];)t===e[r]&&(n=i.push(r));for(;n--;)e.splice(i[n],1)}return N=null,e},_=t.getText=function(e){var t,i="",n=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)i+=_(e)}else if(3===r||4===r)return e.nodeValue}else for(;t=e[n++];)i+=_(t);return i},x=t.selectors={cacheLength:50,createPseudo:n,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]||t.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]&&t.error(e[0]),e},PSEUDO:function(e){var t,i=!e[6]&&e[2];return pe.CHILD.test(e[0])?null:(e[3]?e[2]=e[4]||e[5]||"":i&&he.test(i)&&(t=T(i,!0))&&(t=i.indexOf(")",i.length-t)-i.length)&&(e[0]=e[0].slice(0,t),e[2]=i.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("(^|"+ne+")"+e+"("+ne+"|$)"))&&H(e,(function(e){return t.test("string"==typeof e.className&&e.className||void 0!==e.getAttribute&&e.getAttribute("class")||"")}))},ATTR:function(e,i,n){return function(r){var o=t.attr(r,e);return null==o?"!="===i:!i||(o+="","="===i?o===n:"!="===i?o!==n:"^="===i?n&&0===o.indexOf(n):"*="===i?n&&o.indexOf(n)>-1:"$="===i?n&&o.slice(-n.length)===n:"~="===i?(" "+o.replace(ae," ")+" ").indexOf(n)>-1:"|="===i&&(o===n||o.slice(0,n.length+1)===n+"-"))}},CHILD:function(e,t,i,n,r){var o="nth"!==e.slice(0,3),s="last"!==e.slice(-4),a="of-type"===t;return 1===n&&0===r?function(e){return!!e.parentNode}:function(t,i,l){var u,c,d,h,f,p,m=o!==s?"nextSibling":"previousSibling",g=t.parentNode,v=a&&t.nodeName.toLowerCase(),y=!l&&!a,b=!1;if(g){if(o){for(;m;){for(h=t;h=h[m];)if(a?h.nodeName.toLowerCase()===v:1===h.nodeType)return!1;p=m="only"===e&&!p&&"nextSibling"}return!0}if(p=[s?g.firstChild:g.lastChild],s&&y){for(b=(f=(u=(c=(d=(h=g)[$]||(h[$]={}))[h.uniqueID]||(d[h.uniqueID]={}))[e]||[])[0]===B&&u[1])&&u[2],h=f&&g.childNodes[f];h=++f&&h&&h[m]||(b=f=0)||p.pop();)if(1===h.nodeType&&++b&&h===t){c[e]=[B,f,b];break}}else if(y&&(b=f=(u=(c=(d=(h=t)[$]||(h[$]={}))[h.uniqueID]||(d[h.uniqueID]={}))[e]||[])[0]===B&&u[1]),!1===b)for(;(h=++f&&h&&h[m]||(b=f=0)||p.pop())&&((a?h.nodeName.toLowerCase()!==v:1!==h.nodeType)||!++b||(y&&((c=(d=h[$]||(h[$]={}))[h.uniqueID]||(d[h.uniqueID]={}))[e]=[B,b]),h!==t)););return(b-=r)===n||b%n==0&&b/n>=0}}},PSEUDO:function(e,i){var r,o=x.pseudos[e]||x.setFilters[e.toLowerCase()]||t.error("unsupported pseudo: "+e);return o[$]?o(i):o.length>1?(r=[e,e,"",i],x.setFilters.hasOwnProperty(e.toLowerCase())?n((function(e,t){for(var n,r=o(e,i),s=r.length;s--;)e[n=te(e,r[s])]=!(t[n]=r[s])})):function(e){return o(e,0,r)}):o}},pseudos:{not:n((function(e){var t=[],i=[],r=E(e.replace(le,"$1"));return r[$]?n((function(e,t,i,n){for(var o,s=r(e,null,n,[]),a=e.length;a--;)(o=s[a])&&(e[a]=!(t[a]=o))})):function(e,n,o){return t[0]=e,r(t,null,o,i),t[0]=null,!i.pop()}})),has:n((function(e){return function(i){return t(e,i).length>0}})),contains:n((function(e){return e=e.replace(Se,ke),function(t){return(t.textContent||_(t)).indexOf(e)>-1}})),lang:n((function(e){return fe.test(e||"")||t.error("unsupported lang: "+e),e=e.replace(Se,ke).toLowerCase(),function(t){var i;do{if(i=L?t.lang:t.getAttribute("xml:lang")||t.getAttribute("lang"))return(i=i.toLowerCase())===e||0===i.indexOf(e+"-")}while((t=t.parentNode)&&1===t.nodeType);return!1}})),target:function(t){var i=e.location&&e.location.hash;return i&&i.slice(1)===t.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:u(!1),disabled:u(!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:c((function(){return[0]})),last:c((function(e,t){return[t-1]})),eq:c((function(e,t,i){return[i<0?i+t:i]})),even:c((function(e,t){for(var i=0;i<t;i+=2)e.push(i);return e})),odd:c((function(e,t){for(var i=1;i<t;i+=2)e.push(i);return e})),lt:c((function(e,t,i){for(var n=i<0?i+t:i>t?t:i;--n>=0;)e.push(n);return e})),gt:c((function(e,t,i){for(var n=i<0?i+t:i;++n<t;)e.push(n);return e}))}},x.pseudos.nth=x.pseudos.eq,{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})x.pseudos[S]=a(S);for(S in{submit:!0,reset:!0})x.pseudos[S]=l(S);return h.prototype=x.filters=x.pseudos,x.setFilters=new h,T=t.tokenize=function(e,i){var n,r,o,s,a,l,u,c=q[e+" "];if(c)return i?0:c.slice(0);for(a=e,l=[],u=x.preFilter;a;
vendor: 7,618 bytes, line 2
2){for(s in n&&!(r=ue.exec(a))||(r&&(a=a.slice(r[0].length)||a),l.push(o=[])),n=!1,(r=ce.exec(a))&&(n=r.shift(),o.push({value:n,type:r[0].replace(le," ")}),a=a.slice(n.length)),x.filter)!(r=pe[s].exec(a))||u[s]&&!(r=u[s](r))||(n=r.shift(),o.push({value:n,type:s,matches:r}),a=a.slice(n.length));if(!n)break}return i?a.length:a?t.error(e):q(e,l).slice(0)},E=t.compile=function(e,t){var i,n=[],r=[],o=W[e+" "];if(!o){for(t||(t=T(e)),i=t.length;i--;)(o=b(t[i]))[$]?n.push(o):r.push(o);(o=W(e,w(r,n))).selector=e}return o},P=t.select=function(e,t,i,n){var r,o,s,a,l,u="function"==typeof e&&e,c=!n&&T(e=u.selector||e);if(i=i||[],1===c.length){if((o=c[0]=c[0].slice(0)).length>2&&"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 i;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])&&(n=l(s.matches[0].replace(Se,ke),we.test(o[0].type)&&d(t.parentNode)||t))){if(o.splice(r,1),!(e=n.length&&f(o)))return J.apply(i,n),i;break}}return(u||E(e,c))(n,t,!L,i,!t||we.test(e)&&d(t.parentNode)||t),i},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")}))||o("type|href|height|width",(function(e,t,i){if(!i)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")}))||o("value",(function(e,t,i){if(!i&&"input"===e.nodeName.toLowerCase())return e.defaultValue})),r((function(e){return null==e.getAttribute("disabled")}))||o(ie,(function(e,t,i){var n;if(!i)return!0===e[t]?t.toLowerCase():(n=e.getAttributeNode(t))&&n.specified?n.value:null})),t}(e);_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,i){for(var n=[],r=void 0!==i;(e=e[t])&&9!==e.nodeType;)if(1===e.nodeType){if(r&&_e(e).is(i))break;n.push(e)}return n},Ee=function(e,t){for(var i=[];e;e=e.nextSibling)1===e.nodeType&&e!==t&&i.push(e);return i},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,i){var n=t[0];return i&&(e=":not("+e+")"),1===t.length&&1===n.nodeType?_e.find.matchesSelector(n,e)?[n]:[]:_e.find.matches(e,_e.grep(t,(function(e){return 1===e.nodeType})))},_e.fn.extend({find:function(e){var t,i,n=this.length,r=this;if("string"!=typeof e)return this.pushStack(_e(e).filter((function(){for(t=0;t<n;t++)if(_e.contains(r[t],this))return!0})));for(i=this.pushStack([]),t=0;t<n;t++)_e.find(e,r[t],i);return n>1?_e.uniqueSort(i):i},filter:function(e){return this.pushStack(s(this,e||[],!1))},not:function(e){return this.pushStack(s(this,e||[],!0))},is:function(e){return!!s(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,i){var n,r;if(!e)return this;if(i=i||Ne,"string"==typeof e){if(!(n="<"===e[0]&&">"===e[e.length-1]&&e.length>=3?[null,e,null]:Ae.exec(e))||!n[1]&&t)return!t||t.jquery?(t||i).find(e):this.constructor(t).find(e);if(n[1]){if(t=t instanceof _e?t[0]:t,_e.merge(this,_e.parseHTML(n[1],t&&t.nodeType?t.ownerDocument||t:Se,!0)),Oe.test(n[1])&&_e.isPlainObject(t))for(n in t)be(this[n])?this[n](t[n]):this.attr(n,t[n]);return this}return(r=Se.getElementById(n[2]))&&(this[0]=r,this.length=1),this}return e.nodeType?(this[0]=e,this.length=1,this):be(e)?void 0!==i.ready?i.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),i=t.length;return this.filter((function(){for(var e=0;e<i;e++)if(_e.contains(this,t[e]))return!0}))},closest:function(e,t){var i,n=0,r=this.length,o=[],s="string"!=typeof e&&_e(e);if(!Pe.test(e))for(;n<r;n++)for(i=this[n];i&&i!==t;i=i.parentNode)if(i.nodeType<11&&(s?s.index(i)>-1:1===i.nodeType&&_e.find.matchesSelector(i,e))){o.push(i);break}return this.pushStack(o.length>1?_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,i){return Te(e,"parentNode",i)},next:function(e){return a(e,"nextSibling")},prev:function(e){return a(e,"previousSibling")},nextAll:function(e){return Te(e,"nextSibling")},prevAll:function(e){return Te(e,"previousSibling")},nextUntil:function(e,t,i){return Te(e,"nextSibling",i)},prevUntil:function(e,t,i){return Te(e,"previousSibling",i)},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:(o(e,"template")&&(e=e.content||e),_e.merge([],e.childNodes))}},(function(e,t){_e.fn[e]=function(i,n){var r=_e.map(this,t,i);return"Until"!==e.slice(-5)&&(n=i),n&&"string"==typeof n&&(r=_e.filter(n,r)),this.length>1&&(Fe[e]||_e.uniqueSort(r),De.test(e)&&r.reverse()),this.pushStack(r)}}));var Ie=/[^\x20\t\r\n\f]+/g;_e.Callbacks=function(e){e="string"==typeof e?l(e):_e.extend({},e);var t,i,r,o,s=[],a=[],u=-1,c=function(){for(o=o||e.once,r=t=!0;a.length;u=-1)for(i=a.shift();++u<s.length;)!1===s[u].apply(i[0],i[1])&&e.stopOnFalse&&(u=s.length,i=!1);e.memory||(i=!1),t=!1,o&&(s=i?[]:"")},d={add:function(){return s&&(i&&!t&&(u=s.length-1,a.push(i)),function t(i){_e.each(i,(function(i,r){be(r)?e.unique&&d.has(r)||s.push(r):r&&r.length&&"string"!==n(r)&&t(r)}))}(arguments),i&&!t&&c()),this},remove:function(){return _e.each(arguments,(function(e,t){for(var i;(i=_e.inArray(t,s,i))>-1;)s.splice(i,1),i<=u&&u--})),this},has:function(e){return e?_e.inArray(e,s)>-1:s.length>0},empty:function(){return s&&(s=[]),this},disable:function(){return o=a=[],s=i="",this},disabled:function(){return!s},lock:function(){return o=a=[],i||t||(s=i=""),this},locked:function(){return!!o},fireWith:function(e,i){return o||(i=[e,(i=i||[]).slice?i.slice():i],a.push(i),t||c()),this},fire:function(){return d.fireWith(this,arguments),this},fired:function(){return!!r}};return d},_e.extend({Deferred:function(t){var i=[["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"]],n="pending",r={state:function(){return n},always:function(){return o.done(arguments).fail(arguments),this},catch:function(e){return r.then(null,e)},pipe:function(){var e=arguments;return _e.Deferred((function(t){_e.each(i,(function(i,n){var r=be(e[n[4]])&&e[n[4]];o[n[1]]((function(){var e=r&&r.apply(this,arguments);e&&be(e.promise)?e.promise().progress(t.notify).done(t.resolve).fail(t.reject):t[n[0]+"With"](this,r?[e]:arguments)}))})),e=null})).promise()},then:function(t,n,r){function o(t,i,n,r){return function(){var a=this,l=arguments,d=function(){var e,d;
vendor: 10,541 bytes, lines 2-3
2if(!(t<s)){if((e=n.apply(a,l))===i.promise())throw new TypeError("Thenable self-resolution");d=e&&("object"==typeof e||"function"==typeof e)&&e.then,be(d)?r?d.call(e,o(s,i,u,r),o(s,i,c,r)):(s++,d.call(e,o(s,i,u,r),o(s,i,c,r),o(s,i,u,i.notifyWith))):(n!==u&&(a=void 0,l=[e]),(r||i.resolveWith)(a,l))}},h=r?d:function(){try{d()}catch(e){_e.Deferred.exceptionHook&&_e.Deferred.exceptionHook(e,h.stackTrace),t+1>=s&&(n!==c&&(a=void 0,l=[e]),i.rejectWith(a,l))}};t?h():(_e.Deferred.getStackHook&&(h.stackTrace=_e.Deferred.getStackHook()),e.setTimeout(h))}}var s=0;return _e.Deferred((function(e){i[0][3].add(o(0,e,be(r)?r:u,e.notifyWith)),i[1][3].add(o(0,e,be(t)?t:u)),i[2][3].add(o(0,e,be(n)?n:c))})).promise()},promise:function(e){return null!=e?_e.extend(e,r):r}},o={};return _e.each(i,(function(e,t){var s=t[2],a=t[5];r[t[1]]=s.add,a&&s.add((function(){n=a}),i[3-e][2].disable,i[3-e][3].disable,i[0][2].lock,i[0][3].lock),s.add(t[3].fire),o[t[0]]=function(){return o[t[0]+"With"](this===o?void 0:this,arguments),this},o[t[0]+"With"]=s.fireWith})),r.promise(o),t&&t.call(o,o),o},when:function(e){var t=arguments.length,i=t,n=Array(i),r=ue.call(arguments),o=_e.Deferred(),s=function(e){return function(i){n[e]=this,r[e]=arguments.length>1?ue.call(arguments):i,--t||o.resolveWith(n,r)}};if(t<=1&&(d(e,o.done(s(i)).resolve,o.reject,!t),"pending"===o.state()||be(r[i]&&r[i].then)))return o.then();for(;i--;)d(r[i],s(i),o.reject);return o.promise()}});var Le=/^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/;_e.Deferred.exceptionHook=function(t,i){e.console&&e.console.warn&&t&&Le.test(t.name)&&e.console.warn("jQuery.Deferred exception: "+t.message,t.stack,i)},_e.readyException=function(t){e.setTimeout((function(){throw t}))};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,!0!==e&&--_e.readyWait>0||Me.resolveWith(Se,[_e]))}}),_e.ready.then=Me.then,"complete"===Se.readyState||"loading"!==Se.readyState&&!Se.documentElement.doScroll?e.setTimeout(_e.ready):(Se.addEventListener("DOMContentLoaded",h),e.addEventListener("load",h));var je=function(e,t,i,r,o,s,a){var l=0,u=e.length,c=null==i;if("object"===n(i))for(l in o=!0,i)je(e,t,l,i[l],!0,s,a);else if(void 0!==r&&(o=!0,be(r)||(a=!0),c&&(a?(t.call(e,r),t=null):(c=t,t=function(e,t,i){return c.call(_e(e),i)})),t))for(;l<u;l++)t(e[l],i,a?r:r.call(e[l],l,t(e[l],i)));return o?e:c?t.call(e):u?t(e[0],i):s},Re=/^-ms-/,Ve=/-([a-z])/g,$e=function(e){return 1===e.nodeType||9===e.nodeType||!+e.nodeType};m.uid=1,m.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,i){var n,r=this.cache(e);if("string"==typeof t)r[p(t)]=i;else for(n in t)r[p(n)]=t[n];return r},get:function(e,t){return void 0===t?this.cache(e):e[this.expando]&&e[this.expando][p(t)]},access:function(e,t,i){return void 0===t||t&&"string"==typeof t&&void 0===i?this.get(e,t):(this.set(e,t,i),void 0!==i?i:t)},remove:function(e,t){var i,n=e[this.expando];if(void 0!==n){if(void 0!==t){i=(t=Array.isArray(t)?t.map(p):(t=p(t))in n?[t]:t.match(Ie)||[]).length;for(;i--;)delete n[t[i]]}(void 0===t||_e.isEmptyObject(n))&&(e.nodeType?e[this.expando]=void 0:delete e[this.expando])}},hasData:function(e){var t=e[this.expando];return void 0!==t&&!_e.isEmptyObject(t)}};var Ue=new m,Be=new m,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,i){return Be.access(e,t,i)},removeData:function(e,t){Be.remove(e,t)},_data:function(e,t,i){return Ue.access(e,t,i)},_removeData:function(e,t){Ue.remove(e,t)}}),_e.fn.extend({data:function(e,t){var i,n,r,o=this[0],s=o&&o.attributes;if(void 0===e){if(this.length&&(r=Be.get(o),1===o.nodeType&&!Ue.get(o,"hasDataAttrs"))){for(i=s.length;i--;)s[i]&&0===(n=s[i].name).indexOf("data-")&&(n=p(n.slice(5)),v(o,n,r[n]));Ue.set(o,"hasDataAttrs",!0)}return r}return"object"==typeof e?this.each((function(){Be.set(this,e)})):je(this,(function(t){var i;if(o&&void 0===t)return void 0!==(i=Be.get(o,e))||void 0!==(i=v(o,e))?i:void 0;this.each((function(){Be.set(this,e,t)}))}),null,t,arguments.length>1,null,!0)},removeData:function(e){return this.each((function(){Be.remove(this,e)}))}}),_e.extend({queue:function(e,t,i){var n;if(e)return t=(t||"fx")+"queue",n=Ue.get(e,t),i&&(!n||Array.isArray(i)?n=Ue.access(e,t,_e.makeArray(i)):n.push(i)),n||[]},dequeue:function(e,t){t=t||"fx";var i=_e.queue(e,t),n=i.length,r=i.shift(),o=_e._queueHooks(e,t),s=function(){_e.dequeue(e,t)};"inprogress"===r&&(r=i.shift(),n--),r&&("fx"===t&&i.unshift("inprogress"),delete o.stop,r.call(e,s,o)),!n&&o&&o.empty.fire()},_queueHooks:function(e,t){var i=t+"queueHooks";return Ue.get(e,i)||Ue.access(e,i,{empty:_e.Callbacks("once memory").add((function(){Ue.remove(e,[t+"queue",i])}))})}}),_e.fn.extend({queue:function(e,t){var i=2;return"string"!=typeof e&&(t=e,e="fx",i--),arguments.length<i?_e.queue(this[0],e):void 0===t?this:this.each((function(){var i=_e.queue(this,e,t);_e._queueHooks(this,e),"fx"===e&&"inprogress"!==i[0]&&_e.dequeue(this,e)}))},dequeue:function(e){return this.each((function(){_e.dequeue(this,e)}))},clearQueue:function(e){return this.queue(e||"fx",[])},promise:function(e,t){var i,n=1,r=_e.Deferred(),o=this,s=this.length,a=function(){--n||r.resolveWith(o,[o])};for("string"!=typeof e&&(t=e,e=void 0),e=e||"fx";s--;)(i=Ue.get(o[s],e+"queueHooks"))&&i.empty&&(n++,i.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 w(this,!0)},hide:function(){return w(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,it=/<([a-z][^\/\0>\x20\t\r\n\f]*)/i,nt=/^$|^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(e,t,i,n,r){var o,s,a,l,u,c,d,h,f,p,m,g=Ue.get(e);if($e(e))for(i.handler&&(i=(o=i).handler,r=o.selector),r&&_e.find.matchesSelector(Ge,r),i.guid||(i.guid=_e.guid++),(l=g.events)||(l=g.events=Object.create(null)),(s=g.handle)||(s=g.handle=function(t){return void 0!==_e&&_e.event.triggered!==t.type?_e.event.dispatch.apply(e,arguments):void 0}),u=(t=(t||"").match(Ie)||[""]).length;u--;)f=m=(a=lt.exec(t[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:n,handler:i,guid:i.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(e,n,p,s)||e.addEventListener&&e.addEventListener(f,s)),d.add&&(d.add.call(e,c),c.handler.guid||(c.handler.guid=i.guid)),r?h.splice(h.delegateCount++,0,c):h.push(c),_e.event.global[f]=!0)},remove:function(e,t,i,n,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=(n?d.delegateType:d.bindType)||f]||[],a=a[2]&&new RegExp("(^|\\.)"+p.join("\\.(?:.*\\.|)")+"(\\.|$)"),s=o=h.length;o--;)c=h[o],
3!r&&m!==c.origType||i&&i.guid!==c.guid||a&&!a.test(c.namespace)||n&&n!==c.selector&&("**"!==n||!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],i,n,!0);_e.isEmptyObject(l)&&Ue.remove(e,"handle events")}},dispatch:function(e){var t,i,n,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,i=0;(o=r.handlers[i++])&&!l.isImmediatePropagationStopped();)l.rnamespace&&!1!==o.namespace&&!l.rnamespace.test(o.namespace)||(l.handleObj=o,l.data=o.data,void 0!==(n=((_e.event.special[o.origType]||{}).handle||o.handler).apply(r.elem,a))&&!1===(l.result=n)&&(l.preventDefault(),l.stopPropagation()));return c.postDispatch&&c.postDispatch.call(this,l),l.result}},handlers:function(e,t){var i,n,r,o,s,a=[],l=t.delegateCount,u=e.target;if(l&&u.nodeType&&!("click"===e.type&&e.button>=1))for(;u!==this;u=u.parentNode||this)if(1===u.nodeType&&("click"!==e.type||!0!==u.disabled)){for(o=[],s={},i=0;i<l;i++)void 0===s[r=(n=t[i]).selector+" "]&&(s[r]=n.needsContext?_e(r,this).index(u)>-1:_e.find(r,this,null,[u]).length),s[r]&&o.push(n);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(e,t){Object.defineProperty(_e.Event.prototype,e,{enumerable:!0,configurable:!0,get:be(t)?function(){if(this.originalEvent)return t(this.originalEvent)}:function(){if(this.originalEvent)return this.originalEvent[e]}
vendor: 2,432 bytes, line 3
3,set:function(t){Object.defineProperty(this,e,{enumerable:!0,configurable:!0,writable:!0,value:t})}})},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&&o(t,"input")&&O(t,"click",_),!1},trigger:function(e){var t=this||e;return tt.test(t.type)&&t.click&&o(t,"input")&&O(t,"click"),!0},_default:function(e){var t=e.target;return tt.test(t.type)&&t.click&&o(t,"input")&&Ue.get(t,"click")||o(t,"a")}},beforeunload:{postDispatch:function(e){void 0!==e.result&&e.originalEvent&&(e.originalEvent.returnValue=e.result)}}}},_e.removeEvent=function(e,t,i){e.removeEventListener&&e.removeEventListener(t,i)},_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||void 0===e.defaultPrevented&&!1===e.returnValue?_: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=_,e&&!this.isSimulated&&e.preventDefault()},stopPropagation:function(){var e=this.originalEvent;this.isPropagationStopped=_,e&&!this.isSimulated&&e.stopPropagation()},stopImmediatePropagation:function(){var e=this.originalEvent;this.isImmediatePropagationStopped=_,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&&void 0!==t&&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}}
vendor: 1,393 bytes, line 3
3)),_e.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},(function(e,t){_e.event.special[e]={delegateType:t,bindType:t,handle:function(e){var i,n=this,r=e.relatedTarget,o=e.handleObj;return r&&(r===n||_e.contains(n,r))||(e.type=o.origType,i=o.handler.apply(this,arguments),e.type=t),i}}})),_e.fn.extend({on:function(e,t,i,n){return P(this,e,t,i,n)},one:function(e,t,i,n){return P(this,e,t,i,n,1)},off:function(e,t,i){var n,r;if(e&&e.preventDefault&&e.handleObj)return n=e.handleObj,_e(e.delegateTarget).off(n.namespace?n.origType+"."+n.namespace:n.origType,n.selector,n.handler),this;if("object"==typeof e){for(r in e)this.off(r,t,e[r]);return this}return!1!==t&&"function"!=typeof t||(i=t,t=void 0),!1===i&&(i=C),this.each((function(){_e.event.remove(this,e,i,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,i){var n,r,o,s,a=e.cloneNode(!0),l=Ke(e);if(!(ye.noCloneChecked||1!==e.nodeType&&11!==e.nodeType||_e.isXMLDoc(e)))for(s=S(a),n=0,r=(o=S(e)).length;n<r;n++)I(o[n],s[n]);if(t)if(i)for(o=o||S(e),s=s||S(a),n=0,r=o.length;n<r;n++)F(o[n],s[n]);else F(e,a);return(s=S(a,"script")).length>0&&k(s,!l&&S(e,"script")),a},cleanData:function(e){for(var t,i,n,r=_e.event.special,o=0;void 0!==(i=e[o]);
vendor: 3,748 bytes, line 3
3o++)if($e(i)){if(t=i[Ue.expando]){if(t.events)for(n in t.events)r[n]?_e.event.remove(i,n):_e.removeEvent(i,n,t.handle);i[Ue.expando]=void 0}i[Be.expando]&&(i[Be.expando]=void 0)}}}),_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 void 0===e?_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(S(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]||{},i=0,n=this.length;if(void 0===e&&1===t.nodeType)return t.innerHTML;if("string"==typeof e&&!ut.test(e)&&!rt[(it.exec(e)||["",""])[1].toLowerCase()]){e=_e.htmlPrefilter(e);try{for(;i<n;i++)1===(t=this[i]||{}).nodeType&&(_e.cleanData(S(t,!1)),t.innerHTML=e);t=0}catch(e){}}t&&this.empty().append(e)}),null,e,arguments.length)},replaceWith:function(){var e=[];return L(this,arguments,(function(t){var i=this.parentNode;_e.inArray(this,e)<0&&(_e.cleanData(S(this)),i&&i.replaceChild(t,this))}),e)}}),_e.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},(function(e,t){_e.fn[e]=function(e){for(var i,n=[],r=_e(e),o=r.length-1,s=0;s<=o;s++)i=s===o?this:this.clone(!0),_e(r[s])[t](i),de.apply(n,i.get());return this.pushStack(n)}}));var ht=new RegExp("^("+qe+")(?!px)[a-z%]+$","i"),ft=function(t){var i=t.ownerDocument.defaultView;return i&&i.opener||(i=e),i.getComputedStyle(t)},pt=function(e,t,i){var n,r,o={};for(r in t)o[r]=e.style[r],e.style[r]=t[r];for(r in n=i.call(e),t)e.style[r]=o[r];return n},mt=new RegExp(Ye.join("|"),"i");!function(){function t(){if(c){u.style.cssText="position:absolute;left:-11111px;width:60px;margin-top:1px;padding:0;border:0",c.style.cssText="position:relative;display:block;box-sizing:border-box;overflow:scroll;margin:auto;border:1px;padding:1px;width:60%;top:1%",Ge.appendChild(u).appendChild(c);var t=e.getComputedStyle(c);n="1%"!==t.top,l=12===i(t.marginLeft),c.style.right="60%",s=36===i(t.right),r=36===i(t.width),c.style.position="absolute",o=12===i(c.offsetWidth/3),Ge.removeChild(u),c=null}}function i(e){return Math.round(parseFloat(e))}var n,r,o,s,a,l,u=Se.createElement("div"),c=Se.createElement("div");c.style&&(c.style.backgroundClip="content-box",c.cloneNode(!0).style.backgroundClip="",ye.clearCloneStyle="content-box"===c.style.backgroundClip,_e.extend(ye,{boxSizingReliable:function(){return t(),r},pixelBoxStyles:function(){return t(),s},pixelPosition:function(){return t(),n},reliableMarginLeft:function(){return t(),l},scrollboxSize:function(){return t(),o},reliableTrDimensions:function(){var t,i,n,r;return null==a&&(t=Se.createElement("table"),i=Se.createElement("tr"),n=Se.createElement("div"),t.style.cssText="position:absolute;left:-11111px",i.style.height="1px",n.style.height="9px",Ge.appendChild(t).appendChild(i).appendChild(n),r=e.getComputedStyle(i),a=parseInt(r.height)>3,Ge.removeChild(t)),a}}
vendor: 4,871 bytes, line 3
3))}();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 i=j(e,"opacity");return""===i?"1":i}}}},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,i,n){if(e&&3!==e.nodeType&&8!==e.nodeType&&e.style){var r,o,s,a=p(t),l=wt.test(t),u=e.style;if(l||(t=$(a)),s=_e.cssHooks[t]||_e.cssHooks[a],void 0===i)return s&&"get"in s&&void 0!==(r=s.get(e,!1,n))?r:u[t];"string"===(o=typeof i)&&(r=We.exec(i))&&r[1]&&(i=y(e,t,r),o="number"),null!=i&&i==i&&("number"!==o||l||(i+=r&&r[3]||(_e.cssNumber[a]?"":"px")),ye.clearCloneStyle||""!==i||0!==t.indexOf("background")||(u[t]="inherit"),s&&"set"in s&&void 0===(i=s.set(e,i,n))||(l?u.setProperty(t,i):u[t]=i))}},css:function(e,t,i,n){var r,o,s,a=p(t);return wt.test(t)||(t=$(a)),(s=_e.cssHooks[t]||_e.cssHooks[a])&&"get"in s&&(r=s.get(e,!0,i)),void 0===r&&(r=j(e,t,n)),"normal"===r&&t in kt&&(r=kt[t]),""===i||i?(o=parseFloat(r),!0===i||isFinite(o)?o||0:r):r}}),_e.each(["height","width"],(function(e,t){_e.cssHooks[t]={get:function(e,i,n){if(i)return!bt.test(_e.css(e,"display"))||e.getClientRects().length&&e.getBoundingClientRect().width?z(e,t,n):pt(e,St,(function(){return z(e,t,n)}))},set:function(e,i,n){var r,o=ft(e),s=!ye.scrollboxSize()&&"absolute"===o.position,a=(s||n)&&"border-box"===_e.css(e,"boxSizing",!1,o),l=n?B(e,t,n,a,o):0;return a&&s&&(l-=Math.ceil(e["offset"+t[0].toUpperCase()+t.slice(1)]-parseFloat(o[t])-B(e,t,"border",!1,o)-.5)),l&&(r=We.exec(i))&&"px"!==(r[3]||"px")&&(e.style[t]=i,i=_e.css(e,t)),U(e,i,l)}}})),_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(e,t){_e.cssHooks[e+t]={expand:function(i){for(var n=0,r={},o="string"==typeof i?i.split(" "):[i];n<4;n++)r[e+Ye[n]+t]=o[n]||o[n-2]||o[0];return r}},"margin"!==e&&(_e.cssHooks[e+t].set=U)})),_e.fn.extend({css:function(e,t){return je(this,(function(e,t,i){var n,r,o={},s=0;if(Array.isArray(t)){for(n=ft(e),r=t.length;s<r;s++)o[t[s]]=_e.css(e,t[s],!1,n);return o}return void 0!==i?_e.style(e,t,i):_e.css(e,t)}),e,t,arguments.length>1)}}),_e.Tween=H,H.prototype={constructor:H,init:function(e,t,i,n,r,o){this.elem=e,this.prop=i,this.easing=r||_e.easing._default,this.options=t,this.start=this.now=this.cur(),this.end=n,this.unit=o||(_e.cssNumber[i]?"":"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,i=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),i&&i.set?i.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=/^(?:toggle|show|hide)$/,Tt=/queueHooks$/;_e.Animation=_e.extend(Q,{tweeners:{"*":[function(e,t){var i=this.createTween(e,t);return y(i.elem,e,We.exec(t),i),i}]},tweener:function(e,t){be(e)?(t=e,e=["*"]):e=e.match(Ie);for(var i,n=0,r=e.length;n<r;n++)i=e[n],Q.tweeners[i]=Q.tweeners[i]||[],Q.tweeners[i].unshift(t)},prefilters:[K],prefilter:function(e,t){t?Q.prefilters.unshift(e):Q.prefilters.push(e)}}),_e.speed=function(e,t,i){var n=e&&"object"==typeof e?_e.extend({},e):{complete:i||!i&&t||be(e)&&e,duration:e,easing:i&&t||t&&!be(t)&&t};return _e.fx.off?n.duration=0:"number"!=typeof n.duration&&(n.duration in _e.fx.speeds?n.duration=_e.fx.speeds[n.duration]:n.duration=_e.fx.speeds._default),null!=n.queue&&!0!==n.queue||(n.queue="fx"),n.old=n.complete,n.complete=function(){be(n.old)&&n.old.call(this),n.queue&&_e.dequeue(this,n.queue)},n}
vendor: 4,127 bytes, line 3
3,_e.fn.extend({fadeTo:function(e,t,i,n){return this.filter(Qe).css("opacity",0).show().end().animate({opacity:t},e,i,n)},animate:function(e,t,i,n){var r=_e.isEmptyObject(e),o=_e.speed(t,i,n),s=function(){var t=Q(this,_e.extend({},e),o);(r||Ue.get(this,"finish"))&&t.stop(!0)};return s.finish=s,r||!1===o.queue?this.each(s):this.queue(o.queue,s)},stop:function(e,t,i){var n=function(e){var t=e.stop;delete e.stop,t(i)};return"string"!=typeof e&&(i=t,t=e,e=void 0),t&&this.queue(e||"fx",[]),this.each((function(){var t=!0,r=null!=e&&e+"queueHooks",o=_e.timers,s=Ue.get(this);if(r)s[r]&&s[r].stop&&n(s[r]);else for(r in s)s[r]&&s[r].stop&&Tt.test(r)&&n(s[r]);for(r=o.length;r--;)o[r].elem!==this||null!=e&&o[r].queue!==e||(o[r].anim.stop(i),t=!1,o.splice(r,1));!t&&i||_e.dequeue(this,e)}))},finish:function(e){return!1!==e&&(e=e||"fx"),this.each((function(){var t,i=Ue.get(this),n=i[e+"queue"],r=i[e+"queueHooks"],o=_e.timers,s=n?n.length:0;for(i.finish=!0,_e.queue(this,e,[]),r&&r.stop&&r.stop.call(this,!0),t=o.length;t--;)o[t].elem===this&&o[t].queue===e&&(o[t].anim.stop(!0),o.splice(t,1));for(t=0;t<s;t++)n[t]&&n[t].finish&&n[t].finish.call(this);delete i.finish}))}}),_e.each(["toggle","show","hide"],(function(e,t){var i=_e.fn[t];_e.fn[t]=function(e,n,r){return null==e||"boolean"==typeof e?i.apply(this,arguments):this.animate(Y(t,!0),e,n,r)}})),_e.each({slideDown:Y("show"),slideUp:Y("hide"),slideToggle:Y("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},(function(e,t){_e.fn[e]=function(e,i,n){return this.animate(t,e,i,n)}})),_e.timers=[],_e.fx.tick=function(){var e,t=0,i=_e.timers;for(xt=Date.now();t<i.length;t++)(e=i[t])()||i[t]!==e||i.splice(t--,1);i.length||_e.fx.stop(),xt=void 0},_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(t,i){return t=_e.fx&&_e.fx.speeds[t]||t,i=i||"fx",this.queue(i,(function(i,n){var r=e.setTimeout(i,t);n.stop=function(){e.clearTimeout(r)}}))},function(){var e=Se.createElement("input"),t=Se.createElement("select").appendChild(Se.createElement("option"));e.type="checkbox",ye.checkOn=""!==e.value,ye.optSelected=t.selected,(e=Se.createElement("input")).value="t",e.type="radio",ye.radioValue="t"===e.value}();var Et,Pt=_e.expr.attrHandle;_e.fn.extend({attr:function(e,t){return je(this,_e.attr,e,t,arguments.length>1)},removeAttr:function(e){return this.each((function(){_e.removeAttr(this,e)}))}}),_e.extend({attr:function(e,t,i){var n,r,o=e.nodeType;if(3!==o&&8!==o&&2!==o)return void 0===e.getAttribute?_e.prop(e,t,i):(1===o&&_e.isXMLDoc(e)||(r=_e.attrHooks[t.toLowerCase()]||(_e.expr.match.bool.test(t)?Et:void 0)),void 0!==i?null===i?void _e.removeAttr(e,t):r&&"set"in r&&void 0!==(n=r.set(e,i,t))?n:(e.setAttribute(t,i+""),i):r&&"get"in r&&null!==(n=r.get(e,t))?n:null==(n=_e.find.attr(e,t))?void 0:n)},attrHooks:{type:{set:function(e,t){if(!ye.radioValue&&"radio"===t&&o(e,"input")){var i=e.value;return e.setAttribute("type",t),i&&(e.value=i),t}}}},removeAttr:function(e,t){var i,n=0,r=t&&t.match(Ie);if(r&&1===e.nodeType)for(;i=r[n++];)e.removeAttribute(i)}}),Et={set:function(e,t,i){return!1===t?_e.removeAttr(e,i):e.setAttribute(i,i),i}},_e.each(_e.expr.match.bool.source.match(/\w+/g),(function(e,t){var i=Pt[t]||_e.find.attr;Pt[t]=function(e,t,n){var r,o,s=t.toLowerCase();return n||(o=Pt[s],Pt[s]=r,r=null!=i(e,t,n)?s:null,Pt[s]=o),r}}));var Ot=/^(?:input|select|textarea|button)$/i,Nt=/^(?:a|area)$/i;_e.fn.extend({prop:function(e,t){return je(this,_e.prop,e,t,arguments.length>1)},removeProp:function(e){return this.each((function(){delete this[_e.propFix[e]||e]}))}}),_e.extend({prop:function(e,t,i){var n,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]),void 0!==i?r&&"set"in r&&void 0!==(n=r.set(e,i,t))?n:e[t]=i:r&&"get"in r&&null!==(n=r.get(e,t))?n:e[t]},propHooks:{tabIndex:{get:function(e){var t=_e.find.attr(e,"tabindex");return t?parseInt(t,10):Ot.test(e.nodeName)||Nt.test(e.nodeName)&&e.href?
vendor: 4,211 bytes, line 3
30:-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(e){var t,i,n,r,o,s,a,l=0;if(be(e))return this.each((function(t){_e(this).addClass(e.call(this,t,J(this)))}));if((t=ee(e)).length)for(;i=this[l++];)if(r=J(i),n=1===i.nodeType&&" "+X(r)+" "){for(s=0;o=t[s++];)n.indexOf(" "+o+" ")<0&&(n+=o+" ");r!==(a=X(n))&&i.setAttribute("class",a)}return this},removeClass:function(e){var t,i,n,r,o,s,a,l=0;if(be(e))return this.each((function(t){_e(this).removeClass(e.call(this,t,J(this)))}));if(!arguments.length)return this.attr("class","");if((t=ee(e)).length)for(;i=this[l++];)if(r=J(i),n=1===i.nodeType&&" "+X(r)+" "){for(s=0;o=t[s++];)for(;n.indexOf(" "+o+" ")>-1;)n=n.replace(" "+o+" "," ");r!==(a=X(n))&&i.setAttribute("class",a)}return this},toggleClass:function(e,t){var i=typeof e,n="string"===i||Array.isArray(e);return"boolean"==typeof t&&n?t?this.addClass(e):this.removeClass(e):be(e)?this.each((function(i){_e(this).toggleClass(e.call(this,i,J(this),t),t)})):this.each((function(){var t,r,o,s;if(n)for(r=0,o=_e(this),s=ee(e);t=s[r++];)o.hasClass(t)?o.removeClass(t):o.addClass(t);else void 0!==e&&"boolean"!==i||((t=J(this))&&Ue.set(this,"__className__",t),this.setAttribute&&this.setAttribute("class",t||!1===e?"":Ue.get(this,"__className__")||""))}))},hasClass:function(e){var t,i,n=0;for(t=" "+e+" ";i=this[n++];)if(1===i.nodeType&&(" "+X(J(i))+" ").indexOf(t)>-1)return!0;return!1}});var At=/\r/g;_e.fn.extend({val:function(e){var t,i,n,r=this[0];return arguments.length?(n=be(e),this.each((function(i){var r;1===this.nodeType&&(null==(r=n?e.call(this,i,_e(this).val()):e)?r="":"number"==typeof r?r+="":Array.isArray(r)&&(r=_e.map(r,(function(e){return null==e?"":e+""}))),(t=_e.valHooks[this.type]||_e.valHooks[this.nodeName.toLowerCase()])&&"set"in t&&void 0!==t.set(this,r,"value")||(this.value=r))}))):r?(t=_e.valHooks[r.type]||_e.valHooks[r.nodeName.toLowerCase()])&&"get"in t&&void 0!==(i=t.get(r,"value"))?i:"string"==typeof(i=r.value)?i.replace(At,""):null==i?"":i: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,i,n,r=e.options,s=e.selectedIndex,a="select-one"===e.type,l=a?null:[],u=a?s+1:r.length;for(n=s<0?u:a?s:0;n<u;n++)if(((i=r[n]).selected||n===s)&&!i.disabled&&(!i.parentNode.disabled||!o(i.parentNode,"optgroup"))){if(t=_e(i).val(),a)return t;l.push(t)}return l},set:function(e,t){for(var i,n,r=e.options,o=_e.makeArray(t),s=r.length;s--;)((n=r[s]).selected=_e.inArray(_e.valHooks.option.get(n),o)>-1)&&(i=!0);return i||(e.selectedIndex=-1),o}}}}),_e.each(["radio","checkbox"],(function(){_e.valHooks[this]={set:function(e,t){if(Array.isArray(t))return e.checked=_e.inArray(_e(e).val(),t)>-1}},ye.checkOn||(_e.valHooks[this].get=function(e){return null===e.getAttribute("value")?"on":e.value})})),ye.focusin="onfocusin"in e;var Dt=/^(?:focusinfocus|focusoutblur)$/,Ft=function(e){e.stopPropagation()};_e.extend(_e.event,{trigger:function(t,i,n,r){var o,s,a,l,u,c,d,h,f=[n||Se],p=me.call(t,"type")?t.type:t,m=me.call(t,"namespace")?t.namespace.split("."):[];if(s=h=a=n=n||Se,3!==n.nodeType&&8!==n.nodeType&&!Dt.test(p+_e.event.triggered)&&(p.indexOf(".")>-1&&(m=p.split("."),p=m.shift(),m.sort()),u=p.indexOf(":")<0&&"on"+p,(t=t[_e.expando]?t:new _e.Event(p,"object"==typeof t&&t)).isTrigger=r?2:3,t.namespace=m.join("."),t.rnamespace=t.namespace?new RegExp("(^|\\.)"+m.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,t.result=void 0,t.target||(t.target=n),i=null==i?[t]:_e.makeArray(i,[t]),d=_e.event.special[p]||{},r||!d.trigger||!1!==d.trigger.apply(n,i))){if(!r&&!d.noBubble&&!we(n)){for(l=d.delegateType||p,Dt.test(l+p)||(s=s.parentNode);s;s=s.parentNode)f.push(s),a=s;a===(n.ownerDocument||Se)&&f.push(a.defaultView||a.parentWindow||e)}for(o=0;
vendor: 6,578 bytes, line 3
3(s=f[o++])&&!t.isPropagationStopped();)h=s,t.type=o>1?l:d.bindType||p,(c=(Ue.get(s,"events")||Object.create(null))[t.type]&&Ue.get(s,"handle"))&&c.apply(s,i),(c=u&&s[u])&&c.apply&&$e(s)&&(t.result=c.apply(s,i),!1===t.result&&t.preventDefault());return t.type=p,r||t.isDefaultPrevented()||d._default&&!1!==d._default.apply(f.pop(),i)||!$e(n)||u&&be(n[p])&&!we(n)&&((a=n[u])&&(n[u]=null),_e.event.triggered=p,t.isPropagationStopped()&&h.addEventListener(p,Ft),n[p](),t.isPropagationStopped()&&h.removeEventListener(p,Ft),_e.event.triggered=void 0,a&&(n[u]=a)),t.result}},simulate:function(e,t,i){var n=_e.extend(new _e.Event,i,{type:e,isSimulated:!0});_e.event.trigger(n,null,t)}}),_e.fn.extend({trigger:function(e,t){return this.each((function(){_e.event.trigger(e,t,this)}))},triggerHandler:function(e,t){var i=this[0];if(i)return _e.event.trigger(e,t,i,!0)}}),ye.focusin||_e.each({focus:"focusin",blur:"focusout"},(function(e,t){var i=function(e){_e.event.simulate(t,e.target,_e.event.fix(e))};_e.event.special[t]={setup:function(){var n=this.ownerDocument||this.document||this,r=Ue.access(n,t);r||n.addEventListener(e,i,!0),Ue.access(n,t,(r||0)+1)},teardown:function(){var n=this.ownerDocument||this.document||this,r=Ue.access(n,t)-1;r?Ue.access(n,t,r):(n.removeEventListener(e,i,!0),Ue.remove(n,t))}}}));var It=e.location,Lt={guid:Date.now()},Mt=/\?/;_e.parseXML=function(t){var i;if(!t||"string"!=typeof t)return null;try{i=(new e.DOMParser).parseFromString(t,"text/xml")}catch(e){i=void 0}return i&&!i.getElementsByTagName("parsererror").length||_e.error("Invalid XML: "+t),i};var jt=/\[\]$/,Rt=/\r?\n/g,Vt=/^(?:submit|button|image|reset|file)$/i,$t=/^(?:input|select|textarea|keygen)/i;_e.param=function(e,t){var i,n=[],r=function(e,t){var i=be(t)?t():t;n[n.length]=encodeURIComponent(e)+"="+encodeURIComponent(null==i?"":i)};if(null==e)return"";if(Array.isArray(e)||e.jquery&&!_e.isPlainObject(e))_e.each(e,(function(){r(this.name,this.value)}));else for(i in e)te(i,e[i],t,r);return n.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")&&$t.test(this.nodeName)&&!Vt.test(e)&&(this.checked||!tt.test(e))})).map((function(e,t){var i=_e(this).val();return null==i?null:Array.isArray(i)?_e.map(i,(function(e){return{name:t.name,value:e.replace(Rt,"\r\n")}})):{name:t.name,value:i.replace(Rt,"\r\n")}})).get()}});var Ut=/%20/g,Bt=/#.*$/,zt=/([?&])_=[^&]*/,Ht=/^(.*?):[ \t]*([^\r\n]*)$/gm,qt=/^(?:about|app|app-storage|.+-extension|file|res|widget):$/,Wt=/^(?:GET|HEAD)$/,Yt=/^\/\//,Gt={},Kt={},Zt="*/".concat("*"),Qt=Se.createElement("a");Qt.href=It.href,_e.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:It.href,type:"GET",isLocal:qt.test(It.protocol),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":Zt,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:ie(Gt),ajaxTransport:ie(Kt),ajax:function(t,i){function n(t,i,n,a){var u,h,f,w,S,k=i;c||(c=!0,l&&e.clearTimeout(l),r=void 0,s=a||"",x.readyState=t>0?4:0,u=t>=200&&t<300||304===t,n&&(w=oe(p,x,n)),!u&&_e.inArray("script",p.dataTypes)>-1&&(p.converters["text script"]=function(){}),w=se(p,w,x,u),u?(p.ifModified&&((S=x.getResponseHeader("Last-Modified"))&&(_e.lastModified[o]=S),(S=x.getResponseHeader("etag"))&&(_e.etag[o]=S)),204===t||"HEAD"===p.type?k="nocontent":304===t?k="notmodified":(k=w.state,h=w.data,u=!(f=w.error))):(f=k,!t&&k||(k="error",t<0&&(t=0))),x.status=t,x.statusText=(i||k)+"",u?v.resolveWith(m,[h,k,x]):v.rejectWith(m,[x,k,f]),x.statusCode(b),b=void 0,d&&g.trigger(u?"ajaxSuccess":"ajaxError",[x,p,u?h:f]),y.fireWith(m,[x,k]),d&&(g.trigger("ajaxComplete",[x,p]),--_e.active||_e.event.trigger("ajaxStop")))}"object"==typeof t&&(i=t,t=void 0),i=i||{};var r,o,s,a,l,u,c,d,h,f,p=_e.ajaxSetup({},i),m=p.context||p,g=p.context&&(m.nodeType||m.jquery)?_e(m):_e.event,v=_e.Deferred(),y=_e.Callbacks("once memory"),b=p.statusCode||{},w={},S={},k="canceled",x={readyState:0,getResponseHeader:function(e){var t;if(c){if(!a)for(a={};t=Ht.exec(s);)a[t[1].toLowerCase()+" "]=(a[t[1].toLowerCase()+" "]||[]).concat(t[2]);t=a[e.toLowerCase()+" "]}return null==t?null:t.join(", ")},getAllResponseHeaders:function(){return c?s:null},setRequestHeader:function(e,t){return null==c&&(e=S[e.toLowerCase()]=S[e.toLowerCase()]||e,w[e]=t),this},overrideMimeType:function(e){return null==c&&(p.mimeType=e),this},statusCode:function(e){var t;if(e)if(c)x.always(e[x.status]);else for(t in e)b[t]=[b[t],e[t]];return this},abort:function(e){var t=e||k;return r&&r.abort(t),n(0,t),this}};if(v.promise(x),p.url=((t||p.url||It.href)+"").replace(Yt,It.protocol+"//"),p.type=i.method||i.type||p.method||p.type,p.dataTypes=(p.dataType||"*").toLowerCase().match(Ie)||[""],null==p.crossDomain){u=Se.createElement("a");try{u.href=p.url,u.href=u.href,p.crossDomain=Qt.protocol+"//"+Qt.host!=u.protocol+"//"+u.host}catch(e){p.crossDomain=!0}}if(p.data&&p.processData&&"string"!=typeof p.data&&(p.data=_e.param(p.data,p.traditional)),ne(Gt,p,i,x),c)return x;for(h in(d=_e.event&&p.global)&&0==_e.active++&&_e.event.trigger("ajaxStart"),p.type=p.type.toUpperCase(),p.hasContent=!Wt.test(p.type),o=p.url.replace(Bt,""),p.hasContent?p.data&&p.processData&&0===(p.contentType||"").indexOf("application/x-www-form-urlencoded")&&(p.data=p.data.replace(Ut,"+")):(f=p.url.slice(o.length),p.data&&(p.processData||"string"==typeof p.data)&&(o+=(Mt.test(o)?"&":"?")+p.data,delete p.data),!1===p.cache&&(o=o.replace(zt,"$1"),f=(Mt.test(o)?"&":"?")+"_="+Lt.guid+++f),p.url=o+f),p.ifModified&&(_e.lastModified[o]&&x.setRequestHeader("If-Modified-Since",_e.lastModified[o]),_e.etag[o]&&x.setRequestHeader("If-None-Match",_e.etag[o])),(p.data&&p.hasContent&&!1!==p.contentType||i.contentType)&&x.setRequestHeader("Content-Type",p.contentType),x.setRequestHeader("Accept",p.dataTypes[0]&&p.accepts[p.dataTypes[0]]?p.accepts[p.dataTypes[0]]+("*"!==p.dataTypes[0]?", "+Zt+"; q=0.01":""):p.accepts["*"]),p.headers)x.setRequestHeader(h,p.headers[h]);
vendor: 5,885 bytes, lines 3-4
3if(p.beforeSend&&(!1===p.beforeSend.call(m,x,p)||c))return x.abort();if(k="abort",y.add(p.complete),x.done(p.success),x.fail(p.error),r=ne(Kt,p,i,x)){if(x.readyState=1,d&&g.trigger("ajaxSend",[x,p]),c)return x;p.async&&p.timeout>0&&(l=e.setTimeout((function(){x.abort("timeout")}),p.timeout));try{c=!1,r.send(w,n)}catch(e){if(c)throw e;n(-1,e)}}else n(-1,"No Transport");return x},getJSON:function(e,t,i){return _e.get(e,t,i,"json")},getScript:function(e,t){return _e.get(e,void 0,t,"script")}}),_e.each(["get","post"],(function(e,t){_e[t]=function(e,i,n,r){return be(i)&&(r=r||n,n=i,i=void 0),_e.ajax(_e.extend({url:e,type:t,dataType:r,data:i,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,i){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,i)}})},_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(e){return be(e)?this.each((function(t){_e(this).wrapInner(e.call(this,t))})):this.each((function(){var t=_e(this),i=t.contents();i.length?i.wrapAll(e):t.append(e)}))},wrap:function(e){var t=be(e);return this.each((function(i){_e(this).wrapAll(t?e.call(this,i):e)}))},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 e.XMLHttpRequest}catch(e){}};var Xt={0:200,1223:204},Jt=_e.ajaxSettings.xhr();ye.cors=!!Jt&&"withCredentials"in Jt,ye.ajax=Jt=!!Jt,_e.ajaxTransport((function(t){var i,n;if(ye.cors||Jt&&!t.crossDomain)return{send:function(r,o){var s,a=t.xhr();if(a.open(t.type,t.url,t.async,t.username,t.password),t.xhrFields)for(s in t.xhrFields)a[s]=t.xhrFields[s];for(s in t.mimeType&&a.overrideMimeType&&a.overrideMimeType(t.mimeType),t.crossDomain||r["X-Requested-With"]||(r["X-Requested-With"]="XMLHttpRequest"),r)a.setRequestHeader(s,r[s]);i=function(e){return function(){i&&(i=n=a.onload=a.onerror=a.onabort=a.ontimeout=a.onreadystatechange=null,"abort"===e?a.abort():"error"===e?"number"!=typeof a.status?o(0,"error"):o(a.status,a.statusText):o(Xt[a.status]||a.status,a.statusText,"text"!==(a.responseType||"text")||"string"!=typeof a.responseText?{binary:a.response}:{text:a.responseText},a.getAllResponseHeaders()))}},a.onload=i(),n=a.onerror=a.ontimeout=i("error"),void 0!==a.onabort?a.onabort=n:a.onreadystatechange=function(){4===a.readyState&&e.setTimeout((function(){i&&n()}))},i=i("abort");try{a.send(t.hasContent&&t.data||null)}catch(e){if(i)throw e}},abort:function(){i&&i()}}})),_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){void 0===e.cache&&(e.cache=!1),e.crossDomain&&(e.type="GET")})),
4_e.ajaxTransport("script",(function(e){var t,i;if(e.crossDomain||e.scriptAttrs)return{send:function(n,r){t=_e("<script>").attr(e.scriptAttrs||{}).prop({charset:e.scriptCharset,src:e.url}).on("load error",i=function(e){t.remove(),i=null,e&&r("error"===e.type?404:200,e.type)}),Se.head.appendChild(t[0])},abort:function(){i&&i()}}}));var ei,ti=[],ii=/(=)\?(?=&|$)|\?\?/;_e.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var e=ti.pop()||_e.expando+"_"+Lt.guid++;return this[e]=!0,e}}),_e.ajaxPrefilter("json jsonp",(function(t,i,n){var r,o,s,a=!1!==t.jsonp&&(ii.test(t.url)?"url":"string"==typeof t.data&&0===(t.contentType||"").indexOf("application/x-www-form-urlencoded")&&ii.test(t.data)&&"data");if(a||"jsonp"===t.dataTypes[0])return r=t.jsonpCallback=be(t.jsonpCallback)?t.jsonpCallback():t.jsonpCallback,a?t[a]=t[a].replace(ii,"$1"+r):!1!==t.jsonp&&(t.url+=(Mt.test(t.url)?"&":"?")+t.jsonp+"="+r),t.converters["script json"]=function(){return s||_e.error(r+" was not called"),s[0]},t.dataTypes[0]="json",o=e[r],e[r]=function(){s=arguments},n.always((function(){void 0===o?_e(e).removeProp(r):e[r]=o,t[r]&&(t.jsonpCallback=i.jsonpCallback,ti.push(r)),s&&be(o)&&o(s[0]),s=o=void 0})),"script"})),ye.createHTMLDocument=((ei=Se.implementation.createHTMLDocument("").body).innerHTML="<form></form><form></form>",2===ei.childNodes.length),_e.parseHTML=function(e,t,i){return"string"!=typeof e?[]:("boolean"==typeof t&&(i=t,t=!1),t||(ye.createHTMLDocument?((n=(t=Se.implementation.createHTMLDocument("")).createElement("base")).href=Se.location.href,t.head.appendChild(n)):t=Se),o=!i&&[],(r=Oe.exec(e))?[t.createElement(r[1])]:(r=x([e],t,o),o&&o.length&&_e(o).remove(),_e.merge([],r.childNodes)));var n,r,o},_e.fn.load=function(e,t,i){var n,r,o,s=this,a=e.indexOf(" ");return a>-1&&(n=X(e.slice(a)),e=e.slice(0,a)),be(t)?(i=t,t=void 0):t&&"object"==typeof t&&(r="POST"),s.length>0&&_e.ajax({url:e,type:r||"GET",dataType:"html",data:t}).done((function(e){o=arguments,s.html(n?_e("<div>").append(_e.parseHTML(e)).find(n):e)})).always(i&&function(e,t){s.each((function(){i.apply(this,o||[e.responseText,t,e])}))}),this},_e.expr.pseudos.animated=function(e){return _e.grep(_e.timers,(function(t){return e===t.elem})).length},_e.offset={setOffset:function(e,t,i){var n,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,"to
4p"),l=_e.css(e,"left"),("absolute"===u||"fixed"===u)&&(o+l).indexOf("auto")>-1?(s=(n=c.position()).top,r=n.left):(s=parseFloat(o)||0,r=parseFloat(l)||0),be(t)&&(t=t.call(e,i,_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(e){if(arguments.length)return void 0===e?this:this.each((function(t){_e.offset.setOffset(this,e,t)}));var t,i,n=this[0];return n?n.getClientRects().length?(t=n.getBoundingClientRect(),i=n.ownerDocument.defaultView,{top:t.top+i.pageYOffset,left:t.left+i.pageXOffset}):{top:0,left:0}:void 0},position:function(){if(this[0]){var e,t,i,n=this[0],r={top:0,left:0};if("fixed"===_e.css(n,"position"))t=n.getBoundingClientRect();else{for(t=this.offset(),i=n.ownerDocument,e=n.offsetParent||i.documentElement;e&&(e===i.body||e===i.documentElement)&&"static"===_e.css(e,"position");)e=e.parentNode;e&&e!==n&&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(n,"marginTop",!0),left:t.left-r.left-_e.css(n,"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(e,t){var i="pageYOffset"===t;_e.fn[e]=function(n){return je(this,(function(e,n,r){var o;if(we(e)?o=e:9===e.nodeType&&(o=e.defaultView),void 0===r)return o?o[t]:e[n];o?o.scrollTo(i?o.pageXOffset:r,i?r:o.pageYOffset):e[n]=r}),e,n,arguments.length)}})),_e.each(["top","left"],(function(e,t){_e.cssHooks[t]=R(ye.pixelPosition,(function(e,i){if(i)return i=j(e,t),ht.test(i)?_e(e).position()[t]+"px":i}))})),_e.each({Height:"height",Width:"width"},(function(e,t){_e.each({padding:"inner"+e,content:t,"":"outer"+e},(function(i,n){_e.fn[n]=function(r,o){var s=arguments.length&&(i||"boolean"!=typeof r),a=i||(!0===r||!0===o?"margin":"border");return je(this,(function(t,i,r){var o;return we(t)?0===n.indexOf("outer")?t["inner"+e]:t.document.documentElement["client"+e]:9===t.nodeType?(o=t.documentElement,Math.max(t.body["scroll"+e],o["scroll"+e],t.body["offset"+e],o["offset"+e],o["client"+e])):void 0===r?_e.css(t,i,a):_e.style(t,i,r,a)}),t,s?r:void 0,s)}}))})),_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,i){return this.on(e,null,t,i)},unbind:function(e,t){return this.off(e,null,t)},delegate:function(e,t,i,n){return this.on(t,e,i,n)},undelegate:function(e,t,i){return 1===arguments.length?this.off(e,"**"):this.off(t,e||"**",i)},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,t){_e.fn[t]=function(e,i){return arguments.length>0?this.on(t,null,e,i):this.trigger(t)}}));var ni=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g;_e.proxy=function(e,t){var i,n,r;if("string"==typeof t&&(i=e[t],t=e,e=i),be(e))return n=ue.call(arguments,2),r=function(){return e.apply(t||this,n.concat(ue.call(arguments)))},r.guid=e.guid=e.guid||_e.guid++,r},_e.holdReady=function(e){e?_e.readyWait++:_e.ready(!0)},_e.isArray=Array.isArray,_e.parseJSON=JSON.parse,_e.nodeName=o,_e.isFunction=be,_e.isWindow=we,_e.camelCase=p,_e.type=n,_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(ni,"")},"function"==typeof define&&define.amd&&define("jquery",[],(function(){return _e}));var ri=e.jQuery,oi=e.$;return _e.noConflict=function(t){return e.$===_e&&(e.$=oi),t&&e.jQuery===_e&&(e.jQuery=ri),_e},void 0===t&&(e.jQuery=e.$=_e),_e})),function(e){"use strict";function t(t){return this.each((function(){var n=e(this),r=n.data("bs.affix"),o="object"==typeof t&&t;r||n.data("bs.affix",r=new i(this,o)),"string"==typeof t&&r[t]()}))}var i=function(t,n){this.options=e.extend({},i.DEFAULTS,n);var r=this.options.target===i.DEFAULTS.target?e(this.options.target):e(document).find(this.options.target);this.$target=r.on("scroll.bs.affix.data-api",e.proxy(this.checkPosition,this)).on("click.bs.affix.data-api",e.proxy(this.checkPositionWithEventLoop,this)),this.$element=e(t),this.affixed=null,this.unpin=null,this.pinnedOffset=null,this.checkPosition()};i.VERSION="3.4.1",i.RESET="affix affix-top affix-bottom",i.DEFAULTS={offset:0,target:window},i.prototype.getState=function(e,t,i,n){var r=this.$target.scrollTop(),o=this.$element.offset(),s=this.$target.height();if(null!=i&&"top"==this.affixed)return r<i&&"top";if("bottom"==this.affixed)return null!=i?!(r+this.unpin<=o.top)&&"bottom":!(r+s<=e-n)&&"bottom";var a=null==this.affixed,l=a?r:o.top;return null!=i&&r<=i?"top":null!=n&&l+(a?s:t)>=e-n&&"bottom"},i.prototype.getPinnedOffset=function(){if(this.pinnedOffset)return this.pinnedOffset;this.$element.removeClass(i.RESET).addClass("affix");var e=this.$target.scrollTop(),t=this.$element.offset();return this.pinnedOffset=t.top-e},i.prototype.checkPositionWithEventLoop=function(){setTimeout(e.proxy(this.checkPosition,this),1)},i.prototype.checkPosition=function(){if(this.$element.is(":visible")){var t=this.$element.height(),n=this.options.offset,r=n.top,o=n.bottom,s=Math.max(e(document).height(),e(document.body).height());"object"!=typeof n&&(o=r=n),"function"==typeof r&&(r=n.top(this.$element)),"function"==typeof o&&(o=n.bottom(this.$element));var a=this.getState(s,t,r,o);if(this.affixed!=a){null!=this.unpin&&this.$element.css("top","");var l="affix"+(a?"-"+a:""),u=e.Event(l+".bs.affix");if(this.$element.trigger(u),u.isDefaultPrevented())return;this.affixed=a,this.unpin="bottom"==a?this.getPinnedOffset():null,this.$element.removeClass(i.RESET).addClass(l).trigger(l.replace("affix","affixed")+".bs.affix")}"bottom"==a&&this.$element.offset({top:s-t-o})}};var n=e.fn.affix;e.fn.affix=t,e.fn.affix.Constructor=i,e.fn.affix.noConflict=function(){return e.fn.affix=n,this},e(window).on("load",(function(){e('[data-spy="affix"]').each((function(){var i=e(this),n=i.data();n.offset=n.offset||{},null!=n.offsetBottom&&(n.offset.bottom=n.offsetBottom),null!=n.offsetTop&&(n.offset.top=n.offsetTop),t.call(i,n)}))}))}(jQuery),function(e){"use strict";function t(t){return this.each((function(){var i=e(this),r=i.data("bs.alert");r||i.data("bs.alert",r=new n(this)),"string"==typeof t&&r[t].call(i)}))}var i='[data-dismiss="alert"]',n=function(t){e(t).on("click",i,this.close)};n.VERSION="3.4.1",n.TRANSITION_DURATION=150,n.prototype.close=function(t){function i(){s.detach().trigger("closed.bs.alert").remove()}var r=e(this),o=r.attr("data-target");o||(o=(o=r.attr("href"))&&o.replace(/.*(?=#[^\s]*$)/,"")),o="#"===o?[]:o;var s=e(document).find(o);t&&t.preventDefault(),s.length||(s=r.closest(".alert")),s.trigger(t=e.Event("close.bs.alert")),t.isDefaultPrevented()||(s.removeClass("in"),e.support.transition&&s.hasClass("fade")?s.one("bsTransitionEnd",i).emulateTransitionEnd(n.TRANSITION_DURATION):i())};var r=e.fn.alert;e.fn.alert=t,e.fn.alert.Constructor=n,e.fn.alert.noConflict=function(){return e.fn.alert=r,this},e(document).on("click.bs.alert.data-api",i,n.prototype.close)}(jQuery),function(e){"use strict";function t(t){return this.each((function(){var n=e(this),r=n.data("bs.button"),o="object"==typeof t&&t;
vendor: 9,850 bytes, line 4
4r||n.data("bs.button",r=new i(this,o)),"toggle"==t?r.toggle():t&&r.setState(t)}))}var i=function(t,n){this.$element=e(t),this.options=e.extend({},i.DEFAULTS,n),this.isLoading=!1};i.VERSION="3.4.1",i.DEFAULTS={loadingText:"loading..."},i.prototype.setState=function(t){var i="disabled",n=this.$element,r=n.is("input")?"val":"html",o=n.data();t+="Text",null==o.resetText&&n.data("resetText",n[r]()),setTimeout(e.proxy((function(){n[r](null==o[t]?this.options[t]:o[t]),"loadingText"==t?(this.isLoading=!0,n.addClass(i).attr(i,i).prop(i,!0)):this.isLoading&&(this.isLoading=!1,n.removeClass(i).removeAttr(i).prop(i,!1))}),this),0)},i.prototype.toggle=function(){var e=!0,t=this.$element.closest('[data-toggle="buttons"]');if(t.length){var i=this.$element.find("input");"radio"==i.prop("type")?(i.prop("checked")&&(e=!1),t.find(".active").removeClass("active"),this.$element.addClass("active")):"checkbox"==i.prop("type")&&(i.prop("checked")!==this.$element.hasClass("active")&&(e=!1),this.$element.toggleClass("active")),i.prop("checked",this.$element.hasClass("active")),e&&i.trigger("change")}else this.$element.attr("aria-pressed",!this.$element.hasClass("active")),this.$element.toggleClass("active")};var n=e.fn.button;e.fn.button=t,e.fn.button.Constructor=i,e.fn.button.noConflict=function(){return e.fn.button=n,this},e(document).on("click.bs.button.data-api",'[data-toggle^="button"]',(function(i){var n=e(i.target).closest(".btn");t.call(n,"toggle"),e(i.target).is('input[type="radio"], input[type="checkbox"]')||(i.preventDefault(),n.is("input,button")?n.trigger("focus"):n.find("input:visible,button:visible").first().trigger("focus"))})).on("focus.bs.button.data-api blur.bs.button.data-api",'[data-toggle^="button"]',(function(t){e(t.target).closest(".btn").toggleClass("focus",/^focus(in)?$/.test(t.type))}))}(jQuery),function(e){"use strict";function t(t){return this.each((function(){var n=e(this),r=n.data("bs.carousel"),o=e.extend({},i.DEFAULTS,n.data(),"object"==typeof t&&t),s="string"==typeof t?t:o.slide;r||n.data("bs.carousel",r=new i(this,o)),"number"==typeof t?r.to(t):s?r[s]():o.interval&&r.pause().cycle()}))}var i=function(t,i){this.$element=e(t),this.$indicators=this.$element.find(".carousel-indicators"),this.options=i,this.paused=null,this.sliding=null,this.interval=null,this.$active=null,this.$items=null,this.options.keyboard&&this.$element.on("keydown.bs.carousel",e.proxy(this.keydown,this)),"hover"==this.options.pause&&!("ontouchstart"in document.documentElement)&&this.$element.on("mouseenter.bs.carousel",e.proxy(this.pause,this)).on("mouseleave.bs.carousel",e.proxy(this.cycle,this))};i.VERSION="3.4.1",i.TRANSITION_DURATION=600,i.DEFAULTS={interval:5e3,pause:"hover",wrap:!0,keyboard:!0},i.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()}},i.prototype.cycle=function(t){return t||(this.paused=!1),this.interval&&clearInterval(this.interval),this.options.interval&&!this.paused&&(this.interval=setInterval(e.proxy(this.next,this),this.options.interval)),this},i.prototype.getItemIndex=function(e){return this.$items=e.parent().children(".item"),this.$items.index(e||this.$active)},i.prototype.getItemForDirection=function(e,t){var i=this.getItemIndex(t);if(("prev"==e&&0===i||"next"==e&&i==this.$items.length-1)&&!this.options.wrap)return t;var n=(i+("prev"==e?-1:1))%this.$items.length;return this.$items.eq(n)},i.prototype.to=function(e){var t=this,i=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)})):i==e?this.pause().cycle():this.slide(e>i?"next":"prev",this.$items.eq(e))},i.prototype.pause=function(t){return t||(this.paused=!0),this.$element.find(".next, .prev").length&&e.support.transition&&(this.$element.trigger(e.support.transition.end),this.cycle(!0)),this.interval=clearInterval(this.interval),this},i.prototype.next=function(){if(!this.sliding)return this.slide("next")},i.prototype.prev=function(){if(!this.sliding)return this.slide("prev")},i.prototype.slide=function(t,n){var r=this.$element.find(".item.active"),o=n||this.getItemForDirection(t,r),s=this.interval,a="next"==t?"left":"right",l=this;if(o.hasClass("active"))return this.sliding=!1;var u=o[0],c=e.Event("slide.bs.carousel",{relatedTarget:u,direction:a});if(this.$element.trigger(c),!c.isDefaultPrevented()){if(this.sliding=!0,s&&this.pause(),this.$indicators.length){this.$indicators.find(".active").removeClass("active");var d=e(this.$indicators.children()[this.getItemIndex(o)]);d&&d.addClass("active")}var h=e.Event("slid.bs.carousel",{relatedTarget:u,direction:a});return e.support.transition&&this.$element.hasClass("slide")?(o.addClass(t),"object"==typeof o&&o.length&&o[0].offsetWidth,r.addClass(a),o.addClass(a),r.one("bsTransitionEnd",(function(){o.removeClass([t,a].join(" ")).addClass("active"),r.removeClass(["active",a].join(" ")),l.sliding=!1,setTimeout((function(){l.$element.trigger(h)}),0)})).emulateTransitionEnd(i.TRANSITION_DURATION)):(r.removeClass("active"),o.addClass("active"),this.sliding=!1,this.$element.trigger(h)),s&&this.cycle(),this}};var n=e.fn.carousel;e.fn.carousel=t,e.fn.carousel.Constructor=i,e.fn.carousel.noConflict=function(){return e.fn.carousel=n,this};var r=function(i){var n=e(this),r=n.attr("href");r&&(r=r.replace(/.*(?=#[^\s]+$)/,""));var o=n.attr("data-target")||r,s=e(document).find(o);if(s.hasClass("carousel")){var a=e.extend({},s.data(),n.data()),l=n.attr("data-slide-to");l&&(a.interval=!1),t.call(s,a),l&&s.data("bs.carousel").to(l),i.preventDefault()}};e(document).on("click.bs.carousel.data-api","[data-slide]",r).on("click.bs.carousel.data-api","[data-slide-to]",r),e(window).on("load",(function(){e('[data-ride="carousel"]').each((function(){var i=e(this);t.call(i,i.data())}))}))}(jQuery),function(e){"use strict";function t(t){var i,n=t.attr("data-target")||(i=t.attr("href"))&&i.replace(/.*(?=#[^\s]+$)/,"");return e(document).find(n)}function i(t){return this.each((function(){var i=e(this),r=i.data("bs.collapse"),o=e.extend({},n.DEFAULTS,i.data(),"object"==typeof t&&t);!r&&o.toggle&&/show|hide/.test(t)&&(o.toggle=!1),r||i.data("bs.collapse",r=new n(this,o)),"string"==typeof t&&r[t]()}))}var n=function(t,i){this.$element=e(t),this.options=e.extend({},n.DEFAULTS,i),this.$trigger=e('[data-toggle="collapse"][href="#'+t.id+'"],[data-toggle="collapse"][data-target="#'+t.id+'"]'),this.transitioning=null,this.options.parent?this.$parent=this.getParent():this.addAriaAndCollapsedClass(this.$element,this.$trigger),this.options.toggle&&this.toggle()};n.VERSION="3.4.1",n.TRANSITION_DURATION=350,n.DEFAULTS={toggle:!0},n.prototype.dimension=function(){return this.$element.hasClass("width")?"width":"height"},n.prototype.show=function(){if(!this.transitioning&&!this.$element.hasClass("in")){var t,r=this.$parent&&this.$parent.children(".panel").children(".in, .collapsing");if(!(r&&r.length&&(t=r.data("bs.collapse"))&&t.transitioning)){var o=e.Event("show.bs.collapse");if(this.$element.trigger(o),!o.isDefaultPrevented()){r&&r.length&&(i.call(r,"hide"),t||r.data("bs.collapse",null));var s=this.dimension();this.$element.removeClass("collapse").addClass("collapsing")[s](0).attr("aria-expanded",!0),this.$trigger.removeClass("collapsed").attr("aria-expanded",!0),this.transitioning=1;var a=function(){this.$element.removeClass("collapsing").addClass("collapse in")[s](""),this.transitioning=0,this.$element.trigger("shown.bs.collapse")};if(!e.support.transition)return a.call(this);var l=e.camelCase(["scroll",s].join("-"));this.$element.one("bsTransitionEnd",e.proxy(a,this)).emulateTransitionEnd(n.TRANSITION_DURATION)[s](this.$element[0][l])}}}},n.prototype.hide=function(){if(!this.transitioning&&this.$element.hasClass("in")){var t=e.Event("hide.bs.collapse");if(this.$element.trigger(t),!t.isDefaultPrevented()){var i=this.dimension();this.$element[i](this.$element[i]())[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 r=function(){this.transitioning=0,this.$element.removeClass("collapsing").addClass("collapse").trigger("hidden.bs.collapse")};if(!e.support.transition)return r.call(this);this.$element[i](0).one("bsTransitionEnd",e.proxy(r,this)).emulateTransitionEnd(n.TRANSITION_DURATION)}}},n.prototype.toggle=function(){this[this.$element.hasClass("in")?"hide":"show"]()},n.prototype.getParent=function(){return e(document).find(this.options.parent).find('[data-toggle="collapse"][data-parent="'+this.options.parent+'"]').each(e.proxy((function(i,n){var r=e(n);this.addAriaAndCollapsedClass(t(r),r)}),this)).end()},n.prototype.addAriaAndCollapsedClass=function(e,t){var i=e.hasClass("in");e.attr("aria-expanded",i),t.toggleClass("collapsed",!i).attr("aria-expanded",i)};var r=e.fn.collapse;e.fn.collapse=i,e.fn.collapse.Constructor=n,e.fn.collapse.noConflict=function(){return e.fn.collapse=r,this},e(document).on("click.bs.collapse.data-api",'[data-toggle="collapse"]',(function(n){var r=e(this);r.attr("data-target")||n.preventDefault();var o=t(r),s=o.data("bs.collapse")?"toggle":r.data();i.call(o,s)}))}(jQuery),function(e){"use strict";function t(t){var i=t.attr("data-target");i||(i=(i=t.attr("href"))&&/#[A-Za-z]/.test(i)&&i.replace(/.*(?=#[^\s]*$)/,""));var n="#"!==i?e(document).find(i):null;return n&&n.length?n:t.parent()}function i(i){i&&3===i.which||(e(r).remove(),e(o).each((function(){var n=e(this),r=t(n),o={relatedTarget:this};r.hasClass("open")&&(i&&"click"==i.type&&/input|textarea/i.test(i.target.tagName)&&e.contains(r[0],i.target)||(r.trigger(i=e.Event("hide.bs.dropdown",o)),i.isDefaultPrevented()||(n.attr("aria-expanded","fal
4se"),r.removeClass("open").trigger(e.Event("hidden.bs.dropdown",o)))))})))}function n(t){return this.each((function(){var i=e(this),n=i.data("bs.dropdown");n||i.data("bs.dropdown",n=new s(this)),"string"==typeof t&&n[t].call(i)}))}var r=".dropdown-backdrop",o='[data-toggle="dropdown"]',s=function(t){e(t).on("click.bs.dropdown",this.toggle)};s.VERSION="3.4.1",s.prototype.toggle=function(n){var r=e(this);if(!r.is(".disabled, :disabled")){var o=t(r),s=o.hasClass("open");if(i(),!s){"ontouchstart"in document.documentElement&&!o.closest(".navbar-nav").length&&e(document.createElement("div")).addClass("dropdown-backdrop").insertAfter(e(this)).on("click",i);var a={relatedTarget:this};if(o.trigger(n=e.Event("show.bs.dropdown",a)),n.isDefaultPrevented())return;r.trigger("focus").attr("aria-expanded","true"),o.toggleClass("open").trigger(e.Event("shown.bs.dropdown",a))}return!1}},s.prototype.keydown=function(i){if(/(38|40|27|32)/.test(i.which)&&!/input|textarea/i.test(i.target.tagName)){var n=e(this);if(i.preventDefault(),i.stopPropagation(),!n.is(".disabled, :disabled")){var r=t(n),s=r.hasClass("open");if(!s&&27!=i.which||s&&27==i.which)return 27==i.which&&r.find(o).trigger("focus"),n.trigger("click");var a=" li:not(.disabled):visible a",l=r.find(".dropdown-menu"+a);if(l.length){var u=l.index(i.target);38==i.which&&u>0&&u--,40==i.which&&u<l.length-1&&u++,~u||(u=0),l.eq(u).trigger("focus")}}}};var a=e.fn.dropdown;e.fn.dropdown=n,e.fn.dropdown.Constructor=s,e.fn.dropdown.noConflict=function(){return e.fn.dropdown=a,this},e(document).on("click.bs.dropdown.data-api",i).on("click.bs.dropdown.data-api",".dropdown form",(function(e){e.stopPropagation()})).on("click.bs.dropdown.data-api",o,s.prototype.toggle).on("keydown.bs.dropdown.data-api",o,s.prototype.keydown).on("keydown.bs.dropdown.data-api",".dropdown-menu",s.prototype.keydown)}(jQuery),function(e){"use strict";function t(t,n){return this.each((function(){var r=e(this),o=r.data("bs.modal"),s=e.extend({},i.DEFAULTS,r.data(),"object"==typeof t&&t);o||r.data("bs.modal",o=new i(this,s)),"string"==typeof t?o[t](n):s.show&&o.show(n)}))}var i=function(t,i){this.options=i,this.$body=e(document.body),this.$element=e(t),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,e.proxy((function(){this.$element.trigger("loaded.bs.modal")}),this))};i.VERSION="3.4.1",i.TRANSITION_DURATION=300,i.BACKDROP_TRANSITION_DURATION=150,i.DEFAULTS={backdrop:!0,keyboard:!0,show:!0},i.prototype.toggle=function(e){return this.isShown?this.hide():this.show(e)},i.prototype.show=function(t){var n=this,r=e.Event("show.bs.modal",{relatedTarget:t});this.$element.trigger(r),this.isShown||r.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"]',e.proxy(this.hide,this)),this.$dialog.on("mousedown.dismiss.bs.modal",(function(){n.$element.one("mouseup.dismiss.bs.modal",(function(t){e(t.target).is(n.$element)&&(n.ignoreBackdropClick=!0)}))})),this.backdrop((function(){var r=e.support.transition&&n.$element.hasClass("fade");n.$element.parent().length||n.$element.appendTo(n.$body),n.$element.show().scrollTop(0),n.adjustDialog(),r&&n.$element[0].offsetWidth,n.$element.addClass("in"),n.enforceFocus();var o=e.Event("shown.bs.modal",{relatedTarget:t});r?n.$dialog.one("bsTransitionEnd",(function(){n.$element.trigger("focus").trigger(o)})).emulateTransitionEnd(i.TRANSITION_DURATION):n.$element.trigger("focus").trigger(o)})))},i.prototype.hide=function(t){t&&t.preventDefault(),t=e.Event("hide.bs.modal"),this.$element.trigger(t),this.isShown&&!t.isDefaultPrevented()&&(this.isShown=!1,this.escape(),this.resize(),e(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"),e.support.transition&&this.$element.hasClass("fade")?this.$element.one("bsTransitionEnd",e.proxy(this.hideModal,this)).emulateTransitionEnd(i.TRANSITION_DURATION):this.hideModal())},i.prototype.enforceFocus=function(){e(document).off("focusin.bs.modal").on("focusin.bs.modal",e.proxy((function(e){document===e.target||this.$element[0]===e.target||this.$element.has(e.target).length||this.$element.trigger("focus")}),this))},i.prototype.escape=function(){this.isShown&&this.options.keyboard?this.$element.on("key
4down.dismiss.bs.modal",e.proxy((function(e){27==e.which&&this.hide()}),this)):this.isShown||this.$element.off("keydown.dismiss.bs.modal")},i.prototype.resize=function(){this.isShown?e(window).on("resize.bs.modal",e.proxy(this.handleUpdate,this)):e(window).off("resize.bs.modal")},i.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")}))},i.prototype.removeBackdrop=function(){this.$backdrop&&this.$backdrop.remove(),this.$backdrop=null},i.prototype.backdrop=function(t){var n=this,r=this.$element.hasClass("fade")?"fade":"";if(this.isShown&&this.options.backdrop){var o=e.support.transition&&r;if(this.$backdrop=e(document.createElement("div")).addClass("modal-backdrop "+r).appendTo(this.$body),this.$element.on("click.dismiss.bs.modal",e.proxy((function(e){this.ignoreBackdropClick?this.ignoreBackdropClick=!1:e.target===e.currentTarget&&("static"==this.options.backdrop?this.$element[0].focus():this.hide())}),this)),o&&this.$backdrop[0].offsetWidth,this.$backdrop.addClass("in"),!t)return;o?this.$backdrop.one("bsTransitionEnd",t).emulateTransitionEnd(i.BACKDROP_TRANSITION_DURATION):t()}else if(!this.isShown&&this.$backdrop){this.$backdrop.removeClass("in");var s=function(){n.removeBackdrop(),t&&t()};
vendor: 6,238 bytes, line 4
4e.support.transition&&this.$element.hasClass("fade")?this.$backdrop.one("bsTransitionEnd",s).emulateTransitionEnd(i.BACKDROP_TRANSITION_DURATION):s()}else t&&t()},i.prototype.handleUpdate=function(){this.adjustDialog()},i.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:""})},i.prototype.resetAdjustments=function(){this.$element.css({paddingLeft:"",paddingRight:""})},i.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()},i.prototype.setScrollbar=function(){var t=parseInt(this.$body.css("padding-right")||0,10);this.originalBodyPad=document.body.style.paddingRight||"";var i=this.scrollbarWidth;this.bodyIsOverflowing&&(this.$body.css("padding-right",t+i),e(this.fixedContent).each((function(t,n){var r=n.style.paddingRight,o=e(n).css("padding-right");e(n).data("padding-right",r).css("padding-right",parseFloat(o)+i+"px")})))},i.prototype.resetScrollbar=function(){this.$body.css("padding-right",this.originalBodyPad),e(this.fixedContent).each((function(t,i){var n=e(i).data("padding-right");e(i).removeData("padding-right"),i.style.paddingRight=n||""}))},i.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 n=e.fn.modal;e.fn.modal=t,e.fn.modal.Constructor=i,e.fn.modal.noConflict=function(){return e.fn.modal=n,this},e(document).on("click.bs.modal.data-api",'[data-toggle="modal"]',(function(i){var n=e(this),r=n.attr("href"),o=n.attr("data-target")||r&&r.replace(/.*(?=#[^\s]+$)/,""),s=e(document).find(o),a=s.data("bs.modal")?"toggle":e.extend({remote:!/#/.test(r)&&r},s.data(),n.data());n.is("a")&&i.preventDefault(),s.one("show.bs.modal",(function(e){e.isDefaultPrevented()||s.one("hidden.bs.modal",(function(){n.is(":visible")&&n.trigger("focus")}))})),t.call(s,a,this)}))}(jQuery),function(e){"use strict";function t(i,n){this.$body=e(document.body),this.$scrollElement=e(i).is(document.body)?e(window):e(i),this.options=e.extend({},t.DEFAULTS,n),this.selector=(this.options.target||"")+" .nav li > a",this.offsets=[],this.targets=[],this.activeTarget=null,this.scrollHeight=0,this.$scrollElement.on("scroll.bs.scrollspy",e.proxy(this.process,this)),this.refresh(),this.process()}function i(i){return this.each((function(){var n=e(this),r=n.data("bs.scrollspy"),o="object"==typeof i&&i;r||n.data("bs.scrollspy",r=new t(this,o)),"string"==typeof i&&r[i]()}))}t.VERSION="3.4.1",t.DEFAULTS={offset:10},t.prototype.getScrollHeight=function(){return this.$scrollElement[0].scrollHeight||Math.max(this.$body[0].scrollHeight,document.documentElement.scrollHeight)},t.prototype.refresh=function(){var t=this,i="offset",n=0;this.offsets=[],this.targets=[],this.scrollHeight=this.getScrollHeight(),e.isWindow(this.$scrollElement[0])||(i="position",n=this.$scrollElement.scrollTop()),this.$body.find(this.selector).map((function(){var t=e(this),r=t.data("target")||t.attr("href"),o=/^#./.test(r)&&e(r);return o&&o.length&&o.is(":visible")&&[[o[i]().top+n,r]]||null})).sort((function(e,t){return e[0]-t[0]})).each((function(){t.offsets.push(this[0]),t.targets.push(this[1])}))},t.prototype.process=function(){var e,t=this.$scrollElement.scrollTop()+this.options.offset,i=this.getScrollHeight(),n=this.options.offset+i-this.$scrollElement.height(),r=this.offsets,o=this.targets,s=this.activeTarget;if(this.scrollHeight!=i&&this.refresh(),t>=n)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]&&(void 0===r[e+1]||t<r[e+1])&&this.activate(o[e])},t.prototype.activate=function(t){this.activeTarget=t,this.clear();var i=this.selector+'[data-target="'+t+'"],'+this.selector+'[href="'+t+'"]',n=e(i).parents("li").addClass("active");n.parent(".dropdown-menu").length&&(n=n.closest("li.dropdown").addClass("active")),n.trigger("activate.bs.scrollspy")},t.prototype.clear=function(){e(this.selector).parentsUntil(this.options.target,".active").removeClass("active")};var n=e.fn.scrollspy;e.fn.scrollspy=i,e.fn.scrollspy.Constructor=t,e.fn.scrollspy.noConflict=function(){return e.fn.scrollspy=n,this},e(window).on("load.bs.scrollspy.data-api",(function(){e('[data-spy="scroll"]').each((function(){var t=e(this);i.call(t,t.data())}))}))}(jQuery),function(e){"use strict";function t(t){return this.each((function(){var n=e(this),r=n.data("bs.tab");r||n.data("bs.tab",r=new i(this)),"string"==typeof t&&r[t]()}))}var i=function(t){this.element=e(t)};i.VERSION="3.4.1",i.TRANSITION_DURATION=150,i.prototype.show=function(){var t=this.element,i=t.closest("ul:not(.dropdown-menu)"),n=t.data("target");if(n||(n=(n=t.attr("href"))&&n.replace(/.*(?=#[^\s]*$)/,"")),!t.parent("li").hasClass("active")){var r=i.find(".active:last a"),o=e.Event("hide.bs.tab",{relatedTarget:t[0]}),s=e.Event("show.bs.tab",{relatedTarget:r[0]});if(r.trigger(o),t.trigger(s),!s.isDefaultPrevented()&&!o.isDefaultPrevented()){var a=e(document).find(n);this.activate(t.closest("li"),i),this.activate(a,a.parent(),(function(){r.trigger({type:"hidden.bs.tab",relatedTarget:t[0]}),t.trigger({type:"shown.bs.tab",relatedTarget:r[0]})}))}}},i.prototype.activate=function(t,n,r){function o(){s.removeClass("active").find("> .dropdown-menu > .active").removeClass("active").end().find('[data-toggle="tab"]').attr("aria-expanded",!1),t.addClass("active").find('[data-toggle="tab"]').attr("aria-expanded",!0),a?(t[0].offsetWidth,t.addClass("in")):t.removeClass("fade"),t.parent(".dropdown-menu").length&&t.closest("li.dropdown").addClass("active").end().find('[data-toggle="tab"]').attr("aria-expanded",!0),r&&r()}var s=n.find("> .active"),a=r&&e.support.transition&&(s.length&&s.hasClass("fade")||!!n.find("> .fade").length);s.length&&a?s.one("bsTransitionEnd",o).emulateTransitionEnd(i.TRANSITION_DURATION):o(),s.removeClass("in")};var n=e.fn.tab;
4e.fn.tab=t,e.fn.tab.Constructor=i,e.fn.tab.noConflict=function(){return e.fn.tab=n,this};var r=function(i){i.preventDefault(),t.call(e(this),"show")};e(document).on("click.bs.tab.data-api",'[data-toggle="tab"]',r).on("click.bs.tab.data-api",'[data-toggle="pill"]',r)}(jQuery),function(e){"use strict";function t(){var e=document.createElement("bootstrap"),t={WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd otransitionend",transition:"transitionend"};for(var i in t)if(void 0!==e.style[i])return{end:t[i]};return!1}e.fn.emulateTransitionEnd=function(t){var i=!1,n=this
5;return e(this).one("bsTransitionEnd",(function(){i=!0})),setTimeout((function(){i||e(n).trigger(e.support.transition.end)}),t),this},e((function(){e.support.transition=t(),e.support.transition&&(e.event.special.bsTransitionEnd={bindType:e.support.transition.end,delegateType:e.support.transition.end,handle:function(t){if(e(t.target).is(this))return t.handleObj.handler.apply(this,arguments)}})}))}(jQuery),function(e){"use strict";function t(t,i){var n=t.nodeName.toLowerCase();if(-1!==e.inArray(n,i))return-1===e.inArray(n,o)||Boolean(t.nodeValue.match(a)||t.nodeValue.match(l));for(var r=e(i).filter((function(e,t){return t instanceof RegExp})),s=0,u=r.length;s<u;s++)if(n.match(r[s]))return!0;return!1}function i(i,n,r){if(0===i.length)return i;if(r&&"function"==typeof r)return r(i);if(!document.implementation||!document.implementation.createHTMLDocument)return i;var o=document.implementation.createHTMLDocument("sanitization");o.body.innerHTML=i;for(var s=e.map(n,(function(e,t){return t})),a=e(o.body).find("*"),l=0,u=a.length;l<u;l++){var c=a[l],d=c.nodeName.toLowerCase();if(-1!==e.inArray(d,s))for(var h=e.map(c.attributes,(function(e){return e})),f=[].concat(n["*"]||[],n[d]||[]),p=0,m=h.length;p<m;p++)t(h[p],f)||c.removeAttribute(h[p].nodeName);else c.parentNode.removeChild(c)}return o.body.innerHTML}function n(t){return this.each((function(){var i=e(this),n=i.data("bs.tooltip"),r="object"==typeof t&&t;!n&&/destroy|hide/.test(t)||(n||i.data("bs.tooltip",n=new u(this,r)),"string"==typeof t&&n[t]())}))}var r=["sanitize","whiteList","sanitizeFn"],o=["background","cite","href","itemtype","longdesc","poster","src","xlink:href"],s={"*":["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,u=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)};u.VERSION="3.4.1",u.TRANSITION_DURATION=150,u.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:s},u.prototype.init=function(t,i,n){if(this.enabled=!0,this.type=t,this.$element=e(i),this.options=this.getOptions(n),this.$viewport=this.options.viewport&&e(document).find(e.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 r=this.options.trigger.split(" "),o=r.length;o--;){var s=r[o];if("click"==s)this.$element.on("click."+this.type,this.options.selector,e.proxy(this.toggle,this));else if("manual"!=s){var a="hover"==s?"mouseenter":"focusin",l="hover"==s?"mouseleave":"focusout";this.$element.on(a+"."+this.type,this.options.selector,e.proxy(this.enter,this)),this.$element.on(l+"."+this.type,this.options.selector,e.proxy(this.leave,this))}}this.options.selector?this._options=e.extend({},this.options,{trigger:"manual",selector:""}):this.fixTitle()},u.prototype.getDefaults=function(){return u.DEFAULTS},u.prototype.getOptions=function(t){var n=this.$element.data();for(var o in n)n.hasOwnProperty(o)&&-1!==e.inArray(o,r)&&delete n[o];return(t=e.extend({},this.getDefaults(),n,t)).delay&&"number"==typeof t.delay&&(t.delay={show:t.delay,hide:t.delay}),t.sanitize&&(t.template=i(t.template,t.whiteList,t.sanitizeFn)),t},u.prototype.getDelegateOptions=function(){var t={},i=this.getDefaults();
vendor: 5,495 bytes, line 5
5return this._options&&e.each(this._options,(function(e,n){i[e]!=n&&(t[e]=n)})),t},u.prototype.enter=function(t){var i=t instanceof this.constructor?t:e(t.currentTarget).data("bs."+this.type);if(i||(i=new this.constructor(t.currentTarget,this.getDelegateOptions()),e(t.currentTarget).data("bs."+this.type,i)),t instanceof e.Event&&(i.inState["focusin"==t.type?"focus":"hover"]=!0),i.tip().hasClass("in")||"in"==i.hoverState)i.hoverState="in";else{if(clearTimeout(i.timeout),i.hoverState="in",!i.options.delay||!i.options.delay.show)return i.show();i.timeout=setTimeout((function(){"in"==i.hoverState&&i.show()}),i.options.delay.show)}},u.prototype.isInStateTrue=function(){for(var e in this.inState)if(this.inState[e])return!0;return!1},u.prototype.leave=function(t){var i=t instanceof this.constructor?t:e(t.currentTarget).data("bs."+this.type);if(i||(i=new this.constructor(t.currentTarget,this.getDelegateOptions()),e(t.currentTarget).data("bs."+this.type,i)),t instanceof e.Event&&(i.inState["focusout"==t.type?"focus":"hover"]=!1),!i.isInStateTrue()){if(clearTimeout(i.timeout),i.hoverState="out",!i.options.delay||!i.options.delay.hide)return i.hide();i.timeout=setTimeout((function(){"out"==i.hoverState&&i.hide()}),i.options.delay.hide)}},u.prototype.show=function(){var t=e.Event("show.bs."+this.type);if(this.hasContent()&&this.enabled){this.$element.trigger(t);var i=e.contains(this.$element[0].ownerDocument.documentElement,this.$element[0]);if(t.isDefaultPrevented()||!i)return;var n=this,r=this.tip(),o=this.getUID(this.type);this.setContent(),r.attr("id",o),this.$element.attr("aria-describedby",o),this.options.animation&&r.addClass("fade");var s="function"==typeof this.options.placement?this.options.placement.call(this,r[0],this.$element[0]):this.options.placement,a=/\s?auto?\s?/i,l=a.test(s);l&&(s=s.replace(a,"")||"top"),r.detach().css({top:0,left:0,display:"block"}).addClass(s).data("bs."+this.type,this),this.options.container?r.appendTo(e(document).find(this.options.container)):r.insertAfter(this.$element),this.$element.trigger("inserted.bs."+this.type);var c=this.getPosition(),d=r[0].offsetWidth,h=r[0].offsetHeight;if(l){var f=s,p=this.getPosition(this.$viewport);s="bottom"==s&&c.bottom+h>p.bottom?"top":"top"==s&&c.top-h<p.top?"bottom":"right"==s&&c.right+d>p.width?"left":"left"==s&&c.left-d<p.left?"right":s,r.removeClass(f).addClass(s)}var m=this.getCalculatedOffset(s,c,d,h);this.applyPlacement(m,s);var g=function(){var e=n.hoverState;n.$element.trigger("shown.bs."+n.type),n.hoverState=null,"out"==e&&n.leave(n)};e.support.transition&&this.$tip.hasClass("fade")?r.one("bsTransitionEnd",g).emulateTransitionEnd(u.TRANSITION_DURATION):g()}},u.prototype.applyPlacement=function(t,i){var n=this.tip(),r=n[0].offsetWidth,o=n[0].offsetHeight,s=parseInt(n.css("margin-top"),10),a=parseInt(n.css("margin-left"),10);isNaN(s)&&(s=0),isNaN(a)&&(a=0),t.top+=s,t.left+=a,e.offset.setOffset(n[0],e.extend({using:function(e){n.css({top:Math.round(e.top),left:Math.round(e.left)})}},t),0),n.addClass("in");var l=n[0].offsetWidth,u=n[0].offsetHeight;"top"==i&&u!=o&&(t.top=t.top+o-u);var c=this.getViewportAdjustedDelta(i,t,l,u);c.left?t.left+=c.left:t.top+=c.top;var d=/top|bottom/.test(i),h=d?2*c.left-r+l:2*c.top-o+u,f=d?"offsetWidth":"offsetHeight";n.offset(t),this.replaceArrow(h,n[0][f],d)},u.prototype.replaceArrow=function(e,t,i){this.arrow().css(i?"left":"top",50*(1-e/t)+"%").css(i?"top":"left","")},u.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")},u.prototype.hide=function(t){function i(){"in"!=n.hoverState&&r.detach(),n.$element&&n.$element.removeAttr("aria-describedby").trigger("hidden.bs."+n.type),t&&t()}var n=this,r=e(this.$tip),o=e.Event("hide.bs."+this.type);if(this.$element.trigger(o),!o.isDefaultPrevented())return r.removeClass("in"),e.support.transition&&r.hasClass("fade")?r.one("bsTransitionEnd",i).emulateTransitionEnd(u.TRANSITION_DURATION):i(),this.hoverState=null,this},u.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","")},u.prototype.hasContent=function(){return this.getTitle()},u.prototype.getPosition=function(t){var i=(t=t||this.$element)[0],n="BODY"==i.tagName,r=i.getBoundingClientRect();null==r.width&&(r=e.extend({},r,{width:r.right-r.left,height:r.bottom-r.top}));var o=window.SVGElement&&i instanceof window.SVGElement,s=n?{top:0,left:0}:o?null:t.offset(),a={scroll:n?document.documentElement.scrollTop||document.body.scrollTop:t.scrollTop()},l=n?{width:e(window).width(),height:e(window).height()}:null;return e.extend({},r,a,l,s)},u.prototype.getCalculatedOffset=function(e,t,i,n){return"bottom"==e?{top:t.top+t.height,left:t.left+t.width/2-i/2}:"top"==e?{top:t.top-n,left:t.left+t.width/2-i/2}:"left"==e?{top:t.top+t.height/2-n/2,left:t.left-i}:{top:t.top+t.height/2-n/2,left:t.left+t.width}},u.prototype.getViewportAdjustedDelta=function(e,t,i,n){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+n;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+i;
5u<s.left?r.left=s.left-u:c>s.right&&(r.left=s.left+s.width-c)}return r},u.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)},u.prototype.getUID=function(e){do{e+=~~(1e6*Math.random())}while(document.getElementById(e));return e},u.prototype.tip=function(){if(!this.$tip&&(this.$tip=e(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},u.prototype.arrow=function(){return this.$arrow=this.$arrow||this.tip().find(".tooltip-arrow")},u.prototype.enable=function(){this.enabled=!0},u.prototype.disable=function(){this.enabled=!1},u.prototype.toggleEnabled=function(){this.enabled=!this.enabled},u.prototype.toggle=function(t){var i=this;t&&((i=e(t.currentTarget).data("bs."+this.type))||(i=new this.constructor(t.currentTarget,this.getDelegateOptions()),e(t.currentTarget).data("bs."+this.type,i))),t?(i.inState.click=!i.inState.click,i.isInStateTrue()?i.enter(i):i.leave(i)):i.tip().hasClass("in")?i.leave(i):i.enter(i)},u.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}))},u.prototype.sanitizeHtml=function(e){return i(e,this.options.whiteList,this.options.sanitizeFn)};var c=e.fn.tooltip;e.fn.tooltip=n,e.fn.tooltip.Constructor=u,e.fn.tooltip.noConflict=function(){return e.fn.tooltip=c,this}}(jQuery),function(e){"use strict";function t(t){return this.each((function(){var n=e(this),r=n.data("bs.popover"),o="object"==typeof t&&t;!r&&/destroy|hide/.test(t)||(r||n.data("bs.popover",r=new i(this,o)),"string"==typeof t&&r[t]())}))}var i=function(e,t){this.init("popover",e,t)};if(!e.fn.tooltip)throw new Error("Popover requires tooltip.js");i.VERSION="3.4.1",i.DEFAULTS=e.extend({},e.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>'}),i.prototype=e.extend({},e.fn.tooltip.Constructor.prototype),i.prototype.constructor=i,i.prototype.getDefaults=function(){return i.DEFAULTS},i.prototype.setContent=function(){var e=this.tip(),t=this.getTitle(),i=this.getContent();if(this.options.html){var n=typeof i;this.options.sanitize&&(t=this.sanitizeHtml(t),"string"===n&&(i=this.sanitizeHtml(i))),e.find(".popover-title").html(t),e.find(".popover-content").children().detach().end()["string"===n?"html":"append"](i)}else e.find(".popover-title").text(t),e.find(".popover-content").children().detach().end().text(i);e.removeClass("fade top bottom left right in"),e.find(".popover-title").html()||e.find(".popover-title").hide()},i.prototype.hasContent=function(){return this.getTitle()||this.getContent()},i.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)},i.prototype.arrow=function(){return this.$arrow=this.$arrow||this.tip().find(".arrow")};var n=e.fn.popover;e.fn.popover=t,e.fn.popover.Constructor=i,e.fn.popover.noConflict=function(){return e.fn.popover=n,this}}(jQuery),function(e){function t(n){if(i[n])return i[n].exports;var r=i[n]={i:n,l:!1,exports:{}};return e[n].call(r.exports,r,r.exports,t),r.l=!0,r.exports}var i={};t.m=e,t.c=i,t.d=function(e,i,n){t.o(e,i)||Object.defineProperty(e,i,{configurable:!1,enumerable:!0,get:n})},t.r=function(e){Object.defineProperty(e,"__esModule",{value:!0})},t.n=function(e){var i=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(i,"a",i),i},t.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.p="",t(t.s=24)}([function(e,t,i){e.exports=!i(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,i){var n=i(13),r=i(12),o=i(10),s=Object.defineProperty;t.f=i(0)?Object.defineProperty:function(e,t,i){if(n(e),t=o(t,!0),n(i),r)try{return s(e,t,i)}catch(e){}if("get"in i||"set"in i)throw TypeError("Accessors not supported!");return"value"in i&&(e[t]=i.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}
5,function(e){e.exports=function(e){return e&&e.__esModule?e:{default:e}}},function(e){var t={}.hasOwnProperty;e.exports=function(e,i){return t.call(e,i)}},function(e){e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},function(e,t,i){var n=i(1);e.exports=function(e,t){if(!n(e))return e;var i,r;if(t&&"function"==typeof(i=e.toString)&&!n(r=i.call(e)))return r;if("function"==typeof(i=e.valueOf)&&!n(r=i.call(e)))return r;if(!t&&"function"==typeof(i=e.toString)&&!n(r=i.call(e)))return r;throw TypeError("Can't convert object to primitive value")}},function(e,t,i){var n=i(1),r=i(5).document,o=n(r)&&n(r.createElement);e.exports=function(e){return o?r.createElement(e):{}}},function(e,t,i){e.exports=!i(0)&&!i(2)((function(){return 7!=Object.defineProperty(i(11)("div"),"a",{get:function(){return 7}}).a}))},function(e,t,i){var n=i(1);e.exports=function(e){if(!n(e))throw TypeError(e+" is not an object!");return e}},function(e,t,i){var n=i(3),r=i(9);e.exports=i(0)?function(e,t,i){return n.f(e,t,r(1,i))}:function(e,t,i){return e[t]=i,e}},function(e){e.exports=function(e){if("function"!=typeof e)throw TypeError(e+" is not a function!");return e}},function(e,t,i){var n=i(15);e.exports=function(e,t,i){if(n(e),void 0===t)return e;switch(i){case 1:return function(i){return e.call(t,i)};case 2:return function(i,n){return e.call(t,i,n)};case 3:return function(i,n,r){return e.call(t,i,n,r)}}return function(){return e.apply(t,arguments)}}},function(e,t,i){var n=i(5),r=i(4),o=i(16),s=i(14),a=i(8),l=function(e,t,i){var u,c,d,h=e&l.F,f=e&l.G,p=e&l.S,m=e&l.P,g=e&l.B,v=e&l.W,y=f?r:r[t]||(r[t]={}),b=y.prototype,w=f?n:p?n[t]:(n[t]||{}).prototype;for(u in f&&(i=t),i)(c=!h&&w&&void 0!==w[u])&&a(y,u)||(d=c?w[u]:i[u],y[u]=f&&"function"!=typeof w[u]?i[u]:g&&c?o(d,n):v&&w[u]==d?function(e){var t=function(t,i,n){if(this instanceof e){switch(arguments.length){case 0:return new e;case 1:return new e(t);case 2:return new e(t,i)}return new e(t,i,n)}return e.apply(this,arguments)};return t.prototype=e.prototype,t}(d):m&&"function"==typeof d?o(Function.call,d):d,m&&((y.virtual||(y.virtual={}))[u]=d,e&l.R&&b&&!b[u]&&s(b,u,d)))};l.F=1,l.G=2,l.S=4,l.P=8,l.B=16,l.W=32,l.U=64,l.R=128,e.exports=l},function(e,t,i){var n=i(17);n(n.S+n.F*!i(0),"Object",{defineProperty:i(3).f})},function(e,t,i){i(18);var n=i(4).Object;e.exports=function(e,t,i){return n.defineProperty(e,t,i)}},function(e,t,i){e.exports=i(19)},function(e,t,i){function n(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),r(e,n.key,n)}}var r=i(20);e.exports=function(e,t,i){return t&&n(e.prototype,t),i&&n(e,i),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,i){"use strict";var n=i(7);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=n(i(22)),o=n(i(21)),s=n(i(6)),a=27,l=35,u=36,c=37,d=38,h=39,f=40,p=400,m=40,g=400,v=0,y=function(){function e(t,i){(0,r.default)(this,e),this.menu=t,this.$element=i,this.$link=i.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,o=i.find("ul").first();o.length&&(o.attr("id")||o.attr("id",(v=n=v+1,"sl-menu__submenu_".concat(n))),this.submenu=new t.constructor(o,{role:"menu",focusContainer:!1}),this.$element.addClass("sl-menu--has-submenu"),this.$link.attr("aria-haspopup","menu").attr("aria-controls",o.attr("id")),this.$toggle=(0,s.default)('<button type="button" class="sl-menu__toggle">Toggle menu</button>').attr("aria-controls",o.attr("id")).attr("tabindex","-1").insertAfter(this.$link),o.addClass("sl-menu__submenu"),o.attr("aria-label")||o.attr("aria-label",this.$link.text())),this.update()}return(0,o.default)(e,[{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()}}]),e}(),b=function(){function e(t){var i,n,o=this,v=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};(0,r.default)(this,e),this.$element=t,this.role=v.role||"menubar",this.focusContainer="boolean"!=typeof v.focusContainer||v.focusContainer,this.items=[],this.openIndex=-1,this.hoverMode=!0,this.hoverIntent=!1,this.$element.attr("role")||this.$element.attr("role",this.role),t.focu
5sin((function(e){if(o.focusContainer){var t=(0,s.default)(e.target);o.setActiveElement(t)}o.setOrientation()})),this.focusContainer&&(0,s.default)(document).on("keypress click focusin",(function(e){-1!==o.openIndex&&0===t.has(e.target).length&&(o.setActiveElement(o.items[o.openIndex].$link),o.setOpenIndex(-1))})),t.keydown((function(e){if(e.which===a&&-1!==o.openIndex){var t=o.items[o.openIndex];o.setOpenIndex(-1),t.focus(),e.stopPropagation(),e.preventDefault()}})),t.mouseenter((function(){o.setHoverMode()})),t.children("li").each((function(e,t){var r=(0,s.default)(t),a=new y(o,r);o.items.push(a),a.$link.attr("tabindex","-1"),r.keydown((function(t){var i="horizontal"===o.orientation?f:h,n="horizontal"===o.orientation?d:c,r="horizontal"===o.orientation?c:d,s="horizontal"===o.orientation?h:f;switch(t.which){case i:a.submenu&&o.openIndex!==e&&(o.setOpenIndex(e),a.submenu.focusFirstItem(),t.stopPropagation(),t.preventDefault());break;case n:a.submenu&&o.openIndex===e&&(o.setOpenIndex(-1),a.focus(),t.stopPropagation(),t.preventDefault());break;case r:if(e>0){if(e!==o.openIndex||"horizontal"===o.orientation){var p=o.items[e-1];p.submenu&&-1!==o.openIndex?(o.setOpenIndex(e-1),p.submenu.focusFirstItem()):(o.setOpenIndex(-1),p.focus())}t.stopPropagation(),t.preventDefault()}break;case s:if(e<o.items.length-1){var m=o.items[e+1];m.submenu&&-1!==o.openIndex?(o.setOpenIndex(e+1),m.submenu.focusFirstItem()):(o.setOpenIndex(-1),m.focus())}t.stopPropagation(),t.preventDefault();break;case u:if(o.items.length>0){var g=o.items[0];g.submenu&&-1!==o.openIndex?(o.setOpenIndex(1),g.submenu.focusFirstItem()):(o.setOpenIndex(-1),g.focus()),t.stopPropagation(),t.preventDefault()}break;case l:if(o.items.length>0){var v=o.items[o.items.length-1];v.submenu&&-1!==o.openIndex?(o.setOpenIndex(o.items.length-1),v.submenu.focusFirstItem()):(o.setOpenIndex(-1),v.focus()),t.stopPropagation(),t.preventDefault()}}})),r.mouseenter((function(){o.hoverMode&&(i&&(clearTimeout(i),i=void 0),o.hoverIntent?o.setOpenIndex(e):i=setTimeout((function(){o.hoverMode&&(o.hoverIntent=!0,o.setOpenIndex(e))}),p),n&&(clearTimeout(n),n=void 0))})),r.mousemove((function(){o.hoverMode&&!o.hoverIntent&&(n&&clearTimeout(n),n=setTimeout((function(){o.hoverIntent=!0,o.setOpenIndex(e)}),m))})),r.mouseleave((function(){o.hoverMode&&(i&&clearTimeout(i),i=setTimeout((function(){o.openIndex===e&&(o.hoverIntent=!1,o.setOpenIndex(-1))}),g),n&&(clearTimeout(n),n=void 0))})),a.submenu&&a.$toggle&&a.$toggle.click((function(){o.openIndex===e?(o.setOpenIndex(-1),a.focus()):(o.setOpenIndex(e),a.submenu.focusFirstItem())}))})),this.focusContainer&&this.items.length>0&&this.setActiveElement(this.items[0].$link),this.setOrientation(),this.update()}return(0,o.default)(e,[{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")&&this.items.length>=2){var e=this.items[0].$element.offset(),t=this.items[1].$element.offset(),i=Math.abs(t.left-e.left),n=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 e=this;this.items.forEach((function(t,i){t.setOpen(i===e.openIndex)}))}},{key:"focusFirstItem",value:function(){0!==this.items.length&&this.items[0].focus()}}]),e}();t.default=b},function(e,t,i){"use strict";var n=i(7),r=n(i(6)),o=n(i(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(e){"use strict";var t=window.Slick||{};(t=function(){function t(t,n){var r,o=this;o.defaults={accessibility:!0,adaptiveHeight:!1,appendArrows:e(t),appendDots:e(t),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(t,i){return e('<button type="button" />').text(i+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},o.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,
vendor: 9,350 bytes, lines 5-6
5sliding:!1,slideOffset:0,swipeLeft:null,swiping:!1,$list:null,touchObject:{},transformsEnabled:!1,unslicked:!1},e.extend(o,o.initials),o.activeBreakpoint=null,o.animType=null,o.animProp=null,o.breakpoints=[],o.breakpointSettings=[],o.cssTransitions=!1,o.focussed=!1,o.interrupted=!1,o.hidden="hidden",o.paused=!0,o.positionProp=null,o.respondTo=null,o.rowCount=1,o.shouldClick=!0,o.$slider=e(t),o.$slidesCache=null,o.transformType=null,o.transitionType=null,o.visibilityChange="visibilitychange",o.windowWidth=0,o.windowTimer=null,r=e(t).data("slick")||{},o.options=e.extend({},o.defaults,n,r),o.currentSlide=o.options.initialSlide,o.originalSettings=o.options,void 0!==document.mozHidden?(o.hidden="mozHidden",o.visibilityChange="mozvisibilitychange"):void 0!==document.webkitHidden&&(o.hidden="webkitHidden",o.visibilityChange="webkitvisibilitychange"),o.autoPlay=e.proxy(o.autoPlay,o),o.autoPlayClear=e.proxy(o.autoPlayClear,o),o.autoPlayIterator=e.proxy(o.autoPlayIterator,o),o.changeSlide=e.proxy(o.changeSlide,o),o.clickHandler=e.proxy(o.clickHandler,o),o.selectHandler=e.proxy(o.selectHandler,o),o.setPosition=e.proxy(o.setPosition,o),o.swipeHandler=e.proxy(o.swipeHandler,o),o.dragHandler=e.proxy(o.dragHandler,o),o.keyHandler=e.proxy(o.keyHandler,o),o.instanceUid=i++,o.htmlExpr=/^(?:\s*(<[\w\W]+>)[^>]*)$/,o.registerBreakpoints(),o.init(!0)}var i=0;return t}()).prototype.activateADA=function(){this.$slideTrack.find(".slick-active").attr({"aria-hidden":"false"}).find("a, input, button, select").attr({tabindex:"0"})},t.prototype.addSlide=t.prototype.slickAdd=function(t,i,n){var r=this;if("boolean"==typeof i)n=i,i=null;else if(i<0||i>=r.slideCount)return!1;r.unload(),"number"==typeof i?0===i&&0===r.$slides.length?e(t).appendTo(r.$slideTrack):n?e(t).insertBefore(r.$slides.eq(i)):e(t).insertAfter(r.$slides.eq(i)):!0===n?e(t).prependTo(r.$slideTrack):e(t).appendTo(r.$slideTrack),r.$slides=r.$slideTrack.children(this.options.slide),r.$slideTrack.children(this.options.slide).detach(),r.$slideTrack.append(r.$slides),r.$slides.each((function(t,i){e(i).attr("data-slick-index",t)})),r.$slidesCache=r.$slides,r.reinit()},t.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)}},t.prototype.animateSlide=function(t,i){var n={},r=this;r.animateHeight(),!0===r.options.rtl&&!1===r.options.vertical&&(t=-t),!1===r.transformsEnabled?!1===r.options.vertical?r.$slideTrack.animate({left:t},r.options.speed,r.options.easing,i):r.$slideTrack.animate({top:t},r.options.speed,r.options.easing,i):!1===r.cssTransitions?(!0===r.options.rtl&&(r.currentLeft=-r.currentLeft),e({animStart:r.currentLeft}).animate({animStart:t},{duration:r.options.speed,easing:r.options.easing,step:function(e){e=Math.ceil(e),!1===r.options.vertical?(n[r.animType]="translate("+e+"px, 0px)",r.$slideTrack.css(n)):(n[r.animType]="translate(0px,"+e+"px)",r.$slideTrack.css(n))},complete:function(){i&&i.call()}})):(r.applyTransition(),t=Math.ceil(t),!1===r.options.vertical?n[r.animType]="translate3d("+t+"px, 0px, 0px)":n[r.animType]="translate3d(0px,"+t+"px, 0px)",r.$slideTrack.css(n),i&&setTimeout((function(){r.disableTransition(),i.call()}),r.options.speed))},t.prototype.getNavTarget=function(){var t=this,i=t.options.asNavFor;return i&&null!==i&&(i=e(i).not(t.$slider)),i},t.prototype.asNavFor=function(t){var i=this.getNavTarget();null!==i&&"object"==typeof i&&i.each((function(){var i=e(this).slick("getSlick");i.unslicked||i.slideHandler(t,!0)}))},t.prototype.applyTransition=function(e){var t=this,i={};!1===t.options.fade?i[t.transitionType]=t.transformType+" "+t.options.speed+"ms "+t.options.cssEase:i[t.transitionType]="opacity "+t.options.speed+"ms "+t.options.cssEase,!1===t.options.fade?t.$slideTrack.css(i):t.$slides.eq(e).css(i)},t.prototype.autoPlay=function(){var e=this;e.autoPlayClear(),e.slideCount>e.options.slidesToShow&&(e.autoPlayTimer=setInterval(e.autoPlayIterator,e.options.autoplaySpeed))},t.prototype.autoPlayClear=function(){var e=this;e.autoPlayTimer&&clearInterval(e.autoPlayTimer)},t.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))},t.prototype.buildArrows=function(){var t=this;!0===t.options.arrows&&(t.$prevArrow=e(t.options.prevArrow).addClass("slick-arrow"),t.$nextArrow=e(t.options.nextArrow).addClass("slick-arrow"),t.slideCount>t.options.slidesToShow?(t.$prevArrow.removeClass("slick-hidden").removeAttr("aria-hidden tabindex"),t.$nextArrow.removeClass("slick-hidden").removeAttr("aria-hidden tabindex"),t.htmlExpr.test(t.options.prevArrow)&&t.$prevArrow.prependTo(t.options.appendArrows),t.htmlExpr.test(t.options.nextArrow)&&t.$nextArrow.appendTo(t.options.appendArrows),!0!==t.options.infinite&&t.$prevArrow.addClass("slick-disabled").attr("aria-disabled","true")):t.$prevArrow.add(t.$nextArrow).addClass("slick-hidden").attr({"aria-disabled":"true",tabindex:"-1"}))},t.prototype.buildDots=function(){var t,i,n=this;if(!0===n.options.dots&&n.slideCount>n.options.slidesToShow){for(n.$slider.addClass("slick-dotted"),i=e("<ul />").addClass(n.options.dotsClass),t=0;t<=n.getDotCount();t+=1)i.append(e("<li />").append(n.options.customPaging.call(this,n,t)));n.$dots=i.appendTo(n.options.appendDots),n.$dots.find("li").first().addClass("slick-active")}},t.prototype.buildOut=function(){var t=this;t.$slides=t.$slider.children(t.options.slide+":not(.slick-cloned)").addClass("slick-slide"),t.slideCount=t.$slides.length,t.$slides.each((function(t,i){e(i).attr("data-slick-index",t).data("originalStyling",e(i).attr("style")||"")})),t.$slider.addClass("slick-slider"),t.$slideTrack=0===t.slideCount?e('<div class="slick-track"/>').appendTo(t.$slider):t.$slides.wrapAll('<div class="slick-track"/>').parent(),t.$list=t.$slideTrack.wrap('<div class="slick-list"/>').parent(),t.$slideTrack.css("opacity",0),!0!==t.options.centerMode&&!0!==t.options.swipeToSlide||(t.options.slidesToScroll=1),e("img[data-lazy]",t.$slider).not("[src]").addClass("slick-loading"),t.setupInfinite(),t.buildArrows(),t.buildDots(),t.updateDots(),t.setSlideClasses("number"==typeof t.currentSlide?t.currentSlide:0),!0===t.options.draggable&&t.$list.addClass("draggable")},t.prototype.buildRows=function(){var e,t,i,n,r,o,s,a=this;if(n=document.createDocumentFragment(),o=a.$slider.children(),a.options.rows>0){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(i=0;i<a.options.slidesPerRow;i++){var c=e*s+(t*a.options.slidesPerRow+i);o.get(c)&&u.appendChild(o.get(c))}l.appendChild(u)}n.appendChild(l)}a.$slider.empty().append(n),a.$slider.children().children().children().css({width:100/a.options.slidesPerRow+"%",display:"inline-block"})}},t.prototype.checkResponsive=function(t,i){var n,r,o,s=this,a=!1,l=s.$slider.width(),u=window.innerWidth||e(window).width();if("window"===s.respondTo?o=u:"slider"===s.respondTo?o=l:"min"===s.respondTo&&(o=Math.min(u,l)),s.options.responsive&&s.options.responsive.length&&null!==s.options.responsive){for(n in r=null,s.breakpoints)s.breakpoints.hasOwnProperty(n)&&(!1===s.originalSettings.mobileFirst?o<s.breakpoints[n]&&(r=s.breakpoints[n]):o>s.breakpoints[n]&&(r=s.breakpoints[n]));null!==r?null!==s.activeBreakpoint?(r!==s.activeBreakpoint||i)&&(s.activeBreakpoint=r,"unslick"===s.breakpointSettings[r]?s.unslick(r):(s.options=e.extend({},s.originalSettings,s.breakpointSettings[r]),!0===t&&(s.currentSlide=s.options.initialSlide),s.refresh(t)),a=r):(s.activeBreakpoint=r,"unslick"===s.breakpointSettings[r]?s.unslick(r):(s.options=e.extend({},s.originalSettings,s.breakpointSettings[r]),!0===t&&(s.currentSlide=s.options.initialSlide),s.refresh(t)),a=r):null!==s.activeBreakpoint&&(s.activeBreakpoint=null,
6s.options=s.originalSettings,!0===t&&(s.currentSlide=s.options.initialSlide),s.refresh(t),a=r),t||!1===a||s.$slider.trigger("breakpoint",[s,a])}},t.prototype.changeSlide=function(t,i){var n,r,o=this,s=e(t.currentTarget);switch(s.is("a")&&t.preventDefault(),s.is("li")||(s=s.closest("li")),n=o.slideCount%o.options.slidesToScroll!=0?0:(o.slideCount-o.currentSlide)%o.options.slidesToScroll,t.data.message){case"previous":r=0===n?o.options.slidesToScroll:o.options.slidesToShow-n,o.slideCount>o.options.slidesToShow&&o.slideHandler(o.currentSlide-r,!1,i);break;case"next":r=0===n?o.options.slidesToScroll:n,o.slideCount>o.options.slidesToShow&&o.slideHandler(o.currentSlide+r,!1,i);break;case"index":var a=0===t.data.index?0:t.data.index||s.index()*o.options.slidesToScroll;o.slideHandler(o.checkNavigable(a),!1,i),s.children().trigger("focus");break;default:return}},t.prototype.checkNavigable=function(e){var t,i;if(i=0,e>(t=this.getNavigableIndexes())[t.length-1])e=t[t.length-1];else for(var n in t){if(e<t[n]){e=i;break}i=t[n]}return e},t.prototype.cleanUpEvents=function(){var t=this;t.options.dots&&null!==t.$dots&&(e("li",t.$dots).off("click.slick",t.changeSlide).off("mouseenter.slick",e.proxy(t.
6interrupt,t,!0)).off("mouseleave.slick",e.proxy(t.interrupt,t,!1)),!0===t.options.accessibility&&t.$dots.off("keydown.slick",t.keyHandler)),t.$slider.off("focus.slick blur.slick"),!0===t.options.arrows&&t.slideCount>t.options.slidesToShow&&(t.$prevArrow&&t.$prevArrow.off("click.slick",t.changeSlide),t.$nextArrow&&t.$nextArrow.off("click.slick",t.changeSlide),!0===t.options.accessibility&&(t.$prevArrow&&t.$prevArrow.off("keydown.slick",t.keyHandler),t.$nextArrow&&t.$nextArrow.off("keydown.slick",t.keyHandler))),t.$list.off("touchstart.slick mousedown.slick",t.swipeHandler),t.$list.off("touchmove.slick mousemove.slick",t.swipeHandler),t.$list.off("touchend.slick mouseup.slick",t.swipeHandler),t.$list.off("touchcancel.slick mouseleave.slick",t.swipeHandler),t.$list.off("click.slick",t.clickHandler),e(document).off(t.visibilityChange,t.visibility),t.cleanUpSlideEvents(),!0===t.options.accessibility&&t.$list.off("keydown.slick",t.keyHandler),!0===t.options.focusOnSelect&&e(t.$slideTrack).children().off("click.slick",t.selectHandler),e(window).off("orientationchange.slick.slick-"+t.instanceUid,t.orientationChange),e(window).off("resize.slick.slick-"+t.instanceUid,t.resize),e("[draggable!=true]",t.$slideTrack).off("dragstart",t.preventDefault),e(window).off("load.slick.slick-"+t.instanceUid,t.setPosition)},t.prototype.cleanUpSlideEvents=function(){var t=this;t.$list.off("mouseenter.slick",e.proxy(t.interrupt,t,!0)),t.$list.off("mouseleave.slick",e.proxy(t.interrupt,t,!1))},t.prototype.cleanUpRows=function(){var e,t=this;t.options.rows>0&&((e=t.$slides.children().children()).removeAttr("style"),t.$slider.empty().append(e))},t.prototype.clickHandler=function(e){!1===this.shouldClick&&(e.stopImmediatePropagation(),e.stopPropagation(),e.preventDefault())},t.prototype.destroy=function(t){var i=this;i.autoPlayClear(),i.touchObject={},i.cleanUpEvents(),e(".slick-cloned",i.$slider).detach(),i.$dots&&i.$dots.remove(),i.$prevArrow&&i.$prevArrow.length&&(i.$prevArrow.removeClass("slick-disabled slick-arrow slick-hidden").removeAttr("aria-hidden aria-disabled tabindex").css("display",""),i.htmlExpr.test(i.options.prevArrow)&&i.$prevArrow.remove()),i.$nextArrow&&i.$nextArrow.length&&(i.$nextArrow.removeClass("slick-disabled slick-arrow slick-hidden").removeAttr("aria-hidden aria-disabled tabindex").css("display",""),i.htmlExpr.test(i.options.nextArrow)&&i.$nextArrow.remove()),i.$slides&&(i.$slides.removeClass("slick-slide slick-active slick-center slick-visible slick-current").removeAttr("aria-hidden").removeAttr("data-slick-index").each((function(){e(this).attr("style",e(this).data("originalStyling"))})),i.$slideTrack.children(this.options.slide).detach(),i.$slideTrack.detach(),i.$list.detach(),i.$slider.append(i.$slides)),i.cleanUpRows(),i.$slider.removeClass("slick-slider"),i.$slider.removeClass("slick-initialized"),i.$slider.removeClass("slick-dotted"),i.unslicked=!0,t||i.$slider.trigger("destroy",[i])},t.prototype.disableTransition=function(e){var t=this,i={};i[t.transitionType]="",!1===t.options.fade?t.$slideTrack.css(i):t.$slides.eq(e).css(i)},t.prototype.fadeSlide=function(e,t){var i=this;!1===i.cssTransitions?(i.$slides.eq(e).css({zIndex:i.options.zIndex}),i.$slides.eq(e).animate({opacity:1},i.options.speed,i.options.easing,t)):(i.applyTransition(e),i.$slides.eq(e).css({opacity:1,zIndex:i.options.zIndex}),t&&setTimeout((function(){i.disableTransition(e),t.call()}),i.options.speed))},t.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}))},t.prototype.filterSlides=t.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())},t.prototype.focusHandler=function(){var t=this;t.$slider.off("focus.slick blur.slick").on("focus.slick blur.slick","*",(function(i){i.stopImmediatePropagation();var n=e(this);setTimeout((function(){t.options.pauseOnFocus&&(t.focussed=n.is(":focus"),t.autoPlay())}),0)}))},t.prototype.getCurrent=t.prototype.slickCurrentSlide=function(){return this.currentSlide},t.prototype.getDotCount=function(){var e=this,t=0,i=0,n=0;if(!0===e.options.infinite)if(e.slideCount<=e.options.slidesToShow)++n;else for(;t<e.slideCount;)++n,t=i+e.options.slidesToScroll,i+=e.options.slidesToScroll<=e.options.slidesToShow?e.options.slidesToScroll:e.options.slidesToShow;else if(!0===e.options.centerMode)n=e.slideCount;else if(e.options.asNavFor)for(;t<e.slideCount;)++n,t=i+e.options.slidesToScroll,i+=e.options.slidesToScroll<=e.options.slidesToShow?e.options.slidesToScroll:e.options.slidesToShow;else n=1+Math.ceil((e.slideCount-e.options.slidesToShow)/e.options.slidesToScroll);return n-1},t.prototype.getLeft=function(e){var t,i,n,r,o=this,s=0;return o.slideOffset=0,i=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=i*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))*i*-1):(o.slideOffset=o.slideCount%o.options.slidesToScroll*o.slideWidth*-1,s=o.slideCount%o.options.slidesToScroll*i*-1))):e+o.options.slidesToShow>o.slideCount&&(o.slideOffset=(e+o.options.slidesToShow-o.slideCount)*o.slideWidth,s=(e+o.options.slidesToShow-o.slideCount)*i),o.slideCount<=o.options.slidesToShow&&(o.slideOffset=0,s=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*i*-1+s,!0===o.options.variableWidth&&(n=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?n[0]?-1*(o.$slideTrack.width()-n[0].offsetLeft-n.width()):0:n[0]?-1*n[0].offsetLeft:0,!0===o.options.centerMode&&(n=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?n[0]?-1*(o.$slideTrack.width()-n[0].offsetLeft-n.width()):0:n[0]?-1*n[0].offsetLeft:0,t+=(o.$list.width()-n.outerWidth())/2)),t},t.prototype.getOption=t.prototype.slickGetOption=function(e){return this.options[e]},t.prototype.getNavigableIndexes=function(){var e,t=this,i=0,n=0,r=[];for(!1===t.options.infinite?e=t.slideCount:(i=-1*t.options.slidesToScroll,n=-1*t.options.slidesToScroll,e=2*t.slideCount);i<e;)r.push(i),i=n+t.options.slidesToScroll,n+=t.options.slidesToScroll<=t.options.slidesToShow?t.options.slidesToScroll:t.options.slidesToShow;return r},t.prototype.getSlick=function(){return this},t.prototype.getSlideCount=function(){var t,i,n=this;return i=!0===n.options.centerMode?n.slideWidth*Math.floor(n.options.slidesToShow/2):0,!0===n.options.swipeToSlide?(n.$slideTrack.find(".slick-slide").each((function(r,o){if(o.offsetLeft-i+e(o).outerWidth()/2>-1*n.swipeLeft)return t=o,!1})),Math.abs(e(t).attr("data-slick-index")-n.currentSlide)||1):n.options.slidesToScroll},t.prototype.goTo=t.prototype.slickGoTo=function(e,t){this.changeSlide({data:{message:"index",index:
6parseInt(e)}},t)},t.prototype.init=function(t){var i=this;e(i.$slider).hasClass("slick-initialized")||(e(i.$slider).addClass("slick-initialized"),i.buildRows(),i.buildOut(),i.setProps(),i.startLoad(),i.loadSlider(),i.initializeEvents(),i.updateArrows(),i.updateDots(),i.checkResponsive(!0),i.focusHandler()),t&&i.$slider.trigger("init",[i]),!0===i.options.accessibility&&i.initADA(),i.options.autoplay&&(i.paused=!1,i.autoPlay())},t.prototype.initADA=function(){var t=this,i=Math.ceil(t.slideCount/t.options.slidesToShow),n=t.getNavigableIndexes().filter((function(e){return e>=0&&e<t.slideCount}));t.$slides.add(t.$slideTrack.find(".slick-cloned")).attr({"aria-hidden":"true",tabindex:"-1"}).find("a, input, button, select").attr({tabindex:"-1"}),null!==t.$dots&&(t.$slides.not(t.$slideTrack.find(".slick-cloned")).each((function(i){var r=n.indexOf(i);if(e(this).attr({role:"tabpanel",id:"slick-slide"+t.instanceUid+i,tabindex:-1}),-1!==r){var o="slick-slide-control"+t.instanceUid+r;e("#"+o).length&&e(this).attr({"aria-describedby":o})}})),t.$dots.attr("role","tablist").find("li").each((function(r){var o=n[r];e(this).attr({role:"presentation"}),e(this).find("button").first().attr({role:"tab",id:"slick-slide-control"+t.instanceUid+r,"aria-controls":"slick-slide"+t.instanceUid+o,"aria-label":r+1+" of "+i,"aria-selected":null,tabindex:"-1"})})).eq(t.currentSlide).find("button").attr({"aria-selected":"true",tabindex:"0"}).end());for(var r=t.currentSlide,o=r+t.options.slidesToShow;r<o;r++)t.options.focusOnChange?t.$slides.eq(r).attr({tabindex:"0"}):t.$slides.eq(r).removeAttr("tabindex");t.activateADA()},t.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)))},t.prototype.initDotEvents=function(){var t=this;!0===t.options.dots&&t.slideCount>t.options.slidesToShow&&(e("li",t.$dots).on("click.slick",{message:"index"},t.changeSlide),!0===t.options.accessibility&&t.$dots.on("keydown.slick",t.keyHandler)),!0===t.options.dots&&!0===t.options.pauseOnDotsHover&&t.slideCount>t.options.slidesToShow&&e("li",t.$dots).on("mouseenter.slick",e.proxy(t.interrupt,t,!0)).on("mouseleave.slick",e.proxy(t.interrupt,t,!1))},t.prototype.initSlideEvents=function(){var t=this;t.options.pauseOnHover&&(t.$list.on("mouseenter.slick",e.proxy(t.interrupt,t,!0)),t.$list.on("mouseleave.slick",e.proxy(t.interrupt,t,!1)))},t.prototype.initializeEvents=function(){var t=this;t.initArrowEvents(),t.initDotEvents(),t.initSlideEvents(),t.$list.on("touchstart.slick mousedown.slick",{action:"start"},t.swipeHandler),t.$list.on("touchmove.slick mousemove.slick",{action:"move"},t.swipeHandler),t.$list.on("touchend.slick mouseup.slick",{action:"end"}
6,t.swipeHandler),t.$list.on("touchcancel.slick mouseleave.slick",{action:"end"},t.swipeHandler),t.$list.on("click.slick",t.clickHandler),e(document).on(t.visibilityChange,e.proxy(t.visibility,t)),!0===t.options.accessibility&&t.$list.on("keydown.slick",t.keyHandler),!0===t.options.focusOnSelect&&e(t.$slideTrack).children().on("click.slick",t.selectHandler),e(window).on("orientationchange.slick.slick-"+t.instanceUid,e.proxy(t.orientationChange,t)),e(window).on("resize.slick.slick-"+t.instanceUid,e.proxy(t.resize,t)),e("[draggable!=true]",t.$slideTrack).on("dragstart",t.preventDefault),e(window).on("load.slick.slick-"+t.instanceUid,t.setPosition),e(t.setPosition)},t.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()},t.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"}}))},t.prototype.lazyLoad=function(){function t(t){e("img[data-lazy]",t).each((function(){var t=e(this),i=e(this).attr("data-lazy"),n=e(this).attr("data-srcset"),r=e(this).attr("data-sizes")||o.$slider.attr("data-sizes"),s=document.createElement("img");s.onload=function(){t.animate({opacity:0}
vendor: 7,124 bytes, line 6
6,100,(function(){n&&(t.attr("srcset",n),r&&t.attr("sizes",r)),t.attr("src",i).animate({opacity:1},200,(function(){t.removeAttr("data-lazy data-srcset data-sizes").removeClass("slick-loading")})),o.$slider.trigger("lazyLoaded",[o,t,i])}))},s.onerror=function(){t.removeAttr("data-lazy").removeClass("slick-loading").addClass("slick-lazyload-error"),o.$slider.trigger("lazyLoadError",[o,t,i])},s.src=i}))}var i,n,r,o=this;if(!0===o.options.centerMode?!0===o.options.infinite?r=(n=o.currentSlide+(o.options.slidesToShow/2+1))+o.options.slidesToShow+2:(n=Math.max(0,o.currentSlide-(o.options.slidesToShow/2+1)),r=o.options.slidesToShow/2+1+2+o.currentSlide):(n=o.options.infinite?o.options.slidesToShow+o.currentSlide:o.currentSlide,r=Math.ceil(n+o.options.slidesToShow),!0===o.options.fade&&(n>0&&n--,r<=o.slideCount&&r++)),i=o.$slider.find(".slick-slide").slice(n,r),"anticipated"===o.options.lazyLoad)for(var s=n-1,a=r,l=o.$slider.find(".slick-slide"),u=0;u<o.options.slidesToScroll;u++)s<0&&(s=o.slideCount-1),i=(i=i.add(l.eq(s))).add(l.eq(a)),s--,a++;t(i),o.slideCount<=o.options.slidesToShow?t(o.$slider.find(".slick-slide")):o.currentSlide>=o.slideCount-o.options.slidesToShow?t(o.$slider.find(".slick-cloned").slice(0,o.options.slidesToShow)):0===o.currentSlide&&t(o.$slider.find(".slick-cloned").slice(-1*o.options.slidesToShow))},t.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()},t.prototype.next=t.prototype.slickNext=function(){this.changeSlide({data:{message:"next"}})},t.prototype.orientationChange=function(){var e=this;e.checkResponsive(),e.setPosition()},t.prototype.pause=t.prototype.slickPause=function(){var e=this;e.autoPlayClear(),e.paused=!0},t.prototype.play=t.prototype.slickPlay=function(){var e=this;e.autoPlay(),e.options.autoplay=!0,e.paused=!1,e.focussed=!1,e.interrupted=!1},t.prototype.postSlide=function(t){var i=this;i.unslicked||(i.$slider.trigger("afterChange",[i,t]),i.animating=!1,i.slideCount>i.options.slidesToShow&&i.setPosition(),i.swipeLeft=null,i.options.autoplay&&i.autoPlay(),!0===i.options.accessibility&&(i.initADA(),i.options.focusOnChange&&e(i.$slides.get(i.currentSlide)).attr("tabindex",0).focus()))},t.prototype.prev=t.prototype.slickPrev=function(){this.changeSlide({data:{message:"previous"}})},t.prototype.preventDefault=function(e){e.preventDefault()},t.prototype.progressiveLazyLoad=function(t){t=t||1;var i,n,r,o,s,a=this,l=e("img[data-lazy]",a.$slider);l.length?(i=l.first(),n=i.attr("data-lazy"),r=i.attr("data-srcset"),o=i.attr("data-sizes")||a.$slider.attr("data-sizes"),(s=document.createElement("img")).onload=function(){r&&(i.attr("srcset",r),o&&i.attr("sizes",o)),i.attr("src",n).removeAttr("data-lazy data-srcset data-sizes").removeClass("slick-loading"),!0===a.options.adaptiveHeight&&a.setPosition(),a.$slider.trigger("lazyLoaded",[a,i,n]),a.progressiveLazyLoad()},s.onerror=function(){t<3?setTimeout((function(){a.progressiveLazyLoad(t+1)}),500):(i.removeAttr("data-lazy").removeClass("slick-loading").addClass("slick-lazyload-error"),a.$slider.trigger("lazyLoadError",[a,i,n]),a.progressiveLazyLoad())},s.src=n):a.$slider.trigger("allImagesLoaded",[a])},t.prototype.refresh=function(t){var i,n,r=this;n=r.slideCount-r.options.slidesToShow,!r.options.infinite&&r.currentSlide>n&&(r.currentSlide=n),r.slideCount<=r.options.slidesToShow&&(r.currentSlide=0),i=r.currentSlide,r.destroy(!0),e.extend(r,r.initials,{currentSlide:i}),r.init(),t||r.changeSlide({data:{message:"index",index:i}},!1)},t.prototype.registerBreakpoints=function(){var t,i,n,r=this,o=r.options.responsive||null;if("array"===e.type(o)&&o.length){for(t in r.respondTo=r.options.respondTo||"window",o)if(n=r.breakpoints.length-1,o.hasOwnProperty(t)){for(i=o[t].breakpoint;n>=0;)r.breakpoints[n]&&r.breakpoints[n]===i&&r.breakpoints.splice(n,1),n--;r.breakpoints.push(i),r.breakpointSettings[i]=o[t].settings}r.breakpoints.sort((function(e,t){return r.options.mobileFirst?e-t:t-e}))}},t.prototype.reinit=function(){var t=this;t.$slides=t.$slideTrack.children(t.options.slide).addClass("slick-slide"),t.slideCount=t.$slides.length,t.currentSlide>=t.slideCount&&0!==t.currentSlide&&(t.currentSlide=t.currentSlide-t.options.slidesToScroll),t.slideCount<=t.options.slidesToShow&&(t.currentSlide=0),t.registerBreakpoints(),t.setProps(),t.setupInfinite(),t.buildArrows(),t.updateArrows(),t.initArrowEvents(),t.buildDots(),t.updateDots(),t.initDotEvents(),t.cleanUpSlideEvents(),t.initSlideEvents(),t.checkResponsive(!1,!0),!0===t.options.focusOnSelect&&e(t.$slideTrack).children().on("click.slick",t.selectHandler),t.setSlideClasses("number"==typeof t.currentSlide?t.currentSlide:0),t.setPosition(),t.focusHandler(),t.paused=!t.options.autoplay,t.autoPlay(),t.$slider.trigger("reInit",[t])},t.prototype.resize=function(){var t=this;e(window).width()!==t.windowWidth&&(clearTimeout(t.windowDelay),t.windowDelay=window.setTimeout((function(){t.windowWidth=e(window).width(),t.checkResponsive(),t.unslicked||t.setPosition()}),50))},t.prototype.removeSlide=t.prototype.slickRemove=function(e,t,i){var n=this;if(e="boolean"==typeof e?!0===(t=e)?0:n.slideCount-1:!0===t?--e:e,n.slideCount<1||e<0||e>n.slideCount-1)return!1;n.unload(),!0===i?n.$slideTrack.children().remove():n.$slideTrack.children(this.options.slide).eq(e).remove(),n.$slides=n.$slideTrack.children(this.options.slide),n.$slideTrack.children(this.options.slide).detach(),n.$slideTrack.append(n.$slides),n.$slidesCache=n.$slides,n.reinit()},t.prototype.setCSS=function(e){var t,i,n=this,r={};!0===n.options.rtl&&(e=-e),t="left"==n.positionProp?Math.ceil(e)+"px":"0px",i="top"==n.positionProp?Math.ceil(e)+"px":"0px",r[n.positionProp]=e,!1===n.transformsEnabled?n.$slideTrack.css(r):(r={},!1===n.cssTransitions?(r[n.animType]="translate("+t+", "+i+")",n.$slideTrack.css(r)):(r[n.animType]="translate3d("+t+", "+i+", 0px)",n.$slideTrack.css(r)))},t.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)},t.prototype.setFade=function(){var t,i=this;i.$slides.each((function(n,r){t=i.slideWidth*n*-1,!0===i.options.rtl?e(r).css({position:"relative",right:t,top:0,zIndex:i.options.zIndex-2,opacity:0}
6):e(r).css({position:"relative",left:t,top:0,zIndex:i.options.zIndex-2,opacity:0})})),i.$slides.eq(i.currentSlide).css({zIndex:i.options.zIndex-1,opacity:1})},t.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)}},t.prototype.setOption=t.prototype.slickSetOption=function(){var t,i,n,r,o,s=this,a=!1;if("object"===e.type(arguments[0])?(n=arguments[0],a=arguments[1],o="multiple"):"string"===e.type(arguments[0])&&(n=arguments[0],r=arguments[1],a=arguments[2],"responsive"===arguments[0]&&"array"===e.type(arguments[1])?o="responsive":void 0!==arguments[1]&&(o="single")),"single"===o)s.options[n]=r;else if("multiple"===o)e.each(n,(function(e,t){s.options[e]=t}));else if("responsive"===o)for(i in r)if("array"!==e.type(s.options.responsive))s.options.responsive=[r[i]];else{for(t=s.options.responsive.length-1;t>=0;)s.options.responsive[t].breakpoint===r[i].breakpoint&&s.options.responsive.splice(t,1),t--;s.options.responsive.push(r[i])}a&&(s.unload(),s.reinit())},t.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])},t.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"),void 0===t.WebkitTransition&&void 0===t.MozTransition&&void 0===t.msTransition||!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),void 0!==t.OTransform&&(e.animType="OTransform",e.transformType="-o-transform",e.transitionType="OTransition",void 0===t.perspectiveProperty&&void 0===t.webkitPerspective&&(e.animType=!1)),void 0!==t.MozTransform&&(e.animType="MozTransform",e.transformType="-moz-transform",e.transitionType="MozTransition",void 0===t.perspectiveProperty&&void 0===t.MozPerspective&&(e.animType=!1)),void 0!==t.webkitTransform&&(e.animType="webkitTransform",e.transformType="-webkit-transform",e.transitionType="webkitTransition",void 0===t.perspectiveProperty&&void 0===t.webkitPerspective&&(e.animType=!1)),void 0!==t.msTransform&&(e.animType="msTransform",e.transformType="-ms-transform",e.transitionType="msTransition",void 0===t.msTransform&&(e.animType=!1)),void 0!==t.transform&&!1!==e.animType&&(e.animType="transform",e.transformType="transform",e.transitionType="transition"),e.transformsEnabled=e.options.useTransform&&null!==e.animType&&!1!==e.animType},t.prototype.setSlideClasses=function(e){var t,i,n,r,o=this;if(i=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&&(e>=t&&e<=o.slideCount-1-t?o.$slides.slice(e-t+s,e+t+1).addClass("slick-active").attr("aria-hidden","false"):(n=o.options.slidesToShow+e,i.slice(n-t+1+s,n+t+2).addClass("slick-active").attr("aria-hidden","false")),0===e?i.eq(i.length-1-o.options.slidesToShow).addClass("slick-center"):e===o.slideCount-1&&i.eq(o.options.slidesToShow).addClass("slick-center")),o.$slides.eq(e).addClass("slick-center")}else e>=0&&e<=o.slideCount-o.options.slidesToShow?o.$slides.slice(e,e+o.options.slidesToShow).addClass("slick-active").attr("aria-hidden","false"):i.length<=o.options.slidesToShow?i.addClass("slick-active").attr("aria-hidden","false"):(r=o.slideCount%o.options.slidesToShow,n=!0===o.options.infinite?o.options.slidesToShow+e:e,o.options.slidesToShow==o.options.slidesToScroll&&o.slideCount-e<o.options.slidesToShow?i.slice(n-(o.options.slidesToShow-r),n+r).addClass("slick-active").attr("aria-hidden","false"):i.slice(n,n+o.options.slidesToShow).addClass("slick-active").attr("aria-hidden","false"));"ondemand"!==o.options.lazyLoad&&"anticipated"!==o.options.lazyLoad||o.lazyLoad()},t.prototype.setupInfinite=function(){var t,i,n,r=this;if(!0===r.options.fade&&(r.options.centerMode=!1),!0===r.options.infinite&&!1===r.options.fade&&(i=null,r.slideCount>r.options.slidesToShow)){for(n=!0===r.options.centerMode?r.options.slidesToShow+1:r.options.slidesToShow,t=r.slideCount;t>r.slideCount-n;t-=1)i=t-1,e(r.$slides[i]).clone(!0).attr("id","").attr("data-slick-index",i-r.slideCount).prependTo(r.$slideTrack).addClass("slick-cloned");for(t=0;t<n+r.slideCount;t+=1)i=t,e(r.$slides[i]).clone(!0).attr("id","").attr("data-slick-index",i+r.slideCount).appendTo(r.$slideTrack).addClass("slick-cloned");r.$slideTrack.find(".slick-cloned").find("[id]").each((function(){e(this).attr("id","")}))}},t.prototype.interrupt=function(e){var t=this;e||t.autoPlay(),t.interrupted=e},t.prototype.selectHandler=function(t){var i=this,n=e(t.target).is(".slick-slide")?e(t.target):e(t.target).parents(".slick-slide"),r=parseInt(n.attr("data-slick-index"));r||(r=0),i.slideCount<=i.options.slidesToShow?i.slideHandler(r,!1,!0):i.slideHandler(r)},t.prototype.slideHandler=function(e,t,i){var n,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),n=e,l=u.getLeft(n),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&&(n=u.currentSlide,!0!==i&&u.slideCount>u.options.slidesToShow?u.animateSlide(s,(function(){u.postSlide(n)})):u.postSlide(n));else if(!1===u.options.infinite&&!0===u.options.centerMode&&(e<0||e>u.slideCount-u.options.slidesToScroll))!1===u.options.fade&&(n=u.currentSlide,!0!==i&&u.slideCount>u.options.slidesToShow?u.animateSlide(s,(function(){u.postSlide(n)})):u.postSlide(n));else{if(u.options.autoplay&&clearInterval(u.autoPlayTimer),r=n<0?u.slideCount%u.options.slidesToScroll!=0?u.slideCount-u.slideCount%u.options.slidesToScroll:u.slideCount+n:n>=u.slideCount?u.slideCount%u.options.slidesToScroll!=0?0:n-u.slideCount:n,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!==i?(u.fadeSlideOut(o),u.fadeSlide(r,(function(){u.postSlide(r)}))):u.postSlide(r),void u.animateHeight();!0!==i&&u.slideCount>u.options.slidesToShow?u.animateSlide(l,(function(){u.postSlide(r)})):u.postSlide(r)}},t.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")},t.prototype.swipeDirection=function(){var e,t,i,n,r=this;return e=r.touchObject.startX-r.touchObject.curX,t=r.touchObject.startY-r.touchObject.curY,i=Math.atan2(t,e),(n=Math.round(180*i/Math.PI))<0&&(n=360-Math.abs(n)),n<=45&&n>=0||n<=360&&n>=315?!1===r.options.rtl?"left":"right":n>=135&&n<=225?!1===r.options.rtl?"right":"left":!0===r.options.verticalSwiping?n>=35&&n<=135?"down":"up":"vertical"},t.prototype.swipeEnd=function(){var e,t,i=this;if(i.dragging=!1,i.swiping=!1,i.scrolling)return i.scrolling=!1,!1;if(i.interrupted=!1,i.shouldClick=!(i.touchObject.swipeLength>10),void 0===i.touchObject.curX)return!1;if(!0===i.touchObject.edgeHit&&i.$slider.trigger("edge",[i,i.swipeDirection()]),i.touchObject.swipeLength>=i.touchObject.minSwipe){switch(t=i.swipeDirection()){case"left":case"down":e=i.options.swipeToSlide?i.checkNavigable(i.currentSlide+i.getSlideCount()):i.currentSlide+i.getSlideCount(),i.currentDirection=0;break;case"right":case"up":e=i.options.swipeToSlide?i.checkNavigable(i.currentSlide-i.getSlideCount()):i.currentSlide-i.getSlideCount(),i.currentDirection=1}"vertical"!=t&&(i.slideHandler(e),i.touchObject={},i.$slider.trigger("swipe",[i,t]))}else i.touchObject.startX!==i.touchObject.curX&&(i.slideHandler(i.currentSlide),i.touchObject={})},t.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("mou
6se")))switch(t.touchObject.fingerCount=e.originalEvent&&void 0!==e.originalEvent.touches?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)}},t.prototype.swipeMove=function(e){var t,i,n,r,o,s,a=this;return o=void 0!==e.originalEvent?e.originalEvent.touches:null,!(!a.dragging||a.scrolling||o&&1!==o.length)&&(t=a.getLeft(a.currentSlide),a.touchObject.curX=void 0!==o?o[0].pageX:e.clientX,a.touchObject.curY=void 0!==o?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&&s>4?(a.scrolling=!0,!1):(!0===a.options.verticalSwiping&&(a.touchObject.swipeLength=s),i=a.swipeDirection(),void 0!==e.originalEvent&&a.touchObject.swipeLength>4&&(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),n=a.touchObject.swipeLength,a.touchObject.edgeHit=!1,!1===a.options.infinite&&(0===a.currentSlide&&"right"===i||a.currentSlide>=a.getDotCount()&&"left"===i)&&(n=a.touchObject.swipeLength*a.options.edgeFriction,a.touchObject.edgeHit=!0),!1===a.options.vertical?a.swipeLeft=t+n*r:a.swipeLeft=t+n*(a.$list.height()/a.listWidth)*r,!0===a.options.verticalSwiping&&(a.swipeLeft=t+n*r),!0!==a.options.fade&&!1!==a.options.touchMove&&(!0===a.animating?(a.swipeLeft=null,!1):void a.setCSS(a.swipeLeft))))},t.prototype.swipeStart=function(e){var t,i=this;if(i.interrupted=!0,1!==i.touchObject.fingerCount||i.slideCount<=i.options.slidesToShow)return i.touchObject={},!1;void 0!==e.originalEvent&&void 0!==e.originalEvent.touches&&(t=e.originalEvent.touches[0]),i.touchObject.startX=i.touchObject.curX=void 0!==t?t.pageX:e.clientX,i.touchObject.startY=i.touchObject.curY=void 0!==t?t.pageY:e.clientY,i.dragging=!0},t.prototype.unfilterSlides=t.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())},t.prototype.unload=function(){var t=this;e(".slick-cloned",t.$slider).remove(),t.$dots&&t.$dots.remove(),t.$prevArrow&&t.htmlExpr.test(t.options.prevArrow)&&t.$prevArrow.remove(),t.$nextArrow&&t.htmlExpr.test(t.options.nextArrow)&&t.$nextArrow.remove(),t.$slides.removeClass("slick-slide slick-active slick-visible slick-current").attr("aria-hidden","true").css("width","")},t.prototype.unslick=function(e){var t=this;t.$slider.trigger("unslick",[t,e]),t.destroy()},t.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.currentSlide>=e.slideCount-1&&!0===e.options.centerMode)&&(e.$nextArrow.addClass("slick-disabled").attr("aria-disabled","true"),
7e.$prevArrow.removeClass("slick-disabled").attr("aria-disabled","false")))},t.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"))},t.prototype.visibility=function(){var e=this;e.options.autoplay&&(document[e.hidden]?e.interrupted=!0:e.interrupted=!1)},e.fn.slick=function(){var e,i,n=this,r=arguments[0],o=Array.prototype.slice.call(arguments,1),s=n.length;for(e=0;e<s;e++)if("object"==typeof r||void 0===r?n[e].slick=new t(n[e],r):i=n[e].slick[r].apply(n[e].slick,o),void 0!==i)return i;return n}})),function(e){var t;"undefined"!=typeof window?t=window:"undefined"!=typeof self&&(t=self),t.ALGOLIA_MIGRATION_LAYER=e()}((function(){return function e(t,i,n){function r(s,a){if(!i[s]){if(!t[s]){var l="function"==typeof require&&require;if(!a&&l)return l(s,!0);if(o)return o(s,!0);var u=new Error("Cannot find module '"+s+"'");throw u.code="MODULE_NOT_FOUND",u}
7var c=i[s]={exports:{}};t[s][0].call(c.exports,(function(e){var i=t[s][1][e];return r(i||e)}),c,c.exports,e,t,i,n)}return i[s].exports}for(var o="function"==typeof require&&require,s=0;s<n.length;s++)r(n[s]);return r}({1:[function(e,t){function i(e,t){for(var i in t)e.setAttribute(i,t[i])}function n(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 r(e,t){e.onreadystatechange=function(){"complete"!=this.readyState&&"loaded"!=this.readyState||(this.onreadystatechange=null,t(null,e))}}t.exports=function(e,t,o){var s=document.head||document.getElementsByTagName("head")[0],a=document.createElement("script");"function"==typeof t&&(o=t,t={}),t=t||{},o=o||function(){},a.type=t.type||"text/javascript",a.charset=t.charset||"utf8",a.async=!("async"in t)||!!t.async,a.src=e,t.attrs&&i(a,t.attrs),t.text&&(a.text=""+t.text),("onload"in a?n:r)(a,o),a.onload||n(a,o),s.appendChild(a)}},{}],2:[function(e,t){"use strict";function i(e){for(var t=new RegExp("cdn\\.jsdelivr\\.net/algoliasearch/latest/"+e.replace(".","\\.")+"(?:\\.min)?\\.js$"),i=document.getElementsByTagName("script"),n=!1,r=0,o=i.length;r<o;r++)if(i[r].src&&t.test(i[r].src)){n=!0;break}return n}t.exports=i},{}],3:[function(e,t){"use strict";function i(t){var i=e(1),r="//cdn.jsdelivr.net/algoliasearch/2/"+t+".min.js",o="-- 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(o):window.console.log&&window.console.log(o));try{document.write("<script>window.ALGOLIA_SUPPORTS_DOCWRITE = true</script>
7"),!0===window.ALGOLIA_SUPPORTS_DOCWRITE?(document.write('<script src="'+r+'"></script>'),n("document.write")()):i(r,n("DOMElement"))}catch(e){i(r,n("DOMElement"))}}function n(e){return function(){var t="AlgoliaSearch: loaded V2 script using "+e;window.console&&window.console.log&&window.console.log(t)}}t.exports=i},{1:1}],4:[function(e,t){"use strict";function i(){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=i},{}],5:[function(e){"use strict";function t(t){var i=e(2),n=e(3),r=e(4);i(t)?n(t):r()}t("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 e;return function e(t,i,n){function r(s,a){if(!i[s]){if(!t[s]){var l="function"==typeof require&&require;if(!a&&l)return l(s,!0);if(o)return o(s,!0);var u=new Error("Cannot find module '"+s+"'");throw u.code="MODULE_NOT_FOUND",u}var c=i[s]={exports:{}};t[s][0].call(c.exports,(function(e){var i=t[s][1][e];return r(i||e)}),c,c.exports,e,t,i,n)}return i[s].exports}for(var o="function"==typeof require&&require,s=0;s<n.length;s++)r(n[s]);return r}({1:[function(e,t,i){(function(n){function r(){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+)/)&&parseInt(RegExp.$1,10)>=31||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/))}function o(e){var t=this.useColors;if(e[0]=(t?"%c":"")+this.namespace+(t?" %c":" ")+e[0]+(t?"%c ":" ")+"+"+i.humanize(this.diff),t){var n="color: "+this.color;e.splice(1,0,n,"color: inherit");var r=0,o=0;e[0].replace(/%[a-zA-Z%]/g,(function(e){"%%"!==e&&(r++,"%c"===e&&(o=r))})),e.splice(o,0,n)}}function s(){return"object"==typeof console&&console.log&&Function.prototype.apply.call(console.log,console,arguments)}function a(e){try{null==e?i.storage.removeItem("debug"):i.storage.debug=e}catch(e){}}function l(){var e;try{e=i.storage.debug}catch(e){}return!e&&void 0!==n&&"env"in n&&(e=n.env.DEBUG),e}function u(){try{return window.localStorage}catch(e){}}(i=t.exports=e(2)).log=s,i.formatArgs=o,i.save=a,i.load=l,i.useColors=r,i.storage="undefined"!=typeof chrome&&void 0!==chrome.storage?chrome.storage.local:u(),i.colors=["lightseagreen","forestgreen","goldenrod","dodgerblue","darkorchid","crimson"],i.formatters.j=function(e){try{return JSON.stringify(e)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}},i.enable(l())}).call(this,e(12))},{12:12,2:2}],2:[function(e,t,i){function n(e){var t,n=0;for(t in e)n=(n<<5)-n+e.charCodeAt(t),n|=0;return i.colors[Math.abs(n)%i.colors.length]}function r(e){function t(){if(t.enabled){var e=t,n=+new Date,r=n-(u||n);e.diff=r,e.prev=u,e.curr=n,u=n;for(var o=new Array(arguments.length),s=0;s<o.length;s++)o[s]=arguments[s];o[0]=i.coerce(o[0]),"string"!=typeof o[0]&&o.unshift("%O");var a=0;o[0]=o[0].replace(/%([a-zA-Z%])/g,(function(t,n){if("%%"===t)return t;a++;var r=i.formatters[n];if("function"==typeof r){var s=o[a];t=r.call(e,s),o.splice(a,1),a--}return t})),i.formatArgs.call(e,o),(t.log||i.log||console.log.bind(console)).apply(e,o)}}return t.namespace=e,t.enabled=i.enabled(e),t.useColors=i.useColors(),t.color=n(e),"function"==typeof i.init&&i.init(t),t}function o(e){i.save(e),i.names=[],i.skips=[];
7for(var t=("string"==typeof e?e:"").split(/[\s,]+/),n=t.length,r=0;r<n;r++)t[r]&&("-"===(e=t[r].replace(/\*/g,".*?"))[0]?i.skips.push(new RegExp("^"+e.substr(1)+"$")):i.names.push(new RegExp("^"+e+"$")))}function s(){i.enable("")}function a(e){var t,n;for(t=0,n=i.skips.length;t<n;t++)if(i.skips[t].test(e))return!1;for(t=0,n=i.names.length;t<n;t++)if(i.names[t].test(e))return!0;return!1}function l(e){return e instanceof Error?e.stack||e.message:e}var u;(i=t.exports=r.debug=r.default=r).coerce=l,i.disable=s,i.enable=o,i.enabled=a,i.humanize=e(9),i.names=[],i.skips=[],i.formatters={}},{9:9}],3:[function(t,i,n){(function(r,o){!function(t,r){"object"==typeof n&&void 0!==i?i.exports=r():"function"==typeof e&&e.amd?e(r):t.ES6Promise=r()}(this,(function(){"use strict";function e(e){var t=typeof e;return null!==e&&("object"===t||"function"===t)}function i(e){return"function"==typeof e}function n(e){G=e}function s(e){K=e}function a(){return function(){return r.nextTick(h)}}function l(){return void 0!==Y?function(){Y(h)}:d()}function u(){var e=0,t=new X(h),i=document.createTextNode("");return t.observe(i,{characterData:!0}),function(){i.data=e=++e%2}}function c(){var e=new MessageChannel;return e.port1.onmessage=h,function(){return e.port2.postMessage(0)}}function d(){var e=setTimeout;return function(){return e(h,1)}}function h(){for(var e=0;e<W;e+=2){(0,te[e])(te[e+1]),te[e]=void 0,te[e+1]=void 0}W=0}function f(){try{var e=t("vertx");return Y=e.runOnLoop||e.runOnContext,l()}catch(e){return d()}}function p(e,t){var i=arguments,n=this,r=new this.constructor(g);void 0===r[ne]&&L(r);var o=n._state;return o?function(){var e=i[o-1];K((function(){return D(o,r,e,n._result)}))}():P(n,r,e,t),r}function m(e){var t=this;if(e&&"object"==typeof e&&e.constructor===t)return e;var i=new t(g);return _(i,e),i}function g(){}function v(){return new TypeError("You cannot resolve a promise with itself")}function y(){return new TypeError("A promises callback cannot return that same promise.")}function b(e){try{return e.then}catch(e){return ae.error=e,ae}}function w(e,t,i,n){try{e.call(t,i,n)}catch(e){return e}}function S(e,t,i){K((function(e){var n=!1,r=w(i,t,(function(i){n||(n=!0,t!==i?_(e,i):T(e,i))}),(function(t){n||(n=!0,E(e,t))}),"Settle: "+(e._label||" unknown promise"));!n&&r&&(n=!0,E(e,r))}),e)}function k(e,t){t._state===oe?T(e,t._result):t._state===se?E(e,t._result):P(t,void 0,(function(t){return _(e,t)}),(function(t){return E(e,t)}))}function x(e,t,n){t.constructor===e.constructor&&n===p&&t.constructor.resolve===m?k(e,t):n===ae?(E(e,ae.error),ae.error=null):void 0===n?T(e,t):i(n)?S(e,t,n):T(e,t)}function _(t,i){t===i?E(t,v()):e(i)?x(t,i,b(i)):T(t,i)}function C(e){e._onerror&&e._onerror(e._result),O(e)}function T(e,t){e._state===re&&(e._result=t,e._state=oe,0!==e._subscribers.length&&K(O,e))}function E(e,t){e._state===re&&(e._state=se,e._result=t,K(C,e))}function P(e,t,i,n){var r=e._subscribers,o=r.length;e._onerror=null,r[o]=t,r[o+oe]=i,r[o+se]=n,0===o&&e._state&&K(O,e)}function O(e){var t=e._subscribers,i=e._state;if(0!==t.length){for(var n=void 0,r=void 0,o=e._result,s=0;s<t.length;s+=3)n=t[s],r=t[s+i],n?D(i,n,r,o):r(o);e._subscribers.length=0}}function N(){this.error=null}function A(e,t){try{return e(t)}catch(e){return le.error=e,le}}function D(e,t,n,r){var o=i(n),s=void 0,a=void 0,l=void 0,u=void 0;if(o){if((s=A(n,r))===le?(u=!0,a=s.error,s.error=null):l=!0,t===s)return void E(t,y())}else s=r,l=!0;t._state!==re||(o&&l?_(t,s):u?E(t,a):e===oe?T(t,s):e===se&&E(t,s))}function F(e,t){try{t((function(t){_(e,t)}),(function(t){E(e,t)}))}catch(t){E(e,t)}}function I(){return ue++}function L(e){e[ne]=ue++,e._state=void 0,e._result=void 0,e._subscribers=[]}function M(e,t){this._instanceConstructor=e,this.promise=new e(g),this.promise[ne]||L(this.promise),q(t)?(this.length=t.length,this._remaining=t.length,this._result=new Array(this.length),0===this.length?T(this.promise,this._result):(this.length=this.length||0,this._enumerate(t),0===this._remaining&&T(this.promise,this._result))):E(this.promise,j())}function j(){return new Error("Array Methods must be provided an Array")}function R(e){return new M(this,e).promise}function V(e){var t=this;return q(e)?new t((function(i,n){for(var r=e.length,o=0;o<r;o++)t.resolve(e[o]).then(i,n)})):new t((function(e,t){return t(new TypeError("You must pass an array to race."))}))}function $(e){var t=new this(g);return E(t,e),t}function U(){throw new TypeError("You must pass a resolver function as the first argument to the promise constructor")}function B(){throw new TypeError("Failed to construct 'Promise': Please use the 'new' operator, this object c
7onstructor cannot be called as a function.")}function z(e){this[ne]=I(),this._result=this._state=void 0,this._subscribers=[],g!==e&&("function"!=typeof e&&U(),this instanceof z?F(this,e):B())}function H(){var e=void 0;if(void 0!==o)e=o;else if("undefined"!=typeof self)e=self;else try{e=Function("return this")()}catch(e){throw new Error("polyfill failed because global object is unavailable in this environment")}var t=e.Promise;if(t){var i=null;try{i=Object.prototype.toString.call(t.resolve())}catch(e){}if("[object Promise]"===i&&!t.cast)return}e.Promise=z}var q=Array.isArray?Array.isArray:function(e){return"[object Array]"===Object.prototype.toString.call(e)},W=0,Y=void 0,G=void 0,K=function(e,t){te[W]=e,te[W+1]=t,2===(W+=2)&&(G?G(h):ie())},Z="undefined"!=typeof window?window:void 0,Q=Z||{},X=Q.MutationObserver||Q.WebKitMutationObserver,J="undefined"==typeof self&&void 0!==r&&"[object process]"==={}.toString.call(r),ee="undefined"!=typeof Uint8ClampedArray&&"undefined"!=typeof importScripts&&"undefined"!=typeof MessageChannel,te=new Array(1e3),ie=void 0;ie=J?a():X?u():ee?c():void 0===Z&&"function"==typeof t?f():d();var ne=Math.random().toString(36).substring(16),re=void 0,oe=1,se=2,ae=new N,le=new N,ue=0;return M.prototype._enumerate=function(e){for(var t=0;this._state===re&&t<e.length;t++)this._eachEntry(e[t],t)},M.prototype._eachEntry=function(e,t){var i=this._instanceConstructor,n=i.resolve;if(n===m){var r=b(e);if(r===p&&e._state!==re)this._settledAt(e._state,t,e._result);else if("function"!=typeof r)this._remaining--,this._result[t]=e;else if(i===z){var o=new i(g);x(o,e,r),this._willSettleAt(o,t)}else this._willSettleAt(new i((function(t){return t(e)})),t)}else this._willSettleAt(n(e),t)},M.prototype._settledAt=function(e,t,i){var n=this.promise;n._state===re&&(this._remaining--,e===se?E(n,i):this._result[t]=i),0===this._remaining&&T(n,this._result)},M.prototype._willSettleAt=function(e,t){var i=this;P(e,void 0,(function(e){return i._settledAt(oe,t,e)}),(function(e){return i._settledAt(se,t,e)}))},z.all=R,z.race=V,z.resolve=m,z.reject=$,z._setScheduler=n,z._setAsap=s,z._asap=K,z.prototype={constructor:z,then:p,catch:function(e){return this.then(null,e)}},z.polyfill=H,z.Promise=z,z}))}).call(this,t(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||void 0}function n(e){return"function"==typeof e}function r(e){return"number"==typeof e}function o(e){return"object"==typeof e&&null!==e}function s(e){return void 0===e}t.exports=i,i.EventEmitter=i,i.prototype._events=void 0,i.prototype._maxListeners=void 0,i.defaultMaxListeners=10,i.prototype.setMaxListeners=function(e){if(!r(e)||e<0||isNaN(e))throw TypeError("n must be a positive number");return this._maxListeners=e,this},i.prototype.emit=function(e){var t,i,r,a,l,u;if(this._events||(this._events={}),"error"===e&&(!this._events.error||o(this._events.error)&&!this._events.error.length)){if((t=arguments[1])instanceof Error)throw t;var c=new Error('Uncaught, unspecified "error" event. ('+t+")");throw c.context=t,c}if(s(i=this._events[e]))return!1;if(n(i))switch(arguments.length){case 1:i.call(this);break;case 2:i.call(this,arguments[1]);break;case 3:i.call(this,arguments[1],arguments[2]);break;default:a=Array.prototype.slice.call(arguments,1),i.apply(this,a)}else if(o(i))for(a=Array.prototype.slice.call(arguments,1),r=(u=i.slice()).length,l=0;l<r;l++)u[l].apply(this,a);return!0},i.prototype.addListener=function(e,t){var r;if(!n(t))throw TypeError("listener must be a function");return this._events||(this._events={}),this._events.newListener&&this.emit("newListener",e,n(t.listener)?t.listener:t),this._events[e]?o(this._events[e])?this._events[e].push(t):this._events[e]=[this._events[e],t]:this._events[e]=t,o(this._events[e])&&!this._events[e].warned&&(r=s(this._maxListeners)?i.defaultMaxListeners:this._maxListeners)&&r>0&&this._events[e].length>r&&(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 i(){this.removeListener(e,i),r||(r=!0,t.apply(this,arguments))}if(!n(t))throw TypeError("listener must be a function");var r=!1;return i.listener=t,this.on(e,i),this},i.prototype.removeListener=function(e,t){var i,r,s,a;if(!n(t))throw TypeError("listener must be a function");if(!this._events||!this._events[e])return this;if(s=(i=this._events[e]).length,r=-1,i===t||n(i.listener)&&i.listener===t)delete this._events[e],this._events.removeListener&&this.emit
7("removeListener",e,t);else if(o(i)){for(a=s;a-- >0;)if(i[a]===t||i[a].listener&&i[a].listener===t){r=a;break}if(r<0)return this;1===i.length?(i.length=0,delete this._events[e]):i.splice(r,1),this._events.removeListener&&this.emit("removeListener",e,t)}return this},i.prototype.removeAllListeners=function(e){var t,i;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(n(i=this._events[e]))this.removeListener(e,i);else if(i)for(;i.length;)this.removeListener(e,i[i.length-1]);return delete this._events[e],this},i.prototype.listeners=function(e){return this._events&&this._events[e]?n(this._events[e])?[this._events[e]]:this._events[e].slice():[]},i.prototype.listenerCount=function(e){if(this._events){var t=this._events[e];if(n(t))return 1;if(t)return t.length}return 0},i.listenerCount=function(e,t){return e.listenerCount(t)}},{}],5:[function(e,t){var i=Object.prototype.hasOwnProperty,n=Object.prototype.toString;t.exports=function(e,t,r){if("[object Function]"!==n.call(t))throw new TypeError("iterator must be a function");var o=e.length;if(o===+o)for(var s=0;s<o;s++)t.call(r,e[s],s,e);else for(var a in e)i.call(e,a)&&t.call(r,e[a],a,e)}},{}],6:[function(e,t){(function(e){var i;i="undefined"!=typeof window?window:void 0!==e?e:"undefined"!=typeof self?self:{},t.exports=i}).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 i=function(){};i.prototype=t.prototype,e.prototype=new i,e.prototype.constructor=e}},{}],8:[function(e,t){var i={}.toString;t.exports=Array.isArray||function(e){return"[object Array]"==i.call(e)}},{}],9:[function(e,t){function i(e){if(!((e=String(e)).length>100)){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 i=parseFloat(t[1]);switch((t[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return i*c;case"days":case"day":case"d":return i*u;case"hours":case"hour":case"hrs":case"hr":case"h":return i*l;case"minutes":case"minute":case"mins":case"min":case"m":return i*a;case"seconds":case"second":case"secs":case"sec":case"s":return i*s;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return i;default:return}}}}function n(e){return e>=u?Math.round(e/u)+"d":e>=l?Math.round(e/l)+"h":e>=a?Math.round(e/a)+"m":e>=s?Math.round(e/s)+"s":e+"ms"}function r(e){return o(e,u,"day")||o(e,l,"hour")||o(e,a,"minute")||o(e,s,"second")||e+" ms"}function o(e,t,i){if(!(e<t))return e<1.5*t?Math.floor(e/t)+" "+i:Math.ceil(e/t)+" "+i+"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 o=typeof e;if("string"===o&&e.length>0)return i(e);if("number"===o&&!1===isNaN(e))return t.long?r(e):n(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 i=Object.prototype.hasOwnProperty,n=Object.prototype.toString,r=Array.prototype.slice,o=e(11),s=Object.prototype.propertyIsEnumerable,a=!s.call({toString:null},"toString"),l=s.call((function(){}),"prototype"),u=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],c=function(e){var t=e.constructor;return t&&t.prototype===e},d={$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},h=function(){if("undefined"==typeof window)return!1;for(var e in window)try{if(!d["$"+e]&&i.call(window,e)&&null!==window[e]&&"object"==typeof window[e])try{c(window[e])}catch(e){return!0}}catch(e){return!0}return!1}(),f=function(e){if("undefined"==typeof window||!h)return c(e);try{return c(e)}catch(e){return!1}},p=function(e){var t=null!==e&&"object"==typeof e,r="[object Function]"===n.call(e),s=o(e),c=t&&"[object String]"===n.call(e),d=[];if(!t&&!r&&!s)throw new TypeError("Object.keys called on a non-object");var h=l&&r;if(c&&e.length>0&&!i.call(e,0))for(var p=0;p<e.length;++p)d.push(String(p));if(s&&e.length>0)for(var m=0;m<e.length;++m)d.push(String(m));else for(var g in e)h&&"prototype"===g||!i.call(e,g)||d.push(String(g));if(a)for(var v=f(e),y=0;y<u.length;++y)v&&"constructor"===u[y]||!i.call(e,u[y])||d.push(u[y]);return d};p.shim=function(){if(Object.keys){var e=function(){return 2===(Object.keys(arguments)||"").length}(1,2);if(!e){var t=Object.keys;Object.keys=function(e){return o(e)?t(r.call(e)):t(e)}}}else Object.keys=p;return Object.keys||p},t.exports=p},{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&&e.length>=0&&"[object Function]"===i.call(e.callee)),n}},{}],12:[function(e,t){function i(){throw new Error("setTimeout has not been defined")}function n(){throw new Error("clearTimeout has not been defined")}function r(e){if(c===setTimeout)return setTimeout(e,0);if((c===i||!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===n||!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:i}catch(e){c=i}try{d="function"==typeof clearTimeout?clearTimeout:n}catch(e){d=n}}();var f,p=[],m=!1,g=-1;h.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var i=1;i<arguments.length;i++)t[i-1]=arguments[i];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 i(e,t){if(e.map)return e.map(t);for(var i=[],n=0;n<e.length;n++)i.push(t(e[n],n));return i}var n=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(e,t,s,a){return t=t||"&",s=s||"=",null===e&&(e=void 0),"object"==typeof e?i(o(e),(function(o){var a=encodeURIComponent(n(o))+s;return r(e[o])?i(e[o],(function(e){return a+encodeURIComponent(n(e))})).join(t):a+encodeURIComponent(n(e[o]))})).join(t):a?encodeURIComponent(n(a))+s+encodeURIComponent(n(e)):""};var r=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)},o=Object.keys||function(e){var t=[];
7for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.push(i);return t}},{}],14:[function(e,t){function i(){a.apply(this,arguments)}function n(){var e="Not implemented in this environment.\nIf you feel this is a mistake, write to [email protected]";throw new u.AlgoliaSearchError(e)}t.exports=i;var r=e(16),o=e(25),s=e(26),a=e(15),l=e(7),u=e(27);l(i,a),i.prototype.deleteIndex=function(e,t){return this._jsonRequest({method:"DELETE",url:"/1/indexes/"+encodeURIComponent(e),hostType:"write",callback:t})},i.prototype.moveIndex=function(e,t,i){var n={operation:"move",destination:t};return this._jsonRequest({method:"POST",url:"/1/indexes/"+encodeURIComponent(e)+"/operation",body:n,hostType:"write",callback:i})},i.prototype.copyIndex=function(e,t,i,n){var r={operation:"copy",destination:t},o=n;if("function"==typeof i)o=i;else if(Array.isArray(i)&&i.length>0)r.scope=i;else if(void 0!==i)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})},i.prototype.getLogs=function(t,i,n){var r=e(24),o={};return"object"==typeof t?(o=r(t),n=i):0===arguments.length||"function"==typeof t?n=t:1===arguments.length||"function"==typeof i?(n=i,o.offset=t):(o.offset=t,o.length=i),void 0===o.offset&&(o.offset=0),void 0===o.length&&(o.length=10),this._jsonRequest({method:"GET",url:"/1/logs?"+this._getSearchParams(o,""),hostType:"read",callback:n})},i.prototype.listIndexes=function(e,t){var i="";return void 0===e||"function"==typeof e?t=e:i="?page="+e,this._jsonRequest({method:"GET",url:"/1/indexes"+i,hostType:"read",callback:t})},i.prototype.initIndex=function(e){return new r(this,e)},i.prototype.listUserKeys=o((function(e){return this.listApiKeys(e)}),s("client.listUserKeys()","client.listApiKeys()")),i.prototype.listApiKeys=function(e){return this._jsonRequest({method:"GET",url:"/1/keys",hostType:"read",callback:e})},i.prototype.getUserKeyACL=o((function(e,t){return this.getApiKey(e,t)}),s("client.getUserKeyACL()","client.getApiKey()")),i.prototype.getApiKey=function(e,t){return this._jsonRequest({method:"GET",url:"/1/keys/"+e,hostType:"read",callback:t})},i.prototype.deleteUserKey=o((function(e,t){return this.deleteApiKey(e,t)}),s("client.deleteUserKey()","client.deleteApiKey()")),i.prototype.deleteApiKey=function(e,t){return this._jsonRequest({method:"DELETE",url:"/1/keys/"+e,hostType:"write",callback:t})},i.prototype.addUserKey=o((function(e,t,i){return this.addApiKey(e,t,i)}),s("client.addUserKey()","client.addApiKey()")),i.prototype.addApiKey=function(t,i,n){var r="Usage: client.addApiKey(arrayOfAcls[, params, callback])";if(!e(8)(t))throw new Error(r);1!==arguments.length&&"function"!=typeof i||(n=i,i=null);var o={acl:t};return i&&(o.validity=i.validity,o.maxQueriesPerIPPerHour=i.maxQueriesPerIPPerHour,o.maxHitsPerQuery=i.maxHitsPerQuery,o.indexes=i.indexes,o.description=i.description,i.queryParameters&&(o.queryParameters=this._getSearchParams(i.queryParameters,"")),o.referers=i.referers),this._jsonRequest({method:"POST",url:"/1/keys",body:o,hostType:"write",callback:n})},i.prototype.addUserKeyWithValidity=o((function(e,t,i){return this.addApiKey(e,t,i)}),s("client.addUserKeyWithValidity()","client.addApiKey()")),i.prototype.updateUserKey=o((function(e,t,i,n){return this.updateApiKey(e,t,i,n)}),s("client.updateUserKey()","client.updateApiKey()")),i.prototype.updateApiKey=function(t,i,n,r){var o="Usage: client.updateApiKey(key, arrayOfAcls[, params, callback])";if(!e(8)(i))throw new Error(o);2!==arguments.length&&"function"!=typeof n||(r=n,n=null);var s={acl:i};return n&&(s.validity=n.validity,s.maxQueriesPerIPPerHour=n.maxQueriesPerIPPerHour,s.maxHitsPerQuery=n.maxHitsPerQuery,s.indexes=n.indexes,s.description=n.description,n.queryParameters&&(s.queryParameters=this._getSearchParams(n.queryParameters,"")),s.referers=n.referers),this._jsonRequest({method:"PUT",url:"/1/keys/"+t,body:s,hostType:"write",callback:r})},i.prototype.startQueriesBatch=o((function(){this._batch=[]}),s("client.startQueriesBatch()","client.search()")),i.prototype.addQueryInBatch=o((function(e,t,i){this._batch.push({indexName:e,query:t,params:i})}),s("client.addQueryInBatch()","client.search()")),i.prototype.sendQueriesBatch=o((function(e){return this.search(this._batch,e)}),s("client.sendQueriesBatch()","client.search()")),i.prototype.batch=function(t,i){var n="Usage: client.batch(operations[, callback])";if(!e(8)(t))throw new Error(n);return this._jsonRequest({method:"POST",url:"/1/indexes/*/batch",body:{requests:t},hostType:"write",callback:i})},i.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}})},i.prototype.getTopUserID=function(e){return this._jsonRequest({method:"GET",url:"/1/clusters/mapping/top",hostType:"read",callback:e})},i.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})}
vendor: 5,351 bytes, lines 7-8
7,i.prototype.listClusters=function(e){return this._jsonRequest({method:"GET",url:"/1/clusters",hostType:"read",callback:e})},i.prototype.listUserIDs=function(e,t){return this._jsonRequest({method:"GET",url:"/1/clusters/mapping",body:e,hostType:"read",callback:t})},i.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}})},i.prototype.searchUserIDs=function(e,t){return this._jsonRequest({method:"POST",url:"/1/clusters/mapping/search",body:e,hostType:"read",callback:t})},i.prototype.destroy=n,i.prototype.enableRateLimitForward=n,i.prototype.disableRateLimitForward=n,i.prototype.useSecuredAPIKey=n,i.prototype.disableSecuredAPIKey=n,i.prototype.generateSecuredApiKey=n},{15:15,16:16,24:24,25:25,26:26,27:27,7:7,8:8}],15:[function(e,t){(function(i){function n(t,i,n){var o=e(1)("algoliasearch"),s=e(24),a=e(8),u=e(29),c="Usage: algoliasearch(applicationID, apiKey, opts)";if(!0!==n._allowEmptyCredentials&&!t)throw new l.AlgoliaSearchError("Please provide an application ID. "+c);if(!0!==n._allowEmptyCredentials&&!i)throw new l.AlgoliaSearchError("Please provide an API key. "+c);this.applicationID=t,this.apiKey=i,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 d=n.protocol||"https:";if(/:$/.test(d)||(d+=":"),"http:"!==d&&"https:"!==d)throw new l.AlgoliaSearchError("protocol must be `http:` or `https:` (was `"+n.protocol+"`)");if(this._checkAppIdData(),n.hosts)a(n.hosts)?(this.hosts.read=s(n.hosts),this.hosts.write=s(n.hosts)):(this.hosts.read=s(n.hosts.read),this.hosts.write=s(n.hosts.write));else{var h=u(this._shuffleResult,(function(e){return t+"-"+e+".algolianet.com"})),f=(!1===n.dsn?"":"-dsn")+".algolia.net";this.hosts.read=[this.applicationID+f].concat(h),this.hosts.write=[this.applicationID+".algolia.net"].concat(h)}this.hosts.read=u(this.hosts.read,r(d)),this.hosts.write=u(this.hosts.write,r(d)),this.extraHeaders={},this.cache=n._cache||{},this._ua=n._ua,this._useCache=!(void 0!==n._useCache&&!n._cache)||n._useCache,this._useFallback=void 0===n.useFallback||n.useFallback,this._setTimeout=n._setTimeout,o("init done, %j",this)}function r(e){return function(t){return e+"//"+t.toLowerCase()}}function o(e){if(void 0===Array.prototype.toJSON)return JSON.stringify(e);var t=Array.prototype.toJSON;delete Array.prototype.toJSON;var i=JSON.stringify(e);return Array.prototype.toJSON=t,i}function s(e){for(var t,i,n=e.length;0!==n;)i=Math.floor(Math.random()*n),t=e[n-=1],e[n]=e[i],e[i]=t;return e}function a(e){var t={};for(var i in e){var n
8;if(Object.prototype.hasOwnProperty.call(e,i))n="x-algolia-api-key"===i||"x-algolia-application-id"===i?"**hidden for security purposes**":e[i],t[i]=n}return t}t.exports=n;var l=e(27),u=e(28),c=e(18),d=e(33),h=500,f=i.env.RESET_APP_DATA_TIMER&&parseInt(i.env.RESET_APP_DATA_TIMER,10)||12e4;n.prototype.initIndex=function(e){return new c(this,e)},n.prototype.setExtraHeader=function(e,t){this.extraHeaders[e.toLowerCase()]=t},n.prototype.getExtraHeader=function(e){return this.extraHeaders[e.toLowerCase()]},n.prototype.unsetExtraHeader=function(e){delete this.extraHeaders[e.toLowerCase()]},n.prototype.addAlgoliaAgent=function(e){-1===this._ua.indexOf(";"+e)&&(this._ua+=";"+e)},n.prototype._jsonRequest=function(t){function i(e,u){function h(e){var t=e&&e.body&&e.body.message&&e.body.status||e.statusCode||e&&e.body&&200;s("received response: statusCode: %s, computed statusCode: %d, headers: %j",e.statusCode,t,e.headers);var i=2===Math.floor(t/100),o=new Date;if(v.push({currentHost:x,headers:a(r),content:n||null,contentLength:void 0!==n?n.length:null,method:u.method,timeouts:u.timeouts,url:u.url,startTime:k,endTime:o,duration:o-k,statusCode:t}),i)return f._useCache&&d&&(d[S]=e.responseText),e.body;if(4!==Math.floor(t/100))return p+=1,b();s("unrecoverable error");var c=new l.AlgoliaSearchError(e.body&&e.body.message,{debugData:v,statusCode:t});return f._promise.reject(c)}function y(e){s("error: %s, stack: %s",e.message,e.stack);var i=new Date;return v.push({currentHost:x,headers:a(r),content:n||null,contentLength:void 0!==n?n.length:null,method:u.method,timeouts:u.timeouts,url:u.url,startTime:k,endTime:i,duration:i-k}),e instanceof l.AlgoliaSearchError||(e=new l.Unknown(e&&e.message,e)),p+=1,e instanceof l.Unknown||e instanceof l.UnparsableJSON||p>=f.hosts[t.hostType].length&&(m||!g)?(e.debugData=v,f._promise.reject(e)):e instanceof l.RequestTimeout?w():b()}function b(){return s("retrying request"),f._incrementHostIndex(t.hostType),i(e,u)}function w(){return s("retrying request with higher timeout"),f._incrementHostIndex(t.hostType),f._incrementTimeoutMultipler(),u.timeouts=f._getTimeoutsForRequest(t.hostType),i(e,u)}f._checkAppIdData();var S,k=new Date;if(f._useCache&&(S=t.url),f._useCache&&n&&(S+="_body_"+u.body),f._useCache&&d&&void 0!==d[S])return s("serving response from cache"),f._promise.resolve(JSON.parse(d[S]));if(p>=f.hosts[t.hostType].length)return!g||m?(s("could not get any response"),f._promise.reject(new l.AlgoliaSearchError("Cannot connect to the AlgoliaSearch API. Send an email to supp
8[email protected] to report and resolve the issue. Application id was: "+f.applicationID,{debugData:v}))):(s("switching to fallback"),p=0,u.method=t.fallback.method,u.url=t.fallback.url,u.jsonBody=t.fallback.body,u.jsonBody&&(u.body=o(u.jsonBody)),r=f._computeRequestHeaders({additionalUA:c,headers:t.headers}),u.timeouts=f._getTimeoutsForRequest(t.hostType),f._setHostIndexByType(0,t.hostType),m=!0,i(f._request.fallback,u));var x=f._getHostByType(t.hostType),_=x+u.url,C={body:u.body,jsonBody:u.jsonBody,method:u.method,headers:r,timeouts:u.timeouts,debug:s};return s("method: %s, url: %s, headers: %j, timeouts: %d",C.method,_,C.headers,C.timeouts),e===f._request.fallback&&s("using fallback"),e.call(f,_,C).then(h,y)}this._checkAppIdData();var n,r,s=e(1)("algoliasearch:"+t.url),c=t.additionalUA||"",d=t.cache,f=this,p=0,m=!1,g=f._useFallback&&f._request.fallback&&t.fallback;this.apiKey.length>h&&void 0!==t.body&&(void 0!==t.body.params||void 0!==t.body.requests)?(t.body.apiKey=this.apiKey,r=this._computeRequestHeaders({additionalUA:c,withApiKey:!1,headers:t.headers})):r=this._computeRequestHeaders({additionalUA:c,headers:t.headers}),void 0!==t.body&&(n=o(t.body)),s("request start");var v=[],y=i(f._request,{url:t.url,method:t.method,body:n,jsonBody:t.body,timeouts:f._getTimeoutsForRequest(t.hostType)});if("function"!=typeof t.callback)return y;y.then((function(e){u((function(){t.callback(null,e)}),f._setTimeout||setTimeout)}),(function(e){u((function(){t.callback(e)}),f._setTimeout||setTimeout)}))},n.prototype._getSearchParams=function(e,t){if(null==e)return t;for(var i in e)null!==i&&void 0!==e[i]&&e.hasOwnProperty(i)&&(t+=""===t?"":"&",t+=i+"="+encodeURIComponent("[object Array]"===Object.prototype.toString.call(e[i])?o(e[i]):e[i]));return t},n.prototype._computeRequestHeaders=function(t){var i=e(5),n={"x-algolia-agent":t.additionalUA?this._ua+";"+t.additionalUA:this._ua,"x-algolia-application-id":this.applicationID};return!1!==t.withApiKey&&(n["x-algolia-api-key"]=this.apiKey),this.userToken&&(n["x-algolia-usertoken"]=this.userToken),this.securityTags&&(n["x-algolia-tagfilters"]=this.securityTags),i(this.extraHeaders,(function(e,t){n[t]=e})),t.headers&&i(t.headers,(function(e,t){n[t]=e})),n},n.prototype.search=function(t,i,n){var r=e(8),o=e(29),s="Usage: client.search(arrayOfQueries[, callback])";if(!r(t))throw new Error(s);"function"==typeof i?(n=i,i={}):void 0===i&&(i={});var a=this,l={requests:o(t,(function(e){var t="";return void 0!==e.query&&(t+="query="+encodeURIComponent(e.query)),{indexName:e.indexName,params:a._getSearchParams(e.params,t)}}))},u=o(l.requests,(function(e,t){return t+"="+encodeURIComponent("/1/indexes/"+encodeURIComponent(e.indexName)+"?"+e.params)})).join("&"),c="/1/indexes/*/queries";return void 0!==i.strategy&&(c+="?strategy="+i.strategy),this._jsonRequest({cache:this.cache,method:"POST",url:c,body:l,hostType:"read",fallback:{method:"GET",url:"/1/indexes/*",body:{params:u}},callback:n})},n.prototype.searchForFacetValues=function(t){var i=e(8),n=e(29),r="Usage: client.searchForFacetValues([{indexName, params: {facetName, facetQuery, ...params}}, ...queries])";if(!i(t))throw new Error(r);var o=this;return o._promise.all(n(t,(function(t){if(!t||void 0===t.indexName||void 0===t.params.facetName||void 0===t.params.facetQuery)throw new Error(r);var i=e(24),n=e(31),s=t.indexName,a=t.params,l=a.facetName,u=n(i(a),(function(e){return"facetName"===e})),c=o._getSearchParams(u,"");return o._jsonRequest({cache:o.cache,method:"POST",url:"/1/indexes/"+encodeURIComponent(s)+"/facets/"+encodeURIComponent(l)+"/query",hostType:"read",body:{params:c}})})))},n.prototype.setSecurityTags=function(e){if("[object Array]"===Object.prototype.toString.call(e)){for(var t=[],i=0;i<e.length;++i)if("[object Array]"===Object.prototype.toString.call(e[i])){for(var n=[],r=0;r<e[i].length;++r)n.push(e[i][r]);t.push("("+n.join(",")+")")}else t.push(e[i]);e=t.join(",")}this.securityTags=e},n.prototype.setUserToken=function(e){this.userToken=e},n.prototype.clearCache=function(){this.cache={}},n.prototype.setRequestTimeout=function(e){e&&(this._timeouts.connect=this._timeouts.read=this._timeouts.write=e)},n.prototype.setTimeouts=function(e){this._timeouts=e},n.prototype.getTimeouts=function(){return this._timeouts},n.prototype._getAppIdData=function(){var e=d.get(this.applicationID);return null!==e&&this._cacheAppIdData(e),e},n.prototype._setAppIdData=function(e){return e.lastChange=(new Date).getTime(),this._cacheAppIdData(e),d.set(this.applicationID,e)},n.prototype._checkAppIdData=function(){var e=this._getAppIdData(),t=(new Date).getTime();return null===e||t-e.lastChange>f?this._resetInitialAppIdData(e):e},n.prototype._resetInitialAppIdData=function(e){var t=e||{};return t.hostIndexes={read:0,write:0},t.timeoutMultiplier=1,t.shuffleResult=t.shuffleResult||s([1,2,3]),this._setAppIdData(t)},n.prototype._cacheAppIdData=function(e){this._hostIndexes=e.hostIndexes,this._timeoutMultiplier=e.timeoutMultiplier,this._shuffleResult=e.shuffleResult},n.prototype._partialAppIdDataUpdate=function(t){var i=e(5),n=this._getAppIdData();return i(t,(function(e,t){n[t]=e})),this._setAppIdData(n)},n.prototype._getHostByType=function(e){return this.hosts[e][this._getHostIndexByType(e)]},n.prototype._getTimeoutMultiplier=function(){return this._timeoutMultiplier},n.prototype._getHostIndexByType=function(e){return this._hostIndexes[e]},n.prototype._setHostIndexByType=function(t,i){var n=e(24)(this._hostIndexes);return n[i]=t,this._partialAppIdDataUpdate({hostIndexes:n}),t},n.prototype._incrementHostIndex=function(e){return this._setHostIndexByType((this._getHostIndexByType(e)+1)%this.hosts[e].length,e)},n.prototype._incrementTimeoutMultipler=function(){var e=Math.max(this._timeoutMultiplier+1,4);return this._partialAppIdDataUpdate({timeoutMultiplier:e})},n.prototype._getTimeoutsForRequest=function(e){return{connect:this._timeouts.connect*this._timeoutMultiplier,complete:this._timeouts[e]*this._timeoutMultiplier}}}).call(this,e(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(e,t){function i(){o.apply(this,arguments)}function n(e,t,i){function n(i,r){var o={page:i||0,hitsPerPage:t||100},s=r||[];return e(o).then((function(e){var t=e.hits,i=e.nbHits,r=t.map((function(e){return delete e._highlightResult,e})),a=s.concat(r);return a.length<i?n(o.page+1,a):a}))}return n().then((function(e){if("function"!=typeof i)return e;i(e)}))}var r=e(7),o=e(18),s=e(25),a=e(26),l=e(28),u=e(27),c=s((function(){}),a("forwardToSlaves","forwardToReplicas"));t.exports=i,r(i,o),i.prototype.addObject=function(e,t,i){var n=this;return 1!==arguments.length&&"function"!=typeof t||(i=t,t=void 0),this.as._jsonRequest({method:void 0!==t?"PUT":"POST",url:"/1/indexes/"+encodeURIComponent(n.indexName)+(void 0!==t?"/"+encodeURIComponent(t):""),body:e,hostType:"write",callback:i})},i.prototype.addObjects=function(t,i){var n="Usage: index.addObjects(arrayOfObjects[, callback])";if(!e(8)(t))throw new Error(n);for(var r=this,o={requests:[]},s=0;s<t.length;++s){var a={action:"addObject",body:t[s]};o.requests.push(a)}return this.as._jsonRequest({method:"POST",url:"/1/indexes/"+encodeURIComponent(r.indexName)+"/batch",body:o,hostType:"write",callback:i})},i.prototype.partialUpdateObject=function(e,t,i){1!==arguments.length&&"function"!=typeof t||(i=t,t=void 0);var n="/1/indexes/"+encodeURIComponent(this.indexName)+"/"+encodeURIComponent(e.objectID)+"/partial";return!1===t&&(n+="?createIfNotExists=false"),this.as._jsonRequest({method:"POST",url:n,body:e,hostType:"write",callback:i})},i.prototype.partialUpdateObjects=function(t,i,n){1!==arguments.length&&"function"!=typeof i||(n=i,i=!0);var r="Usage: index.partialUpdateObjects(arrayOfObjects[, callback])";if(!e(8)(t))throw new Error(r);for(var o=this,s={requests:[]},a=0;a<t.length;++a){var l={action:!0===i?"partialUpdateObject":"partialUpdateObjectNoCreate",objectID:t[a].objectID,body:t[a]};s.requests.push(l)}return this.as._jsonRequest({method:"POST",url:"/1/indexes/"+encodeURIComponent(o.indexName)+"/batch",body:s,hostType:"write",callback:n})},i.prototype.saveObject=function(e,t){var i=this;return this.as._jsonRequest({method:"PUT",url:"/1/indexes/"+encodeURIComponent(i.indexName)+"/"+encodeURIComponent(e.objectID),body:e,hostType:"write",callback:t})},i.prototype.saveObjects=function(t,i){var n="Usage: index.saveObjects(arrayOfObjects[, callback])";if(!e(8)(t))throw new Error(n);for(var r=this,o={requests:[]},s=0;s<t.length;++s){var a={action:"updateObject",objectID:t[s].objectID,body:t[s]};o.requests.push(a)}return this.as._jsonRequest({method:"POST",url:"/1/indexes/"+encodeURIComponent(r.indexName)+"/batch",body:o,hostType:"write",callback:i})},i.prototype.deleteObject=function(e,t){if("function"==typeof e||"string"!=typeof e&&"number"!=typeof e){var i=new u.AlgoliaSearchError("Cannot delete an object without an objectID");return"function"==typeof(t=e)?t(i):this.as._promise.reject(i)}var n=this;return this.as._jsonRequest({method:"DELETE",url:"/1/indexes/"+encodeURIComponent(n.indexName)+"/"+encodeURIComponent(e),hostType:"write",callback:t})},i.prototype.deleteObjects=function(t,i){var n=e(8),r=e(29),o="Usage: index.deleteObjects(arrayOfObjectIDs[, callback])";if(!n(t))throw new Error(o);var s=this,a={requests:r(t,(function(e){return{action:"deleteObject",objectID:e,body:{objectID:e}}}
8))};return this.as._jsonRequest({method:"POST",url:"/1/indexes/"+encodeURIComponent(s.indexName)+"/batch",body:a,hostType:"write",callback:i})},i.prototype.deleteByQuery=s((function(t,i,n){function r(e){if(0===e.nbHits)return e;var t=d(e.hits,(function(e){return e.objectID}));return h.deleteObjects(t).then(o).then(s)}function o(e){return h.waitTask(e.taskID)}function s(){return h.deleteByQuery(t,i)}function a(){l((function(){n(null)}),f._setTimeout||setTimeout)}function u(e){l((function(){n(e)}),f._setTimeout||setTimeout)}var c=e(24),d=e(29),h=this,f=h.as;1===arguments.length||"function"==typeof i?(n=i,i={}):i=c(i),i.attributesToRetrieve="objectID",i.hitsPerPage=1e3,i.distinct=!1,this.clearCache();var p=this.search(t,i).then(r);if(!n)return p;p.then(a,u)}),a("index.deleteByQuery()","index.deleteBy()")),i.prototype.deleteBy=function(e,t){var i=this;return this.as._jsonRequest({method:"POST",url:"/1/indexes/"+encodeURIComponent(i.indexName)+"/deleteByQuery",body:{params:i.as._getSearchParams(e,"")},hostType:"write",callback:t})},i.prototype.browseAll=function(t,i){function n(e){var t;s._stopped||(t=void 0!==e?{cursor:e}:{params:u},a._jsonRequest({method:"POST",url:"/1/indexes/"+encodeURIComponent(l.indexName)+"/browse",hostType:"read",body:t,callback:r}))}function r(e,t){s._stopped||(e?s._error(e):(s._result(t),void 0!==t.cursor?n(t.cursor):s._end()))}"object"==typeof t&&(i=t,t=void 0);var o=e(30),s=new(e(17)),a=this.as,l=this,u=a._getSearchParams(o({},i||{},{query:t}),"");return n(),s},i.prototype.ttAdapter=s((function(e){var t=this;return function(i,n,r){var o;o="function"==typeof r?r:n,t.search(i,e,(function(e,t){o(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)"),i.prototype.waitTask=function(e,t){function i(){return c._jsonRequest({method:"GET",hostType:"read",url:"/1/indexes/"+encodeURIComponent(u.indexName)+"/task/"+e}).then((function(e){a++;var t=o*a*a;return t>s&&(t=s),"published"!==e.status?c._promise.delay(t).then(i):e}))}function n(e){l((function(){t(null,e)}),c._setTimeout||setTimeout)}function r(e){l((function(){t(e)}),c._setTimeout||setTimeout)}var o=100,s=5e3,a=0,u=this,c=u.as,d=i();if(!t)return d;d.then(n,r)},i.prototype.clearIndex=function(e){var t=this;return this.as._jsonRequest({method:"POST",url:"/1/indexes/"+encodeURIComponent(t.indexName)+"/clear",hostType:"write",callback:e})},i.prototype.getSettings=function(e,t){1===arguments.length&&"function"==typeof e&&(t=e,e={}),e=e||{};var i=encodeURIComponent(this.indexName);return this.as._jsonRequest({method:"GET",url:"/1/indexes/"+i+"/settings?getVersion=2"+(e.advanced?"&advanced="+e.advanced:""),hostType:"read",callback:t})},i.prototype.searchSynonyms=function(e,t){return"function"==typeof e?(t=e,e={}):void 0===e&&(e={}),this.as._jsonRequest({method:"POST",url:"/1/indexes/"+encodeURIComponent(this.indexName)+"/synonyms/search",body:e,hostType:"read",callback:t})},i.prototype.exportSynonyms=function(e,t){return n(this.searchSynonyms.bind(this),e,t)},i.prototype.saveSynonym=function(e,t,i){"function"==typeof t?(i=t,t={}):void 0===t&&(t={}),void 0!==t.forwardToSlaves&&c();var n=t.forwardToSlaves||t.forwardToReplicas?"true":"false";return this.as._jsonRequest({method:"PUT",url:"/1/indexes/"+encodeURIComponent(this.indexName)+"/synonyms/"+encodeURIComponent(e.objectID)+"?forwardToReplicas="+n,body:e,hostType:"write",callback:i})},i.prototype.getSynonym=function(e,t){return this.as._jsonRequest({method:"GET",url:"/1/indexes/"+encodeURIComponent(this.indexName)+"/synonyms/"+encodeURIComponent(e),hostType:"read",callback:t})},i.prototype.deleteSynonym=function(e,t,i){"function"==typeof t?(i=t,t={}):void 0===t&&(t={}),void 0!==t.forwardToSlaves&&c();var n=t.forwardToSlaves||t.forwardToReplicas?"true":"false";return this.as._jsonRequest({method:"DELETE",url:"/1/indexes/"+encodeURIComponent(this.indexName)+"/synonyms/"+encodeURIComponent(e)+"?forwardToReplicas="+n,hostType:"write",callback:i})},i.prototype.clearSynonyms=function(e,t){"function"==typeof e?(t=e,e={}):void 0===e&&(e={}),void 0!==e.forwardToSlaves&&c();var i=e.forwardToSlaves||e.forwardToReplicas?"true":"false";return this.as._jsonRequest({method:"POST",url:"/1/indexes/"+encodeURIComponent(this.indexName)+"/synonyms/clear?forwardToReplicas="+i,hostType:"write",callback:t})},i.prototype.batchSynonyms=function(e,t,i){"function"==typeof t?(i=t,t={}):void 0===t&&(t={}),void 0!==t.forwardToSlaves&&c();var n=t.forwardToSlaves||t.forwardToReplicas?"true":"false";return this.as._jsonRequest({method:"POST",url:"/1/indexes/"+encodeURIComponent(this.indexName)+"/synonyms/batch?forwardToReplicas="+n+"&replaceExistingSynonyms="+(t.replaceExistingSynonyms?"true":"false"),hostType:"write",body:e,callback:i})},i.prototype.searchRules=function(e,t){return"function"==typeof e?(t=e,e={}):void 0===e&&(e={}),this.as._jsonRequest({method:"POST",url:"/1/indexes/"+encodeURIComponent(this.indexName)+"/rules/search",body:e,hostType:"read",callback:t})}
8,i.prototype.exportRules=function(e,t){return n(this.searchRules.bind(this),e,t)},i.prototype.saveRule=function(e,t,i){if("function"==typeof t?(i=t,t={}):void 0===t&&(t={}),!e.objectID)throw new u.AlgoliaSearchError("Missing or empty objectID field for rule");var n=!0===t.forwardToReplicas?"true":"false";return this.as._jsonRequest({method:"PUT",url:"/1/indexes/"+encodeURIComponent(this.indexName)+"/rules/"+encodeURIComponent(e.objectID)+"?forwardToReplicas="+n,body:e,hostType:"write",callback:i})},i.prototype.getRule=function(e,t){return this.as._jsonRequest({method:"GET",url:"/1/indexes/"+encodeURIComponent(this.indexName)+"/rules/"+encodeURIComponent(e),hostType:"read",callback:t})},i.prototype.deleteRule=function(e,t,i){"function"==typeof t?(i=t,t={}):void 0===t&&(t={});var n=!0===t.forwardToReplicas?"true":"false";return this.as._jsonRequest({method:"DELETE",url:"/1/indexes/"+encodeURIComponent(this.indexName)+"/rules/"+encodeURIComponent(e)+"?forwardToReplicas="+n,hostType:"write",callback:i})},i.prototype.clearRules=function(e,t){"function"==typeof e?(t=e,e={}):void 0===e&&(e={});var i=!0===e.forwardToReplicas?"true":"false";return this.as._jsonRequest({method:"POST",url:"/1/indexes/"+encodeURIComponent(this.indexName)+"/rules/clear?forwardToReplicas="+i,hostType:"write",callback:t})},i.prototype.batchRules=function(e,t,i){"function"==typeof t?(i=t,t={}):void 0===t&&(t={});var n=!0===t.forwardToReplicas?"true":"false";return this.as._jsonRequest({method:"POST",url:"/1/indexes/"+encodeURIComponent(this.indexName)+"/rules/batch?forwardToReplicas="+n+"&clearExistingRules="+(!0===t.clearExistingRules?"true":"false"),hostType:"write",body:e,callback:i})},i.prototype.setSettings=function(e,t,i){1!==arguments.length&&"function"!=typeof t||(i=t,t={}),void 0!==t.forwardToSlaves&&c();var n=t.forwardToSlaves||t.forwardToReplicas?"true":"false",r=this;return this.as._jsonRequest({method:"PUT",url:"/1/indexes/"+encodeURIComponent(r.indexName)+"/settings?forwardToReplicas="+n,hostType:"write",body:e,callback:i})},i.prototype.listUserKeys=s((function(e){return this.listApiKeys(e)}),a("index.listUserKeys()","client.listApiKeys()")),i.prototype.listApiKeys=s((function(e){var t=this;return this.as._jsonRequest({method:"GET",url:"/1/indexes/"+encodeURIComponent(t.indexName)+"/keys",hostType:"read",callback:e})}),a("index.listApiKeys()","client.listApiKeys()")),i.prototype.getUserKeyACL=s((function(e,t){return this.getApiKey(e,t)}),a("index.getUserKeyACL()","client.getApiKey()")),i.prototype.getApiKey=s((function(e,t){var i=this;return this.as._jsonRequest({method:"GET",url:"/1/indexes/"+encodeURIComponent(i.indexName)+"/keys/"+e,hostType:"read",callback:t})}),a("index.getApiKey()","client.getApiKey()")),i.prototype.deleteUserKey=s((function(e,t){return this.deleteApiKey(e,t)}),a("index.deleteUserKey()","client.deleteApiKey()")),i.prototype.deleteApiKey=s((function(e,t){var i=this;return this.as._jsonRequest({method:"DELETE",url:"/1/indexes/"+encodeURIComponent(i.indexName)+"/keys/"+e,hostType:"write",callback:t})}),a("index.deleteApiKey()","client.deleteApiKey()")),i.prototype.addUserKey=s((function(e,t,i){return this.addApiKey(e,t,i)}),a("index.addUserKey()","client.addApiKey()")),i.prototype.addApiKey=s((function(t,i,n){var r="Usage: index.addApiKey(arrayOfAcls[, params, callback])";if(!e(8)(t))throw new Error(r);1!==arguments.length&&"function"!=typeof i||(n=i,i=null);var o={acl:t};return i&&(o.validity=i.validity,o.maxQueriesPerIPPerHour=i.maxQueriesPerIPPerHour,o.maxHitsPerQuery=i.maxHitsPerQuery,o.description=i.description,i.queryParameters&&(o.queryParameters=this.as._getSearchParams(i.queryParameters,"")),o.referers=i.referers),this.as._jsonRequest({method:"POST",url:"/1/indexes/"+encodeURIComponent(this.indexName)+"/keys",body:o,hostType:"write",callback:n})}),a("index.addApiKey()","client.addApiKey()")),i.prototype.addUserKeyWithValidity=s((function(e,t,i){return this.addApiKey(e,t,i)}),a("index.addUserKeyWithValidity()","client.addApiKey()")),i.prototype.updateUserKey=s((function(e,t,i,n){return this.updateApiKey(e,t,i,n)}),a("index.updateUserKey()","client.updateApiKey()")),i.prototype.updateApiKey=s((function(t,i,n,r){var o="Usage: index.updateApiKey(key, arrayOfAcls[, params, callback])";if(!e(8)(i))throw new Error(o);2!==arguments.length&&"function"!=typeof n||(r=n,n=null);var s={acl:i};return n&&(s.validity=n.validity,s.maxQueriesPerIPPerHour=n.maxQueriesPerIPPerHour,s.maxHitsPerQuery=n.maxHitsPerQuery,s.description=n.description,n.queryParameters&&(s.queryParameters=this.as._getSearchParams(n.queryParameters,"")),s.referers=n.referers),this.as._jsonRequest({method:"PUT",url:"/1/indexes/"+encodeURIComponent(this.indexName)+"/keys/"+t,body:s,hostType:"write",callback:r})}),a("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 i(){}t.exports=i,e(7)(i,e(4).EventEmitter),i.prototype.stop=function(){this._stopped=!0,this._clean()}
8,i.prototype._end=function(){this.emit("end"),this._clean()},i.prototype._error=function(e){this.emit("error",e),this._clean()},i.prototype._result=function(e){this.emit("result",e)},i.prototype._clean=function(){this.removeAllListeners("stop"),this.removeAllListeners("end"),this.removeAllListeners("error"),this.removeAllListeners("result")}},{4:4,7:7}],18:[function(e,t){function i(e,t){this.indexName=t,this.as=e,this.typeAheadArgs=null,this.typeAheadValueOption=null,this.cache={}}var n=e(23),r=e(25),o=e(26);t.exports=i,i.prototype.clearCache=function(){this.cache={}},i.prototype.search=n("query"),i.prototype.similarSearch=n("similarQuery"),i.prototype.browse=function(t,i,n){var r,o,s=e(30),a=this;0===arguments.length||1===arguments.length&&"function"==typeof arguments[0]?(r=0,n=arguments[0],t=void 0):"number"==typeof arguments[0]?(r=arguments[0],"number"==typeof arguments[1]?o=arguments[1]:"function"==typeof arguments[1]&&(n=arguments[1],o=void 0),t=void 0,i=void 0):"object"==typeof arguments[0]?("function"==typeof arguments[1]&&(n=arguments[1]),i=arguments[0],t=void 0):"string"==typeof arguments[0]&&"function"==typeof arguments[1]&&(n=arguments[1],i=void 0),i=s({},i||{},{page:r,hitsPerPage:o,query:t});var l=this.as._getSearchParams(i,"");return this.as._jsonRequest({method:"POST",url:"/1/indexes/"+encodeURIComponent(a.indexName)+"/browse",body:{params:l},hostType:"read",callback:n})},i.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})},i.prototype.searchForFacetValues=function(t,i){var n=e(24),r=e(31),o="Usage: index.searchForFacetValues({facetName, facetQuery, ...params}[, callback])";if(void 0===t.facetName||void 0===t.facetQuery)throw new Error(o);var s=t.facetName,a=r(n(t),(function(e){return"facetName"===e})),l=this.as._getSearchParams(a,"");return this.as._jsonRequest({method:"POST",url:"/1/indexes/"+encodeURIComponent(this.indexName)+"/facets/"+encodeURIComponent(s)+"/query",hostType:"read",body:{params:l},callback:i})},i.prototype.searchFacet=r((function(e,t){return this.searchForFacetValues(e,t)}),o("index.searchFacet(params[, callback])","index.searchForFacetValues(params[, callback])")),i.prototype._search=function(e,t,i,n){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:i,additionalUA:n})},i.prototype.getObject=function(e,t,i){var n=this;1!==arguments.length&&"function"!=typeof t||(i=t,t=void 0);var r="";if(void 0!==t){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(n.indexName)+"/"+encodeURIComponent(e)+r,hostType:"read",callback:i})},i.prototype.getObjects=function(t,i,n){var r=e(8),o=e(29),s="Usage: index.getObjects(arrayOfObjectIDs[, callback])";if(!r(t))throw new Error(s);var a=this;1!==arguments.length&&"function"!=typeof i||(n=i,i=void 0);var l={requests:o(t,(function(e){var t={indexName:a.indexName,objectID:e};return i&&(t.attributesToRetrieve=i.join(",")),t}))};return this.as._jsonRequest({method:"POST",url:"/1/indexes/*/objects",hostType:"read",body:l,callback:n})},i.prototype.as=null,i.prototype.indexName=null,i.prototype.typeAheadArgs=null,i.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 i=e(14),n=e(20);t.exports=n(i)},{14:14,20:20}],20:[function(e,t){(function(i){"use strict";var n=e(6),r=n.Promise||e(3).Promise;t.exports=function(t,o){function s(t,i,n){return(n=e(24)(n||{}))._ua=n._ua||s.ua,new a(t,i,n)}function a(){t.apply(this,arguments)}var l=e(7),u=e(27),c=e(21),d=e(22),h=e(32);o=o||"","debug"===i.env.NODE_ENV&&e(1).enable("algoliasearch*"),s.version=e(34),s.ua="Algolia for vanilla JavaScript "+o+s.version,s.initPlaces=h(s),n.__algolia={debug:e(1),algoliasearch:s};var f={hasXMLHttpRequest:"XMLHttpRequest"in n,hasXDomainRequest:"XDomainRequest"in n};return f.hasXMLHttpRequest&&(f.cors="withCredentials"in new XMLHttpRequest),l(a,t),a.prototype._request=function(e,t){return new r((function(i,n){function r(){if(!p){var e;clearTimeout(h);try{e={body:JSON.parse(g.responseText),responseText:g.responseText,statusCode:g.status,headers:g.getAllResponseHeaders&&g.getAllResponseHeaders()||{}}}catch(t){e=new u.UnparsableJSON({more:g.responseText})}e instanceof u.UnparsableJSON?n(e):i(e)}}function o(e){p||(clearTimeout(h),n(new u.Network({more:e})))}function s(){p=!0,g.abort(),n(new u.RequestTimeout)}
8function a(){v=!0,clearTimeout(h),h=setTimeout(s,t.timeouts.complete)}function l(){v||a()}function d(){!v&&g.readyState>1&&a()}if(f.cors||f.hasXDomainRequest){e=c(e,t.headers);var h,p,m=t.body,g=f.cors?new XMLHttpRequest:new XDomainRequest,v=!1;h=setTimeout(s,t.timeouts.connect),g.onprogress=l,"onreadystatechange"in g&&(g.onreadystatechange=d),g.onload=r,g.onerror=o,g instanceof XMLHttpRequest?g.open(t.method,e,!0):g.open(t.method,e),f.cors&&(m&&("POST"===t.method?g.setRequestHeader("content-type","application/x-www-form-urlencoded"):g.setRequestHeader("content-type","application/json")),g.setRequestHeader("accept","application/json")),g.send(m)}else n(new u.Network("CORS not supported"))}))},a.prototype._request.fallback=function(e,t){return e=c(e,t.headers),new r((function(i,n){d(e,t,(function(e,t){e?n(e):i(t)}))}))},a.prototype._promise={reject:function(e){return r.reject(e)},resolve:function(e){return r.resolve(e)},delay:function(e){return new r((function(t){setTimeout(t,e)}))},all:function(e){return r.all(e)}},s}}).call(this,e(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 i(e,t){return/\?/.test(e)?e+="&":e+="?",e+n(t)}t.exports=i;var n=e(13)},{13:13}],22:[function(e,t){"use strict";function i(e,t,i){function o(){t.debug("JSONP: success"),g||h||(g=!0,d||(t.debug("JSONP: Fail. Script loaded but did not call the callback"),a(),i(new n.JSONPScriptFail)))}function s(){"loaded"!==this.readyState&&"complete"!==this.readyState||o()}function a(){clearTimeout(v),p.onload=null,p.onreadystatechange=null,p.onerror=null,f.removeChild(p)}function l(){try{delete window[m],delete window[m+"_loaded"]}catch(e){window[m]=window[m+"_loaded"]=void 0}}function u(){t.debug("JSONP: Script timeout"),h=!0,a(),i(new n.RequestTimeout)}function c(){t.debug("JSONP: Script error"),g||h||(a(),i(new n.JSONPScriptError))}if("GET"===t.method){t.debug("JSONP: start");var d=!1,h=!1;r+=1;var f=document.getElementsByTagName("head")[0],p=document.createElement("script"),m="algoliaJSONP_"+r,g=!1;window[m]=function(e){l(),h?t.debug("JSONP: Late answer, ignoring"):(d=!0,a(),i(null,{body:e}))},e+="&callback="+m,t.jsonBody&&t.jsonBody.params&&(e+="&"+t.jsonBody.params);var v=setTimeout(u,t.timeouts.complete);p.onreadystatechange=s,p.onload=o,p.onerror=c,p.async=!0,p.defer=!0,p.src=e,f.appendChild(p)}else i(new Error("Method "+t.method+" "+e+" is not supported by JSONP."))}t.exports=i;var n=e(27),r=0},{27:27}],23:[function(e,t){function i(e,t){return function(i,r,o){if("function"==typeof i&&"object"==typeof r||"object"==typeof o)throw new n.AlgoliaSearchError("index.search usage is index.search(query, params, cb)");0===arguments.length||"function"==typeof i?(o=i,i=""):1!==arguments.length&&"function"!=typeof r||(o=r,r=void 0),"object"==typeof i&&null!==i?(r=i,i=void 0):null==i&&(i="");var s,a="";return void 0!==i&&(a+=e+"="+encodeURIComponent(i)),void 0!==r&&(r.additionalUA&&(s=r.additionalUA,delete r.additionalUA),a=this.as._getSearchParams(r,a)),this._search(a,t,o,s)}}t.exports=i;var n=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 i(){return n||(console.warn(t),n=!0),e.apply(this,arguments)}var n=!1;return i}},{}],26:[function(e,t){t.exports=function(e,t){var i=e.toLowerCase().replace(/[\.\(\)]/g,"");return"algoliasearch: `"+e+"` was replaced by `"+t+"`. Please see https://github.com/algolia/algoliasearch-client-javascript/wiki/Deprecated#"+i}},{}],27:[function(e,t){"use strict";function i(t,i){var n=e(5),r=this;"function"==typeof Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):r.stack=(new Error).stack||"Cannot get a stacktrace, browser is too old",this.name="AlgoliaSearchError",this.message=t||"Unknown error",i&&n(i,(function(e,t){r[t]=e}))}function n(e,t){function n(){var n=Array.prototype.slice.call(arguments,0);"string"!=typeof n[0]&&n.unshift(t),i.apply(this,n),this.name="AlgoliaSearch"+e+"Error"}return r(n,i),n}var r=e(7);
8r(i,Error),t.exports={AlgoliaSearchError:i,UnparsableJSON:n("UnparsableJSON","Could not parse the incoming response as JSON, see err.more for details"),RequestTimeout:n("RequestTimeout","Request timedout before getting a response"),Network:n("Network","Network issue, see err.more for details"),JSONPScriptFail:n("JSONPScriptFail","<script> was loaded but did not call our provided callback"),JSONPScriptError:n("JSONPScriptError","<script> unable to load due to an `error` event on it"),Unknown:n("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 i=e(5);t.exports=function(e,t){var n=[];return i(e,(function(i,r){n.push(t(i,r,e))})),n}},{5:5}],30:[function(e,t){var i=e(5);t.exports=function e(t){var n=Array.prototype.slice.call(arguments);return i(n,(function(i){for(var n in i)i.hasOwnProperty(n)&&("object"==typeof t[n]&&"object"==typeof i[n]?t[n]=e({},t[n],i[n]):void 0!==i[n]&&(t[n]=i[n]))})),t}},{5:5}],31:[function(e,t){t.exports=function(t,i){var n=e(10),r=e(5),o={};return r(n(t),(function(e){!0!==i(e)&&(o[e]=t[e])})),o}},{10:10,5:5}],32:[function(e,t){function i(t){return function(i,r,o){var s=e(24);(o=o&&s(o)||{}).hosts=o.hosts||["places-dsn.algolia.net","places-1.algolianet.com","places-2.algolianet.com","places-3.algolianet.com"],0!==arguments.length&&"object"!=typeof i&&void 0!==i||(i="",r="",o._allowEmptyCredentials=!0);var a=t(i,r,o).initIndex("places");return a.search=n("query","/1/places/query"),a.getObject=function(e,t){return this.as._jsonRequest({method:"GET",url:"/1/places/"+encodeURIComponent(e),hostType:"read",callback:t})},a}}t.exports=i;var n=e(23)},{23:23,24:24}],33:[function(e,t){(function(i){function n(e,t){return l("localStorage failed with",t),s(),(a=c).get(e)}function r(e,t){return 1===arguments.length?a.get(e):a.set(e,t)}function o(){try{return"localStorage"in i&&null!==i.localStorage&&(i.localStorage[u]||i.localStorage.setItem(u,JSON.stringify({})),!0)}catch(e){return!1}}function s(){
9try{i.localStorage.removeItem(u)}catch(e){}}var a,l=e(1)("algoliasearch:src/hostIndexState.js"),u="algoliasearch-client-js",c={state:{},set:function(e,t){return this.state[e]=t,this.state[e]},get:function(e){return this.state[e]||null}},d={set:function(e,t){c.set(e,t);try{var r=JSON.parse(i.localStorage[u]);return r[e]=t,i.localStorage[u]=JSON.stringify(r),r[e]}catch(t){return n(e,t)}},get:function(e){try{return JSON.parse(i.localStorage[u])[e]||null}catch(t){return n(e,t)}}};a=o()?d:c,t.exports={get:r,set:r,supportsLocalStorage:o}}).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 e(){return tr.apply(null,arguments)}function t(e){tr=e}function i(e){return e instanceof Array||"[object Array]"===Object.prototype.toString.call(e)}function n(e){return null!=e&&"[object Object]"===Object.prototype.toString.call(e)}function r(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function o(e){if(Object.getOwnPropertyNames)return 0===Object.getOwnPropertyNames(e).length;var t;for(t in e)if(r(e,t))return!1;return!0}function s(e){return void 0===e}function a(e){return"number"==typeof e||"[object Number]"===Object.prototype.toString.call(e)}function l(e){return e instanceof Date||"[object Date]"===Object.prototype.toString.call(e)}function u(e,t){var i,n=[],r=e.length;for(i=0;i<r;++i)n.push(t(e[i],i));return n}function c(e,t){for(var i in t)r(t,i)&&(e[i]=t[i]);return r(t,"toString")&&(e.toString=t.toString),r(t,"valueOf")&&(e.valueOf=t.valueOf),e}function d(e,t,i,n){return Tt(e,t,i,n,!0).utc()}function h(){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 f(e){return null==e._pf&&(e._pf=h()),e._pf}function p(e){if(null==e._isValid){var t=f(e),i=ir.call(t.parsedDateParts,(function(e){return null!=e}
vendor: 28,540 bytes, line 9
9)),n=!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&&i);if(e._strict&&(n=n&&0===t.charsLeftOver&&0===t.unusedTokens.length&&void 0===t.bigHour),null!=Object.isFrozen&&Object.isFrozen(e))return n;e._isValid=n}return e._isValid}function m(e){var t=d(NaN);return null!=e?c(f(t),e):f(t).userInvalidated=!0,t}function g(e,t){var i,n,r,o=rr.length;if(s(t._isAMomentObject)||(e._isAMomentObject=t._isAMomentObject),s(t._i)||(e._i=t._i),s(t._f)||(e._f=t._f),s(t._l)||(e._l=t._l),s(t._strict)||(e._strict=t._strict),s(t._tzm)||(e._tzm=t._tzm),s(t._isUTC)||(e._isUTC=t._isUTC),s(t._offset)||(e._offset=t._offset),s(t._pf)||(e._pf=f(t)),s(t._locale)||(e._locale=t._locale),o>0)for(i=0;i<o;i++)s(r=t[n=rr[i]])||(e[n]=r);return e}function v(t){g(this,t),this._d=new Date(null!=t._d?t._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),!1===or&&(or=!0,e.updateOffset(this),or=!1)}function y(e){return e instanceof v||null!=e&&null!=e._isAMomentObject}function b(t){!1===e.suppressDeprecationWarnings&&"undefined"!=typeof console&&console.warn&&console.warn("Deprecation warning: "+t)}function w(t,i){var n=!0;return c((function(){if(null!=e.deprecationHandler&&e.deprecationHandler(null,t),n){var o,s,a,l=[],u=arguments.length;for(s=0;s<u;s++){if(o="","object"==typeof arguments[s]){for(a in o+="\n["+s+"] ",arguments[0])r(arguments[0],a)&&(o+=a+": "+arguments[0][a]+", ");o=o.slice(0,-2)}else o=arguments[s];l.push(o)}b(t+"\nArguments: "+Array.prototype.slice.call(l).join("")+"\n"+(new Error).stack),n=!1}return i.apply(this,arguments)}),i)}function S(t,i){null!=e.deprecationHandler&&e.deprecationHandler(t,i),sr[t]||(b(i),sr[t]=!0)}function k(e){return"undefined"!=typeof Function&&e instanceof Function||"[object Function]"===Object.prototype.toString.call(e)}function x(e){var t,i;for(i in e)r(e,i)&&(k(t=e[i])?this[i]=t:this["_"+i]=t);this._config=e,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)}function _(e,t){var i,o=c({},e);for(i in t)r(t,i)&&(n(e[i])&&n(t[i])?(o[i]={},c(o[i],e[i]),c(o[i],t[i])):null!=t[i]?o[i]=t[i]:delete o[i]);for(i in e)r(e,i)&&!r(t,i)&&n(e[i])&&(o[i]=c({},o[i]));return o}function C(e){null!=e&&this.set(e)}function T(e,t,i){var n=this._calendar[e]||this._calendar.sameElse;return k(n)?n.call(t,i):n}function E(e,t,i){var n=""+Math.abs(e),r=t-n.length;return(e>=0?i?"+":"":"-")+Math.pow(10,Math.max(0,r)).toString().substr(1)+n}function P(e,t,i,n){var r=n;"string"==typeof n&&(r=function(){return this[n]()}),e&&(hr[e]=r),t&&(hr[t[0]]=function(){return E(r.apply(this,arguments),t[1],t[2])}),i&&(hr[i]=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(e){var t,i,n=e.match(ur);for(t=0,i=n.length;t<i;t++)hr[n[t]]?n[t]=hr[n[t]]:n[t]=O(n[t]);return function(t){var r,o="";for(r=0;r<i;r++)o+=k(n[r])?n[r].call(t,e):n[r];return o}}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 i(e){return t.longDateFormat(e)||e}var n=5;for(cr.lastIndex=0;n>=0&&cr.test(e);)e=e.replace(cr,i),cr.lastIndex=0,n-=1;return e}function F(e){var t=this._longDateFormat[e],i=this._longDateFormat[e.toUpperCase()];return t||!i?t:(this._longDateFormat[e]=i.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,i,n){var r=this._relativeTime[i];return k(r)?r(e,t,i,n):r.replace(/%d/i,e)}function j(e,t){var i=this._relativeTime[e>0?"future":"past"];return k(i)?i(t):i.replace(/%s/i,t)}function R(e,t){var i=e.toLowerCase();yr[i]=yr[i+"s"]=yr[t]=e}function V(e){return"string"==typeof e?yr[e]||yr[e.toLowerCase()]:void 0}function $(e){var t,i,n={};for(i in e)r(e,i)&&(t=V(i))&&(n[t]=e[i]);return n}function U(e,t){br[e]=t}function B(e){var t,i=[];for(t in e)r(e,t)&&i.push({unit:t,priority:br[t]});return i.sort((function(e,t){return e.priority-t.priority})),i}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,i=0;return 0!==t&&isFinite(t)&&(i=H(t)),i}function W(t,i){return function(n){return null!=n?(G(this,t,n),e.updateOffset(this,i),this):Y(this,t)}}function Y(e,t){return e.isValid()?e._d["get"+(e._isUTC?"UTC":"")+t]():NaN}function G(e,t,i){e.isValid()&&!isNaN(i)&&("FullYear"===t&&z(e.year())&&1===e.month()&&29===e.date()?(i=q(i),e._d["set"+(e._isUTC?"UTC":"")+t](i,e.month(),oe(i,e.month()))):e._d["set"+(e._isUTC?"UTC":"")+t](i))}function K(e){return k(this[e=V(e)])?this[e]():this}function Z(e,t){if("object"==typeof e){var i,n=B(e=$(e)),r=n.length;for(i=0;i<r;i++)this[n[i].unit](e[n[i].unit])}else if(k(this[e=V(e)]))return this[e](t);return this}function Q(e,t,i){ar[e]=k(t)?t:function(e){return e&&i?i:t}}function X(e,t){return r(ar,e)?ar[e](t._strict,t._locale):new RegExp(J(e))}function J(e){return ee(e.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,(function(e,t,i,n,r){return t||i||n||r})))}function ee(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}function te(e,t){var i,n,r=t;for("string"==typeof e&&(e=[e]),a(t)&&(r=function(e,i){i[t]=q(e)}),n=e.length,i=0;i<n;i++)Rr[e[i]]=r}function ie(e,t){te(e,(function(e,i,n,r){n._w=n._w||{},t(e,n._w,n,r)}))}function ne(e,t,i){null!=t&&r(Rr,e)&&Rr[e](t,i._a,i,e)}function re(e,t){return(e%t+t)%t}function oe(e,t){if(isNaN(e)||isNaN(t))return NaN;var i=re(t,12);return e+=(t-i)/12,1===i?z(e)?29:28:31-i%7%2}function se(e,t){return e?i(this._months)?this._months[e.month()]:this._months[(this._months.isFormat||Zr).test(t)?"format":"standalone"][e.month()]:i(this._months)?this._months:this._months.standalone}function ae(e,t){return e?i(this._monthsShort)?this._monthsShort[e.month()]:this._monthsShort[Zr.test(t)?"format":"standalone"][e.month()]:i(this._monthsShort)?this._monthsShort:this._monthsShort.standalone}function le(e,t,i){var n,r,o,s=e.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],n=0;n<12;++n)o=d([2e3,n]),this._shortMonthsParse[n]=this.monthsShort(o,"").toLocaleLowerCase(),this._longMonthsParse[n]=this.months(o,"").toLocaleLowerCase();return i?"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))||-1!==(r=jr.call(this._longMonthsParse,s))?r:null:-1!==(r=jr.call(this._longMonthsParse,s))||-1!==(r=jr.call(this._shortMonthsParse,s))?r:null}function ue(e,t,i){var n,r,o;if(this._monthsParseExact)return le.call(this,e,t,i);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),n=0;n<12;n++){if(r=d([2e3,n]),i&&!this._longMonthsParse[n]&&(this._longMonthsParse[n]=new RegExp("^"+this.months(r,"").replace(".","")+"$","i"),this._shortMonthsParse[n]=new RegExp("^"+this.monthsShort(r,"").replace(".","")+"$","i")),i||this._monthsParse[n]||(o="^"+this.months(r,"")+"|^"+this.monthsShort(r,""),this._monthsParse[n]=new RegExp(o.replace(".",""),"i")),i&&"MMMM"===t&&this._longMonthsParse[n].test(e))return n;if(i&&"MMM"===t&&this._shortMonthsParse[n].test(e))return n;if(!i&&this._monthsParse[n].test(e))return n}}function ce(e,t){var i;if(!e.isValid())return e;if("string"==typeof t)if(/^\d+$/.test(t))t=q(t);else if(!a(t=e.localeData().monthsParse(t)))return e;return i=Math.min(e.date(),oe(e.year(),t)),e._d["set"+(e._isUTC?"UTC":"")+"Month"](t,i),e}function de(t){return null!=t?(ce(this,t),e.updateOffset(this,!0),this):Y(this,"Month")}function he(){return oe(this.year(),this.month())}function fe(e){return this._monthsParseExact?(r(this,"_monthsRegex")||me.call(this),e?this._monthsShortStrictRegex:this._monthsShortRegex):(r(this,"_monthsShortRegex")||(this._monthsShortRegex=Qr),this._monthsShortStrictRegex&&e?this._monthsShortStrictRegex:this._monthsShortRegex)}function pe(e){return this._monthsParseExact?(r(this,"_monthsRegex")||me.call(this),e?this._monthsStrictRegex:this._monthsRegex):(r(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,i,n=[],r=[],o=[];for(t=0;t<12;t++)i=d([2e3,t]),n.push(this.monthsShort(i,"")),r.push(this.months(i,"")),o.push(this.months(i,"")),o.push(this.monthsShort(i,""));for(n.sort(e),r.sort(e),o.sort(e),t=0;t<12;t++)n[t]=ee(n[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("^("+n.join("|")+")","i")}function ge(e){return z(e)?366:365}function ve(){return z(this.year())}function ye(e,t,i,n,r,o,s){var a;return e<100&&e>=0?(a=new Date(e+400,t,i,n,r,o,s),isFinite(a.getFullYear())&&a.setFullYear(e)):a=new Date(e,t,i,n,r,o,s),a}function be(e){var t,i;return e<100&&e>=0?((i=Array.prototype.slice.call(arguments))[0]=e+400,t=new Date(Date.UTC.apply(null,i)),isFinite(t.getUTCFullYear())&&t.setUTCFullYear(e)):t=new Date(Date.UTC.apply(null,arguments)),t}function we(e,t,i){var n=7+t-i;return-((7+be(e,0,n).getUTCDay()-t)%7)+n-1}function Se(e,t,i,n,r){var o,s,a=1+7*(t-1)+(7+i-n)%7+we(e,n,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,i){var n,r,o=we(e.year(),t,i),s=Math.floor((e.dayOfYear()-o-1)/7)+1;return s<1?n=s+xe(r=e.year()-1,t,i):s>xe(e.year(),t,i)?(n=s-xe(e.year(),t,i),r=e.year()+1):(r=e.year(),n=s),{week:n,year:r}}function xe(e,t,i){var n=we(e,t,i),r=we(e+1,t,i);return(ge(e)-n+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=i(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,i){var n,r,o,s=e.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],n=0;n<7;++n)o=d([2e3,1]).day(n),this._minWeekdaysParse[n]=this.weekdaysMin(o,"").toLocaleLowerCase(),this._shortWeekdaysParse[n]=this.weekdaysShort(o,"").toLocaleLowerCase(),this._weekdaysParse[n]=this.weekdays(o,"").toLocaleLowerCase();return i?"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))||-1!==(r=jr.call(this._shortWeekdaysParse,s))||-1!==(r=jr.call(this._minWeekdaysParse,s))?r:null:"ddd"===t?-1!==(r=jr.call(this._shortWeekdaysParse,s))||-1!==(r=jr.call(this._weekdaysParse,s))||-1!==(r=jr.call(this._minWeekdaysParse,s))?r:null:-1!==(r=jr.call(this._minWeekdaysParse,s))||-1!==(r=jr.call(this._weekdaysParse,s))||-1!==(r=jr.call(this._shortWeekdaysParse,s))?r:null}function Me(e,t,i){var n,r,o;if(this._weekdaysParseExact)return Le.call(this,e,t,i);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),n=0;n<7;n++){if(r=d([2e3,1]).day(n),i&&!this._fullWeekdaysParse[n]&&(this._fullWeekdaysParse[n]=new RegExp("^"+this.weekdays(r,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[n]=new RegExp("^"+this.weekdaysShort(r,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[n]=new RegExp("^"+this.weekdaysMin(r,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[n]||(o="^"+this.weekdays(r,"")+"|^"+this.weekdaysShort(r,"")+"|^"+this.weekdaysMin(r,""),this._weekdaysParse[n]=new RegExp(o.replace(".",""),"i")),i&&"dddd"===t&&this._fullWeekdaysParse[n].test(e))return n;if(i&&"ddd"===t&&this._shortWeekdaysParse[n].test(e))return n;if(i&&"dd"===t&&this._minWeekdaysParse[n].test(e))return n;if(!i&&this._weekdaysParse[n].test(e))return n}}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?(r(this,"_weekdaysRegex")||ze.call(this),e?this._weekdaysStrictRegex:this._weekdaysRegex):(r(this,"_weekdaysRegex")||(this._weekdaysRegex=ro),this._weekdaysStrictRegex&&e?this._weekdaysStrictRegex:this._weekdaysRegex)}function Ue(e){return this._weekdaysParseExact?(r(this,"_weekdaysRegex")||ze.call(this),e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(r(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=oo),this._weekdaysShortStrictRegex&&e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)}function Be(e){return this._weekdaysParseExact?(r(this,"_weekdaysRegex")||ze.call(this),e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(r(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,i,n,r,o,s=[],a=[],l=[],u=[];for(t=0;t<7;t++)i=d([2e3,1]).day(t),n=ee(this.weekdaysMin(i,"")),r=ee(this.weekdaysShort(i,"")),o=ee(this.weekdays(i,"")),s.push(n),a.push(r),l.push(o),u.push(n),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,i){return e>11?i?"pm":"PM":i?"am":"AM"}function Ze(e,t){var i,n=Math.min(e.length,t.length);for(i=0;i<n;i+=1)if(e[i]!==t[i])return i;return n}function Qe(e){return e?e.toLowerCase().replace("_","-"):e}function Xe(e){for(var t,i,n,r,o=0;o<e.length;){for(t=(r=Qe(e[o]).split("-")).length,i=(i=Qe(e[o+1]))?i.split("-"):null;t>0;){if(n=et(r.slice(0,t).join("-")))return n;if(i&&i.length>=t&&Ze(r,i)>=t-1)break;t--}o++}return ao}function Je(e){return null!=e.match("^[^/\\\\]*$")}function et(e){var t=null;if(void 0===ho[e]&&"undefined"!=typeof module&&module&&module.exports&&Je(e))try{t=ao._abbr,require("./locale/"+e),tt(t)}catch(t){ho[e]=null}return ho[e]}function tt(e,t){var i;return e&&((i=s(t)?rt(e):it(e,t))?ao=i:"undefined"!=typeof console&&console.warn&&console.warn("Locale "+e+" not found. Did you forget to load it?")),ao._abbr}function it(e,t){if(null!==t){var i,n=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."),n=ho[e]._config;else if(null!=t.parentLocale)if(null!=ho[t.parentLocale])n=ho[t.parentLocale]._config;else{if(null==(i=et(t.parentLocale)))return fo[t.parentLocale]||(fo[t.parentLocale]=[]),fo[t.parentLocale].push({name:e,config:t}),null;n=i._config}return ho[e]=new C(_(n,t)),fo[e]&&fo[e].forEach((function(e){it(e.name,e.config)})),tt(e),ho[e]}return delete ho[e],null}function nt(e,t){if(null!=t){var i,n,r=co;null!=ho[e]&&null!=ho[e].parentLocale?ho[e].set(_(ho[e]._config,t)):(null!=(n=et(e))&&(r=n._config),t=_(r,t),null==n&&(t.abbr=e),(i=new C(t)).parentLocale=ho[e],ho[e]=i),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(!i(e)){if(t=et(e))return t;e=[e]}return Xe(e)}function ot(){return nr(ho)}function st(e){var t,i=e._a;return i&&-2===f(e).overflow&&(t=i[$r]<0||i[$r]>11?$r:i[Ur]<1||i[Ur]>oe(i[Vr],i[$r])?Ur:i[Br]<0||i[Br]>24||24===i[Br]&&(0!==i[zr]||0!==i[Hr]||0!==i[qr])?Br:i[zr]<0||i[zr]>59?zr:i[Hr]<0||i[Hr]>59?Hr:i[qr]<0||i[qr]>999?qr:-1,f(e)._overflowDayOfYear&&(t<Vr||t>Ur)&&(t=Ur),f(e)._overflowWeeks&&-1===t&&(t=Wr),f(e)._overflowWeekday&&-1===t&&(t=Yr),f(e).overflow=t),e}function at(e){var t,i,n,r,o,s,a=e._i,l=po.exec(a)||mo.exec(a),u=vo.length,c=yo.length;if(l){for(f(e).iso=!0,t=0,i=u;t<i;t++)if(vo[t][1].exec(l[1])){r=vo[t][0],n=!1!==vo[t][2];break}if(null==r)return void(e._isValid=!1);if(l[3]){for(t=0,i=c;t<i;t++)if(yo[t][1].exec(l[3])){o=(l[2]||" ")+yo[t][0];break}if(null==o)return void(e._isValid=!1)}if(!n&&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,i,n,r,o){var s=[ut(e),Kr.indexOf(t),parseInt(i,10),parseInt(n,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,i){if(e&&io.indexOf(e)!==new Date(t[0],t[1],t[2]).getDay())return f(i).weekdayMismatch=!0,i._isValid=!1,!1;return!0}function ht(e,t,i){if(e)return So[e];if(t)return 0;var n=parseInt(i,10),r=n%100;return 60*((n-r)/100)+r}function ft(e){var t,i=wo.exec(ct(e._i));if(i){if(t=lt(i[4],i[3],i[2],i[5],i[6],i[7]),!dt(i[1],t,e))return;e._a=t,e._tzm=ht(i[8],i[9],i[10]),e._d=be.apply(null,e._a),e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),f(e).rfc2822=!0}else e._isValid=!1}function pt(t){var i=bo.exec(t._i);null===i?(at(t),!1===t._isValid&&(delete t._isValid,ft(t),!1===t._isValid&&(delete t._isValid,t._strict?t._isValid=!1:e.createFromInputFallback(t)))):t._d=new Date(+i[1])}function mt(e,t,i){return null!=e?e:null!=t?t:i}function gt(t){var i=new Date(e.now());return t._useUTC?[i.getUTCFullYear(),i.getUTCMonth(),i.getUTCDate()]:[i.getFullYear(),i.getMonth(),i.getDate()]}function vt(e){var t,i,n,r,o,s=[];if(!e._d){for(n=gt(e),e._w&&null==e._a[Ur]&&null==e._a[$r]&&yt(e),null!=e._dayOfYear&&(o=mt(e._a[Vr],n[Vr]),(e._dayOfYear>ge(o)||0===e._dayOfYear)&&(f(e)._overflowDayOfYear=!0),i=be(o,0,e._dayOfYear),e._a[$r]=i.getUTCMonth(),e._a[Ur]=i.getUTCDate()),t=0;t<3&&null==e._a[t];++t)e._a[t]=s[t]=n[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&&void 0!==e._w.d&&e._w.d!==r&&(f(e).weekdayMismatch=!0)}}function yt(e){var t,i,n,r,o,s,a,l,u;null!=(t=e._w).GG||null!=t.W||null!=t.E?(o=1,s=4,i=mt(t.GG,e._a[Vr],ke(Et(),1,4).year),n=mt(t.W,1),((r=mt(t.E,1))<1||r>7)&&(l=!0)):(o=e._locale._week.dow,s=e._locale._week.doy,u=ke(Et(),o,s),i=mt(t.gg,e._a[Vr],u.year),n=mt(t.w,u.week),null!=t.d?((r=t.d)<0||r>6)&&(l=!0):null!=t.e?(r=t.e+o,(t.e<0||t.e>6)&&(l=!0)):r=o),n<1||n>xe(i,o,s)?f(e)._overflowWeeks=!0:null!=l?f(e)._overflowWeekday=!0:(a=Se(i,n,r,o,s),e._a[Vr]=a.year,e._dayOfYear=a.dayOfYear)}function bt(t){if(t._f!==e.ISO_8601)if(t._f!==e.RFC_2822){t._a=[],f(t).empty=!0;var i,n,r,o,s,a,l,u=""+t._i,c=u.length,d=0;for(l=(r=D(t._f,t._locale).match(ur)||[]).length,i=0;i<l;i++)o=r[i],(n=(u.match(X(o,t))||[])[0])&&((s=u.substr(0,u.indexOf(n))).length>0&&f(t).unusedInput.push(s),u=u.slice(u.indexOf(n)+n.length),d+=n.length),hr[o]?(n?f(t).empty=!1:f(t).unusedTokens.push(o),ne(o,n,t)):t._strict&&!n&&f(t).unusedTokens.push(o);f(t).charsLeftOver=c-d,u.length>0&&f(t).unusedInput.push(u),t._a[Br]<=12&&!0===f(t).bigHour&&t._a[Br]>0&&(f(t).bigHour=void 0),f(t).parsedDateParts=t._a.slice(0),f(t).meridiem=t._meridiem,t._a[Br]=wt(t._locale,t._a[Br],t._meridiem),null!==(a=f(t).era)&&(t._a[Vr]=t._locale.erasConvertYear(a,t._a[Vr])),vt(t),st(t)}else ft(t);else at(t)}function wt(e,t,i){var n;return null==i?t:null!=e.meridiemHour?e.meridiemHour(t,i):null!=e.isPM?((n=e.isPM(i))&&t<12&&(t+=12),n||12!==t||(t=0),t):t}function St(e){var t,i,n,r,o,s,a=!1,l=e._f.length;if(0===l)return f(e).invalidFormat=!0,void(e._d=new Date(NaN));for(r=0;r<l;r++)o=0,s=!1,t=g({},e),null!=e._useUTC&&(t._useUTC=e._useUTC),t._f=e._f[r],bt(t),p(t)&&(s=!0),o+=f(t).charsLeftOver,o+=10*f(t).unusedTokens.length,f(t).score=o,a?o<n&&(n=o,i=t):(null==n||o<n||s)&&(n=o,i=t,s&&(a=!0));c(e,i||t)}function kt(e){if(!e._d){var t=$(e._i),i=void 0===t.day?t.date:t.day;e._a=u([t.year,t.month,i,t.hour,t.minute,t.second,t.millisecond],(function(e){return e&&parseInt(e,10)})),vt(e)}}function xt(e){var t=new v(st(_t(e)));return t._nextDay&&(t.add(1,"d"),t._nextDay=void 0),t}function _t(e){var t=e._i,n=e._f;return e._locale=e._locale||rt(e._l),null===t||void 0===n&&""===t?m({nullInput:!0}):("string"==typeof t&&(e._i=t=e._locale.preparse(t)),y(t)?new v(st(t)):(l(t)?e._d=t:i(n)?St(e):n?bt(e):Ct(e),p(e)||(e._d=null),e))}function Ct(t){var r=t._i;s(r)?t._d=new Date(e.now()):l(r)?t._d=new Date(r.valueOf()):"string"==typeof r?pt(t):i(r)?(t._a=u(r.slice(0),(function(e){return parseInt(e,10)})),vt(t)):n(r)?kt(t):a(r)?t._d=new Date(r):e.createFromInputFallback(t)}function Tt(e,t,r,s,a){var l={};return!0!==t&&!1!==t||(s=t,t=void 0),!0!==r&&!1!==r||(s=r,r=void 0),(n(e)&&o(e)||i(e)&&0===e.length)&&(e=void 0),l._isAMomentObject=!0,l._useUTC=l._isUTC=a,l._l=r,l._i=e,l._f=t,l._strict=s,xt(l)}function Et(e,t,i,n){return Tt(e,t,i,n,!1)}function Pt(e,t){var n,r;if(1===t.length&&i(t[0])&&(t=t[0]),!t.length)return Et();for(n=t[0],r=1;r<t.length;++r)t[r].isValid()&&!t[r][e](n)||(n=t[r]);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,i,n=!1,o=Co.length;for(t in e)if(r(e,t)&&(-1===jr.call(Co,t)||null!=e[t]&&isNaN(e[t])))return!1;for(i=0;i<o;++i)if(e[Co[i]]){if(n)return!1;parseFloat(e[Co[i]])!==q(e[Co[i]])&&(n=!0)}return!0}function Dt(){return this._isValid}function Ft(){return Jt(NaN)}function It(e){var t=$(e),i=t.year||0,n=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*n+12*i,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,i){var n,r=Math.min(e.length,t.length),o=Math.abs(e.length-t.length),s=0;for(n=0;n<r;n++)(i&&e[n]!==t[n]||!i&&q(e[n])!==q(t[n]))&&s++;return s+o}function Rt(e,t){P(e,0,0,(function(){var e=this.utcOffset(),i="+";return e<0&&(e=-e,i="-"),i+E(~~(e/60),2)+t+E(~~e%60,2)}))}function Vt(e,t){var i,n,r=(t||"").match(e);return null===r?null:0===(n=60*(i=((r[r.length-1]||[])+"").match(To)||["-",0,0])[1]+q(i[2]))?0:"+"===i[0]?n:-n}function $t(t,i){var n,r;return i._isUTC?(n=i.clone(),r=(y(t)||l(t)?t.valueOf():Et(t).valueOf())-n.valueOf(),n._d.setTime(n._d.valueOf()+r),e.updateOffset(n,!1),n):Et(t).local()}function Ut(e){return-Math.round(e._d.getTimezoneOffset())}function Bt(t,i,n){var r,o=this._offset||0;if(!this.isValid())return null!=t?this:NaN;if(null!=t){if("string"==typeof t){if(null===(t=Vt(Ir,t)))return this}else Math.abs(t)<16&&!n&&(t*=60);return!this._isUTC&&i&&(r=Ut(this)),this._offset=t,this._isUTC=!0,null!=r&&this.add(r,"m"),o!==t&&(!i||this._changeInProgress?ri(this,Jt(t-o,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,e.updateOffset(this,!0),this._changeInProgress=null)),this}return this._isUTC?o: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(!s(this._isDSTShifted))return this._isDSTShifted;var e,t={};return g(t,this),(t=_t(t))._a?(e=t._isUTC?d(t._a):Et(t._a),this._isDSTShifted=this.isValid()&&jt(t._a,e.toArray())>0):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 i,n,o,s=e,l=null;return Lt(e)?s={ms:e._milliseconds,d:e._days,M:e._months}:a(e)||!isNaN(+e)?(s={},t?s[t]=+e:s.milliseconds=+e):(l=Eo.exec(e))?(i="-"===l[1]?-1:1,s={y:0,d:q(l[Ur])*i,h:q(l[Br])*i,m:q(l[zr])*i,s:q(l[Hr])*i,ms:q(Mt(1e3*l[qr]))*i}):(l=Po.exec(e))?(i="-"===l[1]?-1:1,s={y:ei(l[2],i),M:ei(l[3],i),w:ei(l[4],i),d:ei(l[5],i),h:ei(l[6],i),m:ei(l[7],i),s:ei(l[8],i)}):null==s?s={}:"object"==typeof s&&("from"in s||"to"in s)&&(o=ii(Et(s.from),Et(s.to)),(s={}).ms=o.milliseconds,s.M=o.months),n=new It(s),Lt(e)&&r(e,"_locale")&&(n._locale=e._locale),Lt(e)&&r(e,"_isValid")&&(n._isValid=e._isValid),n}function ei(e,t){var i=e&&parseFloat(e.replace(",","."));return(isNaN(i)?0:i)*t}function ti(e,t){var i={};return i.months=t.month()-e.month()+12*(t.year()-e.year()),e.clone().add(i.months,"M").isAfter(t)&&--i.months,i.milliseconds=+t-+e.clone().add(i.months,"M"),i}function ii(e,t){var i;return e.isValid()&&t.isValid()?(t=$t(t,e),e.isBefore(t)?i=ti(e,t):((i=ti(t,e)).milliseconds=-i.milliseconds,i.months=-i.months),i):{milliseconds:0,months:0}}function ni(e,t){return function(i,n){var r;return null===n||isNaN(+n)||(S(t,"moment()."+t+"(period, number) is deprecated. Please use moment()."+t+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),r=i,i=n,n=r),ri(this,Jt(i,n),e),this}}function ri(t,i,n,r){var o=i._milliseconds,s=Mt(i._days),a=Mt(i._months);t.isValid()&&(r=null==r||r,a&&ce(t,Y(t,"Month")+a*n),s&&G(t,"Date",Y(t,"Date")+s*n),o&&t._d.setTime(t._d.valueOf()+o*n),r&&e.updateOffset(t,s||a))}function oi(e){return"string"==typeof e||e instanceof String}function si(e){return y(e)||l(e)||oi(e)||a(e)||li(e)||ai(e)||null==e}function ai(e){var t,i,s=n(e)&&!o(e),a=!1,l=["years","year","y","months","month","M","days","day","d","dates","date","D","hours","hour","h","minutes","minute","m","seconds","second","s","milliseconds","millisecond","ms"],u=l.length;for(t=0;t<u;t+=1)i=l[t],a=a||r(e,i);return s&&a}function li(e){var t=i(e),n=!1;return t&&(n=0===e.filter((function(t){return!a(t)&&oi(e)})).length),t&&n}function ui(e){var t,i,s=n(e)&&!o(e),a=!1,l=["sameDay","nextDay","lastDay","nextWeek","lastWeek","sameElse"];for(t=0;t<l.length;t+=1)i=l[t],a=a||r(e,i);return s&&a}function ci(e,t){var i=e.diff(t,"days",!0);return i<-6?"sameElse":i<-1?"lastWeek":i<0?"lastDay":i<1?"sameDay":i<2?"nextDay":i<7?"nextWeek":"sameElse"}function di(t,i){1===arguments.length&&(arguments[0]?si(arguments[0])?(t=arguments[0],i=void 0):ui(arguments[0])&&(i=arguments[0],t=void 0):(t=void 0,i=void 0));
vendor: 4,510 bytes, lines 9-10
9var n=t||Et(),r=$t(n,this).startOf("day"),o=e.calendarFormat(this,r)||"sameElse",s=i&&(k(i[o])?i[o].call(this,n):i[o]);return this.format(s||this.localeData().calendar(o,this,Et(n)))}function hi(){return new v(this)}function fi(e,t){var i=y(e)?e:Et(e);return!(!this.isValid()||!i.isValid())&&("millisecond"===(t=V(t)||"millisecond")?this.valueOf()>i.valueOf():i.valueOf()<this.clone().startOf(t).valueOf())}function pi(e,t){var i=y(e)?e:Et(e);return!(!this.isValid()||!i.isValid())&&("millisecond"===(t=V(t)||"millisecond")?this.valueOf()<i.valueOf():this.clone().endOf(t).valueOf()<i.valueOf())}function mi(e,t,i,n){var r=y(e)?e:Et(e),o=y(t)?t:Et(t);return!!(this.isValid()&&r.isValid()&&o.isValid())&&(("("===(n=n||"()")[0]?this.isAfter(r,i):!this.isBefore(r,i))&&(")"===n[1]?this.isBefore(o,i):!this.isAfter(o,i)))}function gi(e,t){var i,n=y(e)?e:Et(e);return!(!this.isValid()||!n.isValid())&&("millisecond"===(t=V(t)||"millisecond")?this.valueOf()===n.valueOf():(i=n.valueOf(),this.clone().startOf(t).valueOf()<=i&&i<=this.clone().endOf(t).valueOf()))}function vi(e,t){return this.isSame(e,t)||this.isAfter(e,t)}function yi(e,t){return this.isSame(e,t)||this.isBefore(e,t)}function bi(e,t,i){var n,r,o;if(!this.isValid())return NaN;if(!(n=$t(e,this)).isValid())return NaN;switch(r=6e4*(n.utcOffset()-this.utcOffset()),t=V(t)){case"year":o=wi(this,n)/12;break;case"month":o=wi(this,n);break;case"quarter":o=wi(this,n)/3;break;case"second":o=(this-n)/1e3;break;case"minute":o=(this-n)/6e4;break;case"hour":o=(this-n)/36e5;break;case"day":o=(this-n-r)/864e5;break;case"week":o=(this-n-r)/6048e5;break;default:o=this-n}return i?o:H(o)}function wi(e,t){if(e.date()<t.date())return-wi(t,e);var i=12*(t.year()-e.year())+(t.month()-e.month()),n=e.clone().add(i,"months");return-(i+(t-n<0?(t-n)/(n-e.clone().add(i-1,"months")):(t-n)/(e.clone().add(i+1,"months")-n)))||0}function Si(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")}function ki(e){
10if(!this.isValid())return null;var t=!0!==e,i=t?this.clone().utc():this;return i.year()<0||i.year()>9999?A(i,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(i,"Z")):A(i,t?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")}function xi(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var e,t,i,n,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",i="-MM-DD[T]HH:mm:ss.SSS",n=o+'[")]',this.format(e+t+i+n)}function _i(t){t||(t=this.isUtc()?e.defaultFormatUtc:e.defaultFormat);var i=A(this,t);return this.localeData().postformat(i)}function Ci(e,t){return this.isValid()&&(y(e)&&e.isValid()||Et(e).isValid())?Jt({to:this,from:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function Ti(e){return this.from(Et(),e)}function Ei(e,t){return this.isValid()&&(y(e)&&e.isValid()||Et(e).isValid())?Jt({from:this,to:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function Pi(e){return this.to(Et(),e)}function Oi(e){var t;return void 0===e?this._locale._abbr:(null!=(t=rt(e))&&(this._locale=t),this)}function Ni(){return this._locale}function Ai(e,t){return(e%t+t)%t}function Di(e,t,i){return e<100&&e>=0?new Date(e+400,t,i)-Lo:new Date(e,t,i).valueOf()}function Fi(e,t,i){return e<100&&e>=0?Date.UTC(e+400,t,i)-Lo:Date.UTC(e,t,i)}function Ii(t){var i,n;if(void 0===(t=V(t))||"millisecond"===t||!this.isValid())return this;switch(n=this._isUTC?Fi:Di,t){case"year":i=n(this.year(),0,1);break;case"quarter":i=n(this.year(),this.month()-this.month()%3,1);break;case"month":i=n(this.year(),this.month(),1);break;case"week":i=n(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":i=n(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":i=n(this.year(),this.month(),this.date());break;case"hour":i=this._d.valueOf(),i-=Ai(i+(this._isUTC?0:this.utcOffset()*Fo),Io);break;case"minute":i=this._d.valueOf(),i-=Ai(i,Fo);break;case"second":i=this._d.valueOf(),i-=Ai(i,Do)}return this._d.setTime(i),e.updateOffset(this,!0),this}function Li(t){var i,n;if(void 0===(t=V(t))||"millisecond"===t||!this.isValid())return this;switch(n=this._isUTC?Fi:Di,t){case"year":i=n(this.year()+1,0,1)-1;break;case"quarter":i=n(this.year(),this.month()-this.month()%3+3,1)-1;break;
vendor: 8,102 bytes, line 10
10case"month":i=n(this.year(),this.month()+1,1)-1;break;case"week":i=n(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":i=n(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":i=n(this.year(),this.month(),this.date()+1)-1;break;case"hour":i=this._d.valueOf(),i+=Io-Ai(i+(this._isUTC?0:this.utcOffset()*Fo),Io)-1;break;case"minute":i=this._d.valueOf(),i+=Fo-Ai(i,Fo)-1;break;case"second":i=this._d.valueOf(),i+=Do-Ai(i,Do)-1}return this._d.setTime(i),e.updateOffset(this,!0),this}function Mi(){return this._d.valueOf()-6e4*(this._offset||0)}function ji(){return Math.floor(this.valueOf()/1e3)}function Ri(){return new Date(this.valueOf())}function Vi(){var e=this;return[e.year(),e.month(),e.date(),e.hour(),e.minute(),e.second(),e.millisecond()]}function $i(){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 Ui(){return this.isValid()?this.toISOString():null}function Bi(){return p(this)}function zi(){return c({},f(this))}function Hi(){return f(this).overflow}function qi(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}}function Wi(){var t,i,n,r=this._eras||rt("en")._eras;for(t=0,i=r.length;t<i;++t){if("string"==typeof r[t].since)n=e(r[t].since).startOf("day"),r[t].since=n.valueOf();switch(typeof r[t].until){case"undefined":r[t].until=1/0;break;case"string":n=e(r[t].until).startOf("day").valueOf(),r[t].until=n.valueOf()}}return r}function Yi(e,t,i){var n,r,o,s,a,l=this.eras();for(e=e.toUpperCase(),n=0,r=l.length;n<r;++n)if(o=l[n].name.toUpperCase(),s=l[n].abbr.toUpperCase(),a=l[n].narrow.toUpperCase(),i)switch(t){case"N":case"NN":case"NNN":if(s===e)return l[n];break;case"NNNN":if(o===e)return l[n];break;case"NNNNN":if(a===e)return l[n]}else if([o,s,a].indexOf(e)>=0)return l[n]}function Gi(t,i){var n=t.since<=t.until?1:-1;return void 0===i?e(t.since).year():e(t.since).year()+(i-t.offset)*n}function Ki(){var e,t,i,n=this.localeData().eras();for(e=0,t=n.length;e<t;++e){if(i=this.clone().startOf("day").valueOf(),n[e].since<=i&&i<=n[e].until)return n[e].name;if(n[e].until<=i&&i<=n[e].since)return n[e].name}return""}function Zi(){var e,t,i,n=this.localeData().eras();for(e=0,t=n.length;e<t;++e){if(i=this.clone().startOf("day").valueOf(),n[e].since<=i&&i<=n[e].until)return n[e].narrow;if(n[e].until<=i&&i<=n[e].since)return n[e].narrow}return""}function Qi(){var e,t,i,n=this.localeData().eras();for(e=0,t=n.length;e<t;++e){if(i=this.clone().startOf("day").valueOf(),n[e].since<=i&&i<=n[e].until)return n[e].abbr;if(n[e].until<=i&&i<=n[e].since)return n[e].abbr}return""}function Xi(){var t,i,n,r,o=this.localeData().eras();for(t=0,i=o.length;t<i;++t)if(n=o[t].since<=o[t].until?1:-1,r=this.clone().startOf("day").valueOf(),o[t].since<=r&&r<=o[t].until||o[t].until<=r&&r<=o[t].since)return(this.year()-e(o[t].since).year())*n+o[t].offset;return this.year()}function Ji(e){return r(this,"_erasNameRegex")||an.call(this),e?this._erasNameRegex:this._erasRegex}function en(e){return r(this,"_erasAbbrRegex")||an.call(this),e?this._erasAbbrRegex:this._erasRegex}function tn(e){return r(this,"_erasNarrowRegex")||an.call(this),e?this._erasNarrowRegex:this._erasRegex}function nn(e,t){return t.erasAbbrRegex(e)}function rn(e,t){return t.erasNameRegex(e)}function on(e,t){return t.erasNarrowRegex(e)}function sn(e,t){return t._eraYearOrdinalRegex||Ar}function an(){var e,t,i=[],n=[],r=[],o=[],s=this.eras();for(e=0,t=s.length;e<t;++e)n.push(ee(s[e].name)),i.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("^("+n.join("|")+")","i"),this._erasAbbrRegex=new RegExp("^("+i.join("|")+")","i"),this._erasNarrowRegex=new RegExp("^("+r.join("|")+")","i")}function ln(e,t){P(0,[e,e.length],0,t)}function un(e){return mn.call(this,e,this.week(),this.weekday(),this.localeData()._week.dow,this.localeData()._week.doy)}function cn(e){return mn.call(this,e,this.isoWeek(),this.isoWeekday(),1,4)}function dn(){return xe(this.year(),1,4)}function hn(){return xe(this.isoWeekYear(),1,4)}function fn(){var e=this.localeData()._week;return xe(this.year(),e.dow,e.doy)}function pn(){var e=this.localeData()._week;return xe(this.weekYear(),e.dow,e.doy)}function mn(e,t,i,n,r){var o;return null==e?ke(this,n,r).year:(t>(o=xe(e,n,r))&&(t=o),gn.call(this,e,t,i,n,r))}function gn(e,t,i,n,r){var o=Se(e,t,i,n,r),s=be(o.year,0,o.dayOfYear);return this.year(s.getUTCFullYear()),this.month(s.getUTCMonth()),this.date(s.getUTCDate()),this}function vn(e){return null==e?Math.ceil((this.month()+1)/3):this.month(3*(e-1)+this.month()%3)}function yn(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 bn(e,t){t[qr]=q(1e3*("0."+e))}function wn(){return this._isUTC?"UTC":""}function Sn(){return this._isUTC?"Coordinated Universal Time":""}function kn(e){return Et(1e3*e)}function xn(){return Et.apply(null,arguments).parseZone()}function _n(e){return e}function Cn(e,t,i,n){var r=rt(),o=d().set(n,t);return r[i](o,e)}function Tn(e,t,i){if(a(e)&&(t=e,e=void 0),e=e||"",null!=t)return Cn(e,t,i,"month");var n,r=[];for(n=0;n<12;n++)r[n]=Cn(e,n,i,"month");return r}function En(e,t,i,n){"boolean"==typeof e?(a(t)&&(i=t,t=void 0),t=t||""):(i=t=e,e=!1,a(t)&&(i=t,t=void 0),t=t||"");var r,o=rt(),s=e?o._week.dow:0,l=[];if(null!=i)return Cn(t,(i+s)%7,n,"day");for(r=0;r<7;r++)l[r]=Cn(t,(r+s)%7,n,"day");return l}function Pn(e,t){return Tn(e,t,"months")}function On(e,t){return Tn(e,t,"monthsShort")}function Nn(e,t,i){return En(e,t,i,"weekdays")}function An(e,t,i){return En(e,t,i,"weekdaysShort")}function Dn(e,t,i){return En(e,t,i,"weekdaysMin")}function Fn(){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 In(e,t,i,n){var r=Jt(t,i);return e._milliseconds+=n*r._milliseconds,e._days+=n*r._days,e._months+=n*r._months,e._bubble()}function Ln(e,t){return In(this,e,t,1)}function Mn(e,t){return In(this,e,t,-1)}function jn(e){return e<0?Math.floor(e):Math.ceil(e)}function Rn(){var e,t,i,n,r,o=this._milliseconds,s=this._days,a=this._months,l=this._data;return o>=0&&s>=0&&a>=0||o<=0&&s<=0&&a<=0||(o+=864e5*jn($n(a)+s),s=0,a=0),l.milliseconds=o%1e3,e=H(o/1e3),l.seconds=e%60,t=H(e/60),l.minutes=t%60,i=H(t/60),l.hours=i%24,s+=H(i/24),a+=r=H(Vn(s)),s-=jn($n(r)),n=H(a/12),a%=12,l.days=s,l.months=a,l.years=n,this}function Vn(e){return 4800*e/146097}function $n(e){return 146097*e/4800}function Un(e){if(!this.isValid())return NaN;var t,i,n=this._milliseconds;if("month"===(e=V(e))||"quarter"===e||"year"===e)switch(t=this._days+n/864e5,i=this._months+Vn(t),e){case"month":return i;case"quarter":return i/3;case"year":return i/12}else switch(t=this._days+Math.round($n(this._months)),e){case"week":return t/7+n/6048e5;case"day":return t+n/864e5;case"hour":return 24*t+n/36e5;case"minute":return 1440*t+n/6e4;case"second":return 86400*t+n/1e3;case"millisecond":return Math.floor(864e5*t)+n;default:throw new Error("Unknown unit "+e)}}function Bn(){return this.isValid()?this._milliseconds+864e5*this._days+this._months%12*2592e6+31536e6*q(this._months/12):NaN}function zn(e){return function(){return this.as(e)}}function Hn(){return Jt(this)}function qn(e){return e=V(e),this.isValid()?this[e+"s"]():NaN}function Wn(e){return function(){return this.isValid()?this._data[e]:NaN}}function Yn(){return H(this.days()/7)}function Gn(e,t,i,n,r){return r.relativeTime(t||1,!!i,e,n)}function Kn(e,t,i,n){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<=i.ss&&["s",o]||o<i.s&&["ss",o]||s<=1&&["m"]||s<i.m&&["mm",s]||a<=1&&["h"]||a<i.h&&["hh",a]||l<=1&&["d"]||l<i.d&&["dd",l];
vendor: 5,612 bytes, line 10
10return null!=i.w&&(h=h||c<=1&&["w"]||c<i.w&&["ww",c]),(h=h||u<=1&&["M"]||u<i.M&&["MM",u]||d<=1&&["y"]||["yy",d])[2]=t,h[3]=+e>0,h[4]=n,Gn.apply(null,h)}function Zn(e){return void 0===e?ss:"function"==typeof e&&(ss=e,!0)}function Qn(e,t){return void 0!==as[e]&&(void 0===t?as[e]:(as[e]=t,"s"===e&&(as.ss=t-1),!0))}function Xn(e,t){if(!this.isValid())return this.localeData().invalidDate();var i,n,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)),n=Kn(this,!r,o,i=this.localeData()),r&&(n=i.pastFuture(+this,n)),i.postformat(n)}function Jn(e){return(e>0)-(e<0)||+e}function er(){if(!this.isValid())return this.localeData().invalidDate();var e,t,i,n,r,o,s,a,l=ls(this._milliseconds)/1e3,u=ls(this._days),c=ls(this._months),d=this.asSeconds();return d?(e=H(l/60),t=H(e/60),l%=60,e%=60,i=H(c/12),c%=12,n=l?l.toFixed(3).replace(/\.?0+$/,""):"",r=d<0?"-":"",o=Jn(this._months)!==Jn(d)?"-":"",s=Jn(this._days)!==Jn(d)?"-":"",a=Jn(this._milliseconds)!==Jn(d)?"-":"",r+"P"+(i?o+i+"Y":"")+(c?o+c+"M":"")+(u?s+u+"D":"")+(t||e||l?"T":"")+(t?a+t+"H":"")+(e?a+e+"M":"")+(l?a+n+"S":"")):"P0D"}var tr,ir;ir=Array.prototype.some?Array.prototype.some:function(e){var t,i=Object(this),n=i.length>>>0;for(t=0;t<n;t++)if(t in i&&e.call(this,i[t],t,i))return!0;return!1};var nr,rr=e.momentProperties=[],or=!1,sr={};e.suppressDeprecationWarnings=!1,e.deprecationHandler=null,nr=Object.keys?Object.keys:function(e){var t,i=[];for(t in e)r(e,t)&&i.push(t);return i};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,i,n){var r=i._locale.monthsParse(e,n,i._strict);null!=r?t[$r]=r:f(i).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(t,i){i[Vr]=2===t.length?e.parseTwoDigitYear(t):q(t)})),te("YY",(function(t,i){i[Vr]=e.parseTwoDigitYear(t)})),te("Y",(function(e,t){t[Vr]=parseInt(e,10)})),e.parseTwoDigitYear=function(e){return q(e)+(q(e)>68?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),ie(["w","ww","W","WW"],(function(e,t,i,n){t[n.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)})),ie(["dd","ddd","dddd"],(function(e,t,i,n){var r=i._locale.weekdaysParse(e,n,i._strict);null!=r?t.d=r:f(i).invalidWeekday=e})),ie(["d","e","E"],(function(e,t,i,n){t[n]=q(e)}));var to="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),io="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),no="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)}
vendor: 6,168 bytes, line 10
10)),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 i=q(e);t[Br]=24===i?0:i})),te(["a","A"],(function(e,t,i){i._isPm=i._locale.isPM(e),i._meridiem=e})),te(["h","hh"],(function(e,t,i){t[Br]=q(e),f(i).bigHour=!0})),te("hmm",(function(e,t,i){var n=e.length-2;t[Br]=q(e.substr(0,n)),t[zr]=q(e.substr(n)),f(i).bigHour=!0})),te("hmmss",(function(e,t,i){var n=e.length-4,r=e.length-2;t[Br]=q(e.substr(0,n)),t[zr]=q(e.substr(n,2)),t[Hr]=q(e.substr(r)),f(i).bigHour=!0})),te("Hmm",(function(e,t){var i=e.length-2;t[Br]=q(e.substr(0,i)),t[zr]=q(e.substr(i))})),te("Hmmss",(function(e,t){var i=e.length-4,n=e.length-2;t[Br]=q(e.substr(0,i)),t[zr]=q(e.substr(i,2)),t[Hr]=q(e.substr(n))}));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:no,weekdaysShort:io,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};e.createFromInputFallback=w("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":""))})),e.ISO_8601=function(){},e.RFC_2822=function(){};var ko=w("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:m()})),xo=w("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()?e>this?this:e:m()})),_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,i){i._useUTC=!0,i._tzm=Vt(Ir,e)}));var To=/([\+\-]|\d\d)/gi;e.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=ni(1,"add"),No=ni(-1,"subtract");e.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",e.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";var Ao=w("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",(function(e){return void 0===e?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",nn),Q("NN",nn),Q("NNN",nn),Q("NNNN",rn),Q("NNNNN",on),te(["N","NN","NNN","NNNN","NNNNN"],(function(e,t,i,n){var r=i._locale.erasParse(e,n,i._strict);r?f(i).era=r:f(i).invalidEra=e})),Q("y",Ar),Q("yy",Ar),Q("yyy",Ar),Q("yyyy",Ar),Q("yo",sn),te(["y","yy","yyy","yyyy"],Vr),te(["yo"],(function(e,t,i){var n;i._locale._eraYearOrdinalRegex&&(n=e.match(i._locale._eraYearOrdinalRegex)),i._locale.eraYearOrdinalParse?t[Vr]=i._locale.eraYearOrdinalParse(e,n):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})),ln("gggg","weekYear"),ln("ggggg","weekYear"),ln("GGGG","isoWeekYear"),ln("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),ie(["gggg","ggggg","GGGG","GGGGG"],(function(e,t,i,n){t[n.substr(0,2)]=q(e)})),ie(["gg","GG"],(function(t,i,n,r){i[r]=e.parseTwoDigitYear(t)})),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(["DD
10D","DDDD"],(function(e,t,i){i._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,bn);Vo=W("Milliseconds",!1),P("z",0,0,"zoneAbbr"),P("zz",0,0,"zoneName");var Uo=v.prototype;Uo.add=Oo,Uo.calendar=di,Uo.clone=hi,Uo.diff=bi,Uo.endOf=Li,Uo.format=_i,Uo.from=Ci,Uo.fromNow=Ti,Uo.to=Ei,Uo.toNow=Pi,Uo.get=K,Uo.invalidAt=Hi,Uo.isAfter=fi,Uo.isBefore=pi,Uo.isBetween=mi,Uo.isSame=gi,Uo.isSameOrAfter=vi,Uo.isSameOrBefore=yi,Uo.isValid=Bi,Uo.lang=Ao,Uo.locale=Oi,Uo.localeData=Ni,Uo.max=xo,Uo.min=ko,Uo.parsingFlags=zi,Uo.set=Z,Uo.startOf=Ii,Uo.subtract=No,Uo.toArray=Vi,Uo.toObject=$i,Uo.toDate=Ri,Uo.toISOString=ki,Uo.inspect=xi,"undefined"!=typeof Symbol&&null!=Symbol.for&&(Uo[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"}),Uo.toJSON=Ui,Uo.toString=Si,Uo.unix=ji,Uo.valueOf=Mi,Uo.creationData=qi,Uo.eraName=Ki,Uo.eraNarrow=Zi,Uo.eraAbbr=Qi,Uo.eraYear=Xi,Uo.year=Jr,Uo.isLeapYear=ve,Uo.weekYear=un,Uo.isoWeekYear=cn,Uo.quarter=Uo.quarters=vn,Uo.month=de,Uo.daysInMonth=he,Uo.week=Uo.weeks=Ee,Uo.isoWeek=Uo.isoWeeks=Pe,Uo.weeksInYear=fn,Uo.weeksInWeekYear=pn,Uo.isoWeeksInYear=dn,Uo.isoWeeksInISOWeekYear=hn,Uo.date=Mo,Uo.day=Uo.days=je,Uo.weekday=Re,Uo.isoWeekday=Ve,Uo.dayOfYear=yn,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=wn,Uo.zoneName=Sn,Uo.dates=w("dates accessor is deprecated. Use date instead.",Mo),Uo.months=w("months accessor is deprecated. Use month instead",de),Uo.years=w("years accessor is deprecated. Use year instead",Jr),Uo.zone=w("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",zt),Uo.isDSTShifted=w("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=_n,Bo.postformat=_n,Bo.relativeTime=M,Bo.pastFuture=j,Bo.set=x,Bo.eras=Wi,Bo.erasParse=Yi,Bo.erasConvertYear=Gi,Bo.erasAbbrRegex=en,Bo.erasNameRegex=Ji,Bo.erasNarrowRegex=tn,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:1/0,offset:1,name:"Anno Domini",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-1/0,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")}}),e.lang=w("moment.lang is deprecated. Use moment.locale instead.",tt),e.langData=w("moment.langData is deprecated. Use moment.localeData instead.",rt);var zo=Math.abs,Ho=zn("ms"),qo=zn("s"),Wo=zn("m"),Yo=zn("h"),Go=zn("d"),Ko=zn("w"),Zo=zn("M"),Qo=zn("Q"),Xo=zn("y"),Jo=Wn("milliseconds"),es=Wn("seconds"),ts=Wn("minutes"),is=Wn("hours"),ns=Wn("days"),rs=Wn("months"),os=Wn("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=Fn,us.add=Ln,us.subtract=Mn,us.as=Un,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=Bn,us._bubble=Rn,us.clone=Hn,us.get=qn,us.milliseconds=Jo,us.seconds=es,us.minutes=ts,us.hours=is,us.days=ns,us.weeks=Yn,us.months=rs,us.years=os,us.humanize=Xn,us.toISOString=er,us.toString=er,us.toJSON=er,us.locale=Oi,us.localeData=Ni,us.toIsoString=w("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,i){i._d=new Date(1e3*parseFloat(e))})),te("x",(function(e,t,i){i._d=new Date(q(e))})),e.version="2.29.4",t(Et),e.fn=Uo,e.min=Ot,e.max=Nt,e.now=_o,e.utc=d,e.unix=kn,e.months=Pn,e.isDate=l,e.locale=tt,e.invali
10d=m,e.duration=Jt,e.isMoment=y,e.weekdays=Nn,e.parseZone=xn,e.localeData=rt,e.isDuration=Lt,e.monthsShort=On,e.weekdaysMin=Dn,e.defineLocale=it,e.updateLocale=nt,e.locales=ot,e.weekdaysShort=An,e.normalizeUnits=V,e.relativeTimeRounding=Zn,e.relativeTimeThreshold=Qn,e.calendarFormat=ci,e.prototype=Uo,e.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"},e})),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 e(e){return void 0===e}function t(e){return null===e}function i(e){return e===Object(e)}function n(e){return Array.isArray(e)}function r(e){return e instanceof Date}function o(e){return e&&"number"==typeof e.size&&"string"==typeof e.type&&"function"==typeof e.slice}function s(e){return o(e)&&("object"==typeof e.lastModifiedDate||"number"==typeof e.lastModified)&&"string"==typeof e.name}function a(e){return e instanceof FormData}function l(u,c,d,h){if(a(c)&&(h=d,d=c,c=null),(c=c||{}).indices=!e(c.indices)&&c.indices,c.nulls=!!e(c.nulls)||c.nulls,d=d||new FormData,e(u))return d;if(t(u))c.nulls&&d.append(h,"");else if(n(u))if(u.length)u.forEach((function(e,t){var i=h+"["+(c.indices?t:"")+"]";l(e,c,d,i)}));else{var f=h+"[]";d.append(f,"")}else r(u)?d.append(h,u.toISOString()):!i(u)||s(u)||o(u)?d.append(h,u):Object.keys(u).forEach((function(e){var t=u[e];if(n(t))for(;e.length>2&&e.lastIndexOf("[]")===e.length-2;)e=e.substring(0,e.length-2);l(t,c,d,h?h+"["+e+"]":e)}));return d}function u(){return V.urlPrefix+V.visitsUrl}function c(){return V.urlPrefix+V.eventsUrl}function d(e){return 0===Object.keys(e).length}function h(){return(V.useBeacon||V.trackNow)&&d(V.headers)&&K&&void 0!==window.navigator.sendBeacon&&!V.withCredentials}function f(e,t,i){R.set(e,t,i,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 i=e.matches||e.matchesSelector||e.mozMatchesSelector||e.msMatchesSelector||e.oMatchesSelector||e.webkitMatchesSelector;return i?i.apply(e,[t]):(g("Unable to match"),!1)}function w(e,t,i){document.addEventListener(e,(function(e){b(e.target,t)&&i(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&&f("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,i){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:i,headers:V.headers,xhrFields:{withCredentials:V.withCredentials}});else{var n=new XMLHttpRequest;for(var r in n.open("POST",e,!0),n.withCredentials=V.withCredentials,n.setRequestHeader("Content-Type","application/json"),V.headers)V.headers.hasOwnProperty(r)&&n.setRequestHeader(r,V.headers[r]);n.onload=function(){200===n.status&&i()},T(n),n.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(e){y((function(){E(c(),P(e),(function(){for(var t=0;t<Z.length;t++)if(Z[t].id==e.id){Z.splice(t,1);break}x()}))}))}function N(e){y((function(){var t=P(e),i=C(),n=_();i&&n&&(t[i]=n),t.events_json=JSON.stringify(t.events),delete t.events,window.navigator.sendBeacon(c(),j(t))}))}function A(){return V.page||window.location.pathname}function D(e){return e&&e.length>0?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||f("ahoy_visit",U=k(),q),p("ahoy_visit")){g("Visit started"),B||f("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 document.referrer.length>0&&(e.referrer=document.referrer),V.visitParams)V.visitParams.hasOwnProperty(t)&&(e[t]=V.visitParams[t]);g(e),E(u(),e,(function(){m("ahoy_track"),v()}))}else g("Cookies disabled"),v()}var j=l,R={set:function(e,t,i,n){var r="",o="";if(i){var s=new Date
11;s.setTime(s.getTime()+60*i*1e3),r="; expires="+s.toGMTString()}n&&(o="; domain="+n),document.cookie=e+"="+escape(t)+r+o+"; path=/"},get:function(e){var t,i,n=e+"=",r=document.cookie.split(";");for(t=0;t<r.length;t++){for(i=r[t];" "===i.charAt(0);)i=i.substring(1,i.length);if(0===i.indexOf(n))return unescape(i.substring(n.length,i.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&&void 0!==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"):f("ahoy_debug","t",525600),!0},$.track=function(e,t){var i={name:e,properties:t||{},time:(new Date).getTime()/1e3,id:k(),js:!0};return y((function(){V.cookies&&!$.getVisitId()&&M(),y((function(){g(i),i.visit_token=$.getVisitId(),i.visitor_token=$.getVisitorId(),h()?N(i):(Z.push(i),x(),setTimeout((function(){O(i)}),1e3))}))})),!0},$.trackView=function(e){var t={url:window.location.href,title:document.title,page:A()};if(e)for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i]);$.track("$view",t)},$.trackClicks=function(){w("click","a, button, input[type=submit]",(function(e){var t=e.target,i=I(e);i.text="input"==i.tag?t.value:(t.textContent||t.innerText||t.innerHTML).replace(/[\s\r\n]+/g," ").trim(),i.href=t.href,$.track("$click",i)}))},$.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(e){}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(e){"use strict";function t(e){return t="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},t(e)}function i(){return i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var i=arguments[t];for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(e[n]=i[n])}return e},i.apply(this,arguments)}function n(e,t){return s(e)||l(e,t)||c()}function r(e){return o(e)||a(e)||u()}function o(e){if(Array.isArray(e)){for(var t=0,i=new Array(e.length);t<e.length;t++)i[t]=e[t];return i}}function s(e){if(Array.isArray(e))return e}function a(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}function l(e,t){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e)){var i=[],n=!0,r=!1,o=void 0;try{for(var s,a=e[Symbol.iterator]();!(n=(s=a.next()).done)&&(i.push(s.value),!t||i.length!==t);n=!0);}catch(e){r=!0,o=e}finally{try{n||null==a.return||a.return()}finally{if(r)throw o}}return i}}function u(){throw new TypeError("Invalid attempt to spread non-iterable instance")}
11function c(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}function d(e,t){return e.parsleyAdaptedCallback||(e.parsleyAdaptedCallback=function(){var i=Array.prototype.slice.call(arguments,0);i.unshift(this),e.apply(t||U,i)}),e.parsleyAdaptedCallback}function h(e){return 0===e.lastIndexOf(z,0)?e.substr(z.length):e}function f(){var t=this,n=window||global;i(this,{isNativeEvent:function(e){return e.originalEvent&&!1!==e.originalEvent.isTrusted},fakeInputEvent:function(i){t.isNativeEvent(i)&&e(i.target).trigger("input")},misbehaves:function(i){t.isNativeEvent(i)&&(t.behavesOk(i),e(document).on("change.inputevent",i.data.selector,t.fakeInputEvent),t.fakeInputEvent(i))},behavesOk:function(i){t.isNativeEvent(i)&&e(document).off("input.inputevent",i.data.selector,t.behavesOk).off("change.inputevent",i.data.selector,t.misbehaves)},install:function(){if(!n.inputEventPatched){n.inputEventPatched="0.0.3";for(var i=0,r=["select",'input[type="checkbox"]','input[type="radio"]','input[type="file"]'];i<r.length;i++){var o=r[i];e(document).on("input.inputevent",o,{selector:o},t.behavesOk).on("change.inputevent",o,{selector:o},t.misbehaves)}}},uninstall:function(){delete n.inputEventPatched,e(document).off(".inputevent")}})}var p=1,m={},g={attr:function(e,t,i){var n,r,o,s=new RegExp("^"+t,"i");if(void 0===i)i={};else for(n in i)i.hasOwnProperty(n)&&delete i[n];if(!e)return i;for(n=(o=e.attributes).length;n--;)(r=o[n])&&r.specified&&s.test(r.name)&&(i[this.camelize(r.name.slice(t.length))]=this.deserializeValue(r.value));return i},checkAttr:function(e,t,i){return e.hasAttribute(t+i)},setAttr:function(e,t,i,n){e.setAttribute(this.dasherize(t+i),String(n))},getType:function(e){return e.getAttribute("type")||"text"},generateID:function(){return""+p++},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(t){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){m[e]||(m[e]=!0,this.warn.apply(this,arguments))},_resetWarnings:function(){m={}},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 i=n(t.map((function(e){return parseInt(e,10)})),4),r=(i[0],i[1]),o=i[2],s=i[3],a=new Date(r,o-1,s);return a.getFullYear()!==r||a.getMonth()+1!==o||a.getDate()!==s?null:a},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 g.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 i=this.parse[e||"string"];if(!i)throw'Unknown requirement specification: "'+e+'"';var n=i(t);if(null===n)throw"Requirement is not a ".concat(e,': "').concat(t,'"');return n},namespaceEvents:function(t,i){return(t=this.trimString(t||"").split(/\s+/))[0]?e.map(t,(function(e){return"".concat(e,".").concat(i)})).join(" "):""},difference:function(t,i){var n=[];return e.each(t,(function(e,t){-1==i.indexOf(t)&&n.push(t)})),n},all:function(t){return e.when.apply(e,r(t).concat([42,42]))},objectCreate:Object.create||function(){var e=function(){};return function(i){if(arguments.length>1)throw Error("Second argument not supported");if("object"!=t(i))throw TypeError("Argument must be an object");e.prototype=i;var n=new e;return e.prototype=null,n}}(),_SubmitSelector:'input[type="submit"], button:submit'},v={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,focu
11s:"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>"},y=function(){this.__id__=g.generateID()};y.prototype={asyncSupport:!0,_pipeAccordingToValidationResult:function(){var t=this,i=function(){var i=e.Deferred();return!0!==t.validationResult&&i.reject(),i.resolve().promise()};return[i,i]},actualizeOptions:function(){return g.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=g.objectCreate(this.parent.options),this.options=g.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(t,i){e.listenTo(this,t.toLowerCase(),i)},off:function(e,t){var i=this._listeners&&this._listeners[e];if(i)if(t)for(var n=i.length;n--;)i[n]===t&&i.splice(n,1);else delete this._listeners[e];return this},unsubscribe:function(t){e.unsubscribeTo(this,t.toLowerCase())},trigger:function(e,t,i){t=t||this;var n,r=this._listeners&&this._listeners[e];if(r)for(var o=r.length;o--;)if(!1===(n=r[o].call(t,t,i)))return n;return!this.parent||this.parent.trigger(e,t,i)},asyncIsValid:function(e,t){return g.warnOnce("asyncIsValid is deprecated; please use whenValid instead"),this.whenValid({group:e,force:t})},_findRelated:function(){return this.options.multiple?e(this.parent.element.querySelectorAll("[".concat(this.options.namespace,'multiple="').concat(this.options.multiple,'"]'))):this.$element}};var b=function(e,t){var i=e.match(/^\s*\[(.*)\]\s*$/);if(!i)throw'Requirement is not an array: "'+e+'"';var n=i[1].split(",").map(g.trimString);if(n.length!==t)throw"Requirement has "+n.length+" values when "+t+" are needed";return n},w=function(e,t,i){var n=null,r={};for(var o in e)if(o){var s=i(o);"string"==typeof s&&(s=g.parseRequirement(e[o],s)),r[o]=s}else n=g.parseRequirement(e[o],t);return[n,r]},S=function(t){e.extend(!0,this,t)};S.prototype={validate:function(e,t){if(this.fn)return arguments.length>3&&(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 i=arguments[arguments.length-1];if(this.validateDate&&i._isDateInput())return arguments[0]=g.parse.date(arguments[0]),null!==arguments[0]&&this.validateDate.apply(this,arguments);if(this.validateNumber)return!e||!isNaN(e)&&(arguments[0]=parseFloat(arguments[0]),this.validateNumber.apply(this,arguments));if(this.validateString)return this.validateString.apply(this,arguments);throw"Validator `"+this.name+"` only handles multiple values"},parseRequirements:function(t,i){if("string"!=typeof t)return Array.isArray(t)?t:[t];var n=this.requirementType;if(Array.isArray(n)){for(var r=b(t,n.length),o=0;o<r.length;o++)r[o]=g.parseRequirement(n[o],r[o]);return r}return e.isPlainObject(n)?w(n,t,i):[g.parseRequirement(n,t)]},requirementType:"string",priority:2};var k=function(e,t){this.__class__="ValidatorRegistry",this.locale="en",this.init(e||{},t||{})},x={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!==g.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*)?$")};x.range=x.number;var _=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},C=function(e,t){return t.map(g.parse[e])},T=function(e,t){return function(i){for(var n=arguments.length,o=new Array(n>1?n-1:0),s=1;s<n;s++)o[s-1]=arguments[s];
11return o.pop(),t.apply(void 0,[i].concat(r(C(e,o))))}},E=function(e){return{validateDate:T("date",e),validateNumber:T("number",e),requirementType:e.length<=2?"string":["string","string"],priority:30}};k.prototype={init:function(e,t){for(var n in this.catalog=t,this.validators=i({},this.validators),e)this.addValidator(n,e[n].fn,e[n].priority);window.Parsley.trigger("parsley:validator:init")},setLocale:function(e){if(void 0===this.catalog[e])throw new Error(e+" is not available in the catalog");return this.locale=e,this},addCatalog:function(e,i,n){return"object"===t(i)&&(this.catalog[e]=i),!0===n?this.setLocale(e):this},addMessage:function(e,t,i){return void 0===this.catalog[e]&&(this.catalog[e]={}),this.catalog[e][t]=i,this},addMessages:function(e,t){for(var i in t)this.addMessage(e,i,t[i]);return this},addValidator:function(e){if(this.validators[e])g.warn('Validator "'+e+'" is already defined.');else if(v.hasOwnProperty(e))return void g.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):(g.warn('Validator "'+e+'" is not already defined.'),this.addValidator.apply(this,arguments))},removeValidator:function(e){return this.validators[e]||g.warn('Validator "'+e+'" is not defined.'),delete this.validators[e],this},_setValidator:function(e,i,n){for(var r in"object"!==t(i)&&(i={fn:i,priority:n}),i.validate||(i=new S(i)),this.validators[e]=i,i.messages||{})this.addMessage(r,e,i.messages[r]);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,i){if("object"===t(i)){for(var n in i)e=this.formatMessage(e,i[n]);return e}return"string"==typeof e?e.replace(/%s/i,i):""},validators:{notblank:{validateString:function(e){return/\S/.test(e)},priority:2},required:{validateMultiple:function(e){return e.length>0},validateString:function(e){return/\S/.test(e)},priority:512},type:{validateString:function(e,t){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n=i.step,r=void 0===n?"any":n,o=i.base,s=void 0===o?0:o,a=x[t];if(!a)throw new Error("validator type `"+t+"` is not supported");if(!e)return!0;if(!a.test(e))return!1;if("number"===t&&!/^any$/i.test(r||"")){var l=Number(e),u=Math.max(_(r),_(s));if(_(l)>u)return!1;var c=function(e){return Math.round(e*Math.pow(10,u))};if((c(l)-c(s))%c(r)!=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,i){return!e||e.length>=t&&e.length<=i},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,i){return e.length>=t&&e.length<=i},requirementType:["integer","integer"],priority:30},min:E((function(e,t){return e>=t})),max:E((function(e,t){return e<=t})),range:E((function(e,t,i){return e>=t&&e<=i})),equalto:{validateString:function(t,i){if(!t)return!0;var n=e(i);return n.length?t===n.val():t===i},priority:256},euvatin:{validateString:function(e){return!e||/^[A-Z][A-Z][A-Za-z0-9 -]{2,}$/.test(e)},priority:30}}};var P={},O=function e(t,i,n){for(var r=[],o=[],s=0;s<t.length;s++){for(var a=!1,l=0;l<i.length;l++)if(t[s].assert.name===i[l].assert.name){a=!0;break}a?o.push(t[s]):r.push(t[s])}return{kept:o,added:r,removed:n?[]:e(i,t,!0).added}};P.Form={_actualizeTriggers:function(){var e=this;this.$element.on("submit.Parsley",(function(t){e.onSubmitValidate(t)})),this.$element.on("click.Parsley",g._SubmitSelector,(function(t){e.onSubmitButton(t)})),!1!==this.options.uiEnabled&&this.element.setAttribute("novalidate","")},focus:function(){if(this._focusedField=null,!0===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&&t.validationResult.length>0&&void 0===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")}},P.Field={_reflowUI:function(){if(this._buildUI(),this._ui){var e=O(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){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=t.message,n=t.assert,r=t.updateClass,o=void 0===r||r;this._buildUI(),this._addError(e,{message:i,assert:n}),o&&this._errorClass()},updateError:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=t.message,n=t.assert,r=t.updateClass,o=void 0===r||r;this._buildUI(),this._updateError(e,{message:i,assert:n}),o&&this._errorClass()},removeError:function(e){var t=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).updateClass,i=void 0===t||t;this._buildUI(),this._removeError(e),i&&this._manageStatusClass()},_manageStatusClass:function(){this.hasConstraints()&&this.needsValidation()&&
vendor: 7,167 bytes, line 11
11!0===this.validationResult?this._successClass():this.validationResult.length>0?this._errorClass():this._resetClass()},_manageErrorsMessages:function(t){if(void 0===this.options.errorsMessagesDisabled){if(void 0!==this.options.errorMessage)return t.added.length||t.kept.length?(this._insertErrorWrapper(),0===this._ui.$errorsWrapper.find(".parsley-custom-error-message").length&&this._ui.$errorsWrapper.append(e(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 i=0;i<t.removed.length;i++)this._removeError(t.removed[i].assert.name);for(i=0;i<t.added.length;i++)this._addError(t.added[i].assert.name,{message:t.added[i].errorMessage,assert:t.added[i].assert});for(i=0;i<t.kept.length;i++)this._updateError(t.kept[i].assert.name,{message:t.kept[i].errorMessage,assert:t.kept[i].assert})}},_addError:function(t,i){var n=i.message,r=i.assert;this._insertErrorWrapper(),this._ui.$errorClassHandler.attr("aria-describedby",this._ui.errorsWrapperId),this._ui.$errorsWrapper.addClass("filled").attr("aria-hidden","false").append(e(this.options.errorTemplate).addClass("parsley-"+t).html(n||this._getErrorMessage(r)))},_updateError:function(e,t){var i=t.message,n=t.assert;this._ui.$errorsWrapper.addClass("filled").find(".parsley-"+e).html(i||this._getErrorMessage(n))},_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 void 0!==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 t={};this.element.setAttribute(this.options.namespace+"id",this.__id__),t.$errorClassHandler=this._manageClassHandler(),t.errorsWrapperId="parsley-id-"+(this.options.multiple?"multiple-"+this.options.multiple:this.__id__),t.$errorsWrapper=e(this.options.errorsWrapper).attr("id",t.errorsWrapperId),t.lastValidationResult=[],t.validationInformationVisible=!1,this._ui=t}},_manageClassHandler:function(){if("string"==typeof this.options.classHandler&&e(this.options.classHandler).length)return e(this.options.classHandler);var i=this.options.classHandler;if("string"==typeof this.options.classHandler&&"function"==typeof window[this.options.classHandler]&&(i=window[this.options.classHandler]),"function"==typeof i){var n=i.call(this,this);if(void 0!==n&&n.length)return n}else{if("object"===t(i)&&i instanceof jQuery&&i.length)return i;i&&g.warn("The class handler `"+i+"` does not exist in DOM nor as a global JS function")}return this._inputHolder()},_inputHolder:function(){return this.options.multiple&&"SELECT"!==this.element.nodeName?this.$element.parent():this.$element},_insertErrorWrapper:function(){var i=this.options.errorsContainer;if(0!==this._ui.$errorsWrapper.parent().length)return this._ui.$errorsWrapper.parent();if("string"==typeof i){if(e(i).length)return e(i).append(this._ui.$errorsWrapper);"function"==typeof window[i]?i=window[i]:g.warn("The errors container `"+i+"` does not exist in DOM nor as a global JS function")}return"function"==typeof i&&(i=i.call(this,this)),"object"===t(i)&&i.length?i.append(this._ui.$errorsWrapper):this._inputHolder().after(this._ui.$errorsWrapper)},_actualizeTriggers:function(){var e,t=this,i=this._findRelated();i.off(".Parsley"),this._failedOnce?i.on(g.namespaceEvents(this.options.triggerAfterFailure,"Parsley"),(function(){t._validateIfNeeded()})):(e=g.namespaceEvents(this.options.trigger,"Parsley"))&&i.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(),void 0!==this._ui&&(this._ui.$errorsWrapper.removeClass("filled").children().remove(),this._resetClass(),this._ui.lastValidationResult=[],this._ui.validationInformationVisible=!1)},_destroyUI:function(){this._resetUI(),void 0!==this._ui&&this._ui.$errorsWrapper.remove(),delete this._ui},_successClass:function(){this._ui.validationInformationVisible=!0,this._ui.$errorClassHandler.removeClass(this.options.errorClass).addClass(this.options.successClass)},_errorClass:function(){this._ui.validationInformationVisible=!0,this._ui.$errorClassHandler.removeClass(this.options.successClass).addClass(this.options.errorClass)},_resetClass:function(){this._ui.$errorClassHandler.removeClass(this.options.successClass).removeClass(this.options.errorClass)}};var N=function(t,i,n){this.__class__="Form",this.element=t,this.$element=e(t),this.domOptions=i,this.options=n,this.parent=window.Parsley,this.fields=[],this.validationResult=null},A={pending:null,resolved:!0,rejected:!1};N.prototype={onSubmitValidate:function(e){var t=this;if(!0!==e.parsley){var i=this._submitSource||this.$element.find(g._SubmitSelector)[0];if(this._submitSource=null,this.$element.find(".parsley-synthetic-submit-button").prop("disabled",!0),!i||null===i.getAttribute("formnovalidate")){window.Parsley._remoteCache={};var n=this.whenValidate({event:e});"resolved"===n.state()&&!1!==this._trigger("submit")||(e.stopImmediatePropagation(),e.preventDefault(),"pending"===n.state()&&n.done((function(){t._submit(i)})))}}},onSubmitButton:function(e){this._submitSource=e.currentTarget},_submit:function(t){if(!1!==this._trigger("submit")){if(t){var n=this.$element.find(".parsley-synthetic-submit-button").prop("disabled",!1);0===n.length&&(n=e('<input class="parsley-synthetic-submit-button" type="hidden">').appendTo(this.$element)),n.attr({name:t.getAttribute("name"),value:t.getAttribute("value")})}this.$element.trigger(i(e.Event("submit"),{parsley:!0}))}},validate:function(t){if(arguments.length>=1&&!e.isPlainObject(t)){g.warnOnce("Calling validate on a parsley form without passing arguments as an object is deprecated.");var i=Array.prototype.slice.call(arguments);t={group:i[0],force:i[1],event:i[2]}}return A[this.whenValidate(t).state()]},whenValidate:function(){var t,n=this,o=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},s=o.group,a=o.force,l=o.event;this.submitEvent=l,l&&(this.submitEvent=i({},l,{preventDefault:function(){g.warnOnce("Using `this.submitEvent.preventDefault()` is deprecated; instead, call `this.validationResult = false`"),n.validationResult=!1}})),this.validationResult=!0,this._trigger("validate"),this._refreshFields();var u=this._withoutReactualizingFormOptions((function(){return e.map(n.fields,
11(function(e){return e.whenValidate({force:a,group:s})}))}));return(t=g.all(u).done((function(){n._trigger("success")})).fail((function(){n.validationResult=!1,n.focus(),n._trigger("error")})).always((function(){n._trigger("validated")}))).pipe.apply(t,r(this._pipeAccordingToValidationResult()))},isValid:function(t){if(arguments.length>=1&&!e.isPlainObject(t)){g.warnOnce("Calling isValid on a parsley form without passing arguments as an object is deprecated.");var i=Array.prototype.slice.call(arguments);t={group:i[0],force:i[1]}}return A[this.whenValid(t).state()]},whenValid:function(){var t=this,i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=i.group,r=i.force;this._refreshFields();var o=this._withoutReactualizingFormOptions((function(){return e.map(t.fields,(function(e){return e.whenValid({group:n,force:r})}))}));return g.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 t=this,i=this.fields;return this.fields=[],this.fieldsMappedById={},this._withoutReactualizingFormOptions((function(){t.$element.find(t.options.inputs).not(t.options.excluded).not("[".concat(t.options.namespace,"excluded=true]")).each((function(e,i){var n=new window.Parsley.Factory(i,{},t);if("Field"===n.__class__||"FieldMultiple"===n.__class__){var r=n.__class__+"-"+n.__id__;void 0===t.fieldsMappedById[r]&&(t.fieldsMappedById[r]=n,t.fields.push(n))}})),e.each(g.difference(i,t.fields),(function(e,t){t.reset()}))})),this},_withoutReactualizingFormOptions:function(e){var t=this.actualizeOptions;this.actualizeOptions=function(){return this};var i=e();return this.actualizeOptions=t,i},_trigger:function(e){return this.trigger("form:"+e)}};var D=function(e,t,n,r,o){var s=window.Parsley._validatorRegistry.validators[t],a=new S(s);i(this,{validator:a,name:t,requirements:n,priority:r=r||e.options[t+"Priority"]||a.priority,isDomConstraint:o=!0===o}),this._parseRequirements(e.options)},F=function(e){return e[0].toUpperCase()+e.slice(1)};D.prototype={validate:function(e,t){var i;return(i=this.validator).validate.apply(i,[e].concat(r(this.requirementList),[t]))},_parseRequirements:function(e){var t=this;this.requirementList=this.validator.parseRequirements(this.requirements,(function(i){return e[t.name+F(i)]}))}};var I=function(t,i,n,r){this.__class__="Field",this.element=t,this.$element=e(t),void 0!==r&&(this.parent=r),this.options=n,this.domOptions=i,this.constraints=[],this.constraintsByName={},this.validationResult=!0,this._bindConstraints()},L={pending:null,resolved:!0,rejected:!1};I.prototype={validate:function(t){arguments.length>=1&&!e.isPlainObject(t)&&(g.warnOnce("Calling validate on a parsley field without passing arguments as an object is deprecated."),t={options:t});var i=this.whenValidate(t);if(!i)return!0;switch(i.state()){case"pending":return null;case"resolved":return!0;case"rejected":return this.validationResult}},whenValidate:function(){var e,t=this,i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=i.force,o=i.group;if(this.refresh(),!o||this._isInGroup(o))return this.value=this.getValue(),this._trigger("validate"),(e=this.whenValid({force:n,value:this.value,_refreshed:!0}).always((function(){t._reflowUI()})).done((function(){t._trigger("success")})).fail((function(){t._trigger("error")})).always((function(){t._trigger("validated")}))).pipe.apply(e,r(this._pipeAccordingToValidationResult()))},hasConstraints:function(){return 0!==this.constraints.length},needsValidation:function(e){return void 0===e&&(e=this.getValue()),!(!e.length&&!this._isRequired()&&void 0===this.options.validateIfEmpty)},_isInGroup:function(t){return Array.isArray(this.options.group)?-1!==e.inArray(t,this.options.group):this.options.group===t},isValid:function(t){if(arguments.length>=1&&!e.isPlainObject(t)){g.warnOnce("Calling isValid on a parsley field without passing arguments as an object is deprecated.");var i=Array.prototype.slice.call(arguments);t={force:i[0],value:i[1]}}var n=this.whenValid(t);return!n||L[n.state()]},whenValid:function(){var t=this,i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=i.force,r=void 0!==n&&n,o=i.value,s=i.group;if(i._refreshed||this.refresh(),!s||this._isInGroup(s)){if(this.validationResult=!0,!this.hasConstraints())return e.when();if(null==o&&(o=this.getValue()),!this.needsValidation(o)&&!0!==r)return e.when();var a=this._getGroupedConstraints(),l=[];return e.each(a,(function(i,n){var r=g.all(e.map(n,(function(e){return t._validateConstraint(o,e)})));if(l.push(r),"rejected"===r.state())return!1})),g.all(l)}},_validateConstraint:function(t,i){var n=this,r=i.validate(t,this);return!1===r&&(r=e.Deferred().reject()),g.all([r]).fail((function(e){n.validationResult instanceof Array||(n.validationResult=[]),n.validationResult.push({assert:i,errorMessage:"string"==typeof e&&e})}))},getValue:function(){var e;return null==(e="function"==typeof this.options.value?this.options.value(this):void 0!==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()}
vendor: 7,960 bytes, lines 11-12
11,refreshConstraints:function(){return g.warnOnce("Parsley's refreshConstraints is deprecated. Please use refresh"),this.refresh()},addConstraint:function(e,t,i,n){if(window.Parsley._validatorRegistry.validators[e]){var r=new D(this,e,t,i,n);"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,i){return this.removeConstraint(e).addConstraint(e,t,i)},
12_bindConstraints:function(){for(var e=[],t={},i=0;i<this.constraints.length;i++)!1===this.constraints[i].isDomConstraint&&(e.push(this.constraints[i]),t[this.constraints[i].name]=this.constraints[i]);for(var n in this.constraints=e,this.constraintsByName=t,this.options)this.addConstraint(n,this.options[n],void 0,!0);return this._bindHtml5Constraints()},_bindHtml5Constraints:function(){null!==this.element.getAttribute("required")&&this.addConstraint("required",!0,void 0,!0),null!==this.element.getAttribute("pattern")&&this.addConstraint("pattern",this.element.getAttribute("pattern"),void 0,!0);var e=this.element.getAttribute("min"),t=this.element.getAttribute("max");null!==e&&null!==t?this.addConstraint("range",[e,t],void 0,!0):null!==e?this.addConstraint("min",e,void 0,!0):null!==t&&this.addConstraint("max",t,void 0,!0),null!==this.element.getAttribute("minlength")&&null!==this.element.getAttribute("maxlength")?this.addConstraint("length",[this.element.getAttribute("minlength"),this.element.getAttribute("maxlength")],void 0,!0):null!==this.element.getAttribute("minlength")?this.addConstraint("minlength",this.element.getAttribute("minlength"),void 0,!0):null!==this.element.getAttribute("maxlength")&&this.addConstraint("maxlength",this.element.getAttribute("maxlength"),void 0,!0);var i=g.getType(this.element);return"number"===i?this.addConstraint("type",["number",{step:this.element.getAttribute("step")||"1",base:e||this.element.getAttribute("value")}],void 0,!0):/^(email|url|range|date)$/i.test(i)?this.addConstraint("type",i,void 0,!0):this},_isRequired:function(){return void 0!==this.constraintsByName.required&&!1!==this.constraintsByName.required.requirements},_trigger:function(e){return this.trigger("field:"+e)},_handleWhitespace:function(e){return!0===this.options.trimValue&&g.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=g.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={},i=0;i<this.constraints.length;i++){var n=this.constraints[i].priority;t[n]||e.push(t[n]=[]),t[n].push(this.constraints[i])}return e.sort((function(e,t){return t[0].priority-e[0].priority})),e}};var M=function(){this.__class__="FieldMultiple"};M.prototype={addElement:function(e){return this.$elements.push(e),this},_refreshConstraints:function(){var t;if(this.constraints=[],"SELECT"===this.element.nodeName)return this.actualizeOptions()._bindConstraints(),this;for(var i=0;i<this.$elements.length;i++)if(e("html").has(this.$elements[i]).length){t=this.$elements[i].data("FieldMultiple")._refreshConstraints().constraints;for(var n=0;n<t.length;n++)this.addConstraint(t[n].name,t[n].requirements,t[n].priority,t[n].isDomConstraint)}else this.$elements.splice(i,1);return this},getValue:function(){if("function"==typeof this.options.value)return this.options.value(this);if(void 0!==this.options.value)return this.options.value;if("INPUT"===this.element.nodeName){var t=g.getType(this.element);if("radio"===t)return this._findRelated().filter(":checked").val()||"";if("checkbox"===t){var i=[];return this._findRelated().filter(":checked").each((function(){i.push(e(this).val())})),i}}return"SELECT"===this.element.nodeName&&null===this.$element.val()?[]:this.$element.val()},_init:function(){return this.$elements=[this.$element],this}};var j=function(n,r,o){this.element=n,this.$element=e(n);var s=this.$element.data("Parsley");if(s)return void 0!==o&&s.parent===window.Parsley&&(s.parent=o,s._resetOptions(s.options)),"object"===t(r)&&i(s.options,r),s;if(!this.$element.length)throw new Error("You must bind Parsley on an existing element.");if(void 0!==o&&"Form"!==o.__class__)throw new Error("Parent instance must be a Form instance");return this.parent=o||window.Parsley,this.init(r)};j.prototype={init:function(e){return this.__class__="Parsley",this.__version__="2.9.2",this.__id__=g.generateID(),this._resetOptions(e),"FORM"===this.element.nodeName||g.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=g.getType(this.element);return"radio"===e||"checkbox"===e||"SELECT"===this.element.nodeName&&null!==this.element.getAttribute("multiple")},handleMultiple:function(){var t,i,n=this;if(this.options.multiple=this.options.multiple||(t=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 g.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,""),t&&e('input[name="'+t+'"]').each((function(e,t){var i=g.getType(t);"radio"!==i&&"checkbox"!==i||t.setAttribute(n.options.namespace+"multiple",n.options.multiple)}));for(var r=this._findRelated(),o=0;o<r.length;o++)if(void 0!==(i=e(r.get(o)).data("Parsley"))){this.$element.data("FieldMultiple")||i.addElement(this.$element);break}return this.bind("parsleyField",!0),i||this.bind("parsleyFieldMultiple")},bind:function(t,i){var n;switch(t){case"parsleyForm":n=e.extend(new N(this.element,this.domOptions,this.options),new y,window.ParsleyExtend)._bindFields();break;case"parsleyField":n=e.extend(new I(this.element,this.domOptions,this.options,this.parent),new y,window.ParsleyExtend);break;case"parsleyFieldMultiple":n=e.extend(new I(this.element,this.domOptions,this.options,this.parent),new M,new y,window.ParsleyExtend)._init();break;default:throw new Error(t+"is not a supported Parsley type")}return this.options.multiple&&g.setAttr(this.element,this.options.namespace,"multiple",this.options.multiple),void 0!==i?(this.$element.data("FieldMultiple",n),n):(this.$element.data("Parsley",n),n._actualizeTriggers(),n._trigger("init"),n)}};var R=e.fn.jquery.split(".");if(parseInt(R[0])<=1&&parseInt(R[1])<8)throw"The loaded version of jQuery is too old. Please upgrade to 1.8.x or better.";R.forEach||g.warn("Parsley requires ES5 to run properly. Please include https://github.com/es-shims/es5-shim");var V=i(new y,{element:document,$element:e(document),actualizeOptions:null,_resetOptions:null,Factory:j,version:"2.9.2"});i(I.prototype,P.Field,y.prototype),i(N.prototype,P.Form,y.prototype),i(j.prototype,y.prototype),e.fn.parsley=e.fn.psly=function(t){if(this.length>1){var i=[];return this.each((function(){i.push(e(this).parsley(t))})),i}if(0!=this.length)return new j(this[0],t)},void 0===window.ParsleyExtend&&(window.ParsleyExtend={}),V.options=i(g.objectCreate(v),window.ParsleyConfig),window.ParsleyConfig=V.options,window.Parsley=window.psly=V,V.Utils=g,window.ParsleyUtils={},e.each(g,(function(e,t){"function"==typeof t&&(window.ParsleyUtils[e]=function(){return g.w
12arnOnce("Accessing `window.ParsleyUtils` is deprecated. Use `window.Parsley.Utils` instead."),g[e].apply(g,arguments)})}));var $=window.Parsley._validatorRegistry=new k(window.ParsleyConfig.validators,window.ParsleyConfig.i18n);window.ParsleyValidator={},e.each("setLocale addCatalog addMessage addMessages getErrorMessage formatMessage addValidator updateValidator removeValidator hasValidator".split(" "),(function(e,t){window.Parsley[t]=function(){return $[t].apply($,arguments)},window.ParsleyValidator[t]=function(){var e;return g.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=P,window.ParsleyUI={removeError:function(e,t,i){var n=!0!==i;return g.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:n})},getErrorsMessages:function(e){return g.warnOnce("Accessing UI is deprecated. Call 'getErrorsMessages' on the instance directly."),e.getErrorsMessages()}},e.each("addError updateError".split(" "),(function(e,t){window.ParsleyUI[t]=function(e,i,n,r,o){var s=!0!==o;return g.warnOnce("Accessing UI is deprecated. Call '".concat(t,"' on the instance directly. Please comment in issue 1073 as to your need to call this method.")),e[t](i,{message:n,assert:r,updateClass:s})}})),!1!==window.ParsleyConfig.autoBind&&e((function(){e("[data-parsley-validate]").length&&e("[data-parsley-validate]").parsley()}));var U=e({}),B=function(){g.warnOnce("Parsley's pubsub module is deprecated; use the 'on' and 'off' methods on parsley instances or window.Parsley")},z="parsley:";return e.listen=function(e,i){var n;if(B(),"object"===t(arguments[1])&&"function"==typeof arguments[2]&&(n=arguments[1],i=arguments[2]),"function"!=typeof i)throw new Error("Wrong parameters");window.Parsley.on(h(e),d(i,n))},e.listenTo=function(e,t,i){if(B(),!(e instanceof I||e instanceof N))throw new Error("Mu
12st give Parsley instance");if("string"!=typeof t||"function"!=typeof i)throw new Error("Wrong parameters");e.on(h(t),d(i))},e.unsubscribe=function(e,t){if(B(),"string"!=typeof e||"function"!=typeof t)throw new Error("Wrong arguments");window.Parsley.off(h(e),t.parsleyAdaptedCallback)},e.unsubscribeTo=function(e,t){if(B(),!(e instanceof I||e instanceof N))throw new Error("Must give Parsley instance");e.off(h(t))},e.unsubscribeAll=function(t){B(),window.Parsley.off(h(t)),e("form,input,textarea,select").each((function(){var i=e(this).data("Parsley");i&&i.off(h(t))}))},e.emit=function(e,t){var i;B();var n=t instanceof I||t instanceof N,o=Array.prototype.slice.call(arguments,n?2:1);o.unshift(h(e)),n||(t=window.Parsley),(i=t).trigger.apply(i,r(o))},e.extend(!0,V,{asyncValidators:{default:{fn:function(e){return e.status>=200&&e.status<300},url:!1},reverse:{fn:function(e){return e.status<200||e.status>=300},url:!1}},addAsyncValidator:function(e,t,i,n){return V.asyncValidators[e]={fn:t,url:i||!1,options:n||{}},this}}),V.addValidator("remote",{requirementType:{"":"string",validator:"string",reverse:"boolean",options:"object"},validateString:function(t,i,n,r){var o,s,a={},l=n.validator||(!0===n.reverse?"reverse":"default");if(void 0===V.asyncValidators[l])throw new Error("Calling an undefined async validator: `"+l+"`");(i=V.asyncValidators[l].url||i).indexOf("{value}")>-1?i=i.replace("{value}",encodeURIComponent(t)):a[r.element.getAttribute("name")||r.element.getAttribute("id")]=t;var u=e.extend(!0,n.options||{},V.asyncValidators[l].options);o=e.extend(!0,{},{url:i,data:a,type:"GET"},u),r.trigger("field:ajaxoptions",r,o),s=e.param(o),void 0===V._remoteCache&&(V._remoteCache={});var c=V._remoteCache[s]=V._remoteCache[s]||e.ajax(o),d=function(){var t=V.asyncValidators[l].fn.call(r,c,i,n);return t||(t=e.Deferred().reject()),e.when(t)};return c.then(d,d)},priority:-1}),V.on("form:submit",(function(){V._remoteCache={}}
12)),y.prototype.addAsyncValidator=function(){return g.warnOnce("Accessing the method `addAsyncValidator` through an instance is deprecated. Simply call `Parsley.addAsyncValidator(...)`"),V.addAsyncValidator.apply(V,arguments)},V.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."}),V.setLocale("en"),(new f).install(),V})),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(e){function t(n){if(i[n])return i[n].exports;var r=i[n]={i:n,l:!1,exports:{}};return e[n].call(r.exports,r,r.exports,t),r.l=!0,r.exports}var i={};return t.m=e,t.c=i,t.d=function(e,i,n){t.o(e,i)||Object.defineProperty(e,i,{enumerable:!0,get:n})},t.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},t.t=function(e,i){if(1&i&&(e=t(e)),8&i)return e;if(4&i&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(t.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&i&&"string"!=typeof e)for(var r in e)t.d(n,r,function(t){return e[t]}.bind(null,r));return n},t.n=function(e){var i=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(i,"a",i),i},t.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.p="",t(t.s="./src/main.js")}({
12"./src/AutoNumeric.js":function(e,t,i){"use strict";function n(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(e,t){return h(e)||d(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 i=Object.prototype.toString.call(e).slice(8,-1);return"Object"===i&&e.constructor&&(i=e.constructor.name),"Map"===i||"Set"===i?Array.from(i):"Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?c(e,t):void 0}}function c(e,t){(null==t||t>e.length)&&(t=e.length);for(var i=0,n=new Array(t);i<t;i++)n[i]=e[i];return n}function d(e,t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e)){var i=[],n=!0,r=!1,o=void 0;try{for(var s,a=e[Symbol.iterator]();!(n=(s=a.next()).done)&&(i.push(s.value),!t||i.length!==t);n=!0);}catch(e){r=!0,o=e}finally{try{n||null==a.return||a.return()}finally{if(r)throw o}}return i}}function h(e){if(Array.isArray(e))return e}function f(){return f=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var i=arguments[t];for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(e[n]=i[n])}return e},f.apply(this,arguments)}function p(e){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},p(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 i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function v(e,t,i){return t&&g(e.prototype,t),i&&g(e,i),e}i.r(t),i.d(t,"default",(function(){return k}));var y=i("./src/AutoNumericHelper.js"),b=i("./src/AutoNumericEnum.js"),w=i("./src/maths/Evaluator.js"),S=i("./src/maths/Parser.js"),k=function(){function e(){var t=this,i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;m(this,e);var o=e._setArgumentsValues(i,n,r),s=o.domElement,a=o.initialValue,l=o.userOptions;if(this.domElement=s,this.defaultRawValue="",this._setSettings(l,!1),this._checkElement(),this.savedCancellableValue=null,this.historyTable=[],this.historyTableIndex=-1,this.onGoingRedo=!1,this.parentForm=this._getParentForm(
vendor: 13,701 bytes, line 12
12),!this.runOnce&&this.settings.formatOnPageLoad)this._formatDefaultValueOnPageLoad(a);else{var u;if(y.default.isNull(a))switch(this.settings.emptyInputBehavior){case e.options.emptyInputBehavior.min:u=this.settings.minimumValue;break;case e.options.emptyInputBehavior.max:u=this.settings.maximumValue;break;case e.options.emptyInputBehavior.zero:u="0";break;case e.options.emptyInputBehavior.focus:case e.options.emptyInputBehavior.press:case e.options.emptyInputBehavior.always:case e.options.emptyInputBehavior.null:u="";break;default:u=this.settings.emptyInputBehavior}else u=a;this._setElementAndRawValue(u)}this.runOnce=!0,this.hasEventListeners=!1,(this.isInputElement||this.isContentEditable)&&(this.settings.noEventListeners||this._createEventListeners(),this._setWritePermissions(!0)),this._saveInitialValues(a),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(e){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;t.autoNumericLocalList.forEach((function(t){t.set(e,i)}))},setUnformatted:function(e){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;t.autoNumericLocalList.forEach((function(t){t.setUnformatted(e,i)}))},get:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,i=[];return t.autoNumericLocalList.forEach((function(e){i.push(e.get())})),t._executeCallback(i,e),i},getNumericString:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,i=[];return t.autoNumericLocalList.forEach((function(e){i.push(e.getNumericString())})),t._executeCallback(i,e),i},getFormatted:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,i=[];return t.autoNumericLocalList.forEach((function(e){i.push(e.getFormatted())})),t._executeCallback(i,e),i},getNumber:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,i=[];return t.autoNumericLocalList.forEach((function(e){i.push(e.getNumber())})),t._executeCallback(i,e),i},getLocalized:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,i=[];return t.autoNumericLocalList.forEach((function(e){i.push(e.getLocalized())})),t._executeCallback(i,e),i},reformat:function(){t.autoNumericLocalList.forEach((function(e){e.reformat()}))},unformat:function(){t.autoNumericLocalList.forEach((function(e){e.unformat()}))},unformatLocalized:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;t.autoNumericLocalList.forEach((function(t){t.unformatLocalized(e)}))},update:function(){for(var e=arguments.length,i=new Array(e),n=0;n<e;n++)i[n]=arguments[n];t.autoNumericLocalList.forEach((function(e){e.update.apply(e,i)}))},isPristine:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],i=!0;return t.autoNumericLocalList.forEach((function(t){i&&!t.isPristine(e)&&(i=!1)})),i},clear:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];t.autoNumericLocalList.forEach((function(t){t.clear(e)}))},remove:function(){t.autoNumericLocalList.forEach((function(e){e.remove()}))},wipe:function(){t.autoNumericLocalList.forEach((function(e){e.wipe()}))},nuke:function(){t.autoNumericLocalList.forEach((function(e){e.nuke()}))},has:function(i){return i instanceof e?t.autoNumericLocalList.has(i.node()):t.autoNumericLocalList.has(i)},addObject:function(i){var n,r;i instanceof e?(n=i.node(),r=i):(n=i,r=e.getAutoNumericElement(n)),t._hasLocalList()||t._createLocalList();var o,s=r._getLocalList();0===s.size&&(r._createLocalList(),s=r._getLocalList()),s instanceof Map?o=y.default.mergeMaps(t._getLocalList(),s):(t._addToLocalList(n,r),o=t._getLocalList()),o.forEach((function(e){e._setLocalList(o)}))},removeObject:function(i){var n,r,o=arguments.length>1&&void 0!==arguments[1]&&arguments[1];i instanceof e?(n=i.node(),r=i):(n=i,r=e.getAutoNumericElement(n));var s=t.autoNumericLocalList;t.autoNumericLocalList.delete(n),s.forEach((function(e){e._setLocalList(t.autoNumericLocalList)})),o||n!==t.node()?r._createLocalList():r._setLocalList(new Map)},empty:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];t.autoNumericLocalList.forEach((function(t){e?t._createLocalList():t._setLocalList(new Map)}))},elements:function(){var e=[];return t.autoNumericLocalList.forEach((function(t){e.push(t.node())})),e},getList:function(){return t.autoNumericLocalList},size:function(){return t.autoNumericLocalList.size}},this.options={reset:function(){return t.settings={rawValue:t.defaultRawValue},t.update(e.defaultSettings),t},allowDecimalPadding:function(e){return t.update({allowDecimalPadding:e}),t},alwaysAllowDecimalCharacter:function(e){return t.update({alwaysAllowDecimalCharacter:e}),t},caretPositionOnFocus:function(e){return t.settings.caretPositionOnFocus=e,t},createLocalList:function(e){return t.settings.createLocalList=e,t.settings.createLocalList?t._hasLocalList()||t._createLocalList():t._deleteLocalList(),t},currencySymbol:function(e){return t.update({currencySymbol:e}),t},currencySymbolPlacement:function(e){return t.update({currencySymbolPlacement:e}),t},decimalCharacter:function(e){return t.update({decimalCharacter:e}),t},decimalCharacterAlternative:function(e){return t.settings.decimalCharacterAlternative=e,t},decimalPlaces:function(e){return y.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.",t.settings.showWarnings),t.update({decimalPlaces:e}),t},decimalPlacesRawValue:function(e){return t.update({decimalPlacesRawValue:e}),t},decimalPlacesShownOnBlur:function(e){return t.update({decimalPlacesShownOnBlur:e}),t},decimalPlacesShownOnFocus:function(e){return t.update({decimalPlacesShownOnFocus:e}),t},defaultValueOverride:function(e){return t.update({defaultValueOverride:e}),t},digitalGroupSpacing:function(e){return t.update({digitalGroupSpacing:e}),t},digitGroupSeparator:function(e){return t.update({digitGroupSeparator:e}),t},divisorWhenUnfocused:function(e){return t.update({divisorWhenUnfocused:e}),t},emptyInputBehavior:function(i){return null===t.rawValue&&i!==e.options.emptyInputBehavior.null&&(y.default.warning("You are trying to modify the `emptyInputBehavior` option to something different than `'null'` (".concat(i,"), 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 `''`."),t.settings.showWarnings),t.rawValue=""),t.update({emptyInputBehavior:i}),t},eventBubbles:function(e){return t.settings.eventBubbles=e,t},eventIsCancelable:function(e){return t.settings.eventIsCancelable=e,t},failOnUnknownOption:function(e){return t.settings.failOnUnknownOption=e,t},formatOnPageLoad:function(e){return t.settings.formatOnPageLoad=e,t},formulaMode:function(e){return t.settings.formulaMode=e,t},historySize:function(e){return t.settings.historySize=e,t},invalidClass:function(e){return t.settings.invalidClass=e,t},isCancellable:function(e){return t.settings.isCancellable=e,t},leadingZero:function(e){return t.update({leadingZero:e}),t},maximumValue:function(e){return t.update({maximumValue:e}),t},minimumValue:function(e){return t.update({minimumValue:e}),t},modifyValueOnWheel:function(e){return t.settings.modifyValueOnWheel=e,t},negativeBracketsTypeOnBlur:function(e){return t.update({negativeBracketsTypeOnBlur:e}),t},negativePositiveSignPlacement:function(e){return t.update({negativePositiveSignPlacement:e}),t},negativeSignCharacter:function(e){return t.update({negativeSignCharacter:e}),t},noEventListeners:function(i){return i===e.options.noEventListeners.noEvents&&t.settings.noEventListeners===e.options.noEventListeners.addEvents&&t._removeEventListeners(),t.update({noEventListeners:i}),t},onInvalidPaste:function(e){return t.settings.onInvalidPaste=e,t},outputFormat:function(e){return t.settings.outputFormat=e,t},overrideMinMaxLimits:function(e){return t.update({overrideMinMaxLimits:e}),t},positiveSignCharacter:function(e){return t.update({positiveSignCharacter:e}),t},rawValueDivisor:function(e){return t.update({rawValueDivisor:e}),t},readOnly:function(e){return t.settings.readOnly=e,t._setWritePermissions(),t},roundingMethod:function(e){return t.update({roundingMethod:e}),t},saveValueToSessionStorage:function(e){return t.update({saveValueToSessionStorage:e}),t},symbolWhenUnfocused:function(e){return t.update({symbolWhenUnfocused:e}),t},selectNumberOnly:function(e){return t.settings.selectNumberOnly=e,t},selectOnFocus:function(e){return t.settings.selectOnFocus=e,t},serializeSpaces:function(e){return t.settings.serializeSpaces=e,t},showOnlyNumbersOnFocus:function(e){return t.update({showOnlyNumbersOnFocus:e}),t},showPositiveSign:function(e){return t.update({showPositiveSign:e}),t},showWarnings:function(e){return t.settings.showWarnings=e,t},styleRules:function(e){return t.update({styleRules:e}),t},suffixText:function(e){return t.update({suffixText:e}),t},unformatOnHover:function(e){return t.settings.unformatOnHover=e,t},unformatOnSubmit:function(e){return t.settings.unformatOnSubmit=e,t},valuesToStrings:function(e){return t.update({valuesToStrings:e}),t},watchExternalChanges:function(e){return t.update({watchExternalChanges:e}),t},wheelOn:function(e){return t.settings.wheelOn=e,t},wheelStep:function(e){return t.settings.wheelStep=e,t}},this._triggerEvent(e.events.initialized,this.domElement,{newValue:y.default.getElementValue(this.domElement),newRawValue:this.rawValue,error:null,aNElement:this})}return v(e,[{key:"_saveInitialValues",value:function(e){this.initialValueHtmlAttribute=y.default.scientificToDecimal(this.domElement.getAttribute("value")),y.default.isNull(this.initialValueHtmlAttribute)&&(this.initialValueHtmlAttribute=""),this.initialValue=e,y.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,e._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;y.default.isNull(this.parentForm)||(this._onFormSubmitFunc=function(){e._onFormSubmit()}
12,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(!y.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()):e>1?this._decrementParentFormCounter():y.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(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;this._getFormElement(e).dataset.anCount=1}},{key:"_incrementParentFormCounter",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;this._getFormElement(e).dataset.anCount++}},{key:"_decrementParentFormCounter",value:function(){this.parentForm.dataset.anCount--}},{key:"_hasFormHandlerFunction",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return"anFormHandler"in this._getFormElement(e).dataset}},{key:"_getFormElement",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return y.default.isNull(e)?this.parentForm:e}},{key:"_storeFormHandlerFunction",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;this.constructor._doesFormHandlerListExists()||this.constructor._createFormHandlerList();var t=y.default.randomString();this._getFormElement(e).dataset.anFormHandler=t,window.aNFormHandlerMap.set(t,{submitFn:this._onFormSubmitFunc,resetFn:this._onFormResetFunc})}},{key:"_getFormHandlerKey",value:function(){this._hasFormHandlerFunction()||y.default.throwError("Unable to retrieve the form handler name");var e=this.parentForm.dataset.anFormHandler;return""===e&&y.default.throwError("The form handler name is invalid"),e}},{key:"_getFormHandlerFunction",value:function(){
13var 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(){arguments.length>0&&void 0!==arguments[0]&&arguments[0]&&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 e=this;if(!y.default.isUndefined(this.getterSetter)){var t=this.getterSetter,i=t.set,n=t.get;Object.defineProperty(this.domElement,this.attributeToWatch,{configurable:!0,get:function(){return n.call(e.domElement)},set:function(t){i.call(e.domElement,t),e.settings.watchExternalChanges&&!e.internalModification&&e.set(t)}})}}},{key:"_removeWatcher",value:function(){var e=this;if(!y.default.isUndefined(this.getterSetter)){var t=this.getterSetter,i=t.set,n=t.get;Object.defineProperty(this.domElement,this.attributeToWatch,{configurable:!0,get:function(){return n.call(e.domElement)},set:function(t){i.call(e.domElement,t)}})}}},{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 i=this.historyTableIndex+1;i<this.historyTable.length&&this.rawValue===this.historyTable[i].value?t=!1:y.default.arrayTrim(this.historyTable,this.historyTableIndex+1)}if(this.historyTableIndex++,t){var n=y.default.getElementSelection(this.domElement);this.selectionStart=n.start,this.selectionEnd=n.end,this.historyTable.push({value:this.rawValue,start:this.selectionStart+1,end:this.selectionEnd+1}),this.historyTable.length>1&&(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(){var e;if(!(arguments.length>0&&void 0!==arguments[0])||arguments[0]?(e=this.historyTableIndex>0)&&this.historyTableIndex--:(e=this.historyTableIndex+1<this.historyTable.length)&&this.historyTableIndex++,e){var t=this.historyTable[this.historyTableIndex];this.set(t.value,null,!1),y.default.setElementSelection(this.domElement,t.start,t.end)}}},{key:"_historyTableUndo",value:function(){this._historyTableUndoOrRedo(!0)}},{key:"_historyTableRedo",value:function(){this._historyTableUndoOrRedo(!1)}},{key:"_historyTableForget",value:function(){for(var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,t=[],i=0;i<e;i++)t.push(this.historyTable.shift()),this.historyTableIndex--,this.historyTableIndex<0&&(this.historyTableIndex=0);return 1===t.length?t[0]:t}},{key:"_historyTableCurrentValueUsed",value:function(){var e=this.historyTableIndex;return e<0&&(e=0),y.default.isUndefinedOrNullOrEmpty(this.historyTable[e])?"":this.historyTable[e].value}},{key:"_parseStyleRules",value:function(){var e=this;y.default.isUndefinedOrNullOrEmpty(this.settings.styleRules)||""===this.rawValue||(y.default.isUndefinedOrNullOrEmpty(this.settings.styleRules.positive)||(this.rawValue>=0?this._addCSSClass(this.settings.styleRules.positive):this._removeCSSClass(this.settings.styleRules.positive)),y.default.isUndefinedOrNullOrEmpty(this.settings.styleRules.negative)||(this.rawValue<0?this._addCSSClass(this.settings.styleRules.negative):this._removeCSSClass(this.settings.styleRules.negative)),y.default.isUndefinedOrNullOrEmpty(this.settings.styleRules.ranges)||0===this.settings.styleRules.ranges.length||this.settings.styleRules.ranges.forEac
13h((function(t){e.rawValue>=t.min&&e.rawValue<t.max?e._addCSSClass(t.class):e._removeCSSClass(t.class)})),y.default.isUndefinedOrNullOrEmpty(this.settings.styleRules.userDefined)||0===this.settings.styleRules.userDefined.length||this.settings.styleRules.userDefined.forEach((function(t){if(y.default.isFunction(t.callback))if(y.default.isString(t.classes))t.callback(e.rawValue)?e._addCSSClass(t.classes):e._removeCSSClass(t.classes);else if(y.default.isArray(t.classes))if(2===t.classes.length)t.callback(e.rawValue)?(e._addCSSClass(t.classes[0]),e._removeCSSClass(t.classes[1])):(e._removeCSSClass(t.classes[0]),e._addCSSClass(t.classes[1]));else if(t.classes.length>2){var i=t.callback(e.rawValue);y.default.isArray(i)?t.classes.forEach((function(t,n){y.default.isInArray(n,i)?e._addCSSClass(t):e._removeCSSClass(t)})):y.default.isInt(i)?t.classes.forEach((function(t,n){n===i?e._addCSSClass(t):e._removeCSSClass(t)})):y.default.isNull(i)?t.classes.forEach((function(t){e._removeCSSClass(t)})):y.default.throwError("The callback result is not an array nor a valid array index, ".concat(p(i)," given."))}else y.default.throwError("The classes attribute is not valid for the `styleRules` option.");else y.default.isUndefinedOrNullOrEmpty(t.classes)?t.callback(e):y.default.throwError("The callback/classes structure is not valid for the `styleRules` option.");else y.default.warning("The given `styleRules` callback is not a function, ".concat("undefined"==typeof callback?"undefined":p(callback)," given."),e.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 e=this,t=arguments.length,i=new Array(t),n=0;n<t;n++)i[n]=arguments[n];Array.isArray(i)&&Array.isArray(i[0])&&(i=i[0]);var r=y.default.cloneObject(this.settings),o=this.rawValue,s={};y.default.isUndefinedOrNullOrEmpty(i)||0===i.length?s=null:i.length>=1&&i.forEach((function(t){e.constructor._isPreDefinedOptionValid(t)&&(t=e.constructor._getOptionObject(t)),f(s,t)}));try{this._setSettings(s,!0),this._setWritePermissions(),this._updateEventListeners(),this.set(o)}catch(e){return this._setSettings(r,!0),y.default.throwError("Unable to update the settings, those are invalid: [".concat(e,"]")),this}return this}},{key:"getSettings",value:function(){return this.settings}},{key:"set",value:function(t){var i,n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,o=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];if(y.default.isUndefined(t))return y.default.warning("You are trying to set an 'undefined' value ; an error could have occurred.",this.settings.showWarnings),this;if(y.default.isNull(r)||this._setSettings(r,!0),null===t&&this.settings.emptyInputBehavior!==e.options.emptyInputBehavior.null)return y.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===t)return this._setElementAndRawValue(null,null,o),this._saveValueToPersistentStorage(),this;if(i=this.constructor._toNumericValue(t,this.settings),isNaN(Number(i)))return y.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("",o),this;if(""===i)switch(this.settings.emptyInputBehavior){case e.options.emptyInputBehavior.zero:i=0;break;case e.options.emptyInputBehavior.min:i=this.settings.minimumValue;break;case e.options.emptyInputBehavior.max:i=this.settings.maximumValue;break;default:y.default.isNumber(this.settings.emptyInputBehavior)&&(i=Number(this.settings.emptyInputBehavior))}if(""!==i){var s=a(this.constructor._checkIfInRangeWithOverrideOption(i,this.settings),2),l=s[0],u=s[1];if(l&&u&&this.settings.valuesToStrings&&this._checkValuesToStrings(i))return this._setElementAndRawValue(this.settings.valuesToStrings[i],i,o),this._saveValueToPersistentStorage(),this;if(y.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).c
13oncat(this.settings.symbolWhenUnfocused)),(this.settings.decimalPlacesShownOnFocus||this.settings.divisorWhenUnfocused)&&this._saveValueToPersistentStorage(),this._setElementAndRawValue(i,c,o),this._setValidOrInvalidState(c),this}return this._triggerRangeEvents(l,u),y.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("",o),this}return n=this.settings.emptyInputBehavior===e.options.emptyInputBehavior.always?this.settings.currencySymbol:"",this._setElementAndRawValue(n,"",o),this}},{key:"setUnformatted",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if(null===e||y.default.isUndefined(e))return this;y.default.isNull(t)||this._setSettings(t,!0);var i=this.constructor._removeBrackets(e,this.settings),n=this.constructor._stripAllNonNumberCharacters(i,this.settings,!0,this.isFocused);return y.default.isNumber(n)||y.default.throwError("The value is not a valid one, it's not a numeric string nor a recognized currency."),this.constructor._isWithinRangeWithOverrideOption(n,this.settings)?this.setValue(e):y.default.throwError("The value is out of the range limits [".concat(this.settings.minimumValue,", ").concat(this.settings.maximumValue,"].")),this}},{key:"setValue",value:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return this._setElementAndRawValue(e,t),this}},{key:"_setRawValue",value:function(t){var i=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];if(this.rawValue!==t){var n=this.rawValue;this.rawValue=t,!y.default.isNull(this.settings.rawValueDivisor)&&0!==this.settings.rawValueDivisor&&""!==t&&null!==t&&this._isUserManuallyEditingTheValue()&&(this.rawValue/=this.settings.rawValueDivisor),this._triggerEvent(e.events.rawValueModified,this.domElement,{oldRawValue:n,newRawValue:this.rawValue,isPristine:this.isPristine(!0),error:null,aNElement:this}),this._parseStyleRules(),i&&this._historyTableAdd()}}},{key:"_setElementValue",value:function(t){var i=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=y.default.getElementValue(this.domElement);return t!==n&&(this.internalModification=!0,y.default.setElementValue(this.domElement,t),this.internalModification=!1,i&&this._triggerEvent(e.events.formatted,this.domElement,{oldValue:n,newValue:t,oldRawValue:this.rawValue,newRawValue:this.rawValue,isPristine:this.isPristine(!1),error:null,aNElement:this})),this}},{key:"_setElementAndRawValue",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,i=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];return y.default.isNull(t)?t=e:y.default.isBoolean(t)&&(i=t,t=e),this._setElementValue(e),this._setRawValue(t,i),this}},{key:"_getRawValueToFormat",value:function(e){return y.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){!y.default.isNull(t)&&y.default.isFunction(t)&&t(e,this)}},{key:"_triggerEvent",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:document,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;y.default.triggerEvent(e,t,i,this.settings.eventBubbles,this.settings.eventIsCancelable)}},{key:"get",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return this.getNumericString(e)}},{key:"getNumericString",value:function(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return e=y.default.isNull(this.rawValue)?null:y.default.trimPaddedZerosFromDecimalPlaces(this.rawValue),this._executeCallback(e,t),e}},{key:"getFormatted",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;"value"in this.domElement||"textContent"in this.domElement||y.default.throwError("Unable to get the formatted string from the element.");var t=y.default.getElementValue(this.domElement);return this._executeCallback(t,e),t}},{key:"getNumber",value:function(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return e=null===this.rawValue?null:this.constructor._toLocale(this.getNumericString(),"number",this.settings),this._executeCallback(e,t),e}},{key:"getLocalized",value:function(){var t,i,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;y.default.isFunction(n)&&y.default.isNull(r)&&(r=n,n=null),""!==(t=y.default.isEmptyString(this.rawValue)?"":""+Number(this.rawValue))&&0===Number(t)&&this.settings.leadingZero!==e.options.leadingZero.keep&&(t="0"),i=y.default.isNull(n)?this.settings.outputFormat:n;var o=this.constructor._toLocale(t,i,this.settings);return this._executeCallback(o,r),o}},{key:"reformat",value:function(){return this.set(this.rawValue),this}},{key:"unformat",value:function(){return this._setElementValue(this.getNumericString()),this}},{key:"unformatLocalized",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return this._setElementValue(this.getLocalized(e)),this}},{key:"isPristine",value:function(){return!(arguments.length>0&&void 0!==arguments[0])||arguments[0]?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(){y.default.setElementSelection(this.domElement,0,y.default.getElementValue(this.domElement).length)}},{key:"selectNumber",value:function(){var t,i,n=y.default.getElementValue(this.domElement),r=n.length,o=this.settings.currencySymbol.length,s=this.settings.currencySymbolPlacement,a=y.default.isNegative(n,this.settings.negativeSignCharacter)?1:0,l=this.settings.suffixText.length;if(t=s===e.options.currencySymbolPlacement.suffix?0:this.settings.negativePositiveSignPlacement===e.options.negativePositiveSignPlacement.left&&1===a&&o>0?o+1:o,s===e.options.currencySymbolPlacement.prefix)i=r-l;else switch(this.settings.negativePositiveSignPlacement){case e.options.negativePositiveSignPlacement.left:i=r-(l+o);break;case e.options.negativePositiveSignPlacement.right:i=o>0?r-(o+a+l):r-(o+l);break;default:i=r-(o+l)}return y.default.setElementSelection(this.domElement,t,i),this}},{key:"selectInteger",value:function(){var t=0,i=this.rawValue>=0;this.settings.currencySymbolPlacement!==e.options.currencySymbolPlacement.prefix&&(this.settings.currencySymbolPlacement!==e.options.currencySymbolPlacement.suffix||this.settings.negativePositiveSignPlacement!==e.options.negativePositiveSignPlacement.prefix&&this.settings.negativePositiveSignPlacement!==e.options.negativePositiveSignPlacement.none)||(this.settings.showPositiveSign&&i||!i&&this.settings.currencySymbolPlacement===e.options.currencySymbolPlacement.prefix&&this.settings.negativePositiveSignPlacement===e.options.negativePositiveSignPlacement.left)&&(t+=1),this.settings.currencySymbolPlacement===e.options.currencySymbolPlacement.prefix&&(t+=this.settings.currencySymbol.length);var n=y.default.getElementValue(this.domElement),r=n.indexOf(this.settings.decimalCharacter);return-1===r&&(r=this.settings.currencySymbolPlacement===e.options.currencySymbolPlacement.suffix?n.length-this.settings.currencySymbol.length:n.length,i||this.settings.negativePositiveSignPlacement!==e.options.negativePositiveSignPlacement.suffix&&this.settings.currencySymbolPlacement!==e.options.currencySymbolPlacement.suffix||(r-=1),r-=this.settings.suffixText.length),y.default.setElementSelection(this.domElement,t,r),this}},{key:"selectDecimal",value:function(){var e,t,i=y.default.getElementValue(this.domElement).indexOf(this.settings.decimalCharacter);-1===i?(i=0,e=0):(i+=1,t=this.isFocused?this.settings.decimalPlacesShownOnFocus:this.settings.decimalPlacesShownOnBlur,e=i+Number(t));return y.default.setElementSelection(this.domElement,i,e),this}},{key:"node",value:function(){return this.domElement}},{key:"parent",value:function(){return this.domElement.parentNode}},{key:"detach",value:function(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return e=y.default.isNull(t)?this.domElement:t.node(),this._removeFromLocalList(e),this}},{key:"attach",value:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return this._addToLocalList(e.node()),t&&e.update(this.settings),this}},{key:"formatOther",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return this._formatOrUnformatOther(!0,e,t)}},{key:"unformatOther",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return this._formatOrUnformatOther(!1,e,t)}},{key:"_formatOrUnformatOther",value:function(t,i){var n,r,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;if(n=y.default.isNull(o)?this.settings:this._cloneAndMergeSettings(o),y.default.isElement(i)){var s=y.default.getElementValue(i);return r=t?e.format(s,n):e.unformat(s,n),y.default.setElementValue(i,r),null}return r=t?e.format(i,n):e.unformat(i,n)}},{key:"init",value:function(t){var i=this,r=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],o=!1,s=[];if(y.default.isString(t)?s=n(document.querySelectorAll(t)):y.default.isElement(t)?(s.push(t),o=!0):y.default.isArray(t)?s=t:y.default.throwError("The given parameters to the 'init' function are invalid."),0===s.length)return y.default.warning("No valid DOM elements were given hence no AutoNumeric object were instantiated.",!0),[];var a=this._getLocalList(),l=[];
13return s.forEach((function(t){var n=i.settings.createLocalList;r&&(i.settings.createLocalList=!1);var o=new e(t,y.default.getElementValue(t),i.settings);r&&(o._setLocalList(a),i._addToLocalList(t,o),i.settings.createLocalList=n),l.push(o)})),o?l[0]:l}},{key:"clear",value:function(){if(arguments.length>0&&void 0!==arguments[0]&&arguments[0]){var t={emptyInputBehavior:e.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(){if(arguments.length>0&&void 0!==arguments[0]&&arguments[0]||y.default.isUndefinedOrNullOrEmpty(this.parentForm)){var e=this._getParentForm();if(!y.default.isNull(e)&&e!==this.parentForm){var t=this._getFormAutoNumericChildren(this.parentForm);this.parentForm.dataset.anCount=t.length,this._hasFormHandlerFunction(e)?this._incrementParentFormCounter(e):(this._storeFormHandlerFunction(e),this._initializeFormCounterToOne(e))}this.parentForm=e}return this.parentForm}},{key:"_getFormAutoNumericChildren",value:function(e){var t=this;return n(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,y.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(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return e=y.default.isNull(t)?this.settings.outputFormat:t,this.constructor._serializeLocalized(this.form(),this.settings.serializeSpaces,e)}},{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(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return e=y.default.isNull(t)?this.settings.outputFormat:t,this.constructor._serializeLocalizedArray(this.form(),this.settings.serializeSpaces,e)}},{key:"formJsonNumericString",value:function(){return JSON.stringify(this.formArrayNumericString())}},{key:"formJsonFormatted",value:function(){return JSON.stringify(this.formArrayFormatted())}},{key:"formJsonLocalized",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return JSON.stringify(this.formArrayLocalized(e))}},{key:"formUnformat",value:function(){return this.constructor._getChildANInputElement(this.form()).forEach((function(t){e.getAutoNumericElement(t).unformat()})),this}},{key:"formUnformatLocalized",value:function(){return this.constructor._getChildANInputElement(this.form()).forEach((function(t){e.getAutoNumericElement(t).unformatLocalized()})),this}},{key:"formReformat",value:function(){return this.constructor._getChildANInputElement(this.form()).forEach((function(t){e.getAutoNumericElement(t).reformat()})),this}},{key:"formSubmitNumericString",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return y.default.isNull(e)?(this.formUnformat(),this.form().submit(),this.formReformat()):y.default.isFunction(e)?e(this.formNumericString()):y.default.throwError("The given callback is not a function."),this}},{key:"formSubmitFormatted",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return y.default.isNull(e)?this.form().submit():y.default.isFunction(e)?e(this.formFormatted()):y.default.throwError("The given callback is not a function."),this}},{key:"formSubmitLocalized",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return y.default.isNull(t)?(this.formUnformatLocalized(),this.form().submit(),this.formReformat()):y.default.isFunction(t)?t(this.formLocalized(e)):y.default.throwError("The given callback is not a function."),this}},{key:"formSubmitArrayNumericString",value:function(e){return y.default.isFunction(e)?e(this.formArrayNumericString()):y.default.throwError("The given callback is not a function."),this}},{key:"formSubmitArrayFormatted",value:function(e){return y.default.isFunction(e)?e(this.formArrayFormatted()):y.default.throwError("The given callback is not a function."),this}},{key:"formSubmitArrayLocalized",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return y.default.isFunction(e)?e(this.formArrayLocalized(t)):y.default.throwError("The given callback is not a function."),this}},{key:"formSubmitJsonNumericString",value:function(e){return y.default.isFunction(e)?e(this.formJsonNumericString()):y.default.throwError("The given callback is not a function."),this}},{key:"formSubmitJsonFormatted",value:function(e){return y.default.isFunction(e)?e(this.formJsonFormatted()):y.default.throwError("The given callback is not a function."),this}},{key:"formSubmitJsonLocalized",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return y.default.isFunction(e)?e(this.formJsonLocalized(t)):y.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}}
13,{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){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;y.default.isNull(t)&&(t=this),y.default.isUndefined(this.autoNumericLocalList)?y.default.throwError("The local list provided does not exists when trying to add an element. [".concat(this.autoNumericLocalList,"] given.")):this.autoNumericLocalList.set(e,t)}},{key:"_removeFromLocalList",value:function(e){y.default.isUndefined(this.autoNumericLocalList)?this.settings.createLocalList&&y.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),i=0;i<e;i++)t[i]=arguments[i];f.apply(void 0,[this.settings].concat(t))}},{key:"_cloneAndMergeSettings",value:function(){for(var e={},t=arguments.length,i=new Array(t),n=0;n<t;n++)i[n]=arguments[n];return f.apply(void 0,[e,this.settings].concat(i)),e}},{key:"_updatePredefinedOptions",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return y.default.isNull(t)?this.update(e):(this._mergeSettings(e,t),this.update(this.settings)),this}},{key:"french",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return this._updatePredefinedOptions(e.getPredefinedOptions().French,t),this}},{key:"northAmerican",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return this._updatePredefinedOptions(e.getPredefinedOptions().NorthAmerican,t),this}},{key:"british",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return this._updatePredefinedOptions(e.getPredefinedOptions().British,t),this}},{key:"swiss",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return this._updatePredefinedOptions(e.getPredefinedOptions().Swiss,t),this}},{key:"japanese",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return this._updatePredefinedOptions(e.getPredefinedOptions().Japanese,t),this}},{key:"spanish",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return this._updatePredefinedOptions(e.getPredefinedOptions().Spanish,t),this}},{key:"chinese",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return this._updatePredefinedOptions(e.getPredefinedOptions().Chinese,t),this}},{key:"brazilian",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return this._updatePredefinedOptions(e.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 i=this.domElement.getAttribute(e);i=y.default.camelize(i),"function"==typeof this.settings[i]&&(this.settings[e]=i(this,e))}}}},{key:"_setTrailingNegativeSignInfo",value:function(){this.isTrailingNegative=this.settings.currencySymbolPlacement===e.options.currencySymbolPlacement.prefix&&this.settings.negativePositiveSignPlacement===e.options.negativePositiveSignPlacement.suffix||this.settings.currencySymbolPlacement===e.options.currencySymbolPlacement.suffix&&(this.settings.negativePositiveSignPlacement===e.options.negativePositiveSignPlacement.left||this.settings.negativePositiveSignPlacement===e.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/)||
13(e+="0"),e}},{key:"_initialCaretPosition",value:function(t){y.default.isNull(this.settings.caretPositionOnFocus)&&this.settings.selectOnFocus===e.options.selectOnFocus.doNotSelect&&y.default.throwError("`_initialCaretPosition()` should never be called when the `caretPositionOnFocus` option is `null`.");var i=this.rawValue<0,n=y.default.isZeroOrHasNoValue(t),r=t.length,o=0,s=0,a=!1,l=0;this.settings.caretPositionOnFocus!==e.options.caretPositionOnFocus.start&&(o=(t=(t=(t=t.replace(this.settings.negativeSignCharacter,"")).replace(this.settings.positiveSignCharacter,"")).replace(this.settings.currencySymbol,"")).length,a=y.default.contains(t,this.settings.decimalCharacter),this.settings.caretPositionOnFocus!==e.options.caretPositionOnFocus.decimalLeft&&this.settings.caretPositionOnFocus!==e.options.caretPositionOnFocus.decimalRight||(a?(s=t.indexOf(this.settings.decimalCharacter),l=this.settings.decimalCharacter.length):(s=o,l=0)));var u="";i?u=this.settings.negativeSignCharacter:this.settings.showPositiveSign&&!n&&(u=this.settings.positiveSignCharacter);var c,d=u.length,h=this.settings.currencySymbol.length;if(this.settings.currencySymbolPlacement===e.options.currencySymbolPlacement.prefix){if(this.settings.caretPositionOnFocus===e.options.caretPositionOnFocus.start)if(this.settings.negativePositiveSignPlacement!==e.options.negativePositiveSignPlacement.none&&(i||!i&&this.settings.showPositiveSign&&!n))switch(this.settings.negativePositiveSignPlacement){case e.options.negativePositiveSignPlacement.prefix:case e.options.negativePositiveSignPlacement.left:case e.options.negativePositiveSignPlacement.right:c=d+h;break;case e.options.negativePositiveSignPlacement.suffix:c=h}else c=h;else if(this.settings.caretPositionOnFocus===e.options.caretPositionOnFocus.end)if(this.settings.negativePositiveSignPlacement!==e.options.negativePositiveSignPlacement.none&&(i||!i&&this.settings.showPositiveSign&&!n))switch(this.settings.negativePositiveSignPlacement){case e.options.negativePositiveSignPlacement.prefix:case e.options.negativePositiveSignPlacement.left:case e.options.negativePositiveSignPlacement.right:c=r;break;case e.options.negativePositiveSignPlacement.suffix:c=h+o}else c=r;else if(this.settings.caretPositionOnFocus===e.options.caretPositionOnFocus.decimalLeft)if(this.settings.negativePositiveSignPlacement!==e.options.negativePositiveSignPlacement.none&&(i||!i&&this.settings.showPositiveSign&&!n))switch(this.settings.negativePositiveSignPlacement){case e.options.negativePositiveSignPlacement.prefix:case e.options.negativePositiveSignPlacement.left:case e.options.negativePositiveSignPlacement.right:c=d+h+s;break;case e.options.negativePositiveSignPlacement.suffix:c=h+s}else c=h+s;else if(this.settings.caretPositionOnFocus===e.options.caretPositionOnFocus.decimalRight)if(this.settings.negativePositiveSignPlacement!==e.options.negativePositiveSignPlacement.none&&(i||!i&&this.settings.showPositiveSign&&!n))switch(this.settings.negativePositiveSignPlacement){case e.options.negativePositiveSignPlacement.prefix:case e.options.negativePositiveSignPlacement.left:case e.options.negativePositiveSignPlacement.right:c=d+h+s+l;break;case e.options.negativePositiveSignPlacement.suffix:c=h+s+l}else c=h+s+l
14}else if(this.settings.currencySymbolPlacement===e.options.currencySymbolPlacement.suffix)if(this.settings.caretPositionOnFocus===e.options.caretPositionOnFocus.start)if(this.settings.negativePositiveSignPlacement!==e.options.negativePositiveSignPlacement.none&&(i||!i&&this.settings.showPositiveSign&&!n))switch(this.settings.negativePositiveSignPlacement){case e.options.negativePositiveSignPlacement.suffix:case e.options.negativePositiveSignPlacement.right:case e.options.negativePositiveSignPlacement.left:c=0;break;case e.options.negativePositiveSignPlacement.prefix:c=d}else c=0;else if(this.settings.caretPositionOnFocus===e.options.caretPositionOnFocus.end)if(this.settings.negativePositiveSignPlacement!==e.options.negativePositiveSignPlacement.none&&(i||!i&&this.settings.showPositiveSign&&!n))switch(this.settings.negativePositiveSignPlacement){case e.options.negativePositiveSignPlacement.suffix:case e.options.negativePositiveSignPlacement.right:case e.options.negativePositiveSignPlacement.left:c=o;break;case e.options.negativePositiveSignPlacement.prefix:c=d+o}else c=o;else if(this.settings.caretPositionOnFocus===e.options.caretPositionOnFocus.decimalLeft)if(this.settings.negativePositiveSignPlacement!==e.options.negativePositiveSignPlacement.none&&(i||!i&&this.settings.showPositiveSign&&!n))switch(this.settings.negativePositiveSignPlacement){case e.options.negativePositiveSignPlacement.suffix:case e.options.negativePositiveSignPlacement.right:case e.options.negativePositiveSignPlacement.left:c=s;break;case e.options.negativePositiveSignPlacement.prefix:c=d+s}else c=s;else if(this.settings.caretPositionOnFocus===e.options.caretPositionOnFocus.decimalRight)if(this.settings.negativePositiveSignPlacement!==e.options.negativePositiveSignPlacement.none&&(i||!i&&this.settings.showPositiveSign&&!n))switch(this.settings.negativePositiveSignPlacement){case e.options.negativePositiveSignPlacement.suffix:case e.options.negativePositiveSignPlacement.right:case e.options.negativePositiveSignPlacement.left:c=s+l;break;case e.options.negativePositiveSignPlacement.prefix:c=d+s+l}else c=s+l;return c}},{key:"_triggerRangeEvents",value:function(t,i){t||this._triggerEvent(e.events.minRangeExceeded,this.domElement),i||this._triggerEvent(e.events.maxRangeExceeded,this.domElement)}},{key:"_setInvalidState",value:function(){this.isInputElement?y.default.setInvalidState(this.domElement):this._addCSSClass(this.settings.invalidClass),this._triggerEvent(e.events.invalidValue,this.domElement),this.validState=!1}},{key:"_setValidState",value:function(){this.isInputElement?y.default.setValidState(this.domElement):this._removeCSSClass(this.settings.invalidClass),this.validState||this._triggerEvent(e.events.correctedValue,this.domElement),this.validState=!0}},{key:"_setValidOrInvalidState",value:function(t){if(this.settings.overrideMinMaxLimits===e.options.overrideMinMaxLimits.invalid){var i=this.constructor._isMinimumRangeRespected(t,this.settings),n=this.constructor._isMaximumRangeRespected(t,this.settings);i&&n?this._setValidState():this._setInvalidState(),this._triggerRangeEvents(i,n)}}},{key:"_keepAnOriginalSettingsCopy",value:function(){this.originalDigitGroupSeparator=this.settings.digitGroupSeparator,this.originalCurrencySymbol=this.settings.currencySymbol,this.originalSuffixText=this.settings.suffixText}},{key:"_trimLeadingAndTrailingZeros",value:function(t){if(""===t||null===t)return t;if(this.settings.leadingZero!==e.options.leadingZero.keep){if(0===Number(t))return"0";t=t.replace(/^(-)?0+(?=\d)/g,"$1")}return y.default.contains(t,".")&&(t=t.replace(/(\.[0-9]*?)0+$/,"$1")),t=t.replace(/\.$/,"")}},{key:"_setPersistentStorageName",value:function(){this.settings.saveValueToSessionStorage&&(""===this.domElement.name||y.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):(y.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=/")}
14}},{key:"_getDefaultValue",value:function(e){var t=e.getAttribute("value");return y.default.isNull(t)?"":t}},{key:"_onFocusInAndMouseEnter",value:function(t){if(this.isEditing=!1,!this.formulaMode&&this.settings.unformatOnHover&&"mouseenter"===t.type&&t.altKey)this.constructor._unformatAltHovered(this);else if("focus"===t.type&&(this.isFocused=!0,this.rawValueOnFocus=this.rawValue),"focus"===t.type&&this.settings.unformatOnHover&&this.hoveredWithAlt&&this.constructor._reformatAltHovered(this),"focus"===t.type||"mouseenter"===t.type&&!this.isFocused){var i=null;this.settings.emptyInputBehavior===e.options.emptyInputBehavior.focus&&this.rawValue<0&&null!==this.settings.negativeBracketsTypeOnBlur&&this.settings.isNegativeSignAllowed&&(i=this.constructor._removeBrackets(y.default.getElementValue(this.domElement),this.settings));var n=this._getRawValueToFormat(this.rawValue);if(""!==n){var r=this.constructor._roundFormattedValueShownOnFocusOrBlur(n,this.settings,this.isFocused);if(this.settings.showOnlyNumbersOnFocus===e.options.showOnlyNumbersOnFocus.onlyNumbers)this.settings.digitGroupSeparator="",this.settings.currencySymbol="",this.settings.suffixText="",i=r.replace(".",this.settings.decimalCharacter);else i=y.default.isNull(r)?"":this.constructor._addGroupSeparators(r.replace(".",this.settings.decimalCharacter),this.settings,this.isFocused,n)}y.default.isNull(i)?this.valueOnFocus="":this.valueOnFocus=i,this.lastVal=this.valueOnFocus;var o=this.constructor._isElementValueEmptyOrOnlyTheNegativeSign(this.valueOnFocus,this.settings),s=this.constructor._orderValueCurrencySymbolAndSuffixText(this.valueOnFocus,this.settings,!0),a=o&&""!==s&&this.settings.emptyInputBehavior===e.options.emptyInputBehavior.focus;a&&(i=s),y.default.isNull(i)||this._setElementValue(i),a&&s===this.settings.currencySymbol&&this.settings.currencySymbolPlacement===e.options.currencySymbolPlacement.suffix&&y.default.setElementSelection(t.target,0)}}},{key:"_onFocus",value:function(){this.settings.isCancellable&&this._saveCancellableValue()}},{key:"_onFocusIn",value:function(e){this.settings.selectOnFocus?this.select():y.default.isNull(this.settings.caretPositionOnFocus)||y.default.setElementSelection(e.target,this._initialCaretPosition(y.default.getElementValue(this.domElement)))}},{key:"_enterFormulaMode",value:function(){this.settings.formulaMode&&(this.formulaMode=!0,y.default.setElementValue(this.domElement,"="),y.default.setElementSelection(this.domElement,1))}},{key:"_exitFormulaMode",value:function(){var t,i=y.default.getElementValue(this.domElement);i=i.replace(/^\s*=/,"");try{var n=new S.default(i,this.settings.decimalCharacter);t=(new w.default).evaluate(n)}catch(t){return this._triggerEvent(e.events.invalidFormula,this.domElement,{formula:i,aNElement:this}),this.reformat(),void(this.formulaMode=!1)}this._triggerEvent(e.events.validFormula,this.domElement,{formula:i,result:t,aNElement:this}),this.set(t),this.formulaMode=!1}},{key:"_acceptNonPrintableKeysInFormulaMode",value:function(){return this.eventKey===b.default.keyName.Backspace||this.eventKey===b.default.keyName.Delete||this.eventKey===b.default.keyName.LeftArrow||this.eventKey===b.default.keyName.RightArrow||this.eventKey===b.default.keyName.Home||this.eventKey===b.default.keyName.End}},{key:"_onKeydown",value:function(t){if(this.formatted=!1,this.isEditing=!0,this.formulaMode||this.isFocused||!this.settings.unformatOnHover||!t.altKey||this.domElement!==y.default.getHoveredElement()){if(this._updateEventKeyInfo(t),this.keydownEventCounter+=1,1===this.keydownEventCounter&&(this.initialValueOnFirstKeydown=y.default.getElementValue(t.target),this.initialRawValueOnFirstKeydown=this.rawValue),this.formulaMode){if(this.eventKey===b.default.keyName.Esc)return this.formulaMode=!1,void this.reformat();if(this.eventKey===b.default.keyName.Enter)return void this._exitFormulaMode();if(this._acceptNonPrintableKeysInFormulaMode())return}else if(this.eventKey===b.default.keyName.Equal)return void this._enterFormulaMode();if(this.domElement.readOnly||this.settings.readOnly||this.domElement.disabled)this.processed=!0;else{this.eventKey===b.default.keyName.Esc&&(t.preventDefault(),this.settings.isCancellable&&this.rawValue!==this.savedCancellableValue&&(this.set(this.savedCancellableValue),this._triggerEvent(e.events.native.input,t.target)),this.select());var i=y.default.getElementValue(t.target);if(this.eventKey===b.default.keyName.Enter&&this.rawValue!==this.rawValueOnFocus&&(this._triggerEvent(e.events.native.change,t.target),this.valueOnFocus=i,this.rawValueOnFocus=this.rawValue,this.settings.isCancellable&&this._saveCancellableValue()),this._updateInternalProperties(t),this._processNonPrintableKeysAndShortcuts(t))this.processed=!0;else if(this.eventKey===b.default.keyName.Backspace||this.eventKey===b.default.keyName.Delete){var n=this._processCharacterDeletion();if(this.processed=!0,!n)return void t.preventDefault();this._formatValue(t),(i=y.default.getElementValue(t.target))!==this.lastVal&&this.throwInput&&(this._triggerEvent(e.events.native.input,t.target),t.preventDefault()),this.lastVal=i,this.throwInput=!0}}}else this.constructor._unformatAltHovered(this)}},{key:"_onKeypress",value:function(t){if(this.formulaMode){if(this._acceptNonPrintableKeysInFormulaMode())return;if(this.settings.formulaChars.test(this.eventKey))return;t.preventDefault()}else if(this.eventKey!==b.default.keyName.Insert){var i=this.processed;if(this._updateInternalProperties(t),!this._processNonPrintableKeysAndShortcuts(t))if(i)t.preventDefault();else{if(this._processCharacterInsertion()){this._formatValue(t);var n=y.default.getElementValue(t.target);if(n!==this.lastVal&&this.throwInput)this._triggerEvent(e.events.native.input,t.target),t.preventDefault();else{if((this.eventKey===this.settings.decimalCharacter||this.eventKey===this.settings.decimalCharacterAlternative)&&y.default.getElementSelection(t.target).start===y.default.getElementSelection(t.target).end&&y.default.getElementSelection(t.target).start===n.indexOf(this.settings.decimalCharacter)){var r=y.default.getElementSelection(t.target).start+1;y.default.setElementSelection(t.target,r)}t.preventDefault()}return this.lastVal=y.default.getElementValue(t.target),this.throwInput=!0,void this._setValidOrInvalidState(this.rawValue)}t.preventDefault()}}}},{key:"_onKeyup",value:function(t){if(this.isEditing=!1,this.keydownEventCounter=0,!this.formulaMode)if(this.settings.isCancellable&&this.eventKey===b.default.keyName.Esc)t.preventDefault();else{if(this.eventKey===b.default.keyName.Z||this.eventKey===b.default.keyName.z){if(t.ctrlKey&&t.shiftKey)return t.preventDefault(),this._historyTableRedo(),void(this.onGoingRedo=!0);if(t.ctrlKey&&!t.shiftKey){if(!this.onGoingRedo)return t.preventDefault(),void this._historyTableUndo();this.onGoingRedo=!1}}if(this.onGoingRedo&&(t.ctrlKey||t.shiftKey)&&(this.onGoingRedo=!1),(t.ctrlKey||t.metaKey)&&this.eventKey===b.default.keyName.x){var i=y.default.getElementSelection(this.domElement).start,n=this.constructor._toNumericValue(y.default.getElementValue(t.target),this.settings);this.set(n),this._setCaretPosition(i)}if(this.eventKey===b.default.keyName.Alt&&this.settings.unformatOnHover&&this.hoveredWithAlt)this.constructor._reformatAltHovered(this);else if(!t.ctrlKey&&!t.metaKey||this.eventKey!==b.default.keyName.Backspace&&this.eventKey!==b.default.keyName.Delete){this._updateInternalProperties(t);var r=this._processNonPrintableKeysAndShortcuts(t);delete this.valuePartsBeforePaste;var o=y.default.getElementValue(t.target);if(!(r||""===o&&""===this.initialValueOnFirstKeydown)&&(o===this.settings.currencySymbol?this.settings.currencySymbolPlacement===e.options.currencySymbolPlacement.suffix?y.default.setElementSelection(t.target,0):y.default.setElementSelection(t.target,this.settings.currencySymbol.length):this.eventKey===b.default.keyName.Tab&&y.default.setElementSelection(t.target,0,o.length),(o===this.settings.suffixText||""===this.rawValue&&""!==this.settings.currencySymbol&&""!==this.settings.suffixText)&&y.default.setElementSelection(t.target,0),null!==this.settings.decimalPlacesShownOnFocus&&this._saveValueToPersistentStorage(),this.formatted||this._formatValue(t),this._setValidOrInvalidState(this.rawValue),this._saveRawValueForAndroid(),o!==this.initialValueOnFirstKeydown&&this._triggerEvent(e.events.formatted,t.target,{oldValue:this.initialValueOnFirstKeydown,newValue:o,oldRawValue:this.initialRawValueOnFirstKeydown,newRawValue:this.rawValue,isPristine:this.isPristine(!1),error:null,aNElement:this}),this.historyTable.length>1)){var s=y.default.getElementSelection(this.domElement);this.selectionStart=s.start,this.selectionEnd=s.end,this.historyTable[this.historyTableIndex].start=this.selectionStart,this.historyTable[this.historyTableIndex].end=this.selectionEnd}}else{var a=y.default.getElementValue(t.target);this._setRawValue(this._formatOrUnformatOther(!1,a))}}}},{key:"_saveRawValueForAndroid",value:function(){if(this.eventKey===b.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(t){if(this.isEditing=!1,"mouseleave"!==t.type||!this.formulaMode)if(this.settings.unformatOnHover&&"mouseleave"===t.type&&this.hoveredWithAlt)this.constructor._reformatAltHovered(this);else if("mouseleave"===t.type&&!this.isFocused||"blur"===t.type){"blur"===t.type&&this.formulaMode&&this._exitFormulaMode(),this._saveValueToPersistentStorage(),this.settings.showOnlyNumbersOnFocus===e.options.showOnlyNumbersOnFocus.onlyNumbers&&(this.settings.digitGroupSeparator=this.originalDigitGroupSeparator,this.settings.currencySymbol=this.originalCurrencySymbol,this.settings.suffixText=this.originalSuffixText);var i=this._getRawValueToFormat(this.rawValue),n=y.default.isNull(i),r=a(this.constructor._checkIfInRangeWithOverrideOption(i,this.settings),2),o=r[0],s=r[1],l=!1;if(""===i||n||(this._triggerRangeEvents(o,s),this.settings.valuesToStrings&&this._checkValuesToStrings(i)&&(this._setElementValue(this.settings.valuesToStrings[i]),l=!0)),!l){var u;
14if(u=n||""===i?i:String(i),""===i||n){if(""===i)switch(this.settings.emptyInputBehavior){case e.options.emptyInputBehavior.zero:this._setRawValue("0"),u=this.constructor._roundValue("0",this.settings,0);break;case e.options.emptyInputBehavior.min:this._setRawValue(this.settings.minimumValue),u=this.constructor._roundFormattedValueShownOnFocusOrBlur(this.settings.minimumValue,this.settings,this.isFocused);break;case e.options.emptyInputBehavior.max:this._setRawValue(this.settings.maximumValue),u=this.constructor._roundFormattedValueShownOnFocusOrBlur(this.settings.maximumValue,this.settings,this.isFocused);break;default:y.default.isNumber(this.settings.emptyInputBehavior)&&(this._setRawValue(this.settings.emptyInputBehavior),u=this.constructor._roundFormattedValueShownOnFocusOrBlur(this.settings.emptyInputBehavior,this.settings,this.isFocused))}}else o&&s&&!this.constructor._isElementValueEmptyOrOnlyTheNegativeSign(i,this.settings)?(u=this._modifyNegativeSignAndDecimalCharacterForRawValue(u),this.settings.divisorWhenUnfocused&&!y.default.isNull(u)&&(u=(u/=this.settings.divisorWhenUnfocused).toString()),u=this.constructor._roundFormattedValueShownOnBlur(u,this.settings),u=this.constructor._modifyNegativeSignAndDecimalCharacterForFormattedValue(u,this.settings)):this._triggerRangeEvents(o,s);var c=this.constructor._orderValueCurrencySymbolAndSuffixText(u,this.settings,!1);this.constructor._isElementValueEmptyOrOnlyTheNegativeSign(u,this.settings)||n&&this.settings.emptyInputBehavior===e.options.emptyInputBehavior.null||(c=this.constructor._addGroupSeparators(u,this.settings,!1,i)),c===i&&""!==i&&this.settings.allowDecimalPadding!==e.options.allowDecimalPadding.never&&this.settings.allowDecimalPadding!==e.options.allowDecimalPadding.floats||(this.settings.symbolWhenUnfocused&&""!==i&&null!==i&&(c="".concat(c).concat(this.settings.symbolWhenUnfocused)),this._setElementValue(c))}this._setValidOrInvalidState(this.rawValue),"blur"===t.type&&this._onBlur(t)}}},{key:"_onPaste",value:function(t){if(t.preventDefault(),!(this.settings.readOnly||this.domElement.readOnly||this.domElement.disabled)){var i,n;window.clipboardData&&window.clipboardData.getData?i=window.clipboardData.getData("Text"):t.clipboardData&&t.clipboardData.getData?i=t.clipboardData.getData("text/plain"):y.default.throwError("Unable to retrieve the pasted value. Please use a modern browser (ie. Firefox or Chromium)."),n=t.target.tagName?t.target:t.explicitOriginalTarget;var r=y.default.getElementValue(n),o=n.selectionStart||0,s=n.selectionEnd||0,a=s-o;if(a===r.length){var l=this._preparePastedText(i),u=y.default.arabicToLatinNumbers(l,!1,!1,!1);return"."===u||""===u||"."!==u&&!y.default.isNumber(u)?(this.formatted=!0,void(this.settings.onInvalidPaste===e.options.onInvalidPaste.error&&y.default.throwError("The pasted value '".concat(i,"' is not a valid paste content.")))):(this.set(u),this.formatted=!0,void this._triggerEvent(e.events.native.input,n))}var c=y.default.isNegativeStrict(i,this.settings.negativeSignCharacter);c&&(i=i.slice(1,i.length));var d,h,f=this._preparePastedText(i);if("."!==(d="."===f?".":y.default.arabicToLatinNumbers(f,!1,!1,!1))&&(!y.default.isNumber(d)||""===d))return this.formatted=!0,void(this.settings.onInvalidPaste===e.options.onInvalidPaste.error&&y.default.throwError("The pasted value '".concat(i,"' is not a valid paste content.")));var p,m,g=y.default.isNegativeStrict(this.getNumericString(),this.settings.negativeSignCharacter);c&&!g?(g=!0,p=!0):p=!1;var v=r.slice(0,o),b=r.slice(s,r.length);m=o!==s?this._preparePastedText(v+b):this._preparePastedText(r),g&&(m=y.default.setRawNegativeSign(m)),h=y.default.convertCharacterCountToIndexPosition(y.default.countNumberCharactersOnTheCaretLeftSide(r,o,this.settings.decimalCharacter)),p&&h++;var w=m.slice(0,h),S=m.slice(h,m.length),k=!1;"."===d&&(y.default.contains(w,".")&&(k=!0,w=w.replace(".","")),S=S.replace(".",""));var x=!1;switch(""===w&&"-"===S&&(w="-",S="",x=!0),this.settings.onInvalidPaste){case e.options.onInvalidPaste.truncate:case e.options.onInvalidPaste.replace:for(var _=y.default.parseStr(this.settings.minimumValue),C=y.default.parseStr(this.settings.maximumValue),T=m,E=0,P=w;E<d.length&&(m=(P+=d[E])+S,this.constructor._checkIfInRange(m,_,C));)T=m,E++;if(h+=E,x&&h++,this.settings.onInvalidPaste===e.options.onInvalidPaste.truncate){m=T,k&&h--;break}for(var O=h,N=T.length;E<d.length&&O<N;)if("."!==T[O]){if(m=y.default.replaceCharAt(T,O,d[E]),!this.constructor._checkIfInRange(m,_,C))break;T=m,E++,O++}else O++;h=O,k&&h--,m=T;break;case e.options.onInvalidPaste.error:case e.options.onInvalidPaste.ignore:case e.options.onInvalidPaste.clamp:default:if(m="".concat(w).c
14oncat(d).concat(S),o===s)h=y.default.convertCharacterCountToIndexPosition(y.default.countNumberCharactersOnTheCaretLeftSide(r,o,this.settings.decimalCharacter))+d.length;else if(""===S)h=y.default.convertCharacterCountToIndexPosition(y.default.countNumberCharactersOnTheCaretLeftSide(r,o,this.settings.decimalCharacter))+d.length,x&&h++;else{var A=y.default.convertCharacterCountToIndexPosition(y.default.countNumberCharactersOnTheCaretLeftSide(r,s,this.settings.decimalCharacter)),D=y.default.getElementValue(n).slice(o,s);h=A-a+y.default.countCharInText(this.settings.digitGroupSeparator,D)+d.length}p&&h++,k&&h--}if(y.default.isNumber(m)&&""!==m){var F=!1,I=!1;try{this.set(m),F=!0}catch(t){var L;switch(this.settings.onInvalidPaste){case e.options.onInvalidPaste.clamp:L=y.default.clampToRangeLimits(m,this.settings);try{this.set(L)}catch(e){y.default.throwError("Fatal error: Unable to set the clamped value '".concat(L,"'."))}I=!0,F=!0,m=L;break;case e.options.onInvalidPaste.error:case e.options.onInvalidPaste.truncate:case e.options.onInvalidPaste.replace:y.default.throwError("The pasted value '".concat(i,"' results in a value '").concat(m,"' that is outside of the minimum [").concat(this.settings.minimumValue,"] and maximum [").concat(this.settings.maximumValue,"] value range."));case e.options.onInvalidPaste.ignore:default:return}}var M,j=y.default.getElementValue(n);if(F)switch(this.settings.onInvalidPaste){case e.options.onInvalidPaste.clamp:if(I){this.settings.currencySymbolPlacement===e.options.currencySymbolPlacement.suffix?y.default.setElementSelection(n,j.length-this.settings.currencySymbol.length):y.default.setElementSelection(n,j.length);break}case e.options.onInvalidPaste.error:case e.options.onInvalidPaste.ignore:case e.options.onInvalidPaste.truncate:case e.options.onInvalidPaste.replace:default:M=y.default.findCaretPositionInFormattedNumber(m,h,j,this.settings.decimalCharacter),y.default.setElementSelection(n,M)}F&&r!==j&&this._triggerEvent(e.events.native.input,n)}else this.settings.onInvalidPaste===e.options.onInvalidPaste.error&&y.default.throwError("The pasted value '".concat(i,"' would result into an invalid content '").concat(m,"'."))}}},{key:"_onBlur",value:function(t){this.isFocused=!1,this.isEditing=!1,this.rawValue!==this.rawValueOnFocus&&this._triggerEvent(e.events.native.change,t.target),this.rawValueOnFocus=void 0}},{key:"_onWheel",value:function(t){this.formulaMode||this.settings.readOnly||this.domElement.readOnly||this.domElement.disabled||this.settings.modifyValueOnWheel&&(this.settings.wheelOn===e.options.wheelOn.focus?this.isFocused?t.shiftKey||this.wheelAction(t):t.shiftKey&&this.wheelAction(t):this.settings.wheelOn===e.options.wheelOn.hover?t.shiftKey?(t.preventDefault(),window.scrollBy(0,y.default.isNegativeStrict(String(t.deltaY))?-50:50)):this.wheelAction(t):y.default.throwError("Unknown `wheelOn` option."))}},{key:"wheelAction",value:function(t){this.isWheelEvent=!0;var i,n=t.target.selectionStart||0,r=t.target.selectionEnd||0,o=this.rawValue;if(y.default.isUndefinedOrNullOrEmpty(o)?this.settings.minimumValue>0||this.settings.maximumValue<0?y.default.isWheelUpEvent(t)?i=this.settings.minimumValue:y.default.isWheelDownEvent(t)?i=this.settings.maximumValue:y.default.throwError("The event is not a 'wheel' event."):i=0:i=o,i=+i,y.default.isNumber(this.settings.wheelStep)){var s=+this.settings.wheelStep;y.default.isWheelUpEvent(t)?i+=s:y.default.isWheelDownEvent(t)&&(i-=s)}else y.default.isWheelUpEvent(t)?i=y.default.addAndRoundToNearestAuto(i,this.settings.decimalPlacesRawValue):y.default.isWheelDownEvent(t)&&(i=y.default.subtractAndRoundToNearestAuto(i,this.settings.decimalPlacesRawValue));(i=y.default.clampToRangeLimits(i,this.settings))!==+o&&(this.set(i),this._triggerEvent(e.events.native.input,t.target)),t.preventDefault(),this._setSelection(n,r),this.isWheelEvent=!1}},{key:"_onDrop",value:function(e){if(!this.formulaMode){var t;this.isDropEvent=!0,e.preventDefault(),t=y.default.isIE11()?"text":"text/plain";var i=e.dataTransfer.getData(t),n=this.unformatOther(i);this.set(n),this.isDropEvent=!1}}},{key:"_onFormSubmit",value:function(){var e=this;return this._getFormAutoNumericChildren(this.parentForm).map((function(t){return e.constructor.getAutoNumericElement(t)}
14)).forEach((function(e){return e._unformatOnSubmit()})),!0}},{key:"_onFormReset",value:function(){var e=this;this._getFormAutoNumericChildren(this.parentForm).map((function(t){return e.constructor.getAutoNumericElement(t)})).forEach((function(t){var i=e._getDefaultValue(t.node());setTimeout((function(){return t.set(i)}),0)}))}},{key:"_unformatOnSubmit",value:function(){this.settings.unformatOnSubmit&&this._setElementValue(this.rawValue)}},{key:"_onKeydownGlobal",value:function(t){if(y.default.character(t)===b.default.keyName.Alt){var i=y.default.getHoveredElement();if(e.isManagedByAutoNumeric(i)){var n=e.getAutoNumericElement(i);!n.formulaMode&&n.settings.unformatOnHover&&this.constructor._unformatAltHovered(n)}}}},{key:"_onKeyupGlobal",value:function(t){if(y.default.character(t)===b.default.keyName.Alt){var i=y.default.getHoveredElement();if(e.isManagedByAutoNumeric(i)){var n=e.getAutoNumericElement(i);if(n.formulaMode||!n.settings.unformatOnHover)return;this.constructor._reformatAltHovered(n)}}}},{key:"_isElementTagSupported",value:function(){return y.default.isElement(this.domElement)||y.default.throwError("The DOM element is not valid, ".concat(this.domElement," given.")),y.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||y.default.isUndefinedOrNullOrEmpty(this.domElement.type)}},{key:"_checkElement",value:function(){var e=this.domElement.tagName.toLowerCase();this._isElementTagSupported()||y.default.throwError("The <".concat(e,"> tag is not supported by autoNumeric")),this._isInputElement()?(this._isInputTypeSupported()||y.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(){var t,i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,n=!0;if(y.default.isNull(i)?(t=y.default.getElementValue(this.domElement).trim(),this.domElement.setAttribute("value",t)):t=i,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")&&!y.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===e.options.negativePositiveSignPlacement.suffix||this.settings.negativePositiveSignPlacement!==e.options.negativePositiveSignPlacement.prefix&&this.settings.currencySymbolPlacement===e.options.currencySymbolPlacement.suffix)&&""!==this.settings.negativeSignCharacter&&y.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))}n=!1}}else isNaN(Number(r))||1/0===r?y.default.throwError("The value [".concat(t,"] used in the input is not a valid value autoNumeric can work with.")):(this.set(r),n=!1);if(""===t)switch(this.settings.emptyInputBehavior){case e.options.emptyInputBehavior.focus:case e.options.emptyInputBehavior.null:case e.options.emptyInputBehavior.press:break;case e.options.emptyInputBehavior.always:this._setElementValue(this.settings.currencySymbol);break;case e.options.emptyInputBehavior.min:this.set(this.settings.minimumValue);break;case e.options.emptyInputBehavior.max:this.set(this.settings.maximumValue);break;case e.options.emptyInputBehavior.zero:this.set("0");break;default:this.set(this.settings.emptyInputBehavior)}else n&&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=a(this.settings.maximumValue.toString().split("."),1)[0],t=a(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){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];(!t&&y.default.isNull(e)||this.constructor._convertOldOptionsToNewOnes(e),t)?("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=b.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),t||(y.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(),y.default.isEmptyObj(this.settings)&&y.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=y.default.getElementSelection(this.domElement),this.processed=!1}},{key:"_updateEventKeyInfo",value:function(e){this.eventKey=y.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,y.default.getElementValue(this.domElement).length),this.selection={start:e,end:t,length:t-e},y.default.setElementSelection(this.domElement,e,t)}},{key:"_setCaretPosition",value:function(e){this._setSelection(e,e)}},{key:"_getLeftAndRightPartAroundTheSelection",value:function(){var e=y.default.getElementValue(this.domElement);return[e.substring(0,this.selection.start),e.substring(this.selection.end,e.length)]}},{key:"_getUnformattedLeftAndRightPartAroundTheSelection",value:function(){var t=a(this._getLeftAndRightPartAroundTheSelection(),2),i=t[0],n=t[1];if(""===i&&""===n)return["",""];var r=!0;return this.eventKey!==b.default.keyName.Hyphen&&this.eventKey!==b.default.keyName.Minus||0!==Number(i)||(r=!1),
15this.isTrailingNegative&&(y.default.isNegative(n,this.settings.negativeSignCharacter)&&!y.default.isNegative(i,this.settings.negativeSignCharacter)||""===n&&y.default.isNegative(i,this.settings.negativeSignCharacter,!0))&&(i=i.replace(this.settings.negativeSignCharacter,""),n=n.replace(this.settings.negativeSignCharacter,""),i=i.replace("-",""),n=n.replace("-",""),i="-".concat(i)),[i=e._stripAllNonNumberCharactersExceptCustomDecimalChar(i,this.settings,r,this.isFocused),n=e._stripAllNonNumberCharactersExceptCustomDecimalChar(n,this.settings,!1,this.isFocused)]}},{key:"_normalizeParts",value:function(t,i){var n=!0;this.eventKey!==b.default.keyName.Hyphen&&this.eventKey!==b.default.keyName.Minus||0!==Number(t)||(n=!1),this.isTrailingNegative&&y.default.isNegative(i,this.settings.negativeSignCharacter)&&!y.default.isNegative(t,this.settings.negativeSignCharacter)&&(t="-".concat(t),i=i.replace(this.settings.negativeSignCharacter,"")),t=e._stripAllNonNumberCharactersExceptCustomDecimalChar(t,this.settings,n,this.isFocused),i=e._stripAllNonNumberCharactersExceptCustomDecimalChar(i,this.settings,!1,this.isFocused),this.settings.leadingZero!==e.options.leadingZero.deny||this.eventKey!==b.default.keyName.num0&&this.eventKey!==b.default.keyName.numpad0||
vendor: 13,444 bytes, line 15
150!==Number(t)||y.default.contains(t,this.settings.decimalCharacter)||""===i||(t=t.substring(0,t.length-1));var r=t+i;if(this.settings.decimalCharacter){var o=r.match(new RegExp("^".concat(this.regex.aNegRegAutoStrip,"\\").concat(this.settings.decimalCharacter)));o&&(r=(t=t.replace(o[1],o[1]+"0"))+i)}return[t,i,r]}},{key:"_setValueParts",value:function(t,i){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=a(this._normalizeParts(t,i),3),o=r[0],s=r[1],l=r[2],u=a(e._checkIfInRangeWithOverrideOption(l,this.settings),2),c=u[0],d=u[1];if(c&&d){var h=e._truncateDecimalPlaces(l,this.settings,n,this.settings.decimalPlacesRawValue).replace(this.settings.decimalCharacter,".");if(""===h||h===this.settings.negativeSignCharacter){var f;switch(this.settings.emptyInputBehavior){case e.options.emptyInputBehavior.focus:case e.options.emptyInputBehavior.press:case e.options.emptyInputBehavior.always:f="";break;case e.options.emptyInputBehavior.min:f=this.settings.minimumValue;break;case e.options.emptyInputBehavior.max:f=this.settings.maximumValue;break;case e.options.emptyInputBehavior.zero:f="0";break;case e.options.emptyInputBehavior.null:f=null;break;default:f=this.settings.emptyInputBehavior}this._setRawValue(f)}else this._setRawValue(this._trimLeadingAndTrailingZeros(h));var p=e._truncateDecimalPlaces(l,this.settings,n,this.settings.decimalPlacesShownOnFocus),m=o.length;return m>p.length&&(m=p.length),1===m&&"0"===o&&this.settings.leadingZero===e.options.leadingZero.deny&&(m=""===s||"0"===o&&""!==s?1:0),this._setElementValue(p,!1),this._setCaretPosition(m),!0}return this._triggerRangeEvents(c,d),!1}},{key:"_getSignPosition",value:function(){var t;if(this.settings.currencySymbol){var i=this.settings.currencySymbol.length,n=y.default.getElementValue(this.domElement);if(this.settings.currencySymbolPlacement===e.options.currencySymbolPlacement.prefix){t=this.settings.negativeSignCharacter&&n&&n.charAt(0)===this.settings.negativeSignCharacter?[1,i+1]:[0,i]}else{var r=n.length;t=[r-i,r]}}else t=[1e3,-1];return t}},{key:"_expandSelectionOnSign",value:function(){var e=a(this._getSignPosition(),2),t=e[0],i=e[1],n=this.selection;n.start<i&&n.end>t&&((n.start<t||n.end>i)&&y.default.getElementValue(this.domElement).substring(Math.max(n.start,t),Math.min(n.end,i)).match(/^\s*$/)?n.start<t?this._setSelection(n.start,t):this._setSelection(i,n.end):this._setSelection(Math.min(n.start,t),Math.max(n.end,i)))}},{key:"_checkPaste",value:function(){if(!this.formatted&&!y.default.isUndefined(this.valuePartsBeforePaste)){var t=this.valuePartsBeforePaste,i=a(this._getLeftAndRightPartAroundTheSelection(),2),n=i[0],r=i[1];delete this.valuePartsBeforePaste;var o=n.substr(0,t[0].length)+e._stripAllNonNumberCharactersExceptCustomDecimalChar(n.substr(t[0].length),this.settings,!0,this.isFocused);this._setValueParts(o,r,!0)||(this._setElementValue(t.join(""),!1),this._setCaretPosition(t[0].length))}}},{key:"_processNonPrintableKeysAndShortcuts",value:function(e){if((e.ctrlKey||e.metaKey)&&"keyup"===e.type&&!y.default.isUndefined(this.valuePartsBeforePaste)||e.shiftKey&&this.eventKey===b.default.keyName.Insert)return this._checkPaste(),!1;if(this.constructor._shouldSkipEventKey(this.eventKey))return!0;if((e.ctrlKey||e.metaKey)&&this.eventKey===b.default.keyName.a)return this.settings.selectNumberOnly&&(e.preventDefault(),this.selectNumber()),!0;if((e.ctrlKey||e.metaKey)&&(this.eventKey===b.default.keyName.c||this.eventKey===b.default.keyName.v||this.eventKey===b.default.keyName.x))return"keydown"===e.type&&this._expandSelectionOnSign(),this.eventKey!==b.default.keyName.v&&this.eventKey!==b.default.keyName.Insert||("keydown"===e.type||"keypress"===e.type?y.default.isUndefined(this.valuePartsBeforePaste)&&(this.valuePartsBeforePaste=this._getLeftAndRightPartAroundTheSelection()):this._checkPaste()),"keydown"===e.type||"keypress"===e.type||this.eventKey===b.default.keyName.c;if(e.ctrlKey||e.metaKey)return!(this.eventKey===b.default.keyName.Z||this.eventKey===b.default.keyName.z);if(this.eventKey===b.default.keyName.LeftArrow||this.eventKey===b.default.keyName.RightArrow){if("keydown"===e.type&&!e.shiftKey){var t=y.default.getElementValue(this.domElement);this.eventKey!==b.default.keyName.LeftArrow||t.charAt(this.selection.start-2)!==this.settings.digitGroupSeparator&&t.charAt(this.selection.start-2)!==this.settings.decimalCharacter?this.eventKey!==b.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 y.default.isInArray(this.eventKey,b.default.keyName._directionKeys)}},{key:"_processCharacterDeletionIfTrailingNegativeSign",value:function(t){var i=a(t,2),n=i[0],r=i[1],o=y.default.getElementValue(this.domElement),s=y.default.isNegative(o,this.settings.negativeSignCharacter);if(this.settings.currencySymbolPlacement===e.options.currencySymbolPlacement.prefix&&this.settings.negativePositiveSignPlacement===e.options.negativePositiveSignPlacement.suffix&&(this.eventKey===b.default.keyName.Backspace?(this.caretFix=this.selection.start>=o.indexOf(this.settings.suffixText)&&""!==this.settings.suffixText,"-"===o.charAt(this.selection.start-1)?n=n.substring(1):this.selection.start<=o.length-this.settings.suffixText.length&&(n=n.substring(0,n.length-1))):(this.caretFix=this.selection.start>=o.indexOf(this.settings.suffixText)&&""!==this.settings.suffixText,this.selection.start>=o.indexOf(this.settings.currencySymbol)+this.settings.currencySymbol.length&&(r=r.substring(1,r.length)),y.default.isNegative(n,this.settings.negativeSignCharacter)&&"-"===o.charAt(this.selection.start)&&(n=n.substring(1)))),this.settings.currencySymbolPlacement===e.options.currencySymbolPlacement.suffix)switch(this.settings.negativePositiveSignPlacement){case e.options.negativePositiveSignPlacement.left:this.caretFix=this.selection.start>=o.indexOf(this.settings.negativeSignCharacter)+this.settings.negativeSignCharacter.length,this.eventKey===b.default.keyName.Backspace?this.selection.start===o.indexOf(this.settings.negativeSignCharacter)+this.settings.negativeSignCharacter.length&&s?n=n.substring(1):"-"!==n&&(this.selection.start<=o.indexOf(this.settings.negativeSignCharacter)||!s)&&(n=n.substring(0,n.length-1)):("-"===n[0]&&(r=r.substring(1)),this.selection.start===o.indexOf(this.settings.negativeSignCharacter)&&s&&(n=n.substring(1)));break;case e.options.negativePositiveSignPlacement.right:this.caretFix=this.selection.start>=o.indexOf(this.settings.negativeSignCharacter)+this.settings.negativeSignCharacter.length,this.eventKey===b.default.keyName.Backspace?this.selection.start===o.indexOf(this.settings.negativeSignCharacter)+this.settings.negativeSignCharacter.length?n=n.substring(1):"-"!==n&&this.selection.start<=o.indexOf(this.settings.negativeSignCharacter)-this.settings.currencySymbol.length?n=n.substring(0,n.length-1):""===n||s||(n=n.substring(0,n.length-1)):(this.caretFix=this.selection.start>=o.indexOf(this.settings.currencySymbol)&&""!==this.settings.currencySymbol,this.selection.start===o.indexOf(this.settings.negativeSignCharacter)&&(n=n.substring(1)),r=r.substring(1))}return[n,r]}},{key:"_processCharacterDeletion",value:function(){var e,t;if(this.selection.length){this._expandSelectionOnSign();var i=a(this._getUnformattedLeftAndRightPartAroundTheSelection(),2);e=i[0],t=i[1]}else{var n=a(this._getUnformattedLeftAndRightPartAroundTheSelection(),2);if(e=n[0],t=n[1],""===e&&""===t&&(this.throwInput=!1),this.isTrailingNegative&&y.default.isNegative(y.default.getElementValue(this.domElement),this.settings.negativeSignCharacter)){var r=a(this._processCharacterDeletionIfTrailingNegativeSign([e,t]),2);e=r[0],t=r[1]}else this.eventKey===b.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(e.options.decimalPlacesShownOnFocus.none)&&String(this.settings.decimalPlaces)!==String(e.options.decimalPlaces.none)}},{key:"_processCharacterInsertion",value:function(){var e=a(this._getUnformattedLeftAndRightPartAroundTheSelection(),2),t=e[0],i=e[1];if(this.eventKey!==b.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,""),i=i.replace(this.settings.decimalCharacter,"");else{if(y.default.contains(t,this.settings.decimalCharacter))return!0;if(i.indexOf(this.settings.decimalCharacter)>0)return!0;0===i.indexOf(this.settings.decimalCharacter)&&(i=i.substr(1))}return this.settings.negativeSignCharacter&&y.default.contains(i,this.settings.negativeSignCharacter)&&(t="".concat(this.settings.negativeSignCharacter).concat(t),i=i.replace(this.settings.negativeSignCharacter,"")),this._setValueParts(t+this.settings.decimalCharacter,i),!0}if(("-"===this.eventKey||"+"===this.eventKey)&&this.settings.isNegativeSignAllowed)return""===t&&y.default.contains(i,"-")?i=i.replace("-",""):t=y.default.isNegativeStrict(t,"-")?t.replace("-",""):"".concat(this.settings.negativeSignCharacter).concat(t),this._setValueParts(t,i),!0;var n=Number(this.eventKey);return n>=0&&n<=9?(this.settings.isNegativeSignAllowed&&""===t&&y.default.contains(i,"-")&&(t="-",i=i.substring(1,i.length)),this.settings.maximumValue<=0&&this.settings.minimumValue<this.settings.maximumValue&&!y.default.contains(y.default.getElementValue(this.domElement),this.settings.negativeSignCharacter)&&"0"!==this.eventKey&&(t="-".concat(t)),this._setValueParts("".concat(t).concat(this.eventKey),i),!0):(this.throwInput=!1,!1)}},{key:"_formatValue",value:function(t){var i=y.default.getElementValue(this.domElement),n=a(this._getUnformattedLeftAndRightPartAroundTheSelection(),1)[0];if((""===this.settings.digitGroupSeparator||""!==this.settings.digitGroupSeparator&&!y.default.contains(i,this.settings.digitGroupSeparator))&&(""===this.settings.currencySymbol||""!==this.settings.currencySymbol&&!y.default.contains(i,this.settings.currencySymbol))){var r=a(i.split(this.settings.decimalCharacter),1)[0],o="";y.default.isNegative(r,this.settings.negativeSignCharacter)&&(o=this.settings.negativeSignCharacter,r=r.replace(this.settings.negativeSignCharacter,""),n=n.replace("-","")),""===o&&r.length>this.settings.mIntPos&&"0"===n.charAt(0)&&(n=n.slice(1)),o===this.settings.negativeSignCharacter&&r.length>this.settings.mIntNeg&&"0"===n.charAt(0)&&(n=n.slice(1)),this.isTrailingNegative||(n="".concat(o).concat(n))}var s=this.constructor._addGroupSeparators(i,this.settings,this.isFocused,this.rawValue),l=s.length;if(s){var u,c=n.split("");if((this.settings.negativePositiveSignPlacement===e.options.negativePositiveSignPlacement.suffix||this.settings.negativePositiveSignPlacement!==e.options.negativePositiveSignPlacement.prefix&&this.settings.currencySymbolPlacement===e.options.currencySymbolPlacement.suffix)&&c[0]===this.settings.negativeSignCharacter&&!this.settings.isNegativeSignAllowed&&(c.shift(),(this.eventKey===b.default.keyName.Backspace||this.eventKey===b.default.keyName.Delete)&&this.caretFix&&((this.settings.currencySymbolPlacement===e.options.currencySymbolPlacement.suffix&&this.settings.negativePositiveSignPlacement===e.options.negativePositiveSignPlacement.left||this.settings.currencySymbolPlacement===e.options.currencySymbolPlacement.prefix&&this.settings.negativePositiveSignPlacement===e.options.negativePositiveSignPlacement.suffix)&&(c.push(this.settings.negativeSignCharacter),this.caretFix="keydown"===t.type),this.settings.currencySymbolPlacement===e.options.currencySymbolPlacement.suffix&&this.settings.negativePositiveSignPlacement===e.options.negativePositiveSignPlacement.right))){var d=this.settings.currencySymbol.split(""),h=["\\","^","$",".","|","?","*","+","(",")","["],f=[];d.forEach((function(e,t){t=d[e],y.default.isInArray(t,h)?f.push("\\"+t):f.push(t)})),this.eventKey===b.default.keyName.Backspace&&"-"===this.settings.negativeSignCharacter&&f.push("-"),c.push(f.join("")),this.caretFix="keydown"===t.type}for(var p=0;p<c.length;p++)c[p].match("\\d")||(c[p]="\\"+c[p]);u=this.settings.currencySymbolPlacement===e.options.currencySymbolPlacement.suffix?new RegExp("^.*?".concat(c.join(".*?"))):new RegExp("^.*?".concat(this.settings.currencySymbol).concat(c.join(".*?")));var m=s.match(u);m?(l=m[0].length,this.settings.showPositiveSign&&(0===l&&m.input.charAt(0)===this.settings.positiveSignCharacter&&(l=1===m.input.indexOf(this.settings.currencySymbol)?this.settings.currencySymbol.length+1:1),0===l&&m.input.charAt(this.settings.currencySymbol.length)===this.settings.positiveSignCharacter&&(l=this.settings.currencySymbol.length+1)),(0===l&&s.charAt(0)!==this.settings.negativeSignCharacter||1===l&&s.charAt(0)===this.settings.negativeSignCharacter)&&this.settings.currencySymbol&&this.settings.currencySymbolPlacement===e.options.currencySymbolPlacement.prefix&&(l=this.settings.currencySymbol.length+(y.default.isNegativeStr
15ict(s,this.settings.negativeSignCharacter)?1:0))):(this.settings.currencySymbol&&this.settings.currencySymbolPlacement===e.options.currencySymbolPlacement.suffix&&(l-=this.settings.currencySymbol.length),this.settings.suffixText&&(l-=this.settings.suffixText.length))}s!==i&&(this._setElementValue(s,!1),this._setCaretPosition(l)),this.formatted=!0}}],[{key:"version",value:function(){return"4.6.0"}},{key:"_setArgumentsValues",value:function(e,t,i){y.default.isNull(e)&&y.default.throwError("At least one valid parameter is needed in order to initialize an AutoNumeric object");var n,r,o,s=y.default.isElement(e),a=y.default.isString(e),l=y.default.isObject(t),u=Array.isArray(t)&&t.length>0,c=y.default.isNumberOrArabic(t)||""===t,d=this._isPreDefinedOptionValid(t),h=y.default.isNull(t),f=y.default.isEmptyString(t),p=y.default.isObject(i),m=Array.isArray(i)&&i.length>0,g=y.default.isNull(i),v=this._isPreDefinedOptionValid(i);return s&&h&&g?(n=e,o=null,r=null):s&&c&&g?(n=e,o=t,r=null):s&&l&&g?(n=e,o=null,r=t):s&&d&&g?(n=e,o=null,r=this._getOptionObject(t)):s&&u&&g?(n=e,o=null,r=this.mergeOptions(t)):s&&(h||f)&&p?(n=e,o=null,r=i):s&&(h||f)&&m?(n=e,o=null,r=this.mergeOptions(i)):a&&h&&g?(n=document.querySelector(e),o=null,r=null):a&&l&&g?(n=document.querySelector(e),o=null,r=t):a&&d&&g?(n=document.querySelector(e),o=null,r=this._getOptionObject(t)):a&&u&&g?(n=document.querySelector(e),o=null,r=this.mergeOptions(t)):a&&(h||f)&&p?(n=document.querySelector(e),o=null,r=i):a&&(h||f)&&m?(n=document.querySelector(e),o=null,r=this.mergeOptions(i)):a&&c&&g?(n=document.querySelector(e),o=t,r=null):a&&c&&p?(n=document.querySelector(e),o=t,r=i):a&&c&&v?(n=document.querySelector(e),o=t,r=this._getOptionObject(i)):a&&c&&m?(n=document.querySelector(e),o=t,r=this.mergeOptions(i)):s&&c&&p?(n=e,o=t,r=i):s&&c&&v?(n=e,o=t,r=this._getOptionObject(i)):s&&c&&m?(n=e,o=t,r=this.mergeOptions(i)):y.default.throwError("The parameters given to the AutoNumeric object are not valid, '".concat(e,"', '").concat(t,"' and '").concat(i,"' given.")),y.default.isNull(n)&&y.default.throwError("The selector '".concat(e,"' did not select any valid DOM element. Please check on which element you called AutoNumeric.")),{domElement:n,initialValue:o,userOptions:r}}},{key:"mergeOptions",value:function(e){var t=this,i={};return e.forEach((function(e){f(i,t._getOptionObject(e))})),i}},{key:"_isPreDefinedOptionValid",value:function(t){return Object.prototype.hasOwnProperty.call(e.predefinedOptions,t)}},{key:"_getOptionObject",value:function(t){var i;return y.default.isString(t)?null==(i=e.getPredefinedOptions()[t])&&y.default.warning("The given pre-defined option [".concat(t,"] is not recognized by autoNumeric. Please check that pre-defined option name."),!0):i=t,i}},{key:"_doesFormHandlerListExists",value:function(){var e=p(window.aNFormHandlerMap);return"undefined"!==e&&"object"===e}},{key:"_createFormHandlerList",value:function(){window.aNFormHandlerMap=new Map}},{key:"_checkValuesToStringsArray",value:function(e,t){return y.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,i=e.getElementsByTagName("input"),n=[];return Array.prototype.slice.call(i,0).forEach((function(e){t.test(e)&&n.push(e)})),n}},{key:"test",value:function(e){return this._isInGlobalList(y.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=p(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;y.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(t){var i=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;!y.default.isUndefinedOrNullOrEmpty(t)&&y.default.isObject(t)||y.default.throwError("The userOptions are invalid ; it should be a valid object, [".concat(t,"] given."));var r,o=y.default.isObject(n);o||y.default.isNull(n)||y.default.throwError("The 'originalOptions' parameter is invali
15d ; it should either be a valid option object or `null`, [".concat(t,"] given.")),y.default.isNull(t)||this._convertOldOptionsToNewOnes(t),r=i?f({},this.getDefaultConfig(),t):t,y.default.isTrueOrFalseString(r.showWarnings)||y.default.isBoolean(r.showWarnings)||y.default.throwError("The debug option 'showWarnings' is invalid ; it should be either 'true' or 'false', [".concat(r.showWarnings,"] given."));var s,l=/^[0-9]+$/,u=/[0-9]+/,c=/^-?[0-9]+(\.?[0-9]+)?$/,d=/^[0-9]+(\.?[0-9]+)?$/;y.default.isTrueOrFalseString(r.allowDecimalPadding)||y.default.isBoolean(r.allowDecimalPadding)||r.allowDecimalPadding===e.options.allowDecimalPadding.floats||y.default.throwError("The decimal padding option 'allowDecimalPadding' is invalid ; it should either be `false`, `true` or `'floats'`, [".concat(r.allowDecimalPadding,"] given.")),r.allowDecimalPadding!==e.options.allowDecimalPadding.never&&"false"!==r.allowDecimalPadding||r.decimalPlaces===e.options.decimalPlaces.none&&r.decimalPlacesShownOnBlur===e.options.decimalPlacesShownOnBlur.none&&r.decimalPlacesShownOnFocus===e.options.decimalPlacesShownOnFocus.none||y.default.warning("Setting 'allowDecimalPadding' to [".concat(r.allowDecimalPadding,"] will override the current 'decimalPlaces*' settings [").concat(r.decimalPlaces,", ").concat(r.decimalPlacesShownOnBlur," and ").concat(r.decimalPlacesShownOnFocus,"]."),r.showWarnings),y.default.isTrueOrFalseString(r.alwaysAllowDecimalCharacter)||y.default.isBoolean(r.alwaysAllowDecimalCharacter)||y.default.throwError("The option 'alwaysAllowDecimalCharacter' is invalid ; it should either be `true` or `false`, [".concat(r.alwaysAllowDecimalCharacter,"] given.")),y.default.isNull(r.caretPositionOnFocus)||y.default.isInArray(r.caretPositionOnFocus,[e.options.caretPositionOnFocus.start,e.options.caretPositionOnFocus.end,e.options.caretPositionOnFocus.decimalLeft,e.options.caretPositionOnFocus.decimalRight])||y.default.throwError("The display on empty string option 'caretPositionOnFocus' is invalid ; it should either be `null`, 'focus', 'press', 'always' or 'zero', [".concat(r.caretPositionOnFocus,"] given.")),s=o?n:this._correctCaretPositionOnFocusAndSelectOnFocusOptions(t),y.default.isNull(s)||s.caretPositionOnFocus===e.options.caretPositionOnFocus.doNoForceCaretPosition||s.selectOnFocus!==e.options.selectOnFocus.select||y.default.warning("The 'selectOnFocus' option is set to 'select', which is in conflict with the 'caretPositionOnFocus' which is set to '".concat(s.caretPositionOnFocus,"'. As a result, if this has been called when instantiating an AutoNumeric object, the 'selectOnFocus' option is forced to 'doNotSelect'."),r.showWarnings),y.default.isInArray(r.digitGroupSeparator,[e.options.digitGroupSeparator.comma,e.options.digitGroupSeparator.dot,e.options.digitGroupSeparator.normalSpace,e.options.digitGroupSeparator.thinSpace,e.options.digitGroupSeparator.narrowNoBreakSpace,e.options.digitGroupSeparator.noBreakSpace,e.options.digitGroupSeparator.noSeparator,e.options.digitGroupSeparator.apostrophe,e.options.digitGroupSeparator.arabicThousandsSeparator,e.options.digitGroupSeparator.dotAbove,e.options.digitGroupSeparator.privateUseTwo])||y.default.throwError("The thousand separator character option 'digitGroupSeparator' is invalid ; it should be ',', '.', '\u066c', '\u02d9', \"'\", '\x92', ' ', '\u2009', '\u202f', '\xa0' or empty (''), [".concat(r.digitGroupSeparator,"] given.")),y.default.isTrueOrFalseString(r.showOnlyNumbersOnFocus)||y.default.isBoolean(r.showOnlyNumbersOnFocus)||y.default.throwError("The 'showOnlyNumbersOnFocus' option is invalid ; it should be either 'true' or 'false', [".concat(r.showOnlyNumbersOnFocus,"] given.")),y.default.isInArray(r.digitalGroupSpacing,[e.options.digitalGroupSpacing.two,e.options.digitalGroupSpacing.twoScaled,e.options.digitalGroupSpacing.three,e.options.digitalGroupSpacing.four])||r.digitalGroupSpacing>=2&&r.digitalGroupSpacing<=4||y.default.throwError("The grouping separator option for thousands 'digitalGroupSpacing' is invalid ; it should be '2', '2s', '3', or '4', [".concat(r.digitalGroupSpacing,"] given.")),y.default.isInArray(r.decimalCharacter,[e.options.decimalCharacter.comma,e.options.decimalCharacter.dot,e.options.decimalCharacter.middleDot,e.options.decimalCharacter.arabicDecimalSeparator,e.options.decimalCharacter.decimalSeparatorKeySymbol])||y.default.throwError("The decimal separator character option 'decimalCharacter' is invali
15d ; it should be '.', ',', '\xb7', '\u2396' or '\u066b', [".concat(r.decimalCharacter,"] given.")),r.decimalCharacter===r.digitGroupSeparator&&y.default.throwError("autoNumeric will not function properly when the decimal character 'decimalCharacter' [".concat(r.decimalCharacter,"] and the thousand separator 'digitGroupSeparator' [").concat(r.digitGroupSeparator,"] are the same character.")),y.default.isNull(r.decimalCharacterAlternative)||y.default.isString(r.decimalCharacterAlternative)||y.default.throwError("The alternate decimal separator character option 'decimalCharacterAlternative' is invalid ; it should be a string, [".concat(r.decimalCharacterAlternative,"] given.")),""===r.currencySymbol||y.default.isString(r.currencySymbol)||y.default.throwError("The currency symbol option 'currencySymbol' is invalid ; it should be a string, [".concat(r.currencySymbol,"] given.")),y.default.isInArray(r.currencySymbolPlacement,[e.options.currencySymbolPlacement.prefix,e.options.currencySymbolPlacement.suffix])||y.default.throwError("The placement of the currency sign option 'currencySymbolPlacement' is invalid ; it should either be 'p' (prefix) or 's' (suffix), [".concat(r.currencySymbolPlacement,"] given.")),y.default.isInArray(r.negativePositiveSignPlacement,[e.options.negativePositiveSignPlacement.prefix,e.options.negativePositiveSignPlacement.suffix,e.options.negativePositiveSignPlacement.left,e.options.negativePositiveSignPlacement.right,e.options.negativePositiveSignPlacement.none])||y.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(r.negativePositiveSignPlacement,"] given.")),y.default.isTrueOrFalseString(r.showPositiveSign)||y.default.isBoolean(r.showPositiveSign)||y.default.throwError("The show positive sign option 'showPositiveSign' is invalid ; it should be either 'true' or 'false', [".concat(r.showPositiveSign,"] given.")),(!y.default.isString(r.suffixText)||""!==r.suffixText&&(y.default.isNegative(r.suffixText,r.negativeSignCharacter)||u.test(r.suffixText)))&&y.default.throwError("The additional suffix option 'suffixText' is invalid ; it should not contains the negative sign '".concat(r.negativeSignCharacter,"' nor any numerical characters, [").concat(r.suffixText,"] given.")),(!y.default.isString(r.negativeSignCharacter)||1!==r.negativeSignCharacter.length||y.default.isUndefinedOrNullOrEmpty(r.negativeSignCharacter)||u.test(r.negativeSignCharacter))&&y.default.throwError("The negative sign character option 'negativeSignCharacter' is invalid ; it should be a single character, and cannot be any numerical characters, [".concat(r.negativeSignCharacter,"] given.")),(!y.default.isString(r.positiveSignCharacter)||1!==r.positiveSignCharacter.length||y.default.isUndefinedOrNullOrEmpty(r.positiveSignCharacter)||u.test(r.positiveSignCharacter))&&y.default.throwError("The positive sign character option 'positiveSignCharacter' is invalid ; it should be a single character, and cannot be any numerical characters, [".concat(r.positiveSignCharacter,"] given.\nIf you want to hide the positive sign character, you need to set the `showPositiveSign` option to `true`.")),r.negativeSignCharacter===r.positiveSignCharacter&&y.default.throwError("The positive 'positiveSignCharacter' and negative 'negativeSignCharacter' sign characters cannot be identical ; [".concat(r.negativeSignCharacter,"] given."));var h=a(y.default.isNull(r.negativeBracketsTypeOnBlur)?["",""]:r.negativeBracketsTypeOnBlur.split(","),2),m=h[0],g=h[1];(y.default.contains(r.digitGroupSeparator,r.negativeSignCharacter)||y.default.contains(r.decimalCharacter,r.negativeSignCharacter)||y.default.contains(r.decimalCharacterAlternative,r.negativeSignCharacter)||y.default.contains(m,r.negativeSignCharacter)||y.default.contains(g,r.negativeSignCharacter)||y.default.contains(r.suffixText,r.negativeSignCharacter))&&y.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(r.negativeSignCharacter,"] given.")),(y.default.contains(r.digitGroupSeparator,r.positiveSignCharacter)||y.default.contains(r.decimalCharacter,r.positiveSignCharacter)||y.default.contains(r.decimalCharacterAlternative,r.positiveSignCharacter)||y.default.contains(m,r.positiveSignCharacter)||y.default.contains(g,r.positiveSignCharacter)||y.default.contains(r.suffixText,r.positiveSignCharacter))&&y.default.throwError("The positive sign character option 'positiveSignCharacter' is invali
15d ; 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(r.positiveSignCharacter,"] given.")),y.default.isNull(r.overrideMinMaxLimits)||y.default.isInArray(r.overrideMinMaxLimits,[e.options.overrideMinMaxLimits.ceiling,e.options.overrideMinMaxLimits.floor,e.options.overrideMinMaxLimits.ignore,e.options.overrideMinMaxLimits.invalid])||y.default.throwError("The override min & max limits option 'overrideMinMaxLimits' is invalid ; it should either be 'ceiling', 'floor', 'ignore' or 'invalid', [".concat(r.overrideMinMaxLimits,"] given.")),r.overrideMinMaxLimits!==e.options.overrideMinMaxLimits.invalid&&r.overrideMinMaxLimits!==e.options.overrideMinMaxLimits.ignore&&(r.minimumValue>0||r.maximumValue<0)&&y.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."),y.default.isString(r.maximumValue)&&c.test(r.maximumValue)||y.default.throwError("The maximum possible value option 'maximumValue' is invalid ; it should be a string that represents a positive or negative number, [".concat(r.maximumValue,"] given.")),y.default.isString(r.minimumValue)&&c.test(r.minimumValue)||y.default.throwError("The minimum possible value option 'minimumValue' is invalid ; it should be a string that represents a positive or negative number, [".concat(r.minimumValue,"] given.")),parseFloat(r.minimumValue)>parseFloat(r.maximumValue)&&y.default.throwError("The minimum possible value option is greater than the maximum possible value option ; 'minimumValue' [".concat(r.minimumValue,"] should be smaller than 'maximumValue' [").concat(r.maximumValue,"].")),y.default.isInt(r.decimalPlaces)&&r.decimalPlaces>=0||y.default.isString(r.decimalPlaces)&&l.test(r.decimalPlaces)||y.default.throwError("The number of decimal places option 'decimalPlaces' is invalid ; it should be a positive integer, [".concat(r.decimalPlaces,"] given.")),y.default.isNull(r.decimalPlacesRawValue)||y.default.isInt(r.decimalPlacesRawValue)&&r.decimalPlacesRawValue>=0||y.default.isString(r.decimalPlacesRawValue)&&l.test(r.decimalPlacesRawValue)||y.default.throwError("The number of decimal places for the raw value option 'decimalPlacesRawValue' is invalid ; it should be a positive integer or `null`, [".concat(r.decimalPlacesRawValue,"] given.")),this._validateDecimalPlacesRawValue(r),y.default.isNull(r.decimalPlacesShownOnFocus)||l.test(String(r.decimalPlacesShownOnFocus))||y.default.throwError("The number of expanded decimal places option 'decimalPlacesShownOnFocus' is invalid ; it should be a positive integer or `null`, [".concat(r.decimalPlacesShownOnFocus,"] given.")),!y.default.isNull(r.decimalPlacesShownOnFocus)&&Number(r.decimalPlaces)>Number(r.decimalPlacesShownOnFocus)&&y.default.warning("The extended decimal places 'decimalPlacesShownOnFocus' [".concat(r.decimalPlacesShownOnFocus,"] should be greater than the 'decimalPlaces' [").concat(r.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?"),r.showWarnings),
16(y.default.isNull(r.divisorWhenUnfocused)||d.test(r.divisorWhenUnfocused))&&0!==r.divisorWhenUnfocused&&"0"!==r.divisorWhenUnfocused&&1!==r.divisorWhenUnfocused&&"1"!==r.divisorWhenUnfocused||y.default.throwError("The divisor option 'divisorWhenUnfocused' is invalid ; it should be a positive number higher than one, preferably an integer, [".concat(r.divisorWhenUnfocused,"] given.")),y.default.isNull(r.decimalPlacesShownOnBlur)||l.test(r.decimalPlacesShownOnBlur)||y.default.throwError("The number of decimals shown when unfocused option 'decimalPlacesShownOnBlur' is invalid ; it should be a positive integer or `null`, [".concat(r.decimalPlacesShownOnBlur,"] given.")),y.default.isNull(r.symbolWhenUnfocused)||y.default.isString(r.symbolWhenUnfocused)||y.default.throwError("The symbol to show when unfocused option 'symbolWhenUnfocused' is invali
16d ; it should be a string, [".concat(r.symbolWhenUnfocused,"] given.")),y.default.isTrueOrFalseString(r.saveValueToSessionStorage)||y.default.isBoolean(r.saveValueToSessionStorage)||y.default.throwError("The save to session storage option 'saveValueToSessionStorage' is invalid ; it should be either 'true' or 'false', [".concat(r.saveValueToSessionStorage,"] given.")),y.default.isInArray(r.onInvalidPaste,[e.options.onInvalidPaste.error,e.options.onInvalidPaste.ignore,e.options.onInvalidPaste.clamp,e.options.onInvalidPaste.truncate,e.options.onInvalidPaste.replace])||y.default.throwError("The paste behavior option 'onInvalidPaste' is invalid ; it should either be 'error', 'ignore', 'clamp', 'truncate' or 'replace' (cf. documentation), [".concat(r.onInvalidPaste,"] given.")),y.default.isInArray(r.roundingMethod,[e.options.roundingMethod.halfUpSymmetric,e.options.roundingMethod.halfUpAsymmetric,e.options.roundingMethod.halfDownSymmetric,e.options.roundingMethod.halfDownAsymmetric,e.options.roundingMethod.halfEvenBankersRounding,e.options.roundingMethod.upRoundAwayFromZero,e.options.roundingMethod.downRoundTowardZero,e.options.roundingMethod.toCeilingTowardPositiveInfinity,e.options.roundingMethod.toFloorTowardNegativeInfinity,e.options.roundingMethod.toNearest05,e.options.roundingMethod.toNearest05Alt,e.options.roundingMethod.upToNext05,e.options.roundingMethod.downToNext05])||y.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(r.roundingMethod,"] given.")),y.default.isNull(r.negativeBracketsTypeOnBlur)||y.default.isInArray(r.negativeBracketsTypeOnBlur,[e.options.negativeBracketsTypeOnBlur.parentheses,e.options.negativeBracketsTypeOnBlur.brackets,e.options.negativeBracketsTypeOnBlur.chevrons,e.options.negativeBracketsTypeOnBlur.curlyBraces,e.options.negativeBracketsTypeOnBlur.angleBrackets,e.options.negativeBracketsTypeOnBlur.japaneseQuotationMarks,e.options.negativeBracketsTypeOnBlur.halfBrackets,e.options.negativeBracketsTypeOnBlur.whiteSquareBrackets,e.options.negativeBracketsTypeOnBlur.quotationMarks,e.options.negativeBracketsTypeOnBlur.guillemets])||y.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(r.negativeBracketsTypeOnBlur,"] given.")),(y.default.isString(r.emptyInputBehavior)||y.default.isNumber(r.emptyInputBehavior))&&(y.default.isInArray(r.emptyInputBehavior,[e.options.emptyInputBehavior.focus,e.options.emptyInputBehavior.press,e.options.emptyInputBehavior.always,e.options.emptyInputBehavior.min,e.options.emptyInputBehavior.max,e.options.emptyInputBehavior.zero,e.options.emptyInputBehavior.null])||c.test(r.emptyInputBehavior))||y.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(r.emptyInputBehavior,"] given.")),r.emptyInputBehavior===e.options.emptyInputBehavior.zero&&(r.minimumValue>0||r.maximumValue<0)&&y.default.throwError("The 'emptyInputBehavior' option is set to 'zero', but this value is outside of the range defined by 'minimumValue' and 'maximumValue' [".concat(r.minimumValue,", ").concat(r.maximumValue,"].")),c.test(String(r.emptyInputBehavior))&&(this._isWithinRangeWithOverrideOption(r.emptyInputBehavior,r)||y.default.throwError("The 'emptyInputBehavior' option is set to a number or a string that represents a number, but its value [".concat(r.emptyInputBehavior,"] is outside of the range defined by the 'minimumValue' and 'maximumValue' options [").concat(r.minimumValue,", ").concat(r.maximumValue,"]."))),y.default.isTrueOrFalseString(r.eventBubbles)||y.default.isBoolean(r.eventBubbles)||y.default.throwError("The event bubbles option 'eventBubbles' is invalid ; it should be either 'true' or 'false', [".concat(r.eventBubbles,"] given.")),y.default.isTrueOrFalseString(r.eventIsCancelable)||y.default.isBoolean(r.eventIsCancelable)||y.default.throwError("The event is cancelable option 'eventIsCancelable' is invali
16d ; it should be either 'true' or 'false', [".concat(r.eventIsCancelable,"] given.")),!y.default.isBoolean(r.invalidClass)&&/^-?[_a-zA-Z]+[_a-zA-Z0-9-]*$/.test(r.invalidClass)||y.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(r.invalidClass,"] given.")),y.default.isInArray(r.leadingZero,[e.options.leadingZero.allow,e.options.leadingZero.deny,e.options.leadingZero.keep])||y.default.throwError("The leading zero behavior option 'leadingZero' is invalid ; it should either be 'allow', 'deny' or 'keep', [".concat(r.leadingZero,"] given.")),y.default.isTrueOrFalseString(r.formatOnPageLoad)||y.default.isBoolean(r.formatOnPageLoad)||y.default.throwError("The format on initialization option 'formatOnPageLoad' is invalid ; it should be either 'true' or 'false', [".concat(r.formatOnPageLoad,"] given.")),y.default.isTrueOrFalseString(r.formulaMode)||y.default.isBoolean(r.formulaMode)||y.default.throwError("The formula mode option 'formulaMode' is invalid ; it should be either 'true' or 'false', [".concat(r.formulaMode,"] given.")),l.test(r.historySize)&&0!==r.historySize||y.default.throwError("The history size option 'historySize' is invalid ; it should be a positive integer, [".concat(r.historySize,"] given.")),y.default.isTrueOrFalseString(r.selectNumberOnly)||y.default.isBoolean(r.selectNumberOnly)||y.default.throwError("The select number only option 'selectNumberOnly' is invalid ; it should be either 'true' or 'false', [".concat(r.selectNumberOnly,"] given.")),y.default.isTrueOrFalseString(r.selectOnFocus)||y.default.isBoolean(r.selectOnFocus)||y.default.throwError("The select on focus option 'selectOnFocus' is invalid ; it should be either 'true' or 'false', [".concat(r.selectOnFocus,"] given.")),y.default.isNull(r.defaultValueOverride)||""===r.defaultValueOverride||c.test(r.defaultValueOverride)||y.default.throwError("The unformatted default value option 'defaultValueOverride' is invalid ; it should be a string that represents a positive or negative number, [".concat(r.defaultValueOverride,"] given.")),y.default.isTrueOrFalseString(r.unformatOnSubmit)||y.default.isBoolean(r.unformatOnSubmit)||y.default.throwError("The remove formatting on submit option 'unformatOnSubmit' is invalid ; it should be either 'true' or 'false', [".concat(r.unformatOnSubmit,"] given.")),y.default.isNull(r.valuesToStrings)||y.default.isObject(r.valuesToStrings)||y.default.throwError("The option 'valuesToStrings' is invalid ; it should be an object, ideally with 'key -> value' entries, [".concat(r.valuesToStrings,"] given.")),y.default.isNull(r.outputFormat)||y.default.isInArray(r.outputFormat,[e.options.outputFormat.string,e.options.outputFormat.number,e.options.outputFormat.dot,e.options.outputFormat.negativeDot,e.options.outputFormat.comma,e.options.outputFormat.negativeComma,e.options.outputFormat.dotNegative,e.options.outputFormat.commaNegative])||y.default.throwError("The custom locale format option 'outputFormat' is invalid ; it should either be null, 'string', 'number', '.', '-.', ',', '-,', '.-' or ',-', [".concat(r.outputFormat,"] given.")),y.default.isTrueOrFalseString(r.isCancellable)||y.default.isBoolean(r.isCancellable)||y.default.throwError("The cancellable behavior option 'isCancellable' is invalid ; it should be either 'true' or 'false', [".concat(r.isCancellable,"] given.")),y.default.isTrueOrFalseString(r.modifyValueOnWheel)||y.default.isBoolean(r.modifyValueOnWheel)||y.default.throwError("The increment/decrement on mouse wheel option 'modifyValueOnWheel' is invalid ; it should be either 'true' or 'false', [".concat(r.modifyValueOnWheel,"] given.")),y.default.isTrueOrFalseString(r.watchExternalChanges)||y.default.isBoolean(r.watchExternalChanges)||y.default.throwError("The option 'watchExternalChanges' is invalid ; it should be either 'true' or 'false', [".concat(r.watchExternalChanges,"] given.")),y.default.isInArray(r.wheelOn,[e.options.wheelOn.focus,e.options.wheelOn.hover])||y.default.throwError("The wheel behavior option 'wheelOn' is invali
16d ; it should either be 'focus' or 'hover', [".concat(r.wheelOn,"] given.")),(!y.default.isString(r.wheelStep)&&!y.default.isNumber(r.wheelStep)||"progressive"!==r.wheelStep&&!d.test(r.wheelStep)||0===Number(r.wheelStep))&&y.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(r.wheelStep,"] given.")),y.default.isInArray(r.serializeSpaces,[e.options.serializeSpaces.plus,e.options.serializeSpaces.percent])||y.default.throwError("The space replacement character option 'serializeSpaces' is invalid ; it should either be '+' or '%20', [".concat(r.serializeSpaces,"] given.")),y.default.isTrueOrFalseString(r.noEventListeners)||y.default.isBoolean(r.noEventListeners)||y.default.throwError("The option 'noEventListeners' that prevent the creation of event listeners is invalid ; it should be either 'true' or 'false', [".concat(r.noEventListeners,"] given.")),y.default.isNull(r.styleRules)||y.default.isObject(r.styleRules)&&(Object.prototype.hasOwnProperty.call(r.styleRules,"positive")||Object.prototype.hasOwnProperty.call(r.styleRules,"negative")||Object.prototype.hasOwnProperty.call(r.styleRules,"ranges")||Object.prototype.hasOwnProperty.call(r.styleRules,"userDefined"))||y.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(r.styleRules,"] given.")),y.default.isNull(r.styleRules)||!Object.prototype.hasOwnProperty.call(r.styleRules,"userDefined")||y.default.isNull(r.styleRules.userDefined)||r.styleRules.userDefined.forEach((function(e){Object.prototype.hasOwnProperty.call(e,"callback")&&!y.default.isFunction(e.callback)&&y.default.throwError("The callback defined in the `userDefined` attribute is not a function, ".concat(p(e.callback)," given."))})),(y.default.isNull(r.rawValueDivisor)||d.test(r.rawValueDivisor))&&0!==r.rawValueDivisor&&"0"!==r.rawValueDivisor&&1!==r.rawValueDivisor&&"1"!==r.rawValueDivisor||y.default.throwError("The raw value divisor option 'rawValueDivisor' is invalid ; it should be a positive number higher than one, preferably an integer, [".concat(r.rawValueDivisor,"] given.")),y.default.isTrueOrFalseString(r.readOnly)||y.default.isBoolean(r.readOnly)||y.default.throwError("The option 'readOnly' is invalid ; it should be either 'true' or 'false', [".concat(r.readOnly,"] given.")),y.default.isTrueOrFalseString(r.unformatOnHover)||y.default.isBoolean(r.unformatOnHover)||y.default.throwError("The option 'unformatOnHover' is invalid ; it should be either 'true' or 'false', [".concat(r.unformatOnHover,"] given.")),y.default.isTrueOrFalseString(r.failOnUnknownOption)||y.default.isBoolean(r.failOnUnknownOption)||y.default.throwError("The debug option 'failOnUnknownOption' is invalid ; it should be either 'true' or 'false', [".concat(r.failOnUnknownOption,"] given.")),y.default.isTrueOrFalseString(r.createLocalList)||y.default.isBoolean(r.createLocalList)||y.default.throwError("The debug option 'createLocalList' is invalid ; it should be either 'true' or 'false', [".concat(r.createLocalList,"] given."))}},{key:"_validateDecimalPlacesRawValue",value:function(e){y.default.isNull(e.decimalPlacesRawValue)||(e.decimalPlacesRawValue<e.decimalPlaces&&y.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&&y.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&&y.default.warning("The number of decimal places to 
16store 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(e){t=!1}return t}},{key:"getDefaultConfig",value:function(){return e.defaultSettings}},{key:"getPredefinedOptions",value:function(){return e.predefinedOptions}},{key:"_generateOptionsObjectFromOptionsArray",value:function(e){var t,i=this;return y.default.isUndefinedOrNullOrEmpty(e)||0===e.length?t=null:(t={},1===e.length&&Array.isArray(e[0])?e[0].forEach((function(e){f(t,i._getOptionObject(e))})):e.length>=1&&e.forEach((function(e){f(t,i._getOptionObject(e))}))),t}},{key:"format",value:function(t){if(y.default.isUndefined(t)||null===t)return null;var i;i=y.default.isElement(t)?y.default.getElementValue(t):t,y.default.isString(i)||y.default.isNumber(i)||y.default.throwError('The value "'.concat(i,'" being "set" is not numeric and therefore cannot be used appropriately.'));for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];var s=this._generateOptionsObjectFromOptionsArray(r),a=f({},this.getDefaultConfig(),s);a.isNegativeSignAllowed=i<0,a.isPositiveSignAllowed=i>=0,this._setBrackets(a);var l={};this._cachesUsualRegularExpressions(a,l);var u=this._toNumericValue(i,a);return isNaN(Number(u))&&y.default.throwError("The value [".concat(u,"] that you are trying to format is not a recognized number.")),this._isWithinRangeWithOverrideOption(u,a)||(y.default.triggerEvent(e.events.formatted,document,{oldValue:null,newValue:null,oldRawValue:null,newRawValue:null,isPristine:null,error:"Range test failed",aNElement:null},!0,!0),y.default.throwError("The value [".concat(u,"] being set falls outside of the minimumValue [").concat(a.minimumValue,"] and maximumValue [").concat(a.maximumValue,"] range set for this element"))),a.valuesToStrings&&this._checkValuesToStringsSettings(i,a)?a.valuesToStrings[i]:(this._correctNegativePositiveSignPlacementOption(a),this._calculateDecimalPlacesOnInit(a),y.default.isUndefinedOrNullOrEmpty(a.rawValueDivisor)||0===a.rawValueDivisor||""===u||null===u||(u*=a.rawValueDivisor),u=this._roundFormattedValueShownOnFocus(u,a),u=this._modifyNegativeSignAndDecimalCharacterForFormattedValue(u,a),u=this._addGroupSeparators(u,a,!1,u))}},{key:"formatAndSet",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,i=this.format(e,t);return y.default.setElementValue(e,i),i}},{key:"unformat",value:function(e){if(y.default.isNumberStrict(e))return e;var t;if(""===(t=y.default.isElement(e)?y.default.getElementValue(e):e))return"";if(y.default.isUndefined(t)||null===t)return null;(y.default.isArray(t)||y.default.isObject(t))&&y.default.throwError("A number or a string representing a number is needed to be able to unformat it, [".concat(t,"] given."));for(var i=arguments.length,n=new Array(i>1?i-1:0),r=1;r<i;r++)n[r-1]=arguments[r];var o=this._generateOptionsObjectFromOptionsArray(n),s=f({},this.getDefaultConfig(),o);if(s.isNegativeSignAllowed=!1,s.isPositiveSignAllowed=!0,t=t.toString(),s.valuesToStrings&&this._checkStringsToValuesSettings(t,s))return y.default.objectKeyLookup(s.valuesToStrings,t);if(y.default.isNegative(t,s.negativeSignCharacter))s.isNegativeSignAllowed=!0,s.isPositiveSignAllowed=!1;else if(!y.default.isNull(s.negativeBracketsTypeOnBlur)){var l=a(s.negativeBracketsTypeOnBlur.split(","),2);s.firstBracket=l[0],s.lastBracket=l[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),y.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){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,i=this.unformat(e,t);return y.default.setElementValue(e,i),i}},{key:"localize",value:function(t){var i,n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return""===(i=y.default.isElement(t)?y.default.getElementValue(t):t)?"":(y.default.isNull(r)&&(r=e.defaultSettings),i=this.unformat(i,r),0===Number(i)&&r.leadingZero!==e.options.leadingZero.keep&&(i="0"),n=y.default.isNull(r)?r.outputFormat:e.defaultSettings.outputFormat,this._toLocale(i,n,r))}},{key:"localizeAndSet",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,i=this.localize(e,t);return y.default.setElementValue(e,i),i}},{key:"isManagedByAutoNumeric",value:function(e){return this._isInGlobalList(y.default.domElement(e))}},{key:"getAutoNumericElement",value:function(e){var t=y.default.domElement(e);return this.isManagedByAutoNumeric(t)?this._getFromGlobalList(t):null}},{key:"set",value:function(e,t){var i,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,r=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],o=y.default.domElement(e);return this.isManagedByAutoNumeric(o)?this.getAutoNumericElement(o).set(t,n,r):(i=!(!y.default.isNull(n)&&Object.prototype.hasOwnProperty.call(n,"showWarnings"))||n.showWarnings,y.default.warning("Impossible to find an AutoNumeric object for the given DOM element or selector.",i),null)}},{key:"getNumericString",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return this._get(e,"getNumericString",t)}},{key:"getFormatted",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return this._get(e,"getFormatted",t)}},{key:"getNumber",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return this._get(e,"getNumber",t)}},{key:"_get",value:function(e,t){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,n=y.default.domElement(e);return this.isManagedByAutoNumeric(n)||y.default.throwError("Impossible to find an AutoNumeric object for the given DOM element or selector."),this.getAutoNumericElement(n)[t](i)}},{key:"getLocalized",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,n=y.default.domElement(e);return this.isManagedByAutoNumeric(n)||y.default.throwError("Impossible to find an AutoNumeric object for the given DOM element or selector."),this.getAutoNumericElement(n).getLocalized(t,i)}},{key:"_stripAllNonNumberCharacters",value:function(e,t,i,n){return this._stripAllNonNumberCharactersExceptCustomDecimalChar(e,t,i,n).replace(t.decimalCharacter,".")}},{key:"_stripAllNonNumberCharactersExceptCustomDecimalChar",value:function(t,i,n,r){var o=(t=(t=this._normalizeCurrencySuffixAndNegativeSignCharacters(t,i)).replace(i.allowedAutoStrip,"")).match(i.numRegAutoStrip);if(t=o?[o[1],o[2],o[3]].join(""):"",i.leadingZero===e.options.leadingZero.allow||i.leadingZero===e.options.leadingZero.keep){var s="",l=a(t.split(i.decimalCharacter),2),u=l[0],c=l[1],d=u;y.default.contains(d,i.negativeSignCharacter)&&(s=i.negativeSignCharacter,d=d.replace(i.negativeSignCharacter,"")),""===s&&d.length>i.mIntPos&&"0"===d.charAt(0)&&(d=d.slice(1)),""!==s&&d.length>i.mIntNeg&&"0"===d.charAt(0)&&(d=d.slice(1)),t="".concat(s).concat(d).concat(y.default.isUndefined(c)?"":i.decimalCharacter+c)}return(n&&i.leadingZero===e.options.leadingZero.deny||!r&&i.leadingZero===e.options.leadingZero.allow)&&(t=t.replace(i.stripReg,"$1$2")),t}},{key:"_toggleNegativeBracket",value:function(e,t,i){return i?this._removeBrackets(e,t):this._addBrackets(e,t)}},{key:"_addBrackets",value:function(e,t){return y.default.isNull(t.negativeBracketsTypeOnBlur)?e:"".concat(t.firstBracket).concat(e.replace(t.negativeSignCharacter,"")).concat(t.lastBracket)}},{key:"_removeBrackets",value:function(e,t){var i,n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];return y.default.isNull(t.negativeBracketsTypeOnBlur)||e.charAt(0)!==t.firstBracket?i=e:(i=(i=e.replace(t.firstBracket,"")).replace(t.lastBracket,""),n?(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(y.default.isNull(e.negativeBracketsTypeOnBlur))e.firstBracket="",e.lastBracket="";else{var t=a(e.negativeBracketsTypeOnBlur.split(","),2),i=t[0],n=t[1];e.firstBracket=i,e.lastBracket=n}}},{key:"_convertToNumericString",value:function(t,i){t=this._removeBrackets(t,i,!1),t=(t=this._normalizeCurrencySuffixAndNegativeSignCharacters(t,i)).replace(new RegExp("[".concat(i.digitGroupSeparator,"]"),"g"),""),"."!==i.decimalCharacter&&(t=t.replace(i.decimalCharacter,".")),y.default.isNegative(t)&&t.lastIndexOf("-")===t.length-1&&(t=t.replace("-",""),t="-".concat(t)),i.showPositiveSign&&(t=t.replace(i.positiveSignCharacter,""));var n=i.leadingZero!==e.options.leadingZero.keep,r=y.default.arabicToLatinNumbers(t,n,!1,!1);return isNaN(r)||(t=r.toString()),t}},{key:"_normalizeCurrencySuffixAndNegativeSignCharacters",value:function(t,i){return t=String(t),i.currencySymbol!==e.options.currencySymbol.none&&(t=t.replace(i.currencySymbol,"")),i.suffixText!==e.options.suffixText.none&&(t=t.replace(i.suffixText,"")),i.negativeSignCharacter!==e.options.negativeSignCharacter.hyphen&&(t=t.replace(i.negativeSignCharacter,"-")),t}},{key:"_toLocale",value:function(t,i,n){if(y.default.isNull(i)||i===e.options.outputFormat.string)return t;var r;switch(i){case e.options.outputFormat.number:r=Number(t);break;case e.options.outputFormat.dotNegative:r=y.default.isNegative(t)?t.replace("-","")+"-":t;break;case e.options.outputFormat.comma:case e.options.outputFormat.negativeComma:r=t.replace(".",",");break;case e.options.outputFormat.commaNegative:r=t.replace(".",","),r=y.default.isNegative(r)?r.replace("-","")+"-":r;break;case e.options.outputFormat.dot:case e.options.outputFormat.negativeDot:r=t;break;default:y.default.throwError("The given outputFormat [".concat(i,"] o
16ption is not recognized."))}return i!==e.options.outputFormat.number&&"-"!==n.negativeSignCharacter&&(r=r.replace("-",n.negativeSignCharacter)),r}},{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(t,i,n){var r;if(i.emptyInputBehavior===e.options.emptyInputBehavior.always||n)switch(i.negativePositiveSignPlacement){case e.options.negativePositiveSignPlacement.left:case e.options.negativePositiveSignPlacement.prefix:case e.options.negativePositiveSignPlacement.none:r=t+i.currencySymbol+i.suffixText;break;default:r=i.currencySymbol+t+i.suffixText}else r=t;return r}},{key:"_addGroupSeparators",value:function(t,i,n,r){var o,s=arguments.length>4&&void 0!==arguments[4]?arguments[4]:null;if(o=y.default.isNull(s)?y.default.isNegative(t,i.negativeSignCharacter)||y.default.isNegativeWithBrackets(t,i.firstBracket,i.lastBracket):s<0,t=this._stripAllNonNumberCharactersExceptCustomDecimalChar(t,i,!1,n),this._isElementValueEmptyOrOnlyTheNegativeSign(t,i))return this._orderValueCurrencySymbolAndSuffixText(t,i,!0);var l,u=y.default.isZeroOrHasNoValue(t);switch(o&&(t=t.replace("-","")),i.digitalGroupSpacing=i.digitalGroupSpacing.toString(),i.digitalGroupSpacing){case e.options.digitalGroupSpacing.two:l=/(\d)((\d)(\d{2}?)+)$/;break;case e.options.digitalGroupSpacing.twoScaled:l=/(\d)((?:\d{2}){0,2}\d{3}(?:(?:\d{2}){2}\d{3})*?)$/;break;case e.options.digitalGroupSpacing.four:l=/(\d)((\d{4}?)+)$/;break;case e.options.digitalGroupSpacing.three:default:l=/(\d)((\d{3}?)+)$/}var c,d=a(t.split(i.decimalCharacter),2),h=d[0],f=d[1];if(i.decimalCharacterAlternative&&y.default.isUndefined(f)){var p=a(t.split(i.decimalCharacterAlternative),2);h=p[0],f=p[1]}if(""!==i.digitGroupSeparator)for(;l.test(h);)h=h.replace(l,"$1".concat(i.digitGroupSeparator,"$2"));return 0===(c=n?i.decimalPlacesShownOnFocus:i.decimalPlacesShownOnBlur)||y.default.isUndefined(f)?t=h:(f.length>c&&(f=f.substring(0,c)),t="".concat(h).concat(i.decimalCharacter).concat(f)),t=e._mergeCurrencySignNegativePositiveSignAndValue(t,i,o,u),y.default.isNull(s)&&(s=r),null!==i.negativeBracketsTypeOnBlur&&(s<0||y.default.isNegativeStrict(t,i.negativeSignCharacter))&&(t=this._toggleNegativeBracket(t,i,n)),i.suffixText?"".concat(t).concat(i.suffixText):t}},{key:"_mergeCurrencySignNegativePositiveSignAndValue",value:function(t,i,n,r){var o,s="";if(n?s=i.negativeSignCharacter:i.showPositiveSign&&!r&&(s=i.positiveSignCharacter),i.currencySymbolPlacement===e.options.currencySymbolPlacement.prefix)if(i.negativePositiveSignPlacement!==e.options.negativePositiveSignPlacement.none&&(n||!n&&i.showPositiveSign&&!r))switch(i.negativePositiveSignPlacement){case e.options.negativePositiveSignPlacement.prefix:case e.options.negativePositiveSignPlacement.left:o="".concat(s).concat(i.currencySymbol).concat(t);break;case e.options.negativePositiveSignPlacement.right:o="".concat(i.currencySymbol).concat(s).concat(t);break;case e.options.negativePositiveSignPlacement.suffix:o="".concat(i.currencySymbol).concat(t).concat(s)}else o=i.currencySymbol+t;else if(i.currencySymbolPlacement===e.options.currencySymbolPlacement.suffix)if(i.negativePositiveSignPlacement!==e.options.negativePositiveSignPlacement.none&&(n||!n&&i.showPositiveSign&&!r))switch(i.negativePositiveSignPlacement){case e.options.negativePositiveSignPlacement.suffix:case e.options.negativePositiveSignPlacement.right:o="".concat(t).concat(i.currencySymbol).concat(s);break;case e.options.negativePositiveSignPlacement.left:o="".concat(t).concat(s).concat(i.currencySymbol);break;case e.options.negativePositiveSignPlacement.prefix:o="".concat(s).concat(t).concat(i.currencySymbol)}else o=t+i.currencySymbol;return o}},{key:"_truncateZeros",value:function(e,t){var i;switch(t){case 0:i=/(\.(?:\d*[1-9])?)0*$/;break;case 1:i=/(\.\d(?:\d*[1-9])?)0*$/;break;default:i=new RegExp("(\\.\\d{".concat(t,"}(?:\\d*[1-9])?)0*"))}return e=e.replace(i,"$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,i){return i?this._roundFormattedValueShownOnFocus(e,t):this._roundFormattedValueShownOnBlur(e,t)}},{key:"_roundValue",value:function(t,i,n){if(y.default.isNull(t))return t;if(t=""===t?"0":t.toString(),i.roundingMethod===e.options.roundingMethod.toNearest05||i.roun
16dingMethod===e.options.roundingMethod.toNearest05Alt||i.roundingMethod===e.options.roundingMethod.upToNext05||i.roundingMethod===e.options.roundingMethod.downToNext05)return this._roundCloseTo05(t,i);var r,o=a(e._prepareValueForRounding(t,i),2),s=o[0],l=(t=o[1]).lastIndexOf("."),u=-1===l,c=a(t.split("."),2),d=c[0];if(!(c[1]>0)&&(i.allowDecimalPadding===e.options.allowDecimalPadding.never||i.allowDecimalPadding===e.options.allowDecimalPadding.floats))return 0===Number(t)?d:"".concat(s).concat(d);r=i.allowDecimalPadding===e.options.allowDecimalPadding.always||i.allowDecimalPadding===e.options.allowDecimalPadding.floats?n:0;var h,f=u?t.length-1:l,p=t.length-1-f,m="";if(p<=n){if(m=t,p<r){u&&(m="".concat(m).concat(i.decimalCharacter));for(var g="000000";p<r;)m+=g=g.substring(0,r-p),p+=g.length}else p>r?m=this._truncateZeros(m,r):0===p&&0===r&&(m=m.replace(/\.$/,""));return 0===Number(m)?m:"".concat(s).concat(m)}h=u?n-1:Number(n)+Number(l);var v,b=Number(t.charAt(h+1)),w=t.substring(0,h+1).split("");if(v="."===t.charAt(h)?t.charAt(h-1)%2:t.charAt(h)%2,this._shouldRoundUp(b,i,s,v))for(var S=w.length-1;S>=0;S-=1)if("."!==w[S]){if(w[S]=+w[S]+1,w[S]<10)break;S>0&&(w[S]="0")}return w=w.slice(0,h+1),m=this._truncateZeros(w.join(""),r),0===Number(m)?m:"".concat(s).concat(m)}},{key:"_roundCloseTo05",value:function(t,i){switch(i.roundingMethod){case e.options.roundingMethod.toNearest05:case e.options.roundingMethod.toNearest05Alt:t=(Math.round(20*t)/20).toString();break;case e.options.roundingMethod.upToNext05:t=(Math.ceil(20*t)/20).toString();break;default:t=(Math.floor(20*t)/20).toString()}return y.default.contains(t,".")?t.length-t.indexOf(".")<3?t+"0":t:t+".00"}},{key:"_prepareValueForRounding",value:function(t,i){var n="";return y.default.isNegativeStrict(t,"-")&&(n="-",t=t.replace("-","")),t.match(/^\d/)||(t="0".concat(t)),0===Number(t)&&(n=""),(Number(t)>0&&i.leadingZero!==e.options.leadingZero.keep||t.length>0&&i.leadingZero===e.options.leadingZero.allow)&&(t=t.replace(/^0*(\d)/,"$1")),[n,t]}},{key:"_shouldRoundUp",value:function(t,i,n,r){return t>4&&i.roundingMethod===e.options.roundingMethod.halfUpSymmetric||t>4&&i.roundingMethod===e.options.roundingMethod.halfUpAsymmetric&&""===n||t>5&&i.roundingMethod===e.options.roundingMethod.halfUpAsymmetric&&"-"===n||t>5&&i.roundingMethod===e.options.roundingMethod.halfDownSymmetric||t>5&&i.roundingMethod===e.options.roundingMethod.halfDownAsymmetric&&""===n||t>4&&i.roundingMethod===e.options.roundingMethod.halfDownAsymmetric&&"-"===n||t>5&&i.roundingMethod===e.options.roundingMethod.halfEvenBankersRounding||5===t&&i.roundingMethod===e.options.roundingMethod.halfEvenBankersRounding&&1===r||t>0&&i.roundingMethod===e.options.roundingMethod.toCeilingTowardPositiveInfinity&&""===n||t>0&&i.roundingMethod===e.options.roundingMethod.toFloorTowardNegativeInfinity&&"-"===n||t>0&&i.roundingMethod===e.options.roundingMethod.upRoundAwayFromZero}},{key:"_truncateDecimalPlaces",value:function(e,t,i,n){i&&(e=this._roundFormattedValueShownOnFocus(e,t));var r=a(e.split(t.decimalCharacter),2),o=r[0],s=r[1];if(s&&s.length>n)if(n>0){var l=s.substring(0,n);e="".concat(o).concat(t.decimalCharacter).concat(l)}else e=o;return e}},{key:"_checkIfInRangeWithOverrideOption",value:function(t,i){if(y.default.isNull(t)&&i.emptyInputBehavior===e.options.emptyInputBehavior.null||i.overrideMinMaxLimits===e.options.overrideMinMaxLimits.ignore||i.overrideMinMaxLimits===e.options.overrideMinMaxLimits.invalid)return[!0,!0];t=(t=t.toString()).replace(",",".")
17;var n,r=y.default.parseStr(i.minimumValue),o=y.default.parseStr(i.maximumValue),s=y.default.parseStr(t);switch(i.overrideMinMaxLimits){case e.options.overrideMinMaxLimits.floor:n=[y.default.testMinMax(r,s)>-1,!0];break;case e.options.overrideMinMaxLimits.ceiling:n=[!0,y.default.testMinMax(o,s)<1];break;default:n=[y.default.testMinMax(r,s)>-1,y.default.testMinMax(o,s)<1]}return n}},{key:"_isWithinRangeWithOverrideOption",value:function(e,t){var i=a(this._checkIfInRangeWithOverrideOption(e,t),2),n=i[0],r=i[1];return n&&r}},{key:"_cleanValueForRangeParse",value:function(e){return e=e.toString().replace(",","."),y.default.parseStr(e)}},{key:"_isMinimumRangeRespected",value:function(e,t){return y.default.testMinMax(y.default.parseStr(t.minimumValue),this._cleanValueForRangeParse(e))>-1}},{key:"_isMaximumRangeRespected",value:function(e,t){return y.default.testMinMax(y.default.parseStr(t.maximumValue),this._cleanValueForRangeParse(e))<1}},{key:"_readCookie",value:function(e){for(var t=e+"=",i=document.cookie.split(";"),n="",r=0;r<i.length;r+=1){for(n=i[r];" "===n.charAt(0);)n=n.substring(1,n.length);if(0===n.indexOf(t))return n.substring(t.length,n.length)}return null}},{key:"_storageTest",value:function(){var e="modernizr";try{return sessionStorage.setItem(e,e),sessionStorage.removeItem(e),!0}catch(e){return!1}}},{key:"_correctNegativePositiveSignPlacementOption",value:function(t){if(y.default.isNull(t.negativePositiveSignPlacement))if(y.default.isUndefined(t)||!y.default.isUndefinedOrNullOrEmpty(t.negativePositiveSignPlacement)||y.default.isUndefinedOrNullOrEmpty(t.currencySymbol))t.
17negativePositiveSignPlacement=e.options.negativePositiveSignPlacement.left;else switch(t.currencySymbolPlacement){case e.options.currencySymbolPlacement.suffix:t.negativePositiveSignPlacement=e.options.negativePositiveSignPlacement.prefix;break;case e.options.currencySymbolPlacement.prefix:t.negativePositiveSignPlacement=e.options.negativePositiveSignPlacement.left}}},{key:"_correctCaretPositionOnFocusAndSelectOnFocusOptions",value:function(t){return y.default.isNull(t)?null:(!y.default.isUndefinedOrNullOrEmpty(t.caretPositionOnFocus)&&y.default.isUndefinedOrNullOrEmpty(t.selectOnFocus)&&(t.selectOnFocus=e.options.selectOnFocus.doNotSelect),y.default.isUndefinedOrNullOrEmpty(t.caretPositionOnFocus)&&!y.default.isUndefinedOrNullOrEmpty(t.selectOnFocus)&&t.selectOnFocus===e.options.selectOnFocus.select&&(t.caretPositionOnFocus=e.options.caretPositionOnFocus.doNoForceCaretPosition),t)}},{key:"_calculateDecimalPlacesOnInit",value:function(t){this._validateDecimalPlacesRawValue(t),t.decimalPlacesShownOnFocus===e.options.decimalPlacesShownOnFocus.useDefault&&(t.decimalPlacesShownOnFocus=t.decimalPlaces),t.decimalPlacesShownOnBlur===e.options.decimalPlacesShownOnBlur.useDefault&&(t.decimalPlacesShownOnBlur=t.decimalPlaces),t.decimalPlacesRawValue===e.options.decimalPlacesRawValue.useDefault&&(t.decimalPlacesRawValue=t.decimalPlaces);var i=0;t.rawValueDivisor&&t.rawValueDivisor!==e.options.rawValueDivisor.none&&(i=String(t.rawValueDivisor).length-1)<0&&(i=0),t.decimalPlacesRawValue=Math.max(Math.max(t.decimalPlacesShownOnBlur,t.decimalPlacesShownOnFocus)+i,Number(t.originalDecimalPlacesRawValue)+i)}},{key:"_calculateDecimalPlacesOnUpdate",value:function(t){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;this._validateDecimalPlacesRawValue(t),y.default.isNull(i)&&y.default.throwError("When updating the settings, the previous ones should be passed as an argument.");var n="decimalPlaces"in t;if(n||"decimalPlacesRawValue"in t||"decimalPlacesShownOnFocus"in t||"decimalPlacesShownOnBlur"in t||"rawValueDivisor"in t){n?("decimalPlacesShownOnFocus"in t&&t.decimalPlacesShownOnFocus!==e.options.decimalPlacesShownOnFocus.useDefault||(t.decimalPlacesShownOnFocus=t.decimalPlaces),"decimalPlacesShownOnBlur"in t&&t.decimalPlacesShownOnBlur!==e.options.decimalPlacesShownOnBlur.useDefault||(t.decimalPlacesShownOnBlur=t.decimalPlaces),"decimalPlacesRawValue"in t&&t.decimalPlacesRawValue!==e.options.decimalPlacesRawValue.useDefault||(t.decimalPlacesRawValue=t.decimalPlaces)):(y.default.isUndefined(t.decimalPlacesShownOnFocus)&&(t.decimalPlacesShownOnFocus=i.decimalPlacesShownOnFocus),y.default.isUndefined(t.decimalPlacesShownOnBlur)&&(t.decimalPlacesShownOnBlur=i.decimalPlacesShownOnBlur));var r=0;t.rawValueDivisor&&t.rawValueDivisor!==e.options.rawValueDivisor.none&&(r=String(t.rawValueDivisor).length-1)<0&&(r=0),t.decimalPlaces||t.decimalPlacesRawValue?t.decimalPlacesRawValue=Math.max(Math.max(t.decimalPlacesShownOnBlur,t.decimalPlacesShownOnFocus)+r,Number(t.decimalPlacesRawValue)+r):t.decimalPlacesRawValue=Math.max(Math.max(t.decimalPlacesShownOnBlur,t.decimalPlacesShownOnFocus)+r,Number(i.originalDecimalPlacesRawValue)+r)}}},{key:"_cachesUsualRegularExpressions",value:function(t,i){var n;n=t.negativeSignCharacter!==e.options.negativeSignCharacter.hyphen?"([-\\".concat(t.negativeSignCharacter,"]?)"):"(-?)",i.aNegRegAutoStrip=n,t.allowedAutoStrip=new RegExp("[^-0123456789\\".concat(t.decimalCharacter,"]"),"g"),t.numRegAutoStrip=new RegExp("".concat(n,"(?:\\").concat(t.decimalCharacter,"?([0-9]+\\").concat(t.decimalCharacter,"[0-9]+)|([0-9]*(?:\\").concat(t.decimalCharacter,"[0-9]*)?))")),t.stripReg=new RegExp("^".concat(i.aNegRegAutoStrip,"0*([0-9])")),t.formulaChars=new RegExp("[0-9".concat(t.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
17:"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 i in e)if(Object.prototype.hasOwnProperty.call(e,i)){if(!0===t[i])continue;Object.prototype.hasOwnProperty.call(t,i)?(y.default.warning("You are using the deprecated option name '".concat(i,"'. Please use '").concat(t[i],"' instead from now on. The old option name will be dropped very soon\u2122."),!0),e[t[i]]=e[i],delete e[i]):e.failOnUnknownOption&&y.default.throwError("Option name '".concat(i,"' is unknown. Please fix the options passed to autoNumeric"))}"mDec"in e&&y.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=e.maximumValue>=0}},{key:"_toNumericValue",value:function(e,t){var i;return y.default.isNumber(Number(e))?i=y.default.scientificToDecimal(e):(i=this._convertToNumericString(e.toString(),t),y.default.isNumber(Number(i))||(y.default.warning('The given value "'.concat(e,'" cannot be converted to a numeric one and therefore cannot be used appropriately.'),t.showWarnings),i=NaN)),i}},{key:"_checkIfInRange",value:function(e,t,i){var n=y.default.parseStr(e);return y.default.testMinMax(t,n)>-1&&y.default.testMinMax(i,n)<1}},{key:"_shouldSkipEventKey",value:function(e){var t=y.default.isInArray(e,b.default.keyName._allFnKeys),i=e===b.default.keyName.OSLeft||e===b.default.keyName.OSRight,n=e===b.default.keyName.ContextMenu,r=y.default.isInArray(e,b.default.keyName._someNonPrintableKeys),o=e===b.default.keyName.NumLock||e===b.default.keyName.ScrollLock||e===b.default.keyName.Insert||e===b.default.keyName.Command,s=e===b.default.keyName.Unidentified;return t||i||n||r||s||o}},{key:"_serialize",value:function(e){var t,i=this,n=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"unformatted",o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"+",s=arguments.length>4&&void 0!==arguments[4]?arguments[4]:null,a=[];return"object"===p(e)&&"form"===e.nodeName.toLowerCase()&&Array.prototype.slice.call(e.elements).forEach((function(e){if(e.name&&!e.disabled&&-1===["file","reset","submit","button"].indexOf(e.type))if("select-multiple"===e.type)Array.prototype.slice.call(e.options).forEach((function(t){t.selected&&(n?a.push({name:e.name,value:t.value}):a.push("".concat(encodeURIComponent(e.name),"=").concat(encodeURIComponent(t.value))))}));else if(-1===["checkbox","radio"].indexOf(e.type)||e.checked){var t,o;if(i.isManagedByAutoNumeric(e))switch(r){case"unformatted":o=i.getAutoNumericElement(e),y.default.isNull(o)||(t=i.unformat(e,o.getSettings()));break;case"localized":if(o=i.getAutoNumericElement(e),!y.default.isNull(o)){var l=y.default.cloneObject(o.getSettings());y.default.isNull(s)||(l.outputFormat=s),t=i.localize(e,l)}break;default:t=e.value}else t=e.value;y.default.isUndefined(t)&&y.default.throwError("This error should never be hit. If it has, something really wrong happened!"),n?a.push({name:e.name,value:t}):a.push("".concat(encodeURIComponent(e.name),"=").concat(encodeURIComponent(t)))}})),n?t=a:(t=a.join("&"),"+"===o&&(t=t.replace(/%20/g,"+"))),t}},{key:"_serializeNumericString",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"+";return this._serialize(e,!1,"unformatted",t)}},{key:"_serializeFormatted",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"+";return this._serialize(e,!1,"formatted",t)}},{key:"_serializeLocalized",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"+",i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;return this._serialize(e,!1,"localized",t,i)}},{key:"_serializeNumericStringArray",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"+";return this._serialize(e,!0,"unformatted",t)}},{key:"_serializeFormattedArray",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"+";return this._serialize(e,!0,"formatted",t)}},{key:"_serializeLocalizedArray",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"+",i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;return this._serialize(e,!0,"localized",t,i)}}]),e}();k.multiple=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,r=[];if(y.default.isObject(t)&&(i=t,t=null),y.default.isString(e))e=n(document.querySelectorAll(e));else if(y.default.isObject(e)){Object.prototype.hasOwnProperty.call(e,"rootElement")||y.default.throwError("The object passed to the 'multiple' function is invali
17d ; no 'rootElement' attribute found.");var o=n(e.rootElement.querySelectorAll("input"));Object.prototype.hasOwnProperty.call(e,"exclude")?(Array.isArray(e.exclude)||y.default.throwError("The 'exclude' array passed to the 'multiple' function is invalid."),e=y.default.filterOut(o,e.exclude)):e=o}else y.default.isArray(e)||y.default.throwError("The given parameters to the 'multiple' function are invalid.");if(0===e.length){var s=!0;return!y.default.isNull(i)&&y.default.isBoolean(i.showWarnings)&&(s=i.showWarnings),y.default.warning("No valid DOM elements were given hence no AutoNumeric objects were instantiated.",s),[]}var a=y.default.isArray(t)&&t.length>=1,l=!1,u=!1;if(a){var c=p(Number(t[0]));(l="number"===c&&!isNaN(Number(t[0])))||("string"===c||isNaN(c)||"object"===c)&&(u=!0)}var d,h=!1;if(y.default.isArray(i)&&i.length>=1){var f=p(i[0]);"string"!==f&&"object"!==f||(h=!0)}d=u?k.mergeOptions(t):h?k.mergeOptions(i):i;var m,g=y.default.isNumber(t);return l&&(m=t.length),e.forEach((function(e,i){g?r.push(new k(e,t,d)):l&&i<=m?r.push(new k(e,t[i],d)):r.push(new k(e,null,d))})),r},function(){function e(e,t){t=t||{bubbles:!1,cancelable:!1,detail:void 0};var i=document.createEvent("CustomEvent");return i.initCustomEvent(e,t.bubbles,t.cancelable,t.detail),i}if(Array.from||(Array.from=function(e){return[].slice.call(e)}),"undefined"==typeof window||"function"==typeof window.CustomEvent)return!1;e.prototype=window.Event.prototype,window.CustomEvent=e}()},
17"./src/AutoNumericDefaultSettings.js":function(e,t,i){"use strict";i.r(t);var n=i("./src/AutoNumeric.js");i("./src/AutoNumericOptions.js");n.default.defaultSettings={allowDecimalPadding:n.default.options.allowDecimalPadding.always,alwaysAllowDecimalCharacter:n.default.options.alwaysAllowDecimalCharacter.doNotAllow,caretPositionOnFocus:n.default.options.caretPositionOnFocus.doNoForceCaretPosition,createLocalList:n.default.options.createLocalList.createList,currencySymbol:n.default.options.currencySymbol.none,currencySymbolPlacement:n.default.options.currencySymbolPlacement.prefix,decimalCharacter:n.default.options.decimalCharacter.dot,decimalCharacterAlternative:n.default.options.decimalCharacterAlternative.none,decimalPlaces:n.default.options.decimalPlaces.two,decimalPlacesRawValue:n.default.options.decimalPlacesRawValue.useDefault,decimalPlacesShownOnBlur:n.default.options.decimalPlacesShownOnBlur.useDefault,decimalPlacesShownOnFocus:n.default.options.decimalPlacesShownOnFocus.useDefault,defaultValueOverride:n.default.options.defaultValueOverride.doNotOverride,digitalGroupSpacing:n.default.options.digitalGroupSpacing.three,digitGroupSeparator:n.default.options.digitGroupSeparator.comma,divisorWhenUnfocused:n.default.options.divisorWhenUnfocused.none,emptyInputBehavior:n.default.options.emptyInputBehavior.focus,eventBubbles:n.default.options.eventBubbles.bubbles,eventIsCancelable:n.default.options.eventIsCancelable.isCancelable,failOnUnknownOption:n.default.options.failOnUnknownOption.ignore,formatOnPageLoad:n.default.options.formatOnPageLoad.format,formulaMode:n.default.options.formulaMode.disabled,historySize:n.default.options.historySize.medium,invalidClass:n.default.options.invalidClass,isCancellable:n.default.options.isCancellable.cancellable,leadingZero:n.default.options.leadingZero.deny,maximumValue:n.default.options.maximumValue.tenTrillions,minimumValue:n.default.options.minimumValue.tenTrillions,modifyValueOnWheel:n.default.options.modifyValueOnWheel.modifyValue,negativeBracketsTypeOnBlur:n.default.options.negativeBracketsTypeOnBlur.none,negativePositiveSignPlacement:n.default.options.negativePositiveSignPlacement.none,negativeSignCharacter:n.default.options.negativeSignCharacter.hyphen,noEventListeners:n.default.options.noEventListeners.addEvents,onInvalidPaste:n.default.options.onInvalidPaste.error,outputFormat:n.default.options.outputFormat.none,overrideMinMaxLimits:n.default.options.overrideMinMaxLimits.doNotOverride,positiveSignCharacter:n.default.options.positiveSignCharacter.plus,rawValueDivisor:n.default.options.rawValueDivisor.none,readOnly:n.default.options.readOnly.readWrite,roundingMethod:n.default.options.roundingMethod.halfUpSymmetric,saveValueToSessionStorage:n.default.options.saveValueToSessionStorage.doNotSave,selectNumberOnly:n.default.options.selectNumberOnly.selectNumbersOnly,selectOnFocus:n.default.options.selectOnFocus.select,serializeSpaces:n.default.options.serializeSpaces.plus,showOnlyNumbersOnFocus:n.default.options.showOnlyNumbersOnFocus.showAll,showPositiveSign:n.default.options.showPositiveSign.hide,showWarnings:n.default.options.showWarnings.show,styleRules:n.default.options.styleRules.none,suffixText:n.default.options.suffixText.none,symbolWhenUnfocused:n.default.options.symbolWhenUnfocused.none,unformatOnHover:n.default.options.unformatOnHover.unformat,unformatOnSubmit:n.default.options.unformatOnSubmit.keepCurrentValue,valuesToStrings:n.default.options.valuesToStrings.none,watchExternalChanges:n.default.options.watchExternalChanges.doNotWatch,wheelOn:n.default.options.wheelOn.focus,wheelStep:n.default.options.wheelStep.progressive},Object.freeze(n.default.defaultSettings),Object.defineProperty(n.default,"defaultSettings",{configurable:!1,writable:!1})},
17"./src/AutoNumericEnum.js":function(e,t,i){"use strict";i.r(t);var n={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(n.allowedTagList),Object.defineProperty(n,"allowedTagList",{configurable:!1,writable:!1}),n.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(n.keyCode),Object.defineProperty(n,"keyCode",{configurable:!1,writable:!1}),n.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(n.fromCharCodeKeyCode),Object.defineProperty(n,"fromCharCodeKeyCode",{configurable:!1,writable:!1}),n.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:";
17",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(n.keyName._allFnKeys),Object.freeze(n.keyName._someNonPrintableKeys),Object.freeze(n.keyName._directionKeys),Object.freeze(n.keyName),Object.defineProperty(n,"keyName",{configurable:!1,writable:!1}),Object.freeze(n),t.default=n},
17"./src/AutoNumericEvents.js":function(e,t,i){"use strict";i.r(t);var n=i("./src/AutoNumeric.js");n.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(n.default.events.native),Object.freeze(n.default.events),Object.defineProperty(n.default,"events",{configurable:!1,writable:!1})},
17"./src/AutoNumericHelper.js":function(e,t,i){"use strict";function n(e){return s(e)||o(e)||c(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 d(e)}function a(){return a=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var i=arguments[t];for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(e[n]=i[n])}return e},a.apply(this,arguments)}function l(e,t){return f(e)||h(e,t)||c(e,t)||u()}function u(){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 c(e,t){if(e){if("string"==typeof e)return d(e,t);var i=Object.prototype.toString.call(e).slice(8,-1);return"Object"===i&&e.constructor&&(i=e.constructor.name),"Map"===i||"Set"===i?Array.from(i):"Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?d(e,t):void 0}}function d(e,t){(null==t||t>e.length)&&(t=e.length);for(var i=0,n=new Array(t);i<t;i++)n[i]=e[i];return n}function h(e,t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e)){var i=[],n=!0,r=!1,o=void 0;try{for(var s,a=e[Symbol.iterator]();!(n=(s=a.next()).done)&&(i.push(s.value),!t||i.length!==t);n=!0);}catch(e){r=!0,o=e}finally{try{n||null==a.return||a.return()}finally{if(r)throw o}}return i}}function f(e){if(Array.isArray(e))return e}function p(e){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},p(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 i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function v(e,t,i){return t&&g(e.prototype,t),i&&g(e,i),e}i.r(t),i.d(t,"default",(function(){return b}));var y=i("./src/AutoNumericEnum.js"),b=function(){function e(){m(this,e)}return v(e,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=l(e.split("."),2)[1];return this.isUndefined(t)?0:t.length}},{key:"indexFirstNonZeroDecimalPlace",value:function(e){var t=l(String(Math.abs(e)).split("."),2)[1];if(this.isUndefined(t))return 0;var i=t.lastIndexOf("0");return-1===i?i=0:i+=2,i}},{key:"keyCodeNumber",value:function(e){return void 0===e.which?e.keyCode:e.which}},{key:"character",value:function(t){var i;if("Unidentified"===t.key||void 0===t.key||this.isSeleniumBot()){var n=this.keyCodeNumber(t);if(n===y.default.keyCode.AndroidDefault)return y.default.keyName.AndroidDefault;var r=y.default.fromCharCodeKeyCode[n];i=e.isUndefinedOrNullOrEmpty(r)?String.fromCharCode(n):r}else{var o;switch(t.key){case"Add":i=y.default.keyName.NumpadPlus;break;case"Apps":i=y.default.keyName.ContextMenu;break;case"Crsel":i=y.default.keyName.CrSel;break;case"Decimal":i=t.char?t.char:y.default.keyName.NumpadDot;break;case"Del":i="firefox"===(o=this.browser()).name&&o.version<=36||"ie"===o.name&&o.version<=9?y.default.keyName.Dot:y.default.keyName.Delete;break;case"Divide":i=y.default.keyName.NumpadSlash;break;case"Down":i=y.default.keyName.DownArrow;break;case"Esc":i=y.default.keyName.Esc;break;case"Exsel":i=y.default.keyName.ExSel;break;case"Left":i=y.default.keyName.LeftArrow;break;case"Meta":case"Super":i=y.default.keyName.OSLeft;break;case"Multiply":i=y.default.keyName.NumpadMultiply;break;case"Right":i=y.default.keyName.RightArrow;break;case"Spacebar":i=y.default.keyName.Space;break;case"Subtract":i=y.default.keyName.NumpadMinus;break;case"Up":i=y.default.keyName.UpArrow;break;default:i=t.key}}return i}},{key:"browser",value:function(){var e,t=navigator.userAgent,i=t.match(/(opera|chrome|safari|firefox|msie|trident(?=\/))\/?\s*(\d+)/i)||[];return/trident/i.test(i[1])?{name:"ie",version:(e=/\brv[ :]+(\d+)/g.exec(t)||[])[1]||""}:"Chrome"===i[1]&&null!==(e=t.match(/\b(OPR|Edge)\/(\d+)/))?{name:e[1].replace("OPR","opera"),version:e[2]}
vendor: 9,602 bytes, lines 17-18
17:(i=i[2]?[i[1],i[2]]:[navigator.appName,navigator.appVersion,"-?"],null!==(e=t.match(/version\/(\d+)/i))&&i.splice(1,1,e[1]),{name:i[0].toLowerCase(),version:i[1]})}},{key:"isSeleniumBot",value:function(){return!0===window.navigator.webdriver}},{key:"isNegative",value:function(t){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"-",n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];return t===i||""!==t&&(e.isNumber(t)?t<0:n?this.contains(t,i):this.isNegativeStrict(t,i))}},{key:"isNegativeStrict",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"-";return e.charAt(0)===t}},{key:"isNegativeWithBrackets",value:function(e,t,i){return e.charAt(0)===t&&this.contains(e,i)}},{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,i){return"".concat(e.substr(0,t)).concat(i).concat(e.substr(t+i.length))}},{key:"clampToRangeLimits",value:function(e,t){return Math.max(t.minimumValue,Math.min(t.maximumValue,e))}},{key:"countNumberCharactersOnTheCaretLeftSide",value:function(e,t,i){for(var n=new RegExp("[0-9".concat(i,"-]")),r=0,o=0;o<t;o++)n.test(e[o])&&r++;return r}},{key:"findCaretPositionInFormattedNumber",value:function(e,t,i,n){var r,o=i.length,s=e.length,a=0;for(r=0;r<o&&a<s&&a<t;r++)(e[a]===i[r]||"."===e[a]&&i[r]===n)&&a++;return r}},{key:"countCharInText",value:function(e,t){for(var i=0,n=0;n<t.length;n++)t[n]===e&&i++;return i}},{key:"convertCharacterCountToIndexPosition",value:function(e){return Math.max(e,e-1)}},{key:"getElementSelection",value:function(e){var t,i={};try{t=this.isUndefined(e.selectionStart)}catch(e){t=!1}try{if(t){var n=window.getSelection().getRangeAt(0);i.start=n.startOffset,i.end=n.endOffset,i.length=i.end-i.start}else i.start=e.selectionStart,i.end=e.selectionEnd,i.length=i.end-i.start}catch(e){i.start=0,i.end=0,i.length=0}return i}},{key:"setElementSelection",value:function(t,i){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;if(this.isUndefinedOrNullOrEmpty(n)&&(n=i),this.isInputElement(t))t.setSelectionRange(i,n);else if(!e.isNull(t.firstChild)){var r=document.createRange();r.setStart(t.firstChild,i),r.setEnd(t.firstChild,n);var o=window.getSelection();o.removeAllRanges(),o.addRange(r)}}},{key:"throwError",value:function(e){throw new Error(e)}},{key:"warning",value:function(e){(!(arguments.length>1&&void 0!==arguments[1])||arguments[1])&&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.")),e.deltaY>0}},{key:"forceDecimalPlaces",value:function(e,t){var i=l(String(e).split("."),2),n=i[0],r=i[1]
18;return r?"".concat(n,".").concat(r.substr(0,t)):e}},{key:"roundToNearest",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1e3;return 0===e?0:(0===t&&this.throwError("The `stepPlace` used to round is equal to `0`. This value must not be equal to zero."),Math.round(e/t)*t)}},{key:"modifyAndRoundToNearestAuto",value:function(e,t,i){e=Number(this.forceDecimalPlaces(e,i));var n=Math.abs(e);if(n>=0&&n<1){var r,o=Math.pow(10,-i);if(0===e)return t?o:-o;var s,a=i,l=this.indexFirstNonZeroDecimalPlace(e);return r=l>=a-1?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&&d>=-10?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){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],i=arguments.length>2&&void 0!==arguments[2]&&arguments[2],n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(this.isNull(e))return e;var r=e.toString();if(""===r)return e;if(null===r.match(/[\u0660\u0661\u0662\u0663\u0664\u0665\u0666\u0667\u0668\u0669\u06f4\u06f5\u06f6]/g))return t&&(r=Number(r)),r;i&&(r=r.replace(/\u066b/,".")),n&&(r=r.replace(/\u066c/g,"")),r=r.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 o=Number(r);return isNaN(o)?o:(t&&(r=o),r)}},{key:"triggerEvent",value:function(e){var t,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:document,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,r=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],o=!(arguments.length>4&&void 0!==arguments[4])||arguments[4];window.CustomEvent?t=new CustomEvent(e,{detail:n,bubbles:r,cancelable:o}):(t=document.createEvent("CustomEvent")).initCustomEvent(e,r,o,{detail:n}),i.dispatchEvent(t)}},{key:"parseStr",value:function(e){var t,i,n,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,(t=e.indexOf("."))>-1&&(e=e.replace(".","")),t<0&&(t=e.length),(i=-1===e.search(/[1-9]/i)?e.length:e.search(/[1-9]/i))===(n=e.length))o.e=0,o.c=[0];else{for(r=n-1;"0"===e.charAt(r);r-=1)n-=1;for(n-=1,o.e=t-i-1,o.c=[],t=0;i<=n;i+=1)o.c[t]=+e.charAt(i),t+=1}return o}},{key:"testMinMax",value:function(e,t){var i=t.c,n=e.c,r=t.s,o=e.s,s=t.e,a=e.e;if(!i[0]||!n[0])return i[0]?r:n[0]?-o:0;if(r!==o)return r;var l=r<0;if(s!==a)return s>a^l?1:-1;for(r=-1,o=(s=i.length)<(a=n.length)?s:a,r+=1;r<o;r+=1)if(i[r]!==n[r])return i[r]>n[r]^l?1:-1;return s===a?0:s>a^l?1:-1}},{key:"randomString",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:5;return Math.random().toString(36).substr(2,e)}},{key:"domElement",value:function(t){var i;return i=e.isString(t)?document.querySelector(t):t,i}},{key:"getElementValue",value:function(e){return"input"===e.tagName.toLowerCase()?e.value:this.text(e)}},{key:"setElementValue",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;"input"===e.tagName.toLowerCase()?e.value=t:e.textContent=t}},{key:"setInvalidState",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"Invalid";(""===t||this.isNull(t))&&this.throwError("Cannot set the invalid state with an empty message."),e.setCustomValidity(t)}},{key:"setValidState",value:function(e){e.setCustomValidity("")}},{key:"cloneObject",value:function(e){return a({},e)}},{key:"camelize",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"-",i=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],n=!(arguments.length>3&&void 0!==arguments[3])||arguments[3];if(this.isNull(e))return null;i&&(e=e.replace(/^data-/,""));var r=e.split(t).map((function(e){return"".concat(e.charAt(0).toUpperCase()).concat(e.slice(1))}));return r=r.join(""),n&&(r="".concat(r.charAt(0).toLowerCase()).concat(r.slice(1))),r}},{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 i=e.nodeType;i!==Node.ELEMENT_NODE&&i!==Node.DOCUMENT_NODE&&i!==Node.DOCUMENT_FRAGMENT_NODE||(e.textContent=t)}},{key:"filterOut",value:function(e,t){var i=this;return e.filter((function(e){return!i.isInArray(e,t)}))}},{key:"trimPaddedZerosFromDecimalPlaces",value:function(e){if(""===(e=String(e)))return"";var t=l(e.split("."),2),i=t[0],n=t[1];if(this.isUndefinedOrNullOrEmpty(n))return i;var r=n.replace(/0+$/g,"");return""===r?i:"".concat(i,".").concat(r)}},{key:"getHoveredElement",value:function(){var e=n(document.querySelectorAll(":hover"));return e[e.length-1]}},{key:"arrayTrim",value:function(e,t){var i=e.length;return 0===i||t>i?e:t<0?[]:(e.length=parseInt(t,10),e)}},{key:"arrayUnique",value:function(){var e;return n(new Set((e=[]).concat.apply(e,arguments)))}},{key:"mergeMaps",value:function(){for(var e=arguments.length,t=new Array(e),i=0;i<e;i++)t[i]=arguments[i];return new Map(t.reduce((function(e,t){return e.concat(n(t))}),[]))}},{key:"objectKeyLookup",value:function(e,t){var i=Object.entries(e).find((function(e){return e[1]===t})),n=null;return void 0!==i&&(n=i[0]),n}},{key:"insertAt",value:function(e,t,i){if(i>(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===i?t:"".concat(e.slice(0,i)).concat(t).concat(e.slice(i))}},{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 i=l(e.split(/e/i),2),n=i[0],r=i[1],o=n<0;o&&(n=n.replace("-",""));var s=+r<0;s&&(r=r.replace("-",""));var a,u=l(n.split(/\./),2),c=u[0],d=u[1];return s?(a=c.length>r?this.insertAt(c,".",c.length-r):"0.".concat("0".repeat(r-c.length)).concat(c),a="".concat(a).concat(d||"")):d?(n="".concat(c).concat(d),a=r<d.length?this.insertAt(n,".",+r+c.length):"".concat(n).concat("0".repeat(r-d.length))):(n=n.replace(".",""),a="".concat(n).concat("0".repeat(Number(r)))),o&&(a="-".concat(a)),a}}]),e}()},
18"./src/AutoNumericOptions.js":function(e,t,i){"use strict";function n(e){return Object.getOwnPropertyNames(e).forEach((function(t){"valuesToStrings"===t?Object.getOwnPropertyNames(e.valuesToStrings).forEach((function(t){o.default.isIE11()||null===e.valuesToStrings[t]||Object.freeze(e.valuesToStrings[t])})):"styleRules"!==t&&(o.default.isIE11()||null===e[t]||Object.freeze(e[t]))})),Object.freeze(e)}i.r(t);var r=i("./src/AutoNumeric.js"),o=i("./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}
18,classes:["autoNumeric-even","autoNumeric-odd"]}]},rangeSmallAndZero:{userDefined:[{callback:function(e){return e>=-1&&e<0?0:0===Number(e)?1:e>0&&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"}},n(r.default.options),Object.defineProperty(r.default,"options",{configurable:!1,writable:!1})},
18"./src/AutoNumericPredefinedOptions.js":function(e,t,i){"use strict";i.r(t);var n=i("./src/AutoNumeric.js"),r=i("./src/AutoNumericHelper.js"),o={digitGroupSeparator:n.default.options.digitGroupSeparator.dot,decimalCharacter:n.default.options.decimalCharacter.comma,decimalCharacterAlternative:n.default.options.decimalCharacterAlternative.dot,currencySymbol:"\u202f\u20ac",currencySymbolPlacement:n.default.options.currencySymbolPlacement.suffix,negativePositiveSignPlacement:n.default.options.negativePositiveSignPlacement.prefix},s={digitGroupSeparator:n.default.options.digitGroupSeparator.comma,decimalCharacter:n.default.options.decimalCharacter.dot,currencySymbol:n.default.options.currencySymbol.dollar,currencySymbolPlacement:n.default.options.currencySymbolPlacement.prefix,negativePositiveSignPlacement:n.default.options.negativePositiveSignPlacement.right},a={digitGroupSeparator:n.default.options.digitGroupSeparator.comma,decimalCharacter:n.default.options.decimalCharacter.dot,currencySymbol:n.default.options.currencySymbol.yen,currencySymbolPlacement:n.default.options.currencySymbolPlacement.prefix,negativePositiveSignPlacement:n.default.options.negativePositiveSignPlacement.right};r.default.cloneObject(o).formulaMode=n.default.options.formulaMode.enabled;var l=r.default.cloneObject(o);l.minimumValue=0;var u=r.default.cloneObject(o);u.maximumValue=0,u.negativePositiveSignPlacement=n.default.options.negativePositiveSignPlacement.prefix;var c=r.default.cloneObject(o);c.digitGroupSeparator=n.default.options.digitGroupSeparator.normalSpace;var d=r.default.cloneObject(c);d.minimumValue=0;var h=r.default.cloneObject(c);h.maximumValue=0,h.negativePositiveSignPlacement=n.default.options.negativePositiveSignPlacement.prefix;var f=r.default.cloneObject(o);f.currencySymbol=n.default.options.currencySymbol.none,f.suffixText="\u202f".concat(n.default.options.suffixText.percentage),f.wheelStep=1e-4,f.rawValueDivisor=n.default.options.rawValueDivisor.percentage;var p=r.default.cloneObject(f);p.minimumValue=0;var m=r.default.cloneObject(f);m.maximumValue=0,m.negativePositiveSignPlacement=n.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=n.default.options.formulaMode.enabled;var b=r.default.cloneObject(s);b.minimumValue=0;var w=r.default.cloneObject(s);w.maximumValue=0,w.negativePositiveSignPlacement=n.default.options.negativePositiveSignPlacement.prefix;var S=r.default.cloneObject(w);S.negativeBracketsTypeOnBlur=n.default.options.negativeBracketsTypeOnBlur.parentheses;var k=r.default.cloneObject(s);k.currencySymbol=n.default.options.currencySymbol.none,k.suffixText=n.default.options.suffixText.percentage,k.wheelStep=1e-4,k.rawValueDivisor=n.default.options.rawValueDivisor.percentage;var x=r.default.cloneObject(k);x.minimumValue=0;var _=r.default.cloneObject(k);_.maximumValue=0,_.negativePositiveSignPlacement=n.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=n.default.options.currencySymbol.lira,n.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:n.default.options.digitGroupSeparator.comma,decimalCharacter:n.default.options.decimalCharacter.dot,currencySymbol:n.default.options.currencySymbol.pound,currencySymbolPlacement:n.default.options.currencySymbolPlacement.prefix,negativePositiveSignPlacement:n.default.options.negativePositiveSignPlacement.right},Swiss:{digitGroupSeparator:n.default.options.digitGroupSeparator.apostrophe,decimalCharacter:n.default.options.decimalCharacter.dot,currencySymbol:"\u202fCHF",currencySymbolPlacement:n.default.options.currencySymbolPlacement.suffix,negativePositiveSignPlacement:n.default.options.negativePositiveSignPlacement.prefix},Japanese:a,Chinese:a,Brazilian:{digitGroupSeparator:n.default.options.digitGroupSeparator.dot,decimalCharacter:n.default.options.decimalCharacter.comma,currencySymbol:n.default.options.currencySymbol.real,currencySymbolPlacement:n.default.options.currencySymbolPlacement.prefix,negativePositiveSignPlacement:n.default.options.negativePositiveSignPlacement.right},Turkish:P,dotDecimalCharCommaSeparator:{digitGroupSeparator:n.default.options.digitGroupSeparator.comma,decimalCharacter:n.default.options.decimalCharacter.dot},commaDecimalCharDotSeparator:{digitGroupSeparator:n.default.options.digitGroupSeparator.dot,decimalCharacter:n.default.options.decimalCharacter.comma,decimalCharacterAlternative:n.default.options.decimalCharacterAlternative.dot},integer:{decimalPlaces:0},integerPos:{minimumValue:n.default.options.minimumValue.zero,decimalPlaces:0},integerNeg:{maximumValue:n.default.options.maximumValue.zero,decimalPlaces:0},float:{allowDecimalPadding:n.default.options.allowDecimalPadding.never},floatPos:{allowDecimalPadding:n.default.options.allowDecimalPadding.never,minimumValue:n.default.options.minimumValue.zero,maximumValue:n.default.options.maximumValue.tenTrillions},floatNeg:{allowDecimalPadding:n.default.options.allowDecimalPadding.never,minimumValue:n.default.options.minimumValue.tenTrillions,maximumValue:n.default.options.maximumValue.zero},numeric:{digitGroupSeparator:n.default.options.digitGroupSeparator.noSeparator,decimalCharacter:n.default.options.decimalCharacter.dot,currencySymbol:n.default.options.currencySymbol.none},numericPos:{digitGroupSeparator:n.default.options.digitGroupSeparator.noSeparator,decimalCharacter:n.default.options.decimalCharacter.dot,currencySymbol:n.default.options.currencySymbol.none,minimumValue:n.default.options.minimumValue.zero,maximumValue:n.default.options.maximumValue.tenTrillions},numericNeg:{digitGroupSeparator:n.default.options.digitGroupSeparator.noSeparator,decimalCharacter:n.default.options.decimalCharacter.dot,currencySymbol:n.default.options.currencySymbol.none,minimumValue:n.default.options.minimumValue.tenTrillions,maximumValue:n.default.options.maximumValue.zero}}
18,Object.getOwnPropertyNames(n.default.predefinedOptions).forEach((function(e){Object.freeze(n.default.predefinedOptions[e])})),Object.freeze(n.default.predefinedOptions),Object.defineProperty(n.default,"predefinedOptions",{configurable:!1,writable:!1})},
18"./src/main.js":function(e,t,i){"use strict";i.r(t);var n=i("./src/AutoNumeric.js");i("./src/AutoNumericEvents.js"),i("./src/AutoNumericOptions.js"),i("./src/AutoNumericDefaultSettings.js"),i("./src/AutoNumericPredefinedOptions.js");t.default=n.default},
18"./src/maths/ASTNode.js":function(e,t,i){"use strict";function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function o(e,t,i){return t&&r(e.prototype,t),i&&r(e,i),e}i.r(t),i.d(t,"default",(function(){return s}));var s=function(){function e(){n(this,e)}return o(e,null,[{key:"createNode",value:function(t,i,n){var r=new e;return r.type=t,r.left=i,r.right=n,r}},{key:"createUnaryNode",value:function(t){var i=new e;return i.type="unaryMinus",i.left=t,i.right=null,i}},{key:"createLeaf",value:function(t){var i=new e;return i.type="number",i.value=t,i}}]),e}()},
18"./src/maths/Evaluator.js":function(e,t,i){"use strict";function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function o(e,t,i){return t&&r(e.prototype,t),i&&r(e,i),e}i.r(t),i.d(t,"default",(function(){return s}));var s=function(){function e(t){if(n(this,e),null===t)throw new Error("Invalid AST")}return o(e,[{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),i=this.evaluate(e.right);switch(e.type){case"op_+":return Number(t)+Number(i);case"op_-":return t-i;case"op_*":return t*i;case"op_/":return t/i;default:throw new Error("Invalid operator '".concat(e.type,"'"))}}}]),e}()},
18"./src/maths/Lexer.js":function(e,t,i){"use strict";function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function o(e,t,i){return t&&r(e.prototype,t),i&&r(e,i),e}i.r(t),i.d(t,"default",(function(){return l}));var s=i("./src/AutoNumericHelper.js"),a=i("./src/maths/Token.js"),l=function(){function e(t){n(this,e),this.text=t,this.textLength=t.length,this.index=0,this.token=new a.default("Error",0,0)}return o(e,[{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(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:".";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(e),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,".")}}]),e}()},
18"./src/maths/Parser.js":function(e,t,i){"use strict";function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function o(e,t,i){return t&&r(e.prototype,t),i&&r(e,i),e}i.r(t),i.d(t,"default",(function(){return l}));var s=i("./src/maths/ASTNode.js"),a=i("./src/maths/Lexer.js"),l=function(){function e(t){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:".";return n(this,e),this.text=t,this.decimalCharacter=i,this.lexer=new a.default(t),this.token=this.lexer.getNextToken(this.decimalCharacter),this._exp()}return o(e,[{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,i;switch(this.token.type){case"num":return i=this.token.value,this.token=this.lexer.getNextToken(this.decimalCharacter),s.default.createLeaf(i);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)}}]),e}()},
18"./src/maths/Token.js":function(e,t,i){"use strict";function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}i.r(t),i.d(t,"default",(function(){return r}));var r=function e(t,i,r){n(this,e),this.type=t,this.value=i,this.symbol=r}}
18}).default})),function(e,t){"function"==typeof define&&define.amd?define("jquery-bridget/jquery-bridget",["jquery"],(function(i){return t(e,i)})):"object"==typeof module&&module.exports?module.exports=t(e,require("jquery")):e.jQueryBridget=t(e,e.jQuery)}(window,(function(e,t){"use strict";function i(i,o,a){function l(e,t,n){var r,o="$()."+i+'("'+t+'")';return e.each((function(e,l){var u=a.data(l,i);if(u){var c=u[t];if(c&&"_"!=t.charAt(0)){var d=c.apply(u,n);r=void 0===r?d:r}else s(o+" is not a valid method")}else s(i+" not initialized. Cannot call methods, i.e. "+o)})),void 0!==r?r:e}function u(e,t){e.each((function(e,n){var r=a.data(n,i);r?(r.option(t),r._init()):(r=new o(n,t),a.data(n,i,r))}))}(a=a||t||e.jQuery)&&(o.prototype.option||(o.prototype.option=function(e){a.isPlainObject(e)&&(this.options=a.extend(!0,this.options,e))}),a.fn[i]=function(e){return"string"==typeof e?l(this,e,r.call(arguments,1)):(u(this,e),this)},n(a))}function n(e){!e||e&&e.bridget||(e.bridget=i)}var r=Array.prototype.slice,o=e.console,s=void 0===o?function(){}:function(e){o.error(e)};return n(t||e.jQuery),i})),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 i=this._events=this._events||{},n=i[e]=i[e]||[];return-1==n.indexOf(t)&&n.push(t),this}},t.once=function(e,t){if(e&&t){this.on(e,t);var i=this._onceEvents=this._onceEvents||{};return(i[e]=i[e]||{})[t]=!0,this}},t.off=function(e,t){var i=this._events&&this._events[e];if(i&&i.length){var n=i.indexOf(t);return-1!=n&&i.splice(n,1),this}},t.emitEvent=function(e,t){var i=this._events&&this._events[e];if(i&&i.length){i=i.slice(0),t=t||[];for(var n=this._onceEvents&&this._onceEvents[e],r=0;r<i.length;r++){var o=i[r];n&&n[o]&&(this.off(e,o),delete n[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 e(e){var t=parseFloat(e);return-1==e.indexOf("%")&&!isNaN(t)&&t}function t(){}function i(){for(var e={width:0,height:0,innerWidth:0,innerHeight:0,outerWidth:0,outerHeight:0},t=0;t<u;t++){e[l[t]]=0}return e}function n(e){var t=getComputedStyle(e);return t||a("Style returned "+t+". Are you running this code in a hidden iframe on Firefox? See https://bit.ly/getsizebug1"),t}function r(){if(!c){c=!0;var t=document.createElement("div");t.style.width="200px",t.style.padding="1px 2px 3px 4px",t.style.borderStyle="solid",t.style.borderWidth="1px 2px 3px 4px",t.style.boxSizing="border-box";var i=document.body||document.documentElement;i.appendChild(t);var r=n(t);s=200==Math.round(e(r.width)),o.isBoxSizeOuter=s,i.removeChild(t)}}function o(t){if(r(),"string"==typeof t&&(t=document.querySelector(t)),t&&"object"==typeof t&&t.nodeType){var o=n(t);if("none"==o.display)return i();var a={};a.width=t.offsetWidth,a.height=t.offsetHeight;for(var c=a.isBorderBox="border-box"==o.boxSizing,d=0;d<u;d++){var h=l[d],f=o[h],p=parseFloat(f);a[h]=isNaN(p)?0:p}var m=a.paddingLeft+a.paddingRight,g=a.paddingTop+a.paddingBottom,v=a.marginLeft+a.marginRight,y=a.marginTop+a.marginBottom,b=a.borderLeftWidth+a.borderRightWidth,w=a.borderTopWidth+a.borderBottomWidth,S=c&&s,k=e(o.width);!1!==k&&(a.width=k+(S?0:m+b));var x=e(o.height);return!1!==x&&(a.height=x+(S?0:g+w)),a.innerWidth=a.width-(m+b),a.innerHeight=a.height-(g+w),a.outerWidth=a.width+v,a.outerHeight=a.height+y,a}}var s,a="undefined"==typeof console?t:function(e){console.error(e)},l=["paddingLeft","paddingRight","paddingTop","paddingBottom","marginLeft","marginRight","marginTop","marginBottom","borderLeftWidth","borderRightWidth","borderTopWidth","borderBottomWidth"],u=l.length,c=!1;return o})),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 e=function(){var e=window.Element.prototype;if(e.matches)return"matches";if(e.matchesSelector)return"matchesSelector";for(var t=["webkit","moz","ms","o"],i=0;i<t.length;i++){var n=t[i]+"MatchesSelector";if(e[n])return n}}();return function(t,i){return t[e](i)}})),function(e,t){"function"==typeof define&&define.amd?define("fizzy-ui-utils/utils",["de
18sandro-matches-selector/matches-selector"],(function(i){return t(e,i)})):"object"==typeof module&&module.exports?module.exports=t(e,require("desandro-matches-selector")):e.fizzyUIUtils=t(e,e.matchesSelector)}(window,(function(e,t){var i={extend:function(e,t){for(var i in t)e[i]=t[i];return e},modulo:function(e,t){return(e%t+t)%t}},n=Array.prototype.slice;i.makeArray=function(e){return Array.isArray(e)?e:null==e?[]:"object"==typeof e&&"number"==typeof e.length?n.call(e):[e]},i.removeFrom=function(e,t){var i=e.indexOf(t);-1!=i&&e.splice(i,1)},i.getParent=function(e,i){for(;e.parentNode&&e!=document.body;)if(e=e.parentNode,t(e,i))return e},i.getQueryElement=function(e){return"string"==typeof e?document.querySelector(e):e},i.handleEvent=function(e){var t="on"+e.type;this[t]&&this[t](e)},i.filterFindElements=function(e,n){e=i.makeArray(e);var r=[];return e.forEach((function(e){if(e instanceof HTMLElement)if(n){t(e,n)&&r.push(e);for(var i=e.querySelectorAll(n),o=0;o<i.length;o++)r.push(i[o])}else r.push(e)})),r},i.debounceMethod=function(e,t,i){i=i||100;var n=e.prototype[t],r=t+"Timeout";e.prototype[t]=function(){var e=this[r];clearTimeout(e);var t=arguments,o=this;this[r]=setTimeout((function(){n.apply(o,t),delete o[r]}),i)}},i.docReady=function(e){var t=document.readyState;"complete"==t||"interactive"==t?setTimeout(e):document.addEventListener("DOMContentLoaded",e)},i.toDashed=function(e){
19return e.replace(/(.)([A-Z])/g,(function(e,t,i){return t+"-"+i})).toLowerCase()};var r=e.console;return i.htmlInit=function(t,n){i.docReady((function(){var o=i.toDashed(n),s="data-"+o,a=document.querySelectorAll("["+s+"]"),l=d
19ocument.querySelectorAll(".js-"+o),u=i.makeArray(a).concat(i.makeArray(l)),c=s+"-options",d=e.jQuery;u.forEach((function(e){var i,o=e.getAttribute(s)||e.getAttribute(c);try{i=o&&JSON.parse(o)}catch(t){return void(r&&r.error("Error parsing "+s+" on "+e.className+": "+t))}var a=new t(e,i);d&&d.data(e,n,a)}))}))},i})),function(e,t){"function"==typeof define&&define.amd?define("flickity/js/cell",["get-size/get-size"],(function(i){return t(e,i)})):"object"==typeof module&&module.exports?module.exports=t(e,require("get-size")):(e.Flickity=e.Flickity||{},e.Flickity.Cell=t(e,e.getSize))}(window,(function(e,t){function i(e,t){this.element=e,this.parent=t,this.create()}var n=i.prototype;return n.create=function(){this.element.style.position="absolute",this.element.setAttribute("aria-hidden","true"),this.x=0,this.shift=0},n.destroy=function(){this.unselect(),this.element.style.position="";var e=this.parent.originSide;this.element.style[e]="",this.element.removeAttribute("aria-hidden")},n.getSize=function(){this.size=t(this.element)},n.setPosition=function(e){this.x=e,this.updateTarget(),this.renderPosition(e)},n.updateTarget=n.setDefaultTarget=function(){var e="left"==this.parent.originSide?"marginLeft":"marginRight";this.target=this.x+this.size[e]+this.size.width*this.parent.cellAlign},n.renderPosition=function(e){var t=this.parent.originSide;this.element.style[t]=this.parent.getPositionValue(e)},n.select=function(){this.element.classList.add("is-selected"),this.element.removeAttribute("aria-hidden")},n.unselect=function(){this.element.classList.remove("is-selected"),this.element.setAttribute("aria-hidden","true")},n.wrapShift=function(e){this.shift=e,this.renderPosition(this.x+this.parent.slideableWidth*e)},n.remove=function(){this.element.parentNode.removeChild(this.element)},i})),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(),i=t?t.size[e]:0,n=this.outerWidth-(this.firstMargin+i);this.target=this.x+this.firstMargin+n*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(e,t){"function"==typeof define&&define.amd?define("flickity/js/animate",["fizzy-ui-utils/utils"],(function(i){return t(e,i)})):"object"==typeof module&&module.exports?module.exports=t(e,require("fizzy-ui-utils")):(e.Flickity=e.Flickity||{},e.Flickity.animatePrototype=t(e,e.fizzyUIUtils))}(window,(function(e,t){var i={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&&this.cells.length>1&&(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 i=this.getPositionValue(e);this.slider.style.transform=t?"translate3d("+i+",0,0)":"translateX("+i+")"},dispatchScrollEvent:function(){var e=this.slides[0];if(e){var t=-this.x-e.target,i=t/this.slidesWidth;this.dispatchEvent("scroll",null,[i,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++,this.restingFrames>2&&(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 i=this.size.innerWidth-(e+this.slideableWidth+this.cursorPosition);this._shiftCells(this.afterShiftCells,i,1)},_shiftCells:function(e,t,i){for(var n=0;n<e.length;n++){var r=e[n],o=t>0?i: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
19*=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 i})),function(e,t){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(i,n,r,o,s,a){return t(e,i,n,r,o,s,a)}));else if("object"==typeof module&&module.exports)module.exports=t(e,require("ev-emitter"),require("get-size"),require("fizzy-ui-utils"),require("./cell"),require("./slide"),require("./animate"));else{var i=e.Flickity;e.Flickity=t(e,e.EvEmitter,e.getSize,e.fizzyUIUtils,i.Cell,i.Slide,i.animatePrototype)}}(window,(function(e,t,i,n,r,o,s){function a(e,t){for(e=n.makeArray(e);e.length;)t.appendChild(e.shift())}function l(e,t){var i=n.getQueryElement(e);if(i){if(this.element=i,this.element.flickityGUID){var r=f[this.element.flickityGUID];return r&&r.option(t),r}u&&(this.$element=u(this.element)),this.options=n.extend({},this.constructor.defaults),this.option(t),this._create()}else d&&d.error("Bad element for Flickity: "+(i||e))}var u=e.jQuery,c=e.getComputedStyle,d=e.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;n.extend(p,t.prototype),p._create=function(){var t=this.guid=++h;for(var i in this.element.flickityGUID=t,f[t]=this,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)&&e.addEventListener("resize",this),this.options.on){var n=this.options.on[i];this.on(i,n)}l.createMethods.forEach((function(e){this[e]()}),this),this.options.watchCSS?this.watchCSS():this.activate()},p.option=function(e){n.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(),a(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 n.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 r(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(e>0){var i=this.cells[e-1];t=i.x+i.size.outerWidth}for(var n=this.cells.length,r=e;r<n;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=n?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 e=new o(this);this.slides.push(e);var t="left"==this.originSide?"marginRight":"marginLeft",i=this._getCanCellFit();
vendor: 8,685 bytes, line 19
19this.cells.forEach((function(n,r){if(e.cells.length){var s=e.outerWidth-e.firstMargin+(n.size.outerWidth-n.size[t]);i.call(this,r,s)||(e.updateTarget(),e=new o(this),this.slides.push(e)),e.addCell(n)}else e.addCell(n)}),this),e.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 i="string"==typeof e&&e.match(/^(\d+)%$/),n=i?parseInt(i[1],10)/100:1;return function(e,t){return t<=(this.size.innerWidth+1)*n}},p._init=p.reposition=function(){this.positionCells(),this.positionSliderAtSelected()},p.getSize=function(){this.size=i(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,i){for(var n=[];e>0;){var r=this.cells[t];if(!r)break;n.push(r),t+=i,e-=r.size.outerWidth}return n},p._containSlides=function(){if(this.options.contain&&!this.options.wrapAround&&this.cells.length){var e=this.options.rightToLeft,t=e?"marginRight":"marginLeft",i=e?"marginLeft":"marginRight",n=this.slideableWidth-this.getLastCell().size[i],r=n<this.size.innerWidth,o=this.cursorPosition+this.cells[0].size[t],s=n-this.size.innerWidth*(1-this.cellAlign);this.slides.forEach((function(e){r?e.target=n*this.cellAlign:(e.target=Math.max(e.target,o),e.target=Math.min(e.target,s))}),this)}},p.dispatchEvent=function(e,t,i){var n=t?[t].concat(i):i;if(this.emitEvent(e,n),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,i)}},p.select=function(e,t,i){if(this.isActive&&(e=parseInt(e,10),this._wrapSelect(e),(this.options.wrapAround||t)&&(e=n.modulo(e,this.slides.length)),this.slides[e])){var r=this.selectedIndex;this.selectedIndex=e,this.updateSelectedSlide(),i?this.positionSliderAtSelected():this.startAnimation(),this.options.adaptiveHeight&&this.setGallerySize(),this.dispatchEvent("select",null,[e]),e!=r&&this.dispatchEvent("change",null,[e]),this.dispatchEvent("cellSelect")}},p._wrapSelect=function(e){var t=this.slides.length;if(!(this.options.wrapAround&&t>1))return e;var i=n.modulo(e,t),r=Math.abs(i-this.selectedIndex),o=Math.abs(i+t-this.selectedIndex),s=Math.abs(i-t-this.selectedIndex);!this.isDragSelect&&o<r?e+=t:!this.isDragSelect&&s<r&&(e-=t),e<0?this.x-=this.slideableWidth:e>=t&&(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,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,i){var n=this.queryCell(e);if(n){var r=this.getCellSlideIndex(n);this.select(r,t,i)}},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 i=this.cells[t];if(i.element==e)return i}},p.getCells=function(e){e=n.makeArray(e);var t=[];return e.forEach((function(e){var i=this.getCell(e);i&&t.push(i)}),this),t},p.getCellElements=function(){return this.cells.map((function(e){return e.element}))},p.getParentCell=function(e){var t=this.getCell(e);return t||(e=n.getParent(e,".flickity-slider > *"),this.getCell(e))},p.getAdjacentCellElements=function(e,t){if(!e)return this.selectedSlide.getCellElements();t=void 0===t?this.selectedIndex:t;var i=this.slides.length;if(1+2*e>=i)return this.getCellElements();for(var r=[],o=t-e;o<=t+e;o++){var s=this.options.wrapAround?n.modulo(o,i):o,a=this.slides[s];a&&(r=r.concat(a.getCellElements()))}return r},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()},n.debounceMethod(l,"onresize",150),p.resize=function(){if(this.isActive){this.getSize(),this.options.wrapAround&&(this.x=n.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 i=l.keyboardHandlers[e.keyCode];i&&i.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 t=e.pageYOffset;this.element.focus({preventScroll:!0}),e.pageYOffset!=t&&e.scrollTo(e.pageXOffset,t)},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),a(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(),e.removeEventListener("resize",this),this.allOff(),this.emitEvent("destroy"),u&&this.$element&&u.removeData(this.element,"flickity"),delete this.element.flickityGUID,delete f[this.guid]},n.extend(p,s),l.data=function(e){var t=(e=n.getQueryElement(e))&&e.flickityGUID;return t&&f[t]},n.htmlInit(l,"flickity"),u&&u.bridget&&u.bridget("flickity",l),l.setJQuery=function(e){u=e},l.Cell=r,l.Slide=o,l})),function(e,t){"function"==typeof define&&define.amd?define("unipointer/unipointer",["ev-emitter/ev-emitter"],(function(i){return t(e,i)})):"object"==typeof module&&module.exports?module.exports=t(e,require("ev-emitter")):e.Unipointer=t(e,e.EvEmitter)}(window,(function(e,t){function i(){}function n(){}var r=n.prototype=Object.create(t.prototype);r.bindStartEvent=function(e){this._bindStartEvent(e,!0)},r.unbindStartEvent=function(e){this._bindStartEvent(e,!1)},r._bindStartEvent=function(t,i){var n=(i=void 0===i||i)?"addEventListener":"removeEventListener",r="mousedown";e.PointerEvent?r="pointerdown":"ontouchstart"in e&&(r="touchstart"),t[n](r,this)},r.handleEvent=function(e){var t="on"+e.type;this[t]&&this[t](e)},r.getTouch=function(e){for(var t=0;t<e.length;t++){var i=e[t];if(i.identifier==this.pointerIdentifier)return i}},r.onmousedown=function(e){var t=e.button;t&&0!==t&&1!==t||this._pointerDown(e,e)},r.ontouchstart=function(e){this._pointerDown(e,e.changedTouches[0])},r.onpointerdown=function(e){this._pointerDown(e,e)},r._pointerDown=function(e,t){e.button||this.isPointerDown||(this.isPointerDown=!0,this.pointerIdentifier=void 0!==t.pointerId?t.pointerId:t.identifier,this.pointerDown(e,t))},r.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 r._bindPostStartEvents=function(t){if(t){var i=o[t.type];
19i.forEach((function(t){e.addEventListener(t,this)}),this),this._boundPointerEvents=i}},r._unbindPostStartEvents=function(){this._boundPointerEvents&&(this._boundPointerEvents.forEach((function(t){e.removeEventListener(t,this)}),this),delete this._boundPointerEvents)},r.onmousemove=function(e){this._pointerMove(e,e)},r.onpointermove=function(e){e.pointerId==this.pointerIdentifier&&this._pointerMove(e,e)},r.ontouchmove=function(e){var t=this.getTouch(e.changedTouches);t&&this._pointerMove(e,t)},r._pointerMove=function(e,t){this.pointerMove(e,t)},r.pointerMove=function(e,t){this.emitEvent("pointerMove",[e,t])},r.onmouseup=function(e){this._pointerUp(e,e)},r.onpointerup=function(e){e.pointerId==this.pointerIdentifier&&this._pointerUp(e,e)},r.ontouchend=function(e){var t=this.getTouch(e.changedTouches);t&&this._pointerUp(e,t)},r._pointerUp=function(e,t){this._pointerDone(),this.pointerUp(e,t)},r.pointerUp=function(e,t){this.emitEvent("pointerUp",[e,t])},r._pointerDone=function(){this._pointerReset(),this._unbindPostStartEvents(),this.pointerDone()},r._pointerReset=function(){this.isPointerDown=!1,delete this.pointerIdentifier},r.pointerDone=i,r.onpointercancel=function(e){e.pointerId==this.pointerIdentifier&&this._pointerCancel(e,e)},r.ontouchcancel=function(e){var t=this.getTouch(e.changedTouches);t&&this._pointerCancel(e,t)},r._pointerCancel=function(e,t){this._pointerDone(),this.pointerCancel(e,t)},r.pointerCancel=function(e,t){this.emitEvent("pointerCancel",[e,t])},n.getPointerPoint=function(e){return{x:e.pageX,y:e.pageY}},n})),function(e,t){"function"==typeof define&&define.amd?define("unidragger/unidragger",["unipointer/unipointer"],(function(i){return t(e,i)})):"object"==typeof module&&module.exports?module.exports=t(e,require("unipointer")):e.Unidragger=t(e,e.Unipointer)}(window,(function(e,t){function i(){}var n=i.prototype=Object.create(t.prototype);n.bindHandles=function(){this._bindHandles(!0)},n.unbindHandles=function(){this._bindHandles(!1)},n._bindHandles=function(t){for(var i=(t=void 0===t||t)?"addEventListener":"removeEventListener",n=t?this._touchActionValue:"",r=0;r<this.handles.length;r++){var o=this.handles[r];this._bindStartEvent(o,t),o[i]("click",this),e.PointerEvent&&(o.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},o={radio:!0,checkbox:!0,button:!0,submit:!0,image:!0,file:!0};return n.okayPointerDown=function(e){var t=r[e.target.nodeName],i=o[e.target.type],n=!t||i;return n||this._pointerReset(),n},n.pointerDownBlur=function(){var e=document.activeElement;e&&e.blur&&e!=document.body&&e.blur()},n.pointerMove=function(e,t){var i=this._dragPointerMove(e,t);this.emitEvent("pointerMove",[e,t,i]),this._dragMove(e,t,i)},n._dragPointerMove=function(e,t){var i={x:t.pageX-this.pointerDownPointer.pageX,y:t.pageY-this.pointerDownPointer.pageY};return!this.isDragging&&this.hasDragStarted(i)&&this._dragStart(e,t),i},n.hasDragStarted=function(e){return Math.abs(e.x)>3||Math.abs(e.y)>3},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.isPreventing
vendor: 15,602 bytes, lines 19-20
19Clicks=!0,this.dragStart(e,t)},n.dragStart=function(e,t){this.emitEvent("dragStart",[e,t])},n._dragMove=function(e,t,i){this.isDragging&&this.dragMove(e,t,i)},n.dragMove=function(e,t,i){e.preventDefault(),this.emitEvent("dragMove",[e,t,i])},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])},i.getPointerPoint=t.getPointerPoint,i})),function(e,t){"function"==typeof define&&define.amd?define("flickity/js/drag",["./flickity","unidragger/unidragger","fizzy-ui-utils/utils"],(function(i,n,r){return t(e,i,n,r)})):"object"==typeof module&&module.exports?module.exports=t(e,require("./flickity"),require("unidragger"),require("fizzy-ui-utils")):e.Flickity=t(e,e.Flickity,e.Unidragger,e.fizzyUIUtils)}(window,(function(e,t,i,n){function r(){return{x:e.pageXOffset,y:e.pageYOffset}}n.extend(t.defaults,{draggable:">1",dragThreshold:3}),t.createMethods.push("_createDrag");var o=t.prototype;n.extend(o,i.prototype),o._touchActionValue="pan-y";var s="createTouch"in document,a=!1;o._createDrag=function(){this.on("activate",this.onActivateDrag),this.on("uiChange",this._uiChangeDrag),this.on("deactivate",this.onDeactivateDrag),this.on("cellChange",this.updateDraggable),s&&!a&&(e.addEventListener("touchmove",(function(){})),a=!0)},o.onActivateDrag=function(){this.handles=[this.viewport],this.bindHandles(),this.updateDraggable()},o.onDeactivateDrag=function(){this.unbindHandles(),this.element.classList.remove("is-draggable")},o.updateDraggable=function(){">1"==this.options.draggable?this.isDraggable=this.slides.length>1:this.isDraggable=this.options.draggable,this.isDraggable?this.element.classList.add("is-draggable"):this.element.classList.remove("is-draggable")},o.bindDrag=function(){this.options.draggable=!0,this.updateDraggable()},o.unbindDrag=function(){this.options.draggable=!1,this.updateDraggable()},o._uiChangeDrag=function(){delete this.isFreeScrolling},o.pointerDown=function(t,i){this.isDraggable?this.okayPointerDown(t)&&(this._pointerDownPreventDefault(t),this.pointerDownFocus(t),document.activeElement!=this.element&&this.pointerDownBlur(),this.dragX=this.x,this.viewport.classList.add("is-pointer-down"),this.pointerDownScroll=r(),e.addEventListener("scroll",this),this._pointerDownDefault(t,i)):this._pointerDownDefault(t,i)},o._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 o.pointerDownFocus=function(e){l[e.target.nodeName]||this.focus()},o._pointerDownPreventDefault=function(e){var t="touchstart"==e.type,i="touch"==e.pointerType,n=l[e.target.nodeName];t||i||n||e.preventDefault()},o.hasDragStarted=function(e){return Math.abs(e.x)>this.options.dragThreshold},o.pointerUp=function(e,t){delete this.isTouchScrolling,this.viewport.classList.remove("is-pointer-down"),this.dispatchEvent("pointerUp",e,[t]),this._dragPointerUp(e,t)},o.pointerDone=function(){e.removeEventListener("scroll",this),delete this.pointerDownScroll},o.dragStart=function(t,i){this.isDraggable&&(this.dragStartPosition=this.x,this.startAnimation(),e.removeEventListener("scroll",this),this.dispatchEvent("dragStart",t,[i]))},o.pointerMove=function(e,t){var i=this._dragPointerMove(e,t);this.dispatchEvent("pointerMove",e,[t,i]),this._dragMove(e,t,i)},o.dragMove=function(e,t,i){if(this.isDraggable){e.preventDefault(),this.previousDragX=this.dragX;var n=this.options.rightToLeft?-1:1;this.options.wrapAround&&(i.x%=this.slideableWidth);var r=this.dragStartPosition+i.x*n;if(!this.options.wrapAround&&this.slides.length){var o=Math.max(-this.slides[0].target,this.dragStartPosition);r=r>o?.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,i])}},o.dragEnd=function(e,t){if(this.isDraggable){this.options.freeScroll&&(this.isFreeScrolling=!0);var i=this.dragEndRestingSelect();if(this.options.freeScroll&&!this.options.wrapAround){var n=this.getRestingPosition();this.isFreeScrolling=-n>this.slides[0].target&&-n<this.getLastSlide().target}else this.options.freeScroll||i!=this.selectedIndex||(i+=this.dragEndBoostSelect());delete this.previousDragX,this.isDragSelect=this.options.wrapAround,this.select(i),delete this.isDragSelect,this.dispatchEvent("dragEnd",e,[t])}},o.dragEndRestingSelect=function(){var e=this.getRestingPosition(),t=Math.abs(this.getSlideDistance(-e,this.selectedIndex)),i=this._getClosestResting(e,t,1),n=this._getClosestResting(e,t,-1);return i.distance<n.distance?i.index:n.index},o._getClosestResting=function(e,t,i){for(var n=this.selectedIndex,r=1/0,o=this.options.contain&&!this.options.wrapAround?function(e,t){return e<=t}:function(e,t){return e<t};o(t,r)&&(n+=i,r=t,null!==(t=this.getSlideDistance(-e,n)));)t=Math.abs(t);return{distance:r,index:n-i}},o.getSlideDistance=function(e,t){var i=this.slides.length,r=this.options.wrapAround&&i>1,o=r?n.modulo(t,i):t,s=this.slides[o];if(!s)return null;var a=r?this.slideableWidth*Math.floor(t/i):0;return e-(s.target+a)},o.dragEndBoostSelect=function(){if(void 0===this.previousDragX||!this.dragMoveTime||new Date-this.dragMoveTime>100)return 0;var e=this.getSlideDistance(-this.dragX,this.selectedIndex),t=this.previousDragX-this.dragX;return e>0&&t>0?1:e<0&&t<0?-1:0},o.staticClick=function(e,t){var i=this.getParentCell(e.target),n=i&&i.element,r=i&&this.cells.indexOf(i);this.dispatchEvent("staticClick",e,[t,n,r])},o.onscroll=function(){var e=r(),t=this.pointerDownScroll.x-e.x,i=this.pointerDownScroll.y-e.y;(Math.abs(t)>3||Math.abs(i)>3)&&this._pointerDone()},t})),function(e,t){"function"==typeof define&&define.amd?define("flickity/js/prev-next-button",["./flickity","unipointer/unipointer","fizzy-ui-utils/utils"],(function(i,n,r){return t(e,i,n,r)})):"object"==typeof module&&module.exports?module.exports=t(e,require("./flickity"),require("unipointer"),require("fizzy-ui-utils")):t(e,e.Flickity,e.Unipointer,e.fizzyUIUtils)}(window,(function(e,t,i,n){"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(i.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 i=this.createSVG();t.appendChild(i),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"),i=o(this.parent.options.arrowShape);return t.setAttribute("d",i),t.setAttribute("class","arrow"),this.isLeft||t.setAttribute("transform","translate(100, 100) rotate(180) "),e.appendChild(t),e},r.prototype.handleEvent=n.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&&e.length>1)this.enable();else{var t=e.length?e.length-1:0,i=this.isPrevious?0:t;this[this.parent.selectedIndex==i?"disable":"enable"]()}},r.prototype.destroy=function(){this.deactivate(),this.allOff()},n.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(e,t){"function"==typeof define&&define.amd?define("flickity/js/page-dots",["./flickity","unipointer/unipointer","fizzy-ui-utils/utils"],(function(i,n,r){return t(e,i,n,r)})):"object"==typeof module&&module.exports?module.exports=t(e,require("./flickity"),require("unipointer"),require("fizzy-ui-utils")):t(e,e.Flickity,e.Unipointer,e.fizzyUIUtils)}(window,(function(e,t,i,n){function r(e){this.parent=e,this._create()}r.prototype=Object.create(i.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;e>0?this.addDots(e):e<0&&this.removeDots(-e)},r.prototype.addDots=function(e){for(var t=document.createDocumentFragment(),i=[],n=this.dots.length,r=n+e,o=n;o<r;o++){var s=document.createElement("li");s.className="dot",
20s.setAttribute("aria-label","Page dot "+(o+1)),t.appendChild(s),i.push(s)}this.holder.appendChild(t),this.dots=this.dots.concat(i)},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 i=this.dots.indexOf(t);this.parent.select(i)}},r.prototype.destroy=function(){this.deactivate(),this.allOff()},t.PageDots=r,n.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,t){"function"==typeof define&&define.amd?define("flickity/js/player",["ev-emitter/ev-emitter","fizzy-ui-utils/utils","./flickity"],(function(e,i,n){return t(e,i,n)})):"object"==typeof module&&module.exports?module.exports=t(require("ev-emitter"),require("fizzy-ui-utils"),require("./flickity")):t(e.EvEmitter,e.fizzyUIUtils,e.Flickity)}(window,(function(e,t,i){function n(e){this.parent=e,this.state="stopped",this.onVisibilityChange=this.visibilityChange.bind(this),this.onVisibilityPlay=this.visibilityPlay.bind(this)}n.prototype=Object.create(e.prototype),n.prototype.play=function(){"playing"!=this.state&&(document.hidden?document.addEventListener("visibilitychange",this.onVisibilityPlay):(this.state="playing",document.addEventListener("visibilitychange",this.onVisibilityChange),this.tick()))},n.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)}},n.prototype.stop=function(){this.state="stopped",this.clear(),document.removeEventListener("visibilitychange",this.onVisibilityChange)},n.prototype.clear=function(){clearTimeout(this.timeout)},n.prototype.pause=function(){"playing"==this.state&&(this.state="paused",this.clear())},n.prototype.unpause=function(){"paused"==this.state&&this.play()},n.prototype.visibilityChange=function(){this[document.hidden?"pause":"unpause"]()},n.prototype.visibilityPlay=function(){this.play(),document.removeEventListener("visibilitychange",this.onVisibilityPlay)},t.extend(i.defaults,{pauseAutoPlayOnHover:!0}),i.createMethods.push("_createPlayer");var r=i.prototype;return r._createPlayer=function(){this.player=new n(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)},i.Player=n,i})),function(e,t){"function"==typeof define&&define.amd?define("flickity/js/add-remove-cell",["./flickity","fizzy-ui-utils/utils"],(function(i,n){return t(e,i,n)})):"object"==typeof module&&module.exports?module.exports=t(e,require("./flickity"),require("fizzy-ui-utils")):t(e,e.Flickity,e.fizzyUIUtils)}(window,(function(e,t,i){function n(e){var t=document.createDocumentFragment();return e.forEach((function(e){t.appendChild(e.element)})),t}var r=t.prototype;return r.insert=function(e,t){var i=this._makeCells(e);if(i&&i.length){var r=this.cells.length;t=void 0===t?r:t;var o=n(i),s=t==r;if(s)this.slider.appendChild(o);else{var a=this.cells[t].element;this.slider.insertBefore(o,a)}if(0===t)this.cells=i.concat(this.cells);else if(s)this.cells=this.cells.concat(i);else{var l=this.cells.splice(t,r-t);
20this.cells=this.cells.concat(i).concat(l)}this._sizeCells(i),this.cellChange(t,!0)}},r.append=function(e){this.insert(e,this.cells.length)},r.prepend=function(e){this.insert(e,0)},r.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)}},r.cellSizeChange=function(e){var t=this.getCell(e);if(t){t.getSize();var i=this.cells.indexOf(t);this.cellChange(i)}},r.cellChange=function(e,t){var i=this.selectedElement;this._positionCells(e),this._getWrapShiftCells(),this.setGallerySize();var n=this.getCell(i);n&&(this.selectedIndex=this.getCellSlideIndex(n)),this.selectedIndex=Math.min(this.slides.length-1,this.selectedIndex),this.emitEvent("cellChange",[e]),this.select(this.selectedIndex),t&&this.positionSliderAtSelected()},t})),function(e,t){"function"==typeof define&&define.amd?define("flickity/js/lazyload",["./flickity","fizzy-ui-utils/utils"],(function(i,n){return t(e,i,n)})):"object"==typeof module&&module.exports?module.exports=t(e,require("./flickity"),require("fizzy-ui-utils")):t(e,e.Flickity,e.fizzyUIUtils)}(window,(function(e,t,i){"use strict";function n(e){if("IMG"==e.nodeName){var t=e.getAttribute("data-flickity-lazyload"),n=e.getAttribute("data-flickity-lazyload-src"),r=e.getAttribute("data-flickity-lazyload-srcset");if(t||n||r)return[e]}var o="img[data-flickity-lazyload], img[data-flickity-lazyload-src], img[data-flickity-lazyload-srcset]",s=e.querySelectorAll(o);return i.makeArray(s)}function r(e,t){this.img=e,this.flickity=t,this.load()}t.createMethods.push("_createLazyload");var o=t.prototype;return o._createLazyload=function(){this.on("select",this.lazyLoad)},o.lazyLoad=function(){var e=this.options.lazyLoad;if(e){var t="number"==typeof e?e:0,i=this.getAdjacentCellElements(t),o=[];i.forEach((function(e){var t=n(e);o=o.concat(t)})),o.forEach((function(e){new r(e,this)}),this)}},r.prototype.handleEvent=i.handleEvent,r.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")},r.prototype.onload=function(e){this.complete(e,"flickity-lazyloaded")},r.prototype.onerror=function(e){this.complete(e,"flickity-lazyerror")},r.prototype.complete=function(e,t){this.img.removeEventListener("load",this),this.img.removeEventListener("error",this);var i=this.flickity.getParentCell(this.img),n=i&&i.element;this.flickity.cellSizeChange(n),this.img.classList.add(t),this.flickity.dispatchEvent("lazyLoad",e,n)},t.LazyLoader=r,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(e,t){function i(e,t,i){return(t-e)*i+e}e.createMethods.push("_createAsNavFor");var n=e.prototype;return n._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)}))}},n.setNavCompanion=function(i){i=t.getQueryElement(i);var n=e.data(i);if(n&&n!=this){this.navCompanion=n;var r=this;this.onNavCompanionSelect=function(){r.navCompanionSelect()},n.on("select",this.onNavCompanionSelect),this.on("staticClick",this.onNavStaticClick),this.navCompanionSelect(!0)}},n.navCompanionSelect=function(e){var t=this.navCompanion&&this.navCompanion.selectedCells;if(t){var n=t[0],r=this.navCompanion.cells.indexOf(n),o=r+t.length-1,s=Math.floor(i(r,o,this.navCompanion.cellAlign));if(this.selectCell(s,!1,e),this.removeNavSelectedElements(),!(s>=this.cells.length)){var a=this.cells.slice(r,o+1);this.navSelectedElements=a.map((function(e){return e.element})),this.changeNavSelectedClass("add")}}},n.changeNavSelectedClass=function(e){this.navSelectedElements.forEac
20h((function(t){t.classList[e]("is-nav-selected")}))},n.activateAsNavFor=function(){this.navCompanionSelect(!0)},n.removeNavSelectedElements=function(){this.navSelectedElements&&(this.changeNavSelectedClass("remove"),delete this.navSelectedElements)},n.onNavStaticClick=function(e,t,i,n){"number"==typeof n&&this.navCompanion.selectCell(n)},n.deactivateAsNavFor=function(){this.removeNavSelectedElements()},n.destroyAsNavFor=function(){this.navCompanion&&(this.navCompanion.off("select",this.onNavCompanionSelect),this.off("staticClick",this.onNavStaticClick),delete this.navCompanion)},e})),function(e,t){"use strict";"function"==typeof define&&define.amd?define("imagesloaded/imagesloaded",["ev-emitter/ev-emitter"],(function(i){return t(e,i)})):"object"==typeof module&&module.exports?module.exports=t(e,require("ev-emitter")):e.imagesLoaded=t(e,e.EvEmitter)}("undefined"!=typeof window?window:this,(function(e,t){function i(e,t){for(var i in t)e[i]=t[i];return e}function n(e){return Array.isArray(e)?e:"object"==typeof e&&"number"==typeof e.length?u.call(e):[e]}function r(e,t,o){if(!(this instanceof r))return new r(e,t,o);var s=e;"string"==typeof e&&(s=document.querySelectorAll(e)),s?(this.elements=n(s),this.options=i({},this.options),"function"==typeof t?o=t:i(this.options,t),o&&this.on("always",o),this.getImages(),a&&(this.jqDeferred=new a.Deferred),setTimeout(this.check.bind(this))):l.error("Bad element for imagesLoaded "+(s||e))}function o(e){this.img=e}function s(e,t){this.url=e,this.element=t,this.img=new Image}var a=e.jQuery,l=e.console,u=Array.prototype.slice;r.prototype=Object.create(t.prototype),r.prototype.options={},r.prototype.getImages=function(){this.images=[],this.elements.forEach(this.addElementImages,this)},r.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 i=e.querySelectorAll("img"),n=0;n<i.length;n++){var r=i[n];this.addImage(r)}if("string"==typeof this.options.background){var o=e.querySelectorAll(this.options.background);for(n=0;n<o.length;n++){var s=o[n];this.addElementBackgroundImages(s)}}}};var c={1:!0,9:!0,11:!0};return r.prototype.addElementBackgroundImages=function(e){var t=getComputedStyle(e);if(t)for(var i=/url\((['"])?(.*?)\1\)/gi,n=i.exec(t.backgroundImage);null!==n;){var r=n&&n[2];r&&this.addBackground(r,e),n=i.exec(t.backgroundImage)}},r.prototype.addImage=function(e){var t=new o(e);this.images.push(t)},r.prototype.addBackground=function(e,t){var i=new s(e,t);this.images.push(i)},r.prototype.check=function(){function e(e,i,n){setTimeout((function(){t.progress(e,i,n)}))}var t=this;this.progressedCount=0,this.hasAnyBroken=!1,this.images.length?this.images.forEach((function(t){t.once("progress",e),t.check()})):this.complete()},r.prototype.progress=function(e,t,i){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: "+i,e,t)},r.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)}},o.prototype=Object.create(t.prototype),o.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)},o.prototype.getIsImageComplete=function(){return this.img.complete&&this.img.naturalWidth},o.prototype.confirm=function(e,t){this.isLoaded=e,this.emitEvent("progress",[this,this.img,t])},o.prototype.handleEvent=function(e){var t="on"+e.type;this[t]&&this[t](e)},o.prototype.onload=function(){this.confirm(!0,"onload"),this.unbindEvents()},o.prototype.onerror=function(){this.confirm(!1,"onerror"),this.unbindEvents()},o.prototype.unbindEvents=function(){this.proxyImage.removeEventListener("load",this),this.proxyImage.removeEventListener("error",this),this.img.removeEventListener("load",this),this.img.removeEventListener("error",this)},s.prototype=Object.create(o.prototype),s.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.naturalWi
20dth,"naturalWidth"),this.unbindEvents())},s.prototype.unbindEvents=function(){this.img.removeEventListener("load",this),this.img.removeEventListener("error",this)},s.prototype.confirm=function(e,t){this.isLoaded=e,this.emitEvent("progress",[this,this.element,t])},r.makeJQueryPlugin=function(t){(t=t||e.jQuery)&&((a=t).fn.imagesLoaded=function(e,t){return new r(this,e,t).jqDeferred.promise(a(this))})},r.makeJQueryPlugin(),r})),function(e,t){"function"==typeof define&&define.amd?define(["flickity/js/index","imagesloaded/imagesloaded"],(function(i,n){return t(e,i,n)})):"object"==typeof module&&module.exports?module.exports=t(e,require("flickity"),require("imagesloaded")):e.Flickity=t(e,e.Flickity,e.imagesLoaded)}(window,(function(e,t,i){"use strict";t.createMethods.push("_createImagesLoaded");var n=t.prototype;return n._createImagesLoaded=function(){this.on("activate",this.imagesLoaded)},n.imagesLoaded=function(){function e(e,i){var n=t.getParentCell(i.img);t.cellSizeChange(n&&n.element),t.options.freeScroll||t.positionSliderAtSelected()}if(this.options.imagesLoaded){var t=this;i(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,t){var i=e.Slide,n=i.prototype.updateTarget;i.prototype.updateTarget=function(){if(n.apply(this,arguments),this.parent.options.fade){var e=this.target-this.x,t=this.cells[0].x;this.cells.forEach((function(i){var n=i.x-t-e;i.renderPosition(n)}))}},i.prototype.setOpacity=function(e){this.cells.forEach((function(t){t.element.style.opacity=e}))};var r=e.prototype;e.createMethods.push("_createFade"),r._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 o=r.updateSlides;r.updateSlides=function(){o.apply(this,arguments),this.options.fade&&this.slides.forEach((function(e,t){var i=t==this.selectedIndex?1:0;e.setOpacity(i)}),this)},r.onSelectFade=function(){this.fadeIndex=Math.min(this.prevSelectedIndex,this.slides.length-1),this.prevSelectedIndex=this.selectedIndex},r.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))},r.onDragEndFade=function(){this.didDragEnd=!0},r.onActivateFade=function(){this.options.fade&&this.element.classList.add("is-fade")},r.onDeactivateFade=function(){this.options.fade&&(this.element.classList.remove("is-fade"),this.slides.forEach((function(e){e.setOpacity("")})))};var s=r.positionSlider;r.positionSlider=function(){this.options.fade?(this.fadeSlides(),this.dispatchScrollEvent()):s.apply(this,arguments)};var a=r.positionSliderAtSelected;r.positionSliderAtSelected=function(){this.options.fade&&this.setTranslateX(0),a.apply(this,arguments)},r.fadeSlides=function(){if(!(this.slides.length<2)){var e=this.getFadeIndexes(),t=this.slides[e.a],i=this.slides[e.b],n=this.wrapDifference(t.target,i.target),r=this.wrapDifference(t.target,-this.x);r/=n,t.setOpacity(1-r),i.setOpacity(r);var o=e.a;this.isDragging&&(o=r>.5?e.a:e.b),null!=this.fadeHideIndex&&this.fadeHideIndex!=o&&this.fadeHideIndex!=e.a&&this.fadeHideIndex!=e.b&&this.slides[this.fadeHideIndex].setOpacity(0),this.fadeHideIndex=o}},r.getFadeIndexes=function(){return this.isDragging||this.didDragEnd?this.options.wrapAround?this.getFadeDragWrapIndexes():this.getFadeDragLimitIndexes():{a:this.fadeIndex,b:this.selectedIndex}},r.getFadeDragWrapIndexes=function(){var e=this.slides.map((function(e,t){return this.getSlideDistance(-this.x,t)}),this),i=e.map((function(e){return Math.abs(e)})),n=Math.min.apply(Math,i),r=i.indexOf(n),o=e[r],s=this.slides.length,a=o>=0?1:-1;return{a:r,b:t.modulo(r+a,s)}},r.getFadeDragLimitIndexes=function(){for(var e=0,t=0;t<this.slides.length-1;t++){var i=this.slides[t];
20if(-this.x<i.target)break;e=t}return{a:e,b:e+1}},r.wrapDifference=function(e,t){var i=t-e;if(!this.options.wrapAround)return i;var n=i+this.slideableWidth,r=i-this.slideableWidth;return Math.abs(n)<Math.abs(i)&&(i=n),Math.abs(r)<Math.abs(i)&&(i=r),i};var l=r._getWrapShiftCells;r._getWrapShiftCells=function(){this.options.fade||l.apply(this,arguments)};var u=r.shiftWrapCells;return r.shiftWrapCells=function(){this.options.fade||u.apply(this,arguments)},e})),function(){function e(t,i,n){function r(s,a){if(!i[s]){if(!t[s]){var l="function"==typeof require&&require;if(!a&&l)return l(s,!0);if(o)return o(s,!0);var u=new Error("Cannot find module '"+s+"'");throw u.code="MODULE_NOT_FOUND",u}var c=i[s]={exports:{}};t[s][0].call(c.exports,(function(e){var i=t[s][1][e];return r(i||e)}),c,c.exports,e,t,i,n)}return i[s].exports}for(var o="function"==typeof require&&require,s=0;s<n.length;s++)r(n[s]);return r}return e}()({1:[function(){try{var e=new window.CustomEvent("test");if(e.preventDefault(),!0!==e.defaultPrevented)throw new Error("Could not prevent default")}catch(e){var t=function(e,t){var i,n;return t=t||{bubbles:!1,cancelable:!1,detail:void 0},(i=document.createEvent("CustomEvent")).initCustomEvent(e,t.bubbles,t.cancelable,t.detail),n=i.preventDefault,i.preventDefault=function(){n.call(this);try{Object.defineProperty(this,"defaultPrevented",{get:function(){return!0}})}catch(e){this.defaultPrevented=!0}},i};t.prototype=window.Event.prototype,window.CustomEvent=t}},{}],2:[function(e,t){"use strict";function i(e){if(null==e)throw new TypeError("Cannot convert first argument to object");for(var t=Object(e),i=1;i<arguments.length;i++){var n=arguments[i];if(null!=n)for(var r=Object.keys(Object(n)),o=0,s=r.length;o<s;o++){var a=r[o],l=Object.getOwnPropertyDescriptor(n,a);void 0!==l&&l.enumerable&&(t[a]=n[a])}}return t}function n(){Object.assign||Object.defineProperty(Object,"assign",{enumerable:!1,configurable:!0,writable:!0,value:i})}t.exports={assign:i,polyfill:n}},{}],3:[function(e,t){"use strict";var i=e("../index"),n=function(e){e.fn.modalVideo=function(e){return"strings"==typeof e||new i(this,e),this}};if("function"==typeof define&&define.amd)define(["jquery"],n);else{var r=window.jQuery?window.jQuery:window.$;void 0!==r&&n(r)}t.exports=n},{"../index":5}],4:[function(e,t,i){"use strict";function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(i,"__esModule",{value:!0});var r=function(){function e(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,i,n){return i&&e(t.prototype,i),n&&e(t,n),t}}();e("custom-event-polyfill");var o=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"}},l=function(){function e(t,i){var r=this;n(this,e);var l=s({},a,i),u="string"==typeof t?document.querySelectorAll(t):t,c=document.querySelector("body"),d=l.classNames,h=l.animationSpeed;[].forEach.call(u,(function(e){e.addEventListener("click",(function(t){"A"===e.tagName&&t.preventDefault();var i=e.dataset.videoId,n=e.dataset.channel||l.channel,s=(0,o.getUniqId)(),a=e.dataset.videoUrl||r.getVideoUrl(l,n,i),u=r.getHtml(l,a,s);(0,o.append)(c,u);var f=document.getElementById(s),p=f.querySelector(".js-modal-video-dismiss-btn"),m=void 0,g=function(){clearTimeout(m),m=setTimeout((function(){var e=r.getWidthFulfillAspectRatio(l.ratio,window.innerHeight,window.innerWidth),t=document.getElementById("modal-video-inner-"+s);t.style.maxWidth!==e&&(t.style.maxWidth=e)}),10)};f.focus(),f.addEventListener("click",(function(){(0,o.addClass)(f,d.modalVideoClose),window.removeEventListener("resize",g),setTimeout((function(){(0,o.remove)(f),e.focus()}),h)})),f.addEventListener("keydown",(function(e){9===e.which&&(e.preventDefault(),document.activeElement===f?p.focus():(f.setAttribute("aria-label",""),f.focus()))})),window.addEventListener("resize",g),p.addEventListener("click",(function(){(0,o.triggerEvent)(f,"click")}))}))}))}return r(e,[{key:"getPadding",value:function(e){var t=e.split(":"),i=Number(t[0]);return 100*Number(t[1])/i+"%"}},{key:"getWidthFulfillAspectRatio",value:function(e,t,i){var n=e.split(":"),r=Number(n[0]),o=Number(n[1]);return t<i*(o/r)?Math.floor(r/o*t)+"px":"100%"}},{key:"getQueryString",value:function(e){var t="";return Object.keys(e).forEach((function(i){t+=i+"="+e[i]+"&"})),t.substr(0,t.length-1)}},{key:"getVideoUrl",value:function(e,t,i){return"youtube"===t?this.getYoutubeUrl(e.youtube,i):"vimeo"===t?this.getVimeoUrl(e.vimeo,i):"facebook"===t?this.getFacebookUrl(e.facebook,i):"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 i=this.getQueryString(e);return!0===e.nocookie?"//www.youtube-nocookie.com/embed/"+t+"?"+i:"//www.youtube.com/embed/"+t+"?"+i}},{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,i){var n=this.getPadding(e.ratio),r=e.classNames;return'\n      <div class="'+r.modalVideo+'" tabindex="-1" role="dialog" aria-label="'+e.aria.openMessage+'" id="'+i+'">\n        <div class="'+r.modalVideoBody+'">\n          <div class="'+r.modalVideoInner+'" id="modal-video-inner-'+i+'">\n            <div class="'+r.modalVideoIframeWrap+'" style="padding-bottom:'+n+'">\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    '}}
20]),e}();i.default=l,t.exports=i.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,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});i.append=function(e,t){var i=document.createElement("div");for(i.innerHTML=t;i.children.length>0;)e.appendChild(i.children[0])},i.getUniqId=function(){return(Date.now().toString(36)+Math.random().toString(36).substr(2,5)).toUpperCase()},i.remove=function(e){e&&e.parentNode&&e.parentNode.removeChild(e)},i.addClass=function(e,t){e.classList?e.classList.add(t):e.className+=" "+t},i.triggerEvent=function(e,t,i){var n=void 0;window.CustomEvent?n=new CustomEvent(t,{cancelable:!0}):(n=document.createEvent("CustomEvent")).initCustomEvent(t,!1,!1,i),e.dispatchEvent(n)}},{}]},{},[3]),$((function(){$(".accordion-wrapper").each((function(){var e=$(this);e.find(".accordion-header").on("click keypress",(function(t){if("keypress"!==t.type||"Enter"===t.code||"Space"===t.code){var i=$(t.target).hasClass("active");$(t.target).toggleClass("active"),$(t.target).attr("aria-expanded",!i),e.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 i=new CarouselItem(e[t],this);i.init(),this.items.push(i),this.firstItem||(this.firstItem=i,this.currentDomNode=i.domNode),this.lastItem=i;var n=e[t].querySelectorAll(".homepage-carousel-image a");n&&n[0]&&(n[0].addEventListener("focus",this.handleImageLinkFocus.bind(this)),n[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 i=0;i<this.items.length;i++)this.items[i].hide();this.currentItem=e,this.currentItem.show(),t&&this.currentItem.domNode.focus()},Carousel.prototype.setSelectedToPreviousItem=function(e,t){var i;"boolean"!=typeof t&&(t=!1),"object"!=typeof e&&(e=this.currentItem),e===this.firstItem?this.setSelected(this.lastItem,t):(i=this.items.indexOf(e),this.setSelected(this.items[i-1],t))},Carousel.prototype.setSelectedToNextItem=function(e,t){var i;"boolean"!=typeof t&&(t=!1),"object"!=typeof e&&(e=this.currentItem),e===this.lastItem?this.setSelected(this.firstItem,t):(i=this.items.indexOf(e),this.setSelected(this.items[i+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)),
21this.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(e,t){function i(e,t){return c.getComputedStyle||(c.getComputedStyle=function(e){return this.el=e,this.getPropertyValue=function(t){var i=/(\-([a-z]){1})/g;return"float"==t&&(t="styleFloat"),i.test(t)&&(t=t.replace(i,(function(e,t,i){return i.toUpperCase()}))),e.currentStyle&&e.currentStyle[t]?e.currentStyle[t]:null},this}),c.getComputedStyle(e,null).getPropertyValue(t)}function n(t){t=t||e.clientHeight;var i=o(e);return Math.max(Math.floor(t/i),0)}function r(t){return o(e)*t}function o(e){var t=i(e,"line-height");return"normal"==t&&(t=1.2*parseInt(i(e,"font-size"))),parseInt(t)}
21function s(t){return t.lastChild.children&&0<t.lastChild.children.length?s(Array.prototype.slice.call(t.children).pop()):t.lastChild&&t.lastChild.nodeValue&&""!=t.lastChild.nodeValue&&t.lastChild.nodeValue!=d.truncationChar?t.lastChild:(t.lastChild.parentNode.removeChild(t.lastChild),s(e))}function a(t,i){if(i){var n=t.nodeValue.replace(d.truncationChar,"");if(v||(S=0<w.length?w.shift():"",v=n.split(S)),1<v.length?(y=v.pop(),l(t,v.join(S))):v=null,u&&(t.nodeValue=t.nodeValue.replace(d.truncationChar,""),e.innerHTML=t.nodeValue+" "+u.innerHTML+d.truncationChar),v){if(e.clientHeight<=i){if(!(0<=w.length&&""!=S))return e.innerHTML;l(t,v.join(S)+S+y),v=null}}else""==S&&(l(t,""),t=s(e),w=d.splitOnChars.slice(0),S=w[0],y=v=null);if(!d.animate)return a(t,i);setTimeout((function(){a(t,i)}),!0===d.animate?10:d.animate)}}function l(e,t){e.nodeValue=t+d.truncationChar}t=t||{};var u,c=window,d={clamp:t.clamp||2,useNativeClamp:void 0===t.useNativeClamp||t.useNativeClamp,splitOnChars:t.splitOnChars||[".","-","\u2013","\u2014"," "],animate:t.animate||!1,truncationChar:t.truncationChar||"\u2026",truncationHTML:t.truncationHTML},h=e.style,f=e.innerHTML,p=void 0!==e.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=n():g&&(m=n(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))<=e.clientHeight&&(b=a(s(e),h)),{original:f,clamped:b}},"undefined"==typeof Traction&&(Traction={}),Traction.EmergencyNotification=function(){var e="tractionEmergencyNotificationDismissedVersion";return{get:function(){return Traction.settings.emergencyNotification},dismissedVersion:function(){var t;try{t=window.localStorage.getItem(e)}catch(e){}return t||0},isDismissed:function(){var e=this.get();return e&&e.version?e.version<=this.dismissedVersion():void 0},setDismissed:function(){var t=this.get();if(t&&t.version)try{window.localStorage.setItem(e,t.version)}catch(e){}},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 i,n,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&&(i=$("<h2></h2>").text(e.title)).appendTo(o),e.message&&(n=$("<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}),i&&i.wrap($link),n&&n.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)}}
21)),$((function(){var e=$("#engage-modal");if(e.length>0){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"),n.removeAttr("disabled")})).on("ajax:success",(function(){e.find(".alert-success").removeClass("hidden"),t.addClass("hidden")}));var i=t.find(":checkbox[required]");i.on("change",(function(){i.is(":checked")?i.removeAttr("required"):i.attr("required","required")}));var n=e.find(".btn-default");window.submitEngageSignupModal=function(){t.find("input").filter((function(){return this.checkValidity&&!this.checkValidity()})).length>0?t[0].reportValidity?t[0].reportValidity():alert("One or more fields cannot be blank"):(n.attr("disabled","disabled"),Rails.fire(t[0],"submit"))}}}));const SITE_EXIT_SELECTOR="#leaving-site-modal";$((function(){function e(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}var t=Traction.settings.internalHosts||[],i=window.location.host;t.push(i);var n=new RegExp("^(https?://("+t.map(e).join("|")+"))?/files/"),r=new RegExp("^https?://("+t.map(e).join("|")+")"),o=/^https?:\/\//;const s=0!==$(SITE_EXIT_SELECTOR).length;$("a").filter((function(){try{return this.href.match(n)||this.href.match(o)&&!this.href.match(r)}catch(e){return!1}})).addClass("external").click((function(e){e.preventDefault();const t=this.classList.contains("traction-file");!0===s&&!1===t?$(SITE_EXIT_SELECTOR).modal("show",{href:this.href}):window.open(this.href,"_blank")}))})),document.addEventListener("DOMContentLoaded",(function(){var e,t,i,n;!function(){var e=document.querySelector("#external-site-scan-show-more");if(e){var t=document.querySelector("#external-site-scan-show-less"),i=document.querySelector("#external-site-scan-extra-results");e.onclick=function(){e.classList.add("hide"),t.classList.remove("hide"),i.classList.remove("hide")},t.onclick=function(){e.classList.remove("hide"),t.classList.add("hide"),i.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,i=function(e){e.style.zIndex=t},n=function(e){e.style.zIndex=null},document.querySelectorAll("[data-toggle-external-page-scan-modal]").forEach((function(e){e.onclick=function(t){t.preventDefault(),$("#external-page-scan-modal .modal-body").load(e.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&&i(e)})),$(".lighthouse-audit-modal").on("hide.bs.modal",(function(){var e=document.querySelector(".external-page-scan-modal.in");e&&n(e)}))}),!1),$((function(){var e=500,t=3e3,i=250;$("#app-flash").each((function(){function n(){o.slideDown(i)}function r(){o.slideUp(i)}var o=$(this);setTimeout((function(){n(),setTimeout((function(){r()}),t),o.click((function(){r()}))}),e)}))})),$((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 e=$
21(this);e.find(".menu__toggle").on("click",(function(t){t.preventDefault(),e.find(".menu--has-submenu").toggleClass("expanded")})),$("#feature-dropdown-menu__toggle").on("keypress",(function(t){13==t.which&&e.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(){var e=$("#stripe-payment-form");if(e.length>0){window.Parsley.addValidator("minimumAmount",{requirementType:"string",validateString:function(e,t){return parseFloat(e.replace(/[^0-9.]/g,""))>=t},messages:{en:"Amount must be greater than or equal to $%s"}});var t=e.find("input[type=submit]");function i(e){e.isValid()?t.removeAttr("disabled"):t.attr("disabled","disabled")}var n=$("#pay-now"),r=$("#checkout-form-container");n.find("button").on("click",(function(e){e.preventDefault(),r.slideDown(400,(function(){n.hide()}))}));var o=e.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(){i(o)})),window.Parsley.on("field:error",(function(){i(o)})),e.on("change",(function(){i(o)}));var s=e.find('input[name="amount"]');s.length>0&&new AutoNumeric(s[0],{currencySymbol:""}),e.on("submit",(function(){t.attr("disabled","disabled"),t.val("Processing..."),$.ajax({type:"POST",url:"/payments/stripe_checkout/create_checkout_session",data:e.serialize()}).done((function(e){return stripe.redirectToCheckout({sessionId:e.id})})).fail((function(){alert("Unable to process order"),t.removeAttr("disabled")}))}))}})),$((function(){$(".require-at-least-one-checkbox").each((function(e,t){var i=$(t).find("input[type=checkbox][required]");i.on("change",(function(e){var t=i.filter((function(t,i){return $(e.target).attr("name")===$(i).attr("name")})),n=t.is(":checked");t.prop("required",!n)}))}))})),$((function(){function e(){return n.find("a[href], button:not([disabled]), textarea, input, select, [tabindex]").filter(":visible").filter((function(){return-1!==this.tabIndex}))}function t(t){if("Tab"===t.key){var i=e();if(i.length){var n=i[0],r=i[i.length-1];t.shiftKey?document.activeElement===n&&(t.preventDefault(),r.focus()):document.activeElement===r&&(t.preventDefault(),n.focus())}}}function i(e,t){e=(e||"").trim(),t=t||0;var n=$("#search-modal");n.find(".search-box input").val(e),0!=e.length?a.search(e,{page:t,hitsPerPage:10,attributesToHighlight:["poc.title","text"],attributesToSnippet:["text:65"],distinct:1,facets:"siteID",facetFilters:["siteID:"+o],maxValuesPerFacet:1},(function(t,r){n.modal({show:!0}),n.find(".search-results").empty();for(var o=0;o<r.hits.length;o++){var s=r.hits[o],a='<div class="search-result">';if(a+='<div class="poc-type">'+s.poc.pocType.label,s.source&&s.source.type){var l="";switch(s.source.type){case"body_file":l="File attachment";break;case"agenda":l="Agenda";break;case"minutes":l="Minutes";break;case"supporting_document":l="Supporting document"}l.length>0&&(a+=" - "+l)}a+="</div>",a+="<h5>";var u=s.poc.date&&moment(s.poc.date).format("ddd MMM D, YYYY")||"",c=[s.poc.title,u,s.poc.pocType.label,l];c=(c=(c=$.map(c,(function(e){return""===e?null:e}))).join(" ")).replace(/"/g,""),"body_file"==s.source.type?a+='<a aria-label="'+c+'" href="/pocs/'+s.poc.id+"#"+s.source.type+"-"+s.source.id+'">':a+='<a aria-label="'+c+'" href="/pocs/'+s.poc.id+'">',a+=s._highlightResult.poc.title.value,u.length>0&&(a+=" - "+u),a+="</a>",a+="</h5>",s._snippetResult&&s._snippetResult.text&&(a+="<p>"+s._snippetResult.text.value+"</p>"),a+="</div>",n.find(".search-results").append(a)}if(r.nbPages>1){a='<div class="search-pager">',a+='<ul class="pagination">';for(o=1;o<=r.nbPages;o++)r.page+1===o?a+=`<li class="active"><a href="#" aria-current="page" aria-label="Page ${o}">${o}
21</a></li>`:a+=`<li><a href="#" aria-label="Go to page ${o}">${o}</a></li>`;a+="</ul>",a+="</div>",n.find(".search-results").append(a),n.find(".search-pager a").click((function(){i(e,parseInt(this.text)-1)}))}r.hits.length||n.find(".search-results").append('<div class="search-no-results"><h4>No results found!</h4><p>Please rephrase your search and try again.</p></div>')})):n.find(".search-results").empty()}var n=$("#search-modal");n.modal({show:!1}),n.on("shown.bs.modal",(function(){n.attr("aria-modal","true");var i=e();i.length&&i[0].focus(),n.on("keydown",t)})),n.on("hidden.bs.modal",(function(){n.removeAttr("aria-modal"),n.off("keydown",t)}));var r=Traction.settings.env,o=Traction.settings.siteId,s=Traction.settings.algoliaSearch;if(s){var a=algoliasearch(s.applicationId,s.apiKey).initIndex(r+"_content");$("form.search-box").submit((function(e){e.preventDefault(),i($(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=$
21(this),t=e.find("iframe"),i=e.width();t.width(i),t.height(i*t.data("aspectRatio"))}))})).trigger("resize")}));

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