@sofiakb/elf-js 0.2.1 → 0.2.2-dev.2

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.
@@ -1,7 +1,4 @@
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 On(e){return In.call(e)}var Ln="[object Null]",Mn="[object Undefined]",et=ie?ie.toStringTag:void 0;function G(e){return e==null?e===void 0?Mn:Ln:et&&et in Object(e)?Sn(e):On(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 O(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(O(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]",Oo="[object Uint16Array]",Lo="[object Uint32Array]",f={};f[Eo]=f[Po]=f[$o]=f[Bo]=f[So]=f[jo]=f[Io]=f[Oo]=f[Lo]=!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=O($e),_o=O(Pe),Yo=O(Be),Ko=O(Se),Xo=O(Te),L=G;($e&&L(new $e(new ArrayBuffer(1)))!=bt||Pe&&L(new Pe)!=mt||Be&&L(Be.resolve())!=gt||Se&&L(new Se)!=ht||Te&&L(new Te)!=pt)&&(L=function(e){var t=G(e),n=t==Wo?e.constructor:void 0,o=n?O(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=L(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
- * sweetalert2 v11.19.1
3
- * Released under the MIT License.
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,Oe=e=>e&&typeof e.toPromise=="function",ee=e=>Oe(e)?e.toPromise():Promise.resolve(e),Le=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=`
1
+ (function(e,t){typeof exports==`object`&&typeof module<`u`?t(exports):typeof define==`function`&&define.amd?define([`exports`],t):(e=typeof globalThis<`u`?globalThis:e||self,t(e[`elf-js`]={}))})(this,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:`Module`});var t=Object.create,n=Object.defineProperty,r=Object.getOwnPropertyDescriptor,i=Object.getOwnPropertyNames,a=Object.getPrototypeOf,o=Object.prototype.hasOwnProperty,s=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),ee=(e,t,a,s)=>{if(t&&typeof t==`object`||typeof t==`function`)for(var ee=i(t),c=0,l=ee.length,u;c<l;c++)u=ee[c],!o.call(e,u)&&u!==a&&n(e,u,{get:(e=>t[e]).bind(null,u),enumerable:!(s=r(t,u))||s.enumerable});return e},c=(e,r,i)=>(i=e==null?{}:t(a(e)),ee(r||!e||!e.__esModule?n(i,`default`,{value:e,enumerable:!0}):i,e)),l=typeof global==`object`&&global&&global.Object===Object&&global,u=typeof self==`object`&&self&&self.Object===Object&&self,d=l||u||Function(`return this`)(),f=d.Symbol,p=Object.prototype,te=p.hasOwnProperty,ne=p.toString,m=f?f.toStringTag:void 0;function re(e){var t=te.call(e,m),n=e[m];try{e[m]=void 0;var r=!0}catch{}var i=ne.call(e);return r&&(t?e[m]=n:delete e[m]),i}var ie=Object.prototype.toString;function ae(e){return ie.call(e)}var oe=`[object Null]`,se=`[object Undefined]`,h=f?f.toStringTag:void 0;function g(e){return e==null?e===void 0?se:oe:h&&h in Object(e)?re(e):ae(e)}function _(e){return typeof e==`object`&&!!e}var v=Array.isArray;function y(e){var t=typeof e;return e!=null&&(t==`object`||t==`function`)}var ce=`[object AsyncFunction]`,le=`[object Function]`,ue=`[object GeneratorFunction]`,de=`[object Proxy]`;function fe(e){if(!y(e))return!1;var t=g(e);return t==le||t==ue||t==ce||t==de}var b=d[`__core-js_shared__`],x=function(){var e=/[^.]+$/.exec(b&&b.keys&&b.keys.IE_PROTO||``);return e?`Symbol(src)_1.`+e:``}();function S(e){return!!x&&x in e}var C=Function.prototype.toString;function w(e){if(e!=null){try{return C.call(e)}catch{}try{return e+``}catch{}}return``}var T=/[\\^$.*+?()[\]{}|]/g,E=/^\[object .+?Constructor\]$/,pe=Function.prototype,me=Object.prototype,he=pe.toString,ge=me.hasOwnProperty,_e=RegExp(`^`+he.call(ge).replace(T,`\\$&`).replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,`$1.*?`)+`$`);function ve(e){return!y(e)||S(e)?!1:(fe(e)?_e:E).test(w(e))}function ye(e,t){return e?.[t]}function D(e,t){var n=ye(e,t);return ve(n)?n:void 0}var O=D(d,`WeakMap`),be=9007199254740991;function k(e){return typeof e==`number`&&e>-1&&e%1==0&&e<=be}function xe(e){return e!=null&&k(e.length)&&!fe(e)}var Se=Object.prototype;function Ce(e){var t=e&&e.constructor;return e===(typeof t==`function`&&t.prototype||Se)}var A=`[object Arguments]`;function j(e){return _(e)&&g(e)==A}var M=Object.prototype,N=M.hasOwnProperty,P=M.propertyIsEnumerable,F=j(function(){return arguments}())?j:function(e){return _(e)&&N.call(e,`callee`)&&!P.call(e,`callee`)};function we(){return!1}var Te=typeof e==`object`&&e&&!e.nodeType&&e,I=Te&&typeof module==`object`&&module&&!module.nodeType&&module,L=I&&I.exports===Te?d.Buffer:void 0,Ee=(L?L.isBuffer:void 0)||we,De=`[object Arguments]`,Oe=`[object Array]`,ke=`[object Boolean]`,Ae=`[object Date]`,je=`[object Error]`,Me=`[object Function]`,Ne=`[object Map]`,Pe=`[object Number]`,R=`[object Object]`,Fe=`[object RegExp]`,Ie=`[object Set]`,Le=`[object String]`,Re=`[object WeakMap]`,ze=`[object ArrayBuffer]`,Be=`[object DataView]`,Ve=`[object Float32Array]`,He=`[object Float64Array]`,Ue=`[object Int8Array]`,We=`[object Int16Array]`,Ge=`[object Int32Array]`,Ke=`[object Uint8Array]`,qe=`[object Uint8ClampedArray]`,Je=`[object Uint16Array]`,Ye=`[object Uint32Array]`,z={};z[Ve]=z[He]=z[Ue]=z[We]=z[Ge]=z[Ke]=z[qe]=z[Je]=z[Ye]=!0,z[De]=z[Oe]=z[ze]=z[ke]=z[Be]=z[Ae]=z[je]=z[Me]=z[Ne]=z[Pe]=z[R]=z[Fe]=z[Ie]=z[Le]=z[Re]=!1;function Xe(e){return _(e)&&k(e.length)&&!!z[g(e)]}function Ze(e){return function(t){return e(t)}}var B=typeof e==`object`&&e&&!e.nodeType&&e,V=B&&typeof module==`object`&&module&&!module.nodeType&&module,Qe=V&&V.exports===B&&l.process,$e=function(){try{return V&&V.require&&V.require(`util`).types||Qe&&Qe.binding&&Qe.binding(`util`)}catch{}}(),et=$e&&$e.isTypedArray,tt=et?Ze(et):Xe;function nt(e,t){return function(n){return e(t(n))}}var rt=nt(Object.keys,Object),H=Object.prototype.hasOwnProperty;function it(e){if(!Ce(e))return rt(e);var t=[];for(var n in Object(e))H.call(e,n)&&n!=`constructor`&&t.push(n);return t}var U=D(d,`Map`),W=D(d,`DataView`),at=D(d,`Promise`),ot=D(d,`Set`),st=`[object Map]`,ct=`[object Object]`,lt=`[object Promise]`,ut=`[object Set]`,dt=`[object WeakMap]`,ft=`[object DataView]`,pt=w(W),mt=w(U),ht=w(at),gt=w(ot),_t=w(O),G=g;(W&&G(new W(new ArrayBuffer(1)))!=ft||U&&G(new U)!=st||at&&G(at.resolve())!=lt||ot&&G(new ot)!=ut||O&&G(new O)!=dt)&&(G=function(e){var t=g(e),n=t==ct?e.constructor:void 0,r=n?w(n):``;if(r)switch(r){case pt:return ft;case mt:return st;case ht:return lt;case gt:return ut;case _t:return dt}return t});var vt=G,yt=`[object Map]`,bt=`[object Set]`,xt=Object.prototype.hasOwnProperty;function St(e){if(e==null)return!0;if(xe(e)&&(v(e)||typeof e==`string`||typeof e.splice==`function`||Ee(e)||tt(e)||F(e)))return!e.length;var t=vt(e);if(t==yt||t==bt)return!e.size;if(Ce(e))return!it(e).length;for(var n in e)if(xt.call(e,n))return!1;return!0}function Ct(e){return e==null}var wt=e=>{if(St(e?.toString()))return null;let t=e?.toString()??``;return Ct(/calc\(([^)]+)\)/.exec(t)?.[1])?t.includes(`%`)||isNaN(Number(t))?isNaN(parseInt(t))?null:t:parseInt(t)+`px`:t},Tt=e=>btoa(encodeURI(`${e.name??e??`name`}-${e.id??-1}`)),Et=(e,t=!0)=>e!==void 0&&(t?e!==null:!0),Dt=(e,t)=>{if(e=e.replace(/^#/,``),!/^([0-9A-Fa-f]{6})$/.test(e))throw Error(`Invalid hex color code`);let n=parseInt(e,16),r=n>>16&255,i=n>>8&255,a=n&255;if(isNaN(r)||isNaN(i)||isNaN(a))throw Error(`Invalid hex color code`);return{r,g:i,b:a,a:t>1?t/100:t}},Ot=(e,t)=>{let{r:n,g:r,b:i,a}=Dt(e,t);return`rgba(${n}, ${r}, ${i}, ${a})`},kt=e=>{let{r:t,g:n,b:r}=Dt(e,1);return{r:t,g:n,b:r}},At=()=>{let e=navigator?.userAgentData?.platform??navigator?.platform,t=navigator.userAgent??``,n=[`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 n||r&&i},jt=(e=768)=>window.innerWidth<e,Mt=()=>/Android|webOS|iPhone|iPod|BlackBerry|IEMobile|Opera Mini|mobile/i.test(navigator.userAgent)&&jt(),Nt=c(s(((e,t)=>{(function(n,r){typeof e==`object`&&t!==void 0?t.exports=r():typeof define==`function`&&define.amd?define(r):(n=typeof globalThis<`u`?globalThis:n||self,n.Sweetalert2=r())})(e,(function(){"use strict";function e(e,t,n){if(typeof e==`function`?e===t:e.has(t))return arguments.length<3?t:n;throw TypeError(`Private element is not present on this object`)}function t(e,t){if(t.has(e))throw TypeError(`Cannot initialize the same private elements twice on an object`)}function n(t,n){return t.get(e(t,n))}function r(e,n,r){t(e,n),n.set(e,r)}function i(t,n,r){return t.set(e(t,n),r),r}let a={},o=()=>{a.previousActiveElement instanceof HTMLElement?(a.previousActiveElement.focus(),a.previousActiveElement=null):document.body&&document.body.focus()},s=e=>new Promise(t=>{if(!e)return t();let n=window.scrollX,r=window.scrollY;a.restoreFocusTimeout=setTimeout(()=>{o(),t()},100),window.scrollTo(n,r)}),ee=`swal2-`,c=`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`.split(`.`).reduce((e,t)=>(e[t]=ee+t,e),{}),l=[`success`,`warning`,`info`,`question`,`error`].reduce((e,t)=>(e[t]=ee+t,e),{}),u=`SweetAlert2:`,d=e=>e.charAt(0).toUpperCase()+e.slice(1),f=e=>{console.warn(`${u} ${typeof e==`object`?e.join(` `):e}`)},p=e=>{console.error(`${u} ${e}`)},te=[],ne=e=>{te.includes(e)||(te.push(e),f(e))},m=(e,t=null)=>{ne(`"${e}" is deprecated and will be removed in the next major release.${t?` Use "${t}" instead.`:``}`)},re=e=>typeof e==`function`?e():e,ie=e=>e&&typeof e.toPromise==`function`,ae=e=>ie(e)?e.toPromise():Promise.resolve(e),oe=e=>e&&Promise.resolve(e)===e,se=()=>navigator.userAgent.includes(`Firefox`),h=()=>document.body.querySelector(`.${c.container}`),g=e=>{let t=h();return t?t.querySelector(e):null},_=e=>g(`.${e}`),v=()=>_(c.popup),y=()=>_(c.icon),ce=()=>_(c[`icon-content`]),le=()=>_(c.title),ue=()=>_(c[`html-container`]),de=()=>_(c.image),fe=()=>_(c[`progress-steps`]),b=()=>_(c[`validation-message`]),x=()=>g(`.${c.actions} .${c.confirm}`),S=()=>g(`.${c.actions} .${c.cancel}`),C=()=>g(`.${c.actions} .${c.deny}`),w=()=>_(c[`input-label`]),T=()=>g(`.${c.loader}`),E=()=>_(c.actions),pe=()=>_(c.footer),me=()=>_(c[`timer-progress-bar`]),he=()=>_(c.close),ge=()=>{let e=v();if(!e)return[];let t=e.querySelectorAll(`[tabindex]:not([tabindex="-1"]):not([tabindex="0"])`),n=Array.from(t).sort((e,t)=>{let n=parseInt(e.getAttribute(`tabindex`)||`0`),r=parseInt(t.getAttribute(`tabindex`)||`0`);return n>r?1:n<r?-1:0}),r=e.querySelectorAll(`
5
2
  a[href],
6
3
  area[href],
7
4
  input:not([disabled]),
@@ -16,54 +13,55 @@
16
13
  audio[controls],
17
14
  video[controls],
18
15
  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"),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,Ot=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
- <div aria-labelledby="${s.title}" aria-describedby="${s["html-container"]}" class="${s.popup}" tabindex="-1">
21
- <button type="button" class="${s.close}"></button>
22
- <ul class="${s["progress-steps"]}"></ul>
23
- <div class="${s.icon}"></div>
24
- <img class="${s.image}" />
25
- <h2 class="${s.title}" id="${s.title}"></h2>
26
- <div class="${s["html-container"]}" id="${s["html-container"]}"></div>
27
- <input class="${s.input}" id="${s.input}" />
28
- <input type="file" class="${s.file}" />
29
- <div class="${s.range}">
16
+ `),i=Array.from(r).filter(e=>e.getAttribute(`tabindex`)!==`-1`);return[...new Set(n.concat(i))].filter(e=>L(e))},_e=()=>O(document.body,c.shown)&&!O(document.body,c[`toast-shown`])&&!O(document.body,c[`no-backdrop`]),ve=()=>{let e=v();return e?O(e,c.toast):!1},ye=()=>{let e=v();return e?e.hasAttribute(`data-loading`):!1},D=(e,t)=>{if(e.textContent=``,t){let n=new DOMParser().parseFromString(t,`text/html`),r=n.querySelector(`head`);r&&Array.from(r.childNodes).forEach(t=>{e.appendChild(t)});let i=n.querySelector(`body`);i&&Array.from(i.childNodes).forEach(t=>{t instanceof HTMLVideoElement||t instanceof HTMLAudioElement?e.appendChild(t.cloneNode(!0)):e.appendChild(t)})}},O=(e,t)=>{if(!t)return!1;let n=t.split(/\s+/);for(let t=0;t<n.length;t++)if(!e.classList.contains(n[t]))return!1;return!0},be=(e,t)=>{Array.from(e.classList).forEach(n=>{!Object.values(c).includes(n)&&!Object.values(l).includes(n)&&!Object.values(t.showClass||{}).includes(n)&&e.classList.remove(n)})},k=(e,t,n)=>{if(be(e,t),!t.customClass)return;let r=t.customClass[n];if(r){if(typeof r!=`string`&&!r.forEach){f(`Invalid type of customClass.${n}! Expected string or iterable object, got "${typeof r}"`);return}A(e,r)}},xe=(e,t)=>{if(!t)return null;switch(t){case`select`:case`textarea`:case`file`:return e.querySelector(`.${c.popup} > .${c[t]}`);case`checkbox`:return e.querySelector(`.${c.popup} > .${c.checkbox} input`);case`radio`:return e.querySelector(`.${c.popup} > .${c.radio} input:checked`)||e.querySelector(`.${c.popup} > .${c.radio} input:first-child`);case`range`:return e.querySelector(`.${c.popup} > .${c.range} input`);default:return e.querySelector(`.${c.popup} > .${c.input}`)}},Se=e=>{if(e.focus(),e.type!==`file`){let t=e.value;e.value=``,e.value=t}},Ce=(e,t,n)=>{if(!e||!t)return;let r=typeof t==`string`?t.split(/\s+/).filter(Boolean):t;(Array.isArray(e)?e:[e]).forEach(e=>{r.forEach(t=>{n?e.classList.add(t):e.classList.remove(t)})})},A=(e,t)=>{Ce(e,t,!0)},j=(e,t)=>{Ce(e,t,!1)},M=(e,t)=>{let n=Array.from(e.children);for(let e=0;e<n.length;e++){let r=n[e];if(r instanceof HTMLElement&&O(r,t))return r}},N=(e,t,n)=>{n===`${parseInt(`${n}`)}`&&(n=parseInt(n)),n||n===0?e.style.setProperty(t,typeof n==`number`?`${n}px`:n):e.style.removeProperty(t)},P=(e,t=`flex`)=>{e&&(e.style.display=t)},F=e=>{e&&(e.style.display=`none`)},we=(e,t=`block`)=>{e&&new MutationObserver(()=>{I(e,e.innerHTML,t)}).observe(e,{childList:!0,subtree:!0})},Te=(e,t,n,r)=>{let i=e.querySelector(t);i&&i.style.setProperty(n,r)},I=(e,t,n=`flex`)=>{t?P(e,n):F(e)},L=e=>!!(e&&(e.offsetWidth||e.offsetHeight||e.getClientRects().length)),Ee=()=>!L(x())&&!L(C())&&!L(S()),De=e=>e.scrollHeight>e.clientHeight,Oe=(e,t)=>{let n=e;for(;n&&n!==t;){if(De(n))return!0;n=n.parentElement}return!1},ke=e=>{let t=window.getComputedStyle(e),n=parseFloat(t.getPropertyValue(`animation-duration`)||`0`),r=parseFloat(t.getPropertyValue(`transition-duration`)||`0`);return n>0||r>0},Ae=(e,t=!1)=>{let n=me();n&&L(n)&&(t&&(n.style.transition=`none`,n.style.width=`100%`),setTimeout(()=>{n.style.transition=`width ${e/1e3}s linear`,n.style.width=`0%`},10))},je=()=>{let e=me();if(!e)return;let t=parseInt(window.getComputedStyle(e).width);e.style.removeProperty(`transition`),e.style.width=`100%`;let n=t/parseInt(window.getComputedStyle(e).width)*100;e.style.width=`${n}%`},Me=()=>typeof window>`u`||typeof document>`u`,Ne=`
17
+ <div aria-labelledby="${c.title}" aria-describedby="${c[`html-container`]}" class="${c.popup}" tabindex="-1">
18
+ <button type="button" class="${c.close}"></button>
19
+ <ul class="${c[`progress-steps`]}"></ul>
20
+ <div class="${c.icon}"></div>
21
+ <img class="${c.image}" />
22
+ <h2 class="${c.title}" id="${c.title}"></h2>
23
+ <div class="${c[`html-container`]}" id="${c[`html-container`]}"></div>
24
+ <input class="${c.input}" id="${c.input}" />
25
+ <input type="file" class="${c.file}" />
26
+ <div class="${c.range}">
30
27
  <input type="range" />
31
28
  <output></output>
32
29
  </div>
33
- <select class="${s.select}" id="${s.select}"></select>
34
- <div class="${s.radio}"></div>
35
- <label class="${s.checkbox}">
36
- <input type="checkbox" id="${s.checkbox}" />
37
- <span class="${s.label}"></span>
30
+ <select class="${c.select}" id="${c.select}"></select>
31
+ <div class="${c.radio}"></div>
32
+ <label class="${c.checkbox}">
33
+ <input type="checkbox" id="${c.checkbox}" />
34
+ <span class="${c.label}"></span>
38
35
  </label>
39
- <textarea class="${s.textarea}" id="${s.textarea}"></textarea>
40
- <div class="${s["validation-message"]}" id="${s["validation-message"]}"></div>
41
- <div class="${s.actions}">
42
- <div class="${s.loader}"></div>
43
- <button type="button" class="${s.confirm}"></button>
44
- <button type="button" class="${s.deny}"></button>
45
- <button type="button" class="${s.cancel}"></button>
36
+ <textarea class="${c.textarea}" id="${c.textarea}"></textarea>
37
+ <div class="${c[`validation-message`]}" id="${c[`validation-message`]}"></div>
38
+ <div class="${c.actions}">
39
+ <div class="${c.loader}"></div>
40
+ <button type="button" class="${c.confirm}"></button>
41
+ <button type="button" class="${c.deny}"></button>
42
+ <button type="button" class="${c.cancel}"></button>
46
43
  </div>
47
- <div class="${s.footer}"></div>
48
- <div class="${s["timer-progress-bar-container"]}">
49
- <div class="${s["timer-progress-bar"]}"></div>
44
+ <div class="${c.footer}"></div>
45
+ <div class="${c[`timer-progress-bar-container`]}">
46
+ <div class="${c[`timer-progress-bar`]}"></div>
50
47
  </div>
51
48
  </div>
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))},Or=(e,t)=>{const n=ne(),o=N();!n||!o||(!t.showConfirmButton&&!t.showDenyButton&&!t.showCancelButton?y(n):b(n),T(n,t,"actions"),Lr(n,o,t),A(o,t.loaderHtml||""),T(o,t,"loader"))};function Lr(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=Lt(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=Lt(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)}},Lt=e=>{const t=d();if(t)return j(t,s[e]||s.input)},fe=(e,t)=>{["string","number"].includes(typeof t)?e.value=`${t}`:Le(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
- <div class="swal2-success-circular-line-left"></div>
49
+ `.replace(/(^|\n)\s*/g,``),Pe=()=>{let e=h();return e?(e.remove(),j([document.documentElement,document.body],[c[`no-backdrop`],c[`toast-shown`],c[`has-column`]]),!0):!1},R=()=>{a.currentInstance&&a.currentInstance.resetValidationMessage()},Fe=()=>{let e=v();if(!e)return;let t=M(e,c.input),n=M(e,c.file),r=e.querySelector(`.${c.range} input`),i=e.querySelector(`.${c.range} output`),a=M(e,c.select),o=e.querySelector(`.${c.checkbox} input`),s=M(e,c.textarea);t&&(t.oninput=R),n&&(n.onchange=R),a&&(a.onchange=R),o&&(o.onchange=R),s&&(s.oninput=R),r&&i&&(r.oninput=()=>{R(),i.value=r.value},r.onchange=()=>{R(),i.value=r.value})},Ie=e=>{if(typeof e==`string`){let t=document.querySelector(e);if(!t)throw Error(`Target element "${e}" not found`);return t}return e},Le=e=>{let t=v();t&&(t.setAttribute(`role`,e.toast?`alert`:`dialog`),t.setAttribute(`aria-live`,e.toast?`polite`:`assertive`),e.toast||t.setAttribute(`aria-modal`,`true`))},Re=e=>{window.getComputedStyle(e).direction===`rtl`&&(A(h(),c.rtl),a.isRTL=!0)},ze=e=>{let t=Pe();if(Me()){p(`SweetAlert2 requires document to initialize`);return}let n=document.createElement(`div`);n.className=c.container,t&&A(n,c[`no-transition`]),D(n,Ne),n.dataset.swal2Theme=e.theme;let r=Ie(e.target||`body`);r.appendChild(n),e.topLayer&&(n.setAttribute(`popover`,``),n.showPopover()),Le(e),Re(r),Fe()},Be=(e,t)=>{e instanceof HTMLElement?t.appendChild(e):typeof e==`object`?Ve(e,t):e&&D(t,e)},Ve=(e,t)=>{`jquery`in e?He(t,e):D(t,e.toString())},He=(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))},Ue=(e,t)=>{let n=E(),r=T();!n||!r||(!t.showConfirmButton&&!t.showDenyButton&&!t.showCancelButton?F(n):P(n),k(n,t,`actions`),We(n,r,t),D(r,t.loaderHtml||``),k(r,t,`loader`))};function We(e,t,n){let r=x(),i=C(),a=S();!r||!i||!a||(qe(r,`confirm`,n),qe(i,`deny`,n),qe(a,`cancel`,n),Ge(r,i,a,n),n.reverseButtons&&(n.toast?(e.insertBefore(a,r),e.insertBefore(i,r)):(e.insertBefore(a,t),e.insertBefore(i,t),e.insertBefore(r,t))))}function Ge(e,t,n,r){if(!r.buttonsStyling){j([e,t,n],c.styled);return}A([e,t,n],c.styled),[[e,`confirm`,r.confirmButtonColor],[t,`deny`,r.denyButtonColor],[n,`cancel`,r.cancelButtonColor]].forEach(([e,t,n])=>{n&&e.style.setProperty(`--swal2-${t}-button-background-color`,n),Ke(e)})}function Ke(e){let t=window.getComputedStyle(e);if(t.getPropertyValue(`--swal2-action-button-focus-box-shadow`))return;let n=t.backgroundColor.replace(/rgba?\((\d+), (\d+), (\d+).*/,`rgba($1, $2, $3, 0.5)`);e.style.setProperty(`--swal2-action-button-focus-box-shadow`,t.getPropertyValue(`--swal2-outline`).replace(/ rgba\(.*/,` ${n}`))}function qe(e,t,n){I(e,n[`show${d(t)}Button`],`inline-block`),D(e,n[`${t}ButtonText`]||``),e.setAttribute(`aria-label`,n[`${t}ButtonAriaLabel`]||``),e.className=c[t],k(e,n,`${t}Button`)}let Je=(e,t)=>{let n=he();n&&(D(n,t.closeButtonHtml||``),k(n,t,`closeButton`),I(n,t.showCloseButton),n.setAttribute(`aria-label`,t.closeButtonAriaLabel||``))},Ye=(e,t)=>{let n=h();n&&(z(n,t.backdrop),Xe(n,t.position),Ze(n,t.grow),k(n,t,`container`))};function z(e,t){typeof t==`string`?e.style.background=t:t||A([document.documentElement,document.body],c[`no-backdrop`])}function Xe(e,t){t&&(t in c?A(e,c[t]):(f(`The "position" parameter is not valid, defaulting to "center"`),A(e,c.center)))}function Ze(e,t){t&&A(e,c[`grow-${t}`])}var B={innerParams:new WeakMap,domCache:new WeakMap,focusedElement:new WeakMap};let V=[`input`,`file`,`range`,`select`,`radio`,`checkbox`,`textarea`],Qe=(e,t)=>{let n=v();if(!n)return;let r=B.innerParams.get(e),i=!r||t.input!==r.input;V.forEach(e=>{let r=M(n,c[e]);r&&(tt(e,t.inputAttributes),r.className=c[e],i&&F(r))}),t.input&&(i&&$e(t),nt(t))},$e=e=>{if(!e.input)return;if(!W[e.input]){p(`Unexpected type of input! Expected ${Object.keys(W).join(` | `)}, got "${e.input}"`);return}let t=it(e.input);if(!t)return;let n=W[e.input](t,e);P(t),e.inputAutoFocus&&setTimeout(()=>{Se(n)})},et=e=>{for(let t=0;t<e.attributes.length;t++){let n=e.attributes[t].name;[`id`,`type`,`value`,`style`].includes(n)||e.removeAttribute(n)}},tt=(e,t)=>{let n=v();if(!n)return;let r=xe(n,e);if(r){et(r);for(let e in t)r.setAttribute(e,t[e])}},nt=e=>{if(!e.input)return;let t=it(e.input);t&&k(t,e,`input`)},rt=(e,t)=>{!e.placeholder&&t.inputPlaceholder&&(e.placeholder=t.inputPlaceholder)},H=(e,t,n)=>{if(n.inputLabel){let r=document.createElement(`label`),i=c[`input-label`];r.setAttribute(`for`,e.id),r.className=i,typeof n.customClass==`object`&&A(r,n.customClass.inputLabel),r.innerText=n.inputLabel,t.insertAdjacentElement(`beforebegin`,r)}},it=e=>{let t=v();if(t)return M(t,c[e]||c.input)},U=(e,t)=>{[`string`,`number`].includes(typeof t)?e.value=`${t}`:oe(t)||f(`Unexpected type of inputValue! Expected "string", "number" or "Promise", got "${typeof t}"`)},W={};W.text=W.email=W.password=W.number=W.tel=W.url=W.search=W.date=W[`datetime-local`]=W.time=W.week=W.month=(e,t)=>{let n=e;return U(n,t.inputValue),H(n,n,t),rt(n,t),n.type=t.input,n},W.file=(e,t)=>{let n=e;return H(n,n,t),rt(n,t),n},W.range=(e,t)=>{let n=e,r=n.querySelector(`input`),i=n.querySelector(`output`);return r&&(U(r,t.inputValue),r.type=t.input,H(r,e,t)),i&&U(i,t.inputValue),e},W.select=(e,t)=>{let n=e;if(n.textContent=``,t.inputPlaceholder){let e=document.createElement(`option`);D(e,t.inputPlaceholder),e.value=``,e.disabled=!0,e.selected=!0,n.appendChild(e)}return H(n,n,t),n},W.radio=e=>{let t=e;return t.textContent=``,e},W.checkbox=(e,t)=>{let n=v();if(!n)throw Error(`Popup not found`);let r=xe(n,`checkbox`);if(!r)throw Error(`Checkbox input not found`);r.value=`1`,r.checked=!!t.inputValue;let i=e.querySelector(`span`);if(i){let e=t.inputPlaceholder||t.inputLabel;e&&D(i,e)}return r},W.textarea=(e,t)=>{let n=e;U(n,t.inputValue),rt(n,t),H(n,n,t);let r=e=>parseInt(window.getComputedStyle(e).marginLeft)+parseInt(window.getComputedStyle(e).marginRight);return setTimeout(()=>{if(`MutationObserver`in window){let e=v();if(!e)return;let i=parseInt(window.getComputedStyle(e).width);new MutationObserver(()=>{if(!document.body.contains(n))return;let e=n.offsetWidth+r(n),a=v();a&&(e>i?a.style.width=`${e}px`:N(a,`width`,t.width))}).observe(n,{attributes:!0,attributeFilter:[`style`]})}}),n};let at=(e,t)=>{let n=ue();n&&(we(n),k(n,t,`htmlContainer`),t.html?(Be(t.html,n),P(n,`block`)):t.text?(n.textContent=t.text,P(n,`block`)):F(n),Qe(e,t))},ot=(e,t)=>{let n=pe();n&&(we(n),I(n,!!t.footer,`block`),t.footer&&Be(t.footer,n),k(n,t,`footer`))},st=(e,t)=>{let n=B.innerParams.get(e),r=y();if(r){if(n&&t.icon===n.icon){dt(r,t),ct(r,t);return}if(!t.icon&&!t.iconHtml){F(r);return}if(t.icon&&Object.keys(l).indexOf(t.icon)===-1){p(`Unknown icon! Expected "success", "error", "warning", "info" or "question", got "${t.icon}"`),F(r);return}P(r),dt(r,t),ct(r,t),A(r,t.showClass&&t.showClass.icon),window.matchMedia(`(prefers-color-scheme: dark)`).addEventListener(`change`,lt)}},ct=(e,t)=>{for(let[n,r]of Object.entries(l))t.icon!==n&&j(e,r);A(e,t.icon&&l[t.icon]),ft(e,t),lt(),k(e,t,`icon`)},lt=()=>{let e=v();if(!e)return;let t=window.getComputedStyle(e).getPropertyValue(`background-color`),n=e.querySelectorAll(`[class^=swal2-success-circular-line], .swal2-success-fix`);for(let e=0;e<n.length;e++)n[e].style.backgroundColor=t},ut=e=>`
50
+ ${e.animation?`<div class="swal2-success-circular-line-left"></div>`:``}
54
51
  <span class="swal2-success-line-tip"></span> <span class="swal2-success-line-long"></span>
55
- <div class="swal2-success-ring"></div> <div class="swal2-success-fix"></div>
56
- <div class="swal2-success-circular-line-right"></div>
57
- `,Gr=`
52
+ <div class="swal2-success-ring"></div>
53
+ ${e.animation?`<div class="swal2-success-fix"></div>`:``}
54
+ ${e.animation?`<div class="swal2-success-circular-line-right"></div>`:``}
55
+ `,dt=(e,t)=>{if(!t.icon&&!t.iconHtml)return;let n=e.innerHTML,r=``;t.iconHtml?r=pt(t.iconHtml):t.icon===`success`?(r=ut(t),n=n.replace(/ style=".*?"/g,``)):t.icon===`error`?r=`
58
56
  <span class="swal2-x-mark">
59
57
  <span class="swal2-x-mark-line-left"></span>
60
58
  <span class="swal2-x-mark-line-right"></span>
61
59
  </span>
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),Or(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=Ot(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()):Os(t,e),b(n),t.setAttribute("data-loading","true"),t.setAttribute("aria-busy","true"),t.focus()},Os=(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))},Ls=(e,t)=>{t.input==="select"||t.input==="radio"?zs(e,t):["text","email","number","tel","textarea"].some(n=>n===t.input)&&(Oe(t.inputValue)||Le(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)};Oe(t.inputOptions)||Le(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:"&times;",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;Li(t,n,e),setTimeout(()=>{Ii(t,n)},Tn),ze()&&(Oi(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)=>{Ot(t)?(e.style.overflowY="hidden",t.addEventListener("animationend",ve),t.addEventListener("transitionend",ve)):e.style.overflowY="auto"},Oi=(e,t,n)=>{ys(),t&&n!=="hidden"&&Es(n),setTimeout(()=>{e.scrollTop=0})},Li=(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.
60
+ `:t.icon&&(r=pt({question:`?`,warning:`!`,info:`i`}[t.icon])),n.trim()!==r.trim()&&D(e,r)},ft=(e,t)=>{if(t.iconColor){e.style.color=t.iconColor,e.style.borderColor=t.iconColor;for(let n of[`.swal2-success-line-tip`,`.swal2-success-line-long`,`.swal2-x-mark-line-left`,`.swal2-x-mark-line-right`])Te(e,n,`background-color`,t.iconColor);Te(e,`.swal2-success-ring`,`border-color`,t.iconColor)}},pt=e=>`<div class="${c[`icon-content`]}">${e}</div>`,mt=(e,t)=>{let n=de();if(n){if(!t.imageUrl){F(n);return}P(n,``),n.setAttribute(`src`,t.imageUrl),n.setAttribute(`alt`,t.imageAlt||``),N(n,`width`,t.imageWidth),N(n,`height`,t.imageHeight),n.className=c.image,k(n,t,`image`)}},ht=!1,gt=0,_t=0,G=0,vt=0,yt=e=>{e.addEventListener(`mousedown`,xt),document.body.addEventListener(`mousemove`,St),e.addEventListener(`mouseup`,Ct),e.addEventListener(`touchstart`,xt),document.body.addEventListener(`touchmove`,St),e.addEventListener(`touchend`,Ct)},bt=e=>{e.removeEventListener(`mousedown`,xt),document.body.removeEventListener(`mousemove`,St),e.removeEventListener(`mouseup`,Ct),e.removeEventListener(`touchstart`,xt),document.body.removeEventListener(`touchmove`,St),e.removeEventListener(`touchend`,Ct)},xt=e=>{let t=v();if(!t)return;let n=y();if(e.target===t||n&&n.contains(e.target)){ht=!0;let n=wt(e);gt=n.clientX,_t=n.clientY,G=parseInt(t.style.insetInlineStart)||0,vt=parseInt(t.style.insetBlockStart)||0,A(t,`swal2-dragging`)}},St=e=>{let t=v();if(t&&ht){let{clientX:n,clientY:r}=wt(e),i=n-gt;t.style.insetInlineStart=`${G+(a.isRTL?-i:i)}px`,t.style.insetBlockStart=`${vt+(r-_t)}px`}},Ct=()=>{let e=v();ht=!1,j(e,`swal2-dragging`)},wt=e=>{let t=e.type.startsWith(`touch`)?e.touches[0]:e;return{clientX:t.clientX,clientY:t.clientY}},Tt=(e,t)=>{let n=h(),r=v();if(!(!n||!r)){if(t.toast){N(n,`width`,t.width),r.style.width=`100%`;let e=T();e&&r.insertBefore(e,y())}else N(r,`width`,t.width);N(r,`padding`,t.padding),t.color&&(r.style.color=t.color),t.background&&(r.style.background=t.background),F(b()),Et(r,t),t.draggable&&!t.toast?(A(r,c.draggable),yt(r)):(j(r,c.draggable),bt(r))}},Et=(e,t)=>{let n=t.showClass||{};e.className=`${c.popup} ${L(e)?n.popup:``}`,t.toast?(A([document.documentElement,document.body],c[`toast-shown`]),A(e,c.toast)):A(e,c.modal),k(e,t,`popup`),typeof t.customClass==`string`&&A(e,t.customClass),t.icon&&A(e,c[`icon-${t.icon}`])},Dt=(e,t)=>{let n=fe();if(!n)return;let{progressSteps:r,currentProgressStep:i}=t;if(!r||r.length===0||i===void 0){F(n);return}P(n),n.textContent=``,i>=r.length&&f(`Invalid currentProgressStep parameter, it should be less than progressSteps.length (currentProgressStep like JS arrays starts from 0)`),r.forEach((e,a)=>{let o=Ot(e);if(n.appendChild(o),a===i&&A(o,c[`active-progress-step`]),a!==r.length-1){let e=kt(t);n.appendChild(e)}})},Ot=e=>{let t=document.createElement(`li`);return A(t,c[`progress-step`]),D(t,e),t},kt=e=>{let t=document.createElement(`li`);return A(t,c[`progress-step-line`]),e.progressStepsDistance&&N(t,`width`,e.progressStepsDistance),t},At=(e,t)=>{let n=le();n&&(we(n),I(n,!!(t.title||t.titleText),`block`),t.title&&Be(t.title,n),t.titleText&&(n.innerText=t.titleText),k(n,t,`title`))},jt=(e,t)=>{var n;Tt(e,t),Ye(e,t),Dt(e,t),st(e,t),mt(e,t),At(e,t),Je(e,t),at(e,t),Ue(e,t),ot(e,t);let r=v();typeof t.didRender==`function`&&r&&t.didRender(r),(n=a.eventEmitter)==null||n.emit(`didRender`,r)},Mt=()=>L(v()),Nt=()=>x()?.click(),Pt=()=>C()?.click(),Ft=()=>S()?.click(),K=Object.freeze({cancel:`cancel`,backdrop:`backdrop`,close:`close`,esc:`esc`,timer:`timer`}),It=e=>{if(e.keydownTarget&&e.keydownHandlerAdded&&e.keydownHandler){let t=e.keydownHandler;e.keydownTarget.removeEventListener(`keydown`,t,{capture:e.keydownListenerCapture}),e.keydownHandlerAdded=!1}},Lt=(e,t,n)=>{if(It(e),!t.toast){let r=e=>Vt(t,e,n);e.keydownHandler=r;let i=t.keydownListenerCapture?window:v();if(i){e.keydownTarget=i,e.keydownListenerCapture=t.keydownListenerCapture;let n=r;e.keydownTarget.addEventListener(`keydown`,n,{capture:e.keydownListenerCapture}),e.keydownHandlerAdded=!0}}},Rt=(e,t)=>{var n;let r=ge();return r.length?(e+=t,e===-2&&(e=r.length-1),e===r.length?e=0:e===-1&&(e=r.length-1),r[e].focus(),!(se()&&r[e]instanceof HTMLIFrameElement)):((n=v())==null||n.focus(),!0)},zt=[`ArrowRight`,`ArrowDown`],Bt=[`ArrowLeft`,`ArrowUp`],Vt=(e,t,n)=>{e&&(t.isComposing||t.keyCode===229||(e.stopKeydownPropagation&&t.stopPropagation(),t.key===`Enter`?Ht(t,e):t.key===`Tab`?Ut(t):[...zt,...Bt].includes(t.key)?Wt(t.key):t.key===`Escape`&&Gt(t,e,n)))},Ht=(e,t)=>{if(!re(t.allowEnterKey))return;let n=v();if(!n||!t.input)return;let r=xe(n,t.input);if(e.target&&r&&e.target instanceof HTMLElement&&e.target.outerHTML===r.outerHTML){if([`textarea`,`file`].includes(t.input))return;Nt(),e.preventDefault()}},Ut=e=>{let t=e.target,n=ge(),r=-1;for(let e=0;e<n.length;e++)if(t===n[e]){r=e;break}let i=!0;i=e.shiftKey?Rt(r,-1):Rt(r,1),e.stopPropagation(),i&&e.preventDefault()},Wt=e=>{let t=E(),n=x(),r=C(),i=S();if(!t||!n||!r||!i)return;let a=[n,r,i];if(document.activeElement instanceof HTMLElement&&!a.includes(document.activeElement))return;let o=zt.includes(e)?`nextElementSibling`:`previousElementSibling`,s=document.activeElement;if(s){for(let e=0;e<t.children.length;e++){if(s=s[o],!s)return;if(s instanceof HTMLButtonElement&&L(s))break}s instanceof HTMLButtonElement&&s.focus()}},Gt=(e,t,n)=>{e.preventDefault(),re(t.allowEscapeKey)&&n(K.esc)};var q={swalPromiseResolve:new WeakMap,swalPromiseReject:new WeakMap};let Kt=()=>{let e=h();Array.from(document.body.children).forEach(t=>{t.contains(e)||(t.hasAttribute(`aria-hidden`)&&t.setAttribute(`data-previous-aria-hidden`,t.getAttribute(`aria-hidden`)||``),t.setAttribute(`aria-hidden`,`true`))})},qt=()=>{Array.from(document.body.children).forEach(e=>{e.hasAttribute(`data-previous-aria-hidden`)?(e.setAttribute(`aria-hidden`,e.getAttribute(`data-previous-aria-hidden`)||``),e.removeAttribute(`data-previous-aria-hidden`)):e.removeAttribute(`aria-hidden`)})},Jt=typeof window<`u`&&!!window.GestureEvent,Yt=Jt&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream,Xt=()=>{if(Jt&&!O(document.body,c.iosfix)){let e=document.body.scrollTop;document.body.style.top=`${e*-1}px`,A(document.body,c.iosfix),Zt()}},Zt=()=>{let e=h();if(!e)return;let t;e.ontouchstart=e=>{t=Qt(e)},e.ontouchmove=e=>{t&&(e.preventDefault(),e.stopPropagation())}},Qt=e=>{let t=e.target,n=h(),r=ue();return!n||!r||$t(e)||en(e)?!1:t===n||!De(n)&&t instanceof HTMLElement&&!Oe(t,r)&&t.tagName!==`INPUT`&&t.tagName!==`TEXTAREA`&&!(De(r)&&r.contains(t))},$t=e=>!!(e.touches&&e.touches.length&&e.touches[0].touchType===`stylus`),en=e=>e.touches&&e.touches.length>1,tn=()=>{if(O(document.body,c.iosfix)){let e=parseInt(document.body.style.top,10);j(document.body,c.iosfix),document.body.style.top=``,document.body.scrollTop=e*-1}},nn=()=>{let e=document.createElement(`div`);e.className=c[`scrollbar-measure`],document.body.appendChild(e);let t=e.getBoundingClientRect().width-e.clientWidth;return document.body.removeChild(e),t},J=null,rn=e=>{J===null&&(document.body.scrollHeight>window.innerHeight||e===`scroll`)&&(J=parseInt(window.getComputedStyle(document.body).getPropertyValue(`padding-right`)),document.body.style.paddingRight=`${J+nn()}px`)},an=()=>{J!==null&&(document.body.style.paddingRight=`${J}px`,J=null)};function on(e,t,n,r){ve()?mn(e,r):(s(n).then(()=>mn(e,r)),It(a)),Jt?(t.setAttribute(`style`,`display:none !important`),t.removeAttribute(`class`),t.innerHTML=``):t.remove(),_e()&&(an(),tn(),qt()),sn()}function sn(){j([document.documentElement,document.body],[c.shown,c[`height-auto`],c[`no-backdrop`],c[`toast-shown`]])}function Y(e){e=dn(e);let t=q.swalPromiseResolve.get(this),n=cn(this);this.isAwaitingPromise?e.isDismissed||(un(this),t(e)):n&&t(e)}let cn=e=>{let t=v();if(!t)return!1;let n=B.innerParams.get(e);if(!n||O(t,n.hideClass.popup))return!1;j(t,n.showClass.popup),A(t,n.hideClass.popup);let r=h();return j(r,n.showClass.backdrop),A(r,n.hideClass.backdrop),fn(e,t,n),!0};function ln(e){let t=q.swalPromiseReject.get(this);un(this),t&&t(e)}let un=e=>{e.isAwaitingPromise&&(delete e.isAwaitingPromise,B.innerParams.get(e)||e._destroy())},dn=e=>e===void 0?{isConfirmed:!1,isDenied:!1,isDismissed:!0}:Object.assign({isConfirmed:!1,isDenied:!1,isDismissed:!1},e),fn=(e,t,n)=>{var r;let i=h(),o=ke(t);typeof n.willClose==`function`&&n.willClose(t),(r=a.eventEmitter)==null||r.emit(`willClose`,t),o&&i?pn(e,t,i,!!n.returnFocus,n.didClose):i&&on(e,i,!!n.returnFocus,n.didClose)},pn=(e,t,n,r,i)=>{a.swalCloseEventFinishedCallback=on.bind(null,e,n,r,i);let o=function(e){if(e.target===t){var n;(n=a.swalCloseEventFinishedCallback)==null||n.call(a),delete a.swalCloseEventFinishedCallback,t.removeEventListener(`animationend`,o),t.removeEventListener(`transitionend`,o)}};t.addEventListener(`animationend`,o),t.addEventListener(`transitionend`,o)},mn=(e,t)=>{setTimeout(()=>{var n;typeof t==`function`&&t.bind(e.params)(),(n=a.eventEmitter)==null||n.emit(`didClose`),e._destroy&&e._destroy()})},hn=e=>{let t=v();if(t||new li,t=v(),!t)return;let n=T();ve()?F(y()):gn(t,e),P(n),t.setAttribute(`data-loading`,`true`),t.setAttribute(`aria-busy`,`true`),t.focus()},gn=(e,t)=>{let n=E(),r=T();!n||!r||(!t&&L(x())&&(t=x()),P(n),t&&(F(t),r.setAttribute(`data-button-to-replace`,t.className),n.insertBefore(r,t)),A([e,n],c.loading))},_n=(e,t)=>{t.input===`select`||t.input===`radio`?Sn(e,t):[`text`,`email`,`number`,`tel`,`textarea`].some(e=>e===t.input)&&(ie(t.inputValue)||oe(t.inputValue))&&(hn(x()),Cn(e,t))},vn=(e,t)=>{let n=e.getInput();if(!n)return null;switch(t.input){case`checkbox`:return yn(n);case`radio`:return bn(n);case`file`:return xn(n);default:return t.inputAutoTrim?n.value.trim():n.value}},yn=e=>e.checked?1:0,bn=e=>e.checked?e.value:null,xn=e=>e.files&&e.files.length?e.getAttribute(`multiple`)===null?e.files[0]:e.files:null,Sn=(e,t)=>{let n=v();if(!n)return;let r=e=>{t.input===`select`?wn(n,En(e),t):t.input===`radio`&&Tn(n,En(e),t)};ie(t.inputOptions)||oe(t.inputOptions)?(hn(x()),ae(t.inputOptions).then(t=>{e.hideLoading(),r(t)})):typeof t.inputOptions==`object`?r(t.inputOptions):p(`Unexpected type of inputOptions! Expected object, Map or Promise, got ${typeof t.inputOptions}`)},Cn=(e,t)=>{let n=e.getInput();n&&(F(n),ae(t.inputValue).then(r=>{n.value=t.input===`number`?`${parseFloat(r)||0}`:`${r}`,P(n),n.focus(),e.hideLoading()}).catch(t=>{p(`Error in inputValue promise: ${t}`),n.value=``,P(n),n.focus(),e.hideLoading()}))};function wn(e,t,n){let r=M(e,c.select);if(!r)return;let i=(e,t,r)=>{let i=document.createElement(`option`);i.value=r,D(i,t),i.selected=Dn(r,n.inputValue),e.appendChild(i)};t.forEach(e=>{let t=e[0],n=e[1];if(Array.isArray(n)){let e=document.createElement(`optgroup`);e.label=t,e.disabled=!1,r.appendChild(e),n.forEach(t=>i(e,t[1],t[0]))}else i(r,n,t)}),r.focus()}function Tn(e,t,n){let r=M(e,c.radio);if(!r)return;t.forEach(e=>{let t=e[0],i=e[1],a=document.createElement(`input`),o=document.createElement(`label`);a.type=`radio`,a.name=c.radio,a.value=t,Dn(t,n.inputValue)&&(a.checked=!0);let s=document.createElement(`span`);D(s,i),s.className=c.label,o.appendChild(a),o.appendChild(s),r.appendChild(o)});let i=r.querySelectorAll(`input`);i.length&&i[0].focus()}let En=e=>(e instanceof Map?Array.from(e):Object.entries(e)).map(([e,t])=>[e,typeof t==`object`?En(t):t]),Dn=(e,t)=>!!t&&t!=null&&t.toString()===e.toString(),On=e=>{let t=B.innerParams.get(e);e.disableButtons(),t.input?jn(e,`confirm`):In(e,!0)},kn=e=>{let t=B.innerParams.get(e);e.disableButtons(),t.returnInputValueOnDeny?jn(e,`deny`):Nn(e,!1)},An=(e,t)=>{e.disableButtons(),t(K.cancel)},jn=(e,t)=>{let n=B.innerParams.get(e);if(!n.input){p(`The "input" parameter is needed to be set when using returnInputValueOn${d(t)}`);return}let r=e.getInput(),i=vn(e,n);n.inputValidator?Mn(e,i,t):r&&!r.checkValidity()?(e.enableButtons(),e.showValidationMessage(n.validationMessage||r.validationMessage)):t===`deny`?Nn(e,i):In(e,i)},Mn=(e,t,n)=>{let r=B.innerParams.get(e);e.disableInput(),Promise.resolve().then(()=>ae(r.inputValidator(t,r.validationMessage))).then(r=>{e.enableButtons(),e.enableInput(),r?e.showValidationMessage(r):n===`deny`?Nn(e,t):In(e,t)})},Nn=(e,t)=>{let n=B.innerParams.get(e);n.showLoaderOnDeny&&hn(C()),n.preDeny?(e.isAwaitingPromise=!0,Promise.resolve().then(()=>ae(n.preDeny(t,n.validationMessage))).then(n=>{n===!1?(e.hideLoading(),un(e)):e.close({isDenied:!0,value:n===void 0?t:n})}).catch(t=>Fn(e,t))):e.close({isDenied:!0,value:t})},Pn=(e,t)=>{e.close({isConfirmed:!0,value:t})},Fn=(e,t)=>{e.rejectPromise(t)},In=(e,t)=>{let n=B.innerParams.get(e);n.showLoaderOnConfirm&&hn(),n.preConfirm?(e.resetValidationMessage(),e.isAwaitingPromise=!0,Promise.resolve().then(()=>ae(n.preConfirm(t,n.validationMessage))).then(n=>{L(b())||n===!1?(e.hideLoading(),un(e)):Pn(e,n===void 0?t:n)}).catch(t=>Fn(e,t))):Pn(e,t)};function Ln(){let e=B.innerParams.get(this);if(!e)return;let t=B.domCache.get(this);F(t.loader),ve()?e.icon&&P(y()):Rn(t),j([t.popup,t.actions],c.loading),t.popup.removeAttribute(`aria-busy`),t.popup.removeAttribute(`data-loading`),t.confirmButton.disabled=!1,t.denyButton.disabled=!1,t.cancelButton.disabled=!1;let n=B.focusedElement.get(this);n instanceof HTMLElement&&document.activeElement===document.body&&n.focus(),B.focusedElement.delete(this)}let Rn=e=>{let t=e.loader.getAttribute(`data-button-to-replace`),n=t?e.popup.getElementsByClassName(t):[];n.length?P(n[0],`inline-block`):Ee()&&F(e.actions)};function zn(){let e=B.innerParams.get(this),t=B.domCache.get(this);return t?xe(t.popup,e.input):null}function Bn(e,t,n){let r=B.domCache.get(e);t.forEach(e=>{r[e].disabled=n})}function Vn(e,t){let n=v();if(!(!n||!e))if(e.type===`radio`){let e=n.querySelectorAll(`[name="${c.radio}"]`);for(let n=0;n<e.length;n++)e[n].disabled=t}else e.disabled=t}function Hn(){Bn(this,[`confirmButton`,`denyButton`,`cancelButton`],!1);let e=B.focusedElement.get(this);e instanceof HTMLElement&&document.activeElement===document.body&&e.focus(),B.focusedElement.delete(this)}function Un(){B.focusedElement.set(this,document.activeElement),Bn(this,[`confirmButton`,`denyButton`,`cancelButton`],!0)}function Wn(){Vn(this.getInput(),!1)}function Gn(){Vn(this.getInput(),!0)}function Kn(e){let t=B.domCache.get(this),n=B.innerParams.get(this);D(t.validationMessage,e),t.validationMessage.className=c[`validation-message`],n.customClass&&n.customClass.validationMessage&&A(t.validationMessage,n.customClass.validationMessage),P(t.validationMessage);let r=this.getInput();r&&(r.setAttribute(`aria-invalid`,`true`),r.setAttribute(`aria-describedby`,c[`validation-message`]),Se(r),A(r,c.inputerror))}function qn(){let e=B.domCache.get(this);e.validationMessage&&F(e.validationMessage);let t=this.getInput();t&&(t.removeAttribute(`aria-invalid`),t.removeAttribute(`aria-describedby`),j(t,c.inputerror))}let X={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:`&times;`,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,topLayer:!1},Jn=`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`.split(`.`),Yn={allowEnterKey:void 0},Xn=[`allowOutsideClick`,`allowEnterKey`,`backdrop`,`draggable`,`focusConfirm`,`focusDeny`,`focusCancel`,`returnFocus`,`heightAuto`,`keydownListenerCapture`],Zn=e=>Object.prototype.hasOwnProperty.call(X,e),Qn=e=>Jn.indexOf(e)!==-1,$n=e=>Yn[e],er=e=>{Zn(e)||f(`Unknown parameter "${e}"`)},tr=e=>{Xn.includes(e)&&f(`The parameter "${e}" is incompatible with toasts`)},nr=e=>{let t=$n(e);t&&m(e,t)},rr=e=>{e.backdrop===!1&&e.allowOutsideClick&&f('"allowOutsideClick" parameter requires `backdrop` parameter to be set to `true`'),e.theme&&![`light`,`dark`,`auto`,`minimal`,`borderless`,`bootstrap-4`,`bootstrap-4-light`,`bootstrap-4-dark`,`bootstrap-5`,`bootstrap-5-light`,`bootstrap-5-dark`,`material-ui`,`material-ui-light`,`material-ui-dark`,`embed-iframe`,`bulma`,`bulma-light`,`bulma-dark`].includes(e.theme)&&f(`Invalid theme "${e.theme}"`);for(let t in e)er(t),e.toast&&tr(t),nr(t)};function ir(e){let t=h(),n=v(),r=B.innerParams.get(this);if(!n||O(n,r.hideClass.popup)){f(`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}let i=ar(e),a=Object.assign({},r,i);rr(a),t&&(t.dataset.swal2Theme=a.theme),jt(this,a),B.innerParams.set(this,a),Object.defineProperties(this,{params:{value:Object.assign({},this.params,e),writable:!1,enumerable:!0}})}let ar=e=>{let t={};return Object.keys(e).forEach(n=>{Qn(n)?t[n]=e[n]:f(`Invalid parameter to update: ${n}`)}),t};function or(){var e;let t=B.domCache.get(this),n=B.innerParams.get(this);if(!n){cr(this);return}t.popup&&a.swalCloseEventFinishedCallback&&(a.swalCloseEventFinishedCallback(),delete a.swalCloseEventFinishedCallback),typeof n.didDestroy==`function`&&n.didDestroy(),(e=a.eventEmitter)==null||e.emit(`didDestroy`),sr(this)}let sr=e=>{cr(e),delete e.params,delete a.keydownHandler,delete a.keydownTarget,delete a.currentInstance},cr=e=>{e.isAwaitingPromise?(lr(B,e),e.isAwaitingPromise=!0):(lr(q,e),lr(B,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)},lr=(e,t)=>{for(let n in e)e[n].delete(t)};var ur=Object.freeze({__proto__:null,_destroy:or,close:Y,closeModal:Y,closePopup:Y,closeToast:Y,disableButtons:Un,disableInput:Gn,disableLoading:Ln,enableButtons:Hn,enableInput:Wn,getInput:zn,handleAwaitingPromise:un,hideLoading:Ln,rejectPromise:ln,resetValidationMessage:qn,showValidationMessage:Kn,update:ir});let dr=(e,t,n)=>{e.toast?fr(e,t,n):(hr(t),gr(t),_r(e,t,n))},fr=(e,t,n)=>{t.popup.onclick=()=>{e&&(pr(e)||e.timer||e.input)||n(K.close)}},pr=e=>!!(e.showConfirmButton||e.showDenyButton||e.showCancelButton||e.showCloseButton),mr=!1,hr=e=>{e.popup.onmousedown=()=>{e.container.onmouseup=function(t){e.container.onmouseup=()=>{},t.target===e.container&&(mr=!0)}}},gr=e=>{e.container.onmousedown=t=>{t.target===e.container&&t.preventDefault(),e.popup.onmouseup=function(t){e.popup.onmouseup=()=>{},(t.target===e.popup||t.target instanceof HTMLElement&&e.popup.contains(t.target))&&(mr=!0)}}},_r=(e,t,n)=>{t.container.onclick=r=>{if(mr){mr=!1;return}r.target===t.container&&re(e.allowOutsideClick)&&n(K.backdrop)}},vr=e=>typeof e==`object`&&!!e&&`jquery`in e,yr=e=>e instanceof Element||vr(e),br=e=>{let t={};return typeof e[0]==`object`&&!yr(e[0])?Object.assign(t,e[0]):[`title`,`html`,`icon`].forEach((n,r)=>{let i=e[r];typeof i==`string`||yr(i)?t[n]=i:i!==void 0&&p(`Unexpected type of ${n}! Expected "string" or "Element", got ${typeof i}`)}),t};function xr(...e){return new this(...e)}function Sr(e){class t extends this{_main(t,n){return super._main(t,Object.assign({},e,n))}}return t}let Cr=()=>a.timeout&&a.timeout.getTimerLeft(),wr=()=>{if(a.timeout)return je(),a.timeout.stop()},Tr=()=>{if(a.timeout){let e=a.timeout.start();return Ae(e),e}},Er=()=>{let e=a.timeout;return e&&(e.running?wr():Tr())},Dr=e=>{if(a.timeout){let t=a.timeout.increase(e);return Ae(t,!0),t}},Or=()=>!!(a.timeout&&a.timeout.isRunning()),kr=!1,Ar={};function jr(e=`data-swal-template`){Ar[e]=this,kr||=(document.body.addEventListener(`click`,Mr),!0)}let Mr=e=>{for(let t=e.target;t&&t!==document;t=t.parentNode)for(let e in Ar){let n=t.getAttribute&&t.getAttribute(e);if(n){Ar[e].fire({template:n});return}}};class Nr{constructor(){this.events={}}_getHandlersByEventName(e){return this.events[e]===void 0&&(this.events[e]=[]),this.events[e]}on(e,t){let n=this._getHandlersByEventName(e);n.includes(t)||n.push(t)}once(e,t){let n=(...r)=>{this.removeListener(e,n),t.apply(this,r)};this.on(e,n)}emit(e,...t){this._getHandlersByEventName(e).forEach(e=>{try{e.apply(this,t)}catch(e){console.error(e)}})}removeListener(e,t){let n=this._getHandlersByEventName(e),r=n.indexOf(t);r>-1&&n.splice(r,1)}removeAllListeners(e){this.events[e]!==void 0&&(this.events[e].length=0)}reset(){this.events={}}}a.eventEmitter=new Nr;var Pr=Object.freeze({__proto__:null,argsToParams:br,bindClickHandler:jr,clickCancel:Ft,clickConfirm:Nt,clickDeny:Pt,enableLoading:hn,fire:xr,getActions:E,getCancelButton:S,getCloseButton:he,getConfirmButton:x,getContainer:h,getDenyButton:C,getFocusableElements:ge,getFooter:pe,getHtmlContainer:ue,getIcon:y,getIconContent:ce,getImage:de,getInputLabel:w,getLoader:T,getPopup:v,getProgressSteps:fe,getTimerLeft:Cr,getTimerProgressBar:me,getTitle:le,getValidationMessage:b,increaseTimer:Dr,isDeprecatedParameter:$n,isLoading:ye,isTimerRunning:Or,isUpdatableParameter:Qn,isValidParameter:Zn,isVisible:Mt,mixin:Sr,off:(e,t)=>{if(a.eventEmitter){if(!e){a.eventEmitter.reset();return}t?a.eventEmitter.removeListener(e,t):a.eventEmitter.removeAllListeners(e)}},on:(e,t)=>{a.eventEmitter&&a.eventEmitter.on(e,t)},once:(e,t)=>{a.eventEmitter&&a.eventEmitter.once(e,t)},resumeTimer:Tr,showLoading:hn,stopTimer:wr,toggleTimer:Er});class Fr{constructor(e,t){this.callback=e,this.remaining=t,this.running=!1,this.start()}start(){return this.running||(this.running=!0,this.started=new Date,this.id=setTimeout(this.callback,this.remaining)),this.remaining}stop(){return this.started&&this.running&&(this.running=!1,clearTimeout(this.id),this.remaining-=new Date().getTime()-this.started.getTime()),this.remaining}increase(e){let t=this.running;return t&&this.stop(),this.remaining+=e,t&&this.start(),this.remaining}getTimerLeft(){return this.running&&(this.stop(),this.start()),this.remaining}isRunning(){return this.running}}let Ir=[`swal-title`,`swal-html`,`swal-footer`],Lr=e=>{let t=typeof e.template==`string`?document.querySelector(e.template):e.template;if(!t)return{};let n=t.content;return Gr(n),Object.assign(Rr(n),zr(n),Br(n),Vr(n),Hr(n),Ur(n),Wr(n,Ir))},Rr=e=>{let t={};return Array.from(e.querySelectorAll(`swal-param`)).forEach(e=>{Z(e,[`name`,`value`]);let n=e.getAttribute(`name`),r=e.getAttribute(`value`);!n||!r||(n in X&&typeof X[n]==`boolean`?t[n]=r!==`false`:n in X&&typeof X[n]==`object`?t[n]=JSON.parse(r):t[n]=r)}),t},zr=e=>{let t={};return Array.from(e.querySelectorAll(`swal-function-param`)).forEach(e=>{let n=e.getAttribute(`name`),r=e.getAttribute(`value`);!n||!r||(t[n]=Function(`return ${r}`)())}),t},Br=e=>{let t={};return Array.from(e.querySelectorAll(`swal-button`)).forEach(e=>{Z(e,[`type`,`color`,`aria-label`]);let n=e.getAttribute(`type`);if(!n||![`confirm`,`cancel`,`deny`].includes(n))return;t[`${n}ButtonText`]=e.innerHTML,t[`show${d(n)}Button`]=!0;let r=e.getAttribute(`color`);r!==null&&(t[`${n}ButtonColor`]=r);let i=e.getAttribute(`aria-label`);i!==null&&(t[`${n}ButtonAriaLabel`]=i)}),t},Vr=e=>{let t={},n=e.querySelector(`swal-image`);if(n){Z(n,[`src`,`width`,`height`,`alt`]);let e=n.getAttribute(`src`);e!==null&&(t.imageUrl=e||void 0);let r=n.getAttribute(`width`);r!==null&&(t.imageWidth=r||void 0);let i=n.getAttribute(`height`);i!==null&&(t.imageHeight=i||void 0);let a=n.getAttribute(`alt`);a!==null&&(t.imageAlt=a||void 0)}return t},Hr=e=>{let 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},Ur=e=>{let 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`)));let r=Array.from(e.querySelectorAll(`swal-input-option`));return r.length&&(t.inputOptions={},r.forEach(e=>{Z(e,[`value`]);let n=e.getAttribute(`value`);if(!n)return;let r=e.innerHTML;t.inputOptions[n]=r})),t},Wr=(e,t)=>{let n={};for(let r in t){let i=t[r],a=e.querySelector(i);a&&(Z(a,[]),n[i.replace(/^swal-/,``)]=a.innerHTML.trim())}return n},Gr=e=>{let t=Ir.concat([`swal-param`,`swal-function-param`,`swal-button`,`swal-image`,`swal-icon`,`swal-input`,`swal-input-option`]);Array.from(e.children).forEach(e=>{let n=e.tagName.toLowerCase();t.includes(n)||f(`Unrecognized element <${n}>`)})},Z=(e,t)=>{Array.from(e.attributes).forEach(n=>{t.indexOf(n.name)===-1&&f([`Unrecognized attribute "${n.name}" on <${e.tagName.toLowerCase()}>.`,`${t.length?`Allowed attributes are: ${t.join(`, `)}`:`To set the value, use HTML within the element.`}`])})},Kr=e=>{var t,n;let r=h(),i=v();if(!r||!i)return;typeof e.willOpen==`function`&&e.willOpen(i),(t=a.eventEmitter)==null||t.emit(`willOpen`,i);let o=window.getComputedStyle(document.body).overflowY;if(Xr(r,i,e),setTimeout(()=>{Jr(r,i)},10),_e()&&(Yr(r,e.scrollbarPadding===void 0?!1:e.scrollbarPadding,o),Kt()),Yt&&e.backdrop===!1&&i.scrollHeight>r.clientHeight&&(r.style.pointerEvents=`auto`),!ve()&&!a.previousActiveElement&&(a.previousActiveElement=document.activeElement),typeof e.didOpen==`function`){let t=e.didOpen;setTimeout(()=>t(i))}(n=a.eventEmitter)==null||n.emit(`didOpen`,i)},qr=e=>{let t=v();if(!t||e.target!==t)return;let n=h();n&&(t.removeEventListener(`animationend`,qr),t.removeEventListener(`transitionend`,qr),n.style.overflowY=`auto`,j(n,c[`no-transition`]))},Jr=(e,t)=>{ke(t)?(e.style.overflowY=`hidden`,t.addEventListener(`animationend`,qr),t.addEventListener(`transitionend`,qr)):e.style.overflowY=`auto`},Yr=(e,t,n)=>{Xt(),t&&n!==`hidden`&&rn(n),setTimeout(()=>{e.scrollTop=0})},Xr=(e,t,n)=>{var r;(r=n.showClass)!=null&&r.backdrop&&A(e,n.showClass.backdrop),n.animation?(t.style.setProperty(`opacity`,`0`,`important`),P(t,`grid`),setTimeout(()=>{var e;(e=n.showClass)!=null&&e.popup&&A(t,n.showClass.popup),t.style.removeProperty(`opacity`)},10)):P(t,`grid`),A([document.documentElement,document.body],c.shown),n.heightAuto&&n.backdrop&&!n.toast&&A([document.documentElement,document.body],c[`height-auto`])};var Zr={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 Qr(e){e.inputValidator||(e.input===`email`&&(e.inputValidator=Zr.email),e.input===`url`&&(e.inputValidator=Zr.url))}function $r(e){(!e.target||typeof e.target==`string`&&!document.querySelector(e.target)||typeof e.target!=`string`&&!e.target.appendChild)&&(f(`Target parameter is not valid, defaulting to "body"`),e.target=`body`)}function ei(e){Qr(e),e.showLoaderOnConfirm&&!e.preConfirm&&f(`showLoaderOnConfirm is set to true, but preConfirm is not defined.
63
61
  showLoaderOnConfirm should be used together with preConfirm, see usage example:
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),Ls(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=(e,t="black")=>{if(!e.trim())return"";if(Ki(e)){const i=Yi(e);if(!i)return"";e=i}const o=e.replace(/fill="(?!none)[^"]*"/gi,`fill="${t}"`).replace(/stroke="(?!none)[^"]*"/gi,`stroke="${t}"`);return`data:image/svg+xml;charset=UTF-8,${encodeURIComponent(o).replace(/'/g,"%27").replace(/"/g,"%22")}`},Yi=e=>{if(!e.startsWith("data:image/svg+xml"))return null;const t=e.indexOf(",");if(t===-1)return null;const n=e.slice(t+1);if(e.includes(";charset=UTF-8,"))try{return decodeURIComponent(n)}catch{return null}if(e.includes(";base64,"))try{return atob(n)}catch{return null}return null},Ki=e=>/^data:image\/(svg\+xml|png|jpeg|jpg|gif|webp);/i.test(e),Xi=`<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="icon icon-tabler icon-tabler-question-mark" viewBox="0 0 24 24">
62
+ https://sweetalert2.github.io/#ajax-request`),$r(e),typeof e.title==`string`&&(e.title=e.title.split(`
63
+ `).join(`<br />`)),ze(e)}let Q;var ti=new WeakMap;class ${constructor(...e){r(this,ti,Promise.resolve({isConfirmed:!1,isDenied:!1,isDismissed:!0})),!(typeof window>`u`)&&(Q=this,this.params=Object.freeze(this.constructor.argsToParams(e)),this.isAwaitingPromise=!1,i(ti,this,this._main(Q.params)))}_main(e,t={}){if(rr(Object.assign({},t,e)),a.currentInstance){let e=q.swalPromiseResolve.get(a.currentInstance),{isAwaitingPromise:t}=a.currentInstance;a.currentInstance._destroy(),t||e({isDismissed:!0}),_e()&&qt()}a.currentInstance=Q;let n=ri(e,t);ei(n),Object.freeze(n),a.timeout&&(a.timeout.stop(),delete a.timeout),clearTimeout(a.restoreFocusTimeout);let r=ii(Q);return jt(Q,n),B.innerParams.set(Q,n),ni(Q,r,n)}then(e){return n(ti,this).then(e)}finally(e){return n(ti,this).finally(e)}}let ni=(e,t,n)=>new Promise((r,i)=>{let o=t=>{e.close({isDismissed:!0,dismiss:t,isConfirmed:!1,isDenied:!1})};q.swalPromiseResolve.set(e,r),q.swalPromiseReject.set(e,i),t.confirmButton.onclick=()=>{On(e)},t.denyButton.onclick=()=>{kn(e)},t.cancelButton.onclick=()=>{An(e,o)},t.closeButton.onclick=()=>{o(K.close)},dr(n,t,o),Lt(a,n,o),_n(e,n),Kr(n),ai(a,n,o),oi(t,n),setTimeout(()=>{t.container.scrollTop=0})}),ri=(e,t)=>{let n=Lr(e),r=Object.assign({},X,t,n,e);return r.showClass=Object.assign({},X.showClass,r.showClass),r.hideClass=Object.assign({},X.hideClass,r.hideClass),r.animation===!1&&(r.showClass={backdrop:`swal2-noanimation`},r.hideClass={}),r},ii=e=>{let t={popup:v(),container:h(),actions:E(),confirmButton:x(),denyButton:C(),cancelButton:S(),loader:T(),closeButton:he(),validationMessage:b(),progressSteps:fe()};return B.domCache.set(e,t),t},ai=(e,t,n)=>{let r=me();F(r),t.timer&&(e.timeout=new Fr(()=>{n(`timer`),delete e.timeout},t.timer),t.timerProgressBar&&r&&(P(r),k(r,t,`timerProgressBar`),setTimeout(()=>{e.timeout&&e.timeout.running&&Ae(t.timer)})))},oi=(e,t)=>{if(!t.toast){if(!re(t.allowEnterKey)){m(`allowEnterKey`,`preConfirm: () => false`),e.popup.focus();return}si(e)||ci(e,t)||Rt(-1,1)}},si=e=>{let t=Array.from(e.popup.querySelectorAll(`[autofocus]`));for(let e of t)if(e instanceof HTMLElement&&L(e))return e.focus(),!0;return!1},ci=(e,t)=>t.focusDeny&&L(e.denyButton)?(e.denyButton.focus(),!0):t.focusCancel&&L(e.cancelButton)?(e.cancelButton.focus(),!0):t.focusConfirm&&L(e.confirmButton)?(e.confirmButton.focus(),!0):!1;$.prototype.disableButtons=Un,$.prototype.enableButtons=Hn,$.prototype.getInput=zn,$.prototype.disableInput=Gn,$.prototype.enableInput=Wn,$.prototype.hideLoading=Ln,$.prototype.disableLoading=Ln,$.prototype.showValidationMessage=Kn,$.prototype.resetValidationMessage=qn,$.prototype.close=Y,$.prototype.closePopup=Y,$.prototype.closeModal=Y,$.prototype.closeToast=Y,$.prototype.rejectPromise=ln,$.prototype.update=ir,$.prototype._destroy=or,Object.assign($,Pr),Object.keys(ur).forEach(e=>{$[e]=function(...t){if(Q&&Q[e])return Q[e](...t)}}),$.DismissReason=K,$.version=`11.26.24`;let li=$;return li.default=li,li})),e!==void 0&&e.Sweetalert2&&(e.swal=e.sweetAlert=e.Swal=e.SweetAlert=e.Sweetalert2),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-backdrop-transition: background-color 0.15s;--swal2-width: 32em;--swal2-padding: 0 0 1.25em;--swal2-border: none;--swal2-border-radius: 0.3125rem;--swal2-background: white;--swal2-color: #545454;--swal2-show-animation: swal2-show 0.3s;--swal2-hide-animation: swal2-hide 0.15s forwards;--swal2-icon-zoom: 1;--swal2-icon-animations: true;--swal2-title-padding: 0.8em 1em 0;--swal2-html-container-padding: 1em 1.6em 0.3em;--swal2-input-border: 1px solid #d9d9d9;--swal2-input-border-radius: 0.1875em;--swal2-input-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.06), 0 0 0 3px transparent;--swal2-input-background: transparent;--swal2-input-transition: border-color 0.2s, box-shadow 0.2s;--swal2-input-hover-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.06), 0 0 0 3px transparent;--swal2-input-focus-border: 1px solid #b4dbed;--swal2-input-focus-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.06), 0 0 0 3px rgba(100, 150, 200, 0.5);--swal2-progress-step-background: #add8e6;--swal2-validation-message-background: #f0f0f0;--swal2-validation-message-color: #666;--swal2-footer-border-color: #eee;--swal2-footer-background: transparent;--swal2-footer-color: inherit;--swal2-timer-progress-bar-background: rgba(0, 0, 0, 0.3);--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.2s, box-shadow 0.2s;--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-actions-justify-content: center;--swal2-actions-width: auto;--swal2-actions-margin: 1.25em auto 0;--swal2-actions-padding: 0;--swal2-actions-border-radius: 0;--swal2-actions-background: transparent;--swal2-action-button-transition: background-color 0.2s, box-shadow 0.2s;--swal2-action-button-hover: black 10%;--swal2-action-button-active: black 10%;--swal2-confirm-button-box-shadow: none;--swal2-confirm-button-border-radius: 0.25em;--swal2-confirm-button-background-color: #7066e0;--swal2-confirm-button-color: #fff;--swal2-deny-button-box-shadow: none;--swal2-deny-button-border-radius: 0.25em;--swal2-deny-button-background-color: #dc3741;--swal2-deny-button-color: #fff;--swal2-cancel-button-box-shadow: none;--swal2-cancel-button-border-radius: 0.25em;--swal2-cancel-button-background-color: #6e7881;--swal2-cancel-button-color: #fff;--swal2-toast-show-animation: swal2-toast-show 0.5s;--swal2-toast-hide-animation: swal2-toast-hide 0.1s forwards;--swal2-toast-border: none;--swal2-toast-box-shadow: 0 0 1px hsl(0deg 0% 0% / 0.075), 0 1px 2px hsl(0deg 0% 0% / 0.075), 1px 2px 4px hsl(0deg 0% 0% / 0.075), 1px 3px 8px hsl(0deg 0% 0% / 0.075), 2px 4px 16px hsl(0deg 0% 0% / 0.075)}[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);--swal2-timer-progress-bar-background: rgba(255, 255, 255, 0.7)}@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);--swal2-timer-progress-bar-background: rgba(255, 255, 255, 0.7)}}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:auto}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:var(--swal2-backdrop-transition);-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)[popover]{width:auto;border:0}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;container-name:swal2-popup}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;overflow-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:var(--swal2-actions-justify-content);width:var(--swal2-actions-width);margin:var(--swal2-actions-margin);padding:var(--swal2-actions-padding);border-radius:var(--swal2-actions-border-radius);background:var(--swal2-actions-background)}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:var(--swal2-action-button-transition);border:none;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-radius:var(--swal2-confirm-button-border-radius);background:initial;background-color:var(--swal2-confirm-button-background-color);box-shadow:var(--swal2-confirm-button-box-shadow);color:var(--swal2-confirm-button-color);font-size:1em}div:where(.swal2-container) button:where(.swal2-styled):where(.swal2-confirm):hover{background-color:color-mix(in srgb, var(--swal2-confirm-button-background-color), var(--swal2-action-button-hover))}div:where(.swal2-container) button:where(.swal2-styled):where(.swal2-confirm):active{background-color:color-mix(in srgb, var(--swal2-confirm-button-background-color), var(--swal2-action-button-active))}div:where(.swal2-container) button:where(.swal2-styled):where(.swal2-deny){border-radius:var(--swal2-deny-button-border-radius);background:initial;background-color:var(--swal2-deny-button-background-color);box-shadow:var(--swal2-deny-button-box-shadow);color:var(--swal2-deny-button-color);font-size:1em}div:where(.swal2-container) button:where(.swal2-styled):where(.swal2-deny):hover{background-color:color-mix(in srgb, var(--swal2-deny-button-background-color), var(--swal2-action-button-hover))}div:where(.swal2-container) button:where(.swal2-styled):where(.swal2-deny):active{background-color:color-mix(in srgb, var(--swal2-deny-button-background-color), var(--swal2-action-button-active))}div:where(.swal2-container) button:where(.swal2-styled):where(.swal2-cancel){border-radius:var(--swal2-cancel-button-border-radius);background:initial;background-color:var(--swal2-cancel-button-background-color);box-shadow:var(--swal2-cancel-button-box-shadow);color:var(--swal2-cancel-button-color);font-size:1em}div:where(.swal2-container) button:where(.swal2-styled):where(.swal2-cancel):hover{background-color:color-mix(in srgb, var(--swal2-cancel-button-background-color), var(--swal2-action-button-hover))}div:where(.swal2-container) button:where(.swal2-styled):where(.swal2-cancel):active{background-color:color-mix(in srgb, var(--swal2-cancel-button-background-color), var(--swal2-action-button-active))}div:where(.swal2-container) button:where(.swal2-styled):focus-visible{outline:none;box-shadow:var(--swal2-action-button-focus-box-shadow)}div:where(.swal2-container) button:where(.swal2-styled)[disabled]:not(.swal2-loading){opacity:.4}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);background:var(--swal2-footer-background);color:var(--swal2-footer-color);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:var(--swal2-timer-progress-bar-background)}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;overflow-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:var(--swal2-input-transition);border:var(--swal2-input-border);border-radius:var(--swal2-input-border-radius);background:var(--swal2-input-background);box-shadow:var(--swal2-input-box-shadow);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):hover,div:where(.swal2-container) input:where(.swal2-file):hover,div:where(.swal2-container) textarea:where(.swal2-textarea):hover{box-shadow:var(--swal2-input-hover-box-shadow)}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:var(--swal2-input-focus-border);outline:none;box-shadow:var(--swal2-input-focus-box-shadow)}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;zoom:var(--swal2-icon-zoom);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)}@container swal2-popup style(--swal2-icon-animations:true){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}@container swal2-popup style(--swal2-icon-animations:true){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}@container swal2-popup style(--swal2-icon-animations:true){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}@container swal2-popup style(--swal2-icon-animations:true){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)}@container swal2-popup style(--swal2-icon-animations:true){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;border:var(--swal2-toast-border);background:var(--swal2-background);box-shadow:var(--swal2-toast-box-shadow);pointer-events:auto}.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}@container swal2-popup style(--swal2-icon-animations:true){.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:var(--swal2-toast-show-animation)}.swal2-toast.swal2-hide{animation:var(--swal2-toast-hide-animation)}@keyframes swal2-show{0%{transform:translate3d(0, -50px, 0) scale(0.9);opacity:0}100%{transform:translate3d(0, 0, 0) scale(1);opacity:1}}@keyframes swal2-hide{0%{transform:translate3d(0, 0, 0) scale(1);opacity:1}100%{transform:translate3d(0, -50px, 0) scale(0.9);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}}`)}))(),1),Pt=(e,t=`black`)=>{if(!e.trim())return``;if(K(e)){let t=Ft(e);if(!t)return``;e=t}let n=e.replace(/fill="(?!none)[^"]*"/gi,`fill="${t}"`).replace(/stroke="(?!none)[^"]*"/gi,`stroke="${t}"`);return`data:image/svg+xml;charset=UTF-8,${encodeURIComponent(n).replace(/'/g,`%27`).replace(/"/g,`%22`)}`},Ft=e=>{if(!e.startsWith(`data:image/svg+xml`))return null;let t=e.indexOf(`,`);if(t===-1)return null;let n=e.slice(t+1);if(e.includes(`;charset=UTF-8,`))try{return decodeURIComponent(n)}catch{return null}if(e.includes(`;base64,`))try{return atob(n)}catch{return null}return null},K=e=>/^data:image\/(svg\+xml|png|jpeg|jpg|gif|webp);/i.test(e),It=`<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="icon icon-tabler icon-tabler-question-mark" viewBox="0 0 24 24">
66
64
  <path stroke="none" d="M0 0h24v24H0z" fill="none"/>
67
65
  <path d="M8 8a3.5 3 0 0 1 3.5 -3h1a3.5 3 0 0 1 3.5 3a3 3 0 0 1 -2 3a3 4 0 0 0 -2 4" />
68
66
  <path d="M12 19l0 .01" />
69
- </svg>`,Zi=()=>({confirm:async(t,n)=>{var r,i,l;(await Ce.fire({imageUrl:(n==null?void 0:n.imageUrl)??_i(Xi,((r=n==null?void 0:n.image)==null?void 0:r.color)??"black"),imageWidth:((i=n==null?void 0:n.image)==null?void 0:i.width)??50,imageHeight:((l=n==null?void 0:n.image)==null?void 0:l.height)??50,text:t,denyButtonText:(n==null?void 0:n.denyText)||"Non",confirmButtonText:(n==null?void 0:n.confirmText)||"Oui",confirmButtonColor:"var(--useConfirm-confirm-button-color, #02182b)",denyButtonColor:"var(--useConfirm-cancel-button-color, transparent)",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??"flat"} s-btn ma-0`,denyButton:`v-btn v-btn--slim v-theme--light v-btn--density-default v-btn--size-large v-btn--variant-${n.cancelButtonVariant??"outlined"} s-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=Zi,Object.defineProperty(m,Symbol.toStringTag,{value:"Module"})});
67
+ </svg>`;e.defined=Et,e.hexToRgb=kt,e.hexToRgba=Dt,e.hexToRgbaStyle=Ot,e.isIOS=At,e.isMobileDevice=Mt,e.isSmallScreen=jt,e.key=Tt,e.numberToCssStyle=wt,e.useConfirm=()=>({confirm:async(e,t)=>{t??={};let n=await Nt.default.fire({imageUrl:t?.imageUrl??Pt(It,t?.image?.color??`black`),imageWidth:t?.image?.width??50,imageHeight:t?.image?.height??50,text:e,denyButtonText:t?.denyText||`Non`,confirmButtonText:t?.confirmText||`Oui`,confirmButtonColor:`var(--useConfirm-confirm-button-color, #02182b)`,denyButtonColor:`var(--useConfirm-cancel-button-color, transparent)`,showDenyButton:!0,showCloseButton:!0,reverseButtons:!0,customClass:{...t?.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-${t.confirmButtonVariant??`flat`} s-btn ma-0`,denyButton:`v-btn v-btn--slim v-theme--light v-btn--density-default v-btn--size-large v-btn--variant-${t.cancelButtonVariant??`outlined`} s-btn ma-0`,actions:`w-100 justify-end ga-2`,image:`my-0`,htmlContainer:`pa-0 p1-paragraph`}});if(t.onConfirm??=()=>!0,t.onCancel??=()=>!1,n.isConfirmed)return t.onConfirm();if(t.onCancel)return t.onCancel()}})});