!function(n,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):n.Sweetalert2=t()}(this,function(){"use strict";var t={title:"",titleText:"",text:"",html:"",type:null,customClass:"",target:"body",animation:!0,allowOutsideClick:!0,allowEscapeKey:!0,allowEnterKey:!0,showConfirmButton:!0,showCancelButton:!1,preConfirm:null,confirmButtonText:"OK",confirmButtonColor:"#3085d6",confirmButtonClass:null,cancelButtonText:"Cancel",cancelButtonColor:"#aaa",cancelButtonClass:null,buttonsStyling:!0,reverseButtons:!1,focusCancel:!1,showCloseButton:!1,showLoaderOnConfirm:!1,imageUrl:null,imageWidth:null,imageHeight:null,imageClass:null,timer:null,width:500,padding:20,background:"#fff",input:null,inputPlaceholder:"",inputValue:"",inputOptions:{},inputAutoTrim:!0,inputClass:null,inputAttributes:{},inputValidator:null,progressSteps:[],currentProgressStep:null,progressStepsDistance:"40px",onOpen:null,onClose:null},ft=function(n){var t={};for(var i in n)t[n[i]]="swal2-"+n[i];return t},n=ft(["container","shown","iosfix","modal","overlay","fade","show","hide","noanimation","close","title","content","buttonswrapper","confirm","cancel","icon","image","input","file","range","select","radio","checkbox","textarea","inputerror","validationerror","progresssteps","activeprogressstep","progresscircle","progressline","loading","styled"]),v=ft(["success","warning","info","question","error"]),g=function(n,t){var u,r,i;for(n=String(n).replace(/[^0-9a-f]/gi,""),n.length<6&&(n=n[0]+n[0]+n[1]+n[1]+n[2]+n[2]),t=t||0,u="#",r=0;r<3;r++)i=parseInt(n.substr(2*r,2),16),i=Math.round(Math.min(Math.max(0,i+i*t),255)).toString(16),u+=("00"+i).substr(i.length);return u},yt=function(n){var t=[];for(var i in n)t.indexOf(n[i])===-1&&t.push(n[i]);return t},s={previousWindowKeyDown:null,previousActiveElement:null,previousBodyPadding:null},pt=function(t){var e,o;if("undefined"==typeof document)return void console.error("SweetAlert2 requires document to initialize");e=document.createElement("div");e.className=n.container;e.innerHTML=wt;o=document.querySelector(t.target);o||(console.warn("SweetAlert2: Can't find the target \""+t.target+'"'),o=document.body);o.appendChild(e);var i=h(),s=f(i,n.input),c=f(i,n.file),u=i.querySelector("."+n.range+" input"),l=i.querySelector("."+n.range+" output"),a=f(i,n.select),v=i.querySelector("."+n.checkbox+" input"),y=f(i,n.textarea);return s.oninput=function(){r.resetValidationError()},s.onkeydown=function(n){setTimeout(function(){13===n.keyCode&&t.allowEnterKey&&(n.stopPropagation(),r.clickConfirm())},0)},c.onchange=function(){r.resetValidationError()},u.oninput=function(){r.resetValidationError();l.value=u.value},u.onchange=function(){r.resetValidationError();u.previousSibling.value=u.value},a.onchange=function(){r.resetValidationError()},v.onchange=function(){r.resetValidationError()},y.oninput=function(){r.resetValidationError()},i},wt=('\n <div role="dialog" aria-labelledby="'+n.title+'" aria-describedby="'+n.content+'" class="'+n.modal+'" tabindex="-1">\n   <ul class="'+n.progresssteps+'"><\/ul>\n   <div class="'+n.icon+" "+v.error+'">\n     <span class="swal2-x-mark"><span class="swal2-x-mark-line-left"><\/span><span class="swal2-x-mark-line-right"><\/span><\/span>\n   <\/div>\n   <div class="'+n.icon+" "+v.question+'">?<\/div>\n   <div class="'+n.icon+" "+v.warning+'">!<\/div>\n   <div class="'+n.icon+" "+v.info+'">i<\/div>\n   <div class="'+n.icon+" "+v.success+'">\n     <div class="swal2-success-circular-line-left"><\/div>\n     <span class="swal2-success-line-tip"><\/span> <span class="swal2-success-line-long"><\/span>\n     <div class="swal2-success-ring"><\/div> <div class="swal2-success-fix"><\/div>\n     <div class="swal2-success-circular-line-right"><\/div>\n   <\/div>\n   <img class="'+n.image+'">\n   <h2 class="'+n.title+'" id="'+n.title+'"><\/h2>\n   <div id="'+n.content+'" class="'+n.content+'"><\/div>\n   <input class="'+n.input+'">\n   <input type="file" class="'+n.file+'">\n   <div class="'+n.range+'">\n     <output><\/output>\n     <input type="range">\n   <\/div>\n   <select class="'+n.select+'"><\/select>\n   <div class="'+n.radio+'"><\/div>\n   <label for="'+n.checkbox+'" class="'+n.checkbox+'">\n     <input type="checkbox">\n   <\/label>\n   <textarea class="'+n.textarea+'"><\/textarea>\n   <div class="'+n.validationerror+'"><\/div>\n   <div class="'+n.buttonswrapper+'">\n     <button type="button" class="'+n.confirm+'">OK<\/button>\n     <button type="button" class="'+n.cancel+'">Cancel<\/button>\n   <\/div>\n   <button type="button" class="'+n.close+'" aria-label="Close this dialog">&times;<\/button>\n <\/div>\n').replace(/(^|\n)\s*/g,""),a=function(){return document.body.querySelector("."+n.container)},h=function(){return a()?a().querySelector("."+n.modal):null},bt=function(){return h().querySelectorAll("."+n.icon)},c=function(n){return a()?a().querySelector("."+n):null},et=function(){return c(n.title)},ot=function(){return c(n.content)},st=function(){return c(n.image)},nt=function(){return c(n.buttonswrapper)},it=function(){return c(n.progresssteps)},ht=function(){return c(n.validationerror)},y=function(){return c(n.confirm)},p=function(){return c(n.cancel)},ct=function(){return c(n.close)},lt=function(n){var t=[y(),p()],i;return n&&t.reverse(),i=t.concat(Array.prototype.slice.call(h().querySelectorAll('button, input:not([type=hidden]), textarea, select, a, *[tabindex]:not([tabindex="-1"])'))),yt(i)},w=function(n,t){return!!n.classList&&n.classList.contains(t)},at=function(n){if(n.focus(),"file"!==n.type){var t=n.value;n.value="";n.value=t}},i=function(n,t){n&&t&&t.split(/\s+/).filter(Boolean).forEach(function(t){n.classList.add(t)})},o=function(n,t){n&&t&&t.split(/\s+/).filter(Boolean).forEach(function(t){n.classList.remove(t)})},f=function(n,t){for(var i=0;i<n.childNodes.length;i++)if(w(n.childNodes[i],t))return n.childNodes[i]},u=function(n,t){t||(t="block");n.style.opacity="";n.style.display=t},e=function(n){n.style.opacity="";n.style.display="none"},kt=function(n){for(;n.firstChild;)n.removeChild(n.firstChild)},tt=function(n){return n.offsetWidth||n.offsetHeight||n.getClientRects().length},dt=function(n,t){n.style.removeProperty?n.style.removeProperty(t):n.style.removeAttribute(t)},gt=function(n){var i,t;if(!tt(n))return!1;"function"==typeof MouseEvent?(i=new MouseEvent("click",{view:window,bubbles:!1,cancelable:!0}),n.dispatchEvent(i)):document.createEvent?(t=document.createEvent("MouseEvents"),t.initEvent("click",!1,!1),n.dispatchEvent(t)):document.createEventObject?n.fireEvent("onclick"):"function"==typeof n.onclick&&n.onclick()},b=function(){var i=document.createElement("div"),n={WebkitAnimation:"webkitAnimationEnd",OAnimation:"oAnimationEnd oanimationend",msAnimation:"MSAnimationEnd",animation:"animationend"};for(var t in n)if(n.hasOwnProperty(t)&&void 0!==i.style[t])return n[t];return!1}(),ni=function(){if(window.onkeydown=s.previousWindowKeyDown,s.previousActiveElement&&s.previousActiveElement.focus){var n=window.scrollX,t=window.scrollY;s.previousActiveElement.focus();n&&t&&window.scrollTo(n,t)}},ti=function(){var n,t;return"ontouchstart"in window||navigator.msMaxTouchPoints?0:(n=document.createElement("div"),n.style.width="50px",n.style.height="50px",n.style.overflow="scroll",document.body.appendChild(n),t=n.offsetWidth-n.clientWidth,document.body.removeChild(n),t)},ii=function(n,t){var i=void 0;return function(){var r=function(){i=null;n()};clearTimeout(i);i=setTimeout(r,t)}},k="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(n){return typeof n}:function(n){return n&&"function"==typeof Symbol&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},d=Object.assign||function(n){for(var i,r,t=1;t<arguments.length;t++){i=arguments[t];for(r in i)Object.prototype.hasOwnProperty.call(i,r)&&(n[r]=i[r])}return n},rt=d({},t),l=[],ut=void 0,vt=function(f){var a=h()||pt(f),g,ft,tt,rt,d,ht,lt,ut,at,gt,b,l;for(g in f)t.hasOwnProperty(g)||"extraParams"===g||console.warn('SweetAlert2: Unknown parameter "'+g+'"');for(a.style.width="number"==typeof f.width?f.width+"px":f.width,a.style.padding=f.padding+"px",a.style.background=f.background,ft=a.querySelectorAll("[class^=swal2-success-circular-line], .swal2-success-fix"),tt=0;tt<ft.length;tt++)ft[tt].style.background=f.background;var vt=et(),w=ot(),yt=nt(),s=y(),c=p(),wt=ct();if(f.titleText?vt.innerText=f.titleText:vt.innerHTML=f.title.split("\n").join("<br>"),f.text||f.html){if("object"===k(f.html))if(w.innerHTML="",0 in f.html)for(rt=0;rt in f.html;rt++)w.appendChild(f.html[rt].cloneNode(!0));else w.appendChild(f.html.cloneNode(!0));else f.html?w.innerHTML=f.html:f.text&&(w.textContent=f.text);u(w)}else e(w);for(f.showCloseButton?u(wt):e(wt),a.className=n.modal,f.customClass&&i(a,f.customClass),d=it(),ht=parseInt(null===f.currentProgressStep?r.getQueueStep():f.currentProgressStep,10),f.progressSteps.length?(u(d),kt(d),ht>=f.progressSteps.length&&console.warn("SweetAlert2: Invalid currentProgressStep parameter, it should be less than progressSteps.length (currentProgressStep like JS arrays starts from 0)"),f.progressSteps.forEach(function(t,r){var u=document.createElement("li"),e;(i(u,n.progresscircle),u.innerHTML=t,r===ht&&i(u,n.activeprogressstep),d.appendChild(u),r!==f.progressSteps.length-1)&&(e=document.createElement("li"),i(e,n.progressline),e.style.width=f.progressStepsDistance,d.appendChild(e))})):e(d),lt=bt(),ut=0;ut<lt.length;ut++)e(lt[ut]);if(f.type){at=!1;for(gt in v)if(f.type===gt){at=!0;break}if(!at)return console.error("SweetAlert2: Unknown alert type: "+f.type),!1;if(b=a.querySelector("."+n.icon+"."+v[f.type]),u(b),f.animation)switch(f.type){case"success":i(b,"swal2-animate-success-icon");i(b.querySelector(".swal2-success-line-tip"),"swal2-animate-success-line-tip");i(b.querySelector(".swal2-success-line-long"),"swal2-animate-success-line-long");break;case"error":i(b,"swal2-animate-error-icon");i(b.querySelector(".swal2-x-mark"),"swal2-animate-x-mark")}}l=st();f.imageUrl?(l.setAttribute("src",f.imageUrl),u(l),f.imageWidth?l.setAttribute("width",f.imageWidth):l.removeAttribute("width"),f.imageHeight?l.setAttribute("height",f.imageHeight):l.removeAttribute("height"),l.className=n.image,f.imageClass&&i(l,f.imageClass)):e(l);f.showCancelButton?c.style.display="inline-block":e(c);f.showConfirmButton?dt(s,"display"):e(s);f.showConfirmButton||f.showCancelButton?u(yt):e(yt);s.innerHTML=f.confirmButtonText;c.innerHTML=f.cancelButtonText;f.buttonsStyling&&(s.style.backgroundColor=f.confirmButtonColor,c.style.backgroundColor=f.cancelButtonColor);s.className=n.confirm;i(s,f.confirmButtonClass);c.className=n.cancel;i(c,f.cancelButtonClass);f.buttonsStyling?(i(s,n.styled),i(c,n.styled)):(o(s,n.styled),o(c,n.styled),s.style.backgroundColor=s.style.borderLeftColor=s.style.borderRightColor="",c.style.backgroundColor=c.style.borderLeftColor=c.style.borderRightColor="");f.animation===!0?o(a,n.noanimation):i(a,n.noanimation)},ri=function(t,r){var e=a(),f=h();t?(i(f,n.show),i(e,n.fade),o(f,n.hide)):o(f,n.fade);u(f);e.style.overflowY="hidden";b&&!w(f,n.noanimation)?f.addEventListener(b,function t(){f.removeEventListener(b,t);e.style.overflowY="auto"}):e.style.overflowY="auto";i(document.documentElement,n.shown);i(document.body,n.shown);i(e,n.shown);ui();ei();s.previousActiveElement=document.activeElement;null!==r&&"function"==typeof r&&setTimeout(function(){r(f)})},ui=function(){null===s.previousBodyPadding&&document.body.scrollHeight>window.innerHeight&&(s.previousBodyPadding=document.body.style.paddingRight,document.body.style.paddingRight=ti()+"px")},fi=function(){null!==s.previousBodyPadding&&(document.body.style.paddingRight=s.previousBodyPadding,s.previousBodyPadding=null)},ei=function(){if(/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream&&!w(document.body,n.iosfix)){var t=document.body.scrollTop;document.body.style.top=t*-1+"px";i(document.body,n.iosfix)}},oi=function(){if(w(document.body,n.iosfix)){var t=parseInt(document.body.style.top,10);o(document.body,n.iosfix);document.body.style.top="";document.body.scrollTop=t*-1}},r=function t(){for(var r,w,c,b=arguments.length,l=Array(b),v=0;v<b;v++)l[v]=arguments[v];if(void 0===l[0])return console.error("SweetAlert2 expects at least 1 attribute!"),!1;r=d({},rt);switch(k(l[0])){case"string":r.title=l[0];r.html=l[1];r.type=l[2];break;case"object":d(r,l[0]);r.extraParams=l[0].extraParams;"email"===r.input&&null===r.inputValidator&&(r.inputValidator=function(n){return new Promise(function(t,i){/^[a-zA-Z0-9.+_-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,6}$/.test(n)?t():i("Invalid email address")})});"url"===r.input&&null===r.inputValidator&&(r.inputValidator=function(n){return new Promise(function(t,i){/^(https?:\/\/)?([\da-z.-]+)\.([a-z.]{2,6})([\/\w .-]*)*\/?$/.test(n)?t():i("Invalid URL")})});break;default:return console.error('SweetAlert2: Unexpected type of argument! Expected "string" or "object", got '+k(l[0])),!1}return vt(r),w=a(),c=h(),new Promise(function(l,v){var rt,ki,ei,di,yi,si,pi,hi,wi,dt,pt,wt,ni,ti,ui,bt,ci;r.timer&&(c.timeout=setTimeout(function(){t.closeModal(r.onClose);v("timer")},r.timer));rt=function(t){if(!(t=t||r.input))return null;switch(t){case"select":case"textarea":case"file":return f(c,n[t]);case"checkbox":return c.querySelector("."+n.checkbox+" input");case"radio":return c.querySelector("."+n.radio+" input:checked")||c.querySelector("."+n.radio+" input:first-child");case"range":return c.querySelector("."+n.range+" input");default:return f(c,n.input)}};ki=function(){var n=rt();if(!n)return null;switch(r.input){case"checkbox":return n.checked?1:0;case"radio":return n.checked?n.value:null;case"file":return n.files.length?n.files[0]:null;default:return r.inputAutoTrim?n.value.trim():n.value}};r.input&&setTimeout(function(){var n=rt();n&&at(n)},0);for(var li=function(n){r.showLoaderOnConfirm&&t.showLoading();r.preConfirm?r.preConfirm(n,r.extraParams).then(function(i){t.closeModal(r.onClose);l(i||n)},function(n){t.hideLoading();n&&t.showValidationError(n)}):(t.closeModal(r.onClose),l(n))},fi=function(n){var h=n||window.event,f=h.target||h.srcElement,i=y(),u=p(),e=i&&(i===f||i.contains(f)),o=u&&(u===f||u.contains(f)),s;switch(h.type){case"mouseover":case"mouseup":r.buttonsStyling&&(e?i.style.backgroundColor=g(r.confirmButtonColor,-.1):o&&(u.style.backgroundColor=g(r.cancelButtonColor,-.1)));break;case"mouseout":r.buttonsStyling&&(e?i.style.backgroundColor=r.confirmButtonColor:o&&(u.style.backgroundColor=r.cancelButtonColor));break;case"mousedown":r.buttonsStyling&&(e?i.style.backgroundColor=g(r.confirmButtonColor,-.2):o&&(u.style.backgroundColor=g(r.cancelButtonColor,-.2)));break;case"click":e&&t.isVisible()?(t.disableButtons(),r.input)?(s=ki(),r.inputValidator?(t.disableInput(),r.inputValidator(s,r.extraParams).then(function(){t.enableButtons();t.enableInput();li(s)},function(n){t.enableButtons();t.enableInput();n&&t.showValidationError(n)})):li(s)):li(!0):o&&t.isVisible()&&(t.disableButtons(),t.closeModal(r.onClose),v("cancel"))}},kt=c.querySelectorAll("button"),yt=0;yt<kt.length;yt++)kt[yt].onclick=fi,kt[yt].onmouseover=fi,kt[yt].onmouseout=fi,kt[yt].onmousedown=fi;ct().onclick=function(){t.closeModal(r.onClose);v("close")};w.onclick=function(n){n.target===w&&r.allowOutsideClick&&(t.closeModal(r.onClose),v("overlay"))};var ai=nt(),b=y(),ft=p();r.reverseButtons?b.parentNode.insertBefore(ft,b):b.parentNode.insertBefore(b,ft);ei=function(n,t){for(var f,i=lt(r.focusCancel),u=0;u<i.length;u++)if(n+=t,n===i.length?n=0:n===-1&&(n=i.length-1),f=i[n],tt(f))return f.focus()};di=function(n){var i=n||window.event,u=i.keyCode||i.which;if([9,13,32,27,37,38,39,40].indexOf(u)!==-1){for(var s=i.target||i.srcElement,o=lt(r.focusCancel),f=-1,e=0;e<o.length;e++)if(s===o[e]){f=e;break}9===u?(i.shiftKey?ei(f,-1):ei(f,1),i.stopPropagation(),i.preventDefault()):37===u||38===u||39===u||40===u?document.activeElement===b&&tt(ft)?ft.focus():document.activeElement===ft&&tt(b)&&b.focus():13===u||32===u?f===-1&&r.allowEnterKey&&(gt(r.focusCancel?ft:b),i.stopPropagation(),i.preventDefault()):27===u&&r.allowEscapeKey===!0&&(t.closeModal(r.onClose),v("esc"))}};s.previousWindowKeyDown=window.onkeydown;window.onkeydown=di;r.buttonsStyling&&(b.style.borderLeftColor=r.confirmButtonColor,b.style.borderRightColor=r.confirmButtonColor);t.showLoading=t.enableLoading=function(){u(ai);u(b,"inline-block");i(ai,n.loading);i(c,n.loading);b.disabled=!0;ft.disabled=!0};t.hideLoading=t.disableLoading=function(){r.showConfirmButton||(e(b),r.showCancelButton||e(nt()));o(ai,n.loading);o(c,n.loading);b.disabled=!1;ft.disabled=!1};t.getTitle=function(){return et()};t.getContent=function(){return ot()};t.getInput=function(){return rt()};t.getImage=function(){return st()};t.getButtonsWrapper=function(){return nt()};t.getConfirmButton=function(){return y()};t.getCancelButton=function(){return p()};t.enableButtons=function(){b.disabled=!1;ft.disabled=!1};t.disableButtons=function(){b.disabled=!0;ft.disabled=!0};t.enableConfirmButton=function(){b.disabled=!1};t.disableConfirmButton=function(){b.disabled=!0};t.enableInput=function(){var n=rt();if(!n)return!1;if("radio"===n.type)for(var r=n.parentNode.parentNode,i=r.querySelectorAll("input"),t=0;t<i.length;t++)i[t].disabled=!1;else n.disabled=!1};t.disableInput=function(){var n=rt();if(!n)return!1;if(n&&"radio"===n.type)for(var r=n.parentNode.parentNode,i=r.querySelectorAll("input"),t=0;t<i.length;t++)i[t].disabled=!0;else n.disabled=!0};t.recalculateHeight=ii(function(){var n=h(),t;n&&(t=n.style.display,n.style.minHeight="",u(n),n.style.minHeight=n.scrollHeight+1+"px",n.style.display=t)},50);t.showValidationError=function(t){var f=ht(),r;f.innerHTML=t;u(f);r=rt();r&&(at(r),i(r,n.inputerror))};t.resetValidationError=function(){var r=ht(),i;e(r);t.recalculateHeight();i=rt();i&&o(i,n.inputerror)};t.getProgressSteps=function(){return r.progressSteps};t.setProgressSteps=function(n){r.progressSteps=n;vt(r)};t.showProgressSteps=function(){u(it())};t.hideProgressSteps=function(){e(it())};t.enableButtons();t.hideLoading();t.resetValidationError();for(var vi=["input","file","range","select","radio","checkbox","textarea"],d=void 0,oi=0;oi<vi.length;oi++){if(yi=n[vi[oi]],si=f(c,yi),d=rt(vi[oi])){for(pi in d.attributes)d.attributes.hasOwnProperty(pi)&&(hi=d.attributes[pi].name,"type"!==hi&&"value"!==hi&&d.removeAttribute(hi));for(wi in r.inputAttributes)d.setAttribute(wi,r.inputAttributes[wi])}si.className=yi;r.inputClass&&i(si,r.inputClass);e(si)}dt=void 0;switch(r.input){case"text":case"email":case"password":case"number":case"tel":case"url":d=f(c,n.input);d.value=r.inputValue;d.placeholder=r.inputPlaceholder;d.type=r.input;u(d);break;case"file":d=f(c,n.file);d.placeholder=r.inputPlaceholder;d.type=r.input;u(d);break;case"range":var bi=f(c,n.range),gi=bi.querySelector("input"),nr=bi.querySelector("output");gi.value=r.inputValue;gi.type=r.input;nr.value=r.inputValue;u(bi);break;case"select":pt=f(c,n.select);(pt.innerHTML="",r.inputPlaceholder)&&(wt=document.createElement("option"),wt.innerHTML=r.inputPlaceholder,wt.value="",wt.disabled=!0,wt.selected=!0,pt.appendChild(wt));dt=function(n){var i,t;for(i in n)t=document.createElement("option"),t.value=i,t.innerHTML=n[i],r.inputValue===i&&(t.selected=!0),pt.appendChild(t);u(pt);pt.focus()};break;case"radio":ni=f(c,n.radio);ni.innerHTML="";dt=function(t){var f,o;for(f in t){var i=document.createElement("input"),e=document.createElement("label"),s=document.createElement("span");i.type="radio";i.name=n.radio;i.value=f;r.inputValue===f&&(i.checked=!0);s.innerHTML=t[f];e.appendChild(i);e.appendChild(s);e.for=i.id;ni.appendChild(e)}u(ni);o=ni.querySelectorAll("input");o.length&&o[0].focus()};break;case"checkbox":ti=f(c,n.checkbox);ui=rt("checkbox");ui.type="checkbox";ui.value=1;ui.id=n.checkbox;ui.checked=Boolean(r.inputValue);bt=ti.getElementsByTagName("span");bt.length&&ti.removeChild(bt[0]);bt=document.createElement("span");bt.innerHTML=r.inputPlaceholder;ti.appendChild(bt);u(ti);break;case"textarea":ci=f(c,n.textarea);ci.value=r.inputValue;ci.placeholder=r.inputPlaceholder;u(ci);break;case null:break;default:console.error('SweetAlert2: Unexpected type of input! Expected "text", "email", "password", "number", "tel", "select", "radio", "checkbox", "textarea", "file" or "url", got "'+r.input+'"')}"select"!==r.input&&"radio"!==r.input||(r.inputOptions instanceof Promise?(t.showLoading(),r.inputOptions.then(function(n){t.hideLoading();dt(n)})):"object"===k(r.inputOptions)?dt(r.inputOptions):console.error("SweetAlert2: Unexpected type of inputOptions! Expected object or Promise, got "+k(r.inputOptions)));ri(r.animation,r.onOpen);r.allowEnterKey?ei(-1,1):document.activeElement&&document.activeElement.blur();a().scrollTop=0;"undefined"==typeof MutationObserver||ut||(ut=new MutationObserver(t.recalculateHeight),ut.observe(c,{childList:!0,characterData:!0,subtree:!0}))})};return r.isVisible=function(){return!!h()},r.queue=function(n){l=n;var t=function(){l=[];document.body.removeAttribute("data-swal2-queue-step")},i=[];return new Promise(function(n,u){!function f(e,o){e<l.length?(document.body.setAttribute("data-swal2-queue-step",e),r(l[e]).then(function(n){i.push(n);f(e+1,o)},function(n){t();u(n)})):(t(),n(i))}(0)})},r.getQueueStep=function(){return document.body.getAttribute("data-swal2-queue-step")},r.insertQueueStep=function(n,t){return t&&t<l.length?l.splice(t,0,n):l.push(n)},r.deleteQueueStep=function(n){void 0!==l[n]&&l.splice(n,1)},r.close=r.closeModal=function(t){var u=a(),r=h(),f;r&&(o(r,n.show),i(r,n.hide),clearTimeout(r.timeout),ni(),f=function(){u.parentNode&&u.parentNode.removeChild(u);o(document.documentElement,n.shown);o(document.body,n.shown);fi();oi()},b&&!w(r,n.noanimation)?r.addEventListener(b,function t(){r.removeEventListener(b,t);w(r,n.hide)&&f()}):f(),null!==t&&"function"==typeof t&&setTimeout(function(){t(r)}))},r.clickConfirm=function(){return y().click()},r.clickCancel=function(){return p().click()},r.setDefaults=function(n){if(!n||"object"!==(void 0===n?"undefined":k(n)))return console.error("SweetAlert2: the argument for setDefaults() is required and has to be a object");for(var i in n)t.hasOwnProperty(i)||"extraParams"===i||(console.warn('SweetAlert2: Unknown parameter "'+i+'"'),delete n[i]);d(rt,n)},r.resetDefaults=function(){rt=d({},t)},r.noop=function(){},r.version="6.6.2",r.default=r,r});window.Sweetalert2&&(window.sweetAlert=window.swal=window.Sweetalert2)