!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):e.Sweetalert2=t()}(this,function(){"use strict";var q="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},s=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},o=function(){function o(e,t){for(var n=0;n\n
\n \n
\n \n
\n
\n ?\n
\n
\n !\n
\n
\n i\n
\n
\n
\n \n
\n
\n
\n \n

\n \n
\n
\n
\n \n \n
\n \n \n
\n \n
\n \n \n
\n
\n
\n \n \n
\n
\n
\n \n').replace(/(^|\n)\s*/g,""),te=function(e){var t=P();if(t&&(t.parentNode.removeChild(t),A([document.documentElement,document.body],[D["no-backdrop"],D["toast-shown"],D["has-column"]])),!b()){var n=document.createElement("div");n.className=D.container,n.innerHTML=w,("string"==typeof e.target?document.querySelector(e.target):e.target).appendChild(n);var o=E(),r=Z(),i=z(r,D.input),a=z(r,D.file),s=r.querySelector("."+D.range+" input"),u=r.querySelector("."+D.range+" output"),c=z(r,D.select),l=r.querySelector("."+D.checkbox+" input"),d=z(r,D.textarea);o.setAttribute("role",e.toast?"alert":"dialog"),o.setAttribute("aria-live",e.toast?"polite":"assertive"),e.toast||o.setAttribute("aria-modal","true");var p=void 0,f=function(e){Ae.isVisible()&&p!==e.target.value&&Ae.resetValidationError(),p=e.target.value};return i.oninput=f,a.onchange=f,c.onchange=f,l.onchange=f,d.oninput=f,s.oninput=function(e){f(e),u.value=s.value},s.onchange=function(e){f(e),s.nextSibling.value=s.value},o}I("SweetAlert2 requires document to initialize")},ne=function(e,t){if(!e)return F(t);if("object"===(void 0===e?"undefined":q(e)))if(t.innerHTML="",0 in e)for(var n=0;n in e;n++)t.appendChild(e[n].cloneNode(!0));else t.appendChild(e.cloneNode(!0));else e&&(t.innerHTML=e);U(t)},C=function(){if(b())return!1;var e=document.createElement("div"),t={WebkitAnimation:"webkitAnimationEnd",OAnimation:"oAnimationEnd oanimationend",animation:"animationend"};for(var n in t)if(t.hasOwnProperty(n)&&void 0!==e.style[n])return t[n];return!1}(),oe=function(r){var i=g(),a=parseInt(null===r.currentProgressStep?Ae.getQueueStep():r.currentProgressStep,10);r.progressSteps&&r.progressSteps.length?(U(i),function(e){for(;e.firstChild;)e.removeChild(e.firstChild)}(i),a>=r.progressSteps.length&&x("Invalid currentProgressStep parameter, it should be less than progressSteps.length (currentProgressStep like JS arrays starts from 0)"),r.progressSteps.forEach(function(e,t){var n=document.createElement("li");if(W(n,D.progresscircle),n.innerHTML=e,t===a&&W(n,D.activeprogressstep),i.appendChild(n),t!==r.progressSteps.length-1){var o=document.createElement("li");W(o,D.progressline),r.progressStepsDistance&&(o.style.width=r.progressStepsDistance),i.appendChild(o)}})):F(i)},k=function(){null===p.previousBodyPadding&&document.body.scrollHeight>window.innerHeight&&(p.previousBodyPadding=parseInt(window.getComputedStyle(document.body).getPropertyValue("padding-right")),document.body.style.paddingRight=p.previousBodyPadding+function(){if("ontouchstart"in window||navigator.msMaxTouchPoints)return 0;var e=document.createElement("div");e.style.width="50px",e.style.height="50px",e.style.overflow="scroll",document.body.appendChild(e);var t=e.offsetWidth-e.clientWidth;return document.body.removeChild(e),t}()+"px")},re={},T=function(e,n){var o=P(),t=E();if(t){null!==e&&"function"==typeof e&&e(t),A(t,D.show),W(t,D.hide);var r=function(){var e,t;y()||(e=window.scrollX,t=window.scrollY,re.restoreFocusTimeout=setTimeout(function(){re.previousActiveElement&&re.previousActiveElement.focus&&(re.previousActiveElement.focus(),re.previousActiveElement=null)},100),void 0!==e&&void 0!==t&&window.scrollTo(e,t),re.keydownTarget.removeEventListener("keydown",re.keydownHandler,{capture:re.keydownListenerCapture}),re.keydownHandlerAdded=!1),o.parentNode&&o.parentNode.removeChild(o),A([document.documentElement,document.body],[D.shown,D["height-auto"],D["no-backdrop"],D["toast-shown"],D["toast-column"]]),v()&&(null!==p.previousBodyPadding&&(document.body.style.paddingRight=p.previousBodyPadding,p.previousBodyPadding=null),function(){if(f(document.body,D.iosfix)){var e=parseInt(document.body.style.top,10);A(document.body,D.iosfix),document.body.style.top="",document.body.scrollTop=-1*e}}()),null!==n&&"function"==typeof n&&setTimeout(function(){n()})};C&&!f(t,D.noanimation)?t.addEventListener(C,function e(){t.removeEventListener(C,e),f(t,D.hide)&&r()}):r()}};function j(e){var t=function e(){for(var t=arguments.length,n=Array(t),o=0;o")),ne(t.title,u)),"string"==typeof t.backdrop?P().style.background=t.backdrop:t.backdrop||W([document.documentElement,document.body],D["no-backdrop"]),t.html?ne(t.html,c):t.text?(c.textContent=t.text,U(c)):F(c),t.position in D?W(s,D[t.position]):(x('The "position" parameter is not valid, defaulting to "center"'),W(s,D.center)),t.grow&&"string"==typeof t.grow){var h="grow-"+t.grow;h in D&&W(s,D[h])}"function"==typeof t.animation&&(t.animation=t.animation.call()),t.showCloseButton?(f.setAttribute("aria-label",t.closeButtonAriaLabel),U(f)):F(f),e.className=D.popup,t.toast?(W([document.documentElement,document.body],D["toast-shown"]),W(e,D.toast)):W(e,D.modal),t.customClass&&W(e,t.customClass),oe(t);for(var g=O(),v=0;v