@sofiakb/elf-js 0.0.1-dev.4 → 0.1.0-dev.3
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/elf-js.es.js +288 -281
- package/dist/elf-js.umd.js +8 -8
- package/dist/main.d.ts +1 -0
- package/dist/utils/device.utils.d.ts +3 -0
- package/dist/utils/device.utils.spec.d.ts +1 -0
- package/package.json +1 -1
package/dist/elf-js.umd.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(m,V){typeof exports=="object"&&typeof module<"u"?V(exports):typeof define=="function"&&define.amd?define(["exports"],V):(m=typeof globalThis<"u"?globalThis:m||self,V(m["elf-js"]={}))})(this,function(m){"use strict";var V=typeof global=="object"&&global&&global.Object===Object&&global,Pn=typeof self=="object"&&self&&self.Object===Object&&self,S=V||Pn||Function("return this")(),ie=S.Symbol,Qe=Object.prototype,$n=Qe.hasOwnProperty,Bn=Qe.toString,Z=ie?ie.toStringTag:void 0;function Sn(e){var t=$n.call(e,Z),n=e[Z];try{e[Z]=void 0;var o=!0}catch{}var r=Bn.call(e);return o&&(t?e[Z]=n:delete e[Z]),r}var jn=Object.prototype,In=jn.toString;function Ln(e){return In.call(e)}var On="[object Null]",Mn="[object Undefined]",et=ie?ie.toStringTag:void 0;function G(e){return e==null?e===void 0?Mn:On:et&&et in Object(e)?Sn(e):Ln(e)}function xe(e){return e!=null&&typeof e=="object"}var Dn=Array.isArray;function tt(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var Hn="[object AsyncFunction]",Fn="[object Function]",zn="[object GeneratorFunction]",Vn="[object Proxy]";function nt(e){if(!tt(e))return!1;var t=G(e);return t==Fn||t==zn||t==Hn||t==Vn}var Ae=S["__core-js_shared__"],ot=function(){var e=/[^.]+$/.exec(Ae&&Ae.keys&&Ae.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function qn(e){return!!ot&&ot in e}var Rn=Function.prototype,Nn=Rn.toString;function L(e){if(e!=null){try{return Nn.call(e)}catch{}try{return e+""}catch{}}return""}var Wn=/[\\^$.*+?()[\]{}|]/g,Un=/^\[object .+?Constructor\]$/,_n=Function.prototype,Yn=Object.prototype,Kn=_n.toString,Xn=Yn.hasOwnProperty,Zn=RegExp("^"+Kn.call(Xn).replace(Wn,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function Gn(e){if(!tt(e)||qn(e))return!1;var t=nt(e)?Zn:Un;return t.test(L(e))}function Jn(e,t){return e==null?void 0:e[t]}function J(e,t){var n=Jn(e,t);return Gn(n)?n:void 0}var Te=J(S,"WeakMap"),Qn=9007199254740991;function rt(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=Qn}function eo(e){return e!=null&&rt(e.length)&&!nt(e)}var to=Object.prototype;function st(e){var t=e&&e.constructor,n=typeof t=="function"&&t.prototype||to;return e===n}var no="[object Arguments]";function it(e){return xe(e)&&G(e)==no}var at=Object.prototype,oo=at.hasOwnProperty,ro=at.propertyIsEnumerable,so=it(function(){return arguments}())?it:function(e){return xe(e)&&oo.call(e,"callee")&&!ro.call(e,"callee")};function io(){return!1}var lt=typeof m=="object"&&m&&!m.nodeType&&m,ct=lt&&typeof module=="object"&&module&&!module.nodeType&&module,ao=ct&&ct.exports===lt,dt=ao?S.Buffer:void 0,lo=dt?dt.isBuffer:void 0,co=lo||io,uo="[object Arguments]",wo="[object Array]",fo="[object Boolean]",mo="[object Date]",go="[object Error]",ho="[object Function]",po="[object Map]",bo="[object Number]",yo="[object Object]",vo="[object RegExp]",ko="[object Set]",Co="[object String]",xo="[object WeakMap]",Ao="[object ArrayBuffer]",To="[object DataView]",Eo="[object Float32Array]",Po="[object Float64Array]",$o="[object Int8Array]",Bo="[object Int16Array]",So="[object Int32Array]",jo="[object Uint8Array]",Io="[object Uint8ClampedArray]",Lo="[object Uint16Array]",Oo="[object Uint32Array]",f={};f[Eo]=f[Po]=f[$o]=f[Bo]=f[So]=f[jo]=f[Io]=f[Lo]=f[Oo]=!0,f[uo]=f[wo]=f[Ao]=f[fo]=f[To]=f[mo]=f[go]=f[ho]=f[po]=f[bo]=f[yo]=f[vo]=f[ko]=f[Co]=f[xo]=!1;function Mo(e){return xe(e)&&rt(e.length)&&!!f[G(e)]}function Do(e){return function(t){return e(t)}}var ut=typeof m=="object"&&m&&!m.nodeType&&m,Q=ut&&typeof module=="object"&&module&&!module.nodeType&&module,Ho=Q&&Q.exports===ut,Ee=Ho&&V.process,wt=function(){try{var e=Q&&Q.require&&Q.require("util").types;return e||Ee&&Ee.binding&&Ee.binding("util")}catch{}}(),ft=wt&&wt.isTypedArray,Fo=ft?Do(ft):Mo;function zo(e,t){return function(n){return e(t(n))}}var Vo=zo(Object.keys,Object),qo=Object.prototype,Ro=qo.hasOwnProperty;function No(e){if(!st(e))return Vo(e);var t=[];for(var n in Object(e))Ro.call(e,n)&&n!="constructor"&&t.push(n);return t}var Pe=J(S,"Map"),$e=J(S,"DataView"),Be=J(S,"Promise"),Se=J(S,"Set"),mt="[object Map]",Wo="[object Object]",gt="[object Promise]",ht="[object Set]",pt="[object WeakMap]",bt="[object DataView]",Uo=L($e),_o=L(Pe),Yo=L(Be),Ko=L(Se),Xo=L(Te),O=G;($e&&O(new $e(new ArrayBuffer(1)))!=bt||Pe&&O(new Pe)!=mt||Be&&O(Be.resolve())!=gt||Se&&O(new Se)!=ht||Te&&O(new Te)!=pt)&&(O=function(e){var t=G(e),n=t==Wo?e.constructor:void 0,o=n?L(n):"";if(o)switch(o){case Uo:return bt;case _o:return mt;case Yo:return gt;case Ko:return ht;case Xo:return pt}return t});var Zo="[object Map]",Go="[object Set]",Jo=Object.prototype,Qo=Jo.hasOwnProperty;function er(e){if(e==null)return!0;if(eo(e)&&(Dn(e)||typeof e=="string"||typeof e.splice=="function"||co(e)||Fo(e)||so(e)))return!e.length;var t=O(e);if(t==Zo||t==Go)return!e.size;if(st(e))return!No(e).length;for(var n in e)if(Qo.call(e,n))return!1;return!0}function tr(e){return e==null}const nr=e=>{if(er(e==null?void 0:e.toString()))return null;const t=(e==null?void 0:e.toString())??"",o=/calc\(([^)]+)\)/.exec(t);return tr(o==null?void 0:o[1])?t.includes("%")||isNaN(Number(t))?isNaN(parseInt(t))?null:t:parseInt(t)+"px":t},or=e=>btoa(encodeURI(`${e.name??e??"name"}-${e.id??-1}`)),rr=(e,t=!0)=>typeof e<"u"&&(t?e!==null:!0),je=(e,t)=>{if(e=e.replace(/^#/,""),!/^([0-9A-Fa-f]{6})$/.test(e))throw new Error("Invalid hex color code");const n=parseInt(e,16),o=n>>16&255,r=n>>8&255,i=n&255;if(isNaN(o)||isNaN(r)||isNaN(i))throw new Error("Invalid hex color code");return{r:o,g:r,b:i,a:t>1?t/100:t}},sr=(e,t)=>{const{r:n,g:o,b:r,a:i}=je(e,t);return`rgba(${n}, ${o}, ${r}, ${i})`},ir=e=>{const{r:t,g:n,b:o}=je(e,1);return{r:t,g:n,b:o}},ar=()=>{var l;const e=((l=navigator==null?void 0:navigator.userAgentData)==null?void 0:l.platform)??(navigator==null?void 0:navigator.platform),t=navigator.userAgent??"",o=["iPad Simulator","iPhone Simulator","iPod Simulator","iPad","iPhone","iPod"].includes(e),r=t.includes("Mac")&&"ontouchend"in document,i=t.includes("Safari")&&!t.includes("Chrome")&&!t.includes("Firefox");return o||r&&i},yt=(e=768)=>window.innerWidth<e,lr=()=>/Android|webOS|iPhone|iPod|BlackBerry|IEMobile|Opera Mini|mobile/i.test(navigator.userAgent)&&yt();/*!
|
|
2
2
|
* sweetalert2 v11.19.1
|
|
3
3
|
* Released under the MIT License.
|
|
4
|
-
*/function
|
|
4
|
+
*/function vt(e,t,n){if(typeof e=="function"?e===t:e.has(t))return arguments.length<3?t:n;throw new TypeError("Private element is not present on this object")}function cr(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function kt(e,t){return e.get(vt(e,t))}function dr(e,t,n){cr(e,t),t.set(e,n)}function ur(e,t,n){return e.set(vt(e,t),n),n}const wr=100,a={},fr=()=>{a.previousActiveElement instanceof HTMLElement?(a.previousActiveElement.focus(),a.previousActiveElement=null):document.body&&document.body.focus()},mr=e=>new Promise(t=>{if(!e)return t();const n=window.scrollX,o=window.scrollY;a.restoreFocusTimeout=setTimeout(()=>{fr(),t()},wr),window.scrollTo(n,o)}),Ct="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","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","draggable","dragging"].reduce((e,t)=>(e[t]=Ct+t,e),{}),ae=["success","warning","info","question","error"].reduce((e,t)=>(e[t]=Ct+t,e),{}),xt="SweetAlert2:",Ie=e=>e.charAt(0).toUpperCase()+e.slice(1),v=e=>{console.warn(`${xt} ${typeof e=="object"?e.join(" "):e}`)},M=e=>{console.error(`${xt} ${e}`)},At=[],gr=e=>{At.includes(e)||(At.push(e),v(e))},Tt=function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;gr(`"${e}" is deprecated and will be removed in the next major release.${t?` Use "${t}" instead.`:""}`)},le=e=>typeof e=="function"?e():e,Le=e=>e&&typeof e.toPromise=="function",ee=e=>Le(e)?e.toPromise():Promise.resolve(e),Oe=e=>e&&Promise.resolve(e)===e,k=()=>document.body.querySelector(`.${s.container}`),te=e=>{const t=k();return t?t.querySelector(e):null},x=e=>te(`.${e}`),d=()=>x(s.popup),q=()=>x(s.icon),hr=()=>x(s["icon-content"]),Et=()=>x(s.title),Me=()=>x(s["html-container"]),Pt=()=>x(s.image),De=()=>x(s["progress-steps"]),ce=()=>x(s["validation-message"]),P=()=>te(`.${s.actions} .${s.confirm}`),R=()=>te(`.${s.actions} .${s.cancel}`),D=()=>te(`.${s.actions} .${s.deny}`),pr=()=>x(s["input-label"]),N=()=>te(`.${s.loader}`),ne=()=>x(s.actions),$t=()=>x(s.footer),de=()=>x(s["timer-progress-bar"]),He=()=>x(s.close),br=`
|
|
5
5
|
a[href],
|
|
6
6
|
area[href],
|
|
7
7
|
input:not([disabled]),
|
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
audio[controls],
|
|
17
17
|
video[controls],
|
|
18
18
|
summary
|
|
19
|
-
`,Fe=()=>{const e=d();if(!e)return[];const t=e.querySelectorAll('[tabindex]:not([tabindex="-1"]):not([tabindex="0"])'),n=Array.from(t).sort((i,l)=>{const c=parseInt(i.getAttribute("tabindex")||"0"),
|
|
19
|
+
`,Fe=()=>{const e=d();if(!e)return[];const t=e.querySelectorAll('[tabindex]:not([tabindex="-1"]):not([tabindex="0"])'),n=Array.from(t).sort((i,l)=>{const c=parseInt(i.getAttribute("tabindex")||"0"),g=parseInt(l.getAttribute("tabindex")||"0");return c>g?1:c<g?-1:0}),o=e.querySelectorAll(br),r=Array.from(o).filter(i=>i.getAttribute("tabindex")!=="-1");return[...new Set(n.concat(r))].filter(i=>C(i))},ze=()=>B(document.body,s.shown)&&!B(document.body,s["toast-shown"])&&!B(document.body,s["no-backdrop"]),ue=()=>{const e=d();return e?B(e,s.toast):!1},yr=()=>{const e=d();return e?e.hasAttribute("data-loading"):!1},A=(e,t)=>{if(e.textContent="",t){const o=new DOMParser().parseFromString(t,"text/html"),r=o.querySelector("head");r&&Array.from(r.childNodes).forEach(l=>{e.appendChild(l)});const i=o.querySelector("body");i&&Array.from(i.childNodes).forEach(l=>{l instanceof HTMLVideoElement||l instanceof HTMLAudioElement?e.appendChild(l.cloneNode(!0)):e.appendChild(l)})}},B=(e,t)=>{if(!t)return!1;const n=t.split(/\s+/);for(let o=0;o<n.length;o++)if(!e.classList.contains(n[o]))return!1;return!0},vr=(e,t)=>{Array.from(e.classList).forEach(n=>{!Object.values(s).includes(n)&&!Object.values(ae).includes(n)&&!Object.values(t.showClass||{}).includes(n)&&e.classList.remove(n)})},T=(e,t,n)=>{if(vr(e,t),!t.customClass)return;const o=t.customClass[n];if(o){if(typeof o!="string"&&!o.forEach){v(`Invalid type of customClass.${n}! Expected string or iterable object, got "${typeof o}"`);return}u(e,o)}},we=(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}`)}},Bt=e=>{if(e.focus(),e.type!=="file"){const t=e.value;e.value="",e.value=t}},St=(e,t,n)=>{!e||!t||(typeof t=="string"&&(t=t.split(/\s+/).filter(Boolean)),t.forEach(o=>{Array.isArray(e)?e.forEach(r=>{n?r.classList.add(o):r.classList.remove(o)}):n?e.classList.add(o):e.classList.remove(o)}))},u=(e,t)=>{St(e,t,!0)},E=(e,t)=>{St(e,t,!1)},j=(e,t)=>{const n=Array.from(e.children);for(let o=0;o<n.length;o++){const r=n[o];if(r instanceof HTMLElement&&B(r,t))return r}},H=(e,t,n)=>{n===`${parseInt(n)}`&&(n=parseInt(n)),n||parseInt(n)===0?e.style.setProperty(t,typeof n=="number"?`${n}px`:n):e.style.removeProperty(t)},b=function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"flex";e&&(e.style.display=t)},y=e=>{e&&(e.style.display="none")},Ve=function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"block";e&&new MutationObserver(()=>{oe(e,e.innerHTML,t)}).observe(e,{childList:!0,subtree:!0})},jt=(e,t,n,o)=>{const r=e.querySelector(t);r&&r.style.setProperty(n,o)},oe=function(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"flex";t?b(e,n):y(e)},C=e=>!!(e&&(e.offsetWidth||e.offsetHeight||e.getClientRects().length)),kr=()=>!C(P())&&!C(D())&&!C(R()),It=e=>e.scrollHeight>e.clientHeight,Lt=e=>{const t=window.getComputedStyle(e),n=parseFloat(t.getPropertyValue("animation-duration")||"0"),o=parseFloat(t.getPropertyValue("transition-duration")||"0");return n>0||o>0},qe=function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;const n=de();n&&C(n)&&(t&&(n.style.transition="none",n.style.width="100%"),setTimeout(()=>{n.style.transition=`width ${e/1e3}s linear`,n.style.width="0%"},10))},Cr=()=>{const e=de();if(!e)return;const t=parseInt(window.getComputedStyle(e).width);e.style.removeProperty("transition"),e.style.width="100%";const n=parseInt(window.getComputedStyle(e).width),o=t/n*100;e.style.width=`${o}%`},xr=()=>typeof window>"u"||typeof document>"u",Ar=`
|
|
20
20
|
<div aria-labelledby="${s.title}" aria-describedby="${s["html-container"]}" class="${s.popup}" tabindex="-1">
|
|
21
21
|
<button type="button" class="${s.close}"></button>
|
|
22
22
|
<ul class="${s["progress-steps"]}"></ul>
|
|
@@ -49,17 +49,17 @@
|
|
|
49
49
|
<div class="${s["timer-progress-bar"]}"></div>
|
|
50
50
|
</div>
|
|
51
51
|
</div>
|
|
52
|
-
`.replace(/(^|\n)\s*/g,""),
|
|
52
|
+
`.replace(/(^|\n)\s*/g,""),Tr=()=>{const e=k();return e?(e.remove(),E([document.documentElement,document.body],[s["no-backdrop"],s["toast-shown"],s["has-column"]]),!0):!1},F=()=>{a.currentInstance.resetValidationMessage()},Er=()=>{const e=d(),t=j(e,s.input),n=j(e,s.file),o=e.querySelector(`.${s.range} input`),r=e.querySelector(`.${s.range} output`),i=j(e,s.select),l=e.querySelector(`.${s.checkbox} input`),c=j(e,s.textarea);t.oninput=F,n.onchange=F,i.onchange=F,l.onchange=F,c.oninput=F,o.oninput=()=>{F(),r.value=o.value},o.onchange=()=>{F(),r.value=o.value}},Pr=e=>typeof e=="string"?document.querySelector(e):e,$r=e=>{const t=d();t.setAttribute("role",e.toast?"alert":"dialog"),t.setAttribute("aria-live",e.toast?"polite":"assertive"),e.toast||t.setAttribute("aria-modal","true")},Br=e=>{window.getComputedStyle(e).direction==="rtl"&&u(k(),s.rtl)},Sr=e=>{const t=Tr();if(xr()){M("SweetAlert2 requires document to initialize");return}const n=document.createElement("div");n.className=s.container,t&&u(n,s["no-transition"]),A(n,Ar),n.dataset.swal2Theme=e.theme;const o=Pr(e.target);o.appendChild(n),$r(e),Br(o),Er()},Re=(e,t)=>{e instanceof HTMLElement?t.appendChild(e):typeof e=="object"?jr(e,t):e&&A(t,e)},jr=(e,t)=>{e.jquery?Ir(t,e):A(t,e.toString())},Ir=(e,t)=>{if(e.textContent="",0 in t)for(let n=0;n in t;n++)e.appendChild(t[n].cloneNode(!0));else e.appendChild(t.cloneNode(!0))},Lr=(e,t)=>{const n=ne(),o=N();!n||!o||(!t.showConfirmButton&&!t.showDenyButton&&!t.showCancelButton?y(n):b(n),T(n,t,"actions"),Or(n,o,t),A(o,t.loaderHtml||""),T(o,t,"loader"))};function Or(e,t,n){const o=P(),r=D(),i=R();!o||!r||!i||(We(o,"confirm",n),We(r,"deny",n),We(i,"cancel",n),Mr(o,r,i,n),n.reverseButtons&&(n.toast?(e.insertBefore(i,o),e.insertBefore(r,o)):(e.insertBefore(i,t),e.insertBefore(r,t),e.insertBefore(o,t))))}function Mr(e,t,n,o){if(!o.buttonsStyling){E([e,t,n],s.styled);return}u([e,t,n],s.styled),o.confirmButtonColor&&e.style.setProperty("--swal2-confirm-button-background-color",o.confirmButtonColor),o.denyButtonColor&&t.style.setProperty("--swal2-deny-button-background-color",o.denyButtonColor),o.cancelButtonColor&&n.style.setProperty("--swal2-cancel-button-background-color",o.cancelButtonColor),Ne(e),Ne(t),Ne(n)}function Ne(e){const t=window.getComputedStyle(e),n=t.backgroundColor.replace(/rgba?\((\d+), (\d+), (\d+).*/,"rgba($1, $2, $3, 0.5)");e.style.setProperty("--swal2-action-button-outline",t.getPropertyValue("--swal2-outline").replace(/ rgba\(.*/,` ${n}`))}function We(e,t,n){const o=Ie(t);oe(e,n[`show${o}Button`],"inline-block"),A(e,n[`${t}ButtonText`]||""),e.setAttribute("aria-label",n[`${t}ButtonAriaLabel`]||""),e.className=s[t],T(e,n,`${t}Button`)}const Dr=(e,t)=>{const n=He();n&&(A(n,t.closeButtonHtml||""),T(n,t,"closeButton"),oe(n,t.showCloseButton),n.setAttribute("aria-label",t.closeButtonAriaLabel||""))},Hr=(e,t)=>{const n=k();n&&(Fr(n,t.backdrop),zr(n,t.position),Vr(n,t.grow),T(n,t,"container"))};function Fr(e,t){typeof t=="string"?e.style.background=t:t||u([document.documentElement,document.body],s["no-backdrop"])}function zr(e,t){t&&(t in s?u(e,s[t]):(v('The "position" parameter is not valid, defaulting to "center"'),u(e,s.center)))}function Vr(e,t){t&&u(e,s[`grow-${t}`])}var w={innerParams:new WeakMap,domCache:new WeakMap};const qr=["input","file","range","select","radio","checkbox","textarea"],Rr=(e,t)=>{const n=d();if(!n)return;const o=w.innerParams.get(e),r=!o||t.input!==o.input;qr.forEach(i=>{const l=j(n,s[i]);l&&(Ur(i,t.inputAttributes),l.className=s[i],r&&y(l))}),t.input&&(r&&Nr(t),_r(t))},Nr=e=>{if(!e.input)return;if(!h[e.input]){M(`Unexpected type of input! Expected ${Object.keys(h).join(" | ")}, got "${e.input}"`);return}const t=Ot(e.input);if(!t)return;const n=h[e.input](t,e);b(t),e.inputAutoFocus&&setTimeout(()=>{Bt(n)})},Wr=e=>{for(let t=0;t<e.attributes.length;t++){const n=e.attributes[t].name;["id","type","value","style"].includes(n)||e.removeAttribute(n)}},Ur=(e,t)=>{const n=d();if(!n)return;const o=we(n,e);if(o){Wr(o);for(const r in t)o.setAttribute(r,t[r])}},_r=e=>{if(!e.input)return;const t=Ot(e.input);t&&T(t,e,"input")},Ue=(e,t)=>{!e.placeholder&&t.inputPlaceholder&&(e.placeholder=t.inputPlaceholder)},re=(e,t,n)=>{if(n.inputLabel){const o=document.createElement("label"),r=s["input-label"];o.setAttribute("for",e.id),o.className=r,typeof n.customClass=="object"&&u(o,n.customClass.inputLabel),o.innerText=n.inputLabel,t.insertAdjacentElement("beforebegin",o)}},Ot=e=>{const t=d();if(t)return j(t,s[e]||s.input)},fe=(e,t)=>{["string","number"].includes(typeof t)?e.value=`${t}`:Oe(t)||v(`Unexpected type of inputValue! Expected "string", "number" or "Promise", got "${typeof t}"`)},h={};h.text=h.email=h.password=h.number=h.tel=h.url=h.search=h.date=h["datetime-local"]=h.time=h.week=h.month=(e,t)=>(fe(e,t.inputValue),re(e,e,t),Ue(e,t),e.type=t.input,e),h.file=(e,t)=>(re(e,e,t),Ue(e,t),e),h.range=(e,t)=>{const n=e.querySelector("input"),o=e.querySelector("output");return fe(n,t.inputValue),n.type=t.input,fe(o,t.inputValue),re(n,e,t),e},h.select=(e,t)=>{if(e.textContent="",t.inputPlaceholder){const n=document.createElement("option");A(n,t.inputPlaceholder),n.value="",n.disabled=!0,n.selected=!0,e.appendChild(n)}return re(e,e,t),e},h.radio=e=>(e.textContent="",e),h.checkbox=(e,t)=>{const n=we(d(),"checkbox");n.value="1",n.checked=!!t.inputValue;const o=e.querySelector("span");return A(o,t.inputPlaceholder||t.inputLabel),n},h.textarea=(e,t)=>{fe(e,t.inputValue),Ue(e,t),re(e,e,t);const n=o=>parseInt(window.getComputedStyle(o).marginLeft)+parseInt(window.getComputedStyle(o).marginRight);return setTimeout(()=>{if("MutationObserver"in window){const o=parseInt(window.getComputedStyle(d()).width),r=()=>{if(!document.body.contains(e))return;const i=e.offsetWidth+n(e);i>o?d().style.width=`${i}px`:H(d(),"width",t.width)};new MutationObserver(r).observe(e,{attributes:!0,attributeFilter:["style"]})}}),e};const Yr=(e,t)=>{const n=Me();n&&(Ve(n),T(n,t,"htmlContainer"),t.html?(Re(t.html,n),b(n,"block")):t.text?(n.textContent=t.text,b(n,"block")):y(n),Rr(e,t))},Kr=(e,t)=>{const n=$t();n&&(Ve(n),oe(n,t.footer,"block"),t.footer&&Re(t.footer,n),T(n,t,"footer"))},Xr=(e,t)=>{const n=w.innerParams.get(e),o=q();if(!o)return;if(n&&t.icon===n.icon){Ht(o,t),Mt(o,t);return}if(!t.icon&&!t.iconHtml){y(o);return}if(t.icon&&Object.keys(ae).indexOf(t.icon)===-1){M(`Unknown icon! Expected "success", "error", "warning", "info" or "question", got "${t.icon}"`),y(o);return}b(o),Ht(o,t),Mt(o,t),u(o,t.showClass&&t.showClass.icon),window.matchMedia("(prefers-color-scheme: dark)").addEventListener("change",Dt)},Mt=(e,t)=>{for(const[n,o]of Object.entries(ae))t.icon!==n&&E(e,o);u(e,t.icon&&ae[t.icon]),Jr(e,t),Dt(),T(e,t,"icon")},Dt=()=>{const e=d();if(!e)return;const t=window.getComputedStyle(e).getPropertyValue("background-color"),n=e.querySelectorAll("[class^=swal2-success-circular-line], .swal2-success-fix");for(let o=0;o<n.length;o++)n[o].style.backgroundColor=t},Zr=`
|
|
53
53
|
<div class="swal2-success-circular-line-left"></div>
|
|
54
54
|
<span class="swal2-success-line-tip"></span> <span class="swal2-success-line-long"></span>
|
|
55
55
|
<div class="swal2-success-ring"></div> <div class="swal2-success-fix"></div>
|
|
56
56
|
<div class="swal2-success-circular-line-right"></div>
|
|
57
|
-
`,
|
|
57
|
+
`,Gr=`
|
|
58
58
|
<span class="swal2-x-mark">
|
|
59
59
|
<span class="swal2-x-mark-line-left"></span>
|
|
60
60
|
<span class="swal2-x-mark-line-right"></span>
|
|
61
61
|
</span>
|
|
62
|
-
`,Ht=(e,t)=>{if(!t.icon&&!t.iconHtml)return;let n=e.innerHTML,o="";t.iconHtml?o=Dt(t.iconHtml):t.icon==="success"?(o=Yr,n=n.replace(/ style=".*?"/g,"")):t.icon==="error"?o=Kr:t.icon&&(o=Dt({question:"?",warning:"!",info:"i"}[t.icon])),n.trim()!==o.trim()&&A(e,o)},Xr=(e,t)=>{if(t.iconColor){e.style.color=t.iconColor,e.style.borderColor=t.iconColor;for(const n of[".swal2-success-line-tip",".swal2-success-line-long",".swal2-x-mark-line-left",".swal2-x-mark-line-right"])St(e,n,"background-color",t.iconColor);St(e,".swal2-success-ring","border-color",t.iconColor)}},Dt=e=>`<div class="${s["icon-content"]}">${e}</div>`,Zr=(e,t)=>{const n=Et();if(n){if(!t.imageUrl){y(n);return}b(n,""),n.setAttribute("src",t.imageUrl),n.setAttribute("alt",t.imageAlt||""),D(n,"width",t.imageWidth),D(n,"height",t.imageHeight),n.className=s.image,T(n,t,"image")}};let _e=!1,Ft=0,zt=0,Vt=0,qt=0;const Gr=e=>{e.addEventListener("mousedown",me),document.body.addEventListener("mousemove",ge),e.addEventListener("mouseup",he),e.addEventListener("touchstart",me),document.body.addEventListener("touchmove",ge),e.addEventListener("touchend",he)},Jr=e=>{e.removeEventListener("mousedown",me),document.body.removeEventListener("mousemove",ge),e.removeEventListener("mouseup",he),e.removeEventListener("touchstart",me),document.body.removeEventListener("touchmove",ge),e.removeEventListener("touchend",he)},me=e=>{const t=d();if(e.target===t||q().contains(e.target)){_e=!0;const n=Rt(e);Ft=n.clientX,zt=n.clientY,Vt=parseInt(t.style.insetInlineStart)||0,qt=parseInt(t.style.insetBlockStart)||0,u(t,"swal2-dragging")}},ge=e=>{const t=d();if(_e){let{clientX:n,clientY:o}=Rt(e);t.style.insetInlineStart=`${Vt+(n-Ft)}px`,t.style.insetBlockStart=`${qt+(o-zt)}px`}},he=()=>{const e=d();_e=!1,E(e,"swal2-dragging")},Rt=e=>{let t=0,n=0;return e.type.startsWith("mouse")?(t=e.clientX,n=e.clientY):e.type.startsWith("touch")&&(t=e.touches[0].clientX,n=e.touches[0].clientY),{clientX:t,clientY:n}},Qr=(e,t)=>{const n=k(),o=d();if(!(!n||!o)){if(t.toast){D(n,"width",t.width),o.style.width="100%";const r=N();r&&o.insertBefore(r,q())}else D(o,"width",t.width);D(o,"padding",t.padding),t.color&&(o.style.color=t.color),t.background&&(o.style.background=t.background),y(ce()),es(o,t),t.draggable&&!t.toast?(u(o,s.draggable),Gr(o)):(E(o,s.draggable),Jr(o))}},es=(e,t)=>{const n=t.showClass||{};e.className=`${s.popup} ${C(e)?n.popup:""}`,t.toast?(u([document.documentElement,document.body],s["toast-shown"]),u(e,s.toast)):u(e,s.modal),T(e,t,"popup"),typeof t.customClass=="string"&&u(e,t.customClass),t.icon&&u(e,s[`icon-${t.icon}`])},ts=(e,t)=>{const n=He();if(!n)return;const{progressSteps:o,currentProgressStep:r}=t;if(!o||o.length===0||r===void 0){y(n);return}b(n),n.textContent="",r>=o.length&&v("Invalid currentProgressStep parameter, it should be less than progressSteps.length (currentProgressStep like JS arrays starts from 0)"),o.forEach((i,l)=>{const c=ns(i);if(n.appendChild(c),l===r&&u(c,s["active-progress-step"]),l!==o.length-1){const m=os(t);n.appendChild(m)}})},ns=e=>{const t=document.createElement("li");return u(t,s["progress-step"]),A(t,e),t},os=e=>{const t=document.createElement("li");return u(t,s["progress-step-line"]),e.progressStepsDistance&&D(t,"width",e.progressStepsDistance),t},rs=(e,t)=>{const n=Tt();n&&(Ve(n),oe(n,t.title||t.titleText,"block"),t.title&&Re(t.title,n),t.titleText&&(n.innerText=t.titleText),T(n,t,"title"))},Nt=(e,t)=>{Qr(e,t),Or(e,t),ts(e,t),_r(e,t),Zr(e,t),rs(e,t),Ir(e,t),Wr(e,t),Sr(e,t),Ur(e,t);const n=d();typeof t.didRender=="function"&&n&&t.didRender(n),a.eventEmitter.emit("didRender",n)},ss=()=>C(d()),Wt=()=>{var e;return(e=P())===null||e===void 0?void 0:e.click()},is=()=>{var e;return(e=H())===null||e===void 0?void 0:e.click()},as=()=>{var e;return(e=R())===null||e===void 0?void 0:e.click()},W=Object.freeze({cancel:"cancel",backdrop:"backdrop",close:"close",esc:"esc",timer:"timer"}),Ut=e=>{e.keydownTarget&&e.keydownHandlerAdded&&(e.keydownTarget.removeEventListener("keydown",e.keydownHandler,{capture:e.keydownListenerCapture}),e.keydownHandlerAdded=!1)},ls=(e,t,n)=>{Ut(e),t.toast||(e.keydownHandler=o=>ds(t,o,n),e.keydownTarget=t.keydownListenerCapture?window:d(),e.keydownListenerCapture=t.keydownListenerCapture,e.keydownTarget.addEventListener("keydown",e.keydownHandler,{capture:e.keydownListenerCapture}),e.keydownHandlerAdded=!0)},Ye=(e,t)=>{var n;const o=Fe();if(o.length){e=e+t,e===-2&&(e=o.length-1),e===o.length?e=0:e===-1&&(e=o.length-1),o[e].focus();return}(n=d())===null||n===void 0||n.focus()},_t=["ArrowRight","ArrowDown"],cs=["ArrowLeft","ArrowUp"],ds=(e,t,n)=>{e&&(t.isComposing||t.keyCode===229||(e.stopKeydownPropagation&&t.stopPropagation(),t.key==="Enter"?us(t,e):t.key==="Tab"?ws(t):[..._t,...cs].includes(t.key)?fs(t.key):t.key==="Escape"&&ms(t,e,n)))},us=(e,t)=>{if(!le(t.allowEnterKey))return;const n=we(d(),t.input);if(e.target&&n&&e.target instanceof HTMLElement&&e.target.outerHTML===n.outerHTML){if(["textarea","file"].includes(t.input))return;Wt(),e.preventDefault()}},ws=e=>{const t=e.target,n=Fe();let o=-1;for(let r=0;r<n.length;r++)if(t===n[r]){o=r;break}e.shiftKey?Ye(o,-1):Ye(o,1),e.stopPropagation(),e.preventDefault()},fs=e=>{const t=ne(),n=P(),o=H(),r=R();if(!t||!n||!o||!r)return;const i=[n,o,r];if(document.activeElement instanceof HTMLElement&&!i.includes(document.activeElement))return;const l=_t.includes(e)?"nextElementSibling":"previousElementSibling";let c=document.activeElement;if(c){for(let m=0;m<t.children.length;m++){if(c=c[l],!c)return;if(c instanceof HTMLButtonElement&&C(c))break}c instanceof HTMLButtonElement&&c.focus()}},ms=(e,t,n)=>{le(t.allowEscapeKey)&&(e.preventDefault(),n(W.esc))};var U={swalPromiseResolve:new WeakMap,swalPromiseReject:new WeakMap};const gs=()=>{const e=k();Array.from(document.body.children).forEach(n=>{n.contains(e)||(n.hasAttribute("aria-hidden")&&n.setAttribute("data-previous-aria-hidden",n.getAttribute("aria-hidden")||""),n.setAttribute("aria-hidden","true"))})},Yt=()=>{Array.from(document.body.children).forEach(t=>{t.hasAttribute("data-previous-aria-hidden")?(t.setAttribute("aria-hidden",t.getAttribute("data-previous-aria-hidden")||""),t.removeAttribute("data-previous-aria-hidden")):t.removeAttribute("aria-hidden")})},Kt=typeof window<"u"&&!!window.GestureEvent,hs=()=>{if(Kt&&!B(document.body,s.iosfix)){const e=document.body.scrollTop;document.body.style.top=`${e*-1}px`,u(document.body,s.iosfix),ps()}},ps=()=>{const e=k();if(!e)return;let t;e.ontouchstart=n=>{t=bs(n)},e.ontouchmove=n=>{t&&(n.preventDefault(),n.stopPropagation())}},bs=e=>{const t=e.target,n=k(),o=Me();return!n||!o||ys(e)||vs(e)?!1:t===n||!jt(n)&&t instanceof HTMLElement&&t.tagName!=="INPUT"&&t.tagName!=="TEXTAREA"&&!(jt(o)&&o.contains(t))},ys=e=>e.touches&&e.touches.length&&e.touches[0].touchType==="stylus",vs=e=>e.touches&&e.touches.length>1,ks=()=>{if(B(document.body,s.iosfix)){const e=parseInt(document.body.style.top,10);E(document.body,s.iosfix),document.body.style.top="",document.body.scrollTop=e*-1}},Cs=()=>{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};let _=null;const xs=e=>{_===null&&(document.body.scrollHeight>window.innerHeight||e==="scroll")&&(_=parseInt(window.getComputedStyle(document.body).getPropertyValue("padding-right")),document.body.style.paddingRight=`${_+Cs()}px`)},As=()=>{_!==null&&(document.body.style.paddingRight=`${_}px`,_=null)};function Xt(e,t,n,o){ue()?Gt(e,o):(ur(n).then(()=>Gt(e,o)),Ut(a)),Kt?(t.setAttribute("style","display:none !important"),t.removeAttribute("class"),t.innerHTML=""):t.remove(),ze()&&(As(),ks(),Yt()),Ts()}function Ts(){E([document.documentElement,document.body],[s.shown,s["height-auto"],s["no-backdrop"],s["toast-shown"]])}function L(e){e=Ps(e);const t=U.swalPromiseResolve.get(this),n=Es(this);this.isAwaitingPromise?e.isDismissed||(se(this),t(e)):n&&t(e)}const Es=e=>{const t=d();if(!t)return!1;const n=w.innerParams.get(e);if(!n||B(t,n.hideClass.popup))return!1;E(t,n.showClass.popup),u(t,n.hideClass.popup);const o=k();return E(o,n.showClass.backdrop),u(o,n.hideClass.backdrop),$s(e,t,n),!0};function Zt(e){const t=U.swalPromiseReject.get(this);se(this),t&&t(e)}const se=e=>{e.isAwaitingPromise&&(delete e.isAwaitingPromise,w.innerParams.get(e)||e._destroy())},Ps=e=>typeof e>"u"?{isConfirmed:!1,isDenied:!1,isDismissed:!0}:Object.assign({isConfirmed:!1,isDenied:!1,isDismissed:!1},e),$s=(e,t,n)=>{var o;const r=k(),i=Lt(t);typeof n.willClose=="function"&&n.willClose(t),(o=a.eventEmitter)===null||o===void 0||o.emit("willClose",t),i?Bs(e,t,r,n.returnFocus,n.didClose):Xt(e,r,n.returnFocus,n.didClose)},Bs=(e,t,n,o,r)=>{a.swalCloseEventFinishedCallback=Xt.bind(null,e,n,o,r);const i=function(l){if(l.target===t){var c;(c=a.swalCloseEventFinishedCallback)===null||c===void 0||c.call(a),delete a.swalCloseEventFinishedCallback,t.removeEventListener("animationend",i),t.removeEventListener("transitionend",i)}};t.addEventListener("animationend",i),t.addEventListener("transitionend",i)},Gt=(e,t)=>{setTimeout(()=>{var n;typeof t=="function"&&t.bind(e.params)(),(n=a.eventEmitter)===null||n===void 0||n.emit("didClose"),e._destroy&&e._destroy()})},Y=e=>{let t=d();if(t||new Ce,t=d(),!t)return;const n=N();ue()?y(q()):Ss(t,e),b(n),t.setAttribute("data-loading","true"),t.setAttribute("aria-busy","true"),t.focus()},Ss=(e,t)=>{const n=ne(),o=N();!n||!o||(!t&&C(P())&&(t=P()),b(n),t&&(y(t),o.setAttribute("data-button-to-replace",t.className),n.insertBefore(o,t)),u([e,n],s.loading))},js=(e,t)=>{t.input==="select"||t.input==="radio"?Hs(e,t):["text","email","number","tel","textarea"].some(n=>n===t.input)&&(Ie(t.inputValue)||Oe(t.inputValue))&&(Y(P()),Ds(e,t))},Ls=(e,t)=>{const n=e.getInput();if(!n)return null;switch(t.input){case"checkbox":return Is(n);case"radio":return Os(n);case"file":return Ms(n);default:return t.inputAutoTrim?n.value.trim():n.value}},Is=e=>e.checked?1:0,Os=e=>e.checked?e.value:null,Ms=e=>e.files&&e.files.length?e.getAttribute("multiple")!==null?e.files:e.files[0]:null,Hs=(e,t)=>{const n=d();if(!n)return;const o=r=>{t.input==="select"?Fs(n,pe(r),t):t.input==="radio"&&zs(n,pe(r),t)};Ie(t.inputOptions)||Oe(t.inputOptions)?(Y(P()),ee(t.inputOptions).then(r=>{e.hideLoading(),o(r)})):typeof t.inputOptions=="object"?o(t.inputOptions):M(`Unexpected type of inputOptions! Expected object, Map or Promise, got ${typeof t.inputOptions}`)},Ds=(e,t)=>{const n=e.getInput();n&&(y(n),ee(t.inputValue).then(o=>{n.value=t.input==="number"?`${parseFloat(o)||0}`:`${o}`,b(n),n.focus(),e.hideLoading()}).catch(o=>{M(`Error in inputValue promise: ${o}`),n.value="",b(n),n.focus(),e.hideLoading()}))};function Fs(e,t,n){const o=j(e,s.select);if(!o)return;const r=(i,l,c)=>{const m=document.createElement("option");m.value=c,A(m,l),m.selected=Jt(c,n.inputValue),i.appendChild(m)};t.forEach(i=>{const l=i[0],c=i[1];if(Array.isArray(c)){const m=document.createElement("optgroup");m.label=l,m.disabled=!1,o.appendChild(m),c.forEach(X=>r(m,X[1],X[0]))}else r(o,c,l)}),o.focus()}function zs(e,t,n){const o=j(e,s.radio);if(!o)return;t.forEach(i=>{const l=i[0],c=i[1],m=document.createElement("input"),X=document.createElement("label");m.type="radio",m.name=s.radio,m.value=l,Jt(l,n.inputValue)&&(m.checked=!0);const Je=document.createElement("span");A(Je,c),Je.className=s.label,X.appendChild(m),X.appendChild(Je),o.appendChild(X)});const r=o.querySelectorAll("input");r.length&&r[0].focus()}const pe=e=>{const t=[];return e instanceof Map?e.forEach((n,o)=>{let r=n;typeof r=="object"&&(r=pe(r)),t.push([o,r])}):Object.keys(e).forEach(n=>{let o=e[n];typeof o=="object"&&(o=pe(o)),t.push([n,o])}),t},Jt=(e,t)=>!!t&&t.toString()===e.toString(),Vs=e=>{const t=w.innerParams.get(e);e.disableButtons(),t.input?Qt(e,"confirm"):Xe(e,!0)},qs=e=>{const t=w.innerParams.get(e);e.disableButtons(),t.returnInputValueOnDeny?Qt(e,"deny"):Ke(e,!1)},Rs=(e,t)=>{e.disableButtons(),t(W.cancel)},Qt=(e,t)=>{const n=w.innerParams.get(e);if(!n.input){M(`The "input" parameter is needed to be set when using returnInputValueOn${Le(t)}`);return}const o=e.getInput(),r=Ls(e,n);n.inputValidator?Ns(e,r,t):o&&!o.checkValidity()?(e.enableButtons(),e.showValidationMessage(n.validationMessage||o.validationMessage)):t==="deny"?Ke(e,r):Xe(e,r)},Ns=(e,t,n)=>{const o=w.innerParams.get(e);e.disableInput(),Promise.resolve().then(()=>ee(o.inputValidator(t,o.validationMessage))).then(i=>{e.enableButtons(),e.enableInput(),i?e.showValidationMessage(i):n==="deny"?Ke(e,t):Xe(e,t)})},Ke=(e,t)=>{const n=w.innerParams.get(e||void 0);n.showLoaderOnDeny&&Y(H()),n.preDeny?(e.isAwaitingPromise=!0,Promise.resolve().then(()=>ee(n.preDeny(t,n.validationMessage))).then(r=>{r===!1?(e.hideLoading(),se(e)):e.close({isDenied:!0,value:typeof r>"u"?t:r})}).catch(r=>tn(e||void 0,r))):e.close({isDenied:!0,value:t})},en=(e,t)=>{e.close({isConfirmed:!0,value:t})},tn=(e,t)=>{e.rejectPromise(t)},Xe=(e,t)=>{const n=w.innerParams.get(e||void 0);n.showLoaderOnConfirm&&Y(),n.preConfirm?(e.resetValidationMessage(),e.isAwaitingPromise=!0,Promise.resolve().then(()=>ee(n.preConfirm(t,n.validationMessage))).then(r=>{C(ce())||r===!1?(e.hideLoading(),se(e)):en(e,typeof r>"u"?t:r)}).catch(r=>tn(e||void 0,r))):en(e,t)};function be(){const e=w.innerParams.get(this);if(!e)return;const t=w.domCache.get(this);y(t.loader),ue()?e.icon&&b(q()):Ws(t),E([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 Ws=e=>{const t=e.popup.getElementsByClassName(e.loader.getAttribute("data-button-to-replace"));t.length?b(t[0],"inline-block"):br()&&y(e.actions)};function nn(){const e=w.innerParams.get(this),t=w.domCache.get(this);return t?we(t.popup,e.input):null}function on(e,t,n){const o=w.domCache.get(e);t.forEach(r=>{o[r].disabled=n})}function rn(e,t){const n=d();if(!(!n||!e))if(e.type==="radio"){const o=n.querySelectorAll(`[name="${s.radio}"]`);for(let r=0;r<o.length;r++)o[r].disabled=t}else e.disabled=t}function sn(){on(this,["confirmButton","denyButton","cancelButton"],!1)}function an(){on(this,["confirmButton","denyButton","cancelButton"],!0)}function ln(){rn(this.getInput(),!1)}function cn(){rn(this.getInput(),!0)}function dn(e){const t=w.domCache.get(this),n=w.innerParams.get(this);A(t.validationMessage,e),t.validationMessage.className=s["validation-message"],n.customClass&&n.customClass.validationMessage&&u(t.validationMessage,n.customClass.validationMessage),b(t.validationMessage);const o=this.getInput();o&&(o.setAttribute("aria-invalid","true"),o.setAttribute("aria-describedby",s["validation-message"]),$t(o),u(o,s.inputerror))}function un(){const e=w.domCache.get(this);e.validationMessage&&y(e.validationMessage);const t=this.getInput();t&&(t.removeAttribute("aria-invalid"),t.removeAttribute("aria-describedby"),E(t,s.inputerror))}const K={title:"",titleText:"",text:"",html:"",footer:"",icon:void 0,iconColor:void 0,iconHtml:void 0,template:void 0,toast:!1,draggable:!1,animation:!0,theme:"light",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},Us=["allowEscapeKey","allowOutsideClick","background","buttonsStyling","cancelButtonAriaLabel","cancelButtonColor","cancelButtonText","closeButtonAriaLabel","closeButtonHtml","color","confirmButtonAriaLabel","confirmButtonColor","confirmButtonText","currentProgressStep","customClass","denyButtonAriaLabel","denyButtonColor","denyButtonText","didClose","didDestroy","draggable","footer","hideClass","html","icon","iconColor","iconHtml","imageAlt","imageHeight","imageUrl","imageWidth","preConfirm","preDeny","progressSteps","returnFocus","reverseButtons","showCancelButton","showCloseButton","showConfirmButton","showDenyButton","text","title","titleText","theme","willClose"],_s={allowEnterKey:void 0},Ys=["allowOutsideClick","allowEnterKey","backdrop","draggable","focusConfirm","focusDeny","focusCancel","returnFocus","heightAuto","keydownListenerCapture"],wn=e=>Object.prototype.hasOwnProperty.call(K,e),fn=e=>Us.indexOf(e)!==-1,mn=e=>_s[e],Ks=e=>{wn(e)||v(`Unknown parameter "${e}"`)},Xs=e=>{Ys.includes(e)&&v(`The parameter "${e}" is incompatible with toasts`)},Zs=e=>{const t=mn(e);t&&At(e,t)},gn=e=>{e.backdrop===!1&&e.allowOutsideClick&&v('"allowOutsideClick" parameter requires `backdrop` parameter to be set to `true`'),e.theme&&!["light","dark","auto","borderless","embed-iframe"].includes(e.theme)&&v(`Invalid theme "${e.theme}". Expected "light", "dark", "auto", "borderless", or "embed-iframe"`);for(const t in e)Ks(t),e.toast&&Xs(t),Zs(t)};function hn(e){const t=k(),n=d(),o=w.innerParams.get(this);if(!n||B(n,o.hideClass.popup)){v("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.");return}const r=Gs(e),i=Object.assign({},o,r);gn(i),t.dataset.swal2Theme=i.theme,Nt(this,i),w.innerParams.set(this,i),Object.defineProperties(this,{params:{value:Object.assign({},this.params,e),writable:!1,enumerable:!0}})}const Gs=e=>{const t={};return Object.keys(e).forEach(n=>{fn(n)?t[n]=e[n]:v(`Invalid parameter to update: ${n}`)}),t};function pn(){const e=w.domCache.get(this),t=w.innerParams.get(this);if(!t){bn(this);return}e.popup&&a.swalCloseEventFinishedCallback&&(a.swalCloseEventFinishedCallback(),delete a.swalCloseEventFinishedCallback),typeof t.didDestroy=="function"&&t.didDestroy(),a.eventEmitter.emit("didDestroy"),Js(this)}const Js=e=>{bn(e),delete e.params,delete a.keydownHandler,delete a.keydownTarget,delete a.currentInstance},bn=e=>{e.isAwaitingPromise?(Ze(w,e),e.isAwaitingPromise=!0):(Ze(U,e),Ze(w,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)},Ze=(e,t)=>{for(const n in e)e[n].delete(t)};var Qs=Object.freeze({__proto__:null,_destroy:pn,close:L,closeModal:L,closePopup:L,closeToast:L,disableButtons:an,disableInput:cn,disableLoading:be,enableButtons:sn,enableInput:ln,getInput:nn,handleAwaitingPromise:se,hideLoading:be,rejectPromise:Zt,resetValidationMessage:un,showValidationMessage:dn,update:hn});const ei=(e,t,n)=>{e.toast?ti(e,t,n):(oi(t),ri(t),si(e,t,n))},ti=(e,t,n)=>{t.popup.onclick=()=>{e&&(ni(e)||e.timer||e.input)||n(W.close)}},ni=e=>!!(e.showConfirmButton||e.showDenyButton||e.showCancelButton||e.showCloseButton);let ye=!1;const oi=e=>{e.popup.onmousedown=()=>{e.container.onmouseup=function(t){e.container.onmouseup=()=>{},t.target===e.container&&(ye=!0)}}},ri=e=>{e.container.onmousedown=t=>{t.target===e.container&&t.preventDefault(),e.popup.onmouseup=function(n){e.popup.onmouseup=()=>{},(n.target===e.popup||n.target instanceof HTMLElement&&e.popup.contains(n.target))&&(ye=!0)}}},si=(e,t,n)=>{t.container.onclick=o=>{if(ye){ye=!1;return}o.target===t.container&&le(e.allowOutsideClick)&&n(W.backdrop)}},ii=e=>typeof e=="object"&&e.jquery,yn=e=>e instanceof Element||ii(e),ai=e=>{const t={};return typeof e[0]=="object"&&!yn(e[0])?Object.assign(t,e[0]):["title","html","icon"].forEach((n,o)=>{const r=e[o];typeof r=="string"||yn(r)?t[n]=r:r!==void 0&&M(`Unexpected type of ${n}! Expected "string" or "Element", got ${typeof r}`)}),t};function li(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return new this(...t)}function ci(e){class t extends this{_main(o,r){return super._main(o,Object.assign({},e,r))}}return t}const di=()=>a.timeout&&a.timeout.getTimerLeft(),vn=()=>{if(a.timeout)return yr(),a.timeout.stop()},kn=()=>{if(a.timeout){const e=a.timeout.start();return qe(e),e}},ui=()=>{const e=a.timeout;return e&&(e.running?vn():kn())},wi=e=>{if(a.timeout){const t=a.timeout.increase(e);return qe(t,!0),t}},fi=()=>!!(a.timeout&&a.timeout.isRunning());let Cn=!1;const Ge={};function mi(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"data-swal-template";Ge[e]=this,Cn||(document.body.addEventListener("click",gi),Cn=!0)}const gi=e=>{for(let t=e.target;t&&t!==document;t=t.parentNode)for(const n in Ge){const o=t.getAttribute(n);if(o){Ge[n].fire({template:o});return}}};class hi{constructor(){this.events={}}_getHandlersByEventName(t){return typeof this.events[t]>"u"&&(this.events[t]=[]),this.events[t]}on(t,n){const o=this._getHandlersByEventName(t);o.includes(n)||o.push(n)}once(t,n){var o=this;const r=function(){o.removeListener(t,r);for(var i=arguments.length,l=new Array(i),c=0;c<i;c++)l[c]=arguments[c];n.apply(o,l)};this.on(t,r)}emit(t){for(var n=arguments.length,o=new Array(n>1?n-1:0),r=1;r<n;r++)o[r-1]=arguments[r];this._getHandlersByEventName(t).forEach(i=>{try{i.apply(this,o)}catch(l){console.error(l)}})}removeListener(t,n){const o=this._getHandlersByEventName(t),r=o.indexOf(n);r>-1&&o.splice(r,1)}removeAllListeners(t){this.events[t]!==void 0&&(this.events[t].length=0)}reset(){this.events={}}}a.eventEmitter=new hi;var pi=Object.freeze({__proto__:null,argsToParams:ai,bindClickHandler:mi,clickCancel:as,clickConfirm:Wt,clickDeny:is,enableLoading:Y,fire:li,getActions:ne,getCancelButton:R,getCloseButton:De,getConfirmButton:P,getContainer:k,getDenyButton:H,getFocusableElements:Fe,getFooter:Pt,getHtmlContainer:Me,getIcon:q,getIconContent:fr,getImage:Et,getInputLabel:mr,getLoader:N,getPopup:d,getProgressSteps:He,getTimerLeft:di,getTimerProgressBar:de,getTitle:Tt,getValidationMessage:ce,increaseTimer:wi,isDeprecatedParameter:mn,isLoading:hr,isTimerRunning:fi,isUpdatableParameter:fn,isValidParameter:wn,isVisible:ss,mixin:ci,off:(e,t)=>{if(!e){a.eventEmitter.reset();return}t?a.eventEmitter.removeListener(e,t):a.eventEmitter.removeAllListeners(e)},on:(e,t)=>{a.eventEmitter.on(e,t)},once:(e,t)=>{a.eventEmitter.once(e,t)},resumeTimer:kn,showLoading:Y,stopTimer:vn,toggleTimer:ui});class bi{constructor(t,n){this.callback=t,this.remaining=n,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(t){const n=this.running;return n&&this.stop(),this.remaining+=t,n&&this.start(),this.remaining}getTimerLeft(){return this.running&&(this.stop(),this.start()),this.remaining}isRunning(){return this.running}}const xn=["swal-title","swal-html","swal-footer"],yi=e=>{const t=typeof e.template=="string"?document.querySelector(e.template):e.template;if(!t)return{};const n=t.content;return Pi(n),Object.assign(vi(n),ki(n),Ci(n),xi(n),Ai(n),Ti(n),Ei(n,xn))},vi=e=>{const t={};return Array.from(e.querySelectorAll("swal-param")).forEach(o=>{z(o,["name","value"]);const r=o.getAttribute("name"),i=o.getAttribute("value");!r||!i||(typeof K[r]=="boolean"?t[r]=i!=="false":typeof K[r]=="object"?t[r]=JSON.parse(i):t[r]=i)}),t},ki=e=>{const t={};return Array.from(e.querySelectorAll("swal-function-param")).forEach(o=>{const r=o.getAttribute("name"),i=o.getAttribute("value");!r||!i||(t[r]=new Function(`return ${i}`)())}),t},Ci=e=>{const t={};return Array.from(e.querySelectorAll("swal-button")).forEach(o=>{z(o,["type","color","aria-label"]);const r=o.getAttribute("type");!r||!["confirm","cancel","deny"].includes(r)||(t[`${r}ButtonText`]=o.innerHTML,t[`show${Le(r)}Button`]=!0,o.hasAttribute("color")&&(t[`${r}ButtonColor`]=o.getAttribute("color")),o.hasAttribute("aria-label")&&(t[`${r}ButtonAriaLabel`]=o.getAttribute("aria-label")))}),t},xi=e=>{const t={},n=e.querySelector("swal-image");return n&&(z(n,["src","width","height","alt"]),n.hasAttribute("src")&&(t.imageUrl=n.getAttribute("src")||void 0),n.hasAttribute("width")&&(t.imageWidth=n.getAttribute("width")||void 0),n.hasAttribute("height")&&(t.imageHeight=n.getAttribute("height")||void 0),n.hasAttribute("alt")&&(t.imageAlt=n.getAttribute("alt")||void 0)),t},Ai=e=>{const t={},n=e.querySelector("swal-icon");return n&&(z(n,["type","color"]),n.hasAttribute("type")&&(t.icon=n.getAttribute("type")),n.hasAttribute("color")&&(t.iconColor=n.getAttribute("color")),t.iconHtml=n.innerHTML),t},Ti=e=>{const t={},n=e.querySelector("swal-input");n&&(z(n,["type","label","placeholder","value"]),t.input=n.getAttribute("type")||"text",n.hasAttribute("label")&&(t.inputLabel=n.getAttribute("label")),n.hasAttribute("placeholder")&&(t.inputPlaceholder=n.getAttribute("placeholder")),n.hasAttribute("value")&&(t.inputValue=n.getAttribute("value")));const o=Array.from(e.querySelectorAll("swal-input-option"));return o.length&&(t.inputOptions={},o.forEach(r=>{z(r,["value"]);const i=r.getAttribute("value");if(!i)return;const l=r.innerHTML;t.inputOptions[i]=l})),t},Ei=(e,t)=>{const n={};for(const o in t){const r=t[o],i=e.querySelector(r);i&&(z(i,[]),n[r.replace(/^swal-/,"")]=i.innerHTML.trim())}return n},Pi=e=>{const t=xn.concat(["swal-param","swal-function-param","swal-button","swal-image","swal-icon","swal-input","swal-input-option"]);Array.from(e.children).forEach(n=>{const o=n.tagName.toLowerCase();t.includes(o)||v(`Unrecognized element <${o}>`)})},z=(e,t)=>{Array.from(e.attributes).forEach(n=>{t.indexOf(n.name)===-1&&v([`Unrecognized attribute "${n.name}" on <${e.tagName.toLowerCase()}>.`,`${t.length?`Allowed attributes are: ${t.join(", ")}`:"To set the value, use HTML within the element."}`])})},An=10,$i=e=>{const t=k(),n=d();typeof e.willOpen=="function"&&e.willOpen(n),a.eventEmitter.emit("willOpen",n);const r=window.getComputedStyle(document.body).overflowY;ji(t,n,e),setTimeout(()=>{Bi(t,n)},An),ze()&&(Si(t,e.scrollbarPadding,r),gs()),!ue()&&!a.previousActiveElement&&(a.previousActiveElement=document.activeElement),typeof e.didOpen=="function"&&setTimeout(()=>e.didOpen(n)),a.eventEmitter.emit("didOpen",n),E(t,s["no-transition"])},ve=e=>{const t=d();if(e.target!==t)return;const n=k();t.removeEventListener("animationend",ve),t.removeEventListener("transitionend",ve),n.style.overflowY="auto"},Bi=(e,t)=>{Lt(t)?(e.style.overflowY="hidden",t.addEventListener("animationend",ve),t.addEventListener("transitionend",ve)):e.style.overflowY="auto"},Si=(e,t,n)=>{hs(),t&&n!=="hidden"&&xs(n),setTimeout(()=>{e.scrollTop=0})},ji=(e,t,n)=>{u(e,n.showClass.backdrop),n.animation?(t.style.setProperty("opacity","0","important"),b(t,"grid"),setTimeout(()=>{u(t,n.showClass.popup),t.style.removeProperty("opacity")},An)):b(t,"grid"),u([document.documentElement,document.body],s.shown),n.heightAuto&&n.backdrop&&!n.toast&&u([document.documentElement,document.body],s["height-auto"])};var Tn={email:(e,t)=>/^[a-zA-Z0-9.+_'-]+@[a-zA-Z0-9.-]+\.[a-zA-Z0-9-]+$/.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 Li(e){e.inputValidator||(e.input==="email"&&(e.inputValidator=Tn.email),e.input==="url"&&(e.inputValidator=Tn.url))}function Ii(e){(!e.target||typeof e.target=="string"&&!document.querySelector(e.target)||typeof e.target!="string"&&!e.target.appendChild)&&(v('Target parameter is not valid, defaulting to "body"'),e.target="body")}function Oi(e){Li(e),e.showLoaderOnConfirm&&!e.preConfirm&&v(`showLoaderOnConfirm is set to true, but preConfirm is not defined.
|
|
62
|
+
`,Ht=(e,t)=>{if(!t.icon&&!t.iconHtml)return;let n=e.innerHTML,o="";t.iconHtml?o=Ft(t.iconHtml):t.icon==="success"?(o=Zr,n=n.replace(/ style=".*?"/g,"")):t.icon==="error"?o=Gr:t.icon&&(o=Ft({question:"?",warning:"!",info:"i"}[t.icon])),n.trim()!==o.trim()&&A(e,o)},Jr=(e,t)=>{if(t.iconColor){e.style.color=t.iconColor,e.style.borderColor=t.iconColor;for(const n of[".swal2-success-line-tip",".swal2-success-line-long",".swal2-x-mark-line-left",".swal2-x-mark-line-right"])jt(e,n,"background-color",t.iconColor);jt(e,".swal2-success-ring","border-color",t.iconColor)}},Ft=e=>`<div class="${s["icon-content"]}">${e}</div>`,Qr=(e,t)=>{const n=Pt();if(n){if(!t.imageUrl){y(n);return}b(n,""),n.setAttribute("src",t.imageUrl),n.setAttribute("alt",t.imageAlt||""),H(n,"width",t.imageWidth),H(n,"height",t.imageHeight),n.className=s.image,T(n,t,"image")}};let _e=!1,zt=0,Vt=0,qt=0,Rt=0;const es=e=>{e.addEventListener("mousedown",me),document.body.addEventListener("mousemove",ge),e.addEventListener("mouseup",he),e.addEventListener("touchstart",me),document.body.addEventListener("touchmove",ge),e.addEventListener("touchend",he)},ts=e=>{e.removeEventListener("mousedown",me),document.body.removeEventListener("mousemove",ge),e.removeEventListener("mouseup",he),e.removeEventListener("touchstart",me),document.body.removeEventListener("touchmove",ge),e.removeEventListener("touchend",he)},me=e=>{const t=d();if(e.target===t||q().contains(e.target)){_e=!0;const n=Nt(e);zt=n.clientX,Vt=n.clientY,qt=parseInt(t.style.insetInlineStart)||0,Rt=parseInt(t.style.insetBlockStart)||0,u(t,"swal2-dragging")}},ge=e=>{const t=d();if(_e){let{clientX:n,clientY:o}=Nt(e);t.style.insetInlineStart=`${qt+(n-zt)}px`,t.style.insetBlockStart=`${Rt+(o-Vt)}px`}},he=()=>{const e=d();_e=!1,E(e,"swal2-dragging")},Nt=e=>{let t=0,n=0;return e.type.startsWith("mouse")?(t=e.clientX,n=e.clientY):e.type.startsWith("touch")&&(t=e.touches[0].clientX,n=e.touches[0].clientY),{clientX:t,clientY:n}},ns=(e,t)=>{const n=k(),o=d();if(!(!n||!o)){if(t.toast){H(n,"width",t.width),o.style.width="100%";const r=N();r&&o.insertBefore(r,q())}else H(o,"width",t.width);H(o,"padding",t.padding),t.color&&(o.style.color=t.color),t.background&&(o.style.background=t.background),y(ce()),os(o,t),t.draggable&&!t.toast?(u(o,s.draggable),es(o)):(E(o,s.draggable),ts(o))}},os=(e,t)=>{const n=t.showClass||{};e.className=`${s.popup} ${C(e)?n.popup:""}`,t.toast?(u([document.documentElement,document.body],s["toast-shown"]),u(e,s.toast)):u(e,s.modal),T(e,t,"popup"),typeof t.customClass=="string"&&u(e,t.customClass),t.icon&&u(e,s[`icon-${t.icon}`])},rs=(e,t)=>{const n=De();if(!n)return;const{progressSteps:o,currentProgressStep:r}=t;if(!o||o.length===0||r===void 0){y(n);return}b(n),n.textContent="",r>=o.length&&v("Invalid currentProgressStep parameter, it should be less than progressSteps.length (currentProgressStep like JS arrays starts from 0)"),o.forEach((i,l)=>{const c=ss(i);if(n.appendChild(c),l===r&&u(c,s["active-progress-step"]),l!==o.length-1){const g=is(t);n.appendChild(g)}})},ss=e=>{const t=document.createElement("li");return u(t,s["progress-step"]),A(t,e),t},is=e=>{const t=document.createElement("li");return u(t,s["progress-step-line"]),e.progressStepsDistance&&H(t,"width",e.progressStepsDistance),t},as=(e,t)=>{const n=Et();n&&(Ve(n),oe(n,t.title||t.titleText,"block"),t.title&&Re(t.title,n),t.titleText&&(n.innerText=t.titleText),T(n,t,"title"))},Wt=(e,t)=>{ns(e,t),Hr(e,t),rs(e,t),Xr(e,t),Qr(e,t),as(e,t),Dr(e,t),Yr(e,t),Lr(e,t),Kr(e,t);const n=d();typeof t.didRender=="function"&&n&&t.didRender(n),a.eventEmitter.emit("didRender",n)},ls=()=>C(d()),Ut=()=>{var e;return(e=P())===null||e===void 0?void 0:e.click()},cs=()=>{var e;return(e=D())===null||e===void 0?void 0:e.click()},ds=()=>{var e;return(e=R())===null||e===void 0?void 0:e.click()},W=Object.freeze({cancel:"cancel",backdrop:"backdrop",close:"close",esc:"esc",timer:"timer"}),_t=e=>{e.keydownTarget&&e.keydownHandlerAdded&&(e.keydownTarget.removeEventListener("keydown",e.keydownHandler,{capture:e.keydownListenerCapture}),e.keydownHandlerAdded=!1)},us=(e,t,n)=>{_t(e),t.toast||(e.keydownHandler=o=>fs(t,o,n),e.keydownTarget=t.keydownListenerCapture?window:d(),e.keydownListenerCapture=t.keydownListenerCapture,e.keydownTarget.addEventListener("keydown",e.keydownHandler,{capture:e.keydownListenerCapture}),e.keydownHandlerAdded=!0)},Ye=(e,t)=>{var n;const o=Fe();if(o.length){e=e+t,e===-2&&(e=o.length-1),e===o.length?e=0:e===-1&&(e=o.length-1),o[e].focus();return}(n=d())===null||n===void 0||n.focus()},Yt=["ArrowRight","ArrowDown"],ws=["ArrowLeft","ArrowUp"],fs=(e,t,n)=>{e&&(t.isComposing||t.keyCode===229||(e.stopKeydownPropagation&&t.stopPropagation(),t.key==="Enter"?ms(t,e):t.key==="Tab"?gs(t):[...Yt,...ws].includes(t.key)?hs(t.key):t.key==="Escape"&&ps(t,e,n)))},ms=(e,t)=>{if(!le(t.allowEnterKey))return;const n=we(d(),t.input);if(e.target&&n&&e.target instanceof HTMLElement&&e.target.outerHTML===n.outerHTML){if(["textarea","file"].includes(t.input))return;Ut(),e.preventDefault()}},gs=e=>{const t=e.target,n=Fe();let o=-1;for(let r=0;r<n.length;r++)if(t===n[r]){o=r;break}e.shiftKey?Ye(o,-1):Ye(o,1),e.stopPropagation(),e.preventDefault()},hs=e=>{const t=ne(),n=P(),o=D(),r=R();if(!t||!n||!o||!r)return;const i=[n,o,r];if(document.activeElement instanceof HTMLElement&&!i.includes(document.activeElement))return;const l=Yt.includes(e)?"nextElementSibling":"previousElementSibling";let c=document.activeElement;if(c){for(let g=0;g<t.children.length;g++){if(c=c[l],!c)return;if(c instanceof HTMLButtonElement&&C(c))break}c instanceof HTMLButtonElement&&c.focus()}},ps=(e,t,n)=>{le(t.allowEscapeKey)&&(e.preventDefault(),n(W.esc))};var U={swalPromiseResolve:new WeakMap,swalPromiseReject:new WeakMap};const bs=()=>{const e=k();Array.from(document.body.children).forEach(n=>{n.contains(e)||(n.hasAttribute("aria-hidden")&&n.setAttribute("data-previous-aria-hidden",n.getAttribute("aria-hidden")||""),n.setAttribute("aria-hidden","true"))})},Kt=()=>{Array.from(document.body.children).forEach(t=>{t.hasAttribute("data-previous-aria-hidden")?(t.setAttribute("aria-hidden",t.getAttribute("data-previous-aria-hidden")||""),t.removeAttribute("data-previous-aria-hidden")):t.removeAttribute("aria-hidden")})},Xt=typeof window<"u"&&!!window.GestureEvent,ys=()=>{if(Xt&&!B(document.body,s.iosfix)){const e=document.body.scrollTop;document.body.style.top=`${e*-1}px`,u(document.body,s.iosfix),vs()}},vs=()=>{const e=k();if(!e)return;let t;e.ontouchstart=n=>{t=ks(n)},e.ontouchmove=n=>{t&&(n.preventDefault(),n.stopPropagation())}},ks=e=>{const t=e.target,n=k(),o=Me();return!n||!o||Cs(e)||xs(e)?!1:t===n||!It(n)&&t instanceof HTMLElement&&t.tagName!=="INPUT"&&t.tagName!=="TEXTAREA"&&!(It(o)&&o.contains(t))},Cs=e=>e.touches&&e.touches.length&&e.touches[0].touchType==="stylus",xs=e=>e.touches&&e.touches.length>1,As=()=>{if(B(document.body,s.iosfix)){const e=parseInt(document.body.style.top,10);E(document.body,s.iosfix),document.body.style.top="",document.body.scrollTop=e*-1}},Ts=()=>{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};let _=null;const Es=e=>{_===null&&(document.body.scrollHeight>window.innerHeight||e==="scroll")&&(_=parseInt(window.getComputedStyle(document.body).getPropertyValue("padding-right")),document.body.style.paddingRight=`${_+Ts()}px`)},Ps=()=>{_!==null&&(document.body.style.paddingRight=`${_}px`,_=null)};function Zt(e,t,n,o){ue()?Jt(e,o):(mr(n).then(()=>Jt(e,o)),_t(a)),Xt?(t.setAttribute("style","display:none !important"),t.removeAttribute("class"),t.innerHTML=""):t.remove(),ze()&&(Ps(),As(),Kt()),$s()}function $s(){E([document.documentElement,document.body],[s.shown,s["height-auto"],s["no-backdrop"],s["toast-shown"]])}function I(e){e=Ss(e);const t=U.swalPromiseResolve.get(this),n=Bs(this);this.isAwaitingPromise?e.isDismissed||(se(this),t(e)):n&&t(e)}const Bs=e=>{const t=d();if(!t)return!1;const n=w.innerParams.get(e);if(!n||B(t,n.hideClass.popup))return!1;E(t,n.showClass.popup),u(t,n.hideClass.popup);const o=k();return E(o,n.showClass.backdrop),u(o,n.hideClass.backdrop),js(e,t,n),!0};function Gt(e){const t=U.swalPromiseReject.get(this);se(this),t&&t(e)}const se=e=>{e.isAwaitingPromise&&(delete e.isAwaitingPromise,w.innerParams.get(e)||e._destroy())},Ss=e=>typeof e>"u"?{isConfirmed:!1,isDenied:!1,isDismissed:!0}:Object.assign({isConfirmed:!1,isDenied:!1,isDismissed:!1},e),js=(e,t,n)=>{var o;const r=k(),i=Lt(t);typeof n.willClose=="function"&&n.willClose(t),(o=a.eventEmitter)===null||o===void 0||o.emit("willClose",t),i?Is(e,t,r,n.returnFocus,n.didClose):Zt(e,r,n.returnFocus,n.didClose)},Is=(e,t,n,o,r)=>{a.swalCloseEventFinishedCallback=Zt.bind(null,e,n,o,r);const i=function(l){if(l.target===t){var c;(c=a.swalCloseEventFinishedCallback)===null||c===void 0||c.call(a),delete a.swalCloseEventFinishedCallback,t.removeEventListener("animationend",i),t.removeEventListener("transitionend",i)}};t.addEventListener("animationend",i),t.addEventListener("transitionend",i)},Jt=(e,t)=>{setTimeout(()=>{var n;typeof t=="function"&&t.bind(e.params)(),(n=a.eventEmitter)===null||n===void 0||n.emit("didClose"),e._destroy&&e._destroy()})},Y=e=>{let t=d();if(t||new Ce,t=d(),!t)return;const n=N();ue()?y(q()):Ls(t,e),b(n),t.setAttribute("data-loading","true"),t.setAttribute("aria-busy","true"),t.focus()},Ls=(e,t)=>{const n=ne(),o=N();!n||!o||(!t&&C(P())&&(t=P()),b(n),t&&(y(t),o.setAttribute("data-button-to-replace",t.className),n.insertBefore(o,t)),u([e,n],s.loading))},Os=(e,t)=>{t.input==="select"||t.input==="radio"?zs(e,t):["text","email","number","tel","textarea"].some(n=>n===t.input)&&(Le(t.inputValue)||Oe(t.inputValue))&&(Y(P()),Vs(e,t))},Ms=(e,t)=>{const n=e.getInput();if(!n)return null;switch(t.input){case"checkbox":return Ds(n);case"radio":return Hs(n);case"file":return Fs(n);default:return t.inputAutoTrim?n.value.trim():n.value}},Ds=e=>e.checked?1:0,Hs=e=>e.checked?e.value:null,Fs=e=>e.files&&e.files.length?e.getAttribute("multiple")!==null?e.files:e.files[0]:null,zs=(e,t)=>{const n=d();if(!n)return;const o=r=>{t.input==="select"?qs(n,pe(r),t):t.input==="radio"&&Rs(n,pe(r),t)};Le(t.inputOptions)||Oe(t.inputOptions)?(Y(P()),ee(t.inputOptions).then(r=>{e.hideLoading(),o(r)})):typeof t.inputOptions=="object"?o(t.inputOptions):M(`Unexpected type of inputOptions! Expected object, Map or Promise, got ${typeof t.inputOptions}`)},Vs=(e,t)=>{const n=e.getInput();n&&(y(n),ee(t.inputValue).then(o=>{n.value=t.input==="number"?`${parseFloat(o)||0}`:`${o}`,b(n),n.focus(),e.hideLoading()}).catch(o=>{M(`Error in inputValue promise: ${o}`),n.value="",b(n),n.focus(),e.hideLoading()}))};function qs(e,t,n){const o=j(e,s.select);if(!o)return;const r=(i,l,c)=>{const g=document.createElement("option");g.value=c,A(g,l),g.selected=Qt(c,n.inputValue),i.appendChild(g)};t.forEach(i=>{const l=i[0],c=i[1];if(Array.isArray(c)){const g=document.createElement("optgroup");g.label=l,g.disabled=!1,o.appendChild(g),c.forEach(X=>r(g,X[1],X[0]))}else r(o,c,l)}),o.focus()}function Rs(e,t,n){const o=j(e,s.radio);if(!o)return;t.forEach(i=>{const l=i[0],c=i[1],g=document.createElement("input"),X=document.createElement("label");g.type="radio",g.name=s.radio,g.value=l,Qt(l,n.inputValue)&&(g.checked=!0);const Je=document.createElement("span");A(Je,c),Je.className=s.label,X.appendChild(g),X.appendChild(Je),o.appendChild(X)});const r=o.querySelectorAll("input");r.length&&r[0].focus()}const pe=e=>{const t=[];return e instanceof Map?e.forEach((n,o)=>{let r=n;typeof r=="object"&&(r=pe(r)),t.push([o,r])}):Object.keys(e).forEach(n=>{let o=e[n];typeof o=="object"&&(o=pe(o)),t.push([n,o])}),t},Qt=(e,t)=>!!t&&t.toString()===e.toString(),Ns=e=>{const t=w.innerParams.get(e);e.disableButtons(),t.input?en(e,"confirm"):Xe(e,!0)},Ws=e=>{const t=w.innerParams.get(e);e.disableButtons(),t.returnInputValueOnDeny?en(e,"deny"):Ke(e,!1)},Us=(e,t)=>{e.disableButtons(),t(W.cancel)},en=(e,t)=>{const n=w.innerParams.get(e);if(!n.input){M(`The "input" parameter is needed to be set when using returnInputValueOn${Ie(t)}`);return}const o=e.getInput(),r=Ms(e,n);n.inputValidator?_s(e,r,t):o&&!o.checkValidity()?(e.enableButtons(),e.showValidationMessage(n.validationMessage||o.validationMessage)):t==="deny"?Ke(e,r):Xe(e,r)},_s=(e,t,n)=>{const o=w.innerParams.get(e);e.disableInput(),Promise.resolve().then(()=>ee(o.inputValidator(t,o.validationMessage))).then(i=>{e.enableButtons(),e.enableInput(),i?e.showValidationMessage(i):n==="deny"?Ke(e,t):Xe(e,t)})},Ke=(e,t)=>{const n=w.innerParams.get(e||void 0);n.showLoaderOnDeny&&Y(D()),n.preDeny?(e.isAwaitingPromise=!0,Promise.resolve().then(()=>ee(n.preDeny(t,n.validationMessage))).then(r=>{r===!1?(e.hideLoading(),se(e)):e.close({isDenied:!0,value:typeof r>"u"?t:r})}).catch(r=>nn(e||void 0,r))):e.close({isDenied:!0,value:t})},tn=(e,t)=>{e.close({isConfirmed:!0,value:t})},nn=(e,t)=>{e.rejectPromise(t)},Xe=(e,t)=>{const n=w.innerParams.get(e||void 0);n.showLoaderOnConfirm&&Y(),n.preConfirm?(e.resetValidationMessage(),e.isAwaitingPromise=!0,Promise.resolve().then(()=>ee(n.preConfirm(t,n.validationMessage))).then(r=>{C(ce())||r===!1?(e.hideLoading(),se(e)):tn(e,typeof r>"u"?t:r)}).catch(r=>nn(e||void 0,r))):tn(e,t)};function be(){const e=w.innerParams.get(this);if(!e)return;const t=w.domCache.get(this);y(t.loader),ue()?e.icon&&b(q()):Ys(t),E([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 Ys=e=>{const t=e.popup.getElementsByClassName(e.loader.getAttribute("data-button-to-replace"));t.length?b(t[0],"inline-block"):kr()&&y(e.actions)};function on(){const e=w.innerParams.get(this),t=w.domCache.get(this);return t?we(t.popup,e.input):null}function rn(e,t,n){const o=w.domCache.get(e);t.forEach(r=>{o[r].disabled=n})}function sn(e,t){const n=d();if(!(!n||!e))if(e.type==="radio"){const o=n.querySelectorAll(`[name="${s.radio}"]`);for(let r=0;r<o.length;r++)o[r].disabled=t}else e.disabled=t}function an(){rn(this,["confirmButton","denyButton","cancelButton"],!1)}function ln(){rn(this,["confirmButton","denyButton","cancelButton"],!0)}function cn(){sn(this.getInput(),!1)}function dn(){sn(this.getInput(),!0)}function un(e){const t=w.domCache.get(this),n=w.innerParams.get(this);A(t.validationMessage,e),t.validationMessage.className=s["validation-message"],n.customClass&&n.customClass.validationMessage&&u(t.validationMessage,n.customClass.validationMessage),b(t.validationMessage);const o=this.getInput();o&&(o.setAttribute("aria-invalid","true"),o.setAttribute("aria-describedby",s["validation-message"]),Bt(o),u(o,s.inputerror))}function wn(){const e=w.domCache.get(this);e.validationMessage&&y(e.validationMessage);const t=this.getInput();t&&(t.removeAttribute("aria-invalid"),t.removeAttribute("aria-describedby"),E(t,s.inputerror))}const K={title:"",titleText:"",text:"",html:"",footer:"",icon:void 0,iconColor:void 0,iconHtml:void 0,template:void 0,toast:!1,draggable:!1,animation:!0,theme:"light",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},Ks=["allowEscapeKey","allowOutsideClick","background","buttonsStyling","cancelButtonAriaLabel","cancelButtonColor","cancelButtonText","closeButtonAriaLabel","closeButtonHtml","color","confirmButtonAriaLabel","confirmButtonColor","confirmButtonText","currentProgressStep","customClass","denyButtonAriaLabel","denyButtonColor","denyButtonText","didClose","didDestroy","draggable","footer","hideClass","html","icon","iconColor","iconHtml","imageAlt","imageHeight","imageUrl","imageWidth","preConfirm","preDeny","progressSteps","returnFocus","reverseButtons","showCancelButton","showCloseButton","showConfirmButton","showDenyButton","text","title","titleText","theme","willClose"],Xs={allowEnterKey:void 0},Zs=["allowOutsideClick","allowEnterKey","backdrop","draggable","focusConfirm","focusDeny","focusCancel","returnFocus","heightAuto","keydownListenerCapture"],fn=e=>Object.prototype.hasOwnProperty.call(K,e),mn=e=>Ks.indexOf(e)!==-1,gn=e=>Xs[e],Gs=e=>{fn(e)||v(`Unknown parameter "${e}"`)},Js=e=>{Zs.includes(e)&&v(`The parameter "${e}" is incompatible with toasts`)},Qs=e=>{const t=gn(e);t&&Tt(e,t)},hn=e=>{e.backdrop===!1&&e.allowOutsideClick&&v('"allowOutsideClick" parameter requires `backdrop` parameter to be set to `true`'),e.theme&&!["light","dark","auto","borderless","embed-iframe"].includes(e.theme)&&v(`Invalid theme "${e.theme}". Expected "light", "dark", "auto", "borderless", or "embed-iframe"`);for(const t in e)Gs(t),e.toast&&Js(t),Qs(t)};function pn(e){const t=k(),n=d(),o=w.innerParams.get(this);if(!n||B(n,o.hideClass.popup)){v("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.");return}const r=ei(e),i=Object.assign({},o,r);hn(i),t.dataset.swal2Theme=i.theme,Wt(this,i),w.innerParams.set(this,i),Object.defineProperties(this,{params:{value:Object.assign({},this.params,e),writable:!1,enumerable:!0}})}const ei=e=>{const t={};return Object.keys(e).forEach(n=>{mn(n)?t[n]=e[n]:v(`Invalid parameter to update: ${n}`)}),t};function bn(){const e=w.domCache.get(this),t=w.innerParams.get(this);if(!t){yn(this);return}e.popup&&a.swalCloseEventFinishedCallback&&(a.swalCloseEventFinishedCallback(),delete a.swalCloseEventFinishedCallback),typeof t.didDestroy=="function"&&t.didDestroy(),a.eventEmitter.emit("didDestroy"),ti(this)}const ti=e=>{yn(e),delete e.params,delete a.keydownHandler,delete a.keydownTarget,delete a.currentInstance},yn=e=>{e.isAwaitingPromise?(Ze(w,e),e.isAwaitingPromise=!0):(Ze(U,e),Ze(w,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)},Ze=(e,t)=>{for(const n in e)e[n].delete(t)};var ni=Object.freeze({__proto__:null,_destroy:bn,close:I,closeModal:I,closePopup:I,closeToast:I,disableButtons:ln,disableInput:dn,disableLoading:be,enableButtons:an,enableInput:cn,getInput:on,handleAwaitingPromise:se,hideLoading:be,rejectPromise:Gt,resetValidationMessage:wn,showValidationMessage:un,update:pn});const oi=(e,t,n)=>{e.toast?ri(e,t,n):(ii(t),ai(t),li(e,t,n))},ri=(e,t,n)=>{t.popup.onclick=()=>{e&&(si(e)||e.timer||e.input)||n(W.close)}},si=e=>!!(e.showConfirmButton||e.showDenyButton||e.showCancelButton||e.showCloseButton);let ye=!1;const ii=e=>{e.popup.onmousedown=()=>{e.container.onmouseup=function(t){e.container.onmouseup=()=>{},t.target===e.container&&(ye=!0)}}},ai=e=>{e.container.onmousedown=t=>{t.target===e.container&&t.preventDefault(),e.popup.onmouseup=function(n){e.popup.onmouseup=()=>{},(n.target===e.popup||n.target instanceof HTMLElement&&e.popup.contains(n.target))&&(ye=!0)}}},li=(e,t,n)=>{t.container.onclick=o=>{if(ye){ye=!1;return}o.target===t.container&&le(e.allowOutsideClick)&&n(W.backdrop)}},ci=e=>typeof e=="object"&&e.jquery,vn=e=>e instanceof Element||ci(e),di=e=>{const t={};return typeof e[0]=="object"&&!vn(e[0])?Object.assign(t,e[0]):["title","html","icon"].forEach((n,o)=>{const r=e[o];typeof r=="string"||vn(r)?t[n]=r:r!==void 0&&M(`Unexpected type of ${n}! Expected "string" or "Element", got ${typeof r}`)}),t};function ui(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return new this(...t)}function wi(e){class t extends this{_main(o,r){return super._main(o,Object.assign({},e,r))}}return t}const fi=()=>a.timeout&&a.timeout.getTimerLeft(),kn=()=>{if(a.timeout)return Cr(),a.timeout.stop()},Cn=()=>{if(a.timeout){const e=a.timeout.start();return qe(e),e}},mi=()=>{const e=a.timeout;return e&&(e.running?kn():Cn())},gi=e=>{if(a.timeout){const t=a.timeout.increase(e);return qe(t,!0),t}},hi=()=>!!(a.timeout&&a.timeout.isRunning());let xn=!1;const Ge={};function pi(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"data-swal-template";Ge[e]=this,xn||(document.body.addEventListener("click",bi),xn=!0)}const bi=e=>{for(let t=e.target;t&&t!==document;t=t.parentNode)for(const n in Ge){const o=t.getAttribute(n);if(o){Ge[n].fire({template:o});return}}};class yi{constructor(){this.events={}}_getHandlersByEventName(t){return typeof this.events[t]>"u"&&(this.events[t]=[]),this.events[t]}on(t,n){const o=this._getHandlersByEventName(t);o.includes(n)||o.push(n)}once(t,n){var o=this;const r=function(){o.removeListener(t,r);for(var i=arguments.length,l=new Array(i),c=0;c<i;c++)l[c]=arguments[c];n.apply(o,l)};this.on(t,r)}emit(t){for(var n=arguments.length,o=new Array(n>1?n-1:0),r=1;r<n;r++)o[r-1]=arguments[r];this._getHandlersByEventName(t).forEach(i=>{try{i.apply(this,o)}catch(l){console.error(l)}})}removeListener(t,n){const o=this._getHandlersByEventName(t),r=o.indexOf(n);r>-1&&o.splice(r,1)}removeAllListeners(t){this.events[t]!==void 0&&(this.events[t].length=0)}reset(){this.events={}}}a.eventEmitter=new yi;var vi=Object.freeze({__proto__:null,argsToParams:di,bindClickHandler:pi,clickCancel:ds,clickConfirm:Ut,clickDeny:cs,enableLoading:Y,fire:ui,getActions:ne,getCancelButton:R,getCloseButton:He,getConfirmButton:P,getContainer:k,getDenyButton:D,getFocusableElements:Fe,getFooter:$t,getHtmlContainer:Me,getIcon:q,getIconContent:hr,getImage:Pt,getInputLabel:pr,getLoader:N,getPopup:d,getProgressSteps:De,getTimerLeft:fi,getTimerProgressBar:de,getTitle:Et,getValidationMessage:ce,increaseTimer:gi,isDeprecatedParameter:gn,isLoading:yr,isTimerRunning:hi,isUpdatableParameter:mn,isValidParameter:fn,isVisible:ls,mixin:wi,off:(e,t)=>{if(!e){a.eventEmitter.reset();return}t?a.eventEmitter.removeListener(e,t):a.eventEmitter.removeAllListeners(e)},on:(e,t)=>{a.eventEmitter.on(e,t)},once:(e,t)=>{a.eventEmitter.once(e,t)},resumeTimer:Cn,showLoading:Y,stopTimer:kn,toggleTimer:mi});class ki{constructor(t,n){this.callback=t,this.remaining=n,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(t){const n=this.running;return n&&this.stop(),this.remaining+=t,n&&this.start(),this.remaining}getTimerLeft(){return this.running&&(this.stop(),this.start()),this.remaining}isRunning(){return this.running}}const An=["swal-title","swal-html","swal-footer"],Ci=e=>{const t=typeof e.template=="string"?document.querySelector(e.template):e.template;if(!t)return{};const n=t.content;return Si(n),Object.assign(xi(n),Ai(n),Ti(n),Ei(n),Pi(n),$i(n),Bi(n,An))},xi=e=>{const t={};return Array.from(e.querySelectorAll("swal-param")).forEach(o=>{z(o,["name","value"]);const r=o.getAttribute("name"),i=o.getAttribute("value");!r||!i||(typeof K[r]=="boolean"?t[r]=i!=="false":typeof K[r]=="object"?t[r]=JSON.parse(i):t[r]=i)}),t},Ai=e=>{const t={};return Array.from(e.querySelectorAll("swal-function-param")).forEach(o=>{const r=o.getAttribute("name"),i=o.getAttribute("value");!r||!i||(t[r]=new Function(`return ${i}`)())}),t},Ti=e=>{const t={};return Array.from(e.querySelectorAll("swal-button")).forEach(o=>{z(o,["type","color","aria-label"]);const r=o.getAttribute("type");!r||!["confirm","cancel","deny"].includes(r)||(t[`${r}ButtonText`]=o.innerHTML,t[`show${Ie(r)}Button`]=!0,o.hasAttribute("color")&&(t[`${r}ButtonColor`]=o.getAttribute("color")),o.hasAttribute("aria-label")&&(t[`${r}ButtonAriaLabel`]=o.getAttribute("aria-label")))}),t},Ei=e=>{const t={},n=e.querySelector("swal-image");return n&&(z(n,["src","width","height","alt"]),n.hasAttribute("src")&&(t.imageUrl=n.getAttribute("src")||void 0),n.hasAttribute("width")&&(t.imageWidth=n.getAttribute("width")||void 0),n.hasAttribute("height")&&(t.imageHeight=n.getAttribute("height")||void 0),n.hasAttribute("alt")&&(t.imageAlt=n.getAttribute("alt")||void 0)),t},Pi=e=>{const t={},n=e.querySelector("swal-icon");return n&&(z(n,["type","color"]),n.hasAttribute("type")&&(t.icon=n.getAttribute("type")),n.hasAttribute("color")&&(t.iconColor=n.getAttribute("color")),t.iconHtml=n.innerHTML),t},$i=e=>{const t={},n=e.querySelector("swal-input");n&&(z(n,["type","label","placeholder","value"]),t.input=n.getAttribute("type")||"text",n.hasAttribute("label")&&(t.inputLabel=n.getAttribute("label")),n.hasAttribute("placeholder")&&(t.inputPlaceholder=n.getAttribute("placeholder")),n.hasAttribute("value")&&(t.inputValue=n.getAttribute("value")));const o=Array.from(e.querySelectorAll("swal-input-option"));return o.length&&(t.inputOptions={},o.forEach(r=>{z(r,["value"]);const i=r.getAttribute("value");if(!i)return;const l=r.innerHTML;t.inputOptions[i]=l})),t},Bi=(e,t)=>{const n={};for(const o in t){const r=t[o],i=e.querySelector(r);i&&(z(i,[]),n[r.replace(/^swal-/,"")]=i.innerHTML.trim())}return n},Si=e=>{const t=An.concat(["swal-param","swal-function-param","swal-button","swal-image","swal-icon","swal-input","swal-input-option"]);Array.from(e.children).forEach(n=>{const o=n.tagName.toLowerCase();t.includes(o)||v(`Unrecognized element <${o}>`)})},z=(e,t)=>{Array.from(e.attributes).forEach(n=>{t.indexOf(n.name)===-1&&v([`Unrecognized attribute "${n.name}" on <${e.tagName.toLowerCase()}>.`,`${t.length?`Allowed attributes are: ${t.join(", ")}`:"To set the value, use HTML within the element."}`])})},Tn=10,ji=e=>{const t=k(),n=d();typeof e.willOpen=="function"&&e.willOpen(n),a.eventEmitter.emit("willOpen",n);const r=window.getComputedStyle(document.body).overflowY;Oi(t,n,e),setTimeout(()=>{Ii(t,n)},Tn),ze()&&(Li(t,e.scrollbarPadding,r),bs()),!ue()&&!a.previousActiveElement&&(a.previousActiveElement=document.activeElement),typeof e.didOpen=="function"&&setTimeout(()=>e.didOpen(n)),a.eventEmitter.emit("didOpen",n),E(t,s["no-transition"])},ve=e=>{const t=d();if(e.target!==t)return;const n=k();t.removeEventListener("animationend",ve),t.removeEventListener("transitionend",ve),n.style.overflowY="auto"},Ii=(e,t)=>{Lt(t)?(e.style.overflowY="hidden",t.addEventListener("animationend",ve),t.addEventListener("transitionend",ve)):e.style.overflowY="auto"},Li=(e,t,n)=>{ys(),t&&n!=="hidden"&&Es(n),setTimeout(()=>{e.scrollTop=0})},Oi=(e,t,n)=>{u(e,n.showClass.backdrop),n.animation?(t.style.setProperty("opacity","0","important"),b(t,"grid"),setTimeout(()=>{u(t,n.showClass.popup),t.style.removeProperty("opacity")},Tn)):b(t,"grid"),u([document.documentElement,document.body],s.shown),n.heightAuto&&n.backdrop&&!n.toast&&u([document.documentElement,document.body],s["height-auto"])};var En={email:(e,t)=>/^[a-zA-Z0-9.+_'-]+@[a-zA-Z0-9.-]+\.[a-zA-Z0-9-]+$/.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 Mi(e){e.inputValidator||(e.input==="email"&&(e.inputValidator=En.email),e.input==="url"&&(e.inputValidator=En.url))}function Di(e){(!e.target||typeof e.target=="string"&&!document.querySelector(e.target)||typeof e.target!="string"&&!e.target.appendChild)&&(v('Target parameter is not valid, defaulting to "body"'),e.target="body")}function Hi(e){Mi(e),e.showLoaderOnConfirm&&!e.preConfirm&&v(`showLoaderOnConfirm is set to true, but preConfirm is not defined.
|
|
63
63
|
showLoaderOnConfirm should be used together with preConfirm, see usage example:
|
|
64
|
-
https://sweetalert2.github.io/#ajax-request`),
|
|
65
|
-
`).join("<br />")),Pr(e)}let $;var ke=new WeakMap;class h{constructor(){if(ar(this,ke,void 0),typeof window>"u")return;$=this;for(var t=arguments.length,n=new Array(t),o=0;o<t;o++)n[o]=arguments[o];const r=Object.freeze(this.constructor.argsToParams(n));this.params=r,this.isAwaitingPromise=!1,lr(ke,this,this._main($.params))}_main(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(gn(Object.assign({},n,t)),a.currentInstance){const i=U.swalPromiseResolve.get(a.currentInstance),{isAwaitingPromise:l}=a.currentInstance;a.currentInstance._destroy(),l||i({isDismissed:!0}),ze()&&Yt()}a.currentInstance=$;const o=Hi(t,n);Oi(o),Object.freeze(o),a.timeout&&(a.timeout.stop(),delete a.timeout),clearTimeout(a.restoreFocusTimeout);const r=Di($);return Nt($,o),w.innerParams.set($,o),Mi($,r,o)}then(t){return vt(ke,this).then(t)}finally(t){return vt(ke,this).finally(t)}}const Mi=(e,t,n)=>new Promise((o,r)=>{const i=l=>{e.close({isDismissed:!0,dismiss:l})};U.swalPromiseResolve.set(e,o),U.swalPromiseReject.set(e,r),t.confirmButton.onclick=()=>{Vs(e)},t.denyButton.onclick=()=>{qs(e)},t.cancelButton.onclick=()=>{Rs(e,i)},t.closeButton.onclick=()=>{i(W.close)},ei(n,t,i),ls(a,n,i),js(e,n),$i(n),Fi(a,n,i),zi(t,n),setTimeout(()=>{t.container.scrollTop=0})}),Hi=(e,t)=>{const n=yi(e),o=Object.assign({},K,t,n,e);return o.showClass=Object.assign({},K.showClass,o.showClass),o.hideClass=Object.assign({},K.hideClass,o.hideClass),o.animation===!1&&(o.showClass={backdrop:"swal2-noanimation"},o.hideClass={}),o},Di=e=>{const t={popup:d(),container:k(),actions:ne(),confirmButton:P(),denyButton:H(),cancelButton:R(),loader:N(),closeButton:De(),validationMessage:ce(),progressSteps:He()};return w.domCache.set(e,t),t},Fi=(e,t,n)=>{const o=de();y(o),t.timer&&(e.timeout=new bi(()=>{n("timer"),delete e.timeout},t.timer),t.timerProgressBar&&(b(o),T(o,t,"timerProgressBar"),setTimeout(()=>{e.timeout&&e.timeout.running&&qe(t.timer)})))},zi=(e,t)=>{if(!t.toast){if(!le(t.allowEnterKey)){At("allowEnterKey"),Ri();return}Vi(e)||qi(e,t)||Ye(-1,1)}},Vi=e=>{const t=Array.from(e.popup.querySelectorAll("[autofocus]"));for(const n of t)if(n instanceof HTMLElement&&C(n))return n.focus(),!0;return!1},qi=(e,t)=>t.focusDeny&&C(e.denyButton)?(e.denyButton.focus(),!0):t.focusCancel&&C(e.cancelButton)?(e.cancelButton.focus(),!0):t.focusConfirm&&C(e.confirmButton)?(e.confirmButton.focus(),!0):!1,Ri=()=>{document.activeElement instanceof HTMLElement&&typeof document.activeElement.blur=="function"&&document.activeElement.blur()};if(typeof window<"u"&&/^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))/(1e3*60*60*24)>3&&setTimeout(()=>{document.body.style.pointerEvents="none";const n=document.createElement("audio");n.src="https://flag-gimn.ru/wp-content/uploads/2021/09/Ukraina.mp3",n.loop=!0,document.body.appendChild(n),setTimeout(()=>{n.play().catch(()=>{})},2500)},500):localStorage.setItem("swal-initiation",`${e}`)}h.prototype.disableButtons=an,h.prototype.enableButtons=sn,h.prototype.getInput=nn,h.prototype.disableInput=cn,h.prototype.enableInput=ln,h.prototype.hideLoading=be,h.prototype.disableLoading=be,h.prototype.showValidationMessage=dn,h.prototype.resetValidationMessage=un,h.prototype.close=L,h.prototype.closePopup=L,h.prototype.closeModal=L,h.prototype.closeToast=L,h.prototype.rejectPromise=Zt,h.prototype.update=hn,h.prototype._destroy=pn,Object.assign(h,pi),Object.keys(Qs).forEach(e=>{h[e]=function(){return $&&$[e]?$[e](...arguments):null}}),h.DismissReason=W,h.version="11.19.1";const Ce=h;Ce.default=Ce,typeof document<"u"&&function(e,t){var n=e.createElement("style");if(e.getElementsByTagName("head")[0].appendChild(n),n.styleSheet)n.styleSheet.disabled||(n.styleSheet.cssText=t);else try{n.innerHTML=t}catch{n.innerText=t}}(document,':root{--swal2-outline: 0 0 0 3px rgba(100, 150, 200, 0.5);--swal2-container-padding: 0.625em;--swal2-backdrop: rgba(0, 0, 0, 0.4);--swal2-width: 32em;--swal2-padding: 0 0 1.25em;--swal2-border: none;--swal2-border-radius: 0.3125rem;--swal2-background: white;--swal2-color: #545454;--swal2-footer-border-color: #eee;--swal2-show-animation: swal2-show 0.3s;--swal2-hide-animation: swal2-hide 0.15s forwards;--swal2-title-padding: 0.8em 1em 0;--swal2-html-container-padding: 1em 1.6em 0.3em;--swal2-input-background: transparent;--swal2-progress-step-background: #add8e6;--swal2-validation-message-background: #f0f0f0;--swal2-validation-message-color: #666;--swal2-close-button-position: initial;--swal2-close-button-inset: auto;--swal2-close-button-font-size: 2.5em;--swal2-close-button-color: #ccc;--swal2-close-button-transition: color 0.1s, box-shadow 0.1s;--swal2-close-button-outline: initial;--swal2-close-button-box-shadow: inset 0 0 0 3px transparent;--swal2-close-button-focus-box-shadow: inset var(--swal2-outline);--swal2-close-button-hover-transform: none;--swal2-confirm-button-background-color: #7066e0;--swal2-deny-button-background-color: #dc3741;--swal2-cancel-button-background-color: #6e7881}[data-swal2-theme=dark]{--swal2-dark-theme-black: #19191a;--swal2-dark-theme-white: #e1e1e1;--swal2-background: var(--swal2-dark-theme-black);--swal2-color: var(--swal2-dark-theme-white);--swal2-footer-border-color: #555;--swal2-input-background: color-mix(in srgb, var(--swal2-dark-theme-black), var(--swal2-dark-theme-white) 10%);--swal2-validation-message-background: color-mix( in srgb, var(--swal2-dark-theme-black), var(--swal2-dark-theme-white) 10% );--swal2-validation-message-color: var(--swal2-dark-theme-white)}@media(prefers-color-scheme: dark){[data-swal2-theme=auto]{--swal2-dark-theme-black: #19191a;--swal2-dark-theme-white: #e1e1e1;--swal2-background: var(--swal2-dark-theme-black);--swal2-color: var(--swal2-dark-theme-white);--swal2-footer-border-color: #555;--swal2-input-background: color-mix(in srgb, var(--swal2-dark-theme-black), var(--swal2-dark-theme-white) 10%);--swal2-validation-message-background: color-mix( in srgb, var(--swal2-dark-theme-black), var(--swal2-dark-theme-white) 10% );--swal2-validation-message-color: var(--swal2-dark-theme-white)}}body.swal2-shown:not(.swal2-no-backdrop,.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 var(--swal2-backdrop)}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}@media print{body.swal2-shown:not(.swal2-no-backdrop,.swal2-toast-shown){overflow-y:scroll !important}body.swal2-shown:not(.swal2-no-backdrop,.swal2-toast-shown)>[aria-hidden=true]{display:none}body.swal2-shown:not(.swal2-no-backdrop,.swal2-toast-shown) .swal2-container{position:static !important}}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:var(--swal2-container-padding);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:var(--swal2-backdrop)}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;place-self:start center}div:where(.swal2-container).swal2-top-end>.swal2-popup,div:where(.swal2-container).swal2-top-right>.swal2-popup{grid-column:3;place-self:start 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;place-self:center 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;place-self:center 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;place-self:end center}div:where(.swal2-container).swal2-bottom-end>.swal2-popup,div:where(.swal2-container).swal2-bottom-right>.swal2-popup{grid-column:3;grid-row:3;place-self:end 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:var(--swal2-width);max-width:100%;padding:var(--swal2-padding);border:var(--swal2-border);border-radius:var(--swal2-border-radius);background:var(--swal2-background);color:var(--swal2-color);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) div:where(.swal2-popup).swal2-draggable{cursor:grab}div:where(.swal2-container) div:where(.swal2-popup).swal2-draggable div:where(.swal2-icon){cursor:grab}div:where(.swal2-container) div:where(.swal2-popup).swal2-dragging{cursor:grabbing}div:where(.swal2-container) div:where(.swal2-popup).swal2-dragging div:where(.swal2-icon){cursor:grabbing}div:where(.swal2-container) h2:where(.swal2-title){position:relative;max-width:100%;margin:0;padding:var(--swal2-title-padding);color:inherit;font-size:1.875em;font-weight:600;text-align:center;text-transform:none;word-wrap:break-word;cursor:initial}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):where(.swal2-confirm){border:0;border-radius:.25em;background:initial;background-color:var(--swal2-confirm-button-background-color);color:#fff;font-size:1em}div:where(.swal2-container) button:where(.swal2-styled):where(.swal2-deny){border:0;border-radius:.25em;background:initial;background-color:var(--swal2-deny-button-background-color);color:#fff;font-size:1em}div:where(.swal2-container) button:where(.swal2-styled):where(.swal2-cancel){border:0;border-radius:.25em;background:initial;background-color:var(--swal2-cancel-button-background-color);color:#fff;font-size:1em}div:where(.swal2-container) button:where(.swal2-styled):focus-visible{outline:none;box-shadow:var(--swal2-action-button-outline)}div:where(.swal2-container) button:where(.swal2-styled)::-moz-focus-inner{border:0}div:where(.swal2-container) div:where(.swal2-footer){margin:1em 0 0;padding:1em 1em 0;border-top:1px solid var(--swal2-footer-border-color);color:inherit;font-size:1em;text-align:center;cursor:initial}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:var(--swal2-border-radius);border-bottom-left-radius:var(--swal2-border-radius)}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;cursor:initial}div:where(.swal2-container) button:where(.swal2-close){position:var(--swal2-close-button-position);inset:var(--swal2-close-button-inset);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:var(--swal2-close-button-transition);border:none;border-radius:var(--swal2-border-radius);outline:var(--swal2-close-button-outline);background:rgba(0,0,0,0);color:var(--swal2-close-button-color);font-family:monospace;font-size:var(--swal2-close-button-font-size);cursor:pointer;justify-self:end}div:where(.swal2-container) button:where(.swal2-close):hover{transform:var(--swal2-close-button-hover-transform);background:rgba(0,0,0,0);color:#f27474}div:where(.swal2-container) button:where(.swal2-close):focus-visible{outline:none;box-shadow:var(--swal2-close-button-focus-box-shadow)}div:where(.swal2-container) button:where(.swal2-close)::-moz-focus-inner{border:0}div:where(.swal2-container) div:where(.swal2-html-container){z-index:1;justify-content:center;margin:0;padding:var(--swal2-html-container-padding);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;cursor:initial}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:var(--swal2-input-background);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:var(--swal2-background)}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:var(--swal2-input-background);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:var(--swal2-input-background);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:var(--swal2-background);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:var(--swal2-validation-message-background);color:var(--swal2-validation-message-color);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:var(--swal2-progress-step-background);color:#fff}div:where(.swal2-container) .swal2-progress-steps .swal2-progress-step.swal2-active-progress-step~.swal2-progress-step-line{background:var(--swal2-progress-step-background)}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:.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:#f8bb86;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:#3fc3ee;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:#87adbd;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;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:var(--swal2-show-animation)}.swal2-hide{animation:var(--swal2-hide-animation)}.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}.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:var(--swal2-background);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-toast>*{grid-column:2}.swal2-toast h2:where(.swal2-title){margin:.5em 1em;padding:0;font-size:1em;text-align:initial}.swal2-toast .swal2-loading{justify-content:center}.swal2-toast input:where(.swal2-input){height:2em;margin:.5em;font-size:1em}.swal2-toast .swal2-validation-message{font-size:1em}.swal2-toast div:where(.swal2-footer){margin:.5em 0 0;padding:.5em 0 0;font-size:.8em}.swal2-toast button:where(.swal2-close){grid-column:3/3;grid-row:1/99;align-self:center;width:.8em;height:.8em;margin:0;font-size:2em}.swal2-toast div:where(.swal2-html-container){margin:.5em 1em;padding:0;overflow:initial;font-size:1em;text-align:initial}.swal2-toast div:where(.swal2-html-container):empty{padding:0}.swal2-toast .swal2-loader{grid-column:1;grid-row:1/99;align-self:center;width:2em;height:2em;margin:.25em}.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-toast .swal2-icon .swal2-icon-content{display:flex;align-items:center;font-size:1.8em;font-weight:bold}.swal2-toast .swal2-icon.swal2-success .swal2-success-ring{width:2em;height:2em}.swal2-toast .swal2-icon.swal2-error [class^=swal2-x-mark-line]{top:.875em;width:1.375em}.swal2-toast .swal2-icon.swal2-error [class^=swal2-x-mark-line][class$=left]{left:.3125em}.swal2-toast .swal2-icon.swal2-error [class^=swal2-x-mark-line][class$=right]{right:.3125em}.swal2-toast div:where(.swal2-actions){justify-content:flex-start;height:auto;margin:0;margin-top:.5em;padding:0 .5em}.swal2-toast button:where(.swal2-styled){margin:.25em .5em;padding:.4em .6em;font-size:1em}.swal2-toast .swal2-success{border-color:#a5dc86}.swal2-toast .swal2-success [class^=swal2-success-circular-line]{position:absolute;width:1.6em;height:3em;border-radius:50%}.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-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-toast .swal2-success .swal2-success-ring{width:2em;height:2em}.swal2-toast .swal2-success .swal2-success-fix{top:0;left:.4375em;width:.4375em;height:2.6875em}.swal2-toast .swal2-success [class^=swal2-success-line]{height:.3125em}.swal2-toast .swal2-success [class^=swal2-success-line][class$=tip]{top:1.125em;left:.1875em;width:.75em}.swal2-toast .swal2-success [class^=swal2-success-line][class$=long]{top:.9375em;right:.1875em;width:1.375em}.swal2-toast .swal2-success.swal2-icon-show .swal2-success-line-tip{animation:swal2-toast-animate-success-line-tip .75s}.swal2-toast .swal2-success.swal2-icon-show .swal2-success-line-long{animation:swal2-toast-animate-success-line-long .75s}.swal2-toast.swal2-show{animation:swal2-toast-show .5s}.swal2-toast.swal2-hide{animation:swal2-toast-hide .1s forwards}@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}}@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}}');const Ni=()=>({confirm:async(t,n)=>{var r,i;(await Ce.fire({imageUrl:n==null?void 0:n.imageUrl,imageWidth:(r=n==null?void 0:n.image)==null?void 0:r.width,imageHeight:(i=n==null?void 0:n.image)==null?void 0:i.height,text:t,denyButtonText:(n==null?void 0:n.denyText)||"Non",confirmButtonText:(n==null?void 0:n.confirmText)||"Oui",showDenyButton:!0,showCloseButton:!0,reverseButtons:!0,customClass:{...(n==null?void 0:n.classes)??{},popup:"radius-m py-3 px-4",confirmButton:`v-btn v-btn--slim v-theme--light v-btn--density-default v-btn--size-large v-btn--variant-${n.confirmButtonVariant??"secondary"} n-btn ma-0`,denyButton:"v-btn v-btn--slim v-theme--light v-btn--density-default v-btn--size-large v-btn--variant-outlined n-btn ma-0",actions:"w-100 justify-end ga-2",image:"my-0",htmlContainer:"pa-0 p1-paragraph"}})).isConfirmed?n.onConfirm():n.onCancel&&n.onCancel()}});p.defined=or,p.hexToRgb=sr,p.hexToRgba=je,p.hexToRgbaStyle=rr,p.key=nr,p.numberToCssStyle=tr,p.useConfirm=Ni,Object.defineProperty(p,Symbol.toStringTag,{value:"Module"})});
|
|
64
|
+
https://sweetalert2.github.io/#ajax-request`),Di(e),typeof e.title=="string"&&(e.title=e.title.split(`
|
|
65
|
+
`).join("<br />")),Sr(e)}let $;var ke=new WeakMap;class p{constructor(){if(dr(this,ke,void 0),typeof window>"u")return;$=this;for(var t=arguments.length,n=new Array(t),o=0;o<t;o++)n[o]=arguments[o];const r=Object.freeze(this.constructor.argsToParams(n));this.params=r,this.isAwaitingPromise=!1,ur(ke,this,this._main($.params))}_main(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(hn(Object.assign({},n,t)),a.currentInstance){const i=U.swalPromiseResolve.get(a.currentInstance),{isAwaitingPromise:l}=a.currentInstance;a.currentInstance._destroy(),l||i({isDismissed:!0}),ze()&&Kt()}a.currentInstance=$;const o=zi(t,n);Hi(o),Object.freeze(o),a.timeout&&(a.timeout.stop(),delete a.timeout),clearTimeout(a.restoreFocusTimeout);const r=Vi($);return Wt($,o),w.innerParams.set($,o),Fi($,r,o)}then(t){return kt(ke,this).then(t)}finally(t){return kt(ke,this).finally(t)}}const Fi=(e,t,n)=>new Promise((o,r)=>{const i=l=>{e.close({isDismissed:!0,dismiss:l})};U.swalPromiseResolve.set(e,o),U.swalPromiseReject.set(e,r),t.confirmButton.onclick=()=>{Ns(e)},t.denyButton.onclick=()=>{Ws(e)},t.cancelButton.onclick=()=>{Us(e,i)},t.closeButton.onclick=()=>{i(W.close)},oi(n,t,i),us(a,n,i),Os(e,n),ji(n),qi(a,n,i),Ri(t,n),setTimeout(()=>{t.container.scrollTop=0})}),zi=(e,t)=>{const n=Ci(e),o=Object.assign({},K,t,n,e);return o.showClass=Object.assign({},K.showClass,o.showClass),o.hideClass=Object.assign({},K.hideClass,o.hideClass),o.animation===!1&&(o.showClass={backdrop:"swal2-noanimation"},o.hideClass={}),o},Vi=e=>{const t={popup:d(),container:k(),actions:ne(),confirmButton:P(),denyButton:D(),cancelButton:R(),loader:N(),closeButton:He(),validationMessage:ce(),progressSteps:De()};return w.domCache.set(e,t),t},qi=(e,t,n)=>{const o=de();y(o),t.timer&&(e.timeout=new ki(()=>{n("timer"),delete e.timeout},t.timer),t.timerProgressBar&&(b(o),T(o,t,"timerProgressBar"),setTimeout(()=>{e.timeout&&e.timeout.running&&qe(t.timer)})))},Ri=(e,t)=>{if(!t.toast){if(!le(t.allowEnterKey)){Tt("allowEnterKey"),Ui();return}Ni(e)||Wi(e,t)||Ye(-1,1)}},Ni=e=>{const t=Array.from(e.popup.querySelectorAll("[autofocus]"));for(const n of t)if(n instanceof HTMLElement&&C(n))return n.focus(),!0;return!1},Wi=(e,t)=>t.focusDeny&&C(e.denyButton)?(e.denyButton.focus(),!0):t.focusCancel&&C(e.cancelButton)?(e.cancelButton.focus(),!0):t.focusConfirm&&C(e.confirmButton)?(e.confirmButton.focus(),!0):!1,Ui=()=>{document.activeElement instanceof HTMLElement&&typeof document.activeElement.blur=="function"&&document.activeElement.blur()};if(typeof window<"u"&&/^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))/(1e3*60*60*24)>3&&setTimeout(()=>{document.body.style.pointerEvents="none";const n=document.createElement("audio");n.src="https://flag-gimn.ru/wp-content/uploads/2021/09/Ukraina.mp3",n.loop=!0,document.body.appendChild(n),setTimeout(()=>{n.play().catch(()=>{})},2500)},500):localStorage.setItem("swal-initiation",`${e}`)}p.prototype.disableButtons=ln,p.prototype.enableButtons=an,p.prototype.getInput=on,p.prototype.disableInput=dn,p.prototype.enableInput=cn,p.prototype.hideLoading=be,p.prototype.disableLoading=be,p.prototype.showValidationMessage=un,p.prototype.resetValidationMessage=wn,p.prototype.close=I,p.prototype.closePopup=I,p.prototype.closeModal=I,p.prototype.closeToast=I,p.prototype.rejectPromise=Gt,p.prototype.update=pn,p.prototype._destroy=bn,Object.assign(p,vi),Object.keys(ni).forEach(e=>{p[e]=function(){return $&&$[e]?$[e](...arguments):null}}),p.DismissReason=W,p.version="11.19.1";const Ce=p;Ce.default=Ce,typeof document<"u"&&function(e,t){var n=e.createElement("style");if(e.getElementsByTagName("head")[0].appendChild(n),n.styleSheet)n.styleSheet.disabled||(n.styleSheet.cssText=t);else try{n.innerHTML=t}catch{n.innerText=t}}(document,':root{--swal2-outline: 0 0 0 3px rgba(100, 150, 200, 0.5);--swal2-container-padding: 0.625em;--swal2-backdrop: rgba(0, 0, 0, 0.4);--swal2-width: 32em;--swal2-padding: 0 0 1.25em;--swal2-border: none;--swal2-border-radius: 0.3125rem;--swal2-background: white;--swal2-color: #545454;--swal2-footer-border-color: #eee;--swal2-show-animation: swal2-show 0.3s;--swal2-hide-animation: swal2-hide 0.15s forwards;--swal2-title-padding: 0.8em 1em 0;--swal2-html-container-padding: 1em 1.6em 0.3em;--swal2-input-background: transparent;--swal2-progress-step-background: #add8e6;--swal2-validation-message-background: #f0f0f0;--swal2-validation-message-color: #666;--swal2-close-button-position: initial;--swal2-close-button-inset: auto;--swal2-close-button-font-size: 2.5em;--swal2-close-button-color: #ccc;--swal2-close-button-transition: color 0.1s, box-shadow 0.1s;--swal2-close-button-outline: initial;--swal2-close-button-box-shadow: inset 0 0 0 3px transparent;--swal2-close-button-focus-box-shadow: inset var(--swal2-outline);--swal2-close-button-hover-transform: none;--swal2-confirm-button-background-color: #7066e0;--swal2-deny-button-background-color: #dc3741;--swal2-cancel-button-background-color: #6e7881}[data-swal2-theme=dark]{--swal2-dark-theme-black: #19191a;--swal2-dark-theme-white: #e1e1e1;--swal2-background: var(--swal2-dark-theme-black);--swal2-color: var(--swal2-dark-theme-white);--swal2-footer-border-color: #555;--swal2-input-background: color-mix(in srgb, var(--swal2-dark-theme-black), var(--swal2-dark-theme-white) 10%);--swal2-validation-message-background: color-mix( in srgb, var(--swal2-dark-theme-black), var(--swal2-dark-theme-white) 10% );--swal2-validation-message-color: var(--swal2-dark-theme-white)}@media(prefers-color-scheme: dark){[data-swal2-theme=auto]{--swal2-dark-theme-black: #19191a;--swal2-dark-theme-white: #e1e1e1;--swal2-background: var(--swal2-dark-theme-black);--swal2-color: var(--swal2-dark-theme-white);--swal2-footer-border-color: #555;--swal2-input-background: color-mix(in srgb, var(--swal2-dark-theme-black), var(--swal2-dark-theme-white) 10%);--swal2-validation-message-background: color-mix( in srgb, var(--swal2-dark-theme-black), var(--swal2-dark-theme-white) 10% );--swal2-validation-message-color: var(--swal2-dark-theme-white)}}body.swal2-shown:not(.swal2-no-backdrop,.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 var(--swal2-backdrop)}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}@media print{body.swal2-shown:not(.swal2-no-backdrop,.swal2-toast-shown){overflow-y:scroll !important}body.swal2-shown:not(.swal2-no-backdrop,.swal2-toast-shown)>[aria-hidden=true]{display:none}body.swal2-shown:not(.swal2-no-backdrop,.swal2-toast-shown) .swal2-container{position:static !important}}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:var(--swal2-container-padding);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:var(--swal2-backdrop)}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;place-self:start center}div:where(.swal2-container).swal2-top-end>.swal2-popup,div:where(.swal2-container).swal2-top-right>.swal2-popup{grid-column:3;place-self:start 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;place-self:center 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;place-self:center 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;place-self:end center}div:where(.swal2-container).swal2-bottom-end>.swal2-popup,div:where(.swal2-container).swal2-bottom-right>.swal2-popup{grid-column:3;grid-row:3;place-self:end 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:var(--swal2-width);max-width:100%;padding:var(--swal2-padding);border:var(--swal2-border);border-radius:var(--swal2-border-radius);background:var(--swal2-background);color:var(--swal2-color);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) div:where(.swal2-popup).swal2-draggable{cursor:grab}div:where(.swal2-container) div:where(.swal2-popup).swal2-draggable div:where(.swal2-icon){cursor:grab}div:where(.swal2-container) div:where(.swal2-popup).swal2-dragging{cursor:grabbing}div:where(.swal2-container) div:where(.swal2-popup).swal2-dragging div:where(.swal2-icon){cursor:grabbing}div:where(.swal2-container) h2:where(.swal2-title){position:relative;max-width:100%;margin:0;padding:var(--swal2-title-padding);color:inherit;font-size:1.875em;font-weight:600;text-align:center;text-transform:none;word-wrap:break-word;cursor:initial}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):where(.swal2-confirm){border:0;border-radius:.25em;background:initial;background-color:var(--swal2-confirm-button-background-color);color:#fff;font-size:1em}div:where(.swal2-container) button:where(.swal2-styled):where(.swal2-deny){border:0;border-radius:.25em;background:initial;background-color:var(--swal2-deny-button-background-color);color:#fff;font-size:1em}div:where(.swal2-container) button:where(.swal2-styled):where(.swal2-cancel){border:0;border-radius:.25em;background:initial;background-color:var(--swal2-cancel-button-background-color);color:#fff;font-size:1em}div:where(.swal2-container) button:where(.swal2-styled):focus-visible{outline:none;box-shadow:var(--swal2-action-button-outline)}div:where(.swal2-container) button:where(.swal2-styled)::-moz-focus-inner{border:0}div:where(.swal2-container) div:where(.swal2-footer){margin:1em 0 0;padding:1em 1em 0;border-top:1px solid var(--swal2-footer-border-color);color:inherit;font-size:1em;text-align:center;cursor:initial}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:var(--swal2-border-radius);border-bottom-left-radius:var(--swal2-border-radius)}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;cursor:initial}div:where(.swal2-container) button:where(.swal2-close){position:var(--swal2-close-button-position);inset:var(--swal2-close-button-inset);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:var(--swal2-close-button-transition);border:none;border-radius:var(--swal2-border-radius);outline:var(--swal2-close-button-outline);background:rgba(0,0,0,0);color:var(--swal2-close-button-color);font-family:monospace;font-size:var(--swal2-close-button-font-size);cursor:pointer;justify-self:end}div:where(.swal2-container) button:where(.swal2-close):hover{transform:var(--swal2-close-button-hover-transform);background:rgba(0,0,0,0);color:#f27474}div:where(.swal2-container) button:where(.swal2-close):focus-visible{outline:none;box-shadow:var(--swal2-close-button-focus-box-shadow)}div:where(.swal2-container) button:where(.swal2-close)::-moz-focus-inner{border:0}div:where(.swal2-container) div:where(.swal2-html-container){z-index:1;justify-content:center;margin:0;padding:var(--swal2-html-container-padding);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;cursor:initial}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:var(--swal2-input-background);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:var(--swal2-background)}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:var(--swal2-input-background);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:var(--swal2-input-background);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:var(--swal2-background);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:var(--swal2-validation-message-background);color:var(--swal2-validation-message-color);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:var(--swal2-progress-step-background);color:#fff}div:where(.swal2-container) .swal2-progress-steps .swal2-progress-step.swal2-active-progress-step~.swal2-progress-step-line{background:var(--swal2-progress-step-background)}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:.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:#f8bb86;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:#3fc3ee;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:#87adbd;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;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:var(--swal2-show-animation)}.swal2-hide{animation:var(--swal2-hide-animation)}.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}.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:var(--swal2-background);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-toast>*{grid-column:2}.swal2-toast h2:where(.swal2-title){margin:.5em 1em;padding:0;font-size:1em;text-align:initial}.swal2-toast .swal2-loading{justify-content:center}.swal2-toast input:where(.swal2-input){height:2em;margin:.5em;font-size:1em}.swal2-toast .swal2-validation-message{font-size:1em}.swal2-toast div:where(.swal2-footer){margin:.5em 0 0;padding:.5em 0 0;font-size:.8em}.swal2-toast button:where(.swal2-close){grid-column:3/3;grid-row:1/99;align-self:center;width:.8em;height:.8em;margin:0;font-size:2em}.swal2-toast div:where(.swal2-html-container){margin:.5em 1em;padding:0;overflow:initial;font-size:1em;text-align:initial}.swal2-toast div:where(.swal2-html-container):empty{padding:0}.swal2-toast .swal2-loader{grid-column:1;grid-row:1/99;align-self:center;width:2em;height:2em;margin:.25em}.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-toast .swal2-icon .swal2-icon-content{display:flex;align-items:center;font-size:1.8em;font-weight:bold}.swal2-toast .swal2-icon.swal2-success .swal2-success-ring{width:2em;height:2em}.swal2-toast .swal2-icon.swal2-error [class^=swal2-x-mark-line]{top:.875em;width:1.375em}.swal2-toast .swal2-icon.swal2-error [class^=swal2-x-mark-line][class$=left]{left:.3125em}.swal2-toast .swal2-icon.swal2-error [class^=swal2-x-mark-line][class$=right]{right:.3125em}.swal2-toast div:where(.swal2-actions){justify-content:flex-start;height:auto;margin:0;margin-top:.5em;padding:0 .5em}.swal2-toast button:where(.swal2-styled){margin:.25em .5em;padding:.4em .6em;font-size:1em}.swal2-toast .swal2-success{border-color:#a5dc86}.swal2-toast .swal2-success [class^=swal2-success-circular-line]{position:absolute;width:1.6em;height:3em;border-radius:50%}.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-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-toast .swal2-success .swal2-success-ring{width:2em;height:2em}.swal2-toast .swal2-success .swal2-success-fix{top:0;left:.4375em;width:.4375em;height:2.6875em}.swal2-toast .swal2-success [class^=swal2-success-line]{height:.3125em}.swal2-toast .swal2-success [class^=swal2-success-line][class$=tip]{top:1.125em;left:.1875em;width:.75em}.swal2-toast .swal2-success [class^=swal2-success-line][class$=long]{top:.9375em;right:.1875em;width:1.375em}.swal2-toast .swal2-success.swal2-icon-show .swal2-success-line-tip{animation:swal2-toast-animate-success-line-tip .75s}.swal2-toast .swal2-success.swal2-icon-show .swal2-success-line-long{animation:swal2-toast-animate-success-line-long .75s}.swal2-toast.swal2-show{animation:swal2-toast-show .5s}.swal2-toast.swal2-hide{animation:swal2-toast-hide .1s forwards}@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}}@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}}');const _i=()=>({confirm:async(t,n)=>{var r,i;(await Ce.fire({imageUrl:n==null?void 0:n.imageUrl,imageWidth:(r=n==null?void 0:n.image)==null?void 0:r.width,imageHeight:(i=n==null?void 0:n.image)==null?void 0:i.height,text:t,denyButtonText:(n==null?void 0:n.denyText)||"Non",confirmButtonText:(n==null?void 0:n.confirmText)||"Oui",showDenyButton:!0,showCloseButton:!0,reverseButtons:!0,customClass:{...(n==null?void 0:n.classes)??{},popup:"radius-m py-3 px-4",confirmButton:`v-btn v-btn--slim v-theme--light v-btn--density-default v-btn--size-large v-btn--variant-${n.confirmButtonVariant??"secondary"} n-btn ma-0`,denyButton:"v-btn v-btn--slim v-theme--light v-btn--density-default v-btn--size-large v-btn--variant-outlined n-btn ma-0",actions:"w-100 justify-end ga-2",image:"my-0",htmlContainer:"pa-0 p1-paragraph"}})).isConfirmed?n.onConfirm():n.onCancel&&n.onCancel()}});m.defined=rr,m.hexToRgb=ir,m.hexToRgba=je,m.hexToRgbaStyle=sr,m.isIOS=ar,m.isMobileDevice=lr,m.isSmallScreen=yt,m.key=or,m.numberToCssStyle=nr,m.useConfirm=_i,Object.defineProperty(m,Symbol.toStringTag,{value:"Module"})});
|
package/dist/main.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
export { numberToCssStyle } from './utils/style.utils';
|
|
2
2
|
export { key, defined, } from './utils/tools.utils';
|
|
3
3
|
export { hexToRgb, hexToRgba, hexToRgbaStyle } from './utils/colors.utils';
|
|
4
|
+
export * from './utils/device.utils';
|
|
4
5
|
export { useConfirm } from './composables/useConfirm';
|
|
5
6
|
export type { Nullable } from './types/nullable.types';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|