Browse Source

Merge pull request #2752 from XhmikosR/plugins

Plugins
REJack 4 years ago
parent
commit
66f8bb1bbd
50 changed files with 13 additions and 9086 deletions
  1. 1 1
      pages/forms/advanced.html
  2. 6 6
      plugins/datatables-autofill/js/dataTables.autoFill.min.js
  3. 1 1
      plugins/datatables-buttons/js/buttons.colVis.min.js
  4. 0 16
      plugins/filterizr/BrowserWindow.d.ts
  5. 0 36
      plugins/filterizr/FilterContainer.d.ts
  6. 0 98
      plugins/filterizr/FilterItem.d.ts
  7. 0 22
      plugins/filterizr/FilterItems.d.ts
  8. 0 76
      plugins/filterizr/Filterizr.d.ts
  9. 0 10
      plugins/filterizr/getLayoutPositions.d.ts
  10. 0 1
      plugins/filterizr/installAsJQueryPlugin.d.ts
  11. 0 30
      plugins/filterizr/layouts/Packer.d.ts
  12. 0 8
      plugins/filterizr/layouts/getHorizontalLayoutPositions.d.ts
  13. 0 8
      plugins/filterizr/layouts/getPackedLayoutPositions.d.ts
  14. 0 8
      plugins/filterizr/layouts/getSameHeightLayoutPositions.d.ts
  15. 0 8
      plugins/filterizr/layouts/getSameSizeLayoutPosition.d.ts
  16. 0 8
      plugins/filterizr/layouts/getSameWidthLayoutPositions.d.ts
  17. 0 8
      plugins/filterizr/layouts/getVerticalLayoutPositions.d.ts
  18. 0 140
      plugins/filterizr/utils.d.ts
  19. 0 0
      plugins/fullcalendar-bootstrap/main.js.map
  20. 0 0
      plugins/fullcalendar-daygrid/main.js.map
  21. 0 0
      plugins/fullcalendar-interaction/main.js.map
  22. 0 0
      plugins/fullcalendar-timegrid/main.js.map
  23. 0 0
      plugins/fullcalendar/main.js.map
  24. 0 33
      plugins/inputmask/inputmask/bindings/inputmask.binding.js
  25. 0 129
      plugins/inputmask/inputmask/dependencyLibs/inputmask.dependencyLib.jqlite.js
  26. 0 19
      plugins/inputmask/inputmask/dependencyLibs/inputmask.dependencyLib.jquery.js
  27. 0 301
      plugins/inputmask/inputmask/dependencyLibs/inputmask.dependencyLib.js
  28. 0 11
      plugins/inputmask/inputmask/global/window.js
  29. 0 252
      plugins/inputmask/inputmask/inputmask.date.extensions.js
  30. 0 97
      plugins/inputmask/inputmask/inputmask.extensions.js
  31. 0 2745
      plugins/inputmask/inputmask/inputmask.js
  32. 0 553
      plugins/inputmask/inputmask/inputmask.numeric.extensions.js
  33. 0 97
      plugins/inputmask/inputmask/jquery.inputmask.js
  34. 0 3867
      plugins/inputmask/jquery.inputmask.bundle.js
  35. 0 9
      plugins/inputmask/min/inputmask/bindings/inputmask.binding.min.js
  36. 0 8
      plugins/inputmask/min/inputmask/dependencyLibs/inputmask.dependencyLib.jqlite.min.js
  37. 0 9
      plugins/inputmask/min/inputmask/dependencyLibs/inputmask.dependencyLib.jquery.min.js
  38. 0 8
      plugins/inputmask/min/inputmask/dependencyLibs/inputmask.dependencyLib.min.js
  39. 0 9
      plugins/inputmask/min/inputmask/global/window.min.js
  40. 0 8
      plugins/inputmask/min/inputmask/inputmask.date.extensions.min.js
  41. 0 9
      plugins/inputmask/min/inputmask/inputmask.extensions.min.js
  42. 0 8
      plugins/inputmask/min/inputmask/inputmask.min.js
  43. 0 8
      plugins/inputmask/min/inputmask/inputmask.numeric.extensions.min.js
  44. 0 9
      plugins/inputmask/min/inputmask/jquery.inputmask.min.js
  45. 0 8
      plugins/inputmask/min/jquery.inputmask.bundle.min.js
  46. 0 399
      plugins/jquery/core.js
  47. 1 1
      plugins/jszip/jszip.js
  48. 0 0
      plugins/jszip/jszip.min.js
  49. 2 2
      plugins/overlayScrollbars/css/OverlayScrollbars.css
  50. 2 2
      plugins/overlayScrollbars/css/OverlayScrollbars.min.css

+ 1 - 1
pages/forms/advanced.html

@@ -1372,7 +1372,7 @@
 <script src="../../plugins/bootstrap4-duallistbox/jquery.bootstrap-duallistbox.min.js"></script>
 <!-- InputMask -->
 <script src="../../plugins/moment/moment.min.js"></script>
-<script src="../../plugins/inputmask/min/jquery.inputmask.bundle.min.js"></script>
+<script src="../../plugins/inputmask/jquery.inputmask.min.js"></script>
 <!-- date-range-picker -->
 <script src="../../plugins/daterangepicker/daterangepicker.js"></script>
 <!-- bootstrap color picker -->

+ 6 - 6
plugins/datatables-autofill/js/dataTables.autoFill.min.js

@@ -1,13 +1,13 @@
 /*!
- AutoFill 2.3.4
- ©2008-2019 SpryMedia Ltd - datatables.net/license
+ AutoFill 2.3.5
+ ©2008-2020 SpryMedia Ltd - datatables.net/license
 */
 (function(e){"function"===typeof define&&define.amd?define(["jquery","datatables.net"],function(g){return e(g,window,document)}):"object"===typeof exports?module.exports=function(g,i){g||(g=window);if(!i||!i.fn.dataTable)i=require("datatables.net")(g,i).$;return e(i,g,g.document)}:e(jQuery,window,document)})(function(e,g,i,r){var l=e.fn.dataTable,t=0,k=function(b,c){if(!l.versionCheck||!l.versionCheck("1.10.8"))throw"Warning: AutoFill requires DataTables 1.10.8 or greater";this.c=e.extend(!0,{},l.defaults.autoFill,
 k.defaults,c);this.s={dt:new l.Api(b),namespace:".autoFill"+t++,scroll:{},scrollInterval:null,handle:{height:0,width:0},enabled:!1};this.dom={handle:e('<div class="dt-autofill-handle"/>'),select:{top:e('<div class="dt-autofill-select top"/>'),right:e('<div class="dt-autofill-select right"/>'),bottom:e('<div class="dt-autofill-select bottom"/>'),left:e('<div class="dt-autofill-select left"/>')},background:e('<div class="dt-autofill-background"/>'),list:e('<div class="dt-autofill-list">'+this.s.dt.i18n("autoFill.info",
 "")+"<ul/></div>"),dtScroll:null,offsetParent:null};this._constructor()};e.extend(k.prototype,{enabled:function(){return this.s.enabled},enable:function(b){var c=this;if(!1===b)return this.disable();this.s.enabled=!0;this._focusListener();this.dom.handle.on("mousedown",function(a){c._mousedown(a);return!1});return this},disable:function(){this.s.enabled=!1;this._focusListenerRemove();return this},_constructor:function(){var b=this,c=this.s.dt,a=e("div.dataTables_scrollBody",this.s.dt.table().container());
 c.settings()[0].autoFill=this;a.length&&(this.dom.dtScroll=a,"static"===a.css("position")&&a.css("position","relative"));!1!==this.c.enable&&this.enable();c.on("destroy.autoFill",function(){b._focusListenerRemove()})},_attach:function(b){var c=this.s.dt,a=c.cell(b).index(),d=this.dom.handle,f=this.s.handle;if(!a||-1===c.columns(this.c.columns).indexes().indexOf(a.column))this._detach();else{this.dom.offsetParent||(this.dom.offsetParent=e(c.table().node()).offsetParent());if(!f.height||!f.width)d.appendTo("body"),
-f.height=d.outerHeight(),f.width=d.outerWidth();c=this._getPosition(b,this.dom.offsetParent);this.dom.attachedTo=b;d.css({top:c.top+b.offsetHeight-f.height,left:c.left+b.offsetWidth-f.width}).appendTo(this.dom.offsetParent)}},_actionSelector:function(b){var c=this,a=this.s.dt,d=k.actions,f=[];e.each(d,function(c,d){d.available(a,b)&&f.push(c)});if(1===f.length&&!1===this.c.alwaysAsk){var j=d[f[0]].execute(a,b);this._update(j,b)}else{var h=this.dom.list.children("ul").empty();f.push("cancel");e.each(f,
-function(f,j){h.append(e("<li/>").append('<div class="dt-autofill-question">'+d[j].option(a,b)+"<div>").append(e('<div class="dt-autofill-button">').append(e('<button class="'+k.classes.btn+'">'+a.i18n("autoFill.button","&gt;")+"</button>").on("click",function(){var f=d[j].execute(a,b,e(this).closest("li"));c._update(f,b);c.dom.background.remove();c.dom.list.remove()}))))});this.dom.background.appendTo("body");this.dom.list.appendTo("body");this.dom.list.css("margin-top",-1*(this.dom.list.outerHeight()/
+f.height=d.outerHeight(),f.width=d.outerWidth();c=this._getPosition(b,this.dom.offsetParent);this.dom.attachedTo=b;d.css({top:c.top+b.offsetHeight-f.height,left:c.left+b.offsetWidth-f.width}).appendTo(this.dom.offsetParent)}},_actionSelector:function(b){var c=this,a=this.s.dt,d=k.actions,f=[];e.each(d,function(c,d){d.available(a,b)&&f.push(c)});if(1===f.length&&!1===this.c.alwaysAsk){var j=d[f[0]].execute(a,b);this._update(j,b)}else if(1<f.length){var h=this.dom.list.children("ul").empty();f.push("cancel");
+e.each(f,function(f,j){h.append(e("<li/>").append('<div class="dt-autofill-question">'+d[j].option(a,b)+"<div>").append(e('<div class="dt-autofill-button">').append(e('<button class="'+k.classes.btn+'">'+a.i18n("autoFill.button","&gt;")+"</button>").on("click",function(){var f=d[j].execute(a,b,e(this).closest("li"));c._update(f,b);c.dom.background.remove();c.dom.list.remove()}))))});this.dom.background.appendTo("body");this.dom.list.appendTo("body");this.dom.list.css("margin-top",-1*(this.dom.list.outerHeight()/
 2))}},_detach:function(){this.dom.attachedTo=null;this.dom.handle.detach()},_drawSelection:function(b){var c=this.s.dt,a=this.s.start,d=e(this.dom.start),f={row:this.c.vertical?c.rows({page:"current"}).nodes().indexOf(b.parentNode):a.row,column:this.c.horizontal?e(b).index():a.column},b=c.column.index("toData",f.column),j=c.row(":eq("+f.row+")",{page:"current"}),j=e(c.cell(j.index(),b).node());if(c.cell(j).any()&&-1!==c.columns(this.c.columns).indexes().indexOf(b)){this.s.end=f;var h,c=a.row<f.row?
 d:j;h=a.row<f.row?j:d;b=a.column<f.column?d:j;d=a.column<f.column?j:d;c=this._getPosition(c.get(0)).top;b=this._getPosition(b.get(0)).left;a=this._getPosition(h.get(0)).top+h.outerHeight()-c;d=this._getPosition(d.get(0)).left+d.outerWidth()-b;f=this.dom.select;f.top.css({top:c,left:b,width:d});f.left.css({top:c,left:b,height:a});f.bottom.css({top:c+a,left:b,width:d});f.right.css({top:c,left:b+d,height:a})}},_editor:function(b){var c=this.s.dt,a=this.c.editor;if(a){for(var d={},f=[],e=a.fields(),h=
 0,i=b.length;h<i;h++)for(var p=0,k=b[h].length;p<k;p++){var n=b[h][p],g=c.settings()[0].aoColumns[n.index.column],o=g.editField;if(o===r)for(var g=g.mData,q=0,l=e.length;q<l;q++){var s=a.field(e[q]);if(s.dataSrc()===g){o=s.name();break}}if(!o)throw"Could not automatically determine field data. Please see https://datatables.net/tn/11";d[o]||(d[o]={});g=c.row(n.index.row).id();d[o][g]=n.set;f.push(n.index)}a.bubble(f,!1).multiSet(d).submit()}},_emitEvent:function(b,c){this.s.dt.iterator("table",function(a){e(a.nTable).triggerHandler(b+
@@ -21,6 +21,6 @@ clearInterval(this.s.scrollInterval);this.s.scrollInterval=null}}},_range:functi
 -5:null!==a.dtLeft&&b.pageX>a.dtLeft+a.dtWidth-65&&(l=5);h||g||k||l?(a.windowVert=h,a.windowHoriz=g,a.dtVert=k,a.dtHoriz=l,d=!0):this.s.scrollInterval&&(clearInterval(this.s.scrollInterval),this.s.scrollInterval=null);!this.s.scrollInterval&&d&&(this.s.scrollInterval=setInterval(function(){if(a.windowVert)i.body.scrollTop=i.body.scrollTop+a.windowVert;if(a.windowHoriz)i.body.scrollLeft=i.body.scrollLeft+a.windowHoriz;if(a.dtVert||a.dtHoriz){var b=c.dom.dtScroll[0];if(a.dtVert)b.scrollTop=b.scrollTop+
 a.dtVert;if(a.dtHoriz)b.scrollLeft=b.scrollLeft+a.dtHoriz}},20))},_update:function(b,c){if(!1!==b){var a=this.s.dt,d,f=a.columns(this.c.columns).indexes();this._emitEvent("preAutoFill",[a,c]);this._editor(c);if(null!==this.c.update?this.c.update:!this.c.editor){for(var e=0,h=c.length;e<h;e++)for(var g=0,i=c[e].length;g<i;g++)d=c[e][g],-1!==f.indexOf(d.index.column)&&d.cell.data(d.set);a.draw(!1)}this._emitEvent("autoFill",[a,c])}}});k.actions={increment:{available:function(b,c){var a=c[0][0].label;
 return!isNaN(a-parseFloat(a))},option:function(b){return b.i18n("autoFill.increment",'Increment / decrement each cell by: <input type="number" value="1">')},execute:function(b,c,a){for(var b=1*c[0][0].data,a=1*e("input",a).val(),d=0,f=c.length;d<f;d++)for(var j=0,g=c[d].length;j<g;j++)c[d][j].set=b,b+=a}},fill:{available:function(){return!0},option:function(b,c){return b.i18n("autoFill.fill","Fill all cells with <i>"+c[0][0].label+"</i>")},execute:function(b,c){for(var a=c[0][0].data,d=0,f=c.length;d<
-f;d++)for(var e=0,g=c[d].length;e<g;e++)c[d][e].set=a}},fillHorizontal:{available:function(b,c){return 1<c.length&&1<c[0].length},option:function(b){return b.i18n("autoFill.fillHorizontal","Fill cells horizontally")},execute:function(b,c){for(var a=0,d=c.length;a<d;a++)for(var e=0,g=c[a].length;e<g;e++)c[a][e].set=c[a][0].data}},fillVertical:{available:function(b,c){return 1<c.length&&1<c[0].length},option:function(b){return b.i18n("autoFill.fillVertical","Fill cells vertically")},execute:function(b,
-c){for(var a=0,d=c.length;a<d;a++)for(var e=0,g=c[a].length;e<g;e++)c[a][e].set=c[0][e].data}},cancel:{available:function(){return!1},option:function(b){return b.i18n("autoFill.cancel","Cancel")},execute:function(){return!1}}};k.version="2.3.4";k.defaults={alwaysAsk:!1,focus:null,columns:"",enable:!0,update:null,editor:null,vertical:!0,horizontal:!0};k.classes={btn:"btn"};var m=e.fn.dataTable.Api;m.register("autoFill()",function(){return this});m.register("autoFill().enabled()",function(){var b=this.context[0];
+f;d++)for(var e=0,g=c[d].length;e<g;e++)c[d][e].set=a}},fillHorizontal:{available:function(b,c){return 1<c.length&&1<c[0].length},option:function(b){return b.i18n("autoFill.fillHorizontal","Fill cells horizontally")},execute:function(b,c){for(var a=0,d=c.length;a<d;a++)for(var f=0,e=c[a].length;f<e;f++)c[a][f].set=c[a][0].data}},fillVertical:{available:function(b,c){return 1<c.length},option:function(b){return b.i18n("autoFill.fillVertical","Fill cells vertically")},execute:function(b,c){for(var a=
+0,d=c.length;a<d;a++)for(var e=0,g=c[a].length;e<g;e++)c[a][e].set=c[0][e].data}},cancel:{available:function(){return!1},option:function(b){return b.i18n("autoFill.cancel","Cancel")},execute:function(){return!1}}};k.version="2.3.5";k.defaults={alwaysAsk:!1,focus:null,columns:"",enable:!0,update:null,editor:null,vertical:!0,horizontal:!0};k.classes={btn:"btn"};var m=e.fn.dataTable.Api;m.register("autoFill()",function(){return this});m.register("autoFill().enabled()",function(){var b=this.context[0];
 return b.autoFill?b.autoFill.enabled():!1});m.register("autoFill().enable()",function(b){return this.iterator("table",function(c){c.autoFill&&c.autoFill.enable(b)})});m.register("autoFill().disable()",function(){return this.iterator("table",function(b){b.autoFill&&b.autoFill.disable()})});e(i).on("preInit.dt.autofill",function(b,c){if("dt"===b.namespace){var a=c.oInit.autoFill,d=l.defaults.autoFill;if(a||d)d=e.extend({},a,d),!1!==a&&new k(c,d)}});l.AutoFill=k;return l.AutoFill=k});

+ 1 - 1
plugins/datatables-buttons/js/buttons.colVis.min.js

@@ -1,6 +1,6 @@
 (function(g){"function"===typeof define&&define.amd?define(["jquery","datatables.net","datatables.net-buttons"],function(d){return g(d,window,document)}):"object"===typeof exports?module.exports=function(d,f){d||(d=window);if(!f||!f.fn.dataTable)f=require("datatables.net")(d,f).$;f.fn.dataTable.Buttons||require("datatables.net-buttons")(d,f);return g(f,d,d.document)}:g(jQuery,window,document)})(function(g,d,f,h){d=g.fn.dataTable;g.extend(d.ext.buttons,{colvis:function(a,b){return{extend:"collection",
 text:function(b){return b.i18n("buttons.colvis","Column visibility")},className:"buttons-colvis",buttons:[{extend:"columnsToggle",columns:b.columns,columnText:b.columnText}]}},columnsToggle:function(a,b){return a.columns(b.columns).indexes().map(function(a){return{extend:"columnToggle",columns:a,columnText:b.columnText}}).toArray()},columnToggle:function(a,b){return{extend:"columnVisibility",columns:b.columns,columnText:b.columnText}},columnsVisibility:function(a,b){return a.columns(b.columns).indexes().map(function(a){return{extend:"columnVisibility",
 columns:a,visibility:b.visibility,columnText:b.columnText}}).toArray()},columnVisibility:{columns:h,text:function(a,b,c){return c._columnText(a,c)},className:"buttons-columnVisibility",action:function(a,b,c,e){a=b.columns(e.columns);b=a.visible();a.visible(e.visibility!==h?e.visibility:!(b.length&&b[0]))},init:function(a,b,c){var e=this;b.attr("data-cv-idx",c.columns);a.on("column-visibility.dt"+c.namespace,function(b,d){!d.bDestroying&&d.nTable==a.settings()[0].nTable&&e.active(a.column(c.columns).visible())}).on("column-reorder.dt"+
-c.namespace,function(){1===a.columns(c.columns).count()&&(b.text(c._columnText(a,c)),e.active(a.column(c.columns).visible()))});this.active(a.column(c.columns).visible())},destroy:function(a,b,c){a.off("column-visibility.dt"+c.namespace).off("column-reorder.dt"+c.namespace)},_columnText:function(a,b){var c=a.column(b.columns).index(),e=a.settings()[0].aoColumns[c].sTitle.replace(/\n/g," ").replace(/<br\s*\/?>/gi," ").replace(/<select(.*?)<\/select>/g,"").replace(/<!\-\-.*?\-\->/g,"").replace(/<.*?>/g,
+c.namespace,function(){1===a.columns(c.columns).count()&&(e.text(c._columnText(a,c)),e.active(a.column(c.columns).visible()))});this.active(a.column(c.columns).visible())},destroy:function(a,b,c){a.off("column-visibility.dt"+c.namespace).off("column-reorder.dt"+c.namespace)},_columnText:function(a,b){var c=a.column(b.columns).index(),e=a.settings()[0].aoColumns[c].sTitle.replace(/\n/g," ").replace(/<br\s*\/?>/gi," ").replace(/<select(.*?)<\/select>/g,"").replace(/<!\-\-.*?\-\->/g,"").replace(/<.*?>/g,
 "").replace(/^\s+|\s+$/g,"");return b.columnText?b.columnText(a,c,e):e}},colvisRestore:{className:"buttons-colvisRestore",text:function(a){return a.i18n("buttons.colvisRestore","Restore visibility")},init:function(a,b,c){c._visOriginal=a.columns().indexes().map(function(b){return a.column(b).visible()}).toArray()},action:function(a,b,c,d){b.columns().every(function(a){a=b.colReorder&&b.colReorder.transpose?b.colReorder.transpose(a,"toOriginal"):a;this.visible(d._visOriginal[a])})}},colvisGroup:{className:"buttons-colvisGroup",
 action:function(a,b,c,d){b.columns(d.show).visible(!0,!1);b.columns(d.hide).visible(!1,!1);b.columns.adjust()},show:[],hide:[]}});return d.Buttons});

+ 0 - 16
plugins/filterizr/BrowserWindow.d.ts

@@ -1,16 +0,0 @@
-/**
- * A wrapper class around the window object to manage the
- * resize event.
- *
- * When the user resizes the window, Filterizr needs to trigger
- * a refiltering of the grid so that the grid items can assume
- * their new positions.
- */
-export default class BrowserWindow {
-    private resizeHandler?;
-    constructor();
-    private debounceEventHandler;
-    destroy(): void;
-    setResizeEventHandler(resizeHandler: EventListener): void;
-    private removeResizeHandler;
-}

+ 0 - 36
plugins/filterizr/FilterContainer.d.ts

@@ -1,36 +0,0 @@
-import { RawOptionsCallbacks } from './FilterizrOptions/defaultOptions';
-import FilterizrOptions from './FilterizrOptions/FilterizrOptions';
-import FilterItems from './FilterItems';
-/**
- * Resembles the grid of items within Filterizr.
- */
-export default class FilterContainer {
-    node: Element;
-    options: FilterizrOptions;
-    filterItems: FilterItems;
-    dimensions: {
-        width: number;
-        height: number;
-    };
-    private onTransitionEndHandler?;
-    constructor(node: Element, options: FilterizrOptions);
-    destroy(): void;
-    /**
-     * Turn the HTML elements in the grid to FilterItem
-     * instances and return a collection of them.
-     */
-    makeFilterItems(options: FilterizrOptions): FilterItems;
-    /**
-     * Inserts a new item into the grid.
-     * @param node - HTML node to instantiate as FilterItem and append to the grid
-     * @param options - Filterizr options
-     */
-    insertItem(node: Element, options: FilterizrOptions): void;
-    calculateColumns(): number;
-    updateDimensions(): void;
-    updateHeight(newHeight: number): void;
-    bindEvents(callbacks: RawOptionsCallbacks): void;
-    unbindEvents(callbacks: RawOptionsCallbacks): void;
-    trigger(eventType: string): void;
-    private updateWidth;
-}

+ 0 - 98
plugins/filterizr/FilterItem.d.ts

@@ -1,98 +0,0 @@
-import { Dictionary } from './types/interfaces/Dictionary';
-import FilterizrOptions from './FilterizrOptions/FilterizrOptions';
-export interface Position {
-    left: number;
-    top: number;
-}
-/**
- * Resembles an item in the grid of Filterizr.
- */
-export default class FilterItem {
-    node: Element;
-    options: FilterizrOptions;
-    dimensions: {
-        width: number;
-        height: number;
-    };
-    private data;
-    private sortData;
-    private index;
-    private filteredOut;
-    private lastPosition;
-    private onTransitionEndHandler;
-    constructor(node: Element, index: number, options: FilterizrOptions);
-    /**
-     * Destroys the FilterItem instance
-     */
-    destroy(): void;
-    /**
-     * Filters in a specific FilterItem out of the grid.
-     * @param targetPosition the position towards which the element should animate
-     * @param cssOptions for the animation
-     */
-    filterIn(targetPosition: Position, cssOptions: Dictionary): void;
-    /**
-     * Filters out a specific FilterItem out of the grid.
-     * @param cssOptions for the animation
-     */
-    filterOut(cssOptions: Dictionary): void;
-    /**
-     * Helper method to calculate the animation delay for a given grid item
-     * @param delay in ms
-     * @param delayMode can be 'alternate' or 'progressive'
-     */
-    getTransitionDelay(delay: number, delayMode: 'progressive' | 'alternate'): number;
-    /**
-     * Returns true if the text contents of the FilterItem match the search term
-     * @param searchTerm to look up
-     * @return if the innerText matches the term
-     */
-    contentsMatchSearch(searchTerm: string): boolean;
-    /**
-     * Recalculates the dimensions of the element and updates them in the state
-     */
-    updateDimensions(): void;
-    /**
-     * Returns all categories of the grid items data-category attribute
-     * with a regexp regarding all whitespace.
-     * @return {String[]} an array of the categories the item belongs to
-     */
-    getCategories(): string[];
-    /**
-     * Returns the value of the sort attribute
-     * @param sortAttribute "index", "sortData" or custom user data-attribute by which to sort
-     */
-    getSortAttribute(sortAttribute: string): string | number;
-    /**
-     * Helper method for the search method of Filterizr
-     * @return {String} innerText of the FilterItem in lowercase
-     */
-    private getContentsLowercase;
-    /**
-     * Sets up the events related to the FilterItem instance
-     */
-    private bindEvents;
-    /**
-     * Removes all events related to the FilterItem instance
-     */
-    private unbindEvents;
-    /**
-     * Calculates and returns the transition css property based on options.
-     */
-    private getTransitionStyle;
-    /**
-     * Sets the transition css property as an inline style on the FilterItem.
-     *
-     * The idea here is that during the very first render items should assume
-     * their positions directly.
-     *
-     * Following renders should actually trigger the transitions, which is why
-     * we need to delay setting the transition property.
-     *
-     * Unfortunately, JavaScript code executes on the same thread as the
-     * browser's rendering. Everything that needs to be drawn waits for
-     * JavaScript execution to complete. Thus, we need to use a setTimeout
-     * here to defer setting the transition style at the first rendering cycle.
-     */
-    private setTransitionStyle;
-}

+ 0 - 22
plugins/filterizr/FilterItems.d.ts

@@ -1,22 +0,0 @@
-import { Filter } from './ActiveFilter';
-import FilterItem from './FilterItem';
-import FilterizrOptions from './FilterizrOptions/FilterizrOptions';
-export default class FilterItems {
-    private filterItems;
-    private options;
-    constructor(filterItems: FilterItem[], options: FilterizrOptions);
-    readonly length: number;
-    get(): FilterItem[];
-    getItem(index: number): FilterItem;
-    set(filterItems: FilterItem[]): void;
-    destroy(): void;
-    updateTransitionStyle(): void;
-    updateDimensions(): void;
-    push(filterItem: FilterItem): number;
-    getFiltered(filter: Filter): FilterItem[];
-    getFilteredOut(filter: Filter): FilterItem[];
-    getSorted(sortAttr?: string, sortOrder?: 'asc' | 'desc'): FilterItem[];
-    getSearched(searchTerm: string): FilterItem[];
-    getShuffled(): FilterItem[];
-    private shouldBeFiltered;
-}

+ 0 - 76
plugins/filterizr/Filterizr.d.ts

@@ -1,76 +0,0 @@
-import FilterizrOptions from './FilterizrOptions/FilterizrOptions';
-import FilterContainer from './FilterContainer';
-import FilterItem from './FilterItem';
-import { Filter } from './ActiveFilter';
-import { RawOptions } from './FilterizrOptions/defaultOptions';
-export default class Filterizr {
-    /**
-     * Main Filterizr classes exported as static members
-     */
-    static FilterContainer: typeof FilterContainer;
-    static FilterItem: typeof FilterItem;
-    static defaultOptions: RawOptions;
-    /**
-     * Static method that receives the jQuery object and extends
-     * its prototype with a .filterizr method.
-     */
-    static installAsJQueryPlugin: Function;
-    options: FilterizrOptions;
-    private browserWindow;
-    private filterContainer;
-    private filterControls?;
-    private filterizrState;
-    constructor(selectorOrNode?: string | HTMLElement, userOptions?: RawOptions);
-    private readonly filterItems;
-    /**
-     * Filters the items in the grid by a category
-     * @param category by which to filter
-     */
-    filter(category: Filter): void;
-    destroy(): void;
-    /**
-     * Inserts a new FilterItem in the Filterizr grid
-     * @param node DOM node to append
-     */
-    insertItem(node: HTMLElement): void;
-    /**
-     * Sorts the FilterItems in the grid
-     * @param sortAttr the attribute by which to perform the sort
-     * @param sortOrder ascending or descending
-     */
-    sort(sortAttr?: string, sortOrder?: 'asc' | 'desc'): void;
-    /**
-     * Searches through the FilterItems for a given string and adds an additional filter layer.
-     * @param searchTerm the term for which to search
-     */
-    search(searchTerm?: string): void;
-    /**
-     * Shuffles the FilterItems in the grid, making sure their positions have changed.
-     */
-    shuffle(): void;
-    /**
-     * Updates the perferences of the users for rendering the Filterizr grid,
-     * additionally performs error checking on the new options passed.
-     * @param newOptions to override the defaults.
-     */
-    setOptions(newOptions: RawOptions): void;
-    /**
-     * Performs multifiltering with AND/OR logic.
-     * @param toggledFilter the filter to toggle
-     */
-    toggleFilter(toggledFilter: string): void;
-    private render;
-    private onTransitionEndCallback;
-    private rebindFilterContainerEvents;
-    private bindEvents;
-    /**
-     * If it contains images it makes use of the imagesloaded npm package
-     * to trigger the first render after the images have finished loading
-     * in the DOM. Otherwise, overlapping can occur if the images do not
-     * have the height attribute explicitly set on them.
-     *
-     * In case the grid contains no images, then a simple render is performed.
-     */
-    private renderWithImagesLoaded;
-    private updateDimensionsAndRerender;
-}

+ 0 - 10
plugins/filterizr/getLayoutPositions.d.ts

@@ -1,10 +0,0 @@
-import { Position } from './FilterItem';
-import FilterContainer from './FilterContainer';
-/**
- * Calculates and returns an array of objects representing
- * the next positions the FilterItems are supposed to assume.
- * @param layout name of helper method to be used
- * @param filterizr instance
- */
-declare const getLayoutPositions: (layout: string, filterContainer: FilterContainer) => Position[];
-export default getLayoutPositions;

+ 0 - 1
plugins/filterizr/installAsJQueryPlugin.d.ts

@@ -1 +0,0 @@
-export default function installAsJQueryPlugin($: any): void;

+ 0 - 30
plugins/filterizr/layouts/Packer.d.ts

@@ -1,30 +0,0 @@
-/**
- * Modified version of Jake Gordon's Bin Packing algorithm used for Filterizr's 'packed' layout
- * @see {@link https://github.com/jakesgordon/bin-packing}
- */
-interface PackerRoot {
-    x: number;
-    y: number;
-    w: number;
-    h?: number;
-    used?: boolean;
-    down?: PackerRoot;
-    right?: PackerRoot;
-}
-interface PackerBlock {
-    x?: number;
-    y?: number;
-    w?: number;
-    h?: number;
-    fit?: PackerRoot | void;
-}
-export default class Packer {
-    root: PackerRoot;
-    constructor(w: number);
-    init(w: number): void;
-    fit(blocks: PackerBlock[]): void;
-    findNode(root: PackerRoot, w: number, h: number): PackerRoot | void;
-    splitNode(node: PackerRoot, w: number, h: number): PackerRoot;
-    growDown(w: number, h: number): PackerRoot | void;
-}
-export {};

+ 0 - 8
plugins/filterizr/layouts/getHorizontalLayoutPositions.d.ts

@@ -1,8 +0,0 @@
-import { Position } from '../FilterItem';
-import FilterContainer from '../FilterContainer';
-/**
- * Horizontal layout algorithm that arranges all FilterItems in one row. Their width may vary.
- * @param filterContainer instance.
- */
-declare const getHorizontalLayoutPositions: (filterContainer: FilterContainer) => Position[];
-export default getHorizontalLayoutPositions;

+ 0 - 8
plugins/filterizr/layouts/getPackedLayoutPositions.d.ts

@@ -1,8 +0,0 @@
-import { Position } from '../FilterItem';
-import FilterContainer from '../FilterContainer';
-/**
- * Packed layout for items that can have varying width as well as varying height.
- * @param filterContainer instance.
- */
-declare const getPackedLayoutPositions: (filterContainer: FilterContainer) => Position[];
-export default getPackedLayoutPositions;

+ 0 - 8
plugins/filterizr/layouts/getSameHeightLayoutPositions.d.ts

@@ -1,8 +0,0 @@
-import { Position } from '../FilterItem';
-import FilterContainer from '../FilterContainer';
-/**
- * Same height layout for items that have the same height, but can have varying width
- * @param filterContainer instance.
- */
-declare const getSameHeightLayoutPositions: (filterContainer: FilterContainer) => Position[];
-export default getSameHeightLayoutPositions;

+ 0 - 8
plugins/filterizr/layouts/getSameSizeLayoutPosition.d.ts

@@ -1,8 +0,0 @@
-import { Position } from '../FilterItem';
-import FilterContainer from '../FilterContainer';
-/**
- * Same size layout for items that have the same width/height
- * @param filterContainer instance.
- */
-declare const getSameSizeLayoutPosition: (filterContainer: FilterContainer) => Position[];
-export default getSameSizeLayoutPosition;

+ 0 - 8
plugins/filterizr/layouts/getSameWidthLayoutPositions.d.ts

@@ -1,8 +0,0 @@
-import { Position } from '../FilterItem';
-import FilterContainer from '../FilterContainer';
-/**
- * Same width layout for items that have the same width, but can have varying height
- * @param filterContainer instance.
- */
-declare const getSameWidthLayoutPositions: (filterContainer: FilterContainer) => Position[];
-export default getSameWidthLayoutPositions;

+ 0 - 8
plugins/filterizr/layouts/getVerticalLayoutPositions.d.ts

@@ -1,8 +0,0 @@
-import { Position } from '../FilterItem';
-import FilterContainer from '../FilterContainer';
-/**
- * Vertical layout algorithm that arranges all FilterItems in one column. Their height may vary.
- * @param filterizr instance.
- */
-declare const getVerticalLayoutPositions: (filterContainer: FilterContainer) => Position[];
-export default getVerticalLayoutPositions;

+ 0 - 140
plugins/filterizr/utils.d.ts

@@ -1,140 +0,0 @@
-import { Dictionary } from './types/interfaces/Dictionary';
-import FilterItem from './FilterItem';
-/**
- * A function to check that all elements of an array are found within another array.
- * @param {Array} arr1 is the array of strings to be checked
- * @param {Array} arr2 is the array of strings to check against
- * @return {Boolean} whether all string of arr1 are contained in arr2
- */
-declare const allStringsOfArray1InArray2: (arr1: string[], arr2: string[]) => boolean;
-export { allStringsOfArray1InArray2 };
-/**
- * Given a CSS prop it will normalize the syntax for JS
- * e.g. transform background-color to backgroundColor
- * @param {String} cssProp prop name
- * @return {String} normalized name
- */
-declare const getNormalizedCssPropName: (cssProp: string) => string;
-export { getNormalizedCssPropName };
-/**
- * Set inline styles on an HTML node
- * @param {HTMLElement} node - HTML node
- * @param {Object} styles - object with styles
- * @returns {undefined}
- */
-declare function setStylesOnHTMLNode(node: Element, styles: any): void;
-export { setStylesOnHTMLNode };
-/**
- * Returns an object with value/key pairs of all data
- * attributes on an HTML element, disregarding the
- * two data attributes that are reserved for internal
- * usage by Filterizr
- * @param {Object} node - HTML node
- * @returns {Object} map of data attributes / values
- */
-declare function getDataAttributesOfHTMLNode(node: Element): Dictionary;
-export { getDataAttributesOfHTMLNode };
-/**
- * Check that a DOM element has a data-attribute present
- * @param {Object} node element
- * @param {String} dataAttributeName name of data attribute
- * @return {Boolean} data attribute exists
- */
-declare function checkDataAttributeExists(node: Element, dataAttributeName: string): boolean;
-export { checkDataAttributeExists };
-/**
- * A very simple function to perform a basic
- * deep clone of an object.
- * @param {Object} o is the object to perform the deep clone on
- * @return {Object} deep clone
- */
-declare const makeShallowClone: (o: any) => Dictionary;
-export { makeShallowClone };
-/**
- * A function to recursively merge an object, copying over all
- * properties of the old object missing from the target object.
- * In case a prop in is an object, the method is called recursively.
- * This is a non-mutating method.
- * @param {Object} old is the old object from which the missing props are copied.
- * @param {Object} target is the target object with the updated values.
- */
-declare const merge: (old: any, target: any) => Dictionary;
-export { merge };
-/**
- * A function get the intersection of two arrays. IE9+.
- * @param {Array} arr1 is the first array of which to get the intersection
- * @param {Array} arr2 is the second array of which to get the intersection
- */
-declare const intersection: (arr1: any[], arr2: any[]) => any;
-export { intersection };
-/**
- * Debounce of Underscore.js
- */
-declare const debounce: (func: Function, wait: number, immediate: boolean) => Function;
-export { debounce };
-/**
- * Fisher-Yates shuffle ES6 non-mutating implementation.
- * @param {Array} array the array to shuffle
- * @return {Array} shuffled array without mutating the initial array.
- */
-declare const shuffle: (array: any[]) => any[];
-export { shuffle };
-/**
- * Simple method to check if two arrays of FilterItems
- * are sorted in the same manner or not.
- * @param {Array} arr1 the first array of FilterItems
- * @param {Array} arr2 the second array of FilterItems
- * @return {Boolean} equality
- */
-declare const filterItemArraysHaveSameSorting: (filterItemsA: FilterItem[], filterItemsB: FilterItem[]) => boolean;
-export { filterItemArraysHaveSameSorting };
-/**
- * Simple non-mutating sorting function for arrays of objects by a property
- * @param {Array} array to sort
- * @param {Function} propFn fetches the property by which to sort
- * @return {Array} a new sorted array
- */
-declare const sortBy: (array: any[], propFn: Function) => any[];
-export { sortBy };
-/**
- * Error checking method to restrict a prop to some allowed values
- * @param {String} name of the option key in the options object
- * @param {String|Number|Object|Function|Array|Boolean} value of the option
- * @param {String} type of the property
- * @param {Array} allowed accepted values for option
- * @param {String} furtherHelpLink a link to docs for further help
- */
-declare const checkOptionForErrors: (name: string, value: string | number | boolean | object | Function | any[], type?: string, allowed?: RegExp | any[], furtherHelpLink?: string) => void;
-export { checkOptionForErrors };
-/**
- * Wrapper around document.querySelector, will function as
- * an identity function if an HTML element is passed in
- * @param {HTMLElement|string} nodeOrSelector
- */
-declare const getHTMLElement: (selectorOrNode: string | HTMLElement) => HTMLElement;
-export { getHTMLElement };
-/**
- * A Regexp to validate potential values for the CSS easing property of transitions.
- */
-declare const cssEasingValuesRegexp: RegExp;
-export { cssEasingValuesRegexp };
-/**
- * Possible animation states for Filterizr
- */
-declare const FILTERIZR_STATE: {
-    IDLE: string;
-    FILTERING: string;
-    SORTING: string;
-    SHUFFLING: string;
-};
-export { FILTERIZR_STATE };
-/**
- * Transition end events with vendor prefixing
- */
-declare const TRANSITION_END_EVENTS: string[];
-export { TRANSITION_END_EVENTS };
-/**
- * A no-operation function
- */
-declare const noop: () => void;
-export { noop };

File diff suppressed because it is too large
+ 0 - 0
plugins/fullcalendar-bootstrap/main.js.map


File diff suppressed because it is too large
+ 0 - 0
plugins/fullcalendar-daygrid/main.js.map


File diff suppressed because it is too large
+ 0 - 0
plugins/fullcalendar-interaction/main.js.map


File diff suppressed because it is too large
+ 0 - 0
plugins/fullcalendar-timegrid/main.js.map


File diff suppressed because it is too large
+ 0 - 0
plugins/fullcalendar/main.js.map


+ 0 - 33
plugins/inputmask/inputmask/bindings/inputmask.binding.js

@@ -1,33 +0,0 @@
-/*!
-* bindings/inputmask.binding.js
-* https://github.com/RobinHerbots/Inputmask
-* Copyright (c) 2010 - 2019 Robin Herbots
-* Licensed under the MIT license (http://www.opensource.org/licenses/mit-license.php)
-* Version: 4.0.9
-*/
-
-(function(factory) {
-    if (typeof define === "function" && define.amd) {
-        define([ "jquery", "../inputmask", "../global/window" ], factory);
-    } else if (typeof exports === "object") {
-        module.exports = factory(require("jquery"), require("../inputmask"), require("../global/window"));
-    } else {
-        factory(jQuery, window.Inputmask, window);
-    }
-})(function($, Inputmask, window) {
-    $(window.document).ajaxComplete(function(event, xmlHttpRequest, ajaxOptions) {
-        if ($.inArray("html", ajaxOptions.dataTypes) !== -1) {
-            $(".inputmask, [data-inputmask], [data-inputmask-mask], [data-inputmask-alias]").each(function(ndx, lmnt) {
-                if (lmnt.inputmask === undefined) {
-                    Inputmask().mask(lmnt);
-                }
-            });
-        }
-    }).ready(function() {
-        $(".inputmask, [data-inputmask], [data-inputmask-mask], [data-inputmask-alias]").each(function(ndx, lmnt) {
-            if (lmnt.inputmask === undefined) {
-                Inputmask().mask(lmnt);
-            }
-        });
-    });
-});

+ 0 - 129
plugins/inputmask/inputmask/dependencyLibs/inputmask.dependencyLib.jqlite.js

@@ -1,129 +0,0 @@
-/*!
-* dependencyLibs/inputmask.dependencyLib.jqlite.js
-* https://github.com/RobinHerbots/Inputmask
-* Copyright (c) 2010 - 2019 Robin Herbots
-* Licensed under the MIT license (http://www.opensource.org/licenses/mit-license.php)
-* Version: 4.0.9
-*/
-
-(function(factory) {
-    if (typeof define === "function" && define.amd) {
-        define([ "jqlite", "../global/window" ], factory);
-    } else if (typeof exports === "object") {
-        module.exports = factory(require("jqlite"), require("../global/window"));
-    } else {
-        window.dependencyLib = factory(jqlite, window);
-    }
-})(function($, window) {
-    var document = window.document;
-    function indexOf(list, elem) {
-        var i = 0, len = list.length;
-        for (;i < len; i++) {
-            if (list[i] === elem) {
-                return i;
-            }
-        }
-        return -1;
-    }
-    function isWindow(obj) {
-        return obj != null && obj === obj.window;
-    }
-    function isArraylike(obj) {
-        var length = "length" in obj && obj.length, ltype = typeof obj;
-        if (ltype === "function" || isWindow(obj)) {
-            return false;
-        }
-        if (obj.nodeType === 1 && length) {
-            return true;
-        }
-        return ltype === "array" || length === 0 || typeof length === "number" && length > 0 && length - 1 in obj;
-    }
-    $.inArray = function(elem, arr, i) {
-        return arr == null ? -1 : indexOf(arr, elem, i);
-    };
-    $.isFunction = function(obj) {
-        return typeof obj === "function";
-    };
-    $.isArray = Array.isArray;
-    $.isPlainObject = function(obj) {
-        if (typeof obj !== "object" || obj.nodeType || isWindow(obj)) {
-            return false;
-        }
-        if (obj.constructor && !Object.hasOwnProperty.call(obj.constructor.prototype, "isPrototypeOf")) {
-            return false;
-        }
-        return true;
-    };
-    $.extend = function() {
-        var options, name, src, copy, copyIsArray, clone, target = arguments[0] || {}, i = 1, length = arguments.length, deep = false;
-        if (typeof target === "boolean") {
-            deep = target;
-            target = arguments[i] || {};
-            i++;
-        }
-        if (typeof target !== "object" && !$.isFunction(target)) {
-            target = {};
-        }
-        if (i === length) {
-            target = this;
-            i--;
-        }
-        for (;i < length; i++) {
-            if ((options = arguments[i]) != null) {
-                for (name in options) {
-                    src = target[name];
-                    copy = options[name];
-                    if (target === copy) {
-                        continue;
-                    }
-                    if (deep && copy && ($.isPlainObject(copy) || (copyIsArray = $.isArray(copy)))) {
-                        if (copyIsArray) {
-                            copyIsArray = false;
-                            clone = src && $.isArray(src) ? src : [];
-                        } else {
-                            clone = src && $.isPlainObject(src) ? src : {};
-                        }
-                        target[name] = $.extend(deep, clone, copy);
-                    } else if (copy !== undefined) {
-                        target[name] = copy;
-                    }
-                }
-            }
-        }
-        return target;
-    };
-    $.each = function(obj, callback) {
-        var value, i = 0;
-        if (isArraylike(obj)) {
-            for (var length = obj.length; i < length; i++) {
-                value = callback.call(obj[i], i, obj[i]);
-                if (value === false) {
-                    break;
-                }
-            }
-        } else {
-            for (i in obj) {
-                value = callback.call(obj[i], i, obj[i]);
-                if (value === false) {
-                    break;
-                }
-            }
-        }
-        return obj;
-    };
-    $.data = function(elem, name, data) {
-        return $(elem).data(name, data);
-    };
-    $.Event = $.Event || function CustomEvent(event, params) {
-        params = params || {
-            bubbles: false,
-            cancelable: false,
-            detail: undefined
-        };
-        var evt = document.createEvent("CustomEvent");
-        evt.initCustomEvent(event, params.bubbles, params.cancelable, params.detail);
-        return evt;
-    };
-    $.Event.prototype = window.Event.prototype;
-    return $;
-});

+ 0 - 19
plugins/inputmask/inputmask/dependencyLibs/inputmask.dependencyLib.jquery.js

@@ -1,19 +0,0 @@
-/*!
-* dependencyLibs/inputmask.dependencyLib.jquery.js
-* https://github.com/RobinHerbots/Inputmask
-* Copyright (c) 2010 - 2019 Robin Herbots
-* Licensed under the MIT license (http://www.opensource.org/licenses/mit-license.php)
-* Version: 4.0.9
-*/
-
-(function(factory) {
-    if (typeof define === "function" && define.amd) {
-        define([ "jquery" ], factory);
-    } else if (typeof exports === "object") {
-        module.exports = factory(require("jquery"));
-    } else {
-        window.dependencyLib = factory(jQuery);
-    }
-})(function($) {
-    return $;
-});

+ 0 - 301
plugins/inputmask/inputmask/dependencyLibs/inputmask.dependencyLib.js

@@ -1,301 +0,0 @@
-/*!
-* dependencyLibs/inputmask.dependencyLib.js
-* https://github.com/RobinHerbots/Inputmask
-* Copyright (c) 2010 - 2019 Robin Herbots
-* Licensed under the MIT license (http://www.opensource.org/licenses/mit-license.php)
-* Version: 4.0.9
-*/
-
-(function(factory) {
-    if (typeof define === "function" && define.amd) {
-        define([ "../global/window" ], factory);
-    } else if (typeof exports === "object") {
-        module.exports = factory(require("../global/window"));
-    } else {
-        window.dependencyLib = factory(window);
-    }
-})(function(window) {
-    var document = window.document;
-    function indexOf(list, elem) {
-        var i = 0, len = list.length;
-        for (;i < len; i++) {
-            if (list[i] === elem) {
-                return i;
-            }
-        }
-        return -1;
-    }
-    function isWindow(obj) {
-        return obj != null && obj === obj.window;
-    }
-    function isArraylike(obj) {
-        var length = "length" in obj && obj.length, ltype = typeof obj;
-        if (ltype === "function" || isWindow(obj)) {
-            return false;
-        }
-        if (obj.nodeType === 1 && length) {
-            return true;
-        }
-        return ltype === "array" || length === 0 || typeof length === "number" && length > 0 && length - 1 in obj;
-    }
-    function isValidElement(elem) {
-        return elem instanceof Element;
-    }
-    function DependencyLib(elem) {
-        if (elem instanceof DependencyLib) {
-            return elem;
-        }
-        if (!(this instanceof DependencyLib)) {
-            return new DependencyLib(elem);
-        }
-        if (elem !== undefined && elem !== null && elem !== window) {
-            this[0] = elem.nodeName ? elem : elem[0] !== undefined && elem[0].nodeName ? elem[0] : document.querySelector(elem);
-            if (this[0] !== undefined && this[0] !== null) {
-                this[0].eventRegistry = this[0].eventRegistry || {};
-            }
-        }
-    }
-    function getWindow(elem) {
-        return isWindow(elem) ? elem : elem.nodeType === 9 ? elem.defaultView || elem.parentWindow : false;
-    }
-    DependencyLib.prototype = {
-        on: function(events, handler) {
-            if (isValidElement(this[0])) {
-                var eventRegistry = this[0].eventRegistry, elem = this[0];
-                var addEvent = function(ev, namespace) {
-                    if (elem.addEventListener) {
-                        elem.addEventListener(ev, handler, false);
-                    } else if (elem.attachEvent) {
-                        elem.attachEvent("on" + ev, handler);
-                    }
-                    eventRegistry[ev] = eventRegistry[ev] || {};
-                    eventRegistry[ev][namespace] = eventRegistry[ev][namespace] || [];
-                    eventRegistry[ev][namespace].push(handler);
-                };
-                var _events = events.split(" ");
-                for (var endx = 0; endx < _events.length; endx++) {
-                    var nsEvent = _events[endx].split("."), ev = nsEvent[0], namespace = nsEvent[1] || "global";
-                    addEvent(ev, namespace);
-                }
-            }
-            return this;
-        },
-        off: function(events, handler) {
-            if (isValidElement(this[0])) {
-                var eventRegistry = this[0].eventRegistry, elem = this[0];
-                var removeEvent = function(ev, namespace, handler) {
-                    if (ev in eventRegistry === true) {
-                        if (elem.removeEventListener) {
-                            elem.removeEventListener(ev, handler, false);
-                        } else if (elem.detachEvent) {
-                            elem.detachEvent("on" + ev, handler);
-                        }
-                        if (namespace === "global") {
-                            for (var nmsp in eventRegistry[ev]) {
-                                eventRegistry[ev][nmsp].splice(eventRegistry[ev][nmsp].indexOf(handler), 1);
-                            }
-                        } else {
-                            eventRegistry[ev][namespace].splice(eventRegistry[ev][namespace].indexOf(handler), 1);
-                        }
-                    }
-                };
-                var resolveNamespace = function(ev, namespace) {
-                    var evts = [], hndx, hndL;
-                    if (ev.length > 0) {
-                        if (handler === undefined) {
-                            for (hndx = 0, hndL = eventRegistry[ev][namespace].length; hndx < hndL; hndx++) {
-                                evts.push({
-                                    ev: ev,
-                                    namespace: namespace && namespace.length > 0 ? namespace : "global",
-                                    handler: eventRegistry[ev][namespace][hndx]
-                                });
-                            }
-                        } else {
-                            evts.push({
-                                ev: ev,
-                                namespace: namespace && namespace.length > 0 ? namespace : "global",
-                                handler: handler
-                            });
-                        }
-                    } else if (namespace.length > 0) {
-                        for (var evNdx in eventRegistry) {
-                            for (var nmsp in eventRegistry[evNdx]) {
-                                if (nmsp === namespace) {
-                                    if (handler === undefined) {
-                                        for (hndx = 0, hndL = eventRegistry[evNdx][nmsp].length; hndx < hndL; hndx++) {
-                                            evts.push({
-                                                ev: evNdx,
-                                                namespace: nmsp,
-                                                handler: eventRegistry[evNdx][nmsp][hndx]
-                                            });
-                                        }
-                                    } else {
-                                        evts.push({
-                                            ev: evNdx,
-                                            namespace: nmsp,
-                                            handler: handler
-                                        });
-                                    }
-                                }
-                            }
-                        }
-                    }
-                    return evts;
-                };
-                var _events = events.split(" ");
-                for (var endx = 0; endx < _events.length; endx++) {
-                    var nsEvent = _events[endx].split("."), offEvents = resolveNamespace(nsEvent[0], nsEvent[1]);
-                    for (var i = 0, offEventsL = offEvents.length; i < offEventsL; i++) {
-                        removeEvent(offEvents[i].ev, offEvents[i].namespace, offEvents[i].handler);
-                    }
-                }
-            }
-            return this;
-        },
-        trigger: function(events) {
-            if (isValidElement(this[0])) {
-                var eventRegistry = this[0].eventRegistry, elem = this[0];
-                var _events = typeof events === "string" ? events.split(" ") : [ events.type ];
-                for (var endx = 0; endx < _events.length; endx++) {
-                    var nsEvent = _events[endx].split("."), ev = nsEvent[0], namespace = nsEvent[1] || "global";
-                    if (document !== undefined && namespace === "global") {
-                        var evnt, i, params = {
-                            bubbles: true,
-                            cancelable: true,
-                            detail: arguments[1]
-                        };
-                        if (document.createEvent) {
-                            try {
-                                evnt = new CustomEvent(ev, params);
-                            } catch (e) {
-                                evnt = document.createEvent("CustomEvent");
-                                evnt.initCustomEvent(ev, params.bubbles, params.cancelable, params.detail);
-                            }
-                            if (events.type) DependencyLib.extend(evnt, events);
-                            elem.dispatchEvent(evnt);
-                        } else {
-                            evnt = document.createEventObject();
-                            evnt.eventType = ev;
-                            evnt.detail = arguments[1];
-                            if (events.type) DependencyLib.extend(evnt, events);
-                            elem.fireEvent("on" + evnt.eventType, evnt);
-                        }
-                    } else if (eventRegistry[ev] !== undefined) {
-                        arguments[0] = arguments[0].type ? arguments[0] : DependencyLib.Event(arguments[0]);
-                        if (namespace === "global") {
-                            for (var nmsp in eventRegistry[ev]) {
-                                for (i = 0; i < eventRegistry[ev][nmsp].length; i++) {
-                                    eventRegistry[ev][nmsp][i].apply(elem, arguments);
-                                }
-                            }
-                        } else {
-                            for (i = 0; i < eventRegistry[ev][namespace].length; i++) {
-                                eventRegistry[ev][namespace][i].apply(elem, arguments);
-                            }
-                        }
-                    }
-                }
-            }
-            return this;
-        }
-    };
-    DependencyLib.isFunction = function(obj) {
-        return typeof obj === "function";
-    };
-    DependencyLib.noop = function() {};
-    DependencyLib.isArray = Array.isArray;
-    DependencyLib.inArray = function(elem, arr, i) {
-        return arr == null ? -1 : indexOf(arr, elem, i);
-    };
-    DependencyLib.valHooks = undefined;
-    DependencyLib.isPlainObject = function(obj) {
-        if (typeof obj !== "object" || obj.nodeType || isWindow(obj)) {
-            return false;
-        }
-        if (obj.constructor && !Object.hasOwnProperty.call(obj.constructor.prototype, "isPrototypeOf")) {
-            return false;
-        }
-        return true;
-    };
-    DependencyLib.extend = function() {
-        var options, name, src, copy, copyIsArray, clone, target = arguments[0] || {}, i = 1, length = arguments.length, deep = false;
-        if (typeof target === "boolean") {
-            deep = target;
-            target = arguments[i] || {};
-            i++;
-        }
-        if (typeof target !== "object" && !DependencyLib.isFunction(target)) {
-            target = {};
-        }
-        if (i === length) {
-            target = this;
-            i--;
-        }
-        for (;i < length; i++) {
-            if ((options = arguments[i]) != null) {
-                for (name in options) {
-                    src = target[name];
-                    copy = options[name];
-                    if (target === copy) {
-                        continue;
-                    }
-                    if (deep && copy && (DependencyLib.isPlainObject(copy) || (copyIsArray = DependencyLib.isArray(copy)))) {
-                        if (copyIsArray) {
-                            copyIsArray = false;
-                            clone = src && DependencyLib.isArray(src) ? src : [];
-                        } else {
-                            clone = src && DependencyLib.isPlainObject(src) ? src : {};
-                        }
-                        target[name] = DependencyLib.extend(deep, clone, copy);
-                    } else if (copy !== undefined) {
-                        target[name] = copy;
-                    }
-                }
-            }
-        }
-        return target;
-    };
-    DependencyLib.each = function(obj, callback) {
-        var value, i = 0;
-        if (isArraylike(obj)) {
-            for (var length = obj.length; i < length; i++) {
-                value = callback.call(obj[i], i, obj[i]);
-                if (value === false) {
-                    break;
-                }
-            }
-        } else {
-            for (i in obj) {
-                value = callback.call(obj[i], i, obj[i]);
-                if (value === false) {
-                    break;
-                }
-            }
-        }
-        return obj;
-    };
-    DependencyLib.data = function(owner, key, value) {
-        if (value === undefined) {
-            return owner.__data ? owner.__data[key] : null;
-        } else {
-            owner.__data = owner.__data || {};
-            owner.__data[key] = value;
-        }
-    };
-    if (typeof window.CustomEvent === "function") {
-        DependencyLib.Event = window.CustomEvent;
-    } else {
-        DependencyLib.Event = function(event, params) {
-            params = params || {
-                bubbles: false,
-                cancelable: false,
-                detail: undefined
-            };
-            var evt = document.createEvent("CustomEvent");
-            evt.initCustomEvent(event, params.bubbles, params.cancelable, params.detail);
-            return evt;
-        };
-        DependencyLib.Event.prototype = window.Event.prototype;
-    }
-    return DependencyLib;
-});

+ 0 - 11
plugins/inputmask/inputmask/global/window.js

@@ -1,11 +0,0 @@
-/*!
-* global/window.js
-* https://github.com/RobinHerbots/Inputmask
-* Copyright (c) 2010 - 2019 Robin Herbots
-* Licensed under the MIT license (http://www.opensource.org/licenses/mit-license.php)
-* Version: 4.0.9
-*/
-
-if (typeof define === "function" && define.amd) define(function() {
-    return typeof window !== "undefined" ? window : new (eval("require('jsdom').JSDOM"))("").window;
-}); else if (typeof exports === "object") module.exports = typeof window !== "undefined" ? window : new (eval("require('jsdom').JSDOM"))("").window;

+ 0 - 252
plugins/inputmask/inputmask/inputmask.date.extensions.js

@@ -1,252 +0,0 @@
-/*!
-* inputmask.date.extensions.js
-* https://github.com/RobinHerbots/Inputmask
-* Copyright (c) 2010 - 2019 Robin Herbots
-* Licensed under the MIT license (http://www.opensource.org/licenses/mit-license.php)
-* Version: 4.0.9
-*/
-
-(function(factory) {
-    if (typeof define === "function" && define.amd) {
-        define([ "./inputmask" ], factory);
-    } else if (typeof exports === "object") {
-        module.exports = factory(require("./inputmask"));
-    } else {
-        factory(window.Inputmask);
-    }
-})(function(Inputmask) {
-    var $ = Inputmask.dependencyLib;
-    var formatCode = {
-        d: [ "[1-9]|[12][0-9]|3[01]", Date.prototype.setDate, "day", Date.prototype.getDate ],
-        dd: [ "0[1-9]|[12][0-9]|3[01]", Date.prototype.setDate, "day", function() {
-            return pad(Date.prototype.getDate.call(this), 2);
-        } ],
-        ddd: [ "" ],
-        dddd: [ "" ],
-        m: [ "[1-9]|1[012]", Date.prototype.setMonth, "month", function() {
-            return Date.prototype.getMonth.call(this) + 1;
-        } ],
-        mm: [ "0[1-9]|1[012]", Date.prototype.setMonth, "month", function() {
-            return pad(Date.prototype.getMonth.call(this) + 1, 2);
-        } ],
-        mmm: [ "" ],
-        mmmm: [ "" ],
-        yy: [ "[0-9]{2}", Date.prototype.setFullYear, "year", function() {
-            return pad(Date.prototype.getFullYear.call(this), 2);
-        } ],
-        yyyy: [ "[0-9]{4}", Date.prototype.setFullYear, "year", function() {
-            return pad(Date.prototype.getFullYear.call(this), 4);
-        } ],
-        h: [ "[1-9]|1[0-2]", Date.prototype.setHours, "hours", Date.prototype.getHours ],
-        hh: [ "0[1-9]|1[0-2]", Date.prototype.setHours, "hours", function() {
-            return pad(Date.prototype.getHours.call(this), 2);
-        } ],
-        hhh: [ "[0-9]+", Date.prototype.setHours, "hours", Date.prototype.getHours ],
-        H: [ "1?[0-9]|2[0-3]", Date.prototype.setHours, "hours", Date.prototype.getHours ],
-        HH: [ "0[0-9]|1[0-9]|2[0-3]", Date.prototype.setHours, "hours", function() {
-            return pad(Date.prototype.getHours.call(this), 2);
-        } ],
-        HHH: [ "[0-9]+", Date.prototype.setHours, "hours", Date.prototype.getHours ],
-        M: [ "[1-5]?[0-9]", Date.prototype.setMinutes, "minutes", Date.prototype.getMinutes ],
-        MM: [ "0[0-9]|1[0-9]|2[0-9]|3[0-9]|4[0-9]|5[0-9]", Date.prototype.setMinutes, "minutes", function() {
-            return pad(Date.prototype.getMinutes.call(this), 2);
-        } ],
-        ss: [ "[0-5][0-9]", Date.prototype.setSeconds, "seconds", function() {
-            return pad(Date.prototype.getSeconds.call(this), 2);
-        } ],
-        l: [ "[0-9]{3}", Date.prototype.setMilliseconds, "milliseconds", function() {
-            return pad(Date.prototype.getMilliseconds.call(this), 3);
-        } ],
-        L: [ "[0-9]{2}", Date.prototype.setMilliseconds, "milliseconds", function() {
-            return pad(Date.prototype.getMilliseconds.call(this), 2);
-        } ],
-        t: [ "[ap]" ],
-        tt: [ "[ap]m" ],
-        T: [ "[AP]" ],
-        TT: [ "[AP]M" ],
-        Z: [ "" ],
-        o: [ "" ],
-        S: [ "" ]
-    }, formatAlias = {
-        isoDate: "yyyy-mm-dd",
-        isoTime: "HH:MM:ss",
-        isoDateTime: "yyyy-mm-dd'T'HH:MM:ss",
-        isoUtcDateTime: "UTC:yyyy-mm-dd'T'HH:MM:ss'Z'"
-    };
-    function getTokenizer(opts) {
-        if (!opts.tokenizer) {
-            var tokens = [];
-            for (var ndx in formatCode) {
-                if (tokens.indexOf(ndx[0]) === -1) tokens.push(ndx[0]);
-            }
-            opts.tokenizer = "(" + tokens.join("+|") + ")+?|.";
-            opts.tokenizer = new RegExp(opts.tokenizer, "g");
-        }
-        return opts.tokenizer;
-    }
-    function isValidDate(dateParts, currentResult) {
-        return !isFinite(dateParts.rawday) || dateParts.day == "29" && !isFinite(dateParts.rawyear) || new Date(dateParts.date.getFullYear(), isFinite(dateParts.rawmonth) ? dateParts.month : dateParts.date.getMonth() + 1, 0).getDate() >= dateParts.day ? currentResult : false;
-    }
-    function isDateInRange(dateParts, opts) {
-        var result = true;
-        if (opts.min) {
-            if (dateParts["rawyear"]) {
-                var rawYear = dateParts["rawyear"].replace(/[^0-9]/g, ""), minYear = opts.min.year.substr(0, rawYear.length);
-                result = minYear <= rawYear;
-            }
-            if (dateParts["year"] === dateParts["rawyear"]) {
-                if (opts.min.date.getTime() === opts.min.date.getTime()) {
-                    result = opts.min.date.getTime() <= dateParts.date.getTime();
-                }
-            }
-        }
-        if (result && opts.max && opts.max.date.getTime() === opts.max.date.getTime()) {
-            result = opts.max.date.getTime() >= dateParts.date.getTime();
-        }
-        return result;
-    }
-    function parse(format, dateObjValue, opts, raw) {
-        var mask = "", match;
-        while (match = getTokenizer(opts).exec(format)) {
-            if (dateObjValue === undefined) {
-                if (formatCode[match[0]]) {
-                    mask += "(" + formatCode[match[0]][0] + ")";
-                } else {
-                    switch (match[0]) {
-                      case "[":
-                        mask += "(";
-                        break;
-
-                      case "]":
-                        mask += ")?";
-                        break;
-
-                      default:
-                        mask += Inputmask.escapeRegex(match[0]);
-                    }
-                }
-            } else {
-                if (formatCode[match[0]]) {
-                    if (raw !== true && formatCode[match[0]][3]) {
-                        var getFn = formatCode[match[0]][3];
-                        mask += getFn.call(dateObjValue.date);
-                    } else if (formatCode[match[0]][2]) mask += dateObjValue["raw" + formatCode[match[0]][2]]; else mask += match[0];
-                } else mask += match[0];
-            }
-        }
-        return mask;
-    }
-    function pad(val, len) {
-        val = String(val);
-        len = len || 2;
-        while (val.length < len) val = "0" + val;
-        return val;
-    }
-    function analyseMask(maskString, format, opts) {
-        var dateObj = {
-            date: new Date(1, 0, 1)
-        }, targetProp, mask = maskString, match, dateOperation, targetValidator;
-        function extendProperty(value) {
-            var correctedValue = value.replace(/[^0-9]/g, "0");
-            if (correctedValue != value) {
-                var enteredPart = value.replace(/[^0-9]/g, ""), min = (opts.min && opts.min[targetProp] || value).toString(), max = (opts.max && opts.max[targetProp] || value).toString();
-                correctedValue = enteredPart + (enteredPart < min.slice(0, enteredPart.length) ? min.slice(enteredPart.length) : enteredPart > max.slice(0, enteredPart.length) ? max.slice(enteredPart.length) : correctedValue.toString().slice(enteredPart.length));
-            }
-            return correctedValue;
-        }
-        function setValue(dateObj, value, opts) {
-            dateObj[targetProp] = extendProperty(value);
-            dateObj["raw" + targetProp] = value;
-            if (dateOperation !== undefined) dateOperation.call(dateObj.date, targetProp == "month" ? parseInt(dateObj[targetProp]) - 1 : dateObj[targetProp]);
-        }
-        if (typeof mask === "string") {
-            while (match = getTokenizer(opts).exec(format)) {
-                var value = mask.slice(0, match[0].length);
-                if (formatCode.hasOwnProperty(match[0])) {
-                    targetValidator = formatCode[match[0]][0];
-                    targetProp = formatCode[match[0]][2];
-                    dateOperation = formatCode[match[0]][1];
-                    setValue(dateObj, value, opts);
-                }
-                mask = mask.slice(value.length);
-            }
-            return dateObj;
-        } else if (mask && typeof mask === "object" && mask.hasOwnProperty("date")) {
-            return mask;
-        }
-        return undefined;
-    }
-    Inputmask.extendAliases({
-        datetime: {
-            mask: function(opts) {
-                formatCode.S = opts.i18n.ordinalSuffix.join("|");
-                opts.inputFormat = formatAlias[opts.inputFormat] || opts.inputFormat;
-                opts.displayFormat = formatAlias[opts.displayFormat] || opts.displayFormat || opts.inputFormat;
-                opts.outputFormat = formatAlias[opts.outputFormat] || opts.outputFormat || opts.inputFormat;
-                opts.placeholder = opts.placeholder !== "" ? opts.placeholder : opts.inputFormat.replace(/[\[\]]/, "");
-                opts.regex = parse(opts.inputFormat, undefined, opts);
-                return null;
-            },
-            placeholder: "",
-            inputFormat: "isoDateTime",
-            displayFormat: undefined,
-            outputFormat: undefined,
-            min: null,
-            max: null,
-            i18n: {
-                dayNames: [ "Mon", "Tue", "Wed", "Thu", "Fri", "Sat", "Sun", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday", "Sunday" ],
-                monthNames: [ "Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec", "January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December" ],
-                ordinalSuffix: [ "st", "nd", "rd", "th" ]
-            },
-            postValidation: function(buffer, pos, currentResult, opts) {
-                opts.min = analyseMask(opts.min, opts.inputFormat, opts);
-                opts.max = analyseMask(opts.max, opts.inputFormat, opts);
-                var result = currentResult, dateParts = analyseMask(buffer.join(""), opts.inputFormat, opts);
-                if (result && dateParts.date.getTime() === dateParts.date.getTime()) {
-                    result = isValidDate(dateParts, result);
-                    result = result && isDateInRange(dateParts, opts);
-                }
-                if (pos && result && currentResult.pos !== pos) {
-                    return {
-                        buffer: parse(opts.inputFormat, dateParts, opts),
-                        refreshFromBuffer: {
-                            start: pos,
-                            end: currentResult.pos
-                        }
-                    };
-                }
-                return result;
-            },
-            onKeyDown: function(e, buffer, caretPos, opts) {
-                var input = this;
-                if (e.ctrlKey && e.keyCode === Inputmask.keyCode.RIGHT) {
-                    var today = new Date(), match, date = "";
-                    while (match = getTokenizer(opts).exec(opts.inputFormat)) {
-                        if (match[0].charAt(0) === "d") {
-                            date += pad(today.getDate(), match[0].length);
-                        } else if (match[0].charAt(0) === "m") {
-                            date += pad(today.getMonth() + 1, match[0].length);
-                        } else if (match[0] === "yyyy") {
-                            date += today.getFullYear().toString();
-                        } else if (match[0].charAt(0) === "y") {
-                            date += pad(today.getYear(), match[0].length);
-                        }
-                    }
-                    input.inputmask._valueSet(date);
-                    $(input).trigger("setvalue");
-                }
-            },
-            onUnMask: function(maskedValue, unmaskedValue, opts) {
-                return parse(opts.outputFormat, analyseMask(maskedValue, opts.inputFormat, opts), opts, true);
-            },
-            casing: function(elem, test, pos, validPositions) {
-                if (test.nativeDef.indexOf("[ap]") == 0) return elem.toLowerCase();
-                if (test.nativeDef.indexOf("[AP]") == 0) return elem.toUpperCase();
-                return elem;
-            },
-            insertMode: false,
-            shiftPositions: false
-        }
-    });
-    return Inputmask;
-});

+ 0 - 97
plugins/inputmask/inputmask/inputmask.extensions.js

@@ -1,97 +0,0 @@
-/*!
-* inputmask.extensions.js
-* https://github.com/RobinHerbots/Inputmask
-* Copyright (c) 2010 - 2019 Robin Herbots
-* Licensed under the MIT license (http://www.opensource.org/licenses/mit-license.php)
-* Version: 4.0.9
-*/
-
-(function(factory) {
-    if (typeof define === "function" && define.amd) {
-        define([ "./inputmask" ], factory);
-    } else if (typeof exports === "object") {
-        module.exports = factory(require("./inputmask"));
-    } else {
-        factory(window.Inputmask);
-    }
-})(function(Inputmask) {
-    Inputmask.extendDefinitions({
-        A: {
-            validator: "[A-Za-z\u0410-\u044f\u0401\u0451\xc0-\xff\xb5]",
-            casing: "upper"
-        },
-        "&": {
-            validator: "[0-9A-Za-z\u0410-\u044f\u0401\u0451\xc0-\xff\xb5]",
-            casing: "upper"
-        },
-        "#": {
-            validator: "[0-9A-Fa-f]",
-            casing: "upper"
-        }
-    });
-    Inputmask.extendAliases({
-        cssunit: {
-            regex: "[+-]?[0-9]+\\.?([0-9]+)?(px|em|rem|ex|%|in|cm|mm|pt|pc)"
-        },
-        url: {
-            regex: "(https?|ftp)//.*",
-            autoUnmask: false
-        },
-        ip: {
-            mask: "i[i[i]].i[i[i]].i[i[i]].i[i[i]]",
-            definitions: {
-                i: {
-                    validator: function(chrs, maskset, pos, strict, opts) {
-                        if (pos - 1 > -1 && maskset.buffer[pos - 1] !== ".") {
-                            chrs = maskset.buffer[pos - 1] + chrs;
-                            if (pos - 2 > -1 && maskset.buffer[pos - 2] !== ".") {
-                                chrs = maskset.buffer[pos - 2] + chrs;
-                            } else chrs = "0" + chrs;
-                        } else chrs = "00" + chrs;
-                        return new RegExp("25[0-5]|2[0-4][0-9]|[01][0-9][0-9]").test(chrs);
-                    }
-                }
-            },
-            onUnMask: function(maskedValue, unmaskedValue, opts) {
-                return maskedValue;
-            },
-            inputmode: "numeric"
-        },
-        email: {
-            mask: "*{1,64}[.*{1,64}][.*{1,64}][.*{1,63}]@-{1,63}.-{1,63}[.-{1,63}][.-{1,63}]",
-            greedy: false,
-            casing: "lower",
-            onBeforePaste: function(pastedValue, opts) {
-                pastedValue = pastedValue.toLowerCase();
-                return pastedValue.replace("mailto:", "");
-            },
-            definitions: {
-                "*": {
-                    validator: "[0-9\uff11-\uff19A-Za-z\u0410-\u044f\u0401\u0451\xc0-\xff\xb5!#$%&'*+/=?^_`{|}~-]"
-                },
-                "-": {
-                    validator: "[0-9A-Za-z-]"
-                }
-            },
-            onUnMask: function(maskedValue, unmaskedValue, opts) {
-                return maskedValue;
-            },
-            inputmode: "email"
-        },
-        mac: {
-            mask: "##:##:##:##:##:##"
-        },
-        vin: {
-            mask: "V{13}9{4}",
-            definitions: {
-                V: {
-                    validator: "[A-HJ-NPR-Za-hj-npr-z\\d]",
-                    casing: "upper"
-                }
-            },
-            clearIncomplete: true,
-            autoUnmask: true
-        }
-    });
-    return Inputmask;
-});

+ 0 - 2745
plugins/inputmask/inputmask/inputmask.js

@@ -1,2745 +0,0 @@
-/*!
-* inputmask.js
-* https://github.com/RobinHerbots/Inputmask
-* Copyright (c) 2010 - 2019 Robin Herbots
-* Licensed under the MIT license (http://www.opensource.org/licenses/mit-license.php)
-* Version: 4.0.9
-*/
-
-(function(factory) {
-    if (typeof define === "function" && define.amd) {
-        define([ "./dependencyLibs/inputmask.dependencyLib", "./global/window" ], factory);
-    } else if (typeof exports === "object") {
-        module.exports = factory(require("./dependencyLibs/inputmask.dependencyLib"), require("./global/window"));
-    } else {
-        window.Inputmask = factory(window.dependencyLib || jQuery, window);
-    }
-})(function($, window, undefined) {
-    var document = window.document, ua = navigator.userAgent, ie = ua.indexOf("MSIE ") > 0 || ua.indexOf("Trident/") > 0, mobile = isInputEventSupported("touchstart"), iemobile = /iemobile/i.test(ua), iphone = /iphone/i.test(ua) && !iemobile;
-    function Inputmask(alias, options, internal) {
-        if (!(this instanceof Inputmask)) {
-            return new Inputmask(alias, options, internal);
-        }
-        this.el = undefined;
-        this.events = {};
-        this.maskset = undefined;
-        this.refreshValue = false;
-        if (internal !== true) {
-            if ($.isPlainObject(alias)) {
-                options = alias;
-            } else {
-                options = options || {};
-                if (alias) options.alias = alias;
-            }
-            this.opts = $.extend(true, {}, this.defaults, options);
-            this.noMasksCache = options && options.definitions !== undefined;
-            this.userOptions = options || {};
-            this.isRTL = this.opts.numericInput;
-            resolveAlias(this.opts.alias, options, this.opts);
-        }
-    }
-    Inputmask.prototype = {
-        dataAttribute: "data-inputmask",
-        defaults: {
-            placeholder: "_",
-            optionalmarker: [ "[", "]" ],
-            quantifiermarker: [ "{", "}" ],
-            groupmarker: [ "(", ")" ],
-            alternatormarker: "|",
-            escapeChar: "\\",
-            mask: null,
-            regex: null,
-            oncomplete: $.noop,
-            onincomplete: $.noop,
-            oncleared: $.noop,
-            repeat: 0,
-            greedy: false,
-            autoUnmask: false,
-            removeMaskOnSubmit: false,
-            clearMaskOnLostFocus: true,
-            insertMode: true,
-            clearIncomplete: false,
-            alias: null,
-            onKeyDown: $.noop,
-            onBeforeMask: null,
-            onBeforePaste: function(pastedValue, opts) {
-                return $.isFunction(opts.onBeforeMask) ? opts.onBeforeMask.call(this, pastedValue, opts) : pastedValue;
-            },
-            onBeforeWrite: null,
-            onUnMask: null,
-            showMaskOnFocus: true,
-            showMaskOnHover: true,
-            onKeyValidation: $.noop,
-            skipOptionalPartCharacter: " ",
-            numericInput: false,
-            rightAlign: false,
-            undoOnEscape: true,
-            radixPoint: "",
-            _radixDance: false,
-            groupSeparator: "",
-            keepStatic: null,
-            positionCaretOnTab: true,
-            tabThrough: false,
-            supportsInputType: [ "text", "tel", "url", "password", "search" ],
-            ignorables: [ 8, 9, 13, 19, 27, 33, 34, 35, 36, 37, 38, 39, 40, 45, 46, 93, 112, 113, 114, 115, 116, 117, 118, 119, 120, 121, 122, 123, 0, 229 ],
-            isComplete: null,
-            preValidation: null,
-            postValidation: null,
-            staticDefinitionSymbol: undefined,
-            jitMasking: false,
-            nullable: true,
-            inputEventOnly: false,
-            noValuePatching: false,
-            positionCaretOnClick: "lvp",
-            casing: null,
-            inputmode: "verbatim",
-            colorMask: false,
-            disablePredictiveText: false,
-            importDataAttributes: true,
-            shiftPositions: true
-        },
-        definitions: {
-            9: {
-                validator: "[0-9\uff11-\uff19]",
-                definitionSymbol: "*"
-            },
-            a: {
-                validator: "[A-Za-z\u0410-\u044f\u0401\u0451\xc0-\xff\xb5]",
-                definitionSymbol: "*"
-            },
-            "*": {
-                validator: "[0-9\uff11-\uff19A-Za-z\u0410-\u044f\u0401\u0451\xc0-\xff\xb5]"
-            }
-        },
-        aliases: {},
-        masksCache: {},
-        mask: function(elems) {
-            var that = this;
-            function importAttributeOptions(npt, opts, userOptions, dataAttribute) {
-                if (opts.importDataAttributes === true) {
-                    var attrOptions = npt.getAttribute(dataAttribute), option, dataoptions, optionData, p;
-                    var importOption = function(option, optionData) {
-                        optionData = optionData !== undefined ? optionData : npt.getAttribute(dataAttribute + "-" + option);
-                        if (optionData !== null) {
-                            if (typeof optionData === "string") {
-                                if (option.indexOf("on") === 0) optionData = window[optionData]; else if (optionData === "false") optionData = false; else if (optionData === "true") optionData = true;
-                            }
-                            userOptions[option] = optionData;
-                        }
-                    };
-                    if (attrOptions && attrOptions !== "") {
-                        attrOptions = attrOptions.replace(/'/g, '"');
-                        dataoptions = JSON.parse("{" + attrOptions + "}");
-                    }
-                    if (dataoptions) {
-                        optionData = undefined;
-                        for (p in dataoptions) {
-                            if (p.toLowerCase() === "alias") {
-                                optionData = dataoptions[p];
-                                break;
-                            }
-                        }
-                    }
-                    importOption("alias", optionData);
-                    if (userOptions.alias) {
-                        resolveAlias(userOptions.alias, userOptions, opts);
-                    }
-                    for (option in opts) {
-                        if (dataoptions) {
-                            optionData = undefined;
-                            for (p in dataoptions) {
-                                if (p.toLowerCase() === option.toLowerCase()) {
-                                    optionData = dataoptions[p];
-                                    break;
-                                }
-                            }
-                        }
-                        importOption(option, optionData);
-                    }
-                }
-                $.extend(true, opts, userOptions);
-                if (npt.dir === "rtl" || opts.rightAlign) {
-                    npt.style.textAlign = "right";
-                }
-                if (npt.dir === "rtl" || opts.numericInput) {
-                    npt.dir = "ltr";
-                    npt.removeAttribute("dir");
-                    opts.isRTL = true;
-                }
-                return Object.keys(userOptions).length;
-            }
-            if (typeof elems === "string") {
-                elems = document.getElementById(elems) || document.querySelectorAll(elems);
-            }
-            elems = elems.nodeName ? [ elems ] : elems;
-            $.each(elems, function(ndx, el) {
-                var scopedOpts = $.extend(true, {}, that.opts);
-                if (importAttributeOptions(el, scopedOpts, $.extend(true, {}, that.userOptions), that.dataAttribute)) {
-                    var maskset = generateMaskSet(scopedOpts, that.noMasksCache);
-                    if (maskset !== undefined) {
-                        if (el.inputmask !== undefined) {
-                            el.inputmask.opts.autoUnmask = true;
-                            el.inputmask.remove();
-                        }
-                        el.inputmask = new Inputmask(undefined, undefined, true);
-                        el.inputmask.opts = scopedOpts;
-                        el.inputmask.noMasksCache = that.noMasksCache;
-                        el.inputmask.userOptions = $.extend(true, {}, that.userOptions);
-                        el.inputmask.isRTL = scopedOpts.isRTL || scopedOpts.numericInput;
-                        el.inputmask.el = el;
-                        el.inputmask.maskset = maskset;
-                        $.data(el, "_inputmask_opts", scopedOpts);
-                        maskScope.call(el.inputmask, {
-                            action: "mask"
-                        });
-                    }
-                }
-            });
-            return elems && elems[0] ? elems[0].inputmask || this : this;
-        },
-        option: function(options, noremask) {
-            if (typeof options === "string") {
-                return this.opts[options];
-            } else if (typeof options === "object") {
-                $.extend(this.userOptions, options);
-                if (this.el && noremask !== true) {
-                    this.mask(this.el);
-                }
-                return this;
-            }
-        },
-        unmaskedvalue: function(value) {
-            this.maskset = this.maskset || generateMaskSet(this.opts, this.noMasksCache);
-            return maskScope.call(this, {
-                action: "unmaskedvalue",
-                value: value
-            });
-        },
-        remove: function() {
-            return maskScope.call(this, {
-                action: "remove"
-            });
-        },
-        getemptymask: function() {
-            this.maskset = this.maskset || generateMaskSet(this.opts, this.noMasksCache);
-            return maskScope.call(this, {
-                action: "getemptymask"
-            });
-        },
-        hasMaskedValue: function() {
-            return !this.opts.autoUnmask;
-        },
-        isComplete: function() {
-            this.maskset = this.maskset || generateMaskSet(this.opts, this.noMasksCache);
-            return maskScope.call(this, {
-                action: "isComplete"
-            });
-        },
-        getmetadata: function() {
-            this.maskset = this.maskset || generateMaskSet(this.opts, this.noMasksCache);
-            return maskScope.call(this, {
-                action: "getmetadata"
-            });
-        },
-        isValid: function(value) {
-            this.maskset = this.maskset || generateMaskSet(this.opts, this.noMasksCache);
-            return maskScope.call(this, {
-                action: "isValid",
-                value: value
-            });
-        },
-        format: function(value, metadata) {
-            this.maskset = this.maskset || generateMaskSet(this.opts, this.noMasksCache);
-            return maskScope.call(this, {
-                action: "format",
-                value: value,
-                metadata: metadata
-            });
-        },
-        setValue: function(value) {
-            if (this.el) {
-                $(this.el).trigger("setvalue", [ value ]);
-            }
-        },
-        analyseMask: function(mask, regexMask, opts) {
-            var tokenizer = /(?:[?*+]|\{[0-9\+\*]+(?:,[0-9\+\*]*)?(?:\|[0-9\+\*]*)?\})|[^.?*+^${[]()|\\]+|./g, regexTokenizer = /\[\^?]?(?:[^\\\]]+|\\[\S\s]?)*]?|\\(?:0(?:[0-3][0-7]{0,2}|[4-7][0-7]?)?|[1-9][0-9]*|x[0-9A-Fa-f]{2}|u[0-9A-Fa-f]{4}|c[A-Za-z]|[\S\s]?)|\((?:\?[:=!]?)?|(?:[?*+]|\{[0-9]+(?:,[0-9]*)?\})\??|[^.?*+^${[()|\\]+|./g, escaped = false, currentToken = new MaskToken(), match, m, openenings = [], maskTokens = [], openingToken, currentOpeningToken, alternator, lastMatch, groupToken;
-            function MaskToken(isGroup, isOptional, isQuantifier, isAlternator) {
-                this.matches = [];
-                this.openGroup = isGroup || false;
-                this.alternatorGroup = false;
-                this.isGroup = isGroup || false;
-                this.isOptional = isOptional || false;
-                this.isQuantifier = isQuantifier || false;
-                this.isAlternator = isAlternator || false;
-                this.quantifier = {
-                    min: 1,
-                    max: 1
-                };
-            }
-            function insertTestDefinition(mtoken, element, position) {
-                position = position !== undefined ? position : mtoken.matches.length;
-                var prevMatch = mtoken.matches[position - 1];
-                if (regexMask) {
-                    if (element.indexOf("[") === 0 || escaped && /\\d|\\s|\\w]/i.test(element) || element === ".") {
-                        mtoken.matches.splice(position++, 0, {
-                            fn: new RegExp(element, opts.casing ? "i" : ""),
-                            optionality: false,
-                            newBlockMarker: prevMatch === undefined ? "master" : prevMatch.def !== element,
-                            casing: null,
-                            def: element,
-                            placeholder: undefined,
-                            nativeDef: element
-                        });
-                    } else {
-                        if (escaped) element = element[element.length - 1];
-                        $.each(element.split(""), function(ndx, lmnt) {
-                            prevMatch = mtoken.matches[position - 1];
-                            mtoken.matches.splice(position++, 0, {
-                                fn: null,
-                                optionality: false,
-                                newBlockMarker: prevMatch === undefined ? "master" : prevMatch.def !== lmnt && prevMatch.fn !== null,
-                                casing: null,
-                                def: opts.staticDefinitionSymbol || lmnt,
-                                placeholder: opts.staticDefinitionSymbol !== undefined ? lmnt : undefined,
-                                nativeDef: (escaped ? "'" : "") + lmnt
-                            });
-                        });
-                    }
-                    escaped = false;
-                } else {
-                    var maskdef = (opts.definitions ? opts.definitions[element] : undefined) || Inputmask.prototype.definitions[element];
-                    if (maskdef && !escaped) {
-                        mtoken.matches.splice(position++, 0, {
-                            fn: maskdef.validator ? typeof maskdef.validator == "string" ? new RegExp(maskdef.validator, opts.casing ? "i" : "") : new function() {
-                                this.test = maskdef.validator;
-                            }() : new RegExp("."),
-                            optionality: false,
-                            newBlockMarker: prevMatch === undefined ? "master" : prevMatch.def !== (maskdef.definitionSymbol || element),
-                            casing: maskdef.casing,
-                            def: maskdef.definitionSymbol || element,
-                            placeholder: maskdef.placeholder,
-                            nativeDef: element
-                        });
-                    } else {
-                        mtoken.matches.splice(position++, 0, {
-                            fn: null,
-                            optionality: false,
-                            newBlockMarker: prevMatch === undefined ? "master" : prevMatch.def !== element && prevMatch.fn !== null,
-                            casing: null,
-                            def: opts.staticDefinitionSymbol || element,
-                            placeholder: opts.staticDefinitionSymbol !== undefined ? element : undefined,
-                            nativeDef: (escaped ? "'" : "") + element
-                        });
-                        escaped = false;
-                    }
-                }
-            }
-            function verifyGroupMarker(maskToken) {
-                if (maskToken && maskToken.matches) {
-                    $.each(maskToken.matches, function(ndx, token) {
-                        var nextToken = maskToken.matches[ndx + 1];
-                        if ((nextToken === undefined || (nextToken.matches === undefined || nextToken.isQuantifier === false)) && token && token.isGroup) {
-                            token.isGroup = false;
-                            if (!regexMask) {
-                                insertTestDefinition(token, opts.groupmarker[0], 0);
-                                if (token.openGroup !== true) {
-                                    insertTestDefinition(token, opts.groupmarker[1]);
-                                }
-                            }
-                        }
-                        verifyGroupMarker(token);
-                    });
-                }
-            }
-            function defaultCase() {
-                if (openenings.length > 0) {
-                    currentOpeningToken = openenings[openenings.length - 1];
-                    insertTestDefinition(currentOpeningToken, m);
-                    if (currentOpeningToken.isAlternator) {
-                        alternator = openenings.pop();
-                        for (var mndx = 0; mndx < alternator.matches.length; mndx++) {
-                            if (alternator.matches[mndx].isGroup) alternator.matches[mndx].isGroup = false;
-                        }
-                        if (openenings.length > 0) {
-                            currentOpeningToken = openenings[openenings.length - 1];
-                            currentOpeningToken.matches.push(alternator);
-                        } else {
-                            currentToken.matches.push(alternator);
-                        }
-                    }
-                } else {
-                    insertTestDefinition(currentToken, m);
-                }
-            }
-            function reverseTokens(maskToken) {
-                function reverseStatic(st) {
-                    if (st === opts.optionalmarker[0]) st = opts.optionalmarker[1]; else if (st === opts.optionalmarker[1]) st = opts.optionalmarker[0]; else if (st === opts.groupmarker[0]) st = opts.groupmarker[1]; else if (st === opts.groupmarker[1]) st = opts.groupmarker[0];
-                    return st;
-                }
-                maskToken.matches = maskToken.matches.reverse();
-                for (var match in maskToken.matches) {
-                    if (maskToken.matches.hasOwnProperty(match)) {
-                        var intMatch = parseInt(match);
-                        if (maskToken.matches[match].isQuantifier && maskToken.matches[intMatch + 1] && maskToken.matches[intMatch + 1].isGroup) {
-                            var qt = maskToken.matches[match];
-                            maskToken.matches.splice(match, 1);
-                            maskToken.matches.splice(intMatch + 1, 0, qt);
-                        }
-                        if (maskToken.matches[match].matches !== undefined) {
-                            maskToken.matches[match] = reverseTokens(maskToken.matches[match]);
-                        } else {
-                            maskToken.matches[match] = reverseStatic(maskToken.matches[match]);
-                        }
-                    }
-                }
-                return maskToken;
-            }
-            function groupify(matches) {
-                var groupToken = new MaskToken(true);
-                groupToken.openGroup = false;
-                groupToken.matches = matches;
-                return groupToken;
-            }
-            if (regexMask) {
-                opts.optionalmarker[0] = undefined;
-                opts.optionalmarker[1] = undefined;
-            }
-            while (match = regexMask ? regexTokenizer.exec(mask) : tokenizer.exec(mask)) {
-                m = match[0];
-                if (regexMask) {
-                    switch (m.charAt(0)) {
-                      case "?":
-                        m = "{0,1}";
-                        break;
-
-                      case "+":
-                      case "*":
-                        m = "{" + m + "}";
-                        break;
-                    }
-                }
-                if (escaped) {
-                    defaultCase();
-                    continue;
-                }
-                switch (m.charAt(0)) {
-                  case "(?=":
-                    break;
-
-                  case "(?!":
-                    break;
-
-                  case "(?<=":
-                    break;
-
-                  case "(?<!":
-                    break;
-
-                  case opts.escapeChar:
-                    escaped = true;
-                    if (regexMask) {
-                        defaultCase();
-                    }
-                    break;
-
-                  case opts.optionalmarker[1]:
-                  case opts.groupmarker[1]:
-                    openingToken = openenings.pop();
-                    openingToken.openGroup = false;
-                    if (openingToken !== undefined) {
-                        if (openenings.length > 0) {
-                            currentOpeningToken = openenings[openenings.length - 1];
-                            currentOpeningToken.matches.push(openingToken);
-                            if (currentOpeningToken.isAlternator) {
-                                alternator = openenings.pop();
-                                for (var mndx = 0; mndx < alternator.matches.length; mndx++) {
-                                    alternator.matches[mndx].isGroup = false;
-                                    alternator.matches[mndx].alternatorGroup = false;
-                                }
-                                if (openenings.length > 0) {
-                                    currentOpeningToken = openenings[openenings.length - 1];
-                                    currentOpeningToken.matches.push(alternator);
-                                } else {
-                                    currentToken.matches.push(alternator);
-                                }
-                            }
-                        } else {
-                            currentToken.matches.push(openingToken);
-                        }
-                    } else defaultCase();
-                    break;
-
-                  case opts.optionalmarker[0]:
-                    openenings.push(new MaskToken(false, true));
-                    break;
-
-                  case opts.groupmarker[0]:
-                    openenings.push(new MaskToken(true));
-                    break;
-
-                  case opts.quantifiermarker[0]:
-                    var quantifier = new MaskToken(false, false, true);
-                    m = m.replace(/[{}]/g, "");
-                    var mqj = m.split("|"), mq = mqj[0].split(","), mq0 = isNaN(mq[0]) ? mq[0] : parseInt(mq[0]), mq1 = mq.length === 1 ? mq0 : isNaN(mq[1]) ? mq[1] : parseInt(mq[1]);
-                    if (mq0 === "*" || mq0 === "+") {
-                        mq0 = mq1 === "*" ? 0 : 1;
-                    }
-                    quantifier.quantifier = {
-                        min: mq0,
-                        max: mq1,
-                        jit: mqj[1]
-                    };
-                    var matches = openenings.length > 0 ? openenings[openenings.length - 1].matches : currentToken.matches;
-                    match = matches.pop();
-                    if (match.isAlternator) {
-                        matches.push(match);
-                        matches = match.matches;
-                        var groupToken = new MaskToken(true);
-                        var tmpMatch = matches.pop();
-                        matches.push(groupToken);
-                        matches = groupToken.matches;
-                        match = tmpMatch;
-                    }
-                    if (!match.isGroup) {
-                        match = groupify([ match ]);
-                    }
-                    matches.push(match);
-                    matches.push(quantifier);
-                    break;
-
-                  case opts.alternatormarker:
-                    var groupQuantifier = function(matches) {
-                        var lastMatch = matches.pop();
-                        if (lastMatch.isQuantifier) {
-                            lastMatch = groupify([ matches.pop(), lastMatch ]);
-                        }
-                        return lastMatch;
-                    };
-                    if (openenings.length > 0) {
-                        currentOpeningToken = openenings[openenings.length - 1];
-                        var subToken = currentOpeningToken.matches[currentOpeningToken.matches.length - 1];
-                        if (currentOpeningToken.openGroup && (subToken.matches === undefined || subToken.isGroup === false && subToken.isAlternator === false)) {
-                            lastMatch = openenings.pop();
-                        } else {
-                            lastMatch = groupQuantifier(currentOpeningToken.matches);
-                        }
-                    } else {
-                        lastMatch = groupQuantifier(currentToken.matches);
-                    }
-                    if (lastMatch.isAlternator) {
-                        openenings.push(lastMatch);
-                    } else {
-                        if (lastMatch.alternatorGroup) {
-                            alternator = openenings.pop();
-                            lastMatch.alternatorGroup = false;
-                        } else {
-                            alternator = new MaskToken(false, false, false, true);
-                        }
-                        alternator.matches.push(lastMatch);
-                        openenings.push(alternator);
-                        if (lastMatch.openGroup) {
-                            lastMatch.openGroup = false;
-                            var alternatorGroup = new MaskToken(true);
-                            alternatorGroup.alternatorGroup = true;
-                            openenings.push(alternatorGroup);
-                        }
-                    }
-                    break;
-
-                  default:
-                    defaultCase();
-                }
-            }
-            while (openenings.length > 0) {
-                openingToken = openenings.pop();
-                currentToken.matches.push(openingToken);
-            }
-            if (currentToken.matches.length > 0) {
-                verifyGroupMarker(currentToken);
-                maskTokens.push(currentToken);
-            }
-            if (opts.numericInput || opts.isRTL) {
-                reverseTokens(maskTokens[0]);
-            }
-            return maskTokens;
-        },
-        positionColorMask: function(input, template) {
-            input.style.left = template.offsetLeft + "px";
-        }
-    };
-    Inputmask.extendDefaults = function(options) {
-        $.extend(true, Inputmask.prototype.defaults, options);
-    };
-    Inputmask.extendDefinitions = function(definition) {
-        $.extend(true, Inputmask.prototype.definitions, definition);
-    };
-    Inputmask.extendAliases = function(alias) {
-        $.extend(true, Inputmask.prototype.aliases, alias);
-    };
-    Inputmask.format = function(value, options, metadata) {
-        return Inputmask(options).format(value, metadata);
-    };
-    Inputmask.unmask = function(value, options) {
-        return Inputmask(options).unmaskedvalue(value);
-    };
-    Inputmask.isValid = function(value, options) {
-        return Inputmask(options).isValid(value);
-    };
-    Inputmask.remove = function(elems) {
-        if (typeof elems === "string") {
-            elems = document.getElementById(elems) || document.querySelectorAll(elems);
-        }
-        elems = elems.nodeName ? [ elems ] : elems;
-        $.each(elems, function(ndx, el) {
-            if (el.inputmask) el.inputmask.remove();
-        });
-    };
-    Inputmask.setValue = function(elems, value) {
-        if (typeof elems === "string") {
-            elems = document.getElementById(elems) || document.querySelectorAll(elems);
-        }
-        elems = elems.nodeName ? [ elems ] : elems;
-        $.each(elems, function(ndx, el) {
-            if (el.inputmask) el.inputmask.setValue(value); else $(el).trigger("setvalue", [ value ]);
-        });
-    };
-    Inputmask.escapeRegex = function(str) {
-        var specials = [ "/", ".", "*", "+", "?", "|", "(", ")", "[", "]", "{", "}", "\\", "$", "^" ];
-        return str.replace(new RegExp("(\\" + specials.join("|\\") + ")", "gim"), "\\$1");
-    };
-    Inputmask.keyCode = {
-        BACKSPACE: 8,
-        BACKSPACE_SAFARI: 127,
-        DELETE: 46,
-        DOWN: 40,
-        END: 35,
-        ENTER: 13,
-        ESCAPE: 27,
-        HOME: 36,
-        INSERT: 45,
-        LEFT: 37,
-        PAGE_DOWN: 34,
-        PAGE_UP: 33,
-        RIGHT: 39,
-        SPACE: 32,
-        TAB: 9,
-        UP: 38,
-        X: 88,
-        CONTROL: 17
-    };
-    Inputmask.dependencyLib = $;
-    function resolveAlias(aliasStr, options, opts) {
-        var aliasDefinition = Inputmask.prototype.aliases[aliasStr];
-        if (aliasDefinition) {
-            if (aliasDefinition.alias) resolveAlias(aliasDefinition.alias, undefined, opts);
-            $.extend(true, opts, aliasDefinition);
-            $.extend(true, opts, options);
-            return true;
-        } else if (opts.mask === null) {
-            opts.mask = aliasStr;
-        }
-        return false;
-    }
-    function generateMaskSet(opts, nocache) {
-        function generateMask(mask, metadata, opts) {
-            var regexMask = false;
-            if (mask === null || mask === "") {
-                regexMask = opts.regex !== null;
-                if (regexMask) {
-                    mask = opts.regex;
-                    mask = mask.replace(/^(\^)(.*)(\$)$/, "$2");
-                } else {
-                    regexMask = true;
-                    mask = ".*";
-                }
-            }
-            if (mask.length === 1 && opts.greedy === false && opts.repeat !== 0) {
-                opts.placeholder = "";
-            }
-            if (opts.repeat > 0 || opts.repeat === "*" || opts.repeat === "+") {
-                var repeatStart = opts.repeat === "*" ? 0 : opts.repeat === "+" ? 1 : opts.repeat;
-                mask = opts.groupmarker[0] + mask + opts.groupmarker[1] + opts.quantifiermarker[0] + repeatStart + "," + opts.repeat + opts.quantifiermarker[1];
-            }
-            var masksetDefinition, maskdefKey = regexMask ? "regex_" + opts.regex : opts.numericInput ? mask.split("").reverse().join("") : mask;
-            if (Inputmask.prototype.masksCache[maskdefKey] === undefined || nocache === true) {
-                masksetDefinition = {
-                    mask: mask,
-                    maskToken: Inputmask.prototype.analyseMask(mask, regexMask, opts),
-                    validPositions: {},
-                    _buffer: undefined,
-                    buffer: undefined,
-                    tests: {},
-                    excludes: {},
-                    metadata: metadata,
-                    maskLength: undefined,
-                    jitOffset: {}
-                };
-                if (nocache !== true) {
-                    Inputmask.prototype.masksCache[maskdefKey] = masksetDefinition;
-                    masksetDefinition = $.extend(true, {}, Inputmask.prototype.masksCache[maskdefKey]);
-                }
-            } else masksetDefinition = $.extend(true, {}, Inputmask.prototype.masksCache[maskdefKey]);
-            return masksetDefinition;
-        }
-        var ms;
-        if ($.isFunction(opts.mask)) {
-            opts.mask = opts.mask(opts);
-        }
-        if ($.isArray(opts.mask)) {
-            if (opts.mask.length > 1) {
-                if (opts.keepStatic === null) {
-                    opts.keepStatic = "auto";
-                    for (var i = 0; i < opts.mask.length; i++) {
-                        if (opts.mask[i].charAt(0) !== opts.mask[0].charAt(0)) {
-                            opts.keepStatic = true;
-                            break;
-                        }
-                    }
-                }
-                var altMask = opts.groupmarker[0];
-                $.each(opts.isRTL ? opts.mask.reverse() : opts.mask, function(ndx, msk) {
-                    if (altMask.length > 1) {
-                        altMask += opts.groupmarker[1] + opts.alternatormarker + opts.groupmarker[0];
-                    }
-                    if (msk.mask !== undefined && !$.isFunction(msk.mask)) {
-                        altMask += msk.mask;
-                    } else {
-                        altMask += msk;
-                    }
-                });
-                altMask += opts.groupmarker[1];
-                return generateMask(altMask, opts.mask, opts);
-            } else opts.mask = opts.mask.pop();
-        }
-        if (opts.mask && opts.mask.mask !== undefined && !$.isFunction(opts.mask.mask)) {
-            ms = generateMask(opts.mask.mask, opts.mask, opts);
-        } else {
-            ms = generateMask(opts.mask, opts.mask, opts);
-        }
-        return ms;
-    }
-    function isInputEventSupported(eventName) {
-        var el = document.createElement("input"), evName = "on" + eventName, isSupported = evName in el;
-        if (!isSupported) {
-            el.setAttribute(evName, "return;");
-            isSupported = typeof el[evName] === "function";
-        }
-        el = null;
-        return isSupported;
-    }
-    function maskScope(actionObj, maskset, opts) {
-        maskset = maskset || this.maskset;
-        opts = opts || this.opts;
-        var inputmask = this, el = this.el, isRTL = this.isRTL, undoValue, $el, skipKeyPressEvent = false, skipInputEvent = false, ignorable = false, maxLength, mouseEnter = false, colorMask, originalPlaceholder;
-        var getMaskTemplate = function(baseOnInput, minimalPos, includeMode, noJit, clearOptionalTail) {
-            var greedy = opts.greedy;
-            if (clearOptionalTail) opts.greedy = false;
-            minimalPos = minimalPos || 0;
-            var maskTemplate = [], ndxIntlzr, pos = 0, test, testPos, lvp = getLastValidPosition();
-            do {
-                if (baseOnInput === true && getMaskSet().validPositions[pos]) {
-                    testPos = clearOptionalTail && getMaskSet().validPositions[pos].match.optionality === true && getMaskSet().validPositions[pos + 1] === undefined && (getMaskSet().validPositions[pos].generatedInput === true || getMaskSet().validPositions[pos].input == opts.skipOptionalPartCharacter && pos > 0) ? determineTestTemplate(pos, getTests(pos, ndxIntlzr, pos - 1)) : getMaskSet().validPositions[pos];
-                    test = testPos.match;
-                    ndxIntlzr = testPos.locator.slice();
-                    maskTemplate.push(includeMode === true ? testPos.input : includeMode === false ? test.nativeDef : getPlaceholder(pos, test));
-                } else {
-                    testPos = getTestTemplate(pos, ndxIntlzr, pos - 1);
-                    test = testPos.match;
-                    ndxIntlzr = testPos.locator.slice();
-                    var jitMasking = noJit === true ? false : opts.jitMasking !== false ? opts.jitMasking : test.jit;
-                    if (jitMasking === false || jitMasking === undefined || typeof jitMasking === "number" && isFinite(jitMasking) && jitMasking > pos) {
-                        maskTemplate.push(includeMode === false ? test.nativeDef : getPlaceholder(pos, test));
-                    }
-                }
-                if (opts.keepStatic === "auto") {
-                    if (test.newBlockMarker && test.fn !== null) {
-                        opts.keepStatic = pos - 1;
-                    }
-                }
-                pos++;
-            } while ((maxLength === undefined || pos < maxLength) && (test.fn !== null || test.def !== "") || minimalPos > pos);
-            if (maskTemplate[maskTemplate.length - 1] === "") {
-                maskTemplate.pop();
-            }
-            if (includeMode !== false || getMaskSet().maskLength === undefined) getMaskSet().maskLength = pos - 1;
-            opts.greedy = greedy;
-            return maskTemplate;
-        };
-        function getMaskSet() {
-            return maskset;
-        }
-        function resetMaskSet(soft) {
-            var maskset = getMaskSet();
-            maskset.buffer = undefined;
-            if (soft !== true) {
-                maskset.validPositions = {};
-                maskset.p = 0;
-            }
-        }
-        function getLastValidPosition(closestTo, strict, validPositions) {
-            var before = -1, after = -1, valids = validPositions || getMaskSet().validPositions;
-            if (closestTo === undefined) closestTo = -1;
-            for (var posNdx in valids) {
-                var psNdx = parseInt(posNdx);
-                if (valids[psNdx] && (strict || valids[psNdx].generatedInput !== true)) {
-                    if (psNdx <= closestTo) before = psNdx;
-                    if (psNdx >= closestTo) after = psNdx;
-                }
-            }
-            return before === -1 || before == closestTo ? after : after == -1 ? before : closestTo - before < after - closestTo ? before : after;
-        }
-        function getDecisionTaker(tst) {
-            var decisionTaker = tst.locator[tst.alternation];
-            if (typeof decisionTaker == "string" && decisionTaker.length > 0) {
-                decisionTaker = decisionTaker.split(",")[0];
-            }
-            return decisionTaker !== undefined ? decisionTaker.toString() : "";
-        }
-        function getLocator(tst, align) {
-            var locator = (tst.alternation != undefined ? tst.mloc[getDecisionTaker(tst)] : tst.locator).join("");
-            if (locator !== "") while (locator.length < align) locator += "0";
-            return locator;
-        }
-        function determineTestTemplate(pos, tests) {
-            pos = pos > 0 ? pos - 1 : 0;
-            var altTest = getTest(pos), targetLocator = getLocator(altTest), tstLocator, closest, bestMatch;
-            for (var ndx = 0; ndx < tests.length; ndx++) {
-                var tst = tests[ndx];
-                tstLocator = getLocator(tst, targetLocator.length);
-                var distance = Math.abs(tstLocator - targetLocator);
-                if (closest === undefined || tstLocator !== "" && distance < closest || bestMatch && !opts.greedy && bestMatch.match.optionality && bestMatch.match.newBlockMarker === "master" && (!tst.match.optionality || !tst.match.newBlockMarker) || bestMatch && bestMatch.match.optionalQuantifier && !tst.match.optionalQuantifier) {
-                    closest = distance;
-                    bestMatch = tst;
-                }
-            }
-            return bestMatch;
-        }
-        function getTestTemplate(pos, ndxIntlzr, tstPs) {
-            return getMaskSet().validPositions[pos] || determineTestTemplate(pos, getTests(pos, ndxIntlzr ? ndxIntlzr.slice() : ndxIntlzr, tstPs));
-        }
-        function getTest(pos, tests) {
-            if (getMaskSet().validPositions[pos]) {
-                return getMaskSet().validPositions[pos];
-            }
-            return (tests || getTests(pos))[0];
-        }
-        function positionCanMatchDefinition(pos, def) {
-            var valid = false, tests = getTests(pos);
-            for (var tndx = 0; tndx < tests.length; tndx++) {
-                if (tests[tndx].match && tests[tndx].match.def === def) {
-                    valid = true;
-                    break;
-                }
-            }
-            return valid;
-        }
-        function getTests(pos, ndxIntlzr, tstPs) {
-            var maskTokens = getMaskSet().maskToken, testPos = ndxIntlzr ? tstPs : 0, ndxInitializer = ndxIntlzr ? ndxIntlzr.slice() : [ 0 ], matches = [], insertStop = false, latestMatch, cacheDependency = ndxIntlzr ? ndxIntlzr.join("") : "";
-            function resolveTestFromToken(maskToken, ndxInitializer, loopNdx, quantifierRecurse) {
-                function handleMatch(match, loopNdx, quantifierRecurse) {
-                    function isFirstMatch(latestMatch, tokenGroup) {
-                        var firstMatch = $.inArray(latestMatch, tokenGroup.matches) === 0;
-                        if (!firstMatch) {
-                            $.each(tokenGroup.matches, function(ndx, match) {
-                                if (match.isQuantifier === true) firstMatch = isFirstMatch(latestMatch, tokenGroup.matches[ndx - 1]); else if (match.hasOwnProperty("matches")) firstMatch = isFirstMatch(latestMatch, match);
-                                if (firstMatch) return false;
-                            });
-                        }
-                        return firstMatch;
-                    }
-                    function resolveNdxInitializer(pos, alternateNdx, targetAlternation) {
-                        var bestMatch, indexPos;
-                        if (getMaskSet().tests[pos] || getMaskSet().validPositions[pos]) {
-                            $.each(getMaskSet().tests[pos] || [ getMaskSet().validPositions[pos] ], function(ndx, lmnt) {
-                                if (lmnt.mloc[alternateNdx]) {
-                                    bestMatch = lmnt;
-                                    return false;
-                                }
-                                var alternation = targetAlternation !== undefined ? targetAlternation : lmnt.alternation, ndxPos = lmnt.locator[alternation] !== undefined ? lmnt.locator[alternation].toString().indexOf(alternateNdx) : -1;
-                                if ((indexPos === undefined || ndxPos < indexPos) && ndxPos !== -1) {
-                                    bestMatch = lmnt;
-                                    indexPos = ndxPos;
-                                }
-                            });
-                        }
-                        if (bestMatch) {
-                            var bestMatchAltIndex = bestMatch.locator[bestMatch.alternation];
-                            var locator = bestMatch.mloc[alternateNdx] || bestMatch.mloc[bestMatchAltIndex] || bestMatch.locator;
-                            return locator.slice((targetAlternation !== undefined ? targetAlternation : bestMatch.alternation) + 1);
-                        } else {
-                            return targetAlternation !== undefined ? resolveNdxInitializer(pos, alternateNdx) : undefined;
-                        }
-                    }
-                    function isSubsetOf(source, target) {
-                        function expand(pattern) {
-                            var expanded = [], start, end;
-                            for (var i = 0, l = pattern.length; i < l; i++) {
-                                if (pattern.charAt(i) === "-") {
-                                    end = pattern.charCodeAt(i + 1);
-                                    while (++start < end) expanded.push(String.fromCharCode(start));
-                                } else {
-                                    start = pattern.charCodeAt(i);
-                                    expanded.push(pattern.charAt(i));
-                                }
-                            }
-                            return expanded.join("");
-                        }
-                        if (opts.regex && source.match.fn !== null && target.match.fn !== null) {
-                            return expand(target.match.def.replace(/[\[\]]/g, "")).indexOf(expand(source.match.def.replace(/[\[\]]/g, ""))) !== -1;
-                        }
-                        return source.match.def === target.match.nativeDef;
-                    }
-                    function staticCanMatchDefinition(source, target) {
-                        var sloc = source.locator.slice(source.alternation).join(""), tloc = target.locator.slice(target.alternation).join(""), canMatch = sloc == tloc;
-                        canMatch = canMatch && source.match.fn === null && target.match.fn !== null ? target.match.fn.test(source.match.def, getMaskSet(), pos, false, opts, false) : false;
-                        return canMatch;
-                    }
-                    function setMergeLocators(targetMatch, altMatch) {
-                        if (altMatch === undefined || targetMatch.alternation === altMatch.alternation && targetMatch.locator[targetMatch.alternation].toString().indexOf(altMatch.locator[altMatch.alternation]) === -1) {
-                            targetMatch.mloc = targetMatch.mloc || {};
-                            var locNdx = targetMatch.locator[targetMatch.alternation];
-                            if (locNdx === undefined) targetMatch.alternation = undefined; else {
-                                if (typeof locNdx === "string") locNdx = locNdx.split(",")[0];
-                                if (targetMatch.mloc[locNdx] === undefined) targetMatch.mloc[locNdx] = targetMatch.locator.slice();
-                                if (altMatch !== undefined) {
-                                    for (var ndx in altMatch.mloc) {
-                                        if (typeof ndx === "string") ndx = ndx.split(",")[0];
-                                        if (targetMatch.mloc[ndx] === undefined) targetMatch.mloc[ndx] = altMatch.mloc[ndx];
-                                    }
-                                    targetMatch.locator[targetMatch.alternation] = Object.keys(targetMatch.mloc).join(",");
-                                }
-                                return true;
-                            }
-                        }
-                        return false;
-                    }
-                    if (testPos > 500 && quantifierRecurse !== undefined) {
-                        throw "Inputmask: There is probably an error in your mask definition or in the code. Create an issue on github with an example of the mask you are using. " + getMaskSet().mask;
-                    }
-                    if (testPos === pos && match.matches === undefined) {
-                        matches.push({
-                            match: match,
-                            locator: loopNdx.reverse(),
-                            cd: cacheDependency,
-                            mloc: {}
-                        });
-                        return true;
-                    } else if (match.matches !== undefined) {
-                        if (match.isGroup && quantifierRecurse !== match) {
-                            match = handleMatch(maskToken.matches[$.inArray(match, maskToken.matches) + 1], loopNdx, quantifierRecurse);
-                            if (match) return true;
-                        } else if (match.isOptional) {
-                            var optionalToken = match;
-                            match = resolveTestFromToken(match, ndxInitializer, loopNdx, quantifierRecurse);
-                            if (match) {
-                                $.each(matches, function(ndx, mtch) {
-                                    mtch.match.optionality = true;
-                                });
-                                latestMatch = matches[matches.length - 1].match;
-                                if (quantifierRecurse === undefined && isFirstMatch(latestMatch, optionalToken)) {
-                                    insertStop = true;
-                                    testPos = pos;
-                                } else return true;
-                            }
-                        } else if (match.isAlternator) {
-                            var alternateToken = match, malternateMatches = [], maltMatches, currentMatches = matches.slice(), loopNdxCnt = loopNdx.length;
-                            var altIndex = ndxInitializer.length > 0 ? ndxInitializer.shift() : -1;
-                            if (altIndex === -1 || typeof altIndex === "string") {
-                                var currentPos = testPos, ndxInitializerClone = ndxInitializer.slice(), altIndexArr = [], amndx;
-                                if (typeof altIndex == "string") {
-                                    altIndexArr = altIndex.split(",");
-                                } else {
-                                    for (amndx = 0; amndx < alternateToken.matches.length; amndx++) {
-                                        altIndexArr.push(amndx.toString());
-                                    }
-                                }
-                                if (getMaskSet().excludes[pos]) {
-                                    var altIndexArrClone = altIndexArr.slice();
-                                    for (var i = 0, el = getMaskSet().excludes[pos].length; i < el; i++) {
-                                        altIndexArr.splice(altIndexArr.indexOf(getMaskSet().excludes[pos][i].toString()), 1);
-                                    }
-                                    if (altIndexArr.length === 0) {
-                                        getMaskSet().excludes[pos] = undefined;
-                                        altIndexArr = altIndexArrClone;
-                                    }
-                                }
-                                if (opts.keepStatic === true || isFinite(parseInt(opts.keepStatic)) && currentPos >= opts.keepStatic) altIndexArr = altIndexArr.slice(0, 1);
-                                var unMatchedAlternation = false;
-                                for (var ndx = 0; ndx < altIndexArr.length; ndx++) {
-                                    amndx = parseInt(altIndexArr[ndx]);
-                                    matches = [];
-                                    ndxInitializer = typeof altIndex === "string" ? resolveNdxInitializer(testPos, amndx, loopNdxCnt) || ndxInitializerClone.slice() : ndxInitializerClone.slice();
-                                    if (alternateToken.matches[amndx] && handleMatch(alternateToken.matches[amndx], [ amndx ].concat(loopNdx), quantifierRecurse)) match = true; else if (ndx === 0) {
-                                        unMatchedAlternation = true;
-                                    }
-                                    maltMatches = matches.slice();
-                                    testPos = currentPos;
-                                    matches = [];
-                                    for (var ndx1 = 0; ndx1 < maltMatches.length; ndx1++) {
-                                        var altMatch = maltMatches[ndx1], dropMatch = false;
-                                        altMatch.match.jit = altMatch.match.jit || unMatchedAlternation;
-                                        altMatch.alternation = altMatch.alternation || loopNdxCnt;
-                                        setMergeLocators(altMatch);
-                                        for (var ndx2 = 0; ndx2 < malternateMatches.length; ndx2++) {
-                                            var altMatch2 = malternateMatches[ndx2];
-                                            if (typeof altIndex !== "string" || altMatch.alternation !== undefined && $.inArray(altMatch.locator[altMatch.alternation].toString(), altIndexArr) !== -1) {
-                                                if (altMatch.match.nativeDef === altMatch2.match.nativeDef) {
-                                                    dropMatch = true;
-                                                    setMergeLocators(altMatch2, altMatch);
-                                                    break;
-                                                } else if (isSubsetOf(altMatch, altMatch2)) {
-                                                    if (setMergeLocators(altMatch, altMatch2)) {
-                                                        dropMatch = true;
-                                                        malternateMatches.splice(malternateMatches.indexOf(altMatch2), 0, altMatch);
-                                                    }
-                                                    break;
-                                                } else if (isSubsetOf(altMatch2, altMatch)) {
-                                                    setMergeLocators(altMatch2, altMatch);
-                                                    break;
-                                                } else if (staticCanMatchDefinition(altMatch, altMatch2)) {
-                                                    if (setMergeLocators(altMatch, altMatch2)) {
-                                                        dropMatch = true;
-                                                        malternateMatches.splice(malternateMatches.indexOf(altMatch2), 0, altMatch);
-                                                    }
-                                                    break;
-                                                }
-                                            }
-                                        }
-                                        if (!dropMatch) {
-                                            malternateMatches.push(altMatch);
-                                        }
-                                    }
-                                }
-                                matches = currentMatches.concat(malternateMatches);
-                                testPos = pos;
-                                insertStop = matches.length > 0;
-                                match = malternateMatches.length > 0;
-                                ndxInitializer = ndxInitializerClone.slice();
-                            } else match = handleMatch(alternateToken.matches[altIndex] || maskToken.matches[altIndex], [ altIndex ].concat(loopNdx), quantifierRecurse);
-                            if (match) return true;
-                        } else if (match.isQuantifier && quantifierRecurse !== maskToken.matches[$.inArray(match, maskToken.matches) - 1]) {
-                            var qt = match;
-                            for (var qndx = ndxInitializer.length > 0 ? ndxInitializer.shift() : 0; qndx < (isNaN(qt.quantifier.max) ? qndx + 1 : qt.quantifier.max) && testPos <= pos; qndx++) {
-                                var tokenGroup = maskToken.matches[$.inArray(qt, maskToken.matches) - 1];
-                                match = handleMatch(tokenGroup, [ qndx ].concat(loopNdx), tokenGroup);
-                                if (match) {
-                                    latestMatch = matches[matches.length - 1].match;
-                                    latestMatch.optionalQuantifier = qndx >= qt.quantifier.min;
-                                    latestMatch.jit = (qndx || 1) * tokenGroup.matches.indexOf(latestMatch) >= qt.quantifier.jit;
-                                    if (latestMatch.optionalQuantifier && isFirstMatch(latestMatch, tokenGroup)) {
-                                        insertStop = true;
-                                        testPos = pos;
-                                        break;
-                                    }
-                                    if (latestMatch.jit) {
-                                        getMaskSet().jitOffset[pos] = tokenGroup.matches.indexOf(latestMatch);
-                                    }
-                                    return true;
-                                }
-                            }
-                        } else {
-                            match = resolveTestFromToken(match, ndxInitializer, loopNdx, quantifierRecurse);
-                            if (match) return true;
-                        }
-                    } else {
-                        testPos++;
-                    }
-                }
-                for (var tndx = ndxInitializer.length > 0 ? ndxInitializer.shift() : 0; tndx < maskToken.matches.length; tndx++) {
-                    if (maskToken.matches[tndx].isQuantifier !== true) {
-                        var match = handleMatch(maskToken.matches[tndx], [ tndx ].concat(loopNdx), quantifierRecurse);
-                        if (match && testPos === pos) {
-                            return match;
-                        } else if (testPos > pos) {
-                            break;
-                        }
-                    }
-                }
-            }
-            function mergeLocators(pos, tests) {
-                var locator = [];
-                if (!$.isArray(tests)) tests = [ tests ];
-                if (tests.length > 0) {
-                    if (tests[0].alternation === undefined) {
-                        locator = determineTestTemplate(pos, tests.slice()).locator.slice();
-                        if (locator.length === 0) locator = tests[0].locator.slice();
-                    } else {
-                        $.each(tests, function(ndx, tst) {
-                            if (tst.def !== "") {
-                                if (locator.length === 0) locator = tst.locator.slice(); else {
-                                    for (var i = 0; i < locator.length; i++) {
-                                        if (tst.locator[i] && locator[i].toString().indexOf(tst.locator[i]) === -1) {
-                                            locator[i] += "," + tst.locator[i];
-                                        }
-                                    }
-                                }
-                            }
-                        });
-                    }
-                }
-                return locator;
-            }
-            if (pos > -1) {
-                if (ndxIntlzr === undefined) {
-                    var previousPos = pos - 1, test;
-                    while ((test = getMaskSet().validPositions[previousPos] || getMaskSet().tests[previousPos]) === undefined && previousPos > -1) {
-                        previousPos--;
-                    }
-                    if (test !== undefined && previousPos > -1) {
-                        ndxInitializer = mergeLocators(previousPos, test);
-                        cacheDependency = ndxInitializer.join("");
-                        testPos = previousPos;
-                    }
-                }
-                if (getMaskSet().tests[pos] && getMaskSet().tests[pos][0].cd === cacheDependency) {
-                    return getMaskSet().tests[pos];
-                }
-                for (var mtndx = ndxInitializer.shift(); mtndx < maskTokens.length; mtndx++) {
-                    var match = resolveTestFromToken(maskTokens[mtndx], ndxInitializer, [ mtndx ]);
-                    if (match && testPos === pos || testPos > pos) {
-                        break;
-                    }
-                }
-            }
-            if (matches.length === 0 || insertStop) {
-                matches.push({
-                    match: {
-                        fn: null,
-                        optionality: false,
-                        casing: null,
-                        def: "",
-                        placeholder: ""
-                    },
-                    locator: [],
-                    mloc: {},
-                    cd: cacheDependency
-                });
-            }
-            if (ndxIntlzr !== undefined && getMaskSet().tests[pos]) {
-                return $.extend(true, [], matches);
-            }
-            getMaskSet().tests[pos] = $.extend(true, [], matches);
-            return getMaskSet().tests[pos];
-        }
-        function getBufferTemplate() {
-            if (getMaskSet()._buffer === undefined) {
-                getMaskSet()._buffer = getMaskTemplate(false, 1);
-                if (getMaskSet().buffer === undefined) getMaskSet().buffer = getMaskSet()._buffer.slice();
-            }
-            return getMaskSet()._buffer;
-        }
-        function getBuffer(noCache) {
-            if (getMaskSet().buffer === undefined || noCache === true) {
-                getMaskSet().buffer = getMaskTemplate(true, getLastValidPosition(), true);
-                if (getMaskSet()._buffer === undefined) getMaskSet()._buffer = getMaskSet().buffer.slice();
-            }
-            return getMaskSet().buffer;
-        }
-        function refreshFromBuffer(start, end, buffer) {
-            var i, p;
-            if (start === true) {
-                resetMaskSet();
-                start = 0;
-                end = buffer.length;
-            } else {
-                for (i = start; i < end; i++) {
-                    delete getMaskSet().validPositions[i];
-                }
-            }
-            p = start;
-            for (i = start; i < end; i++) {
-                resetMaskSet(true);
-                if (buffer[i] !== opts.skipOptionalPartCharacter) {
-                    var valResult = isValid(p, buffer[i], true, true);
-                    if (valResult !== false) {
-                        resetMaskSet(true);
-                        p = valResult.caret !== undefined ? valResult.caret : valResult.pos + 1;
-                    }
-                }
-            }
-        }
-        function casing(elem, test, pos) {
-            switch (opts.casing || test.casing) {
-              case "upper":
-                elem = elem.toUpperCase();
-                break;
-
-              case "lower":
-                elem = elem.toLowerCase();
-                break;
-
-              case "title":
-                var posBefore = getMaskSet().validPositions[pos - 1];
-                if (pos === 0 || posBefore && posBefore.input === String.fromCharCode(Inputmask.keyCode.SPACE)) {
-                    elem = elem.toUpperCase();
-                } else {
-                    elem = elem.toLowerCase();
-                }
-                break;
-
-              default:
-                if ($.isFunction(opts.casing)) {
-                    var args = Array.prototype.slice.call(arguments);
-                    args.push(getMaskSet().validPositions);
-                    elem = opts.casing.apply(this, args);
-                }
-            }
-            return elem;
-        }
-        function checkAlternationMatch(altArr1, altArr2, na) {
-            var altArrC = opts.greedy ? altArr2 : altArr2.slice(0, 1), isMatch = false, naArr = na !== undefined ? na.split(",") : [], naNdx;
-            for (var i = 0; i < naArr.length; i++) {
-                if ((naNdx = altArr1.indexOf(naArr[i])) !== -1) {
-                    altArr1.splice(naNdx, 1);
-                }
-            }
-            for (var alndx = 0; alndx < altArr1.length; alndx++) {
-                if ($.inArray(altArr1[alndx], altArrC) !== -1) {
-                    isMatch = true;
-                    break;
-                }
-            }
-            return isMatch;
-        }
-        function alternate(pos, c, strict, fromSetValid, rAltPos) {
-            var validPsClone = $.extend(true, {}, getMaskSet().validPositions), lastAlt, alternation, isValidRslt = false, altPos, prevAltPos, i, validPos, decisionPos, lAltPos = rAltPos !== undefined ? rAltPos : getLastValidPosition();
-            if (lAltPos === -1 && rAltPos === undefined) {
-                lastAlt = 0;
-                prevAltPos = getTest(lastAlt);
-                alternation = prevAltPos.alternation;
-            } else {
-                for (;lAltPos >= 0; lAltPos--) {
-                    altPos = getMaskSet().validPositions[lAltPos];
-                    if (altPos && altPos.alternation !== undefined) {
-                        if (prevAltPos && prevAltPos.locator[altPos.alternation] !== altPos.locator[altPos.alternation]) {
-                            break;
-                        }
-                        lastAlt = lAltPos;
-                        alternation = getMaskSet().validPositions[lastAlt].alternation;
-                        prevAltPos = altPos;
-                    }
-                }
-            }
-            if (alternation !== undefined) {
-                decisionPos = parseInt(lastAlt);
-                getMaskSet().excludes[decisionPos] = getMaskSet().excludes[decisionPos] || [];
-                if (pos !== true) {
-                    getMaskSet().excludes[decisionPos].push(getDecisionTaker(prevAltPos));
-                }
-                var validInputsClone = [], staticInputsBeforePos = 0;
-                for (i = decisionPos; i < getLastValidPosition(undefined, true) + 1; i++) {
-                    validPos = getMaskSet().validPositions[i];
-                    if (validPos && validPos.generatedInput !== true) {
-                        validInputsClone.push(validPos.input);
-                    } else if (i < pos) staticInputsBeforePos++;
-                    delete getMaskSet().validPositions[i];
-                }
-                while (getMaskSet().excludes[decisionPos] && getMaskSet().excludes[decisionPos].length < 10) {
-                    var posOffset = staticInputsBeforePos * -1, validInputs = validInputsClone.slice();
-                    getMaskSet().tests[decisionPos] = undefined;
-                    resetMaskSet(true);
-                    isValidRslt = true;
-                    while (validInputs.length > 0) {
-                        var input = validInputs.shift();
-                        if (!(isValidRslt = isValid(getLastValidPosition(undefined, true) + 1, input, false, fromSetValid, true))) {
-                            break;
-                        }
-                    }
-                    if (isValidRslt && c !== undefined) {
-                        var targetLvp = getLastValidPosition(pos) + 1;
-                        for (i = decisionPos; i < getLastValidPosition() + 1; i++) {
-                            validPos = getMaskSet().validPositions[i];
-                            if ((validPos === undefined || validPos.match.fn == null) && i < pos + posOffset) {
-                                posOffset++;
-                            }
-                        }
-                        pos = pos + posOffset;
-                        isValidRslt = isValid(pos > targetLvp ? targetLvp : pos, c, strict, fromSetValid, true);
-                    }
-                    if (!isValidRslt) {
-                        resetMaskSet();
-                        prevAltPos = getTest(decisionPos);
-                        getMaskSet().validPositions = $.extend(true, {}, validPsClone);
-                        if (getMaskSet().excludes[decisionPos]) {
-                            var decisionTaker = getDecisionTaker(prevAltPos);
-                            if (getMaskSet().excludes[decisionPos].indexOf(decisionTaker) !== -1) {
-                                isValidRslt = alternate(pos, c, strict, fromSetValid, decisionPos - 1);
-                                break;
-                            }
-                            getMaskSet().excludes[decisionPos].push(decisionTaker);
-                            for (i = decisionPos; i < getLastValidPosition(undefined, true) + 1; i++) delete getMaskSet().validPositions[i];
-                        } else {
-                            isValidRslt = alternate(pos, c, strict, fromSetValid, decisionPos - 1);
-                            break;
-                        }
-                    } else break;
-                }
-            }
-            getMaskSet().excludes[decisionPos] = undefined;
-            return isValidRslt;
-        }
-        function isValid(pos, c, strict, fromSetValid, fromAlternate, validateOnly) {
-            function isSelection(posObj) {
-                return isRTL ? posObj.begin - posObj.end > 1 || posObj.begin - posObj.end === 1 : posObj.end - posObj.begin > 1 || posObj.end - posObj.begin === 1;
-            }
-            strict = strict === true;
-            var maskPos = pos;
-            if (pos.begin !== undefined) {
-                maskPos = isRTL ? pos.end : pos.begin;
-            }
-            function _isValid(position, c, strict) {
-                var rslt = false;
-                $.each(getTests(position), function(ndx, tst) {
-                    var test = tst.match;
-                    getBuffer(true);
-                    rslt = test.fn != null ? test.fn.test(c, getMaskSet(), position, strict, opts, isSelection(pos)) : (c === test.def || c === opts.skipOptionalPartCharacter) && test.def !== "" ? {
-                        c: getPlaceholder(position, test, true) || test.def,
-                        pos: position
-                    } : false;
-                    if (rslt !== false) {
-                        var elem = rslt.c !== undefined ? rslt.c : c, validatedPos = position;
-                        elem = elem === opts.skipOptionalPartCharacter && test.fn === null ? getPlaceholder(position, test, true) || test.def : elem;
-                        if (rslt.remove !== undefined) {
-                            if (!$.isArray(rslt.remove)) rslt.remove = [ rslt.remove ];
-                            $.each(rslt.remove.sort(function(a, b) {
-                                return b - a;
-                            }), function(ndx, lmnt) {
-                                revalidateMask({
-                                    begin: lmnt,
-                                    end: lmnt + 1
-                                });
-                            });
-                        }
-                        if (rslt.insert !== undefined) {
-                            if (!$.isArray(rslt.insert)) rslt.insert = [ rslt.insert ];
-                            $.each(rslt.insert.sort(function(a, b) {
-                                return a - b;
-                            }), function(ndx, lmnt) {
-                                isValid(lmnt.pos, lmnt.c, true, fromSetValid);
-                            });
-                        }
-                        if (rslt !== true && rslt.pos !== undefined && rslt.pos !== position) {
-                            validatedPos = rslt.pos;
-                        }
-                        if (rslt !== true && rslt.pos === undefined && rslt.c === undefined) {
-                            return false;
-                        }
-                        if (!revalidateMask(pos, $.extend({}, tst, {
-                            input: casing(elem, test, validatedPos)
-                        }), fromSetValid, validatedPos)) {
-                            rslt = false;
-                        }
-                        return false;
-                    }
-                });
-                return rslt;
-            }
-            var result = true, positionsClone = $.extend(true, {}, getMaskSet().validPositions);
-            if ($.isFunction(opts.preValidation) && !strict && fromSetValid !== true && validateOnly !== true) {
-                result = opts.preValidation(getBuffer(), maskPos, c, isSelection(pos), opts, getMaskSet());
-            }
-            if (result === true) {
-                trackbackPositions(undefined, maskPos, true);
-                if (maxLength === undefined || maskPos < maxLength) {
-                    result = _isValid(maskPos, c, strict);
-                    if ((!strict || fromSetValid === true) && result === false && validateOnly !== true) {
-                        var currentPosValid = getMaskSet().validPositions[maskPos];
-                        if (currentPosValid && currentPosValid.match.fn === null && (currentPosValid.match.def === c || c === opts.skipOptionalPartCharacter)) {
-                            result = {
-                                caret: seekNext(maskPos)
-                            };
-                        } else {
-                            if ((opts.insertMode || getMaskSet().validPositions[seekNext(maskPos)] === undefined) && (!isMask(maskPos, true) || getMaskSet().jitOffset[maskPos])) {
-                                if (getMaskSet().jitOffset[maskPos] && getMaskSet().validPositions[seekNext(maskPos)] === undefined) {
-                                    result = isValid(maskPos + getMaskSet().jitOffset[maskPos], c, strict);
-                                    if (result !== false) result.caret = maskPos;
-                                } else for (var nPos = maskPos + 1, snPos = seekNext(maskPos); nPos <= snPos; nPos++) {
-                                    result = _isValid(nPos, c, strict);
-                                    if (result !== false) {
-                                        result = trackbackPositions(maskPos, result.pos !== undefined ? result.pos : nPos) || result;
-                                        maskPos = nPos;
-                                        break;
-                                    }
-                                }
-                            }
-                        }
-                    }
-                }
-                if (result === false && opts.keepStatic !== false && (opts.regex == null || isComplete(getBuffer())) && !strict && fromAlternate !== true) {
-                    result = alternate(maskPos, c, strict, fromSetValid);
-                }
-                if (result === true) {
-                    result = {
-                        pos: maskPos
-                    };
-                }
-            }
-            if ($.isFunction(opts.postValidation) && result !== false && !strict && fromSetValid !== true && validateOnly !== true) {
-                var postResult = opts.postValidation(getBuffer(true), pos.begin !== undefined ? isRTL ? pos.end : pos.begin : pos, result, opts);
-                if (postResult !== undefined) {
-                    if (postResult.refreshFromBuffer && postResult.buffer) {
-                        var refresh = postResult.refreshFromBuffer;
-                        refreshFromBuffer(refresh === true ? refresh : refresh.start, refresh.end, postResult.buffer);
-                    }
-                    result = postResult === true ? result : postResult;
-                }
-            }
-            if (result && result.pos === undefined) {
-                result.pos = maskPos;
-            }
-            if (result === false || validateOnly === true) {
-                resetMaskSet(true);
-                getMaskSet().validPositions = $.extend(true, {}, positionsClone);
-            }
-            return result;
-        }
-        function trackbackPositions(originalPos, newPos, fillOnly) {
-            var result;
-            if (originalPos === undefined) {
-                for (originalPos = newPos - 1; originalPos > 0; originalPos--) {
-                    if (getMaskSet().validPositions[originalPos]) break;
-                }
-            }
-            for (var ps = originalPos; ps < newPos; ps++) {
-                if (getMaskSet().validPositions[ps] === undefined && !isMask(ps, true)) {
-                    var vp = ps == 0 ? getTest(ps) : getMaskSet().validPositions[ps - 1];
-                    if (vp) {
-                        var tests = getTests(ps).slice();
-                        if (tests[tests.length - 1].match.def === "") tests.pop();
-                        var bestMatch = determineTestTemplate(ps, tests);
-                        bestMatch = $.extend({}, bestMatch, {
-                            input: getPlaceholder(ps, bestMatch.match, true) || bestMatch.match.def
-                        });
-                        bestMatch.generatedInput = true;
-                        revalidateMask(ps, bestMatch, true);
-                        if (fillOnly !== true) {
-                            var cvpInput = getMaskSet().validPositions[newPos].input;
-                            getMaskSet().validPositions[newPos] = undefined;
-                            result = isValid(newPos, cvpInput, true, true);
-                        }
-                    }
-                }
-            }
-            return result;
-        }
-        function revalidateMask(pos, validTest, fromSetValid, validatedPos) {
-            function IsEnclosedStatic(pos, valids, selection) {
-                var posMatch = valids[pos];
-                if (posMatch !== undefined && (posMatch.match.fn === null && posMatch.match.optionality !== true || posMatch.input === opts.radixPoint)) {
-                    var prevMatch = selection.begin <= pos - 1 ? valids[pos - 1] && valids[pos - 1].match.fn === null && valids[pos - 1] : valids[pos - 1], nextMatch = selection.end > pos + 1 ? valids[pos + 1] && valids[pos + 1].match.fn === null && valids[pos + 1] : valids[pos + 1];
-                    return prevMatch && nextMatch;
-                }
-                return false;
-            }
-            var begin = pos.begin !== undefined ? pos.begin : pos, end = pos.end !== undefined ? pos.end : pos;
-            if (pos.begin > pos.end) {
-                begin = pos.end;
-                end = pos.begin;
-            }
-            validatedPos = validatedPos !== undefined ? validatedPos : begin;
-            if (begin !== end || opts.insertMode && getMaskSet().validPositions[validatedPos] !== undefined && fromSetValid === undefined) {
-                var positionsClone = $.extend(true, {}, getMaskSet().validPositions), lvp = getLastValidPosition(undefined, true), i;
-                getMaskSet().p = begin;
-                for (i = lvp; i >= begin; i--) {
-                    if (getMaskSet().validPositions[i] && getMaskSet().validPositions[i].match.nativeDef === "+") {
-                        opts.isNegative = false;
-                    }
-                    delete getMaskSet().validPositions[i];
-                }
-                var valid = true, j = validatedPos, vps = getMaskSet().validPositions, needsValidation = false, posMatch = j, i = j;
-                if (validTest) {
-                    getMaskSet().validPositions[validatedPos] = $.extend(true, {}, validTest);
-                    posMatch++;
-                    j++;
-                    if (begin < end) i++;
-                }
-                for (;i <= lvp; i++) {
-                    var t = positionsClone[i];
-                    if (t !== undefined && (i >= end || i >= begin && t.generatedInput !== true && IsEnclosedStatic(i, positionsClone, {
-                        begin: begin,
-                        end: end
-                    }))) {
-                        while (getTest(posMatch).match.def !== "") {
-                            if (needsValidation === false && positionsClone[posMatch] && positionsClone[posMatch].match.nativeDef === t.match.nativeDef) {
-                                getMaskSet().validPositions[posMatch] = $.extend(true, {}, positionsClone[posMatch]);
-                                getMaskSet().validPositions[posMatch].input = t.input;
-                                trackbackPositions(undefined, posMatch, true);
-                                j = posMatch + 1;
-                                valid = true;
-                            } else if (opts.shiftPositions && positionCanMatchDefinition(posMatch, t.match.def)) {
-                                var result = isValid(posMatch, t.input, true, true);
-                                valid = result !== false;
-                                j = result.caret || result.insert ? getLastValidPosition() : posMatch + 1;
-                                needsValidation = true;
-                            } else {
-                                valid = t.generatedInput === true || t.input === opts.radixPoint && opts.numericInput === true;
-                            }
-                            if (valid) break;
-                            if (!valid && posMatch > end && isMask(posMatch, true) && (t.match.fn !== null || posMatch > getMaskSet().maskLength)) {
-                                break;
-                            }
-                            posMatch++;
-                        }
-                        if (getTest(posMatch).match.def == "") valid = false;
-                        posMatch = j;
-                    }
-                    if (!valid) break;
-                }
-                if (!valid) {
-                    getMaskSet().validPositions = $.extend(true, {}, positionsClone);
-                    resetMaskSet(true);
-                    return false;
-                }
-            } else if (validTest) {
-                getMaskSet().validPositions[validatedPos] = $.extend(true, {}, validTest);
-            }
-            resetMaskSet(true);
-            return true;
-        }
-        function isMask(pos, strict) {
-            var test = getTestTemplate(pos).match;
-            if (test.def === "") test = getTest(pos).match;
-            if (test.fn != null) {
-                return test.fn;
-            }
-            if (strict !== true && pos > -1) {
-                var tests = getTests(pos);
-                return tests.length > 1 + (tests[tests.length - 1].match.def === "" ? 1 : 0);
-            }
-            return false;
-        }
-        function seekNext(pos, newBlock) {
-            var position = pos + 1;
-            while (getTest(position).match.def !== "" && (newBlock === true && (getTest(position).match.newBlockMarker !== true || !isMask(position)) || newBlock !== true && !isMask(position))) {
-                position++;
-            }
-            return position;
-        }
-        function seekPrevious(pos, newBlock) {
-            var position = pos, tests;
-            if (position <= 0) return 0;
-            while (--position > 0 && (newBlock === true && getTest(position).match.newBlockMarker !== true || newBlock !== true && !isMask(position) && (tests = getTests(position), 
-            tests.length < 2 || tests.length === 2 && tests[1].match.def === ""))) {}
-            return position;
-        }
-        function writeBuffer(input, buffer, caretPos, event, triggerEvents) {
-            if (event && $.isFunction(opts.onBeforeWrite)) {
-                var result = opts.onBeforeWrite.call(inputmask, event, buffer, caretPos, opts);
-                if (result) {
-                    if (result.refreshFromBuffer) {
-                        var refresh = result.refreshFromBuffer;
-                        refreshFromBuffer(refresh === true ? refresh : refresh.start, refresh.end, result.buffer || buffer);
-                        buffer = getBuffer(true);
-                    }
-                    if (caretPos !== undefined) caretPos = result.caret !== undefined ? result.caret : caretPos;
-                }
-            }
-            if (input !== undefined) {
-                input.inputmask._valueSet(buffer.join(""));
-                if (caretPos !== undefined && (event === undefined || event.type !== "blur")) {
-                    caret(input, caretPos);
-                } else renderColorMask(input, caretPos, buffer.length === 0);
-                if (triggerEvents === true) {
-                    var $input = $(input), nptVal = input.inputmask._valueGet();
-                    skipInputEvent = true;
-                    $input.trigger("input");
-                    setTimeout(function() {
-                        if (nptVal === getBufferTemplate().join("")) {
-                            $input.trigger("cleared");
-                        } else if (isComplete(buffer) === true) {
-                            $input.trigger("complete");
-                        }
-                    }, 0);
-                }
-            }
-        }
-        function getPlaceholder(pos, test, returnPL) {
-            test = test || getTest(pos).match;
-            if (test.placeholder !== undefined || returnPL === true) {
-                return $.isFunction(test.placeholder) ? test.placeholder(opts) : test.placeholder;
-            } else if (test.fn === null) {
-                if (pos > -1 && getMaskSet().validPositions[pos] === undefined) {
-                    var tests = getTests(pos), staticAlternations = [], prevTest;
-                    if (tests.length > 1 + (tests[tests.length - 1].match.def === "" ? 1 : 0)) {
-                        for (var i = 0; i < tests.length; i++) {
-                            if (tests[i].match.optionality !== true && tests[i].match.optionalQuantifier !== true && (tests[i].match.fn === null || (prevTest === undefined || tests[i].match.fn.test(prevTest.match.def, getMaskSet(), pos, true, opts) !== false))) {
-                                staticAlternations.push(tests[i]);
-                                if (tests[i].match.fn === null) prevTest = tests[i];
-                                if (staticAlternations.length > 1) {
-                                    if (/[0-9a-bA-Z]/.test(staticAlternations[0].match.def)) {
-                                        return opts.placeholder.charAt(pos % opts.placeholder.length);
-                                    }
-                                }
-                            }
-                        }
-                    }
-                }
-                return test.def;
-            }
-            return opts.placeholder.charAt(pos % opts.placeholder.length);
-        }
-        function HandleNativePlaceholder(npt, value) {
-            if (ie) {
-                if (npt.inputmask._valueGet() !== value && (npt.placeholder !== value || npt.placeholder === "")) {
-                    var buffer = getBuffer().slice(), nptValue = npt.inputmask._valueGet();
-                    if (nptValue !== value) {
-                        var lvp = getLastValidPosition();
-                        if (lvp === -1 && nptValue === getBufferTemplate().join("")) {
-                            buffer = [];
-                        } else if (lvp !== -1) {
-                            clearOptionalTail(buffer);
-                        }
-                        writeBuffer(npt, buffer);
-                    }
-                }
-            } else if (npt.placeholder !== value) {
-                npt.placeholder = value;
-                if (npt.placeholder === "") npt.removeAttribute("placeholder");
-            }
-        }
-        var EventRuler = {
-            on: function(input, eventName, eventHandler) {
-                var ev = function(e) {
-                    var that = this;
-                    if (that.inputmask === undefined && this.nodeName !== "FORM") {
-                        var imOpts = $.data(that, "_inputmask_opts");
-                        if (imOpts) new Inputmask(imOpts).mask(that); else EventRuler.off(that);
-                    } else if (e.type !== "setvalue" && this.nodeName !== "FORM" && (that.disabled || that.readOnly && !(e.type === "keydown" && (e.ctrlKey && e.keyCode === 67) || opts.tabThrough === false && e.keyCode === Inputmask.keyCode.TAB))) {
-                        e.preventDefault();
-                    } else {
-                        switch (e.type) {
-                          case "input":
-                            if (skipInputEvent === true) {
-                                skipInputEvent = false;
-                                return e.preventDefault();
-                            }
-                            if (mobile) {
-                                var args = arguments;
-                                setTimeout(function() {
-                                    eventHandler.apply(that, args);
-                                    caret(that, that.inputmask.caretPos, undefined, true);
-                                }, 0);
-                                return false;
-                            }
-                            break;
-
-                          case "keydown":
-                            skipKeyPressEvent = false;
-                            skipInputEvent = false;
-                            break;
-
-                          case "keypress":
-                            if (skipKeyPressEvent === true) {
-                                return e.preventDefault();
-                            }
-                            skipKeyPressEvent = true;
-                            break;
-
-                          case "click":
-                            if (iemobile || iphone) {
-                                var args = arguments;
-                                setTimeout(function() {
-                                    eventHandler.apply(that, args);
-                                }, 0);
-                                return false;
-                            }
-                            break;
-                        }
-                        var returnVal = eventHandler.apply(that, arguments);
-                        if (returnVal === false) {
-                            e.preventDefault();
-                            e.stopPropagation();
-                        }
-                        return returnVal;
-                    }
-                };
-                input.inputmask.events[eventName] = input.inputmask.events[eventName] || [];
-                input.inputmask.events[eventName].push(ev);
-                if ($.inArray(eventName, [ "submit", "reset" ]) !== -1) {
-                    if (input.form !== null) $(input.form).on(eventName, ev);
-                } else {
-                    $(input).on(eventName, ev);
-                }
-            },
-            off: function(input, event) {
-                if (input.inputmask && input.inputmask.events) {
-                    var events;
-                    if (event) {
-                        events = [];
-                        events[event] = input.inputmask.events[event];
-                    } else {
-                        events = input.inputmask.events;
-                    }
-                    $.each(events, function(eventName, evArr) {
-                        while (evArr.length > 0) {
-                            var ev = evArr.pop();
-                            if ($.inArray(eventName, [ "submit", "reset" ]) !== -1) {
-                                if (input.form !== null) $(input.form).off(eventName, ev);
-                            } else {
-                                $(input).off(eventName, ev);
-                            }
-                        }
-                        delete input.inputmask.events[eventName];
-                    });
-                }
-            }
-        };
-        var EventHandlers = {
-            keydownEvent: function(e) {
-                var input = this, $input = $(input), k = e.keyCode, pos = caret(input);
-                if (k === Inputmask.keyCode.BACKSPACE || k === Inputmask.keyCode.DELETE || iphone && k === Inputmask.keyCode.BACKSPACE_SAFARI || e.ctrlKey && k === Inputmask.keyCode.X && !isInputEventSupported("cut")) {
-                    e.preventDefault();
-                    handleRemove(input, k, pos);
-                    writeBuffer(input, getBuffer(true), getMaskSet().p, e, input.inputmask._valueGet() !== getBuffer().join(""));
-                } else if (k === Inputmask.keyCode.END || k === Inputmask.keyCode.PAGE_DOWN) {
-                    e.preventDefault();
-                    var caretPos = seekNext(getLastValidPosition());
-                    caret(input, e.shiftKey ? pos.begin : caretPos, caretPos, true);
-                } else if (k === Inputmask.keyCode.HOME && !e.shiftKey || k === Inputmask.keyCode.PAGE_UP) {
-                    e.preventDefault();
-                    caret(input, 0, e.shiftKey ? pos.begin : 0, true);
-                } else if ((opts.undoOnEscape && k === Inputmask.keyCode.ESCAPE || k === 90 && e.ctrlKey) && e.altKey !== true) {
-                    checkVal(input, true, false, undoValue.split(""));
-                    $input.trigger("click");
-                } else if (k === Inputmask.keyCode.INSERT && !(e.shiftKey || e.ctrlKey)) {
-                    opts.insertMode = !opts.insertMode;
-                    input.setAttribute("im-insert", opts.insertMode);
-                } else if (opts.tabThrough === true && k === Inputmask.keyCode.TAB) {
-                    if (e.shiftKey === true) {
-                        if (getTest(pos.begin).match.fn === null) {
-                            pos.begin = seekNext(pos.begin);
-                        }
-                        pos.end = seekPrevious(pos.begin, true);
-                        pos.begin = seekPrevious(pos.end, true);
-                    } else {
-                        pos.begin = seekNext(pos.begin, true);
-                        pos.end = seekNext(pos.begin, true);
-                        if (pos.end < getMaskSet().maskLength) pos.end--;
-                    }
-                    if (pos.begin < getMaskSet().maskLength) {
-                        e.preventDefault();
-                        caret(input, pos.begin, pos.end);
-                    }
-                }
-                opts.onKeyDown.call(this, e, getBuffer(), caret(input).begin, opts);
-                ignorable = $.inArray(k, opts.ignorables) !== -1;
-            },
-            keypressEvent: function(e, checkval, writeOut, strict, ndx) {
-                var input = this, $input = $(input), k = e.which || e.charCode || e.keyCode;
-                if (checkval !== true && (!(e.ctrlKey && e.altKey) && (e.ctrlKey || e.metaKey || ignorable))) {
-                    if (k === Inputmask.keyCode.ENTER && undoValue !== getBuffer().join("")) {
-                        undoValue = getBuffer().join("");
-                        setTimeout(function() {
-                            $input.trigger("change");
-                        }, 0);
-                    }
-                    return true;
-                } else {
-                    if (k) {
-                        if (k === 46 && e.shiftKey === false && opts.radixPoint !== "") k = opts.radixPoint.charCodeAt(0);
-                        var pos = checkval ? {
-                            begin: ndx,
-                            end: ndx
-                        } : caret(input), forwardPosition, c = String.fromCharCode(k), offset = 0;
-                        if (opts._radixDance && opts.numericInput) {
-                            var caretPos = getBuffer().indexOf(opts.radixPoint.charAt(0)) + 1;
-                            if (pos.begin <= caretPos) {
-                                if (k === opts.radixPoint.charCodeAt(0)) offset = 1;
-                                pos.begin -= 1;
-                                pos.end -= 1;
-                            }
-                        }
-                        getMaskSet().writeOutBuffer = true;
-                        var valResult = isValid(pos, c, strict);
-                        if (valResult !== false) {
-                            resetMaskSet(true);
-                            forwardPosition = valResult.caret !== undefined ? valResult.caret : seekNext(valResult.pos.begin ? valResult.pos.begin : valResult.pos);
-                            getMaskSet().p = forwardPosition;
-                        }
-                        forwardPosition = (opts.numericInput && valResult.caret === undefined ? seekPrevious(forwardPosition) : forwardPosition) + offset;
-                        if (writeOut !== false) {
-                            setTimeout(function() {
-                                opts.onKeyValidation.call(input, k, valResult, opts);
-                            }, 0);
-                            if (getMaskSet().writeOutBuffer && valResult !== false) {
-                                var buffer = getBuffer();
-                                writeBuffer(input, buffer, forwardPosition, e, checkval !== true);
-                            }
-                        }
-                        e.preventDefault();
-                        if (checkval) {
-                            if (valResult !== false) valResult.forwardPosition = forwardPosition;
-                            return valResult;
-                        }
-                    }
-                }
-            },
-            pasteEvent: function(e) {
-                var input = this, ev = e.originalEvent || e, $input = $(input), inputValue = input.inputmask._valueGet(true), caretPos = caret(input), tempValue;
-                if (isRTL) {
-                    tempValue = caretPos.end;
-                    caretPos.end = caretPos.begin;
-                    caretPos.begin = tempValue;
-                }
-                var valueBeforeCaret = inputValue.substr(0, caretPos.begin), valueAfterCaret = inputValue.substr(caretPos.end, inputValue.length);
-                if (valueBeforeCaret === (isRTL ? getBufferTemplate().reverse() : getBufferTemplate()).slice(0, caretPos.begin).join("")) valueBeforeCaret = "";
-                if (valueAfterCaret === (isRTL ? getBufferTemplate().reverse() : getBufferTemplate()).slice(caretPos.end).join("")) valueAfterCaret = "";
-                if (window.clipboardData && window.clipboardData.getData) {
-                    inputValue = valueBeforeCaret + window.clipboardData.getData("Text") + valueAfterCaret;
-                } else if (ev.clipboardData && ev.clipboardData.getData) {
-                    inputValue = valueBeforeCaret + ev.clipboardData.getData("text/plain") + valueAfterCaret;
-                } else return true;
-                var pasteValue = inputValue;
-                if ($.isFunction(opts.onBeforePaste)) {
-                    pasteValue = opts.onBeforePaste.call(inputmask, inputValue, opts);
-                    if (pasteValue === false) {
-                        return e.preventDefault();
-                    }
-                    if (!pasteValue) {
-                        pasteValue = inputValue;
-                    }
-                }
-                checkVal(input, false, false, pasteValue.toString().split(""));
-                writeBuffer(input, getBuffer(), seekNext(getLastValidPosition()), e, undoValue !== getBuffer().join(""));
-                return e.preventDefault();
-            },
-            inputFallBackEvent: function(e) {
-                function radixPointHandler(input, inputValue, caretPos) {
-                    if (inputValue.charAt(caretPos.begin - 1) === "." && opts.radixPoint !== "") {
-                        inputValue = inputValue.split("");
-                        inputValue[caretPos.begin - 1] = opts.radixPoint.charAt(0);
-                        inputValue = inputValue.join("");
-                    }
-                    return inputValue;
-                }
-                function ieMobileHandler(input, inputValue, caretPos) {
-                    if (iemobile) {
-                        var inputChar = inputValue.replace(getBuffer().join(""), "");
-                        if (inputChar.length === 1) {
-                            var iv = inputValue.split("");
-                            iv.splice(caretPos.begin, 0, inputChar);
-                            inputValue = iv.join("");
-                        }
-                    }
-                    return inputValue;
-                }
-                var input = this, inputValue = input.inputmask._valueGet();
-                if (getBuffer().join("") !== inputValue) {
-                    var caretPos = caret(input);
-                    inputValue = radixPointHandler(input, inputValue, caretPos);
-                    inputValue = ieMobileHandler(input, inputValue, caretPos);
-                    if (getBuffer().join("") !== inputValue) {
-                        var buffer = getBuffer().join(""), offset = !opts.numericInput && inputValue.length > buffer.length ? -1 : 0, frontPart = inputValue.substr(0, caretPos.begin), backPart = inputValue.substr(caretPos.begin), frontBufferPart = buffer.substr(0, caretPos.begin + offset), backBufferPart = buffer.substr(caretPos.begin + offset);
-                        var selection = caretPos, entries = "", isEntry = false;
-                        if (frontPart !== frontBufferPart) {
-                            var fpl = (isEntry = frontPart.length >= frontBufferPart.length) ? frontPart.length : frontBufferPart.length, i;
-                            for (i = 0; frontPart.charAt(i) === frontBufferPart.charAt(i) && i < fpl; i++) ;
-                            if (isEntry) {
-                                selection.begin = i - offset;
-                                entries += frontPart.slice(i, selection.end);
-                            }
-                        }
-                        if (backPart !== backBufferPart) {
-                            if (backPart.length > backBufferPart.length) {
-                                entries += backPart.slice(0, 1);
-                            } else {
-                                if (backPart.length < backBufferPart.length) {
-                                    selection.end += backBufferPart.length - backPart.length;
-                                    if (!isEntry && opts.radixPoint !== "" && backPart === "" && frontPart.charAt(selection.begin + offset - 1) === opts.radixPoint) {
-                                        selection.begin--;
-                                        entries = opts.radixPoint;
-                                    }
-                                }
-                            }
-                        }
-                        writeBuffer(input, getBuffer(), {
-                            begin: selection.begin + offset,
-                            end: selection.end + offset
-                        });
-                        if (entries.length > 0) {
-                            $.each(entries.split(""), function(ndx, entry) {
-                                var keypress = new $.Event("keypress");
-                                keypress.which = entry.charCodeAt(0);
-                                ignorable = false;
-                                EventHandlers.keypressEvent.call(input, keypress);
-                            });
-                        } else {
-                            if (selection.begin === selection.end - 1) {
-                                selection.begin = seekPrevious(selection.begin + 1);
-                                if (selection.begin === selection.end - 1) {
-                                    caret(input, selection.begin);
-                                } else {
-                                    caret(input, selection.begin, selection.end);
-                                }
-                            }
-                            var keydown = new $.Event("keydown");
-                            keydown.keyCode = opts.numericInput ? Inputmask.keyCode.BACKSPACE : Inputmask.keyCode.DELETE;
-                            EventHandlers.keydownEvent.call(input, keydown);
-                        }
-                        e.preventDefault();
-                    }
-                }
-            },
-            beforeInputEvent: function(e) {
-                if (e.cancelable) {
-                    var input = this;
-                    switch (e.inputType) {
-                      case "insertText":
-                        $.each(e.data.split(""), function(ndx, entry) {
-                            var keypress = new $.Event("keypress");
-                            keypress.which = entry.charCodeAt(0);
-                            ignorable = false;
-                            EventHandlers.keypressEvent.call(input, keypress);
-                        });
-                        return e.preventDefault();
-
-                      case "deleteContentBackward":
-                        var keydown = new $.Event("keydown");
-                        keydown.keyCode = Inputmask.keyCode.BACKSPACE;
-                        EventHandlers.keydownEvent.call(input, keydown);
-                        return e.preventDefault();
-
-                      case "deleteContentForward":
-                        var keydown = new $.Event("keydown");
-                        keydown.keyCode = Inputmask.keyCode.DELETE;
-                        EventHandlers.keydownEvent.call(input, keydown);
-                        return e.preventDefault();
-                    }
-                }
-            },
-            setValueEvent: function(e) {
-                this.inputmask.refreshValue = false;
-                var input = this, value = e && e.detail ? e.detail[0] : arguments[1], value = value || input.inputmask._valueGet(true);
-                if ($.isFunction(opts.onBeforeMask)) value = opts.onBeforeMask.call(inputmask, value, opts) || value;
-                value = value.toString().split("");
-                checkVal(input, true, false, value);
-                undoValue = getBuffer().join("");
-                if ((opts.clearMaskOnLostFocus || opts.clearIncomplete) && input.inputmask._valueGet() === getBufferTemplate().join("")) {
-                    input.inputmask._valueSet("");
-                }
-            },
-            focusEvent: function(e) {
-                var input = this, nptValue = input.inputmask._valueGet();
-                if (opts.showMaskOnFocus) {
-                    if (nptValue !== getBuffer().join("")) {
-                        writeBuffer(input, getBuffer(), seekNext(getLastValidPosition()));
-                    } else if (mouseEnter === false) {
-                        caret(input, seekNext(getLastValidPosition()));
-                    }
-                }
-                if (opts.positionCaretOnTab === true && mouseEnter === false) {
-                    EventHandlers.clickEvent.apply(input, [ e, true ]);
-                }
-                undoValue = getBuffer().join("");
-            },
-            mouseleaveEvent: function(e) {
-                var input = this;
-                mouseEnter = false;
-                if (opts.clearMaskOnLostFocus && document.activeElement !== input) {
-                    HandleNativePlaceholder(input, originalPlaceholder);
-                }
-            },
-            clickEvent: function(e, tabbed) {
-                function doRadixFocus(clickPos) {
-                    if (opts.radixPoint !== "") {
-                        var vps = getMaskSet().validPositions;
-                        if (vps[clickPos] === undefined || vps[clickPos].input === getPlaceholder(clickPos)) {
-                            if (clickPos < seekNext(-1)) return true;
-                            var radixPos = $.inArray(opts.radixPoint, getBuffer());
-                            if (radixPos !== -1) {
-                                for (var vp in vps) {
-                                    if (radixPos < vp && vps[vp].input !== getPlaceholder(vp)) {
-                                        return false;
-                                    }
-                                }
-                                return true;
-                            }
-                        }
-                    }
-                    return false;
-                }
-                var input = this;
-                setTimeout(function() {
-                    if (document.activeElement === input) {
-                        var selectedCaret = caret(input);
-                        if (tabbed) {
-                            if (isRTL) {
-                                selectedCaret.end = selectedCaret.begin;
-                            } else {
-                                selectedCaret.begin = selectedCaret.end;
-                            }
-                        }
-                        if (selectedCaret.begin === selectedCaret.end) {
-                            switch (opts.positionCaretOnClick) {
-                              case "none":
-                                break;
-
-                              case "select":
-                                caret(input, 0, getBuffer().length);
-                                break;
-
-                              case "ignore":
-                                caret(input, seekNext(getLastValidPosition()));
-                                break;
-
-                              case "radixFocus":
-                                if (doRadixFocus(selectedCaret.begin)) {
-                                    var radixPos = getBuffer().join("").indexOf(opts.radixPoint);
-                                    caret(input, opts.numericInput ? seekNext(radixPos) : radixPos);
-                                    break;
-                                }
-
-                              default:
-                                var clickPosition = selectedCaret.begin, lvclickPosition = getLastValidPosition(clickPosition, true), lastPosition = seekNext(lvclickPosition);
-                                if (clickPosition < lastPosition) {
-                                    caret(input, !isMask(clickPosition, true) && !isMask(clickPosition - 1, true) ? seekNext(clickPosition) : clickPosition);
-                                } else {
-                                    var lvp = getMaskSet().validPositions[lvclickPosition], tt = getTestTemplate(lastPosition, lvp ? lvp.match.locator : undefined, lvp), placeholder = getPlaceholder(lastPosition, tt.match);
-                                    if (placeholder !== "" && getBuffer()[lastPosition] !== placeholder && tt.match.optionalQuantifier !== true && tt.match.newBlockMarker !== true || !isMask(lastPosition, opts.keepStatic) && tt.match.def === placeholder) {
-                                        var newPos = seekNext(lastPosition);
-                                        if (clickPosition >= newPos || clickPosition === lastPosition) {
-                                            lastPosition = newPos;
-                                        }
-                                    }
-                                    caret(input, lastPosition);
-                                }
-                                break;
-                            }
-                        }
-                    }
-                }, 0);
-            },
-            cutEvent: function(e) {
-                var input = this, $input = $(input), pos = caret(input), ev = e.originalEvent || e;
-                var clipboardData = window.clipboardData || ev.clipboardData, clipData = isRTL ? getBuffer().slice(pos.end, pos.begin) : getBuffer().slice(pos.begin, pos.end);
-                clipboardData.setData("text", isRTL ? clipData.reverse().join("") : clipData.join(""));
-                if (document.execCommand) document.execCommand("copy");
-                handleRemove(input, Inputmask.keyCode.DELETE, pos);
-                writeBuffer(input, getBuffer(), getMaskSet().p, e, undoValue !== getBuffer().join(""));
-            },
-            blurEvent: function(e) {
-                var $input = $(this), input = this;
-                if (input.inputmask) {
-                    HandleNativePlaceholder(input, originalPlaceholder);
-                    var nptValue = input.inputmask._valueGet(), buffer = getBuffer().slice();
-                    if (nptValue !== "" || colorMask !== undefined) {
-                        if (opts.clearMaskOnLostFocus) {
-                            if (getLastValidPosition() === -1 && nptValue === getBufferTemplate().join("")) {
-                                buffer = [];
-                            } else {
-                                clearOptionalTail(buffer);
-                            }
-                        }
-                        if (isComplete(buffer) === false) {
-                            setTimeout(function() {
-                                $input.trigger("incomplete");
-                            }, 0);
-                            if (opts.clearIncomplete) {
-                                resetMaskSet();
-                                if (opts.clearMaskOnLostFocus) {
-                                    buffer = [];
-                                } else {
-                                    buffer = getBufferTemplate().slice();
-                                }
-                            }
-                        }
-                        writeBuffer(input, buffer, undefined, e);
-                    }
-                    if (undoValue !== getBuffer().join("")) {
-                        undoValue = buffer.join("");
-                        $input.trigger("change");
-                    }
-                }
-            },
-            mouseenterEvent: function(e) {
-                var input = this;
-                mouseEnter = true;
-                if (document.activeElement !== input && opts.showMaskOnHover) {
-                    HandleNativePlaceholder(input, (isRTL ? getBuffer().slice().reverse() : getBuffer()).join(""));
-                }
-            },
-            submitEvent: function(e) {
-                if (undoValue !== getBuffer().join("")) {
-                    $el.trigger("change");
-                }
-                if (opts.clearMaskOnLostFocus && getLastValidPosition() === -1 && el.inputmask._valueGet && el.inputmask._valueGet() === getBufferTemplate().join("")) {
-                    el.inputmask._valueSet("");
-                }
-                if (opts.clearIncomplete && isComplete(getBuffer()) === false) {
-                    el.inputmask._valueSet("");
-                }
-                if (opts.removeMaskOnSubmit) {
-                    el.inputmask._valueSet(el.inputmask.unmaskedvalue(), true);
-                    setTimeout(function() {
-                        writeBuffer(el, getBuffer());
-                    }, 0);
-                }
-            },
-            resetEvent: function(e) {
-                el.inputmask.refreshValue = true;
-                setTimeout(function() {
-                    $el.trigger("setvalue");
-                }, 0);
-            }
-        };
-        function checkVal(input, writeOut, strict, nptvl, initiatingEvent) {
-            var inputmask = this || input.inputmask, inputValue = nptvl.slice(), charCodes = "", initialNdx = -1, result = undefined;
-            function isTemplateMatch(ndx, charCodes) {
-                var charCodeNdx = getMaskTemplate(true, 0, false).slice(ndx, seekNext(ndx)).join("").replace(/'/g, "").indexOf(charCodes);
-                return charCodeNdx !== -1 && !isMask(ndx) && (getTest(ndx).match.nativeDef === charCodes.charAt(0) || getTest(ndx).match.fn === null && getTest(ndx).match.nativeDef === "'" + charCodes.charAt(0) || getTest(ndx).match.nativeDef === " " && (getTest(ndx + 1).match.nativeDef === charCodes.charAt(0) || getTest(ndx + 1).match.fn === null && getTest(ndx + 1).match.nativeDef === "'" + charCodes.charAt(0)));
-            }
-            resetMaskSet();
-            if (!strict && opts.autoUnmask !== true) {
-                var staticInput = getBufferTemplate().slice(0, seekNext(-1)).join(""), matches = inputValue.join("").match(new RegExp("^" + Inputmask.escapeRegex(staticInput), "g"));
-                if (matches && matches.length > 0) {
-                    inputValue.splice(0, matches.length * staticInput.length);
-                    initialNdx = seekNext(initialNdx);
-                }
-            } else {
-                initialNdx = seekNext(initialNdx);
-            }
-            if (initialNdx === -1) {
-                getMaskSet().p = seekNext(initialNdx);
-                initialNdx = 0;
-            } else getMaskSet().p = initialNdx;
-            inputmask.caretPos = {
-                begin: initialNdx
-            };
-            $.each(inputValue, function(ndx, charCode) {
-                if (charCode !== undefined) {
-                    if (getMaskSet().validPositions[ndx] === undefined && inputValue[ndx] === getPlaceholder(ndx) && isMask(ndx, true) && isValid(ndx, inputValue[ndx], true, undefined, undefined, true) === false) {
-                        getMaskSet().p++;
-                    } else {
-                        var keypress = new $.Event("_checkval");
-                        keypress.which = charCode.charCodeAt(0);
-                        charCodes += charCode;
-                        var lvp = getLastValidPosition(undefined, true);
-                        if (!isTemplateMatch(initialNdx, charCodes)) {
-                            result = EventHandlers.keypressEvent.call(input, keypress, true, false, strict, inputmask.caretPos.begin);
-                            if (result) {
-                                initialNdx = inputmask.caretPos.begin + 1;
-                                charCodes = "";
-                            }
-                        } else {
-                            result = EventHandlers.keypressEvent.call(input, keypress, true, false, strict, lvp + 1);
-                        }
-                        if (result) {
-                            writeBuffer(undefined, getBuffer(), result.forwardPosition, keypress, false);
-                            inputmask.caretPos = {
-                                begin: result.forwardPosition,
-                                end: result.forwardPosition
-                            };
-                        }
-                    }
-                }
-            });
-            if (writeOut) writeBuffer(input, getBuffer(), result ? result.forwardPosition : undefined, initiatingEvent || new $.Event("checkval"), initiatingEvent && initiatingEvent.type === "input");
-        }
-        function unmaskedvalue(input) {
-            if (input) {
-                if (input.inputmask === undefined) {
-                    return input.value;
-                }
-                if (input.inputmask && input.inputmask.refreshValue) {
-                    EventHandlers.setValueEvent.call(input);
-                }
-            }
-            var umValue = [], vps = getMaskSet().validPositions;
-            for (var pndx in vps) {
-                if (vps[pndx].match && vps[pndx].match.fn != null) {
-                    umValue.push(vps[pndx].input);
-                }
-            }
-            var unmaskedValue = umValue.length === 0 ? "" : (isRTL ? umValue.reverse() : umValue).join("");
-            if ($.isFunction(opts.onUnMask)) {
-                var bufferValue = (isRTL ? getBuffer().slice().reverse() : getBuffer()).join("");
-                unmaskedValue = opts.onUnMask.call(inputmask, bufferValue, unmaskedValue, opts);
-            }
-            return unmaskedValue;
-        }
-        function caret(input, begin, end, notranslate) {
-            function translatePosition(pos) {
-                if (isRTL && typeof pos === "number" && (!opts.greedy || opts.placeholder !== "") && el) {
-                    pos = el.inputmask._valueGet().length - pos;
-                }
-                return pos;
-            }
-            var range;
-            if (begin !== undefined) {
-                if ($.isArray(begin)) {
-                    end = isRTL ? begin[0] : begin[1];
-                    begin = isRTL ? begin[1] : begin[0];
-                }
-                if (begin.begin !== undefined) {
-                    end = isRTL ? begin.begin : begin.end;
-                    begin = isRTL ? begin.end : begin.begin;
-                }
-                if (typeof begin === "number") {
-                    begin = notranslate ? begin : translatePosition(begin);
-                    end = notranslate ? end : translatePosition(end);
-                    end = typeof end == "number" ? end : begin;
-                    var scrollCalc = parseInt(((input.ownerDocument.defaultView || window).getComputedStyle ? (input.ownerDocument.defaultView || window).getComputedStyle(input, null) : input.currentStyle).fontSize) * end;
-                    input.scrollLeft = scrollCalc > input.scrollWidth ? scrollCalc : 0;
-                    input.inputmask.caretPos = {
-                        begin: begin,
-                        end: end
-                    };
-                    if (input === document.activeElement) {
-                        if ("selectionStart" in input) {
-                            input.selectionStart = begin;
-                            input.selectionEnd = end;
-                        } else if (window.getSelection) {
-                            range = document.createRange();
-                            if (input.firstChild === undefined || input.firstChild === null) {
-                                var textNode = document.createTextNode("");
-                                input.appendChild(textNode);
-                            }
-                            range.setStart(input.firstChild, begin < input.inputmask._valueGet().length ? begin : input.inputmask._valueGet().length);
-                            range.setEnd(input.firstChild, end < input.inputmask._valueGet().length ? end : input.inputmask._valueGet().length);
-                            range.collapse(true);
-                            var sel = window.getSelection();
-                            sel.removeAllRanges();
-                            sel.addRange(range);
-                        } else if (input.createTextRange) {
-                            range = input.createTextRange();
-                            range.collapse(true);
-                            range.moveEnd("character", end);
-                            range.moveStart("character", begin);
-                            range.select();
-                        }
-                        renderColorMask(input, {
-                            begin: begin,
-                            end: end
-                        });
-                    }
-                }
-            } else {
-                if ("selectionStart" in input) {
-                    begin = input.selectionStart;
-                    end = input.selectionEnd;
-                } else if (window.getSelection) {
-                    range = window.getSelection().getRangeAt(0);
-                    if (range.commonAncestorContainer.parentNode === input || range.commonAncestorContainer === input) {
-                        begin = range.startOffset;
-                        end = range.endOffset;
-                    }
-                } else if (document.selection && document.selection.createRange) {
-                    range = document.selection.createRange();
-                    begin = 0 - range.duplicate().moveStart("character", -input.inputmask._valueGet().length);
-                    end = begin + range.text.length;
-                }
-                return {
-                    begin: notranslate ? begin : translatePosition(begin),
-                    end: notranslate ? end : translatePosition(end)
-                };
-            }
-        }
-        function determineLastRequiredPosition(returnDefinition) {
-            var buffer = getMaskTemplate(true, getLastValidPosition(), true, true), bl = buffer.length, pos, lvp = getLastValidPosition(), positions = {}, lvTest = getMaskSet().validPositions[lvp], ndxIntlzr = lvTest !== undefined ? lvTest.locator.slice() : undefined, testPos;
-            for (pos = lvp + 1; pos < buffer.length; pos++) {
-                testPos = getTestTemplate(pos, ndxIntlzr, pos - 1);
-                ndxIntlzr = testPos.locator.slice();
-                positions[pos] = $.extend(true, {}, testPos);
-            }
-            var lvTestAlt = lvTest && lvTest.alternation !== undefined ? lvTest.locator[lvTest.alternation] : undefined;
-            for (pos = bl - 1; pos > lvp; pos--) {
-                testPos = positions[pos];
-                if ((testPos.match.optionality || testPos.match.optionalQuantifier && testPos.match.newBlockMarker || lvTestAlt && (lvTestAlt !== positions[pos].locator[lvTest.alternation] && testPos.match.fn != null || testPos.match.fn === null && testPos.locator[lvTest.alternation] && checkAlternationMatch(testPos.locator[lvTest.alternation].toString().split(","), lvTestAlt.toString().split(",")) && getTests(pos)[0].def !== "")) && buffer[pos] === getPlaceholder(pos, testPos.match)) {
-                    bl--;
-                } else break;
-            }
-            return returnDefinition ? {
-                l: bl,
-                def: positions[bl] ? positions[bl].match : undefined
-            } : bl;
-        }
-        function clearOptionalTail(buffer) {
-            buffer.length = 0;
-            var template = getMaskTemplate(true, 0, true, undefined, true), lmnt, validPos;
-            while (lmnt = template.shift(), lmnt !== undefined) buffer.push(lmnt);
-            return buffer;
-        }
-        function isComplete(buffer) {
-            if ($.isFunction(opts.isComplete)) return opts.isComplete(buffer, opts);
-            if (opts.repeat === "*") return undefined;
-            var complete = false, lrp = determineLastRequiredPosition(true), aml = seekPrevious(lrp.l);
-            if (lrp.def === undefined || lrp.def.newBlockMarker || lrp.def.optionality || lrp.def.optionalQuantifier) {
-                complete = true;
-                for (var i = 0; i <= aml; i++) {
-                    var test = getTestTemplate(i).match;
-                    if (test.fn !== null && getMaskSet().validPositions[i] === undefined && test.optionality !== true && test.optionalQuantifier !== true || test.fn === null && buffer[i] !== getPlaceholder(i, test)) {
-                        complete = false;
-                        break;
-                    }
-                }
-            }
-            return complete;
-        }
-        function handleRemove(input, k, pos, strict, fromIsValid) {
-            if (opts.numericInput || isRTL) {
-                if (k === Inputmask.keyCode.BACKSPACE) {
-                    k = Inputmask.keyCode.DELETE;
-                } else if (k === Inputmask.keyCode.DELETE) {
-                    k = Inputmask.keyCode.BACKSPACE;
-                }
-                if (isRTL) {
-                    var pend = pos.end;
-                    pos.end = pos.begin;
-                    pos.begin = pend;
-                }
-            }
-            if (k === Inputmask.keyCode.BACKSPACE && pos.end - pos.begin < 1) {
-                pos.begin = seekPrevious(pos.begin);
-                if (getMaskSet().validPositions[pos.begin] !== undefined && getMaskSet().validPositions[pos.begin].input === opts.groupSeparator) {
-                    pos.begin--;
-                }
-            } else if (k === Inputmask.keyCode.DELETE && pos.begin === pos.end) {
-                pos.end = isMask(pos.end, true) && (getMaskSet().validPositions[pos.end] && getMaskSet().validPositions[pos.end].input !== opts.radixPoint) ? pos.end + 1 : seekNext(pos.end) + 1;
-                if (getMaskSet().validPositions[pos.begin] !== undefined && getMaskSet().validPositions[pos.begin].input === opts.groupSeparator) {
-                    pos.end++;
-                }
-            }
-            revalidateMask(pos);
-            if (strict !== true && opts.keepStatic !== false || opts.regex !== null) {
-                var result = alternate(true);
-                if (result) {
-                    var newPos = result.caret !== undefined ? result.caret : result.pos ? seekNext(result.pos.begin ? result.pos.begin : result.pos) : getLastValidPosition(-1, true);
-                    if (k !== Inputmask.keyCode.DELETE || pos.begin > newPos) {
-                        pos.begin == newPos;
-                    }
-                }
-            }
-            var lvp = getLastValidPosition(pos.begin, true);
-            if (lvp < pos.begin || pos.begin === -1) {
-                getMaskSet().p = seekNext(lvp);
-            } else if (strict !== true) {
-                getMaskSet().p = pos.begin;
-                if (fromIsValid !== true) {
-                    while (getMaskSet().p < lvp && getMaskSet().validPositions[getMaskSet().p] === undefined) {
-                        getMaskSet().p++;
-                    }
-                }
-            }
-        }
-        function initializeColorMask(input) {
-            var computedStyle = (input.ownerDocument.defaultView || window).getComputedStyle(input, null);
-            function findCaretPos(clientx) {
-                var e = document.createElement("span"), caretPos;
-                for (var style in computedStyle) {
-                    if (isNaN(style) && style.indexOf("font") !== -1) {
-                        e.style[style] = computedStyle[style];
-                    }
-                }
-                e.style.textTransform = computedStyle.textTransform;
-                e.style.letterSpacing = computedStyle.letterSpacing;
-                e.style.position = "absolute";
-                e.style.height = "auto";
-                e.style.width = "auto";
-                e.style.visibility = "hidden";
-                e.style.whiteSpace = "nowrap";
-                document.body.appendChild(e);
-                var inputText = input.inputmask._valueGet(), previousWidth = 0, itl;
-                for (caretPos = 0, itl = inputText.length; caretPos <= itl; caretPos++) {
-                    e.innerHTML += inputText.charAt(caretPos) || "_";
-                    if (e.offsetWidth >= clientx) {
-                        var offset1 = clientx - previousWidth;
-                        var offset2 = e.offsetWidth - clientx;
-                        e.innerHTML = inputText.charAt(caretPos);
-                        offset1 -= e.offsetWidth / 3;
-                        caretPos = offset1 < offset2 ? caretPos - 1 : caretPos;
-                        break;
-                    }
-                    previousWidth = e.offsetWidth;
-                }
-                document.body.removeChild(e);
-                return caretPos;
-            }
-            var template = document.createElement("div");
-            template.style.width = computedStyle.width;
-            template.style.textAlign = computedStyle.textAlign;
-            colorMask = document.createElement("div");
-            input.inputmask.colorMask = colorMask;
-            colorMask.className = "im-colormask";
-            input.parentNode.insertBefore(colorMask, input);
-            input.parentNode.removeChild(input);
-            colorMask.appendChild(input);
-            colorMask.appendChild(template);
-            input.style.left = template.offsetLeft + "px";
-            $(colorMask).on("mouseleave", function(e) {
-                return EventHandlers.mouseleaveEvent.call(input, [ e ]);
-            });
-            $(colorMask).on("mouseenter", function(e) {
-                return EventHandlers.mouseenterEvent.call(input, [ e ]);
-            });
-            $(colorMask).on("click", function(e) {
-                caret(input, findCaretPos(e.clientX));
-                return EventHandlers.clickEvent.call(input, [ e ]);
-            });
-        }
-        function renderColorMask(input, caretPos, clear) {
-            var maskTemplate = [], isStatic = false, test, testPos, ndxIntlzr, pos = 0;
-            function setEntry(entry) {
-                if (entry === undefined) entry = "";
-                if (!isStatic && (test.fn === null || testPos.input === undefined)) {
-                    isStatic = true;
-                    maskTemplate.push("<span class='im-static'>" + entry);
-                } else if (isStatic && (test.fn !== null && testPos.input !== undefined || test.def === "")) {
-                    isStatic = false;
-                    var mtl = maskTemplate.length;
-                    maskTemplate[mtl - 1] = maskTemplate[mtl - 1] + "</span>";
-                    maskTemplate.push(entry);
-                } else maskTemplate.push(entry);
-            }
-            function setCaret() {
-                if (document.activeElement === input) {
-                    maskTemplate.splice(caretPos.begin, 0, caretPos.begin === caretPos.end || caretPos.end > getMaskSet().maskLength ? '<mark class="im-caret" style="border-right-width: 1px;border-right-style: solid;">' : '<mark class="im-caret-select">');
-                    maskTemplate.splice(caretPos.end + 1, 0, "</mark>");
-                }
-            }
-            if (colorMask !== undefined) {
-                var buffer = getBuffer();
-                if (caretPos === undefined) {
-                    caretPos = caret(input);
-                } else if (caretPos.begin === undefined) {
-                    caretPos = {
-                        begin: caretPos,
-                        end: caretPos
-                    };
-                }
-                if (clear !== true) {
-                    var lvp = getLastValidPosition();
-                    do {
-                        if (getMaskSet().validPositions[pos]) {
-                            testPos = getMaskSet().validPositions[pos];
-                            test = testPos.match;
-                            ndxIntlzr = testPos.locator.slice();
-                            setEntry(buffer[pos]);
-                        } else {
-                            testPos = getTestTemplate(pos, ndxIntlzr, pos - 1);
-                            test = testPos.match;
-                            ndxIntlzr = testPos.locator.slice();
-                            if (opts.jitMasking === false || pos < lvp || typeof opts.jitMasking === "number" && isFinite(opts.jitMasking) && opts.jitMasking > pos) {
-                                setEntry(getPlaceholder(pos, test));
-                            } else isStatic = false;
-                        }
-                        pos++;
-                    } while ((maxLength === undefined || pos < maxLength) && (test.fn !== null || test.def !== "") || lvp > pos || isStatic);
-                    if (isStatic) setEntry();
-                    setCaret();
-                }
-                var template = colorMask.getElementsByTagName("div")[0];
-                template.innerHTML = maskTemplate.join("");
-                input.inputmask.positionColorMask(input, template);
-            }
-        }
-        function mask(elem) {
-            function isElementTypeSupported(input, opts) {
-                function patchValueProperty(npt) {
-                    var valueGet;
-                    var valueSet;
-                    function patchValhook(type) {
-                        if ($.valHooks && ($.valHooks[type] === undefined || $.valHooks[type].inputmaskpatch !== true)) {
-                            var valhookGet = $.valHooks[type] && $.valHooks[type].get ? $.valHooks[type].get : function(elem) {
-                                return elem.value;
-                            };
-                            var valhookSet = $.valHooks[type] && $.valHooks[type].set ? $.valHooks[type].set : function(elem, value) {
-                                elem.value = value;
-                                return elem;
-                            };
-                            $.valHooks[type] = {
-                                get: function(elem) {
-                                    if (elem.inputmask) {
-                                        if (elem.inputmask.opts.autoUnmask) {
-                                            return elem.inputmask.unmaskedvalue();
-                                        } else {
-                                            var result = valhookGet(elem);
-                                            return getLastValidPosition(undefined, undefined, elem.inputmask.maskset.validPositions) !== -1 || opts.nullable !== true ? result : "";
-                                        }
-                                    } else return valhookGet(elem);
-                                },
-                                set: function(elem, value) {
-                                    var $elem = $(elem), result;
-                                    result = valhookSet(elem, value);
-                                    if (elem.inputmask) {
-                                        $elem.trigger("setvalue", [ value ]);
-                                    }
-                                    return result;
-                                },
-                                inputmaskpatch: true
-                            };
-                        }
-                    }
-                    function getter() {
-                        if (this.inputmask) {
-                            return this.inputmask.opts.autoUnmask ? this.inputmask.unmaskedvalue() : getLastValidPosition() !== -1 || opts.nullable !== true ? document.activeElement === this && opts.clearMaskOnLostFocus ? (isRTL ? clearOptionalTail(getBuffer().slice()).reverse() : clearOptionalTail(getBuffer().slice())).join("") : valueGet.call(this) : "";
-                        } else return valueGet.call(this);
-                    }
-                    function setter(value) {
-                        valueSet.call(this, value);
-                        if (this.inputmask) {
-                            $(this).trigger("setvalue", [ value ]);
-                        }
-                    }
-                    function installNativeValueSetFallback(npt) {
-                        EventRuler.on(npt, "mouseenter", function(event) {
-                            var $input = $(this), input = this, value = input.inputmask._valueGet();
-                            if (value !== getBuffer().join("")) {
-                                $input.trigger("setvalue");
-                            }
-                        });
-                    }
-                    if (!npt.inputmask.__valueGet) {
-                        if (opts.noValuePatching !== true) {
-                            if (Object.getOwnPropertyDescriptor) {
-                                if (typeof Object.getPrototypeOf !== "function") {
-                                    Object.getPrototypeOf = typeof "test".__proto__ === "object" ? function(object) {
-                                        return object.__proto__;
-                                    } : function(object) {
-                                        return object.constructor.prototype;
-                                    };
-                                }
-                                var valueProperty = Object.getPrototypeOf ? Object.getOwnPropertyDescriptor(Object.getPrototypeOf(npt), "value") : undefined;
-                                if (valueProperty && valueProperty.get && valueProperty.set) {
-                                    valueGet = valueProperty.get;
-                                    valueSet = valueProperty.set;
-                                    Object.defineProperty(npt, "value", {
-                                        get: getter,
-                                        set: setter,
-                                        configurable: true
-                                    });
-                                } else if (npt.tagName !== "INPUT") {
-                                    valueGet = function() {
-                                        return this.textContent;
-                                    };
-                                    valueSet = function(value) {
-                                        this.textContent = value;
-                                    };
-                                    Object.defineProperty(npt, "value", {
-                                        get: getter,
-                                        set: setter,
-                                        configurable: true
-                                    });
-                                }
-                            } else if (document.__lookupGetter__ && npt.__lookupGetter__("value")) {
-                                valueGet = npt.__lookupGetter__("value");
-                                valueSet = npt.__lookupSetter__("value");
-                                npt.__defineGetter__("value", getter);
-                                npt.__defineSetter__("value", setter);
-                            }
-                            npt.inputmask.__valueGet = valueGet;
-                            npt.inputmask.__valueSet = valueSet;
-                        }
-                        npt.inputmask._valueGet = function(overruleRTL) {
-                            return isRTL && overruleRTL !== true ? valueGet.call(this.el).split("").reverse().join("") : valueGet.call(this.el);
-                        };
-                        npt.inputmask._valueSet = function(value, overruleRTL) {
-                            valueSet.call(this.el, value === null || value === undefined ? "" : overruleRTL !== true && isRTL ? value.split("").reverse().join("") : value);
-                        };
-                        if (valueGet === undefined) {
-                            valueGet = function() {
-                                return this.value;
-                            };
-                            valueSet = function(value) {
-                                this.value = value;
-                            };
-                            patchValhook(npt.type);
-                            installNativeValueSetFallback(npt);
-                        }
-                    }
-                }
-                var elementType = input.getAttribute("type");
-                var isSupported = input.tagName === "INPUT" && $.inArray(elementType, opts.supportsInputType) !== -1 || input.isContentEditable || input.tagName === "TEXTAREA";
-                if (!isSupported) {
-                    if (input.tagName === "INPUT") {
-                        var el = document.createElement("input");
-                        el.setAttribute("type", elementType);
-                        isSupported = el.type === "text";
-                        el = null;
-                    } else isSupported = "partial";
-                }
-                if (isSupported !== false) {
-                    patchValueProperty(input);
-                } else input.inputmask = undefined;
-                return isSupported;
-            }
-            EventRuler.off(elem);
-            var isSupported = isElementTypeSupported(elem, opts);
-            if (isSupported !== false) {
-                el = elem;
-                $el = $(el);
-                originalPlaceholder = el.placeholder;
-                maxLength = el !== undefined ? el.maxLength : undefined;
-                if (maxLength === -1) maxLength = undefined;
-                if (opts.colorMask === true) {
-                    initializeColorMask(el);
-                }
-                if (mobile) {
-                    if ("inputMode" in el) {
-                        el.inputmode = opts.inputmode;
-                        el.setAttribute("inputmode", opts.inputmode);
-                    }
-                    if (opts.disablePredictiveText === true) {
-                        if ("autocorrect" in el) {
-                            el.autocorrect = false;
-                        } else {
-                            if (opts.colorMask !== true) {
-                                initializeColorMask(el);
-                            }
-                            el.type = "password";
-                        }
-                    }
-                }
-                if (isSupported === true) {
-                    el.setAttribute("im-insert", opts.insertMode);
-                    EventRuler.on(el, "submit", EventHandlers.submitEvent);
-                    EventRuler.on(el, "reset", EventHandlers.resetEvent);
-                    EventRuler.on(el, "blur", EventHandlers.blurEvent);
-                    EventRuler.on(el, "focus", EventHandlers.focusEvent);
-                    if (opts.colorMask !== true) {
-                        EventRuler.on(el, "click", EventHandlers.clickEvent);
-                        EventRuler.on(el, "mouseleave", EventHandlers.mouseleaveEvent);
-                        EventRuler.on(el, "mouseenter", EventHandlers.mouseenterEvent);
-                    }
-                    EventRuler.on(el, "paste", EventHandlers.pasteEvent);
-                    EventRuler.on(el, "cut", EventHandlers.cutEvent);
-                    EventRuler.on(el, "complete", opts.oncomplete);
-                    EventRuler.on(el, "incomplete", opts.onincomplete);
-                    EventRuler.on(el, "cleared", opts.oncleared);
-                    if (!mobile && opts.inputEventOnly !== true) {
-                        EventRuler.on(el, "keydown", EventHandlers.keydownEvent);
-                        EventRuler.on(el, "keypress", EventHandlers.keypressEvent);
-                    } else {
-                        el.removeAttribute("maxLength");
-                    }
-                    EventRuler.on(el, "input", EventHandlers.inputFallBackEvent);
-                    EventRuler.on(el, "beforeinput", EventHandlers.beforeInputEvent);
-                }
-                EventRuler.on(el, "setvalue", EventHandlers.setValueEvent);
-                undoValue = getBufferTemplate().join("");
-                if (el.inputmask._valueGet(true) !== "" || opts.clearMaskOnLostFocus === false || document.activeElement === el) {
-                    var initialValue = $.isFunction(opts.onBeforeMask) ? opts.onBeforeMask.call(inputmask, el.inputmask._valueGet(true), opts) || el.inputmask._valueGet(true) : el.inputmask._valueGet(true);
-                    if (initialValue !== "") checkVal(el, true, false, initialValue.split(""));
-                    var buffer = getBuffer().slice();
-                    undoValue = buffer.join("");
-                    if (isComplete(buffer) === false) {
-                        if (opts.clearIncomplete) {
-                            resetMaskSet();
-                        }
-                    }
-                    if (opts.clearMaskOnLostFocus && document.activeElement !== el) {
-                        if (getLastValidPosition() === -1) {
-                            buffer = [];
-                        } else {
-                            clearOptionalTail(buffer);
-                        }
-                    }
-                    if (opts.clearMaskOnLostFocus === false || opts.showMaskOnFocus && document.activeElement === el || el.inputmask._valueGet(true) !== "") writeBuffer(el, buffer);
-                    if (document.activeElement === el) {
-                        caret(el, seekNext(getLastValidPosition()));
-                    }
-                }
-            }
-        }
-        var valueBuffer;
-        if (actionObj !== undefined) {
-            switch (actionObj.action) {
-              case "isComplete":
-                el = actionObj.el;
-                return isComplete(getBuffer());
-
-              case "unmaskedvalue":
-                if (el === undefined || actionObj.value !== undefined) {
-                    valueBuffer = actionObj.value;
-                    valueBuffer = ($.isFunction(opts.onBeforeMask) ? opts.onBeforeMask.call(inputmask, valueBuffer, opts) || valueBuffer : valueBuffer).split("");
-                    checkVal.call(this, undefined, false, false, valueBuffer);
-                    if ($.isFunction(opts.onBeforeWrite)) opts.onBeforeWrite.call(inputmask, undefined, getBuffer(), 0, opts);
-                }
-                return unmaskedvalue(el);
-
-              case "mask":
-                mask(el);
-                break;
-
-              case "format":
-                valueBuffer = ($.isFunction(opts.onBeforeMask) ? opts.onBeforeMask.call(inputmask, actionObj.value, opts) || actionObj.value : actionObj.value).split("");
-                checkVal.call(this, undefined, true, false, valueBuffer);
-                if (actionObj.metadata) {
-                    return {
-                        value: isRTL ? getBuffer().slice().reverse().join("") : getBuffer().join(""),
-                        metadata: maskScope.call(this, {
-                            action: "getmetadata"
-                        }, maskset, opts)
-                    };
-                }
-                return isRTL ? getBuffer().slice().reverse().join("") : getBuffer().join("");
-
-              case "isValid":
-                if (actionObj.value) {
-                    valueBuffer = actionObj.value.split("");
-                    checkVal.call(this, undefined, true, true, valueBuffer);
-                } else {
-                    actionObj.value = getBuffer().join("");
-                }
-                var buffer = getBuffer();
-                var rl = determineLastRequiredPosition(), lmib = buffer.length - 1;
-                for (;lmib > rl; lmib--) {
-                    if (isMask(lmib)) break;
-                }
-                buffer.splice(rl, lmib + 1 - rl);
-                return isComplete(buffer) && actionObj.value === getBuffer().join("");
-
-              case "getemptymask":
-                return getBufferTemplate().join("");
-
-              case "remove":
-                if (el && el.inputmask) {
-                    $.data(el, "_inputmask_opts", null);
-                    $el = $(el);
-                    el.inputmask._valueSet(opts.autoUnmask ? unmaskedvalue(el) : el.inputmask._valueGet(true));
-                    EventRuler.off(el);
-                    if (el.inputmask.colorMask) {
-                        colorMask = el.inputmask.colorMask;
-                        colorMask.removeChild(el);
-                        colorMask.parentNode.insertBefore(el, colorMask);
-                        colorMask.parentNode.removeChild(colorMask);
-                    }
-                    var valueProperty;
-                    if (Object.getOwnPropertyDescriptor && Object.getPrototypeOf) {
-                        valueProperty = Object.getOwnPropertyDescriptor(Object.getPrototypeOf(el), "value");
-                        if (valueProperty) {
-                            if (el.inputmask.__valueGet) {
-                                Object.defineProperty(el, "value", {
-                                    get: el.inputmask.__valueGet,
-                                    set: el.inputmask.__valueSet,
-                                    configurable: true
-                                });
-                            }
-                        }
-                    } else if (document.__lookupGetter__ && el.__lookupGetter__("value")) {
-                        if (el.inputmask.__valueGet) {
-                            el.__defineGetter__("value", el.inputmask.__valueGet);
-                            el.__defineSetter__("value", el.inputmask.__valueSet);
-                        }
-                    }
-                    el.inputmask = undefined;
-                }
-                return el;
-                break;
-
-              case "getmetadata":
-                if ($.isArray(maskset.metadata)) {
-                    var maskTarget = getMaskTemplate(true, 0, false).join("");
-                    $.each(maskset.metadata, function(ndx, mtdt) {
-                        if (mtdt.mask === maskTarget) {
-                            maskTarget = mtdt;
-                            return false;
-                        }
-                    });
-                    return maskTarget;
-                }
-                return maskset.metadata;
-            }
-        }
-    }
-    return Inputmask;
-});

+ 0 - 553
plugins/inputmask/inputmask/inputmask.numeric.extensions.js

@@ -1,553 +0,0 @@
-/*!
-* inputmask.numeric.extensions.js
-* https://github.com/RobinHerbots/Inputmask
-* Copyright (c) 2010 - 2019 Robin Herbots
-* Licensed under the MIT license (http://www.opensource.org/licenses/mit-license.php)
-* Version: 4.0.9
-*/
-
-(function(factory) {
-    if (typeof define === "function" && define.amd) {
-        define([ "./inputmask" ], factory);
-    } else if (typeof exports === "object") {
-        module.exports = factory(require("./inputmask"));
-    } else {
-        factory(window.Inputmask);
-    }
-})(function(Inputmask) {
-    var $ = Inputmask.dependencyLib;
-    function autoEscape(txt, opts) {
-        var escapedTxt = "";
-        for (var i = 0; i < txt.length; i++) {
-            if (Inputmask.prototype.definitions[txt.charAt(i)] || opts.definitions[txt.charAt(i)] || opts.optionalmarker.start === txt.charAt(i) || opts.optionalmarker.end === txt.charAt(i) || opts.quantifiermarker.start === txt.charAt(i) || opts.quantifiermarker.end === txt.charAt(i) || opts.groupmarker.start === txt.charAt(i) || opts.groupmarker.end === txt.charAt(i) || opts.alternatormarker === txt.charAt(i)) {
-                escapedTxt += "\\" + txt.charAt(i);
-            } else escapedTxt += txt.charAt(i);
-        }
-        return escapedTxt;
-    }
-    function alignDigits(buffer, digits, opts) {
-        if (digits > 0) {
-            var radixPosition = $.inArray(opts.radixPoint, buffer);
-            if (radixPosition === -1) {
-                buffer.push(opts.radixPoint);
-                radixPosition = buffer.length - 1;
-            }
-            for (var i = 1; i <= digits; i++) {
-                buffer[radixPosition + i] = buffer[radixPosition + i] || "0";
-            }
-        }
-        return buffer;
-    }
-    Inputmask.extendAliases({
-        numeric: {
-            mask: function(opts) {
-                if (opts.repeat !== 0 && isNaN(opts.integerDigits)) {
-                    opts.integerDigits = opts.repeat;
-                }
-                opts.repeat = 0;
-                if (opts.groupSeparator === opts.radixPoint && opts.digits && opts.digits !== "0") {
-                    if (opts.radixPoint === ".") {
-                        opts.groupSeparator = ",";
-                    } else if (opts.radixPoint === ",") {
-                        opts.groupSeparator = ".";
-                    } else opts.groupSeparator = "";
-                }
-                if (opts.groupSeparator === " ") {
-                    opts.skipOptionalPartCharacter = undefined;
-                }
-                opts.autoGroup = opts.autoGroup && opts.groupSeparator !== "";
-                if (opts.autoGroup) {
-                    if (typeof opts.groupSize == "string" && isFinite(opts.groupSize)) opts.groupSize = parseInt(opts.groupSize);
-                    if (isFinite(opts.integerDigits)) {
-                        var seps = Math.floor(opts.integerDigits / opts.groupSize);
-                        var mod = opts.integerDigits % opts.groupSize;
-                        opts.integerDigits = parseInt(opts.integerDigits) + (mod === 0 ? seps - 1 : seps);
-                        if (opts.integerDigits < 1) {
-                            opts.integerDigits = "*";
-                        }
-                    }
-                }
-                if (opts.placeholder.length > 1) {
-                    opts.placeholder = opts.placeholder.charAt(0);
-                }
-                if (opts.positionCaretOnClick === "radixFocus" && (opts.placeholder === "" && opts.integerOptional === false)) {
-                    opts.positionCaretOnClick = "lvp";
-                }
-                opts.definitions[";"] = opts.definitions["~"];
-                opts.definitions[";"].definitionSymbol = "~";
-                if (opts.numericInput === true) {
-                    opts.positionCaretOnClick = opts.positionCaretOnClick === "radixFocus" ? "lvp" : opts.positionCaretOnClick;
-                    opts.digitsOptional = false;
-                    if (isNaN(opts.digits)) opts.digits = 2;
-                    opts.decimalProtect = false;
-                }
-                var mask = "[+]";
-                mask += autoEscape(opts.prefix, opts);
-                if (opts.integerOptional === true) {
-                    mask += "~{1," + opts.integerDigits + "}";
-                } else mask += "~{" + opts.integerDigits + "}";
-                if (opts.digits !== undefined) {
-                    var radixDef = opts.decimalProtect ? ":" : opts.radixPoint;
-                    var dq = opts.digits.toString().split(",");
-                    if (isFinite(dq[0]) && dq[1] && isFinite(dq[1])) {
-                        mask += radixDef + ";{" + opts.digits + "}";
-                    } else if (isNaN(opts.digits) || parseInt(opts.digits) > 0) {
-                        if (opts.digitsOptional) {
-                            mask += "[" + radixDef + ";{1," + opts.digits + "}]";
-                        } else mask += radixDef + ";{" + opts.digits + "}";
-                    }
-                }
-                mask += autoEscape(opts.suffix, opts);
-                mask += "[-]";
-                opts.greedy = false;
-                return mask;
-            },
-            placeholder: "",
-            greedy: false,
-            digits: "*",
-            digitsOptional: true,
-            enforceDigitsOnBlur: false,
-            radixPoint: ".",
-            positionCaretOnClick: "radixFocus",
-            groupSize: 3,
-            groupSeparator: "",
-            autoGroup: false,
-            allowMinus: true,
-            negationSymbol: {
-                front: "-",
-                back: ""
-            },
-            integerDigits: "+",
-            integerOptional: true,
-            prefix: "",
-            suffix: "",
-            rightAlign: true,
-            decimalProtect: true,
-            min: null,
-            max: null,
-            step: 1,
-            insertMode: true,
-            autoUnmask: false,
-            unmaskAsNumber: false,
-            inputType: "text",
-            inputmode: "numeric",
-            preValidation: function(buffer, pos, c, isSelection, opts, maskset) {
-                if (c === "-" || c === opts.negationSymbol.front) {
-                    if (opts.allowMinus !== true) return false;
-                    opts.isNegative = opts.isNegative === undefined ? true : !opts.isNegative;
-                    if (buffer.join("") === "") return true;
-                    return {
-                        caret: maskset.validPositions[pos] ? pos : undefined,
-                        dopost: true
-                    };
-                }
-                if (isSelection === false && c === opts.radixPoint && (opts.digits !== undefined && (isNaN(opts.digits) || parseInt(opts.digits) > 0))) {
-                    var radixPos = $.inArray(opts.radixPoint, buffer);
-                    if (radixPos !== -1 && maskset.validPositions[radixPos] !== undefined) {
-                        if (opts.numericInput === true) {
-                            return pos === radixPos;
-                        }
-                        return {
-                            caret: radixPos + 1
-                        };
-                    }
-                }
-                return true;
-            },
-            postValidation: function(buffer, pos, currentResult, opts) {
-                function buildPostMask(buffer, opts) {
-                    var postMask = "";
-                    postMask += "(" + opts.groupSeparator + "*{" + opts.groupSize + "}){*}";
-                    if (opts.radixPoint !== "") {
-                        var radixSplit = buffer.join("").split(opts.radixPoint);
-                        if (radixSplit[1]) {
-                            postMask += opts.radixPoint + "*{" + radixSplit[1].match(/^\d*\??\d*/)[0].length + "}";
-                        }
-                    }
-                    return postMask;
-                }
-                var suffix = opts.suffix.split(""), prefix = opts.prefix.split("");
-                if (currentResult.pos === undefined && currentResult.caret !== undefined && currentResult.dopost !== true) return currentResult;
-                var caretPos = currentResult.caret !== undefined ? currentResult.caret : currentResult.pos;
-                var maskedValue = buffer.slice();
-                if (opts.numericInput) {
-                    caretPos = maskedValue.length - caretPos - 1;
-                    maskedValue = maskedValue.reverse();
-                }
-                var charAtPos = maskedValue[caretPos];
-                if (charAtPos === opts.groupSeparator) {
-                    caretPos += 1;
-                    charAtPos = maskedValue[caretPos];
-                }
-                if (caretPos === maskedValue.length - opts.suffix.length - 1 && charAtPos === opts.radixPoint) return currentResult;
-                if (charAtPos !== undefined) {
-                    if (charAtPos !== opts.radixPoint && charAtPos !== opts.negationSymbol.front && charAtPos !== opts.negationSymbol.back) {
-                        maskedValue[caretPos] = "?";
-                        if (opts.prefix.length > 0 && caretPos >= (opts.isNegative === false ? 1 : 0) && caretPos < opts.prefix.length - 1 + (opts.isNegative === false ? 1 : 0)) {
-                            prefix[caretPos - (opts.isNegative === false ? 1 : 0)] = "?";
-                        } else if (opts.suffix.length > 0 && caretPos >= maskedValue.length - opts.suffix.length - (opts.isNegative === false ? 1 : 0)) {
-                            suffix[caretPos - (maskedValue.length - opts.suffix.length - (opts.isNegative === false ? 1 : 0))] = "?";
-                        }
-                    }
-                }
-                prefix = prefix.join("");
-                suffix = suffix.join("");
-                var processValue = maskedValue.join("").replace(prefix, "");
-                processValue = processValue.replace(suffix, "");
-                processValue = processValue.replace(new RegExp(Inputmask.escapeRegex(opts.groupSeparator), "g"), "");
-                processValue = processValue.replace(new RegExp("[-" + Inputmask.escapeRegex(opts.negationSymbol.front) + "]", "g"), "");
-                processValue = processValue.replace(new RegExp(Inputmask.escapeRegex(opts.negationSymbol.back) + "$"), "");
-                if (isNaN(opts.placeholder)) {
-                    processValue = processValue.replace(new RegExp(Inputmask.escapeRegex(opts.placeholder), "g"), "");
-                }
-                if (processValue.length > 1 && processValue.indexOf(opts.radixPoint) !== 1) {
-                    if (charAtPos === "0") {
-                        processValue = processValue.replace(/^\?/g, "");
-                    }
-                    processValue = processValue.replace(/^0/g, "");
-                }
-                if (processValue.charAt(0) === opts.radixPoint && opts.radixPoint !== "" && opts.numericInput !== true) {
-                    processValue = "0" + processValue;
-                }
-                if (processValue !== "") {
-                    processValue = processValue.split("");
-                    if ((!opts.digitsOptional || opts.enforceDigitsOnBlur && currentResult.event === "blur") && isFinite(opts.digits)) {
-                        var radixPosition = $.inArray(opts.radixPoint, processValue);
-                        var rpb = $.inArray(opts.radixPoint, maskedValue);
-                        if (radixPosition === -1) {
-                            processValue.push(opts.radixPoint);
-                            radixPosition = processValue.length - 1;
-                        }
-                        for (var i = 1; i <= opts.digits; i++) {
-                            if ((!opts.digitsOptional || opts.enforceDigitsOnBlur && currentResult.event === "blur") && (processValue[radixPosition + i] === undefined || processValue[radixPosition + i] === opts.placeholder.charAt(0))) {
-                                processValue[radixPosition + i] = currentResult.placeholder || opts.placeholder.charAt(0);
-                            } else if (rpb !== -1 && maskedValue[rpb + i] !== undefined) {
-                                processValue[radixPosition + i] = processValue[radixPosition + i] || maskedValue[rpb + i];
-                            }
-                        }
-                    }
-                    if (opts.autoGroup === true && opts.groupSeparator !== "" && (charAtPos !== opts.radixPoint || currentResult.pos !== undefined || currentResult.dopost)) {
-                        var addRadix = processValue[processValue.length - 1] === opts.radixPoint && currentResult.c === opts.radixPoint;
-                        processValue = Inputmask(buildPostMask(processValue, opts), {
-                            numericInput: true,
-                            jitMasking: true,
-                            definitions: {
-                                "*": {
-                                    validator: "[0-9?]",
-                                    cardinality: 1
-                                }
-                            }
-                        }).format(processValue.join(""));
-                        if (addRadix) processValue += opts.radixPoint;
-                        if (processValue.charAt(0) === opts.groupSeparator) {
-                            processValue.substr(1);
-                        }
-                    } else processValue = processValue.join("");
-                }
-                if (opts.isNegative && currentResult.event === "blur") {
-                    opts.isNegative = processValue !== "0";
-                }
-                processValue = prefix + processValue;
-                processValue += suffix;
-                if (opts.isNegative) {
-                    processValue = opts.negationSymbol.front + processValue;
-                    processValue += opts.negationSymbol.back;
-                }
-                processValue = processValue.split("");
-                if (charAtPos !== undefined) {
-                    if (charAtPos !== opts.radixPoint && charAtPos !== opts.negationSymbol.front && charAtPos !== opts.negationSymbol.back) {
-                        caretPos = $.inArray("?", processValue);
-                        if (caretPos > -1) {
-                            processValue[caretPos] = charAtPos;
-                        } else caretPos = currentResult.caret || 0;
-                    } else if (charAtPos === opts.radixPoint || charAtPos === opts.negationSymbol.front || charAtPos === opts.negationSymbol.back) {
-                        var newCaretPos = $.inArray(charAtPos, processValue);
-                        if (newCaretPos !== -1) caretPos = newCaretPos;
-                    }
-                }
-                if (opts.numericInput) {
-                    caretPos = processValue.length - caretPos - 1;
-                    processValue = processValue.reverse();
-                }
-                var rslt = {
-                    caret: (charAtPos === undefined || currentResult.pos !== undefined) && caretPos !== undefined ? caretPos + (opts.numericInput ? -1 : 1) : caretPos,
-                    buffer: processValue,
-                    refreshFromBuffer: currentResult.dopost || buffer.join("") !== processValue.join("")
-                };
-                return rslt.refreshFromBuffer ? rslt : currentResult;
-            },
-            onBeforeWrite: function(e, buffer, caretPos, opts) {
-                function parseMinMaxOptions(opts) {
-                    if (opts.parseMinMaxOptions === undefined) {
-                        if (opts.min !== null) {
-                            opts.min = opts.min.toString().replace(new RegExp(Inputmask.escapeRegex(opts.groupSeparator), "g"), "");
-                            if (opts.radixPoint === ",") opts.min = opts.min.replace(opts.radixPoint, ".");
-                            opts.min = isFinite(opts.min) ? parseFloat(opts.min) : NaN;
-                            if (isNaN(opts.min)) opts.min = Number.MIN_VALUE;
-                        }
-                        if (opts.max !== null) {
-                            opts.max = opts.max.toString().replace(new RegExp(Inputmask.escapeRegex(opts.groupSeparator), "g"), "");
-                            if (opts.radixPoint === ",") opts.max = opts.max.replace(opts.radixPoint, ".");
-                            opts.max = isFinite(opts.max) ? parseFloat(opts.max) : NaN;
-                            if (isNaN(opts.max)) opts.max = Number.MAX_VALUE;
-                        }
-                        opts.parseMinMaxOptions = "done";
-                    }
-                }
-                if (e) {
-                    switch (e.type) {
-                      case "keydown":
-                        return opts.postValidation(buffer, caretPos, {
-                            caret: caretPos,
-                            dopost: true
-                        }, opts);
-
-                      case "blur":
-                      case "checkval":
-                        var unmasked;
-                        parseMinMaxOptions(opts);
-                        if (opts.min !== null || opts.max !== null) {
-                            unmasked = opts.onUnMask(buffer.join(""), undefined, $.extend({}, opts, {
-                                unmaskAsNumber: true
-                            }));
-                            if (opts.min !== null && unmasked < opts.min) {
-                                opts.isNegative = opts.min < 0;
-                                return opts.postValidation(opts.min.toString().replace(".", opts.radixPoint).split(""), caretPos, {
-                                    caret: caretPos,
-                                    dopost: true,
-                                    placeholder: "0"
-                                }, opts);
-                            } else if (opts.max !== null && unmasked > opts.max) {
-                                opts.isNegative = opts.max < 0;
-                                return opts.postValidation(opts.max.toString().replace(".", opts.radixPoint).split(""), caretPos, {
-                                    caret: caretPos,
-                                    dopost: true,
-                                    placeholder: "0"
-                                }, opts);
-                            }
-                        }
-                        return opts.postValidation(buffer, caretPos, {
-                            caret: caretPos,
-                            placeholder: "0",
-                            event: "blur"
-                        }, opts);
-
-                      case "_checkval":
-                        return {
-                            caret: caretPos
-                        };
-
-                      default:
-                        break;
-                    }
-                }
-            },
-            regex: {
-                integerPart: function(opts, emptyCheck) {
-                    return emptyCheck ? new RegExp("[" + Inputmask.escapeRegex(opts.negationSymbol.front) + "+]?") : new RegExp("[" + Inputmask.escapeRegex(opts.negationSymbol.front) + "+]?\\d+");
-                },
-                integerNPart: function(opts) {
-                    return new RegExp("[\\d" + Inputmask.escapeRegex(opts.groupSeparator) + Inputmask.escapeRegex(opts.placeholder.charAt(0)) + "]+");
-                }
-            },
-            definitions: {
-                "~": {
-                    validator: function(chrs, maskset, pos, strict, opts, isSelection) {
-                        var isValid, l;
-                        if (chrs === "k" || chrs === "m") {
-                            isValid = {
-                                insert: [],
-                                c: 0
-                            };
-                            for (var i = 0, l = chrs === "k" ? 2 : 5; i < l; i++) {
-                                isValid.insert.push({
-                                    pos: pos + i,
-                                    c: 0
-                                });
-                            }
-                            isValid.pos = pos + l;
-                            return isValid;
-                        }
-                        isValid = strict ? new RegExp("[0-9" + Inputmask.escapeRegex(opts.groupSeparator) + "]").test(chrs) : new RegExp("[0-9]").test(chrs);
-                        if (isValid === true) {
-                            if (opts.numericInput !== true && maskset.validPositions[pos] !== undefined && maskset.validPositions[pos].match.def === "~" && !isSelection) {
-                                var processValue = maskset.buffer.join("");
-                                processValue = processValue.replace(new RegExp("[-" + Inputmask.escapeRegex(opts.negationSymbol.front) + "]", "g"), "");
-                                processValue = processValue.replace(new RegExp(Inputmask.escapeRegex(opts.negationSymbol.back) + "$"), "");
-                                var pvRadixSplit = processValue.split(opts.radixPoint);
-                                if (pvRadixSplit.length > 1) {
-                                    pvRadixSplit[1] = pvRadixSplit[1].replace(/0/g, opts.placeholder.charAt(0));
-                                }
-                                if (pvRadixSplit[0] === "0") {
-                                    pvRadixSplit[0] = pvRadixSplit[0].replace(/0/g, opts.placeholder.charAt(0));
-                                }
-                                processValue = pvRadixSplit[0] + opts.radixPoint + pvRadixSplit[1] || "";
-                                var bufferTemplate = maskset._buffer.join("");
-                                if (processValue === opts.radixPoint) {
-                                    processValue = bufferTemplate;
-                                }
-                                while (processValue.match(Inputmask.escapeRegex(bufferTemplate) + "$") === null) {
-                                    bufferTemplate = bufferTemplate.slice(1);
-                                }
-                                processValue = processValue.replace(bufferTemplate, "");
-                                processValue = processValue.split("");
-                                if (processValue[pos] === undefined) {
-                                    isValid = {
-                                        pos: pos,
-                                        remove: pos
-                                    };
-                                } else {
-                                    isValid = {
-                                        pos: pos
-                                    };
-                                }
-                            }
-                        } else if (!strict && chrs === opts.radixPoint && maskset.validPositions[pos - 1] === undefined) {
-                            isValid = {
-                                insert: {
-                                    pos: pos,
-                                    c: 0
-                                },
-                                pos: pos + 1
-                            };
-                        }
-                        return isValid;
-                    },
-                    cardinality: 1
-                },
-                "+": {
-                    validator: function(chrs, maskset, pos, strict, opts) {
-                        return opts.allowMinus && (chrs === "-" || chrs === opts.negationSymbol.front);
-                    },
-                    cardinality: 1,
-                    placeholder: ""
-                },
-                "-": {
-                    validator: function(chrs, maskset, pos, strict, opts) {
-                        return opts.allowMinus && chrs === opts.negationSymbol.back;
-                    },
-                    cardinality: 1,
-                    placeholder: ""
-                },
-                ":": {
-                    validator: function(chrs, maskset, pos, strict, opts) {
-                        var radix = "[" + Inputmask.escapeRegex(opts.radixPoint) + "]";
-                        var isValid = new RegExp(radix).test(chrs);
-                        if (isValid && maskset.validPositions[pos] && maskset.validPositions[pos].match.placeholder === opts.radixPoint) {
-                            isValid = {
-                                caret: pos + 1
-                            };
-                        }
-                        return isValid;
-                    },
-                    cardinality: 1,
-                    placeholder: function(opts) {
-                        return opts.radixPoint;
-                    }
-                }
-            },
-            onUnMask: function(maskedValue, unmaskedValue, opts) {
-                if (unmaskedValue === "" && opts.nullable === true) {
-                    return unmaskedValue;
-                }
-                var processValue = maskedValue.replace(opts.prefix, "");
-                processValue = processValue.replace(opts.suffix, "");
-                processValue = processValue.replace(new RegExp(Inputmask.escapeRegex(opts.groupSeparator), "g"), "");
-                if (opts.placeholder.charAt(0) !== "") {
-                    processValue = processValue.replace(new RegExp(opts.placeholder.charAt(0), "g"), "0");
-                }
-                if (opts.unmaskAsNumber) {
-                    if (opts.radixPoint !== "" && processValue.indexOf(opts.radixPoint) !== -1) processValue = processValue.replace(Inputmask.escapeRegex.call(this, opts.radixPoint), ".");
-                    processValue = processValue.replace(new RegExp("^" + Inputmask.escapeRegex(opts.negationSymbol.front)), "-");
-                    processValue = processValue.replace(new RegExp(Inputmask.escapeRegex(opts.negationSymbol.back) + "$"), "");
-                    return Number(processValue);
-                }
-                return processValue;
-            },
-            isComplete: function(buffer, opts) {
-                var maskedValue = (opts.numericInput ? buffer.slice().reverse() : buffer).join("");
-                maskedValue = maskedValue.replace(new RegExp("^" + Inputmask.escapeRegex(opts.negationSymbol.front)), "-");
-                maskedValue = maskedValue.replace(new RegExp(Inputmask.escapeRegex(opts.negationSymbol.back) + "$"), "");
-                maskedValue = maskedValue.replace(opts.prefix, "");
-                maskedValue = maskedValue.replace(opts.suffix, "");
-                maskedValue = maskedValue.replace(new RegExp(Inputmask.escapeRegex(opts.groupSeparator) + "([0-9]{3})", "g"), "$1");
-                if (opts.radixPoint === ",") maskedValue = maskedValue.replace(Inputmask.escapeRegex(opts.radixPoint), ".");
-                return isFinite(maskedValue);
-            },
-            onBeforeMask: function(initialValue, opts) {
-                opts.isNegative = undefined;
-                var radixPoint = opts.radixPoint || ",";
-                if ((typeof initialValue == "number" || opts.inputType === "number") && radixPoint !== "") {
-                    initialValue = initialValue.toString().replace(".", radixPoint);
-                }
-                var valueParts = initialValue.split(radixPoint), integerPart = valueParts[0].replace(/[^\-0-9]/g, ""), decimalPart = valueParts.length > 1 ? valueParts[1].replace(/[^0-9]/g, "") : "";
-                initialValue = integerPart + (decimalPart !== "" ? radixPoint + decimalPart : decimalPart);
-                var digits = 0;
-                if (radixPoint !== "") {
-                    digits = decimalPart.length;
-                    if (decimalPart !== "") {
-                        var digitsFactor = Math.pow(10, digits || 1);
-                        if (isFinite(opts.digits)) {
-                            digits = parseInt(opts.digits);
-                            digitsFactor = Math.pow(10, digits);
-                        }
-                        initialValue = initialValue.replace(Inputmask.escapeRegex(radixPoint), ".");
-                        if (isFinite(initialValue)) initialValue = Math.round(parseFloat(initialValue) * digitsFactor) / digitsFactor;
-                        initialValue = initialValue.toString().replace(".", radixPoint);
-                    }
-                }
-                if (opts.digits === 0 && initialValue.indexOf(Inputmask.escapeRegex(radixPoint)) !== -1) {
-                    initialValue = initialValue.substring(0, initialValue.indexOf(Inputmask.escapeRegex(radixPoint)));
-                }
-                return alignDigits(initialValue.toString().split(""), digits, opts).join("");
-            },
-            onKeyDown: function(e, buffer, caretPos, opts) {
-                var $input = $(this);
-                if (e.ctrlKey) {
-                    switch (e.keyCode) {
-                      case Inputmask.keyCode.UP:
-                        $input.val(parseFloat(this.inputmask.unmaskedvalue()) + parseInt(opts.step));
-                        $input.trigger("setvalue");
-                        break;
-
-                      case Inputmask.keyCode.DOWN:
-                        $input.val(parseFloat(this.inputmask.unmaskedvalue()) - parseInt(opts.step));
-                        $input.trigger("setvalue");
-                        break;
-                    }
-                }
-            }
-        },
-        currency: {
-            prefix: "$ ",
-            groupSeparator: ",",
-            alias: "numeric",
-            placeholder: "0",
-            autoGroup: true,
-            digits: 2,
-            digitsOptional: false,
-            clearMaskOnLostFocus: false
-        },
-        decimal: {
-            alias: "numeric"
-        },
-        integer: {
-            alias: "numeric",
-            digits: 0,
-            radixPoint: ""
-        },
-        percentage: {
-            alias: "numeric",
-            digits: 2,
-            digitsOptional: true,
-            radixPoint: ".",
-            placeholder: "0",
-            autoGroup: false,
-            min: 0,
-            max: 100,
-            suffix: " %",
-            allowMinus: false
-        }
-    });
-    return Inputmask;
-});

+ 0 - 97
plugins/inputmask/inputmask/jquery.inputmask.js

@@ -1,97 +0,0 @@
-/*!
-* jquery.inputmask.js
-* https://github.com/RobinHerbots/Inputmask
-* Copyright (c) 2010 - 2019 Robin Herbots
-* Licensed under the MIT license (http://www.opensource.org/licenses/mit-license.php)
-* Version: 4.0.9
-*/
-
-(function(factory) {
-    if (typeof define === "function" && define.amd) {
-        define([ "jquery", "./inputmask" ], factory);
-    } else if (typeof exports === "object") {
-        module.exports = factory(require("jquery"), require("./inputmask"));
-    } else {
-        factory(jQuery, window.Inputmask);
-    }
-})(function($, Inputmask) {
-    if ($.fn.inputmask === undefined) {
-        $.fn.inputmask = function(fn, options) {
-            var nptmask, input = this[0];
-            if (options === undefined) options = {};
-            if (typeof fn === "string") {
-                switch (fn) {
-                  case "unmaskedvalue":
-                    return input && input.inputmask ? input.inputmask.unmaskedvalue() : $(input).val();
-
-                  case "remove":
-                    return this.each(function() {
-                        if (this.inputmask) this.inputmask.remove();
-                    });
-
-                  case "getemptymask":
-                    return input && input.inputmask ? input.inputmask.getemptymask() : "";
-
-                  case "hasMaskedValue":
-                    return input && input.inputmask ? input.inputmask.hasMaskedValue() : false;
-
-                  case "isComplete":
-                    return input && input.inputmask ? input.inputmask.isComplete() : true;
-
-                  case "getmetadata":
-                    return input && input.inputmask ? input.inputmask.getmetadata() : undefined;
-
-                  case "setvalue":
-                    Inputmask.setValue(input, options);
-                    break;
-
-                  case "option":
-                    if (typeof options === "string") {
-                        if (input && input.inputmask !== undefined) {
-                            return input.inputmask.option(options);
-                        }
-                    } else {
-                        return this.each(function() {
-                            if (this.inputmask !== undefined) {
-                                return this.inputmask.option(options);
-                            }
-                        });
-                    }
-                    break;
-
-                  default:
-                    options.alias = fn;
-                    nptmask = new Inputmask(options);
-                    return this.each(function() {
-                        nptmask.mask(this);
-                    });
-                }
-            } else if (Array.isArray(fn)) {
-                options.alias = fn;
-                nptmask = new Inputmask(options);
-                return this.each(function() {
-                    nptmask.mask(this);
-                });
-            } else if (typeof fn == "object") {
-                nptmask = new Inputmask(fn);
-                if (fn.mask === undefined && fn.alias === undefined) {
-                    return this.each(function() {
-                        if (this.inputmask !== undefined) {
-                            return this.inputmask.option(fn);
-                        } else nptmask.mask(this);
-                    });
-                } else {
-                    return this.each(function() {
-                        nptmask.mask(this);
-                    });
-                }
-            } else if (fn === undefined) {
-                return this.each(function() {
-                    nptmask = new Inputmask(options);
-                    nptmask.mask(this);
-                });
-            }
-        };
-    }
-    return $.fn.inputmask;
-});

+ 0 - 3867
plugins/inputmask/jquery.inputmask.bundle.js

@@ -1,3867 +0,0 @@
-/*!
-* jquery.inputmask.bundle.js
-* https://github.com/RobinHerbots/Inputmask
-* Copyright (c) 2010 - 2019 Robin Herbots
-* Licensed under the MIT license (http://www.opensource.org/licenses/mit-license.php)
-* Version: 4.0.9
-*/
-
-(function(modules) {
-    var installedModules = {};
-    function __webpack_require__(moduleId) {
-        if (installedModules[moduleId]) {
-            return installedModules[moduleId].exports;
-        }
-        var module = installedModules[moduleId] = {
-            i: moduleId,
-            l: false,
-            exports: {}
-        };
-        modules[moduleId].call(module.exports, module, module.exports, __webpack_require__);
-        module.l = true;
-        return module.exports;
-    }
-    __webpack_require__.m = modules;
-    __webpack_require__.c = installedModules;
-    __webpack_require__.d = function(exports, name, getter) {
-        if (!__webpack_require__.o(exports, name)) {
-            Object.defineProperty(exports, name, {
-                enumerable: true,
-                get: getter
-            });
-        }
-    };
-    __webpack_require__.r = function(exports) {
-        if (typeof Symbol !== "undefined" && Symbol.toStringTag) {
-            Object.defineProperty(exports, Symbol.toStringTag, {
-                value: "Module"
-            });
-        }
-        Object.defineProperty(exports, "__esModule", {
-            value: true
-        });
-    };
-    __webpack_require__.t = function(value, mode) {
-        if (mode & 1) value = __webpack_require__(value);
-        if (mode & 8) return value;
-        if (mode & 4 && typeof value === "object" && value && value.__esModule) return value;
-        var ns = Object.create(null);
-        __webpack_require__.r(ns);
-        Object.defineProperty(ns, "default", {
-            enumerable: true,
-            value: value
-        });
-        if (mode & 2 && typeof value != "string") for (var key in value) __webpack_require__.d(ns, key, function(key) {
-            return value[key];
-        }.bind(null, key));
-        return ns;
-    };
-    __webpack_require__.n = function(module) {
-        var getter = module && module.__esModule ? function getDefault() {
-            return module["default"];
-        } : function getModuleExports() {
-            return module;
-        };
-        __webpack_require__.d(getter, "a", getter);
-        return getter;
-    };
-    __webpack_require__.o = function(object, property) {
-        return Object.prototype.hasOwnProperty.call(object, property);
-    };
-    __webpack_require__.p = "";
-    return __webpack_require__(__webpack_require__.s = 0);
-})([ function(module, exports, __webpack_require__) {
-    "use strict";
-    __webpack_require__(1);
-    __webpack_require__(6);
-    __webpack_require__(7);
-    var _inputmask = __webpack_require__(2);
-    var _inputmask2 = _interopRequireDefault(_inputmask);
-    var _inputmask3 = __webpack_require__(3);
-    var _inputmask4 = _interopRequireDefault(_inputmask3);
-    var _jquery = __webpack_require__(4);
-    var _jquery2 = _interopRequireDefault(_jquery);
-    function _interopRequireDefault(obj) {
-        return obj && obj.__esModule ? obj : {
-            default: obj
-        };
-    }
-    if (_inputmask4.default === _jquery2.default) {
-        __webpack_require__(8);
-    }
-    window.Inputmask = _inputmask2.default;
-}, function(module, exports, __webpack_require__) {
-    "use strict";
-    var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;
-    var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function(obj) {
-        return typeof obj;
-    } : function(obj) {
-        return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
-    };
-    (function(factory) {
-        if (true) {
-            !(__WEBPACK_AMD_DEFINE_ARRAY__ = [ __webpack_require__(2) ], __WEBPACK_AMD_DEFINE_FACTORY__ = factory, 
-            __WEBPACK_AMD_DEFINE_RESULT__ = typeof __WEBPACK_AMD_DEFINE_FACTORY__ === "function" ? __WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__) : __WEBPACK_AMD_DEFINE_FACTORY__, 
-            __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));
-        } else {}
-    })(function(Inputmask) {
-        Inputmask.extendDefinitions({
-            A: {
-                validator: "[A-Za-z\u0410-\u044f\u0401\u0451\xc0-\xff\xb5]",
-                casing: "upper"
-            },
-            "&": {
-                validator: "[0-9A-Za-z\u0410-\u044f\u0401\u0451\xc0-\xff\xb5]",
-                casing: "upper"
-            },
-            "#": {
-                validator: "[0-9A-Fa-f]",
-                casing: "upper"
-            }
-        });
-        Inputmask.extendAliases({
-            cssunit: {
-                regex: "[+-]?[0-9]+\\.?([0-9]+)?(px|em|rem|ex|%|in|cm|mm|pt|pc)"
-            },
-            url: {
-                regex: "(https?|ftp)//.*",
-                autoUnmask: false
-            },
-            ip: {
-                mask: "i[i[i]].i[i[i]].i[i[i]].i[i[i]]",
-                definitions: {
-                    i: {
-                        validator: function validator(chrs, maskset, pos, strict, opts) {
-                            if (pos - 1 > -1 && maskset.buffer[pos - 1] !== ".") {
-                                chrs = maskset.buffer[pos - 1] + chrs;
-                                if (pos - 2 > -1 && maskset.buffer[pos - 2] !== ".") {
-                                    chrs = maskset.buffer[pos - 2] + chrs;
-                                } else chrs = "0" + chrs;
-                            } else chrs = "00" + chrs;
-                            return new RegExp("25[0-5]|2[0-4][0-9]|[01][0-9][0-9]").test(chrs);
-                        }
-                    }
-                },
-                onUnMask: function onUnMask(maskedValue, unmaskedValue, opts) {
-                    return maskedValue;
-                },
-                inputmode: "numeric"
-            },
-            email: {
-                mask: "*{1,64}[.*{1,64}][.*{1,64}][.*{1,63}]@-{1,63}.-{1,63}[.-{1,63}][.-{1,63}]",
-                greedy: false,
-                casing: "lower",
-                onBeforePaste: function onBeforePaste(pastedValue, opts) {
-                    pastedValue = pastedValue.toLowerCase();
-                    return pastedValue.replace("mailto:", "");
-                },
-                definitions: {
-                    "*": {
-                        validator: "[0-9\uff11-\uff19A-Za-z\u0410-\u044f\u0401\u0451\xc0-\xff\xb5!#$%&'*+/=?^_`{|}~-]"
-                    },
-                    "-": {
-                        validator: "[0-9A-Za-z-]"
-                    }
-                },
-                onUnMask: function onUnMask(maskedValue, unmaskedValue, opts) {
-                    return maskedValue;
-                },
-                inputmode: "email"
-            },
-            mac: {
-                mask: "##:##:##:##:##:##"
-            },
-            vin: {
-                mask: "V{13}9{4}",
-                definitions: {
-                    V: {
-                        validator: "[A-HJ-NPR-Za-hj-npr-z\\d]",
-                        casing: "upper"
-                    }
-                },
-                clearIncomplete: true,
-                autoUnmask: true
-            }
-        });
-        return Inputmask;
-    });
-}, function(module, exports, __webpack_require__) {
-    "use strict";
-    var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;
-    var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function(obj) {
-        return typeof obj;
-    } : function(obj) {
-        return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
-    };
-    (function(factory) {
-        if (true) {
-            !(__WEBPACK_AMD_DEFINE_ARRAY__ = [ __webpack_require__(3), __webpack_require__(5) ], 
-            __WEBPACK_AMD_DEFINE_FACTORY__ = factory, __WEBPACK_AMD_DEFINE_RESULT__ = typeof __WEBPACK_AMD_DEFINE_FACTORY__ === "function" ? __WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__) : __WEBPACK_AMD_DEFINE_FACTORY__, 
-            __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));
-        } else {}
-    })(function($, window, undefined) {
-        var document = window.document, ua = navigator.userAgent, ie = ua.indexOf("MSIE ") > 0 || ua.indexOf("Trident/") > 0, mobile = isInputEventSupported("touchstart"), iemobile = /iemobile/i.test(ua), iphone = /iphone/i.test(ua) && !iemobile;
-        function Inputmask(alias, options, internal) {
-            if (!(this instanceof Inputmask)) {
-                return new Inputmask(alias, options, internal);
-            }
-            this.el = undefined;
-            this.events = {};
-            this.maskset = undefined;
-            this.refreshValue = false;
-            if (internal !== true) {
-                if ($.isPlainObject(alias)) {
-                    options = alias;
-                } else {
-                    options = options || {};
-                    if (alias) options.alias = alias;
-                }
-                this.opts = $.extend(true, {}, this.defaults, options);
-                this.noMasksCache = options && options.definitions !== undefined;
-                this.userOptions = options || {};
-                this.isRTL = this.opts.numericInput;
-                resolveAlias(this.opts.alias, options, this.opts);
-            }
-        }
-        Inputmask.prototype = {
-            dataAttribute: "data-inputmask",
-            defaults: {
-                placeholder: "_",
-                optionalmarker: [ "[", "]" ],
-                quantifiermarker: [ "{", "}" ],
-                groupmarker: [ "(", ")" ],
-                alternatormarker: "|",
-                escapeChar: "\\",
-                mask: null,
-                regex: null,
-                oncomplete: $.noop,
-                onincomplete: $.noop,
-                oncleared: $.noop,
-                repeat: 0,
-                greedy: false,
-                autoUnmask: false,
-                removeMaskOnSubmit: false,
-                clearMaskOnLostFocus: true,
-                insertMode: true,
-                clearIncomplete: false,
-                alias: null,
-                onKeyDown: $.noop,
-                onBeforeMask: null,
-                onBeforePaste: function onBeforePaste(pastedValue, opts) {
-                    return $.isFunction(opts.onBeforeMask) ? opts.onBeforeMask.call(this, pastedValue, opts) : pastedValue;
-                },
-                onBeforeWrite: null,
-                onUnMask: null,
-                showMaskOnFocus: true,
-                showMaskOnHover: true,
-                onKeyValidation: $.noop,
-                skipOptionalPartCharacter: " ",
-                numericInput: false,
-                rightAlign: false,
-                undoOnEscape: true,
-                radixPoint: "",
-                _radixDance: false,
-                groupSeparator: "",
-                keepStatic: null,
-                positionCaretOnTab: true,
-                tabThrough: false,
-                supportsInputType: [ "text", "tel", "url", "password", "search" ],
-                ignorables: [ 8, 9, 13, 19, 27, 33, 34, 35, 36, 37, 38, 39, 40, 45, 46, 93, 112, 113, 114, 115, 116, 117, 118, 119, 120, 121, 122, 123, 0, 229 ],
-                isComplete: null,
-                preValidation: null,
-                postValidation: null,
-                staticDefinitionSymbol: undefined,
-                jitMasking: false,
-                nullable: true,
-                inputEventOnly: false,
-                noValuePatching: false,
-                positionCaretOnClick: "lvp",
-                casing: null,
-                inputmode: "verbatim",
-                colorMask: false,
-                disablePredictiveText: false,
-                importDataAttributes: true,
-                shiftPositions: true
-            },
-            definitions: {
-                9: {
-                    validator: "[0-9\uff11-\uff19]",
-                    definitionSymbol: "*"
-                },
-                a: {
-                    validator: "[A-Za-z\u0410-\u044f\u0401\u0451\xc0-\xff\xb5]",
-                    definitionSymbol: "*"
-                },
-                "*": {
-                    validator: "[0-9\uff11-\uff19A-Za-z\u0410-\u044f\u0401\u0451\xc0-\xff\xb5]"
-                }
-            },
-            aliases: {},
-            masksCache: {},
-            mask: function mask(elems) {
-                var that = this;
-                function importAttributeOptions(npt, opts, userOptions, dataAttribute) {
-                    if (opts.importDataAttributes === true) {
-                        var attrOptions = npt.getAttribute(dataAttribute), option, dataoptions, optionData, p;
-                        var importOption = function importOption(option, optionData) {
-                            optionData = optionData !== undefined ? optionData : npt.getAttribute(dataAttribute + "-" + option);
-                            if (optionData !== null) {
-                                if (typeof optionData === "string") {
-                                    if (option.indexOf("on") === 0) optionData = window[optionData]; else if (optionData === "false") optionData = false; else if (optionData === "true") optionData = true;
-                                }
-                                userOptions[option] = optionData;
-                            }
-                        };
-                        if (attrOptions && attrOptions !== "") {
-                            attrOptions = attrOptions.replace(/'/g, '"');
-                            dataoptions = JSON.parse("{" + attrOptions + "}");
-                        }
-                        if (dataoptions) {
-                            optionData = undefined;
-                            for (p in dataoptions) {
-                                if (p.toLowerCase() === "alias") {
-                                    optionData = dataoptions[p];
-                                    break;
-                                }
-                            }
-                        }
-                        importOption("alias", optionData);
-                        if (userOptions.alias) {
-                            resolveAlias(userOptions.alias, userOptions, opts);
-                        }
-                        for (option in opts) {
-                            if (dataoptions) {
-                                optionData = undefined;
-                                for (p in dataoptions) {
-                                    if (p.toLowerCase() === option.toLowerCase()) {
-                                        optionData = dataoptions[p];
-                                        break;
-                                    }
-                                }
-                            }
-                            importOption(option, optionData);
-                        }
-                    }
-                    $.extend(true, opts, userOptions);
-                    if (npt.dir === "rtl" || opts.rightAlign) {
-                        npt.style.textAlign = "right";
-                    }
-                    if (npt.dir === "rtl" || opts.numericInput) {
-                        npt.dir = "ltr";
-                        npt.removeAttribute("dir");
-                        opts.isRTL = true;
-                    }
-                    return Object.keys(userOptions).length;
-                }
-                if (typeof elems === "string") {
-                    elems = document.getElementById(elems) || document.querySelectorAll(elems);
-                }
-                elems = elems.nodeName ? [ elems ] : elems;
-                $.each(elems, function(ndx, el) {
-                    var scopedOpts = $.extend(true, {}, that.opts);
-                    if (importAttributeOptions(el, scopedOpts, $.extend(true, {}, that.userOptions), that.dataAttribute)) {
-                        var maskset = generateMaskSet(scopedOpts, that.noMasksCache);
-                        if (maskset !== undefined) {
-                            if (el.inputmask !== undefined) {
-                                el.inputmask.opts.autoUnmask = true;
-                                el.inputmask.remove();
-                            }
-                            el.inputmask = new Inputmask(undefined, undefined, true);
-                            el.inputmask.opts = scopedOpts;
-                            el.inputmask.noMasksCache = that.noMasksCache;
-                            el.inputmask.userOptions = $.extend(true, {}, that.userOptions);
-                            el.inputmask.isRTL = scopedOpts.isRTL || scopedOpts.numericInput;
-                            el.inputmask.el = el;
-                            el.inputmask.maskset = maskset;
-                            $.data(el, "_inputmask_opts", scopedOpts);
-                            maskScope.call(el.inputmask, {
-                                action: "mask"
-                            });
-                        }
-                    }
-                });
-                return elems && elems[0] ? elems[0].inputmask || this : this;
-            },
-            option: function option(options, noremask) {
-                if (typeof options === "string") {
-                    return this.opts[options];
-                } else if ((typeof options === "undefined" ? "undefined" : _typeof(options)) === "object") {
-                    $.extend(this.userOptions, options);
-                    if (this.el && noremask !== true) {
-                        this.mask(this.el);
-                    }
-                    return this;
-                }
-            },
-            unmaskedvalue: function unmaskedvalue(value) {
-                this.maskset = this.maskset || generateMaskSet(this.opts, this.noMasksCache);
-                return maskScope.call(this, {
-                    action: "unmaskedvalue",
-                    value: value
-                });
-            },
-            remove: function remove() {
-                return maskScope.call(this, {
-                    action: "remove"
-                });
-            },
-            getemptymask: function getemptymask() {
-                this.maskset = this.maskset || generateMaskSet(this.opts, this.noMasksCache);
-                return maskScope.call(this, {
-                    action: "getemptymask"
-                });
-            },
-            hasMaskedValue: function hasMaskedValue() {
-                return !this.opts.autoUnmask;
-            },
-            isComplete: function isComplete() {
-                this.maskset = this.maskset || generateMaskSet(this.opts, this.noMasksCache);
-                return maskScope.call(this, {
-                    action: "isComplete"
-                });
-            },
-            getmetadata: function getmetadata() {
-                this.maskset = this.maskset || generateMaskSet(this.opts, this.noMasksCache);
-                return maskScope.call(this, {
-                    action: "getmetadata"
-                });
-            },
-            isValid: function isValid(value) {
-                this.maskset = this.maskset || generateMaskSet(this.opts, this.noMasksCache);
-                return maskScope.call(this, {
-                    action: "isValid",
-                    value: value
-                });
-            },
-            format: function format(value, metadata) {
-                this.maskset = this.maskset || generateMaskSet(this.opts, this.noMasksCache);
-                return maskScope.call(this, {
-                    action: "format",
-                    value: value,
-                    metadata: metadata
-                });
-            },
-            setValue: function setValue(value) {
-                if (this.el) {
-                    $(this.el).trigger("setvalue", [ value ]);
-                }
-            },
-            analyseMask: function analyseMask(mask, regexMask, opts) {
-                var tokenizer = /(?:[?*+]|\{[0-9\+\*]+(?:,[0-9\+\*]*)?(?:\|[0-9\+\*]*)?\})|[^.?*+^${[]()|\\]+|./g, regexTokenizer = /\[\^?]?(?:[^\\\]]+|\\[\S\s]?)*]?|\\(?:0(?:[0-3][0-7]{0,2}|[4-7][0-7]?)?|[1-9][0-9]*|x[0-9A-Fa-f]{2}|u[0-9A-Fa-f]{4}|c[A-Za-z]|[\S\s]?)|\((?:\?[:=!]?)?|(?:[?*+]|\{[0-9]+(?:,[0-9]*)?\})\??|[^.?*+^${[()|\\]+|./g, escaped = false, currentToken = new MaskToken(), match, m, openenings = [], maskTokens = [], openingToken, currentOpeningToken, alternator, lastMatch, groupToken;
-                function MaskToken(isGroup, isOptional, isQuantifier, isAlternator) {
-                    this.matches = [];
-                    this.openGroup = isGroup || false;
-                    this.alternatorGroup = false;
-                    this.isGroup = isGroup || false;
-                    this.isOptional = isOptional || false;
-                    this.isQuantifier = isQuantifier || false;
-                    this.isAlternator = isAlternator || false;
-                    this.quantifier = {
-                        min: 1,
-                        max: 1
-                    };
-                }
-                function insertTestDefinition(mtoken, element, position) {
-                    position = position !== undefined ? position : mtoken.matches.length;
-                    var prevMatch = mtoken.matches[position - 1];
-                    if (regexMask) {
-                        if (element.indexOf("[") === 0 || escaped && /\\d|\\s|\\w]/i.test(element) || element === ".") {
-                            mtoken.matches.splice(position++, 0, {
-                                fn: new RegExp(element, opts.casing ? "i" : ""),
-                                optionality: false,
-                                newBlockMarker: prevMatch === undefined ? "master" : prevMatch.def !== element,
-                                casing: null,
-                                def: element,
-                                placeholder: undefined,
-                                nativeDef: element
-                            });
-                        } else {
-                            if (escaped) element = element[element.length - 1];
-                            $.each(element.split(""), function(ndx, lmnt) {
-                                prevMatch = mtoken.matches[position - 1];
-                                mtoken.matches.splice(position++, 0, {
-                                    fn: null,
-                                    optionality: false,
-                                    newBlockMarker: prevMatch === undefined ? "master" : prevMatch.def !== lmnt && prevMatch.fn !== null,
-                                    casing: null,
-                                    def: opts.staticDefinitionSymbol || lmnt,
-                                    placeholder: opts.staticDefinitionSymbol !== undefined ? lmnt : undefined,
-                                    nativeDef: (escaped ? "'" : "") + lmnt
-                                });
-                            });
-                        }
-                        escaped = false;
-                    } else {
-                        var maskdef = (opts.definitions ? opts.definitions[element] : undefined) || Inputmask.prototype.definitions[element];
-                        if (maskdef && !escaped) {
-                            mtoken.matches.splice(position++, 0, {
-                                fn: maskdef.validator ? typeof maskdef.validator == "string" ? new RegExp(maskdef.validator, opts.casing ? "i" : "") : new function() {
-                                    this.test = maskdef.validator;
-                                }() : new RegExp("."),
-                                optionality: false,
-                                newBlockMarker: prevMatch === undefined ? "master" : prevMatch.def !== (maskdef.definitionSymbol || element),
-                                casing: maskdef.casing,
-                                def: maskdef.definitionSymbol || element,
-                                placeholder: maskdef.placeholder,
-                                nativeDef: element
-                            });
-                        } else {
-                            mtoken.matches.splice(position++, 0, {
-                                fn: null,
-                                optionality: false,
-                                newBlockMarker: prevMatch === undefined ? "master" : prevMatch.def !== element && prevMatch.fn !== null,
-                                casing: null,
-                                def: opts.staticDefinitionSymbol || element,
-                                placeholder: opts.staticDefinitionSymbol !== undefined ? element : undefined,
-                                nativeDef: (escaped ? "'" : "") + element
-                            });
-                            escaped = false;
-                        }
-                    }
-                }
-                function verifyGroupMarker(maskToken) {
-                    if (maskToken && maskToken.matches) {
-                        $.each(maskToken.matches, function(ndx, token) {
-                            var nextToken = maskToken.matches[ndx + 1];
-                            if ((nextToken === undefined || nextToken.matches === undefined || nextToken.isQuantifier === false) && token && token.isGroup) {
-                                token.isGroup = false;
-                                if (!regexMask) {
-                                    insertTestDefinition(token, opts.groupmarker[0], 0);
-                                    if (token.openGroup !== true) {
-                                        insertTestDefinition(token, opts.groupmarker[1]);
-                                    }
-                                }
-                            }
-                            verifyGroupMarker(token);
-                        });
-                    }
-                }
-                function defaultCase() {
-                    if (openenings.length > 0) {
-                        currentOpeningToken = openenings[openenings.length - 1];
-                        insertTestDefinition(currentOpeningToken, m);
-                        if (currentOpeningToken.isAlternator) {
-                            alternator = openenings.pop();
-                            for (var mndx = 0; mndx < alternator.matches.length; mndx++) {
-                                if (alternator.matches[mndx].isGroup) alternator.matches[mndx].isGroup = false;
-                            }
-                            if (openenings.length > 0) {
-                                currentOpeningToken = openenings[openenings.length - 1];
-                                currentOpeningToken.matches.push(alternator);
-                            } else {
-                                currentToken.matches.push(alternator);
-                            }
-                        }
-                    } else {
-                        insertTestDefinition(currentToken, m);
-                    }
-                }
-                function reverseTokens(maskToken) {
-                    function reverseStatic(st) {
-                        if (st === opts.optionalmarker[0]) st = opts.optionalmarker[1]; else if (st === opts.optionalmarker[1]) st = opts.optionalmarker[0]; else if (st === opts.groupmarker[0]) st = opts.groupmarker[1]; else if (st === opts.groupmarker[1]) st = opts.groupmarker[0];
-                        return st;
-                    }
-                    maskToken.matches = maskToken.matches.reverse();
-                    for (var match in maskToken.matches) {
-                        if (maskToken.matches.hasOwnProperty(match)) {
-                            var intMatch = parseInt(match);
-                            if (maskToken.matches[match].isQuantifier && maskToken.matches[intMatch + 1] && maskToken.matches[intMatch + 1].isGroup) {
-                                var qt = maskToken.matches[match];
-                                maskToken.matches.splice(match, 1);
-                                maskToken.matches.splice(intMatch + 1, 0, qt);
-                            }
-                            if (maskToken.matches[match].matches !== undefined) {
-                                maskToken.matches[match] = reverseTokens(maskToken.matches[match]);
-                            } else {
-                                maskToken.matches[match] = reverseStatic(maskToken.matches[match]);
-                            }
-                        }
-                    }
-                    return maskToken;
-                }
-                function groupify(matches) {
-                    var groupToken = new MaskToken(true);
-                    groupToken.openGroup = false;
-                    groupToken.matches = matches;
-                    return groupToken;
-                }
-                if (regexMask) {
-                    opts.optionalmarker[0] = undefined;
-                    opts.optionalmarker[1] = undefined;
-                }
-                while (match = regexMask ? regexTokenizer.exec(mask) : tokenizer.exec(mask)) {
-                    m = match[0];
-                    if (regexMask) {
-                        switch (m.charAt(0)) {
-                          case "?":
-                            m = "{0,1}";
-                            break;
-
-                          case "+":
-                          case "*":
-                            m = "{" + m + "}";
-                            break;
-                        }
-                    }
-                    if (escaped) {
-                        defaultCase();
-                        continue;
-                    }
-                    switch (m.charAt(0)) {
-                      case "(?=":
-                        break;
-
-                      case "(?!":
-                        break;
-
-                      case "(?<=":
-                        break;
-
-                      case "(?<!":
-                        break;
-
-                      case opts.escapeChar:
-                        escaped = true;
-                        if (regexMask) {
-                            defaultCase();
-                        }
-                        break;
-
-                      case opts.optionalmarker[1]:
-                      case opts.groupmarker[1]:
-                        openingToken = openenings.pop();
-                        openingToken.openGroup = false;
-                        if (openingToken !== undefined) {
-                            if (openenings.length > 0) {
-                                currentOpeningToken = openenings[openenings.length - 1];
-                                currentOpeningToken.matches.push(openingToken);
-                                if (currentOpeningToken.isAlternator) {
-                                    alternator = openenings.pop();
-                                    for (var mndx = 0; mndx < alternator.matches.length; mndx++) {
-                                        alternator.matches[mndx].isGroup = false;
-                                        alternator.matches[mndx].alternatorGroup = false;
-                                    }
-                                    if (openenings.length > 0) {
-                                        currentOpeningToken = openenings[openenings.length - 1];
-                                        currentOpeningToken.matches.push(alternator);
-                                    } else {
-                                        currentToken.matches.push(alternator);
-                                    }
-                                }
-                            } else {
-                                currentToken.matches.push(openingToken);
-                            }
-                        } else defaultCase();
-                        break;
-
-                      case opts.optionalmarker[0]:
-                        openenings.push(new MaskToken(false, true));
-                        break;
-
-                      case opts.groupmarker[0]:
-                        openenings.push(new MaskToken(true));
-                        break;
-
-                      case opts.quantifiermarker[0]:
-                        var quantifier = new MaskToken(false, false, true);
-                        m = m.replace(/[{}]/g, "");
-                        var mqj = m.split("|"), mq = mqj[0].split(","), mq0 = isNaN(mq[0]) ? mq[0] : parseInt(mq[0]), mq1 = mq.length === 1 ? mq0 : isNaN(mq[1]) ? mq[1] : parseInt(mq[1]);
-                        if (mq0 === "*" || mq0 === "+") {
-                            mq0 = mq1 === "*" ? 0 : 1;
-                        }
-                        quantifier.quantifier = {
-                            min: mq0,
-                            max: mq1,
-                            jit: mqj[1]
-                        };
-                        var matches = openenings.length > 0 ? openenings[openenings.length - 1].matches : currentToken.matches;
-                        match = matches.pop();
-                        if (match.isAlternator) {
-                            matches.push(match);
-                            matches = match.matches;
-                            var groupToken = new MaskToken(true);
-                            var tmpMatch = matches.pop();
-                            matches.push(groupToken);
-                            matches = groupToken.matches;
-                            match = tmpMatch;
-                        }
-                        if (!match.isGroup) {
-                            match = groupify([ match ]);
-                        }
-                        matches.push(match);
-                        matches.push(quantifier);
-                        break;
-
-                      case opts.alternatormarker:
-                        var groupQuantifier = function groupQuantifier(matches) {
-                            var lastMatch = matches.pop();
-                            if (lastMatch.isQuantifier) {
-                                lastMatch = groupify([ matches.pop(), lastMatch ]);
-                            }
-                            return lastMatch;
-                        };
-                        if (openenings.length > 0) {
-                            currentOpeningToken = openenings[openenings.length - 1];
-                            var subToken = currentOpeningToken.matches[currentOpeningToken.matches.length - 1];
-                            if (currentOpeningToken.openGroup && (subToken.matches === undefined || subToken.isGroup === false && subToken.isAlternator === false)) {
-                                lastMatch = openenings.pop();
-                            } else {
-                                lastMatch = groupQuantifier(currentOpeningToken.matches);
-                            }
-                        } else {
-                            lastMatch = groupQuantifier(currentToken.matches);
-                        }
-                        if (lastMatch.isAlternator) {
-                            openenings.push(lastMatch);
-                        } else {
-                            if (lastMatch.alternatorGroup) {
-                                alternator = openenings.pop();
-                                lastMatch.alternatorGroup = false;
-                            } else {
-                                alternator = new MaskToken(false, false, false, true);
-                            }
-                            alternator.matches.push(lastMatch);
-                            openenings.push(alternator);
-                            if (lastMatch.openGroup) {
-                                lastMatch.openGroup = false;
-                                var alternatorGroup = new MaskToken(true);
-                                alternatorGroup.alternatorGroup = true;
-                                openenings.push(alternatorGroup);
-                            }
-                        }
-                        break;
-
-                      default:
-                        defaultCase();
-                    }
-                }
-                while (openenings.length > 0) {
-                    openingToken = openenings.pop();
-                    currentToken.matches.push(openingToken);
-                }
-                if (currentToken.matches.length > 0) {
-                    verifyGroupMarker(currentToken);
-                    maskTokens.push(currentToken);
-                }
-                if (opts.numericInput || opts.isRTL) {
-                    reverseTokens(maskTokens[0]);
-                }
-                return maskTokens;
-            },
-            positionColorMask: function positionColorMask(input, template) {
-                input.style.left = template.offsetLeft + "px";
-            }
-        };
-        Inputmask.extendDefaults = function(options) {
-            $.extend(true, Inputmask.prototype.defaults, options);
-        };
-        Inputmask.extendDefinitions = function(definition) {
-            $.extend(true, Inputmask.prototype.definitions, definition);
-        };
-        Inputmask.extendAliases = function(alias) {
-            $.extend(true, Inputmask.prototype.aliases, alias);
-        };
-        Inputmask.format = function(value, options, metadata) {
-            return Inputmask(options).format(value, metadata);
-        };
-        Inputmask.unmask = function(value, options) {
-            return Inputmask(options).unmaskedvalue(value);
-        };
-        Inputmask.isValid = function(value, options) {
-            return Inputmask(options).isValid(value);
-        };
-        Inputmask.remove = function(elems) {
-            if (typeof elems === "string") {
-                elems = document.getElementById(elems) || document.querySelectorAll(elems);
-            }
-            elems = elems.nodeName ? [ elems ] : elems;
-            $.each(elems, function(ndx, el) {
-                if (el.inputmask) el.inputmask.remove();
-            });
-        };
-        Inputmask.setValue = function(elems, value) {
-            if (typeof elems === "string") {
-                elems = document.getElementById(elems) || document.querySelectorAll(elems);
-            }
-            elems = elems.nodeName ? [ elems ] : elems;
-            $.each(elems, function(ndx, el) {
-                if (el.inputmask) el.inputmask.setValue(value); else $(el).trigger("setvalue", [ value ]);
-            });
-        };
-        Inputmask.escapeRegex = function(str) {
-            var specials = [ "/", ".", "*", "+", "?", "|", "(", ")", "[", "]", "{", "}", "\\", "$", "^" ];
-            return str.replace(new RegExp("(\\" + specials.join("|\\") + ")", "gim"), "\\$1");
-        };
-        Inputmask.keyCode = {
-            BACKSPACE: 8,
-            BACKSPACE_SAFARI: 127,
-            DELETE: 46,
-            DOWN: 40,
-            END: 35,
-            ENTER: 13,
-            ESCAPE: 27,
-            HOME: 36,
-            INSERT: 45,
-            LEFT: 37,
-            PAGE_DOWN: 34,
-            PAGE_UP: 33,
-            RIGHT: 39,
-            SPACE: 32,
-            TAB: 9,
-            UP: 38,
-            X: 88,
-            CONTROL: 17
-        };
-        Inputmask.dependencyLib = $;
-        function resolveAlias(aliasStr, options, opts) {
-            var aliasDefinition = Inputmask.prototype.aliases[aliasStr];
-            if (aliasDefinition) {
-                if (aliasDefinition.alias) resolveAlias(aliasDefinition.alias, undefined, opts);
-                $.extend(true, opts, aliasDefinition);
-                $.extend(true, opts, options);
-                return true;
-            } else if (opts.mask === null) {
-                opts.mask = aliasStr;
-            }
-            return false;
-        }
-        function generateMaskSet(opts, nocache) {
-            function generateMask(mask, metadata, opts) {
-                var regexMask = false;
-                if (mask === null || mask === "") {
-                    regexMask = opts.regex !== null;
-                    if (regexMask) {
-                        mask = opts.regex;
-                        mask = mask.replace(/^(\^)(.*)(\$)$/, "$2");
-                    } else {
-                        regexMask = true;
-                        mask = ".*";
-                    }
-                }
-                if (mask.length === 1 && opts.greedy === false && opts.repeat !== 0) {
-                    opts.placeholder = "";
-                }
-                if (opts.repeat > 0 || opts.repeat === "*" || opts.repeat === "+") {
-                    var repeatStart = opts.repeat === "*" ? 0 : opts.repeat === "+" ? 1 : opts.repeat;
-                    mask = opts.groupmarker[0] + mask + opts.groupmarker[1] + opts.quantifiermarker[0] + repeatStart + "," + opts.repeat + opts.quantifiermarker[1];
-                }
-                var masksetDefinition, maskdefKey = regexMask ? "regex_" + opts.regex : opts.numericInput ? mask.split("").reverse().join("") : mask;
-                if (Inputmask.prototype.masksCache[maskdefKey] === undefined || nocache === true) {
-                    masksetDefinition = {
-                        mask: mask,
-                        maskToken: Inputmask.prototype.analyseMask(mask, regexMask, opts),
-                        validPositions: {},
-                        _buffer: undefined,
-                        buffer: undefined,
-                        tests: {},
-                        excludes: {},
-                        metadata: metadata,
-                        maskLength: undefined,
-                        jitOffset: {}
-                    };
-                    if (nocache !== true) {
-                        Inputmask.prototype.masksCache[maskdefKey] = masksetDefinition;
-                        masksetDefinition = $.extend(true, {}, Inputmask.prototype.masksCache[maskdefKey]);
-                    }
-                } else masksetDefinition = $.extend(true, {}, Inputmask.prototype.masksCache[maskdefKey]);
-                return masksetDefinition;
-            }
-            var ms;
-            if ($.isFunction(opts.mask)) {
-                opts.mask = opts.mask(opts);
-            }
-            if ($.isArray(opts.mask)) {
-                if (opts.mask.length > 1) {
-                    if (opts.keepStatic === null) {
-                        opts.keepStatic = "auto";
-                        for (var i = 0; i < opts.mask.length; i++) {
-                            if (opts.mask[i].charAt(0) !== opts.mask[0].charAt(0)) {
-                                opts.keepStatic = true;
-                                break;
-                            }
-                        }
-                    }
-                    var altMask = opts.groupmarker[0];
-                    $.each(opts.isRTL ? opts.mask.reverse() : opts.mask, function(ndx, msk) {
-                        if (altMask.length > 1) {
-                            altMask += opts.groupmarker[1] + opts.alternatormarker + opts.groupmarker[0];
-                        }
-                        if (msk.mask !== undefined && !$.isFunction(msk.mask)) {
-                            altMask += msk.mask;
-                        } else {
-                            altMask += msk;
-                        }
-                    });
-                    altMask += opts.groupmarker[1];
-                    return generateMask(altMask, opts.mask, opts);
-                } else opts.mask = opts.mask.pop();
-            }
-            if (opts.mask && opts.mask.mask !== undefined && !$.isFunction(opts.mask.mask)) {
-                ms = generateMask(opts.mask.mask, opts.mask, opts);
-            } else {
-                ms = generateMask(opts.mask, opts.mask, opts);
-            }
-            return ms;
-        }
-        function isInputEventSupported(eventName) {
-            var el = document.createElement("input"), evName = "on" + eventName, isSupported = evName in el;
-            if (!isSupported) {
-                el.setAttribute(evName, "return;");
-                isSupported = typeof el[evName] === "function";
-            }
-            el = null;
-            return isSupported;
-        }
-        function maskScope(actionObj, maskset, opts) {
-            maskset = maskset || this.maskset;
-            opts = opts || this.opts;
-            var inputmask = this, el = this.el, isRTL = this.isRTL, undoValue, $el, skipKeyPressEvent = false, skipInputEvent = false, ignorable = false, maxLength, mouseEnter = false, colorMask, originalPlaceholder;
-            var getMaskTemplate = function getMaskTemplate(baseOnInput, minimalPos, includeMode, noJit, clearOptionalTail) {
-                var greedy = opts.greedy;
-                if (clearOptionalTail) opts.greedy = false;
-                minimalPos = minimalPos || 0;
-                var maskTemplate = [], ndxIntlzr, pos = 0, test, testPos, lvp = getLastValidPosition();
-                do {
-                    if (baseOnInput === true && getMaskSet().validPositions[pos]) {
-                        testPos = clearOptionalTail && getMaskSet().validPositions[pos].match.optionality === true && getMaskSet().validPositions[pos + 1] === undefined && (getMaskSet().validPositions[pos].generatedInput === true || getMaskSet().validPositions[pos].input == opts.skipOptionalPartCharacter && pos > 0) ? determineTestTemplate(pos, getTests(pos, ndxIntlzr, pos - 1)) : getMaskSet().validPositions[pos];
-                        test = testPos.match;
-                        ndxIntlzr = testPos.locator.slice();
-                        maskTemplate.push(includeMode === true ? testPos.input : includeMode === false ? test.nativeDef : getPlaceholder(pos, test));
-                    } else {
-                        testPos = getTestTemplate(pos, ndxIntlzr, pos - 1);
-                        test = testPos.match;
-                        ndxIntlzr = testPos.locator.slice();
-                        var jitMasking = noJit === true ? false : opts.jitMasking !== false ? opts.jitMasking : test.jit;
-                        if (jitMasking === false || jitMasking === undefined || typeof jitMasking === "number" && isFinite(jitMasking) && jitMasking > pos) {
-                            maskTemplate.push(includeMode === false ? test.nativeDef : getPlaceholder(pos, test));
-                        }
-                    }
-                    if (opts.keepStatic === "auto") {
-                        if (test.newBlockMarker && test.fn !== null) {
-                            opts.keepStatic = pos - 1;
-                        }
-                    }
-                    pos++;
-                } while ((maxLength === undefined || pos < maxLength) && (test.fn !== null || test.def !== "") || minimalPos > pos);
-                if (maskTemplate[maskTemplate.length - 1] === "") {
-                    maskTemplate.pop();
-                }
-                if (includeMode !== false || getMaskSet().maskLength === undefined) getMaskSet().maskLength = pos - 1;
-                opts.greedy = greedy;
-                return maskTemplate;
-            };
-            function getMaskSet() {
-                return maskset;
-            }
-            function resetMaskSet(soft) {
-                var maskset = getMaskSet();
-                maskset.buffer = undefined;
-                if (soft !== true) {
-                    maskset.validPositions = {};
-                    maskset.p = 0;
-                }
-            }
-            function getLastValidPosition(closestTo, strict, validPositions) {
-                var before = -1, after = -1, valids = validPositions || getMaskSet().validPositions;
-                if (closestTo === undefined) closestTo = -1;
-                for (var posNdx in valids) {
-                    var psNdx = parseInt(posNdx);
-                    if (valids[psNdx] && (strict || valids[psNdx].generatedInput !== true)) {
-                        if (psNdx <= closestTo) before = psNdx;
-                        if (psNdx >= closestTo) after = psNdx;
-                    }
-                }
-                return before === -1 || before == closestTo ? after : after == -1 ? before : closestTo - before < after - closestTo ? before : after;
-            }
-            function getDecisionTaker(tst) {
-                var decisionTaker = tst.locator[tst.alternation];
-                if (typeof decisionTaker == "string" && decisionTaker.length > 0) {
-                    decisionTaker = decisionTaker.split(",")[0];
-                }
-                return decisionTaker !== undefined ? decisionTaker.toString() : "";
-            }
-            function getLocator(tst, align) {
-                var locator = (tst.alternation != undefined ? tst.mloc[getDecisionTaker(tst)] : tst.locator).join("");
-                if (locator !== "") while (locator.length < align) {
-                    locator += "0";
-                }
-                return locator;
-            }
-            function determineTestTemplate(pos, tests) {
-                pos = pos > 0 ? pos - 1 : 0;
-                var altTest = getTest(pos), targetLocator = getLocator(altTest), tstLocator, closest, bestMatch;
-                for (var ndx = 0; ndx < tests.length; ndx++) {
-                    var tst = tests[ndx];
-                    tstLocator = getLocator(tst, targetLocator.length);
-                    var distance = Math.abs(tstLocator - targetLocator);
-                    if (closest === undefined || tstLocator !== "" && distance < closest || bestMatch && !opts.greedy && bestMatch.match.optionality && bestMatch.match.newBlockMarker === "master" && (!tst.match.optionality || !tst.match.newBlockMarker) || bestMatch && bestMatch.match.optionalQuantifier && !tst.match.optionalQuantifier) {
-                        closest = distance;
-                        bestMatch = tst;
-                    }
-                }
-                return bestMatch;
-            }
-            function getTestTemplate(pos, ndxIntlzr, tstPs) {
-                return getMaskSet().validPositions[pos] || determineTestTemplate(pos, getTests(pos, ndxIntlzr ? ndxIntlzr.slice() : ndxIntlzr, tstPs));
-            }
-            function getTest(pos, tests) {
-                if (getMaskSet().validPositions[pos]) {
-                    return getMaskSet().validPositions[pos];
-                }
-                return (tests || getTests(pos))[0];
-            }
-            function positionCanMatchDefinition(pos, def) {
-                var valid = false, tests = getTests(pos);
-                for (var tndx = 0; tndx < tests.length; tndx++) {
-                    if (tests[tndx].match && tests[tndx].match.def === def) {
-                        valid = true;
-                        break;
-                    }
-                }
-                return valid;
-            }
-            function getTests(pos, ndxIntlzr, tstPs) {
-                var maskTokens = getMaskSet().maskToken, testPos = ndxIntlzr ? tstPs : 0, ndxInitializer = ndxIntlzr ? ndxIntlzr.slice() : [ 0 ], matches = [], insertStop = false, latestMatch, cacheDependency = ndxIntlzr ? ndxIntlzr.join("") : "";
-                function resolveTestFromToken(maskToken, ndxInitializer, loopNdx, quantifierRecurse) {
-                    function handleMatch(match, loopNdx, quantifierRecurse) {
-                        function isFirstMatch(latestMatch, tokenGroup) {
-                            var firstMatch = $.inArray(latestMatch, tokenGroup.matches) === 0;
-                            if (!firstMatch) {
-                                $.each(tokenGroup.matches, function(ndx, match) {
-                                    if (match.isQuantifier === true) firstMatch = isFirstMatch(latestMatch, tokenGroup.matches[ndx - 1]); else if (match.hasOwnProperty("matches")) firstMatch = isFirstMatch(latestMatch, match);
-                                    if (firstMatch) return false;
-                                });
-                            }
-                            return firstMatch;
-                        }
-                        function resolveNdxInitializer(pos, alternateNdx, targetAlternation) {
-                            var bestMatch, indexPos;
-                            if (getMaskSet().tests[pos] || getMaskSet().validPositions[pos]) {
-                                $.each(getMaskSet().tests[pos] || [ getMaskSet().validPositions[pos] ], function(ndx, lmnt) {
-                                    if (lmnt.mloc[alternateNdx]) {
-                                        bestMatch = lmnt;
-                                        return false;
-                                    }
-                                    var alternation = targetAlternation !== undefined ? targetAlternation : lmnt.alternation, ndxPos = lmnt.locator[alternation] !== undefined ? lmnt.locator[alternation].toString().indexOf(alternateNdx) : -1;
-                                    if ((indexPos === undefined || ndxPos < indexPos) && ndxPos !== -1) {
-                                        bestMatch = lmnt;
-                                        indexPos = ndxPos;
-                                    }
-                                });
-                            }
-                            if (bestMatch) {
-                                var bestMatchAltIndex = bestMatch.locator[bestMatch.alternation];
-                                var locator = bestMatch.mloc[alternateNdx] || bestMatch.mloc[bestMatchAltIndex] || bestMatch.locator;
-                                return locator.slice((targetAlternation !== undefined ? targetAlternation : bestMatch.alternation) + 1);
-                            } else {
-                                return targetAlternation !== undefined ? resolveNdxInitializer(pos, alternateNdx) : undefined;
-                            }
-                        }
-                        function isSubsetOf(source, target) {
-                            function expand(pattern) {
-                                var expanded = [], start, end;
-                                for (var i = 0, l = pattern.length; i < l; i++) {
-                                    if (pattern.charAt(i) === "-") {
-                                        end = pattern.charCodeAt(i + 1);
-                                        while (++start < end) {
-                                            expanded.push(String.fromCharCode(start));
-                                        }
-                                    } else {
-                                        start = pattern.charCodeAt(i);
-                                        expanded.push(pattern.charAt(i));
-                                    }
-                                }
-                                return expanded.join("");
-                            }
-                            if (opts.regex && source.match.fn !== null && target.match.fn !== null) {
-                                return expand(target.match.def.replace(/[\[\]]/g, "")).indexOf(expand(source.match.def.replace(/[\[\]]/g, ""))) !== -1;
-                            }
-                            return source.match.def === target.match.nativeDef;
-                        }
-                        function staticCanMatchDefinition(source, target) {
-                            var sloc = source.locator.slice(source.alternation).join(""), tloc = target.locator.slice(target.alternation).join(""), canMatch = sloc == tloc;
-                            canMatch = canMatch && source.match.fn === null && target.match.fn !== null ? target.match.fn.test(source.match.def, getMaskSet(), pos, false, opts, false) : false;
-                            return canMatch;
-                        }
-                        function setMergeLocators(targetMatch, altMatch) {
-                            if (altMatch === undefined || targetMatch.alternation === altMatch.alternation && targetMatch.locator[targetMatch.alternation].toString().indexOf(altMatch.locator[altMatch.alternation]) === -1) {
-                                targetMatch.mloc = targetMatch.mloc || {};
-                                var locNdx = targetMatch.locator[targetMatch.alternation];
-                                if (locNdx === undefined) targetMatch.alternation = undefined; else {
-                                    if (typeof locNdx === "string") locNdx = locNdx.split(",")[0];
-                                    if (targetMatch.mloc[locNdx] === undefined) targetMatch.mloc[locNdx] = targetMatch.locator.slice();
-                                    if (altMatch !== undefined) {
-                                        for (var ndx in altMatch.mloc) {
-                                            if (typeof ndx === "string") ndx = ndx.split(",")[0];
-                                            if (targetMatch.mloc[ndx] === undefined) targetMatch.mloc[ndx] = altMatch.mloc[ndx];
-                                        }
-                                        targetMatch.locator[targetMatch.alternation] = Object.keys(targetMatch.mloc).join(",");
-                                    }
-                                    return true;
-                                }
-                            }
-                            return false;
-                        }
-                        if (testPos > 500 && quantifierRecurse !== undefined) {
-                            throw "Inputmask: There is probably an error in your mask definition or in the code. Create an issue on github with an example of the mask you are using. " + getMaskSet().mask;
-                        }
-                        if (testPos === pos && match.matches === undefined) {
-                            matches.push({
-                                match: match,
-                                locator: loopNdx.reverse(),
-                                cd: cacheDependency,
-                                mloc: {}
-                            });
-                            return true;
-                        } else if (match.matches !== undefined) {
-                            if (match.isGroup && quantifierRecurse !== match) {
-                                match = handleMatch(maskToken.matches[$.inArray(match, maskToken.matches) + 1], loopNdx, quantifierRecurse);
-                                if (match) return true;
-                            } else if (match.isOptional) {
-                                var optionalToken = match;
-                                match = resolveTestFromToken(match, ndxInitializer, loopNdx, quantifierRecurse);
-                                if (match) {
-                                    $.each(matches, function(ndx, mtch) {
-                                        mtch.match.optionality = true;
-                                    });
-                                    latestMatch = matches[matches.length - 1].match;
-                                    if (quantifierRecurse === undefined && isFirstMatch(latestMatch, optionalToken)) {
-                                        insertStop = true;
-                                        testPos = pos;
-                                    } else return true;
-                                }
-                            } else if (match.isAlternator) {
-                                var alternateToken = match, malternateMatches = [], maltMatches, currentMatches = matches.slice(), loopNdxCnt = loopNdx.length;
-                                var altIndex = ndxInitializer.length > 0 ? ndxInitializer.shift() : -1;
-                                if (altIndex === -1 || typeof altIndex === "string") {
-                                    var currentPos = testPos, ndxInitializerClone = ndxInitializer.slice(), altIndexArr = [], amndx;
-                                    if (typeof altIndex == "string") {
-                                        altIndexArr = altIndex.split(",");
-                                    } else {
-                                        for (amndx = 0; amndx < alternateToken.matches.length; amndx++) {
-                                            altIndexArr.push(amndx.toString());
-                                        }
-                                    }
-                                    if (getMaskSet().excludes[pos]) {
-                                        var altIndexArrClone = altIndexArr.slice();
-                                        for (var i = 0, el = getMaskSet().excludes[pos].length; i < el; i++) {
-                                            altIndexArr.splice(altIndexArr.indexOf(getMaskSet().excludes[pos][i].toString()), 1);
-                                        }
-                                        if (altIndexArr.length === 0) {
-                                            getMaskSet().excludes[pos] = undefined;
-                                            altIndexArr = altIndexArrClone;
-                                        }
-                                    }
-                                    if (opts.keepStatic === true || isFinite(parseInt(opts.keepStatic)) && currentPos >= opts.keepStatic) altIndexArr = altIndexArr.slice(0, 1);
-                                    var unMatchedAlternation = false;
-                                    for (var ndx = 0; ndx < altIndexArr.length; ndx++) {
-                                        amndx = parseInt(altIndexArr[ndx]);
-                                        matches = [];
-                                        ndxInitializer = typeof altIndex === "string" ? resolveNdxInitializer(testPos, amndx, loopNdxCnt) || ndxInitializerClone.slice() : ndxInitializerClone.slice();
-                                        if (alternateToken.matches[amndx] && handleMatch(alternateToken.matches[amndx], [ amndx ].concat(loopNdx), quantifierRecurse)) match = true; else if (ndx === 0) {
-                                            unMatchedAlternation = true;
-                                        }
-                                        maltMatches = matches.slice();
-                                        testPos = currentPos;
-                                        matches = [];
-                                        for (var ndx1 = 0; ndx1 < maltMatches.length; ndx1++) {
-                                            var altMatch = maltMatches[ndx1], dropMatch = false;
-                                            altMatch.match.jit = altMatch.match.jit || unMatchedAlternation;
-                                            altMatch.alternation = altMatch.alternation || loopNdxCnt;
-                                            setMergeLocators(altMatch);
-                                            for (var ndx2 = 0; ndx2 < malternateMatches.length; ndx2++) {
-                                                var altMatch2 = malternateMatches[ndx2];
-                                                if (typeof altIndex !== "string" || altMatch.alternation !== undefined && $.inArray(altMatch.locator[altMatch.alternation].toString(), altIndexArr) !== -1) {
-                                                    if (altMatch.match.nativeDef === altMatch2.match.nativeDef) {
-                                                        dropMatch = true;
-                                                        setMergeLocators(altMatch2, altMatch);
-                                                        break;
-                                                    } else if (isSubsetOf(altMatch, altMatch2)) {
-                                                        if (setMergeLocators(altMatch, altMatch2)) {
-                                                            dropMatch = true;
-                                                            malternateMatches.splice(malternateMatches.indexOf(altMatch2), 0, altMatch);
-                                                        }
-                                                        break;
-                                                    } else if (isSubsetOf(altMatch2, altMatch)) {
-                                                        setMergeLocators(altMatch2, altMatch);
-                                                        break;
-                                                    } else if (staticCanMatchDefinition(altMatch, altMatch2)) {
-                                                        if (setMergeLocators(altMatch, altMatch2)) {
-                                                            dropMatch = true;
-                                                            malternateMatches.splice(malternateMatches.indexOf(altMatch2), 0, altMatch);
-                                                        }
-                                                        break;
-                                                    }
-                                                }
-                                            }
-                                            if (!dropMatch) {
-                                                malternateMatches.push(altMatch);
-                                            }
-                                        }
-                                    }
-                                    matches = currentMatches.concat(malternateMatches);
-                                    testPos = pos;
-                                    insertStop = matches.length > 0;
-                                    match = malternateMatches.length > 0;
-                                    ndxInitializer = ndxInitializerClone.slice();
-                                } else match = handleMatch(alternateToken.matches[altIndex] || maskToken.matches[altIndex], [ altIndex ].concat(loopNdx), quantifierRecurse);
-                                if (match) return true;
-                            } else if (match.isQuantifier && quantifierRecurse !== maskToken.matches[$.inArray(match, maskToken.matches) - 1]) {
-                                var qt = match;
-                                for (var qndx = ndxInitializer.length > 0 ? ndxInitializer.shift() : 0; qndx < (isNaN(qt.quantifier.max) ? qndx + 1 : qt.quantifier.max) && testPos <= pos; qndx++) {
-                                    var tokenGroup = maskToken.matches[$.inArray(qt, maskToken.matches) - 1];
-                                    match = handleMatch(tokenGroup, [ qndx ].concat(loopNdx), tokenGroup);
-                                    if (match) {
-                                        latestMatch = matches[matches.length - 1].match;
-                                        latestMatch.optionalQuantifier = qndx >= qt.quantifier.min;
-                                        latestMatch.jit = (qndx || 1) * tokenGroup.matches.indexOf(latestMatch) >= qt.quantifier.jit;
-                                        if (latestMatch.optionalQuantifier && isFirstMatch(latestMatch, tokenGroup)) {
-                                            insertStop = true;
-                                            testPos = pos;
-                                            break;
-                                        }
-                                        if (latestMatch.jit) {
-                                            getMaskSet().jitOffset[pos] = tokenGroup.matches.indexOf(latestMatch);
-                                        }
-                                        return true;
-                                    }
-                                }
-                            } else {
-                                match = resolveTestFromToken(match, ndxInitializer, loopNdx, quantifierRecurse);
-                                if (match) return true;
-                            }
-                        } else {
-                            testPos++;
-                        }
-                    }
-                    for (var tndx = ndxInitializer.length > 0 ? ndxInitializer.shift() : 0; tndx < maskToken.matches.length; tndx++) {
-                        if (maskToken.matches[tndx].isQuantifier !== true) {
-                            var match = handleMatch(maskToken.matches[tndx], [ tndx ].concat(loopNdx), quantifierRecurse);
-                            if (match && testPos === pos) {
-                                return match;
-                            } else if (testPos > pos) {
-                                break;
-                            }
-                        }
-                    }
-                }
-                function mergeLocators(pos, tests) {
-                    var locator = [];
-                    if (!$.isArray(tests)) tests = [ tests ];
-                    if (tests.length > 0) {
-                        if (tests[0].alternation === undefined) {
-                            locator = determineTestTemplate(pos, tests.slice()).locator.slice();
-                            if (locator.length === 0) locator = tests[0].locator.slice();
-                        } else {
-                            $.each(tests, function(ndx, tst) {
-                                if (tst.def !== "") {
-                                    if (locator.length === 0) locator = tst.locator.slice(); else {
-                                        for (var i = 0; i < locator.length; i++) {
-                                            if (tst.locator[i] && locator[i].toString().indexOf(tst.locator[i]) === -1) {
-                                                locator[i] += "," + tst.locator[i];
-                                            }
-                                        }
-                                    }
-                                }
-                            });
-                        }
-                    }
-                    return locator;
-                }
-                if (pos > -1) {
-                    if (ndxIntlzr === undefined) {
-                        var previousPos = pos - 1, test;
-                        while ((test = getMaskSet().validPositions[previousPos] || getMaskSet().tests[previousPos]) === undefined && previousPos > -1) {
-                            previousPos--;
-                        }
-                        if (test !== undefined && previousPos > -1) {
-                            ndxInitializer = mergeLocators(previousPos, test);
-                            cacheDependency = ndxInitializer.join("");
-                            testPos = previousPos;
-                        }
-                    }
-                    if (getMaskSet().tests[pos] && getMaskSet().tests[pos][0].cd === cacheDependency) {
-                        return getMaskSet().tests[pos];
-                    }
-                    for (var mtndx = ndxInitializer.shift(); mtndx < maskTokens.length; mtndx++) {
-                        var match = resolveTestFromToken(maskTokens[mtndx], ndxInitializer, [ mtndx ]);
-                        if (match && testPos === pos || testPos > pos) {
-                            break;
-                        }
-                    }
-                }
-                if (matches.length === 0 || insertStop) {
-                    matches.push({
-                        match: {
-                            fn: null,
-                            optionality: false,
-                            casing: null,
-                            def: "",
-                            placeholder: ""
-                        },
-                        locator: [],
-                        mloc: {},
-                        cd: cacheDependency
-                    });
-                }
-                if (ndxIntlzr !== undefined && getMaskSet().tests[pos]) {
-                    return $.extend(true, [], matches);
-                }
-                getMaskSet().tests[pos] = $.extend(true, [], matches);
-                return getMaskSet().tests[pos];
-            }
-            function getBufferTemplate() {
-                if (getMaskSet()._buffer === undefined) {
-                    getMaskSet()._buffer = getMaskTemplate(false, 1);
-                    if (getMaskSet().buffer === undefined) getMaskSet().buffer = getMaskSet()._buffer.slice();
-                }
-                return getMaskSet()._buffer;
-            }
-            function getBuffer(noCache) {
-                if (getMaskSet().buffer === undefined || noCache === true) {
-                    getMaskSet().buffer = getMaskTemplate(true, getLastValidPosition(), true);
-                    if (getMaskSet()._buffer === undefined) getMaskSet()._buffer = getMaskSet().buffer.slice();
-                }
-                return getMaskSet().buffer;
-            }
-            function refreshFromBuffer(start, end, buffer) {
-                var i, p;
-                if (start === true) {
-                    resetMaskSet();
-                    start = 0;
-                    end = buffer.length;
-                } else {
-                    for (i = start; i < end; i++) {
-                        delete getMaskSet().validPositions[i];
-                    }
-                }
-                p = start;
-                for (i = start; i < end; i++) {
-                    resetMaskSet(true);
-                    if (buffer[i] !== opts.skipOptionalPartCharacter) {
-                        var valResult = isValid(p, buffer[i], true, true);
-                        if (valResult !== false) {
-                            resetMaskSet(true);
-                            p = valResult.caret !== undefined ? valResult.caret : valResult.pos + 1;
-                        }
-                    }
-                }
-            }
-            function casing(elem, test, pos) {
-                switch (opts.casing || test.casing) {
-                  case "upper":
-                    elem = elem.toUpperCase();
-                    break;
-
-                  case "lower":
-                    elem = elem.toLowerCase();
-                    break;
-
-                  case "title":
-                    var posBefore = getMaskSet().validPositions[pos - 1];
-                    if (pos === 0 || posBefore && posBefore.input === String.fromCharCode(Inputmask.keyCode.SPACE)) {
-                        elem = elem.toUpperCase();
-                    } else {
-                        elem = elem.toLowerCase();
-                    }
-                    break;
-
-                  default:
-                    if ($.isFunction(opts.casing)) {
-                        var args = Array.prototype.slice.call(arguments);
-                        args.push(getMaskSet().validPositions);
-                        elem = opts.casing.apply(this, args);
-                    }
-                }
-                return elem;
-            }
-            function checkAlternationMatch(altArr1, altArr2, na) {
-                var altArrC = opts.greedy ? altArr2 : altArr2.slice(0, 1), isMatch = false, naArr = na !== undefined ? na.split(",") : [], naNdx;
-                for (var i = 0; i < naArr.length; i++) {
-                    if ((naNdx = altArr1.indexOf(naArr[i])) !== -1) {
-                        altArr1.splice(naNdx, 1);
-                    }
-                }
-                for (var alndx = 0; alndx < altArr1.length; alndx++) {
-                    if ($.inArray(altArr1[alndx], altArrC) !== -1) {
-                        isMatch = true;
-                        break;
-                    }
-                }
-                return isMatch;
-            }
-            function alternate(pos, c, strict, fromSetValid, rAltPos) {
-                var validPsClone = $.extend(true, {}, getMaskSet().validPositions), lastAlt, alternation, isValidRslt = false, altPos, prevAltPos, i, validPos, decisionPos, lAltPos = rAltPos !== undefined ? rAltPos : getLastValidPosition();
-                if (lAltPos === -1 && rAltPos === undefined) {
-                    lastAlt = 0;
-                    prevAltPos = getTest(lastAlt);
-                    alternation = prevAltPos.alternation;
-                } else {
-                    for (;lAltPos >= 0; lAltPos--) {
-                        altPos = getMaskSet().validPositions[lAltPos];
-                        if (altPos && altPos.alternation !== undefined) {
-                            if (prevAltPos && prevAltPos.locator[altPos.alternation] !== altPos.locator[altPos.alternation]) {
-                                break;
-                            }
-                            lastAlt = lAltPos;
-                            alternation = getMaskSet().validPositions[lastAlt].alternation;
-                            prevAltPos = altPos;
-                        }
-                    }
-                }
-                if (alternation !== undefined) {
-                    decisionPos = parseInt(lastAlt);
-                    getMaskSet().excludes[decisionPos] = getMaskSet().excludes[decisionPos] || [];
-                    if (pos !== true) {
-                        getMaskSet().excludes[decisionPos].push(getDecisionTaker(prevAltPos));
-                    }
-                    var validInputsClone = [], staticInputsBeforePos = 0;
-                    for (i = decisionPos; i < getLastValidPosition(undefined, true) + 1; i++) {
-                        validPos = getMaskSet().validPositions[i];
-                        if (validPos && validPos.generatedInput !== true) {
-                            validInputsClone.push(validPos.input);
-                        } else if (i < pos) staticInputsBeforePos++;
-                        delete getMaskSet().validPositions[i];
-                    }
-                    while (getMaskSet().excludes[decisionPos] && getMaskSet().excludes[decisionPos].length < 10) {
-                        var posOffset = staticInputsBeforePos * -1, validInputs = validInputsClone.slice();
-                        getMaskSet().tests[decisionPos] = undefined;
-                        resetMaskSet(true);
-                        isValidRslt = true;
-                        while (validInputs.length > 0) {
-                            var input = validInputs.shift();
-                            if (!(isValidRslt = isValid(getLastValidPosition(undefined, true) + 1, input, false, fromSetValid, true))) {
-                                break;
-                            }
-                        }
-                        if (isValidRslt && c !== undefined) {
-                            var targetLvp = getLastValidPosition(pos) + 1;
-                            for (i = decisionPos; i < getLastValidPosition() + 1; i++) {
-                                validPos = getMaskSet().validPositions[i];
-                                if ((validPos === undefined || validPos.match.fn == null) && i < pos + posOffset) {
-                                    posOffset++;
-                                }
-                            }
-                            pos = pos + posOffset;
-                            isValidRslt = isValid(pos > targetLvp ? targetLvp : pos, c, strict, fromSetValid, true);
-                        }
-                        if (!isValidRslt) {
-                            resetMaskSet();
-                            prevAltPos = getTest(decisionPos);
-                            getMaskSet().validPositions = $.extend(true, {}, validPsClone);
-                            if (getMaskSet().excludes[decisionPos]) {
-                                var decisionTaker = getDecisionTaker(prevAltPos);
-                                if (getMaskSet().excludes[decisionPos].indexOf(decisionTaker) !== -1) {
-                                    isValidRslt = alternate(pos, c, strict, fromSetValid, decisionPos - 1);
-                                    break;
-                                }
-                                getMaskSet().excludes[decisionPos].push(decisionTaker);
-                                for (i = decisionPos; i < getLastValidPosition(undefined, true) + 1; i++) {
-                                    delete getMaskSet().validPositions[i];
-                                }
-                            } else {
-                                isValidRslt = alternate(pos, c, strict, fromSetValid, decisionPos - 1);
-                                break;
-                            }
-                        } else break;
-                    }
-                }
-                getMaskSet().excludes[decisionPos] = undefined;
-                return isValidRslt;
-            }
-            function isValid(pos, c, strict, fromSetValid, fromAlternate, validateOnly) {
-                function isSelection(posObj) {
-                    return isRTL ? posObj.begin - posObj.end > 1 || posObj.begin - posObj.end === 1 : posObj.end - posObj.begin > 1 || posObj.end - posObj.begin === 1;
-                }
-                strict = strict === true;
-                var maskPos = pos;
-                if (pos.begin !== undefined) {
-                    maskPos = isRTL ? pos.end : pos.begin;
-                }
-                function _isValid(position, c, strict) {
-                    var rslt = false;
-                    $.each(getTests(position), function(ndx, tst) {
-                        var test = tst.match;
-                        getBuffer(true);
-                        rslt = test.fn != null ? test.fn.test(c, getMaskSet(), position, strict, opts, isSelection(pos)) : (c === test.def || c === opts.skipOptionalPartCharacter) && test.def !== "" ? {
-                            c: getPlaceholder(position, test, true) || test.def,
-                            pos: position
-                        } : false;
-                        if (rslt !== false) {
-                            var elem = rslt.c !== undefined ? rslt.c : c, validatedPos = position;
-                            elem = elem === opts.skipOptionalPartCharacter && test.fn === null ? getPlaceholder(position, test, true) || test.def : elem;
-                            if (rslt.remove !== undefined) {
-                                if (!$.isArray(rslt.remove)) rslt.remove = [ rslt.remove ];
-                                $.each(rslt.remove.sort(function(a, b) {
-                                    return b - a;
-                                }), function(ndx, lmnt) {
-                                    revalidateMask({
-                                        begin: lmnt,
-                                        end: lmnt + 1
-                                    });
-                                });
-                            }
-                            if (rslt.insert !== undefined) {
-                                if (!$.isArray(rslt.insert)) rslt.insert = [ rslt.insert ];
-                                $.each(rslt.insert.sort(function(a, b) {
-                                    return a - b;
-                                }), function(ndx, lmnt) {
-                                    isValid(lmnt.pos, lmnt.c, true, fromSetValid);
-                                });
-                            }
-                            if (rslt !== true && rslt.pos !== undefined && rslt.pos !== position) {
-                                validatedPos = rslt.pos;
-                            }
-                            if (rslt !== true && rslt.pos === undefined && rslt.c === undefined) {
-                                return false;
-                            }
-                            if (!revalidateMask(pos, $.extend({}, tst, {
-                                input: casing(elem, test, validatedPos)
-                            }), fromSetValid, validatedPos)) {
-                                rslt = false;
-                            }
-                            return false;
-                        }
-                    });
-                    return rslt;
-                }
-                var result = true, positionsClone = $.extend(true, {}, getMaskSet().validPositions);
-                if ($.isFunction(opts.preValidation) && !strict && fromSetValid !== true && validateOnly !== true) {
-                    result = opts.preValidation(getBuffer(), maskPos, c, isSelection(pos), opts, getMaskSet());
-                }
-                if (result === true) {
-                    trackbackPositions(undefined, maskPos, true);
-                    if (maxLength === undefined || maskPos < maxLength) {
-                        result = _isValid(maskPos, c, strict);
-                        if ((!strict || fromSetValid === true) && result === false && validateOnly !== true) {
-                            var currentPosValid = getMaskSet().validPositions[maskPos];
-                            if (currentPosValid && currentPosValid.match.fn === null && (currentPosValid.match.def === c || c === opts.skipOptionalPartCharacter)) {
-                                result = {
-                                    caret: seekNext(maskPos)
-                                };
-                            } else {
-                                if ((opts.insertMode || getMaskSet().validPositions[seekNext(maskPos)] === undefined) && (!isMask(maskPos, true) || getMaskSet().jitOffset[maskPos])) {
-                                    if (getMaskSet().jitOffset[maskPos] && getMaskSet().validPositions[seekNext(maskPos)] === undefined) {
-                                        result = isValid(maskPos + getMaskSet().jitOffset[maskPos], c, strict);
-                                        if (result !== false) result.caret = maskPos;
-                                    } else for (var nPos = maskPos + 1, snPos = seekNext(maskPos); nPos <= snPos; nPos++) {
-                                        result = _isValid(nPos, c, strict);
-                                        if (result !== false) {
-                                            result = trackbackPositions(maskPos, result.pos !== undefined ? result.pos : nPos) || result;
-                                            maskPos = nPos;
-                                            break;
-                                        }
-                                    }
-                                }
-                            }
-                        }
-                    }
-                    if (result === false && opts.keepStatic !== false && (opts.regex == null || isComplete(getBuffer())) && !strict && fromAlternate !== true) {
-                        result = alternate(maskPos, c, strict, fromSetValid);
-                    }
-                    if (result === true) {
-                        result = {
-                            pos: maskPos
-                        };
-                    }
-                }
-                if ($.isFunction(opts.postValidation) && result !== false && !strict && fromSetValid !== true && validateOnly !== true) {
-                    var postResult = opts.postValidation(getBuffer(true), pos.begin !== undefined ? isRTL ? pos.end : pos.begin : pos, result, opts);
-                    if (postResult !== undefined) {
-                        if (postResult.refreshFromBuffer && postResult.buffer) {
-                            var refresh = postResult.refreshFromBuffer;
-                            refreshFromBuffer(refresh === true ? refresh : refresh.start, refresh.end, postResult.buffer);
-                        }
-                        result = postResult === true ? result : postResult;
-                    }
-                }
-                if (result && result.pos === undefined) {
-                    result.pos = maskPos;
-                }
-                if (result === false || validateOnly === true) {
-                    resetMaskSet(true);
-                    getMaskSet().validPositions = $.extend(true, {}, positionsClone);
-                }
-                return result;
-            }
-            function trackbackPositions(originalPos, newPos, fillOnly) {
-                var result;
-                if (originalPos === undefined) {
-                    for (originalPos = newPos - 1; originalPos > 0; originalPos--) {
-                        if (getMaskSet().validPositions[originalPos]) break;
-                    }
-                }
-                for (var ps = originalPos; ps < newPos; ps++) {
-                    if (getMaskSet().validPositions[ps] === undefined && !isMask(ps, true)) {
-                        var vp = ps == 0 ? getTest(ps) : getMaskSet().validPositions[ps - 1];
-                        if (vp) {
-                            var tests = getTests(ps).slice();
-                            if (tests[tests.length - 1].match.def === "") tests.pop();
-                            var bestMatch = determineTestTemplate(ps, tests);
-                            bestMatch = $.extend({}, bestMatch, {
-                                input: getPlaceholder(ps, bestMatch.match, true) || bestMatch.match.def
-                            });
-                            bestMatch.generatedInput = true;
-                            revalidateMask(ps, bestMatch, true);
-                            if (fillOnly !== true) {
-                                var cvpInput = getMaskSet().validPositions[newPos].input;
-                                getMaskSet().validPositions[newPos] = undefined;
-                                result = isValid(newPos, cvpInput, true, true);
-                            }
-                        }
-                    }
-                }
-                return result;
-            }
-            function revalidateMask(pos, validTest, fromSetValid, validatedPos) {
-                function IsEnclosedStatic(pos, valids, selection) {
-                    var posMatch = valids[pos];
-                    if (posMatch !== undefined && (posMatch.match.fn === null && posMatch.match.optionality !== true || posMatch.input === opts.radixPoint)) {
-                        var prevMatch = selection.begin <= pos - 1 ? valids[pos - 1] && valids[pos - 1].match.fn === null && valids[pos - 1] : valids[pos - 1], nextMatch = selection.end > pos + 1 ? valids[pos + 1] && valids[pos + 1].match.fn === null && valids[pos + 1] : valids[pos + 1];
-                        return prevMatch && nextMatch;
-                    }
-                    return false;
-                }
-                var begin = pos.begin !== undefined ? pos.begin : pos, end = pos.end !== undefined ? pos.end : pos;
-                if (pos.begin > pos.end) {
-                    begin = pos.end;
-                    end = pos.begin;
-                }
-                validatedPos = validatedPos !== undefined ? validatedPos : begin;
-                if (begin !== end || opts.insertMode && getMaskSet().validPositions[validatedPos] !== undefined && fromSetValid === undefined) {
-                    var positionsClone = $.extend(true, {}, getMaskSet().validPositions), lvp = getLastValidPosition(undefined, true), i;
-                    getMaskSet().p = begin;
-                    for (i = lvp; i >= begin; i--) {
-                        if (getMaskSet().validPositions[i] && getMaskSet().validPositions[i].match.nativeDef === "+") {
-                            opts.isNegative = false;
-                        }
-                        delete getMaskSet().validPositions[i];
-                    }
-                    var valid = true, j = validatedPos, vps = getMaskSet().validPositions, needsValidation = false, posMatch = j, i = j;
-                    if (validTest) {
-                        getMaskSet().validPositions[validatedPos] = $.extend(true, {}, validTest);
-                        posMatch++;
-                        j++;
-                        if (begin < end) i++;
-                    }
-                    for (;i <= lvp; i++) {
-                        var t = positionsClone[i];
-                        if (t !== undefined && (i >= end || i >= begin && t.generatedInput !== true && IsEnclosedStatic(i, positionsClone, {
-                            begin: begin,
-                            end: end
-                        }))) {
-                            while (getTest(posMatch).match.def !== "") {
-                                if (needsValidation === false && positionsClone[posMatch] && positionsClone[posMatch].match.nativeDef === t.match.nativeDef) {
-                                    getMaskSet().validPositions[posMatch] = $.extend(true, {}, positionsClone[posMatch]);
-                                    getMaskSet().validPositions[posMatch].input = t.input;
-                                    trackbackPositions(undefined, posMatch, true);
-                                    j = posMatch + 1;
-                                    valid = true;
-                                } else if (opts.shiftPositions && positionCanMatchDefinition(posMatch, t.match.def)) {
-                                    var result = isValid(posMatch, t.input, true, true);
-                                    valid = result !== false;
-                                    j = result.caret || result.insert ? getLastValidPosition() : posMatch + 1;
-                                    needsValidation = true;
-                                } else {
-                                    valid = t.generatedInput === true || t.input === opts.radixPoint && opts.numericInput === true;
-                                }
-                                if (valid) break;
-                                if (!valid && posMatch > end && isMask(posMatch, true) && (t.match.fn !== null || posMatch > getMaskSet().maskLength)) {
-                                    break;
-                                }
-                                posMatch++;
-                            }
-                            if (getTest(posMatch).match.def == "") valid = false;
-                            posMatch = j;
-                        }
-                        if (!valid) break;
-                    }
-                    if (!valid) {
-                        getMaskSet().validPositions = $.extend(true, {}, positionsClone);
-                        resetMaskSet(true);
-                        return false;
-                    }
-                } else if (validTest) {
-                    getMaskSet().validPositions[validatedPos] = $.extend(true, {}, validTest);
-                }
-                resetMaskSet(true);
-                return true;
-            }
-            function isMask(pos, strict) {
-                var test = getTestTemplate(pos).match;
-                if (test.def === "") test = getTest(pos).match;
-                if (test.fn != null) {
-                    return test.fn;
-                }
-                if (strict !== true && pos > -1) {
-                    var tests = getTests(pos);
-                    return tests.length > 1 + (tests[tests.length - 1].match.def === "" ? 1 : 0);
-                }
-                return false;
-            }
-            function seekNext(pos, newBlock) {
-                var position = pos + 1;
-                while (getTest(position).match.def !== "" && (newBlock === true && (getTest(position).match.newBlockMarker !== true || !isMask(position)) || newBlock !== true && !isMask(position))) {
-                    position++;
-                }
-                return position;
-            }
-            function seekPrevious(pos, newBlock) {
-                var position = pos, tests;
-                if (position <= 0) return 0;
-                while (--position > 0 && (newBlock === true && getTest(position).match.newBlockMarker !== true || newBlock !== true && !isMask(position) && (tests = getTests(position), 
-                tests.length < 2 || tests.length === 2 && tests[1].match.def === ""))) {}
-                return position;
-            }
-            function writeBuffer(input, buffer, caretPos, event, triggerEvents) {
-                if (event && $.isFunction(opts.onBeforeWrite)) {
-                    var result = opts.onBeforeWrite.call(inputmask, event, buffer, caretPos, opts);
-                    if (result) {
-                        if (result.refreshFromBuffer) {
-                            var refresh = result.refreshFromBuffer;
-                            refreshFromBuffer(refresh === true ? refresh : refresh.start, refresh.end, result.buffer || buffer);
-                            buffer = getBuffer(true);
-                        }
-                        if (caretPos !== undefined) caretPos = result.caret !== undefined ? result.caret : caretPos;
-                    }
-                }
-                if (input !== undefined) {
-                    input.inputmask._valueSet(buffer.join(""));
-                    if (caretPos !== undefined && (event === undefined || event.type !== "blur")) {
-                        caret(input, caretPos);
-                    } else renderColorMask(input, caretPos, buffer.length === 0);
-                    if (triggerEvents === true) {
-                        var $input = $(input), nptVal = input.inputmask._valueGet();
-                        skipInputEvent = true;
-                        $input.trigger("input");
-                        setTimeout(function() {
-                            if (nptVal === getBufferTemplate().join("")) {
-                                $input.trigger("cleared");
-                            } else if (isComplete(buffer) === true) {
-                                $input.trigger("complete");
-                            }
-                        }, 0);
-                    }
-                }
-            }
-            function getPlaceholder(pos, test, returnPL) {
-                test = test || getTest(pos).match;
-                if (test.placeholder !== undefined || returnPL === true) {
-                    return $.isFunction(test.placeholder) ? test.placeholder(opts) : test.placeholder;
-                } else if (test.fn === null) {
-                    if (pos > -1 && getMaskSet().validPositions[pos] === undefined) {
-                        var tests = getTests(pos), staticAlternations = [], prevTest;
-                        if (tests.length > 1 + (tests[tests.length - 1].match.def === "" ? 1 : 0)) {
-                            for (var i = 0; i < tests.length; i++) {
-                                if (tests[i].match.optionality !== true && tests[i].match.optionalQuantifier !== true && (tests[i].match.fn === null || prevTest === undefined || tests[i].match.fn.test(prevTest.match.def, getMaskSet(), pos, true, opts) !== false)) {
-                                    staticAlternations.push(tests[i]);
-                                    if (tests[i].match.fn === null) prevTest = tests[i];
-                                    if (staticAlternations.length > 1) {
-                                        if (/[0-9a-bA-Z]/.test(staticAlternations[0].match.def)) {
-                                            return opts.placeholder.charAt(pos % opts.placeholder.length);
-                                        }
-                                    }
-                                }
-                            }
-                        }
-                    }
-                    return test.def;
-                }
-                return opts.placeholder.charAt(pos % opts.placeholder.length);
-            }
-            function HandleNativePlaceholder(npt, value) {
-                if (ie) {
-                    if (npt.inputmask._valueGet() !== value && (npt.placeholder !== value || npt.placeholder === "")) {
-                        var buffer = getBuffer().slice(), nptValue = npt.inputmask._valueGet();
-                        if (nptValue !== value) {
-                            var lvp = getLastValidPosition();
-                            if (lvp === -1 && nptValue === getBufferTemplate().join("")) {
-                                buffer = [];
-                            } else if (lvp !== -1) {
-                                clearOptionalTail(buffer);
-                            }
-                            writeBuffer(npt, buffer);
-                        }
-                    }
-                } else if (npt.placeholder !== value) {
-                    npt.placeholder = value;
-                    if (npt.placeholder === "") npt.removeAttribute("placeholder");
-                }
-            }
-            var EventRuler = {
-                on: function on(input, eventName, eventHandler) {
-                    var ev = function ev(e) {
-                        var that = this;
-                        if (that.inputmask === undefined && this.nodeName !== "FORM") {
-                            var imOpts = $.data(that, "_inputmask_opts");
-                            if (imOpts) new Inputmask(imOpts).mask(that); else EventRuler.off(that);
-                        } else if (e.type !== "setvalue" && this.nodeName !== "FORM" && (that.disabled || that.readOnly && !(e.type === "keydown" && e.ctrlKey && e.keyCode === 67 || opts.tabThrough === false && e.keyCode === Inputmask.keyCode.TAB))) {
-                            e.preventDefault();
-                        } else {
-                            switch (e.type) {
-                              case "input":
-                                if (skipInputEvent === true) {
-                                    skipInputEvent = false;
-                                    return e.preventDefault();
-                                }
-                                if (mobile) {
-                                    var args = arguments;
-                                    setTimeout(function() {
-                                        eventHandler.apply(that, args);
-                                        caret(that, that.inputmask.caretPos, undefined, true);
-                                    }, 0);
-                                    return false;
-                                }
-                                break;
-
-                              case "keydown":
-                                skipKeyPressEvent = false;
-                                skipInputEvent = false;
-                                break;
-
-                              case "keypress":
-                                if (skipKeyPressEvent === true) {
-                                    return e.preventDefault();
-                                }
-                                skipKeyPressEvent = true;
-                                break;
-
-                              case "click":
-                                if (iemobile || iphone) {
-                                    var args = arguments;
-                                    setTimeout(function() {
-                                        eventHandler.apply(that, args);
-                                    }, 0);
-                                    return false;
-                                }
-                                break;
-                            }
-                            var returnVal = eventHandler.apply(that, arguments);
-                            if (returnVal === false) {
-                                e.preventDefault();
-                                e.stopPropagation();
-                            }
-                            return returnVal;
-                        }
-                    };
-                    input.inputmask.events[eventName] = input.inputmask.events[eventName] || [];
-                    input.inputmask.events[eventName].push(ev);
-                    if ($.inArray(eventName, [ "submit", "reset" ]) !== -1) {
-                        if (input.form !== null) $(input.form).on(eventName, ev);
-                    } else {
-                        $(input).on(eventName, ev);
-                    }
-                },
-                off: function off(input, event) {
-                    if (input.inputmask && input.inputmask.events) {
-                        var events;
-                        if (event) {
-                            events = [];
-                            events[event] = input.inputmask.events[event];
-                        } else {
-                            events = input.inputmask.events;
-                        }
-                        $.each(events, function(eventName, evArr) {
-                            while (evArr.length > 0) {
-                                var ev = evArr.pop();
-                                if ($.inArray(eventName, [ "submit", "reset" ]) !== -1) {
-                                    if (input.form !== null) $(input.form).off(eventName, ev);
-                                } else {
-                                    $(input).off(eventName, ev);
-                                }
-                            }
-                            delete input.inputmask.events[eventName];
-                        });
-                    }
-                }
-            };
-            var EventHandlers = {
-                keydownEvent: function keydownEvent(e) {
-                    var input = this, $input = $(input), k = e.keyCode, pos = caret(input);
-                    if (k === Inputmask.keyCode.BACKSPACE || k === Inputmask.keyCode.DELETE || iphone && k === Inputmask.keyCode.BACKSPACE_SAFARI || e.ctrlKey && k === Inputmask.keyCode.X && !isInputEventSupported("cut")) {
-                        e.preventDefault();
-                        handleRemove(input, k, pos);
-                        writeBuffer(input, getBuffer(true), getMaskSet().p, e, input.inputmask._valueGet() !== getBuffer().join(""));
-                    } else if (k === Inputmask.keyCode.END || k === Inputmask.keyCode.PAGE_DOWN) {
-                        e.preventDefault();
-                        var caretPos = seekNext(getLastValidPosition());
-                        caret(input, e.shiftKey ? pos.begin : caretPos, caretPos, true);
-                    } else if (k === Inputmask.keyCode.HOME && !e.shiftKey || k === Inputmask.keyCode.PAGE_UP) {
-                        e.preventDefault();
-                        caret(input, 0, e.shiftKey ? pos.begin : 0, true);
-                    } else if ((opts.undoOnEscape && k === Inputmask.keyCode.ESCAPE || k === 90 && e.ctrlKey) && e.altKey !== true) {
-                        checkVal(input, true, false, undoValue.split(""));
-                        $input.trigger("click");
-                    } else if (k === Inputmask.keyCode.INSERT && !(e.shiftKey || e.ctrlKey)) {
-                        opts.insertMode = !opts.insertMode;
-                        input.setAttribute("im-insert", opts.insertMode);
-                    } else if (opts.tabThrough === true && k === Inputmask.keyCode.TAB) {
-                        if (e.shiftKey === true) {
-                            if (getTest(pos.begin).match.fn === null) {
-                                pos.begin = seekNext(pos.begin);
-                            }
-                            pos.end = seekPrevious(pos.begin, true);
-                            pos.begin = seekPrevious(pos.end, true);
-                        } else {
-                            pos.begin = seekNext(pos.begin, true);
-                            pos.end = seekNext(pos.begin, true);
-                            if (pos.end < getMaskSet().maskLength) pos.end--;
-                        }
-                        if (pos.begin < getMaskSet().maskLength) {
-                            e.preventDefault();
-                            caret(input, pos.begin, pos.end);
-                        }
-                    }
-                    opts.onKeyDown.call(this, e, getBuffer(), caret(input).begin, opts);
-                    ignorable = $.inArray(k, opts.ignorables) !== -1;
-                },
-                keypressEvent: function keypressEvent(e, checkval, writeOut, strict, ndx) {
-                    var input = this, $input = $(input), k = e.which || e.charCode || e.keyCode;
-                    if (checkval !== true && !(e.ctrlKey && e.altKey) && (e.ctrlKey || e.metaKey || ignorable)) {
-                        if (k === Inputmask.keyCode.ENTER && undoValue !== getBuffer().join("")) {
-                            undoValue = getBuffer().join("");
-                            setTimeout(function() {
-                                $input.trigger("change");
-                            }, 0);
-                        }
-                        return true;
-                    } else {
-                        if (k) {
-                            if (k === 46 && e.shiftKey === false && opts.radixPoint !== "") k = opts.radixPoint.charCodeAt(0);
-                            var pos = checkval ? {
-                                begin: ndx,
-                                end: ndx
-                            } : caret(input), forwardPosition, c = String.fromCharCode(k), offset = 0;
-                            if (opts._radixDance && opts.numericInput) {
-                                var caretPos = getBuffer().indexOf(opts.radixPoint.charAt(0)) + 1;
-                                if (pos.begin <= caretPos) {
-                                    if (k === opts.radixPoint.charCodeAt(0)) offset = 1;
-                                    pos.begin -= 1;
-                                    pos.end -= 1;
-                                }
-                            }
-                            getMaskSet().writeOutBuffer = true;
-                            var valResult = isValid(pos, c, strict);
-                            if (valResult !== false) {
-                                resetMaskSet(true);
-                                forwardPosition = valResult.caret !== undefined ? valResult.caret : seekNext(valResult.pos.begin ? valResult.pos.begin : valResult.pos);
-                                getMaskSet().p = forwardPosition;
-                            }
-                            forwardPosition = (opts.numericInput && valResult.caret === undefined ? seekPrevious(forwardPosition) : forwardPosition) + offset;
-                            if (writeOut !== false) {
-                                setTimeout(function() {
-                                    opts.onKeyValidation.call(input, k, valResult, opts);
-                                }, 0);
-                                if (getMaskSet().writeOutBuffer && valResult !== false) {
-                                    var buffer = getBuffer();
-                                    writeBuffer(input, buffer, forwardPosition, e, checkval !== true);
-                                }
-                            }
-                            e.preventDefault();
-                            if (checkval) {
-                                if (valResult !== false) valResult.forwardPosition = forwardPosition;
-                                return valResult;
-                            }
-                        }
-                    }
-                },
-                pasteEvent: function pasteEvent(e) {
-                    var input = this, ev = e.originalEvent || e, $input = $(input), inputValue = input.inputmask._valueGet(true), caretPos = caret(input), tempValue;
-                    if (isRTL) {
-                        tempValue = caretPos.end;
-                        caretPos.end = caretPos.begin;
-                        caretPos.begin = tempValue;
-                    }
-                    var valueBeforeCaret = inputValue.substr(0, caretPos.begin), valueAfterCaret = inputValue.substr(caretPos.end, inputValue.length);
-                    if (valueBeforeCaret === (isRTL ? getBufferTemplate().reverse() : getBufferTemplate()).slice(0, caretPos.begin).join("")) valueBeforeCaret = "";
-                    if (valueAfterCaret === (isRTL ? getBufferTemplate().reverse() : getBufferTemplate()).slice(caretPos.end).join("")) valueAfterCaret = "";
-                    if (window.clipboardData && window.clipboardData.getData) {
-                        inputValue = valueBeforeCaret + window.clipboardData.getData("Text") + valueAfterCaret;
-                    } else if (ev.clipboardData && ev.clipboardData.getData) {
-                        inputValue = valueBeforeCaret + ev.clipboardData.getData("text/plain") + valueAfterCaret;
-                    } else return true;
-                    var pasteValue = inputValue;
-                    if ($.isFunction(opts.onBeforePaste)) {
-                        pasteValue = opts.onBeforePaste.call(inputmask, inputValue, opts);
-                        if (pasteValue === false) {
-                            return e.preventDefault();
-                        }
-                        if (!pasteValue) {
-                            pasteValue = inputValue;
-                        }
-                    }
-                    checkVal(input, false, false, pasteValue.toString().split(""));
-                    writeBuffer(input, getBuffer(), seekNext(getLastValidPosition()), e, undoValue !== getBuffer().join(""));
-                    return e.preventDefault();
-                },
-                inputFallBackEvent: function inputFallBackEvent(e) {
-                    function radixPointHandler(input, inputValue, caretPos) {
-                        if (inputValue.charAt(caretPos.begin - 1) === "." && opts.radixPoint !== "") {
-                            inputValue = inputValue.split("");
-                            inputValue[caretPos.begin - 1] = opts.radixPoint.charAt(0);
-                            inputValue = inputValue.join("");
-                        }
-                        return inputValue;
-                    }
-                    function ieMobileHandler(input, inputValue, caretPos) {
-                        if (iemobile) {
-                            var inputChar = inputValue.replace(getBuffer().join(""), "");
-                            if (inputChar.length === 1) {
-                                var iv = inputValue.split("");
-                                iv.splice(caretPos.begin, 0, inputChar);
-                                inputValue = iv.join("");
-                            }
-                        }
-                        return inputValue;
-                    }
-                    var input = this, inputValue = input.inputmask._valueGet();
-                    if (getBuffer().join("") !== inputValue) {
-                        var caretPos = caret(input);
-                        inputValue = radixPointHandler(input, inputValue, caretPos);
-                        inputValue = ieMobileHandler(input, inputValue, caretPos);
-                        if (getBuffer().join("") !== inputValue) {
-                            var buffer = getBuffer().join(""), offset = !opts.numericInput && inputValue.length > buffer.length ? -1 : 0, frontPart = inputValue.substr(0, caretPos.begin), backPart = inputValue.substr(caretPos.begin), frontBufferPart = buffer.substr(0, caretPos.begin + offset), backBufferPart = buffer.substr(caretPos.begin + offset);
-                            var selection = caretPos, entries = "", isEntry = false;
-                            if (frontPart !== frontBufferPart) {
-                                var fpl = (isEntry = frontPart.length >= frontBufferPart.length) ? frontPart.length : frontBufferPart.length, i;
-                                for (i = 0; frontPart.charAt(i) === frontBufferPart.charAt(i) && i < fpl; i++) {}
-                                if (isEntry) {
-                                    selection.begin = i - offset;
-                                    entries += frontPart.slice(i, selection.end);
-                                }
-                            }
-                            if (backPart !== backBufferPart) {
-                                if (backPart.length > backBufferPart.length) {
-                                    entries += backPart.slice(0, 1);
-                                } else {
-                                    if (backPart.length < backBufferPart.length) {
-                                        selection.end += backBufferPart.length - backPart.length;
-                                        if (!isEntry && opts.radixPoint !== "" && backPart === "" && frontPart.charAt(selection.begin + offset - 1) === opts.radixPoint) {
-                                            selection.begin--;
-                                            entries = opts.radixPoint;
-                                        }
-                                    }
-                                }
-                            }
-                            writeBuffer(input, getBuffer(), {
-                                begin: selection.begin + offset,
-                                end: selection.end + offset
-                            });
-                            if (entries.length > 0) {
-                                $.each(entries.split(""), function(ndx, entry) {
-                                    var keypress = new $.Event("keypress");
-                                    keypress.which = entry.charCodeAt(0);
-                                    ignorable = false;
-                                    EventHandlers.keypressEvent.call(input, keypress);
-                                });
-                            } else {
-                                if (selection.begin === selection.end - 1) {
-                                    selection.begin = seekPrevious(selection.begin + 1);
-                                    if (selection.begin === selection.end - 1) {
-                                        caret(input, selection.begin);
-                                    } else {
-                                        caret(input, selection.begin, selection.end);
-                                    }
-                                }
-                                var keydown = new $.Event("keydown");
-                                keydown.keyCode = opts.numericInput ? Inputmask.keyCode.BACKSPACE : Inputmask.keyCode.DELETE;
-                                EventHandlers.keydownEvent.call(input, keydown);
-                            }
-                            e.preventDefault();
-                        }
-                    }
-                },
-                beforeInputEvent: function beforeInputEvent(e) {
-                    if (e.cancelable) {
-                        var input = this;
-                        switch (e.inputType) {
-                          case "insertText":
-                            $.each(e.data.split(""), function(ndx, entry) {
-                                var keypress = new $.Event("keypress");
-                                keypress.which = entry.charCodeAt(0);
-                                ignorable = false;
-                                EventHandlers.keypressEvent.call(input, keypress);
-                            });
-                            return e.preventDefault();
-
-                          case "deleteContentBackward":
-                            var keydown = new $.Event("keydown");
-                            keydown.keyCode = Inputmask.keyCode.BACKSPACE;
-                            EventHandlers.keydownEvent.call(input, keydown);
-                            return e.preventDefault();
-
-                          case "deleteContentForward":
-                            var keydown = new $.Event("keydown");
-                            keydown.keyCode = Inputmask.keyCode.DELETE;
-                            EventHandlers.keydownEvent.call(input, keydown);
-                            return e.preventDefault();
-                        }
-                    }
-                },
-                setValueEvent: function setValueEvent(e) {
-                    this.inputmask.refreshValue = false;
-                    var input = this, value = e && e.detail ? e.detail[0] : arguments[1], value = value || input.inputmask._valueGet(true);
-                    if ($.isFunction(opts.onBeforeMask)) value = opts.onBeforeMask.call(inputmask, value, opts) || value;
-                    value = value.toString().split("");
-                    checkVal(input, true, false, value);
-                    undoValue = getBuffer().join("");
-                    if ((opts.clearMaskOnLostFocus || opts.clearIncomplete) && input.inputmask._valueGet() === getBufferTemplate().join("")) {
-                        input.inputmask._valueSet("");
-                    }
-                },
-                focusEvent: function focusEvent(e) {
-                    var input = this, nptValue = input.inputmask._valueGet();
-                    if (opts.showMaskOnFocus) {
-                        if (nptValue !== getBuffer().join("")) {
-                            writeBuffer(input, getBuffer(), seekNext(getLastValidPosition()));
-                        } else if (mouseEnter === false) {
-                            caret(input, seekNext(getLastValidPosition()));
-                        }
-                    }
-                    if (opts.positionCaretOnTab === true && mouseEnter === false) {
-                        EventHandlers.clickEvent.apply(input, [ e, true ]);
-                    }
-                    undoValue = getBuffer().join("");
-                },
-                mouseleaveEvent: function mouseleaveEvent(e) {
-                    var input = this;
-                    mouseEnter = false;
-                    if (opts.clearMaskOnLostFocus && document.activeElement !== input) {
-                        HandleNativePlaceholder(input, originalPlaceholder);
-                    }
-                },
-                clickEvent: function clickEvent(e, tabbed) {
-                    function doRadixFocus(clickPos) {
-                        if (opts.radixPoint !== "") {
-                            var vps = getMaskSet().validPositions;
-                            if (vps[clickPos] === undefined || vps[clickPos].input === getPlaceholder(clickPos)) {
-                                if (clickPos < seekNext(-1)) return true;
-                                var radixPos = $.inArray(opts.radixPoint, getBuffer());
-                                if (radixPos !== -1) {
-                                    for (var vp in vps) {
-                                        if (radixPos < vp && vps[vp].input !== getPlaceholder(vp)) {
-                                            return false;
-                                        }
-                                    }
-                                    return true;
-                                }
-                            }
-                        }
-                        return false;
-                    }
-                    var input = this;
-                    setTimeout(function() {
-                        if (document.activeElement === input) {
-                            var selectedCaret = caret(input);
-                            if (tabbed) {
-                                if (isRTL) {
-                                    selectedCaret.end = selectedCaret.begin;
-                                } else {
-                                    selectedCaret.begin = selectedCaret.end;
-                                }
-                            }
-                            if (selectedCaret.begin === selectedCaret.end) {
-                                switch (opts.positionCaretOnClick) {
-                                  case "none":
-                                    break;
-
-                                  case "select":
-                                    caret(input, 0, getBuffer().length);
-                                    break;
-
-                                  case "ignore":
-                                    caret(input, seekNext(getLastValidPosition()));
-                                    break;
-
-                                  case "radixFocus":
-                                    if (doRadixFocus(selectedCaret.begin)) {
-                                        var radixPos = getBuffer().join("").indexOf(opts.radixPoint);
-                                        caret(input, opts.numericInput ? seekNext(radixPos) : radixPos);
-                                        break;
-                                    }
-
-                                  default:
-                                    var clickPosition = selectedCaret.begin, lvclickPosition = getLastValidPosition(clickPosition, true), lastPosition = seekNext(lvclickPosition);
-                                    if (clickPosition < lastPosition) {
-                                        caret(input, !isMask(clickPosition, true) && !isMask(clickPosition - 1, true) ? seekNext(clickPosition) : clickPosition);
-                                    } else {
-                                        var lvp = getMaskSet().validPositions[lvclickPosition], tt = getTestTemplate(lastPosition, lvp ? lvp.match.locator : undefined, lvp), placeholder = getPlaceholder(lastPosition, tt.match);
-                                        if (placeholder !== "" && getBuffer()[lastPosition] !== placeholder && tt.match.optionalQuantifier !== true && tt.match.newBlockMarker !== true || !isMask(lastPosition, opts.keepStatic) && tt.match.def === placeholder) {
-                                            var newPos = seekNext(lastPosition);
-                                            if (clickPosition >= newPos || clickPosition === lastPosition) {
-                                                lastPosition = newPos;
-                                            }
-                                        }
-                                        caret(input, lastPosition);
-                                    }
-                                    break;
-                                }
-                            }
-                        }
-                    }, 0);
-                },
-                cutEvent: function cutEvent(e) {
-                    var input = this, $input = $(input), pos = caret(input), ev = e.originalEvent || e;
-                    var clipboardData = window.clipboardData || ev.clipboardData, clipData = isRTL ? getBuffer().slice(pos.end, pos.begin) : getBuffer().slice(pos.begin, pos.end);
-                    clipboardData.setData("text", isRTL ? clipData.reverse().join("") : clipData.join(""));
-                    if (document.execCommand) document.execCommand("copy");
-                    handleRemove(input, Inputmask.keyCode.DELETE, pos);
-                    writeBuffer(input, getBuffer(), getMaskSet().p, e, undoValue !== getBuffer().join(""));
-                },
-                blurEvent: function blurEvent(e) {
-                    var $input = $(this), input = this;
-                    if (input.inputmask) {
-                        HandleNativePlaceholder(input, originalPlaceholder);
-                        var nptValue = input.inputmask._valueGet(), buffer = getBuffer().slice();
-                        if (nptValue !== "" || colorMask !== undefined) {
-                            if (opts.clearMaskOnLostFocus) {
-                                if (getLastValidPosition() === -1 && nptValue === getBufferTemplate().join("")) {
-                                    buffer = [];
-                                } else {
-                                    clearOptionalTail(buffer);
-                                }
-                            }
-                            if (isComplete(buffer) === false) {
-                                setTimeout(function() {
-                                    $input.trigger("incomplete");
-                                }, 0);
-                                if (opts.clearIncomplete) {
-                                    resetMaskSet();
-                                    if (opts.clearMaskOnLostFocus) {
-                                        buffer = [];
-                                    } else {
-                                        buffer = getBufferTemplate().slice();
-                                    }
-                                }
-                            }
-                            writeBuffer(input, buffer, undefined, e);
-                        }
-                        if (undoValue !== getBuffer().join("")) {
-                            undoValue = buffer.join("");
-                            $input.trigger("change");
-                        }
-                    }
-                },
-                mouseenterEvent: function mouseenterEvent(e) {
-                    var input = this;
-                    mouseEnter = true;
-                    if (document.activeElement !== input && opts.showMaskOnHover) {
-                        HandleNativePlaceholder(input, (isRTL ? getBuffer().slice().reverse() : getBuffer()).join(""));
-                    }
-                },
-                submitEvent: function submitEvent(e) {
-                    if (undoValue !== getBuffer().join("")) {
-                        $el.trigger("change");
-                    }
-                    if (opts.clearMaskOnLostFocus && getLastValidPosition() === -1 && el.inputmask._valueGet && el.inputmask._valueGet() === getBufferTemplate().join("")) {
-                        el.inputmask._valueSet("");
-                    }
-                    if (opts.clearIncomplete && isComplete(getBuffer()) === false) {
-                        el.inputmask._valueSet("");
-                    }
-                    if (opts.removeMaskOnSubmit) {
-                        el.inputmask._valueSet(el.inputmask.unmaskedvalue(), true);
-                        setTimeout(function() {
-                            writeBuffer(el, getBuffer());
-                        }, 0);
-                    }
-                },
-                resetEvent: function resetEvent(e) {
-                    el.inputmask.refreshValue = true;
-                    setTimeout(function() {
-                        $el.trigger("setvalue");
-                    }, 0);
-                }
-            };
-            function checkVal(input, writeOut, strict, nptvl, initiatingEvent) {
-                var inputmask = this || input.inputmask, inputValue = nptvl.slice(), charCodes = "", initialNdx = -1, result = undefined;
-                function isTemplateMatch(ndx, charCodes) {
-                    var charCodeNdx = getMaskTemplate(true, 0, false).slice(ndx, seekNext(ndx)).join("").replace(/'/g, "").indexOf(charCodes);
-                    return charCodeNdx !== -1 && !isMask(ndx) && (getTest(ndx).match.nativeDef === charCodes.charAt(0) || getTest(ndx).match.fn === null && getTest(ndx).match.nativeDef === "'" + charCodes.charAt(0) || getTest(ndx).match.nativeDef === " " && (getTest(ndx + 1).match.nativeDef === charCodes.charAt(0) || getTest(ndx + 1).match.fn === null && getTest(ndx + 1).match.nativeDef === "'" + charCodes.charAt(0)));
-                }
-                resetMaskSet();
-                if (!strict && opts.autoUnmask !== true) {
-                    var staticInput = getBufferTemplate().slice(0, seekNext(-1)).join(""), matches = inputValue.join("").match(new RegExp("^" + Inputmask.escapeRegex(staticInput), "g"));
-                    if (matches && matches.length > 0) {
-                        inputValue.splice(0, matches.length * staticInput.length);
-                        initialNdx = seekNext(initialNdx);
-                    }
-                } else {
-                    initialNdx = seekNext(initialNdx);
-                }
-                if (initialNdx === -1) {
-                    getMaskSet().p = seekNext(initialNdx);
-                    initialNdx = 0;
-                } else getMaskSet().p = initialNdx;
-                inputmask.caretPos = {
-                    begin: initialNdx
-                };
-                $.each(inputValue, function(ndx, charCode) {
-                    if (charCode !== undefined) {
-                        if (getMaskSet().validPositions[ndx] === undefined && inputValue[ndx] === getPlaceholder(ndx) && isMask(ndx, true) && isValid(ndx, inputValue[ndx], true, undefined, undefined, true) === false) {
-                            getMaskSet().p++;
-                        } else {
-                            var keypress = new $.Event("_checkval");
-                            keypress.which = charCode.charCodeAt(0);
-                            charCodes += charCode;
-                            var lvp = getLastValidPosition(undefined, true);
-                            if (!isTemplateMatch(initialNdx, charCodes)) {
-                                result = EventHandlers.keypressEvent.call(input, keypress, true, false, strict, inputmask.caretPos.begin);
-                                if (result) {
-                                    initialNdx = inputmask.caretPos.begin + 1;
-                                    charCodes = "";
-                                }
-                            } else {
-                                result = EventHandlers.keypressEvent.call(input, keypress, true, false, strict, lvp + 1);
-                            }
-                            if (result) {
-                                writeBuffer(undefined, getBuffer(), result.forwardPosition, keypress, false);
-                                inputmask.caretPos = {
-                                    begin: result.forwardPosition,
-                                    end: result.forwardPosition
-                                };
-                            }
-                        }
-                    }
-                });
-                if (writeOut) writeBuffer(input, getBuffer(), result ? result.forwardPosition : undefined, initiatingEvent || new $.Event("checkval"), initiatingEvent && initiatingEvent.type === "input");
-            }
-            function unmaskedvalue(input) {
-                if (input) {
-                    if (input.inputmask === undefined) {
-                        return input.value;
-                    }
-                    if (input.inputmask && input.inputmask.refreshValue) {
-                        EventHandlers.setValueEvent.call(input);
-                    }
-                }
-                var umValue = [], vps = getMaskSet().validPositions;
-                for (var pndx in vps) {
-                    if (vps[pndx].match && vps[pndx].match.fn != null) {
-                        umValue.push(vps[pndx].input);
-                    }
-                }
-                var unmaskedValue = umValue.length === 0 ? "" : (isRTL ? umValue.reverse() : umValue).join("");
-                if ($.isFunction(opts.onUnMask)) {
-                    var bufferValue = (isRTL ? getBuffer().slice().reverse() : getBuffer()).join("");
-                    unmaskedValue = opts.onUnMask.call(inputmask, bufferValue, unmaskedValue, opts);
-                }
-                return unmaskedValue;
-            }
-            function caret(input, begin, end, notranslate) {
-                function translatePosition(pos) {
-                    if (isRTL && typeof pos === "number" && (!opts.greedy || opts.placeholder !== "") && el) {
-                        pos = el.inputmask._valueGet().length - pos;
-                    }
-                    return pos;
-                }
-                var range;
-                if (begin !== undefined) {
-                    if ($.isArray(begin)) {
-                        end = isRTL ? begin[0] : begin[1];
-                        begin = isRTL ? begin[1] : begin[0];
-                    }
-                    if (begin.begin !== undefined) {
-                        end = isRTL ? begin.begin : begin.end;
-                        begin = isRTL ? begin.end : begin.begin;
-                    }
-                    if (typeof begin === "number") {
-                        begin = notranslate ? begin : translatePosition(begin);
-                        end = notranslate ? end : translatePosition(end);
-                        end = typeof end == "number" ? end : begin;
-                        var scrollCalc = parseInt(((input.ownerDocument.defaultView || window).getComputedStyle ? (input.ownerDocument.defaultView || window).getComputedStyle(input, null) : input.currentStyle).fontSize) * end;
-                        input.scrollLeft = scrollCalc > input.scrollWidth ? scrollCalc : 0;
-                        input.inputmask.caretPos = {
-                            begin: begin,
-                            end: end
-                        };
-                        if (input === document.activeElement) {
-                            if ("selectionStart" in input) {
-                                input.selectionStart = begin;
-                                input.selectionEnd = end;
-                            } else if (window.getSelection) {
-                                range = document.createRange();
-                                if (input.firstChild === undefined || input.firstChild === null) {
-                                    var textNode = document.createTextNode("");
-                                    input.appendChild(textNode);
-                                }
-                                range.setStart(input.firstChild, begin < input.inputmask._valueGet().length ? begin : input.inputmask._valueGet().length);
-                                range.setEnd(input.firstChild, end < input.inputmask._valueGet().length ? end : input.inputmask._valueGet().length);
-                                range.collapse(true);
-                                var sel = window.getSelection();
-                                sel.removeAllRanges();
-                                sel.addRange(range);
-                            } else if (input.createTextRange) {
-                                range = input.createTextRange();
-                                range.collapse(true);
-                                range.moveEnd("character", end);
-                                range.moveStart("character", begin);
-                                range.select();
-                            }
-                            renderColorMask(input, {
-                                begin: begin,
-                                end: end
-                            });
-                        }
-                    }
-                } else {
-                    if ("selectionStart" in input) {
-                        begin = input.selectionStart;
-                        end = input.selectionEnd;
-                    } else if (window.getSelection) {
-                        range = window.getSelection().getRangeAt(0);
-                        if (range.commonAncestorContainer.parentNode === input || range.commonAncestorContainer === input) {
-                            begin = range.startOffset;
-                            end = range.endOffset;
-                        }
-                    } else if (document.selection && document.selection.createRange) {
-                        range = document.selection.createRange();
-                        begin = 0 - range.duplicate().moveStart("character", -input.inputmask._valueGet().length);
-                        end = begin + range.text.length;
-                    }
-                    return {
-                        begin: notranslate ? begin : translatePosition(begin),
-                        end: notranslate ? end : translatePosition(end)
-                    };
-                }
-            }
-            function determineLastRequiredPosition(returnDefinition) {
-                var buffer = getMaskTemplate(true, getLastValidPosition(), true, true), bl = buffer.length, pos, lvp = getLastValidPosition(), positions = {}, lvTest = getMaskSet().validPositions[lvp], ndxIntlzr = lvTest !== undefined ? lvTest.locator.slice() : undefined, testPos;
-                for (pos = lvp + 1; pos < buffer.length; pos++) {
-                    testPos = getTestTemplate(pos, ndxIntlzr, pos - 1);
-                    ndxIntlzr = testPos.locator.slice();
-                    positions[pos] = $.extend(true, {}, testPos);
-                }
-                var lvTestAlt = lvTest && lvTest.alternation !== undefined ? lvTest.locator[lvTest.alternation] : undefined;
-                for (pos = bl - 1; pos > lvp; pos--) {
-                    testPos = positions[pos];
-                    if ((testPos.match.optionality || testPos.match.optionalQuantifier && testPos.match.newBlockMarker || lvTestAlt && (lvTestAlt !== positions[pos].locator[lvTest.alternation] && testPos.match.fn != null || testPos.match.fn === null && testPos.locator[lvTest.alternation] && checkAlternationMatch(testPos.locator[lvTest.alternation].toString().split(","), lvTestAlt.toString().split(",")) && getTests(pos)[0].def !== "")) && buffer[pos] === getPlaceholder(pos, testPos.match)) {
-                        bl--;
-                    } else break;
-                }
-                return returnDefinition ? {
-                    l: bl,
-                    def: positions[bl] ? positions[bl].match : undefined
-                } : bl;
-            }
-            function clearOptionalTail(buffer) {
-                buffer.length = 0;
-                var template = getMaskTemplate(true, 0, true, undefined, true), lmnt, validPos;
-                while (lmnt = template.shift(), lmnt !== undefined) {
-                    buffer.push(lmnt);
-                }
-                return buffer;
-            }
-            function isComplete(buffer) {
-                if ($.isFunction(opts.isComplete)) return opts.isComplete(buffer, opts);
-                if (opts.repeat === "*") return undefined;
-                var complete = false, lrp = determineLastRequiredPosition(true), aml = seekPrevious(lrp.l);
-                if (lrp.def === undefined || lrp.def.newBlockMarker || lrp.def.optionality || lrp.def.optionalQuantifier) {
-                    complete = true;
-                    for (var i = 0; i <= aml; i++) {
-                        var test = getTestTemplate(i).match;
-                        if (test.fn !== null && getMaskSet().validPositions[i] === undefined && test.optionality !== true && test.optionalQuantifier !== true || test.fn === null && buffer[i] !== getPlaceholder(i, test)) {
-                            complete = false;
-                            break;
-                        }
-                    }
-                }
-                return complete;
-            }
-            function handleRemove(input, k, pos, strict, fromIsValid) {
-                if (opts.numericInput || isRTL) {
-                    if (k === Inputmask.keyCode.BACKSPACE) {
-                        k = Inputmask.keyCode.DELETE;
-                    } else if (k === Inputmask.keyCode.DELETE) {
-                        k = Inputmask.keyCode.BACKSPACE;
-                    }
-                    if (isRTL) {
-                        var pend = pos.end;
-                        pos.end = pos.begin;
-                        pos.begin = pend;
-                    }
-                }
-                if (k === Inputmask.keyCode.BACKSPACE && pos.end - pos.begin < 1) {
-                    pos.begin = seekPrevious(pos.begin);
-                    if (getMaskSet().validPositions[pos.begin] !== undefined && getMaskSet().validPositions[pos.begin].input === opts.groupSeparator) {
-                        pos.begin--;
-                    }
-                } else if (k === Inputmask.keyCode.DELETE && pos.begin === pos.end) {
-                    pos.end = isMask(pos.end, true) && getMaskSet().validPositions[pos.end] && getMaskSet().validPositions[pos.end].input !== opts.radixPoint ? pos.end + 1 : seekNext(pos.end) + 1;
-                    if (getMaskSet().validPositions[pos.begin] !== undefined && getMaskSet().validPositions[pos.begin].input === opts.groupSeparator) {
-                        pos.end++;
-                    }
-                }
-                revalidateMask(pos);
-                if (strict !== true && opts.keepStatic !== false || opts.regex !== null) {
-                    var result = alternate(true);
-                    if (result) {
-                        var newPos = result.caret !== undefined ? result.caret : result.pos ? seekNext(result.pos.begin ? result.pos.begin : result.pos) : getLastValidPosition(-1, true);
-                        if (k !== Inputmask.keyCode.DELETE || pos.begin > newPos) {
-                            pos.begin == newPos;
-                        }
-                    }
-                }
-                var lvp = getLastValidPosition(pos.begin, true);
-                if (lvp < pos.begin || pos.begin === -1) {
-                    getMaskSet().p = seekNext(lvp);
-                } else if (strict !== true) {
-                    getMaskSet().p = pos.begin;
-                    if (fromIsValid !== true) {
-                        while (getMaskSet().p < lvp && getMaskSet().validPositions[getMaskSet().p] === undefined) {
-                            getMaskSet().p++;
-                        }
-                    }
-                }
-            }
-            function initializeColorMask(input) {
-                var computedStyle = (input.ownerDocument.defaultView || window).getComputedStyle(input, null);
-                function findCaretPos(clientx) {
-                    var e = document.createElement("span"), caretPos;
-                    for (var style in computedStyle) {
-                        if (isNaN(style) && style.indexOf("font") !== -1) {
-                            e.style[style] = computedStyle[style];
-                        }
-                    }
-                    e.style.textTransform = computedStyle.textTransform;
-                    e.style.letterSpacing = computedStyle.letterSpacing;
-                    e.style.position = "absolute";
-                    e.style.height = "auto";
-                    e.style.width = "auto";
-                    e.style.visibility = "hidden";
-                    e.style.whiteSpace = "nowrap";
-                    document.body.appendChild(e);
-                    var inputText = input.inputmask._valueGet(), previousWidth = 0, itl;
-                    for (caretPos = 0, itl = inputText.length; caretPos <= itl; caretPos++) {
-                        e.innerHTML += inputText.charAt(caretPos) || "_";
-                        if (e.offsetWidth >= clientx) {
-                            var offset1 = clientx - previousWidth;
-                            var offset2 = e.offsetWidth - clientx;
-                            e.innerHTML = inputText.charAt(caretPos);
-                            offset1 -= e.offsetWidth / 3;
-                            caretPos = offset1 < offset2 ? caretPos - 1 : caretPos;
-                            break;
-                        }
-                        previousWidth = e.offsetWidth;
-                    }
-                    document.body.removeChild(e);
-                    return caretPos;
-                }
-                var template = document.createElement("div");
-                template.style.width = computedStyle.width;
-                template.style.textAlign = computedStyle.textAlign;
-                colorMask = document.createElement("div");
-                input.inputmask.colorMask = colorMask;
-                colorMask.className = "im-colormask";
-                input.parentNode.insertBefore(colorMask, input);
-                input.parentNode.removeChild(input);
-                colorMask.appendChild(input);
-                colorMask.appendChild(template);
-                input.style.left = template.offsetLeft + "px";
-                $(colorMask).on("mouseleave", function(e) {
-                    return EventHandlers.mouseleaveEvent.call(input, [ e ]);
-                });
-                $(colorMask).on("mouseenter", function(e) {
-                    return EventHandlers.mouseenterEvent.call(input, [ e ]);
-                });
-                $(colorMask).on("click", function(e) {
-                    caret(input, findCaretPos(e.clientX));
-                    return EventHandlers.clickEvent.call(input, [ e ]);
-                });
-            }
-            function renderColorMask(input, caretPos, clear) {
-                var maskTemplate = [], isStatic = false, test, testPos, ndxIntlzr, pos = 0;
-                function setEntry(entry) {
-                    if (entry === undefined) entry = "";
-                    if (!isStatic && (test.fn === null || testPos.input === undefined)) {
-                        isStatic = true;
-                        maskTemplate.push("<span class='im-static'>" + entry);
-                    } else if (isStatic && (test.fn !== null && testPos.input !== undefined || test.def === "")) {
-                        isStatic = false;
-                        var mtl = maskTemplate.length;
-                        maskTemplate[mtl - 1] = maskTemplate[mtl - 1] + "</span>";
-                        maskTemplate.push(entry);
-                    } else maskTemplate.push(entry);
-                }
-                function setCaret() {
-                    if (document.activeElement === input) {
-                        maskTemplate.splice(caretPos.begin, 0, caretPos.begin === caretPos.end || caretPos.end > getMaskSet().maskLength ? '<mark class="im-caret" style="border-right-width: 1px;border-right-style: solid;">' : '<mark class="im-caret-select">');
-                        maskTemplate.splice(caretPos.end + 1, 0, "</mark>");
-                    }
-                }
-                if (colorMask !== undefined) {
-                    var buffer = getBuffer();
-                    if (caretPos === undefined) {
-                        caretPos = caret(input);
-                    } else if (caretPos.begin === undefined) {
-                        caretPos = {
-                            begin: caretPos,
-                            end: caretPos
-                        };
-                    }
-                    if (clear !== true) {
-                        var lvp = getLastValidPosition();
-                        do {
-                            if (getMaskSet().validPositions[pos]) {
-                                testPos = getMaskSet().validPositions[pos];
-                                test = testPos.match;
-                                ndxIntlzr = testPos.locator.slice();
-                                setEntry(buffer[pos]);
-                            } else {
-                                testPos = getTestTemplate(pos, ndxIntlzr, pos - 1);
-                                test = testPos.match;
-                                ndxIntlzr = testPos.locator.slice();
-                                if (opts.jitMasking === false || pos < lvp || typeof opts.jitMasking === "number" && isFinite(opts.jitMasking) && opts.jitMasking > pos) {
-                                    setEntry(getPlaceholder(pos, test));
-                                } else isStatic = false;
-                            }
-                            pos++;
-                        } while ((maxLength === undefined || pos < maxLength) && (test.fn !== null || test.def !== "") || lvp > pos || isStatic);
-                        if (isStatic) setEntry();
-                        setCaret();
-                    }
-                    var template = colorMask.getElementsByTagName("div")[0];
-                    template.innerHTML = maskTemplate.join("");
-                    input.inputmask.positionColorMask(input, template);
-                }
-            }
-            function mask(elem) {
-                function isElementTypeSupported(input, opts) {
-                    function patchValueProperty(npt) {
-                        var valueGet;
-                        var valueSet;
-                        function patchValhook(type) {
-                            if ($.valHooks && ($.valHooks[type] === undefined || $.valHooks[type].inputmaskpatch !== true)) {
-                                var valhookGet = $.valHooks[type] && $.valHooks[type].get ? $.valHooks[type].get : function(elem) {
-                                    return elem.value;
-                                };
-                                var valhookSet = $.valHooks[type] && $.valHooks[type].set ? $.valHooks[type].set : function(elem, value) {
-                                    elem.value = value;
-                                    return elem;
-                                };
-                                $.valHooks[type] = {
-                                    get: function get(elem) {
-                                        if (elem.inputmask) {
-                                            if (elem.inputmask.opts.autoUnmask) {
-                                                return elem.inputmask.unmaskedvalue();
-                                            } else {
-                                                var result = valhookGet(elem);
-                                                return getLastValidPosition(undefined, undefined, elem.inputmask.maskset.validPositions) !== -1 || opts.nullable !== true ? result : "";
-                                            }
-                                        } else return valhookGet(elem);
-                                    },
-                                    set: function set(elem, value) {
-                                        var $elem = $(elem), result;
-                                        result = valhookSet(elem, value);
-                                        if (elem.inputmask) {
-                                            $elem.trigger("setvalue", [ value ]);
-                                        }
-                                        return result;
-                                    },
-                                    inputmaskpatch: true
-                                };
-                            }
-                        }
-                        function getter() {
-                            if (this.inputmask) {
-                                return this.inputmask.opts.autoUnmask ? this.inputmask.unmaskedvalue() : getLastValidPosition() !== -1 || opts.nullable !== true ? document.activeElement === this && opts.clearMaskOnLostFocus ? (isRTL ? clearOptionalTail(getBuffer().slice()).reverse() : clearOptionalTail(getBuffer().slice())).join("") : valueGet.call(this) : "";
-                            } else return valueGet.call(this);
-                        }
-                        function setter(value) {
-                            valueSet.call(this, value);
-                            if (this.inputmask) {
-                                $(this).trigger("setvalue", [ value ]);
-                            }
-                        }
-                        function installNativeValueSetFallback(npt) {
-                            EventRuler.on(npt, "mouseenter", function(event) {
-                                var $input = $(this), input = this, value = input.inputmask._valueGet();
-                                if (value !== getBuffer().join("")) {
-                                    $input.trigger("setvalue");
-                                }
-                            });
-                        }
-                        if (!npt.inputmask.__valueGet) {
-                            if (opts.noValuePatching !== true) {
-                                if (Object.getOwnPropertyDescriptor) {
-                                    if (typeof Object.getPrototypeOf !== "function") {
-                                        Object.getPrototypeOf = _typeof("test".__proto__) === "object" ? function(object) {
-                                            return object.__proto__;
-                                        } : function(object) {
-                                            return object.constructor.prototype;
-                                        };
-                                    }
-                                    var valueProperty = Object.getPrototypeOf ? Object.getOwnPropertyDescriptor(Object.getPrototypeOf(npt), "value") : undefined;
-                                    if (valueProperty && valueProperty.get && valueProperty.set) {
-                                        valueGet = valueProperty.get;
-                                        valueSet = valueProperty.set;
-                                        Object.defineProperty(npt, "value", {
-                                            get: getter,
-                                            set: setter,
-                                            configurable: true
-                                        });
-                                    } else if (npt.tagName !== "INPUT") {
-                                        valueGet = function valueGet() {
-                                            return this.textContent;
-                                        };
-                                        valueSet = function valueSet(value) {
-                                            this.textContent = value;
-                                        };
-                                        Object.defineProperty(npt, "value", {
-                                            get: getter,
-                                            set: setter,
-                                            configurable: true
-                                        });
-                                    }
-                                } else if (document.__lookupGetter__ && npt.__lookupGetter__("value")) {
-                                    valueGet = npt.__lookupGetter__("value");
-                                    valueSet = npt.__lookupSetter__("value");
-                                    npt.__defineGetter__("value", getter);
-                                    npt.__defineSetter__("value", setter);
-                                }
-                                npt.inputmask.__valueGet = valueGet;
-                                npt.inputmask.__valueSet = valueSet;
-                            }
-                            npt.inputmask._valueGet = function(overruleRTL) {
-                                return isRTL && overruleRTL !== true ? valueGet.call(this.el).split("").reverse().join("") : valueGet.call(this.el);
-                            };
-                            npt.inputmask._valueSet = function(value, overruleRTL) {
-                                valueSet.call(this.el, value === null || value === undefined ? "" : overruleRTL !== true && isRTL ? value.split("").reverse().join("") : value);
-                            };
-                            if (valueGet === undefined) {
-                                valueGet = function valueGet() {
-                                    return this.value;
-                                };
-                                valueSet = function valueSet(value) {
-                                    this.value = value;
-                                };
-                                patchValhook(npt.type);
-                                installNativeValueSetFallback(npt);
-                            }
-                        }
-                    }
-                    var elementType = input.getAttribute("type");
-                    var isSupported = input.tagName === "INPUT" && $.inArray(elementType, opts.supportsInputType) !== -1 || input.isContentEditable || input.tagName === "TEXTAREA";
-                    if (!isSupported) {
-                        if (input.tagName === "INPUT") {
-                            var el = document.createElement("input");
-                            el.setAttribute("type", elementType);
-                            isSupported = el.type === "text";
-                            el = null;
-                        } else isSupported = "partial";
-                    }
-                    if (isSupported !== false) {
-                        patchValueProperty(input);
-                    } else input.inputmask = undefined;
-                    return isSupported;
-                }
-                EventRuler.off(elem);
-                var isSupported = isElementTypeSupported(elem, opts);
-                if (isSupported !== false) {
-                    el = elem;
-                    $el = $(el);
-                    originalPlaceholder = el.placeholder;
-                    maxLength = el !== undefined ? el.maxLength : undefined;
-                    if (maxLength === -1) maxLength = undefined;
-                    if (opts.colorMask === true) {
-                        initializeColorMask(el);
-                    }
-                    if (mobile) {
-                        if ("inputMode" in el) {
-                            el.inputmode = opts.inputmode;
-                            el.setAttribute("inputmode", opts.inputmode);
-                        }
-                        if (opts.disablePredictiveText === true) {
-                            if ("autocorrect" in el) {
-                                el.autocorrect = false;
-                            } else {
-                                if (opts.colorMask !== true) {
-                                    initializeColorMask(el);
-                                }
-                                el.type = "password";
-                            }
-                        }
-                    }
-                    if (isSupported === true) {
-                        el.setAttribute("im-insert", opts.insertMode);
-                        EventRuler.on(el, "submit", EventHandlers.submitEvent);
-                        EventRuler.on(el, "reset", EventHandlers.resetEvent);
-                        EventRuler.on(el, "blur", EventHandlers.blurEvent);
-                        EventRuler.on(el, "focus", EventHandlers.focusEvent);
-                        if (opts.colorMask !== true) {
-                            EventRuler.on(el, "click", EventHandlers.clickEvent);
-                            EventRuler.on(el, "mouseleave", EventHandlers.mouseleaveEvent);
-                            EventRuler.on(el, "mouseenter", EventHandlers.mouseenterEvent);
-                        }
-                        EventRuler.on(el, "paste", EventHandlers.pasteEvent);
-                        EventRuler.on(el, "cut", EventHandlers.cutEvent);
-                        EventRuler.on(el, "complete", opts.oncomplete);
-                        EventRuler.on(el, "incomplete", opts.onincomplete);
-                        EventRuler.on(el, "cleared", opts.oncleared);
-                        if (!mobile && opts.inputEventOnly !== true) {
-                            EventRuler.on(el, "keydown", EventHandlers.keydownEvent);
-                            EventRuler.on(el, "keypress", EventHandlers.keypressEvent);
-                        } else {
-                            el.removeAttribute("maxLength");
-                        }
-                        EventRuler.on(el, "input", EventHandlers.inputFallBackEvent);
-                        EventRuler.on(el, "beforeinput", EventHandlers.beforeInputEvent);
-                    }
-                    EventRuler.on(el, "setvalue", EventHandlers.setValueEvent);
-                    undoValue = getBufferTemplate().join("");
-                    if (el.inputmask._valueGet(true) !== "" || opts.clearMaskOnLostFocus === false || document.activeElement === el) {
-                        var initialValue = $.isFunction(opts.onBeforeMask) ? opts.onBeforeMask.call(inputmask, el.inputmask._valueGet(true), opts) || el.inputmask._valueGet(true) : el.inputmask._valueGet(true);
-                        if (initialValue !== "") checkVal(el, true, false, initialValue.split(""));
-                        var buffer = getBuffer().slice();
-                        undoValue = buffer.join("");
-                        if (isComplete(buffer) === false) {
-                            if (opts.clearIncomplete) {
-                                resetMaskSet();
-                            }
-                        }
-                        if (opts.clearMaskOnLostFocus && document.activeElement !== el) {
-                            if (getLastValidPosition() === -1) {
-                                buffer = [];
-                            } else {
-                                clearOptionalTail(buffer);
-                            }
-                        }
-                        if (opts.clearMaskOnLostFocus === false || opts.showMaskOnFocus && document.activeElement === el || el.inputmask._valueGet(true) !== "") writeBuffer(el, buffer);
-                        if (document.activeElement === el) {
-                            caret(el, seekNext(getLastValidPosition()));
-                        }
-                    }
-                }
-            }
-            var valueBuffer;
-            if (actionObj !== undefined) {
-                switch (actionObj.action) {
-                  case "isComplete":
-                    el = actionObj.el;
-                    return isComplete(getBuffer());
-
-                  case "unmaskedvalue":
-                    if (el === undefined || actionObj.value !== undefined) {
-                        valueBuffer = actionObj.value;
-                        valueBuffer = ($.isFunction(opts.onBeforeMask) ? opts.onBeforeMask.call(inputmask, valueBuffer, opts) || valueBuffer : valueBuffer).split("");
-                        checkVal.call(this, undefined, false, false, valueBuffer);
-                        if ($.isFunction(opts.onBeforeWrite)) opts.onBeforeWrite.call(inputmask, undefined, getBuffer(), 0, opts);
-                    }
-                    return unmaskedvalue(el);
-
-                  case "mask":
-                    mask(el);
-                    break;
-
-                  case "format":
-                    valueBuffer = ($.isFunction(opts.onBeforeMask) ? opts.onBeforeMask.call(inputmask, actionObj.value, opts) || actionObj.value : actionObj.value).split("");
-                    checkVal.call(this, undefined, true, false, valueBuffer);
-                    if (actionObj.metadata) {
-                        return {
-                            value: isRTL ? getBuffer().slice().reverse().join("") : getBuffer().join(""),
-                            metadata: maskScope.call(this, {
-                                action: "getmetadata"
-                            }, maskset, opts)
-                        };
-                    }
-                    return isRTL ? getBuffer().slice().reverse().join("") : getBuffer().join("");
-
-                  case "isValid":
-                    if (actionObj.value) {
-                        valueBuffer = actionObj.value.split("");
-                        checkVal.call(this, undefined, true, true, valueBuffer);
-                    } else {
-                        actionObj.value = getBuffer().join("");
-                    }
-                    var buffer = getBuffer();
-                    var rl = determineLastRequiredPosition(), lmib = buffer.length - 1;
-                    for (;lmib > rl; lmib--) {
-                        if (isMask(lmib)) break;
-                    }
-                    buffer.splice(rl, lmib + 1 - rl);
-                    return isComplete(buffer) && actionObj.value === getBuffer().join("");
-
-                  case "getemptymask":
-                    return getBufferTemplate().join("");
-
-                  case "remove":
-                    if (el && el.inputmask) {
-                        $.data(el, "_inputmask_opts", null);
-                        $el = $(el);
-                        el.inputmask._valueSet(opts.autoUnmask ? unmaskedvalue(el) : el.inputmask._valueGet(true));
-                        EventRuler.off(el);
-                        if (el.inputmask.colorMask) {
-                            colorMask = el.inputmask.colorMask;
-                            colorMask.removeChild(el);
-                            colorMask.parentNode.insertBefore(el, colorMask);
-                            colorMask.parentNode.removeChild(colorMask);
-                        }
-                        var valueProperty;
-                        if (Object.getOwnPropertyDescriptor && Object.getPrototypeOf) {
-                            valueProperty = Object.getOwnPropertyDescriptor(Object.getPrototypeOf(el), "value");
-                            if (valueProperty) {
-                                if (el.inputmask.__valueGet) {
-                                    Object.defineProperty(el, "value", {
-                                        get: el.inputmask.__valueGet,
-                                        set: el.inputmask.__valueSet,
-                                        configurable: true
-                                    });
-                                }
-                            }
-                        } else if (document.__lookupGetter__ && el.__lookupGetter__("value")) {
-                            if (el.inputmask.__valueGet) {
-                                el.__defineGetter__("value", el.inputmask.__valueGet);
-                                el.__defineSetter__("value", el.inputmask.__valueSet);
-                            }
-                        }
-                        el.inputmask = undefined;
-                    }
-                    return el;
-                    break;
-
-                  case "getmetadata":
-                    if ($.isArray(maskset.metadata)) {
-                        var maskTarget = getMaskTemplate(true, 0, false).join("");
-                        $.each(maskset.metadata, function(ndx, mtdt) {
-                            if (mtdt.mask === maskTarget) {
-                                maskTarget = mtdt;
-                                return false;
-                            }
-                        });
-                        return maskTarget;
-                    }
-                    return maskset.metadata;
-                }
-            }
-        }
-        return Inputmask;
-    });
-}, function(module, exports, __webpack_require__) {
-    "use strict";
-    var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;
-    var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function(obj) {
-        return typeof obj;
-    } : function(obj) {
-        return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
-    };
-    (function(factory) {
-        if (true) {
-            !(__WEBPACK_AMD_DEFINE_ARRAY__ = [ __webpack_require__(4) ], __WEBPACK_AMD_DEFINE_FACTORY__ = factory, 
-            __WEBPACK_AMD_DEFINE_RESULT__ = typeof __WEBPACK_AMD_DEFINE_FACTORY__ === "function" ? __WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__) : __WEBPACK_AMD_DEFINE_FACTORY__, 
-            __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));
-        } else {}
-    })(function($) {
-        return $;
-    });
-}, function(module, exports) {
-    module.exports = jQuery;
-}, function(module, exports, __webpack_require__) {
-    "use strict";
-    var __WEBPACK_AMD_DEFINE_RESULT__;
-    var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function(obj) {
-        return typeof obj;
-    } : function(obj) {
-        return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
-    };
-    if (true) !(__WEBPACK_AMD_DEFINE_RESULT__ = function() {
-        return typeof window !== "undefined" ? window : new (eval("require('jsdom').JSDOM"))("").window;
-    }.call(exports, __webpack_require__, exports, module), __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)); else {}
-}, function(module, exports, __webpack_require__) {
-    "use strict";
-    var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;
-    var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function(obj) {
-        return typeof obj;
-    } : function(obj) {
-        return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
-    };
-    (function(factory) {
-        if (true) {
-            !(__WEBPACK_AMD_DEFINE_ARRAY__ = [ __webpack_require__(2) ], __WEBPACK_AMD_DEFINE_FACTORY__ = factory, 
-            __WEBPACK_AMD_DEFINE_RESULT__ = typeof __WEBPACK_AMD_DEFINE_FACTORY__ === "function" ? __WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__) : __WEBPACK_AMD_DEFINE_FACTORY__, 
-            __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));
-        } else {}
-    })(function(Inputmask) {
-        var $ = Inputmask.dependencyLib;
-        var formatCode = {
-            d: [ "[1-9]|[12][0-9]|3[01]", Date.prototype.setDate, "day", Date.prototype.getDate ],
-            dd: [ "0[1-9]|[12][0-9]|3[01]", Date.prototype.setDate, "day", function() {
-                return pad(Date.prototype.getDate.call(this), 2);
-            } ],
-            ddd: [ "" ],
-            dddd: [ "" ],
-            m: [ "[1-9]|1[012]", Date.prototype.setMonth, "month", function() {
-                return Date.prototype.getMonth.call(this) + 1;
-            } ],
-            mm: [ "0[1-9]|1[012]", Date.prototype.setMonth, "month", function() {
-                return pad(Date.prototype.getMonth.call(this) + 1, 2);
-            } ],
-            mmm: [ "" ],
-            mmmm: [ "" ],
-            yy: [ "[0-9]{2}", Date.prototype.setFullYear, "year", function() {
-                return pad(Date.prototype.getFullYear.call(this), 2);
-            } ],
-            yyyy: [ "[0-9]{4}", Date.prototype.setFullYear, "year", function() {
-                return pad(Date.prototype.getFullYear.call(this), 4);
-            } ],
-            h: [ "[1-9]|1[0-2]", Date.prototype.setHours, "hours", Date.prototype.getHours ],
-            hh: [ "0[1-9]|1[0-2]", Date.prototype.setHours, "hours", function() {
-                return pad(Date.prototype.getHours.call(this), 2);
-            } ],
-            hhh: [ "[0-9]+", Date.prototype.setHours, "hours", Date.prototype.getHours ],
-            H: [ "1?[0-9]|2[0-3]", Date.prototype.setHours, "hours", Date.prototype.getHours ],
-            HH: [ "0[0-9]|1[0-9]|2[0-3]", Date.prototype.setHours, "hours", function() {
-                return pad(Date.prototype.getHours.call(this), 2);
-            } ],
-            HHH: [ "[0-9]+", Date.prototype.setHours, "hours", Date.prototype.getHours ],
-            M: [ "[1-5]?[0-9]", Date.prototype.setMinutes, "minutes", Date.prototype.getMinutes ],
-            MM: [ "0[0-9]|1[0-9]|2[0-9]|3[0-9]|4[0-9]|5[0-9]", Date.prototype.setMinutes, "minutes", function() {
-                return pad(Date.prototype.getMinutes.call(this), 2);
-            } ],
-            ss: [ "[0-5][0-9]", Date.prototype.setSeconds, "seconds", function() {
-                return pad(Date.prototype.getSeconds.call(this), 2);
-            } ],
-            l: [ "[0-9]{3}", Date.prototype.setMilliseconds, "milliseconds", function() {
-                return pad(Date.prototype.getMilliseconds.call(this), 3);
-            } ],
-            L: [ "[0-9]{2}", Date.prototype.setMilliseconds, "milliseconds", function() {
-                return pad(Date.prototype.getMilliseconds.call(this), 2);
-            } ],
-            t: [ "[ap]" ],
-            tt: [ "[ap]m" ],
-            T: [ "[AP]" ],
-            TT: [ "[AP]M" ],
-            Z: [ "" ],
-            o: [ "" ],
-            S: [ "" ]
-        }, formatAlias = {
-            isoDate: "yyyy-mm-dd",
-            isoTime: "HH:MM:ss",
-            isoDateTime: "yyyy-mm-dd'T'HH:MM:ss",
-            isoUtcDateTime: "UTC:yyyy-mm-dd'T'HH:MM:ss'Z'"
-        };
-        function getTokenizer(opts) {
-            if (!opts.tokenizer) {
-                var tokens = [];
-                for (var ndx in formatCode) {
-                    if (tokens.indexOf(ndx[0]) === -1) tokens.push(ndx[0]);
-                }
-                opts.tokenizer = "(" + tokens.join("+|") + ")+?|.";
-                opts.tokenizer = new RegExp(opts.tokenizer, "g");
-            }
-            return opts.tokenizer;
-        }
-        function isValidDate(dateParts, currentResult) {
-            return !isFinite(dateParts.rawday) || dateParts.day == "29" && !isFinite(dateParts.rawyear) || new Date(dateParts.date.getFullYear(), isFinite(dateParts.rawmonth) ? dateParts.month : dateParts.date.getMonth() + 1, 0).getDate() >= dateParts.day ? currentResult : false;
-        }
-        function isDateInRange(dateParts, opts) {
-            var result = true;
-            if (opts.min) {
-                if (dateParts["rawyear"]) {
-                    var rawYear = dateParts["rawyear"].replace(/[^0-9]/g, ""), minYear = opts.min.year.substr(0, rawYear.length);
-                    result = minYear <= rawYear;
-                }
-                if (dateParts["year"] === dateParts["rawyear"]) {
-                    if (opts.min.date.getTime() === opts.min.date.getTime()) {
-                        result = opts.min.date.getTime() <= dateParts.date.getTime();
-                    }
-                }
-            }
-            if (result && opts.max && opts.max.date.getTime() === opts.max.date.getTime()) {
-                result = opts.max.date.getTime() >= dateParts.date.getTime();
-            }
-            return result;
-        }
-        function parse(format, dateObjValue, opts, raw) {
-            var mask = "", match;
-            while (match = getTokenizer(opts).exec(format)) {
-                if (dateObjValue === undefined) {
-                    if (formatCode[match[0]]) {
-                        mask += "(" + formatCode[match[0]][0] + ")";
-                    } else {
-                        switch (match[0]) {
-                          case "[":
-                            mask += "(";
-                            break;
-
-                          case "]":
-                            mask += ")?";
-                            break;
-
-                          default:
-                            mask += Inputmask.escapeRegex(match[0]);
-                        }
-                    }
-                } else {
-                    if (formatCode[match[0]]) {
-                        if (raw !== true && formatCode[match[0]][3]) {
-                            var getFn = formatCode[match[0]][3];
-                            mask += getFn.call(dateObjValue.date);
-                        } else if (formatCode[match[0]][2]) mask += dateObjValue["raw" + formatCode[match[0]][2]]; else mask += match[0];
-                    } else mask += match[0];
-                }
-            }
-            return mask;
-        }
-        function pad(val, len) {
-            val = String(val);
-            len = len || 2;
-            while (val.length < len) {
-                val = "0" + val;
-            }
-            return val;
-        }
-        function analyseMask(maskString, format, opts) {
-            var dateObj = {
-                date: new Date(1, 0, 1)
-            }, targetProp, mask = maskString, match, dateOperation, targetValidator;
-            function extendProperty(value) {
-                var correctedValue = value.replace(/[^0-9]/g, "0");
-                if (correctedValue != value) {
-                    var enteredPart = value.replace(/[^0-9]/g, ""), min = (opts.min && opts.min[targetProp] || value).toString(), max = (opts.max && opts.max[targetProp] || value).toString();
-                    correctedValue = enteredPart + (enteredPart < min.slice(0, enteredPart.length) ? min.slice(enteredPart.length) : enteredPart > max.slice(0, enteredPart.length) ? max.slice(enteredPart.length) : correctedValue.toString().slice(enteredPart.length));
-                }
-                return correctedValue;
-            }
-            function setValue(dateObj, value, opts) {
-                dateObj[targetProp] = extendProperty(value);
-                dateObj["raw" + targetProp] = value;
-                if (dateOperation !== undefined) dateOperation.call(dateObj.date, targetProp == "month" ? parseInt(dateObj[targetProp]) - 1 : dateObj[targetProp]);
-            }
-            if (typeof mask === "string") {
-                while (match = getTokenizer(opts).exec(format)) {
-                    var value = mask.slice(0, match[0].length);
-                    if (formatCode.hasOwnProperty(match[0])) {
-                        targetValidator = formatCode[match[0]][0];
-                        targetProp = formatCode[match[0]][2];
-                        dateOperation = formatCode[match[0]][1];
-                        setValue(dateObj, value, opts);
-                    }
-                    mask = mask.slice(value.length);
-                }
-                return dateObj;
-            } else if (mask && (typeof mask === "undefined" ? "undefined" : _typeof(mask)) === "object" && mask.hasOwnProperty("date")) {
-                return mask;
-            }
-            return undefined;
-        }
-        Inputmask.extendAliases({
-            datetime: {
-                mask: function mask(opts) {
-                    formatCode.S = opts.i18n.ordinalSuffix.join("|");
-                    opts.inputFormat = formatAlias[opts.inputFormat] || opts.inputFormat;
-                    opts.displayFormat = formatAlias[opts.displayFormat] || opts.displayFormat || opts.inputFormat;
-                    opts.outputFormat = formatAlias[opts.outputFormat] || opts.outputFormat || opts.inputFormat;
-                    opts.placeholder = opts.placeholder !== "" ? opts.placeholder : opts.inputFormat.replace(/[\[\]]/, "");
-                    opts.regex = parse(opts.inputFormat, undefined, opts);
-                    return null;
-                },
-                placeholder: "",
-                inputFormat: "isoDateTime",
-                displayFormat: undefined,
-                outputFormat: undefined,
-                min: null,
-                max: null,
-                i18n: {
-                    dayNames: [ "Mon", "Tue", "Wed", "Thu", "Fri", "Sat", "Sun", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday", "Sunday" ],
-                    monthNames: [ "Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec", "January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December" ],
-                    ordinalSuffix: [ "st", "nd", "rd", "th" ]
-                },
-                postValidation: function postValidation(buffer, pos, currentResult, opts) {
-                    opts.min = analyseMask(opts.min, opts.inputFormat, opts);
-                    opts.max = analyseMask(opts.max, opts.inputFormat, opts);
-                    var result = currentResult, dateParts = analyseMask(buffer.join(""), opts.inputFormat, opts);
-                    if (result && dateParts.date.getTime() === dateParts.date.getTime()) {
-                        result = isValidDate(dateParts, result);
-                        result = result && isDateInRange(dateParts, opts);
-                    }
-                    if (pos && result && currentResult.pos !== pos) {
-                        return {
-                            buffer: parse(opts.inputFormat, dateParts, opts),
-                            refreshFromBuffer: {
-                                start: pos,
-                                end: currentResult.pos
-                            }
-                        };
-                    }
-                    return result;
-                },
-                onKeyDown: function onKeyDown(e, buffer, caretPos, opts) {
-                    var input = this;
-                    if (e.ctrlKey && e.keyCode === Inputmask.keyCode.RIGHT) {
-                        var today = new Date(), match, date = "";
-                        while (match = getTokenizer(opts).exec(opts.inputFormat)) {
-                            if (match[0].charAt(0) === "d") {
-                                date += pad(today.getDate(), match[0].length);
-                            } else if (match[0].charAt(0) === "m") {
-                                date += pad(today.getMonth() + 1, match[0].length);
-                            } else if (match[0] === "yyyy") {
-                                date += today.getFullYear().toString();
-                            } else if (match[0].charAt(0) === "y") {
-                                date += pad(today.getYear(), match[0].length);
-                            }
-                        }
-                        input.inputmask._valueSet(date);
-                        $(input).trigger("setvalue");
-                    }
-                },
-                onUnMask: function onUnMask(maskedValue, unmaskedValue, opts) {
-                    return parse(opts.outputFormat, analyseMask(maskedValue, opts.inputFormat, opts), opts, true);
-                },
-                casing: function casing(elem, test, pos, validPositions) {
-                    if (test.nativeDef.indexOf("[ap]") == 0) return elem.toLowerCase();
-                    if (test.nativeDef.indexOf("[AP]") == 0) return elem.toUpperCase();
-                    return elem;
-                },
-                insertMode: false,
-                shiftPositions: false
-            }
-        });
-        return Inputmask;
-    });
-}, function(module, exports, __webpack_require__) {
-    "use strict";
-    var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;
-    var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function(obj) {
-        return typeof obj;
-    } : function(obj) {
-        return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
-    };
-    (function(factory) {
-        if (true) {
-            !(__WEBPACK_AMD_DEFINE_ARRAY__ = [ __webpack_require__(2) ], __WEBPACK_AMD_DEFINE_FACTORY__ = factory, 
-            __WEBPACK_AMD_DEFINE_RESULT__ = typeof __WEBPACK_AMD_DEFINE_FACTORY__ === "function" ? __WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__) : __WEBPACK_AMD_DEFINE_FACTORY__, 
-            __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));
-        } else {}
-    })(function(Inputmask) {
-        var $ = Inputmask.dependencyLib;
-        function autoEscape(txt, opts) {
-            var escapedTxt = "";
-            for (var i = 0; i < txt.length; i++) {
-                if (Inputmask.prototype.definitions[txt.charAt(i)] || opts.definitions[txt.charAt(i)] || opts.optionalmarker.start === txt.charAt(i) || opts.optionalmarker.end === txt.charAt(i) || opts.quantifiermarker.start === txt.charAt(i) || opts.quantifiermarker.end === txt.charAt(i) || opts.groupmarker.start === txt.charAt(i) || opts.groupmarker.end === txt.charAt(i) || opts.alternatormarker === txt.charAt(i)) {
-                    escapedTxt += "\\" + txt.charAt(i);
-                } else escapedTxt += txt.charAt(i);
-            }
-            return escapedTxt;
-        }
-        function alignDigits(buffer, digits, opts) {
-            if (digits > 0) {
-                var radixPosition = $.inArray(opts.radixPoint, buffer);
-                if (radixPosition === -1) {
-                    buffer.push(opts.radixPoint);
-                    radixPosition = buffer.length - 1;
-                }
-                for (var i = 1; i <= digits; i++) {
-                    buffer[radixPosition + i] = buffer[radixPosition + i] || "0";
-                }
-            }
-            return buffer;
-        }
-        Inputmask.extendAliases({
-            numeric: {
-                mask: function mask(opts) {
-                    if (opts.repeat !== 0 && isNaN(opts.integerDigits)) {
-                        opts.integerDigits = opts.repeat;
-                    }
-                    opts.repeat = 0;
-                    if (opts.groupSeparator === opts.radixPoint && opts.digits && opts.digits !== "0") {
-                        if (opts.radixPoint === ".") {
-                            opts.groupSeparator = ",";
-                        } else if (opts.radixPoint === ",") {
-                            opts.groupSeparator = ".";
-                        } else opts.groupSeparator = "";
-                    }
-                    if (opts.groupSeparator === " ") {
-                        opts.skipOptionalPartCharacter = undefined;
-                    }
-                    opts.autoGroup = opts.autoGroup && opts.groupSeparator !== "";
-                    if (opts.autoGroup) {
-                        if (typeof opts.groupSize == "string" && isFinite(opts.groupSize)) opts.groupSize = parseInt(opts.groupSize);
-                        if (isFinite(opts.integerDigits)) {
-                            var seps = Math.floor(opts.integerDigits / opts.groupSize);
-                            var mod = opts.integerDigits % opts.groupSize;
-                            opts.integerDigits = parseInt(opts.integerDigits) + (mod === 0 ? seps - 1 : seps);
-                            if (opts.integerDigits < 1) {
-                                opts.integerDigits = "*";
-                            }
-                        }
-                    }
-                    if (opts.placeholder.length > 1) {
-                        opts.placeholder = opts.placeholder.charAt(0);
-                    }
-                    if (opts.positionCaretOnClick === "radixFocus" && opts.placeholder === "" && opts.integerOptional === false) {
-                        opts.positionCaretOnClick = "lvp";
-                    }
-                    opts.definitions[";"] = opts.definitions["~"];
-                    opts.definitions[";"].definitionSymbol = "~";
-                    if (opts.numericInput === true) {
-                        opts.positionCaretOnClick = opts.positionCaretOnClick === "radixFocus" ? "lvp" : opts.positionCaretOnClick;
-                        opts.digitsOptional = false;
-                        if (isNaN(opts.digits)) opts.digits = 2;
-                        opts.decimalProtect = false;
-                    }
-                    var mask = "[+]";
-                    mask += autoEscape(opts.prefix, opts);
-                    if (opts.integerOptional === true) {
-                        mask += "~{1," + opts.integerDigits + "}";
-                    } else mask += "~{" + opts.integerDigits + "}";
-                    if (opts.digits !== undefined) {
-                        var radixDef = opts.decimalProtect ? ":" : opts.radixPoint;
-                        var dq = opts.digits.toString().split(",");
-                        if (isFinite(dq[0]) && dq[1] && isFinite(dq[1])) {
-                            mask += radixDef + ";{" + opts.digits + "}";
-                        } else if (isNaN(opts.digits) || parseInt(opts.digits) > 0) {
-                            if (opts.digitsOptional) {
-                                mask += "[" + radixDef + ";{1," + opts.digits + "}]";
-                            } else mask += radixDef + ";{" + opts.digits + "}";
-                        }
-                    }
-                    mask += autoEscape(opts.suffix, opts);
-                    mask += "[-]";
-                    opts.greedy = false;
-                    return mask;
-                },
-                placeholder: "",
-                greedy: false,
-                digits: "*",
-                digitsOptional: true,
-                enforceDigitsOnBlur: false,
-                radixPoint: ".",
-                positionCaretOnClick: "radixFocus",
-                groupSize: 3,
-                groupSeparator: "",
-                autoGroup: false,
-                allowMinus: true,
-                negationSymbol: {
-                    front: "-",
-                    back: ""
-                },
-                integerDigits: "+",
-                integerOptional: true,
-                prefix: "",
-                suffix: "",
-                rightAlign: true,
-                decimalProtect: true,
-                min: null,
-                max: null,
-                step: 1,
-                insertMode: true,
-                autoUnmask: false,
-                unmaskAsNumber: false,
-                inputType: "text",
-                inputmode: "numeric",
-                preValidation: function preValidation(buffer, pos, c, isSelection, opts, maskset) {
-                    if (c === "-" || c === opts.negationSymbol.front) {
-                        if (opts.allowMinus !== true) return false;
-                        opts.isNegative = opts.isNegative === undefined ? true : !opts.isNegative;
-                        if (buffer.join("") === "") return true;
-                        return {
-                            caret: maskset.validPositions[pos] ? pos : undefined,
-                            dopost: true
-                        };
-                    }
-                    if (isSelection === false && c === opts.radixPoint && opts.digits !== undefined && (isNaN(opts.digits) || parseInt(opts.digits) > 0)) {
-                        var radixPos = $.inArray(opts.radixPoint, buffer);
-                        if (radixPos !== -1 && maskset.validPositions[radixPos] !== undefined) {
-                            if (opts.numericInput === true) {
-                                return pos === radixPos;
-                            }
-                            return {
-                                caret: radixPos + 1
-                            };
-                        }
-                    }
-                    return true;
-                },
-                postValidation: function postValidation(buffer, pos, currentResult, opts) {
-                    function buildPostMask(buffer, opts) {
-                        var postMask = "";
-                        postMask += "(" + opts.groupSeparator + "*{" + opts.groupSize + "}){*}";
-                        if (opts.radixPoint !== "") {
-                            var radixSplit = buffer.join("").split(opts.radixPoint);
-                            if (radixSplit[1]) {
-                                postMask += opts.radixPoint + "*{" + radixSplit[1].match(/^\d*\??\d*/)[0].length + "}";
-                            }
-                        }
-                        return postMask;
-                    }
-                    var suffix = opts.suffix.split(""), prefix = opts.prefix.split("");
-                    if (currentResult.pos === undefined && currentResult.caret !== undefined && currentResult.dopost !== true) return currentResult;
-                    var caretPos = currentResult.caret !== undefined ? currentResult.caret : currentResult.pos;
-                    var maskedValue = buffer.slice();
-                    if (opts.numericInput) {
-                        caretPos = maskedValue.length - caretPos - 1;
-                        maskedValue = maskedValue.reverse();
-                    }
-                    var charAtPos = maskedValue[caretPos];
-                    if (charAtPos === opts.groupSeparator) {
-                        caretPos += 1;
-                        charAtPos = maskedValue[caretPos];
-                    }
-                    if (caretPos === maskedValue.length - opts.suffix.length - 1 && charAtPos === opts.radixPoint) return currentResult;
-                    if (charAtPos !== undefined) {
-                        if (charAtPos !== opts.radixPoint && charAtPos !== opts.negationSymbol.front && charAtPos !== opts.negationSymbol.back) {
-                            maskedValue[caretPos] = "?";
-                            if (opts.prefix.length > 0 && caretPos >= (opts.isNegative === false ? 1 : 0) && caretPos < opts.prefix.length - 1 + (opts.isNegative === false ? 1 : 0)) {
-                                prefix[caretPos - (opts.isNegative === false ? 1 : 0)] = "?";
-                            } else if (opts.suffix.length > 0 && caretPos >= maskedValue.length - opts.suffix.length - (opts.isNegative === false ? 1 : 0)) {
-                                suffix[caretPos - (maskedValue.length - opts.suffix.length - (opts.isNegative === false ? 1 : 0))] = "?";
-                            }
-                        }
-                    }
-                    prefix = prefix.join("");
-                    suffix = suffix.join("");
-                    var processValue = maskedValue.join("").replace(prefix, "");
-                    processValue = processValue.replace(suffix, "");
-                    processValue = processValue.replace(new RegExp(Inputmask.escapeRegex(opts.groupSeparator), "g"), "");
-                    processValue = processValue.replace(new RegExp("[-" + Inputmask.escapeRegex(opts.negationSymbol.front) + "]", "g"), "");
-                    processValue = processValue.replace(new RegExp(Inputmask.escapeRegex(opts.negationSymbol.back) + "$"), "");
-                    if (isNaN(opts.placeholder)) {
-                        processValue = processValue.replace(new RegExp(Inputmask.escapeRegex(opts.placeholder), "g"), "");
-                    }
-                    if (processValue.length > 1 && processValue.indexOf(opts.radixPoint) !== 1) {
-                        if (charAtPos === "0") {
-                            processValue = processValue.replace(/^\?/g, "");
-                        }
-                        processValue = processValue.replace(/^0/g, "");
-                    }
-                    if (processValue.charAt(0) === opts.radixPoint && opts.radixPoint !== "" && opts.numericInput !== true) {
-                        processValue = "0" + processValue;
-                    }
-                    if (processValue !== "") {
-                        processValue = processValue.split("");
-                        if ((!opts.digitsOptional || opts.enforceDigitsOnBlur && currentResult.event === "blur") && isFinite(opts.digits)) {
-                            var radixPosition = $.inArray(opts.radixPoint, processValue);
-                            var rpb = $.inArray(opts.radixPoint, maskedValue);
-                            if (radixPosition === -1) {
-                                processValue.push(opts.radixPoint);
-                                radixPosition = processValue.length - 1;
-                            }
-                            for (var i = 1; i <= opts.digits; i++) {
-                                if ((!opts.digitsOptional || opts.enforceDigitsOnBlur && currentResult.event === "blur") && (processValue[radixPosition + i] === undefined || processValue[radixPosition + i] === opts.placeholder.charAt(0))) {
-                                    processValue[radixPosition + i] = currentResult.placeholder || opts.placeholder.charAt(0);
-                                } else if (rpb !== -1 && maskedValue[rpb + i] !== undefined) {
-                                    processValue[radixPosition + i] = processValue[radixPosition + i] || maskedValue[rpb + i];
-                                }
-                            }
-                        }
-                        if (opts.autoGroup === true && opts.groupSeparator !== "" && (charAtPos !== opts.radixPoint || currentResult.pos !== undefined || currentResult.dopost)) {
-                            var addRadix = processValue[processValue.length - 1] === opts.radixPoint && currentResult.c === opts.radixPoint;
-                            processValue = Inputmask(buildPostMask(processValue, opts), {
-                                numericInput: true,
-                                jitMasking: true,
-                                definitions: {
-                                    "*": {
-                                        validator: "[0-9?]",
-                                        cardinality: 1
-                                    }
-                                }
-                            }).format(processValue.join(""));
-                            if (addRadix) processValue += opts.radixPoint;
-                            if (processValue.charAt(0) === opts.groupSeparator) {
-                                processValue.substr(1);
-                            }
-                        } else processValue = processValue.join("");
-                    }
-                    if (opts.isNegative && currentResult.event === "blur") {
-                        opts.isNegative = processValue !== "0";
-                    }
-                    processValue = prefix + processValue;
-                    processValue += suffix;
-                    if (opts.isNegative) {
-                        processValue = opts.negationSymbol.front + processValue;
-                        processValue += opts.negationSymbol.back;
-                    }
-                    processValue = processValue.split("");
-                    if (charAtPos !== undefined) {
-                        if (charAtPos !== opts.radixPoint && charAtPos !== opts.negationSymbol.front && charAtPos !== opts.negationSymbol.back) {
-                            caretPos = $.inArray("?", processValue);
-                            if (caretPos > -1) {
-                                processValue[caretPos] = charAtPos;
-                            } else caretPos = currentResult.caret || 0;
-                        } else if (charAtPos === opts.radixPoint || charAtPos === opts.negationSymbol.front || charAtPos === opts.negationSymbol.back) {
-                            var newCaretPos = $.inArray(charAtPos, processValue);
-                            if (newCaretPos !== -1) caretPos = newCaretPos;
-                        }
-                    }
-                    if (opts.numericInput) {
-                        caretPos = processValue.length - caretPos - 1;
-                        processValue = processValue.reverse();
-                    }
-                    var rslt = {
-                        caret: (charAtPos === undefined || currentResult.pos !== undefined) && caretPos !== undefined ? caretPos + (opts.numericInput ? -1 : 1) : caretPos,
-                        buffer: processValue,
-                        refreshFromBuffer: currentResult.dopost || buffer.join("") !== processValue.join("")
-                    };
-                    return rslt.refreshFromBuffer ? rslt : currentResult;
-                },
-                onBeforeWrite: function onBeforeWrite(e, buffer, caretPos, opts) {
-                    function parseMinMaxOptions(opts) {
-                        if (opts.parseMinMaxOptions === undefined) {
-                            if (opts.min !== null) {
-                                opts.min = opts.min.toString().replace(new RegExp(Inputmask.escapeRegex(opts.groupSeparator), "g"), "");
-                                if (opts.radixPoint === ",") opts.min = opts.min.replace(opts.radixPoint, ".");
-                                opts.min = isFinite(opts.min) ? parseFloat(opts.min) : NaN;
-                                if (isNaN(opts.min)) opts.min = Number.MIN_VALUE;
-                            }
-                            if (opts.max !== null) {
-                                opts.max = opts.max.toString().replace(new RegExp(Inputmask.escapeRegex(opts.groupSeparator), "g"), "");
-                                if (opts.radixPoint === ",") opts.max = opts.max.replace(opts.radixPoint, ".");
-                                opts.max = isFinite(opts.max) ? parseFloat(opts.max) : NaN;
-                                if (isNaN(opts.max)) opts.max = Number.MAX_VALUE;
-                            }
-                            opts.parseMinMaxOptions = "done";
-                        }
-                    }
-                    if (e) {
-                        switch (e.type) {
-                          case "keydown":
-                            return opts.postValidation(buffer, caretPos, {
-                                caret: caretPos,
-                                dopost: true
-                            }, opts);
-
-                          case "blur":
-                          case "checkval":
-                            var unmasked;
-                            parseMinMaxOptions(opts);
-                            if (opts.min !== null || opts.max !== null) {
-                                unmasked = opts.onUnMask(buffer.join(""), undefined, $.extend({}, opts, {
-                                    unmaskAsNumber: true
-                                }));
-                                if (opts.min !== null && unmasked < opts.min) {
-                                    opts.isNegative = opts.min < 0;
-                                    return opts.postValidation(opts.min.toString().replace(".", opts.radixPoint).split(""), caretPos, {
-                                        caret: caretPos,
-                                        dopost: true,
-                                        placeholder: "0"
-                                    }, opts);
-                                } else if (opts.max !== null && unmasked > opts.max) {
-                                    opts.isNegative = opts.max < 0;
-                                    return opts.postValidation(opts.max.toString().replace(".", opts.radixPoint).split(""), caretPos, {
-                                        caret: caretPos,
-                                        dopost: true,
-                                        placeholder: "0"
-                                    }, opts);
-                                }
-                            }
-                            return opts.postValidation(buffer, caretPos, {
-                                caret: caretPos,
-                                placeholder: "0",
-                                event: "blur"
-                            }, opts);
-
-                          case "_checkval":
-                            return {
-                                caret: caretPos
-                            };
-
-                          default:
-                            break;
-                        }
-                    }
-                },
-                regex: {
-                    integerPart: function integerPart(opts, emptyCheck) {
-                        return emptyCheck ? new RegExp("[" + Inputmask.escapeRegex(opts.negationSymbol.front) + "+]?") : new RegExp("[" + Inputmask.escapeRegex(opts.negationSymbol.front) + "+]?\\d+");
-                    },
-                    integerNPart: function integerNPart(opts) {
-                        return new RegExp("[\\d" + Inputmask.escapeRegex(opts.groupSeparator) + Inputmask.escapeRegex(opts.placeholder.charAt(0)) + "]+");
-                    }
-                },
-                definitions: {
-                    "~": {
-                        validator: function validator(chrs, maskset, pos, strict, opts, isSelection) {
-                            var isValid, l;
-                            if (chrs === "k" || chrs === "m") {
-                                isValid = {
-                                    insert: [],
-                                    c: 0
-                                };
-                                for (var i = 0, l = chrs === "k" ? 2 : 5; i < l; i++) {
-                                    isValid.insert.push({
-                                        pos: pos + i,
-                                        c: 0
-                                    });
-                                }
-                                isValid.pos = pos + l;
-                                return isValid;
-                            }
-                            isValid = strict ? new RegExp("[0-9" + Inputmask.escapeRegex(opts.groupSeparator) + "]").test(chrs) : new RegExp("[0-9]").test(chrs);
-                            if (isValid === true) {
-                                if (opts.numericInput !== true && maskset.validPositions[pos] !== undefined && maskset.validPositions[pos].match.def === "~" && !isSelection) {
-                                    var processValue = maskset.buffer.join("");
-                                    processValue = processValue.replace(new RegExp("[-" + Inputmask.escapeRegex(opts.negationSymbol.front) + "]", "g"), "");
-                                    processValue = processValue.replace(new RegExp(Inputmask.escapeRegex(opts.negationSymbol.back) + "$"), "");
-                                    var pvRadixSplit = processValue.split(opts.radixPoint);
-                                    if (pvRadixSplit.length > 1) {
-                                        pvRadixSplit[1] = pvRadixSplit[1].replace(/0/g, opts.placeholder.charAt(0));
-                                    }
-                                    if (pvRadixSplit[0] === "0") {
-                                        pvRadixSplit[0] = pvRadixSplit[0].replace(/0/g, opts.placeholder.charAt(0));
-                                    }
-                                    processValue = pvRadixSplit[0] + opts.radixPoint + pvRadixSplit[1] || "";
-                                    var bufferTemplate = maskset._buffer.join("");
-                                    if (processValue === opts.radixPoint) {
-                                        processValue = bufferTemplate;
-                                    }
-                                    while (processValue.match(Inputmask.escapeRegex(bufferTemplate) + "$") === null) {
-                                        bufferTemplate = bufferTemplate.slice(1);
-                                    }
-                                    processValue = processValue.replace(bufferTemplate, "");
-                                    processValue = processValue.split("");
-                                    if (processValue[pos] === undefined) {
-                                        isValid = {
-                                            pos: pos,
-                                            remove: pos
-                                        };
-                                    } else {
-                                        isValid = {
-                                            pos: pos
-                                        };
-                                    }
-                                }
-                            } else if (!strict && chrs === opts.radixPoint && maskset.validPositions[pos - 1] === undefined) {
-                                isValid = {
-                                    insert: {
-                                        pos: pos,
-                                        c: 0
-                                    },
-                                    pos: pos + 1
-                                };
-                            }
-                            return isValid;
-                        },
-                        cardinality: 1
-                    },
-                    "+": {
-                        validator: function validator(chrs, maskset, pos, strict, opts) {
-                            return opts.allowMinus && (chrs === "-" || chrs === opts.negationSymbol.front);
-                        },
-                        cardinality: 1,
-                        placeholder: ""
-                    },
-                    "-": {
-                        validator: function validator(chrs, maskset, pos, strict, opts) {
-                            return opts.allowMinus && chrs === opts.negationSymbol.back;
-                        },
-                        cardinality: 1,
-                        placeholder: ""
-                    },
-                    ":": {
-                        validator: function validator(chrs, maskset, pos, strict, opts) {
-                            var radix = "[" + Inputmask.escapeRegex(opts.radixPoint) + "]";
-                            var isValid = new RegExp(radix).test(chrs);
-                            if (isValid && maskset.validPositions[pos] && maskset.validPositions[pos].match.placeholder === opts.radixPoint) {
-                                isValid = {
-                                    caret: pos + 1
-                                };
-                            }
-                            return isValid;
-                        },
-                        cardinality: 1,
-                        placeholder: function placeholder(opts) {
-                            return opts.radixPoint;
-                        }
-                    }
-                },
-                onUnMask: function onUnMask(maskedValue, unmaskedValue, opts) {
-                    if (unmaskedValue === "" && opts.nullable === true) {
-                        return unmaskedValue;
-                    }
-                    var processValue = maskedValue.replace(opts.prefix, "");
-                    processValue = processValue.replace(opts.suffix, "");
-                    processValue = processValue.replace(new RegExp(Inputmask.escapeRegex(opts.groupSeparator), "g"), "");
-                    if (opts.placeholder.charAt(0) !== "") {
-                        processValue = processValue.replace(new RegExp(opts.placeholder.charAt(0), "g"), "0");
-                    }
-                    if (opts.unmaskAsNumber) {
-                        if (opts.radixPoint !== "" && processValue.indexOf(opts.radixPoint) !== -1) processValue = processValue.replace(Inputmask.escapeRegex.call(this, opts.radixPoint), ".");
-                        processValue = processValue.replace(new RegExp("^" + Inputmask.escapeRegex(opts.negationSymbol.front)), "-");
-                        processValue = processValue.replace(new RegExp(Inputmask.escapeRegex(opts.negationSymbol.back) + "$"), "");
-                        return Number(processValue);
-                    }
-                    return processValue;
-                },
-                isComplete: function isComplete(buffer, opts) {
-                    var maskedValue = (opts.numericInput ? buffer.slice().reverse() : buffer).join("");
-                    maskedValue = maskedValue.replace(new RegExp("^" + Inputmask.escapeRegex(opts.negationSymbol.front)), "-");
-                    maskedValue = maskedValue.replace(new RegExp(Inputmask.escapeRegex(opts.negationSymbol.back) + "$"), "");
-                    maskedValue = maskedValue.replace(opts.prefix, "");
-                    maskedValue = maskedValue.replace(opts.suffix, "");
-                    maskedValue = maskedValue.replace(new RegExp(Inputmask.escapeRegex(opts.groupSeparator) + "([0-9]{3})", "g"), "$1");
-                    if (opts.radixPoint === ",") maskedValue = maskedValue.replace(Inputmask.escapeRegex(opts.radixPoint), ".");
-                    return isFinite(maskedValue);
-                },
-                onBeforeMask: function onBeforeMask(initialValue, opts) {
-                    opts.isNegative = undefined;
-                    var radixPoint = opts.radixPoint || ",";
-                    if ((typeof initialValue == "number" || opts.inputType === "number") && radixPoint !== "") {
-                        initialValue = initialValue.toString().replace(".", radixPoint);
-                    }
-                    var valueParts = initialValue.split(radixPoint), integerPart = valueParts[0].replace(/[^\-0-9]/g, ""), decimalPart = valueParts.length > 1 ? valueParts[1].replace(/[^0-9]/g, "") : "";
-                    initialValue = integerPart + (decimalPart !== "" ? radixPoint + decimalPart : decimalPart);
-                    var digits = 0;
-                    if (radixPoint !== "") {
-                        digits = decimalPart.length;
-                        if (decimalPart !== "") {
-                            var digitsFactor = Math.pow(10, digits || 1);
-                            if (isFinite(opts.digits)) {
-                                digits = parseInt(opts.digits);
-                                digitsFactor = Math.pow(10, digits);
-                            }
-                            initialValue = initialValue.replace(Inputmask.escapeRegex(radixPoint), ".");
-                            if (isFinite(initialValue)) initialValue = Math.round(parseFloat(initialValue) * digitsFactor) / digitsFactor;
-                            initialValue = initialValue.toString().replace(".", radixPoint);
-                        }
-                    }
-                    if (opts.digits === 0 && initialValue.indexOf(Inputmask.escapeRegex(radixPoint)) !== -1) {
-                        initialValue = initialValue.substring(0, initialValue.indexOf(Inputmask.escapeRegex(radixPoint)));
-                    }
-                    return alignDigits(initialValue.toString().split(""), digits, opts).join("");
-                },
-                onKeyDown: function onKeyDown(e, buffer, caretPos, opts) {
-                    var $input = $(this);
-                    if (e.ctrlKey) {
-                        switch (e.keyCode) {
-                          case Inputmask.keyCode.UP:
-                            $input.val(parseFloat(this.inputmask.unmaskedvalue()) + parseInt(opts.step));
-                            $input.trigger("setvalue");
-                            break;
-
-                          case Inputmask.keyCode.DOWN:
-                            $input.val(parseFloat(this.inputmask.unmaskedvalue()) - parseInt(opts.step));
-                            $input.trigger("setvalue");
-                            break;
-                        }
-                    }
-                }
-            },
-            currency: {
-                prefix: "$ ",
-                groupSeparator: ",",
-                alias: "numeric",
-                placeholder: "0",
-                autoGroup: true,
-                digits: 2,
-                digitsOptional: false,
-                clearMaskOnLostFocus: false
-            },
-            decimal: {
-                alias: "numeric"
-            },
-            integer: {
-                alias: "numeric",
-                digits: 0,
-                radixPoint: ""
-            },
-            percentage: {
-                alias: "numeric",
-                digits: 2,
-                digitsOptional: true,
-                radixPoint: ".",
-                placeholder: "0",
-                autoGroup: false,
-                min: 0,
-                max: 100,
-                suffix: " %",
-                allowMinus: false
-            }
-        });
-        return Inputmask;
-    });
-}, function(module, exports, __webpack_require__) {
-    "use strict";
-    var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;
-    var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function(obj) {
-        return typeof obj;
-    } : function(obj) {
-        return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
-    };
-    (function(factory) {
-        if (true) {
-            !(__WEBPACK_AMD_DEFINE_ARRAY__ = [ __webpack_require__(4), __webpack_require__(2) ], 
-            __WEBPACK_AMD_DEFINE_FACTORY__ = factory, __WEBPACK_AMD_DEFINE_RESULT__ = typeof __WEBPACK_AMD_DEFINE_FACTORY__ === "function" ? __WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__) : __WEBPACK_AMD_DEFINE_FACTORY__, 
-            __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));
-        } else {}
-    })(function($, Inputmask) {
-        if ($.fn.inputmask === undefined) {
-            $.fn.inputmask = function(fn, options) {
-                var nptmask, input = this[0];
-                if (options === undefined) options = {};
-                if (typeof fn === "string") {
-                    switch (fn) {
-                      case "unmaskedvalue":
-                        return input && input.inputmask ? input.inputmask.unmaskedvalue() : $(input).val();
-
-                      case "remove":
-                        return this.each(function() {
-                            if (this.inputmask) this.inputmask.remove();
-                        });
-
-                      case "getemptymask":
-                        return input && input.inputmask ? input.inputmask.getemptymask() : "";
-
-                      case "hasMaskedValue":
-                        return input && input.inputmask ? input.inputmask.hasMaskedValue() : false;
-
-                      case "isComplete":
-                        return input && input.inputmask ? input.inputmask.isComplete() : true;
-
-                      case "getmetadata":
-                        return input && input.inputmask ? input.inputmask.getmetadata() : undefined;
-
-                      case "setvalue":
-                        Inputmask.setValue(input, options);
-                        break;
-
-                      case "option":
-                        if (typeof options === "string") {
-                            if (input && input.inputmask !== undefined) {
-                                return input.inputmask.option(options);
-                            }
-                        } else {
-                            return this.each(function() {
-                                if (this.inputmask !== undefined) {
-                                    return this.inputmask.option(options);
-                                }
-                            });
-                        }
-                        break;
-
-                      default:
-                        options.alias = fn;
-                        nptmask = new Inputmask(options);
-                        return this.each(function() {
-                            nptmask.mask(this);
-                        });
-                    }
-                } else if (Array.isArray(fn)) {
-                    options.alias = fn;
-                    nptmask = new Inputmask(options);
-                    return this.each(function() {
-                        nptmask.mask(this);
-                    });
-                } else if ((typeof fn === "undefined" ? "undefined" : _typeof(fn)) == "object") {
-                    nptmask = new Inputmask(fn);
-                    if (fn.mask === undefined && fn.alias === undefined) {
-                        return this.each(function() {
-                            if (this.inputmask !== undefined) {
-                                return this.inputmask.option(fn);
-                            } else nptmask.mask(this);
-                        });
-                    } else {
-                        return this.each(function() {
-                            nptmask.mask(this);
-                        });
-                    }
-                } else if (fn === undefined) {
-                    return this.each(function() {
-                        nptmask = new Inputmask(options);
-                        nptmask.mask(this);
-                    });
-                }
-            };
-        }
-        return $.fn.inputmask;
-    });
-} ]);

+ 0 - 9
plugins/inputmask/min/inputmask/bindings/inputmask.binding.min.js

@@ -1,9 +0,0 @@
-/*!
-* bindings/inputmask.binding.min.js
-* https://github.com/RobinHerbots/Inputmask
-* Copyright (c) 2010 - 2019 Robin Herbots
-* Licensed under the MIT license (http://www.opensource.org/licenses/mit-license.php)
-* Version: 4.0.9
-*/
-
-(function(factory){if(typeof define==="function"&&define.amd){define(["jquery","../inputmask","../global/window"],factory)}else if(typeof exports==="object"){module.exports=factory(require("jquery"),require("../inputmask"),require("../global/window"))}else{factory(jQuery,window.Inputmask,window)}})(function($,Inputmask,window){$(window.document).ajaxComplete(function(event,xmlHttpRequest,ajaxOptions){if($.inArray("html",ajaxOptions.dataTypes)!==-1){$(".inputmask, [data-inputmask], [data-inputmask-mask], [data-inputmask-alias]").each(function(ndx,lmnt){if(lmnt.inputmask===undefined){Inputmask().mask(lmnt)}})}}).ready(function(){$(".inputmask, [data-inputmask], [data-inputmask-mask], [data-inputmask-alias]").each(function(ndx,lmnt){if(lmnt.inputmask===undefined){Inputmask().mask(lmnt)}})})});

File diff suppressed because it is too large
+ 0 - 8
plugins/inputmask/min/inputmask/dependencyLibs/inputmask.dependencyLib.jqlite.min.js


+ 0 - 9
plugins/inputmask/min/inputmask/dependencyLibs/inputmask.dependencyLib.jquery.min.js

@@ -1,9 +0,0 @@
-/*!
-* dependencyLibs/inputmask.dependencyLib.jquery.min.js
-* https://github.com/RobinHerbots/Inputmask
-* Copyright (c) 2010 - 2019 Robin Herbots
-* Licensed under the MIT license (http://www.opensource.org/licenses/mit-license.php)
-* Version: 4.0.9
-*/
-
-(function(factory){if(typeof define==="function"&&define.amd){define(["jquery"],factory)}else if(typeof exports==="object"){module.exports=factory(require("jquery"))}else{window.dependencyLib=factory(jQuery)}})(function($){return $});

File diff suppressed because it is too large
+ 0 - 8
plugins/inputmask/min/inputmask/dependencyLibs/inputmask.dependencyLib.min.js


+ 0 - 9
plugins/inputmask/min/inputmask/global/window.min.js

@@ -1,9 +0,0 @@
-/*!
-* global/window.min.js
-* https://github.com/RobinHerbots/Inputmask
-* Copyright (c) 2010 - 2019 Robin Herbots
-* Licensed under the MIT license (http://www.opensource.org/licenses/mit-license.php)
-* Version: 4.0.9
-*/
-
-if(typeof define==="function"&&define.amd)define(function(){return typeof window!=="undefined"?window:new(eval("require('jsdom').JSDOM"))("").window});else if(typeof exports==="object")module.exports=typeof window!=="undefined"?window:new(eval("require('jsdom').JSDOM"))("").window;

File diff suppressed because it is too large
+ 0 - 8
plugins/inputmask/min/inputmask/inputmask.date.extensions.min.js


+ 0 - 9
plugins/inputmask/min/inputmask/inputmask.extensions.min.js

@@ -1,9 +0,0 @@
-/*!
-* inputmask.extensions.min.js
-* https://github.com/RobinHerbots/Inputmask
-* Copyright (c) 2010 - 2019 Robin Herbots
-* Licensed under the MIT license (http://www.opensource.org/licenses/mit-license.php)
-* Version: 4.0.9
-*/
-
-(function(factory){if(typeof define==="function"&&define.amd){define(["./inputmask"],factory)}else if(typeof exports==="object"){module.exports=factory(require("./inputmask"))}else{factory(window.Inputmask)}})(function(Inputmask){Inputmask.extendDefinitions({A:{validator:"[A-Za-z\u0410-\u044f\u0401\u0451\xc0-\xff\xb5]",casing:"upper"},"&":{validator:"[0-9A-Za-z\u0410-\u044f\u0401\u0451\xc0-\xff\xb5]",casing:"upper"},"#":{validator:"[0-9A-Fa-f]",casing:"upper"}});Inputmask.extendAliases({cssunit:{regex:"[+-]?[0-9]+\\.?([0-9]+)?(px|em|rem|ex|%|in|cm|mm|pt|pc)"},url:{regex:"(https?|ftp)//.*",autoUnmask:false},ip:{mask:"i[i[i]].i[i[i]].i[i[i]].i[i[i]]",definitions:{i:{validator:function(chrs,maskset,pos,strict,opts){if(pos-1>-1&&maskset.buffer[pos-1]!=="."){chrs=maskset.buffer[pos-1]+chrs;if(pos-2>-1&&maskset.buffer[pos-2]!=="."){chrs=maskset.buffer[pos-2]+chrs}else chrs="0"+chrs}else chrs="00"+chrs;return new RegExp("25[0-5]|2[0-4][0-9]|[01][0-9][0-9]").test(chrs)}}},onUnMask:function(maskedValue,unmaskedValue,opts){return maskedValue},inputmode:"numeric"},email:{mask:"*{1,64}[.*{1,64}][.*{1,64}][.*{1,63}]@-{1,63}.-{1,63}[.-{1,63}][.-{1,63}]",greedy:false,casing:"lower",onBeforePaste:function(pastedValue,opts){pastedValue=pastedValue.toLowerCase();return pastedValue.replace("mailto:","")},definitions:{"*":{validator:"[0-9\uff11-\uff19A-Za-z\u0410-\u044f\u0401\u0451\xc0-\xff\xb5!#$%&'*+/=?^_`{|}~-]"},"-":{validator:"[0-9A-Za-z-]"}},onUnMask:function(maskedValue,unmaskedValue,opts){return maskedValue},inputmode:"email"},mac:{mask:"##:##:##:##:##:##"},vin:{mask:"V{13}9{4}",definitions:{V:{validator:"[A-HJ-NPR-Za-hj-npr-z\\d]",casing:"upper"}},clearIncomplete:true,autoUnmask:true}});return Inputmask});

File diff suppressed because it is too large
+ 0 - 8
plugins/inputmask/min/inputmask/inputmask.min.js


File diff suppressed because it is too large
+ 0 - 8
plugins/inputmask/min/inputmask/inputmask.numeric.extensions.min.js


+ 0 - 9
plugins/inputmask/min/inputmask/jquery.inputmask.min.js

@@ -1,9 +0,0 @@
-/*!
-* jquery.inputmask.min.js
-* https://github.com/RobinHerbots/Inputmask
-* Copyright (c) 2010 - 2019 Robin Herbots
-* Licensed under the MIT license (http://www.opensource.org/licenses/mit-license.php)
-* Version: 4.0.9
-*/
-
-(function(factory){if(typeof define==="function"&&define.amd){define(["jquery","./inputmask"],factory)}else if(typeof exports==="object"){module.exports=factory(require("jquery"),require("./inputmask"))}else{factory(jQuery,window.Inputmask)}})(function($,Inputmask){if($.fn.inputmask===undefined){$.fn.inputmask=function(fn,options){var nptmask,input=this[0];if(options===undefined)options={};if(typeof fn==="string"){switch(fn){case"unmaskedvalue":return input&&input.inputmask?input.inputmask.unmaskedvalue():$(input).val();case"remove":return this.each(function(){if(this.inputmask)this.inputmask.remove()});case"getemptymask":return input&&input.inputmask?input.inputmask.getemptymask():"";case"hasMaskedValue":return input&&input.inputmask?input.inputmask.hasMaskedValue():false;case"isComplete":return input&&input.inputmask?input.inputmask.isComplete():true;case"getmetadata":return input&&input.inputmask?input.inputmask.getmetadata():undefined;case"setvalue":Inputmask.setValue(input,options);break;case"option":if(typeof options==="string"){if(input&&input.inputmask!==undefined){return input.inputmask.option(options)}}else{return this.each(function(){if(this.inputmask!==undefined){return this.inputmask.option(options)}})}break;default:options.alias=fn;nptmask=new Inputmask(options);return this.each(function(){nptmask.mask(this)})}}else if(Array.isArray(fn)){options.alias=fn;nptmask=new Inputmask(options);return this.each(function(){nptmask.mask(this)})}else if(typeof fn=="object"){nptmask=new Inputmask(fn);if(fn.mask===undefined&&fn.alias===undefined){return this.each(function(){if(this.inputmask!==undefined){return this.inputmask.option(fn)}else nptmask.mask(this)})}else{return this.each(function(){nptmask.mask(this)})}}else if(fn===undefined){return this.each(function(){nptmask=new Inputmask(options);nptmask.mask(this)})}}}return $.fn.inputmask});

File diff suppressed because it is too large
+ 0 - 8
plugins/inputmask/min/jquery.inputmask.bundle.min.js


+ 0 - 399
plugins/jquery/core.js

@@ -1,399 +0,0 @@
-/* global Symbol */
-// Defining this global in .eslintrc.json would create a danger of using the global
-// unguarded in another place, it seems safer to define global only for this module
-
-define( [
-	"./var/arr",
-	"./var/document",
-	"./var/getProto",
-	"./var/slice",
-	"./var/concat",
-	"./var/push",
-	"./var/indexOf",
-	"./var/class2type",
-	"./var/toString",
-	"./var/hasOwn",
-	"./var/fnToString",
-	"./var/ObjectFunctionString",
-	"./var/support",
-	"./var/isFunction",
-	"./var/isWindow",
-	"./core/DOMEval",
-	"./core/toType"
-], function( arr, document, getProto, slice, concat, push, indexOf,
-	class2type, toString, hasOwn, fnToString, ObjectFunctionString,
-	support, isFunction, isWindow, DOMEval, toType ) {
-
-"use strict";
-
-var
-	version = "3.4.1",
-
-	// Define a local copy of jQuery
-	jQuery = function( selector, context ) {
-
-		// The jQuery object is actually just the init constructor 'enhanced'
-		// Need init if jQuery is called (just allow error to be thrown if not included)
-		return new jQuery.fn.init( selector, context );
-	},
-
-	// Support: Android <=4.0 only
-	// Make sure we trim BOM and NBSP
-	rtrim = /^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g;
-
-jQuery.fn = jQuery.prototype = {
-
-	// The current version of jQuery being used
-	jquery: version,
-
-	constructor: jQuery,
-
-	// The default length of a jQuery object is 0
-	length: 0,
-
-	toArray: function() {
-		return slice.call( this );
-	},
-
-	// Get the Nth element in the matched element set OR
-	// Get the whole matched element set as a clean array
-	get: function( num ) {
-
-		// Return all the elements in a clean array
-		if ( num == null ) {
-			return slice.call( this );
-		}
-
-		// Return just the one element from the set
-		return num < 0 ? this[ num + this.length ] : this[ num ];
-	},
-
-	// Take an array of elements and push it onto the stack
-	// (returning the new matched element set)
-	pushStack: function( elems ) {
-
-		// Build a new jQuery matched element set
-		var ret = jQuery.merge( this.constructor(), elems );
-
-		// Add the old object onto the stack (as a reference)
-		ret.prevObject = this;
-
-		// Return the newly-formed element set
-		return ret;
-	},
-
-	// Execute a callback for every element in the matched set.
-	each: function( callback ) {
-		return jQuery.each( this, callback );
-	},
-
-	map: function( callback ) {
-		return this.pushStack( jQuery.map( this, function( elem, i ) {
-			return callback.call( elem, i, elem );
-		} ) );
-	},
-
-	slice: function() {
-		return this.pushStack( slice.apply( this, arguments ) );
-	},
-
-	first: function() {
-		return this.eq( 0 );
-	},
-
-	last: function() {
-		return this.eq( -1 );
-	},
-
-	eq: function( i ) {
-		var len = this.length,
-			j = +i + ( i < 0 ? len : 0 );
-		return this.pushStack( j >= 0 && j < len ? [ this[ j ] ] : [] );
-	},
-
-	end: function() {
-		return this.prevObject || this.constructor();
-	},
-
-	// For internal use only.
-	// Behaves like an Array's method, not like a jQuery method.
-	push: push,
-	sort: arr.sort,
-	splice: arr.splice
-};
-
-jQuery.extend = jQuery.fn.extend = function() {
-	var options, name, src, copy, copyIsArray, clone,
-		target = arguments[ 0 ] || {},
-		i = 1,
-		length = arguments.length,
-		deep = false;
-
-	// Handle a deep copy situation
-	if ( typeof target === "boolean" ) {
-		deep = target;
-
-		// Skip the boolean and the target
-		target = arguments[ i ] || {};
-		i++;
-	}
-
-	// Handle case when target is a string or something (possible in deep copy)
-	if ( typeof target !== "object" && !isFunction( target ) ) {
-		target = {};
-	}
-
-	// Extend jQuery itself if only one argument is passed
-	if ( i === length ) {
-		target = this;
-		i--;
-	}
-
-	for ( ; i < length; i++ ) {
-
-		// Only deal with non-null/undefined values
-		if ( ( options = arguments[ i ] ) != null ) {
-
-			// Extend the base object
-			for ( name in options ) {
-				copy = options[ name ];
-
-				// Prevent Object.prototype pollution
-				// Prevent never-ending loop
-				if ( name === "__proto__" || target === copy ) {
-					continue;
-				}
-
-				// Recurse if we're merging plain objects or arrays
-				if ( deep && copy && ( jQuery.isPlainObject( copy ) ||
-					( copyIsArray = Array.isArray( copy ) ) ) ) {
-					src = target[ name ];
-
-					// Ensure proper type for the source value
-					if ( copyIsArray && !Array.isArray( src ) ) {
-						clone = [];
-					} else if ( !copyIsArray && !jQuery.isPlainObject( src ) ) {
-						clone = {};
-					} else {
-						clone = src;
-					}
-					copyIsArray = false;
-
-					// Never move original objects, clone them
-					target[ name ] = jQuery.extend( deep, clone, copy );
-
-				// Don't bring in undefined values
-				} else if ( copy !== undefined ) {
-					target[ name ] = copy;
-				}
-			}
-		}
-	}
-
-	// Return the modified object
-	return target;
-};
-
-jQuery.extend( {
-
-	// Unique for each copy of jQuery on the page
-	expando: "jQuery" + ( version + Math.random() ).replace( /\D/g, "" ),
-
-	// Assume jQuery is ready without the ready module
-	isReady: true,
-
-	error: function( msg ) {
-		throw new Error( msg );
-	},
-
-	noop: function() {},
-
-	isPlainObject: function( obj ) {
-		var proto, Ctor;
-
-		// Detect obvious negatives
-		// Use toString instead of jQuery.type to catch host objects
-		if ( !obj || toString.call( obj ) !== "[object Object]" ) {
-			return false;
-		}
-
-		proto = getProto( obj );
-
-		// Objects with no prototype (e.g., `Object.create( null )`) are plain
-		if ( !proto ) {
-			return true;
-		}
-
-		// Objects with prototype are plain iff they were constructed by a global Object function
-		Ctor = hasOwn.call( proto, "constructor" ) && proto.constructor;
-		return typeof Ctor === "function" && fnToString.call( Ctor ) === ObjectFunctionString;
-	},
-
-	isEmptyObject: function( obj ) {
-		var name;
-
-		for ( name in obj ) {
-			return false;
-		}
-		return true;
-	},
-
-	// Evaluates a script in a global context
-	globalEval: function( code, options ) {
-		DOMEval( code, { nonce: options && options.nonce } );
-	},
-
-	each: function( obj, callback ) {
-		var length, i = 0;
-
-		if ( isArrayLike( obj ) ) {
-			length = obj.length;
-			for ( ; i < length; i++ ) {
-				if ( callback.call( obj[ i ], i, obj[ i ] ) === false ) {
-					break;
-				}
-			}
-		} else {
-			for ( i in obj ) {
-				if ( callback.call( obj[ i ], i, obj[ i ] ) === false ) {
-					break;
-				}
-			}
-		}
-
-		return obj;
-	},
-
-	// Support: Android <=4.0 only
-	trim: function( text ) {
-		return text == null ?
-			"" :
-			( text + "" ).replace( rtrim, "" );
-	},
-
-	// results is for internal usage only
-	makeArray: function( arr, results ) {
-		var ret = results || [];
-
-		if ( arr != null ) {
-			if ( isArrayLike( Object( arr ) ) ) {
-				jQuery.merge( ret,
-					typeof arr === "string" ?
-					[ arr ] : arr
-				);
-			} else {
-				push.call( ret, arr );
-			}
-		}
-
-		return ret;
-	},
-
-	inArray: function( elem, arr, i ) {
-		return arr == null ? -1 : indexOf.call( arr, elem, i );
-	},
-
-	// Support: Android <=4.0 only, PhantomJS 1 only
-	// push.apply(_, arraylike) throws on ancient WebKit
-	merge: function( first, second ) {
-		var len = +second.length,
-			j = 0,
-			i = first.length;
-
-		for ( ; j < len; j++ ) {
-			first[ i++ ] = second[ j ];
-		}
-
-		first.length = i;
-
-		return first;
-	},
-
-	grep: function( elems, callback, invert ) {
-		var callbackInverse,
-			matches = [],
-			i = 0,
-			length = elems.length,
-			callbackExpect = !invert;
-
-		// Go through the array, only saving the items
-		// that pass the validator function
-		for ( ; i < length; i++ ) {
-			callbackInverse = !callback( elems[ i ], i );
-			if ( callbackInverse !== callbackExpect ) {
-				matches.push( elems[ i ] );
-			}
-		}
-
-		return matches;
-	},
-
-	// arg is for internal usage only
-	map: function( elems, callback, arg ) {
-		var length, value,
-			i = 0,
-			ret = [];
-
-		// Go through the array, translating each of the items to their new values
-		if ( isArrayLike( elems ) ) {
-			length = elems.length;
-			for ( ; i < length; i++ ) {
-				value = callback( elems[ i ], i, arg );
-
-				if ( value != null ) {
-					ret.push( value );
-				}
-			}
-
-		// Go through every key on the object,
-		} else {
-			for ( i in elems ) {
-				value = callback( elems[ i ], i, arg );
-
-				if ( value != null ) {
-					ret.push( value );
-				}
-			}
-		}
-
-		// Flatten any nested arrays
-		return concat.apply( [], ret );
-	},
-
-	// A global GUID counter for objects
-	guid: 1,
-
-	// jQuery.support is not used in Core but other projects attach their
-	// properties to it so it needs to exist.
-	support: support
-} );
-
-if ( typeof Symbol === "function" ) {
-	jQuery.fn[ Symbol.iterator ] = arr[ Symbol.iterator ];
-}
-
-// Populate the class2type map
-jQuery.each( "Boolean Number String Function Array Date RegExp Object Error Symbol".split( " " ),
-function( i, name ) {
-	class2type[ "[object " + name + "]" ] = name.toLowerCase();
-} );
-
-function isArrayLike( obj ) {
-
-	// Support: real iOS 8.2 only (not reproducible in simulator)
-	// `in` check used to prevent JIT error (gh-2145)
-	// hasOwn isn't used here due to false negatives
-	// regarding Nodelist length in IE
-	var length = !!obj && "length" in obj && obj.length,
-		type = toType( obj );
-
-	if ( isFunction( obj ) || isWindow( obj ) ) {
-		return false;
-	}
-
-	return type === "array" || length === 0 ||
-		typeof length === "number" && length > 0 && ( length - 1 ) in obj;
-}
-
-return jQuery;
-} );

+ 1 - 1
plugins/jszip/jszip.js

@@ -1057,7 +1057,7 @@ JSZip.defaults = require('./defaults');
 
 // TODO find a better way to handle this version,
 // a require('package.json').version doesn't work with webpack, see #327
-JSZip.version = "3.2.0";
+JSZip.version = "3.4.0";
 
 JSZip.loadAsync = function (content, options) {
     return new JSZip().loadAsync(content, options);

File diff suppressed because it is too large
+ 0 - 0
plugins/jszip/jszip.min.js


+ 2 - 2
plugins/overlayScrollbars/css/OverlayScrollbars.css

@@ -2,13 +2,13 @@
  * OverlayScrollbars
  * https://github.com/KingSora/OverlayScrollbars
  *
- * Version: 1.11.0
+ * Version: 1.12.0
  *
  * Copyright KingSora | Rene Haas.
  * https://github.com/KingSora
  *
  * Released under the MIT license.
- * Date: 29.02.2020
+ * Date: 05.04.2020
  */
 
 /*

File diff suppressed because it is too large
+ 2 - 2
plugins/overlayScrollbars/css/OverlayScrollbars.min.css


Some files were not shown because too many files changed in this diff