use-mask-input 3.3.1 → 3.3.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.cjs CHANGED
@@ -1,349 +1,3858 @@
1
1
  'use strict';
2
2
 
3
- Object.defineProperty(exports, '__esModule', { value: true });
4
-
5
3
  var react = require('react');
6
- var Inputmask = require('inputmask');
7
4
 
8
- function flow(...funcs) {
9
- const { length } = funcs;
10
- let index = length;
11
- while(index--){
12
- if (typeof funcs[index] !== 'function') {
13
- throw new TypeError('Expected a function');
14
- }
15
- }
16
- return (...args)=>{
17
- let i = 0;
18
- let result = length ? funcs[i].apply(this, args) : args[0];
19
- while(++i < length){
20
- result = funcs[i].call(this, result);
21
- }
22
- return result;
23
- };
24
- }
5
+ var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
25
6
 
26
- const isServer = !(typeof window !== 'undefined' && window.document && window.document.createElement);
27
-
28
- function _define_property$2(obj, key, value) {
29
- if (key in obj) {
30
- Object.defineProperty(obj, key, {
31
- value: value,
32
- enumerable: true,
33
- configurable: true,
34
- writable: true
35
- });
36
- } else {
37
- obj[key] = value;
38
- }
39
- return obj;
7
+ function getDefaultExportFromCjs (x) {
8
+ return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, 'default') ? x['default'] : x;
40
9
  }
41
- function _object_spread$2(target) {
42
- for(var i = 1; i < arguments.length; i++){
43
- var source = arguments[i] != null ? arguments[i] : {};
44
- var ownKeys = Object.keys(source);
45
- if (typeof Object.getOwnPropertySymbols === "function") {
46
- ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function(sym) {
47
- return Object.getOwnPropertyDescriptor(source, sym).enumerable;
48
- }));
49
- }
50
- ownKeys.forEach(function(key) {
51
- _define_property$2(target, key, source[key]);
52
- });
53
- }
54
- return target;
55
- }
56
- function ownKeys$2(object, enumerableOnly) {
57
- var keys = Object.keys(object);
58
- if (Object.getOwnPropertySymbols) {
59
- var symbols = Object.getOwnPropertySymbols(object);
60
- if (enumerableOnly) {
61
- symbols = symbols.filter(function(sym) {
62
- return Object.getOwnPropertyDescriptor(object, sym).enumerable;
63
- });
64
- }
65
- keys.push.apply(keys, symbols);
10
+
11
+ var inputmask$1 = {exports: {}};
12
+
13
+ /*!
14
+ * dist/inputmask
15
+ * https://github.com/RobinHerbots/Inputmask
16
+ * Copyright (c) 2010 - 2023 Robin Herbots
17
+ * Licensed under the MIT license
18
+ * Version: 5.0.9-beta.30
19
+ */
20
+
21
+ (function (module, exports) {
22
+ !function(e, t) {
23
+ module.exports = t();
24
+ }("undefined" != typeof self ? self : commonjsGlobal, (function() {
25
+ return function() {
26
+ var e = {
27
+ 3976: function(e, t, n) {
28
+ Object.defineProperty(t, "__esModule", {
29
+ value: !0
30
+ }), t.default = void 0;
31
+ var i = n(2839), a = {
32
+ _maxTestPos: 500,
33
+ placeholder: "_",
34
+ optionalmarker: [ "[", "]" ],
35
+ quantifiermarker: [ "{", "}" ],
36
+ groupmarker: [ "(", ")" ],
37
+ alternatormarker: "|",
38
+ escapeChar: "\\",
39
+ mask: null,
40
+ regex: null,
41
+ oncomplete: function() {},
42
+ onincomplete: function() {},
43
+ oncleared: function() {},
44
+ repeat: 0,
45
+ greedy: !1,
46
+ autoUnmask: !1,
47
+ removeMaskOnSubmit: !1,
48
+ clearMaskOnLostFocus: !0,
49
+ insertMode: !0,
50
+ insertModeVisual: !0,
51
+ clearIncomplete: !1,
52
+ alias: null,
53
+ onKeyDown: function() {},
54
+ onBeforeMask: null,
55
+ onBeforePaste: function(e, t) {
56
+ return "function" == typeof t.onBeforeMask ? t.onBeforeMask.call(this, e, t) : e;
57
+ },
58
+ onBeforeWrite: null,
59
+ onUnMask: null,
60
+ showMaskOnFocus: !0,
61
+ showMaskOnHover: !0,
62
+ onKeyValidation: function() {},
63
+ skipOptionalPartCharacter: " ",
64
+ numericInput: !1,
65
+ rightAlign: !1,
66
+ undoOnEscape: !0,
67
+ radixPoint: "",
68
+ _radixDance: !1,
69
+ groupSeparator: "",
70
+ keepStatic: null,
71
+ positionCaretOnTab: !0,
72
+ tabThrough: !1,
73
+ supportsInputType: [ "text", "tel", "url", "password", "search" ],
74
+ ignorables: Object.keys(i.ignorables),
75
+ isComplete: null,
76
+ preValidation: null,
77
+ postValidation: null,
78
+ staticDefinitionSymbol: void 0,
79
+ jitMasking: !1,
80
+ nullable: !0,
81
+ inputEventOnly: !1,
82
+ noValuePatching: !1,
83
+ positionCaretOnClick: "lvp",
84
+ casing: null,
85
+ inputmode: "text",
86
+ importDataAttributes: !0,
87
+ shiftPositions: !0,
88
+ usePrototypeDefinitions: !0,
89
+ validationEventTimeOut: 3e3,
90
+ substitutes: {}
91
+ };
92
+ t.default = a;
93
+ },
94
+ 7392: function(e, t) {
95
+ Object.defineProperty(t, "__esModule", {
96
+ value: !0
97
+ }), t.default = void 0;
98
+ t.default = {
99
+ 9: {
100
+ validator: "[0-9\uff10-\uff19]",
101
+ definitionSymbol: "*"
102
+ },
103
+ a: {
104
+ validator: "[A-Za-z\u0410-\u044f\u0401\u0451\xc0-\xff\xb5]",
105
+ definitionSymbol: "*"
106
+ },
107
+ "*": {
108
+ validator: "[0-9\uff10-\uff19A-Za-z\u0410-\u044f\u0401\u0451\xc0-\xff\xb5]"
109
+ }
110
+ };
111
+ },
112
+ 253: function(e, t) {
113
+ Object.defineProperty(t, "__esModule", {
114
+ value: !0
115
+ }), t.default = function(e, t, n) {
116
+ if (void 0 === n) return e.__data ? e.__data[t] : null;
117
+ e.__data = e.__data || {}, e.__data[t] = n;
118
+ };
119
+ },
120
+ 3776: function(e, t, n) {
121
+ Object.defineProperty(t, "__esModule", {
122
+ value: !0
123
+ }), t.Event = void 0, t.off = function(e, t) {
124
+ var n, i;
125
+ f(this[0]) && e && (n = this[0].eventRegistry, i = this[0], e.split(" ").forEach((function(e) {
126
+ var a = o(e.split("."), 2);
127
+ (function(e, i) {
128
+ var a, r, o = [];
129
+ if (e.length > 0) if (void 0 === t) for (a = 0, r = n[e][i].length; a < r; a++) o.push({
130
+ ev: e,
131
+ namespace: i && i.length > 0 ? i : "global",
132
+ handler: n[e][i][a]
133
+ }); else o.push({
134
+ ev: e,
135
+ namespace: i && i.length > 0 ? i : "global",
136
+ handler: t
137
+ }); else if (i.length > 0) for (var l in n) for (var s in n[l]) if (s === i) if (void 0 === t) for (a = 0,
138
+ r = n[l][s].length; a < r; a++) o.push({
139
+ ev: l,
140
+ namespace: s,
141
+ handler: n[l][s][a]
142
+ }); else o.push({
143
+ ev: l,
144
+ namespace: s,
145
+ handler: t
146
+ });
147
+ return o;
148
+ })(a[0], a[1]).forEach((function(e) {
149
+ var t = e.ev, a = e.handler;
150
+ !function(e, t, a) {
151
+ if (e in n == 1) if (i.removeEventListener ? i.removeEventListener(e, a, !1) : i.detachEvent && i.detachEvent("on".concat(e), a),
152
+ "global" === t) for (var r in n[e]) n[e][r].splice(n[e][r].indexOf(a), 1); else n[e][t].splice(n[e][t].indexOf(a), 1);
153
+ }(t, e.namespace, a);
154
+ }));
155
+ })));
156
+ return this;
157
+ }, t.on = function(e, t) {
158
+ if (f(this[0])) {
159
+ var n = this[0].eventRegistry, i = this[0];
160
+ e.split(" ").forEach((function(e) {
161
+ var a = o(e.split("."), 2), r = a[0], l = a[1];
162
+ !function(e, a) {
163
+ i.addEventListener ? i.addEventListener(e, t, !1) : i.attachEvent && i.attachEvent("on".concat(e), t),
164
+ n[e] = n[e] || {}, n[e][a] = n[e][a] || [], n[e][a].push(t);
165
+ }(r, void 0 === l ? "global" : l);
166
+ }));
167
+ }
168
+ return this;
169
+ }, t.trigger = function(e) {
170
+ var t = arguments;
171
+ if (f(this[0])) for (var n = this[0].eventRegistry, a = this[0], o = "string" == typeof e ? e.split(" ") : [ e.type ], l = 0; l < o.length; l++) {
172
+ var s = o[l].split("."), c = s[0], p = s[1] || "global";
173
+ if (void 0 !== u && "global" === p) {
174
+ var d, h = {
175
+ bubbles: !0,
176
+ cancelable: !0,
177
+ composed: !0,
178
+ detail: arguments[1]
179
+ };
180
+ if (u.createEvent) {
181
+ try {
182
+ if ("input" === c) h.inputType = "insertText", d = new InputEvent(c, h); else d = new CustomEvent(c, h);
183
+ } catch (e) {
184
+ (d = u.createEvent("CustomEvent")).initCustomEvent(c, h.bubbles, h.cancelable, h.detail);
185
+ }
186
+ e.type && (0, i.default)(d, e), a.dispatchEvent(d);
187
+ } else (d = u.createEventObject()).eventType = c, d.detail = arguments[1], e.type && (0, i.default)(d, e), a.fireEvent("on" + d.eventType, d);
188
+ } else if (void 0 !== n[c]) {
189
+ arguments[0] = arguments[0].type ? arguments[0] : r.default.Event(arguments[0]),
190
+ arguments[0].detail = arguments.slice(1);
191
+ var v = n[c];
192
+ ("global" === p ? Object.values(v).flat() : v[p]).forEach((function(e) {
193
+ return e.apply(a, t);
194
+ }));
195
+ }
196
+ }
197
+ return this;
198
+ };
199
+ var i = s(n(600)), a = s(n(9380)), r = s(n(4963));
200
+ function o(e, t) {
201
+ return function(e) {
202
+ if (Array.isArray(e)) return e;
203
+ }(e) || function(e, t) {
204
+ var n = null == e ? null : "undefined" != typeof Symbol && e[Symbol.iterator] || e["@@iterator"];
205
+ if (null != n) {
206
+ var i, a, r, o, l = [], s = !0, c = !1;
207
+ try {
208
+ if (r = (n = n.call(e)).next, 0 === t) {
209
+ if (Object(n) !== n) return;
210
+ s = !1;
211
+ } else for (;!(s = (i = r.call(n)).done) && (l.push(i.value), l.length !== t); s = !0) ;
212
+ } catch (e) {
213
+ c = !0, a = e;
214
+ } finally {
215
+ try {
216
+ if (!s && null != n.return && (o = n.return(), Object(o) !== o)) return;
217
+ } finally {
218
+ if (c) throw a;
219
+ }
220
+ }
221
+ return l;
222
+ }
223
+ }(e, t) || function(e, t) {
224
+ if (!e) return;
225
+ if ("string" == typeof e) return l(e, t);
226
+ var n = Object.prototype.toString.call(e).slice(8, -1);
227
+ "Object" === n && e.constructor && (n = e.constructor.name);
228
+ if ("Map" === n || "Set" === n) return Array.from(e);
229
+ if ("Arguments" === n || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return l(e, t);
230
+ }(e, t) || function() {
231
+ throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
232
+ }();
233
+ }
234
+ function l(e, t) {
235
+ (null == t || t > e.length) && (t = e.length);
236
+ for (var n = 0, i = new Array(t); n < t; n++) i[n] = e[n];
237
+ return i;
238
+ }
239
+ function s(e) {
240
+ return e && e.__esModule ? e : {
241
+ default: e
242
+ };
243
+ }
244
+ var c, u = a.default.document;
245
+ function f(e) {
246
+ return e instanceof Element;
247
+ }
248
+ t.Event = c, "function" == typeof a.default.CustomEvent ? t.Event = c = a.default.CustomEvent : a.default.Event && u && u.createEvent ? (t.Event = c = function(e, t) {
249
+ t = t || {
250
+ bubbles: !1,
251
+ cancelable: !1,
252
+ composed: !0,
253
+ detail: void 0
254
+ };
255
+ var n = u.createEvent("CustomEvent");
256
+ return n.initCustomEvent(e, t.bubbles, t.cancelable, t.detail), n;
257
+ }, c.prototype = a.default.Event.prototype) : "undefined" != typeof Event && (t.Event = c = Event);
258
+ },
259
+ 600: function(e, t) {
260
+ function n(e) {
261
+ return n = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(e) {
262
+ return typeof e;
263
+ } : function(e) {
264
+ return e && "function" == typeof Symbol && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
265
+ }, n(e);
266
+ }
267
+ Object.defineProperty(t, "__esModule", {
268
+ value: !0
269
+ }), t.default = function e() {
270
+ var t, i, a, r, o, l, s = arguments[0] || {}, c = 1, u = arguments.length, f = !1;
271
+ "boolean" == typeof s && (f = s, s = arguments[c] || {}, c++);
272
+ "object" !== n(s) && "function" != typeof s && (s = {});
273
+ for (;c < u; c++) if (null != (t = arguments[c])) for (i in t) a = s[i], s !== (r = t[i]) && (f && r && ("[object Object]" === Object.prototype.toString.call(r) || (o = Array.isArray(r))) ? (o ? (o = !1,
274
+ l = a && Array.isArray(a) ? a : []) : l = a && "[object Object]" === Object.prototype.toString.call(a) ? a : {},
275
+ s[i] = e(f, l, r)) : void 0 !== r && (s[i] = r));
276
+ return s;
277
+ };
278
+ },
279
+ 4963: function(e, t, n) {
280
+ Object.defineProperty(t, "__esModule", {
281
+ value: !0
282
+ }), t.default = void 0;
283
+ var i = l(n(600)), a = l(n(9380)), r = l(n(253)), o = n(3776);
284
+ function l(e) {
285
+ return e && e.__esModule ? e : {
286
+ default: e
287
+ };
288
+ }
289
+ var s = a.default.document;
290
+ function c(e) {
291
+ return e instanceof c ? e : this instanceof c ? void (null != e && e !== a.default && (this[0] = e.nodeName ? e : void 0 !== e[0] && e[0].nodeName ? e[0] : s.querySelector(e),
292
+ void 0 !== this[0] && null !== this[0] && (this[0].eventRegistry = this[0].eventRegistry || {}))) : new c(e);
293
+ }
294
+ c.prototype = {
295
+ on: o.on,
296
+ off: o.off,
297
+ trigger: o.trigger
298
+ }, c.extend = i.default, c.data = r.default, c.Event = o.Event;
299
+ var u = c;
300
+ t.default = u;
301
+ },
302
+ 9845: function(e, t, n) {
303
+ Object.defineProperty(t, "__esModule", {
304
+ value: !0
305
+ }), t.mobile = t.iphone = t.ie = void 0;
306
+ var i, a = (i = n(9380)) && i.__esModule ? i : {
307
+ default: i
308
+ };
309
+ var r = a.default.navigator && a.default.navigator.userAgent || "", o = r.indexOf("MSIE ") > 0 || r.indexOf("Trident/") > 0, l = a.default.navigator && a.default.navigator.userAgentData && a.default.navigator.userAgentData.mobile || a.default.navigator && a.default.navigator.maxTouchPoints || "ontouchstart" in a.default, s = /iphone/i.test(r);
310
+ t.iphone = s, t.mobile = l, t.ie = o;
311
+ },
312
+ 7184: function(e, t) {
313
+ Object.defineProperty(t, "__esModule", {
314
+ value: !0
315
+ }), t.default = function(e) {
316
+ return e.replace(n, "\\$1");
317
+ };
318
+ var n = new RegExp("(\\" + [ "/", ".", "*", "+", "?", "|", "(", ")", "[", "]", "{", "}", "\\", "$", "^" ].join("|\\") + ")", "gim");
319
+ },
320
+ 6030: function(e, t, n) {
321
+ function i(e) {
322
+ return i = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(e) {
323
+ return typeof e;
324
+ } : function(e) {
325
+ return e && "function" == typeof Symbol && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
326
+ }, i(e);
327
+ }
328
+ Object.defineProperty(t, "__esModule", {
329
+ value: !0
330
+ }), t.EventHandlers = void 0;
331
+ var a, r = n(8711), o = n(2839), l = n(9845), s = n(7215), c = n(7760), u = n(4713), f = (a = n(9380)) && a.__esModule ? a : {
332
+ default: a
333
+ };
334
+ function p() {
335
+ /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */ p = function() {
336
+ return e;
337
+ };
338
+ var e = {}, t = Object.prototype, n = t.hasOwnProperty, a = Object.defineProperty || function(e, t, n) {
339
+ e[t] = n.value;
340
+ }, r = "function" == typeof Symbol ? Symbol : {}, o = r.iterator || "@@iterator", l = r.asyncIterator || "@@asyncIterator", s = r.toStringTag || "@@toStringTag";
341
+ function c(e, t, n) {
342
+ return Object.defineProperty(e, t, {
343
+ value: n,
344
+ enumerable: !0,
345
+ configurable: !0,
346
+ writable: !0
347
+ }), e[t];
348
+ }
349
+ try {
350
+ c({}, "");
351
+ } catch (e) {
352
+ c = function(e, t, n) {
353
+ return e[t] = n;
354
+ };
355
+ }
356
+ function u(e, t, n, i) {
357
+ var r = t && t.prototype instanceof h ? t : h, o = Object.create(r.prototype), l = new E(i || []);
358
+ return a(o, "_invoke", {
359
+ value: w(e, n, l)
360
+ }), o;
361
+ }
362
+ function f(e, t, n) {
363
+ try {
364
+ return {
365
+ type: "normal",
366
+ arg: e.call(t, n)
367
+ };
368
+ } catch (e) {
369
+ return {
370
+ type: "throw",
371
+ arg: e
372
+ };
373
+ }
374
+ }
375
+ e.wrap = u;
376
+ var d = {};
377
+ function h() {}
378
+ function v() {}
379
+ function m() {}
380
+ var g = {};
381
+ c(g, o, (function() {
382
+ return this;
383
+ }));
384
+ var y = Object.getPrototypeOf, k = y && y(y(M([])));
385
+ k && k !== t && n.call(k, o) && (g = k);
386
+ var b = m.prototype = h.prototype = Object.create(g);
387
+ function x(e) {
388
+ [ "next", "throw", "return" ].forEach((function(t) {
389
+ c(e, t, (function(e) {
390
+ return this._invoke(t, e);
391
+ }));
392
+ }));
393
+ }
394
+ function P(e, t) {
395
+ function r(a, o, l, s) {
396
+ var c = f(e[a], e, o);
397
+ if ("throw" !== c.type) {
398
+ var u = c.arg, p = u.value;
399
+ return p && "object" == i(p) && n.call(p, "__await") ? t.resolve(p.__await).then((function(e) {
400
+ r("next", e, l, s);
401
+ }), (function(e) {
402
+ r("throw", e, l, s);
403
+ })) : t.resolve(p).then((function(e) {
404
+ u.value = e, l(u);
405
+ }), (function(e) {
406
+ return r("throw", e, l, s);
407
+ }));
408
+ }
409
+ s(c.arg);
410
+ }
411
+ var o;
412
+ a(this, "_invoke", {
413
+ value: function(e, n) {
414
+ function i() {
415
+ return new t((function(t, i) {
416
+ r(e, n, t, i);
417
+ }));
418
+ }
419
+ return o = o ? o.then(i, i) : i();
420
+ }
421
+ });
422
+ }
423
+ function w(e, t, n) {
424
+ var i = "suspendedStart";
425
+ return function(a, r) {
426
+ if ("executing" === i) throw new Error("Generator is already running");
427
+ if ("completed" === i) {
428
+ if ("throw" === a) throw r;
429
+ return j();
430
+ }
431
+ for (n.method = a, n.arg = r; ;) {
432
+ var o = n.delegate;
433
+ if (o) {
434
+ var l = S(o, n);
435
+ if (l) {
436
+ if (l === d) continue;
437
+ return l;
438
+ }
439
+ }
440
+ if ("next" === n.method) n.sent = n._sent = n.arg; else if ("throw" === n.method) {
441
+ if ("suspendedStart" === i) throw i = "completed", n.arg;
442
+ n.dispatchException(n.arg);
443
+ } else "return" === n.method && n.abrupt("return", n.arg);
444
+ i = "executing";
445
+ var s = f(e, t, n);
446
+ if ("normal" === s.type) {
447
+ if (i = n.done ? "completed" : "suspendedYield", s.arg === d) continue;
448
+ return {
449
+ value: s.arg,
450
+ done: n.done
451
+ };
452
+ }
453
+ "throw" === s.type && (i = "completed", n.method = "throw", n.arg = s.arg);
454
+ }
455
+ };
456
+ }
457
+ function S(e, t) {
458
+ var n = t.method, i = e.iterator[n];
459
+ if (void 0 === i) return t.delegate = null, "throw" === n && e.iterator.return && (t.method = "return",
460
+ t.arg = void 0, S(e, t), "throw" === t.method) || "return" !== n && (t.method = "throw",
461
+ t.arg = new TypeError("The iterator does not provide a '" + n + "' method")), d;
462
+ var a = f(i, e.iterator, t.arg);
463
+ if ("throw" === a.type) return t.method = "throw", t.arg = a.arg, t.delegate = null,
464
+ d;
465
+ var r = a.arg;
466
+ return r ? r.done ? (t[e.resultName] = r.value, t.next = e.nextLoc, "return" !== t.method && (t.method = "next",
467
+ t.arg = void 0), t.delegate = null, d) : r : (t.method = "throw", t.arg = new TypeError("iterator result is not an object"),
468
+ t.delegate = null, d);
469
+ }
470
+ function O(e) {
471
+ var t = {
472
+ tryLoc: e[0]
473
+ };
474
+ 1 in e && (t.catchLoc = e[1]), 2 in e && (t.finallyLoc = e[2], t.afterLoc = e[3]),
475
+ this.tryEntries.push(t);
476
+ }
477
+ function _(e) {
478
+ var t = e.completion || {};
479
+ t.type = "normal", delete t.arg, e.completion = t;
480
+ }
481
+ function E(e) {
482
+ this.tryEntries = [ {
483
+ tryLoc: "root"
484
+ } ], e.forEach(O, this), this.reset(!0);
485
+ }
486
+ function M(e) {
487
+ if (e) {
488
+ var t = e[o];
489
+ if (t) return t.call(e);
490
+ if ("function" == typeof e.next) return e;
491
+ if (!isNaN(e.length)) {
492
+ var i = -1, a = function t() {
493
+ for (;++i < e.length; ) if (n.call(e, i)) return t.value = e[i], t.done = !1, t;
494
+ return t.value = void 0, t.done = !0, t;
495
+ };
496
+ return a.next = a;
497
+ }
498
+ }
499
+ return {
500
+ next: j
501
+ };
502
+ }
503
+ function j() {
504
+ return {
505
+ value: void 0,
506
+ done: !0
507
+ };
508
+ }
509
+ return v.prototype = m, a(b, "constructor", {
510
+ value: m,
511
+ configurable: !0
512
+ }), a(m, "constructor", {
513
+ value: v,
514
+ configurable: !0
515
+ }), v.displayName = c(m, s, "GeneratorFunction"), e.isGeneratorFunction = function(e) {
516
+ var t = "function" == typeof e && e.constructor;
517
+ return !!t && (t === v || "GeneratorFunction" === (t.displayName || t.name));
518
+ }, e.mark = function(e) {
519
+ return Object.setPrototypeOf ? Object.setPrototypeOf(e, m) : (e.__proto__ = m, c(e, s, "GeneratorFunction")),
520
+ e.prototype = Object.create(b), e;
521
+ }, e.awrap = function(e) {
522
+ return {
523
+ __await: e
524
+ };
525
+ }, x(P.prototype), c(P.prototype, l, (function() {
526
+ return this;
527
+ })), e.AsyncIterator = P, e.async = function(t, n, i, a, r) {
528
+ void 0 === r && (r = Promise);
529
+ var o = new P(u(t, n, i, a), r);
530
+ return e.isGeneratorFunction(n) ? o : o.next().then((function(e) {
531
+ return e.done ? e.value : o.next();
532
+ }));
533
+ }, x(b), c(b, s, "Generator"), c(b, o, (function() {
534
+ return this;
535
+ })), c(b, "toString", (function() {
536
+ return "[object Generator]";
537
+ })), e.keys = function(e) {
538
+ var t = Object(e), n = [];
539
+ for (var i in t) n.push(i);
540
+ return n.reverse(), function e() {
541
+ for (;n.length; ) {
542
+ var i = n.pop();
543
+ if (i in t) return e.value = i, e.done = !1, e;
544
+ }
545
+ return e.done = !0, e;
546
+ };
547
+ }, e.values = M, E.prototype = {
548
+ constructor: E,
549
+ reset: function(e) {
550
+ if (this.prev = 0, this.next = 0, this.sent = this._sent = void 0, this.done = !1,
551
+ this.delegate = null, this.method = "next", this.arg = void 0, this.tryEntries.forEach(_),
552
+ !e) for (var t in this) "t" === t.charAt(0) && n.call(this, t) && !isNaN(+t.slice(1)) && (this[t] = void 0);
553
+ },
554
+ stop: function() {
555
+ this.done = !0;
556
+ var e = this.tryEntries[0].completion;
557
+ if ("throw" === e.type) throw e.arg;
558
+ return this.rval;
559
+ },
560
+ dispatchException: function(e) {
561
+ if (this.done) throw e;
562
+ var t = this;
563
+ function i(n, i) {
564
+ return o.type = "throw", o.arg = e, t.next = n, i && (t.method = "next", t.arg = void 0),
565
+ !!i;
566
+ }
567
+ for (var a = this.tryEntries.length - 1; a >= 0; --a) {
568
+ var r = this.tryEntries[a], o = r.completion;
569
+ if ("root" === r.tryLoc) return i("end");
570
+ if (r.tryLoc <= this.prev) {
571
+ var l = n.call(r, "catchLoc"), s = n.call(r, "finallyLoc");
572
+ if (l && s) {
573
+ if (this.prev < r.catchLoc) return i(r.catchLoc, !0);
574
+ if (this.prev < r.finallyLoc) return i(r.finallyLoc);
575
+ } else if (l) {
576
+ if (this.prev < r.catchLoc) return i(r.catchLoc, !0);
577
+ } else {
578
+ if (!s) throw new Error("try statement without catch or finally");
579
+ if (this.prev < r.finallyLoc) return i(r.finallyLoc);
580
+ }
581
+ }
582
+ }
583
+ },
584
+ abrupt: function(e, t) {
585
+ for (var i = this.tryEntries.length - 1; i >= 0; --i) {
586
+ var a = this.tryEntries[i];
587
+ if (a.tryLoc <= this.prev && n.call(a, "finallyLoc") && this.prev < a.finallyLoc) {
588
+ var r = a;
589
+ break;
590
+ }
591
+ }
592
+ r && ("break" === e || "continue" === e) && r.tryLoc <= t && t <= r.finallyLoc && (r = null);
593
+ var o = r ? r.completion : {};
594
+ return o.type = e, o.arg = t, r ? (this.method = "next", this.next = r.finallyLoc,
595
+ d) : this.complete(o);
596
+ },
597
+ complete: function(e, t) {
598
+ if ("throw" === e.type) throw e.arg;
599
+ return "break" === e.type || "continue" === e.type ? this.next = e.arg : "return" === e.type ? (this.rval = this.arg = e.arg,
600
+ this.method = "return", this.next = "end") : "normal" === e.type && t && (this.next = t),
601
+ d;
602
+ },
603
+ finish: function(e) {
604
+ for (var t = this.tryEntries.length - 1; t >= 0; --t) {
605
+ var n = this.tryEntries[t];
606
+ if (n.finallyLoc === e) return this.complete(n.completion, n.afterLoc), _(n), d;
607
+ }
608
+ },
609
+ catch: function(e) {
610
+ for (var t = this.tryEntries.length - 1; t >= 0; --t) {
611
+ var n = this.tryEntries[t];
612
+ if (n.tryLoc === e) {
613
+ var i = n.completion;
614
+ if ("throw" === i.type) {
615
+ var a = i.arg;
616
+ _(n);
617
+ }
618
+ return a;
619
+ }
620
+ }
621
+ throw new Error("illegal catch attempt");
622
+ },
623
+ delegateYield: function(e, t, n) {
624
+ return this.delegate = {
625
+ iterator: M(e),
626
+ resultName: t,
627
+ nextLoc: n
628
+ }, "next" === this.method && (this.arg = void 0), d;
629
+ }
630
+ }, e;
631
+ }
632
+ function d(e, t) {
633
+ var n = "undefined" != typeof Symbol && e[Symbol.iterator] || e["@@iterator"];
634
+ if (!n) {
635
+ if (Array.isArray(e) || (n = function(e, t) {
636
+ if (!e) return;
637
+ if ("string" == typeof e) return h(e, t);
638
+ var n = Object.prototype.toString.call(e).slice(8, -1);
639
+ "Object" === n && e.constructor && (n = e.constructor.name);
640
+ if ("Map" === n || "Set" === n) return Array.from(e);
641
+ if ("Arguments" === n || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return h(e, t);
642
+ }(e)) || t && e && "number" == typeof e.length) {
643
+ n && (e = n);
644
+ var i = 0, a = function() {};
645
+ return {
646
+ s: a,
647
+ n: function() {
648
+ return i >= e.length ? {
649
+ done: !0
650
+ } : {
651
+ done: !1,
652
+ value: e[i++]
653
+ };
654
+ },
655
+ e: function(e) {
656
+ throw e;
657
+ },
658
+ f: a
659
+ };
660
+ }
661
+ throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
662
+ }
663
+ var r, o = !0, l = !1;
664
+ return {
665
+ s: function() {
666
+ n = n.call(e);
667
+ },
668
+ n: function() {
669
+ var e = n.next();
670
+ return o = e.done, e;
671
+ },
672
+ e: function(e) {
673
+ l = !0, r = e;
674
+ },
675
+ f: function() {
676
+ try {
677
+ o || null == n.return || n.return();
678
+ } finally {
679
+ if (l) throw r;
680
+ }
681
+ }
682
+ };
683
+ }
684
+ function h(e, t) {
685
+ (null == t || t > e.length) && (t = e.length);
686
+ for (var n = 0, i = new Array(t); n < t; n++) i[n] = e[n];
687
+ return i;
688
+ }
689
+ function v(e, t, n, i, a, r, o) {
690
+ try {
691
+ var l = e[r](o), s = l.value;
692
+ } catch (e) {
693
+ return void n(e);
694
+ }
695
+ l.done ? t(s) : Promise.resolve(s).then(i, a);
696
+ }
697
+ var m, g, y = {
698
+ keyEvent: function(e, t, n, i, a) {
699
+ var f = this.inputmask, p = f.opts, d = f.dependencyLib, h = f.maskset, v = this, m = d(v), g = e.key, k = r.caret.call(f, v), b = p.onKeyDown.call(this, e, r.getBuffer.call(f), k, p);
700
+ if (void 0 !== b) return b;
701
+ if (g === o.keys.Backspace || g === o.keys.Delete || l.iphone && g === o.keys.BACKSPACE_SAFARI || e.ctrlKey && g === o.keys.x && !("oncut" in v)) e.preventDefault(),
702
+ s.handleRemove.call(f, v, g, k), (0, c.writeBuffer)(v, r.getBuffer.call(f, !0), h.p, e, v.inputmask._valueGet() !== r.getBuffer.call(f).join("")); else if (g === o.keys.End || g === o.keys.PageDown) {
703
+ e.preventDefault();
704
+ var x = r.seekNext.call(f, r.getLastValidPosition.call(f));
705
+ r.caret.call(f, v, e.shiftKey ? k.begin : x, x, !0);
706
+ } else g === o.keys.Home && !e.shiftKey || g === o.keys.PageUp ? (e.preventDefault(),
707
+ r.caret.call(f, v, 0, e.shiftKey ? k.begin : 0, !0)) : p.undoOnEscape && g === o.keys.Escape && !0 !== e.altKey ? ((0, c.checkVal)(v, !0, !1, f.undoValue.split("")), m.trigger("click")) : g !== o.keys.Insert || e.shiftKey || e.ctrlKey || void 0 !== f.userOptions.insertMode ? !0 === p.tabThrough && g === o.keys.Tab ? !0 === e.shiftKey ? (k.end = r.seekPrevious.call(f, k.end, !0),
708
+ !0 === u.getTest.call(f, k.end - 1).match.static && k.end--, k.begin = r.seekPrevious.call(f, k.end, !0),
709
+ k.begin >= 0 && k.end > 0 && (e.preventDefault(), r.caret.call(f, v, k.begin, k.end))) : (k.begin = r.seekNext.call(f, k.begin, !0),
710
+ k.end = r.seekNext.call(f, k.begin, !0), k.end < h.maskLength && k.end--, k.begin <= h.maskLength && (e.preventDefault(),
711
+ r.caret.call(f, v, k.begin, k.end))) : e.shiftKey || p.insertModeVisual && !1 === p.insertMode && (g === o.keys.ArrowRight ? setTimeout((function() {
712
+ var e = r.caret.call(f, v);
713
+ r.caret.call(f, v, e.begin);
714
+ }), 0) : g === o.keys.ArrowLeft && setTimeout((function() {
715
+ var e = r.translatePosition.call(f, v.inputmask.caretPos.begin);
716
+ r.translatePosition.call(f, v.inputmask.caretPos.end);
717
+ f.isRTL ? r.caret.call(f, v, e + (e === h.maskLength ? 0 : 1)) : r.caret.call(f, v, e - (0 === e ? 0 : 1));
718
+ }), 0)) : s.isSelection.call(f, k) ? p.insertMode = !p.insertMode : (p.insertMode = !p.insertMode,
719
+ r.caret.call(f, v, k.begin, k.begin));
720
+ return f.isComposing = g == o.keys.Process || g == o.keys.Unidentified, f.ignorable = p.ignorables.includes(g),
721
+ y.keypressEvent.call(this, e, t, n, i, a);
722
+ },
723
+ keypressEvent: function(e, t, n, i, a) {
724
+ var l = this.inputmask || this, u = l.opts, f = l.dependencyLib, p = l.maskset, d = l.el, h = f(d), v = e.key;
725
+ if (!0 === t || e.ctrlKey && e.altKey || !(e.ctrlKey || e.metaKey || l.ignorable)) {
726
+ if (v) {
727
+ var m, g = t ? {
728
+ begin: a,
729
+ end: a
730
+ } : r.caret.call(l, d);
731
+ v = u.substitutes[v] || v, p.writeOutBuffer = !0;
732
+ var y = s.isValid.call(l, g, v, i, void 0, void 0, void 0, t);
733
+ if (!1 !== y && (r.resetMaskSet.call(l, !0), m = void 0 !== y.caret ? y.caret : r.seekNext.call(l, y.pos.begin ? y.pos.begin : y.pos),
734
+ p.p = m), m = u.numericInput && void 0 === y.caret ? r.seekPrevious.call(l, m) : m,
735
+ !1 !== n && (setTimeout((function() {
736
+ u.onKeyValidation.call(d, v, y);
737
+ }), 0), p.writeOutBuffer && !1 !== y)) {
738
+ var k = r.getBuffer.call(l);
739
+ (0, c.writeBuffer)(d, k, m, e, !0 !== t);
740
+ }
741
+ if (e.preventDefault(), t) return !1 !== y && (y.forwardPosition = m), y;
742
+ }
743
+ } else v === o.keys.Enter && l.undoValue !== l._valueGet(!0) && (l.undoValue = l._valueGet(!0),
744
+ setTimeout((function() {
745
+ h.trigger("change");
746
+ }), 0));
747
+ },
748
+ pasteEvent: (m = p().mark((function e(t) {
749
+ var n, i, a, o, l, s;
750
+ return p().wrap((function(e) {
751
+ for (;;) switch (e.prev = e.next) {
752
+ case 0:
753
+ n = function(e, n, i, a, l) {
754
+ var s = r.caret.call(e, n, void 0, void 0, !0), u = i.substr(0, s.begin), f = i.substr(s.end, i.length);
755
+ if (u == (e.isRTL ? r.getBufferTemplate.call(e).slice().reverse() : r.getBufferTemplate.call(e)).slice(0, s.begin).join("") && (u = ""),
756
+ f == (e.isRTL ? r.getBufferTemplate.call(e).slice().reverse() : r.getBufferTemplate.call(e)).slice(s.end).join("") && (f = ""),
757
+ a = u + a + f, e.isRTL && !0 !== o.numericInput) {
758
+ a = a.split("");
759
+ var p, h = d(r.getBufferTemplate.call(e));
760
+ try {
761
+ for (h.s(); !(p = h.n()).done; ) {
762
+ var v = p.value;
763
+ a[0] === v && a.shift();
764
+ }
765
+ } catch (e) {
766
+ h.e(e);
767
+ } finally {
768
+ h.f();
769
+ }
770
+ a = a.reverse().join("");
771
+ }
772
+ var m = a;
773
+ if ("function" == typeof l) {
774
+ if (!1 === (m = l.call(e, m, o))) return !1;
775
+ m || (m = i);
776
+ }
777
+ (0, c.checkVal)(n, !0, !1, m.toString().split(""), t);
778
+ }, i = this, a = this.inputmask, o = a.opts, l = a._valueGet(!0), a.skipInputEvent = !0,
779
+ t.clipboardData && t.clipboardData.getData ? s = t.clipboardData.getData("text/plain") : f.default.clipboardData && f.default.clipboardData.getData && (s = f.default.clipboardData.getData("Text")),
780
+ n(a, i, l, s, o.onBeforePaste), t.preventDefault();
781
+
782
+ case 7:
783
+ case "end":
784
+ return e.stop();
785
+ }
786
+ }), e, this);
787
+ })), g = function() {
788
+ var e = this, t = arguments;
789
+ return new Promise((function(n, i) {
790
+ var a = m.apply(e, t);
791
+ function r(e) {
792
+ v(a, n, i, r, o, "next", e);
793
+ }
794
+ function o(e) {
795
+ v(a, n, i, r, o, "throw", e);
796
+ }
797
+ r(void 0);
798
+ }));
799
+ }, function(e) {
800
+ return g.apply(this, arguments);
801
+ }),
802
+ inputFallBackEvent: function(e) {
803
+ var t = this.inputmask, n = t.opts, i = t.dependencyLib;
804
+ var a, s = this, f = s.inputmask._valueGet(!0), p = (t.isRTL ? r.getBuffer.call(t).slice().reverse() : r.getBuffer.call(t)).join(""), d = r.caret.call(t, s, void 0, void 0, !0);
805
+ if (p !== f) {
806
+ if (a = function(e, i, a) {
807
+ for (var o, l, s, c = e.substr(0, a.begin).split(""), f = e.substr(a.begin).split(""), p = i.substr(0, a.begin).split(""), d = i.substr(a.begin).split(""), h = c.length >= p.length ? c.length : p.length, v = f.length >= d.length ? f.length : d.length, m = "", g = [], y = "~"; c.length < h; ) c.push(y);
808
+ for (;p.length < h; ) p.push(y);
809
+ for (;f.length < v; ) f.unshift(y);
810
+ for (;d.length < v; ) d.unshift(y);
811
+ var k = c.concat(f), b = p.concat(d);
812
+ for (l = 0, o = k.length; l < o; l++) switch (s = u.getPlaceholder.call(t, r.translatePosition.call(t, l)),
813
+ m) {
814
+ case "insertText":
815
+ b[l - 1] === k[l] && a.begin == k.length - 1 && g.push(k[l]), l = o;
816
+ break;
817
+
818
+ case "insertReplacementText":
819
+ case "deleteContentBackward":
820
+ k[l] === y ? a.end++ : l = o;
821
+ break;
822
+
823
+ default:
824
+ k[l] !== b[l] && (k[l + 1] !== y && k[l + 1] !== s && void 0 !== k[l + 1] || (b[l] !== s || b[l + 1] !== y) && b[l] !== y ? b[l + 1] === y && b[l] === k[l + 1] ? (m = "insertText",
825
+ g.push(k[l]), a.begin--, a.end--) : k[l] !== s && k[l] !== y && (k[l + 1] === y || b[l] !== k[l] && b[l + 1] === k[l + 1]) ? (m = "insertReplacementText",
826
+ g.push(k[l]), a.begin--) : k[l] === y ? (m = "deleteContentBackward", (r.isMask.call(t, r.translatePosition.call(t, l), !0) || b[l] === n.radixPoint) && a.end++) : l = o : (m = "insertText",
827
+ g.push(k[l]), a.begin--, a.end--));
828
+ }
829
+ return {
830
+ action: m,
831
+ data: g,
832
+ caret: a
833
+ };
834
+ }(f, p, d), (s.inputmask.shadowRoot || s.ownerDocument).activeElement !== s && s.focus(),
835
+ (0, c.writeBuffer)(s, r.getBuffer.call(t)), r.caret.call(t, s, d.begin, d.end, !0),
836
+ !l.mobile && t.skipNextInsert && "insertText" === e.inputType && "insertText" === a.action && t.isComposing) return !1;
837
+ switch ("insertCompositionText" === e.inputType && "insertText" === a.action && t.isComposing ? t.skipNextInsert = !0 : t.skipNextInsert = !1,
838
+ a.action) {
839
+ case "insertText":
840
+ case "insertReplacementText":
841
+ a.data.forEach((function(e, n) {
842
+ var a = new i.Event("keypress");
843
+ a.key = e, t.ignorable = !1, y.keypressEvent.call(s, a);
844
+ })), setTimeout((function() {
845
+ t.$el.trigger("keyup");
846
+ }), 0);
847
+ break;
848
+
849
+ case "deleteContentBackward":
850
+ var h = new i.Event("keydown");
851
+ h.key = o.keys.Backspace, y.keyEvent.call(s, h);
852
+ break;
853
+
854
+ default:
855
+ (0, c.applyInputValue)(s, f), r.caret.call(t, s, d.begin, d.end, !0);
856
+ }
857
+ e.preventDefault();
858
+ }
859
+ },
860
+ setValueEvent: function(e) {
861
+ var t = this.inputmask, n = this, i = e && e.detail ? e.detail[0] : arguments[1];
862
+ void 0 === i && (i = n.inputmask._valueGet(!0)), (0, c.applyInputValue)(n, i), (e.detail && void 0 !== e.detail[1] || void 0 !== arguments[2]) && r.caret.call(t, n, e.detail ? e.detail[1] : arguments[2]);
863
+ },
864
+ focusEvent: function(e) {
865
+ var t = this.inputmask, n = t.opts, i = t && t._valueGet();
866
+ n.showMaskOnFocus && i !== r.getBuffer.call(t).join("") && (0, c.writeBuffer)(this, r.getBuffer.call(t), r.seekNext.call(t, r.getLastValidPosition.call(t))),
867
+ !0 !== n.positionCaretOnTab || !1 !== t.mouseEnter || s.isComplete.call(t, r.getBuffer.call(t)) && -1 !== r.getLastValidPosition.call(t) || y.clickEvent.apply(this, [ e, !0 ]),
868
+ t.undoValue = t && t._valueGet(!0);
869
+ },
870
+ invalidEvent: function(e) {
871
+ this.inputmask.validationEvent = !0;
872
+ },
873
+ mouseleaveEvent: function() {
874
+ var e = this.inputmask, t = e.opts, n = this;
875
+ e.mouseEnter = !1, t.clearMaskOnLostFocus && (n.inputmask.shadowRoot || n.ownerDocument).activeElement !== n && (0, c.HandleNativePlaceholder)(n, e.originalPlaceholder);
876
+ },
877
+ clickEvent: function(e, t) {
878
+ var n = this.inputmask;
879
+ n.clicked++;
880
+ var i = this;
881
+ if ((i.inputmask.shadowRoot || i.ownerDocument).activeElement === i) {
882
+ var a = r.determineNewCaretPosition.call(n, r.caret.call(n, i), t);
883
+ void 0 !== a && r.caret.call(n, i, a);
884
+ }
885
+ },
886
+ cutEvent: function(e) {
887
+ var t = this.inputmask, n = t.maskset, i = this, a = r.caret.call(t, i), l = t.isRTL ? r.getBuffer.call(t).slice(a.end, a.begin) : r.getBuffer.call(t).slice(a.begin, a.end), u = t.isRTL ? l.reverse().join("") : l.join("");
888
+ f.default.navigator && f.default.navigator.clipboard ? f.default.navigator.clipboard.writeText(u) : f.default.clipboardData && f.default.clipboardData.getData && f.default.clipboardData.setData("Text", u),
889
+ s.handleRemove.call(t, i, o.keys.Delete, a), (0, c.writeBuffer)(i, r.getBuffer.call(t), n.p, e, t.undoValue !== t._valueGet(!0));
890
+ },
891
+ blurEvent: function(e) {
892
+ var t = this.inputmask, n = t.opts, i = t.dependencyLib;
893
+ t.clicked = 0;
894
+ var a = i(this), o = this;
895
+ if (o.inputmask) {
896
+ (0, c.HandleNativePlaceholder)(o, t.originalPlaceholder);
897
+ var l = o.inputmask._valueGet(), u = r.getBuffer.call(t).slice();
898
+ "" !== l && (n.clearMaskOnLostFocus && (-1 === r.getLastValidPosition.call(t) && l === r.getBufferTemplate.call(t).join("") ? u = [] : c.clearOptionalTail.call(t, u)),
899
+ !1 === s.isComplete.call(t, u) && (setTimeout((function() {
900
+ a.trigger("incomplete");
901
+ }), 0), n.clearIncomplete && (r.resetMaskSet.call(t, !1), u = n.clearMaskOnLostFocus ? [] : r.getBufferTemplate.call(t).slice())),
902
+ (0, c.writeBuffer)(o, u, void 0, e)), l = t._valueGet(!0), t.undoValue !== l && ("" != l || t.undoValue != r.getBufferTemplate.call(t).join("") || t.undoValue == r.getBufferTemplate.call(t).join("") && t.maskset.validPositions.length > 0) && (t.undoValue = l,
903
+ a.trigger("change"));
904
+ }
905
+ },
906
+ mouseenterEvent: function() {
907
+ var e = this.inputmask, t = e.opts.showMaskOnHover, n = this;
908
+ if (e.mouseEnter = !0, (n.inputmask.shadowRoot || n.ownerDocument).activeElement !== n) {
909
+ var i = (e.isRTL ? r.getBufferTemplate.call(e).slice().reverse() : r.getBufferTemplate.call(e)).join("");
910
+ t && (0, c.HandleNativePlaceholder)(n, i);
911
+ }
912
+ },
913
+ submitEvent: function() {
914
+ var e = this.inputmask, t = e.opts;
915
+ e.undoValue !== e._valueGet(!0) && e.$el.trigger("change"), -1 === r.getLastValidPosition.call(e) && e._valueGet && e._valueGet() === r.getBufferTemplate.call(e).join("") && e._valueSet(""),
916
+ t.clearIncomplete && !1 === s.isComplete.call(e, r.getBuffer.call(e)) && e._valueSet(""),
917
+ t.removeMaskOnSubmit && (e._valueSet(e.unmaskedvalue(), !0), setTimeout((function() {
918
+ (0, c.writeBuffer)(e.el, r.getBuffer.call(e));
919
+ }), 0));
920
+ },
921
+ resetEvent: function() {
922
+ var e = this.inputmask;
923
+ e.refreshValue = !0, setTimeout((function() {
924
+ (0, c.applyInputValue)(e.el, e._valueGet(!0));
925
+ }), 0);
926
+ }
927
+ };
928
+ t.EventHandlers = y;
929
+ },
930
+ 9716: function(e, t, n) {
931
+ Object.defineProperty(t, "__esModule", {
932
+ value: !0
933
+ }), t.EventRuler = void 0;
934
+ var i, a = (i = n(2394)) && i.__esModule ? i : {
935
+ default: i
936
+ }, r = n(2839), o = n(8711), l = n(7760);
937
+ var s = {
938
+ on: function(e, t, n) {
939
+ var i = e.inputmask.dependencyLib, s = function(t) {
940
+ t.originalEvent && (t = t.originalEvent || t, arguments[0] = t);
941
+ var s, c = this, u = c.inputmask, f = u ? u.opts : void 0;
942
+ if (void 0 === u && "FORM" !== this.nodeName) {
943
+ var p = i.data(c, "_inputmask_opts");
944
+ i(c).off(), p && new a.default(p).mask(c);
945
+ } else {
946
+ if ([ "submit", "reset", "setvalue" ].includes(t.type) || "FORM" === this.nodeName || !(c.disabled || c.readOnly && !("keydown" === t.type && t.ctrlKey && t.key === r.keys.c || !1 === f.tabThrough && t.key === r.keys.Tab))) {
947
+ switch (t.type) {
948
+ case "input":
949
+ if (!0 === u.skipInputEvent) return u.skipInputEvent = !1, t.preventDefault();
950
+ break;
951
+
952
+ case "click":
953
+ case "focus":
954
+ return u.validationEvent ? (u.validationEvent = !1, e.blur(), (0, l.HandleNativePlaceholder)(e, (u.isRTL ? o.getBufferTemplate.call(u).slice().reverse() : o.getBufferTemplate.call(u)).join("")),
955
+ setTimeout((function() {
956
+ e.focus();
957
+ }), f.validationEventTimeOut), !1) : (s = arguments, void setTimeout((function() {
958
+ e.inputmask && n.apply(c, s);
959
+ }), 0));
960
+ }
961
+ var d = n.apply(c, arguments);
962
+ return !1 === d && (t.preventDefault(), t.stopPropagation()), d;
963
+ }
964
+ t.preventDefault();
965
+ }
966
+ };
967
+ [ "submit", "reset" ].includes(t) ? (s = s.bind(e), null !== e.form && i(e.form).on(t, s)) : i(e).on(t, s),
968
+ e.inputmask.events[t] = e.inputmask.events[t] || [], e.inputmask.events[t].push(s);
969
+ },
970
+ off: function(e, t) {
971
+ if (e.inputmask && e.inputmask.events) {
972
+ var n = e.inputmask.dependencyLib, i = e.inputmask.events;
973
+ for (var a in t && ((i = [])[t] = e.inputmask.events[t]), i) {
974
+ for (var r = i[a]; r.length > 0; ) {
975
+ var o = r.pop();
976
+ [ "submit", "reset" ].includes(a) ? null !== e.form && n(e.form).off(a, o) : n(e).off(a, o);
977
+ }
978
+ delete e.inputmask.events[a];
979
+ }
980
+ }
981
+ }
982
+ };
983
+ t.EventRuler = s;
984
+ },
985
+ 219: function(e, t, n) {
986
+ var i = p(n(2394)), a = n(2839), r = p(n(7184)), o = n(8711), l = n(4713);
987
+ function s(e, t) {
988
+ return function(e) {
989
+ if (Array.isArray(e)) return e;
990
+ }(e) || function(e, t) {
991
+ var n = null == e ? null : "undefined" != typeof Symbol && e[Symbol.iterator] || e["@@iterator"];
992
+ if (null != n) {
993
+ var i, a, r, o, l = [], s = !0, c = !1;
994
+ try {
995
+ if (r = (n = n.call(e)).next, 0 === t) {
996
+ if (Object(n) !== n) return;
997
+ s = !1;
998
+ } else for (;!(s = (i = r.call(n)).done) && (l.push(i.value), l.length !== t); s = !0) ;
999
+ } catch (e) {
1000
+ c = !0, a = e;
1001
+ } finally {
1002
+ try {
1003
+ if (!s && null != n.return && (o = n.return(), Object(o) !== o)) return;
1004
+ } finally {
1005
+ if (c) throw a;
1006
+ }
1007
+ }
1008
+ return l;
1009
+ }
1010
+ }(e, t) || function(e, t) {
1011
+ if (!e) return;
1012
+ if ("string" == typeof e) return c(e, t);
1013
+ var n = Object.prototype.toString.call(e).slice(8, -1);
1014
+ "Object" === n && e.constructor && (n = e.constructor.name);
1015
+ if ("Map" === n || "Set" === n) return Array.from(e);
1016
+ if ("Arguments" === n || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return c(e, t);
1017
+ }(e, t) || function() {
1018
+ throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
1019
+ }();
1020
+ }
1021
+ function c(e, t) {
1022
+ (null == t || t > e.length) && (t = e.length);
1023
+ for (var n = 0, i = new Array(t); n < t; n++) i[n] = e[n];
1024
+ return i;
1025
+ }
1026
+ function u(e) {
1027
+ return u = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(e) {
1028
+ return typeof e;
1029
+ } : function(e) {
1030
+ return e && "function" == typeof Symbol && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
1031
+ }, u(e);
1032
+ }
1033
+ function f(e, t) {
1034
+ for (var n = 0; n < t.length; n++) {
1035
+ var i = t[n];
1036
+ i.enumerable = i.enumerable || !1, i.configurable = !0, "value" in i && (i.writable = !0),
1037
+ Object.defineProperty(e, (a = i.key, r = void 0, r = function(e, t) {
1038
+ if ("object" !== u(e) || null === e) return e;
1039
+ var n = e[Symbol.toPrimitive];
1040
+ if (void 0 !== n) {
1041
+ var i = n.call(e, t || "default");
1042
+ if ("object" !== u(i)) return i;
1043
+ throw new TypeError("@@toPrimitive must return a primitive value.");
1044
+ }
1045
+ return ("string" === t ? String : Number)(e);
1046
+ }(a, "string"), "symbol" === u(r) ? r : String(r)), i);
1047
+ }
1048
+ var a, r;
1049
+ }
1050
+ function p(e) {
1051
+ return e && e.__esModule ? e : {
1052
+ default: e
1053
+ };
1054
+ }
1055
+ var d = i.default.dependencyLib, h = function() {
1056
+ function e(t, n, i) {
1057
+ !function(e, t) {
1058
+ if (!(e instanceof t)) throw new TypeError("Cannot call a class as a function");
1059
+ }(this, e), this.mask = t, this.format = n, this.opts = i, this._date = new Date(1, 0, 1),
1060
+ this.initDateObject(t, this.opts);
1061
+ }
1062
+ var t, n;
1063
+ return t = e, (n = [ {
1064
+ key: "date",
1065
+ get: function() {
1066
+ return void 0 === this._date && (this._date = new Date(1, 0, 1), this.initDateObject(void 0, this.opts)),
1067
+ this._date;
1068
+ }
1069
+ }, {
1070
+ key: "initDateObject",
1071
+ value: function(e, t) {
1072
+ var n;
1073
+ for (P(t).lastIndex = 0; n = P(t).exec(this.format); ) {
1074
+ var i = new RegExp("\\d+$").exec(n[0]), a = i ? n[0][0] + "x" : n[0], r = void 0;
1075
+ if (void 0 !== e) {
1076
+ if (i) {
1077
+ var o = P(t).lastIndex, l = M(n.index, t);
1078
+ P(t).lastIndex = o, r = e.slice(0, e.indexOf(l.nextMatch[0]));
1079
+ } else r = e.slice(0, g[a] && g[a][4] || a.length);
1080
+ e = e.slice(r.length);
1081
+ }
1082
+ Object.prototype.hasOwnProperty.call(g, a) && this.setValue(this, r, a, g[a][2], g[a][1]);
1083
+ }
1084
+ }
1085
+ }, {
1086
+ key: "setValue",
1087
+ value: function(e, t, n, i, a) {
1088
+ if (void 0 !== t && (e[i] = "ampm" === i ? t : t.replace(/[^0-9]/g, "0"), e["raw" + i] = t.replace(/\s/g, "_")),
1089
+ void 0 !== a) {
1090
+ var r = e[i];
1091
+ ("day" === i && 29 === parseInt(r) || "month" === i && 2 === parseInt(r)) && (29 !== parseInt(e.day) || 2 !== parseInt(e.month) || "" !== e.year && void 0 !== e.year || e._date.setFullYear(2012, 1, 29)),
1092
+ "day" === i && (m = !0, 0 === parseInt(r) && (r = 1)), "month" === i && (m = !0),
1093
+ "year" === i && (m = !0, r.length < 4 && (r = O(r, 4, !0))), "" === r || isNaN(r) || a.call(e._date, r),
1094
+ "ampm" === i && a.call(e._date, r);
1095
+ }
1096
+ }
1097
+ }, {
1098
+ key: "reset",
1099
+ value: function() {
1100
+ this._date = new Date(1, 0, 1);
1101
+ }
1102
+ }, {
1103
+ key: "reInit",
1104
+ value: function() {
1105
+ this._date = void 0, this.date;
1106
+ }
1107
+ } ]) && f(t.prototype, n), Object.defineProperty(t, "prototype", {
1108
+ writable: !1
1109
+ }), e;
1110
+ }(), v = (new Date).getFullYear(), m = !1, g = {
1111
+ d: [ "[1-9]|[12][0-9]|3[01]", Date.prototype.setDate, "day", Date.prototype.getDate ],
1112
+ dd: [ "0[1-9]|[12][0-9]|3[01]", Date.prototype.setDate, "day", function() {
1113
+ return O(Date.prototype.getDate.call(this), 2);
1114
+ } ],
1115
+ ddd: [ "" ],
1116
+ dddd: [ "" ],
1117
+ m: [ "[1-9]|1[012]", function(e) {
1118
+ var t = e ? parseInt(e) : 0;
1119
+ return t > 0 && t--, Date.prototype.setMonth.call(this, t);
1120
+ }, "month", function() {
1121
+ return Date.prototype.getMonth.call(this) + 1;
1122
+ } ],
1123
+ mm: [ "0[1-9]|1[012]", function(e) {
1124
+ var t = e ? parseInt(e) : 0;
1125
+ return t > 0 && t--, Date.prototype.setMonth.call(this, t);
1126
+ }, "month", function() {
1127
+ return O(Date.prototype.getMonth.call(this) + 1, 2);
1128
+ } ],
1129
+ mmm: [ "" ],
1130
+ mmmm: [ "" ],
1131
+ yy: [ "[0-9]{2}", Date.prototype.setFullYear, "year", function() {
1132
+ return O(Date.prototype.getFullYear.call(this), 2);
1133
+ } ],
1134
+ yyyy: [ "[0-9]{4}", Date.prototype.setFullYear, "year", function() {
1135
+ return O(Date.prototype.getFullYear.call(this), 4);
1136
+ } ],
1137
+ h: [ "[1-9]|1[0-2]", Date.prototype.setHours, "hours", Date.prototype.getHours ],
1138
+ hh: [ "0[1-9]|1[0-2]", Date.prototype.setHours, "hours", function() {
1139
+ return O(Date.prototype.getHours.call(this), 2);
1140
+ } ],
1141
+ hx: [ function(e) {
1142
+ return "[0-9]{".concat(e, "}");
1143
+ }, Date.prototype.setHours, "hours", function(e) {
1144
+ return Date.prototype.getHours;
1145
+ } ],
1146
+ H: [ "1?[0-9]|2[0-3]", Date.prototype.setHours, "hours", Date.prototype.getHours ],
1147
+ HH: [ "0[0-9]|1[0-9]|2[0-3]", Date.prototype.setHours, "hours", function() {
1148
+ return O(Date.prototype.getHours.call(this), 2);
1149
+ } ],
1150
+ Hx: [ function(e) {
1151
+ return "[0-9]{".concat(e, "}");
1152
+ }, Date.prototype.setHours, "hours", function(e) {
1153
+ return function() {
1154
+ return O(Date.prototype.getHours.call(this), e);
1155
+ };
1156
+ } ],
1157
+ M: [ "[1-5]?[0-9]", Date.prototype.setMinutes, "minutes", Date.prototype.getMinutes ],
1158
+ MM: [ "0[0-9]|1[0-9]|2[0-9]|3[0-9]|4[0-9]|5[0-9]", Date.prototype.setMinutes, "minutes", function() {
1159
+ return O(Date.prototype.getMinutes.call(this), 2);
1160
+ } ],
1161
+ s: [ "[1-5]?[0-9]", Date.prototype.setSeconds, "seconds", Date.prototype.getSeconds ],
1162
+ ss: [ "0[0-9]|1[0-9]|2[0-9]|3[0-9]|4[0-9]|5[0-9]", Date.prototype.setSeconds, "seconds", function() {
1163
+ return O(Date.prototype.getSeconds.call(this), 2);
1164
+ } ],
1165
+ l: [ "[0-9]{3}", Date.prototype.setMilliseconds, "milliseconds", function() {
1166
+ return O(Date.prototype.getMilliseconds.call(this), 3);
1167
+ }, 3 ],
1168
+ L: [ "[0-9]{2}", Date.prototype.setMilliseconds, "milliseconds", function() {
1169
+ return O(Date.prototype.getMilliseconds.call(this), 2);
1170
+ }, 2 ],
1171
+ t: [ "[ap]", k, "ampm", b, 1 ],
1172
+ tt: [ "[ap]m", k, "ampm", b, 2 ],
1173
+ T: [ "[AP]", k, "ampm", b, 1 ],
1174
+ TT: [ "[AP]M", k, "ampm", b, 2 ],
1175
+ Z: [ ".*", void 0, "Z", function() {
1176
+ var e = this.toString().match(/\((.+)\)/)[1];
1177
+ e.includes(" ") && (e = (e = e.replace("-", " ").toUpperCase()).split(" ").map((function(e) {
1178
+ return s(e, 1)[0];
1179
+ })).join(""));
1180
+ return e;
1181
+ } ],
1182
+ o: [ "" ],
1183
+ S: [ "" ]
1184
+ }, y = {
1185
+ isoDate: "yyyy-mm-dd",
1186
+ isoTime: "HH:MM:ss",
1187
+ isoDateTime: "yyyy-mm-dd'T'HH:MM:ss",
1188
+ isoUtcDateTime: "UTC:yyyy-mm-dd'T'HH:MM:ss'Z'"
1189
+ };
1190
+ function k(e) {
1191
+ var t = this.getHours();
1192
+ e.toLowerCase().includes("p") ? this.setHours(t + 12) : e.toLowerCase().includes("a") && t >= 12 && this.setHours(t - 12);
1193
+ }
1194
+ function b() {
1195
+ var e = this.getHours();
1196
+ return (e = e || 12) >= 12 ? "PM" : "AM";
1197
+ }
1198
+ function x(e) {
1199
+ var t = new RegExp("\\d+$").exec(e[0]);
1200
+ if (t && void 0 !== t[0]) {
1201
+ var n = g[e[0][0] + "x"].slice("");
1202
+ return n[0] = n[0](t[0]), n[3] = n[3](t[0]), n;
1203
+ }
1204
+ if (g[e[0]]) return g[e[0]];
1205
+ }
1206
+ function P(e) {
1207
+ if (!e.tokenizer) {
1208
+ var t = [], n = [];
1209
+ for (var i in g) if (/\.*x$/.test(i)) {
1210
+ var a = i[0] + "\\d+";
1211
+ -1 === n.indexOf(a) && n.push(a);
1212
+ } else -1 === t.indexOf(i[0]) && t.push(i[0]);
1213
+ e.tokenizer = "(" + (n.length > 0 ? n.join("|") + "|" : "") + t.join("+|") + ")+?|.",
1214
+ e.tokenizer = new RegExp(e.tokenizer, "g");
1215
+ }
1216
+ return e.tokenizer;
1217
+ }
1218
+ function w(e, t, n) {
1219
+ if (!m) return !0;
1220
+ if (void 0 === e.rawday || !isFinite(e.rawday) && new Date(e.date.getFullYear(), isFinite(e.rawmonth) ? e.month : e.date.getMonth() + 1, 0).getDate() >= e.day || "29" == e.day && (!isFinite(e.rawyear) || void 0 === e.rawyear || "" === e.rawyear) || new Date(e.date.getFullYear(), isFinite(e.rawmonth) ? e.month : e.date.getMonth() + 1, 0).getDate() >= e.day) return t;
1221
+ if ("29" == e.day) {
1222
+ var i = M(t.pos, n);
1223
+ if (i.targetMatch && "yyyy" === i.targetMatch[0] && t.pos - i.targetMatchIndex == 2) return t.remove = t.pos + 1,
1224
+ t;
1225
+ } else if ("02" == e.month && "30" == e.day && void 0 !== t.c) return e.day = "03",
1226
+ e.date.setDate(3), e.date.setMonth(1), t.insert = [ {
1227
+ pos: t.pos,
1228
+ c: "0"
1229
+ }, {
1230
+ pos: t.pos + 1,
1231
+ c: t.c
1232
+ } ], t.caret = o.seekNext.call(this, t.pos + 1), t;
1233
+ return !1;
1234
+ }
1235
+ function S(e, t, n, i) {
1236
+ var a, o, l = "";
1237
+ for (P(n).lastIndex = 0; a = P(n).exec(e); ) {
1238
+ if (void 0 === t) if (o = x(a)) l += "(" + o[0] + ")"; else switch (a[0]) {
1239
+ case "[":
1240
+ l += "(";
1241
+ break;
1242
+
1243
+ case "]":
1244
+ l += ")?";
1245
+ break;
1246
+
1247
+ default:
1248
+ l += (0, r.default)(a[0]);
1249
+ } else if (o = x(a)) if (!0 !== i && o[3]) l += o[3].call(t.date); else o[2] ? l += t["raw" + o[2]] : l += a[0]; else l += a[0];
1250
+ }
1251
+ return l;
1252
+ }
1253
+ function O(e, t, n) {
1254
+ for (e = String(e), t = t || 2; e.length < t; ) e = n ? e + "0" : "0" + e;
1255
+ return e;
1256
+ }
1257
+ function _(e, t, n) {
1258
+ return "string" == typeof e ? new h(e, t, n) : e && "object" === u(e) && Object.prototype.hasOwnProperty.call(e, "date") ? e : void 0;
1259
+ }
1260
+ function E(e, t) {
1261
+ return S(t.inputFormat, {
1262
+ date: e
1263
+ }, t);
1264
+ }
1265
+ function M(e, t) {
1266
+ var n, i, a = 0, r = 0;
1267
+ for (P(t).lastIndex = 0; i = P(t).exec(t.inputFormat); ) {
1268
+ var o = new RegExp("\\d+$").exec(i[0]);
1269
+ if ((a += r = o ? parseInt(o[0]) : i[0].length) >= e + 1) {
1270
+ n = i, i = P(t).exec(t.inputFormat);
1271
+ break;
1272
+ }
1273
+ }
1274
+ return {
1275
+ targetMatchIndex: a - r,
1276
+ nextMatch: i,
1277
+ targetMatch: n
1278
+ };
1279
+ }
1280
+ i.default.extendAliases({
1281
+ datetime: {
1282
+ mask: function(e) {
1283
+ return e.numericInput = !1, g.S = e.i18n.ordinalSuffix.join("|"), e.inputFormat = y[e.inputFormat] || e.inputFormat,
1284
+ e.displayFormat = y[e.displayFormat] || e.displayFormat || e.inputFormat, e.outputFormat = y[e.outputFormat] || e.outputFormat || e.inputFormat,
1285
+ e.placeholder = "" !== e.placeholder ? e.placeholder : e.inputFormat.replace(/[[\]]/, ""),
1286
+ e.regex = S(e.inputFormat, void 0, e), e.min = _(e.min, e.inputFormat, e), e.max = _(e.max, e.inputFormat, e),
1287
+ null;
1288
+ },
1289
+ placeholder: "",
1290
+ inputFormat: "isoDateTime",
1291
+ displayFormat: null,
1292
+ outputFormat: null,
1293
+ min: null,
1294
+ max: null,
1295
+ skipOptionalPartCharacter: "",
1296
+ i18n: {
1297
+ dayNames: [ "Mon", "Tue", "Wed", "Thu", "Fri", "Sat", "Sun", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday", "Sunday" ],
1298
+ 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" ],
1299
+ ordinalSuffix: [ "st", "nd", "rd", "th" ]
1300
+ },
1301
+ preValidation: function(e, t, n, i, a, r, o, l) {
1302
+ if (l) return !0;
1303
+ if (isNaN(n) && e[t] !== n) {
1304
+ var s = M(t, a);
1305
+ if (s.nextMatch && s.nextMatch[0] === n && s.targetMatch[0].length > 1) {
1306
+ var c = g[s.targetMatch[0]][0];
1307
+ if (new RegExp(c).test("0" + e[t - 1])) return e[t] = e[t - 1], e[t - 1] = "0",
1308
+ {
1309
+ fuzzy: !0,
1310
+ buffer: e,
1311
+ refreshFromBuffer: {
1312
+ start: t - 1,
1313
+ end: t + 1
1314
+ },
1315
+ pos: t + 1
1316
+ };
1317
+ }
1318
+ }
1319
+ return !0;
1320
+ },
1321
+ postValidation: function(e, t, n, i, a, r, o, s) {
1322
+ var c, u;
1323
+ if (o) return !0;
1324
+ if (!1 === i && (((c = M(t + 1, a)).targetMatch && c.targetMatchIndex === t && c.targetMatch[0].length > 1 && void 0 !== g[c.targetMatch[0]] || (c = M(t + 2, a)).targetMatch && c.targetMatchIndex === t + 1 && c.targetMatch[0].length > 1 && void 0 !== g[c.targetMatch[0]]) && (u = g[c.targetMatch[0]][0]),
1325
+ void 0 !== u && (void 0 !== r.validPositions[t + 1] && new RegExp(u).test(n + "0") ? (e[t] = n,
1326
+ e[t + 1] = "0", i = {
1327
+ pos: t + 2,
1328
+ caret: t
1329
+ }) : new RegExp(u).test("0" + n) && (e[t] = "0", e[t + 1] = n, i = {
1330
+ pos: t + 2
1331
+ })), !1 === i)) return i;
1332
+ if (i.fuzzy && (e = i.buffer, t = i.pos), (c = M(t, a)).targetMatch && c.targetMatch[0] && void 0 !== g[c.targetMatch[0]]) {
1333
+ var f = g[c.targetMatch[0]];
1334
+ u = f[0];
1335
+ var p = e.slice(c.targetMatchIndex, c.targetMatchIndex + c.targetMatch[0].length);
1336
+ if (!1 === new RegExp(u).test(p.join("")) && 2 === c.targetMatch[0].length && r.validPositions[c.targetMatchIndex] && r.validPositions[c.targetMatchIndex + 1] && (r.validPositions[c.targetMatchIndex + 1].input = "0"),
1337
+ "year" == f[2]) for (var d = l.getMaskTemplate.call(this, !1, 1, void 0, !0), h = t + 1; h < e.length; h++) e[h] = d[h],
1338
+ r.validPositions.splice(t + 1, 1);
1339
+ }
1340
+ var m = i, y = _(e.join(""), a.inputFormat, a);
1341
+ return m && !isNaN(y.date.getTime()) && (a.prefillYear && (m = function(e, t, n) {
1342
+ if (e.year !== e.rawyear) {
1343
+ var i = v.toString(), a = e.rawyear.replace(/[^0-9]/g, ""), r = i.slice(0, a.length), o = i.slice(a.length);
1344
+ if (2 === a.length && a === r) {
1345
+ var l = new Date(v, e.month - 1, e.day);
1346
+ e.day == l.getDate() && (!n.max || n.max.date.getTime() >= l.getTime()) && (e.date.setFullYear(v),
1347
+ e.year = i, t.insert = [ {
1348
+ pos: t.pos + 1,
1349
+ c: o[0]
1350
+ }, {
1351
+ pos: t.pos + 2,
1352
+ c: o[1]
1353
+ } ]);
1354
+ }
1355
+ }
1356
+ return t;
1357
+ }(y, m, a)), m = function(e, t, n, i, a) {
1358
+ if (!t) return t;
1359
+ if (t && n.min && !isNaN(n.min.date.getTime())) {
1360
+ var r;
1361
+ for (e.reset(), P(n).lastIndex = 0; r = P(n).exec(n.inputFormat); ) {
1362
+ var o;
1363
+ if ((o = x(r)) && o[3]) {
1364
+ for (var l = o[1], s = e[o[2]], c = n.min[o[2]], u = n.max ? n.max[o[2]] : c, f = [], p = !1, d = 0; d < c.length; d++) void 0 !== i.validPositions[d + r.index] || p ? (f[d] = s[d],
1365
+ p = p || s[d] > c[d]) : (f[d] = c[d], "year" === o[2] && s.length - 1 == d && c != u && (f = (parseInt(f.join("")) + 1).toString().split("")),
1366
+ "ampm" === o[2] && c != u && n.min.date.getTime() > e.date.getTime() && (f[d] = u[d]));
1367
+ l.call(e._date, f.join(""));
1368
+ }
1369
+ }
1370
+ t = n.min.date.getTime() <= e.date.getTime(), e.reInit();
1371
+ }
1372
+ return t && n.max && (isNaN(n.max.date.getTime()) || (t = n.max.date.getTime() >= e.date.getTime())),
1373
+ t;
1374
+ }(y, m = w.call(this, y, m, a), a, r)), void 0 !== t && m && i.pos !== t ? {
1375
+ buffer: S(a.inputFormat, y, a).split(""),
1376
+ refreshFromBuffer: {
1377
+ start: t,
1378
+ end: i.pos
1379
+ },
1380
+ pos: i.caret || i.pos
1381
+ } : m;
1382
+ },
1383
+ onKeyDown: function(e, t, n, i) {
1384
+ e.ctrlKey && e.key === a.keys.ArrowRight && (this.inputmask._valueSet(E(new Date, i)),
1385
+ d(this).trigger("setvalue"));
1386
+ },
1387
+ onUnMask: function(e, t, n) {
1388
+ return t ? S(n.outputFormat, _(e, n.inputFormat, n), n, !0) : t;
1389
+ },
1390
+ casing: function(e, t, n, i) {
1391
+ return 0 == t.nativeDef.indexOf("[ap]") ? e.toLowerCase() : 0 == t.nativeDef.indexOf("[AP]") ? e.toUpperCase() : e;
1392
+ },
1393
+ onBeforeMask: function(e, t) {
1394
+ return "[object Date]" === Object.prototype.toString.call(e) && (e = E(e, t)), e;
1395
+ },
1396
+ insertMode: !1,
1397
+ insertModeVisual: !1,
1398
+ shiftPositions: !1,
1399
+ keepStatic: !1,
1400
+ inputmode: "numeric",
1401
+ prefillYear: !0
1402
+ }
1403
+ });
1404
+ },
1405
+ 3851: function(e, t, n) {
1406
+ var i, a = (i = n(2394)) && i.__esModule ? i : {
1407
+ default: i
1408
+ }, r = n(8711), o = n(4713);
1409
+ a.default.extendDefinitions({
1410
+ A: {
1411
+ validator: "[A-Za-z\u0410-\u044f\u0401\u0451\xc0-\xff\xb5]",
1412
+ casing: "upper"
1413
+ },
1414
+ "&": {
1415
+ validator: "[0-9A-Za-z\u0410-\u044f\u0401\u0451\xc0-\xff\xb5]",
1416
+ casing: "upper"
1417
+ },
1418
+ "#": {
1419
+ validator: "[0-9A-Fa-f]",
1420
+ casing: "upper"
1421
+ }
1422
+ });
1423
+ var l = new RegExp("25[0-5]|2[0-4][0-9]|[01][0-9][0-9]");
1424
+ function s(e, t, n, i, a) {
1425
+ return n - 1 > -1 && "." !== t.buffer[n - 1] ? (e = t.buffer[n - 1] + e, e = n - 2 > -1 && "." !== t.buffer[n - 2] ? t.buffer[n - 2] + e : "0" + e) : e = "00" + e,
1426
+ l.test(e);
1427
+ }
1428
+ a.default.extendAliases({
1429
+ cssunit: {
1430
+ regex: "[+-]?[0-9]+\\.?([0-9]+)?(px|em|rem|ex|%|in|cm|mm|pt|pc)"
1431
+ },
1432
+ url: {
1433
+ regex: "(https?|ftp)://.*",
1434
+ autoUnmask: !1,
1435
+ keepStatic: !1,
1436
+ tabThrough: !0
1437
+ },
1438
+ ip: {
1439
+ mask: "i{1,3}.j{1,3}.k{1,3}.l{1,3}",
1440
+ definitions: {
1441
+ i: {
1442
+ validator: s
1443
+ },
1444
+ j: {
1445
+ validator: s
1446
+ },
1447
+ k: {
1448
+ validator: s
1449
+ },
1450
+ l: {
1451
+ validator: s
1452
+ }
1453
+ },
1454
+ onUnMask: function(e, t, n) {
1455
+ return e;
1456
+ },
1457
+ inputmode: "decimal",
1458
+ substitutes: {
1459
+ ",": "."
1460
+ }
1461
+ },
1462
+ email: {
1463
+ mask: function(e) {
1464
+ var t = e.separator, n = e.quantifier, i = "*{1,64}[.*{1,64}][.*{1,64}][.*{1,63}]@-{1,63}.-{1,63}[.-{1,63}][.-{1,63}]", a = i;
1465
+ if (t) for (var r = 0; r < n; r++) a += "[".concat(t).concat(i, "]");
1466
+ return a;
1467
+ },
1468
+ greedy: !1,
1469
+ casing: "lower",
1470
+ separator: null,
1471
+ quantifier: 5,
1472
+ skipOptionalPartCharacter: "",
1473
+ onBeforePaste: function(e, t) {
1474
+ return (e = e.toLowerCase()).replace("mailto:", "");
1475
+ },
1476
+ definitions: {
1477
+ "*": {
1478
+ validator: "[0-9\uff11-\uff19A-Za-z\u0410-\u044f\u0401\u0451\xc0-\xff\xb5!#$%&'*+/=?^_`{|}~-]"
1479
+ },
1480
+ "-": {
1481
+ validator: "[0-9A-Za-z-]"
1482
+ }
1483
+ },
1484
+ onUnMask: function(e, t, n) {
1485
+ return e;
1486
+ },
1487
+ inputmode: "email"
1488
+ },
1489
+ mac: {
1490
+ mask: "##:##:##:##:##:##"
1491
+ },
1492
+ vin: {
1493
+ mask: "V{13}9{4}",
1494
+ definitions: {
1495
+ V: {
1496
+ validator: "[A-HJ-NPR-Za-hj-npr-z\\d]",
1497
+ casing: "upper"
1498
+ }
1499
+ },
1500
+ clearIncomplete: !0,
1501
+ autoUnmask: !0
1502
+ },
1503
+ ssn: {
1504
+ mask: "999-99-9999",
1505
+ postValidation: function(e, t, n, i, a, l, s) {
1506
+ var c = o.getMaskTemplate.call(this, !0, r.getLastValidPosition.call(this), !0, !0);
1507
+ return /^(?!219-09-9999|078-05-1120)(?!666|000|9.{2}).{3}-(?!00).{2}-(?!0{4}).{4}$/.test(c.join(""));
1508
+ }
1509
+ }
1510
+ });
1511
+ },
1512
+ 207: function(e, t, n) {
1513
+ var i = l(n(2394)), a = l(n(7184)), r = n(8711), o = n(2839);
1514
+ function l(e) {
1515
+ return e && e.__esModule ? e : {
1516
+ default: e
1517
+ };
1518
+ }
1519
+ var s = i.default.dependencyLib;
1520
+ function c(e, t) {
1521
+ for (var n = "", a = 0; a < e.length; a++) i.default.prototype.definitions[e.charAt(a)] || t.definitions[e.charAt(a)] || t.optionalmarker[0] === e.charAt(a) || t.optionalmarker[1] === e.charAt(a) || t.quantifiermarker[0] === e.charAt(a) || t.quantifiermarker[1] === e.charAt(a) || t.groupmarker[0] === e.charAt(a) || t.groupmarker[1] === e.charAt(a) || t.alternatormarker === e.charAt(a) ? n += "\\" + e.charAt(a) : n += e.charAt(a);
1522
+ return n;
1523
+ }
1524
+ function u(e, t, n, i) {
1525
+ if (e.length > 0 && t > 0 && (!n.digitsOptional || i)) {
1526
+ var a = e.indexOf(n.radixPoint), r = !1;
1527
+ n.negationSymbol.back === e[e.length - 1] && (r = !0, e.length--), -1 === a && (e.push(n.radixPoint),
1528
+ a = e.length - 1);
1529
+ for (var o = 1; o <= t; o++) isFinite(e[a + o]) || (e[a + o] = "0");
1530
+ }
1531
+ return r && e.push(n.negationSymbol.back), e;
1532
+ }
1533
+ function f(e, t) {
1534
+ var n = 0;
1535
+ for (var i in "+" === e && (n = r.seekNext.call(this, t.validPositions.length - 1)),
1536
+ t.tests) if ((i = parseInt(i)) >= n) for (var a = 0, o = t.tests[i].length; a < o; a++) if ((void 0 === t.validPositions[i] || "-" === e) && t.tests[i][a].match.def === e) return i + (void 0 !== t.validPositions[i] && "-" !== e ? 1 : 0);
1537
+ return n;
1538
+ }
1539
+ function p(e, t) {
1540
+ for (var n = -1, i = 0, a = t.validPositions.length; i < a; i++) {
1541
+ var r = t.validPositions[i];
1542
+ if (r && r.match.def === e) {
1543
+ n = i;
1544
+ break;
1545
+ }
1546
+ }
1547
+ return n;
1548
+ }
1549
+ function d(e, t, n, i, a) {
1550
+ var r = t.buffer ? t.buffer.indexOf(a.radixPoint) : -1, o = (-1 !== r || i && a.jitMasking) && new RegExp(a.definitions[9].validator).test(e);
1551
+ return a._radixDance && -1 !== r && o && null == t.validPositions[r] ? {
1552
+ insert: {
1553
+ pos: r === n ? r + 1 : r,
1554
+ c: a.radixPoint
1555
+ },
1556
+ pos: n
1557
+ } : o;
1558
+ }
1559
+ i.default.extendAliases({
1560
+ numeric: {
1561
+ mask: function(e) {
1562
+ e.repeat = 0, e.groupSeparator === e.radixPoint && e.digits && "0" !== e.digits && ("." === e.radixPoint ? e.groupSeparator = "," : "," === e.radixPoint ? e.groupSeparator = "." : e.groupSeparator = ""),
1563
+ " " === e.groupSeparator && (e.skipOptionalPartCharacter = void 0), e.placeholder.length > 1 && (e.placeholder = e.placeholder.charAt(0)),
1564
+ "radixFocus" === e.positionCaretOnClick && "" === e.placeholder && (e.positionCaretOnClick = "lvp");
1565
+ var t = "0", n = e.radixPoint;
1566
+ !0 === e.numericInput && void 0 === e.__financeInput ? (t = "1", e.positionCaretOnClick = "radixFocus" === e.positionCaretOnClick ? "lvp" : e.positionCaretOnClick,
1567
+ e.digitsOptional = !1, isNaN(e.digits) && (e.digits = 2), e._radixDance = !1, n = "," === e.radixPoint ? "?" : "!",
1568
+ "" !== e.radixPoint && void 0 === e.definitions[n] && (e.definitions[n] = {}, e.definitions[n].validator = "[" + e.radixPoint + "]",
1569
+ e.definitions[n].placeholder = e.radixPoint, e.definitions[n].static = !0, e.definitions[n].generated = !0)) : (e.__financeInput = !1,
1570
+ e.numericInput = !0);
1571
+ var i, r = "[+]";
1572
+ if (r += c(e.prefix, e), "" !== e.groupSeparator ? (void 0 === e.definitions[e.groupSeparator] && (e.definitions[e.groupSeparator] = {},
1573
+ e.definitions[e.groupSeparator].validator = "[" + e.groupSeparator + "]", e.definitions[e.groupSeparator].placeholder = e.groupSeparator,
1574
+ e.definitions[e.groupSeparator].static = !0, e.definitions[e.groupSeparator].generated = !0),
1575
+ r += e._mask(e)) : r += "9{+}", void 0 !== e.digits && 0 !== e.digits) {
1576
+ var o = e.digits.toString().split(",");
1577
+ isFinite(o[0]) && o[1] && isFinite(o[1]) ? r += n + t + "{" + e.digits + "}" : (isNaN(e.digits) || parseInt(e.digits) > 0) && (e.digitsOptional || e.jitMasking ? (i = r + n + t + "{0," + e.digits + "}",
1578
+ e.keepStatic = !0) : r += n + t + "{" + e.digits + "}");
1579
+ } else e.inputmode = "numeric";
1580
+ return r += c(e.suffix, e), r += "[-]", i && (r = [ i + c(e.suffix, e) + "[-]", r ]),
1581
+ e.greedy = !1, function(e) {
1582
+ void 0 === e.parseMinMaxOptions && (null !== e.min && (e.min = e.min.toString().replace(new RegExp((0, a.default)(e.groupSeparator), "g"), ""), "," === e.radixPoint && (e.min = e.min.replace(e.radixPoint, ".")),
1583
+ e.min = isFinite(e.min) ? parseFloat(e.min) : NaN, isNaN(e.min) && (e.min = Number.MIN_VALUE)),
1584
+ null !== e.max && (e.max = e.max.toString().replace(new RegExp((0, a.default)(e.groupSeparator), "g"), ""),
1585
+ "," === e.radixPoint && (e.max = e.max.replace(e.radixPoint, ".")), e.max = isFinite(e.max) ? parseFloat(e.max) : NaN,
1586
+ isNaN(e.max) && (e.max = Number.MAX_VALUE)), e.parseMinMaxOptions = "done");
1587
+ }(e), "" !== e.radixPoint && e.substituteRadixPoint && (e.substitutes["." == e.radixPoint ? "," : "."] = e.radixPoint),
1588
+ r;
1589
+ },
1590
+ _mask: function(e) {
1591
+ return "(" + e.groupSeparator + "999){+|1}";
1592
+ },
1593
+ digits: "*",
1594
+ digitsOptional: !0,
1595
+ enforceDigitsOnBlur: !1,
1596
+ radixPoint: ".",
1597
+ positionCaretOnClick: "radixFocus",
1598
+ _radixDance: !0,
1599
+ groupSeparator: "",
1600
+ allowMinus: !0,
1601
+ negationSymbol: {
1602
+ front: "-",
1603
+ back: ""
1604
+ },
1605
+ prefix: "",
1606
+ suffix: "",
1607
+ min: null,
1608
+ max: null,
1609
+ SetMaxOnOverflow: !1,
1610
+ step: 1,
1611
+ inputType: "text",
1612
+ unmaskAsNumber: !1,
1613
+ roundingFN: Math.round,
1614
+ inputmode: "decimal",
1615
+ shortcuts: {
1616
+ k: "1000",
1617
+ m: "1000000"
1618
+ },
1619
+ placeholder: "0",
1620
+ greedy: !1,
1621
+ rightAlign: !0,
1622
+ insertMode: !0,
1623
+ autoUnmask: !1,
1624
+ skipOptionalPartCharacter: "",
1625
+ usePrototypeDefinitions: !1,
1626
+ stripLeadingZeroes: !0,
1627
+ substituteRadixPoint: !0,
1628
+ definitions: {
1629
+ 0: {
1630
+ validator: d
1631
+ },
1632
+ 1: {
1633
+ validator: d,
1634
+ definitionSymbol: "9"
1635
+ },
1636
+ 9: {
1637
+ validator: "[0-9\uff10-\uff19\u0660-\u0669\u06f0-\u06f9]",
1638
+ definitionSymbol: "*"
1639
+ },
1640
+ "+": {
1641
+ validator: function(e, t, n, i, a) {
1642
+ return a.allowMinus && ("-" === e || e === a.negationSymbol.front);
1643
+ }
1644
+ },
1645
+ "-": {
1646
+ validator: function(e, t, n, i, a) {
1647
+ return a.allowMinus && e === a.negationSymbol.back;
1648
+ }
1649
+ }
1650
+ },
1651
+ preValidation: function(e, t, n, i, a, r, o, l) {
1652
+ var s = this;
1653
+ if (!1 !== a.__financeInput && n === a.radixPoint) return !1;
1654
+ var c = e.indexOf(a.radixPoint), u = t;
1655
+ if (t = function(e, t, n, i, a) {
1656
+ return a._radixDance && a.numericInput && t !== a.negationSymbol.back && e <= n && (n > 0 || t == a.radixPoint) && (void 0 === i.validPositions[e - 1] || i.validPositions[e - 1].input !== a.negationSymbol.back) && (e -= 1),
1657
+ e;
1658
+ }(t, n, c, r, a), "-" === n || n === a.negationSymbol.front) {
1659
+ if (!0 !== a.allowMinus) return !1;
1660
+ var d = !1, h = p("+", r), v = p("-", r);
1661
+ return -1 !== h && (d = [ h, v ]), !1 !== d ? {
1662
+ remove: d,
1663
+ caret: u - a.negationSymbol.back.length
1664
+ } : {
1665
+ insert: [ {
1666
+ pos: f.call(s, "+", r),
1667
+ c: a.negationSymbol.front,
1668
+ fromIsValid: !0
1669
+ }, {
1670
+ pos: f.call(s, "-", r),
1671
+ c: a.negationSymbol.back,
1672
+ fromIsValid: void 0
1673
+ } ],
1674
+ caret: u + a.negationSymbol.back.length
1675
+ };
1676
+ }
1677
+ if (n === a.groupSeparator) return {
1678
+ caret: u
1679
+ };
1680
+ if (l) return !0;
1681
+ if (-1 !== c && !0 === a._radixDance && !1 === i && n === a.radixPoint && void 0 !== a.digits && (isNaN(a.digits) || parseInt(a.digits) > 0) && c !== t) {
1682
+ var m = f.call(s, a.radixPoint, r);
1683
+ return r.validPositions[m] && (r.validPositions[m].generatedInput = r.validPositions[m].generated || !1),
1684
+ {
1685
+ caret: a._radixDance && t === c - 1 ? c + 1 : c
1686
+ };
1687
+ }
1688
+ if (!1 === a.__financeInput) if (i) {
1689
+ if (a.digitsOptional) return {
1690
+ rewritePosition: o.end
1691
+ };
1692
+ if (!a.digitsOptional) {
1693
+ if (o.begin > c && o.end <= c) return n === a.radixPoint ? {
1694
+ insert: {
1695
+ pos: c + 1,
1696
+ c: "0",
1697
+ fromIsValid: !0
1698
+ },
1699
+ rewritePosition: c
1700
+ } : {
1701
+ rewritePosition: c + 1
1702
+ };
1703
+ if (o.begin < c) return {
1704
+ rewritePosition: o.begin - 1
1705
+ };
1706
+ }
1707
+ } else if (!a.showMaskOnHover && !a.showMaskOnFocus && !a.digitsOptional && a.digits > 0 && "" === this.__valueGet.call(this.el)) return {
1708
+ rewritePosition: c
1709
+ };
1710
+ return {
1711
+ rewritePosition: t
1712
+ };
1713
+ },
1714
+ postValidation: function(e, t, n, i, a, r, o) {
1715
+ if (!1 === i) return i;
1716
+ if (o) return !0;
1717
+ if (null !== a.min || null !== a.max) {
1718
+ var l = a.onUnMask(e.slice().reverse().join(""), void 0, s.extend({}, a, {
1719
+ unmaskAsNumber: !0
1720
+ }));
1721
+ if (null !== a.min && l < a.min && (l.toString().length > a.min.toString().length || l < 0)) return !1;
1722
+ if (null !== a.max && l > a.max) return !!a.SetMaxOnOverflow && {
1723
+ refreshFromBuffer: !0,
1724
+ buffer: u(a.max.toString().replace(".", a.radixPoint).split(""), a.digits, a).reverse()
1725
+ };
1726
+ }
1727
+ return i;
1728
+ },
1729
+ onUnMask: function(e, t, n) {
1730
+ if ("" === t && !0 === n.nullable) return t;
1731
+ var i = e.replace(n.prefix, "");
1732
+ return i = (i = i.replace(n.suffix, "")).replace(new RegExp((0, a.default)(n.groupSeparator), "g"), ""),
1733
+ "" !== n.placeholder.charAt(0) && (i = i.replace(new RegExp(n.placeholder.charAt(0), "g"), "0")),
1734
+ n.unmaskAsNumber ? ("" !== n.radixPoint && -1 !== i.indexOf(n.radixPoint) && (i = i.replace(a.default.call(this, n.radixPoint), ".")),
1735
+ i = (i = i.replace(new RegExp("^" + (0, a.default)(n.negationSymbol.front)), "-")).replace(new RegExp((0, a.default)(n.negationSymbol.back) + "$"), ""), Number(i)) : i;
1736
+ },
1737
+ isComplete: function(e, t) {
1738
+ var n = (t.numericInput ? e.slice().reverse() : e).join("");
1739
+ return n = (n = (n = (n = (n = n.replace(new RegExp("^" + (0, a.default)(t.negationSymbol.front)), "-")).replace(new RegExp((0, a.default)(t.negationSymbol.back) + "$"), "")).replace(t.prefix, "")).replace(t.suffix, "")).replace(new RegExp((0, a.default)(t.groupSeparator) + "([0-9]{3})", "g"), "$1"), "," === t.radixPoint && (n = n.replace((0, a.default)(t.radixPoint), ".")), isFinite(n);
1740
+ },
1741
+ onBeforeMask: function(e, t) {
1742
+ var n = t.radixPoint || ",";
1743
+ isFinite(t.digits) && (t.digits = parseInt(t.digits)), "number" != typeof e && "number" !== t.inputType || "" === n || (e = e.toString().replace(".", n));
1744
+ var i = "-" === e.charAt(0) || e.charAt(0) === t.negationSymbol.front, r = e.split(n), o = r[0].replace(/[^\-0-9]/g, ""), l = r.length > 1 ? r[1].replace(/[^0-9]/g, "") : "", s = r.length > 1;
1745
+ e = o + ("" !== l ? n + l : l);
1746
+ var c = 0;
1747
+ if ("" !== n && (c = t.digitsOptional ? t.digits < l.length ? t.digits : l.length : t.digits,
1748
+ "" !== l || !t.digitsOptional)) {
1749
+ var f = Math.pow(10, c || 1);
1750
+ e = e.replace((0, a.default)(n), "."), isNaN(parseFloat(e)) || (e = (t.roundingFN(parseFloat(e) * f) / f).toFixed(c)),
1751
+ e = e.toString().replace(".", n);
1752
+ }
1753
+ if (0 === t.digits && -1 !== e.indexOf(n) && (e = e.substring(0, e.indexOf(n))),
1754
+ null !== t.min || null !== t.max) {
1755
+ var p = e.toString().replace(n, ".");
1756
+ null !== t.min && p < t.min ? e = t.min.toString().replace(".", n) : null !== t.max && p > t.max && (e = t.max.toString().replace(".", n));
1757
+ }
1758
+ return i && "-" !== e.charAt(0) && (e = "-" + e), u(e.toString().split(""), c, t, s).join("");
1759
+ },
1760
+ onBeforeWrite: function(e, t, n, i) {
1761
+ function r(e, t) {
1762
+ if (!1 !== i.__financeInput || t) {
1763
+ var n = e.indexOf(i.radixPoint);
1764
+ -1 !== n && e.splice(n, 1);
1765
+ }
1766
+ if ("" !== i.groupSeparator) for (;-1 !== (n = e.indexOf(i.groupSeparator)); ) e.splice(n, 1);
1767
+ return e;
1768
+ }
1769
+ var o, l;
1770
+ if (i.stripLeadingZeroes && (l = function(e, t) {
1771
+ var n = new RegExp("(^" + ("" !== t.negationSymbol.front ? (0, a.default)(t.negationSymbol.front) + "?" : "") + (0, a.default)(t.prefix) + ")(.*)(" + (0, a.default)(t.suffix) + ("" != t.negationSymbol.back ? (0, a.default)(t.negationSymbol.back) + "?" : "") + "$)").exec(e.slice().reverse().join("")), i = n ? n[2] : "", r = !1;
1772
+ return i && (i = i.split(t.radixPoint.charAt(0))[0], r = new RegExp("^[0" + t.groupSeparator + "]*").exec(i)),
1773
+ !(!r || !(r[0].length > 1 || r[0].length > 0 && r[0].length < i.length)) && r;
1774
+ }(t, i))) for (var c = t.join("").lastIndexOf(l[0].split("").reverse().join("")) - (l[0] == l.input ? 0 : 1), f = l[0] == l.input ? 1 : 0, p = l[0].length - f; p > 0; p--) this.maskset.validPositions.splice(c + p, 1),
1775
+ delete t[c + p];
1776
+ if (e) switch (e.type) {
1777
+ case "blur":
1778
+ case "checkval":
1779
+ if (null !== i.min) {
1780
+ var d = i.onUnMask(t.slice().reverse().join(""), void 0, s.extend({}, i, {
1781
+ unmaskAsNumber: !0
1782
+ }));
1783
+ if (null !== i.min && d < i.min) return {
1784
+ refreshFromBuffer: !0,
1785
+ buffer: u(i.min.toString().replace(".", i.radixPoint).split(""), i.digits, i).reverse()
1786
+ };
1787
+ }
1788
+ if (t[t.length - 1] === i.negationSymbol.front) {
1789
+ var h = new RegExp("(^" + ("" != i.negationSymbol.front ? (0, a.default)(i.negationSymbol.front) + "?" : "") + (0, a.default)(i.prefix) + ")(.*)(" + (0, a.default)(i.suffix) + ("" != i.negationSymbol.back ? (0, a.default)(i.negationSymbol.back) + "?" : "") + "$)").exec(r(t.slice(), !0).reverse().join(""));
1790
+ 0 == (h ? h[2] : "") && (o = {
1791
+ refreshFromBuffer: !0,
1792
+ buffer: [ 0 ]
1793
+ });
1794
+ } else if ("" !== i.radixPoint) {
1795
+ t.indexOf(i.radixPoint) === i.suffix.length && (o && o.buffer ? o.buffer.splice(0, 1 + i.suffix.length) : (t.splice(0, 1 + i.suffix.length),
1796
+ o = {
1797
+ refreshFromBuffer: !0,
1798
+ buffer: r(t)
1799
+ }));
1800
+ }
1801
+ if (i.enforceDigitsOnBlur) {
1802
+ var v = (o = o || {}) && o.buffer || t.slice().reverse();
1803
+ o.refreshFromBuffer = !0, o.buffer = u(v, i.digits, i, !0).reverse();
1804
+ }
1805
+ }
1806
+ return o;
1807
+ },
1808
+ onKeyDown: function(e, t, n, i) {
1809
+ var a, r = s(this);
1810
+ if (3 != e.location) {
1811
+ var l, c = e.key;
1812
+ if ((l = i.shortcuts && i.shortcuts[c]) && l.length > 1) return this.inputmask.__valueSet.call(this, parseFloat(this.inputmask.unmaskedvalue()) * parseInt(l)),
1813
+ r.trigger("setvalue"), !1;
1814
+ }
1815
+ if (e.ctrlKey) switch (e.key) {
1816
+ case o.keys.ArrowUp:
1817
+ return this.inputmask.__valueSet.call(this, parseFloat(this.inputmask.unmaskedvalue()) + parseInt(i.step)),
1818
+ r.trigger("setvalue"), !1;
1819
+
1820
+ case o.keys.ArrowDown:
1821
+ return this.inputmask.__valueSet.call(this, parseFloat(this.inputmask.unmaskedvalue()) - parseInt(i.step)),
1822
+ r.trigger("setvalue"), !1;
1823
+ }
1824
+ if (!e.shiftKey && (e.key === o.keys.Delete || e.key === o.keys.Backspace || e.key === o.keys.BACKSPACE_SAFARI) && n.begin !== t.length) {
1825
+ if (t[e.key === o.keys.Delete ? n.begin - 1 : n.end] === i.negationSymbol.front) return a = t.slice().reverse(),
1826
+ "" !== i.negationSymbol.front && a.shift(), "" !== i.negationSymbol.back && a.pop(),
1827
+ r.trigger("setvalue", [ a.join(""), n.begin ]), !1;
1828
+ if (!0 === i._radixDance) {
1829
+ var f = t.indexOf(i.radixPoint);
1830
+ if (i.digitsOptional) {
1831
+ if (0 === f) return (a = t.slice().reverse()).pop(), r.trigger("setvalue", [ a.join(""), n.begin >= a.length ? a.length : n.begin ]),
1832
+ !1;
1833
+ } else if (-1 !== f && (n.begin < f || n.end < f || e.key === o.keys.Delete && (n.begin === f || n.begin - 1 === f))) {
1834
+ var p = void 0;
1835
+ return n.begin === n.end && (e.key === o.keys.Backspace || e.key === o.keys.BACKSPACE_SAFARI ? n.begin++ : e.key === o.keys.Delete && n.begin - 1 === f && (p = s.extend({}, n),
1836
+ n.begin--, n.end--)), (a = t.slice().reverse()).splice(a.length - n.begin, n.begin - n.end + 1),
1837
+ a = u(a, i.digits, i).join(""), p && (n = p), r.trigger("setvalue", [ a, n.begin >= a.length ? f + 1 : n.begin ]),
1838
+ !1;
1839
+ }
1840
+ }
1841
+ }
1842
+ }
1843
+ },
1844
+ currency: {
1845
+ prefix: "",
1846
+ groupSeparator: ",",
1847
+ alias: "numeric",
1848
+ digits: 2,
1849
+ digitsOptional: !1
1850
+ },
1851
+ decimal: {
1852
+ alias: "numeric"
1853
+ },
1854
+ integer: {
1855
+ alias: "numeric",
1856
+ inputmode: "numeric",
1857
+ digits: 0
1858
+ },
1859
+ percentage: {
1860
+ alias: "numeric",
1861
+ min: 0,
1862
+ max: 100,
1863
+ suffix: " %",
1864
+ digits: 0,
1865
+ allowMinus: !1
1866
+ },
1867
+ indianns: {
1868
+ alias: "numeric",
1869
+ _mask: function(e) {
1870
+ return "(" + e.groupSeparator + "99){*|1}(" + e.groupSeparator + "999){1|1}";
1871
+ },
1872
+ groupSeparator: ",",
1873
+ radixPoint: ".",
1874
+ placeholder: "0",
1875
+ digits: 2,
1876
+ digitsOptional: !1
1877
+ }
1878
+ });
1879
+ },
1880
+ 9380: function(e, t) {
1881
+ Object.defineProperty(t, "__esModule", {
1882
+ value: !0
1883
+ }), t.default = void 0;
1884
+ var n = !("undefined" == typeof window || !window.document || !window.document.createElement) ? window : {};
1885
+ t.default = n;
1886
+ },
1887
+ 7760: function(e, t, n) {
1888
+ Object.defineProperty(t, "__esModule", {
1889
+ value: !0
1890
+ }), t.HandleNativePlaceholder = function(e, t) {
1891
+ var n = e ? e.inputmask : this;
1892
+ if (l.ie) {
1893
+ if (e.inputmask._valueGet() !== t && (e.placeholder !== t || "" === e.placeholder)) {
1894
+ var i = r.getBuffer.call(n).slice(), a = e.inputmask._valueGet();
1895
+ if (a !== t) {
1896
+ var o = r.getLastValidPosition.call(n);
1897
+ -1 === o && a === r.getBufferTemplate.call(n).join("") ? i = [] : -1 !== o && u.call(n, i),
1898
+ p(e, i);
1899
+ }
1900
+ }
1901
+ } else e.placeholder !== t && (e.placeholder = t, "" === e.placeholder && e.removeAttribute("placeholder"));
1902
+ }, t.applyInputValue = c, t.checkVal = f, t.clearOptionalTail = u, t.unmaskedvalue = function(e) {
1903
+ var t = e ? e.inputmask : this, n = t.opts, i = t.maskset;
1904
+ if (e) {
1905
+ if (void 0 === e.inputmask) return e.value;
1906
+ e.inputmask && e.inputmask.refreshValue && c(e, e.inputmask._valueGet(!0));
1907
+ }
1908
+ for (var a = [], o = i.validPositions, l = 0, s = o.length; l < s; l++) o[l] && o[l].match && (1 != o[l].match.static || Array.isArray(i.metadata) && !0 !== o[l].generatedInput) && a.push(o[l].input);
1909
+ var u = 0 === a.length ? "" : (t.isRTL ? a.reverse() : a).join("");
1910
+ if ("function" == typeof n.onUnMask) {
1911
+ var f = (t.isRTL ? r.getBuffer.call(t).slice().reverse() : r.getBuffer.call(t)).join("");
1912
+ u = n.onUnMask.call(t, f, u, n);
1913
+ }
1914
+ return u;
1915
+ }, t.writeBuffer = p;
1916
+ var i = n(2839), a = n(4713), r = n(8711), o = n(7215), l = n(9845), s = n(6030);
1917
+ function c(e, t) {
1918
+ var n = e ? e.inputmask : this, i = n.opts;
1919
+ e.inputmask.refreshValue = !1, "function" == typeof i.onBeforeMask && (t = i.onBeforeMask.call(n, t, i) || t),
1920
+ f(e, !0, !1, t = (t || "").toString().split("")), n.undoValue = n._valueGet(!0),
1921
+ (i.clearMaskOnLostFocus || i.clearIncomplete) && e.inputmask._valueGet() === r.getBufferTemplate.call(n).join("") && -1 === r.getLastValidPosition.call(n) && e.inputmask._valueSet("");
1922
+ }
1923
+ function u(e) {
1924
+ e.length = 0;
1925
+ for (var t, n = a.getMaskTemplate.call(this, !0, 0, !0, void 0, !0); void 0 !== (t = n.shift()); ) e.push(t);
1926
+ return e;
1927
+ }
1928
+ function f(e, t, n, i, l) {
1929
+ var c = e ? e.inputmask : this, u = c.maskset, f = c.opts, d = c.dependencyLib, h = i.slice(), v = "", m = -1, g = void 0, y = f.skipOptionalPartCharacter;
1930
+ f.skipOptionalPartCharacter = "", r.resetMaskSet.call(c, !1), c.clicked = 0, m = f.radixPoint ? r.determineNewCaretPosition.call(c, {
1931
+ begin: 0,
1932
+ end: 0
1933
+ }, !1, !1 === f.__financeInput ? "radixFocus" : void 0).begin : 0, u.p = m, c.caretPos = {
1934
+ begin: m
1935
+ };
1936
+ var k = [], b = c.caretPos;
1937
+ if (h.forEach((function(e, t) {
1938
+ if (void 0 !== e) {
1939
+ var i = new d.Event("_checkval");
1940
+ i.key = e, v += e;
1941
+ var o = r.getLastValidPosition.call(c, void 0, !0);
1942
+ !function(e, t) {
1943
+ for (var n = a.getMaskTemplate.call(c, !0, 0).slice(e, r.seekNext.call(c, e, !1, !1)).join("").replace(/'/g, ""), i = n.indexOf(t); i > 0 && " " === n[i - 1]; ) i--;
1944
+ var o = 0 === i && !r.isMask.call(c, e) && (a.getTest.call(c, e).match.nativeDef === t.charAt(0) || !0 === a.getTest.call(c, e).match.static && a.getTest.call(c, e).match.nativeDef === "'" + t.charAt(0) || " " === a.getTest.call(c, e).match.nativeDef && (a.getTest.call(c, e + 1).match.nativeDef === t.charAt(0) || !0 === a.getTest.call(c, e + 1).match.static && a.getTest.call(c, e + 1).match.nativeDef === "'" + t.charAt(0)));
1945
+ if (!o && i > 0 && !r.isMask.call(c, e, !1, !0)) {
1946
+ var l = r.seekNext.call(c, e);
1947
+ c.caretPos.begin < l && (c.caretPos = {
1948
+ begin: l
1949
+ });
1950
+ }
1951
+ return o;
1952
+ }(m, v) ? (g = s.EventHandlers.keypressEvent.call(c, i, !0, !1, n, c.caretPos.begin)) && (m = c.caretPos.begin + 1,
1953
+ v = "") : g = s.EventHandlers.keypressEvent.call(c, i, !0, !1, n, o + 1), g ? (void 0 !== g.pos && u.validPositions[g.pos] && !0 === u.validPositions[g.pos].match.static && void 0 === u.validPositions[g.pos].alternation && (k.push(g.pos),
1954
+ c.isRTL || (g.forwardPosition = g.pos + 1)), p.call(c, void 0, r.getBuffer.call(c), g.forwardPosition, i, !1),
1955
+ c.caretPos = {
1956
+ begin: g.forwardPosition,
1957
+ end: g.forwardPosition
1958
+ }, b = c.caretPos) : void 0 === u.validPositions[t] && h[t] === a.getPlaceholder.call(c, t) && r.isMask.call(c, t, !0) ? c.caretPos.begin++ : c.caretPos = b;
1959
+ }
1960
+ })), k.length > 0) {
1961
+ var x, P, w = r.seekNext.call(c, -1, void 0, !1);
1962
+ if (!o.isComplete.call(c, r.getBuffer.call(c)) && k.length <= w || o.isComplete.call(c, r.getBuffer.call(c)) && k.length > 0 && k.length !== w && 0 === k[0]) for (var S = w; void 0 !== (x = k.shift()); ) {
1963
+ var O = new d.Event("_checkval");
1964
+ if ((P = u.validPositions[x]).generatedInput = !0, O.key = P.input, (g = s.EventHandlers.keypressEvent.call(c, O, !0, !1, n, S)) && void 0 !== g.pos && g.pos !== x && u.validPositions[g.pos] && !0 === u.validPositions[g.pos].match.static) k.push(g.pos); else if (!g) break;
1965
+ S++;
1966
+ }
1967
+ }
1968
+ t && p.call(c, e, r.getBuffer.call(c), g ? g.forwardPosition : c.caretPos.begin, l || new d.Event("checkval"), l && ("input" === l.type && c.undoValue !== r.getBuffer.call(c).join("") || "paste" === l.type)),
1969
+ f.skipOptionalPartCharacter = y;
1970
+ }
1971
+ function p(e, t, n, a, l) {
1972
+ var s = e ? e.inputmask : this, c = s.opts, u = s.dependencyLib;
1973
+ if (a && "function" == typeof c.onBeforeWrite) {
1974
+ var f = c.onBeforeWrite.call(s, a, t, n, c);
1975
+ if (f) {
1976
+ if (f.refreshFromBuffer) {
1977
+ var p = f.refreshFromBuffer;
1978
+ o.refreshFromBuffer.call(s, !0 === p ? p : p.start, p.end, f.buffer || t), t = r.getBuffer.call(s, !0);
1979
+ }
1980
+ void 0 !== n && (n = void 0 !== f.caret ? f.caret : n);
1981
+ }
1982
+ }
1983
+ if (void 0 !== e && (e.inputmask._valueSet(t.join("")), void 0 === n || void 0 !== a && "blur" === a.type || r.caret.call(s, e, n, void 0, void 0, void 0 !== a && "keydown" === a.type && (a.key === i.keys.Delete || a.key === i.keys.Backspace)),
1984
+ !0 === l)) {
1985
+ var d = u(e), h = e.inputmask._valueGet();
1986
+ e.inputmask.skipInputEvent = !0, d.trigger("input"), setTimeout((function() {
1987
+ h === r.getBufferTemplate.call(s).join("") ? d.trigger("cleared") : !0 === o.isComplete.call(s, t) && d.trigger("complete");
1988
+ }), 0);
1989
+ }
1990
+ }
1991
+ },
1992
+ 2394: function(e, t, n) {
1993
+ Object.defineProperty(t, "__esModule", {
1994
+ value: !0
1995
+ }), t.default = void 0;
1996
+ var i = n(157), a = v(n(4963)), r = v(n(9380)), o = n(2391), l = n(4713), s = n(8711), c = n(7215), u = n(7760), f = n(9716), p = v(n(7392)), d = v(n(3976));
1997
+ function h(e) {
1998
+ return h = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(e) {
1999
+ return typeof e;
2000
+ } : function(e) {
2001
+ return e && "function" == typeof Symbol && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
2002
+ }, h(e);
2003
+ }
2004
+ function v(e) {
2005
+ return e && e.__esModule ? e : {
2006
+ default: e
2007
+ };
2008
+ }
2009
+ var m = r.default.document, g = "_inputmask_opts";
2010
+ function y(e, t, n) {
2011
+ if (!(this instanceof y)) return new y(e, t, n);
2012
+ this.dependencyLib = a.default, this.el = void 0, this.events = {}, this.maskset = void 0,
2013
+ !0 !== n && ("[object Object]" === Object.prototype.toString.call(e) ? t = e : (t = t || {},
2014
+ e && (t.alias = e)), this.opts = a.default.extend(!0, {}, this.defaults, t), this.noMasksCache = t && void 0 !== t.definitions,
2015
+ this.userOptions = t || {}, k(this.opts.alias, t, this.opts)), this.refreshValue = !1,
2016
+ this.undoValue = void 0, this.$el = void 0, this.skipInputEvent = !1, this.validationEvent = !1,
2017
+ this.ignorable = !1, this.maxLength, this.mouseEnter = !1, this.clicked = 0, this.originalPlaceholder = void 0,
2018
+ this.isComposing = !1, this.hasAlternator = !1;
2019
+ }
2020
+ function k(e, t, n) {
2021
+ var i = y.prototype.aliases[e];
2022
+ return i ? (i.alias && k(i.alias, void 0, n), a.default.extend(!0, n, i), a.default.extend(!0, n, t),
2023
+ !0) : (null === n.mask && (n.mask = e), !1);
2024
+ }
2025
+ y.prototype = {
2026
+ dataAttribute: "data-inputmask",
2027
+ defaults: d.default,
2028
+ definitions: p.default,
2029
+ aliases: {},
2030
+ masksCache: {},
2031
+ get isRTL() {
2032
+ return this.opts.isRTL || this.opts.numericInput;
2033
+ },
2034
+ mask: function(e) {
2035
+ var t = this;
2036
+ return "string" == typeof e && (e = m.getElementById(e) || m.querySelectorAll(e)),
2037
+ (e = e.nodeName ? [ e ] : Array.isArray(e) ? e : [].slice.call(e)).forEach((function(e, n) {
2038
+ var l = a.default.extend(!0, {}, t.opts);
2039
+ if (function(e, t, n, i) {
2040
+ function o(t, a) {
2041
+ var o = "" === i ? t : i + "-" + t;
2042
+ null !== (a = void 0 !== a ? a : e.getAttribute(o)) && ("string" == typeof a && (0 === t.indexOf("on") ? a = r.default[a] : "false" === a ? a = !1 : "true" === a && (a = !0)),
2043
+ n[t] = a);
2044
+ }
2045
+ if (!0 === t.importDataAttributes) {
2046
+ var l, s, c, u, f = e.getAttribute(i);
2047
+ if (f && "" !== f && (f = f.replace(/'/g, '"'), s = JSON.parse("{" + f + "}")),
2048
+ s) for (u in c = void 0, s) if ("alias" === u.toLowerCase()) {
2049
+ c = s[u];
2050
+ break;
2051
+ }
2052
+ for (l in o("alias", c), n.alias && k(n.alias, n, t), t) {
2053
+ if (s) for (u in c = void 0, s) if (u.toLowerCase() === l.toLowerCase()) {
2054
+ c = s[u];
2055
+ break;
2056
+ }
2057
+ o(l, c);
2058
+ }
2059
+ }
2060
+ a.default.extend(!0, t, n), ("rtl" === e.dir || t.rightAlign) && (e.style.textAlign = "right");
2061
+ ("rtl" === e.dir || t.numericInput) && (e.dir = "ltr", e.removeAttribute("dir"),
2062
+ t.isRTL = !0);
2063
+ return Object.keys(n).length;
2064
+ }(e, l, a.default.extend(!0, {}, t.userOptions), t.dataAttribute)) {
2065
+ var s = (0, o.generateMaskSet)(l, t.noMasksCache);
2066
+ void 0 !== s && (void 0 !== e.inputmask && (e.inputmask.opts.autoUnmask = !0, e.inputmask.remove()),
2067
+ e.inputmask = new y(void 0, void 0, !0), e.inputmask.opts = l, e.inputmask.noMasksCache = t.noMasksCache,
2068
+ e.inputmask.userOptions = a.default.extend(!0, {}, t.userOptions), e.inputmask.el = e,
2069
+ e.inputmask.$el = (0, a.default)(e), e.inputmask.maskset = s, a.default.data(e, g, t.userOptions),
2070
+ i.mask.call(e.inputmask));
2071
+ }
2072
+ })), e && e[0] && e[0].inputmask || this;
2073
+ },
2074
+ option: function(e, t) {
2075
+ return "string" == typeof e ? this.opts[e] : "object" === h(e) ? (a.default.extend(this.userOptions, e),
2076
+ this.el && !0 !== t && this.mask(this.el), this) : void 0;
2077
+ },
2078
+ unmaskedvalue: function(e) {
2079
+ if (this.maskset = this.maskset || (0, o.generateMaskSet)(this.opts, this.noMasksCache),
2080
+ void 0 === this.el || void 0 !== e) {
2081
+ var t = ("function" == typeof this.opts.onBeforeMask && this.opts.onBeforeMask.call(this, e, this.opts) || e).split("");
2082
+ u.checkVal.call(this, void 0, !1, !1, t), "function" == typeof this.opts.onBeforeWrite && this.opts.onBeforeWrite.call(this, void 0, s.getBuffer.call(this), 0, this.opts);
2083
+ }
2084
+ return u.unmaskedvalue.call(this, this.el);
2085
+ },
2086
+ remove: function() {
2087
+ if (this.el) {
2088
+ a.default.data(this.el, g, null);
2089
+ var e = this.opts.autoUnmask ? (0, u.unmaskedvalue)(this.el) : this._valueGet(this.opts.autoUnmask);
2090
+ e !== s.getBufferTemplate.call(this).join("") ? this._valueSet(e, this.opts.autoUnmask) : this._valueSet(""),
2091
+ f.EventRuler.off(this.el), Object.getOwnPropertyDescriptor && Object.getPrototypeOf ? Object.getOwnPropertyDescriptor(Object.getPrototypeOf(this.el), "value") && this.__valueGet && Object.defineProperty(this.el, "value", {
2092
+ get: this.__valueGet,
2093
+ set: this.__valueSet,
2094
+ configurable: !0
2095
+ }) : m.__lookupGetter__ && this.el.__lookupGetter__("value") && this.__valueGet && (this.el.__defineGetter__("value", this.__valueGet),
2096
+ this.el.__defineSetter__("value", this.__valueSet)), this.el.inputmask = void 0;
2097
+ }
2098
+ return this.el;
2099
+ },
2100
+ getemptymask: function() {
2101
+ return this.maskset = this.maskset || (0, o.generateMaskSet)(this.opts, this.noMasksCache),
2102
+ (this.isRTL ? s.getBufferTemplate.call(this).reverse() : s.getBufferTemplate.call(this)).join("");
2103
+ },
2104
+ hasMaskedValue: function() {
2105
+ return !this.opts.autoUnmask;
2106
+ },
2107
+ isComplete: function() {
2108
+ return this.maskset = this.maskset || (0, o.generateMaskSet)(this.opts, this.noMasksCache),
2109
+ c.isComplete.call(this, s.getBuffer.call(this));
2110
+ },
2111
+ getmetadata: function() {
2112
+ if (this.maskset = this.maskset || (0, o.generateMaskSet)(this.opts, this.noMasksCache),
2113
+ Array.isArray(this.maskset.metadata)) {
2114
+ var e = l.getMaskTemplate.call(this, !0, 0, !1).join("");
2115
+ return this.maskset.metadata.forEach((function(t) {
2116
+ return t.mask !== e || (e = t, !1);
2117
+ })), e;
2118
+ }
2119
+ return this.maskset.metadata;
2120
+ },
2121
+ isValid: function(e) {
2122
+ if (this.maskset = this.maskset || (0, o.generateMaskSet)(this.opts, this.noMasksCache),
2123
+ e) {
2124
+ var t = ("function" == typeof this.opts.onBeforeMask && this.opts.onBeforeMask.call(this, e, this.opts) || e).split("");
2125
+ u.checkVal.call(this, void 0, !0, !1, t);
2126
+ } else e = this.isRTL ? s.getBuffer.call(this).slice().reverse().join("") : s.getBuffer.call(this).join("");
2127
+ for (var n = s.getBuffer.call(this), i = s.determineLastRequiredPosition.call(this), a = n.length - 1; a > i && !s.isMask.call(this, a); a--) ;
2128
+ return n.splice(i, a + 1 - i), c.isComplete.call(this, n) && e === (this.isRTL ? s.getBuffer.call(this).slice().reverse().join("") : s.getBuffer.call(this).join(""));
2129
+ },
2130
+ format: function(e, t) {
2131
+ this.maskset = this.maskset || (0, o.generateMaskSet)(this.opts, this.noMasksCache);
2132
+ var n = ("function" == typeof this.opts.onBeforeMask && this.opts.onBeforeMask.call(this, e, this.opts) || e).split("");
2133
+ u.checkVal.call(this, void 0, !0, !1, n);
2134
+ var i = this.isRTL ? s.getBuffer.call(this).slice().reverse().join("") : s.getBuffer.call(this).join("");
2135
+ return t ? {
2136
+ value: i,
2137
+ metadata: this.getmetadata()
2138
+ } : i;
2139
+ },
2140
+ setValue: function(e) {
2141
+ this.el && (0, a.default)(this.el).trigger("setvalue", [ e ]);
2142
+ },
2143
+ analyseMask: o.analyseMask
2144
+ }, y.extendDefaults = function(e) {
2145
+ a.default.extend(!0, y.prototype.defaults, e);
2146
+ }, y.extendDefinitions = function(e) {
2147
+ a.default.extend(!0, y.prototype.definitions, e);
2148
+ }, y.extendAliases = function(e) {
2149
+ a.default.extend(!0, y.prototype.aliases, e);
2150
+ }, y.format = function(e, t, n) {
2151
+ return y(t).format(e, n);
2152
+ }, y.unmask = function(e, t) {
2153
+ return y(t).unmaskedvalue(e);
2154
+ }, y.isValid = function(e, t) {
2155
+ return y(t).isValid(e);
2156
+ }, y.remove = function(e) {
2157
+ "string" == typeof e && (e = m.getElementById(e) || m.querySelectorAll(e)), (e = e.nodeName ? [ e ] : e).forEach((function(e) {
2158
+ e.inputmask && e.inputmask.remove();
2159
+ }));
2160
+ }, y.setValue = function(e, t) {
2161
+ "string" == typeof e && (e = m.getElementById(e) || m.querySelectorAll(e)), (e = e.nodeName ? [ e ] : e).forEach((function(e) {
2162
+ e.inputmask ? e.inputmask.setValue(t) : (0, a.default)(e).trigger("setvalue", [ t ]);
2163
+ }));
2164
+ }, y.dependencyLib = a.default, r.default.Inputmask = y;
2165
+ var b = y;
2166
+ t.default = b;
2167
+ },
2168
+ 5296: function(e, t, n) {
2169
+ function i(e) {
2170
+ return i = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(e) {
2171
+ return typeof e;
2172
+ } : function(e) {
2173
+ return e && "function" == typeof Symbol && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
2174
+ }, i(e);
2175
+ }
2176
+ var a = d(n(9380)), r = d(n(2394));
2177
+ function l(e) {
2178
+ var t = u();
2179
+ return function() {
2180
+ var n, a = p(e);
2181
+ if (t) {
2182
+ var r = p(this).constructor;
2183
+ n = Reflect.construct(a, arguments, r);
2184
+ } else n = a.apply(this, arguments);
2185
+ return function(e, t) {
2186
+ if (t && ("object" === i(t) || "function" == typeof t)) return t;
2187
+ if (void 0 !== t) throw new TypeError("Derived constructors may only return object or undefined");
2188
+ return function(e) {
2189
+ if (void 0 === e) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
2190
+ return e;
2191
+ }(e);
2192
+ }(this, n);
2193
+ };
2194
+ }
2195
+ function s(e) {
2196
+ var t = "function" == typeof Map ? new Map : void 0;
2197
+ return s = function(e) {
2198
+ if (null === e || (n = e, -1 === Function.toString.call(n).indexOf("[native code]"))) return e;
2199
+ var n;
2200
+ if ("function" != typeof e) throw new TypeError("Super expression must either be null or a function");
2201
+ if (void 0 !== t) {
2202
+ if (t.has(e)) return t.get(e);
2203
+ t.set(e, i);
2204
+ }
2205
+ function i() {
2206
+ return c(e, arguments, p(this).constructor);
2207
+ }
2208
+ return i.prototype = Object.create(e.prototype, {
2209
+ constructor: {
2210
+ value: i,
2211
+ enumerable: !1,
2212
+ writable: !0,
2213
+ configurable: !0
2214
+ }
2215
+ }), f(i, e);
2216
+ }, s(e);
2217
+ }
2218
+ function c(e, t, n) {
2219
+ return c = u() ? Reflect.construct.bind() : function(e, t, n) {
2220
+ var i = [ null ];
2221
+ i.push.apply(i, t);
2222
+ var a = new (Function.bind.apply(e, i));
2223
+ return n && f(a, n.prototype), a;
2224
+ }, c.apply(null, arguments);
2225
+ }
2226
+ function u() {
2227
+ if ("undefined" == typeof Reflect || !Reflect.construct) return !1;
2228
+ if (Reflect.construct.sham) return !1;
2229
+ if ("function" == typeof Proxy) return !0;
2230
+ try {
2231
+ return Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], (function() {}))),
2232
+ !0;
2233
+ } catch (e) {
2234
+ return !1;
2235
+ }
2236
+ }
2237
+ function f(e, t) {
2238
+ return f = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(e, t) {
2239
+ return e.__proto__ = t, e;
2240
+ }, f(e, t);
2241
+ }
2242
+ function p(e) {
2243
+ return p = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function(e) {
2244
+ return e.__proto__ || Object.getPrototypeOf(e);
2245
+ }, p(e);
2246
+ }
2247
+ function d(e) {
2248
+ return e && e.__esModule ? e : {
2249
+ default: e
2250
+ };
2251
+ }
2252
+ var h = a.default.document;
2253
+ if (h && h.head && h.head.attachShadow && a.default.customElements && void 0 === a.default.customElements.get("input-mask")) {
2254
+ var v = function(e) {
2255
+ !function(e, t) {
2256
+ if ("function" != typeof t && null !== t) throw new TypeError("Super expression must either be null or a function");
2257
+ e.prototype = Object.create(t && t.prototype, {
2258
+ constructor: {
2259
+ value: e,
2260
+ writable: !0,
2261
+ configurable: !0
2262
+ }
2263
+ }), Object.defineProperty(e, "prototype", {
2264
+ writable: !1
2265
+ }), t && f(e, t);
2266
+ }(s, e);
2267
+ var t, a = l(s);
2268
+ function s() {
2269
+ var e;
2270
+ !function(e, t) {
2271
+ if (!(e instanceof t)) throw new TypeError("Cannot call a class as a function");
2272
+ }(this, s);
2273
+ var t = (e = a.call(this)).getAttributeNames(), n = e.attachShadow({
2274
+ mode: "closed"
2275
+ }), i = h.createElement("input");
2276
+ for (var o in i.type = "text", n.appendChild(i), t) Object.prototype.hasOwnProperty.call(t, o) && i.setAttribute(t[o], e.getAttribute(t[o]));
2277
+ var l = new r.default;
2278
+ return l.dataAttribute = "", l.mask(i), i.inputmask.shadowRoot = n, e;
2279
+ }
2280
+ return t = s, Object.defineProperty(t, "prototype", {
2281
+ writable: !1
2282
+ }), t;
2283
+ }(s(HTMLElement));
2284
+ a.default.customElements.define("input-mask", v);
2285
+ }
2286
+ },
2287
+ 2839: function(e, t) {
2288
+ function n(e) {
2289
+ return n = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(e) {
2290
+ return typeof e;
2291
+ } : function(e) {
2292
+ return e && "function" == typeof Symbol && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
2293
+ }, n(e);
2294
+ }
2295
+ function i(e, t) {
2296
+ return function(e) {
2297
+ if (Array.isArray(e)) return e;
2298
+ }(e) || function(e, t) {
2299
+ var n = null == e ? null : "undefined" != typeof Symbol && e[Symbol.iterator] || e["@@iterator"];
2300
+ if (null != n) {
2301
+ var i, a, r, o, l = [], s = !0, c = !1;
2302
+ try {
2303
+ if (r = (n = n.call(e)).next, 0 === t) {
2304
+ if (Object(n) !== n) return;
2305
+ s = !1;
2306
+ } else for (;!(s = (i = r.call(n)).done) && (l.push(i.value), l.length !== t); s = !0) ;
2307
+ } catch (e) {
2308
+ c = !0, a = e;
2309
+ } finally {
2310
+ try {
2311
+ if (!s && null != n.return && (o = n.return(), Object(o) !== o)) return;
2312
+ } finally {
2313
+ if (c) throw a;
2314
+ }
2315
+ }
2316
+ return l;
2317
+ }
2318
+ }(e, t) || function(e, t) {
2319
+ if (!e) return;
2320
+ if ("string" == typeof e) return a(e, t);
2321
+ var n = Object.prototype.toString.call(e).slice(8, -1);
2322
+ "Object" === n && e.constructor && (n = e.constructor.name);
2323
+ if ("Map" === n || "Set" === n) return Array.from(e);
2324
+ if ("Arguments" === n || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return a(e, t);
2325
+ }(e, t) || function() {
2326
+ throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
2327
+ }();
2328
+ }
2329
+ function a(e, t) {
2330
+ (null == t || t > e.length) && (t = e.length);
2331
+ for (var n = 0, i = new Array(t); n < t; n++) i[n] = e[n];
2332
+ return i;
2333
+ }
2334
+ function r(e, t) {
2335
+ var n = Object.keys(e);
2336
+ if (Object.getOwnPropertySymbols) {
2337
+ var i = Object.getOwnPropertySymbols(e);
2338
+ t && (i = i.filter((function(t) {
2339
+ return Object.getOwnPropertyDescriptor(e, t).enumerable;
2340
+ }))), n.push.apply(n, i);
2341
+ }
2342
+ return n;
2343
+ }
2344
+ function o(e, t, i) {
2345
+ return (t = function(e) {
2346
+ var t = function(e, t) {
2347
+ if ("object" !== n(e) || null === e) return e;
2348
+ var i = e[Symbol.toPrimitive];
2349
+ if (void 0 !== i) {
2350
+ var a = i.call(e, t || "default");
2351
+ if ("object" !== n(a)) return a;
2352
+ throw new TypeError("@@toPrimitive must return a primitive value.");
2353
+ }
2354
+ return ("string" === t ? String : Number)(e);
2355
+ }(e, "string");
2356
+ return "symbol" === n(t) ? t : String(t);
2357
+ }(t)) in e ? Object.defineProperty(e, t, {
2358
+ value: i,
2359
+ enumerable: !0,
2360
+ configurable: !0,
2361
+ writable: !0
2362
+ }) : e[t] = i, e;
2363
+ }
2364
+ Object.defineProperty(t, "__esModule", {
2365
+ value: !0
2366
+ }), t.keys = t.keyCode = t.ignorables = void 0, t.toKey = function(e, t) {
2367
+ return c[e] || (t ? String.fromCharCode(e) : String.fromCharCode(e).toLowerCase());
2368
+ }, t.toKeyCode = function(e) {
2369
+ return s[e];
2370
+ };
2371
+ var l = {
2372
+ Alt: 18,
2373
+ AltGraph: 18,
2374
+ ArrowDown: 40,
2375
+ ArrowLeft: 37,
2376
+ ArrowRight: 39,
2377
+ ArrowUp: 38,
2378
+ Backspace: 8,
2379
+ CapsLock: 20,
2380
+ Control: 17,
2381
+ ContextMenu: 93,
2382
+ Dead: 221,
2383
+ Delete: 46,
2384
+ End: 35,
2385
+ Escape: 27,
2386
+ F1: 112,
2387
+ F2: 113,
2388
+ F3: 114,
2389
+ F4: 115,
2390
+ F5: 116,
2391
+ F6: 117,
2392
+ F7: 118,
2393
+ F8: 119,
2394
+ F9: 120,
2395
+ F10: 121,
2396
+ F11: 122,
2397
+ F12: 123,
2398
+ Home: 36,
2399
+ Insert: 45,
2400
+ NumLock: 144,
2401
+ PageDown: 34,
2402
+ PageUp: 33,
2403
+ Pause: 19,
2404
+ PrintScreen: 44,
2405
+ Process: 229,
2406
+ Shift: 16,
2407
+ ScrollLock: 145,
2408
+ Tab: 9,
2409
+ Unidentified: 229
2410
+ };
2411
+ t.ignorables = l;
2412
+ var s = function(e) {
2413
+ for (var t = 1; t < arguments.length; t++) {
2414
+ var n = null != arguments[t] ? arguments[t] : {};
2415
+ t % 2 ? r(Object(n), !0).forEach((function(t) {
2416
+ o(e, t, n[t]);
2417
+ })) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : r(Object(n)).forEach((function(t) {
2418
+ Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
2419
+ }));
2420
+ }
2421
+ return e;
2422
+ }({
2423
+ c: 67,
2424
+ x: 88,
2425
+ z: 90,
2426
+ BACKSPACE_SAFARI: 127,
2427
+ Enter: 13,
2428
+ Meta_LEFT: 91,
2429
+ Meta_RIGHT: 92,
2430
+ Space: 32
2431
+ }, l);
2432
+ t.keyCode = s;
2433
+ var c = Object.entries(s).reduce((function(e, t) {
2434
+ var n = i(t, 2), a = n[0], r = n[1];
2435
+ return e[r] = void 0 === e[r] ? a : e[r], e;
2436
+ }), {}), u = Object.entries(s).reduce((function(e, t) {
2437
+ var n = i(t, 2), a = n[0];
2438
+ n[1];
2439
+ return e[a] = "Space" === a ? " " : a, e;
2440
+ }), {});
2441
+ t.keys = u;
2442
+ },
2443
+ 2391: function(e, t, n) {
2444
+ Object.defineProperty(t, "__esModule", {
2445
+ value: !0
2446
+ }), t.analyseMask = function(e, t, n) {
2447
+ var i, o, l, s, c, u, f = /(?:[?*+]|\{[0-9+*]+(?:,[0-9+*]*)?(?:\|[0-9+*]*)?\})|[^.?*+^${[]()|\\]+|./g, p = /\[\^?]?(?:[^\\\]]+|\\[\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, d = !1, h = new a.default, v = [], m = [], g = !1;
2448
+ function y(e, i, a) {
2449
+ a = void 0 !== a ? a : e.matches.length;
2450
+ var o = e.matches[a - 1];
2451
+ if (t) {
2452
+ if (0 === i.indexOf("[") || d && /\\d|\\s|\\w|\\p/i.test(i) || "." === i) {
2453
+ var l = n.casing ? "i" : "";
2454
+ /^\\p\{.*}$/i.test(i) && (l += "u"), e.matches.splice(a++, 0, {
2455
+ fn: new RegExp(i, l),
2456
+ static: !1,
2457
+ optionality: !1,
2458
+ newBlockMarker: void 0 === o ? "master" : o.def !== i,
2459
+ casing: null,
2460
+ def: i,
2461
+ placeholder: void 0,
2462
+ nativeDef: i
2463
+ });
2464
+ } else d && (i = i[i.length - 1]), i.split("").forEach((function(t, i) {
2465
+ o = e.matches[a - 1], e.matches.splice(a++, 0, {
2466
+ fn: /[a-z]/i.test(n.staticDefinitionSymbol || t) ? new RegExp("[" + (n.staticDefinitionSymbol || t) + "]", n.casing ? "i" : "") : null,
2467
+ static: !0,
2468
+ optionality: !1,
2469
+ newBlockMarker: void 0 === o ? "master" : o.def !== t && !0 !== o.static,
2470
+ casing: null,
2471
+ def: n.staticDefinitionSymbol || t,
2472
+ placeholder: void 0 !== n.staticDefinitionSymbol ? t : void 0,
2473
+ nativeDef: (d ? "'" : "") + t
2474
+ });
2475
+ }));
2476
+ d = !1;
2477
+ } else {
2478
+ var s = n.definitions && n.definitions[i] || n.usePrototypeDefinitions && r.default.prototype.definitions[i];
2479
+ s && !d ? e.matches.splice(a++, 0, {
2480
+ fn: s.validator ? "string" == typeof s.validator ? new RegExp(s.validator, n.casing ? "i" : "") : new function() {
2481
+ this.test = s.validator;
2482
+ } : new RegExp("."),
2483
+ static: s.static || !1,
2484
+ optionality: s.optional || !1,
2485
+ defOptionality: s.optional || !1,
2486
+ newBlockMarker: void 0 === o || s.optional ? "master" : o.def !== (s.definitionSymbol || i),
2487
+ casing: s.casing,
2488
+ def: s.definitionSymbol || i,
2489
+ placeholder: s.placeholder,
2490
+ nativeDef: i,
2491
+ generated: s.generated
2492
+ }) : (e.matches.splice(a++, 0, {
2493
+ fn: /[a-z]/i.test(n.staticDefinitionSymbol || i) ? new RegExp("[" + (n.staticDefinitionSymbol || i) + "]", n.casing ? "i" : "") : null,
2494
+ static: !0,
2495
+ optionality: !1,
2496
+ newBlockMarker: void 0 === o ? "master" : o.def !== i && !0 !== o.static,
2497
+ casing: null,
2498
+ def: n.staticDefinitionSymbol || i,
2499
+ placeholder: void 0 !== n.staticDefinitionSymbol ? i : void 0,
2500
+ nativeDef: (d ? "'" : "") + i
2501
+ }), d = !1);
2502
+ }
2503
+ }
2504
+ function k() {
2505
+ if (v.length > 0) {
2506
+ if (y(s = v[v.length - 1], o), s.isAlternator) {
2507
+ c = v.pop();
2508
+ for (var e = 0; e < c.matches.length; e++) c.matches[e].isGroup && (c.matches[e].isGroup = !1);
2509
+ v.length > 0 ? (s = v[v.length - 1]).matches.push(c) : h.matches.push(c);
2510
+ }
2511
+ } else y(h, o);
2512
+ }
2513
+ function b(e) {
2514
+ var t = new a.default(!0);
2515
+ return t.openGroup = !1, t.matches = e, t;
2516
+ }
2517
+ function x() {
2518
+ if ((l = v.pop()).openGroup = !1, void 0 !== l) if (v.length > 0) {
2519
+ if ((s = v[v.length - 1]).matches.push(l), s.isAlternator) {
2520
+ for (var e = (c = v.pop()).matches[0].matches ? c.matches[0].matches.length : 1, t = 0; t < c.matches.length; t++) c.matches[t].isGroup = !1,
2521
+ c.matches[t].alternatorGroup = !1, null === n.keepStatic && e < (c.matches[t].matches ? c.matches[t].matches.length : 1) && (n.keepStatic = !0),
2522
+ e = c.matches[t].matches ? c.matches[t].matches.length : 1;
2523
+ v.length > 0 ? (s = v[v.length - 1]).matches.push(c) : h.matches.push(c);
2524
+ }
2525
+ } else h.matches.push(l); else k();
2526
+ }
2527
+ function P(e) {
2528
+ var t = e.pop();
2529
+ return t.isQuantifier && (t = b([ e.pop(), t ])), t;
2530
+ }
2531
+ t && (n.optionalmarker[0] = void 0, n.optionalmarker[1] = void 0);
2532
+ for (;i = t ? p.exec(e) : f.exec(e); ) {
2533
+ if (o = i[0], t) {
2534
+ switch (o.charAt(0)) {
2535
+ case "?":
2536
+ o = "{0,1}";
2537
+ break;
2538
+
2539
+ case "+":
2540
+ case "*":
2541
+ o = "{" + o + "}";
2542
+ break;
2543
+
2544
+ case "|":
2545
+ if (0 === v.length) {
2546
+ var w = b(h.matches);
2547
+ w.openGroup = !0, v.push(w), h.matches = [], g = !0;
2548
+ }
2549
+ }
2550
+ switch (o) {
2551
+ case "\\d":
2552
+ o = "[0-9]";
2553
+ break;
2554
+
2555
+ case "\\p":
2556
+ o += p.exec(e)[0], o += p.exec(e)[0];
2557
+ }
2558
+ }
2559
+ if (d) k(); else switch (o.charAt(0)) {
2560
+ case "$":
2561
+ case "^":
2562
+ t || k();
2563
+ break;
2564
+
2565
+ case n.escapeChar:
2566
+ d = !0, t && k();
2567
+ break;
2568
+
2569
+ case n.optionalmarker[1]:
2570
+ case n.groupmarker[1]:
2571
+ x();
2572
+ break;
2573
+
2574
+ case n.optionalmarker[0]:
2575
+ v.push(new a.default(!1, !0));
2576
+ break;
2577
+
2578
+ case n.groupmarker[0]:
2579
+ v.push(new a.default(!0));
2580
+ break;
2581
+
2582
+ case n.quantifiermarker[0]:
2583
+ var S = new a.default(!1, !1, !0), O = (o = o.replace(/[{}?]/g, "")).split("|"), _ = O[0].split(","), E = isNaN(_[0]) ? _[0] : parseInt(_[0]), M = 1 === _.length ? E : isNaN(_[1]) ? _[1] : parseInt(_[1]), j = isNaN(O[1]) ? O[1] : parseInt(O[1]);
2584
+ "*" !== E && "+" !== E || (E = "*" === M ? 0 : 1), S.quantifier = {
2585
+ min: E,
2586
+ max: M,
2587
+ jit: j
2588
+ };
2589
+ var T = v.length > 0 ? v[v.length - 1].matches : h.matches;
2590
+ (i = T.pop()).isGroup || (i = b([ i ])), T.push(i), T.push(S);
2591
+ break;
2592
+
2593
+ case n.alternatormarker:
2594
+ if (v.length > 0) {
2595
+ var A = (s = v[v.length - 1]).matches[s.matches.length - 1];
2596
+ u = s.openGroup && (void 0 === A.matches || !1 === A.isGroup && !1 === A.isAlternator) ? v.pop() : P(s.matches);
2597
+ } else u = P(h.matches);
2598
+ if (u.isAlternator) v.push(u); else if (u.alternatorGroup ? (c = v.pop(), u.alternatorGroup = !1) : c = new a.default(!1, !1, !1, !0),
2599
+ c.matches.push(u), v.push(c), u.openGroup) {
2600
+ u.openGroup = !1;
2601
+ var D = new a.default(!0);
2602
+ D.alternatorGroup = !0, v.push(D);
2603
+ }
2604
+ break;
2605
+
2606
+ default:
2607
+ k();
2608
+ }
2609
+ }
2610
+ g && x();
2611
+ for (;v.length > 0; ) l = v.pop(), h.matches.push(l);
2612
+ h.matches.length > 0 && (!function e(i) {
2613
+ i && i.matches && i.matches.forEach((function(a, r) {
2614
+ var o = i.matches[r + 1];
2615
+ (void 0 === o || void 0 === o.matches || !1 === o.isQuantifier) && a && a.isGroup && (a.isGroup = !1,
2616
+ t || (y(a, n.groupmarker[0], 0), !0 !== a.openGroup && y(a, n.groupmarker[1]))),
2617
+ e(a);
2618
+ }));
2619
+ }(h), m.push(h));
2620
+ (n.numericInput || n.isRTL) && function e(t) {
2621
+ for (var i in t.matches = t.matches.reverse(), t.matches) if (Object.prototype.hasOwnProperty.call(t.matches, i)) {
2622
+ var a = parseInt(i);
2623
+ if (t.matches[i].isQuantifier && t.matches[a + 1] && t.matches[a + 1].isGroup) {
2624
+ var r = t.matches[i];
2625
+ t.matches.splice(i, 1), t.matches.splice(a + 1, 0, r);
2626
+ }
2627
+ void 0 !== t.matches[i].matches ? t.matches[i] = e(t.matches[i]) : t.matches[i] = ((o = t.matches[i]) === n.optionalmarker[0] ? o = n.optionalmarker[1] : o === n.optionalmarker[1] ? o = n.optionalmarker[0] : o === n.groupmarker[0] ? o = n.groupmarker[1] : o === n.groupmarker[1] && (o = n.groupmarker[0]),
2628
+ o);
2629
+ }
2630
+ var o;
2631
+ return t;
2632
+ }(m[0]);
2633
+ return m;
2634
+ }, t.generateMaskSet = function(e, t) {
2635
+ var n;
2636
+ function a(e, t) {
2637
+ var n = t.repeat, i = t.groupmarker, a = t.quantifiermarker, r = t.keepStatic;
2638
+ if (n > 0 || "*" === n || "+" === n) {
2639
+ var s = "*" === n ? 0 : "+" === n ? 1 : n;
2640
+ e = i[0] + e + i[1] + a[0] + s + "," + n + a[1];
2641
+ }
2642
+ if (!0 === r) {
2643
+ var c = e.match(new RegExp("(.)\\[([^\\]]*)\\]", "g"));
2644
+ c && c.forEach((function(t, n) {
2645
+ var i = function(e, t) {
2646
+ return function(e) {
2647
+ if (Array.isArray(e)) return e;
2648
+ }(e) || function(e, t) {
2649
+ var n = null == e ? null : "undefined" != typeof Symbol && e[Symbol.iterator] || e["@@iterator"];
2650
+ if (null != n) {
2651
+ var i, a, r, o, l = [], s = !0, c = !1;
2652
+ try {
2653
+ if (r = (n = n.call(e)).next, 0 === t) {
2654
+ if (Object(n) !== n) return;
2655
+ s = !1;
2656
+ } else for (;!(s = (i = r.call(n)).done) && (l.push(i.value), l.length !== t); s = !0) ;
2657
+ } catch (e) {
2658
+ c = !0, a = e;
2659
+ } finally {
2660
+ try {
2661
+ if (!s && null != n.return && (o = n.return(), Object(o) !== o)) return;
2662
+ } finally {
2663
+ if (c) throw a;
2664
+ }
2665
+ }
2666
+ return l;
2667
+ }
2668
+ }(e, t) || function(e, t) {
2669
+ if (!e) return;
2670
+ if ("string" == typeof e) return l(e, t);
2671
+ var n = Object.prototype.toString.call(e).slice(8, -1);
2672
+ "Object" === n && e.constructor && (n = e.constructor.name);
2673
+ if ("Map" === n || "Set" === n) return Array.from(e);
2674
+ if ("Arguments" === n || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return l(e, t);
2675
+ }(e, t) || function() {
2676
+ throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
2677
+ }();
2678
+ }(t.split("["), 2), a = i[0], r = i[1];
2679
+ r = r.replace("]", ""), e = e.replace(new RegExp("".concat((0, o.default)(a), "\\[").concat((0, o.default)(r), "\\]")), a.charAt(0) === r.charAt(0) ? "(".concat(a, "|").concat(a).concat(r, ")") : "".concat(a, "[").concat(r, "]"));
2680
+ }));
2681
+ }
2682
+ return e;
2683
+ }
2684
+ function s(e, n, o) {
2685
+ var l, s, c = !1;
2686
+ return null !== e && "" !== e || ((c = null !== o.regex) ? e = (e = o.regex).replace(/^(\^)(.*)(\$)$/, "$2") : (c = !0,
2687
+ e = ".*")), 1 === e.length && !1 === o.greedy && 0 !== o.repeat && (o.placeholder = ""),
2688
+ e = a(e, o), s = c ? "regex_" + o.regex : o.numericInput ? e.split("").reverse().join("") : e,
2689
+ null !== o.keepStatic && (s = "ks_" + o.keepStatic + s), void 0 === r.default.prototype.masksCache[s] || !0 === t ? (l = {
2690
+ mask: e,
2691
+ maskToken: r.default.prototype.analyseMask(e, c, o),
2692
+ validPositions: [],
2693
+ _buffer: void 0,
2694
+ buffer: void 0,
2695
+ tests: {},
2696
+ excludes: {},
2697
+ metadata: n,
2698
+ maskLength: void 0,
2699
+ jitOffset: {}
2700
+ }, !0 !== t && (r.default.prototype.masksCache[s] = l, l = i.default.extend(!0, {}, r.default.prototype.masksCache[s]))) : l = i.default.extend(!0, {}, r.default.prototype.masksCache[s]),
2701
+ l;
2702
+ }
2703
+ "function" == typeof e.mask && (e.mask = e.mask(e));
2704
+ if (Array.isArray(e.mask)) {
2705
+ if (e.mask.length > 1) {
2706
+ null === e.keepStatic && (e.keepStatic = !0);
2707
+ var c = e.groupmarker[0];
2708
+ return (e.isRTL ? e.mask.reverse() : e.mask).forEach((function(t) {
2709
+ c.length > 1 && (c += e.alternatormarker), void 0 !== t.mask && "function" != typeof t.mask ? c += t.mask : c += t;
2710
+ })), s(c += e.groupmarker[1], e.mask, e);
2711
+ }
2712
+ e.mask = e.mask.pop();
2713
+ }
2714
+ n = e.mask && void 0 !== e.mask.mask && "function" != typeof e.mask.mask ? s(e.mask.mask, e.mask, e) : s(e.mask, e.mask, e);
2715
+ null === e.keepStatic && (e.keepStatic = !1);
2716
+ return n;
2717
+ };
2718
+ var i = s(n(4963)), a = s(n(9695)), r = s(n(2394)), o = s(n(7184));
2719
+ function l(e, t) {
2720
+ (null == t || t > e.length) && (t = e.length);
2721
+ for (var n = 0, i = new Array(t); n < t; n++) i[n] = e[n];
2722
+ return i;
2723
+ }
2724
+ function s(e) {
2725
+ return e && e.__esModule ? e : {
2726
+ default: e
2727
+ };
2728
+ }
2729
+ },
2730
+ 157: function(e, t, n) {
2731
+ Object.defineProperty(t, "__esModule", {
2732
+ value: !0
2733
+ }), t.mask = function() {
2734
+ var e = this, t = this.opts, n = this.el, u = this.dependencyLib;
2735
+ o.EventRuler.off(n);
2736
+ var f = function(t, n) {
2737
+ "textarea" !== t.tagName.toLowerCase() && n.ignorables.push(i.keys.Enter);
2738
+ var l = t.getAttribute("type"), s = "input" === t.tagName.toLowerCase() && n.supportsInputType.includes(l) || t.isContentEditable || "textarea" === t.tagName.toLowerCase();
2739
+ if (!s) if ("input" === t.tagName.toLowerCase()) {
2740
+ var c = document.createElement("input");
2741
+ c.setAttribute("type", l), s = "text" === c.type, c = null;
2742
+ } else s = "partial";
2743
+ return !1 !== s ? function(t) {
2744
+ var i, l;
2745
+ function s() {
2746
+ return this.inputmask ? this.inputmask.opts.autoUnmask ? this.inputmask.unmaskedvalue() : -1 !== a.getLastValidPosition.call(e) || !0 !== n.nullable ? (this.inputmask.shadowRoot || this.ownerDocument).activeElement === this && n.clearMaskOnLostFocus ? (e.isRTL ? r.clearOptionalTail.call(e, a.getBuffer.call(e).slice()).reverse() : r.clearOptionalTail.call(e, a.getBuffer.call(e).slice())).join("") : i.call(this) : "" : i.call(this);
2747
+ }
2748
+ function c(e) {
2749
+ l.call(this, e), this.inputmask && (0, r.applyInputValue)(this, e);
2750
+ }
2751
+ if (!t.inputmask.__valueGet) {
2752
+ if (!0 !== n.noValuePatching) {
2753
+ if (Object.getOwnPropertyDescriptor) {
2754
+ var f = Object.getPrototypeOf ? Object.getOwnPropertyDescriptor(Object.getPrototypeOf(t), "value") : void 0;
2755
+ f && f.get && f.set ? (i = f.get, l = f.set, Object.defineProperty(t, "value", {
2756
+ get: s,
2757
+ set: c,
2758
+ configurable: !0
2759
+ })) : "input" !== t.tagName.toLowerCase() && (i = function() {
2760
+ return this.textContent;
2761
+ }, l = function(e) {
2762
+ this.textContent = e;
2763
+ }, Object.defineProperty(t, "value", {
2764
+ get: s,
2765
+ set: c,
2766
+ configurable: !0
2767
+ }));
2768
+ } else document.__lookupGetter__ && t.__lookupGetter__("value") && (i = t.__lookupGetter__("value"),
2769
+ l = t.__lookupSetter__("value"), t.__defineGetter__("value", s), t.__defineSetter__("value", c));
2770
+ t.inputmask.__valueGet = i, t.inputmask.__valueSet = l;
2771
+ }
2772
+ t.inputmask._valueGet = function(t) {
2773
+ return e.isRTL && !0 !== t ? i.call(this.el).split("").reverse().join("") : i.call(this.el);
2774
+ }, t.inputmask._valueSet = function(t, n) {
2775
+ l.call(this.el, null == t ? "" : !0 !== n && e.isRTL ? t.split("").reverse().join("") : t);
2776
+ }, void 0 === i && (i = function() {
2777
+ return this.value;
2778
+ }, l = function(e) {
2779
+ this.value = e;
2780
+ }, function(t) {
2781
+ if (u.valHooks && (void 0 === u.valHooks[t] || !0 !== u.valHooks[t].inputmaskpatch)) {
2782
+ var i = u.valHooks[t] && u.valHooks[t].get ? u.valHooks[t].get : function(e) {
2783
+ return e.value;
2784
+ }, o = u.valHooks[t] && u.valHooks[t].set ? u.valHooks[t].set : function(e, t) {
2785
+ return e.value = t, e;
2786
+ };
2787
+ u.valHooks[t] = {
2788
+ get: function(t) {
2789
+ if (t.inputmask) {
2790
+ if (t.inputmask.opts.autoUnmask) return t.inputmask.unmaskedvalue();
2791
+ var r = i(t);
2792
+ return -1 !== a.getLastValidPosition.call(e, void 0, void 0, t.inputmask.maskset.validPositions) || !0 !== n.nullable ? r : "";
2793
+ }
2794
+ return i(t);
2795
+ },
2796
+ set: function(e, t) {
2797
+ var n = o(e, t);
2798
+ return e.inputmask && (0, r.applyInputValue)(e, t), n;
2799
+ },
2800
+ inputmaskpatch: !0
2801
+ };
2802
+ }
2803
+ }(t.type), function(e) {
2804
+ o.EventRuler.on(e, "mouseenter", (function() {
2805
+ var e = this, t = e.inputmask._valueGet(!0);
2806
+ t != (e.inputmask.isRTL ? a.getBuffer.call(e.inputmask).slice().reverse() : a.getBuffer.call(e.inputmask)).join("") && (0, r.applyInputValue)(e, t);
2807
+ }));
2808
+ }(t));
2809
+ }
2810
+ }(t) : t.inputmask = void 0, s;
2811
+ }(n, t);
2812
+ if (!1 !== f) {
2813
+ e.originalPlaceholder = n.placeholder, e.maxLength = void 0 !== n ? n.maxLength : void 0,
2814
+ -1 === e.maxLength && (e.maxLength = void 0), "inputMode" in n && null === n.getAttribute("inputmode") && (n.inputMode = t.inputmode,
2815
+ n.setAttribute("inputmode", t.inputmode)), !0 === f && (t.showMaskOnFocus = t.showMaskOnFocus && -1 === [ "cc-number", "cc-exp" ].indexOf(n.autocomplete),
2816
+ l.iphone && (t.insertModeVisual = !1, n.setAttribute("autocorrect", "off")), o.EventRuler.on(n, "submit", c.EventHandlers.submitEvent),
2817
+ o.EventRuler.on(n, "reset", c.EventHandlers.resetEvent), o.EventRuler.on(n, "blur", c.EventHandlers.blurEvent),
2818
+ o.EventRuler.on(n, "focus", c.EventHandlers.focusEvent), o.EventRuler.on(n, "invalid", c.EventHandlers.invalidEvent),
2819
+ o.EventRuler.on(n, "click", c.EventHandlers.clickEvent), o.EventRuler.on(n, "mouseleave", c.EventHandlers.mouseleaveEvent),
2820
+ o.EventRuler.on(n, "mouseenter", c.EventHandlers.mouseenterEvent), o.EventRuler.on(n, "paste", c.EventHandlers.pasteEvent),
2821
+ o.EventRuler.on(n, "cut", c.EventHandlers.cutEvent), o.EventRuler.on(n, "complete", t.oncomplete),
2822
+ o.EventRuler.on(n, "incomplete", t.onincomplete), o.EventRuler.on(n, "cleared", t.oncleared),
2823
+ !0 !== t.inputEventOnly && o.EventRuler.on(n, "keydown", c.EventHandlers.keyEvent),
2824
+ (l.mobile || t.inputEventOnly) && n.removeAttribute("maxLength"), o.EventRuler.on(n, "input", c.EventHandlers.inputFallBackEvent)),
2825
+ o.EventRuler.on(n, "setvalue", c.EventHandlers.setValueEvent), a.getBufferTemplate.call(e).join(""),
2826
+ e.undoValue = e._valueGet(!0);
2827
+ var p = (n.inputmask.shadowRoot || n.ownerDocument).activeElement;
2828
+ if ("" !== n.inputmask._valueGet(!0) || !1 === t.clearMaskOnLostFocus || p === n) {
2829
+ (0, r.applyInputValue)(n, n.inputmask._valueGet(!0), t);
2830
+ var d = a.getBuffer.call(e).slice();
2831
+ !1 === s.isComplete.call(e, d) && t.clearIncomplete && a.resetMaskSet.call(e, !1),
2832
+ t.clearMaskOnLostFocus && p !== n && (-1 === a.getLastValidPosition.call(e) ? d = [] : r.clearOptionalTail.call(e, d)),
2833
+ (!1 === t.clearMaskOnLostFocus || t.showMaskOnFocus && p === n || "" !== n.inputmask._valueGet(!0)) && (0, r.writeBuffer)(n, d), p === n && a.caret.call(e, n, a.seekNext.call(e, a.getLastValidPosition.call(e)));
2834
+ }
2835
+ }
2836
+ };
2837
+ var i = n(2839), a = n(8711), r = n(7760), o = n(9716), l = n(9845), s = n(7215), c = n(6030);
2838
+ },
2839
+ 9695: function(e, t) {
2840
+ Object.defineProperty(t, "__esModule", {
2841
+ value: !0
2842
+ }), t.default = function(e, t, n, i) {
2843
+ this.matches = [], this.openGroup = e || !1, this.alternatorGroup = !1, this.isGroup = e || !1,
2844
+ this.isOptional = t || !1, this.isQuantifier = n || !1, this.isAlternator = i || !1,
2845
+ this.quantifier = {
2846
+ min: 1,
2847
+ max: 1
2848
+ };
2849
+ };
2850
+ },
2851
+ 3194: function() {
2852
+ Array.prototype.includes || Object.defineProperty(Array.prototype, "includes", {
2853
+ value: function(e, t) {
2854
+ if (null == this) throw new TypeError('"this" is null or not defined');
2855
+ var n = Object(this), i = n.length >>> 0;
2856
+ if (0 === i) return !1;
2857
+ for (var a = 0 | t, r = Math.max(a >= 0 ? a : i - Math.abs(a), 0); r < i; ) {
2858
+ if (n[r] === e) return !0;
2859
+ r++;
2860
+ }
2861
+ return !1;
2862
+ }
2863
+ });
2864
+ },
2865
+ 9302: function() {
2866
+ var e = Function.bind.call(Function.call, Array.prototype.reduce), t = Function.bind.call(Function.call, Object.prototype.propertyIsEnumerable), n = Function.bind.call(Function.call, Array.prototype.concat), i = Object.keys;
2867
+ Object.entries || (Object.entries = function(a) {
2868
+ return e(i(a), (function(e, i) {
2869
+ return n(e, "string" == typeof i && t(a, i) ? [ [ i, a[i] ] ] : []);
2870
+ }), []);
2871
+ });
2872
+ },
2873
+ 7149: function() {
2874
+ function e(t) {
2875
+ return e = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(e) {
2876
+ return typeof e;
2877
+ } : function(e) {
2878
+ return e && "function" == typeof Symbol && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
2879
+ }, e(t);
2880
+ }
2881
+ "function" != typeof Object.getPrototypeOf && (Object.getPrototypeOf = "object" === e("test".__proto__) ? function(e) {
2882
+ return e.__proto__;
2883
+ } : function(e) {
2884
+ return e.constructor.prototype;
2885
+ });
2886
+ },
2887
+ 4013: function() {
2888
+ String.prototype.includes || (String.prototype.includes = function(e, t) {
2889
+ return "number" != typeof t && (t = 0), !(t + e.length > this.length) && -1 !== this.indexOf(e, t);
2890
+ });
2891
+ },
2892
+ 8711: function(e, t, n) {
2893
+ Object.defineProperty(t, "__esModule", {
2894
+ value: !0
2895
+ }), t.caret = function(e, t, n, i, r) {
2896
+ var o, l = this, s = this.opts;
2897
+ if (void 0 === t) return "selectionStart" in e && "selectionEnd" in e ? (t = e.selectionStart,
2898
+ n = e.selectionEnd) : a.default.getSelection ? (o = a.default.getSelection().getRangeAt(0)).commonAncestorContainer.parentNode !== e && o.commonAncestorContainer !== e || (t = o.startOffset,
2899
+ n = o.endOffset) : document.selection && document.selection.createRange && (n = (t = 0 - (o = document.selection.createRange()).duplicate().moveStart("character", -e.inputmask._valueGet().length)) + o.text.length),
2900
+ {
2901
+ begin: i ? t : f.call(l, t),
2902
+ end: i ? n : f.call(l, n)
2903
+ };
2904
+ if (Array.isArray(t) && (n = l.isRTL ? t[0] : t[1], t = l.isRTL ? t[1] : t[0]),
2905
+ void 0 !== t.begin && (n = l.isRTL ? t.begin : t.end, t = l.isRTL ? t.end : t.begin),
2906
+ "number" == typeof t) {
2907
+ t = i ? t : f.call(l, t), n = "number" == typeof (n = i ? n : f.call(l, n)) ? n : t;
2908
+ var c = parseInt(((e.ownerDocument.defaultView || a.default).getComputedStyle ? (e.ownerDocument.defaultView || a.default).getComputedStyle(e, null) : e.currentStyle).fontSize) * n;
2909
+ if (e.scrollLeft = c > e.scrollWidth ? c : 0, e.inputmask.caretPos = {
2910
+ begin: t,
2911
+ end: n
2912
+ }, s.insertModeVisual && !1 === s.insertMode && t === n && (r || n++), e === (e.inputmask.shadowRoot || e.ownerDocument).activeElement) if ("setSelectionRange" in e) e.setSelectionRange(t, n); else if (a.default.getSelection) {
2913
+ if (o = document.createRange(), void 0 === e.firstChild || null === e.firstChild) {
2914
+ var u = document.createTextNode("");
2915
+ e.appendChild(u);
2916
+ }
2917
+ o.setStart(e.firstChild, t < e.inputmask._valueGet().length ? t : e.inputmask._valueGet().length),
2918
+ o.setEnd(e.firstChild, n < e.inputmask._valueGet().length ? n : e.inputmask._valueGet().length),
2919
+ o.collapse(!0);
2920
+ var p = a.default.getSelection();
2921
+ p.removeAllRanges(), p.addRange(o);
2922
+ } else e.createTextRange && ((o = e.createTextRange()).collapse(!0), o.moveEnd("character", n),
2923
+ o.moveStart("character", t), o.select());
2924
+ }
2925
+ }, t.determineLastRequiredPosition = function(e) {
2926
+ var t, n, i = this, a = i.maskset, l = i.dependencyLib, c = r.getMaskTemplate.call(i, !0, s.call(i), !0, !0), u = c.length, f = s.call(i), p = {}, d = a.validPositions[f], h = void 0 !== d ? d.locator.slice() : void 0;
2927
+ for (t = f + 1; t < c.length; t++) h = (n = r.getTestTemplate.call(i, t, h, t - 1)).locator.slice(),
2928
+ p[t] = l.extend(!0, {}, n);
2929
+ var v = d && void 0 !== d.alternation ? d.locator[d.alternation] : void 0;
2930
+ for (t = u - 1; t > f && (((n = p[t]).match.optionality || n.match.optionalQuantifier && n.match.newBlockMarker || v && (v !== p[t].locator[d.alternation] && 1 != n.match.static || !0 === n.match.static && n.locator[d.alternation] && o.checkAlternationMatch.call(i, n.locator[d.alternation].toString().split(","), v.toString().split(",")) && "" !== r.getTests.call(i, t)[0].def)) && c[t] === r.getPlaceholder.call(i, t, n.match)); t--) u--;
2931
+ return e ? {
2932
+ l: u,
2933
+ def: p[u] ? p[u].match : void 0
2934
+ } : u;
2935
+ }, t.determineNewCaretPosition = function(e, t, n) {
2936
+ var i = this, a = i.maskset, o = i.opts;
2937
+ t && (i.isRTL ? e.end = e.begin : e.begin = e.end);
2938
+ if (e.begin === e.end) {
2939
+ switch (n = n || o.positionCaretOnClick) {
2940
+ case "none":
2941
+ break;
2942
+
2943
+ case "select":
2944
+ e = {
2945
+ begin: 0,
2946
+ end: l.call(i).length
2947
+ };
2948
+ break;
2949
+
2950
+ case "ignore":
2951
+ e.end = e.begin = u.call(i, s.call(i));
2952
+ break;
2953
+
2954
+ case "radixFocus":
2955
+ if (i.clicked > 1 && 0 == a.validPositions.length) break;
2956
+ if (function(e) {
2957
+ if ("" !== o.radixPoint && 0 !== o.digits) {
2958
+ var t = a.validPositions;
2959
+ if (void 0 === t[e] || t[e].input === r.getPlaceholder.call(i, e)) {
2960
+ if (e < u.call(i, -1)) return !0;
2961
+ var n = l.call(i).indexOf(o.radixPoint);
2962
+ if (-1 !== n) {
2963
+ for (var s = 0, c = t.length; s < c; s++) if (t[s] && n < s && t[s].input !== r.getPlaceholder.call(i, s)) return !1;
2964
+ return !0;
2965
+ }
2966
+ }
2967
+ }
2968
+ return !1;
2969
+ }(e.begin)) {
2970
+ var f = l.call(i).join("").indexOf(o.radixPoint);
2971
+ e.end = e.begin = o.numericInput ? u.call(i, f) : f;
2972
+ break;
2973
+ }
2974
+
2975
+ default:
2976
+ var p = e.begin, d = s.call(i, p, !0), h = u.call(i, -1 !== d || c.call(i, 0) ? d : -1);
2977
+ if (p <= h) e.end = e.begin = c.call(i, p, !1, !0) ? p : u.call(i, p); else {
2978
+ var v = a.validPositions[d], m = r.getTestTemplate.call(i, h, v ? v.match.locator : void 0, v), g = r.getPlaceholder.call(i, h, m.match);
2979
+ if ("" !== g && l.call(i)[h] !== g && !0 !== m.match.optionalQuantifier && !0 !== m.match.newBlockMarker || !c.call(i, h, o.keepStatic, !0) && m.match.def === g) {
2980
+ var y = u.call(i, h);
2981
+ (p >= y || p === h) && (h = y);
2982
+ }
2983
+ e.end = e.begin = h;
2984
+ }
2985
+ }
2986
+ return e;
2987
+ }
2988
+ }, t.getBuffer = l, t.getBufferTemplate = function() {
2989
+ var e = this.maskset;
2990
+ void 0 === e._buffer && (e._buffer = r.getMaskTemplate.call(this, !1, 1), void 0 === e.buffer && (e.buffer = e._buffer.slice()));
2991
+ return e._buffer;
2992
+ }, t.getLastValidPosition = s, t.isMask = c, t.resetMaskSet = function(e) {
2993
+ var t = this.maskset;
2994
+ t.buffer = void 0, !0 !== e && (t.validPositions = [], t.p = 0);
2995
+ !1 === e && (t.tests = {});
2996
+ }, t.seekNext = u, t.seekPrevious = function(e, t) {
2997
+ var n = this, i = e - 1;
2998
+ if (e <= 0) return 0;
2999
+ for (;i > 0 && (!0 === t && (!0 !== r.getTest.call(n, i).match.newBlockMarker || !c.call(n, i, void 0, !0)) || !0 !== t && !c.call(n, i, void 0, !0)); ) i--;
3000
+ return i;
3001
+ }, t.translatePosition = f;
3002
+ var i, a = (i = n(9380)) && i.__esModule ? i : {
3003
+ default: i
3004
+ }, r = n(4713), o = n(7215);
3005
+ function l(e) {
3006
+ var t = this, n = t.maskset;
3007
+ return void 0 !== n.buffer && !0 !== e || (n.buffer = r.getMaskTemplate.call(t, !0, s.call(t), !0),
3008
+ void 0 === n._buffer && (n._buffer = n.buffer.slice())), n.buffer;
3009
+ }
3010
+ function s(e, t, n) {
3011
+ var i = this.maskset, a = -1, r = -1, o = n || i.validPositions;
3012
+ void 0 === e && (e = -1);
3013
+ for (var l = 0, s = o.length; l < s; l++) o[l] && (t || !0 !== o[l].generatedInput) && (l <= e && (a = l),
3014
+ l >= e && (r = l));
3015
+ return -1 === a || a == e ? r : -1 == r || e - a < r - e ? a : r;
3016
+ }
3017
+ function c(e, t, n) {
3018
+ var i = this, a = this.maskset, o = r.getTestTemplate.call(i, e).match;
3019
+ if ("" === o.def && (o = r.getTest.call(i, e).match), !0 !== o.static) return o.fn;
3020
+ if (!0 === n && void 0 !== a.validPositions[e] && !0 !== a.validPositions[e].generatedInput) return !0;
3021
+ if (!0 !== t && e > -1) {
3022
+ if (n) {
3023
+ var l = r.getTests.call(i, e);
3024
+ return l.length > 1 + ("" === l[l.length - 1].match.def ? 1 : 0);
3025
+ }
3026
+ var s = r.determineTestTemplate.call(i, e, r.getTests.call(i, e)), c = r.getPlaceholder.call(i, e, s.match);
3027
+ return s.match.def !== c;
3028
+ }
3029
+ return !1;
3030
+ }
3031
+ function u(e, t, n) {
3032
+ var i = this;
3033
+ void 0 === n && (n = !0);
3034
+ for (var a = e + 1; "" !== r.getTest.call(i, a).match.def && (!0 === t && (!0 !== r.getTest.call(i, a).match.newBlockMarker || !c.call(i, a, void 0, !0)) || !0 !== t && !c.call(i, a, void 0, n)); ) a++;
3035
+ return a;
3036
+ }
3037
+ function f(e) {
3038
+ var t = this.opts, n = this.el;
3039
+ return !this.isRTL || "number" != typeof e || t.greedy && "" === t.placeholder || !n || (e = this._valueGet().length - e) < 0 && (e = 0),
3040
+ e;
3041
+ }
3042
+ },
3043
+ 4713: function(e, t, n) {
3044
+ Object.defineProperty(t, "__esModule", {
3045
+ value: !0
3046
+ }), t.determineTestTemplate = c, t.getDecisionTaker = o, t.getMaskTemplate = function(e, t, n, i, a) {
3047
+ var r = this, o = this.opts, u = this.maskset, f = o.greedy;
3048
+ a && o.greedy && (o.greedy = !1, r.maskset.tests = {});
3049
+ t = t || 0;
3050
+ var d, h, v, m, g = [], y = 0;
3051
+ do {
3052
+ if (!0 === e && u.validPositions[y]) h = (v = a && u.validPositions[y].match.optionality && void 0 === u.validPositions[y + 1] && (!0 === u.validPositions[y].generatedInput || u.validPositions[y].input == o.skipOptionalPartCharacter && y > 0) ? c.call(r, y, p.call(r, y, d, y - 1)) : u.validPositions[y]).match,
3053
+ d = v.locator.slice(), g.push(!0 === n ? v.input : !1 === n ? h.nativeDef : l.call(r, y, h)); else {
3054
+ h = (v = s.call(r, y, d, y - 1)).match, d = v.locator.slice();
3055
+ var k = !0 !== i && (!1 !== o.jitMasking ? o.jitMasking : h.jit);
3056
+ (m = (m || u.validPositions[y - 1]) && h.static && h.def !== o.groupSeparator && null === h.fn) || !1 === k || void 0 === k || "number" == typeof k && isFinite(k) && k > y ? g.push(!1 === n ? h.nativeDef : l.call(r, g.length, h)) : m = !1;
3057
+ }
3058
+ y++;
3059
+ } while (!0 !== h.static || "" !== h.def || t > y);
3060
+ "" === g[g.length - 1] && g.pop();
3061
+ !1 === n && void 0 !== u.maskLength || (u.maskLength = y - 1);
3062
+ return o.greedy = f, g;
3063
+ }, t.getPlaceholder = l, t.getTest = u, t.getTestTemplate = s, t.getTests = p, t.isSubsetOf = f;
3064
+ var i, a = (i = n(2394)) && i.__esModule ? i : {
3065
+ default: i
3066
+ };
3067
+ function r(e, t) {
3068
+ var n = (null != e.alternation ? e.mloc[o(e)] : e.locator).join("");
3069
+ if ("" !== n) for (;n.length < t; ) n += "0";
3070
+ return n;
3071
+ }
3072
+ function o(e) {
3073
+ var t = e.locator[e.alternation];
3074
+ return "string" == typeof t && t.length > 0 && (t = t.split(",")[0]), void 0 !== t ? t.toString() : "";
3075
+ }
3076
+ function l(e, t, n) {
3077
+ var i = this.opts, a = this.maskset;
3078
+ if (void 0 !== (t = t || u.call(this, e).match).placeholder || !0 === n) return "function" == typeof t.placeholder ? t.placeholder(i) : t.placeholder;
3079
+ if (!0 === t.static) {
3080
+ if (e > -1 && void 0 === a.validPositions[e]) {
3081
+ var r, o = p.call(this, e), l = [];
3082
+ if (o.length > 1 + ("" === o[o.length - 1].match.def ? 1 : 0)) for (var s = 0; s < o.length; s++) if ("" !== o[s].match.def && !0 !== o[s].match.optionality && !0 !== o[s].match.optionalQuantifier && (!0 === o[s].match.static || void 0 === r || !1 !== o[s].match.fn.test(r.match.def, a, e, !0, i)) && (l.push(o[s]),
3083
+ !0 === o[s].match.static && (r = o[s]), l.length > 1 && /[0-9a-bA-Z]/.test(l[0].match.def))) return i.placeholder.charAt(e % i.placeholder.length);
3084
+ }
3085
+ return t.def;
3086
+ }
3087
+ return i.placeholder.charAt(e % i.placeholder.length);
3088
+ }
3089
+ function s(e, t, n) {
3090
+ return this.maskset.validPositions[e] || c.call(this, e, p.call(this, e, t ? t.slice() : t, n));
3091
+ }
3092
+ function c(e, t) {
3093
+ var n = this.opts, i = 0, a = function(e, t) {
3094
+ var n = 0, i = !1;
3095
+ t.forEach((function(e) {
3096
+ e.match.optionality && (0 !== n && n !== e.match.optionality && (i = !0), (0 === n || n > e.match.optionality) && (n = e.match.optionality));
3097
+ })), n && (0 == e || 1 == t.length ? n = 0 : i || (n = 0));
3098
+ return n;
3099
+ }(e, t);
3100
+ e = e > 0 ? e - 1 : 0;
3101
+ var o, l, s, c = r(u.call(this, e));
3102
+ n.greedy && t.length > 1 && "" === t[t.length - 1].match.def && (i = 1);
3103
+ for (var f = 0; f < t.length - i; f++) {
3104
+ var p = t[f];
3105
+ o = r(p, c.length);
3106
+ var d = Math.abs(o - c);
3107
+ (void 0 === l || "" !== o && d < l || s && !n.greedy && s.match.optionality && s.match.optionality - a > 0 && "master" === s.match.newBlockMarker && (!p.match.optionality || p.match.optionality - a < 1 || !p.match.newBlockMarker) || s && !n.greedy && s.match.optionalQuantifier && !p.match.optionalQuantifier) && (l = d,
3108
+ s = p);
3109
+ }
3110
+ return s;
3111
+ }
3112
+ function u(e, t) {
3113
+ var n = this.maskset;
3114
+ return n.validPositions[e] ? n.validPositions[e] : (t || p.call(this, e))[0];
3115
+ }
3116
+ function f(e, t, n) {
3117
+ function i(e) {
3118
+ for (var t, n = [], i = -1, a = 0, r = e.length; a < r; a++) if ("-" === e.charAt(a)) for (t = e.charCodeAt(a + 1); ++i < t; ) n.push(String.fromCharCode(i)); else i = e.charCodeAt(a),
3119
+ n.push(e.charAt(a));
3120
+ return n.join("");
3121
+ }
3122
+ return e.match.def === t.match.nativeDef || !(!(n.regex || e.match.fn instanceof RegExp && t.match.fn instanceof RegExp) || !0 === e.match.static || !0 === t.match.static) && -1 !== i(t.match.fn.toString().replace(/[[\]/]/g, "")).indexOf(i(e.match.fn.toString().replace(/[[\]/]/g, "")));
3123
+ }
3124
+ function p(e, t, n) {
3125
+ var i, r, o = this, l = this.dependencyLib, s = this.maskset, u = this.opts, p = this.el, d = s.maskToken, h = t ? n : 0, v = t ? t.slice() : [ 0 ], m = [], g = !1, y = t ? t.join("") : "";
3126
+ function k(t, n, r, l) {
3127
+ function c(r, l, d) {
3128
+ function v(e, t) {
3129
+ var n = 0 === t.matches.indexOf(e);
3130
+ return n || t.matches.every((function(i, a) {
3131
+ return !0 === i.isQuantifier ? n = v(e, t.matches[a - 1]) : Object.prototype.hasOwnProperty.call(i, "matches") && (n = v(e, i)),
3132
+ !n;
3133
+ })), n;
3134
+ }
3135
+ function x(e, t, n) {
3136
+ var i, a;
3137
+ if ((s.tests[e] || s.validPositions[e]) && (s.tests[e] || [ s.validPositions[e] ]).every((function(e, r) {
3138
+ if (e.mloc[t]) return i = e, !1;
3139
+ var o = void 0 !== n ? n : e.alternation, l = void 0 !== e.locator[o] ? e.locator[o].toString().indexOf(t) : -1;
3140
+ return (void 0 === a || l < a) && -1 !== l && (i = e, a = l), !0;
3141
+ })), i) {
3142
+ var r = i.locator[i.alternation];
3143
+ return (i.mloc[t] || i.mloc[r] || i.locator).slice((void 0 !== n ? n : i.alternation) + 1);
3144
+ }
3145
+ return void 0 !== n ? x(e, t) : void 0;
3146
+ }
3147
+ function P(e, t) {
3148
+ var n = e.alternation, i = void 0 === t || n === t.alternation && -1 === e.locator[n].toString().indexOf(t.locator[n]);
3149
+ if (!i && n > t.alternation) for (var a = t.alternation; a < n; a++) if (e.locator[a] !== t.locator[a]) {
3150
+ n = a, i = !0;
3151
+ break;
3152
+ }
3153
+ if (i) {
3154
+ e.mloc = e.mloc || {};
3155
+ var r = e.locator[n];
3156
+ if (void 0 !== r) {
3157
+ if ("string" == typeof r && (r = r.split(",")[0]), void 0 === e.mloc[r] && (e.mloc[r] = e.locator.slice()),
3158
+ void 0 !== t) {
3159
+ for (var o in t.mloc) "string" == typeof o && (o = o.split(",")[0]), void 0 === e.mloc[o] && (e.mloc[o] = t.mloc[o]);
3160
+ e.locator[n] = Object.keys(e.mloc).join(",");
3161
+ }
3162
+ return !0;
3163
+ }
3164
+ e.alternation = void 0;
3165
+ }
3166
+ return !1;
3167
+ }
3168
+ function w(e, t) {
3169
+ if (e.locator.length !== t.locator.length) return !1;
3170
+ for (var n = e.alternation + 1; n < e.locator.length; n++) if (e.locator[n] !== t.locator[n]) return !1;
3171
+ return !0;
3172
+ }
3173
+ if (h > e + u._maxTestPos) 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. " + s.mask;
3174
+ if (h === e && void 0 === r.matches) {
3175
+ if (m.push({
3176
+ match: r,
3177
+ locator: l.reverse(),
3178
+ cd: y,
3179
+ mloc: {}
3180
+ }), !r.optionality || void 0 !== d || !(u.definitions && u.definitions[r.nativeDef] && u.definitions[r.nativeDef].optional || a.default.prototype.definitions[r.nativeDef] && a.default.prototype.definitions[r.nativeDef].optional)) return !0;
3181
+ g = !0, h = e;
3182
+ } else if (void 0 !== r.matches) {
3183
+ if (r.isGroup && d !== r) return function() {
3184
+ if (r = c(t.matches[t.matches.indexOf(r) + 1], l, d)) return !0;
3185
+ }();
3186
+ if (r.isOptional) return function() {
3187
+ var t = r, a = m.length;
3188
+ if (r = k(r, n, l, d), m.length > 0) {
3189
+ if (m.forEach((function(e, t) {
3190
+ t >= a && (e.match.optionality = e.match.optionality ? e.match.optionality + 1 : 1);
3191
+ })), i = m[m.length - 1].match, void 0 !== d || !v(i, t)) return r;
3192
+ g = !0, h = e;
3193
+ }
3194
+ }();
3195
+ if (r.isAlternator) return function() {
3196
+ o.hasAlternator = !0;
3197
+ var i, a, v, y = r, k = [], b = m.slice(), S = l.length, O = !1, _ = n.length > 0 ? n.shift() : -1;
3198
+ if (-1 === _ || "string" == typeof _) {
3199
+ var E, M = h, j = n.slice(), T = [];
3200
+ if ("string" == typeof _) T = _.split(","); else for (E = 0; E < y.matches.length; E++) T.push(E.toString());
3201
+ if (void 0 !== s.excludes[e]) {
3202
+ for (var A = T.slice(), D = 0, L = s.excludes[e].length; D < L; D++) {
3203
+ var B = s.excludes[e][D].toString().split(":");
3204
+ l.length == B[1] && T.splice(T.indexOf(B[0]), 1);
3205
+ }
3206
+ 0 === T.length && (delete s.excludes[e], T = A);
3207
+ }
3208
+ (!0 === u.keepStatic || isFinite(parseInt(u.keepStatic)) && M >= u.keepStatic) && (T = T.slice(0, 1));
3209
+ for (var C = 0; C < T.length; C++) {
3210
+ E = parseInt(T[C]), m = [], n = "string" == typeof _ && x(h, E, S) || j.slice();
3211
+ var R = y.matches[E];
3212
+ if (R && c(R, [ E ].concat(l), d)) r = !0; else if (0 === C && (O = !0), R && R.matches && R.matches.length > y.matches[0].matches.length) break;
3213
+ i = m.slice(), h = M, m = [];
3214
+ for (var I = 0; I < i.length; I++) {
3215
+ var F = i[I], N = !1;
3216
+ F.match.jit = F.match.jit || O, F.alternation = F.alternation || S, P(F);
3217
+ for (var V = 0; V < k.length; V++) {
3218
+ var G = k[V];
3219
+ if ("string" != typeof _ || void 0 !== F.alternation && T.includes(F.locator[F.alternation].toString())) {
3220
+ if (F.match.nativeDef === G.match.nativeDef) {
3221
+ N = !0, P(G, F);
3222
+ break;
3223
+ }
3224
+ if (f(F, G, u)) {
3225
+ P(F, G) && (N = !0, k.splice(k.indexOf(G), 0, F));
3226
+ break;
3227
+ }
3228
+ if (f(G, F, u)) {
3229
+ P(G, F);
3230
+ break;
3231
+ }
3232
+ if (v = G, !0 === (a = F).match.static && !0 !== v.match.static && v.match.fn.test(a.match.def, s, e, !1, u, !1)) {
3233
+ w(F, G) || void 0 !== p.inputmask.userOptions.keepStatic ? P(F, G) && (N = !0, k.splice(k.indexOf(G), 0, F)) : u.keepStatic = !0;
3234
+ break;
3235
+ }
3236
+ }
3237
+ }
3238
+ N || k.push(F);
3239
+ }
3240
+ }
3241
+ m = b.concat(k), h = e, g = m.length > 0, r = k.length > 0, n = j.slice();
3242
+ } else r = c(y.matches[_] || t.matches[_], [ _ ].concat(l), d);
3243
+ if (r) return !0;
3244
+ }();
3245
+ if (r.isQuantifier && d !== t.matches[t.matches.indexOf(r) - 1]) return function() {
3246
+ for (var a = r, o = !1, f = n.length > 0 ? n.shift() : 0; f < (isNaN(a.quantifier.max) ? f + 1 : a.quantifier.max) && h <= e; f++) {
3247
+ var p = t.matches[t.matches.indexOf(a) - 1];
3248
+ if (r = c(p, [ f ].concat(l), p)) {
3249
+ if (m.forEach((function(t, n) {
3250
+ (i = b(p, t.match) ? t.match : m[m.length - 1].match).optionalQuantifier = f >= a.quantifier.min,
3251
+ i.jit = (f + 1) * (p.matches.indexOf(i) + 1) > a.quantifier.jit, i.optionalQuantifier && v(i, p) && (g = !0,
3252
+ h = e, u.greedy && null == s.validPositions[e - 1] && f > a.quantifier.min && -1 != [ "*", "+" ].indexOf(a.quantifier.max) && (m.pop(),
3253
+ y = void 0), o = !0, r = !1), !o && i.jit && (s.jitOffset[e] = p.matches.length - p.matches.indexOf(i));
3254
+ })), o) break;
3255
+ return !0;
3256
+ }
3257
+ }
3258
+ }();
3259
+ if (r = k(r, n, l, d)) return !0;
3260
+ } else h++;
3261
+ }
3262
+ for (var d = n.length > 0 ? n.shift() : 0; d < t.matches.length; d++) if (!0 !== t.matches[d].isQuantifier) {
3263
+ var v = c(t.matches[d], [ d ].concat(r), l);
3264
+ if (v && h === e) return v;
3265
+ if (h > e) break;
3266
+ }
3267
+ }
3268
+ function b(e, t) {
3269
+ var n = -1 != e.matches.indexOf(t);
3270
+ return n || e.matches.forEach((function(e, i) {
3271
+ void 0 === e.matches || n || (n = b(e, t));
3272
+ })), n;
3273
+ }
3274
+ if (e > -1) {
3275
+ if (void 0 === t) {
3276
+ for (var x, P = e - 1; void 0 === (x = s.validPositions[P] || s.tests[P]) && P > -1; ) P--;
3277
+ void 0 !== x && P > -1 && (v = function(e, t) {
3278
+ var n, i = [];
3279
+ return Array.isArray(t) || (t = [ t ]), t.length > 0 && (void 0 === t[0].alternation || !0 === u.keepStatic ? 0 === (i = c.call(o, e, t.slice()).locator.slice()).length && (i = t[0].locator.slice()) : t.forEach((function(e) {
3280
+ "" !== e.def && (0 === i.length ? (n = e.alternation, i = e.locator.slice()) : e.locator[n] && -1 === i[n].toString().indexOf(e.locator[n]) && (i[n] += "," + e.locator[n]));
3281
+ }))), i;
3282
+ }(P, x), y = v.join(""), h = P);
3283
+ }
3284
+ if (s.tests[e] && s.tests[e][0].cd === y) return s.tests[e];
3285
+ for (var w = v.shift(); w < d.length; w++) {
3286
+ if (k(d[w], v, [ w ]) && h === e || h > e) break;
3287
+ }
3288
+ }
3289
+ return (0 === m.length || g) && m.push({
3290
+ match: {
3291
+ fn: null,
3292
+ static: !0,
3293
+ optionality: !1,
3294
+ casing: null,
3295
+ def: "",
3296
+ placeholder: ""
3297
+ },
3298
+ locator: [],
3299
+ mloc: {},
3300
+ cd: y
3301
+ }), void 0 !== t && s.tests[e] ? r = l.extend(!0, [], m) : (s.tests[e] = l.extend(!0, [], m),
3302
+ r = s.tests[e]), m.forEach((function(e) {
3303
+ e.match.optionality = e.match.defOptionality || !1;
3304
+ })), r;
3305
+ }
3306
+ },
3307
+ 7215: function(e, t, n) {
3308
+ Object.defineProperty(t, "__esModule", {
3309
+ value: !0
3310
+ }), t.alternate = l, t.checkAlternationMatch = function(e, t, n) {
3311
+ for (var i, a = this.opts.greedy ? t : t.slice(0, 1), r = !1, o = void 0 !== n ? n.split(",") : [], l = 0; l < o.length; l++) -1 !== (i = e.indexOf(o[l])) && e.splice(i, 1);
3312
+ for (var s = 0; s < e.length; s++) if (a.includes(e[s])) {
3313
+ r = !0;
3314
+ break;
3315
+ }
3316
+ return r;
3317
+ }, t.handleRemove = function(e, t, n, o, s) {
3318
+ var c = this, u = this.maskset, f = this.opts;
3319
+ if ((f.numericInput || c.isRTL) && (t === a.keys.Backspace ? t = a.keys.Delete : t === a.keys.Delete && (t = a.keys.Backspace),
3320
+ c.isRTL)) {
3321
+ var p = n.end;
3322
+ n.end = n.begin, n.begin = p;
3323
+ }
3324
+ var d, h = r.getLastValidPosition.call(c, void 0, !0);
3325
+ n.end >= r.getBuffer.call(c).length && h >= n.end && (n.end = h + 1);
3326
+ t === a.keys.Backspace ? n.end - n.begin < 1 && (n.begin = r.seekPrevious.call(c, n.begin)) : t === a.keys.Delete && n.begin === n.end && (n.end = r.isMask.call(c, n.end, !0, !0) ? n.end + 1 : r.seekNext.call(c, n.end) + 1);
3327
+ if (!1 !== (d = v.call(c, n))) {
3328
+ if (!0 !== o && !1 !== f.keepStatic || null !== f.regex && -1 !== i.getTest.call(c, n.begin).match.def.indexOf("|")) {
3329
+ var m = l.call(c, !0);
3330
+ if (m) {
3331
+ var g = void 0 !== m.caret ? m.caret : m.pos ? r.seekNext.call(c, m.pos.begin ? m.pos.begin : m.pos) : r.getLastValidPosition.call(c, -1, !0);
3332
+ (t !== a.keys.Delete || n.begin > g) && n.begin;
3333
+ }
3334
+ }
3335
+ !0 !== o && (u.p = t === a.keys.Delete ? n.begin + d : n.begin, u.p = r.determineNewCaretPosition.call(c, {
3336
+ begin: u.p,
3337
+ end: u.p
3338
+ }, !1, !1 === f.insertMode && t === a.keys.Backspace ? "none" : void 0).begin);
3339
+ }
3340
+ }, t.isComplete = c, t.isSelection = u, t.isValid = f, t.refreshFromBuffer = d,
3341
+ t.revalidateMask = v;
3342
+ var i = n(4713), a = n(2839), r = n(8711), o = n(6030);
3343
+ function l(e, t, n, a, o, s) {
3344
+ var c, u, p, d, h, v, m, g, y, k, b, x = this, P = this.dependencyLib, w = this.opts, S = x.maskset, O = P.extend(!0, [], S.validPositions), _ = P.extend(!0, {}, S.tests), E = !1, M = !1, j = void 0 !== o ? o : r.getLastValidPosition.call(x);
3345
+ if (s && (k = s.begin, b = s.end, s.begin > s.end && (k = s.end, b = s.begin)),
3346
+ -1 === j && void 0 === o) c = 0, u = (d = i.getTest.call(x, c)).alternation; else for (;j >= 0; j--) if ((p = S.validPositions[j]) && void 0 !== p.alternation) {
3347
+ if (j <= (e || 0) && d && d.locator[p.alternation] !== p.locator[p.alternation]) break;
3348
+ c = j, u = S.validPositions[c].alternation, d = p;
3349
+ }
3350
+ if (void 0 !== u) {
3351
+ m = parseInt(c), S.excludes[m] = S.excludes[m] || [], !0 !== e && S.excludes[m].push((0, i.getDecisionTaker)(d) + ":" + d.alternation);
3352
+ var T = [], A = -1;
3353
+ for (h = m; m < r.getLastValidPosition.call(x, void 0, !0) + 1; h++) -1 === A && e <= h && void 0 !== t && (T.push(t),
3354
+ A = T.length - 1), (v = S.validPositions[m]) && !0 !== v.generatedInput && (void 0 === s || h < k || h >= b) && T.push(v.input),
3355
+ S.validPositions.splice(m, 1);
3356
+ for (-1 === A && void 0 !== t && (T.push(t), A = T.length - 1); void 0 !== S.excludes[m] && S.excludes[m].length < 10; ) {
3357
+ for (S.tests = {}, r.resetMaskSet.call(x, !0), E = !0, h = 0; h < T.length && (g = E.caret || 0 == w.insertMode && null != g ? r.seekNext.call(x, g) : r.getLastValidPosition.call(x, void 0, !0) + 1,
3358
+ y = T[h], E = f.call(x, g, y, !1, a, !0)); h++) h === A && (M = E), 1 == e && E && (M = {
3359
+ caretPos: h
3360
+ });
3361
+ if (E) break;
3362
+ if (r.resetMaskSet.call(x), d = i.getTest.call(x, m), S.validPositions = P.extend(!0, [], O),
3363
+ S.tests = P.extend(!0, {}, _), !S.excludes[m]) {
3364
+ M = l.call(x, e, t, n, a, m - 1, s);
3365
+ break;
3366
+ }
3367
+ if (null != d.alternation) {
3368
+ var D = (0, i.getDecisionTaker)(d);
3369
+ if (-1 !== S.excludes[m].indexOf(D + ":" + d.alternation)) {
3370
+ M = l.call(x, e, t, n, a, m - 1, s);
3371
+ break;
3372
+ }
3373
+ for (S.excludes[m].push(D + ":" + d.alternation), h = m; h < r.getLastValidPosition.call(x, void 0, !0) + 1; h++) S.validPositions.splice(m);
3374
+ } else delete S.excludes[m];
3375
+ }
3376
+ }
3377
+ return M && !1 === w.keepStatic || delete S.excludes[m], M;
3378
+ }
3379
+ function s(e, t, n) {
3380
+ var i = this.opts, r = this.maskset;
3381
+ switch (i.casing || t.casing) {
3382
+ case "upper":
3383
+ e = e.toUpperCase();
3384
+ break;
3385
+
3386
+ case "lower":
3387
+ e = e.toLowerCase();
3388
+ break;
3389
+
3390
+ case "title":
3391
+ var o = r.validPositions[n - 1];
3392
+ e = 0 === n || o && o.input === String.fromCharCode(a.keyCode.Space) ? e.toUpperCase() : e.toLowerCase();
3393
+ break;
3394
+
3395
+ default:
3396
+ if ("function" == typeof i.casing) {
3397
+ var l = Array.prototype.slice.call(arguments);
3398
+ l.push(r.validPositions), e = i.casing.apply(this, l);
3399
+ }
3400
+ }
3401
+ return e;
3402
+ }
3403
+ function c(e) {
3404
+ var t = this, n = this.opts, a = this.maskset;
3405
+ if ("function" == typeof n.isComplete) return n.isComplete(e, n);
3406
+ if ("*" !== n.repeat) {
3407
+ var o = !1, l = r.determineLastRequiredPosition.call(t, !0), s = l.l;
3408
+ if (void 0 === l.def || l.def.newBlockMarker || l.def.optionality || l.def.optionalQuantifier) {
3409
+ o = !0;
3410
+ for (var c = 0; c <= s; c++) {
3411
+ var u = i.getTestTemplate.call(t, c).match;
3412
+ if (!0 !== u.static && void 0 === a.validPositions[c] && (!1 === u.optionality || void 0 === u.optionality || u.optionality && 0 == u.newBlockMarker) && (!1 === u.optionalQuantifier || void 0 === u.optionalQuantifier) || !0 === u.static && "" != u.def && e[c] !== i.getPlaceholder.call(t, c, u)) {
3413
+ o = !1;
3414
+ break;
3415
+ }
3416
+ }
3417
+ }
3418
+ return o;
3419
+ }
3420
+ }
3421
+ function u(e) {
3422
+ var t = this.opts.insertMode ? 0 : 1;
3423
+ return this.isRTL ? e.begin - e.end > t : e.end - e.begin > t;
3424
+ }
3425
+ function f(e, t, n, a, o, p, m) {
3426
+ var g = this, y = this.dependencyLib, k = this.opts, b = g.maskset;
3427
+ n = !0 === n;
3428
+ var x = e;
3429
+ function P(e) {
3430
+ if (void 0 !== e) {
3431
+ if (void 0 !== e.remove && (Array.isArray(e.remove) || (e.remove = [ e.remove ]),
3432
+ e.remove.sort((function(e, t) {
3433
+ return g.isRTL ? e.pos - t.pos : t.pos - e.pos;
3434
+ })).forEach((function(e) {
3435
+ v.call(g, {
3436
+ begin: e,
3437
+ end: e + 1
3438
+ });
3439
+ })), e.remove = void 0), void 0 !== e.insert && (Array.isArray(e.insert) || (e.insert = [ e.insert ]),
3440
+ e.insert.sort((function(e, t) {
3441
+ return g.isRTL ? t.pos - e.pos : e.pos - t.pos;
3442
+ })).forEach((function(e) {
3443
+ "" !== e.c && f.call(g, e.pos, e.c, void 0 === e.strict || e.strict, void 0 !== e.fromIsValid ? e.fromIsValid : a);
3444
+ })), e.insert = void 0), e.refreshFromBuffer && e.buffer) {
3445
+ var t = e.refreshFromBuffer;
3446
+ d.call(g, !0 === t ? t : t.start, t.end, e.buffer), e.refreshFromBuffer = void 0;
3447
+ }
3448
+ void 0 !== e.rewritePosition && (x = e.rewritePosition, e = !0);
3449
+ }
3450
+ return e;
3451
+ }
3452
+ function w(t, n, o) {
3453
+ var l = !1;
3454
+ return i.getTests.call(g, t).every((function(c, f) {
3455
+ var p = c.match;
3456
+ if (r.getBuffer.call(g, !0), !1 !== (l = (!p.jit || void 0 !== b.validPositions[r.seekPrevious.call(g, t)]) && (null != p.fn ? p.fn.test(n, b, t, o, k, u.call(g, e)) : (n === p.def || n === k.skipOptionalPartCharacter) && "" !== p.def && {
3457
+ c: i.getPlaceholder.call(g, t, p, !0) || p.def,
3458
+ pos: t
3459
+ }))) {
3460
+ var d = void 0 !== l.c ? l.c : n, h = t;
3461
+ return d = d === k.skipOptionalPartCharacter && !0 === p.static ? i.getPlaceholder.call(g, t, p, !0) || p.def : d,
3462
+ !0 !== (l = P(l)) && void 0 !== l.pos && l.pos !== t && (h = l.pos), !0 !== l && void 0 === l.pos && void 0 === l.c ? !1 : (!1 === v.call(g, e, y.extend({}, c, {
3463
+ input: s.call(g, d, p, h)
3464
+ }), a, h) && (l = !1), !1);
3465
+ }
3466
+ return !0;
3467
+ })), l;
3468
+ }
3469
+ void 0 !== e.begin && (x = g.isRTL ? e.end : e.begin);
3470
+ var S = !0, O = y.extend(!0, [], b.validPositions);
3471
+ if (!1 === k.keepStatic && void 0 !== b.excludes[x] && !0 !== o && !0 !== a) for (var _ = x; _ < (g.isRTL ? e.begin : e.end); _++) void 0 !== b.excludes[_] && (b.excludes[_] = void 0,
3472
+ delete b.tests[_]);
3473
+ if ("function" == typeof k.preValidation && !0 !== a && !0 !== p && (S = P(S = k.preValidation.call(g, r.getBuffer.call(g), x, t, u.call(g, e), k, b, e, n || o))),
3474
+ !0 === S) {
3475
+ if (S = w(x, t, n), (!n || !0 === a) && !1 === S && !0 !== p) {
3476
+ var E = b.validPositions[x];
3477
+ if (!E || !0 !== E.match.static || E.match.def !== t && t !== k.skipOptionalPartCharacter) {
3478
+ if (k.insertMode || void 0 === b.validPositions[r.seekNext.call(g, x)] || e.end > x) {
3479
+ var M = !1;
3480
+ if (b.jitOffset[x] && void 0 === b.validPositions[r.seekNext.call(g, x)] && !1 !== (S = f.call(g, x + b.jitOffset[x], t, !0, !0)) && (!0 !== o && (S.caret = x),
3481
+ M = !0), e.end > x && (b.validPositions[x] = void 0), !M && !r.isMask.call(g, x, k.keepStatic && 0 === x)) for (var j = x + 1, T = r.seekNext.call(g, x, !1, 0 !== x); j <= T; j++) if (!1 !== (S = w(j, t, n))) {
3482
+ S = h.call(g, x, void 0 !== S.pos ? S.pos : j) || S, x = j;
3483
+ break;
3484
+ }
3485
+ }
3486
+ } else S = {
3487
+ caret: r.seekNext.call(g, x)
3488
+ };
3489
+ }
3490
+ g.hasAlternator && !0 !== o && !n && (o = !0, !1 === S && k.keepStatic && (c.call(g, r.getBuffer.call(g)) || 0 === x) ? S = l.call(g, x, t, n, a, void 0, e) : (u.call(g, e) && b.tests[x] && b.tests[x].length > 1 && k.keepStatic || 1 == S && !0 !== k.numericInput && b.tests[x] && b.tests[x].length > 1 && r.getLastValidPosition.call(g, void 0, !0) > x) && (S = l.call(g, !0))),
3491
+ !0 === S && (S = {
3492
+ pos: x
3493
+ });
3494
+ }
3495
+ if ("function" == typeof k.postValidation && !0 !== a && !0 !== p) {
3496
+ var A = k.postValidation.call(g, r.getBuffer.call(g, !0), void 0 !== e.begin ? g.isRTL ? e.end : e.begin : e, t, S, k, b, n, m);
3497
+ void 0 !== A && (S = !0 === A ? S : A);
3498
+ }
3499
+ S && void 0 === S.pos && (S.pos = x), !1 === S || !0 === p ? (r.resetMaskSet.call(g, !0),
3500
+ b.validPositions = y.extend(!0, [], O)) : h.call(g, void 0, x, !0);
3501
+ var D = P(S);
3502
+ void 0 !== g.maxLength && (r.getBuffer.call(g).length > g.maxLength && !a && (r.resetMaskSet.call(g, !0),
3503
+ b.validPositions = y.extend(!0, [], O), D = !1));
3504
+ return D;
3505
+ }
3506
+ function p(e, t, n) {
3507
+ for (var a = this.maskset, r = !1, o = i.getTests.call(this, e), l = 0; l < o.length; l++) {
3508
+ if (o[l].match && (o[l].match.nativeDef === t.match[n.shiftPositions ? "def" : "nativeDef"] && (!n.shiftPositions || !t.match.static) || o[l].match.nativeDef === t.match.nativeDef || n.regex && !o[l].match.static && o[l].match.fn.test(t.input, a, e, !1, n))) {
3509
+ r = !0;
3510
+ break;
3511
+ }
3512
+ if (o[l].match && o[l].match.def === t.match.nativeDef) {
3513
+ r = void 0;
3514
+ break;
3515
+ }
3516
+ }
3517
+ return !1 === r && void 0 !== a.jitOffset[e] && (r = p.call(this, e + a.jitOffset[e], t, n)),
3518
+ r;
3519
+ }
3520
+ function d(e, t, n) {
3521
+ var i, a, l = this, s = this.maskset, c = this.opts, u = this.dependencyLib, f = c.skipOptionalPartCharacter, p = l.isRTL ? n.slice().reverse() : n;
3522
+ if (c.skipOptionalPartCharacter = "", !0 === e) r.resetMaskSet.call(l, !1), e = 0,
3523
+ t = n.length, a = r.determineNewCaretPosition.call(l, {
3524
+ begin: 0,
3525
+ end: 0
3526
+ }, !1).begin; else {
3527
+ for (i = e; i < t; i++) s.validPositions.splice(e, 0);
3528
+ a = e;
3529
+ }
3530
+ var d = new u.Event("keypress");
3531
+ for (i = e; i < t; i++) {
3532
+ d.key = p[i].toString(), l.ignorable = !1;
3533
+ var h = o.EventHandlers.keypressEvent.call(l, d, !0, !1, !1, a);
3534
+ !1 !== h && void 0 !== h && (a = h.forwardPosition);
3535
+ }
3536
+ c.skipOptionalPartCharacter = f;
3537
+ }
3538
+ function h(e, t, n) {
3539
+ var a = this, o = this.maskset, l = this.dependencyLib;
3540
+ if (void 0 === e) for (e = t - 1; e > 0 && !o.validPositions[e]; e--) ;
3541
+ for (var s = e; s < t; s++) {
3542
+ if (void 0 === o.validPositions[s] && !r.isMask.call(a, s, !1)) if (0 == s ? i.getTest.call(a, s) : o.validPositions[s - 1]) {
3543
+ var c = i.getTests.call(a, s).slice();
3544
+ "" === c[c.length - 1].match.def && c.pop();
3545
+ var u, p = i.determineTestTemplate.call(a, s, c);
3546
+ if (p && (!0 !== p.match.jit || "master" === p.match.newBlockMarker && (u = o.validPositions[s + 1]) && !0 === u.match.optionalQuantifier) && ((p = l.extend({}, p, {
3547
+ input: i.getPlaceholder.call(a, s, p.match, !0) || p.match.def
3548
+ })).generatedInput = !0, v.call(a, s, p, !0), !0 !== n)) {
3549
+ var d = o.validPositions[t].input;
3550
+ return o.validPositions[t] = void 0, f.call(a, t, d, !0, !0);
3551
+ }
3552
+ }
3553
+ }
3554
+ }
3555
+ function v(e, t, n, a) {
3556
+ var o = this, l = this.maskset, s = this.opts, c = this.dependencyLib;
3557
+ function u(e, t, n) {
3558
+ var i = t[e];
3559
+ if (void 0 !== i && !0 === i.match.static && !0 !== i.match.optionality && (void 0 === t[0] || void 0 === t[0].alternation)) {
3560
+ var a = n.begin <= e - 1 ? t[e - 1] && !0 === t[e - 1].match.static && t[e - 1] : t[e - 1], r = n.end > e + 1 ? t[e + 1] && !0 === t[e + 1].match.static && t[e + 1] : t[e + 1];
3561
+ return a && r;
3562
+ }
3563
+ return !1;
3564
+ }
3565
+ var d = 0, h = void 0 !== e.begin ? e.begin : e, v = void 0 !== e.end ? e.end : e, m = !0;
3566
+ if (e.begin > e.end && (h = e.end, v = e.begin), a = void 0 !== a ? a : h, void 0 === n && (h !== v || s.insertMode && void 0 !== l.validPositions[a] || void 0 === t || t.match.optionalQuantifier || t.match.optionality)) {
3567
+ var g, y = c.extend(!0, [], l.validPositions), k = r.getLastValidPosition.call(o, void 0, !0);
3568
+ for (l.p = h, g = k; g >= h; g--) l.validPositions.splice(g, 1), void 0 === t && delete l.tests[g + 1];
3569
+ var b, x, P = a, w = P;
3570
+ for (t && (l.validPositions[a] = c.extend(!0, {}, t), w++, P++), null == y[v] && l.jitOffset[v] && (v += l.jitOffset[v] + 1),
3571
+ g = t ? v : v - 1; g <= k; g++) {
3572
+ if (void 0 !== (b = y[g]) && !0 !== b.generatedInput && (g >= v || g >= h && u(g, y, {
3573
+ begin: h,
3574
+ end: v
3575
+ }))) {
3576
+ for (;"" !== i.getTest.call(o, w).match.def; ) {
3577
+ if (!1 !== (x = p.call(o, w, b, s)) || "+" === b.match.def) {
3578
+ "+" === b.match.def && r.getBuffer.call(o, !0);
3579
+ var S = f.call(o, w, b.input, "+" !== b.match.def, !0);
3580
+ if (m = !1 !== S, P = (S.pos || w) + 1, !m && x) break;
3581
+ } else m = !1;
3582
+ if (m) {
3583
+ void 0 === t && b.match.static && g === e.begin && d++;
3584
+ break;
3585
+ }
3586
+ if (!m && r.getBuffer.call(o), w > l.maskLength) break;
3587
+ w++;
3588
+ }
3589
+ "" == i.getTest.call(o, w).match.def && (m = !1), w = P;
3590
+ }
3591
+ if (!m) break;
3592
+ }
3593
+ if (!m) return l.validPositions = c.extend(!0, [], y), r.resetMaskSet.call(o, !0),
3594
+ !1;
3595
+ } else t && i.getTest.call(o, a).match.cd === t.match.cd && (l.validPositions[a] = c.extend(!0, {}, t));
3596
+ return r.resetMaskSet.call(o, !0), d;
3597
+ }
3598
+ }
3599
+ }, t = {};
3600
+ function n(i) {
3601
+ var a = t[i];
3602
+ if (void 0 !== a) return a.exports;
3603
+ var r = t[i] = {
3604
+ exports: {}
3605
+ };
3606
+ return e[i](r, r.exports, n), r.exports;
3607
+ }
3608
+ var i = {};
3609
+ return function() {
3610
+ var e, t = i;
3611
+ Object.defineProperty(t, "__esModule", {
3612
+ value: !0
3613
+ }), t.default = void 0, n(7149), n(3194), n(9302), n(4013), n(3851), n(219), n(207),
3614
+ n(5296);
3615
+ var a = ((e = n(2394)) && e.__esModule ? e : {
3616
+ default: e
3617
+ }).default;
3618
+ t.default = a;
3619
+ }(), i;
3620
+ }();
3621
+ }));
3622
+ } (inputmask$1));
3623
+
3624
+ var inputmaskExports = inputmask$1.exports;
3625
+ var inputmask = /*@__PURE__*/getDefaultExportFromCjs(inputmaskExports);
3626
+
3627
+ function flow(...funcs) {
3628
+ const { length } = funcs;
3629
+ let index = length;
3630
+ while (index--) {
3631
+ if (typeof funcs[index] !== "function") {
3632
+ throw new TypeError("Expected a function");
66
3633
  }
67
- return keys;
68
- }
69
- function _object_spread_props$2(target, source) {
70
- source = source != null ? source : {};
71
- if (Object.getOwnPropertyDescriptors) {
72
- Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
73
- } else {
74
- ownKeys$2(Object(source)).forEach(function(key) {
75
- Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
76
- });
3634
+ }
3635
+ return (...args) => {
3636
+ let i = 0;
3637
+ let result = length ? funcs[i].apply(this, args) : args[0];
3638
+ while (++i < length) {
3639
+ result = funcs[i].call(this, result);
77
3640
  }
78
- return target;
3641
+ return result;
3642
+ };
79
3643
  }
80
- const getMaskOptions = (mask, _options)=>{
81
- const options = _object_spread_props$2(_object_spread$2({}, _options), {
82
- jitMasking: false
83
- });
84
- if (!mask) return options;
85
- const masks = {
86
- datetime: _object_spread$2({
87
- alias: 'datetime',
88
- inputFormat: 'dd/mm/yyyy',
89
- placeholder: 'dd/mm/yyyy'
90
- }, options),
91
- cpf: _object_spread$2({
92
- mask: '999.999.999-99',
93
- placeholder: '___.___.___-__'
94
- }, options),
95
- cnpj: _object_spread$2({
96
- mask: '99.999.999/9999-99',
97
- placeholder: '__.___.___/____-__'
98
- }, options),
99
- email: _object_spread$2({
100
- alias: 'email',
101
- placeholder: ''
102
- }, options),
103
- numeric: _object_spread$2({
104
- alias: 'numeric',
105
- placeholder: ''
106
- }, options),
107
- currency: _object_spread$2({
108
- alias: 'currency',
109
- prefix: '$ ',
110
- placeholder: ''
111
- }, options),
112
- decimal: _object_spread$2({
113
- alias: 'decimal',
114
- placeholder: ''
115
- }, options),
116
- integer: _object_spread$2({
117
- alias: 'integer',
118
- placeholder: ''
119
- }, options),
120
- percentage: _object_spread$2({
121
- alias: 'percentage',
122
- placeholder: ' %',
123
- suffix: ' %'
124
- }, options),
125
- url: _object_spread$2({
126
- alias: 'url',
127
- placeholder: 'https://'
128
- }, options),
129
- ip: _object_spread$2({
130
- alias: 'ip'
131
- }, options),
132
- mac: _object_spread$2({
133
- alias: 'mac'
134
- }, options),
135
- ssn: _object_spread$2({
136
- alias: 'ssn'
137
- }, options)
138
- };
139
- if (typeof mask === 'string') {
140
- if (masks[mask]) return masks[mask];
141
- } else if (typeof mask === 'object') {
142
- return _object_spread$2({}, mask, options);
3644
+
3645
+ const isServer = !(typeof window !== "undefined" && window.document && window.document.createElement);
3646
+
3647
+ var __defProp$2 = Object.defineProperty;
3648
+ var __defProps$2 = Object.defineProperties;
3649
+ var __getOwnPropDescs$2 = Object.getOwnPropertyDescriptors;
3650
+ var __getOwnPropSymbols$2 = Object.getOwnPropertySymbols;
3651
+ var __hasOwnProp$2 = Object.prototype.hasOwnProperty;
3652
+ var __propIsEnum$2 = Object.prototype.propertyIsEnumerable;
3653
+ var __defNormalProp$2 = (obj, key, value) => key in obj ? __defProp$2(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
3654
+ var __spreadValues$2 = (a, b) => {
3655
+ for (var prop in b || (b = {}))
3656
+ if (__hasOwnProp$2.call(b, prop))
3657
+ __defNormalProp$2(a, prop, b[prop]);
3658
+ if (__getOwnPropSymbols$2)
3659
+ for (var prop of __getOwnPropSymbols$2(b)) {
3660
+ if (__propIsEnum$2.call(b, prop))
3661
+ __defNormalProp$2(a, prop, b[prop]);
143
3662
  }
144
- return _object_spread$2({
145
- mask
146
- }, options);
3663
+ return a;
147
3664
  };
148
-
149
- const useInputMask = (props)=>{
150
- const { mask , register , options } = props;
151
- const ref = react.useRef(null);
152
- if (isServer) return ref;
153
- react.useEffect(()=>{
154
- if (!isServer) {
155
- if (!ref.current) return;
156
- const maskInput = Inputmask(getMaskOptions(mask, options));
157
- maskInput.mask(ref.current);
158
- if (register && ref.current) {
159
- register(ref.current);
160
- }
161
- }
162
- }, [
163
- mask,
164
- register,
165
- options
166
- ]);
167
- return ref;
3665
+ var __spreadProps$2 = (a, b) => __defProps$2(a, __getOwnPropDescs$2(b));
3666
+ const getMaskOptions = (mask, _options) => {
3667
+ const options = __spreadProps$2(__spreadValues$2({}, _options), {
3668
+ jitMasking: false
3669
+ });
3670
+ if (!mask)
3671
+ return options;
3672
+ const masks = {
3673
+ datetime: __spreadValues$2({
3674
+ alias: "datetime"
3675
+ }, options),
3676
+ email: __spreadValues$2({
3677
+ alias: "email",
3678
+ placeholder: ""
3679
+ }, options),
3680
+ numeric: __spreadValues$2({
3681
+ alias: "numeric",
3682
+ placeholder: ""
3683
+ }, options),
3684
+ currency: __spreadValues$2({
3685
+ alias: "currency",
3686
+ prefix: "$ ",
3687
+ placeholder: ""
3688
+ }, options),
3689
+ decimal: __spreadValues$2({
3690
+ alias: "decimal",
3691
+ placeholder: ""
3692
+ }, options),
3693
+ integer: __spreadValues$2({
3694
+ alias: "integer",
3695
+ placeholder: ""
3696
+ }, options),
3697
+ percentage: __spreadValues$2({
3698
+ alias: "percentage",
3699
+ placeholder: " %",
3700
+ suffix: " %"
3701
+ }, options),
3702
+ url: __spreadValues$2({
3703
+ alias: "url",
3704
+ placeholder: "https://"
3705
+ }, options),
3706
+ ip: __spreadValues$2({
3707
+ alias: "ip"
3708
+ }, options),
3709
+ mac: __spreadValues$2({
3710
+ alias: "mac"
3711
+ }, options),
3712
+ ssn: __spreadValues$2({
3713
+ alias: "ssn"
3714
+ }, options),
3715
+ // alias for brazilians <3
3716
+ "brl-currency": __spreadValues$2({
3717
+ alias: "currency",
3718
+ prefix: "R$ ",
3719
+ placeholder: "0,00",
3720
+ displayFormat: "currency",
3721
+ radixPoint: ",",
3722
+ autoUnmask: true
3723
+ }, options),
3724
+ cpf: __spreadValues$2({
3725
+ mask: "999.999.999-99",
3726
+ placeholder: "___.___.___-__"
3727
+ }, options),
3728
+ cnpj: __spreadValues$2({
3729
+ mask: "99.999.999/9999-99",
3730
+ placeholder: "__.___.___/____-__"
3731
+ }, options)
3732
+ };
3733
+ if (typeof mask === "string" && masks[mask])
3734
+ return masks[mask];
3735
+ return __spreadValues$2({
3736
+ mask
3737
+ }, options);
168
3738
  };
169
3739
 
170
- function _define_property$1(obj, key, value) {
171
- if (key in obj) {
172
- Object.defineProperty(obj, key, {
173
- value: value,
174
- enumerable: true,
175
- configurable: true,
176
- writable: true
177
- });
178
- } else {
179
- obj[key] = value;
180
- }
181
- return obj;
182
- }
183
- function _object_spread$1(target) {
184
- for(var i = 1; i < arguments.length; i++){
185
- var source = arguments[i] != null ? arguments[i] : {};
186
- var ownKeys = Object.keys(source);
187
- if (typeof Object.getOwnPropertySymbols === "function") {
188
- ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function(sym) {
189
- return Object.getOwnPropertyDescriptor(source, sym).enumerable;
190
- }));
191
- }
192
- ownKeys.forEach(function(key) {
193
- _define_property$1(target, key, source[key]);
194
- });
3740
+ var __defProp$1 = Object.defineProperty;
3741
+ var __defProps$1 = Object.defineProperties;
3742
+ var __getOwnPropDescs$1 = Object.getOwnPropertyDescriptors;
3743
+ var __getOwnPropSymbols$1 = Object.getOwnPropertySymbols;
3744
+ var __hasOwnProp$1 = Object.prototype.hasOwnProperty;
3745
+ var __propIsEnum$1 = Object.prototype.propertyIsEnumerable;
3746
+ var __defNormalProp$1 = (obj, key, value) => key in obj ? __defProp$1(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
3747
+ var __spreadValues$1 = (a, b) => {
3748
+ for (var prop in b || (b = {}))
3749
+ if (__hasOwnProp$1.call(b, prop))
3750
+ __defNormalProp$1(a, prop, b[prop]);
3751
+ if (__getOwnPropSymbols$1)
3752
+ for (var prop of __getOwnPropSymbols$1(b)) {
3753
+ if (__propIsEnum$1.call(b, prop))
3754
+ __defNormalProp$1(a, prop, b[prop]);
195
3755
  }
196
- return target;
197
- }
198
- function ownKeys$1(object, enumerableOnly) {
199
- var keys = Object.keys(object);
200
- if (Object.getOwnPropertySymbols) {
201
- var symbols = Object.getOwnPropertySymbols(object);
202
- if (enumerableOnly) {
203
- symbols = symbols.filter(function(sym) {
204
- return Object.getOwnPropertyDescriptor(object, sym).enumerable;
205
- });
206
- }
207
- keys.push.apply(keys, symbols);
208
- }
209
- return keys;
210
- }
211
- function _object_spread_props$1(target, source) {
212
- source = source != null ? source : {};
213
- if (Object.getOwnPropertyDescriptors) {
214
- Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
215
- } else {
216
- ownKeys$1(Object(source)).forEach(function(key) {
217
- Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
218
- });
219
- }
220
- return target;
221
- }
222
- const withHookFormMask = (register, mask, options)=>{
223
- //
224
- let newRef;
225
- if (register) {
226
- const { ref } = register;
227
- const maskInput = Inputmask(getMaskOptions(mask, options));
228
- newRef = flow((_ref)=>{
229
- if (_ref) maskInput.mask(_ref);
230
- return _ref;
231
- }, ref);
232
- }
233
- return _object_spread_props$1(_object_spread$1({}, register), {
234
- ref: newRef
235
- });
3756
+ return a;
3757
+ };
3758
+ var __spreadProps$1 = (a, b) => __defProps$1(a, __getOwnPropDescs$1(b));
3759
+ const withHookFormMask = (register, mask, options) => {
3760
+ let newRef;
3761
+ if (register) {
3762
+ const { ref } = register;
3763
+ const maskInput = inputmask(getMaskOptions(mask, options));
3764
+ newRef = flow((_ref) => {
3765
+ if (_ref)
3766
+ maskInput.mask(_ref);
3767
+ return _ref;
3768
+ }, ref);
3769
+ }
3770
+ return __spreadProps$1(__spreadValues$1({}, register), {
3771
+ ref: newRef
3772
+ });
236
3773
  };
237
3774
 
238
- const withMask = (mask, options)=>(input)=>{
239
- //
240
- if (isServer) return input;
241
- if (mask === null) return input;
242
- const maskInput = Inputmask(getMaskOptions(mask, options));
243
- if (input) {
244
- maskInput.mask(input);
245
- }
246
- return input;
247
- };
248
-
249
- function _define_property(obj, key, value) {
250
- if (key in obj) {
251
- Object.defineProperty(obj, key, {
252
- value: value,
253
- enumerable: true,
254
- configurable: true,
255
- writable: true
256
- });
257
- } else {
258
- obj[key] = value;
259
- }
260
- return obj;
261
- }
262
- function _object_spread(target) {
263
- for(var i = 1; i < arguments.length; i++){
264
- var source = arguments[i] != null ? arguments[i] : {};
265
- var ownKeys = Object.keys(source);
266
- if (typeof Object.getOwnPropertySymbols === "function") {
267
- ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function(sym) {
268
- return Object.getOwnPropertyDescriptor(source, sym).enumerable;
269
- }));
270
- }
271
- ownKeys.forEach(function(key) {
272
- _define_property(target, key, source[key]);
273
- });
274
- }
275
- return target;
276
- }
277
- function ownKeys(object, enumerableOnly) {
278
- var keys = Object.keys(object);
279
- if (Object.getOwnPropertySymbols) {
280
- var symbols = Object.getOwnPropertySymbols(object);
281
- if (enumerableOnly) {
282
- symbols = symbols.filter(function(sym) {
283
- return Object.getOwnPropertyDescriptor(object, sym).enumerable;
284
- });
285
- }
286
- keys.push.apply(keys, symbols);
287
- }
288
- return keys;
289
- }
290
- function _object_spread_props(target, source) {
291
- source = source != null ? source : {};
292
- if (Object.getOwnPropertyDescriptors) {
293
- Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
294
- } else {
295
- ownKeys(Object(source)).forEach(function(key) {
296
- Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
297
- });
298
- }
299
- return target;
300
- }
301
- function _object_without_properties(source, excluded) {
302
- if (source == null) return {};
303
- var target = _object_without_properties_loose(source, excluded);
304
- var key, i;
305
- if (Object.getOwnPropertySymbols) {
306
- var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
307
- for(i = 0; i < sourceSymbolKeys.length; i++){
308
- key = sourceSymbolKeys[i];
309
- if (excluded.indexOf(key) >= 0) continue;
310
- if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;
311
- target[key] = source[key];
312
- }
3775
+ const withMask = (mask, options) => (input) => {
3776
+ if (isServer)
3777
+ return input;
3778
+ if (mask === null)
3779
+ return input;
3780
+ const maskInput = inputmask(getMaskOptions(mask, options));
3781
+ if (input) {
3782
+ maskInput.mask(input);
3783
+ }
3784
+ return input;
3785
+ };
3786
+
3787
+ var __defProp = Object.defineProperty;
3788
+ var __defProps = Object.defineProperties;
3789
+ var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
3790
+ var __getOwnPropSymbols = Object.getOwnPropertySymbols;
3791
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
3792
+ var __propIsEnum = Object.prototype.propertyIsEnumerable;
3793
+ var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
3794
+ var __spreadValues = (a, b) => {
3795
+ for (var prop in b || (b = {}))
3796
+ if (__hasOwnProp.call(b, prop))
3797
+ __defNormalProp(a, prop, b[prop]);
3798
+ if (__getOwnPropSymbols)
3799
+ for (var prop of __getOwnPropSymbols(b)) {
3800
+ if (__propIsEnum.call(b, prop))
3801
+ __defNormalProp(a, prop, b[prop]);
313
3802
  }
314
- return target;
315
- }
316
- function _object_without_properties_loose(source, excluded) {
317
- if (source == null) return {};
318
- var target = {};
319
- var sourceKeys = Object.keys(source);
320
- var key, i;
321
- for(i = 0; i < sourceKeys.length; i++){
322
- key = sourceKeys[i];
323
- if (excluded.indexOf(key) >= 0) continue;
324
- target[key] = source[key];
3803
+ return a;
3804
+ };
3805
+ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
3806
+ var __objRest = (source, exclude) => {
3807
+ var target = {};
3808
+ for (var prop in source)
3809
+ if (__hasOwnProp.call(source, prop) && exclude.indexOf(prop) < 0)
3810
+ target[prop] = source[prop];
3811
+ if (source != null && __getOwnPropSymbols)
3812
+ for (var prop of __getOwnPropSymbols(source)) {
3813
+ if (exclude.indexOf(prop) < 0 && __propIsEnum.call(source, prop))
3814
+ target[prop] = source[prop];
325
3815
  }
326
- return target;
327
- }
3816
+ return target;
3817
+ };
328
3818
  function useHookFormMask(registerFn) {
329
- return (fieldName, mask, options)=>{
330
- if (!registerFn) throw new Error('registerFn is required');
331
- const _registerFn = registerFn(fieldName), { ref } = _registerFn, restRegister = _object_without_properties(_registerFn, [
332
- "ref"
333
- ]);
334
- const maskInput = Inputmask(getMaskOptions(mask, options));
335
- const newRef = flow((_ref)=>{
336
- if (_ref) maskInput.mask(_ref);
337
- return _ref;
338
- }, ref);
339
- return _object_spread_props(_object_spread({}, restRegister), {
340
- ref: newRef
341
- });
342
- };
3819
+ return (fieldName, mask, options) => {
3820
+ if (!registerFn)
3821
+ throw new Error("registerFn is required");
3822
+ const _a = registerFn(fieldName), { ref } = _a, restRegister = __objRest(_a, ["ref"]);
3823
+ const maskInput = inputmask(getMaskOptions(mask, options));
3824
+ const newRef = flow((_ref) => {
3825
+ if (_ref)
3826
+ maskInput.mask(_ref);
3827
+ return _ref;
3828
+ }, ref);
3829
+ return __spreadProps(__spreadValues({}, restRegister), {
3830
+ ref: newRef
3831
+ });
3832
+ };
343
3833
  }
344
3834
 
345
- exports.default = useInputMask;
3835
+ const useInputMask = (props) => {
3836
+ const { mask, register, options } = props;
3837
+ const ref = react.useRef(null);
3838
+ if (isServer)
3839
+ return ref;
3840
+ react.useEffect(() => {
3841
+ if (!isServer) {
3842
+ if (!ref.current)
3843
+ return;
3844
+ const maskInput = inputmask(getMaskOptions(mask, options));
3845
+ maskInput.mask(ref.current);
3846
+ if (register && ref.current) {
3847
+ register(ref.current);
3848
+ }
3849
+ }
3850
+ }, [mask, register, options]);
3851
+ return ref;
3852
+ };
3853
+
346
3854
  exports.useHookFormMask = useHookFormMask;
3855
+ exports.useInputMask = useInputMask;
347
3856
  exports.withHookFormMask = withHookFormMask;
348
3857
  exports.withMask = withMask;
349
3858
  //# sourceMappingURL=index.cjs.map