konnektive-engine 0.3.43 → 0.3.50
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/actions.js +1 -1
- package/dist/api.js +1 -1
- package/dist/constants.js +1 -1
- package/dist/conversion.js +1 -1
- package/dist/cookies.js +1 -1
- package/dist/index.js +1 -1
- package/dist/international.js +1 -1
- package/dist/redtrack.js +1 -1
- package/dist/render.js +1 -1
- package/dist/sale-postback.js +1 -1
- package/dist/sale.js +1 -1
- package/dist/state.js +1 -1
- package/dist/utils.js +1 -1
- package/dist/validation-sapphire.js +1 -1
- package/dist/validation.js +1 -1
- package/dist/zip-autofill-google.js +1 -1
- package/dist/zip-autofill.js +1 -1
- package/package.json +1 -1
package/dist/utils.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
!function(e,t){if("object"==typeof exports&&"object"==typeof module)module.exports=t(require("jQuery"));else if("function"==typeof define&&define.amd)define(["jQuery"],t);else{var o="object"==typeof exports?t(require("jQuery")):t(e.jQuery);for(var n in o)("object"==typeof exports?exports:e)[n]=o[n]}}(this,(e=>(()=>{var t={244:(e,t,o)=>{"use strict";function n(e){return n="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},n(e)}o.d(t,{getConfig:()=>r,getCookieValue:()=>s,getSessionStorage:()=>i,setSessionStorage:()=>a});var s=(o(147).version,localStorage.getItem("session_id"),function(e){var t=document.cookie.match(new RegExp("(^| )".concat(e,"=([^;]+)")));return t?t[2]:""}),a=function(e,t){var o=t;"string"!==o&&(o=JSON.stringify(o)),sessionStorage.setItem(e,o)},i=function(e){try{var t=sessionStorage.getItem(e),o=JSON.parse(t);return o&&"string"==typeof o||o&&"object"===n(o)?o:""}catch(e){return""}},r=function(){return function(e){try{var t=localStorage.getItem(e),o=JSON.parse(t);return o&&"string"==typeof o||o&&"object"===n(o)?o:""}catch(t){return localStorage.getItem(e)}}("@konnektive-engine")||{}}},455:function(e){e.exports=function(){"use strict";const e={},t=t=>new Promise((o=>{if(!t)return o();const n=window.scrollX,s=window.scrollY;e.restoreFocusTimeout=setTimeout((()=>{e.previousActiveElement instanceof HTMLElement?(e.previousActiveElement.focus(),e.previousActiveElement=null):document.body&&document.body.focus(),o()}),100),window.scrollTo(n,s)}));var o={promise:new WeakMap,innerParams:new WeakMap,domCache:new WeakMap};const n="swal2-",s=["container","shown","height-auto","iosfix","popup","modal","no-backdrop","no-transition","toast","toast-shown","show","hide","close","title","html-container","actions","confirm","deny","cancel","default-outline","footer","icon","icon-content","image","input","file","range","select","radio","checkbox","label","textarea","inputerror","input-label","validation-message","progress-steps","active-progress-step","progress-step","progress-step-line","loader","loading","styled","top","top-start","top-end","top-left","top-right","center","center-start","center-end","center-left","center-right","bottom","bottom-start","bottom-end","bottom-left","bottom-right","grow-row","grow-column","grow-fullscreen","rtl","timer-progress-bar","timer-progress-bar-container","scrollbar-measure","icon-success","icon-warning","icon-info","icon-question","icon-error"].reduce(((e,t)=>(e[t]=n+t,e)),{}),a=["success","warning","info","question","error"].reduce(((e,t)=>(e[t]=n+t,e)),{}),i="SweetAlert2:",r=e=>e.charAt(0).toUpperCase()+e.slice(1),l=e=>{console.warn(`${i} ${"object"==typeof e?e.join(" "):e}`)},c=e=>{console.error(`${i} ${e}`)},d=[],u=(e,t)=>{var o;o=`"${e}" is deprecated and will be removed in the next major release. Please use "${t}" instead.`,d.includes(o)||(d.push(o),l(o))},p=e=>"function"==typeof e?e():e,w=e=>e&&"function"==typeof e.toPromise,m=e=>w(e)?e.toPromise():Promise.resolve(e),h=e=>e&&Promise.resolve(e)===e,g=()=>document.body.querySelector(`.${s.container}`),f=e=>{const t=g();return t?t.querySelector(e):null},b=e=>f(`.${e}`),y=()=>b(s.popup),v=()=>b(s.icon),x=()=>b(s.title),k=()=>b(s["html-container"]),C=()=>b(s.image),A=()=>b(s["progress-steps"]),S=()=>b(s["validation-message"]),B=()=>f(`.${s.actions} .${s.confirm}`),$=()=>f(`.${s.actions} .${s.cancel}`),P=()=>f(`.${s.actions} .${s.deny}`),E=()=>f(`.${s.loader}`),T=()=>b(s.actions),L=()=>b(s.footer),j=()=>b(s["timer-progress-bar"]),O=()=>b(s.close),I=()=>{const e=y();if(!e)return[];const t=e.querySelectorAll('[tabindex]:not([tabindex="-1"]):not([tabindex="0"])'),o=Array.from(t).sort(((e,t)=>{const o=parseInt(e.getAttribute("tabindex")||"0"),n=parseInt(t.getAttribute("tabindex")||"0");return o>n?1:o<n?-1:0})),n=e.querySelectorAll('\n a[href],\n area[href],\n input:not([disabled]),\n select:not([disabled]),\n textarea:not([disabled]),\n button:not([disabled]),\n iframe,\n object,\n embed,\n [tabindex="0"],\n [contenteditable],\n audio[controls],\n video[controls],\n summary\n'),s=Array.from(n).filter((e=>"-1"!==e.getAttribute("tabindex")));return[...new Set(o.concat(s))].filter((e=>X(e)))},M=()=>H(document.body,s.shown)&&!H(document.body,s["toast-shown"])&&!H(document.body,s["no-backdrop"]),D=()=>{const e=y();return!!e&&H(e,s.toast)},z=(e,t)=>{if(e.textContent="",t){const o=(new DOMParser).parseFromString(t,"text/html"),n=o.querySelector("head");n&&Array.from(n.childNodes).forEach((t=>{e.appendChild(t)}));const s=o.querySelector("body");s&&Array.from(s.childNodes).forEach((t=>{t instanceof HTMLVideoElement||t instanceof HTMLAudioElement?e.appendChild(t.cloneNode(!0)):e.appendChild(t)}))}},H=(e,t)=>{if(!t)return!1;const o=t.split(/\s+/);for(let t=0;t<o.length;t++)if(!e.classList.contains(o[t]))return!1;return!0},q=(e,t,o)=>{if(((e,t)=>{Array.from(e.classList).forEach((o=>{Object.values(s).includes(o)||Object.values(a).includes(o)||Object.values(t.showClass||{}).includes(o)||e.classList.remove(o)}))})(e,t),t.customClass&&t.customClass[o]){if("string"!=typeof t.customClass[o]&&!t.customClass[o].forEach)return void l(`Invalid type of customClass.${o}! Expected string or iterable object, got "${typeof t.customClass[o]}"`);F(e,t.customClass[o])}},V=(e,t)=>{if(!t)return null;switch(t){case"select":case"textarea":case"file":return e.querySelector(`.${s.popup} > .${s[t]}`);case"checkbox":return e.querySelector(`.${s.popup} > .${s.checkbox} input`);case"radio":return e.querySelector(`.${s.popup} > .${s.radio} input:checked`)||e.querySelector(`.${s.popup} > .${s.radio} input:first-child`);case"range":return e.querySelector(`.${s.popup} > .${s.range} input`);default:return e.querySelector(`.${s.popup} > .${s.input}`)}},N=e=>{if(e.focus(),"file"!==e.type){const t=e.value;e.value="",e.value=t}},_=(e,t,o)=>{e&&t&&("string"==typeof t&&(t=t.split(/\s+/).filter(Boolean)),t.forEach((t=>{Array.isArray(e)?e.forEach((e=>{o?e.classList.add(t):e.classList.remove(t)})):o?e.classList.add(t):e.classList.remove(t)})))},F=(e,t)=>{_(e,t,!0)},R=(e,t)=>{_(e,t,!1)},U=(e,t)=>{const o=Array.from(e.children);for(let e=0;e<o.length;e++){const n=o[e];if(n instanceof HTMLElement&&H(n,t))return n}},W=(e,t,o)=>{o===`${parseInt(o)}`&&(o=parseInt(o)),o||0===parseInt(o)?e.style[t]="number"==typeof o?`${o}px`:o:e.style.removeProperty(t)},Y=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"flex";e&&(e.style.display=t)},Z=e=>{e&&(e.style.display="none")},K=(e,t,o,n)=>{const s=e.querySelector(t);s&&(s.style[o]=n)},J=function(e,t){t?Y(e,arguments.length>2&&void 0!==arguments[2]?arguments[2]:"flex"):Z(e)},X=e=>!(!e||!(e.offsetWidth||e.offsetHeight||e.getClientRects().length)),Q=e=>!!(e.scrollHeight>e.clientHeight),G=e=>{const t=window.getComputedStyle(e),o=parseFloat(t.getPropertyValue("animation-duration")||"0"),n=parseFloat(t.getPropertyValue("transition-duration")||"0");return o>0||n>0},ee=function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];const o=j();X(o)&&(t&&(o.style.transition="none",o.style.width="100%"),setTimeout((()=>{o.style.transition=`width ${e/1e3}s linear`,o.style.width="0%"}),10))},te=()=>"undefined"==typeof window||"undefined"==typeof document,oe=`\n <div aria-labelledby="${s.title}" aria-describedby="${s["html-container"]}" class="${s.popup}" tabindex="-1">\n <button type="button" class="${s.close}"></button>\n <ul class="${s["progress-steps"]}"></ul>\n <div class="${s.icon}"></div>\n <img class="${s.image}" />\n <h2 class="${s.title}" id="${s.title}"></h2>\n <div class="${s["html-container"]}" id="${s["html-container"]}"></div>\n <input class="${s.input}" id="${s.input}" />\n <input type="file" class="${s.file}" />\n <div class="${s.range}">\n <input type="range" />\n <output></output>\n </div>\n <select class="${s.select}" id="${s.select}"></select>\n <div class="${s.radio}"></div>\n <label class="${s.checkbox}">\n <input type="checkbox" id="${s.checkbox}" />\n <span class="${s.label}"></span>\n </label>\n <textarea class="${s.textarea}" id="${s.textarea}"></textarea>\n <div class="${s["validation-message"]}" id="${s["validation-message"]}"></div>\n <div class="${s.actions}">\n <div class="${s.loader}"></div>\n <button type="button" class="${s.confirm}"></button>\n <button type="button" class="${s.deny}"></button>\n <button type="button" class="${s.cancel}"></button>\n </div>\n <div class="${s.footer}"></div>\n <div class="${s["timer-progress-bar-container"]}">\n <div class="${s["timer-progress-bar"]}"></div>\n </div>\n </div>\n`.replace(/(^|\n)\s*/g,""),ne=()=>{e.currentInstance.resetValidationMessage()},se=e=>{const t=(()=>{const e=g();return!!e&&(e.remove(),R([document.documentElement,document.body],[s["no-backdrop"],s["toast-shown"],s["has-column"]]),!0)})();if(te())return void c("SweetAlert2 requires document to initialize");const o=document.createElement("div");o.className=s.container,t&&F(o,s["no-transition"]),z(o,oe);const n="string"==typeof(a=e.target)?document.querySelector(a):a;var a;n.appendChild(o),(e=>{const t=y();t.setAttribute("role",e.toast?"alert":"dialog"),t.setAttribute("aria-live",e.toast?"polite":"assertive"),e.toast||t.setAttribute("aria-modal","true")})(e),(e=>{"rtl"===window.getComputedStyle(e).direction&&F(g(),s.rtl)})(n),(()=>{const e=y(),t=U(e,s.input),o=U(e,s.file),n=e.querySelector(`.${s.range} input`),a=e.querySelector(`.${s.range} output`),i=U(e,s.select),r=e.querySelector(`.${s.checkbox} input`),l=U(e,s.textarea);t.oninput=ne,o.onchange=ne,i.onchange=ne,r.onchange=ne,l.oninput=ne,n.oninput=()=>{ne(),a.value=n.value},n.onchange=()=>{ne(),a.value=n.value}})()},ae=(e,t)=>{e instanceof HTMLElement?t.appendChild(e):"object"==typeof e?ie(e,t):e&&z(t,e)},ie=(e,t)=>{e.jquery?re(t,e):z(t,e.toString())},re=(e,t)=>{if(e.textContent="",0 in t)for(let o=0;o in t;o++)e.appendChild(t[o].cloneNode(!0));else e.appendChild(t.cloneNode(!0))},le=(()=>{if(te())return!1;const e=document.createElement("div"),t={WebkitAnimation:"webkitAnimationEnd",animation:"animationend"};for(const o in t)if(Object.prototype.hasOwnProperty.call(t,o)&&void 0!==e.style[o])return t[o];return!1})(),ce=(e,t)=>{const o=T(),n=E();o&&n&&(t.showConfirmButton||t.showDenyButton||t.showCancelButton?Y(o):Z(o),q(o,t,"actions"),function(e,t,o){const n=B(),a=P(),i=$();n&&a&&i&&(de(n,"confirm",o),de(a,"deny",o),de(i,"cancel",o),function(e,t,o,n){n.buttonsStyling?(F([e,t,o],s.styled),n.confirmButtonColor&&(e.style.backgroundColor=n.confirmButtonColor,F(e,s["default-outline"])),n.denyButtonColor&&(t.style.backgroundColor=n.denyButtonColor,F(t,s["default-outline"])),n.cancelButtonColor&&(o.style.backgroundColor=n.cancelButtonColor,F(o,s["default-outline"]))):R([e,t,o],s.styled)}(n,a,i,o),o.reverseButtons&&(o.toast?(e.insertBefore(i,n),e.insertBefore(a,n)):(e.insertBefore(i,t),e.insertBefore(a,t),e.insertBefore(n,t))))}(o,n,t),z(n,t.loaderHtml||""),q(n,t,"loader"))};function de(e,t,o){const n=r(t);J(e,o[`show${n}Button`],"inline-block"),z(e,o[`${t}ButtonText`]||""),e.setAttribute("aria-label",o[`${t}ButtonAriaLabel`]||""),e.className=s[t],q(e,o,`${t}Button`)}const ue=(e,t)=>{const o=g();o&&(function(e,t){"string"==typeof t?e.style.background=t:t||F([document.documentElement,document.body],s["no-backdrop"])}(o,t.backdrop),function(e,t){t&&(t in s?F(e,s[t]):(l('The "position" parameter is not valid, defaulting to "center"'),F(e,s.center)))}(o,t.position),function(e,t){t&&F(e,s[`grow-${t}`])}(o,t.grow),q(o,t,"container"))};const pe=["input","file","range","select","radio","checkbox","textarea"],we=e=>{if(!ve[e.input])return void c(`Unexpected type of input! Expected "text", "email", "password", "number", "tel", "select", "radio", "checkbox", "textarea", "file" or "url", got "${e.input}"`);const t=be(e.input),o=ve[e.input](t,e);Y(t),e.inputAutoFocus&&setTimeout((()=>{N(o)}))},me=(e,t)=>{const o=V(y(),e);if(o){(e=>{for(let t=0;t<e.attributes.length;t++){const o=e.attributes[t].name;["id","type","value","style"].includes(o)||e.removeAttribute(o)}})(o);for(const e in t)o.setAttribute(e,t[e])}},he=e=>{const t=be(e.input);"object"==typeof e.customClass&&F(t,e.customClass.input)},ge=(e,t)=>{e.placeholder&&!t.inputPlaceholder||(e.placeholder=t.inputPlaceholder)},fe=(e,t,o)=>{if(o.inputLabel){const n=document.createElement("label"),a=s["input-label"];n.setAttribute("for",e.id),n.className=a,"object"==typeof o.customClass&&F(n,o.customClass.inputLabel),n.innerText=o.inputLabel,t.insertAdjacentElement("beforebegin",n)}},be=e=>U(y(),s[e]||s.input),ye=(e,t)=>{["string","number"].includes(typeof t)?e.value=`${t}`:h(t)||l(`Unexpected type of inputValue! Expected "string", "number" or "Promise", got "${typeof t}"`)},ve={};ve.text=ve.email=ve.password=ve.number=ve.tel=ve.url=(e,t)=>(ye(e,t.inputValue),fe(e,e,t),ge(e,t),e.type=t.input,e),ve.file=(e,t)=>(fe(e,e,t),ge(e,t),e),ve.range=(e,t)=>{const o=e.querySelector("input"),n=e.querySelector("output");return ye(o,t.inputValue),o.type=t.input,ye(n,t.inputValue),fe(o,e,t),e},ve.select=(e,t)=>{if(e.textContent="",t.inputPlaceholder){const o=document.createElement("option");z(o,t.inputPlaceholder),o.value="",o.disabled=!0,o.selected=!0,e.appendChild(o)}return fe(e,e,t),e},ve.radio=e=>(e.textContent="",e),ve.checkbox=(e,t)=>{const o=V(y(),"checkbox");o.value="1",o.checked=Boolean(t.inputValue);const n=e.querySelector("span");return z(n,t.inputPlaceholder),o},ve.textarea=(e,t)=>{ye(e,t.inputValue),ge(e,t),fe(e,e,t);return setTimeout((()=>{if("MutationObserver"in window){const o=parseInt(window.getComputedStyle(y()).width);new MutationObserver((()=>{if(!document.body.contains(e))return;const n=e.offsetWidth+(s=e,parseInt(window.getComputedStyle(s).marginLeft)+parseInt(window.getComputedStyle(s).marginRight));var s;n>o?y().style.width=`${n}px`:W(y(),"width",t.width)})).observe(e,{attributes:!0,attributeFilter:["style"]})}})),e};const xe=(e,t)=>{const n=k();n&&(q(n,t,"htmlContainer"),t.html?(ae(t.html,n),Y(n,"block")):t.text?(n.textContent=t.text,Y(n,"block")):Z(n),((e,t)=>{const n=y(),a=o.innerParams.get(e),i=!a||t.input!==a.input;pe.forEach((e=>{const o=U(n,s[e]);me(e,t.inputAttributes),o.className=s[e],i&&Z(o)})),t.input&&(i&&we(t),he(t))})(e,t))},ke=(e,t)=>{for(const[o,n]of Object.entries(a))t.icon!==o&&R(e,n);F(e,t.icon&&a[t.icon]),Se(e,t),Ce(),q(e,t,"icon")},Ce=()=>{const e=y();if(!e)return;const t=window.getComputedStyle(e).getPropertyValue("background-color"),o=e.querySelectorAll("[class^=swal2-success-circular-line], .swal2-success-fix");for(let e=0;e<o.length;e++)o[e].style.backgroundColor=t},Ae=(e,t)=>{if(!t.icon&&!t.iconHtml)return;let o=e.innerHTML,n="";t.iconHtml?n=Be(t.iconHtml):"success"===t.icon?(n='\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',o=o.replace(/ style=".*?"/g,"")):"error"===t.icon?n='\n <span class="swal2-x-mark">\n <span class="swal2-x-mark-line-left"></span>\n <span class="swal2-x-mark-line-right"></span>\n </span>\n':t.icon&&(n=Be({question:"?",warning:"!",info:"i"}[t.icon])),o.trim()!==n.trim()&&z(e,n)},Se=(e,t)=>{if(t.iconColor){e.style.color=t.iconColor,e.style.borderColor=t.iconColor;for(const o of[".swal2-success-line-tip",".swal2-success-line-long",".swal2-x-mark-line-left",".swal2-x-mark-line-right"])K(e,o,"backgroundColor",t.iconColor);K(e,".swal2-success-ring","borderColor",t.iconColor)}},Be=e=>`<div class="${s["icon-content"]}">${e}</div>`,$e=(e,t)=>{const o=t.showClass||{};e.className=`${s.popup} ${X(e)?o.popup:""}`,t.toast?(F([document.documentElement,document.body],s["toast-shown"]),F(e,s.toast)):F(e,s.modal),q(e,t,"popup"),"string"==typeof t.customClass&&F(e,t.customClass),t.icon&&F(e,s[`icon-${t.icon}`])},Pe=e=>{const t=document.createElement("li");return F(t,s["progress-step"]),z(t,e),t},Ee=e=>{const t=document.createElement("li");return F(t,s["progress-step-line"]),e.progressStepsDistance&&W(t,"width",e.progressStepsDistance),t},Te=(e,t)=>{((e,t)=>{const o=g(),n=y();if(o&&n){if(t.toast){W(o,"width",t.width),n.style.width="100%";const e=E();e&&n.insertBefore(e,v())}else W(n,"width",t.width);W(n,"padding",t.padding),t.color&&(n.style.color=t.color),t.background&&(n.style.background=t.background),Z(S()),$e(n,t)}})(0,t),ue(0,t),((e,t)=>{const o=A();if(!o)return;const{progressSteps:n,currentProgressStep:a}=t;n&&0!==n.length&&void 0!==a?(Y(o),o.textContent="",a>=n.length&&l("Invalid currentProgressStep parameter, it should be less than progressSteps.length (currentProgressStep like JS arrays starts from 0)"),n.forEach(((e,i)=>{const r=Pe(e);if(o.appendChild(r),i===a&&F(r,s["active-progress-step"]),i!==n.length-1){const e=Ee(t);o.appendChild(e)}}))):Z(o)})(0,t),((e,t)=>{const n=o.innerParams.get(e),s=v();if(s){if(n&&t.icon===n.icon)return Ae(s,t),void ke(s,t);if(t.icon||t.iconHtml){if(t.icon&&-1===Object.keys(a).indexOf(t.icon))return c(`Unknown icon! Expected "success", "error", "warning", "info" or "question", got "${t.icon}"`),void Z(s);Y(s),Ae(s,t),ke(s,t),F(s,t.showClass&&t.showClass.icon)}else Z(s)}})(e,t),((e,t)=>{const o=C();o&&(t.imageUrl?(Y(o,""),o.setAttribute("src",t.imageUrl),o.setAttribute("alt",t.imageAlt||""),W(o,"width",t.imageWidth),W(o,"height",t.imageHeight),o.className=s.image,q(o,t,"image")):Z(o))})(0,t),((e,t)=>{const o=x();o&&(J(o,t.title||t.titleText,"block"),t.title&&ae(t.title,o),t.titleText&&(o.innerText=t.titleText),q(o,t,"title"))})(0,t),((e,t)=>{const o=O();o&&(z(o,t.closeButtonHtml||""),q(o,t,"closeButton"),J(o,t.showCloseButton),o.setAttribute("aria-label",t.closeButtonAriaLabel||""))})(0,t),xe(e,t),ce(0,t),((e,t)=>{const o=L();o&&(J(o,t.footer),t.footer&&ae(t.footer,o),q(o,t,"footer"))})(0,t);const n=y();"function"==typeof t.didRender&&n&&t.didRender(n)},Le=()=>B()&&B().click(),je=Object.freeze({cancel:"cancel",backdrop:"backdrop",close:"close",esc:"esc",timer:"timer"}),Oe=e=>{e.keydownTarget&&e.keydownHandlerAdded&&(e.keydownTarget.removeEventListener("keydown",e.keydownHandler,{capture:e.keydownListenerCapture}),e.keydownHandlerAdded=!1)},Ie=(e,t)=>{const o=I();if(o.length)return(e+=t)===o.length?e=0:-1===e&&(e=o.length-1),void o[e].focus();y().focus()},Me=["ArrowRight","ArrowDown"],De=["ArrowLeft","ArrowUp"],ze=(e,t,n)=>{const s=o.innerParams.get(e);s&&(t.isComposing||229===t.keyCode||(s.stopKeydownPropagation&&t.stopPropagation(),"Enter"===t.key?He(e,t,s):"Tab"===t.key?qe(t):[...Me,...De].includes(t.key)?Ve(t.key):"Escape"===t.key&&Ne(t,s,n)))},He=(e,t,o)=>{if(p(o.allowEnterKey)&&t.target&&e.getInput()&&t.target instanceof HTMLElement&&t.target.outerHTML===e.getInput().outerHTML){if(["textarea","file"].includes(o.input))return;Le(),t.preventDefault()}},qe=e=>{const t=e.target,o=I();let n=-1;for(let e=0;e<o.length;e++)if(t===o[e]){n=e;break}e.shiftKey?Ie(n,-1):Ie(n,1),e.stopPropagation(),e.preventDefault()},Ve=e=>{const t=[B(),P(),$()];if(document.activeElement instanceof HTMLElement&&!t.includes(document.activeElement))return;const o=Me.includes(e)?"nextElementSibling":"previousElementSibling";let n=document.activeElement;for(let e=0;e<T().children.length;e++){if(n=n[o],!n)return;if(n instanceof HTMLButtonElement&&X(n))break}n instanceof HTMLButtonElement&&n.focus()},Ne=(e,t,o)=>{p(t.allowEscapeKey)&&(e.preventDefault(),o(je.esc))};var _e={swalPromiseResolve:new WeakMap,swalPromiseReject:new WeakMap};const Fe=()=>{Array.from(document.body.children).forEach((e=>{e.hasAttribute("data-previous-aria-hidden")?(e.setAttribute("aria-hidden",e.getAttribute("data-previous-aria-hidden")||""),e.removeAttribute("data-previous-aria-hidden")):e.removeAttribute("aria-hidden")}))},Re="undefined"!=typeof window&&!!window.GestureEvent,Ue=()=>{const e=g();let t;e.ontouchstart=e=>{t=We(e)},e.ontouchmove=e=>{t&&(e.preventDefault(),e.stopPropagation())}},We=e=>{const t=e.target,o=g();return!(Ye(e)||Ze(e)||t!==o&&(Q(o)||!(t instanceof HTMLElement)||"INPUT"===t.tagName||"TEXTAREA"===t.tagName||Q(k())&&k().contains(t)))},Ye=e=>e.touches&&e.touches.length&&"stylus"===e.touches[0].touchType,Ze=e=>e.touches&&e.touches.length>1;let Ke=null;const Je=()=>{null===Ke&&document.body.scrollHeight>window.innerHeight&&(Ke=parseInt(window.getComputedStyle(document.body).getPropertyValue("padding-right")),document.body.style.paddingRight=`${Ke+(()=>{const e=document.createElement("div");e.className=s["scrollbar-measure"],document.body.appendChild(e);const t=e.getBoundingClientRect().width-e.clientWidth;return document.body.removeChild(e),t})()}px`)};function Xe(o,n,a,i){D()?at(o,i):(t(a).then((()=>at(o,i))),Oe(e)),Re?(n.setAttribute("style","display:none !important"),n.removeAttribute("class"),n.innerHTML=""):n.remove(),M()&&(null!==Ke&&(document.body.style.paddingRight=`${Ke}px`,Ke=null),(()=>{if(H(document.body,s.iosfix)){const e=parseInt(document.body.style.top,10);R(document.body,s.iosfix),document.body.style.top="",document.body.scrollTop=-1*e}})(),Fe()),R([document.documentElement,document.body],[s.shown,s["height-auto"],s["no-backdrop"],s["toast-shown"]])}function Qe(e){e=ot(e);const t=_e.swalPromiseResolve.get(this),o=Ge(this);this.isAwaitingPromise?e.isDismissed||(tt(this),t(e)):o&&t(e)}const Ge=e=>{const t=y();if(!t)return!1;const n=o.innerParams.get(e);if(!n||H(t,n.hideClass.popup))return!1;R(t,n.showClass.popup),F(t,n.hideClass.popup);const s=g();return R(s,n.showClass.backdrop),F(s,n.hideClass.backdrop),nt(e,t,n),!0};function et(e){const t=_e.swalPromiseReject.get(this);tt(this),t&&t(e)}const tt=e=>{e.isAwaitingPromise&&(delete e.isAwaitingPromise,o.innerParams.get(e)||e._destroy())},ot=e=>void 0===e?{isConfirmed:!1,isDenied:!1,isDismissed:!0}:Object.assign({isConfirmed:!1,isDenied:!1,isDismissed:!1},e),nt=(e,t,o)=>{const n=g(),s=le&&G(t);"function"==typeof o.willClose&&o.willClose(t),s?st(e,t,n,o.returnFocus,o.didClose):Xe(e,n,o.returnFocus,o.didClose)},st=(t,o,n,s,a)=>{e.swalCloseEventFinishedCallback=Xe.bind(null,t,n,s,a),o.addEventListener(le,(function(t){t.target===o&&(e.swalCloseEventFinishedCallback(),delete e.swalCloseEventFinishedCallback)}))},at=(e,t)=>{setTimeout((()=>{"function"==typeof t&&t.bind(e.params)(),e._destroy&&e._destroy()}))},it=e=>{let t=y();t||new zo,t=y();const o=E();D()?Z(v()):rt(t,e),Y(o),t.setAttribute("data-loading","true"),t.setAttribute("aria-busy","true"),t.focus()},rt=(e,t)=>{const o=T(),n=E();!t&&X(B())&&(t=B()),Y(o),t&&(Z(t),n.setAttribute("data-button-to-replace",t.className)),n.parentNode.insertBefore(n,t),F([e,o],s.loading)},lt=e=>e.checked?1:0,ct=e=>e.checked?e.value:null,dt=e=>e.files.length?null!==e.getAttribute("multiple")?e.files:e.files[0]:null,ut=(e,t)=>{const o=y(),n=e=>{wt[t.input](o,mt(e),t)};w(t.inputOptions)||h(t.inputOptions)?(it(B()),m(t.inputOptions).then((t=>{e.hideLoading(),n(t)}))):"object"==typeof t.inputOptions?n(t.inputOptions):c("Unexpected type of inputOptions! Expected object, Map or Promise, got "+typeof t.inputOptions)},pt=(e,t)=>{const o=e.getInput();Z(o),m(t.inputValue).then((n=>{o.value="number"===t.input?`${parseFloat(n)||0}`:`${n}`,Y(o),o.focus(),e.hideLoading()})).catch((t=>{c(`Error in inputValue promise: ${t}`),o.value="",Y(o),o.focus(),e.hideLoading()}))},wt={select:(e,t,o)=>{const n=U(e,s.select),a=(e,t,n)=>{const s=document.createElement("option");s.value=n,z(s,t),s.selected=ht(n,o.inputValue),e.appendChild(s)};t.forEach((e=>{const t=e[0],o=e[1];if(Array.isArray(o)){const e=document.createElement("optgroup");e.label=t,e.disabled=!1,n.appendChild(e),o.forEach((t=>a(e,t[1],t[0])))}else a(n,o,t)})),n.focus()},radio:(e,t,o)=>{const n=U(e,s.radio);t.forEach((e=>{const t=e[0],a=e[1],i=document.createElement("input"),r=document.createElement("label");i.type="radio",i.name=s.radio,i.value=t,ht(t,o.inputValue)&&(i.checked=!0);const l=document.createElement("span");z(l,a),l.className=s.label,r.appendChild(i),r.appendChild(l),n.appendChild(r)}));const a=n.querySelectorAll("input");a.length&&a[0].focus()}},mt=e=>{const t=[];return"undefined"!=typeof Map&&e instanceof Map?e.forEach(((e,o)=>{let n=e;"object"==typeof n&&(n=mt(n)),t.push([o,n])})):Object.keys(e).forEach((o=>{let n=e[o];"object"==typeof n&&(n=mt(n)),t.push([o,n])})),t},ht=(e,t)=>t&&t.toString()===e.toString(),gt=(e,t)=>{const n=o.innerParams.get(e);if(!n.input)return void c(`The "input" parameter is needed to be set when using returnInputValueOn${r(t)}`);const s=((e,t)=>{const o=e.getInput();if(!o)return null;switch(t.input){case"checkbox":return lt(o);case"radio":return ct(o);case"file":return dt(o);default:return t.inputAutoTrim?o.value.trim():o.value}})(e,n);n.inputValidator?ft(e,s,t):e.getInput().checkValidity()?"deny"===t?bt(e,s):xt(e,s):(e.enableButtons(),e.showValidationMessage(n.validationMessage))},ft=(e,t,n)=>{const s=o.innerParams.get(e);e.disableInput(),Promise.resolve().then((()=>m(s.inputValidator(t,s.validationMessage)))).then((o=>{e.enableButtons(),e.enableInput(),o?e.showValidationMessage(o):"deny"===n?bt(e,t):xt(e,t)}))},bt=(e,t)=>{const n=o.innerParams.get(e||void 0);n.showLoaderOnDeny&&it(P()),n.preDeny?(e.isAwaitingPromise=!0,Promise.resolve().then((()=>m(n.preDeny(t,n.validationMessage)))).then((o=>{!1===o?(e.hideLoading(),tt(e)):e.close({isDenied:!0,value:void 0===o?t:o})})).catch((t=>vt(e||void 0,t)))):e.close({isDenied:!0,value:t})},yt=(e,t)=>{e.close({isConfirmed:!0,value:t})},vt=(e,t)=>{e.rejectPromise(t)},xt=(e,t)=>{const n=o.innerParams.get(e||void 0);n.showLoaderOnConfirm&&it(),n.preConfirm?(e.resetValidationMessage(),e.isAwaitingPromise=!0,Promise.resolve().then((()=>m(n.preConfirm(t,n.validationMessage)))).then((o=>{X(S())||!1===o?(e.hideLoading(),tt(e)):yt(e,void 0===o?t:o)})).catch((t=>vt(e||void 0,t)))):yt(e,t)};function kt(){const e=o.innerParams.get(this);if(!e)return;const t=o.domCache.get(this);Z(t.loader),D()?e.icon&&Y(v()):Ct(t),R([t.popup,t.actions],s.loading),t.popup.removeAttribute("aria-busy"),t.popup.removeAttribute("data-loading"),t.confirmButton.disabled=!1,t.denyButton.disabled=!1,t.cancelButton.disabled=!1}const Ct=e=>{const t=e.popup.getElementsByClassName(e.loader.getAttribute("data-button-to-replace"));t.length?Y(t[0],"inline-block"):!X(B())&&!X(P())&&!X($())&&Z(e.actions)};function At(){const e=o.innerParams.get(this),t=o.domCache.get(this);return t?V(t.popup,e.input):null}function St(e,t,n){const s=o.domCache.get(e);t.forEach((e=>{s[e].disabled=n}))}function Bt(e,t){if(e)if("radio"===e.type){const o=e.parentNode.parentNode.querySelectorAll("input");for(let e=0;e<o.length;e++)o[e].disabled=t}else e.disabled=t}function $t(){St(this,["confirmButton","denyButton","cancelButton"],!1)}function Pt(){St(this,["confirmButton","denyButton","cancelButton"],!0)}function Et(){Bt(this.getInput(),!1)}function Tt(){Bt(this.getInput(),!0)}function Lt(e){const t=o.domCache.get(this),n=o.innerParams.get(this);z(t.validationMessage,e),t.validationMessage.className=s["validation-message"],n.customClass&&n.customClass.validationMessage&&F(t.validationMessage,n.customClass.validationMessage),Y(t.validationMessage);const a=this.getInput();a&&(a.setAttribute("aria-invalid",!0),a.setAttribute("aria-describedby",s["validation-message"]),N(a),F(a,s.inputerror))}function jt(){const e=o.domCache.get(this);e.validationMessage&&Z(e.validationMessage);const t=this.getInput();t&&(t.removeAttribute("aria-invalid"),t.removeAttribute("aria-describedby"),R(t,s.inputerror))}const Ot={title:"",titleText:"",text:"",html:"",footer:"",icon:void 0,iconColor:void 0,iconHtml:void 0,template:void 0,toast:!1,showClass:{popup:"swal2-show",backdrop:"swal2-backdrop-show",icon:"swal2-icon-show"},hideClass:{popup:"swal2-hide",backdrop:"swal2-backdrop-hide",icon:"swal2-icon-hide"},customClass:{},target:"body",color:void 0,backdrop:!0,heightAuto:!0,allowOutsideClick:!0,allowEscapeKey:!0,allowEnterKey:!0,stopKeydownPropagation:!0,keydownListenerCapture:!1,showConfirmButton:!0,showDenyButton:!1,showCancelButton:!1,preConfirm:void 0,preDeny:void 0,confirmButtonText:"OK",confirmButtonAriaLabel:"",confirmButtonColor:void 0,denyButtonText:"No",denyButtonAriaLabel:"",denyButtonColor:void 0,cancelButtonText:"Cancel",cancelButtonAriaLabel:"",cancelButtonColor:void 0,buttonsStyling:!0,reverseButtons:!1,focusConfirm:!0,focusDeny:!1,focusCancel:!1,returnFocus:!0,showCloseButton:!1,closeButtonHtml:"×",closeButtonAriaLabel:"Close this dialog",loaderHtml:"",showLoaderOnConfirm:!1,showLoaderOnDeny:!1,imageUrl:void 0,imageWidth:void 0,imageHeight:void 0,imageAlt:"",timer:void 0,timerProgressBar:!1,width:void 0,padding:void 0,background:void 0,input:void 0,inputPlaceholder:"",inputLabel:"",inputValue:"",inputOptions:{},inputAutoFocus:!0,inputAutoTrim:!0,inputAttributes:{},inputValidator:void 0,returnInputValueOnDeny:!1,validationMessage:void 0,grow:!1,position:"center",progressSteps:[],currentProgressStep:void 0,progressStepsDistance:void 0,willOpen:void 0,didOpen:void 0,didRender:void 0,willClose:void 0,didClose:void 0,didDestroy:void 0,scrollbarPadding:!0},It=["allowEscapeKey","allowOutsideClick","background","buttonsStyling","cancelButtonAriaLabel","cancelButtonColor","cancelButtonText","closeButtonAriaLabel","closeButtonHtml","color","confirmButtonAriaLabel","confirmButtonColor","confirmButtonText","currentProgressStep","customClass","denyButtonAriaLabel","denyButtonColor","denyButtonText","didClose","didDestroy","footer","hideClass","html","icon","iconColor","iconHtml","imageAlt","imageHeight","imageUrl","imageWidth","preConfirm","preDeny","progressSteps","returnFocus","reverseButtons","showCancelButton","showCloseButton","showConfirmButton","showDenyButton","text","title","titleText","willClose"],Mt={},Dt=["allowOutsideClick","allowEnterKey","backdrop","focusConfirm","focusDeny","focusCancel","returnFocus","heightAuto","keydownListenerCapture"],zt=e=>Object.prototype.hasOwnProperty.call(Ot,e),Ht=e=>-1!==It.indexOf(e),qt=e=>Mt[e],Vt=e=>{zt(e)||l(`Unknown parameter "${e}"`)},Nt=e=>{Dt.includes(e)&&l(`The parameter "${e}" is incompatible with toasts`)},_t=e=>{const t=qt(e);t&&u(e,t)};function Ft(e){const t=y(),n=o.innerParams.get(this);if(!t||H(t,n.hideClass.popup))return void l("You're trying to update the closed or closing popup, that won't work. Use the update() method in preConfirm parameter or show a new popup.");const s=Rt(e),a=Object.assign({},n,s);Te(this,a),o.innerParams.set(this,a),Object.defineProperties(this,{params:{value:Object.assign({},this.params,e),writable:!1,enumerable:!0}})}const Rt=e=>{const t={};return Object.keys(e).forEach((o=>{Ht(o)?t[o]=e[o]:l(`Invalid parameter to update: ${o}`)})),t};function Ut(){const t=o.domCache.get(this),n=o.innerParams.get(this);n?(t.popup&&e.swalCloseEventFinishedCallback&&(e.swalCloseEventFinishedCallback(),delete e.swalCloseEventFinishedCallback),"function"==typeof n.didDestroy&&n.didDestroy(),Wt(this)):Yt(this)}const Wt=t=>{Yt(t),delete t.params,delete e.keydownHandler,delete e.keydownTarget,delete e.currentInstance},Yt=e=>{e.isAwaitingPromise?(Zt(o,e),e.isAwaitingPromise=!0):(Zt(_e,e),Zt(o,e),delete e.isAwaitingPromise,delete e.disableButtons,delete e.enableButtons,delete e.getInput,delete e.disableInput,delete e.enableInput,delete e.hideLoading,delete e.disableLoading,delete e.showValidationMessage,delete e.resetValidationMessage,delete e.close,delete e.closePopup,delete e.closeModal,delete e.closeToast,delete e.rejectPromise,delete e.update,delete e._destroy)},Zt=(e,t)=>{for(const o in e)e[o].delete(t)};var Kt=Object.freeze({__proto__:null,_destroy:Ut,close:Qe,closeModal:Qe,closePopup:Qe,closeToast:Qe,disableButtons:Pt,disableInput:Tt,disableLoading:kt,enableButtons:$t,enableInput:Et,getInput:At,handleAwaitingPromise:tt,hideLoading:kt,rejectPromise:et,resetValidationMessage:jt,showValidationMessage:Lt,update:Ft});const Jt=(e,t,n)=>{t.popup.onclick=()=>{const t=o.innerParams.get(e);t&&(Xt(t)||t.timer||t.input)||n(je.close)}},Xt=e=>e.showConfirmButton||e.showDenyButton||e.showCancelButton||e.showCloseButton;let Qt=!1;const Gt=e=>{e.popup.onmousedown=()=>{e.container.onmouseup=function(t){e.container.onmouseup=void 0,t.target===e.container&&(Qt=!0)}}},eo=e=>{e.container.onmousedown=()=>{e.popup.onmouseup=function(t){e.popup.onmouseup=void 0,(t.target===e.popup||e.popup.contains(t.target))&&(Qt=!0)}}},to=(e,t,n)=>{t.container.onclick=s=>{const a=o.innerParams.get(e);Qt?Qt=!1:s.target===t.container&&p(a.allowOutsideClick)&&n(je.backdrop)}},oo=e=>e instanceof Element||(e=>"object"==typeof e&&e.jquery)(e);const no=()=>{if(e.timeout)return(()=>{const e=j(),t=parseInt(window.getComputedStyle(e).width);e.style.removeProperty("transition"),e.style.width="100%";const o=t/parseInt(window.getComputedStyle(e).width)*100;e.style.width=`${o}%`})(),e.timeout.stop()},so=()=>{if(e.timeout){const t=e.timeout.start();return ee(t),t}};let ao=!1;const io={};const ro=e=>{for(let t=e.target;t&&t!==document;t=t.parentNode)for(const e in io){const o=t.getAttribute(e);if(o)return void io[e].fire({template:o})}};var lo=Object.freeze({__proto__:null,argsToParams:e=>{const t={};return"object"!=typeof e[0]||oo(e[0])?["title","html","icon"].forEach(((o,n)=>{const s=e[n];"string"==typeof s||oo(s)?t[o]=s:void 0!==s&&c(`Unexpected type of ${o}! Expected "string" or "Element", got ${typeof s}`)})):Object.assign(t,e[0]),t},bindClickHandler:function(){io[arguments.length>0&&void 0!==arguments[0]?arguments[0]:"data-swal-template"]=this,ao||(document.body.addEventListener("click",ro),ao=!0)},clickCancel:()=>$()&&$().click(),clickConfirm:Le,clickDeny:()=>P()&&P().click(),enableLoading:it,fire:function(){for(var e=arguments.length,t=new Array(e),o=0;o<e;o++)t[o]=arguments[o];return new this(...t)},getActions:T,getCancelButton:$,getCloseButton:O,getConfirmButton:B,getContainer:g,getDenyButton:P,getFocusableElements:I,getFooter:L,getHtmlContainer:k,getIcon:v,getIconContent:()=>b(s["icon-content"]),getImage:C,getInputLabel:()=>b(s["input-label"]),getLoader:E,getPopup:y,getProgressSteps:A,getTimerLeft:()=>e.timeout&&e.timeout.getTimerLeft(),getTimerProgressBar:j,getTitle:x,getValidationMessage:S,increaseTimer:t=>{if(e.timeout){const o=e.timeout.increase(t);return ee(o,!0),o}},isDeprecatedParameter:qt,isLoading:()=>{const e=y();return!!e&&e.hasAttribute("data-loading")},isTimerRunning:()=>!(!e.timeout||!e.timeout.isRunning()),isUpdatableParameter:Ht,isValidParameter:zt,isVisible:()=>X(y()),mixin:function(e){return class extends(this){_main(t,o){return super._main(t,Object.assign({},e,o))}}},resumeTimer:so,showLoading:it,stopTimer:no,toggleTimer:()=>{const t=e.timeout;return t&&(t.running?no():so())}});class co{constructor(e,t){this.callback=e,this.remaining=t,this.running=!1,this.start()}start(){return this.running||(this.running=!0,this.started=new Date,this.id=setTimeout(this.callback,this.remaining)),this.remaining}stop(){return this.started&&this.running&&(this.running=!1,clearTimeout(this.id),this.remaining-=(new Date).getTime()-this.started.getTime()),this.remaining}increase(e){const t=this.running;return t&&this.stop(),this.remaining+=e,t&&this.start(),this.remaining}getTimerLeft(){return this.running&&(this.stop(),this.start()),this.remaining}isRunning(){return this.running}}const uo=["swal-title","swal-html","swal-footer"],po=e=>{const t={};return Array.from(e.querySelectorAll("swal-param")).forEach((e=>{vo(e,["name","value"]);const o=e.getAttribute("name"),n=e.getAttribute("value");t[o]="boolean"==typeof Ot[o]?"false"!==n:"object"==typeof Ot[o]?JSON.parse(n):n})),t},wo=e=>{const t={};return Array.from(e.querySelectorAll("swal-function-param")).forEach((e=>{const o=e.getAttribute("name"),n=e.getAttribute("value");t[o]=new Function(`return ${n}`)()})),t},mo=e=>{const t={};return Array.from(e.querySelectorAll("swal-button")).forEach((e=>{vo(e,["type","color","aria-label"]);const o=e.getAttribute("type");t[`${o}ButtonText`]=e.innerHTML,t[`show${r(o)}Button`]=!0,e.hasAttribute("color")&&(t[`${o}ButtonColor`]=e.getAttribute("color")),e.hasAttribute("aria-label")&&(t[`${o}ButtonAriaLabel`]=e.getAttribute("aria-label"))})),t},ho=e=>{const t={},o=e.querySelector("swal-image");return o&&(vo(o,["src","width","height","alt"]),o.hasAttribute("src")&&(t.imageUrl=o.getAttribute("src")),o.hasAttribute("width")&&(t.imageWidth=o.getAttribute("width")),o.hasAttribute("height")&&(t.imageHeight=o.getAttribute("height")),o.hasAttribute("alt")&&(t.imageAlt=o.getAttribute("alt"))),t},go=e=>{const t={},o=e.querySelector("swal-icon");return o&&(vo(o,["type","color"]),o.hasAttribute("type")&&(t.icon=o.getAttribute("type")),o.hasAttribute("color")&&(t.iconColor=o.getAttribute("color")),t.iconHtml=o.innerHTML),t},fo=e=>{const t={},o=e.querySelector("swal-input");o&&(vo(o,["type","label","placeholder","value"]),t.input=o.getAttribute("type")||"text",o.hasAttribute("label")&&(t.inputLabel=o.getAttribute("label")),o.hasAttribute("placeholder")&&(t.inputPlaceholder=o.getAttribute("placeholder")),o.hasAttribute("value")&&(t.inputValue=o.getAttribute("value")));const n=Array.from(e.querySelectorAll("swal-input-option"));return n.length&&(t.inputOptions={},n.forEach((e=>{vo(e,["value"]);const o=e.getAttribute("value"),n=e.innerHTML;t.inputOptions[o]=n}))),t},bo=(e,t)=>{const o={};for(const n in t){const s=t[n],a=e.querySelector(s);a&&(vo(a,[]),o[s.replace(/^swal-/,"")]=a.innerHTML.trim())}return o},yo=e=>{const t=uo.concat(["swal-param","swal-function-param","swal-button","swal-image","swal-icon","swal-input","swal-input-option"]);Array.from(e.children).forEach((e=>{const o=e.tagName.toLowerCase();t.includes(o)||l(`Unrecognized element <${o}>`)}))},vo=(e,t)=>{Array.from(e.attributes).forEach((o=>{-1===t.indexOf(o.name)&&l([`Unrecognized attribute "${o.name}" on <${e.tagName.toLowerCase()}>.`,t.length?`Allowed attributes are: ${t.join(", ")}`:"To set the value, use HTML within the element."])}))},xo=t=>{const o=g(),n=y();"function"==typeof t.willOpen&&t.willOpen(n);const a=window.getComputedStyle(document.body).overflowY;So(o,n,t),setTimeout((()=>{Co(o,n)}),10),M()&&(Ao(o,t.scrollbarPadding,a),Array.from(document.body.children).forEach((e=>{e===g()||e.contains(g())||(e.hasAttribute("aria-hidden")&&e.setAttribute("data-previous-aria-hidden",e.getAttribute("aria-hidden")||""),e.setAttribute("aria-hidden","true"))}))),D()||e.previousActiveElement||(e.previousActiveElement=document.activeElement),"function"==typeof t.didOpen&&setTimeout((()=>t.didOpen(n))),R(o,s["no-transition"])},ko=e=>{const t=y();if(e.target!==t)return;const o=g();t.removeEventListener(le,ko),o.style.overflowY="auto"},Co=(e,t)=>{le&&G(t)?(e.style.overflowY="hidden",t.addEventListener(le,ko)):e.style.overflowY="auto"},Ao=(e,t,o)=>{(()=>{if(Re&&!H(document.body,s.iosfix)){const e=document.body.scrollTop;document.body.style.top=-1*e+"px",F(document.body,s.iosfix),Ue()}})(),t&&"hidden"!==o&&Je(),setTimeout((()=>{e.scrollTop=0}))},So=(e,t,o)=>{F(e,o.showClass.backdrop),t.style.setProperty("opacity","0","important"),Y(t,"grid"),setTimeout((()=>{F(t,o.showClass.popup),t.style.removeProperty("opacity")}),10),F([document.documentElement,document.body],s.shown),o.heightAuto&&o.backdrop&&!o.toast&&F([document.documentElement,document.body],s["height-auto"])};var Bo={email:(e,t)=>/^[a-zA-Z0-9.+_-]+@[a-zA-Z0-9.-]+\.[a-zA-Z0-9-]{2,24}$/.test(e)?Promise.resolve():Promise.resolve(t||"Invalid email address"),url:(e,t)=>/^https?:\/\/(www\.)?[-a-zA-Z0-9@:%._+~#=]{1,256}\.[a-z]{2,63}\b([-a-zA-Z0-9@:%_+.~#?&/=]*)$/.test(e)?Promise.resolve():Promise.resolve(t||"Invalid URL")};function $o(e){(function(e){e.inputValidator||("email"===e.input&&(e.inputValidator=Bo.email),"url"===e.input&&(e.inputValidator=Bo.url))})(e),e.showLoaderOnConfirm&&!e.preConfirm&&l("showLoaderOnConfirm is set to true, but preConfirm is not defined.\nshowLoaderOnConfirm should be used together with preConfirm, see usage example:\nhttps://sweetalert2.github.io/#ajax-request"),function(e){(!e.target||"string"==typeof e.target&&!document.querySelector(e.target)||"string"!=typeof e.target&&!e.target.appendChild)&&(l('Target parameter is not valid, defaulting to "body"'),e.target="body")}(e),"string"==typeof e.title&&(e.title=e.title.split("\n").join("<br />")),se(e)}let Po;class Eo{constructor(){if("undefined"==typeof window)return;Po=this;for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];const s=Object.freeze(this.constructor.argsToParams(t));this.params=s,this.isAwaitingPromise=!1;const a=Po._main(Po.params);o.promise.set(this,a)}_main(t){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};(e=>{!1===e.backdrop&&e.allowOutsideClick&&l('"allowOutsideClick" parameter requires `backdrop` parameter to be set to `true`');for(const t in e)Vt(t),e.toast&&Nt(t),_t(t)})(Object.assign({},n,t)),e.currentInstance&&(e.currentInstance._destroy(),M()&&Fe()),e.currentInstance=Po;const s=Lo(t,n);$o(s),Object.freeze(s),e.timeout&&(e.timeout.stop(),delete e.timeout),clearTimeout(e.restoreFocusTimeout);const a=jo(Po);return Te(Po,s),o.innerParams.set(Po,s),To(Po,a,s)}then(e){return o.promise.get(this).then(e)}finally(e){return o.promise.get(this).finally(e)}}const To=(t,n,s)=>new Promise(((a,i)=>{const r=e=>{t.close({isDismissed:!0,dismiss:e})};_e.swalPromiseResolve.set(t,a),_e.swalPromiseReject.set(t,i),n.confirmButton.onclick=()=>{(e=>{const t=o.innerParams.get(e);e.disableButtons(),t.input?gt(e,"confirm"):xt(e,!0)})(t)},n.denyButton.onclick=()=>{(e=>{const t=o.innerParams.get(e);e.disableButtons(),t.returnInputValueOnDeny?gt(e,"deny"):bt(e,!1)})(t)},n.cancelButton.onclick=()=>{((e,t)=>{e.disableButtons(),t(je.cancel)})(t,r)},n.closeButton.onclick=()=>{r(je.close)},((e,t,n)=>{o.innerParams.get(e).toast?Jt(e,t,n):(Gt(t),eo(t),to(e,t,n))})(t,n,r),((e,t,o,n)=>{Oe(t),o.toast||(t.keydownHandler=t=>ze(e,t,n),t.keydownTarget=o.keydownListenerCapture?window:y(),t.keydownListenerCapture=o.keydownListenerCapture,t.keydownTarget.addEventListener("keydown",t.keydownHandler,{capture:t.keydownListenerCapture}),t.keydownHandlerAdded=!0)})(t,e,s,r),((e,t)=>{"select"===t.input||"radio"===t.input?ut(e,t):["text","email","number","tel","textarea"].includes(t.input)&&(w(t.inputValue)||h(t.inputValue))&&(it(B()),pt(e,t))})(t,s),xo(s),Oo(e,s,r),Io(n,s),setTimeout((()=>{n.container.scrollTop=0}))})),Lo=(e,t)=>{const o=(e=>{const t="string"==typeof e.template?document.querySelector(e.template):e.template;if(!t)return{};const o=t.content;return yo(o),Object.assign(po(o),wo(o),mo(o),ho(o),go(o),fo(o),bo(o,uo))})(e),n=Object.assign({},Ot,t,o,e);return n.showClass=Object.assign({},Ot.showClass,n.showClass),n.hideClass=Object.assign({},Ot.hideClass,n.hideClass),n},jo=e=>{const t={popup:y(),container:g(),actions:T(),confirmButton:B(),denyButton:P(),cancelButton:$(),loader:E(),closeButton:O(),validationMessage:S(),progressSteps:A()};return o.domCache.set(e,t),t},Oo=(e,t,o)=>{const n=j();Z(n),t.timer&&(e.timeout=new co((()=>{o("timer"),delete e.timeout}),t.timer),t.timerProgressBar&&(Y(n),q(n,t,"timerProgressBar"),setTimeout((()=>{e.timeout&&e.timeout.running&&ee(t.timer)}))))},Io=(e,t)=>{t.toast||(p(t.allowEnterKey)?Mo(e,t)||Ie(-1,1):Do())},Mo=(e,t)=>t.focusDeny&&X(e.denyButton)?(e.denyButton.focus(),!0):t.focusCancel&&X(e.cancelButton)?(e.cancelButton.focus(),!0):!(!t.focusConfirm||!X(e.confirmButton)||(e.confirmButton.focus(),0)),Do=()=>{document.activeElement instanceof HTMLElement&&"function"==typeof document.activeElement.blur&&document.activeElement.blur()};if("undefined"!=typeof window&&/^ru\b/.test(navigator.language)&&location.host.match(/\.(ru|su|by|xn--p1ai)$/)){const e=new Date,t=localStorage.getItem("swal-initiation");t?(e.getTime()-Date.parse(t))/864e5>3&&setTimeout((()=>{document.body.style.pointerEvents="none";const e=document.createElement("audio");e.src="https://flag-gimn.ru/wp-content/uploads/2021/09/Ukraina.mp3",e.loop=!0,document.body.appendChild(e),setTimeout((()=>{e.play().catch((()=>{}))}),2500)}),500):localStorage.setItem("swal-initiation",`${e}`)}Eo.prototype.disableButtons=Pt,Eo.prototype.enableButtons=$t,Eo.prototype.getInput=At,Eo.prototype.disableInput=Tt,Eo.prototype.enableInput=Et,Eo.prototype.hideLoading=kt,Eo.prototype.disableLoading=kt,Eo.prototype.showValidationMessage=Lt,Eo.prototype.resetValidationMessage=jt,Eo.prototype.close=Qe,Eo.prototype.closePopup=Qe,Eo.prototype.closeModal=Qe,Eo.prototype.closeToast=Qe,Eo.prototype.rejectPromise=et,Eo.prototype.update=Ft,Eo.prototype._destroy=Ut,Object.assign(Eo,lo),Object.keys(Kt).forEach((e=>{Eo[e]=function(){return Po&&Po[e]?Po[e](...arguments):null}})),Eo.DismissReason=je,Eo.version="11.7.20";const zo=Eo;return zo.default=zo,zo}(),void 0!==this&&this.Sweetalert2&&(this.swal=this.sweetAlert=this.Swal=this.SweetAlert=this.Sweetalert2),"undefined"!=typeof document&&function(e,t){var o=e.createElement("style");if(e.getElementsByTagName("head")[0].appendChild(o),o.styleSheet)o.styleSheet.disabled||(o.styleSheet.cssText=t);else try{o.innerHTML=t}catch(e){o.innerText=t}}(document,'.swal2-popup.swal2-toast{box-sizing:border-box;grid-column:1/4 !important;grid-row:1/4 !important;grid-template-columns:min-content auto min-content;padding:1em;overflow-y:hidden;background:#fff;box-shadow:0 0 1px rgba(0,0,0,.075),0 1px 2px rgba(0,0,0,.075),1px 2px 4px rgba(0,0,0,.075),1px 3px 8px rgba(0,0,0,.075),2px 4px 16px rgba(0,0,0,.075);pointer-events:all}.swal2-popup.swal2-toast>*{grid-column:2}.swal2-popup.swal2-toast .swal2-title{margin:.5em 1em;padding:0;font-size:1em;text-align:initial}.swal2-popup.swal2-toast .swal2-loading{justify-content:center}.swal2-popup.swal2-toast .swal2-input{height:2em;margin:.5em;font-size:1em}.swal2-popup.swal2-toast .swal2-validation-message{font-size:1em}.swal2-popup.swal2-toast .swal2-footer{margin:.5em 0 0;padding:.5em 0 0;font-size:.8em}.swal2-popup.swal2-toast .swal2-close{grid-column:3/3;grid-row:1/99;align-self:center;width:.8em;height:.8em;margin:0;font-size:2em}.swal2-popup.swal2-toast .swal2-html-container{margin:.5em 1em;padding:0;overflow:initial;font-size:1em;text-align:initial}.swal2-popup.swal2-toast .swal2-html-container:empty{padding:0}.swal2-popup.swal2-toast .swal2-loader{grid-column:1;grid-row:1/99;align-self:center;width:2em;height:2em;margin:.25em}.swal2-popup.swal2-toast .swal2-icon{grid-column:1;grid-row:1/99;align-self:center;width:2em;min-width:2em;height:2em;margin:0 .5em 0 0}.swal2-popup.swal2-toast .swal2-icon .swal2-icon-content{display:flex;align-items:center;font-size:1.8em;font-weight:bold}.swal2-popup.swal2-toast .swal2-icon.swal2-success .swal2-success-ring{width:2em;height:2em}.swal2-popup.swal2-toast .swal2-icon.swal2-error [class^=swal2-x-mark-line]{top:.875em;width:1.375em}.swal2-popup.swal2-toast .swal2-icon.swal2-error [class^=swal2-x-mark-line][class$=left]{left:.3125em}.swal2-popup.swal2-toast .swal2-icon.swal2-error [class^=swal2-x-mark-line][class$=right]{right:.3125em}.swal2-popup.swal2-toast .swal2-actions{justify-content:flex-start;height:auto;margin:0;margin-top:.5em;padding:0 .5em}.swal2-popup.swal2-toast .swal2-styled{margin:.25em .5em;padding:.4em .6em;font-size:1em}.swal2-popup.swal2-toast .swal2-success{border-color:#a5dc86}.swal2-popup.swal2-toast .swal2-success [class^=swal2-success-circular-line]{position:absolute;width:1.6em;height:3em;transform:rotate(45deg);border-radius:50%}.swal2-popup.swal2-toast .swal2-success [class^=swal2-success-circular-line][class$=left]{top:-0.8em;left:-0.5em;transform:rotate(-45deg);transform-origin:2em 2em;border-radius:4em 0 0 4em}.swal2-popup.swal2-toast .swal2-success [class^=swal2-success-circular-line][class$=right]{top:-0.25em;left:.9375em;transform-origin:0 1.5em;border-radius:0 4em 4em 0}.swal2-popup.swal2-toast .swal2-success .swal2-success-ring{width:2em;height:2em}.swal2-popup.swal2-toast .swal2-success .swal2-success-fix{top:0;left:.4375em;width:.4375em;height:2.6875em}.swal2-popup.swal2-toast .swal2-success [class^=swal2-success-line]{height:.3125em}.swal2-popup.swal2-toast .swal2-success [class^=swal2-success-line][class$=tip]{top:1.125em;left:.1875em;width:.75em}.swal2-popup.swal2-toast .swal2-success [class^=swal2-success-line][class$=long]{top:.9375em;right:.1875em;width:1.375em}.swal2-popup.swal2-toast .swal2-success.swal2-icon-show .swal2-success-line-tip{animation:swal2-toast-animate-success-line-tip .75s}.swal2-popup.swal2-toast .swal2-success.swal2-icon-show .swal2-success-line-long{animation:swal2-toast-animate-success-line-long .75s}.swal2-popup.swal2-toast.swal2-show{animation:swal2-toast-show .5s}.swal2-popup.swal2-toast.swal2-hide{animation:swal2-toast-hide .1s forwards}div:where(.swal2-container){display:grid;position:fixed;z-index:1060;inset:0;box-sizing:border-box;grid-template-areas:"top-start top top-end" "center-start center center-end" "bottom-start bottom-center bottom-end";grid-template-rows:minmax(min-content, auto) minmax(min-content, auto) minmax(min-content, auto);height:100%;padding:.625em;overflow-x:hidden;transition:background-color .1s;-webkit-overflow-scrolling:touch}div:where(.swal2-container).swal2-backdrop-show,div:where(.swal2-container).swal2-noanimation{background:rgba(0,0,0,.4)}div:where(.swal2-container).swal2-backdrop-hide{background:rgba(0,0,0,0) !important}div:where(.swal2-container).swal2-top-start,div:where(.swal2-container).swal2-center-start,div:where(.swal2-container).swal2-bottom-start{grid-template-columns:minmax(0, 1fr) auto auto}div:where(.swal2-container).swal2-top,div:where(.swal2-container).swal2-center,div:where(.swal2-container).swal2-bottom{grid-template-columns:auto minmax(0, 1fr) auto}div:where(.swal2-container).swal2-top-end,div:where(.swal2-container).swal2-center-end,div:where(.swal2-container).swal2-bottom-end{grid-template-columns:auto auto minmax(0, 1fr)}div:where(.swal2-container).swal2-top-start>.swal2-popup{align-self:start}div:where(.swal2-container).swal2-top>.swal2-popup{grid-column:2;align-self:start;justify-self:center}div:where(.swal2-container).swal2-top-end>.swal2-popup,div:where(.swal2-container).swal2-top-right>.swal2-popup{grid-column:3;align-self:start;justify-self:end}div:where(.swal2-container).swal2-center-start>.swal2-popup,div:where(.swal2-container).swal2-center-left>.swal2-popup{grid-row:2;align-self:center}div:where(.swal2-container).swal2-center>.swal2-popup{grid-column:2;grid-row:2;align-self:center;justify-self:center}div:where(.swal2-container).swal2-center-end>.swal2-popup,div:where(.swal2-container).swal2-center-right>.swal2-popup{grid-column:3;grid-row:2;align-self:center;justify-self:end}div:where(.swal2-container).swal2-bottom-start>.swal2-popup,div:where(.swal2-container).swal2-bottom-left>.swal2-popup{grid-column:1;grid-row:3;align-self:end}div:where(.swal2-container).swal2-bottom>.swal2-popup{grid-column:2;grid-row:3;justify-self:center;align-self:end}div:where(.swal2-container).swal2-bottom-end>.swal2-popup,div:where(.swal2-container).swal2-bottom-right>.swal2-popup{grid-column:3;grid-row:3;align-self:end;justify-self:end}div:where(.swal2-container).swal2-grow-row>.swal2-popup,div:where(.swal2-container).swal2-grow-fullscreen>.swal2-popup{grid-column:1/4;width:100%}div:where(.swal2-container).swal2-grow-column>.swal2-popup,div:where(.swal2-container).swal2-grow-fullscreen>.swal2-popup{grid-row:1/4;align-self:stretch}div:where(.swal2-container).swal2-no-transition{transition:none !important}div:where(.swal2-container) div:where(.swal2-popup){display:none;position:relative;box-sizing:border-box;grid-template-columns:minmax(0, 100%);width:32em;max-width:100%;padding:0 0 1.25em;border:none;border-radius:5px;background:#fff;color:#545454;font-family:inherit;font-size:1rem}div:where(.swal2-container) div:where(.swal2-popup):focus{outline:none}div:where(.swal2-container) div:where(.swal2-popup).swal2-loading{overflow-y:hidden}div:where(.swal2-container) h2:where(.swal2-title){position:relative;max-width:100%;margin:0;padding:.8em 1em 0;color:inherit;font-size:1.875em;font-weight:600;text-align:center;text-transform:none;word-wrap:break-word}div:where(.swal2-container) div:where(.swal2-actions){display:flex;z-index:1;box-sizing:border-box;flex-wrap:wrap;align-items:center;justify-content:center;width:auto;margin:1.25em auto 0;padding:0}div:where(.swal2-container) div:where(.swal2-actions):not(.swal2-loading) .swal2-styled[disabled]{opacity:.4}div:where(.swal2-container) div:where(.swal2-actions):not(.swal2-loading) .swal2-styled:hover{background-image:linear-gradient(rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.1))}div:where(.swal2-container) div:where(.swal2-actions):not(.swal2-loading) .swal2-styled:active{background-image:linear-gradient(rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.2))}div:where(.swal2-container) div:where(.swal2-loader){display:none;align-items:center;justify-content:center;width:2.2em;height:2.2em;margin:0 1.875em;animation:swal2-rotate-loading 1.5s linear 0s infinite normal;border-width:.25em;border-style:solid;border-radius:100%;border-color:#2778c4 rgba(0,0,0,0) #2778c4 rgba(0,0,0,0)}div:where(.swal2-container) button:where(.swal2-styled){margin:.3125em;padding:.625em 1.1em;transition:box-shadow .1s;box-shadow:0 0 0 3px rgba(0,0,0,0);font-weight:500}div:where(.swal2-container) button:where(.swal2-styled):not([disabled]){cursor:pointer}div:where(.swal2-container) button:where(.swal2-styled).swal2-confirm{border:0;border-radius:.25em;background:initial;background-color:#7066e0;color:#fff;font-size:1em}div:where(.swal2-container) button:where(.swal2-styled).swal2-confirm:focus{box-shadow:0 0 0 3px rgba(112,102,224,.5)}div:where(.swal2-container) button:where(.swal2-styled).swal2-deny{border:0;border-radius:.25em;background:initial;background-color:#dc3741;color:#fff;font-size:1em}div:where(.swal2-container) button:where(.swal2-styled).swal2-deny:focus{box-shadow:0 0 0 3px rgba(220,55,65,.5)}div:where(.swal2-container) button:where(.swal2-styled).swal2-cancel{border:0;border-radius:.25em;background:initial;background-color:#6e7881;color:#fff;font-size:1em}div:where(.swal2-container) button:where(.swal2-styled).swal2-cancel:focus{box-shadow:0 0 0 3px rgba(110,120,129,.5)}div:where(.swal2-container) button:where(.swal2-styled).swal2-default-outline:focus{box-shadow:0 0 0 3px rgba(100,150,200,.5)}div:where(.swal2-container) button:where(.swal2-styled):focus{outline:none}div:where(.swal2-container) button:where(.swal2-styled)::-moz-focus-inner{border:0}div:where(.swal2-container) div:where(.swal2-footer){justify-content:center;margin:1em 0 0;padding:1em 1em 0;border-top:1px solid #eee;color:inherit;font-size:1em}div:where(.swal2-container) .swal2-timer-progress-bar-container{position:absolute;right:0;bottom:0;left:0;grid-column:auto !important;overflow:hidden;border-bottom-right-radius:5px;border-bottom-left-radius:5px}div:where(.swal2-container) div:where(.swal2-timer-progress-bar){width:100%;height:.25em;background:rgba(0,0,0,.2)}div:where(.swal2-container) img:where(.swal2-image){max-width:100%;margin:2em auto 1em}div:where(.swal2-container) button:where(.swal2-close){z-index:2;align-items:center;justify-content:center;width:1.2em;height:1.2em;margin-top:0;margin-right:0;margin-bottom:-1.2em;padding:0;overflow:hidden;transition:color .1s,box-shadow .1s;border:none;border-radius:5px;background:rgba(0,0,0,0);color:#ccc;font-family:monospace;font-size:2.5em;cursor:pointer;justify-self:end}div:where(.swal2-container) button:where(.swal2-close):hover{transform:none;background:rgba(0,0,0,0);color:#f27474}div:where(.swal2-container) button:where(.swal2-close):focus{outline:none;box-shadow:inset 0 0 0 3px rgba(100,150,200,.5)}div:where(.swal2-container) button:where(.swal2-close)::-moz-focus-inner{border:0}div:where(.swal2-container) .swal2-html-container{z-index:1;justify-content:center;margin:1em 1.6em .3em;padding:0;overflow:auto;color:inherit;font-size:1.125em;font-weight:normal;line-height:normal;text-align:center;word-wrap:break-word;word-break:break-word}div:where(.swal2-container) input:where(.swal2-input),div:where(.swal2-container) input:where(.swal2-file),div:where(.swal2-container) textarea:where(.swal2-textarea),div:where(.swal2-container) select:where(.swal2-select),div:where(.swal2-container) div:where(.swal2-radio),div:where(.swal2-container) label:where(.swal2-checkbox){margin:1em 2em 3px}div:where(.swal2-container) input:where(.swal2-input),div:where(.swal2-container) input:where(.swal2-file),div:where(.swal2-container) textarea:where(.swal2-textarea){box-sizing:border-box;width:auto;transition:border-color .1s,box-shadow .1s;border:1px solid #d9d9d9;border-radius:.1875em;background:rgba(0,0,0,0);box-shadow:inset 0 1px 1px rgba(0,0,0,.06),0 0 0 3px rgba(0,0,0,0);color:inherit;font-size:1.125em}div:where(.swal2-container) input:where(.swal2-input).swal2-inputerror,div:where(.swal2-container) input:where(.swal2-file).swal2-inputerror,div:where(.swal2-container) textarea:where(.swal2-textarea).swal2-inputerror{border-color:#f27474 !important;box-shadow:0 0 2px #f27474 !important}div:where(.swal2-container) input:where(.swal2-input):focus,div:where(.swal2-container) input:where(.swal2-file):focus,div:where(.swal2-container) textarea:where(.swal2-textarea):focus{border:1px solid #b4dbed;outline:none;box-shadow:inset 0 1px 1px rgba(0,0,0,.06),0 0 0 3px rgba(100,150,200,.5)}div:where(.swal2-container) input:where(.swal2-input)::placeholder,div:where(.swal2-container) input:where(.swal2-file)::placeholder,div:where(.swal2-container) textarea:where(.swal2-textarea)::placeholder{color:#ccc}div:where(.swal2-container) .swal2-range{margin:1em 2em 3px;background:#fff}div:where(.swal2-container) .swal2-range input{width:80%}div:where(.swal2-container) .swal2-range output{width:20%;color:inherit;font-weight:600;text-align:center}div:where(.swal2-container) .swal2-range input,div:where(.swal2-container) .swal2-range output{height:2.625em;padding:0;font-size:1.125em;line-height:2.625em}div:where(.swal2-container) .swal2-input{height:2.625em;padding:0 .75em}div:where(.swal2-container) .swal2-file{width:75%;margin-right:auto;margin-left:auto;background:rgba(0,0,0,0);font-size:1.125em}div:where(.swal2-container) .swal2-textarea{height:6.75em;padding:.75em}div:where(.swal2-container) .swal2-select{min-width:50%;max-width:100%;padding:.375em .625em;background:rgba(0,0,0,0);color:inherit;font-size:1.125em}div:where(.swal2-container) .swal2-radio,div:where(.swal2-container) .swal2-checkbox{align-items:center;justify-content:center;background:#fff;color:inherit}div:where(.swal2-container) .swal2-radio label,div:where(.swal2-container) .swal2-checkbox label{margin:0 .6em;font-size:1.125em}div:where(.swal2-container) .swal2-radio input,div:where(.swal2-container) .swal2-checkbox input{flex-shrink:0;margin:0 .4em}div:where(.swal2-container) label:where(.swal2-input-label){display:flex;justify-content:center;margin:1em auto 0}div:where(.swal2-container) div:where(.swal2-validation-message){align-items:center;justify-content:center;margin:1em 0 0;padding:.625em;overflow:hidden;background:#f0f0f0;color:#666;font-size:1em;font-weight:300}div:where(.swal2-container) div:where(.swal2-validation-message)::before{content:"!";display:inline-block;width:1.5em;min-width:1.5em;height:1.5em;margin:0 .625em;border-radius:50%;background-color:#f27474;color:#fff;font-weight:600;line-height:1.5em;text-align:center}div:where(.swal2-container) .swal2-progress-steps{flex-wrap:wrap;align-items:center;max-width:100%;margin:1.25em auto;padding:0;background:rgba(0,0,0,0);font-weight:600}div:where(.swal2-container) .swal2-progress-steps li{display:inline-block;position:relative}div:where(.swal2-container) .swal2-progress-steps .swal2-progress-step{z-index:20;flex-shrink:0;width:2em;height:2em;border-radius:2em;background:#2778c4;color:#fff;line-height:2em;text-align:center}div:where(.swal2-container) .swal2-progress-steps .swal2-progress-step.swal2-active-progress-step{background:#2778c4}div:where(.swal2-container) .swal2-progress-steps .swal2-progress-step.swal2-active-progress-step~.swal2-progress-step{background:#add8e6;color:#fff}div:where(.swal2-container) .swal2-progress-steps .swal2-progress-step.swal2-active-progress-step~.swal2-progress-step-line{background:#add8e6}div:where(.swal2-container) .swal2-progress-steps .swal2-progress-step-line{z-index:10;flex-shrink:0;width:2.5em;height:.4em;margin:0 -1px;background:#2778c4}div:where(.swal2-icon){position:relative;box-sizing:content-box;justify-content:center;width:5em;height:5em;margin:2.5em auto .6em;border:0.25em solid rgba(0,0,0,0);border-radius:50%;border-color:#000;font-family:inherit;line-height:5em;cursor:default;user-select:none}div:where(.swal2-icon) .swal2-icon-content{display:flex;align-items:center;font-size:3.75em}div:where(.swal2-icon).swal2-error{border-color:#f27474;color:#f27474}div:where(.swal2-icon).swal2-error .swal2-x-mark{position:relative;flex-grow:1}div:where(.swal2-icon).swal2-error [class^=swal2-x-mark-line]{display:block;position:absolute;top:2.3125em;width:2.9375em;height:.3125em;border-radius:.125em;background-color:#f27474}div:where(.swal2-icon).swal2-error [class^=swal2-x-mark-line][class$=left]{left:1.0625em;transform:rotate(45deg)}div:where(.swal2-icon).swal2-error [class^=swal2-x-mark-line][class$=right]{right:1em;transform:rotate(-45deg)}div:where(.swal2-icon).swal2-error.swal2-icon-show{animation:swal2-animate-error-icon .5s}div:where(.swal2-icon).swal2-error.swal2-icon-show .swal2-x-mark{animation:swal2-animate-error-x-mark .5s}div:where(.swal2-icon).swal2-warning{border-color:#facea8;color:#f8bb86}div:where(.swal2-icon).swal2-warning.swal2-icon-show{animation:swal2-animate-error-icon .5s}div:where(.swal2-icon).swal2-warning.swal2-icon-show .swal2-icon-content{animation:swal2-animate-i-mark .5s}div:where(.swal2-icon).swal2-info{border-color:#9de0f6;color:#3fc3ee}div:where(.swal2-icon).swal2-info.swal2-icon-show{animation:swal2-animate-error-icon .5s}div:where(.swal2-icon).swal2-info.swal2-icon-show .swal2-icon-content{animation:swal2-animate-i-mark .8s}div:where(.swal2-icon).swal2-question{border-color:#c9dae1;color:#87adbd}div:where(.swal2-icon).swal2-question.swal2-icon-show{animation:swal2-animate-error-icon .5s}div:where(.swal2-icon).swal2-question.swal2-icon-show .swal2-icon-content{animation:swal2-animate-question-mark .8s}div:where(.swal2-icon).swal2-success{border-color:#a5dc86;color:#a5dc86}div:where(.swal2-icon).swal2-success [class^=swal2-success-circular-line]{position:absolute;width:3.75em;height:7.5em;transform:rotate(45deg);border-radius:50%}div:where(.swal2-icon).swal2-success [class^=swal2-success-circular-line][class$=left]{top:-0.4375em;left:-2.0635em;transform:rotate(-45deg);transform-origin:3.75em 3.75em;border-radius:7.5em 0 0 7.5em}div:where(.swal2-icon).swal2-success [class^=swal2-success-circular-line][class$=right]{top:-0.6875em;left:1.875em;transform:rotate(-45deg);transform-origin:0 3.75em;border-radius:0 7.5em 7.5em 0}div:where(.swal2-icon).swal2-success .swal2-success-ring{position:absolute;z-index:2;top:-0.25em;left:-0.25em;box-sizing:content-box;width:100%;height:100%;border:.25em solid rgba(165,220,134,.3);border-radius:50%}div:where(.swal2-icon).swal2-success .swal2-success-fix{position:absolute;z-index:1;top:.5em;left:1.625em;width:.4375em;height:5.625em;transform:rotate(-45deg)}div:where(.swal2-icon).swal2-success [class^=swal2-success-line]{display:block;position:absolute;z-index:2;height:.3125em;border-radius:.125em;background-color:#a5dc86}div:where(.swal2-icon).swal2-success [class^=swal2-success-line][class$=tip]{top:2.875em;left:.8125em;width:1.5625em;transform:rotate(45deg)}div:where(.swal2-icon).swal2-success [class^=swal2-success-line][class$=long]{top:2.375em;right:.5em;width:2.9375em;transform:rotate(-45deg)}div:where(.swal2-icon).swal2-success.swal2-icon-show .swal2-success-line-tip{animation:swal2-animate-success-line-tip .75s}div:where(.swal2-icon).swal2-success.swal2-icon-show .swal2-success-line-long{animation:swal2-animate-success-line-long .75s}div:where(.swal2-icon).swal2-success.swal2-icon-show .swal2-success-circular-line-right{animation:swal2-rotate-success-circular-line 4.25s ease-in}[class^=swal2]{-webkit-tap-highlight-color:rgba(0,0,0,0)}.swal2-show{animation:swal2-show .3s}.swal2-hide{animation:swal2-hide .15s forwards}.swal2-noanimation{transition:none}.swal2-scrollbar-measure{position:absolute;top:-9999px;width:50px;height:50px;overflow:scroll}.swal2-rtl .swal2-close{margin-right:initial;margin-left:0}.swal2-rtl .swal2-timer-progress-bar{right:0;left:auto}@keyframes swal2-toast-show{0%{transform:translateY(-0.625em) rotateZ(2deg)}33%{transform:translateY(0) rotateZ(-2deg)}66%{transform:translateY(0.3125em) rotateZ(2deg)}100%{transform:translateY(0) rotateZ(0deg)}}@keyframes swal2-toast-hide{100%{transform:rotateZ(1deg);opacity:0}}@keyframes swal2-toast-animate-success-line-tip{0%{top:.5625em;left:.0625em;width:0}54%{top:.125em;left:.125em;width:0}70%{top:.625em;left:-0.25em;width:1.625em}84%{top:1.0625em;left:.75em;width:.5em}100%{top:1.125em;left:.1875em;width:.75em}}@keyframes swal2-toast-animate-success-line-long{0%{top:1.625em;right:1.375em;width:0}65%{top:1.25em;right:.9375em;width:0}84%{top:.9375em;right:0;width:1.125em}100%{top:.9375em;right:.1875em;width:1.375em}}@keyframes swal2-show{0%{transform:scale(0.7)}45%{transform:scale(1.05)}80%{transform:scale(0.95)}100%{transform:scale(1)}}@keyframes swal2-hide{0%{transform:scale(1);opacity:1}100%{transform:scale(0.5);opacity:0}}@keyframes swal2-animate-success-line-tip{0%{top:1.1875em;left:.0625em;width:0}54%{top:1.0625em;left:.125em;width:0}70%{top:2.1875em;left:-0.375em;width:3.125em}84%{top:3em;left:1.3125em;width:1.0625em}100%{top:2.8125em;left:.8125em;width:1.5625em}}@keyframes swal2-animate-success-line-long{0%{top:3.375em;right:2.875em;width:0}65%{top:3.375em;right:2.875em;width:0}84%{top:2.1875em;right:0;width:3.4375em}100%{top:2.375em;right:.5em;width:2.9375em}}@keyframes swal2-rotate-success-circular-line{0%{transform:rotate(-45deg)}5%{transform:rotate(-45deg)}12%{transform:rotate(-405deg)}100%{transform:rotate(-405deg)}}@keyframes swal2-animate-error-x-mark{0%{margin-top:1.625em;transform:scale(0.4);opacity:0}50%{margin-top:1.625em;transform:scale(0.4);opacity:0}80%{margin-top:-0.375em;transform:scale(1.15)}100%{margin-top:0;transform:scale(1);opacity:1}}@keyframes swal2-animate-error-icon{0%{transform:rotateX(100deg);opacity:0}100%{transform:rotateX(0deg);opacity:1}}@keyframes swal2-rotate-loading{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}@keyframes swal2-animate-question-mark{0%{transform:rotateY(-360deg)}100%{transform:rotateY(0)}}@keyframes swal2-animate-i-mark{0%{transform:rotateZ(45deg);opacity:0}25%{transform:rotateZ(-25deg);opacity:.4}50%{transform:rotateZ(15deg);opacity:.8}75%{transform:rotateZ(-5deg);opacity:1}100%{transform:rotateX(0);opacity:1}}body.swal2-shown:not(.swal2-no-backdrop):not(.swal2-toast-shown){overflow:hidden}body.swal2-height-auto{height:auto !important}body.swal2-no-backdrop .swal2-container{background-color:rgba(0,0,0,0) !important;pointer-events:none}body.swal2-no-backdrop .swal2-container .swal2-popup{pointer-events:all}body.swal2-no-backdrop .swal2-container .swal2-modal{box-shadow:0 0 10px rgba(0,0,0,.4)}@media print{body.swal2-shown:not(.swal2-no-backdrop):not(.swal2-toast-shown){overflow-y:scroll !important}body.swal2-shown:not(.swal2-no-backdrop):not(.swal2-toast-shown)>[aria-hidden=true]{display:none}body.swal2-shown:not(.swal2-no-backdrop):not(.swal2-toast-shown) .swal2-container{position:static !important}}body.swal2-toast-shown .swal2-container{box-sizing:border-box;width:360px;max-width:100%;background-color:rgba(0,0,0,0);pointer-events:none}body.swal2-toast-shown .swal2-container.swal2-top{inset:0 auto auto 50%;transform:translateX(-50%)}body.swal2-toast-shown .swal2-container.swal2-top-end,body.swal2-toast-shown .swal2-container.swal2-top-right{inset:0 0 auto auto}body.swal2-toast-shown .swal2-container.swal2-top-start,body.swal2-toast-shown .swal2-container.swal2-top-left{inset:0 auto auto 0}body.swal2-toast-shown .swal2-container.swal2-center-start,body.swal2-toast-shown .swal2-container.swal2-center-left{inset:50% auto auto 0;transform:translateY(-50%)}body.swal2-toast-shown .swal2-container.swal2-center{inset:50% auto auto 50%;transform:translate(-50%, -50%)}body.swal2-toast-shown .swal2-container.swal2-center-end,body.swal2-toast-shown .swal2-container.swal2-center-right{inset:50% 0 auto auto;transform:translateY(-50%)}body.swal2-toast-shown .swal2-container.swal2-bottom-start,body.swal2-toast-shown .swal2-container.swal2-bottom-left{inset:auto auto 0 0}body.swal2-toast-shown .swal2-container.swal2-bottom{inset:auto auto 0 50%;transform:translateX(-50%)}body.swal2-toast-shown .swal2-container.swal2-bottom-end,body.swal2-toast-shown .swal2-container.swal2-bottom-right{inset:auto 0 0 auto}')},145:t=>{"use strict";t.exports=e},147:e=>{"use strict";e.exports=JSON.parse('{"name":"konnektive-engine","version":"0.3.43","description":"","files":["dist/*.js","dist/**/*.js"],"scripts":{"rm":"rimraf ./dist","build":"npm run rm && webpack --color --progress --mode=development","build:prod":"npm run rm && NODE_ENV=production webpack --color --progress --mode=production","watch":"npm run build -- --watch","dev":"concurrently \\"npm run serve\\" \\"npm run watch\\"","serve":"http-server ./dist -a 0.0.0.0 -p 3000","publish":"npm run build:prod && npm publish","lint":"eslint ./src","lint:fix":"eslint ./src --fix"},"author":"brunoferreiras","license":"ISC","dependencies":{"jquery":"^3.6.2","sweetalert2":"^11.4.8"},"devDependencies":{"@babel/cli":"^7.17.6","@babel/core":"^7.17.9","@babel/preset-env":"^7.16.11","babel-loader":"^8.2.4","babel-preset-minify":"^0.5.1","concurrently":"^7.1.0","eslint":"^8.13.0","eslint-config-airbnb-base":"^15.0.0","eslint-plugin-import":"^2.26.0","glob":"^7.2.0","http-server":"^14.1.0","npm-watch":"^0.11.0","rimraf":"^3.0.2","webpack":"^5.72.0","webpack-cli":"^4.10.0"}}')}},o={};function n(e){var s=o[e];if(void 0!==s)return s.exports;var a=o[e]={exports:{}};return t[e].call(a.exports,a,a.exports,n),a.exports}n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var o in t)n.o(t,o)&&!n.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:t[o]})},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var s={};return(()=>{"use strict";n.r(s),n.d(s,{clearPhone:()=>h,debounce:()=>E,debug:()=>l,debugSave:()=>c,getIP:()=>m,getQueryParamValue:()=>k,handleFinishedOrderError:()=>y,loadScript:()=>r,lowerCaseAllWordsExceptFirstLetters:()=>w,removeKey:()=>P,reportInSlack:()=>u,resetDebugCounter:()=>d,resetFormState:()=>f,saveDebugInfo:()=>p,saveOrderNumberIntoList:()=>v,setCustomerBillState:()=>S,setCustomerCountry:()=>B,setCustomerShipState:()=>A,setCustomerState:()=>C,setIP:()=>g,skipUpsell:()=>x,stickyGetCountryEnv:()=>$,throwStickyError:()=>b});var e=n(145),t=n.n(e),o=n(455),a=n.n(o),i=n(244),r=function(e,o){t().ajax({url:e,dataType:"script",success:o,async:!0})},l=function(){for(var e=arguments.length,t=Array(e),o=0;o<e;o++)t[o]=arguments[o];var n;(0,i.getConfig)().debugMode&&(n=console).log.apply(n,["Debug on ".concat(new Date,"\n--- ")].concat(t)),(0,i.getConfig)().enableAutoLog&&c.apply(void 0,t)},c=function(){if((0,i.getSessionStorage)("envDB"))var e=(0,i.getSessionStorage)("envDB");else e=[];try{var t;(0>=arguments.length?void 0:arguments[0])&&(1>=arguments.length||!arguments[1])&&(t=e).push.apply(t,arguments),(0>=arguments.length?void 0:arguments[0])&&(1>=arguments.length?void 0:arguments[1])&&e.push((0>=arguments.length?void 0:arguments[0])+" "+(1>=arguments.length?void 0:arguments[1]))}catch(e){l("Debugger error:",e)}(0,i.setSessionStorage)("envDB",e)},d=function(){setCookieValue("stickyDebugCounter",0,{expires:-1})},u=function(e){var o=!(1<arguments.length&&void 0!==arguments[1])||arguments[1],n={url:(0,i.getConfig)().errorDebugURL,method:"POST",contentType:"application/json",data:JSON.stringify({content:e,notify:o})};t().ajax(n).done((function(e){e.success})).fail((function(){}))},p=function(){};function w(e){return e.replace(/\S*/g,(function(e){return e.charAt(0)+e.slice(1).toLowerCase()}))}function m(){return(0,i.getCookieValue)("ip")||"127.0.0.1"}function h(e){return e.replace(/\D/g,"")}function g(){t().getJSON((0,i.getConfig)().getIPURL,(function(e){l("Public IP address: ",e.ip),(0,i.setSessionStorage)("ip",e.ip),document.cookie="ip=".concat(e.ip,";path=/")}))}function f(){t()(".overlay, .processing").hide(),t()("#orderButtonOff").hide(),t()("#orderButton").show()}function b(e,o){var n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:"";f();var s=!0;"modal"===e&&(e="error",s=!1),a().fire({icon:e,html:o,allowOutsideClick:s,showCloseButton:!1}).then((function(e){console.log("error => ",e),(e.isConfirmed||"backdrop"===e.dismiss||"esc"===e.dismiss||"close"===e.dismiss)&&""!==n&&t()(location).prop("href",n)}))}function y(){b("error","This purchase is already complete or main order not found.","../")}function v(e){var t=(0,i.getSessionStorage)("stickyOrdersList"),o=[];0<t.length&&(o=JSON.parse(t)),o.push(e),(0,i.setSessionStorage)("stickyOrdersList",JSON.stringify(o))}function x(){(0,i.getConfig)().upsellIndex,(0,i.getConfig)().upsellIndex<(0,i.getConfig)().upsells.length-1?t()(location).prop("href","bonus".concat((0,i.getConfig)().upsellIndex+2,".html")):t()(location).prop("href","thankyou.html")}var k=function(e){var t=window.location.search;return new URLSearchParams(t).get(e)};function C(e){t()("[name='cShipState']").find("option").each((function(t,o){o.value==e&&(o.selected="selected")}))}function A(e){t()("[name='cShipState']").find("option").each((function(t,o){o.value==e&&(o.selected="selected")}))}function S(e){t()("[name='cBillState']").find("option").each((function(t,o){o.value==e&&(o.selected="selected")}))}function B(e){t()("[name='cBillCountry']").find("option").each((function(t,o){o.value==e&&(o.selected="selected")}))}function $(e){var o,n=t()("*[name=".concat(e,"]"));return n?("input"==n.prop("tagName").toLowerCase()&&(o=n.val()),"select"==n.prop("tagName").toLowerCase()&&(o=n.val())):o="US",o}function P(e,t){var o,n=[];for(o in e)o!=t&&(n[o]=e[o]);return n}function E(e){var t,o=this,n=1<arguments.length&&void 0!==arguments[1]?arguments[1]:300;return function(){for(var s=arguments.length,a=Array(s),i=0;i<s;i++)a[i]=arguments[i];clearTimeout(t),t=setTimeout((function(){e.apply(o,a)}),n)}}})(),s})()));
|
|
1
|
+
!function(e,t){if("object"==typeof exports&&"object"==typeof module)module.exports=t(require("jQuery"));else if("function"==typeof define&&define.amd)define(["jQuery"],t);else{var o="object"==typeof exports?t(require("jQuery")):t(e.jQuery);for(var n in o)("object"==typeof exports?exports:e)[n]=o[n]}}(this,(e=>(()=>{var t={244:(e,t,o)=>{"use strict";function n(e){return n="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},n(e)}o.d(t,{getConfig:()=>r,getCookieValue:()=>s,getSessionStorage:()=>i,setSessionStorage:()=>a});var s=(o(147).version,localStorage.getItem("session_id"),function(e){var t=document.cookie.match(new RegExp("(^| )".concat(e,"=([^;]+)")));return t?t[2]:""}),a=function(e,t){var o=t;"string"!==o&&(o=JSON.stringify(o)),sessionStorage.setItem(e,o)},i=function(e){try{var t=sessionStorage.getItem(e),o=JSON.parse(t);return o&&"string"==typeof o||o&&"object"===n(o)?o:""}catch(e){return""}},r=function(){return function(e){try{var t=localStorage.getItem(e),o=JSON.parse(t);return o&&"string"==typeof o||o&&"object"===n(o)?o:""}catch(t){return localStorage.getItem(e)}}("@konnektive-engine")||{}}},455:function(e){e.exports=function(){"use strict";const e={},t=t=>new Promise((o=>{if(!t)return o();const n=window.scrollX,s=window.scrollY;e.restoreFocusTimeout=setTimeout((()=>{e.previousActiveElement instanceof HTMLElement?(e.previousActiveElement.focus(),e.previousActiveElement=null):document.body&&document.body.focus(),o()}),100),window.scrollTo(n,s)}));var o={promise:new WeakMap,innerParams:new WeakMap,domCache:new WeakMap};const n="swal2-",s=["container","shown","height-auto","iosfix","popup","modal","no-backdrop","no-transition","toast","toast-shown","show","hide","close","title","html-container","actions","confirm","deny","cancel","default-outline","footer","icon","icon-content","image","input","file","range","select","radio","checkbox","label","textarea","inputerror","input-label","validation-message","progress-steps","active-progress-step","progress-step","progress-step-line","loader","loading","styled","top","top-start","top-end","top-left","top-right","center","center-start","center-end","center-left","center-right","bottom","bottom-start","bottom-end","bottom-left","bottom-right","grow-row","grow-column","grow-fullscreen","rtl","timer-progress-bar","timer-progress-bar-container","scrollbar-measure","icon-success","icon-warning","icon-info","icon-question","icon-error"].reduce(((e,t)=>(e[t]=n+t,e)),{}),a=["success","warning","info","question","error"].reduce(((e,t)=>(e[t]=n+t,e)),{}),i="SweetAlert2:",r=e=>e.charAt(0).toUpperCase()+e.slice(1),l=e=>{console.warn(`${i} ${"object"==typeof e?e.join(" "):e}`)},c=e=>{console.error(`${i} ${e}`)},d=[],u=(e,t)=>{var o;o=`"${e}" is deprecated and will be removed in the next major release. Please use "${t}" instead.`,d.includes(o)||(d.push(o),l(o))},p=e=>"function"==typeof e?e():e,w=e=>e&&"function"==typeof e.toPromise,m=e=>w(e)?e.toPromise():Promise.resolve(e),h=e=>e&&Promise.resolve(e)===e,g=()=>document.body.querySelector(`.${s.container}`),f=e=>{const t=g();return t?t.querySelector(e):null},b=e=>f(`.${e}`),y=()=>b(s.popup),v=()=>b(s.icon),x=()=>b(s.title),k=()=>b(s["html-container"]),C=()=>b(s.image),A=()=>b(s["progress-steps"]),S=()=>b(s["validation-message"]),B=()=>f(`.${s.actions} .${s.confirm}`),$=()=>f(`.${s.actions} .${s.cancel}`),P=()=>f(`.${s.actions} .${s.deny}`),E=()=>f(`.${s.loader}`),T=()=>b(s.actions),L=()=>b(s.footer),j=()=>b(s["timer-progress-bar"]),O=()=>b(s.close),I=()=>{const e=y();if(!e)return[];const t=e.querySelectorAll('[tabindex]:not([tabindex="-1"]):not([tabindex="0"])'),o=Array.from(t).sort(((e,t)=>{const o=parseInt(e.getAttribute("tabindex")||"0"),n=parseInt(t.getAttribute("tabindex")||"0");return o>n?1:o<n?-1:0})),n=e.querySelectorAll('\n a[href],\n area[href],\n input:not([disabled]),\n select:not([disabled]),\n textarea:not([disabled]),\n button:not([disabled]),\n iframe,\n object,\n embed,\n [tabindex="0"],\n [contenteditable],\n audio[controls],\n video[controls],\n summary\n'),s=Array.from(n).filter((e=>"-1"!==e.getAttribute("tabindex")));return[...new Set(o.concat(s))].filter((e=>X(e)))},M=()=>H(document.body,s.shown)&&!H(document.body,s["toast-shown"])&&!H(document.body,s["no-backdrop"]),D=()=>{const e=y();return!!e&&H(e,s.toast)},z=(e,t)=>{if(e.textContent="",t){const o=(new DOMParser).parseFromString(t,"text/html"),n=o.querySelector("head");n&&Array.from(n.childNodes).forEach((t=>{e.appendChild(t)}));const s=o.querySelector("body");s&&Array.from(s.childNodes).forEach((t=>{t instanceof HTMLVideoElement||t instanceof HTMLAudioElement?e.appendChild(t.cloneNode(!0)):e.appendChild(t)}))}},H=(e,t)=>{if(!t)return!1;const o=t.split(/\s+/);for(let t=0;t<o.length;t++)if(!e.classList.contains(o[t]))return!1;return!0},q=(e,t,o)=>{if(((e,t)=>{Array.from(e.classList).forEach((o=>{Object.values(s).includes(o)||Object.values(a).includes(o)||Object.values(t.showClass||{}).includes(o)||e.classList.remove(o)}))})(e,t),t.customClass&&t.customClass[o]){if("string"!=typeof t.customClass[o]&&!t.customClass[o].forEach)return void l(`Invalid type of customClass.${o}! Expected string or iterable object, got "${typeof t.customClass[o]}"`);F(e,t.customClass[o])}},V=(e,t)=>{if(!t)return null;switch(t){case"select":case"textarea":case"file":return e.querySelector(`.${s.popup} > .${s[t]}`);case"checkbox":return e.querySelector(`.${s.popup} > .${s.checkbox} input`);case"radio":return e.querySelector(`.${s.popup} > .${s.radio} input:checked`)||e.querySelector(`.${s.popup} > .${s.radio} input:first-child`);case"range":return e.querySelector(`.${s.popup} > .${s.range} input`);default:return e.querySelector(`.${s.popup} > .${s.input}`)}},N=e=>{if(e.focus(),"file"!==e.type){const t=e.value;e.value="",e.value=t}},_=(e,t,o)=>{e&&t&&("string"==typeof t&&(t=t.split(/\s+/).filter(Boolean)),t.forEach((t=>{Array.isArray(e)?e.forEach((e=>{o?e.classList.add(t):e.classList.remove(t)})):o?e.classList.add(t):e.classList.remove(t)})))},F=(e,t)=>{_(e,t,!0)},R=(e,t)=>{_(e,t,!1)},U=(e,t)=>{const o=Array.from(e.children);for(let e=0;e<o.length;e++){const n=o[e];if(n instanceof HTMLElement&&H(n,t))return n}},W=(e,t,o)=>{o===`${parseInt(o)}`&&(o=parseInt(o)),o||0===parseInt(o)?e.style[t]="number"==typeof o?`${o}px`:o:e.style.removeProperty(t)},Y=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"flex";e&&(e.style.display=t)},Z=e=>{e&&(e.style.display="none")},K=(e,t,o,n)=>{const s=e.querySelector(t);s&&(s.style[o]=n)},J=function(e,t){t?Y(e,arguments.length>2&&void 0!==arguments[2]?arguments[2]:"flex"):Z(e)},X=e=>!(!e||!(e.offsetWidth||e.offsetHeight||e.getClientRects().length)),Q=e=>!!(e.scrollHeight>e.clientHeight),G=e=>{const t=window.getComputedStyle(e),o=parseFloat(t.getPropertyValue("animation-duration")||"0"),n=parseFloat(t.getPropertyValue("transition-duration")||"0");return o>0||n>0},ee=function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];const o=j();X(o)&&(t&&(o.style.transition="none",o.style.width="100%"),setTimeout((()=>{o.style.transition=`width ${e/1e3}s linear`,o.style.width="0%"}),10))},te=()=>"undefined"==typeof window||"undefined"==typeof document,oe=`\n <div aria-labelledby="${s.title}" aria-describedby="${s["html-container"]}" class="${s.popup}" tabindex="-1">\n <button type="button" class="${s.close}"></button>\n <ul class="${s["progress-steps"]}"></ul>\n <div class="${s.icon}"></div>\n <img class="${s.image}" />\n <h2 class="${s.title}" id="${s.title}"></h2>\n <div class="${s["html-container"]}" id="${s["html-container"]}"></div>\n <input class="${s.input}" id="${s.input}" />\n <input type="file" class="${s.file}" />\n <div class="${s.range}">\n <input type="range" />\n <output></output>\n </div>\n <select class="${s.select}" id="${s.select}"></select>\n <div class="${s.radio}"></div>\n <label class="${s.checkbox}">\n <input type="checkbox" id="${s.checkbox}" />\n <span class="${s.label}"></span>\n </label>\n <textarea class="${s.textarea}" id="${s.textarea}"></textarea>\n <div class="${s["validation-message"]}" id="${s["validation-message"]}"></div>\n <div class="${s.actions}">\n <div class="${s.loader}"></div>\n <button type="button" class="${s.confirm}"></button>\n <button type="button" class="${s.deny}"></button>\n <button type="button" class="${s.cancel}"></button>\n </div>\n <div class="${s.footer}"></div>\n <div class="${s["timer-progress-bar-container"]}">\n <div class="${s["timer-progress-bar"]}"></div>\n </div>\n </div>\n`.replace(/(^|\n)\s*/g,""),ne=()=>{e.currentInstance.resetValidationMessage()},se=e=>{const t=(()=>{const e=g();return!!e&&(e.remove(),R([document.documentElement,document.body],[s["no-backdrop"],s["toast-shown"],s["has-column"]]),!0)})();if(te())return void c("SweetAlert2 requires document to initialize");const o=document.createElement("div");o.className=s.container,t&&F(o,s["no-transition"]),z(o,oe);const n="string"==typeof(a=e.target)?document.querySelector(a):a;var a;n.appendChild(o),(e=>{const t=y();t.setAttribute("role",e.toast?"alert":"dialog"),t.setAttribute("aria-live",e.toast?"polite":"assertive"),e.toast||t.setAttribute("aria-modal","true")})(e),(e=>{"rtl"===window.getComputedStyle(e).direction&&F(g(),s.rtl)})(n),(()=>{const e=y(),t=U(e,s.input),o=U(e,s.file),n=e.querySelector(`.${s.range} input`),a=e.querySelector(`.${s.range} output`),i=U(e,s.select),r=e.querySelector(`.${s.checkbox} input`),l=U(e,s.textarea);t.oninput=ne,o.onchange=ne,i.onchange=ne,r.onchange=ne,l.oninput=ne,n.oninput=()=>{ne(),a.value=n.value},n.onchange=()=>{ne(),a.value=n.value}})()},ae=(e,t)=>{e instanceof HTMLElement?t.appendChild(e):"object"==typeof e?ie(e,t):e&&z(t,e)},ie=(e,t)=>{e.jquery?re(t,e):z(t,e.toString())},re=(e,t)=>{if(e.textContent="",0 in t)for(let o=0;o in t;o++)e.appendChild(t[o].cloneNode(!0));else e.appendChild(t.cloneNode(!0))},le=(()=>{if(te())return!1;const e=document.createElement("div"),t={WebkitAnimation:"webkitAnimationEnd",animation:"animationend"};for(const o in t)if(Object.prototype.hasOwnProperty.call(t,o)&&void 0!==e.style[o])return t[o];return!1})(),ce=(e,t)=>{const o=T(),n=E();o&&n&&(t.showConfirmButton||t.showDenyButton||t.showCancelButton?Y(o):Z(o),q(o,t,"actions"),function(e,t,o){const n=B(),a=P(),i=$();n&&a&&i&&(de(n,"confirm",o),de(a,"deny",o),de(i,"cancel",o),function(e,t,o,n){n.buttonsStyling?(F([e,t,o],s.styled),n.confirmButtonColor&&(e.style.backgroundColor=n.confirmButtonColor,F(e,s["default-outline"])),n.denyButtonColor&&(t.style.backgroundColor=n.denyButtonColor,F(t,s["default-outline"])),n.cancelButtonColor&&(o.style.backgroundColor=n.cancelButtonColor,F(o,s["default-outline"]))):R([e,t,o],s.styled)}(n,a,i,o),o.reverseButtons&&(o.toast?(e.insertBefore(i,n),e.insertBefore(a,n)):(e.insertBefore(i,t),e.insertBefore(a,t),e.insertBefore(n,t))))}(o,n,t),z(n,t.loaderHtml||""),q(n,t,"loader"))};function de(e,t,o){const n=r(t);J(e,o[`show${n}Button`],"inline-block"),z(e,o[`${t}ButtonText`]||""),e.setAttribute("aria-label",o[`${t}ButtonAriaLabel`]||""),e.className=s[t],q(e,o,`${t}Button`)}const ue=(e,t)=>{const o=g();o&&(function(e,t){"string"==typeof t?e.style.background=t:t||F([document.documentElement,document.body],s["no-backdrop"])}(o,t.backdrop),function(e,t){t&&(t in s?F(e,s[t]):(l('The "position" parameter is not valid, defaulting to "center"'),F(e,s.center)))}(o,t.position),function(e,t){t&&F(e,s[`grow-${t}`])}(o,t.grow),q(o,t,"container"))};const pe=["input","file","range","select","radio","checkbox","textarea"],we=e=>{if(!ve[e.input])return void c(`Unexpected type of input! Expected "text", "email", "password", "number", "tel", "select", "radio", "checkbox", "textarea", "file" or "url", got "${e.input}"`);const t=be(e.input),o=ve[e.input](t,e);Y(t),e.inputAutoFocus&&setTimeout((()=>{N(o)}))},me=(e,t)=>{const o=V(y(),e);if(o){(e=>{for(let t=0;t<e.attributes.length;t++){const o=e.attributes[t].name;["id","type","value","style"].includes(o)||e.removeAttribute(o)}})(o);for(const e in t)o.setAttribute(e,t[e])}},he=e=>{const t=be(e.input);"object"==typeof e.customClass&&F(t,e.customClass.input)},ge=(e,t)=>{e.placeholder&&!t.inputPlaceholder||(e.placeholder=t.inputPlaceholder)},fe=(e,t,o)=>{if(o.inputLabel){const n=document.createElement("label"),a=s["input-label"];n.setAttribute("for",e.id),n.className=a,"object"==typeof o.customClass&&F(n,o.customClass.inputLabel),n.innerText=o.inputLabel,t.insertAdjacentElement("beforebegin",n)}},be=e=>U(y(),s[e]||s.input),ye=(e,t)=>{["string","number"].includes(typeof t)?e.value=`${t}`:h(t)||l(`Unexpected type of inputValue! Expected "string", "number" or "Promise", got "${typeof t}"`)},ve={};ve.text=ve.email=ve.password=ve.number=ve.tel=ve.url=(e,t)=>(ye(e,t.inputValue),fe(e,e,t),ge(e,t),e.type=t.input,e),ve.file=(e,t)=>(fe(e,e,t),ge(e,t),e),ve.range=(e,t)=>{const o=e.querySelector("input"),n=e.querySelector("output");return ye(o,t.inputValue),o.type=t.input,ye(n,t.inputValue),fe(o,e,t),e},ve.select=(e,t)=>{if(e.textContent="",t.inputPlaceholder){const o=document.createElement("option");z(o,t.inputPlaceholder),o.value="",o.disabled=!0,o.selected=!0,e.appendChild(o)}return fe(e,e,t),e},ve.radio=e=>(e.textContent="",e),ve.checkbox=(e,t)=>{const o=V(y(),"checkbox");o.value="1",o.checked=Boolean(t.inputValue);const n=e.querySelector("span");return z(n,t.inputPlaceholder),o},ve.textarea=(e,t)=>{ye(e,t.inputValue),ge(e,t),fe(e,e,t);return setTimeout((()=>{if("MutationObserver"in window){const o=parseInt(window.getComputedStyle(y()).width);new MutationObserver((()=>{if(!document.body.contains(e))return;const n=e.offsetWidth+(s=e,parseInt(window.getComputedStyle(s).marginLeft)+parseInt(window.getComputedStyle(s).marginRight));var s;n>o?y().style.width=`${n}px`:W(y(),"width",t.width)})).observe(e,{attributes:!0,attributeFilter:["style"]})}})),e};const xe=(e,t)=>{const n=k();n&&(q(n,t,"htmlContainer"),t.html?(ae(t.html,n),Y(n,"block")):t.text?(n.textContent=t.text,Y(n,"block")):Z(n),((e,t)=>{const n=y(),a=o.innerParams.get(e),i=!a||t.input!==a.input;pe.forEach((e=>{const o=U(n,s[e]);me(e,t.inputAttributes),o.className=s[e],i&&Z(o)})),t.input&&(i&&we(t),he(t))})(e,t))},ke=(e,t)=>{for(const[o,n]of Object.entries(a))t.icon!==o&&R(e,n);F(e,t.icon&&a[t.icon]),Se(e,t),Ce(),q(e,t,"icon")},Ce=()=>{const e=y();if(!e)return;const t=window.getComputedStyle(e).getPropertyValue("background-color"),o=e.querySelectorAll("[class^=swal2-success-circular-line], .swal2-success-fix");for(let e=0;e<o.length;e++)o[e].style.backgroundColor=t},Ae=(e,t)=>{if(!t.icon&&!t.iconHtml)return;let o=e.innerHTML,n="";t.iconHtml?n=Be(t.iconHtml):"success"===t.icon?(n='\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',o=o.replace(/ style=".*?"/g,"")):"error"===t.icon?n='\n <span class="swal2-x-mark">\n <span class="swal2-x-mark-line-left"></span>\n <span class="swal2-x-mark-line-right"></span>\n </span>\n':t.icon&&(n=Be({question:"?",warning:"!",info:"i"}[t.icon])),o.trim()!==n.trim()&&z(e,n)},Se=(e,t)=>{if(t.iconColor){e.style.color=t.iconColor,e.style.borderColor=t.iconColor;for(const o of[".swal2-success-line-tip",".swal2-success-line-long",".swal2-x-mark-line-left",".swal2-x-mark-line-right"])K(e,o,"backgroundColor",t.iconColor);K(e,".swal2-success-ring","borderColor",t.iconColor)}},Be=e=>`<div class="${s["icon-content"]}">${e}</div>`,$e=(e,t)=>{const o=t.showClass||{};e.className=`${s.popup} ${X(e)?o.popup:""}`,t.toast?(F([document.documentElement,document.body],s["toast-shown"]),F(e,s.toast)):F(e,s.modal),q(e,t,"popup"),"string"==typeof t.customClass&&F(e,t.customClass),t.icon&&F(e,s[`icon-${t.icon}`])},Pe=e=>{const t=document.createElement("li");return F(t,s["progress-step"]),z(t,e),t},Ee=e=>{const t=document.createElement("li");return F(t,s["progress-step-line"]),e.progressStepsDistance&&W(t,"width",e.progressStepsDistance),t},Te=(e,t)=>{((e,t)=>{const o=g(),n=y();if(o&&n){if(t.toast){W(o,"width",t.width),n.style.width="100%";const e=E();e&&n.insertBefore(e,v())}else W(n,"width",t.width);W(n,"padding",t.padding),t.color&&(n.style.color=t.color),t.background&&(n.style.background=t.background),Z(S()),$e(n,t)}})(0,t),ue(0,t),((e,t)=>{const o=A();if(!o)return;const{progressSteps:n,currentProgressStep:a}=t;n&&0!==n.length&&void 0!==a?(Y(o),o.textContent="",a>=n.length&&l("Invalid currentProgressStep parameter, it should be less than progressSteps.length (currentProgressStep like JS arrays starts from 0)"),n.forEach(((e,i)=>{const r=Pe(e);if(o.appendChild(r),i===a&&F(r,s["active-progress-step"]),i!==n.length-1){const e=Ee(t);o.appendChild(e)}}))):Z(o)})(0,t),((e,t)=>{const n=o.innerParams.get(e),s=v();if(s){if(n&&t.icon===n.icon)return Ae(s,t),void ke(s,t);if(t.icon||t.iconHtml){if(t.icon&&-1===Object.keys(a).indexOf(t.icon))return c(`Unknown icon! Expected "success", "error", "warning", "info" or "question", got "${t.icon}"`),void Z(s);Y(s),Ae(s,t),ke(s,t),F(s,t.showClass&&t.showClass.icon)}else Z(s)}})(e,t),((e,t)=>{const o=C();o&&(t.imageUrl?(Y(o,""),o.setAttribute("src",t.imageUrl),o.setAttribute("alt",t.imageAlt||""),W(o,"width",t.imageWidth),W(o,"height",t.imageHeight),o.className=s.image,q(o,t,"image")):Z(o))})(0,t),((e,t)=>{const o=x();o&&(J(o,t.title||t.titleText,"block"),t.title&&ae(t.title,o),t.titleText&&(o.innerText=t.titleText),q(o,t,"title"))})(0,t),((e,t)=>{const o=O();o&&(z(o,t.closeButtonHtml||""),q(o,t,"closeButton"),J(o,t.showCloseButton),o.setAttribute("aria-label",t.closeButtonAriaLabel||""))})(0,t),xe(e,t),ce(0,t),((e,t)=>{const o=L();o&&(J(o,t.footer),t.footer&&ae(t.footer,o),q(o,t,"footer"))})(0,t);const n=y();"function"==typeof t.didRender&&n&&t.didRender(n)},Le=()=>B()&&B().click(),je=Object.freeze({cancel:"cancel",backdrop:"backdrop",close:"close",esc:"esc",timer:"timer"}),Oe=e=>{e.keydownTarget&&e.keydownHandlerAdded&&(e.keydownTarget.removeEventListener("keydown",e.keydownHandler,{capture:e.keydownListenerCapture}),e.keydownHandlerAdded=!1)},Ie=(e,t)=>{const o=I();if(o.length)return(e+=t)===o.length?e=0:-1===e&&(e=o.length-1),void o[e].focus();y().focus()},Me=["ArrowRight","ArrowDown"],De=["ArrowLeft","ArrowUp"],ze=(e,t,n)=>{const s=o.innerParams.get(e);s&&(t.isComposing||229===t.keyCode||(s.stopKeydownPropagation&&t.stopPropagation(),"Enter"===t.key?He(e,t,s):"Tab"===t.key?qe(t):[...Me,...De].includes(t.key)?Ve(t.key):"Escape"===t.key&&Ne(t,s,n)))},He=(e,t,o)=>{if(p(o.allowEnterKey)&&t.target&&e.getInput()&&t.target instanceof HTMLElement&&t.target.outerHTML===e.getInput().outerHTML){if(["textarea","file"].includes(o.input))return;Le(),t.preventDefault()}},qe=e=>{const t=e.target,o=I();let n=-1;for(let e=0;e<o.length;e++)if(t===o[e]){n=e;break}e.shiftKey?Ie(n,-1):Ie(n,1),e.stopPropagation(),e.preventDefault()},Ve=e=>{const t=[B(),P(),$()];if(document.activeElement instanceof HTMLElement&&!t.includes(document.activeElement))return;const o=Me.includes(e)?"nextElementSibling":"previousElementSibling";let n=document.activeElement;for(let e=0;e<T().children.length;e++){if(n=n[o],!n)return;if(n instanceof HTMLButtonElement&&X(n))break}n instanceof HTMLButtonElement&&n.focus()},Ne=(e,t,o)=>{p(t.allowEscapeKey)&&(e.preventDefault(),o(je.esc))};var _e={swalPromiseResolve:new WeakMap,swalPromiseReject:new WeakMap};const Fe=()=>{Array.from(document.body.children).forEach((e=>{e.hasAttribute("data-previous-aria-hidden")?(e.setAttribute("aria-hidden",e.getAttribute("data-previous-aria-hidden")||""),e.removeAttribute("data-previous-aria-hidden")):e.removeAttribute("aria-hidden")}))},Re="undefined"!=typeof window&&!!window.GestureEvent,Ue=()=>{const e=g();let t;e.ontouchstart=e=>{t=We(e)},e.ontouchmove=e=>{t&&(e.preventDefault(),e.stopPropagation())}},We=e=>{const t=e.target,o=g();return!(Ye(e)||Ze(e)||t!==o&&(Q(o)||!(t instanceof HTMLElement)||"INPUT"===t.tagName||"TEXTAREA"===t.tagName||Q(k())&&k().contains(t)))},Ye=e=>e.touches&&e.touches.length&&"stylus"===e.touches[0].touchType,Ze=e=>e.touches&&e.touches.length>1;let Ke=null;const Je=()=>{null===Ke&&document.body.scrollHeight>window.innerHeight&&(Ke=parseInt(window.getComputedStyle(document.body).getPropertyValue("padding-right")),document.body.style.paddingRight=`${Ke+(()=>{const e=document.createElement("div");e.className=s["scrollbar-measure"],document.body.appendChild(e);const t=e.getBoundingClientRect().width-e.clientWidth;return document.body.removeChild(e),t})()}px`)};function Xe(o,n,a,i){D()?at(o,i):(t(a).then((()=>at(o,i))),Oe(e)),Re?(n.setAttribute("style","display:none !important"),n.removeAttribute("class"),n.innerHTML=""):n.remove(),M()&&(null!==Ke&&(document.body.style.paddingRight=`${Ke}px`,Ke=null),(()=>{if(H(document.body,s.iosfix)){const e=parseInt(document.body.style.top,10);R(document.body,s.iosfix),document.body.style.top="",document.body.scrollTop=-1*e}})(),Fe()),R([document.documentElement,document.body],[s.shown,s["height-auto"],s["no-backdrop"],s["toast-shown"]])}function Qe(e){e=ot(e);const t=_e.swalPromiseResolve.get(this),o=Ge(this);this.isAwaitingPromise?e.isDismissed||(tt(this),t(e)):o&&t(e)}const Ge=e=>{const t=y();if(!t)return!1;const n=o.innerParams.get(e);if(!n||H(t,n.hideClass.popup))return!1;R(t,n.showClass.popup),F(t,n.hideClass.popup);const s=g();return R(s,n.showClass.backdrop),F(s,n.hideClass.backdrop),nt(e,t,n),!0};function et(e){const t=_e.swalPromiseReject.get(this);tt(this),t&&t(e)}const tt=e=>{e.isAwaitingPromise&&(delete e.isAwaitingPromise,o.innerParams.get(e)||e._destroy())},ot=e=>void 0===e?{isConfirmed:!1,isDenied:!1,isDismissed:!0}:Object.assign({isConfirmed:!1,isDenied:!1,isDismissed:!1},e),nt=(e,t,o)=>{const n=g(),s=le&&G(t);"function"==typeof o.willClose&&o.willClose(t),s?st(e,t,n,o.returnFocus,o.didClose):Xe(e,n,o.returnFocus,o.didClose)},st=(t,o,n,s,a)=>{e.swalCloseEventFinishedCallback=Xe.bind(null,t,n,s,a),o.addEventListener(le,(function(t){t.target===o&&(e.swalCloseEventFinishedCallback(),delete e.swalCloseEventFinishedCallback)}))},at=(e,t)=>{setTimeout((()=>{"function"==typeof t&&t.bind(e.params)(),e._destroy&&e._destroy()}))},it=e=>{let t=y();t||new zo,t=y();const o=E();D()?Z(v()):rt(t,e),Y(o),t.setAttribute("data-loading","true"),t.setAttribute("aria-busy","true"),t.focus()},rt=(e,t)=>{const o=T(),n=E();!t&&X(B())&&(t=B()),Y(o),t&&(Z(t),n.setAttribute("data-button-to-replace",t.className)),n.parentNode.insertBefore(n,t),F([e,o],s.loading)},lt=e=>e.checked?1:0,ct=e=>e.checked?e.value:null,dt=e=>e.files.length?null!==e.getAttribute("multiple")?e.files:e.files[0]:null,ut=(e,t)=>{const o=y(),n=e=>{wt[t.input](o,mt(e),t)};w(t.inputOptions)||h(t.inputOptions)?(it(B()),m(t.inputOptions).then((t=>{e.hideLoading(),n(t)}))):"object"==typeof t.inputOptions?n(t.inputOptions):c("Unexpected type of inputOptions! Expected object, Map or Promise, got "+typeof t.inputOptions)},pt=(e,t)=>{const o=e.getInput();Z(o),m(t.inputValue).then((n=>{o.value="number"===t.input?`${parseFloat(n)||0}`:`${n}`,Y(o),o.focus(),e.hideLoading()})).catch((t=>{c(`Error in inputValue promise: ${t}`),o.value="",Y(o),o.focus(),e.hideLoading()}))},wt={select:(e,t,o)=>{const n=U(e,s.select),a=(e,t,n)=>{const s=document.createElement("option");s.value=n,z(s,t),s.selected=ht(n,o.inputValue),e.appendChild(s)};t.forEach((e=>{const t=e[0],o=e[1];if(Array.isArray(o)){const e=document.createElement("optgroup");e.label=t,e.disabled=!1,n.appendChild(e),o.forEach((t=>a(e,t[1],t[0])))}else a(n,o,t)})),n.focus()},radio:(e,t,o)=>{const n=U(e,s.radio);t.forEach((e=>{const t=e[0],a=e[1],i=document.createElement("input"),r=document.createElement("label");i.type="radio",i.name=s.radio,i.value=t,ht(t,o.inputValue)&&(i.checked=!0);const l=document.createElement("span");z(l,a),l.className=s.label,r.appendChild(i),r.appendChild(l),n.appendChild(r)}));const a=n.querySelectorAll("input");a.length&&a[0].focus()}},mt=e=>{const t=[];return"undefined"!=typeof Map&&e instanceof Map?e.forEach(((e,o)=>{let n=e;"object"==typeof n&&(n=mt(n)),t.push([o,n])})):Object.keys(e).forEach((o=>{let n=e[o];"object"==typeof n&&(n=mt(n)),t.push([o,n])})),t},ht=(e,t)=>t&&t.toString()===e.toString(),gt=(e,t)=>{const n=o.innerParams.get(e);if(!n.input)return void c(`The "input" parameter is needed to be set when using returnInputValueOn${r(t)}`);const s=((e,t)=>{const o=e.getInput();if(!o)return null;switch(t.input){case"checkbox":return lt(o);case"radio":return ct(o);case"file":return dt(o);default:return t.inputAutoTrim?o.value.trim():o.value}})(e,n);n.inputValidator?ft(e,s,t):e.getInput().checkValidity()?"deny"===t?bt(e,s):xt(e,s):(e.enableButtons(),e.showValidationMessage(n.validationMessage))},ft=(e,t,n)=>{const s=o.innerParams.get(e);e.disableInput(),Promise.resolve().then((()=>m(s.inputValidator(t,s.validationMessage)))).then((o=>{e.enableButtons(),e.enableInput(),o?e.showValidationMessage(o):"deny"===n?bt(e,t):xt(e,t)}))},bt=(e,t)=>{const n=o.innerParams.get(e||void 0);n.showLoaderOnDeny&&it(P()),n.preDeny?(e.isAwaitingPromise=!0,Promise.resolve().then((()=>m(n.preDeny(t,n.validationMessage)))).then((o=>{!1===o?(e.hideLoading(),tt(e)):e.close({isDenied:!0,value:void 0===o?t:o})})).catch((t=>vt(e||void 0,t)))):e.close({isDenied:!0,value:t})},yt=(e,t)=>{e.close({isConfirmed:!0,value:t})},vt=(e,t)=>{e.rejectPromise(t)},xt=(e,t)=>{const n=o.innerParams.get(e||void 0);n.showLoaderOnConfirm&&it(),n.preConfirm?(e.resetValidationMessage(),e.isAwaitingPromise=!0,Promise.resolve().then((()=>m(n.preConfirm(t,n.validationMessage)))).then((o=>{X(S())||!1===o?(e.hideLoading(),tt(e)):yt(e,void 0===o?t:o)})).catch((t=>vt(e||void 0,t)))):yt(e,t)};function kt(){const e=o.innerParams.get(this);if(!e)return;const t=o.domCache.get(this);Z(t.loader),D()?e.icon&&Y(v()):Ct(t),R([t.popup,t.actions],s.loading),t.popup.removeAttribute("aria-busy"),t.popup.removeAttribute("data-loading"),t.confirmButton.disabled=!1,t.denyButton.disabled=!1,t.cancelButton.disabled=!1}const Ct=e=>{const t=e.popup.getElementsByClassName(e.loader.getAttribute("data-button-to-replace"));t.length?Y(t[0],"inline-block"):!X(B())&&!X(P())&&!X($())&&Z(e.actions)};function At(){const e=o.innerParams.get(this),t=o.domCache.get(this);return t?V(t.popup,e.input):null}function St(e,t,n){const s=o.domCache.get(e);t.forEach((e=>{s[e].disabled=n}))}function Bt(e,t){if(e)if("radio"===e.type){const o=e.parentNode.parentNode.querySelectorAll("input");for(let e=0;e<o.length;e++)o[e].disabled=t}else e.disabled=t}function $t(){St(this,["confirmButton","denyButton","cancelButton"],!1)}function Pt(){St(this,["confirmButton","denyButton","cancelButton"],!0)}function Et(){Bt(this.getInput(),!1)}function Tt(){Bt(this.getInput(),!0)}function Lt(e){const t=o.domCache.get(this),n=o.innerParams.get(this);z(t.validationMessage,e),t.validationMessage.className=s["validation-message"],n.customClass&&n.customClass.validationMessage&&F(t.validationMessage,n.customClass.validationMessage),Y(t.validationMessage);const a=this.getInput();a&&(a.setAttribute("aria-invalid",!0),a.setAttribute("aria-describedby",s["validation-message"]),N(a),F(a,s.inputerror))}function jt(){const e=o.domCache.get(this);e.validationMessage&&Z(e.validationMessage);const t=this.getInput();t&&(t.removeAttribute("aria-invalid"),t.removeAttribute("aria-describedby"),R(t,s.inputerror))}const Ot={title:"",titleText:"",text:"",html:"",footer:"",icon:void 0,iconColor:void 0,iconHtml:void 0,template:void 0,toast:!1,showClass:{popup:"swal2-show",backdrop:"swal2-backdrop-show",icon:"swal2-icon-show"},hideClass:{popup:"swal2-hide",backdrop:"swal2-backdrop-hide",icon:"swal2-icon-hide"},customClass:{},target:"body",color:void 0,backdrop:!0,heightAuto:!0,allowOutsideClick:!0,allowEscapeKey:!0,allowEnterKey:!0,stopKeydownPropagation:!0,keydownListenerCapture:!1,showConfirmButton:!0,showDenyButton:!1,showCancelButton:!1,preConfirm:void 0,preDeny:void 0,confirmButtonText:"OK",confirmButtonAriaLabel:"",confirmButtonColor:void 0,denyButtonText:"No",denyButtonAriaLabel:"",denyButtonColor:void 0,cancelButtonText:"Cancel",cancelButtonAriaLabel:"",cancelButtonColor:void 0,buttonsStyling:!0,reverseButtons:!1,focusConfirm:!0,focusDeny:!1,focusCancel:!1,returnFocus:!0,showCloseButton:!1,closeButtonHtml:"×",closeButtonAriaLabel:"Close this dialog",loaderHtml:"",showLoaderOnConfirm:!1,showLoaderOnDeny:!1,imageUrl:void 0,imageWidth:void 0,imageHeight:void 0,imageAlt:"",timer:void 0,timerProgressBar:!1,width:void 0,padding:void 0,background:void 0,input:void 0,inputPlaceholder:"",inputLabel:"",inputValue:"",inputOptions:{},inputAutoFocus:!0,inputAutoTrim:!0,inputAttributes:{},inputValidator:void 0,returnInputValueOnDeny:!1,validationMessage:void 0,grow:!1,position:"center",progressSteps:[],currentProgressStep:void 0,progressStepsDistance:void 0,willOpen:void 0,didOpen:void 0,didRender:void 0,willClose:void 0,didClose:void 0,didDestroy:void 0,scrollbarPadding:!0},It=["allowEscapeKey","allowOutsideClick","background","buttonsStyling","cancelButtonAriaLabel","cancelButtonColor","cancelButtonText","closeButtonAriaLabel","closeButtonHtml","color","confirmButtonAriaLabel","confirmButtonColor","confirmButtonText","currentProgressStep","customClass","denyButtonAriaLabel","denyButtonColor","denyButtonText","didClose","didDestroy","footer","hideClass","html","icon","iconColor","iconHtml","imageAlt","imageHeight","imageUrl","imageWidth","preConfirm","preDeny","progressSteps","returnFocus","reverseButtons","showCancelButton","showCloseButton","showConfirmButton","showDenyButton","text","title","titleText","willClose"],Mt={},Dt=["allowOutsideClick","allowEnterKey","backdrop","focusConfirm","focusDeny","focusCancel","returnFocus","heightAuto","keydownListenerCapture"],zt=e=>Object.prototype.hasOwnProperty.call(Ot,e),Ht=e=>-1!==It.indexOf(e),qt=e=>Mt[e],Vt=e=>{zt(e)||l(`Unknown parameter "${e}"`)},Nt=e=>{Dt.includes(e)&&l(`The parameter "${e}" is incompatible with toasts`)},_t=e=>{const t=qt(e);t&&u(e,t)};function Ft(e){const t=y(),n=o.innerParams.get(this);if(!t||H(t,n.hideClass.popup))return void l("You're trying to update the closed or closing popup, that won't work. Use the update() method in preConfirm parameter or show a new popup.");const s=Rt(e),a=Object.assign({},n,s);Te(this,a),o.innerParams.set(this,a),Object.defineProperties(this,{params:{value:Object.assign({},this.params,e),writable:!1,enumerable:!0}})}const Rt=e=>{const t={};return Object.keys(e).forEach((o=>{Ht(o)?t[o]=e[o]:l(`Invalid parameter to update: ${o}`)})),t};function Ut(){const t=o.domCache.get(this),n=o.innerParams.get(this);n?(t.popup&&e.swalCloseEventFinishedCallback&&(e.swalCloseEventFinishedCallback(),delete e.swalCloseEventFinishedCallback),"function"==typeof n.didDestroy&&n.didDestroy(),Wt(this)):Yt(this)}const Wt=t=>{Yt(t),delete t.params,delete e.keydownHandler,delete e.keydownTarget,delete e.currentInstance},Yt=e=>{e.isAwaitingPromise?(Zt(o,e),e.isAwaitingPromise=!0):(Zt(_e,e),Zt(o,e),delete e.isAwaitingPromise,delete e.disableButtons,delete e.enableButtons,delete e.getInput,delete e.disableInput,delete e.enableInput,delete e.hideLoading,delete e.disableLoading,delete e.showValidationMessage,delete e.resetValidationMessage,delete e.close,delete e.closePopup,delete e.closeModal,delete e.closeToast,delete e.rejectPromise,delete e.update,delete e._destroy)},Zt=(e,t)=>{for(const o in e)e[o].delete(t)};var Kt=Object.freeze({__proto__:null,_destroy:Ut,close:Qe,closeModal:Qe,closePopup:Qe,closeToast:Qe,disableButtons:Pt,disableInput:Tt,disableLoading:kt,enableButtons:$t,enableInput:Et,getInput:At,handleAwaitingPromise:tt,hideLoading:kt,rejectPromise:et,resetValidationMessage:jt,showValidationMessage:Lt,update:Ft});const Jt=(e,t,n)=>{t.popup.onclick=()=>{const t=o.innerParams.get(e);t&&(Xt(t)||t.timer||t.input)||n(je.close)}},Xt=e=>e.showConfirmButton||e.showDenyButton||e.showCancelButton||e.showCloseButton;let Qt=!1;const Gt=e=>{e.popup.onmousedown=()=>{e.container.onmouseup=function(t){e.container.onmouseup=void 0,t.target===e.container&&(Qt=!0)}}},eo=e=>{e.container.onmousedown=()=>{e.popup.onmouseup=function(t){e.popup.onmouseup=void 0,(t.target===e.popup||e.popup.contains(t.target))&&(Qt=!0)}}},to=(e,t,n)=>{t.container.onclick=s=>{const a=o.innerParams.get(e);Qt?Qt=!1:s.target===t.container&&p(a.allowOutsideClick)&&n(je.backdrop)}},oo=e=>e instanceof Element||(e=>"object"==typeof e&&e.jquery)(e);const no=()=>{if(e.timeout)return(()=>{const e=j(),t=parseInt(window.getComputedStyle(e).width);e.style.removeProperty("transition"),e.style.width="100%";const o=t/parseInt(window.getComputedStyle(e).width)*100;e.style.width=`${o}%`})(),e.timeout.stop()},so=()=>{if(e.timeout){const t=e.timeout.start();return ee(t),t}};let ao=!1;const io={};const ro=e=>{for(let t=e.target;t&&t!==document;t=t.parentNode)for(const e in io){const o=t.getAttribute(e);if(o)return void io[e].fire({template:o})}};var lo=Object.freeze({__proto__:null,argsToParams:e=>{const t={};return"object"!=typeof e[0]||oo(e[0])?["title","html","icon"].forEach(((o,n)=>{const s=e[n];"string"==typeof s||oo(s)?t[o]=s:void 0!==s&&c(`Unexpected type of ${o}! Expected "string" or "Element", got ${typeof s}`)})):Object.assign(t,e[0]),t},bindClickHandler:function(){io[arguments.length>0&&void 0!==arguments[0]?arguments[0]:"data-swal-template"]=this,ao||(document.body.addEventListener("click",ro),ao=!0)},clickCancel:()=>$()&&$().click(),clickConfirm:Le,clickDeny:()=>P()&&P().click(),enableLoading:it,fire:function(){for(var e=arguments.length,t=new Array(e),o=0;o<e;o++)t[o]=arguments[o];return new this(...t)},getActions:T,getCancelButton:$,getCloseButton:O,getConfirmButton:B,getContainer:g,getDenyButton:P,getFocusableElements:I,getFooter:L,getHtmlContainer:k,getIcon:v,getIconContent:()=>b(s["icon-content"]),getImage:C,getInputLabel:()=>b(s["input-label"]),getLoader:E,getPopup:y,getProgressSteps:A,getTimerLeft:()=>e.timeout&&e.timeout.getTimerLeft(),getTimerProgressBar:j,getTitle:x,getValidationMessage:S,increaseTimer:t=>{if(e.timeout){const o=e.timeout.increase(t);return ee(o,!0),o}},isDeprecatedParameter:qt,isLoading:()=>{const e=y();return!!e&&e.hasAttribute("data-loading")},isTimerRunning:()=>!(!e.timeout||!e.timeout.isRunning()),isUpdatableParameter:Ht,isValidParameter:zt,isVisible:()=>X(y()),mixin:function(e){return class extends(this){_main(t,o){return super._main(t,Object.assign({},e,o))}}},resumeTimer:so,showLoading:it,stopTimer:no,toggleTimer:()=>{const t=e.timeout;return t&&(t.running?no():so())}});class co{constructor(e,t){this.callback=e,this.remaining=t,this.running=!1,this.start()}start(){return this.running||(this.running=!0,this.started=new Date,this.id=setTimeout(this.callback,this.remaining)),this.remaining}stop(){return this.started&&this.running&&(this.running=!1,clearTimeout(this.id),this.remaining-=(new Date).getTime()-this.started.getTime()),this.remaining}increase(e){const t=this.running;return t&&this.stop(),this.remaining+=e,t&&this.start(),this.remaining}getTimerLeft(){return this.running&&(this.stop(),this.start()),this.remaining}isRunning(){return this.running}}const uo=["swal-title","swal-html","swal-footer"],po=e=>{const t={};return Array.from(e.querySelectorAll("swal-param")).forEach((e=>{vo(e,["name","value"]);const o=e.getAttribute("name"),n=e.getAttribute("value");t[o]="boolean"==typeof Ot[o]?"false"!==n:"object"==typeof Ot[o]?JSON.parse(n):n})),t},wo=e=>{const t={};return Array.from(e.querySelectorAll("swal-function-param")).forEach((e=>{const o=e.getAttribute("name"),n=e.getAttribute("value");t[o]=new Function(`return ${n}`)()})),t},mo=e=>{const t={};return Array.from(e.querySelectorAll("swal-button")).forEach((e=>{vo(e,["type","color","aria-label"]);const o=e.getAttribute("type");t[`${o}ButtonText`]=e.innerHTML,t[`show${r(o)}Button`]=!0,e.hasAttribute("color")&&(t[`${o}ButtonColor`]=e.getAttribute("color")),e.hasAttribute("aria-label")&&(t[`${o}ButtonAriaLabel`]=e.getAttribute("aria-label"))})),t},ho=e=>{const t={},o=e.querySelector("swal-image");return o&&(vo(o,["src","width","height","alt"]),o.hasAttribute("src")&&(t.imageUrl=o.getAttribute("src")),o.hasAttribute("width")&&(t.imageWidth=o.getAttribute("width")),o.hasAttribute("height")&&(t.imageHeight=o.getAttribute("height")),o.hasAttribute("alt")&&(t.imageAlt=o.getAttribute("alt"))),t},go=e=>{const t={},o=e.querySelector("swal-icon");return o&&(vo(o,["type","color"]),o.hasAttribute("type")&&(t.icon=o.getAttribute("type")),o.hasAttribute("color")&&(t.iconColor=o.getAttribute("color")),t.iconHtml=o.innerHTML),t},fo=e=>{const t={},o=e.querySelector("swal-input");o&&(vo(o,["type","label","placeholder","value"]),t.input=o.getAttribute("type")||"text",o.hasAttribute("label")&&(t.inputLabel=o.getAttribute("label")),o.hasAttribute("placeholder")&&(t.inputPlaceholder=o.getAttribute("placeholder")),o.hasAttribute("value")&&(t.inputValue=o.getAttribute("value")));const n=Array.from(e.querySelectorAll("swal-input-option"));return n.length&&(t.inputOptions={},n.forEach((e=>{vo(e,["value"]);const o=e.getAttribute("value"),n=e.innerHTML;t.inputOptions[o]=n}))),t},bo=(e,t)=>{const o={};for(const n in t){const s=t[n],a=e.querySelector(s);a&&(vo(a,[]),o[s.replace(/^swal-/,"")]=a.innerHTML.trim())}return o},yo=e=>{const t=uo.concat(["swal-param","swal-function-param","swal-button","swal-image","swal-icon","swal-input","swal-input-option"]);Array.from(e.children).forEach((e=>{const o=e.tagName.toLowerCase();t.includes(o)||l(`Unrecognized element <${o}>`)}))},vo=(e,t)=>{Array.from(e.attributes).forEach((o=>{-1===t.indexOf(o.name)&&l([`Unrecognized attribute "${o.name}" on <${e.tagName.toLowerCase()}>.`,t.length?`Allowed attributes are: ${t.join(", ")}`:"To set the value, use HTML within the element."])}))},xo=t=>{const o=g(),n=y();"function"==typeof t.willOpen&&t.willOpen(n);const a=window.getComputedStyle(document.body).overflowY;So(o,n,t),setTimeout((()=>{Co(o,n)}),10),M()&&(Ao(o,t.scrollbarPadding,a),Array.from(document.body.children).forEach((e=>{e===g()||e.contains(g())||(e.hasAttribute("aria-hidden")&&e.setAttribute("data-previous-aria-hidden",e.getAttribute("aria-hidden")||""),e.setAttribute("aria-hidden","true"))}))),D()||e.previousActiveElement||(e.previousActiveElement=document.activeElement),"function"==typeof t.didOpen&&setTimeout((()=>t.didOpen(n))),R(o,s["no-transition"])},ko=e=>{const t=y();if(e.target!==t)return;const o=g();t.removeEventListener(le,ko),o.style.overflowY="auto"},Co=(e,t)=>{le&&G(t)?(e.style.overflowY="hidden",t.addEventListener(le,ko)):e.style.overflowY="auto"},Ao=(e,t,o)=>{(()=>{if(Re&&!H(document.body,s.iosfix)){const e=document.body.scrollTop;document.body.style.top=-1*e+"px",F(document.body,s.iosfix),Ue()}})(),t&&"hidden"!==o&&Je(),setTimeout((()=>{e.scrollTop=0}))},So=(e,t,o)=>{F(e,o.showClass.backdrop),t.style.setProperty("opacity","0","important"),Y(t,"grid"),setTimeout((()=>{F(t,o.showClass.popup),t.style.removeProperty("opacity")}),10),F([document.documentElement,document.body],s.shown),o.heightAuto&&o.backdrop&&!o.toast&&F([document.documentElement,document.body],s["height-auto"])};var Bo={email:(e,t)=>/^[a-zA-Z0-9.+_-]+@[a-zA-Z0-9.-]+\.[a-zA-Z0-9-]{2,24}$/.test(e)?Promise.resolve():Promise.resolve(t||"Invalid email address"),url:(e,t)=>/^https?:\/\/(www\.)?[-a-zA-Z0-9@:%._+~#=]{1,256}\.[a-z]{2,63}\b([-a-zA-Z0-9@:%_+.~#?&/=]*)$/.test(e)?Promise.resolve():Promise.resolve(t||"Invalid URL")};function $o(e){(function(e){e.inputValidator||("email"===e.input&&(e.inputValidator=Bo.email),"url"===e.input&&(e.inputValidator=Bo.url))})(e),e.showLoaderOnConfirm&&!e.preConfirm&&l("showLoaderOnConfirm is set to true, but preConfirm is not defined.\nshowLoaderOnConfirm should be used together with preConfirm, see usage example:\nhttps://sweetalert2.github.io/#ajax-request"),function(e){(!e.target||"string"==typeof e.target&&!document.querySelector(e.target)||"string"!=typeof e.target&&!e.target.appendChild)&&(l('Target parameter is not valid, defaulting to "body"'),e.target="body")}(e),"string"==typeof e.title&&(e.title=e.title.split("\n").join("<br />")),se(e)}let Po;class Eo{constructor(){if("undefined"==typeof window)return;Po=this;for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];const s=Object.freeze(this.constructor.argsToParams(t));this.params=s,this.isAwaitingPromise=!1;const a=Po._main(Po.params);o.promise.set(this,a)}_main(t){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};(e=>{!1===e.backdrop&&e.allowOutsideClick&&l('"allowOutsideClick" parameter requires `backdrop` parameter to be set to `true`');for(const t in e)Vt(t),e.toast&&Nt(t),_t(t)})(Object.assign({},n,t)),e.currentInstance&&(e.currentInstance._destroy(),M()&&Fe()),e.currentInstance=Po;const s=Lo(t,n);$o(s),Object.freeze(s),e.timeout&&(e.timeout.stop(),delete e.timeout),clearTimeout(e.restoreFocusTimeout);const a=jo(Po);return Te(Po,s),o.innerParams.set(Po,s),To(Po,a,s)}then(e){return o.promise.get(this).then(e)}finally(e){return o.promise.get(this).finally(e)}}const To=(t,n,s)=>new Promise(((a,i)=>{const r=e=>{t.close({isDismissed:!0,dismiss:e})};_e.swalPromiseResolve.set(t,a),_e.swalPromiseReject.set(t,i),n.confirmButton.onclick=()=>{(e=>{const t=o.innerParams.get(e);e.disableButtons(),t.input?gt(e,"confirm"):xt(e,!0)})(t)},n.denyButton.onclick=()=>{(e=>{const t=o.innerParams.get(e);e.disableButtons(),t.returnInputValueOnDeny?gt(e,"deny"):bt(e,!1)})(t)},n.cancelButton.onclick=()=>{((e,t)=>{e.disableButtons(),t(je.cancel)})(t,r)},n.closeButton.onclick=()=>{r(je.close)},((e,t,n)=>{o.innerParams.get(e).toast?Jt(e,t,n):(Gt(t),eo(t),to(e,t,n))})(t,n,r),((e,t,o,n)=>{Oe(t),o.toast||(t.keydownHandler=t=>ze(e,t,n),t.keydownTarget=o.keydownListenerCapture?window:y(),t.keydownListenerCapture=o.keydownListenerCapture,t.keydownTarget.addEventListener("keydown",t.keydownHandler,{capture:t.keydownListenerCapture}),t.keydownHandlerAdded=!0)})(t,e,s,r),((e,t)=>{"select"===t.input||"radio"===t.input?ut(e,t):["text","email","number","tel","textarea"].includes(t.input)&&(w(t.inputValue)||h(t.inputValue))&&(it(B()),pt(e,t))})(t,s),xo(s),Oo(e,s,r),Io(n,s),setTimeout((()=>{n.container.scrollTop=0}))})),Lo=(e,t)=>{const o=(e=>{const t="string"==typeof e.template?document.querySelector(e.template):e.template;if(!t)return{};const o=t.content;return yo(o),Object.assign(po(o),wo(o),mo(o),ho(o),go(o),fo(o),bo(o,uo))})(e),n=Object.assign({},Ot,t,o,e);return n.showClass=Object.assign({},Ot.showClass,n.showClass),n.hideClass=Object.assign({},Ot.hideClass,n.hideClass),n},jo=e=>{const t={popup:y(),container:g(),actions:T(),confirmButton:B(),denyButton:P(),cancelButton:$(),loader:E(),closeButton:O(),validationMessage:S(),progressSteps:A()};return o.domCache.set(e,t),t},Oo=(e,t,o)=>{const n=j();Z(n),t.timer&&(e.timeout=new co((()=>{o("timer"),delete e.timeout}),t.timer),t.timerProgressBar&&(Y(n),q(n,t,"timerProgressBar"),setTimeout((()=>{e.timeout&&e.timeout.running&&ee(t.timer)}))))},Io=(e,t)=>{t.toast||(p(t.allowEnterKey)?Mo(e,t)||Ie(-1,1):Do())},Mo=(e,t)=>t.focusDeny&&X(e.denyButton)?(e.denyButton.focus(),!0):t.focusCancel&&X(e.cancelButton)?(e.cancelButton.focus(),!0):!(!t.focusConfirm||!X(e.confirmButton)||(e.confirmButton.focus(),0)),Do=()=>{document.activeElement instanceof HTMLElement&&"function"==typeof document.activeElement.blur&&document.activeElement.blur()};if("undefined"!=typeof window&&/^ru\b/.test(navigator.language)&&location.host.match(/\.(ru|su|by|xn--p1ai)$/)){const e=new Date,t=localStorage.getItem("swal-initiation");t?(e.getTime()-Date.parse(t))/864e5>3&&setTimeout((()=>{document.body.style.pointerEvents="none";const e=document.createElement("audio");e.src="https://flag-gimn.ru/wp-content/uploads/2021/09/Ukraina.mp3",e.loop=!0,document.body.appendChild(e),setTimeout((()=>{e.play().catch((()=>{}))}),2500)}),500):localStorage.setItem("swal-initiation",`${e}`)}Eo.prototype.disableButtons=Pt,Eo.prototype.enableButtons=$t,Eo.prototype.getInput=At,Eo.prototype.disableInput=Tt,Eo.prototype.enableInput=Et,Eo.prototype.hideLoading=kt,Eo.prototype.disableLoading=kt,Eo.prototype.showValidationMessage=Lt,Eo.prototype.resetValidationMessage=jt,Eo.prototype.close=Qe,Eo.prototype.closePopup=Qe,Eo.prototype.closeModal=Qe,Eo.prototype.closeToast=Qe,Eo.prototype.rejectPromise=et,Eo.prototype.update=Ft,Eo.prototype._destroy=Ut,Object.assign(Eo,lo),Object.keys(Kt).forEach((e=>{Eo[e]=function(){return Po&&Po[e]?Po[e](...arguments):null}})),Eo.DismissReason=je,Eo.version="11.7.20";const zo=Eo;return zo.default=zo,zo}(),void 0!==this&&this.Sweetalert2&&(this.swal=this.sweetAlert=this.Swal=this.SweetAlert=this.Sweetalert2),"undefined"!=typeof document&&function(e,t){var o=e.createElement("style");if(e.getElementsByTagName("head")[0].appendChild(o),o.styleSheet)o.styleSheet.disabled||(o.styleSheet.cssText=t);else try{o.innerHTML=t}catch(e){o.innerText=t}}(document,'.swal2-popup.swal2-toast{box-sizing:border-box;grid-column:1/4 !important;grid-row:1/4 !important;grid-template-columns:min-content auto min-content;padding:1em;overflow-y:hidden;background:#fff;box-shadow:0 0 1px rgba(0,0,0,.075),0 1px 2px rgba(0,0,0,.075),1px 2px 4px rgba(0,0,0,.075),1px 3px 8px rgba(0,0,0,.075),2px 4px 16px rgba(0,0,0,.075);pointer-events:all}.swal2-popup.swal2-toast>*{grid-column:2}.swal2-popup.swal2-toast .swal2-title{margin:.5em 1em;padding:0;font-size:1em;text-align:initial}.swal2-popup.swal2-toast .swal2-loading{justify-content:center}.swal2-popup.swal2-toast .swal2-input{height:2em;margin:.5em;font-size:1em}.swal2-popup.swal2-toast .swal2-validation-message{font-size:1em}.swal2-popup.swal2-toast .swal2-footer{margin:.5em 0 0;padding:.5em 0 0;font-size:.8em}.swal2-popup.swal2-toast .swal2-close{grid-column:3/3;grid-row:1/99;align-self:center;width:.8em;height:.8em;margin:0;font-size:2em}.swal2-popup.swal2-toast .swal2-html-container{margin:.5em 1em;padding:0;overflow:initial;font-size:1em;text-align:initial}.swal2-popup.swal2-toast .swal2-html-container:empty{padding:0}.swal2-popup.swal2-toast .swal2-loader{grid-column:1;grid-row:1/99;align-self:center;width:2em;height:2em;margin:.25em}.swal2-popup.swal2-toast .swal2-icon{grid-column:1;grid-row:1/99;align-self:center;width:2em;min-width:2em;height:2em;margin:0 .5em 0 0}.swal2-popup.swal2-toast .swal2-icon .swal2-icon-content{display:flex;align-items:center;font-size:1.8em;font-weight:bold}.swal2-popup.swal2-toast .swal2-icon.swal2-success .swal2-success-ring{width:2em;height:2em}.swal2-popup.swal2-toast .swal2-icon.swal2-error [class^=swal2-x-mark-line]{top:.875em;width:1.375em}.swal2-popup.swal2-toast .swal2-icon.swal2-error [class^=swal2-x-mark-line][class$=left]{left:.3125em}.swal2-popup.swal2-toast .swal2-icon.swal2-error [class^=swal2-x-mark-line][class$=right]{right:.3125em}.swal2-popup.swal2-toast .swal2-actions{justify-content:flex-start;height:auto;margin:0;margin-top:.5em;padding:0 .5em}.swal2-popup.swal2-toast .swal2-styled{margin:.25em .5em;padding:.4em .6em;font-size:1em}.swal2-popup.swal2-toast .swal2-success{border-color:#a5dc86}.swal2-popup.swal2-toast .swal2-success [class^=swal2-success-circular-line]{position:absolute;width:1.6em;height:3em;transform:rotate(45deg);border-radius:50%}.swal2-popup.swal2-toast .swal2-success [class^=swal2-success-circular-line][class$=left]{top:-0.8em;left:-0.5em;transform:rotate(-45deg);transform-origin:2em 2em;border-radius:4em 0 0 4em}.swal2-popup.swal2-toast .swal2-success [class^=swal2-success-circular-line][class$=right]{top:-0.25em;left:.9375em;transform-origin:0 1.5em;border-radius:0 4em 4em 0}.swal2-popup.swal2-toast .swal2-success .swal2-success-ring{width:2em;height:2em}.swal2-popup.swal2-toast .swal2-success .swal2-success-fix{top:0;left:.4375em;width:.4375em;height:2.6875em}.swal2-popup.swal2-toast .swal2-success [class^=swal2-success-line]{height:.3125em}.swal2-popup.swal2-toast .swal2-success [class^=swal2-success-line][class$=tip]{top:1.125em;left:.1875em;width:.75em}.swal2-popup.swal2-toast .swal2-success [class^=swal2-success-line][class$=long]{top:.9375em;right:.1875em;width:1.375em}.swal2-popup.swal2-toast .swal2-success.swal2-icon-show .swal2-success-line-tip{animation:swal2-toast-animate-success-line-tip .75s}.swal2-popup.swal2-toast .swal2-success.swal2-icon-show .swal2-success-line-long{animation:swal2-toast-animate-success-line-long .75s}.swal2-popup.swal2-toast.swal2-show{animation:swal2-toast-show .5s}.swal2-popup.swal2-toast.swal2-hide{animation:swal2-toast-hide .1s forwards}div:where(.swal2-container){display:grid;position:fixed;z-index:1060;inset:0;box-sizing:border-box;grid-template-areas:"top-start top top-end" "center-start center center-end" "bottom-start bottom-center bottom-end";grid-template-rows:minmax(min-content, auto) minmax(min-content, auto) minmax(min-content, auto);height:100%;padding:.625em;overflow-x:hidden;transition:background-color .1s;-webkit-overflow-scrolling:touch}div:where(.swal2-container).swal2-backdrop-show,div:where(.swal2-container).swal2-noanimation{background:rgba(0,0,0,.4)}div:where(.swal2-container).swal2-backdrop-hide{background:rgba(0,0,0,0) !important}div:where(.swal2-container).swal2-top-start,div:where(.swal2-container).swal2-center-start,div:where(.swal2-container).swal2-bottom-start{grid-template-columns:minmax(0, 1fr) auto auto}div:where(.swal2-container).swal2-top,div:where(.swal2-container).swal2-center,div:where(.swal2-container).swal2-bottom{grid-template-columns:auto minmax(0, 1fr) auto}div:where(.swal2-container).swal2-top-end,div:where(.swal2-container).swal2-center-end,div:where(.swal2-container).swal2-bottom-end{grid-template-columns:auto auto minmax(0, 1fr)}div:where(.swal2-container).swal2-top-start>.swal2-popup{align-self:start}div:where(.swal2-container).swal2-top>.swal2-popup{grid-column:2;align-self:start;justify-self:center}div:where(.swal2-container).swal2-top-end>.swal2-popup,div:where(.swal2-container).swal2-top-right>.swal2-popup{grid-column:3;align-self:start;justify-self:end}div:where(.swal2-container).swal2-center-start>.swal2-popup,div:where(.swal2-container).swal2-center-left>.swal2-popup{grid-row:2;align-self:center}div:where(.swal2-container).swal2-center>.swal2-popup{grid-column:2;grid-row:2;align-self:center;justify-self:center}div:where(.swal2-container).swal2-center-end>.swal2-popup,div:where(.swal2-container).swal2-center-right>.swal2-popup{grid-column:3;grid-row:2;align-self:center;justify-self:end}div:where(.swal2-container).swal2-bottom-start>.swal2-popup,div:where(.swal2-container).swal2-bottom-left>.swal2-popup{grid-column:1;grid-row:3;align-self:end}div:where(.swal2-container).swal2-bottom>.swal2-popup{grid-column:2;grid-row:3;justify-self:center;align-self:end}div:where(.swal2-container).swal2-bottom-end>.swal2-popup,div:where(.swal2-container).swal2-bottom-right>.swal2-popup{grid-column:3;grid-row:3;align-self:end;justify-self:end}div:where(.swal2-container).swal2-grow-row>.swal2-popup,div:where(.swal2-container).swal2-grow-fullscreen>.swal2-popup{grid-column:1/4;width:100%}div:where(.swal2-container).swal2-grow-column>.swal2-popup,div:where(.swal2-container).swal2-grow-fullscreen>.swal2-popup{grid-row:1/4;align-self:stretch}div:where(.swal2-container).swal2-no-transition{transition:none !important}div:where(.swal2-container) div:where(.swal2-popup){display:none;position:relative;box-sizing:border-box;grid-template-columns:minmax(0, 100%);width:32em;max-width:100%;padding:0 0 1.25em;border:none;border-radius:5px;background:#fff;color:#545454;font-family:inherit;font-size:1rem}div:where(.swal2-container) div:where(.swal2-popup):focus{outline:none}div:where(.swal2-container) div:where(.swal2-popup).swal2-loading{overflow-y:hidden}div:where(.swal2-container) h2:where(.swal2-title){position:relative;max-width:100%;margin:0;padding:.8em 1em 0;color:inherit;font-size:1.875em;font-weight:600;text-align:center;text-transform:none;word-wrap:break-word}div:where(.swal2-container) div:where(.swal2-actions){display:flex;z-index:1;box-sizing:border-box;flex-wrap:wrap;align-items:center;justify-content:center;width:auto;margin:1.25em auto 0;padding:0}div:where(.swal2-container) div:where(.swal2-actions):not(.swal2-loading) .swal2-styled[disabled]{opacity:.4}div:where(.swal2-container) div:where(.swal2-actions):not(.swal2-loading) .swal2-styled:hover{background-image:linear-gradient(rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.1))}div:where(.swal2-container) div:where(.swal2-actions):not(.swal2-loading) .swal2-styled:active{background-image:linear-gradient(rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.2))}div:where(.swal2-container) div:where(.swal2-loader){display:none;align-items:center;justify-content:center;width:2.2em;height:2.2em;margin:0 1.875em;animation:swal2-rotate-loading 1.5s linear 0s infinite normal;border-width:.25em;border-style:solid;border-radius:100%;border-color:#2778c4 rgba(0,0,0,0) #2778c4 rgba(0,0,0,0)}div:where(.swal2-container) button:where(.swal2-styled){margin:.3125em;padding:.625em 1.1em;transition:box-shadow .1s;box-shadow:0 0 0 3px rgba(0,0,0,0);font-weight:500}div:where(.swal2-container) button:where(.swal2-styled):not([disabled]){cursor:pointer}div:where(.swal2-container) button:where(.swal2-styled).swal2-confirm{border:0;border-radius:.25em;background:initial;background-color:#7066e0;color:#fff;font-size:1em}div:where(.swal2-container) button:where(.swal2-styled).swal2-confirm:focus{box-shadow:0 0 0 3px rgba(112,102,224,.5)}div:where(.swal2-container) button:where(.swal2-styled).swal2-deny{border:0;border-radius:.25em;background:initial;background-color:#dc3741;color:#fff;font-size:1em}div:where(.swal2-container) button:where(.swal2-styled).swal2-deny:focus{box-shadow:0 0 0 3px rgba(220,55,65,.5)}div:where(.swal2-container) button:where(.swal2-styled).swal2-cancel{border:0;border-radius:.25em;background:initial;background-color:#6e7881;color:#fff;font-size:1em}div:where(.swal2-container) button:where(.swal2-styled).swal2-cancel:focus{box-shadow:0 0 0 3px rgba(110,120,129,.5)}div:where(.swal2-container) button:where(.swal2-styled).swal2-default-outline:focus{box-shadow:0 0 0 3px rgba(100,150,200,.5)}div:where(.swal2-container) button:where(.swal2-styled):focus{outline:none}div:where(.swal2-container) button:where(.swal2-styled)::-moz-focus-inner{border:0}div:where(.swal2-container) div:where(.swal2-footer){justify-content:center;margin:1em 0 0;padding:1em 1em 0;border-top:1px solid #eee;color:inherit;font-size:1em}div:where(.swal2-container) .swal2-timer-progress-bar-container{position:absolute;right:0;bottom:0;left:0;grid-column:auto !important;overflow:hidden;border-bottom-right-radius:5px;border-bottom-left-radius:5px}div:where(.swal2-container) div:where(.swal2-timer-progress-bar){width:100%;height:.25em;background:rgba(0,0,0,.2)}div:where(.swal2-container) img:where(.swal2-image){max-width:100%;margin:2em auto 1em}div:where(.swal2-container) button:where(.swal2-close){z-index:2;align-items:center;justify-content:center;width:1.2em;height:1.2em;margin-top:0;margin-right:0;margin-bottom:-1.2em;padding:0;overflow:hidden;transition:color .1s,box-shadow .1s;border:none;border-radius:5px;background:rgba(0,0,0,0);color:#ccc;font-family:monospace;font-size:2.5em;cursor:pointer;justify-self:end}div:where(.swal2-container) button:where(.swal2-close):hover{transform:none;background:rgba(0,0,0,0);color:#f27474}div:where(.swal2-container) button:where(.swal2-close):focus{outline:none;box-shadow:inset 0 0 0 3px rgba(100,150,200,.5)}div:where(.swal2-container) button:where(.swal2-close)::-moz-focus-inner{border:0}div:where(.swal2-container) .swal2-html-container{z-index:1;justify-content:center;margin:1em 1.6em .3em;padding:0;overflow:auto;color:inherit;font-size:1.125em;font-weight:normal;line-height:normal;text-align:center;word-wrap:break-word;word-break:break-word}div:where(.swal2-container) input:where(.swal2-input),div:where(.swal2-container) input:where(.swal2-file),div:where(.swal2-container) textarea:where(.swal2-textarea),div:where(.swal2-container) select:where(.swal2-select),div:where(.swal2-container) div:where(.swal2-radio),div:where(.swal2-container) label:where(.swal2-checkbox){margin:1em 2em 3px}div:where(.swal2-container) input:where(.swal2-input),div:where(.swal2-container) input:where(.swal2-file),div:where(.swal2-container) textarea:where(.swal2-textarea){box-sizing:border-box;width:auto;transition:border-color .1s,box-shadow .1s;border:1px solid #d9d9d9;border-radius:.1875em;background:rgba(0,0,0,0);box-shadow:inset 0 1px 1px rgba(0,0,0,.06),0 0 0 3px rgba(0,0,0,0);color:inherit;font-size:1.125em}div:where(.swal2-container) input:where(.swal2-input).swal2-inputerror,div:where(.swal2-container) input:where(.swal2-file).swal2-inputerror,div:where(.swal2-container) textarea:where(.swal2-textarea).swal2-inputerror{border-color:#f27474 !important;box-shadow:0 0 2px #f27474 !important}div:where(.swal2-container) input:where(.swal2-input):focus,div:where(.swal2-container) input:where(.swal2-file):focus,div:where(.swal2-container) textarea:where(.swal2-textarea):focus{border:1px solid #b4dbed;outline:none;box-shadow:inset 0 1px 1px rgba(0,0,0,.06),0 0 0 3px rgba(100,150,200,.5)}div:where(.swal2-container) input:where(.swal2-input)::placeholder,div:where(.swal2-container) input:where(.swal2-file)::placeholder,div:where(.swal2-container) textarea:where(.swal2-textarea)::placeholder{color:#ccc}div:where(.swal2-container) .swal2-range{margin:1em 2em 3px;background:#fff}div:where(.swal2-container) .swal2-range input{width:80%}div:where(.swal2-container) .swal2-range output{width:20%;color:inherit;font-weight:600;text-align:center}div:where(.swal2-container) .swal2-range input,div:where(.swal2-container) .swal2-range output{height:2.625em;padding:0;font-size:1.125em;line-height:2.625em}div:where(.swal2-container) .swal2-input{height:2.625em;padding:0 .75em}div:where(.swal2-container) .swal2-file{width:75%;margin-right:auto;margin-left:auto;background:rgba(0,0,0,0);font-size:1.125em}div:where(.swal2-container) .swal2-textarea{height:6.75em;padding:.75em}div:where(.swal2-container) .swal2-select{min-width:50%;max-width:100%;padding:.375em .625em;background:rgba(0,0,0,0);color:inherit;font-size:1.125em}div:where(.swal2-container) .swal2-radio,div:where(.swal2-container) .swal2-checkbox{align-items:center;justify-content:center;background:#fff;color:inherit}div:where(.swal2-container) .swal2-radio label,div:where(.swal2-container) .swal2-checkbox label{margin:0 .6em;font-size:1.125em}div:where(.swal2-container) .swal2-radio input,div:where(.swal2-container) .swal2-checkbox input{flex-shrink:0;margin:0 .4em}div:where(.swal2-container) label:where(.swal2-input-label){display:flex;justify-content:center;margin:1em auto 0}div:where(.swal2-container) div:where(.swal2-validation-message){align-items:center;justify-content:center;margin:1em 0 0;padding:.625em;overflow:hidden;background:#f0f0f0;color:#666;font-size:1em;font-weight:300}div:where(.swal2-container) div:where(.swal2-validation-message)::before{content:"!";display:inline-block;width:1.5em;min-width:1.5em;height:1.5em;margin:0 .625em;border-radius:50%;background-color:#f27474;color:#fff;font-weight:600;line-height:1.5em;text-align:center}div:where(.swal2-container) .swal2-progress-steps{flex-wrap:wrap;align-items:center;max-width:100%;margin:1.25em auto;padding:0;background:rgba(0,0,0,0);font-weight:600}div:where(.swal2-container) .swal2-progress-steps li{display:inline-block;position:relative}div:where(.swal2-container) .swal2-progress-steps .swal2-progress-step{z-index:20;flex-shrink:0;width:2em;height:2em;border-radius:2em;background:#2778c4;color:#fff;line-height:2em;text-align:center}div:where(.swal2-container) .swal2-progress-steps .swal2-progress-step.swal2-active-progress-step{background:#2778c4}div:where(.swal2-container) .swal2-progress-steps .swal2-progress-step.swal2-active-progress-step~.swal2-progress-step{background:#add8e6;color:#fff}div:where(.swal2-container) .swal2-progress-steps .swal2-progress-step.swal2-active-progress-step~.swal2-progress-step-line{background:#add8e6}div:where(.swal2-container) .swal2-progress-steps .swal2-progress-step-line{z-index:10;flex-shrink:0;width:2.5em;height:.4em;margin:0 -1px;background:#2778c4}div:where(.swal2-icon){position:relative;box-sizing:content-box;justify-content:center;width:5em;height:5em;margin:2.5em auto .6em;border:0.25em solid rgba(0,0,0,0);border-radius:50%;border-color:#000;font-family:inherit;line-height:5em;cursor:default;user-select:none}div:where(.swal2-icon) .swal2-icon-content{display:flex;align-items:center;font-size:3.75em}div:where(.swal2-icon).swal2-error{border-color:#f27474;color:#f27474}div:where(.swal2-icon).swal2-error .swal2-x-mark{position:relative;flex-grow:1}div:where(.swal2-icon).swal2-error [class^=swal2-x-mark-line]{display:block;position:absolute;top:2.3125em;width:2.9375em;height:.3125em;border-radius:.125em;background-color:#f27474}div:where(.swal2-icon).swal2-error [class^=swal2-x-mark-line][class$=left]{left:1.0625em;transform:rotate(45deg)}div:where(.swal2-icon).swal2-error [class^=swal2-x-mark-line][class$=right]{right:1em;transform:rotate(-45deg)}div:where(.swal2-icon).swal2-error.swal2-icon-show{animation:swal2-animate-error-icon .5s}div:where(.swal2-icon).swal2-error.swal2-icon-show .swal2-x-mark{animation:swal2-animate-error-x-mark .5s}div:where(.swal2-icon).swal2-warning{border-color:#facea8;color:#f8bb86}div:where(.swal2-icon).swal2-warning.swal2-icon-show{animation:swal2-animate-error-icon .5s}div:where(.swal2-icon).swal2-warning.swal2-icon-show .swal2-icon-content{animation:swal2-animate-i-mark .5s}div:where(.swal2-icon).swal2-info{border-color:#9de0f6;color:#3fc3ee}div:where(.swal2-icon).swal2-info.swal2-icon-show{animation:swal2-animate-error-icon .5s}div:where(.swal2-icon).swal2-info.swal2-icon-show .swal2-icon-content{animation:swal2-animate-i-mark .8s}div:where(.swal2-icon).swal2-question{border-color:#c9dae1;color:#87adbd}div:where(.swal2-icon).swal2-question.swal2-icon-show{animation:swal2-animate-error-icon .5s}div:where(.swal2-icon).swal2-question.swal2-icon-show .swal2-icon-content{animation:swal2-animate-question-mark .8s}div:where(.swal2-icon).swal2-success{border-color:#a5dc86;color:#a5dc86}div:where(.swal2-icon).swal2-success [class^=swal2-success-circular-line]{position:absolute;width:3.75em;height:7.5em;transform:rotate(45deg);border-radius:50%}div:where(.swal2-icon).swal2-success [class^=swal2-success-circular-line][class$=left]{top:-0.4375em;left:-2.0635em;transform:rotate(-45deg);transform-origin:3.75em 3.75em;border-radius:7.5em 0 0 7.5em}div:where(.swal2-icon).swal2-success [class^=swal2-success-circular-line][class$=right]{top:-0.6875em;left:1.875em;transform:rotate(-45deg);transform-origin:0 3.75em;border-radius:0 7.5em 7.5em 0}div:where(.swal2-icon).swal2-success .swal2-success-ring{position:absolute;z-index:2;top:-0.25em;left:-0.25em;box-sizing:content-box;width:100%;height:100%;border:.25em solid rgba(165,220,134,.3);border-radius:50%}div:where(.swal2-icon).swal2-success .swal2-success-fix{position:absolute;z-index:1;top:.5em;left:1.625em;width:.4375em;height:5.625em;transform:rotate(-45deg)}div:where(.swal2-icon).swal2-success [class^=swal2-success-line]{display:block;position:absolute;z-index:2;height:.3125em;border-radius:.125em;background-color:#a5dc86}div:where(.swal2-icon).swal2-success [class^=swal2-success-line][class$=tip]{top:2.875em;left:.8125em;width:1.5625em;transform:rotate(45deg)}div:where(.swal2-icon).swal2-success [class^=swal2-success-line][class$=long]{top:2.375em;right:.5em;width:2.9375em;transform:rotate(-45deg)}div:where(.swal2-icon).swal2-success.swal2-icon-show .swal2-success-line-tip{animation:swal2-animate-success-line-tip .75s}div:where(.swal2-icon).swal2-success.swal2-icon-show .swal2-success-line-long{animation:swal2-animate-success-line-long .75s}div:where(.swal2-icon).swal2-success.swal2-icon-show .swal2-success-circular-line-right{animation:swal2-rotate-success-circular-line 4.25s ease-in}[class^=swal2]{-webkit-tap-highlight-color:rgba(0,0,0,0)}.swal2-show{animation:swal2-show .3s}.swal2-hide{animation:swal2-hide .15s forwards}.swal2-noanimation{transition:none}.swal2-scrollbar-measure{position:absolute;top:-9999px;width:50px;height:50px;overflow:scroll}.swal2-rtl .swal2-close{margin-right:initial;margin-left:0}.swal2-rtl .swal2-timer-progress-bar{right:0;left:auto}@keyframes swal2-toast-show{0%{transform:translateY(-0.625em) rotateZ(2deg)}33%{transform:translateY(0) rotateZ(-2deg)}66%{transform:translateY(0.3125em) rotateZ(2deg)}100%{transform:translateY(0) rotateZ(0deg)}}@keyframes swal2-toast-hide{100%{transform:rotateZ(1deg);opacity:0}}@keyframes swal2-toast-animate-success-line-tip{0%{top:.5625em;left:.0625em;width:0}54%{top:.125em;left:.125em;width:0}70%{top:.625em;left:-0.25em;width:1.625em}84%{top:1.0625em;left:.75em;width:.5em}100%{top:1.125em;left:.1875em;width:.75em}}@keyframes swal2-toast-animate-success-line-long{0%{top:1.625em;right:1.375em;width:0}65%{top:1.25em;right:.9375em;width:0}84%{top:.9375em;right:0;width:1.125em}100%{top:.9375em;right:.1875em;width:1.375em}}@keyframes swal2-show{0%{transform:scale(0.7)}45%{transform:scale(1.05)}80%{transform:scale(0.95)}100%{transform:scale(1)}}@keyframes swal2-hide{0%{transform:scale(1);opacity:1}100%{transform:scale(0.5);opacity:0}}@keyframes swal2-animate-success-line-tip{0%{top:1.1875em;left:.0625em;width:0}54%{top:1.0625em;left:.125em;width:0}70%{top:2.1875em;left:-0.375em;width:3.125em}84%{top:3em;left:1.3125em;width:1.0625em}100%{top:2.8125em;left:.8125em;width:1.5625em}}@keyframes swal2-animate-success-line-long{0%{top:3.375em;right:2.875em;width:0}65%{top:3.375em;right:2.875em;width:0}84%{top:2.1875em;right:0;width:3.4375em}100%{top:2.375em;right:.5em;width:2.9375em}}@keyframes swal2-rotate-success-circular-line{0%{transform:rotate(-45deg)}5%{transform:rotate(-45deg)}12%{transform:rotate(-405deg)}100%{transform:rotate(-405deg)}}@keyframes swal2-animate-error-x-mark{0%{margin-top:1.625em;transform:scale(0.4);opacity:0}50%{margin-top:1.625em;transform:scale(0.4);opacity:0}80%{margin-top:-0.375em;transform:scale(1.15)}100%{margin-top:0;transform:scale(1);opacity:1}}@keyframes swal2-animate-error-icon{0%{transform:rotateX(100deg);opacity:0}100%{transform:rotateX(0deg);opacity:1}}@keyframes swal2-rotate-loading{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}@keyframes swal2-animate-question-mark{0%{transform:rotateY(-360deg)}100%{transform:rotateY(0)}}@keyframes swal2-animate-i-mark{0%{transform:rotateZ(45deg);opacity:0}25%{transform:rotateZ(-25deg);opacity:.4}50%{transform:rotateZ(15deg);opacity:.8}75%{transform:rotateZ(-5deg);opacity:1}100%{transform:rotateX(0);opacity:1}}body.swal2-shown:not(.swal2-no-backdrop):not(.swal2-toast-shown){overflow:hidden}body.swal2-height-auto{height:auto !important}body.swal2-no-backdrop .swal2-container{background-color:rgba(0,0,0,0) !important;pointer-events:none}body.swal2-no-backdrop .swal2-container .swal2-popup{pointer-events:all}body.swal2-no-backdrop .swal2-container .swal2-modal{box-shadow:0 0 10px rgba(0,0,0,.4)}@media print{body.swal2-shown:not(.swal2-no-backdrop):not(.swal2-toast-shown){overflow-y:scroll !important}body.swal2-shown:not(.swal2-no-backdrop):not(.swal2-toast-shown)>[aria-hidden=true]{display:none}body.swal2-shown:not(.swal2-no-backdrop):not(.swal2-toast-shown) .swal2-container{position:static !important}}body.swal2-toast-shown .swal2-container{box-sizing:border-box;width:360px;max-width:100%;background-color:rgba(0,0,0,0);pointer-events:none}body.swal2-toast-shown .swal2-container.swal2-top{inset:0 auto auto 50%;transform:translateX(-50%)}body.swal2-toast-shown .swal2-container.swal2-top-end,body.swal2-toast-shown .swal2-container.swal2-top-right{inset:0 0 auto auto}body.swal2-toast-shown .swal2-container.swal2-top-start,body.swal2-toast-shown .swal2-container.swal2-top-left{inset:0 auto auto 0}body.swal2-toast-shown .swal2-container.swal2-center-start,body.swal2-toast-shown .swal2-container.swal2-center-left{inset:50% auto auto 0;transform:translateY(-50%)}body.swal2-toast-shown .swal2-container.swal2-center{inset:50% auto auto 50%;transform:translate(-50%, -50%)}body.swal2-toast-shown .swal2-container.swal2-center-end,body.swal2-toast-shown .swal2-container.swal2-center-right{inset:50% 0 auto auto;transform:translateY(-50%)}body.swal2-toast-shown .swal2-container.swal2-bottom-start,body.swal2-toast-shown .swal2-container.swal2-bottom-left{inset:auto auto 0 0}body.swal2-toast-shown .swal2-container.swal2-bottom{inset:auto auto 0 50%;transform:translateX(-50%)}body.swal2-toast-shown .swal2-container.swal2-bottom-end,body.swal2-toast-shown .swal2-container.swal2-bottom-right{inset:auto 0 0 auto}')},145:t=>{"use strict";t.exports=e},147:e=>{"use strict";e.exports=JSON.parse('{"name":"konnektive-engine","version":"0.3.50","description":"","files":["dist/*.js","dist/**/*.js"],"scripts":{"rm":"rimraf ./dist","build":"npm run rm && webpack --color --progress --mode=development","build:prod":"npm run rm && NODE_ENV=production webpack --color --progress --mode=production","watch":"npm run build -- --watch","dev":"concurrently \\"npm run serve\\" \\"npm run watch\\"","serve":"http-server ./dist -a 0.0.0.0 -p 3000","publish":"npm run build:prod && npm publish","lint":"eslint ./src","lint:fix":"eslint ./src --fix"},"author":"brunoferreiras","license":"ISC","dependencies":{"jquery":"^3.6.2","sweetalert2":"^11.4.8"},"devDependencies":{"@babel/cli":"^7.17.6","@babel/core":"^7.17.9","@babel/preset-env":"^7.16.11","babel-loader":"^8.2.4","babel-preset-minify":"^0.5.1","concurrently":"^7.1.0","eslint":"^8.13.0","eslint-config-airbnb-base":"^15.0.0","eslint-plugin-import":"^2.26.0","glob":"^7.2.0","http-server":"^14.1.0","npm-watch":"^0.11.0","rimraf":"^3.0.2","webpack":"^5.72.0","webpack-cli":"^4.10.0"}}')}},o={};function n(e){var s=o[e];if(void 0!==s)return s.exports;var a=o[e]={exports:{}};return t[e].call(a.exports,a,a.exports,n),a.exports}n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var o in t)n.o(t,o)&&!n.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:t[o]})},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var s={};return(()=>{"use strict";n.r(s),n.d(s,{clearPhone:()=>h,debounce:()=>E,debug:()=>l,debugSave:()=>c,getIP:()=>m,getQueryParamValue:()=>k,handleFinishedOrderError:()=>y,loadScript:()=>r,lowerCaseAllWordsExceptFirstLetters:()=>w,removeKey:()=>P,reportInSlack:()=>u,resetDebugCounter:()=>d,resetFormState:()=>f,saveDebugInfo:()=>p,saveOrderNumberIntoList:()=>v,setCustomerBillState:()=>S,setCustomerCountry:()=>B,setCustomerShipState:()=>A,setCustomerState:()=>C,setIP:()=>g,skipUpsell:()=>x,stickyGetCountryEnv:()=>$,throwStickyError:()=>b});var e=n(145),t=n.n(e),o=n(455),a=n.n(o),i=n(244),r=function(e,o){t().ajax({url:e,dataType:"script",success:o,async:!0})},l=function(){for(var e=arguments.length,t=Array(e),o=0;o<e;o++)t[o]=arguments[o];var n;(0,i.getConfig)().debugMode&&(n=console).log.apply(n,["Debug on ".concat(new Date,"\n--- ")].concat(t)),(0,i.getConfig)().enableAutoLog&&c.apply(void 0,t)},c=function(){if((0,i.getSessionStorage)("envDB"))var e=(0,i.getSessionStorage)("envDB");else e=[];try{var t;(0>=arguments.length?void 0:arguments[0])&&(1>=arguments.length||!arguments[1])&&(t=e).push.apply(t,arguments),(0>=arguments.length?void 0:arguments[0])&&(1>=arguments.length?void 0:arguments[1])&&e.push((0>=arguments.length?void 0:arguments[0])+" "+(1>=arguments.length?void 0:arguments[1]))}catch(e){l("Debugger error:",e)}(0,i.setSessionStorage)("envDB",e)},d=function(){setCookieValue("stickyDebugCounter",0,{expires:-1})},u=function(e){var o=!(1<arguments.length&&void 0!==arguments[1])||arguments[1],n={url:(0,i.getConfig)().errorDebugURL,method:"POST",contentType:"application/json",data:JSON.stringify({content:e,notify:o})};t().ajax(n).done((function(e){e.success})).fail((function(){}))},p=function(){};function w(e){return e.replace(/\S*/g,(function(e){return e.charAt(0)+e.slice(1).toLowerCase()}))}function m(){return(0,i.getCookieValue)("ip")||"127.0.0.1"}function h(e){return e.replace(/\D/g,"")}function g(){t().getJSON((0,i.getConfig)().getIPURL,(function(e){l("Public IP address: ",e.ip),(0,i.setSessionStorage)("ip",e.ip),document.cookie="ip=".concat(e.ip,";path=/")}))}function f(){t()(".overlay, .processing").hide(),t()("#orderButtonOff").hide(),t()("#orderButton").show()}function b(e,o){var n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:"";f();var s=!0;"modal"===e&&(e="error",s=!1),a().fire({icon:e,html:o,allowOutsideClick:s,showCloseButton:!1}).then((function(e){console.log("error => ",e),(e.isConfirmed||"backdrop"===e.dismiss||"esc"===e.dismiss||"close"===e.dismiss)&&""!==n&&t()(location).prop("href",n)}))}function y(){b("error","This purchase is already complete or main order not found.","../")}function v(e){var t=(0,i.getSessionStorage)("stickyOrdersList"),o=[];0<t.length&&(o=JSON.parse(t)),o.push(e),(0,i.setSessionStorage)("stickyOrdersList",JSON.stringify(o))}function x(){(0,i.getConfig)().upsellIndex,(0,i.getConfig)().upsellIndex<(0,i.getConfig)().upsells.length-1?t()(location).prop("href","bonus".concat((0,i.getConfig)().upsellIndex+2,".html")):t()(location).prop("href","thankyou.html")}var k=function(e){var t=window.location.search;return new URLSearchParams(t).get(e)};function C(e){t()("[name='cShipState']").find("option").each((function(t,o){o.value==e&&(o.selected="selected")}))}function A(e){t()("[name='cShipState']").find("option").each((function(t,o){o.value==e&&(o.selected="selected")}))}function S(e){t()("[name='cBillState']").find("option").each((function(t,o){o.value==e&&(o.selected="selected")}))}function B(e){t()("[name='cBillCountry']").find("option").each((function(t,o){o.value==e&&(o.selected="selected")}))}function $(e){var o,n=t()("*[name=".concat(e,"]"));return n?("input"==n.prop("tagName").toLowerCase()&&(o=n.val()),"select"==n.prop("tagName").toLowerCase()&&(o=n.val())):o="US",o}function P(e,t){var o,n=[];for(o in e)o!=t&&(n[o]=e[o]);return n}function E(e){var t,o=this,n=1<arguments.length&&void 0!==arguments[1]?arguments[1]:300;return function(){for(var s=arguments.length,a=Array(s),i=0;i<s;i++)a[i]=arguments[i];clearTimeout(t),t=setTimeout((function(){e.apply(o,a)}),n)}}})(),s})()));
|