PluginProbe ʕ •ᴥ•ʔ
JetFormBuilder — Dynamic Blocks Form Builder / 3.0.0
JetFormBuilder — Dynamic Blocks Form Builder v3.0.0
3.6.3.1 3.6.3 3.6.2.2 3.6.2.1 3.6.2 3.6.1.1 3.6.1 3.6.0.1 trunk 1.0.0 1.0.1 1.0.2 1.0.3 1.1.0 1.1.1 1.1.2 1.1.3 1.1.4 1.1.5 1.1.6 1.1.7 1.2.0 1.2.1 1.2.2 1.2.3 1.2.4 1.2.5 1.2.6 1.2.7 1.3.0 1.3.1 1.3.2 1.3.3 1.4.0 1.4.1 1.4.2 1.4.3 1.5.0 1.5.1 1.5.2 1.5.3 1.5.4 1.5.5 2.0.0 2.0.1 2.0.2 2.0.3 2.0.4 2.0.5 2.0.6 2.1.0 2.1.1 2.1.10 2.1.11 2.1.2 2.1.3 2.1.4 2.1.5 2.1.6 2.1.7 2.1.8 2.1.9 3.0.0 3.0.0.1 3.0.0.2 3.0.0.3 3.0.1 3.0.1.1 3.0.2 3.0.3 3.0.4 3.0.5 3.0.6 3.0.7 3.0.8 3.0.9 3.1.0 3.1.0.1 3.1.1 3.1.2 3.1.3 3.1.4 3.1.5 3.1.6 3.1.7 3.1.8 3.1.9 3.2.0 3.2.1 3.2.2 3.2.3 3.3.0 3.3.1 3.3.2 3.3.3 3.3.3.1 3.3.4 3.3.4.1 3.3.4.2 3.4.0 3.4.1 3.4.2 3.4.3 3.4.4 3.4.5 3.4.5.1 3.4.5.2 3.4.6 3.4.7 3.4.7.1 3.5.0 3.5.1 3.5.1.1 3.5.1.2 3.5.2 3.5.2.1 3.5.3 3.5.4 3.5.5 3.5.6 3.5.6.1 3.5.6.2 3.5.6.3 3.6.0
jetformbuilder / assets / lib / inputmask / jquery.inputmask.js
jetformbuilder / assets / lib / inputmask Last commit date
jquery.inputmask.js 3 years ago jquery.inputmask.min.js 3 years ago
jquery.inputmask.js
2996 lines
1 /*!
2 * dist/jquery.inputmask
3 * https://github.com/RobinHerbots/Inputmask
4 * Copyright (c) 2010 - 2022 Robin Herbots
5 * Licensed under the MIT license
6 * Version: 5.0.8-beta.25
7 */
8 !function(e, t) {
9 if ("object" == typeof exports && "object" == typeof module) module.exports = t(require("jquery")); else if ("function" == typeof define && define.amd) define([ "jquery" ], t); else {
10 var i = "object" == typeof exports ? t(require("jquery")) : t(e.jQuery);
11 for (var a in i) ("object" == typeof exports ? exports : e)[a] = i[a];
12 }
13 }(self || this, (function(e) {
14 return function() {
15 "use strict";
16 var t = {
17 3046: function(e, t, i) {
18 var a;
19 Object.defineProperty(t, "__esModule", {
20 value: !0
21 }), t.default = void 0, i(3851), i(219), i(207), i(5296);
22 var n = ((a = i(2394)) && a.__esModule ? a : {
23 default: a
24 }).default;
25 t.default = n;
26 },
27 8741: function(e, t) {
28 Object.defineProperty(t, "__esModule", {
29 value: !0
30 }), t.default = void 0;
31 var i = !("undefined" == typeof window || !window.document || !window.document.createElement);
32 t.default = i;
33 },
34 3976: function(e, t, i) {
35 Object.defineProperty(t, "__esModule", {
36 value: !0
37 }), t.default = void 0;
38 var a, n = (a = i(5581)) && a.__esModule ? a : {
39 default: a
40 };
41 var r = {
42 _maxTestPos: 500,
43 placeholder: "_",
44 optionalmarker: [ "[", "]" ],
45 quantifiermarker: [ "{", "}" ],
46 groupmarker: [ "(", ")" ],
47 alternatormarker: "|",
48 escapeChar: "\\",
49 mask: null,
50 regex: null,
51 oncomplete: function() {},
52 onincomplete: function() {},
53 oncleared: function() {},
54 repeat: 0,
55 greedy: !1,
56 autoUnmask: !1,
57 removeMaskOnSubmit: !1,
58 clearMaskOnLostFocus: !0,
59 insertMode: !0,
60 insertModeVisual: !0,
61 clearIncomplete: !1,
62 alias: null,
63 onKeyDown: function() {},
64 onBeforeMask: null,
65 onBeforePaste: function(e, t) {
66 return "function" == typeof t.onBeforeMask ? t.onBeforeMask.call(this, e, t) : e;
67 },
68 onBeforeWrite: null,
69 onUnMask: null,
70 showMaskOnFocus: !0,
71 showMaskOnHover: !0,
72 onKeyValidation: function() {},
73 skipOptionalPartCharacter: " ",
74 numericInput: !1,
75 rightAlign: !1,
76 undoOnEscape: !0,
77 radixPoint: "",
78 _radixDance: !1,
79 groupSeparator: "",
80 keepStatic: null,
81 positionCaretOnTab: !0,
82 tabThrough: !1,
83 supportsInputType: [ "text", "tel", "url", "password", "search" ],
84 ignorables: [ n.default.BACKSPACE, n.default.TAB, n.default["PAUSE/BREAK"], n.default.ESCAPE, n.default.PAGE_UP, n.default.PAGE_DOWN, n.default.END, n.default.HOME, n.default.LEFT, n.default.UP, n.default.RIGHT, n.default.DOWN, n.default.INSERT, n.default.DELETE, 93, 112, 113, 114, 115, 116, 117, 118, 119, 120, 121, 122, 123, 0, 229 ],
85 isComplete: null,
86 preValidation: null,
87 postValidation: null,
88 staticDefinitionSymbol: void 0,
89 jitMasking: !1,
90 nullable: !0,
91 inputEventOnly: !1,
92 noValuePatching: !1,
93 positionCaretOnClick: "lvp",
94 casing: null,
95 inputmode: "text",
96 importDataAttributes: !0,
97 shiftPositions: !0,
98 usePrototypeDefinitions: !0,
99 validationEventTimeOut: 3e3,
100 substitutes: {}
101 };
102 t.default = r;
103 },
104 7392: function(e, t) {
105 Object.defineProperty(t, "__esModule", {
106 value: !0
107 }), t.default = void 0;
108 t.default = {
109 9: {
110 validator: "[0-9\uff10-\uff19]",
111 definitionSymbol: "*"
112 },
113 a: {
114 validator: "[A-Za-z\u0410-\u044f\u0401\u0451\xc0-\xff\xb5]",
115 definitionSymbol: "*"
116 },
117 "*": {
118 validator: "[0-9\uff10-\uff19A-Za-z\u0410-\u044f\u0401\u0451\xc0-\xff\xb5]"
119 }
120 };
121 },
122 3287: function(e, t, i) {
123 Object.defineProperty(t, "__esModule", {
124 value: !0
125 }), t.default = void 0;
126 var a, n = (a = i(7957)) && a.__esModule ? a : {
127 default: a
128 };
129 if (void 0 === n.default) throw "jQuery not loaded!";
130 var r = n.default;
131 t.default = r;
132 },
133 9845: function(e, t, i) {
134 Object.defineProperty(t, "__esModule", {
135 value: !0
136 }), t.mobile = t.iphone = t.iemobile = t.ie = void 0;
137 var a, n = (a = i(9380)) && a.__esModule ? a : {
138 default: a
139 };
140 var r = n.default.navigator && n.default.navigator.userAgent || "", o = r.indexOf("MSIE ") > 0 || r.indexOf("Trident/") > 0, s = n.default.navigator && n.default.navigator.maxTouchPoints || "ontouchstart" in n.default, l = /iemobile/i.test(r), u = /iphone/i.test(r) && !l;
141 t.iphone = u, t.iemobile = l, t.mobile = s, t.ie = o;
142 },
143 7184: function(e, t) {
144 Object.defineProperty(t, "__esModule", {
145 value: !0
146 }), t.default = function(e) {
147 return e.replace(i, "\\$1");
148 };
149 var i = new RegExp("(\\" + [ "/", ".", "*", "+", "?", "|", "(", ")", "[", "]", "{", "}", "\\", "$", "^" ].join("|\\") + ")", "gim");
150 },
151 6030: function(e, t, i) {
152 Object.defineProperty(t, "__esModule", {
153 value: !0
154 }), t.EventHandlers = void 0;
155 var a, n = i(8711), r = (a = i(5581)) && a.__esModule ? a : {
156 default: a
157 }, o = i(9845), s = i(7215), l = i(7760), u = i(4713);
158 function c(e, t) {
159 var i = "undefined" != typeof Symbol && e[Symbol.iterator] || e["@@iterator"];
160 if (!i) {
161 if (Array.isArray(e) || (i = function(e, t) {
162 if (!e) return;
163 if ("string" == typeof e) return f(e, t);
164 var i = Object.prototype.toString.call(e).slice(8, -1);
165 "Object" === i && e.constructor && (i = e.constructor.name);
166 if ("Map" === i || "Set" === i) return Array.from(e);
167 if ("Arguments" === i || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)) return f(e, t);
168 }(e)) || t && e && "number" == typeof e.length) {
169 i && (e = i);
170 var a = 0, n = function() {};
171 return {
172 s: n,
173 n: function() {
174 return a >= e.length ? {
175 done: !0
176 } : {
177 done: !1,
178 value: e[a++]
179 };
180 },
181 e: function(e) {
182 throw e;
183 },
184 f: n
185 };
186 }
187 throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
188 }
189 var r, o = !0, s = !1;
190 return {
191 s: function() {
192 i = i.call(e);
193 },
194 n: function() {
195 var e = i.next();
196 return o = e.done, e;
197 },
198 e: function(e) {
199 s = !0, r = e;
200 },
201 f: function() {
202 try {
203 o || null == i.return || i.return();
204 } finally {
205 if (s) throw r;
206 }
207 }
208 };
209 }
210 function f(e, t) {
211 (null == t || t > e.length) && (t = e.length);
212 for (var i = 0, a = new Array(t); i < t; i++) a[i] = e[i];
213 return a;
214 }
215 var d = {
216 keydownEvent: function(e) {
217 var t = this.inputmask, i = t.opts, a = t.dependencyLib, c = t.maskset, f = this, d = a(f), p = e.keyCode, h = n.caret.call(t, f), v = i.onKeyDown.call(this, e, n.getBuffer.call(t), h, i);
218 if (void 0 !== v) return v;
219 if (p === r.default.BACKSPACE || p === r.default.DELETE || o.iphone && p === r.default.BACKSPACE_SAFARI || e.ctrlKey && p === r.default.X && !("oncut" in f)) e.preventDefault(),
220 s.handleRemove.call(t, f, p, h), (0, l.writeBuffer)(f, n.getBuffer.call(t, !0), c.p, e, f.inputmask._valueGet() !== n.getBuffer.call(t).join("")); else if (p === r.default.END || p === r.default.PAGE_DOWN) {
221 e.preventDefault();
222 var m = n.seekNext.call(t, n.getLastValidPosition.call(t));
223 n.caret.call(t, f, e.shiftKey ? h.begin : m, m, !0);
224 } else p === r.default.HOME && !e.shiftKey || p === r.default.PAGE_UP ? (e.preventDefault(),
225 n.caret.call(t, f, 0, e.shiftKey ? h.begin : 0, !0)) : i.undoOnEscape && p === r.default.ESCAPE && !0 !== e.altKey ? ((0,
226 l.checkVal)(f, !0, !1, t.undoValue.split("")), d.trigger("click")) : p !== r.default.INSERT || e.shiftKey || e.ctrlKey || void 0 !== t.userOptions.insertMode ? !0 === i.tabThrough && p === r.default.TAB ? !0 === e.shiftKey ? (h.end = n.seekPrevious.call(t, h.end, !0),
227 !0 === u.getTest.call(t, h.end - 1).match.static && h.end--, h.begin = n.seekPrevious.call(t, h.end, !0),
228 h.begin >= 0 && h.end > 0 && (e.preventDefault(), n.caret.call(t, f, h.begin, h.end))) : (h.begin = n.seekNext.call(t, h.begin, !0),
229 h.end = n.seekNext.call(t, h.begin, !0), h.end < c.maskLength && h.end--, h.begin <= c.maskLength && (e.preventDefault(),
230 n.caret.call(t, f, h.begin, h.end))) : e.shiftKey || i.insertModeVisual && !1 === i.insertMode && (p === r.default.RIGHT ? setTimeout((function() {
231 var e = n.caret.call(t, f);
232 n.caret.call(t, f, e.begin);
233 }), 0) : p === r.default.LEFT && setTimeout((function() {
234 var e = n.translatePosition.call(t, f.inputmask.caretPos.begin);
235 n.translatePosition.call(t, f.inputmask.caretPos.end);
236 t.isRTL ? n.caret.call(t, f, e + (e === c.maskLength ? 0 : 1)) : n.caret.call(t, f, e - (0 === e ? 0 : 1));
237 }), 0)) : s.isSelection.call(t, h) ? i.insertMode = !i.insertMode : (i.insertMode = !i.insertMode,
238 n.caret.call(t, f, h.begin, h.begin));
239 t.ignorable = i.ignorables.includes(p);
240 },
241 keypressEvent: function(e, t, i, a, o) {
242 var u = this.inputmask || this, c = u.opts, f = u.dependencyLib, d = u.maskset, p = u.el, h = f(p), v = e.keyCode;
243 if (!(!0 === t || e.ctrlKey && e.altKey) && (e.ctrlKey || e.metaKey || u.ignorable)) return v === r.default.ENTER && u.undoValue !== u._valueGet(!0) && (u.undoValue = u._valueGet(!0),
244 setTimeout((function() {
245 h.trigger("change");
246 }), 0)), u.skipInputEvent = !0, !0;
247 if (v) {
248 44 !== v && 46 !== v || 3 !== e.location || "" === c.radixPoint || (v = c.radixPoint.charCodeAt(0));
249 var m, g = t ? {
250 begin: o,
251 end: o
252 } : n.caret.call(u, p), k = String.fromCharCode(v);
253 k = c.substitutes[k] || k, d.writeOutBuffer = !0;
254 var y = s.isValid.call(u, g, k, a, void 0, void 0, void 0, t);
255 if (!1 !== y && (n.resetMaskSet.call(u, !0), m = void 0 !== y.caret ? y.caret : n.seekNext.call(u, y.pos.begin ? y.pos.begin : y.pos),
256 d.p = m), m = c.numericInput && void 0 === y.caret ? n.seekPrevious.call(u, m) : m,
257 !1 !== i && (setTimeout((function() {
258 c.onKeyValidation.call(p, v, y);
259 }), 0), d.writeOutBuffer && !1 !== y)) {
260 var b = n.getBuffer.call(u);
261 (0, l.writeBuffer)(p, b, m, e, !0 !== t);
262 }
263 if (e.preventDefault(), t) return !1 !== y && (y.forwardPosition = m), y;
264 }
265 },
266 keyupEvent: function(e) {
267 var t = this.inputmask;
268 t.isComposing && (e.keyCode !== r.default.KEY_229 && e.keyCode !== r.default.ENTER || t.$el.trigger("input"));
269 },
270 pasteEvent: function(e) {
271 var t, i = this.inputmask, a = i.opts, r = i._valueGet(!0), o = n.caret.call(i, this);
272 i.isRTL && (t = o.end, o.end = n.translatePosition.call(i, o.begin), o.begin = n.translatePosition.call(i, t));
273 var s = r.substr(0, o.begin), u = r.substr(o.end, r.length);
274 if (s == (i.isRTL ? n.getBufferTemplate.call(i).slice().reverse() : n.getBufferTemplate.call(i)).slice(0, o.begin).join("") && (s = ""),
275 u == (i.isRTL ? n.getBufferTemplate.call(i).slice().reverse() : n.getBufferTemplate.call(i)).slice(o.end).join("") && (u = ""),
276 window.clipboardData && window.clipboardData.getData) r = s + window.clipboardData.getData("Text") + u; else {
277 if (!e.clipboardData || !e.clipboardData.getData) return !0;
278 r = s + e.clipboardData.getData("text/plain") + u;
279 }
280 var f = r;
281 if (i.isRTL) {
282 f = f.split("");
283 var d, p = c(n.getBufferTemplate.call(i));
284 try {
285 for (p.s(); !(d = p.n()).done; ) {
286 var h = d.value;
287 f[0] === h && f.shift();
288 }
289 } catch (e) {
290 p.e(e);
291 } finally {
292 p.f();
293 }
294 f = f.join("");
295 }
296 if ("function" == typeof a.onBeforePaste) {
297 if (!1 === (f = a.onBeforePaste.call(i, f, a))) return !1;
298 f || (f = r);
299 }
300 (0, l.checkVal)(this, !0, !1, f.toString().split(""), e), e.preventDefault();
301 },
302 inputFallBackEvent: function(e) {
303 var t = this.inputmask, i = t.opts, a = t.dependencyLib;
304 var s = this, c = s.inputmask._valueGet(!0), f = (t.isRTL ? n.getBuffer.call(t).slice().reverse() : n.getBuffer.call(t)).join(""), p = n.caret.call(t, s, void 0, void 0, !0);
305 if (f !== c) {
306 c = function(e, i, a) {
307 if (o.iemobile) {
308 var r = i.replace(n.getBuffer.call(t).join(""), "");
309 if (1 === r.length) {
310 var s = i.split("");
311 s.splice(a.begin, 0, r), i = s.join("");
312 }
313 }
314 return i;
315 }(0, c, p);
316 var h = function(e, a, r) {
317 for (var o, s, l, c = e.substr(0, r.begin).split(""), f = e.substr(r.begin).split(""), d = a.substr(0, r.begin).split(""), p = a.substr(r.begin).split(""), h = c.length >= d.length ? c.length : d.length, v = f.length >= p.length ? f.length : p.length, m = "", g = [], k = "~"; c.length < h; ) c.push(k);
318 for (;d.length < h; ) d.push(k);
319 for (;f.length < v; ) f.unshift(k);
320 for (;p.length < v; ) p.unshift(k);
321 var y = c.concat(f), b = d.concat(p);
322 for (s = 0, o = y.length; s < o; s++) switch (l = u.getPlaceholder.call(t, n.translatePosition.call(t, s)),
323 m) {
324 case "insertText":
325 b[s - 1] === y[s] && r.begin == y.length - 1 && g.push(y[s]), s = o;
326 break;
327
328 case "insertReplacementText":
329 case "deleteContentBackward":
330 y[s] === k ? r.end++ : s = o;
331 break;
332
333 default:
334 y[s] !== b[s] && (y[s + 1] !== k && y[s + 1] !== l && void 0 !== y[s + 1] || (b[s] !== l || b[s + 1] !== k) && b[s] !== k ? b[s + 1] === k && b[s] === y[s + 1] ? (m = "insertText",
335 g.push(y[s]), r.begin--, r.end--) : y[s] !== l && y[s] !== k && (y[s + 1] === k || b[s] !== y[s] && b[s + 1] === y[s + 1]) ? (m = "insertReplacementText",
336 g.push(y[s]), r.begin--) : y[s] === k ? (m = "deleteContentBackward", (n.isMask.call(t, n.translatePosition.call(t, s), !0) || b[s] === i.radixPoint) && r.end++) : s = o : (m = "insertText",
337 g.push(y[s]), r.begin--, r.end--));
338 }
339 return {
340 action: m,
341 data: g,
342 caret: r
343 };
344 }(c, f, p);
345 switch ((s.inputmask.shadowRoot || s.ownerDocument).activeElement !== s && s.focus(),
346 (0, l.writeBuffer)(s, n.getBuffer.call(t)), n.caret.call(t, s, p.begin, p.end, !0),
347 h.action) {
348 case "insertText":
349 case "insertReplacementText":
350 h.data.forEach((function(e, i) {
351 var n = new a.Event("keypress");
352 n.keyCode = e.charCodeAt(0), t.ignorable = !1, d.keypressEvent.call(s, n);
353 })), setTimeout((function() {
354 t.$el.trigger("keyup");
355 }), 0);
356 break;
357
358 case "deleteContentBackward":
359 var v = new a.Event("keydown");
360 v.keyCode = r.default.BACKSPACE, d.keydownEvent.call(s, v);
361 break;
362
363 default:
364 (0, l.applyInputValue)(s, c);
365 }
366 e.preventDefault();
367 }
368 },
369 compositionendEvent: function(e) {
370 var t = this.inputmask;
371 t.isComposing = !1, t.$el.trigger("input");
372 },
373 setValueEvent: function(e) {
374 var t = this.inputmask, i = this, a = e && e.detail ? e.detail[0] : arguments[1];
375 void 0 === a && (a = i.inputmask._valueGet(!0)), (0, l.applyInputValue)(i, a), (e.detail && void 0 !== e.detail[1] || void 0 !== arguments[2]) && n.caret.call(t, i, e.detail ? e.detail[1] : arguments[2]);
376 },
377 focusEvent: function(e) {
378 var t = this.inputmask, i = t.opts, a = this, r = a.inputmask._valueGet();
379 i.showMaskOnFocus && r !== n.getBuffer.call(t).join("") && (0, l.writeBuffer)(a, n.getBuffer.call(t), n.seekNext.call(t, n.getLastValidPosition.call(t))),
380 !0 !== i.positionCaretOnTab || !1 !== t.mouseEnter || s.isComplete.call(t, n.getBuffer.call(t)) && -1 !== n.getLastValidPosition.call(t) || d.clickEvent.apply(a, [ e, !0 ]),
381 t.undoValue = t._valueGet(!0);
382 },
383 invalidEvent: function(e) {
384 this.inputmask.validationEvent = !0;
385 },
386 mouseleaveEvent: function() {
387 var e = this.inputmask, t = e.opts, i = this;
388 e.mouseEnter = !1, t.clearMaskOnLostFocus && (i.inputmask.shadowRoot || i.ownerDocument).activeElement !== i && (0,
389 l.HandleNativePlaceholder)(i, e.originalPlaceholder);
390 },
391 clickEvent: function(e, t) {
392 var i = this.inputmask, a = this;
393 if ((a.inputmask.shadowRoot || a.ownerDocument).activeElement === a) {
394 var r = n.determineNewCaretPosition.call(i, n.caret.call(i, a), t);
395 void 0 !== r && n.caret.call(i, a, r);
396 }
397 },
398 cutEvent: function(e) {
399 var t = this.inputmask, i = t.maskset, a = this, o = n.caret.call(t, a), u = t.isRTL ? n.getBuffer.call(t).slice(o.end, o.begin) : n.getBuffer.call(t).slice(o.begin, o.end), c = t.isRTL ? u.reverse().join("") : u.join("");
400 window.navigator.clipboard ? window.navigator.clipboard.writeText(c) : window.clipboardData && window.clipboardData.getData && window.clipboardData.setData("Text", c),
401 s.handleRemove.call(t, a, r.default.DELETE, o), (0, l.writeBuffer)(a, n.getBuffer.call(t), i.p, e, t.undoValue !== t._valueGet(!0));
402 },
403 blurEvent: function(e) {
404 var t = this.inputmask, i = t.opts, a = (0, t.dependencyLib)(this), r = this;
405 if (r.inputmask) {
406 (0, l.HandleNativePlaceholder)(r, t.originalPlaceholder);
407 var o = r.inputmask._valueGet(), u = n.getBuffer.call(t).slice();
408 "" !== o && (i.clearMaskOnLostFocus && (-1 === n.getLastValidPosition.call(t) && o === n.getBufferTemplate.call(t).join("") ? u = [] : l.clearOptionalTail.call(t, u)),
409 !1 === s.isComplete.call(t, u) && (setTimeout((function() {
410 a.trigger("incomplete");
411 }), 0), i.clearIncomplete && (n.resetMaskSet.call(t), u = i.clearMaskOnLostFocus ? [] : n.getBufferTemplate.call(t).slice())),
412 (0, l.writeBuffer)(r, u, void 0, e)), t.undoValue !== t._valueGet(!0) && (t.undoValue = t._valueGet(!0),
413 a.trigger("change"));
414 }
415 },
416 mouseenterEvent: function() {
417 var e = this.inputmask, t = e.opts, i = this;
418 if (e.mouseEnter = !0, (i.inputmask.shadowRoot || i.ownerDocument).activeElement !== i) {
419 var a = (e.isRTL ? n.getBufferTemplate.call(e).slice().reverse() : n.getBufferTemplate.call(e)).join("");
420 e.placeholder !== a && i.placeholder !== e.originalPlaceholder && (e.originalPlaceholder = i.placeholder),
421 t.showMaskOnHover && (0, l.HandleNativePlaceholder)(i, a);
422 }
423 },
424 submitEvent: function() {
425 var e = this.inputmask, t = e.opts;
426 e.undoValue !== e._valueGet(!0) && e.$el.trigger("change"), -1 === n.getLastValidPosition.call(e) && e._valueGet && e._valueGet() === n.getBufferTemplate.call(e).join("") && e._valueSet(""),
427 t.clearIncomplete && !1 === s.isComplete.call(e, n.getBuffer.call(e)) && e._valueSet(""),
428 t.removeMaskOnSubmit && (e._valueSet(e.unmaskedvalue(), !0), setTimeout((function() {
429 (0, l.writeBuffer)(e.el, n.getBuffer.call(e));
430 }), 0));
431 },
432 resetEvent: function() {
433 var e = this.inputmask;
434 e.refreshValue = !0, setTimeout((function() {
435 (0, l.applyInputValue)(e.el, e._valueGet(!0));
436 }), 0);
437 }
438 };
439 t.EventHandlers = d;
440 },
441 9716: function(e, t, i) {
442 Object.defineProperty(t, "__esModule", {
443 value: !0
444 }), t.EventRuler = void 0;
445 var a = s(i(2394)), n = s(i(5581)), r = i(8711), o = i(7760);
446 function s(e) {
447 return e && e.__esModule ? e : {
448 default: e
449 };
450 }
451 var l = {
452 on: function(e, t, i) {
453 var s = e.inputmask.dependencyLib, l = function(t) {
454 t.originalEvent && (t = t.originalEvent || t, arguments[0] = t);
455 var l, u = this, c = u.inputmask, f = c ? c.opts : void 0;
456 if (void 0 === c && "FORM" !== this.nodeName) {
457 var d = s.data(u, "_inputmask_opts");
458 s(u).off(), d && new a.default(d).mask(u);
459 } else {
460 if ([ "submit", "reset", "setvalue" ].includes(t.type) || "FORM" === this.nodeName || !(u.disabled || u.readOnly && !("keydown" === t.type && t.ctrlKey && 67 === t.keyCode || !1 === f.tabThrough && t.keyCode === n.default.TAB))) {
461 switch (t.type) {
462 case "input":
463 if (!0 === c.skipInputEvent || t.inputType && "insertCompositionText" === t.inputType) return c.skipInputEvent = !1,
464 t.preventDefault();
465 break;
466
467 case "keydown":
468 c.skipKeyPressEvent = !1, c.skipInputEvent = c.isComposing = t.keyCode === n.default.KEY_229;
469 break;
470
471 case "keyup":
472 case "compositionend":
473 c.isComposing && (c.skipInputEvent = !1);
474 break;
475
476 case "keypress":
477 if (!0 === c.skipKeyPressEvent) return t.preventDefault();
478 c.skipKeyPressEvent = !0;
479 break;
480
481 case "click":
482 case "focus":
483 return c.validationEvent ? (c.validationEvent = !1, e.blur(), (0, o.HandleNativePlaceholder)(e, (c.isRTL ? r.getBufferTemplate.call(c).slice().reverse() : r.getBufferTemplate.call(c)).join("")),
484 setTimeout((function() {
485 e.focus();
486 }), f.validationEventTimeOut), !1) : (l = arguments, void setTimeout((function() {
487 e.inputmask && i.apply(u, l);
488 }), 0));
489 }
490 var p = i.apply(u, arguments);
491 return !1 === p && (t.preventDefault(), t.stopPropagation()), p;
492 }
493 t.preventDefault();
494 }
495 };
496 [ "submit", "reset" ].includes(t) ? (l = l.bind(e), null !== e.form && s(e.form).on(t, l)) : s(e).on(t, l),
497 e.inputmask.events[t] = e.inputmask.events[t] || [], e.inputmask.events[t].push(l);
498 },
499 off: function(e, t) {
500 if (e.inputmask && e.inputmask.events) {
501 var i = e.inputmask.dependencyLib, a = e.inputmask.events;
502 for (var n in t && ((a = [])[t] = e.inputmask.events[t]), a) {
503 for (var r = a[n]; r.length > 0; ) {
504 var o = r.pop();
505 [ "submit", "reset" ].includes(n) ? null !== e.form && i(e.form).off(n, o) : i(e).off(n, o);
506 }
507 delete e.inputmask.events[n];
508 }
509 }
510 }
511 };
512 t.EventRuler = l;
513 },
514 219: function(e, t, i) {
515 var a = d(i(2394)), n = d(i(5581)), r = d(i(7184)), o = i(8711), s = i(4713);
516 function l(e) {
517 return l = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(e) {
518 return typeof e;
519 } : function(e) {
520 return e && "function" == typeof Symbol && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
521 }, l(e);
522 }
523 function u(e, t) {
524 return function(e) {
525 if (Array.isArray(e)) return e;
526 }(e) || function(e, t) {
527 var i = null == e ? null : "undefined" != typeof Symbol && e[Symbol.iterator] || e["@@iterator"];
528 if (null == i) return;
529 var a, n, r = [], o = !0, s = !1;
530 try {
531 for (i = i.call(e); !(o = (a = i.next()).done) && (r.push(a.value), !t || r.length !== t); o = !0) ;
532 } catch (e) {
533 s = !0, n = e;
534 } finally {
535 try {
536 o || null == i.return || i.return();
537 } finally {
538 if (s) throw n;
539 }
540 }
541 return r;
542 }(e, t) || function(e, t) {
543 if (!e) return;
544 if ("string" == typeof e) return c(e, t);
545 var i = Object.prototype.toString.call(e).slice(8, -1);
546 "Object" === i && e.constructor && (i = e.constructor.name);
547 if ("Map" === i || "Set" === i) return Array.from(e);
548 if ("Arguments" === i || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)) return c(e, t);
549 }(e, t) || function() {
550 throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
551 }();
552 }
553 function c(e, t) {
554 (null == t || t > e.length) && (t = e.length);
555 for (var i = 0, a = new Array(t); i < t; i++) a[i] = e[i];
556 return a;
557 }
558 function f(e, t) {
559 for (var i = 0; i < t.length; i++) {
560 var a = t[i];
561 a.enumerable = a.enumerable || !1, a.configurable = !0, "value" in a && (a.writable = !0),
562 Object.defineProperty(e, a.key, a);
563 }
564 }
565 function d(e) {
566 return e && e.__esModule ? e : {
567 default: e
568 };
569 }
570 var p = a.default.dependencyLib, h = function() {
571 function e(t, i, a) {
572 !function(e, t) {
573 if (!(e instanceof t)) throw new TypeError("Cannot call a class as a function");
574 }(this, e), this.mask = t, this.format = i, this.opts = a, this._date = new Date(1, 0, 1),
575 this.initDateObject(t, this.opts);
576 }
577 var t, i, a;
578 return t = e, (i = [ {
579 key: "date",
580 get: function() {
581 return void 0 === this._date && (this._date = new Date(1, 0, 1), this.initDateObject(void 0, this.opts)),
582 this._date;
583 }
584 }, {
585 key: "initDateObject",
586 value: function(e, t) {
587 var i;
588 for (P(t).lastIndex = 0; i = P(t).exec(this.format); ) {
589 var a = new RegExp("\\d+$").exec(i[0]), n = a ? i[0][0] + "x" : i[0], r = void 0;
590 if (void 0 !== e) {
591 if (a) {
592 var o = P(t).lastIndex, s = O(i.index, t);
593 P(t).lastIndex = o, r = e.slice(0, e.indexOf(s.nextMatch[0]));
594 } else r = e.slice(0, g[n] && g[n][4] || n.length);
595 e = e.slice(r.length);
596 }
597 Object.prototype.hasOwnProperty.call(g, n) && this.setValue(this, r, n, g[n][2], g[n][1]);
598 }
599 }
600 }, {
601 key: "setValue",
602 value: function(e, t, i, a, n) {
603 if (void 0 !== t && (e[a] = "ampm" === a ? t : t.replace(/[^0-9]/g, "0"), e["raw" + a] = t.replace(/\s/g, "_")),
604 void 0 !== n) {
605 var r = e[a];
606 ("day" === a && 29 === parseInt(r) || "month" === a && 2 === parseInt(r)) && (29 !== parseInt(e.day) || 2 !== parseInt(e.month) || "" !== e.year && void 0 !== e.year || e._date.setFullYear(2012, 1, 29)),
607 "day" === a && (m = !0, 0 === parseInt(r) && (r = 1)), "month" === a && (m = !0),
608 "year" === a && (m = !0, r.length < 4 && (r = w(r, 4, !0))), "" === r || isNaN(r) || n.call(e._date, r),
609 "ampm" === a && n.call(e._date, r);
610 }
611 }
612 }, {
613 key: "reset",
614 value: function() {
615 this._date = new Date(1, 0, 1);
616 }
617 }, {
618 key: "reInit",
619 value: function() {
620 this._date = void 0, this.date;
621 }
622 } ]) && f(t.prototype, i), a && f(t, a), Object.defineProperty(t, "prototype", {
623 writable: !1
624 }), e;
625 }(), v = (new Date).getFullYear(), m = !1, g = {
626 d: [ "[1-9]|[12][0-9]|3[01]", Date.prototype.setDate, "day", Date.prototype.getDate ],
627 dd: [ "0[1-9]|[12][0-9]|3[01]", Date.prototype.setDate, "day", function() {
628 return w(Date.prototype.getDate.call(this), 2);
629 } ],
630 ddd: [ "" ],
631 dddd: [ "" ],
632 m: [ "[1-9]|1[012]", function(e) {
633 var t = e ? parseInt(e) : 0;
634 return t > 0 && t--, Date.prototype.setMonth.call(this, t);
635 }, "month", function() {
636 return Date.prototype.getMonth.call(this) + 1;
637 } ],
638 mm: [ "0[1-9]|1[012]", function(e) {
639 var t = e ? parseInt(e) : 0;
640 return t > 0 && t--, Date.prototype.setMonth.call(this, t);
641 }, "month", function() {
642 return w(Date.prototype.getMonth.call(this) + 1, 2);
643 } ],
644 mmm: [ "" ],
645 mmmm: [ "" ],
646 yy: [ "[0-9]{2}", Date.prototype.setFullYear, "year", function() {
647 return w(Date.prototype.getFullYear.call(this), 2);
648 } ],
649 yyyy: [ "[0-9]{4}", Date.prototype.setFullYear, "year", function() {
650 return w(Date.prototype.getFullYear.call(this), 4);
651 } ],
652 h: [ "[1-9]|1[0-2]", Date.prototype.setHours, "hours", Date.prototype.getHours ],
653 hh: [ "0[1-9]|1[0-2]", Date.prototype.setHours, "hours", function() {
654 return w(Date.prototype.getHours.call(this), 2);
655 } ],
656 hx: [ function(e) {
657 return "[0-9]{".concat(e, "}");
658 }, Date.prototype.setHours, "hours", function(e) {
659 return Date.prototype.getHours;
660 } ],
661 H: [ "1?[0-9]|2[0-3]", Date.prototype.setHours, "hours", Date.prototype.getHours ],
662 HH: [ "0[0-9]|1[0-9]|2[0-3]", Date.prototype.setHours, "hours", function() {
663 return w(Date.prototype.getHours.call(this), 2);
664 } ],
665 Hx: [ function(e) {
666 return "[0-9]{".concat(e, "}");
667 }, Date.prototype.setHours, "hours", function(e) {
668 return function() {
669 return w(Date.prototype.getHours.call(this), e);
670 };
671 } ],
672 M: [ "[1-5]?[0-9]", Date.prototype.setMinutes, "minutes", Date.prototype.getMinutes ],
673 MM: [ "0[0-9]|1[0-9]|2[0-9]|3[0-9]|4[0-9]|5[0-9]", Date.prototype.setMinutes, "minutes", function() {
674 return w(Date.prototype.getMinutes.call(this), 2);
675 } ],
676 s: [ "[1-5]?[0-9]", Date.prototype.setSeconds, "seconds", Date.prototype.getSeconds ],
677 ss: [ "0[0-9]|1[0-9]|2[0-9]|3[0-9]|4[0-9]|5[0-9]", Date.prototype.setSeconds, "seconds", function() {
678 return w(Date.prototype.getSeconds.call(this), 2);
679 } ],
680 l: [ "[0-9]{3}", Date.prototype.setMilliseconds, "milliseconds", function() {
681 return w(Date.prototype.getMilliseconds.call(this), 3);
682 }, 3 ],
683 L: [ "[0-9]{2}", Date.prototype.setMilliseconds, "milliseconds", function() {
684 return w(Date.prototype.getMilliseconds.call(this), 2);
685 }, 2 ],
686 t: [ "[ap]", y, "ampm", b, 1 ],
687 tt: [ "[ap]m", y, "ampm", b, 2 ],
688 T: [ "[AP]", y, "ampm", b, 1 ],
689 TT: [ "[AP]M", y, "ampm", b, 2 ],
690 Z: [ ".*", void 0, "Z", function() {
691 var e = this.toString().match(/\((.+)\)/)[1];
692 e.includes(" ") && (e = (e = e.replace("-", " ").toUpperCase()).split(" ").map((function(e) {
693 return u(e, 1)[0];
694 })).join(""));
695 return e;
696 } ],
697 o: [ "" ],
698 S: [ "" ]
699 }, k = {
700 isoDate: "yyyy-mm-dd",
701 isoTime: "HH:MM:ss",
702 isoDateTime: "yyyy-mm-dd'T'HH:MM:ss",
703 isoUtcDateTime: "UTC:yyyy-mm-dd'T'HH:MM:ss'Z'"
704 };
705 function y(e) {
706 var t = this.getHours();
707 e.toLowerCase().includes("p") ? this.setHours(t + 12) : e.toLowerCase().includes("a") && t >= 12 && this.setHours(t - 12);
708 }
709 function b() {
710 var e = this.getHours();
711 return (e = e || 12) >= 12 ? "PM" : "AM";
712 }
713 function x(e) {
714 var t = new RegExp("\\d+$").exec(e[0]);
715 if (t && void 0 !== t[0]) {
716 var i = g[e[0][0] + "x"].slice("");
717 return i[0] = i[0](t[0]), i[3] = i[3](t[0]), i;
718 }
719 if (g[e[0]]) return g[e[0]];
720 }
721 function P(e) {
722 if (!e.tokenizer) {
723 var t = [], i = [];
724 for (var a in g) if (/\.*x$/.test(a)) {
725 var n = a[0] + "\\d+";
726 -1 === i.indexOf(n) && i.push(n);
727 } else -1 === t.indexOf(a[0]) && t.push(a[0]);
728 e.tokenizer = "(" + (i.length > 0 ? i.join("|") + "|" : "") + t.join("+|") + ")+?|.",
729 e.tokenizer = new RegExp(e.tokenizer, "g");
730 }
731 return e.tokenizer;
732 }
733 function E(e, t, i) {
734 if (!m) return !0;
735 if (void 0 === e.rawday || !isFinite(e.rawday) && new Date(e.date.getFullYear(), isFinite(e.rawmonth) ? e.month : e.date.getMonth() + 1, 0).getDate() >= e.day || "29" == e.day && (!isFinite(e.rawyear) || void 0 === e.rawyear || "" === e.rawyear) || new Date(e.date.getFullYear(), isFinite(e.rawmonth) ? e.month : e.date.getMonth() + 1, 0).getDate() >= e.day) return t;
736 if ("29" == e.day) {
737 var a = O(t.pos, i);
738 if ("yyyy" === a.targetMatch[0] && t.pos - a.targetMatchIndex == 2) return t.remove = t.pos + 1,
739 t;
740 } else if ("02" == e.month && "30" == e.day && void 0 !== t.c) return e.day = "03",
741 e.date.setDate(3), e.date.setMonth(1), t.insert = [ {
742 pos: t.pos,
743 c: "0"
744 }, {
745 pos: t.pos + 1,
746 c: t.c
747 } ], t.caret = o.seekNext.call(this, t.pos + 1), t;
748 return !1;
749 }
750 function S(e, t, i, a) {
751 var n, o, s = "";
752 for (P(i).lastIndex = 0; n = P(i).exec(e); ) {
753 if (void 0 === t) if (o = x(n)) s += "(" + o[0] + ")"; else switch (n[0]) {
754 case "[":
755 s += "(";
756 break;
757
758 case "]":
759 s += ")?";
760 break;
761
762 default:
763 s += (0, r.default)(n[0]);
764 } else if (o = x(n)) if (!0 !== a && o[3]) s += o[3].call(t.date); else o[2] ? s += t["raw" + o[2]] : s += n[0]; else s += n[0];
765 }
766 return s;
767 }
768 function w(e, t, i) {
769 for (e = String(e), t = t || 2; e.length < t; ) e = i ? e + "0" : "0" + e;
770 return e;
771 }
772 function _(e, t, i) {
773 return "string" == typeof e ? new h(e, t, i) : e && "object" === l(e) && Object.prototype.hasOwnProperty.call(e, "date") ? e : void 0;
774 }
775 function M(e, t) {
776 return S(t.inputFormat, {
777 date: e
778 }, t);
779 }
780 function O(e, t) {
781 var i, a, n = 0, r = 0;
782 for (P(t).lastIndex = 0; a = P(t).exec(t.inputFormat); ) {
783 var o = new RegExp("\\d+$").exec(a[0]);
784 if ((n += r = o ? parseInt(o[0]) : a[0].length) >= e + 1) {
785 i = a, a = P(t).exec(t.inputFormat);
786 break;
787 }
788 }
789 return {
790 targetMatchIndex: n - r,
791 nextMatch: a,
792 targetMatch: i
793 };
794 }
795 a.default.extendAliases({
796 datetime: {
797 mask: function(e) {
798 return e.numericInput = !1, g.S = e.i18n.ordinalSuffix.join("|"), e.inputFormat = k[e.inputFormat] || e.inputFormat,
799 e.displayFormat = k[e.displayFormat] || e.displayFormat || e.inputFormat, e.outputFormat = k[e.outputFormat] || e.outputFormat || e.inputFormat,
800 e.placeholder = "" !== e.placeholder ? e.placeholder : e.inputFormat.replace(/[[\]]/, ""),
801 e.regex = S(e.inputFormat, void 0, e), e.min = _(e.min, e.inputFormat, e), e.max = _(e.max, e.inputFormat, e),
802 null;
803 },
804 placeholder: "",
805 inputFormat: "isoDateTime",
806 displayFormat: null,
807 outputFormat: null,
808 min: null,
809 max: null,
810 skipOptionalPartCharacter: "",
811 i18n: {
812 dayNames: [ "Mon", "Tue", "Wed", "Thu", "Fri", "Sat", "Sun", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday", "Sunday" ],
813 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" ],
814 ordinalSuffix: [ "st", "nd", "rd", "th" ]
815 },
816 preValidation: function(e, t, i, a, n, r, o, s) {
817 if (s) return !0;
818 if (isNaN(i) && e[t] !== i) {
819 var l = O(t, n);
820 if (l.nextMatch && l.nextMatch[0] === i && l.targetMatch[0].length > 1) {
821 var u = g[l.targetMatch[0]][0];
822 if (new RegExp(u).test("0" + e[t - 1])) return e[t] = e[t - 1], e[t - 1] = "0",
823 {
824 fuzzy: !0,
825 buffer: e,
826 refreshFromBuffer: {
827 start: t - 1,
828 end: t + 1
829 },
830 pos: t + 1
831 };
832 }
833 }
834 return !0;
835 },
836 postValidation: function(e, t, i, a, n, r, o, l) {
837 var u, c;
838 if (o) return !0;
839 if (!1 === a && (((u = O(t + 1, n)).targetMatch && u.targetMatchIndex === t && u.targetMatch[0].length > 1 && void 0 !== g[u.targetMatch[0]] || (u = O(t + 2, n)).targetMatch && u.targetMatchIndex === t + 1 && u.targetMatch[0].length > 1 && void 0 !== g[u.targetMatch[0]]) && (c = g[u.targetMatch[0]][0]),
840 void 0 !== c && (void 0 !== r.validPositions[t + 1] && new RegExp(c).test(i + "0") ? (e[t] = i,
841 e[t + 1] = "0", a = {
842 pos: t + 2,
843 caret: t
844 }) : new RegExp(c).test("0" + i) && (e[t] = "0", e[t + 1] = i, a = {
845 pos: t + 2
846 })), !1 === a)) return a;
847 if (a.fuzzy && (e = a.buffer, t = a.pos), (u = O(t, n)).targetMatch && u.targetMatch[0] && void 0 !== g[u.targetMatch[0]]) {
848 var f = g[u.targetMatch[0]];
849 c = f[0];
850 var d = e.slice(u.targetMatchIndex, u.targetMatchIndex + u.targetMatch[0].length);
851 if (!1 === new RegExp(c).test(d.join("")) && 2 === u.targetMatch[0].length && r.validPositions[u.targetMatchIndex] && r.validPositions[u.targetMatchIndex + 1] && (r.validPositions[u.targetMatchIndex + 1].input = "0"),
852 "year" == f[2]) for (var p = s.getMaskTemplate.call(this, !1, 1, void 0, !0), h = t + 1; h < e.length; h++) e[h] = p[h],
853 delete r.validPositions[h];
854 }
855 var m = a, k = _(e.join(""), n.inputFormat, n);
856 return m && !isNaN(k.date.getTime()) && (n.prefillYear && (m = function(e, t, i) {
857 if (e.year !== e.rawyear) {
858 var a = v.toString(), n = e.rawyear.replace(/[^0-9]/g, ""), r = a.slice(0, n.length), o = a.slice(n.length);
859 if (2 === n.length && n === r) {
860 var s = new Date(v, e.month - 1, e.day);
861 e.day == s.getDate() && (!i.max || i.max.date.getTime() >= s.getTime()) && (e.date.setFullYear(v),
862 e.year = a, t.insert = [ {
863 pos: t.pos + 1,
864 c: o[0]
865 }, {
866 pos: t.pos + 2,
867 c: o[1]
868 } ]);
869 }
870 }
871 return t;
872 }(k, m, n)), m = function(e, t, i, a, n) {
873 if (!t) return t;
874 if (t && i.min && !isNaN(i.min.date.getTime())) {
875 var r;
876 for (e.reset(), P(i).lastIndex = 0; r = P(i).exec(i.inputFormat); ) {
877 var o;
878 if ((o = x(r)) && o[3]) {
879 for (var s = o[1], l = e[o[2]], u = i.min[o[2]], c = i.max ? i.max[o[2]] : u, f = [], d = !1, p = 0; p < u.length; p++) void 0 !== a.validPositions[p + r.index] || d ? (f[p] = l[p],
880 d = d || l[p] > u[p]) : (f[p] = u[p], "year" === o[2] && l.length - 1 == p && u != c && (f = (parseInt(f.join("")) + 1).toString().split("")),
881 "ampm" === o[2] && u != c && i.min.date.getTime() > e.date.getTime() && (f[p] = c[p]));
882 s.call(e._date, f.join(""));
883 }
884 }
885 t = i.min.date.getTime() <= e.date.getTime(), e.reInit();
886 }
887 return t && i.max && (isNaN(i.max.date.getTime()) || (t = i.max.date.getTime() >= e.date.getTime())),
888 t;
889 }(k, m = E.call(this, k, m, n), n, r)), void 0 !== t && m && a.pos !== t ? {
890 buffer: S(n.inputFormat, k, n).split(""),
891 refreshFromBuffer: {
892 start: t,
893 end: a.pos
894 },
895 pos: a.caret || a.pos
896 } : m;
897 },
898 onKeyDown: function(e, t, i, a) {
899 e.ctrlKey && e.keyCode === n.default.RIGHT && (this.inputmask._valueSet(M(new Date, a)),
900 p(this).trigger("setvalue"));
901 },
902 onUnMask: function(e, t, i) {
903 return t ? S(i.outputFormat, _(e, i.inputFormat, i), i, !0) : t;
904 },
905 casing: function(e, t, i, a) {
906 return 0 == t.nativeDef.indexOf("[ap]") ? e.toLowerCase() : 0 == t.nativeDef.indexOf("[AP]") ? e.toUpperCase() : e;
907 },
908 onBeforeMask: function(e, t) {
909 return "[object Date]" === Object.prototype.toString.call(e) && (e = M(e, t)), e;
910 },
911 insertMode: !1,
912 shiftPositions: !1,
913 keepStatic: !1,
914 inputmode: "numeric",
915 prefillYear: !0
916 }
917 });
918 },
919 3851: function(e, t, i) {
920 var a, n = (a = i(2394)) && a.__esModule ? a : {
921 default: a
922 }, r = i(8711), o = i(4713);
923 n.default.extendDefinitions({
924 A: {
925 validator: "[A-Za-z\u0410-\u044f\u0401\u0451\xc0-\xff\xb5]",
926 casing: "upper"
927 },
928 "&": {
929 validator: "[0-9A-Za-z\u0410-\u044f\u0401\u0451\xc0-\xff\xb5]",
930 casing: "upper"
931 },
932 "#": {
933 validator: "[0-9A-Fa-f]",
934 casing: "upper"
935 }
936 });
937 var s = new RegExp("25[0-5]|2[0-4][0-9]|[01][0-9][0-9]");
938 function l(e, t, i, a, n) {
939 return i - 1 > -1 && "." !== t.buffer[i - 1] ? (e = t.buffer[i - 1] + e, e = i - 2 > -1 && "." !== t.buffer[i - 2] ? t.buffer[i - 2] + e : "0" + e) : e = "00" + e,
940 s.test(e);
941 }
942 n.default.extendAliases({
943 cssunit: {
944 regex: "[+-]?[0-9]+\\.?([0-9]+)?(px|em|rem|ex|%|in|cm|mm|pt|pc)"
945 },
946 url: {
947 regex: "(https?|ftp)://.*",
948 autoUnmask: !1,
949 keepStatic: !1,
950 tabThrough: !0
951 },
952 ip: {
953 mask: "i{1,3}.j{1,3}.k{1,3}.l{1,3}",
954 definitions: {
955 i: {
956 validator: l
957 },
958 j: {
959 validator: l
960 },
961 k: {
962 validator: l
963 },
964 l: {
965 validator: l
966 }
967 },
968 onUnMask: function(e, t, i) {
969 return e;
970 },
971 inputmode: "decimal",
972 substitutes: {
973 ",": "."
974 }
975 },
976 email: {
977 mask: function(e) {
978 var t = "*{1,64}[.*{1,64}][.*{1,64}][.*{1,63}]@-{1,63}.-{1,63}[.-{1,63}][.-{1,63}]", i = t;
979 if (e.separator) for (var a = 0; a < e.quantifier; a++) i += "[".concat(e.separator).concat(t, "]");
980 return i;
981 },
982 greedy: !1,
983 casing: "lower",
984 separator: null,
985 quantifier: 5,
986 skipOptionalPartCharacter: "",
987 onBeforePaste: function(e, t) {
988 return (e = e.toLowerCase()).replace("mailto:", "");
989 },
990 definitions: {
991 "*": {
992 validator: "[0-9\uff11-\uff19A-Za-z\u0410-\u044f\u0401\u0451\xc0-\xff\xb5!#$%&'*+/=?^_`{|}~-]"
993 },
994 "-": {
995 validator: "[0-9A-Za-z-]"
996 }
997 },
998 onUnMask: function(e, t, i) {
999 return e;
1000 },
1001 inputmode: "email"
1002 },
1003 mac: {
1004 mask: "##:##:##:##:##:##"
1005 },
1006 vin: {
1007 mask: "V{13}9{4}",
1008 definitions: {
1009 V: {
1010 validator: "[A-HJ-NPR-Za-hj-npr-z\\d]",
1011 casing: "upper"
1012 }
1013 },
1014 clearIncomplete: !0,
1015 autoUnmask: !0
1016 },
1017 ssn: {
1018 mask: "999-99-9999",
1019 postValidation: function(e, t, i, a, n, s, l) {
1020 var u = o.getMaskTemplate.call(this, !0, r.getLastValidPosition.call(this), !0, !0);
1021 return /^(?!219-09-9999|078-05-1120)(?!666|000|9.{2}).{3}-(?!00).{2}-(?!0{4}).{4}$/.test(u.join(""));
1022 }
1023 }
1024 });
1025 },
1026 207: function(e, t, i) {
1027 var a = s(i(2394)), n = s(i(5581)), r = s(i(7184)), o = i(8711);
1028 function s(e) {
1029 return e && e.__esModule ? e : {
1030 default: e
1031 };
1032 }
1033 var l = a.default.dependencyLib;
1034 function u(e, t) {
1035 for (var i = "", n = 0; n < e.length; n++) a.default.prototype.definitions[e.charAt(n)] || t.definitions[e.charAt(n)] || t.optionalmarker[0] === e.charAt(n) || t.optionalmarker[1] === e.charAt(n) || t.quantifiermarker[0] === e.charAt(n) || t.quantifiermarker[1] === e.charAt(n) || t.groupmarker[0] === e.charAt(n) || t.groupmarker[1] === e.charAt(n) || t.alternatormarker === e.charAt(n) ? i += "\\" + e.charAt(n) : i += e.charAt(n);
1036 return i;
1037 }
1038 function c(e, t, i, a) {
1039 if (e.length > 0 && t > 0 && (!i.digitsOptional || a)) {
1040 var n = e.indexOf(i.radixPoint), r = !1;
1041 i.negationSymbol.back === e[e.length - 1] && (r = !0, e.length--), -1 === n && (e.push(i.radixPoint),
1042 n = e.length - 1);
1043 for (var o = 1; o <= t; o++) isFinite(e[n + o]) || (e[n + o] = "0");
1044 }
1045 return r && e.push(i.negationSymbol.back), e;
1046 }
1047 function f(e, t) {
1048 var i = 0;
1049 for (var a in "+" === e && (i = o.seekNext.call(this, t.validPositions.length - 1)),
1050 t.tests) if ((a = parseInt(a)) >= i) for (var n = 0, r = t.tests[a].length; n < r; n++) if ((void 0 === t.validPositions[a] || "-" === e) && t.tests[a][n].match.def === e) return a + (void 0 !== t.validPositions[a] && "-" !== e ? 1 : 0);
1051 return i;
1052 }
1053 function d(e, t) {
1054 for (var i = -1, a = 0, n = t.validPositions.length; a < n; a++) {
1055 var r = t.validPositions[a];
1056 if (r && r.match.def === e) {
1057 i = a;
1058 break;
1059 }
1060 }
1061 return i;
1062 }
1063 function p(e, t, i, a, n) {
1064 var r = t.buffer ? t.buffer.indexOf(n.radixPoint) : -1, o = (-1 !== r || a && n.jitMasking) && new RegExp(n.definitions[9].validator).test(e);
1065 return n._radixDance && -1 !== r && o && null == t.validPositions[r] ? {
1066 insert: {
1067 pos: r === i ? r + 1 : r,
1068 c: n.radixPoint
1069 },
1070 pos: i
1071 } : o;
1072 }
1073 a.default.extendAliases({
1074 numeric: {
1075 mask: function(e) {
1076 e.repeat = 0, e.groupSeparator === e.radixPoint && e.digits && "0" !== e.digits && ("." === e.radixPoint ? e.groupSeparator = "," : "," === e.radixPoint ? e.groupSeparator = "." : e.groupSeparator = ""),
1077 " " === e.groupSeparator && (e.skipOptionalPartCharacter = void 0), e.placeholder.length > 1 && (e.placeholder = e.placeholder.charAt(0)),
1078 "radixFocus" === e.positionCaretOnClick && "" === e.placeholder && (e.positionCaretOnClick = "lvp");
1079 var t = "0", i = e.radixPoint;
1080 !0 === e.numericInput && void 0 === e.__financeInput ? (t = "1", e.positionCaretOnClick = "radixFocus" === e.positionCaretOnClick ? "lvp" : e.positionCaretOnClick,
1081 e.digitsOptional = !1, isNaN(e.digits) && (e.digits = 2), e._radixDance = !1, i = "," === e.radixPoint ? "?" : "!",
1082 "" !== e.radixPoint && void 0 === e.definitions[i] && (e.definitions[i] = {}, e.definitions[i].validator = "[" + e.radixPoint + "]",
1083 e.definitions[i].placeholder = e.radixPoint, e.definitions[i].static = !0, e.definitions[i].generated = !0)) : (e.__financeInput = !1,
1084 e.numericInput = !0);
1085 var a, n = "[+]";
1086 if (n += u(e.prefix, e), "" !== e.groupSeparator ? (void 0 === e.definitions[e.groupSeparator] && (e.definitions[e.groupSeparator] = {},
1087 e.definitions[e.groupSeparator].validator = "[" + e.groupSeparator + "]", e.definitions[e.groupSeparator].placeholder = e.groupSeparator,
1088 e.definitions[e.groupSeparator].static = !0, e.definitions[e.groupSeparator].generated = !0),
1089 n += e._mask(e)) : n += "9{+}", void 0 !== e.digits && 0 !== e.digits) {
1090 var o = e.digits.toString().split(",");
1091 isFinite(o[0]) && o[1] && isFinite(o[1]) ? n += i + t + "{" + e.digits + "}" : (isNaN(e.digits) || parseInt(e.digits) > 0) && (e.digitsOptional || e.jitMasking ? (a = n + i + t + "{0," + e.digits + "}",
1092 e.keepStatic = !0) : n += i + t + "{" + e.digits + "}");
1093 } else e.inputmode = "numeric";
1094 return n += u(e.suffix, e), n += "[-]", a && (n = [ a + u(e.suffix, e) + "[-]", n ]),
1095 e.greedy = !1, function(e) {
1096 void 0 === e.parseMinMaxOptions && (null !== e.min && (e.min = e.min.toString().replace(new RegExp((0,
1097 r.default)(e.groupSeparator), "g"), ""), "," === e.radixPoint && (e.min = e.min.replace(e.radixPoint, ".")),
1098 e.min = isFinite(e.min) ? parseFloat(e.min) : NaN, isNaN(e.min) && (e.min = Number.MIN_VALUE)),
1099 null !== e.max && (e.max = e.max.toString().replace(new RegExp((0, r.default)(e.groupSeparator), "g"), ""),
1100 "," === e.radixPoint && (e.max = e.max.replace(e.radixPoint, ".")), e.max = isFinite(e.max) ? parseFloat(e.max) : NaN,
1101 isNaN(e.max) && (e.max = Number.MAX_VALUE)), e.parseMinMaxOptions = "done");
1102 }(e), "" !== e.radixPoint && e.substituteRadixPoint && (e.substitutes["." == e.radixPoint ? "," : "."] = e.radixPoint),
1103 n;
1104 },
1105 _mask: function(e) {
1106 return "(" + e.groupSeparator + "999){+|1}";
1107 },
1108 digits: "*",
1109 digitsOptional: !0,
1110 enforceDigitsOnBlur: !1,
1111 radixPoint: ".",
1112 positionCaretOnClick: "radixFocus",
1113 _radixDance: !0,
1114 groupSeparator: "",
1115 allowMinus: !0,
1116 negationSymbol: {
1117 front: "-",
1118 back: ""
1119 },
1120 prefix: "",
1121 suffix: "",
1122 min: null,
1123 max: null,
1124 SetMaxOnOverflow: !1,
1125 step: 1,
1126 inputType: "text",
1127 unmaskAsNumber: !1,
1128 roundingFN: Math.round,
1129 inputmode: "decimal",
1130 shortcuts: {
1131 k: "1000",
1132 m: "1000000"
1133 },
1134 placeholder: "0",
1135 greedy: !1,
1136 rightAlign: !0,
1137 insertMode: !0,
1138 autoUnmask: !1,
1139 skipOptionalPartCharacter: "",
1140 usePrototypeDefinitions: !1,
1141 stripLeadingZeroes: !0,
1142 substituteRadixPoint: !0,
1143 definitions: {
1144 0: {
1145 validator: p
1146 },
1147 1: {
1148 validator: p,
1149 definitionSymbol: "9"
1150 },
1151 9: {
1152 validator: "[0-9\uff10-\uff19\u0660-\u0669\u06f0-\u06f9]",
1153 definitionSymbol: "*"
1154 },
1155 "+": {
1156 validator: function(e, t, i, a, n) {
1157 return n.allowMinus && ("-" === e || e === n.negationSymbol.front);
1158 }
1159 },
1160 "-": {
1161 validator: function(e, t, i, a, n) {
1162 return n.allowMinus && e === n.negationSymbol.back;
1163 }
1164 }
1165 },
1166 preValidation: function(e, t, i, a, n, r, o, s) {
1167 if (!1 !== n.__financeInput && i === n.radixPoint) return !1;
1168 var l = e.indexOf(n.radixPoint), u = t;
1169 if (t = function(e, t, i, a, n) {
1170 return n._radixDance && n.numericInput && t !== n.negationSymbol.back && e <= i && (i > 0 || t == n.radixPoint) && (void 0 === a.validPositions[e - 1] || a.validPositions[e - 1].input !== n.negationSymbol.back) && (e -= 1),
1171 e;
1172 }(t, i, l, r, n), "-" === i || i === n.negationSymbol.front) {
1173 if (!0 !== n.allowMinus) return !1;
1174 var c = !1, p = d("+", r), h = d("-", r);
1175 return -1 !== p && (c = [ p, h ]), !1 !== c ? {
1176 remove: c,
1177 caret: u - n.negationSymbol.back.length
1178 } : {
1179 insert: [ {
1180 pos: f.call(this, "+", r),
1181 c: n.negationSymbol.front,
1182 fromIsValid: !0
1183 }, {
1184 pos: f.call(this, "-", r),
1185 c: n.negationSymbol.back,
1186 fromIsValid: void 0
1187 } ],
1188 caret: u + n.negationSymbol.back.length
1189 };
1190 }
1191 if (i === n.groupSeparator) return {
1192 caret: u
1193 };
1194 if (s) return !0;
1195 if (-1 !== l && !0 === n._radixDance && !1 === a && i === n.radixPoint && void 0 !== n.digits && (isNaN(n.digits) || parseInt(n.digits) > 0) && l !== t) return {
1196 caret: n._radixDance && t === l - 1 ? l + 1 : l
1197 };
1198 if (!1 === n.__financeInput) if (a) {
1199 if (n.digitsOptional) return {
1200 rewritePosition: o.end
1201 };
1202 if (!n.digitsOptional) {
1203 if (o.begin > l && o.end <= l) return i === n.radixPoint ? {
1204 insert: {
1205 pos: l + 1,
1206 c: "0",
1207 fromIsValid: !0
1208 },
1209 rewritePosition: l
1210 } : {
1211 rewritePosition: l + 1
1212 };
1213 if (o.begin < l) return {
1214 rewritePosition: o.begin - 1
1215 };
1216 }
1217 } else if (!n.showMaskOnHover && !n.showMaskOnFocus && !n.digitsOptional && n.digits > 0 && "" === this.__valueGet.call(this.el)) return {
1218 rewritePosition: l
1219 };
1220 return {
1221 rewritePosition: t
1222 };
1223 },
1224 postValidation: function(e, t, i, a, n, r, o) {
1225 if (!1 === a) return a;
1226 if (o) return !0;
1227 if (null !== n.min || null !== n.max) {
1228 var s = n.onUnMask(e.slice().reverse().join(""), void 0, l.extend({}, n, {
1229 unmaskAsNumber: !0
1230 }));
1231 if (null !== n.min && s < n.min && (s.toString().length > n.min.toString().length || s < 0)) return !1;
1232 if (null !== n.max && s > n.max) return !!n.SetMaxOnOverflow && {
1233 refreshFromBuffer: !0,
1234 buffer: c(n.max.toString().replace(".", n.radixPoint).split(""), n.digits, n).reverse()
1235 };
1236 }
1237 return a;
1238 },
1239 onUnMask: function(e, t, i) {
1240 if ("" === t && !0 === i.nullable) return t;
1241 var a = e.replace(i.prefix, "");
1242 return a = (a = a.replace(i.suffix, "")).replace(new RegExp((0, r.default)(i.groupSeparator), "g"), ""),
1243 "" !== i.placeholder.charAt(0) && (a = a.replace(new RegExp(i.placeholder.charAt(0), "g"), "0")),
1244 i.unmaskAsNumber ? ("" !== i.radixPoint && -1 !== a.indexOf(i.radixPoint) && (a = a.replace(r.default.call(this, i.radixPoint), ".")),
1245 a = (a = a.replace(new RegExp("^" + (0, r.default)(i.negationSymbol.front)), "-")).replace(new RegExp((0,
1246 r.default)(i.negationSymbol.back) + "$"), ""), Number(a)) : a;
1247 },
1248 isComplete: function(e, t) {
1249 var i = (t.numericInput ? e.slice().reverse() : e).join("");
1250 return i = (i = (i = (i = (i = i.replace(new RegExp("^" + (0, r.default)(t.negationSymbol.front)), "-")).replace(new RegExp((0,
1251 r.default)(t.negationSymbol.back) + "$"), "")).replace(t.prefix, "")).replace(t.suffix, "")).replace(new RegExp((0,
1252 r.default)(t.groupSeparator) + "([0-9]{3})", "g"), "$1"), "," === t.radixPoint && (i = i.replace((0,
1253 r.default)(t.radixPoint), ".")), isFinite(i);
1254 },
1255 onBeforeMask: function(e, t) {
1256 var i = t.radixPoint || ",";
1257 isFinite(t.digits) && (t.digits = parseInt(t.digits)), "number" != typeof e && "number" !== t.inputType || "" === i || (e = e.toString().replace(".", i));
1258 var a = "-" === e.charAt(0) || e.charAt(0) === t.negationSymbol.front, n = e.split(i), o = n[0].replace(/[^\-0-9]/g, ""), s = n.length > 1 ? n[1].replace(/[^0-9]/g, "") : "", l = n.length > 1;
1259 e = o + ("" !== s ? i + s : s);
1260 var u = 0;
1261 if ("" !== i && (u = t.digitsOptional ? t.digits < s.length ? t.digits : s.length : t.digits,
1262 "" !== s || !t.digitsOptional)) {
1263 var f = Math.pow(10, u || 1);
1264 e = e.replace((0, r.default)(i), "."), isNaN(parseFloat(e)) || (e = (t.roundingFN(parseFloat(e) * f) / f).toFixed(u)),
1265 e = e.toString().replace(".", i);
1266 }
1267 if (0 === t.digits && -1 !== e.indexOf(i) && (e = e.substring(0, e.indexOf(i))),
1268 null !== t.min || null !== t.max) {
1269 var d = e.toString().replace(i, ".");
1270 null !== t.min && d < t.min ? e = t.min.toString().replace(".", i) : null !== t.max && d > t.max && (e = t.max.toString().replace(".", i));
1271 }
1272 return a && "-" !== e.charAt(0) && (e = "-" + e), c(e.toString().split(""), u, t, l).join("");
1273 },
1274 onBeforeWrite: function(e, t, i, a) {
1275 function n(e, t) {
1276 if (!1 !== a.__financeInput || t) {
1277 var i = e.indexOf(a.radixPoint);
1278 -1 !== i && e.splice(i, 1);
1279 }
1280 if ("" !== a.groupSeparator) for (;-1 !== (i = e.indexOf(a.groupSeparator)); ) e.splice(i, 1);
1281 return e;
1282 }
1283 var o, s;
1284 if (a.stripLeadingZeroes && (s = function(e, t) {
1285 var i = new RegExp("(^" + ("" !== t.negationSymbol.front ? (0, r.default)(t.negationSymbol.front) + "?" : "") + (0,
1286 r.default)(t.prefix) + ")(.*)(" + (0, r.default)(t.suffix) + ("" != t.negationSymbol.back ? (0,
1287 r.default)(t.negationSymbol.back) + "?" : "") + "$)").exec(e.slice().reverse().join("")), a = i ? i[2] : "", n = !1;
1288 return a && (a = a.split(t.radixPoint.charAt(0))[0], n = new RegExp("^[0" + t.groupSeparator + "]*").exec(a)),
1289 !(!n || !(n[0].length > 1 || n[0].length > 0 && n[0].length < a.length)) && n;
1290 }(t, a))) for (var u = t.join("").lastIndexOf(s[0].split("").reverse().join("")) - (s[0] == s.input ? 0 : 1), f = s[0] == s.input ? 1 : 0, d = s[0].length - f; d > 0; d--) delete this.maskset.validPositions[u + d],
1291 delete t[u + d];
1292 if (e) switch (e.type) {
1293 case "blur":
1294 case "checkval":
1295 if (null !== a.min) {
1296 var p = a.onUnMask(t.slice().reverse().join(""), void 0, l.extend({}, a, {
1297 unmaskAsNumber: !0
1298 }));
1299 if (null !== a.min && p < a.min) return {
1300 refreshFromBuffer: !0,
1301 buffer: c(a.min.toString().replace(".", a.radixPoint).split(""), a.digits, a).reverse()
1302 };
1303 }
1304 if (t[t.length - 1] === a.negationSymbol.front) {
1305 var h = new RegExp("(^" + ("" != a.negationSymbol.front ? (0, r.default)(a.negationSymbol.front) + "?" : "") + (0,
1306 r.default)(a.prefix) + ")(.*)(" + (0, r.default)(a.suffix) + ("" != a.negationSymbol.back ? (0,
1307 r.default)(a.negationSymbol.back) + "?" : "") + "$)").exec(n(t.slice(), !0).reverse().join(""));
1308 0 == (h ? h[2] : "") && (o = {
1309 refreshFromBuffer: !0,
1310 buffer: [ 0 ]
1311 });
1312 } else if ("" !== a.radixPoint) {
1313 t.indexOf(a.radixPoint) === a.suffix.length && (o && o.buffer ? o.buffer.splice(0, 1 + a.suffix.length) : (t.splice(0, 1 + a.suffix.length),
1314 o = {
1315 refreshFromBuffer: !0,
1316 buffer: n(t)
1317 }));
1318 }
1319 if (a.enforceDigitsOnBlur) {
1320 var v = (o = o || {}) && o.buffer || t.slice().reverse();
1321 o.refreshFromBuffer = !0, o.buffer = c(v, a.digits, a, !0).reverse();
1322 }
1323 }
1324 return o;
1325 },
1326 onKeyDown: function(e, t, i, a) {
1327 var r, o = l(this);
1328 if (3 != e.location) {
1329 var s, u = String.fromCharCode(e.keyCode).toLowerCase();
1330 if ((s = a.shortcuts && a.shortcuts[u]) && s.length > 1) return this.inputmask.__valueSet.call(this, parseFloat(this.inputmask.unmaskedvalue()) * parseInt(s)),
1331 o.trigger("setvalue"), !1;
1332 }
1333 if (e.ctrlKey) switch (e.keyCode) {
1334 case n.default.UP:
1335 return this.inputmask.__valueSet.call(this, parseFloat(this.inputmask.unmaskedvalue()) + parseInt(a.step)),
1336 o.trigger("setvalue"), !1;
1337
1338 case n.default.DOWN:
1339 return this.inputmask.__valueSet.call(this, parseFloat(this.inputmask.unmaskedvalue()) - parseInt(a.step)),
1340 o.trigger("setvalue"), !1;
1341 }
1342 if (!e.shiftKey && (e.keyCode === n.default.DELETE || e.keyCode === n.default.BACKSPACE || e.keyCode === n.default.BACKSPACE_SAFARI) && i.begin !== t.length) {
1343 if (t[e.keyCode === n.default.DELETE ? i.begin - 1 : i.end] === a.negationSymbol.front) return r = t.slice().reverse(),
1344 "" !== a.negationSymbol.front && r.shift(), "" !== a.negationSymbol.back && r.pop(),
1345 o.trigger("setvalue", [ r.join(""), i.begin ]), !1;
1346 if (!0 === a._radixDance) {
1347 var f = t.indexOf(a.radixPoint);
1348 if (a.digitsOptional) {
1349 if (0 === f) return (r = t.slice().reverse()).pop(), o.trigger("setvalue", [ r.join(""), i.begin >= r.length ? r.length : i.begin ]),
1350 !1;
1351 } else if (-1 !== f && (i.begin < f || i.end < f || e.keyCode === n.default.DELETE && (i.begin === f || i.begin - 1 === f))) {
1352 var d = void 0;
1353 return i.begin === i.end && (e.keyCode === n.default.BACKSPACE || e.keyCode === n.default.BACKSPACE_SAFARI ? i.begin++ : e.keyCode === n.default.DELETE && i.begin - 1 === f && (d = l.extend({}, i),
1354 i.begin--, i.end--)), (r = t.slice().reverse()).splice(r.length - i.begin, i.begin - i.end + 1),
1355 r = c(r, a.digits, a).join(""), d && (i = d), o.trigger("setvalue", [ r, i.begin >= r.length ? f + 1 : i.begin ]),
1356 !1;
1357 }
1358 }
1359 }
1360 }
1361 },
1362 currency: {
1363 prefix: "",
1364 groupSeparator: ",",
1365 alias: "numeric",
1366 digits: 2,
1367 digitsOptional: !1
1368 },
1369 decimal: {
1370 alias: "numeric"
1371 },
1372 integer: {
1373 alias: "numeric",
1374 inputmode: "numeric",
1375 digits: 0
1376 },
1377 percentage: {
1378 alias: "numeric",
1379 min: 0,
1380 max: 100,
1381 suffix: " %",
1382 digits: 0,
1383 allowMinus: !1
1384 },
1385 indianns: {
1386 alias: "numeric",
1387 _mask: function(e) {
1388 return "(" + e.groupSeparator + "99){*|1}(" + e.groupSeparator + "999){1|1}";
1389 },
1390 groupSeparator: ",",
1391 radixPoint: ".",
1392 placeholder: "0",
1393 digits: 2,
1394 digitsOptional: !1
1395 }
1396 });
1397 },
1398 9380: function(e, t, i) {
1399 var a;
1400 Object.defineProperty(t, "__esModule", {
1401 value: !0
1402 }), t.default = void 0;
1403 var n = ((a = i(8741)) && a.__esModule ? a : {
1404 default: a
1405 }).default ? window : {};
1406 t.default = n;
1407 },
1408 7760: function(e, t, i) {
1409 Object.defineProperty(t, "__esModule", {
1410 value: !0
1411 }), t.HandleNativePlaceholder = function(e, t) {
1412 var i = e ? e.inputmask : this;
1413 if (l.ie) {
1414 if (e.inputmask._valueGet() !== t && (e.placeholder !== t || "" === e.placeholder)) {
1415 var a = o.getBuffer.call(i).slice(), n = e.inputmask._valueGet();
1416 if (n !== t) {
1417 var r = o.getLastValidPosition.call(i);
1418 -1 === r && n === o.getBufferTemplate.call(i).join("") ? a = [] : -1 !== r && f.call(i, a),
1419 p(e, a);
1420 }
1421 }
1422 } else e.placeholder !== t && (e.placeholder = t, "" === e.placeholder && e.removeAttribute("placeholder"));
1423 }, t.applyInputValue = c, t.checkVal = d, t.clearOptionalTail = f, t.unmaskedvalue = function(e) {
1424 var t = e ? e.inputmask : this, i = t.opts, a = t.maskset;
1425 if (e) {
1426 if (void 0 === e.inputmask) return e.value;
1427 e.inputmask && e.inputmask.refreshValue && c(e, e.inputmask._valueGet(!0));
1428 }
1429 for (var n = [], r = a.validPositions, s = 0, l = r.length; s < l; s++) r[s] && r[s].match && (1 != r[s].match.static || Array.isArray(a.metadata) && !0 !== r[s].generatedInput) && n.push(r[s].input);
1430 var u = 0 === n.length ? "" : (t.isRTL ? n.reverse() : n).join("");
1431 if ("function" == typeof i.onUnMask) {
1432 var f = (t.isRTL ? o.getBuffer.call(t).slice().reverse() : o.getBuffer.call(t)).join("");
1433 u = i.onUnMask.call(t, f, u, i);
1434 }
1435 return u;
1436 }, t.writeBuffer = p;
1437 var a, n = (a = i(5581)) && a.__esModule ? a : {
1438 default: a
1439 }, r = i(4713), o = i(8711), s = i(7215), l = i(9845), u = i(6030);
1440 function c(e, t) {
1441 var i = e ? e.inputmask : this, a = i.opts;
1442 e.inputmask.refreshValue = !1, "function" == typeof a.onBeforeMask && (t = a.onBeforeMask.call(i, t, a) || t),
1443 d(e, !0, !1, t = t.toString().split("")), i.undoValue = i._valueGet(!0), (a.clearMaskOnLostFocus || a.clearIncomplete) && e.inputmask._valueGet() === o.getBufferTemplate.call(i).join("") && -1 === o.getLastValidPosition.call(i) && e.inputmask._valueSet("");
1444 }
1445 function f(e) {
1446 e.length = 0;
1447 for (var t, i = r.getMaskTemplate.call(this, !0, 0, !0, void 0, !0); void 0 !== (t = i.shift()); ) e.push(t);
1448 return e;
1449 }
1450 function d(e, t, i, a, n) {
1451 var l = e ? e.inputmask : this, c = l.maskset, f = l.opts, d = l.dependencyLib, h = a.slice(), v = "", m = -1, g = void 0, k = f.skipOptionalPartCharacter;
1452 f.skipOptionalPartCharacter = "", o.resetMaskSet.call(l), c.tests = {}, m = f.radixPoint ? o.determineNewCaretPosition.call(l, {
1453 begin: 0,
1454 end: 0
1455 }, !1, !1 === f.__financeInput ? "radixFocus" : void 0).begin : 0, c.p = m, l.caretPos = {
1456 begin: m
1457 };
1458 var y = [], b = l.caretPos;
1459 if (h.forEach((function(e, t) {
1460 if (void 0 !== e) {
1461 var a = new d.Event("_checkval");
1462 a.keyCode = e.toString().charCodeAt(0), v += e;
1463 var n = o.getLastValidPosition.call(l, void 0, !0);
1464 !function(e, t) {
1465 for (var i = r.getMaskTemplate.call(l, !0, 0).slice(e, o.seekNext.call(l, e, !1, !1)).join("").replace(/'/g, ""), a = i.indexOf(t); a > 0 && " " === i[a - 1]; ) a--;
1466 var n = 0 === a && !o.isMask.call(l, e) && (r.getTest.call(l, e).match.nativeDef === t.charAt(0) || !0 === r.getTest.call(l, e).match.static && r.getTest.call(l, e).match.nativeDef === "'" + t.charAt(0) || " " === r.getTest.call(l, e).match.nativeDef && (r.getTest.call(l, e + 1).match.nativeDef === t.charAt(0) || !0 === r.getTest.call(l, e + 1).match.static && r.getTest.call(l, e + 1).match.nativeDef === "'" + t.charAt(0)));
1467 if (!n && a > 0 && !o.isMask.call(l, e, !1, !0)) {
1468 var s = o.seekNext.call(l, e);
1469 l.caretPos.begin < s && (l.caretPos = {
1470 begin: s
1471 });
1472 }
1473 return n;
1474 }(m, v) ? (g = u.EventHandlers.keypressEvent.call(l, a, !0, !1, i, l.caretPos.begin)) && (m = l.caretPos.begin + 1,
1475 v = "") : g = u.EventHandlers.keypressEvent.call(l, a, !0, !1, i, n + 1), g ? (void 0 !== g.pos && c.validPositions[g.pos] && !0 === c.validPositions[g.pos].match.static && void 0 === c.validPositions[g.pos].alternation && (y.push(g.pos),
1476 l.isRTL || (g.forwardPosition = g.pos + 1)), p.call(l, void 0, o.getBuffer.call(l), g.forwardPosition, a, !1),
1477 l.caretPos = {
1478 begin: g.forwardPosition,
1479 end: g.forwardPosition
1480 }, b = l.caretPos) : void 0 === c.validPositions[t] && h[t] === r.getPlaceholder.call(l, t) && o.isMask.call(l, t, !0) ? l.caretPos.begin++ : l.caretPos = b;
1481 }
1482 })), y.length > 0) {
1483 var x, P, E = o.seekNext.call(l, -1, void 0, !1);
1484 if (!s.isComplete.call(l, o.getBuffer.call(l)) && y.length <= E || s.isComplete.call(l, o.getBuffer.call(l)) && y.length > 0 && y.length !== E && 0 === y[0]) for (var S = E; void 0 !== (x = y.shift()); ) {
1485 var w = new d.Event("_checkval");
1486 if ((P = c.validPositions[x]).generatedInput = !0, w.keyCode = P.input.charCodeAt(0),
1487 (g = u.EventHandlers.keypressEvent.call(l, w, !0, !1, i, S)) && void 0 !== g.pos && g.pos !== x && c.validPositions[g.pos] && !0 === c.validPositions[g.pos].match.static) y.push(g.pos); else if (!g) break;
1488 S++;
1489 }
1490 }
1491 t && p.call(l, e, o.getBuffer.call(l), g ? g.forwardPosition : l.caretPos.begin, n || new d.Event("checkval"), n && ("input" === n.type && l.undoValue !== o.getBuffer.call(l).join("") || "paste" === n.type)),
1492 f.skipOptionalPartCharacter = k;
1493 }
1494 function p(e, t, i, a, r) {
1495 var l = e ? e.inputmask : this, u = l.opts, c = l.dependencyLib;
1496 if (a && "function" == typeof u.onBeforeWrite) {
1497 var f = u.onBeforeWrite.call(l, a, t, i, u);
1498 if (f) {
1499 if (f.refreshFromBuffer) {
1500 var d = f.refreshFromBuffer;
1501 s.refreshFromBuffer.call(l, !0 === d ? d : d.start, d.end, f.buffer || t), t = o.getBuffer.call(l, !0);
1502 }
1503 void 0 !== i && (i = void 0 !== f.caret ? f.caret : i);
1504 }
1505 }
1506 if (void 0 !== e && (e.inputmask._valueSet(t.join("")), void 0 === i || void 0 !== a && "blur" === a.type || o.caret.call(l, e, i, void 0, void 0, void 0 !== a && "keydown" === a.type && (a.keyCode === n.default.DELETE || a.keyCode === n.default.BACKSPACE)),
1507 !0 === r)) {
1508 var p = c(e), h = e.inputmask._valueGet();
1509 e.inputmask.skipInputEvent = !0, p.trigger("input"), setTimeout((function() {
1510 h === o.getBufferTemplate.call(l).join("") ? p.trigger("cleared") : !0 === s.isComplete.call(l, t) && p.trigger("complete");
1511 }), 0);
1512 }
1513 }
1514 },
1515 2394: function(e, t, i) {
1516 Object.defineProperty(t, "__esModule", {
1517 value: !0
1518 }), t.default = void 0, i(7149), i(3194);
1519 var a = i(157), n = m(i(3287)), r = m(i(9380)), o = i(2391), s = i(4713), l = i(8711), u = i(7215), c = i(7760), f = i(9716), d = m(i(7392)), p = m(i(3976)), h = m(i(8741));
1520 function v(e) {
1521 return v = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(e) {
1522 return typeof e;
1523 } : function(e) {
1524 return e && "function" == typeof Symbol && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
1525 }, v(e);
1526 }
1527 function m(e) {
1528 return e && e.__esModule ? e : {
1529 default: e
1530 };
1531 }
1532 var g = r.default.document, k = "_inputmask_opts";
1533 function y(e, t, i) {
1534 if (h.default) {
1535 if (!(this instanceof y)) return new y(e, t, i);
1536 this.dependencyLib = n.default, this.el = void 0, this.events = {}, this.maskset = void 0,
1537 !0 !== i && ("[object Object]" === Object.prototype.toString.call(e) ? t = e : (t = t || {},
1538 e && (t.alias = e)), this.opts = n.default.extend(!0, {}, this.defaults, t), this.noMasksCache = t && void 0 !== t.definitions,
1539 this.userOptions = t || {}, b(this.opts.alias, t, this.opts)), this.refreshValue = !1,
1540 this.undoValue = void 0, this.$el = void 0, this.skipKeyPressEvent = !1, this.skipInputEvent = !1,
1541 this.validationEvent = !1, this.ignorable = !1, this.maxLength, this.mouseEnter = !1,
1542 this.originalPlaceholder = void 0, this.isComposing = !1;
1543 }
1544 }
1545 function b(e, t, i) {
1546 var a = y.prototype.aliases[e];
1547 return a ? (a.alias && b(a.alias, void 0, i), n.default.extend(!0, i, a), n.default.extend(!0, i, t),
1548 !0) : (null === i.mask && (i.mask = e), !1);
1549 }
1550 y.prototype = {
1551 dataAttribute: "data-inputmask",
1552 defaults: p.default,
1553 definitions: d.default,
1554 aliases: {},
1555 masksCache: {},
1556 get isRTL() {
1557 return this.opts.isRTL || this.opts.numericInput;
1558 },
1559 mask: function(e) {
1560 var t = this;
1561 return "string" == typeof e && (e = g.getElementById(e) || g.querySelectorAll(e)),
1562 (e = e.nodeName ? [ e ] : Array.isArray(e) ? e : [].slice.call(e)).forEach((function(e, i) {
1563 var s = n.default.extend(!0, {}, t.opts);
1564 if (function(e, t, i, a) {
1565 function o(t, n) {
1566 var o = "" === a ? t : a + "-" + t;
1567 null !== (n = void 0 !== n ? n : e.getAttribute(o)) && ("string" == typeof n && (0 === t.indexOf("on") ? n = r.default[n] : "false" === n ? n = !1 : "true" === n && (n = !0)),
1568 i[t] = n);
1569 }
1570 if (!0 === t.importDataAttributes) {
1571 var s, l, u, c, f = e.getAttribute(a);
1572 if (f && "" !== f && (f = f.replace(/'/g, '"'), l = JSON.parse("{" + f + "}")),
1573 l) for (c in u = void 0, l) if ("alias" === c.toLowerCase()) {
1574 u = l[c];
1575 break;
1576 }
1577 for (s in o("alias", u), i.alias && b(i.alias, i, t), t) {
1578 if (l) for (c in u = void 0, l) if (c.toLowerCase() === s.toLowerCase()) {
1579 u = l[c];
1580 break;
1581 }
1582 o(s, u);
1583 }
1584 }
1585 n.default.extend(!0, t, i), ("rtl" === e.dir || t.rightAlign) && (e.style.textAlign = "right");
1586 ("rtl" === e.dir || t.numericInput) && (e.dir = "ltr", e.removeAttribute("dir"),
1587 t.isRTL = !0);
1588 return Object.keys(i).length;
1589 }(e, s, n.default.extend(!0, {}, t.userOptions), t.dataAttribute)) {
1590 var l = (0, o.generateMaskSet)(s, t.noMasksCache);
1591 void 0 !== l && (void 0 !== e.inputmask && (e.inputmask.opts.autoUnmask = !0, e.inputmask.remove()),
1592 e.inputmask = new y(void 0, void 0, !0), e.inputmask.opts = s, e.inputmask.noMasksCache = t.noMasksCache,
1593 e.inputmask.userOptions = n.default.extend(!0, {}, t.userOptions), e.inputmask.el = e,
1594 e.inputmask.$el = (0, n.default)(e), e.inputmask.maskset = l, n.default.data(e, k, t.userOptions),
1595 a.mask.call(e.inputmask));
1596 }
1597 })), e && e[0] && e[0].inputmask || this;
1598 },
1599 option: function(e, t) {
1600 return "string" == typeof e ? this.opts[e] : "object" === v(e) ? (n.default.extend(this.userOptions, e),
1601 this.el && !0 !== t && this.mask(this.el), this) : void 0;
1602 },
1603 unmaskedvalue: function(e) {
1604 if (this.maskset = this.maskset || (0, o.generateMaskSet)(this.opts, this.noMasksCache),
1605 void 0 === this.el || void 0 !== e) {
1606 var t = ("function" == typeof this.opts.onBeforeMask && this.opts.onBeforeMask.call(this, e, this.opts) || e).split("");
1607 c.checkVal.call(this, void 0, !1, !1, t), "function" == typeof this.opts.onBeforeWrite && this.opts.onBeforeWrite.call(this, void 0, l.getBuffer.call(this), 0, this.opts);
1608 }
1609 return c.unmaskedvalue.call(this, this.el);
1610 },
1611 remove: function() {
1612 if (this.el) {
1613 n.default.data(this.el, k, null);
1614 var e = this.opts.autoUnmask ? (0, c.unmaskedvalue)(this.el) : this._valueGet(this.opts.autoUnmask);
1615 e !== l.getBufferTemplate.call(this).join("") ? this._valueSet(e, this.opts.autoUnmask) : this._valueSet(""),
1616 f.EventRuler.off(this.el), Object.getOwnPropertyDescriptor && Object.getPrototypeOf ? Object.getOwnPropertyDescriptor(Object.getPrototypeOf(this.el), "value") && this.__valueGet && Object.defineProperty(this.el, "value", {
1617 get: this.__valueGet,
1618 set: this.__valueSet,
1619 configurable: !0
1620 }) : g.__lookupGetter__ && this.el.__lookupGetter__("value") && this.__valueGet && (this.el.__defineGetter__("value", this.__valueGet),
1621 this.el.__defineSetter__("value", this.__valueSet)), this.el.inputmask = void 0;
1622 }
1623 return this.el;
1624 },
1625 getemptymask: function() {
1626 return this.maskset = this.maskset || (0, o.generateMaskSet)(this.opts, this.noMasksCache),
1627 (this.isRTL ? l.getBufferTemplate.call(this).reverse() : l.getBufferTemplate.call(this)).join("");
1628 },
1629 hasMaskedValue: function() {
1630 return !this.opts.autoUnmask;
1631 },
1632 isComplete: function() {
1633 return this.maskset = this.maskset || (0, o.generateMaskSet)(this.opts, this.noMasksCache),
1634 u.isComplete.call(this, l.getBuffer.call(this));
1635 },
1636 getmetadata: function() {
1637 if (this.maskset = this.maskset || (0, o.generateMaskSet)(this.opts, this.noMasksCache),
1638 Array.isArray(this.maskset.metadata)) {
1639 var e = s.getMaskTemplate.call(this, !0, 0, !1).join("");
1640 return this.maskset.metadata.forEach((function(t) {
1641 return t.mask !== e || (e = t, !1);
1642 })), e;
1643 }
1644 return this.maskset.metadata;
1645 },
1646 isValid: function(e) {
1647 if (this.maskset = this.maskset || (0, o.generateMaskSet)(this.opts, this.noMasksCache),
1648 e) {
1649 var t = ("function" == typeof this.opts.onBeforeMask && this.opts.onBeforeMask.call(this, e, this.opts) || e).split("");
1650 c.checkVal.call(this, void 0, !0, !1, t);
1651 } else e = this.isRTL ? l.getBuffer.call(this).slice().reverse().join("") : l.getBuffer.call(this).join("");
1652 for (var i = l.getBuffer.call(this), a = l.determineLastRequiredPosition.call(this), n = i.length - 1; n > a && !l.isMask.call(this, n); n--) ;
1653 return i.splice(a, n + 1 - a), u.isComplete.call(this, i) && e === (this.isRTL ? l.getBuffer.call(this).slice().reverse().join("") : l.getBuffer.call(this).join(""));
1654 },
1655 format: function(e, t) {
1656 this.maskset = this.maskset || (0, o.generateMaskSet)(this.opts, this.noMasksCache);
1657 var i = ("function" == typeof this.opts.onBeforeMask && this.opts.onBeforeMask.call(this, e, this.opts) || e).split("");
1658 c.checkVal.call(this, void 0, !0, !1, i);
1659 var a = this.isRTL ? l.getBuffer.call(this).slice().reverse().join("") : l.getBuffer.call(this).join("");
1660 return t ? {
1661 value: a,
1662 metadata: this.getmetadata()
1663 } : a;
1664 },
1665 setValue: function(e) {
1666 this.el && (0, n.default)(this.el).trigger("setvalue", [ e ]);
1667 },
1668 analyseMask: o.analyseMask
1669 }, y.extendDefaults = function(e) {
1670 n.default.extend(!0, y.prototype.defaults, e);
1671 }, y.extendDefinitions = function(e) {
1672 n.default.extend(!0, y.prototype.definitions, e);
1673 }, y.extendAliases = function(e) {
1674 n.default.extend(!0, y.prototype.aliases, e);
1675 }, y.format = function(e, t, i) {
1676 return y(t).format(e, i);
1677 }, y.unmask = function(e, t) {
1678 return y(t).unmaskedvalue(e);
1679 }, y.isValid = function(e, t) {
1680 return y(t).isValid(e);
1681 }, y.remove = function(e) {
1682 "string" == typeof e && (e = g.getElementById(e) || g.querySelectorAll(e)), (e = e.nodeName ? [ e ] : e).forEach((function(e) {
1683 e.inputmask && e.inputmask.remove();
1684 }));
1685 }, y.setValue = function(e, t) {
1686 "string" == typeof e && (e = g.getElementById(e) || g.querySelectorAll(e)), (e = e.nodeName ? [ e ] : e).forEach((function(e) {
1687 e.inputmask ? e.inputmask.setValue(t) : (0, n.default)(e).trigger("setvalue", [ t ]);
1688 }));
1689 }, y.dependencyLib = n.default, r.default.Inputmask = y;
1690 var x = y;
1691 t.default = x;
1692 },
1693 5296: function(e, t, i) {
1694 function a(e) {
1695 return a = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(e) {
1696 return typeof e;
1697 } : function(e) {
1698 return e && "function" == typeof Symbol && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
1699 }, a(e);
1700 }
1701 var n = h(i(9380)), r = h(i(2394)), o = h(i(8741));
1702 function s(e, t) {
1703 for (var i = 0; i < t.length; i++) {
1704 var a = t[i];
1705 a.enumerable = a.enumerable || !1, a.configurable = !0, "value" in a && (a.writable = !0),
1706 Object.defineProperty(e, a.key, a);
1707 }
1708 }
1709 function l(e, t) {
1710 if (t && ("object" === a(t) || "function" == typeof t)) return t;
1711 if (void 0 !== t) throw new TypeError("Derived constructors may only return object or undefined");
1712 return function(e) {
1713 if (void 0 === e) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
1714 return e;
1715 }(e);
1716 }
1717 function u(e) {
1718 var t = "function" == typeof Map ? new Map : void 0;
1719 return u = function(e) {
1720 if (null === e || (i = e, -1 === Function.toString.call(i).indexOf("[native code]"))) return e;
1721 var i;
1722 if ("function" != typeof e) throw new TypeError("Super expression must either be null or a function");
1723 if (void 0 !== t) {
1724 if (t.has(e)) return t.get(e);
1725 t.set(e, a);
1726 }
1727 function a() {
1728 return c(e, arguments, p(this).constructor);
1729 }
1730 return a.prototype = Object.create(e.prototype, {
1731 constructor: {
1732 value: a,
1733 enumerable: !1,
1734 writable: !0,
1735 configurable: !0
1736 }
1737 }), d(a, e);
1738 }, u(e);
1739 }
1740 function c(e, t, i) {
1741 return c = f() ? Reflect.construct : function(e, t, i) {
1742 var a = [ null ];
1743 a.push.apply(a, t);
1744 var n = new (Function.bind.apply(e, a));
1745 return i && d(n, i.prototype), n;
1746 }, c.apply(null, arguments);
1747 }
1748 function f() {
1749 if ("undefined" == typeof Reflect || !Reflect.construct) return !1;
1750 if (Reflect.construct.sham) return !1;
1751 if ("function" == typeof Proxy) return !0;
1752 try {
1753 return Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], (function() {}))),
1754 !0;
1755 } catch (e) {
1756 return !1;
1757 }
1758 }
1759 function d(e, t) {
1760 return d = Object.setPrototypeOf || function(e, t) {
1761 return e.__proto__ = t, e;
1762 }, d(e, t);
1763 }
1764 function p(e) {
1765 return p = Object.setPrototypeOf ? Object.getPrototypeOf : function(e) {
1766 return e.__proto__ || Object.getPrototypeOf(e);
1767 }, p(e);
1768 }
1769 function h(e) {
1770 return e && e.__esModule ? e : {
1771 default: e
1772 };
1773 }
1774 var v = n.default.document;
1775 if (o.default && v && v.head && v.head.attachShadow && n.default.customElements && void 0 === n.default.customElements.get("input-mask")) {
1776 var m = function(e) {
1777 !function(e, t) {
1778 if ("function" != typeof t && null !== t) throw new TypeError("Super expression must either be null or a function");
1779 e.prototype = Object.create(t && t.prototype, {
1780 constructor: {
1781 value: e,
1782 writable: !0,
1783 configurable: !0
1784 }
1785 }), Object.defineProperty(e, "prototype", {
1786 writable: !1
1787 }), t && d(e, t);
1788 }(c, e);
1789 var t, i, a, n, o, u = (t = c, i = f(), function() {
1790 var e, a = p(t);
1791 if (i) {
1792 var n = p(this).constructor;
1793 e = Reflect.construct(a, arguments, n);
1794 } else e = a.apply(this, arguments);
1795 return l(this, e);
1796 });
1797 function c() {
1798 var e;
1799 !function(e, t) {
1800 if (!(e instanceof t)) throw new TypeError("Cannot call a class as a function");
1801 }(this, c);
1802 var t = (e = u.call(this)).getAttributeNames(), i = e.attachShadow({
1803 mode: "closed"
1804 }), a = v.createElement("input");
1805 for (var n in a.type = "text", i.appendChild(a), t) Object.prototype.hasOwnProperty.call(t, n) && a.setAttribute(t[n], e.getAttribute(t[n]));
1806 var o = new r.default;
1807 return o.dataAttribute = "", o.mask(a), a.inputmask.shadowRoot = i, e;
1808 }
1809 return a = c, n && s(a.prototype, n), o && s(a, o), Object.defineProperty(a, "prototype", {
1810 writable: !1
1811 }), a;
1812 }(u(HTMLElement));
1813 n.default.customElements.define("input-mask", m);
1814 }
1815 },
1816 443: function(e, t, i) {
1817 var a = o(i(7957)), n = o(i(2394));
1818 function r(e) {
1819 return r = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(e) {
1820 return typeof e;
1821 } : function(e) {
1822 return e && "function" == typeof Symbol && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
1823 }, r(e);
1824 }
1825 function o(e) {
1826 return e && e.__esModule ? e : {
1827 default: e
1828 };
1829 }
1830 void 0 === a.default.fn.inputmask && (a.default.fn.inputmask = function(e, t) {
1831 var i, o = this[0];
1832 if (void 0 === t && (t = {}), "string" == typeof e) switch (e) {
1833 case "unmaskedvalue":
1834 return o && o.inputmask ? o.inputmask.unmaskedvalue() : (0, a.default)(o).val();
1835
1836 case "remove":
1837 return this.each((function() {
1838 this.inputmask && this.inputmask.remove();
1839 }));
1840
1841 case "getemptymask":
1842 return o && o.inputmask ? o.inputmask.getemptymask() : "";
1843
1844 case "hasMaskedValue":
1845 return !(!o || !o.inputmask) && o.inputmask.hasMaskedValue();
1846
1847 case "isComplete":
1848 return !o || !o.inputmask || o.inputmask.isComplete();
1849
1850 case "getmetadata":
1851 return o && o.inputmask ? o.inputmask.getmetadata() : void 0;
1852
1853 case "setvalue":
1854 n.default.setValue(o, t);
1855 break;
1856
1857 case "option":
1858 if ("string" != typeof t) return this.each((function() {
1859 if (void 0 !== this.inputmask) return this.inputmask.option(t);
1860 }));
1861 if (o && void 0 !== o.inputmask) return o.inputmask.option(t);
1862 break;
1863
1864 default:
1865 return t.alias = e, i = new n.default(t), this.each((function() {
1866 i.mask(this);
1867 }));
1868 } else {
1869 if (Array.isArray(e)) return t.alias = e, i = new n.default(t), this.each((function() {
1870 i.mask(this);
1871 }));
1872 if ("object" == r(e)) return i = new n.default(e), void 0 === e.mask && void 0 === e.alias ? this.each((function() {
1873 if (void 0 !== this.inputmask) return this.inputmask.option(e);
1874 i.mask(this);
1875 })) : this.each((function() {
1876 i.mask(this);
1877 }));
1878 if (void 0 === e) return this.each((function() {
1879 (i = new n.default(t)).mask(this);
1880 }));
1881 }
1882 });
1883 },
1884 2391: function(e, t, i) {
1885 Object.defineProperty(t, "__esModule", {
1886 value: !0
1887 }), t.analyseMask = function(e, t, i) {
1888 var a, o, s, l, u, c, f = /(?:[?*+]|\{[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, p = !1, h = new n.default, v = [], m = [], g = !1;
1889 function k(e, a, n) {
1890 n = void 0 !== n ? n : e.matches.length;
1891 var o = e.matches[n - 1];
1892 if (t) 0 === a.indexOf("[") || p && /\\d|\\s|\\w/i.test(a) || "." === a ? e.matches.splice(n++, 0, {
1893 fn: new RegExp(a, i.casing ? "i" : ""),
1894 static: !1,
1895 optionality: !1,
1896 newBlockMarker: void 0 === o ? "master" : o.def !== a,
1897 casing: null,
1898 def: a,
1899 placeholder: void 0,
1900 nativeDef: a
1901 }) : (p && (a = a[a.length - 1]), a.split("").forEach((function(t, a) {
1902 o = e.matches[n - 1], e.matches.splice(n++, 0, {
1903 fn: /[a-z]/i.test(i.staticDefinitionSymbol || t) ? new RegExp("[" + (i.staticDefinitionSymbol || t) + "]", i.casing ? "i" : "") : null,
1904 static: !0,
1905 optionality: !1,
1906 newBlockMarker: void 0 === o ? "master" : o.def !== t && !0 !== o.static,
1907 casing: null,
1908 def: i.staticDefinitionSymbol || t,
1909 placeholder: void 0 !== i.staticDefinitionSymbol ? t : void 0,
1910 nativeDef: (p ? "'" : "") + t
1911 });
1912 }))), p = !1; else {
1913 var s = i.definitions && i.definitions[a] || i.usePrototypeDefinitions && r.default.prototype.definitions[a];
1914 s && !p ? e.matches.splice(n++, 0, {
1915 fn: s.validator ? "string" == typeof s.validator ? new RegExp(s.validator, i.casing ? "i" : "") : new function() {
1916 this.test = s.validator;
1917 } : new RegExp("."),
1918 static: s.static || !1,
1919 optionality: s.optional || !1,
1920 defOptionality: s.optional || !1,
1921 newBlockMarker: void 0 === o || s.optional ? "master" : o.def !== (s.definitionSymbol || a),
1922 casing: s.casing,
1923 def: s.definitionSymbol || a,
1924 placeholder: s.placeholder,
1925 nativeDef: a,
1926 generated: s.generated
1927 }) : (e.matches.splice(n++, 0, {
1928 fn: /[a-z]/i.test(i.staticDefinitionSymbol || a) ? new RegExp("[" + (i.staticDefinitionSymbol || a) + "]", i.casing ? "i" : "") : null,
1929 static: !0,
1930 optionality: !1,
1931 newBlockMarker: void 0 === o ? "master" : o.def !== a && !0 !== o.static,
1932 casing: null,
1933 def: i.staticDefinitionSymbol || a,
1934 placeholder: void 0 !== i.staticDefinitionSymbol ? a : void 0,
1935 nativeDef: (p ? "'" : "") + a
1936 }), p = !1);
1937 }
1938 }
1939 function y() {
1940 if (v.length > 0) {
1941 if (k(l = v[v.length - 1], o), l.isAlternator) {
1942 u = v.pop();
1943 for (var e = 0; e < u.matches.length; e++) u.matches[e].isGroup && (u.matches[e].isGroup = !1);
1944 v.length > 0 ? (l = v[v.length - 1]).matches.push(u) : h.matches.push(u);
1945 }
1946 } else k(h, o);
1947 }
1948 function b(e) {
1949 var t = new n.default(!0);
1950 return t.openGroup = !1, t.matches = e, t;
1951 }
1952 function x() {
1953 if ((s = v.pop()).openGroup = !1, void 0 !== s) if (v.length > 0) {
1954 if ((l = v[v.length - 1]).matches.push(s), l.isAlternator) {
1955 for (var e = (u = v.pop()).matches[0].matches ? u.matches[0].matches.length : 1, t = 0; t < u.matches.length; t++) u.matches[t].isGroup = !1,
1956 u.matches[t].alternatorGroup = !1, null === i.keepStatic && e < (u.matches[t].matches ? u.matches[t].matches.length : 1) && (i.keepStatic = !0),
1957 e = u.matches[t].matches ? u.matches[t].matches.length : 1;
1958 v.length > 0 ? (l = v[v.length - 1]).matches.push(u) : h.matches.push(u);
1959 }
1960 } else h.matches.push(s); else y();
1961 }
1962 function P(e) {
1963 var t = e.pop();
1964 return t.isQuantifier && (t = b([ e.pop(), t ])), t;
1965 }
1966 t && (i.optionalmarker[0] = void 0, i.optionalmarker[1] = void 0);
1967 for (;a = t ? d.exec(e) : f.exec(e); ) {
1968 if (o = a[0], t) {
1969 switch (o.charAt(0)) {
1970 case "?":
1971 o = "{0,1}";
1972 break;
1973
1974 case "+":
1975 case "*":
1976 o = "{" + o + "}";
1977 break;
1978
1979 case "|":
1980 if (0 === v.length) {
1981 var E = b(h.matches);
1982 E.openGroup = !0, v.push(E), h.matches = [], g = !0;
1983 }
1984 }
1985 if ("\\d" === o) o = "[0-9]";
1986 }
1987 if (p) y(); else switch (o.charAt(0)) {
1988 case "$":
1989 case "^":
1990 t || y();
1991 break;
1992
1993 case i.escapeChar:
1994 p = !0, t && y();
1995 break;
1996
1997 case i.optionalmarker[1]:
1998 case i.groupmarker[1]:
1999 x();
2000 break;
2001
2002 case i.optionalmarker[0]:
2003 v.push(new n.default(!1, !0));
2004 break;
2005
2006 case i.groupmarker[0]:
2007 v.push(new n.default(!0));
2008 break;
2009
2010 case i.quantifiermarker[0]:
2011 var S = new n.default(!1, !1, !0), w = (o = o.replace(/[{}?]/g, "")).split("|"), _ = w[0].split(","), M = isNaN(_[0]) ? _[0] : parseInt(_[0]), O = 1 === _.length ? M : isNaN(_[1]) ? _[1] : parseInt(_[1]), T = isNaN(w[1]) ? w[1] : parseInt(w[1]);
2012 "*" !== M && "+" !== M || (M = "*" === O ? 0 : 1), S.quantifier = {
2013 min: M,
2014 max: O,
2015 jit: T
2016 };
2017 var A = v.length > 0 ? v[v.length - 1].matches : h.matches;
2018 if ((a = A.pop()).isAlternator) {
2019 A.push(a), A = a.matches;
2020 var C = new n.default(!0), D = A.pop();
2021 A.push(C), A = C.matches, a = D;
2022 }
2023 a.isGroup || (a = b([ a ])), A.push(a), A.push(S);
2024 break;
2025
2026 case i.alternatormarker:
2027 if (v.length > 0) {
2028 var j = (l = v[v.length - 1]).matches[l.matches.length - 1];
2029 c = l.openGroup && (void 0 === j.matches || !1 === j.isGroup && !1 === j.isAlternator) ? v.pop() : P(l.matches);
2030 } else c = P(h.matches);
2031 if (c.isAlternator) v.push(c); else if (c.alternatorGroup ? (u = v.pop(), c.alternatorGroup = !1) : u = new n.default(!1, !1, !1, !0),
2032 u.matches.push(c), v.push(u), c.openGroup) {
2033 c.openGroup = !1;
2034 var B = new n.default(!0);
2035 B.alternatorGroup = !0, v.push(B);
2036 }
2037 break;
2038
2039 default:
2040 y();
2041 }
2042 }
2043 g && x();
2044 for (;v.length > 0; ) s = v.pop(), h.matches.push(s);
2045 h.matches.length > 0 && (!function e(a) {
2046 a && a.matches && a.matches.forEach((function(n, r) {
2047 var o = a.matches[r + 1];
2048 (void 0 === o || void 0 === o.matches || !1 === o.isQuantifier) && n && n.isGroup && (n.isGroup = !1,
2049 t || (k(n, i.groupmarker[0], 0), !0 !== n.openGroup && k(n, i.groupmarker[1]))),
2050 e(n);
2051 }));
2052 }(h), m.push(h));
2053 (i.numericInput || i.isRTL) && function e(t) {
2054 for (var a in t.matches = t.matches.reverse(), t.matches) if (Object.prototype.hasOwnProperty.call(t.matches, a)) {
2055 var n = parseInt(a);
2056 if (t.matches[a].isQuantifier && t.matches[n + 1] && t.matches[n + 1].isGroup) {
2057 var r = t.matches[a];
2058 t.matches.splice(a, 1), t.matches.splice(n + 1, 0, r);
2059 }
2060 void 0 !== t.matches[a].matches ? t.matches[a] = e(t.matches[a]) : t.matches[a] = ((o = t.matches[a]) === i.optionalmarker[0] ? o = i.optionalmarker[1] : o === i.optionalmarker[1] ? o = i.optionalmarker[0] : o === i.groupmarker[0] ? o = i.groupmarker[1] : o === i.groupmarker[1] && (o = i.groupmarker[0]),
2061 o);
2062 }
2063 var o;
2064 return t;
2065 }(m[0]);
2066 return m;
2067 }, t.generateMaskSet = function(e, t) {
2068 var i;
2069 function n(e, i, n) {
2070 var s, l, u = !1;
2071 return null !== e && "" !== e || ((u = null !== n.regex) ? e = (e = n.regex).replace(/^(\^)(.*)(\$)$/, "$2") : (u = !0,
2072 e = ".*")), 1 === e.length && !1 === n.greedy && 0 !== n.repeat && (n.placeholder = ""),
2073 e = function(e, t) {
2074 if (t.repeat > 0 || "*" === t.repeat || "+" === t.repeat) {
2075 var i = "*" === t.repeat ? 0 : "+" === t.repeat ? 1 : t.repeat;
2076 e = t.groupmarker[0] + e + t.groupmarker[1] + t.quantifiermarker[0] + i + "," + t.repeat + t.quantifiermarker[1];
2077 }
2078 if (!0 === t.keepStatic) {
2079 var a = e.match(new RegExp("(?<p1>.)\\[(?<p2>[^\\]]*)\\]", "g"));
2080 a && a.forEach((function(t, i) {
2081 var a = t.split("["), n = a[0], r = a[1].replace("]", "");
2082 e = e.replace(new RegExp("".concat((0, o.default)(n), "\\[").concat((0, o.default)(r), "\\]")), n.charAt(0) === r.charAt(0) ? "(".concat(n, "|").concat(n).concat(r, ")") : "".concat(n, "[").concat(r, "]"));
2083 }));
2084 }
2085 return e;
2086 }(e, n), l = u ? "regex_" + n.regex : n.numericInput ? e.split("").reverse().join("") : e,
2087 null !== n.keepStatic && (l = "ks_" + n.keepStatic + l), void 0 === r.default.prototype.masksCache[l] || !0 === t ? (s = {
2088 mask: e,
2089 maskToken: r.default.prototype.analyseMask(e, u, n),
2090 validPositions: [],
2091 _buffer: void 0,
2092 buffer: void 0,
2093 tests: {},
2094 excludes: {},
2095 metadata: i,
2096 maskLength: void 0,
2097 jitOffset: {}
2098 }, !0 !== t && (r.default.prototype.masksCache[l] = s, s = a.default.extend(!0, {}, r.default.prototype.masksCache[l]))) : s = a.default.extend(!0, {}, r.default.prototype.masksCache[l]),
2099 s;
2100 }
2101 "function" == typeof e.mask && (e.mask = e.mask(e));
2102 if (Array.isArray(e.mask)) {
2103 if (e.mask.length > 1) {
2104 null === e.keepStatic && (e.keepStatic = !0);
2105 var s = e.groupmarker[0];
2106 return (e.isRTL ? e.mask.reverse() : e.mask).forEach((function(t) {
2107 s.length > 1 && (s += e.alternatormarker), void 0 !== t.mask && "function" != typeof t.mask ? s += t.mask : s += t;
2108 })), n(s += e.groupmarker[1], e.mask, e);
2109 }
2110 e.mask = e.mask.pop();
2111 }
2112 i = e.mask && void 0 !== e.mask.mask && "function" != typeof e.mask.mask ? n(e.mask.mask, e.mask, e) : n(e.mask, e.mask, e);
2113 null === e.keepStatic && (e.keepStatic = !1);
2114 return i;
2115 };
2116 var a = s(i(3287)), n = s(i(9695)), r = s(i(2394)), o = s(i(7184));
2117 function s(e) {
2118 return e && e.__esModule ? e : {
2119 default: e
2120 };
2121 }
2122 },
2123 157: function(e, t, i) {
2124 Object.defineProperty(t, "__esModule", {
2125 value: !0
2126 }), t.mask = function() {
2127 var e = this, t = this.opts, i = this.el, a = this.dependencyLib;
2128 s.EventRuler.off(i);
2129 var f = function(t, i) {
2130 "textarea" !== t.tagName.toLowerCase() && i.ignorables.push(n.default.ENTER);
2131 var l = t.getAttribute("type"), u = "input" === t.tagName.toLowerCase() && i.supportsInputType.includes(l) || t.isContentEditable || "textarea" === t.tagName.toLowerCase();
2132 if (!u) if ("input" === t.tagName.toLowerCase()) {
2133 var c = document.createElement("input");
2134 c.setAttribute("type", l), u = "text" === c.type, c = null;
2135 } else u = "partial";
2136 return !1 !== u ? function(t) {
2137 var n, l;
2138 function u() {
2139 return this.inputmask ? this.inputmask.opts.autoUnmask ? this.inputmask.unmaskedvalue() : -1 !== r.getLastValidPosition.call(e) || !0 !== i.nullable ? (this.inputmask.shadowRoot || this.ownerDocument).activeElement === this && i.clearMaskOnLostFocus ? (e.isRTL ? o.clearOptionalTail.call(e, r.getBuffer.call(e).slice()).reverse() : o.clearOptionalTail.call(e, r.getBuffer.call(e).slice())).join("") : n.call(this) : "" : n.call(this);
2140 }
2141 function c(e) {
2142 l.call(this, e), this.inputmask && (0, o.applyInputValue)(this, e);
2143 }
2144 if (!t.inputmask.__valueGet) {
2145 if (!0 !== i.noValuePatching) {
2146 if (Object.getOwnPropertyDescriptor) {
2147 var f = Object.getPrototypeOf ? Object.getOwnPropertyDescriptor(Object.getPrototypeOf(t), "value") : void 0;
2148 f && f.get && f.set ? (n = f.get, l = f.set, Object.defineProperty(t, "value", {
2149 get: u,
2150 set: c,
2151 configurable: !0
2152 })) : "input" !== t.tagName.toLowerCase() && (n = function() {
2153 return this.textContent;
2154 }, l = function(e) {
2155 this.textContent = e;
2156 }, Object.defineProperty(t, "value", {
2157 get: u,
2158 set: c,
2159 configurable: !0
2160 }));
2161 } else document.__lookupGetter__ && t.__lookupGetter__("value") && (n = t.__lookupGetter__("value"),
2162 l = t.__lookupSetter__("value"), t.__defineGetter__("value", u), t.__defineSetter__("value", c));
2163 t.inputmask.__valueGet = n, t.inputmask.__valueSet = l;
2164 }
2165 t.inputmask._valueGet = function(t) {
2166 return e.isRTL && !0 !== t ? n.call(this.el).split("").reverse().join("") : n.call(this.el);
2167 }, t.inputmask._valueSet = function(t, i) {
2168 l.call(this.el, null == t ? "" : !0 !== i && e.isRTL ? t.split("").reverse().join("") : t);
2169 }, void 0 === n && (n = function() {
2170 return this.value;
2171 }, l = function(e) {
2172 this.value = e;
2173 }, function(t) {
2174 if (a.valHooks && (void 0 === a.valHooks[t] || !0 !== a.valHooks[t].inputmaskpatch)) {
2175 var n = a.valHooks[t] && a.valHooks[t].get ? a.valHooks[t].get : function(e) {
2176 return e.value;
2177 }, s = a.valHooks[t] && a.valHooks[t].set ? a.valHooks[t].set : function(e, t) {
2178 return e.value = t, e;
2179 };
2180 a.valHooks[t] = {
2181 get: function(t) {
2182 if (t.inputmask) {
2183 if (t.inputmask.opts.autoUnmask) return t.inputmask.unmaskedvalue();
2184 var a = n(t);
2185 return -1 !== r.getLastValidPosition.call(e, void 0, void 0, t.inputmask.maskset.validPositions) || !0 !== i.nullable ? a : "";
2186 }
2187 return n(t);
2188 },
2189 set: function(e, t) {
2190 var i = s(e, t);
2191 return e.inputmask && (0, o.applyInputValue)(e, t), i;
2192 },
2193 inputmaskpatch: !0
2194 };
2195 }
2196 }(t.type), function(e) {
2197 s.EventRuler.on(e, "mouseenter", (function() {
2198 var e = this, t = e.inputmask._valueGet(!0);
2199 t != (e.inputmask.isRTL ? r.getBuffer.call(e.inputmask).slice().reverse() : r.getBuffer.call(e.inputmask)).join("") && (0,
2200 o.applyInputValue)(e, t);
2201 }));
2202 }(t));
2203 }
2204 }(t) : t.inputmask = void 0, u;
2205 }(i, t);
2206 if (!1 !== f) {
2207 e.originalPlaceholder = i.placeholder, e.maxLength = void 0 !== i ? i.maxLength : void 0,
2208 -1 === e.maxLength && (e.maxLength = void 0), "inputMode" in i && null === i.getAttribute("inputmode") && (i.inputMode = t.inputmode,
2209 i.setAttribute("inputmode", t.inputmode)), !0 === f && (t.showMaskOnFocus = t.showMaskOnFocus && -1 === [ "cc-number", "cc-exp" ].indexOf(i.autocomplete),
2210 l.iphone && (t.insertModeVisual = !1, i.setAttribute("autocorrect", "off")), s.EventRuler.on(i, "submit", c.EventHandlers.submitEvent),
2211 s.EventRuler.on(i, "reset", c.EventHandlers.resetEvent), s.EventRuler.on(i, "blur", c.EventHandlers.blurEvent),
2212 s.EventRuler.on(i, "focus", c.EventHandlers.focusEvent), s.EventRuler.on(i, "invalid", c.EventHandlers.invalidEvent),
2213 s.EventRuler.on(i, "click", c.EventHandlers.clickEvent), s.EventRuler.on(i, "mouseleave", c.EventHandlers.mouseleaveEvent),
2214 s.EventRuler.on(i, "mouseenter", c.EventHandlers.mouseenterEvent), s.EventRuler.on(i, "paste", c.EventHandlers.pasteEvent),
2215 s.EventRuler.on(i, "cut", c.EventHandlers.cutEvent), s.EventRuler.on(i, "complete", t.oncomplete),
2216 s.EventRuler.on(i, "incomplete", t.onincomplete), s.EventRuler.on(i, "cleared", t.oncleared),
2217 !0 !== t.inputEventOnly && (s.EventRuler.on(i, "keydown", c.EventHandlers.keydownEvent),
2218 s.EventRuler.on(i, "keypress", c.EventHandlers.keypressEvent), s.EventRuler.on(i, "keyup", c.EventHandlers.keyupEvent)),
2219 (l.mobile || t.inputEventOnly) && i.removeAttribute("maxLength"), s.EventRuler.on(i, "input", c.EventHandlers.inputFallBackEvent),
2220 s.EventRuler.on(i, "compositionend", c.EventHandlers.compositionendEvent)), s.EventRuler.on(i, "setvalue", c.EventHandlers.setValueEvent),
2221 r.getBufferTemplate.call(e).join(""), e.undoValue = e._valueGet(!0);
2222 var d = (i.inputmask.shadowRoot || i.ownerDocument).activeElement;
2223 if ("" !== i.inputmask._valueGet(!0) || !1 === t.clearMaskOnLostFocus || d === i) {
2224 (0, o.applyInputValue)(i, i.inputmask._valueGet(!0), t);
2225 var p = r.getBuffer.call(e).slice();
2226 !1 === u.isComplete.call(e, p) && t.clearIncomplete && r.resetMaskSet.call(e), t.clearMaskOnLostFocus && d !== i && (-1 === r.getLastValidPosition.call(e) ? p = [] : o.clearOptionalTail.call(e, p)),
2227 (!1 === t.clearMaskOnLostFocus || t.showMaskOnFocus && d === i || "" !== i.inputmask._valueGet(!0)) && (0,
2228 o.writeBuffer)(i, p), d === i && r.caret.call(e, i, r.seekNext.call(e, r.getLastValidPosition.call(e)));
2229 }
2230 }
2231 };
2232 var a, n = (a = i(5581)) && a.__esModule ? a : {
2233 default: a
2234 }, r = i(8711), o = i(7760), s = i(9716), l = i(9845), u = i(7215), c = i(6030);
2235 },
2236 9695: function(e, t) {
2237 Object.defineProperty(t, "__esModule", {
2238 value: !0
2239 }), t.default = function(e, t, i, a) {
2240 this.matches = [], this.openGroup = e || !1, this.alternatorGroup = !1, this.isGroup = e || !1,
2241 this.isOptional = t || !1, this.isQuantifier = i || !1, this.isAlternator = a || !1,
2242 this.quantifier = {
2243 min: 1,
2244 max: 1
2245 };
2246 };
2247 },
2248 3194: function() {
2249 Array.prototype.includes || Object.defineProperty(Array.prototype, "includes", {
2250 value: function(e, t) {
2251 if (null == this) throw new TypeError('"this" is null or not defined');
2252 var i = Object(this), a = i.length >>> 0;
2253 if (0 === a) return !1;
2254 for (var n = 0 | t, r = Math.max(n >= 0 ? n : a - Math.abs(n), 0); r < a; ) {
2255 if (i[r] === e) return !0;
2256 r++;
2257 }
2258 return !1;
2259 }
2260 });
2261 },
2262 7149: function() {
2263 function e(t) {
2264 return e = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(e) {
2265 return typeof e;
2266 } : function(e) {
2267 return e && "function" == typeof Symbol && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
2268 }, e(t);
2269 }
2270 "function" != typeof Object.getPrototypeOf && (Object.getPrototypeOf = "object" === e("test".__proto__) ? function(e) {
2271 return e.__proto__;
2272 } : function(e) {
2273 return e.constructor.prototype;
2274 });
2275 },
2276 8711: function(e, t, i) {
2277 Object.defineProperty(t, "__esModule", {
2278 value: !0
2279 }), t.caret = function(e, t, i, a, n) {
2280 var r, o = this, s = this.opts;
2281 if (void 0 === t) return "selectionStart" in e && "selectionEnd" in e ? (t = e.selectionStart,
2282 i = e.selectionEnd) : window.getSelection ? (r = window.getSelection().getRangeAt(0)).commonAncestorContainer.parentNode !== e && r.commonAncestorContainer !== e || (t = r.startOffset,
2283 i = r.endOffset) : document.selection && document.selection.createRange && (r = document.selection.createRange(),
2284 t = 0 - r.duplicate().moveStart("character", -e.inputmask._valueGet().length), i = t + r.text.length),
2285 {
2286 begin: a ? t : u.call(o, t),
2287 end: a ? i : u.call(o, i)
2288 };
2289 if (Array.isArray(t) && (i = o.isRTL ? t[0] : t[1], t = o.isRTL ? t[1] : t[0]),
2290 void 0 !== t.begin && (i = o.isRTL ? t.begin : t.end, t = o.isRTL ? t.end : t.begin),
2291 "number" == typeof t) {
2292 t = a ? t : u.call(o, t), i = "number" == typeof (i = a ? i : u.call(o, i)) ? i : t;
2293 var l = parseInt(((e.ownerDocument.defaultView || window).getComputedStyle ? (e.ownerDocument.defaultView || window).getComputedStyle(e, null) : e.currentStyle).fontSize) * i;
2294 if (e.scrollLeft = l > e.scrollWidth ? l : 0, e.inputmask.caretPos = {
2295 begin: t,
2296 end: i
2297 }, s.insertModeVisual && !1 === s.insertMode && t === i && (n || i++), e === (e.inputmask.shadowRoot || e.ownerDocument).activeElement) if ("setSelectionRange" in e) e.setSelectionRange(t, i); else if (window.getSelection) {
2298 if (r = document.createRange(), void 0 === e.firstChild || null === e.firstChild) {
2299 var c = document.createTextNode("");
2300 e.appendChild(c);
2301 }
2302 r.setStart(e.firstChild, t < e.inputmask._valueGet().length ? t : e.inputmask._valueGet().length),
2303 r.setEnd(e.firstChild, i < e.inputmask._valueGet().length ? i : e.inputmask._valueGet().length),
2304 r.collapse(!0);
2305 var f = window.getSelection();
2306 f.removeAllRanges(), f.addRange(r);
2307 } else e.createTextRange && ((r = e.createTextRange()).collapse(!0), r.moveEnd("character", i),
2308 r.moveStart("character", t), r.select());
2309 }
2310 }, t.determineLastRequiredPosition = function(e) {
2311 var t, i, r = this, s = this.maskset, l = this.dependencyLib, u = a.getMaskTemplate.call(r, !0, o.call(r), !0, !0), c = u.length, f = o.call(r), d = {}, p = s.validPositions[f], h = void 0 !== p ? p.locator.slice() : void 0;
2312 for (t = f + 1; t < u.length; t++) i = a.getTestTemplate.call(r, t, h, t - 1), h = i.locator.slice(),
2313 d[t] = l.extend(!0, {}, i);
2314 var v = p && void 0 !== p.alternation ? p.locator[p.alternation] : void 0;
2315 for (t = c - 1; t > f && (((i = d[t]).match.optionality || i.match.optionalQuantifier && i.match.newBlockMarker || v && (v !== d[t].locator[p.alternation] && 1 != i.match.static || !0 === i.match.static && i.locator[p.alternation] && n.checkAlternationMatch.call(r, i.locator[p.alternation].toString().split(","), v.toString().split(",")) && "" !== a.getTests.call(r, t)[0].def)) && u[t] === a.getPlaceholder.call(r, t, i.match)); t--) c--;
2316 return e ? {
2317 l: c,
2318 def: d[c] ? d[c].match : void 0
2319 } : c;
2320 }, t.determineNewCaretPosition = function(e, t, i) {
2321 var n = this, u = this.maskset, c = this.opts;
2322 t && (n.isRTL ? e.end = e.begin : e.begin = e.end);
2323 if (e.begin === e.end) {
2324 switch (i = i || c.positionCaretOnClick) {
2325 case "none":
2326 break;
2327
2328 case "select":
2329 e = {
2330 begin: 0,
2331 end: r.call(n).length
2332 };
2333 break;
2334
2335 case "ignore":
2336 e.end = e.begin = l.call(n, o.call(n));
2337 break;
2338
2339 case "radixFocus":
2340 if (function(e) {
2341 if ("" !== c.radixPoint && 0 !== c.digits) {
2342 var t = u.validPositions;
2343 if (void 0 === t[e] || t[e].input === a.getPlaceholder.call(n, e)) {
2344 if (e < l.call(n, -1)) return !0;
2345 var i = r.call(n).indexOf(c.radixPoint);
2346 if (-1 !== i) {
2347 for (var o = 0, s = t.length; o < s; o++) if (t[o] && i < o && t[o].input !== a.getPlaceholder.call(n, o)) return !1;
2348 return !0;
2349 }
2350 }
2351 }
2352 return !1;
2353 }(e.begin)) {
2354 var f = r.call(n).join("").indexOf(c.radixPoint);
2355 e.end = e.begin = c.numericInput ? l.call(n, f) : f;
2356 break;
2357 }
2358
2359 default:
2360 var d = e.begin, p = o.call(n, d, !0), h = l.call(n, -1 !== p || s.call(n, 0) ? p : -1);
2361 if (d <= h) e.end = e.begin = s.call(n, d, !1, !0) ? d : l.call(n, d); else {
2362 var v = u.validPositions[p], m = a.getTestTemplate.call(n, h, v ? v.match.locator : void 0, v), g = a.getPlaceholder.call(n, h, m.match);
2363 if ("" !== g && r.call(n)[h] !== g && !0 !== m.match.optionalQuantifier && !0 !== m.match.newBlockMarker || !s.call(n, h, c.keepStatic, !0) && m.match.def === g) {
2364 var k = l.call(n, h);
2365 (d >= k || d === h) && (h = k);
2366 }
2367 e.end = e.begin = h;
2368 }
2369 }
2370 return e;
2371 }
2372 }, t.getBuffer = r, t.getBufferTemplate = function() {
2373 var e = this.maskset;
2374 void 0 === e._buffer && (e._buffer = a.getMaskTemplate.call(this, !1, 1), void 0 === e.buffer && (e.buffer = e._buffer.slice()));
2375 return e._buffer;
2376 }, t.getLastValidPosition = o, t.isMask = s, t.resetMaskSet = function(e) {
2377 var t = this.maskset;
2378 t.buffer = void 0, !0 !== e && (t.validPositions = [], t.p = 0);
2379 }, t.seekNext = l, t.seekPrevious = function(e, t) {
2380 var i = this, n = e - 1;
2381 if (e <= 0) return 0;
2382 for (;n > 0 && (!0 === t && (!0 !== a.getTest.call(i, n).match.newBlockMarker || !s.call(i, n, void 0, !0)) || !0 !== t && !s.call(i, n, void 0, !0)); ) n--;
2383 return n;
2384 }, t.translatePosition = u;
2385 var a = i(4713), n = i(7215);
2386 function r(e) {
2387 var t = this.maskset;
2388 return void 0 !== t.buffer && !0 !== e || (t.buffer = a.getMaskTemplate.call(this, !0, o.call(this), !0),
2389 void 0 === t._buffer && (t._buffer = t.buffer.slice())), t.buffer;
2390 }
2391 function o(e, t, i) {
2392 var a = this.maskset, n = -1, r = -1, o = i || a.validPositions;
2393 void 0 === e && (e = -1);
2394 for (var s = 0, l = o.length; s < l; s++) o[s] && (t || !0 !== o[s].generatedInput) && (s <= e && (n = s),
2395 s >= e && (r = s));
2396 return -1 === n || n == e ? r : -1 == r || e - n < r - e ? n : r;
2397 }
2398 function s(e, t, i) {
2399 var n = this, r = this.maskset, o = a.getTestTemplate.call(n, e).match;
2400 if ("" === o.def && (o = a.getTest.call(n, e).match), !0 !== o.static) return o.fn;
2401 if (!0 === i && void 0 !== r.validPositions[e] && !0 !== r.validPositions[e].generatedInput) return !0;
2402 if (!0 !== t && e > -1) {
2403 if (i) {
2404 var s = a.getTests.call(n, e);
2405 return s.length > 1 + ("" === s[s.length - 1].match.def ? 1 : 0);
2406 }
2407 var l = a.determineTestTemplate.call(n, e, a.getTests.call(n, e)), u = a.getPlaceholder.call(n, e, l.match);
2408 return l.match.def !== u;
2409 }
2410 return !1;
2411 }
2412 function l(e, t, i) {
2413 var n = this;
2414 void 0 === i && (i = !0);
2415 for (var r = e + 1; "" !== a.getTest.call(n, r).match.def && (!0 === t && (!0 !== a.getTest.call(n, r).match.newBlockMarker || !s.call(n, r, void 0, !0)) || !0 !== t && !s.call(n, r, void 0, i)); ) r++;
2416 return r;
2417 }
2418 function u(e) {
2419 var t = this.opts, i = this.el;
2420 return !this.isRTL || "number" != typeof e || t.greedy && "" === t.placeholder || !i || (e = this._valueGet().length - e) < 0 && (e = 0),
2421 e;
2422 }
2423 },
2424 4713: function(e, t, i) {
2425 Object.defineProperty(t, "__esModule", {
2426 value: !0
2427 }), t.determineTestTemplate = u, t.getDecisionTaker = o, t.getMaskTemplate = function(e, t, i, a, n) {
2428 var r = this, o = this.opts, c = this.maskset, f = o.greedy;
2429 n && o.greedy && (o.greedy = !1, r.maskset.tests = {});
2430 t = t || 0;
2431 var p, h, v, m, g = [], k = 0;
2432 do {
2433 if (!0 === e && c.validPositions[k]) v = n && c.validPositions[k].match.optionality && void 0 === c.validPositions[k + 1] && (!0 === c.validPositions[k].generatedInput || c.validPositions[k].input == o.skipOptionalPartCharacter && k > 0) ? u.call(r, k, d.call(r, k, p, k - 1)) : c.validPositions[k],
2434 h = v.match, p = v.locator.slice(), g.push(!0 === i ? v.input : !1 === i ? h.nativeDef : s.call(r, k, h)); else {
2435 v = l.call(r, k, p, k - 1), h = v.match, p = v.locator.slice();
2436 var y = !0 !== a && (!1 !== o.jitMasking ? o.jitMasking : h.jit);
2437 (m = (m && h.static && h.def !== o.groupSeparator && null === h.fn || c.validPositions[k - 1] && h.static && h.def !== o.groupSeparator && null === h.fn) && c.tests[k] && 1 === c.tests[k].length) || !1 === y || void 0 === y || "number" == typeof y && isFinite(y) && y > k ? g.push(!1 === i ? h.nativeDef : s.call(r, g.length, h)) : m = !1;
2438 }
2439 k++;
2440 } while (!0 !== h.static || "" !== h.def || t > k);
2441 "" === g[g.length - 1] && g.pop();
2442 !1 === i && void 0 !== c.maskLength || (c.maskLength = k - 1);
2443 return o.greedy = f, g;
2444 }, t.getPlaceholder = s, t.getTest = c, t.getTestTemplate = l, t.getTests = d, t.isSubsetOf = f;
2445 var a, n = (a = i(2394)) && a.__esModule ? a : {
2446 default: a
2447 };
2448 function r(e, t) {
2449 var i = (null != e.alternation ? e.mloc[o(e)] : e.locator).join("");
2450 if ("" !== i) for (;i.length < t; ) i += "0";
2451 return i;
2452 }
2453 function o(e) {
2454 var t = e.locator[e.alternation];
2455 return "string" == typeof t && t.length > 0 && (t = t.split(",")[0]), void 0 !== t ? t.toString() : "";
2456 }
2457 function s(e, t, i) {
2458 var a = this.opts, n = this.maskset;
2459 if (void 0 !== (t = t || c.call(this, e).match).placeholder || !0 === i) return "function" == typeof t.placeholder ? t.placeholder(a) : t.placeholder;
2460 if (!0 === t.static) {
2461 if (e > -1 && void 0 === n.validPositions[e]) {
2462 var r, o = d.call(this, e), s = [];
2463 if (o.length > 1 + ("" === o[o.length - 1].match.def ? 1 : 0)) for (var l = 0; l < o.length; l++) if ("" !== o[l].match.def && !0 !== o[l].match.optionality && !0 !== o[l].match.optionalQuantifier && (!0 === o[l].match.static || void 0 === r || !1 !== o[l].match.fn.test(r.match.def, n, e, !0, a)) && (s.push(o[l]),
2464 !0 === o[l].match.static && (r = o[l]), s.length > 1 && /[0-9a-bA-Z]/.test(s[0].match.def))) return a.placeholder.charAt(e % a.placeholder.length);
2465 }
2466 return t.def;
2467 }
2468 return a.placeholder.charAt(e % a.placeholder.length);
2469 }
2470 function l(e, t, i) {
2471 return this.maskset.validPositions[e] || u.call(this, e, d.call(this, e, t ? t.slice() : t, i));
2472 }
2473 function u(e, t) {
2474 var i = this.opts, a = function(e, t) {
2475 var i = 0, a = !1;
2476 t.forEach((function(e) {
2477 e.match.optionality && (0 !== i && i !== e.match.optionality && (a = !0), (0 === i || i > e.match.optionality) && (i = e.match.optionality));
2478 })), i && (0 == e || 1 == t.length ? i = 0 : a || (i = 0));
2479 return i;
2480 }(e, t);
2481 e = e > 0 ? e - 1 : 0;
2482 var n, o, s, l = r(c.call(this, e));
2483 i.greedy && t.length > 1 && "" === t[t.length - 1].match.def && t.pop();
2484 for (var u = 0; u < t.length; u++) {
2485 var f = t[u];
2486 n = r(f, l.length);
2487 var d = Math.abs(n - l);
2488 (void 0 === o || "" !== n && d < o || s && !i.greedy && s.match.optionality && s.match.optionality - a > 0 && "master" === s.match.newBlockMarker && (!f.match.optionality || f.match.optionality - a < 1 || !f.match.newBlockMarker) || s && !i.greedy && s.match.optionalQuantifier && !f.match.optionalQuantifier) && (o = d,
2489 s = f);
2490 }
2491 return s;
2492 }
2493 function c(e, t) {
2494 var i = this.maskset;
2495 return i.validPositions[e] ? i.validPositions[e] : (t || d.call(this, e))[0];
2496 }
2497 function f(e, t, i) {
2498 function a(e) {
2499 for (var t, i = [], a = -1, n = 0, r = e.length; n < r; n++) if ("-" === e.charAt(n)) for (t = e.charCodeAt(n + 1); ++a < t; ) i.push(String.fromCharCode(a)); else a = e.charCodeAt(n),
2500 i.push(e.charAt(n));
2501 return i.join("");
2502 }
2503 return e.match.def === t.match.nativeDef || !(!(i.regex || e.match.fn instanceof RegExp && t.match.fn instanceof RegExp) || !0 === e.match.static || !0 === t.match.static) && -1 !== a(t.match.fn.toString().replace(/[[\]/]/g, "")).indexOf(a(e.match.fn.toString().replace(/[[\]/]/g, "")));
2504 }
2505 function d(e, t, i) {
2506 var a, r, o = this, s = this.dependencyLib, l = this.maskset, c = this.opts, d = this.el, p = l.maskToken, h = t ? i : 0, v = t ? t.slice() : [ 0 ], m = [], g = !1, k = t ? t.join("") : "";
2507 function y(t, i, r, o) {
2508 function s(r, o, u) {
2509 function p(e, t) {
2510 var i = 0 === t.matches.indexOf(e);
2511 return i || t.matches.every((function(a, n) {
2512 return !0 === a.isQuantifier ? i = p(e, t.matches[n - 1]) : Object.prototype.hasOwnProperty.call(a, "matches") && (i = p(e, a)),
2513 !i;
2514 })), i;
2515 }
2516 function v(e, t, i) {
2517 var a, n;
2518 if ((l.tests[e] || l.validPositions[e]) && (l.tests[e] || [ l.validPositions[e] ]).every((function(e, r) {
2519 if (e.mloc[t]) return a = e, !1;
2520 var o = void 0 !== i ? i : e.alternation, s = void 0 !== e.locator[o] ? e.locator[o].toString().indexOf(t) : -1;
2521 return (void 0 === n || s < n) && -1 !== s && (a = e, n = s), !0;
2522 })), a) {
2523 var r = a.locator[a.alternation];
2524 return (a.mloc[t] || a.mloc[r] || a.locator).slice((void 0 !== i ? i : a.alternation) + 1);
2525 }
2526 return void 0 !== i ? v(e, t) : void 0;
2527 }
2528 function b(e, t) {
2529 var i = e.alternation, a = void 0 === t || i === t.alternation && -1 === e.locator[i].toString().indexOf(t.locator[i]);
2530 if (!a && i > t.alternation) for (var n = t.alternation; n < i; n++) if (e.locator[n] !== t.locator[n]) {
2531 i = n, a = !0;
2532 break;
2533 }
2534 if (a) {
2535 e.mloc = e.mloc || {};
2536 var r = e.locator[i];
2537 if (void 0 !== r) {
2538 if ("string" == typeof r && (r = r.split(",")[0]), void 0 === e.mloc[r] && (e.mloc[r] = e.locator.slice()),
2539 void 0 !== t) {
2540 for (var o in t.mloc) "string" == typeof o && (o = o.split(",")[0]), void 0 === e.mloc[o] && (e.mloc[o] = t.mloc[o]);
2541 e.locator[i] = Object.keys(e.mloc).join(",");
2542 }
2543 return !0;
2544 }
2545 e.alternation = void 0;
2546 }
2547 return !1;
2548 }
2549 function x(e, t) {
2550 if (e.locator.length !== t.locator.length) return !1;
2551 for (var i = e.alternation + 1; i < e.locator.length; i++) if (e.locator[i] !== t.locator[i]) return !1;
2552 return !0;
2553 }
2554 if (h > e + c._maxTestPos) throw "Inputmask: There is probably an error in your mask definition or in the code. Create an issue on github with an example of the mask you are using. " + l.mask;
2555 if (h === e && void 0 === r.matches) {
2556 if (m.push({
2557 match: r,
2558 locator: o.reverse(),
2559 cd: k,
2560 mloc: {}
2561 }), !r.optionality || void 0 !== u || !(c.definitions && c.definitions[r.nativeDef] && c.definitions[r.nativeDef].optional || n.default.prototype.definitions[r.nativeDef] && n.default.prototype.definitions[r.nativeDef].optional)) return !0;
2562 g = !0, h = e;
2563 } else if (void 0 !== r.matches) {
2564 if (r.isGroup && u !== r) {
2565 if (r = s(t.matches[t.matches.indexOf(r) + 1], o, u)) return !0;
2566 } else if (r.isOptional) {
2567 var P = r, E = m.length;
2568 if (r = y(r, i, o, u)) {
2569 if (m.forEach((function(e, t) {
2570 t >= E && (e.match.optionality = e.match.optionality ? e.match.optionality + 1 : 1);
2571 })), a = m[m.length - 1].match, void 0 !== u || !p(a, P)) return !0;
2572 g = !0, h = e;
2573 }
2574 } else if (r.isAlternator) {
2575 var S, w = r, _ = [], M = m.slice(), O = o.length, T = !1, A = i.length > 0 ? i.shift() : -1;
2576 if (-1 === A || "string" == typeof A) {
2577 var C, D = h, j = i.slice(), B = [];
2578 if ("string" == typeof A) B = A.split(","); else for (C = 0; C < w.matches.length; C++) B.push(C.toString());
2579 if (void 0 !== l.excludes[e]) {
2580 for (var R = B.slice(), L = 0, I = l.excludes[e].length; L < I; L++) {
2581 var F = l.excludes[e][L].toString().split(":");
2582 o.length == F[1] && B.splice(B.indexOf(F[0]), 1);
2583 }
2584 0 === B.length && (delete l.excludes[e], B = R);
2585 }
2586 (!0 === c.keepStatic || isFinite(parseInt(c.keepStatic)) && D >= c.keepStatic) && (B = B.slice(0, 1));
2587 for (var N = 0; N < B.length; N++) {
2588 C = parseInt(B[N]), m = [], i = "string" == typeof A && v(h, C, O) || j.slice();
2589 var V = w.matches[C];
2590 if (V && s(V, [ C ].concat(o), u)) r = !0; else if (0 === N && (T = !0), V && V.matches && V.matches.length > w.matches[0].matches.length) break;
2591 S = m.slice(), h = D, m = [];
2592 for (var G = 0; G < S.length; G++) {
2593 var H = S[G], K = !1;
2594 H.match.jit = H.match.jit || T, H.alternation = H.alternation || O, b(H);
2595 for (var U = 0; U < _.length; U++) {
2596 var $ = _[U];
2597 if ("string" != typeof A || void 0 !== H.alternation && B.includes(H.locator[H.alternation].toString())) {
2598 if (H.match.nativeDef === $.match.nativeDef) {
2599 K = !0, b($, H);
2600 break;
2601 }
2602 if (f(H, $, c)) {
2603 b(H, $) && (K = !0, _.splice(_.indexOf($), 0, H));
2604 break;
2605 }
2606 if (f($, H, c)) {
2607 b($, H);
2608 break;
2609 }
2610 if (Z = $, !0 === (W = H).match.static && !0 !== Z.match.static && Z.match.fn.test(W.match.def, l, e, !1, c, !1)) {
2611 x(H, $) || void 0 !== d.inputmask.userOptions.keepStatic ? b(H, $) && (K = !0, _.splice(_.indexOf($), 0, H)) : c.keepStatic = !0;
2612 break;
2613 }
2614 }
2615 }
2616 K || _.push(H);
2617 }
2618 }
2619 m = M.concat(_), h = e, g = m.length > 0, r = _.length > 0, i = j.slice();
2620 } else r = s(w.matches[A] || t.matches[A], [ A ].concat(o), u);
2621 if (r) return !0;
2622 } else if (r.isQuantifier && u !== t.matches[t.matches.indexOf(r) - 1]) for (var q = r, z = i.length > 0 ? i.shift() : 0; z < (isNaN(q.quantifier.max) ? z + 1 : q.quantifier.max) && h <= e; z++) {
2623 var Q = t.matches[t.matches.indexOf(q) - 1];
2624 if (r = s(Q, [ z ].concat(o), Q)) {
2625 if ((a = m[m.length - 1].match).optionalQuantifier = z >= q.quantifier.min, a.jit = (z + 1) * (Q.matches.indexOf(a) + 1) > q.quantifier.jit,
2626 a.optionalQuantifier && p(a, Q)) {
2627 g = !0, h = e;
2628 break;
2629 }
2630 return a.jit && (l.jitOffset[e] = Q.matches.length - Q.matches.indexOf(a)), !0;
2631 }
2632 } else if (r = y(r, i, o, u)) return !0;
2633 } else h++;
2634 var W, Z;
2635 }
2636 for (var u = i.length > 0 ? i.shift() : 0; u < t.matches.length; u++) if (!0 !== t.matches[u].isQuantifier) {
2637 var p = s(t.matches[u], [ u ].concat(r), o);
2638 if (p && h === e) return p;
2639 if (h > e) break;
2640 }
2641 }
2642 if (e > -1) {
2643 if (void 0 === t) {
2644 for (var b, x = e - 1; void 0 === (b = l.validPositions[x] || l.tests[x]) && x > -1; ) x--;
2645 void 0 !== b && x > -1 && (v = function(e, t) {
2646 var i, a = [];
2647 return Array.isArray(t) || (t = [ t ]), t.length > 0 && (void 0 === t[0].alternation || !0 === c.keepStatic ? 0 === (a = u.call(o, e, t.slice()).locator.slice()).length && (a = t[0].locator.slice()) : t.forEach((function(e) {
2648 "" !== e.def && (0 === a.length ? (i = e.alternation, a = e.locator.slice()) : e.locator[i] && -1 === a[i].toString().indexOf(e.locator[i]) && (a[i] += "," + e.locator[i]));
2649 }))), a;
2650 }(x, b), k = v.join(""), h = x);
2651 }
2652 if (l.tests[e] && l.tests[e][0].cd === k) return l.tests[e];
2653 for (var P = v.shift(); P < p.length; P++) {
2654 if (y(p[P], v, [ P ]) && h === e || h > e) break;
2655 }
2656 }
2657 return (0 === m.length || g) && m.push({
2658 match: {
2659 fn: null,
2660 static: !0,
2661 optionality: !1,
2662 casing: null,
2663 def: "",
2664 placeholder: ""
2665 },
2666 locator: [],
2667 mloc: {},
2668 cd: k
2669 }), void 0 !== t && l.tests[e] ? r = s.extend(!0, [], m) : (l.tests[e] = s.extend(!0, [], m),
2670 r = l.tests[e]), m.forEach((function(e) {
2671 e.match.optionality = e.match.defOptionality || !1;
2672 })), r;
2673 }
2674 },
2675 7215: function(e, t, i) {
2676 Object.defineProperty(t, "__esModule", {
2677 value: !0
2678 }), t.alternate = l, t.checkAlternationMatch = function(e, t, i) {
2679 for (var a, n = this.opts.greedy ? t : t.slice(0, 1), r = !1, o = void 0 !== i ? i.split(",") : [], s = 0; s < o.length; s++) -1 !== (a = e.indexOf(o[s])) && e.splice(a, 1);
2680 for (var l = 0; l < e.length; l++) if (n.includes(e[l])) {
2681 r = !0;
2682 break;
2683 }
2684 return r;
2685 }, t.handleRemove = function(e, t, i, a, s) {
2686 var u = this, c = this.maskset, f = this.opts;
2687 if ((f.numericInput || u.isRTL) && (t === r.default.BACKSPACE ? t = r.default.DELETE : t === r.default.DELETE && (t = r.default.BACKSPACE),
2688 u.isRTL)) {
2689 var d = i.end;
2690 i.end = i.begin, i.begin = d;
2691 }
2692 var p, h = o.getLastValidPosition.call(u, void 0, !0);
2693 i.end >= o.getBuffer.call(u).length && h >= i.end && (i.end = h + 1);
2694 t === r.default.BACKSPACE ? i.end - i.begin < 1 && (i.begin = o.seekPrevious.call(u, i.begin)) : t === r.default.DELETE && i.begin === i.end && (i.end = o.isMask.call(u, i.end, !0, !0) ? i.end + 1 : o.seekNext.call(u, i.end) + 1);
2695 if (!1 !== (p = m.call(u, i))) {
2696 if (!0 !== a && !1 !== f.keepStatic || null !== f.regex && -1 !== n.getTest.call(u, i.begin).match.def.indexOf("|")) {
2697 var v = l.call(u, !0);
2698 if (v) {
2699 var g = void 0 !== v.caret ? v.caret : v.pos ? o.seekNext.call(u, v.pos.begin ? v.pos.begin : v.pos) : o.getLastValidPosition.call(u, -1, !0);
2700 (t !== r.default.DELETE || i.begin > g) && i.begin;
2701 }
2702 }
2703 !0 !== a && (c.p = t === r.default.DELETE ? i.begin + p : i.begin, c.p = o.determineNewCaretPosition.call(u, {
2704 begin: c.p,
2705 end: c.p
2706 }, !1, !1 === f.insertMode && t === r.default.BACKSPACE ? "none" : void 0).begin);
2707 }
2708 }, t.isComplete = c, t.isSelection = f, t.isValid = d, t.refreshFromBuffer = h,
2709 t.revalidateMask = m;
2710 var a, n = i(4713), r = (a = i(5581)) && a.__esModule ? a : {
2711 default: a
2712 }, o = i(8711), s = i(6030);
2713 function l(e, t, i, a, r, s) {
2714 var u, c, f, p, h, v, m, g, k, y, b, x = this, P = this.dependencyLib, E = this.opts, S = x.maskset, w = P.extend(!0, [], S.validPositions), _ = P.extend(!0, {}, S.tests), M = !1, O = !1, T = void 0 !== r ? r : o.getLastValidPosition.call(x);
2715 if (s && (y = s.begin, b = s.end, s.begin > s.end && (y = s.end, b = s.begin)),
2716 -1 === T && void 0 === r) u = 0, c = (p = n.getTest.call(x, u)).alternation; else for (;T >= 0; T--) if ((f = S.validPositions[T]) && void 0 !== f.alternation) {
2717 if (p && p.locator[f.alternation] !== f.locator[f.alternation]) break;
2718 u = T, c = S.validPositions[u].alternation, p = f;
2719 }
2720 if (void 0 !== c) {
2721 m = parseInt(u), S.excludes[m] = S.excludes[m] || [], !0 !== e && S.excludes[m].push((0,
2722 n.getDecisionTaker)(p) + ":" + p.alternation);
2723 var A = [], C = -1;
2724 for (h = m; h < o.getLastValidPosition.call(x, void 0, !0) + 1; h++) -1 === C && e <= h && void 0 !== t && (A.push(t),
2725 C = A.length - 1), (v = S.validPositions[h]) && !0 !== v.generatedInput && (void 0 === s || h < y || h >= b) && A.push(v.input),
2726 delete S.validPositions[h];
2727 for (-1 === C && void 0 !== t && (A.push(t), C = A.length - 1); void 0 !== S.excludes[m] && S.excludes[m].length < 10; ) {
2728 for (S.tests = {}, o.resetMaskSet.call(x, !0), M = !0, h = 0; h < A.length && (g = M.caret || o.getLastValidPosition.call(x, void 0, !0) + 1,
2729 k = A[h], M = d.call(x, g, k, !1, a, !0)); h++) h === C && (O = M), 1 == e && M && (O = {
2730 caretPos: h
2731 });
2732 if (M) break;
2733 if (o.resetMaskSet.call(x), p = n.getTest.call(x, m), S.validPositions = P.extend(!0, [], w),
2734 S.tests = P.extend(!0, {}, _), !S.excludes[m]) {
2735 O = l.call(x, e, t, i, a, m - 1, s);
2736 break;
2737 }
2738 var D = (0, n.getDecisionTaker)(p);
2739 if (-1 !== S.excludes[m].indexOf(D + ":" + p.alternation)) {
2740 O = l.call(x, e, t, i, a, m - 1, s);
2741 break;
2742 }
2743 for (S.excludes[m].push(D + ":" + p.alternation), h = m; h < o.getLastValidPosition.call(x, void 0, !0) + 1; h++) delete S.validPositions[h];
2744 }
2745 }
2746 return O && !1 === E.keepStatic || delete S.excludes[m], O;
2747 }
2748 function u(e, t, i) {
2749 var a = this.opts, n = this.maskset;
2750 switch (a.casing || t.casing) {
2751 case "upper":
2752 e = e.toUpperCase();
2753 break;
2754
2755 case "lower":
2756 e = e.toLowerCase();
2757 break;
2758
2759 case "title":
2760 var o = n.validPositions[i - 1];
2761 e = 0 === i || o && o.input === String.fromCharCode(r.default.SPACE) ? e.toUpperCase() : e.toLowerCase();
2762 break;
2763
2764 default:
2765 if ("function" == typeof a.casing) {
2766 var s = Array.prototype.slice.call(arguments);
2767 s.push(n.validPositions), e = a.casing.apply(this, s);
2768 }
2769 }
2770 return e;
2771 }
2772 function c(e) {
2773 var t = this, i = this.opts, a = this.maskset;
2774 if ("function" == typeof i.isComplete) return i.isComplete(e, i);
2775 if ("*" !== i.repeat) {
2776 var r = !1, s = o.determineLastRequiredPosition.call(t, !0), l = o.seekPrevious.call(t, s.l);
2777 if (void 0 === s.def || s.def.newBlockMarker || s.def.optionality || s.def.optionalQuantifier) {
2778 r = !0;
2779 for (var u = 0; u <= l; u++) {
2780 var c = n.getTestTemplate.call(t, u).match;
2781 if (!0 !== c.static && void 0 === a.validPositions[u] && !0 !== c.optionality && !0 !== c.optionalQuantifier || !0 === c.static && e[u] !== n.getPlaceholder.call(t, u, c)) {
2782 r = !1;
2783 break;
2784 }
2785 }
2786 }
2787 return r;
2788 }
2789 }
2790 function f(e) {
2791 var t = this.opts.insertMode ? 0 : 1;
2792 return this.isRTL ? e.begin - e.end > t : e.end - e.begin > t;
2793 }
2794 function d(e, t, i, a, r, s, p) {
2795 var g = this, k = this.dependencyLib, y = this.opts, b = g.maskset;
2796 i = !0 === i;
2797 var x = e;
2798 function P(e) {
2799 if (void 0 !== e) {
2800 if (void 0 !== e.remove && (Array.isArray(e.remove) || (e.remove = [ e.remove ]),
2801 e.remove.sort((function(e, t) {
2802 return g.isRTL ? e.pos - t.pos : t.pos - e.pos;
2803 })).forEach((function(e) {
2804 m.call(g, {
2805 begin: e,
2806 end: e + 1
2807 });
2808 })), e.remove = void 0), void 0 !== e.insert && (Array.isArray(e.insert) || (e.insert = [ e.insert ]),
2809 e.insert.sort((function(e, t) {
2810 return g.isRTL ? t.pos - e.pos : e.pos - t.pos;
2811 })).forEach((function(e) {
2812 "" !== e.c && d.call(g, e.pos, e.c, void 0 === e.strict || e.strict, void 0 !== e.fromIsValid ? e.fromIsValid : a);
2813 })), e.insert = void 0), e.refreshFromBuffer && e.buffer) {
2814 var t = e.refreshFromBuffer;
2815 h.call(g, !0 === t ? t : t.start, t.end, e.buffer), e.refreshFromBuffer = void 0;
2816 }
2817 void 0 !== e.rewritePosition && (x = e.rewritePosition, e = !0);
2818 }
2819 return e;
2820 }
2821 function E(t, i, r) {
2822 var s = !1;
2823 return n.getTests.call(g, t).every((function(l, c) {
2824 var d = l.match;
2825 if (o.getBuffer.call(g, !0), !1 !== (s = (!d.jit || void 0 !== b.validPositions[o.seekPrevious.call(g, t)]) && (null != d.fn ? d.fn.test(i, b, t, r, y, f.call(g, e)) : (i === d.def || i === y.skipOptionalPartCharacter) && "" !== d.def && {
2826 c: n.getPlaceholder.call(g, t, d, !0) || d.def,
2827 pos: t
2828 }))) {
2829 var p = void 0 !== s.c ? s.c : i, h = t;
2830 return p = p === y.skipOptionalPartCharacter && !0 === d.static ? n.getPlaceholder.call(g, t, d, !0) || d.def : p,
2831 !0 !== (s = P(s)) && void 0 !== s.pos && s.pos !== t && (h = s.pos), !0 !== s && void 0 === s.pos && void 0 === s.c ? !1 : (!1 === m.call(g, e, k.extend({}, l, {
2832 input: u.call(g, p, d, h)
2833 }), a, h) && (s = !1), !1);
2834 }
2835 return !0;
2836 })), s;
2837 }
2838 void 0 !== e.begin && (x = g.isRTL ? e.end : e.begin);
2839 var S = !0, w = k.extend(!0, {}, b.validPositions);
2840 if (!1 === y.keepStatic && void 0 !== b.excludes[x] && !0 !== r && !0 !== a) for (var _ = x; _ < (g.isRTL ? e.begin : e.end); _++) void 0 !== b.excludes[_] && (b.excludes[_] = void 0,
2841 delete b.tests[_]);
2842 if ("function" == typeof y.preValidation && !0 !== a && !0 !== s && (S = P(S = y.preValidation.call(g, o.getBuffer.call(g), x, t, f.call(g, e), y, b, e, i || r))),
2843 !0 === S) {
2844 if (S = E(x, t, i), (!i || !0 === a) && !1 === S && !0 !== s) {
2845 var M = b.validPositions[x];
2846 if (!M || !0 !== M.match.static || M.match.def !== t && t !== y.skipOptionalPartCharacter) {
2847 if (y.insertMode || void 0 === b.validPositions[o.seekNext.call(g, x)] || e.end > x) {
2848 var O = !1;
2849 if (b.jitOffset[x] && void 0 === b.validPositions[o.seekNext.call(g, x)] && !1 !== (S = d.call(g, x + b.jitOffset[x], t, !0, !0)) && (!0 !== r && (S.caret = x),
2850 O = !0), e.end > x && (b.validPositions[x] = void 0), !O && !o.isMask.call(g, x, y.keepStatic && 0 === x)) for (var T = x + 1, A = o.seekNext.call(g, x, !1, 0 !== x); T <= A; T++) if (!1 !== (S = E(T, t, i))) {
2851 S = v.call(g, x, void 0 !== S.pos ? S.pos : T) || S, x = T;
2852 break;
2853 }
2854 }
2855 } else S = {
2856 caret: o.seekNext.call(g, x)
2857 };
2858 }
2859 !1 !== S || !y.keepStatic || !c.call(g, o.getBuffer.call(g)) && 0 !== x || i || !0 === r ? f.call(g, e) && b.tests[x] && b.tests[x].length > 1 && y.keepStatic && !i && !0 !== r && (S = l.call(g, !0)) : S = l.call(g, x, t, i, a, void 0, e),
2860 !0 === S && (S = {
2861 pos: x
2862 });
2863 }
2864 if ("function" == typeof y.postValidation && !0 !== a && !0 !== s) {
2865 var C = y.postValidation.call(g, o.getBuffer.call(g, !0), void 0 !== e.begin ? g.isRTL ? e.end : e.begin : e, t, S, y, b, i, p);
2866 void 0 !== C && (S = !0 === C ? S : C);
2867 }
2868 S && void 0 === S.pos && (S.pos = x), !1 === S || !0 === s ? (o.resetMaskSet.call(g, !0),
2869 b.validPositions = k.extend(!0, [], w)) : v.call(g, void 0, x, !0);
2870 var D = P(S);
2871 void 0 !== g.maxLength && (o.getBuffer.call(g).length > g.maxLength && !a && (o.resetMaskSet.call(g, !0),
2872 b.validPositions = k.extend(!0, [], w), D = !1));
2873 return D;
2874 }
2875 function p(e, t, i) {
2876 for (var a = this.maskset, r = !1, o = n.getTests.call(this, e), s = 0; s < o.length; s++) {
2877 if (o[s].match && (o[s].match.nativeDef === t.match[i.shiftPositions ? "def" : "nativeDef"] && (!i.shiftPositions || !t.match.static) || o[s].match.nativeDef === t.match.nativeDef || i.regex && !o[s].match.static && o[s].match.fn.test(t.input))) {
2878 r = !0;
2879 break;
2880 }
2881 if (o[s].match && o[s].match.def === t.match.nativeDef) {
2882 r = void 0;
2883 break;
2884 }
2885 }
2886 return !1 === r && void 0 !== a.jitOffset[e] && (r = p.call(this, e + a.jitOffset[e], t, i)),
2887 r;
2888 }
2889 function h(e, t, i) {
2890 var a, n, r = this, l = this.maskset, u = this.opts, c = this.dependencyLib, f = u.skipOptionalPartCharacter, d = r.isRTL ? i.slice().reverse() : i;
2891 if (u.skipOptionalPartCharacter = "", !0 === e) o.resetMaskSet.call(r), l.tests = {},
2892 e = 0, t = i.length, n = o.determineNewCaretPosition.call(r, {
2893 begin: 0,
2894 end: 0
2895 }, !1).begin; else {
2896 for (a = e; a < t; a++) delete l.validPositions[a];
2897 n = e;
2898 }
2899 var p = new c.Event("keypress");
2900 for (a = e; a < t; a++) {
2901 p.keyCode = d[a].toString().charCodeAt(0), r.ignorable = !1;
2902 var h = s.EventHandlers.keypressEvent.call(r, p, !0, !1, !1, n);
2903 !1 !== h && void 0 !== h && (n = h.forwardPosition);
2904 }
2905 u.skipOptionalPartCharacter = f;
2906 }
2907 function v(e, t, i) {
2908 var a = this, r = this.maskset, s = this.dependencyLib;
2909 if (void 0 === e) for (e = t - 1; e > 0 && !r.validPositions[e]; e--) ;
2910 for (var l = e; l < t; l++) {
2911 if (void 0 === r.validPositions[l] && !o.isMask.call(a, l, !1)) if (0 == l ? n.getTest.call(a, l) : r.validPositions[l - 1]) {
2912 var u = n.getTests.call(a, l).slice();
2913 "" === u[u.length - 1].match.def && u.pop();
2914 var c, f = n.determineTestTemplate.call(a, l, u);
2915 if (f && (!0 !== f.match.jit || "master" === f.match.newBlockMarker && (c = r.validPositions[l + 1]) && !0 === c.match.optionalQuantifier) && ((f = s.extend({}, f, {
2916 input: n.getPlaceholder.call(a, l, f.match, !0) || f.match.def
2917 })).generatedInput = !0, m.call(a, l, f, !0), !0 !== i)) {
2918 var p = r.validPositions[t].input;
2919 return r.validPositions[t] = void 0, d.call(a, t, p, !0, !0);
2920 }
2921 }
2922 }
2923 }
2924 function m(e, t, i, a) {
2925 var r = this, s = this.maskset, l = this.opts, u = this.dependencyLib;
2926 function c(e, t, i) {
2927 var a = t[e];
2928 if (void 0 !== a && !0 === a.match.static && !0 !== a.match.optionality && (void 0 === t[0] || void 0 === t[0].alternation)) {
2929 var n = i.begin <= e - 1 ? t[e - 1] && !0 === t[e - 1].match.static && t[e - 1] : t[e - 1], r = i.end > e + 1 ? t[e + 1] && !0 === t[e + 1].match.static && t[e + 1] : t[e + 1];
2930 return n && r;
2931 }
2932 return !1;
2933 }
2934 var f = 0, h = void 0 !== e.begin ? e.begin : e, v = void 0 !== e.end ? e.end : e, m = !0;
2935 if (e.begin > e.end && (h = e.end, v = e.begin), a = void 0 !== a ? a : h, void 0 === i && (h !== v || l.insertMode && void 0 !== s.validPositions[a] || void 0 === t || t.match.optionalQuantifier || t.match.optionality)) {
2936 var g, k = u.extend(!0, {}, s.validPositions), y = o.getLastValidPosition.call(r, void 0, !0);
2937 for (s.p = h, g = y; g >= h; g--) delete s.validPositions[g], void 0 === t && delete s.tests[g + 1];
2938 var b, x, P = a, E = P;
2939 for (t && (s.validPositions[a] = u.extend(!0, {}, t), E++, P++), g = t ? v : v - 1; g <= y; g++) {
2940 if (void 0 !== (b = k[g]) && !0 !== b.generatedInput && (g >= v || g >= h && c(g, k, {
2941 begin: h,
2942 end: v
2943 }))) {
2944 for (;"" !== n.getTest.call(r, E).match.def; ) {
2945 if (!1 !== (x = p.call(r, E, b, l)) || "+" === b.match.def) {
2946 "+" === b.match.def && o.getBuffer.call(r, !0);
2947 var S = d.call(r, E, b.input, "+" !== b.match.def, !0);
2948 if (m = !1 !== S, P = (S.pos || E) + 1, !m && x) break;
2949 } else m = !1;
2950 if (m) {
2951 void 0 === t && b.match.static && g === e.begin && f++;
2952 break;
2953 }
2954 if (!m && o.getBuffer.call(r), E > s.maskLength) break;
2955 E++;
2956 }
2957 "" == n.getTest.call(r, E).match.def && (m = !1), E = P;
2958 }
2959 if (!m) break;
2960 }
2961 if (!m) return s.validPositions = u.extend(!0, [], k), o.resetMaskSet.call(r, !0),
2962 !1;
2963 } else t && n.getTest.call(r, a).match.cd === t.match.cd && (s.validPositions[a] = u.extend(!0, {}, t));
2964 return o.resetMaskSet.call(r, !0), f;
2965 }
2966 },
2967 7957: function(t) {
2968 t.exports = e;
2969 },
2970 5581: function(e) {
2971 e.exports = JSON.parse('{"BACKSPACE":8,"BACKSPACE_SAFARI":127,"DELETE":46,"DOWN":40,"END":35,"ENTER":13,"ESCAPE":27,"HOME":36,"INSERT":45,"LEFT":37,"PAGE_DOWN":34,"PAGE_UP":33,"RIGHT":39,"SPACE":32,"TAB":9,"UP":38,"X":88,"Z":90,"CONTROL":17,"PAUSE/BREAK":19,"WINDOWS_LEFT":91,"WINDOWS_RIGHT":92,"KEY_229":229}');
2972 }
2973 }, i = {};
2974 function a(e) {
2975 var n = i[e];
2976 if (void 0 !== n) return n.exports;
2977 var r = i[e] = {
2978 exports: {}
2979 };
2980 return t[e](r, r.exports, a), r.exports;
2981 }
2982 var n = {};
2983 return function() {
2984 var e = n;
2985 Object.defineProperty(e, "__esModule", {
2986 value: !0
2987 }), e.default = void 0;
2988 var t, i = (t = a(3046)) && t.__esModule ? t : {
2989 default: t
2990 };
2991 a(443);
2992 var r = i.default;
2993 e.default = r;
2994 }(), n;
2995 }();
2996 }));