@sofiakb/elf-js 0.2.1 → 0.2.2-dev.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/composables/useConfirm.d.ts +5 -5
- package/dist/composables/useConfirm.spec.d.ts +1 -0
- package/dist/elf-js.es.js +1791 -1837
- package/dist/elf-js.umd.js +37 -39
- package/package.json +16 -16
package/dist/elf-js.es.js
CHANGED
|
@@ -1,1870 +1,1824 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
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
|
-
|
|
13
|
-
|
|
14
|
-
|
|
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
|
-
|
|
17
|
-
|
|
18
|
-
|
|
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
|
-
|
|
21
|
-
|
|
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
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
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
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
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
|
-
|
|
36
|
-
|
|
37
|
-
|
|
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
|
|
40
|
-
|
|
61
|
+
function C(e) {
|
|
62
|
+
return !!S && S in e;
|
|
41
63
|
}
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
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
|
-
|
|
57
|
-
|
|
58
|
-
);
|
|
59
|
-
function
|
|
60
|
-
|
|
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
|
-
|
|
66
|
-
|
|
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
|
-
|
|
69
|
-
|
|
70
|
-
|
|
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
|
-
|
|
73
|
-
|
|
74
|
-
|
|
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
|
-
|
|
77
|
-
|
|
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
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
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
|
-
|
|
85
|
-
|
|
86
|
-
|
|
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
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
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
|
-
|
|
94
|
-
|
|
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
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
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
|
-
|
|
103
|
-
|
|
104
|
-
|
|
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
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
}(),
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
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
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
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
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
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
|
|
147
|
-
function
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
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
|
-
|
|
206
|
-
|
|
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
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
},
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
},
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
},
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
}
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
}
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
}
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
},
|
|
358
|
-
|
|
359
|
-
},
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
},
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
},
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
}
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
}
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
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="${
|
|
405
|
-
<div class="${
|
|
406
|
-
<label class="${
|
|
407
|
-
<input type="checkbox" id="${
|
|
408
|
-
<span class="${
|
|
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="${
|
|
411
|
-
<div class="${
|
|
412
|
-
<div class="${
|
|
413
|
-
<div class="${
|
|
414
|
-
<button type="button" class="${
|
|
415
|
-
<button type="button" class="${
|
|
416
|
-
<button type="button" class="${
|
|
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="${
|
|
419
|
-
<div class="${
|
|
420
|
-
<div class="${
|
|
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, ""),
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
},
|
|
439
|
-
|
|
440
|
-
}
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
}
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
}
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
}
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
},
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
(
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
|
|
579
|
-
}
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
}
|
|
587
|
-
|
|
588
|
-
|
|
589
|
-
|
|
590
|
-
|
|
591
|
-
|
|
592
|
-
|
|
593
|
-
|
|
594
|
-
|
|
595
|
-
|
|
596
|
-
|
|
597
|
-
|
|
598
|
-
|
|
599
|
-
|
|
600
|
-
|
|
601
|
-
|
|
602
|
-
|
|
603
|
-
|
|
604
|
-
|
|
605
|
-
|
|
606
|
-
|
|
607
|
-
|
|
608
|
-
|
|
609
|
-
|
|
610
|
-
|
|
611
|
-
|
|
612
|
-
|
|
613
|
-
|
|
614
|
-
|
|
615
|
-
|
|
616
|
-
|
|
617
|
-
|
|
618
|
-
|
|
619
|
-
|
|
620
|
-
|
|
621
|
-
|
|
622
|
-
|
|
623
|
-
|
|
624
|
-
|
|
625
|
-
|
|
626
|
-
|
|
627
|
-
|
|
628
|
-
|
|
629
|
-
|
|
630
|
-
|
|
631
|
-
|
|
632
|
-
|
|
633
|
-
|
|
634
|
-
|
|
635
|
-
|
|
636
|
-
|
|
637
|
-
|
|
638
|
-
|
|
639
|
-
|
|
640
|
-
|
|
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>
|
|
643
|
-
<div class
|
|
644
|
-
|
|
645
|
-
|
|
646
|
-
|
|
647
|
-
|
|
648
|
-
</span
|
|
649
|
-
|
|
650
|
-
|
|
651
|
-
|
|
652
|
-
|
|
653
|
-
|
|
654
|
-
|
|
655
|
-
|
|
656
|
-
|
|
657
|
-
|
|
658
|
-
|
|
659
|
-
|
|
660
|
-
|
|
661
|
-
|
|
662
|
-
|
|
663
|
-
|
|
664
|
-
|
|
665
|
-
|
|
666
|
-
|
|
667
|
-
|
|
668
|
-
|
|
669
|
-
|
|
670
|
-
|
|
671
|
-
|
|
672
|
-
|
|
673
|
-
|
|
674
|
-
|
|
675
|
-
|
|
676
|
-
|
|
677
|
-
|
|
678
|
-
|
|
679
|
-
|
|
680
|
-
|
|
681
|
-
|
|
682
|
-
|
|
683
|
-
|
|
684
|
-
|
|
685
|
-
|
|
686
|
-
|
|
687
|
-
|
|
688
|
-
|
|
689
|
-
|
|
690
|
-
}
|
|
691
|
-
|
|
692
|
-
|
|
693
|
-
|
|
694
|
-
|
|
695
|
-
|
|
696
|
-
|
|
697
|
-
|
|
698
|
-
|
|
699
|
-
|
|
700
|
-
|
|
701
|
-
|
|
702
|
-
|
|
703
|
-
|
|
704
|
-
|
|
705
|
-
|
|
706
|
-
|
|
707
|
-
|
|
708
|
-
|
|
709
|
-
|
|
710
|
-
|
|
711
|
-
|
|
712
|
-
|
|
713
|
-
|
|
714
|
-
|
|
715
|
-
|
|
716
|
-
|
|
717
|
-
|
|
718
|
-
|
|
719
|
-
|
|
720
|
-
|
|
721
|
-
|
|
722
|
-
|
|
723
|
-
|
|
724
|
-
|
|
725
|
-
|
|
726
|
-
|
|
727
|
-
|
|
728
|
-
|
|
729
|
-
|
|
730
|
-
|
|
731
|
-
|
|
732
|
-
|
|
733
|
-
|
|
734
|
-
|
|
735
|
-
|
|
736
|
-
|
|
737
|
-
|
|
738
|
-
|
|
739
|
-
|
|
740
|
-
|
|
741
|
-
|
|
742
|
-
|
|
743
|
-
|
|
744
|
-
|
|
745
|
-
|
|
746
|
-
|
|
747
|
-
|
|
748
|
-
|
|
749
|
-
|
|
750
|
-
|
|
751
|
-
|
|
752
|
-
|
|
753
|
-
|
|
754
|
-
},
|
|
755
|
-
|
|
756
|
-
|
|
757
|
-
|
|
758
|
-
|
|
759
|
-
|
|
760
|
-
|
|
761
|
-
|
|
762
|
-
|
|
763
|
-
|
|
764
|
-
}
|
|
765
|
-
|
|
766
|
-
|
|
767
|
-
|
|
768
|
-
|
|
769
|
-
|
|
770
|
-
|
|
771
|
-
|
|
772
|
-
|
|
773
|
-
|
|
774
|
-
|
|
775
|
-
|
|
776
|
-
|
|
777
|
-
|
|
778
|
-
|
|
779
|
-
|
|
780
|
-
|
|
781
|
-
|
|
782
|
-
|
|
783
|
-
|
|
784
|
-
|
|
785
|
-
|
|
786
|
-
|
|
787
|
-
|
|
788
|
-
|
|
789
|
-
|
|
790
|
-
|
|
791
|
-
|
|
792
|
-
|
|
793
|
-
|
|
794
|
-
|
|
795
|
-
|
|
796
|
-
|
|
797
|
-
|
|
798
|
-
|
|
799
|
-
|
|
800
|
-
|
|
801
|
-
|
|
802
|
-
|
|
803
|
-
|
|
804
|
-
|
|
805
|
-
|
|
806
|
-
|
|
807
|
-
|
|
808
|
-
|
|
809
|
-
|
|
810
|
-
|
|
811
|
-
|
|
812
|
-
|
|
813
|
-
|
|
814
|
-
|
|
815
|
-
|
|
816
|
-
|
|
817
|
-
|
|
818
|
-
|
|
819
|
-
|
|
820
|
-
|
|
821
|
-
|
|
822
|
-
|
|
823
|
-
|
|
824
|
-
|
|
825
|
-
|
|
826
|
-
|
|
827
|
-
|
|
828
|
-
|
|
829
|
-
|
|
830
|
-
|
|
831
|
-
|
|
832
|
-
|
|
833
|
-
|
|
834
|
-
|
|
835
|
-
|
|
836
|
-
|
|
837
|
-
|
|
838
|
-
|
|
839
|
-
|
|
840
|
-
|
|
841
|
-
|
|
842
|
-
|
|
843
|
-
},
|
|
844
|
-
|
|
845
|
-
|
|
846
|
-
|
|
847
|
-
|
|
848
|
-
},
|
|
849
|
-
|
|
850
|
-
|
|
851
|
-
|
|
852
|
-
|
|
853
|
-
|
|
854
|
-
|
|
855
|
-
|
|
856
|
-
|
|
857
|
-
|
|
858
|
-
|
|
859
|
-
|
|
860
|
-
|
|
861
|
-
|
|
862
|
-
|
|
863
|
-
|
|
864
|
-
|
|
865
|
-
|
|
866
|
-
|
|
867
|
-
|
|
868
|
-
|
|
869
|
-
|
|
870
|
-
|
|
871
|
-
|
|
872
|
-
|
|
873
|
-
|
|
874
|
-
|
|
875
|
-
let
|
|
876
|
-
|
|
877
|
-
|
|
878
|
-
|
|
879
|
-
|
|
880
|
-
|
|
881
|
-
|
|
882
|
-
|
|
883
|
-
|
|
884
|
-
|
|
885
|
-
|
|
886
|
-
|
|
887
|
-
|
|
888
|
-
|
|
889
|
-
|
|
890
|
-
|
|
891
|
-
|
|
892
|
-
|
|
893
|
-
|
|
894
|
-
|
|
895
|
-
|
|
896
|
-
|
|
897
|
-
|
|
898
|
-
|
|
899
|
-
|
|
900
|
-
|
|
901
|
-
|
|
902
|
-
}
|
|
903
|
-
|
|
904
|
-
|
|
905
|
-
|
|
906
|
-
|
|
907
|
-
|
|
908
|
-
|
|
909
|
-
}
|
|
910
|
-
|
|
911
|
-
|
|
912
|
-
|
|
913
|
-
|
|
914
|
-
|
|
915
|
-
|
|
916
|
-
|
|
917
|
-
|
|
918
|
-
|
|
919
|
-
|
|
920
|
-
|
|
921
|
-
|
|
922
|
-
|
|
923
|
-
|
|
924
|
-
|
|
925
|
-
|
|
926
|
-
|
|
927
|
-
|
|
928
|
-
|
|
929
|
-
|
|
930
|
-
|
|
931
|
-
|
|
932
|
-
|
|
933
|
-
|
|
934
|
-
|
|
935
|
-
},
|
|
936
|
-
|
|
937
|
-
|
|
938
|
-
|
|
939
|
-
|
|
940
|
-
|
|
941
|
-
|
|
942
|
-
|
|
943
|
-
|
|
944
|
-
},
|
|
945
|
-
|
|
946
|
-
|
|
947
|
-
|
|
948
|
-
|
|
949
|
-
|
|
950
|
-
|
|
951
|
-
|
|
952
|
-
|
|
953
|
-
|
|
954
|
-
|
|
955
|
-
|
|
956
|
-
|
|
957
|
-
|
|
958
|
-
|
|
959
|
-
|
|
960
|
-
|
|
961
|
-
|
|
962
|
-
|
|
963
|
-
|
|
964
|
-
|
|
965
|
-
|
|
966
|
-
|
|
967
|
-
|
|
968
|
-
|
|
969
|
-
|
|
970
|
-
|
|
971
|
-
|
|
972
|
-
|
|
973
|
-
|
|
974
|
-
|
|
975
|
-
|
|
976
|
-
|
|
977
|
-
|
|
978
|
-
|
|
979
|
-
|
|
980
|
-
|
|
981
|
-
|
|
982
|
-
|
|
983
|
-
|
|
984
|
-
|
|
985
|
-
|
|
986
|
-
|
|
987
|
-
|
|
988
|
-
|
|
989
|
-
|
|
990
|
-
|
|
991
|
-
|
|
992
|
-
|
|
993
|
-
|
|
994
|
-
|
|
995
|
-
|
|
996
|
-
|
|
997
|
-
|
|
998
|
-
|
|
999
|
-
|
|
1000
|
-
|
|
1001
|
-
|
|
1002
|
-
|
|
1003
|
-
|
|
1004
|
-
|
|
1005
|
-
|
|
1006
|
-
|
|
1007
|
-
}
|
|
1008
|
-
|
|
1009
|
-
|
|
1010
|
-
|
|
1011
|
-
|
|
1012
|
-
|
|
1013
|
-
|
|
1014
|
-
|
|
1015
|
-
|
|
1016
|
-
|
|
1017
|
-
|
|
1018
|
-
|
|
1019
|
-
|
|
1020
|
-
|
|
1021
|
-
|
|
1022
|
-
|
|
1023
|
-
}
|
|
1024
|
-
|
|
1025
|
-
|
|
1026
|
-
|
|
1027
|
-
|
|
1028
|
-
|
|
1029
|
-
|
|
1030
|
-
|
|
1031
|
-
|
|
1032
|
-
|
|
1033
|
-
|
|
1034
|
-
|
|
1035
|
-
|
|
1036
|
-
|
|
1037
|
-
|
|
1038
|
-
|
|
1039
|
-
|
|
1040
|
-
|
|
1041
|
-
|
|
1042
|
-
|
|
1043
|
-
|
|
1044
|
-
|
|
1045
|
-
|
|
1046
|
-
|
|
1047
|
-
|
|
1048
|
-
|
|
1049
|
-
|
|
1050
|
-
|
|
1051
|
-
|
|
1052
|
-
|
|
1053
|
-
|
|
1054
|
-
|
|
1055
|
-
|
|
1056
|
-
|
|
1057
|
-
|
|
1058
|
-
|
|
1059
|
-
|
|
1060
|
-
|
|
1061
|
-
}
|
|
1062
|
-
function
|
|
1063
|
-
|
|
1064
|
-
|
|
1065
|
-
|
|
1066
|
-
|
|
1067
|
-
|
|
1068
|
-
}
|
|
1069
|
-
|
|
1070
|
-
|
|
1071
|
-
|
|
1072
|
-
|
|
1073
|
-
|
|
1074
|
-
|
|
1075
|
-
|
|
1076
|
-
|
|
1077
|
-
|
|
1078
|
-
|
|
1079
|
-
|
|
1080
|
-
|
|
1081
|
-
|
|
1082
|
-
|
|
1083
|
-
|
|
1084
|
-
|
|
1085
|
-
|
|
1086
|
-
|
|
1087
|
-
|
|
1088
|
-
|
|
1089
|
-
|
|
1090
|
-
|
|
1091
|
-
|
|
1092
|
-
|
|
1093
|
-
|
|
1094
|
-
|
|
1095
|
-
|
|
1096
|
-
|
|
1097
|
-
|
|
1098
|
-
|
|
1099
|
-
|
|
1100
|
-
|
|
1101
|
-
|
|
1102
|
-
|
|
1103
|
-
|
|
1104
|
-
|
|
1105
|
-
|
|
1106
|
-
|
|
1107
|
-
|
|
1108
|
-
|
|
1109
|
-
|
|
1110
|
-
}
|
|
1111
|
-
|
|
1112
|
-
|
|
1113
|
-
|
|
1114
|
-
|
|
1115
|
-
|
|
1116
|
-
|
|
1117
|
-
|
|
1118
|
-
|
|
1119
|
-
|
|
1120
|
-
|
|
1121
|
-
|
|
1122
|
-
|
|
1123
|
-
|
|
1124
|
-
|
|
1125
|
-
|
|
1126
|
-
|
|
1127
|
-
|
|
1128
|
-
|
|
1129
|
-
|
|
1130
|
-
|
|
1131
|
-
|
|
1132
|
-
|
|
1133
|
-
|
|
1134
|
-
|
|
1135
|
-
|
|
1136
|
-
|
|
1137
|
-
|
|
1138
|
-
|
|
1139
|
-
|
|
1140
|
-
|
|
1141
|
-
|
|
1142
|
-
|
|
1143
|
-
|
|
1144
|
-
|
|
1145
|
-
|
|
1146
|
-
|
|
1147
|
-
|
|
1148
|
-
|
|
1149
|
-
|
|
1150
|
-
|
|
1151
|
-
|
|
1152
|
-
|
|
1153
|
-
|
|
1154
|
-
|
|
1155
|
-
|
|
1156
|
-
|
|
1157
|
-
|
|
1158
|
-
|
|
1159
|
-
|
|
1160
|
-
|
|
1161
|
-
|
|
1162
|
-
|
|
1163
|
-
|
|
1164
|
-
|
|
1165
|
-
|
|
1166
|
-
|
|
1167
|
-
|
|
1168
|
-
|
|
1169
|
-
|
|
1170
|
-
|
|
1171
|
-
|
|
1172
|
-
|
|
1173
|
-
|
|
1174
|
-
|
|
1175
|
-
|
|
1176
|
-
|
|
1177
|
-
|
|
1178
|
-
|
|
1179
|
-
|
|
1180
|
-
|
|
1181
|
-
|
|
1182
|
-
|
|
1183
|
-
|
|
1184
|
-
|
|
1185
|
-
|
|
1186
|
-
|
|
1187
|
-
|
|
1188
|
-
|
|
1189
|
-
|
|
1190
|
-
|
|
1191
|
-
|
|
1192
|
-
|
|
1193
|
-
|
|
1194
|
-
|
|
1195
|
-
|
|
1196
|
-
|
|
1197
|
-
|
|
1198
|
-
|
|
1199
|
-
|
|
1200
|
-
|
|
1201
|
-
|
|
1202
|
-
|
|
1203
|
-
|
|
1204
|
-
|
|
1205
|
-
|
|
1206
|
-
|
|
1207
|
-
|
|
1208
|
-
|
|
1209
|
-
|
|
1210
|
-
|
|
1211
|
-
|
|
1212
|
-
|
|
1213
|
-
|
|
1214
|
-
|
|
1215
|
-
|
|
1216
|
-
|
|
1217
|
-
|
|
1218
|
-
|
|
1219
|
-
|
|
1220
|
-
|
|
1221
|
-
|
|
1222
|
-
|
|
1223
|
-
|
|
1224
|
-
|
|
1225
|
-
|
|
1226
|
-
|
|
1227
|
-
|
|
1228
|
-
|
|
1229
|
-
|
|
1230
|
-
|
|
1231
|
-
|
|
1232
|
-
|
|
1233
|
-
|
|
1234
|
-
|
|
1235
|
-
|
|
1236
|
-
|
|
1237
|
-
}
|
|
1238
|
-
|
|
1239
|
-
|
|
1240
|
-
|
|
1241
|
-
|
|
1242
|
-
|
|
1243
|
-
|
|
1244
|
-
|
|
1245
|
-
|
|
1246
|
-
|
|
1247
|
-
|
|
1248
|
-
|
|
1249
|
-
|
|
1250
|
-
|
|
1251
|
-
}
|
|
1252
|
-
|
|
1253
|
-
|
|
1254
|
-
|
|
1255
|
-
|
|
1256
|
-
|
|
1257
|
-
|
|
1258
|
-
|
|
1259
|
-
|
|
1260
|
-
|
|
1261
|
-
|
|
1262
|
-
|
|
1263
|
-
|
|
1264
|
-
|
|
1265
|
-
|
|
1266
|
-
|
|
1267
|
-
|
|
1268
|
-
|
|
1269
|
-
|
|
1270
|
-
|
|
1271
|
-
|
|
1272
|
-
|
|
1273
|
-
|
|
1274
|
-
|
|
1275
|
-
|
|
1276
|
-
|
|
1277
|
-
|
|
1278
|
-
|
|
1279
|
-
|
|
1280
|
-
|
|
1281
|
-
|
|
1282
|
-
},
|
|
1283
|
-
|
|
1284
|
-
|
|
1285
|
-
|
|
1286
|
-
}
|
|
1287
|
-
|
|
1288
|
-
|
|
1289
|
-
|
|
1290
|
-
|
|
1291
|
-
|
|
1292
|
-
|
|
1293
|
-
|
|
1294
|
-
|
|
1295
|
-
|
|
1296
|
-
|
|
1297
|
-
|
|
1298
|
-
|
|
1299
|
-
|
|
1300
|
-
|
|
1301
|
-
|
|
1302
|
-
},
|
|
1303
|
-
|
|
1304
|
-
|
|
1305
|
-
|
|
1306
|
-
|
|
1307
|
-
|
|
1308
|
-
|
|
1309
|
-
|
|
1310
|
-
|
|
1311
|
-
|
|
1312
|
-
|
|
1313
|
-
|
|
1314
|
-
|
|
1315
|
-
|
|
1316
|
-
|
|
1317
|
-
|
|
1318
|
-
|
|
1319
|
-
|
|
1320
|
-
|
|
1321
|
-
}
|
|
1322
|
-
|
|
1323
|
-
|
|
1324
|
-
|
|
1325
|
-
|
|
1326
|
-
|
|
1327
|
-
|
|
1328
|
-
|
|
1329
|
-
|
|
1330
|
-
|
|
1331
|
-
|
|
1332
|
-
|
|
1333
|
-
|
|
1334
|
-
|
|
1335
|
-
|
|
1336
|
-
|
|
1337
|
-
|
|
1338
|
-
}
|
|
1339
|
-
|
|
1340
|
-
|
|
1341
|
-
|
|
1342
|
-
|
|
1343
|
-
|
|
1344
|
-
|
|
1345
|
-
|
|
1346
|
-
|
|
1347
|
-
|
|
1348
|
-
|
|
1349
|
-
|
|
1350
|
-
|
|
1351
|
-
|
|
1352
|
-
|
|
1353
|
-
|
|
1354
|
-
|
|
1355
|
-
|
|
1356
|
-
|
|
1357
|
-
|
|
1358
|
-
|
|
1359
|
-
|
|
1360
|
-
|
|
1361
|
-
|
|
1362
|
-
|
|
1363
|
-
|
|
1364
|
-
|
|
1365
|
-
|
|
1366
|
-
|
|
1367
|
-
|
|
1368
|
-
|
|
1369
|
-
|
|
1370
|
-
|
|
1371
|
-
|
|
1372
|
-
|
|
1373
|
-
|
|
1374
|
-
|
|
1375
|
-
|
|
1376
|
-
|
|
1377
|
-
|
|
1378
|
-
|
|
1379
|
-
|
|
1380
|
-
|
|
1381
|
-
|
|
1382
|
-
|
|
1383
|
-
|
|
1384
|
-
|
|
1385
|
-
|
|
1386
|
-
|
|
1387
|
-
|
|
1388
|
-
|
|
1389
|
-
|
|
1390
|
-
|
|
1391
|
-
|
|
1392
|
-
|
|
1393
|
-
|
|
1394
|
-
|
|
1395
|
-
|
|
1396
|
-
|
|
1397
|
-
|
|
1398
|
-
|
|
1399
|
-
|
|
1400
|
-
|
|
1401
|
-
|
|
1402
|
-
|
|
1403
|
-
|
|
1404
|
-
|
|
1405
|
-
|
|
1406
|
-
|
|
1407
|
-
|
|
1408
|
-
|
|
1409
|
-
|
|
1410
|
-
|
|
1411
|
-
|
|
1412
|
-
|
|
1413
|
-
|
|
1414
|
-
|
|
1415
|
-
|
|
1416
|
-
|
|
1417
|
-
|
|
1418
|
-
|
|
1419
|
-
|
|
1420
|
-
|
|
1421
|
-
|
|
1422
|
-
|
|
1423
|
-
|
|
1424
|
-
|
|
1425
|
-
|
|
1426
|
-
|
|
1427
|
-
|
|
1428
|
-
|
|
1429
|
-
|
|
1430
|
-
|
|
1431
|
-
|
|
1432
|
-
|
|
1433
|
-
|
|
1434
|
-
|
|
1435
|
-
}
|
|
1436
|
-
|
|
1437
|
-
|
|
1438
|
-
|
|
1439
|
-
|
|
1440
|
-
|
|
1441
|
-
},
|
|
1442
|
-
|
|
1443
|
-
|
|
1444
|
-
|
|
1445
|
-
|
|
1446
|
-
|
|
1447
|
-
|
|
1448
|
-
|
|
1449
|
-
|
|
1450
|
-
|
|
1451
|
-
|
|
1452
|
-
|
|
1453
|
-
|
|
1454
|
-
|
|
1455
|
-
|
|
1456
|
-
|
|
1457
|
-
|
|
1458
|
-
|
|
1459
|
-
|
|
1460
|
-
|
|
1461
|
-
|
|
1462
|
-
|
|
1463
|
-
|
|
1464
|
-
|
|
1465
|
-
|
|
1466
|
-
|
|
1467
|
-
|
|
1468
|
-
|
|
1469
|
-
|
|
1470
|
-
|
|
1471
|
-
|
|
1472
|
-
|
|
1473
|
-
|
|
1474
|
-
|
|
1475
|
-
|
|
1476
|
-
|
|
1477
|
-
|
|
1478
|
-
|
|
1479
|
-
|
|
1480
|
-
|
|
1481
|
-
|
|
1482
|
-
|
|
1483
|
-
|
|
1484
|
-
|
|
1485
|
-
|
|
1486
|
-
|
|
1487
|
-
|
|
1488
|
-
|
|
1489
|
-
|
|
1490
|
-
|
|
1491
|
-
|
|
1492
|
-
|
|
1493
|
-
|
|
1494
|
-
|
|
1495
|
-
|
|
1496
|
-
|
|
1497
|
-
|
|
1498
|
-
|
|
1499
|
-
|
|
1500
|
-
|
|
1501
|
-
|
|
1502
|
-
|
|
1503
|
-
|
|
1504
|
-
|
|
1505
|
-
|
|
1506
|
-
|
|
1507
|
-
|
|
1508
|
-
|
|
1509
|
-
|
|
1510
|
-
|
|
1511
|
-
|
|
1512
|
-
|
|
1513
|
-
|
|
1514
|
-
|
|
1515
|
-
|
|
1516
|
-
|
|
1517
|
-
|
|
1518
|
-
|
|
1519
|
-
|
|
1520
|
-
|
|
1521
|
-
|
|
1522
|
-
|
|
1523
|
-
|
|
1524
|
-
|
|
1525
|
-
|
|
1526
|
-
|
|
1527
|
-
|
|
1528
|
-
|
|
1529
|
-
|
|
1530
|
-
|
|
1531
|
-
|
|
1532
|
-
|
|
1533
|
-
}
|
|
1534
|
-
|
|
1535
|
-
|
|
1536
|
-
|
|
1537
|
-
|
|
1538
|
-
|
|
1539
|
-
|
|
1540
|
-
|
|
1541
|
-
|
|
1542
|
-
|
|
1543
|
-
|
|
1544
|
-
|
|
1545
|
-
|
|
1546
|
-
|
|
1547
|
-
|
|
1548
|
-
|
|
1549
|
-
|
|
1550
|
-
|
|
1551
|
-
|
|
1552
|
-
|
|
1553
|
-
}
|
|
1554
|
-
|
|
1555
|
-
|
|
1556
|
-
|
|
1557
|
-
|
|
1558
|
-
|
|
1559
|
-
|
|
1560
|
-
|
|
1561
|
-
|
|
1562
|
-
|
|
1563
|
-
|
|
1564
|
-
|
|
1565
|
-
|
|
1566
|
-
|
|
1567
|
-
|
|
1568
|
-
|
|
1569
|
-
},
|
|
1570
|
-
|
|
1571
|
-
|
|
1572
|
-
}
|
|
1573
|
-
|
|
1574
|
-
|
|
1575
|
-
|
|
1576
|
-
|
|
1577
|
-
|
|
1578
|
-
|
|
1579
|
-
|
|
1580
|
-
|
|
1581
|
-
|
|
1582
|
-
|
|
1583
|
-
|
|
1584
|
-
|
|
1585
|
-
|
|
1586
|
-
|
|
1587
|
-
|
|
1588
|
-
|
|
1589
|
-
|
|
1590
|
-
|
|
1591
|
-
|
|
1592
|
-
|
|
1593
|
-
|
|
1594
|
-
|
|
1595
|
-
|
|
1596
|
-
|
|
1597
|
-
|
|
1598
|
-
|
|
1599
|
-
|
|
1600
|
-
|
|
1601
|
-
|
|
1602
|
-
|
|
1603
|
-
|
|
1604
|
-
|
|
1605
|
-
|
|
1606
|
-
|
|
1607
|
-
|
|
1608
|
-
|
|
1609
|
-
|
|
1610
|
-
|
|
1611
|
-
|
|
1612
|
-
|
|
1613
|
-
|
|
1614
|
-
|
|
1615
|
-
|
|
1616
|
-
|
|
1617
|
-
|
|
1618
|
-
|
|
1619
|
-
|
|
1620
|
-
|
|
1621
|
-
|
|
1622
|
-
|
|
1623
|
-
|
|
1624
|
-
|
|
1625
|
-
|
|
1626
|
-
|
|
1627
|
-
}
|
|
1628
|
-
|
|
1629
|
-
|
|
1630
|
-
|
|
1631
|
-
|
|
1632
|
-
|
|
1633
|
-
|
|
1634
|
-
|
|
1635
|
-
|
|
1636
|
-
|
|
1637
|
-
|
|
1638
|
-
|
|
1639
|
-
|
|
1640
|
-
|
|
1641
|
-
|
|
1642
|
-
|
|
1643
|
-
|
|
1644
|
-
}
|
|
1645
|
-
|
|
1646
|
-
|
|
1647
|
-
|
|
1648
|
-
|
|
1649
|
-
|
|
1650
|
-
|
|
1651
|
-
|
|
1652
|
-
|
|
1653
|
-
}
|
|
1654
|
-
|
|
1655
|
-
|
|
1656
|
-
|
|
1657
|
-
|
|
1658
|
-
|
|
1659
|
-
|
|
1660
|
-
|
|
1661
|
-
|
|
1662
|
-
|
|
1663
|
-
|
|
1664
|
-
|
|
1665
|
-
|
|
1666
|
-
|
|
1667
|
-
|
|
1668
|
-
|
|
1669
|
-
|
|
1670
|
-
|
|
1671
|
-
|
|
1672
|
-
|
|
1673
|
-
|
|
1674
|
-
|
|
1675
|
-
|
|
1676
|
-
|
|
1677
|
-
|
|
1678
|
-
|
|
1679
|
-
|
|
1680
|
-
|
|
1681
|
-
|
|
1682
|
-
|
|
1683
|
-
|
|
1684
|
-
|
|
1685
|
-
|
|
1686
|
-
|
|
1687
|
-
|
|
1688
|
-
|
|
1689
|
-
|
|
1690
|
-
|
|
1691
|
-
|
|
1692
|
-
|
|
1693
|
-
|
|
1694
|
-
|
|
1695
|
-
|
|
1696
|
-
|
|
1697
|
-
|
|
1698
|
-
|
|
1699
|
-
|
|
1700
|
-
|
|
1701
|
-
|
|
1702
|
-
|
|
1703
|
-
|
|
1704
|
-
|
|
1705
|
-
|
|
1706
|
-
|
|
1707
|
-
|
|
1708
|
-
|
|
1709
|
-
|
|
1710
|
-
|
|
1711
|
-
|
|
1712
|
-
|
|
1713
|
-
|
|
1714
|
-
|
|
1715
|
-
|
|
1716
|
-
|
|
1717
|
-
}, Hi = (e) => {
|
|
1718
|
-
|
|
1719
|
-
|
|
1720
|
-
|
|
1721
|
-
|
|
1722
|
-
|
|
1723
|
-
|
|
1724
|
-
|
|
1725
|
-
|
|
1726
|
-
|
|
1727
|
-
|
|
1728
|
-
|
|
1729
|
-
|
|
1730
|
-
|
|
1731
|
-
|
|
1732
|
-
|
|
1733
|
-
|
|
1734
|
-
|
|
1735
|
-
|
|
1736
|
-
|
|
1737
|
-
|
|
1738
|
-
|
|
1739
|
-
|
|
1740
|
-
|
|
1741
|
-
|
|
1742
|
-
|
|
1743
|
-
|
|
1744
|
-
|
|
1745
|
-
|
|
1746
|
-
|
|
1747
|
-
|
|
1748
|
-
|
|
1749
|
-
|
|
1750
|
-
|
|
1751
|
-
|
|
1752
|
-
|
|
1753
|
-
|
|
1754
|
-
|
|
1755
|
-
|
|
1756
|
-
|
|
1757
|
-
|
|
1758
|
-
|
|
1759
|
-
|
|
1760
|
-
|
|
1761
|
-
|
|
1762
|
-
|
|
1763
|
-
|
|
1764
|
-
|
|
1765
|
-
}
|
|
1766
|
-
|
|
1767
|
-
|
|
1768
|
-
|
|
1769
|
-
|
|
1770
|
-
|
|
1771
|
-
|
|
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: "×",
|
|
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 };
|