use-mask-input 3.10.0 → 3.10.1

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