"bundle";!function(i){"object"==typeof exports&&"object"==typeof module?module.exports=i():System.registerDynamic("npm:autonumeric/dist/autoNumeric.js",[],!1,function(e,t,n){return"function"==typeof i?i.call(this):i})}(function(){return i={},a.m=n={"./src/AutoNumeric.js":function(e,t,n){"use strict";n.r(t),n.d(t,"default",function(){return m});var O=n("./src/AutoNumericHelper.js"),c=n("./src/AutoNumericEnum.js"),i=n("./src/maths/Evaluator.js"),a=n("./src/maths/Parser.js");function h(e){return function(e){if(Array.isArray(e))return o(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||r(e)||function(){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 f(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],i=!0,a=!1,r=void 0;try{for(var o,s=e[Symbol.iterator]();!(i=(o=s.next()).done)&&(n.push(o.value),!t||n.length!==t);i=!0);}catch(e){a=!0,r=e}finally{try{i||null==s.return||s.return()}finally{if(a)throw r}}return n}(e,t)||r(e,t)||function(){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 r(e,t){if(e){if("string"==typeof e)return o(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(n):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?o(e,t):void 0}}function o(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}function l(){return(l=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n,i=arguments[t];for(n in i)Object.prototype.hasOwnProperty.call(i,n)&&(e[n]=i[n])}return e}).apply(this,arguments)}function d(e){return(d="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function s(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}var m=function(){function E(){var a=this,e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:null,t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:null,n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,E);var i,e=E._setArgumentsValues(e,t,n),t=e.domElement,n=e.initialValue,e=e.userOptions;if(this.domElement=t,this.defaultRawValue="",this._setSettings(e,!1),this._checkElement(),this.savedCancellableValue=null,this.historyTable=[],this.historyTableIndex=-1,this.onGoingRedo=!1,this.parentForm=this._getParentForm(),!this.runOnce&&this.settings.formatOnPageLoad)this._formatDefaultValueOnPageLoad(n);else{if(O.default.isNull(n))switch(this.settings.emptyInputBehavior){case E.options.emptyInputBehavior.min:i=this.settings.minimumValue;break;case E.options.emptyInputBehavior.max:i=this.settings.maximumValue;break;case E.options.emptyInputBehavior.zero:i="0";break;case E.options.emptyInputBehavior.focus:case E.options.emptyInputBehavior.press:case E.options.emptyInputBehavior.always:case E.options.emptyInputBehavior.null:i="";break;default:i=this.settings.emptyInputBehavior}else i=n;this._setElementAndRawValue(i)}this.runOnce=!0,this.hasEventListeners=!1,(this.isInputElement||this.isContentEditable)&&(this.settings.noEventListeners||this._createEventListeners(),this._setWritePermissions(!0)),this._saveInitialValues(n),this.sessionStorageAvailable=this.constructor._storageTest(),this.storageNamePrefix="AUTO_",this._setPersistentStorageName(),this.validState=!0,this.isFocused=!1,this.isWheelEvent=!1,this.isDropEvent=!1,this.isEditing=!1,this.rawValueOnFocus=void 0,this.internalModification=!1,this.attributeToWatch=this._getAttributeToWatch(),this.getterSetter=Object.getOwnPropertyDescriptor(this.domElement.__proto__,this.attributeToWatch),this._addWatcher(),this.settings.createLocalList&&this._createLocalList(),this.constructor._addToGlobalList(this),this.global={set:function(t,e){var n=1<arguments.length&&void 0!==e?e:null;a.autoNumericLocalList.forEach(function(e){e.set(t,n)})},setUnformatted:function(t,e){var n=1<arguments.length&&void 0!==e?e:null;a.autoNumericLocalList.forEach(function(e){e.setUnformatted(t,n)})},get:function(e){var e=0<arguments.length&&void 0!==e?e:null,t=[];return a.autoNumericLocalList.forEach(function(e){t.push(e.get())}),a._executeCallback(t,e),t},getNumericString:function(e){var e=0<arguments.length&&void 0!==e?e:null,t=[];return a.autoNumericLocalList.forEach(function(e){t.push(e.getNumericString())}),a._executeCallback(t,e),t},getFormatted:function(e){var e=0<arguments.length&&void 0!==e?e:null,t=[];return a.autoNumericLocalList.forEach(function(e){t.push(e.getFormatted())}),a._executeCallback(t,e),t},getNumber:function(e){var e=0<arguments.length&&void 0!==e?e:null,t=[];return a.autoNumericLocalList.forEach(function(e){t.push(e.getNumber())}),a._executeCallback(t,e),t},getLocalized:function(e){var e=0<arguments.length&&void 0!==e?e:null,t=[];return a.autoNumericLocalList.forEach(function(e){t.push(e.getLocalized())}),a._executeCallback(t,e),t},reformat:function(){a.autoNumericLocalList.forEach(function(e){e.reformat()})},unformat:function(){a.autoNumericLocalList.forEach(function(e){e.unformat()})},unformatLocalized:function(e){var t=0<arguments.length&&void 0!==e?e:null;a.autoNumericLocalList.forEach(function(e){e.unformatLocalized(t)})},update:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];a.autoNumericLocalList.forEach(function(e){e.update.apply(e,t)})},isPristine:function(){var t=!(0<arguments.length&&void 0!==arguments[0])||arguments[0],n=!0;return a.autoNumericLocalList.forEach(function(e){n&&!e.isPristine(t)&&(n=!1)}),n},clear:function(e){var t=0<arguments.length&&void 0!==e&&e;a.autoNumericLocalList.forEach(function(e){e.clear(t)})},remove:function(){a.autoNumericLocalList.forEach(function(e){e.remove()})},wipe:function(){a.autoNumericLocalList.forEach(function(e){e.wipe()})},nuke:function(){a.autoNumericLocalList.forEach(function(e){e.nuke()})},has:function(e){e=e instanceof E?a.autoNumericLocalList.has(e.node()):a.autoNumericLocalList.has(e);return e},addObject:function(e){var t,n=e instanceof E?(t=e.node(),e):(t=e,E.getAutoNumericElement(t));a._hasLocalList()||a._createLocalList();var i,e=n._getLocalList();0===e.size&&(n._createLocalList(),e=n._getLocalList()),(i=e instanceof Map?O.default.mergeMaps(a._getLocalList(),e):(a._addToLocalList(t,n),a._getLocalList())).forEach(function(e){e._setLocalList(i)})},removeObject:function(e,t){var n,i=1<arguments.length&&void 0!==t&&t,t=e instanceof E?(n=e.node(),e):(n=e,E.getAutoNumericElement(n)),e=a.autoNumericLocalList;a.autoNumericLocalList.delete(n),e.forEach(function(e){e._setLocalList(a.autoNumericLocalList)}),i||n!==a.node()?t._createLocalList():t._setLocalList(new Map)},empty:function(e){var t=0<arguments.length&&void 0!==e&&e;a.autoNumericLocalList.forEach(function(e){t?e._createLocalList():e._setLocalList(new Map)})},elements:function(){var t=[];return a.autoNumericLocalList.forEach(function(e){t.push(e.node())}),t},getList:function(){return a.autoNumericLocalList},size:function(){return a.autoNumericLocalList.size}},this.options={reset:function(){return a.settings={rawValue:a.defaultRawValue},a.update(E.defaultSettings),a},allowDecimalPadding:function(e){return a.update({allowDecimalPadding:e}),a},alwaysAllowDecimalCharacter:function(e){return a.update({alwaysAllowDecimalCharacter:e}),a},caretPositionOnFocus:function(e){return a.settings.caretPositionOnFocus=e,a},createLocalList:function(e){return a.settings.createLocalList=e,a.settings.createLocalList?a._hasLocalList()||a._createLocalList():a._deleteLocalList(),a},currencySymbol:function(e){return a.update({currencySymbol:e}),a},currencySymbolPlacement:function(e){return a.update({currencySymbolPlacement:e}),a},decimalCharacter:function(e){return a.update({decimalCharacter:e}),a},decimalCharacterAlternative:function(e){return a.settings.decimalCharacterAlternative=e,a},decimalPlaces:function(e){return O.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.",a.settings.showWarnings),a.update({decimalPlaces:e}),a},decimalPlacesRawValue:function(e){return a.update({decimalPlacesRawValue:e}),a},decimalPlacesShownOnBlur:function(e){return a.update({decimalPlacesShownOnBlur:e}),a},decimalPlacesShownOnFocus:function(e){return a.update({decimalPlacesShownOnFocus:e}),a},defaultValueOverride:function(e){return a.update({defaultValueOverride:e}),a},digitalGroupSpacing:function(e){return a.update({digitalGroupSpacing:e}),a},digitGroupSeparator:function(e){return a.update({digitGroupSeparator:e}),a},divisorWhenUnfocused:function(e){return a.update({divisorWhenUnfocused:e}),a},emptyInputBehavior:function(e){return null===a.rawValue&&e!==E.options.emptyInputBehavior.null&&(O.default.warning("You are trying to modify the `emptyInputBehavior` option to something different than `'null'` (".concat(e,"), but the element raw value is currently set to `null`. This would result in an invalid `rawValue`. In order to fix that, the element value has been changed to the empty string `''`."),a.settings.showWarnings),a.rawValue=""),a.update({emptyInputBehavior:e}),a},eventBubbles:function(e){return a.settings.eventBubbles=e,a},eventIsCancelable:function(e){return a.settings.eventIsCancelable=e,a},failOnUnknownOption:function(e){return a.settings.failOnUnknownOption=e,a},formatOnPageLoad:function(e){return a.settings.formatOnPageLoad=e,a},formulaMode:function(e){return a.settings.formulaMode=e,a},historySize:function(e){return a.settings.historySize=e,a},invalidClass:function(e){return a.settings.invalidClass=e,a},isCancellable:function(e){return a.settings.isCancellable=e,a},leadingZero:function(e){return a.update({leadingZero:e}),a},maximumValue:function(e){return a.update({maximumValue:e}),a},minimumValue:function(e){return a.update({minimumValue:e}),a},modifyValueOnWheel:function(e){return a.settings.modifyValueOnWheel=e,a},negativeBracketsTypeOnBlur:function(e){return a.update({negativeBracketsTypeOnBlur:e}),a},negativePositiveSignPlacement:function(e){return a.update({negativePositiveSignPlacement:e}),a},negativeSignCharacter:function(e){return a.update({negativeSignCharacter:e}),a},noEventListeners:function(e){return e===E.options.noEventListeners.noEvents&&a.settings.noEventListeners===E.options.noEventListeners.addEvents&&a._removeEventListeners(),a.update({noEventListeners:e}),a},onInvalidPaste:function(e){return a.settings.onInvalidPaste=e,a},outputFormat:function(e){return a.settings.outputFormat=e,a},overrideMinMaxLimits:function(e){return a.update({overrideMinMaxLimits:e}),a},positiveSignCharacter:function(e){return a.update({positiveSignCharacter:e}),a},rawValueDivisor:function(e){return a.update({rawValueDivisor:e}),a},readOnly:function(e){return a.settings.readOnly=e,a._setWritePermissions(),a},roundingMethod:function(e){return a.update({roundingMethod:e}),a},saveValueToSessionStorage:function(e){return a.update({saveValueToSessionStorage:e}),a},symbolWhenUnfocused:function(e){return a.update({symbolWhenUnfocused:e}),a},selectNumberOnly:function(e){return a.settings.selectNumberOnly=e,a},selectOnFocus:function(e){return a.settings.selectOnFocus=e,a},serializeSpaces:function(e){return a.settings.serializeSpaces=e,a},showOnlyNumbersOnFocus:function(e){return a.update({showOnlyNumbersOnFocus:e}),a},showPositiveSign:function(e){return a.update({showPositiveSign:e}),a},showWarnings:function(e){return a.settings.showWarnings=e,a},styleRules:function(e){return a.update({styleRules:e}),a},suffixText:function(e){return a.update({suffixText:e}),a},unformatOnHover:function(e){return a.settings.unformatOnHover=e,a},unformatOnSubmit:function(e){return a.settings.unformatOnSubmit=e,a},valuesToStrings:function(e){return a.update({valuesToStrings:e}),a},watchExternalChanges:function(e){return a.update({watchExternalChanges:e}),a},wheelOn:function(e){return a.settings.wheelOn=e,a},wheelStep:function(e){return a.settings.wheelStep=e,a}},this._triggerEvent(E.events.initialized,this.domElement,{newValue:O.default.getElementValue(this.domElement),newRawValue:this.rawValue,error:null,aNElement:this})}var e,t,n;return e=E,n=[{key:"version",value:function(){return"4.6.0"}},{key:"_setArgumentsValues",value:function(e,t,n){O.default.isNull(e)&&O.default.throwError("At least one valid parameter is needed in order to initialize an AutoNumeric object");var i,a,r,o=O.default.isElement(e),s=O.default.isString(e),l=O.default.isObject(t),u=Array.isArray(t)&&0<t.length,c=O.default.isNumberOrArabic(t)||""===t,h=this._isPreDefinedOptionValid(t),d=O.default.isNull(t),m=O.default.isEmptyString(t),f=O.default.isObject(n),g=Array.isArray(n)&&0<n.length,p=O.default.isNull(n),v=this._isPreDefinedOptionValid(n);return o&&d&&p?(i=e,a=r=null):o&&c&&p?(i=e,r=t,a=null):o&&l&&p?(i=e,r=null,a=t):o&&h&&p?(i=e,r=null,a=this._getOptionObject(t)):o&&u&&p?(i=e,r=null,a=this.mergeOptions(t)):o&&(d||m)&&f?(i=e,r=null,a=n):o&&(d||m)&&g?(i=e,r=null,a=this.mergeOptions(n)):s&&d&&p?(i=document.querySelector(e),a=r=null):s&&l&&p?(i=document.querySelector(e),r=null,a=t):s&&h&&p?(i=document.querySelector(e),r=null,a=this._getOptionObject(t)):s&&u&&p?(i=document.querySelector(e),r=null,a=this.mergeOptions(t)):s&&(d||m)&&f?(i=document.querySelector(e),r=null,a=n):s&&(d||m)&&g?(i=document.querySelector(e),r=null,a=this.mergeOptions(n)):s&&c&&p?(i=document.querySelector(e),r=t,a=null):s&&c&&f?(i=document.querySelector(e),r=t,a=n):s&&c&&v?(i=document.querySelector(e),r=t,a=this._getOptionObject(n)):s&&c&&g?(i=document.querySelector(e),r=t,a=this.mergeOptions(n)):o&&c&&f?(i=e,r=t,a=n):o&&c&&v?(i=e,r=t,a=this._getOptionObject(n)):o&&c&&g?(i=e,r=t,a=this.mergeOptions(n)):O.default.throwError("The parameters given to the AutoNumeric object are not valid, '".concat(e,"', '").concat(t,"' and '").concat(n,"' given.")),O.default.isNull(i)&&O.default.throwError("The selector '".concat(e,"' did not select any valid DOM element. Please check on which element you called AutoNumeric.")),{domElement:i,initialValue:r,userOptions:a}}},{key:"mergeOptions",value:function(e){var t=this,n={};return e.forEach(function(e){l(n,t._getOptionObject(e))}),n}},{key:"_isPreDefinedOptionValid",value:function(e){return Object.prototype.hasOwnProperty.call(E.predefinedOptions,e)}},{key:"_getOptionObject",value:function(e){var t;return O.default.isString(e)?null==(t=E.getPredefinedOptions()[e])&&O.default.warning("The given pre-defined option [".concat(e,"] is not recognized by autoNumeric. Please check that pre-defined option name."),!0):t=e,t}},{key:"_doesFormHandlerListExists",value:function(){var e=d(window.aNFormHandlerMap);return"undefined"!==e&&"object"===e}},{key:"_createFormHandlerList",value:function(){window.aNFormHandlerMap=new Map}},{key:"_checkValuesToStringsArray",value:function(e,t){return O.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,e=e.getElementsByTagName("input"),n=[];return Array.prototype.slice.call(e,0).forEach(function(e){t.test(e)&&n.push(e)}),n}},{key:"test",value:function(e){return this._isInGlobalList(O.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=d(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;O.default.warning("A reference to the DOM element you just initialized already exists in the global AutoNumeric element list. Please make sure to not initialize the same DOM element multiple times.",e.getSettings().showWarnings)}window[this.autoNumericGlobalListName].set(t,e)}},{key:"_removeFromGlobalList",value:function(e){this._doesGlobalListExists()&&window[this.autoNumericGlobalListName].delete(e.node())}},{key:"_getFromGlobalList",value:function(e){return this._doesGlobalListExists()?window[this.autoNumericGlobalListName].get(e):null}},{key:"_isInGlobalList",value:function(e){return!!this._doesGlobalListExists()&&window[this.autoNumericGlobalListName].has(e)}},{key:"validate",value:function(e,t,n){var i=!(1<arguments.length&&void 0!==t)||t,a=2<arguments.length&&void 0!==n?n:null;!O.default.isUndefinedOrNullOrEmpty(e)&&O.default.isObject(e)||O.default.throwError("The userOptions are invalid ; it should be a valid object, [".concat(e,"] given."));var r,o=O.default.isObject(a);o||O.default.isNull(a)||O.default.throwError("The 'originalOptions' parameter is invalid ; it should either be a valid option object or `null`, [".concat(e,"] given.")),O.default.isNull(e)||this._convertOldOptionsToNewOnes(e),r=i?l({},this.getDefaultConfig(),e):e,O.default.isTrueOrFalseString(r.showWarnings)||O.default.isBoolean(r.showWarnings)||O.default.throwError("The debug option 'showWarnings' is invalid ; it should be either 'true' or 'false', [".concat(r.showWarnings,"] given."));var s=/^[0-9]+$/,t=/[0-9]+/,n=/^-?[0-9]+(\.?[0-9]+)?$/,i=/^[0-9]+(\.?[0-9]+)?$/;O.default.isTrueOrFalseString(r.allowDecimalPadding)||O.default.isBoolean(r.allowDecimalPadding)||r.allowDecimalPadding===E.options.allowDecimalPadding.floats||O.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||O.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),O.default.isTrueOrFalseString(r.alwaysAllowDecimalCharacter)||O.default.isBoolean(r.alwaysAllowDecimalCharacter)||O.default.throwError("The option 'alwaysAllowDecimalCharacter' is invalid ; it should either be `true` or `false`, [".concat(r.alwaysAllowDecimalCharacter,"] given.")),O.default.isNull(r.caretPositionOnFocus)||O.default.isInArray(r.caretPositionOnFocus,[E.options.caretPositionOnFocus.start,E.options.caretPositionOnFocus.end,E.options.caretPositionOnFocus.decimalLeft,E.options.caretPositionOnFocus.decimalRight])||O.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.")),e=o?a:this._correctCaretPositionOnFocusAndSelectOnFocusOptions(e),O.default.isNull(e)||e.caretPositionOnFocus===E.options.caretPositionOnFocus.doNoForceCaretPosition||e.selectOnFocus!==E.options.selectOnFocus.select||O.default.warning("The 'selectOnFocus' option is set to 'select', which is in conflict with the 'caretPositionOnFocus' which is set to '".concat(e.caretPositionOnFocus,"'. As a result, if this has been called when instantiating an AutoNumeric object, the 'selectOnFocus' option is forced to 'doNotSelect'."),r.showWarnings),O.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])||O.default.throwError("The thousand separator character option 'digitGroupSeparator' is invalid ; it should be ',', '.', '٬', '˙', \"'\", '', ' ', ' ', ' ', ' ' or empty (''), [".concat(r.digitGroupSeparator,"] given.")),O.default.isTrueOrFalseString(r.showOnlyNumbersOnFocus)||O.default.isBoolean(r.showOnlyNumbersOnFocus)||O.default.throwError("The 'showOnlyNumbersOnFocus' option is invalid ; it should be either 'true' or 'false', [".concat(r.showOnlyNumbersOnFocus,"] given.")),O.default.isInArray(r.digitalGroupSpacing,[E.options.digitalGroupSpacing.two,E.options.digitalGroupSpacing.twoScaled,E.options.digitalGroupSpacing.three,E.options.digitalGroupSpacing.four])||2<=r.digitalGroupSpacing&&r.digitalGroupSpacing<=4||O.default.throwError("The grouping separator option for thousands 'digitalGroupSpacing' is invalid ; it should be '2', '2s', '3', or '4', [".concat(r.digitalGroupSpacing,"] given.")),O.default.isInArray(r.decimalCharacter,[E.options.decimalCharacter.comma,E.options.decimalCharacter.dot,E.options.decimalCharacter.middleDot,E.options.decimalCharacter.arabicDecimalSeparator,E.options.decimalCharacter.decimalSeparatorKeySymbol])||O.default.throwError("The decimal separator character option 'decimalCharacter' is invalid ; it should be '.', ',', '·', '⎖' or '٫', [".concat(r.decimalCharacter,"] given.")),r.decimalCharacter===r.digitGroupSeparator&&O.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.")),O.default.isNull(r.decimalCharacterAlternative)||O.default.isString(r.decimalCharacterAlternative)||O.default.throwError("The alternate decimal separator character option 'decimalCharacterAlternative' is invalid ; it should be a string, [".concat(r.decimalCharacterAlternative,"] given.")),""===r.currencySymbol||O.default.isString(r.currencySymbol)||O.default.throwError("The currency symbol option 'currencySymbol' is invalid ; it should be a string, [".concat(r.currencySymbol,"] given.")),O.default.isInArray(r.currencySymbolPlacement,[E.options.currencySymbolPlacement.prefix,E.options.currencySymbolPlacement.suffix])||O.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.")),O.default.isInArray(r.negativePositiveSignPlacement,[E.options.negativePositiveSignPlacement.prefix,E.options.negativePositiveSignPlacement.suffix,E.options.negativePositiveSignPlacement.left,E.options.negativePositiveSignPlacement.right,E.options.negativePositiveSignPlacement.none])||O.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.")),O.default.isTrueOrFalseString(r.showPositiveSign)||O.default.isBoolean(r.showPositiveSign)||O.default.throwError("The show positive sign option 'showPositiveSign' is invalid ; it should be either 'true' or 'false', [".concat(r.showPositiveSign,"] given.")),O.default.isString(r.suffixText)&&(""===r.suffixText||!O.default.isNegative(r.suffixText,r.negativeSignCharacter)&&!t.test(r.suffixText))||O.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.")),O.default.isString(r.negativeSignCharacter)&&1===r.negativeSignCharacter.length&&!O.default.isUndefinedOrNullOrEmpty(r.negativeSignCharacter)&&!t.test(r.negativeSignCharacter)||O.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.")),O.default.isString(r.positiveSignCharacter)&&1===r.positiveSignCharacter.length&&!O.default.isUndefinedOrNullOrEmpty(r.positiveSignCharacter)&&!t.test(r.positiveSignCharacter)||O.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&&O.default.throwError("The positive 'positiveSignCharacter' and negative 'negativeSignCharacter' sign characters cannot be identical ; [".concat(r.negativeSignCharacter,"] given."));e=f(O.default.isNull(r.negativeBracketsTypeOnBlur)?["",""]:r.negativeBracketsTypeOnBlur.split(","),2),t=e[0],e=e[1];(O.default.contains(r.digitGroupSeparator,r.negativeSignCharacter)||O.default.contains(r.decimalCharacter,r.negativeSignCharacter)||O.default.contains(r.decimalCharacterAlternative,r.negativeSignCharacter)||O.default.contains(t,r.negativeSignCharacter)||O.default.contains(e,r.negativeSignCharacter)||O.default.contains(r.suffixText,r.negativeSignCharacter))&&O.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.")),(O.default.contains(r.digitGroupSeparator,r.positiveSignCharacter)||O.default.contains(r.decimalCharacter,r.positiveSignCharacter)||O.default.contains(r.decimalCharacterAlternative,r.positiveSignCharacter)||O.default.contains(t,r.positiveSignCharacter)||O.default.contains(e,r.positiveSignCharacter)||O.default.contains(r.suffixText,r.positiveSignCharacter))&&O.default.throwError("The positive sign character option 'positiveSignCharacter' is invalid ; it should not be equal or a part of the digit separator, the decimal character, the decimal character alternative, the negative brackets or the suffix text, [".concat(r.positiveSignCharacter,"] given.")),O.default.isNull(r.overrideMinMaxLimits)||O.default.isInArray(r.overrideMinMaxLimits,[E.options.overrideMinMaxLimits.ceiling,E.options.overrideMinMaxLimits.floor,E.options.overrideMinMaxLimits.ignore,E.options.overrideMinMaxLimits.invalid])||O.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&&(0<r.minimumValue||r.maximumValue<0)&&O.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."),O.default.isString(r.maximumValue)&&n.test(r.maximumValue)||O.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.")),O.default.isString(r.minimumValue)&&n.test(r.minimumValue)||O.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)&&O.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,"].")),O.default.isInt(r.decimalPlaces)&&0<=r.decimalPlaces||O.default.isString(r.decimalPlaces)&&s.test(r.decimalPlaces)||O.default.throwError("The number of decimal places option 'decimalPlaces' is invalid ; it should be a positive integer, [".concat(r.decimalPlaces,"] given.")),O.default.isNull(r.decimalPlacesRawValue)||O.default.isInt(r.decimalPlacesRawValue)&&0<=r.decimalPlacesRawValue||O.default.isString(r.decimalPlacesRawValue)&&s.test(r.decimalPlacesRawValue)||O.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),O.default.isNull(r.decimalPlacesShownOnFocus)||s.test(String(r.decimalPlacesShownOnFocus))||O.default.throwError("The number of expanded decimal places option 'decimalPlacesShownOnFocus' is invalid ; it should be a positive integer or `null`, [".concat(r.decimalPlacesShownOnFocus,"] given.")),!O.default.isNull(r.decimalPlacesShownOnFocus)&&Number(r.decimalPlaces)>Number(r.decimalPlacesShownOnFocus)&&O.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),(O.default.isNull(r.divisorWhenUnfocused)||i.test(r.divisorWhenUnfocused))&&0!==r.divisorWhenUnfocused&&"0"!==r.divisorWhenUnfocused&&1!==r.divisorWhenUnfocused&&"1"!==r.divisorWhenUnfocused||O.default.throwError("The divisor option 'divisorWhenUnfocused' is invalid ; it should be a positive number higher than one, preferably an integer, [".concat(r.divisorWhenUnfocused,"] given.")),O.default.isNull(r.decimalPlacesShownOnBlur)||s.test(r.decimalPlacesShownOnBlur)||O.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.")),O.default.isNull(r.symbolWhenUnfocused)||O.default.isString(r.symbolWhenUnfocused)||O.default.throwError("The symbol to show when unfocused option 'symbolWhenUnfocused' is invalid ; it should be a string, [".concat(r.symbolWhenUnfocused,"] given.")),O.default.isTrueOrFalseString(r.saveValueToSessionStorage)||O.default.isBoolean(r.saveValueToSessionStorage)||O.default.throwError("The save to session storage option 'saveValueToSessionStorage' is invalid ; it should be either 'true' or 'false', [".concat(r.saveValueToSessionStorage,"] given.")),O.default.isInArray(r.onInvalidPaste,[E.options.onInvalidPaste.error,E.options.onInvalidPaste.ignore,E.options.onInvalidPaste.clamp,E.options.onInvalidPaste.truncate,E.options.onInvalidPaste.replace])||O.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.")),O.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])||O.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.")),O.default.isNull(r.negativeBracketsTypeOnBlur)||O.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])||O.default.throwError("The brackets for negative values option 'negativeBracketsTypeOnBlur' is invalid ; it should either be '(,)', '[,]', '<,>', '{,}', '〈,〉', '｢,｣', '⸤,⸥', '⟦,⟧', '‹,›' or '«,»', [".concat(r.negativeBracketsTypeOnBlur,"] given.")),(O.default.isString(r.emptyInputBehavior)||O.default.isNumber(r.emptyInputBehavior))&&(O.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])||n.test(r.emptyInputBehavior))||O.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&&(0<r.minimumValue||r.maximumValue<0)&&O.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,"].")),n.test(String(r.emptyInputBehavior))&&(this._isWithinRangeWithOverrideOption(r.emptyInputBehavior,r)||O.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,"]."))),O.default.isTrueOrFalseString(r.eventBubbles)||O.default.isBoolean(r.eventBubbles)||O.default.throwError("The event bubbles option 'eventBubbles' is invalid ; it should be either 'true' or 'false', [".concat(r.eventBubbles,"] given.")),O.default.isTrueOrFalseString(r.eventIsCancelable)||O.default.isBoolean(r.eventIsCancelable)||O.default.throwError("The event is cancelable option 'eventIsCancelable' is invalid ; it should be either 'true' or 'false', [".concat(r.eventIsCancelable,"] given.")),!O.default.isBoolean(r.invalidClass)&&/^-?[_a-zA-Z]+[_a-zA-Z0-9-]*$/.test(r.invalidClass)||O.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.")),O.default.isInArray(r.leadingZero,[E.options.leadingZero.allow,E.options.leadingZero.deny,E.options.leadingZero.keep])||O.default.throwError("The leading zero behavior option 'leadingZero' is invalid ; it should either be 'allow', 'deny' or 'keep', [".concat(r.leadingZero,"] given.")),O.default.isTrueOrFalseString(r.formatOnPageLoad)||O.default.isBoolean(r.formatOnPageLoad)||O.default.throwError("The format on initialization option 'formatOnPageLoad' is invalid ; it should be either 'true' or 'false', [".concat(r.formatOnPageLoad,"] given.")),O.default.isTrueOrFalseString(r.formulaMode)||O.default.isBoolean(r.formulaMode)||O.default.throwError("The formula mode option 'formulaMode' is invalid ; it should be either 'true' or 'false', [".concat(r.formulaMode,"] given.")),s.test(r.historySize)&&0!==r.historySize||O.default.throwError("The history size option 'historySize' is invalid ; it should be a positive integer, [".concat(r.historySize,"] given.")),O.default.isTrueOrFalseString(r.selectNumberOnly)||O.default.isBoolean(r.selectNumberOnly)||O.default.throwError("The select number only option 'selectNumberOnly' is invalid ; it should be either 'true' or 'false', [".concat(r.selectNumberOnly,"] given.")),O.default.isTrueOrFalseString(r.selectOnFocus)||O.default.isBoolean(r.selectOnFocus)||O.default.throwError("The select on focus option 'selectOnFocus' is invalid ; it should be either 'true' or 'false', [".concat(r.selectOnFocus,"] given.")),O.default.isNull(r.defaultValueOverride)||""===r.defaultValueOverride||n.test(r.defaultValueOverride)||O.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.")),O.default.isTrueOrFalseString(r.unformatOnSubmit)||O.default.isBoolean(r.unformatOnSubmit)||O.default.throwError("The remove formatting on submit option 'unformatOnSubmit' is invalid ; it should be either 'true' or 'false', [".concat(r.unformatOnSubmit,"] given.")),O.default.isNull(r.valuesToStrings)||O.default.isObject(r.valuesToStrings)||O.default.throwError("The option 'valuesToStrings' is invalid ; it should be an object, ideally with 'key -> value' entries, [".concat(r.valuesToStrings,"] given.")),O.default.isNull(r.outputFormat)||O.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])||O.default.throwError("The custom locale format option 'outputFormat' is invalid ; it should either be null, 'string', 'number', '.', '-.', ',', '-,', '.-' or ',-', [".concat(r.outputFormat,"] given.")),O.default.isTrueOrFalseString(r.isCancellable)||O.default.isBoolean(r.isCancellable)||O.default.throwError("The cancellable behavior option 'isCancellable' is invalid ; it should be either 'true' or 'false', [".concat(r.isCancellable,"] given.")),O.default.isTrueOrFalseString(r.modifyValueOnWheel)||O.default.isBoolean(r.modifyValueOnWheel)||O.default.throwError("The increment/decrement on mouse wheel option 'modifyValueOnWheel' is invalid ; it should be either 'true' or 'false', [".concat(r.modifyValueOnWheel,"] given.")),O.default.isTrueOrFalseString(r.watchExternalChanges)||O.default.isBoolean(r.watchExternalChanges)||O.default.throwError("The option 'watchExternalChanges' is invalid ; it should be either 'true' or 'false', [".concat(r.watchExternalChanges,"] given.")),O.default.isInArray(r.wheelOn,[E.options.wheelOn.focus,E.options.wheelOn.hover])||O.default.throwError("The wheel behavior option 'wheelOn' is invalid ; it should either be 'focus' or 'hover', [".concat(r.wheelOn,"] given.")),(O.default.isString(r.wheelStep)||O.default.isNumber(r.wheelStep))&&("progressive"===r.wheelStep||i.test(r.wheelStep))&&0!==Number(r.wheelStep)||O.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.")),O.default.isInArray(r.serializeSpaces,[E.options.serializeSpaces.plus,E.options.serializeSpaces.percent])||O.default.throwError("The space replacement character option 'serializeSpaces' is invalid ; it should either be '+' or '%20', [".concat(r.serializeSpaces,"] given.")),O.default.isTrueOrFalseString(r.noEventListeners)||O.default.isBoolean(r.noEventListeners)||O.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.")),O.default.isNull(r.styleRules)||O.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"))||O.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.")),O.default.isNull(r.styleRules)||!Object.prototype.hasOwnProperty.call(r.styleRules,"userDefined")||O.default.isNull(r.styleRules.userDefined)||r.styleRules.userDefined.forEach(function(e){Object.prototype.hasOwnProperty.call(e,"callback")&&!O.default.isFunction(e.callback)&&O.default.throwError("The callback defined in the `userDefined` attribute is not a function, ".concat(d(e.callback)," given."))}),(O.default.isNull(r.rawValueDivisor)||i.test(r.rawValueDivisor))&&0!==r.rawValueDivisor&&"0"!==r.rawValueDivisor&&1!==r.rawValueDivisor&&"1"!==r.rawValueDivisor||O.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.")),O.default.isTrueOrFalseString(r.readOnly)||O.default.isBoolean(r.readOnly)||O.default.throwError("The option 'readOnly' is invalid ; it should be either 'true' or 'false', [".concat(r.readOnly,"] given.")),O.default.isTrueOrFalseString(r.unformatOnHover)||O.default.isBoolean(r.unformatOnHover)||O.default.throwError("The option 'unformatOnHover' is invalid ; it should be either 'true' or 'false', [".concat(r.unformatOnHover,"] given.")),O.default.isTrueOrFalseString(r.failOnUnknownOption)||O.default.isBoolean(r.failOnUnknownOption)||O.default.throwError("The debug option 'failOnUnknownOption' is invalid ; it should be either 'true' or 'false', [".concat(r.failOnUnknownOption,"] given.")),O.default.isTrueOrFalseString(r.createLocalList)||O.default.isBoolean(r.createLocalList)||O.default.throwError("The debug option 'createLocalList' is invalid ; it should be either 'true' or 'false', [".concat(r.createLocalList,"] given."))}},{key:"_validateDecimalPlacesRawValue",value:function(e){O.default.isNull(e.decimalPlacesRawValue)||(e.decimalPlacesRawValue<e.decimalPlaces&&O.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&&O.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&&O.default.warning("The number of decimal places to store in the raw value [".concat(e.decimalPlacesRawValue,"] is lower than the ones shown when unfocused [").concat(e.decimalPlacesShownOnBlur,"]. This will likely confuse your users.\nTo solve that, you'd need to either set `decimalPlacesRawValue` to `null`, or set a number of decimal places for the raw value equal of bigger than `decimalPlacesShownOnBlur`."),e.showWarnings))}},{key:"areSettingsValid",value:function(e){var t=!0;try{this.validate(e,!0)}catch(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,n=this;return O.default.isUndefinedOrNullOrEmpty(e)||0===e.length?t=null:(t={},1===e.length&&Array.isArray(e[0])?e[0].forEach(function(e){l(t,n._getOptionObject(e))}):1<=e.length&&e.forEach(function(e){l(t,n._getOptionObject(e))})),t}},{key:"format",value:function(e){if(O.default.isUndefined(e)||null===e)return null;var t=O.default.isElement(e)?O.default.getElementValue(e):e;O.default.isString(t)||O.default.isNumber(t)||O.default.throwError('The value "'.concat(t,'" being "set" is not numeric and therefore cannot be used appropriately.'));for(var n=arguments.length,i=new Array(1<n?n-1:0),a=1;a<n;a++)i[a-1]=arguments[a];var r=this._generateOptionsObjectFromOptionsArray(i),e=l({},this.getDefaultConfig(),r);e.isNegativeSignAllowed=t<0,e.isPositiveSignAllowed=0<=t,this._setBrackets(e);this._cachesUsualRegularExpressions(e,{});r=this._toNumericValue(t,e);return isNaN(Number(r))&&O.default.throwError("The value [".concat(r,"] that you are trying to format is not a recognized number.")),this._isWithinRangeWithOverrideOption(r,e)||(O.default.triggerEvent(E.events.formatted,document,{oldValue:null,newValue:null,oldRawValue:null,newRawValue:null,isPristine:null,error:"Range test failed",aNElement:null},!0,!0),O.default.throwError("The value [".concat(r,"] being set falls outside of the minimumValue [").concat(e.minimumValue,"] and maximumValue [").concat(e.maximumValue,"] range set for this element"))),e.valuesToStrings&&this._checkValuesToStringsSettings(t,e)?e.valuesToStrings[t]:(this._correctNegativePositiveSignPlacementOption(e),this._calculateDecimalPlacesOnInit(e),O.default.isUndefinedOrNullOrEmpty(e.rawValueDivisor)||0===e.rawValueDivisor||""===r||null===r||(r*=e.rawValueDivisor),r=this._roundFormattedValueShownOnFocus(r,e),r=this._modifyNegativeSignAndDecimalCharacterForFormattedValue(r,e),r=this._addGroupSeparators(r,e,!1,r))}},{key:"formatAndSet",value:function(e,t){t=1<arguments.length&&void 0!==t?t:null,t=this.format(e,t);return O.default.setElementValue(e,t),t}},{key:"unformat",value:function(e){if(O.default.isNumberStrict(e))return e;var t=O.default.isElement(e)?O.default.getElementValue(e):e;if(""===t)return"";if(O.default.isUndefined(t)||null===t)return null;(O.default.isArray(t)||O.default.isObject(t))&&O.default.throwError("A number or a string representing a number is needed to be able to unformat it, [".concat(t,"] given."));for(var n=arguments.length,i=new Array(1<n?n-1:0),a=1;a<n;a++)i[a-1]=arguments[a];var r=this._generateOptionsObjectFromOptionsArray(i),e=l({},this.getDefaultConfig(),r);return e.isNegativeSignAllowed=!1,e.isPositiveSignAllowed=!0,t=t.toString(),e.valuesToStrings&&this._checkStringsToValuesSettings(t,e)?O.default.objectKeyLookup(e.valuesToStrings,t):(O.default.isNegative(t,e.negativeSignCharacter)?(e.isNegativeSignAllowed=!0,e.isPositiveSignAllowed=!1):O.default.isNull(e.negativeBracketsTypeOnBlur)||(r=f(e.negativeBracketsTypeOnBlur.split(","),2),e.firstBracket=r[0],e.lastBracket=r[1],t.charAt(0)===e.firstBracket&&t.charAt(t.length-1)===e.lastBracket&&(e.isNegativeSignAllowed=!0,e.isPositiveSignAllowed=!1,t=this._removeBrackets(t,e,!1))),t=this._convertToNumericString(t,e),new RegExp("[^+-0123456789.]","gi").test(t)?NaN:(this._correctNegativePositiveSignPlacementOption(e),e.decimalPlacesRawValue?e.originalDecimalPlacesRawValue=e.decimalPlacesRawValue:e.originalDecimalPlacesRawValue=e.decimalPlaces,this._calculateDecimalPlacesOnInit(e),O.default.isUndefinedOrNullOrEmpty(e.rawValueDivisor)||0===e.rawValueDivisor||""===t||null===t||(t/=e.rawValueDivisor),t=(t=this._roundRawValue(t,e)).replace(e.decimalCharacter,"."),t=this._toLocale(t,e.outputFormat,e)))}},{key:"unformatAndSet",value:function(e,t){t=1<arguments.length&&void 0!==t?t:null,t=this.unformat(e,t);return O.default.setElementValue(e,t),t}},{key:"localize",value:function(e,t){var n=1<arguments.length&&void 0!==t?t:null,t=O.default.isElement(e)?O.default.getElementValue(e):e;return""===t?"":(O.default.isNull(n)&&(n=E.defaultSettings),t=this.unformat(t,n),0===Number(t)&&n.leadingZero!==E.options.leadingZero.keep&&(t="0"),e=(O.default.isNull(n)?n:E.defaultSettings).outputFormat,this._toLocale(t,e,n))}},{key:"localizeAndSet",value:function(e,t){t=1<arguments.length&&void 0!==t?t:null,t=this.localize(e,t);return O.default.setElementValue(e,t),t}},{key:"isManagedByAutoNumeric",value:function(e){return this._isInGlobalList(O.default.domElement(e))}},{key:"getAutoNumericElement",value:function(e){e=O.default.domElement(e);return this.isManagedByAutoNumeric(e)?this._getFromGlobalList(e):null}},{key:"set",value:function(e,t,n,i){n=2<arguments.length&&void 0!==n?n:null,i=!(3<arguments.length&&void 0!==i)||i,e=O.default.domElement(e);if(this.isManagedByAutoNumeric(e))return this.getAutoNumericElement(e).set(t,n,i);n=!(!O.default.isNull(n)&&Object.prototype.hasOwnProperty.call(n,"showWarnings"))||n.showWarnings;return O.default.warning("Impossible to find an AutoNumeric object for the given DOM element or selector.",n),null}},{key:"getNumericString",value:function(e,t){t=1<arguments.length&&void 0!==t?t:null;return this._get(e,"getNumericString",t)}},{key:"getFormatted",value:function(e,t){t=1<arguments.length&&void 0!==t?t:null;return this._get(e,"getFormatted",t)}},{key:"getNumber",value:function(e,t){t=1<arguments.length&&void 0!==t?t:null;return this._get(e,"getNumber",t)}},{key:"_get",value:function(e,t,n){n=2<arguments.length&&void 0!==n?n:null,e=O.default.domElement(e);return this.isManagedByAutoNumeric(e)||O.default.throwError("Impossible to find an AutoNumeric object for the given DOM element or selector."),this.getAutoNumericElement(e)[t](n)}},{key:"getLocalized",value:function(e,t,n){t=1<arguments.length&&void 0!==t?t:null,n=2<arguments.length&&void 0!==n?n:null,e=O.default.domElement(e);return this.isManagedByAutoNumeric(e)||O.default.throwError("Impossible to find an AutoNumeric object for the given DOM element or selector."),this.getAutoNumericElement(e).getLocalized(t,n)}},{key:"_stripAllNonNumberCharacters",value:function(e,t,n,i){return this._stripAllNonNumberCharactersExceptCustomDecimalChar(e,t,n,i).replace(t.decimalCharacter,".")}},{key:"_stripAllNonNumberCharactersExceptCustomDecimalChar",value:function(e,t,n,i){var a,r,o=(e=(e=this._normalizeCurrencySuffixAndNegativeSignCharacters(e,t)).replace(t.allowedAutoStrip,"")).match(t.numRegAutoStrip);return e=o?[o[1],o[2],o[3]].join(""):"",t.leadingZero!==E.options.leadingZero.allow&&t.leadingZero!==E.options.leadingZero.keep||(a="",o=(r=f(e.split(t.decimalCharacter),2))[0],r=r[1],o=o,O.default.contains(o,t.negativeSignCharacter)&&(a=t.negativeSignCharacter,o=o.replace(t.negativeSignCharacter,"")),""===a&&o.length>t.mIntPos&&"0"===o.charAt(0)&&(o=o.slice(1)),""!==a&&o.length>t.mIntNeg&&"0"===o.charAt(0)&&(o=o.slice(1)),e="".concat(a).concat(o).concat(O.default.isUndefined(r)?"":t.decimalCharacter+r)),(n&&t.leadingZero===E.options.leadingZero.deny||!i&&t.leadingZero===E.options.leadingZero.allow)&&(e=e.replace(t.stripReg,"$1$2")),e}},{key:"_toggleNegativeBracket",value:function(e,t,n){t=n?this._removeBrackets(e,t):this._addBrackets(e,t);return t}},{key:"_addBrackets",value:function(e,t){return O.default.isNull(t.negativeBracketsTypeOnBlur)?e:"".concat(t.firstBracket).concat(e.replace(t.negativeSignCharacter,"")).concat(t.lastBracket)}},{key:"_removeBrackets",value:function(e,t,n){var n=!(2<arguments.length&&void 0!==n)||n,i=O.default.isNull(t.negativeBracketsTypeOnBlur)||e.charAt(0)!==t.firstBracket?e:(i=(i=e.replace(t.firstBracket,"")).replace(t.lastBracket,""),n?(i=i.replace(t.currencySymbol,""),this._mergeCurrencySignNegativePositiveSignAndValue(i,t,!0,!1)):"".concat(t.negativeSignCharacter).concat(i));return i}},{key:"_setBrackets",value:function(e){var t,n;O.default.isNull(e.negativeBracketsTypeOnBlur)?(e.firstBracket="",e.lastBracket=""):(t=(n=f(e.negativeBracketsTypeOnBlur.split(","),2))[0],n=n[1],e.firstBracket=t,e.lastBracket=n)}},{key:"_convertToNumericString",value:function(e,t){e=this._removeBrackets(e,t,!1),e=(e=this._normalizeCurrencySuffixAndNegativeSignCharacters(e,t)).replace(new RegExp("[".concat(t.digitGroupSeparator,"]"),"g"),""),"."!==t.decimalCharacter&&(e=e.replace(t.decimalCharacter,".")),O.default.isNegative(e)&&e.lastIndexOf("-")===e.length-1&&(e=e.replace("-",""),e="-".concat(e)),t.showPositiveSign&&(e=e.replace(t.positiveSignCharacter,""));t=t.leadingZero!==E.options.leadingZero.keep,t=O.default.arabicToLatinNumbers(e,t,!1,!1);return isNaN(t)||(e=t.toString()),e}},{key:"_normalizeCurrencySuffixAndNegativeSignCharacters",value:function(e,t){return e=String(e),t.currencySymbol!==E.options.currencySymbol.none&&(e=e.replace(t.currencySymbol,"")),t.suffixText!==E.options.suffixText.none&&(e=e.replace(t.suffixText,"")),t.negativeSignCharacter!==E.options.negativeSignCharacter.hyphen&&(e=e.replace(t.negativeSignCharacter,"-")),e}},{key:"_toLocale",value:function(e,t,n){if(O.default.isNull(t)||t===E.options.outputFormat.string)return e;var i;switch(t){case E.options.outputFormat.number:i=Number(e);break;case E.options.outputFormat.dotNegative:i=O.default.isNegative(e)?e.replace("-","")+"-":e;break;case E.options.outputFormat.comma:case E.options.outputFormat.negativeComma:i=e.replace(".",",");break;case E.options.outputFormat.commaNegative:i=e.replace(".",","),i=O.default.isNegative(i)?i.replace("-","")+"-":i;break;case E.options.outputFormat.dot:case E.options.outputFormat.negativeDot:i=e;break;default:O.default.throwError("The given outputFormat [".concat(t,"] option is not recognized."))}return t!==E.options.outputFormat.number&&"-"!==n.negativeSignCharacter&&(i=i.replace("-",n.negativeSignCharacter)),i}},{key:"_modifyNegativeSignAndDecimalCharacterForFormattedValue",value:function(e,t){return"-"!==t.negativeSignCharacter&&(e=e.replace("-",t.negativeSignCharacter)),"."!==t.decimalCharacter&&(e=e.replace(".",t.decimalCharacter)),e}},{key:"_isElementValueEmptyOrOnlyTheNegativeSign",value:function(e,t){return""===e||e===t.negativeSignCharacter}},{key:"_orderValueCurrencySymbolAndSuffixText",value:function(e,t,n){var i;if(t.emptyInputBehavior===E.options.emptyInputBehavior.always||n)switch(t.negativePositiveSignPlacement){case E.options.negativePositiveSignPlacement.left:case E.options.negativePositiveSignPlacement.prefix:case E.options.negativePositiveSignPlacement.none:i=e+t.currencySymbol+t.suffixText;break;default:i=t.currencySymbol+e+t.suffixText}else i=e;return i}},{key:"_addGroupSeparators",value:function(e,t,n,i,a){var r=4<arguments.length&&void 0!==a?a:null,o=O.default.isNull(r)?O.default.isNegative(e,t.negativeSignCharacter)||O.default.isNegativeWithBrackets(e,t.firstBracket,t.lastBracket):r<0;if(e=this._stripAllNonNumberCharactersExceptCustomDecimalChar(e,t,!1,n),this._isElementValueEmptyOrOnlyTheNegativeSign(e,t))return this._orderValueCurrencySymbolAndSuffixText(e,t,!0);var s,l=O.default.isZeroOrHasNoValue(e);switch(o&&(e=e.replace("-","")),t.digitalGroupSpacing=t.digitalGroupSpacing.toString(),t.digitalGroupSpacing){case E.options.digitalGroupSpacing.two:s=/(\d)((\d)(\d{2}?)+)$/;break;case E.options.digitalGroupSpacing.twoScaled:s=/(\d)((?:\d{2}){0,2}\d{3}(?:(?:\d{2}){2}\d{3})*?)$/;break;case E.options.digitalGroupSpacing.four:s=/(\d)((\d{4}?)+)$/;break;case E.options.digitalGroupSpacing.three:default:s=/(\d)((\d{3}?)+)$/}var u,a=f(e.split(t.decimalCharacter),2),c=a[0],a=a[1];if(t.decimalCharacterAlternative&&O.default.isUndefined(a)&&(c=(u=f(e.split(t.decimalCharacterAlternative),2))[0],a=u[1]),""!==t.digitGroupSeparator)for(;s.test(c);)c=c.replace(s,"$1".concat(t.digitGroupSeparator,"$2"));return e=0===(u=n?t.decimalPlacesShownOnFocus:t.decimalPlacesShownOnBlur)||O.default.isUndefined(a)?c:(a.length>u&&(a=a.substring(0,u)),"".concat(c).concat(t.decimalCharacter).concat(a)),e=E._mergeCurrencySignNegativePositiveSignAndValue(e,t,o,l),O.default.isNull(r)&&(r=i),null!==t.negativeBracketsTypeOnBlur&&(r<0||O.default.isNegativeStrict(e,t.negativeSignCharacter))&&(e=this._toggleNegativeBracket(e,t,n)),t.suffixText?"".concat(e).concat(t.suffixText):e}},{key:"_mergeCurrencySignNegativePositiveSignAndValue",value:function(e,t,n,i){var a,r="";if(n?r=t.negativeSignCharacter:t.showPositiveSign&&!i&&(r=t.positiveSignCharacter),t.currencySymbolPlacement===E.options.currencySymbolPlacement.prefix)if(t.negativePositiveSignPlacement!==E.options.negativePositiveSignPlacement.none&&(n||!n&&t.showPositiveSign&&!i))switch(t.negativePositiveSignPlacement){case E.options.negativePositiveSignPlacement.prefix:case E.options.negativePositiveSignPlacement.left:a="".concat(r).concat(t.currencySymbol).concat(e);break;case E.options.negativePositiveSignPlacement.right:a="".concat(t.currencySymbol).concat(r).concat(e);break;case E.options.negativePositiveSignPlacement.suffix:a="".concat(t.currencySymbol).concat(e).concat(r)}else a=t.currencySymbol+e;else if(t.currencySymbolPlacement===E.options.currencySymbolPlacement.suffix)if(t.negativePositiveSignPlacement!==E.options.negativePositiveSignPlacement.none&&(n||!n&&t.showPositiveSign&&!i))switch(t.negativePositiveSignPlacement){case E.options.negativePositiveSignPlacement.suffix:case E.options.negativePositiveSignPlacement.right:a="".concat(e).concat(t.currencySymbol).concat(r);break;case E.options.negativePositiveSignPlacement.left:a="".concat(e).concat(r).concat(t.currencySymbol);break;case E.options.negativePositiveSignPlacement.prefix:a="".concat(r).concat(e).concat(t.currencySymbol)}else a=e+t.currencySymbol;return a}},{key:"_truncateZeros",value:function(e,t){var n;switch(t){case 0:n=/(\.(?:\d*[1-9])?)0*$/;break;case 1:n=/(\.\d(?:\d*[1-9])?)0*$/;break;default:n=new RegExp("(\\.\\d{".concat(t,"}(?:\\d*[1-9])?)0*"))}return e=e.replace(n,"$1"),0===t&&(e=e.replace(/\.$/,"")),e}},{key:"_roundRawValue",value:function(e,t){return this._roundValue(e,t,t.decimalPlacesRawValue)}},{key:"_roundFormattedValueShownOnFocus",value:function(e,t){return this._roundValue(e,t,Number(t.decimalPlacesShownOnFocus))}},{key:"_roundFormattedValueShownOnBlur",value:function(e,t){return this._roundValue(e,t,Number(t.decimalPlacesShownOnBlur))}},{key:"_roundFormattedValueShownOnFocusOrBlur",value:function(e,t,n){return n?this._roundFormattedValueShownOnFocus(e,t):this._roundFormattedValueShownOnBlur(e,t)}},{key:"_roundValue",value:function(e,t,n){if(O.default.isNull(e))return e;if(e=""===e?"0":e.toString(),t.roundingMethod===E.options.roundingMethod.toNearest05||t.roundingMethod===E.options.roundingMethod.toNearest05Alt||t.roundingMethod===E.options.roundingMethod.upToNext05||t.roundingMethod===E.options.roundingMethod.downToNext05)return this._roundCloseTo05(e,t);var i,a=f(E._prepareValueForRounding(e,t),2),r=a[0],o=(e=a[1]).lastIndexOf("."),s=-1===o,l=f(e.split("."),2),a=l[0];if(!(0<l[1])&&(t.allowDecimalPadding===E.options.allowDecimalPadding.never||t.allowDecimalPadding===E.options.allowDecimalPadding.floats))return 0===Number(e)?a:"".concat(r).concat(a);i=t.allowDecimalPadding===E.options.allowDecimalPadding.always||t.allowDecimalPadding===E.options.allowDecimalPadding.floats?n:0;var a=s?e.length-1:o,u=e.length-1-a,c="";if(u<=n){if(c=e,u<i){s&&(c="".concat(c).concat(t.decimalCharacter));for(var h="000000";u<i;)c+=h=h.substring(0,i-u),u+=h.length}else i<u?c=this._truncateZeros(c,i):0===u&&0===i&&(c=c.replace(/\.$/,""));return 0===Number(c)?c:"".concat(r).concat(c)}n=s?n-1:Number(n)+Number(o);var o=Number(e.charAt(n+1)),d=e.substring(0,n+1).split(""),e="."===e.charAt(n)?e.charAt(n-1)%2:e.charAt(n)%2;if(this._shouldRoundUp(o,t,r,e))for(var m=d.length-1;0<=m;--m)if("."!==d[m]){if(d[m]=+d[m]+1,d[m]<10)break;0<m&&(d[m]="0")}return d=d.slice(0,n+1),c=this._truncateZeros(d.join(""),i),0===Number(c)?c:"".concat(r).concat(c)}},{key:"_roundCloseTo05",value:function(e,t){switch(t.roundingMethod){case E.options.roundingMethod.toNearest05:case E.options.roundingMethod.toNearest05Alt:e=(Math.round(20*e)/20).toString();break;case E.options.roundingMethod.upToNext05:e=(Math.ceil(20*e)/20).toString();break;default:e=(Math.floor(20*e)/20).toString()}e=O.default.contains(e,".")?e.length-e.indexOf(".")<3?e+"0":e:e+".00";return e}},{key:"_prepareValueForRounding",value:function(e,t){var n="";return O.default.isNegativeStrict(e,"-")&&(n="-",e=e.replace("-","")),e.match(/^\d/)||(e="0".concat(e)),0===Number(e)&&(n=""),(0<Number(e)&&t.leadingZero!==E.options.leadingZero.keep||0<e.length&&t.leadingZero===E.options.leadingZero.allow)&&(e=e.replace(/^0*(\d)/,"$1")),[n,e]}},{key:"_shouldRoundUp",value:function(e,t,n,i){return 4<e&&t.roundingMethod===E.options.roundingMethod.halfUpSymmetric||4<e&&t.roundingMethod===E.options.roundingMethod.halfUpAsymmetric&&""===n||5<e&&t.roundingMethod===E.options.roundingMethod.halfUpAsymmetric&&"-"===n||5<e&&t.roundingMethod===E.options.roundingMethod.halfDownSymmetric||5<e&&t.roundingMethod===E.options.roundingMethod.halfDownAsymmetric&&""===n||4<e&&t.roundingMethod===E.options.roundingMethod.halfDownAsymmetric&&"-"===n||5<e&&t.roundingMethod===E.options.roundingMethod.halfEvenBankersRounding||5===e&&t.roundingMethod===E.options.roundingMethod.halfEvenBankersRounding&&1===i||0<e&&t.roundingMethod===E.options.roundingMethod.toCeilingTowardPositiveInfinity&&""===n||0<e&&t.roundingMethod===E.options.roundingMethod.toFloorTowardNegativeInfinity&&"-"===n||0<e&&t.roundingMethod===E.options.roundingMethod.upRoundAwayFromZero}},{key:"_truncateDecimalPlaces",value:function(e,t,n,i){n&&(e=this._roundFormattedValueShownOnFocus(e,t));var a=f(e.split(t.decimalCharacter),2),n=a[0],a=a[1];return a&&a.length>i&&(e=0<i?(i=a.substring(0,i),"".concat(n).concat(t.decimalCharacter).concat(i)):n),e}},{key:"_checkIfInRangeWithOverrideOption",value:function(e,t){if(O.default.isNull(e)&&t.emptyInputBehavior===E.options.emptyInputBehavior.null||t.overrideMinMaxLimits===E.options.overrideMinMaxLimits.ignore||t.overrideMinMaxLimits===E.options.overrideMinMaxLimits.invalid)return[!0,!0];e=(e=e.toString()).replace(",",".");var n,i=O.default.parseStr(t.minimumValue),a=O.default.parseStr(t.maximumValue),e=O.default.parseStr(e);switch(t.overrideMinMaxLimits){case E.options.overrideMinMaxLimits.floor:n=[-1<O.default.testMinMax(i,e),!0];break;case E.options.overrideMinMaxLimits.ceiling:n=[!0,O.default.testMinMax(a,e)<1];break;default:n=[-1<O.default.testMinMax(i,e),O.default.testMinMax(a,e)<1]}return n}},{key:"_isWithinRangeWithOverrideOption",value:function(e,t){e=f(this._checkIfInRangeWithOverrideOption(e,t),2),t=e[0],e=e[1];return t&&e}},{key:"_cleanValueForRangeParse",value:function(e){return e=e.toString().replace(",","."),O.default.parseStr(e)}},{key:"_isMinimumRangeRespected",value:function(e,t){return-1<O.default.testMinMax(O.default.parseStr(t.minimumValue),this._cleanValueForRangeParse(e))}},{key:"_isMaximumRangeRespected",value:function(e,t){return O.default.testMinMax(O.default.parseStr(t.maximumValue),this._cleanValueForRangeParse(e))<1}},{key:"_readCookie",value:function(e){for(var t=e+"=",n=document.cookie.split(";"),i="",a=0;a<n.length;a+=1){for(i=n[a];" "===i.charAt(0);)i=i.substring(1,i.length);if(0===i.indexOf(t))return i.substring(t.length,i.length)}return null}},{key:"_storageTest",value:function(){var e="modernizr";try{return sessionStorage.setItem(e,e),sessionStorage.removeItem(e),!0}catch(e){return!1}}},{key:"_correctNegativePositiveSignPlacementOption",value:function(e){if(O.default.isNull(e.negativePositiveSignPlacement))if(O.default.isUndefined(e)||!O.default.isUndefinedOrNullOrEmpty(e.negativePositiveSignPlacement)||O.default.isUndefinedOrNullOrEmpty(e.currencySymbol))e.negativePositiveSignPlacement=E.options.negativePositiveSignPlacement.left;else switch(e.currencySymbolPlacement){case E.options.currencySymbolPlacement.suffix:e.negativePositiveSignPlacement=E.options.negativePositiveSignPlacement.prefix;break;case E.options.currencySymbolPlacement.prefix:e.negativePositiveSignPlacement=E.options.negativePositiveSignPlacement.left}}},{key:"_correctCaretPositionOnFocusAndSelectOnFocusOptions",value:function(e){return O.default.isNull(e)?null:(!O.default.isUndefinedOrNullOrEmpty(e.caretPositionOnFocus)&&O.default.isUndefinedOrNullOrEmpty(e.selectOnFocus)&&(e.selectOnFocus=E.options.selectOnFocus.doNotSelect),O.default.isUndefinedOrNullOrEmpty(e.caretPositionOnFocus)&&!O.default.isUndefinedOrNullOrEmpty(e.selectOnFocus)&&e.selectOnFocus===E.options.selectOnFocus.select&&(e.caretPositionOnFocus=E.options.caretPositionOnFocus.doNoForceCaretPosition),e)}},{key:"_calculateDecimalPlacesOnInit",value:function(e){this._validateDecimalPlacesRawValue(e),e.decimalPlacesShownOnFocus===E.options.decimalPlacesShownOnFocus.useDefault&&(e.decimalPlacesShownOnFocus=e.decimalPlaces),e.decimalPlacesShownOnBlur===E.options.decimalPlacesShownOnBlur.useDefault&&(e.decimalPlacesShownOnBlur=e.decimalPlaces),e.decimalPlacesRawValue===E.options.decimalPlacesRawValue.useDefault&&(e.decimalPlacesRawValue=e.decimalPlaces);var t=0;e.rawValueDivisor&&e.rawValueDivisor!==E.options.rawValueDivisor.none&&(t=String(e.rawValueDivisor).length-1)<0&&(t=0),e.decimalPlacesRawValue=Math.max(Math.max(e.decimalPlacesShownOnBlur,e.decimalPlacesShownOnFocus)+t,Number(e.originalDecimalPlacesRawValue)+t)}},{key:"_calculateDecimalPlacesOnUpdate",value:function(e,t){var n=1<arguments.length&&void 0!==t?t:null;this._validateDecimalPlacesRawValue(e),O.default.isNull(n)&&O.default.throwError("When updating the settings, the previous ones should be passed as an argument.");t="decimalPlaces"in e;(t||"decimalPlacesRawValue"in e||"decimalPlacesShownOnFocus"in e||"decimalPlacesShownOnBlur"in e||"rawValueDivisor"in e)&&(t?("decimalPlacesShownOnFocus"in e&&e.decimalPlacesShownOnFocus!==E.options.decimalPlacesShownOnFocus.useDefault||(e.decimalPlacesShownOnFocus=e.decimalPlaces),"decimalPlacesShownOnBlur"in e&&e.decimalPlacesShownOnBlur!==E.options.decimalPlacesShownOnBlur.useDefault||(e.decimalPlacesShownOnBlur=e.decimalPlaces),"decimalPlacesRawValue"in e&&e.decimalPlacesRawValue!==E.options.decimalPlacesRawValue.useDefault||(e.decimalPlacesRawValue=e.decimalPlaces)):(O.default.isUndefined(e.decimalPlacesShownOnFocus)&&(e.decimalPlacesShownOnFocus=n.decimalPlacesShownOnFocus),O.default.isUndefined(e.decimalPlacesShownOnBlur)&&(e.decimalPlacesShownOnBlur=n.decimalPlacesShownOnBlur)),t=0,e.rawValueDivisor&&e.rawValueDivisor!==E.options.rawValueDivisor.none&&(t=String(e.rawValueDivisor).length-1)<0&&(t=0),e.decimalPlaces||e.decimalPlacesRawValue?e.decimalPlacesRawValue=Math.max(Math.max(e.decimalPlacesShownOnBlur,e.decimalPlacesShownOnFocus)+t,Number(e.decimalPlacesRawValue)+t):e.decimalPlacesRawValue=Math.max(Math.max(e.decimalPlacesShownOnBlur,e.decimalPlacesShownOnFocus)+t,Number(n.originalDecimalPlacesRawValue)+t))}},{key:"_cachesUsualRegularExpressions",value:function(e,t){var n=e.negativeSignCharacter!==E.options.negativeSignCharacter.hyphen?"([-\\".concat(e.negativeSignCharacter,"]?)"):"(-?)";t.aNegRegAutoStrip=n,e.allowedAutoStrip=new RegExp("[^-0123456789\\".concat(e.decimalCharacter,"]"),"g"),e.numRegAutoStrip=new RegExp("".concat(n,"(?:\\").concat(e.decimalCharacter,"?([0-9]+\\").concat(e.decimalCharacter,"[0-9]+)|([0-9]*(?:\\").concat(e.decimalCharacter,"[0-9]*)?))")),e.stripReg=new RegExp("^".concat(t.aNegRegAutoStrip,"0*([0-9])")),e.formulaChars=new RegExp("[0-9".concat(e.decimalCharacter,"+\\-*/() ]"))}},{key:"_convertOldOptionsToNewOnes",value:function(e){var t,n={aSep:"digitGroupSeparator",nSep:"showOnlyNumbersOnFocus",dGroup:"digitalGroupSpacing",aDec:"decimalCharacter",altDec:"decimalCharacterAlternative",aSign:"currencySymbol",pSign:"currencySymbolPlacement",pNeg:"negativePositiveSignPlacement",aSuffix:"suffixText",oLimits:"overrideMinMaxLimits",vMax:"maximumValue",vMin:"minimumValue",mDec:"decimalPlacesOverride",eDec:"decimalPlacesShownOnFocus",scaleDecimal:"decimalPlacesShownOnBlur",aStor:"saveValueToSessionStorage",mRound:"roundingMethod",aPad:"allowDecimalPadding",nBracket:"negativeBracketsTypeOnBlur",wEmpty:"emptyInputBehavior",lZero:"leadingZero",aForm:"formatOnPageLoad",sNumber:"selectNumberOnly",anDefault:"defaultValueOverride",unSetOnSubmit:"unformatOnSubmit",outputType:"outputFormat",debug:"showWarnings",allowDecimalPadding:!0,alwaysAllowDecimalCharacter:!0,caretPositionOnFocus:!0,createLocalList:!0,currencySymbol:!0,currencySymbolPlacement:!0,decimalCharacter:!0,decimalCharacterAlternative:!0,decimalPlaces:!0,decimalPlacesRawValue:!0,decimalPlacesShownOnBlur:!0,decimalPlacesShownOnFocus:!0,defaultValueOverride:!0,digitalGroupSpacing:!0,digitGroupSeparator:!0,divisorWhenUnfocused:!0,emptyInputBehavior:!0,eventBubbles:!0,eventIsCancelable:!0,failOnUnknownOption:!0,formatOnPageLoad:!0,formulaMode:!0,historySize:!0,isCancellable:!0,leadingZero:!0,maximumValue:!0,minimumValue:!0,modifyValueOnWheel:!0,negativeBracketsTypeOnBlur:!0,negativePositiveSignPlacement:!0,negativeSignCharacter:!0,noEventListeners:!0,onInvalidPaste:!0,outputFormat:!0,overrideMinMaxLimits:!0,positiveSignCharacter:!0,rawValueDivisor:!0,readOnly:!0,roundingMethod:!0,saveValueToSessionStorage:!0,selectNumberOnly:!0,selectOnFocus:!0,serializeSpaces:!0,showOnlyNumbersOnFocus:!0,showPositiveSign:!0,showWarnings:!0,styleRules:!0,suffixText:!0,symbolWhenUnfocused:!0,unformatOnHover:!0,unformatOnSubmit:!0,valuesToStrings:!0,watchExternalChanges:!0,wheelOn:!0,wheelStep:!0,allowedAutoStrip:!0,formulaChars:!0,isNegativeSignAllowed:!0,isPositiveSignAllowed:!0,mIntNeg:!0,mIntPos:!0,numRegAutoStrip:!0,originalDecimalPlaces:!0,originalDecimalPlacesRawValue:!0,stripReg:!0};for(t in e)Object.prototype.hasOwnProperty.call(e,t)&&!0!==n[t]&&(Object.prototype.hasOwnProperty.call(n,t)?(O.default.warning("You are using the deprecated option name '".concat(t,"'. Please use '").concat(n[t],"' instead from now on. The old option name will be dropped very soon™."),!0),e[n[t]]=e[t],delete e[t]):e.failOnUnknownOption&&O.default.throwError("Option name '".concat(t,"' is unknown. Please fix the options passed to autoNumeric")));"mDec"in e&&O.default.warning("The old `mDec` option has been deprecated in favor of more accurate options ; `decimalPlaces`, `decimalPlacesRawValue`, `decimalPlacesShownOnFocus` and `decimalPlacesShownOnBlur`.",!0)}},{key:"_setNegativePositiveSignPermissions",value:function(e){e.isNegativeSignAllowed=e.minimumValue<0,e.isPositiveSignAllowed=0<=e.maximumValue}},{key:"_toNumericValue",value:function(e,t){var n;return O.default.isNumber(Number(e))?n=O.default.scientificToDecimal(e):(n=this._convertToNumericString(e.toString(),t),O.default.isNumber(Number(n))||(O.default.warning('The given value "'.concat(e,'" cannot be converted to a numeric one and therefore cannot be used appropriately.'),t.showWarnings),n=NaN)),n}},{key:"_checkIfInRange",value:function(e,t,n){e=O.default.parseStr(e);return-1<O.default.testMinMax(t,e)&&O.default.testMinMax(n,e)<1}},{key:"_shouldSkipEventKey",value:function(e){var t=O.default.isInArray(e,c.default.keyName._allFnKeys),n=e===c.default.keyName.OSLeft||e===c.default.keyName.OSRight,i=e===c.default.keyName.ContextMenu,a=O.default.isInArray(e,c.default.keyName._someNonPrintableKeys),r=e===c.default.keyName.NumLock||e===c.default.keyName.ScrollLock||e===c.default.keyName.Insert||e===c.default.keyName.Command,e=e===c.default.keyName.Unidentified;return t||n||i||a||e||r}},{key:"_serialize",value:function(e,t,n,i,a){var r,o=this,s=1<arguments.length&&void 0!==t&&t,l=2<arguments.length&&void 0!==n?n:"unformatted",i=3<arguments.length&&void 0!==i?i:"+",u=4<arguments.length&&void 0!==a?a:null,c=[];return"object"===d(e)&&"form"===e.nodeName.toLowerCase()&&Array.prototype.slice.call(e.elements).forEach(function(t){if(t.name&&!t.disabled&&-1===["file","reset","submit","button"].indexOf(t.type))if("select-multiple"===t.type)Array.prototype.slice.call(t.options).forEach(function(e){e.selected&&(s?c.push({name:t.name,value:e.value}):c.push("".concat(encodeURIComponent(t.name),"=").concat(encodeURIComponent(e.value))))});else if(-1===["checkbox","radio"].indexOf(t.type)||t.checked){var e;if(o.isManagedByAutoNumeric(t))switch(l){case"unformatted":n=o.getAutoNumericElement(t),O.default.isNull(n)||(e=o.unformat(t,n.getSettings()));break;case"localized":var n=o.getAutoNumericElement(t);O.default.isNull(n)||(n=O.default.cloneObject(n.getSettings()),O.default.isNull(u)||(n.outputFormat=u),e=o.localize(t,n));break;case"formatted":default:e=t.value}else e=t.value;O.default.isUndefined(e)&&O.default.throwError("This error should never be hit. If it has, something really wrong happened!"),s?c.push({name:t.name,value:e}):c.push("".concat(encodeURIComponent(t.name),"=").concat(encodeURIComponent(e)))}}),s?r=c:(r=c.join("&"),"+"===i&&(r=r.replace(/%20/g,"+"))),r}},{key:"_serializeNumericString",value:function(e,t){t=1<arguments.length&&void 0!==t?t:"+";return this._serialize(e,!1,"unformatted",t)}},{key:"_serializeFormatted",value:function(e,t){t=1<arguments.length&&void 0!==t?t:"+";return this._serialize(e,!1,"formatted",t)}},{key:"_serializeLocalized",value:function(e,t,n){t=1<arguments.length&&void 0!==t?t:"+",n=2<arguments.length&&void 0!==n?n:null;return this._serialize(e,!1,"localized",t,n)}},{key:"_serializeNumericStringArray",value:function(e,t){t=1<arguments.length&&void 0!==t?t:"+";return this._serialize(e,!0,"unformatted",t)}},{key:"_serializeFormattedArray",value:function(e,t){t=1<arguments.length&&void 0!==t?t:"+";return this._serialize(e,!0,"formatted",t)}},{key:"_serializeLocalizedArray",value:function(e,t,n){t=1<arguments.length&&void 0!==t?t:"+",n=2<arguments.length&&void 0!==n?n:null;return this._serialize(e,!0,"localized",t,n)}}],(t=[{key:"_saveInitialValues",value:function(e){this.initialValueHtmlAttribute=O.default.scientificToDecimal(this.domElement.getAttribute("value")),O.default.isNull(this.initialValueHtmlAttribute)&&(this.initialValueHtmlAttribute=""),this.initialValue=e,O.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;O.default.isNull(this.parentForm)||(this._onFormSubmitFunc=function(){e._onFormSubmit()},this._onFormResetFunc=function(){e._onFormReset()},this._hasParentFormCounter()?this._incrementParentFormCounter():(this._initializeFormCounterToOne(),this.parentForm.addEventListener("submit",this._onFormSubmitFunc,!1),this.parentForm.addEventListener("reset",this._onFormResetFunc,!1),this._storeFormHandlerFunction()))}},{key:"_removeFormListener",value:function(){var e;O.default.isNull(this.parentForm)||(1===(e=this._getParentFormCounter())?(this.parentForm.removeEventListener("submit",this._getFormHandlerFunction().submitFn,!1),this.parentForm.removeEventListener("reset",this._getFormHandlerFunction().resetFn,!1),this._removeFormDataSetInfo()):1<e?this._decrementParentFormCounter():O.default.throwError("The AutoNumeric object count on the form is incoherent."))}},{key:"_hasParentFormCounter",value:function(){return"anCount"in this.parentForm.dataset}},{key:"_getParentFormCounter",value:function(){return Number(this.parentForm.dataset.anCount)}},{key:"_initializeFormCounterToOne",value:function(e){e=0<arguments.length&&void 0!==e?e:null;this._getFormElement(e).dataset.anCount=1}},{key:"_incrementParentFormCounter",value:function(e){e=0<arguments.length&&void 0!==e?e:null;this._getFormElement(e).dataset.anCount++}},{key:"_decrementParentFormCounter",value:function(){this.parentForm.dataset.anCount--}},{key:"_hasFormHandlerFunction",value:function(e){e=0<arguments.length&&void 0!==e?e:null;return"anFormHandler"in this._getFormElement(e).dataset}},{key:"_getFormElement",value:function(e){e=0<arguments.length&&void 0!==e?e:null,e=O.default.isNull(e)?this.parentForm:e;return e}},{key:"_storeFormHandlerFunction",value:function(e){var t=0<arguments.length&&void 0!==e?e:null;this.constructor._doesFormHandlerListExists()||this.constructor._createFormHandlerList();e=O.default.randomString();this._getFormElement(t).dataset.anFormHandler=e,window.aNFormHandlerMap.set(e,{submitFn:this._onFormSubmitFunc,resetFn:this._onFormResetFunc})}},{key:"_getFormHandlerKey",value:function(){this._hasFormHandlerFunction()||O.default.throwError("Unable to retrieve the form handler name");var e=this.parentForm.dataset.anFormHandler;return""===e&&O.default.throwError("The form handler name is invalid"),e}},{key:"_getFormHandlerFunction",value:function(){var e=this._getFormHandlerKey();return window.aNFormHandlerMap.get(e)}},{key:"_removeFormDataSetInfo",value:function(){this._decrementParentFormCounter(),window.aNFormHandlerMap.delete(this._getFormHandlerKey()),this.parentForm.removeAttribute("data-an-count"),this.parentForm.removeAttribute("data-an-form-handler")}},{key:"_setWritePermissions",value:function(e){0<arguments.length&&void 0!==e&&e&&this.domElement.readOnly||this.settings.readOnly?this._setReadOnly():this._setReadWrite()}},{key:"_setReadOnly",value:function(){this.isInputElement?this.domElement.readOnly=!0:this.domElement.setAttribute("contenteditable",!1)}},{key:"_setReadWrite",value:function(){this.isInputElement?this.domElement.readOnly=!1:this.domElement.setAttribute("contenteditable",!0)}},{key:"_addWatcher",value:function(){var e,t,n,i=this;O.default.isUndefined(this.getterSetter)||(e=this.getterSetter,t=e.set,n=e.get,Object.defineProperty(this.domElement,this.attributeToWatch,{configurable:!0,get:function(){return n.call(i.domElement)},set:function(e){t.call(i.domElement,e),i.settings.watchExternalChanges&&!i.internalModification&&i.set(e)}}))}},{key:"_removeWatcher",value:function(){var e,t,n,i=this;O.default.isUndefined(this.getterSetter)||(e=this.getterSetter,t=e.set,n=e.get,Object.defineProperty(this.domElement,this.attributeToWatch,{configurable:!0,get:function(){return n.call(i.domElement)},set:function(e){t.call(i.domElement,e)}}))}},{key:"_getAttributeToWatch",value:function(){var e,t;return this.isInputElement?e="value":(t=this.domElement.nodeType)===Node.ELEMENT_NODE||t===Node.DOCUMENT_NODE||t===Node.DOCUMENT_FRAGMENT_NODE?e="textContent":t===Node.TEXT_NODE&&(e="nodeValue"),e}},{key:"_historyTableAdd",value:function(){var e,t=0===this.historyTable.length;!t&&this.rawValue===this._historyTableCurrentValueUsed()||(e=!0,t||((t=this.historyTableIndex+1)<this.historyTable.length&&this.rawValue===this.historyTable[t].value?e=!1:O.default.arrayTrim(this.historyTable,this.historyTableIndex+1)),this.historyTableIndex++,e&&(e=O.default.getElementSelection(this.domElement),this.selectionStart=e.start,this.selectionEnd=e.end,this.historyTable.push({value:this.rawValue,start:this.selectionStart+1,end:this.selectionEnd+1}),1<this.historyTable.length&&(this.historyTable[this.historyTableIndex-1].start=this.selectionStart,this.historyTable[this.historyTableIndex-1].end=this.selectionEnd)),this.historyTable.length>this.settings.historySize&&this._historyTableForget())}},{key:"_historyTableUndoOrRedo",value:function(e){var t;!(0<arguments.length&&void 0!==e)||e?(t=0<this.historyTableIndex)&&this.historyTableIndex--:(t=this.historyTableIndex+1<this.historyTable.length)&&this.historyTableIndex++,t&&(t=this.historyTable[this.historyTableIndex],this.set(t.value,null,!1),O.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(e){for(var t=0<arguments.length&&void 0!==e?e:1,n=[],i=0;i<t;i++)n.push(this.historyTable.shift()),this.historyTableIndex--,this.historyTableIndex<0&&(this.historyTableIndex=0);return 1===n.length?n[0]:n}},{key:"_historyTableCurrentValueUsed",value:function(){var e=this.historyTableIndex;return e<0&&(e=0),O.default.isUndefinedOrNullOrEmpty(this.historyTable[e])?"":this.historyTable[e].value}},{key:"_parseStyleRules",value:function(){var i=this;O.default.isUndefinedOrNullOrEmpty(this.settings.styleRules)||""===this.rawValue||(O.default.isUndefinedOrNullOrEmpty(this.settings.styleRules.positive)||(0<=this.rawValue?this._addCSSClass(this.settings.styleRules.positive):this._removeCSSClass(this.settings.styleRules.positive)),O.default.isUndefinedOrNullOrEmpty(this.settings.styleRules.negative)||(this.rawValue<0?this._addCSSClass(this.settings.styleRules.negative):this._removeCSSClass(this.settings.styleRules.negative)),O.default.isUndefinedOrNullOrEmpty(this.settings.styleRules.ranges)||0===this.settings.styleRules.ranges.length||this.settings.styleRules.ranges.forEach(function(e){i.rawValue>=e.min&&i.rawValue<e.max?i._addCSSClass(e.class):i._removeCSSClass(e.class)}),O.default.isUndefinedOrNullOrEmpty(this.settings.styleRules.userDefined)||0===this.settings.styleRules.userDefined.length||this.settings.styleRules.userDefined.forEach(function(e){var n;O.default.isFunction(e.callback)?O.default.isString(e.classes)?e.callback(i.rawValue)?i._addCSSClass(e.classes):i._removeCSSClass(e.classes):O.default.isArray(e.classes)?2===e.classes.length?e.callback(i.rawValue)?(i._addCSSClass(e.classes[0]),i._removeCSSClass(e.classes[1])):(i._removeCSSClass(e.classes[0]),i._addCSSClass(e.classes[1])):2<e.classes.length?(n=e.callback(i.rawValue),O.default.isArray(n)?e.classes.forEach(function(e,t){O.default.isInArray(t,n)?i._addCSSClass(e):i._removeCSSClass(e)}):O.default.isInt(n)?e.classes.forEach(function(e,t){t===n?i._addCSSClass(e):i._removeCSSClass(e)}):O.default.isNull(n)?e.classes.forEach(function(e){i._removeCSSClass(e)}):O.default.throwError("The callback result is not an array nor a valid array index, ".concat(d(n)," given."))):O.default.throwError("The classes attribute is not valid for the `styleRules` option."):O.default.isUndefinedOrNullOrEmpty(e.classes)?e.callback(i):O.default.throwError("The callback/classes structure is not valid for the `styleRules` option."):O.default.warning("The given `styleRules` callback is not a function, ".concat("undefined"==typeof callback?"undefined":d(callback)," given."),i.settings.showWarnings)}))}},{key:"_addCSSClass",value:function(e){this.domElement.classList.add(e)}},{key:"_removeCSSClass",value:function(e){this.domElement.classList.remove(e)}},{key:"update",value:function(){for(var t=this,e=arguments.length,n=new Array(e),i=0;i<e;i++)n[i]=arguments[i];Array.isArray(n)&&Array.isArray(n[0])&&(n=n[0]);var a=O.default.cloneObject(this.settings),r=this.rawValue,o={};O.default.isUndefinedOrNullOrEmpty(n)||0===n.length?o=null:1<=n.length&&n.forEach(function(e){t.constructor._isPreDefinedOptionValid(e)&&(e=t.constructor._getOptionObject(e)),l(o,e)});try{this._setSettings(o,!0),this._setWritePermissions(),this._updateEventListeners(),this.set(r)}catch(e){return this._setSettings(a,!0),O.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(e,t,n){var i=1<arguments.length&&void 0!==t?t:null,a=!(2<arguments.length&&void 0!==n)||n;if(O.default.isUndefined(e))return O.default.warning("You are trying to set an 'undefined' value ; an error could have occurred.",this.settings.showWarnings),this;if(O.default.isNull(i)||this._setSettings(i,!0),null===e&&this.settings.emptyInputBehavior!==E.options.emptyInputBehavior.null)return O.default.warning("You are trying to set the `null` value while the `emptyInputBehavior` option is set to ".concat(this.settings.emptyInputBehavior,". If you want to be able to set the `null` value, you need to change the 'emptyInputBehavior' option to `'null'`."),this.settings.showWarnings),this;if(null===e)return this._setElementAndRawValue(null,null,a),this._saveValueToPersistentStorage(),this;if(t=this.constructor._toNumericValue(e,this.settings),isNaN(Number(t)))return O.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("",a),this;if(""===t)switch(this.settings.emptyInputBehavior){case E.options.emptyInputBehavior.zero:t=0;break;case E.options.emptyInputBehavior.min:t=this.settings.minimumValue;break;case E.options.emptyInputBehavior.max:t=this.settings.maximumValue;break;default:O.default.isNumber(this.settings.emptyInputBehavior)&&(t=Number(this.settings.emptyInputBehavior))}if(""!==t){n=f(this.constructor._checkIfInRangeWithOverrideOption(t,this.settings),2),i=n[0],e=n[1];if(i&&e&&this.settings.valuesToStrings&&this._checkValuesToStrings(t))return this._setElementAndRawValue(this.settings.valuesToStrings[t],t,a),this._saveValueToPersistentStorage(),this;if(O.default.isZeroOrHasNoValue(t)&&(t="0"),i&&e){n=this.constructor._roundRawValue(t,this.settings),n=this._trimLeadingAndTrailingZeros(n.replace(this.settings.decimalCharacter,".")),t=this._getRawValueToFormat(t);return t=this.isFocused?this.constructor._roundFormattedValueShownOnFocus(t,this.settings):(this.settings.divisorWhenUnfocused&&(t=(t/=this.settings.divisorWhenUnfocused).toString()),this.constructor._roundFormattedValueShownOnBlur(t,this.settings)),t=this.constructor._modifyNegativeSignAndDecimalCharacterForFormattedValue(t,this.settings),t=this.constructor._addGroupSeparators(t,this.settings,this.isFocused,this.rawValue,n),!this.isFocused&&this.settings.symbolWhenUnfocused&&(t="".concat(t).concat(this.settings.symbolWhenUnfocused)),(this.settings.decimalPlacesShownOnFocus||this.settings.divisorWhenUnfocused)&&this._saveValueToPersistentStorage(),this._setElementAndRawValue(t,n,a),this._setValidOrInvalidState(n),this}return this._triggerRangeEvents(i,e),O.default.throwError("The value [".concat(t,"] 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("",a),this}t=this.settings.emptyInputBehavior===E.options.emptyInputBehavior.always?this.settings.currencySymbol:"";return this._setElementAndRawValue(t,"",a),this}},{key:"setUnformatted",value:function(e,t){t=1<arguments.length&&void 0!==t?t:null;if(null===e||O.default.isUndefined(e))return this;O.default.isNull(t)||this._setSettings(t,!0);t=this.constructor._removeBrackets(e,this.settings),t=this.constructor._stripAllNonNumberCharacters(t,this.settings,!0,this.isFocused);return O.default.isNumber(t)||O.default.throwError("The value is not a valid one, it's not a numeric string nor a recognized currency."),this.constructor._isWithinRangeWithOverrideOption(t,this.settings)?this.setValue(e):O.default.throwError("The value is out of the range limits [".concat(this.settings.minimumValue,", ").concat(this.settings.maximumValue,"].")),this}},{key:"setValue",value:function(e,t){t=!(1<arguments.length&&void 0!==t)||t;return this._setElementAndRawValue(e,t),this}},{key:"_setRawValue",value:function(e,t){var n=!(1<arguments.length&&void 0!==t)||t;this.rawValue!==e&&(t=this.rawValue,this.rawValue=e,!O.default.isNull(this.settings.rawValueDivisor)&&0!==this.settings.rawValueDivisor&&""!==e&&null!==e&&this._isUserManuallyEditingTheValue()&&(this.rawValue/=this.settings.rawValueDivisor),this._triggerEvent(E.events.rawValueModified,this.domElement,{oldRawValue:t,newRawValue:this.rawValue,isPristine:this.isPristine(!0),error:null,aNElement:this}),this._parseStyleRules(),n&&this._historyTableAdd())}},{key:"_setElementValue",value:function(e,t){var n=!(1<arguments.length&&void 0!==t)||t,t=O.default.getElementValue(this.domElement);return e!==t&&(this.internalModification=!0,O.default.setElementValue(this.domElement,e),this.internalModification=!1,n&&this._triggerEvent(E.events.formatted,this.domElement,{oldValue:t,newValue:e,oldRawValue:this.rawValue,newRawValue:this.rawValue,isPristine:this.isPristine(!1),error:null,aNElement:this})),this}},{key:"_setElementAndRawValue",value:function(e,t,n){t=1<arguments.length&&void 0!==t?t:null,n=!(2<arguments.length&&void 0!==n)||n;return O.default.isNull(t)?t=e:O.default.isBoolean(t)&&(n=t,t=e),this._setElementValue(e),this._setRawValue(t,n),this}},{key:"_getRawValueToFormat",value:function(e){e=O.default.isNull(this.settings.rawValueDivisor)||0===this.settings.rawValueDivisor||""===e||null===e?e:e*this.settings.rawValueDivisor;return e}},{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){!O.default.isNull(t)&&O.default.isFunction(t)&&t(e,this)}},{key:"_triggerEvent",value:function(e,t,n){t=1<arguments.length&&void 0!==t?t:document,n=2<arguments.length&&void 0!==n?n:null;O.default.triggerEvent(e,t,n,this.settings.eventBubbles,this.settings.eventIsCancelable)}},{key:"get",value:function(e){e=0<arguments.length&&void 0!==e?e:null;return this.getNumericString(e)}},{key:"getNumericString",value:function(e){var t=0<arguments.length&&void 0!==e?e:null,e=O.default.isNull(this.rawValue)?null:O.default.trimPaddedZerosFromDecimalPlaces(this.rawValue);return this._executeCallback(e,t),e}},{key:"getFormatted",value:function(e){var t=0<arguments.length&&void 0!==e?e:null;"value"in this.domElement||"textContent"in this.domElement||O.default.throwError("Unable to get the formatted string from the element.");e=O.default.getElementValue(this.domElement);return this._executeCallback(e,t),e}},{key:"getNumber",value:function(e){var t=0<arguments.length&&void 0!==e?e:null,e=null===this.rawValue?null:this.constructor._toLocale(this.getNumericString(),"number",this.settings);return this._executeCallback(e,t),e}},{key:"getLocalized",value:function(e,t){var n=0<arguments.length&&void 0!==e?e:null,e=1<arguments.length&&void 0!==t?t:null;O.default.isFunction(n)&&O.default.isNull(e)&&(e=n,n=null),""!==(t=O.default.isEmptyString(this.rawValue)?"":""+Number(this.rawValue))&&0===Number(t)&&this.settings.leadingZero!==E.options.leadingZero.keep&&(t="0"),n=O.default.isNull(n)?this.settings.outputFormat:n;n=this.constructor._toLocale(t,n,this.settings);return this._executeCallback(n,e),n}},{key:"reformat",value:function(){return this.set(this.rawValue),this}},{key:"unformat",value:function(){return this._setElementValue(this.getNumericString()),this}},{key:"unformatLocalized",value:function(e){e=0<arguments.length&&void 0!==e?e:null;return this._setElementValue(this.getLocalized(e)),this}},{key:"isPristine",value:function(e){e=!(0<arguments.length&&void 0!==e)||e?this.initialValue===this.getNumericString():this.initialValueHtmlAttribute===this.getFormatted();return e}},{key:"select",value:function(){return this.settings.selectNumberOnly?this.selectNumber():this._defaultSelectAll(),this}},{key:"_defaultSelectAll",value:function(){O.default.setElementSelection(this.domElement,0,O.default.getElementValue(this.domElement).length)}},{key:"selectNumber",value:function(){var e,t=O.default.getElementValue(this.domElement),n=t.length,i=this.settings.currencySymbol.length,a=this.settings.currencySymbolPlacement,r=O.default.isNegative(t,this.settings.negativeSignCharacter)?1:0,o=this.settings.suffixText.length,t=a===E.options.currencySymbolPlacement.suffix?0:this.settings.negativePositiveSignPlacement===E.options.negativePositiveSignPlacement.left&&1==r&&0<i?i+1:i;if(a===E.options.currencySymbolPlacement.prefix)e=n-o;else switch(this.settings.negativePositiveSignPlacement){case E.options.negativePositiveSignPlacement.left:e=n-(o+i);break;case E.options.negativePositiveSignPlacement.right:e=0<i?n-(i+r+o):n-(i+o);break;default:e=n-(i+o)}return O.default.setElementSelection(this.domElement,t,e),this}},{key:"selectInteger",value:function(){var e=0,t=0<=this.rawValue;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&&t||!t&&this.settings.currencySymbolPlacement===E.options.currencySymbolPlacement.prefix&&this.settings.negativePositiveSignPlacement===E.options.negativePositiveSignPlacement.left)&&(e+=1),this.settings.currencySymbolPlacement===E.options.currencySymbolPlacement.prefix&&(e+=this.settings.currencySymbol.length);var n=O.default.getElementValue(this.domElement),i=n.indexOf(this.settings.decimalCharacter);return-1===i&&(i=this.settings.currencySymbolPlacement===E.options.currencySymbolPlacement.suffix?n.length-this.settings.currencySymbol.length:n.length,t||this.settings.negativePositiveSignPlacement!==E.options.negativePositiveSignPlacement.suffix&&this.settings.currencySymbolPlacement!==E.options.currencySymbolPlacement.suffix||--i,i-=this.settings.suffixText.length),O.default.setElementSelection(this.domElement,e,i),this}},{key:"selectDecimal",value:function(){var e=O.default.getElementValue(this.domElement).indexOf(this.settings.decimalCharacter),t=-1===e?e=0:(e+=1,t=this.isFocused?this.settings.decimalPlacesShownOnFocus:this.settings.decimalPlacesShownOnBlur,e+Number(t));return O.default.setElementSelection(this.domElement,e,t),this}},{key:"node",value:function(){return this.domElement}},{key:"parent",value:function(){return this.domElement.parentNode}},{key:"detach",value:function(e){e=0<arguments.length&&void 0!==e?e:null,e=O.default.isNull(e)?this.domElement:e.node();return this._removeFromLocalList(e),this}},{key:"attach",value:function(e,t){t=!(1<arguments.length&&void 0!==t)||t;return this._addToLocalList(e.node()),t&&e.update(this.settings),this}},{key:"formatOther",value:function(e,t){t=1<arguments.length&&void 0!==t?t:null;return this._formatOrUnformatOther(!0,e,t)}},{key:"unformatOther",value:function(e,t){t=1<arguments.length&&void 0!==t?t:null;return this._formatOrUnformatOther(!1,e,t)}},{key:"_formatOrUnformatOther",value:function(e,t,n){n=2<arguments.length&&void 0!==n?n:null,n=O.default.isNull(n)?this.settings:this._cloneAndMergeSettings(n);if(O.default.isElement(t)){var i=O.default.getElementValue(t),i=e?E.format(i,n):E.unformat(i,n);return O.default.setElementValue(t,i),null}return i=e?E.format(t,n):E.unformat(t,n)}},{key:"init",value:function(e,t){var i=this,a=!(1<arguments.length&&void 0!==t)||t,n=!1,t=[];if(O.default.isString(e)?t=h(document.querySelectorAll(e)):O.default.isElement(e)?(t.push(e),n=!0):O.default.isArray(e)?t=e:O.default.throwError("The given parameters to the 'init' function are invalid."),0===t.length)return O.default.warning("No valid DOM elements were given hence no AutoNumeric object were instantiated.",!0),[];var r=this._getLocalList(),o=[];return t.forEach(function(e){var t=i.settings.createLocalList;a&&(i.settings.createLocalList=!1);var n=new E(e,O.default.getElementValue(e),i.settings);a&&(n._setLocalList(r),i._addToLocalList(e,n),i.settings.createLocalList=t),o.push(n)}),n?o[0]:o}},{key:"clear",value:function(e){return 0<arguments.length&&void 0!==e&&e?(e={emptyInputBehavior:E.options.emptyInputBehavior.focus},this.set("",e)):this.set(""),this}},{key:"remove",value:function(){this._removeValueFromPersistentStorage(),this._removeEventListeners(),this._removeWatcher(),this._removeFromLocalList(this.domElement),this.constructor._removeFromGlobalList(this)}},{key:"wipe",value:function(){this._setElementValue("",!1),this.remove()}},{key:"nuke",value:function(){this.remove(),this.domElement.parentNode.removeChild(this.domElement)}},{key:"form",value:function(e){var t;return(0<arguments.length&&void 0!==e&&e||O.default.isUndefinedOrNullOrEmpty(this.parentForm))&&(t=this._getParentForm(),O.default.isNull(t)||t===this.parentForm||(e=this._getFormAutoNumericChildren(this.parentForm),this.parentForm.dataset.anCount=e.length,this._hasFormHandlerFunction(t)?this._incrementParentFormCounter(t):(this._storeFormHandlerFunction(t),this._initializeFormCounterToOne(t))),this.parentForm=t),this.parentForm}},{key:"_getFormAutoNumericChildren",value:function(e){var t=this;return h(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,O.default.isNull(t))return null;if("body"===(e=t.tagName?t.tagName.toLowerCase():""))break}while("form"!==e);return"form"===e?t:null}},{key:"formNumericString",value:function(){return this.constructor._serializeNumericString(this.form(),this.settings.serializeSpaces)}},{key:"formFormatted",value:function(){return this.constructor._serializeFormatted(this.form(),this.settings.serializeSpaces)}},{key:"formLocalized",value:function(e){e=0<arguments.length&&void 0!==e?e:null,e=O.default.isNull(e)?this.settings.outputFormat:e;return 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(e){e=0<arguments.length&&void 0!==e?e:null,e=O.default.isNull(e)?this.settings.outputFormat:e;return 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(e){e=0<arguments.length&&void 0!==e?e:null;return JSON.stringify(this.formArrayLocalized(e))}},{key:"formUnformat",value:function(){return this.constructor._getChildANInputElement(this.form()).forEach(function(e){E.getAutoNumericElement(e).unformat()}),this}},{key:"formUnformatLocalized",value:function(){return this.constructor._getChildANInputElement(this.form()).forEach(function(e){E.getAutoNumericElement(e).unformatLocalized()}),this}},{key:"formReformat",value:function(){return this.constructor._getChildANInputElement(this.form()).forEach(function(e){E.getAutoNumericElement(e).reformat()}),this}},{key:"formSubmitNumericString",value:function(e){e=0<arguments.length&&void 0!==e?e:null;return O.default.isNull(e)?(this.formUnformat(),this.form().submit(),this.formReformat()):O.default.isFunction(e)?e(this.formNumericString()):O.default.throwError("The given callback is not a function."),this}},{key:"formSubmitFormatted",value:function(e){e=0<arguments.length&&void 0!==e?e:null;return O.default.isNull(e)?this.form().submit():O.default.isFunction(e)?e(this.formFormatted()):O.default.throwError("The given callback is not a function."),this}},{key:"formSubmitLocalized",value:function(e,t){e=0<arguments.length&&void 0!==e?e:null,t=1<arguments.length&&void 0!==t?t:null;return O.default.isNull(t)?(this.formUnformatLocalized(),this.form().submit(),this.formReformat()):O.default.isFunction(t)?t(this.formLocalized(e)):O.default.throwError("The given callback is not a function."),this}},{key:"formSubmitArrayNumericString",value:function(e){return O.default.isFunction(e)?e(this.formArrayNumericString()):O.default.throwError("The given callback is not a function."),this}},{key:"formSubmitArrayFormatted",value:function(e){return O.default.isFunction(e)?e(this.formArrayFormatted()):O.default.throwError("The given callback is not a function."),this}},{key:"formSubmitArrayLocalized",value:function(e,t){t=1<arguments.length&&void 0!==t?t:null;return O.default.isFunction(e)?e(this.formArrayLocalized(t)):O.default.throwError("The given callback is not a function."),this}},{key:"formSubmitJsonNumericString",value:function(e){return O.default.isFunction(e)?e(this.formJsonNumericString()):O.default.throwError("The given callback is not a function."),this}},{key:"formSubmitJsonFormatted",value:function(e){return O.default.isFunction(e)?e(this.formJsonFormatted()):O.default.throwError("The given callback is not a function."),this}},{key:"formSubmitJsonLocalized",value:function(e,t){t=1<arguments.length&&void 0!==t?t:null;return O.default.isFunction(e)?e(this.formJsonLocalized(t)):O.default.throwError("The given callback is not a function."),this}},{key:"_createLocalList",value:function(){this.autoNumericLocalList=new Map,this._addToLocalList(this.domElement)}},{key:"_deleteLocalList",value:function(){delete this.autoNumericLocalList}},{key:"_setLocalList",value:function(e){this.autoNumericLocalList=e}},{key:"_getLocalList",value:function(){return this.autoNumericLocalList}},{key:"_hasLocalList",value:function(){return this.autoNumericLocalList instanceof Map&&0!==this.autoNumericLocalList.size}},{key:"_addToLocalList",value:function(e,t){t=1<arguments.length&&void 0!==t?t:null;O.default.isNull(t)&&(t=this),O.default.isUndefined(this.autoNumericLocalList)?O.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){O.default.isUndefined(this.autoNumericLocalList)?this.settings.createLocalList&&O.default.throwError("The local list provided does not exists when trying to remove an element. [".concat(this.autoNumericLocalList,"] given.")):this.autoNumericLocalList.delete(e)}},{key:"_mergeSettings",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];l.apply(void 0,[this.settings].concat(t))}},{key:"_cloneAndMergeSettings",value:function(){for(var e={},t=arguments.length,n=new Array(t),i=0;i<t;i++)n[i]=arguments[i];return l.apply(void 0,[e,this.settings].concat(n)),e}},{key:"_updatePredefinedOptions",value:function(e,t){t=1<arguments.length&&void 0!==t?t:null;return O.default.isNull(t)?this.update(e):(this._mergeSettings(e,t),this.update(this.settings)),this}},{key:"french",value:function(e){e=0<arguments.length&&void 0!==e?e:null;return this._updatePredefinedOptions(E.getPredefinedOptions().French,e),this}},{key:"northAmerican",value:function(e){e=0<arguments.length&&void 0!==e?e:null;return this._updatePredefinedOptions(E.getPredefinedOptions().NorthAmerican,e),this}},{key:"british",value:function(e){e=0<arguments.length&&void 0!==e?e:null;return this._updatePredefinedOptions(E.getPredefinedOptions().British,e),this}},{key:"swiss",value:function(e){e=0<arguments.length&&void 0!==e?e:null;return this._updatePredefinedOptions(E.getPredefinedOptions().Swiss,e),this}},{key:"japanese",value:function(e){e=0<arguments.length&&void 0!==e?e:null;return this._updatePredefinedOptions(E.getPredefinedOptions().Japanese,e),this}},{key:"spanish",value:function(e){e=0<arguments.length&&void 0!==e?e:null;return this._updatePredefinedOptions(E.getPredefinedOptions().Spanish,e),this}},{key:"chinese",value:function(e){e=0<arguments.length&&void 0!==e?e:null;return this._updatePredefinedOptions(E.getPredefinedOptions().Chinese,e),this}},{key:"brazilian",value:function(e){e=0<arguments.length&&void 0!==e?e:null;return this._updatePredefinedOptions(E.getPredefinedOptions().Brazilian,e),this}},{key:"_runCallbacksFoundInTheSettingsObject",value:function(){for(var e in this.settings){var t;Object.prototype.hasOwnProperty.call(this.settings,e)&&("function"==typeof(t=this.settings[e])?this.settings[e]=t(this,e):(t=this.domElement.getAttribute(e),t=O.default.camelize(t),"function"==typeof this.settings[t]&&(this.settings[e]=t(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/)||(e+="0"),e}},{key:"_initialCaretPosition",value:function(e){O.default.isNull(this.settings.caretPositionOnFocus)&&this.settings.selectOnFocus===E.options.selectOnFocus.doNotSelect&&O.default.throwError("`_initialCaretPosition()` should never be called when the `caretPositionOnFocus` option is `null`.");var t=this.rawValue<0,n=O.default.isZeroOrHasNoValue(e),i=e.length,a=0,r=0,o=!1,s=0;this.settings.caretPositionOnFocus!==E.options.caretPositionOnFocus.start&&(a=(e=(e=(e=e.replace(this.settings.negativeSignCharacter,"")).replace(this.settings.positiveSignCharacter,"")).replace(this.settings.currencySymbol,"")).length,o=O.default.contains(e,this.settings.decimalCharacter),this.settings.caretPositionOnFocus!==E.options.caretPositionOnFocus.decimalLeft&&this.settings.caretPositionOnFocus!==E.options.caretPositionOnFocus.decimalRight||(s=o?(r=e.indexOf(this.settings.decimalCharacter),this.settings.decimalCharacter.length):(r=a,0)));o="";t?o=this.settings.negativeSignCharacter:this.settings.showPositiveSign&&!n&&(o=this.settings.positiveSignCharacter);var l,e=o.length,o=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&&(t||!t&&this.settings.showPositiveSign&&!n))switch(this.settings.negativePositiveSignPlacement){case E.options.negativePositiveSignPlacement.prefix:case E.options.negativePositiveSignPlacement.left:case E.options.negativePositiveSignPlacement.right:l=e+o;break;case E.options.negativePositiveSignPlacement.suffix:l=o}else l=o;else if(this.settings.caretPositionOnFocus===E.options.caretPositionOnFocus.end)if(this.settings.negativePositiveSignPlacement!==E.options.negativePositiveSignPlacement.none&&(t||!t&&this.settings.showPositiveSign&&!n))switch(this.settings.negativePositiveSignPlacement){case E.options.negativePositiveSignPlacement.prefix:case E.options.negativePositiveSignPlacement.left:case E.options.negativePositiveSignPlacement.right:l=i;break;case E.options.negativePositiveSignPlacement.suffix:l=o+a}else l=i;else if(this.settings.caretPositionOnFocus===E.options.caretPositionOnFocus.decimalLeft)if(this.settings.negativePositiveSignPlacement!==E.options.negativePositiveSignPlacement.none&&(t||!t&&this.settings.showPositiveSign&&!n))switch(this.settings.negativePositiveSignPlacement){case E.options.negativePositiveSignPlacement.prefix:case E.options.negativePositiveSignPlacement.left:case E.options.negativePositiveSignPlacement.right:l=e+o+r;break;case E.options.negativePositiveSignPlacement.suffix:l=o+r}else l=o+r;else if(this.settings.caretPositionOnFocus===E.options.caretPositionOnFocus.decimalRight)if(this.settings.negativePositiveSignPlacement!==E.options.negativePositiveSignPlacement.none&&(t||!t&&this.settings.showPositiveSign&&!n))switch(this.settings.negativePositiveSignPlacement){case E.options.negativePositiveSignPlacement.prefix:case E.options.negativePositiveSignPlacement.left:case E.options.negativePositiveSignPlacement.right:l=e+o+r+s;break;case E.options.negativePositiveSignPlacement.suffix:l=o+r+s}else l=o+r+s}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&&(t||!t&&this.settings.showPositiveSign&&!n))switch(this.settings.negativePositiveSignPlacement){case E.options.negativePositiveSignPlacement.suffix:case E.options.negativePositiveSignPlacement.right:case E.options.negativePositiveSignPlacement.left:l=0;break;case E.options.negativePositiveSignPlacement.prefix:l=e}else l=0;else if(this.settings.caretPositionOnFocus===E.options.caretPositionOnFocus.end)if(this.settings.negativePositiveSignPlacement!==E.options.negativePositiveSignPlacement.none&&(t||!t&&this.settings.showPositiveSign&&!n))switch(this.settings.negativePositiveSignPlacement){case E.options.negativePositiveSignPlacement.suffix:case E.options.negativePositiveSignPlacement.right:case E.options.negativePositiveSignPlacement.left:l=a;break;case E.options.negativePositiveSignPlacement.prefix:l=e+a}else l=a;else if(this.settings.caretPositionOnFocus===E.options.caretPositionOnFocus.decimalLeft)if(this.settings.negativePositiveSignPlacement!==E.options.negativePositiveSignPlacement.none&&(t||!t&&this.settings.showPositiveSign&&!n))switch(this.settings.negativePositiveSignPlacement){case E.options.negativePositiveSignPlacement.suffix:case E.options.negativePositiveSignPlacement.right:case E.options.negativePositiveSignPlacement.left:l=r;break;case E.options.negativePositiveSignPlacement.prefix:l=e+r}else l=r;else if(this.settings.caretPositionOnFocus===E.options.caretPositionOnFocus.decimalRight)if(this.settings.negativePositiveSignPlacement!==E.options.negativePositiveSignPlacement.none&&(t||!t&&this.settings.showPositiveSign&&!n))switch(this.settings.negativePositiveSignPlacement){case E.options.negativePositiveSignPlacement.suffix:case E.options.negativePositiveSignPlacement.right:case E.options.negativePositiveSignPlacement.left:l=r+s;break;case E.options.negativePositiveSignPlacement.prefix:l=e+r+s}else l=r+s;return l}},{key:"_triggerRangeEvents",value:function(e,t){e||this._triggerEvent(E.events.minRangeExceeded,this.domElement),t||this._triggerEvent(E.events.maxRangeExceeded,this.domElement)}},{key:"_setInvalidState",value:function(){this.isInputElement?O.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?O.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(e){var t;this.settings.overrideMinMaxLimits===E.options.overrideMinMaxLimits.invalid&&(t=this.constructor._isMinimumRangeRespected(e,this.settings),e=this.constructor._isMaximumRangeRespected(e,this.settings),t&&e?this._setValidState():this._setInvalidState(),this._triggerRangeEvents(t,e))}},{key:"_keepAnOriginalSettingsCopy",value:function(){this.originalDigitGroupSeparator=this.settings.digitGroupSeparator,this.originalCurrencySymbol=this.settings.currencySymbol,this.originalSuffixText=this.settings.suffixText}},{key:"_trimLeadingAndTrailingZeros",value:function(e){if(""===e||null===e)return e;if(this.settings.leadingZero!==E.options.leadingZero.keep){if(0===Number(e))return"0";e=e.replace(/^(-)?0+(?=\d)/g,"$1")}return O.default.contains(e,".")&&(e=e.replace(/(\.[0-9]*?)0+$/,"$1")),e=e.replace(/\.$/,"")}},{key:"_setPersistentStorageName",value:function(){this.settings.saveValueToSessionStorage&&(""===this.domElement.name||O.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(){if(this.settings.saveValueToSessionStorage){var e=this.sessionStorageAvailable?sessionStorage.getItem(this.rawValueStorageName):this.constructor._readCookie(this.rawValueStorageName);return e}return O.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(){var e;this.settings.saveValueToSessionStorage&&(this.sessionStorageAvailable?sessionStorage.removeItem(this.rawValueStorageName):((e=new Date).setTime(e.getTime()-864e5),e="; expires=".concat(e.toUTCString()),document.cookie="".concat(this.rawValueStorageName,"='' ;").concat(e,"; path=/")))}},{key:"_getDefaultValue",value:function(e){e=e.getAttribute("value");return O.default.isNull(e)?"":e}},{key:"_onFocusInAndMouseEnter",value:function(e){var t,n,i;this.isEditing=!1,!this.formulaMode&&this.settings.unformatOnHover&&"mouseenter"===e.type&&e.altKey?this.constructor._unformatAltHovered(this):("focus"===e.type&&(this.isFocused=!0,this.rawValueOnFocus=this.rawValue),"focus"===e.type&&this.settings.unformatOnHover&&this.hoveredWithAlt&&this.constructor._reformatAltHovered(this),"focus"!==e.type&&("mouseenter"!==e.type||this.isFocused)||(t=null,this.settings.emptyInputBehavior===E.options.emptyInputBehavior.focus&&this.rawValue<0&&null!==this.settings.negativeBracketsTypeOnBlur&&this.settings.isNegativeSignAllowed&&(t=this.constructor._removeBrackets(O.default.getElementValue(this.domElement),this.settings)),""!==(n=this._getRawValueToFormat(this.rawValue))&&(i=this.constructor._roundFormattedValueShownOnFocusOrBlur(n,this.settings,this.isFocused),t=this.settings.showOnlyNumbersOnFocus===E.options.showOnlyNumbersOnFocus.onlyNumbers?(this.settings.digitGroupSeparator="",this.settings.currencySymbol="",this.settings.suffixText="",i.replace(".",this.settings.decimalCharacter)):O.default.isNull(i)?"":this.constructor._addGroupSeparators(i.replace(".",this.settings.decimalCharacter),this.settings,this.isFocused,n)),O.default.isNull(t)?this.valueOnFocus="":this.valueOnFocus=t,this.lastVal=this.valueOnFocus,i=this.constructor._isElementValueEmptyOrOnlyTheNegativeSign(this.valueOnFocus,this.settings),n=this.constructor._orderValueCurrencySymbolAndSuffixText(this.valueOnFocus,this.settings,!0),(i=i&&""!==n&&this.settings.emptyInputBehavior===E.options.emptyInputBehavior.focus)&&(t=n),O.default.isNull(t)||this._setElementValue(t),i&&n===this.settings.currencySymbol&&this.settings.currencySymbolPlacement===E.options.currencySymbolPlacement.suffix&&O.default.setElementSelection(e.target,0)))}},{key:"_onFocus",value:function(){this.settings.isCancellable&&this._saveCancellableValue()}},{key:"_onFocusIn",value:function(e){this.settings.selectOnFocus?this.select():O.default.isNull(this.settings.caretPositionOnFocus)||O.default.setElementSelection(e.target,this._initialCaretPosition(O.default.getElementValue(this.domElement)))}},{key:"_enterFormulaMode",value:function(){this.settings.formulaMode&&(this.formulaMode=!0,O.default.setElementValue(this.domElement,"="),O.default.setElementSelection(this.domElement,1))}},{key:"_exitFormulaMode",value:function(){var t=(t=O.default.getElementValue(this.domElement)).replace(/^\s*=/,"");try{var e=new a.default(t,this.settings.decimalCharacter),n=(new i.default).evaluate(e)}catch(e){return this._triggerEvent(E.events.invalidFormula,this.domElement,{formula:t,aNElement:this}),this.reformat(),void(this.formulaMode=!1)}this._triggerEvent(E.events.validFormula,this.domElement,{formula:t,result:n,aNElement:this}),this.set(n),this.formulaMode=!1}},{key:"_acceptNonPrintableKeysInFormulaMode",value:function(){return this.eventKey===c.default.keyName.Backspace||this.eventKey===c.default.keyName.Delete||this.eventKey===c.default.keyName.LeftArrow||this.eventKey===c.default.keyName.RightArrow||this.eventKey===c.default.keyName.Home||this.eventKey===c.default.keyName.End}},{key:"_onKeydown",value:function(e){if(this.formatted=!1,this.isEditing=!0,this.formulaMode||this.isFocused||!this.settings.unformatOnHover||!e.altKey||this.domElement!==O.default.getHoveredElement()){if(this._updateEventKeyInfo(e),this.keydownEventCounter+=1,1===this.keydownEventCounter&&(this.initialValueOnFirstKeydown=O.default.getElementValue(e.target),this.initialRawValueOnFirstKeydown=this.rawValue),this.formulaMode){if(this.eventKey===c.default.keyName.Esc)return this.formulaMode=!1,void this.reformat();if(this.eventKey===c.default.keyName.Enter)return void this._exitFormulaMode();if(this._acceptNonPrintableKeysInFormulaMode())return}else if(this.eventKey===c.default.keyName.Equal)return void this._enterFormulaMode();var t,n;this.domElement.readOnly||this.settings.readOnly||this.domElement.disabled?this.processed=!0:(this.eventKey===c.default.keyName.Esc&&(e.preventDefault(),this.settings.isCancellable&&this.rawValue!==this.savedCancellableValue&&(this.set(this.savedCancellableValue),this._triggerEvent(E.events.native.input,e.target)),this.select()),t=O.default.getElementValue(e.target),this.eventKey===c.default.keyName.Enter&&this.rawValue!==this.rawValueOnFocus&&(this._triggerEvent(E.events.native.change,e.target),this.valueOnFocus=t,this.rawValueOnFocus=this.rawValue,this.settings.isCancellable&&this._saveCancellableValue()),this._updateInternalProperties(e),this._processNonPrintableKeysAndShortcuts(e)?this.processed=!0:this.eventKey!==c.default.keyName.Backspace&&this.eventKey!==c.default.keyName.Delete||(n=this._processCharacterDeletion(),this.processed=!0,n?(this._formatValue(e),(t=O.default.getElementValue(e.target))!==this.lastVal&&this.throwInput&&(this._triggerEvent(E.events.native.input,e.target),e.preventDefault()),this.lastVal=t,this.throwInput=!0):e.preventDefault()))}else this.constructor._unformatAltHovered(this)}},{key:"_onKeypress",value:function(e){if(this.formulaMode)return this._acceptNonPrintableKeysInFormulaMode()||this.settings.formulaChars.test(this.eventKey)?void 0:void e.preventDefault();if(this.eventKey!==c.default.keyName.Insert){var t=this.processed;if(this._updateInternalProperties(e),!this._processNonPrintableKeysAndShortcuts(e))if(t)e.preventDefault();else{if(this._processCharacterInsertion()){this._formatValue(e);t=O.default.getElementValue(e.target);return t!==this.lastVal&&this.throwInput?this._triggerEvent(E.events.native.input,e.target):this.eventKey!==this.settings.decimalCharacter&&this.eventKey!==this.settings.decimalCharacterAlternative||O.default.getElementSelection(e.target).start!==O.default.getElementSelection(e.target).end||O.default.getElementSelection(e.target).start!==t.indexOf(this.settings.decimalCharacter)||(t=O.default.getElementSelection(e.target).start+1,O.default.setElementSelection(e.target,t)),e.preventDefault(),this.lastVal=O.default.getElementValue(e.target),this.throwInput=!0,void this._setValidOrInvalidState(this.rawValue)}e.preventDefault()}}}},{key:"_onKeyup",value:function(e){if(this.isEditing=!1,this.keydownEventCounter=0,!this.formulaMode)if(this.settings.isCancellable&&this.eventKey===c.default.keyName.Esc)e.preventDefault();else{if(this.eventKey===c.default.keyName.Z||this.eventKey===c.default.keyName.z){if(e.ctrlKey&&e.shiftKey)return e.preventDefault(),this._historyTableRedo(),void(this.onGoingRedo=!0);if(e.ctrlKey&&!e.shiftKey){if(!this.onGoingRedo)return e.preventDefault(),void this._historyTableUndo();this.onGoingRedo=!1}}var t,n;this.onGoingRedo&&(e.ctrlKey||e.shiftKey)&&(this.onGoingRedo=!1),(e.ctrlKey||e.metaKey)&&this.eventKey===c.default.keyName.x&&(n=O.default.getElementSelection(this.domElement).start,t=this.constructor._toNumericValue(O.default.getElementValue(e.target),this.settings),this.set(t),this._setCaretPosition(n)),this.eventKey===c.default.keyName.Alt&&this.settings.unformatOnHover&&this.hoveredWithAlt?this.constructor._reformatAltHovered(this):!e.ctrlKey&&!e.metaKey||this.eventKey!==c.default.keyName.Backspace&&this.eventKey!==c.default.keyName.Delete?(this._updateInternalProperties(e),t=this._processNonPrintableKeysAndShortcuts(e),delete this.valuePartsBeforePaste,n=O.default.getElementValue(e.target),t||""===n&&""===this.initialValueOnFirstKeydown||(n===this.settings.currencySymbol?this.settings.currencySymbolPlacement===E.options.currencySymbolPlacement.suffix?O.default.setElementSelection(e.target,0):O.default.setElementSelection(e.target,this.settings.currencySymbol.length):this.eventKey===c.default.keyName.Tab&&O.default.setElementSelection(e.target,0,n.length),(n===this.settings.suffixText||""===this.rawValue&&""!==this.settings.currencySymbol&&""!==this.settings.suffixText)&&O.default.setElementSelection(e.target,0),null!==this.settings.decimalPlacesShownOnFocus&&this._saveValueToPersistentStorage(),this.formatted||this._formatValue(e),this._setValidOrInvalidState(this.rawValue),this._saveRawValueForAndroid(),n!==this.initialValueOnFirstKeydown&&this._triggerEvent(E.events.formatted,e.target,{oldValue:this.initialValueOnFirstKeydown,newValue:n,oldRawValue:this.initialRawValueOnFirstKeydown,newRawValue:this.rawValue,isPristine:this.isPristine(!1),error:null,aNElement:this}),1<this.historyTable.length&&(n=O.default.getElementSelection(this.domElement),this.selectionStart=n.start,this.selectionEnd=n.end,this.historyTable[this.historyTableIndex].start=this.selectionStart,this.historyTable[this.historyTableIndex].end=this.selectionEnd))):(e=O.default.getElementValue(e.target),this._setRawValue(this._formatOrUnformatOther(!1,e)))}}},{key:"_saveRawValueForAndroid",value:function(){var e;this.eventKey===c.default.keyName.AndroidDefault&&(e=this.constructor._stripAllNonNumberCharactersExceptCustomDecimalChar(this.getFormatted(),this.settings,!0,this.isFocused),e=this.constructor._convertToNumericString(e,this.settings),this._setRawValue(e))}},{key:"_onFocusOutAndMouseLeave",value:function(e){if(this.isEditing=!1,"mouseleave"!==e.type||!this.formulaMode)if(this.settings.unformatOnHover&&"mouseleave"===e.type&&this.hoveredWithAlt)this.constructor._reformatAltHovered(this);else if("mouseleave"===e.type&&!this.isFocused||"blur"===e.type){"blur"===e.type&&this.formulaMode&&this._exitFormulaMode(),this._saveValueToPersistentStorage(),this.settings.showOnlyNumbersOnFocus===E.options.showOnlyNumbersOnFocus.onlyNumbers&&(this.settings.digitGroupSeparator=this.originalDigitGroupSeparator,this.settings.currencySymbol=this.originalCurrencySymbol,this.settings.suffixText=this.originalSuffixText);var t=this._getRawValueToFormat(this.rawValue),n=O.default.isNull(t),i=f(this.constructor._checkIfInRangeWithOverrideOption(t,this.settings),2),a=i[0],r=i[1],i=!1;if(""===t||n||(this._triggerRangeEvents(a,r),this.settings.valuesToStrings&&this._checkValuesToStrings(t)&&(this._setElementValue(this.settings.valuesToStrings[t]),i=!0)),!i){i=n||""===t?t:String(t);if(""===t||n){if(""===t)switch(this.settings.emptyInputBehavior){case E.options.emptyInputBehavior.zero:this._setRawValue("0"),i=this.constructor._roundValue("0",this.settings,0);break;case E.options.emptyInputBehavior.min:this._setRawValue(this.settings.minimumValue),i=this.constructor._roundFormattedValueShownOnFocusOrBlur(this.settings.minimumValue,this.settings,this.isFocused);break;case E.options.emptyInputBehavior.max:this._setRawValue(this.settings.maximumValue),i=this.constructor._roundFormattedValueShownOnFocusOrBlur(this.settings.maximumValue,this.settings,this.isFocused);break;default:O.default.isNumber(this.settings.emptyInputBehavior)&&(this._setRawValue(this.settings.emptyInputBehavior),i=this.constructor._roundFormattedValueShownOnFocusOrBlur(this.settings.emptyInputBehavior,this.settings,this.isFocused))}}else a&&r&&!this.constructor._isElementValueEmptyOrOnlyTheNegativeSign(t,this.settings)?(i=this._modifyNegativeSignAndDecimalCharacterForRawValue(i),this.settings.divisorWhenUnfocused&&!O.default.isNull(i)&&(i=(i/=this.settings.divisorWhenUnfocused).toString()),i=this.constructor._roundFormattedValueShownOnBlur(i,this.settings),i=this.constructor._modifyNegativeSignAndDecimalCharacterForFormattedValue(i,this.settings)):this._triggerRangeEvents(a,r);r=this.constructor._orderValueCurrencySymbolAndSuffixText(i,this.settings,!1);this.constructor._isElementValueEmptyOrOnlyTheNegativeSign(i,this.settings)||n&&this.settings.emptyInputBehavior===E.options.emptyInputBehavior.null||(r=this.constructor._addGroupSeparators(i,this.settings,!1,t)),r===t&&""!==t&&this.settings.allowDecimalPadding!==E.options.allowDecimalPadding.never&&this.settings.allowDecimalPadding!==E.options.allowDecimalPadding.floats||(this.settings.symbolWhenUnfocused&&""!==t&&null!==t&&(r="".concat(r).concat(this.settings.symbolWhenUnfocused)),this._setElementValue(r))}this._setValidOrInvalidState(this.rawValue),"blur"===e.type&&this._onBlur(e)}}},{key:"_onPaste",value:function(e){if(e.preventDefault(),!(this.settings.readOnly||this.domElement.readOnly||this.domElement.disabled)){var t,n;window.clipboardData&&window.clipboardData.getData?t=window.clipboardData.getData("Text"):e.clipboardData&&e.clipboardData.getData?t=e.clipboardData.getData("text/plain"):O.default.throwError("Unable to retrieve the pasted value. Please use a modern browser (ie. Firefox or Chromium)."),n=e.target.tagName?e.target:e.explicitOriginalTarget;var i=O.default.getElementValue(n),a=n.selectionStart||0,r=n.selectionEnd||0,o=r-a;if(o===i.length){var s=this._preparePastedText(t),l=O.default.arabicToLatinNumbers(s,!1,!1,!1);return"."===l||""===l||"."!==l&&!O.default.isNumber(l)?(this.formatted=!0,void(this.settings.onInvalidPaste===E.options.onInvalidPaste.error&&O.default.throwError("The pasted value '".concat(t,"' is not a valid paste content.")))):(this.set(l),this.formatted=!0,void this._triggerEvent(E.events.native.input,n))}var u=O.default.isNegativeStrict(t,this.settings.negativeSignCharacter);u&&(t=t.slice(1,t.length));var c=this._preparePastedText(t),h="."===c?".":O.default.arabicToLatinNumbers(c,!1,!1,!1);if("."!==h&&(!O.default.isNumber(h)||""===h))return this.formatted=!0,void(this.settings.onInvalidPaste===E.options.onInvalidPaste.error&&O.default.throwError("The pasted value '".concat(t,"' is not a valid paste content.")));e=O.default.isNegativeStrict(this.getNumericString(),this.settings.negativeSignCharacter),s=!(!u||e)&&(e=!0),l=i.slice(0,a),c=i.slice(r,i.length);b=a!==r?this._preparePastedText(l+c):this._preparePastedText(i),e&&(b=O.default.setRawNegativeSign(b)),u=O.default.convertCharacterCountToIndexPosition(O.default.countNumberCharactersOnTheCaretLeftSide(i,a,this.settings.decimalCharacter)),s&&u++;var l=b.slice(0,u),d=b.slice(u,b.length),c=!1;"."===h&&(O.default.contains(l,".")&&(c=!0,l=l.replace(".","")),d=d.replace(".",""));e=!1;switch(""===l&&"-"===d&&(l="-",e=!(d="")),this.settings.onInvalidPaste){case E.options.onInvalidPaste.truncate:case E.options.onInvalidPaste.replace:for(var m=O.default.parseStr(this.settings.minimumValue),f=O.default.parseStr(this.settings.maximumValue),g=b,p=0,v=l;p<h.length&&(b=(v+=h[p])+d,this.constructor._checkIfInRange(b,m,f));)g=b,p++;if(u+=p,e&&u++,this.settings.onInvalidPaste===E.options.onInvalidPaste.truncate){b=g,c&&u--;break}for(var y=u,S=g.length;p<h.length&&y<S;)if("."!==g[y]){if(b=O.default.replaceCharAt(g,y,h[p]),!this.constructor._checkIfInRange(b,m,f))break;g=b,p++,y++}else y++;u=y,c&&u--,b=g;break;case E.options.onInvalidPaste.error:case E.options.onInvalidPaste.ignore:case E.options.onInvalidPaste.clamp:default:var b="".concat(l).concat(h).concat(d);a===r?u=O.default.convertCharacterCountToIndexPosition(O.default.countNumberCharactersOnTheCaretLeftSide(i,a,this.settings.decimalCharacter))+h.length:""===d?(u=O.default.convertCharacterCountToIndexPosition(O.default.countNumberCharactersOnTheCaretLeftSide(i,a,this.settings.decimalCharacter))+h.length,e&&u++):(e=O.default.convertCharacterCountToIndexPosition(O.default.countNumberCharactersOnTheCaretLeftSide(i,r,this.settings.decimalCharacter)),r=O.default.getElementValue(n).slice(a,r),u=e-o+O.default.countCharInText(this.settings.digitGroupSeparator,r)+h.length),s&&u++,c&&u--}if(O.default.isNumber(b)&&""!==b){var w,P=!1,s=!1;try{this.set(b),P=!0}catch(e){switch(this.settings.onInvalidPaste){case E.options.onInvalidPaste.clamp:w=O.default.clampToRangeLimits(b,this.settings);try{this.set(w)}catch(e){O.default.throwError("Fatal error: Unable to set the clamped value '".concat(w,"'."))}P=s=!0,b=w;break;case E.options.onInvalidPaste.error:case E.options.onInvalidPaste.truncate:case E.options.onInvalidPaste.replace:O.default.throwError("The pasted value '".concat(t,"' results in a value '").concat(b,"' 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}}c=O.default.getElementValue(n);if(P)switch(this.settings.onInvalidPaste){case E.options.onInvalidPaste.clamp:if(s){this.settings.currencySymbolPlacement===E.options.currencySymbolPlacement.suffix?O.default.setElementSelection(n,c.length-this.settings.currencySymbol.length):O.default.setElementSelection(n,c.length);break}case E.options.onInvalidPaste.error:case E.options.onInvalidPaste.ignore:case E.options.onInvalidPaste.truncate:case E.options.onInvalidPaste.replace:default:u=O.default.findCaretPositionInFormattedNumber(b,u,c,this.settings.decimalCharacter),O.default.setElementSelection(n,u)}P&&i!==c&&this._triggerEvent(E.events.native.input,n)}else this.settings.onInvalidPaste===E.options.onInvalidPaste.error&&O.default.throwError("The pasted value '".concat(t,"' would result into an invalid content '").concat(b,"'."))}}},{key:"_onBlur",value:function(e){this.isFocused=!1,this.isEditing=!1,this.rawValue!==this.rawValueOnFocus&&this._triggerEvent(E.events.native.change,e.target),this.rawValueOnFocus=void 0}},{key:"_onWheel",value:function(e){this.formulaMode||this.settings.readOnly||this.domElement.readOnly||this.domElement.disabled||this.settings.modifyValueOnWheel&&(this.settings.wheelOn===E.options.wheelOn.focus?this.isFocused?e.shiftKey||this.wheelAction(e):e.shiftKey&&this.wheelAction(e):this.settings.wheelOn===E.options.wheelOn.hover?e.shiftKey?(e.preventDefault(),window.scrollBy(0,O.default.isNegativeStrict(String(e.deltaY))?-50:50)):this.wheelAction(e):O.default.throwError("Unknown `wheelOn` option."))}},{key:"wheelAction",value:function(e){this.isWheelEvent=!0;var t,n,i=e.target.selectionStart||0,a=e.target.selectionEnd||0,r=this.rawValue;O.default.isUndefinedOrNullOrEmpty(r)?0<this.settings.minimumValue||this.settings.maximumValue<0?O.default.isWheelUpEvent(e)?t=this.settings.minimumValue:O.default.isWheelDownEvent(e)?t=this.settings.maximumValue:O.default.throwError("The event is not a 'wheel' event."):t=0:t=r,t=+t,O.default.isNumber(this.settings.wheelStep)?(n=+this.settings.wheelStep,O.default.isWheelUpEvent(e)?t+=n:O.default.isWheelDownEvent(e)&&(t-=n)):O.default.isWheelUpEvent(e)?t=O.default.addAndRoundToNearestAuto(t,this.settings.decimalPlacesRawValue):O.default.isWheelDownEvent(e)&&(t=O.default.subtractAndRoundToNearestAuto(t,this.settings.decimalPlacesRawValue)),(t=O.default.clampToRangeLimits(t,this.settings))!==+r&&(this.set(t),this._triggerEvent(E.events.native.input,e.target)),e.preventDefault(),this._setSelection(i,a),this.isWheelEvent=!1}},{key:"_onDrop",value:function(e){var t;this.formulaMode||(this.isDropEvent=!0,e.preventDefault(),t=O.default.isIE11()?"text":"text/plain",t=e.dataTransfer.getData(t),t=this.unformatOther(t),this.set(t),this.isDropEvent=!1)}},{key:"_onFormSubmit",value:function(){var t=this;return this._getFormAutoNumericChildren(this.parentForm).map(function(e){return t.constructor.getAutoNumericElement(e)}).forEach(function(e){return e._unformatOnSubmit()}),!0}},{key:"_onFormReset",value:function(){var n=this;this._getFormAutoNumericChildren(this.parentForm).map(function(e){return n.constructor.getAutoNumericElement(e)}).forEach(function(e){var t=n._getDefaultValue(e.node());setTimeout(function(){return e.set(t)},0)})}},{key:"_unformatOnSubmit",value:function(){this.settings.unformatOnSubmit&&this._setElementValue(this.rawValue)}},{key:"_onKeydownGlobal",value:function(e){O.default.character(e)===c.default.keyName.Alt&&(e=O.default.getHoveredElement(),!E.isManagedByAutoNumeric(e)||!(e=E.getAutoNumericElement(e)).formulaMode&&e.settings.unformatOnHover&&this.constructor._unformatAltHovered(e))}},{key:"_onKeyupGlobal",value:function(e){O.default.character(e)===c.default.keyName.Alt&&(e=O.default.getHoveredElement(),!E.isManagedByAutoNumeric(e)||!(e=E.getAutoNumericElement(e)).formulaMode&&e.settings.unformatOnHover&&this.constructor._reformatAltHovered(e))}},{key:"_isElementTagSupported",value:function(){return O.default.isElement(this.domElement)||O.default.throwError("The DOM element is not valid, ".concat(this.domElement," given.")),O.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||O.default.isUndefinedOrNullOrEmpty(this.domElement.type)}},{key:"_checkElement",value:function(){var e=this.domElement.tagName.toLowerCase();this._isElementTagSupported()||O.default.throwError("The <".concat(e,"> tag is not supported by autoNumeric")),this._isInputElement()?(this._isInputTypeSupported()||O.default.throwError('The input type "'.concat(this.domElement.type,'" is not supported by autoNumeric')),this.isInputElement=!0):(this.isInputElement=!1,this.isContentEditable=this.domElement.hasAttribute("contenteditable")&&"true"===this.domElement.getAttribute("contenteditable"))}},{key:"_formatDefaultValueOnPageLoad",value:function(e){var t,n=0<arguments.length&&void 0!==e?e:null,i=!0;if(O.default.isNull(n)?(t=O.default.getElementValue(this.domElement).trim(),this.domElement.setAttribute("value",t)):t=n,this.isInputElement||this.isContentEditable){e=this.constructor._toNumericValue(t,this.settings);if(this.domElement.hasAttribute("value")&&""!==this.domElement.getAttribute("value")?(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")&&!O.default.isNumber(e))&&(this.settings.saveValueToSessionStorage&&(null!==this.settings.decimalPlacesShownOnFocus||this.settings.divisorWhenUnfocused)&&this._setRawValue(this._getValueFromPersistentStorage()),this.settings.saveValueToSessionStorage||(n=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&&O.default.isNegative(t,this.settings.negativeSignCharacter)?this._setRawValue("-".concat(this.constructor._stripAllNonNumberCharacters(n,this.settings,!0,this.isFocused))):this._setRawValue(this.constructor._stripAllNonNumberCharacters(n,this.settings,!0,this.isFocused))),i=!1):isNaN(Number(e))||1/0===e?O.default.throwError("The value [".concat(t,"] used in the input is not a valid value autoNumeric can work with.")):(this.set(e),i=!1),""===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 i&&t===this.domElement.getAttribute("value")&&this.set(t)}else null!==this.settings.defaultValueOverride&&this.settings.defaultValueOverride!==t||this.set(t)}},{key:"_calculateVMinAndVMaxIntegerSizes",value:function(){var e=f(this.settings.maximumValue.toString().split("."),1)[0],t=f(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){var t;Object.prototype.hasOwnProperty.call(this.settings,e)&&("true"!==(t=this.settings[e])&&"false"!==t||(this.settings[e]="true"===t),"number"==typeof t&&(this.settings[e]=t.toString()))}}},{key:"_setSettings",value:function(e,t){t=1<arguments.length&&void 0!==t&&t;!t&&O.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=c.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||(O.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(),O.default.isEmptyObj(this.settings)&&O.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=O.default.getElementSelection(this.domElement),this.processed=!1}},{key:"_updateEventKeyInfo",value:function(e){this.eventKey=O.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,O.default.getElementValue(this.domElement).length),this.selection={start:e,end:t,length:t-e},O.default.setElementSelection(this.domElement,e,t)}},{key:"_setCaretPosition",value:function(e){this._setSelection(e,e)}},{key:"_getLeftAndRightPartAroundTheSelection",value:function(){var e=O.default.getElementValue(this.domElement);return[e.substring(0,this.selection.start),e.substring(this.selection.end,e.length)]}},{key:"_getUnformattedLeftAndRightPartAroundTheSelection",value:function(){var e=f(this._getLeftAndRightPartAroundTheSelection(),2),t=e[0],n=e[1];if(""===t&&""===n)return["",""];e=!0;return this.eventKey!==c.default.keyName.Hyphen&&this.eventKey!==c.default.keyName.Minus||0!==Number(t)||(e=!1),this.isTrailingNegative&&(O.default.isNegative(n,this.settings.negativeSignCharacter)&&!O.default.isNegative(t,this.settings.negativeSignCharacter)||""===n&&O.default.isNegative(t,this.settings.negativeSignCharacter,!0))&&(t=t.replace(this.settings.negativeSignCharacter,""),n=n.replace(this.settings.negativeSignCharacter,""),t=t.replace("-",""),n=n.replace("-",""),t="-".concat(t)),[t=E._stripAllNonNumberCharactersExceptCustomDecimalChar(t,this.settings,e,this.isFocused),n=E._stripAllNonNumberCharactersExceptCustomDecimalChar(n,this.settings,!1,this.isFocused)]}},{key:"_normalizeParts",value:function(e,t){var n=!0;this.eventKey!==c.default.keyName.Hyphen&&this.eventKey!==c.default.keyName.Minus||0!==Number(e)||(n=!1),this.isTrailingNegative&&O.default.isNegative(t,this.settings.negativeSignCharacter)&&!O.default.isNegative(e,this.settings.negativeSignCharacter)&&(e="-".concat(e),t=t.replace(this.settings.negativeSignCharacter,"")),e=E._stripAllNonNumberCharactersExceptCustomDecimalChar(e,this.settings,n,this.isFocused),t=E._stripAllNonNumberCharactersExceptCustomDecimalChar(t,this.settings,!1,this.isFocused),this.settings.leadingZero!==E.options.leadingZero.deny||this.eventKey!==c.default.keyName.num0&&this.eventKey!==c.default.keyName.numpad0||0!==Number(e)||O.default.contains(e,this.settings.decimalCharacter)||""===t||(e=e.substring(0,e.length-1));var i=e+t;return!this.settings.decimalCharacter||(n=i.match(new RegExp("^".concat(this.regex.aNegRegAutoStrip,"\\").concat(this.settings.decimalCharacter))))&&(i=(e=e.replace(n[1],n[1]+"0"))+t),[e,t,i]}},{key:"_setValueParts",value:function(e,t,n){var i=2<arguments.length&&void 0!==n&&n,a=f(this._normalizeParts(e,t),3),r=a[0],o=a[1],n=a[2],e=f(E._checkIfInRangeWithOverrideOption(n,this.settings),2),t=e[0],a=e[1];if(t&&a){var s,e=E._truncateDecimalPlaces(n,this.settings,i,this.settings.decimalPlacesRawValue).replace(this.settings.decimalCharacter,".");if(""===e||e===this.settings.negativeSignCharacter){switch(this.settings.emptyInputBehavior){case E.options.emptyInputBehavior.focus:case E.options.emptyInputBehavior.press:case E.options.emptyInputBehavior.always:s="";break;case E.options.emptyInputBehavior.min:s=this.settings.minimumValue;break;case E.options.emptyInputBehavior.max:s=this.settings.maximumValue;break;case E.options.emptyInputBehavior.zero:s="0";break;case E.options.emptyInputBehavior.null:s=null;break;default:s=this.settings.emptyInputBehavior}this._setRawValue(s)}else this._setRawValue(this._trimLeadingAndTrailingZeros(e));n=E._truncateDecimalPlaces(n,this.settings,i,this.settings.decimalPlacesShownOnFocus),i=r.length;return i>n.length&&(i=n.length),1===i&&"0"===r&&this.settings.leadingZero===E.options.leadingZero.deny&&(i=""===o||"0"===r&&""!==o?1:0),this._setElementValue(n,!1),this._setCaretPosition(i),!0}return this._triggerRangeEvents(t,a),!1}},{key:"_getSignPosition",value:function(){var e,t;return this.settings.currencySymbol?(e=this.settings.currencySymbol.length,t=O.default.getElementValue(this.domElement),this.settings.currencySymbolPlacement===E.options.currencySymbolPlacement.prefix?this.settings.negativeSignCharacter&&t&&t.charAt(0)===this.settings.negativeSignCharacter?[1,e+1]:[0,e]:[(t=t.length)-e,t]):[1e3,-1]}},{key:"_expandSelectionOnSign",value:function(){var e=f(this._getSignPosition(),2),t=e[0],n=e[1],e=this.selection;e.start<n&&e.end>t&&((e.start<t||e.end>n)&&O.default.getElementValue(this.domElement).substring(Math.max(e.start,t),Math.min(e.end,n)).match(/^\s*$/)?e.start<t?this._setSelection(e.start,t):this._setSelection(n,e.end):this._setSelection(Math.min(e.start,t),Math.max(e.end,n)))}},{key:"_checkPaste",value:function(){var e,t,n;this.formatted||O.default.isUndefined(this.valuePartsBeforePaste)||(e=this.valuePartsBeforePaste,n=(t=f(this._getLeftAndRightPartAroundTheSelection(),2))[0],t=t[1],delete this.valuePartsBeforePaste,n=n.substr(0,e[0].length)+E._stripAllNonNumberCharactersExceptCustomDecimalChar(n.substr(e[0].length),this.settings,!0,this.isFocused),this._setValueParts(n,t,!0)||(this._setElementValue(e.join(""),!1),this._setCaretPosition(e[0].length)))}},{key:"_processNonPrintableKeysAndShortcuts",value:function(e){return(e.ctrlKey||e.metaKey)&&"keyup"===e.type&&!O.default.isUndefined(this.valuePartsBeforePaste)||e.shiftKey&&this.eventKey===c.default.keyName.Insert?(this._checkPaste(),!1):!!this.constructor._shouldSkipEventKey(this.eventKey)||((e.ctrlKey||e.metaKey)&&this.eventKey===c.default.keyName.a?(this.settings.selectNumberOnly&&(e.preventDefault(),this.selectNumber()),!0):!e.ctrlKey&&!e.metaKey||this.eventKey!==c.default.keyName.c&&this.eventKey!==c.default.keyName.v&&this.eventKey!==c.default.keyName.x?e.ctrlKey||e.metaKey?!(this.eventKey===c.default.keyName.Z||this.eventKey===c.default.keyName.z):this.eventKey!==c.default.keyName.LeftArrow&&this.eventKey!==c.default.keyName.RightArrow?O.default.isInArray(this.eventKey,c.default.keyName._directionKeys):("keydown"!==e.type||e.shiftKey||(t=O.default.getElementValue(this.domElement),this.eventKey!==c.default.keyName.LeftArrow||t.charAt(this.selection.start-2)!==this.settings.digitGroupSeparator&&t.charAt(this.selection.start-2)!==this.settings.decimalCharacter?this.eventKey!==c.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)),!0):("keydown"===e.type&&this._expandSelectionOnSign(),this.eventKey!==c.default.keyName.v&&this.eventKey!==c.default.keyName.Insert||("keydown"===e.type||"keypress"===e.type?O.default.isUndefined(this.valuePartsBeforePaste)&&(this.valuePartsBeforePaste=this._getLeftAndRightPartAroundTheSelection()):this._checkPaste()),"keydown"===e.type||"keypress"===e.type||this.eventKey===c.default.keyName.c));var t}},{key:"_processCharacterDeletionIfTrailingNegativeSign",value:function(e){var t=f(e,2),n=t[0],i=t[1],e=O.default.getElementValue(this.domElement),t=O.default.isNegative(e,this.settings.negativeSignCharacter);if(this.settings.currencySymbolPlacement===E.options.currencySymbolPlacement.prefix&&this.settings.negativePositiveSignPlacement===E.options.negativePositiveSignPlacement.suffix&&(this.eventKey===c.default.keyName.Backspace?(this.caretFix=this.selection.start>=e.indexOf(this.settings.suffixText)&&""!==this.settings.suffixText,"-"===e.charAt(this.selection.start-1)?n=n.substring(1):this.selection.start<=e.length-this.settings.suffixText.length&&(n=n.substring(0,n.length-1))):(this.caretFix=this.selection.start>=e.indexOf(this.settings.suffixText)&&""!==this.settings.suffixText,this.selection.start>=e.indexOf(this.settings.currencySymbol)+this.settings.currencySymbol.length&&(i=i.substring(1,i.length)),O.default.isNegative(n,this.settings.negativeSignCharacter)&&"-"===e.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>=e.indexOf(this.settings.negativeSignCharacter)+this.settings.negativeSignCharacter.length,this.eventKey===c.default.keyName.Backspace?this.selection.start===e.indexOf(this.settings.negativeSignCharacter)+this.settings.negativeSignCharacter.length&&t?n=n.substring(1):"-"!==n&&(this.selection.start<=e.indexOf(this.settings.negativeSignCharacter)||!t)&&(n=n.substring(0,n.length-1)):("-"===n[0]&&(i=i.substring(1)),this.selection.start===e.indexOf(this.settings.negativeSignCharacter)&&t&&(n=n.substring(1)));break;case E.options.negativePositiveSignPlacement.right:this.caretFix=this.selection.start>=e.indexOf(this.settings.negativeSignCharacter)+this.settings.negativeSignCharacter.length,this.eventKey===c.default.keyName.Backspace?this.selection.start===e.indexOf(this.settings.negativeSignCharacter)+this.settings.negativeSignCharacter.length?n=n.substring(1):("-"!==n&&this.selection.start<=e.indexOf(this.settings.negativeSignCharacter)-this.settings.currencySymbol.length||""!==n&&!t)&&(n=n.substring(0,n.length-1)):(this.caretFix=this.selection.start>=e.indexOf(this.settings.currencySymbol)&&""!==this.settings.currencySymbol,this.selection.start===e.indexOf(this.settings.negativeSignCharacter)&&(n=n.substring(1)),i=i.substring(1))}return[n,i]}},{key:"_processCharacterDeletion",value:function(){var e,t,n;return this.selection.length?(this._expandSelectionOnSign(),t=(e=f(this._getUnformattedLeftAndRightPartAroundTheSelection(),2))[0],n=e[1]):(t=(e=f(this._getUnformattedLeftAndRightPartAroundTheSelection(),2))[0],n=e[1],""===t&&""===n&&(this.throwInput=!1),this.isTrailingNegative&&O.default.isNegative(O.default.getElementValue(this.domElement),this.settings.negativeSignCharacter)?(t=(e=f(this._processCharacterDeletionIfTrailingNegativeSign([t,n]),2))[0],n=e[1]):this.eventKey===c.default.keyName.Backspace?t=t.substring(0,t.length-1):n=n.substring(1,n.length)),!!this.constructor._isWithinRangeWithOverrideOption("".concat(t).concat(n),this.settings)&&(this._setValueParts(t,n),!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=f(this._getUnformattedLeftAndRightPartAroundTheSelection(),2),t=e[0],n=e[1];if(this.eventKey!==c.default.keyName.AndroidDefault&&(this.throwInput=!0),this.eventKey===this.settings.decimalCharacter||this.settings.decimalCharacterAlternative&&this.eventKey===this.settings.decimalCharacterAlternative){if(!this._isDecimalCharacterInsertionAllowed()||!this.settings.decimalCharacter)return!1;if(this.settings.alwaysAllowDecimalCharacter)t=t.replace(this.settings.decimalCharacter,""),n=n.replace(this.settings.decimalCharacter,"");else{if(O.default.contains(t,this.settings.decimalCharacter))return!0;if(0<n.indexOf(this.settings.decimalCharacter))return!0;0===n.indexOf(this.settings.decimalCharacter)&&(n=n.substr(1))}return this.settings.negativeSignCharacter&&O.default.contains(n,this.settings.negativeSignCharacter)&&(t="".concat(this.settings.negativeSignCharacter).concat(t),n=n.replace(this.settings.negativeSignCharacter,"")),this._setValueParts(t+this.settings.decimalCharacter,n),!0}if(("-"===this.eventKey||"+"===this.eventKey)&&this.settings.isNegativeSignAllowed)return""===t&&O.default.contains(n,"-")?n=n.replace("-",""):t=O.default.isNegativeStrict(t,"-")?t.replace("-",""):"".concat(this.settings.negativeSignCharacter).concat(t),this._setValueParts(t,n),!0;e=Number(this.eventKey);return 0<=e&&e<=9?(this.settings.isNegativeSignAllowed&&""===t&&O.default.contains(n,"-")&&(t="-",n=n.substring(1,n.length)),this.settings.maximumValue<=0&&this.settings.minimumValue<this.settings.maximumValue&&!O.default.contains(O.default.getElementValue(this.domElement),this.settings.negativeSignCharacter)&&"0"!==this.eventKey&&(t="-".concat(t)),this._setValueParts("".concat(t).concat(this.eventKey),n),!0):this.throwInput=!1}},{key:"_formatValue",value:function(e){var t=O.default.getElementValue(this.domElement),n=f(this._getUnformattedLeftAndRightPartAroundTheSelection(),1)[0];""!==this.settings.digitGroupSeparator&&(""===this.settings.digitGroupSeparator||O.default.contains(t,this.settings.digitGroupSeparator))||""!==this.settings.currencySymbol&&(""===this.settings.currencySymbol||O.default.contains(t,this.settings.currencySymbol))||(i=f(t.split(this.settings.decimalCharacter),1)[0],a="",O.default.isNegative(i,this.settings.negativeSignCharacter)&&(a=this.settings.negativeSignCharacter,i=i.replace(this.settings.negativeSignCharacter,""),n=n.replace("-","")),""===a&&i.length>this.settings.mIntPos&&"0"===n.charAt(0)&&(n=n.slice(1)),a===this.settings.negativeSignCharacter&&i.length>this.settings.mIntNeg&&"0"===n.charAt(0)&&(n=n.slice(1)),this.isTrailingNegative||(n="".concat(a).concat(n)));var i=this.constructor._addGroupSeparators(t,this.settings,this.isFocused,this.rawValue),a=i.length;if(i){var r,o,s,l=n.split("");this.settings.negativePositiveSignPlacement!==E.options.negativePositiveSignPlacement.suffix&&(this.settings.negativePositiveSignPlacement===E.options.negativePositiveSignPlacement.prefix||this.settings.currencySymbolPlacement!==E.options.currencySymbolPlacement.suffix)||l[0]!==this.settings.negativeSignCharacter||this.settings.isNegativeSignAllowed||(l.shift(),this.eventKey!==c.default.keyName.Backspace&&this.eventKey!==c.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)&&(l.push(this.settings.negativeSignCharacter),this.caretFix="keydown"===e.type),this.settings.currencySymbolPlacement===E.options.currencySymbolPlacement.suffix&&this.settings.negativePositiveSignPlacement===E.options.negativePositiveSignPlacement.right&&(r=this.settings.currencySymbol.split(""),o=["\\","^","$",".","|","?","*","+","(",")","["],s=[],r.forEach(function(e,t){t=r[e],O.default.isInArray(t,o)?s.push("\\"+t):s.push(t)}),this.eventKey===c.default.keyName.Backspace&&"-"===this.settings.negativeSignCharacter&&s.push("-"),l.push(s.join("")),this.caretFix="keydown"===e.type)));for(var u=0;u<l.length;u++)l[u].match("\\d")||(l[u]="\\"+l[u]);e=this.settings.currencySymbolPlacement===E.options.currencySymbolPlacement.suffix?new RegExp("^.*?".concat(l.join(".*?"))):new RegExp("^.*?".concat(this.settings.currencySymbol).concat(l.join(".*?")));e=i.match(e);e?(a=e[0].length,this.settings.showPositiveSign&&(0===a&&e.input.charAt(0)===this.settings.positiveSignCharacter&&(a=1===e.input.indexOf(this.settings.currencySymbol)?this.settings.currencySymbol.length+1:1),0===a&&e.input.charAt(this.settings.currencySymbol.length)===this.settings.positiveSignCharacter&&(a=this.settings.currencySymbol.length+1)),(0===a&&i.charAt(0)!==this.settings.negativeSignCharacter||1===a&&i.charAt(0)===this.settings.negativeSignCharacter)&&this.settings.currencySymbol&&this.settings.currencySymbolPlacement===E.options.currencySymbolPlacement.prefix&&(a=this.settings.currencySymbol.length+(O.default.isNegativeStrict(i,this.settings.negativeSignCharacter)?1:0))):(this.settings.currencySymbol&&this.settings.currencySymbolPlacement===E.options.currencySymbolPlacement.suffix&&(a-=this.settings.currencySymbol.length),this.settings.suffixText&&(a-=this.settings.suffixText.length))}i!==t&&(this._setElementValue(i,!1),this._setCaretPosition(a)),this.formatted=!0}}])&&s(e.prototype,t),n&&s(e,n),E}();function u(e,t){t=t||{bubbles:!1,cancelable:!1,detail:void 0};var n=document.createEvent("CustomEvent");return n.initCustomEvent(e,t.bubbles,t.cancelable,t.detail),n}m.multiple=function(e){var n=1<arguments.length&&void 0!==arguments[1]?arguments[1]:null,t=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null,i=[];if(O.default.isObject(n)&&(t=n,n=null),O.default.isString(e)?e=h(document.querySelectorAll(e)):O.default.isObject(e)?(Object.prototype.hasOwnProperty.call(e,"rootElement")||O.default.throwError("The object passed to the 'multiple' function is invalid ; no 'rootElement' attribute found."),r=h(e.rootElement.querySelectorAll("input")),e=Object.prototype.hasOwnProperty.call(e,"exclude")?(Array.isArray(e.exclude)||O.default.throwError("The 'exclude' array passed to the 'multiple' function is invalid."),O.default.filterOut(r,e.exclude)):r):O.default.isArray(e)||O.default.throwError("The given parameters to the 'multiple' function are invalid."),0===e.length){var a=!0;return!O.default.isNull(t)&&O.default.isBoolean(t.showWarnings)&&(a=t.showWarnings),O.default.warning("No valid DOM elements were given hence no AutoNumeric objects were instantiated.",a),[]}var r=O.default.isArray(n)&&1<=n.length,o=!1,a=!1;r&&(s=d(Number(n[0])),(o="number"===s&&!isNaN(Number(n[0])))||"string"!==s&&!isNaN(s)&&"object"!==s||(a=!0));var s,l,r=!1;O.default.isArray(t)&&1<=t.length&&("string"!==(s=d(t[0]))&&"object"!==s||(r=!0)),l=a?m.mergeOptions(n):r?m.mergeOptions(t):t;var u,c=O.default.isNumber(n);return o&&(u=n.length),e.forEach(function(e,t){c?i.push(new m(e,n,l)):o&&t<=u?i.push(new m(e,n[t],l)):i.push(new m(e,null,l))}),i},Array.from||(Array.from=function(e){return[].slice.call(e)}),"undefined"!=typeof window&&"function"!=typeof window.CustomEvent&&(u.prototype=window.Event.prototype,window.CustomEvent=u)},"./src/AutoNumericDefaultSettings.js":function(e,t,n){"use strict";n.r(t);t=n("./src/AutoNumeric.js"),n("./src/AutoNumericOptions.js");t.default.defaultSettings={allowDecimalPadding:t.default.options.allowDecimalPadding.always,alwaysAllowDecimalCharacter:t.default.options.alwaysAllowDecimalCharacter.doNotAllow,caretPositionOnFocus:t.default.options.caretPositionOnFocus.doNoForceCaretPosition,createLocalList:t.default.options.createLocalList.createList,currencySymbol:t.default.options.currencySymbol.none,currencySymbolPlacement:t.default.options.currencySymbolPlacement.prefix,decimalCharacter:t.default.options.decimalCharacter.dot,decimalCharacterAlternative:t.default.options.decimalCharacterAlternative.none,decimalPlaces:t.default.options.decimalPlaces.two,decimalPlacesRawValue:t.default.options.decimalPlacesRawValue.useDefault,decimalPlacesShownOnBlur:t.default.options.decimalPlacesShownOnBlur.useDefault,decimalPlacesShownOnFocus:t.default.options.decimalPlacesShownOnFocus.useDefault,defaultValueOverride:t.default.options.defaultValueOverride.doNotOverride,digitalGroupSpacing:t.default.options.digitalGroupSpacing.three,digitGroupSeparator:t.default.options.digitGroupSeparator.comma,divisorWhenUnfocused:t.default.options.divisorWhenUnfocused.none,emptyInputBehavior:t.default.options.emptyInputBehavior.focus,eventBubbles:t.default.options.eventBubbles.bubbles,eventIsCancelable:t.default.options.eventIsCancelable.isCancelable,failOnUnknownOption:t.default.options.failOnUnknownOption.ignore,formatOnPageLoad:t.default.options.formatOnPageLoad.format,formulaMode:t.default.options.formulaMode.disabled,historySize:t.default.options.historySize.medium,invalidClass:t.default.options.invalidClass,isCancellable:t.default.options.isCancellable.cancellable,leadingZero:t.default.options.leadingZero.deny,maximumValue:t.default.options.maximumValue.tenTrillions,minimumValue:t.default.options.minimumValue.tenTrillions,modifyValueOnWheel:t.default.options.modifyValueOnWheel.modifyValue,negativeBracketsTypeOnBlur:t.default.options.negativeBracketsTypeOnBlur.none,negativePositiveSignPlacement:t.default.options.negativePositiveSignPlacement.none,negativeSignCharacter:t.default.options.negativeSignCharacter.hyphen,noEventListeners:t.default.options.noEventListeners.addEvents,onInvalidPaste:t.default.options.onInvalidPaste.error,outputFormat:t.default.options.outputFormat.none,overrideMinMaxLimits:t.default.options.overrideMinMaxLimits.doNotOverride,positiveSignCharacter:t.default.options.positiveSignCharacter.plus,rawValueDivisor:t.default.options.rawValueDivisor.none,readOnly:t.default.options.readOnly.readWrite,roundingMethod:t.default.options.roundingMethod.halfUpSymmetric,saveValueToSessionStorage:t.default.options.saveValueToSessionStorage.doNotSave,selectNumberOnly:t.default.options.selectNumberOnly.selectNumbersOnly,selectOnFocus:t.default.options.selectOnFocus.select,serializeSpaces:t.default.options.serializeSpaces.plus,showOnlyNumbersOnFocus:t.default.options.showOnlyNumbersOnFocus.showAll,showPositiveSign:t.default.options.showPositiveSign.hide,showWarnings:t.default.options.showWarnings.show,styleRules:t.default.options.styleRules.none,suffixText:t.default.options.suffixText.none,symbolWhenUnfocused:t.default.options.symbolWhenUnfocused.none,unformatOnHover:t.default.options.unformatOnHover.unformat,unformatOnSubmit:t.default.options.unformatOnSubmit.keepCurrentValue,valuesToStrings:t.default.options.valuesToStrings.none,watchExternalChanges:t.default.options.watchExternalChanges.doNotWatch,wheelOn:t.default.options.wheelOn.focus,wheelStep:t.default.options.wheelStep.progressive},Object.freeze(t.default.defaultSettings),Object.defineProperty(t.default,"defaultSettings",{configurable:!1,writable:!1})},"./src/AutoNumericEnum.js":function(e,t,n){"use strict";n.r(t);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:";",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},"./src/AutoNumericEvents.js":function(e,t,n){"use strict";n.r(t);n=n("./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})},"./src/AutoNumericHelper.js":function(e,t,n){"use strict";n.r(t),n.d(t,"default",function(){return h});var i=n("./src/AutoNumericEnum.js");function r(e){return function(e){if(Array.isArray(e))return l(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||a(e)||function(){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(){return(o=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n,i=arguments[t];for(n in i)Object.prototype.hasOwnProperty.call(i,n)&&(e[n]=i[n])}return e}).apply(this,arguments)}function s(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],i=!0,a=!1,r=void 0;try{for(var o,s=e[Symbol.iterator]();!(i=(o=s.next()).done)&&(n.push(o.value),!t||n.length!==t);i=!0);}catch(e){a=!0,r=e}finally{try{i||null==s.return||s.return()}finally{if(a)throw r}}return n}(e,t)||a(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function a(e,t){if(e){if("string"==typeof e)return l(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(n):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?l(e,t):void 0}}function l(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}function u(e){return(u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function c(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}var h=function(){function a(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a)}var e,t,n;return e=a,n=[{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){e=String(e).toLowerCase();return"true"===e||"false"===e}},{key:"isObject",value:function(e){return"object"===u(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){e=this.arabicToLatinNumbers(e,!1,!0,!0);return this.isNumber(e)}},{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"===u(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){e=s(e.split("."),2)[1];return this.isUndefined(e)?0:e.length}},{key:"indexFirstNonZeroDecimalPlace",value:function(e){e=s(String(Math.abs(e)).split("."),2)[1];if(this.isUndefined(e))return 0;e=e.lastIndexOf("0");return-1===e?e=0:e+=2,e}},{key:"keyCodeNumber",value:function(e){return void 0===e.which?e.keyCode:e.which}},{key:"character",value:function(e){if("Unidentified"===e.key||void 0===e.key||this.isSeleniumBot()){var t=this.keyCodeNumber(e);if(t===i.default.keyCode.AndroidDefault)return i.default.keyName.AndroidDefault;var n=i.default.fromCharCodeKeyCode[t],t=a.isUndefinedOrNullOrEmpty(n)?String.fromCharCode(t):n}else{switch(e.key){case"Add":t=i.default.keyName.NumpadPlus;break;case"Apps":t=i.default.keyName.ContextMenu;break;case"Crsel":t=i.default.keyName.CrSel;break;case"Decimal":t=e.char?e.char:i.default.keyName.NumpadDot;break;case"Del":t="firefox"===(n=this.browser()).name&&n.version<=36||"ie"===n.name&&n.version<=9?i.default.keyName.Dot:i.default.keyName.Delete;break;case"Divide":t=i.default.keyName.NumpadSlash;break;case"Down":t=i.default.keyName.DownArrow;break;case"Esc":t=i.default.keyName.Esc;break;case"Exsel":t=i.default.keyName.ExSel;break;case"Left":t=i.default.keyName.LeftArrow;break;case"Meta":case"Super":t=i.default.keyName.OSLeft;break;case"Multiply":t=i.default.keyName.NumpadMultiply;break;case"Right":t=i.default.keyName.RightArrow;break;case"Spacebar":t=i.default.keyName.Space;break;case"Subtract":t=i.default.keyName.NumpadMinus;break;case"Up":t=i.default.keyName.UpArrow;break;default:t=e.key}}return t}},{key:"browser",value:function(){var e,t=navigator.userAgent,n=t.match(/(opera|chrome|safari|firefox|msie|trident(?=\/))\/?\s*(\d+)/i)||[];return/trident/i.test(n[1])?{name:"ie",version:(e=/\brv[ :]+(\d+)/g.exec(t)||[])[1]||""}:"Chrome"===n[1]&&null!==(e=t.match(/\b(OPR|Edge)\/(\d+)/))?{name:e[1].replace("OPR","opera"),version:e[2]}:(n=n[2]?[n[1],n[2]]:[navigator.appName,navigator.appVersion,"-?"],null!==(e=t.match(/version\/(\d+)/i))&&n.splice(1,1,e[1]),{name:n[0].toLowerCase(),version:n[1]})}},{key:"isSeleniumBot",value:function(){return!0===window.navigator.webdriver}},{key:"isNegative",value:function(e,t,n){t=1<arguments.length&&void 0!==t?t:"-",n=!(2<arguments.length&&void 0!==n)||n;return e===t||""!==e&&(a.isNumber(e)?e<0:n?this.contains(e,t):this.isNegativeStrict(e,t))}},{key:"isNegativeStrict",value:function(e,t){t=1<arguments.length&&void 0!==t?t:"-";return e.charAt(0)===t}},{key:"isNegativeWithBrackets",value:function(e,t,n){return e.charAt(0)===t&&this.contains(e,n)}},{key:"isZeroOrHasNoValue",value:function(e){return!/[1-9]/g.test(e)}},{key:"setRawNegativeSign",value:function(e){return this.isNegativeStrict(e,"-")?e:"-".concat(e)}},{key:"replaceCharAt",value:function(e,t,n){return"".concat(e.substr(0,t)).concat(n).concat(e.substr(t+n.length))}},{key:"clampToRangeLimits",value:function(e,t){return Math.max(t.minimumValue,Math.min(t.maximumValue,e))}},{key:"countNumberCharactersOnTheCaretLeftSide",value:function(e,t,n){for(var i=new RegExp("[0-9".concat(n,"-]")),a=0,r=0;r<t;r++)i.test(e[r])&&a++;return a}},{key:"findCaretPositionInFormattedNumber",value:function(e,t,n,i){for(var a=n.length,r=e.length,o=0,s=0;s<a&&o<r&&o<t;s++)(e[o]===n[s]||"."===e[o]&&n[s]===i)&&o++;return s}},{key:"countCharInText",value:function(e,t){for(var n=0,i=0;i<t.length;i++)t[i]===e&&n++;return n}},{key:"convertCharacterCountToIndexPosition",value:function(e){return Math.max(e,e-1)}},{key:"getElementSelection",value:function(e){var t,n,i={};try{t=this.isUndefined(e.selectionStart)}catch(e){t=!1}try{t?(n=window.getSelection().getRangeAt(0),i.start=n.startOffset,i.end=n.endOffset):(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(e,t,n){var i=2<arguments.length&&void 0!==n?n:null;this.isUndefinedOrNullOrEmpty(i)&&(i=t),this.isInputElement(e)?e.setSelectionRange(t,i):a.isNull(e.firstChild)||((n=document.createRange()).setStart(e.firstChild,t),n.setEnd(e.firstChild,i),(i=window.getSelection()).removeAllRanges(),i.addRange(n))}},{key:"throwError",value:function(e){throw new Error(e)}},{key:"warning",value:function(e,t){1<arguments.length&&void 0!==t&&!t||console.warn("Warning: ".concat(e))}},{key:"isWheelUpEvent",value:function(e){return e.deltaY||this.throwError("The event passed as a parameter is not a valid wheel event, '".concat(e.type,"' given.")),e.deltaY<0}},{key:"isWheelDownEvent",value:function(e){return e.deltaY||this.throwError("The event passed as a parameter is not a valid wheel event, '".concat(e.type,"' given.")),0<e.deltaY}},{key:"forceDecimalPlaces",value:function(e,t){var n=s(String(e).split("."),2),i=n[0],n=n[1];return n?"".concat(i,".").concat(n.substr(0,t)):e}},{key:"roundToNearest",value:function(e,t){t=1<arguments.length&&void 0!==t?t: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,n){e=Number(this.forceDecimalPlaces(e,n));var i=Math.abs(e);if(0<=i&&i<1){var a=Math.pow(10,-n);if(0===e)return t?a:-a;i=n,n=this.indexFirstNonZeroDecimalPlace(e),a=i-1<=n?a:Math.pow(10,-(n+1)),n=t?e+a:e-a;return this.roundToNearest(n,a)}e=parseInt(e,10);a=Math.abs(e).toString().length;switch(a){case 1:r=0;break;case 2:case 3:r=1;break;case 4:case 5:r=2;break;default:r=a-3}var r=Math.pow(10,r),e=t?e+r:e-r;return e<=10&&-10<=e?e:this.roundToNearest(e,r)}},{key:"addAndRoundToNearestAuto",value:function(e,t){return this.modifyAndRoundToNearestAuto(e,!0,t)}},{key:"subtractAndRoundToNearestAuto",value:function(e,t){return this.modifyAndRoundToNearestAuto(e,!1,t)}},{key:"arabicToLatinNumbers",value:function(e,t,n,i){var a=!(1<arguments.length&&void 0!==t)||t,t=2<arguments.length&&void 0!==n&&n,n=3<arguments.length&&void 0!==i&&i;if(this.isNull(e))return e;i=e.toString();if(""===i)return e;if(null===i.match(/[٠١٢٣٤٥٦٧٨٩۴۵۶]/g))return a&&(i=Number(i)),i;t&&(i=i.replace(/٫/,".")),n&&(i=i.replace(/٬/g,"")),i=i.replace(/[٠١٢٣٤٥٦٧٨٩]/g,function(e){return e.charCodeAt(0)-1632}).replace(/[۰۱۲۳۴۵۶۷۸۹]/g,function(e){return e.charCodeAt(0)-1776});n=Number(i);return isNaN(n)?n:(a&&(i=n),i)}},{key:"triggerEvent",value:function(e,t,n,i,a){var r,t=1<arguments.length&&void 0!==t?t:document,n=2<arguments.length&&void 0!==n?n:null,i=!(3<arguments.length&&void 0!==i)||i,a=!(4<arguments.length&&void 0!==a)||a;window.CustomEvent?r=new CustomEvent(e,{detail:n,bubbles:i,cancelable:a}):(r=document.createEvent("CustomEvent")).initCustomEvent(e,i,a,{detail:n}),t.dispatchEvent(r)}},{key:"parseStr",value:function(e){var t,n,i,a,r={};if(0===e&&1/e<0&&(e="-0"),e=e.toString(),this.isNegativeStrict(e,"-")?(e=e.slice(1),r.s=-1):r.s=1,-1<(t=e.indexOf("."))&&(e=e.replace(".","")),t<0&&(t=e.length),(n=-1===e.search(/[1-9]/i)?e.length:e.search(/[1-9]/i))===(i=e.length))r.e=0,r.c=[0];else{for(a=i-1;"0"===e.charAt(a);--a)--i;for(--i,r.e=t-n-1,r.c=[],t=0;n<=i;n+=1)r.c[t]=+e.charAt(n),t+=1}return r}},{key:"testMinMax",value:function(e,t){var n=t.c,i=e.c,a=t.s,r=e.s,o=t.e,t=e.e;if(!n[0]||!i[0]){e=n[0]?a:i[0]?-r:0;return e}if(a!==r)return a;var s=a<0;if(o!==t)return t<o^s?1:-1;for(a=-1,r=(o=n.length)<(t=i.length)?o:t,a+=1;a<r;a+=1)if(n[a]!==i[a])return n[a]>i[a]^s?1:-1;return o===t?0:t<o^s?1:-1}},{key:"randomString",value:function(e){e=0<arguments.length&&void 0!==e?e:5;return Math.random().toString(36).substr(2,e)}},{key:"domElement",value:function(e){var t;return t=a.isString(e)?document.querySelector(e):e,t}},{key:"getElementValue",value:function(e){return"input"===e.tagName.toLowerCase()?e.value:this.text(e)}},{key:"setElementValue",value:function(e,t){t=1<arguments.length&&void 0!==t?t:null;"input"===e.tagName.toLowerCase()?e.value=t:e.textContent=t}},{key:"setInvalidState",value:function(e,t){t=1<arguments.length&&void 0!==t?t:"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 o({},e)}},{key:"camelize",value:function(e,t,n,i){t=1<arguments.length&&void 0!==t?t:"-",n=!(2<arguments.length&&void 0!==n)||n,i=!(3<arguments.length&&void 0!==i)||i;if(this.isNull(e))return null;n&&(e=e.replace(/^data-/,""));t=(t=e.split(t).map(function(e){return"".concat(e.charAt(0).toUpperCase()).concat(e.slice(1))})).join("");return i&&(t="".concat(t.charAt(0).toLowerCase()).concat(t.slice(1))),t}},{key:"text",value:function(e){var t=e.nodeType,e=t===Node.ELEMENT_NODE||t===Node.DOCUMENT_NODE||t===Node.DOCUMENT_FRAGMENT_NODE?e.textContent:t===Node.TEXT_NODE?e.nodeValue:"";return e}},{key:"setText",value:function(e,t){var n=e.nodeType;n!==Node.ELEMENT_NODE&&n!==Node.DOCUMENT_NODE&&n!==Node.DOCUMENT_FRAGMENT_NODE||(e.textContent=t)}},{key:"filterOut",value:function(e,t){var n=this;return e.filter(function(e){return!n.isInArray(e,t)})}},{key:"trimPaddedZerosFromDecimalPlaces",value:function(e){if(""===(e=String(e)))return"";var t=s(e.split("."),2),e=t[0],t=t[1];if(this.isUndefinedOrNullOrEmpty(t))return e;t=t.replace(/0+$/g,""),t=""===t?e:"".concat(e,".").concat(t);return t}},{key:"getHoveredElement",value:function(){var e=r(document.querySelectorAll(":hover"));return e[e.length-1]}},{key:"arrayTrim",value:function(e,t){var n=e.length;return 0===n||n<t?e:t<0?[]:(e.length=parseInt(t,10),e)}},{key:"arrayUnique",value:function(){var e;return r(new Set((e=[]).concat.apply(e,arguments)))}},{key:"mergeMaps",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return new Map(t.reduce(function(e,t){return e.concat(r(t))},[]))}},{key:"objectKeyLookup",value:function(e,t){var n=Object.entries(e).find(function(e){return e[1]===t}),e=null;return void 0!==n&&(e=n[0]),e}},{key:"insertAt",value:function(e,t,n){if(n>(e=String(e)).length)throw new Error("The given index is out of the string range.");if(1!==t.length)throw new Error("The given string `char` should be only one character long.");return""===e&&0===n?t:"".concat(e.slice(0,n)).concat(t).concat(e.slice(n))}},{key:"scientificToDecimal",value:function(e){var t=Number(e);if(isNaN(t))return NaN;if(e=String(e),!(this.contains(e,"e")||this.contains(e,"E")))return e;var n=s(e.split(/e/i),2),i=n[0],a=n[1],r=i<0;r&&(i=i.replace("-",""));t=+a<0;t&&(a=a.replace("-",""));var e=s(i.split(/\./),2),n=e[0],e=e[1],o=t?(o=n.length>a?this.insertAt(n,".",n.length-a):"0.".concat("0".repeat(a-n.length)).concat(n),"".concat(o).concat(e||"")):e?(i="".concat(n).concat(e),a<e.length?this.insertAt(i,".",+a+n.length):"".concat(i).concat("0".repeat(a-e.length))):(i=i.replace(".",""),"".concat(i).concat("0".repeat(Number(a))));return r&&(o="-".concat(o)),o}}],(t=null)&&c(e.prototype,t),n&&c(e,n),a}()},"./src/AutoNumericOptions.js":function(e,t,n){"use strict";n.r(t);var i,t=n("./src/AutoNumeric.js"),a=n("./src/AutoNumericHelper.js");t.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:"¤",austral:"₳",australCentavo:"¢",baht:"฿",cedi:"₵",cent:"¢",colon:"₡",cruzeiro:"₢",dollar:"$",dong:"₫",drachma:"₯",dram:"​֏",european:"₠",euro:"€",florin:"ƒ",franc:"₣",guarani:"₲",hryvnia:"₴",kip:"₭",att:"ອັດ",lepton:"Λ.",lira:"₺",liraOld:"₤",lari:"₾",mark:"ℳ",mill:"₥",naira:"₦",peseta:"₧",peso:"₱",pfennig:"₰",pound:"£",real:"R$",riel:"៛",ruble:"₽",rupee:"₹",rupeeOld:"₨",shekel:"₪",shekelAlt:"ש״ח‎‎",taka:"৳",tenge:"₸",togrog:"₮",won:"₩",yen:"¥"},currencySymbolPlacement:{prefix:"p",suffix:"s"},decimalCharacter:{comma:",",dot:".",middleDot:"·",arabicDecimalSeparator:"٫",decimalSeparatorKeySymbol:"⎖"},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:" ",narrowNoBreakSpace:" ",noBreakSpace:" ",noSeparator:"",apostrophe:"'",arabicThousandsSeparator:"٬",dotAbove:"˙",privateUseTwo:"’"},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:"〈,〉",japaneseQuotationMarks:"｢,｣",halfBrackets:"⸤,⸥",whiteSquareBrackets:"⟦,⟧",quotationMarks:"‹,›",guillemets:"«,»",none:null},negativePositiveSignPlacement:{prefix:"p",suffix:"s",left:"l",right:"r",none:null},negativeSignCharacter:{hyphen:"-",minus:"−",heavyMinus:"➖",fullWidthHyphen:"－",circledMinus:"⊖",squaredMinus:"⊟",triangleMinus:"⨺",plusMinus:"±",minusPlus:"∓",dotMinus:"∸",minusTilde:"≂",not:"¬"},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:"＋",heavyPlus:"➕",doublePlus:"⧺",triplePlus:"⧻",circledPlus:"⊕",squaredPlus:"⊞",trianglePlus:"⨹",plusMinus:"±",minusPlus:"∓",dotPlus:"∔",altHebrewPlus:"﬩",normalSpace:" ",thinSpace:" ",narrowNoBreakSpace:" ",noBreakSpace:" "},rawValueDivisor:{none:null,percentage:100,permille:1e3,basisPoint:1e4},readOnly:{readOnly:!0,readWrite:!1},roundingMethod:{halfUpSymmetric:"S",halfUpAsymmetric:"A",halfDownSymmetric:"s",halfDownAsymmetric:"a",halfEvenBankersRounding:"B",upRoundAwayFromZero:"U",downRoundTowardZero:"D",toCeilingTowardPositiveInfinity:"C",toFloorTowardNegativeInfinity:"F",toNearest05:"N05",toNearest05Alt:"CHF",upToNext05:"U05",downToNext05:"D05"},saveValueToSessionStorage:{save:!0,doNotSave:!1},selectNumberOnly:{selectNumbersOnly:!0,selectAll:!1},selectOnFocus:{select:!0,doNotSelect:!1},serializeSpaces:{plus:"+",percent:"%20"},showOnlyNumbersOnFocus:{onlyNumbers:!0,showAll:!1},showPositiveSign:{show:!0,hide:!1},showWarnings:{show:!0,hide:!1},styleRules:{none:null,positiveNegative:{positive:"autoNumeric-positive",negative:"autoNumeric-negative"},range0To100With4Steps:{ranges:[{min:0,max:25,class:"autoNumeric-red"},{min:25,max:50,class:"autoNumeric-orange"},{min:50,max:75,class:"autoNumeric-yellow"},{min:75,max:100,class:"autoNumeric-green"}]},evenOdd:{userDefined:[{callback:function(e){return e%2==0},classes:["autoNumeric-even","autoNumeric-odd"]}]},rangeSmallAndZero:{userDefined:[{callback:function(e){return-1<=e&&e<0?0:0===Number(e)?1:0<e&&e<=1?2:null},classes:["autoNumeric-small-negative","autoNumeric-zero","autoNumeric-small-positive"]}]}},suffixText:{none:"",percentage:"%",permille:"‰",basisPoint:"‱"},symbolWhenUnfocused:{none:null,percentage:"%",permille:"‰",basisPoint:"‱"},unformatOnHover:{unformat:!0,doNotUnformat:!1},unformatOnSubmit:{unformat:!0,keepCurrentValue:!1},valuesToStrings:{none:null,zeroDash:{0:"-"},oneAroundZero:{"-1":"Min",1:"Max"}},watchExternalChanges:{watch:!0,doNotWatch:!1},wheelOn:{focus:"focus",hover:"hover"},wheelStep:{progressive:"progressive"}},i=t.default.options,Object.getOwnPropertyNames(i).forEach(function(e){"valuesToStrings"===e?Object.getOwnPropertyNames(i.valuesToStrings).forEach(function(e){a.default.isIE11()||null===i.valuesToStrings[e]||Object.freeze(i.valuesToStrings[e])}):"styleRules"!==e&&(a.default.isIE11()||null===i[e]||Object.freeze(i[e]))}),Object.freeze(i),Object.defineProperty(t.default,"options",{configurable:!1,writable:!1})},"./src/AutoNumericPredefinedOptions.js":function(e,t,n){"use strict";n.r(t);var i=n("./src/AutoNumeric.js"),a=n("./src/AutoNumericHelper.js"),r={digitGroupSeparator:i.default.options.digitGroupSeparator.dot,decimalCharacter:i.default.options.decimalCharacter.comma,decimalCharacterAlternative:i.default.options.decimalCharacterAlternative.dot,currencySymbol:" €",currencySymbolPlacement:i.default.options.currencySymbolPlacement.suffix,negativePositiveSignPlacement:i.default.options.negativePositiveSignPlacement.prefix},o={digitGroupSeparator:i.default.options.digitGroupSeparator.comma,decimalCharacter:i.default.options.decimalCharacter.dot,currencySymbol:i.default.options.currencySymbol.dollar,currencySymbolPlacement:i.default.options.currencySymbolPlacement.prefix,negativePositiveSignPlacement:i.default.options.negativePositiveSignPlacement.right},s={digitGroupSeparator:i.default.options.digitGroupSeparator.comma,decimalCharacter:i.default.options.decimalCharacter.dot,currencySymbol:i.default.options.currencySymbol.yen,currencySymbolPlacement:i.default.options.currencySymbolPlacement.prefix,negativePositiveSignPlacement:i.default.options.negativePositiveSignPlacement.right};a.default.cloneObject(r).formulaMode=i.default.options.formulaMode.enabled;var l=a.default.cloneObject(r);l.minimumValue=0;var u=a.default.cloneObject(r);u.maximumValue=0,u.negativePositiveSignPlacement=i.default.options.negativePositiveSignPlacement.prefix;var c=a.default.cloneObject(r);c.digitGroupSeparator=i.default.options.digitGroupSeparator.normalSpace;var h=a.default.cloneObject(c);h.minimumValue=0;var d=a.default.cloneObject(c);d.maximumValue=0,d.negativePositiveSignPlacement=i.default.options.negativePositiveSignPlacement.prefix;var m=a.default.cloneObject(r);m.currencySymbol=i.default.options.currencySymbol.none,m.suffixText=" ".concat(i.default.options.suffixText.percentage),m.wheelStep=1e-4,m.rawValueDivisor=i.default.options.rawValueDivisor.percentage;var f=a.default.cloneObject(m);f.minimumValue=0;var g=a.default.cloneObject(m);g.maximumValue=0,g.negativePositiveSignPlacement=i.default.options.negativePositiveSignPlacement.prefix;var p=a.default.cloneObject(m);p.decimalPlaces=3;var v=a.default.cloneObject(f);v.decimalPlaces=3;var y=a.default.cloneObject(g);y.decimalPlaces=3,a.default.cloneObject(o).formulaMode=i.default.options.formulaMode.enabled;var S=a.default.cloneObject(o);S.minimumValue=0;var b=a.default.cloneObject(o);b.maximumValue=0,b.negativePositiveSignPlacement=i.default.options.negativePositiveSignPlacement.prefix;var w=a.default.cloneObject(b);w.negativeBracketsTypeOnBlur=i.default.options.negativeBracketsTypeOnBlur.parentheses;var P=a.default.cloneObject(o);P.currencySymbol=i.default.options.currencySymbol.none,P.suffixText=i.default.options.suffixText.percentage,P.wheelStep=1e-4,P.rawValueDivisor=i.default.options.rawValueDivisor.percentage;var E=a.default.cloneObject(P);E.minimumValue=0;var O=a.default.cloneObject(P);O.maximumValue=0,O.negativePositiveSignPlacement=i.default.options.negativePositiveSignPlacement.prefix;var k=a.default.cloneObject(P);k.decimalPlaces=3;t=a.default.cloneObject(E);t.decimalPlaces=3;n=a.default.cloneObject(O);n.decimalPlaces=3;a=a.default.cloneObject(r);a.currencySymbol=i.default.options.currencySymbol.lira,i.default.predefinedOptions={euro:r,euroPos:l,euroNeg:u,euroSpace:c,euroSpacePos:h,euroSpaceNeg:d,percentageEU2dec:m,percentageEU2decPos:f,percentageEU2decNeg:g,percentageEU3dec:p,percentageEU3decPos:v,percentageEU3decNeg:y,dollar:o,dollarPos:S,dollarNeg:b,dollarNegBrackets:w,percentageUS2dec:P,percentageUS2decPos:E,percentageUS2decNeg:O,percentageUS3dec:k,percentageUS3decPos:t,percentageUS3decNeg:n,French:r,Spanish:r,NorthAmerican:o,British:{digitGroupSeparator:i.default.options.digitGroupSeparator.comma,decimalCharacter:i.default.options.decimalCharacter.dot,currencySymbol:i.default.options.currencySymbol.pound,currencySymbolPlacement:i.default.options.currencySymbolPlacement.prefix,negativePositiveSignPlacement:i.default.options.negativePositiveSignPlacement.right},Swiss:{digitGroupSeparator:i.default.options.digitGroupSeparator.apostrophe,decimalCharacter:i.default.options.decimalCharacter.dot,currencySymbol:" CHF",currencySymbolPlacement:i.default.options.currencySymbolPlacement.suffix,negativePositiveSignPlacement:i.default.options.negativePositiveSignPlacement.prefix},Japanese:s,Chinese:s,Brazilian:{digitGroupSeparator:i.default.options.digitGroupSeparator.dot,decimalCharacter:i.default.options.decimalCharacter.comma,currencySymbol:i.default.options.currencySymbol.real,currencySymbolPlacement:i.default.options.currencySymbolPlacement.prefix,negativePositiveSignPlacement:i.default.options.negativePositiveSignPlacement.right},Turkish:a,dotDecimalCharCommaSeparator:{digitGroupSeparator:i.default.options.digitGroupSeparator.comma,decimalCharacter:i.default.options.decimalCharacter.dot},commaDecimalCharDotSeparator:{digitGroupSeparator:i.default.options.digitGroupSeparator.dot,decimalCharacter:i.default.options.decimalCharacter.comma,decimalCharacterAlternative:i.default.options.decimalCharacterAlternative.dot},integer:{decimalPlaces:0},integerPos:{minimumValue:i.default.options.minimumValue.zero,decimalPlaces:0},integerNeg:{maximumValue:i.default.options.maximumValue.zero,decimalPlaces:0},float:{allowDecimalPadding:i.default.options.allowDecimalPadding.never},floatPos:{allowDecimalPadding:i.default.options.allowDecimalPadding.never,minimumValue:i.default.options.minimumValue.zero,maximumValue:i.default.options.maximumValue.tenTrillions},floatNeg:{allowDecimalPadding:i.default.options.allowDecimalPadding.never,minimumValue:i.default.options.minimumValue.tenTrillions,maximumValue:i.default.options.maximumValue.zero},numeric:{digitGroupSeparator:i.default.options.digitGroupSeparator.noSeparator,decimalCharacter:i.default.options.decimalCharacter.dot,currencySymbol:i.default.options.currencySymbol.none},numericPos:{digitGroupSeparator:i.default.options.digitGroupSeparator.noSeparator,decimalCharacter:i.default.options.decimalCharacter.dot,currencySymbol:i.default.options.currencySymbol.none,minimumValue:i.default.options.minimumValue.zero,maximumValue:i.default.options.maximumValue.tenTrillions},numericNeg:{digitGroupSeparator:i.default.options.digitGroupSeparator.noSeparator,decimalCharacter:i.default.options.decimalCharacter.dot,currencySymbol:i.default.options.currencySymbol.none,minimumValue:i.default.options.minimumValue.tenTrillions,maximumValue:i.default.options.maximumValue.zero}},Object.getOwnPropertyNames(i.default.predefinedOptions).forEach(function(e){Object.freeze(i.default.predefinedOptions[e])}),Object.freeze(i.default.predefinedOptions),Object.defineProperty(i.default,"predefinedOptions",{configurable:!1,writable:!1})},"./src/main.js":function(e,t,n){"use strict";n.r(t);var i=n("./src/AutoNumeric.js");n("./src/AutoNumericEvents.js"),n("./src/AutoNumericOptions.js"),n("./src/AutoNumericDefaultSettings.js"),n("./src/AutoNumericPredefinedOptions.js");t.default=i.default},"./src/maths/ASTNode.js":function(e,t,n){"use strict";function i(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}n.r(t),n.d(t,"default",function(){return a});var a=function(){function a(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a)}var e,t,n;return e=a,n=[{key:"createNode",value:function(e,t,n){var i=new a;return i.type=e,i.left=t,i.right=n,i}},{key:"createUnaryNode",value:function(e){var t=new a;return t.type="unaryMinus",t.left=e,t.right=null,t}},{key:"createLeaf",value:function(e){var t=new a;return t.type="number",t.value=e,t}}],(t=null)&&i(e.prototype,t),n&&i(e,n),a}()},"./src/maths/Evaluator.js":function(e,t,n){"use strict";function a(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}n.r(t),n.d(t,"default",function(){return i});var i=function(){function t(e){if(!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),null===e)throw new Error("Invalid AST")}var e,n,i;return e=t,(n=[{key:"evaluate",value:function(e){if(null==e)throw new Error("Invalid AST sub-tree");if("number"===e.type)return e.value;if("unaryMinus"===e.type)return-this.evaluate(e.left);var t=this.evaluate(e.left),n=this.evaluate(e.right);switch(e.type){case"op_+":return Number(t)+Number(n);case"op_-":return t-n;case"op_*":return t*n;case"op_/":return t/n;default:throw new Error("Invalid operator '".concat(e.type,"'"))}}}])&&a(e.prototype,n),i&&a(e,i),t}()},"./src/maths/Lexer.js":function(e,t,n){"use strict";n.r(t),n.d(t,"default",function(){return i});var a=n("./src/AutoNumericHelper.js"),r=n("./src/maths/Token.js");function o(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}var i=function(){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),this.text=e,this.textLength=e.length,this.index=0,this.token=new r.default("Error",0,0)}var e,n,i;return e=t,(n=[{key:"_skipSpaces",value:function(){for(;" "===this.text[this.index]&&this.index<=this.textLength;)this.index++}},{key:"getIndex",value:function(){return this.index}},{key:"getNextToken",value:function(e){e=0<arguments.length&&void 0!==e?e:".";if(this._skipSpaces(),this.textLength===this.index)return this.token.type="EOT",this.token;if(a.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&&a.default.isDigit(this.text[this.index]);)this.index++;for(this.text[this.index]===e&&this.index++;this.index<=this.textLength&&a.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,".")}}])&&o(e.prototype,n),i&&o(e,i),t}()},"./src/maths/Parser.js":function(e,t,n){"use strict";n.r(t),n.d(t,"default",function(){return i});var a=n("./src/maths/ASTNode.js"),r=n("./src/maths/Lexer.js");function o(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}var i=function(){function n(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:".";return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,n),this.text=e,this.decimalCharacter=t,this.lexer=new r.default(e),this.token=this.lexer.getNextToken(this.decimalCharacter),this._exp()}var e,t,i;return e=n,(t=[{key:"_exp",value:function(){var e=this._term(),t=this._moreExp();return a.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(),a.default.createNode("op_+",t,e);case"-":return this.token=this.lexer.getNextToken(this.decimalCharacter),e=this._term(),t=this._moreExp(),a.default.createNode("op_-",t,e)}return a.default.createLeaf(0)}},{key:"_term",value:function(){var e=this._factor(),t=this._moreTerms();return a.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(),a.default.createNode("op_*",t,e);case"/":return this.token=this.lexer.getNextToken(this.decimalCharacter),e=this._factor(),t=this._moreTerms(),a.default.createNode("op_/",t,e)}return a.default.createLeaf(1)}},{key:"_factor",value:function(){var e,t;switch(this.token.type){case"num":return t=this.token.value,this.token=this.lexer.getNextToken(this.decimalCharacter),a.default.createLeaf(t);case"-":return this.token=this.lexer.getNextToken(this.decimalCharacter),e=this._factor(),a.default.createUnaryNode(e);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)}}])&&o(e.prototype,t),i&&o(e,i),n}()},"./src/maths/Token.js":function(e,t,n){"use strict";n.r(t),n.d(t,"default",function(){return i});var i=function e(t,n,i){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.type=t,this.value=n,this.symbol=i}}},a.c=i,a.d=function(e,t,n){a.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},a.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},a.t=function(t,e){if(1&e&&(t=a(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var n=Object.create(null);if(a.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var i in t)a.d(n,i,function(e){return t[e]}.bind(null,i));return n},a.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return a.d(t,"a",t),t},a.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},a.p="",a(a.s="./src/main.js").default;function a(e){if(i[e])return i[e].exports;var t=i[e]={i:e,l:!1,exports:{}};return n[e].call(t.exports,t,t.exports,a),t.l=!0,t.exports}var n,i}),function(i){System.registerDynamic("npm:body-scroll-lock/lib/bodyScrollLock.js",[],!1,function(e,t,n){return i.call(t,t)})}(function(e){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var t,n=!1;"undefined"!=typeof window&&(window.addEventListener("testPassive",null,t={get passive(){n=!0}}),window.removeEventListener("testPassive",null,t));function a(t){return s.some(function(e){return!(!e.options.allowTouchMove||!e.options.allowTouchMove(t))})}function r(e){return e=e||window.event,!!a(e.target)||(1<e.touches.length||(e.preventDefault&&e.preventDefault(),!1))}function i(){void 0!==h&&(document.body.style.paddingRight=h,h=void 0),void 0!==c&&(document.body.style.overflow=c,c=void 0)}var o="undefined"!=typeof window&&window.navigator&&window.navigator.platform&&(/iP(ad|hone|od)/.test(window.navigator.platform)||"MacIntel"===window.navigator.platform&&1<window.navigator.maxTouchPoints),s=[],l=!1,u=-1,c=void 0,h=void 0;e.disableBodyScroll=function(i,e){var t;i?s.some(function(e){return e.targetElement===i})||(t={targetElement:i,options:e||{}},s=[].concat(function(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}(s),[t]),o?(i.ontouchstart=function(e){1===e.targetTouches.length&&(u=e.targetTouches[0].clientY)},i.ontouchmove=function(e){var t,n;1===e.targetTouches.length&&(n=i,e=(t=e).targetTouches[0].clientY-u,a(t.target)||(n&&0===n.scrollTop&&0<e||!!(n=n)&&n.scrollHeight-n.scrollTop<=n.clientHeight&&e<0?r(t):t.stopPropagation()))},l||(document.addEventListener("touchmove",r,n?{passive:!1}:void 0),l=!0)):(t=e,void 0===h&&(e=!!t&&!0===t.reserveScrollBarGap,t=window.innerWidth-document.documentElement.clientWidth,e&&0<t&&(h=document.body.style.paddingRight,document.body.style.paddingRight=t+"px")),void 0===c&&(c=document.body.style.overflow,document.body.style.overflow="hidden"))):console.error("disableBodyScroll unsuccessful - targetElement must be provided when calling disableBodyScroll on IOS devices.")},e.clearAllBodyScrollLocks=function(){o?(s.forEach(function(e){e.targetElement.ontouchstart=null,e.targetElement.ontouchmove=null}),l&&(document.removeEventListener("touchmove",r,n?{passive:!1}:void 0),l=!1),u=-1):i(),s=[]},e.enableBodyScroll=function(t){t?(s=s.filter(function(e){return e.targetElement!==t}),o?(t.ontouchstart=null,t.ontouchmove=null,l&&0===s.length&&(document.removeEventListener("touchmove",r,n?{passive:!1}:void 0),l=!1)):s.length||i()):console.error("enableBodyScroll unsuccessful - targetElement must be provided when calling enableBodyScroll on IOS devices.")}}),function(i){"object"==typeof exports&&"undefined"!=typeof module?module.exports=i():System.registerDynamic("npm:dompurify/dist/purify.js",[],!1,function(e,t,n){return i.call(this)})}(function(){"use strict";var i,a=Object.hasOwnProperty,r=Object.setPrototypeOf,o=Object.isFrozen,ge=Object.freeze,e=Object.seal,s=Object.create,t="undefined"!=typeof Reflect&&Reflect,l=(l=t.apply)||function(e,t,n){return e.apply(t,n)},ge=ge||function(e){return e},e=e||function(e){return e},u=(u=t.construct)||function(e,t){return new(Function.prototype.bind.apply(e,[null].concat(function(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}(t))))},pe=n(Array.prototype.forEach),ve=n(Array.prototype.pop),ye=n(Array.prototype.push),Se=n(String.prototype.toLowerCase),be=n(String.prototype.match),we=n(String.prototype.replace),Pe=n(String.prototype.indexOf),Ee=n(String.prototype.trim),Oe=n(RegExp.prototype.test),ke=(i=TypeError,function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return u(i,t)});function n(a){return function(e){for(var t=arguments.length,n=Array(1<t?t-1:0),i=1;i<t;i++)n[i-1]=arguments[i];return l(a,e,n)}}function Ne(e,t){r&&r(e,null);for(var n=t.length;n--;){var i,a=t[n];"string"!=typeof a||(i=Se(a))!==a&&(o(t)||(t[n]=i),a=i),e[a]=!0}return e}function _e(e){var t=s(null),n=void 0;for(n in e)l(a,e,[n])&&(t[n]=e[n]);return t}var Te=ge(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","section","select","shadow","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),Ce=ge(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","audio","canvas","circle","clippath","defs","desc","ellipse","filter","font","g","glyph","glyphref","hkern","image","line","lineargradient","marker","mask","metadata","mpath","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","video","view","vkern"]),xe=ge(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),Fe=ge(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover"]),Ae=ge(["#text"]),Ve=ge(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","face","for","headers","height","hidden","high","href","hreflang","id","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","noshade","novalidate","nowrap","open","optimum","pattern","placeholder","playsinline","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","xmlns"]),Le=ge(["accent-height","accumulate","additive","alignment-baseline","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","targetx","targety","transform","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),Me=ge(["accent","accentunder","align","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lspace","lquote","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),De=ge(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),Ie=e(/\{\{[\s\S]*|[\s\S]*\}\}/gm),Re=e(/<%[\s\S]*|[\s\S]*%>/gm),Be=e(/^data-[\-\w.\u00B7-\uFFFF]/),je=e(/^aria-[\-\w]+$/),Ue=e(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),ze=e(/^(?:\w+script|data):/i),We=e(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),Ke="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};function Ge(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}var He=function(){return"undefined"==typeof window?null:window},Ze=function(e,t){if("object"!==(void 0===e?"undefined":Ke(e))||"function"!=typeof e.createPolicy)return null;var n=null,i="data-tt-policy-suffix";t.currentScript&&t.currentScript.hasAttribute(i)&&(n=t.currentScript.getAttribute(i));var a="dompurify"+(n?"#"+n:"");try{return e.createPolicy(a,{createHTML:function(e){return e}})}catch(e){return console.warn("TrustedTypes policy "+a+" could not be created."),null}};return function t(e){function u(e){return t(e)}var s=0<arguments.length&&void 0!==e?e:He();if(u.version="2.1.1",u.removed=[],!s||!s.document||9!==s.document.nodeType)return u.isSupported=!1,u;var l=s.document,r=s.document,c=s.DocumentFragment,n=s.HTMLTemplateElement,h=s.Node,i=s.NodeFilter,e=s.NamedNodeMap,a=void 0===e?s.NamedNodeMap||s.MozNamedAttrMap:e,o=s.Text,d=s.Comment,m=s.DOMParser,e=s.trustedTypes;"function"!=typeof n||(n=r.createElement("template")).content&&n.content.ownerDocument&&(r=n.content.ownerDocument);var f=Ze(e,l),g=f&&ae?f.createHTML(""):"",p=r.implementation,v=r.createNodeIterator,y=r.getElementsByTagName,S=r.createDocumentFragment,b=l.importNode,w={};try{w=_e(r).documentMode?r.documentMode:{}}catch(e){}var P={};u.isSupported=p&&void 0!==p.createHTMLDocument&&9!==w;function E(e){me&&me===e||(e&&"object"===(void 0===e?"undefined":Ke(e))||(e={}),e=_e(e),z="ALLOWED_TAGS"in e?Ne({},e.ALLOWED_TAGS):W,K="ALLOWED_ATTR"in e?Ne({},e.ALLOWED_ATTR):G,he="ADD_URI_SAFE_ATTR"in e?Ne(_e(de),e.ADD_URI_SAFE_ATTR):de,ue="ADD_DATA_URI_TAGS"in e?Ne(_e(ce),e.ADD_DATA_URI_TAGS):ce,H="FORBID_TAGS"in e?Ne({},e.FORBID_TAGS):{},Z="FORBID_ATTR"in e?Ne({},e.FORBID_ATTR):{},L="USE_PROFILES"in e&&e.USE_PROFILES,q=!1!==e.ALLOW_ARIA_ATTR,Y=!1!==e.ALLOW_DATA_ATTR,$=e.ALLOW_UNKNOWN_PROTOCOLS||!1,X=e.SAFE_FOR_TEMPLATES||!1,J=e.WHOLE_DOCUMENT||!1,te=e.RETURN_DOM||!1,ne=e.RETURN_DOM_FRAGMENT||!1,ie=e.RETURN_DOM_IMPORT||!1,ae=e.RETURN_TRUSTED_TYPE||!1,ee=e.FORCE_BODY||!1,re=!1!==e.SANITIZE_DOM,oe=!1!==e.KEEP_CONTENT,se=e.IN_PLACE||!1,U=e.ALLOWED_URI_REGEXP||U,X&&(Y=!1),ne&&(te=!0),L&&(z=Ne({},[].concat(Ge(Ae))),K=[],!0===L.html&&(Ne(z,Te),Ne(K,Ve)),!0===L.svg&&(Ne(z,Ce),Ne(K,Le),Ne(K,De)),!0===L.svgFilters&&(Ne(z,xe),Ne(K,Le),Ne(K,De)),!0===L.mathMl&&(Ne(z,Fe),Ne(K,Me),Ne(K,De))),e.ADD_TAGS&&(z===W&&(z=_e(z)),Ne(z,e.ADD_TAGS)),e.ADD_ATTR&&(K===G&&(K=_e(K)),Ne(K,e.ADD_ATTR)),e.ADD_URI_SAFE_ATTR&&Ne(he,e.ADD_URI_SAFE_ATTR),oe&&(z["#text"]=!0),J&&Ne(z,["html","head","body"]),z.table&&(Ne(z,["tbody"]),delete H.tbody),ge&&ge(e),me=e)}function O(t){ye(u.removed,{element:t});try{t.parentNode.removeChild(t)}catch(e){t.outerHTML=g}}function k(e,t){try{ye(u.removed,{attribute:t.getAttributeNode(e),from:t})}catch(e){ye(u.removed,{attribute:null,from:t})}t.removeAttribute(e)}function N(e){var t=void 0,n=void 0;ee?e="<remove></remove>"+e:n=(i=be(e,/^[\r\n\t ]+/))&&i[0];var i,a=f?f.createHTML(e):e;try{t=(new m).parseFromString(a,"text/html")}catch(e){}return t&&t.documentElement||((i=(t=p.createHTMLDocument("")).body).parentNode.removeChild(i.parentNode.firstElementChild),i.outerHTML=a),e&&n&&t.body.insertBefore(r.createTextNode(n),t.body.childNodes[0]||null),y.call(t,J?"html":"body")[0]}function _(e){return v.call(e.ownerDocument||e,e,i.SHOW_ELEMENT|i.SHOW_COMMENT|i.SHOW_TEXT,function(){return i.FILTER_ACCEPT},!1)}function T(e){return"object"===(void 0===h?"undefined":Ke(h))?e instanceof h:e&&"object"===(void 0===e?"undefined":Ke(e))&&"number"==typeof e.nodeType&&"string"==typeof e.nodeName}function C(e,t,n){P[e]&&pe(P[e],function(e){e.call(u,t,n,me)})}function x(e){var t;if(C("beforeSanitizeElements",e,null),!((n=e)instanceof o||n instanceof d||"string"==typeof n.nodeName&&"string"==typeof n.textContent&&"function"==typeof n.removeChild&&n.attributes instanceof a&&"function"==typeof n.removeAttribute&&"function"==typeof n.setAttribute&&"string"==typeof n.namespaceURI))return O(e),1;if(be(e.nodeName,/[\u0080-\uFFFF]/))return O(e),1;var n=Se(e.nodeName);if(C("uponSanitizeElement",e,{tagName:n,allowedTags:z}),("svg"===n||"math"===n)&&0!==e.querySelectorAll("p, br").length)return O(e),1;if(!T(e.firstElementChild)&&(!T(e.content)||!T(e.content.firstElementChild))&&Oe(/<[!/\w]/g,e.innerHTML)&&Oe(/<[!/\w]/g,e.textContent))return O(e),1;if(z[n]&&!H[n])return"noscript"!==n&&"noembed"!==n||!Oe(/<\/no(script|embed)/i,e.innerHTML)?(X&&3===e.nodeType&&(t=e.textContent,t=we(t,M," "),t=we(t,D," "),e.textContent!==t&&(ye(u.removed,{element:e.cloneNode()}),e.textContent=t)),C("afterSanitizeElements",e,null),0):(O(e),1);if(oe&&!le[n]&&"function"==typeof e.insertAdjacentHTML)try{var i=e.innerHTML;e.insertAdjacentHTML("AfterEnd",f?f.createHTML(i):i)}catch(e){}return O(e),1}function F(e,t,n){if(re&&("id"===t||"name"===t)&&(n in r||n in fe))return!1;if(!(Y&&Oe(I,t)||q&&Oe(R,t))){if(!K[t]||Z[t])return!1;if(!he[t]&&!Oe(U,we(n,j,""))&&("src"!==t&&"xlink:href"!==t&&"href"!==t||"script"===e||0!==Pe(n,"data:")||!ue[e])&&(!$||Oe(B,we(n,j,"")))&&n)return!1}return!0}function A(e){var t=void 0,n=void 0;C("beforeSanitizeAttributes",e,null);var i=e.attributes;if(i){for(var a={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:K},n=i.length;n--;){var r=(l=i[n]).name,o=l.namespaceURI,t=Ee(l.value),s=Se(r);if(a.attrName=s,a.attrValue=t,a.keepAttr=!0,a.forceKeepAttr=void 0,C("uponSanitizeAttribute",e,a),t=a.attrValue,!a.forceKeepAttr&&(k(r,e),a.keepAttr))if(Oe(/\/>/i,t))k(r,e);else{X&&(t=we(t,M," "),t=we(t,D," "));var l=e.nodeName.toLowerCase();if(F(l,s,t))try{o?e.setAttributeNS(o,r,t):e.setAttribute(r,t),ve(u.removed)}catch(e){}}}C("afterSanitizeAttributes",e,null)}}function V(e){var t,n=_(e);for(C("beforeSanitizeShadowDOM",e,null);t=n.nextNode();)C("uponSanitizeShadowNode",t,null),x(t)||(t.content instanceof c&&V(t.content),A(t));C("afterSanitizeShadowDOM",e,null)}var L,M=Ie,D=Re,I=Be,R=je,B=ze,j=We,U=Ue,z=null,W=Ne({},[].concat(Ge(Te),Ge(Ce),Ge(xe),Ge(Fe),Ge(Ae))),K=null,G=Ne({},[].concat(Ge(Ve),Ge(Le),Ge(Me),Ge(De))),H=null,Z=null,q=!0,Y=!0,$=!1,X=!1,J=!1,Q=!1,ee=!1,te=!1,ne=!1,ie=!1,ae=!1,re=!0,oe=!0,se=!1,le=Ne({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","plaintext","script","style","svg","template","thead","title","video","xmp"]),ue=null,ce=Ne({},["audio","video","img","source","image","track"]),he=null,de=Ne({},["alt","class","for","id","label","name","pattern","placeholder","summary","title","value","style","xmlns"]),me=null,fe=r.createElement("form");return u.sanitize=function(e,t){var n,i=void 0,a=void 0,r=void 0;if("string"!=typeof(e=e||"\x3c!--\x3e")&&!T(e)){if("function"!=typeof e.toString)throw ke("toString is not a function");if("string"!=typeof(e=e.toString()))throw ke("dirty is not a string, aborting")}if(!u.isSupported){if("object"===Ke(s.toStaticHTML)||"function"==typeof s.toStaticHTML){if("string"==typeof e)return s.toStaticHTML(e);if(T(e))return s.toStaticHTML(e.outerHTML)}return e}if(Q||E(t),u.removed=[],"string"==typeof e&&(se=!1),!se)if(e instanceof h)1===(t=(i=N("\x3c!----\x3e")).ownerDocument.importNode(e,!0)).nodeType&&"BODY"===t.nodeName||"HTML"===t.nodeName?i=t:i.appendChild(t);else{if(!te&&!X&&!J&&-1===e.indexOf("<"))return f&&ae?f.createHTML(e):e;if(!(i=N(e)))return te?null:g}i&&ee&&O(i.firstChild);for(var o=_(se?e:i);n=o.nextNode();)3===n.nodeType&&n===a||x(n)||(n.content instanceof c&&V(n.content),A(n),a=n);if(a=null,se)return e;if(te){if(ne)for(r=S.call(i.ownerDocument);i.firstChild;)r.appendChild(i.firstChild);else r=i;return ie&&(r=b.call(l,r,!0)),r}return e=J?i.outerHTML:i.innerHTML,X&&(e=we(e,M," "),e=we(e,D," ")),f&&ae?f.createHTML(e):e},u.setConfig=function(e){E(e),Q=!0},u.clearConfig=function(){me=null,Q=!1},u.isValidAttribute=function(e,t,n){return me||E({}),e=Se(e),t=Se(t),F(e,t,n)},u.addHook=function(e,t){"function"==typeof t&&(P[e]=P[e]||[],ye(P[e],t))},u.removeHook=function(e){P[e]&&ve(P[e])},u.removeHooks=function(e){P[e]&&(P[e]=[])},u.removeAllHooks=function(){P={}},u}()}),function(i){"object"==typeof exports&&"undefined"!=typeof module?i(exports):System.registerDynamic("npm:google-charts/dist/googleCharts.js",[],!1,function(e,t,n){return i.call(t,t)})}(function(e){"use strict";function i(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function t(e,t,n){return t&&i(e.prototype,t),n&&i(e,n),e}function a(e,t){if(e!==t)throw new TypeError("Cannot instantiate an arrow function")}function n(e,t){return e(t={exports:{}},t.exports),t.exports}function r(e){if("function"!=typeof e)throw TypeError(e+" is not a function!");return e}function f(i,a,e){if(r(i),void 0===a)return i;switch(e){case 1:return function(e){return i.call(a,e)};case 2:return function(e,t){return i.call(a,e,t)};case 3:return function(e,t,n){return i.call(a,e,t,n)}}return function(){return i.apply(a,arguments)}}function o(e){return y.call(e).slice(8,-1)}function l(e){return"Symbol(".concat(void 0===e?"":e,")_",(++w+P).toString(36))}function s(e){var t;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(e=function(e,t){try{return e[t]}catch(e){}}(t=Object(e),O))?e:k?o(t):"Object"==(e=o(t))&&"function"==typeof t.callee?"Arguments":e}function u(e){return"object"==typeof e?null!==e:"function"==typeof e}function m(e){if(!u(e))throw TypeError(e+" is not an object!");return e}function c(e){try{return!!e()}catch(e){return!0}}function h(e){return T?_.createElement(e):{}}function d(e,t){if(!u(e))return e;var n,i;if(t&&"function"==typeof(n=e.toString)&&!u(i=n.call(e)))return i;if("function"==typeof(n=e.valueOf)&&!u(i=n.call(e)))return i;if(!t&&"function"==typeof(n=e.toString)&&!u(i=n.call(e)))return i;throw TypeError("Can't convert object to primitive value")}function g(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}function p(e,t){return V.call(e,t)}var v=n(function(e){e=e.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=e)}),y={}.toString,S=n(function(e){e=e.exports={version:"2.6.1"};"number"==typeof __e&&(__e=e)}),b=n(function(e){var t="__core-js_shared__",n=v[t]||(v[t]={});(e.exports=function(e,t){return n[e]||(n[e]=void 0!==t?t:{})})("versions",[]).push({version:S.version,mode:"global",copyright:"© 2018 Denis Pushkarev (zloirock.ru)"})}),w=0,P=Math.random(),E=n(function(e){var t=b("wks"),n=v.Symbol,i="function"==typeof n;(e.exports=function(e){return t[e]||(t[e]=i&&n[e]||(i?n:l)("Symbol."+e))}).store=t}),O=E("toStringTag"),k="Arguments"==o(function(){return arguments}()),N=!c(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a}),_=v.document,T=u(_)&&u(_.createElement),C=!N&&!c(function(){return 7!=Object.defineProperty(h("div"),"a",{get:function(){return 7}}).a}),x=Object.defineProperty,F={f:N?Object.defineProperty:function(e,t,n){if(m(e),t=d(t,!0),m(n),C)try{return x(e,t,n)}catch(e){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(e[t]=n.value),e}},A=N?function(e,t,n){return F.f(e,t,g(1,n))}:function(e,t,n){return e[t]=n,e},V={}.hasOwnProperty,L=n(function(e){var r=l("src"),t="toString",n=Function[t],o=(""+n).split(t);S.inspectSource=function(e){return n.call(e)},(e.exports=function(e,t,n,i){var a="function"==typeof n;a&&(p(n,"name")||A(n,"name",t)),e[t]!==n&&(a&&(p(n,r)||A(n,r,e[t]?""+e[t]:o.join(String(t)))),e===v?e[t]=n:i?e[t]?e[t]=n:A(e,t,n):(delete e[t],A(e,t,n)))})(Function.prototype,t,function(){return"function"==typeof this&&this[r]||n.call(this)})}),M="prototype",D=function(e,t,n){var i,a,r,o=e&D.F,s=e&D.G,l=e&D.S,u=e&D.P,c=e&D.B,h=s?v:l?v[t]||(v[t]={}):(v[t]||{})[M],d=s?S:S[t]||(S[t]={}),m=d[M]||(d[M]={});for(i in s&&(n=t),n)a=((r=!o&&h&&void 0!==h[i])?h:n)[i],r=c&&r?f(a,v):u&&"function"==typeof a?f(Function.call,a):a,h&&L(h,i,a,e&D.U),d[i]!=a&&A(d,i,r),u&&m[i]!=a&&(m[i]=a)};v.core=S,D.F=1,D.G=2,D.S=4,D.P=8,D.B=16,D.W=32,D.U=64,D.R=128;function I(e){return isNaN(e=+e)?0:(0<e?H:G)(e)}function R(e){return 0<e?Z(I(e),9007199254740991):0}function B(){var e,t=+this;oe.hasOwnProperty(t)&&(e=oe[t],delete oe[t],e())}var j,U=D,z={},W=E("iterator"),K=Array.prototype,G=Math.ceil,H=Math.floor,Z=Math.min,q=E("iterator"),Y=S.getIteratorMethod=function(e){if(null!=e)return e[q]||e["@@iterator"]||z[s(e)]},$=n(function(e){var h={},d={},e=e.exports=function(e,t,n,i,a){var r,o,s,l,a=a?function(){return e}:Y(e),u=f(n,i,t?2:1),c=0;if("function"!=typeof a)throw TypeError(e+" is not iterable!");if(void 0===(i=a)||z.Array!==i&&K[W]!==i){for(s=a.call(e);!(o=s.next()).done;)if((l=function(t,e,n,i){try{return i?e(m(n)[0],n[1]):e(n)}catch(e){var a=t.return;throw void 0!==a&&m(a.call(t)),e}}(s,u,o.value,t))===h||l===d)return l}else for(r=R(e.length);c<r;c++)if((l=t?u(m(o=e[c])[0],o[1]):u(e[c]))===h||l===d)return l};e.BREAK=h,e.RETURN=d}),X=E("species"),J=v.document,Q=J&&J.documentElement,ee=v.process,te=v.setImmediate,ne=v.clearImmediate,ie=v.MessageChannel,ae=v.Dispatch,re=0,oe={},se="onreadystatechange",le=function(e){B.call(e.data)};te&&ne||(te=function(e){for(var t=[],n=1;n<arguments.length;)t.push(arguments[n++]);return oe[++re]=function(){!function(e,t,n){var i=void 0===n;switch(t.length){case 0:return i?e():e.call(n);case 1:return i?e(t[0]):e.call(n,t[0]);case 2:return i?e(t[0],t[1]):e.call(n,t[0],t[1]);case 3:return i?e(t[0],t[1],t[2]):e.call(n,t[0],t[1],t[2]);case 4:return i?e(t[0],t[1],t[2],t[3]):e.call(n,t[0],t[1],t[2],t[3])}e.apply(n,t)}("function"==typeof e?e:Function(e),t)},j(re),re},ne=function(e){delete oe[e]},"process"==o(ee)?j=function(e){ee.nextTick(f(B,e,1))}:ae&&ae.now?j=function(e){ae.now(f(B,e,1))}:ie?(ft=(ut=new ie).port2,ut.port1.onmessage=le,j=f(ft.postMessage,ft,1)):v.addEventListener&&"function"==typeof postMessage&&!v.importScripts?(j=function(e){v.postMessage(e+"","*")},v.addEventListener("message",le,!1)):j=se in h("script")?function(e){Q.appendChild(h("script"))[se]=function(){Q.removeChild(this),B.call(e)}}:function(e){setTimeout(f(B,e,1),0)});var ue={set:te,clear:ne},ce=ue.set,he=v.MutationObserver||v.WebKitMutationObserver,de=v.process,me=v.Promise,fe="process"==o(de);function ge(e){var n,i;this.promise=new e(function(e,t){if(void 0!==n||void 0!==i)throw TypeError("Bad Promise constructor");n=e,i=t}),this.resolve=r(n),this.reject=r(i)}function pe(e){try{return{e:!1,v:e()}}catch(e){return{e:!0,v:e}}}var ve={f:function(e){return new ge(e)}},ye=v.navigator,Se=ye&&ye.userAgent||"",be=F.f,we=E("toStringTag"),Pe=function(e,t,n){e&&!p(e=n?e:e.prototype,we)&&be(e,we,{configurable:!0,value:t})},Ee=E("species"),Oe=E("iterator"),ke=!1;try{[7][Oe]().return=function(){ke=!0}}catch(e){}var Ne,_e,Te,Ce,xe,Fe,Ae=ue.set,Ve=(Ce=fe?function(){de.nextTick(Le)}:!he||v.navigator&&v.navigator.standalone?me&&me.resolve?(Te=me.resolve(void 0),function(){Te.then(Le)}):function(){ce.call(v,Le)}:(xe=!0,Fe=document.createTextNode(""),new he(Le).observe(Fe,{characterData:!0}),function(){Fe.data=xe=!xe}),function(e){e={fn:e,next:void 0};_e&&(_e.next=e),Ne||(Ne=e,Ce()),_e=e});function Le(){var e,t;for(fe&&(e=de.domain)&&e.exit();Ne;){t=Ne.fn,Ne=Ne.next;try{t()}catch(e){throw Ne?Ce():_e=void 0,e}}_e=void 0,e&&e.enter()}function Me(){}function De(e){var t;return!(!u(e)||"function"!=typeof(t=e.then))&&t}function Ie(c,t){var n;c._n||(c._n=!0,n=c._c,Ve(function(){for(var l=c._v,u=1==c._s,e=0;n.length>e;)!function(e){var t,n,i,a=u?e.ok:e.fail,r=e.resolve,o=e.reject,s=e.domain;try{a?(u||(2==c._h&&Je(c),c._h=1),!0===a?t=l:(s&&s.enter(),t=a(l),s&&(s.exit(),i=!0)),t===e.promise?o(Ke("Promise-chain cycle")):(n=De(t))?n.call(t,r,o):r(t)):o(l)}catch(e){s&&!i&&s.exit(),o(e)}}(n[e++]);c._c=[],c._n=!1,t&&!c._h&&$e(c)}))}function Re(e){var t=this;t._d||(t._d=!0,(t=t._w||t)._v=e,t._s=2,t._a||(t._a=t._c.slice()),Ie(t,!0))}var Be,je,Ue,ze,We="Promise",Ke=v.TypeError,Ge=v.process,J=Ge&&Ge.versions,He=J&&J.v8||"",Ze=v[We],qe="process"==s(Ge),Ye=je=ve.f,ie=!!function(){try{var e=Ze.resolve(1),t=(e.constructor={})[E("species")]=function(e){e(Me,Me)};return(qe||"function"==typeof PromiseRejectionEvent)&&e.then(Me)instanceof t&&0!==He.indexOf("6.6")&&-1===Se.indexOf("Chrome/66")}catch(e){}}(),$e=function(a){Ae.call(v,function(){var e,t,n=a._v,i=Xe(a);if(i&&(e=pe(function(){qe?Ge.emit("unhandledRejection",n,a):(t=v.onunhandledrejection)?t({promise:a,reason:n}):(t=v.console)&&t.error&&t.error("Unhandled promise rejection",n)}),a._h=qe||Xe(a)?2:1),a._a=void 0,i&&e.e)throw e.v})},Xe=function(e){return 1!==e._h&&0===(e._a||e._c).length},Je=function(t){Ae.call(v,function(){var e;qe?Ge.emit("rejectionHandled",t):(e=v.onrejectionhandled)&&e({promise:t,reason:t._v})})},Qe=function(e){var n,i=this;if(!i._d){i._d=!0,i=i._w||i;try{if(i===e)throw Ke("Promise can't be resolved itself");(n=De(e))?Ve(function(){var t={_w:i,_d:!1};try{n.call(e,f(Qe,t,1),f(Re,t,1))}catch(e){Re.call(t,e)}}):(i._v=e,i._s=1,Ie(i,!1))}catch(e){Re.call({_w:i,_d:!1},e)}}};ie||(Ze=function(e){!function(e,t,n,i){if(!(e instanceof t)||void 0!==i&&i in e)throw TypeError(n+": incorrect invocation!")}(this,Ze,We,"_h"),r(e),Be.call(this);try{e(f(Qe,this,1),f(Re,this,1))}catch(e){Re.call(this,e)}},(Be=function(){this._c=[],this._a=void 0,this._s=0,this._d=!1,this._v=void 0,this._h=0,this._n=!1}).prototype=function(e,t,n){for(var i in t)L(e,i,t[i],n);return e}(Ze.prototype,{then:function(e,t){var n,i,a,a=Ye((i=Ze,void 0===(n=m(n=this).constructor)||null==(a=m(n)[X])?i:r(a)));return a.ok="function"!=typeof e||e,a.fail="function"==typeof t&&t,a.domain=qe?Ge.domain:void 0,this._c.push(a),this._a&&this._a.push(a),this._s&&Ie(this,!1),a.promise},catch:function(e){return this.then(void 0,e)}}),Ue=function(){var e=new Be;this.promise=e,this.resolve=f(Qe,e,1),this.reject=f(Re,e,1)},ve.f=Ye=function(e){return e===Ze||e===ze?new Ue:je(e)}),U(U.G+U.W+U.F*!ie,{Promise:Ze}),Pe(Ze,We),function(e){e=v[e];N&&e&&!e[Ee]&&F.f(e,Ee,{configurable:!0,get:function(){return this}})}(We),ze=S[We],U(U.S+U.F*!ie,We,{reject:function(e){var t=Ye(this);return(0,t.reject)(e),t.promise}}),U(U.S+U.F*!ie,We,{resolve:function(e){return function(e,t){if(m(e),u(t)&&t.constructor===e)return t;e=ve.f(e);return(0,e.resolve)(t),e.promise}(this,e)}}),U(U.S+U.F*!(ie&&function(e,t){if(!t&&!ke)return!1;var n=!1;try{var i=[7],a=i[Oe]();a.next=function(){return{done:n=!0}},i[Oe]=function(){return a},e(i)}catch(e){}return n}(function(e){Ze.all(e).catch(Me)})),We,{all:function(e){var o=this,t=Ye(o),s=t.resolve,l=t.reject,n=pe(function(){var i=[],a=0,r=1;$(e,!1,function(e){var t=a++,n=!1;i.push(void 0),r++,o.resolve(e).then(function(e){n||(n=!0,i[t]=e,--r||s(i))},l)}),--r||s(i)});return n.e&&l(n.v),t.promise},race:function(e){var t=this,n=Ye(t),i=n.reject,a=pe(function(){$(e,!1,function(e){t.resolve(e).then(n.resolve,i)})});return a.e&&i(a.v),n.promise}});function et(e){var t=S.Symbol||(S.Symbol=v.Symbol||{});"_"==e.charAt(0)||e in t||nt(t,e,{value:tt.f(e)})}var tt={f:E},nt=F.f;et("asyncIterator");function it(e){return ct(function(e){if(null==e)throw TypeError("Can't call method on  "+e);return e}(e))}function at(e,t){var n,i=it(e),a=0,r=[];for(n in i)n!=pt&&p(i,n)&&r.push(n);for(;t.length>a;)p(i,n=t[a++])&&(~gt(r,n)||r.push(n));return r}function rt(){}function ot(e){var t=Wt[e]=Nt(Dt[Bt]);return t._k=e,t}function st(e,t){m(e);for(var n,i=function(e){var t=yt(e),n=St.f;if(n)for(var i,a=n(e),r=bt.f,o=0;a.length>o;)r.call(e,i=a[o++])&&t.push(i);return t}(t=it(t)),a=0,r=i.length;a<r;)Yt(e,n=i[a++],t[n]);return e}var lt,ut=n(function(e){function n(e){t(e,i,{value:{i:"O"+ ++a,w:{}}})}var i=l("meta"),t=F.f,a=0,r=Object.isExtensible||function(){return!0},o=!c(function(){return r(Object.preventExtensions({}))}),s=e.exports={KEY:i,NEED:!1,fastKey:function(e,t){if(!u(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!p(e,i)){if(!r(e))return"F";if(!t)return"E";n(e)}return e[i].i},getWeak:function(e,t){if(!p(e,i)){if(!r(e))return!0;if(!t)return!1;n(e)}return e[i].w},onFreeze:function(e){return o&&s.NEED&&r(e)&&!p(e,i)&&n(e),e}}}),ct=Object("z").propertyIsEnumerable(0)?Object:function(e){return"String"==o(e)?e.split(""):Object(e)},ht=Math.max,dt=Math.min,mt=b("keys"),ft=function(e){return mt[e]||(mt[e]=l(e))},gt=(lt=!1,function(e,t,n){var i,a=it(e),r=R(a.length),o=(e=r,(n=I(n=n))<0?ht(n+e,0):dt(n,e));if(lt&&t!=t){for(;o<r;)if((i=a[o++])!=i)return!0}else for(;o<r;o++)if((lt||o in a)&&a[o]===t)return lt||o||0;return!lt&&-1}),pt=ft("IE_PROTO"),vt="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(","),yt=Object.keys||function(e){return at(e,vt)},St={f:Object.getOwnPropertySymbols},bt={f:{}.propertyIsEnumerable},wt=Array.isArray||function(e){return"Array"==o(e)},Pt=N?Object.defineProperties:function(e,t){m(e);for(var n,i=yt(t),a=i.length,r=0;r<a;)F.f(e,n=i[r++],t[n]);return e},Et=ft("IE_PROTO"),Ot="prototype",kt=function(){var e=h("iframe"),t=vt.length;for(e.style.display="none",Q.appendChild(e),e.src="javascript:",(e=e.contentWindow.document).open(),e.write("<script>document.F=Object<\/script>"),e.close(),kt=e.F;t--;)delete kt[Ot][vt[t]];return kt()},Nt=Object.create||function(e,t){var n;return null!==e?(rt[Ot]=m(e),n=new rt,rt[Ot]=null,n[Et]=e):n=kt(),void 0===t?n:Pt(n,t)},_t=vt.concat("length","prototype"),le={f:Object.getOwnPropertyNames||function(e){return at(e,_t)}},Tt=le.f,Ct={}.toString,xt="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],te={f:function(e){return xt&&"[object Window]"==Ct.call(e)?function(e){try{return Tt(e)}catch(e){return xt.slice()}}(e):Tt(it(e))}},Ft=Object.getOwnPropertyDescriptor,ne={f:N?Ft:function(e,t){if(e=it(e),t=d(t,!0),C)try{return Ft(e,t)}catch(e){}if(p(e,t))return g(!bt.f.call(e,t),e[t])}},At=ut.KEY,Vt=ne.f,Lt=F.f,Mt=te.f,Dt=v.Symbol,It=v.JSON,Rt=It&&It.stringify,Bt="prototype",jt=E("_hidden"),ye=E("toPrimitive"),Ut={}.propertyIsEnumerable,zt=b("symbol-registry"),Wt=b("symbols"),Kt=b("op-symbols"),Gt=Object[Bt],ue="function"==typeof Dt,J=v.QObject,Ht=!J||!J[Bt]||!J[Bt].findChild,Zt=N&&c(function(){return 7!=Nt(Lt({},"a",{get:function(){return Lt(this,"a",{value:7}).a}})).a})?function(e,t,n){var i=Vt(Gt,t);i&&delete Gt[t],Lt(e,t,n),i&&e!==Gt&&Lt(Gt,t,i)}:Lt,qt=ue&&"symbol"==typeof Dt.iterator?function(e){return"symbol"==typeof e}:function(e){return e instanceof Dt},Yt=function(e,t,n){return e===Gt&&Yt(Kt,t,n),m(e),t=d(t,!0),m(n),p(Wt,t)?(n.enumerable?(p(e,jt)&&e[jt][t]&&(e[jt][t]=!1),n=Nt(n,{enumerable:g(0,!1)})):(p(e,jt)||Lt(e,jt,g(1,{})),e[jt][t]=!0),Zt(e,t,n)):Lt(e,t,n)},ie=function(e){var t=Ut.call(this,e=d(e,!0));return!(this===Gt&&p(Wt,e)&&!p(Kt,e))&&(!(t||!p(this,e)||!p(Wt,e)||p(this,jt)&&this[jt][e])||t)},ft=function(e,t){if(e=it(e),t=d(t,!0),e!==Gt||!p(Wt,t)||p(Kt,t)){var n=Vt(e,t);return!n||!p(Wt,t)||p(e,jt)&&e[jt][t]||(n.enumerable=!0),n}},ut=function(e){for(var t,n=Mt(it(e)),i=[],a=0;n.length>a;)p(Wt,t=n[a++])||t==jt||t==At||i.push(t);return i},J=function(e){for(var t,n=e===Gt,i=Mt(n?Kt:it(e)),a=[],r=0;i.length>r;)!p(Wt,t=i[r++])||n&&!p(Gt,t)||a.push(Wt[t]);return a};ue||(L((Dt=function(e){if(this instanceof Dt)throw TypeError("Symbol is not a constructor!");var t=l(0<arguments.length?e:void 0),n=function(e){this===Gt&&n.call(Kt,e),p(this,jt)&&p(this[jt],t)&&(this[jt][t]=!1),Zt(this,t,g(1,e))};return N&&Ht&&Zt(Gt,t,{configurable:!0,set:n}),ot(t)})[Bt],"toString",function(){return this._k}),ne.f=ft,F.f=Yt,le.f=te.f=ut,bt.f=ie,St.f=J,N&&L(Gt,"propertyIsEnumerable",ie,!0),tt.f=function(e){return ot(E(e))}),U(U.G+U.W+U.F*!ue,{Symbol:Dt});for(var $t="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),Xt=0;$t.length>Xt;)E($t[Xt++]);for(var Jt=yt(E.store),Qt=0;Jt.length>Qt;)et(Jt[Qt++]);U(U.S+U.F*!ue,"Symbol",{for:function(e){return p(zt,e+="")?zt[e]:zt[e]=Dt(e)},keyFor:function(e){if(!qt(e))throw TypeError(e+" is not a symbol!");for(var t in zt)if(zt[t]===e)return t},useSetter:function(){Ht=!0},useSimple:function(){Ht=!1}}),U(U.S+U.F*!ue,"Object",{create:function(e,t){return void 0===t?Nt(e):st(Nt(e),t)},defineProperty:Yt,defineProperties:st,getOwnPropertyDescriptor:ft,getOwnPropertyNames:ut,getOwnPropertySymbols:J}),It&&U(U.S+U.F*(!ue||c(function(){var e=Dt();return"[null]"!=Rt([e])||"{}"!=Rt({a:e})||"{}"!=Rt(Object(e))})),"JSON",{stringify:function(e){for(var t,n,i=[e],a=1;a<arguments.length;)i.push(arguments[a++]);if(n=t=i[1],(u(t)||void 0!==e)&&!qt(e))return wt(t)||(t=function(e,t){if("function"==typeof n&&(t=n.call(this,e,t)),!qt(t))return t}),i[1]=t,Rt.apply(It,i)}}),Dt[Bt][ye]||A(Dt[Bt],ye,Dt[Bt].valueOf),Pe(Dt,"Symbol"),Pe(Math,"Math",!0),Pe(v.JSON,"JSON",!0);var en,tn=Symbol("loadScript"),nn=Symbol("instance"),Pe=function(){function e(){if(!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this[nn])return this[nn];this[nn]=this}return t(e,[{key:nn,get:function(){return en},set:function(e){en=e}}]),t(e,[{key:"reset",value:function(){en=null}},{key:tn,value:function(){var i=this;return this.scriptPromise||(this.scriptPromise=new Promise(function(t){a(this,i);var e=document.getElementsByTagName("body")[0],n=document.createElement("script");n.type="text/javascript",n.onload=function(){var e=this;an.api=window.google,an.api.charts.load("current",{packages:["corechart","table"]}),an.api.charts.setOnLoadCallback(function(){a(this,e),t()}.bind(this))},n.src="https://www.gstatic.com/charts/loader.js",e.appendChild(n)}.bind(this))),this.scriptPromise}},{key:"load",value:function(t,n){var i=this;return this[tn]().then(function(){if(a(this,i),n){var e={},e=n instanceof Object?n:Array.isArray(n)?{packages:n}:{packages:[n]};this.api.charts.load("current",e),this.api.charts.setOnLoadCallback(t)}else{if("function"!=typeof t)throw"callback must be a function";t()}}.bind(this))}}]),e}(),an=new Pe;e.GoogleCharts=an,e.default=Pe,Object.defineProperty(e,"__esModule",{value:!0})}),function(a,s,u){"use strict";var r,o=["","webkit","Moz","MS","ms","o"],e=s.createElement("div"),n="function",l=Math.round,c=Math.abs,h=Date.now;function d(e,t,n){return setTimeout(v(e,n),t)}function i(e,t,n){return Array.isArray(e)&&(m(e,n[t],n),1)}function m(e,t,n){if(e)if(e.forEach)e.forEach(t,n);else if(e.length!==u)for(i=0;i<e.length;)t.call(n,e[i],i,e),i++;else for(var i in e)e.hasOwnProperty(i)&&t.call(n,e[i],i,e)}function t(n,e,t){var i="DEPRECATED METHOD: "+e+"\n"+t+" AT \n";return function(){var e=new Error("get-stack-trace"),t=e&&e.stack?e.stack.replace(/^[^\(]+?[\n$]/gm,"").replace(/^\s+at\s+/gm,"").replace(/^Object.<anonymous>\s*\(/gm,"{anonymous}()@"):"Unknown Stack Trace",e=a.console&&(a.console.warn||a.console.log);return e&&e.call(a.console,i,t),n.apply(this,arguments)}}r="function"!=typeof Object.assign?function(e){if(e===u||null===e)throw new TypeError("Cannot convert undefined or null to object");for(var t=Object(e),n=1;n<arguments.length;n++){var i=arguments[n];if(i!==u&&null!==i)for(var a in i)i.hasOwnProperty(a)&&(t[a]=i[a])}return t}:Object.assign;var f=t(function(e,t,n){for(var i=Object.keys(t),a=0;a<i.length;)(!n||n&&e[i[a]]===u)&&(e[i[a]]=t[i[a]]),a++;return e},"extend","Use `assign`."),g=t(function(e,t){return f(e,t,!0)},"merge","Use `assign`.");function p(e,t,n){var i=t.prototype,t=e.prototype=Object.create(i);t.constructor=e,t._super=i,n&&r(t,n)}function v(e,t){return function(){return e.apply(t,arguments)}}function y(e,t){return typeof e==n?e.apply(t&&t[0]||u,t):e}function S(e,t){return e===u?t:e}function b(t,e,n){m(O(e),function(e){t.addEventListener(e,n,!1)})}function w(t,e,n){m(O(e),function(e){t.removeEventListener(e,n,!1)})}function P(e,t){for(;e;){if(e==t)return!0;e=e.parentNode}return!1}function E(e,t){return-1<e.indexOf(t)}function O(e){return e.trim().split(/\s+/g)}function k(e,t,n){if(e.indexOf&&!n)return e.indexOf(t);for(var i=0;i<e.length;){if(n&&e[i][n]==t||!n&&e[i]===t)return i;i++}return-1}function N(e){return Array.prototype.slice.call(e,0)}function _(e,n,t){for(var i=[],a=[],r=0;r<e.length;){var o=n?e[r][n]:e[r];k(a,o)<0&&i.push(e[r]),a[r]=o,r++}return t&&(i=n?i.sort(function(e,t){return e[n]>t[n]}):i.sort()),i}function T(e,t){for(var n,i=t[0].toUpperCase()+t.slice(1),a=0;a<o.length;){if((n=(n=o[a])?n+i:t)in e)return n;a++}return u}var C=1;function x(e){e=e.ownerDocument||e;return e.defaultView||e.parentWindow||a}var F="ontouchstart"in a,A=T(a,"PointerEvent")!==u,V=F&&/mobile|tablet|ip(ad|hone|od)|android/i.test(navigator.userAgent),L="touch",M="mouse",D=25,I=1,R=4,B=8,j=1,U=2,z=4,W=8,K=16,G=U|z,H=W|K,Z=G|H,q=["x","y"],Y=["clientX","clientY"];function $(t,e){var n=this;this.manager=t,this.callback=e,this.element=t.element,this.target=t.options.inputTarget,this.domHandler=function(e){y(t.options.enable,[t])&&n.handler(e)},this.init()}function X(e,t,n){var i=n.pointers.length,a=n.changedPointers.length,r=t&I&&i-a==0,a=t&(R|B)&&i-a==0;n.isFirst=!!r,n.isFinal=!!a,r&&(e.session={}),n.eventType=t,function(e,t){var n=e.session,i=t.pointers,a=i.length;n.firstInput||(n.firstInput=J(t));1<a&&!n.firstMultiple?n.firstMultiple=J(t):1===a&&(n.firstMultiple=!1);var r=n.firstInput,o=n.firstMultiple,s=(o||r).center,a=t.center=Q(i);t.timeStamp=h(),t.deltaTime=t.timeStamp-r.timeStamp,t.angle=ie(s,a),t.distance=ne(s,a),function(e,t){var n=t.center,i=e.offsetDelta||{},a=e.prevDelta||{},r=e.prevInput||{};t.eventType!==I&&r.eventType!==R||(a=e.prevDelta={x:r.deltaX||0,y:r.deltaY||0},i=e.offsetDelta={x:n.x,y:n.y});t.deltaX=a.x+(n.x-i.x),t.deltaY=a.y+(n.y-i.y)}(n,t),t.offsetDirection=te(t.deltaX,t.deltaY);a=ee(t.deltaTime,t.deltaX,t.deltaY);t.overallVelocityX=a.x,t.overallVelocityY=a.y,t.overallVelocity=c(a.x)>c(a.y)?a.x:a.y,t.scale=o?function(e,t){return ne(t[0],t[1],Y)/ne(e[0],e[1],Y)}(o.pointers,i):1,t.rotation=o?function(e,t){return ie(t[1],t[0],Y)+ie(e[1],e[0],Y)}(o.pointers,i):0,t.maxPointers=!n.prevInput||t.pointers.length>n.prevInput.maxPointers?t.pointers.length:n.prevInput.maxPointers,function(e,t){var n,i,a=e.lastInterval||t,r=t.timeStamp-a.timeStamp;{var o,s,l;t.eventType!=B&&(D<r||a.velocity===u)?(o=t.deltaX-a.deltaX,s=t.deltaY-a.deltaY,l=ee(r,o,s),n=l.x,i=l.y,l=c(l.x)>c(l.y)?l.x:l.y,s=te(o,s),e.lastInterval=t):(l=a.velocity,n=a.velocityX,i=a.velocityY,s=a.direction)}t.velocity=l,t.velocityX=n,t.velocityY=i,t.direction=s}(n,t);e=e.element;P(t.srcEvent.target,e)&&(e=t.srcEvent.target);t.target=e}(e,n),e.emit("hammer.input",n),e.recognize(n),e.session.prevInput=n}function J(e){for(var t=[],n=0;n<e.pointers.length;)t[n]={clientX:l(e.pointers[n].clientX),clientY:l(e.pointers[n].clientY)},n++;return{timeStamp:h(),pointers:t,center:Q(t),deltaX:e.deltaX,deltaY:e.deltaY}}function Q(e){var t=e.length;if(1===t)return{x:l(e[0].clientX),y:l(e[0].clientY)};for(var n=0,i=0,a=0;a<t;)n+=e[a].clientX,i+=e[a].clientY,a++;return{x:l(n/t),y:l(i/t)}}function ee(e,t,n){return{x:t/e||0,y:n/e||0}}function te(e,t){return e===t?j:c(e)>=c(t)?e<0?U:z:t<0?W:K}function ne(e,t,n){var i=t[(n=n||q)[0]]-e[n[0]],n=t[n[1]]-e[n[1]];return Math.sqrt(i*i+n*n)}function ie(e,t,n){var i=t[(n=n||q)[0]]-e[n[0]],n=t[n[1]]-e[n[1]];return 180*Math.atan2(n,i)/Math.PI}$.prototype={handler:function(){},init:function(){this.evEl&&b(this.element,this.evEl,this.domHandler),this.evTarget&&b(this.target,this.evTarget,this.domHandler),this.evWin&&b(x(this.element),this.evWin,this.domHandler)},destroy:function(){this.evEl&&w(this.element,this.evEl,this.domHandler),this.evTarget&&w(this.target,this.evTarget,this.domHandler),this.evWin&&w(x(this.element),this.evWin,this.domHandler)}};var ae={mousedown:I,mousemove:2,mouseup:R},re="mousedown",oe="mousemove mouseup";function se(){this.evEl=re,this.evWin=oe,this.pressed=!1,$.apply(this,arguments)}p(se,$,{handler:function(e){var t=ae[e.type];t&I&&0===e.button&&(this.pressed=!0),2&t&&1!==e.which&&(t=R),this.pressed&&(t&R&&(this.pressed=!1),this.callback(this.manager,t,{pointers:[e],changedPointers:[e],pointerType:M,srcEvent:e}))}});var le={pointerdown:I,pointermove:2,pointerup:R,pointercancel:B,pointerout:B},ue={2:L,3:"pen",4:M,5:"kinect"},ce="pointerdown",he="pointermove pointerup pointercancel";function de(){this.evEl=ce,this.evWin=he,$.apply(this,arguments),this.store=this.manager.session.pointerEvents=[]}a.MSPointerEvent&&!a.PointerEvent&&(ce="MSPointerDown",he="MSPointerMove MSPointerUp MSPointerCancel"),p(de,$,{handler:function(e){var t=this.store,n=!1,i=e.type.toLowerCase().replace("ms",""),a=le[i],r=ue[e.pointerType]||e.pointerType,o=r==L,i=k(t,e.pointerId,"pointerId");a&I&&(0===e.button||o)?i<0&&(t.push(e),i=t.length-1):a&(R|B)&&(n=!0),i<0||(t[i]=e,this.callback(this.manager,a,{pointers:t,changedPointers:[e],pointerType:r,srcEvent:e}),n&&t.splice(i,1))}});var me={touchstart:I,touchmove:2,touchend:R,touchcancel:B};function fe(){this.evTarget="touchstart",this.evWin="touchstart touchmove touchend touchcancel",this.started=!1,$.apply(this,arguments)}p(fe,$,{handler:function(e){var t,n=me[e.type];n===I&&(this.started=!0),this.started&&(t=function(e,t){var n=N(e.touches),e=N(e.changedTouches);t&(R|B)&&(n=_(n.concat(e),"identifier",!0));return[n,e]}.call(this,e,n),n&(R|B)&&t[0].length-t[1].length==0&&(this.started=!1),this.callback(this.manager,n,{pointers:t[0],changedPointers:t[1],pointerType:L,srcEvent:e}))}});var ge={touchstart:I,touchmove:2,touchend:R,touchcancel:B},pe="touchstart touchmove touchend touchcancel";function ve(){this.evTarget=pe,this.targetIds={},$.apply(this,arguments)}p(ve,$,{handler:function(e){var t=ge[e.type],n=function(e,t){var n=N(e.touches),i=this.targetIds;if(t&(2|I)&&1===n.length)return i[n[0].identifier]=!0,[n,n];var a,r,o=N(e.changedTouches),s=[],l=this.target;if(r=n.filter(function(e){return P(e.target,l)}),t===I)for(a=0;a<r.length;)i[r[a].identifier]=!0,a++;a=0;for(;a<o.length;)i[o[a].identifier]&&s.push(o[a]),t&(R|B)&&delete i[o[a].identifier],a++;return s.length?[_(r.concat(s),"identifier",!0),s]:void 0}.call(this,e,t);n&&this.callback(this.manager,t,{pointers:n[0],changedPointers:n[1],pointerType:L,srcEvent:e})}});var ye=2500;function Se(){$.apply(this,arguments);var e=v(this.handler,this);this.touch=new ve(this.manager,e),this.mouse=new se(this.manager,e),this.primaryTouch=null,this.lastTouches=[]}function be(e){var t,n,e=e.changedPointers[0];e.identifier===this.primaryTouch&&(t={x:e.clientX,y:e.clientY},this.lastTouches.push(t),n=this.lastTouches,setTimeout(function(){var e=n.indexOf(t);-1<e&&n.splice(e,1)},ye))}p(Se,$,{handler:function(e,t,n){var i=n.pointerType==L,a=n.pointerType==M;if(!(a&&n.sourceCapabilities&&n.sourceCapabilities.firesTouchEvents)){if(i)(function(e,t){e&I?(this.primaryTouch=t.changedPointers[0].identifier,be.call(this,t)):e&(R|B)&&be.call(this,t)}).call(this,t,n);else if(a&&function(e){for(var t=e.srcEvent.clientX,n=e.srcEvent.clientY,i=0;i<this.lastTouches.length;i++){var a=this.lastTouches[i],r=Math.abs(t-a.x),a=Math.abs(n-a.y);if(r<=25&&a<=25)return!0}return!1}.call(this,n))return;this.callback(e,t,n)}},destroy:function(){this.touch.destroy(),this.mouse.destroy()}});var we=T(e.style,"touchAction"),Pe=we!==u,Ee="compute",Oe="manipulation",ke="none",Ne="pan-x",_e="pan-y",Te=function(){if(!Pe)return!1;var t={},n=a.CSS&&a.CSS.supports;return["auto","manipulation","pan-y","pan-x","pan-x pan-y","none"].forEach(function(e){t[e]=!n||a.CSS.supports("touch-action",e)}),t}();function Ce(e,t){this.manager=e,this.set(t)}Ce.prototype={set:function(e){e==Ee&&(e=this.compute()),Pe&&this.manager.element.style&&Te[e]&&(this.manager.element.style[we]=e),this.actions=e.toLowerCase().trim()},update:function(){this.set(this.manager.options.touchAction)},compute:function(){var t=[];return m(this.manager.recognizers,function(e){y(e.options.enable,[e])&&(t=t.concat(e.getTouchAction()))}),function(e){if(E(e,ke))return ke;var t=E(e,Ne),n=E(e,_e);if(t&&n)return ke;if(t||n)return t?Ne:_e;if(E(e,Oe))return Oe;return"auto"}(t.join(" "))},preventDefaults:function(e){var t=e.srcEvent,n=e.offsetDirection;if(this.manager.session.prevented)t.preventDefault();else{var i=this.actions,a=E(i,ke)&&!Te[ke],r=E(i,_e)&&!Te[_e],o=E(i,Ne)&&!Te[Ne];if(a){var s=1===e.pointers.length,i=e.distance<2,e=e.deltaTime<250;if(s&&i&&e)return}if(!o||!r)return a||r&&n&G||o&&n&H?this.preventSrc(t):void 0}},preventSrc:function(e){this.manager.session.prevented=!0,e.preventDefault()}};var xe=1;function Fe(e){this.options=r({},this.defaults,e||{}),this.id=C++,this.manager=null,this.options.enable=S(this.options.enable,!0),this.state=xe,this.simultaneous={},this.requireFail=[]}function Ae(e){return 16&e?"cancel":8&e?"end":4&e?"move":2&e?"start":""}function Ve(e){return e==K?"down":e==W?"up":e==U?"left":e==z?"right":""}function Le(e,t){t=t.manager;return t?t.get(e):e}function Me(){Fe.apply(this,arguments)}function De(){Me.apply(this,arguments),this.pX=null,this.pY=null}function Ie(){Me.apply(this,arguments)}function Re(){Fe.apply(this,arguments),this._timer=null,this._input=null}function Be(){Me.apply(this,arguments)}function je(){Me.apply(this,arguments)}function Ue(){Fe.apply(this,arguments),this.pTime=!1,this.pCenter=!1,this._timer=null,this._input=null,this.count=0}function ze(e,t){return(t=t||{}).recognizers=S(t.recognizers,ze.defaults.preset),new We(e,t)}Fe.prototype={defaults:{},set:function(e){return r(this.options,e),this.manager&&this.manager.touchAction.update(),this},recognizeWith:function(e){if(i(e,"recognizeWith",this))return this;var t=this.simultaneous;return t[(e=Le(e,this)).id]||(t[e.id]=e).recognizeWith(this),this},dropRecognizeWith:function(e){return i(e,"dropRecognizeWith",this)||(e=Le(e,this),delete this.simultaneous[e.id]),this},requireFailure:function(e){if(i(e,"requireFailure",this))return this;var t=this.requireFail;return-1===k(t,e=Le(e,this))&&(t.push(e),e.requireFailure(this)),this},dropRequireFailure:function(e){if(i(e,"dropRequireFailure",this))return this;e=Le(e,this);e=k(this.requireFail,e);return-1<e&&this.requireFail.splice(e,1),this},hasRequireFailures:function(){return 0<this.requireFail.length},canRecognizeWith:function(e){return!!this.simultaneous[e.id]},emit:function(t){var n=this,e=this.state;function i(e){n.manager.emit(e,t)}e<8&&i(n.options.event+Ae(e)),i(n.options.event),t.additionalEvent&&i(t.additionalEvent),8<=e&&i(n.options.event+Ae(e))},tryEmit:function(e){if(this.canEmit())return this.emit(e);this.state=32},canEmit:function(){for(var e=0;e<this.requireFail.length;){if(!(this.requireFail[e].state&(32|xe)))return!1;e++}return!0},recognize:function(e){e=r({},e);if(!y(this.options.enable,[this,e]))return this.reset(),void(this.state=32);56&this.state&&(this.state=xe),this.state=this.process(e),30&this.state&&this.tryEmit(e)},process:function(e){},getTouchAction:function(){},reset:function(){}},p(Me,Fe,{defaults:{pointers:1},attrTest:function(e){var t=this.options.pointers;return 0===t||e.pointers.length===t},process:function(e){var t=this.state,n=e.eventType,i=6&t,e=this.attrTest(e);return i&&(n&B||!e)?16|t:i||e?n&R?8|t:2&t?4|t:2:32}}),p(De,Me,{defaults:{event:"pan",threshold:10,pointers:1,direction:Z},getTouchAction:function(){var e=this.options.direction,t=[];return e&G&&t.push(_e),e&H&&t.push(Ne),t},directionTest:function(e){var t=this.options,n=!0,i=e.distance,a=e.direction,r=e.deltaX,o=e.deltaY;return a&t.direction||(i=t.direction&G?(a=0===r?j:r<0?U:z,n=r!=this.pX,Math.abs(e.deltaX)):(a=0===o?j:o<0?W:K,n=o!=this.pY,Math.abs(e.deltaY))),e.direction=a,n&&i>t.threshold&&a&t.direction},attrTest:function(e){return Me.prototype.attrTest.call(this,e)&&(2&this.state||!(2&this.state)&&this.directionTest(e))},emit:function(e){this.pX=e.deltaX,this.pY=e.deltaY;var t=Ve(e.direction);t&&(e.additionalEvent=this.options.event+t),this._super.emit.call(this,e)}}),p(Ie,Me,{defaults:{event:"pinch",threshold:0,pointers:2},getTouchAction:function(){return[ke]},attrTest:function(e){return this._super.attrTest.call(this,e)&&(Math.abs(e.scale-1)>this.options.threshold||2&this.state)},emit:function(e){var t;1!==e.scale&&(t=e.scale<1?"in":"out",e.additionalEvent=this.options.event+t),this._super.emit.call(this,e)}}),p(Re,Fe,{defaults:{event:"press",pointers:1,time:251,threshold:9},getTouchAction:function(){return["auto"]},process:function(e){var t=this.options,n=e.pointers.length===t.pointers,i=e.distance<t.threshold,a=e.deltaTime>t.time;if(this._input=e,!i||!n||e.eventType&(R|B)&&!a)this.reset();else if(e.eventType&I)this.reset(),this._timer=d(function(){this.state=8,this.tryEmit()},t.time,this);else if(e.eventType&R)return 8;return 32},reset:function(){clearTimeout(this._timer)},emit:function(e){8===this.state&&(e&&e.eventType&R?this.manager.emit(this.options.event+"up",e):(this._input.timeStamp=h(),this.manager.emit(this.options.event,this._input)))}}),p(Be,Me,{defaults:{event:"rotate",threshold:0,pointers:2},getTouchAction:function(){return[ke]},attrTest:function(e){return this._super.attrTest.call(this,e)&&(Math.abs(e.rotation)>this.options.threshold||2&this.state)}}),p(je,Me,{defaults:{event:"swipe",threshold:10,velocity:.3,direction:G|H,pointers:1},getTouchAction:function(){return De.prototype.getTouchAction.call(this)},attrTest:function(e){var t,n=this.options.direction;return n&(G|H)?t=e.overallVelocity:n&G?t=e.overallVelocityX:n&H&&(t=e.overallVelocityY),this._super.attrTest.call(this,e)&&n&e.offsetDirection&&e.distance>this.options.threshold&&e.maxPointers==this.options.pointers&&c(t)>this.options.velocity&&e.eventType&R},emit:function(e){var t=Ve(e.offsetDirection);t&&this.manager.emit(this.options.event+t,e),this.manager.emit(this.options.event,e)}}),p(Ue,Fe,{defaults:{event:"tap",pointers:1,taps:1,interval:300,time:250,threshold:9,posThreshold:10},getTouchAction:function(){return[Oe]},process:function(e){var t=this.options,n=e.pointers.length===t.pointers,i=e.distance<t.threshold,a=e.deltaTime<t.time;if(this.reset(),e.eventType&I&&0===this.count)return this.failTimeout();if(i&&a&&n){if(e.eventType!=R)return this.failTimeout();a=!this.pTime||e.timeStamp-this.pTime<t.interval,n=!this.pCenter||ne(this.pCenter,e.center)<t.posThreshold;if(this.pTime=e.timeStamp,this.pCenter=e.center,n&&a?this.count+=1:this.count=1,this._input=e,0==this.count%t.taps)return this.hasRequireFailures()?(this._timer=d(function(){this.state=8,this.tryEmit()},t.interval,this),2):8}return 32},failTimeout:function(){return this._timer=d(function(){this.state=32},this.options.interval,this),32},reset:function(){clearTimeout(this._timer)},emit:function(){8==this.state&&(this._input.tapCount=this.count,this.manager.emit(this.options.event,this._input))}}),ze.VERSION="2.0.7",ze.defaults={domEvents:!1,touchAction:Ee,enable:!0,inputTarget:null,inputClass:null,preset:[[Be,{enable:!1}],[Ie,{enable:!1},["rotate"]],[je,{direction:G}],[De,{direction:G},["swipe"]],[Ue],[Ue,{event:"doubletap",taps:2},["tap"]],[Re]],cssProps:{userSelect:"none",touchSelect:"none",touchCallout:"none",contentZooming:"none",userDrag:"none",tapHighlightColor:"rgba(0,0,0,0)"}};function We(e,t){this.options=r({},ze.defaults,t||{}),this.options.inputTarget=this.options.inputTarget||e,this.handlers={},this.session={},this.recognizers=[],this.oldCssProps={},this.element=e,this.input=new((e=this).options.inputClass||(A?de:V?ve:F?Se:se))(e,X),this.touchAction=new Ce(this,this.options.touchAction),Ke(this,!0),m(this.options.recognizers,function(e){var t=this.add(new e[0](e[1]));e[2]&&t.recognizeWith(e[2]),e[3]&&t.requireFailure(e[3])},this)}function Ke(n,i){var a,r=n.element;r.style&&(m(n.options.cssProps,function(e,t){a=T(r.style,t),i?(n.oldCssProps[a]=r.style[a],r.style[a]=e):r.style[a]=n.oldCssProps[a]||""}),i||(n.oldCssProps={}))}We.prototype={set:function(e){return r(this.options,e),e.touchAction&&this.touchAction.update(),e.inputTarget&&(this.input.destroy(),this.input.target=e.inputTarget,this.input.init()),this},stop:function(e){this.session.stopped=e?2:1},recognize:function(e){var t,n=this.session;if(!n.stopped){this.touchAction.preventDefaults(e);var i=this.recognizers,a=n.curRecognizer;(!a||a&&8&a.state)&&(a=n.curRecognizer=null);for(var r=0;r<i.length;)t=i[r],2===n.stopped||a&&t!=a&&!t.canRecognizeWith(a)?t.reset():t.recognize(e),!a&&14&t.state&&(a=n.curRecognizer=t),r++}},get:function(e){if(e instanceof Fe)return e;for(var t=this.recognizers,n=0;n<t.length;n++)if(t[n].options.event==e)return t[n];return null},add:function(e){if(i(e,"add",this))return this;var t=this.get(e.options.event);return t&&this.remove(t),this.recognizers.push(e),(e.manager=this).touchAction.update(),e},remove:function(e){return i(e,"remove",this)||!(e=this.get(e))||-1!==(e=k(t=this.recognizers,e))&&(t.splice(e,1),this.touchAction.update()),this;var t},on:function(e,t){if(e!==u&&t!==u){var n=this.handlers;return m(O(e),function(e){n[e]=n[e]||[],n[e].push(t)}),this}},off:function(e,t){if(e!==u){var n=this.handlers;return m(O(e),function(e){t?n[e]&&n[e].splice(k(n[e],t),1):delete n[e]}),this}},emit:function(e,t){var n,i,a;this.options.domEvents&&(n=e,i=t,(a=s.createEvent("Event")).initEvent(n,!0,!0),(a.gesture=i).target.dispatchEvent(a));var r=this.handlers[e]&&this.handlers[e].slice();if(r&&r.length){t.type=e,t.preventDefault=function(){t.srcEvent.preventDefault()};for(var o=0;o<r.length;)r[o](t),o++}},destroy:function(){this.element&&Ke(this,!1),this.handlers={},this.session={},this.input.destroy(),this.element=null}},r(ze,{INPUT_START:I,INPUT_MOVE:2,INPUT_END:R,INPUT_CANCEL:B,STATE_POSSIBLE:xe,STATE_BEGAN:2,STATE_CHANGED:4,STATE_ENDED:8,STATE_RECOGNIZED:8,STATE_CANCELLED:16,STATE_FAILED:32,DIRECTION_NONE:j,DIRECTION_LEFT:U,DIRECTION_RIGHT:z,DIRECTION_UP:W,DIRECTION_DOWN:K,DIRECTION_HORIZONTAL:G,DIRECTION_VERTICAL:H,DIRECTION_ALL:Z,Manager:We,Input:$,TouchAction:Ce,TouchInput:ve,MouseInput:se,PointerEventInput:de,TouchMouseInput:Se,SingleTouchInput:fe,Recognizer:Fe,AttrRecognizer:Me,Tap:Ue,Pan:De,Swipe:je,Pinch:Ie,Rotate:Be,Press:Re,on:b,off:w,each:m,merge:g,extend:f,assign:r,inherit:p,bindFn:v,prefixed:T}),(void 0!==a?a:"undefined"!=typeof self?self:{}).Hammer=ze,System.registerDynamic("npm:hammerjs/hammer.js",[],!1,function(e,t,n){return function(){return ze}.call(this)})}(window,document),function(i){System.registerDynamic("npm:propagating-hammerjs/propagating.js",[],!1,function(e,t,n){return i.call(this)})}(function(){var c=null;return function i(a,e){var r=e||{preventDefault:!1};if(a.Manager){var o=a,t=function(e,t){var n=Object.create(r);return t&&o.assign(n,t),i(new o(e,n),n)};return o.assign(t,o),t.Manager=function(e,t){var n=Object.create(r);return t&&o.assign(n,t),i(new o.Manager(e,n),n)},t}var s=Object.create(a),t=a.element;function l(e){return e.match(/[^ ]+/g)}function u(e){if("hammer.input"!==e.type){if(e.srcEvent._handled||(e.srcEvent._handled={}),e.srcEvent._handled[e.type])return;e.srcEvent._handled[e.type]=!0}var t=!1;e.stopPropagation=function(){t=!0};var n=e.srcEvent.stopPropagation.bind(e.srcEvent);"function"==typeof n&&(e.srcEvent.stopPropagation=function(){n(),e.stopPropagation()});for(var i=e.firstTarget=c;i&&!t;){var a=i.hammer;if(a)for(var r,o=0;o<a.length;o++)if(r=a[o]._handlers[e.type])for(var s=0;s<r.length&&!t;s++)r[s](e);i=i.parentNode}}return t.hammer||(t.hammer=[]),t.hammer.push(s),a.on("hammer.input",function(e){!0!==r.preventDefault&&r.preventDefault!==e.pointerType||e.preventDefault(),e.isFirst&&(c=e.target)}),s._handlers={},s.on=function(e,n){return l(e).forEach(function(e){var t=s._handlers[e];t||(s._handlers[e]=t=[],a.on(e,u)),t.push(n)}),s},s.off=function(e,n){return l(e).forEach(function(e){var t=s._handlers[e];t&&(0<(t=n?t.filter(function(e){return e!==n}):[]).length?s._handlers[e]=t:(a.off(e,u),delete s._handlers[e]))}),s},s.emit=function(e,t){c=t.target,a.emit(e,t)},s.destroy=function(){var e=a.element.hammer,t=e.indexOf(s);-1!==t&&e.splice(t,1),e.length||delete a.element.hammer,s._handlers={},a.destroy()},s}}),System.registerDynamic("npm:tablesort/dist/tablesort.min.js",[],!0,function(e,t,n){var v;this||self;function i(e,t){if(!(this instanceof i))return new i(e,t);if(!e||"TABLE"!==e.tagName)throw new Error("Element must be a table");this.init(e,t||{})}function y(e){var t;return window.CustomEvent&&"function"==typeof window.CustomEvent?t=new CustomEvent(e):(t=document.createEvent("CustomEvent")).initCustomEvent(e,!1,!1,void 0),t}function S(e){return e.getAttribute("data-sort")||e.textContent||e.innerText||""}function b(e,t){return(e=e.trim().toLowerCase())===(t=t.trim().toLowerCase())?0:e<t?1:-1}function w(e,t){return[].slice.call(e).find(function(e){return e.getAttribute("data-sort-column-key")===t})}function P(i,a){return function(e,t){var n=i(e.td,t.td);return 0===n?a?t.index-e.index:e.index-t.index:n}}v=[],i.extend=function(e,t,n){if("function"!=typeof t||"function"!=typeof n)throw new Error("Pattern and sort must be a function");v.push({name:e,pattern:t,sort:n})},i.prototype={init:function(e,t){var n,i,a,r=this;if(r.table=e,r.thead=!1,r.options=t,e.rows&&0<e.rows.length)if(e.tHead&&0<e.tHead.rows.length){for(s=0;s<e.tHead.rows.length;s++)if("thead"===e.tHead.rows[s].getAttribute("data-sort-method")){n=e.tHead.rows[s];break}n=n||e.tHead.rows[e.tHead.rows.length-1],r.thead=!0}else n=e.rows[0];if(n){function o(){r.current&&r.current!==this&&r.current.removeAttribute("aria-sort"),r.current=this,r.sortTable(this)}for(var s=0;s<n.cells.length;s++)(a=n.cells[s]).setAttribute("role","columnheader"),"none"!==a.getAttribute("data-sort-method")&&(a.tabindex=0,a.addEventListener("click",o,!1),null!==a.getAttribute("data-sort-default")&&(i=a));i&&(r.current=i,r.sortTable(i))}},sortTable:function(e,t){var n=this,i=e.getAttribute("data-sort-column-key"),a=e.cellIndex,r=b,o="",s=[],l=n.thead?0:1,u=e.getAttribute("data-sort-method"),c=e.getAttribute("aria-sort");if(n.table.dispatchEvent(y("beforeSort")),t||(c="ascending"===c||"descending"!==c&&n.options.descending?"descending":"ascending",e.setAttribute("aria-sort",c)),!(n.table.rows.length<2)){if(!u){for(;s.length<3&&l<n.table.tBodies[0].rows.length;)0<(o=(o=(d=i?w(n.table.tBodies[0].rows[l].cells,i):n.table.tBodies[0].rows[l].cells[a])?S(d):"").trim()).length&&s.push(o),l++;if(!s)return}for(l=0;l<v.length;l++)if(o=v[l],u){if(o.name===u){r=o.sort;break}}else if(s.every(o.pattern)){r=o.sort;break}for(n.col=a,l=0;l<n.table.tBodies.length;l++){var h,d,m=[],f={},g=0,p=0;if(!(n.table.tBodies[l].rows.length<2)){for(h=0;h<n.table.tBodies[l].rows.length;h++){"none"===(o=n.table.tBodies[l].rows[h]).getAttribute("data-sort-method")?f[g]=o:(d=i?w(o.cells,i):o.cells[n.col],m.push({tr:o,td:d?S(d):"",index:g})),g++}for("descending"===c?m.sort(P(r,!0)):(m.sort(P(r,!1)),m.reverse()),h=0;h<g;h++)f[h]?(o=f[h],p++):o=m[h-p].tr,n.table.tBodies[l].appendChild(o)}}n.table.dispatchEvent(y("afterSort"))}},refresh:function(){void 0!==this.current&&this.sortTable(this.current,!0)}},void 0!==n&&n.exports?n.exports=i:window.Tablesort=i}),function(a){System.registerDynamic("npm:zenscroll/zenscroll.js",[],!1,function(e,t,n){var i=a();return"function"==typeof i?i.call(this):i})}(function(){"use strict";function g(e){return e&&"getComputedStyle"in window&&"smooth"===window.getComputedStyle(e)["scroll-behavior"]}if("undefined"==typeof window||!("document"in window))return{};function i(l,n,u){var t;function c(e){t=e}function h(){clearTimeout(t),c(0)}function d(e){return Math.max(0,l.getTopOf(e)-u)}function m(e,i,a){var r,o,s;h(),0===i||i&&i<0||g(l.body)?(l.toY(e),a&&a()):(r=l.getY(),o=Math.max(0,e)-r,s=(new Date).getTime(),i=i||Math.min(Math.abs(o),n),function n(){c(setTimeout(function(){var e=Math.min(1,((new Date).getTime()-s)/i),t=Math.max(0,Math.floor(r+o*(e<.5?2*e*e:e*(4-2*e)-1)));l.toY(t),e<1&&l.getHeight()+t<l.body.scrollHeight?n():(setTimeout(h,99),a&&a())},9))}())}function f(e,t,n){m(d(e),t,n)}return n=n||999,u||0===u||(u=9),{setup:function(e,t){return 0!==e&&!e||(n=e),0!==t&&!t||(u=t),{defaultDuration:n,edgeOffset:u}},to:f,toY:m,intoView:function(e,t,n){var i=e.getBoundingClientRect().height,a=l.getTopOf(e)+i,r=l.getHeight(),o=l.getY(),s=o+r;d(e)<o||r<i+u?f(e,t,n):s<a+u?m(a-r+u,t,n):n&&n()},center:function(e,t,n,i){m(Math.max(0,l.getTopOf(e)-l.getHeight()/2+(n||e.getBoundingClientRect().height/2)),t,i)},stop:h,moving:function(){return!!t},getY:l.getY,getTopOf:l.getTopOf}}function t(){return window.scrollY||a.scrollTop}var o,s,l,a=document.documentElement,u=i({body:document.scrollingElement||document.body,toY:function(e){window.scrollTo(0,e)},getY:t,getHeight:function(){return window.innerHeight||a.clientHeight},getTopOf:function(e){return e.getBoundingClientRect().top+t()-a.offsetTop}});return u.createScroller=function(t,e,n){return i({body:t,toY:function(e){t.scrollTop=e},getY:function(){return t.scrollTop},getHeight:function(){return Math.min(t.clientHeight,window.innerHeight||a.clientHeight)},getTopOf:function(e){return e.offsetTop}},e,n)},"addEventListener"in window&&!window.noZensmooth&&!g(document.body)&&(o="history"in window&&"pushState"in history,(s=o&&"scrollRestoration"in history)&&(history.scrollRestoration="auto"),window.addEventListener("load",function(){s&&(setTimeout(function(){history.scrollRestoration="manual"},9),window.addEventListener("popstate",function(e){e.state&&"zenscrollY"in e.state&&u.toY(e.state.zenscrollY)},!1)),window.location.hash&&setTimeout(function(){var e,t=u.setup().edgeOffset;!t||(e=document.getElementById(window.location.href.split("#")[1]))&&(e=Math.max(0,u.getTopOf(e)-t),0<=(t=u.getY()-e)&&t<9&&window.scrollTo(0,e))},9)},!1),l=new RegExp("(^|\\s)noZensmooth(\\s|$)"),window.addEventListener("click",function(e){for(var t=e.target;t&&"A"!==t.tagName;)t=t.parentNode;if(!(!t||1!==e.which||e.shiftKey||e.metaKey||e.ctrlKey||e.altKey)){if(s){var n=history.state&&"object"==typeof history.state?history.state:{};n.zenscrollY=u.getY();try{history.replaceState(n,"")}catch(e){}}var i=t.getAttribute("href")||"";if(0===i.indexOf("#")&&!l.test(t.className)){var a=0,r=document.getElementById(i.substring(1));if("#"!==i){if(!r)return;a=u.getTopOf(r)}e.preventDefault();r=function(){window.location=i},e=u.setup().edgeOffset;e&&(a=Math.max(0,a-e),o&&(r=function(){history.pushState({},"",i)})),u.toY(a,null,r)}}},!1)),u});