gc_i18n 1.3.7 → 1.3.9

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/lib/gc_i18n.es.js CHANGED
@@ -1,22 +1,22 @@
1
1
  import './gc_i18n.css';
2
- import Xt from "keyboardjs";
3
- import { nextTick as Zt } from "vue-demi";
4
- import { createI18n as Jt } from "vue-i18n";
5
- import Ae from "axios";
6
- import T from "store2";
2
+ import Jt from "keyboardjs";
3
+ import { nextTick as Qt } from "vue-demi";
4
+ import * as oe from "vue-i18n";
5
+ import tt from "axios";
6
+ import L from "store2";
7
7
  import C from "lodash-es";
8
- import { jws as Qt } from "jsrsasign";
9
- const eo = (e) => {
8
+ import { jws as eo } from "jsrsasign";
9
+ const to = (e) => {
10
10
  const t = {};
11
11
  for (const o of e)
12
12
  t[o.key] = o.value;
13
13
  return t;
14
- }, to = (e, t, o) => (t.forEach((n) => {
14
+ }, oo = (e, t, o) => (t.forEach((n) => {
15
15
  const s = n.key.split(".");
16
16
  s[0] === "common" && C.find(e, { key: `${o}.${s[1]}` }) && C.remove(e, { key: `${o}.${s[1]}` });
17
17
  const r = C.find(e, { key: n.key });
18
18
  r ? C.merge(r, n) : e.push(n);
19
- }), e), oo = async ({ baseUrl: e, token: t }) => Ae.get(e + "/i18n-web/sysoption/getsupportedlangs", {
19
+ }), e), ot = tt.create(), no = async ({ baseUrl: e, token: t }) => ot.get(e + "/i18n-web/sysoption/getsupportedlangs", {
20
20
  headers: {
21
21
  Authorization: t
22
22
  }
@@ -28,7 +28,7 @@ const eo = (e) => {
28
28
  baseUrl: s,
29
29
  token: r
30
30
  }) => new Promise(async (a, c) => {
31
- const d = s + "/i18n-web/kv_translate/kv_translates", u = n ? d + "?lastPullDate=" + n : d, m = await Ae({
31
+ const d = s + "/i18n-web/kv_translate/kv_translates", u = n ? d + "?lastPullDate=" + n : d, m = await ot({
32
32
  url: u,
33
33
  method: "GET",
34
34
  headers: {
@@ -39,14 +39,14 @@ const eo = (e) => {
39
39
  }
40
40
  });
41
41
  m.data && m.data.result == 0 ? a(m.data.retVal) : a(m);
42
- }), no = async ({
42
+ }), so = async ({
43
43
  baseUrl: e,
44
44
  appCode: t,
45
45
  language: o = "zh-CN",
46
46
  token: n,
47
47
  routerName: s
48
48
  }) => new Promise(async (r, a) => {
49
- const c = T.namespace(`I18N_${C.toUpper(t)}`), d = {
49
+ const c = L.namespace(`I18N_${C.toUpper(t)}`), d = {
50
50
  baseUrl: e,
51
51
  appCode: t,
52
52
  language: o,
@@ -61,24 +61,24 @@ const eo = (e) => {
61
61
  lastPullDate: m
62
62
  });
63
63
  if (b) {
64
- const L = C.get(u, "translatesDTOs");
64
+ const I = C.get(u, "translatesDTOs");
65
65
  if (C.isEmpty(b.translatesDTOs))
66
- r(L);
66
+ r(I);
67
67
  else {
68
- const Re = to(
69
- L,
68
+ const Ve = oo(
69
+ I,
70
70
  b.translatesDTOs,
71
71
  s
72
- ), Gt = {
72
+ ), Zt = {
73
73
  lastPullDate: b.lastPullDate,
74
- translatesDTOs: Re
74
+ translatesDTOs: Ve
75
75
  };
76
- T.namespace(`I18N_${C.toUpper(t)}`).set(o, Gt, ":"), r(Re);
76
+ L.namespace(`I18N_${C.toUpper(t)}`).set(o, Zt, ":"), r(Ve);
77
77
  }
78
78
  }
79
79
  }
80
80
  });
81
- function ke(e) {
81
+ function xe(e) {
82
82
  const t = [], o = /(?:\$t|_ctx\.\$t)\s*\(\s*(['"])([^'"]+?)\1/gs;
83
83
  if (e.template) {
84
84
  let n;
@@ -107,7 +107,7 @@ function ke(e) {
107
107
  if (e.components)
108
108
  for (const n in e.components) {
109
109
  const s = e.components[n];
110
- t.push(...ke(s));
110
+ t.push(...xe(s));
111
111
  }
112
112
  return [...new Set(t)];
113
113
  }
@@ -115,60 +115,60 @@ function ke(e) {
115
115
  * sweetalert2 v11.26.18
116
116
  * Released under the MIT License.
117
117
  */
118
- function tt(e, t, o) {
118
+ function nt(e, t, o) {
119
119
  if (typeof e == "function" ? e === t : e.has(t)) return arguments.length < 3 ? t : o;
120
120
  throw new TypeError("Private element is not present on this object");
121
121
  }
122
- function so(e, t) {
122
+ function io(e, t) {
123
123
  if (t.has(e)) throw new TypeError("Cannot initialize the same private elements twice on an object");
124
124
  }
125
- function Ve(e, t) {
126
- return e.get(tt(e, t));
127
- }
128
- function io(e, t, o) {
129
- so(e, t), t.set(e, o);
125
+ function Re(e, t) {
126
+ return e.get(nt(e, t));
130
127
  }
131
128
  function ro(e, t, o) {
132
- return e.set(tt(e, t), o), o;
129
+ io(e, t), t.set(e, o);
130
+ }
131
+ function ao(e, t, o) {
132
+ return e.set(nt(e, t), o), o;
133
133
  }
134
- const ao = 100, l = {}, lo = () => {
134
+ const lo = 100, l = {}, co = () => {
135
135
  l.previousActiveElement instanceof HTMLElement ? (l.previousActiveElement.focus(), l.previousActiveElement = null) : document.body && document.body.focus();
136
- }, co = (e) => new Promise((t) => {
136
+ }, uo = (e) => new Promise((t) => {
137
137
  if (!e)
138
138
  return t();
139
139
  const o = window.scrollX, n = window.scrollY;
140
140
  l.restoreFocusTimeout = setTimeout(() => {
141
- lo(), t();
142
- }, ao), window.scrollTo(o, n);
143
- }), ot = "swal2-", uo = ["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"], i = uo.reduce(
144
- (e, t) => (e[t] = ot + t, e),
141
+ co(), t();
142
+ }, lo), window.scrollTo(o, n);
143
+ }), st = "swal2-", wo = ["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"], i = wo.reduce(
144
+ (e, t) => (e[t] = st + t, e),
145
145
  /** @type {SwalClasses} */
146
146
  {}
147
- ), wo = ["success", "warning", "info", "question", "error"], ne = wo.reduce(
148
- (e, t) => (e[t] = ot + t, e),
147
+ ), ho = ["success", "warning", "info", "question", "error"], se = ho.reduce(
148
+ (e, t) => (e[t] = st + t, e),
149
149
  /** @type {SwalIcons} */
150
150
  {}
151
- ), nt = "SweetAlert2:", Be = (e) => e.charAt(0).toUpperCase() + e.slice(1), k = (e) => {
152
- console.warn(`${nt} ${typeof e == "object" ? e.join(" ") : e}`);
151
+ ), it = "SweetAlert2:", Be = (e) => e.charAt(0).toUpperCase() + e.slice(1), k = (e) => {
152
+ console.warn(`${it} ${typeof e == "object" ? e.join(" ") : e}`);
153
153
  }, N = (e) => {
154
- console.error(`${nt} ${e}`);
155
- }, qe = [], ho = (e) => {
154
+ console.error(`${it} ${e}`);
155
+ }, qe = [], fo = (e) => {
156
156
  qe.includes(e) || (qe.push(e), k(e));
157
- }, st = (e, t = null) => {
158
- ho(`"${e}" is deprecated and will be removed in the next major release.${t ? ` Use "${t}" instead.` : ""}`);
159
- }, he = (e) => typeof e == "function" ? e() : e, Pe = (e) => e && typeof e.toPromise == "function", X = (e) => Pe(e) ? e.toPromise() : Promise.resolve(e), $e = (e) => e && Promise.resolve(e) === e, x = () => document.body.querySelector(`.${i.container}`), Z = (e) => {
157
+ }, rt = (e, t = null) => {
158
+ fo(`"${e}" is deprecated and will be removed in the next major release.${t ? ` Use "${t}" instead.` : ""}`);
159
+ }, fe = (e) => typeof e == "function" ? e() : e, Pe = (e) => e && typeof e.toPromise == "function", X = (e) => Pe(e) ? e.toPromise() : Promise.resolve(e), $e = (e) => e && Promise.resolve(e) === e, x = () => document.body.querySelector(`.${i.container}`), Z = (e) => {
160
160
  const t = x();
161
161
  return t ? t.querySelector(e) : null;
162
- }, B = (e) => Z(`.${e}`), h = () => B(i.popup), K = () => B(i.icon), fo = () => B(i["icon-content"]), it = () => B(i.title), Te = () => B(i["html-container"]), rt = () => B(i.image), Le = () => B(i["progress-steps"]), fe = () => B(i["validation-message"]), I = () => (
162
+ }, B = (e) => Z(`.${e}`), h = () => B(i.popup), W = () => B(i.icon), mo = () => B(i["icon-content"]), at = () => B(i.title), Le = () => B(i["html-container"]), lt = () => B(i.image), Te = () => B(i["progress-steps"]), me = () => B(i["validation-message"]), S = () => (
163
163
  /** @type {HTMLButtonElement} */
164
164
  Z(`.${i.actions} .${i.confirm}`)
165
- ), U = () => (
165
+ ), K = () => (
166
166
  /** @type {HTMLButtonElement} */
167
167
  Z(`.${i.actions} .${i.cancel}`)
168
- ), R = () => (
168
+ ), V = () => (
169
169
  /** @type {HTMLButtonElement} */
170
170
  Z(`.${i.actions} .${i.deny}`)
171
- ), mo = () => B(i["input-label"]), W = () => Z(`.${i.loader}`), J = () => B(i.actions), at = () => B(i.footer), me = () => B(i["timer-progress-bar"]), Se = () => B(i.close), po = `
171
+ ), po = () => B(i["input-label"]), U = () => Z(`.${i.loader}`), J = () => B(i.actions), ct = () => B(i.footer), pe = () => B(i["timer-progress-bar"]), Se = () => B(i.close), go = `
172
172
  a[href],
173
173
  area[href],
174
174
  input:not([disabled]),
@@ -190,12 +190,12 @@ const ao = 100, l = {}, lo = () => {
190
190
  const t = e.querySelectorAll('[tabindex]:not([tabindex="-1"]):not([tabindex="0"])'), o = Array.from(t).sort((r, a) => {
191
191
  const c = parseInt(r.getAttribute("tabindex") || "0"), d = parseInt(a.getAttribute("tabindex") || "0");
192
192
  return c > d ? 1 : c < d ? -1 : 0;
193
- }), n = e.querySelectorAll(po), s = Array.from(n).filter((r) => r.getAttribute("tabindex") !== "-1");
193
+ }), n = e.querySelectorAll(go), s = Array.from(n).filter((r) => r.getAttribute("tabindex") !== "-1");
194
194
  return [...new Set(o.concat(s))].filter((r) => E(r));
195
- }, Oe = () => O(document.body, i.shown) && !O(document.body, i["toast-shown"]) && !O(document.body, i["no-backdrop"]), pe = () => {
195
+ }, Oe = () => O(document.body, i.shown) && !O(document.body, i["toast-shown"]) && !O(document.body, i["no-backdrop"]), ge = () => {
196
196
  const e = h();
197
197
  return e ? O(e, i.toast) : !1;
198
- }, go = () => {
198
+ }, bo = () => {
199
199
  const e = h();
200
200
  return e ? e.hasAttribute("data-loading") : !1;
201
201
  }, P = (e, t) => {
@@ -217,12 +217,12 @@ const ao = 100, l = {}, lo = () => {
217
217
  if (!e.classList.contains(o[n]))
218
218
  return !1;
219
219
  return !0;
220
- }, bo = (e, t) => {
220
+ }, vo = (e, t) => {
221
221
  Array.from(e.classList).forEach((o) => {
222
- !Object.values(i).includes(o) && !Object.values(ne).includes(o) && !Object.values(t.showClass || {}).includes(o) && e.classList.remove(o);
222
+ !Object.values(i).includes(o) && !Object.values(se).includes(o) && !Object.values(t.showClass || {}).includes(o) && e.classList.remove(o);
223
223
  });
224
224
  }, A = (e, t, o) => {
225
- if (bo(e, t), !t.customClass)
225
+ if (vo(e, t), !t.customClass)
226
226
  return;
227
227
  const n = t.customClass[
228
228
  /** @type {keyof SweetAlertCustomClass} */
@@ -235,7 +235,7 @@ const ao = 100, l = {}, lo = () => {
235
235
  }
236
236
  w(e, n);
237
237
  }
238
- }, ge = (e, t) => {
238
+ }, be = (e, t) => {
239
239
  if (!t)
240
240
  return null;
241
241
  switch (t) {
@@ -252,21 +252,21 @@ const ao = 100, l = {}, lo = () => {
252
252
  default:
253
253
  return e.querySelector(`.${i.popup} > .${i.input}`);
254
254
  }
255
- }, lt = (e) => {
255
+ }, dt = (e) => {
256
256
  if (e.focus(), e.type !== "file") {
257
257
  const t = e.value;
258
258
  e.value = "", e.value = t;
259
259
  }
260
- }, ct = (e, t, o) => {
260
+ }, ut = (e, t, o) => {
261
261
  !e || !t || (typeof t == "string" && (t = t.split(/\s+/).filter(Boolean)), t.forEach((n) => {
262
262
  Array.isArray(e) ? e.forEach((s) => {
263
263
  o ? s.classList.add(n) : s.classList.remove(n);
264
264
  }) : o ? e.classList.add(n) : e.classList.remove(n);
265
265
  }));
266
266
  }, w = (e, t) => {
267
- ct(e, t, !0);
267
+ ut(e, t, !0);
268
268
  }, $ = (e, t) => {
269
- ct(e, t, !1);
269
+ ut(e, t, !1);
270
270
  }, M = (e, t) => {
271
271
  const o = Array.from(e.children);
272
272
  for (let n = 0; n < o.length; n++) {
@@ -279,9 +279,9 @@ const ao = 100, l = {}, lo = () => {
279
279
  /** @type {string} */
280
280
  o
281
281
  )) : e.style.removeProperty(t);
282
- }, y = (e, t = "flex") => {
282
+ }, v = (e, t = "flex") => {
283
283
  e && (e.style.display = t);
284
- }, v = (e) => {
284
+ }, y = (e) => {
285
285
  e && (e.style.display = "none");
286
286
  }, Me = (e, t = "block") => {
287
287
  e && new MutationObserver(() => {
@@ -290,39 +290,39 @@ const ao = 100, l = {}, lo = () => {
290
290
  childList: !0,
291
291
  subtree: !0
292
292
  });
293
- }, Ke = (e, t, o, n) => {
293
+ }, We = (e, t, o, n) => {
294
294
  const s = e.querySelector(t);
295
295
  s && s.style.setProperty(o, n);
296
296
  }, Q = (e, t, o = "flex") => {
297
- t ? y(e, o) : v(e);
298
- }, E = (e) => !!(e && (e.offsetWidth || e.offsetHeight || e.getClientRects().length)), yo = () => !E(I()) && !E(R()) && !E(U()), xe = (e) => e.scrollHeight > e.clientHeight, vo = (e, t) => {
297
+ t ? v(e, o) : y(e);
298
+ }, E = (e) => !!(e && (e.offsetWidth || e.offsetHeight || e.getClientRects().length)), yo = () => !E(S()) && !E(V()) && !E(K()), Ce = (e) => e.scrollHeight > e.clientHeight, ko = (e, t) => {
299
299
  let o = (
300
300
  /** @type {HTMLElement | null} */
301
301
  e
302
302
  );
303
303
  for (; o && o !== t; ) {
304
- if (xe(o))
304
+ if (Ce(o))
305
305
  return !0;
306
306
  o = o.parentElement;
307
307
  }
308
308
  return !1;
309
- }, dt = (e) => {
309
+ }, wt = (e) => {
310
310
  const t = window.getComputedStyle(e), o = parseFloat(t.getPropertyValue("animation-duration") || "0"), n = parseFloat(t.getPropertyValue("transition-duration") || "0");
311
311
  return o > 0 || n > 0;
312
312
  }, He = (e, t = !1) => {
313
- const o = me();
313
+ const o = pe();
314
314
  o && E(o) && (t && (o.style.transition = "none", o.style.width = "100%"), setTimeout(() => {
315
315
  o.style.transition = `width ${e / 1e3}s linear`, o.style.width = "0%";
316
316
  }, 10));
317
- }, ko = () => {
318
- const e = me();
317
+ }, xo = () => {
318
+ const e = pe();
319
319
  if (!e)
320
320
  return;
321
321
  const t = parseInt(window.getComputedStyle(e).width);
322
322
  e.style.removeProperty("transition"), e.style.width = "100%";
323
323
  const o = parseInt(window.getComputedStyle(e).width), n = t / o * 100;
324
324
  e.style.width = `${n}%`;
325
- }, xo = () => typeof window > "u" || typeof document > "u", Co = `
325
+ }, Co = () => typeof window > "u" || typeof document > "u", Eo = `
326
326
  <div aria-labelledby="${i.title}" aria-describedby="${i["html-container"]}" class="${i.popup}" tabindex="-1">
327
327
  <button type="button" class="${i.close}"></button>
328
328
  <ul class="${i["progress-steps"]}"></ul>
@@ -355,7 +355,7 @@ const ao = 100, l = {}, lo = () => {
355
355
  <div class="${i["timer-progress-bar"]}"></div>
356
356
  </div>
357
357
  </div>
358
- `.replace(/(^|\n)\s*/g, ""), Eo = () => {
358
+ `.replace(/(^|\n)\s*/g, ""), Ao = () => {
359
359
  const e = x();
360
360
  return e ? (e.remove(), $([document.documentElement, document.body], [
361
361
  i["no-backdrop"],
@@ -365,7 +365,7 @@ const ao = 100, l = {}, lo = () => {
365
365
  ]), !0) : !1;
366
366
  }, j = () => {
367
367
  l.currentInstance && l.currentInstance.resetValidationMessage();
368
- }, Ao = () => {
368
+ }, Bo = () => {
369
369
  const e = h();
370
370
  if (!e)
371
371
  return;
@@ -375,7 +375,7 @@ const ao = 100, l = {}, lo = () => {
375
375
  }, n.onchange = () => {
376
376
  j(), s.value = n.value;
377
377
  });
378
- }, Bo = (e) => {
378
+ }, Po = (e) => {
379
379
  if (typeof e == "string") {
380
380
  const t = document.querySelector(e);
381
381
  if (!t)
@@ -386,47 +386,47 @@ const ao = 100, l = {}, lo = () => {
386
386
  );
387
387
  }
388
388
  return e;
389
- }, Po = (e) => {
389
+ }, $o = (e) => {
390
390
  const t = h();
391
391
  t && (t.setAttribute("role", e.toast ? "alert" : "dialog"), t.setAttribute("aria-live", e.toast ? "polite" : "assertive"), e.toast || t.setAttribute("aria-modal", "true"));
392
- }, $o = (e) => {
392
+ }, Lo = (e) => {
393
393
  window.getComputedStyle(e).direction === "rtl" && (w(x(), i.rtl), l.isRTL = !0);
394
394
  }, To = (e) => {
395
- const t = Eo();
396
- if (xo()) {
395
+ const t = Ao();
396
+ if (Co()) {
397
397
  N("SweetAlert2 requires document to initialize");
398
398
  return;
399
399
  }
400
400
  const o = document.createElement("div");
401
- o.className = i.container, t && w(o, i["no-transition"]), P(o, Co), o.dataset.swal2Theme = e.theme;
402
- const n = Bo(e.target || "body");
403
- n.appendChild(o), e.topLayer && (o.setAttribute("popover", ""), o.showPopover()), Po(e), $o(n), Ao();
401
+ o.className = i.container, t && w(o, i["no-transition"]), P(o, Eo), o.dataset.swal2Theme = e.theme;
402
+ const n = Po(e.target || "body");
403
+ n.appendChild(o), e.topLayer && (o.setAttribute("popover", ""), o.showPopover()), $o(e), Lo(n), Bo();
404
404
  }, De = (e, t) => {
405
- e instanceof HTMLElement ? t.appendChild(e) : typeof e == "object" ? Lo(e, t) : e && P(t, e);
406
- }, Lo = (e, t) => {
407
- "jquery" in e ? So(t, e) : P(t, e.toString());
405
+ e instanceof HTMLElement ? t.appendChild(e) : typeof e == "object" ? So(e, t) : e && P(t, e);
408
406
  }, So = (e, t) => {
407
+ "jquery" in e ? Io(t, e) : P(t, e.toString());
408
+ }, Io = (e, t) => {
409
409
  if (e.textContent = "", 0 in t)
410
410
  for (let o = 0; o in t; o++)
411
411
  e.appendChild(t[o].cloneNode(!0));
412
412
  else
413
413
  e.appendChild(t.cloneNode(!0));
414
- }, Io = (e, t) => {
415
- const o = J(), n = W();
416
- !o || !n || (!t.showConfirmButton && !t.showDenyButton && !t.showCancelButton ? v(o) : y(o), A(o, t, "actions"), Oo(o, n, t), P(n, t.loaderHtml || ""), A(n, t, "loader"));
414
+ }, Oo = (e, t) => {
415
+ const o = J(), n = U();
416
+ !o || !n || (!t.showConfirmButton && !t.showDenyButton && !t.showCancelButton ? y(o) : v(o), A(o, t, "actions"), Mo(o, n, t), P(n, t.loaderHtml || ""), A(n, t, "loader"));
417
417
  };
418
- function Oo(e, t, o) {
419
- const n = I(), s = R(), r = U();
420
- !n || !s || !r || (ye(n, "confirm", o), ye(s, "deny", o), ye(r, "cancel", o), Mo(n, s, r, o), o.reverseButtons && (o.toast ? (e.insertBefore(r, n), e.insertBefore(s, n)) : (e.insertBefore(r, t), e.insertBefore(s, t), e.insertBefore(n, t))));
418
+ function Mo(e, t, o) {
419
+ const n = S(), s = V(), r = K();
420
+ !n || !s || !r || (ye(n, "confirm", o), ye(s, "deny", o), ye(r, "cancel", o), Ho(n, s, r, o), o.reverseButtons && (o.toast ? (e.insertBefore(r, n), e.insertBefore(s, n)) : (e.insertBefore(r, t), e.insertBefore(s, t), e.insertBefore(n, t))));
421
421
  }
422
- function Mo(e, t, o, n) {
422
+ function Ho(e, t, o, n) {
423
423
  if (!n.buttonsStyling) {
424
424
  $([e, t, o], i.styled);
425
425
  return;
426
426
  }
427
- w([e, t, o], i.styled), n.confirmButtonColor && e.style.setProperty("--swal2-confirm-button-background-color", n.confirmButtonColor), n.denyButtonColor && t.style.setProperty("--swal2-deny-button-background-color", n.denyButtonColor), n.cancelButtonColor && o.style.setProperty("--swal2-cancel-button-background-color", n.cancelButtonColor), be(e), be(t), be(o);
427
+ w([e, t, o], i.styled), n.confirmButtonColor && e.style.setProperty("--swal2-confirm-button-background-color", n.confirmButtonColor), n.denyButtonColor && t.style.setProperty("--swal2-deny-button-background-color", n.denyButtonColor), n.cancelButtonColor && o.style.setProperty("--swal2-cancel-button-background-color", n.cancelButtonColor), ve(e), ve(t), ve(o);
428
428
  }
429
- function be(e) {
429
+ function ve(e) {
430
430
  const t = window.getComputedStyle(e);
431
431
  if (t.getPropertyValue("--swal2-action-button-focus-box-shadow"))
432
432
  return;
@@ -440,68 +440,68 @@ function ye(e, t, o) {
440
440
  );
441
441
  Q(e, o[`show${n}Button`], "inline-block"), P(e, o[`${t}ButtonText`] || ""), e.setAttribute("aria-label", o[`${t}ButtonAriaLabel`] || ""), e.className = i[t], A(e, o, `${t}Button`);
442
442
  }
443
- const Ho = (e, t) => {
443
+ const Do = (e, t) => {
444
444
  const o = Se();
445
445
  o && (P(o, t.closeButtonHtml || ""), A(o, t, "closeButton"), Q(o, t.showCloseButton), o.setAttribute("aria-label", t.closeButtonAriaLabel || ""));
446
- }, Do = (e, t) => {
446
+ }, jo = (e, t) => {
447
447
  const o = x();
448
- o && (jo(o, t.backdrop), _o(o, t.position), zo(o, t.grow), A(o, t, "container"));
448
+ o && (_o(o, t.backdrop), zo(o, t.position), No(o, t.grow), A(o, t, "container"));
449
449
  };
450
- function jo(e, t) {
450
+ function _o(e, t) {
451
451
  typeof t == "string" ? e.style.background = t : t || w([document.documentElement, document.body], i["no-backdrop"]);
452
452
  }
453
- function _o(e, t) {
453
+ function zo(e, t) {
454
454
  t && (t in i ? w(e, i[t]) : (k('The "position" parameter is not valid, defaulting to "center"'), w(e, i.center)));
455
455
  }
456
- function zo(e, t) {
456
+ function No(e, t) {
457
457
  t && w(e, i[`grow-${t}`]);
458
458
  }
459
459
  var f = {
460
460
  innerParams: /* @__PURE__ */ new WeakMap(),
461
461
  domCache: /* @__PURE__ */ new WeakMap()
462
462
  };
463
- const No = ["input", "file", "range", "select", "radio", "checkbox", "textarea"], Ro = (e, t) => {
463
+ const Vo = ["input", "file", "range", "select", "radio", "checkbox", "textarea"], Fo = (e, t) => {
464
464
  const o = h();
465
465
  if (!o)
466
466
  return;
467
467
  const n = f.innerParams.get(e), s = !n || t.input !== n.input;
468
- No.forEach((r) => {
468
+ Vo.forEach((r) => {
469
469
  const a = M(o, i[r]);
470
- a && (qo(r, t.inputAttributes), a.className = i[r], s && v(a));
471
- }), t.input && (s && Fo(t), Ko(t));
472
- }, Fo = (e) => {
470
+ a && (Wo(r, t.inputAttributes), a.className = i[r], s && y(a));
471
+ }), t.input && (s && Ro(t), Ko(t));
472
+ }, Ro = (e) => {
473
473
  if (!e.input)
474
474
  return;
475
475
  if (!p[e.input]) {
476
476
  N(`Unexpected type of input! Expected ${Object.keys(p).join(" | ")}, got "${e.input}"`);
477
477
  return;
478
478
  }
479
- const t = ut(e.input);
479
+ const t = ht(e.input);
480
480
  if (!t)
481
481
  return;
482
482
  const o = p[e.input](t, e);
483
- y(t), e.inputAutoFocus && setTimeout(() => {
484
- lt(o);
483
+ v(t), e.inputAutoFocus && setTimeout(() => {
484
+ dt(o);
485
485
  });
486
- }, Vo = (e) => {
486
+ }, qo = (e) => {
487
487
  for (let t = 0; t < e.attributes.length; t++) {
488
488
  const o = e.attributes[t].name;
489
489
  ["id", "type", "value", "style"].includes(o) || e.removeAttribute(o);
490
490
  }
491
- }, qo = (e, t) => {
491
+ }, Wo = (e, t) => {
492
492
  const o = h();
493
493
  if (!o)
494
494
  return;
495
- const n = ge(o, e);
495
+ const n = be(o, e);
496
496
  if (n) {
497
- Vo(n);
497
+ qo(n);
498
498
  for (const s in t)
499
499
  n.setAttribute(s, t[s]);
500
500
  }
501
501
  }, Ko = (e) => {
502
502
  if (!e.input)
503
503
  return;
504
- const t = ut(e.input);
504
+ const t = ht(e.input);
505
505
  t && A(t, e, "input");
506
506
  }, je = (e, t) => {
507
507
  !e.placeholder && t.inputPlaceholder && (e.placeholder = t.inputPlaceholder);
@@ -510,14 +510,14 @@ const No = ["input", "file", "range", "select", "radio", "checkbox", "textarea"]
510
510
  const n = document.createElement("label"), s = i["input-label"];
511
511
  n.setAttribute("for", e.id), n.className = s, typeof o.customClass == "object" && w(n, o.customClass.inputLabel), n.innerText = o.inputLabel, t.insertAdjacentElement("beforebegin", n);
512
512
  }
513
- }, ut = (e) => {
513
+ }, ht = (e) => {
514
514
  const t = h();
515
515
  if (t)
516
516
  return M(t, i[
517
517
  /** @type {SwalClass} */
518
518
  e
519
519
  ] || i.input);
520
- }, se = (e, t) => {
520
+ }, ie = (e, t) => {
521
521
  ["string", "number"].includes(typeof t) ? e.value = `${t}` : $e(t) || k(`Unexpected type of inputValue! Expected "string", "number" or "Promise", got "${typeof t}"`);
522
522
  }, p = {};
523
523
  p.text = p.email = p.password = p.number = p.tel = p.url = p.search = p.date = p["datetime-local"] = p.time = p.week = p.month = /** @type {(input: Input | HTMLElement, params: SweetAlertOptions) => Input} */
@@ -526,7 +526,7 @@ p.text = p.email = p.password = p.number = p.tel = p.url = p.search = p.date = p
526
526
  /** @type {HTMLInputElement} */
527
527
  e
528
528
  );
529
- return se(o, t.inputValue), ee(o, o, t), je(o, t), o.type = /** @type {string} */
529
+ return ie(o, t.inputValue), ee(o, o, t), je(o, t), o.type = /** @type {string} */
530
530
  t.input, o;
531
531
  };
532
532
  p.file = (e, t) => {
@@ -541,13 +541,13 @@ p.range = (e, t) => {
541
541
  /** @type {HTMLElement} */
542
542
  e
543
543
  ), n = o.querySelector("input"), s = o.querySelector("output");
544
- return n && (se(n, t.inputValue), n.type = /** @type {string} */
544
+ return n && (ie(n, t.inputValue), n.type = /** @type {string} */
545
545
  t.input, ee(
546
546
  n,
547
547
  /** @type {Input} */
548
548
  e,
549
549
  t
550
- )), s && se(s, t.inputValue), /** @type {Input} */
550
+ )), s && ie(s, t.inputValue), /** @type {Input} */
551
551
  e;
552
552
  };
553
553
  p.select = (e, t) => {
@@ -573,7 +573,7 @@ p.checkbox = (e, t) => {
573
573
  const o = h();
574
574
  if (!o)
575
575
  throw new Error("Popup not found");
576
- const n = ge(o, "checkbox");
576
+ const n = be(o, "checkbox");
577
577
  if (!n)
578
578
  throw new Error("Checkbox input not found");
579
579
  n.value = "1", n.checked = !!t.inputValue;
@@ -589,7 +589,7 @@ p.textarea = (e, t) => {
589
589
  /** @type {HTMLTextAreaElement} */
590
590
  e
591
591
  );
592
- se(o, t.inputValue), je(o, t), ee(o, o, t);
592
+ ie(o, t.inputValue), je(o, t), ee(o, o, t);
593
593
  const n = (s) => parseInt(window.getComputedStyle(s).marginLeft) + parseInt(window.getComputedStyle(s).marginRight);
594
594
  return setTimeout(() => {
595
595
  if ("MutationObserver" in window) {
@@ -610,108 +610,108 @@ p.textarea = (e, t) => {
610
610
  }), o;
611
611
  };
612
612
  const Uo = (e, t) => {
613
- const o = Te();
614
- o && (Me(o), A(o, t, "htmlContainer"), t.html ? (De(t.html, o), y(o, "block")) : t.text ? (o.textContent = t.text, y(o, "block")) : v(o), Ro(e, t));
615
- }, Wo = (e, t) => {
616
- const o = at();
617
- o && (Me(o), Q(o, !!t.footer, "block"), t.footer && De(t.footer, o), A(o, t, "footer"));
613
+ const o = Le();
614
+ o && (Me(o), A(o, t, "htmlContainer"), t.html ? (De(t.html, o), v(o, "block")) : t.text ? (o.textContent = t.text, v(o, "block")) : y(o), Fo(e, t));
618
615
  }, Yo = (e, t) => {
619
- const o = f.innerParams.get(e), n = K();
616
+ const o = ct();
617
+ o && (Me(o), Q(o, !!t.footer, "block"), t.footer && De(t.footer, o), A(o, t, "footer"));
618
+ }, Go = (e, t) => {
619
+ const o = f.innerParams.get(e), n = W();
620
620
  if (!n)
621
621
  return;
622
622
  if (o && t.icon === o.icon) {
623
- We(n, t), Ue(n, t);
623
+ Ue(n, t), Ke(n, t);
624
624
  return;
625
625
  }
626
626
  if (!t.icon && !t.iconHtml) {
627
- v(n);
627
+ y(n);
628
628
  return;
629
629
  }
630
- if (t.icon && Object.keys(ne).indexOf(t.icon) === -1) {
631
- N(`Unknown icon! Expected "success", "error", "warning", "info" or "question", got "${t.icon}"`), v(n);
630
+ if (t.icon && Object.keys(se).indexOf(t.icon) === -1) {
631
+ N(`Unknown icon! Expected "success", "error", "warning", "info" or "question", got "${t.icon}"`), y(n);
632
632
  return;
633
633
  }
634
- y(n), We(n, t), Ue(n, t), w(n, t.showClass && t.showClass.icon), window.matchMedia("(prefers-color-scheme: dark)").addEventListener("change", wt);
635
- }, Ue = (e, t) => {
636
- for (const [o, n] of Object.entries(ne))
634
+ v(n), Ue(n, t), Ke(n, t), w(n, t.showClass && t.showClass.icon), window.matchMedia("(prefers-color-scheme: dark)").addEventListener("change", ft);
635
+ }, Ke = (e, t) => {
636
+ for (const [o, n] of Object.entries(se))
637
637
  t.icon !== o && $(e, n);
638
- w(e, t.icon && ne[t.icon]), Zo(e, t), wt(), A(e, t, "icon");
639
- }, wt = () => {
638
+ w(e, t.icon && se[t.icon]), Jo(e, t), ft(), A(e, t, "icon");
639
+ }, ft = () => {
640
640
  const e = h();
641
641
  if (!e)
642
642
  return;
643
643
  const t = window.getComputedStyle(e).getPropertyValue("background-color"), o = e.querySelectorAll("[class^=swal2-success-circular-line], .swal2-success-fix");
644
644
  for (let n = 0; n < o.length; n++)
645
645
  o[n].style.backgroundColor = t;
646
- }, Go = (e) => `
646
+ }, Xo = (e) => `
647
647
  ${e.animation ? '<div class="swal2-success-circular-line-left"></div>' : ""}
648
648
  <span class="swal2-success-line-tip"></span> <span class="swal2-success-line-long"></span>
649
649
  <div class="swal2-success-ring"></div>
650
650
  ${e.animation ? '<div class="swal2-success-fix"></div>' : ""}
651
651
  ${e.animation ? '<div class="swal2-success-circular-line-right"></div>' : ""}
652
- `, Xo = `
652
+ `, Zo = `
653
653
  <span class="swal2-x-mark">
654
654
  <span class="swal2-x-mark-line-left"></span>
655
655
  <span class="swal2-x-mark-line-right"></span>
656
656
  </span>
657
- `, We = (e, t) => {
657
+ `, Ue = (e, t) => {
658
658
  if (!t.icon && !t.iconHtml)
659
659
  return;
660
660
  let o = e.innerHTML, n = "";
661
- t.iconHtml ? n = Ye(t.iconHtml) : t.icon === "success" ? (n = Go(t), o = o.replace(/ style=".*?"/g, "")) : t.icon === "error" ? n = Xo : t.icon && (n = Ye({
661
+ t.iconHtml ? n = Ye(t.iconHtml) : t.icon === "success" ? (n = Xo(t), o = o.replace(/ style=".*?"/g, "")) : t.icon === "error" ? n = Zo : t.icon && (n = Ye({
662
662
  question: "?",
663
663
  warning: "!",
664
664
  info: "i"
665
665
  }[t.icon])), o.trim() !== n.trim() && P(e, n);
666
- }, Zo = (e, t) => {
666
+ }, Jo = (e, t) => {
667
667
  if (t.iconColor) {
668
668
  e.style.color = t.iconColor, e.style.borderColor = t.iconColor;
669
669
  for (const o of [".swal2-success-line-tip", ".swal2-success-line-long", ".swal2-x-mark-line-left", ".swal2-x-mark-line-right"])
670
- Ke(e, o, "background-color", t.iconColor);
671
- Ke(e, ".swal2-success-ring", "border-color", t.iconColor);
670
+ We(e, o, "background-color", t.iconColor);
671
+ We(e, ".swal2-success-ring", "border-color", t.iconColor);
672
672
  }
673
- }, Ye = (e) => `<div class="${i["icon-content"]}">${e}</div>`, Jo = (e, t) => {
674
- const o = rt();
673
+ }, Ye = (e) => `<div class="${i["icon-content"]}">${e}</div>`, Qo = (e, t) => {
674
+ const o = lt();
675
675
  if (o) {
676
676
  if (!t.imageUrl) {
677
- v(o);
677
+ y(o);
678
678
  return;
679
679
  }
680
- y(o, ""), o.setAttribute("src", t.imageUrl), o.setAttribute("alt", t.imageAlt || ""), _(o, "width", t.imageWidth), _(o, "height", t.imageHeight), o.className = i.image, A(o, t, "image");
680
+ v(o, ""), o.setAttribute("src", t.imageUrl), o.setAttribute("alt", t.imageAlt || ""), _(o, "width", t.imageWidth), _(o, "height", t.imageHeight), o.className = i.image, A(o, t, "image");
681
681
  }
682
682
  };
683
- let _e = !1, ht = 0, ft = 0, mt = 0, pt = 0;
684
- const Qo = (e) => {
685
- e.addEventListener("mousedown", ie), document.body.addEventListener("mousemove", re), e.addEventListener("mouseup", ae), e.addEventListener("touchstart", ie), document.body.addEventListener("touchmove", re), e.addEventListener("touchend", ae);
686
- }, en = (e) => {
687
- e.removeEventListener("mousedown", ie), document.body.removeEventListener("mousemove", re), e.removeEventListener("mouseup", ae), e.removeEventListener("touchstart", ie), document.body.removeEventListener("touchmove", re), e.removeEventListener("touchend", ae);
688
- }, ie = (e) => {
683
+ let _e = !1, mt = 0, pt = 0, gt = 0, bt = 0;
684
+ const en = (e) => {
685
+ e.addEventListener("mousedown", re), document.body.addEventListener("mousemove", ae), e.addEventListener("mouseup", le), e.addEventListener("touchstart", re), document.body.addEventListener("touchmove", ae), e.addEventListener("touchend", le);
686
+ }, tn = (e) => {
687
+ e.removeEventListener("mousedown", re), document.body.removeEventListener("mousemove", ae), e.removeEventListener("mouseup", le), e.removeEventListener("touchstart", re), document.body.removeEventListener("touchmove", ae), e.removeEventListener("touchend", le);
688
+ }, re = (e) => {
689
689
  const t = h();
690
690
  if (!t)
691
691
  return;
692
- const o = K();
692
+ const o = W();
693
693
  if (e.target === t || o && o.contains(
694
694
  /** @type {HTMLElement} */
695
695
  e.target
696
696
  )) {
697
697
  _e = !0;
698
- const n = gt(e);
699
- ht = n.clientX, ft = n.clientY, mt = parseInt(t.style.insetInlineStart) || 0, pt = parseInt(t.style.insetBlockStart) || 0, w(t, "swal2-dragging");
698
+ const n = vt(e);
699
+ mt = n.clientX, pt = n.clientY, gt = parseInt(t.style.insetInlineStart) || 0, bt = parseInt(t.style.insetBlockStart) || 0, w(t, "swal2-dragging");
700
700
  }
701
- }, re = (e) => {
701
+ }, ae = (e) => {
702
702
  const t = h();
703
703
  if (t && _e) {
704
704
  let {
705
705
  clientX: o,
706
706
  clientY: n
707
- } = gt(e);
708
- const s = o - ht;
709
- t.style.insetInlineStart = `${mt + (l.isRTL ? -s : s)}px`, t.style.insetBlockStart = `${pt + (n - ft)}px`;
707
+ } = vt(e);
708
+ const s = o - mt;
709
+ t.style.insetInlineStart = `${gt + (l.isRTL ? -s : s)}px`, t.style.insetBlockStart = `${bt + (n - pt)}px`;
710
710
  }
711
- }, ae = () => {
711
+ }, le = () => {
712
712
  const e = h();
713
713
  _e = !1, $(e, "swal2-dragging");
714
- }, gt = (e) => {
714
+ }, vt = (e) => {
715
715
  let t = 0, o = 0;
716
716
  return e.type.startsWith("mouse") ? (t = /** @type {MouseEvent} */
717
717
  e.clientX, o = /** @type {MouseEvent} */
@@ -721,22 +721,22 @@ const Qo = (e) => {
721
721
  clientX: t,
722
722
  clientY: o
723
723
  };
724
- }, tn = (e, t) => {
724
+ }, on = (e, t) => {
725
725
  const o = x(), n = h();
726
726
  if (!(!o || !n)) {
727
727
  if (t.toast) {
728
728
  _(o, "width", t.width), n.style.width = "100%";
729
- const s = W();
730
- s && n.insertBefore(s, K());
729
+ const s = U();
730
+ s && n.insertBefore(s, W());
731
731
  } else
732
732
  _(n, "width", t.width);
733
- _(n, "padding", t.padding), t.color && (n.style.color = t.color), t.background && (n.style.background = t.background), v(fe()), on(n, t), t.draggable && !t.toast ? (w(n, i.draggable), Qo(n)) : ($(n, i.draggable), en(n));
733
+ _(n, "padding", t.padding), t.color && (n.style.color = t.color), t.background && (n.style.background = t.background), y(me()), nn(n, t), t.draggable && !t.toast ? (w(n, i.draggable), en(n)) : ($(n, i.draggable), tn(n));
734
734
  }
735
- }, on = (e, t) => {
735
+ }, nn = (e, t) => {
736
736
  const o = t.showClass || {};
737
737
  e.className = `${i.popup} ${E(e) ? o.popup : ""}`, t.toast ? (w([document.documentElement, document.body], i["toast-shown"]), w(e, i.toast)) : w(e, i.modal), A(e, t, "popup"), typeof t.customClass == "string" && w(e, t.customClass), t.icon && w(e, i[`icon-${t.icon}`]);
738
- }, nn = (e, t) => {
739
- const o = Le();
738
+ }, sn = (e, t) => {
739
+ const o = Te();
740
740
  if (!o)
741
741
  return;
742
742
  const {
@@ -744,46 +744,46 @@ const Qo = (e) => {
744
744
  currentProgressStep: s
745
745
  } = t;
746
746
  if (!n || n.length === 0 || s === void 0) {
747
- v(o);
747
+ y(o);
748
748
  return;
749
749
  }
750
- y(o), o.textContent = "", s >= n.length && k("Invalid currentProgressStep parameter, it should be less than progressSteps.length (currentProgressStep like JS arrays starts from 0)"), n.forEach((r, a) => {
751
- const c = sn(r);
750
+ v(o), o.textContent = "", s >= n.length && k("Invalid currentProgressStep parameter, it should be less than progressSteps.length (currentProgressStep like JS arrays starts from 0)"), n.forEach((r, a) => {
751
+ const c = rn(r);
752
752
  if (o.appendChild(c), a === s && w(c, i["active-progress-step"]), a !== n.length - 1) {
753
- const d = rn(t);
753
+ const d = an(t);
754
754
  o.appendChild(d);
755
755
  }
756
756
  });
757
- }, sn = (e) => {
757
+ }, rn = (e) => {
758
758
  const t = document.createElement("li");
759
759
  return w(t, i["progress-step"]), P(t, e), t;
760
- }, rn = (e) => {
760
+ }, an = (e) => {
761
761
  const t = document.createElement("li");
762
762
  return w(t, i["progress-step-line"]), e.progressStepsDistance && _(t, "width", e.progressStepsDistance), t;
763
- }, an = (e, t) => {
764
- const o = it();
763
+ }, ln = (e, t) => {
764
+ const o = at();
765
765
  o && (Me(o), Q(o, !!(t.title || t.titleText), "block"), t.title && De(t.title, o), t.titleText && (o.innerText = t.titleText), A(o, t, "title"));
766
- }, bt = (e, t) => {
766
+ }, yt = (e, t) => {
767
767
  var o;
768
- tn(e, t), Do(e, t), nn(e, t), Yo(e, t), Jo(e, t), an(e, t), Ho(e, t), Uo(e, t), Io(e, t), Wo(e, t);
768
+ on(e, t), jo(e, t), sn(e, t), Go(e, t), Qo(e, t), ln(e, t), Do(e, t), Uo(e, t), Oo(e, t), Yo(e, t);
769
769
  const n = h();
770
770
  typeof t.didRender == "function" && n && t.didRender(n), (o = l.eventEmitter) === null || o === void 0 || o.emit("didRender", n);
771
- }, ln = () => E(h()), yt = () => {
771
+ }, cn = () => E(h()), kt = () => {
772
772
  var e;
773
- return (e = I()) === null || e === void 0 ? void 0 : e.click();
774
- }, cn = () => {
775
- var e;
776
- return (e = R()) === null || e === void 0 ? void 0 : e.click();
773
+ return (e = S()) === null || e === void 0 ? void 0 : e.click();
777
774
  }, dn = () => {
778
775
  var e;
779
- return (e = U()) === null || e === void 0 ? void 0 : e.click();
776
+ return (e = V()) === null || e === void 0 ? void 0 : e.click();
777
+ }, un = () => {
778
+ var e;
779
+ return (e = K()) === null || e === void 0 ? void 0 : e.click();
780
780
  }, Y = Object.freeze({
781
781
  cancel: "cancel",
782
782
  backdrop: "backdrop",
783
783
  close: "close",
784
784
  esc: "esc",
785
785
  timer: "timer"
786
- }), vt = (e) => {
786
+ }), xt = (e) => {
787
787
  if (e.keydownTarget && e.keydownHandlerAdded && e.keydownHandler) {
788
788
  const t = (
789
789
  /** @type {EventListenerOrEventListenerObject} */
@@ -794,9 +794,9 @@ const Qo = (e) => {
794
794
  capture: e.keydownListenerCapture
795
795
  }), e.keydownHandlerAdded = !1;
796
796
  }
797
- }, un = (e, t, o) => {
798
- if (vt(e), !t.toast) {
799
- const n = (r) => hn(t, r, o);
797
+ }, wn = (e, t, o) => {
798
+ if (xt(e), !t.toast) {
799
+ const n = (r) => fn(t, r, o);
800
800
  e.keydownHandler = n;
801
801
  const s = t.keydownListenerCapture ? window : h();
802
802
  if (s) {
@@ -811,7 +811,7 @@ const Qo = (e) => {
811
811
  }), e.keydownHandlerAdded = !0;
812
812
  }
813
813
  }
814
- }, Ce = (e, t) => {
814
+ }, Ee = (e, t) => {
815
815
  var o;
816
816
  const n = Ie();
817
817
  if (n.length) {
@@ -819,21 +819,21 @@ const Qo = (e) => {
819
819
  return;
820
820
  }
821
821
  (o = h()) === null || o === void 0 || o.focus();
822
- }, kt = ["ArrowRight", "ArrowDown"], wn = ["ArrowLeft", "ArrowUp"], hn = (e, t, o) => {
823
- e && (t.isComposing || t.keyCode === 229 || (e.stopKeydownPropagation && t.stopPropagation(), t.key === "Enter" ? fn(t, e) : t.key === "Tab" ? mn(t) : [...kt, ...wn].includes(t.key) ? pn(t.key) : t.key === "Escape" && gn(t, e, o)));
824
- }, fn = (e, t) => {
825
- if (!he(t.allowEnterKey))
822
+ }, Ct = ["ArrowRight", "ArrowDown"], hn = ["ArrowLeft", "ArrowUp"], fn = (e, t, o) => {
823
+ e && (t.isComposing || t.keyCode === 229 || (e.stopKeydownPropagation && t.stopPropagation(), t.key === "Enter" ? mn(t, e) : t.key === "Tab" ? pn(t) : [...Ct, ...hn].includes(t.key) ? gn(t.key) : t.key === "Escape" && bn(t, e, o)));
824
+ }, mn = (e, t) => {
825
+ if (!fe(t.allowEnterKey))
826
826
  return;
827
827
  const o = h();
828
828
  if (!o || !t.input)
829
829
  return;
830
- const n = ge(o, t.input);
830
+ const n = be(o, t.input);
831
831
  if (e.target && n && e.target instanceof HTMLElement && e.target.outerHTML === n.outerHTML) {
832
832
  if (["textarea", "file"].includes(t.input))
833
833
  return;
834
- yt(), e.preventDefault();
834
+ kt(), e.preventDefault();
835
835
  }
836
- }, mn = (e) => {
836
+ }, pn = (e) => {
837
837
  const t = e.target, o = Ie();
838
838
  let n = -1;
839
839
  for (let s = 0; s < o.length; s++)
@@ -841,15 +841,15 @@ const Qo = (e) => {
841
841
  n = s;
842
842
  break;
843
843
  }
844
- e.shiftKey ? Ce(n, -1) : Ce(n, 1), e.stopPropagation(), e.preventDefault();
845
- }, pn = (e) => {
846
- const t = J(), o = I(), n = R(), s = U();
844
+ e.shiftKey ? Ee(n, -1) : Ee(n, 1), e.stopPropagation(), e.preventDefault();
845
+ }, gn = (e) => {
846
+ const t = J(), o = S(), n = V(), s = K();
847
847
  if (!t || !o || !n || !s)
848
848
  return;
849
849
  const r = [o, n, s];
850
850
  if (document.activeElement instanceof HTMLElement && !r.includes(document.activeElement))
851
851
  return;
852
- const a = kt.includes(e) ? "nextElementSibling" : "previousElementSibling";
852
+ const a = Ct.includes(e) ? "nextElementSibling" : "previousElementSibling";
853
853
  let c = document.activeElement;
854
854
  if (c) {
855
855
  for (let d = 0; d < t.children.length; d++) {
@@ -860,71 +860,71 @@ const Qo = (e) => {
860
860
  }
861
861
  c instanceof HTMLButtonElement && c.focus();
862
862
  }
863
- }, gn = (e, t, o) => {
864
- e.preventDefault(), he(t.allowEscapeKey) && o(Y.esc);
863
+ }, bn = (e, t, o) => {
864
+ e.preventDefault(), fe(t.allowEscapeKey) && o(Y.esc);
865
865
  };
866
- var V = {
866
+ var R = {
867
867
  swalPromiseResolve: /* @__PURE__ */ new WeakMap(),
868
868
  swalPromiseReject: /* @__PURE__ */ new WeakMap()
869
869
  };
870
- const bn = () => {
870
+ const vn = () => {
871
871
  const e = x();
872
872
  Array.from(document.body.children).forEach((o) => {
873
873
  o.contains(e) || (o.hasAttribute("aria-hidden") && o.setAttribute("data-previous-aria-hidden", o.getAttribute("aria-hidden") || ""), o.setAttribute("aria-hidden", "true"));
874
874
  });
875
- }, xt = () => {
875
+ }, Et = () => {
876
876
  Array.from(document.body.children).forEach((t) => {
877
877
  t.hasAttribute("data-previous-aria-hidden") ? (t.setAttribute("aria-hidden", t.getAttribute("data-previous-aria-hidden") || ""), t.removeAttribute("data-previous-aria-hidden")) : t.removeAttribute("aria-hidden");
878
878
  });
879
- }, Ct = typeof window < "u" && !!window.GestureEvent, yn = () => {
880
- if (Ct && !O(document.body, i.iosfix)) {
879
+ }, At = typeof window < "u" && !!window.GestureEvent, yn = () => {
880
+ if (At && !O(document.body, i.iosfix)) {
881
881
  const e = document.body.scrollTop;
882
- document.body.style.top = `${e * -1}px`, w(document.body, i.iosfix), vn();
882
+ document.body.style.top = `${e * -1}px`, w(document.body, i.iosfix), kn();
883
883
  }
884
- }, vn = () => {
884
+ }, kn = () => {
885
885
  const e = x();
886
886
  if (!e)
887
887
  return;
888
888
  let t;
889
889
  e.ontouchstart = (o) => {
890
- t = kn(o);
890
+ t = xn(o);
891
891
  }, e.ontouchmove = (o) => {
892
892
  t && (o.preventDefault(), o.stopPropagation());
893
893
  };
894
- }, kn = (e) => {
895
- const t = e.target, o = x(), n = Te();
896
- return !o || !n || xn(e) || Cn(e) ? !1 : t === o || !xe(o) && t instanceof HTMLElement && !vo(t, n) && // #2823
894
+ }, xn = (e) => {
895
+ const t = e.target, o = x(), n = Le();
896
+ return !o || !n || Cn(e) || En(e) ? !1 : t === o || !Ce(o) && t instanceof HTMLElement && !ko(t, n) && // #2823
897
897
  t.tagName !== "INPUT" && // #1603
898
898
  t.tagName !== "TEXTAREA" && // #2266
899
- !(xe(n) && // #1944
899
+ !(Ce(n) && // #1944
900
900
  n.contains(t));
901
- }, xn = (e) => !!(e.touches && e.touches.length && // @ts-ignore - touchType is not a standard property
902
- e.touches[0].touchType === "stylus"), Cn = (e) => e.touches && e.touches.length > 1, En = () => {
901
+ }, Cn = (e) => !!(e.touches && e.touches.length && // @ts-ignore - touchType is not a standard property
902
+ e.touches[0].touchType === "stylus"), En = (e) => e.touches && e.touches.length > 1, An = () => {
903
903
  if (O(document.body, i.iosfix)) {
904
904
  const e = parseInt(document.body.style.top, 10);
905
905
  $(document.body, i.iosfix), document.body.style.top = "", document.body.scrollTop = e * -1;
906
906
  }
907
- }, An = () => {
907
+ }, Bn = () => {
908
908
  const e = document.createElement("div");
909
909
  e.className = i["scrollbar-measure"], document.body.appendChild(e);
910
910
  const t = e.getBoundingClientRect().width - e.clientWidth;
911
911
  return document.body.removeChild(e), t;
912
912
  };
913
913
  let F = null;
914
- const Bn = (e) => {
915
- F === null && (document.body.scrollHeight > window.innerHeight || e === "scroll") && (F = parseInt(window.getComputedStyle(document.body).getPropertyValue("padding-right")), document.body.style.paddingRight = `${F + An()}px`);
916
- }, Pn = () => {
914
+ const Pn = (e) => {
915
+ F === null && (document.body.scrollHeight > window.innerHeight || e === "scroll") && (F = parseInt(window.getComputedStyle(document.body).getPropertyValue("padding-right")), document.body.style.paddingRight = `${F + Bn()}px`);
916
+ }, $n = () => {
917
917
  F !== null && (document.body.style.paddingRight = `${F}px`, F = null);
918
918
  };
919
- function Et(e, t, o, n) {
920
- pe() ? Ge(e, n) : (co(o).then(() => Ge(e, n)), vt(l)), Ct ? (t.setAttribute("style", "display:none !important"), t.removeAttribute("class"), t.innerHTML = "") : t.remove(), Oe() && (Pn(), En(), xt()), $n();
919
+ function Bt(e, t, o, n) {
920
+ ge() ? Ge(e, n) : (uo(o).then(() => Ge(e, n)), xt(l)), At ? (t.setAttribute("style", "display:none !important"), t.removeAttribute("class"), t.innerHTML = "") : t.remove(), Oe() && ($n(), An(), Et()), Ln();
921
921
  }
922
- function $n() {
922
+ function Ln() {
923
923
  $([document.documentElement, document.body], [i.shown, i["height-auto"], i["no-backdrop"], i["toast-shown"]]);
924
924
  }
925
925
  function H(e) {
926
- e = Ln(e);
927
- const t = V.swalPromiseResolve.get(this), o = Tn(this);
926
+ e = Sn(e);
927
+ const t = R.swalPromiseResolve.get(this), o = Tn(this);
928
928
  this.isAwaitingPromise ? e.isDismissed || (te(this), t(e)) : o && t(e);
929
929
  }
930
930
  const Tn = (e) => {
@@ -936,15 +936,15 @@ const Tn = (e) => {
936
936
  return !1;
937
937
  $(t, o.showClass.popup), w(t, o.hideClass.popup);
938
938
  const n = x();
939
- return $(n, o.showClass.backdrop), w(n, o.hideClass.backdrop), Sn(e, t, o), !0;
939
+ return $(n, o.showClass.backdrop), w(n, o.hideClass.backdrop), In(e, t, o), !0;
940
940
  };
941
- function At(e) {
942
- const t = V.swalPromiseReject.get(this);
941
+ function Pt(e) {
942
+ const t = R.swalPromiseReject.get(this);
943
943
  te(this), t && t(e);
944
944
  }
945
945
  const te = (e) => {
946
946
  e.isAwaitingPromise && (delete e.isAwaitingPromise, f.innerParams.get(e) || e._destroy());
947
- }, Ln = (e) => typeof e > "u" ? {
947
+ }, Sn = (e) => typeof e > "u" ? {
948
948
  isConfirmed: !1,
949
949
  isDenied: !1,
950
950
  isDismissed: !0
@@ -952,12 +952,12 @@ const te = (e) => {
952
952
  isConfirmed: !1,
953
953
  isDenied: !1,
954
954
  isDismissed: !1
955
- }, e), Sn = (e, t, o) => {
955
+ }, e), In = (e, t, o) => {
956
956
  var n;
957
- const s = x(), r = dt(t);
958
- typeof o.willClose == "function" && o.willClose(t), (n = l.eventEmitter) === null || n === void 0 || n.emit("willClose", t), r && s ? In(e, t, s, !!o.returnFocus, o.didClose) : s && Et(e, s, !!o.returnFocus, o.didClose);
959
- }, In = (e, t, o, n, s) => {
960
- l.swalCloseEventFinishedCallback = Et.bind(null, e, o, n, s);
957
+ const s = x(), r = wt(t);
958
+ typeof o.willClose == "function" && o.willClose(t), (n = l.eventEmitter) === null || n === void 0 || n.emit("willClose", t), r && s ? On(e, t, s, !!o.returnFocus, o.didClose) : s && Bt(e, s, !!o.returnFocus, o.didClose);
959
+ }, On = (e, t, o, n, s) => {
960
+ l.swalCloseEventFinishedCallback = Bt.bind(null, e, o, n, s);
961
961
  const r = function(a) {
962
962
  if (a.target === t) {
963
963
  var c;
@@ -972,54 +972,54 @@ const te = (e) => {
972
972
  });
973
973
  }, q = (e) => {
974
974
  let t = h();
975
- if (t || new we(), t = h(), !t)
975
+ if (t || new he(), t = h(), !t)
976
976
  return;
977
- const o = W();
978
- pe() ? v(K()) : On(t, e), y(o), t.setAttribute("data-loading", "true"), t.setAttribute("aria-busy", "true"), t.focus();
979
- }, On = (e, t) => {
980
- const o = J(), n = W();
981
- !o || !n || (!t && E(I()) && (t = I()), y(o), t && (v(t), n.setAttribute("data-button-to-replace", t.className), o.insertBefore(n, t)), w([e, o], i.loading));
977
+ const o = U();
978
+ ge() ? y(W()) : Mn(t, e), v(o), t.setAttribute("data-loading", "true"), t.setAttribute("aria-busy", "true"), t.focus();
982
979
  }, Mn = (e, t) => {
983
- t.input === "select" || t.input === "radio" ? zn(e, t) : ["text", "email", "number", "tel", "textarea"].some((o) => o === t.input) && (Pe(t.inputValue) || $e(t.inputValue)) && (q(I()), Nn(e, t));
980
+ const o = J(), n = U();
981
+ !o || !n || (!t && E(S()) && (t = S()), v(o), t && (y(t), n.setAttribute("data-button-to-replace", t.className), o.insertBefore(n, t)), w([e, o], i.loading));
984
982
  }, Hn = (e, t) => {
983
+ t.input === "select" || t.input === "radio" ? Nn(e, t) : ["text", "email", "number", "tel", "textarea"].some((o) => o === t.input) && (Pe(t.inputValue) || $e(t.inputValue)) && (q(S()), Vn(e, t));
984
+ }, Dn = (e, t) => {
985
985
  const o = e.getInput();
986
986
  if (!o)
987
987
  return null;
988
988
  switch (t.input) {
989
989
  case "checkbox":
990
- return Dn(o);
991
- case "radio":
992
990
  return jn(o);
993
- case "file":
991
+ case "radio":
994
992
  return _n(o);
993
+ case "file":
994
+ return zn(o);
995
995
  default:
996
996
  return t.inputAutoTrim ? o.value.trim() : o.value;
997
997
  }
998
- }, Dn = (e) => e.checked ? 1 : 0, jn = (e) => e.checked ? e.value : null, _n = (e) => e.files && e.files.length ? e.getAttribute("multiple") !== null ? e.files : e.files[0] : null, zn = (e, t) => {
998
+ }, jn = (e) => e.checked ? 1 : 0, _n = (e) => e.checked ? e.value : null, zn = (e) => e.files && e.files.length ? e.getAttribute("multiple") !== null ? e.files : e.files[0] : null, Nn = (e, t) => {
999
999
  const o = h();
1000
1000
  if (!o)
1001
1001
  return;
1002
1002
  const n = (s) => {
1003
- t.input === "select" ? Rn(o, le(s), t) : t.input === "radio" && Fn(o, le(s), t);
1003
+ t.input === "select" ? Fn(o, ce(s), t) : t.input === "radio" && Rn(o, ce(s), t);
1004
1004
  };
1005
- Pe(t.inputOptions) || $e(t.inputOptions) ? (q(I()), X(t.inputOptions).then((s) => {
1005
+ Pe(t.inputOptions) || $e(t.inputOptions) ? (q(S()), X(t.inputOptions).then((s) => {
1006
1006
  e.hideLoading(), n(s);
1007
1007
  })) : typeof t.inputOptions == "object" ? n(t.inputOptions) : N(`Unexpected type of inputOptions! Expected object, Map or Promise, got ${typeof t.inputOptions}`);
1008
- }, Nn = (e, t) => {
1008
+ }, Vn = (e, t) => {
1009
1009
  const o = e.getInput();
1010
- o && (v(o), X(t.inputValue).then((n) => {
1011
- o.value = t.input === "number" ? `${parseFloat(n) || 0}` : `${n}`, y(o), o.focus(), e.hideLoading();
1010
+ o && (y(o), X(t.inputValue).then((n) => {
1011
+ o.value = t.input === "number" ? `${parseFloat(n) || 0}` : `${n}`, v(o), o.focus(), e.hideLoading();
1012
1012
  }).catch((n) => {
1013
- N(`Error in inputValue promise: ${n}`), o.value = "", y(o), o.focus(), e.hideLoading();
1013
+ N(`Error in inputValue promise: ${n}`), o.value = "", v(o), o.focus(), e.hideLoading();
1014
1014
  }));
1015
1015
  };
1016
- function Rn(e, t, o) {
1016
+ function Fn(e, t, o) {
1017
1017
  const n = M(e, i.select);
1018
1018
  if (!n)
1019
1019
  return;
1020
1020
  const s = (r, a, c) => {
1021
1021
  const d = document.createElement("option");
1022
- d.value = c, P(d, a), d.selected = Bt(c, o.inputValue), r.appendChild(d);
1022
+ d.value = c, P(d, a), d.selected = $t(c, o.inputValue), r.appendChild(d);
1023
1023
  };
1024
1024
  t.forEach((r) => {
1025
1025
  const a = r[0], c = r[1];
@@ -1030,43 +1030,43 @@ function Rn(e, t, o) {
1030
1030
  s(n, c, a);
1031
1031
  }), n.focus();
1032
1032
  }
1033
- function Fn(e, t, o) {
1033
+ function Rn(e, t, o) {
1034
1034
  const n = M(e, i.radio);
1035
1035
  if (!n)
1036
1036
  return;
1037
1037
  t.forEach((r) => {
1038
1038
  const a = r[0], c = r[1], d = document.createElement("input"), u = document.createElement("label");
1039
- d.type = "radio", d.name = i.radio, d.value = a, Bt(a, o.inputValue) && (d.checked = !0);
1039
+ d.type = "radio", d.name = i.radio, d.value = a, $t(a, o.inputValue) && (d.checked = !0);
1040
1040
  const m = document.createElement("span");
1041
1041
  P(m, c), m.className = i.label, u.appendChild(d), u.appendChild(m), n.appendChild(u);
1042
1042
  });
1043
1043
  const s = n.querySelectorAll("input");
1044
1044
  s.length && s[0].focus();
1045
1045
  }
1046
- const le = (e) => {
1046
+ const ce = (e) => {
1047
1047
  const t = [];
1048
1048
  return e instanceof Map ? e.forEach((o, n) => {
1049
1049
  let s = o;
1050
- typeof s == "object" && (s = le(s)), t.push([n, s]);
1050
+ typeof s == "object" && (s = ce(s)), t.push([n, s]);
1051
1051
  }) : Object.keys(e).forEach((o) => {
1052
1052
  let n = e[o];
1053
- typeof n == "object" && (n = le(n)), t.push([o, n]);
1053
+ typeof n == "object" && (n = ce(n)), t.push([o, n]);
1054
1054
  }), t;
1055
- }, Bt = (e, t) => !!t && t !== null && t !== void 0 && t.toString() === e.toString(), Vn = (e) => {
1055
+ }, $t = (e, t) => !!t && t !== null && t !== void 0 && t.toString() === e.toString(), qn = (e) => {
1056
1056
  const t = f.innerParams.get(e);
1057
- e.disableButtons(), t.input ? Pt(e, "confirm") : Ne(e, !0);
1058
- }, qn = (e) => {
1057
+ e.disableButtons(), t.input ? Lt(e, "confirm") : Ne(e, !0);
1058
+ }, Wn = (e) => {
1059
1059
  const t = f.innerParams.get(e);
1060
- e.disableButtons(), t.returnInputValueOnDeny ? Pt(e, "deny") : ze(e, !1);
1060
+ e.disableButtons(), t.returnInputValueOnDeny ? Lt(e, "deny") : ze(e, !1);
1061
1061
  }, Kn = (e, t) => {
1062
1062
  e.disableButtons(), t(Y.cancel);
1063
- }, Pt = (e, t) => {
1063
+ }, Lt = (e, t) => {
1064
1064
  const o = f.innerParams.get(e);
1065
1065
  if (!o.input) {
1066
1066
  N(`The "input" parameter is needed to be set when using returnInputValueOn${Be(t)}`);
1067
1067
  return;
1068
1068
  }
1069
- const n = e.getInput(), s = Hn(e, o);
1069
+ const n = e.getInput(), s = Dn(e, o);
1070
1070
  o.inputValidator ? Un(e, s, t) : n && !n.checkValidity() ? (e.enableButtons(), e.showValidationMessage(o.validationMessage || n.validationMessage)) : t === "deny" ? ze(e, s) : Ne(e, s);
1071
1071
  }, Un = (e, t, o) => {
1072
1072
  const n = f.innerParams.get(e);
@@ -1075,7 +1075,7 @@ const le = (e) => {
1075
1075
  });
1076
1076
  }, ze = (e, t) => {
1077
1077
  const o = f.innerParams.get(e);
1078
- o.showLoaderOnDeny && q(R()), o.preDeny ? (e.isAwaitingPromise = !0, Promise.resolve().then(() => X(o.preDeny(t, o.validationMessage))).then((s) => {
1078
+ o.showLoaderOnDeny && q(V()), o.preDeny ? (e.isAwaitingPromise = !0, Promise.resolve().then(() => X(o.preDeny(t, o.validationMessage))).then((s) => {
1079
1079
  s === !1 ? (e.hideLoading(), te(e)) : e.close(
1080
1080
  /** @type SweetAlertResult */
1081
1081
  {
@@ -1083,7 +1083,7 @@ const le = (e) => {
1083
1083
  value: typeof s > "u" ? t : s
1084
1084
  }
1085
1085
  );
1086
- }).catch((s) => $t(e, s))) : e.close(
1086
+ }).catch((s) => Tt(e, s))) : e.close(
1087
1087
  /** @type SweetAlertResult */
1088
1088
  {
1089
1089
  isDenied: !0,
@@ -1098,40 +1098,40 @@ const le = (e) => {
1098
1098
  value: t
1099
1099
  }
1100
1100
  );
1101
- }, $t = (e, t) => {
1101
+ }, Tt = (e, t) => {
1102
1102
  e.rejectPromise(t);
1103
1103
  }, Ne = (e, t) => {
1104
1104
  const o = f.innerParams.get(e);
1105
1105
  o.showLoaderOnConfirm && q(), o.preConfirm ? (e.resetValidationMessage(), e.isAwaitingPromise = !0, Promise.resolve().then(() => X(o.preConfirm(t, o.validationMessage))).then((s) => {
1106
- E(fe()) || s === !1 ? (e.hideLoading(), te(e)) : Xe(e, typeof s > "u" ? t : s);
1107
- }).catch((s) => $t(e, s))) : Xe(e, t);
1106
+ E(me()) || s === !1 ? (e.hideLoading(), te(e)) : Xe(e, typeof s > "u" ? t : s);
1107
+ }).catch((s) => Tt(e, s))) : Xe(e, t);
1108
1108
  };
1109
- function ce() {
1109
+ function de() {
1110
1110
  const e = f.innerParams.get(this);
1111
1111
  if (!e)
1112
1112
  return;
1113
1113
  const t = f.domCache.get(this);
1114
- v(t.loader), pe() ? e.icon && y(K()) : Wn(t), $([t.popup, t.actions], i.loading), t.popup.removeAttribute("aria-busy"), t.popup.removeAttribute("data-loading"), t.confirmButton.disabled = !1, t.denyButton.disabled = !1, t.cancelButton.disabled = !1;
1114
+ y(t.loader), ge() ? e.icon && v(W()) : Yn(t), $([t.popup, t.actions], i.loading), t.popup.removeAttribute("aria-busy"), t.popup.removeAttribute("data-loading"), t.confirmButton.disabled = !1, t.denyButton.disabled = !1, t.cancelButton.disabled = !1;
1115
1115
  }
1116
- const Wn = (e) => {
1116
+ const Yn = (e) => {
1117
1117
  const t = e.loader.getAttribute("data-button-to-replace"), o = t ? e.popup.getElementsByClassName(t) : [];
1118
- o.length ? y(
1118
+ o.length ? v(
1119
1119
  /** @type {HTMLElement} */
1120
1120
  o[0],
1121
1121
  "inline-block"
1122
- ) : yo() && v(e.actions);
1122
+ ) : yo() && y(e.actions);
1123
1123
  };
1124
- function Tt() {
1124
+ function St() {
1125
1125
  const e = f.innerParams.get(this), t = f.domCache.get(this);
1126
- return t ? ge(t.popup, e.input) : null;
1126
+ return t ? be(t.popup, e.input) : null;
1127
1127
  }
1128
- function Lt(e, t, o) {
1128
+ function It(e, t, o) {
1129
1129
  const n = f.domCache.get(e);
1130
1130
  t.forEach((s) => {
1131
1131
  n[s].disabled = o;
1132
1132
  });
1133
1133
  }
1134
- function St(e, t) {
1134
+ function Ot(e, t) {
1135
1135
  const o = h();
1136
1136
  if (!(!o || !e))
1137
1137
  if (e.type === "radio") {
@@ -1141,27 +1141,27 @@ function St(e, t) {
1141
1141
  } else
1142
1142
  e.disabled = t;
1143
1143
  }
1144
- function It() {
1145
- Lt(this, ["confirmButton", "denyButton", "cancelButton"], !1);
1146
- }
1147
- function Ot() {
1148
- Lt(this, ["confirmButton", "denyButton", "cancelButton"], !0);
1149
- }
1150
1144
  function Mt() {
1151
- St(this.getInput(), !1);
1145
+ It(this, ["confirmButton", "denyButton", "cancelButton"], !1);
1152
1146
  }
1153
1147
  function Ht() {
1154
- St(this.getInput(), !0);
1148
+ It(this, ["confirmButton", "denyButton", "cancelButton"], !0);
1149
+ }
1150
+ function Dt() {
1151
+ Ot(this.getInput(), !1);
1152
+ }
1153
+ function jt() {
1154
+ Ot(this.getInput(), !0);
1155
1155
  }
1156
- function Dt(e) {
1156
+ function _t(e) {
1157
1157
  const t = f.domCache.get(this), o = f.innerParams.get(this);
1158
- P(t.validationMessage, e), t.validationMessage.className = i["validation-message"], o.customClass && o.customClass.validationMessage && w(t.validationMessage, o.customClass.validationMessage), y(t.validationMessage);
1158
+ P(t.validationMessage, e), t.validationMessage.className = i["validation-message"], o.customClass && o.customClass.validationMessage && w(t.validationMessage, o.customClass.validationMessage), v(t.validationMessage);
1159
1159
  const n = this.getInput();
1160
- n && (n.setAttribute("aria-invalid", "true"), n.setAttribute("aria-describedby", i["validation-message"]), lt(n), w(n, i.inputerror));
1160
+ n && (n.setAttribute("aria-invalid", "true"), n.setAttribute("aria-describedby", i["validation-message"]), dt(n), w(n, i.inputerror));
1161
1161
  }
1162
- function jt() {
1162
+ function zt() {
1163
1163
  const e = f.domCache.get(this);
1164
- e.validationMessage && v(e.validationMessage);
1164
+ e.validationMessage && y(e.validationMessage);
1165
1165
  const t = this.getInput();
1166
1166
  t && (t.removeAttribute("aria-invalid"), t.removeAttribute("aria-describedby"), $(t, i.inputerror));
1167
1167
  }
@@ -1258,28 +1258,28 @@ const D = {
1258
1258
  didDestroy: void 0,
1259
1259
  scrollbarPadding: !0,
1260
1260
  topLayer: !1
1261
- }, Yn = ["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"], Gn = {
1261
+ }, Gn = ["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"], Xn = {
1262
1262
  allowEnterKey: void 0
1263
- }, Xn = ["allowOutsideClick", "allowEnterKey", "backdrop", "draggable", "focusConfirm", "focusDeny", "focusCancel", "returnFocus", "heightAuto", "keydownListenerCapture"], _t = (e) => Object.prototype.hasOwnProperty.call(D, e), zt = (e) => Yn.indexOf(e) !== -1, Nt = (e) => Gn[e], Zn = (e) => {
1264
- _t(e) || k(`Unknown parameter "${e}"`);
1265
- }, Jn = (e) => {
1266
- Xn.includes(e) && k(`The parameter "${e}" is incompatible with toasts`);
1263
+ }, Zn = ["allowOutsideClick", "allowEnterKey", "backdrop", "draggable", "focusConfirm", "focusDeny", "focusCancel", "returnFocus", "heightAuto", "keydownListenerCapture"], Nt = (e) => Object.prototype.hasOwnProperty.call(D, e), Vt = (e) => Gn.indexOf(e) !== -1, Ft = (e) => Xn[e], Jn = (e) => {
1264
+ Nt(e) || k(`Unknown parameter "${e}"`);
1267
1265
  }, Qn = (e) => {
1268
- const t = Nt(e);
1269
- t && st(e, t);
1266
+ Zn.includes(e) && k(`The parameter "${e}" is incompatible with toasts`);
1267
+ }, es = (e) => {
1268
+ const t = Ft(e);
1269
+ t && rt(e, t);
1270
1270
  }, Rt = (e) => {
1271
1271
  e.backdrop === !1 && e.allowOutsideClick && k('"allowOutsideClick" parameter requires `backdrop` parameter to be set to `true`'), e.theme && !["light", "dark", "auto", "minimal", "borderless", "bootstrap-4", "bootstrap-4-light", "bootstrap-4-dark", "bootstrap-5", "bootstrap-5-light", "bootstrap-5-dark", "material-ui", "material-ui-light", "material-ui-dark", "embed-iframe", "bulma", "bulma-light", "bulma-dark"].includes(e.theme) && k(`Invalid theme "${e.theme}"`);
1272
1272
  for (const t in e)
1273
- Zn(t), e.toast && Jn(t), Qn(t);
1273
+ Jn(t), e.toast && Qn(t), es(t);
1274
1274
  };
1275
- function Ft(e) {
1275
+ function qt(e) {
1276
1276
  const t = x(), o = h(), n = f.innerParams.get(this);
1277
1277
  if (!o || O(o, n.hideClass.popup)) {
1278
1278
  k("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.");
1279
1279
  return;
1280
1280
  }
1281
- const s = es(e), r = Object.assign({}, n, s);
1282
- Rt(r), t && (t.dataset.swal2Theme = r.theme), bt(this, r), f.innerParams.set(this, r), Object.defineProperties(this, {
1281
+ const s = ts(e), r = Object.assign({}, n, s);
1282
+ Rt(r), t && (t.dataset.swal2Theme = r.theme), yt(this, r), f.innerParams.set(this, r), Object.defineProperties(this, {
1283
1283
  params: {
1284
1284
  value: Object.assign({}, this.params, e),
1285
1285
  writable: !1,
@@ -1287,10 +1287,10 @@ function Ft(e) {
1287
1287
  }
1288
1288
  });
1289
1289
  }
1290
- const es = (e) => {
1290
+ const ts = (e) => {
1291
1291
  const t = {};
1292
1292
  return Object.keys(e).forEach((o) => {
1293
- if (zt(o)) {
1293
+ if (Vt(o)) {
1294
1294
  const n = (
1295
1295
  /** @type {Record<string, any>} */
1296
1296
  e
@@ -1300,74 +1300,74 @@ const es = (e) => {
1300
1300
  k(`Invalid parameter to update: ${o}`);
1301
1301
  }), t;
1302
1302
  };
1303
- function Vt() {
1303
+ function Wt() {
1304
1304
  var e;
1305
1305
  const t = f.domCache.get(this), o = f.innerParams.get(this);
1306
1306
  if (!o) {
1307
- qt(this);
1307
+ Kt(this);
1308
1308
  return;
1309
1309
  }
1310
- t.popup && l.swalCloseEventFinishedCallback && (l.swalCloseEventFinishedCallback(), delete l.swalCloseEventFinishedCallback), typeof o.didDestroy == "function" && o.didDestroy(), (e = l.eventEmitter) === null || e === void 0 || e.emit("didDestroy"), ts(this);
1310
+ t.popup && l.swalCloseEventFinishedCallback && (l.swalCloseEventFinishedCallback(), delete l.swalCloseEventFinishedCallback), typeof o.didDestroy == "function" && o.didDestroy(), (e = l.eventEmitter) === null || e === void 0 || e.emit("didDestroy"), os(this);
1311
1311
  }
1312
- const ts = (e) => {
1313
- qt(e), delete e.params, delete l.keydownHandler, delete l.keydownTarget, delete l.currentInstance;
1314
- }, qt = (e) => {
1315
- e.isAwaitingPromise ? (ve(f, e), e.isAwaitingPromise = !0) : (ve(V, e), ve(f, 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);
1316
- }, ve = (e, t) => {
1312
+ const os = (e) => {
1313
+ Kt(e), delete e.params, delete l.keydownHandler, delete l.keydownTarget, delete l.currentInstance;
1314
+ }, Kt = (e) => {
1315
+ e.isAwaitingPromise ? (ke(f, e), e.isAwaitingPromise = !0) : (ke(R, e), ke(f, 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);
1316
+ }, ke = (e, t) => {
1317
1317
  for (const o in e)
1318
1318
  e[o].delete(t);
1319
1319
  };
1320
- var os = /* @__PURE__ */ Object.freeze({
1320
+ var ns = /* @__PURE__ */ Object.freeze({
1321
1321
  __proto__: null,
1322
- _destroy: Vt,
1322
+ _destroy: Wt,
1323
1323
  close: H,
1324
1324
  closeModal: H,
1325
1325
  closePopup: H,
1326
1326
  closeToast: H,
1327
- disableButtons: Ot,
1328
- disableInput: Ht,
1329
- disableLoading: ce,
1330
- enableButtons: It,
1331
- enableInput: Mt,
1332
- getInput: Tt,
1327
+ disableButtons: Ht,
1328
+ disableInput: jt,
1329
+ disableLoading: de,
1330
+ enableButtons: Mt,
1331
+ enableInput: Dt,
1332
+ getInput: St,
1333
1333
  handleAwaitingPromise: te,
1334
- hideLoading: ce,
1335
- rejectPromise: At,
1336
- resetValidationMessage: jt,
1337
- showValidationMessage: Dt,
1338
- update: Ft
1334
+ hideLoading: de,
1335
+ rejectPromise: Pt,
1336
+ resetValidationMessage: zt,
1337
+ showValidationMessage: _t,
1338
+ update: qt
1339
1339
  });
1340
- const ns = (e, t, o) => {
1341
- e.toast ? ss(e, t, o) : (rs(t), as(t), ls(e, t, o));
1342
- }, ss = (e, t, o) => {
1340
+ const ss = (e, t, o) => {
1341
+ e.toast ? is(e, t, o) : (as(t), ls(t), cs(e, t, o));
1342
+ }, is = (e, t, o) => {
1343
1343
  t.popup.onclick = () => {
1344
- e && (is(e) || e.timer || e.input) || o(Y.close);
1344
+ e && (rs(e) || e.timer || e.input) || o(Y.close);
1345
1345
  };
1346
- }, is = (e) => !!(e.showConfirmButton || e.showDenyButton || e.showCancelButton || e.showCloseButton);
1347
- let de = !1;
1348
- const rs = (e) => {
1346
+ }, rs = (e) => !!(e.showConfirmButton || e.showDenyButton || e.showCancelButton || e.showCloseButton);
1347
+ let ue = !1;
1348
+ const as = (e) => {
1349
1349
  e.popup.onmousedown = () => {
1350
1350
  e.container.onmouseup = function(t) {
1351
1351
  e.container.onmouseup = () => {
1352
- }, t.target === e.container && (de = !0);
1352
+ }, t.target === e.container && (ue = !0);
1353
1353
  };
1354
1354
  };
1355
- }, as = (e) => {
1355
+ }, ls = (e) => {
1356
1356
  e.container.onmousedown = (t) => {
1357
1357
  t.target === e.container && t.preventDefault(), e.popup.onmouseup = function(o) {
1358
1358
  e.popup.onmouseup = () => {
1359
- }, (o.target === e.popup || o.target instanceof HTMLElement && e.popup.contains(o.target)) && (de = !0);
1359
+ }, (o.target === e.popup || o.target instanceof HTMLElement && e.popup.contains(o.target)) && (ue = !0);
1360
1360
  };
1361
1361
  };
1362
- }, ls = (e, t, o) => {
1362
+ }, cs = (e, t, o) => {
1363
1363
  t.container.onclick = (n) => {
1364
- if (de) {
1365
- de = !1;
1364
+ if (ue) {
1365
+ ue = !1;
1366
1366
  return;
1367
1367
  }
1368
- n.target === t.container && he(e.allowOutsideClick) && o(Y.backdrop);
1368
+ n.target === t.container && fe(e.allowOutsideClick) && o(Y.backdrop);
1369
1369
  };
1370
- }, cs = (e) => typeof e == "object" && e !== null && "jquery" in e, Ze = (e) => e instanceof Element || cs(e), ds = (e) => {
1370
+ }, ds = (e) => typeof e == "object" && e !== null && "jquery" in e, Ze = (e) => e instanceof Element || ds(e), us = (e) => {
1371
1371
  const t = {};
1372
1372
  return typeof e[0] == "object" && !Ze(e[0]) ? Object.assign(t, e[0]) : ["title", "html", "icon"].forEach((o, n) => {
1373
1373
  const s = e[n];
@@ -1375,10 +1375,10 @@ const rs = (e) => {
1375
1375
  }), /** @type {SweetAlertOptions} */
1376
1376
  t;
1377
1377
  };
1378
- function us(...e) {
1378
+ function ws(...e) {
1379
1379
  return new this(...e);
1380
1380
  }
1381
- function ws(e) {
1381
+ function hs(e) {
1382
1382
  class t extends this {
1383
1383
  /**
1384
1384
  * @param {any} params
@@ -1390,37 +1390,37 @@ function ws(e) {
1390
1390
  }
1391
1391
  return t;
1392
1392
  }
1393
- const hs = () => l.timeout && l.timeout.getTimerLeft(), Kt = () => {
1393
+ const fs = () => l.timeout && l.timeout.getTimerLeft(), Ut = () => {
1394
1394
  if (l.timeout)
1395
- return ko(), l.timeout.stop();
1396
- }, Ut = () => {
1395
+ return xo(), l.timeout.stop();
1396
+ }, Yt = () => {
1397
1397
  if (l.timeout) {
1398
1398
  const e = l.timeout.start();
1399
1399
  return He(e), e;
1400
1400
  }
1401
- }, fs = () => {
1401
+ }, ms = () => {
1402
1402
  const e = l.timeout;
1403
- return e && (e.running ? Kt() : Ut());
1404
- }, ms = (e) => {
1403
+ return e && (e.running ? Ut() : Yt());
1404
+ }, ps = (e) => {
1405
1405
  if (l.timeout) {
1406
1406
  const t = l.timeout.increase(e);
1407
1407
  return He(t, !0), t;
1408
1408
  }
1409
- }, ps = () => !!(l.timeout && l.timeout.isRunning());
1409
+ }, gs = () => !!(l.timeout && l.timeout.isRunning());
1410
1410
  let Je = !1;
1411
- const Ee = {};
1412
- function gs(e = "data-swal-template") {
1413
- Ee[e] = this, Je || (document.body.addEventListener("click", bs), Je = !0);
1411
+ const Ae = {};
1412
+ function bs(e = "data-swal-template") {
1413
+ Ae[e] = this, Je || (document.body.addEventListener("click", vs), Je = !0);
1414
1414
  }
1415
- const bs = (e) => {
1415
+ const vs = (e) => {
1416
1416
  for (let t = (
1417
1417
  /** @type {any} */
1418
1418
  e.target
1419
1419
  ); t && t !== document; t = t.parentNode)
1420
- for (const o in Ee) {
1420
+ for (const o in Ae) {
1421
1421
  const n = t.getAttribute && t.getAttribute(o);
1422
1422
  if (n) {
1423
- Ee[o].fire({
1423
+ Ae[o].fire({
1424
1424
  template: n
1425
1425
  });
1426
1426
  return;
@@ -1493,11 +1493,11 @@ class ys {
1493
1493
  }
1494
1494
  }
1495
1495
  l.eventEmitter = new ys();
1496
- const vs = (e, t) => {
1496
+ const ks = (e, t) => {
1497
1497
  l.eventEmitter && l.eventEmitter.on(e, t);
1498
- }, ks = (e, t) => {
1499
- l.eventEmitter && l.eventEmitter.once(e, t);
1500
1498
  }, xs = (e, t) => {
1499
+ l.eventEmitter && l.eventEmitter.once(e, t);
1500
+ }, Cs = (e, t) => {
1501
1501
  if (l.eventEmitter) {
1502
1502
  if (!e) {
1503
1503
  l.eventEmitter.reset();
@@ -1506,52 +1506,52 @@ const vs = (e, t) => {
1506
1506
  t ? l.eventEmitter.removeListener(e, t) : l.eventEmitter.removeAllListeners(e);
1507
1507
  }
1508
1508
  };
1509
- var Cs = /* @__PURE__ */ Object.freeze({
1509
+ var Es = /* @__PURE__ */ Object.freeze({
1510
1510
  __proto__: null,
1511
- argsToParams: ds,
1512
- bindClickHandler: gs,
1513
- clickCancel: dn,
1514
- clickConfirm: yt,
1515
- clickDeny: cn,
1511
+ argsToParams: us,
1512
+ bindClickHandler: bs,
1513
+ clickCancel: un,
1514
+ clickConfirm: kt,
1515
+ clickDeny: dn,
1516
1516
  enableLoading: q,
1517
- fire: us,
1517
+ fire: ws,
1518
1518
  getActions: J,
1519
- getCancelButton: U,
1519
+ getCancelButton: K,
1520
1520
  getCloseButton: Se,
1521
- getConfirmButton: I,
1521
+ getConfirmButton: S,
1522
1522
  getContainer: x,
1523
- getDenyButton: R,
1523
+ getDenyButton: V,
1524
1524
  getFocusableElements: Ie,
1525
- getFooter: at,
1526
- getHtmlContainer: Te,
1527
- getIcon: K,
1528
- getIconContent: fo,
1529
- getImage: rt,
1530
- getInputLabel: mo,
1531
- getLoader: W,
1525
+ getFooter: ct,
1526
+ getHtmlContainer: Le,
1527
+ getIcon: W,
1528
+ getIconContent: mo,
1529
+ getImage: lt,
1530
+ getInputLabel: po,
1531
+ getLoader: U,
1532
1532
  getPopup: h,
1533
- getProgressSteps: Le,
1534
- getTimerLeft: hs,
1535
- getTimerProgressBar: me,
1536
- getTitle: it,
1537
- getValidationMessage: fe,
1538
- increaseTimer: ms,
1539
- isDeprecatedParameter: Nt,
1540
- isLoading: go,
1541
- isTimerRunning: ps,
1542
- isUpdatableParameter: zt,
1543
- isValidParameter: _t,
1544
- isVisible: ln,
1545
- mixin: ws,
1546
- off: xs,
1547
- on: vs,
1548
- once: ks,
1549
- resumeTimer: Ut,
1533
+ getProgressSteps: Te,
1534
+ getTimerLeft: fs,
1535
+ getTimerProgressBar: pe,
1536
+ getTitle: at,
1537
+ getValidationMessage: me,
1538
+ increaseTimer: ps,
1539
+ isDeprecatedParameter: Ft,
1540
+ isLoading: bo,
1541
+ isTimerRunning: gs,
1542
+ isUpdatableParameter: Vt,
1543
+ isValidParameter: Nt,
1544
+ isVisible: cn,
1545
+ mixin: hs,
1546
+ off: Cs,
1547
+ on: ks,
1548
+ once: xs,
1549
+ resumeTimer: Yt,
1550
1550
  showLoading: q,
1551
- stopTimer: Kt,
1552
- toggleTimer: fs
1551
+ stopTimer: Ut,
1552
+ toggleTimer: ms
1553
1553
  });
1554
- class Es {
1554
+ class As {
1555
1555
  /**
1556
1556
  * @param {() => void} callback
1557
1557
  * @param {number} delay
@@ -1592,7 +1592,7 @@ class Es {
1592
1592
  return this.running;
1593
1593
  }
1594
1594
  }
1595
- const Wt = ["swal-title", "swal-html", "swal-footer"], As = (e) => {
1595
+ const Gt = ["swal-title", "swal-html", "swal-footer"], Bs = (e) => {
1596
1596
  const t = typeof e.template == "string" ? (
1597
1597
  /** @type {HTMLTemplateElement} */
1598
1598
  document.querySelector(e.template)
@@ -1600,8 +1600,8 @@ const Wt = ["swal-title", "swal-html", "swal-footer"], As = (e) => {
1600
1600
  if (!t)
1601
1601
  return {};
1602
1602
  const o = t.content;
1603
- return Os(o), Object.assign(Bs(o), Ps(o), $s(o), Ts(o), Ls(o), Ss(o), Is(o, Wt));
1604
- }, Bs = (e) => {
1603
+ return Ms(o), Object.assign(Ps(o), $s(o), Ls(o), Ts(o), Ss(o), Is(o), Os(o, Gt));
1604
+ }, Ps = (e) => {
1605
1605
  const t = {};
1606
1606
  return Array.from(e.querySelectorAll("swal-param")).forEach((n) => {
1607
1607
  z(n, ["name", "value"]);
@@ -1617,7 +1617,7 @@ const Wt = ["swal-title", "swal-html", "swal-footer"], As = (e) => {
1617
1617
  s
1618
1618
  ] == "object" ? t[s] = JSON.parse(r) : t[s] = r);
1619
1619
  }), t;
1620
- }, Ps = (e) => {
1620
+ }, $s = (e) => {
1621
1621
  const t = {};
1622
1622
  return Array.from(e.querySelectorAll("swal-function-param")).forEach((n) => {
1623
1623
  const s = (
@@ -1626,7 +1626,7 @@ const Wt = ["swal-title", "swal-html", "swal-footer"], As = (e) => {
1626
1626
  ), r = n.getAttribute("value");
1627
1627
  !s || !r || (t[s] = new Function(`return ${r}`)());
1628
1628
  }), t;
1629
- }, $s = (e) => {
1629
+ }, Ls = (e) => {
1630
1630
  const t = {};
1631
1631
  return Array.from(e.querySelectorAll("swal-button")).forEach((n) => {
1632
1632
  z(n, ["type", "color", "aria-label"]);
@@ -1645,10 +1645,10 @@ const Wt = ["swal-title", "swal-html", "swal-footer"], As = (e) => {
1645
1645
  }, Ts = (e) => {
1646
1646
  const t = {}, o = e.querySelector("swal-image");
1647
1647
  return o && (z(o, ["src", "width", "height", "alt"]), o.hasAttribute("src") && (t.imageUrl = o.getAttribute("src") || void 0), o.hasAttribute("width") && (t.imageWidth = o.getAttribute("width") || void 0), o.hasAttribute("height") && (t.imageHeight = o.getAttribute("height") || void 0), o.hasAttribute("alt") && (t.imageAlt = o.getAttribute("alt") || void 0)), t;
1648
- }, Ls = (e) => {
1648
+ }, Ss = (e) => {
1649
1649
  const t = {}, o = e.querySelector("swal-icon");
1650
1650
  return o && (z(o, ["type", "color"]), o.hasAttribute("type") && (t.icon = o.getAttribute("type")), o.hasAttribute("color") && (t.iconColor = o.getAttribute("color")), t.iconHtml = o.innerHTML), t;
1651
- }, Ss = (e) => {
1651
+ }, Is = (e) => {
1652
1652
  const t = {}, o = e.querySelector("swal-input");
1653
1653
  o && (z(o, ["type", "label", "placeholder", "value"]), t.input = o.getAttribute("type") || "text", o.hasAttribute("label") && (t.inputLabel = o.getAttribute("label")), o.hasAttribute("placeholder") && (t.inputPlaceholder = o.getAttribute("placeholder")), o.hasAttribute("value") && (t.inputValue = o.getAttribute("value")));
1654
1654
  const n = Array.from(e.querySelectorAll("swal-input-option"));
@@ -1660,15 +1660,15 @@ const Wt = ["swal-title", "swal-html", "swal-footer"], As = (e) => {
1660
1660
  const a = s.innerHTML;
1661
1661
  t.inputOptions[r] = a;
1662
1662
  })), t;
1663
- }, Is = (e, t) => {
1663
+ }, Os = (e, t) => {
1664
1664
  const o = {};
1665
1665
  for (const n in t) {
1666
1666
  const s = t[n], r = e.querySelector(s);
1667
1667
  r && (z(r, []), o[s.replace(/^swal-/, "")] = r.innerHTML.trim());
1668
1668
  }
1669
1669
  return o;
1670
- }, Os = (e) => {
1671
- const t = Wt.concat(["swal-param", "swal-function-param", "swal-button", "swal-image", "swal-icon", "swal-input", "swal-input-option"]);
1670
+ }, Ms = (e) => {
1671
+ const t = Gt.concat(["swal-param", "swal-function-param", "swal-button", "swal-image", "swal-icon", "swal-input", "swal-input-option"]);
1672
1672
  Array.from(e.children).forEach((o) => {
1673
1673
  const n = o.tagName.toLowerCase();
1674
1674
  t.includes(n) || k(`Unrecognized element <${n}>`);
@@ -1677,38 +1677,38 @@ const Wt = ["swal-title", "swal-html", "swal-footer"], As = (e) => {
1677
1677
  Array.from(e.attributes).forEach((o) => {
1678
1678
  t.indexOf(o.name) === -1 && k([`Unrecognized attribute "${o.name}" on <${e.tagName.toLowerCase()}>.`, `${t.length ? `Allowed attributes are: ${t.join(", ")}` : "To set the value, use HTML within the element."}`]);
1679
1679
  });
1680
- }, Yt = 10, Ms = (e) => {
1680
+ }, Xt = 10, Hs = (e) => {
1681
1681
  var t, o;
1682
1682
  const n = x(), s = h();
1683
1683
  if (!n || !s)
1684
1684
  return;
1685
1685
  typeof e.willOpen == "function" && e.willOpen(s), (t = l.eventEmitter) === null || t === void 0 || t.emit("willOpen", s);
1686
1686
  const a = window.getComputedStyle(document.body).overflowY;
1687
- if (js(n, s, e), setTimeout(() => {
1688
- Hs(n, s);
1689
- }, Yt), Oe() && (Ds(n, e.scrollbarPadding !== void 0 ? e.scrollbarPadding : !1, a), bn()), !pe() && !l.previousActiveElement && (l.previousActiveElement = document.activeElement), typeof e.didOpen == "function") {
1687
+ if (_s(n, s, e), setTimeout(() => {
1688
+ Ds(n, s);
1689
+ }, Xt), Oe() && (js(n, e.scrollbarPadding !== void 0 ? e.scrollbarPadding : !1, a), vn()), !ge() && !l.previousActiveElement && (l.previousActiveElement = document.activeElement), typeof e.didOpen == "function") {
1690
1690
  const c = e.didOpen;
1691
1691
  setTimeout(() => c(s));
1692
1692
  }
1693
1693
  (o = l.eventEmitter) === null || o === void 0 || o.emit("didOpen", s);
1694
- }, ue = (e) => {
1694
+ }, we = (e) => {
1695
1695
  const t = h();
1696
1696
  if (!t || e.target !== t)
1697
1697
  return;
1698
1698
  const o = x();
1699
- o && (t.removeEventListener("animationend", ue), t.removeEventListener("transitionend", ue), o.style.overflowY = "auto", $(o, i["no-transition"]));
1700
- }, Hs = (e, t) => {
1701
- dt(t) ? (e.style.overflowY = "hidden", t.addEventListener("animationend", ue), t.addEventListener("transitionend", ue)) : e.style.overflowY = "auto";
1702
- }, Ds = (e, t, o) => {
1703
- yn(), t && o !== "hidden" && Bn(o), setTimeout(() => {
1699
+ o && (t.removeEventListener("animationend", we), t.removeEventListener("transitionend", we), o.style.overflowY = "auto", $(o, i["no-transition"]));
1700
+ }, Ds = (e, t) => {
1701
+ wt(t) ? (e.style.overflowY = "hidden", t.addEventListener("animationend", we), t.addEventListener("transitionend", we)) : e.style.overflowY = "auto";
1702
+ }, js = (e, t, o) => {
1703
+ yn(), t && o !== "hidden" && Pn(o), setTimeout(() => {
1704
1704
  e.scrollTop = 0;
1705
1705
  });
1706
- }, js = (e, t, o) => {
1706
+ }, _s = (e, t, o) => {
1707
1707
  var n;
1708
- (n = o.showClass) !== null && n !== void 0 && n.backdrop && w(e, o.showClass.backdrop), o.animation ? (t.style.setProperty("opacity", "0", "important"), y(t, "grid"), setTimeout(() => {
1708
+ (n = o.showClass) !== null && n !== void 0 && n.backdrop && w(e, o.showClass.backdrop), o.animation ? (t.style.setProperty("opacity", "0", "important"), v(t, "grid"), setTimeout(() => {
1709
1709
  var s;
1710
1710
  (s = o.showClass) !== null && s !== void 0 && s.popup && w(t, o.showClass.popup), t.style.removeProperty("opacity");
1711
- }, Yt)) : y(t, "grid"), w([document.documentElement, document.body], i.shown), o.heightAuto && o.backdrop && !o.toast && w([document.documentElement, document.body], i["height-auto"]);
1711
+ }, Xt)) : v(t, "grid"), w([document.documentElement, document.body], i.shown), o.heightAuto && o.backdrop && !o.toast && w([document.documentElement, document.body], i["height-auto"]);
1712
1712
  };
1713
1713
  var Qe = {
1714
1714
  /**
@@ -1724,29 +1724,29 @@ var Qe = {
1724
1724
  */
1725
1725
  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")
1726
1726
  };
1727
- function _s(e) {
1727
+ function zs(e) {
1728
1728
  e.inputValidator || (e.input === "email" && (e.inputValidator = Qe.email), e.input === "url" && (e.inputValidator = Qe.url));
1729
1729
  }
1730
- function zs(e) {
1730
+ function Ns(e) {
1731
1731
  (!e.target || typeof e.target == "string" && !document.querySelector(e.target) || typeof e.target != "string" && !e.target.appendChild) && (k('Target parameter is not valid, defaulting to "body"'), e.target = "body");
1732
1732
  }
1733
- function Ns(e) {
1734
- _s(e), e.showLoaderOnConfirm && !e.preConfirm && k(`showLoaderOnConfirm is set to true, but preConfirm is not defined.
1733
+ function Vs(e) {
1734
+ zs(e), e.showLoaderOnConfirm && !e.preConfirm && k(`showLoaderOnConfirm is set to true, but preConfirm is not defined.
1735
1735
  showLoaderOnConfirm should be used together with preConfirm, see usage example:
1736
- https://sweetalert2.github.io/#ajax-request`), zs(e), typeof e.title == "string" && (e.title = e.title.split(`
1736
+ https://sweetalert2.github.io/#ajax-request`), Ns(e), typeof e.title == "string" && (e.title = e.title.split(`
1737
1737
  `).join("<br />")), To(e);
1738
1738
  }
1739
- let S;
1740
- var oe = /* @__PURE__ */ new WeakMap();
1739
+ let T;
1740
+ var ne = /* @__PURE__ */ new WeakMap();
1741
1741
  class g {
1742
1742
  /**
1743
1743
  * @param {...(SweetAlertOptions | string)} args
1744
1744
  * @this {SweetAlert}
1745
1745
  */
1746
1746
  constructor(...t) {
1747
- if (io(
1747
+ if (ro(
1748
1748
  this,
1749
- oe,
1749
+ ne,
1750
1750
  /** @type {Promise<SweetAlertResult>} */
1751
1751
  Promise.resolve({
1752
1752
  isConfirmed: !1,
@@ -1755,9 +1755,9 @@ class g {
1755
1755
  })
1756
1756
  ), typeof window > "u")
1757
1757
  return;
1758
- S = this;
1758
+ T = this;
1759
1759
  const o = Object.freeze(this.constructor.argsToParams(t));
1760
- this.params = o, this.isAwaitingPromise = !1, ro(oe, this, this._main(S.params));
1760
+ this.params = o, this.isAwaitingPromise = !1, ao(ne, this, this._main(T.params));
1761
1761
  }
1762
1762
  /**
1763
1763
  * @param {any} userParams
@@ -1765,34 +1765,34 @@ class g {
1765
1765
  */
1766
1766
  _main(t, o = {}) {
1767
1767
  if (Rt(Object.assign({}, o, t)), l.currentInstance) {
1768
- const r = V.swalPromiseResolve.get(l.currentInstance), {
1768
+ const r = R.swalPromiseResolve.get(l.currentInstance), {
1769
1769
  isAwaitingPromise: a
1770
1770
  } = l.currentInstance;
1771
1771
  l.currentInstance._destroy(), a || r({
1772
1772
  isDismissed: !0
1773
- }), Oe() && xt();
1773
+ }), Oe() && Et();
1774
1774
  }
1775
- l.currentInstance = S;
1776
- const n = Fs(t, o);
1777
- Ns(n), Object.freeze(n), l.timeout && (l.timeout.stop(), delete l.timeout), clearTimeout(l.restoreFocusTimeout);
1778
- const s = Vs(S);
1779
- return bt(S, n), f.innerParams.set(S, n), Rs(S, s, n);
1775
+ l.currentInstance = T;
1776
+ const n = Rs(t, o);
1777
+ Vs(n), Object.freeze(n), l.timeout && (l.timeout.stop(), delete l.timeout), clearTimeout(l.restoreFocusTimeout);
1778
+ const s = qs(T);
1779
+ return yt(T, n), f.innerParams.set(T, n), Fs(T, s, n);
1780
1780
  }
1781
1781
  // `catch` cannot be the name of a module export, so we define our thenable methods here instead
1782
1782
  /**
1783
1783
  * @param {any} onFulfilled
1784
1784
  */
1785
1785
  then(t) {
1786
- return Ve(oe, this).then(t);
1786
+ return Re(ne, this).then(t);
1787
1787
  }
1788
1788
  /**
1789
1789
  * @param {any} onFinally
1790
1790
  */
1791
1791
  finally(t) {
1792
- return Ve(oe, this).finally(t);
1792
+ return Re(ne, this).finally(t);
1793
1793
  }
1794
1794
  }
1795
- const Rs = (e, t, o) => new Promise((n, s) => {
1795
+ const Fs = (e, t, o) => new Promise((n, s) => {
1796
1796
  const r = (a) => {
1797
1797
  e.close({
1798
1798
  isDismissed: !0,
@@ -1801,23 +1801,23 @@ const Rs = (e, t, o) => new Promise((n, s) => {
1801
1801
  isDenied: !1
1802
1802
  });
1803
1803
  };
1804
- V.swalPromiseResolve.set(e, n), V.swalPromiseReject.set(e, s), t.confirmButton.onclick = () => {
1805
- Vn(e);
1806
- }, t.denyButton.onclick = () => {
1804
+ R.swalPromiseResolve.set(e, n), R.swalPromiseReject.set(e, s), t.confirmButton.onclick = () => {
1807
1805
  qn(e);
1806
+ }, t.denyButton.onclick = () => {
1807
+ Wn(e);
1808
1808
  }, t.cancelButton.onclick = () => {
1809
1809
  Kn(e, r);
1810
1810
  }, t.closeButton.onclick = () => {
1811
1811
  r(Y.close);
1812
- }, ns(o, t, r), un(l, o, r), Mn(e, o), Ms(o), qs(l, o, r), Ks(t, o), setTimeout(() => {
1812
+ }, ss(o, t, r), wn(l, o, r), Hn(e, o), Hs(o), Ws(l, o, r), Ks(t, o), setTimeout(() => {
1813
1813
  t.container.scrollTop = 0;
1814
1814
  });
1815
- }), Fs = (e, t) => {
1816
- const o = As(e), n = Object.assign({}, D, t, o, e);
1815
+ }), Rs = (e, t) => {
1816
+ const o = Bs(e), n = Object.assign({}, D, t, o, e);
1817
1817
  return n.showClass = Object.assign({}, D.showClass, n.showClass), n.hideClass = Object.assign({}, D.hideClass, n.hideClass), n.animation === !1 && (n.showClass = {
1818
1818
  backdrop: "swal2-noanimation"
1819
1819
  }, n.hideClass = {}), n;
1820
- }, Vs = (e) => {
1820
+ }, qs = (e) => {
1821
1821
  const t = (
1822
1822
  /** @type {DomCache} */
1823
1823
  {
@@ -1835,19 +1835,19 @@ const Rs = (e, t, o) => new Promise((n, s) => {
1835
1835
  ),
1836
1836
  confirmButton: (
1837
1837
  /** @type {HTMLElement} */
1838
- I()
1838
+ S()
1839
1839
  ),
1840
1840
  denyButton: (
1841
1841
  /** @type {HTMLElement} */
1842
- R()
1842
+ V()
1843
1843
  ),
1844
1844
  cancelButton: (
1845
1845
  /** @type {HTMLElement} */
1846
- U()
1846
+ K()
1847
1847
  ),
1848
1848
  loader: (
1849
1849
  /** @type {HTMLElement} */
1850
- W()
1850
+ U()
1851
1851
  ),
1852
1852
  closeButton: (
1853
1853
  /** @type {HTMLElement} */
@@ -1855,20 +1855,20 @@ const Rs = (e, t, o) => new Promise((n, s) => {
1855
1855
  ),
1856
1856
  validationMessage: (
1857
1857
  /** @type {HTMLElement} */
1858
- fe()
1858
+ me()
1859
1859
  ),
1860
1860
  progressSteps: (
1861
1861
  /** @type {HTMLElement} */
1862
- Le()
1862
+ Te()
1863
1863
  )
1864
1864
  }
1865
1865
  );
1866
1866
  return f.domCache.set(e, t), t;
1867
- }, qs = (e, t, o) => {
1868
- const n = me();
1869
- v(n), t.timer && (e.timeout = new Es(() => {
1867
+ }, Ws = (e, t, o) => {
1868
+ const n = pe();
1869
+ y(n), t.timer && (e.timeout = new As(() => {
1870
1870
  o("timer"), delete e.timeout;
1871
- }, t.timer), t.timerProgressBar && n && (y(n), A(n, t, "timerProgressBar"), setTimeout(() => {
1871
+ }, t.timer), t.timerProgressBar && n && (v(n), A(n, t, "timerProgressBar"), setTimeout(() => {
1872
1872
  e.timeout && e.timeout.running && He(
1873
1873
  /** @type {number} */
1874
1874
  t.timer
@@ -1876,11 +1876,11 @@ const Rs = (e, t, o) => new Promise((n, s) => {
1876
1876
  })));
1877
1877
  }, Ks = (e, t) => {
1878
1878
  if (!t.toast) {
1879
- if (!he(t.allowEnterKey)) {
1880
- st("allowEnterKey"), Ys();
1879
+ if (!fe(t.allowEnterKey)) {
1880
+ rt("allowEnterKey"), Gs();
1881
1881
  return;
1882
1882
  }
1883
- Us(e) || Ws(e, t) || Ce(-1, 1);
1883
+ Us(e) || Ys(e, t) || Ee(-1, 1);
1884
1884
  }
1885
1885
  }, Us = (e) => {
1886
1886
  const t = Array.from(e.popup.querySelectorAll("[autofocus]"));
@@ -1888,36 +1888,36 @@ const Rs = (e, t, o) => new Promise((n, s) => {
1888
1888
  if (o instanceof HTMLElement && E(o))
1889
1889
  return o.focus(), !0;
1890
1890
  return !1;
1891
- }, Ws = (e, t) => t.focusDeny && E(e.denyButton) ? (e.denyButton.focus(), !0) : t.focusCancel && E(e.cancelButton) ? (e.cancelButton.focus(), !0) : t.focusConfirm && E(e.confirmButton) ? (e.confirmButton.focus(), !0) : !1, Ys = () => {
1891
+ }, Ys = (e, t) => t.focusDeny && E(e.denyButton) ? (e.denyButton.focus(), !0) : t.focusCancel && E(e.cancelButton) ? (e.cancelButton.focus(), !0) : t.focusConfirm && E(e.confirmButton) ? (e.confirmButton.focus(), !0) : !1, Gs = () => {
1892
1892
  document.activeElement instanceof HTMLElement && typeof document.activeElement.blur == "function" && document.activeElement.blur();
1893
1893
  };
1894
- g.prototype.disableButtons = Ot;
1895
- g.prototype.enableButtons = It;
1896
- g.prototype.getInput = Tt;
1897
- g.prototype.disableInput = Ht;
1898
- g.prototype.enableInput = Mt;
1899
- g.prototype.hideLoading = ce;
1900
- g.prototype.disableLoading = ce;
1901
- g.prototype.showValidationMessage = Dt;
1902
- g.prototype.resetValidationMessage = jt;
1894
+ g.prototype.disableButtons = Ht;
1895
+ g.prototype.enableButtons = Mt;
1896
+ g.prototype.getInput = St;
1897
+ g.prototype.disableInput = jt;
1898
+ g.prototype.enableInput = Dt;
1899
+ g.prototype.hideLoading = de;
1900
+ g.prototype.disableLoading = de;
1901
+ g.prototype.showValidationMessage = _t;
1902
+ g.prototype.resetValidationMessage = zt;
1903
1903
  g.prototype.close = H;
1904
1904
  g.prototype.closePopup = H;
1905
1905
  g.prototype.closeModal = H;
1906
1906
  g.prototype.closeToast = H;
1907
- g.prototype.rejectPromise = At;
1908
- g.prototype.update = Ft;
1909
- g.prototype._destroy = Vt;
1910
- Object.assign(g, Cs);
1911
- Object.keys(os).forEach((e) => {
1907
+ g.prototype.rejectPromise = Pt;
1908
+ g.prototype.update = qt;
1909
+ g.prototype._destroy = Wt;
1910
+ Object.assign(g, Es);
1911
+ Object.keys(ns).forEach((e) => {
1912
1912
  g[e] = function(...t) {
1913
- if (S && S[e])
1914
- return S[e](...t);
1913
+ if (T && T[e])
1914
+ return T[e](...t);
1915
1915
  };
1916
1916
  });
1917
1917
  g.DismissReason = Y;
1918
1918
  g.version = "11.26.18";
1919
- const we = g;
1920
- we.default = we;
1919
+ const he = g;
1920
+ he.default = he;
1921
1921
  typeof document < "u" && (function(e, t) {
1922
1922
  var o = e.createElement("style");
1923
1923
  if (e.getElementsByTagName("head")[0].appendChild(o), o.styleSheet) o.styleSheet.disabled || (o.styleSheet.cssText = t);
@@ -1927,6 +1927,35 @@ typeof document < "u" && (function(e, t) {
1927
1927
  o.innerText = t;
1928
1928
  }
1929
1929
  })(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: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: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: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}@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}}');
1930
+ function Xs(e) {
1931
+ if (oe.createI18n)
1932
+ return oe.createI18n(e);
1933
+ const t = oe.default || oe.VueI18n, o = e.vue;
1934
+ o && o.use(t);
1935
+ const { vue: n, ...s } = e, r = {
1936
+ locale: e.locale,
1937
+ messages: e.messages || {},
1938
+ silentTranslationWarn: e.silentTranslationWarn,
1939
+ silentFallbackWarn: e.silentFallbackWarn,
1940
+ missingWarn: e.missingWarn,
1941
+ fallbackWarn: e.fallbackWarn,
1942
+ ...s
1943
+ }, a = new t(r);
1944
+ return a.global = {
1945
+ t: a.t.bind(a),
1946
+ // 可写,initI18n 中会赋值为包装后的 $t
1947
+ setLocaleMessage: a.setLocaleMessage.bind(a),
1948
+ locale: {
1949
+ get value() {
1950
+ return a.locale;
1951
+ },
1952
+ set value(c) {
1953
+ a.locale = c;
1954
+ }
1955
+ }
1956
+ }, a;
1957
+ }
1958
+ const Zs = tt.create();
1930
1959
  function et(e) {
1931
1960
  const t = {
1932
1961
  alg: "HS512"
@@ -1934,7 +1963,7 @@ function et(e) {
1934
1963
  }, o = {
1935
1964
  orgCode: e
1936
1965
  }, n = JSON.stringify(t), s = JSON.stringify(o);
1937
- return Qt.JWS.sign("HS512", n, s, "");
1966
+ return eo.JWS.sign("HS512", n, s, "");
1938
1967
  }
1939
1968
  class G {
1940
1969
  constructor(t = {}) {
@@ -1949,11 +1978,11 @@ class G {
1949
1978
  keyboard: u,
1950
1979
  locale: m
1951
1980
  } = t;
1952
- this.token = r || et(a) || T.get("I18N_TOKEN"), this.loadI18n = !0, this.appCode = n, this.router = o, this.locale = m || T.get("I18N_LANGUAGE") || navigator.language || "zh-CN", this.name = "", this.messages = s || {}, this.translationKeys = [], this.translationKeySet = /* @__PURE__ */ new Set(), this.loginRouteName = c || "login", this.login = d, this.loginTranslationKeys = [], this.keyboard = u || "shift>t", this.baseUrl = t.dev ? "https://test.ihotel.cn" : "https://trans.ihotel.cn", this.initRouterGuards(), this.initI18n(t), Xt.bind(this.keyboard, (b) => {
1953
- const L = `${this.baseUrl}/i18n-admin-front/#/config?name=${this.name}&appCode=${this.appCode}&translationKeys=${this.translationKeys.join(
1981
+ this.token = r || et(a) || L.get("I18N_TOKEN"), this.loadI18n = !0, this.appCode = n, this.router = o, this.locale = m || L.get("I18N_LANGUAGE") || navigator.language || "zh-CN", this.name = "", this.messages = s || {}, this.translationKeys = [], this.translationKeySet = /* @__PURE__ */ new Set(), this.loginRouteName = c || "login", this.login = d, this.loginTranslationKeys = [], this.keyboard = u || "shift>t", this.baseUrl = t.dev ? "https://test.ihotel.cn" : "https://trans.ihotel.cn", this.initRouterGuards(), this.initI18n(t), Jt.bind(this.keyboard, (b) => {
1982
+ const I = `${this.baseUrl}/i18n-admin-front/#/config?name=${this.name}&appCode=${this.appCode}&translationKeys=${this.translationKeys.join(
1954
1983
  ","
1955
1984
  )}`;
1956
- console.log(L), we.fire({
1985
+ he.fire({
1957
1986
  titleText: "多语言管理中心",
1958
1987
  padding: "0px",
1959
1988
  showCloseButton: !0,
@@ -1965,7 +1994,7 @@ class G {
1965
1994
  closeButton: "gc_i18n_close_button",
1966
1995
  htmlContainer: "gc_i18n_html_container"
1967
1996
  },
1968
- html: `<iframe src="${L}" style="width: 100%; height: 100%;border: none;min-height: 480px;"></iframe>`
1997
+ html: `<iframe src="${I}" style="width: 100%; height: 100%;border: none;min-height: 480px;"></iframe>`
1969
1998
  });
1970
1999
  }), this.setupLanguageChangeListener();
1971
2000
  }
@@ -1992,7 +2021,7 @@ class G {
1992
2021
  console.error("加载异步组件时出错:", b), n();
1993
2022
  return;
1994
2023
  }
1995
- const m = ke(u);
2024
+ const m = xe(u);
1996
2025
  this.loginTranslationKeys = m;
1997
2026
  }
1998
2027
  if (t.matched.length > 0)
@@ -2001,8 +2030,8 @@ class G {
2001
2030
  for (const m of t.matched) {
2002
2031
  let b = (d = m.components) == null ? void 0 : d.default;
2003
2032
  if (typeof b == "function" && b.toString().includes("import(") && (b = await b(), b = b.default), b) {
2004
- const L = ke(b);
2005
- u.push(...L);
2033
+ const I = xe(b);
2034
+ u.push(...I);
2006
2035
  }
2007
2036
  }
2008
2037
  this.translationKeys = u;
@@ -2012,17 +2041,19 @@ class G {
2012
2041
  }
2013
2042
  n();
2014
2043
  }), G._afterEachGuardRegistered || (G._afterEachGuardRegistered = !0, this.router.afterEach(async () => {
2015
- var s, r, a;
2016
- await Zt();
2044
+ var r, a;
2045
+ await Qt();
2017
2046
  const t = Array.from(this.translationKeySet), o = Array.from(
2018
2047
  /* @__PURE__ */ new Set([...this.translationKeys || [], ...t])
2019
2048
  );
2020
- this.translationKeys = o, ((a = (r = (s = this.router) == null ? void 0 : s.currentRoute) == null ? void 0 : r.value) == null ? void 0 : a.name) === this.loginRouteName && (this.loginTranslationKeys = o);
2049
+ this.translationKeys = o;
2050
+ const n = (r = this.router) == null ? void 0 : r.currentRoute;
2051
+ ((a = (n == null ? void 0 : n.value) ?? n) == null ? void 0 : a.name) === this.loginRouteName && (this.loginTranslationKeys = o);
2021
2052
  })));
2022
2053
  }
2023
2054
  // 初始化 i18n 实例
2024
2055
  initI18n(t) {
2025
- this.i18n = Jt({
2056
+ this.i18n = Xs({
2026
2057
  locale: this.locale,
2027
2058
  allowComposition: !0,
2028
2059
  globalInjection: !0,
@@ -2035,16 +2066,16 @@ class G {
2035
2066
  });
2036
2067
  const o = this.i18n.global.t;
2037
2068
  globalThis.$t = this.i18n.global.t = (n, s) => {
2038
- var a, c, d;
2069
+ var c, d;
2039
2070
  typeof n == "string" && this.translationKeySet.add(n);
2040
- const r = (d = (c = (a = this.router) == null ? void 0 : a.currentRoute) == null ? void 0 : c.value) == null ? void 0 : d.name;
2041
- if (r) {
2042
- const u = `${r}.${n}`, m = o(u);
2071
+ const r = (c = this.router) == null ? void 0 : c.currentRoute, a = (d = (r == null ? void 0 : r.value) ?? r) == null ? void 0 : d.name;
2072
+ if (a) {
2073
+ const u = `${a}.${n}`, m = o(u);
2043
2074
  if (m !== u && !C.isEmpty(m))
2044
2075
  return m;
2045
2076
  {
2046
- const b = `common.${n}`, L = o(b);
2047
- return L !== b ? L : o(n, s);
2077
+ const b = `common.${n}`, I = o(b);
2078
+ return I !== b ? I : o(n, s);
2048
2079
  }
2049
2080
  } else
2050
2081
  return o(n, s);
@@ -2055,44 +2086,44 @@ class G {
2055
2086
  }, globalThis.$deepScan = function(n) {
2056
2087
  return n;
2057
2088
  }, globalThis.$clearI18n = this.clearI18n = () => {
2058
- T.namespace(`I18N_${C.toUpper(this.appCode)}`).clearAll();
2089
+ L.namespace(`I18N_${C.toUpper(this.appCode)}`).clearAll();
2059
2090
  }, globalThis.$changeLocale = this.changeLocale = this.i18n.global.changeLocale = async (n) => {
2060
2091
  await this.setLanguage(n || this.locale);
2061
2092
  };
2062
2093
  }
2063
2094
  setToken(t) {
2064
- this.token = t, T.set("I18N_TOKEN", t);
2095
+ this.token = t, L.set("I18N_TOKEN", t);
2065
2096
  }
2066
2097
  async getLanguages(t = !1) {
2067
- const o = T.get("I18N_LANGUAGES");
2098
+ const o = L.get("I18N_LANGUAGES");
2068
2099
  if (o && !t)
2069
2100
  return o;
2070
2101
  {
2071
- const n = await oo({
2102
+ const n = await no({
2072
2103
  baseUrl: this.baseUrl,
2073
2104
  appCode: this.appCode,
2074
2105
  token: this.token
2075
2106
  });
2076
2107
  if (n.data) {
2077
2108
  const s = C.get(n.data, "retVal");
2078
- return T.set("I18N_LANGUAGES", s), s;
2109
+ return L.set("I18N_LANGUAGES", s), s;
2079
2110
  }
2080
2111
  }
2081
2112
  }
2082
2113
  async setLanguage(t = "zh-CN") {
2083
2114
  const o = "I18N_MESSAGES_COMMON_" + t;
2084
- let n = T.get(o);
2115
+ let n = L.get(o);
2085
2116
  if (C.isEmpty(n)) {
2086
- const s = await Ae.get(
2117
+ const s = await Zs.get(
2087
2118
  `https://cdn.ihotel.cn/i18n_messages/${t}.json`
2088
2119
  );
2089
2120
  if (s) {
2090
2121
  const { data: r } = s;
2091
- n = r, T.set(o, r);
2122
+ n = r, L.set(o, r);
2092
2123
  }
2093
2124
  }
2094
2125
  return new Promise(async (s, r) => {
2095
- const a = await no({
2126
+ const a = await so({
2096
2127
  baseUrl: this.baseUrl,
2097
2128
  appCode: this.appCode,
2098
2129
  language: t || this.locale,
@@ -2100,15 +2131,18 @@ class G {
2100
2131
  routerName: this.name
2101
2132
  });
2102
2133
  if (a) {
2103
- const c = eo(a), d = C.assign(
2134
+ const c = to(a), d = C.assign(
2104
2135
  {},
2105
2136
  n,
2106
2137
  C.get(this.messages, t),
2107
2138
  c
2108
2139
  );
2109
- this.i18n.global.setLocaleMessage(t, d);
2140
+ console.log(
2141
+ "this.i18n.global.setLocaleMessage",
2142
+ this.i18n.global.setLocaleMessage
2143
+ ), this.i18n.global.setLocaleMessage(t, d);
2110
2144
  }
2111
- this.locale = t, this.i18n.global.locale.value = t, T.set("I18N_LANGUAGE", t), s(!0);
2145
+ this.locale = t, this.i18n.global.locale.value = t, L.set("I18N_LANGUAGE", t), s(!0);
2112
2146
  });
2113
2147
  }
2114
2148
  // createModal(name) {