@luizleon/sf.prefeiturasp.vuecomponents 0.0.42 → 0.0.43
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/content/Content.d.ts +1 -0
- package/dist/components/message/Message.d.ts +37 -0
- package/dist/index.d.ts +2 -1
- package/dist/lib.es.js +1168 -1133
- package/dist/lib.es.js.map +1 -1
- package/dist/lib.umd.js +13 -13
- package/dist/lib.umd.js.map +1 -1
- package/dist/style.css +1 -1
- package/package.json +1 -1
- package/src/components/content/Content.d.ts +1 -0
- package/src/components/message/Message.d.ts +37 -0
- package/src/components/message/Message.vue +49 -0
- package/src/index.ts +3 -1
- package/src/style/componentes.scss +1 -0
- package/src/style/src/_mixins.scss +16 -0
- package/src/style/src/components/_message.scss +47 -0
package/dist/lib.es.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var Je = (t, e, n) => (
|
|
4
|
-
import { ref as
|
|
1
|
+
var Ws = Object.defineProperty;
|
|
2
|
+
var qs = (t, e, n) => e in t ? Ws(t, e, { enumerable: !0, configurable: !0, writable: !0, value: n }) : t[e] = n;
|
|
3
|
+
var Je = (t, e, n) => (qs(t, typeof e != "symbol" ? e + "" : e, n), n);
|
|
4
|
+
import { ref as Ve, openBlock as oe, createElementBlock as ue, createElementVNode as Y, defineComponent as Me, normalizeStyle as Dt, normalizeClass as pe, mergeProps as Ks, createBlock as at, Fragment as co, createTextVNode as Kn, toDisplayString as fn, createCommentVNode as yt, useSlots as Gs, watch as qo, Teleport as Js, unref as je, withModifiers as In, createVNode as tt, Transition as Ys, withCtx as bt, renderSlot as Pe, computed as Gn, onMounted as hn, createStaticVNode as Xs, resolveComponent as Sr, onBeforeUnmount as Zs, renderList as Qs } from "vue";
|
|
5
5
|
class ei {
|
|
6
6
|
constructor() {
|
|
7
|
-
Je(this, "_visible",
|
|
7
|
+
Je(this, "_visible", Ve(!1));
|
|
8
8
|
}
|
|
9
9
|
get IsVisible() {
|
|
10
10
|
return this._visible.value === !0;
|
|
@@ -19,8 +19,8 @@ class ei {
|
|
|
19
19
|
this._visible.value = !0;
|
|
20
20
|
}
|
|
21
21
|
}
|
|
22
|
-
const ti = new ei(),
|
|
23
|
-
class
|
|
22
|
+
const ti = new ei(), Tr = () => ti;
|
|
23
|
+
class Qe {
|
|
24
24
|
/**
|
|
25
25
|
* Creates a new instance of the CssClassBuilder class.
|
|
26
26
|
* @param value The initial value of the CSS class string.
|
|
@@ -66,8 +66,8 @@ function ni(t = []) {
|
|
|
66
66
|
);
|
|
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
|
-
var
|
|
70
|
-
const
|
|
69
|
+
var pn = /* @__PURE__ */ ((t) => (t.Primary = "primary", t.Secondary = "secondary", t.Info = "info", t.Success = "success", t.Help = "help", t.Warn = "warn", t.Error = "error", t))(pn || {}), Ft = /* @__PURE__ */ ((t) => (t.Pequeno = "sm", t.Medio = "md", t.Grande = "lg", t))(Ft || {});
|
|
70
|
+
const Pr = (t, e) => {
|
|
71
71
|
const n = t.__vccOpts || t;
|
|
72
72
|
for (const [o, r] of e)
|
|
73
73
|
n[o] = r;
|
|
@@ -87,9 +87,9 @@ const Tr = (t, e) => {
|
|
|
87
87
|
ii
|
|
88
88
|
];
|
|
89
89
|
function ci(t, e) {
|
|
90
|
-
return oe(),
|
|
90
|
+
return oe(), ue("div", si, ai);
|
|
91
91
|
}
|
|
92
|
-
const li = /* @__PURE__ */
|
|
92
|
+
const li = /* @__PURE__ */ Pr(ri, [["render", ci]]), ui = ["disabled", "tabindex"], di = ["data-color"], cn = /* @__PURE__ */ Me({
|
|
93
93
|
__name: "Icon",
|
|
94
94
|
props: {
|
|
95
95
|
icone: {},
|
|
@@ -101,38 +101,38 @@ const li = /* @__PURE__ */ Tr(ri, [["render", ci]]), ui = ["disabled", "tabindex
|
|
|
101
101
|
button: { type: Boolean },
|
|
102
102
|
tamanho: { default: Ft.Medio },
|
|
103
103
|
dot: { type: Boolean },
|
|
104
|
-
dotColor: { default:
|
|
104
|
+
dotColor: { default: pn.Error },
|
|
105
105
|
buttonProps: {}
|
|
106
106
|
},
|
|
107
107
|
setup(t) {
|
|
108
108
|
const e = t;
|
|
109
109
|
function n() {
|
|
110
|
-
return new
|
|
110
|
+
return new Qe(`${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
|
-
return (o, r) => (oe(),
|
|
112
|
+
return (o, r) => (oe(), ue("div", {
|
|
113
113
|
style: Dt(e.style),
|
|
114
|
-
class:
|
|
114
|
+
class: pe(n())
|
|
115
115
|
}, [
|
|
116
|
-
Y("button",
|
|
116
|
+
Y("button", Ks({
|
|
117
117
|
class: "material-symbols-outlined",
|
|
118
118
|
disabled: e.disabled || e.loading
|
|
119
119
|
}, e.buttonProps, {
|
|
120
120
|
tabindex: e.button ? void 0 : -1
|
|
121
121
|
}), [
|
|
122
|
-
e.loading ? (oe(), at(li, { key: 0 })) : (oe(),
|
|
123
|
-
|
|
122
|
+
e.loading ? (oe(), at(li, { key: 0 })) : (oe(), ue(co, { key: 1 }, [
|
|
123
|
+
Kn(fn(e.icone), 1)
|
|
124
124
|
], 64))
|
|
125
125
|
], 16, ui),
|
|
126
|
-
e.dot ? (oe(),
|
|
126
|
+
e.dot ? (oe(), ue("span", {
|
|
127
127
|
key: 0,
|
|
128
128
|
"data-color": e.dotColor
|
|
129
|
-
}, null, 8, di)) :
|
|
129
|
+
}, null, 8, di)) : yt("", !0)
|
|
130
130
|
], 6));
|
|
131
131
|
}
|
|
132
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
|
+
}, yi = /* @__PURE__ */ Me({
|
|
136
136
|
__name: "Drawer",
|
|
137
137
|
props: {
|
|
138
138
|
visible: { type: Boolean, default: !1 },
|
|
@@ -141,14 +141,14 @@ const li = /* @__PURE__ */ Tr(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 =
|
|
145
|
-
function
|
|
144
|
+
const n = t, o = e, r = Gs(), s = Ve(n.visible), a = Ve(!1), d = Ve(0), l = oi();
|
|
145
|
+
function b() {
|
|
146
146
|
s.value = !1;
|
|
147
147
|
}
|
|
148
148
|
function w(D) {
|
|
149
|
-
(D.key === "Escape" || D.code === "Escape") &&
|
|
149
|
+
(D.key === "Escape" || D.code === "Escape") && b();
|
|
150
150
|
}
|
|
151
|
-
function
|
|
151
|
+
function y() {
|
|
152
152
|
o("open"), window.document.addEventListener("keydown", w, !0);
|
|
153
153
|
}
|
|
154
154
|
function G(D) {
|
|
@@ -162,71 +162,71 @@ const li = /* @__PURE__ */ Tr(ri, [["render", ci]]), ui = ["disabled", "tabindex
|
|
|
162
162
|
window.document.removeEventListener("keydown", w, !0), a.value = !1;
|
|
163
163
|
}
|
|
164
164
|
function F() {
|
|
165
|
-
return new
|
|
165
|
+
return new Qe("sf-mask sf-mask-overlay").AddClass("right", n.position === "right").AddClass("bottom", n.position === "bottom").AddClass("full", n.position === "full").AddClass("sf-mask-overlay-enter", n.visible === !0).Build();
|
|
166
166
|
}
|
|
167
|
-
return
|
|
167
|
+
return qo(
|
|
168
168
|
() => n.visible,
|
|
169
169
|
(D) => {
|
|
170
170
|
s.value = D;
|
|
171
171
|
}
|
|
172
|
-
),
|
|
172
|
+
), qo(
|
|
173
173
|
() => s.value,
|
|
174
174
|
(D) => {
|
|
175
175
|
o("update:visible", D), D && (a.value = !0);
|
|
176
176
|
}
|
|
177
|
-
), (D, Q) => (oe(), at(
|
|
178
|
-
a.value ? (oe(),
|
|
177
|
+
), (D, Q) => (oe(), at(Js, { to: "body" }, [
|
|
178
|
+
a.value ? (oe(), ue("div", {
|
|
179
179
|
key: 0,
|
|
180
|
-
id:
|
|
181
|
-
class:
|
|
180
|
+
id: je(l),
|
|
181
|
+
class: pe(F()),
|
|
182
182
|
style: Dt({ zIndex: d.value - 1 }),
|
|
183
|
-
onClick:
|
|
183
|
+
onClick: In(b, ["stop"])
|
|
184
184
|
}, [
|
|
185
|
-
|
|
185
|
+
tt(Ys, {
|
|
186
186
|
name: "sf-drawer",
|
|
187
187
|
appear: "",
|
|
188
188
|
onBeforeEnter: G,
|
|
189
|
-
onEnter:
|
|
189
|
+
onEnter: y,
|
|
190
190
|
onBeforeLeave: M,
|
|
191
191
|
onAfterLeave: I
|
|
192
192
|
}, {
|
|
193
|
-
default:
|
|
194
|
-
s.value ? (oe(),
|
|
193
|
+
default: bt(() => [
|
|
194
|
+
s.value ? (oe(), ue("div", {
|
|
195
195
|
key: 0,
|
|
196
|
-
class:
|
|
196
|
+
class: pe([
|
|
197
197
|
"sf-drawer",
|
|
198
198
|
{
|
|
199
|
-
"sf-drawer-with-footer": !!
|
|
199
|
+
"sf-drawer-with-footer": !!je(r).footer
|
|
200
200
|
}
|
|
201
201
|
]),
|
|
202
202
|
style: Dt(n.style),
|
|
203
203
|
role: "dialog",
|
|
204
|
-
onClick: Q[0] || (Q[0] =
|
|
204
|
+
onClick: Q[0] || (Q[0] = In((ne) => D.void, ["stop"]))
|
|
205
205
|
}, [
|
|
206
206
|
Y("div", hi, [
|
|
207
207
|
Y("span", pi, [
|
|
208
|
-
|
|
208
|
+
Pe(D.$slots, "title")
|
|
209
209
|
]),
|
|
210
|
-
|
|
210
|
+
tt(cn, {
|
|
211
211
|
button: !0,
|
|
212
212
|
icone: "close",
|
|
213
|
-
onClick:
|
|
213
|
+
onClick: In(b, ["stop"])
|
|
214
214
|
}, null, 8, ["onClick"])
|
|
215
215
|
]),
|
|
216
216
|
Y("div", mi, [
|
|
217
|
-
|
|
217
|
+
Pe(D.$slots, "default")
|
|
218
218
|
]),
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
])) :
|
|
222
|
-
], 6)) :
|
|
219
|
+
je(r).footer ? (oe(), ue("div", gi, [
|
|
220
|
+
Pe(D.$slots, "footer")
|
|
221
|
+
])) : yt("", !0)
|
|
222
|
+
], 6)) : yt("", !0)
|
|
223
223
|
]),
|
|
224
224
|
_: 3
|
|
225
225
|
})
|
|
226
|
-
], 14, fi)) :
|
|
226
|
+
], 14, fi)) : yt("", !0)
|
|
227
227
|
]));
|
|
228
228
|
}
|
|
229
|
-
}),
|
|
229
|
+
}), bi = ["id", "name", "disabled", "data-color", "form", "type"], wi = { class: "sf-button-label" }, vi = /* @__PURE__ */ Me({
|
|
230
230
|
__name: "Button",
|
|
231
231
|
props: {
|
|
232
232
|
icon: {},
|
|
@@ -248,12 +248,12 @@ const li = /* @__PURE__ */ Tr(ri, [["render", ci]]), ui = ["disabled", "tabindex
|
|
|
248
248
|
setup(t) {
|
|
249
249
|
const e = t;
|
|
250
250
|
function n() {
|
|
251
|
-
return new
|
|
251
|
+
return new Qe(`${e.class ?? ""} sf-button`).AddClass("sf-component-loading", e.loading).AddClass("sf-component-disabled", e.disabled).AddClass("sf-button-small", e.size === "sm").AddClass("sf-button-medium", e.size === "md").AddClass("sf-button-large", e.size === "lg").AddClass("sf-button-filled", e.variant === "filled").AddClass("sf-button-text", e.variant === "text").AddClass("sf-button-outlined", e.variant === "outlined").AddClass("sf-button-with-icon", !!e.icon).AddClass("sf-ripple").Build();
|
|
252
252
|
}
|
|
253
|
-
return (o, r) => (oe(),
|
|
253
|
+
return (o, r) => (oe(), ue("button", {
|
|
254
254
|
id: e.id,
|
|
255
255
|
name: e.name,
|
|
256
|
-
class:
|
|
256
|
+
class: pe(n()),
|
|
257
257
|
style: Dt(e.style),
|
|
258
258
|
disabled: e.disabled || e.loading,
|
|
259
259
|
"data-color": e.color,
|
|
@@ -271,28 +271,28 @@ const li = /* @__PURE__ */ Tr(ri, [["render", ci]]), ui = ["disabled", "tabindex
|
|
|
271
271
|
loading: !0,
|
|
272
272
|
size: e.size,
|
|
273
273
|
"button-props": { tabindex: -1 }
|
|
274
|
-
}, null, 8, ["size"])) :
|
|
274
|
+
}, null, 8, ["size"])) : yt("", !0),
|
|
275
275
|
Y("span", wi, [
|
|
276
|
-
|
|
276
|
+
Pe(o.$slots, "default")
|
|
277
277
|
])
|
|
278
|
-
], 14,
|
|
278
|
+
], 14, bi));
|
|
279
279
|
}
|
|
280
|
-
}),
|
|
280
|
+
}), Rr = "SweetAlert2:", Ai = (t) => {
|
|
281
281
|
const e = [];
|
|
282
282
|
for (let n = 0; n < t.length; n++)
|
|
283
283
|
e.indexOf(t[n]) === -1 && e.push(t[n]);
|
|
284
284
|
return e;
|
|
285
|
-
},
|
|
286
|
-
console.warn(`${
|
|
285
|
+
}, lo = (t) => t.charAt(0).toUpperCase() + t.slice(1), Le = (t) => Array.prototype.slice.call(t), Se = (t) => {
|
|
286
|
+
console.warn(`${Rr} ${typeof t == "object" ? t.join(" ") : t}`);
|
|
287
287
|
}, ut = (t) => {
|
|
288
|
-
console.error(`${
|
|
289
|
-
},
|
|
290
|
-
|
|
288
|
+
console.error(`${Rr} ${t}`);
|
|
289
|
+
}, Ko = [], Ei = (t) => {
|
|
290
|
+
Ko.includes(t) || (Ko.push(t), Se(t));
|
|
291
291
|
}, ki = (t, e) => {
|
|
292
292
|
Ei(
|
|
293
293
|
`"${t}" is deprecated and will be removed in the next major release. Please use "${e}" instead.`
|
|
294
294
|
);
|
|
295
|
-
},
|
|
295
|
+
}, mn = (t) => typeof t == "function" ? t() : t, uo = (t) => t && typeof t.toPromise == "function", jt = (t) => uo(t) ? t.toPromise() : Promise.resolve(t), fo = (t) => t && Promise.resolve(t) === t, wt = {
|
|
296
296
|
title: "",
|
|
297
297
|
titleText: "",
|
|
298
298
|
text: "",
|
|
@@ -424,7 +424,7 @@ const li = /* @__PURE__ */ Tr(ri, [["render", ci]]), ui = ["disabled", "tabindex
|
|
|
424
424
|
"title",
|
|
425
425
|
"titleText",
|
|
426
426
|
"willClose"
|
|
427
|
-
],
|
|
427
|
+
], _i = {}, Ci = [
|
|
428
428
|
"allowOutsideClick",
|
|
429
429
|
"allowEnterKey",
|
|
430
430
|
"backdrop",
|
|
@@ -434,22 +434,22 @@ const li = /* @__PURE__ */ Tr(ri, [["render", ci]]), ui = ["disabled", "tabindex
|
|
|
434
434
|
"returnFocus",
|
|
435
435
|
"heightAuto",
|
|
436
436
|
"keydownListenerCapture"
|
|
437
|
-
],
|
|
438
|
-
|
|
437
|
+
], Lr = (t) => Object.prototype.hasOwnProperty.call(wt, t), Or = (t) => xi.indexOf(t) !== -1, Jn = (t) => _i[t], Si = (t) => {
|
|
438
|
+
Lr(t) || Se(`Unknown parameter "${t}"`);
|
|
439
439
|
}, Ti = (t) => {
|
|
440
|
-
|
|
440
|
+
Ci.includes(t) && Se(`The parameter "${t}" is incompatible with toasts`);
|
|
441
441
|
}, Pi = (t) => {
|
|
442
|
-
|
|
442
|
+
Jn(t) && ki(t, Jn(t));
|
|
443
443
|
}, Ri = (t) => {
|
|
444
|
-
!t.backdrop && t.allowOutsideClick &&
|
|
444
|
+
!t.backdrop && t.allowOutsideClick && Se('"allowOutsideClick" parameter requires `backdrop` parameter to be set to `true`');
|
|
445
445
|
for (const e in t)
|
|
446
|
-
|
|
447
|
-
}, Li = "swal2-",
|
|
446
|
+
Si(e), t.toast && Ti(e), Pi(e);
|
|
447
|
+
}, Li = "swal2-", Ir = (t) => {
|
|
448
448
|
const e = {};
|
|
449
449
|
for (const n in t)
|
|
450
450
|
e[t[n]] = Li + t[n];
|
|
451
451
|
return e;
|
|
452
|
-
}, f =
|
|
452
|
+
}, f = Ir([
|
|
453
453
|
"container",
|
|
454
454
|
"shown",
|
|
455
455
|
"height-auto",
|
|
@@ -519,10 +519,10 @@ const li = /* @__PURE__ */ Tr(ri, [["render", ci]]), ui = ["disabled", "tabindex
|
|
|
519
519
|
"icon-info",
|
|
520
520
|
"icon-question",
|
|
521
521
|
"icon-error"
|
|
522
|
-
]), Nt =
|
|
523
|
-
const e =
|
|
522
|
+
]), Nt = Ir(["success", "warning", "info", "question", "error"]), ge = () => document.body.querySelector(`.${f.container}`), zt = (t) => {
|
|
523
|
+
const e = ge();
|
|
524
524
|
return e ? e.querySelector(t) : null;
|
|
525
|
-
}, Ne = (t) => zt(`.${t}`), Z = () => Ne(f.popup), Vt = () => Ne(f.icon),
|
|
525
|
+
}, Ne = (t) => zt(`.${t}`), Z = () => Ne(f.popup), Vt = () => Ne(f.icon), Fr = () => Ne(f.title), ln = () => Ne(f["html-container"]), Br = () => Ne(f.image), Nr = () => Ne(f["progress-steps"]), gn = () => Ne(f["validation-message"]), Ue = () => zt(`.${f.actions} .${f.confirm}`), nt = () => zt(`.${f.actions} .${f.deny}`), Oi = () => Ne(f["input-label"]), xt = () => zt(`.${f.loader}`), ct = () => zt(`.${f.actions} .${f.cancel}`), Wt = () => Ne(f.actions), Ur = () => Ne(f.footer), yn = () => Ne(f["timer-progress-bar"]), ho = () => Ne(f.close), Ii = `
|
|
526
526
|
a[href],
|
|
527
527
|
area[href],
|
|
528
528
|
input:not([disabled]),
|
|
@@ -537,24 +537,24 @@ const li = /* @__PURE__ */ Tr(ri, [["render", ci]]), ui = ["disabled", "tabindex
|
|
|
537
537
|
audio[controls],
|
|
538
538
|
video[controls],
|
|
539
539
|
summary
|
|
540
|
-
`,
|
|
541
|
-
const t =
|
|
540
|
+
`, po = () => {
|
|
541
|
+
const t = Le(
|
|
542
542
|
Z().querySelectorAll('[tabindex]:not([tabindex="-1"]):not([tabindex="0"])')
|
|
543
543
|
).sort((n, o) => {
|
|
544
544
|
const r = parseInt(n.getAttribute("tabindex")), s = parseInt(o.getAttribute("tabindex"));
|
|
545
545
|
return r > s ? 1 : r < s ? -1 : 0;
|
|
546
|
-
}), e =
|
|
546
|
+
}), e = Le(Z().querySelectorAll(Ii)).filter(
|
|
547
547
|
(n) => n.getAttribute("tabindex") !== "-1"
|
|
548
548
|
);
|
|
549
|
-
return Ai(t.concat(e)).filter((n) =>
|
|
550
|
-
},
|
|
549
|
+
return Ai(t.concat(e)).filter((n) => Re(n));
|
|
550
|
+
}, mo = () => Ye(document.body, f.shown) && !Ye(document.body, f["toast-shown"]) && !Ye(document.body, f["no-backdrop"]), bn = () => Z() && Ye(Z(), f.toast), Fi = () => Z().hasAttribute("data-loading"), vt = {
|
|
551
551
|
previousBodyPadding: null
|
|
552
|
-
},
|
|
552
|
+
}, me = (t, e) => {
|
|
553
553
|
if (t.textContent = "", e) {
|
|
554
554
|
const o = new DOMParser().parseFromString(e, "text/html");
|
|
555
|
-
|
|
555
|
+
Le(o.querySelector("head").childNodes).forEach((r) => {
|
|
556
556
|
t.appendChild(r);
|
|
557
|
-
}),
|
|
557
|
+
}), Le(o.querySelector("body").childNodes).forEach((r) => {
|
|
558
558
|
t.appendChild(r);
|
|
559
559
|
});
|
|
560
560
|
}
|
|
@@ -567,18 +567,18 @@ const li = /* @__PURE__ */ Tr(ri, [["render", ci]]), ui = ["disabled", "tabindex
|
|
|
567
567
|
return !1;
|
|
568
568
|
return !0;
|
|
569
569
|
}, Bi = (t, e) => {
|
|
570
|
-
|
|
570
|
+
Le(t.classList).forEach((n) => {
|
|
571
571
|
!Object.values(f).includes(n) && !Object.values(Nt).includes(n) && !Object.values(e.showClass).includes(n) && t.classList.remove(n);
|
|
572
572
|
});
|
|
573
573
|
}, Fe = (t, e, n) => {
|
|
574
574
|
if (Bi(t, e), e.customClass && e.customClass[n]) {
|
|
575
575
|
if (typeof e.customClass[n] != "string" && !e.customClass[n].forEach)
|
|
576
|
-
return
|
|
576
|
+
return Se(
|
|
577
577
|
`Invalid type of customClass.${n}! Expected string or iterable object, got "${typeof e.customClass[n]}"`
|
|
578
578
|
);
|
|
579
579
|
X(t, e.customClass[n]);
|
|
580
580
|
}
|
|
581
|
-
},
|
|
581
|
+
}, go = (t, e) => {
|
|
582
582
|
if (!e)
|
|
583
583
|
return null;
|
|
584
584
|
switch (e) {
|
|
@@ -595,51 +595,51 @@ const li = /* @__PURE__ */ Tr(ri, [["render", ci]]), ui = ["disabled", "tabindex
|
|
|
595
595
|
default:
|
|
596
596
|
return t.querySelector(`.${f.popup} > .${f.input}`);
|
|
597
597
|
}
|
|
598
|
-
},
|
|
598
|
+
}, Dr = (t) => {
|
|
599
599
|
if (t.focus(), t.type !== "file") {
|
|
600
600
|
const e = t.value;
|
|
601
601
|
t.value = "", t.value = e;
|
|
602
602
|
}
|
|
603
|
-
},
|
|
603
|
+
}, Mr = (t, e, n) => {
|
|
604
604
|
!t || !e || (typeof e == "string" && (e = e.split(/\s+/).filter(Boolean)), e.forEach((o) => {
|
|
605
605
|
Array.isArray(t) ? t.forEach((r) => {
|
|
606
606
|
n ? r.classList.add(o) : r.classList.remove(o);
|
|
607
607
|
}) : n ? t.classList.add(o) : t.classList.remove(o);
|
|
608
608
|
}));
|
|
609
609
|
}, X = (t, e) => {
|
|
610
|
-
|
|
611
|
-
},
|
|
612
|
-
|
|
613
|
-
},
|
|
614
|
-
const n =
|
|
610
|
+
Mr(t, e, !0);
|
|
611
|
+
}, We = (t, e) => {
|
|
612
|
+
Mr(t, e, !1);
|
|
613
|
+
}, et = (t, e) => {
|
|
614
|
+
const n = Le(t.childNodes);
|
|
615
615
|
for (let o = 0; o < n.length; o++)
|
|
616
616
|
if (Ye(n[o], e))
|
|
617
617
|
return n[o];
|
|
618
618
|
}, Ut = (t, e, n) => {
|
|
619
619
|
n === `${parseInt(n)}` && (n = parseInt(n)), n || parseInt(n) === 0 ? t.style[e] = typeof n == "number" ? `${n}px` : n : t.style.removeProperty(e);
|
|
620
|
-
},
|
|
620
|
+
}, de = (t, e = "flex") => {
|
|
621
621
|
t.style.display = e;
|
|
622
|
-
},
|
|
622
|
+
}, ye = (t) => {
|
|
623
623
|
t.style.display = "none";
|
|
624
|
-
},
|
|
624
|
+
}, Go = (t, e, n, o) => {
|
|
625
625
|
const r = t.querySelector(e);
|
|
626
626
|
r && (r.style[n] = o);
|
|
627
|
-
},
|
|
628
|
-
e ?
|
|
629
|
-
},
|
|
627
|
+
}, wn = (t, e, n) => {
|
|
628
|
+
e ? de(t, n) : ye(t);
|
|
629
|
+
}, Re = (t) => !!(t && (t.offsetWidth || t.offsetHeight || t.getClientRects().length)), Ni = () => !Re(Ue()) && !Re(nt()) && !Re(ct()), Jo = (t) => t.scrollHeight > t.clientHeight, $r = (t) => {
|
|
630
630
|
const e = window.getComputedStyle(t), n = parseFloat(e.getPropertyValue("animation-duration") || "0"), o = parseFloat(e.getPropertyValue("transition-duration") || "0");
|
|
631
631
|
return n > 0 || o > 0;
|
|
632
|
-
},
|
|
633
|
-
const n =
|
|
634
|
-
|
|
632
|
+
}, yo = (t, e = !1) => {
|
|
633
|
+
const n = yn();
|
|
634
|
+
Re(n) && (e && (n.style.transition = "none", n.style.width = "100%"), setTimeout(() => {
|
|
635
635
|
n.style.transition = `width ${t / 1e3}s linear`, n.style.width = "0%";
|
|
636
636
|
}, 10));
|
|
637
637
|
}, Ui = () => {
|
|
638
|
-
const t =
|
|
638
|
+
const t = yn(), e = parseInt(window.getComputedStyle(t).width);
|
|
639
639
|
t.style.removeProperty("transition"), t.style.width = "100%";
|
|
640
640
|
const n = parseInt(window.getComputedStyle(t).width), o = e / n * 100;
|
|
641
641
|
t.style.removeProperty("transition"), t.style.width = `${o}%`;
|
|
642
|
-
},
|
|
642
|
+
}, Hr = () => typeof window > "u" || typeof document > "u", Di = 100, V = {}, Mi = () => {
|
|
643
643
|
V.previousActiveElement && V.previousActiveElement.focus ? (V.previousActiveElement.focus(), V.previousActiveElement = null) : document.body && document.body.focus();
|
|
644
644
|
}, $i = (t) => new Promise((e) => {
|
|
645
645
|
if (!t)
|
|
@@ -682,39 +682,39 @@ const li = /* @__PURE__ */ Tr(ri, [["render", ci]]), ui = ["disabled", "tabindex
|
|
|
682
682
|
</div>
|
|
683
683
|
</div>
|
|
684
684
|
`.replace(/(^|\n)\s*/g, ""), ji = () => {
|
|
685
|
-
const t =
|
|
686
|
-
return t ? (t.remove(),
|
|
685
|
+
const t = ge();
|
|
686
|
+
return t ? (t.remove(), We(
|
|
687
687
|
[document.documentElement, document.body],
|
|
688
688
|
[f["no-backdrop"], f["toast-shown"], f["has-column"]]
|
|
689
689
|
), !0) : !1;
|
|
690
|
-
},
|
|
690
|
+
}, it = () => {
|
|
691
691
|
V.currentInstance.resetValidationMessage();
|
|
692
692
|
}, zi = () => {
|
|
693
|
-
const t = Z(), e =
|
|
694
|
-
e.oninput =
|
|
695
|
-
|
|
693
|
+
const t = Z(), e = et(t, f.input), n = et(t, f.file), o = t.querySelector(`.${f.range} input`), r = t.querySelector(`.${f.range} output`), s = et(t, f.select), a = t.querySelector(`.${f.checkbox} input`), d = et(t, f.textarea);
|
|
694
|
+
e.oninput = it, n.onchange = it, s.onchange = it, a.onchange = it, d.oninput = it, o.oninput = () => {
|
|
695
|
+
it(), r.value = o.value;
|
|
696
696
|
}, o.onchange = () => {
|
|
697
|
-
|
|
697
|
+
it(), o.nextSibling.value = o.value;
|
|
698
698
|
};
|
|
699
699
|
}, Vi = (t) => typeof t == "string" ? document.querySelector(t) : t, Wi = (t) => {
|
|
700
700
|
const e = Z();
|
|
701
701
|
e.setAttribute("role", t.toast ? "alert" : "dialog"), e.setAttribute("aria-live", t.toast ? "polite" : "assertive"), t.toast || e.setAttribute("aria-modal", "true");
|
|
702
702
|
}, qi = (t) => {
|
|
703
|
-
window.getComputedStyle(t).direction === "rtl" && X(
|
|
703
|
+
window.getComputedStyle(t).direction === "rtl" && X(ge(), f.rtl);
|
|
704
704
|
}, Ki = (t) => {
|
|
705
705
|
const e = ji();
|
|
706
|
-
if (
|
|
706
|
+
if (Hr()) {
|
|
707
707
|
ut("SweetAlert2 requires document to initialize");
|
|
708
708
|
return;
|
|
709
709
|
}
|
|
710
710
|
const n = document.createElement("div");
|
|
711
|
-
n.className = f.container, e && X(n, f["no-transition"]),
|
|
711
|
+
n.className = f.container, e && X(n, f["no-transition"]), me(n, Hi);
|
|
712
712
|
const o = Vi(t.target);
|
|
713
713
|
o.appendChild(n), Wi(t), qi(o), zi();
|
|
714
714
|
}, bo = (t, e) => {
|
|
715
|
-
t instanceof HTMLElement ? e.appendChild(t) : typeof t == "object" ? Gi(t, e) : t &&
|
|
715
|
+
t instanceof HTMLElement ? e.appendChild(t) : typeof t == "object" ? Gi(t, e) : t && me(e, t);
|
|
716
716
|
}, Gi = (t, e) => {
|
|
717
|
-
t.jquery ? Ji(e, t) :
|
|
717
|
+
t.jquery ? Ji(e, t) : me(e, t.toString());
|
|
718
718
|
}, Ji = (t, e) => {
|
|
719
719
|
if (t.textContent = "", 0 in e)
|
|
720
720
|
for (let n = 0; n in e; n++)
|
|
@@ -722,7 +722,7 @@ const li = /* @__PURE__ */ Tr(ri, [["render", ci]]), ui = ["disabled", "tabindex
|
|
|
722
722
|
else
|
|
723
723
|
t.appendChild(e.cloneNode(!0));
|
|
724
724
|
}, Mt = (() => {
|
|
725
|
-
if (
|
|
725
|
+
if (Hr())
|
|
726
726
|
return !1;
|
|
727
727
|
const t = document.createElement("div"), e = {
|
|
728
728
|
WebkitAnimation: "webkitAnimationEnd",
|
|
@@ -741,25 +741,25 @@ const li = /* @__PURE__ */ Tr(ri, [["render", ci]]), ui = ["disabled", "tabindex
|
|
|
741
741
|
return document.body.removeChild(t), e;
|
|
742
742
|
}, Xi = (t, e) => {
|
|
743
743
|
const n = Wt(), o = xt();
|
|
744
|
-
!e.showConfirmButton && !e.showDenyButton && !e.showCancelButton ?
|
|
744
|
+
!e.showConfirmButton && !e.showDenyButton && !e.showCancelButton ? ye(n) : de(n), Fe(n, e, "actions"), Zi(n, o, e), me(o, e.loaderHtml), Fe(o, e, "loader");
|
|
745
745
|
};
|
|
746
746
|
function Zi(t, e, n) {
|
|
747
|
-
const o = Ue(), r =
|
|
748
|
-
|
|
747
|
+
const o = Ue(), r = nt(), s = ct();
|
|
748
|
+
Fn(o, "confirm", n), Fn(r, "deny", n), Fn(s, "cancel", n), Qi(o, r, s, n), n.reverseButtons && (n.toast ? (t.insertBefore(s, o), t.insertBefore(r, o)) : (t.insertBefore(s, e), t.insertBefore(r, e), t.insertBefore(o, e)));
|
|
749
749
|
}
|
|
750
750
|
function Qi(t, e, n, o) {
|
|
751
751
|
if (!o.buttonsStyling)
|
|
752
|
-
return
|
|
752
|
+
return We([t, e, n], f.styled);
|
|
753
753
|
X([t, e, n], f.styled), o.confirmButtonColor && (t.style.backgroundColor = o.confirmButtonColor, X(t, f["default-outline"])), o.denyButtonColor && (e.style.backgroundColor = o.denyButtonColor, X(e, f["default-outline"])), o.cancelButtonColor && (n.style.backgroundColor = o.cancelButtonColor, X(n, f["default-outline"]));
|
|
754
754
|
}
|
|
755
|
-
function
|
|
756
|
-
|
|
755
|
+
function Fn(t, e, n) {
|
|
756
|
+
wn(t, n[`show${lo(e)}Button`], "inline-block"), me(t, n[`${e}ButtonText`]), t.setAttribute("aria-label", n[`${e}ButtonAriaLabel`]), t.className = f[e], Fe(t, n, `${e}Button`), X(t, n[`${e}ButtonClass`]);
|
|
757
757
|
}
|
|
758
758
|
function ea(t, e) {
|
|
759
759
|
typeof e == "string" ? t.style.background = e : e || X([document.documentElement, document.body], f["no-backdrop"]);
|
|
760
760
|
}
|
|
761
761
|
function ta(t, e) {
|
|
762
|
-
e in f ? X(t, f[e]) : (
|
|
762
|
+
e in f ? X(t, f[e]) : (Se('The "position" parameter is not valid, defaulting to "center"'), X(t, f.center));
|
|
763
763
|
}
|
|
764
764
|
function na(t, e) {
|
|
765
765
|
if (e && typeof e == "string") {
|
|
@@ -768,7 +768,7 @@ function na(t, e) {
|
|
|
768
768
|
}
|
|
769
769
|
}
|
|
770
770
|
const oa = (t, e) => {
|
|
771
|
-
const n =
|
|
771
|
+
const n = ge();
|
|
772
772
|
n && (ea(n, e.backdrop), ta(n, e.position), na(n, e.grow), Fe(n, e, "container"));
|
|
773
773
|
}, q = {
|
|
774
774
|
awaitingPromise: /* @__PURE__ */ new WeakMap(),
|
|
@@ -778,17 +778,17 @@ const oa = (t, e) => {
|
|
|
778
778
|
}, ra = ["input", "file", "range", "select", "radio", "checkbox", "textarea"], sa = (t, e) => {
|
|
779
779
|
const n = Z(), o = q.innerParams.get(t), r = !o || e.input !== o.input;
|
|
780
780
|
ra.forEach((s) => {
|
|
781
|
-
const a = f[s], d =
|
|
782
|
-
ca(s, e.inputAttributes), d.className = a, r &&
|
|
781
|
+
const a = f[s], d = et(n, a);
|
|
782
|
+
ca(s, e.inputAttributes), d.className = a, r && ye(d);
|
|
783
783
|
}), e.input && (r && ia(e), la(e));
|
|
784
784
|
}, ia = (t) => {
|
|
785
|
-
if (!
|
|
785
|
+
if (!Ce[t.input])
|
|
786
786
|
return ut(
|
|
787
787
|
`Unexpected type of input! Expected "text", "email", "password", "number", "tel", "select", "radio", "checkbox", "textarea", "file" or "url", got "${t.input}"`
|
|
788
788
|
);
|
|
789
|
-
const e =
|
|
790
|
-
|
|
791
|
-
|
|
789
|
+
const e = jr(t.input), n = Ce[t.input](e, t);
|
|
790
|
+
de(n), setTimeout(() => {
|
|
791
|
+
Dr(n);
|
|
792
792
|
});
|
|
793
793
|
}, aa = (t) => {
|
|
794
794
|
for (let e = 0; e < t.attributes.length; e++) {
|
|
@@ -796,16 +796,16 @@ const oa = (t, e) => {
|
|
|
796
796
|
["type", "value", "style"].includes(n) || t.removeAttribute(n);
|
|
797
797
|
}
|
|
798
798
|
}, ca = (t, e) => {
|
|
799
|
-
const n =
|
|
799
|
+
const n = go(Z(), t);
|
|
800
800
|
if (n) {
|
|
801
801
|
aa(n);
|
|
802
802
|
for (const o in e)
|
|
803
803
|
n.setAttribute(o, e[o]);
|
|
804
804
|
}
|
|
805
805
|
}, la = (t) => {
|
|
806
|
-
const e =
|
|
806
|
+
const e = jr(t.input);
|
|
807
807
|
t.customClass && X(e, t.customClass.input);
|
|
808
|
-
},
|
|
808
|
+
}, wo = (t, e) => {
|
|
809
809
|
(!t.placeholder || e.inputPlaceholder) && (t.placeholder = e.inputPlaceholder);
|
|
810
810
|
}, qt = (t, e, n) => {
|
|
811
811
|
if (n.inputLabel) {
|
|
@@ -813,34 +813,34 @@ const oa = (t, e) => {
|
|
|
813
813
|
const o = document.createElement("label"), r = f["input-label"];
|
|
814
814
|
o.setAttribute("for", t.id), o.className = r, X(o, n.customClass.inputLabel), o.innerText = n.inputLabel, e.insertAdjacentElement("beforebegin", o);
|
|
815
815
|
}
|
|
816
|
-
},
|
|
816
|
+
}, jr = (t) => {
|
|
817
817
|
const e = f[t] ? f[t] : f.input;
|
|
818
|
-
return
|
|
819
|
-
},
|
|
820
|
-
|
|
818
|
+
return et(Z(), e);
|
|
819
|
+
}, Ce = {};
|
|
820
|
+
Ce.text = Ce.email = Ce.password = Ce.number = Ce.tel = Ce.url = (t, e) => (typeof e.inputValue == "string" || typeof e.inputValue == "number" ? t.value = e.inputValue : fo(e.inputValue) || Se(
|
|
821
821
|
`Unexpected type of inputValue! Expected "string", "number" or "Promise", got "${typeof e.inputValue}"`
|
|
822
|
-
), qt(t, t, e),
|
|
823
|
-
|
|
824
|
-
|
|
822
|
+
), qt(t, t, e), wo(t, e), t.type = e.input, t);
|
|
823
|
+
Ce.file = (t, e) => (qt(t, t, e), wo(t, e), t);
|
|
824
|
+
Ce.range = (t, e) => {
|
|
825
825
|
const n = t.querySelector("input"), o = t.querySelector("output");
|
|
826
826
|
return n.value = e.inputValue, n.type = e.input, o.value = e.inputValue, qt(n, t, e), t;
|
|
827
827
|
};
|
|
828
|
-
|
|
828
|
+
Ce.select = (t, e) => {
|
|
829
829
|
if (t.textContent = "", e.inputPlaceholder) {
|
|
830
830
|
const n = document.createElement("option");
|
|
831
|
-
|
|
831
|
+
me(n, e.inputPlaceholder), n.value = "", n.disabled = !0, n.selected = !0, t.appendChild(n);
|
|
832
832
|
}
|
|
833
833
|
return qt(t, t, e), t;
|
|
834
834
|
};
|
|
835
|
-
|
|
836
|
-
|
|
837
|
-
const n =
|
|
835
|
+
Ce.radio = (t) => (t.textContent = "", t);
|
|
836
|
+
Ce.checkbox = (t, e) => {
|
|
837
|
+
const n = go(Z(), "checkbox");
|
|
838
838
|
n.value = "1", n.id = f.checkbox, n.checked = !!e.inputValue;
|
|
839
839
|
const o = t.querySelector("span");
|
|
840
|
-
return
|
|
840
|
+
return me(o, e.inputPlaceholder), t;
|
|
841
841
|
};
|
|
842
|
-
|
|
843
|
-
t.value = e.inputValue,
|
|
842
|
+
Ce.textarea = (t, e) => {
|
|
843
|
+
t.value = e.inputValue, wo(t, e), qt(t, t, e);
|
|
844
844
|
const n = (o) => parseInt(window.getComputedStyle(o).marginLeft) + parseInt(window.getComputedStyle(o).marginRight);
|
|
845
845
|
return setTimeout(() => {
|
|
846
846
|
if ("MutationObserver" in window) {
|
|
@@ -857,28 +857,28 @@ _e.textarea = (t, e) => {
|
|
|
857
857
|
};
|
|
858
858
|
const ua = (t, e) => {
|
|
859
859
|
const n = ln();
|
|
860
|
-
Fe(n, e, "htmlContainer"), e.html ? (bo(e.html, n),
|
|
860
|
+
Fe(n, e, "htmlContainer"), e.html ? (bo(e.html, n), de(n, "block")) : e.text ? (n.textContent = e.text, de(n, "block")) : ye(n), sa(t, e);
|
|
861
861
|
}, da = (t, e) => {
|
|
862
|
-
const n =
|
|
863
|
-
|
|
862
|
+
const n = Ur();
|
|
863
|
+
wn(n, e.footer), e.footer && bo(e.footer, n), Fe(n, e, "footer");
|
|
864
864
|
}, fa = (t, e) => {
|
|
865
|
-
const n =
|
|
866
|
-
|
|
865
|
+
const n = ho();
|
|
866
|
+
me(n, e.closeButtonHtml), Fe(n, e, "closeButton"), wn(n, e.showCloseButton), n.setAttribute("aria-label", e.closeButtonAriaLabel);
|
|
867
867
|
}, ha = (t, e) => {
|
|
868
868
|
const n = q.innerParams.get(t), o = Vt();
|
|
869
869
|
if (n && e.icon === n.icon) {
|
|
870
|
-
|
|
870
|
+
Xo(o, e), Yo(o, e);
|
|
871
871
|
return;
|
|
872
872
|
}
|
|
873
873
|
if (!e.icon && !e.iconHtml)
|
|
874
|
-
return
|
|
874
|
+
return ye(o);
|
|
875
875
|
if (e.icon && Object.keys(Nt).indexOf(e.icon) === -1)
|
|
876
|
-
return ut(`Unknown icon! Expected "success", "error", "warning", "info" or "question", got "${e.icon}"`),
|
|
877
|
-
|
|
878
|
-
},
|
|
876
|
+
return ut(`Unknown icon! Expected "success", "error", "warning", "info" or "question", got "${e.icon}"`), ye(o);
|
|
877
|
+
de(o), Xo(o, e), Yo(o, e), X(o, e.showClass.icon);
|
|
878
|
+
}, Yo = (t, e) => {
|
|
879
879
|
for (const n in Nt)
|
|
880
|
-
e.icon !== n &&
|
|
881
|
-
X(t, Nt[e.icon]),
|
|
880
|
+
e.icon !== n && We(t, Nt[n]);
|
|
881
|
+
X(t, Nt[e.icon]), ya(t, e), pa(), Fe(t, e, "icon");
|
|
882
882
|
}, pa = () => {
|
|
883
883
|
const t = Z(), e = window.getComputedStyle(t).getPropertyValue("background-color"), n = t.querySelectorAll("[class^=swal2-success-circular-line], .swal2-success-fix");
|
|
884
884
|
for (let o = 0; o < n.length; o++)
|
|
@@ -893,13 +893,13 @@ const ua = (t, e) => {
|
|
|
893
893
|
<span class="swal2-x-mark-line-left"></span>
|
|
894
894
|
<span class="swal2-x-mark-line-right"></span>
|
|
895
895
|
</span>
|
|
896
|
-
`,
|
|
897
|
-
t.textContent = "", e.iconHtml ?
|
|
896
|
+
`, Xo = (t, e) => {
|
|
897
|
+
t.textContent = "", e.iconHtml ? me(t, Zo(e.iconHtml)) : e.icon === "success" ? me(t, ma) : e.icon === "error" ? me(t, ga) : me(t, Zo({
|
|
898
898
|
question: "?",
|
|
899
899
|
warning: "!",
|
|
900
900
|
info: "i"
|
|
901
901
|
}[e.icon]));
|
|
902
|
-
},
|
|
902
|
+
}, ya = (t, e) => {
|
|
903
903
|
if (e.iconColor) {
|
|
904
904
|
t.style.color = e.iconColor, t.style.borderColor = e.iconColor;
|
|
905
905
|
for (const n of [
|
|
@@ -908,25 +908,25 @@ const ua = (t, e) => {
|
|
|
908
908
|
".swal2-x-mark-line-left",
|
|
909
909
|
".swal2-x-mark-line-right"
|
|
910
910
|
])
|
|
911
|
-
|
|
912
|
-
|
|
911
|
+
Go(t, n, "backgroundColor", e.iconColor);
|
|
912
|
+
Go(t, ".swal2-success-ring", "borderColor", e.iconColor);
|
|
913
913
|
}
|
|
914
|
-
},
|
|
915
|
-
const n =
|
|
914
|
+
}, Zo = (t) => `<div class="${f["icon-content"]}">${t}</div>`, ba = (t, e) => {
|
|
915
|
+
const n = Br();
|
|
916
916
|
if (!e.imageUrl)
|
|
917
|
-
return
|
|
918
|
-
|
|
917
|
+
return ye(n);
|
|
918
|
+
de(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");
|
|
919
919
|
}, wa = (t) => {
|
|
920
920
|
const e = document.createElement("li");
|
|
921
|
-
return X(e, f["progress-step"]),
|
|
921
|
+
return X(e, f["progress-step"]), me(e, t), e;
|
|
922
922
|
}, va = (t) => {
|
|
923
923
|
const e = document.createElement("li");
|
|
924
924
|
return X(e, f["progress-step-line"]), t.progressStepsDistance && (e.style.width = t.progressStepsDistance), e;
|
|
925
925
|
}, Aa = (t, e) => {
|
|
926
|
-
const n =
|
|
926
|
+
const n = Nr();
|
|
927
927
|
if (!e.progressSteps || e.progressSteps.length === 0)
|
|
928
|
-
return
|
|
929
|
-
|
|
928
|
+
return ye(n);
|
|
929
|
+
de(n), n.textContent = "", e.currentProgressStep >= e.progressSteps.length && Se(
|
|
930
930
|
"Invalid currentProgressStep parameter, it should be less than progressSteps.length (currentProgressStep like JS arrays starts from 0)"
|
|
931
931
|
), e.progressSteps.forEach((o, r) => {
|
|
932
932
|
const s = wa(o);
|
|
@@ -936,55 +936,55 @@ const ua = (t, e) => {
|
|
|
936
936
|
}
|
|
937
937
|
});
|
|
938
938
|
}, Ea = (t, e) => {
|
|
939
|
-
const n =
|
|
940
|
-
|
|
939
|
+
const n = Fr();
|
|
940
|
+
wn(n, e.title || e.titleText, "block"), e.title && bo(e.title, n), e.titleText && (n.innerText = e.titleText), Fe(n, e, "title");
|
|
941
941
|
}, ka = (t, e) => {
|
|
942
|
-
const n =
|
|
943
|
-
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),
|
|
942
|
+
const n = ge(), o = Z();
|
|
943
|
+
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), ye(gn()), xa(o, e);
|
|
944
944
|
}, xa = (t, e) => {
|
|
945
|
-
t.className = `${f.popup} ${
|
|
946
|
-
},
|
|
947
|
-
ka(t, e), oa(t, e), Aa(t, e), ha(t, e),
|
|
948
|
-
},
|
|
945
|
+
t.className = `${f.popup} ${Re(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}`]);
|
|
946
|
+
}, zr = (t, e) => {
|
|
947
|
+
ka(t, e), oa(t, e), Aa(t, e), ha(t, e), ba(t, e), Ea(t, e), fa(t, e), ua(t, e), Xi(t, e), da(t, e), typeof e.didRender == "function" && e.didRender(Z());
|
|
948
|
+
}, _t = Object.freeze({
|
|
949
949
|
cancel: "cancel",
|
|
950
950
|
backdrop: "backdrop",
|
|
951
951
|
close: "close",
|
|
952
952
|
esc: "esc",
|
|
953
953
|
timer: "timer"
|
|
954
|
-
}),
|
|
955
|
-
|
|
956
|
-
e ===
|
|
954
|
+
}), _a = () => {
|
|
955
|
+
Le(document.body.children).forEach((e) => {
|
|
956
|
+
e === ge() || e.contains(ge()) || (e.hasAttribute("aria-hidden") && e.setAttribute("data-previous-aria-hidden", e.getAttribute("aria-hidden")), e.setAttribute("aria-hidden", "true"));
|
|
957
957
|
});
|
|
958
|
-
},
|
|
959
|
-
|
|
958
|
+
}, Vr = () => {
|
|
959
|
+
Le(document.body.children).forEach((e) => {
|
|
960
960
|
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");
|
|
961
961
|
});
|
|
962
|
-
},
|
|
962
|
+
}, Wr = ["swal-title", "swal-html", "swal-footer"], Ca = (t) => {
|
|
963
963
|
const e = typeof t.template == "string" ? document.querySelector(t.template) : t.template;
|
|
964
964
|
if (!e)
|
|
965
965
|
return {};
|
|
966
966
|
const n = e.content;
|
|
967
967
|
return Ia(n), Object.assign(
|
|
968
|
-
|
|
968
|
+
Sa(n),
|
|
969
969
|
Ta(n),
|
|
970
970
|
Pa(n),
|
|
971
971
|
Ra(n),
|
|
972
972
|
La(n),
|
|
973
|
-
Oa(n,
|
|
973
|
+
Oa(n, Wr)
|
|
974
974
|
);
|
|
975
|
-
},
|
|
975
|
+
}, Sa = (t) => {
|
|
976
976
|
const e = {};
|
|
977
|
-
return
|
|
977
|
+
return Le(t.querySelectorAll("swal-param")).forEach((n) => {
|
|
978
978
|
lt(n, ["name", "value"]);
|
|
979
979
|
const o = n.getAttribute("name"), r = n.getAttribute("value");
|
|
980
980
|
typeof wt[o] == "boolean" && r === "false" && (e[o] = !1), typeof wt[o] == "object" && (e[o] = JSON.parse(r));
|
|
981
981
|
}), e;
|
|
982
982
|
}, Ta = (t) => {
|
|
983
983
|
const e = {};
|
|
984
|
-
return
|
|
984
|
+
return Le(t.querySelectorAll("swal-button")).forEach((n) => {
|
|
985
985
|
lt(n, ["type", "color", "aria-label"]);
|
|
986
986
|
const o = n.getAttribute("type");
|
|
987
|
-
e[`${o}ButtonText`] = n.innerHTML, e[`show${
|
|
987
|
+
e[`${o}ButtonText`] = n.innerHTML, e[`show${lo(o)}Button`] = !0, n.hasAttribute("color") && (e[`${o}ButtonColor`] = n.getAttribute("color")), n.hasAttribute("aria-label") && (e[`${o}ButtonAriaLabel`] = n.getAttribute("aria-label"));
|
|
988
988
|
}), e;
|
|
989
989
|
}, Pa = (t) => {
|
|
990
990
|
const e = {}, n = t.querySelector("swal-image");
|
|
@@ -996,7 +996,7 @@ const ua = (t, e) => {
|
|
|
996
996
|
const e = {}, n = t.querySelector("swal-input");
|
|
997
997
|
n && (lt(n, ["type", "label", "placeholder", "value"]), e.input = n.getAttribute("type") || "text", n.hasAttribute("label") && (e.inputLabel = n.getAttribute("label")), n.hasAttribute("placeholder") && (e.inputPlaceholder = n.getAttribute("placeholder")), n.hasAttribute("value") && (e.inputValue = n.getAttribute("value")));
|
|
998
998
|
const o = t.querySelectorAll("swal-input-option");
|
|
999
|
-
return o.length && (e.inputOptions = {},
|
|
999
|
+
return o.length && (e.inputOptions = {}, Le(o).forEach((r) => {
|
|
1000
1000
|
lt(r, ["value"]);
|
|
1001
1001
|
const s = r.getAttribute("value"), a = r.innerHTML;
|
|
1002
1002
|
e.inputOptions[s] = a;
|
|
@@ -1009,7 +1009,7 @@ const ua = (t, e) => {
|
|
|
1009
1009
|
}
|
|
1010
1010
|
return n;
|
|
1011
1011
|
}, Ia = (t) => {
|
|
1012
|
-
const e =
|
|
1012
|
+
const e = Wr.concat([
|
|
1013
1013
|
"swal-param",
|
|
1014
1014
|
"swal-button",
|
|
1015
1015
|
"swal-image",
|
|
@@ -1017,31 +1017,31 @@ const ua = (t, e) => {
|
|
|
1017
1017
|
"swal-input",
|
|
1018
1018
|
"swal-input-option"
|
|
1019
1019
|
]);
|
|
1020
|
-
|
|
1020
|
+
Le(t.children).forEach((n) => {
|
|
1021
1021
|
const o = n.tagName.toLowerCase();
|
|
1022
|
-
e.indexOf(o) === -1 &&
|
|
1022
|
+
e.indexOf(o) === -1 && Se(`Unrecognized element <${o}>`);
|
|
1023
1023
|
});
|
|
1024
1024
|
}, lt = (t, e) => {
|
|
1025
|
-
|
|
1026
|
-
e.indexOf(n.name) === -1 &&
|
|
1025
|
+
Le(t.attributes).forEach((n) => {
|
|
1026
|
+
e.indexOf(n.name) === -1 && Se([
|
|
1027
1027
|
`Unrecognized attribute "${n.name}" on <${t.tagName.toLowerCase()}>.`,
|
|
1028
1028
|
`${e.length ? `Allowed attributes are: ${e.join(", ")}` : "To set the value, use HTML within the element."}`
|
|
1029
1029
|
]);
|
|
1030
1030
|
});
|
|
1031
|
-
},
|
|
1031
|
+
}, Qo = {
|
|
1032
1032
|
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"),
|
|
1033
1033
|
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")
|
|
1034
1034
|
};
|
|
1035
1035
|
function Fa(t) {
|
|
1036
|
-
t.inputValidator || Object.keys(
|
|
1037
|
-
t.input === e && (t.inputValidator =
|
|
1036
|
+
t.inputValidator || Object.keys(Qo).forEach((e) => {
|
|
1037
|
+
t.input === e && (t.inputValidator = Qo[e]);
|
|
1038
1038
|
});
|
|
1039
1039
|
}
|
|
1040
1040
|
function Ba(t) {
|
|
1041
|
-
(!t.target || typeof t.target == "string" && !document.querySelector(t.target) || typeof t.target != "string" && !t.target.appendChild) && (
|
|
1041
|
+
(!t.target || typeof t.target == "string" && !document.querySelector(t.target) || typeof t.target != "string" && !t.target.appendChild) && (Se('Target parameter is not valid, defaulting to "body"'), t.target = "body");
|
|
1042
1042
|
}
|
|
1043
1043
|
function Na(t) {
|
|
1044
|
-
Fa(t), t.showLoaderOnConfirm && !t.preConfirm &&
|
|
1044
|
+
Fa(t), t.showLoaderOnConfirm && !t.preConfirm && Se(
|
|
1045
1045
|
`showLoaderOnConfirm is set to true, but preConfirm is not defined.
|
|
1046
1046
|
showLoaderOnConfirm should be used together with preConfirm, see usage example:
|
|
1047
1047
|
https://sweetalert2.github.io/#ajax-request`
|
|
@@ -1081,9 +1081,9 @@ const Da = () => {
|
|
|
1081
1081
|
}
|
|
1082
1082
|
}, Ha = () => {
|
|
1083
1083
|
const t = navigator.userAgent, e = !!t.match(/iPad/i) || !!t.match(/iPhone/i), n = !!t.match(/WebKit/i);
|
|
1084
|
-
e && n && !t.match(/CriOS/i) && Z().scrollHeight > window.innerHeight - 44 && (
|
|
1084
|
+
e && n && !t.match(/CriOS/i) && Z().scrollHeight > window.innerHeight - 44 && (ge().style.paddingBottom = "44px");
|
|
1085
1085
|
}, ja = () => {
|
|
1086
|
-
const t =
|
|
1086
|
+
const t = ge();
|
|
1087
1087
|
let e;
|
|
1088
1088
|
t.ontouchstart = (n) => {
|
|
1089
1089
|
e = za(n);
|
|
@@ -1091,49 +1091,49 @@ const Da = () => {
|
|
|
1091
1091
|
e && (n.preventDefault(), n.stopPropagation());
|
|
1092
1092
|
};
|
|
1093
1093
|
}, za = (t) => {
|
|
1094
|
-
const e = t.target, n =
|
|
1095
|
-
return Va(t) || Wa(t) ? !1 : e === n || !
|
|
1094
|
+
const e = t.target, n = ge();
|
|
1095
|
+
return Va(t) || Wa(t) ? !1 : e === n || !Jo(n) && e.tagName !== "INPUT" && // #1603
|
|
1096
1096
|
e.tagName !== "TEXTAREA" && // #2266
|
|
1097
|
-
!(
|
|
1097
|
+
!(Jo(ln()) && // #1944
|
|
1098
1098
|
ln().contains(e));
|
|
1099
1099
|
}, Va = (t) => t.touches && t.touches.length && t.touches[0].touchType === "stylus", Wa = (t) => t.touches && t.touches.length > 1, qa = () => {
|
|
1100
1100
|
if (Ye(document.body, f.iosfix)) {
|
|
1101
1101
|
const t = parseInt(document.body.style.top, 10);
|
|
1102
|
-
|
|
1102
|
+
We(document.body, f.iosfix), document.body.style.top = "", document.body.scrollTop = t * -1;
|
|
1103
1103
|
}
|
|
1104
|
-
},
|
|
1105
|
-
const e =
|
|
1104
|
+
}, qr = 10, Ka = (t) => {
|
|
1105
|
+
const e = ge(), n = Z();
|
|
1106
1106
|
typeof t.willOpen == "function" && t.willOpen(n);
|
|
1107
1107
|
const r = window.getComputedStyle(document.body).overflowY;
|
|
1108
1108
|
Ya(e, n, t), setTimeout(() => {
|
|
1109
1109
|
Ga(e, n);
|
|
1110
|
-
},
|
|
1111
|
-
},
|
|
1110
|
+
}, qr), mo() && (Ja(e, t.scrollbarPadding, r), _a()), !bn() && !V.previousActiveElement && (V.previousActiveElement = document.activeElement), typeof t.didOpen == "function" && setTimeout(() => t.didOpen(n)), We(e, f["no-transition"]);
|
|
1111
|
+
}, Kr = (t) => {
|
|
1112
1112
|
const e = Z();
|
|
1113
1113
|
if (t.target !== e)
|
|
1114
1114
|
return;
|
|
1115
|
-
const n =
|
|
1116
|
-
e.removeEventListener(Mt,
|
|
1115
|
+
const n = ge();
|
|
1116
|
+
e.removeEventListener(Mt, Kr), n.style.overflowY = "auto";
|
|
1117
1117
|
}, Ga = (t, e) => {
|
|
1118
|
-
Mt &&
|
|
1118
|
+
Mt && $r(e) ? (t.style.overflowY = "hidden", e.addEventListener(Mt, Kr)) : t.style.overflowY = "auto";
|
|
1119
1119
|
}, Ja = (t, e, n) => {
|
|
1120
1120
|
$a(), e && n !== "hidden" && Da(), setTimeout(() => {
|
|
1121
1121
|
t.scrollTop = 0;
|
|
1122
1122
|
});
|
|
1123
1123
|
}, Ya = (t, e, n) => {
|
|
1124
|
-
X(t, n.showClass.backdrop), e.style.setProperty("opacity", "0", "important"),
|
|
1124
|
+
X(t, n.showClass.backdrop), e.style.setProperty("opacity", "0", "important"), de(e, "grid"), setTimeout(() => {
|
|
1125
1125
|
X(e, n.showClass.popup), e.style.removeProperty("opacity");
|
|
1126
|
-
},
|
|
1126
|
+
}, qr), X([document.documentElement, document.body], f.shown), n.heightAuto && n.backdrop && !n.toast && X([document.documentElement, document.body], f["height-auto"]);
|
|
1127
1127
|
}, Et = (t) => {
|
|
1128
1128
|
let e = Z();
|
|
1129
1129
|
e || new At(), e = Z();
|
|
1130
1130
|
const n = xt();
|
|
1131
|
-
bn() ?
|
|
1131
|
+
bn() ? ye(Vt()) : Xa(e, t), de(n), e.setAttribute("data-loading", !0), e.setAttribute("aria-busy", !0), e.focus();
|
|
1132
1132
|
}, Xa = (t, e) => {
|
|
1133
1133
|
const n = Wt(), o = xt();
|
|
1134
|
-
!e &&
|
|
1134
|
+
!e && Re(Ue()) && (e = Ue()), de(n), e && (ye(e), o.setAttribute("data-button-to-replace", e.className)), o.parentNode.insertBefore(o, e), X([t, n], f.loading);
|
|
1135
1135
|
}, Za = (t, e) => {
|
|
1136
|
-
e.input === "select" || e.input === "radio" ? oc(t, e) : ["text", "email", "number", "tel", "textarea"].includes(e.input) && (
|
|
1136
|
+
e.input === "select" || e.input === "radio" ? oc(t, e) : ["text", "email", "number", "tel", "textarea"].includes(e.input) && (uo(e.inputValue) || fo(e.inputValue)) && (Et(Ue()), rc(t, e));
|
|
1137
1137
|
}, Qa = (t, e) => {
|
|
1138
1138
|
const n = t.getInput();
|
|
1139
1139
|
if (!n)
|
|
@@ -1149,123 +1149,123 @@ const Da = () => {
|
|
|
1149
1149
|
return e.inputAutoTrim ? n.value.trim() : n.value;
|
|
1150
1150
|
}
|
|
1151
1151
|
}, 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) => {
|
|
1152
|
-
const n = Z(), o = (r) => sc[e.input](n,
|
|
1153
|
-
|
|
1152
|
+
const n = Z(), o = (r) => sc[e.input](n, Yn(r), e);
|
|
1153
|
+
uo(e.inputOptions) || fo(e.inputOptions) ? (Et(Ue()), jt(e.inputOptions).then((r) => {
|
|
1154
1154
|
t.hideLoading(), o(r);
|
|
1155
1155
|
})) : typeof e.inputOptions == "object" ? o(e.inputOptions) : ut(`Unexpected type of inputOptions! Expected object, Map or Promise, got ${typeof e.inputOptions}`);
|
|
1156
1156
|
}, rc = (t, e) => {
|
|
1157
1157
|
const n = t.getInput();
|
|
1158
|
-
|
|
1159
|
-
n.value = e.input === "number" ? parseFloat(o) || 0 : `${o}`,
|
|
1158
|
+
ye(n), jt(e.inputValue).then((o) => {
|
|
1159
|
+
n.value = e.input === "number" ? parseFloat(o) || 0 : `${o}`, de(n), n.focus(), t.hideLoading();
|
|
1160
1160
|
}).catch((o) => {
|
|
1161
|
-
ut(`Error in inputValue promise: ${o}`), n.value = "",
|
|
1161
|
+
ut(`Error in inputValue promise: ${o}`), n.value = "", de(n), n.focus(), t.hideLoading();
|
|
1162
1162
|
});
|
|
1163
1163
|
}, sc = {
|
|
1164
1164
|
select: (t, e, n) => {
|
|
1165
|
-
const o =
|
|
1165
|
+
const o = et(t, f.select), r = (s, a, d) => {
|
|
1166
1166
|
const l = document.createElement("option");
|
|
1167
|
-
l.value = d,
|
|
1167
|
+
l.value = d, me(l, a), l.selected = er(d, n.inputValue), s.appendChild(l);
|
|
1168
1168
|
};
|
|
1169
1169
|
e.forEach((s) => {
|
|
1170
1170
|
const a = s[0], d = s[1];
|
|
1171
1171
|
if (Array.isArray(d)) {
|
|
1172
1172
|
const l = document.createElement("optgroup");
|
|
1173
|
-
l.label = a, l.disabled = !1, o.appendChild(l), d.forEach((
|
|
1173
|
+
l.label = a, l.disabled = !1, o.appendChild(l), d.forEach((b) => r(l, b[1], b[0]));
|
|
1174
1174
|
} else
|
|
1175
1175
|
r(o, d, a);
|
|
1176
1176
|
}), o.focus();
|
|
1177
1177
|
},
|
|
1178
1178
|
radio: (t, e, n) => {
|
|
1179
|
-
const o =
|
|
1179
|
+
const o = et(t, f.radio);
|
|
1180
1180
|
e.forEach((s) => {
|
|
1181
|
-
const a = s[0], d = s[1], l = document.createElement("input"),
|
|
1182
|
-
l.type = "radio", l.name = f.radio, l.value = a,
|
|
1181
|
+
const a = s[0], d = s[1], l = document.createElement("input"), b = document.createElement("label");
|
|
1182
|
+
l.type = "radio", l.name = f.radio, l.value = a, er(a, n.inputValue) && (l.checked = !0);
|
|
1183
1183
|
const w = document.createElement("span");
|
|
1184
|
-
|
|
1184
|
+
me(w, d), w.className = f.label, b.appendChild(l), b.appendChild(w), o.appendChild(b);
|
|
1185
1185
|
});
|
|
1186
1186
|
const r = o.querySelectorAll("input");
|
|
1187
1187
|
r.length && r[0].focus();
|
|
1188
1188
|
}
|
|
1189
|
-
},
|
|
1189
|
+
}, Yn = (t) => {
|
|
1190
1190
|
const e = [];
|
|
1191
1191
|
return typeof Map < "u" && t instanceof Map ? t.forEach((n, o) => {
|
|
1192
1192
|
let r = n;
|
|
1193
|
-
typeof r == "object" && (r =
|
|
1193
|
+
typeof r == "object" && (r = Yn(r)), e.push([o, r]);
|
|
1194
1194
|
}) : Object.keys(t).forEach((n) => {
|
|
1195
1195
|
let o = t[n];
|
|
1196
|
-
typeof o == "object" && (o =
|
|
1196
|
+
typeof o == "object" && (o = Yn(o)), e.push([n, o]);
|
|
1197
1197
|
}), e;
|
|
1198
|
-
},
|
|
1199
|
-
function
|
|
1198
|
+
}, er = (t, e) => e && e.toString() === t.toString();
|
|
1199
|
+
function tr() {
|
|
1200
1200
|
const t = q.innerParams.get(this);
|
|
1201
1201
|
if (!t)
|
|
1202
1202
|
return;
|
|
1203
1203
|
const e = q.domCache.get(this);
|
|
1204
|
-
|
|
1204
|
+
ye(e.loader), bn() ? t.icon && de(Vt()) : ic(e), We([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;
|
|
1205
1205
|
}
|
|
1206
1206
|
const ic = (t) => {
|
|
1207
1207
|
const e = t.popup.getElementsByClassName(t.loader.getAttribute("data-button-to-replace"));
|
|
1208
|
-
e.length ?
|
|
1208
|
+
e.length ? de(e[0], "inline-block") : Ni() && ye(t.actions);
|
|
1209
1209
|
};
|
|
1210
1210
|
function ac(t) {
|
|
1211
1211
|
const e = q.innerParams.get(t || this), n = q.domCache.get(t || this);
|
|
1212
|
-
return n ?
|
|
1212
|
+
return n ? go(n.popup, e.input) : null;
|
|
1213
1213
|
}
|
|
1214
1214
|
const $t = {
|
|
1215
1215
|
swalPromiseResolve: /* @__PURE__ */ new WeakMap(),
|
|
1216
1216
|
swalPromiseReject: /* @__PURE__ */ new WeakMap()
|
|
1217
|
-
}, cc = () =>
|
|
1217
|
+
}, cc = () => Re(Z()), Gr = () => Ue() && Ue().click(), lc = () => nt() && nt().click(), uc = () => ct() && ct().click(), Jr = (t) => {
|
|
1218
1218
|
t.keydownTarget && t.keydownHandlerAdded && (t.keydownTarget.removeEventListener("keydown", t.keydownHandler, {
|
|
1219
1219
|
capture: t.keydownListenerCapture
|
|
1220
1220
|
}), t.keydownHandlerAdded = !1);
|
|
1221
1221
|
}, dc = (t, e, n, o) => {
|
|
1222
|
-
|
|
1222
|
+
Jr(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, {
|
|
1223
1223
|
capture: e.keydownListenerCapture
|
|
1224
1224
|
}), e.keydownHandlerAdded = !0);
|
|
1225
|
-
},
|
|
1226
|
-
const o =
|
|
1225
|
+
}, Xn = (t, e, n) => {
|
|
1226
|
+
const o = po();
|
|
1227
1227
|
if (o.length)
|
|
1228
1228
|
return e = e + n, e === o.length ? e = 0 : e === -1 && (e = o.length - 1), o[e].focus();
|
|
1229
1229
|
Z().focus();
|
|
1230
|
-
},
|
|
1230
|
+
}, Yr = ["ArrowRight", "ArrowDown"], fc = ["ArrowLeft", "ArrowUp"], hc = (t, e, n) => {
|
|
1231
1231
|
const o = q.innerParams.get(t);
|
|
1232
|
-
o && (e.isComposing || e.keyCode === 229 || (o.stopKeydownPropagation && e.stopPropagation(), e.key === "Enter" ? pc(t, e, o) : e.key === "Tab" ? mc(e, o) : [...
|
|
1232
|
+
o && (e.isComposing || e.keyCode === 229 || (o.stopKeydownPropagation && e.stopPropagation(), e.key === "Enter" ? pc(t, e, o) : e.key === "Tab" ? mc(e, o) : [...Yr, ...fc].includes(e.key) ? gc(e.key) : e.key === "Escape" && yc(e, o, n)));
|
|
1233
1233
|
}, pc = (t, e, n) => {
|
|
1234
|
-
if (
|
|
1234
|
+
if (mn(n.allowEnterKey) && e.target && t.getInput() && e.target.outerHTML === t.getInput().outerHTML) {
|
|
1235
1235
|
if (["textarea", "file"].includes(n.input))
|
|
1236
1236
|
return;
|
|
1237
|
-
|
|
1237
|
+
Gr(), e.preventDefault();
|
|
1238
1238
|
}
|
|
1239
1239
|
}, mc = (t, e) => {
|
|
1240
|
-
const n = t.target, o =
|
|
1240
|
+
const n = t.target, o = po();
|
|
1241
1241
|
let r = -1;
|
|
1242
1242
|
for (let s = 0; s < o.length; s++)
|
|
1243
1243
|
if (n === o[s]) {
|
|
1244
1244
|
r = s;
|
|
1245
1245
|
break;
|
|
1246
1246
|
}
|
|
1247
|
-
t.shiftKey ?
|
|
1247
|
+
t.shiftKey ? Xn(e, r, -1) : Xn(e, r, 1), t.stopPropagation(), t.preventDefault();
|
|
1248
1248
|
}, gc = (t) => {
|
|
1249
|
-
const e = Ue(), n =
|
|
1249
|
+
const e = Ue(), n = nt(), o = ct();
|
|
1250
1250
|
if (![e, n, o].includes(document.activeElement))
|
|
1251
1251
|
return;
|
|
1252
|
-
const r =
|
|
1252
|
+
const r = Yr.includes(t) ? "nextElementSibling" : "previousElementSibling";
|
|
1253
1253
|
let s = document.activeElement;
|
|
1254
1254
|
for (let a = 0; a < Wt().children.length; a++) {
|
|
1255
1255
|
if (s = s[r], !s)
|
|
1256
1256
|
return;
|
|
1257
|
-
if (
|
|
1257
|
+
if (Re(s) && s instanceof HTMLButtonElement)
|
|
1258
1258
|
break;
|
|
1259
1259
|
}
|
|
1260
1260
|
s instanceof HTMLButtonElement && s.focus();
|
|
1261
|
-
},
|
|
1262
|
-
|
|
1261
|
+
}, yc = (t, e, n) => {
|
|
1262
|
+
mn(e.allowEscapeKey) && (t.preventDefault(), n(_t.esc));
|
|
1263
1263
|
};
|
|
1264
|
-
function
|
|
1265
|
-
bn() ?
|
|
1264
|
+
function Xr(t, e, n, o) {
|
|
1265
|
+
bn() ? nr(t, o) : ($i(n).then(() => nr(t, o)), Jr(V)), /^((?!chrome|android).)*safari/i.test(navigator.userAgent) ? (e.setAttribute("style", "display:none !important"), e.removeAttribute("class"), e.innerHTML = "") : e.remove(), mo() && (Ma(), qa(), Vr()), bc();
|
|
1266
1266
|
}
|
|
1267
|
-
function
|
|
1268
|
-
|
|
1267
|
+
function bc() {
|
|
1268
|
+
We(
|
|
1269
1269
|
[document.documentElement, document.body],
|
|
1270
1270
|
[f.shown, f["height-auto"], f["no-backdrop"], f["toast-shown"]]
|
|
1271
1271
|
);
|
|
@@ -1285,9 +1285,9 @@ const vc = (t) => {
|
|
|
1285
1285
|
const n = q.innerParams.get(t);
|
|
1286
1286
|
if (!n || Ye(e, n.hideClass.popup))
|
|
1287
1287
|
return !1;
|
|
1288
|
-
|
|
1289
|
-
const o =
|
|
1290
|
-
return
|
|
1288
|
+
We(e, n.showClass.popup), X(e, n.hideClass.popup);
|
|
1289
|
+
const o = ge();
|
|
1290
|
+
return We(o, n.showClass.backdrop), X(o, n.hideClass.backdrop), kc(t, e, n), !0;
|
|
1291
1291
|
};
|
|
1292
1292
|
function Ac(t) {
|
|
1293
1293
|
const e = $t.swalPromiseReject.get(this);
|
|
@@ -1307,10 +1307,10 @@ const Kt = (t) => {
|
|
|
1307
1307
|
},
|
|
1308
1308
|
t
|
|
1309
1309
|
), kc = (t, e, n) => {
|
|
1310
|
-
const o =
|
|
1311
|
-
typeof n.willClose == "function" && n.willClose(e), r ? xc(t, e, o, n.returnFocus, n.didClose) :
|
|
1310
|
+
const o = ge(), r = Mt && $r(e);
|
|
1311
|
+
typeof n.willClose == "function" && n.willClose(e), r ? xc(t, e, o, n.returnFocus, n.didClose) : Xr(t, o, n.returnFocus, n.didClose);
|
|
1312
1312
|
}, xc = (t, e, n, o, r) => {
|
|
1313
|
-
V.swalCloseEventFinishedCallback =
|
|
1313
|
+
V.swalCloseEventFinishedCallback = Xr.bind(
|
|
1314
1314
|
null,
|
|
1315
1315
|
t,
|
|
1316
1316
|
n,
|
|
@@ -1319,18 +1319,18 @@ const Kt = (t) => {
|
|
|
1319
1319
|
), e.addEventListener(Mt, function(s) {
|
|
1320
1320
|
s.target === e && (V.swalCloseEventFinishedCallback(), delete V.swalCloseEventFinishedCallback);
|
|
1321
1321
|
});
|
|
1322
|
-
},
|
|
1322
|
+
}, nr = (t, e) => {
|
|
1323
1323
|
setTimeout(() => {
|
|
1324
1324
|
typeof e == "function" && e.bind(t.params)(), t._destroy();
|
|
1325
1325
|
});
|
|
1326
1326
|
};
|
|
1327
|
-
function
|
|
1327
|
+
function Zr(t, e, n) {
|
|
1328
1328
|
const o = q.domCache.get(t);
|
|
1329
1329
|
e.forEach((r) => {
|
|
1330
1330
|
o[r].disabled = n;
|
|
1331
1331
|
});
|
|
1332
1332
|
}
|
|
1333
|
-
function
|
|
1333
|
+
function Qr(t, e) {
|
|
1334
1334
|
if (!t)
|
|
1335
1335
|
return !1;
|
|
1336
1336
|
if (t.type === "radio") {
|
|
@@ -1340,29 +1340,29 @@ function Zr(t, e) {
|
|
|
1340
1340
|
} else
|
|
1341
1341
|
t.disabled = e;
|
|
1342
1342
|
}
|
|
1343
|
-
function Sc() {
|
|
1344
|
-
Xr(this, ["confirmButton", "denyButton", "cancelButton"], !1);
|
|
1345
|
-
}
|
|
1346
1343
|
function _c() {
|
|
1347
|
-
|
|
1344
|
+
Zr(this, ["confirmButton", "denyButton", "cancelButton"], !1);
|
|
1348
1345
|
}
|
|
1349
1346
|
function Cc() {
|
|
1350
|
-
|
|
1347
|
+
Zr(this, ["confirmButton", "denyButton", "cancelButton"], !0);
|
|
1348
|
+
}
|
|
1349
|
+
function Sc() {
|
|
1350
|
+
return Qr(this.getInput(), !1);
|
|
1351
1351
|
}
|
|
1352
1352
|
function Tc() {
|
|
1353
|
-
return
|
|
1353
|
+
return Qr(this.getInput(), !0);
|
|
1354
1354
|
}
|
|
1355
1355
|
function Pc(t) {
|
|
1356
1356
|
const e = q.domCache.get(this), n = q.innerParams.get(this);
|
|
1357
|
-
|
|
1357
|
+
me(e.validationMessage, t), e.validationMessage.className = f["validation-message"], n.customClass && n.customClass.validationMessage && X(e.validationMessage, n.customClass.validationMessage), de(e.validationMessage);
|
|
1358
1358
|
const o = this.getInput();
|
|
1359
|
-
o && (o.setAttribute("aria-invalid", !0), o.setAttribute("aria-describedby", f["validation-message"]),
|
|
1359
|
+
o && (o.setAttribute("aria-invalid", !0), o.setAttribute("aria-describedby", f["validation-message"]), Dr(o), X(o, f.inputerror));
|
|
1360
1360
|
}
|
|
1361
1361
|
function Rc() {
|
|
1362
1362
|
const t = q.domCache.get(this);
|
|
1363
|
-
t.validationMessage &&
|
|
1363
|
+
t.validationMessage && ye(t.validationMessage);
|
|
1364
1364
|
const e = this.getInput();
|
|
1365
|
-
e && (e.removeAttribute("aria-invalid"), e.removeAttribute("aria-describedby"),
|
|
1365
|
+
e && (e.removeAttribute("aria-invalid"), e.removeAttribute("aria-describedby"), We(e, f.inputerror));
|
|
1366
1366
|
}
|
|
1367
1367
|
function Lc() {
|
|
1368
1368
|
return q.domCache.get(this).progressSteps;
|
|
@@ -1370,11 +1370,11 @@ function Lc() {
|
|
|
1370
1370
|
function Oc(t) {
|
|
1371
1371
|
const e = Z(), n = q.innerParams.get(this);
|
|
1372
1372
|
if (!e || Ye(e, n.hideClass.popup))
|
|
1373
|
-
return
|
|
1373
|
+
return Se(
|
|
1374
1374
|
"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."
|
|
1375
1375
|
);
|
|
1376
1376
|
const o = Ic(t), r = Object.assign({}, n, o);
|
|
1377
|
-
|
|
1377
|
+
zr(this, r), q.innerParams.set(this, r), Object.defineProperties(this, {
|
|
1378
1378
|
params: {
|
|
1379
1379
|
value: Object.assign({}, this.params, t),
|
|
1380
1380
|
writable: !1,
|
|
@@ -1385,7 +1385,7 @@ function Oc(t) {
|
|
|
1385
1385
|
const Ic = (t) => {
|
|
1386
1386
|
const e = {};
|
|
1387
1387
|
return Object.keys(t).forEach((n) => {
|
|
1388
|
-
|
|
1388
|
+
Or(n) ? e[n] = t[n] : Se(
|
|
1389
1389
|
`Invalid parameter to update: "${n}". Updatable params are listed here: https://github.com/sweetalert2/sweetalert2/blob/master/src/utils/params.js
|
|
1390
1390
|
|
|
1391
1391
|
If you think this parameter should be updatable, request it here: https://github.com/sweetalert2/sweetalert2/issues/new?template=02_feature_request.md`
|
|
@@ -1395,34 +1395,34 @@ If you think this parameter should be updatable, request it here: https://github
|
|
|
1395
1395
|
function Fc() {
|
|
1396
1396
|
const t = q.domCache.get(this), e = q.innerParams.get(this);
|
|
1397
1397
|
if (!e) {
|
|
1398
|
-
|
|
1398
|
+
es(this);
|
|
1399
1399
|
return;
|
|
1400
1400
|
}
|
|
1401
1401
|
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);
|
|
1402
1402
|
}
|
|
1403
1403
|
const Bc = (t) => {
|
|
1404
|
-
|
|
1405
|
-
},
|
|
1406
|
-
t.isAwaitingPromise() ? (
|
|
1407
|
-
},
|
|
1404
|
+
es(t), delete t.params, delete V.keydownHandler, delete V.keydownTarget, delete V.currentInstance;
|
|
1405
|
+
}, es = (t) => {
|
|
1406
|
+
t.isAwaitingPromise() ? (Bn(q, t), q.awaitingPromise.set(t, !0)) : (Bn($t, t), Bn(q, t));
|
|
1407
|
+
}, Bn = (t, e) => {
|
|
1408
1408
|
for (const n in t)
|
|
1409
1409
|
t[n].delete(e);
|
|
1410
|
-
},
|
|
1410
|
+
}, ts = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1411
1411
|
__proto__: null,
|
|
1412
1412
|
_destroy: Fc,
|
|
1413
1413
|
close: Qt,
|
|
1414
1414
|
closeModal: Qt,
|
|
1415
1415
|
closePopup: Qt,
|
|
1416
1416
|
closeToast: Qt,
|
|
1417
|
-
disableButtons:
|
|
1417
|
+
disableButtons: Cc,
|
|
1418
1418
|
disableInput: Tc,
|
|
1419
|
-
disableLoading:
|
|
1420
|
-
enableButtons:
|
|
1421
|
-
enableInput:
|
|
1419
|
+
disableLoading: tr,
|
|
1420
|
+
enableButtons: _c,
|
|
1421
|
+
enableInput: Sc,
|
|
1422
1422
|
getInput: ac,
|
|
1423
1423
|
getProgressSteps: Lc,
|
|
1424
1424
|
handleAwaitingPromise: Kt,
|
|
1425
|
-
hideLoading:
|
|
1425
|
+
hideLoading: tr,
|
|
1426
1426
|
isAwaitingPromise: wc,
|
|
1427
1427
|
rejectPromise: Ac,
|
|
1428
1428
|
resetValidationMessage: Rc,
|
|
@@ -1430,51 +1430,51 @@ const Bc = (t) => {
|
|
|
1430
1430
|
update: Oc
|
|
1431
1431
|
}, Symbol.toStringTag, { value: "Module" })), Nc = (t) => {
|
|
1432
1432
|
const e = q.innerParams.get(t);
|
|
1433
|
-
t.disableButtons(), e.input ?
|
|
1433
|
+
t.disableButtons(), e.input ? ns(t, "confirm") : Ao(t, !0);
|
|
1434
1434
|
}, Uc = (t) => {
|
|
1435
1435
|
const e = q.innerParams.get(t);
|
|
1436
|
-
t.disableButtons(), e.returnInputValueOnDeny ?
|
|
1436
|
+
t.disableButtons(), e.returnInputValueOnDeny ? ns(t, "deny") : vo(t, !1);
|
|
1437
1437
|
}, Dc = (t, e) => {
|
|
1438
|
-
t.disableButtons(), e(
|
|
1439
|
-
},
|
|
1438
|
+
t.disableButtons(), e(_t.cancel);
|
|
1439
|
+
}, ns = (t, e) => {
|
|
1440
1440
|
const n = q.innerParams.get(t);
|
|
1441
1441
|
if (!n.input)
|
|
1442
1442
|
return ut(
|
|
1443
|
-
`The "input" parameter is needed to be set when using returnInputValueOn${
|
|
1443
|
+
`The "input" parameter is needed to be set when using returnInputValueOn${lo(e)}`
|
|
1444
1444
|
);
|
|
1445
1445
|
const o = Qa(t, n);
|
|
1446
|
-
n.inputValidator ? Mc(t, o, e) : t.getInput().checkValidity() ? e === "deny" ?
|
|
1446
|
+
n.inputValidator ? Mc(t, o, e) : t.getInput().checkValidity() ? e === "deny" ? vo(t, o) : Ao(t, o) : (t.enableButtons(), t.showValidationMessage(n.validationMessage));
|
|
1447
1447
|
}, Mc = (t, e, n) => {
|
|
1448
1448
|
const o = q.innerParams.get(t);
|
|
1449
1449
|
t.disableInput(), Promise.resolve().then(
|
|
1450
1450
|
() => jt(o.inputValidator(e, o.validationMessage))
|
|
1451
1451
|
).then((s) => {
|
|
1452
|
-
t.enableButtons(), t.enableInput(), s ? t.showValidationMessage(s) : n === "deny" ?
|
|
1452
|
+
t.enableButtons(), t.enableInput(), s ? t.showValidationMessage(s) : n === "deny" ? vo(t, e) : Ao(t, e);
|
|
1453
1453
|
});
|
|
1454
|
-
},
|
|
1454
|
+
}, vo = (t, e) => {
|
|
1455
1455
|
const n = q.innerParams.get(t || globalThis);
|
|
1456
|
-
n.showLoaderOnDeny && Et(
|
|
1456
|
+
n.showLoaderOnDeny && Et(nt()), n.preDeny ? (q.awaitingPromise.set(t || globalThis, !0), Promise.resolve().then(
|
|
1457
1457
|
() => jt(n.preDeny(e, n.validationMessage))
|
|
1458
1458
|
).then((r) => {
|
|
1459
1459
|
r === !1 ? (t.hideLoading(), Kt(t)) : t.closePopup({ isDenied: !0, value: typeof r > "u" ? e : r });
|
|
1460
|
-
}).catch((r) =>
|
|
1461
|
-
},
|
|
1460
|
+
}).catch((r) => os(t || globalThis, r))) : t.closePopup({ isDenied: !0, value: e });
|
|
1461
|
+
}, or = (t, e) => {
|
|
1462
1462
|
t.closePopup({ isConfirmed: !0, value: e });
|
|
1463
|
-
},
|
|
1463
|
+
}, os = (t, e) => {
|
|
1464
1464
|
t.rejectPromise(e);
|
|
1465
|
-
},
|
|
1465
|
+
}, Ao = (t, e) => {
|
|
1466
1466
|
const n = q.innerParams.get(t || globalThis);
|
|
1467
1467
|
n.showLoaderOnConfirm && Et(), n.preConfirm ? (t.resetValidationMessage(), q.awaitingPromise.set(t || globalThis, !0), Promise.resolve().then(
|
|
1468
1468
|
() => jt(n.preConfirm(e, n.validationMessage))
|
|
1469
1469
|
).then((r) => {
|
|
1470
|
-
|
|
1471
|
-
}).catch((r) =>
|
|
1470
|
+
Re(gn()) || r === !1 ? (t.hideLoading(), Kt(t)) : or(t, typeof r > "u" ? e : r);
|
|
1471
|
+
}).catch((r) => os(t || globalThis, r))) : or(t, e);
|
|
1472
1472
|
}, $c = (t, e, n) => {
|
|
1473
1473
|
q.innerParams.get(t).toast ? Hc(t, e, n) : (zc(e), Vc(e), Wc(t, e, n));
|
|
1474
1474
|
}, Hc = (t, e, n) => {
|
|
1475
1475
|
e.popup.onclick = () => {
|
|
1476
1476
|
const o = q.innerParams.get(t);
|
|
1477
|
-
o && (jc(o) || o.timer || o.input) || n(
|
|
1477
|
+
o && (jc(o) || o.timer || o.input) || n(_t.close);
|
|
1478
1478
|
};
|
|
1479
1479
|
}, jc = (t) => t.showConfirmButton || t.showDenyButton || t.showCancelButton || t.showCloseButton;
|
|
1480
1480
|
let un = !1;
|
|
@@ -1497,13 +1497,13 @@ const zc = (t) => {
|
|
|
1497
1497
|
un = !1;
|
|
1498
1498
|
return;
|
|
1499
1499
|
}
|
|
1500
|
-
o.target === e.container &&
|
|
1500
|
+
o.target === e.container && mn(r.allowOutsideClick) && n(_t.backdrop);
|
|
1501
1501
|
};
|
|
1502
|
-
}, qc = (t) => typeof t == "object" && t.jquery,
|
|
1502
|
+
}, qc = (t) => typeof t == "object" && t.jquery, rr = (t) => t instanceof Element || qc(t), Kc = (t) => {
|
|
1503
1503
|
const e = {};
|
|
1504
|
-
return typeof t[0] == "object" && !
|
|
1504
|
+
return typeof t[0] == "object" && !rr(t[0]) ? Object.assign(e, t[0]) : ["title", "html", "icon"].forEach((n, o) => {
|
|
1505
1505
|
const r = t[o];
|
|
1506
|
-
typeof r == "string" ||
|
|
1506
|
+
typeof r == "string" || rr(r) ? e[n] = r : r !== void 0 && ut(`Unexpected type of ${n}! Expected "string" or "Element", got ${typeof r}`);
|
|
1507
1507
|
}), e;
|
|
1508
1508
|
};
|
|
1509
1509
|
function Gc(...t) {
|
|
@@ -1518,34 +1518,34 @@ function Jc(t) {
|
|
|
1518
1518
|
}
|
|
1519
1519
|
return e;
|
|
1520
1520
|
}
|
|
1521
|
-
const Yc = () => V.timeout && V.timeout.getTimerLeft(),
|
|
1521
|
+
const Yc = () => V.timeout && V.timeout.getTimerLeft(), rs = () => {
|
|
1522
1522
|
if (V.timeout)
|
|
1523
1523
|
return Ui(), V.timeout.stop();
|
|
1524
|
-
},
|
|
1524
|
+
}, ss = () => {
|
|
1525
1525
|
if (V.timeout) {
|
|
1526
1526
|
const t = V.timeout.start();
|
|
1527
|
-
return
|
|
1527
|
+
return yo(t), t;
|
|
1528
1528
|
}
|
|
1529
1529
|
}, Xc = () => {
|
|
1530
1530
|
const t = V.timeout;
|
|
1531
|
-
return t && (t.running ?
|
|
1531
|
+
return t && (t.running ? rs() : ss());
|
|
1532
1532
|
}, Zc = (t) => {
|
|
1533
1533
|
if (V.timeout) {
|
|
1534
1534
|
const e = V.timeout.increase(t);
|
|
1535
|
-
return
|
|
1535
|
+
return yo(e, !0), e;
|
|
1536
1536
|
}
|
|
1537
1537
|
}, Qc = () => V.timeout && V.timeout.isRunning();
|
|
1538
|
-
let
|
|
1539
|
-
const
|
|
1538
|
+
let sr = !1;
|
|
1539
|
+
const Zn = {};
|
|
1540
1540
|
function el(t = "data-swal-template") {
|
|
1541
|
-
|
|
1541
|
+
Zn[t] = this, sr || (document.body.addEventListener("click", tl), sr = !0);
|
|
1542
1542
|
}
|
|
1543
1543
|
const tl = (t) => {
|
|
1544
1544
|
for (let e = t.target; e && e !== document; e = e.parentNode)
|
|
1545
|
-
for (const n in
|
|
1545
|
+
for (const n in Zn) {
|
|
1546
1546
|
const o = e.getAttribute(n);
|
|
1547
1547
|
if (o) {
|
|
1548
|
-
|
|
1548
|
+
Zn[n].fire({ template: o });
|
|
1549
1549
|
return;
|
|
1550
1550
|
}
|
|
1551
1551
|
}
|
|
@@ -1554,47 +1554,47 @@ const tl = (t) => {
|
|
|
1554
1554
|
argsToParams: Kc,
|
|
1555
1555
|
bindClickHandler: el,
|
|
1556
1556
|
clickCancel: uc,
|
|
1557
|
-
clickConfirm:
|
|
1557
|
+
clickConfirm: Gr,
|
|
1558
1558
|
clickDeny: lc,
|
|
1559
1559
|
enableLoading: Et,
|
|
1560
1560
|
fire: Gc,
|
|
1561
1561
|
getActions: Wt,
|
|
1562
1562
|
getCancelButton: ct,
|
|
1563
|
-
getCloseButton:
|
|
1563
|
+
getCloseButton: ho,
|
|
1564
1564
|
getConfirmButton: Ue,
|
|
1565
|
-
getContainer:
|
|
1566
|
-
getDenyButton:
|
|
1567
|
-
getFocusableElements:
|
|
1568
|
-
getFooter:
|
|
1565
|
+
getContainer: ge,
|
|
1566
|
+
getDenyButton: nt,
|
|
1567
|
+
getFocusableElements: po,
|
|
1568
|
+
getFooter: Ur,
|
|
1569
1569
|
getHtmlContainer: ln,
|
|
1570
1570
|
getIcon: Vt,
|
|
1571
|
-
getImage:
|
|
1571
|
+
getImage: Br,
|
|
1572
1572
|
getInputLabel: Oi,
|
|
1573
1573
|
getLoader: xt,
|
|
1574
1574
|
getPopup: Z,
|
|
1575
1575
|
getTimerLeft: Yc,
|
|
1576
|
-
getTimerProgressBar:
|
|
1577
|
-
getTitle:
|
|
1578
|
-
getValidationMessage:
|
|
1576
|
+
getTimerProgressBar: yn,
|
|
1577
|
+
getTitle: Fr,
|
|
1578
|
+
getValidationMessage: gn,
|
|
1579
1579
|
increaseTimer: Zc,
|
|
1580
|
-
isDeprecatedParameter:
|
|
1580
|
+
isDeprecatedParameter: Jn,
|
|
1581
1581
|
isLoading: Fi,
|
|
1582
1582
|
isTimerRunning: Qc,
|
|
1583
|
-
isUpdatableParameter:
|
|
1584
|
-
isValidParameter:
|
|
1583
|
+
isUpdatableParameter: Or,
|
|
1584
|
+
isValidParameter: Lr,
|
|
1585
1585
|
isVisible: cc,
|
|
1586
1586
|
mixin: Jc,
|
|
1587
|
-
resumeTimer:
|
|
1587
|
+
resumeTimer: ss,
|
|
1588
1588
|
showLoading: Et,
|
|
1589
|
-
stopTimer:
|
|
1589
|
+
stopTimer: rs,
|
|
1590
1590
|
toggleTimer: Xc
|
|
1591
1591
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
1592
|
-
let
|
|
1593
|
-
class
|
|
1592
|
+
let Qn;
|
|
1593
|
+
class Ct {
|
|
1594
1594
|
constructor(...e) {
|
|
1595
1595
|
if (typeof window > "u")
|
|
1596
1596
|
return;
|
|
1597
|
-
|
|
1597
|
+
Qn = this;
|
|
1598
1598
|
const n = Object.freeze(this.constructor.argsToParams(e));
|
|
1599
1599
|
Object.defineProperties(this, {
|
|
1600
1600
|
params: {
|
|
@@ -1608,11 +1608,11 @@ class _t {
|
|
|
1608
1608
|
q.promise.set(this, o);
|
|
1609
1609
|
}
|
|
1610
1610
|
_main(e, n = {}) {
|
|
1611
|
-
Ri(Object.assign({}, n, e)), V.currentInstance && (V.currentInstance._destroy(),
|
|
1611
|
+
Ri(Object.assign({}, n, e)), V.currentInstance && (V.currentInstance._destroy(), mo() && Vr()), V.currentInstance = this;
|
|
1612
1612
|
const o = rl(e, n);
|
|
1613
1613
|
Na(o), Object.freeze(o), V.timeout && (V.timeout.stop(), delete V.timeout), clearTimeout(V.restoreFocusTimeout);
|
|
1614
1614
|
const r = sl(this);
|
|
1615
|
-
return
|
|
1615
|
+
return zr(this, o), q.innerParams.set(this, o), ol(this, r, o);
|
|
1616
1616
|
}
|
|
1617
1617
|
// `catch` cannot be the name of a module export, so we define our thenable methods here instead
|
|
1618
1618
|
then(e) {
|
|
@@ -1626,69 +1626,69 @@ const ol = (t, e, n) => new Promise((o, r) => {
|
|
|
1626
1626
|
const s = (a) => {
|
|
1627
1627
|
t.closePopup({ isDismissed: !0, dismiss: a });
|
|
1628
1628
|
};
|
|
1629
|
-
$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(
|
|
1629
|
+
$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(_t.close), $c(t, e, s), dc(t, V, n, s), Za(t, n), Ka(n), il(V, n, s), al(e, n), setTimeout(() => {
|
|
1630
1630
|
e.container.scrollTop = 0;
|
|
1631
1631
|
});
|
|
1632
1632
|
}), rl = (t, e) => {
|
|
1633
|
-
const n =
|
|
1633
|
+
const n = Ca(t), o = Object.assign({}, wt, e, n, t);
|
|
1634
1634
|
return o.showClass = Object.assign({}, wt.showClass, o.showClass), o.hideClass = Object.assign({}, wt.hideClass, o.hideClass), o;
|
|
1635
1635
|
}, sl = (t) => {
|
|
1636
1636
|
const e = {
|
|
1637
1637
|
popup: Z(),
|
|
1638
|
-
container:
|
|
1638
|
+
container: ge(),
|
|
1639
1639
|
actions: Wt(),
|
|
1640
1640
|
confirmButton: Ue(),
|
|
1641
|
-
denyButton:
|
|
1641
|
+
denyButton: nt(),
|
|
1642
1642
|
cancelButton: ct(),
|
|
1643
1643
|
loader: xt(),
|
|
1644
|
-
closeButton:
|
|
1645
|
-
validationMessage:
|
|
1646
|
-
progressSteps:
|
|
1644
|
+
closeButton: ho(),
|
|
1645
|
+
validationMessage: gn(),
|
|
1646
|
+
progressSteps: Nr()
|
|
1647
1647
|
};
|
|
1648
1648
|
return q.domCache.set(t, e), e;
|
|
1649
1649
|
}, il = (t, e, n) => {
|
|
1650
|
-
const o =
|
|
1651
|
-
|
|
1650
|
+
const o = yn();
|
|
1651
|
+
ye(o), e.timer && (t.timeout = new Ua(() => {
|
|
1652
1652
|
n("timer"), delete t.timeout;
|
|
1653
|
-
}, e.timer), e.timerProgressBar && (
|
|
1654
|
-
t.timeout && t.timeout.running &&
|
|
1653
|
+
}, e.timer), e.timerProgressBar && (de(o), Fe(o, e, "timerProgressBar"), setTimeout(() => {
|
|
1654
|
+
t.timeout && t.timeout.running && yo(e.timer);
|
|
1655
1655
|
})));
|
|
1656
1656
|
}, al = (t, e) => {
|
|
1657
1657
|
if (!e.toast) {
|
|
1658
|
-
if (!
|
|
1658
|
+
if (!mn(e.allowEnterKey))
|
|
1659
1659
|
return ll();
|
|
1660
|
-
cl(t, e) ||
|
|
1660
|
+
cl(t, e) || Xn(e, -1, 1);
|
|
1661
1661
|
}
|
|
1662
|
-
}, cl = (t, e) => e.focusDeny &&
|
|
1662
|
+
}, cl = (t, e) => e.focusDeny && Re(t.denyButton) ? (t.denyButton.focus(), !0) : e.focusCancel && Re(t.cancelButton) ? (t.cancelButton.focus(), !0) : e.focusConfirm && Re(t.confirmButton) ? (t.confirmButton.focus(), !0) : !1, ll = () => {
|
|
1663
1663
|
document.activeElement instanceof HTMLElement && typeof document.activeElement.blur == "function" && document.activeElement.blur();
|
|
1664
1664
|
};
|
|
1665
|
-
Object.assign(
|
|
1666
|
-
Object.assign(
|
|
1667
|
-
Object.keys(
|
|
1668
|
-
|
|
1669
|
-
if (
|
|
1670
|
-
return
|
|
1665
|
+
Object.assign(Ct.prototype, ts);
|
|
1666
|
+
Object.assign(Ct, nl);
|
|
1667
|
+
Object.keys(ts).forEach((t) => {
|
|
1668
|
+
Ct[t] = function(...e) {
|
|
1669
|
+
if (Qn)
|
|
1670
|
+
return Qn[t](...e);
|
|
1671
1671
|
};
|
|
1672
1672
|
});
|
|
1673
|
-
|
|
1674
|
-
|
|
1675
|
-
const At =
|
|
1673
|
+
Ct.DismissReason = _t;
|
|
1674
|
+
Ct.version = "11.4.8";
|
|
1675
|
+
const At = Ct;
|
|
1676
1676
|
At.default = At;
|
|
1677
1677
|
/*! @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 */
|
|
1678
1678
|
const {
|
|
1679
|
-
entries:
|
|
1680
|
-
setPrototypeOf:
|
|
1679
|
+
entries: is,
|
|
1680
|
+
setPrototypeOf: ir,
|
|
1681
1681
|
isFrozen: ul,
|
|
1682
1682
|
getPrototypeOf: dl,
|
|
1683
|
-
getOwnPropertyDescriptor:
|
|
1683
|
+
getOwnPropertyDescriptor: as
|
|
1684
1684
|
} = Object;
|
|
1685
1685
|
let {
|
|
1686
1686
|
freeze: Ae,
|
|
1687
1687
|
seal: De,
|
|
1688
|
-
create:
|
|
1688
|
+
create: cs
|
|
1689
1689
|
} = Object, {
|
|
1690
|
-
apply:
|
|
1691
|
-
construct:
|
|
1690
|
+
apply: eo,
|
|
1691
|
+
construct: to
|
|
1692
1692
|
} = typeof Reflect < "u" && Reflect;
|
|
1693
1693
|
Ae || (Ae = function(e) {
|
|
1694
1694
|
return e;
|
|
@@ -1696,30 +1696,30 @@ Ae || (Ae = function(e) {
|
|
|
1696
1696
|
De || (De = function(e) {
|
|
1697
1697
|
return e;
|
|
1698
1698
|
});
|
|
1699
|
-
|
|
1699
|
+
eo || (eo = function(e, n, o) {
|
|
1700
1700
|
return e.apply(n, o);
|
|
1701
1701
|
});
|
|
1702
|
-
|
|
1702
|
+
to || (to = function(e, n) {
|
|
1703
1703
|
return new e(...n);
|
|
1704
1704
|
});
|
|
1705
|
-
const en = Be(Array.prototype.forEach),
|
|
1705
|
+
const en = Be(Array.prototype.forEach), ar = Be(Array.prototype.pop), Rt = Be(Array.prototype.push), on = Be(String.prototype.toLowerCase), Nn = 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);
|
|
1706
1706
|
function Be(t) {
|
|
1707
1707
|
return function(e) {
|
|
1708
1708
|
for (var n = arguments.length, o = new Array(n > 1 ? n - 1 : 0), r = 1; r < n; r++)
|
|
1709
1709
|
o[r - 1] = arguments[r];
|
|
1710
|
-
return
|
|
1710
|
+
return eo(t, e, o);
|
|
1711
1711
|
};
|
|
1712
1712
|
}
|
|
1713
1713
|
function ml(t) {
|
|
1714
1714
|
return function() {
|
|
1715
1715
|
for (var e = arguments.length, n = new Array(e), o = 0; o < e; o++)
|
|
1716
1716
|
n[o] = arguments[o];
|
|
1717
|
-
return
|
|
1717
|
+
return to(t, n);
|
|
1718
1718
|
};
|
|
1719
1719
|
}
|
|
1720
1720
|
function W(t, e) {
|
|
1721
1721
|
let n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : on;
|
|
1722
|
-
|
|
1722
|
+
ir && ir(t, null);
|
|
1723
1723
|
let o = e.length;
|
|
1724
1724
|
for (; o--; ) {
|
|
1725
1725
|
let r = e[o];
|
|
@@ -1732,14 +1732,14 @@ function W(t, e) {
|
|
|
1732
1732
|
return t;
|
|
1733
1733
|
}
|
|
1734
1734
|
function mt(t) {
|
|
1735
|
-
const e =
|
|
1736
|
-
for (const [n, o] of
|
|
1737
|
-
|
|
1735
|
+
const e = cs(null);
|
|
1736
|
+
for (const [n, o] of is(t))
|
|
1737
|
+
as(t, n) !== void 0 && (e[n] = o);
|
|
1738
1738
|
return e;
|
|
1739
1739
|
}
|
|
1740
1740
|
function tn(t, e) {
|
|
1741
1741
|
for (; t !== null; ) {
|
|
1742
|
-
const o =
|
|
1742
|
+
const o = as(t, e);
|
|
1743
1743
|
if (o) {
|
|
1744
1744
|
if (o.get)
|
|
1745
1745
|
return Be(o.get);
|
|
@@ -1753,28 +1753,28 @@ function tn(t, e) {
|
|
|
1753
1753
|
}
|
|
1754
1754
|
return n;
|
|
1755
1755
|
}
|
|
1756
|
-
const
|
|
1756
|
+
const cr = 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"]), Un = 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"]), Dn = 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"]), Mn = 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"]), yl = Ae(["maction", "maligngroup", "malignmark", "mlongdiv", "mscarries", "mscarry", "msgroup", "mstack", "msline", "msrow", "semantics", "annotation", "annotation-xml", "mprescripts", "none"]), lr = Ae(["#text"]), ur = 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"]), $n = 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"]), dr = 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"]), bl = 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]+$/), ls = De(
|
|
1757
1757
|
/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i
|
|
1758
1758
|
// eslint-disable-line no-useless-escape
|
|
1759
1759
|
), kl = De(/^(?:\w+script|data):/i), xl = De(
|
|
1760
1760
|
/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g
|
|
1761
1761
|
// eslint-disable-line no-control-regex
|
|
1762
|
-
),
|
|
1763
|
-
var
|
|
1762
|
+
), us = De(/^html$/i);
|
|
1763
|
+
var fr = /* @__PURE__ */ Object.freeze({
|
|
1764
1764
|
__proto__: null,
|
|
1765
|
-
MUSTACHE_EXPR:
|
|
1765
|
+
MUSTACHE_EXPR: bl,
|
|
1766
1766
|
ERB_EXPR: wl,
|
|
1767
1767
|
TMPLIT_EXPR: vl,
|
|
1768
1768
|
DATA_ATTR: Al,
|
|
1769
1769
|
ARIA_ATTR: El,
|
|
1770
|
-
IS_ALLOWED_URI:
|
|
1770
|
+
IS_ALLOWED_URI: ls,
|
|
1771
1771
|
IS_SCRIPT_OR_DATA: kl,
|
|
1772
1772
|
ATTR_WHITESPACE: xl,
|
|
1773
|
-
DOCTYPE_NAME:
|
|
1773
|
+
DOCTYPE_NAME: us
|
|
1774
1774
|
});
|
|
1775
|
-
const
|
|
1775
|
+
const _l = function() {
|
|
1776
1776
|
return typeof window > "u" ? null : window;
|
|
1777
|
-
},
|
|
1777
|
+
}, Cl = function(e, n) {
|
|
1778
1778
|
if (typeof e != "object" || typeof e.createPolicy != "function")
|
|
1779
1779
|
return null;
|
|
1780
1780
|
let o = null;
|
|
@@ -1794,9 +1794,9 @@ const Sl = function() {
|
|
|
1794
1794
|
return console.warn("TrustedTypes policy " + s + " could not be created."), null;
|
|
1795
1795
|
}
|
|
1796
1796
|
};
|
|
1797
|
-
function
|
|
1798
|
-
let t = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] :
|
|
1799
|
-
const e = (B) =>
|
|
1797
|
+
function ds() {
|
|
1798
|
+
let t = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : _l();
|
|
1799
|
+
const e = (B) => ds(B);
|
|
1800
1800
|
if (e.version = "3.0.6", e.removed = [], !t || !t.document || t.document.nodeType !== 9)
|
|
1801
1801
|
return e.isSupported = !1, e;
|
|
1802
1802
|
let {
|
|
@@ -1807,9 +1807,9 @@ function us() {
|
|
|
1807
1807
|
HTMLTemplateElement: a,
|
|
1808
1808
|
Node: d,
|
|
1809
1809
|
Element: l,
|
|
1810
|
-
NodeFilter:
|
|
1810
|
+
NodeFilter: b,
|
|
1811
1811
|
NamedNodeMap: w = t.NamedNodeMap || t.MozNamedAttrMap,
|
|
1812
|
-
HTMLFormElement:
|
|
1812
|
+
HTMLFormElement: y,
|
|
1813
1813
|
DOMParser: G,
|
|
1814
1814
|
trustedTypes: M
|
|
1815
1815
|
} = t, I = l.prototype, F = tn(I, "cloneNode"), D = tn(I, "nextSibling"), Q = tn(I, "childNodes"), ne = tn(I, "parentNode");
|
|
@@ -1821,29 +1821,29 @@ function us() {
|
|
|
1821
1821
|
const {
|
|
1822
1822
|
implementation: ae,
|
|
1823
1823
|
createNodeIterator: m,
|
|
1824
|
-
createDocumentFragment:
|
|
1824
|
+
createDocumentFragment: S,
|
|
1825
1825
|
getElementsByTagName: N
|
|
1826
1826
|
} = n, {
|
|
1827
1827
|
importNode: T
|
|
1828
1828
|
} = o;
|
|
1829
|
-
let
|
|
1830
|
-
e.isSupported = typeof
|
|
1829
|
+
let C = {};
|
|
1830
|
+
e.isSupported = typeof is == "function" && typeof ne == "function" && ae && ae.createHTMLDocument !== void 0;
|
|
1831
1831
|
const {
|
|
1832
|
-
MUSTACHE_EXPR:
|
|
1832
|
+
MUSTACHE_EXPR: _,
|
|
1833
1833
|
ERB_EXPR: j,
|
|
1834
1834
|
TMPLIT_EXPR: v,
|
|
1835
1835
|
DATA_ATTR: z,
|
|
1836
1836
|
ARIA_ATTR: ee,
|
|
1837
1837
|
IS_SCRIPT_OR_DATA: ie,
|
|
1838
1838
|
ATTR_WHITESPACE: re
|
|
1839
|
-
} =
|
|
1839
|
+
} = fr;
|
|
1840
1840
|
let {
|
|
1841
|
-
IS_ALLOWED_URI:
|
|
1842
|
-
} =
|
|
1843
|
-
const Ee = W({}, [...
|
|
1841
|
+
IS_ALLOWED_URI: we
|
|
1842
|
+
} = fr, U = null;
|
|
1843
|
+
const Ee = W({}, [...cr, ...Un, ...Dn, ...Mn, ...lr]);
|
|
1844
1844
|
let i = null;
|
|
1845
|
-
const u = W({}, [...
|
|
1846
|
-
let p = Object.seal(
|
|
1845
|
+
const u = W({}, [...ur, ...$n, ...dr, ...nn]);
|
|
1846
|
+
let p = Object.seal(cs(null, {
|
|
1847
1847
|
tagNameCheck: {
|
|
1848
1848
|
writable: !0,
|
|
1849
1849
|
configurable: !1,
|
|
@@ -1862,62 +1862,62 @@ function us() {
|
|
|
1862
1862
|
enumerable: !0,
|
|
1863
1863
|
value: !1
|
|
1864
1864
|
}
|
|
1865
|
-
})), E = null, g = null, P = !0, A = !0, k = !1, L = !0, R = !1, $ = !1, K = !1, ke = !1,
|
|
1866
|
-
const
|
|
1867
|
-
let
|
|
1868
|
-
const
|
|
1869
|
-
let
|
|
1870
|
-
const
|
|
1871
|
-
let
|
|
1872
|
-
const
|
|
1873
|
-
let ht = Ke,
|
|
1874
|
-
const
|
|
1875
|
-
let
|
|
1876
|
-
const
|
|
1865
|
+
})), E = null, g = null, P = !0, A = !0, k = !1, L = !0, R = !1, $ = !1, K = !1, ke = !1, ve = !1, le = !1, $e = !1, To = !0, Po = !1;
|
|
1866
|
+
const Ns = "user-content-";
|
|
1867
|
+
let Cn = !0, Tt = !1, dt = {}, ft = null;
|
|
1868
|
+
const Ro = 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"]);
|
|
1869
|
+
let Lo = null;
|
|
1870
|
+
const Oo = W({}, ["audio", "video", "img", "source", "image", "track"]);
|
|
1871
|
+
let Sn = null;
|
|
1872
|
+
const Io = 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";
|
|
1873
|
+
let ht = Ke, Tn = !1, Pn = null;
|
|
1874
|
+
const Us = W({}, [Yt, Xt, Ke], Nn);
|
|
1875
|
+
let ot = null;
|
|
1876
|
+
const Ds = ["application/xhtml+xml", "text/html"], Ms = "text/html";
|
|
1877
1877
|
let ce = null, pt = null;
|
|
1878
|
-
const
|
|
1878
|
+
const $s = n.createElement("form"), Fo = function(c) {
|
|
1879
1879
|
return c instanceof RegExp || c instanceof Function;
|
|
1880
|
-
},
|
|
1880
|
+
}, Rn = function() {
|
|
1881
1881
|
let c = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
1882
1882
|
if (!(pt && pt === c)) {
|
|
1883
|
-
if ((!c || typeof c != "object") && (c = {}), c = mt(c),
|
|
1884
|
-
|
|
1885
|
-
mt(
|
|
1883
|
+
if ((!c || typeof c != "object") && (c = {}), c = mt(c), ot = // eslint-disable-next-line unicorn/prefer-includes
|
|
1884
|
+
Ds.indexOf(c.PARSER_MEDIA_TYPE) === -1 ? ot = Ms : ot = c.PARSER_MEDIA_TYPE, ce = ot === "application/xhtml+xml" ? Nn : on, U = "ALLOWED_TAGS" in c ? W({}, c.ALLOWED_TAGS, ce) : Ee, i = "ALLOWED_ATTR" in c ? W({}, c.ALLOWED_ATTR, ce) : u, Pn = "ALLOWED_NAMESPACES" in c ? W({}, c.ALLOWED_NAMESPACES, Nn) : Us, Sn = "ADD_URI_SAFE_ATTR" in c ? W(
|
|
1885
|
+
mt(Io),
|
|
1886
1886
|
// eslint-disable-line indent
|
|
1887
1887
|
c.ADD_URI_SAFE_ATTR,
|
|
1888
1888
|
// eslint-disable-line indent
|
|
1889
1889
|
ce
|
|
1890
1890
|
// eslint-disable-line indent
|
|
1891
|
-
) :
|
|
1892
|
-
mt(
|
|
1891
|
+
) : Io, Lo = "ADD_DATA_URI_TAGS" in c ? W(
|
|
1892
|
+
mt(Oo),
|
|
1893
1893
|
// eslint-disable-line indent
|
|
1894
1894
|
c.ADD_DATA_URI_TAGS,
|
|
1895
1895
|
// eslint-disable-line indent
|
|
1896
1896
|
ce
|
|
1897
1897
|
// eslint-disable-line indent
|
|
1898
|
-
) :
|
|
1898
|
+
) : Oo, ft = "FORBID_CONTENTS" in c ? W({}, c.FORBID_CONTENTS, ce) : Ro, 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, ve = c.RETURN_DOM || !1, le = c.RETURN_DOM_FRAGMENT || !1, $e = c.RETURN_TRUSTED_TYPE || !1, ke = c.FORCE_BODY || !1, To = c.SANITIZE_DOM !== !1, Po = c.SANITIZE_NAMED_PROPS || !1, Cn = c.KEEP_CONTENT !== !1, Tt = c.IN_PLACE || !1, we = c.ALLOWED_URI_REGEXP || ls, ht = c.NAMESPACE || Ke, p = c.CUSTOM_ELEMENT_HANDLING || {}, c.CUSTOM_ELEMENT_HANDLING && Fo(c.CUSTOM_ELEMENT_HANDLING.tagNameCheck) && (p.tagNameCheck = c.CUSTOM_ELEMENT_HANDLING.tagNameCheck), c.CUSTOM_ELEMENT_HANDLING && Fo(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 && (ve = !0), dt && (U = W({}, [...lr]), i = [], dt.html === !0 && (W(U, cr), W(i, ur)), dt.svg === !0 && (W(U, Un), W(i, $n), W(i, nn)), dt.svgFilters === !0 && (W(U, Dn), W(i, $n), W(i, nn)), dt.mathMl === !0 && (W(U, Mn), W(i, dr), 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(Sn, c.ADD_URI_SAFE_ATTR, ce), c.FORBID_CONTENTS && (ft === Ro && (ft = mt(ft)), W(ft, c.FORBID_CONTENTS, ce)), Cn && (U["#text"] = !0), $ && W(U, ["html", "head", "body"]), U.table && (W(U, ["tbody"]), delete E.tbody), c.TRUSTED_TYPES_POLICY) {
|
|
1899
1899
|
if (typeof c.TRUSTED_TYPES_POLICY.createHTML != "function")
|
|
1900
1900
|
throw Ot('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');
|
|
1901
1901
|
if (typeof c.TRUSTED_TYPES_POLICY.createScriptURL != "function")
|
|
1902
1902
|
throw Ot('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');
|
|
1903
1903
|
H = c.TRUSTED_TYPES_POLICY, be = H.createHTML("");
|
|
1904
1904
|
} else
|
|
1905
|
-
H === void 0 && (H =
|
|
1905
|
+
H === void 0 && (H = Cl(M, r)), H !== null && typeof be == "string" && (be = H.createHTML(""));
|
|
1906
1906
|
Ae && Ae(c), pt = c;
|
|
1907
1907
|
}
|
|
1908
|
-
},
|
|
1909
|
-
W(Zt,
|
|
1910
|
-
const
|
|
1911
|
-
W(
|
|
1912
|
-
const
|
|
1908
|
+
}, Bo = W({}, ["mi", "mo", "mn", "ms", "mtext"]), No = W({}, ["foreignobject", "desc", "title", "annotation-xml"]), Hs = W({}, ["title", "style", "font", "a", "script"]), Zt = W({}, Un);
|
|
1909
|
+
W(Zt, Dn), W(Zt, gl);
|
|
1910
|
+
const Ln = W({}, Mn);
|
|
1911
|
+
W(Ln, yl);
|
|
1912
|
+
const js = function(c) {
|
|
1913
1913
|
let x = ne(c);
|
|
1914
1914
|
(!x || !x.tagName) && (x = {
|
|
1915
1915
|
namespaceURI: ht,
|
|
1916
1916
|
tagName: "template"
|
|
1917
1917
|
});
|
|
1918
1918
|
const O = on(c.tagName), te = on(x.tagName);
|
|
1919
|
-
return
|
|
1920
|
-
},
|
|
1919
|
+
return Pn[c.namespaceURI] ? c.namespaceURI === Xt ? x.namespaceURI === Ke ? O === "svg" : x.namespaceURI === Yt ? O === "svg" && (te === "annotation-xml" || Bo[te]) : !!Zt[O] : c.namespaceURI === Yt ? x.namespaceURI === Ke ? O === "math" : x.namespaceURI === Xt ? O === "math" && No[te] : !!Ln[O] : c.namespaceURI === Ke ? x.namespaceURI === Xt && !No[te] || x.namespaceURI === Yt && !Bo[te] ? !1 : !Ln[O] && (Hs[O] || !Zt[O]) : !!(ot === "application/xhtml+xml" && Pn[c.namespaceURI]) : !1;
|
|
1920
|
+
}, rt = function(c) {
|
|
1921
1921
|
Rt(e.removed, {
|
|
1922
1922
|
element: c
|
|
1923
1923
|
});
|
|
@@ -1926,7 +1926,7 @@ function us() {
|
|
|
1926
1926
|
} catch {
|
|
1927
1927
|
c.remove();
|
|
1928
1928
|
}
|
|
1929
|
-
},
|
|
1929
|
+
}, On = function(c, x) {
|
|
1930
1930
|
try {
|
|
1931
1931
|
Rt(e.removed, {
|
|
1932
1932
|
attribute: x.getAttributeNode(c),
|
|
@@ -1939,9 +1939,9 @@ function us() {
|
|
|
1939
1939
|
});
|
|
1940
1940
|
}
|
|
1941
1941
|
if (x.removeAttribute(c), c === "is" && !i[c])
|
|
1942
|
-
if (
|
|
1942
|
+
if (ve || le)
|
|
1943
1943
|
try {
|
|
1944
|
-
|
|
1944
|
+
rt(x);
|
|
1945
1945
|
} catch {
|
|
1946
1946
|
}
|
|
1947
1947
|
else
|
|
@@ -1949,76 +1949,76 @@ function us() {
|
|
|
1949
1949
|
x.setAttribute(c, "");
|
|
1950
1950
|
} catch {
|
|
1951
1951
|
}
|
|
1952
|
-
},
|
|
1952
|
+
}, Uo = function(c) {
|
|
1953
1953
|
let x = null, O = null;
|
|
1954
1954
|
if (ke)
|
|
1955
1955
|
c = "<remove></remove>" + c;
|
|
1956
1956
|
else {
|
|
1957
|
-
const
|
|
1958
|
-
O =
|
|
1957
|
+
const he = fl(c, /^[\r\n\t ]+/);
|
|
1958
|
+
O = he && he[0];
|
|
1959
1959
|
}
|
|
1960
|
-
|
|
1960
|
+
ot === "application/xhtml+xml" && ht === Ke && (c = '<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>' + c + "</body></html>");
|
|
1961
1961
|
const te = H ? H.createHTML(c) : c;
|
|
1962
1962
|
if (ht === Ke)
|
|
1963
1963
|
try {
|
|
1964
|
-
x = new G().parseFromString(te,
|
|
1964
|
+
x = new G().parseFromString(te, ot);
|
|
1965
1965
|
} catch {
|
|
1966
1966
|
}
|
|
1967
1967
|
if (!x || !x.documentElement) {
|
|
1968
1968
|
x = ae.createDocument(ht, "template", null);
|
|
1969
1969
|
try {
|
|
1970
|
-
x.documentElement.innerHTML =
|
|
1970
|
+
x.documentElement.innerHTML = Tn ? be : te;
|
|
1971
1971
|
} catch {
|
|
1972
1972
|
}
|
|
1973
1973
|
}
|
|
1974
|
-
const
|
|
1975
|
-
return c && O &&
|
|
1976
|
-
},
|
|
1974
|
+
const fe = x.body || x.documentElement;
|
|
1975
|
+
return c && O && fe.insertBefore(n.createTextNode(O), fe.childNodes[0] || null), ht === Ke ? N.call(x, $ ? "html" : "body")[0] : $ ? x.documentElement : fe;
|
|
1976
|
+
}, Do = function(c) {
|
|
1977
1977
|
return m.call(
|
|
1978
1978
|
c.ownerDocument || c,
|
|
1979
1979
|
c,
|
|
1980
1980
|
// eslint-disable-next-line no-bitwise
|
|
1981
|
-
|
|
1981
|
+
b.SHOW_ELEMENT | b.SHOW_COMMENT | b.SHOW_TEXT,
|
|
1982
1982
|
null
|
|
1983
1983
|
);
|
|
1984
|
-
},
|
|
1985
|
-
return c instanceof
|
|
1986
|
-
},
|
|
1984
|
+
}, zs = function(c) {
|
|
1985
|
+
return c instanceof y && (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");
|
|
1986
|
+
}, Mo = function(c) {
|
|
1987
1987
|
return typeof d == "function" && c instanceof d;
|
|
1988
1988
|
}, Ge = function(c, x, O) {
|
|
1989
|
-
|
|
1989
|
+
C[c] && en(C[c], (te) => {
|
|
1990
1990
|
te.call(e, x, O, pt);
|
|
1991
1991
|
});
|
|
1992
|
-
},
|
|
1992
|
+
}, $o = function(c) {
|
|
1993
1993
|
let x = null;
|
|
1994
|
-
if (Ge("beforeSanitizeElements", c, null),
|
|
1995
|
-
return
|
|
1994
|
+
if (Ge("beforeSanitizeElements", c, null), zs(c))
|
|
1995
|
+
return rt(c), !0;
|
|
1996
1996
|
const O = ce(c.nodeName);
|
|
1997
1997
|
if (Ge("uponSanitizeElement", c, {
|
|
1998
1998
|
tagName: O,
|
|
1999
1999
|
allowedTags: U
|
|
2000
|
-
}), c.hasChildNodes() && !
|
|
2001
|
-
return
|
|
2000
|
+
}), c.hasChildNodes() && !Mo(c.firstElementChild) && Te(/<[/\w]/g, c.innerHTML) && Te(/<[/\w]/g, c.textContent))
|
|
2001
|
+
return rt(c), !0;
|
|
2002
2002
|
if (!U[O] || E[O]) {
|
|
2003
|
-
if (!E[O] &&
|
|
2003
|
+
if (!E[O] && jo(O) && (p.tagNameCheck instanceof RegExp && Te(p.tagNameCheck, O) || p.tagNameCheck instanceof Function && p.tagNameCheck(O)))
|
|
2004
2004
|
return !1;
|
|
2005
|
-
if (
|
|
2006
|
-
const te = ne(c) || c.parentNode,
|
|
2007
|
-
if (
|
|
2008
|
-
const
|
|
2009
|
-
for (let xe =
|
|
2010
|
-
te.insertBefore(F(
|
|
2005
|
+
if (Cn && !ft[O]) {
|
|
2006
|
+
const te = ne(c) || c.parentNode, fe = Q(c) || c.childNodes;
|
|
2007
|
+
if (fe && te) {
|
|
2008
|
+
const he = fe.length;
|
|
2009
|
+
for (let xe = he - 1; xe >= 0; --xe)
|
|
2010
|
+
te.insertBefore(F(fe[xe], !0), D(c));
|
|
2011
2011
|
}
|
|
2012
2012
|
}
|
|
2013
|
-
return
|
|
2013
|
+
return rt(c), !0;
|
|
2014
2014
|
}
|
|
2015
|
-
return c instanceof l && !
|
|
2015
|
+
return c instanceof l && !js(c) || (O === "noscript" || O === "noembed" || O === "noframes") && Te(/<\/no(script|embed|frames)/i, c.innerHTML) ? (rt(c), !0) : (R && c.nodeType === 3 && (x = c.textContent, en([_, j, v], (te) => {
|
|
2016
2016
|
x = Lt(x, te, " ");
|
|
2017
2017
|
}), c.textContent !== x && (Rt(e.removed, {
|
|
2018
2018
|
element: c.cloneNode()
|
|
2019
2019
|
}), c.textContent = x)), Ge("afterSanitizeElements", c, null), !1);
|
|
2020
|
-
},
|
|
2021
|
-
if (
|
|
2020
|
+
}, Ho = function(c, x, O) {
|
|
2021
|
+
if (To && (x === "id" || x === "name") && (O in n || O in $s))
|
|
2022
2022
|
return !1;
|
|
2023
2023
|
if (!(A && !g[x] && Te(z, x))) {
|
|
2024
2024
|
if (!(P && Te(ee, x))) {
|
|
@@ -2027,14 +2027,14 @@ function us() {
|
|
|
2027
2027
|
// First condition does a very basic check if a) it's basically a valid custom element tagname AND
|
|
2028
2028
|
// b) if the tagName passes whatever the user has configured for CUSTOM_ELEMENT_HANDLING.tagNameCheck
|
|
2029
2029
|
// and c) if the attribute name passes whatever the user has configured for CUSTOM_ELEMENT_HANDLING.attributeNameCheck
|
|
2030
|
-
!(
|
|
2030
|
+
!(jo(c) && (p.tagNameCheck instanceof RegExp && Te(p.tagNameCheck, c) || p.tagNameCheck instanceof Function && p.tagNameCheck(c)) && (p.attributeNameCheck instanceof RegExp && Te(p.attributeNameCheck, x) || p.attributeNameCheck instanceof Function && p.attributeNameCheck(x)) || // Alternative, second condition checks if it's an `is`-attribute, AND
|
|
2031
2031
|
// the value passes whatever the user has configured for CUSTOM_ELEMENT_HANDLING.tagNameCheck
|
|
2032
2032
|
x === "is" && p.allowCustomizedBuiltInElements && (p.tagNameCheck instanceof RegExp && Te(p.tagNameCheck, O) || p.tagNameCheck instanceof Function && p.tagNameCheck(O)))
|
|
2033
2033
|
)
|
|
2034
2034
|
return !1;
|
|
2035
|
-
} else if (!
|
|
2036
|
-
if (!Te(
|
|
2037
|
-
if (!((x === "src" || x === "xlink:href" || x === "href") && c !== "script" && hl(O, "data:") === 0 &&
|
|
2035
|
+
} else if (!Sn[x]) {
|
|
2036
|
+
if (!Te(we, Lt(O, re, ""))) {
|
|
2037
|
+
if (!((x === "src" || x === "xlink:href" || x === "href") && c !== "script" && hl(O, "data:") === 0 && Lo[c])) {
|
|
2038
2038
|
if (!(k && !Te(ie, Lt(O, re, "")))) {
|
|
2039
2039
|
if (O)
|
|
2040
2040
|
return !1;
|
|
@@ -2045,9 +2045,9 @@ function us() {
|
|
|
2045
2045
|
}
|
|
2046
2046
|
}
|
|
2047
2047
|
return !0;
|
|
2048
|
-
}, Ho = function(c) {
|
|
2049
|
-
return c.indexOf("-") > 0;
|
|
2050
2048
|
}, jo = function(c) {
|
|
2049
|
+
return c.indexOf("-") > 0;
|
|
2050
|
+
}, zo = function(c) {
|
|
2051
2051
|
Ge("beforeSanitizeAttributes", c, null);
|
|
2052
2052
|
const {
|
|
2053
2053
|
attributes: x
|
|
@@ -2062,51 +2062,51 @@ function us() {
|
|
|
2062
2062
|
};
|
|
2063
2063
|
let te = x.length;
|
|
2064
2064
|
for (; te--; ) {
|
|
2065
|
-
const
|
|
2066
|
-
name:
|
|
2065
|
+
const fe = x[te], {
|
|
2066
|
+
name: he,
|
|
2067
2067
|
namespaceURI: xe,
|
|
2068
|
-
value:
|
|
2069
|
-
} =
|
|
2070
|
-
let
|
|
2071
|
-
if (O.attrName = Pt, O.attrValue =
|
|
2068
|
+
value: st
|
|
2069
|
+
} = fe, Pt = ce(he);
|
|
2070
|
+
let _e = he === "value" ? st : pl(st);
|
|
2071
|
+
if (O.attrName = Pt, O.attrValue = _e, O.keepAttr = !0, O.forceKeepAttr = void 0, Ge("uponSanitizeAttribute", c, O), _e = O.attrValue, O.forceKeepAttr || (On(he, c), !O.keepAttr))
|
|
2072
2072
|
continue;
|
|
2073
|
-
if (!L && Te(/\/>/i,
|
|
2074
|
-
|
|
2073
|
+
if (!L && Te(/\/>/i, _e)) {
|
|
2074
|
+
On(he, c);
|
|
2075
2075
|
continue;
|
|
2076
2076
|
}
|
|
2077
|
-
R && en([
|
|
2078
|
-
|
|
2077
|
+
R && en([_, j, v], (Wo) => {
|
|
2078
|
+
_e = Lt(_e, Wo, " ");
|
|
2079
2079
|
});
|
|
2080
|
-
const
|
|
2081
|
-
if (
|
|
2082
|
-
if (
|
|
2083
|
-
switch (M.getAttributeType(
|
|
2080
|
+
const Vo = ce(c.nodeName);
|
|
2081
|
+
if (Ho(Vo, Pt, _e)) {
|
|
2082
|
+
if (Po && (Pt === "id" || Pt === "name") && (On(he, c), _e = Ns + _e), H && typeof M == "object" && typeof M.getAttributeType == "function" && !xe)
|
|
2083
|
+
switch (M.getAttributeType(Vo, Pt)) {
|
|
2084
2084
|
case "TrustedHTML": {
|
|
2085
|
-
|
|
2085
|
+
_e = H.createHTML(_e);
|
|
2086
2086
|
break;
|
|
2087
2087
|
}
|
|
2088
2088
|
case "TrustedScriptURL": {
|
|
2089
|
-
|
|
2089
|
+
_e = H.createScriptURL(_e);
|
|
2090
2090
|
break;
|
|
2091
2091
|
}
|
|
2092
2092
|
}
|
|
2093
2093
|
try {
|
|
2094
|
-
xe ? c.setAttributeNS(xe,
|
|
2094
|
+
xe ? c.setAttributeNS(xe, he, _e) : c.setAttribute(he, _e), ar(e.removed);
|
|
2095
2095
|
} catch {
|
|
2096
2096
|
}
|
|
2097
2097
|
}
|
|
2098
2098
|
}
|
|
2099
2099
|
Ge("afterSanitizeAttributes", c, null);
|
|
2100
|
-
},
|
|
2100
|
+
}, Vs = function B(c) {
|
|
2101
2101
|
let x = null;
|
|
2102
|
-
const O =
|
|
2102
|
+
const O = Do(c);
|
|
2103
2103
|
for (Ge("beforeSanitizeShadowDOM", c, null); x = O.nextNode(); )
|
|
2104
|
-
Ge("uponSanitizeShadowNode", x, null),
|
|
2104
|
+
Ge("uponSanitizeShadowNode", x, null), !$o(x) && (x.content instanceof s && B(x.content), zo(x));
|
|
2105
2105
|
Ge("afterSanitizeShadowDOM", c, null);
|
|
2106
2106
|
};
|
|
2107
2107
|
return e.sanitize = function(B) {
|
|
2108
|
-
let c = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, x = null, O = null, te = null,
|
|
2109
|
-
if (
|
|
2108
|
+
let c = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, x = null, O = null, te = null, fe = null;
|
|
2109
|
+
if (Tn = !B, Tn && (B = "<!-->"), typeof B != "string" && !Mo(B))
|
|
2110
2110
|
if (typeof B.toString == "function") {
|
|
2111
2111
|
if (B = B.toString(), typeof B != "string")
|
|
2112
2112
|
throw Ot("dirty is not a string, aborting");
|
|
@@ -2114,62 +2114,62 @@ function us() {
|
|
|
2114
2114
|
throw Ot("toString is not a function");
|
|
2115
2115
|
if (!e.isSupported)
|
|
2116
2116
|
return B;
|
|
2117
|
-
if (K ||
|
|
2117
|
+
if (K || Rn(c), e.removed = [], typeof B == "string" && (Tt = !1), Tt) {
|
|
2118
2118
|
if (B.nodeName) {
|
|
2119
|
-
const
|
|
2120
|
-
if (!U[
|
|
2119
|
+
const st = ce(B.nodeName);
|
|
2120
|
+
if (!U[st] || E[st])
|
|
2121
2121
|
throw Ot("root node is forbidden and cannot be sanitized in-place");
|
|
2122
2122
|
}
|
|
2123
2123
|
} else if (B instanceof d)
|
|
2124
|
-
x =
|
|
2124
|
+
x = Uo("<!---->"), O = x.ownerDocument.importNode(B, !0), O.nodeType === 1 && O.nodeName === "BODY" || O.nodeName === "HTML" ? x = O : x.appendChild(O);
|
|
2125
2125
|
else {
|
|
2126
|
-
if (!
|
|
2126
|
+
if (!ve && !R && !$ && // eslint-disable-next-line unicorn/prefer-includes
|
|
2127
2127
|
B.indexOf("<") === -1)
|
|
2128
|
-
return H &&
|
|
2129
|
-
if (x =
|
|
2130
|
-
return
|
|
2128
|
+
return H && $e ? H.createHTML(B) : B;
|
|
2129
|
+
if (x = Uo(B), !x)
|
|
2130
|
+
return ve ? null : $e ? be : "";
|
|
2131
2131
|
}
|
|
2132
|
-
x && ke &&
|
|
2133
|
-
const
|
|
2134
|
-
for (; te =
|
|
2135
|
-
|
|
2132
|
+
x && ke && rt(x.firstChild);
|
|
2133
|
+
const he = Do(Tt ? B : x);
|
|
2134
|
+
for (; te = he.nextNode(); )
|
|
2135
|
+
$o(te) || (te.content instanceof s && Vs(te.content), zo(te));
|
|
2136
2136
|
if (Tt)
|
|
2137
2137
|
return B;
|
|
2138
|
-
if (
|
|
2138
|
+
if (ve) {
|
|
2139
2139
|
if (le)
|
|
2140
|
-
for (
|
|
2141
|
-
|
|
2140
|
+
for (fe = S.call(x.ownerDocument); x.firstChild; )
|
|
2141
|
+
fe.appendChild(x.firstChild);
|
|
2142
2142
|
else
|
|
2143
|
-
|
|
2144
|
-
return (i.shadowroot || i.shadowrootmode) && (
|
|
2143
|
+
fe = x;
|
|
2144
|
+
return (i.shadowroot || i.shadowrootmode) && (fe = T.call(o, fe, !0)), fe;
|
|
2145
2145
|
}
|
|
2146
2146
|
let xe = $ ? x.outerHTML : x.innerHTML;
|
|
2147
|
-
return $ && U["!doctype"] && x.ownerDocument && x.ownerDocument.doctype && x.ownerDocument.doctype.name && Te(
|
|
2148
|
-
` + xe), R && en([
|
|
2149
|
-
xe = Lt(xe,
|
|
2150
|
-
}), H &&
|
|
2147
|
+
return $ && U["!doctype"] && x.ownerDocument && x.ownerDocument.doctype && x.ownerDocument.doctype.name && Te(us, x.ownerDocument.doctype.name) && (xe = "<!DOCTYPE " + x.ownerDocument.doctype.name + `>
|
|
2148
|
+
` + xe), R && en([_, j, v], (st) => {
|
|
2149
|
+
xe = Lt(xe, st, " ");
|
|
2150
|
+
}), H && $e ? H.createHTML(xe) : xe;
|
|
2151
2151
|
}, e.setConfig = function() {
|
|
2152
2152
|
let B = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
2153
|
-
|
|
2153
|
+
Rn(B), K = !0;
|
|
2154
2154
|
}, e.clearConfig = function() {
|
|
2155
2155
|
pt = null, K = !1;
|
|
2156
2156
|
}, e.isValidAttribute = function(B, c, x) {
|
|
2157
|
-
pt ||
|
|
2157
|
+
pt || Rn({});
|
|
2158
2158
|
const O = ce(B), te = ce(c);
|
|
2159
|
-
return
|
|
2159
|
+
return Ho(O, te, x);
|
|
2160
2160
|
}, e.addHook = function(B, c) {
|
|
2161
|
-
typeof c == "function" && (
|
|
2161
|
+
typeof c == "function" && (C[B] = C[B] || [], Rt(C[B], c));
|
|
2162
2162
|
}, e.removeHook = function(B) {
|
|
2163
|
-
if (
|
|
2164
|
-
return
|
|
2163
|
+
if (C[B])
|
|
2164
|
+
return ar(C[B]);
|
|
2165
2165
|
}, e.removeHooks = function(B) {
|
|
2166
|
-
|
|
2166
|
+
C[B] && (C[B] = []);
|
|
2167
2167
|
}, e.removeAllHooks = function() {
|
|
2168
|
-
|
|
2168
|
+
C = {};
|
|
2169
2169
|
}, e;
|
|
2170
2170
|
}
|
|
2171
|
-
var
|
|
2172
|
-
class
|
|
2171
|
+
var hr = ds();
|
|
2172
|
+
class Sl {
|
|
2173
2173
|
get IsVisible() {
|
|
2174
2174
|
return At.isVisible();
|
|
2175
2175
|
}
|
|
@@ -2181,7 +2181,7 @@ class Cl {
|
|
|
2181
2181
|
allowOutsideClick: !1,
|
|
2182
2182
|
icon: "question",
|
|
2183
2183
|
title: e.title,
|
|
2184
|
-
html:
|
|
2184
|
+
html: hr.sanitize(e.text),
|
|
2185
2185
|
confirmButtonText: e.confirmLabel ?? "confirmar",
|
|
2186
2186
|
cancelButtonText: e.rejectLabel ?? "cancelar"
|
|
2187
2187
|
}).then((o) => {
|
|
@@ -2200,16 +2200,16 @@ class Cl {
|
|
|
2200
2200
|
allowOutsideClick: !1,
|
|
2201
2201
|
icon: n,
|
|
2202
2202
|
title: e.title,
|
|
2203
|
-
html:
|
|
2203
|
+
html: hr.sanitize(o)
|
|
2204
2204
|
}).then(() => r(!0));
|
|
2205
2205
|
});
|
|
2206
2206
|
}
|
|
2207
2207
|
}
|
|
2208
|
-
const Tl = new
|
|
2208
|
+
const Tl = new Sl(), Pl = () => Tl, Rl = ["data-cor"], Ll = { class: "sf-p-4" }, Ol = /* @__PURE__ */ Me({
|
|
2209
2209
|
__name: "HeaderAvatar",
|
|
2210
2210
|
emits: ["logout"],
|
|
2211
2211
|
setup(t, { emit: e }) {
|
|
2212
|
-
const n = Pl(), o =
|
|
2212
|
+
const n = Pl(), o = Ve("?"), r = e;
|
|
2213
2213
|
async function s() {
|
|
2214
2214
|
await n.ConfirmAsync({
|
|
2215
2215
|
text: "Você deseja sair da conta?",
|
|
@@ -2217,41 +2217,41 @@ const Tl = new Cl(), Pl = () => Tl, Rl = ["data-cor"], Ll = { class: "sf-p-4" },
|
|
|
2217
2217
|
}) && r("logout");
|
|
2218
2218
|
}
|
|
2219
2219
|
function a() {
|
|
2220
|
-
const
|
|
2220
|
+
const b = sessionStorage.getItem("name");
|
|
2221
2221
|
let w = "?";
|
|
2222
|
-
if (!
|
|
2222
|
+
if (!b)
|
|
2223
2223
|
return w;
|
|
2224
|
-
const
|
|
2225
|
-
return w =
|
|
2224
|
+
const y = b.split(" ").filter((M) => M.length > 0).map((M) => M[0].toUpperCase()), G = Math.min(2, y.length);
|
|
2225
|
+
return w = y.slice(0, G).join(""), w.length > 0 ? w : "?";
|
|
2226
2226
|
}
|
|
2227
|
-
const d =
|
|
2228
|
-
const
|
|
2227
|
+
const d = Gn(() => {
|
|
2228
|
+
const b = o.value[0], w = b === "?" ? 0 : (b.charCodeAt(0) - 64) % 19;
|
|
2229
2229
|
return Math.max(w, 0);
|
|
2230
|
-
}), l =
|
|
2230
|
+
}), l = Ve(!1);
|
|
2231
2231
|
return hn(() => {
|
|
2232
2232
|
o.value = a();
|
|
2233
|
-
}), (
|
|
2233
|
+
}), (b, w) => (oe(), ue(co, null, [
|
|
2234
2234
|
Y("div", {
|
|
2235
2235
|
id: "sf-header-avatar",
|
|
2236
2236
|
"data-cor": d.value,
|
|
2237
|
-
onClick: w[0] || (w[0] = (
|
|
2237
|
+
onClick: w[0] || (w[0] = (y) => l.value = !0)
|
|
2238
2238
|
}, fn(o.value), 9, Rl),
|
|
2239
|
-
|
|
2239
|
+
tt(yi, {
|
|
2240
2240
|
visible: l.value,
|
|
2241
|
-
"onUpdate:visible": w[1] || (w[1] = (
|
|
2241
|
+
"onUpdate:visible": w[1] || (w[1] = (y) => l.value = y),
|
|
2242
2242
|
position: "right"
|
|
2243
2243
|
}, {
|
|
2244
|
-
title:
|
|
2245
|
-
|
|
2244
|
+
title: bt(() => [
|
|
2245
|
+
Kn("Minha conta")
|
|
2246
2246
|
]),
|
|
2247
|
-
default:
|
|
2247
|
+
default: bt(() => [
|
|
2248
2248
|
Y("div", Ll, [
|
|
2249
|
-
|
|
2250
|
-
color:
|
|
2249
|
+
tt(vi, {
|
|
2250
|
+
color: je(pn).Error,
|
|
2251
2251
|
onClick: s
|
|
2252
2252
|
}, {
|
|
2253
|
-
default:
|
|
2254
|
-
|
|
2253
|
+
default: bt(() => [
|
|
2254
|
+
Kn("Sair")
|
|
2255
2255
|
]),
|
|
2256
2256
|
_: 1
|
|
2257
2257
|
}, 8, ["color"])
|
|
@@ -2271,9 +2271,9 @@ const Tl = new Cl(), Pl = () => Tl, Rl = ["data-cor"], Ll = { class: "sf-p-4" },
|
|
|
2271
2271
|
Bl
|
|
2272
2272
|
];
|
|
2273
2273
|
function Ul(t, e) {
|
|
2274
|
-
return oe(),
|
|
2274
|
+
return oe(), ue("svg", Fl, Nl);
|
|
2275
2275
|
}
|
|
2276
|
-
const Dl = /* @__PURE__ */
|
|
2276
|
+
const Dl = /* @__PURE__ */ Pr(Il, [["render", Ul]]);
|
|
2277
2277
|
class Ml {
|
|
2278
2278
|
get storedTheme() {
|
|
2279
2279
|
return localStorage.getItem("color-scheme");
|
|
@@ -2300,63 +2300,63 @@ class Ml {
|
|
|
2300
2300
|
this.EnableLightMode();
|
|
2301
2301
|
}
|
|
2302
2302
|
}
|
|
2303
|
-
const
|
|
2303
|
+
const no = (() => new Ml())(), $l = /* @__PURE__ */ Xs('<svg xmlns="http://www.w3.org/2000/svg" width="472.39" height="472.39" viewBox="0 0 472.39 472.39"><g class="toggle-sun"><path d="M403.21,167V69.18H305.38L236.2,0,167,69.18H69.18V167L0,236.2l69.18,69.18v97.83H167l69.18,69.18,69.18-69.18h97.83V305.38l69.18-69.18Zm-167,198.17a129,129,0,1,1,129-129A129,129,0,0,1,236.2,365.19Z"></path></g><g class="toggle-circle"><circle class="cls-1" cx="236.2" cy="236.2" r="103.78"></circle></g></svg>', 1), Hl = [
|
|
2304
2304
|
$l
|
|
2305
|
-
], jl = /* @__PURE__ */
|
|
2305
|
+
], jl = /* @__PURE__ */ Me({
|
|
2306
2306
|
__name: "ThemeToggle",
|
|
2307
2307
|
setup(t) {
|
|
2308
|
-
return (e, n) => (oe(),
|
|
2308
|
+
return (e, n) => (oe(), ue("button", {
|
|
2309
2309
|
id: "sf-theme-toggle",
|
|
2310
2310
|
onClick: n[0] || (n[0] = //@ts-ignore
|
|
2311
|
-
(...o) =>
|
|
2311
|
+
(...o) => je(no).Toggle && je(no).Toggle(...o))
|
|
2312
2312
|
}, Hl));
|
|
2313
2313
|
}
|
|
2314
|
-
}), zl = { id: "sf-layout" }, Vl = /* @__PURE__ */ Y("div", { class: "sf-layout-menu-toggler-logo" }, null, -1), Wl = { class: "title" }, ql = { class: "sf-layout-nav-content" }, Kl = /* @__PURE__ */ Y("section", { id: "sf-layout-page-title" }, null, -1), Gl = { id: "sf-layout-content" },
|
|
2314
|
+
}), zl = { id: "sf-layout" }, Vl = /* @__PURE__ */ Y("div", { class: "sf-layout-menu-toggler-logo" }, null, -1), Wl = { class: "title" }, ql = { class: "sf-layout-nav-content" }, Kl = /* @__PURE__ */ Y("section", { id: "sf-layout-page-title" }, null, -1), Gl = { id: "sf-layout-content" }, qd = /* @__PURE__ */ Me({
|
|
2315
2315
|
__name: "Layout",
|
|
2316
2316
|
emits: ["mounted", "logout"],
|
|
2317
2317
|
setup(t, { emit: e }) {
|
|
2318
|
-
const n =
|
|
2318
|
+
const n = Tr(), o = e;
|
|
2319
2319
|
return hn(() => {
|
|
2320
2320
|
o("mounted");
|
|
2321
|
-
}), (r, s) => (oe(),
|
|
2321
|
+
}), (r, s) => (oe(), ue("div", zl, [
|
|
2322
2322
|
Y("header", null, [
|
|
2323
2323
|
Y("div", {
|
|
2324
|
-
class:
|
|
2324
|
+
class: pe([
|
|
2325
2325
|
"sf-layout-menu-toggler",
|
|
2326
|
-
{ invert:
|
|
2326
|
+
{ invert: je(n).IsVisible }
|
|
2327
2327
|
]),
|
|
2328
|
-
onClick: s[0] || (s[0] = (a) =>
|
|
2328
|
+
onClick: s[0] || (s[0] = (a) => je(n).Toggle())
|
|
2329
2329
|
}, [
|
|
2330
2330
|
Vl,
|
|
2331
|
-
|
|
2331
|
+
tt(Dl)
|
|
2332
2332
|
], 2),
|
|
2333
2333
|
Y("div", Wl, [
|
|
2334
|
-
|
|
2334
|
+
Pe(r.$slots, "title")
|
|
2335
2335
|
]),
|
|
2336
|
-
|
|
2337
|
-
|
|
2338
|
-
|
|
2336
|
+
Pe(r.$slots, "action"),
|
|
2337
|
+
tt(jl),
|
|
2338
|
+
tt(Ol, {
|
|
2339
2339
|
onLogout: s[1] || (s[1] = (a) => o("logout"))
|
|
2340
2340
|
})
|
|
2341
2341
|
]),
|
|
2342
2342
|
Y("nav", {
|
|
2343
|
-
class:
|
|
2343
|
+
class: pe({ visible: je(n).IsVisible })
|
|
2344
2344
|
}, [
|
|
2345
2345
|
Y("div", ql, [
|
|
2346
|
-
|
|
2346
|
+
Pe(r.$slots, "menu")
|
|
2347
2347
|
])
|
|
2348
2348
|
], 2),
|
|
2349
2349
|
Y("main", {
|
|
2350
|
-
class:
|
|
2350
|
+
class: pe({ "menu-visible": je(n).IsVisible })
|
|
2351
2351
|
}, [
|
|
2352
2352
|
Kl,
|
|
2353
2353
|
Y("section", Gl, [
|
|
2354
|
-
|
|
2354
|
+
Pe(r.$slots, "content")
|
|
2355
2355
|
])
|
|
2356
2356
|
], 2)
|
|
2357
2357
|
]));
|
|
2358
2358
|
}
|
|
2359
|
-
}), Jl = ["href", "data-active", "onClick"], Yl = { class: "sf-navmenulink-text" },
|
|
2359
|
+
}), Jl = ["href", "data-active", "onClick"], Yl = { class: "sf-navmenulink-text" }, Kd = /* @__PURE__ */ Me({
|
|
2360
2360
|
__name: "NavMenuLink",
|
|
2361
2361
|
props: {
|
|
2362
2362
|
href: {},
|
|
@@ -2365,30 +2365,30 @@ const eo = (() => new Ml())(), $l = /* @__PURE__ */ Xs('<svg xmlns="http://www.w
|
|
|
2365
2365
|
exact: { type: Boolean }
|
|
2366
2366
|
},
|
|
2367
2367
|
setup(t) {
|
|
2368
|
-
const e = t, n =
|
|
2368
|
+
const e = t, n = Tr();
|
|
2369
2369
|
function o(r, s) {
|
|
2370
2370
|
r.preventDefault();
|
|
2371
2371
|
const d = r.target.closest(".sf-layout-nav-content");
|
|
2372
2372
|
s(), d && d.clientWidth + 10 > document.body.clientWidth && n.Close();
|
|
2373
2373
|
}
|
|
2374
2374
|
return (r, s) => {
|
|
2375
|
-
const a =
|
|
2375
|
+
const a = Sr("router-link");
|
|
2376
2376
|
return oe(), at(a, {
|
|
2377
2377
|
to: e.href,
|
|
2378
2378
|
custom: ""
|
|
2379
2379
|
}, {
|
|
2380
|
-
default:
|
|
2380
|
+
default: bt(({ href: d, navigate: l, isExactActive: b, isActive: w }) => [
|
|
2381
2381
|
Y("a", {
|
|
2382
2382
|
class: "sf-navmenulink",
|
|
2383
2383
|
href: d,
|
|
2384
|
-
"data-active": e.exact ?
|
|
2385
|
-
onClick: (
|
|
2384
|
+
"data-active": e.exact ? b : w,
|
|
2385
|
+
onClick: (y) => o(y, l)
|
|
2386
2386
|
}, [
|
|
2387
2387
|
e.icon ? (oe(), at(cn, {
|
|
2388
2388
|
key: 0,
|
|
2389
2389
|
icone: e.icon,
|
|
2390
2390
|
"button-props": { tabindex: -1 }
|
|
2391
|
-
}, null, 8, ["icone"])) :
|
|
2391
|
+
}, null, 8, ["icone"])) : yt("", !0),
|
|
2392
2392
|
Y("span", Yl, fn(e.text), 1)
|
|
2393
2393
|
], 8, Jl)
|
|
2394
2394
|
]),
|
|
@@ -2396,10 +2396,10 @@ const eo = (() => new Ml())(), $l = /* @__PURE__ */ Xs('<svg xmlns="http://www.w
|
|
|
2396
2396
|
}, 8, ["to"]);
|
|
2397
2397
|
};
|
|
2398
2398
|
}
|
|
2399
|
-
}), Xl = /* @__PURE__ */
|
|
2399
|
+
}), Xl = /* @__PURE__ */ Me({
|
|
2400
2400
|
__name: "ScrollToTop",
|
|
2401
2401
|
setup(t) {
|
|
2402
|
-
const e =
|
|
2402
|
+
const e = Ve(!1), n = `--${+/* @__PURE__ */ new Date()}`;
|
|
2403
2403
|
let o = null;
|
|
2404
2404
|
function r() {
|
|
2405
2405
|
o == null || o.scrollTo(0, 0);
|
|
@@ -2409,13 +2409,13 @@ const eo = (() => new Ml())(), $l = /* @__PURE__ */ Xs('<svg xmlns="http://www.w
|
|
|
2409
2409
|
o = ((s = document.getElementById(n)) == null ? void 0 : s.parentElement) ?? null, o && o.addEventListener("scroll", function() {
|
|
2410
2410
|
e.value = this.scrollTop - this.clientHeight > 0;
|
|
2411
2411
|
});
|
|
2412
|
-
}), (s, a) => (oe(),
|
|
2412
|
+
}), (s, a) => (oe(), ue("button", {
|
|
2413
2413
|
id: n,
|
|
2414
|
-
class:
|
|
2414
|
+
class: pe(["sf-scrollToTop", { "sf-scrollToTop-visible": e.value }]),
|
|
2415
2415
|
onClick: r
|
|
2416
2416
|
}, null, 2));
|
|
2417
2417
|
}
|
|
2418
|
-
}),
|
|
2418
|
+
}), Gd = /* @__PURE__ */ Me({
|
|
2419
2419
|
__name: "Content",
|
|
2420
2420
|
props: {
|
|
2421
2421
|
class: {},
|
|
@@ -2427,36 +2427,36 @@ const eo = (() => new Ml())(), $l = /* @__PURE__ */ Xs('<svg xmlns="http://www.w
|
|
|
2427
2427
|
setup(t) {
|
|
2428
2428
|
const e = t;
|
|
2429
2429
|
function n() {
|
|
2430
|
-
return new
|
|
2430
|
+
return new Qe("sf-content").AddClass(e.class, !!e.class).Build();
|
|
2431
2431
|
}
|
|
2432
2432
|
function o() {
|
|
2433
|
-
return new
|
|
2433
|
+
return new Qe("sf-content-body").AddClass("sf-content-no-padding", e.disableBodyPadding).Build();
|
|
2434
2434
|
}
|
|
2435
2435
|
function r() {
|
|
2436
|
-
return new
|
|
2436
|
+
return new Qe("sf-content-header").AddClass("sf-content-no-padding", e.disableHeaderPadding).Build();
|
|
2437
2437
|
}
|
|
2438
2438
|
function s() {
|
|
2439
|
-
return new
|
|
2439
|
+
return new Qe("sf-content-footer").AddClass("sf-content-no-padding", e.disableFooterPadding).Build();
|
|
2440
2440
|
}
|
|
2441
|
-
return (a, d) => (oe(),
|
|
2442
|
-
class:
|
|
2441
|
+
return (a, d) => (oe(), ue("div", {
|
|
2442
|
+
class: pe(n()),
|
|
2443
2443
|
style: Dt(e.style)
|
|
2444
2444
|
}, [
|
|
2445
2445
|
Y("div", {
|
|
2446
|
-
class:
|
|
2446
|
+
class: pe(r())
|
|
2447
2447
|
}, [
|
|
2448
|
-
|
|
2448
|
+
Pe(a.$slots, "header")
|
|
2449
2449
|
], 2),
|
|
2450
2450
|
Y("div", {
|
|
2451
|
-
class:
|
|
2451
|
+
class: pe(o())
|
|
2452
2452
|
}, [
|
|
2453
|
-
|
|
2454
|
-
|
|
2453
|
+
Pe(a.$slots, "default"),
|
|
2454
|
+
tt(Xl)
|
|
2455
2455
|
], 2),
|
|
2456
2456
|
Y("div", {
|
|
2457
|
-
class:
|
|
2457
|
+
class: pe(s())
|
|
2458
2458
|
}, [
|
|
2459
|
-
|
|
2459
|
+
Pe(a.$slots, "footer")
|
|
2460
2460
|
], 2)
|
|
2461
2461
|
], 6));
|
|
2462
2462
|
}
|
|
@@ -2490,18 +2490,18 @@ const eo = (() => new Ml())(), $l = /* @__PURE__ */ Xs('<svg xmlns="http://www.w
|
|
|
2490
2490
|
})
|
|
2491
2491
|
], -1), ru = [
|
|
2492
2492
|
ou
|
|
2493
|
-
],
|
|
2493
|
+
], Jd = /* @__PURE__ */ Me({
|
|
2494
2494
|
__name: "TabNavigation",
|
|
2495
2495
|
props: {
|
|
2496
2496
|
tabs: {}
|
|
2497
2497
|
},
|
|
2498
2498
|
setup(t) {
|
|
2499
|
-
const e = t, n =
|
|
2499
|
+
const e = t, n = Ve(null), o = new ResizeObserver((l) => {
|
|
2500
2500
|
d();
|
|
2501
|
-
}), r =
|
|
2501
|
+
}), r = Ve(!1), s = Ve(!1);
|
|
2502
2502
|
function a(l = !1) {
|
|
2503
|
-
const
|
|
2504
|
-
n.value.scrollLeft += l ? -
|
|
2503
|
+
const b = n.value.clientWidth;
|
|
2504
|
+
n.value.scrollLeft += l ? -b : b;
|
|
2505
2505
|
}
|
|
2506
2506
|
function d() {
|
|
2507
2507
|
const l = n.value.scrollWidth - n.value.clientWidth;
|
|
@@ -2518,33 +2518,33 @@ const eo = (() => new Ml())(), $l = /* @__PURE__ */ Xs('<svg xmlns="http://www.w
|
|
|
2518
2518
|
), o.unobserve(n.value), o.disconnect();
|
|
2519
2519
|
} catch {
|
|
2520
2520
|
}
|
|
2521
|
-
}), (l,
|
|
2522
|
-
const w =
|
|
2523
|
-
return oe(),
|
|
2521
|
+
}), (l, b) => {
|
|
2522
|
+
const w = Sr("RouterLink");
|
|
2523
|
+
return oe(), ue("div", Zl, [
|
|
2524
2524
|
Y("div", {
|
|
2525
|
-
class:
|
|
2526
|
-
onClick:
|
|
2525
|
+
class: pe(["left-arrow", { active: r.value }]),
|
|
2526
|
+
onClick: b[0] || (b[0] = (y) => a(!0))
|
|
2527
2527
|
}, eu, 2),
|
|
2528
2528
|
Y("ul", {
|
|
2529
2529
|
ref_key: "trackerContainer",
|
|
2530
2530
|
ref: n
|
|
2531
2531
|
}, [
|
|
2532
|
-
(oe(!0),
|
|
2533
|
-
to:
|
|
2532
|
+
(oe(!0), ue(co, null, Qs(e.tabs, (y) => (oe(), at(w, {
|
|
2533
|
+
to: y.route,
|
|
2534
2534
|
custom: !0
|
|
2535
2535
|
}, {
|
|
2536
|
-
default:
|
|
2536
|
+
default: bt(({ navigate: G, isActive: M }) => [
|
|
2537
2537
|
Y("li", { "data-active": M }, [
|
|
2538
|
-
|
|
2539
|
-
item:
|
|
2538
|
+
Pe(l.$slots, "item", {
|
|
2539
|
+
item: y,
|
|
2540
2540
|
navigate: G,
|
|
2541
2541
|
isActive: M
|
|
2542
2542
|
}, () => [
|
|
2543
2543
|
Y("a", {
|
|
2544
|
-
href:
|
|
2545
|
-
class:
|
|
2544
|
+
href: y.route,
|
|
2545
|
+
class: pe({ active: M }),
|
|
2546
2546
|
onClick: G
|
|
2547
|
-
}, fn(
|
|
2547
|
+
}, fn(y.text), 11, nu)
|
|
2548
2548
|
])
|
|
2549
2549
|
], 8, tu)
|
|
2550
2550
|
]),
|
|
@@ -2552,18 +2552,52 @@ const eo = (() => new Ml())(), $l = /* @__PURE__ */ Xs('<svg xmlns="http://www.w
|
|
|
2552
2552
|
}, 1032, ["to"]))), 256))
|
|
2553
2553
|
], 512),
|
|
2554
2554
|
Y("div", {
|
|
2555
|
-
class:
|
|
2556
|
-
onClick:
|
|
2555
|
+
class: pe(["right-arrow", { active: s.value }]),
|
|
2556
|
+
onClick: b[1] || (b[1] = (y) => a())
|
|
2557
2557
|
}, ru, 2)
|
|
2558
2558
|
]);
|
|
2559
2559
|
};
|
|
2560
2560
|
}
|
|
2561
|
+
}), su = ["data-icon"], Yd = /* @__PURE__ */ Me({
|
|
2562
|
+
__name: "Message",
|
|
2563
|
+
props: {
|
|
2564
|
+
severity: { default: pn.Info },
|
|
2565
|
+
class: {},
|
|
2566
|
+
style: {},
|
|
2567
|
+
icon: {}
|
|
2568
|
+
},
|
|
2569
|
+
setup(t) {
|
|
2570
|
+
const e = t, n = Gn(() => {
|
|
2571
|
+
if (e.icon)
|
|
2572
|
+
return e.icon;
|
|
2573
|
+
switch (e.severity) {
|
|
2574
|
+
case "error":
|
|
2575
|
+
return "cancel";
|
|
2576
|
+
case "info":
|
|
2577
|
+
return "info";
|
|
2578
|
+
case "warn":
|
|
2579
|
+
return "warning";
|
|
2580
|
+
case "success":
|
|
2581
|
+
return "check";
|
|
2582
|
+
case "help":
|
|
2583
|
+
return "help";
|
|
2584
|
+
default:
|
|
2585
|
+
return null;
|
|
2586
|
+
}
|
|
2587
|
+
}), o = Gn(() => new Qe("sf-message").AddClass("sf-message-error", e.severity === "error").AddClass("sf-message-info", e.severity === "info").AddClass("sf-message-warning", e.severity === "warn").AddClass("sf-message-success", e.severity === "success").AddClass("sf-message-help", e.severity === "help").AddClass("sf-message-primary", e.severity === "primary").AddClass("sf-message-secondary", e.severity === "secondary").AddClass(e.class).Build());
|
|
2588
|
+
return (r, s) => (oe(), ue("div", {
|
|
2589
|
+
class: pe(o.value),
|
|
2590
|
+
"data-icon": n.value
|
|
2591
|
+
}, [
|
|
2592
|
+
Pe(r.$slots, "default")
|
|
2593
|
+
], 10, su));
|
|
2594
|
+
}
|
|
2561
2595
|
});
|
|
2562
|
-
var
|
|
2563
|
-
function
|
|
2596
|
+
var iu = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
|
|
2597
|
+
function au(t) {
|
|
2564
2598
|
return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
|
|
2565
2599
|
}
|
|
2566
|
-
function
|
|
2600
|
+
function cu(t) {
|
|
2567
2601
|
if (t.__esModule)
|
|
2568
2602
|
return t;
|
|
2569
2603
|
var e = t.default;
|
|
@@ -2584,16 +2618,16 @@ function au(t) {
|
|
|
2584
2618
|
});
|
|
2585
2619
|
}), n;
|
|
2586
2620
|
}
|
|
2587
|
-
var
|
|
2588
|
-
|
|
2589
|
-
|
|
2590
|
-
|
|
2591
|
-
var
|
|
2592
|
-
for (var gt = 0,
|
|
2593
|
-
|
|
2594
|
-
|
|
2595
|
-
|
|
2596
|
-
function
|
|
2621
|
+
var vn = {};
|
|
2622
|
+
vn.byteLength = du;
|
|
2623
|
+
vn.toByteArray = hu;
|
|
2624
|
+
vn.fromByteArray = gu;
|
|
2625
|
+
var He = [], Oe = [], lu = typeof Uint8Array < "u" ? Uint8Array : Array, Hn = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";
|
|
2626
|
+
for (var gt = 0, uu = Hn.length; gt < uu; ++gt)
|
|
2627
|
+
He[gt] = Hn[gt], Oe[Hn.charCodeAt(gt)] = gt;
|
|
2628
|
+
Oe["-".charCodeAt(0)] = 62;
|
|
2629
|
+
Oe["_".charCodeAt(0)] = 63;
|
|
2630
|
+
function fs(t) {
|
|
2597
2631
|
var e = t.length;
|
|
2598
2632
|
if (e % 4 > 0)
|
|
2599
2633
|
throw new Error("Invalid string. Length must be a multiple of 4");
|
|
@@ -2602,41 +2636,41 @@ function ds(t) {
|
|
|
2602
2636
|
var o = n === e ? 0 : 4 - n % 4;
|
|
2603
2637
|
return [n, o];
|
|
2604
2638
|
}
|
|
2605
|
-
function
|
|
2606
|
-
var e =
|
|
2639
|
+
function du(t) {
|
|
2640
|
+
var e = fs(t), n = e[0], o = e[1];
|
|
2607
2641
|
return (n + o) * 3 / 4 - o;
|
|
2608
2642
|
}
|
|
2609
|
-
function
|
|
2643
|
+
function fu(t, e, n) {
|
|
2610
2644
|
return (e + n) * 3 / 4 - n;
|
|
2611
2645
|
}
|
|
2612
|
-
function
|
|
2613
|
-
var e, n =
|
|
2646
|
+
function hu(t) {
|
|
2647
|
+
var e, n = fs(t), o = n[0], r = n[1], s = new lu(fu(t, o, r)), a = 0, d = r > 0 ? o - 4 : o, l;
|
|
2614
2648
|
for (l = 0; l < d; l += 4)
|
|
2615
|
-
e =
|
|
2616
|
-
return r === 2 && (e =
|
|
2649
|
+
e = Oe[t.charCodeAt(l)] << 18 | Oe[t.charCodeAt(l + 1)] << 12 | Oe[t.charCodeAt(l + 2)] << 6 | Oe[t.charCodeAt(l + 3)], s[a++] = e >> 16 & 255, s[a++] = e >> 8 & 255, s[a++] = e & 255;
|
|
2650
|
+
return r === 2 && (e = Oe[t.charCodeAt(l)] << 2 | Oe[t.charCodeAt(l + 1)] >> 4, s[a++] = e & 255), r === 1 && (e = Oe[t.charCodeAt(l)] << 10 | Oe[t.charCodeAt(l + 1)] << 4 | Oe[t.charCodeAt(l + 2)] >> 2, s[a++] = e >> 8 & 255, s[a++] = e & 255), s;
|
|
2617
2651
|
}
|
|
2618
|
-
function
|
|
2619
|
-
return
|
|
2652
|
+
function pu(t) {
|
|
2653
|
+
return He[t >> 18 & 63] + He[t >> 12 & 63] + He[t >> 6 & 63] + He[t & 63];
|
|
2620
2654
|
}
|
|
2621
|
-
function
|
|
2655
|
+
function mu(t, e, n) {
|
|
2622
2656
|
for (var o, r = [], s = e; s < n; s += 3)
|
|
2623
|
-
o = (t[s] << 16 & 16711680) + (t[s + 1] << 8 & 65280) + (t[s + 2] & 255), r.push(
|
|
2657
|
+
o = (t[s] << 16 & 16711680) + (t[s + 1] << 8 & 65280) + (t[s + 2] & 255), r.push(pu(o));
|
|
2624
2658
|
return r.join("");
|
|
2625
2659
|
}
|
|
2626
|
-
function
|
|
2660
|
+
function gu(t) {
|
|
2627
2661
|
for (var e, n = t.length, o = n % 3, r = [], s = 16383, a = 0, d = n - o; a < d; a += s)
|
|
2628
|
-
r.push(
|
|
2662
|
+
r.push(mu(t, a, a + s > d ? d : a + s));
|
|
2629
2663
|
return o === 1 ? (e = t[n - 1], r.push(
|
|
2630
|
-
|
|
2664
|
+
He[e >> 2] + He[e << 4 & 63] + "=="
|
|
2631
2665
|
)) : o === 2 && (e = (t[n - 2] << 8) + t[n - 1], r.push(
|
|
2632
|
-
|
|
2666
|
+
He[e >> 10] + He[e >> 4 & 63] + He[e << 2 & 63] + "="
|
|
2633
2667
|
)), r.join("");
|
|
2634
2668
|
}
|
|
2635
|
-
var
|
|
2636
|
-
const
|
|
2669
|
+
var hs = { exports: {} };
|
|
2670
|
+
const yu = {}, bu = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
2637
2671
|
__proto__: null,
|
|
2638
|
-
default:
|
|
2639
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
2672
|
+
default: yu
|
|
2673
|
+
}, Symbol.toStringTag, { value: "Module" })), pr = /* @__PURE__ */ cu(bu);
|
|
2640
2674
|
/**
|
|
2641
2675
|
* [js-sha256]{@link https://github.com/emn178/js-sha256}
|
|
2642
2676
|
*
|
|
@@ -2650,8 +2684,8 @@ const gu = {}, bu = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
2650
2684
|
var e = "input is invalid type", n = typeof window == "object", o = n ? window : {};
|
|
2651
2685
|
o.JS_SHA256_NO_WINDOW && (n = !1);
|
|
2652
2686
|
var r = !n && typeof self == "object", s = !o.JS_SHA256_NO_NODE_JS && typeof process == "object" && process.versions && process.versions.node;
|
|
2653
|
-
s ? o =
|
|
2654
|
-
var a = !o.JS_SHA256_NO_COMMON_JS && !0 && t.exports, d = !o.JS_SHA256_NO_ARRAY_BUFFER && typeof ArrayBuffer < "u", l = "0123456789abcdef".split(""),
|
|
2687
|
+
s ? o = iu : r && (o = self);
|
|
2688
|
+
var a = !o.JS_SHA256_NO_COMMON_JS && !0 && t.exports, d = !o.JS_SHA256_NO_ARRAY_BUFFER && typeof ArrayBuffer < "u", l = "0123456789abcdef".split(""), b = [-2147483648, 8388608, 32768, 128], w = [24, 16, 8, 0], y = [
|
|
2655
2689
|
1116352408,
|
|
2656
2690
|
1899447441,
|
|
2657
2691
|
3049323471,
|
|
@@ -2722,58 +2756,58 @@ const gu = {}, bu = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
2722
2756
|
}), d && (o.JS_SHA256_NO_ARRAY_BUFFER_IS_VIEW || !ArrayBuffer.isView) && (ArrayBuffer.isView = function(m) {
|
|
2723
2757
|
return typeof m == "object" && m.buffer && m.buffer.constructor === ArrayBuffer;
|
|
2724
2758
|
});
|
|
2725
|
-
var I = function(m,
|
|
2759
|
+
var I = function(m, S) {
|
|
2726
2760
|
return function(N) {
|
|
2727
|
-
return new H(
|
|
2761
|
+
return new H(S, !0).update(N)[m]();
|
|
2728
2762
|
};
|
|
2729
2763
|
}, F = function(m) {
|
|
2730
|
-
var
|
|
2731
|
-
s && (
|
|
2764
|
+
var S = I("hex", m);
|
|
2765
|
+
s && (S = D(S, m)), S.create = function() {
|
|
2732
2766
|
return new H(m);
|
|
2733
|
-
},
|
|
2734
|
-
return
|
|
2767
|
+
}, S.update = function(C) {
|
|
2768
|
+
return S.create().update(C);
|
|
2735
2769
|
};
|
|
2736
2770
|
for (var N = 0; N < G.length; ++N) {
|
|
2737
2771
|
var T = G[N];
|
|
2738
|
-
|
|
2772
|
+
S[T] = I(T, m);
|
|
2739
2773
|
}
|
|
2740
|
-
return
|
|
2741
|
-
}, D = function(m,
|
|
2742
|
-
var N =
|
|
2743
|
-
T.from && !o.JS_SHA256_NO_BUFFER_FROM ?
|
|
2774
|
+
return S;
|
|
2775
|
+
}, D = function(m, S) {
|
|
2776
|
+
var N = pr, T = pr.Buffer, C = S ? "sha224" : "sha256", _;
|
|
2777
|
+
T.from && !o.JS_SHA256_NO_BUFFER_FROM ? _ = T.from : _ = function(v) {
|
|
2744
2778
|
return new T(v);
|
|
2745
2779
|
};
|
|
2746
2780
|
var j = function(v) {
|
|
2747
2781
|
if (typeof v == "string")
|
|
2748
|
-
return N.createHash(
|
|
2782
|
+
return N.createHash(C).update(v, "utf8").digest("hex");
|
|
2749
2783
|
if (v == null)
|
|
2750
2784
|
throw new Error(e);
|
|
2751
|
-
return v.constructor === ArrayBuffer && (v = new Uint8Array(v)), Array.isArray(v) || ArrayBuffer.isView(v) || v.constructor === T ? N.createHash(
|
|
2785
|
+
return v.constructor === ArrayBuffer && (v = new Uint8Array(v)), Array.isArray(v) || ArrayBuffer.isView(v) || v.constructor === T ? N.createHash(C).update(_(v)).digest("hex") : m(v);
|
|
2752
2786
|
};
|
|
2753
2787
|
return j;
|
|
2754
|
-
}, Q = function(m,
|
|
2788
|
+
}, Q = function(m, S) {
|
|
2755
2789
|
return function(N, T) {
|
|
2756
|
-
return new be(N,
|
|
2790
|
+
return new be(N, S, !0).update(T)[m]();
|
|
2757
2791
|
};
|
|
2758
2792
|
}, ne = function(m) {
|
|
2759
|
-
var
|
|
2760
|
-
|
|
2761
|
-
return new be(
|
|
2762
|
-
},
|
|
2763
|
-
return
|
|
2793
|
+
var S = Q("hex", m);
|
|
2794
|
+
S.create = function(C) {
|
|
2795
|
+
return new be(C, m);
|
|
2796
|
+
}, S.update = function(C, _) {
|
|
2797
|
+
return S.create(C).update(_);
|
|
2764
2798
|
};
|
|
2765
2799
|
for (var N = 0; N < G.length; ++N) {
|
|
2766
2800
|
var T = G[N];
|
|
2767
|
-
|
|
2801
|
+
S[T] = Q(T, m);
|
|
2768
2802
|
}
|
|
2769
|
-
return
|
|
2803
|
+
return S;
|
|
2770
2804
|
};
|
|
2771
|
-
function H(m,
|
|
2772
|
-
|
|
2805
|
+
function H(m, S) {
|
|
2806
|
+
S ? (M[0] = M[16] = M[1] = M[2] = M[3] = M[4] = M[5] = M[6] = M[7] = M[8] = M[9] = M[10] = M[11] = M[12] = M[13] = M[14] = M[15] = 0, this.blocks = M) : this.blocks = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], m ? (this.h0 = 3238371032, this.h1 = 914150663, this.h2 = 812702999, this.h3 = 4144912697, this.h4 = 4290775857, this.h5 = 1750603025, this.h6 = 1694076839, this.h7 = 3204075428) : (this.h0 = 1779033703, this.h1 = 3144134277, this.h2 = 1013904242, this.h3 = 2773480762, this.h4 = 1359893119, this.h5 = 2600822924, this.h6 = 528734635, this.h7 = 1541459225), this.block = this.start = this.bytes = this.hBytes = 0, this.finalized = this.hashed = !1, this.first = !0, this.is224 = m;
|
|
2773
2807
|
}
|
|
2774
2808
|
H.prototype.update = function(m) {
|
|
2775
2809
|
if (!this.finalized) {
|
|
2776
|
-
var
|
|
2810
|
+
var S, N = typeof m;
|
|
2777
2811
|
if (N !== "string") {
|
|
2778
2812
|
if (N === "object") {
|
|
2779
2813
|
if (m === null)
|
|
@@ -2784,47 +2818,47 @@ const gu = {}, bu = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
2784
2818
|
throw new Error(e);
|
|
2785
2819
|
} else
|
|
2786
2820
|
throw new Error(e);
|
|
2787
|
-
|
|
2821
|
+
S = !0;
|
|
2788
2822
|
}
|
|
2789
|
-
for (var T,
|
|
2790
|
-
if (this.hashed && (this.hashed = !1, v[0] = this.block, v[16] = v[1] = v[2] = v[3] = v[4] = v[5] = v[6] = v[7] = v[8] = v[9] = v[10] = v[11] = v[12] = v[13] = v[14] = v[15] = 0),
|
|
2791
|
-
for (
|
|
2792
|
-
v[
|
|
2823
|
+
for (var T, C = 0, _, j = m.length, v = this.blocks; C < j; ) {
|
|
2824
|
+
if (this.hashed && (this.hashed = !1, v[0] = this.block, v[16] = v[1] = v[2] = v[3] = v[4] = v[5] = v[6] = v[7] = v[8] = v[9] = v[10] = v[11] = v[12] = v[13] = v[14] = v[15] = 0), S)
|
|
2825
|
+
for (_ = this.start; C < j && _ < 64; ++C)
|
|
2826
|
+
v[_ >> 2] |= m[C] << w[_++ & 3];
|
|
2793
2827
|
else
|
|
2794
|
-
for (
|
|
2795
|
-
T = m.charCodeAt(
|
|
2796
|
-
this.lastByteIndex =
|
|
2828
|
+
for (_ = this.start; C < j && _ < 64; ++C)
|
|
2829
|
+
T = m.charCodeAt(C), T < 128 ? v[_ >> 2] |= T << w[_++ & 3] : T < 2048 ? (v[_ >> 2] |= (192 | T >> 6) << w[_++ & 3], v[_ >> 2] |= (128 | T & 63) << w[_++ & 3]) : T < 55296 || T >= 57344 ? (v[_ >> 2] |= (224 | T >> 12) << w[_++ & 3], v[_ >> 2] |= (128 | T >> 6 & 63) << w[_++ & 3], v[_ >> 2] |= (128 | T & 63) << w[_++ & 3]) : (T = 65536 + ((T & 1023) << 10 | m.charCodeAt(++C) & 1023), v[_ >> 2] |= (240 | T >> 18) << w[_++ & 3], v[_ >> 2] |= (128 | T >> 12 & 63) << w[_++ & 3], v[_ >> 2] |= (128 | T >> 6 & 63) << w[_++ & 3], v[_ >> 2] |= (128 | T & 63) << w[_++ & 3]);
|
|
2830
|
+
this.lastByteIndex = _, this.bytes += _ - this.start, _ >= 64 ? (this.block = v[16], this.start = _ - 64, this.hash(), this.hashed = !0) : this.start = _;
|
|
2797
2831
|
}
|
|
2798
2832
|
return this.bytes > 4294967295 && (this.hBytes += this.bytes / 4294967296 << 0, this.bytes = this.bytes % 4294967296), this;
|
|
2799
2833
|
}
|
|
2800
2834
|
}, H.prototype.finalize = function() {
|
|
2801
2835
|
if (!this.finalized) {
|
|
2802
2836
|
this.finalized = !0;
|
|
2803
|
-
var m = this.blocks,
|
|
2804
|
-
m[16] = this.block, m[
|
|
2837
|
+
var m = this.blocks, S = this.lastByteIndex;
|
|
2838
|
+
m[16] = this.block, m[S >> 2] |= b[S & 3], this.block = m[16], S >= 56 && (this.hashed || this.hash(), m[0] = this.block, m[16] = m[1] = m[2] = m[3] = m[4] = m[5] = m[6] = m[7] = m[8] = m[9] = m[10] = m[11] = m[12] = m[13] = m[14] = m[15] = 0), m[14] = this.hBytes << 3 | this.bytes >>> 29, m[15] = this.bytes << 3, this.hash();
|
|
2805
2839
|
}
|
|
2806
2840
|
}, H.prototype.hash = function() {
|
|
2807
|
-
var m = this.h0,
|
|
2841
|
+
var m = this.h0, S = this.h1, N = this.h2, T = this.h3, C = this.h4, _ = this.h5, j = this.h6, v = this.h7, z = this.blocks, ee, ie, re, we, U, Ee, i, u, p, E, g;
|
|
2808
2842
|
for (ee = 16; ee < 64; ++ee)
|
|
2809
2843
|
U = z[ee - 15], ie = (U >>> 7 | U << 25) ^ (U >>> 18 | U << 14) ^ U >>> 3, U = z[ee - 2], re = (U >>> 17 | U << 15) ^ (U >>> 19 | U << 13) ^ U >>> 10, z[ee] = z[ee - 16] + ie + z[ee - 7] + re << 0;
|
|
2810
|
-
for (g =
|
|
2811
|
-
this.first ? (this.is224 ? (u = 300032, U = z[0] - 1413257819, v = U - 150054599 << 0, T = U + 24177077 << 0) : (u = 704751109, U = z[0] - 210244248, v = U - 1521486534 << 0, T = U + 143694565 << 0), this.first = !1) : (ie = (m >>> 2 | m << 30) ^ (m >>> 13 | m << 19) ^ (m >>> 22 | m << 10), re = (
|
|
2812
|
-
this.h0 = this.h0 + m << 0, this.h1 = this.h1 +
|
|
2844
|
+
for (g = S & N, ee = 0; ee < 64; ee += 4)
|
|
2845
|
+
this.first ? (this.is224 ? (u = 300032, U = z[0] - 1413257819, v = U - 150054599 << 0, T = U + 24177077 << 0) : (u = 704751109, U = z[0] - 210244248, v = U - 1521486534 << 0, T = U + 143694565 << 0), this.first = !1) : (ie = (m >>> 2 | m << 30) ^ (m >>> 13 | m << 19) ^ (m >>> 22 | m << 10), re = (C >>> 6 | C << 26) ^ (C >>> 11 | C << 21) ^ (C >>> 25 | C << 7), u = m & S, we = u ^ m & N ^ g, i = C & _ ^ ~C & j, U = v + re + i + y[ee] + z[ee], Ee = ie + we, v = T + U << 0, T = U + Ee << 0), ie = (T >>> 2 | T << 30) ^ (T >>> 13 | T << 19) ^ (T >>> 22 | T << 10), re = (v >>> 6 | v << 26) ^ (v >>> 11 | v << 21) ^ (v >>> 25 | v << 7), p = T & m, we = p ^ T & S ^ u, i = v & C ^ ~v & _, U = j + re + i + y[ee + 1] + z[ee + 1], Ee = ie + we, j = N + U << 0, N = U + Ee << 0, ie = (N >>> 2 | N << 30) ^ (N >>> 13 | N << 19) ^ (N >>> 22 | N << 10), re = (j >>> 6 | j << 26) ^ (j >>> 11 | j << 21) ^ (j >>> 25 | j << 7), E = N & T, we = E ^ N & m ^ p, i = j & v ^ ~j & C, U = _ + re + i + y[ee + 2] + z[ee + 2], Ee = ie + we, _ = S + U << 0, S = U + Ee << 0, ie = (S >>> 2 | S << 30) ^ (S >>> 13 | S << 19) ^ (S >>> 22 | S << 10), re = (_ >>> 6 | _ << 26) ^ (_ >>> 11 | _ << 21) ^ (_ >>> 25 | _ << 7), g = S & N, we = g ^ S & T ^ E, i = _ & j ^ ~_ & v, U = C + re + i + y[ee + 3] + z[ee + 3], Ee = ie + we, C = m + U << 0, m = U + Ee << 0, this.chromeBugWorkAround = !0;
|
|
2846
|
+
this.h0 = this.h0 + m << 0, this.h1 = this.h1 + S << 0, this.h2 = this.h2 + N << 0, this.h3 = this.h3 + T << 0, this.h4 = this.h4 + C << 0, this.h5 = this.h5 + _ << 0, this.h6 = this.h6 + j << 0, this.h7 = this.h7 + v << 0;
|
|
2813
2847
|
}, H.prototype.hex = function() {
|
|
2814
2848
|
this.finalize();
|
|
2815
|
-
var m = this.h0,
|
|
2849
|
+
var m = this.h0, S = this.h1, N = this.h2, T = this.h3, C = this.h4, _ = this.h5, j = this.h6, v = this.h7, z = l[m >> 28 & 15] + l[m >> 24 & 15] + l[m >> 20 & 15] + l[m >> 16 & 15] + l[m >> 12 & 15] + l[m >> 8 & 15] + l[m >> 4 & 15] + l[m & 15] + l[S >> 28 & 15] + l[S >> 24 & 15] + l[S >> 20 & 15] + l[S >> 16 & 15] + l[S >> 12 & 15] + l[S >> 8 & 15] + l[S >> 4 & 15] + l[S & 15] + l[N >> 28 & 15] + l[N >> 24 & 15] + l[N >> 20 & 15] + l[N >> 16 & 15] + l[N >> 12 & 15] + l[N >> 8 & 15] + l[N >> 4 & 15] + l[N & 15] + l[T >> 28 & 15] + l[T >> 24 & 15] + l[T >> 20 & 15] + l[T >> 16 & 15] + l[T >> 12 & 15] + l[T >> 8 & 15] + l[T >> 4 & 15] + l[T & 15] + l[C >> 28 & 15] + l[C >> 24 & 15] + l[C >> 20 & 15] + l[C >> 16 & 15] + l[C >> 12 & 15] + l[C >> 8 & 15] + l[C >> 4 & 15] + l[C & 15] + l[_ >> 28 & 15] + l[_ >> 24 & 15] + l[_ >> 20 & 15] + l[_ >> 16 & 15] + l[_ >> 12 & 15] + l[_ >> 8 & 15] + l[_ >> 4 & 15] + l[_ & 15] + l[j >> 28 & 15] + l[j >> 24 & 15] + l[j >> 20 & 15] + l[j >> 16 & 15] + l[j >> 12 & 15] + l[j >> 8 & 15] + l[j >> 4 & 15] + l[j & 15];
|
|
2816
2850
|
return this.is224 || (z += l[v >> 28 & 15] + l[v >> 24 & 15] + l[v >> 20 & 15] + l[v >> 16 & 15] + l[v >> 12 & 15] + l[v >> 8 & 15] + l[v >> 4 & 15] + l[v & 15]), z;
|
|
2817
2851
|
}, H.prototype.toString = H.prototype.hex, H.prototype.digest = function() {
|
|
2818
2852
|
this.finalize();
|
|
2819
|
-
var m = this.h0,
|
|
2853
|
+
var m = this.h0, S = this.h1, N = this.h2, T = this.h3, C = this.h4, _ = this.h5, j = this.h6, v = this.h7, z = [
|
|
2820
2854
|
m >> 24 & 255,
|
|
2821
2855
|
m >> 16 & 255,
|
|
2822
2856
|
m >> 8 & 255,
|
|
2823
2857
|
m & 255,
|
|
2824
|
-
|
|
2825
|
-
|
|
2826
|
-
|
|
2827
|
-
|
|
2858
|
+
S >> 24 & 255,
|
|
2859
|
+
S >> 16 & 255,
|
|
2860
|
+
S >> 8 & 255,
|
|
2861
|
+
S & 255,
|
|
2828
2862
|
N >> 24 & 255,
|
|
2829
2863
|
N >> 16 & 255,
|
|
2830
2864
|
N >> 8 & 255,
|
|
@@ -2833,14 +2867,14 @@ const gu = {}, bu = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
2833
2867
|
T >> 16 & 255,
|
|
2834
2868
|
T >> 8 & 255,
|
|
2835
2869
|
T & 255,
|
|
2870
|
+
C >> 24 & 255,
|
|
2871
|
+
C >> 16 & 255,
|
|
2872
|
+
C >> 8 & 255,
|
|
2873
|
+
C & 255,
|
|
2836
2874
|
_ >> 24 & 255,
|
|
2837
2875
|
_ >> 16 & 255,
|
|
2838
2876
|
_ >> 8 & 255,
|
|
2839
2877
|
_ & 255,
|
|
2840
|
-
S >> 24 & 255,
|
|
2841
|
-
S >> 16 & 255,
|
|
2842
|
-
S >> 8 & 255,
|
|
2843
|
-
S & 255,
|
|
2844
2878
|
j >> 24 & 255,
|
|
2845
2879
|
j >> 16 & 255,
|
|
2846
2880
|
j >> 8 & 255,
|
|
@@ -2849,17 +2883,17 @@ const gu = {}, bu = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
2849
2883
|
return this.is224 || z.push(v >> 24 & 255, v >> 16 & 255, v >> 8 & 255, v & 255), z;
|
|
2850
2884
|
}, H.prototype.array = H.prototype.digest, H.prototype.arrayBuffer = function() {
|
|
2851
2885
|
this.finalize();
|
|
2852
|
-
var m = new ArrayBuffer(this.is224 ? 28 : 32),
|
|
2853
|
-
return
|
|
2886
|
+
var m = new ArrayBuffer(this.is224 ? 28 : 32), S = new DataView(m);
|
|
2887
|
+
return S.setUint32(0, this.h0), S.setUint32(4, this.h1), S.setUint32(8, this.h2), S.setUint32(12, this.h3), S.setUint32(16, this.h4), S.setUint32(20, this.h5), S.setUint32(24, this.h6), this.is224 || S.setUint32(28, this.h7), m;
|
|
2854
2888
|
};
|
|
2855
|
-
function be(m,
|
|
2856
|
-
var T,
|
|
2857
|
-
if (
|
|
2858
|
-
var
|
|
2889
|
+
function be(m, S, N) {
|
|
2890
|
+
var T, C = typeof m;
|
|
2891
|
+
if (C === "string") {
|
|
2892
|
+
var _ = [], j = m.length, v = 0, z;
|
|
2859
2893
|
for (T = 0; T < j; ++T)
|
|
2860
|
-
z = m.charCodeAt(T), z < 128 ?
|
|
2861
|
-
m =
|
|
2862
|
-
} else if (
|
|
2894
|
+
z = m.charCodeAt(T), z < 128 ? _[v++] = z : z < 2048 ? (_[v++] = 192 | z >> 6, _[v++] = 128 | z & 63) : z < 55296 || z >= 57344 ? (_[v++] = 224 | z >> 12, _[v++] = 128 | z >> 6 & 63, _[v++] = 128 | z & 63) : (z = 65536 + ((z & 1023) << 10 | m.charCodeAt(++T) & 1023), _[v++] = 240 | z >> 18, _[v++] = 128 | z >> 12 & 63, _[v++] = 128 | z >> 6 & 63, _[v++] = 128 | z & 63);
|
|
2895
|
+
m = _;
|
|
2896
|
+
} else if (C === "object") {
|
|
2863
2897
|
if (m === null)
|
|
2864
2898
|
throw new Error(e);
|
|
2865
2899
|
if (d && m.constructor === ArrayBuffer)
|
|
@@ -2868,13 +2902,13 @@ const gu = {}, bu = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
2868
2902
|
throw new Error(e);
|
|
2869
2903
|
} else
|
|
2870
2904
|
throw new Error(e);
|
|
2871
|
-
m.length > 64 && (m = new H(
|
|
2905
|
+
m.length > 64 && (m = new H(S, !0).update(m).array());
|
|
2872
2906
|
var ee = [], ie = [];
|
|
2873
2907
|
for (T = 0; T < 64; ++T) {
|
|
2874
2908
|
var re = m[T] || 0;
|
|
2875
2909
|
ee[T] = 92 ^ re, ie[T] = 54 ^ re;
|
|
2876
2910
|
}
|
|
2877
|
-
H.call(this,
|
|
2911
|
+
H.call(this, S, N), this.update(ie), this.oKeyPad = ee, this.inner = !0, this.sharedMemory = N;
|
|
2878
2912
|
}
|
|
2879
2913
|
be.prototype = new H(), be.prototype.finalize = function() {
|
|
2880
2914
|
if (H.prototype.finalize.call(this), this.inner) {
|
|
@@ -2886,19 +2920,19 @@ const gu = {}, bu = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
2886
2920
|
var ae = F();
|
|
2887
2921
|
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);
|
|
2888
2922
|
})();
|
|
2889
|
-
})(
|
|
2890
|
-
var
|
|
2891
|
-
const
|
|
2923
|
+
})(hs);
|
|
2924
|
+
var wu = hs.exports;
|
|
2925
|
+
const vu = /* @__PURE__ */ au(wu);
|
|
2892
2926
|
class Bt extends Error {
|
|
2893
2927
|
}
|
|
2894
2928
|
Bt.prototype.name = "InvalidTokenError";
|
|
2895
|
-
function
|
|
2929
|
+
function Au(t) {
|
|
2896
2930
|
return decodeURIComponent(atob(t).replace(/(.)/g, (e, n) => {
|
|
2897
2931
|
let o = n.charCodeAt(0).toString(16).toUpperCase();
|
|
2898
2932
|
return o.length < 2 && (o = "0" + o), "%" + o;
|
|
2899
2933
|
}));
|
|
2900
2934
|
}
|
|
2901
|
-
function
|
|
2935
|
+
function Eu(t) {
|
|
2902
2936
|
let e = t.replace(/-/g, "+").replace(/_/g, "/");
|
|
2903
2937
|
switch (e.length % 4) {
|
|
2904
2938
|
case 0:
|
|
@@ -2913,12 +2947,12 @@ function Au(t) {
|
|
|
2913
2947
|
throw new Error("base64 string is not of the correct length");
|
|
2914
2948
|
}
|
|
2915
2949
|
try {
|
|
2916
|
-
return
|
|
2950
|
+
return Au(e);
|
|
2917
2951
|
} catch {
|
|
2918
2952
|
return atob(e);
|
|
2919
2953
|
}
|
|
2920
2954
|
}
|
|
2921
|
-
function
|
|
2955
|
+
function jn(t, e) {
|
|
2922
2956
|
if (typeof t != "string")
|
|
2923
2957
|
throw new Bt("Invalid token specified: must be a string");
|
|
2924
2958
|
e || (e = {});
|
|
@@ -2927,7 +2961,7 @@ function Hn(t, e) {
|
|
|
2927
2961
|
throw new Bt(`Invalid token specified: missing part #${n + 1}`);
|
|
2928
2962
|
let r;
|
|
2929
2963
|
try {
|
|
2930
|
-
r =
|
|
2964
|
+
r = Eu(o);
|
|
2931
2965
|
} catch (s) {
|
|
2932
2966
|
throw new Bt(`Invalid token specified: invalid base64 for part #${n + 1} (${s.message})`);
|
|
2933
2967
|
}
|
|
@@ -2939,8 +2973,8 @@ function Hn(t, e) {
|
|
|
2939
2973
|
}
|
|
2940
2974
|
if (typeof Promise > "u")
|
|
2941
2975
|
throw Error("Keycloak requires an environment that supports Promises. Make sure that you include the appropriate polyfill.");
|
|
2942
|
-
function
|
|
2943
|
-
if (!(this instanceof
|
|
2976
|
+
function ps(t) {
|
|
2977
|
+
if (!(this instanceof ps))
|
|
2944
2978
|
throw new Error("The 'Keycloak' constructor must be invoked with 'new'.");
|
|
2945
2979
|
for (var e = this, n, o = [], r, s = {
|
|
2946
2980
|
enable: !0,
|
|
@@ -2948,7 +2982,7 @@ function hs(t) {
|
|
|
2948
2982
|
interval: 5
|
|
2949
2983
|
}, a = document.getElementsByTagName("script"), d = 0; d < a.length; d++)
|
|
2950
2984
|
(a[d].src.indexOf("keycloak.js") !== -1 || a[d].src.indexOf("keycloak.min.js") !== -1) && a[d].src.indexOf("version=") !== -1 && (e.iframeVersion = a[d].src.substring(a[d].src.indexOf("version=") + 8).split("&")[0]);
|
|
2951
|
-
var l = !0,
|
|
2985
|
+
var l = !0, b = Ee(console.info), w = Ee(console.warn);
|
|
2952
2986
|
e.init = function(i) {
|
|
2953
2987
|
if (e.didInitialize)
|
|
2954
2988
|
throw new Error("A 'Keycloak' instance can only be initialized once.");
|
|
@@ -2984,7 +3018,7 @@ function hs(t) {
|
|
|
2984
3018
|
typeof i.enableLogging == "boolean" ? e.enableLogging = i.enableLogging : e.enableLogging = !1, typeof i.scope == "string" && (e.scope = i.scope), typeof i.acrValues == "string" && (e.acrValues = i.acrValues), typeof i.messageReceiveTimeout == "number" && i.messageReceiveTimeout > 0 ? e.messageReceiveTimeout = i.messageReceiveTimeout : e.messageReceiveTimeout = 1e4;
|
|
2985
3019
|
}
|
|
2986
3020
|
e.responseMode || (e.responseMode = "fragment"), e.responseType || (e.responseType = "code", e.flow = "standard");
|
|
2987
|
-
var p =
|
|
3021
|
+
var p = C(), E = C();
|
|
2988
3022
|
E.promise.then(function() {
|
|
2989
3023
|
e.onReady && e.onReady(e.authenticated), p.setSuccess(e.authenticated);
|
|
2990
3024
|
}).catch(function(L) {
|
|
@@ -3001,13 +3035,13 @@ function hs(t) {
|
|
|
3001
3035
|
}, R = function() {
|
|
3002
3036
|
var K = document.createElement("iframe"), ke = e.createLoginUrl({ prompt: "none", redirectUri: e.silentCheckSsoRedirectUri });
|
|
3003
3037
|
K.setAttribute("src", ke), K.setAttribute("sandbox", "allow-scripts allow-same-origin"), K.setAttribute("title", "keycloak-silent-check-sso"), K.style.display = "none", document.body.appendChild(K);
|
|
3004
|
-
var
|
|
3038
|
+
var ve = function(le) {
|
|
3005
3039
|
if (!(le.origin !== window.location.origin || K.contentWindow !== le.source)) {
|
|
3006
|
-
var
|
|
3007
|
-
ne(
|
|
3040
|
+
var $e = S(le.data);
|
|
3041
|
+
ne($e, E), document.body.removeChild(K), window.removeEventListener("message", ve);
|
|
3008
3042
|
}
|
|
3009
3043
|
};
|
|
3010
|
-
window.addEventListener("message",
|
|
3044
|
+
window.addEventListener("message", ve);
|
|
3011
3045
|
}, $ = {};
|
|
3012
3046
|
switch (i.onLoad) {
|
|
3013
3047
|
case "check-sso":
|
|
@@ -3027,7 +3061,7 @@ function hs(t) {
|
|
|
3027
3061
|
}
|
|
3028
3062
|
}
|
|
3029
3063
|
function A() {
|
|
3030
|
-
var L =
|
|
3064
|
+
var L = S(window.location.href);
|
|
3031
3065
|
if (L && window.history.replaceState(window.history.state, null, L.newUrl), L && L.valid)
|
|
3032
3066
|
return j().then(function() {
|
|
3033
3067
|
ne(L, E);
|
|
@@ -3047,7 +3081,7 @@ function hs(t) {
|
|
|
3047
3081
|
})) : i.onLoad ? P() : E.setSuccess() : E.setSuccess();
|
|
3048
3082
|
}
|
|
3049
3083
|
function k() {
|
|
3050
|
-
var L =
|
|
3084
|
+
var L = C(), R = function() {
|
|
3051
3085
|
(document.readyState === "interactive" || document.readyState === "complete") && (document.removeEventListener("readystatechange", R), L.setSuccess());
|
|
3052
3086
|
};
|
|
3053
3087
|
return document.addEventListener("readystatechange", R), R(), L.promise;
|
|
@@ -3062,7 +3096,7 @@ function hs(t) {
|
|
|
3062
3096
|
}, e.login = function(i) {
|
|
3063
3097
|
return n.login(i);
|
|
3064
3098
|
};
|
|
3065
|
-
function
|
|
3099
|
+
function y(i) {
|
|
3066
3100
|
var u = null, p = window.crypto || window.msCrypto;
|
|
3067
3101
|
if (p && p.getRandomValues && window.Uint8Array)
|
|
3068
3102
|
return u = new Uint8Array(i), p.getRandomValues(u), u;
|
|
@@ -3075,14 +3109,14 @@ function hs(t) {
|
|
|
3075
3109
|
return M(i, "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789");
|
|
3076
3110
|
}
|
|
3077
3111
|
function M(i, u) {
|
|
3078
|
-
for (var p =
|
|
3112
|
+
for (var p = y(i), E = new Array(i), g = 0; g < i; g++)
|
|
3079
3113
|
E[g] = u.charCodeAt(p[g] % u.length);
|
|
3080
3114
|
return String.fromCharCode.apply(null, E);
|
|
3081
3115
|
}
|
|
3082
3116
|
function I(i, u) {
|
|
3083
3117
|
switch (i) {
|
|
3084
3118
|
case "S256":
|
|
3085
|
-
var p = new Uint8Array(
|
|
3119
|
+
var p = new Uint8Array(vu.arrayBuffer(u)), E = vn.fromByteArray(p).replace(/\+/g, "-").replace(/\//g, "_").replace(/\=/g, "");
|
|
3086
3120
|
return E;
|
|
3087
3121
|
default:
|
|
3088
3122
|
throw "Invalid value for pkceMethod";
|
|
@@ -3144,14 +3178,14 @@ function hs(t) {
|
|
|
3144
3178
|
}, e.loadUserProfile = function() {
|
|
3145
3179
|
var i = D() + "/account", u = new XMLHttpRequest();
|
|
3146
3180
|
u.open("GET", i, !0), u.setRequestHeader("Accept", "application/json"), u.setRequestHeader("Authorization", "bearer " + e.token);
|
|
3147
|
-
var p =
|
|
3181
|
+
var p = C();
|
|
3148
3182
|
return u.onreadystatechange = function() {
|
|
3149
3183
|
u.readyState == 4 && (u.status == 200 ? (e.profile = JSON.parse(u.responseText), p.setSuccess(e.profile)) : p.setError());
|
|
3150
3184
|
}, u.send(), p.promise;
|
|
3151
3185
|
}, e.loadUserInfo = function() {
|
|
3152
3186
|
var i = e.endpoints.userinfo(), u = new XMLHttpRequest();
|
|
3153
3187
|
u.open("GET", i, !0), u.setRequestHeader("Accept", "application/json"), u.setRequestHeader("Authorization", "bearer " + e.token);
|
|
3154
|
-
var p =
|
|
3188
|
+
var p = C();
|
|
3155
3189
|
return u.onreadystatechange = function() {
|
|
3156
3190
|
u.readyState == 4 && (u.status == 200 ? (e.userInfo = JSON.parse(u.responseText), p.setSuccess(e.userInfo)) : p.setError());
|
|
3157
3191
|
}, u.send(), p.promise;
|
|
@@ -3159,7 +3193,7 @@ function hs(t) {
|
|
|
3159
3193
|
if (!e.tokenParsed || !e.refreshToken && e.flow != "implicit")
|
|
3160
3194
|
throw "Not authenticated";
|
|
3161
3195
|
if (e.timeSkew == null)
|
|
3162
|
-
return
|
|
3196
|
+
return b("[KEYCLOAK] Unable to determine if token is expired as timeskew is not set"), !0;
|
|
3163
3197
|
var u = e.tokenParsed.exp - Math.ceil((/* @__PURE__ */ new Date()).getTime() / 1e3) + e.timeSkew;
|
|
3164
3198
|
if (i) {
|
|
3165
3199
|
if (isNaN(i))
|
|
@@ -3168,13 +3202,13 @@ function hs(t) {
|
|
|
3168
3202
|
}
|
|
3169
3203
|
return u < 0;
|
|
3170
3204
|
}, e.updateToken = function(i) {
|
|
3171
|
-
var u =
|
|
3205
|
+
var u = C();
|
|
3172
3206
|
if (!e.refreshToken)
|
|
3173
3207
|
return u.setError(), u.promise;
|
|
3174
3208
|
i = i || 5;
|
|
3175
3209
|
var p = function() {
|
|
3176
3210
|
var g = !1;
|
|
3177
|
-
if (i == -1 ? (g = !0,
|
|
3211
|
+
if (i == -1 ? (g = !0, b("[KEYCLOAK] Refreshing token: forced refresh")) : (!e.tokenParsed || e.isTokenExpired(i)) && (g = !0, b("[KEYCLOAK] Refreshing token: token expired")), !g)
|
|
3178
3212
|
u.setSuccess(!1);
|
|
3179
3213
|
else {
|
|
3180
3214
|
var P = "grant_type=refresh_token&refresh_token=" + e.refreshToken, A = e.endpoints.token();
|
|
@@ -3185,7 +3219,7 @@ function hs(t) {
|
|
|
3185
3219
|
k.onreadystatechange = function() {
|
|
3186
3220
|
if (k.readyState == 4)
|
|
3187
3221
|
if (k.status == 200) {
|
|
3188
|
-
|
|
3222
|
+
b("[KEYCLOAK] Token refreshed"), L = (L + (/* @__PURE__ */ new Date()).getTime()) / 2;
|
|
3189
3223
|
var R = JSON.parse(k.responseText);
|
|
3190
3224
|
ae(R.access_token, R.refresh_token, R.id_token, L), e.onAuthRefreshSuccess && e.onAuthRefreshSuccess();
|
|
3191
3225
|
for (var $ = o.pop(); $ != null; $ = o.pop())
|
|
@@ -3241,12 +3275,12 @@ function hs(t) {
|
|
|
3241
3275
|
e.onAuthError && e.onAuthError(), u && u.setError();
|
|
3242
3276
|
}, R.send(k);
|
|
3243
3277
|
}
|
|
3244
|
-
function $(K, ke,
|
|
3245
|
-
P = (P + (/* @__PURE__ */ new Date()).getTime()) / 2, ae(K, ke,
|
|
3278
|
+
function $(K, ke, ve, le) {
|
|
3279
|
+
P = (P + (/* @__PURE__ */ new Date()).getTime()) / 2, ae(K, ke, ve, P), l && (e.tokenParsed && e.tokenParsed.nonce != i.storedNonce || e.refreshTokenParsed && e.refreshTokenParsed.nonce != i.storedNonce || e.idTokenParsed && e.idTokenParsed.nonce != i.storedNonce) ? (b("[KEYCLOAK] Invalid nonce, clearing token"), e.clearToken(), u && u.setError()) : le && (e.onAuthSuccess && e.onAuthSuccess(), u && u.setSuccess());
|
|
3246
3280
|
}
|
|
3247
3281
|
}
|
|
3248
3282
|
function H(i) {
|
|
3249
|
-
var u =
|
|
3283
|
+
var u = C(), p;
|
|
3250
3284
|
t ? typeof t == "string" && (p = t) : p = location.origin + "/keycloak.json";
|
|
3251
3285
|
function E(R) {
|
|
3252
3286
|
R ? e.endpoints = {
|
|
@@ -3349,10 +3383,10 @@ function hs(t) {
|
|
|
3349
3383
|
return i.status == 0 && i.responseText && i.responseURL.startsWith("file:");
|
|
3350
3384
|
}
|
|
3351
3385
|
function ae(i, u, p, E) {
|
|
3352
|
-
if (e.tokenTimeoutHandle && (clearTimeout(e.tokenTimeoutHandle), e.tokenTimeoutHandle = null), u ? (e.refreshToken = u, e.refreshTokenParsed =
|
|
3353
|
-
if (e.token = i, e.tokenParsed =
|
|
3386
|
+
if (e.tokenTimeoutHandle && (clearTimeout(e.tokenTimeoutHandle), e.tokenTimeoutHandle = null), u ? (e.refreshToken = u, e.refreshTokenParsed = jn(u)) : (delete e.refreshToken, delete e.refreshTokenParsed), p ? (e.idToken = p, e.idTokenParsed = jn(p)) : (delete e.idToken, delete e.idTokenParsed), i) {
|
|
3387
|
+
if (e.token = i, e.tokenParsed = jn(i), e.sessionId = e.tokenParsed.session_state, e.authenticated = !0, e.subject = e.tokenParsed.sub, e.realmAccess = e.tokenParsed.realm_access, e.resourceAccess = e.tokenParsed.resource_access, E && (e.timeSkew = Math.floor(E / 1e3) - e.tokenParsed.iat), e.timeSkew != null && (b("[KEYCLOAK] Estimated time difference between browser and server is " + e.timeSkew + " seconds"), e.onTokenExpired)) {
|
|
3354
3388
|
var g = (e.tokenParsed.exp - (/* @__PURE__ */ new Date()).getTime() / 1e3 + e.timeSkew) * 1e3;
|
|
3355
|
-
|
|
3389
|
+
b("[KEYCLOAK] Token expires in " + Math.round(g / 1e3) + " s"), g <= 0 ? e.onTokenExpired() : e.tokenTimeoutHandle = setTimeout(e.onTokenExpired, g);
|
|
3356
3390
|
}
|
|
3357
3391
|
} else
|
|
3358
3392
|
delete e.token, delete e.tokenParsed, delete e.subject, delete e.realmAccess, delete e.resourceAccess, e.authenticated = !1;
|
|
@@ -3363,7 +3397,7 @@ function hs(t) {
|
|
|
3363
3397
|
var p = u.join("");
|
|
3364
3398
|
return p;
|
|
3365
3399
|
}
|
|
3366
|
-
function
|
|
3400
|
+
function S(i) {
|
|
3367
3401
|
var u = N(i);
|
|
3368
3402
|
if (u) {
|
|
3369
3403
|
var p = r.get(u.state);
|
|
@@ -3403,7 +3437,7 @@ function hs(t) {
|
|
|
3403
3437
|
}
|
|
3404
3438
|
return E;
|
|
3405
3439
|
}
|
|
3406
|
-
function
|
|
3440
|
+
function C() {
|
|
3407
3441
|
var i = {
|
|
3408
3442
|
setSuccess: function(u) {
|
|
3409
3443
|
i.resolve(u);
|
|
@@ -3416,7 +3450,7 @@ function hs(t) {
|
|
|
3416
3450
|
i.resolve = u, i.reject = p;
|
|
3417
3451
|
}), i;
|
|
3418
3452
|
}
|
|
3419
|
-
function
|
|
3453
|
+
function _(i, u, p) {
|
|
3420
3454
|
var E = null, g = new Promise(function(P, A) {
|
|
3421
3455
|
E = setTimeout(function() {
|
|
3422
3456
|
A({ error: p || "Promise is not settled within timeout of " + u + "ms" });
|
|
@@ -3427,7 +3461,7 @@ function hs(t) {
|
|
|
3427
3461
|
});
|
|
3428
3462
|
}
|
|
3429
3463
|
function j() {
|
|
3430
|
-
var i =
|
|
3464
|
+
var i = C();
|
|
3431
3465
|
if (!s.enable || s.iframe)
|
|
3432
3466
|
return i.setSuccess(), i.promise;
|
|
3433
3467
|
var u = document.createElement("iframe");
|
|
@@ -3456,7 +3490,7 @@ function hs(t) {
|
|
|
3456
3490
|
}, s.interval * 1e3);
|
|
3457
3491
|
}
|
|
3458
3492
|
function z() {
|
|
3459
|
-
var i =
|
|
3493
|
+
var i = C();
|
|
3460
3494
|
if (s.iframe && s.iframeOrigin) {
|
|
3461
3495
|
var u = e.clientId + " " + (e.sessionId ? e.sessionId : "");
|
|
3462
3496
|
s.callbackList.push(i);
|
|
@@ -3467,7 +3501,7 @@ function hs(t) {
|
|
|
3467
3501
|
return i.promise;
|
|
3468
3502
|
}
|
|
3469
3503
|
function ee() {
|
|
3470
|
-
var i =
|
|
3504
|
+
var i = C();
|
|
3471
3505
|
if (s.enable || e.silentCheckSsoRedirectUri) {
|
|
3472
3506
|
var u = document.createElement("iframe");
|
|
3473
3507
|
u.setAttribute("src", e.endpoints.thirdPartyCookiesIframe()), u.setAttribute("sandbox", "allow-scripts allow-same-origin"), u.setAttribute("title", "keycloak-3p-check-iframe"), u.style.display = "none", document.body.appendChild(u);
|
|
@@ -3484,19 +3518,19 @@ For more information see: https://www.keycloak.org/docs/latest/securing_apps/#_m
|
|
|
3484
3518
|
window.addEventListener("message", p, !1);
|
|
3485
3519
|
} else
|
|
3486
3520
|
i.setSuccess();
|
|
3487
|
-
return
|
|
3521
|
+
return _(i.promise, e.messageReceiveTimeout, "Timeout when waiting for 3rd party check iframe message.");
|
|
3488
3522
|
}
|
|
3489
3523
|
function ie(i) {
|
|
3490
3524
|
if (!i || i == "default")
|
|
3491
3525
|
return {
|
|
3492
3526
|
login: function(A) {
|
|
3493
|
-
return window.location.assign(e.createLoginUrl(A)),
|
|
3527
|
+
return window.location.assign(e.createLoginUrl(A)), C().promise;
|
|
3494
3528
|
},
|
|
3495
3529
|
logout: function(A) {
|
|
3496
|
-
return window.location.replace(e.createLogoutUrl(A)),
|
|
3530
|
+
return window.location.replace(e.createLogoutUrl(A)), C().promise;
|
|
3497
3531
|
},
|
|
3498
3532
|
register: function(A) {
|
|
3499
|
-
return window.location.assign(e.createRegisterUrl(A)),
|
|
3533
|
+
return window.location.assign(e.createRegisterUrl(A)), C().promise;
|
|
3500
3534
|
},
|
|
3501
3535
|
accountManagement: function() {
|
|
3502
3536
|
var A = e.createAccountUrl();
|
|
@@ -3504,7 +3538,7 @@ For more information see: https://www.keycloak.org/docs/latest/securing_apps/#_m
|
|
|
3504
3538
|
window.location.href = A;
|
|
3505
3539
|
else
|
|
3506
3540
|
throw "Not supported by the OIDC server";
|
|
3507
|
-
return
|
|
3541
|
+
return C().promise;
|
|
3508
3542
|
},
|
|
3509
3543
|
redirectUri: function(A, k) {
|
|
3510
3544
|
return A && A.redirectUri ? A.redirectUri : e.redirectUri ? e.redirectUri : location.href;
|
|
@@ -3530,21 +3564,21 @@ For more information see: https://www.keycloak.org/docs/latest/securing_apps/#_m
|
|
|
3530
3564
|
};
|
|
3531
3565
|
return {
|
|
3532
3566
|
login: function(A) {
|
|
3533
|
-
var k =
|
|
3567
|
+
var k = C(), L = g(A), R = e.createLoginUrl(A), $ = u(R, "_blank", L), K = !1, ke = !1, ve = function() {
|
|
3534
3568
|
ke = !0, $.close();
|
|
3535
3569
|
};
|
|
3536
3570
|
return $.addEventListener("loadstart", function(le) {
|
|
3537
3571
|
if (le.url.indexOf(P()) == 0) {
|
|
3538
|
-
var
|
|
3539
|
-
ne(
|
|
3572
|
+
var $e = S(le.url);
|
|
3573
|
+
ne($e, k), ve(), K = !0;
|
|
3540
3574
|
}
|
|
3541
3575
|
}), $.addEventListener("loaderror", function(le) {
|
|
3542
3576
|
if (!K)
|
|
3543
3577
|
if (le.url.indexOf(P()) == 0) {
|
|
3544
|
-
var
|
|
3545
|
-
ne(
|
|
3578
|
+
var $e = S(le.url);
|
|
3579
|
+
ne($e, k), ve(), K = !0;
|
|
3546
3580
|
} else
|
|
3547
|
-
k.setError(),
|
|
3581
|
+
k.setError(), ve();
|
|
3548
3582
|
}), $.addEventListener("exit", function(le) {
|
|
3549
3583
|
ke || k.setError({
|
|
3550
3584
|
reason: "closed_by_user"
|
|
@@ -3552,7 +3586,7 @@ For more information see: https://www.keycloak.org/docs/latest/securing_apps/#_m
|
|
|
3552
3586
|
}), k.promise;
|
|
3553
3587
|
},
|
|
3554
3588
|
logout: function(A) {
|
|
3555
|
-
var k =
|
|
3589
|
+
var k = C(), L = e.createLogoutUrl(A), R = u(L, "_blank", "location=no,hidden=yes,clearcache=yes"), $;
|
|
3556
3590
|
return R.addEventListener("loadstart", function(K) {
|
|
3557
3591
|
K.url.indexOf(P()) == 0 && R.close();
|
|
3558
3592
|
}), R.addEventListener("loaderror", function(K) {
|
|
@@ -3562,11 +3596,11 @@ For more information see: https://www.keycloak.org/docs/latest/securing_apps/#_m
|
|
|
3562
3596
|
}), k.promise;
|
|
3563
3597
|
},
|
|
3564
3598
|
register: function(A) {
|
|
3565
|
-
var k =
|
|
3599
|
+
var k = C(), L = e.createRegisterUrl(), R = g(A), $ = u(L, "_blank", R);
|
|
3566
3600
|
return $.addEventListener("loadstart", function(K) {
|
|
3567
3601
|
if (K.url.indexOf(P()) == 0) {
|
|
3568
3602
|
$.close();
|
|
3569
|
-
var ke =
|
|
3603
|
+
var ke = S(K.url);
|
|
3570
3604
|
ne(ke, k);
|
|
3571
3605
|
}
|
|
3572
3606
|
}), k.promise;
|
|
@@ -3589,24 +3623,24 @@ For more information see: https://www.keycloak.org/docs/latest/securing_apps/#_m
|
|
|
3589
3623
|
if (i == "cordova-native")
|
|
3590
3624
|
return s.enable = !1, {
|
|
3591
3625
|
login: function(A) {
|
|
3592
|
-
var k =
|
|
3626
|
+
var k = C(), L = e.createLoginUrl(A);
|
|
3593
3627
|
return universalLinks.subscribe("keycloak", function(R) {
|
|
3594
3628
|
universalLinks.unsubscribe("keycloak"), window.cordova.plugins.browsertab.close();
|
|
3595
|
-
var $ =
|
|
3629
|
+
var $ = S(R.url);
|
|
3596
3630
|
ne($, k);
|
|
3597
3631
|
}), window.cordova.plugins.browsertab.openUrl(L), k.promise;
|
|
3598
3632
|
},
|
|
3599
3633
|
logout: function(A) {
|
|
3600
|
-
var k =
|
|
3634
|
+
var k = C(), L = e.createLogoutUrl(A);
|
|
3601
3635
|
return universalLinks.subscribe("keycloak", function(R) {
|
|
3602
3636
|
universalLinks.unsubscribe("keycloak"), window.cordova.plugins.browsertab.close(), e.clearToken(), k.setSuccess();
|
|
3603
3637
|
}), window.cordova.plugins.browsertab.openUrl(L), k.promise;
|
|
3604
3638
|
},
|
|
3605
3639
|
register: function(A) {
|
|
3606
|
-
var k =
|
|
3640
|
+
var k = C(), L = e.createRegisterUrl(A);
|
|
3607
3641
|
return universalLinks.subscribe("keycloak", function(R) {
|
|
3608
3642
|
universalLinks.unsubscribe("keycloak"), window.cordova.plugins.browsertab.close();
|
|
3609
|
-
var $ =
|
|
3643
|
+
var $ = S(R.url);
|
|
3610
3644
|
ne($, k);
|
|
3611
3645
|
}), window.cordova.plugins.browsertab.openUrl(L), k.promise;
|
|
3612
3646
|
},
|
|
@@ -3653,9 +3687,9 @@ For more information see: https://www.keycloak.org/docs/latest/securing_apps/#_m
|
|
|
3653
3687
|
var E = "kc-callback-" + p.state;
|
|
3654
3688
|
p.expires = (/* @__PURE__ */ new Date()).getTime() + 60 * 60 * 1e3, localStorage.setItem(E, JSON.stringify(p));
|
|
3655
3689
|
};
|
|
3656
|
-
},
|
|
3657
|
-
if (!(this instanceof
|
|
3658
|
-
return new
|
|
3690
|
+
}, we = function() {
|
|
3691
|
+
if (!(this instanceof we))
|
|
3692
|
+
return new we();
|
|
3659
3693
|
var i = this;
|
|
3660
3694
|
i.get = function(g) {
|
|
3661
3695
|
if (g) {
|
|
@@ -3689,7 +3723,7 @@ For more information see: https://www.keycloak.org/docs/latest/securing_apps/#_m
|
|
|
3689
3723
|
return new re();
|
|
3690
3724
|
} catch {
|
|
3691
3725
|
}
|
|
3692
|
-
return new
|
|
3726
|
+
return new we();
|
|
3693
3727
|
}
|
|
3694
3728
|
function Ee(i) {
|
|
3695
3729
|
return function() {
|
|
@@ -3697,7 +3731,7 @@ For more information see: https://www.keycloak.org/docs/latest/securing_apps/#_m
|
|
|
3697
3731
|
};
|
|
3698
3732
|
}
|
|
3699
3733
|
}
|
|
3700
|
-
async function
|
|
3734
|
+
async function ku() {
|
|
3701
3735
|
const t = "silent-login.html", e = await fetch(location.origin + "/" + t).then(async (n) => n.status !== 200 ? !1 : (await n.text()).includes("silent-login-iframe-result")).catch(() => !1);
|
|
3702
3736
|
if (!e) {
|
|
3703
3737
|
const n = `O arquivo ${t} não foi localizado no projeto ou não possui o conteúdo correto!`;
|
|
@@ -3705,16 +3739,16 @@ async function Eu() {
|
|
|
3705
3739
|
}
|
|
3706
3740
|
return e;
|
|
3707
3741
|
}
|
|
3708
|
-
function
|
|
3709
|
-
const e = new
|
|
3710
|
-
if (await
|
|
3742
|
+
function xu(t) {
|
|
3743
|
+
const e = new ps(t), n = {}, o = async (a = {}, d) => {
|
|
3744
|
+
if (await ku())
|
|
3711
3745
|
return a.onLoad === "login-required" && document.documentElement.setAttribute(
|
|
3712
3746
|
"data-app-message",
|
|
3713
3747
|
"Autorizando..."
|
|
3714
|
-
), e.init(a).then(async (
|
|
3715
|
-
|
|
3716
|
-
}).catch((
|
|
3717
|
-
console.error(
|
|
3748
|
+
), e.init(a).then(async (b) => {
|
|
3749
|
+
b && await r(), d && typeof d == "function" && d(), document.documentElement.classList.add("app-mounted");
|
|
3750
|
+
}).catch((b) => {
|
|
3751
|
+
console.error(b), document.documentElement.setAttribute(
|
|
3718
3752
|
"data-app-message",
|
|
3719
3753
|
"Não foi possível conectar no servidor de autenticação."
|
|
3720
3754
|
);
|
|
@@ -3736,8 +3770,8 @@ function ku(t) {
|
|
|
3736
3770
|
}
|
|
3737
3771
|
};
|
|
3738
3772
|
}
|
|
3739
|
-
const
|
|
3740
|
-
class
|
|
3773
|
+
const Xd = (t) => xu(t);
|
|
3774
|
+
class mr {
|
|
3741
3775
|
constructor(e = null) {
|
|
3742
3776
|
Je(this, "errors", []);
|
|
3743
3777
|
Je(this, "_value", null);
|
|
@@ -3769,38 +3803,38 @@ class pr {
|
|
|
3769
3803
|
e.forEach((n) => this.WithError(n));
|
|
3770
3804
|
}
|
|
3771
3805
|
}
|
|
3772
|
-
function
|
|
3806
|
+
function ms(t, e) {
|
|
3773
3807
|
return function() {
|
|
3774
3808
|
return t.apply(e, arguments);
|
|
3775
3809
|
};
|
|
3776
3810
|
}
|
|
3777
|
-
const { toString:
|
|
3778
|
-
const n =
|
|
3811
|
+
const { toString: _u } = Object.prototype, { getPrototypeOf: Eo } = Object, An = ((t) => (e) => {
|
|
3812
|
+
const n = _u.call(e);
|
|
3779
3813
|
return t[n] || (t[n] = n.slice(8, -1).toLowerCase());
|
|
3780
|
-
})(/* @__PURE__ */ Object.create(null)), qe = (t) => (t = t.toLowerCase(), (e) =>
|
|
3781
|
-
function
|
|
3814
|
+
})(/* @__PURE__ */ Object.create(null)), qe = (t) => (t = t.toLowerCase(), (e) => An(e) === t), En = (t) => (e) => typeof e === t, { isArray: St } = Array, Ht = En("undefined");
|
|
3815
|
+
function Cu(t) {
|
|
3782
3816
|
return t !== null && !Ht(t) && t.constructor !== null && !Ht(t.constructor) && Ie(t.constructor.isBuffer) && t.constructor.isBuffer(t);
|
|
3783
3817
|
}
|
|
3784
|
-
const
|
|
3785
|
-
function
|
|
3818
|
+
const gs = qe("ArrayBuffer");
|
|
3819
|
+
function Su(t) {
|
|
3786
3820
|
let e;
|
|
3787
|
-
return typeof ArrayBuffer < "u" && ArrayBuffer.isView ? e = ArrayBuffer.isView(t) : e = t && t.buffer &&
|
|
3821
|
+
return typeof ArrayBuffer < "u" && ArrayBuffer.isView ? e = ArrayBuffer.isView(t) : e = t && t.buffer && gs(t.buffer), e;
|
|
3788
3822
|
}
|
|
3789
|
-
const
|
|
3790
|
-
if (
|
|
3823
|
+
const Tu = En("string"), Ie = En("function"), ys = En("number"), kn = (t) => t !== null && typeof t == "object", Pu = (t) => t === !0 || t === !1, rn = (t) => {
|
|
3824
|
+
if (An(t) !== "object")
|
|
3791
3825
|
return !1;
|
|
3792
|
-
const e =
|
|
3826
|
+
const e = Eo(t);
|
|
3793
3827
|
return (e === null || e === Object.prototype || Object.getPrototypeOf(e) === null) && !(Symbol.toStringTag in t) && !(Symbol.iterator in t);
|
|
3794
|
-
},
|
|
3828
|
+
}, Ru = qe("Date"), Lu = qe("File"), Ou = qe("Blob"), Iu = qe("FileList"), Fu = (t) => kn(t) && Ie(t.pipe), Bu = (t) => {
|
|
3795
3829
|
let e;
|
|
3796
|
-
return t && (typeof FormData == "function" && t instanceof FormData || Ie(t.append) && ((e =
|
|
3830
|
+
return t && (typeof FormData == "function" && t instanceof FormData || Ie(t.append) && ((e = An(t)) === "formdata" || // detect form-data instance
|
|
3797
3831
|
e === "object" && Ie(t.toString) && t.toString() === "[object FormData]"));
|
|
3798
|
-
},
|
|
3832
|
+
}, Nu = qe("URLSearchParams"), Uu = (t) => t.trim ? t.trim() : t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, "");
|
|
3799
3833
|
function Gt(t, e, { allOwnKeys: n = !1 } = {}) {
|
|
3800
3834
|
if (t === null || typeof t > "u")
|
|
3801
3835
|
return;
|
|
3802
3836
|
let o, r;
|
|
3803
|
-
if (typeof t != "object" && (t = [t]),
|
|
3837
|
+
if (typeof t != "object" && (t = [t]), St(t))
|
|
3804
3838
|
for (o = 0, r = t.length; o < r; o++)
|
|
3805
3839
|
e.call(null, t[o], o, t);
|
|
3806
3840
|
else {
|
|
@@ -3819,23 +3853,23 @@ function bs(t, e) {
|
|
|
3819
3853
|
return r;
|
|
3820
3854
|
return null;
|
|
3821
3855
|
}
|
|
3822
|
-
const
|
|
3823
|
-
function
|
|
3824
|
-
const { caseless: t } =
|
|
3856
|
+
const ws = (() => typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : global)(), vs = (t) => !Ht(t) && t !== ws;
|
|
3857
|
+
function oo() {
|
|
3858
|
+
const { caseless: t } = vs(this) && this || {}, e = {}, n = (o, r) => {
|
|
3825
3859
|
const s = t && bs(e, r) || r;
|
|
3826
|
-
rn(e[s]) && rn(o) ? e[s] =
|
|
3860
|
+
rn(e[s]) && rn(o) ? e[s] = oo(e[s], o) : rn(o) ? e[s] = oo({}, o) : St(o) ? e[s] = o.slice() : e[s] = o;
|
|
3827
3861
|
};
|
|
3828
3862
|
for (let o = 0, r = arguments.length; o < r; o++)
|
|
3829
3863
|
arguments[o] && Gt(arguments[o], n);
|
|
3830
3864
|
return e;
|
|
3831
3865
|
}
|
|
3832
|
-
const
|
|
3833
|
-
n && Ie(r) ? t[s] =
|
|
3834
|
-
}, { allOwnKeys: o }), t),
|
|
3866
|
+
const Du = (t, e, n, { allOwnKeys: o } = {}) => (Gt(e, (r, s) => {
|
|
3867
|
+
n && Ie(r) ? t[s] = ms(r, n) : t[s] = r;
|
|
3868
|
+
}, { allOwnKeys: o }), t), Mu = (t) => (t.charCodeAt(0) === 65279 && (t = t.slice(1)), t), $u = (t, e, n, o) => {
|
|
3835
3869
|
t.prototype = Object.create(e.prototype, o), t.prototype.constructor = t, Object.defineProperty(t, "super", {
|
|
3836
3870
|
value: e.prototype
|
|
3837
3871
|
}), n && Object.assign(t.prototype, n);
|
|
3838
|
-
},
|
|
3872
|
+
}, Hu = (t, e, n, o) => {
|
|
3839
3873
|
let r, s, a;
|
|
3840
3874
|
const d = {};
|
|
3841
3875
|
if (e = e || {}, t == null)
|
|
@@ -3843,51 +3877,51 @@ const Uu = (t, e, n, { allOwnKeys: o } = {}) => (Gt(e, (r, s) => {
|
|
|
3843
3877
|
do {
|
|
3844
3878
|
for (r = Object.getOwnPropertyNames(t), s = r.length; s-- > 0; )
|
|
3845
3879
|
a = r[s], (!o || o(a, t, e)) && !d[a] && (e[a] = t[a], d[a] = !0);
|
|
3846
|
-
t = n !== !1 &&
|
|
3880
|
+
t = n !== !1 && Eo(t);
|
|
3847
3881
|
} while (t && (!n || n(t, e)) && t !== Object.prototype);
|
|
3848
3882
|
return e;
|
|
3849
|
-
},
|
|
3883
|
+
}, ju = (t, e, n) => {
|
|
3850
3884
|
t = String(t), (n === void 0 || n > t.length) && (n = t.length), n -= e.length;
|
|
3851
3885
|
const o = t.indexOf(e, n);
|
|
3852
3886
|
return o !== -1 && o === n;
|
|
3853
|
-
},
|
|
3887
|
+
}, zu = (t) => {
|
|
3854
3888
|
if (!t)
|
|
3855
3889
|
return null;
|
|
3856
|
-
if (
|
|
3890
|
+
if (St(t))
|
|
3857
3891
|
return t;
|
|
3858
3892
|
let e = t.length;
|
|
3859
|
-
if (!
|
|
3893
|
+
if (!ys(e))
|
|
3860
3894
|
return null;
|
|
3861
3895
|
const n = new Array(e);
|
|
3862
3896
|
for (; e-- > 0; )
|
|
3863
3897
|
n[e] = t[e];
|
|
3864
3898
|
return n;
|
|
3865
|
-
},
|
|
3899
|
+
}, Vu = ((t) => (e) => t && e instanceof t)(typeof Uint8Array < "u" && Eo(Uint8Array)), Wu = (t, e) => {
|
|
3866
3900
|
const o = (t && t[Symbol.iterator]).call(t);
|
|
3867
3901
|
let r;
|
|
3868
3902
|
for (; (r = o.next()) && !r.done; ) {
|
|
3869
3903
|
const s = r.value;
|
|
3870
3904
|
e.call(t, s[0], s[1]);
|
|
3871
3905
|
}
|
|
3872
|
-
},
|
|
3906
|
+
}, qu = (t, e) => {
|
|
3873
3907
|
let n;
|
|
3874
3908
|
const o = [];
|
|
3875
3909
|
for (; (n = t.exec(e)) !== null; )
|
|
3876
3910
|
o.push(n);
|
|
3877
3911
|
return o;
|
|
3878
|
-
},
|
|
3912
|
+
}, Ku = qe("HTMLFormElement"), Gu = (t) => t.toLowerCase().replace(
|
|
3879
3913
|
/[-_\s]([a-z\d])(\w*)/g,
|
|
3880
3914
|
function(n, o, r) {
|
|
3881
3915
|
return o.toUpperCase() + r;
|
|
3882
3916
|
}
|
|
3883
|
-
),
|
|
3917
|
+
), gr = (({ hasOwnProperty: t }) => (e, n) => t.call(e, n))(Object.prototype), Ju = qe("RegExp"), As = (t, e) => {
|
|
3884
3918
|
const n = Object.getOwnPropertyDescriptors(t), o = {};
|
|
3885
3919
|
Gt(n, (r, s) => {
|
|
3886
3920
|
let a;
|
|
3887
3921
|
(a = e(r, s, t)) !== !1 && (o[s] = a || r);
|
|
3888
3922
|
}), Object.defineProperties(t, o);
|
|
3889
|
-
},
|
|
3890
|
-
|
|
3923
|
+
}, Yu = (t) => {
|
|
3924
|
+
As(t, (e, n) => {
|
|
3891
3925
|
if (Ie(t) && ["arguments", "caller", "callee"].indexOf(n) !== -1)
|
|
3892
3926
|
return !1;
|
|
3893
3927
|
const o = t[n];
|
|
@@ -3901,36 +3935,36 @@ const Uu = (t, e, n, { allOwnKeys: o } = {}) => (Gt(e, (r, s) => {
|
|
|
3901
3935
|
});
|
|
3902
3936
|
}
|
|
3903
3937
|
});
|
|
3904
|
-
},
|
|
3938
|
+
}, Xu = (t, e) => {
|
|
3905
3939
|
const n = {}, o = (r) => {
|
|
3906
3940
|
r.forEach((s) => {
|
|
3907
3941
|
n[s] = !0;
|
|
3908
3942
|
});
|
|
3909
3943
|
};
|
|
3910
|
-
return
|
|
3911
|
-
},
|
|
3912
|
-
},
|
|
3913
|
-
DIGIT:
|
|
3914
|
-
ALPHA:
|
|
3915
|
-
ALPHA_DIGIT:
|
|
3916
|
-
},
|
|
3944
|
+
return St(t) ? o(t) : o(String(t).split(e)), n;
|
|
3945
|
+
}, Zu = () => {
|
|
3946
|
+
}, Qu = (t, e) => (t = +t, Number.isFinite(t) ? t : e), zn = "abcdefghijklmnopqrstuvwxyz", yr = "0123456789", Es = {
|
|
3947
|
+
DIGIT: yr,
|
|
3948
|
+
ALPHA: zn,
|
|
3949
|
+
ALPHA_DIGIT: zn + zn.toUpperCase() + yr
|
|
3950
|
+
}, ed = (t = 16, e = Es.ALPHA_DIGIT) => {
|
|
3917
3951
|
let n = "";
|
|
3918
3952
|
const { length: o } = e;
|
|
3919
3953
|
for (; t--; )
|
|
3920
3954
|
n += e[Math.random() * o | 0];
|
|
3921
3955
|
return n;
|
|
3922
3956
|
};
|
|
3923
|
-
function
|
|
3957
|
+
function td(t) {
|
|
3924
3958
|
return !!(t && Ie(t.append) && t[Symbol.toStringTag] === "FormData" && t[Symbol.iterator]);
|
|
3925
3959
|
}
|
|
3926
|
-
const
|
|
3960
|
+
const nd = (t) => {
|
|
3927
3961
|
const e = new Array(10), n = (o, r) => {
|
|
3928
|
-
if (
|
|
3962
|
+
if (kn(o)) {
|
|
3929
3963
|
if (e.indexOf(o) >= 0)
|
|
3930
3964
|
return;
|
|
3931
3965
|
if (!("toJSON" in o)) {
|
|
3932
3966
|
e[r] = o;
|
|
3933
|
-
const s =
|
|
3967
|
+
const s = St(o) ? [] : {};
|
|
3934
3968
|
return Gt(o, (a, d) => {
|
|
3935
3969
|
const l = n(a, r + 1);
|
|
3936
3970
|
!Ht(l) && (s[d] = l);
|
|
@@ -3940,59 +3974,59 @@ const td = (t) => {
|
|
|
3940
3974
|
return o;
|
|
3941
3975
|
};
|
|
3942
3976
|
return n(t, 0);
|
|
3943
|
-
},
|
|
3944
|
-
isArray:
|
|
3945
|
-
isArrayBuffer:
|
|
3946
|
-
isBuffer:
|
|
3947
|
-
isFormData:
|
|
3948
|
-
isArrayBufferView:
|
|
3949
|
-
isString:
|
|
3950
|
-
isNumber:
|
|
3951
|
-
isBoolean:
|
|
3952
|
-
isObject:
|
|
3977
|
+
}, od = qe("AsyncFunction"), rd = (t) => t && (kn(t) || Ie(t)) && Ie(t.then) && Ie(t.catch), h = {
|
|
3978
|
+
isArray: St,
|
|
3979
|
+
isArrayBuffer: gs,
|
|
3980
|
+
isBuffer: Cu,
|
|
3981
|
+
isFormData: Bu,
|
|
3982
|
+
isArrayBufferView: Su,
|
|
3983
|
+
isString: Tu,
|
|
3984
|
+
isNumber: ys,
|
|
3985
|
+
isBoolean: Pu,
|
|
3986
|
+
isObject: kn,
|
|
3953
3987
|
isPlainObject: rn,
|
|
3954
3988
|
isUndefined: Ht,
|
|
3955
|
-
isDate:
|
|
3956
|
-
isFile:
|
|
3957
|
-
isBlob:
|
|
3958
|
-
isRegExp:
|
|
3989
|
+
isDate: Ru,
|
|
3990
|
+
isFile: Lu,
|
|
3991
|
+
isBlob: Ou,
|
|
3992
|
+
isRegExp: Ju,
|
|
3959
3993
|
isFunction: Ie,
|
|
3960
|
-
isStream:
|
|
3961
|
-
isURLSearchParams:
|
|
3962
|
-
isTypedArray:
|
|
3963
|
-
isFileList:
|
|
3994
|
+
isStream: Fu,
|
|
3995
|
+
isURLSearchParams: Nu,
|
|
3996
|
+
isTypedArray: Vu,
|
|
3997
|
+
isFileList: Iu,
|
|
3964
3998
|
forEach: Gt,
|
|
3965
|
-
merge:
|
|
3966
|
-
extend:
|
|
3967
|
-
trim:
|
|
3968
|
-
stripBOM:
|
|
3969
|
-
inherits:
|
|
3970
|
-
toFlatObject:
|
|
3971
|
-
kindOf:
|
|
3999
|
+
merge: oo,
|
|
4000
|
+
extend: Du,
|
|
4001
|
+
trim: Uu,
|
|
4002
|
+
stripBOM: Mu,
|
|
4003
|
+
inherits: $u,
|
|
4004
|
+
toFlatObject: Hu,
|
|
4005
|
+
kindOf: An,
|
|
3972
4006
|
kindOfTest: qe,
|
|
3973
|
-
endsWith:
|
|
3974
|
-
toArray:
|
|
3975
|
-
forEachEntry:
|
|
3976
|
-
matchAll:
|
|
3977
|
-
isHTMLForm:
|
|
3978
|
-
hasOwnProperty:
|
|
3979
|
-
hasOwnProp:
|
|
4007
|
+
endsWith: ju,
|
|
4008
|
+
toArray: zu,
|
|
4009
|
+
forEachEntry: Wu,
|
|
4010
|
+
matchAll: qu,
|
|
4011
|
+
isHTMLForm: Ku,
|
|
4012
|
+
hasOwnProperty: gr,
|
|
4013
|
+
hasOwnProp: gr,
|
|
3980
4014
|
// an alias to avoid ESLint no-prototype-builtins detection
|
|
3981
|
-
reduceDescriptors:
|
|
3982
|
-
freezeMethods:
|
|
3983
|
-
toObjectSet:
|
|
3984
|
-
toCamelCase:
|
|
3985
|
-
noop:
|
|
3986
|
-
toFiniteNumber:
|
|
4015
|
+
reduceDescriptors: As,
|
|
4016
|
+
freezeMethods: Yu,
|
|
4017
|
+
toObjectSet: Xu,
|
|
4018
|
+
toCamelCase: Gu,
|
|
4019
|
+
noop: Zu,
|
|
4020
|
+
toFiniteNumber: Qu,
|
|
3987
4021
|
findKey: bs,
|
|
3988
|
-
global:
|
|
3989
|
-
isContextDefined:
|
|
3990
|
-
ALPHABET:
|
|
3991
|
-
generateString:
|
|
3992
|
-
isSpecCompliantForm:
|
|
3993
|
-
toJSONObject:
|
|
3994
|
-
isAsyncFn:
|
|
3995
|
-
isThenable:
|
|
4022
|
+
global: ws,
|
|
4023
|
+
isContextDefined: vs,
|
|
4024
|
+
ALPHABET: Es,
|
|
4025
|
+
generateString: ed,
|
|
4026
|
+
isSpecCompliantForm: td,
|
|
4027
|
+
toJSONObject: nd,
|
|
4028
|
+
isAsyncFn: od,
|
|
4029
|
+
isThenable: rd
|
|
3996
4030
|
};
|
|
3997
4031
|
function J(t, e, n, o, r) {
|
|
3998
4032
|
Error.call(this), Error.captureStackTrace ? Error.captureStackTrace(this, this.constructor) : this.stack = new Error().stack, this.message = t, this.name = "AxiosError", e && (this.code = e), n && (this.config = n), o && (this.request = o), r && (this.response = r);
|
|
@@ -4018,7 +4052,7 @@ h.inherits(J, Error, {
|
|
|
4018
4052
|
};
|
|
4019
4053
|
}
|
|
4020
4054
|
});
|
|
4021
|
-
const
|
|
4055
|
+
const ks = J.prototype, xs = {};
|
|
4022
4056
|
[
|
|
4023
4057
|
"ERR_BAD_OPTION_VALUE",
|
|
4024
4058
|
"ERR_BAD_OPTION",
|
|
@@ -4034,35 +4068,35 @@ const Es = J.prototype, ks = {};
|
|
|
4034
4068
|
"ERR_INVALID_URL"
|
|
4035
4069
|
// eslint-disable-next-line func-names
|
|
4036
4070
|
].forEach((t) => {
|
|
4037
|
-
|
|
4071
|
+
xs[t] = { value: t };
|
|
4038
4072
|
});
|
|
4039
|
-
Object.defineProperties(J,
|
|
4040
|
-
Object.defineProperty(
|
|
4073
|
+
Object.defineProperties(J, xs);
|
|
4074
|
+
Object.defineProperty(ks, "isAxiosError", { value: !0 });
|
|
4041
4075
|
J.from = (t, e, n, o, r, s) => {
|
|
4042
|
-
const a = Object.create(
|
|
4076
|
+
const a = Object.create(ks);
|
|
4043
4077
|
return h.toFlatObject(t, a, function(l) {
|
|
4044
4078
|
return l !== Error.prototype;
|
|
4045
4079
|
}, (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;
|
|
4046
4080
|
};
|
|
4047
|
-
const
|
|
4048
|
-
function
|
|
4081
|
+
const sd = null;
|
|
4082
|
+
function ro(t) {
|
|
4049
4083
|
return h.isPlainObject(t) || h.isArray(t);
|
|
4050
4084
|
}
|
|
4051
|
-
function
|
|
4085
|
+
function _s(t) {
|
|
4052
4086
|
return h.endsWith(t, "[]") ? t.slice(0, -2) : t;
|
|
4053
4087
|
}
|
|
4054
4088
|
function br(t, e, n) {
|
|
4055
4089
|
return t ? t.concat(e).map(function(r, s) {
|
|
4056
|
-
return r =
|
|
4090
|
+
return r = _s(r), !n && s ? "[" + r + "]" : r;
|
|
4057
4091
|
}).join(n ? "." : "") : e;
|
|
4058
4092
|
}
|
|
4059
|
-
function
|
|
4060
|
-
return h.isArray(t) && !t.some(
|
|
4093
|
+
function id(t) {
|
|
4094
|
+
return h.isArray(t) && !t.some(ro);
|
|
4061
4095
|
}
|
|
4062
|
-
const
|
|
4096
|
+
const ad = h.toFlatObject(h, {}, null, function(e) {
|
|
4063
4097
|
return /^is[A-Z]/.test(e);
|
|
4064
4098
|
});
|
|
4065
|
-
function
|
|
4099
|
+
function xn(t, e, n) {
|
|
4066
4100
|
if (!h.isObject(t))
|
|
4067
4101
|
throw new TypeError("target must be an object");
|
|
4068
4102
|
e = e || new FormData(), n = h.toFlatObject(n, {
|
|
@@ -4075,7 +4109,7 @@ function kn(t, e, n) {
|
|
|
4075
4109
|
const o = n.metaTokens, r = n.visitor || w, s = n.dots, a = n.indexes, l = (n.Blob || typeof Blob < "u" && Blob) && h.isSpecCompliantForm(e);
|
|
4076
4110
|
if (!h.isFunction(r))
|
|
4077
4111
|
throw new TypeError("visitor must be a function");
|
|
4078
|
-
function
|
|
4112
|
+
function b(I) {
|
|
4079
4113
|
if (I === null)
|
|
4080
4114
|
return "";
|
|
4081
4115
|
if (h.isDate(I))
|
|
@@ -4089,27 +4123,27 @@ function kn(t, e, n) {
|
|
|
4089
4123
|
if (I && !D && typeof I == "object") {
|
|
4090
4124
|
if (h.endsWith(F, "{}"))
|
|
4091
4125
|
F = o ? F : F.slice(0, -2), I = JSON.stringify(I);
|
|
4092
|
-
else if (h.isArray(I) &&
|
|
4093
|
-
return F =
|
|
4126
|
+
else if (h.isArray(I) && id(I) || (h.isFileList(I) || h.endsWith(F, "[]")) && (Q = h.toArray(I)))
|
|
4127
|
+
return F = _s(F), Q.forEach(function(H, be) {
|
|
4094
4128
|
!(h.isUndefined(H) || H === null) && e.append(
|
|
4095
4129
|
// eslint-disable-next-line no-nested-ternary
|
|
4096
4130
|
a === !0 ? br([F], be, s) : a === null ? F : F + "[]",
|
|
4097
|
-
|
|
4131
|
+
b(H)
|
|
4098
4132
|
);
|
|
4099
4133
|
}), !1;
|
|
4100
4134
|
}
|
|
4101
|
-
return
|
|
4135
|
+
return ro(I) ? !0 : (e.append(br(D, F, s), b(I)), !1);
|
|
4102
4136
|
}
|
|
4103
|
-
const
|
|
4137
|
+
const y = [], G = Object.assign(ad, {
|
|
4104
4138
|
defaultVisitor: w,
|
|
4105
|
-
convertValue:
|
|
4106
|
-
isVisitable:
|
|
4139
|
+
convertValue: b,
|
|
4140
|
+
isVisitable: ro
|
|
4107
4141
|
});
|
|
4108
4142
|
function M(I, F) {
|
|
4109
4143
|
if (!h.isUndefined(I)) {
|
|
4110
|
-
if (
|
|
4144
|
+
if (y.indexOf(I) !== -1)
|
|
4111
4145
|
throw Error("Circular reference detected in " + F.join("."));
|
|
4112
|
-
|
|
4146
|
+
y.push(I), h.forEach(I, function(Q, ne) {
|
|
4113
4147
|
(!(h.isUndefined(Q) || Q === null) && r.call(
|
|
4114
4148
|
e,
|
|
4115
4149
|
Q,
|
|
@@ -4117,14 +4151,14 @@ function kn(t, e, n) {
|
|
|
4117
4151
|
F,
|
|
4118
4152
|
G
|
|
4119
4153
|
)) === !0 && M(Q, F ? F.concat(ne) : [ne]);
|
|
4120
|
-
}),
|
|
4154
|
+
}), y.pop();
|
|
4121
4155
|
}
|
|
4122
4156
|
}
|
|
4123
4157
|
if (!h.isObject(t))
|
|
4124
4158
|
throw new TypeError("data must be an object");
|
|
4125
4159
|
return M(t), e;
|
|
4126
4160
|
}
|
|
4127
|
-
function
|
|
4161
|
+
function wr(t) {
|
|
4128
4162
|
const e = {
|
|
4129
4163
|
"!": "%21",
|
|
4130
4164
|
"'": "%27",
|
|
@@ -4138,36 +4172,36 @@ function yr(t) {
|
|
|
4138
4172
|
return e[o];
|
|
4139
4173
|
});
|
|
4140
4174
|
}
|
|
4141
|
-
function
|
|
4142
|
-
this._pairs = [], t &&
|
|
4175
|
+
function ko(t, e) {
|
|
4176
|
+
this._pairs = [], t && xn(t, this, e);
|
|
4143
4177
|
}
|
|
4144
|
-
const
|
|
4145
|
-
|
|
4178
|
+
const Cs = ko.prototype;
|
|
4179
|
+
Cs.append = function(e, n) {
|
|
4146
4180
|
this._pairs.push([e, n]);
|
|
4147
4181
|
};
|
|
4148
|
-
|
|
4182
|
+
Cs.toString = function(e) {
|
|
4149
4183
|
const n = e ? function(o) {
|
|
4150
|
-
return e.call(this, o,
|
|
4151
|
-
} :
|
|
4184
|
+
return e.call(this, o, wr);
|
|
4185
|
+
} : wr;
|
|
4152
4186
|
return this._pairs.map(function(r) {
|
|
4153
4187
|
return n(r[0]) + "=" + n(r[1]);
|
|
4154
4188
|
}, "").join("&");
|
|
4155
4189
|
};
|
|
4156
|
-
function
|
|
4190
|
+
function cd(t) {
|
|
4157
4191
|
return encodeURIComponent(t).replace(/%3A/gi, ":").replace(/%24/g, "$").replace(/%2C/gi, ",").replace(/%20/g, "+").replace(/%5B/gi, "[").replace(/%5D/gi, "]");
|
|
4158
4192
|
}
|
|
4159
|
-
function
|
|
4193
|
+
function Ss(t, e, n) {
|
|
4160
4194
|
if (!e)
|
|
4161
4195
|
return t;
|
|
4162
|
-
const o = n && n.encode ||
|
|
4196
|
+
const o = n && n.encode || cd, r = n && n.serialize;
|
|
4163
4197
|
let s;
|
|
4164
|
-
if (r ? s = r(e, n) : s = h.isURLSearchParams(e) ? e.toString() : new
|
|
4198
|
+
if (r ? s = r(e, n) : s = h.isURLSearchParams(e) ? e.toString() : new ko(e, n).toString(o), s) {
|
|
4165
4199
|
const a = t.indexOf("#");
|
|
4166
4200
|
a !== -1 && (t = t.slice(0, a)), t += (t.indexOf("?") === -1 ? "?" : "&") + s;
|
|
4167
4201
|
}
|
|
4168
4202
|
return t;
|
|
4169
4203
|
}
|
|
4170
|
-
class
|
|
4204
|
+
class ld {
|
|
4171
4205
|
constructor() {
|
|
4172
4206
|
this.handlers = [];
|
|
4173
4207
|
}
|
|
@@ -4221,39 +4255,39 @@ class cd {
|
|
|
4221
4255
|
});
|
|
4222
4256
|
}
|
|
4223
4257
|
}
|
|
4224
|
-
const
|
|
4258
|
+
const vr = ld, Ts = {
|
|
4225
4259
|
silentJSONParsing: !0,
|
|
4226
4260
|
forcedJSONParsing: !0,
|
|
4227
4261
|
clarifyTimeoutError: !1
|
|
4228
|
-
},
|
|
4262
|
+
}, ud = typeof URLSearchParams < "u" ? URLSearchParams : ko, dd = typeof FormData < "u" ? FormData : null, fd = typeof Blob < "u" ? Blob : null, hd = {
|
|
4229
4263
|
isBrowser: !0,
|
|
4230
4264
|
classes: {
|
|
4231
|
-
URLSearchParams:
|
|
4232
|
-
FormData:
|
|
4233
|
-
Blob:
|
|
4265
|
+
URLSearchParams: ud,
|
|
4266
|
+
FormData: dd,
|
|
4267
|
+
Blob: fd
|
|
4234
4268
|
},
|
|
4235
4269
|
protocols: ["http", "https", "file", "blob", "url", "data"]
|
|
4236
|
-
},
|
|
4237
|
-
self instanceof WorkerGlobalScope && typeof self.importScripts == "function")(),
|
|
4270
|
+
}, Ps = typeof window < "u" && typeof document < "u", pd = ((t) => Ps && ["ReactNative", "NativeScript", "NS"].indexOf(t) < 0)(typeof navigator < "u" && navigator.product), md = (() => typeof WorkerGlobalScope < "u" && // eslint-disable-next-line no-undef
|
|
4271
|
+
self instanceof WorkerGlobalScope && typeof self.importScripts == "function")(), gd = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
4238
4272
|
__proto__: null,
|
|
4239
|
-
hasBrowserEnv:
|
|
4240
|
-
hasStandardBrowserEnv:
|
|
4241
|
-
hasStandardBrowserWebWorkerEnv:
|
|
4242
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
4243
|
-
...
|
|
4244
|
-
...
|
|
4273
|
+
hasBrowserEnv: Ps,
|
|
4274
|
+
hasStandardBrowserEnv: pd,
|
|
4275
|
+
hasStandardBrowserWebWorkerEnv: md
|
|
4276
|
+
}, Symbol.toStringTag, { value: "Module" })), ze = {
|
|
4277
|
+
...gd,
|
|
4278
|
+
...hd
|
|
4245
4279
|
};
|
|
4246
|
-
function
|
|
4247
|
-
return
|
|
4280
|
+
function yd(t, e) {
|
|
4281
|
+
return xn(t, new ze.classes.URLSearchParams(), Object.assign({
|
|
4248
4282
|
visitor: function(n, o, r, s) {
|
|
4249
|
-
return
|
|
4283
|
+
return ze.isNode && h.isBuffer(n) ? (this.append(o, n.toString("base64")), !1) : s.defaultVisitor.apply(this, arguments);
|
|
4250
4284
|
}
|
|
4251
4285
|
}, e));
|
|
4252
4286
|
}
|
|
4253
4287
|
function bd(t) {
|
|
4254
4288
|
return h.matchAll(/\w+|\[(\w*)]/g, t).map((e) => e[0] === "[]" ? "" : e[1] || e[0]);
|
|
4255
4289
|
}
|
|
4256
|
-
function
|
|
4290
|
+
function wd(t) {
|
|
4257
4291
|
const e = {}, n = Object.keys(t);
|
|
4258
4292
|
let o;
|
|
4259
4293
|
const r = n.length;
|
|
@@ -4262,13 +4296,13 @@ function yd(t) {
|
|
|
4262
4296
|
s = n[o], e[s] = t[s];
|
|
4263
4297
|
return e;
|
|
4264
4298
|
}
|
|
4265
|
-
function
|
|
4299
|
+
function Rs(t) {
|
|
4266
4300
|
function e(n, o, r, s) {
|
|
4267
4301
|
let a = n[s++];
|
|
4268
4302
|
if (a === "__proto__")
|
|
4269
4303
|
return !0;
|
|
4270
4304
|
const d = Number.isFinite(+a), l = s >= n.length;
|
|
4271
|
-
return a = !a && h.isArray(r) ? r.length : a, l ? (h.hasOwnProp(r, a) ? r[a] = [r[a], o] : r[a] = o, !d) : ((!r[a] || !h.isObject(r[a])) && (r[a] = []), e(n, o, r[a], s) && h.isArray(r[a]) && (r[a] =
|
|
4305
|
+
return a = !a && h.isArray(r) ? r.length : a, l ? (h.hasOwnProp(r, a) ? r[a] = [r[a], o] : r[a] = o, !d) : ((!r[a] || !h.isObject(r[a])) && (r[a] = []), e(n, o, r[a], s) && h.isArray(r[a]) && (r[a] = wd(r[a])), !d);
|
|
4272
4306
|
}
|
|
4273
4307
|
if (h.isFormData(t) && h.isFunction(t.entries)) {
|
|
4274
4308
|
const n = {};
|
|
@@ -4278,7 +4312,7 @@ function Ps(t) {
|
|
|
4278
4312
|
}
|
|
4279
4313
|
return null;
|
|
4280
4314
|
}
|
|
4281
|
-
function
|
|
4315
|
+
function vd(t, e, n) {
|
|
4282
4316
|
if (h.isString(t))
|
|
4283
4317
|
try {
|
|
4284
4318
|
return (e || JSON.parse)(t), h.trim(t);
|
|
@@ -4288,13 +4322,13 @@ function wd(t, e, n) {
|
|
|
4288
4322
|
}
|
|
4289
4323
|
return (n || JSON.stringify)(t);
|
|
4290
4324
|
}
|
|
4291
|
-
const
|
|
4292
|
-
transitional:
|
|
4325
|
+
const xo = {
|
|
4326
|
+
transitional: Ts,
|
|
4293
4327
|
adapter: ["xhr", "http"],
|
|
4294
4328
|
transformRequest: [function(e, n) {
|
|
4295
4329
|
const o = n.getContentType() || "", r = o.indexOf("application/json") > -1, s = h.isObject(e);
|
|
4296
4330
|
if (s && h.isHTMLForm(e) && (e = new FormData(e)), h.isFormData(e))
|
|
4297
|
-
return r && r ? JSON.stringify(
|
|
4331
|
+
return r && r ? JSON.stringify(Rs(e)) : e;
|
|
4298
4332
|
if (h.isArrayBuffer(e) || h.isBuffer(e) || h.isStream(e) || h.isFile(e) || h.isBlob(e))
|
|
4299
4333
|
return e;
|
|
4300
4334
|
if (h.isArrayBufferView(e))
|
|
@@ -4304,20 +4338,20 @@ const ko = {
|
|
|
4304
4338
|
let d;
|
|
4305
4339
|
if (s) {
|
|
4306
4340
|
if (o.indexOf("application/x-www-form-urlencoded") > -1)
|
|
4307
|
-
return
|
|
4341
|
+
return yd(e, this.formSerializer).toString();
|
|
4308
4342
|
if ((d = h.isFileList(e)) || o.indexOf("multipart/form-data") > -1) {
|
|
4309
4343
|
const l = this.env && this.env.FormData;
|
|
4310
|
-
return
|
|
4344
|
+
return xn(
|
|
4311
4345
|
d ? { "files[]": e } : e,
|
|
4312
4346
|
l && new l(),
|
|
4313
4347
|
this.formSerializer
|
|
4314
4348
|
);
|
|
4315
4349
|
}
|
|
4316
4350
|
}
|
|
4317
|
-
return s || r ? (n.setContentType("application/json", !1),
|
|
4351
|
+
return s || r ? (n.setContentType("application/json", !1), vd(e)) : e;
|
|
4318
4352
|
}],
|
|
4319
4353
|
transformResponse: [function(e) {
|
|
4320
|
-
const n = this.transitional ||
|
|
4354
|
+
const n = this.transitional || xo.transitional, o = n && n.forcedJSONParsing, r = this.responseType === "json";
|
|
4321
4355
|
if (e && h.isString(e) && (o && !this.responseType || r)) {
|
|
4322
4356
|
const a = !(n && n.silentJSONParsing) && r;
|
|
4323
4357
|
try {
|
|
@@ -4339,8 +4373,8 @@ const ko = {
|
|
|
4339
4373
|
maxContentLength: -1,
|
|
4340
4374
|
maxBodyLength: -1,
|
|
4341
4375
|
env: {
|
|
4342
|
-
FormData:
|
|
4343
|
-
Blob:
|
|
4376
|
+
FormData: ze.classes.FormData,
|
|
4377
|
+
Blob: ze.classes.Blob
|
|
4344
4378
|
},
|
|
4345
4379
|
validateStatus: function(e) {
|
|
4346
4380
|
return e >= 200 && e < 300;
|
|
@@ -4353,9 +4387,9 @@ const ko = {
|
|
|
4353
4387
|
}
|
|
4354
4388
|
};
|
|
4355
4389
|
h.forEach(["delete", "get", "head", "post", "put", "patch"], (t) => {
|
|
4356
|
-
|
|
4390
|
+
xo.headers[t] = {};
|
|
4357
4391
|
});
|
|
4358
|
-
const
|
|
4392
|
+
const _o = xo, Ad = h.toObjectSet([
|
|
4359
4393
|
"age",
|
|
4360
4394
|
"authorization",
|
|
4361
4395
|
"content-length",
|
|
@@ -4373,29 +4407,29 @@ const xo = ko, vd = h.toObjectSet([
|
|
|
4373
4407
|
"referer",
|
|
4374
4408
|
"retry-after",
|
|
4375
4409
|
"user-agent"
|
|
4376
|
-
]),
|
|
4410
|
+
]), Ed = (t) => {
|
|
4377
4411
|
const e = {};
|
|
4378
4412
|
let n, o, r;
|
|
4379
4413
|
return t && t.split(`
|
|
4380
4414
|
`).forEach(function(a) {
|
|
4381
|
-
r = a.indexOf(":"), n = a.substring(0, r).trim().toLowerCase(), o = a.substring(r + 1).trim(), !(!n || e[n] &&
|
|
4415
|
+
r = a.indexOf(":"), n = a.substring(0, r).trim().toLowerCase(), o = a.substring(r + 1).trim(), !(!n || e[n] && Ad[n]) && (n === "set-cookie" ? e[n] ? e[n].push(o) : e[n] = [o] : e[n] = e[n] ? e[n] + ", " + o : o);
|
|
4382
4416
|
}), e;
|
|
4383
|
-
},
|
|
4417
|
+
}, Ar = Symbol("internals");
|
|
4384
4418
|
function It(t) {
|
|
4385
4419
|
return t && String(t).trim().toLowerCase();
|
|
4386
4420
|
}
|
|
4387
4421
|
function sn(t) {
|
|
4388
4422
|
return t === !1 || t == null ? t : h.isArray(t) ? t.map(sn) : String(t);
|
|
4389
4423
|
}
|
|
4390
|
-
function
|
|
4424
|
+
function kd(t) {
|
|
4391
4425
|
const e = /* @__PURE__ */ Object.create(null), n = /([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;
|
|
4392
4426
|
let o;
|
|
4393
4427
|
for (; o = n.exec(t); )
|
|
4394
4428
|
e[o[1]] = o[2];
|
|
4395
4429
|
return e;
|
|
4396
4430
|
}
|
|
4397
|
-
const
|
|
4398
|
-
function
|
|
4431
|
+
const xd = (t) => /^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(t.trim());
|
|
4432
|
+
function Vn(t, e, n, o, r) {
|
|
4399
4433
|
if (h.isFunction(o))
|
|
4400
4434
|
return o.call(this, e, n);
|
|
4401
4435
|
if (r && (e = n), !!h.isString(e)) {
|
|
@@ -4405,10 +4439,10 @@ function zn(t, e, n, o, r) {
|
|
|
4405
4439
|
return o.test(e);
|
|
4406
4440
|
}
|
|
4407
4441
|
}
|
|
4408
|
-
function
|
|
4442
|
+
function _d(t) {
|
|
4409
4443
|
return t.trim().toLowerCase().replace(/([a-z\d])(\w*)/g, (e, n, o) => n.toUpperCase() + o);
|
|
4410
4444
|
}
|
|
4411
|
-
function
|
|
4445
|
+
function Cd(t, e) {
|
|
4412
4446
|
const n = h.toCamelCase(" " + e);
|
|
4413
4447
|
["get", "set", "has"].forEach((o) => {
|
|
4414
4448
|
Object.defineProperty(t, o + n, {
|
|
@@ -4419,21 +4453,21 @@ function Sd(t, e) {
|
|
|
4419
4453
|
});
|
|
4420
4454
|
});
|
|
4421
4455
|
}
|
|
4422
|
-
class
|
|
4456
|
+
class _n {
|
|
4423
4457
|
constructor(e) {
|
|
4424
4458
|
e && this.set(e);
|
|
4425
4459
|
}
|
|
4426
4460
|
set(e, n, o) {
|
|
4427
4461
|
const r = this;
|
|
4428
|
-
function s(d, l,
|
|
4462
|
+
function s(d, l, b) {
|
|
4429
4463
|
const w = It(l);
|
|
4430
4464
|
if (!w)
|
|
4431
4465
|
throw new Error("header name must be a non-empty string");
|
|
4432
|
-
const
|
|
4433
|
-
(!
|
|
4466
|
+
const y = h.findKey(r, w);
|
|
4467
|
+
(!y || r[y] === void 0 || b === !0 || b === void 0 && r[y] !== !1) && (r[y || l] = sn(d));
|
|
4434
4468
|
}
|
|
4435
|
-
const a = (d, l) => h.forEach(d, (
|
|
4436
|
-
return h.isPlainObject(e) || e instanceof this.constructor ? a(e, n) : h.isString(e) && (e = e.trim()) && !
|
|
4469
|
+
const a = (d, l) => h.forEach(d, (b, w) => s(b, w, l));
|
|
4470
|
+
return h.isPlainObject(e) || e instanceof this.constructor ? a(e, n) : h.isString(e) && (e = e.trim()) && !xd(e) ? a(Ed(e), n) : e != null && s(n, e, o), this;
|
|
4437
4471
|
}
|
|
4438
4472
|
get(e, n) {
|
|
4439
4473
|
if (e = It(e), e) {
|
|
@@ -4443,7 +4477,7 @@ class xn {
|
|
|
4443
4477
|
if (!n)
|
|
4444
4478
|
return r;
|
|
4445
4479
|
if (n === !0)
|
|
4446
|
-
return
|
|
4480
|
+
return kd(r);
|
|
4447
4481
|
if (h.isFunction(n))
|
|
4448
4482
|
return n.call(this, r, o);
|
|
4449
4483
|
if (h.isRegExp(n))
|
|
@@ -4455,7 +4489,7 @@ class xn {
|
|
|
4455
4489
|
has(e, n) {
|
|
4456
4490
|
if (e = It(e), e) {
|
|
4457
4491
|
const o = h.findKey(this, e);
|
|
4458
|
-
return !!(o && this[o] !== void 0 && (!n ||
|
|
4492
|
+
return !!(o && this[o] !== void 0 && (!n || Vn(this, this[o], o, n)));
|
|
4459
4493
|
}
|
|
4460
4494
|
return !1;
|
|
4461
4495
|
}
|
|
@@ -4465,7 +4499,7 @@ class xn {
|
|
|
4465
4499
|
function s(a) {
|
|
4466
4500
|
if (a = It(a), a) {
|
|
4467
4501
|
const d = h.findKey(o, a);
|
|
4468
|
-
d && (!n ||
|
|
4502
|
+
d && (!n || Vn(o, o[d], d, n)) && (delete o[d], r = !0);
|
|
4469
4503
|
}
|
|
4470
4504
|
}
|
|
4471
4505
|
return h.isArray(e) ? e.forEach(s) : s(e), r;
|
|
@@ -4475,7 +4509,7 @@ class xn {
|
|
|
4475
4509
|
let o = n.length, r = !1;
|
|
4476
4510
|
for (; o--; ) {
|
|
4477
4511
|
const s = n[o];
|
|
4478
|
-
(!e ||
|
|
4512
|
+
(!e || Vn(this, this[s], s, e, !0)) && (delete this[s], r = !0);
|
|
4479
4513
|
}
|
|
4480
4514
|
return r;
|
|
4481
4515
|
}
|
|
@@ -4487,7 +4521,7 @@ class xn {
|
|
|
4487
4521
|
n[a] = sn(r), delete n[s];
|
|
4488
4522
|
return;
|
|
4489
4523
|
}
|
|
4490
|
-
const d = e ?
|
|
4524
|
+
const d = e ? _d(s) : String(s).trim();
|
|
4491
4525
|
d !== s && delete n[s], n[d] = sn(r), o[d] = !0;
|
|
4492
4526
|
}), this;
|
|
4493
4527
|
}
|
|
@@ -4518,18 +4552,18 @@ class xn {
|
|
|
4518
4552
|
return n.forEach((r) => o.set(r)), o;
|
|
4519
4553
|
}
|
|
4520
4554
|
static accessor(e) {
|
|
4521
|
-
const o = (this[
|
|
4555
|
+
const o = (this[Ar] = this[Ar] = {
|
|
4522
4556
|
accessors: {}
|
|
4523
4557
|
}).accessors, r = this.prototype;
|
|
4524
4558
|
function s(a) {
|
|
4525
4559
|
const d = It(a);
|
|
4526
|
-
o[d] || (
|
|
4560
|
+
o[d] || (Cd(r, a), o[d] = !0);
|
|
4527
4561
|
}
|
|
4528
4562
|
return h.isArray(e) ? e.forEach(s) : s(e), this;
|
|
4529
4563
|
}
|
|
4530
4564
|
}
|
|
4531
|
-
|
|
4532
|
-
h.reduceDescriptors(
|
|
4565
|
+
_n.accessor(["Content-Type", "Content-Length", "Accept", "Accept-Encoding", "User-Agent", "Authorization"]);
|
|
4566
|
+
h.reduceDescriptors(_n.prototype, ({ value: t }, e) => {
|
|
4533
4567
|
let n = e[0].toUpperCase() + e.slice(1);
|
|
4534
4568
|
return {
|
|
4535
4569
|
get: () => t,
|
|
@@ -4538,16 +4572,16 @@ h.reduceDescriptors(xn.prototype, ({ value: t }, e) => {
|
|
|
4538
4572
|
}
|
|
4539
4573
|
};
|
|
4540
4574
|
});
|
|
4541
|
-
h.freezeMethods(
|
|
4542
|
-
const Xe =
|
|
4543
|
-
function
|
|
4544
|
-
const n = this ||
|
|
4575
|
+
h.freezeMethods(_n);
|
|
4576
|
+
const Xe = _n;
|
|
4577
|
+
function Wn(t, e) {
|
|
4578
|
+
const n = this || _o, o = e || n, r = Xe.from(o.headers);
|
|
4545
4579
|
let s = o.data;
|
|
4546
4580
|
return h.forEach(t, function(d) {
|
|
4547
4581
|
s = d.call(n, s, r.normalize(), e ? e.status : void 0);
|
|
4548
4582
|
}), r.normalize(), s;
|
|
4549
4583
|
}
|
|
4550
|
-
function
|
|
4584
|
+
function Ls(t) {
|
|
4551
4585
|
return !!(t && t.__CANCEL__);
|
|
4552
4586
|
}
|
|
4553
4587
|
function Jt(t, e, n) {
|
|
@@ -4556,7 +4590,7 @@ function Jt(t, e, n) {
|
|
|
4556
4590
|
h.inherits(Jt, J, {
|
|
4557
4591
|
__CANCEL__: !0
|
|
4558
4592
|
});
|
|
4559
|
-
function
|
|
4593
|
+
function Sd(t, e, n) {
|
|
4560
4594
|
const o = n.config.validateStatus;
|
|
4561
4595
|
!n.status || !o || o(n.status) ? t(n) : e(new J(
|
|
4562
4596
|
"Request failed with status code " + n.status,
|
|
@@ -4566,7 +4600,7 @@ function _d(t, e, n) {
|
|
|
4566
4600
|
n
|
|
4567
4601
|
));
|
|
4568
4602
|
}
|
|
4569
|
-
const
|
|
4603
|
+
const Td = ze.hasStandardBrowserEnv ? (
|
|
4570
4604
|
// Standard browser envs support document.cookie
|
|
4571
4605
|
{
|
|
4572
4606
|
write(t, e, n, o, r, s) {
|
|
@@ -4593,16 +4627,16 @@ const Cd = je.hasStandardBrowserEnv ? (
|
|
|
4593
4627
|
}
|
|
4594
4628
|
}
|
|
4595
4629
|
);
|
|
4596
|
-
function
|
|
4630
|
+
function Pd(t) {
|
|
4597
4631
|
return /^([a-z][a-z\d+\-.]*:)?\/\//i.test(t);
|
|
4598
4632
|
}
|
|
4599
|
-
function
|
|
4633
|
+
function Rd(t, e) {
|
|
4600
4634
|
return e ? t.replace(/\/?\/$/, "") + "/" + e.replace(/^\/+/, "") : t;
|
|
4601
4635
|
}
|
|
4602
|
-
function
|
|
4603
|
-
return t && !
|
|
4636
|
+
function Os(t, e) {
|
|
4637
|
+
return t && !Pd(e) ? Rd(t, e) : e;
|
|
4604
4638
|
}
|
|
4605
|
-
const
|
|
4639
|
+
const Ld = ze.hasStandardBrowserEnv ? (
|
|
4606
4640
|
// Standard browser envs have full support of the APIs needed to test
|
|
4607
4641
|
// whether the request URL is of the same origin as current location.
|
|
4608
4642
|
function() {
|
|
@@ -4634,31 +4668,31 @@ const Rd = je.hasStandardBrowserEnv ? (
|
|
|
4634
4668
|
};
|
|
4635
4669
|
}()
|
|
4636
4670
|
);
|
|
4637
|
-
function
|
|
4671
|
+
function Od(t) {
|
|
4638
4672
|
const e = /^([-+\w]{1,25})(:?\/\/|:)/.exec(t);
|
|
4639
4673
|
return e && e[1] || "";
|
|
4640
4674
|
}
|
|
4641
|
-
function
|
|
4675
|
+
function Id(t, e) {
|
|
4642
4676
|
t = t || 10;
|
|
4643
4677
|
const n = new Array(t), o = new Array(t);
|
|
4644
4678
|
let r = 0, s = 0, a;
|
|
4645
4679
|
return e = e !== void 0 ? e : 1e3, function(l) {
|
|
4646
|
-
const
|
|
4647
|
-
a || (a =
|
|
4648
|
-
let
|
|
4649
|
-
for (;
|
|
4650
|
-
G += n[
|
|
4651
|
-
if (r = (r + 1) % t, r === s && (s = (s + 1) % t),
|
|
4680
|
+
const b = Date.now(), w = o[s];
|
|
4681
|
+
a || (a = b), n[r] = l, o[r] = b;
|
|
4682
|
+
let y = s, G = 0;
|
|
4683
|
+
for (; y !== r; )
|
|
4684
|
+
G += n[y++], y = y % t;
|
|
4685
|
+
if (r = (r + 1) % t, r === s && (s = (s + 1) % t), b - a < e)
|
|
4652
4686
|
return;
|
|
4653
|
-
const M = w &&
|
|
4687
|
+
const M = w && b - w;
|
|
4654
4688
|
return M ? Math.round(G * 1e3 / M) : void 0;
|
|
4655
4689
|
};
|
|
4656
4690
|
}
|
|
4657
|
-
function
|
|
4691
|
+
function Er(t, e) {
|
|
4658
4692
|
let n = 0;
|
|
4659
|
-
const o =
|
|
4693
|
+
const o = Id(50, 250);
|
|
4660
4694
|
return (r) => {
|
|
4661
|
-
const s = r.loaded, a = r.lengthComputable ? r.total : void 0, d = s - n, l = o(d),
|
|
4695
|
+
const s = r.loaded, a = r.lengthComputable ? r.total : void 0, d = s - n, l = o(d), b = s <= a;
|
|
4662
4696
|
n = s;
|
|
4663
4697
|
const w = {
|
|
4664
4698
|
loaded: s,
|
|
@@ -4666,91 +4700,91 @@ function Ar(t, e) {
|
|
|
4666
4700
|
progress: a ? s / a : void 0,
|
|
4667
4701
|
bytes: d,
|
|
4668
4702
|
rate: l || void 0,
|
|
4669
|
-
estimated: l && a &&
|
|
4703
|
+
estimated: l && a && b ? (a - s) / l : void 0,
|
|
4670
4704
|
event: r
|
|
4671
4705
|
};
|
|
4672
4706
|
w[e ? "download" : "upload"] = !0, t(w);
|
|
4673
4707
|
};
|
|
4674
4708
|
}
|
|
4675
|
-
const
|
|
4709
|
+
const Fd = typeof XMLHttpRequest < "u", Bd = Fd && function(t) {
|
|
4676
4710
|
return new Promise(function(n, o) {
|
|
4677
4711
|
let r = t.data;
|
|
4678
4712
|
const s = Xe.from(t.headers).normalize();
|
|
4679
4713
|
let { responseType: a, withXSRFToken: d } = t, l;
|
|
4680
|
-
function
|
|
4714
|
+
function b() {
|
|
4681
4715
|
t.cancelToken && t.cancelToken.unsubscribe(l), t.signal && t.signal.removeEventListener("abort", l);
|
|
4682
4716
|
}
|
|
4683
4717
|
let w;
|
|
4684
4718
|
if (h.isFormData(r)) {
|
|
4685
|
-
if (
|
|
4719
|
+
if (ze.hasStandardBrowserEnv || ze.hasStandardBrowserWebWorkerEnv)
|
|
4686
4720
|
s.setContentType(!1);
|
|
4687
4721
|
else if ((w = s.getContentType()) !== !1) {
|
|
4688
4722
|
const [F, ...D] = w ? w.split(";").map((Q) => Q.trim()).filter(Boolean) : [];
|
|
4689
4723
|
s.setContentType([F || "multipart/form-data", ...D].join("; "));
|
|
4690
4724
|
}
|
|
4691
4725
|
}
|
|
4692
|
-
let
|
|
4726
|
+
let y = new XMLHttpRequest();
|
|
4693
4727
|
if (t.auth) {
|
|
4694
4728
|
const F = t.auth.username || "", D = t.auth.password ? unescape(encodeURIComponent(t.auth.password)) : "";
|
|
4695
4729
|
s.set("Authorization", "Basic " + btoa(F + ":" + D));
|
|
4696
4730
|
}
|
|
4697
|
-
const G =
|
|
4698
|
-
|
|
4731
|
+
const G = Os(t.baseURL, t.url);
|
|
4732
|
+
y.open(t.method.toUpperCase(), Ss(G, t.params, t.paramsSerializer), !0), y.timeout = t.timeout;
|
|
4699
4733
|
function M() {
|
|
4700
|
-
if (!
|
|
4734
|
+
if (!y)
|
|
4701
4735
|
return;
|
|
4702
4736
|
const F = Xe.from(
|
|
4703
|
-
"getAllResponseHeaders" in
|
|
4737
|
+
"getAllResponseHeaders" in y && y.getAllResponseHeaders()
|
|
4704
4738
|
), Q = {
|
|
4705
|
-
data: !a || a === "text" || a === "json" ?
|
|
4706
|
-
status:
|
|
4707
|
-
statusText:
|
|
4739
|
+
data: !a || a === "text" || a === "json" ? y.responseText : y.response,
|
|
4740
|
+
status: y.status,
|
|
4741
|
+
statusText: y.statusText,
|
|
4708
4742
|
headers: F,
|
|
4709
4743
|
config: t,
|
|
4710
|
-
request:
|
|
4744
|
+
request: y
|
|
4711
4745
|
};
|
|
4712
|
-
|
|
4713
|
-
n(H),
|
|
4746
|
+
Sd(function(H) {
|
|
4747
|
+
n(H), b();
|
|
4714
4748
|
}, function(H) {
|
|
4715
|
-
o(H),
|
|
4716
|
-
}, Q),
|
|
4749
|
+
o(H), b();
|
|
4750
|
+
}, Q), y = null;
|
|
4717
4751
|
}
|
|
4718
|
-
if ("onloadend" in
|
|
4719
|
-
!
|
|
4720
|
-
},
|
|
4721
|
-
|
|
4722
|
-
},
|
|
4723
|
-
o(new J("Network Error", J.ERR_NETWORK, t,
|
|
4724
|
-
},
|
|
4752
|
+
if ("onloadend" in y ? y.onloadend = M : y.onreadystatechange = function() {
|
|
4753
|
+
!y || y.readyState !== 4 || y.status === 0 && !(y.responseURL && y.responseURL.indexOf("file:") === 0) || setTimeout(M);
|
|
4754
|
+
}, y.onabort = function() {
|
|
4755
|
+
y && (o(new J("Request aborted", J.ECONNABORTED, t, y)), y = null);
|
|
4756
|
+
}, y.onerror = function() {
|
|
4757
|
+
o(new J("Network Error", J.ERR_NETWORK, t, y)), y = null;
|
|
4758
|
+
}, y.ontimeout = function() {
|
|
4725
4759
|
let D = t.timeout ? "timeout of " + t.timeout + "ms exceeded" : "timeout exceeded";
|
|
4726
|
-
const Q = t.transitional ||
|
|
4760
|
+
const Q = t.transitional || Ts;
|
|
4727
4761
|
t.timeoutErrorMessage && (D = t.timeoutErrorMessage), o(new J(
|
|
4728
4762
|
D,
|
|
4729
4763
|
Q.clarifyTimeoutError ? J.ETIMEDOUT : J.ECONNABORTED,
|
|
4730
4764
|
t,
|
|
4731
|
-
|
|
4732
|
-
)),
|
|
4733
|
-
},
|
|
4734
|
-
const F = t.xsrfHeaderName && t.xsrfCookieName &&
|
|
4765
|
+
y
|
|
4766
|
+
)), y = null;
|
|
4767
|
+
}, ze.hasStandardBrowserEnv && (d && h.isFunction(d) && (d = d(t)), d || d !== !1 && Ld(G))) {
|
|
4768
|
+
const F = t.xsrfHeaderName && t.xsrfCookieName && Td.read(t.xsrfCookieName);
|
|
4735
4769
|
F && s.set(t.xsrfHeaderName, F);
|
|
4736
4770
|
}
|
|
4737
|
-
r === void 0 && s.setContentType(null), "setRequestHeader" in
|
|
4738
|
-
|
|
4739
|
-
}), h.isUndefined(t.withCredentials) || (
|
|
4740
|
-
|
|
4771
|
+
r === void 0 && s.setContentType(null), "setRequestHeader" in y && h.forEach(s.toJSON(), function(D, Q) {
|
|
4772
|
+
y.setRequestHeader(Q, D);
|
|
4773
|
+
}), h.isUndefined(t.withCredentials) || (y.withCredentials = !!t.withCredentials), a && a !== "json" && (y.responseType = t.responseType), typeof t.onDownloadProgress == "function" && y.addEventListener("progress", Er(t.onDownloadProgress, !0)), typeof t.onUploadProgress == "function" && y.upload && y.upload.addEventListener("progress", Er(t.onUploadProgress)), (t.cancelToken || t.signal) && (l = (F) => {
|
|
4774
|
+
y && (o(!F || F.type ? new Jt(null, t, y) : F), y.abort(), y = null);
|
|
4741
4775
|
}, t.cancelToken && t.cancelToken.subscribe(l), t.signal && (t.signal.aborted ? l() : t.signal.addEventListener("abort", l)));
|
|
4742
|
-
const I =
|
|
4743
|
-
if (I &&
|
|
4776
|
+
const I = Od(G);
|
|
4777
|
+
if (I && ze.protocols.indexOf(I) === -1) {
|
|
4744
4778
|
o(new J("Unsupported protocol " + I + ":", J.ERR_BAD_REQUEST, t));
|
|
4745
4779
|
return;
|
|
4746
4780
|
}
|
|
4747
|
-
|
|
4781
|
+
y.send(r || null);
|
|
4748
4782
|
});
|
|
4749
|
-
},
|
|
4750
|
-
http:
|
|
4751
|
-
xhr:
|
|
4783
|
+
}, so = {
|
|
4784
|
+
http: sd,
|
|
4785
|
+
xhr: Bd
|
|
4752
4786
|
};
|
|
4753
|
-
h.forEach(
|
|
4787
|
+
h.forEach(so, (t, e) => {
|
|
4754
4788
|
if (t) {
|
|
4755
4789
|
try {
|
|
4756
4790
|
Object.defineProperty(t, "name", { value: e });
|
|
@@ -4759,7 +4793,7 @@ h.forEach(oo, (t, e) => {
|
|
|
4759
4793
|
Object.defineProperty(t, "adapterName", { value: e });
|
|
4760
4794
|
}
|
|
4761
4795
|
});
|
|
4762
|
-
const
|
|
4796
|
+
const kr = (t) => `- ${t}`, Nd = (t) => h.isFunction(t) || t === null || t === !1, Is = {
|
|
4763
4797
|
getAdapter: (t) => {
|
|
4764
4798
|
t = h.isArray(t) ? t : [t];
|
|
4765
4799
|
const { length: e } = t;
|
|
@@ -4768,7 +4802,7 @@ const Er = (t) => `- ${t}`, Bd = (t) => h.isFunction(t) || t === null || t === !
|
|
|
4768
4802
|
for (let s = 0; s < e; s++) {
|
|
4769
4803
|
n = t[s];
|
|
4770
4804
|
let a;
|
|
4771
|
-
if (o = n, !
|
|
4805
|
+
if (o = n, !Nd(n) && (o = so[(a = String(n)).toLowerCase()], o === void 0))
|
|
4772
4806
|
throw new J(`Unknown adapter '${a}'`);
|
|
4773
4807
|
if (o)
|
|
4774
4808
|
break;
|
|
@@ -4779,8 +4813,8 @@ const Er = (t) => `- ${t}`, Bd = (t) => h.isFunction(t) || t === null || t === !
|
|
|
4779
4813
|
([d, l]) => `adapter ${d} ` + (l === !1 ? "is not supported by the environment" : "is not available in the build")
|
|
4780
4814
|
);
|
|
4781
4815
|
let a = e ? s.length > 1 ? `since :
|
|
4782
|
-
` + s.map(
|
|
4783
|
-
`) : " " +
|
|
4816
|
+
` + s.map(kr).join(`
|
|
4817
|
+
`) : " " + kr(s[0]) : "as no adapter specified";
|
|
4784
4818
|
throw new J(
|
|
4785
4819
|
"There is no suitable adapter to dispatch the request " + a,
|
|
4786
4820
|
"ERR_NOT_SUPPORT"
|
|
@@ -4788,60 +4822,60 @@ const Er = (t) => `- ${t}`, Bd = (t) => h.isFunction(t) || t === null || t === !
|
|
|
4788
4822
|
}
|
|
4789
4823
|
return o;
|
|
4790
4824
|
},
|
|
4791
|
-
adapters:
|
|
4825
|
+
adapters: so
|
|
4792
4826
|
};
|
|
4793
|
-
function
|
|
4827
|
+
function qn(t) {
|
|
4794
4828
|
if (t.cancelToken && t.cancelToken.throwIfRequested(), t.signal && t.signal.aborted)
|
|
4795
4829
|
throw new Jt(null, t);
|
|
4796
4830
|
}
|
|
4797
|
-
function
|
|
4798
|
-
return
|
|
4831
|
+
function xr(t) {
|
|
4832
|
+
return qn(t), t.headers = Xe.from(t.headers), t.data = Wn.call(
|
|
4799
4833
|
t,
|
|
4800
4834
|
t.transformRequest
|
|
4801
|
-
), ["post", "put", "patch"].indexOf(t.method) !== -1 && t.headers.setContentType("application/x-www-form-urlencoded", !1),
|
|
4802
|
-
return
|
|
4835
|
+
), ["post", "put", "patch"].indexOf(t.method) !== -1 && t.headers.setContentType("application/x-www-form-urlencoded", !1), Is.getAdapter(t.adapter || _o.adapter)(t).then(function(o) {
|
|
4836
|
+
return qn(t), o.data = Wn.call(
|
|
4803
4837
|
t,
|
|
4804
4838
|
t.transformResponse,
|
|
4805
4839
|
o
|
|
4806
4840
|
), o.headers = Xe.from(o.headers), o;
|
|
4807
4841
|
}, function(o) {
|
|
4808
|
-
return
|
|
4842
|
+
return Ls(o) || (qn(t), o && o.response && (o.response.data = Wn.call(
|
|
4809
4843
|
t,
|
|
4810
4844
|
t.transformResponse,
|
|
4811
4845
|
o.response
|
|
4812
4846
|
), o.response.headers = Xe.from(o.response.headers))), Promise.reject(o);
|
|
4813
4847
|
});
|
|
4814
4848
|
}
|
|
4815
|
-
const
|
|
4849
|
+
const _r = (t) => t instanceof Xe ? t.toJSON() : t;
|
|
4816
4850
|
function kt(t, e) {
|
|
4817
4851
|
e = e || {};
|
|
4818
4852
|
const n = {};
|
|
4819
|
-
function o(
|
|
4820
|
-
return h.isPlainObject(
|
|
4853
|
+
function o(b, w, y) {
|
|
4854
|
+
return h.isPlainObject(b) && h.isPlainObject(w) ? h.merge.call({ caseless: y }, b, w) : h.isPlainObject(w) ? h.merge({}, w) : h.isArray(w) ? w.slice() : w;
|
|
4821
4855
|
}
|
|
4822
|
-
function r(
|
|
4856
|
+
function r(b, w, y) {
|
|
4823
4857
|
if (h.isUndefined(w)) {
|
|
4824
|
-
if (!h.isUndefined(
|
|
4825
|
-
return o(void 0,
|
|
4858
|
+
if (!h.isUndefined(b))
|
|
4859
|
+
return o(void 0, b, y);
|
|
4826
4860
|
} else
|
|
4827
|
-
return o(
|
|
4861
|
+
return o(b, w, y);
|
|
4828
4862
|
}
|
|
4829
|
-
function s(
|
|
4863
|
+
function s(b, w) {
|
|
4830
4864
|
if (!h.isUndefined(w))
|
|
4831
4865
|
return o(void 0, w);
|
|
4832
4866
|
}
|
|
4833
|
-
function a(
|
|
4867
|
+
function a(b, w) {
|
|
4834
4868
|
if (h.isUndefined(w)) {
|
|
4835
|
-
if (!h.isUndefined(
|
|
4836
|
-
return o(void 0,
|
|
4869
|
+
if (!h.isUndefined(b))
|
|
4870
|
+
return o(void 0, b);
|
|
4837
4871
|
} else
|
|
4838
4872
|
return o(void 0, w);
|
|
4839
4873
|
}
|
|
4840
|
-
function d(
|
|
4841
|
-
if (
|
|
4842
|
-
return o(
|
|
4843
|
-
if (
|
|
4844
|
-
return o(void 0,
|
|
4874
|
+
function d(b, w, y) {
|
|
4875
|
+
if (y in e)
|
|
4876
|
+
return o(b, w);
|
|
4877
|
+
if (y in t)
|
|
4878
|
+
return o(void 0, b);
|
|
4845
4879
|
}
|
|
4846
4880
|
const l = {
|
|
4847
4881
|
url: s,
|
|
@@ -4872,23 +4906,23 @@ function kt(t, e) {
|
|
|
4872
4906
|
socketPath: a,
|
|
4873
4907
|
responseEncoding: a,
|
|
4874
4908
|
validateStatus: d,
|
|
4875
|
-
headers: (
|
|
4909
|
+
headers: (b, w) => r(_r(b), _r(w), !0)
|
|
4876
4910
|
};
|
|
4877
4911
|
return h.forEach(Object.keys(Object.assign({}, t, e)), function(w) {
|
|
4878
|
-
const
|
|
4879
|
-
h.isUndefined(G) &&
|
|
4912
|
+
const y = l[w] || r, G = y(t[w], e[w], w);
|
|
4913
|
+
h.isUndefined(G) && y !== d || (n[w] = G);
|
|
4880
4914
|
}), n;
|
|
4881
4915
|
}
|
|
4882
|
-
const
|
|
4916
|
+
const Fs = "1.6.5", Co = {};
|
|
4883
4917
|
["object", "boolean", "number", "function", "string", "symbol"].forEach((t, e) => {
|
|
4884
|
-
|
|
4918
|
+
Co[t] = function(o) {
|
|
4885
4919
|
return typeof o === t || "a" + (e < 1 ? "n " : " ") + t;
|
|
4886
4920
|
};
|
|
4887
4921
|
});
|
|
4888
|
-
const
|
|
4889
|
-
|
|
4922
|
+
const Cr = {};
|
|
4923
|
+
Co.transitional = function(e, n, o) {
|
|
4890
4924
|
function r(s, a) {
|
|
4891
|
-
return "[Axios v" +
|
|
4925
|
+
return "[Axios v" + Fs + "] Transitional option '" + s + "'" + a + (o ? ". " + o : "");
|
|
4892
4926
|
}
|
|
4893
4927
|
return (s, a, d) => {
|
|
4894
4928
|
if (e === !1)
|
|
@@ -4896,7 +4930,7 @@ So.transitional = function(e, n, o) {
|
|
|
4896
4930
|
r(a, " has been removed" + (n ? " in " + n : "")),
|
|
4897
4931
|
J.ERR_DEPRECATED
|
|
4898
4932
|
);
|
|
4899
|
-
return n && !
|
|
4933
|
+
return n && !Cr[a] && (Cr[a] = !0, console.warn(
|
|
4900
4934
|
r(
|
|
4901
4935
|
a,
|
|
4902
4936
|
" has been deprecated since v" + n + " and will be removed in the near future"
|
|
@@ -4904,7 +4938,7 @@ So.transitional = function(e, n, o) {
|
|
|
4904
4938
|
)), e ? e(s, a, d) : !0;
|
|
4905
4939
|
};
|
|
4906
4940
|
};
|
|
4907
|
-
function
|
|
4941
|
+
function Ud(t, e, n) {
|
|
4908
4942
|
if (typeof t != "object")
|
|
4909
4943
|
throw new J("options must be an object", J.ERR_BAD_OPTION_VALUE);
|
|
4910
4944
|
const o = Object.keys(t);
|
|
@@ -4921,15 +4955,15 @@ function Nd(t, e, n) {
|
|
|
4921
4955
|
throw new J("Unknown option " + s, J.ERR_BAD_OPTION);
|
|
4922
4956
|
}
|
|
4923
4957
|
}
|
|
4924
|
-
const
|
|
4925
|
-
assertOptions:
|
|
4926
|
-
validators:
|
|
4927
|
-
}, Ze =
|
|
4958
|
+
const io = {
|
|
4959
|
+
assertOptions: Ud,
|
|
4960
|
+
validators: Co
|
|
4961
|
+
}, Ze = io.validators;
|
|
4928
4962
|
class dn {
|
|
4929
4963
|
constructor(e) {
|
|
4930
4964
|
this.defaults = e, this.interceptors = {
|
|
4931
|
-
request: new
|
|
4932
|
-
response: new
|
|
4965
|
+
request: new vr(),
|
|
4966
|
+
response: new vr()
|
|
4933
4967
|
};
|
|
4934
4968
|
}
|
|
4935
4969
|
/**
|
|
@@ -4943,13 +4977,13 @@ class dn {
|
|
|
4943
4977
|
request(e, n) {
|
|
4944
4978
|
typeof e == "string" ? (n = n || {}, n.url = e) : n = e || {}, n = kt(this.defaults, n);
|
|
4945
4979
|
const { transitional: o, paramsSerializer: r, headers: s } = n;
|
|
4946
|
-
o !== void 0 &&
|
|
4980
|
+
o !== void 0 && io.assertOptions(o, {
|
|
4947
4981
|
silentJSONParsing: Ze.transitional(Ze.boolean),
|
|
4948
4982
|
forcedJSONParsing: Ze.transitional(Ze.boolean),
|
|
4949
4983
|
clarifyTimeoutError: Ze.transitional(Ze.boolean)
|
|
4950
4984
|
}, !1), r != null && (h.isFunction(r) ? n.paramsSerializer = {
|
|
4951
4985
|
serialize: r
|
|
4952
|
-
} :
|
|
4986
|
+
} : io.assertOptions(r, {
|
|
4953
4987
|
encode: Ze.function,
|
|
4954
4988
|
serialize: Ze.function
|
|
4955
4989
|
}, !0)), n.method = (n.method || this.defaults.method || "get").toLowerCase();
|
|
@@ -4968,21 +5002,21 @@ class dn {
|
|
|
4968
5002
|
this.interceptors.request.forEach(function(F) {
|
|
4969
5003
|
typeof F.runWhen == "function" && F.runWhen(n) === !1 || (l = l && F.synchronous, d.unshift(F.fulfilled, F.rejected));
|
|
4970
5004
|
});
|
|
4971
|
-
const
|
|
5005
|
+
const b = [];
|
|
4972
5006
|
this.interceptors.response.forEach(function(F) {
|
|
4973
|
-
|
|
5007
|
+
b.push(F.fulfilled, F.rejected);
|
|
4974
5008
|
});
|
|
4975
|
-
let w,
|
|
5009
|
+
let w, y = 0, G;
|
|
4976
5010
|
if (!l) {
|
|
4977
|
-
const I = [
|
|
4978
|
-
for (I.unshift.apply(I, d), I.push.apply(I,
|
|
4979
|
-
w = w.then(I[
|
|
5011
|
+
const I = [xr.bind(this), void 0];
|
|
5012
|
+
for (I.unshift.apply(I, d), I.push.apply(I, b), G = I.length, w = Promise.resolve(n); y < G; )
|
|
5013
|
+
w = w.then(I[y++], I[y++]);
|
|
4980
5014
|
return w;
|
|
4981
5015
|
}
|
|
4982
5016
|
G = d.length;
|
|
4983
5017
|
let M = n;
|
|
4984
|
-
for (
|
|
4985
|
-
const I = d[
|
|
5018
|
+
for (y = 0; y < G; ) {
|
|
5019
|
+
const I = d[y++], F = d[y++];
|
|
4986
5020
|
try {
|
|
4987
5021
|
M = I(M);
|
|
4988
5022
|
} catch (D) {
|
|
@@ -4991,18 +5025,18 @@ class dn {
|
|
|
4991
5025
|
}
|
|
4992
5026
|
}
|
|
4993
5027
|
try {
|
|
4994
|
-
w =
|
|
5028
|
+
w = xr.call(this, M);
|
|
4995
5029
|
} catch (I) {
|
|
4996
5030
|
return Promise.reject(I);
|
|
4997
5031
|
}
|
|
4998
|
-
for (
|
|
4999
|
-
w = w.then(y
|
|
5032
|
+
for (y = 0, G = b.length; y < G; )
|
|
5033
|
+
w = w.then(b[y++], b[y++]);
|
|
5000
5034
|
return w;
|
|
5001
5035
|
}
|
|
5002
5036
|
getUri(e) {
|
|
5003
5037
|
e = kt(this.defaults, e);
|
|
5004
|
-
const n =
|
|
5005
|
-
return
|
|
5038
|
+
const n = Os(e.baseURL, e.url);
|
|
5039
|
+
return Ss(n, e.params, e.paramsSerializer);
|
|
5006
5040
|
}
|
|
5007
5041
|
}
|
|
5008
5042
|
h.forEach(["delete", "get", "head", "options"], function(e) {
|
|
@@ -5030,7 +5064,7 @@ h.forEach(["post", "put", "patch"], function(e) {
|
|
|
5030
5064
|
dn.prototype[e] = n(), dn.prototype[e + "Form"] = n(!0);
|
|
5031
5065
|
});
|
|
5032
5066
|
const an = dn;
|
|
5033
|
-
class
|
|
5067
|
+
class So {
|
|
5034
5068
|
constructor(e) {
|
|
5035
5069
|
if (typeof e != "function")
|
|
5036
5070
|
throw new TypeError("executor must be a function.");
|
|
@@ -5091,23 +5125,23 @@ class _o {
|
|
|
5091
5125
|
static source() {
|
|
5092
5126
|
let e;
|
|
5093
5127
|
return {
|
|
5094
|
-
token: new
|
|
5128
|
+
token: new So(function(r) {
|
|
5095
5129
|
e = r;
|
|
5096
5130
|
}),
|
|
5097
5131
|
cancel: e
|
|
5098
5132
|
};
|
|
5099
5133
|
}
|
|
5100
5134
|
}
|
|
5101
|
-
const
|
|
5102
|
-
function
|
|
5135
|
+
const Dd = So;
|
|
5136
|
+
function Md(t) {
|
|
5103
5137
|
return function(n) {
|
|
5104
5138
|
return t.apply(null, n);
|
|
5105
5139
|
};
|
|
5106
5140
|
}
|
|
5107
|
-
function
|
|
5141
|
+
function $d(t) {
|
|
5108
5142
|
return h.isObject(t) && t.isAxiosError === !0;
|
|
5109
5143
|
}
|
|
5110
|
-
const
|
|
5144
|
+
const ao = {
|
|
5111
5145
|
Continue: 100,
|
|
5112
5146
|
SwitchingProtocols: 101,
|
|
5113
5147
|
Processing: 102,
|
|
@@ -5172,43 +5206,43 @@ const so = {
|
|
|
5172
5206
|
NotExtended: 510,
|
|
5173
5207
|
NetworkAuthenticationRequired: 511
|
|
5174
5208
|
};
|
|
5175
|
-
Object.entries(
|
|
5176
|
-
|
|
5209
|
+
Object.entries(ao).forEach(([t, e]) => {
|
|
5210
|
+
ao[e] = t;
|
|
5177
5211
|
});
|
|
5178
|
-
const
|
|
5179
|
-
function
|
|
5180
|
-
const e = new an(t), n =
|
|
5212
|
+
const Hd = ao;
|
|
5213
|
+
function Bs(t) {
|
|
5214
|
+
const e = new an(t), n = ms(an.prototype.request, e);
|
|
5181
5215
|
return h.extend(n, an.prototype, e, { allOwnKeys: !0 }), h.extend(n, e, null, { allOwnKeys: !0 }), n.create = function(r) {
|
|
5182
|
-
return
|
|
5216
|
+
return Bs(kt(t, r));
|
|
5183
5217
|
}, n;
|
|
5184
5218
|
}
|
|
5185
|
-
const se =
|
|
5219
|
+
const se = Bs(_o);
|
|
5186
5220
|
se.Axios = an;
|
|
5187
5221
|
se.CanceledError = Jt;
|
|
5188
|
-
se.CancelToken =
|
|
5189
|
-
se.isCancel =
|
|
5190
|
-
se.VERSION =
|
|
5191
|
-
se.toFormData =
|
|
5222
|
+
se.CancelToken = Dd;
|
|
5223
|
+
se.isCancel = Ls;
|
|
5224
|
+
se.VERSION = Fs;
|
|
5225
|
+
se.toFormData = xn;
|
|
5192
5226
|
se.AxiosError = J;
|
|
5193
5227
|
se.Cancel = se.CanceledError;
|
|
5194
5228
|
se.all = function(e) {
|
|
5195
5229
|
return Promise.all(e);
|
|
5196
5230
|
};
|
|
5197
|
-
se.spread =
|
|
5198
|
-
se.isAxiosError =
|
|
5231
|
+
se.spread = Md;
|
|
5232
|
+
se.isAxiosError = $d;
|
|
5199
5233
|
se.mergeConfig = kt;
|
|
5200
5234
|
se.AxiosHeaders = Xe;
|
|
5201
|
-
se.formToJSON = (t) =>
|
|
5202
|
-
se.getAdapter =
|
|
5203
|
-
se.HttpStatusCode =
|
|
5235
|
+
se.formToJSON = (t) => Rs(h.isHTMLForm(t) ? new FormData(t) : t);
|
|
5236
|
+
se.getAdapter = Is.getAdapter;
|
|
5237
|
+
se.HttpStatusCode = Hd;
|
|
5204
5238
|
se.default = se;
|
|
5205
|
-
const
|
|
5206
|
-
class
|
|
5239
|
+
const jd = se;
|
|
5240
|
+
class zd {
|
|
5207
5241
|
constructor(e) {
|
|
5208
5242
|
Je(this, "keycloak");
|
|
5209
5243
|
Je(this, "axios");
|
|
5210
5244
|
Je(this, "fileName", "silent-login.html");
|
|
5211
|
-
this.keycloak = e, this.axios =
|
|
5245
|
+
this.keycloak = e, this.axios = jd.create(), this.axios.defaults.baseURL = "https://localhost:5001/api", this.axios.defaults.headers.common["content-type"] = "application/json", this.axios.defaults.timeout = 1e3 * 60 * 5, this.axios.interceptors.request.use(async (n) => {
|
|
5212
5246
|
await this.SilentLogin();
|
|
5213
5247
|
const o = this.keycloak.token;
|
|
5214
5248
|
return n.headers.Authorization = `Bearer ${o}`, n;
|
|
@@ -5227,7 +5261,7 @@ class jd {
|
|
|
5227
5261
|
* @param r
|
|
5228
5262
|
*/
|
|
5229
5263
|
HandleThen(e) {
|
|
5230
|
-
const n = new
|
|
5264
|
+
const n = new mr(), o = this.ParseAppResult(e.data);
|
|
5231
5265
|
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);
|
|
5232
5266
|
}
|
|
5233
5267
|
/**
|
|
@@ -5237,7 +5271,7 @@ class jd {
|
|
|
5237
5271
|
*/
|
|
5238
5272
|
HandleCatch(e) {
|
|
5239
5273
|
var r;
|
|
5240
|
-
const n = new
|
|
5274
|
+
const n = new mr(), o = this.ParseAppResult((r = e.response) == null ? void 0 : r.data);
|
|
5241
5275
|
return o === null ? n.WithError(e.message) : (n.WithErrors(o.errors), n.httpStatusCode = o.httpStatusCode), n;
|
|
5242
5276
|
}
|
|
5243
5277
|
async SilentLogin() {
|
|
@@ -5256,14 +5290,14 @@ class jd {
|
|
|
5256
5290
|
e(!1);
|
|
5257
5291
|
return;
|
|
5258
5292
|
}
|
|
5259
|
-
const
|
|
5260
|
-
|
|
5293
|
+
const b = new XMLHttpRequest();
|
|
5294
|
+
b.open("POST", this.tokenExchangeUrl, !0), b.setRequestHeader(
|
|
5261
5295
|
"Content-type",
|
|
5262
5296
|
"application/x-www-form-urlencoded"
|
|
5263
|
-
),
|
|
5264
|
-
if (
|
|
5265
|
-
if (
|
|
5266
|
-
const w = JSON.parse(
|
|
5297
|
+
), b.onreadystatechange = () => {
|
|
5298
|
+
if (b.readyState === 4) {
|
|
5299
|
+
if (b.status === 200) {
|
|
5300
|
+
const w = JSON.parse(b.responseText);
|
|
5267
5301
|
this.keycloak.setToken(
|
|
5268
5302
|
w.access_token,
|
|
5269
5303
|
null,
|
|
@@ -5274,7 +5308,7 @@ class jd {
|
|
|
5274
5308
|
}
|
|
5275
5309
|
e(!1);
|
|
5276
5310
|
}
|
|
5277
|
-
},
|
|
5311
|
+
}, b.send(this.TokenExchangeParams(a, d));
|
|
5278
5312
|
};
|
|
5279
5313
|
window.addEventListener("message", o);
|
|
5280
5314
|
}).then((e) => (e || (this.keycloak.clearToken(), this.keycloak.login()), e));
|
|
@@ -5310,23 +5344,24 @@ class jd {
|
|
|
5310
5344
|
return !e || !n ? !0 : n - Math.ceil((/* @__PURE__ */ new Date()).getTime() / 1e3) + (this.keycloak.timeSkew ?? 0) < 10;
|
|
5311
5345
|
}
|
|
5312
5346
|
}
|
|
5313
|
-
const
|
|
5314
|
-
|
|
5347
|
+
const Zd = (t) => new zd(t);
|
|
5348
|
+
no.SetInitialTheme();
|
|
5315
5349
|
export {
|
|
5316
|
-
|
|
5317
|
-
|
|
5318
|
-
|
|
5350
|
+
mr as AppResult,
|
|
5351
|
+
zd as AxiosClient,
|
|
5352
|
+
pn as Cor,
|
|
5319
5353
|
vi as SfButton,
|
|
5320
|
-
|
|
5321
|
-
|
|
5354
|
+
Gd as SfContent,
|
|
5355
|
+
yi as SfDrawer,
|
|
5322
5356
|
cn as SfIcon,
|
|
5323
|
-
|
|
5324
|
-
|
|
5325
|
-
|
|
5357
|
+
qd as SfLayout,
|
|
5358
|
+
Yd as SfMessage,
|
|
5359
|
+
Kd as SfNavMenuLink,
|
|
5360
|
+
Jd as SfTabNavigation,
|
|
5326
5361
|
Ft as Tamanho,
|
|
5327
|
-
|
|
5328
|
-
|
|
5362
|
+
Xd as UseAuthService,
|
|
5363
|
+
Zd as UseAxiosClient,
|
|
5329
5364
|
Pl as UseDialogService,
|
|
5330
|
-
|
|
5365
|
+
Tr as UseNavMenuService
|
|
5331
5366
|
};
|
|
5332
5367
|
//# sourceMappingURL=lib.es.js.map
|