https://atendimento.al.ba.gov.br/statics/assets/plugins/inputmask-5/jquery.inputmask.js?v=1790278378
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.23 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
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.depen
404dencyLib)(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.ke
468yCode === 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 de
550structure 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", "
813November", "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: {
vendor: 5,036 bytes, lines 1004-1086
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 if ("+" === e) { 1050 for (i in t.validPositions) ; 1051 i = o.seekNext.call(this, parseInt(i)); 1052 } 1053 for (var a in 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); 1054 return i; 1055 } 1056 function d(e, t) { 1057 var i = -1; 1058 for (var a in t.validPositions) { 1059 var n = t.validPositions[a]; 1060 if (n && n.match.def === e) { 1061 i = parseInt(a); 1062 break; 1063 } 1064 } 1065 return i; 1066 } 1067 function p(e, t, i, a, n) { 1068 var r = t.buffer ? t.buffer.indexOf(n.radixPoint) : -1, o = (-1 !== r || a && n.jitMasking) && new RegExp(n.definitions[9].validator).test(e); 1069 return n._radixDance && -1 !== r && o && null == t.validPositions[r] ? { 1070 insert: { 1071 pos: r === i ? r + 1 : r, 1072 c: n.radixPoint 1073 }, 1074 pos: i 1075 } : o; 1076 } 1077 a.default.extendAliases({ 1078 numeric: { 1079 mask: function(e) { 1080 e.repeat = 0, e.groupSeparator === e.radixPoint && e.digits && "0" !== e.digits && ("." === e.radixPoint ? e.groupSeparator = "," : "," === e.radixPoint ? e.groupSeparator = "." : e.groupSeparator = ""), 1081 " " === e.groupSeparator && (e.skipOptionalPartCharacter = void 0), e.placeholder.length > 1 && (e.placeholder = e.placeholder.charAt(0)), 1082 "radixFocus" === e.positionCaretOnClick && "" === e.placeholder && (e.positionCaretOnClick = "lvp"); 1083 var t = "0", i = e.radixPoint; 1084 !0 === e.numericInput && void 0 === e.__financeInput ? (t = "1", e.positionCaretOnClick = "radixFocus" === e.positionCaretOnClick ? "lvp" : e.positionCaretOnClick, 1085 e.digitsOptional = !1, isNaN(e.digits) && (e.digits = 2), e._radixDance = !1, i = "," === e.radixPoint ? "?" : "!", 1086 "" !== e.radixPoint && void 0 === e.definitions[i] && (e.definitions[i] = {}
vendor: 13,644 bytes, lines 1086-1287
1086, e.definitions[i].validator = "[" + e.radixPoint + "]", 1087 e.definitions[i].placeholder = e.radixPoint, e.definitions[i].static = !0, e.definitions[i].generated = !0)) : (e.__financeInput = !1, 1088 e.numericInput = !0); 1089 var a, n = "[+]"; 1090 if (n += u(e.prefix, e), "" !== e.groupSeparator ? (void 0 === e.definitions[e.groupSeparator] && (e.definitions[e.groupSeparator] = {}, 1091 e.definitions[e.groupSeparator].validator = "[" + e.groupSeparator + "]", e.definitions[e.groupSeparator].placeholder = e.groupSeparator, 1092 e.definitions[e.groupSeparator].static = !0, e.definitions[e.groupSeparator].generated = !0), 1093 n += e._mask(e)) : n += "9{+}", void 0 !== e.digits && 0 !== e.digits) { 1094 var o = e.digits.toString().split(","); 1095 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 + "}", 1096 e.keepStatic = !0) : n += i + t + "{" + e.digits + "}"); 1097 } else e.inputmode = "numeric"; 1098 return n += u(e.suffix, e), n += "[-]", a && (n = [ a + u(e.suffix, e) + "[-]", n ]), 1099 e.greedy = !1, function(e) { 1100 void 0 === e.parseMinMaxOptions && (null !== e.min && (e.min = e.min.toString().replace(new RegExp((0, 1101 r.default)(e.groupSeparator), "g"), ""), "," === e.radixPoint && (e.min = e.min.replace(e.radixPoint, ".")), 1102 e.min = isFinite(e.min) ? parseFloat(e.min) : NaN, isNaN(e.min) && (e.min = Number.MIN_VALUE)), 1103 null !== e.max && (e.max = e.max.toString().replace(new RegExp((0, r.default)(e.groupSeparator), "g"), ""), 1104 "," === e.radixPoint && (e.max = e.max.replace(e.radixPoint, ".")), e.max = isFinite(e.max) ? parseFloat(e.max) : NaN, 1105 isNaN(e.max) && (e.max = Number.MAX_VALUE)), e.parseMinMaxOptions = "done"); 1106 }(e), "" !== e.radixPoint && e.substituteRadixPoint && (e.substitutes["." == e.radixPoint ? "," : "."] = e.radixPoint), 1107 n; 1108 }, 1109 _mask: function(e) { 1110 return "(" + e.groupSeparator + "999){+|1}"; 1111 }, 1112 digits: "*", 1113 digitsOptional: !0, 1114 enforceDigitsOnBlur: !1, 1115 radixPoint: ".", 1116 positionCaretOnClick: "radixFocus", 1117 _radixDance: !0, 1118 groupSeparator: "", 1119 allowMinus: !0, 1120 negationSymbol: { 1121 front: "-", 1122 back: "" 1123 }, 1124 prefix: "", 1125 suffix: "", 1126 min: null, 1127 max: null, 1128 SetMaxOnOverflow: !1, 1129 step: 1, 1130 inputType: "text", 1131 unmaskAsNumber: !1, 1132 roundingFN: Math.round, 1133 inputmode: "decimal", 1134 shortcuts: { 1135 k: "1000", 1136 m: "1000000" 1137 }, 1138 placeholder: "0", 1139 greedy: !1, 1140 rightAlign: !0, 1141 insertMode: !0, 1142 autoUnmask: !1, 1143 skipOptionalPartCharacter: "", 1144 usePrototypeDefinitions: !1, 1145 stripLeadingZeroes: !0, 1146 substituteRadixPoint: !0, 1147 definitions: { 1148 0: { 1149 validator: p 1150 }, 1151 1: { 1152 validator: p, 1153 definitionSymbol: "9" 1154 }, 1155 9: { 1156 validator: "[0-9\uff10-\uff19\u0660-\u0669\u06f0-\u06f9]", 1157 definitionSymbol: "*" 1158 }, 1159 "+": { 1160 validator: function(e, t, i, a, n) { 1161 return n.allowMinus && ("-" === e || e === n.negationSymbol.front); 1162 } 1163 }, 1164 "-": { 1165 validator: function(e, t, i, a, n) { 1166 return n.allowMinus && e === n.negationSymbol.back; 1167 } 1168 } 1169 }, 1170 preValidation: function(e, t, i, a, n, r, o, s) { 1171 if (!1 !== n.__financeInput && i === n.radixPoint) return !1; 1172 var l = e.indexOf(n.radixPoint), u = t; 1173 if (t = function(e, t, i, a, n) { 1174 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), 1175 e; 1176 }(t, i, l, r, n), "-" === i || i === n.negationSymbol.front) { 1177 if (!0 !== n.allowMinus) return !1; 1178 var c = !1, p = d("+", r), h = d("-", r); 1179 return -1 !== p && (c = [ p, h ]), !1 !== c ? { 1180 remove: c, 1181 caret: u - n.negationSymbol.back.length 1182 } : { 1183 insert: [ { 1184 pos: f.call(this, "+", r), 1185 c: n.negationSymbol.front, 1186 fromIsValid: !0 1187 }, { 1188 pos: f.call(this, "-", r), 1189 c: n.negationSymbol.back, 1190 fromIsValid: void 0 1191 } ], 1192 caret: u + n.negationSymbol.back.length 1193 }; 1194 } 1195 if (i === n.groupSeparator) return { 1196 caret: u 1197 }; 1198 if (s) return !0; 1199 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 { 1200 caret: n._radixDance && t === l - 1 ? l + 1 : l 1201 }; 1202 if (!1 === n.__financeInput) if (a) { 1203 if (n.digitsOptional) return { 1204 rewritePosition: o.end 1205 }; 1206 if (!n.digitsOptional) { 1207 if (o.begin > l && o.end <= l) return i === n.radixPoint ? { 1208 insert: { 1209 pos: l + 1, 1210 c: "0", 1211 fromIsValid: !0 1212 }, 1213 rewritePosition: l 1214 } : { 1215 rewritePosition: l + 1 1216 }; 1217 if (o.begin < l) return { 1218 rewritePosition: o.begin - 1 1219 }; 1220 } 1221 } else if (!n.showMaskOnHover && !n.showMaskOnFocus && !n.digitsOptional && n.digits > 0 && "" === this.__valueGet.call(this.el)) return { 1222 rewritePosition: l 1223 }; 1224 return { 1225 rewritePosition: t 1226 }; 1227 }, 1228 postValidation: function(e, t, i, a, n, r, o) { 1229 if (!1 === a) return a; 1230 if (o) return !0; 1231 if (null !== n.min || null !== n.max) { 1232 var s = n.onUnMask(e.slice().reverse().join(""), void 0, l.extend({}, n, { 1233 unmaskAsNumber: !0 1234 })); 1235 if (null !== n.min && s < n.min && (s.toString().length > n.min.toString().length || s < 0)) return !1; 1236 if (null !== n.max && s > n.max) return !!n.SetMaxOnOverflow && { 1237 refreshFromBuffer: !0, 1238 buffer: c(n.max.toString().replace(".", n.radixPoint).split(""), n.digits, n).reverse() 1239 }; 1240 } 1241 return a; 1242 }, 1243 onUnMask: function(e, t, i) { 1244 if ("" === t && !0 === i.nullable) return t; 1245 var a = e.replace(i.prefix, ""); 1246 return a = (a = a.replace(i.suffix, "")).replace(new RegExp((0, r.default)(i.groupSeparator), "g"), ""), 1247 "" !== i.placeholder.charAt(0) && (a = a.replace(new RegExp(i.placeholder.charAt(0), "g"), "0")), 1248 i.unmaskAsNumber ? ("" !== i.radixPoint && -1 !== a.indexOf(i.radixPoint) && (a = a.replace(r.default.call(this, i.radixPoint), ".")), 1249 a = (a = a.replace(new RegExp("^" + (0, r.default)(i.negationSymbol.front)), "-")).replace(new RegExp((0, 1250 r.default)(i.negationSymbol.back) + "$"), ""), Number(a)) : a; 1251 }, 1252 isComplete: function(e, t) { 1253 var i = (t.numericInput ? e.slice().reverse() : e).join(""); 1254 return i = (i = (i = (i = (i = i.replace(new RegExp("^" + (0, r.default)(t.negationSymbol.front)), "-")).replace(new RegExp((0, 1255 r.default)(t.negationSymbol.back) + "$"), "")).replace(t.prefix, "")).replace(t.suffix, "")).replace(new RegExp((0, 1256 r.default)(t.groupSeparator) + "([0-9]{3})", "g"), "$1"), "," === t.radixPoint && (i = i.replace((0, 1257 r.default)(t.radixPoint), ".")), isFinite(i); 1258 }, 1259 onBeforeMask: function(e, t) { 1260 var i = t.radixPoint || ","; 1261 isFinite(t.digits) && (t.digits = parseInt(t.digits)), "number" != typeof e && "number" !== t.inputType || "" === i || (e = e.toString().replace(".", i)); 1262 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; 1263 e = o + ("" !== s ? i + s : s); 1264 var u = 0; 1265 if ("" !== i && (u = t.digitsOptional ? t.digits < s.length ? t.digits : s.length : t.digits, 1266 "" !== s || !t.digitsOptional)) { 1267 var f = Math.pow(10, u || 1); 1268 e = e.replace((0, r.default)(i), "."), isNaN(parseFloat(e)) || (e = (t.roundingFN(parseFloat(e) * f) / f).toFixed(u)), 1269 e = e.toString().replace(".", i); 1270 } 1271 if (0 === t.digits && -1 !== e.indexOf(i) && (e = e.substring(0, e.indexOf(i))), 1272 null !== t.min || null !== t.max) { 1273 var d = e.toString().replace(i, "."); 1274 null !== t.min && d < t.min ? e = t.min.toString().replace(".", i) : null !== t.max && d > t.max && (e = t.max.toString().replace(".", i)); 1275 } 1276 return a && "-" !== e.charAt(0) && (e = "-" + e), c(e.toString().split(""), u, t, l).join(""); 1277 }, 1278 onBeforeWrite: function(e, t, i, a) { 1279 function n(e, t) { 1280 if (!1 !== a.__financeInput || t) { 1281 var i = e.indexOf(a.radixPoint); 1282 -1 !== i && e.splice(i, 1); 1283 } 1284 if ("" !== a.groupSeparator) for (;-1 !== (i = e.indexOf(a.groupSeparator)); ) e.splice(i, 1); 1285 return e; 1286 } 1287 var o, s;
1288 if (a.stripLeadingZeroes && (s = function(e, t) { 1289 var i = new RegExp("(^" + ("" !== t.negationSymbol.front ? (0, r.default)(t.negationSymbol.front) + "?" : "") + (0, 1290 r.default)(t.prefix) + ")(.*)(" + (0, r.default)(t.suffix) + ("" != t.negationSymbol.back ? (0, 1291 r.default)(t.negationSymbol.back) + "?" : "") + "$)").exec(e.slice().reverse().join("")), a = i ? i[2] : "", n = !1; 1292 return a && (a = a.split(t.radixPoint.charAt(0))[0], n = new RegExp("^[0" + t.groupSeparator + "]*").exec(a)), 1293 !(!n || !(n[0].length > 1 || n[0].length > 0 && n[0].length < a.length)) && n; 1294 }(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], 1295 delete t[u + d]; 1296 if (e) switch (e.type) { 1297 case "blur": 1298 case "checkval": 1299 if (null !== a.min) { 1300 var p = a.onUnMask(t.slice().reverse().join(""), void 0, l.extend({}, a, { 1301 unmaskAsNumber: !0 1302 })); 1303 if (null !== a.min && p < a.min) return { 1304 refreshFromBuffer: !0, 1305 buffer: c(a.min.toString().replace(".", a.radixPoint).split(""), a.digits, a).reverse() 1306 }; 1307 } 1308 if (t[t.length - 1] === a.negationSymbol.front) { 1309 var h = new RegExp("(^" + ("" != a.negationSymbol.front ? (0, r.default)(a.negationSymbol.front) + "?" : "") + (0, 1310 r.default)(a.prefix) + ")(.*)(" + (0, r.default)(a.suffix) + ("" != a.negationSymbol.back ? (0, 1311 r.default)(a.negationSymbol.back) + "?" : "") + "$)").exec(n(t.slice(), !0).reverse().join("")); 1312 0 == (h ? h[2] : "") && (o = { 1313 refreshFromBuffer: !0, 1314 buffer: [ 0 ] 1315 }); 1316 } else if ("" !== a.radixPoint) { 1317 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), 1318 o = { 1319 refreshFromBuffer: !0, 1320 buffer: n(t) 1321 })); 1322 } 1323 if (a.enforceDigitsOnBlur) { 1324 var v = (o = o || {}) && o.buffer || t.slice().reverse(); 1325 o.refreshFromBuffer = !0, o.buffer = c(v, a.digits, a, !0).reverse(); 1326 } 1327 } 1328 return o; 1329 }, 1330 onKeyDown: function(e, t, i, a) { 1331 var r, o = l(this); 1332 if (3 != e.location) { 1333 var s, u = String.fromCharCode(e.keyCode).toLowerCase(); 1334 if ((s = a.shortcuts && a.shortcuts[u]) && s.length > 1) return this.inputmask.__valueSet.call(this, parseFloat(this.inputmask.unmaskedvalue()) * parseInt(s)), 1335 o.trigger("setvalue"), !1; 1336 } 1337 if (e.ctrlKey) switch (e.keyCode) { 1338 case n.default.UP: 1339 return this.inputmask.__valueSet.call(this, parseFloat(this.inputmask.unmaskedvalue()) + parseInt(a.step)), 1340 o.trigger("setvalue"), !1; 1341 1342 case n.default.DOWN: 1343 return this.inputmask.__valueSet.call(this, parseFloat(this.inputmask.unmaskedvalue()) - parseInt(a.step)), 1344 o.trigger("setvalue"), !1; 1345 } 1346 if (!e.shiftKey && (e.keyCode === n.default.DELETE || e.keyCode === n.default.BACKSPACE || e.keyCode === n.default.BACKSPACE_SAFARI) && i.begin !== t.length) { 1347 if (t[e.keyCode === n.default.DELETE ? i.begin - 1 : i.end] === a.negationSymbol.front) return r = t.slice().reverse(), 1348 "" !== a.negationSymbol.front && r.shift(), "" !== a.negationSymbol.back && r.pop(), 1349 o.trigger("setvalue", [ r.join(""), i.begin ]), !1; 1350 if (!0 === a._radixDance) { 1351 var f = t.indexOf(a.radixPoint); 1352 if (a.digitsOptional) { 1353 if (0 === f) return (r = t.slice().reverse()).pop(), o.trigger("setvalue", [ r.join(""), i.begin >= r.length ? r.length : i.begin ]), 1354 !1; 1355 } else if (-1 !== f && (i.begin < f || i.end < f || e.keyCode === n.default.DELETE && (i.begin === f || i.begin - 1 === f))) { 1356 var d = void 0; 1357 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), 1358 i.begin--, i.end--)), (r = t.slice().reverse()).splice(r.length - i.begin, i.begin - i.end + 1), 1359 r = c(r, a.digits, a).join(""), d && (i = d), o.trigger("setvalue", [ r, i.begin >= r.length ? f + 1 : i.begin ]), 1360 !1; 1361 } 1362 } 1363 } 1364 } 1365 }, 1366 currency: { 1367 prefix: "", 1368 groupSeparator: ",", 1369 alias: "numeric", 1370 digits: 2, 1371 digitsOptional: !1 1372 },
vendor: 3,896 bytes, lines 1373-1448
1373 decimal: { 1374 alias: "numeric" 1375 }, 1376 integer: { 1377 alias: "numeric", 1378 inputmode: "numeric", 1379 digits: 0 1380 }, 1381 percentage: { 1382 alias: "numeric", 1383 min: 0, 1384 max: 100, 1385 suffix: " %", 1386 digits: 0, 1387 allowMinus: !1 1388 }, 1389 indianns: { 1390 alias: "numeric", 1391 _mask: function(e) { 1392 return "(" + e.groupSeparator + "99){*|1}(" + e.groupSeparator + "999){1|1}"; 1393 }, 1394 groupSeparator: ",", 1395 radixPoint: ".", 1396 placeholder: "0", 1397 digits: 2, 1398 digitsOptional: !1 1399 } 1400 }); 1401 }, 1402 9380: function(e, t, i) { 1403 var a; 1404 Object.defineProperty(t, "__esModule", { 1405 value: !0 1406 }), t.default = void 0; 1407 var n = ((a = i(8741)) && a.__esModule ? a : { 1408 default: a 1409 }).default ? window : {}; 1410 t.default = n; 1411 }, 1412 7760: function(e, t, i) { 1413 Object.defineProperty(t, "__esModule", { 1414 value: !0 1415 }), t.HandleNativePlaceholder = function(e, t) { 1416 var i = e ? e.inputmask : this; 1417 if (l.ie) { 1418 if (e.inputmask._valueGet() !== t && (e.placeholder !== t || "" === e.placeholder)) { 1419 var a = o.getBuffer.call(i).slice(), n = e.inputmask._valueGet(); 1420 if (n !== t) { 1421 var r = o.getLastValidPosition.call(i); 1422 -1 === r && n === o.getBufferTemplate.call(i).join("") ? a = [] : -1 !== r && f.call(i, a), 1423 p(e, a); 1424 } 1425 } 1426 } else e.placeholder !== t && (e.placeholder = t, "" === e.placeholder && e.removeAttribute("placeholder")); 1427 }, t.applyInputValue = c, t.checkVal = d, t.clearOptionalTail = f, t.unmaskedvalue = function(e) { 1428 var t = e ? e.inputmask : this, i = t.opts, a = t.maskset; 1429 if (e) { 1430 if (void 0 === e.inputmask) return e.value; 1431 e.inputmask && e.inputmask.refreshValue && c(e, e.inputmask._valueGet(!0)); 1432 } 1433 var n = [], r = a.validPositions; 1434 for (var s in r) r[s] && r[s].match && (1 != r[s].match.static || Array.isArray(a.metadata) && !0 !== r[s].generatedInput) && n.push(r[s].input); 1435 var l = 0 === n.length ? "" : (t.isRTL ? n.reverse() : n).join(""); 1436 if ("function" == typeof i.onUnMask) { 1437 var u = (t.isRTL ? o.getBuffer.call(t).slice().reverse() : o.getBuffer.call(t)).join(""); 1438 l = i.onUnMask.call(t, u, l, i); 1439 } 1440 return l; 1441 }, t.writeBuffer = p; 1442 var a, n = (a = i(5581)) && a.__esModule ? a : { 1443 default: a 1444 }, r = i(4713), o = i(8711), s = i(7215), l = i(9845), u = i(6030); 1445 function c(e, t) { 1446 var i = e ? e.inputmask : this, a = i.opts; 1447 e.inputmask.refreshValue = !1, "function" == typeof a.onBeforeMask && (t = a.onBeforeMask.call(i, t, a) || t), 1448 d(e, !0, !1, t = t.toString().split("")), i.und
vendor: 13,236 bytes, lines 1448-1621
1448oValue = i._valueGet(!0), (a.clearMaskOnLostFocus || a.clearIncomplete) && e.inputmask._valueGet() === o.getBufferTemplate.call(i).join("") && -1 === o.getLastValidPosition.call(i) && e.inputmask._valueSet(""); 1449 } 1450 function f(e) { 1451 e.length = 0; 1452 for (var t, i = r.getMaskTemplate.call(this, !0, 0, !0, void 0, !0); void 0 !== (t = i.shift()); ) e.push(t); 1453 return e; 1454 } 1455 function d(e, t, i, a, n) { 1456 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; 1457 f.skipOptionalPartCharacter = "", o.resetMaskSet.call(l), c.tests = {}, m = f.radixPoint ? o.determineNewCaretPosition.call(l, { 1458 begin: 0, 1459 end: 0 1460 }, !1, !1 === f.__financeInput ? "radixFocus" : void 0).begin : 0, c.p = m, l.caretPos = { 1461 begin: m 1462 }; 1463 var y = [], b = l.caretPos; 1464 if (h.forEach((function(e, t) { 1465 if (void 0 !== e) { 1466 var a = new d.Event("_checkval"); 1467 a.keyCode = e.toString().charCodeAt(0), v += e; 1468 var n = o.getLastValidPosition.call(l, void 0, !0); 1469 !function(e, t) { 1470 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--; 1471 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))); 1472 if (!n && a > 0 && !o.isMask.call(l, e, !1, !0)) { 1473 var s = o.seekNext.call(l, e); 1474 l.caretPos.begin < s && (l.caretPos = { 1475 begin: s 1476 }); 1477 } 1478 return n; 1479 }(m, v) ? (g = u.EventHandlers.keypressEvent.call(l, a, !0, !1, i, l.caretPos.begin)) && (m = l.caretPos.begin + 1, 1480 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), 1481 l.isRTL || (g.forwardPosition = g.pos + 1)), p.call(l, void 0, o.getBuffer.call(l), g.forwardPosition, a, !1), 1482 l.caretPos = { 1483 begin: g.forwardPosition, 1484 end: g.forwardPosition 1485 }, 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; 1486 } 1487 })), y.length > 0) { 1488 var x, P, E = o.seekNext.call(l, -1, void 0, !1); 1489 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()); ) { 1490 var w = new d.Event("_checkval"); 1491 if ((P = c.validPositions[x]).generatedInput = !0, w.keyCode = P.input.charCodeAt(0), 1492 (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; 1493 S++; 1494 } 1495 } 1496 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)), 1497 f.skipOptionalPartCharacter = k; 1498 } 1499 function p(e, t, i, a, r) { 1500 var l = e ? e.inputmask : this, u = l.opts, c = l.dependencyLib; 1501 if (a && "function" == typeof u.onBeforeWrite) { 1502 var f = u.onBeforeWrite.call(l, a, t, i, u); 1503 if (f) { 1504 if (f.refreshFromBuffer) { 1505 var d = f.refreshFromBuffer; 1506 s.refreshFromBuffer.call(l, !0 === d ? d : d.start, d.end, f.buffer || t), t = o.getBuffer.call(l, !0); 1507 } 1508 void 0 !== i && (i = void 0 !== f.caret ? f.caret : i); 1509 } 1510 } 1511 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)), 1512 !0 === r)) { 1513 var p = c(e), h = e.inputmask._valueGet(); 1514 e.inputmask.skipInputEvent = !0, p.trigger("input"), setTimeout((function() { 1515 h === o.getBufferTemplate.call(l).join("") ? p.trigger("cleared") : !0 === s.isComplete.call(l, t) && p.trigger("complete"); 1516 }), 0); 1517 } 1518 } 1519 }, 1520 2394: function(e, t, i) { 1521 Object.defineProperty(t, "__esModule", { 1522 value: !0 1523 }), t.default = void 0, i(7149), i(3194); 1524 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)); 1525 function v(e) { 1526 return v = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(e) { 1527 return typeof e; 1528 } : function(e) { 1529 return e && "function" == typeof Symbol && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e; 1530 }, v(e); 1531 } 1532 function m(e) { 1533 return e && e.__esModule ? e : { 1534 default: e 1535 }; 1536 } 1537 var g = r.default.document, k = "_inputmask_opts"; 1538 function y(e, t, i) { 1539 if (h.default) { 1540 if (!(this instanceof y)) return new y(e, t, i); 1541 this.dependencyLib = n.default, this.el = void 0, this.events = {}, this.maskset = void 0, 1542 !0 !== i && ("[object Object]" === Object.prototype.toString.call(e) ? t = e : (t = t || {}, 1543 e && (t.alias = e)), this.opts = n.default.extend(!0, {}, this.defaults, t), this.noMasksCache = t && void 0 !== t.definitions, 1544 this.userOptions = t || {}, b(this.opts.alias, t, this.opts)), this.refreshValue = !1, 1545 this.undoValue = void 0, this.$el = void 0, this.skipKeyPressEvent = !1, this.skipInputEvent = !1, 1546 this.validationEvent = !1, this.ignorable = !1, this.maxLength, this.mouseEnter = !1, 1547 this.originalPlaceholder = void 0, this.isComposing = !1; 1548 } 1549 } 1550 function b(e, t, i) { 1551 var a = y.prototype.aliases[e]; 1552 return a ? (a.alias && b(a.alias, void 0, i), n.default.extend(!0, i, a), n.default.extend(!0, i, t), 1553 !0) : (null === i.mask && (i.mask = e), !1); 1554 } 1555 y.prototype = { 1556 dataAttribute: "data-inputmask", 1557 defaults: p.default, 1558 definitions: d.default, 1559 aliases: {}, 1560 masksCache: {}, 1561 get isRTL() { 1562 return this.opts.isRTL || this.opts.numericInput; 1563 }, 1564 mask: function(e) { 1565 var t = this; 1566 return "string" == typeof e && (e = g.getElementById(e) || g.querySelectorAll(e)), 1567 (e = e.nodeName ? [ e ] : Array.isArray(e) ? e : [].slice.call(e)).forEach((function(e, i) { 1568 var s = n.default.extend(!0, {}, t.opts); 1569 if (function(e, t, i, a) { 1570 function o(t, n) { 1571 var o = "" === a ? t : a + "-" + t; 1572 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)), 1573 i[t] = n); 1574 } 1575 if (!0 === t.importDataAttributes) { 1576 var s, l, u, c, f = e.getAttribute(a); 1577 if (f && "" !== f && (f = f.replace(/'/g, '"'), l = JSON.parse("{" + f + "}")), 1578 l) for (c in u = void 0, l) if ("alias" === c.toLowerCase()) { 1579 u = l[c]; 1580 break; 1581 } 1582 for (s in o("alias", u), i.alias && b(i.alias, i, t), t) { 1583 if (l) for (c in u = void 0, l) if (c.toLowerCase() === s.toLowerCase()) { 1584 u = l[c]; 1585 break; 1586 } 1587 o(s, u); 1588 } 1589 } 1590 n.default.extend(!0, t, i), ("rtl" === e.dir || t.rightAlign) && (e.style.textAlign = "right"); 1591 ("rtl" === e.dir || t.numericInput) && (e.dir = "ltr", e.removeAttribute("dir"), 1592 t.isRTL = !0); 1593 return Object.keys(i).length; 1594 }(e, s, n.default.extend(!0, {}, t.userOptions), t.dataAttribute)) { 1595 var l = (0, o.generateMaskSet)(s, t.noMasksCache); 1596 void 0 !== l && (void 0 !== e.inputmask && (e.inputmask.opts.autoUnmask = !0, e.inputmask.remove()), 1597 e.inputmask = new y(void 0, void 0, !0), e.inputmask.opts = s, e.inputmask.noMasksCache = t.noMasksCache, 1598 e.inputmask.userOptions = n.default.extend(!0, {}, t.userOptions), e.inputmask.el = e, 1599 e.inputmask.$el = (0, n.default)(e), e.inputmask.maskset = l, n.default.data(e, k, t.userOptions), 1600 a.mask.call(e.inputmask)); 1601 } 1602 })), e && e[0] && e[0].inputmask || this; 1603 }, 1604 option: function(e, t) { 1605 return "string" == typeof e ? this.opts[e] : "object" === v(e) ? (n.default.extend(this.userOptions, e), 1606 this.el && !0 !== t && this.mask(this.el), this) : void 0; 1607 }, 1608 unmaskedvalue: function(e) { 1609 if (this.maskset = this.maskset || (0, o.generateMaskSet)(this.opts, this.noMasksCache), 1610 void 0 === this.el || void 0 !== e) { 1611 var t = ("function" == typeof this.opts.onBeforeMask && this.opts.onBeforeMask.call(this, e, this.opts) || e).split(""); 1612 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); 1613 } 1614 return c.unmaskedvalue.call(this, this.el); 1615 }, 1616 remove: function() { 1617 if (this.el) { 1618 n.default.data(this.el, k, null); 1619 var e = this.opts.autoUnmask ? (0, c.unmaskedvalue)(this.el) : this._valueGet(this.opts.autoUnmask); 1620 e !== l.getBufferTemplate.call(this).join("") ? this._valueSet(e, this.opts.autoUnmask) : this._valueSet(""), 1621 f.EventRuler.off(this.el), Object.getOwnPropertyDescriptor && Ob
1621ject.getPrototypeOf ? Object.getOwnPropertyDescriptor(Object.getPrototypeOf(this.el), "value") && this.__valueGet && Object.defineProperty(this.el, "value", { 1622 get: this.__valueGet, 1623 set: this.__valueSet, 1624 configurable: !0 1625 }) : g.__lookupGetter__ && this.el.__lookupGetter__("value") && this.__valueGet && (this.el.__defineGetter__("value", this.__valueGet), 1626 this.el.__defineSetter__("value", this.__valueSet)), this.el.inputmask = void 0; 1627 } 1628 return this.el; 1629 }, 1630 getemptymask: function() { 1631 return this.maskset = this.maskset || (0, o.generateMaskSet)(this.opts, this.noMasksCache), 1632 (this.isRTL ? l.getBufferTemplate.call(this).reverse() : l.getBufferTemplate.call(this)).join(""); 1633 }, 1634 hasMaskedValue: function() { 1635 return !this.opts.autoUnmask; 1636 }, 1637 isComplete: function() { 1638 return this.maskset = this.maskset || (0, o.generateMaskSet)(this.opts, this.noMasksCache), 1639 u.isComplete.call(this, l.getBuffer.call(this)); 1640 }, 1641 getmetadata: function() { 1642 if (this.maskset = this.maskset || (0, o.generateMaskSet)(this.opts, this.noMasksCache), 1643 Array.isArray(this.maskset.metadata)) { 1644 var e = s.getMaskTemplate.call(this, !0, 0, !1).join(""); 1645 return this.maskset.metadata.forEach((function(t) { 1646 return t.mask !== e || (e = t, !1); 1647 })), e; 1648 } 1649 return this.maskset.metadata; 1650 }, 1651 isValid: function(e) { 1652 if (this.maskset = this.maskset || (0, o.generateMaskSet)(this.opts, this.noMasksCache), 1653 e) { 1654 var t = ("function" == typeof this.opts.onBeforeMask && this.opts.onBeforeMask.call(this, e, this.opts) || e).split(""); 1655 c.checkVal.call(this, void 0, !0, !1, t); 1656 } else e = this.isRTL ? l.getBuffer.call(this).slice().reverse().join("") : l.getBuffer.call(this).join(""); 1657 for (var i = l.getBuffer.call(this), a = l.determineLastRequiredPosition.call(this), n = i.length - 1; n > a && !l.isMask.call(this, n); n--) ; 1658 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("")); 1659 }, 1660 format: function(e, t) { 1661 this.maskset = this.maskset || (0, o.generateMaskSet)(this.opts, this.noMasksCache); 1662 var i = ("function" == typeof this.opts.onBeforeMask && this.opts.onBeforeMask.call(this, e, this.opts) || e).split(""); 1663 c.checkVal.call(this, void 0, !0, !1, i); 1664 var a = this.isRTL ? l.getBuffer.call(this).slice().reverse().join("") : l.getBuffer.call(this).join(""); 1665 return t ? { 1666 value: a, 1667 metadata: this.getmetadata() 1668 } : a; 1669 }, 1670 setValue: function(e) { 1671 this.el && (0, n.default)(this.el).trigger("setvalue", [ e ]); 1672 }, 1673 analyseMask: o.analyseMask 1674 }, y.extendDefaults = function(e) { 1675 n.default.extend(!0, y.prototype.defaults, e); 1676 }, y.extendDefinitions = function(e) { 1677 n.default.extend(!0, y.prototype.definitions, e); 1678 }, y.extendAliases = function(e) { 1679 n.default.extend(!0, y.prototype.aliases, e); 1680 }, y.format = function(e, t, i) { 1681 return y(t).format(e, i); 1682 }, y.unmask = function(e, t) { 1683 return y(t).unmaskedvalue(e); 1684 }, y.isValid = function(e, t) { 1685 return y(t).isValid(e); 1686 }, y.remove = function(e) { 1687 "string" == typeof e && (e = g.getElementById(e) || g.querySelectorAll(e)), (e = e.nodeName ? [ e ] : e).forEach((function(e) { 1688 e.inputmask && e.inputmask.remove(); 1689 })); 1690 }, y.setValue = function(e, t) { 1691 "string" == typeof e && (e = g.getElementById(e) || g.querySelectorAll(e)), (e = e.nodeName ? [ e ] : e).forEach((function(e) {
1692 e.inputmask ? e.inputmask.setValue(t) : (0, n.default)(e).trigger("setvalue", [ t ]); 1693 })); 1694 }, y.dependencyLib = n.default, r.default.Inputmask = y; 1695 var x = y; 1696 t.default = x; 1697 }, 1698 5296: function(e, t, i) { 1699 function a(e) { 1700 return a = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(e) { 1701 return typeof e; 1702 } : function(e) { 1703 return e && "function" == typeof Symbol && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e; 1704 }, a(e); 1705 } 1706 var n = h(i(9380)), r = h(i(2394)), o = h(i(8741)); 1707 function s(e, t) { 1708 for (var i = 0; i < t.length; i++) { 1709 var a = t[i]; 1710 a.enumerable = a.enumerable || !1, a.configurable = !0, "value" in a && (a.writable = !0), 1711 Object.defineProperty(e, a.key, a); 1712 } 1713 } 1714 function l(e, t) { 1715 if (t && ("object" === a(t) || "function" == typeof t)) return t; 1716 if (void 0 !== t) throw new TypeError("Derived constructors may only return object or undefined"); 1717 return function(e) { 1718 if (void 0 === e) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); 1719 return e; 1720 }(e); 1721 } 1722 function u(e) { 1723 var t = "function" == typeof Map ? new Map : void 0; 1724 return u = function(e) { 1725 if (null === e || (i = e, -1 === Function.toString.call(i).indexOf("[native code]"))) return e; 1726 var i; 1727 if ("function" != typeof e) throw new TypeError("Super expression must either be null or a function"); 1728 if (void 0 !== t) { 1729 if (t.has(e)) return t.get(e); 1730 t.set(e, a); 1731 } 1732 function a() { 1733 return c(e, arguments, p(this).constructor); 1734 } 1735 return a.prototype = Object.create(e.prototype, { 1736 constructor: { 1737 value: a, 1738 enumerable: !1, 1739 writable: !0, 1740 configurable: !0 1741 } 1742 }), d(a, e); 1743 }, u(e); 1744 } 1745 function c(e, t, i) { 1746 return c = f() ? Reflect.construct : function(e, t, i) { 1747 var a = [ null ]; 1748 a.push.apply(a, t); 1749 var n = new (Function.bind.apply(e, a)); 1750 return i && d(n, i.prototype), n; 1751 }, c.apply(null, arguments); 1752 } 1753 function f() { 1754 if ("undefined" == typeof Reflect || !Reflect.construct) return !1; 1755 if (Reflect.construct.sham) return !1; 1756 if ("function" == typeof Proxy) return !0; 1757 try { 1758 return Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], (function() {}))), 1759 !0; 1760 } catch (e) { 1761 return !1; 1762 } 1763 } 1764 function d(e, t) { 1765 return d = Object.setPrototypeOf || function(e, t) { 1766 return e.__proto__ = t, e; 1767 }, d(e, t); 1768 } 1769 function p(e) { 1770 return p = Object.setPrototypeOf ? Object.getPrototypeOf : function(e) { 1771 return e.__proto__ || Object.getPrototypeOf(e); 1772 }, p(e); 1773 } 1774 function h(e) {
1775 return e && e.__esModule ? e : { 1776 default: e 1777 }; 1778 } 1779 var v = n.default.document; 1780 if (o.default && v && v.head && v.head.attachShadow && n.default.customElements && void 0 === n.default.customElements.get("input-mask")) { 1781 var m = function(e) { 1782 !function(e, t) { 1783 if ("function" != typeof t && null !== t) throw new TypeError("Super expression must either be null or a function"); 1784 e.prototype = Object.create(t && t.prototype, { 1785 constructor: { 1786 value: e, 1787 writable: !0, 1788 configurable: !0 1789 } 1790 }), Object.defineProperty(e, "prototype", { 1791 writable: !1 1792 }), t && d(e, t); 1793 }(c, e); 1794 var t, i, a, n, o, u = (t = c, i = f(), function() { 1795 var e, a = p(t); 1796 if (i) { 1797 var n = p(this).constructor; 1798 e = Reflect.construct(a, arguments, n); 1799 } else e = a.apply(this, arguments); 1800 return l(this, e); 1801 }); 1802 function c() { 1803 var e; 1804 !function(e, t) { 1805 if (!(e instanceof t)) throw new TypeError("Cannot call a class as a function"); 1806 }(this, c); 1807 var t = (e = u.call(this)).getAttributeNames(), i = e.attachShadow({ 1808 mode: "closed" 1809 }), a = v.createElement("input"); 1810 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])); 1811 var o = new r.default; 1812 return o.dataAttribute = "", o.mask(a), a.inputmask.shadowRoot = i, e; 1813 } 1814 return a = c, n && s(a.prototype, n), o && s(a, o), Object.defineProperty(a, "prototype", { 1815 writable: !1 1816 }), a; 1817 }(u(HTMLElement)); 1818 n.default.customElements.define("input-mask", m); 1819 } 1820 }, 1821 443: function(e, t, i) { 1822 var a = o(i(7957)), n = o(i(2394)); 1823 function r(e) { 1824 return r = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(e) { 1825 return typeof e; 1826 } : function(e) { 1827 return e && "function" == typeof Symbol && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e; 1828 }, r(e); 1829 } 1830 function o(e) { 1831 return e && e.__esModule ? e : { 1832 default: e 1833 }; 1834 } 1835 void 0 === a.default.fn.inputmask && (a.default.fn.inputmask = function(e, t) { 1836 var i, o = this[0]; 1837 if (void 0 === t && (t = {}), "string" == typeof e) switch (e) { 1838 case "unmaskedvalue": 1839 return o && o.inputmask ? o.inputmask.unmaskedvalue() : (0, a.default)(o).val(); 1840 1841 case "remove": 1842 return this.each((function() { 1843 this.inputmask && this.inputmask.remove(); 1844 })); 1845 1846 case "getemptymask": 1847 return o && o.inputmask ? o.inputmask.getemptymask() : ""; 1848 1849 case "hasMaskedValue": 1850 return !(!o || !o.inputmask) && o.inputmask.hasMaskedValue(); 1851 1852 case "isComplete": 1853 return !o || !o.inputmask || o.inputmask.isComplete(); 1854 1855 case "getmetadata": 1856 return o && o.inputmask ? o.inputmask.getmetadata() : void 0; 1857 1858 case "setvalue": 1859 n.default.setValue(o, t); 1860 break; 1861 1862 case "option": 1863 if ("string" != typeof t) return this.each((function() { 1864 if (void 0 !== this.inputmask) return this.inputmask.option(t); 1865 })); 1866 if (o && void 0 !== o.inputmask) return o.inputmask.option(t); 1867 break; 1868 1869 default: 1870 return t.alias = e, i = new n.default(t), this.each((function() { 1871 i.mask(this); 1872 })); 1873 } else { 1874 if (Array.isArray(e)) return t.alias = e, i = new n.default(t), this.each((function() { 1875 i.mask(this); 1876 })); 1877 if ("object" == r(e)) return i = new n.default(e), void 0 === e.mask && void 0 === e.alias ? this.each((function() { 1878 if (void 0 !== this.inputmask) return this.inputmask.option(e); 1879 i.mask(this); 1880 })) : this.each((function() { 1881 i.mask(this); 1882 })); 1883 if (void 0 === e) return this.each((function() { 1884 (i = new n.default(t)).mask(this); 1885 })); 1886 } 1887 }); 1888 }, 1889 2391: function(e, t, i) { 1890 Object.defineProperty(t, "__esModule", { 1891 value: !0 1892 }), t.analyseMask = function(e, t, i) { 1893 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; 1894 function k(e, a, n) { 1895 n = void 0 !== n ? n : e.matches.length; 1896 var o = e.matches[n - 1]; 1897 if (t) 0 === a.indexOf("[") || p && /\\d|\\s|\\w/i.test(a) || "." === a ? e.matches.splice(n++, 0, { 1898 fn: new RegExp(a, i.casing ? "i" : ""), 1899 static: !1, 1900 optionality: !1, 1901 newBlockMarker: void 0 === o ? "master" : o.def !== a, 1902 casing: null, 1903 def: a, 1904 placeholder: void 0, 1905 nativeDef: a 1906 }) : (p && (a = a[a.length - 1]), a.split("").forEach((function(t, a) { 1907 o = e.matches[n - 1], e.matches.splice(n++, 0, { 1908 fn: /[a-z]/i.test(i.staticDefinitionSymbol || t) ? new RegExp("[" + (i.staticDefinitionSymbol || t) + "]", i.casing ? "i" : "") : null, 1909 static: !0, 1910 optionality: !1, 1911 newBlockMarker: void 0 === o ? "master" : o.def !== t && !0 !== o.static, 1912 casing: null, 1913 def: i.staticDefinitionSymbol || t, 1914 placeholder: void 0 !== i.staticDefinitionSymbol ? t : void 0, 1915 nativeDef: (p ? "'" : "") + t 1916 }); 1917 }))), p = !1; else { 1918 var s = i.definitions && i.definitions[a] || i.usePrototypeDefinitions && r.default.prototype.definitions[a]; 1919 s && !p ? e.matches.splice(n++, 0, { 1920 fn: s.validator ? "string" == typeof s.validator ? new RegExp(s.validator, i.casing ? "i" : "") : new function() { 1921 this.test = s.validator; 1922 } : new RegExp("."), 1923 static: s.static || !1, 1924 optionality: s.optional || !1, 1925 defOptionality: s.optional || !1, 1926 newBlockMarker: void 0 === o || s.optional ? "master" : o.def !== (s.definitionSymbol || a), 1927 casing: s.casing, 1928 def: s.definitionSymbol || a, 1929 placeholder: s.placeholder, 1930 nativeDef: a, 1931 generated: s.generated 1932 }) : (e.matches.splice(n++, 0, { 1933 fn: /[a-z]/i.test(i.staticDefinitionSymbol || a) ? new RegExp("[" + (i.staticDefinitionSymbol || a) + "]", i.casing ? "i" : "") : null, 1934 static: !0, 1935 optionality: !1, 1936 newBlockMarker: void 0 === o ? "master" : o.def !== a && !0 !== o.static, 1937 casing: null, 1938 def: i.staticDefinitionSymbol || a, 1939 placeholder: void 0 !== i.staticDefinitionSymbol ? a : void 0, 1940 nativeDef: (p ? "'" : "") + a 1941 }), p = !1); 1942 } 1943 } 1944 function y() { 1945 if (v.length > 0) { 1946 if (k(l = v[v.length - 1], o), l.isAlternator) { 1947 u = v.pop(); 1948 for (var e = 0; e < u.matches.length; e++) u.matches[e].isGroup && (u.matches[e].isGroup = !1); 1949 v.length > 0 ? (l = v[v.length - 1]).matches.push(u) : h.matches.push(u); 1950 } 1951 } else k(h, o); 1952 } 1953 function b(e) { 1954 var t = new n.default(!0); 1955 return t.openGroup = !1, t.matches = e, t; 1956 } 1957 function x() { 1958 if ((s = v.pop()).openGroup = !1, void 0 !== s) if (v.length > 0) { 1959 if ((l = v[v.length - 1]).matches.push(s), l.isAlternator) { 1960 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, 1961 u.matches[t].alternatorGroup = !1, null === i.keepStatic && e < (u.matches[t].matches ? u.matches[t].matches.length : 1) && (i.keepStatic = !0), 1962 e = u.matches[t].matches ? u.matches[t].matches.length : 1; 1963 v.length > 0 ? (l = v[v.length - 1]).matches.push(u) : h.matches.push(u); 1964 } 1965 } else h.matches.push(s); else y(); 1966 } 1967 function P(e) { 1968 var t = e.pop(); 1969 return t.isQuantifier && (t = b([ e.pop(), t ])), t; 1970 } 1971 t && (i.optionalmarker[0] = void 0, i.optionalmarker[1] = void 0); 1972 for (;a = t ? d.exec(e) : f.exec(e); ) { 1973 if (o = a[0], t) { 1974 switch (o.charAt(0)) { 1975 case "?": 1976 o = "{0,1}"; 1977 break; 1978 1979 case "+": 1980 case "*": 1981 o = "{" + o + "}"; 1982 break; 1983 1984 case "|": 1985 if (0 === v.length) { 1986 var E = b(h.matches); 1987 E.openGroup = !0, v.push(E), h.matches = [], g = !0; 1988 } 1989 } 1990 if ("\\d" === o) o = "[0-9]"; 1991 } 1992 if (p) y(); else switch (o.charAt(0)) { 1993 case "$": 1994 case "^": 1995 t || y(); 1996 break; 1997 1998 case i.escapeChar: 1999 p = !0, t && y(); 2000 break; 2001 2002 case i.optionalmarker[1]: 2003 case i.groupmarker[1]: 2004 x(); 2005 break; 2006 2007 case i.optionalmarker[0]: 2008 v.push(new n.default(!1, !0)); 2009 break; 2010 2011 case i.groupmarker[0]: 2012 v.push(new n.default(!0)); 2013 break; 2014 2015 case i.quantifiermarker[0]: 2016 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]); 2017 "*" !== M && "+" !== M || (M = "*" === O ? 0 : 1), S.quantifier = { 2018 min: M, 2019 max: O, 2020 jit: T 2021 }; 2022 var A = v.length > 0 ? v[v.length - 1].matches : h.matches; 2023 if ((a = A.pop()).isAlternator) { 2024 A.push(a), A = a.matches; 2025 var C = new n.default(!0), D = A.pop(); 2026 A.push(C), A = C.matches, a = D; 2027 } 2028 a.isGroup || (a = b([ a ])), A.push(a), A.push(S); 2029 break; 2030 2031 case i.alternatormarker: 2032 if (v.length > 0) { 2033 var j = (l = v[v.length - 1]).matches[l.matches.length - 1]; 2034 c = l.openGroup && (void 0 === j.matches || !1 === j.isGroup && !1 === j.isAlternator) ? v.pop() : P(l.matches); 2035 } else c = P(h.matches); 2036 if (c.isAlternator) v.push(c); else if (c.alternatorGroup ? (u = v.pop(), c.alternatorGroup = !1) : u = new n.default(!1, !1, !1, !0), 2037 u.matches.push(c), v.push(u), c.openGroup) { 2038 c.openGroup = !1; 2039 var B = new n.default(!0); 2040 B.alternatorGroup = !0, v.push(B); 2041 } 2042 break; 2043 2044 default: 2045 y(); 2046 } 2047 } 2048 g && x(); 2049 for (;v.length > 0; ) s = v.pop(), h.matches.push(s); 2050 h.matches.length > 0 && (!function e(a) {
2051 a && a.matches && a.matches.forEach((function(n, r) { 2052 var o = a.matches[r + 1]; 2053 (void 0 === o || void 0 === o.matches || !1 === o.isQuantifier) && n && n.isGroup && (n.isGroup = !1, 2054 t || (k(n, i.groupmarker[0], 0), !0 !== n.openGroup && k(n, i.groupmarker[1]))), 2055 e(n); 2056 })); 2057 }(h), m.push(h)); 2058 (i.numericInput || i.isRTL) && function e(t) { 2059 for (var a in t.matches = t.matches.reverse(), t.matches) if (Object.prototype.hasOwnProperty.call(t.matches, a)) { 2060 var n = parseInt(a); 2061 if (t.matches[a].isQuantifier && t.matches[n + 1] && t.matches[n + 1].isGroup) { 2062 var r = t.matches[a]; 2063 t.matches.splice(a, 1), t.matches.splice(n + 1, 0, r); 2064 } 2065 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]), 2066 o); 2067 } 2068 var o; 2069 return t; 2070 }(m[0]); 2071 return m; 2072 }, t.generateMaskSet = function(e, t) { 2073 var i; 2074 function n(e, i, n) { 2075 var s, l, u = !1; 2076 return null !== e && "" !== e || ((u = null !== n.regex) ? e = (e = n.regex).replace(/^(\^)(.*)(\$)$/, "$2") : (u = !0, 2077 e = ".*")), 1 === e.length && !1 === n.greedy && 0 !== n.repeat && (n.placeholder = ""), 2078 e = function(e, t) { 2079 if (t.repeat > 0 || "*" === t.repeat || "+" === t.repeat) { 2080 var i = "*" === t.repeat ? 0 : "+" === t.repeat ? 1 : t.repeat; 2081 e = t.groupmarker[0] + e + t.groupmarker[1] + t.quantifiermarker[0] + i + "," + t.repeat + t.quantifiermarker[1]; 2082 } 2083 if (!0 === t.keepStatic) { 2084 var a = e.match(new RegExp("(?<p1>.)\\[(?<p2>[^\\]]*)\\]", "g")); 2085 a && a.forEach((function(t, i) { 2086 var a = t.split("["), n = a[0], r = a[1].replace("]", ""); 2087 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, "]")); 2088 })); 2089 } 2090 return e; 2091 }(e, n), l = u ? "regex_" + n.regex : n.numericInput ? e.split("").reverse().join("") : e, 2092 null !== n.keepStatic && (l = "ks_" + n.keepStatic + l), void 0 === r.default.prototype.masksCache[l] || !0 === t ? (s = { 2093 mask: e, 2094 maskToken: r.default.prototype.analyseMask(e, u, n), 2095 validPositions: {}, 2096 _buffer: void 0, 2097 buffer: void 0, 2098 tests: {}, 2099 excludes: {}, 2100 metadata: i, 2101 maskLength: void 0, 2102 jitOffset: {} 2103 }, !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]), 2104 s; 2105 } 2106 "function" == typeof e.mask && (e.mask = e.mask(e)); 2107 if (Array.isArray(e.mask)) { 2108 if (e.mask.length > 1) { 2109 null === e.keepStatic && (e.keepStatic = !0); 2110 var s = e.groupmarker[0]; 2111 return (e.isRTL ? e.mask.reverse() : e.mask).forEac
vendor: 12,964 bytes, lines 2111-2287
2111h((function(t) { 2112 s.length > 1 && (s += e.alternatormarker), void 0 !== t.mask && "function" != typeof t.mask ? s += t.mask : s += t; 2113 })), n(s += e.groupmarker[1], e.mask, e); 2114 } 2115 e.mask = e.mask.pop(); 2116 } 2117 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); 2118 null === e.keepStatic && (e.keepStatic = !1); 2119 return i; 2120 }; 2121 var a = s(i(3287)), n = s(i(9695)), r = s(i(2394)), o = s(i(7184)); 2122 function s(e) { 2123 return e && e.__esModule ? e : { 2124 default: e 2125 }; 2126 } 2127 }, 2128 157: function(e, t, i) { 2129 Object.defineProperty(t, "__esModule", { 2130 value: !0 2131 }), t.mask = function() { 2132 var e = this, t = this.opts, i = this.el, a = this.dependencyLib; 2133 s.EventRuler.off(i); 2134 var f = function(t, i) { 2135 "textarea" !== t.tagName.toLowerCase() && i.ignorables.push(n.default.ENTER); 2136 var l = t.getAttribute("type"), u = "input" === t.tagName.toLowerCase() && i.supportsInputType.includes(l) || t.isContentEditable || "textarea" === t.tagName.toLowerCase(); 2137 if (!u) if ("input" === t.tagName.toLowerCase()) { 2138 var c = document.createElement("input"); 2139 c.setAttribute("type", l), u = "text" === c.type, c = null; 2140 } else u = "partial"; 2141 return !1 !== u ? function(t) { 2142 var n, l; 2143 function u() { 2144 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); 2145 } 2146 function c(e) { 2147 l.call(this, e), this.inputmask && (0, o.applyInputValue)(this, e); 2148 } 2149 if (!t.inputmask.__valueGet) { 2150 if (!0 !== i.noValuePatching) { 2151 if (Object.getOwnPropertyDescriptor) { 2152 var f = Object.getPrototypeOf ? Object.getOwnPropertyDescriptor(Object.getPrototypeOf(t), "value") : void 0; 2153 f && f.get && f.set ? (n = f.get, l = f.set, Object.defineProperty(t, "value", { 2154 get: u, 2155 set: c, 2156 configurable: !0 2157 })) : "input" !== t.tagName.toLowerCase() && (n = function() { 2158 return this.textContent; 2159 }, l = function(e) { 2160 this.textContent = e; 2161 }, Object.defineProperty(t, "value", { 2162 get: u, 2163 set: c, 2164 configurable: !0 2165 })); 2166 } else document.__lookupGetter__ && t.__lookupGetter__("value") && (n = t.__lookupGetter__("value"), 2167 l = t.__lookupSetter__("value"), t.__defineGetter__("value", u), t.__defineSetter__("value", c)); 2168 t.inputmask.__valueGet = n, t.inputmask.__valueSet = l; 2169 } 2170 t.inputmask._valueGet = function(t) { 2171 return e.isRTL && !0 !== t ? n.call(this.el).split("").reverse().join("") : n.call(this.el); 2172 }, t.inputmask._valueSet = function(t, i) { 2173 l.call(this.el, null == t ? "" : !0 !== i && e.isRTL ? t.split("").reverse().join("") : t); 2174 }, void 0 === n && (n = function() { 2175 return this.value; 2176 }, l = function(e) { 2177 this.value = e; 2178 }, function(t) { 2179 if (a.valHooks && (void 0 === a.valHooks[t] || !0 !== a.valHooks[t].inputmaskpatch)) { 2180 var n = a.valHooks[t] && a.valHooks[t].get ? a.valHooks[t].get : function(e) { 2181 return e.value; 2182 }, s = a.valHooks[t] && a.valHooks[t].set ? a.valHooks[t].set : function(e, t) { 2183 return e.value = t, e; 2184 }; 2185 a.valHooks[t] = { 2186 get: function(t) { 2187 if (t.inputmask) { 2188 if (t.inputmask.opts.autoUnmask) return t.inputmask.unmaskedvalue(); 2189 var a = n(t); 2190 return -1 !== r.getLastValidPosition.call(e, void 0, void 0, t.inputmask.maskset.validPositions) || !0 !== i.nullable ? a : ""; 2191 } 2192 return n(t); 2193 }, 2194 set: function(e, t) { 2195 var i = s(e, t); 2196 return e.inputmask && (0, o.applyInputValue)(e, t), i; 2197 }, 2198 inputmaskpatch: !0 2199 }; 2200 } 2201 }(t.type), function(t) { 2202 s.EventRuler.on(t, "mouseenter", (function() { 2203 var t = this.inputmask._valueGet(!0); 2204 t !== (e.isRTL ? r.getBuffer.call(e).reverse() : r.getBuffer.call(e)).join("") && (0, 2205 o.applyInputValue)(this, t); 2206 })); 2207 }(t)); 2208 } 2209 }(t) : t.inputmask = void 0, u; 2210 }(i, t); 2211 if (!1 !== f) { 2212 e.originalPlaceholder = i.placeholder, e.maxLength = void 0 !== i ? i.maxLength : void 0, 2213 -1 === e.maxLength && (e.maxLength = void 0), "inputMode" in i && null === i.getAttribute("inputmode") && (i.inputMode = t.inputmode, 2214 i.setAttribute("inputmode", t.inputmode)), !0 === f && (t.showMaskOnFocus = t.showMaskOnFocus && -1 === [ "cc-number", "cc-exp" ].indexOf(i.autocomplete), 2215 l.iphone && (t.insertModeVisual = !1, i.setAttribute("autocorrect", "off")), s.EventRuler.on(i, "submit", c.EventHandlers.submitEvent), 2216 s.EventRuler.on(i, "reset", c.EventHandlers.resetEvent), s.EventRuler.on(i, "blur", c.EventHandlers.blurEvent), 2217 s.EventRuler.on(i, "focus", c.EventHandlers.focusEvent), s.EventRuler.on(i, "invalid", c.EventHandlers.invalidEvent), 2218 s.EventRuler.on(i, "click", c.EventHandlers.clickEvent), s.EventRuler.on(i, "mouseleave", c.EventHandlers.mouseleaveEvent), 2219 s.EventRuler.on(i, "mouseenter", c.EventHandlers.mouseenterEvent), s.EventRuler.on(i, "paste", c.EventHandlers.pasteEvent), 2220 s.EventRuler.on(i, "cut", c.EventHandlers.cutEvent), s.EventRuler.on(i, "complete", t.oncomplete), 2221 s.EventRuler.on(i, "incomplete", t.onincomplete), s.EventRuler.on(i, "cleared", t.oncleared), 2222 !0 !== t.inputEventOnly && (s.EventRuler.on(i, "keydown", c.EventHandlers.keydownEvent), 2223 s.EventRuler.on(i, "keypress", c.EventHandlers.keypressEvent), s.EventRuler.on(i, "keyup", c.EventHandlers.keyupEvent)), 2224 (l.mobile || t.inputEventOnly) && i.removeAttribute("maxLength"), s.EventRuler.on(i, "input", c.EventHandlers.inputFallBackEvent), 2225 s.EventRuler.on(i, "compositionend", c.EventHandlers.compositionendEvent)), s.EventRuler.on(i, "setvalue", c.EventHandlers.setValueEvent), 2226 r.getBufferTemplate.call(e).join(""), e.undoValue = e._valueGet(!0); 2227 var d = (i.inputmask.shadowRoot || i.ownerDocument).activeElement; 2228 if ("" !== i.inputmask._valueGet(!0) || !1 === t.clearMaskOnLostFocus || d === i) { 2229 (0, o.applyInputValue)(i, i.inputmask._valueGet(!0), t); 2230 var p = r.getBuffer.call(e).slice(); 2231 !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)), 2232 (!1 === t.clearMaskOnLostFocus || t.showMaskOnFocus && d === i || "" !== i.inputmask._valueGet(!0)) && (0, 2233 o.writeBuffer)(i, p), d === i && r.caret.call(e, i, r.seekNext.call(e, r.getLastValidPosition.call(e))); 2234 } 2235 } 2236 }; 2237 var a, n = (a = i(5581)) && a.__esModule ? a : { 2238 default: a 2239 }, r = i(8711), o = i(7760), s = i(9716), l = i(9845), u = i(7215), c = i(6030); 2240 }, 2241 9695: function(e, t) { 2242 Object.defineProperty(t, "__esModule", { 2243 value: !0 2244 }), t.default = function(e, t, i, a) { 2245 this.matches = [], this.openGroup = e || !1, this.alternatorGroup = !1, this.isGroup = e || !1, 2246 this.isOptional = t || !1, this.isQuantifier = i || !1, this.isAlternator = a || !1, 2247 this.quantifier = { 2248 min: 1, 2249 max: 1 2250 }; 2251 }; 2252 }, 2253 3194: function() { 2254 Array.prototype.includes || Object.defineProperty(Array.prototype, "includes", { 2255 value: function(e, t) { 2256 if (null == this) throw new TypeError('"this" is null or not defined'); 2257 var i = Object(this), a = i.length >>> 0; 2258 if (0 === a) return !1; 2259 for (var n = 0 | t, r = Math.max(n >= 0 ? n : a - Math.abs(n), 0); r < a; ) { 2260 if (i[r] === e) return !0; 2261 r++; 2262 } 2263 return !1; 2264 } 2265 }); 2266 }, 2267 7149: function() { 2268 function e(t) { 2269 return e = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(e) { 2270 return typeof e; 2271 } : function(e) { 2272 return e && "function" == typeof Symbol && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e; 2273 }, e(t); 2274 } 2275 "function" != typeof Object.getPrototypeOf && (Object.getPrototypeOf = "object" === e("test".__proto__) ? function(e) { 2276 return e.__proto__; 2277 } : function(e) { 2278 return e.constructor.prototype; 2279 }); 2280 }, 2281 8711: function(e, t, i) { 2282 Object.defineProperty(t, "__esModule", { 2283 value: !0 2284 }), t.caret = function(e, t, i, a, n) { 2285 var r, o = this, s = this.opts; 2286 if (void 0 === t) return "selectionStart" in e && "selectionEnd" in e ? (t = e.selectionStart, 2287 i = e.selectionEnd) : window.getSelection ? (r = window.getSelection().getRangeAt(0)).commonAncestorContainer.parentNode !== e && r.commonAncestorContainer !== e || (t = r.startOffset,
2288 i = r.endOffset) : document.selection && document.selection.createRange && (r = document.selection.createRange(), 2289 t = 0 - r.duplicate().moveStart("character", -e.inputmask._valueGet().length), i = t + r.text.length), 2290 { 2291 begin: a ? t : u.call(o, t), 2292 end: a ? i : u.call(o, i) 2293 }; 2294 if (Array.isArray(t) && (i = o.isRTL ? t[0] : t[1], t = o.isRTL ? t[1] : t[0]), 2295 void 0 !== t.begin && (i = o.isRTL ? t.begin : t.end, t = o.isRTL ? t.end : t.begin), 2296 "number" == typeof t) { 2297 t = a ? t : u.call(o, t), i = "number" == typeof (i = a ? i : u.call(o, i)) ? i : t; 2298 var l = parseInt(((e.ownerDocument.defaultView || window).getComputedStyle ? (e.ownerDocument.defaultView || window).getComputedStyle(e, null) : e.currentStyle).fontSize) * i; 2299 if (e.scrollLeft = l > e.scrollWidth ? l : 0, e.inputmask.caretPos = { 2300 begin: t, 2301 end: i 2302 }, 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) { 2303 if (r = document.createRange(), void 0 === e.firstChild || null === e.firstChild) { 2304 var c = document.createTextNode(""); 2305 e.appendChild(c); 2306 } 2307 r.setStart(e.firstChild, t < e.inputmask._valueGet().length ? t : e.inputmask._valueGet().length), 2308 r.setEnd(e.firstChild, i < e.inputmask._valueGet().length ? i : e.inputmask._valueGet().length), 2309 r.collapse(!0); 2310 var f = window.getSelection(); 2311 f.removeAllRanges(), f.addRange(r); 2312 } else e.createTextRange && ((r = e.createTextRange()).collapse(!0), r.moveEnd("character", i), 2313 r.moveStart("character", t), r.select()); 2314 } 2315 }, t.determineLastRequiredPosition = function(e) { 2316 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; 2317 for (t = f + 1; t < u.length; t++) i = a.getTestTemplate.call(r, t, h, t - 1), h = i.locator.slice(), 2318 d[t] = l.extend(!0, {}, i); 2319 var v = p && void 0 !== p.alternation ? p.locator[p.alternation] : void 0; 2320 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--; 2321 return e ? { 2322 l: c, 2323 def: d[c] ? d[c].match : void 0 2324 } : c; 2325 }, t.determineNewCaretPosition = function(e, t, i) { 2326 var n = this, u = this.maskset, c = this.opts; 2327 t && (n.isRTL ? e.end = e.begin : e.begin = e.end); 2328 if (e.begin === e.end) { 2329 switch (i = i || c.positionCaretOnClick) { 2330 case "none": 2331 break; 2332 2333 case "select": 2334 e = { 2335 begin: 0, 2336 end: r.call(n).length 2337 }; 2338 break; 2339 2340 case "ignore": 2341 e.end = e.begin = l.call(n, o.call(n)); 2342 break; 2343 2344 case "radixFocus": 2345 if (function(e) { 2346 if ("" !== c.radixPoint && 0 !== c.digits) { 2347 var t = u.validPositions; 2348 if (void 0 === t[e] || t[e].input === a.getPlaceholder.call(n, e)) { 2349 if (e < l.call(n, -1)) return !0; 2350 var i = r.call(n).indexOf(c.radixPoint); 2351 if (-1 !== i) { 2352 for (var o in t) if (t[o] && i < o && t[o].input !== a.getPlaceholder.call(n, o)) return !1; 2353 return !0; 2354 } 2355 } 2356 } 2357 return !1; 2358 }(e.begin)) { 2359 var f = r.call(n).join("").indexOf(c.radixPoint); 2360 e.end = e.begin = c.numericInput ? l.call(n, f) : f; 2361 break; 2362 } 2363 2364 default:
2365 var d = e.begin, p = o.call(n, d, !0), h = l.call(n, -1 !== p || s.call(n, 0) ? p : -1); 2366 if (d <= h) e.end = e.begin = s.call(n, d, !1, !0) ? d : l.call(n, d); else { 2367 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); 2368 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) { 2369 var k = l.call(n, h); 2370 (d >= k || d === h) && (h = k); 2371 } 2372 e.end = e.begin = h; 2373 } 2374 } 2375 return e; 2376 } 2377 }, t.getBuffer = r, t.getBufferTemplate = function() { 2378 var e = this.maskset; 2379 void 0 === e._buffer && (e._buffer = a.getMaskTemplate.call(this, !1, 1), void 0 === e.buffer && (e.buffer = e._buffer.slice())); 2380 return e._buffer; 2381 }, t.getLastValidPosition = o, t.isMask = s, t.resetMaskSet = function(e) { 2382 var t = this.maskset; 2383 t.buffer = void 0, !0 !== e && (t.validPositions = {}, t.p = 0); 2384 }, t.seekNext = l, t.seekPrevious = function(e, t) { 2385 var i = this, n = e - 1; 2386 if (e <= 0) return 0; 2387 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--; 2388 return n; 2389 }, t.translatePosition = u; 2390 var a = i(4713), n = i(7215); 2391 function r(e) { 2392 var t = this.maskset; 2393 return void 0 !== t.buffer && !0 !== e || (t.buffer = a.getMaskTemplate.call(this, !0, o.call(this), !0), 2394 void 0 === t._buffer && (t._buffer = t.buffer.slice())), t.buffer; 2395 } 2396 function o(e, t, i) { 2397 var a = this.maskset, n = -1, r = -1, o = i || a.validPositions; 2398 for (var s in void 0 === e && (e = -1), o) { 2399 var l = parseInt(s); 2400 o[l] && (t || !0 !== o[l].generatedInput) && (l <= e && (n = l), l >= e && (r = l)); 2401 } 2402 return -1 === n || n == e ? r : -1 == r || e - n < r - e ? n : r; 2403 } 2404 function s(e, t, i) { 2405 var n = this, r = this.maskset, o = a.getTestTemplate.call(n, e).match; 2406 if ("" === o.def && (o = a.getTest.call(n, e).match), !0 !== o.static) return o.fn; 2407 if (!0 === i && void 0 !== r.validPositions[e] && !0 !== r.validPositions[e].generatedInput) return !0; 2408 if (!0 !== t && e > -1) { 2409 if (i) { 2410 var s = a.getTests.call(n, e); 2411 return s.length > 1 + ("" === s[s.length - 1].match.def ? 1 : 0); 2412 } 2413 var l = a.determineTestTemplate.call(n, e, a.getTests.call(n, e)), u = a.getPlaceholder.call(n, e, l.match); 2414 return l.match.def !== u; 2415 } 2416 return !1; 2417 } 2418 function l(e, t, i) { 2419 var n = this; 2420 void 0 === i && (i = !0); 2421 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++; 2422 return r; 2423 } 2424 function u(e) { 2425 var t = this.opts, i = this.el; 2426 return !this.isRTL || "number" != typeof e || t.greedy && "" === t.placeholder || !i || (e = this._valueGet().length - e) < 0 && (e = 0), 2427 e; 2428 } 2429 }, 2430 4713: function(e, t, i) { 2431 Object.defineProperty(t, "__esModule", { 2432 value: !0 2433 }), t.determineTestTemplate = u, t.getDecisionTaker = o, t.getMaskTemplate = function(e, t, i, a, n) { 2434 var r = this, o = this.opts, c = this.maskset, f = o.greedy; 2435 n && o.greedy && (o.greedy = !1, r.maskset.tests = {}); 2436 t = t || 0; 2437 var p, h, v, m, g = [], k = 0; 2438 do { 2439 if (!0 === e && c.validPositions[k]) v = n && c.validPositions[k].match.optionality && void 0 === c.val
vendor: 13,889 bytes, lines 2439-2616
2439idPositions[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], 2440 h = v.match, p = v.locator.slice(), g.push(!0 === i ? v.input : !1 === i ? h.nativeDef : s.call(r, k, h)); else { 2441 v = l.call(r, k, p, k - 1), h = v.match, p = v.locator.slice(); 2442 var y = !0 !== a && (!1 !== o.jitMasking ? o.jitMasking : h.jit); 2443 (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; 2444 } 2445 k++; 2446 } while (!0 !== h.static || "" !== h.def || t > k); 2447 "" === g[g.length - 1] && g.pop(); 2448 !1 === i && void 0 !== c.maskLength || (c.maskLength = k - 1); 2449 return o.greedy = f, g; 2450 }, t.getPlaceholder = s, t.getTest = c, t.getTestTemplate = l, t.getTests = d, t.isSubsetOf = f; 2451 var a, n = (a = i(2394)) && a.__esModule ? a : { 2452 default: a 2453 }; 2454 function r(e, t) { 2455 var i = (null != e.alternation ? e.mloc[o(e)] : e.locator).join(""); 2456 if ("" !== i) for (;i.length < t; ) i += "0"; 2457 return i; 2458 } 2459 function o(e) { 2460 var t = e.locator[e.alternation]; 2461 return "string" == typeof t && t.length > 0 && (t = t.split(",")[0]), void 0 !== t ? t.toString() : ""; 2462 } 2463 function s(e, t, i) { 2464 var a = this.opts, n = this.maskset; 2465 if (void 0 !== (t = t || c.call(this, e).match).placeholder || !0 === i) return "function" == typeof t.placeholder ? t.placeholder(a) : t.placeholder; 2466 if (!0 === t.static) { 2467 if (e > -1 && void 0 === n.validPositions[e]) { 2468 var r, o = d.call(this, e), s = []; 2469 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]), 2470 !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); 2471 } 2472 return t.def; 2473 } 2474 return a.placeholder.charAt(e % a.placeholder.length); 2475 } 2476 function l(e, t, i) { 2477 return this.maskset.validPositions[e] || u.call(this, e, d.call(this, e, t ? t.slice() : t, i)); 2478 } 2479 function u(e, t) { 2480 var i = this.opts, a = function(e, t) { 2481 var i = 0, a = !1; 2482 t.forEach((function(e) { 2483 e.match.optionality && (0 !== i && i !== e.match.optionality && (a = !0), (0 === i || i > e.match.optionality) && (i = e.match.optionality)); 2484 })), i && (0 == e || 1 == t.length ? i = 0 : a || (i = 0)); 2485 return i; 2486 }(e, t); 2487 e = e > 0 ? e - 1 : 0; 2488 var n, o, s, l = r(c.call(this, e)); 2489 i.greedy && t.length > 1 && "" === t[t.length - 1].match.def && t.pop(); 2490 for (var u = 0; u < t.length; u++) { 2491 var f = t[u]; 2492 n = r(f, l.length); 2493 var d = Math.abs(n - l); 2494 (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, 2495 s = f); 2496 } 2497 return s; 2498 } 2499 function c(e, t) { 2500 var i = this.maskset; 2501 return i.validPositions[e] ? i.validPositions[e] : (t || d.call(this, e))[0]; 2502 } 2503 function f(e, t, i) { 2504 function a(e) { 2505 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), 2506 i.push(e.charAt(n)); 2507 return i.join(""); 2508 } 2509 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, ""))); 2510 } 2511 function d(e, t, i) { 2512 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("") : ""; 2513 function y(t, i, r, o) { 2514 function s(r, o, u) { 2515 function p(e, t) { 2516 var i = 0 === t.matches.indexOf(e); 2517 return i || t.matches.every((function(a, n) { 2518 return !0 === a.isQuantifier ? i = p(e, t.matches[n - 1]) : Object.prototype.hasOwnProperty.call(a, "matches") && (i = p(e, a)), 2519 !i; 2520 })), i; 2521 } 2522 function v(e, t, i) { 2523 var a, n; 2524 if ((l.tests[e] || l.validPositions[e]) && (l.tests[e] || [ l.validPositions[e] ]).every((function(e, r) { 2525 if (e.mloc[t]) return a = e, !1; 2526 var o = void 0 !== i ? i : e.alternation, s = void 0 !== e.locator[o] ? e.locator[o].toString().indexOf(t) : -1; 2527 return (void 0 === n || s < n) && -1 !== s && (a = e, n = s), !0; 2528 })), a) { 2529 var r = a.locator[a.alternation]; 2530 return (a.mloc[t] || a.mloc[r] || a.locator).slice((void 0 !== i ? i : a.alternation) + 1); 2531 } 2532 return void 0 !== i ? v(e, t) : void 0; 2533 } 2534 function b(e, t) { 2535 var i = e.alternation, a = void 0 === t || i === t.alternation && -1 === e.locator[i].toString().indexOf(t.locator[i]); 2536 if (!a && i > t.alternation) for (var n = t.alternation; n < i; n++) if (e.locator[n] !== t.locator[n]) { 2537 i = n, a = !0; 2538 break; 2539 } 2540 if (a) { 2541 e.mloc = e.mloc || {}; 2542 var r = e.locator[i]; 2543 if (void 0 !== r) { 2544 if ("string" == typeof r && (r = r.split(",")[0]), void 0 === e.mloc[r] && (e.mloc[r] = e.locator.slice()), 2545 void 0 !== t) { 2546 for (var o in t.mloc) "string" == typeof o && (o = o.split(",")[0]), void 0 === e.mloc[o] && (e.mloc[o] = t.mloc[o]); 2547 e.locator[i] = Object.keys(e.mloc).join(","); 2548 } 2549 return !0; 2550 } 2551 e.alternation = void 0; 2552 } 2553 return !1; 2554 } 2555 function x(e, t) { 2556 if (e.locator.length !== t.locator.length) return !1; 2557 for (var i = e.alternation + 1; i < e.locator.length; i++) if (e.locator[i] !== t.locator[i]) return !1; 2558 return !0; 2559 } 2560 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; 2561 if (h === e && void 0 === r.matches) { 2562 if (m.push({ 2563 match: r, 2564 locator: o.reverse(), 2565 cd: k, 2566 mloc: {} 2567 }), !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; 2568 g = !0, h = e; 2569 } else if (void 0 !== r.matches) { 2570 if (r.isGroup && u !== r) { 2571 if (r = s(t.matches[t.matches.indexOf(r) + 1], o, u)) return !0; 2572 } else if (r.isOptional) { 2573 var P = r, E = m.length; 2574 if (r = y(r, i, o, u)) { 2575 if (m.forEach((function(e, t) { 2576 t >= E && (e.match.optionality = e.match.optionality ? e.match.optionality + 1 : 1); 2577 })), a = m[m.length - 1].match, void 0 !== u || !p(a, P)) return !0; 2578 g = !0, h = e; 2579 } 2580 } else if (r.isAlternator) { 2581 var S, w = r, _ = [], M = m.slice(), O = o.length, T = !1, A = i.length > 0 ? i.shift() : -1; 2582 if (-1 === A || "string" == typeof A) { 2583 var C, D = h, j = i.slice(), B = []; 2584 if ("string" == typeof A) B = A.split(","); else for (C = 0; C < w.matches.length; C++) B.push(C.toString()); 2585 if (void 0 !== l.excludes[e]) { 2586 for (var R = B.slice(), L = 0, I = l.excludes[e].length; L < I; L++) { 2587 var F = l.excludes[e][L].toString().split(":"); 2588 o.length == F[1] && B.splice(B.indexOf(F[0]), 1); 2589 } 2590 0 === B.length && (delete l.excludes[e], B = R); 2591 } 2592 (!0 === c.keepStatic || isFinite(parseInt(c.keepStatic)) && D >= c.keepStatic) && (B = B.slice(0, 1)); 2593 for (var N = 0; N < B.length; N++) { 2594 C = parseInt(B[N]), m = [], i = "string" == typeof A && v(h, C, O) || j.slice(); 2595 var V = w.matches[C]; 2596 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; 2597 S = m.slice(), h = D, m = []; 2598 for (var G = 0; G < S.length; G++) { 2599 var H = S[G], K = !1; 2600 H.match.jit = H.match.jit || T, H.alternation = H.alternation || O, b(H); 2601 for (var U = 0; U < _.length; U++) { 2602 var $ = _[U]; 2603 if ("string" != typeof A || void 0 !== H.alternation && B.includes(H.locator[H.alternation].toString())) { 2604 if (H.match.nativeDef === $.match.nativeDef) { 2605 K = !0, b($, H); 2606 break; 2607 } 2608 if (f(H, $, c)) { 2609 b(H, $) && (K = !0, _.splice(_.indexOf($), 0, H)); 2610 break; 2611 } 2612 if (f($, H, c)) { 2613 b($, H); 2614 break; 2615 } 2616 if (Z = $, !0
2616=== (W = H).match.static && !0 !== Z.match.static && Z.match.fn.test(W.match.def, l, e, !1, c, !1)) { 2617 x(H, $) || void 0 !== d.inputmask.userOptions.keepStatic ? b(H, $) && (K = !0, _.splice(_.indexOf($), 0, H)) : c.keepStatic = !0; 2618 break; 2619 } 2620 } 2621 } 2622 K || _.push(H); 2623 } 2624 } 2625 m = M.concat(_), h = e, g = m.length > 0, r = _.length > 0, i = j.slice(); 2626 } else r = s(w.matches[A] || t.matches[A], [ A ].concat(o), u); 2627 if (r) return !0; 2628 } 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++) { 2629 var Q = t.matches[t.matches.indexOf(q) - 1]; 2630 if (r = s(Q, [ z ].concat(o), Q)) { 2631 if ((a = m[m.length - 1].match).optionalQuantifier = z >= q.quantifier.min, a.jit = (z + 1) * (Q.matches.indexOf(a) + 1) > q.quantifier.jit, 2632 a.optionalQuantifier && p(a, Q)) { 2633 g = !0, h = e; 2634 break; 2635 } 2636 return a.jit && (l.jitOffset[e] = Q.matches.length - Q.matches.indexOf(a)), !0; 2637 } 2638 } else if (r = y(r, i, o, u)) return !0; 2639 } else h++; 2640 var W, Z; 2641 } 2642 for (var u = i.length > 0 ? i.shift() : 0; u < t.matches.length; u++) if (!0 !== t.matches[u].isQuantifier) { 2643 var p = s(t.matches[u], [ u ].concat(r), o); 2644 if (p && h === e) return p; 2645 if (h > e) break; 2646 } 2647 } 2648 if (e > -1) { 2649 if (void 0 === t) { 2650 for (var b, x = e - 1; void 0 === (b = l.validPositions[x] || l.tests[x]) && x > -1; ) x--; 2651 void 0 !== b && x > -1 && (v = function(e, t) { 2652 var i, a = []; 2653 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) { 2654 "" !== 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])); 2655 }))), a; 2656 }(x, b), k = v.join(""), h = x); 2657 } 2658 if (l.tests[e] && l.tests[e][0].cd === k) return l.tests[e]; 2659 for (var P = v.shift(); P < p.length; P++) { 2660 if (y(p[P], v, [ P ]) && h === e || h > e) break; 2661 } 2662 } 2663 return (0 === m.length || g) && m.push({ 2664 match: { 2665 fn: null, 2666 static: !0, 2667 optionality: !1, 2668 casing: null, 2669 def: "", 2670 placeholder: "" 2671 }, 2672 locator: [], 2673 mloc: {}, 2674 cd: k 2675 }), void 0 !== t && l.tests[e] ? r = s.extend(!0, [], m) : (l.tests[e] = s.extend(!0, [], m), 2676 r = l.tests[e]), m.forEach((function(e) { 2677 e.match.optionality = e.match.defOptionality || !1; 2678 })), r; 2679 } 2680 }, 2681 7215: function(e, t, i) { 2682 Object.defineProperty(t, "__esModule", { 2683 value: !0 2684 }), t.alternate = l, t.checkAlternationMatch = function(e, t, i) { 2685 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); 2686 for (var l = 0; l < e.length; l++) if (n.includes(e[l])) { 2687 r = !0; 2688 break; 2689 } 2690 return r; 2691 }, t.handleRemove = function(e, t, i, a, s) { 2692 var u = this, c = this.maskset, f = this.opts;
2693 if ((f.numericInput || u.isRTL) && (t === r.default.BACKSPACE ? t = r.default.DELETE : t === r.default.DELETE && (t = r.default.BACKSPACE), 2694 u.isRTL)) { 2695 var d = i.end; 2696 i.end = i.begin, i.begin = d; 2697 } 2698 var p, h = o.getLastValidPosition.call(u, void 0, !0); 2699 i.end >= o.getBuffer.call(u).length && h >= i.end && (i.end = h + 1); 2700 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); 2701 if (!1 !== (p = m.call(u, i))) { 2702 if (!0 !== a && !1 !== f.keepStatic || null !== f.regex && -1 !== n.getTest.call(u, i.begin).match.def.indexOf("|")) { 2703 var v = l.call(u, !0); 2704 if (v) { 2705 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); 2706 (t !== r.default.DELETE || i.begin > g) && i.begin; 2707 } 2708 } 2709 !0 !== a && (c.p = t === r.default.DELETE ? i.begin + p : i.begin, c.p = o.determineNewCaretPosition.call(u, { 2710 begin: c.p, 2711 end: c.p 2712 }, !1, !1 === f.insertMode && t === r.default.BACKSPACE ? "none" : void 0).begin); 2713 } 2714 }, t.isComplete = c, t.isSelection = f, t.isValid = d, t.refreshFromBuffer = h, 2715 t.revalidateMask = m; 2716 var a, n = i(4713), r = (a = i(5581)) && a.__esModule ? a : { 2717 default: a 2718 }, o = i(8711), s = i(6030); 2719 function l(e, t, i, a, r, s) { 2720 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); 2721 if (s && (y = s.begin, b = s.end, s.begin > s.end && (y = s.end, b = s.begin)), 2722 -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) { 2723 if (p && p.locator[f.alternation] !== f.locator[f.alternation]) break; 2724 u = T, c = S.validPositions[u].alternation, p = f; 2725 } 2726 if (void 0 !== c) { 2727 m = parseInt(u), S.excludes[m] = S.excludes[m] || [], !0 !== e && S.excludes[m].push((0, 2728 n.getDecisionTaker)(p) + ":" + p.alternation); 2729 var A = [], C = -1; 2730 for (h = m; h < o.getLastValidPosition.call(x, void 0, !0) + 1; h++) -1 === C && e <= h && void 0 !== t && (A.push(t), 2731 C = A.length - 1), (v = S.validPositions[h]) && !0 !== v.generatedInput && (void 0 === s || h < y || h >= b) && A.push(v.input), 2732 delete S.validPositions[h]; 2733 for (-1 === C && void 0 !== t && (A.push(t), C = A.length - 1); void 0 !== S.excludes[m] && S.excludes[m].length < 10; ) { 2734 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, 2735 k = A[h], M = d.call(x, g, k, !1, a, !0)); h++) h === C && (O = M), 1 == e && M && (O = { 2736 caretPos: h 2737 }); 2738 if (M) break; 2739 if (o.resetMaskSet.call(x), p = n.getTest.call(x, m), S.validPositions = P.extend(!0, {}, w), 2740 S.tests = P.extend(!0, {}, _), !S.excludes[m]) { 2741 O = l.call(x, e, t, i, a, m - 1, s); 2742 break; 2743 } 2744 var D = (0, n.getDecisionTaker)(p); 2745 if (-1 !== S.excludes[m].indexOf(D + ":" + p.alternation)) { 2746 O = l.call(x, e, t, i, a, m - 1, s); 2747 break; 2748 } 2749 for (S.excludes[m].push(D + ":" + p.alternation), h = m; h < o.getLastValidPosition.call(x, void 0, !0) + 1; h++) delete S.validPositions[h]; 2750 } 2751 } 2752 return O && !1 === E.keepStatic || delete S.excludes[m], O; 2753 } 2754 function u(e, t, i) { 2755 var a = this.opts, n = this.maskset; 2756 switch (a.casing || t.casing) { 2757 case "upper": 2758 e = e.toUpperCase(); 2759 break; 2760 2761 case "lower": 2762 e = e.toLowerCase(); 2763 break; 2764 2765 case "title": 2766 var o = n.validPositions[i - 1]; 2767 e = 0 === i || o && o.input === String.fromCharCode(r.default.SPACE) ? e.toUpperCase() : e.toLowerCase(); 2768 break; 2769 2770 default: 2771 if ("function" == typeof a.casing) { 2772 var s = Array.prototype.slice.call(arguments); 2773 s.push(n.validPositions), e = a.casing.apply(this, s); 2774 } 2775 } 2776 return e; 2777 } 2778 function c(e) { 2779 var t = this, i = this.opts, a = this.maskset; 2780 if ("function" == typeof i.isComplete) return i.isComplete(e, i); 2781 if ("*" !== i.repeat) { 2782 var r = !1, s = o.determineLastRequiredPosition.call(t, !0), l = o.seekPrevious.call(t, s.l); 2783 if (void 0 === s.def || s.def.newBlockMarker || s.def.optionality || s.def.optionalQuantifier) { 2784 r = !0; 2785 for (var u = 0; u <= l; u++) { 2786 var c = n.getTestTemplate.call(t, u).match; 2787 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)) { 2788 r = !1; 2789 break; 2790 } 2791 } 2792 } 2793 return r; 2794 } 2795 } 2796 function f(e) { 2797 var t = this.opts.insertMode ? 0 : 1; 2798 return this.isRTL ? e.begin - e.end > t : e.end - e.begin > t; 2799 } 2800 function d(e, t, i, a, r, s, p) { 2801 var g = this, k = this.dependencyLib, y = this.opts, b = g.maskset; 2802 i = !0 === i; 2803 var x = e; 2804 function P(e) { 2805 if (void 0 !== e) { 2806 if (void 0 !== e.remove && (Array.isArray(e.remove) || (e.remove = [ e.remove ]), 2807 e.remove.sort((function(e, t) { 2808 return g.isRTL ? e.pos - t.pos : t.pos - e.pos; 2809 }
vendor: 6,576 bytes, lines 2809-2896
2809)).forEach((function(e) { 2810 m.call(g, { 2811 begin: e, 2812 end: e + 1 2813 }); 2814 })), e.remove = void 0), void 0 !== e.insert && (Array.isArray(e.insert) || (e.insert = [ e.insert ]), 2815 e.insert.sort((function(e, t) { 2816 return g.isRTL ? t.pos - e.pos : e.pos - t.pos; 2817 })).forEach((function(e) { 2818 "" !== e.c && d.call(g, e.pos, e.c, void 0 === e.strict || e.strict, void 0 !== e.fromIsValid ? e.fromIsValid : a); 2819 })), e.insert = void 0), e.refreshFromBuffer && e.buffer) { 2820 var t = e.refreshFromBuffer; 2821 h.call(g, !0 === t ? t : t.start, t.end, e.buffer), e.refreshFromBuffer = void 0; 2822 } 2823 void 0 !== e.rewritePosition && (x = e.rewritePosition, e = !0); 2824 } 2825 return e; 2826 } 2827 function E(t, i, r) { 2828 var s = !1; 2829 return n.getTests.call(g, t).every((function(l, c) { 2830 var d = l.match; 2831 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 && { 2832 c: n.getPlaceholder.call(g, t, d, !0) || d.def, 2833 pos: t 2834 }))) { 2835 var p = void 0 !== s.c ? s.c : i, h = t; 2836 return p = p === y.skipOptionalPartCharacter && !0 === d.static ? n.getPlaceholder.call(g, t, d, !0) || d.def : p, 2837 !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, { 2838 input: u.call(g, p, d, h) 2839 }), a, h) && (s = !1), !1); 2840 } 2841 return !0; 2842 })), s; 2843 } 2844 void 0 !== e.begin && (x = g.isRTL ? e.end : e.begin); 2845 var S = !0, w = k.extend(!0, {}, b.validPositions); 2846 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, 2847 delete b.tests[_]); 2848 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))), 2849 !0 === S) { 2850 if (S = E(x, t, i), (!i || !0 === a) && !1 === S && !0 !== s) { 2851 var M = b.validPositions[x]; 2852 if (!M || !0 !== M.match.static || M.match.def !== t && t !== y.skipOptionalPartCharacter) { 2853 if (y.insertMode || void 0 === b.validPositions[o.seekNext.call(g, x)] || e.end > x) { 2854 var O = !1; 2855 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), 2856 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))) { 2857 S = v.call(g, x, void 0 !== S.pos ? S.pos : T) || S, x = T; 2858 break; 2859 } 2860 } 2861 } else S = { 2862 caret: o.seekNext.call(g, x) 2863 }; 2864 } 2865 !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), 2866 !0 === S && (S = { 2867 pos: x 2868 }); 2869 } 2870 if ("function" == typeof y.postValidation && !0 !== a && !0 !== s) { 2871 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); 2872 void 0 !== C && (S = !0 === C ? S : C); 2873 } 2874 S && void 0 === S.pos && (S.pos = x), !1 === S || !0 === s ? (o.resetMaskSet.call(g, !0), 2875 b.validPositions = k.extend(!0, {}, w)) : v.call(g, void 0, x, !0); 2876 var D = P(S); 2877 void 0 !== g.maxLength && (o.getBuffer.call(g).length > g.maxLength && !a && (o.resetMaskSet.call(g, !0), 2878 b.validPositions = k.extend(!0, {}, w), D = !1)); 2879 return D; 2880 } 2881 function p(e, t, i) { 2882 for (var a = this.maskset, r = !1, o = n.getTests.call(this, e), s = 0; s < o.length; s++) { 2883 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))) { 2884 r = !0; 2885 break; 2886 } 2887 if (o[s].match && o[s].match.def === t.match.nativeDef) { 2888 r = void 0; 2889 break; 2890 } 2891 } 2892 return !1 === r && void 0 !== a.jitOffset[e] && (r = p.call(this, e + a.jitOffset[e], t, i)), 2893 r; 2894 } 2895 function h(e, t, i) { 2896 var a, n, r = this, l = this.maskset, u = this.opts, c = this.dependencyLib, f = u.skipOptionalPartCharacter, d = r.isRTL ? i.slice().reverse() : i;
vendor: 4,087 bytes, lines 2897-2952
2897 if (u.skipOptionalPartCharacter = "", !0 === e) o.resetMaskSet.call(r), l.tests = {}, 2898 e = 0, t = i.length, n = o.determineNewCaretPosition.call(r, { 2899 begin: 0, 2900 end: 0 2901 }, !1).begin; else { 2902 for (a = e; a < t; a++) delete l.validPositions[a]; 2903 n = e; 2904 } 2905 var p = new c.Event("keypress"); 2906 for (a = e; a < t; a++) { 2907 p.keyCode = d[a].toString().charCodeAt(0), r.ignorable = !1; 2908 var h = s.EventHandlers.keypressEvent.call(r, p, !0, !1, !1, n); 2909 !1 !== h && void 0 !== h && (n = h.forwardPosition); 2910 } 2911 u.skipOptionalPartCharacter = f; 2912 } 2913 function v(e, t, i) { 2914 var a = this, r = this.maskset, s = this.dependencyLib; 2915 if (void 0 === e) for (e = t - 1; e > 0 && !r.validPositions[e]; e--) ; 2916 for (var l = e; l < t; l++) { 2917 if (void 0 === r.validPositions[l] && !o.isMask.call(a, l, !1)) if (0 == l ? n.getTest.call(a, l) : r.validPositions[l - 1]) { 2918 var u = n.getTests.call(a, l).slice(); 2919 "" === u[u.length - 1].match.def && u.pop(); 2920 var c, f = n.determineTestTemplate.call(a, l, u); 2921 if (f && (!0 !== f.match.jit || "master" === f.match.newBlockMarker && (c = r.validPositions[l + 1]) && !0 === c.match.optionalQuantifier) && ((f = s.extend({}, f, { 2922 input: n.getPlaceholder.call(a, l, f.match, !0) || f.match.def 2923 })).generatedInput = !0, m.call(a, l, f, !0), !0 !== i)) { 2924 var p = r.validPositions[t].input; 2925 return r.validPositions[t] = void 0, d.call(a, t, p, !0, !0); 2926 } 2927 } 2928 } 2929 } 2930 function m(e, t, i, a) { 2931 var r = this, s = this.maskset, l = this.opts, u = this.dependencyLib; 2932 function c(e, t, i) { 2933 var a = t[e]; 2934 if (void 0 !== a && !0 === a.match.static && !0 !== a.match.optionality && (void 0 === t[0] || void 0 === t[0].alternation)) { 2935 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]; 2936 return n && r; 2937 } 2938 return !1; 2939 } 2940 var f = 0, h = void 0 !== e.begin ? e.begin : e, v = void 0 !== e.end ? e.end : e, m = !0; 2941 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)) { 2942 var g, k = u.extend(!0, {}, s.validPositions), y = o.getLastValidPosition.call(r, void 0, !0); 2943 for (s.p = h, g = y; g >= h; g--) delete s.validPositions[g], void 0 === t && delete s.tests[g + 1]; 2944 var b, x, P = a, E = P; 2945 for (t && (s.validPositions[a] = u.extend(!0, {}, t), E++, P++), g = t ? v : v - 1; g <= y; g++) { 2946 if (void 0 !== (b = k[g]) && !0 !== b.generatedInput && (g >= v || g >= h && c(g, k, { 2947 begin: h, 2948 end: v 2949 }))) { 2950 for (;"" !== n.getTest.call(r, E).match.def; ) { 2951 if (!1 !== (x = p.call(r, E, b, l)) || "+" === b.match.def) { 2952 "+" === b.match.def && o.getBuffer.call(r, !0);
2953 var S = d.call(r, E, b.input, "+" !== b.match.def, !0); 2954 if (m = !1 !== S, P = (S.pos || E) + 1, !m && x) break; 2955 } else m = !1; 2956 if (m) { 2957 void 0 === t && b.match.static && g === e.begin && f++; 2958 break; 2959 } 2960 if (!m && o.getBuffer.call(r), E > s.maskLength) break; 2961 E++; 2962 } 2963 "" == n.getTest.call(r, E).match.def && (m = !1), E = P; 2964 } 2965 if (!m) break; 2966 } 2967 if (!m) return s.validPositions = u.extend(!0, {}, k), o.resetMaskSet.call(r, !0), 2968 !1; 2969 } else t && n.getTest.call(r, a).match.cd === t.match.cd && (s.validPositions[a] = u.extend(!0, {}, t)); 2970 return o.resetMaskSet.call(r, !0), f; 2971 } 2972 }, 2973 7957: function(t) { 2974 t.exports = e; 2975 }, 2976 5581: function(e) { 2977 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}'); 2978 } 2979 }, i = {}; 2980 function a(e) { 2981 var n = i[e]; 2982 if (void 0 !== n) return n.exports; 2983 var r = i[e] = { 2984 exports: {} 2985 }; 2986 return t[e](r, r.exports, a), r.exports; 2987 } 2988 var n = {}; 2989 return function() { 2990 var e = n; 2991 Object.defineProperty(e, "__esModule", { 2992 value: !0 2993 }), e.default = void 0; 2994 var t, i = (t = a(3046)) && t.__esModule ? t : { 2995 default: t 2996 }; 2997 a(443); 2998 var r = i.default; 2999 e.default = r; 3000 }(), n; 3001 }(); 3002}));
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.