@sofiakb/elf-js 0.2.2-dev.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.
package/dist/elf-js.es.js CHANGED
@@ -1,1870 +1,1824 @@
1
- var vt = typeof global == "object" && global && global.Object === Object && global, Tn = typeof self == "object" && self && self.Object === Object && self, j = vt || Tn || Function("return this")(), se = j.Symbol, kt = Object.prototype, En = kt.hasOwnProperty, Pn = kt.toString, K = se ? se.toStringTag : void 0;
2
- function $n(e) {
3
- var t = En.call(e, K), n = e[K];
4
- try {
5
- e[K] = void 0;
6
- var o = !0;
7
- } catch {
8
- }
9
- var r = Pn.call(e);
10
- return o && (t ? e[K] = n : delete e[K]), r;
1
+ //#region \0rolldown/runtime.js
2
+ var e = Object.create, t = Object.defineProperty, n = Object.getOwnPropertyDescriptor, r = Object.getOwnPropertyNames, i = Object.getPrototypeOf, a = Object.prototype.hasOwnProperty, o = (e, t) => () => (t || e((t = { exports: {} }).exports, t), t.exports), s = (e, i, o, s) => {
3
+ if (i && typeof i == "object" || typeof i == "function") for (var ee = r(i), c = 0, l = ee.length, u; c < l; c++) u = ee[c], !a.call(e, u) && u !== o && t(e, u, {
4
+ get: ((e) => i[e]).bind(null, u),
5
+ enumerable: !(s = n(i, u)) || s.enumerable
6
+ });
7
+ return e;
8
+ }, ee = (n, r, a) => (a = n == null ? {} : e(i(n)), s(r || !n || !n.__esModule ? t(a, "default", {
9
+ value: n,
10
+ enumerable: !0
11
+ }) : a, n)), c = typeof global == "object" && global && global.Object === Object && global, l = typeof self == "object" && self && self.Object === Object && self, u = c || l || Function("return this")(), d = u.Symbol, f = Object.prototype, p = f.hasOwnProperty, te = f.toString, m = d ? d.toStringTag : void 0;
12
+ function ne(e) {
13
+ var t = p.call(e, m), n = e[m];
14
+ try {
15
+ e[m] = void 0;
16
+ var r = !0;
17
+ } catch {}
18
+ var i = te.call(e);
19
+ return r && (t ? e[m] = n : delete e[m]), i;
11
20
  }
12
- var Bn = Object.prototype, Sn = Bn.toString;
13
- function jn(e) {
14
- return Sn.call(e);
21
+ //#endregion
22
+ //#region node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_objectToString.js
23
+ var re = Object.prototype.toString;
24
+ function ie(e) {
25
+ return re.call(e);
15
26
  }
16
- var In = "[object Null]", Ln = "[object Undefined]", Ze = se ? se.toStringTag : void 0;
17
- function Z(e) {
18
- return e == null ? e === void 0 ? Ln : In : Ze && Ze in Object(e) ? $n(e) : jn(e);
27
+ //#endregion
28
+ //#region node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_baseGetTag.js
29
+ var h = "[object Null]", ae = "[object Undefined]", oe = d ? d.toStringTag : void 0;
30
+ function g(e) {
31
+ return e == null ? e === void 0 ? ae : h : oe && oe in Object(e) ? ne(e) : ie(e);
19
32
  }
20
- function Oe(e) {
21
- return e != null && typeof e == "object";
33
+ //#endregion
34
+ //#region node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/isObjectLike.js
35
+ function _(e) {
36
+ return typeof e == "object" && !!e;
22
37
  }
23
- var On = Array.isArray;
24
- function xt(e) {
25
- var t = typeof e;
26
- return e != null && (t == "object" || t == "function");
38
+ //#endregion
39
+ //#region node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/isArray.js
40
+ var v = Array.isArray;
41
+ //#endregion
42
+ //#region node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/isObject.js
43
+ function y(e) {
44
+ var t = typeof e;
45
+ return e != null && (t == "object" || t == "function");
27
46
  }
28
- var Mn = "[object AsyncFunction]", Dn = "[object Function]", Hn = "[object GeneratorFunction]", Fn = "[object Proxy]";
29
- function Ct(e) {
30
- if (!xt(e))
31
- return !1;
32
- var t = Z(e);
33
- return t == Dn || t == Hn || t == Mn || t == Fn;
47
+ //#endregion
48
+ //#region node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/isFunction.js
49
+ var b = "[object AsyncFunction]", se = "[object Function]", ce = "[object GeneratorFunction]", le = "[object Proxy]";
50
+ function ue(e) {
51
+ if (!y(e)) return !1;
52
+ var t = g(e);
53
+ return t == se || t == ce || t == b || t == le;
34
54
  }
35
- var xe = j["__core-js_shared__"], Ge = function() {
36
- var e = /[^.]+$/.exec(xe && xe.keys && xe.keys.IE_PROTO || "");
37
- return e ? "Symbol(src)_1." + e : "";
55
+ //#endregion
56
+ //#region node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_coreJsData.js
57
+ var x = u["__core-js_shared__"], S = function() {
58
+ var e = /[^.]+$/.exec(x && x.keys && x.keys.IE_PROTO || "");
59
+ return e ? "Symbol(src)_1." + e : "";
38
60
  }();
39
- function zn(e) {
40
- return !!Ge && Ge in e;
61
+ function C(e) {
62
+ return !!S && S in e;
41
63
  }
42
- var Vn = Function.prototype, qn = Vn.toString;
43
- function D(e) {
44
- if (e != null) {
45
- try {
46
- return qn.call(e);
47
- } catch {
48
- }
49
- try {
50
- return e + "";
51
- } catch {
52
- }
53
- }
54
- return "";
64
+ //#endregion
65
+ //#region node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_toSource.js
66
+ var w = Function.prototype.toString;
67
+ function T(e) {
68
+ if (e != null) {
69
+ try {
70
+ return w.call(e);
71
+ } catch {}
72
+ try {
73
+ return e + "";
74
+ } catch {}
75
+ }
76
+ return "";
55
77
  }
56
- var Rn = /[\\^$.*+?()[\]{}|]/g, Nn = /^\[object .+?Constructor\]$/, Wn = Function.prototype, Un = Object.prototype, _n = Wn.toString, Yn = Un.hasOwnProperty, Kn = RegExp(
57
- "^" + _n.call(Yn).replace(Rn, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
58
- );
59
- function Xn(e) {
60
- if (!xt(e) || zn(e))
61
- return !1;
62
- var t = Ct(e) ? Kn : Nn;
63
- return t.test(D(e));
78
+ //#endregion
79
+ //#region node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_baseIsNative.js
80
+ var de = /[\\^$.*+?()[\]{}|]/g, E = /^\[object .+?Constructor\]$/, D = Function.prototype, fe = Object.prototype, pe = D.toString, me = fe.hasOwnProperty, he = RegExp("^" + pe.call(me).replace(de, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$");
81
+ function ge(e) {
82
+ return !y(e) || C(e) ? !1 : (ue(e) ? he : E).test(T(e));
64
83
  }
65
- function Zn(e, t) {
66
- return e == null ? void 0 : e[t];
84
+ //#endregion
85
+ //#region node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_getValue.js
86
+ function _e(e, t) {
87
+ return e?.[t];
67
88
  }
68
- function G(e, t) {
69
- var n = Zn(e, t);
70
- return Xn(n) ? n : void 0;
89
+ //#endregion
90
+ //#region node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_getNative.js
91
+ function ve(e, t) {
92
+ var n = _e(e, t);
93
+ return ge(n) ? n : void 0;
71
94
  }
72
- var Pe = G(j, "WeakMap"), Gn = 9007199254740991;
73
- function At(e) {
74
- return typeof e == "number" && e > -1 && e % 1 == 0 && e <= Gn;
95
+ //#endregion
96
+ //#region node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_WeakMap.js
97
+ var O = ve(u, "WeakMap"), k = 9007199254740991;
98
+ function ye(e) {
99
+ return typeof e == "number" && e > -1 && e % 1 == 0 && e <= k;
75
100
  }
76
- function Jn(e) {
77
- return e != null && At(e.length) && !Ct(e);
101
+ //#endregion
102
+ //#region node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/isArrayLike.js
103
+ function A(e) {
104
+ return e != null && ye(e.length) && !ue(e);
78
105
  }
79
- var Qn = Object.prototype;
80
- function Tt(e) {
81
- var t = e && e.constructor, n = typeof t == "function" && t.prototype || Qn;
82
- return e === n;
106
+ //#endregion
107
+ //#region node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_isPrototype.js
108
+ var be = Object.prototype;
109
+ function xe(e) {
110
+ var t = e && e.constructor;
111
+ return e === (typeof t == "function" && t.prototype || be);
83
112
  }
84
- var eo = "[object Arguments]";
85
- function Je(e) {
86
- return Oe(e) && Z(e) == eo;
113
+ //#endregion
114
+ //#region node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_baseIsArguments.js
115
+ var Se = "[object Arguments]";
116
+ function j(e) {
117
+ return _(e) && g(e) == Se;
87
118
  }
88
- var Et = Object.prototype, to = Et.hasOwnProperty, no = Et.propertyIsEnumerable, oo = Je(/* @__PURE__ */ function() {
89
- return arguments;
90
- }()) ? Je : function(e) {
91
- return Oe(e) && to.call(e, "callee") && !no.call(e, "callee");
119
+ //#endregion
120
+ //#region node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/isArguments.js
121
+ var M = Object.prototype, N = M.hasOwnProperty, P = M.propertyIsEnumerable, F = j(function() {
122
+ return arguments;
123
+ }()) ? j : function(e) {
124
+ return _(e) && N.call(e, "callee") && !P.call(e, "callee");
92
125
  };
93
- function ro() {
94
- return !1;
126
+ //#endregion
127
+ //#region node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/stubFalse.js
128
+ function I() {
129
+ return !1;
95
130
  }
96
- var Pt = typeof exports == "object" && exports && !exports.nodeType && exports, Qe = Pt && typeof module == "object" && module && !module.nodeType && module, so = Qe && Qe.exports === Pt, et = so ? j.Buffer : void 0, io = et ? et.isBuffer : void 0, ao = io || ro, lo = "[object Arguments]", co = "[object Array]", uo = "[object Boolean]", wo = "[object Date]", fo = "[object Error]", mo = "[object Function]", go = "[object Map]", ho = "[object Number]", po = "[object Object]", bo = "[object RegExp]", yo = "[object Set]", vo = "[object String]", ko = "[object WeakMap]", xo = "[object ArrayBuffer]", Co = "[object DataView]", Ao = "[object Float32Array]", To = "[object Float64Array]", Eo = "[object Int8Array]", Po = "[object Int16Array]", $o = "[object Int32Array]", Bo = "[object Uint8Array]", So = "[object Uint8ClampedArray]", jo = "[object Uint16Array]", Io = "[object Uint32Array]", f = {};
97
- f[Ao] = f[To] = f[Eo] = f[Po] = f[$o] = f[Bo] = f[So] = f[jo] = f[Io] = !0;
98
- f[lo] = f[co] = f[xo] = f[uo] = f[Co] = f[wo] = f[fo] = f[mo] = f[go] = f[ho] = f[po] = f[bo] = f[yo] = f[vo] = f[ko] = !1;
99
- function Lo(e) {
100
- return Oe(e) && At(e.length) && !!f[Z(e)];
131
+ //#endregion
132
+ //#region node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/isBuffer.js
133
+ var Ce = typeof exports == "object" && exports && !exports.nodeType && exports, we = Ce && typeof module == "object" && module && !module.nodeType && module, L = we && we.exports === Ce ? u.Buffer : void 0, R = (L ? L.isBuffer : void 0) || I, Te = "[object Arguments]", Ee = "[object Array]", De = "[object Boolean]", Oe = "[object Date]", ke = "[object Error]", Ae = "[object Function]", je = "[object Map]", Me = "[object Number]", Ne = "[object Object]", z = "[object RegExp]", Pe = "[object Set]", Fe = "[object String]", Ie = "[object WeakMap]", Le = "[object ArrayBuffer]", Re = "[object DataView]", ze = "[object Float32Array]", Be = "[object Float64Array]", Ve = "[object Int8Array]", He = "[object Int16Array]", Ue = "[object Int32Array]", We = "[object Uint8Array]", Ge = "[object Uint8ClampedArray]", Ke = "[object Uint16Array]", qe = "[object Uint32Array]", B = {};
134
+ B[ze] = B[Be] = B[Ve] = B[He] = B[Ue] = B[We] = B[Ge] = B[Ke] = B[qe] = !0, B[Te] = B[Ee] = B[Le] = B[De] = B[Re] = B[Oe] = B[ke] = B[Ae] = B[je] = B[Me] = B[Ne] = B[z] = B[Pe] = B[Fe] = B[Ie] = !1;
135
+ function Je(e) {
136
+ return _(e) && ye(e.length) && !!B[g(e)];
101
137
  }
102
- function Oo(e) {
103
- return function(t) {
104
- return e(t);
105
- };
138
+ //#endregion
139
+ //#region node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_baseUnary.js
140
+ function Ye(e) {
141
+ return function(t) {
142
+ return e(t);
143
+ };
106
144
  }
107
- var $t = typeof exports == "object" && exports && !exports.nodeType && exports, X = $t && typeof module == "object" && module && !module.nodeType && module, Mo = X && X.exports === $t, Ce = Mo && vt.process, tt = function() {
108
- try {
109
- var e = X && X.require && X.require("util").types;
110
- return e || Ce && Ce.binding && Ce.binding("util");
111
- } catch {
112
- }
113
- }(), nt = tt && tt.isTypedArray, Do = nt ? Oo(nt) : Lo;
114
- function Ho(e, t) {
115
- return function(n) {
116
- return e(t(n));
117
- };
145
+ //#endregion
146
+ //#region node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_nodeUtil.js
147
+ var Xe = typeof exports == "object" && exports && !exports.nodeType && exports, V = Xe && typeof module == "object" && module && !module.nodeType && module, Ze = V && V.exports === Xe && c.process, Qe = function() {
148
+ try {
149
+ return V && V.require && V.require("util").types || Ze && Ze.binding && Ze.binding("util");
150
+ } catch {}
151
+ }(), $e = Qe && Qe.isTypedArray, et = $e ? Ye($e) : Je;
152
+ //#endregion
153
+ //#region node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_overArg.js
154
+ function tt(e, t) {
155
+ return function(n) {
156
+ return e(t(n));
157
+ };
118
158
  }
119
- var Fo = Ho(Object.keys, Object), zo = Object.prototype, Vo = zo.hasOwnProperty;
120
- function qo(e) {
121
- if (!Tt(e))
122
- return Fo(e);
123
- var t = [];
124
- for (var n in Object(e))
125
- Vo.call(e, n) && n != "constructor" && t.push(n);
126
- return t;
159
+ //#endregion
160
+ //#region node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_nativeKeys.js
161
+ var nt = tt(Object.keys, Object), rt = Object.prototype.hasOwnProperty;
162
+ function H(e) {
163
+ if (!xe(e)) return nt(e);
164
+ var t = [];
165
+ for (var n in Object(e)) rt.call(e, n) && n != "constructor" && t.push(n);
166
+ return t;
127
167
  }
128
- var $e = G(j, "Map"), Be = G(j, "DataView"), Se = G(j, "Promise"), je = G(j, "Set"), ot = "[object Map]", Ro = "[object Object]", rt = "[object Promise]", st = "[object Set]", it = "[object WeakMap]", at = "[object DataView]", No = D(Be), Wo = D($e), Uo = D(Se), _o = D(je), Yo = D(Pe), L = Z;
129
- (Be && L(new Be(new ArrayBuffer(1))) != at || $e && L(new $e()) != ot || Se && L(Se.resolve()) != rt || je && L(new je()) != st || Pe && L(new Pe()) != it) && (L = function(e) {
130
- var t = Z(e), n = t == Ro ? e.constructor : void 0, o = n ? D(n) : "";
131
- if (o)
132
- switch (o) {
133
- case No:
134
- return at;
135
- case Wo:
136
- return ot;
137
- case Uo:
138
- return rt;
139
- case _o:
140
- return st;
141
- case Yo:
142
- return it;
143
- }
144
- return t;
168
+ //#endregion
169
+ //#region node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_Map.js
170
+ var it = ve(u, "Map"), U = ve(u, "DataView"), W = ve(u, "Promise"), at = ve(u, "Set"), ot = "[object Map]", st = "[object Object]", ct = "[object Promise]", lt = "[object Set]", ut = "[object WeakMap]", dt = "[object DataView]", ft = T(U), pt = T(it), mt = T(W), ht = T(at), gt = T(O), G = g;
171
+ (U && G(new U(/* @__PURE__ */ new ArrayBuffer(1))) != dt || it && G(new it()) != ot || W && G(W.resolve()) != ct || at && G(new at()) != lt || O && G(new O()) != ut) && (G = function(e) {
172
+ var t = g(e), n = t == st ? e.constructor : void 0, r = n ? T(n) : "";
173
+ if (r) switch (r) {
174
+ case ft: return dt;
175
+ case pt: return ot;
176
+ case mt: return ct;
177
+ case ht: return lt;
178
+ case gt: return ut;
179
+ }
180
+ return t;
145
181
  });
146
- var Ko = "[object Map]", Xo = "[object Set]", Zo = Object.prototype, Go = Zo.hasOwnProperty;
147
- function Jo(e) {
148
- if (e == null)
149
- return !0;
150
- if (Jn(e) && (On(e) || typeof e == "string" || typeof e.splice == "function" || ao(e) || Do(e) || oo(e)))
151
- return !e.length;
152
- var t = L(e);
153
- if (t == Ko || t == Xo)
154
- return !e.size;
155
- if (Tt(e))
156
- return !qo(e).length;
157
- for (var n in e)
158
- if (Go.call(e, n))
159
- return !1;
160
- return !0;
161
- }
162
- function Qo(e) {
163
- return e == null;
164
- }
165
- const Yi = (e) => {
166
- if (Jo(e == null ? void 0 : e.toString()))
167
- return null;
168
- const t = (e == null ? void 0 : e.toString()) ?? "", o = /calc\(([^)]+)\)/.exec(t);
169
- return Qo(o == null ? void 0 : o[1]) ? t.includes("%") || isNaN(Number(t)) ? isNaN(parseInt(t)) ? null : t : parseInt(t) + "px" : t;
170
- }, Ki = (e) => btoa(encodeURI(`${e.name ?? e ?? "name"}-${e.id ?? -1}`)), Xi = (e, t = !0) => typeof e < "u" && (t ? e !== null : !0), Bt = (e, t) => {
171
- if (e = e.replace(/^#/, ""), !/^([0-9A-Fa-f]{6})$/.test(e))
172
- throw new Error("Invalid hex color code");
173
- const n = parseInt(e, 16), o = n >> 16 & 255, r = n >> 8 & 255, i = n & 255;
174
- if (isNaN(o) || isNaN(r) || isNaN(i))
175
- throw new Error("Invalid hex color code");
176
- return { r: o, g: r, b: i, a: t > 1 ? t / 100 : t };
177
- }, Zi = (e, t) => {
178
- const { r: n, g: o, b: r, a: i } = Bt(e, t);
179
- return `rgba(${n}, ${o}, ${r}, ${i})`;
180
- }, Gi = (e) => {
181
- const { r: t, g: n, b: o } = Bt(e, 1);
182
- return { r: t, g: n, b: o };
183
- }, Ji = () => {
184
- var l;
185
- 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");
186
- return o || r && i;
187
- }, er = (e = 768) => window.innerWidth < e, Qi = () => /Android|webOS|iPhone|iPod|BlackBerry|IEMobile|Opera Mini|mobile/i.test(navigator.userAgent) && er();
188
- /*!
189
- * sweetalert2 v11.19.1
190
- * Released under the MIT License.
191
- */
192
- function St(e, t, n) {
193
- if (typeof e == "function" ? e === t : e.has(t)) return arguments.length < 3 ? t : n;
194
- throw new TypeError("Private element is not present on this object");
195
- }
196
- function tr(e, t) {
197
- if (t.has(e)) throw new TypeError("Cannot initialize the same private elements twice on an object");
198
- }
199
- function lt(e, t) {
200
- return e.get(St(e, t));
201
- }
202
- function nr(e, t, n) {
203
- tr(e, t), t.set(e, n);
182
+ var _t = G, vt = "[object Map]", yt = "[object Set]", bt = Object.prototype.hasOwnProperty;
183
+ function xt(e) {
184
+ if (e == null) return !0;
185
+ if (A(e) && (v(e) || typeof e == "string" || typeof e.splice == "function" || R(e) || et(e) || F(e))) return !e.length;
186
+ var t = _t(e);
187
+ if (t == vt || t == yt) return !e.size;
188
+ if (xe(e)) return !H(e).length;
189
+ for (var n in e) if (bt.call(e, n)) return !1;
190
+ return !0;
204
191
  }
205
- function or(e, t, n) {
206
- return e.set(St(e, t), n), n;
192
+ //#endregion
193
+ //#region node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/isNil.js
194
+ function St(e) {
195
+ return e == null;
207
196
  }
208
- const rr = 100, a = {}, sr = () => {
209
- a.previousActiveElement instanceof HTMLElement ? (a.previousActiveElement.focus(), a.previousActiveElement = null) : document.body && document.body.focus();
210
- }, ir = (e) => new Promise((t) => {
211
- if (!e)
212
- return t();
213
- const n = window.scrollX, o = window.scrollY;
214
- a.restoreFocusTimeout = setTimeout(() => {
215
- sr(), t();
216
- }, rr), window.scrollTo(n, o);
217
- }), jt = "swal2-", ar = ["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"], s = ar.reduce(
218
- (e, t) => (e[t] = jt + t, e),
219
- /** @type {SwalClasses} */
220
- {}
221
- ), lr = ["success", "warning", "info", "question", "error"], ie = lr.reduce(
222
- (e, t) => (e[t] = jt + t, e),
223
- /** @type {SwalIcons} */
224
- {}
225
- ), It = "SweetAlert2:", Me = (e) => e.charAt(0).toUpperCase() + e.slice(1), y = (e) => {
226
- console.warn(`${It} ${typeof e == "object" ? e.join(" ") : e}`);
227
- }, H = (e) => {
228
- console.error(`${It} ${e}`);
229
- }, ct = [], cr = (e) => {
230
- ct.includes(e) || (ct.push(e), y(e));
231
- }, Lt = function(e) {
232
- let t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : null;
233
- cr(`"${e}" is deprecated and will be removed in the next major release.${t ? ` Use "${t}" instead.` : ""}`);
234
- }, he = (e) => typeof e == "function" ? e() : e, De = (e) => e && typeof e.toPromise == "function", J = (e) => De(e) ? e.toPromise() : Promise.resolve(e), He = (e) => e && Promise.resolve(e) === e, v = () => document.body.querySelector(`.${s.container}`), Q = (e) => {
235
- const t = v();
236
- return t ? t.querySelector(e) : null;
237
- }, C = (e) => Q(`.${e}`), d = () => C(s.popup), W = () => C(s.icon), dr = () => C(s["icon-content"]), Ot = () => C(s.title), Fe = () => C(s["html-container"]), Mt = () => C(s.image), ze = () => C(s["progress-steps"]), pe = () => C(s["validation-message"]), P = () => (
238
- /** @type {HTMLButtonElement} */
239
- Q(`.${s.actions} .${s.confirm}`)
240
- ), U = () => (
241
- /** @type {HTMLButtonElement} */
242
- Q(`.${s.actions} .${s.cancel}`)
243
- ), F = () => (
244
- /** @type {HTMLButtonElement} */
245
- Q(`.${s.actions} .${s.deny}`)
246
- ), ur = () => C(s["input-label"]), _ = () => Q(`.${s.loader}`), ee = () => C(s.actions), Dt = () => C(s.footer), be = () => C(s["timer-progress-bar"]), Ve = () => C(s.close), wr = `
247
- a[href],
248
- area[href],
249
- input:not([disabled]),
250
- select:not([disabled]),
251
- textarea:not([disabled]),
252
- button:not([disabled]),
253
- iframe,
254
- object,
255
- embed,
256
- [tabindex="0"],
257
- [contenteditable],
258
- audio[controls],
259
- video[controls],
260
- summary
261
- `, qe = () => {
262
- const e = d();
263
- if (!e)
264
- return [];
265
- const t = e.querySelectorAll('[tabindex]:not([tabindex="-1"]):not([tabindex="0"])'), n = Array.from(t).sort((i, l) => {
266
- const c = parseInt(i.getAttribute("tabindex") || "0"), m = parseInt(l.getAttribute("tabindex") || "0");
267
- return c > m ? 1 : c < m ? -1 : 0;
268
- }), o = e.querySelectorAll(wr), r = Array.from(o).filter((i) => i.getAttribute("tabindex") !== "-1");
269
- return [...new Set(n.concat(r))].filter((i) => k(i));
270
- }, Re = () => $(document.body, s.shown) && !$(document.body, s["toast-shown"]) && !$(document.body, s["no-backdrop"]), ye = () => {
271
- const e = d();
272
- return e ? $(e, s.toast) : !1;
273
- }, fr = () => {
274
- const e = d();
275
- return e ? e.hasAttribute("data-loading") : !1;
276
- }, A = (e, t) => {
277
- if (e.textContent = "", t) {
278
- const o = new DOMParser().parseFromString(t, "text/html"), r = o.querySelector("head");
279
- r && Array.from(r.childNodes).forEach((l) => {
280
- e.appendChild(l);
281
- });
282
- const i = o.querySelector("body");
283
- i && Array.from(i.childNodes).forEach((l) => {
284
- l instanceof HTMLVideoElement || l instanceof HTMLAudioElement ? e.appendChild(l.cloneNode(!0)) : e.appendChild(l);
285
- });
286
- }
287
- }, $ = (e, t) => {
288
- if (!t)
289
- return !1;
290
- const n = t.split(/\s+/);
291
- for (let o = 0; o < n.length; o++)
292
- if (!e.classList.contains(n[o]))
293
- return !1;
294
- return !0;
295
- }, mr = (e, t) => {
296
- Array.from(e.classList).forEach((n) => {
297
- !Object.values(s).includes(n) && !Object.values(ie).includes(n) && !Object.values(t.showClass || {}).includes(n) && e.classList.remove(n);
298
- });
299
- }, x = (e, t, n) => {
300
- if (mr(e, t), !t.customClass)
301
- return;
302
- const o = t.customClass[
303
- /** @type {keyof SweetAlertCustomClass} */
304
- n
305
- ];
306
- if (o) {
307
- if (typeof o != "string" && !o.forEach) {
308
- y(`Invalid type of customClass.${n}! Expected string or iterable object, got "${typeof o}"`);
309
- return;
310
- }
311
- u(e, o);
312
- }
313
- }, ve = (e, t) => {
314
- if (!t)
315
- return null;
316
- switch (t) {
317
- case "select":
318
- case "textarea":
319
- case "file":
320
- return e.querySelector(`.${s.popup} > .${s[t]}`);
321
- case "checkbox":
322
- return e.querySelector(`.${s.popup} > .${s.checkbox} input`);
323
- case "radio":
324
- return e.querySelector(`.${s.popup} > .${s.radio} input:checked`) || e.querySelector(`.${s.popup} > .${s.radio} input:first-child`);
325
- case "range":
326
- return e.querySelector(`.${s.popup} > .${s.range} input`);
327
- default:
328
- return e.querySelector(`.${s.popup} > .${s.input}`);
329
- }
330
- }, Ht = (e) => {
331
- if (e.focus(), e.type !== "file") {
332
- const t = e.value;
333
- e.value = "", e.value = t;
334
- }
335
- }, Ft = (e, t, n) => {
336
- !e || !t || (typeof t == "string" && (t = t.split(/\s+/).filter(Boolean)), t.forEach((o) => {
337
- Array.isArray(e) ? e.forEach((r) => {
338
- n ? r.classList.add(o) : r.classList.remove(o);
339
- }) : n ? e.classList.add(o) : e.classList.remove(o);
340
- }));
341
- }, u = (e, t) => {
342
- Ft(e, t, !0);
343
- }, T = (e, t) => {
344
- Ft(e, t, !1);
345
- }, B = (e, t) => {
346
- const n = Array.from(e.children);
347
- for (let o = 0; o < n.length; o++) {
348
- const r = n[o];
349
- if (r instanceof HTMLElement && $(r, t))
350
- return r;
351
- }
352
- }, O = (e, t, n) => {
353
- n === `${parseInt(n)}` && (n = parseInt(n)), n || parseInt(n) === 0 ? e.style.setProperty(t, typeof n == "number" ? `${n}px` : n) : e.style.removeProperty(t);
354
- }, p = function(e) {
355
- let t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : "flex";
356
- e && (e.style.display = t);
357
- }, b = (e) => {
358
- e && (e.style.display = "none");
359
- }, Ne = function(e) {
360
- let t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : "block";
361
- e && new MutationObserver(() => {
362
- te(e, e.innerHTML, t);
363
- }).observe(e, {
364
- childList: !0,
365
- subtree: !0
366
- });
367
- }, dt = (e, t, n, o) => {
368
- const r = e.querySelector(t);
369
- r && r.style.setProperty(n, o);
370
- }, te = function(e, t) {
371
- let n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : "flex";
372
- t ? p(e, n) : b(e);
373
- }, k = (e) => !!(e && (e.offsetWidth || e.offsetHeight || e.getClientRects().length)), gr = () => !k(P()) && !k(F()) && !k(U()), ut = (e) => e.scrollHeight > e.clientHeight, zt = (e) => {
374
- const t = window.getComputedStyle(e), n = parseFloat(t.getPropertyValue("animation-duration") || "0"), o = parseFloat(t.getPropertyValue("transition-duration") || "0");
375
- return n > 0 || o > 0;
376
- }, We = function(e) {
377
- let t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !1;
378
- const n = be();
379
- n && k(n) && (t && (n.style.transition = "none", n.style.width = "100%"), setTimeout(() => {
380
- n.style.transition = `width ${e / 1e3}s linear`, n.style.width = "0%";
381
- }, 10));
382
- }, hr = () => {
383
- const e = be();
384
- if (!e)
385
- return;
386
- const t = parseInt(window.getComputedStyle(e).width);
387
- e.style.removeProperty("transition"), e.style.width = "100%";
388
- const n = parseInt(window.getComputedStyle(e).width), o = t / n * 100;
389
- e.style.width = `${o}%`;
390
- }, pr = () => typeof window > "u" || typeof document > "u", br = `
391
- <div aria-labelledby="${s.title}" aria-describedby="${s["html-container"]}" class="${s.popup}" tabindex="-1">
392
- <button type="button" class="${s.close}"></button>
393
- <ul class="${s["progress-steps"]}"></ul>
394
- <div class="${s.icon}"></div>
395
- <img class="${s.image}" />
396
- <h2 class="${s.title}" id="${s.title}"></h2>
397
- <div class="${s["html-container"]}" id="${s["html-container"]}"></div>
398
- <input class="${s.input}" id="${s.input}" />
399
- <input type="file" class="${s.file}" />
400
- <div class="${s.range}">
197
+ //#endregion
198
+ //#region src/utils/style.utils.ts
199
+ var Ct = (e) => {
200
+ if (xt(e?.toString())) return null;
201
+ let t = e?.toString() ?? "";
202
+ return St(/calc\(([^)]+)\)/.exec(t)?.[1]) ? t.includes("%") || isNaN(Number(t)) ? isNaN(parseInt(t)) ? null : t : parseInt(t) + "px" : t;
203
+ }, wt = (e) => btoa(encodeURI(`${e.name ?? e ?? "name"}-${e.id ?? -1}`)), Tt = (e, t = !0) => e !== void 0 && (t ? e !== null : !0), Et = (e, t) => {
204
+ if (e = e.replace(/^#/, ""), !/^([0-9A-Fa-f]{6})$/.test(e)) throw Error("Invalid hex color code");
205
+ let n = parseInt(e, 16), r = n >> 16 & 255, i = n >> 8 & 255, a = n & 255;
206
+ if (isNaN(r) || isNaN(i) || isNaN(a)) throw Error("Invalid hex color code");
207
+ return {
208
+ r,
209
+ g: i,
210
+ b: a,
211
+ a: t > 1 ? t / 100 : t
212
+ };
213
+ }, Dt = (e, t) => {
214
+ let { r: n, g: r, b: i, a } = Et(e, t);
215
+ return `rgba(${n}, ${r}, ${i}, ${a})`;
216
+ }, Ot = (e) => {
217
+ let { r: t, g: n, b: r } = Et(e, 1);
218
+ return {
219
+ r: t,
220
+ g: n,
221
+ b: r
222
+ };
223
+ }, kt = () => {
224
+ let e = navigator?.userAgentData?.platform ?? navigator?.platform, t = navigator.userAgent ?? "", n = [
225
+ "iPad Simulator",
226
+ "iPhone Simulator",
227
+ "iPod Simulator",
228
+ "iPad",
229
+ "iPhone",
230
+ "iPod"
231
+ ].includes(e), r = t.includes("Mac") && "ontouchend" in document, i = t.includes("Safari") && !t.includes("Chrome") && !t.includes("Firefox");
232
+ return n || r && i;
233
+ }, At = (e = 768) => window.innerWidth < e, jt = () => /Android|webOS|iPhone|iPod|BlackBerry|IEMobile|Opera Mini|mobile/i.test(navigator.userAgent) && At(), Mt = /* @__PURE__ */ ee((/* @__PURE__ */ o(((e, t) => {
234
+ (function(n, r) {
235
+ 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());
236
+ })(e, (function() {
237
+ function e(e, t, n) {
238
+ if (typeof e == "function" ? e === t : e.has(t)) return arguments.length < 3 ? t : n;
239
+ throw TypeError("Private element is not present on this object");
240
+ }
241
+ function t(e, t) {
242
+ if (t.has(e)) throw TypeError("Cannot initialize the same private elements twice on an object");
243
+ }
244
+ function n(t, n) {
245
+ return t.get(e(t, n));
246
+ }
247
+ function r(e, n, r) {
248
+ t(e, n), n.set(e, r);
249
+ }
250
+ function i(t, n, r) {
251
+ return t.set(e(t, n), r), r;
252
+ }
253
+ let a = {}, o = () => {
254
+ a.previousActiveElement instanceof HTMLElement ? (a.previousActiveElement.focus(), a.previousActiveElement = null) : document.body && document.body.focus();
255
+ }, s = (e) => new Promise((t) => {
256
+ if (!e) return t();
257
+ let n = window.scrollX, r = window.scrollY;
258
+ a.restoreFocusTimeout = setTimeout(() => {
259
+ o(), t();
260
+ }, 100), window.scrollTo(n, r);
261
+ }), ee = "swal2-", c = (/* @__PURE__ */ "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 = [
262
+ "success",
263
+ "warning",
264
+ "info",
265
+ "question",
266
+ "error"
267
+ ].reduce((e, t) => (e[t] = ee + t, e), {}), u = "SweetAlert2:", d = (e) => e.charAt(0).toUpperCase() + e.slice(1), f = (e) => {
268
+ console.warn(`${u} ${typeof e == "object" ? e.join(" ") : e}`);
269
+ }, p = (e) => {
270
+ console.error(`${u} ${e}`);
271
+ }, te = [], m = (e) => {
272
+ te.includes(e) || (te.push(e), f(e));
273
+ }, ne = (e, t = null) => {
274
+ m(`"${e}" is deprecated and will be removed in the next major release.${t ? ` Use "${t}" instead.` : ""}`);
275
+ }, re = (e) => typeof e == "function" ? e() : e, ie = (e) => e && typeof e.toPromise == "function", h = (e) => ie(e) ? e.toPromise() : Promise.resolve(e), ae = (e) => e && Promise.resolve(e) === e, oe = () => navigator.userAgent.includes("Firefox"), g = () => document.body.querySelector(`.${c.container}`), _ = (e) => {
276
+ let t = g();
277
+ return t ? t.querySelector(e) : null;
278
+ }, v = (e) => _(`.${e}`), y = () => v(c.popup), b = () => v(c.icon), se = () => v(c["icon-content"]), ce = () => v(c.title), le = () => v(c["html-container"]), ue = () => v(c.image), x = () => v(c["progress-steps"]), S = () => v(c["validation-message"]), C = () => _(`.${c.actions} .${c.confirm}`), w = () => _(`.${c.actions} .${c.cancel}`), T = () => _(`.${c.actions} .${c.deny}`), de = () => v(c["input-label"]), E = () => _(`.${c.loader}`), D = () => v(c.actions), fe = () => v(c.footer), pe = () => v(c["timer-progress-bar"]), me = () => v(c.close), he = () => {
279
+ let e = y();
280
+ if (!e) return [];
281
+ let t = e.querySelectorAll("[tabindex]:not([tabindex=\"-1\"]):not([tabindex=\"0\"])"), n = Array.from(t).sort((e, t) => {
282
+ let n = parseInt(e.getAttribute("tabindex") || "0"), r = parseInt(t.getAttribute("tabindex") || "0");
283
+ return n > r ? 1 : n < r ? -1 : 0;
284
+ }), r = e.querySelectorAll("\n a[href],\n area[href],\n input:not([disabled]),\n select:not([disabled]),\n textarea:not([disabled]),\n button:not([disabled]),\n iframe,\n object,\n embed,\n [tabindex=\"0\"],\n [contenteditable],\n audio[controls],\n video[controls],\n summary\n"), i = Array.from(r).filter((e) => e.getAttribute("tabindex") !== "-1");
285
+ return [...new Set(n.concat(i))].filter((e) => R(e));
286
+ }, ge = () => k(document.body, c.shown) && !k(document.body, c["toast-shown"]) && !k(document.body, c["no-backdrop"]), _e = () => {
287
+ let e = y();
288
+ return e ? k(e, c.toast) : !1;
289
+ }, ve = () => {
290
+ let e = y();
291
+ return e ? e.hasAttribute("data-loading") : !1;
292
+ }, O = (e, t) => {
293
+ if (e.textContent = "", t) {
294
+ let n = new DOMParser().parseFromString(t, "text/html"), r = n.querySelector("head");
295
+ r && Array.from(r.childNodes).forEach((t) => {
296
+ e.appendChild(t);
297
+ });
298
+ let i = n.querySelector("body");
299
+ i && Array.from(i.childNodes).forEach((t) => {
300
+ t instanceof HTMLVideoElement || t instanceof HTMLAudioElement ? e.appendChild(t.cloneNode(!0)) : e.appendChild(t);
301
+ });
302
+ }
303
+ }, k = (e, t) => {
304
+ if (!t) return !1;
305
+ let n = t.split(/\s+/);
306
+ for (let t = 0; t < n.length; t++) if (!e.classList.contains(n[t])) return !1;
307
+ return !0;
308
+ }, ye = (e, t) => {
309
+ Array.from(e.classList).forEach((n) => {
310
+ !Object.values(c).includes(n) && !Object.values(l).includes(n) && !Object.values(t.showClass || {}).includes(n) && e.classList.remove(n);
311
+ });
312
+ }, A = (e, t, n) => {
313
+ if (ye(e, t), !t.customClass) return;
314
+ let r = t.customClass[n];
315
+ if (r) {
316
+ if (typeof r != "string" && !r.forEach) {
317
+ f(`Invalid type of customClass.${n}! Expected string or iterable object, got "${typeof r}"`);
318
+ return;
319
+ }
320
+ j(e, r);
321
+ }
322
+ }, be = (e, t) => {
323
+ if (!t) return null;
324
+ switch (t) {
325
+ case "select":
326
+ case "textarea":
327
+ case "file": return e.querySelector(`.${c.popup} > .${c[t]}`);
328
+ case "checkbox": return e.querySelector(`.${c.popup} > .${c.checkbox} input`);
329
+ case "radio": return e.querySelector(`.${c.popup} > .${c.radio} input:checked`) || e.querySelector(`.${c.popup} > .${c.radio} input:first-child`);
330
+ case "range": return e.querySelector(`.${c.popup} > .${c.range} input`);
331
+ default: return e.querySelector(`.${c.popup} > .${c.input}`);
332
+ }
333
+ }, xe = (e) => {
334
+ if (e.focus(), e.type !== "file") {
335
+ let t = e.value;
336
+ e.value = "", e.value = t;
337
+ }
338
+ }, Se = (e, t, n) => {
339
+ if (!e || !t) return;
340
+ let r = typeof t == "string" ? t.split(/\s+/).filter(Boolean) : t;
341
+ (Array.isArray(e) ? e : [e]).forEach((e) => {
342
+ r.forEach((t) => {
343
+ n ? e.classList.add(t) : e.classList.remove(t);
344
+ });
345
+ });
346
+ }, j = (e, t) => {
347
+ Se(e, t, !0);
348
+ }, M = (e, t) => {
349
+ Se(e, t, !1);
350
+ }, N = (e, t) => {
351
+ let n = Array.from(e.children);
352
+ for (let e = 0; e < n.length; e++) {
353
+ let r = n[e];
354
+ if (r instanceof HTMLElement && k(r, t)) return r;
355
+ }
356
+ }, P = (e, t, n) => {
357
+ n === `${parseInt(`${n}`)}` && (n = parseInt(n)), n || n === 0 ? e.style.setProperty(t, typeof n == "number" ? `${n}px` : n) : e.style.removeProperty(t);
358
+ }, F = (e, t = "flex") => {
359
+ e && (e.style.display = t);
360
+ }, I = (e) => {
361
+ e && (e.style.display = "none");
362
+ }, Ce = (e, t = "block") => {
363
+ e && new MutationObserver(() => {
364
+ L(e, e.innerHTML, t);
365
+ }).observe(e, {
366
+ childList: !0,
367
+ subtree: !0
368
+ });
369
+ }, we = (e, t, n, r) => {
370
+ let i = e.querySelector(t);
371
+ i && i.style.setProperty(n, r);
372
+ }, L = (e, t, n = "flex") => {
373
+ t ? F(e, n) : I(e);
374
+ }, R = (e) => !!(e && (e.offsetWidth || e.offsetHeight || e.getClientRects().length)), Te = () => !R(C()) && !R(T()) && !R(w()), Ee = (e) => e.scrollHeight > e.clientHeight, De = (e, t) => {
375
+ let n = e;
376
+ for (; n && n !== t;) {
377
+ if (Ee(n)) return !0;
378
+ n = n.parentElement;
379
+ }
380
+ return !1;
381
+ }, Oe = (e) => {
382
+ let t = window.getComputedStyle(e), n = parseFloat(t.getPropertyValue("animation-duration") || "0"), r = parseFloat(t.getPropertyValue("transition-duration") || "0");
383
+ return n > 0 || r > 0;
384
+ }, ke = (e, t = !1) => {
385
+ let n = pe();
386
+ n && R(n) && (t && (n.style.transition = "none", n.style.width = "100%"), setTimeout(() => {
387
+ n.style.transition = `width ${e / 1e3}s linear`, n.style.width = "0%";
388
+ }, 10));
389
+ }, Ae = () => {
390
+ let e = pe();
391
+ if (!e) return;
392
+ let t = parseInt(window.getComputedStyle(e).width);
393
+ e.style.removeProperty("transition"), e.style.width = "100%";
394
+ let n = t / parseInt(window.getComputedStyle(e).width) * 100;
395
+ e.style.width = `${n}%`;
396
+ }, je = () => typeof window > "u" || typeof document > "u", Me = `
397
+ <div aria-labelledby="${c.title}" aria-describedby="${c["html-container"]}" class="${c.popup}" tabindex="-1">
398
+ <button type="button" class="${c.close}"></button>
399
+ <ul class="${c["progress-steps"]}"></ul>
400
+ <div class="${c.icon}"></div>
401
+ <img class="${c.image}" />
402
+ <h2 class="${c.title}" id="${c.title}"></h2>
403
+ <div class="${c["html-container"]}" id="${c["html-container"]}"></div>
404
+ <input class="${c.input}" id="${c.input}" />
405
+ <input type="file" class="${c.file}" />
406
+ <div class="${c.range}">
401
407
  <input type="range" />
402
408
  <output></output>
403
409
  </div>
404
- <select class="${s.select}" id="${s.select}"></select>
405
- <div class="${s.radio}"></div>
406
- <label class="${s.checkbox}">
407
- <input type="checkbox" id="${s.checkbox}" />
408
- <span class="${s.label}"></span>
410
+ <select class="${c.select}" id="${c.select}"></select>
411
+ <div class="${c.radio}"></div>
412
+ <label class="${c.checkbox}">
413
+ <input type="checkbox" id="${c.checkbox}" />
414
+ <span class="${c.label}"></span>
409
415
  </label>
410
- <textarea class="${s.textarea}" id="${s.textarea}"></textarea>
411
- <div class="${s["validation-message"]}" id="${s["validation-message"]}"></div>
412
- <div class="${s.actions}">
413
- <div class="${s.loader}"></div>
414
- <button type="button" class="${s.confirm}"></button>
415
- <button type="button" class="${s.deny}"></button>
416
- <button type="button" class="${s.cancel}"></button>
416
+ <textarea class="${c.textarea}" id="${c.textarea}"></textarea>
417
+ <div class="${c["validation-message"]}" id="${c["validation-message"]}"></div>
418
+ <div class="${c.actions}">
419
+ <div class="${c.loader}"></div>
420
+ <button type="button" class="${c.confirm}"></button>
421
+ <button type="button" class="${c.deny}"></button>
422
+ <button type="button" class="${c.cancel}"></button>
417
423
  </div>
418
- <div class="${s.footer}"></div>
419
- <div class="${s["timer-progress-bar-container"]}">
420
- <div class="${s["timer-progress-bar"]}"></div>
424
+ <div class="${c.footer}"></div>
425
+ <div class="${c["timer-progress-bar-container"]}">
426
+ <div class="${c["timer-progress-bar"]}"></div>
421
427
  </div>
422
428
  </div>
423
- `.replace(/(^|\n)\s*/g, ""), yr = () => {
424
- const e = v();
425
- return e ? (e.remove(), T([document.documentElement, document.body], [s["no-backdrop"], s["toast-shown"], s["has-column"]]), !0) : !1;
426
- }, I = () => {
427
- a.currentInstance.resetValidationMessage();
428
- }, vr = () => {
429
- const e = d(), t = B(e, s.input), n = B(e, s.file), o = e.querySelector(`.${s.range} input`), r = e.querySelector(`.${s.range} output`), i = B(e, s.select), l = e.querySelector(`.${s.checkbox} input`), c = B(e, s.textarea);
430
- t.oninput = I, n.onchange = I, i.onchange = I, l.onchange = I, c.oninput = I, o.oninput = () => {
431
- I(), r.value = o.value;
432
- }, o.onchange = () => {
433
- I(), r.value = o.value;
434
- };
435
- }, kr = (e) => typeof e == "string" ? document.querySelector(e) : e, xr = (e) => {
436
- const t = d();
437
- t.setAttribute("role", e.toast ? "alert" : "dialog"), t.setAttribute("aria-live", e.toast ? "polite" : "assertive"), e.toast || t.setAttribute("aria-modal", "true");
438
- }, Cr = (e) => {
439
- window.getComputedStyle(e).direction === "rtl" && u(v(), s.rtl);
440
- }, Ar = (e) => {
441
- const t = yr();
442
- if (pr()) {
443
- H("SweetAlert2 requires document to initialize");
444
- return;
445
- }
446
- const n = document.createElement("div");
447
- n.className = s.container, t && u(n, s["no-transition"]), A(n, br), n.dataset.swal2Theme = e.theme;
448
- const o = kr(e.target);
449
- o.appendChild(n), xr(e), Cr(o), vr();
450
- }, Ue = (e, t) => {
451
- e instanceof HTMLElement ? t.appendChild(e) : typeof e == "object" ? Tr(e, t) : e && A(t, e);
452
- }, Tr = (e, t) => {
453
- e.jquery ? Er(t, e) : A(t, e.toString());
454
- }, Er = (e, t) => {
455
- if (e.textContent = "", 0 in t)
456
- for (let n = 0; n in t; n++)
457
- e.appendChild(t[n].cloneNode(!0));
458
- else
459
- e.appendChild(t.cloneNode(!0));
460
- }, Pr = (e, t) => {
461
- const n = ee(), o = _();
462
- !n || !o || (!t.showConfirmButton && !t.showDenyButton && !t.showCancelButton ? b(n) : p(n), x(n, t, "actions"), $r(n, o, t), A(o, t.loaderHtml || ""), x(o, t, "loader"));
463
- };
464
- function $r(e, t, n) {
465
- const o = P(), r = F(), i = U();
466
- !o || !r || !i || (Te(o, "confirm", n), Te(r, "deny", n), Te(i, "cancel", n), Br(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))));
467
- }
468
- function Br(e, t, n, o) {
469
- if (!o.buttonsStyling) {
470
- T([e, t, n], s.styled);
471
- return;
472
- }
473
- 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), Ae(e), Ae(t), Ae(n);
474
- }
475
- function Ae(e) {
476
- const t = window.getComputedStyle(e), n = t.backgroundColor.replace(/rgba?\((\d+), (\d+), (\d+).*/, "rgba($1, $2, $3, 0.5)");
477
- e.style.setProperty("--swal2-action-button-outline", t.getPropertyValue("--swal2-outline").replace(/ rgba\(.*/, ` ${n}`));
478
- }
479
- function Te(e, t, n) {
480
- const o = (
481
- /** @type {'Confirm' | 'Deny' | 'Cancel'} */
482
- Me(t)
483
- );
484
- te(e, n[`show${o}Button`], "inline-block"), A(e, n[`${t}ButtonText`] || ""), e.setAttribute("aria-label", n[`${t}ButtonAriaLabel`] || ""), e.className = s[t], x(e, n, `${t}Button`);
485
- }
486
- const Sr = (e, t) => {
487
- const n = Ve();
488
- n && (A(n, t.closeButtonHtml || ""), x(n, t, "closeButton"), te(n, t.showCloseButton), n.setAttribute("aria-label", t.closeButtonAriaLabel || ""));
489
- }, jr = (e, t) => {
490
- const n = v();
491
- n && (Ir(n, t.backdrop), Lr(n, t.position), Or(n, t.grow), x(n, t, "container"));
492
- };
493
- function Ir(e, t) {
494
- typeof t == "string" ? e.style.background = t : t || u([document.documentElement, document.body], s["no-backdrop"]);
495
- }
496
- function Lr(e, t) {
497
- t && (t in s ? u(e, s[t]) : (y('The "position" parameter is not valid, defaulting to "center"'), u(e, s.center)));
498
- }
499
- function Or(e, t) {
500
- t && u(e, s[`grow-${t}`]);
501
- }
502
- var w = {
503
- innerParams: /* @__PURE__ */ new WeakMap(),
504
- domCache: /* @__PURE__ */ new WeakMap()
505
- };
506
- const Mr = ["input", "file", "range", "select", "radio", "checkbox", "textarea"], Dr = (e, t) => {
507
- const n = d();
508
- if (!n)
509
- return;
510
- const o = w.innerParams.get(e), r = !o || t.input !== o.input;
511
- Mr.forEach((i) => {
512
- const l = B(n, s[i]);
513
- l && (zr(i, t.inputAttributes), l.className = s[i], r && b(l));
514
- }), t.input && (r && Hr(t), Vr(t));
515
- }, Hr = (e) => {
516
- if (!e.input)
517
- return;
518
- if (!g[e.input]) {
519
- H(`Unexpected type of input! Expected ${Object.keys(g).join(" | ")}, got "${e.input}"`);
520
- return;
521
- }
522
- const t = Vt(e.input);
523
- if (!t)
524
- return;
525
- const n = g[e.input](t, e);
526
- p(t), e.inputAutoFocus && setTimeout(() => {
527
- Ht(n);
528
- });
529
- }, Fr = (e) => {
530
- for (let t = 0; t < e.attributes.length; t++) {
531
- const n = e.attributes[t].name;
532
- ["id", "type", "value", "style"].includes(n) || e.removeAttribute(n);
533
- }
534
- }, zr = (e, t) => {
535
- const n = d();
536
- if (!n)
537
- return;
538
- const o = ve(n, e);
539
- if (o) {
540
- Fr(o);
541
- for (const r in t)
542
- o.setAttribute(r, t[r]);
543
- }
544
- }, Vr = (e) => {
545
- if (!e.input)
546
- return;
547
- const t = Vt(e.input);
548
- t && x(t, e, "input");
549
- }, _e = (e, t) => {
550
- !e.placeholder && t.inputPlaceholder && (e.placeholder = t.inputPlaceholder);
551
- }, ne = (e, t, n) => {
552
- if (n.inputLabel) {
553
- const o = document.createElement("label"), r = s["input-label"];
554
- 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);
555
- }
556
- }, Vt = (e) => {
557
- const t = d();
558
- if (t)
559
- return B(t, s[
560
- /** @type {SwalClass} */
561
- e
562
- ] || s.input);
563
- }, ae = (e, t) => {
564
- ["string", "number"].includes(typeof t) ? e.value = `${t}` : He(t) || y(`Unexpected type of inputValue! Expected "string", "number" or "Promise", got "${typeof t}"`);
565
- }, g = {};
566
- g.text = g.email = g.password = g.number = g.tel = g.url = g.search = g.date = g["datetime-local"] = g.time = g.week = g.month = /** @type {(input: Input | HTMLElement, params: SweetAlertOptions) => Input} */
567
- (e, t) => (ae(e, t.inputValue), ne(e, e, t), _e(e, t), e.type = t.input, e);
568
- g.file = (e, t) => (ne(e, e, t), _e(e, t), e);
569
- g.range = (e, t) => {
570
- const n = e.querySelector("input"), o = e.querySelector("output");
571
- return ae(n, t.inputValue), n.type = t.input, ae(o, t.inputValue), ne(n, e, t), e;
572
- };
573
- g.select = (e, t) => {
574
- if (e.textContent = "", t.inputPlaceholder) {
575
- const n = document.createElement("option");
576
- A(n, t.inputPlaceholder), n.value = "", n.disabled = !0, n.selected = !0, e.appendChild(n);
577
- }
578
- return ne(e, e, t), e;
579
- };
580
- g.radio = (e) => (e.textContent = "", e);
581
- g.checkbox = (e, t) => {
582
- const n = ve(d(), "checkbox");
583
- n.value = "1", n.checked = !!t.inputValue;
584
- const o = e.querySelector("span");
585
- return A(o, t.inputPlaceholder || t.inputLabel), n;
586
- };
587
- g.textarea = (e, t) => {
588
- ae(e, t.inputValue), _e(e, t), ne(e, e, t);
589
- const n = (o) => parseInt(window.getComputedStyle(o).marginLeft) + parseInt(window.getComputedStyle(o).marginRight);
590
- return setTimeout(() => {
591
- if ("MutationObserver" in window) {
592
- const o = parseInt(window.getComputedStyle(d()).width), r = () => {
593
- if (!document.body.contains(e))
594
- return;
595
- const i = e.offsetWidth + n(e);
596
- i > o ? d().style.width = `${i}px` : O(d(), "width", t.width);
597
- };
598
- new MutationObserver(r).observe(e, {
599
- attributes: !0,
600
- attributeFilter: ["style"]
601
- });
602
- }
603
- }), e;
604
- };
605
- const qr = (e, t) => {
606
- const n = Fe();
607
- n && (Ne(n), x(n, t, "htmlContainer"), t.html ? (Ue(t.html, n), p(n, "block")) : t.text ? (n.textContent = t.text, p(n, "block")) : b(n), Dr(e, t));
608
- }, Rr = (e, t) => {
609
- const n = Dt();
610
- n && (Ne(n), te(n, t.footer, "block"), t.footer && Ue(t.footer, n), x(n, t, "footer"));
611
- }, Nr = (e, t) => {
612
- const n = w.innerParams.get(e), o = W();
613
- if (!o)
614
- return;
615
- if (n && t.icon === n.icon) {
616
- ft(o, t), wt(o, t);
617
- return;
618
- }
619
- if (!t.icon && !t.iconHtml) {
620
- b(o);
621
- return;
622
- }
623
- if (t.icon && Object.keys(ie).indexOf(t.icon) === -1) {
624
- H(`Unknown icon! Expected "success", "error", "warning", "info" or "question", got "${t.icon}"`), b(o);
625
- return;
626
- }
627
- p(o), ft(o, t), wt(o, t), u(o, t.showClass && t.showClass.icon), window.matchMedia("(prefers-color-scheme: dark)").addEventListener("change", qt);
628
- }, wt = (e, t) => {
629
- for (const [n, o] of Object.entries(ie))
630
- t.icon !== n && T(e, o);
631
- u(e, t.icon && ie[t.icon]), _r(e, t), qt(), x(e, t, "icon");
632
- }, qt = () => {
633
- const e = d();
634
- if (!e)
635
- return;
636
- const t = window.getComputedStyle(e).getPropertyValue("background-color"), n = e.querySelectorAll("[class^=swal2-success-circular-line], .swal2-success-fix");
637
- for (let o = 0; o < n.length; o++)
638
- n[o].style.backgroundColor = t;
639
- }, Wr = `
640
- <div class="swal2-success-circular-line-left"></div>
429
+ `.replace(/(^|\n)\s*/g, ""), Ne = () => {
430
+ let e = g();
431
+ return e ? (e.remove(), M([document.documentElement, document.body], [
432
+ c["no-backdrop"],
433
+ c["toast-shown"],
434
+ c["has-column"]
435
+ ]), !0) : !1;
436
+ }, z = () => {
437
+ a.currentInstance && a.currentInstance.resetValidationMessage();
438
+ }, Pe = () => {
439
+ let e = y();
440
+ if (!e) return;
441
+ let t = N(e, c.input), n = N(e, c.file), r = e.querySelector(`.${c.range} input`), i = e.querySelector(`.${c.range} output`), a = N(e, c.select), o = e.querySelector(`.${c.checkbox} input`), s = N(e, c.textarea);
442
+ t && (t.oninput = z), n && (n.onchange = z), a && (a.onchange = z), o && (o.onchange = z), s && (s.oninput = z), r && i && (r.oninput = () => {
443
+ z(), i.value = r.value;
444
+ }, r.onchange = () => {
445
+ z(), i.value = r.value;
446
+ });
447
+ }, Fe = (e) => {
448
+ if (typeof e == "string") {
449
+ let t = document.querySelector(e);
450
+ if (!t) throw Error(`Target element "${e}" not found`);
451
+ return t;
452
+ }
453
+ return e;
454
+ }, Ie = (e) => {
455
+ let t = y();
456
+ t && (t.setAttribute("role", e.toast ? "alert" : "dialog"), t.setAttribute("aria-live", e.toast ? "polite" : "assertive"), e.toast || t.setAttribute("aria-modal", "true"));
457
+ }, Le = (e) => {
458
+ window.getComputedStyle(e).direction === "rtl" && (j(g(), c.rtl), a.isRTL = !0);
459
+ }, Re = (e) => {
460
+ let t = Ne();
461
+ if (je()) {
462
+ p("SweetAlert2 requires document to initialize");
463
+ return;
464
+ }
465
+ let n = document.createElement("div");
466
+ n.className = c.container, t && j(n, c["no-transition"]), O(n, Me), n.dataset.swal2Theme = e.theme;
467
+ let r = Fe(e.target || "body");
468
+ r.appendChild(n), e.topLayer && (n.setAttribute("popover", ""), n.showPopover()), Ie(e), Le(r), Pe();
469
+ }, ze = (e, t) => {
470
+ e instanceof HTMLElement ? t.appendChild(e) : typeof e == "object" ? Be(e, t) : e && O(t, e);
471
+ }, Be = (e, t) => {
472
+ "jquery" in e ? Ve(t, e) : O(t, e.toString());
473
+ }, Ve = (e, t) => {
474
+ if (e.textContent = "", 0 in t) for (let n = 0; n in t; n++) e.appendChild(t[n].cloneNode(!0));
475
+ else e.appendChild(t.cloneNode(!0));
476
+ }, He = (e, t) => {
477
+ let n = D(), r = E();
478
+ !n || !r || (!t.showConfirmButton && !t.showDenyButton && !t.showCancelButton ? I(n) : F(n), A(n, t, "actions"), Ue(n, r, t), O(r, t.loaderHtml || ""), A(r, t, "loader"));
479
+ };
480
+ function Ue(e, t, n) {
481
+ let r = C(), i = T(), a = w();
482
+ !r || !i || !a || (Ke(r, "confirm", n), Ke(i, "deny", n), Ke(a, "cancel", n), We(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))));
483
+ }
484
+ function We(e, t, n, r) {
485
+ if (!r.buttonsStyling) {
486
+ M([
487
+ e,
488
+ t,
489
+ n
490
+ ], c.styled);
491
+ return;
492
+ }
493
+ j([
494
+ e,
495
+ t,
496
+ n
497
+ ], c.styled), [
498
+ [
499
+ e,
500
+ "confirm",
501
+ r.confirmButtonColor
502
+ ],
503
+ [
504
+ t,
505
+ "deny",
506
+ r.denyButtonColor
507
+ ],
508
+ [
509
+ n,
510
+ "cancel",
511
+ r.cancelButtonColor
512
+ ]
513
+ ].forEach(([e, t, n]) => {
514
+ n && e.style.setProperty(`--swal2-${t}-button-background-color`, n), Ge(e);
515
+ });
516
+ }
517
+ function Ge(e) {
518
+ let t = window.getComputedStyle(e);
519
+ if (t.getPropertyValue("--swal2-action-button-focus-box-shadow")) return;
520
+ let n = t.backgroundColor.replace(/rgba?\((\d+), (\d+), (\d+).*/, "rgba($1, $2, $3, 0.5)");
521
+ e.style.setProperty("--swal2-action-button-focus-box-shadow", t.getPropertyValue("--swal2-outline").replace(/ rgba\(.*/, ` ${n}`));
522
+ }
523
+ function Ke(e, t, n) {
524
+ L(e, n[`show${d(t)}Button`], "inline-block"), O(e, n[`${t}ButtonText`] || ""), e.setAttribute("aria-label", n[`${t}ButtonAriaLabel`] || ""), e.className = c[t], A(e, n, `${t}Button`);
525
+ }
526
+ let qe = (e, t) => {
527
+ let n = me();
528
+ n && (O(n, t.closeButtonHtml || ""), A(n, t, "closeButton"), L(n, t.showCloseButton), n.setAttribute("aria-label", t.closeButtonAriaLabel || ""));
529
+ }, B = (e, t) => {
530
+ let n = g();
531
+ n && (Je(n, t.backdrop), Ye(n, t.position), Xe(n, t.grow), A(n, t, "container"));
532
+ };
533
+ function Je(e, t) {
534
+ typeof t == "string" ? e.style.background = t : t || j([document.documentElement, document.body], c["no-backdrop"]);
535
+ }
536
+ function Ye(e, t) {
537
+ t && (t in c ? j(e, c[t]) : (f("The \"position\" parameter is not valid, defaulting to \"center\""), j(e, c.center)));
538
+ }
539
+ function Xe(e, t) {
540
+ t && j(e, c[`grow-${t}`]);
541
+ }
542
+ var V = {
543
+ innerParams: /* @__PURE__ */ new WeakMap(),
544
+ domCache: /* @__PURE__ */ new WeakMap(),
545
+ focusedElement: /* @__PURE__ */ new WeakMap()
546
+ };
547
+ let Ze = [
548
+ "input",
549
+ "file",
550
+ "range",
551
+ "select",
552
+ "radio",
553
+ "checkbox",
554
+ "textarea"
555
+ ], Qe = (e, t) => {
556
+ let n = y();
557
+ if (!n) return;
558
+ let r = V.innerParams.get(e), i = !r || t.input !== r.input;
559
+ Ze.forEach((e) => {
560
+ let r = N(n, c[e]);
561
+ r && (tt(e, t.inputAttributes), r.className = c[e], i && I(r));
562
+ }), t.input && (i && $e(t), nt(t));
563
+ }, $e = (e) => {
564
+ if (!e.input) return;
565
+ if (!W[e.input]) {
566
+ p(`Unexpected type of input! Expected ${Object.keys(W).join(" | ")}, got "${e.input}"`);
567
+ return;
568
+ }
569
+ let t = it(e.input);
570
+ if (!t) return;
571
+ let n = W[e.input](t, e);
572
+ F(t), e.inputAutoFocus && setTimeout(() => {
573
+ xe(n);
574
+ });
575
+ }, et = (e) => {
576
+ for (let t = 0; t < e.attributes.length; t++) {
577
+ let n = e.attributes[t].name;
578
+ [
579
+ "id",
580
+ "type",
581
+ "value",
582
+ "style"
583
+ ].includes(n) || e.removeAttribute(n);
584
+ }
585
+ }, tt = (e, t) => {
586
+ let n = y();
587
+ if (!n) return;
588
+ let r = be(n, e);
589
+ if (r) {
590
+ et(r);
591
+ for (let e in t) r.setAttribute(e, t[e]);
592
+ }
593
+ }, nt = (e) => {
594
+ if (!e.input) return;
595
+ let t = it(e.input);
596
+ t && A(t, e, "input");
597
+ }, rt = (e, t) => {
598
+ !e.placeholder && t.inputPlaceholder && (e.placeholder = t.inputPlaceholder);
599
+ }, H = (e, t, n) => {
600
+ if (n.inputLabel) {
601
+ let r = document.createElement("label"), i = c["input-label"];
602
+ r.setAttribute("for", e.id), r.className = i, typeof n.customClass == "object" && j(r, n.customClass.inputLabel), r.innerText = n.inputLabel, t.insertAdjacentElement("beforebegin", r);
603
+ }
604
+ }, it = (e) => {
605
+ let t = y();
606
+ if (t) return N(t, c[e] || c.input);
607
+ }, U = (e, t) => {
608
+ ["string", "number"].includes(typeof t) ? e.value = `${t}` : ae(t) || f(`Unexpected type of inputValue! Expected "string", "number" or "Promise", got "${typeof t}"`);
609
+ }, W = {};
610
+ 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) => {
611
+ let n = e;
612
+ return U(n, t.inputValue), H(n, n, t), rt(n, t), n.type = t.input, n;
613
+ }, W.file = (e, t) => {
614
+ let n = e;
615
+ return H(n, n, t), rt(n, t), n;
616
+ }, W.range = (e, t) => {
617
+ let n = e, r = n.querySelector("input"), i = n.querySelector("output");
618
+ return r && (U(r, t.inputValue), r.type = t.input, H(r, e, t)), i && U(i, t.inputValue), e;
619
+ }, W.select = (e, t) => {
620
+ let n = e;
621
+ if (n.textContent = "", t.inputPlaceholder) {
622
+ let e = document.createElement("option");
623
+ O(e, t.inputPlaceholder), e.value = "", e.disabled = !0, e.selected = !0, n.appendChild(e);
624
+ }
625
+ return H(n, n, t), n;
626
+ }, W.radio = (e) => {
627
+ let t = e;
628
+ return t.textContent = "", e;
629
+ }, W.checkbox = (e, t) => {
630
+ let n = y();
631
+ if (!n) throw Error("Popup not found");
632
+ let r = be(n, "checkbox");
633
+ if (!r) throw Error("Checkbox input not found");
634
+ r.value = "1", r.checked = !!t.inputValue;
635
+ let i = e.querySelector("span");
636
+ if (i) {
637
+ let e = t.inputPlaceholder || t.inputLabel;
638
+ e && O(i, e);
639
+ }
640
+ return r;
641
+ }, W.textarea = (e, t) => {
642
+ let n = e;
643
+ U(n, t.inputValue), rt(n, t), H(n, n, t);
644
+ let r = (e) => parseInt(window.getComputedStyle(e).marginLeft) + parseInt(window.getComputedStyle(e).marginRight);
645
+ return setTimeout(() => {
646
+ if ("MutationObserver" in window) {
647
+ let e = y();
648
+ if (!e) return;
649
+ let i = parseInt(window.getComputedStyle(e).width);
650
+ new MutationObserver(() => {
651
+ if (!document.body.contains(n)) return;
652
+ let e = n.offsetWidth + r(n), a = y();
653
+ a && (e > i ? a.style.width = `${e}px` : P(a, "width", t.width));
654
+ }).observe(n, {
655
+ attributes: !0,
656
+ attributeFilter: ["style"]
657
+ });
658
+ }
659
+ }), n;
660
+ };
661
+ let at = (e, t) => {
662
+ let n = le();
663
+ n && (Ce(n), A(n, t, "htmlContainer"), t.html ? (ze(t.html, n), F(n, "block")) : t.text ? (n.textContent = t.text, F(n, "block")) : I(n), Qe(e, t));
664
+ }, ot = (e, t) => {
665
+ let n = fe();
666
+ n && (Ce(n), L(n, !!t.footer, "block"), t.footer && ze(t.footer, n), A(n, t, "footer"));
667
+ }, st = (e, t) => {
668
+ let n = V.innerParams.get(e), r = b();
669
+ if (r) {
670
+ if (n && t.icon === n.icon) {
671
+ dt(r, t), ct(r, t);
672
+ return;
673
+ }
674
+ if (!t.icon && !t.iconHtml) {
675
+ I(r);
676
+ return;
677
+ }
678
+ if (t.icon && Object.keys(l).indexOf(t.icon) === -1) {
679
+ p(`Unknown icon! Expected "success", "error", "warning", "info" or "question", got "${t.icon}"`), I(r);
680
+ return;
681
+ }
682
+ F(r), dt(r, t), ct(r, t), j(r, t.showClass && t.showClass.icon), window.matchMedia("(prefers-color-scheme: dark)").addEventListener("change", lt);
683
+ }
684
+ }, ct = (e, t) => {
685
+ for (let [n, r] of Object.entries(l)) t.icon !== n && M(e, r);
686
+ j(e, t.icon && l[t.icon]), ft(e, t), lt(), A(e, t, "icon");
687
+ }, lt = () => {
688
+ let e = y();
689
+ if (!e) return;
690
+ let t = window.getComputedStyle(e).getPropertyValue("background-color"), n = e.querySelectorAll("[class^=swal2-success-circular-line], .swal2-success-fix");
691
+ for (let e = 0; e < n.length; e++) n[e].style.backgroundColor = t;
692
+ }, ut = (e) => `
693
+ ${e.animation ? "<div class=\"swal2-success-circular-line-left\"></div>" : ""}
641
694
  <span class="swal2-success-line-tip"></span> <span class="swal2-success-line-long"></span>
642
- <div class="swal2-success-ring"></div> <div class="swal2-success-fix"></div>
643
- <div class="swal2-success-circular-line-right"></div>
644
- `, Ur = `
645
- <span class="swal2-x-mark">
646
- <span class="swal2-x-mark-line-left"></span>
647
- <span class="swal2-x-mark-line-right"></span>
648
- </span>
649
- `, ft = (e, t) => {
650
- if (!t.icon && !t.iconHtml)
651
- return;
652
- let n = e.innerHTML, o = "";
653
- t.iconHtml ? o = mt(t.iconHtml) : t.icon === "success" ? (o = Wr, n = n.replace(/ style=".*?"/g, "")) : t.icon === "error" ? o = Ur : t.icon && (o = mt({
654
- question: "?",
655
- warning: "!",
656
- info: "i"
657
- }[t.icon])), n.trim() !== o.trim() && A(e, o);
658
- }, _r = (e, t) => {
659
- if (t.iconColor) {
660
- e.style.color = t.iconColor, e.style.borderColor = t.iconColor;
661
- for (const n of [".swal2-success-line-tip", ".swal2-success-line-long", ".swal2-x-mark-line-left", ".swal2-x-mark-line-right"])
662
- dt(e, n, "background-color", t.iconColor);
663
- dt(e, ".swal2-success-ring", "border-color", t.iconColor);
664
- }
665
- }, mt = (e) => `<div class="${s["icon-content"]}">${e}</div>`, Yr = (e, t) => {
666
- const n = Mt();
667
- if (n) {
668
- if (!t.imageUrl) {
669
- b(n);
670
- return;
671
- }
672
- p(n, ""), n.setAttribute("src", t.imageUrl), n.setAttribute("alt", t.imageAlt || ""), O(n, "width", t.imageWidth), O(n, "height", t.imageHeight), n.className = s.image, x(n, t, "image");
673
- }
674
- };
675
- let Ye = !1, Rt = 0, Nt = 0, Wt = 0, Ut = 0;
676
- const Kr = (e) => {
677
- e.addEventListener("mousedown", le), document.body.addEventListener("mousemove", ce), e.addEventListener("mouseup", de), e.addEventListener("touchstart", le), document.body.addEventListener("touchmove", ce), e.addEventListener("touchend", de);
678
- }, Xr = (e) => {
679
- e.removeEventListener("mousedown", le), document.body.removeEventListener("mousemove", ce), e.removeEventListener("mouseup", de), e.removeEventListener("touchstart", le), document.body.removeEventListener("touchmove", ce), e.removeEventListener("touchend", de);
680
- }, le = (e) => {
681
- const t = d();
682
- if (e.target === t || W().contains(
683
- /** @type {HTMLElement} */
684
- e.target
685
- )) {
686
- Ye = !0;
687
- const n = _t(e);
688
- Rt = n.clientX, Nt = n.clientY, Wt = parseInt(t.style.insetInlineStart) || 0, Ut = parseInt(t.style.insetBlockStart) || 0, u(t, "swal2-dragging");
689
- }
690
- }, ce = (e) => {
691
- const t = d();
692
- if (Ye) {
693
- let {
694
- clientX: n,
695
- clientY: o
696
- } = _t(e);
697
- t.style.insetInlineStart = `${Wt + (n - Rt)}px`, t.style.insetBlockStart = `${Ut + (o - Nt)}px`;
698
- }
699
- }, de = () => {
700
- const e = d();
701
- Ye = !1, T(e, "swal2-dragging");
702
- }, _t = (e) => {
703
- let t = 0, n = 0;
704
- return e.type.startsWith("mouse") ? (t = /** @type {MouseEvent} */
705
- e.clientX, n = /** @type {MouseEvent} */
706
- e.clientY) : e.type.startsWith("touch") && (t = /** @type {TouchEvent} */
707
- e.touches[0].clientX, n = /** @type {TouchEvent} */
708
- e.touches[0].clientY), {
709
- clientX: t,
710
- clientY: n
711
- };
712
- }, Zr = (e, t) => {
713
- const n = v(), o = d();
714
- if (!(!n || !o)) {
715
- if (t.toast) {
716
- O(n, "width", t.width), o.style.width = "100%";
717
- const r = _();
718
- r && o.insertBefore(r, W());
719
- } else
720
- O(o, "width", t.width);
721
- O(o, "padding", t.padding), t.color && (o.style.color = t.color), t.background && (o.style.background = t.background), b(pe()), Gr(o, t), t.draggable && !t.toast ? (u(o, s.draggable), Kr(o)) : (T(o, s.draggable), Xr(o));
722
- }
723
- }, Gr = (e, t) => {
724
- const n = t.showClass || {};
725
- e.className = `${s.popup} ${k(e) ? n.popup : ""}`, t.toast ? (u([document.documentElement, document.body], s["toast-shown"]), u(e, s.toast)) : u(e, s.modal), x(e, t, "popup"), typeof t.customClass == "string" && u(e, t.customClass), t.icon && u(e, s[`icon-${t.icon}`]);
726
- }, Jr = (e, t) => {
727
- const n = ze();
728
- if (!n)
729
- return;
730
- const {
731
- progressSteps: o,
732
- currentProgressStep: r
733
- } = t;
734
- if (!o || o.length === 0 || r === void 0) {
735
- b(n);
736
- return;
737
- }
738
- p(n), n.textContent = "", r >= o.length && y("Invalid currentProgressStep parameter, it should be less than progressSteps.length (currentProgressStep like JS arrays starts from 0)"), o.forEach((i, l) => {
739
- const c = Qr(i);
740
- if (n.appendChild(c), l === r && u(c, s["active-progress-step"]), l !== o.length - 1) {
741
- const m = es(t);
742
- n.appendChild(m);
743
- }
744
- });
745
- }, Qr = (e) => {
746
- const t = document.createElement("li");
747
- return u(t, s["progress-step"]), A(t, e), t;
748
- }, es = (e) => {
749
- const t = document.createElement("li");
750
- return u(t, s["progress-step-line"]), e.progressStepsDistance && O(t, "width", e.progressStepsDistance), t;
751
- }, ts = (e, t) => {
752
- const n = Ot();
753
- n && (Ne(n), te(n, t.title || t.titleText, "block"), t.title && Ue(t.title, n), t.titleText && (n.innerText = t.titleText), x(n, t, "title"));
754
- }, Yt = (e, t) => {
755
- Zr(e, t), jr(e, t), Jr(e, t), Nr(e, t), Yr(e, t), ts(e, t), Sr(e, t), qr(e, t), Pr(e, t), Rr(e, t);
756
- const n = d();
757
- typeof t.didRender == "function" && n && t.didRender(n), a.eventEmitter.emit("didRender", n);
758
- }, ns = () => k(d()), Kt = () => {
759
- var e;
760
- return (e = P()) === null || e === void 0 ? void 0 : e.click();
761
- }, os = () => {
762
- var e;
763
- return (e = F()) === null || e === void 0 ? void 0 : e.click();
764
- }, rs = () => {
765
- var e;
766
- return (e = U()) === null || e === void 0 ? void 0 : e.click();
767
- }, Y = Object.freeze({
768
- cancel: "cancel",
769
- backdrop: "backdrop",
770
- close: "close",
771
- esc: "esc",
772
- timer: "timer"
773
- }), Xt = (e) => {
774
- e.keydownTarget && e.keydownHandlerAdded && (e.keydownTarget.removeEventListener("keydown", e.keydownHandler, {
775
- capture: e.keydownListenerCapture
776
- }), e.keydownHandlerAdded = !1);
777
- }, ss = (e, t, n) => {
778
- Xt(e), t.toast || (e.keydownHandler = (o) => as(t, o, n), e.keydownTarget = t.keydownListenerCapture ? window : d(), e.keydownListenerCapture = t.keydownListenerCapture, e.keydownTarget.addEventListener("keydown", e.keydownHandler, {
779
- capture: e.keydownListenerCapture
780
- }), e.keydownHandlerAdded = !0);
781
- }, Ie = (e, t) => {
782
- var n;
783
- const o = qe();
784
- if (o.length) {
785
- e = e + t, e === -2 && (e = o.length - 1), e === o.length ? e = 0 : e === -1 && (e = o.length - 1), o[e].focus();
786
- return;
787
- }
788
- (n = d()) === null || n === void 0 || n.focus();
789
- }, Zt = ["ArrowRight", "ArrowDown"], is = ["ArrowLeft", "ArrowUp"], as = (e, t, n) => {
790
- e && (t.isComposing || t.keyCode === 229 || (e.stopKeydownPropagation && t.stopPropagation(), t.key === "Enter" ? ls(t, e) : t.key === "Tab" ? cs(t) : [...Zt, ...is].includes(t.key) ? ds(t.key) : t.key === "Escape" && us(t, e, n)));
791
- }, ls = (e, t) => {
792
- if (!he(t.allowEnterKey))
793
- return;
794
- const n = ve(d(), t.input);
795
- if (e.target && n && e.target instanceof HTMLElement && e.target.outerHTML === n.outerHTML) {
796
- if (["textarea", "file"].includes(t.input))
797
- return;
798
- Kt(), e.preventDefault();
799
- }
800
- }, cs = (e) => {
801
- const t = e.target, n = qe();
802
- let o = -1;
803
- for (let r = 0; r < n.length; r++)
804
- if (t === n[r]) {
805
- o = r;
806
- break;
807
- }
808
- e.shiftKey ? Ie(o, -1) : Ie(o, 1), e.stopPropagation(), e.preventDefault();
809
- }, ds = (e) => {
810
- const t = ee(), n = P(), o = F(), r = U();
811
- if (!t || !n || !o || !r)
812
- return;
813
- const i = [n, o, r];
814
- if (document.activeElement instanceof HTMLElement && !i.includes(document.activeElement))
815
- return;
816
- const l = Zt.includes(e) ? "nextElementSibling" : "previousElementSibling";
817
- let c = document.activeElement;
818
- if (c) {
819
- for (let m = 0; m < t.children.length; m++) {
820
- if (c = c[l], !c)
821
- return;
822
- if (c instanceof HTMLButtonElement && k(c))
823
- break;
824
- }
825
- c instanceof HTMLButtonElement && c.focus();
826
- }
827
- }, us = (e, t, n) => {
828
- he(t.allowEscapeKey) && (e.preventDefault(), n(Y.esc));
829
- };
830
- var R = {
831
- swalPromiseResolve: /* @__PURE__ */ new WeakMap(),
832
- swalPromiseReject: /* @__PURE__ */ new WeakMap()
833
- };
834
- const ws = () => {
835
- const e = v();
836
- Array.from(document.body.children).forEach((n) => {
837
- n.contains(e) || (n.hasAttribute("aria-hidden") && n.setAttribute("data-previous-aria-hidden", n.getAttribute("aria-hidden") || ""), n.setAttribute("aria-hidden", "true"));
838
- });
839
- }, Gt = () => {
840
- Array.from(document.body.children).forEach((t) => {
841
- 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");
842
- });
843
- }, Jt = typeof window < "u" && !!window.GestureEvent, fs = () => {
844
- if (Jt && !$(document.body, s.iosfix)) {
845
- const e = document.body.scrollTop;
846
- document.body.style.top = `${e * -1}px`, u(document.body, s.iosfix), ms();
847
- }
848
- }, ms = () => {
849
- const e = v();
850
- if (!e)
851
- return;
852
- let t;
853
- e.ontouchstart = (n) => {
854
- t = gs(n);
855
- }, e.ontouchmove = (n) => {
856
- t && (n.preventDefault(), n.stopPropagation());
857
- };
858
- }, gs = (e) => {
859
- const t = e.target, n = v(), o = Fe();
860
- return !n || !o || hs(e) || ps(e) ? !1 : t === n || !ut(n) && t instanceof HTMLElement && t.tagName !== "INPUT" && // #1603
861
- t.tagName !== "TEXTAREA" && // #2266
862
- !(ut(o) && // #1944
863
- o.contains(t));
864
- }, hs = (e) => e.touches && e.touches.length && e.touches[0].touchType === "stylus", ps = (e) => e.touches && e.touches.length > 1, bs = () => {
865
- if ($(document.body, s.iosfix)) {
866
- const e = parseInt(document.body.style.top, 10);
867
- T(document.body, s.iosfix), document.body.style.top = "", document.body.scrollTop = e * -1;
868
- }
869
- }, ys = () => {
870
- const e = document.createElement("div");
871
- e.className = s["scrollbar-measure"], document.body.appendChild(e);
872
- const t = e.getBoundingClientRect().width - e.clientWidth;
873
- return document.body.removeChild(e), t;
874
- };
875
- let V = null;
876
- const vs = (e) => {
877
- V === null && (document.body.scrollHeight > window.innerHeight || e === "scroll") && (V = parseInt(window.getComputedStyle(document.body).getPropertyValue("padding-right")), document.body.style.paddingRight = `${V + ys()}px`);
878
- }, ks = () => {
879
- V !== null && (document.body.style.paddingRight = `${V}px`, V = null);
880
- };
881
- function Qt(e, t, n, o) {
882
- ye() ? gt(e, o) : (ir(n).then(() => gt(e, o)), Xt(a)), Jt ? (t.setAttribute("style", "display:none !important"), t.removeAttribute("class"), t.innerHTML = "") : t.remove(), Re() && (ks(), bs(), Gt()), xs();
883
- }
884
- function xs() {
885
- T([document.documentElement, document.body], [s.shown, s["height-auto"], s["no-backdrop"], s["toast-shown"]]);
886
- }
887
- function S(e) {
888
- e = As(e);
889
- const t = R.swalPromiseResolve.get(this), n = Cs(this);
890
- this.isAwaitingPromise ? e.isDismissed || (oe(this), t(e)) : n && t(e);
891
- }
892
- const Cs = (e) => {
893
- const t = d();
894
- if (!t)
895
- return !1;
896
- const n = w.innerParams.get(e);
897
- if (!n || $(t, n.hideClass.popup))
898
- return !1;
899
- T(t, n.showClass.popup), u(t, n.hideClass.popup);
900
- const o = v();
901
- return T(o, n.showClass.backdrop), u(o, n.hideClass.backdrop), Ts(e, t, n), !0;
902
- };
903
- function en(e) {
904
- const t = R.swalPromiseReject.get(this);
905
- oe(this), t && t(e);
906
- }
907
- const oe = (e) => {
908
- e.isAwaitingPromise && (delete e.isAwaitingPromise, w.innerParams.get(e) || e._destroy());
909
- }, As = (e) => typeof e > "u" ? {
910
- isConfirmed: !1,
911
- isDenied: !1,
912
- isDismissed: !0
913
- } : Object.assign({
914
- isConfirmed: !1,
915
- isDenied: !1,
916
- isDismissed: !1
917
- }, e), Ts = (e, t, n) => {
918
- var o;
919
- const r = v(), i = zt(t);
920
- typeof n.willClose == "function" && n.willClose(t), (o = a.eventEmitter) === null || o === void 0 || o.emit("willClose", t), i ? Es(e, t, r, n.returnFocus, n.didClose) : Qt(e, r, n.returnFocus, n.didClose);
921
- }, Es = (e, t, n, o, r) => {
922
- a.swalCloseEventFinishedCallback = Qt.bind(null, e, n, o, r);
923
- const i = function(l) {
924
- if (l.target === t) {
925
- var c;
926
- (c = a.swalCloseEventFinishedCallback) === null || c === void 0 || c.call(a), delete a.swalCloseEventFinishedCallback, t.removeEventListener("animationend", i), t.removeEventListener("transitionend", i);
927
- }
928
- };
929
- t.addEventListener("animationend", i), t.addEventListener("transitionend", i);
930
- }, gt = (e, t) => {
931
- setTimeout(() => {
932
- var n;
933
- typeof t == "function" && t.bind(e.params)(), (n = a.eventEmitter) === null || n === void 0 || n.emit("didClose"), e._destroy && e._destroy();
934
- });
935
- }, N = (e) => {
936
- let t = d();
937
- if (t || new ge(), t = d(), !t)
938
- return;
939
- const n = _();
940
- ye() ? b(W()) : Ps(t, e), p(n), t.setAttribute("data-loading", "true"), t.setAttribute("aria-busy", "true"), t.focus();
941
- }, Ps = (e, t) => {
942
- const n = ee(), o = _();
943
- !n || !o || (!t && k(P()) && (t = P()), p(n), t && (b(t), o.setAttribute("data-button-to-replace", t.className), n.insertBefore(o, t)), u([e, n], s.loading));
944
- }, $s = (e, t) => {
945
- t.input === "select" || t.input === "radio" ? Ls(e, t) : ["text", "email", "number", "tel", "textarea"].some((n) => n === t.input) && (De(t.inputValue) || He(t.inputValue)) && (N(P()), Os(e, t));
946
- }, Bs = (e, t) => {
947
- const n = e.getInput();
948
- if (!n)
949
- return null;
950
- switch (t.input) {
951
- case "checkbox":
952
- return Ss(n);
953
- case "radio":
954
- return js(n);
955
- case "file":
956
- return Is(n);
957
- default:
958
- return t.inputAutoTrim ? n.value.trim() : n.value;
959
- }
960
- }, Ss = (e) => e.checked ? 1 : 0, js = (e) => e.checked ? e.value : null, Is = (e) => e.files && e.files.length ? e.getAttribute("multiple") !== null ? e.files : e.files[0] : null, Ls = (e, t) => {
961
- const n = d();
962
- if (!n)
963
- return;
964
- const o = (r) => {
965
- t.input === "select" ? Ms(n, ue(r), t) : t.input === "radio" && Ds(n, ue(r), t);
966
- };
967
- De(t.inputOptions) || He(t.inputOptions) ? (N(P()), J(t.inputOptions).then((r) => {
968
- e.hideLoading(), o(r);
969
- })) : typeof t.inputOptions == "object" ? o(t.inputOptions) : H(`Unexpected type of inputOptions! Expected object, Map or Promise, got ${typeof t.inputOptions}`);
970
- }, Os = (e, t) => {
971
- const n = e.getInput();
972
- n && (b(n), J(t.inputValue).then((o) => {
973
- n.value = t.input === "number" ? `${parseFloat(o) || 0}` : `${o}`, p(n), n.focus(), e.hideLoading();
974
- }).catch((o) => {
975
- H(`Error in inputValue promise: ${o}`), n.value = "", p(n), n.focus(), e.hideLoading();
976
- }));
977
- };
978
- function Ms(e, t, n) {
979
- const o = B(e, s.select);
980
- if (!o)
981
- return;
982
- const r = (i, l, c) => {
983
- const m = document.createElement("option");
984
- m.value = c, A(m, l), m.selected = tn(c, n.inputValue), i.appendChild(m);
985
- };
986
- t.forEach((i) => {
987
- const l = i[0], c = i[1];
988
- if (Array.isArray(c)) {
989
- const m = document.createElement("optgroup");
990
- m.label = l, m.disabled = !1, o.appendChild(m), c.forEach((z) => r(m, z[1], z[0]));
991
- } else
992
- r(o, c, l);
993
- }), o.focus();
994
- }
995
- function Ds(e, t, n) {
996
- const o = B(e, s.radio);
997
- if (!o)
998
- return;
999
- t.forEach((i) => {
1000
- const l = i[0], c = i[1], m = document.createElement("input"), z = document.createElement("label");
1001
- m.type = "radio", m.name = s.radio, m.value = l, tn(l, n.inputValue) && (m.checked = !0);
1002
- const ke = document.createElement("span");
1003
- A(ke, c), ke.className = s.label, z.appendChild(m), z.appendChild(ke), o.appendChild(z);
1004
- });
1005
- const r = o.querySelectorAll("input");
1006
- r.length && r[0].focus();
1007
- }
1008
- const ue = (e) => {
1009
- const t = [];
1010
- return e instanceof Map ? e.forEach((n, o) => {
1011
- let r = n;
1012
- typeof r == "object" && (r = ue(r)), t.push([o, r]);
1013
- }) : Object.keys(e).forEach((n) => {
1014
- let o = e[n];
1015
- typeof o == "object" && (o = ue(o)), t.push([n, o]);
1016
- }), t;
1017
- }, tn = (e, t) => !!t && t.toString() === e.toString(), Hs = (e) => {
1018
- const t = w.innerParams.get(e);
1019
- e.disableButtons(), t.input ? nn(e, "confirm") : Xe(e, !0);
1020
- }, Fs = (e) => {
1021
- const t = w.innerParams.get(e);
1022
- e.disableButtons(), t.returnInputValueOnDeny ? nn(e, "deny") : Ke(e, !1);
1023
- }, zs = (e, t) => {
1024
- e.disableButtons(), t(Y.cancel);
1025
- }, nn = (e, t) => {
1026
- const n = w.innerParams.get(e);
1027
- if (!n.input) {
1028
- H(`The "input" parameter is needed to be set when using returnInputValueOn${Me(t)}`);
1029
- return;
1030
- }
1031
- const o = e.getInput(), r = Bs(e, n);
1032
- n.inputValidator ? Vs(e, r, t) : o && !o.checkValidity() ? (e.enableButtons(), e.showValidationMessage(n.validationMessage || o.validationMessage)) : t === "deny" ? Ke(e, r) : Xe(e, r);
1033
- }, Vs = (e, t, n) => {
1034
- const o = w.innerParams.get(e);
1035
- e.disableInput(), Promise.resolve().then(() => J(o.inputValidator(t, o.validationMessage))).then((i) => {
1036
- e.enableButtons(), e.enableInput(), i ? e.showValidationMessage(i) : n === "deny" ? Ke(e, t) : Xe(e, t);
1037
- });
1038
- }, Ke = (e, t) => {
1039
- const n = w.innerParams.get(e || void 0);
1040
- n.showLoaderOnDeny && N(F()), n.preDeny ? (e.isAwaitingPromise = !0, Promise.resolve().then(() => J(n.preDeny(t, n.validationMessage))).then((r) => {
1041
- r === !1 ? (e.hideLoading(), oe(e)) : e.close({
1042
- isDenied: !0,
1043
- value: typeof r > "u" ? t : r
1044
- });
1045
- }).catch((r) => on(e || void 0, r))) : e.close({
1046
- isDenied: !0,
1047
- value: t
1048
- });
1049
- }, ht = (e, t) => {
1050
- e.close({
1051
- isConfirmed: !0,
1052
- value: t
1053
- });
1054
- }, on = (e, t) => {
1055
- e.rejectPromise(t);
1056
- }, Xe = (e, t) => {
1057
- const n = w.innerParams.get(e || void 0);
1058
- n.showLoaderOnConfirm && N(), n.preConfirm ? (e.resetValidationMessage(), e.isAwaitingPromise = !0, Promise.resolve().then(() => J(n.preConfirm(t, n.validationMessage))).then((r) => {
1059
- k(pe()) || r === !1 ? (e.hideLoading(), oe(e)) : ht(e, typeof r > "u" ? t : r);
1060
- }).catch((r) => on(e || void 0, r))) : ht(e, t);
1061
- };
1062
- function we() {
1063
- const e = w.innerParams.get(this);
1064
- if (!e)
1065
- return;
1066
- const t = w.domCache.get(this);
1067
- b(t.loader), ye() ? e.icon && p(W()) : qs(t), T([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;
1068
- }
1069
- const qs = (e) => {
1070
- const t = e.popup.getElementsByClassName(e.loader.getAttribute("data-button-to-replace"));
1071
- t.length ? p(t[0], "inline-block") : gr() && b(e.actions);
1072
- };
1073
- function rn() {
1074
- const e = w.innerParams.get(this), t = w.domCache.get(this);
1075
- return t ? ve(t.popup, e.input) : null;
1076
- }
1077
- function sn(e, t, n) {
1078
- const o = w.domCache.get(e);
1079
- t.forEach((r) => {
1080
- o[r].disabled = n;
1081
- });
1082
- }
1083
- function an(e, t) {
1084
- const n = d();
1085
- if (!(!n || !e))
1086
- if (e.type === "radio") {
1087
- const o = n.querySelectorAll(`[name="${s.radio}"]`);
1088
- for (let r = 0; r < o.length; r++)
1089
- o[r].disabled = t;
1090
- } else
1091
- e.disabled = t;
1092
- }
1093
- function ln() {
1094
- sn(this, ["confirmButton", "denyButton", "cancelButton"], !1);
1095
- }
1096
- function cn() {
1097
- sn(this, ["confirmButton", "denyButton", "cancelButton"], !0);
1098
- }
1099
- function dn() {
1100
- an(this.getInput(), !1);
1101
- }
1102
- function un() {
1103
- an(this.getInput(), !0);
1104
- }
1105
- function wn(e) {
1106
- const t = w.domCache.get(this), n = w.innerParams.get(this);
1107
- A(t.validationMessage, e), t.validationMessage.className = s["validation-message"], n.customClass && n.customClass.validationMessage && u(t.validationMessage, n.customClass.validationMessage), p(t.validationMessage);
1108
- const o = this.getInput();
1109
- o && (o.setAttribute("aria-invalid", "true"), o.setAttribute("aria-describedby", s["validation-message"]), Ht(o), u(o, s.inputerror));
1110
- }
1111
- function fn() {
1112
- const e = w.domCache.get(this);
1113
- e.validationMessage && b(e.validationMessage);
1114
- const t = this.getInput();
1115
- t && (t.removeAttribute("aria-invalid"), t.removeAttribute("aria-describedby"), T(t, s.inputerror));
1116
- }
1117
- const q = {
1118
- title: "",
1119
- titleText: "",
1120
- text: "",
1121
- html: "",
1122
- footer: "",
1123
- icon: void 0,
1124
- iconColor: void 0,
1125
- iconHtml: void 0,
1126
- template: void 0,
1127
- toast: !1,
1128
- draggable: !1,
1129
- animation: !0,
1130
- theme: "light",
1131
- showClass: {
1132
- popup: "swal2-show",
1133
- backdrop: "swal2-backdrop-show",
1134
- icon: "swal2-icon-show"
1135
- },
1136
- hideClass: {
1137
- popup: "swal2-hide",
1138
- backdrop: "swal2-backdrop-hide",
1139
- icon: "swal2-icon-hide"
1140
- },
1141
- customClass: {},
1142
- target: "body",
1143
- color: void 0,
1144
- backdrop: !0,
1145
- heightAuto: !0,
1146
- allowOutsideClick: !0,
1147
- allowEscapeKey: !0,
1148
- allowEnterKey: !0,
1149
- stopKeydownPropagation: !0,
1150
- keydownListenerCapture: !1,
1151
- showConfirmButton: !0,
1152
- showDenyButton: !1,
1153
- showCancelButton: !1,
1154
- preConfirm: void 0,
1155
- preDeny: void 0,
1156
- confirmButtonText: "OK",
1157
- confirmButtonAriaLabel: "",
1158
- confirmButtonColor: void 0,
1159
- denyButtonText: "No",
1160
- denyButtonAriaLabel: "",
1161
- denyButtonColor: void 0,
1162
- cancelButtonText: "Cancel",
1163
- cancelButtonAriaLabel: "",
1164
- cancelButtonColor: void 0,
1165
- buttonsStyling: !0,
1166
- reverseButtons: !1,
1167
- focusConfirm: !0,
1168
- focusDeny: !1,
1169
- focusCancel: !1,
1170
- returnFocus: !0,
1171
- showCloseButton: !1,
1172
- closeButtonHtml: "&times;",
1173
- closeButtonAriaLabel: "Close this dialog",
1174
- loaderHtml: "",
1175
- showLoaderOnConfirm: !1,
1176
- showLoaderOnDeny: !1,
1177
- imageUrl: void 0,
1178
- imageWidth: void 0,
1179
- imageHeight: void 0,
1180
- imageAlt: "",
1181
- timer: void 0,
1182
- timerProgressBar: !1,
1183
- width: void 0,
1184
- padding: void 0,
1185
- background: void 0,
1186
- input: void 0,
1187
- inputPlaceholder: "",
1188
- inputLabel: "",
1189
- inputValue: "",
1190
- inputOptions: {},
1191
- inputAutoFocus: !0,
1192
- inputAutoTrim: !0,
1193
- inputAttributes: {},
1194
- inputValidator: void 0,
1195
- returnInputValueOnDeny: !1,
1196
- validationMessage: void 0,
1197
- grow: !1,
1198
- position: "center",
1199
- progressSteps: [],
1200
- currentProgressStep: void 0,
1201
- progressStepsDistance: void 0,
1202
- willOpen: void 0,
1203
- didOpen: void 0,
1204
- didRender: void 0,
1205
- willClose: void 0,
1206
- didClose: void 0,
1207
- didDestroy: void 0,
1208
- scrollbarPadding: !0
1209
- }, Rs = ["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"], Ns = {
1210
- allowEnterKey: void 0
1211
- }, Ws = ["allowOutsideClick", "allowEnterKey", "backdrop", "draggable", "focusConfirm", "focusDeny", "focusCancel", "returnFocus", "heightAuto", "keydownListenerCapture"], mn = (e) => Object.prototype.hasOwnProperty.call(q, e), gn = (e) => Rs.indexOf(e) !== -1, hn = (e) => Ns[e], Us = (e) => {
1212
- mn(e) || y(`Unknown parameter "${e}"`);
1213
- }, _s = (e) => {
1214
- Ws.includes(e) && y(`The parameter "${e}" is incompatible with toasts`);
1215
- }, Ys = (e) => {
1216
- const t = hn(e);
1217
- t && Lt(e, t);
1218
- }, pn = (e) => {
1219
- e.backdrop === !1 && e.allowOutsideClick && y('"allowOutsideClick" parameter requires `backdrop` parameter to be set to `true`'), e.theme && !["light", "dark", "auto", "borderless", "embed-iframe"].includes(e.theme) && y(`Invalid theme "${e.theme}". Expected "light", "dark", "auto", "borderless", or "embed-iframe"`);
1220
- for (const t in e)
1221
- Us(t), e.toast && _s(t), Ys(t);
1222
- };
1223
- function bn(e) {
1224
- const t = v(), n = d(), o = w.innerParams.get(this);
1225
- if (!n || $(n, o.hideClass.popup)) {
1226
- y("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.");
1227
- return;
1228
- }
1229
- const r = Ks(e), i = Object.assign({}, o, r);
1230
- pn(i), t.dataset.swal2Theme = i.theme, Yt(this, i), w.innerParams.set(this, i), Object.defineProperties(this, {
1231
- params: {
1232
- value: Object.assign({}, this.params, e),
1233
- writable: !1,
1234
- enumerable: !0
1235
- }
1236
- });
1237
- }
1238
- const Ks = (e) => {
1239
- const t = {};
1240
- return Object.keys(e).forEach((n) => {
1241
- gn(n) ? t[n] = e[n] : y(`Invalid parameter to update: ${n}`);
1242
- }), t;
1243
- };
1244
- function yn() {
1245
- const e = w.domCache.get(this), t = w.innerParams.get(this);
1246
- if (!t) {
1247
- vn(this);
1248
- return;
1249
- }
1250
- e.popup && a.swalCloseEventFinishedCallback && (a.swalCloseEventFinishedCallback(), delete a.swalCloseEventFinishedCallback), typeof t.didDestroy == "function" && t.didDestroy(), a.eventEmitter.emit("didDestroy"), Xs(this);
1251
- }
1252
- const Xs = (e) => {
1253
- vn(e), delete e.params, delete a.keydownHandler, delete a.keydownTarget, delete a.currentInstance;
1254
- }, vn = (e) => {
1255
- e.isAwaitingPromise ? (Ee(w, e), e.isAwaitingPromise = !0) : (Ee(R, e), Ee(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);
1256
- }, Ee = (e, t) => {
1257
- for (const n in e)
1258
- e[n].delete(t);
1259
- };
1260
- var Zs = /* @__PURE__ */ Object.freeze({
1261
- __proto__: null,
1262
- _destroy: yn,
1263
- close: S,
1264
- closeModal: S,
1265
- closePopup: S,
1266
- closeToast: S,
1267
- disableButtons: cn,
1268
- disableInput: un,
1269
- disableLoading: we,
1270
- enableButtons: ln,
1271
- enableInput: dn,
1272
- getInput: rn,
1273
- handleAwaitingPromise: oe,
1274
- hideLoading: we,
1275
- rejectPromise: en,
1276
- resetValidationMessage: fn,
1277
- showValidationMessage: wn,
1278
- update: bn
1279
- });
1280
- const Gs = (e, t, n) => {
1281
- e.toast ? Js(e, t, n) : (ei(t), ti(t), ni(e, t, n));
1282
- }, Js = (e, t, n) => {
1283
- t.popup.onclick = () => {
1284
- e && (Qs(e) || e.timer || e.input) || n(Y.close);
1285
- };
1286
- }, Qs = (e) => !!(e.showConfirmButton || e.showDenyButton || e.showCancelButton || e.showCloseButton);
1287
- let fe = !1;
1288
- const ei = (e) => {
1289
- e.popup.onmousedown = () => {
1290
- e.container.onmouseup = function(t) {
1291
- e.container.onmouseup = () => {
1292
- }, t.target === e.container && (fe = !0);
1293
- };
1294
- };
1295
- }, ti = (e) => {
1296
- e.container.onmousedown = (t) => {
1297
- t.target === e.container && t.preventDefault(), e.popup.onmouseup = function(n) {
1298
- e.popup.onmouseup = () => {
1299
- }, (n.target === e.popup || n.target instanceof HTMLElement && e.popup.contains(n.target)) && (fe = !0);
1300
- };
1301
- };
1302
- }, ni = (e, t, n) => {
1303
- t.container.onclick = (o) => {
1304
- if (fe) {
1305
- fe = !1;
1306
- return;
1307
- }
1308
- o.target === t.container && he(e.allowOutsideClick) && n(Y.backdrop);
1309
- };
1310
- }, oi = (e) => typeof e == "object" && e.jquery, pt = (e) => e instanceof Element || oi(e), ri = (e) => {
1311
- const t = {};
1312
- return typeof e[0] == "object" && !pt(e[0]) ? Object.assign(t, e[0]) : ["title", "html", "icon"].forEach((n, o) => {
1313
- const r = e[o];
1314
- typeof r == "string" || pt(r) ? t[n] = r : r !== void 0 && H(`Unexpected type of ${n}! Expected "string" or "Element", got ${typeof r}`);
1315
- }), t;
1316
- };
1317
- function si() {
1318
- for (var e = arguments.length, t = new Array(e), n = 0; n < e; n++)
1319
- t[n] = arguments[n];
1320
- return new this(...t);
1321
- }
1322
- function ii(e) {
1323
- class t extends this {
1324
- _main(o, r) {
1325
- return super._main(o, Object.assign({}, e, r));
1326
- }
1327
- }
1328
- return t;
1329
- }
1330
- const ai = () => a.timeout && a.timeout.getTimerLeft(), kn = () => {
1331
- if (a.timeout)
1332
- return hr(), a.timeout.stop();
1333
- }, xn = () => {
1334
- if (a.timeout) {
1335
- const e = a.timeout.start();
1336
- return We(e), e;
1337
- }
1338
- }, li = () => {
1339
- const e = a.timeout;
1340
- return e && (e.running ? kn() : xn());
1341
- }, ci = (e) => {
1342
- if (a.timeout) {
1343
- const t = a.timeout.increase(e);
1344
- return We(t, !0), t;
1345
- }
1346
- }, di = () => !!(a.timeout && a.timeout.isRunning());
1347
- let bt = !1;
1348
- const Le = {};
1349
- function ui() {
1350
- let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : "data-swal-template";
1351
- Le[e] = this, bt || (document.body.addEventListener("click", wi), bt = !0);
1352
- }
1353
- const wi = (e) => {
1354
- for (let t = e.target; t && t !== document; t = t.parentNode)
1355
- for (const n in Le) {
1356
- const o = t.getAttribute(n);
1357
- if (o) {
1358
- Le[n].fire({
1359
- template: o
1360
- });
1361
- return;
1362
- }
1363
- }
1364
- };
1365
- class fi {
1366
- constructor() {
1367
- this.events = {};
1368
- }
1369
- /**
1370
- * @param {string} eventName
1371
- * @returns {EventHandlers}
1372
- */
1373
- _getHandlersByEventName(t) {
1374
- return typeof this.events[t] > "u" && (this.events[t] = []), this.events[t];
1375
- }
1376
- /**
1377
- * @param {string} eventName
1378
- * @param {EventHandler} eventHandler
1379
- */
1380
- on(t, n) {
1381
- const o = this._getHandlersByEventName(t);
1382
- o.includes(n) || o.push(n);
1383
- }
1384
- /**
1385
- * @param {string} eventName
1386
- * @param {EventHandler} eventHandler
1387
- */
1388
- once(t, n) {
1389
- var o = this;
1390
- const r = function() {
1391
- o.removeListener(t, r);
1392
- for (var i = arguments.length, l = new Array(i), c = 0; c < i; c++)
1393
- l[c] = arguments[c];
1394
- n.apply(o, l);
1395
- };
1396
- this.on(t, r);
1397
- }
1398
- /**
1399
- * @param {string} eventName
1400
- * @param {Array} args
1401
- */
1402
- emit(t) {
1403
- for (var n = arguments.length, o = new Array(n > 1 ? n - 1 : 0), r = 1; r < n; r++)
1404
- o[r - 1] = arguments[r];
1405
- this._getHandlersByEventName(t).forEach(
1406
- /**
1407
- * @param {EventHandler} eventHandler
1408
- */
1409
- (i) => {
1410
- try {
1411
- i.apply(this, o);
1412
- } catch (l) {
1413
- console.error(l);
1414
- }
1415
- }
1416
- );
1417
- }
1418
- /**
1419
- * @param {string} eventName
1420
- * @param {EventHandler} eventHandler
1421
- */
1422
- removeListener(t, n) {
1423
- const o = this._getHandlersByEventName(t), r = o.indexOf(n);
1424
- r > -1 && o.splice(r, 1);
1425
- }
1426
- /**
1427
- * @param {string} eventName
1428
- */
1429
- removeAllListeners(t) {
1430
- this.events[t] !== void 0 && (this.events[t].length = 0);
1431
- }
1432
- reset() {
1433
- this.events = {};
1434
- }
1435
- }
1436
- a.eventEmitter = new fi();
1437
- const mi = (e, t) => {
1438
- a.eventEmitter.on(e, t);
1439
- }, gi = (e, t) => {
1440
- a.eventEmitter.once(e, t);
1441
- }, hi = (e, t) => {
1442
- if (!e) {
1443
- a.eventEmitter.reset();
1444
- return;
1445
- }
1446
- t ? a.eventEmitter.removeListener(e, t) : a.eventEmitter.removeAllListeners(e);
1447
- };
1448
- var pi = /* @__PURE__ */ Object.freeze({
1449
- __proto__: null,
1450
- argsToParams: ri,
1451
- bindClickHandler: ui,
1452
- clickCancel: rs,
1453
- clickConfirm: Kt,
1454
- clickDeny: os,
1455
- enableLoading: N,
1456
- fire: si,
1457
- getActions: ee,
1458
- getCancelButton: U,
1459
- getCloseButton: Ve,
1460
- getConfirmButton: P,
1461
- getContainer: v,
1462
- getDenyButton: F,
1463
- getFocusableElements: qe,
1464
- getFooter: Dt,
1465
- getHtmlContainer: Fe,
1466
- getIcon: W,
1467
- getIconContent: dr,
1468
- getImage: Mt,
1469
- getInputLabel: ur,
1470
- getLoader: _,
1471
- getPopup: d,
1472
- getProgressSteps: ze,
1473
- getTimerLeft: ai,
1474
- getTimerProgressBar: be,
1475
- getTitle: Ot,
1476
- getValidationMessage: pe,
1477
- increaseTimer: ci,
1478
- isDeprecatedParameter: hn,
1479
- isLoading: fr,
1480
- isTimerRunning: di,
1481
- isUpdatableParameter: gn,
1482
- isValidParameter: mn,
1483
- isVisible: ns,
1484
- mixin: ii,
1485
- off: hi,
1486
- on: mi,
1487
- once: gi,
1488
- resumeTimer: xn,
1489
- showLoading: N,
1490
- stopTimer: kn,
1491
- toggleTimer: li
1492
- });
1493
- class bi {
1494
- /**
1495
- * @param {Function} callback
1496
- * @param {number} delay
1497
- */
1498
- constructor(t, n) {
1499
- this.callback = t, this.remaining = n, this.running = !1, this.start();
1500
- }
1501
- /**
1502
- * @returns {number}
1503
- */
1504
- start() {
1505
- return this.running || (this.running = !0, this.started = /* @__PURE__ */ new Date(), this.id = setTimeout(this.callback, this.remaining)), this.remaining;
1506
- }
1507
- /**
1508
- * @returns {number}
1509
- */
1510
- stop() {
1511
- return this.started && this.running && (this.running = !1, clearTimeout(this.id), this.remaining -= (/* @__PURE__ */ new Date()).getTime() - this.started.getTime()), this.remaining;
1512
- }
1513
- /**
1514
- * @param {number} n
1515
- * @returns {number}
1516
- */
1517
- increase(t) {
1518
- const n = this.running;
1519
- return n && this.stop(), this.remaining += t, n && this.start(), this.remaining;
1520
- }
1521
- /**
1522
- * @returns {number}
1523
- */
1524
- getTimerLeft() {
1525
- return this.running && (this.stop(), this.start()), this.remaining;
1526
- }
1527
- /**
1528
- * @returns {boolean}
1529
- */
1530
- isRunning() {
1531
- return this.running;
1532
- }
1533
- }
1534
- const Cn = ["swal-title", "swal-html", "swal-footer"], yi = (e) => {
1535
- const t = typeof e.template == "string" ? (
1536
- /** @type {HTMLTemplateElement} */
1537
- document.querySelector(e.template)
1538
- ) : e.template;
1539
- if (!t)
1540
- return {};
1541
- const n = t.content;
1542
- return Pi(n), Object.assign(vi(n), ki(n), xi(n), Ci(n), Ai(n), Ti(n), Ei(n, Cn));
1543
- }, vi = (e) => {
1544
- const t = {};
1545
- return Array.from(e.querySelectorAll("swal-param")).forEach((o) => {
1546
- M(o, ["name", "value"]);
1547
- const r = (
1548
- /** @type {keyof SweetAlertOptions} */
1549
- o.getAttribute("name")
1550
- ), i = o.getAttribute("value");
1551
- !r || !i || (typeof q[r] == "boolean" ? t[r] = i !== "false" : typeof q[r] == "object" ? t[r] = JSON.parse(i) : t[r] = i);
1552
- }), t;
1553
- }, ki = (e) => {
1554
- const t = {};
1555
- return Array.from(e.querySelectorAll("swal-function-param")).forEach((o) => {
1556
- const r = (
1557
- /** @type {keyof SweetAlertOptions} */
1558
- o.getAttribute("name")
1559
- ), i = o.getAttribute("value");
1560
- !r || !i || (t[r] = new Function(`return ${i}`)());
1561
- }), t;
1562
- }, xi = (e) => {
1563
- const t = {};
1564
- return Array.from(e.querySelectorAll("swal-button")).forEach((o) => {
1565
- M(o, ["type", "color", "aria-label"]);
1566
- const r = o.getAttribute("type");
1567
- !r || !["confirm", "cancel", "deny"].includes(r) || (t[`${r}ButtonText`] = o.innerHTML, t[`show${Me(r)}Button`] = !0, o.hasAttribute("color") && (t[`${r}ButtonColor`] = o.getAttribute("color")), o.hasAttribute("aria-label") && (t[`${r}ButtonAriaLabel`] = o.getAttribute("aria-label")));
1568
- }), t;
1569
- }, Ci = (e) => {
1570
- const t = {}, n = e.querySelector("swal-image");
1571
- return n && (M(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;
1572
- }, Ai = (e) => {
1573
- const t = {}, n = e.querySelector("swal-icon");
1574
- return n && (M(n, ["type", "color"]), n.hasAttribute("type") && (t.icon = n.getAttribute("type")), n.hasAttribute("color") && (t.iconColor = n.getAttribute("color")), t.iconHtml = n.innerHTML), t;
1575
- }, Ti = (e) => {
1576
- const t = {}, n = e.querySelector("swal-input");
1577
- n && (M(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")));
1578
- const o = Array.from(e.querySelectorAll("swal-input-option"));
1579
- return o.length && (t.inputOptions = {}, o.forEach((r) => {
1580
- M(r, ["value"]);
1581
- const i = r.getAttribute("value");
1582
- if (!i)
1583
- return;
1584
- const l = r.innerHTML;
1585
- t.inputOptions[i] = l;
1586
- })), t;
1587
- }, Ei = (e, t) => {
1588
- const n = {};
1589
- for (const o in t) {
1590
- const r = t[o], i = e.querySelector(r);
1591
- i && (M(i, []), n[r.replace(/^swal-/, "")] = i.innerHTML.trim());
1592
- }
1593
- return n;
1594
- }, Pi = (e) => {
1595
- const t = Cn.concat(["swal-param", "swal-function-param", "swal-button", "swal-image", "swal-icon", "swal-input", "swal-input-option"]);
1596
- Array.from(e.children).forEach((n) => {
1597
- const o = n.tagName.toLowerCase();
1598
- t.includes(o) || y(`Unrecognized element <${o}>`);
1599
- });
1600
- }, M = (e, t) => {
1601
- Array.from(e.attributes).forEach((n) => {
1602
- t.indexOf(n.name) === -1 && y([`Unrecognized attribute "${n.name}" on <${e.tagName.toLowerCase()}>.`, `${t.length ? `Allowed attributes are: ${t.join(", ")}` : "To set the value, use HTML within the element."}`]);
1603
- });
1604
- }, An = 10, $i = (e) => {
1605
- const t = v(), n = d();
1606
- typeof e.willOpen == "function" && e.willOpen(n), a.eventEmitter.emit("willOpen", n);
1607
- const r = window.getComputedStyle(document.body).overflowY;
1608
- ji(t, n, e), setTimeout(() => {
1609
- Bi(t, n);
1610
- }, An), Re() && (Si(t, e.scrollbarPadding, r), ws()), !ye() && !a.previousActiveElement && (a.previousActiveElement = document.activeElement), typeof e.didOpen == "function" && setTimeout(() => e.didOpen(n)), a.eventEmitter.emit("didOpen", n), T(t, s["no-transition"]);
1611
- }, me = (e) => {
1612
- const t = d();
1613
- if (e.target !== t)
1614
- return;
1615
- const n = v();
1616
- t.removeEventListener("animationend", me), t.removeEventListener("transitionend", me), n.style.overflowY = "auto";
1617
- }, Bi = (e, t) => {
1618
- zt(t) ? (e.style.overflowY = "hidden", t.addEventListener("animationend", me), t.addEventListener("transitionend", me)) : e.style.overflowY = "auto";
1619
- }, Si = (e, t, n) => {
1620
- fs(), t && n !== "hidden" && vs(n), setTimeout(() => {
1621
- e.scrollTop = 0;
1622
- });
1623
- }, ji = (e, t, n) => {
1624
- u(e, n.showClass.backdrop), n.animation ? (t.style.setProperty("opacity", "0", "important"), p(t, "grid"), setTimeout(() => {
1625
- u(t, n.showClass.popup), t.style.removeProperty("opacity");
1626
- }, An)) : p(t, "grid"), u([document.documentElement, document.body], s.shown), n.heightAuto && n.backdrop && !n.toast && u([document.documentElement, document.body], s["height-auto"]);
1627
- };
1628
- var yt = {
1629
- /**
1630
- * @param {string} string
1631
- * @param {string} [validationMessage]
1632
- * @returns {Promise<string | void>}
1633
- */
1634
- 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"),
1635
- /**
1636
- * @param {string} string
1637
- * @param {string} [validationMessage]
1638
- * @returns {Promise<string | void>}
1639
- */
1640
- 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")
1641
- };
1642
- function Ii(e) {
1643
- e.inputValidator || (e.input === "email" && (e.inputValidator = yt.email), e.input === "url" && (e.inputValidator = yt.url));
1644
- }
1645
- function Li(e) {
1646
- (!e.target || typeof e.target == "string" && !document.querySelector(e.target) || typeof e.target != "string" && !e.target.appendChild) && (y('Target parameter is not valid, defaulting to "body"'), e.target = "body");
1647
- }
1648
- function Oi(e) {
1649
- Ii(e), e.showLoaderOnConfirm && !e.preConfirm && y(`showLoaderOnConfirm is set to true, but preConfirm is not defined.
1650
- showLoaderOnConfirm should be used together with preConfirm, see usage example:
1651
- https://sweetalert2.github.io/#ajax-request`), Li(e), typeof e.title == "string" && (e.title = e.title.split(`
1652
- `).join("<br />")), Ar(e);
1653
- }
1654
- let E;
1655
- var re = /* @__PURE__ */ new WeakMap();
1656
- class h {
1657
- /**
1658
- * @param {...any} args
1659
- * @this {SweetAlert}
1660
- */
1661
- constructor() {
1662
- if (nr(this, re, void 0), typeof window > "u")
1663
- return;
1664
- E = this;
1665
- for (var t = arguments.length, n = new Array(t), o = 0; o < t; o++)
1666
- n[o] = arguments[o];
1667
- const r = Object.freeze(this.constructor.argsToParams(n));
1668
- this.params = r, this.isAwaitingPromise = !1, or(re, this, this._main(E.params));
1669
- }
1670
- _main(t) {
1671
- let n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
1672
- if (pn(Object.assign({}, n, t)), a.currentInstance) {
1673
- const i = R.swalPromiseResolve.get(a.currentInstance), {
1674
- isAwaitingPromise: l
1675
- } = a.currentInstance;
1676
- a.currentInstance._destroy(), l || i({
1677
- isDismissed: !0
1678
- }), Re() && Gt();
1679
- }
1680
- a.currentInstance = E;
1681
- const o = Di(t, n);
1682
- Oi(o), Object.freeze(o), a.timeout && (a.timeout.stop(), delete a.timeout), clearTimeout(a.restoreFocusTimeout);
1683
- const r = Hi(E);
1684
- return Yt(E, o), w.innerParams.set(E, o), Mi(E, r, o);
1685
- }
1686
- // `catch` cannot be the name of a module export, so we define our thenable methods here instead
1687
- then(t) {
1688
- return lt(re, this).then(t);
1689
- }
1690
- finally(t) {
1691
- return lt(re, this).finally(t);
1692
- }
1693
- }
1694
- const Mi = (e, t, n) => new Promise((o, r) => {
1695
- const i = (l) => {
1696
- e.close({
1697
- isDismissed: !0,
1698
- dismiss: l
1699
- });
1700
- };
1701
- R.swalPromiseResolve.set(e, o), R.swalPromiseReject.set(e, r), t.confirmButton.onclick = () => {
1702
- Hs(e);
1703
- }, t.denyButton.onclick = () => {
1704
- Fs(e);
1705
- }, t.cancelButton.onclick = () => {
1706
- zs(e, i);
1707
- }, t.closeButton.onclick = () => {
1708
- i(Y.close);
1709
- }, Gs(n, t, i), ss(a, n, i), $s(e, n), $i(n), Fi(a, n, i), zi(t, n), setTimeout(() => {
1710
- t.container.scrollTop = 0;
1711
- });
1712
- }), Di = (e, t) => {
1713
- const n = yi(e), o = Object.assign({}, q, t, n, e);
1714
- return o.showClass = Object.assign({}, q.showClass, o.showClass), o.hideClass = Object.assign({}, q.hideClass, o.hideClass), o.animation === !1 && (o.showClass = {
1715
- backdrop: "swal2-noanimation"
1716
- }, o.hideClass = {}), o;
1717
- }, Hi = (e) => {
1718
- const t = {
1719
- popup: d(),
1720
- container: v(),
1721
- actions: ee(),
1722
- confirmButton: P(),
1723
- denyButton: F(),
1724
- cancelButton: U(),
1725
- loader: _(),
1726
- closeButton: Ve(),
1727
- validationMessage: pe(),
1728
- progressSteps: ze()
1729
- };
1730
- return w.domCache.set(e, t), t;
1731
- }, Fi = (e, t, n) => {
1732
- const o = be();
1733
- b(o), t.timer && (e.timeout = new bi(() => {
1734
- n("timer"), delete e.timeout;
1735
- }, t.timer), t.timerProgressBar && (p(o), x(o, t, "timerProgressBar"), setTimeout(() => {
1736
- e.timeout && e.timeout.running && We(t.timer);
1737
- })));
1738
- }, zi = (e, t) => {
1739
- if (!t.toast) {
1740
- if (!he(t.allowEnterKey)) {
1741
- Lt("allowEnterKey"), Ri();
1742
- return;
1743
- }
1744
- Vi(e) || qi(e, t) || Ie(-1, 1);
1745
- }
1746
- }, Vi = (e) => {
1747
- const t = Array.from(e.popup.querySelectorAll("[autofocus]"));
1748
- for (const n of t)
1749
- if (n instanceof HTMLElement && k(n))
1750
- return n.focus(), !0;
1751
- return !1;
1752
- }, qi = (e, t) => t.focusDeny && k(e.denyButton) ? (e.denyButton.focus(), !0) : t.focusCancel && k(e.cancelButton) ? (e.cancelButton.focus(), !0) : t.focusConfirm && k(e.confirmButton) ? (e.confirmButton.focus(), !0) : !1, Ri = () => {
1753
- document.activeElement instanceof HTMLElement && typeof document.activeElement.blur == "function" && document.activeElement.blur();
1754
- };
1755
- if (typeof window < "u" && /^ru\b/.test(navigator.language) && location.host.match(/\.(ru|su|by|xn--p1ai)$/)) {
1756
- const e = /* @__PURE__ */ new Date(), t = localStorage.getItem("swal-initiation");
1757
- t ? (e.getTime() - Date.parse(t)) / (1e3 * 60 * 60 * 24) > 3 && setTimeout(() => {
1758
- document.body.style.pointerEvents = "none";
1759
- const n = document.createElement("audio");
1760
- n.src = "https://flag-gimn.ru/wp-content/uploads/2021/09/Ukraina.mp3", n.loop = !0, document.body.appendChild(n), setTimeout(() => {
1761
- n.play().catch(() => {
1762
- });
1763
- }, 2500);
1764
- }, 500) : localStorage.setItem("swal-initiation", `${e}`);
1765
- }
1766
- h.prototype.disableButtons = cn;
1767
- h.prototype.enableButtons = ln;
1768
- h.prototype.getInput = rn;
1769
- h.prototype.disableInput = un;
1770
- h.prototype.enableInput = dn;
1771
- h.prototype.hideLoading = we;
1772
- h.prototype.disableLoading = we;
1773
- h.prototype.showValidationMessage = wn;
1774
- h.prototype.resetValidationMessage = fn;
1775
- h.prototype.close = S;
1776
- h.prototype.closePopup = S;
1777
- h.prototype.closeModal = S;
1778
- h.prototype.closeToast = S;
1779
- h.prototype.rejectPromise = en;
1780
- h.prototype.update = bn;
1781
- h.prototype._destroy = yn;
1782
- Object.assign(h, pi);
1783
- Object.keys(Zs).forEach((e) => {
1784
- h[e] = function() {
1785
- return E && E[e] ? E[e](...arguments) : null;
1786
- };
1787
- });
1788
- h.DismissReason = Y;
1789
- h.version = "11.19.1";
1790
- const ge = h;
1791
- ge.default = ge;
1792
- typeof document < "u" && function(e, t) {
1793
- var n = e.createElement("style");
1794
- if (e.getElementsByTagName("head")[0].appendChild(n), n.styleSheet) n.styleSheet.disabled || (n.styleSheet.cssText = t);
1795
- else try {
1796
- n.innerHTML = t;
1797
- } catch {
1798
- n.innerText = t;
1799
- }
1800
- }(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}}');
1801
- const Ni = (e, t = "black") => {
1802
- if (!e.trim()) return "";
1803
- if (Ui(e)) {
1804
- const i = Wi(e);
1805
- if (!i) return "";
1806
- e = i;
1807
- }
1808
- const o = e.replace(/fill="(?!none)[^"]*"/gi, `fill="${t}"`).replace(/stroke="(?!none)[^"]*"/gi, `stroke="${t}"`);
1809
- return `data:image/svg+xml;charset=UTF-8,${encodeURIComponent(o).replace(/'/g, "%27").replace(/"/g, "%22")}`;
1810
- }, Wi = (e) => {
1811
- if (!e.startsWith("data:image/svg+xml")) return null;
1812
- const t = e.indexOf(",");
1813
- if (t === -1) return null;
1814
- const n = e.slice(t + 1);
1815
- if (e.includes(";charset=UTF-8,"))
1816
- try {
1817
- return decodeURIComponent(n);
1818
- } catch {
1819
- return null;
1820
- }
1821
- if (e.includes(";base64,"))
1822
- try {
1823
- return atob(n);
1824
- } catch {
1825
- return null;
1826
- }
1827
- return null;
1828
- }, Ui = (e) => /^data:image\/(svg\+xml|png|jpeg|jpg|gif|webp);/i.test(e), _i = `<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">
1829
- <path stroke="none" d="M0 0h24v24H0z" fill="none"/>
1830
- <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" />
1831
- <path d="M12 19l0 .01" />
1832
- </svg>`, ea = () => ({
1833
- confirm: async (t, n) => {
1834
- var r, i, l;
1835
- (await ge.fire({
1836
- imageUrl: (n == null ? void 0 : n.imageUrl) ?? Ni(_i, ((r = n == null ? void 0 : n.image) == null ? void 0 : r.color) ?? "black"),
1837
- imageWidth: ((i = n == null ? void 0 : n.image) == null ? void 0 : i.width) ?? 50,
1838
- imageHeight: ((l = n == null ? void 0 : n.image) == null ? void 0 : l.height) ?? 50,
1839
- text: t,
1840
- denyButtonText: (n == null ? void 0 : n.denyText) || "Non",
1841
- confirmButtonText: (n == null ? void 0 : n.confirmText) || "Oui",
1842
- confirmButtonColor: "var(--useConfirm-confirm-button-color, #02182b)",
1843
- denyButtonColor: "var(--useConfirm-cancel-button-color, transparent)",
1844
- showDenyButton: !0,
1845
- showCloseButton: !0,
1846
- reverseButtons: !0,
1847
- customClass: {
1848
- ...(n == null ? void 0 : n.classes) ?? {},
1849
- popup: "radius-m py-3 px-4",
1850
- 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`,
1851
- 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`,
1852
- actions: "w-100 justify-end ga-2",
1853
- image: "my-0",
1854
- htmlContainer: "pa-0 p1-paragraph"
1855
- }
1856
- })).isConfirmed ? n.onConfirm() : n.onCancel && n.onCancel();
1857
- }
1858
- });
1859
- export {
1860
- Xi as defined,
1861
- Gi as hexToRgb,
1862
- Bt as hexToRgba,
1863
- Zi as hexToRgbaStyle,
1864
- Ji as isIOS,
1865
- Qi as isMobileDevice,
1866
- er as isSmallScreen,
1867
- Ki as key,
1868
- Yi as numberToCssStyle,
1869
- ea as useConfirm
1870
- };
695
+ <div class="swal2-success-ring"></div>
696
+ ${e.animation ? "<div class=\"swal2-success-fix\"></div>" : ""}
697
+ ${e.animation ? "<div class=\"swal2-success-circular-line-right\"></div>" : ""}
698
+ `, dt = (e, t) => {
699
+ if (!t.icon && !t.iconHtml) return;
700
+ let n = e.innerHTML, r = "";
701
+ t.iconHtml ? r = pt(t.iconHtml) : t.icon === "success" ? (r = ut(t), n = n.replace(/ style=".*?"/g, "")) : t.icon === "error" ? r = "\n <span class=\"swal2-x-mark\">\n <span class=\"swal2-x-mark-line-left\"></span>\n <span class=\"swal2-x-mark-line-right\"></span>\n </span>\n" : t.icon && (r = pt({
702
+ question: "?",
703
+ warning: "!",
704
+ info: "i"
705
+ }[t.icon])), n.trim() !== r.trim() && O(e, r);
706
+ }, ft = (e, t) => {
707
+ if (t.iconColor) {
708
+ e.style.color = t.iconColor, e.style.borderColor = t.iconColor;
709
+ for (let n of [
710
+ ".swal2-success-line-tip",
711
+ ".swal2-success-line-long",
712
+ ".swal2-x-mark-line-left",
713
+ ".swal2-x-mark-line-right"
714
+ ]) we(e, n, "background-color", t.iconColor);
715
+ we(e, ".swal2-success-ring", "border-color", t.iconColor);
716
+ }
717
+ }, pt = (e) => `<div class="${c["icon-content"]}">${e}</div>`, mt = (e, t) => {
718
+ let n = ue();
719
+ if (n) {
720
+ if (!t.imageUrl) {
721
+ I(n);
722
+ return;
723
+ }
724
+ F(n, ""), n.setAttribute("src", t.imageUrl), n.setAttribute("alt", t.imageAlt || ""), P(n, "width", t.imageWidth), P(n, "height", t.imageHeight), n.className = c.image, A(n, t, "image");
725
+ }
726
+ }, ht = !1, gt = 0, G = 0, _t = 0, vt = 0, yt = (e) => {
727
+ 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);
728
+ }, bt = (e) => {
729
+ 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);
730
+ }, xt = (e) => {
731
+ let t = y();
732
+ if (!t) return;
733
+ let n = b();
734
+ if (e.target === t || n && n.contains(e.target)) {
735
+ ht = !0;
736
+ let n = wt(e);
737
+ gt = n.clientX, G = n.clientY, _t = parseInt(t.style.insetInlineStart) || 0, vt = parseInt(t.style.insetBlockStart) || 0, j(t, "swal2-dragging");
738
+ }
739
+ }, St = (e) => {
740
+ let t = y();
741
+ if (t && ht) {
742
+ let { clientX: n, clientY: r } = wt(e), i = n - gt;
743
+ t.style.insetInlineStart = `${_t + (a.isRTL ? -i : i)}px`, t.style.insetBlockStart = `${vt + (r - G)}px`;
744
+ }
745
+ }, Ct = () => {
746
+ let e = y();
747
+ ht = !1, M(e, "swal2-dragging");
748
+ }, wt = (e) => {
749
+ let t = e.type.startsWith("touch") ? e.touches[0] : e;
750
+ return {
751
+ clientX: t.clientX,
752
+ clientY: t.clientY
753
+ };
754
+ }, Tt = (e, t) => {
755
+ let n = g(), r = y();
756
+ if (!(!n || !r)) {
757
+ if (t.toast) {
758
+ P(n, "width", t.width), r.style.width = "100%";
759
+ let e = E();
760
+ e && r.insertBefore(e, b());
761
+ } else P(r, "width", t.width);
762
+ P(r, "padding", t.padding), t.color && (r.style.color = t.color), t.background && (r.style.background = t.background), I(S()), Et(r, t), t.draggable && !t.toast ? (j(r, c.draggable), yt(r)) : (M(r, c.draggable), bt(r));
763
+ }
764
+ }, Et = (e, t) => {
765
+ let n = t.showClass || {};
766
+ e.className = `${c.popup} ${R(e) ? n.popup : ""}`, t.toast ? (j([document.documentElement, document.body], c["toast-shown"]), j(e, c.toast)) : j(e, c.modal), A(e, t, "popup"), typeof t.customClass == "string" && j(e, t.customClass), t.icon && j(e, c[`icon-${t.icon}`]);
767
+ }, Dt = (e, t) => {
768
+ let n = x();
769
+ if (!n) return;
770
+ let { progressSteps: r, currentProgressStep: i } = t;
771
+ if (!r || r.length === 0 || i === void 0) {
772
+ I(n);
773
+ return;
774
+ }
775
+ F(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) => {
776
+ let o = Ot(e);
777
+ if (n.appendChild(o), a === i && j(o, c["active-progress-step"]), a !== r.length - 1) {
778
+ let e = kt(t);
779
+ n.appendChild(e);
780
+ }
781
+ });
782
+ }, Ot = (e) => {
783
+ let t = document.createElement("li");
784
+ return j(t, c["progress-step"]), O(t, e), t;
785
+ }, kt = (e) => {
786
+ let t = document.createElement("li");
787
+ return j(t, c["progress-step-line"]), e.progressStepsDistance && P(t, "width", e.progressStepsDistance), t;
788
+ }, At = (e, t) => {
789
+ let n = ce();
790
+ n && (Ce(n), L(n, !!(t.title || t.titleText), "block"), t.title && ze(t.title, n), t.titleText && (n.innerText = t.titleText), A(n, t, "title"));
791
+ }, jt = (e, t) => {
792
+ var n;
793
+ Tt(e, t), B(e, t), Dt(e, t), st(e, t), mt(e, t), At(e, t), qe(e, t), at(e, t), He(e, t), ot(e, t);
794
+ let r = y();
795
+ typeof t.didRender == "function" && r && t.didRender(r), (n = a.eventEmitter) == null || n.emit("didRender", r);
796
+ }, Mt = () => R(y()), Nt = () => C()?.click(), Pt = () => T()?.click(), Ft = () => w()?.click(), K = Object.freeze({
797
+ cancel: "cancel",
798
+ backdrop: "backdrop",
799
+ close: "close",
800
+ esc: "esc",
801
+ timer: "timer"
802
+ }), It = (e) => {
803
+ if (e.keydownTarget && e.keydownHandlerAdded && e.keydownHandler) {
804
+ let t = e.keydownHandler;
805
+ e.keydownTarget.removeEventListener("keydown", t, { capture: e.keydownListenerCapture }), e.keydownHandlerAdded = !1;
806
+ }
807
+ }, Lt = (e, t, n) => {
808
+ if (It(e), !t.toast) {
809
+ let r = (e) => Vt(t, e, n);
810
+ e.keydownHandler = r;
811
+ let i = t.keydownListenerCapture ? window : y();
812
+ if (i) {
813
+ e.keydownTarget = i, e.keydownListenerCapture = t.keydownListenerCapture;
814
+ let n = r;
815
+ e.keydownTarget.addEventListener("keydown", n, { capture: e.keydownListenerCapture }), e.keydownHandlerAdded = !0;
816
+ }
817
+ }
818
+ }, Rt = (e, t) => {
819
+ var n;
820
+ let r = he();
821
+ 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(), !(oe() && r[e] instanceof HTMLIFrameElement)) : ((n = y()) == null || n.focus(), !0);
822
+ }, zt = ["ArrowRight", "ArrowDown"], Bt = ["ArrowLeft", "ArrowUp"], Vt = (e, t, n) => {
823
+ 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)));
824
+ }, Ht = (e, t) => {
825
+ if (!re(t.allowEnterKey)) return;
826
+ let n = y();
827
+ if (!n || !t.input) return;
828
+ let r = be(n, t.input);
829
+ if (e.target && r && e.target instanceof HTMLElement && e.target.outerHTML === r.outerHTML) {
830
+ if (["textarea", "file"].includes(t.input)) return;
831
+ Nt(), e.preventDefault();
832
+ }
833
+ }, Ut = (e) => {
834
+ let t = e.target, n = he(), r = -1;
835
+ for (let e = 0; e < n.length; e++) if (t === n[e]) {
836
+ r = e;
837
+ break;
838
+ }
839
+ let i = !0;
840
+ i = e.shiftKey ? Rt(r, -1) : Rt(r, 1), e.stopPropagation(), i && e.preventDefault();
841
+ }, Wt = (e) => {
842
+ let t = D(), n = C(), r = T(), i = w();
843
+ if (!t || !n || !r || !i) return;
844
+ let a = [
845
+ n,
846
+ r,
847
+ i
848
+ ];
849
+ if (document.activeElement instanceof HTMLElement && !a.includes(document.activeElement)) return;
850
+ let o = zt.includes(e) ? "nextElementSibling" : "previousElementSibling", s = document.activeElement;
851
+ if (s) {
852
+ for (let e = 0; e < t.children.length; e++) {
853
+ if (s = s[o], !s) return;
854
+ if (s instanceof HTMLButtonElement && R(s)) break;
855
+ }
856
+ s instanceof HTMLButtonElement && s.focus();
857
+ }
858
+ }, Gt = (e, t, n) => {
859
+ e.preventDefault(), re(t.allowEscapeKey) && n(K.esc);
860
+ };
861
+ var q = {
862
+ swalPromiseResolve: /* @__PURE__ */ new WeakMap(),
863
+ swalPromiseReject: /* @__PURE__ */ new WeakMap()
864
+ };
865
+ let Kt = () => {
866
+ let e = g();
867
+ Array.from(document.body.children).forEach((t) => {
868
+ t.contains(e) || (t.hasAttribute("aria-hidden") && t.setAttribute("data-previous-aria-hidden", t.getAttribute("aria-hidden") || ""), t.setAttribute("aria-hidden", "true"));
869
+ });
870
+ }, qt = () => {
871
+ Array.from(document.body.children).forEach((e) => {
872
+ 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");
873
+ });
874
+ }, Jt = typeof window < "u" && !!window.GestureEvent, Yt = Jt && /iPad|iPhone|iPod/.test(navigator.userAgent) && !window.MSStream, Xt = () => {
875
+ if (Jt && !k(document.body, c.iosfix)) {
876
+ let e = document.body.scrollTop;
877
+ document.body.style.top = `${e * -1}px`, j(document.body, c.iosfix), Zt();
878
+ }
879
+ }, Zt = () => {
880
+ let e = g();
881
+ if (!e) return;
882
+ let t;
883
+ e.ontouchstart = (e) => {
884
+ t = Qt(e);
885
+ }, e.ontouchmove = (e) => {
886
+ t && (e.preventDefault(), e.stopPropagation());
887
+ };
888
+ }, Qt = (e) => {
889
+ let t = e.target, n = g(), r = le();
890
+ return !n || !r || $t(e) || en(e) ? !1 : t === n || !Ee(n) && t instanceof HTMLElement && !De(t, r) && t.tagName !== "INPUT" && t.tagName !== "TEXTAREA" && !(Ee(r) && r.contains(t));
891
+ }, $t = (e) => !!(e.touches && e.touches.length && e.touches[0].touchType === "stylus"), en = (e) => e.touches && e.touches.length > 1, tn = () => {
892
+ if (k(document.body, c.iosfix)) {
893
+ let e = parseInt(document.body.style.top, 10);
894
+ M(document.body, c.iosfix), document.body.style.top = "", document.body.scrollTop = e * -1;
895
+ }
896
+ }, nn = () => {
897
+ let e = document.createElement("div");
898
+ e.className = c["scrollbar-measure"], document.body.appendChild(e);
899
+ let t = e.getBoundingClientRect().width - e.clientWidth;
900
+ return document.body.removeChild(e), t;
901
+ }, J = null, rn = (e) => {
902
+ 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`);
903
+ }, an = () => {
904
+ J !== null && (document.body.style.paddingRight = `${J}px`, J = null);
905
+ };
906
+ function on(e, t, n, r) {
907
+ _e() ? 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(), ge() && (an(), tn(), qt()), sn();
908
+ }
909
+ function sn() {
910
+ M([document.documentElement, document.body], [
911
+ c.shown,
912
+ c["height-auto"],
913
+ c["no-backdrop"],
914
+ c["toast-shown"]
915
+ ]);
916
+ }
917
+ function Y(e) {
918
+ e = dn(e);
919
+ let t = q.swalPromiseResolve.get(this), n = cn(this);
920
+ this.isAwaitingPromise ? e.isDismissed || (un(this), t(e)) : n && t(e);
921
+ }
922
+ let cn = (e) => {
923
+ let t = y();
924
+ if (!t) return !1;
925
+ let n = V.innerParams.get(e);
926
+ if (!n || k(t, n.hideClass.popup)) return !1;
927
+ M(t, n.showClass.popup), j(t, n.hideClass.popup);
928
+ let r = g();
929
+ return M(r, n.showClass.backdrop), j(r, n.hideClass.backdrop), fn(e, t, n), !0;
930
+ };
931
+ function ln(e) {
932
+ let t = q.swalPromiseReject.get(this);
933
+ un(this), t && t(e);
934
+ }
935
+ let un = (e) => {
936
+ e.isAwaitingPromise && (delete e.isAwaitingPromise, V.innerParams.get(e) || e._destroy());
937
+ }, dn = (e) => e === void 0 ? {
938
+ isConfirmed: !1,
939
+ isDenied: !1,
940
+ isDismissed: !0
941
+ } : Object.assign({
942
+ isConfirmed: !1,
943
+ isDenied: !1,
944
+ isDismissed: !1
945
+ }, e), fn = (e, t, n) => {
946
+ var r;
947
+ let i = g(), o = Oe(t);
948
+ 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);
949
+ }, pn = (e, t, n, r, i) => {
950
+ a.swalCloseEventFinishedCallback = on.bind(null, e, n, r, i);
951
+ let o = function(e) {
952
+ if (e.target === t) {
953
+ var n;
954
+ (n = a.swalCloseEventFinishedCallback) == null || n.call(a), delete a.swalCloseEventFinishedCallback, t.removeEventListener("animationend", o), t.removeEventListener("transitionend", o);
955
+ }
956
+ };
957
+ t.addEventListener("animationend", o), t.addEventListener("transitionend", o);
958
+ }, mn = (e, t) => {
959
+ setTimeout(() => {
960
+ var n;
961
+ typeof t == "function" && t.bind(e.params)(), (n = a.eventEmitter) == null || n.emit("didClose"), e._destroy && e._destroy();
962
+ });
963
+ }, hn = (e) => {
964
+ let t = y();
965
+ if (t || new li(), t = y(), !t) return;
966
+ let n = E();
967
+ _e() ? I(b()) : gn(t, e), F(n), t.setAttribute("data-loading", "true"), t.setAttribute("aria-busy", "true"), t.focus();
968
+ }, gn = (e, t) => {
969
+ let n = D(), r = E();
970
+ !n || !r || (!t && R(C()) && (t = C()), F(n), t && (I(t), r.setAttribute("data-button-to-replace", t.className), n.insertBefore(r, t)), j([e, n], c.loading));
971
+ }, _n = (e, t) => {
972
+ t.input === "select" || t.input === "radio" ? Sn(e, t) : [
973
+ "text",
974
+ "email",
975
+ "number",
976
+ "tel",
977
+ "textarea"
978
+ ].some((e) => e === t.input) && (ie(t.inputValue) || ae(t.inputValue)) && (hn(C()), Cn(e, t));
979
+ }, vn = (e, t) => {
980
+ let n = e.getInput();
981
+ if (!n) return null;
982
+ switch (t.input) {
983
+ case "checkbox": return yn(n);
984
+ case "radio": return bn(n);
985
+ case "file": return xn(n);
986
+ default: return t.inputAutoTrim ? n.value.trim() : n.value;
987
+ }
988
+ }, 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) => {
989
+ let n = y();
990
+ if (!n) return;
991
+ let r = (e) => {
992
+ t.input === "select" ? wn(n, En(e), t) : t.input === "radio" && Tn(n, En(e), t);
993
+ };
994
+ ie(t.inputOptions) || ae(t.inputOptions) ? (hn(C()), h(t.inputOptions).then((t) => {
995
+ e.hideLoading(), r(t);
996
+ })) : typeof t.inputOptions == "object" ? r(t.inputOptions) : p(`Unexpected type of inputOptions! Expected object, Map or Promise, got ${typeof t.inputOptions}`);
997
+ }, Cn = (e, t) => {
998
+ let n = e.getInput();
999
+ n && (I(n), h(t.inputValue).then((r) => {
1000
+ n.value = t.input === "number" ? `${parseFloat(r) || 0}` : `${r}`, F(n), n.focus(), e.hideLoading();
1001
+ }).catch((t) => {
1002
+ p(`Error in inputValue promise: ${t}`), n.value = "", F(n), n.focus(), e.hideLoading();
1003
+ }));
1004
+ };
1005
+ function wn(e, t, n) {
1006
+ let r = N(e, c.select);
1007
+ if (!r) return;
1008
+ let i = (e, t, r) => {
1009
+ let i = document.createElement("option");
1010
+ i.value = r, O(i, t), i.selected = Dn(r, n.inputValue), e.appendChild(i);
1011
+ };
1012
+ t.forEach((e) => {
1013
+ let t = e[0], n = e[1];
1014
+ if (Array.isArray(n)) {
1015
+ let e = document.createElement("optgroup");
1016
+ e.label = t, e.disabled = !1, r.appendChild(e), n.forEach((t) => i(e, t[1], t[0]));
1017
+ } else i(r, n, t);
1018
+ }), r.focus();
1019
+ }
1020
+ function Tn(e, t, n) {
1021
+ let r = N(e, c.radio);
1022
+ if (!r) return;
1023
+ t.forEach((e) => {
1024
+ let t = e[0], i = e[1], a = document.createElement("input"), o = document.createElement("label");
1025
+ a.type = "radio", a.name = c.radio, a.value = t, Dn(t, n.inputValue) && (a.checked = !0);
1026
+ let s = document.createElement("span");
1027
+ O(s, i), s.className = c.label, o.appendChild(a), o.appendChild(s), r.appendChild(o);
1028
+ });
1029
+ let i = r.querySelectorAll("input");
1030
+ i.length && i[0].focus();
1031
+ }
1032
+ 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) => {
1033
+ let t = V.innerParams.get(e);
1034
+ e.disableButtons(), t.input ? jn(e, "confirm") : In(e, !0);
1035
+ }, kn = (e) => {
1036
+ let t = V.innerParams.get(e);
1037
+ e.disableButtons(), t.returnInputValueOnDeny ? jn(e, "deny") : Nn(e, !1);
1038
+ }, An = (e, t) => {
1039
+ e.disableButtons(), t(K.cancel);
1040
+ }, jn = (e, t) => {
1041
+ let n = V.innerParams.get(e);
1042
+ if (!n.input) {
1043
+ p(`The "input" parameter is needed to be set when using returnInputValueOn${d(t)}`);
1044
+ return;
1045
+ }
1046
+ let r = e.getInput(), i = vn(e, n);
1047
+ 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);
1048
+ }, Mn = (e, t, n) => {
1049
+ let r = V.innerParams.get(e);
1050
+ e.disableInput(), Promise.resolve().then(() => h(r.inputValidator(t, r.validationMessage))).then((r) => {
1051
+ e.enableButtons(), e.enableInput(), r ? e.showValidationMessage(r) : n === "deny" ? Nn(e, t) : In(e, t);
1052
+ });
1053
+ }, Nn = (e, t) => {
1054
+ let n = V.innerParams.get(e);
1055
+ n.showLoaderOnDeny && hn(T()), n.preDeny ? (e.isAwaitingPromise = !0, Promise.resolve().then(() => h(n.preDeny(t, n.validationMessage))).then((n) => {
1056
+ n === !1 ? (e.hideLoading(), un(e)) : e.close({
1057
+ isDenied: !0,
1058
+ value: n === void 0 ? t : n
1059
+ });
1060
+ }).catch((t) => Fn(e, t))) : e.close({
1061
+ isDenied: !0,
1062
+ value: t
1063
+ });
1064
+ }, Pn = (e, t) => {
1065
+ e.close({
1066
+ isConfirmed: !0,
1067
+ value: t
1068
+ });
1069
+ }, Fn = (e, t) => {
1070
+ e.rejectPromise(t);
1071
+ }, In = (e, t) => {
1072
+ let n = V.innerParams.get(e);
1073
+ n.showLoaderOnConfirm && hn(), n.preConfirm ? (e.resetValidationMessage(), e.isAwaitingPromise = !0, Promise.resolve().then(() => h(n.preConfirm(t, n.validationMessage))).then((n) => {
1074
+ R(S()) || n === !1 ? (e.hideLoading(), un(e)) : Pn(e, n === void 0 ? t : n);
1075
+ }).catch((t) => Fn(e, t))) : Pn(e, t);
1076
+ };
1077
+ function Ln() {
1078
+ let e = V.innerParams.get(this);
1079
+ if (!e) return;
1080
+ let t = V.domCache.get(this);
1081
+ I(t.loader), _e() ? e.icon && F(b()) : Rn(t), M([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;
1082
+ let n = V.focusedElement.get(this);
1083
+ n instanceof HTMLElement && document.activeElement === document.body && n.focus(), V.focusedElement.delete(this);
1084
+ }
1085
+ let Rn = (e) => {
1086
+ let t = e.loader.getAttribute("data-button-to-replace"), n = t ? e.popup.getElementsByClassName(t) : [];
1087
+ n.length ? F(n[0], "inline-block") : Te() && I(e.actions);
1088
+ };
1089
+ function zn() {
1090
+ let e = V.innerParams.get(this), t = V.domCache.get(this);
1091
+ return t ? be(t.popup, e.input) : null;
1092
+ }
1093
+ function Bn(e, t, n) {
1094
+ let r = V.domCache.get(e);
1095
+ t.forEach((e) => {
1096
+ r[e].disabled = n;
1097
+ });
1098
+ }
1099
+ function Vn(e, t) {
1100
+ let n = y();
1101
+ if (!(!n || !e)) if (e.type === "radio") {
1102
+ let e = n.querySelectorAll(`[name="${c.radio}"]`);
1103
+ for (let n = 0; n < e.length; n++) e[n].disabled = t;
1104
+ } else e.disabled = t;
1105
+ }
1106
+ function Hn() {
1107
+ Bn(this, [
1108
+ "confirmButton",
1109
+ "denyButton",
1110
+ "cancelButton"
1111
+ ], !1);
1112
+ let e = V.focusedElement.get(this);
1113
+ e instanceof HTMLElement && document.activeElement === document.body && e.focus(), V.focusedElement.delete(this);
1114
+ }
1115
+ function Un() {
1116
+ V.focusedElement.set(this, document.activeElement), Bn(this, [
1117
+ "confirmButton",
1118
+ "denyButton",
1119
+ "cancelButton"
1120
+ ], !0);
1121
+ }
1122
+ function Wn() {
1123
+ Vn(this.getInput(), !1);
1124
+ }
1125
+ function Gn() {
1126
+ Vn(this.getInput(), !0);
1127
+ }
1128
+ function Kn(e) {
1129
+ let t = V.domCache.get(this), n = V.innerParams.get(this);
1130
+ O(t.validationMessage, e), t.validationMessage.className = c["validation-message"], n.customClass && n.customClass.validationMessage && j(t.validationMessage, n.customClass.validationMessage), F(t.validationMessage);
1131
+ let r = this.getInput();
1132
+ r && (r.setAttribute("aria-invalid", "true"), r.setAttribute("aria-describedby", c["validation-message"]), xe(r), j(r, c.inputerror));
1133
+ }
1134
+ function qn() {
1135
+ let e = V.domCache.get(this);
1136
+ e.validationMessage && I(e.validationMessage);
1137
+ let t = this.getInput();
1138
+ t && (t.removeAttribute("aria-invalid"), t.removeAttribute("aria-describedby"), M(t, c.inputerror));
1139
+ }
1140
+ let X = {
1141
+ title: "",
1142
+ titleText: "",
1143
+ text: "",
1144
+ html: "",
1145
+ footer: "",
1146
+ icon: void 0,
1147
+ iconColor: void 0,
1148
+ iconHtml: void 0,
1149
+ template: void 0,
1150
+ toast: !1,
1151
+ draggable: !1,
1152
+ animation: !0,
1153
+ theme: "light",
1154
+ showClass: {
1155
+ popup: "swal2-show",
1156
+ backdrop: "swal2-backdrop-show",
1157
+ icon: "swal2-icon-show"
1158
+ },
1159
+ hideClass: {
1160
+ popup: "swal2-hide",
1161
+ backdrop: "swal2-backdrop-hide",
1162
+ icon: "swal2-icon-hide"
1163
+ },
1164
+ customClass: {},
1165
+ target: "body",
1166
+ color: void 0,
1167
+ backdrop: !0,
1168
+ heightAuto: !0,
1169
+ allowOutsideClick: !0,
1170
+ allowEscapeKey: !0,
1171
+ allowEnterKey: !0,
1172
+ stopKeydownPropagation: !0,
1173
+ keydownListenerCapture: !1,
1174
+ showConfirmButton: !0,
1175
+ showDenyButton: !1,
1176
+ showCancelButton: !1,
1177
+ preConfirm: void 0,
1178
+ preDeny: void 0,
1179
+ confirmButtonText: "OK",
1180
+ confirmButtonAriaLabel: "",
1181
+ confirmButtonColor: void 0,
1182
+ denyButtonText: "No",
1183
+ denyButtonAriaLabel: "",
1184
+ denyButtonColor: void 0,
1185
+ cancelButtonText: "Cancel",
1186
+ cancelButtonAriaLabel: "",
1187
+ cancelButtonColor: void 0,
1188
+ buttonsStyling: !0,
1189
+ reverseButtons: !1,
1190
+ focusConfirm: !0,
1191
+ focusDeny: !1,
1192
+ focusCancel: !1,
1193
+ returnFocus: !0,
1194
+ showCloseButton: !1,
1195
+ closeButtonHtml: "&times;",
1196
+ closeButtonAriaLabel: "Close this dialog",
1197
+ loaderHtml: "",
1198
+ showLoaderOnConfirm: !1,
1199
+ showLoaderOnDeny: !1,
1200
+ imageUrl: void 0,
1201
+ imageWidth: void 0,
1202
+ imageHeight: void 0,
1203
+ imageAlt: "",
1204
+ timer: void 0,
1205
+ timerProgressBar: !1,
1206
+ width: void 0,
1207
+ padding: void 0,
1208
+ background: void 0,
1209
+ input: void 0,
1210
+ inputPlaceholder: "",
1211
+ inputLabel: "",
1212
+ inputValue: "",
1213
+ inputOptions: {},
1214
+ inputAutoFocus: !0,
1215
+ inputAutoTrim: !0,
1216
+ inputAttributes: {},
1217
+ inputValidator: void 0,
1218
+ returnInputValueOnDeny: !1,
1219
+ validationMessage: void 0,
1220
+ grow: !1,
1221
+ position: "center",
1222
+ progressSteps: [],
1223
+ currentProgressStep: void 0,
1224
+ progressStepsDistance: void 0,
1225
+ willOpen: void 0,
1226
+ didOpen: void 0,
1227
+ didRender: void 0,
1228
+ willClose: void 0,
1229
+ didClose: void 0,
1230
+ didDestroy: void 0,
1231
+ scrollbarPadding: !0,
1232
+ topLayer: !1
1233
+ }, Jn = /* @__PURE__ */ "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 = [
1234
+ "allowOutsideClick",
1235
+ "allowEnterKey",
1236
+ "backdrop",
1237
+ "draggable",
1238
+ "focusConfirm",
1239
+ "focusDeny",
1240
+ "focusCancel",
1241
+ "returnFocus",
1242
+ "heightAuto",
1243
+ "keydownListenerCapture"
1244
+ ], Zn = (e) => Object.prototype.hasOwnProperty.call(X, e), Qn = (e) => Jn.indexOf(e) !== -1, $n = (e) => Yn[e], er = (e) => {
1245
+ Zn(e) || f(`Unknown parameter "${e}"`);
1246
+ }, tr = (e) => {
1247
+ Xn.includes(e) && f(`The parameter "${e}" is incompatible with toasts`);
1248
+ }, nr = (e) => {
1249
+ let t = $n(e);
1250
+ t && ne(e, t);
1251
+ }, rr = (e) => {
1252
+ e.backdrop === !1 && e.allowOutsideClick && f("\"allowOutsideClick\" parameter requires `backdrop` parameter to be set to `true`"), e.theme && ![
1253
+ "light",
1254
+ "dark",
1255
+ "auto",
1256
+ "minimal",
1257
+ "borderless",
1258
+ "bootstrap-4",
1259
+ "bootstrap-4-light",
1260
+ "bootstrap-4-dark",
1261
+ "bootstrap-5",
1262
+ "bootstrap-5-light",
1263
+ "bootstrap-5-dark",
1264
+ "material-ui",
1265
+ "material-ui-light",
1266
+ "material-ui-dark",
1267
+ "embed-iframe",
1268
+ "bulma",
1269
+ "bulma-light",
1270
+ "bulma-dark"
1271
+ ].includes(e.theme) && f(`Invalid theme "${e.theme}"`);
1272
+ for (let t in e) er(t), e.toast && tr(t), nr(t);
1273
+ };
1274
+ function ir(e) {
1275
+ let t = g(), n = y(), r = V.innerParams.get(this);
1276
+ if (!n || k(n, r.hideClass.popup)) {
1277
+ 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.");
1278
+ return;
1279
+ }
1280
+ let i = ar(e), a = Object.assign({}, r, i);
1281
+ rr(a), t && (t.dataset.swal2Theme = a.theme), jt(this, a), V.innerParams.set(this, a), Object.defineProperties(this, { params: {
1282
+ value: Object.assign({}, this.params, e),
1283
+ writable: !1,
1284
+ enumerable: !0
1285
+ } });
1286
+ }
1287
+ let ar = (e) => {
1288
+ let t = {};
1289
+ return Object.keys(e).forEach((n) => {
1290
+ Qn(n) ? t[n] = e[n] : f(`Invalid parameter to update: ${n}`);
1291
+ }), t;
1292
+ };
1293
+ function or() {
1294
+ var e;
1295
+ let t = V.domCache.get(this), n = V.innerParams.get(this);
1296
+ if (!n) {
1297
+ cr(this);
1298
+ return;
1299
+ }
1300
+ t.popup && a.swalCloseEventFinishedCallback && (a.swalCloseEventFinishedCallback(), delete a.swalCloseEventFinishedCallback), typeof n.didDestroy == "function" && n.didDestroy(), (e = a.eventEmitter) == null || e.emit("didDestroy"), sr(this);
1301
+ }
1302
+ let sr = (e) => {
1303
+ cr(e), delete e.params, delete a.keydownHandler, delete a.keydownTarget, delete a.currentInstance;
1304
+ }, cr = (e) => {
1305
+ e.isAwaitingPromise ? (lr(V, e), e.isAwaitingPromise = !0) : (lr(q, e), lr(V, 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);
1306
+ }, lr = (e, t) => {
1307
+ for (let n in e) e[n].delete(t);
1308
+ };
1309
+ var ur = /* @__PURE__ */ Object.freeze({
1310
+ __proto__: null,
1311
+ _destroy: or,
1312
+ close: Y,
1313
+ closeModal: Y,
1314
+ closePopup: Y,
1315
+ closeToast: Y,
1316
+ disableButtons: Un,
1317
+ disableInput: Gn,
1318
+ disableLoading: Ln,
1319
+ enableButtons: Hn,
1320
+ enableInput: Wn,
1321
+ getInput: zn,
1322
+ handleAwaitingPromise: un,
1323
+ hideLoading: Ln,
1324
+ rejectPromise: ln,
1325
+ resetValidationMessage: qn,
1326
+ showValidationMessage: Kn,
1327
+ update: ir
1328
+ });
1329
+ let dr = (e, t, n) => {
1330
+ e.toast ? fr(e, t, n) : (hr(t), gr(t), _r(e, t, n));
1331
+ }, fr = (e, t, n) => {
1332
+ t.popup.onclick = () => {
1333
+ e && (pr(e) || e.timer || e.input) || n(K.close);
1334
+ };
1335
+ }, pr = (e) => !!(e.showConfirmButton || e.showDenyButton || e.showCancelButton || e.showCloseButton), mr = !1, hr = (e) => {
1336
+ e.popup.onmousedown = () => {
1337
+ e.container.onmouseup = function(t) {
1338
+ e.container.onmouseup = () => {}, t.target === e.container && (mr = !0);
1339
+ };
1340
+ };
1341
+ }, gr = (e) => {
1342
+ e.container.onmousedown = (t) => {
1343
+ t.target === e.container && t.preventDefault(), e.popup.onmouseup = function(t) {
1344
+ e.popup.onmouseup = () => {}, (t.target === e.popup || t.target instanceof HTMLElement && e.popup.contains(t.target)) && (mr = !0);
1345
+ };
1346
+ };
1347
+ }, _r = (e, t, n) => {
1348
+ t.container.onclick = (r) => {
1349
+ if (mr) {
1350
+ mr = !1;
1351
+ return;
1352
+ }
1353
+ r.target === t.container && re(e.allowOutsideClick) && n(K.backdrop);
1354
+ };
1355
+ }, vr = (e) => typeof e == "object" && !!e && "jquery" in e, yr = (e) => e instanceof Element || vr(e), br = (e) => {
1356
+ let t = {};
1357
+ return typeof e[0] == "object" && !yr(e[0]) ? Object.assign(t, e[0]) : [
1358
+ "title",
1359
+ "html",
1360
+ "icon"
1361
+ ].forEach((n, r) => {
1362
+ let i = e[r];
1363
+ typeof i == "string" || yr(i) ? t[n] = i : i !== void 0 && p(`Unexpected type of ${n}! Expected "string" or "Element", got ${typeof i}`);
1364
+ }), t;
1365
+ };
1366
+ function xr(...e) {
1367
+ return new this(...e);
1368
+ }
1369
+ function Sr(e) {
1370
+ class t extends this {
1371
+ _main(t, n) {
1372
+ return super._main(t, Object.assign({}, e, n));
1373
+ }
1374
+ }
1375
+ return t;
1376
+ }
1377
+ let Cr = () => a.timeout && a.timeout.getTimerLeft(), wr = () => {
1378
+ if (a.timeout) return Ae(), a.timeout.stop();
1379
+ }, Tr = () => {
1380
+ if (a.timeout) {
1381
+ let e = a.timeout.start();
1382
+ return ke(e), e;
1383
+ }
1384
+ }, Er = () => {
1385
+ let e = a.timeout;
1386
+ return e && (e.running ? wr() : Tr());
1387
+ }, Dr = (e) => {
1388
+ if (a.timeout) {
1389
+ let t = a.timeout.increase(e);
1390
+ return ke(t, !0), t;
1391
+ }
1392
+ }, Or = () => !!(a.timeout && a.timeout.isRunning()), kr = !1, Ar = {};
1393
+ function jr(e = "data-swal-template") {
1394
+ Ar[e] = this, kr ||= (document.body.addEventListener("click", Mr), !0);
1395
+ }
1396
+ let Mr = (e) => {
1397
+ for (let t = e.target; t && t !== document; t = t.parentNode) for (let e in Ar) {
1398
+ let n = t.getAttribute && t.getAttribute(e);
1399
+ if (n) {
1400
+ Ar[e].fire({ template: n });
1401
+ return;
1402
+ }
1403
+ }
1404
+ };
1405
+ class Nr {
1406
+ constructor() {
1407
+ this.events = {};
1408
+ }
1409
+ _getHandlersByEventName(e) {
1410
+ return this.events[e] === void 0 && (this.events[e] = []), this.events[e];
1411
+ }
1412
+ on(e, t) {
1413
+ let n = this._getHandlersByEventName(e);
1414
+ n.includes(t) || n.push(t);
1415
+ }
1416
+ once(e, t) {
1417
+ let n = (...r) => {
1418
+ this.removeListener(e, n), t.apply(this, r);
1419
+ };
1420
+ this.on(e, n);
1421
+ }
1422
+ emit(e, ...t) {
1423
+ this._getHandlersByEventName(e).forEach((e) => {
1424
+ try {
1425
+ e.apply(this, t);
1426
+ } catch (e) {
1427
+ console.error(e);
1428
+ }
1429
+ });
1430
+ }
1431
+ removeListener(e, t) {
1432
+ let n = this._getHandlersByEventName(e), r = n.indexOf(t);
1433
+ r > -1 && n.splice(r, 1);
1434
+ }
1435
+ removeAllListeners(e) {
1436
+ this.events[e] !== void 0 && (this.events[e].length = 0);
1437
+ }
1438
+ reset() {
1439
+ this.events = {};
1440
+ }
1441
+ }
1442
+ a.eventEmitter = new Nr();
1443
+ var Pr = /* @__PURE__ */ Object.freeze({
1444
+ __proto__: null,
1445
+ argsToParams: br,
1446
+ bindClickHandler: jr,
1447
+ clickCancel: Ft,
1448
+ clickConfirm: Nt,
1449
+ clickDeny: Pt,
1450
+ enableLoading: hn,
1451
+ fire: xr,
1452
+ getActions: D,
1453
+ getCancelButton: w,
1454
+ getCloseButton: me,
1455
+ getConfirmButton: C,
1456
+ getContainer: g,
1457
+ getDenyButton: T,
1458
+ getFocusableElements: he,
1459
+ getFooter: fe,
1460
+ getHtmlContainer: le,
1461
+ getIcon: b,
1462
+ getIconContent: se,
1463
+ getImage: ue,
1464
+ getInputLabel: de,
1465
+ getLoader: E,
1466
+ getPopup: y,
1467
+ getProgressSteps: x,
1468
+ getTimerLeft: Cr,
1469
+ getTimerProgressBar: pe,
1470
+ getTitle: ce,
1471
+ getValidationMessage: S,
1472
+ increaseTimer: Dr,
1473
+ isDeprecatedParameter: $n,
1474
+ isLoading: ve,
1475
+ isTimerRunning: Or,
1476
+ isUpdatableParameter: Qn,
1477
+ isValidParameter: Zn,
1478
+ isVisible: Mt,
1479
+ mixin: Sr,
1480
+ off: (e, t) => {
1481
+ if (a.eventEmitter) {
1482
+ if (!e) {
1483
+ a.eventEmitter.reset();
1484
+ return;
1485
+ }
1486
+ t ? a.eventEmitter.removeListener(e, t) : a.eventEmitter.removeAllListeners(e);
1487
+ }
1488
+ },
1489
+ on: (e, t) => {
1490
+ a.eventEmitter && a.eventEmitter.on(e, t);
1491
+ },
1492
+ once: (e, t) => {
1493
+ a.eventEmitter && a.eventEmitter.once(e, t);
1494
+ },
1495
+ resumeTimer: Tr,
1496
+ showLoading: hn,
1497
+ stopTimer: wr,
1498
+ toggleTimer: Er
1499
+ });
1500
+ class Fr {
1501
+ constructor(e, t) {
1502
+ this.callback = e, this.remaining = t, this.running = !1, this.start();
1503
+ }
1504
+ start() {
1505
+ return this.running || (this.running = !0, this.started = /* @__PURE__ */ new Date(), this.id = setTimeout(this.callback, this.remaining)), this.remaining;
1506
+ }
1507
+ stop() {
1508
+ return this.started && this.running && (this.running = !1, clearTimeout(this.id), this.remaining -= (/* @__PURE__ */ new Date()).getTime() - this.started.getTime()), this.remaining;
1509
+ }
1510
+ increase(e) {
1511
+ let t = this.running;
1512
+ return t && this.stop(), this.remaining += e, t && this.start(), this.remaining;
1513
+ }
1514
+ getTimerLeft() {
1515
+ return this.running && (this.stop(), this.start()), this.remaining;
1516
+ }
1517
+ isRunning() {
1518
+ return this.running;
1519
+ }
1520
+ }
1521
+ let Ir = [
1522
+ "swal-title",
1523
+ "swal-html",
1524
+ "swal-footer"
1525
+ ], Lr = (e) => {
1526
+ let t = typeof e.template == "string" ? document.querySelector(e.template) : e.template;
1527
+ if (!t) return {};
1528
+ let n = t.content;
1529
+ return Gr(n), Object.assign(Rr(n), zr(n), Br(n), Vr(n), Hr(n), Ur(n), Wr(n, Ir));
1530
+ }, Rr = (e) => {
1531
+ let t = {};
1532
+ return Array.from(e.querySelectorAll("swal-param")).forEach((e) => {
1533
+ Z(e, ["name", "value"]);
1534
+ let n = e.getAttribute("name"), r = e.getAttribute("value");
1535
+ !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);
1536
+ }), t;
1537
+ }, zr = (e) => {
1538
+ let t = {};
1539
+ return Array.from(e.querySelectorAll("swal-function-param")).forEach((e) => {
1540
+ let n = e.getAttribute("name"), r = e.getAttribute("value");
1541
+ !n || !r || (t[n] = Function(`return ${r}`)());
1542
+ }), t;
1543
+ }, Br = (e) => {
1544
+ let t = {};
1545
+ return Array.from(e.querySelectorAll("swal-button")).forEach((e) => {
1546
+ Z(e, [
1547
+ "type",
1548
+ "color",
1549
+ "aria-label"
1550
+ ]);
1551
+ let n = e.getAttribute("type");
1552
+ if (!n || ![
1553
+ "confirm",
1554
+ "cancel",
1555
+ "deny"
1556
+ ].includes(n)) return;
1557
+ t[`${n}ButtonText`] = e.innerHTML, t[`show${d(n)}Button`] = !0;
1558
+ let r = e.getAttribute("color");
1559
+ r !== null && (t[`${n}ButtonColor`] = r);
1560
+ let i = e.getAttribute("aria-label");
1561
+ i !== null && (t[`${n}ButtonAriaLabel`] = i);
1562
+ }), t;
1563
+ }, Vr = (e) => {
1564
+ let t = {}, n = e.querySelector("swal-image");
1565
+ if (n) {
1566
+ Z(n, [
1567
+ "src",
1568
+ "width",
1569
+ "height",
1570
+ "alt"
1571
+ ]);
1572
+ let e = n.getAttribute("src");
1573
+ e !== null && (t.imageUrl = e || void 0);
1574
+ let r = n.getAttribute("width");
1575
+ r !== null && (t.imageWidth = r || void 0);
1576
+ let i = n.getAttribute("height");
1577
+ i !== null && (t.imageHeight = i || void 0);
1578
+ let a = n.getAttribute("alt");
1579
+ a !== null && (t.imageAlt = a || void 0);
1580
+ }
1581
+ return t;
1582
+ }, Hr = (e) => {
1583
+ let t = {}, n = e.querySelector("swal-icon");
1584
+ 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;
1585
+ }, Ur = (e) => {
1586
+ let t = {}, n = e.querySelector("swal-input");
1587
+ n && (Z(n, [
1588
+ "type",
1589
+ "label",
1590
+ "placeholder",
1591
+ "value"
1592
+ ]), 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")));
1593
+ let r = Array.from(e.querySelectorAll("swal-input-option"));
1594
+ return r.length && (t.inputOptions = {}, r.forEach((e) => {
1595
+ Z(e, ["value"]);
1596
+ let n = e.getAttribute("value");
1597
+ if (!n) return;
1598
+ let r = e.innerHTML;
1599
+ t.inputOptions[n] = r;
1600
+ })), t;
1601
+ }, Wr = (e, t) => {
1602
+ let n = {};
1603
+ for (let r in t) {
1604
+ let i = t[r], a = e.querySelector(i);
1605
+ a && (Z(a, []), n[i.replace(/^swal-/, "")] = a.innerHTML.trim());
1606
+ }
1607
+ return n;
1608
+ }, Gr = (e) => {
1609
+ let t = Ir.concat([
1610
+ "swal-param",
1611
+ "swal-function-param",
1612
+ "swal-button",
1613
+ "swal-image",
1614
+ "swal-icon",
1615
+ "swal-input",
1616
+ "swal-input-option"
1617
+ ]);
1618
+ Array.from(e.children).forEach((e) => {
1619
+ let n = e.tagName.toLowerCase();
1620
+ t.includes(n) || f(`Unrecognized element <${n}>`);
1621
+ });
1622
+ }, Z = (e, t) => {
1623
+ Array.from(e.attributes).forEach((n) => {
1624
+ 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."}`]);
1625
+ });
1626
+ }, Kr = (e) => {
1627
+ var t, n;
1628
+ let r = g(), i = y();
1629
+ if (!r || !i) return;
1630
+ typeof e.willOpen == "function" && e.willOpen(i), (t = a.eventEmitter) == null || t.emit("willOpen", i);
1631
+ let o = window.getComputedStyle(document.body).overflowY;
1632
+ if (Xr(r, i, e), setTimeout(() => {
1633
+ Jr(r, i);
1634
+ }, 10), ge() && (Yr(r, e.scrollbarPadding === void 0 ? !1 : e.scrollbarPadding, o), Kt()), Yt && e.backdrop === !1 && i.scrollHeight > r.clientHeight && (r.style.pointerEvents = "auto"), !_e() && !a.previousActiveElement && (a.previousActiveElement = document.activeElement), typeof e.didOpen == "function") {
1635
+ let t = e.didOpen;
1636
+ setTimeout(() => t(i));
1637
+ }
1638
+ (n = a.eventEmitter) == null || n.emit("didOpen", i);
1639
+ }, qr = (e) => {
1640
+ let t = y();
1641
+ if (!t || e.target !== t) return;
1642
+ let n = g();
1643
+ n && (t.removeEventListener("animationend", qr), t.removeEventListener("transitionend", qr), n.style.overflowY = "auto", M(n, c["no-transition"]));
1644
+ }, Jr = (e, t) => {
1645
+ Oe(t) ? (e.style.overflowY = "hidden", t.addEventListener("animationend", qr), t.addEventListener("transitionend", qr)) : e.style.overflowY = "auto";
1646
+ }, Yr = (e, t, n) => {
1647
+ Xt(), t && n !== "hidden" && rn(n), setTimeout(() => {
1648
+ e.scrollTop = 0;
1649
+ });
1650
+ }, Xr = (e, t, n) => {
1651
+ var r;
1652
+ (r = n.showClass) != null && r.backdrop && j(e, n.showClass.backdrop), n.animation ? (t.style.setProperty("opacity", "0", "important"), F(t, "grid"), setTimeout(() => {
1653
+ var e;
1654
+ (e = n.showClass) != null && e.popup && j(t, n.showClass.popup), t.style.removeProperty("opacity");
1655
+ }, 10)) : F(t, "grid"), j([document.documentElement, document.body], c.shown), n.heightAuto && n.backdrop && !n.toast && j([document.documentElement, document.body], c["height-auto"]);
1656
+ };
1657
+ var Zr = {
1658
+ 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"),
1659
+ 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")
1660
+ };
1661
+ function Qr(e) {
1662
+ e.inputValidator || (e.input === "email" && (e.inputValidator = Zr.email), e.input === "url" && (e.inputValidator = Zr.url));
1663
+ }
1664
+ function $r(e) {
1665
+ (!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");
1666
+ }
1667
+ function ei(e) {
1668
+ Qr(e), e.showLoaderOnConfirm && !e.preConfirm && f("showLoaderOnConfirm is set to true, but preConfirm is not defined.\nshowLoaderOnConfirm should be used together with preConfirm, see usage example:\nhttps://sweetalert2.github.io/#ajax-request"), $r(e), typeof e.title == "string" && (e.title = e.title.split("\n").join("<br />")), Re(e);
1669
+ }
1670
+ let Q;
1671
+ var ti = /* @__PURE__ */ new WeakMap();
1672
+ class $ {
1673
+ constructor(...e) {
1674
+ r(this, ti, Promise.resolve({
1675
+ isConfirmed: !1,
1676
+ isDenied: !1,
1677
+ isDismissed: !0
1678
+ })), !(typeof window > "u") && (Q = this, this.params = Object.freeze(this.constructor.argsToParams(e)), this.isAwaitingPromise = !1, i(ti, this, this._main(Q.params)));
1679
+ }
1680
+ _main(e, t = {}) {
1681
+ if (rr(Object.assign({}, t, e)), a.currentInstance) {
1682
+ let e = q.swalPromiseResolve.get(a.currentInstance), { isAwaitingPromise: t } = a.currentInstance;
1683
+ a.currentInstance._destroy(), t || e({ isDismissed: !0 }), ge() && qt();
1684
+ }
1685
+ a.currentInstance = Q;
1686
+ let n = ri(e, t);
1687
+ ei(n), Object.freeze(n), a.timeout && (a.timeout.stop(), delete a.timeout), clearTimeout(a.restoreFocusTimeout);
1688
+ let r = ii(Q);
1689
+ return jt(Q, n), V.innerParams.set(Q, n), ni(Q, r, n);
1690
+ }
1691
+ then(e) {
1692
+ return n(ti, this).then(e);
1693
+ }
1694
+ finally(e) {
1695
+ return n(ti, this).finally(e);
1696
+ }
1697
+ }
1698
+ let ni = (e, t, n) => new Promise((r, i) => {
1699
+ let o = (t) => {
1700
+ e.close({
1701
+ isDismissed: !0,
1702
+ dismiss: t,
1703
+ isConfirmed: !1,
1704
+ isDenied: !1
1705
+ });
1706
+ };
1707
+ q.swalPromiseResolve.set(e, r), q.swalPromiseReject.set(e, i), t.confirmButton.onclick = () => {
1708
+ On(e);
1709
+ }, t.denyButton.onclick = () => {
1710
+ kn(e);
1711
+ }, t.cancelButton.onclick = () => {
1712
+ An(e, o);
1713
+ }, t.closeButton.onclick = () => {
1714
+ o(K.close);
1715
+ }, dr(n, t, o), Lt(a, n, o), _n(e, n), Kr(n), ai(a, n, o), oi(t, n), setTimeout(() => {
1716
+ t.container.scrollTop = 0;
1717
+ });
1718
+ }), ri = (e, t) => {
1719
+ let n = Lr(e), r = Object.assign({}, X, t, n, e);
1720
+ 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;
1721
+ }, ii = (e) => {
1722
+ let t = {
1723
+ popup: y(),
1724
+ container: g(),
1725
+ actions: D(),
1726
+ confirmButton: C(),
1727
+ denyButton: T(),
1728
+ cancelButton: w(),
1729
+ loader: E(),
1730
+ closeButton: me(),
1731
+ validationMessage: S(),
1732
+ progressSteps: x()
1733
+ };
1734
+ return V.domCache.set(e, t), t;
1735
+ }, ai = (e, t, n) => {
1736
+ let r = pe();
1737
+ I(r), t.timer && (e.timeout = new Fr(() => {
1738
+ n("timer"), delete e.timeout;
1739
+ }, t.timer), t.timerProgressBar && r && (F(r), A(r, t, "timerProgressBar"), setTimeout(() => {
1740
+ e.timeout && e.timeout.running && ke(t.timer);
1741
+ })));
1742
+ }, oi = (e, t) => {
1743
+ if (!t.toast) {
1744
+ if (!re(t.allowEnterKey)) {
1745
+ ne("allowEnterKey", "preConfirm: () => false"), e.popup.focus();
1746
+ return;
1747
+ }
1748
+ si(e) || ci(e, t) || Rt(-1, 1);
1749
+ }
1750
+ }, si = (e) => {
1751
+ let t = Array.from(e.popup.querySelectorAll("[autofocus]"));
1752
+ for (let e of t) if (e instanceof HTMLElement && R(e)) return e.focus(), !0;
1753
+ return !1;
1754
+ }, ci = (e, t) => t.focusDeny && R(e.denyButton) ? (e.denyButton.focus(), !0) : t.focusCancel && R(e.cancelButton) ? (e.cancelButton.focus(), !0) : t.focusConfirm && R(e.confirmButton) ? (e.confirmButton.focus(), !0) : !1;
1755
+ $.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) => {
1756
+ $[e] = function(...t) {
1757
+ if (Q && Q[e]) return Q[e](...t);
1758
+ };
1759
+ }), $.DismissReason = K, $.version = "11.26.24";
1760
+ let li = $;
1761
+ return li.default = li, li;
1762
+ })), e !== void 0 && e.Sweetalert2 && (e.swal = e.sweetAlert = e.Swal = e.SweetAlert = e.Sweetalert2), typeof document < "u" && function(e, t) {
1763
+ var n = e.createElement("style");
1764
+ if (e.getElementsByTagName("head")[0].appendChild(n), n.styleSheet) n.styleSheet.disabled || (n.styleSheet.cssText = t);
1765
+ else try {
1766
+ n.innerHTML = t;
1767
+ } catch {
1768
+ n.innerText = t;
1769
+ }
1770
+ }(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}}");
1771
+ })))(), 1), Nt = (e, t = "black") => {
1772
+ if (!e.trim()) return "";
1773
+ if (Ft(e)) {
1774
+ let t = Pt(e);
1775
+ if (!t) return "";
1776
+ e = t;
1777
+ }
1778
+ let n = e.replace(/fill="(?!none)[^"]*"/gi, `fill="${t}"`).replace(/stroke="(?!none)[^"]*"/gi, `stroke="${t}"`);
1779
+ return `data:image/svg+xml;charset=UTF-8,${encodeURIComponent(n).replace(/'/g, "%27").replace(/"/g, "%22")}`;
1780
+ }, Pt = (e) => {
1781
+ if (!e.startsWith("data:image/svg+xml")) return null;
1782
+ let t = e.indexOf(",");
1783
+ if (t === -1) return null;
1784
+ let n = e.slice(t + 1);
1785
+ if (e.includes(";charset=UTF-8,")) try {
1786
+ return decodeURIComponent(n);
1787
+ } catch {
1788
+ return null;
1789
+ }
1790
+ if (e.includes(";base64,")) try {
1791
+ return atob(n);
1792
+ } catch {
1793
+ return null;
1794
+ }
1795
+ return null;
1796
+ }, Ft = (e) => /^data:image\/(svg\+xml|png|jpeg|jpg|gif|webp);/i.test(e), K = "<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\">\n <path stroke=\"none\" d=\"M0 0h24v24H0z\" fill=\"none\"/>\n <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\" />\n <path d=\"M12 19l0 .01\" />\n</svg>", It = () => ({ confirm: async (e, t) => {
1797
+ t ??= {};
1798
+ let n = await Mt.default.fire({
1799
+ imageUrl: t?.imageUrl ?? Nt(K, t?.image?.color ?? "black"),
1800
+ imageWidth: t?.image?.width ?? 50,
1801
+ imageHeight: t?.image?.height ?? 50,
1802
+ text: e,
1803
+ denyButtonText: t?.denyText || "Non",
1804
+ confirmButtonText: t?.confirmText || "Oui",
1805
+ confirmButtonColor: "var(--useConfirm-confirm-button-color, #02182b)",
1806
+ denyButtonColor: "var(--useConfirm-cancel-button-color, transparent)",
1807
+ showDenyButton: !0,
1808
+ showCloseButton: !0,
1809
+ reverseButtons: !0,
1810
+ customClass: {
1811
+ ...t?.classes ?? {},
1812
+ popup: "radius-m py-3 px-4",
1813
+ 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`,
1814
+ 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`,
1815
+ actions: "w-100 justify-end ga-2",
1816
+ image: "my-0",
1817
+ htmlContainer: "pa-0 p1-paragraph"
1818
+ }
1819
+ });
1820
+ if (t.onConfirm ??= () => !0, t.onCancel ??= () => !1, n.isConfirmed) return t.onConfirm();
1821
+ if (t.onCancel) return t.onCancel();
1822
+ } });
1823
+ //#endregion
1824
+ export { Tt as defined, Ot as hexToRgb, Et as hexToRgba, Dt as hexToRgbaStyle, kt as isIOS, jt as isMobileDevice, At as isSmallScreen, wt as key, Ct as numberToCssStyle, It as useConfirm };