1! function(e, t) { 2 "object" == typeof exports && "undefined" != typeof module ? module.exports = t() : "function" == typeof define && define.amd ? define(t) : e.Sweetalert2 = t() 3}(this, function() { 4 "use strict"; 5 6 function e() { 7 if (void 0 === arguments[0]) return console.error("sweetAlert2 expects at least 1 attribute!"), !1; 8 var e = c({}, V); 9 switch (typeof arguments[0]) { 10 case "string": 11 e.title = arguments[0], e.text = arguments[1] || "", e.type = arguments[2] || ""; 12 break; 13 case "object": 14 c(e, arguments[0]), e.extraParams = arguments[0].extraParams, "email" === e.input && null === e.inputValidator && (e.inputValidator = function(e) { 15 return new Promise(function(t, n) { 16 var o = /^[a-zA-Z0-9._-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,6}$/; 17 o.test(e) ? t() : n("Invalid email address") 18 }) 19 }); 20 break; 21 default: 22 return console.error('Unexpected type of argument! Expected "string" or "object", got ' + typeof arguments[0]), !1 23 } 24 H(e); 25 var o = f(); 26 return new Promise(function(r, a) { 27 function l(e, t) { 28 for (var n = 0; n < N.length; n++) 29 if (e += t, e === N.length ? e = 0 : -1 === e && (e = N.length - 1), N[e].offsetWidth || N[e].offsetHeight || N[e].getClientRects().length) return void N[e].focus() 30 } 31 32 function c(n) { 33 var o = n || window.event, 34 i = o.keyCode || o.which; 35 if (-1 !== [9, 13, 32, 27].indexOf(i)) { 36 for (var r = o.target || o.srcElement, c = -1, s = 0; s < N.length; s++) 37 if (r === N[s]) { 38 c = s; 39 break 40 } 41 9 === i ? (o.shiftKey ? l(c, -1) : l(c, 1), P(o)) : 13 === i || 32 === i ? -1 === c && T(M, o) : 27 === i && e.allowEscapeKey === !0 && (t.closeModal(e.onClose), a("esc")) 42 } 43 } 44 e.timer && (o.timeout = setTimeout(function() { 45 t.closeModal(e.onClose), a("timer") 46 }, e.timer)); 47 var u = function() { 48 switch (e.input) { 49 case "select": 50 return k(o, i.select); 51 case "radio": 52 return o.querySelector("." + i.radio + " input:checked") || o.querySelector("." + i.radio + " input:first-child"); 53 case "checkbox": 54 return o.querySelector("#" + i.checkbox); 55 case "textarea": 56 return k(o, i.textarea); 57 default: 58 return k(o, i.input) 59 } 60 }, 61 p = function() { 62 var t = u(); 63 switch (e.input) { 64 case "checkbox": 65 return t.checked ? 1 : 0; 66 case "radio": 67 return t.checked ? t.value : null; 68 case "file": 69 return t.files.length ? t.files[0] : null; 70 default: 71 return e.inputAutoTrim ? t.value.trim() : t.value 72 } 73 }; 74 e.input && setTimeout(function() { 75 var e = u(); 76 e && g(e) 77 }, 0); 78 var f, L = function(n) { 79 e.showLoaderOnConfirm && t.showLoading(), e.preConfirm ? e.preConfirm(n, e.extraParams).then(function(o) { 80 t.closeModal(e.onClose), r(o || n) 81 }, function(e) { 82 t.hideLoading(), e && t.showValidationError(e) 83 }) : (t.closeModal(e.onClose), r(n)) 84 }, 85 q = function(n) { 86 var i = n || window.event, 87 r = i.target || i.srcElement, 88 l = v() === r || v().contains(r), 89 c = y() === r || y().contains(r), 90 u = b(o, "visible"); 91 switch (i.type) { 92 case "mouseover": 93 case "mouseup": 94 case "focus": 95 e.buttonsStyling && (l ? r.style.backgroundColor = s(e.confirmButtonColor, -.1) : c && (r.style.backgroundColor = s(e.cancelButtonColor, -.1))); 96 break; 97 case "mouseout": 98 case "blur": 99 e.buttonsStyling && (l ? r.style.backgroundColor = e.confirmButtonColor : c && (r.style.backgroundColor = e.cancelButtonColor)); 100 break; 101 case "mousedown": 102 e.buttonsStyling && (l ? r.style.backgroundColor = s(e.confirmButtonColor, -.2) : c && (r.style.backgroundColor = s(e.cancelButtonColor, -.2))); 103 break; 104 case "click": 105 if (l && u) 106 if (e.input) { 107 var d = p(); 108 e.inputValidator ? (t.disableInput(), e.inputValidator(d, e.extraParams).then(function() { 109 t.enableInput(), L(d) 110 }, function(e) { 111 t.enableInput(), e && t.showValidationError(e) 112 })) : L(d) 113 } else L(!0); 114 else c && u && (t.closeModal(e.onClose), a("cancel")) 115 } 116 }, 117 A = o.querySelectorAll("button"); 118 for (f = 0; f < A.length; f++) A[f].onclick = q, A[f].onmouseover = q, A[f].onmouseout = q, A[f].onmousedown = q; 119 h().onclick = function() { 120 t.closeModal(e.onClose), a("close") 121 }, m().onclick = function() { 122 e.allowOutsideClick && (t.closeModal(e.onClose), a("overlay")) 123 }; 124 var M = v(), 125 O = y(), 126 N = [M, O].concat(Array.prototype.slice.call(o.querySelectorAll("button:not([class^=" + n + "]), input:not([type=hidden]), textarea, select"))); 127 for (f = 0; f < N.length; f++) N[f].onfocus = q, N[f].onblur = q; 128 e.reverseButtons && M.parentNode.insertBefore(O, M), d.previousWindowKeyDown = window.onkeydown, window.onkeydown = c, e.buttonsStyling && (M.style.borderLeftColor = e.confirmButtonColor, M.style.borderRightColor = e.confirmButtonColor), t.showLoading = t.enableLoading = function() { 129 w(M, "loading"), w(o, "loading"), M.disabled = !0, O.disabled = !0 130 }, t.hideLoading = t.disableLoading = function() { 131 C(M, "loading"), C(o, "loading"), M.disabled = !1, O.disabled = !1 132 }, t.enableButtons = function() { 133 M.disabled = !1, O.disabled = !1 134 }, t.disableButtons = function() { 135 M.disabled = !0, O.disabled = !0 136 }, t.enableInput = function() { 137 var e = u(); 138 if ("radio" === e.type) 139 for (var t = e.parentNode.parentNode, n = t.querySelectorAll("input"), o = 0; o < n.length; o++) n[o].disabled = !1; 140 else e.disabled = !1 141 }, t.disableInput = function() { 142 var e = u(); 143 if ("radio" === e.type) 144 for (var t = e.parentNode.parentNode, n = t.querySelectorAll("input"), o = 0; o < n.length; o++) n[o].disabled = !0; 145 else e.disabled = !0 146 }, t.showValidationError = function(e) { 147 var t = o.querySelector("." + i.validationerror); 148 t.innerHTML = e, E(t); 149 var n = u(); 150 g(n), w(n, "error") 151 }, t.resetValidationError = function() { 152 var e = o.querySelector("." + i.validationerror); 153 B(e); 154 var t = u(); 155 t && C(t, "error") 156 }, t.enableButtons(), t.hideLoading(), t.resetValidationError(); 157 var V, H = ["input", "select", "radio", "checkbox", "textarea"]; 158 for (f = 0; f < H.length; f++) { 159 var j = i[H[f]]; 160 for (V = k(o, j); V.attributes.length > 0;) V.removeAttribute(V.attributes[0].name); 161 for (var K in e.inputAttributes) V.setAttribute(K, e.inputAttributes[K]); 162 V.className = j, e.inputClass && w(V, e.inputClass), S(V) 163 } 164 var W; 165 switch (e.input) { 166 case "text": 167 case "email": 168 case "password": 169 case "file": 170 V = k(o, i.input), V.value = e.inputValue, V.placeholder = e.inputPlaceholder, V.type = e.input, x(V); 171 break; 172 case "select": 173 var U = k(o, i.select); 174 if (U.innerHTML = "", e.inputPlaceholder) { 175 var z = document.createElement("option"); 176 z.innerHTML = e.inputPlaceholder, z.value = "", z.disabled = !0, z.selected = !0, U.appendChild(z) 177 } 178 W = function(t) { 179 for (var n in t) { 180 var o = document.createElement("option"); 181 o.value = n, o.innerHTML = t[n], e.inputValue === n && (o.selected = !0), U.appendChild(o) 182 } 183 x(U), U.focus() 184 }; 185 break; 186 case "radio": 187 var R = k(o, i.radio); 188 R.innerHTML = "", W = function(t) { 189 for (var n in t) { 190 var o = 1, 191 r = document.createElement("input"), 192 a = document.createElement("label"), 193 l = document.createElement("span"); 194 r.type = "radio", r.name = i.radio, r.value = n, r.id = i.radio + "-" + o++, e.inputValue === n && (r.checked = !0), l.innerHTML = t[n], a.appendChild(r), a.appendChild(l), a["for"] = r.id, R.appendChild(a) 195 } 196 x(R); 197 var c = R.querySelectorAll("input"); 198 c.length && c[0].focus() 199 }; 200 break; 201 case "checkbox": 202 var Z = k(o, i.checkbox), 203 $ = o.querySelector("#" + i.checkbox); 204 $.value = 1, $.checked = Boolean(e.inputValue); 205 var _ = Z.getElementsByTagName("span"); 206 _.length && Z.removeChild(_[0]), _ = document.createElement("span"), _.innerHTML = e.inputPlaceholder, Z.appendChild(_), x(Z); 207 break; 208 case "textarea": 209 var F = k(o, i.textarea); 210 F.value = e.inputValue, F.placeholder = e.inputPlaceholder, x(F); 211 break; 212 case null: 213 break; 214 default: 215 console.error('Unexpected type of input! Expected "text" or "email" or "password", "select", "checkbox", "textarea" or "file", got ' + typeof arguments[0]) 216 } 217 "select" !== e.input && "radio" !== e.input || (e.inputOptions instanceof Promise ? (t.showLoading(), e.inputOptions.then(function(e) { 218 t.hideLoading(), W(e) 219 })) : "object" == typeof e.inputOptions ? W(e.inputOptions) : console.error("Unexpected type of inputOptions! Expected object or Promise, got " + e.inputOptions)), I(), D(e.animation, e.onOpen), l(-1, 1) 220 }) 221 } 222 223 function t() { 224 var n = arguments, 225 o = f(); 226 return null === o && (t.init(), o = f()), b(o, "visible") && N(), e.apply(this, n) 227 } 228 var n = "swal2-", 229 o = function(e) { 230 var t = {}; 231 for (var o in e) t[e[o]] = n + e[o]; 232 return t 233 }, 234 i = o(["container", "modal", "overlay", "close", "content", "spacer", "confirm", "cancel", "icon", "image", "input", "select", "radio", "checkbox", "textarea", "validationerror"]), 235 r = o(["success", "warning", "info", "question", "error"]), 236 a = { 237 title: "", 238 text: "", 239 html: "", 240 type: null, 241 animation: !0, 242 allowOutsideClick: !0, 243 allowEscapeKey: !0, 244 showConfirmButton: !0, 245 showCancelButton: !1, 246 preConfirm: null, 247 confirmButtonText: "OK", 248 confirmButtonColor: "#3085d6", 249 confirmButtonClass: null, 250 cancelButtonText: "Cancel", 251 cancelButtonColor: "#aaa", 252 cancelButtonClass: null, 253 buttonsStyling: !0, 254 reverseButtons: !1, 255 showCloseButton: !1, 256 showLoaderOnConfirm: !1, 257 imageUrl: null, 258 imageWidth: null, 259 imageHeight: null, 260 imageClass: null, 261 timer: null, 262 width: 500, 263 padding: 20, 264 background: "#fff", 265 input: null, 266 inputPlaceholder: "", 267 inputValue: "", 268 inputOptions: {}, 269 inputAutoTrim: !0, 270 inputClass: null, 271 inputAttributes: {}, 272 inputValidator: null, 273 onOpen: null, 274 onClose: null 275 }, 276 l = '<div class="' + i.overlay + '" tabIndex="-1"></div><div class="' + i.modal + '" style="display: none" tabIndex="-1"><div class="' + i.icon + " " + r.error + '"><span class="x-mark"><span class="line left"></span><span class="line right"></span></span></div><div class="' + i.icon + " " + r.question + '">?</div><div class="' + i.icon + " " + r.warning + '">!</div><div class="' + i.icon + " " + r.info + '">i</div><div class="' + i.icon + " " + r.success + '"><span class="line tip"></span> <span class="line long"></span><div class="placeholder"></div> <div class="fix"></div></div><img class="' + i.image + '"><h2></h2><div class="' + i.content + '"></div><input class="' + i.input + '"><select class="' + i.select + '"></select><div class="' + i.radio + '"></div><label for="' + i.checkbox + '" class="' + i.checkbox + '"><input type="checkbox" id="' + i.checkbox + '"></label><textarea class="' + i.textarea + '"></textarea><div class="' + i.validationerror + '"></div><hr class="' + i.spacer + '"><button class="' + i.confirm + '">OK</button><button class="' + i.cancel + '">Cancel</button><span class="' + i.close + '">×</span></div>', 277 c = function(e, t) { 278 for (var n in t) t.hasOwnProperty(n) && (e[n] = t[n]); 279 return e 280 }, 281 s = function(e, t) { 282 e = String(e).replace(/[^0-9a-f]/gi, ""), e.length < 6 && (e = e[0] + e[0] + e[1] + e[1] + e[2] + e[2]), t = t || 0; 283 for (var n = "#", o = 0; 3 > o; o++) { 284 var i = parseInt(e.substr(2 * o, 2), 16); 285 i = Math.round(Math.min(Math.max(0, i + i * t), 255)).toString(16), n += ("00"
285+ i).substr(i.length) 286 } 287 return n 288 }, 289 u = n + "mediaquery", 290 d = { 291 previousWindowKeyDown: null, 292 previousActiveElement: null 293 }, 294 p = function(e) { 295 return document.querySelector("." + e) 296 }, 297 f = function() { 298 return p(i.modal) 299 }, 300 m = function() { 301 return p(i.overlay) 302 }, 303 v = function() { 304 return p(i.confirm) 305 }, 306 y = function() { 307 return p(i.cancel) 308 }, 309 h = function() { 310 return p(i.close) 311 }, 312 b = function(e, t) { 313 return e.classList.contains(t) 314 }, 315 g = function(e) { 316 e.focus(); 317 var t = e.value; 318 e.value = "", e.value = t 319 }, 320 w = function(e, t) { 321 t && !b(e, t) && (e.className += " " + t) 322 }, 323 C = function(e, t) { 324 var n = " " + e.className.replace(/[\t\r\n]/g, " ") + " "; 325 if (b(e, t)) { 326 for (; n.indexOf(" " + t + " ") >= 0;) n = n.replace(" " + t + " ", " "); 327 e.className = n.replace(/^\s+|\s+$/g, "") 328 } 329 }, 330 k = function(e, t) { 331 for (var n = 0; n < e.childNodes.length; n++) 332 if (b(e.childNodes[n], t)) return e.childNodes[n] 333 }, 334 x = function(e) { 335 e.style.opacity = "", e.style.display = "block" 336 }, 337 E = function(e) { 338 if (e && !e.length) return x(e); 339 for (var t = 0; t < e.length; ++t) x(e[t]) 340 }, 341 S = function(e) { 342 e.style.opacity = "", e.style.display = "none" 343 }, 344 B = function(e) { 345 if (e && !e.length) return S(e); 346 for (var t = 0; t < e.length; ++t) S(e[t]) 347 }, 348 L = function(e, t) { 349 e.style.removeProperty ? e.style.removeProperty(t) : e.style.removeAttribute(t) 350 }, 351 q = function(e) { 352 var t = e.style.display; 353 e.style.left = "-9999px", e.style.display = "block"; 354 var n = e.clientHeight; 355 return e.style.left = "", e.style.display = t, "-" + parseInt(n / 2, 10) + "px" 356 }, 357 A = function(e, t) { 358 if (+e.style.opacity < 1) { 359 t = t || 16, e.style.opacity = 0, e.style.display = "block"; 360 var n = +new Date, 361 o = function() { 362 var i = +e.style.opacity + (new Date - n) / 100; 363 e.style.opacity = i > 1 ? 1 : i, n = +new Date, +e.style.opacity < 1 && setTimeout(o, t) 364 }; 365 o() 366 } 367 }, 368 M = function(e, t) { 369 if (+e.style.opacity > 0) { 370 t = t || 16; 371 var n = e.style.opacity, 372 o = +new Date, 373 i = function() { 374 var r = new Date - o, 375 a = +e.style.opacity - r / (100 * n); 376 e.style.opacity = a, o = +new Date, +e.style.opacity > 0 ? setTimeout(i, t) : S(e) 377 }; 378 i() 379 } 380 }, 381 T = function(e) { 382 if ("function" == typeof MouseEvent) { 383 var t = new MouseEvent("click", { 384 view: window, 385 bubbles: !1, 386 cancelable: !0 387 }); 388 e.dispatchEvent(t) 389 } else if (document.createEvent) { 390 var n = document.createEvent("MouseEvents"); 391 n.initEvent("click", !1, !1), e.dispatchEvent(n) 392 } else document.createEventObject ? e.fireEvent("onclick") : "function" == typeof e.onclick && e.onclick() 393 }, 394 P = function(e) { 395 "function" == typeof e.stopPropagation ? (e.stopPropagation(), e.preventDefault()) : window.event && window.event.hasOwnProperty("cancelBubble") && (window.event.cancelBubble = !0) 396 }, 397 O = function() { 398 var e = document.createElement("div"), 399 t = { 400 WebkitAnimation: "webkitAnimationEnd", 401 MozAnimation: "animationend", 402 OAnimation: "oAnimationEnd oanimationend", 403 msAnimation: "MSAnimationEnd", 404 animation: "animationend" 405 }; 406 for (var n in t) 407 if (t.hasOwnProperty(n) && void 0 !== e.style[n]) return t[n]; 408 return !1 409 }(), 410 N = function() { 411 var e = f(); 412 window.onkeydown = d.previousWindowKeyDown, d.previousActiveElement && d.previousActiveElement.focus(), clearTimeout(e.timeout); 413 var t = document.getElementsByTagName("head")[0], 414 n = document.getElementById(u); 415 n && t.removeChild(n) 416 }, 417 V = c({}, a), 418 H = function(e) { 419 var t, n = f(); 420 n.style.width = e.width + "px", n.style.padding = e.padding + "px", n.style.marginLeft = -e.width / 2 + "px", n.style.background = e.background; 421 /*var width_window = $(window).width(); 422 n.style.width = e.width + "px", n.style.padding = e.padding + "px", n.style.marginLeft = (width_window/2)-250 + "px", n.style.background = e.background;*/ 423 var o = document.getElementsByTagName("head")[0], 424 a = document.createElement("style"); 425 a.type = "text/css", a.id = u; 426 var l = 3, 427 c = e.width + parseInt(e.width * (l / 100) * 2, 10); 428 a.innerHTML = "@media screen and (max-width: " + c + "px) {." + i.modal + " {width: auto !important;left: " + l + "% !important;right: " + l + "% !important;margin-left: 0 !important;}}", o.appendChild(a); 429 var s = n.querySelector("h2"), 430 d = n.querySelector("." + i.content), 431 p = v(), 432 m = y(), 433 h = n.querySelector("." + i.spacer), 434 b = n.querySelector("." + i.close); 435 if (s.innerHTML = e.title.split("\n").join("<br>"), e.text || e.html) { 436 if ("object" == typeof e.html) 437 if (d.innerHTML = "", 0 in e.html) 438 for (t = 0; t in e.html; t++) d.appendChild(e.html[t]); 439 else d.appendChild(e.html); 440 else d.innerHTML = e.html || e.text.split("\n").join("<br>"); 441 E(d) 442 } else B(d); 443 if (e.showCloseButton ? E(b) : B(b), n.className = i.modal, e.customClass && w(n, e.customClass), B(n.querySelectorAll("." + i.icon)), e.type) { 444 var g = !1; 445 for (var k in r) 446 if (e.type === k) { 447 g = !0; 448 break 449 } 450 if (!g) return console.error("Unknown alert type: " + e.type), !1; 451 var x = n.querySelector("." + i.icon + "." + r[e.type]); 452 switch (E(x), e.type) { 453 case "success": 454 w(x, "animate"), w(x.querySelector(".tip"), "animate-success-tip"), w(x.querySelector(".long"), "animate-success-long"); 455 break; 456 case "error": 457 w(x, "animate-error-icon"), w(x.querySelector(".x-mark"), "animate-x-mark"); 458 break; 459 case "warning": 460 w(x, "pulse-warning") 461 } 462 } 463 var S = n.querySelector("." + i.image); 464 e.imageUrl ? (S.setAttribute("src", e.imageUrl), E(S), e.imageWidth && S.setAttribute("width", e.imageWidth), e.imageHeight && S.setAttribute("height", e.imageHeight), e.imageClass && w(S, e.imageClass)) : B(S), e.showCancelButton ? m.style.display = "inline-block" : B(m), e.showConfirmButton ? L(p, "display") : B(p), e.showConfirmButton || e.showCancelButton ? E(h) : B(h), p.innerHTML = e.confirmButtonText, m.innerHTML = e.cancelButtonText, e.buttonsStyling && (p.style.backgroundColor = e.confirmButtonColor, m.style.backgroundColor = e.cancelButtonColor), p.className = i.confirm, w(p, e.confirmButtonClass), m.className = i.cancel, w(m, e.cancelButtonClass), e.buttonsStyling ? (w(p, "styled"), w(m, "styled")) : (C(p, "styled"), C(m, "styled"), p.style.backgroundColor = p.style.borderLeftColor = p.style.borderRightColor = "", m.style.backgroundColor = m.style.borderLeftColor = m.style.borderRightColor = ""), e.animation === !0 ? C(n, "no-animation") : w(n, "no-animation") 465 }, 466 D = function(e, t) { 467 var n = f(); 468 e ? (A(m(), 10), w(n, "show-swal2"), C(n, "hide-swal2")) : E(m()), E(n), d.previousActiveElement = document.activeElement, w(n, "visible"), null !== t && "function" == typeof t && t.call(this, n) 469 }, 470 I = function() { 471 var e = f(); 472 e.style.marginTop = q(e) 473 /*var height_window = $(window).height(); 474 var height_content = $('.swal2-modal').height(); 475 476 e.style.marginTop = (height_window/2)-(height_content/2) + 'px';*/ 477 }; 478 return t.queue = function(e) { 479 return new Promise(function(n, o) { 480 ! function i(r, a) { 481 r < e.length ? t(e[r]).then(function() { 482 i(r + 1, a) 483 }, function(e) { 484 o(e) 485 }) : n() 486 }(0) 487 }) 488 }, t.close = t.closeModal = function(e) { 489 var t = f(); 490 C(t, "show-swal2"), w(t, "hide-swal2"), C(t, "visible"); 491 var n = t.querySelector("." + i.icon + "." + r.success); 492 C(n, "animate"), C(n.querySelector(".tip"), "animate-success-tip"), C(n.querySelector(".long"), "animate-success-long"); 493 var o = t.querySelector("." + i.icon + "." + r.error); 494 C(o, "animate-error-icon"), C(o.querySelector(".x-mark"), "animate-x-mark"); 495 var a = t.querySelector("." + i.icon + "." + r.warning); 496 C(a, "pulse-warning"), N(), O && !b(t, "no-animation") ? t.addEventListener(O, function l() { 497 t.removeEventListener(O, l), b(t, "hide-swal2") && (S(t), M(m(), 0)) 498 }) : (S(t), S(m())), null !== e && "function" == typeof e && e.call(this, t) 499 }, t.clickConfirm = function() { 500 v().click() 501 }, t.clickCancel = function() { 502 y().click() 503 }, t.init = function() { 504 if ("undefined" == typeof document) return void console.log("SweetAlert2 requires document to initialize"); 505 if (!document.getElementsByClassName(i.container).length) { 506 var e = document.createElement("div"); 507 e.className = i.container, e.innerHTML = l, document.body.appendChild(e); 508 var n = f(), 509 o = k(n, i.input), 510 r = k(n, i.select), 511 a = n.querySelector("#" + i.checkbox), 512 c = k(n, i.textarea); 513 o.oninput = function() { 514 t.resetValidationError() 515 }, o.onkeyup = function(e) { 516 e.stopPropagation(), 13 === e.keyCode && t.clickConfirm() 517 }, r.onchange = function() { 518 t.resetValidationError() 519 }, a.onchange = function() { 520 t.resetValidationError() 521 }, c.oninput = function() { 522 t.resetValidationError() 523 }, window.addEventListener("resize", I, !1) 524 } 525 }, t.setDefaults = function(e) { 526 if (!e) throw new Error("userParams is required"); 527 if ("object" != typeof e) throw new Error("userParams has to be a object"); 528 c(V, e) 529 }, t.resetDefaults = function() { 530 V = c({}, a) 531 }, t.version = "4.0.9", window.sweetAlert = window.swal = t, 532 function() { 533 "complete" === document.readyState || "interactive" === document.readyState && document.body ? t.init() : document.addEventListener("DOMContentLoaded", function e() { 534 document.removeEventListener("DOMContentLoaded", e, !1), t.init() 535 }, !1) 536 }(), "function" == typeof Promise && (Promise.prototype.done = function() { 537 return this["catch"](function() {}) 538 }), t 539});
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.