@luizleon/sf.prefeiturasp.vuecomponents 0.0.38 → 0.0.40
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/internal/ThemeToggle.d.ts +8 -11
- package/dist/index.d.ts +2 -1
- package/dist/lib.es.js +374 -371
- package/dist/lib.es.js.map +1 -1
- package/dist/lib.umd.js +14 -14
- package/dist/lib.umd.js.map +1 -1
- package/package.json +1 -1
- package/src/components/drawer/Drawer.vue +7 -1
- package/src/index.ts +2 -0
package/dist/lib.es.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var Je = (t, e, n) => (
|
|
4
|
-
import { ref as ze, openBlock as oe, createElementBlock as pe, createElementVNode as Y, defineComponent as We, normalizeStyle as
|
|
1
|
+
var Vs = Object.defineProperty;
|
|
2
|
+
var Ws = (t, e, n) => e in t ? Vs(t, e, { enumerable: !0, configurable: !0, writable: !0, value: n }) : t[e] = n;
|
|
3
|
+
var Je = (t, e, n) => (Ws(t, typeof e != "symbol" ? e + "" : e, n), n);
|
|
4
|
+
import { ref as ze, openBlock as oe, createElementBlock as pe, createElementVNode as Y, defineComponent as We, normalizeStyle as Dt, normalizeClass as ve, mergeProps as qs, createBlock as at, Fragment as so, createTextVNode as Wn, toDisplayString as fn, createCommentVNode as bt, useSlots as Ks, watch as Vo, Teleport as Gs, unref as He, withModifiers as Wo, createVNode as et, Transition as Js, withCtx as yt, renderSlot as Oe, computed as Ys, onMounted as hn, createStaticVNode as Xs, resolveComponent as _r, onBeforeUnmount as Zs, renderList as Qs } from "vue";
|
|
5
5
|
class ei {
|
|
6
6
|
constructor() {
|
|
7
7
|
Je(this, "_visible", ze(!1));
|
|
@@ -19,7 +19,7 @@ class ei {
|
|
|
19
19
|
this._visible.value = !0;
|
|
20
20
|
}
|
|
21
21
|
}
|
|
22
|
-
const ti = new ei(),
|
|
22
|
+
const ti = new ei(), Cr = () => ti;
|
|
23
23
|
class it {
|
|
24
24
|
/**
|
|
25
25
|
* Creates a new instance of the CssClassBuilder class.
|
|
@@ -67,7 +67,7 @@ function ni(t = []) {
|
|
|
67
67
|
}
|
|
68
68
|
let oi = (t = 21) => crypto.getRandomValues(new Uint8Array(t)).reduce((e, n) => (n &= 63, n < 36 ? e += n.toString(36) : n < 62 ? e += (n - 26).toString(36).toUpperCase() : n > 62 ? e += "-" : e += "_", e), "");
|
|
69
69
|
var io = /* @__PURE__ */ ((t) => (t.Primary = "primary", t.Secondary = "secondary", t.Info = "info", t.Success = "success", t.Help = "help", t.Warn = "warn", t.Error = "error", t))(io || {}), Ft = /* @__PURE__ */ ((t) => (t.Pequeno = "sm", t.Medio = "md", t.Grande = "lg", t))(Ft || {});
|
|
70
|
-
const
|
|
70
|
+
const Tr = (t, e) => {
|
|
71
71
|
const n = t.__vccOpts || t;
|
|
72
72
|
for (const [o, r] of e)
|
|
73
73
|
n[o] = r;
|
|
@@ -89,7 +89,7 @@ const Cr = (t, e) => {
|
|
|
89
89
|
function ci(t, e) {
|
|
90
90
|
return oe(), pe("div", si, ai);
|
|
91
91
|
}
|
|
92
|
-
const li = /* @__PURE__ */
|
|
92
|
+
const li = /* @__PURE__ */ Tr(ri, [["render", ci]]), ui = ["disabled", "tabindex"], di = ["data-color"], cn = /* @__PURE__ */ We({
|
|
93
93
|
__name: "Icon",
|
|
94
94
|
props: {
|
|
95
95
|
icone: {},
|
|
@@ -110,10 +110,10 @@ const li = /* @__PURE__ */ Cr(ri, [["render", ci]]), ui = ["disabled", "tabindex
|
|
|
110
110
|
return new it(`${e.class} sf-icon`).AddClass("sf-component-loading", e.loading).AddClass("sf-component-disabled", e.disabled).AddClass("sf-icon-button", e.button).AddClass("sf-icon-small", e.tamanho === Ft.Pequeno).AddClass("sf-icon-medium", e.tamanho === Ft.Medio).AddClass("sf-icon-large", e.tamanho === Ft.Grande).AddClass("sf-ripple", e.button === !0).Build();
|
|
111
111
|
}
|
|
112
112
|
return (o, r) => (oe(), pe("div", {
|
|
113
|
-
style:
|
|
113
|
+
style: Dt(e.style),
|
|
114
114
|
class: ve(n())
|
|
115
115
|
}, [
|
|
116
|
-
Y("button",
|
|
116
|
+
Y("button", qs({
|
|
117
117
|
class: "material-symbols-outlined",
|
|
118
118
|
disabled: e.disabled || e.loading
|
|
119
119
|
}, e.buttonProps, {
|
|
@@ -129,7 +129,7 @@ const li = /* @__PURE__ */ Cr(ri, [["render", ci]]), ui = ["disabled", "tabindex
|
|
|
129
129
|
}, null, 8, di)) : bt("", !0)
|
|
130
130
|
], 6));
|
|
131
131
|
}
|
|
132
|
-
}), fi = ["id"], hi = { class: "sf-drawer-header" }, pi = { class: "sf-drawer-title" }, mi = { class: "sf-drawer-content" }, gi = {
|
|
132
|
+
}), fi = ["id", "onClick"], hi = { class: "sf-drawer-header" }, pi = { class: "sf-drawer-title" }, mi = { class: "sf-drawer-content" }, gi = {
|
|
133
133
|
key: 0,
|
|
134
134
|
class: "sf-drawer-footer"
|
|
135
135
|
}, bi = /* @__PURE__ */ We({
|
|
@@ -141,7 +141,7 @@ const li = /* @__PURE__ */ Cr(ri, [["render", ci]]), ui = ["disabled", "tabindex
|
|
|
141
141
|
},
|
|
142
142
|
emits: ["update:visible", "open", "before-close"],
|
|
143
143
|
setup(t, { emit: e }) {
|
|
144
|
-
const n = t, o = e, r =
|
|
144
|
+
const n = t, o = e, r = Ks(), s = ze(n.visible), a = ze(!1), d = ze(0), l = oi();
|
|
145
145
|
function y() {
|
|
146
146
|
s.value = !1;
|
|
147
147
|
}
|
|
@@ -174,13 +174,15 @@ const li = /* @__PURE__ */ Cr(ri, [["render", ci]]), ui = ["disabled", "tabindex
|
|
|
174
174
|
(M) => {
|
|
175
175
|
o("update:visible", M), M && (a.value = !0);
|
|
176
176
|
}
|
|
177
|
-
), (M, Q) => (oe(), at(
|
|
177
|
+
), (M, Q) => (oe(), at(Gs, { to: "body" }, [
|
|
178
178
|
a.value ? (oe(), pe("div", {
|
|
179
179
|
key: 0,
|
|
180
180
|
id: He(l),
|
|
181
|
-
class: ve(F())
|
|
181
|
+
class: ve(F()),
|
|
182
|
+
style: Dt({ zIndex: d.value - 1 }),
|
|
183
|
+
onClick: Wo(y, ["stop"])
|
|
182
184
|
}, [
|
|
183
|
-
et(
|
|
185
|
+
et(Js, {
|
|
184
186
|
name: "sf-drawer",
|
|
185
187
|
appear: "",
|
|
186
188
|
onBeforeEnter: G,
|
|
@@ -197,17 +199,17 @@ const li = /* @__PURE__ */ Cr(ri, [["render", ci]]), ui = ["disabled", "tabindex
|
|
|
197
199
|
"sf-drawer-with-footer": !!He(r).footer
|
|
198
200
|
}
|
|
199
201
|
]),
|
|
200
|
-
style:
|
|
202
|
+
style: Dt(n.style),
|
|
201
203
|
role: "dialog"
|
|
202
204
|
}, [
|
|
203
205
|
Y("div", hi, [
|
|
204
206
|
Y("span", pi, [
|
|
205
207
|
Oe(M.$slots, "title")
|
|
206
208
|
]),
|
|
207
|
-
et(
|
|
209
|
+
et(cn, {
|
|
208
210
|
button: !0,
|
|
209
211
|
icone: "close",
|
|
210
|
-
onClick:
|
|
212
|
+
onClick: Wo(y, ["stop"])
|
|
211
213
|
}, null, 8, ["onClick"])
|
|
212
214
|
]),
|
|
213
215
|
Y("div", mi, [
|
|
@@ -220,7 +222,7 @@ const li = /* @__PURE__ */ Cr(ri, [["render", ci]]), ui = ["disabled", "tabindex
|
|
|
220
222
|
]),
|
|
221
223
|
_: 3
|
|
222
224
|
})
|
|
223
|
-
],
|
|
225
|
+
], 14, fi)) : bt("", !0)
|
|
224
226
|
]));
|
|
225
227
|
}
|
|
226
228
|
}), yi = ["id", "name", "disabled", "data-color", "form", "type"], wi = { class: "sf-button-label" }, vi = /* @__PURE__ */ We({
|
|
@@ -251,19 +253,19 @@ const li = /* @__PURE__ */ Cr(ri, [["render", ci]]), ui = ["disabled", "tabindex
|
|
|
251
253
|
id: e.id,
|
|
252
254
|
name: e.name,
|
|
253
255
|
class: ve(n()),
|
|
254
|
-
style:
|
|
256
|
+
style: Dt(e.style),
|
|
255
257
|
disabled: e.disabled || e.loading,
|
|
256
258
|
"data-color": e.color,
|
|
257
259
|
form: e.form,
|
|
258
260
|
type: e.type
|
|
259
261
|
}, [
|
|
260
|
-
e.icon ? (oe(), at(
|
|
262
|
+
e.icon ? (oe(), at(cn, {
|
|
261
263
|
key: 0,
|
|
262
264
|
icone: e.icon,
|
|
263
265
|
loading: e.loading,
|
|
264
266
|
size: e.size,
|
|
265
267
|
"button-props": { tabindex: -1 }
|
|
266
|
-
}, null, 8, ["icone", "loading", "size"])) : e.loading ? (oe(), at(
|
|
268
|
+
}, null, 8, ["icone", "loading", "size"])) : e.loading ? (oe(), at(cn, {
|
|
267
269
|
key: 1,
|
|
268
270
|
loading: !0,
|
|
269
271
|
size: e.size,
|
|
@@ -274,22 +276,22 @@ const li = /* @__PURE__ */ Cr(ri, [["render", ci]]), ui = ["disabled", "tabindex
|
|
|
274
276
|
])
|
|
275
277
|
], 14, yi));
|
|
276
278
|
}
|
|
277
|
-
}),
|
|
279
|
+
}), Pr = "SweetAlert2:", Ai = (t) => {
|
|
278
280
|
const e = [];
|
|
279
281
|
for (let n = 0; n < t.length; n++)
|
|
280
282
|
e.indexOf(t[n]) === -1 && e.push(t[n]);
|
|
281
283
|
return e;
|
|
282
284
|
}, ao = (t) => t.charAt(0).toUpperCase() + t.slice(1), Re = (t) => Array.prototype.slice.call(t), Ce = (t) => {
|
|
283
|
-
console.warn(`${
|
|
285
|
+
console.warn(`${Pr} ${typeof t == "object" ? t.join(" ") : t}`);
|
|
284
286
|
}, ut = (t) => {
|
|
285
|
-
console.error(`${
|
|
286
|
-
},
|
|
287
|
-
|
|
287
|
+
console.error(`${Pr} ${t}`);
|
|
288
|
+
}, qo = [], Ei = (t) => {
|
|
289
|
+
qo.includes(t) || (qo.push(t), Ce(t));
|
|
288
290
|
}, ki = (t, e) => {
|
|
289
291
|
Ei(
|
|
290
292
|
`"${t}" is deprecated and will be removed in the next major release. Please use "${e}" instead.`
|
|
291
293
|
);
|
|
292
|
-
}, pn = (t) => typeof t == "function" ? t() : t, co = (t) => t && typeof t.toPromise == "function",
|
|
294
|
+
}, pn = (t) => typeof t == "function" ? t() : t, co = (t) => t && typeof t.toPromise == "function", jt = (t) => co(t) ? t.toPromise() : Promise.resolve(t), lo = (t) => t && Promise.resolve(t) === t, wt = {
|
|
293
295
|
title: "",
|
|
294
296
|
titleText: "",
|
|
295
297
|
text: "",
|
|
@@ -431,8 +433,8 @@ const li = /* @__PURE__ */ Cr(ri, [["render", ci]]), ui = ["disabled", "tabindex
|
|
|
431
433
|
"returnFocus",
|
|
432
434
|
"heightAuto",
|
|
433
435
|
"keydownListenerCapture"
|
|
434
|
-
],
|
|
435
|
-
|
|
436
|
+
], Rr = (t) => Object.prototype.hasOwnProperty.call(wt, t), Lr = (t) => xi.indexOf(t) !== -1, qn = (t) => Si[t], Ci = (t) => {
|
|
437
|
+
Rr(t) || Ce(`Unknown parameter "${t}"`);
|
|
436
438
|
}, Ti = (t) => {
|
|
437
439
|
_i.includes(t) && Ce(`The parameter "${t}" is incompatible with toasts`);
|
|
438
440
|
}, Pi = (t) => {
|
|
@@ -441,12 +443,12 @@ const li = /* @__PURE__ */ Cr(ri, [["render", ci]]), ui = ["disabled", "tabindex
|
|
|
441
443
|
!t.backdrop && t.allowOutsideClick && Ce('"allowOutsideClick" parameter requires `backdrop` parameter to be set to `true`');
|
|
442
444
|
for (const e in t)
|
|
443
445
|
Ci(e), t.toast && Ti(e), Pi(e);
|
|
444
|
-
}, Li = "swal2-",
|
|
446
|
+
}, Li = "swal2-", Or = (t) => {
|
|
445
447
|
const e = {};
|
|
446
448
|
for (const n in t)
|
|
447
449
|
e[t[n]] = Li + t[n];
|
|
448
450
|
return e;
|
|
449
|
-
}, f =
|
|
451
|
+
}, f = Or([
|
|
450
452
|
"container",
|
|
451
453
|
"shown",
|
|
452
454
|
"height-auto",
|
|
@@ -516,10 +518,10 @@ const li = /* @__PURE__ */ Cr(ri, [["render", ci]]), ui = ["disabled", "tabindex
|
|
|
516
518
|
"icon-info",
|
|
517
519
|
"icon-question",
|
|
518
520
|
"icon-error"
|
|
519
|
-
]), Nt =
|
|
521
|
+
]), Nt = Or(["success", "warning", "info", "question", "error"]), me = () => document.body.querySelector(`.${f.container}`), zt = (t) => {
|
|
520
522
|
const e = me();
|
|
521
523
|
return e ? e.querySelector(t) : null;
|
|
522
|
-
}, Ne = (t) =>
|
|
524
|
+
}, Ne = (t) => zt(`.${t}`), Z = () => Ne(f.popup), Vt = () => Ne(f.icon), Ir = () => Ne(f.title), ln = () => Ne(f["html-container"]), Fr = () => Ne(f.image), Br = () => Ne(f["progress-steps"]), mn = () => Ne(f["validation-message"]), Ue = () => zt(`.${f.actions} .${f.confirm}`), tt = () => zt(`.${f.actions} .${f.deny}`), Oi = () => Ne(f["input-label"]), xt = () => zt(`.${f.loader}`), ct = () => zt(`.${f.actions} .${f.cancel}`), Wt = () => Ne(f.actions), Nr = () => Ne(f.footer), gn = () => Ne(f["timer-progress-bar"]), uo = () => Ne(f.close), Ii = `
|
|
523
525
|
a[href],
|
|
524
526
|
area[href],
|
|
525
527
|
input:not([disabled]),
|
|
@@ -592,21 +594,21 @@ const li = /* @__PURE__ */ Cr(ri, [["render", ci]]), ui = ["disabled", "tabindex
|
|
|
592
594
|
default:
|
|
593
595
|
return t.querySelector(`.${f.popup} > .${f.input}`);
|
|
594
596
|
}
|
|
595
|
-
},
|
|
597
|
+
}, Ur = (t) => {
|
|
596
598
|
if (t.focus(), t.type !== "file") {
|
|
597
599
|
const e = t.value;
|
|
598
600
|
t.value = "", t.value = e;
|
|
599
601
|
}
|
|
600
|
-
},
|
|
602
|
+
}, Dr = (t, e, n) => {
|
|
601
603
|
!t || !e || (typeof e == "string" && (e = e.split(/\s+/).filter(Boolean)), e.forEach((o) => {
|
|
602
604
|
Array.isArray(t) ? t.forEach((r) => {
|
|
603
605
|
n ? r.classList.add(o) : r.classList.remove(o);
|
|
604
606
|
}) : n ? t.classList.add(o) : t.classList.remove(o);
|
|
605
607
|
}));
|
|
606
608
|
}, X = (t, e) => {
|
|
607
|
-
|
|
609
|
+
Dr(t, e, !0);
|
|
608
610
|
}, Ve = (t, e) => {
|
|
609
|
-
|
|
611
|
+
Dr(t, e, !1);
|
|
610
612
|
}, Qe = (t, e) => {
|
|
611
613
|
const n = Re(t.childNodes);
|
|
612
614
|
for (let o = 0; o < n.length; o++)
|
|
@@ -618,12 +620,12 @@ const li = /* @__PURE__ */ Cr(ri, [["render", ci]]), ui = ["disabled", "tabindex
|
|
|
618
620
|
t.style.display = e;
|
|
619
621
|
}, ge = (t) => {
|
|
620
622
|
t.style.display = "none";
|
|
621
|
-
},
|
|
623
|
+
}, Ko = (t, e, n, o) => {
|
|
622
624
|
const r = t.querySelector(e);
|
|
623
625
|
r && (r.style[n] = o);
|
|
624
626
|
}, yn = (t, e, n) => {
|
|
625
627
|
e ? ue(t, n) : ge(t);
|
|
626
|
-
}, Pe = (t) => !!(t && (t.offsetWidth || t.offsetHeight || t.getClientRects().length)), Ni = () => !Pe(Ue()) && !Pe(tt()) && !Pe(ct()),
|
|
628
|
+
}, Pe = (t) => !!(t && (t.offsetWidth || t.offsetHeight || t.getClientRects().length)), Ni = () => !Pe(Ue()) && !Pe(tt()) && !Pe(ct()), Go = (t) => t.scrollHeight > t.clientHeight, Mr = (t) => {
|
|
627
629
|
const e = window.getComputedStyle(t), n = parseFloat(e.getPropertyValue("animation-duration") || "0"), o = parseFloat(e.getPropertyValue("transition-duration") || "0");
|
|
628
630
|
return n > 0 || o > 0;
|
|
629
631
|
}, mo = (t, e = !1) => {
|
|
@@ -636,7 +638,7 @@ const li = /* @__PURE__ */ Cr(ri, [["render", ci]]), ui = ["disabled", "tabindex
|
|
|
636
638
|
t.style.removeProperty("transition"), t.style.width = "100%";
|
|
637
639
|
const n = parseInt(window.getComputedStyle(t).width), o = e / n * 100;
|
|
638
640
|
t.style.removeProperty("transition"), t.style.width = `${o}%`;
|
|
639
|
-
},
|
|
641
|
+
}, $r = () => typeof window > "u" || typeof document > "u", Di = 100, V = {}, Mi = () => {
|
|
640
642
|
V.previousActiveElement && V.previousActiveElement.focus ? (V.previousActiveElement.focus(), V.previousActiveElement = null) : document.body && document.body.focus();
|
|
641
643
|
}, $i = (t) => new Promise((e) => {
|
|
642
644
|
if (!t)
|
|
@@ -700,7 +702,7 @@ const li = /* @__PURE__ */ Cr(ri, [["render", ci]]), ui = ["disabled", "tabindex
|
|
|
700
702
|
window.getComputedStyle(t).direction === "rtl" && X(me(), f.rtl);
|
|
701
703
|
}, Ki = (t) => {
|
|
702
704
|
const e = ji();
|
|
703
|
-
if (
|
|
705
|
+
if ($r()) {
|
|
704
706
|
ut("SweetAlert2 requires document to initialize");
|
|
705
707
|
return;
|
|
706
708
|
}
|
|
@@ -718,8 +720,8 @@ const li = /* @__PURE__ */ Cr(ri, [["render", ci]]), ui = ["disabled", "tabindex
|
|
|
718
720
|
t.appendChild(e[n].cloneNode(!0));
|
|
719
721
|
else
|
|
720
722
|
t.appendChild(e.cloneNode(!0));
|
|
721
|
-
},
|
|
722
|
-
if (
|
|
723
|
+
}, Mt = (() => {
|
|
724
|
+
if ($r())
|
|
723
725
|
return !1;
|
|
724
726
|
const t = document.createElement("div"), e = {
|
|
725
727
|
WebkitAnimation: "webkitAnimationEnd",
|
|
@@ -737,7 +739,7 @@ const li = /* @__PURE__ */ Cr(ri, [["render", ci]]), ui = ["disabled", "tabindex
|
|
|
737
739
|
const e = t.getBoundingClientRect().width - t.clientWidth;
|
|
738
740
|
return document.body.removeChild(t), e;
|
|
739
741
|
}, Xi = (t, e) => {
|
|
740
|
-
const n =
|
|
742
|
+
const n = Wt(), o = xt();
|
|
741
743
|
!e.showConfirmButton && !e.showDenyButton && !e.showCancelButton ? ge(n) : ue(n), Fe(n, e, "actions"), Zi(n, o, e), he(o, e.loaderHtml), Fe(o, e, "loader");
|
|
742
744
|
};
|
|
743
745
|
function Zi(t, e, n) {
|
|
@@ -783,9 +785,9 @@ const oa = (t, e) => {
|
|
|
783
785
|
return ut(
|
|
784
786
|
`Unexpected type of input! Expected "text", "email", "password", "number", "tel", "select", "radio", "checkbox", "textarea", "file" or "url", got "${t.input}"`
|
|
785
787
|
);
|
|
786
|
-
const e =
|
|
788
|
+
const e = Hr(t.input), n = _e[t.input](e, t);
|
|
787
789
|
ue(n), setTimeout(() => {
|
|
788
|
-
|
|
790
|
+
Ur(n);
|
|
789
791
|
});
|
|
790
792
|
}, aa = (t) => {
|
|
791
793
|
for (let e = 0; e < t.attributes.length; e++) {
|
|
@@ -800,34 +802,34 @@ const oa = (t, e) => {
|
|
|
800
802
|
n.setAttribute(o, e[o]);
|
|
801
803
|
}
|
|
802
804
|
}, la = (t) => {
|
|
803
|
-
const e =
|
|
805
|
+
const e = Hr(t.input);
|
|
804
806
|
t.customClass && X(e, t.customClass.input);
|
|
805
807
|
}, bo = (t, e) => {
|
|
806
808
|
(!t.placeholder || e.inputPlaceholder) && (t.placeholder = e.inputPlaceholder);
|
|
807
|
-
},
|
|
809
|
+
}, qt = (t, e, n) => {
|
|
808
810
|
if (n.inputLabel) {
|
|
809
811
|
t.id = f.input;
|
|
810
812
|
const o = document.createElement("label"), r = f["input-label"];
|
|
811
813
|
o.setAttribute("for", t.id), o.className = r, X(o, n.customClass.inputLabel), o.innerText = n.inputLabel, e.insertAdjacentElement("beforebegin", o);
|
|
812
814
|
}
|
|
813
|
-
},
|
|
815
|
+
}, Hr = (t) => {
|
|
814
816
|
const e = f[t] ? f[t] : f.input;
|
|
815
817
|
return Qe(Z(), e);
|
|
816
818
|
}, _e = {};
|
|
817
819
|
_e.text = _e.email = _e.password = _e.number = _e.tel = _e.url = (t, e) => (typeof e.inputValue == "string" || typeof e.inputValue == "number" ? t.value = e.inputValue : lo(e.inputValue) || Ce(
|
|
818
820
|
`Unexpected type of inputValue! Expected "string", "number" or "Promise", got "${typeof e.inputValue}"`
|
|
819
|
-
),
|
|
820
|
-
_e.file = (t, e) => (
|
|
821
|
+
), qt(t, t, e), bo(t, e), t.type = e.input, t);
|
|
822
|
+
_e.file = (t, e) => (qt(t, t, e), bo(t, e), t);
|
|
821
823
|
_e.range = (t, e) => {
|
|
822
824
|
const n = t.querySelector("input"), o = t.querySelector("output");
|
|
823
|
-
return n.value = e.inputValue, n.type = e.input, o.value = e.inputValue,
|
|
825
|
+
return n.value = e.inputValue, n.type = e.input, o.value = e.inputValue, qt(n, t, e), t;
|
|
824
826
|
};
|
|
825
827
|
_e.select = (t, e) => {
|
|
826
828
|
if (t.textContent = "", e.inputPlaceholder) {
|
|
827
829
|
const n = document.createElement("option");
|
|
828
830
|
he(n, e.inputPlaceholder), n.value = "", n.disabled = !0, n.selected = !0, t.appendChild(n);
|
|
829
831
|
}
|
|
830
|
-
return
|
|
832
|
+
return qt(t, t, e), t;
|
|
831
833
|
};
|
|
832
834
|
_e.radio = (t) => (t.textContent = "", t);
|
|
833
835
|
_e.checkbox = (t, e) => {
|
|
@@ -837,7 +839,7 @@ _e.checkbox = (t, e) => {
|
|
|
837
839
|
return he(o, e.inputPlaceholder), t;
|
|
838
840
|
};
|
|
839
841
|
_e.textarea = (t, e) => {
|
|
840
|
-
t.value = e.inputValue, bo(t, e),
|
|
842
|
+
t.value = e.inputValue, bo(t, e), qt(t, t, e);
|
|
841
843
|
const n = (o) => parseInt(window.getComputedStyle(o).marginLeft) + parseInt(window.getComputedStyle(o).marginRight);
|
|
842
844
|
return setTimeout(() => {
|
|
843
845
|
if ("MutationObserver" in window) {
|
|
@@ -853,26 +855,26 @@ _e.textarea = (t, e) => {
|
|
|
853
855
|
}), t;
|
|
854
856
|
};
|
|
855
857
|
const ua = (t, e) => {
|
|
856
|
-
const n =
|
|
858
|
+
const n = ln();
|
|
857
859
|
Fe(n, e, "htmlContainer"), e.html ? (go(e.html, n), ue(n, "block")) : e.text ? (n.textContent = e.text, ue(n, "block")) : ge(n), sa(t, e);
|
|
858
860
|
}, da = (t, e) => {
|
|
859
|
-
const n =
|
|
861
|
+
const n = Nr();
|
|
860
862
|
yn(n, e.footer), e.footer && go(e.footer, n), Fe(n, e, "footer");
|
|
861
863
|
}, fa = (t, e) => {
|
|
862
864
|
const n = uo();
|
|
863
865
|
he(n, e.closeButtonHtml), Fe(n, e, "closeButton"), yn(n, e.showCloseButton), n.setAttribute("aria-label", e.closeButtonAriaLabel);
|
|
864
866
|
}, ha = (t, e) => {
|
|
865
|
-
const n = q.innerParams.get(t), o =
|
|
867
|
+
const n = q.innerParams.get(t), o = Vt();
|
|
866
868
|
if (n && e.icon === n.icon) {
|
|
867
|
-
|
|
869
|
+
Yo(o, e), Jo(o, e);
|
|
868
870
|
return;
|
|
869
871
|
}
|
|
870
872
|
if (!e.icon && !e.iconHtml)
|
|
871
873
|
return ge(o);
|
|
872
874
|
if (e.icon && Object.keys(Nt).indexOf(e.icon) === -1)
|
|
873
875
|
return ut(`Unknown icon! Expected "success", "error", "warning", "info" or "question", got "${e.icon}"`), ge(o);
|
|
874
|
-
ue(o),
|
|
875
|
-
},
|
|
876
|
+
ue(o), Yo(o, e), Jo(o, e), X(o, e.showClass.icon);
|
|
877
|
+
}, Jo = (t, e) => {
|
|
876
878
|
for (const n in Nt)
|
|
877
879
|
e.icon !== n && Ve(t, Nt[n]);
|
|
878
880
|
X(t, Nt[e.icon]), ba(t, e), pa(), Fe(t, e, "icon");
|
|
@@ -890,8 +892,8 @@ const ua = (t, e) => {
|
|
|
890
892
|
<span class="swal2-x-mark-line-left"></span>
|
|
891
893
|
<span class="swal2-x-mark-line-right"></span>
|
|
892
894
|
</span>
|
|
893
|
-
`,
|
|
894
|
-
t.textContent = "", e.iconHtml ? he(t,
|
|
895
|
+
`, Yo = (t, e) => {
|
|
896
|
+
t.textContent = "", e.iconHtml ? he(t, Xo(e.iconHtml)) : e.icon === "success" ? he(t, ma) : e.icon === "error" ? he(t, ga) : he(t, Xo({
|
|
895
897
|
question: "?",
|
|
896
898
|
warning: "!",
|
|
897
899
|
info: "i"
|
|
@@ -905,11 +907,11 @@ const ua = (t, e) => {
|
|
|
905
907
|
".swal2-x-mark-line-left",
|
|
906
908
|
".swal2-x-mark-line-right"
|
|
907
909
|
])
|
|
908
|
-
|
|
909
|
-
|
|
910
|
+
Ko(t, n, "backgroundColor", e.iconColor);
|
|
911
|
+
Ko(t, ".swal2-success-ring", "borderColor", e.iconColor);
|
|
910
912
|
}
|
|
911
|
-
},
|
|
912
|
-
const n =
|
|
913
|
+
}, Xo = (t) => `<div class="${f["icon-content"]}">${t}</div>`, ya = (t, e) => {
|
|
914
|
+
const n = Fr();
|
|
913
915
|
if (!e.imageUrl)
|
|
914
916
|
return ge(n);
|
|
915
917
|
ue(n, ""), n.setAttribute("src", e.imageUrl), n.setAttribute("alt", e.imageAlt), Ut(n, "width", e.imageWidth), Ut(n, "height", e.imageHeight), n.className = f.image, Fe(n, e, "image");
|
|
@@ -920,7 +922,7 @@ const ua = (t, e) => {
|
|
|
920
922
|
const e = document.createElement("li");
|
|
921
923
|
return X(e, f["progress-step-line"]), t.progressStepsDistance && (e.style.width = t.progressStepsDistance), e;
|
|
922
924
|
}, Aa = (t, e) => {
|
|
923
|
-
const n =
|
|
925
|
+
const n = Br();
|
|
924
926
|
if (!e.progressSteps || e.progressSteps.length === 0)
|
|
925
927
|
return ge(n);
|
|
926
928
|
ue(n), n.textContent = "", e.currentProgressStep >= e.progressSteps.length && Ce(
|
|
@@ -933,14 +935,14 @@ const ua = (t, e) => {
|
|
|
933
935
|
}
|
|
934
936
|
});
|
|
935
937
|
}, Ea = (t, e) => {
|
|
936
|
-
const n =
|
|
938
|
+
const n = Ir();
|
|
937
939
|
yn(n, e.title || e.titleText, "block"), e.title && go(e.title, n), e.titleText && (n.innerText = e.titleText), Fe(n, e, "title");
|
|
938
940
|
}, ka = (t, e) => {
|
|
939
941
|
const n = me(), o = Z();
|
|
940
|
-
e.toast ? (Ut(n, "width", e.width), o.style.width = "100%", o.insertBefore(xt(),
|
|
942
|
+
e.toast ? (Ut(n, "width", e.width), o.style.width = "100%", o.insertBefore(xt(), Vt())) : Ut(o, "width", e.width), Ut(o, "padding", e.padding), e.color && (o.style.color = e.color), e.background && (o.style.background = e.background), ge(mn()), xa(o, e);
|
|
941
943
|
}, xa = (t, e) => {
|
|
942
944
|
t.className = `${f.popup} ${Pe(t) ? e.showClass.popup : ""}`, e.toast ? (X([document.documentElement, document.body], f["toast-shown"]), X(t, f.toast)) : X(t, f.modal), Fe(t, e, "popup"), typeof e.customClass == "string" && X(t, e.customClass), e.icon && X(t, f[`icon-${e.icon}`]);
|
|
943
|
-
},
|
|
945
|
+
}, jr = (t, e) => {
|
|
944
946
|
ka(t, e), oa(t, e), Aa(t, e), ha(t, e), ya(t, e), Ea(t, e), fa(t, e), ua(t, e), Xi(t, e), da(t, e), typeof e.didRender == "function" && e.didRender(Z());
|
|
945
947
|
}, St = Object.freeze({
|
|
946
948
|
cancel: "cancel",
|
|
@@ -952,11 +954,11 @@ const ua = (t, e) => {
|
|
|
952
954
|
Re(document.body.children).forEach((e) => {
|
|
953
955
|
e === me() || e.contains(me()) || (e.hasAttribute("aria-hidden") && e.setAttribute("data-previous-aria-hidden", e.getAttribute("aria-hidden")), e.setAttribute("aria-hidden", "true"));
|
|
954
956
|
});
|
|
955
|
-
},
|
|
957
|
+
}, zr = () => {
|
|
956
958
|
Re(document.body.children).forEach((e) => {
|
|
957
959
|
e.hasAttribute("data-previous-aria-hidden") ? (e.setAttribute("aria-hidden", e.getAttribute("data-previous-aria-hidden")), e.removeAttribute("data-previous-aria-hidden")) : e.removeAttribute("aria-hidden");
|
|
958
960
|
});
|
|
959
|
-
},
|
|
961
|
+
}, Vr = ["swal-title", "swal-html", "swal-footer"], _a = (t) => {
|
|
960
962
|
const e = typeof t.template == "string" ? document.querySelector(t.template) : t.template;
|
|
961
963
|
if (!e)
|
|
962
964
|
return {};
|
|
@@ -967,7 +969,7 @@ const ua = (t, e) => {
|
|
|
967
969
|
Pa(n),
|
|
968
970
|
Ra(n),
|
|
969
971
|
La(n),
|
|
970
|
-
Oa(n,
|
|
972
|
+
Oa(n, Vr)
|
|
971
973
|
);
|
|
972
974
|
}, Ca = (t) => {
|
|
973
975
|
const e = {};
|
|
@@ -1006,7 +1008,7 @@ const ua = (t, e) => {
|
|
|
1006
1008
|
}
|
|
1007
1009
|
return n;
|
|
1008
1010
|
}, Ia = (t) => {
|
|
1009
|
-
const e =
|
|
1011
|
+
const e = Vr.concat([
|
|
1010
1012
|
"swal-param",
|
|
1011
1013
|
"swal-button",
|
|
1012
1014
|
"swal-image",
|
|
@@ -1025,13 +1027,13 @@ const ua = (t, e) => {
|
|
|
1025
1027
|
`${e.length ? `Allowed attributes are: ${e.join(", ")}` : "To set the value, use HTML within the element."}`
|
|
1026
1028
|
]);
|
|
1027
1029
|
});
|
|
1028
|
-
},
|
|
1030
|
+
}, Zo = {
|
|
1029
1031
|
email: (t, e) => /^[a-zA-Z0-9.+_-]+@[a-zA-Z0-9.-]+\.[a-zA-Z0-9-]{2,24}$/.test(t) ? Promise.resolve() : Promise.resolve(e || "Invalid email address"),
|
|
1030
1032
|
url: (t, e) => /^https?:\/\/(www\.)?[-a-zA-Z0-9@:%._+~#=]{1,256}\.[a-z]{2,63}\b([-a-zA-Z0-9@:%_+.~#?&/=]*)$/.test(t) ? Promise.resolve() : Promise.resolve(e || "Invalid URL")
|
|
1031
1033
|
};
|
|
1032
1034
|
function Fa(t) {
|
|
1033
|
-
t.inputValidator || Object.keys(
|
|
1034
|
-
t.input === e && (t.inputValidator =
|
|
1035
|
+
t.inputValidator || Object.keys(Zo).forEach((e) => {
|
|
1036
|
+
t.input === e && (t.inputValidator = Zo[e]);
|
|
1035
1037
|
});
|
|
1036
1038
|
}
|
|
1037
1039
|
function Ba(t) {
|
|
@@ -1089,30 +1091,30 @@ const Da = () => {
|
|
|
1089
1091
|
};
|
|
1090
1092
|
}, za = (t) => {
|
|
1091
1093
|
const e = t.target, n = me();
|
|
1092
|
-
return Va(t) || Wa(t) ? !1 : e === n || !
|
|
1094
|
+
return Va(t) || Wa(t) ? !1 : e === n || !Go(n) && e.tagName !== "INPUT" && // #1603
|
|
1093
1095
|
e.tagName !== "TEXTAREA" && // #2266
|
|
1094
|
-
!(
|
|
1095
|
-
|
|
1096
|
+
!(Go(ln()) && // #1944
|
|
1097
|
+
ln().contains(e));
|
|
1096
1098
|
}, Va = (t) => t.touches && t.touches.length && t.touches[0].touchType === "stylus", Wa = (t) => t.touches && t.touches.length > 1, qa = () => {
|
|
1097
1099
|
if (Ye(document.body, f.iosfix)) {
|
|
1098
1100
|
const t = parseInt(document.body.style.top, 10);
|
|
1099
1101
|
Ve(document.body, f.iosfix), document.body.style.top = "", document.body.scrollTop = t * -1;
|
|
1100
1102
|
}
|
|
1101
|
-
},
|
|
1103
|
+
}, Wr = 10, Ka = (t) => {
|
|
1102
1104
|
const e = me(), n = Z();
|
|
1103
1105
|
typeof t.willOpen == "function" && t.willOpen(n);
|
|
1104
1106
|
const r = window.getComputedStyle(document.body).overflowY;
|
|
1105
1107
|
Ya(e, n, t), setTimeout(() => {
|
|
1106
1108
|
Ga(e, n);
|
|
1107
|
-
},
|
|
1108
|
-
},
|
|
1109
|
+
}, Wr), ho() && (Ja(e, t.scrollbarPadding, r), Sa()), !bn() && !V.previousActiveElement && (V.previousActiveElement = document.activeElement), typeof t.didOpen == "function" && setTimeout(() => t.didOpen(n)), Ve(e, f["no-transition"]);
|
|
1110
|
+
}, qr = (t) => {
|
|
1109
1111
|
const e = Z();
|
|
1110
1112
|
if (t.target !== e)
|
|
1111
1113
|
return;
|
|
1112
1114
|
const n = me();
|
|
1113
|
-
e.removeEventListener(
|
|
1115
|
+
e.removeEventListener(Mt, qr), n.style.overflowY = "auto";
|
|
1114
1116
|
}, Ga = (t, e) => {
|
|
1115
|
-
|
|
1117
|
+
Mt && Mr(e) ? (t.style.overflowY = "hidden", e.addEventListener(Mt, qr)) : t.style.overflowY = "auto";
|
|
1116
1118
|
}, Ja = (t, e, n) => {
|
|
1117
1119
|
$a(), e && n !== "hidden" && Da(), setTimeout(() => {
|
|
1118
1120
|
t.scrollTop = 0;
|
|
@@ -1120,14 +1122,14 @@ const Da = () => {
|
|
|
1120
1122
|
}, Ya = (t, e, n) => {
|
|
1121
1123
|
X(t, n.showClass.backdrop), e.style.setProperty("opacity", "0", "important"), ue(e, "grid"), setTimeout(() => {
|
|
1122
1124
|
X(e, n.showClass.popup), e.style.removeProperty("opacity");
|
|
1123
|
-
},
|
|
1125
|
+
}, Wr), X([document.documentElement, document.body], f.shown), n.heightAuto && n.backdrop && !n.toast && X([document.documentElement, document.body], f["height-auto"]);
|
|
1124
1126
|
}, Et = (t) => {
|
|
1125
1127
|
let e = Z();
|
|
1126
1128
|
e || new At(), e = Z();
|
|
1127
1129
|
const n = xt();
|
|
1128
|
-
bn() ? ge(
|
|
1130
|
+
bn() ? ge(Vt()) : Xa(e, t), ue(n), e.setAttribute("data-loading", !0), e.setAttribute("aria-busy", !0), e.focus();
|
|
1129
1131
|
}, Xa = (t, e) => {
|
|
1130
|
-
const n =
|
|
1132
|
+
const n = Wt(), o = xt();
|
|
1131
1133
|
!e && Pe(Ue()) && (e = Ue()), ue(n), e && (ge(e), o.setAttribute("data-button-to-replace", e.className)), o.parentNode.insertBefore(o, e), X([t, n], f.loading);
|
|
1132
1134
|
}, Za = (t, e) => {
|
|
1133
1135
|
e.input === "select" || e.input === "radio" ? oc(t, e) : ["text", "email", "number", "tel", "textarea"].includes(e.input) && (co(e.inputValue) || lo(e.inputValue)) && (Et(Ue()), rc(t, e));
|
|
@@ -1147,12 +1149,12 @@ const Da = () => {
|
|
|
1147
1149
|
}
|
|
1148
1150
|
}, ec = (t) => t.checked ? 1 : 0, tc = (t) => t.checked ? t.value : null, nc = (t) => t.files.length ? t.getAttribute("multiple") !== null ? t.files : t.files[0] : null, oc = (t, e) => {
|
|
1149
1151
|
const n = Z(), o = (r) => sc[e.input](n, Kn(r), e);
|
|
1150
|
-
co(e.inputOptions) || lo(e.inputOptions) ? (Et(Ue()),
|
|
1152
|
+
co(e.inputOptions) || lo(e.inputOptions) ? (Et(Ue()), jt(e.inputOptions).then((r) => {
|
|
1151
1153
|
t.hideLoading(), o(r);
|
|
1152
1154
|
})) : typeof e.inputOptions == "object" ? o(e.inputOptions) : ut(`Unexpected type of inputOptions! Expected object, Map or Promise, got ${typeof e.inputOptions}`);
|
|
1153
1155
|
}, rc = (t, e) => {
|
|
1154
1156
|
const n = t.getInput();
|
|
1155
|
-
ge(n),
|
|
1157
|
+
ge(n), jt(e.inputValue).then((o) => {
|
|
1156
1158
|
n.value = e.input === "number" ? parseFloat(o) || 0 : `${o}`, ue(n), n.focus(), t.hideLoading();
|
|
1157
1159
|
}).catch((o) => {
|
|
1158
1160
|
ut(`Error in inputValue promise: ${o}`), n.value = "", ue(n), n.focus(), t.hideLoading();
|
|
@@ -1161,7 +1163,7 @@ const Da = () => {
|
|
|
1161
1163
|
select: (t, e, n) => {
|
|
1162
1164
|
const o = Qe(t, f.select), r = (s, a, d) => {
|
|
1163
1165
|
const l = document.createElement("option");
|
|
1164
|
-
l.value = d, he(l, a), l.selected =
|
|
1166
|
+
l.value = d, he(l, a), l.selected = Qo(d, n.inputValue), s.appendChild(l);
|
|
1165
1167
|
};
|
|
1166
1168
|
e.forEach((s) => {
|
|
1167
1169
|
const a = s[0], d = s[1];
|
|
@@ -1176,7 +1178,7 @@ const Da = () => {
|
|
|
1176
1178
|
const o = Qe(t, f.radio);
|
|
1177
1179
|
e.forEach((s) => {
|
|
1178
1180
|
const a = s[0], d = s[1], l = document.createElement("input"), y = document.createElement("label");
|
|
1179
|
-
l.type = "radio", l.name = f.radio, l.value = a,
|
|
1181
|
+
l.type = "radio", l.name = f.radio, l.value = a, Qo(a, n.inputValue) && (l.checked = !0);
|
|
1180
1182
|
const w = document.createElement("span");
|
|
1181
1183
|
he(w, d), w.className = f.label, y.appendChild(l), y.appendChild(w), o.appendChild(y);
|
|
1182
1184
|
});
|
|
@@ -1192,13 +1194,13 @@ const Da = () => {
|
|
|
1192
1194
|
let o = t[n];
|
|
1193
1195
|
typeof o == "object" && (o = Kn(o)), e.push([n, o]);
|
|
1194
1196
|
}), e;
|
|
1195
|
-
},
|
|
1196
|
-
function
|
|
1197
|
+
}, Qo = (t, e) => e && e.toString() === t.toString();
|
|
1198
|
+
function er() {
|
|
1197
1199
|
const t = q.innerParams.get(this);
|
|
1198
1200
|
if (!t)
|
|
1199
1201
|
return;
|
|
1200
1202
|
const e = q.domCache.get(this);
|
|
1201
|
-
ge(e.loader), bn() ? t.icon && ue(
|
|
1203
|
+
ge(e.loader), bn() ? t.icon && ue(Vt()) : ic(e), Ve([e.popup, e.actions], f.loading), e.popup.removeAttribute("aria-busy"), e.popup.removeAttribute("data-loading"), e.confirmButton.disabled = !1, e.denyButton.disabled = !1, e.cancelButton.disabled = !1;
|
|
1202
1204
|
}
|
|
1203
1205
|
const ic = (t) => {
|
|
1204
1206
|
const e = t.popup.getElementsByClassName(t.loader.getAttribute("data-button-to-replace"));
|
|
@@ -1208,15 +1210,15 @@ function ac(t) {
|
|
|
1208
1210
|
const e = q.innerParams.get(t || this), n = q.domCache.get(t || this);
|
|
1209
1211
|
return n ? po(n.popup, e.input) : null;
|
|
1210
1212
|
}
|
|
1211
|
-
const
|
|
1213
|
+
const $t = {
|
|
1212
1214
|
swalPromiseResolve: /* @__PURE__ */ new WeakMap(),
|
|
1213
1215
|
swalPromiseReject: /* @__PURE__ */ new WeakMap()
|
|
1214
|
-
}, cc = () => Pe(Z()),
|
|
1216
|
+
}, cc = () => Pe(Z()), Kr = () => Ue() && Ue().click(), lc = () => tt() && tt().click(), uc = () => ct() && ct().click(), Gr = (t) => {
|
|
1215
1217
|
t.keydownTarget && t.keydownHandlerAdded && (t.keydownTarget.removeEventListener("keydown", t.keydownHandler, {
|
|
1216
1218
|
capture: t.keydownListenerCapture
|
|
1217
1219
|
}), t.keydownHandlerAdded = !1);
|
|
1218
1220
|
}, dc = (t, e, n, o) => {
|
|
1219
|
-
|
|
1221
|
+
Gr(e), n.toast || (e.keydownHandler = (r) => hc(t, r, o), e.keydownTarget = n.keydownListenerCapture ? window : Z(), e.keydownListenerCapture = n.keydownListenerCapture, e.keydownTarget.addEventListener("keydown", e.keydownHandler, {
|
|
1220
1222
|
capture: e.keydownListenerCapture
|
|
1221
1223
|
}), e.keydownHandlerAdded = !0);
|
|
1222
1224
|
}, Gn = (t, e, n) => {
|
|
@@ -1224,14 +1226,14 @@ const Mt = {
|
|
|
1224
1226
|
if (o.length)
|
|
1225
1227
|
return e = e + n, e === o.length ? e = 0 : e === -1 && (e = o.length - 1), o[e].focus();
|
|
1226
1228
|
Z().focus();
|
|
1227
|
-
},
|
|
1229
|
+
}, Jr = ["ArrowRight", "ArrowDown"], fc = ["ArrowLeft", "ArrowUp"], hc = (t, e, n) => {
|
|
1228
1230
|
const o = q.innerParams.get(t);
|
|
1229
|
-
o && (e.isComposing || e.keyCode === 229 || (o.stopKeydownPropagation && e.stopPropagation(), e.key === "Enter" ? pc(t, e, o) : e.key === "Tab" ? mc(e, o) : [...
|
|
1231
|
+
o && (e.isComposing || e.keyCode === 229 || (o.stopKeydownPropagation && e.stopPropagation(), e.key === "Enter" ? pc(t, e, o) : e.key === "Tab" ? mc(e, o) : [...Jr, ...fc].includes(e.key) ? gc(e.key) : e.key === "Escape" && bc(e, o, n)));
|
|
1230
1232
|
}, pc = (t, e, n) => {
|
|
1231
1233
|
if (pn(n.allowEnterKey) && e.target && t.getInput() && e.target.outerHTML === t.getInput().outerHTML) {
|
|
1232
1234
|
if (["textarea", "file"].includes(n.input))
|
|
1233
1235
|
return;
|
|
1234
|
-
|
|
1236
|
+
Kr(), e.preventDefault();
|
|
1235
1237
|
}
|
|
1236
1238
|
}, mc = (t, e) => {
|
|
1237
1239
|
const n = t.target, o = fo();
|
|
@@ -1246,9 +1248,9 @@ const Mt = {
|
|
|
1246
1248
|
const e = Ue(), n = tt(), o = ct();
|
|
1247
1249
|
if (![e, n, o].includes(document.activeElement))
|
|
1248
1250
|
return;
|
|
1249
|
-
const r =
|
|
1251
|
+
const r = Jr.includes(t) ? "nextElementSibling" : "previousElementSibling";
|
|
1250
1252
|
let s = document.activeElement;
|
|
1251
|
-
for (let a = 0; a <
|
|
1253
|
+
for (let a = 0; a < Wt().children.length; a++) {
|
|
1252
1254
|
if (s = s[r], !s)
|
|
1253
1255
|
return;
|
|
1254
1256
|
if (Pe(s) && s instanceof HTMLButtonElement)
|
|
@@ -1258,8 +1260,8 @@ const Mt = {
|
|
|
1258
1260
|
}, bc = (t, e, n) => {
|
|
1259
1261
|
pn(e.allowEscapeKey) && (t.preventDefault(), n(St.esc));
|
|
1260
1262
|
};
|
|
1261
|
-
function
|
|
1262
|
-
bn() ?
|
|
1263
|
+
function Yr(t, e, n, o) {
|
|
1264
|
+
bn() ? tr(t, o) : ($i(n).then(() => tr(t, o)), Gr(V)), /^((?!chrome|android).)*safari/i.test(navigator.userAgent) ? (e.setAttribute("style", "display:none !important"), e.removeAttribute("class"), e.innerHTML = "") : e.remove(), ho() && (Ma(), qa(), zr()), yc();
|
|
1263
1265
|
}
|
|
1264
1266
|
function yc() {
|
|
1265
1267
|
Ve(
|
|
@@ -1267,10 +1269,10 @@ function yc() {
|
|
|
1267
1269
|
[f.shown, f["height-auto"], f["no-backdrop"], f["toast-shown"]]
|
|
1268
1270
|
);
|
|
1269
1271
|
}
|
|
1270
|
-
function
|
|
1272
|
+
function Qt(t) {
|
|
1271
1273
|
t = Ec(t);
|
|
1272
|
-
const e =
|
|
1273
|
-
this.isAwaitingPromise() ? t.isDismissed || (
|
|
1274
|
+
const e = $t.swalPromiseResolve.get(this), n = vc(this);
|
|
1275
|
+
this.isAwaitingPromise() ? t.isDismissed || (Kt(this), e(t)) : n && e(t);
|
|
1274
1276
|
}
|
|
1275
1277
|
function wc() {
|
|
1276
1278
|
return !!q.awaitingPromise.get(this);
|
|
@@ -1287,10 +1289,10 @@ const vc = (t) => {
|
|
|
1287
1289
|
return Ve(o, n.showClass.backdrop), X(o, n.hideClass.backdrop), kc(t, e, n), !0;
|
|
1288
1290
|
};
|
|
1289
1291
|
function Ac(t) {
|
|
1290
|
-
const e =
|
|
1291
|
-
|
|
1292
|
+
const e = $t.swalPromiseReject.get(this);
|
|
1293
|
+
Kt(this), e && e(t);
|
|
1292
1294
|
}
|
|
1293
|
-
const
|
|
1295
|
+
const Kt = (t) => {
|
|
1294
1296
|
t.isAwaitingPromise() && (q.awaitingPromise.delete(t), q.innerParams.get(t) || t._destroy());
|
|
1295
1297
|
}, Ec = (t) => typeof t > "u" ? {
|
|
1296
1298
|
isConfirmed: !1,
|
|
@@ -1304,30 +1306,30 @@ const qt = (t) => {
|
|
|
1304
1306
|
},
|
|
1305
1307
|
t
|
|
1306
1308
|
), kc = (t, e, n) => {
|
|
1307
|
-
const o = me(), r =
|
|
1308
|
-
typeof n.willClose == "function" && n.willClose(e), r ? xc(t, e, o, n.returnFocus, n.didClose) :
|
|
1309
|
+
const o = me(), r = Mt && Mr(e);
|
|
1310
|
+
typeof n.willClose == "function" && n.willClose(e), r ? xc(t, e, o, n.returnFocus, n.didClose) : Yr(t, o, n.returnFocus, n.didClose);
|
|
1309
1311
|
}, xc = (t, e, n, o, r) => {
|
|
1310
|
-
V.swalCloseEventFinishedCallback =
|
|
1312
|
+
V.swalCloseEventFinishedCallback = Yr.bind(
|
|
1311
1313
|
null,
|
|
1312
1314
|
t,
|
|
1313
1315
|
n,
|
|
1314
1316
|
o,
|
|
1315
1317
|
r
|
|
1316
|
-
), e.addEventListener(
|
|
1318
|
+
), e.addEventListener(Mt, function(s) {
|
|
1317
1319
|
s.target === e && (V.swalCloseEventFinishedCallback(), delete V.swalCloseEventFinishedCallback);
|
|
1318
1320
|
});
|
|
1319
|
-
},
|
|
1321
|
+
}, tr = (t, e) => {
|
|
1320
1322
|
setTimeout(() => {
|
|
1321
1323
|
typeof e == "function" && e.bind(t.params)(), t._destroy();
|
|
1322
1324
|
});
|
|
1323
1325
|
};
|
|
1324
|
-
function
|
|
1326
|
+
function Xr(t, e, n) {
|
|
1325
1327
|
const o = q.domCache.get(t);
|
|
1326
1328
|
e.forEach((r) => {
|
|
1327
1329
|
o[r].disabled = n;
|
|
1328
1330
|
});
|
|
1329
1331
|
}
|
|
1330
|
-
function
|
|
1332
|
+
function Zr(t, e) {
|
|
1331
1333
|
if (!t)
|
|
1332
1334
|
return !1;
|
|
1333
1335
|
if (t.type === "radio") {
|
|
@@ -1338,22 +1340,22 @@ function Xr(t, e) {
|
|
|
1338
1340
|
t.disabled = e;
|
|
1339
1341
|
}
|
|
1340
1342
|
function Sc() {
|
|
1341
|
-
|
|
1343
|
+
Xr(this, ["confirmButton", "denyButton", "cancelButton"], !1);
|
|
1342
1344
|
}
|
|
1343
1345
|
function _c() {
|
|
1344
|
-
|
|
1346
|
+
Xr(this, ["confirmButton", "denyButton", "cancelButton"], !0);
|
|
1345
1347
|
}
|
|
1346
1348
|
function Cc() {
|
|
1347
|
-
return
|
|
1349
|
+
return Zr(this.getInput(), !1);
|
|
1348
1350
|
}
|
|
1349
1351
|
function Tc() {
|
|
1350
|
-
return
|
|
1352
|
+
return Zr(this.getInput(), !0);
|
|
1351
1353
|
}
|
|
1352
1354
|
function Pc(t) {
|
|
1353
1355
|
const e = q.domCache.get(this), n = q.innerParams.get(this);
|
|
1354
1356
|
he(e.validationMessage, t), e.validationMessage.className = f["validation-message"], n.customClass && n.customClass.validationMessage && X(e.validationMessage, n.customClass.validationMessage), ue(e.validationMessage);
|
|
1355
1357
|
const o = this.getInput();
|
|
1356
|
-
o && (o.setAttribute("aria-invalid", !0), o.setAttribute("aria-describedby", f["validation-message"]),
|
|
1358
|
+
o && (o.setAttribute("aria-invalid", !0), o.setAttribute("aria-describedby", f["validation-message"]), Ur(o), X(o, f.inputerror));
|
|
1357
1359
|
}
|
|
1358
1360
|
function Rc() {
|
|
1359
1361
|
const t = q.domCache.get(this);
|
|
@@ -1371,7 +1373,7 @@ function Oc(t) {
|
|
|
1371
1373
|
"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."
|
|
1372
1374
|
);
|
|
1373
1375
|
const o = Ic(t), r = Object.assign({}, n, o);
|
|
1374
|
-
|
|
1376
|
+
jr(this, r), q.innerParams.set(this, r), Object.defineProperties(this, {
|
|
1375
1377
|
params: {
|
|
1376
1378
|
value: Object.assign({}, this.params, t),
|
|
1377
1379
|
writable: !1,
|
|
@@ -1382,7 +1384,7 @@ function Oc(t) {
|
|
|
1382
1384
|
const Ic = (t) => {
|
|
1383
1385
|
const e = {};
|
|
1384
1386
|
return Object.keys(t).forEach((n) => {
|
|
1385
|
-
|
|
1387
|
+
Lr(n) ? e[n] = t[n] : Ce(
|
|
1386
1388
|
`Invalid parameter to update: "${n}". Updatable params are listed here: https://github.com/sweetalert2/sweetalert2/blob/master/src/utils/params.js
|
|
1387
1389
|
|
|
1388
1390
|
If you think this parameter should be updatable, request it here: https://github.com/sweetalert2/sweetalert2/issues/new?template=02_feature_request.md`
|
|
@@ -1392,34 +1394,34 @@ If you think this parameter should be updatable, request it here: https://github
|
|
|
1392
1394
|
function Fc() {
|
|
1393
1395
|
const t = q.domCache.get(this), e = q.innerParams.get(this);
|
|
1394
1396
|
if (!e) {
|
|
1395
|
-
|
|
1397
|
+
Qr(this);
|
|
1396
1398
|
return;
|
|
1397
1399
|
}
|
|
1398
1400
|
t.popup && V.swalCloseEventFinishedCallback && (V.swalCloseEventFinishedCallback(), delete V.swalCloseEventFinishedCallback), V.deferDisposalTimer && (clearTimeout(V.deferDisposalTimer), delete V.deferDisposalTimer), typeof e.didDestroy == "function" && e.didDestroy(), Bc(this);
|
|
1399
1401
|
}
|
|
1400
1402
|
const Bc = (t) => {
|
|
1401
|
-
|
|
1402
|
-
},
|
|
1403
|
-
t.isAwaitingPromise() ? (In(q, t), q.awaitingPromise.set(t, !0)) : (In(
|
|
1403
|
+
Qr(t), delete t.params, delete V.keydownHandler, delete V.keydownTarget, delete V.currentInstance;
|
|
1404
|
+
}, Qr = (t) => {
|
|
1405
|
+
t.isAwaitingPromise() ? (In(q, t), q.awaitingPromise.set(t, !0)) : (In($t, t), In(q, t));
|
|
1404
1406
|
}, In = (t, e) => {
|
|
1405
1407
|
for (const n in t)
|
|
1406
1408
|
t[n].delete(e);
|
|
1407
|
-
},
|
|
1409
|
+
}, es = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1408
1410
|
__proto__: null,
|
|
1409
1411
|
_destroy: Fc,
|
|
1410
|
-
close:
|
|
1411
|
-
closeModal:
|
|
1412
|
-
closePopup:
|
|
1413
|
-
closeToast:
|
|
1412
|
+
close: Qt,
|
|
1413
|
+
closeModal: Qt,
|
|
1414
|
+
closePopup: Qt,
|
|
1415
|
+
closeToast: Qt,
|
|
1414
1416
|
disableButtons: _c,
|
|
1415
1417
|
disableInput: Tc,
|
|
1416
|
-
disableLoading:
|
|
1418
|
+
disableLoading: er,
|
|
1417
1419
|
enableButtons: Sc,
|
|
1418
1420
|
enableInput: Cc,
|
|
1419
1421
|
getInput: ac,
|
|
1420
1422
|
getProgressSteps: Lc,
|
|
1421
|
-
handleAwaitingPromise:
|
|
1422
|
-
hideLoading:
|
|
1423
|
+
handleAwaitingPromise: Kt,
|
|
1424
|
+
hideLoading: er,
|
|
1423
1425
|
isAwaitingPromise: wc,
|
|
1424
1426
|
rejectPromise: Ac,
|
|
1425
1427
|
resetValidationMessage: Rc,
|
|
@@ -1427,13 +1429,13 @@ const Bc = (t) => {
|
|
|
1427
1429
|
update: Oc
|
|
1428
1430
|
}, Symbol.toStringTag, { value: "Module" })), Nc = (t) => {
|
|
1429
1431
|
const e = q.innerParams.get(t);
|
|
1430
|
-
t.disableButtons(), e.input ?
|
|
1432
|
+
t.disableButtons(), e.input ? ts(t, "confirm") : wo(t, !0);
|
|
1431
1433
|
}, Uc = (t) => {
|
|
1432
1434
|
const e = q.innerParams.get(t);
|
|
1433
|
-
t.disableButtons(), e.returnInputValueOnDeny ?
|
|
1435
|
+
t.disableButtons(), e.returnInputValueOnDeny ? ts(t, "deny") : yo(t, !1);
|
|
1434
1436
|
}, Dc = (t, e) => {
|
|
1435
1437
|
t.disableButtons(), e(St.cancel);
|
|
1436
|
-
},
|
|
1438
|
+
}, ts = (t, e) => {
|
|
1437
1439
|
const n = q.innerParams.get(t);
|
|
1438
1440
|
if (!n.input)
|
|
1439
1441
|
return ut(
|
|
@@ -1444,28 +1446,28 @@ const Bc = (t) => {
|
|
|
1444
1446
|
}, Mc = (t, e, n) => {
|
|
1445
1447
|
const o = q.innerParams.get(t);
|
|
1446
1448
|
t.disableInput(), Promise.resolve().then(
|
|
1447
|
-
() =>
|
|
1449
|
+
() => jt(o.inputValidator(e, o.validationMessage))
|
|
1448
1450
|
).then((s) => {
|
|
1449
1451
|
t.enableButtons(), t.enableInput(), s ? t.showValidationMessage(s) : n === "deny" ? yo(t, e) : wo(t, e);
|
|
1450
1452
|
});
|
|
1451
1453
|
}, yo = (t, e) => {
|
|
1452
1454
|
const n = q.innerParams.get(t || globalThis);
|
|
1453
1455
|
n.showLoaderOnDeny && Et(tt()), n.preDeny ? (q.awaitingPromise.set(t || globalThis, !0), Promise.resolve().then(
|
|
1454
|
-
() =>
|
|
1456
|
+
() => jt(n.preDeny(e, n.validationMessage))
|
|
1455
1457
|
).then((r) => {
|
|
1456
|
-
r === !1 ? (t.hideLoading(),
|
|
1457
|
-
}).catch((r) =>
|
|
1458
|
-
},
|
|
1458
|
+
r === !1 ? (t.hideLoading(), Kt(t)) : t.closePopup({ isDenied: !0, value: typeof r > "u" ? e : r });
|
|
1459
|
+
}).catch((r) => ns(t || globalThis, r))) : t.closePopup({ isDenied: !0, value: e });
|
|
1460
|
+
}, nr = (t, e) => {
|
|
1459
1461
|
t.closePopup({ isConfirmed: !0, value: e });
|
|
1460
|
-
},
|
|
1462
|
+
}, ns = (t, e) => {
|
|
1461
1463
|
t.rejectPromise(e);
|
|
1462
1464
|
}, wo = (t, e) => {
|
|
1463
1465
|
const n = q.innerParams.get(t || globalThis);
|
|
1464
1466
|
n.showLoaderOnConfirm && Et(), n.preConfirm ? (t.resetValidationMessage(), q.awaitingPromise.set(t || globalThis, !0), Promise.resolve().then(
|
|
1465
|
-
() =>
|
|
1467
|
+
() => jt(n.preConfirm(e, n.validationMessage))
|
|
1466
1468
|
).then((r) => {
|
|
1467
|
-
Pe(mn()) || r === !1 ? (t.hideLoading(),
|
|
1468
|
-
}).catch((r) =>
|
|
1469
|
+
Pe(mn()) || r === !1 ? (t.hideLoading(), Kt(t)) : nr(t, typeof r > "u" ? e : r);
|
|
1470
|
+
}).catch((r) => ns(t || globalThis, r))) : nr(t, e);
|
|
1469
1471
|
}, $c = (t, e, n) => {
|
|
1470
1472
|
q.innerParams.get(t).toast ? Hc(t, e, n) : (zc(e), Vc(e), Wc(t, e, n));
|
|
1471
1473
|
}, Hc = (t, e, n) => {
|
|
@@ -1474,33 +1476,33 @@ const Bc = (t) => {
|
|
|
1474
1476
|
o && (jc(o) || o.timer || o.input) || n(St.close);
|
|
1475
1477
|
};
|
|
1476
1478
|
}, jc = (t) => t.showConfirmButton || t.showDenyButton || t.showCancelButton || t.showCloseButton;
|
|
1477
|
-
let
|
|
1479
|
+
let un = !1;
|
|
1478
1480
|
const zc = (t) => {
|
|
1479
1481
|
t.popup.onmousedown = () => {
|
|
1480
1482
|
t.container.onmouseup = function(e) {
|
|
1481
|
-
t.container.onmouseup = void 0, e.target === t.container && (
|
|
1483
|
+
t.container.onmouseup = void 0, e.target === t.container && (un = !0);
|
|
1482
1484
|
};
|
|
1483
1485
|
};
|
|
1484
1486
|
}, Vc = (t) => {
|
|
1485
1487
|
t.container.onmousedown = () => {
|
|
1486
1488
|
t.popup.onmouseup = function(e) {
|
|
1487
|
-
t.popup.onmouseup = void 0, (e.target === t.popup || t.popup.contains(e.target)) && (
|
|
1489
|
+
t.popup.onmouseup = void 0, (e.target === t.popup || t.popup.contains(e.target)) && (un = !0);
|
|
1488
1490
|
};
|
|
1489
1491
|
};
|
|
1490
1492
|
}, Wc = (t, e, n) => {
|
|
1491
1493
|
e.container.onclick = (o) => {
|
|
1492
1494
|
const r = q.innerParams.get(t);
|
|
1493
|
-
if (
|
|
1494
|
-
|
|
1495
|
+
if (un) {
|
|
1496
|
+
un = !1;
|
|
1495
1497
|
return;
|
|
1496
1498
|
}
|
|
1497
1499
|
o.target === e.container && pn(r.allowOutsideClick) && n(St.backdrop);
|
|
1498
1500
|
};
|
|
1499
|
-
}, qc = (t) => typeof t == "object" && t.jquery,
|
|
1501
|
+
}, qc = (t) => typeof t == "object" && t.jquery, or = (t) => t instanceof Element || qc(t), Kc = (t) => {
|
|
1500
1502
|
const e = {};
|
|
1501
|
-
return typeof t[0] == "object" && !
|
|
1503
|
+
return typeof t[0] == "object" && !or(t[0]) ? Object.assign(e, t[0]) : ["title", "html", "icon"].forEach((n, o) => {
|
|
1502
1504
|
const r = t[o];
|
|
1503
|
-
typeof r == "string" ||
|
|
1505
|
+
typeof r == "string" || or(r) ? e[n] = r : r !== void 0 && ut(`Unexpected type of ${n}! Expected "string" or "Element", got ${typeof r}`);
|
|
1504
1506
|
}), e;
|
|
1505
1507
|
};
|
|
1506
1508
|
function Gc(...t) {
|
|
@@ -1515,27 +1517,27 @@ function Jc(t) {
|
|
|
1515
1517
|
}
|
|
1516
1518
|
return e;
|
|
1517
1519
|
}
|
|
1518
|
-
const Yc = () => V.timeout && V.timeout.getTimerLeft(),
|
|
1520
|
+
const Yc = () => V.timeout && V.timeout.getTimerLeft(), os = () => {
|
|
1519
1521
|
if (V.timeout)
|
|
1520
1522
|
return Ui(), V.timeout.stop();
|
|
1521
|
-
},
|
|
1523
|
+
}, rs = () => {
|
|
1522
1524
|
if (V.timeout) {
|
|
1523
1525
|
const t = V.timeout.start();
|
|
1524
1526
|
return mo(t), t;
|
|
1525
1527
|
}
|
|
1526
1528
|
}, Xc = () => {
|
|
1527
1529
|
const t = V.timeout;
|
|
1528
|
-
return t && (t.running ?
|
|
1530
|
+
return t && (t.running ? os() : rs());
|
|
1529
1531
|
}, Zc = (t) => {
|
|
1530
1532
|
if (V.timeout) {
|
|
1531
1533
|
const e = V.timeout.increase(t);
|
|
1532
1534
|
return mo(e, !0), e;
|
|
1533
1535
|
}
|
|
1534
1536
|
}, Qc = () => V.timeout && V.timeout.isRunning();
|
|
1535
|
-
let
|
|
1537
|
+
let rr = !1;
|
|
1536
1538
|
const Jn = {};
|
|
1537
1539
|
function el(t = "data-swal-template") {
|
|
1538
|
-
Jn[t] = this,
|
|
1540
|
+
Jn[t] = this, rr || (document.body.addEventListener("click", tl), rr = !0);
|
|
1539
1541
|
}
|
|
1540
1542
|
const tl = (t) => {
|
|
1541
1543
|
for (let e = t.target; e && e !== document; e = e.parentNode)
|
|
@@ -1551,39 +1553,39 @@ const tl = (t) => {
|
|
|
1551
1553
|
argsToParams: Kc,
|
|
1552
1554
|
bindClickHandler: el,
|
|
1553
1555
|
clickCancel: uc,
|
|
1554
|
-
clickConfirm:
|
|
1556
|
+
clickConfirm: Kr,
|
|
1555
1557
|
clickDeny: lc,
|
|
1556
1558
|
enableLoading: Et,
|
|
1557
1559
|
fire: Gc,
|
|
1558
|
-
getActions:
|
|
1560
|
+
getActions: Wt,
|
|
1559
1561
|
getCancelButton: ct,
|
|
1560
1562
|
getCloseButton: uo,
|
|
1561
1563
|
getConfirmButton: Ue,
|
|
1562
1564
|
getContainer: me,
|
|
1563
1565
|
getDenyButton: tt,
|
|
1564
1566
|
getFocusableElements: fo,
|
|
1565
|
-
getFooter:
|
|
1566
|
-
getHtmlContainer:
|
|
1567
|
-
getIcon:
|
|
1568
|
-
getImage:
|
|
1567
|
+
getFooter: Nr,
|
|
1568
|
+
getHtmlContainer: ln,
|
|
1569
|
+
getIcon: Vt,
|
|
1570
|
+
getImage: Fr,
|
|
1569
1571
|
getInputLabel: Oi,
|
|
1570
1572
|
getLoader: xt,
|
|
1571
1573
|
getPopup: Z,
|
|
1572
1574
|
getTimerLeft: Yc,
|
|
1573
1575
|
getTimerProgressBar: gn,
|
|
1574
|
-
getTitle:
|
|
1576
|
+
getTitle: Ir,
|
|
1575
1577
|
getValidationMessage: mn,
|
|
1576
1578
|
increaseTimer: Zc,
|
|
1577
1579
|
isDeprecatedParameter: qn,
|
|
1578
1580
|
isLoading: Fi,
|
|
1579
1581
|
isTimerRunning: Qc,
|
|
1580
|
-
isUpdatableParameter:
|
|
1581
|
-
isValidParameter:
|
|
1582
|
+
isUpdatableParameter: Lr,
|
|
1583
|
+
isValidParameter: Rr,
|
|
1582
1584
|
isVisible: cc,
|
|
1583
1585
|
mixin: Jc,
|
|
1584
|
-
resumeTimer:
|
|
1586
|
+
resumeTimer: rs,
|
|
1585
1587
|
showLoading: Et,
|
|
1586
|
-
stopTimer:
|
|
1588
|
+
stopTimer: os,
|
|
1587
1589
|
toggleTimer: Xc
|
|
1588
1590
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
1589
1591
|
let Yn;
|
|
@@ -1605,11 +1607,11 @@ class _t {
|
|
|
1605
1607
|
q.promise.set(this, o);
|
|
1606
1608
|
}
|
|
1607
1609
|
_main(e, n = {}) {
|
|
1608
|
-
Ri(Object.assign({}, n, e)), V.currentInstance && (V.currentInstance._destroy(), ho() &&
|
|
1610
|
+
Ri(Object.assign({}, n, e)), V.currentInstance && (V.currentInstance._destroy(), ho() && zr()), V.currentInstance = this;
|
|
1609
1611
|
const o = rl(e, n);
|
|
1610
1612
|
Na(o), Object.freeze(o), V.timeout && (V.timeout.stop(), delete V.timeout), clearTimeout(V.restoreFocusTimeout);
|
|
1611
1613
|
const r = sl(this);
|
|
1612
|
-
return
|
|
1614
|
+
return jr(this, o), q.innerParams.set(this, o), ol(this, r, o);
|
|
1613
1615
|
}
|
|
1614
1616
|
// `catch` cannot be the name of a module export, so we define our thenable methods here instead
|
|
1615
1617
|
then(e) {
|
|
@@ -1623,7 +1625,7 @@ const ol = (t, e, n) => new Promise((o, r) => {
|
|
|
1623
1625
|
const s = (a) => {
|
|
1624
1626
|
t.closePopup({ isDismissed: !0, dismiss: a });
|
|
1625
1627
|
};
|
|
1626
|
-
|
|
1628
|
+
$t.swalPromiseResolve.set(t, o), $t.swalPromiseReject.set(t, r), e.confirmButton.onclick = () => Nc(t), e.denyButton.onclick = () => Uc(t), e.cancelButton.onclick = () => Dc(t, s), e.closeButton.onclick = () => s(St.close), $c(t, e, s), dc(t, V, n, s), Za(t, n), Ka(n), il(V, n, s), al(e, n), setTimeout(() => {
|
|
1627
1629
|
e.container.scrollTop = 0;
|
|
1628
1630
|
});
|
|
1629
1631
|
}), rl = (t, e) => {
|
|
@@ -1633,14 +1635,14 @@ const ol = (t, e, n) => new Promise((o, r) => {
|
|
|
1633
1635
|
const e = {
|
|
1634
1636
|
popup: Z(),
|
|
1635
1637
|
container: me(),
|
|
1636
|
-
actions:
|
|
1638
|
+
actions: Wt(),
|
|
1637
1639
|
confirmButton: Ue(),
|
|
1638
1640
|
denyButton: tt(),
|
|
1639
1641
|
cancelButton: ct(),
|
|
1640
1642
|
loader: xt(),
|
|
1641
1643
|
closeButton: uo(),
|
|
1642
1644
|
validationMessage: mn(),
|
|
1643
|
-
progressSteps:
|
|
1645
|
+
progressSteps: Br()
|
|
1644
1646
|
};
|
|
1645
1647
|
return q.domCache.set(t, e), e;
|
|
1646
1648
|
}, il = (t, e, n) => {
|
|
@@ -1659,9 +1661,9 @@ const ol = (t, e, n) => new Promise((o, r) => {
|
|
|
1659
1661
|
}, cl = (t, e) => e.focusDeny && Pe(t.denyButton) ? (t.denyButton.focus(), !0) : e.focusCancel && Pe(t.cancelButton) ? (t.cancelButton.focus(), !0) : e.focusConfirm && Pe(t.confirmButton) ? (t.confirmButton.focus(), !0) : !1, ll = () => {
|
|
1660
1662
|
document.activeElement instanceof HTMLElement && typeof document.activeElement.blur == "function" && document.activeElement.blur();
|
|
1661
1663
|
};
|
|
1662
|
-
Object.assign(_t.prototype,
|
|
1664
|
+
Object.assign(_t.prototype, es);
|
|
1663
1665
|
Object.assign(_t, nl);
|
|
1664
|
-
Object.keys(
|
|
1666
|
+
Object.keys(es).forEach((t) => {
|
|
1665
1667
|
_t[t] = function(...e) {
|
|
1666
1668
|
if (Yn)
|
|
1667
1669
|
return Yn[t](...e);
|
|
@@ -1673,16 +1675,16 @@ const At = _t;
|
|
|
1673
1675
|
At.default = At;
|
|
1674
1676
|
/*! @license DOMPurify 3.0.6 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.0.6/LICENSE */
|
|
1675
1677
|
const {
|
|
1676
|
-
entries:
|
|
1677
|
-
setPrototypeOf:
|
|
1678
|
+
entries: ss,
|
|
1679
|
+
setPrototypeOf: sr,
|
|
1678
1680
|
isFrozen: ul,
|
|
1679
1681
|
getPrototypeOf: dl,
|
|
1680
|
-
getOwnPropertyDescriptor:
|
|
1682
|
+
getOwnPropertyDescriptor: is
|
|
1681
1683
|
} = Object;
|
|
1682
1684
|
let {
|
|
1683
1685
|
freeze: Ae,
|
|
1684
1686
|
seal: De,
|
|
1685
|
-
create:
|
|
1687
|
+
create: as
|
|
1686
1688
|
} = Object, {
|
|
1687
1689
|
apply: Xn,
|
|
1688
1690
|
construct: Zn
|
|
@@ -1699,7 +1701,7 @@ Xn || (Xn = function(e, n, o) {
|
|
|
1699
1701
|
Zn || (Zn = function(e, n) {
|
|
1700
1702
|
return new e(...n);
|
|
1701
1703
|
});
|
|
1702
|
-
const
|
|
1704
|
+
const en = Be(Array.prototype.forEach), ir = Be(Array.prototype.pop), Rt = Be(Array.prototype.push), on = Be(String.prototype.toLowerCase), Fn = Be(String.prototype.toString), fl = Be(String.prototype.match), Lt = Be(String.prototype.replace), hl = Be(String.prototype.indexOf), pl = Be(String.prototype.trim), Te = Be(RegExp.prototype.test), Ot = ml(TypeError);
|
|
1703
1705
|
function Be(t) {
|
|
1704
1706
|
return function(e) {
|
|
1705
1707
|
for (var n = arguments.length, o = new Array(n > 1 ? n - 1 : 0), r = 1; r < n; r++)
|
|
@@ -1715,8 +1717,8 @@ function ml(t) {
|
|
|
1715
1717
|
};
|
|
1716
1718
|
}
|
|
1717
1719
|
function W(t, e) {
|
|
1718
|
-
let n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] :
|
|
1719
|
-
|
|
1720
|
+
let n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : on;
|
|
1721
|
+
sr && sr(t, null);
|
|
1720
1722
|
let o = e.length;
|
|
1721
1723
|
for (; o--; ) {
|
|
1722
1724
|
let r = e[o];
|
|
@@ -1729,14 +1731,14 @@ function W(t, e) {
|
|
|
1729
1731
|
return t;
|
|
1730
1732
|
}
|
|
1731
1733
|
function mt(t) {
|
|
1732
|
-
const e =
|
|
1733
|
-
for (const [n, o] of
|
|
1734
|
-
|
|
1734
|
+
const e = as(null);
|
|
1735
|
+
for (const [n, o] of ss(t))
|
|
1736
|
+
is(t, n) !== void 0 && (e[n] = o);
|
|
1735
1737
|
return e;
|
|
1736
1738
|
}
|
|
1737
|
-
function
|
|
1739
|
+
function tn(t, e) {
|
|
1738
1740
|
for (; t !== null; ) {
|
|
1739
|
-
const o =
|
|
1741
|
+
const o = is(t, e);
|
|
1740
1742
|
if (o) {
|
|
1741
1743
|
if (o.get)
|
|
1742
1744
|
return Be(o.get);
|
|
@@ -1750,24 +1752,24 @@ function en(t, e) {
|
|
|
1750
1752
|
}
|
|
1751
1753
|
return n;
|
|
1752
1754
|
}
|
|
1753
|
-
const
|
|
1755
|
+
const ar = Ae(["a", "abbr", "acronym", "address", "area", "article", "aside", "audio", "b", "bdi", "bdo", "big", "blink", "blockquote", "body", "br", "button", "canvas", "caption", "center", "cite", "code", "col", "colgroup", "content", "data", "datalist", "dd", "decorator", "del", "details", "dfn", "dialog", "dir", "div", "dl", "dt", "element", "em", "fieldset", "figcaption", "figure", "font", "footer", "form", "h1", "h2", "h3", "h4", "h5", "h6", "head", "header", "hgroup", "hr", "html", "i", "img", "input", "ins", "kbd", "label", "legend", "li", "main", "map", "mark", "marquee", "menu", "menuitem", "meter", "nav", "nobr", "ol", "optgroup", "option", "output", "p", "picture", "pre", "progress", "q", "rp", "rt", "ruby", "s", "samp", "section", "select", "shadow", "small", "source", "spacer", "span", "strike", "strong", "style", "sub", "summary", "sup", "table", "tbody", "td", "template", "textarea", "tfoot", "th", "thead", "time", "tr", "track", "tt", "u", "ul", "var", "video", "wbr"]), Bn = Ae(["svg", "a", "altglyph", "altglyphdef", "altglyphitem", "animatecolor", "animatemotion", "animatetransform", "circle", "clippath", "defs", "desc", "ellipse", "filter", "font", "g", "glyph", "glyphref", "hkern", "image", "line", "lineargradient", "marker", "mask", "metadata", "mpath", "path", "pattern", "polygon", "polyline", "radialgradient", "rect", "stop", "style", "switch", "symbol", "text", "textpath", "title", "tref", "tspan", "view", "vkern"]), Nn = Ae(["feBlend", "feColorMatrix", "feComponentTransfer", "feComposite", "feConvolveMatrix", "feDiffuseLighting", "feDisplacementMap", "feDistantLight", "feDropShadow", "feFlood", "feFuncA", "feFuncB", "feFuncG", "feFuncR", "feGaussianBlur", "feImage", "feMerge", "feMergeNode", "feMorphology", "feOffset", "fePointLight", "feSpecularLighting", "feSpotLight", "feTile", "feTurbulence"]), gl = Ae(["animate", "color-profile", "cursor", "discard", "font-face", "font-face-format", "font-face-name", "font-face-src", "font-face-uri", "foreignobject", "hatch", "hatchpath", "mesh", "meshgradient", "meshpatch", "meshrow", "missing-glyph", "script", "set", "solidcolor", "unknown", "use"]), Un = Ae(["math", "menclose", "merror", "mfenced", "mfrac", "mglyph", "mi", "mlabeledtr", "mmultiscripts", "mn", "mo", "mover", "mpadded", "mphantom", "mroot", "mrow", "ms", "mspace", "msqrt", "mstyle", "msub", "msup", "msubsup", "mtable", "mtd", "mtext", "mtr", "munder", "munderover", "mprescripts"]), bl = Ae(["maction", "maligngroup", "malignmark", "mlongdiv", "mscarries", "mscarry", "msgroup", "mstack", "msline", "msrow", "semantics", "annotation", "annotation-xml", "mprescripts", "none"]), cr = Ae(["#text"]), lr = Ae(["accept", "action", "align", "alt", "autocapitalize", "autocomplete", "autopictureinpicture", "autoplay", "background", "bgcolor", "border", "capture", "cellpadding", "cellspacing", "checked", "cite", "class", "clear", "color", "cols", "colspan", "controls", "controlslist", "coords", "crossorigin", "datetime", "decoding", "default", "dir", "disabled", "disablepictureinpicture", "disableremoteplayback", "download", "draggable", "enctype", "enterkeyhint", "face", "for", "headers", "height", "hidden", "high", "href", "hreflang", "id", "inputmode", "integrity", "ismap", "kind", "label", "lang", "list", "loading", "loop", "low", "max", "maxlength", "media", "method", "min", "minlength", "multiple", "muted", "name", "nonce", "noshade", "novalidate", "nowrap", "open", "optimum", "pattern", "placeholder", "playsinline", "poster", "preload", "pubdate", "radiogroup", "readonly", "rel", "required", "rev", "reversed", "role", "rows", "rowspan", "spellcheck", "scope", "selected", "shape", "size", "sizes", "span", "srclang", "start", "src", "srcset", "step", "style", "summary", "tabindex", "title", "translate", "type", "usemap", "valign", "value", "width", "xmlns", "slot"]), Dn = Ae(["accent-height", "accumulate", "additive", "alignment-baseline", "ascent", "attributename", "attributetype", "azimuth", "basefrequency", "baseline-shift", "begin", "bias", "by", "class", "clip", "clippathunits", "clip-path", "clip-rule", "color", "color-interpolation", "color-interpolation-filters", "color-profile", "color-rendering", "cx", "cy", "d", "dx", "dy", "diffuseconstant", "direction", "display", "divisor", "dur", "edgemode", "elevation", "end", "fill", "fill-opacity", "fill-rule", "filter", "filterunits", "flood-color", "flood-opacity", "font-family", "font-size", "font-size-adjust", "font-stretch", "font-style", "font-variant", "font-weight", "fx", "fy", "g1", "g2", "glyph-name", "glyphref", "gradientunits", "gradienttransform", "height", "href", "id", "image-rendering", "in", "in2", "k", "k1", "k2", "k3", "k4", "kerning", "keypoints", "keysplines", "keytimes", "lang", "lengthadjust", "letter-spacing", "kernelmatrix", "kernelunitlength", "lighting-color", "local", "marker-end", "marker-mid", "marker-start", "markerheight", "markerunits", "markerwidth", "maskcontentunits", "maskunits", "max", "mask", "media", "method", "mode", "min", "name", "numoctaves", "offset", "operator", "opacity", "order", "orient", "orientation", "origin", "overflow", "paint-order", "path", "pathlength", "patterncontentunits", "patterntransform", "patternunits", "points", "preservealpha", "preserveaspectratio", "primitiveunits", "r", "rx", "ry", "radius", "refx", "refy", "repeatcount", "repeatdur", "restart", "result", "rotate", "scale", "seed", "shape-rendering", "specularconstant", "specularexponent", "spreadmethod", "startoffset", "stddeviation", "stitchtiles", "stop-color", "stop-opacity", "stroke-dasharray", "stroke-dashoffset", "stroke-linecap", "stroke-linejoin", "stroke-miterlimit", "stroke-opacity", "stroke", "stroke-width", "style", "surfacescale", "systemlanguage", "tabindex", "targetx", "targety", "transform", "transform-origin", "text-anchor", "text-decoration", "text-rendering", "textlength", "type", "u1", "u2", "unicode", "values", "viewbox", "visibility", "version", "vert-adv-y", "vert-origin-x", "vert-origin-y", "width", "word-spacing", "wrap", "writing-mode", "xchannelselector", "ychannelselector", "x", "x1", "x2", "xmlns", "y", "y1", "y2", "z", "zoomandpan"]), ur = Ae(["accent", "accentunder", "align", "bevelled", "close", "columnsalign", "columnlines", "columnspan", "denomalign", "depth", "dir", "display", "displaystyle", "encoding", "fence", "frame", "height", "href", "id", "largeop", "length", "linethickness", "lspace", "lquote", "mathbackground", "mathcolor", "mathsize", "mathvariant", "maxsize", "minsize", "movablelimits", "notation", "numalign", "open", "rowalign", "rowlines", "rowspacing", "rowspan", "rspace", "rquote", "scriptlevel", "scriptminsize", "scriptsizemultiplier", "selection", "separator", "separators", "stretchy", "subscriptshift", "supscriptshift", "symmetric", "voffset", "width", "xmlns"]), nn = Ae(["xlink:href", "xml:id", "xlink:title", "xml:space", "xmlns:xlink"]), yl = De(/\{\{[\w\W]*|[\w\W]*\}\}/gm), wl = De(/<%[\w\W]*|[\w\W]*%>/gm), vl = De(/\${[\w\W]*}/gm), Al = De(/^data-[\-\w.\u00B7-\uFFFF]/), El = De(/^aria-[\-\w]+$/), cs = De(
|
|
1754
1756
|
/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i
|
|
1755
1757
|
// eslint-disable-line no-useless-escape
|
|
1756
1758
|
), kl = De(/^(?:\w+script|data):/i), xl = De(
|
|
1757
1759
|
/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g
|
|
1758
1760
|
// eslint-disable-line no-control-regex
|
|
1759
|
-
),
|
|
1760
|
-
var
|
|
1761
|
+
), ls = De(/^html$/i);
|
|
1762
|
+
var dr = /* @__PURE__ */ Object.freeze({
|
|
1761
1763
|
__proto__: null,
|
|
1762
1764
|
MUSTACHE_EXPR: yl,
|
|
1763
1765
|
ERB_EXPR: wl,
|
|
1764
1766
|
TMPLIT_EXPR: vl,
|
|
1765
1767
|
DATA_ATTR: Al,
|
|
1766
1768
|
ARIA_ATTR: El,
|
|
1767
|
-
IS_ALLOWED_URI:
|
|
1769
|
+
IS_ALLOWED_URI: cs,
|
|
1768
1770
|
IS_SCRIPT_OR_DATA: kl,
|
|
1769
1771
|
ATTR_WHITESPACE: xl,
|
|
1770
|
-
DOCTYPE_NAME:
|
|
1772
|
+
DOCTYPE_NAME: ls
|
|
1771
1773
|
});
|
|
1772
1774
|
const Sl = function() {
|
|
1773
1775
|
return typeof window > "u" ? null : window;
|
|
@@ -1791,9 +1793,9 @@ const Sl = function() {
|
|
|
1791
1793
|
return console.warn("TrustedTypes policy " + s + " could not be created."), null;
|
|
1792
1794
|
}
|
|
1793
1795
|
};
|
|
1794
|
-
function
|
|
1796
|
+
function us() {
|
|
1795
1797
|
let t = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : Sl();
|
|
1796
|
-
const e = (B) =>
|
|
1798
|
+
const e = (B) => us(B);
|
|
1797
1799
|
if (e.version = "3.0.6", e.removed = [], !t || !t.document || t.document.nodeType !== 9)
|
|
1798
1800
|
return e.isSupported = !1, e;
|
|
1799
1801
|
let {
|
|
@@ -1809,7 +1811,7 @@ function ls() {
|
|
|
1809
1811
|
HTMLFormElement: b,
|
|
1810
1812
|
DOMParser: G,
|
|
1811
1813
|
trustedTypes: D
|
|
1812
|
-
} = t, I = l.prototype, F =
|
|
1814
|
+
} = t, I = l.prototype, F = tn(I, "cloneNode"), M = tn(I, "nextSibling"), Q = tn(I, "childNodes"), ne = tn(I, "parentNode");
|
|
1813
1815
|
if (typeof a == "function") {
|
|
1814
1816
|
const B = n.createElement("template");
|
|
1815
1817
|
B.content && B.content.ownerDocument && (n = B.content.ownerDocument);
|
|
@@ -1824,7 +1826,7 @@ function ls() {
|
|
|
1824
1826
|
importNode: T
|
|
1825
1827
|
} = o;
|
|
1826
1828
|
let _ = {};
|
|
1827
|
-
e.isSupported = typeof
|
|
1829
|
+
e.isSupported = typeof ss == "function" && typeof ne == "function" && ae && ae.createHTMLDocument !== void 0;
|
|
1828
1830
|
const {
|
|
1829
1831
|
MUSTACHE_EXPR: S,
|
|
1830
1832
|
ERB_EXPR: j,
|
|
@@ -1833,14 +1835,14 @@ function ls() {
|
|
|
1833
1835
|
ARIA_ATTR: ee,
|
|
1834
1836
|
IS_SCRIPT_OR_DATA: ie,
|
|
1835
1837
|
ATTR_WHITESPACE: re
|
|
1836
|
-
} =
|
|
1838
|
+
} = dr;
|
|
1837
1839
|
let {
|
|
1838
1840
|
IS_ALLOWED_URI: ye
|
|
1839
|
-
} =
|
|
1840
|
-
const Ee = W({}, [...
|
|
1841
|
+
} = dr, U = null;
|
|
1842
|
+
const Ee = W({}, [...ar, ...Bn, ...Nn, ...Un, ...cr]);
|
|
1841
1843
|
let i = null;
|
|
1842
|
-
const u = W({}, [...
|
|
1843
|
-
let p = Object.seal(
|
|
1844
|
+
const u = W({}, [...lr, ...Dn, ...ur, ...nn]);
|
|
1845
|
+
let p = Object.seal(as(null, {
|
|
1844
1846
|
tagNameCheck: {
|
|
1845
1847
|
writable: !0,
|
|
1846
1848
|
configurable: !1,
|
|
@@ -1860,25 +1862,25 @@ function ls() {
|
|
|
1860
1862
|
value: !1
|
|
1861
1863
|
}
|
|
1862
1864
|
})), E = null, g = null, P = !0, A = !0, k = !1, L = !0, R = !1, $ = !1, K = !1, ke = !1, we = !1, le = !1, Me = !1, _o = !0, Co = !1;
|
|
1863
|
-
const
|
|
1865
|
+
const Bs = "user-content-";
|
|
1864
1866
|
let Sn = !0, Tt = !1, dt = {}, ft = null;
|
|
1865
1867
|
const To = W({}, ["annotation-xml", "audio", "colgroup", "desc", "foreignobject", "head", "iframe", "math", "mi", "mn", "mo", "ms", "mtext", "noembed", "noframes", "noscript", "plaintext", "script", "style", "svg", "template", "thead", "title", "video", "xmp"]);
|
|
1866
1868
|
let Po = null;
|
|
1867
1869
|
const Ro = W({}, ["audio", "video", "img", "source", "image", "track"]);
|
|
1868
1870
|
let _n = null;
|
|
1869
|
-
const Lo = W({}, ["alt", "class", "for", "id", "label", "name", "pattern", "placeholder", "role", "summary", "title", "value", "style", "xmlns"]),
|
|
1871
|
+
const Lo = W({}, ["alt", "class", "for", "id", "label", "name", "pattern", "placeholder", "role", "summary", "title", "value", "style", "xmlns"]), Yt = "http://www.w3.org/1998/Math/MathML", Xt = "http://www.w3.org/2000/svg", Ke = "http://www.w3.org/1999/xhtml";
|
|
1870
1872
|
let ht = Ke, Cn = !1, Tn = null;
|
|
1871
|
-
const
|
|
1873
|
+
const Ns = W({}, [Yt, Xt, Ke], Fn);
|
|
1872
1874
|
let nt = null;
|
|
1873
|
-
const
|
|
1875
|
+
const Us = ["application/xhtml+xml", "text/html"], Ds = "text/html";
|
|
1874
1876
|
let ce = null, pt = null;
|
|
1875
|
-
const
|
|
1877
|
+
const Ms = n.createElement("form"), Oo = function(c) {
|
|
1876
1878
|
return c instanceof RegExp || c instanceof Function;
|
|
1877
1879
|
}, Pn = function() {
|
|
1878
1880
|
let c = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
1879
1881
|
if (!(pt && pt === c)) {
|
|
1880
1882
|
if ((!c || typeof c != "object") && (c = {}), c = mt(c), nt = // eslint-disable-next-line unicorn/prefer-includes
|
|
1881
|
-
|
|
1883
|
+
Us.indexOf(c.PARSER_MEDIA_TYPE) === -1 ? nt = Ds : nt = c.PARSER_MEDIA_TYPE, ce = nt === "application/xhtml+xml" ? Fn : on, U = "ALLOWED_TAGS" in c ? W({}, c.ALLOWED_TAGS, ce) : Ee, i = "ALLOWED_ATTR" in c ? W({}, c.ALLOWED_ATTR, ce) : u, Tn = "ALLOWED_NAMESPACES" in c ? W({}, c.ALLOWED_NAMESPACES, Fn) : Ns, _n = "ADD_URI_SAFE_ATTR" in c ? W(
|
|
1882
1884
|
mt(Lo),
|
|
1883
1885
|
// eslint-disable-line indent
|
|
1884
1886
|
c.ADD_URI_SAFE_ATTR,
|
|
@@ -1892,7 +1894,7 @@ function ls() {
|
|
|
1892
1894
|
// eslint-disable-line indent
|
|
1893
1895
|
ce
|
|
1894
1896
|
// eslint-disable-line indent
|
|
1895
|
-
) : Ro, ft = "FORBID_CONTENTS" in c ? W({}, c.FORBID_CONTENTS, ce) : To, E = "FORBID_TAGS" in c ? W({}, c.FORBID_TAGS, ce) : {}, g = "FORBID_ATTR" in c ? W({}, c.FORBID_ATTR, ce) : {}, dt = "USE_PROFILES" in c ? c.USE_PROFILES : !1, P = c.ALLOW_ARIA_ATTR !== !1, A = c.ALLOW_DATA_ATTR !== !1, k = c.ALLOW_UNKNOWN_PROTOCOLS || !1, L = c.ALLOW_SELF_CLOSE_IN_ATTR !== !1, R = c.SAFE_FOR_TEMPLATES || !1, $ = c.WHOLE_DOCUMENT || !1, we = c.RETURN_DOM || !1, le = c.RETURN_DOM_FRAGMENT || !1, Me = c.RETURN_TRUSTED_TYPE || !1, ke = c.FORCE_BODY || !1, _o = c.SANITIZE_DOM !== !1, Co = c.SANITIZE_NAMED_PROPS || !1, Sn = c.KEEP_CONTENT !== !1, Tt = c.IN_PLACE || !1, ye = c.ALLOWED_URI_REGEXP ||
|
|
1897
|
+
) : Ro, ft = "FORBID_CONTENTS" in c ? W({}, c.FORBID_CONTENTS, ce) : To, E = "FORBID_TAGS" in c ? W({}, c.FORBID_TAGS, ce) : {}, g = "FORBID_ATTR" in c ? W({}, c.FORBID_ATTR, ce) : {}, dt = "USE_PROFILES" in c ? c.USE_PROFILES : !1, P = c.ALLOW_ARIA_ATTR !== !1, A = c.ALLOW_DATA_ATTR !== !1, k = c.ALLOW_UNKNOWN_PROTOCOLS || !1, L = c.ALLOW_SELF_CLOSE_IN_ATTR !== !1, R = c.SAFE_FOR_TEMPLATES || !1, $ = c.WHOLE_DOCUMENT || !1, we = c.RETURN_DOM || !1, le = c.RETURN_DOM_FRAGMENT || !1, Me = c.RETURN_TRUSTED_TYPE || !1, ke = c.FORCE_BODY || !1, _o = c.SANITIZE_DOM !== !1, Co = c.SANITIZE_NAMED_PROPS || !1, Sn = c.KEEP_CONTENT !== !1, Tt = c.IN_PLACE || !1, ye = c.ALLOWED_URI_REGEXP || cs, ht = c.NAMESPACE || Ke, p = c.CUSTOM_ELEMENT_HANDLING || {}, c.CUSTOM_ELEMENT_HANDLING && Oo(c.CUSTOM_ELEMENT_HANDLING.tagNameCheck) && (p.tagNameCheck = c.CUSTOM_ELEMENT_HANDLING.tagNameCheck), c.CUSTOM_ELEMENT_HANDLING && Oo(c.CUSTOM_ELEMENT_HANDLING.attributeNameCheck) && (p.attributeNameCheck = c.CUSTOM_ELEMENT_HANDLING.attributeNameCheck), c.CUSTOM_ELEMENT_HANDLING && typeof c.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements == "boolean" && (p.allowCustomizedBuiltInElements = c.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements), R && (A = !1), le && (we = !0), dt && (U = W({}, [...cr]), i = [], dt.html === !0 && (W(U, ar), W(i, lr)), dt.svg === !0 && (W(U, Bn), W(i, Dn), W(i, nn)), dt.svgFilters === !0 && (W(U, Nn), W(i, Dn), W(i, nn)), dt.mathMl === !0 && (W(U, Un), W(i, ur), W(i, nn))), c.ADD_TAGS && (U === Ee && (U = mt(U)), W(U, c.ADD_TAGS, ce)), c.ADD_ATTR && (i === u && (i = mt(i)), W(i, c.ADD_ATTR, ce)), c.ADD_URI_SAFE_ATTR && W(_n, c.ADD_URI_SAFE_ATTR, ce), c.FORBID_CONTENTS && (ft === To && (ft = mt(ft)), W(ft, c.FORBID_CONTENTS, ce)), Sn && (U["#text"] = !0), $ && W(U, ["html", "head", "body"]), U.table && (W(U, ["tbody"]), delete E.tbody), c.TRUSTED_TYPES_POLICY) {
|
|
1896
1898
|
if (typeof c.TRUSTED_TYPES_POLICY.createHTML != "function")
|
|
1897
1899
|
throw Ot('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');
|
|
1898
1900
|
if (typeof c.TRUSTED_TYPES_POLICY.createScriptURL != "function")
|
|
@@ -1902,18 +1904,18 @@ function ls() {
|
|
|
1902
1904
|
H === void 0 && (H = _l(D, r)), H !== null && typeof be == "string" && (be = H.createHTML(""));
|
|
1903
1905
|
Ae && Ae(c), pt = c;
|
|
1904
1906
|
}
|
|
1905
|
-
}, Io = W({}, ["mi", "mo", "mn", "ms", "mtext"]), Fo = W({}, ["foreignobject", "desc", "title", "annotation-xml"]),
|
|
1906
|
-
W(
|
|
1907
|
+
}, Io = W({}, ["mi", "mo", "mn", "ms", "mtext"]), Fo = W({}, ["foreignobject", "desc", "title", "annotation-xml"]), $s = W({}, ["title", "style", "font", "a", "script"]), Zt = W({}, Bn);
|
|
1908
|
+
W(Zt, Nn), W(Zt, gl);
|
|
1907
1909
|
const Rn = W({}, Un);
|
|
1908
1910
|
W(Rn, bl);
|
|
1909
|
-
const
|
|
1911
|
+
const Hs = function(c) {
|
|
1910
1912
|
let x = ne(c);
|
|
1911
1913
|
(!x || !x.tagName) && (x = {
|
|
1912
1914
|
namespaceURI: ht,
|
|
1913
1915
|
tagName: "template"
|
|
1914
1916
|
});
|
|
1915
|
-
const O =
|
|
1916
|
-
return Tn[c.namespaceURI] ? c.namespaceURI ===
|
|
1917
|
+
const O = on(c.tagName), te = on(x.tagName);
|
|
1918
|
+
return Tn[c.namespaceURI] ? c.namespaceURI === Xt ? x.namespaceURI === Ke ? O === "svg" : x.namespaceURI === Yt ? O === "svg" && (te === "annotation-xml" || Io[te]) : !!Zt[O] : c.namespaceURI === Yt ? x.namespaceURI === Ke ? O === "math" : x.namespaceURI === Xt ? O === "math" && Fo[te] : !!Rn[O] : c.namespaceURI === Ke ? x.namespaceURI === Xt && !Fo[te] || x.namespaceURI === Yt && !Io[te] ? !1 : !Rn[O] && ($s[O] || !Zt[O]) : !!(nt === "application/xhtml+xml" && Tn[c.namespaceURI]) : !1;
|
|
1917
1919
|
}, ot = function(c) {
|
|
1918
1920
|
Rt(e.removed, {
|
|
1919
1921
|
element: c
|
|
@@ -1978,17 +1980,17 @@ function ls() {
|
|
|
1978
1980
|
y.SHOW_ELEMENT | y.SHOW_COMMENT | y.SHOW_TEXT,
|
|
1979
1981
|
null
|
|
1980
1982
|
);
|
|
1981
|
-
},
|
|
1983
|
+
}, js = function(c) {
|
|
1982
1984
|
return c instanceof b && (typeof c.nodeName != "string" || typeof c.textContent != "string" || typeof c.removeChild != "function" || !(c.attributes instanceof w) || typeof c.removeAttribute != "function" || typeof c.setAttribute != "function" || typeof c.namespaceURI != "string" || typeof c.insertBefore != "function" || typeof c.hasChildNodes != "function");
|
|
1983
1985
|
}, Uo = function(c) {
|
|
1984
1986
|
return typeof d == "function" && c instanceof d;
|
|
1985
1987
|
}, Ge = function(c, x, O) {
|
|
1986
|
-
_[c] &&
|
|
1988
|
+
_[c] && en(_[c], (te) => {
|
|
1987
1989
|
te.call(e, x, O, pt);
|
|
1988
1990
|
});
|
|
1989
1991
|
}, Do = function(c) {
|
|
1990
1992
|
let x = null;
|
|
1991
|
-
if (Ge("beforeSanitizeElements", c, null),
|
|
1993
|
+
if (Ge("beforeSanitizeElements", c, null), js(c))
|
|
1992
1994
|
return ot(c), !0;
|
|
1993
1995
|
const O = ce(c.nodeName);
|
|
1994
1996
|
if (Ge("uponSanitizeElement", c, {
|
|
@@ -2009,13 +2011,13 @@ function ls() {
|
|
|
2009
2011
|
}
|
|
2010
2012
|
return ot(c), !0;
|
|
2011
2013
|
}
|
|
2012
|
-
return c instanceof l &&
|
|
2014
|
+
return c instanceof l && !Hs(c) || (O === "noscript" || O === "noembed" || O === "noframes") && Te(/<\/no(script|embed|frames)/i, c.innerHTML) ? (ot(c), !0) : (R && c.nodeType === 3 && (x = c.textContent, en([S, j, v], (te) => {
|
|
2013
2015
|
x = Lt(x, te, " ");
|
|
2014
2016
|
}), c.textContent !== x && (Rt(e.removed, {
|
|
2015
2017
|
element: c.cloneNode()
|
|
2016
2018
|
}), c.textContent = x)), Ge("afterSanitizeElements", c, null), !1);
|
|
2017
2019
|
}, Mo = function(c, x, O) {
|
|
2018
|
-
if (_o && (x === "id" || x === "name") && (O in n || O in
|
|
2020
|
+
if (_o && (x === "id" || x === "name") && (O in n || O in Ms))
|
|
2019
2021
|
return !1;
|
|
2020
2022
|
if (!(A && !g[x] && Te(z, x))) {
|
|
2021
2023
|
if (!(P && Te(ee, x))) {
|
|
@@ -2071,12 +2073,12 @@ function ls() {
|
|
|
2071
2073
|
Ln(fe, c);
|
|
2072
2074
|
continue;
|
|
2073
2075
|
}
|
|
2074
|
-
R &&
|
|
2076
|
+
R && en([S, j, v], (zo) => {
|
|
2075
2077
|
Se = Lt(Se, zo, " ");
|
|
2076
2078
|
});
|
|
2077
2079
|
const jo = ce(c.nodeName);
|
|
2078
2080
|
if (Mo(jo, Pt, Se)) {
|
|
2079
|
-
if (Co && (Pt === "id" || Pt === "name") && (Ln(fe, c), Se =
|
|
2081
|
+
if (Co && (Pt === "id" || Pt === "name") && (Ln(fe, c), Se = Bs + Se), H && typeof D == "object" && typeof D.getAttributeType == "function" && !xe)
|
|
2080
2082
|
switch (D.getAttributeType(jo, Pt)) {
|
|
2081
2083
|
case "TrustedHTML": {
|
|
2082
2084
|
Se = H.createHTML(Se);
|
|
@@ -2088,13 +2090,13 @@ function ls() {
|
|
|
2088
2090
|
}
|
|
2089
2091
|
}
|
|
2090
2092
|
try {
|
|
2091
|
-
xe ? c.setAttributeNS(xe, fe, Se) : c.setAttribute(fe, Se),
|
|
2093
|
+
xe ? c.setAttributeNS(xe, fe, Se) : c.setAttribute(fe, Se), ir(e.removed);
|
|
2092
2094
|
} catch {
|
|
2093
2095
|
}
|
|
2094
2096
|
}
|
|
2095
2097
|
}
|
|
2096
2098
|
Ge("afterSanitizeAttributes", c, null);
|
|
2097
|
-
},
|
|
2099
|
+
}, zs = function B(c) {
|
|
2098
2100
|
let x = null;
|
|
2099
2101
|
const O = No(c);
|
|
2100
2102
|
for (Ge("beforeSanitizeShadowDOM", c, null); x = O.nextNode(); )
|
|
@@ -2129,7 +2131,7 @@ function ls() {
|
|
|
2129
2131
|
x && ke && ot(x.firstChild);
|
|
2130
2132
|
const fe = No(Tt ? B : x);
|
|
2131
2133
|
for (; te = fe.nextNode(); )
|
|
2132
|
-
Do(te) || (te.content instanceof s &&
|
|
2134
|
+
Do(te) || (te.content instanceof s && zs(te.content), Ho(te));
|
|
2133
2135
|
if (Tt)
|
|
2134
2136
|
return B;
|
|
2135
2137
|
if (we) {
|
|
@@ -2141,8 +2143,8 @@ function ls() {
|
|
|
2141
2143
|
return (i.shadowroot || i.shadowrootmode) && (de = T.call(o, de, !0)), de;
|
|
2142
2144
|
}
|
|
2143
2145
|
let xe = $ ? x.outerHTML : x.innerHTML;
|
|
2144
|
-
return $ && U["!doctype"] && x.ownerDocument && x.ownerDocument.doctype && x.ownerDocument.doctype.name && Te(
|
|
2145
|
-
` + xe), R &&
|
|
2146
|
+
return $ && U["!doctype"] && x.ownerDocument && x.ownerDocument.doctype && x.ownerDocument.doctype.name && Te(ls, x.ownerDocument.doctype.name) && (xe = "<!DOCTYPE " + x.ownerDocument.doctype.name + `>
|
|
2147
|
+
` + xe), R && en([S, j, v], (rt) => {
|
|
2146
2148
|
xe = Lt(xe, rt, " ");
|
|
2147
2149
|
}), H && Me ? H.createHTML(xe) : xe;
|
|
2148
2150
|
}, e.setConfig = function() {
|
|
@@ -2158,14 +2160,14 @@ function ls() {
|
|
|
2158
2160
|
typeof c == "function" && (_[B] = _[B] || [], Rt(_[B], c));
|
|
2159
2161
|
}, e.removeHook = function(B) {
|
|
2160
2162
|
if (_[B])
|
|
2161
|
-
return
|
|
2163
|
+
return ir(_[B]);
|
|
2162
2164
|
}, e.removeHooks = function(B) {
|
|
2163
2165
|
_[B] && (_[B] = []);
|
|
2164
2166
|
}, e.removeAllHooks = function() {
|
|
2165
2167
|
_ = {};
|
|
2166
2168
|
}, e;
|
|
2167
2169
|
}
|
|
2168
|
-
var
|
|
2170
|
+
var fr = us();
|
|
2169
2171
|
class Cl {
|
|
2170
2172
|
get IsVisible() {
|
|
2171
2173
|
return At.isVisible();
|
|
@@ -2178,7 +2180,7 @@ class Cl {
|
|
|
2178
2180
|
allowOutsideClick: !1,
|
|
2179
2181
|
icon: "question",
|
|
2180
2182
|
title: e.title,
|
|
2181
|
-
html:
|
|
2183
|
+
html: fr.sanitize(e.text),
|
|
2182
2184
|
confirmButtonText: e.confirmLabel ?? "confirmar",
|
|
2183
2185
|
cancelButtonText: e.rejectLabel ?? "cancelar"
|
|
2184
2186
|
}).then((o) => {
|
|
@@ -2197,7 +2199,7 @@ class Cl {
|
|
|
2197
2199
|
allowOutsideClick: !1,
|
|
2198
2200
|
icon: n,
|
|
2199
2201
|
title: e.title,
|
|
2200
|
-
html:
|
|
2202
|
+
html: fr.sanitize(o)
|
|
2201
2203
|
}).then(() => r(!0));
|
|
2202
2204
|
});
|
|
2203
2205
|
}
|
|
@@ -2270,7 +2272,7 @@ const Tl = new Cl(), Pl = () => Tl, Rl = ["data-cor"], Ll = { class: "sf-p-4" },
|
|
|
2270
2272
|
function Ul(t, e) {
|
|
2271
2273
|
return oe(), pe("svg", Fl, Nl);
|
|
2272
2274
|
}
|
|
2273
|
-
const Dl = /* @__PURE__ */
|
|
2275
|
+
const Dl = /* @__PURE__ */ Tr(Il, [["render", Ul]]);
|
|
2274
2276
|
class Ml {
|
|
2275
2277
|
get storedTheme() {
|
|
2276
2278
|
return localStorage.getItem("color-scheme");
|
|
@@ -2312,7 +2314,7 @@ const Qn = (() => new Ml())(), $l = /* @__PURE__ */ Xs('<svg xmlns="http://www.w
|
|
|
2312
2314
|
__name: "Layout",
|
|
2313
2315
|
emits: ["mounted", "logout"],
|
|
2314
2316
|
setup(t, { emit: e }) {
|
|
2315
|
-
const n =
|
|
2317
|
+
const n = Cr(), o = e;
|
|
2316
2318
|
return hn(() => {
|
|
2317
2319
|
o("mounted");
|
|
2318
2320
|
}), (r, s) => (oe(), pe("div", zl, [
|
|
@@ -2362,14 +2364,14 @@ const Qn = (() => new Ml())(), $l = /* @__PURE__ */ Xs('<svg xmlns="http://www.w
|
|
|
2362
2364
|
exact: { type: Boolean }
|
|
2363
2365
|
},
|
|
2364
2366
|
setup(t) {
|
|
2365
|
-
const e = t, n =
|
|
2367
|
+
const e = t, n = Cr();
|
|
2366
2368
|
function o(r, s) {
|
|
2367
2369
|
r.preventDefault();
|
|
2368
2370
|
const d = r.target.closest(".sf-layout-nav-content");
|
|
2369
2371
|
s(), d && d.clientWidth + 10 > document.body.clientWidth && n.Close();
|
|
2370
2372
|
}
|
|
2371
2373
|
return (r, s) => {
|
|
2372
|
-
const a =
|
|
2374
|
+
const a = _r("router-link");
|
|
2373
2375
|
return oe(), at(a, {
|
|
2374
2376
|
to: e.href,
|
|
2375
2377
|
custom: ""
|
|
@@ -2381,7 +2383,7 @@ const Qn = (() => new Ml())(), $l = /* @__PURE__ */ Xs('<svg xmlns="http://www.w
|
|
|
2381
2383
|
"data-active": e.exact ? y : w,
|
|
2382
2384
|
onClick: (b) => o(b, l)
|
|
2383
2385
|
}, [
|
|
2384
|
-
e.icon ? (oe(), at(
|
|
2386
|
+
e.icon ? (oe(), at(cn, {
|
|
2385
2387
|
key: 0,
|
|
2386
2388
|
icone: e.icon,
|
|
2387
2389
|
"button-props": { tabindex: -1 }
|
|
@@ -2437,7 +2439,7 @@ const Qn = (() => new Ml())(), $l = /* @__PURE__ */ Xs('<svg xmlns="http://www.w
|
|
|
2437
2439
|
}
|
|
2438
2440
|
return (a, d) => (oe(), pe("div", {
|
|
2439
2441
|
class: ve(n()),
|
|
2440
|
-
style:
|
|
2442
|
+
style: Dt(e.style)
|
|
2441
2443
|
}, [
|
|
2442
2444
|
Y("div", {
|
|
2443
2445
|
class: ve(r())
|
|
@@ -2516,7 +2518,7 @@ const Qn = (() => new Ml())(), $l = /* @__PURE__ */ Xs('<svg xmlns="http://www.w
|
|
|
2516
2518
|
} catch {
|
|
2517
2519
|
}
|
|
2518
2520
|
}), (l, y) => {
|
|
2519
|
-
const w =
|
|
2521
|
+
const w = _r("RouterLink");
|
|
2520
2522
|
return oe(), pe("div", Zl, [
|
|
2521
2523
|
Y("div", {
|
|
2522
2524
|
class: ve(["left-arrow", { active: r.value }]),
|
|
@@ -2590,7 +2592,7 @@ for (var gt = 0, lu = Mn.length; gt < lu; ++gt)
|
|
|
2590
2592
|
$e[gt] = Mn[gt], Le[Mn.charCodeAt(gt)] = gt;
|
|
2591
2593
|
Le["-".charCodeAt(0)] = 62;
|
|
2592
2594
|
Le["_".charCodeAt(0)] = 63;
|
|
2593
|
-
function
|
|
2595
|
+
function ds(t) {
|
|
2594
2596
|
var e = t.length;
|
|
2595
2597
|
if (e % 4 > 0)
|
|
2596
2598
|
throw new Error("Invalid string. Length must be a multiple of 4");
|
|
@@ -2600,14 +2602,14 @@ function us(t) {
|
|
|
2600
2602
|
return [n, o];
|
|
2601
2603
|
}
|
|
2602
2604
|
function uu(t) {
|
|
2603
|
-
var e =
|
|
2605
|
+
var e = ds(t), n = e[0], o = e[1];
|
|
2604
2606
|
return (n + o) * 3 / 4 - o;
|
|
2605
2607
|
}
|
|
2606
2608
|
function du(t, e, n) {
|
|
2607
2609
|
return (e + n) * 3 / 4 - n;
|
|
2608
2610
|
}
|
|
2609
2611
|
function fu(t) {
|
|
2610
|
-
var e, n =
|
|
2612
|
+
var e, n = ds(t), o = n[0], r = n[1], s = new cu(du(t, o, r)), a = 0, d = r > 0 ? o - 4 : o, l;
|
|
2611
2613
|
for (l = 0; l < d; l += 4)
|
|
2612
2614
|
e = Le[t.charCodeAt(l)] << 18 | Le[t.charCodeAt(l + 1)] << 12 | Le[t.charCodeAt(l + 2)] << 6 | Le[t.charCodeAt(l + 3)], s[a++] = e >> 16 & 255, s[a++] = e >> 8 & 255, s[a++] = e & 255;
|
|
2613
2615
|
return r === 2 && (e = Le[t.charCodeAt(l)] << 2 | Le[t.charCodeAt(l + 1)] >> 4, s[a++] = e & 255), r === 1 && (e = Le[t.charCodeAt(l)] << 10 | Le[t.charCodeAt(l + 1)] << 4 | Le[t.charCodeAt(l + 2)] >> 2, s[a++] = e >> 8 & 255, s[a++] = e & 255), s;
|
|
@@ -2629,11 +2631,11 @@ function mu(t) {
|
|
|
2629
2631
|
$e[e >> 10] + $e[e >> 4 & 63] + $e[e << 2 & 63] + "="
|
|
2630
2632
|
)), r.join("");
|
|
2631
2633
|
}
|
|
2632
|
-
var
|
|
2634
|
+
var fs = { exports: {} };
|
|
2633
2635
|
const gu = {}, bu = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
2634
2636
|
__proto__: null,
|
|
2635
2637
|
default: gu
|
|
2636
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
2638
|
+
}, Symbol.toStringTag, { value: "Module" })), hr = /* @__PURE__ */ au(bu);
|
|
2637
2639
|
/**
|
|
2638
2640
|
* [js-sha256]{@link https://github.com/emn178/js-sha256}
|
|
2639
2641
|
*
|
|
@@ -2736,7 +2738,7 @@ const gu = {}, bu = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
2736
2738
|
}
|
|
2737
2739
|
return C;
|
|
2738
2740
|
}, M = function(m, C) {
|
|
2739
|
-
var N =
|
|
2741
|
+
var N = hr, T = hr.Buffer, _ = C ? "sha224" : "sha256", S;
|
|
2740
2742
|
T.from && !o.JS_SHA256_NO_BUFFER_FROM ? S = T.from : S = function(v) {
|
|
2741
2743
|
return new T(v);
|
|
2742
2744
|
};
|
|
@@ -2883,8 +2885,8 @@ const gu = {}, bu = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
2883
2885
|
var ae = F();
|
|
2884
2886
|
ae.sha256 = ae, ae.sha224 = F(!0), ae.sha256.hmac = ne(), ae.sha224.hmac = ne(!0), a ? t.exports = ae : (o.sha256 = ae.sha256, o.sha224 = ae.sha224);
|
|
2885
2887
|
})();
|
|
2886
|
-
})(
|
|
2887
|
-
var yu =
|
|
2888
|
+
})(fs);
|
|
2889
|
+
var yu = fs.exports;
|
|
2888
2890
|
const wu = /* @__PURE__ */ iu(yu);
|
|
2889
2891
|
class Bt extends Error {
|
|
2890
2892
|
}
|
|
@@ -2936,8 +2938,8 @@ function $n(t, e) {
|
|
|
2936
2938
|
}
|
|
2937
2939
|
if (typeof Promise > "u")
|
|
2938
2940
|
throw Error("Keycloak requires an environment that supports Promises. Make sure that you include the appropriate polyfill.");
|
|
2939
|
-
function
|
|
2940
|
-
if (!(this instanceof
|
|
2941
|
+
function hs(t) {
|
|
2942
|
+
if (!(this instanceof hs))
|
|
2941
2943
|
throw new Error("The 'Keycloak' constructor must be invoked with 'new'.");
|
|
2942
2944
|
for (var e = this, n, o = [], r, s = {
|
|
2943
2945
|
enable: !0,
|
|
@@ -3703,7 +3705,7 @@ async function Eu() {
|
|
|
3703
3705
|
return e;
|
|
3704
3706
|
}
|
|
3705
3707
|
function ku(t) {
|
|
3706
|
-
const e = new
|
|
3708
|
+
const e = new hs(t), n = {}, o = async (a = {}, d) => {
|
|
3707
3709
|
if (await Eu())
|
|
3708
3710
|
return a.onLoad === "login-required" && document.documentElement.setAttribute(
|
|
3709
3711
|
"data-app-message",
|
|
@@ -3734,7 +3736,7 @@ function ku(t) {
|
|
|
3734
3736
|
};
|
|
3735
3737
|
}
|
|
3736
3738
|
const Jd = (t) => ku(t);
|
|
3737
|
-
class
|
|
3739
|
+
class pr {
|
|
3738
3740
|
constructor(e = null) {
|
|
3739
3741
|
Je(this, "errors", []);
|
|
3740
3742
|
Je(this, "_value", null);
|
|
@@ -3766,7 +3768,7 @@ class hr {
|
|
|
3766
3768
|
e.forEach((n) => this.WithError(n));
|
|
3767
3769
|
}
|
|
3768
3770
|
}
|
|
3769
|
-
function
|
|
3771
|
+
function ps(t, e) {
|
|
3770
3772
|
return function() {
|
|
3771
3773
|
return t.apply(e, arguments);
|
|
3772
3774
|
};
|
|
@@ -3774,16 +3776,16 @@ function hs(t, e) {
|
|
|
3774
3776
|
const { toString: xu } = Object.prototype, { getPrototypeOf: vo } = Object, vn = ((t) => (e) => {
|
|
3775
3777
|
const n = xu.call(e);
|
|
3776
3778
|
return t[n] || (t[n] = n.slice(8, -1).toLowerCase());
|
|
3777
|
-
})(/* @__PURE__ */ Object.create(null)), qe = (t) => (t = t.toLowerCase(), (e) => vn(e) === t), An = (t) => (e) => typeof e === t, { isArray: Ct } = Array,
|
|
3779
|
+
})(/* @__PURE__ */ Object.create(null)), qe = (t) => (t = t.toLowerCase(), (e) => vn(e) === t), An = (t) => (e) => typeof e === t, { isArray: Ct } = Array, Ht = An("undefined");
|
|
3778
3780
|
function Su(t) {
|
|
3779
|
-
return t !== null &&
|
|
3781
|
+
return t !== null && !Ht(t) && t.constructor !== null && !Ht(t.constructor) && Ie(t.constructor.isBuffer) && t.constructor.isBuffer(t);
|
|
3780
3782
|
}
|
|
3781
|
-
const
|
|
3783
|
+
const ms = qe("ArrayBuffer");
|
|
3782
3784
|
function _u(t) {
|
|
3783
3785
|
let e;
|
|
3784
|
-
return typeof ArrayBuffer < "u" && ArrayBuffer.isView ? e = ArrayBuffer.isView(t) : e = t && t.buffer &&
|
|
3786
|
+
return typeof ArrayBuffer < "u" && ArrayBuffer.isView ? e = ArrayBuffer.isView(t) : e = t && t.buffer && ms(t.buffer), e;
|
|
3785
3787
|
}
|
|
3786
|
-
const Cu = An("string"), Ie = An("function"),
|
|
3788
|
+
const Cu = An("string"), Ie = An("function"), gs = An("number"), En = (t) => t !== null && typeof t == "object", Tu = (t) => t === !0 || t === !1, rn = (t) => {
|
|
3787
3789
|
if (vn(t) !== "object")
|
|
3788
3790
|
return !1;
|
|
3789
3791
|
const e = vo(t);
|
|
@@ -3793,7 +3795,7 @@ const Cu = An("string"), Ie = An("function"), ms = An("number"), En = (t) => t !
|
|
|
3793
3795
|
return t && (typeof FormData == "function" && t instanceof FormData || Ie(t.append) && ((e = vn(t)) === "formdata" || // detect form-data instance
|
|
3794
3796
|
e === "object" && Ie(t.toString) && t.toString() === "[object FormData]"));
|
|
3795
3797
|
}, Bu = qe("URLSearchParams"), Nu = (t) => t.trim ? t.trim() : t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, "");
|
|
3796
|
-
function
|
|
3798
|
+
function Gt(t, e, { allOwnKeys: n = !1 } = {}) {
|
|
3797
3799
|
if (t === null || typeof t > "u")
|
|
3798
3800
|
return;
|
|
3799
3801
|
let o, r;
|
|
@@ -3807,7 +3809,7 @@ function Kt(t, e, { allOwnKeys: n = !1 } = {}) {
|
|
|
3807
3809
|
d = s[o], e.call(null, t[d], d, t);
|
|
3808
3810
|
}
|
|
3809
3811
|
}
|
|
3810
|
-
function
|
|
3812
|
+
function bs(t, e) {
|
|
3811
3813
|
e = e.toLowerCase();
|
|
3812
3814
|
const n = Object.keys(t);
|
|
3813
3815
|
let o = n.length, r;
|
|
@@ -3816,18 +3818,18 @@ function gs(t, e) {
|
|
|
3816
3818
|
return r;
|
|
3817
3819
|
return null;
|
|
3818
3820
|
}
|
|
3819
|
-
const
|
|
3821
|
+
const ys = (() => typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : global)(), ws = (t) => !Ht(t) && t !== ys;
|
|
3820
3822
|
function eo() {
|
|
3821
|
-
const { caseless: t } =
|
|
3822
|
-
const s = t &&
|
|
3823
|
-
|
|
3823
|
+
const { caseless: t } = ws(this) && this || {}, e = {}, n = (o, r) => {
|
|
3824
|
+
const s = t && bs(e, r) || r;
|
|
3825
|
+
rn(e[s]) && rn(o) ? e[s] = eo(e[s], o) : rn(o) ? e[s] = eo({}, o) : Ct(o) ? e[s] = o.slice() : e[s] = o;
|
|
3824
3826
|
};
|
|
3825
3827
|
for (let o = 0, r = arguments.length; o < r; o++)
|
|
3826
|
-
arguments[o] &&
|
|
3828
|
+
arguments[o] && Gt(arguments[o], n);
|
|
3827
3829
|
return e;
|
|
3828
3830
|
}
|
|
3829
|
-
const Uu = (t, e, n, { allOwnKeys: o } = {}) => (
|
|
3830
|
-
n && Ie(r) ? t[s] =
|
|
3831
|
+
const Uu = (t, e, n, { allOwnKeys: o } = {}) => (Gt(e, (r, s) => {
|
|
3832
|
+
n && Ie(r) ? t[s] = ps(r, n) : t[s] = r;
|
|
3831
3833
|
}, { allOwnKeys: o }), t), Du = (t) => (t.charCodeAt(0) === 65279 && (t = t.slice(1)), t), Mu = (t, e, n, o) => {
|
|
3832
3834
|
t.prototype = Object.create(e.prototype, o), t.prototype.constructor = t, Object.defineProperty(t, "super", {
|
|
3833
3835
|
value: e.prototype
|
|
@@ -3853,7 +3855,7 @@ const Uu = (t, e, n, { allOwnKeys: o } = {}) => (Kt(e, (r, s) => {
|
|
|
3853
3855
|
if (Ct(t))
|
|
3854
3856
|
return t;
|
|
3855
3857
|
let e = t.length;
|
|
3856
|
-
if (!
|
|
3858
|
+
if (!gs(e))
|
|
3857
3859
|
return null;
|
|
3858
3860
|
const n = new Array(e);
|
|
3859
3861
|
for (; e-- > 0; )
|
|
@@ -3877,14 +3879,14 @@ const Uu = (t, e, n, { allOwnKeys: o } = {}) => (Kt(e, (r, s) => {
|
|
|
3877
3879
|
function(n, o, r) {
|
|
3878
3880
|
return o.toUpperCase() + r;
|
|
3879
3881
|
}
|
|
3880
|
-
),
|
|
3882
|
+
), mr = (({ hasOwnProperty: t }) => (e, n) => t.call(e, n))(Object.prototype), Gu = qe("RegExp"), vs = (t, e) => {
|
|
3881
3883
|
const n = Object.getOwnPropertyDescriptors(t), o = {};
|
|
3882
|
-
|
|
3884
|
+
Gt(n, (r, s) => {
|
|
3883
3885
|
let a;
|
|
3884
3886
|
(a = e(r, s, t)) !== !1 && (o[s] = a || r);
|
|
3885
3887
|
}), Object.defineProperties(t, o);
|
|
3886
3888
|
}, Ju = (t) => {
|
|
3887
|
-
|
|
3889
|
+
vs(t, (e, n) => {
|
|
3888
3890
|
if (Ie(t) && ["arguments", "caller", "callee"].indexOf(n) !== -1)
|
|
3889
3891
|
return !1;
|
|
3890
3892
|
const o = t[n];
|
|
@@ -3906,11 +3908,11 @@ const Uu = (t, e, n, { allOwnKeys: o } = {}) => (Kt(e, (r, s) => {
|
|
|
3906
3908
|
};
|
|
3907
3909
|
return Ct(t) ? o(t) : o(String(t).split(e)), n;
|
|
3908
3910
|
}, Xu = () => {
|
|
3909
|
-
}, Zu = (t, e) => (t = +t, Number.isFinite(t) ? t : e), Hn = "abcdefghijklmnopqrstuvwxyz",
|
|
3910
|
-
DIGIT:
|
|
3911
|
+
}, Zu = (t, e) => (t = +t, Number.isFinite(t) ? t : e), Hn = "abcdefghijklmnopqrstuvwxyz", gr = "0123456789", As = {
|
|
3912
|
+
DIGIT: gr,
|
|
3911
3913
|
ALPHA: Hn,
|
|
3912
|
-
ALPHA_DIGIT: Hn + Hn.toUpperCase() +
|
|
3913
|
-
}, Qu = (t = 16, e =
|
|
3914
|
+
ALPHA_DIGIT: Hn + Hn.toUpperCase() + gr
|
|
3915
|
+
}, Qu = (t = 16, e = As.ALPHA_DIGIT) => {
|
|
3914
3916
|
let n = "";
|
|
3915
3917
|
const { length: o } = e;
|
|
3916
3918
|
for (; t--; )
|
|
@@ -3928,9 +3930,9 @@ const td = (t) => {
|
|
|
3928
3930
|
if (!("toJSON" in o)) {
|
|
3929
3931
|
e[r] = o;
|
|
3930
3932
|
const s = Ct(o) ? [] : {};
|
|
3931
|
-
return
|
|
3933
|
+
return Gt(o, (a, d) => {
|
|
3932
3934
|
const l = n(a, r + 1);
|
|
3933
|
-
|
|
3935
|
+
!Ht(l) && (s[d] = l);
|
|
3934
3936
|
}), e[r] = void 0, s;
|
|
3935
3937
|
}
|
|
3936
3938
|
}
|
|
@@ -3939,16 +3941,16 @@ const td = (t) => {
|
|
|
3939
3941
|
return n(t, 0);
|
|
3940
3942
|
}, nd = qe("AsyncFunction"), od = (t) => t && (En(t) || Ie(t)) && Ie(t.then) && Ie(t.catch), h = {
|
|
3941
3943
|
isArray: Ct,
|
|
3942
|
-
isArrayBuffer:
|
|
3944
|
+
isArrayBuffer: ms,
|
|
3943
3945
|
isBuffer: Su,
|
|
3944
3946
|
isFormData: Fu,
|
|
3945
3947
|
isArrayBufferView: _u,
|
|
3946
3948
|
isString: Cu,
|
|
3947
|
-
isNumber:
|
|
3949
|
+
isNumber: gs,
|
|
3948
3950
|
isBoolean: Tu,
|
|
3949
3951
|
isObject: En,
|
|
3950
|
-
isPlainObject:
|
|
3951
|
-
isUndefined:
|
|
3952
|
+
isPlainObject: rn,
|
|
3953
|
+
isUndefined: Ht,
|
|
3952
3954
|
isDate: Pu,
|
|
3953
3955
|
isFile: Ru,
|
|
3954
3956
|
isBlob: Lu,
|
|
@@ -3958,7 +3960,7 @@ const td = (t) => {
|
|
|
3958
3960
|
isURLSearchParams: Bu,
|
|
3959
3961
|
isTypedArray: zu,
|
|
3960
3962
|
isFileList: Ou,
|
|
3961
|
-
forEach:
|
|
3963
|
+
forEach: Gt,
|
|
3962
3964
|
merge: eo,
|
|
3963
3965
|
extend: Uu,
|
|
3964
3966
|
trim: Nu,
|
|
@@ -3972,19 +3974,19 @@ const td = (t) => {
|
|
|
3972
3974
|
forEachEntry: Vu,
|
|
3973
3975
|
matchAll: Wu,
|
|
3974
3976
|
isHTMLForm: qu,
|
|
3975
|
-
hasOwnProperty:
|
|
3976
|
-
hasOwnProp:
|
|
3977
|
+
hasOwnProperty: mr,
|
|
3978
|
+
hasOwnProp: mr,
|
|
3977
3979
|
// an alias to avoid ESLint no-prototype-builtins detection
|
|
3978
|
-
reduceDescriptors:
|
|
3980
|
+
reduceDescriptors: vs,
|
|
3979
3981
|
freezeMethods: Ju,
|
|
3980
3982
|
toObjectSet: Yu,
|
|
3981
3983
|
toCamelCase: Ku,
|
|
3982
3984
|
noop: Xu,
|
|
3983
3985
|
toFiniteNumber: Zu,
|
|
3984
|
-
findKey:
|
|
3985
|
-
global:
|
|
3986
|
-
isContextDefined:
|
|
3987
|
-
ALPHABET:
|
|
3986
|
+
findKey: bs,
|
|
3987
|
+
global: ys,
|
|
3988
|
+
isContextDefined: ws,
|
|
3989
|
+
ALPHABET: As,
|
|
3988
3990
|
generateString: Qu,
|
|
3989
3991
|
isSpecCompliantForm: ed,
|
|
3990
3992
|
toJSONObject: td,
|
|
@@ -4015,7 +4017,7 @@ h.inherits(J, Error, {
|
|
|
4015
4017
|
};
|
|
4016
4018
|
}
|
|
4017
4019
|
});
|
|
4018
|
-
const
|
|
4020
|
+
const Es = J.prototype, ks = {};
|
|
4019
4021
|
[
|
|
4020
4022
|
"ERR_BAD_OPTION_VALUE",
|
|
4021
4023
|
"ERR_BAD_OPTION",
|
|
@@ -4031,12 +4033,12 @@ const As = J.prototype, Es = {};
|
|
|
4031
4033
|
"ERR_INVALID_URL"
|
|
4032
4034
|
// eslint-disable-next-line func-names
|
|
4033
4035
|
].forEach((t) => {
|
|
4034
|
-
|
|
4036
|
+
ks[t] = { value: t };
|
|
4035
4037
|
});
|
|
4036
|
-
Object.defineProperties(J,
|
|
4037
|
-
Object.defineProperty(
|
|
4038
|
+
Object.defineProperties(J, ks);
|
|
4039
|
+
Object.defineProperty(Es, "isAxiosError", { value: !0 });
|
|
4038
4040
|
J.from = (t, e, n, o, r, s) => {
|
|
4039
|
-
const a = Object.create(
|
|
4041
|
+
const a = Object.create(Es);
|
|
4040
4042
|
return h.toFlatObject(t, a, function(l) {
|
|
4041
4043
|
return l !== Error.prototype;
|
|
4042
4044
|
}, (d) => d !== "isAxiosError"), J.call(a, t.message, e, n, o, r), a.cause = t, a.name = t.name, s && Object.assign(a, s), a;
|
|
@@ -4045,12 +4047,12 @@ const rd = null;
|
|
|
4045
4047
|
function to(t) {
|
|
4046
4048
|
return h.isPlainObject(t) || h.isArray(t);
|
|
4047
4049
|
}
|
|
4048
|
-
function
|
|
4050
|
+
function xs(t) {
|
|
4049
4051
|
return h.endsWith(t, "[]") ? t.slice(0, -2) : t;
|
|
4050
4052
|
}
|
|
4051
|
-
function
|
|
4053
|
+
function br(t, e, n) {
|
|
4052
4054
|
return t ? t.concat(e).map(function(r, s) {
|
|
4053
|
-
return r =
|
|
4055
|
+
return r = xs(r), !n && s ? "[" + r + "]" : r;
|
|
4054
4056
|
}).join(n ? "." : "") : e;
|
|
4055
4057
|
}
|
|
4056
4058
|
function sd(t) {
|
|
@@ -4087,15 +4089,15 @@ function kn(t, e, n) {
|
|
|
4087
4089
|
if (h.endsWith(F, "{}"))
|
|
4088
4090
|
F = o ? F : F.slice(0, -2), I = JSON.stringify(I);
|
|
4089
4091
|
else if (h.isArray(I) && sd(I) || (h.isFileList(I) || h.endsWith(F, "[]")) && (Q = h.toArray(I)))
|
|
4090
|
-
return F =
|
|
4092
|
+
return F = xs(F), Q.forEach(function(H, be) {
|
|
4091
4093
|
!(h.isUndefined(H) || H === null) && e.append(
|
|
4092
4094
|
// eslint-disable-next-line no-nested-ternary
|
|
4093
|
-
a === !0 ?
|
|
4095
|
+
a === !0 ? br([F], be, s) : a === null ? F : F + "[]",
|
|
4094
4096
|
y(H)
|
|
4095
4097
|
);
|
|
4096
4098
|
}), !1;
|
|
4097
4099
|
}
|
|
4098
|
-
return to(I) ? !0 : (e.append(
|
|
4100
|
+
return to(I) ? !0 : (e.append(br(M, F, s), y(I)), !1);
|
|
4099
4101
|
}
|
|
4100
4102
|
const b = [], G = Object.assign(id, {
|
|
4101
4103
|
defaultVisitor: w,
|
|
@@ -4121,7 +4123,7 @@ function kn(t, e, n) {
|
|
|
4121
4123
|
throw new TypeError("data must be an object");
|
|
4122
4124
|
return D(t), e;
|
|
4123
4125
|
}
|
|
4124
|
-
function
|
|
4126
|
+
function yr(t) {
|
|
4125
4127
|
const e = {
|
|
4126
4128
|
"!": "%21",
|
|
4127
4129
|
"'": "%27",
|
|
@@ -4138,14 +4140,14 @@ function br(t) {
|
|
|
4138
4140
|
function Ao(t, e) {
|
|
4139
4141
|
this._pairs = [], t && kn(t, this, e);
|
|
4140
4142
|
}
|
|
4141
|
-
const
|
|
4142
|
-
|
|
4143
|
+
const Ss = Ao.prototype;
|
|
4144
|
+
Ss.append = function(e, n) {
|
|
4143
4145
|
this._pairs.push([e, n]);
|
|
4144
4146
|
};
|
|
4145
|
-
|
|
4147
|
+
Ss.toString = function(e) {
|
|
4146
4148
|
const n = e ? function(o) {
|
|
4147
|
-
return e.call(this, o,
|
|
4148
|
-
} :
|
|
4149
|
+
return e.call(this, o, yr);
|
|
4150
|
+
} : yr;
|
|
4149
4151
|
return this._pairs.map(function(r) {
|
|
4150
4152
|
return n(r[0]) + "=" + n(r[1]);
|
|
4151
4153
|
}, "").join("&");
|
|
@@ -4153,7 +4155,7 @@ xs.toString = function(e) {
|
|
|
4153
4155
|
function ad(t) {
|
|
4154
4156
|
return encodeURIComponent(t).replace(/%3A/gi, ":").replace(/%24/g, "$").replace(/%2C/gi, ",").replace(/%20/g, "+").replace(/%5B/gi, "[").replace(/%5D/gi, "]");
|
|
4155
4157
|
}
|
|
4156
|
-
function
|
|
4158
|
+
function _s(t, e, n) {
|
|
4157
4159
|
if (!e)
|
|
4158
4160
|
return t;
|
|
4159
4161
|
const o = n && n.encode || ad, r = n && n.serialize;
|
|
@@ -4218,7 +4220,7 @@ class cd {
|
|
|
4218
4220
|
});
|
|
4219
4221
|
}
|
|
4220
4222
|
}
|
|
4221
|
-
const
|
|
4223
|
+
const wr = cd, Cs = {
|
|
4222
4224
|
silentJSONParsing: !0,
|
|
4223
4225
|
forcedJSONParsing: !0,
|
|
4224
4226
|
clarifyTimeoutError: !1
|
|
@@ -4230,10 +4232,10 @@ const yr = cd, _s = {
|
|
|
4230
4232
|
Blob: dd
|
|
4231
4233
|
},
|
|
4232
4234
|
protocols: ["http", "https", "file", "blob", "url", "data"]
|
|
4233
|
-
},
|
|
4235
|
+
}, Ts = typeof window < "u" && typeof document < "u", hd = ((t) => Ts && ["ReactNative", "NativeScript", "NS"].indexOf(t) < 0)(typeof navigator < "u" && navigator.product), pd = (() => typeof WorkerGlobalScope < "u" && // eslint-disable-next-line no-undef
|
|
4234
4236
|
self instanceof WorkerGlobalScope && typeof self.importScripts == "function")(), md = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
4235
4237
|
__proto__: null,
|
|
4236
|
-
hasBrowserEnv:
|
|
4238
|
+
hasBrowserEnv: Ts,
|
|
4237
4239
|
hasStandardBrowserEnv: hd,
|
|
4238
4240
|
hasStandardBrowserWebWorkerEnv: pd
|
|
4239
4241
|
}, Symbol.toStringTag, { value: "Module" })), je = {
|
|
@@ -4259,7 +4261,7 @@ function yd(t) {
|
|
|
4259
4261
|
s = n[o], e[s] = t[s];
|
|
4260
4262
|
return e;
|
|
4261
4263
|
}
|
|
4262
|
-
function
|
|
4264
|
+
function Ps(t) {
|
|
4263
4265
|
function e(n, o, r, s) {
|
|
4264
4266
|
let a = n[s++];
|
|
4265
4267
|
if (a === "__proto__")
|
|
@@ -4286,12 +4288,12 @@ function wd(t, e, n) {
|
|
|
4286
4288
|
return (n || JSON.stringify)(t);
|
|
4287
4289
|
}
|
|
4288
4290
|
const Eo = {
|
|
4289
|
-
transitional:
|
|
4291
|
+
transitional: Cs,
|
|
4290
4292
|
adapter: ["xhr", "http"],
|
|
4291
4293
|
transformRequest: [function(e, n) {
|
|
4292
4294
|
const o = n.getContentType() || "", r = o.indexOf("application/json") > -1, s = h.isObject(e);
|
|
4293
4295
|
if (s && h.isHTMLForm(e) && (e = new FormData(e)), h.isFormData(e))
|
|
4294
|
-
return r && r ? JSON.stringify(
|
|
4296
|
+
return r && r ? JSON.stringify(Ps(e)) : e;
|
|
4295
4297
|
if (h.isArrayBuffer(e) || h.isBuffer(e) || h.isStream(e) || h.isFile(e) || h.isBlob(e))
|
|
4296
4298
|
return e;
|
|
4297
4299
|
if (h.isArrayBufferView(e))
|
|
@@ -4377,12 +4379,12 @@ const ko = Eo, vd = h.toObjectSet([
|
|
|
4377
4379
|
`).forEach(function(a) {
|
|
4378
4380
|
r = a.indexOf(":"), n = a.substring(0, r).trim().toLowerCase(), o = a.substring(r + 1).trim(), !(!n || e[n] && vd[n]) && (n === "set-cookie" ? e[n] ? e[n].push(o) : e[n] = [o] : e[n] = e[n] ? e[n] + ", " + o : o);
|
|
4379
4381
|
}), e;
|
|
4380
|
-
},
|
|
4382
|
+
}, vr = Symbol("internals");
|
|
4381
4383
|
function It(t) {
|
|
4382
4384
|
return t && String(t).trim().toLowerCase();
|
|
4383
4385
|
}
|
|
4384
|
-
function
|
|
4385
|
-
return t === !1 || t == null ? t : h.isArray(t) ? t.map(
|
|
4386
|
+
function sn(t) {
|
|
4387
|
+
return t === !1 || t == null ? t : h.isArray(t) ? t.map(sn) : String(t);
|
|
4386
4388
|
}
|
|
4387
4389
|
function Ed(t) {
|
|
4388
4390
|
const e = /* @__PURE__ */ Object.create(null), n = /([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;
|
|
@@ -4427,7 +4429,7 @@ class xn {
|
|
|
4427
4429
|
if (!w)
|
|
4428
4430
|
throw new Error("header name must be a non-empty string");
|
|
4429
4431
|
const b = h.findKey(r, w);
|
|
4430
|
-
(!b || r[b] === void 0 || y === !0 || y === void 0 && r[b] !== !1) && (r[b || l] =
|
|
4432
|
+
(!b || r[b] === void 0 || y === !0 || y === void 0 && r[b] !== !1) && (r[b || l] = sn(d));
|
|
4431
4433
|
}
|
|
4432
4434
|
const a = (d, l) => h.forEach(d, (y, w) => s(y, w, l));
|
|
4433
4435
|
return h.isPlainObject(e) || e instanceof this.constructor ? a(e, n) : h.isString(e) && (e = e.trim()) && !kd(e) ? a(Ad(e), n) : e != null && s(n, e, o), this;
|
|
@@ -4481,11 +4483,11 @@ class xn {
|
|
|
4481
4483
|
return h.forEach(this, (r, s) => {
|
|
4482
4484
|
const a = h.findKey(o, s);
|
|
4483
4485
|
if (a) {
|
|
4484
|
-
n[a] =
|
|
4486
|
+
n[a] = sn(r), delete n[s];
|
|
4485
4487
|
return;
|
|
4486
4488
|
}
|
|
4487
4489
|
const d = e ? xd(s) : String(s).trim();
|
|
4488
|
-
d !== s && delete n[s], n[d] =
|
|
4490
|
+
d !== s && delete n[s], n[d] = sn(r), o[d] = !0;
|
|
4489
4491
|
}), this;
|
|
4490
4492
|
}
|
|
4491
4493
|
concat(...e) {
|
|
@@ -4515,7 +4517,7 @@ class xn {
|
|
|
4515
4517
|
return n.forEach((r) => o.set(r)), o;
|
|
4516
4518
|
}
|
|
4517
4519
|
static accessor(e) {
|
|
4518
|
-
const o = (this[
|
|
4520
|
+
const o = (this[vr] = this[vr] = {
|
|
4519
4521
|
accessors: {}
|
|
4520
4522
|
}).accessors, r = this.prototype;
|
|
4521
4523
|
function s(a) {
|
|
@@ -4544,13 +4546,13 @@ function zn(t, e) {
|
|
|
4544
4546
|
s = d.call(n, s, r.normalize(), e ? e.status : void 0);
|
|
4545
4547
|
}), r.normalize(), s;
|
|
4546
4548
|
}
|
|
4547
|
-
function
|
|
4549
|
+
function Rs(t) {
|
|
4548
4550
|
return !!(t && t.__CANCEL__);
|
|
4549
4551
|
}
|
|
4550
|
-
function
|
|
4552
|
+
function Jt(t, e, n) {
|
|
4551
4553
|
J.call(this, t ?? "canceled", J.ERR_CANCELED, e, n), this.name = "CanceledError";
|
|
4552
4554
|
}
|
|
4553
|
-
h.inherits(
|
|
4555
|
+
h.inherits(Jt, J, {
|
|
4554
4556
|
__CANCEL__: !0
|
|
4555
4557
|
});
|
|
4556
4558
|
function _d(t, e, n) {
|
|
@@ -4596,7 +4598,7 @@ function Td(t) {
|
|
|
4596
4598
|
function Pd(t, e) {
|
|
4597
4599
|
return e ? t.replace(/\/?\/$/, "") + "/" + e.replace(/^\/+/, "") : t;
|
|
4598
4600
|
}
|
|
4599
|
-
function
|
|
4601
|
+
function Ls(t, e) {
|
|
4600
4602
|
return t && !Td(e) ? Pd(t, e) : e;
|
|
4601
4603
|
}
|
|
4602
4604
|
const Rd = je.hasStandardBrowserEnv ? (
|
|
@@ -4651,7 +4653,7 @@ function Od(t, e) {
|
|
|
4651
4653
|
return D ? Math.round(G * 1e3 / D) : void 0;
|
|
4652
4654
|
};
|
|
4653
4655
|
}
|
|
4654
|
-
function
|
|
4656
|
+
function Ar(t, e) {
|
|
4655
4657
|
let n = 0;
|
|
4656
4658
|
const o = Od(50, 250);
|
|
4657
4659
|
return (r) => {
|
|
@@ -4691,8 +4693,8 @@ const Id = typeof XMLHttpRequest < "u", Fd = Id && function(t) {
|
|
|
4691
4693
|
const F = t.auth.username || "", M = t.auth.password ? unescape(encodeURIComponent(t.auth.password)) : "";
|
|
4692
4694
|
s.set("Authorization", "Basic " + btoa(F + ":" + M));
|
|
4693
4695
|
}
|
|
4694
|
-
const G =
|
|
4695
|
-
b.open(t.method.toUpperCase(),
|
|
4696
|
+
const G = Ls(t.baseURL, t.url);
|
|
4697
|
+
b.open(t.method.toUpperCase(), _s(G, t.params, t.paramsSerializer), !0), b.timeout = t.timeout;
|
|
4696
4698
|
function D() {
|
|
4697
4699
|
if (!b)
|
|
4698
4700
|
return;
|
|
@@ -4720,7 +4722,7 @@ const Id = typeof XMLHttpRequest < "u", Fd = Id && function(t) {
|
|
|
4720
4722
|
o(new J("Network Error", J.ERR_NETWORK, t, b)), b = null;
|
|
4721
4723
|
}, b.ontimeout = function() {
|
|
4722
4724
|
let M = t.timeout ? "timeout of " + t.timeout + "ms exceeded" : "timeout exceeded";
|
|
4723
|
-
const Q = t.transitional ||
|
|
4725
|
+
const Q = t.transitional || Cs;
|
|
4724
4726
|
t.timeoutErrorMessage && (M = t.timeoutErrorMessage), o(new J(
|
|
4725
4727
|
M,
|
|
4726
4728
|
Q.clarifyTimeoutError ? J.ETIMEDOUT : J.ECONNABORTED,
|
|
@@ -4733,8 +4735,8 @@ const Id = typeof XMLHttpRequest < "u", Fd = Id && function(t) {
|
|
|
4733
4735
|
}
|
|
4734
4736
|
r === void 0 && s.setContentType(null), "setRequestHeader" in b && h.forEach(s.toJSON(), function(M, Q) {
|
|
4735
4737
|
b.setRequestHeader(Q, M);
|
|
4736
|
-
}), h.isUndefined(t.withCredentials) || (b.withCredentials = !!t.withCredentials), a && a !== "json" && (b.responseType = t.responseType), typeof t.onDownloadProgress == "function" && b.addEventListener("progress",
|
|
4737
|
-
b && (o(!F || F.type ? new
|
|
4738
|
+
}), h.isUndefined(t.withCredentials) || (b.withCredentials = !!t.withCredentials), a && a !== "json" && (b.responseType = t.responseType), typeof t.onDownloadProgress == "function" && b.addEventListener("progress", Ar(t.onDownloadProgress, !0)), typeof t.onUploadProgress == "function" && b.upload && b.upload.addEventListener("progress", Ar(t.onUploadProgress)), (t.cancelToken || t.signal) && (l = (F) => {
|
|
4739
|
+
b && (o(!F || F.type ? new Jt(null, t, b) : F), b.abort(), b = null);
|
|
4738
4740
|
}, t.cancelToken && t.cancelToken.subscribe(l), t.signal && (t.signal.aborted ? l() : t.signal.addEventListener("abort", l)));
|
|
4739
4741
|
const I = Ld(G);
|
|
4740
4742
|
if (I && je.protocols.indexOf(I) === -1) {
|
|
@@ -4756,7 +4758,7 @@ h.forEach(no, (t, e) => {
|
|
|
4756
4758
|
Object.defineProperty(t, "adapterName", { value: e });
|
|
4757
4759
|
}
|
|
4758
4760
|
});
|
|
4759
|
-
const
|
|
4761
|
+
const Er = (t) => `- ${t}`, Bd = (t) => h.isFunction(t) || t === null || t === !1, Os = {
|
|
4760
4762
|
getAdapter: (t) => {
|
|
4761
4763
|
t = h.isArray(t) ? t : [t];
|
|
4762
4764
|
const { length: e } = t;
|
|
@@ -4776,8 +4778,8 @@ const Ar = (t) => `- ${t}`, Bd = (t) => h.isFunction(t) || t === null || t === !
|
|
|
4776
4778
|
([d, l]) => `adapter ${d} ` + (l === !1 ? "is not supported by the environment" : "is not available in the build")
|
|
4777
4779
|
);
|
|
4778
4780
|
let a = e ? s.length > 1 ? `since :
|
|
4779
|
-
` + s.map(
|
|
4780
|
-
`) : " " +
|
|
4781
|
+
` + s.map(Er).join(`
|
|
4782
|
+
`) : " " + Er(s[0]) : "as no adapter specified";
|
|
4781
4783
|
throw new J(
|
|
4782
4784
|
"There is no suitable adapter to dispatch the request " + a,
|
|
4783
4785
|
"ERR_NOT_SUPPORT"
|
|
@@ -4789,27 +4791,27 @@ const Ar = (t) => `- ${t}`, Bd = (t) => h.isFunction(t) || t === null || t === !
|
|
|
4789
4791
|
};
|
|
4790
4792
|
function Vn(t) {
|
|
4791
4793
|
if (t.cancelToken && t.cancelToken.throwIfRequested(), t.signal && t.signal.aborted)
|
|
4792
|
-
throw new
|
|
4794
|
+
throw new Jt(null, t);
|
|
4793
4795
|
}
|
|
4794
|
-
function
|
|
4796
|
+
function kr(t) {
|
|
4795
4797
|
return Vn(t), t.headers = Xe.from(t.headers), t.data = zn.call(
|
|
4796
4798
|
t,
|
|
4797
4799
|
t.transformRequest
|
|
4798
|
-
), ["post", "put", "patch"].indexOf(t.method) !== -1 && t.headers.setContentType("application/x-www-form-urlencoded", !1),
|
|
4800
|
+
), ["post", "put", "patch"].indexOf(t.method) !== -1 && t.headers.setContentType("application/x-www-form-urlencoded", !1), Os.getAdapter(t.adapter || ko.adapter)(t).then(function(o) {
|
|
4799
4801
|
return Vn(t), o.data = zn.call(
|
|
4800
4802
|
t,
|
|
4801
4803
|
t.transformResponse,
|
|
4802
4804
|
o
|
|
4803
4805
|
), o.headers = Xe.from(o.headers), o;
|
|
4804
4806
|
}, function(o) {
|
|
4805
|
-
return
|
|
4807
|
+
return Rs(o) || (Vn(t), o && o.response && (o.response.data = zn.call(
|
|
4806
4808
|
t,
|
|
4807
4809
|
t.transformResponse,
|
|
4808
4810
|
o.response
|
|
4809
4811
|
), o.response.headers = Xe.from(o.response.headers))), Promise.reject(o);
|
|
4810
4812
|
});
|
|
4811
4813
|
}
|
|
4812
|
-
const
|
|
4814
|
+
const xr = (t) => t instanceof Xe ? t.toJSON() : t;
|
|
4813
4815
|
function kt(t, e) {
|
|
4814
4816
|
e = e || {};
|
|
4815
4817
|
const n = {};
|
|
@@ -4869,23 +4871,23 @@ function kt(t, e) {
|
|
|
4869
4871
|
socketPath: a,
|
|
4870
4872
|
responseEncoding: a,
|
|
4871
4873
|
validateStatus: d,
|
|
4872
|
-
headers: (y, w) => r(
|
|
4874
|
+
headers: (y, w) => r(xr(y), xr(w), !0)
|
|
4873
4875
|
};
|
|
4874
4876
|
return h.forEach(Object.keys(Object.assign({}, t, e)), function(w) {
|
|
4875
4877
|
const b = l[w] || r, G = b(t[w], e[w], w);
|
|
4876
4878
|
h.isUndefined(G) && b !== d || (n[w] = G);
|
|
4877
4879
|
}), n;
|
|
4878
4880
|
}
|
|
4879
|
-
const
|
|
4881
|
+
const Is = "1.6.5", xo = {};
|
|
4880
4882
|
["object", "boolean", "number", "function", "string", "symbol"].forEach((t, e) => {
|
|
4881
4883
|
xo[t] = function(o) {
|
|
4882
4884
|
return typeof o === t || "a" + (e < 1 ? "n " : " ") + t;
|
|
4883
4885
|
};
|
|
4884
4886
|
});
|
|
4885
|
-
const
|
|
4887
|
+
const Sr = {};
|
|
4886
4888
|
xo.transitional = function(e, n, o) {
|
|
4887
4889
|
function r(s, a) {
|
|
4888
|
-
return "[Axios v" +
|
|
4890
|
+
return "[Axios v" + Is + "] Transitional option '" + s + "'" + a + (o ? ". " + o : "");
|
|
4889
4891
|
}
|
|
4890
4892
|
return (s, a, d) => {
|
|
4891
4893
|
if (e === !1)
|
|
@@ -4893,7 +4895,7 @@ xo.transitional = function(e, n, o) {
|
|
|
4893
4895
|
r(a, " has been removed" + (n ? " in " + n : "")),
|
|
4894
4896
|
J.ERR_DEPRECATED
|
|
4895
4897
|
);
|
|
4896
|
-
return n && !
|
|
4898
|
+
return n && !Sr[a] && (Sr[a] = !0, console.warn(
|
|
4897
4899
|
r(
|
|
4898
4900
|
a,
|
|
4899
4901
|
" has been deprecated since v" + n + " and will be removed in the near future"
|
|
@@ -4922,11 +4924,11 @@ const oo = {
|
|
|
4922
4924
|
assertOptions: Nd,
|
|
4923
4925
|
validators: xo
|
|
4924
4926
|
}, Ze = oo.validators;
|
|
4925
|
-
class
|
|
4927
|
+
class dn {
|
|
4926
4928
|
constructor(e) {
|
|
4927
4929
|
this.defaults = e, this.interceptors = {
|
|
4928
|
-
request: new
|
|
4929
|
-
response: new
|
|
4930
|
+
request: new wr(),
|
|
4931
|
+
response: new wr()
|
|
4930
4932
|
};
|
|
4931
4933
|
}
|
|
4932
4934
|
/**
|
|
@@ -4971,7 +4973,7 @@ class un {
|
|
|
4971
4973
|
});
|
|
4972
4974
|
let w, b = 0, G;
|
|
4973
4975
|
if (!l) {
|
|
4974
|
-
const I = [
|
|
4976
|
+
const I = [kr.bind(this), void 0];
|
|
4975
4977
|
for (I.unshift.apply(I, d), I.push.apply(I, y), G = I.length, w = Promise.resolve(n); b < G; )
|
|
4976
4978
|
w = w.then(I[b++], I[b++]);
|
|
4977
4979
|
return w;
|
|
@@ -4988,7 +4990,7 @@ class un {
|
|
|
4988
4990
|
}
|
|
4989
4991
|
}
|
|
4990
4992
|
try {
|
|
4991
|
-
w =
|
|
4993
|
+
w = kr.call(this, D);
|
|
4992
4994
|
} catch (I) {
|
|
4993
4995
|
return Promise.reject(I);
|
|
4994
4996
|
}
|
|
@@ -4998,12 +5000,12 @@ class un {
|
|
|
4998
5000
|
}
|
|
4999
5001
|
getUri(e) {
|
|
5000
5002
|
e = kt(this.defaults, e);
|
|
5001
|
-
const n =
|
|
5002
|
-
return
|
|
5003
|
+
const n = Ls(e.baseURL, e.url);
|
|
5004
|
+
return _s(n, e.params, e.paramsSerializer);
|
|
5003
5005
|
}
|
|
5004
5006
|
}
|
|
5005
5007
|
h.forEach(["delete", "get", "head", "options"], function(e) {
|
|
5006
|
-
|
|
5008
|
+
dn.prototype[e] = function(n, o) {
|
|
5007
5009
|
return this.request(kt(o || {}, {
|
|
5008
5010
|
method: e,
|
|
5009
5011
|
url: n,
|
|
@@ -5024,9 +5026,9 @@ h.forEach(["post", "put", "patch"], function(e) {
|
|
|
5024
5026
|
}));
|
|
5025
5027
|
};
|
|
5026
5028
|
}
|
|
5027
|
-
|
|
5029
|
+
dn.prototype[e] = n(), dn.prototype[e + "Form"] = n(!0);
|
|
5028
5030
|
});
|
|
5029
|
-
const
|
|
5031
|
+
const an = dn;
|
|
5030
5032
|
class So {
|
|
5031
5033
|
constructor(e) {
|
|
5032
5034
|
if (typeof e != "function")
|
|
@@ -5052,7 +5054,7 @@ class So {
|
|
|
5052
5054
|
o.unsubscribe(s);
|
|
5053
5055
|
}, a;
|
|
5054
5056
|
}, e(function(s, a, d) {
|
|
5055
|
-
o.reason || (o.reason = new
|
|
5057
|
+
o.reason || (o.reason = new Jt(s, a, d), n(o.reason));
|
|
5056
5058
|
});
|
|
5057
5059
|
}
|
|
5058
5060
|
/**
|
|
@@ -5173,18 +5175,18 @@ Object.entries(ro).forEach(([t, e]) => {
|
|
|
5173
5175
|
ro[e] = t;
|
|
5174
5176
|
});
|
|
5175
5177
|
const $d = ro;
|
|
5176
|
-
function
|
|
5177
|
-
const e = new
|
|
5178
|
-
return h.extend(n,
|
|
5179
|
-
return
|
|
5178
|
+
function Fs(t) {
|
|
5179
|
+
const e = new an(t), n = ps(an.prototype.request, e);
|
|
5180
|
+
return h.extend(n, an.prototype, e, { allOwnKeys: !0 }), h.extend(n, e, null, { allOwnKeys: !0 }), n.create = function(r) {
|
|
5181
|
+
return Fs(kt(t, r));
|
|
5180
5182
|
}, n;
|
|
5181
5183
|
}
|
|
5182
|
-
const se =
|
|
5183
|
-
se.Axios =
|
|
5184
|
-
se.CanceledError =
|
|
5184
|
+
const se = Fs(ko);
|
|
5185
|
+
se.Axios = an;
|
|
5186
|
+
se.CanceledError = Jt;
|
|
5185
5187
|
se.CancelToken = Ud;
|
|
5186
|
-
se.isCancel =
|
|
5187
|
-
se.VERSION =
|
|
5188
|
+
se.isCancel = Rs;
|
|
5189
|
+
se.VERSION = Is;
|
|
5188
5190
|
se.toFormData = kn;
|
|
5189
5191
|
se.AxiosError = J;
|
|
5190
5192
|
se.Cancel = se.CanceledError;
|
|
@@ -5195,8 +5197,8 @@ se.spread = Dd;
|
|
|
5195
5197
|
se.isAxiosError = Md;
|
|
5196
5198
|
se.mergeConfig = kt;
|
|
5197
5199
|
se.AxiosHeaders = Xe;
|
|
5198
|
-
se.formToJSON = (t) =>
|
|
5199
|
-
se.getAdapter =
|
|
5200
|
+
se.formToJSON = (t) => Ps(h.isHTMLForm(t) ? new FormData(t) : t);
|
|
5201
|
+
se.getAdapter = Os.getAdapter;
|
|
5200
5202
|
se.HttpStatusCode = $d;
|
|
5201
5203
|
se.default = se;
|
|
5202
5204
|
const Hd = se;
|
|
@@ -5224,7 +5226,7 @@ class jd {
|
|
|
5224
5226
|
* @param r
|
|
5225
5227
|
*/
|
|
5226
5228
|
HandleThen(e) {
|
|
5227
|
-
const n = new
|
|
5229
|
+
const n = new pr(), o = this.ParseAppResult(e.data);
|
|
5228
5230
|
return o === null ? (n.value = e.data, n) : o.hasError ? (o.errors.forEach((r) => n.WithError(r)), n.httpStatusCode = o.httpStatusCode, n) : (n.value = e.data.value, n);
|
|
5229
5231
|
}
|
|
5230
5232
|
/**
|
|
@@ -5234,7 +5236,7 @@ class jd {
|
|
|
5234
5236
|
*/
|
|
5235
5237
|
HandleCatch(e) {
|
|
5236
5238
|
var r;
|
|
5237
|
-
const n = new
|
|
5239
|
+
const n = new pr(), o = this.ParseAppResult((r = e.response) == null ? void 0 : r.data);
|
|
5238
5240
|
return o === null ? n.WithError(e.message) : (n.WithErrors(o.errors), n.httpStatusCode = o.httpStatusCode), n;
|
|
5239
5241
|
}
|
|
5240
5242
|
async SilentLogin() {
|
|
@@ -5310,12 +5312,13 @@ class jd {
|
|
|
5310
5312
|
const Yd = (t) => new jd(t);
|
|
5311
5313
|
Qn.SetInitialTheme();
|
|
5312
5314
|
export {
|
|
5313
|
-
|
|
5315
|
+
pr as AppResult,
|
|
5314
5316
|
jd as AxiosClient,
|
|
5315
5317
|
io as Cor,
|
|
5316
5318
|
vi as SfButton,
|
|
5317
5319
|
Kd as SfContent,
|
|
5318
|
-
|
|
5320
|
+
bi as SfDrawer,
|
|
5321
|
+
cn as SfIcon,
|
|
5319
5322
|
Wd as SfLayout,
|
|
5320
5323
|
qd as SfNavMenuLink,
|
|
5321
5324
|
Gd as SfTabNavigation,
|
|
@@ -5323,6 +5326,6 @@ export {
|
|
|
5323
5326
|
Jd as UseAuthService,
|
|
5324
5327
|
Yd as UseAxiosClient,
|
|
5325
5328
|
Pl as UseDialogService,
|
|
5326
|
-
|
|
5329
|
+
Cr as UseNavMenuService
|
|
5327
5330
|
};
|
|
5328
5331
|
//# sourceMappingURL=lib.es.js.map
|