@luizleon/sf.prefeiturasp.vuecomponents 0.0.49 → 0.0.50
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/panelmenu/PanelMenu.d.ts +0 -1
- package/dist/sf.prefeiturasp.vuecomponents.es.js +443 -443
- package/dist/sf.prefeiturasp.vuecomponents.es.js.map +1 -1
- package/dist/sf.prefeiturasp.vuecomponents.umd.js +25 -25
- package/dist/sf.prefeiturasp.vuecomponents.umd.js.map +1 -1
- package/package.json +1 -1
- package/src/components/panelmenu/PanelMenu.vue +13 -6
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
var ia = Object.defineProperty;
|
|
2
2
|
var sa = (t, e, n) => e in t ? ia(t, e, { enumerable: !0, configurable: !0, writable: !0, value: n }) : t[e] = n;
|
|
3
3
|
var We = (t, e, n) => (sa(t, typeof e != "symbol" ? e + "" : e, n), n);
|
|
4
|
-
import { ref as Ne, openBlock as H, createElementBlock as te, createElementVNode as z, defineComponent as Ke, onBeforeUnmount as Ti, unref as Ee, renderSlot as Pe, computed as
|
|
4
|
+
import { ref as Ne, openBlock as H, createElementBlock as te, createElementVNode as z, defineComponent as Ke, onBeforeUnmount as Ti, unref as Ee, renderSlot as Pe, computed as Lt, createBlock as pe, resolveDynamicComponent as ct, withCtx as qe, normalizeStyle as Qt, normalizeClass as me, mergeProps as ee, Fragment as ht, createTextVNode as br, toDisplayString as pt, createCommentVNode as be, useSlots as aa, watch as Ln, Teleport as la, withModifiers as er, createVNode as Be, Transition as Nr, onMounted as dn, createStaticVNode as ua, resolveComponent as Dt, renderList as Mr, inject as ca, readonly as da, getCurrentInstance as fa, nextTick as ha, resolveDirective as pa, withDirectives as wr, vShow as Pi } from "vue";
|
|
5
5
|
class ma {
|
|
6
6
|
constructor() {
|
|
7
7
|
We(this, "_visible", Ne(!1));
|
|
@@ -114,8 +114,8 @@ const _a = /* @__PURE__ */ Ri(va, [["render", Aa]]), Fi = /* @__PURE__ */ Ke({
|
|
|
114
114
|
this.wrapper.classList.remove("visible"), this.wrapper.remove();
|
|
115
115
|
}
|
|
116
116
|
Position(i) {
|
|
117
|
-
const l = i.top, a = i.bottom,
|
|
118
|
-
y.style.top = `${a + 10}px`, y.style.left = `${
|
|
117
|
+
const l = i.top, a = i.bottom, c = i.left, d = i.right, f = i.width / 2 - 15, y = this.wrapper;
|
|
118
|
+
y.style.top = `${a + 10}px`, y.style.left = `${c}px`, y.style.marginLeft = `${f}px`, this.OutOfBottom() && (y.style.top = `${l - y.clientHeight - 10}px`, y.classList.add("top")), this.OutOfRight() && (y.style.left = `${d - y.clientWidth}px`, y.style.marginLeft = `-${f}px`, y.classList.add("left"));
|
|
119
119
|
}
|
|
120
120
|
OutOfBottom() {
|
|
121
121
|
return this.wrapper.getBoundingClientRect().bottom > (window.innerHeight || document.documentElement.clientHeight);
|
|
@@ -157,9 +157,9 @@ const _a = /* @__PURE__ */ Ri(va, [["render", Aa]]), Fi = /* @__PURE__ */ Ke({
|
|
|
157
157
|
tooltip: {}
|
|
158
158
|
},
|
|
159
159
|
setup(t) {
|
|
160
|
-
const e = t, n =
|
|
160
|
+
const e = t, n = Lt(
|
|
161
161
|
() => e.tooltip ? Fi : "div"
|
|
162
|
-
), r =
|
|
162
|
+
), r = Lt(() => new dt(`${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.size === "sm").AddClass("sf-icon-medium", e.size === "md").AddClass("sf-icon-large", e.size === "lg").AddClass("sf-ripple", e.button === !0).Build());
|
|
163
163
|
return (o, i) => (H(), pe(ct(n.value), {
|
|
164
164
|
text: e.tooltip
|
|
165
165
|
}, {
|
|
@@ -204,11 +204,11 @@ const _a = /* @__PURE__ */ Ri(va, [["render", Aa]]), Fi = /* @__PURE__ */ Ke({
|
|
|
204
204
|
emits: ["update:visible", "open", "before-close"],
|
|
205
205
|
setup(t, { emit: e }) {
|
|
206
206
|
const n = t, r = e, o = aa(), i = Ne(n.visible), s = Ne(!1), l = Ne(0), a = ya();
|
|
207
|
-
function
|
|
207
|
+
function c() {
|
|
208
208
|
i.value = !1;
|
|
209
209
|
}
|
|
210
210
|
function d(A) {
|
|
211
|
-
(A.key === "Escape" || A.code === "Escape") &&
|
|
211
|
+
(A.key === "Escape" || A.code === "Escape") && c();
|
|
212
212
|
}
|
|
213
213
|
function f() {
|
|
214
214
|
r("open"), window.document.addEventListener("keydown", d, !0);
|
|
@@ -242,7 +242,7 @@ const _a = /* @__PURE__ */ Ri(va, [["render", Aa]]), Fi = /* @__PURE__ */ Ke({
|
|
|
242
242
|
id: Ee(a),
|
|
243
243
|
class: me(x()),
|
|
244
244
|
style: Qt({ zIndex: l.value - 1 }),
|
|
245
|
-
onClick: er(
|
|
245
|
+
onClick: er(c, ["stop"])
|
|
246
246
|
}, [
|
|
247
247
|
Be(Nr, {
|
|
248
248
|
name: "sf-drawer",
|
|
@@ -272,7 +272,7 @@ const _a = /* @__PURE__ */ Ri(va, [["render", Aa]]), Fi = /* @__PURE__ */ Ke({
|
|
|
272
272
|
Be(wt, {
|
|
273
273
|
button: !0,
|
|
274
274
|
icon: "close",
|
|
275
|
-
onClick: er(
|
|
275
|
+
onClick: er(c, ["stop"])
|
|
276
276
|
}, null, 8, ["onClick"])
|
|
277
277
|
]),
|
|
278
278
|
z("div", Ta, [
|
|
@@ -583,10 +583,10 @@ const _a = /* @__PURE__ */ Ri(va, [["render", Aa]]), Fi = /* @__PURE__ */ Ke({
|
|
|
583
583
|
"icon-info",
|
|
584
584
|
"icon-question",
|
|
585
585
|
"icon-error"
|
|
586
|
-
]),
|
|
586
|
+
]), Jt = Ni(["success", "warning", "info", "question", "error"]), xe = () => document.body.querySelector(`.${m.container}`), hn = (t) => {
|
|
587
587
|
const e = xe();
|
|
588
588
|
return e ? e.querySelector(t) : null;
|
|
589
|
-
}, Ye = (t) => hn(`.${t}`), se = () => Ye(m.popup), pn = () => Ye(m.icon), Mi = () => Ye(m.title), Rn = () => Ye(m["html-container"]), Ui = () => Ye(m.image), Hi = () => Ye(m["progress-steps"]), Bn = () => Ye(m["validation-message"]), Ze = () => hn(`.${m.actions} .${m.confirm}`), mt = () => hn(`.${m.actions} .${m.deny}`), za = () => Ye(m["input-label"]),
|
|
589
|
+
}, Ye = (t) => hn(`.${t}`), se = () => Ye(m.popup), pn = () => Ye(m.icon), Mi = () => Ye(m.title), Rn = () => Ye(m["html-container"]), Ui = () => Ye(m.image), Hi = () => Ye(m["progress-steps"]), Bn = () => Ye(m["validation-message"]), Ze = () => hn(`.${m.actions} .${m.confirm}`), mt = () => hn(`.${m.actions} .${m.deny}`), za = () => Ye(m["input-label"]), Bt = () => hn(`.${m.loader}`), St = () => hn(`.${m.actions} .${m.cancel}`), mn = () => Ye(m.actions), ji = () => Ye(m.footer), Nn = () => Ye(m["timer-progress-bar"]), Vr = () => Ye(m.close), qa = `
|
|
590
590
|
a[href],
|
|
591
591
|
area[href],
|
|
592
592
|
input:not([disabled]),
|
|
@@ -632,7 +632,7 @@ const _a = /* @__PURE__ */ Ri(va, [["render", Aa]]), Fi = /* @__PURE__ */ Ke({
|
|
|
632
632
|
return !0;
|
|
633
633
|
}, Ja = (t, e) => {
|
|
634
634
|
je(t.classList).forEach((n) => {
|
|
635
|
-
!Object.values(m).includes(n) && !Object.values(
|
|
635
|
+
!Object.values(m).includes(n) && !Object.values(Jt).includes(n) && !Object.values(e.showClass).includes(n) && t.classList.remove(n);
|
|
636
636
|
});
|
|
637
637
|
}, Je = (t, e, n) => {
|
|
638
638
|
if (Ja(t, e), e.customClass && e.customClass[n]) {
|
|
@@ -679,7 +679,7 @@ const _a = /* @__PURE__ */ Ri(va, [["render", Aa]]), Fi = /* @__PURE__ */ Ke({
|
|
|
679
679
|
for (let r = 0; r < n.length; r++)
|
|
680
680
|
if (at(n[r], e))
|
|
681
681
|
return n[r];
|
|
682
|
-
},
|
|
682
|
+
}, Yt = (t, e, n) => {
|
|
683
683
|
n === `${parseInt(n)}` && (n = parseInt(n)), n || parseInt(n) === 0 ? t.style[e] = typeof n == "number" ? `${n}px` : n : t.style.removeProperty(e);
|
|
684
684
|
}, Se = (t, e = "flex") => {
|
|
685
685
|
t.style.display = e;
|
|
@@ -804,7 +804,7 @@ const _a = /* @__PURE__ */ Ri(va, [["render", Aa]]), Fi = /* @__PURE__ */ Ke({
|
|
|
804
804
|
const e = t.getBoundingClientRect().width - t.clientWidth;
|
|
805
805
|
return document.body.removeChild(t), e;
|
|
806
806
|
}, dl = (t, e) => {
|
|
807
|
-
const n = mn(), r =
|
|
807
|
+
const n = mn(), r = Bt();
|
|
808
808
|
!e.showConfirmButton && !e.showDenyButton && !e.showCancelButton ? Ie(n) : Se(n), Je(n, e, "actions"), fl(n, r, e), Ce(r, e.loaderHtml), Je(r, e, "loader");
|
|
809
809
|
};
|
|
810
810
|
function fl(t, e, n) {
|
|
@@ -936,13 +936,13 @@ const El = (t, e) => {
|
|
|
936
936
|
}
|
|
937
937
|
if (!e.icon && !e.iconHtml)
|
|
938
938
|
return Ie(r);
|
|
939
|
-
if (e.icon && Object.keys(
|
|
939
|
+
if (e.icon && Object.keys(Jt).indexOf(e.icon) === -1)
|
|
940
940
|
return Et(`Unknown icon! Expected "success", "error", "warning", "info" or "question", got "${e.icon}"`), Ie(r);
|
|
941
941
|
Se(r), Ro(r, e), Lo(r, e), oe(r, e.showClass.icon);
|
|
942
942
|
}, Lo = (t, e) => {
|
|
943
|
-
for (const n in
|
|
944
|
-
e.icon !== n && rt(t,
|
|
945
|
-
oe(t,
|
|
943
|
+
for (const n in Jt)
|
|
944
|
+
e.icon !== n && rt(t, Jt[n]);
|
|
945
|
+
oe(t, Jt[e.icon]), Ol(t, e), kl(), Je(t, e, "icon");
|
|
946
946
|
}, kl = () => {
|
|
947
947
|
const t = se(), e = window.getComputedStyle(t).getPropertyValue("background-color"), n = t.querySelectorAll("[class^=swal2-success-circular-line], .swal2-success-fix");
|
|
948
948
|
for (let r = 0; r < n.length; r++)
|
|
@@ -979,7 +979,7 @@ const El = (t, e) => {
|
|
|
979
979
|
const n = Ui();
|
|
980
980
|
if (!e.imageUrl)
|
|
981
981
|
return Ie(n);
|
|
982
|
-
Se(n, ""), n.setAttribute("src", e.imageUrl), n.setAttribute("alt", e.imageAlt),
|
|
982
|
+
Se(n, ""), n.setAttribute("src", e.imageUrl), n.setAttribute("alt", e.imageAlt), Yt(n, "width", e.imageWidth), Yt(n, "height", e.imageHeight), n.className = m.image, Je(n, e, "image");
|
|
983
983
|
}, Rl = (t) => {
|
|
984
984
|
const e = document.createElement("li");
|
|
985
985
|
return oe(e, m["progress-step"]), Ce(e, t), e;
|
|
@@ -1004,12 +1004,12 @@ const El = (t, e) => {
|
|
|
1004
1004
|
Un(n, e.title || e.titleText, "block"), e.title && Gr(e.title, n), e.titleText && (n.innerText = e.titleText), Je(n, e, "title");
|
|
1005
1005
|
}, Bl = (t, e) => {
|
|
1006
1006
|
const n = xe(), r = se();
|
|
1007
|
-
e.toast ? (
|
|
1007
|
+
e.toast ? (Yt(n, "width", e.width), r.style.width = "100%", r.insertBefore(Bt(), pn())) : Yt(r, "width", e.width), Yt(r, "padding", e.padding), e.color && (r.style.color = e.color), e.background && (r.style.background = e.background), Ie(Bn()), Nl(r, e);
|
|
1008
1008
|
}, Nl = (t, e) => {
|
|
1009
1009
|
t.className = `${m.popup} ${He(t) ? e.showClass.popup : ""}`, e.toast ? (oe([document.documentElement, document.body], m["toast-shown"]), oe(t, m.toast)) : oe(t, m.modal), Je(t, e, "popup"), typeof e.customClass == "string" && oe(t, e.customClass), e.icon && oe(t, m[`icon-${e.icon}`]);
|
|
1010
1010
|
}, Gi = (t, e) => {
|
|
1011
1011
|
Bl(t, e), yl(t, e), $l(t, e), Il(t, e), Ll(t, e), Dl(t, e), xl(t, e), El(t, e), dl(t, e), Cl(t, e), typeof e.didRender == "function" && e.didRender(se());
|
|
1012
|
-
},
|
|
1012
|
+
}, Nt = Object.freeze({
|
|
1013
1013
|
cancel: "cancel",
|
|
1014
1014
|
backdrop: "backdrop",
|
|
1015
1015
|
close: "close",
|
|
@@ -1188,16 +1188,16 @@ const Zl = () => {
|
|
|
1188
1188
|
oe(t, n.showClass.backdrop), e.style.setProperty("opacity", "0", "important"), Se(e, "grid"), setTimeout(() => {
|
|
1189
1189
|
oe(e, n.showClass.popup), e.style.removeProperty("opacity");
|
|
1190
1190
|
}, Xi), oe([document.documentElement, document.body], m.shown), n.heightAuto && n.backdrop && !n.toast && oe([document.documentElement, document.body], m["height-auto"]);
|
|
1191
|
-
},
|
|
1191
|
+
}, Rt = (t) => {
|
|
1192
1192
|
let e = se();
|
|
1193
|
-
e || new
|
|
1194
|
-
const n =
|
|
1193
|
+
e || new Ft(), e = se();
|
|
1194
|
+
const n = Bt();
|
|
1195
1195
|
Mn() ? Ie(pn()) : du(e, t), Se(n), e.setAttribute("data-loading", !0), e.setAttribute("aria-busy", !0), e.focus();
|
|
1196
1196
|
}, du = (t, e) => {
|
|
1197
|
-
const n = mn(), r =
|
|
1197
|
+
const n = mn(), r = Bt();
|
|
1198
1198
|
!e && He(Ze()) && (e = Ze()), Se(n), e && (Ie(e), r.setAttribute("data-button-to-replace", e.className)), r.parentNode.insertBefore(r, e), oe([t, n], m.loading);
|
|
1199
1199
|
}, fu = (t, e) => {
|
|
1200
|
-
e.input === "select" || e.input === "radio" ? yu(t, e) : ["text", "email", "number", "tel", "textarea"].includes(e.input) && (Hr(e.inputValue) || jr(e.inputValue)) && (
|
|
1200
|
+
e.input === "select" || e.input === "radio" ? yu(t, e) : ["text", "email", "number", "tel", "textarea"].includes(e.input) && (Hr(e.inputValue) || jr(e.inputValue)) && (Rt(Ze()), vu(t, e));
|
|
1201
1201
|
}, hu = (t, e) => {
|
|
1202
1202
|
const n = t.getInput();
|
|
1203
1203
|
if (!n)
|
|
@@ -1214,7 +1214,7 @@ const Zl = () => {
|
|
|
1214
1214
|
}
|
|
1215
1215
|
}, pu = (t) => t.checked ? 1 : 0, mu = (t) => t.checked ? t.value : null, gu = (t) => t.files.length ? t.getAttribute("multiple") !== null ? t.files : t.files[0] : null, yu = (t, e) => {
|
|
1216
1216
|
const n = se(), r = (o) => bu[e.input](n, Ar(o), e);
|
|
1217
|
-
Hr(e.inputOptions) || jr(e.inputOptions) ? (
|
|
1217
|
+
Hr(e.inputOptions) || jr(e.inputOptions) ? (Rt(Ze()), fn(e.inputOptions).then((o) => {
|
|
1218
1218
|
t.hideLoading(), r(o);
|
|
1219
1219
|
})) : typeof e.inputOptions == "object" ? r(e.inputOptions) : Et(`Unexpected type of inputOptions! Expected object, Map or Promise, got ${typeof e.inputOptions}`);
|
|
1220
1220
|
}, vu = (t, e) => {
|
|
@@ -1234,7 +1234,7 @@ const Zl = () => {
|
|
|
1234
1234
|
const s = i[0], l = i[1];
|
|
1235
1235
|
if (Array.isArray(l)) {
|
|
1236
1236
|
const a = document.createElement("optgroup");
|
|
1237
|
-
a.label = s, a.disabled = !1, r.appendChild(a), l.forEach((
|
|
1237
|
+
a.label = s, a.disabled = !1, r.appendChild(a), l.forEach((c) => o(a, c[1], c[0]));
|
|
1238
1238
|
} else
|
|
1239
1239
|
o(r, l, s);
|
|
1240
1240
|
}), r.focus();
|
|
@@ -1242,10 +1242,10 @@ const Zl = () => {
|
|
|
1242
1242
|
radio: (t, e, n) => {
|
|
1243
1243
|
const r = ft(t, m.radio);
|
|
1244
1244
|
e.forEach((i) => {
|
|
1245
|
-
const s = i[0], l = i[1], a = document.createElement("input"),
|
|
1245
|
+
const s = i[0], l = i[1], a = document.createElement("input"), c = document.createElement("label");
|
|
1246
1246
|
a.type = "radio", a.name = m.radio, a.value = s, Do(s, n.inputValue) && (a.checked = !0);
|
|
1247
1247
|
const d = document.createElement("span");
|
|
1248
|
-
Ce(d, l), d.className = m.label,
|
|
1248
|
+
Ce(d, l), d.className = m.label, c.appendChild(a), c.appendChild(d), r.appendChild(c);
|
|
1249
1249
|
});
|
|
1250
1250
|
const o = r.querySelectorAll("input");
|
|
1251
1251
|
o.length && o[0].focus();
|
|
@@ -1323,7 +1323,7 @@ const tn = {
|
|
|
1323
1323
|
}
|
|
1324
1324
|
i instanceof HTMLButtonElement && i.focus();
|
|
1325
1325
|
}, Ou = (t, e, n) => {
|
|
1326
|
-
Dn(e.allowEscapeKey) && (t.preventDefault(), n(
|
|
1326
|
+
Dn(e.allowEscapeKey) && (t.preventDefault(), n(Nt.esc));
|
|
1327
1327
|
};
|
|
1328
1328
|
function ns(t, e, n, r) {
|
|
1329
1329
|
Mn() ? No(t, r) : (el(n).then(() => No(t, r)), es(Y)), /^((?!chrome|android).)*safari/i.test(navigator.userAgent) ? (e.setAttribute("style", "display:none !important"), e.removeAttribute("class"), e.innerHTML = "") : e.remove(), Wr() && (Ql(), su(), Ji()), Lu();
|
|
@@ -1499,7 +1499,7 @@ const Ju = (t) => {
|
|
|
1499
1499
|
const e = X.innerParams.get(t);
|
|
1500
1500
|
t.disableButtons(), e.returnInputValueOnDeny ? as(t, "deny") : Yr(t, !1);
|
|
1501
1501
|
}, Zu = (t, e) => {
|
|
1502
|
-
t.disableButtons(), e(
|
|
1502
|
+
t.disableButtons(), e(Nt.cancel);
|
|
1503
1503
|
}, as = (t, e) => {
|
|
1504
1504
|
const n = X.innerParams.get(t);
|
|
1505
1505
|
if (!n.input)
|
|
@@ -1517,7 +1517,7 @@ const Ju = (t) => {
|
|
|
1517
1517
|
});
|
|
1518
1518
|
}, Yr = (t, e) => {
|
|
1519
1519
|
const n = X.innerParams.get(t || void 0);
|
|
1520
|
-
n.showLoaderOnDeny &&
|
|
1520
|
+
n.showLoaderOnDeny && Rt(mt()), n.preDeny ? (X.awaitingPromise.set(t || void 0, !0), Promise.resolve().then(
|
|
1521
1521
|
() => fn(n.preDeny(e, n.validationMessage))
|
|
1522
1522
|
).then((o) => {
|
|
1523
1523
|
o === !1 ? (t.hideLoading(), yn(t)) : t.closePopup({ isDenied: !0, value: typeof o > "u" ? e : o });
|
|
@@ -1528,7 +1528,7 @@ const Ju = (t) => {
|
|
|
1528
1528
|
t.rejectPromise(e);
|
|
1529
1529
|
}, Xr = (t, e) => {
|
|
1530
1530
|
const n = X.innerParams.get(t || void 0);
|
|
1531
|
-
n.showLoaderOnConfirm &&
|
|
1531
|
+
n.showLoaderOnConfirm && Rt(), n.preConfirm ? (t.resetValidationMessage(), X.awaitingPromise.set(t || void 0, !0), Promise.resolve().then(
|
|
1532
1532
|
() => fn(n.preConfirm(e, n.validationMessage))
|
|
1533
1533
|
).then((o) => {
|
|
1534
1534
|
He(Bn()) || o === !1 ? (t.hideLoading(), yn(t)) : Mo(t, typeof o > "u" ? e : o);
|
|
@@ -1538,7 +1538,7 @@ const Ju = (t) => {
|
|
|
1538
1538
|
}, tc = (t, e, n) => {
|
|
1539
1539
|
e.popup.onclick = () => {
|
|
1540
1540
|
const r = X.innerParams.get(t);
|
|
1541
|
-
r && (nc(r) || r.timer || r.input) || n(
|
|
1541
|
+
r && (nc(r) || r.timer || r.input) || n(Nt.close);
|
|
1542
1542
|
};
|
|
1543
1543
|
}, nc = (t) => t.showConfirmButton || t.showDenyButton || t.showCancelButton || t.showCloseButton;
|
|
1544
1544
|
let Fn = !1;
|
|
@@ -1561,7 +1561,7 @@ const rc = (t) => {
|
|
|
1561
1561
|
Fn = !1;
|
|
1562
1562
|
return;
|
|
1563
1563
|
}
|
|
1564
|
-
r.target === e.container && Dn(o.allowOutsideClick) && n(
|
|
1564
|
+
r.target === e.container && Dn(o.allowOutsideClick) && n(Nt.backdrop);
|
|
1565
1565
|
};
|
|
1566
1566
|
}, sc = (t) => typeof t == "object" && t.jquery, Uo = (t) => t instanceof Element || sc(t), ac = (t) => {
|
|
1567
1567
|
const e = {};
|
|
@@ -1620,7 +1620,7 @@ const mc = (t) => {
|
|
|
1620
1620
|
clickCancel: Eu,
|
|
1621
1621
|
clickConfirm: Qi,
|
|
1622
1622
|
clickDeny: _u,
|
|
1623
|
-
enableLoading:
|
|
1623
|
+
enableLoading: Rt,
|
|
1624
1624
|
fire: lc,
|
|
1625
1625
|
getActions: mn,
|
|
1626
1626
|
getCancelButton: St,
|
|
@@ -1634,7 +1634,7 @@ const mc = (t) => {
|
|
|
1634
1634
|
getIcon: pn,
|
|
1635
1635
|
getImage: Ui,
|
|
1636
1636
|
getInputLabel: za,
|
|
1637
|
-
getLoader:
|
|
1637
|
+
getLoader: Bt,
|
|
1638
1638
|
getPopup: se,
|
|
1639
1639
|
getTimerLeft: cc,
|
|
1640
1640
|
getTimerProgressBar: Nn,
|
|
@@ -1649,12 +1649,12 @@ const mc = (t) => {
|
|
|
1649
1649
|
isVisible: Au,
|
|
1650
1650
|
mixin: uc,
|
|
1651
1651
|
resumeTimer: cs,
|
|
1652
|
-
showLoading:
|
|
1652
|
+
showLoading: Rt,
|
|
1653
1653
|
stopTimer: us,
|
|
1654
1654
|
toggleTimer: dc
|
|
1655
1655
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
1656
1656
|
let Cr;
|
|
1657
|
-
class
|
|
1657
|
+
class Mt {
|
|
1658
1658
|
constructor(...e) {
|
|
1659
1659
|
if (typeof window > "u")
|
|
1660
1660
|
return;
|
|
@@ -1690,7 +1690,7 @@ const yc = (t, e, n) => new Promise((r, o) => {
|
|
|
1690
1690
|
const i = (s) => {
|
|
1691
1691
|
t.closePopup({ isDismissed: !0, dismiss: s });
|
|
1692
1692
|
};
|
|
1693
|
-
tn.swalPromiseResolve.set(t, r), tn.swalPromiseReject.set(t, o), e.confirmButton.onclick = () => Yu(t), e.denyButton.onclick = () => Xu(t), e.cancelButton.onclick = () => Zu(t, i), e.closeButton.onclick = () => i(
|
|
1693
|
+
tn.swalPromiseResolve.set(t, r), tn.swalPromiseReject.set(t, o), e.confirmButton.onclick = () => Yu(t), e.denyButton.onclick = () => Xu(t), e.cancelButton.onclick = () => Zu(t, i), e.closeButton.onclick = () => i(Nt.close), ec(t, e, i), Cu(t, Y, n, i), fu(t, n), au(n), wc(Y, n, i), Sc(e, n), setTimeout(() => {
|
|
1694
1694
|
e.container.scrollTop = 0;
|
|
1695
1695
|
});
|
|
1696
1696
|
}), vc = (t, e) => {
|
|
@@ -1704,7 +1704,7 @@ const yc = (t, e, n) => new Promise((r, o) => {
|
|
|
1704
1704
|
confirmButton: Ze(),
|
|
1705
1705
|
denyButton: mt(),
|
|
1706
1706
|
cancelButton: St(),
|
|
1707
|
-
loader:
|
|
1707
|
+
loader: Bt(),
|
|
1708
1708
|
closeButton: Vr(),
|
|
1709
1709
|
validationMessage: Bn(),
|
|
1710
1710
|
progressSteps: Hi()
|
|
@@ -1726,18 +1726,18 @@ const yc = (t, e, n) => new Promise((r, o) => {
|
|
|
1726
1726
|
}, Ac = (t, e) => e.focusDeny && He(t.denyButton) ? (t.denyButton.focus(), !0) : e.focusCancel && He(t.cancelButton) ? (t.cancelButton.focus(), !0) : e.focusConfirm && He(t.confirmButton) ? (t.confirmButton.focus(), !0) : !1, _c = () => {
|
|
1727
1727
|
document.activeElement instanceof HTMLElement && typeof document.activeElement.blur == "function" && document.activeElement.blur();
|
|
1728
1728
|
};
|
|
1729
|
-
Object.assign(
|
|
1730
|
-
Object.assign(
|
|
1729
|
+
Object.assign(Mt.prototype, ss);
|
|
1730
|
+
Object.assign(Mt, gc);
|
|
1731
1731
|
Object.keys(ss).forEach((t) => {
|
|
1732
|
-
|
|
1732
|
+
Mt[t] = function(...e) {
|
|
1733
1733
|
if (Cr)
|
|
1734
1734
|
return Cr[t](...e);
|
|
1735
1735
|
};
|
|
1736
1736
|
});
|
|
1737
|
-
|
|
1738
|
-
|
|
1739
|
-
const
|
|
1740
|
-
|
|
1737
|
+
Mt.DismissReason = Nt;
|
|
1738
|
+
Mt.version = "11.4.8";
|
|
1739
|
+
const Ft = Mt;
|
|
1740
|
+
Ft.default = Ft;
|
|
1741
1741
|
/*! @license DOMPurify 3.0.9 | (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.9/LICENSE */
|
|
1742
1742
|
const {
|
|
1743
1743
|
entries: ds,
|
|
@@ -1766,7 +1766,7 @@ xr || (xr = function(e, n, r) {
|
|
|
1766
1766
|
Ir || (Ir = function(e, n) {
|
|
1767
1767
|
return new e(...n);
|
|
1768
1768
|
});
|
|
1769
|
-
const _n = Ve(Array.prototype.forEach), Vo = Ve(Array.prototype.pop),
|
|
1769
|
+
const _n = Ve(Array.prototype.forEach), Vo = Ve(Array.prototype.pop), Kt = Ve(Array.prototype.push), In = Ve(String.prototype.toLowerCase), rr = Ve(String.prototype.toString), Ic = Ve(String.prototype.match), Wt = Ve(String.prototype.replace), kc = Ve(String.prototype.indexOf), Tc = Ve(String.prototype.trim), Xe = Ve(Object.prototype.hasOwnProperty), Ue = Ve(RegExp.prototype.test), zt = Pc(TypeError);
|
|
1770
1770
|
function Ve(t) {
|
|
1771
1771
|
return function(e) {
|
|
1772
1772
|
for (var n = arguments.length, r = new Array(n > 1 ? n - 1 : 0), o = 1; o < n; o++)
|
|
@@ -1876,7 +1876,7 @@ function ms() {
|
|
|
1876
1876
|
HTMLTemplateElement: s,
|
|
1877
1877
|
Node: l,
|
|
1878
1878
|
Element: a,
|
|
1879
|
-
NodeFilter:
|
|
1879
|
+
NodeFilter: c,
|
|
1880
1880
|
NamedNodeMap: d = t.NamedNodeMap || t.MozNamedAttrMap,
|
|
1881
1881
|
HTMLFormElement: f,
|
|
1882
1882
|
DOMParser: y,
|
|
@@ -1910,7 +1910,7 @@ function ms() {
|
|
|
1910
1910
|
IS_ALLOWED_URI: ke
|
|
1911
1911
|
} = Go, K = null;
|
|
1912
1912
|
const Le = Z({}, [...Ko, ...or, ...ir, ...sr, ...Wo]);
|
|
1913
|
-
let
|
|
1913
|
+
let u = null;
|
|
1914
1914
|
const p = Z({}, [...zo, ...ar, ...qo, ...Cn]);
|
|
1915
1915
|
let w = Object.seal(fs(null, {
|
|
1916
1916
|
tagNameCheck: {
|
|
@@ -1933,7 +1933,7 @@ function ms() {
|
|
|
1933
1933
|
}
|
|
1934
1934
|
})), I = null, S = null, F = !0, C = !0, k = !1, N = !0, D = !1, W = !1, ne = !1, Re = !1, Te = !1, we = !1, et = !1, lo = !0, uo = !1;
|
|
1935
1935
|
const Ys = "user-content-";
|
|
1936
|
-
let Gn = !0,
|
|
1936
|
+
let Gn = !0, Ht = !1, Ct = {}, xt = null;
|
|
1937
1937
|
const co = Z({}, ["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"]);
|
|
1938
1938
|
let fo = null;
|
|
1939
1939
|
const ho = Z({}, ["audio", "video", "img", "source", "image", "track"]);
|
|
@@ -1941,7 +1941,7 @@ function ms() {
|
|
|
1941
1941
|
const po = Z({}, ["alt", "class", "for", "id", "label", "name", "pattern", "placeholder", "role", "summary", "title", "value", "style", "xmlns"]), wn = "http://www.w3.org/1998/Math/MathML", Sn = "http://www.w3.org/2000/svg", it = "http://www.w3.org/1999/xhtml";
|
|
1942
1942
|
let It = it, Yn = !1, Xn = null;
|
|
1943
1943
|
const Xs = Z({}, [wn, Sn, it], rr);
|
|
1944
|
-
let
|
|
1944
|
+
let jt = null;
|
|
1945
1945
|
const Zs = ["application/xhtml+xml", "text/html"], Qs = "text/html";
|
|
1946
1946
|
let ve = null, kt = null;
|
|
1947
1947
|
const ea = n.createElement("form"), mo = function(h) {
|
|
@@ -1949,8 +1949,8 @@ function ms() {
|
|
|
1949
1949
|
}, Zn = function() {
|
|
1950
1950
|
let h = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
1951
1951
|
if (!(kt && kt === h)) {
|
|
1952
|
-
if ((!h || typeof h != "object") && (h = {}), h = bt(h),
|
|
1953
|
-
Zs.indexOf(h.PARSER_MEDIA_TYPE) === -1 ? Qs : h.PARSER_MEDIA_TYPE, ve =
|
|
1952
|
+
if ((!h || typeof h != "object") && (h = {}), h = bt(h), jt = // eslint-disable-next-line unicorn/prefer-includes
|
|
1953
|
+
Zs.indexOf(h.PARSER_MEDIA_TYPE) === -1 ? Qs : h.PARSER_MEDIA_TYPE, ve = jt === "application/xhtml+xml" ? rr : In, K = Xe(h, "ALLOWED_TAGS") ? Z({}, h.ALLOWED_TAGS, ve) : Le, u = Xe(h, "ALLOWED_ATTR") ? Z({}, h.ALLOWED_ATTR, ve) : p, Xn = Xe(h, "ALLOWED_NAMESPACES") ? Z({}, h.ALLOWED_NAMESPACES, rr) : Xs, Jn = Xe(h, "ADD_URI_SAFE_ATTR") ? Z(
|
|
1954
1954
|
bt(po),
|
|
1955
1955
|
// eslint-disable-line indent
|
|
1956
1956
|
h.ADD_URI_SAFE_ATTR,
|
|
@@ -1964,11 +1964,11 @@ function ms() {
|
|
|
1964
1964
|
// eslint-disable-line indent
|
|
1965
1965
|
ve
|
|
1966
1966
|
// eslint-disable-line indent
|
|
1967
|
-
) : ho, xt = Xe(h, "FORBID_CONTENTS") ? Z({}, h.FORBID_CONTENTS, ve) : co, I = Xe(h, "FORBID_TAGS") ? Z({}, h.FORBID_TAGS, ve) : {}, S = Xe(h, "FORBID_ATTR") ? Z({}, h.FORBID_ATTR, ve) : {}, Ct = Xe(h, "USE_PROFILES") ? h.USE_PROFILES : !1, F = h.ALLOW_ARIA_ATTR !== !1, C = h.ALLOW_DATA_ATTR !== !1, k = h.ALLOW_UNKNOWN_PROTOCOLS || !1, N = h.ALLOW_SELF_CLOSE_IN_ATTR !== !1, D = h.SAFE_FOR_TEMPLATES || !1, W = h.WHOLE_DOCUMENT || !1, Te = h.RETURN_DOM || !1, we = h.RETURN_DOM_FRAGMENT || !1, et = h.RETURN_TRUSTED_TYPE || !1, Re = h.FORCE_BODY || !1, lo = h.SANITIZE_DOM !== !1, uo = h.SANITIZE_NAMED_PROPS || !1, Gn = h.KEEP_CONTENT !== !1,
|
|
1967
|
+
) : ho, xt = Xe(h, "FORBID_CONTENTS") ? Z({}, h.FORBID_CONTENTS, ve) : co, I = Xe(h, "FORBID_TAGS") ? Z({}, h.FORBID_TAGS, ve) : {}, S = Xe(h, "FORBID_ATTR") ? Z({}, h.FORBID_ATTR, ve) : {}, Ct = Xe(h, "USE_PROFILES") ? h.USE_PROFILES : !1, F = h.ALLOW_ARIA_ATTR !== !1, C = h.ALLOW_DATA_ATTR !== !1, k = h.ALLOW_UNKNOWN_PROTOCOLS || !1, N = h.ALLOW_SELF_CLOSE_IN_ATTR !== !1, D = h.SAFE_FOR_TEMPLATES || !1, W = h.WHOLE_DOCUMENT || !1, Te = h.RETURN_DOM || !1, we = h.RETURN_DOM_FRAGMENT || !1, et = h.RETURN_TRUSTED_TYPE || !1, Re = h.FORCE_BODY || !1, lo = h.SANITIZE_DOM !== !1, uo = h.SANITIZE_NAMED_PROPS || !1, Gn = h.KEEP_CONTENT !== !1, Ht = h.IN_PLACE || !1, ke = h.ALLOWED_URI_REGEXP || hs, It = h.NAMESPACE || it, w = h.CUSTOM_ELEMENT_HANDLING || {}, h.CUSTOM_ELEMENT_HANDLING && mo(h.CUSTOM_ELEMENT_HANDLING.tagNameCheck) && (w.tagNameCheck = h.CUSTOM_ELEMENT_HANDLING.tagNameCheck), h.CUSTOM_ELEMENT_HANDLING && mo(h.CUSTOM_ELEMENT_HANDLING.attributeNameCheck) && (w.attributeNameCheck = h.CUSTOM_ELEMENT_HANDLING.attributeNameCheck), h.CUSTOM_ELEMENT_HANDLING && typeof h.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements == "boolean" && (w.allowCustomizedBuiltInElements = h.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements), D && (C = !1), we && (Te = !0), Ct && (K = Z({}, Wo), u = [], Ct.html === !0 && (Z(K, Ko), Z(u, zo)), Ct.svg === !0 && (Z(K, or), Z(u, ar), Z(u, Cn)), Ct.svgFilters === !0 && (Z(K, ir), Z(u, ar), Z(u, Cn)), Ct.mathMl === !0 && (Z(K, sr), Z(u, qo), Z(u, Cn))), h.ADD_TAGS && (K === Le && (K = bt(K)), Z(K, h.ADD_TAGS, ve)), h.ADD_ATTR && (u === p && (u = bt(u)), Z(u, h.ADD_ATTR, ve)), h.ADD_URI_SAFE_ATTR && Z(Jn, h.ADD_URI_SAFE_ATTR, ve), h.FORBID_CONTENTS && (xt === co && (xt = bt(xt)), Z(xt, h.FORBID_CONTENTS, ve)), Gn && (K["#text"] = !0), W && Z(K, ["html", "head", "body"]), K.table && (Z(K, ["tbody"]), delete I.tbody), h.TRUSTED_TYPES_POLICY) {
|
|
1968
1968
|
if (typeof h.TRUSTED_TYPES_POLICY.createHTML != "function")
|
|
1969
|
-
throw
|
|
1969
|
+
throw zt('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');
|
|
1970
1970
|
if (typeof h.TRUSTED_TYPES_POLICY.createScriptURL != "function")
|
|
1971
|
-
throw
|
|
1971
|
+
throw zt('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');
|
|
1972
1972
|
V = h.TRUSTED_TYPES_POLICY, ye = V.createHTML("");
|
|
1973
1973
|
} else
|
|
1974
1974
|
V === void 0 && (V = jc(b, o)), V !== null && typeof ye == "string" && (ye = V.createHTML(""));
|
|
@@ -1981,9 +1981,9 @@ function ms() {
|
|
|
1981
1981
|
tagName: "template"
|
|
1982
1982
|
});
|
|
1983
1983
|
const M = In(h.tagName), le = In(T.tagName);
|
|
1984
|
-
return Xn[h.namespaceURI] ? h.namespaceURI === Sn ? T.namespaceURI === it ? M === "svg" : T.namespaceURI === wn ? M === "svg" && (le === "annotation-xml" || go[le]) : !!vo[M] : h.namespaceURI === wn ? T.namespaceURI === it ? M === "math" : T.namespaceURI === Sn ? M === "math" && yo[le] : !!bo[M] : h.namespaceURI === it ? T.namespaceURI === Sn && !yo[le] || T.namespaceURI === wn && !go[le] ? !1 : !bo[M] && (ta[M] || !vo[M]) : !!(
|
|
1984
|
+
return Xn[h.namespaceURI] ? h.namespaceURI === Sn ? T.namespaceURI === it ? M === "svg" : T.namespaceURI === wn ? M === "svg" && (le === "annotation-xml" || go[le]) : !!vo[M] : h.namespaceURI === wn ? T.namespaceURI === it ? M === "math" : T.namespaceURI === Sn ? M === "math" && yo[le] : !!bo[M] : h.namespaceURI === it ? T.namespaceURI === Sn && !yo[le] || T.namespaceURI === wn && !go[le] ? !1 : !bo[M] && (ta[M] || !vo[M]) : !!(jt === "application/xhtml+xml" && Xn[h.namespaceURI]) : !1;
|
|
1985
1985
|
}, gt = function(h) {
|
|
1986
|
-
|
|
1986
|
+
Kt(e.removed, {
|
|
1987
1987
|
element: h
|
|
1988
1988
|
});
|
|
1989
1989
|
try {
|
|
@@ -1993,17 +1993,17 @@ function ms() {
|
|
|
1993
1993
|
}
|
|
1994
1994
|
}, Qn = function(h, T) {
|
|
1995
1995
|
try {
|
|
1996
|
-
|
|
1996
|
+
Kt(e.removed, {
|
|
1997
1997
|
attribute: T.getAttributeNode(h),
|
|
1998
1998
|
from: T
|
|
1999
1999
|
});
|
|
2000
2000
|
} catch {
|
|
2001
|
-
|
|
2001
|
+
Kt(e.removed, {
|
|
2002
2002
|
attribute: null,
|
|
2003
2003
|
from: T
|
|
2004
2004
|
});
|
|
2005
2005
|
}
|
|
2006
|
-
if (T.removeAttribute(h), h === "is" && !
|
|
2006
|
+
if (T.removeAttribute(h), h === "is" && !u[h])
|
|
2007
2007
|
if (Te || we)
|
|
2008
2008
|
try {
|
|
2009
2009
|
gt(T);
|
|
@@ -2022,11 +2022,11 @@ function ms() {
|
|
|
2022
2022
|
const _e = Ic(h, /^[\r\n\t ]+/);
|
|
2023
2023
|
M = _e && _e[0];
|
|
2024
2024
|
}
|
|
2025
|
-
|
|
2025
|
+
jt === "application/xhtml+xml" && It === it && (h = '<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>' + h + "</body></html>");
|
|
2026
2026
|
const le = V ? V.createHTML(h) : h;
|
|
2027
2027
|
if (It === it)
|
|
2028
2028
|
try {
|
|
2029
|
-
T = new y().parseFromString(le,
|
|
2029
|
+
T = new y().parseFromString(le, jt);
|
|
2030
2030
|
} catch {
|
|
2031
2031
|
}
|
|
2032
2032
|
if (!T || !T.documentElement) {
|
|
@@ -2043,7 +2043,7 @@ function ms() {
|
|
|
2043
2043
|
h.ownerDocument || h,
|
|
2044
2044
|
h,
|
|
2045
2045
|
// eslint-disable-next-line no-bitwise
|
|
2046
|
-
|
|
2046
|
+
c.SHOW_ELEMENT | c.SHOW_COMMENT | c.SHOW_TEXT,
|
|
2047
2047
|
null
|
|
2048
2048
|
);
|
|
2049
2049
|
}, ra = function(h) {
|
|
@@ -2078,8 +2078,8 @@ function ms() {
|
|
|
2078
2078
|
return gt(h), !0;
|
|
2079
2079
|
}
|
|
2080
2080
|
return h instanceof a && !na(h) || (M === "noscript" || M === "noembed" || M === "noframes") && Ue(/<\/no(script|embed|frames)/i, h.innerHTML) ? (gt(h), !0) : (D && h.nodeType === 3 && (T = h.textContent, _n([P, q, E], (le) => {
|
|
2081
|
-
T =
|
|
2082
|
-
}), h.textContent !== T && (
|
|
2081
|
+
T = Wt(T, le, " ");
|
|
2082
|
+
}), h.textContent !== T && (Kt(e.removed, {
|
|
2083
2083
|
element: h.cloneNode()
|
|
2084
2084
|
}), h.textContent = T)), st("afterSanitizeElements", h, null), !1);
|
|
2085
2085
|
}, Eo = function(h, T, M) {
|
|
@@ -2087,7 +2087,7 @@ function ms() {
|
|
|
2087
2087
|
return !1;
|
|
2088
2088
|
if (!(C && !S[T] && Ue(J, T))) {
|
|
2089
2089
|
if (!(F && Ue(ae, T))) {
|
|
2090
|
-
if (!
|
|
2090
|
+
if (!u[T] || S[T]) {
|
|
2091
2091
|
if (
|
|
2092
2092
|
// First condition does a very basic check if a) it's basically a valid custom element tagname AND
|
|
2093
2093
|
// b) if the tagName passes whatever the user has configured for CUSTOM_ELEMENT_HANDLING.tagNameCheck
|
|
@@ -2098,9 +2098,9 @@ function ms() {
|
|
|
2098
2098
|
)
|
|
2099
2099
|
return !1;
|
|
2100
2100
|
} else if (!Jn[T]) {
|
|
2101
|
-
if (!Ue(ke,
|
|
2101
|
+
if (!Ue(ke, Wt(M, he, ""))) {
|
|
2102
2102
|
if (!((T === "src" || T === "xlink:href" || T === "href") && h !== "script" && kc(M, "data:") === 0 && fo[h])) {
|
|
2103
|
-
if (!(k && !Ue(de,
|
|
2103
|
+
if (!(k && !Ue(de, Wt(M, he, "")))) {
|
|
2104
2104
|
if (M)
|
|
2105
2105
|
return !1;
|
|
2106
2106
|
}
|
|
@@ -2123,7 +2123,7 @@ function ms() {
|
|
|
2123
2123
|
attrName: "",
|
|
2124
2124
|
attrValue: "",
|
|
2125
2125
|
keepAttr: !0,
|
|
2126
|
-
allowedAttributes:
|
|
2126
|
+
allowedAttributes: u
|
|
2127
2127
|
};
|
|
2128
2128
|
let le = T.length;
|
|
2129
2129
|
for (; le--; ) {
|
|
@@ -2131,21 +2131,21 @@ function ms() {
|
|
|
2131
2131
|
name: _e,
|
|
2132
2132
|
namespaceURI: Fe,
|
|
2133
2133
|
value: yt
|
|
2134
|
-
} = Ae,
|
|
2134
|
+
} = Ae, Vt = ve(_e);
|
|
2135
2135
|
let $e = _e === "value" ? yt : Tc(yt);
|
|
2136
|
-
if (M.attrName =
|
|
2136
|
+
if (M.attrName = Vt, M.attrValue = $e, M.keepAttr = !0, M.forceKeepAttr = void 0, st("uponSanitizeAttribute", h, M), $e = M.attrValue, M.forceKeepAttr || (Qn(_e, h), !M.keepAttr))
|
|
2137
2137
|
continue;
|
|
2138
2138
|
if (!N && Ue(/\/>/i, $e)) {
|
|
2139
2139
|
Qn(_e, h);
|
|
2140
2140
|
continue;
|
|
2141
2141
|
}
|
|
2142
2142
|
D && _n([P, q, E], (ko) => {
|
|
2143
|
-
$e =
|
|
2143
|
+
$e = Wt($e, ko, " ");
|
|
2144
2144
|
});
|
|
2145
2145
|
const Io = ve(h.nodeName);
|
|
2146
|
-
if (Eo(Io,
|
|
2147
|
-
if (uo && (
|
|
2148
|
-
switch (b.getAttributeType(Io,
|
|
2146
|
+
if (Eo(Io, Vt, $e)) {
|
|
2147
|
+
if (uo && (Vt === "id" || Vt === "name") && (Qn(_e, h), $e = Ys + $e), V && typeof b == "object" && typeof b.getAttributeType == "function" && !Fe)
|
|
2148
|
+
switch (b.getAttributeType(Io, Vt)) {
|
|
2149
2149
|
case "TrustedHTML": {
|
|
2150
2150
|
$e = V.createHTML($e);
|
|
2151
2151
|
break;
|
|
@@ -2174,16 +2174,16 @@ function ms() {
|
|
|
2174
2174
|
if (Yn = !U, Yn && (U = "<!-->"), typeof U != "string" && !Ao(U))
|
|
2175
2175
|
if (typeof U.toString == "function") {
|
|
2176
2176
|
if (U = U.toString(), typeof U != "string")
|
|
2177
|
-
throw
|
|
2177
|
+
throw zt("dirty is not a string, aborting");
|
|
2178
2178
|
} else
|
|
2179
|
-
throw
|
|
2179
|
+
throw zt("toString is not a function");
|
|
2180
2180
|
if (!e.isSupported)
|
|
2181
2181
|
return U;
|
|
2182
|
-
if (ne || Zn(h), e.removed = [], typeof U == "string" && (
|
|
2182
|
+
if (ne || Zn(h), e.removed = [], typeof U == "string" && (Ht = !1), Ht) {
|
|
2183
2183
|
if (U.nodeName) {
|
|
2184
2184
|
const yt = ve(U.nodeName);
|
|
2185
2185
|
if (!K[yt] || I[yt])
|
|
2186
|
-
throw
|
|
2186
|
+
throw zt("root node is forbidden and cannot be sanitized in-place");
|
|
2187
2187
|
}
|
|
2188
2188
|
} else if (U instanceof l)
|
|
2189
2189
|
T = wo("<!---->"), M = T.ownerDocument.importNode(U, !0), M.nodeType === 1 && M.nodeName === "BODY" || M.nodeName === "HTML" ? T = M : T.appendChild(M);
|
|
@@ -2195,10 +2195,10 @@ function ms() {
|
|
|
2195
2195
|
return Te ? null : et ? ye : "";
|
|
2196
2196
|
}
|
|
2197
2197
|
T && Re && gt(T.firstChild);
|
|
2198
|
-
const _e = So(
|
|
2198
|
+
const _e = So(Ht ? U : T);
|
|
2199
2199
|
for (; le = _e.nextNode(); )
|
|
2200
2200
|
_o(le) || (le.content instanceof i && oa(le.content), xo(le));
|
|
2201
|
-
if (
|
|
2201
|
+
if (Ht)
|
|
2202
2202
|
return U;
|
|
2203
2203
|
if (Te) {
|
|
2204
2204
|
if (we)
|
|
@@ -2206,12 +2206,12 @@ function ms() {
|
|
|
2206
2206
|
Ae.appendChild(T.firstChild);
|
|
2207
2207
|
else
|
|
2208
2208
|
Ae = T;
|
|
2209
|
-
return (
|
|
2209
|
+
return (u.shadowroot || u.shadowrootmode) && (Ae = R.call(r, Ae, !0)), Ae;
|
|
2210
2210
|
}
|
|
2211
2211
|
let Fe = W ? T.outerHTML : T.innerHTML;
|
|
2212
2212
|
return W && K["!doctype"] && T.ownerDocument && T.ownerDocument.doctype && T.ownerDocument.doctype.name && Ue(ps, T.ownerDocument.doctype.name) && (Fe = "<!DOCTYPE " + T.ownerDocument.doctype.name + `>
|
|
2213
2213
|
` + Fe), D && _n([P, q, E], (yt) => {
|
|
2214
|
-
Fe =
|
|
2214
|
+
Fe = Wt(Fe, yt, " ");
|
|
2215
2215
|
}), V && et ? V.createHTML(Fe) : Fe;
|
|
2216
2216
|
}, e.setConfig = function() {
|
|
2217
2217
|
let U = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
@@ -2223,7 +2223,7 @@ function ms() {
|
|
|
2223
2223
|
const M = ve(U), le = ve(h);
|
|
2224
2224
|
return Eo(M, le, T);
|
|
2225
2225
|
}, e.addHook = function(U, h) {
|
|
2226
|
-
typeof h == "function" && (L[U] = L[U] || [],
|
|
2226
|
+
typeof h == "function" && (L[U] = L[U] || [], Kt(L[U], h));
|
|
2227
2227
|
}, e.removeHook = function(U) {
|
|
2228
2228
|
if (L[U])
|
|
2229
2229
|
return Vo(L[U]);
|
|
@@ -2236,7 +2236,7 @@ function ms() {
|
|
|
2236
2236
|
var gs = ms();
|
|
2237
2237
|
class ys {
|
|
2238
2238
|
get IsVisible() {
|
|
2239
|
-
return
|
|
2239
|
+
return Ft.isVisible();
|
|
2240
2240
|
}
|
|
2241
2241
|
}
|
|
2242
2242
|
class Vc extends ys {
|
|
@@ -2246,7 +2246,7 @@ class Vc extends ys {
|
|
|
2246
2246
|
async CreateAlertAsync(e) {
|
|
2247
2247
|
let n = "info", r, o;
|
|
2248
2248
|
return typeof e == "string" || Array.isArray(e) ? r = Array.isArray(e) ? e.join("<br />") : e : (n = e.icon ?? "info", o = e.title ?? "", r = Array.isArray(e.text) ? e.text.join("<br />") : e.text), new Promise((i) => {
|
|
2249
|
-
|
|
2249
|
+
Ft.fire({
|
|
2250
2250
|
allowEscapeKey: !1,
|
|
2251
2251
|
allowOutsideClick: !1,
|
|
2252
2252
|
icon: n,
|
|
@@ -2279,7 +2279,7 @@ class Vc extends ys {
|
|
|
2279
2279
|
class Kc extends ys {
|
|
2280
2280
|
async CreateConfirmAsync(e) {
|
|
2281
2281
|
return new Promise((n) => {
|
|
2282
|
-
|
|
2282
|
+
Ft.fire({
|
|
2283
2283
|
showCancelButton: !0,
|
|
2284
2284
|
allowEscapeKey: !1,
|
|
2285
2285
|
allowOutsideClick: !1,
|
|
@@ -2311,20 +2311,20 @@ const Gp = () => new Vc(), Wc = () => new Kc(), zc = ["data-cor"], qc = { class:
|
|
|
2311
2311
|
}) && o("logout");
|
|
2312
2312
|
}
|
|
2313
2313
|
function s() {
|
|
2314
|
-
const
|
|
2314
|
+
const c = sessionStorage.getItem("name");
|
|
2315
2315
|
let d = "?";
|
|
2316
|
-
if (!
|
|
2316
|
+
if (!c)
|
|
2317
2317
|
return d;
|
|
2318
|
-
const f =
|
|
2318
|
+
const f = c.split(" ").filter((b) => b.length > 0).map((b) => b[0].toUpperCase()), y = Math.min(2, f.length);
|
|
2319
2319
|
return d = f.slice(0, y).join(""), d.length > 0 ? d : "?";
|
|
2320
2320
|
}
|
|
2321
|
-
const l =
|
|
2322
|
-
const
|
|
2321
|
+
const l = Lt(() => {
|
|
2322
|
+
const c = r.value[0], d = c === "?" ? 0 : (c.charCodeAt(0) - 64) % 19;
|
|
2323
2323
|
return Math.max(d, 0);
|
|
2324
2324
|
}), a = Ne(!1);
|
|
2325
2325
|
return dn(() => {
|
|
2326
2326
|
r.value = s();
|
|
2327
|
-
}), (
|
|
2327
|
+
}), (c, d) => (H(), te(ht, null, [
|
|
2328
2328
|
z("div", {
|
|
2329
2329
|
id: "sf-header-avatar",
|
|
2330
2330
|
"data-cor": l.value,
|
|
@@ -2475,16 +2475,16 @@ const kr = new td(), nd = /* @__PURE__ */ ua('<svg xmlns="http://www.w3.org/2000
|
|
|
2475
2475
|
i(), l && l.clientWidth + 10 > document.body.clientWidth && n.Close();
|
|
2476
2476
|
}
|
|
2477
2477
|
return (o, i) => {
|
|
2478
|
-
const s =
|
|
2478
|
+
const s = Dt("router-link");
|
|
2479
2479
|
return H(), pe(s, {
|
|
2480
2480
|
to: e.href,
|
|
2481
2481
|
custom: ""
|
|
2482
2482
|
}, {
|
|
2483
|
-
default: qe(({ href: l, navigate: a, isExactActive:
|
|
2483
|
+
default: qe(({ href: l, navigate: a, isExactActive: c, isActive: d }) => [
|
|
2484
2484
|
z("a", {
|
|
2485
2485
|
class: "sf-navmenulink",
|
|
2486
2486
|
href: l,
|
|
2487
|
-
"data-active": e.exact ?
|
|
2487
|
+
"data-active": e.exact ? c : d,
|
|
2488
2488
|
onClick: (f) => r(f, a)
|
|
2489
2489
|
}, [
|
|
2490
2490
|
e.icon ? (H(), pe(wt, {
|
|
@@ -2604,8 +2604,8 @@ const kr = new td(), nd = /* @__PURE__ */ ua('<svg xmlns="http://www.w3.org/2000
|
|
|
2604
2604
|
l();
|
|
2605
2605
|
}), o = Ne(!1), i = Ne(!1);
|
|
2606
2606
|
function s(a = !1) {
|
|
2607
|
-
const
|
|
2608
|
-
n.value.scrollLeft += a ? -
|
|
2607
|
+
const c = n.value.clientWidth;
|
|
2608
|
+
n.value.scrollLeft += a ? -c : c;
|
|
2609
2609
|
}
|
|
2610
2610
|
function l() {
|
|
2611
2611
|
const a = n.value.scrollWidth - n.value.clientWidth;
|
|
@@ -2622,12 +2622,12 @@ const kr = new td(), nd = /* @__PURE__ */ ua('<svg xmlns="http://www.w3.org/2000
|
|
|
2622
2622
|
), r.unobserve(n.value), r.disconnect();
|
|
2623
2623
|
} catch {
|
|
2624
2624
|
}
|
|
2625
|
-
}), (a,
|
|
2626
|
-
const d =
|
|
2625
|
+
}), (a, c) => {
|
|
2626
|
+
const d = Dt("RouterLink");
|
|
2627
2627
|
return H(), te("div", md, [
|
|
2628
2628
|
z("div", {
|
|
2629
2629
|
class: me(["left-arrow", { active: o.value }]),
|
|
2630
|
-
onClick:
|
|
2630
|
+
onClick: c[0] || (c[0] = (f) => s(!0))
|
|
2631
2631
|
}, yd, 2),
|
|
2632
2632
|
z("ul", {
|
|
2633
2633
|
ref_key: "trackerContainer",
|
|
@@ -2657,7 +2657,7 @@ const kr = new td(), nd = /* @__PURE__ */ ua('<svg xmlns="http://www.w3.org/2000
|
|
|
2657
2657
|
], 512),
|
|
2658
2658
|
z("div", {
|
|
2659
2659
|
class: me(["right-arrow", { active: i.value }]),
|
|
2660
|
-
onClick:
|
|
2660
|
+
onClick: c[1] || (c[1] = (f) => s())
|
|
2661
2661
|
}, Sd, 2)
|
|
2662
2662
|
]);
|
|
2663
2663
|
};
|
|
@@ -2671,7 +2671,7 @@ const kr = new td(), nd = /* @__PURE__ */ ua('<svg xmlns="http://www.w3.org/2000
|
|
|
2671
2671
|
icon: {}
|
|
2672
2672
|
},
|
|
2673
2673
|
setup(t) {
|
|
2674
|
-
const e = t, n =
|
|
2674
|
+
const e = t, n = Lt(() => {
|
|
2675
2675
|
if (e.icon)
|
|
2676
2676
|
return e.icon;
|
|
2677
2677
|
switch (e.color) {
|
|
@@ -2688,7 +2688,7 @@ const kr = new td(), nd = /* @__PURE__ */ ua('<svg xmlns="http://www.w3.org/2000
|
|
|
2688
2688
|
default:
|
|
2689
2689
|
return null;
|
|
2690
2690
|
}
|
|
2691
|
-
}), r =
|
|
2691
|
+
}), r = Lt(() => new dt("sf-message").AddClass("sf-message-error", e.color === "error").AddClass("sf-message-info", e.color === "info").AddClass("sf-message-warning", e.color === "warn").AddClass("sf-message-success", e.color === "success").AddClass("sf-message-help", e.color === "help").AddClass("sf-message-primary", e.color === "primary").AddClass("sf-message-secondary", e.color === "secondary").AddClass(e.class).Build());
|
|
2692
2692
|
return (o, i) => (H(), te("div", {
|
|
2693
2693
|
class: me(r.value),
|
|
2694
2694
|
"data-icon": n.value
|
|
@@ -2732,8 +2732,8 @@ function lr(t, e) {
|
|
|
2732
2732
|
};
|
|
2733
2733
|
return { s: o, n: function() {
|
|
2734
2734
|
return r >= t.length ? { done: !0 } : { done: !1, value: t[r++] };
|
|
2735
|
-
}, e: function(
|
|
2736
|
-
throw
|
|
2735
|
+
}, e: function(c) {
|
|
2736
|
+
throw c;
|
|
2737
2737
|
}, f: o };
|
|
2738
2738
|
}
|
|
2739
2739
|
throw new TypeError(`Invalid attempt to iterate non-iterable instance.
|
|
@@ -2743,10 +2743,10 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
2743
2743
|
return { s: function() {
|
|
2744
2744
|
n = n.call(t);
|
|
2745
2745
|
}, n: function() {
|
|
2746
|
-
var
|
|
2747
|
-
return i =
|
|
2748
|
-
}, e: function(
|
|
2749
|
-
s = !0, l =
|
|
2746
|
+
var c = n.next();
|
|
2747
|
+
return i = c.done, c;
|
|
2748
|
+
}, e: function(c) {
|
|
2749
|
+
s = !0, l = c;
|
|
2750
2750
|
}, f: function() {
|
|
2751
2751
|
try {
|
|
2752
2752
|
!i && n.return != null && n.return();
|
|
@@ -2771,13 +2771,13 @@ function kd(t) {
|
|
|
2771
2771
|
if (Array.isArray(t))
|
|
2772
2772
|
return Tr(t);
|
|
2773
2773
|
}
|
|
2774
|
-
function
|
|
2774
|
+
function Xt(t) {
|
|
2775
2775
|
"@babel/helpers - typeof";
|
|
2776
|
-
return
|
|
2776
|
+
return Xt = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(e) {
|
|
2777
2777
|
return typeof e;
|
|
2778
2778
|
} : function(e) {
|
|
2779
2779
|
return e && typeof Symbol == "function" && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
|
|
2780
|
-
},
|
|
2780
|
+
}, Xt(t);
|
|
2781
2781
|
}
|
|
2782
2782
|
function ur(t, e) {
|
|
2783
2783
|
return Od(t) || Pd(t, e) || Zr(t, e) || Td();
|
|
@@ -2806,7 +2806,7 @@ function Tr(t, e) {
|
|
|
2806
2806
|
function Pd(t, e) {
|
|
2807
2807
|
var n = t == null ? null : typeof Symbol < "u" && t[Symbol.iterator] || t["@@iterator"];
|
|
2808
2808
|
if (n != null) {
|
|
2809
|
-
var r, o, i, s, l = [], a = !0,
|
|
2809
|
+
var r, o, i, s, l = [], a = !0, c = !1;
|
|
2810
2810
|
try {
|
|
2811
2811
|
if (i = (n = n.call(t)).next, e === 0) {
|
|
2812
2812
|
if (Object(n) !== n)
|
|
@@ -2816,13 +2816,13 @@ function Pd(t, e) {
|
|
|
2816
2816
|
for (; !(a = (r = i.call(n)).done) && (l.push(r.value), l.length !== e); a = !0)
|
|
2817
2817
|
;
|
|
2818
2818
|
} catch (d) {
|
|
2819
|
-
|
|
2819
|
+
c = !0, o = d;
|
|
2820
2820
|
} finally {
|
|
2821
2821
|
try {
|
|
2822
2822
|
if (!a && n.return != null && (s = n.return(), Object(s) !== s))
|
|
2823
2823
|
return;
|
|
2824
2824
|
} finally {
|
|
2825
|
-
if (
|
|
2825
|
+
if (c)
|
|
2826
2826
|
throw o;
|
|
2827
2827
|
}
|
|
2828
2828
|
}
|
|
@@ -2974,10 +2974,10 @@ var Q = {
|
|
|
2974
2974
|
var n = this, r = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
|
|
2975
2975
|
if (this.isElement(e)) {
|
|
2976
2976
|
var o = function i(s, l) {
|
|
2977
|
-
var a,
|
|
2977
|
+
var a, c, d = e != null && (a = e.$attrs) !== null && a !== void 0 && a[s] ? [e == null || (c = e.$attrs) === null || c === void 0 ? void 0 : c[s]] : [];
|
|
2978
2978
|
return [l].flat().reduce(function(f, y) {
|
|
2979
2979
|
if (y != null) {
|
|
2980
|
-
var b =
|
|
2980
|
+
var b = Xt(y);
|
|
2981
2981
|
if (b === "string" || b === "number")
|
|
2982
2982
|
f.push(y);
|
|
2983
2983
|
else if (b === "object") {
|
|
@@ -2996,8 +2996,8 @@ var Q = {
|
|
|
2996
2996
|
Object.entries(r).forEach(function(i) {
|
|
2997
2997
|
var s = ur(i, 2), l = s[0], a = s[1];
|
|
2998
2998
|
if (a != null) {
|
|
2999
|
-
var
|
|
3000
|
-
|
|
2999
|
+
var c = l.match(/^on(.+)/);
|
|
3000
|
+
c ? e.addEventListener(c[1].toLowerCase(), a) : l === "p-bind" ? n.setAttributes(e, a) : (a = l === "class" ? Cd(new Set(o("class", a))).join(" ").trim() : l === "style" ? o("style", a).join(";").trim() : a, (e.$attrs = e.$attrs || {}) && (e.$attrs[l] = a), e.setAttribute(l, a));
|
|
3001
3001
|
}
|
|
3002
3002
|
});
|
|
3003
3003
|
}
|
|
@@ -3034,8 +3034,8 @@ var Q = {
|
|
|
3034
3034
|
var o = e.offsetParent ? {
|
|
3035
3035
|
width: e.offsetWidth,
|
|
3036
3036
|
height: e.offsetHeight
|
|
3037
|
-
} : this.getHiddenElementDimensions(e), i = o.height, s = o.width, l = n.offsetHeight, a = n.offsetWidth,
|
|
3038
|
-
|
|
3037
|
+
} : this.getHiddenElementDimensions(e), i = o.height, s = o.width, l = n.offsetHeight, a = n.offsetWidth, c = n.getBoundingClientRect(), d = this.getWindowScrollTop(), f = this.getWindowScrollLeft(), y = this.getViewport(), b, _, x = "top";
|
|
3038
|
+
c.top + l + i > y.height ? (b = c.top + d - i, x = "bottom", b < 0 && (b = d)) : b = l + c.top + d, c.left + s > y.width ? _ = Math.max(0, c.left + f + a - s) : _ = c.left + f, e.style.top = b + "px", e.style.left = _ + "px", e.style.transformOrigin = x, r && (e.style.marginTop = x === "bottom" ? "calc(var(--p-anchor-gutter) * -1)" : "calc(var(--p-anchor-gutter))");
|
|
3039
3039
|
}
|
|
3040
3040
|
},
|
|
3041
3041
|
relativePosition: function(e, n) {
|
|
@@ -3044,8 +3044,8 @@ var Q = {
|
|
|
3044
3044
|
var o = e.offsetParent ? {
|
|
3045
3045
|
width: e.offsetWidth,
|
|
3046
3046
|
height: e.offsetHeight
|
|
3047
|
-
} : this.getHiddenElementDimensions(e), i = n.offsetHeight, s = n.getBoundingClientRect(), l = this.getViewport(), a,
|
|
3048
|
-
s.top + i + o.height > l.height ? (a = -1 * o.height, d = "bottom", s.top + a < 0 && (a = -1 * s.top)) : a = i, o.width > l.width ?
|
|
3047
|
+
} : this.getHiddenElementDimensions(e), i = n.offsetHeight, s = n.getBoundingClientRect(), l = this.getViewport(), a, c, d = "top";
|
|
3048
|
+
s.top + i + o.height > l.height ? (a = -1 * o.height, d = "bottom", s.top + a < 0 && (a = -1 * s.top)) : a = i, o.width > l.width ? c = s.left * -1 : s.left + o.width > l.width ? c = (s.left + o.width - l.width) * -1 : c = 0, e.style.top = a + "px", e.style.left = c + "px", e.style.transformOrigin = d, r && (e.style.marginTop = d === "bottom" ? "calc(var(--p-anchor-gutter) * -1)" : "calc(var(--p-anchor-gutter))");
|
|
3049
3049
|
}
|
|
3050
3050
|
},
|
|
3051
3051
|
nestedPosition: function(e, n) {
|
|
@@ -3075,9 +3075,9 @@ var Q = {
|
|
|
3075
3075
|
}, s = lr(r), l;
|
|
3076
3076
|
try {
|
|
3077
3077
|
for (s.s(); !(l = s.n()).done; ) {
|
|
3078
|
-
var a = l.value,
|
|
3079
|
-
if (
|
|
3080
|
-
var d =
|
|
3078
|
+
var a = l.value, c = a.nodeType === 1 && a.dataset.scrollselectors;
|
|
3079
|
+
if (c) {
|
|
3080
|
+
var d = c.split(","), f = lr(d), y;
|
|
3081
3081
|
try {
|
|
3082
3082
|
for (f.s(); !(y = f.n()).done; ) {
|
|
3083
3083
|
var b = y.value, _ = this.findSingle(a, b);
|
|
@@ -3149,11 +3149,11 @@ var Q = {
|
|
|
3149
3149
|
throw new Error("Cannot append " + n + " to " + e);
|
|
3150
3150
|
},
|
|
3151
3151
|
isElement: function(e) {
|
|
3152
|
-
return (typeof HTMLElement > "u" ? "undefined" :
|
|
3152
|
+
return (typeof HTMLElement > "u" ? "undefined" : Xt(HTMLElement)) === "object" ? e instanceof HTMLElement : e && Xt(e) === "object" && e !== null && e.nodeType === 1 && typeof e.nodeName == "string";
|
|
3153
3153
|
},
|
|
3154
3154
|
scrollInView: function(e, n) {
|
|
3155
|
-
var r = getComputedStyle(e).getPropertyValue("borderTopWidth"), o = r ? parseFloat(r) : 0, i = getComputedStyle(e).getPropertyValue("paddingTop"), s = i ? parseFloat(i) : 0, l = e.getBoundingClientRect(), a = n.getBoundingClientRect(),
|
|
3156
|
-
|
|
3155
|
+
var r = getComputedStyle(e).getPropertyValue("borderTopWidth"), o = r ? parseFloat(r) : 0, i = getComputedStyle(e).getPropertyValue("paddingTop"), s = i ? parseFloat(i) : 0, l = e.getBoundingClientRect(), a = n.getBoundingClientRect(), c = a.top + document.body.scrollTop - (l.top + document.body.scrollTop) - o - s, d = e.scrollTop, f = e.clientHeight, y = this.getOuterHeight(n);
|
|
3156
|
+
c < 0 ? e.scrollTop = d + c : c + y > f && (e.scrollTop = d + c - f + y);
|
|
3157
3157
|
},
|
|
3158
3158
|
clearSelection: function() {
|
|
3159
3159
|
if (window.getSelection)
|
|
@@ -3340,7 +3340,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
3340
3340
|
function Rd(t, e) {
|
|
3341
3341
|
var n = t == null ? null : typeof Symbol < "u" && t[Symbol.iterator] || t["@@iterator"];
|
|
3342
3342
|
if (n != null) {
|
|
3343
|
-
var r, o, i, s, l = [], a = !0,
|
|
3343
|
+
var r, o, i, s, l = [], a = !0, c = !1;
|
|
3344
3344
|
try {
|
|
3345
3345
|
if (i = (n = n.call(t)).next, e === 0) {
|
|
3346
3346
|
if (Object(n) !== n)
|
|
@@ -3350,13 +3350,13 @@ function Rd(t, e) {
|
|
|
3350
3350
|
for (; !(a = (r = i.call(n)).done) && (l.push(r.value), l.length !== e); a = !0)
|
|
3351
3351
|
;
|
|
3352
3352
|
} catch (d) {
|
|
3353
|
-
|
|
3353
|
+
c = !0, o = d;
|
|
3354
3354
|
} finally {
|
|
3355
3355
|
try {
|
|
3356
3356
|
if (!a && n.return != null && (s = n.return(), Object(s) !== s))
|
|
3357
3357
|
return;
|
|
3358
3358
|
} finally {
|
|
3359
|
-
if (
|
|
3359
|
+
if (c)
|
|
3360
3360
|
throw o;
|
|
3361
3361
|
}
|
|
3362
3362
|
}
|
|
@@ -3391,8 +3391,8 @@ function cr(t, e) {
|
|
|
3391
3391
|
};
|
|
3392
3392
|
return { s: o, n: function() {
|
|
3393
3393
|
return r >= t.length ? { done: !0 } : { done: !1, value: t[r++] };
|
|
3394
|
-
}, e: function(
|
|
3395
|
-
throw
|
|
3394
|
+
}, e: function(c) {
|
|
3395
|
+
throw c;
|
|
3396
3396
|
}, f: o };
|
|
3397
3397
|
}
|
|
3398
3398
|
throw new TypeError(`Invalid attempt to iterate non-iterable instance.
|
|
@@ -3402,10 +3402,10 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
3402
3402
|
return { s: function() {
|
|
3403
3403
|
n = n.call(t);
|
|
3404
3404
|
}, n: function() {
|
|
3405
|
-
var
|
|
3406
|
-
return i =
|
|
3407
|
-
}, e: function(
|
|
3408
|
-
s = !0, l =
|
|
3405
|
+
var c = n.next();
|
|
3406
|
+
return i = c.done, c;
|
|
3407
|
+
}, e: function(c) {
|
|
3408
|
+
s = !0, l = c;
|
|
3409
3409
|
}, f: function() {
|
|
3410
3410
|
try {
|
|
3411
3411
|
!i && n.return != null && n.return();
|
|
@@ -3432,13 +3432,13 @@ function Pr(t, e) {
|
|
|
3432
3432
|
r[n] = t[n];
|
|
3433
3433
|
return r;
|
|
3434
3434
|
}
|
|
3435
|
-
function
|
|
3435
|
+
function Zt(t) {
|
|
3436
3436
|
"@babel/helpers - typeof";
|
|
3437
|
-
return
|
|
3437
|
+
return Zt = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(e) {
|
|
3438
3438
|
return typeof e;
|
|
3439
3439
|
} : function(e) {
|
|
3440
3440
|
return e && typeof Symbol == "function" && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
|
|
3441
|
-
},
|
|
3441
|
+
}, Zt(t);
|
|
3442
3442
|
}
|
|
3443
3443
|
var B = {
|
|
3444
3444
|
equals: function(e, n, r) {
|
|
@@ -3447,7 +3447,7 @@ var B = {
|
|
|
3447
3447
|
deepEquals: function(e, n) {
|
|
3448
3448
|
if (e === n)
|
|
3449
3449
|
return !0;
|
|
3450
|
-
if (e && n &&
|
|
3450
|
+
if (e && n && Zt(e) == "object" && Zt(n) == "object") {
|
|
3451
3451
|
var r = Array.isArray(e), o = Array.isArray(n), i, s, l;
|
|
3452
3452
|
if (r && o) {
|
|
3453
3453
|
if (s = e.length, s != n.length)
|
|
@@ -3459,10 +3459,10 @@ var B = {
|
|
|
3459
3459
|
}
|
|
3460
3460
|
if (r != o)
|
|
3461
3461
|
return !1;
|
|
3462
|
-
var a = e instanceof Date,
|
|
3463
|
-
if (a !=
|
|
3462
|
+
var a = e instanceof Date, c = n instanceof Date;
|
|
3463
|
+
if (a != c)
|
|
3464
3464
|
return !1;
|
|
3465
|
-
if (a &&
|
|
3465
|
+
if (a && c)
|
|
3466
3466
|
return e.getTime() == n.getTime();
|
|
3467
3467
|
var d = e instanceof RegExp, f = n instanceof RegExp;
|
|
3468
3468
|
if (d != f)
|
|
@@ -3516,10 +3516,10 @@ var B = {
|
|
|
3516
3516
|
var i = cr(e), s;
|
|
3517
3517
|
try {
|
|
3518
3518
|
for (i.s(); !(s = i.n()).done; ) {
|
|
3519
|
-
var l = s.value, a = cr(n),
|
|
3519
|
+
var l = s.value, a = cr(n), c;
|
|
3520
3520
|
try {
|
|
3521
|
-
for (a.s(); !(
|
|
3522
|
-
var d =
|
|
3521
|
+
for (a.s(); !(c = a.n()).done; ) {
|
|
3522
|
+
var d = c.value;
|
|
3523
3523
|
if (String(this.resolveFieldData(l, d)).toLowerCase().indexOf(r.toLowerCase()) > -1) {
|
|
3524
3524
|
o.push(l);
|
|
3525
3525
|
break;
|
|
@@ -3610,7 +3610,7 @@ var B = {
|
|
|
3610
3610
|
}) ? e[0].toUpperCase() + e.slice(1) : e;
|
|
3611
3611
|
},
|
|
3612
3612
|
isEmpty: function(e) {
|
|
3613
|
-
return e == null || e === "" || Array.isArray(e) && e.length === 0 || !(e instanceof Date) &&
|
|
3613
|
+
return e == null || e === "" || Array.isArray(e) && e.length === 0 || !(e instanceof Date) && Zt(e) === "object" && Object.keys(e).length === 0;
|
|
3614
3614
|
},
|
|
3615
3615
|
isNotEmpty: function(e) {
|
|
3616
3616
|
return !this.isEmpty(e);
|
|
@@ -3681,8 +3681,8 @@ var B = {
|
|
|
3681
3681
|
nestedKeys: function() {
|
|
3682
3682
|
var e = this, n = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, r = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : "";
|
|
3683
3683
|
return Object.entries(n).reduce(function(o, i) {
|
|
3684
|
-
var s = Zo(i, 2), l = s[0], a = s[1],
|
|
3685
|
-
return e.isObject(a) ? o = o.concat(e.nestedKeys(a,
|
|
3684
|
+
var s = Zo(i, 2), l = s[0], a = s[1], c = r ? "".concat(r, ".").concat(l) : l;
|
|
3685
|
+
return e.isObject(a) ? o = o.concat(e.nestedKeys(a, c)) : o.push(c), o;
|
|
3686
3686
|
}, []);
|
|
3687
3687
|
},
|
|
3688
3688
|
stringify: function(e) {
|
|
@@ -3691,8 +3691,8 @@ var B = {
|
|
|
3691
3691
|
return n.stringify(l, r, o + r);
|
|
3692
3692
|
}).join(", ") + "]" : this.isDate(e) ? e.toISOString() : this.isFunction(e) ? e.toString() : this.isObject(e) ? `{
|
|
3693
3693
|
` + Object.entries(e).map(function(l) {
|
|
3694
|
-
var a = Zo(l, 2),
|
|
3695
|
-
return "".concat(s).concat(
|
|
3694
|
+
var a = Zo(l, 2), c = a[0], d = a[1];
|
|
3695
|
+
return "".concat(s).concat(c, ": ").concat(n.stringify(d, r, o + r));
|
|
3696
3696
|
}).join(`,
|
|
3697
3697
|
`) + `
|
|
3698
3698
|
`.concat(i) + "}" : JSON.stringify(e);
|
|
@@ -3756,7 +3756,7 @@ function Hd(t) {
|
|
|
3756
3756
|
}
|
|
3757
3757
|
var jd = 0;
|
|
3758
3758
|
function vs(t) {
|
|
3759
|
-
var e = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, n = Ne(!1), r = Ne(t), o = Ne(null), i = Q.isClient() ? window.document : void 0, s = e.document, l = s === void 0 ? i : s, a = e.immediate,
|
|
3759
|
+
var e = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, n = Ne(!1), r = Ne(t), o = Ne(null), i = Q.isClient() ? window.document : void 0, s = e.document, l = s === void 0 ? i : s, a = e.immediate, c = a === void 0 ? !0 : a, d = e.manual, f = d === void 0 ? !1 : d, y = e.name, b = y === void 0 ? "style_".concat(++jd) : y, _ = e.id, x = _ === void 0 ? void 0 : _, A = e.media, $ = A === void 0 ? void 0 : A, G = e.nonce, V = G === void 0 ? void 0 : G, ye = e.props, fe = ye === void 0 ? {} : ye, g = function() {
|
|
3760
3760
|
}, O = function(L) {
|
|
3761
3761
|
var P = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
|
|
3762
3762
|
if (l) {
|
|
@@ -3775,7 +3775,7 @@ function vs(t) {
|
|
|
3775
3775
|
}, j = function() {
|
|
3776
3776
|
!l || !n.value || (g(), Q.isExist(o.value) && l.head.removeChild(o.value), n.value = !1);
|
|
3777
3777
|
};
|
|
3778
|
-
return
|
|
3778
|
+
return c && !f && Hd(O), {
|
|
3779
3779
|
id: x,
|
|
3780
3780
|
name: b,
|
|
3781
3781
|
css: r,
|
|
@@ -3819,7 +3819,7 @@ function oi(t, e) {
|
|
|
3819
3819
|
function zd(t, e) {
|
|
3820
3820
|
var n = t == null ? null : typeof Symbol < "u" && t[Symbol.iterator] || t["@@iterator"];
|
|
3821
3821
|
if (n != null) {
|
|
3822
|
-
var r, o, i, s, l = [], a = !0,
|
|
3822
|
+
var r, o, i, s, l = [], a = !0, c = !1;
|
|
3823
3823
|
try {
|
|
3824
3824
|
if (i = (n = n.call(t)).next, e === 0) {
|
|
3825
3825
|
if (Object(n) !== n)
|
|
@@ -3829,13 +3829,13 @@ function zd(t, e) {
|
|
|
3829
3829
|
for (; !(a = (r = i.call(n)).done) && (l.push(r.value), l.length !== e); a = !0)
|
|
3830
3830
|
;
|
|
3831
3831
|
} catch (d) {
|
|
3832
|
-
|
|
3832
|
+
c = !0, o = d;
|
|
3833
3833
|
} finally {
|
|
3834
3834
|
try {
|
|
3835
3835
|
if (!a && n.return != null && (s = n.return(), Object(s) !== s))
|
|
3836
3836
|
return;
|
|
3837
3837
|
} finally {
|
|
3838
|
-
if (
|
|
3838
|
+
if (c)
|
|
3839
3839
|
throw o;
|
|
3840
3840
|
}
|
|
3841
3841
|
}
|
|
@@ -4034,7 +4034,7 @@ function ai(t, e) {
|
|
|
4034
4034
|
function af(t, e) {
|
|
4035
4035
|
var n = t == null ? null : typeof Symbol < "u" && t[Symbol.iterator] || t["@@iterator"];
|
|
4036
4036
|
if (n != null) {
|
|
4037
|
-
var r, o, i, s, l = [], a = !0,
|
|
4037
|
+
var r, o, i, s, l = [], a = !0, c = !1;
|
|
4038
4038
|
try {
|
|
4039
4039
|
if (i = (n = n.call(t)).next, e === 0) {
|
|
4040
4040
|
if (Object(n) !== n)
|
|
@@ -4044,13 +4044,13 @@ function af(t, e) {
|
|
|
4044
4044
|
for (; !(a = (r = i.call(n)).done) && (l.push(r.value), l.length !== e); a = !0)
|
|
4045
4045
|
;
|
|
4046
4046
|
} catch (d) {
|
|
4047
|
-
|
|
4047
|
+
c = !0, o = d;
|
|
4048
4048
|
} finally {
|
|
4049
4049
|
try {
|
|
4050
4050
|
if (!a && n.return != null && (s = n.return(), Object(s) !== s))
|
|
4051
4051
|
return;
|
|
4052
4052
|
} finally {
|
|
4053
|
-
if (
|
|
4053
|
+
if (c)
|
|
4054
4054
|
throw o;
|
|
4055
4055
|
}
|
|
4056
4056
|
}
|
|
@@ -4138,9 +4138,9 @@ var Hn = {
|
|
|
4138
4138
|
}
|
|
4139
4139
|
},
|
|
4140
4140
|
beforeCreate: function() {
|
|
4141
|
-
var e, n, r, o, i, s, l, a,
|
|
4141
|
+
var e, n, r, o, i, s, l, a, c, d, f, y = (e = this.pt) === null || e === void 0 ? void 0 : e._usept, b = y ? (n = this.pt) === null || n === void 0 || (n = n.originalValue) === null || n === void 0 ? void 0 : n[this.$.type.name] : void 0, _ = y ? (r = this.pt) === null || r === void 0 || (r = r.value) === null || r === void 0 ? void 0 : r[this.$.type.name] : this.pt;
|
|
4142
4142
|
(o = _ || b) === null || o === void 0 || (o = o.hooks) === null || o === void 0 || (i = o.onBeforeCreate) === null || i === void 0 || i.call(o);
|
|
4143
|
-
var x = (s = this.$config) === null || s === void 0 || (s = s.pt) === null || s === void 0 ? void 0 : s._usept, A = x ? (l = this.$primevue) === null || l === void 0 || (l = l.config) === null || l === void 0 || (l = l.pt) === null || l === void 0 ? void 0 : l.originalValue : void 0, $ = x ? (a = this.$primevue) === null || a === void 0 || (a = a.config) === null || a === void 0 || (a = a.pt) === null || a === void 0 ? void 0 : a.value : (
|
|
4143
|
+
var x = (s = this.$config) === null || s === void 0 || (s = s.pt) === null || s === void 0 ? void 0 : s._usept, A = x ? (l = this.$primevue) === null || l === void 0 || (l = l.config) === null || l === void 0 || (l = l.pt) === null || l === void 0 ? void 0 : l.originalValue : void 0, $ = x ? (a = this.$primevue) === null || a === void 0 || (a = a.config) === null || a === void 0 || (a = a.pt) === null || a === void 0 ? void 0 : a.value : (c = this.$primevue) === null || c === void 0 || (c = c.config) === null || c === void 0 ? void 0 : c.pt;
|
|
4144
4144
|
(d = $ || A) === null || d === void 0 || (d = d[this.$.type.name]) === null || d === void 0 || (d = d.hooks) === null || d === void 0 || (f = d.onBeforeCreate) === null || f === void 0 || f.call(d);
|
|
4145
4145
|
},
|
|
4146
4146
|
created: function() {
|
|
@@ -4199,10 +4199,10 @@ var Hn = {
|
|
|
4199
4199
|
}) || ""], r), o.join("."), r) : void 0 : B.getItemValue(e, r);
|
|
4200
4200
|
},
|
|
4201
4201
|
_getPTValue: function() {
|
|
4202
|
-
var e, n = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, r = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : "", o = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, i = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : !0, s = /./g.test(r) && !!o[r.split(".")[0]], l = this._getPropValue("ptOptions") || ((e = this.$config) === null || e === void 0 ? void 0 : e.ptOptions) || {}, a = l.mergeSections,
|
|
4202
|
+
var e, n = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, r = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : "", o = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, i = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : !0, s = /./g.test(r) && !!o[r.split(".")[0]], l = this._getPropValue("ptOptions") || ((e = this.$config) === null || e === void 0 ? void 0 : e.ptOptions) || {}, a = l.mergeSections, c = a === void 0 ? !0 : a, d = l.mergeProps, f = d === void 0 ? !1 : d, y = i ? s ? this._useGlobalPT(this._getPTClassValue, r, o) : this._useDefaultPT(this._getPTClassValue, r, o) : void 0, b = s ? void 0 : this._getPTSelf(n, this._getPTClassValue, r, ue(ue({}, o), {}, {
|
|
4203
4203
|
global: y || {}
|
|
4204
4204
|
})), _ = this._getPTDatasets(r);
|
|
4205
|
-
return
|
|
4205
|
+
return c || !c && b ? f ? this._mergeProps(f, y, b, _) : ue(ue(ue({}, y), b), _) : ue(ue({}, b), _);
|
|
4206
4206
|
},
|
|
4207
4207
|
_getPTSelf: function() {
|
|
4208
4208
|
for (var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, n = arguments.length, r = new Array(n > 1 ? n - 1 : 0), o = 1; o < n; o++)
|
|
@@ -4226,8 +4226,8 @@ var Hn = {
|
|
|
4226
4226
|
},
|
|
4227
4227
|
_getPT: function(e) {
|
|
4228
4228
|
var n = this, r = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : "", o = arguments.length > 2 ? arguments[2] : void 0, i = function(l) {
|
|
4229
|
-
var a,
|
|
4230
|
-
return (a =
|
|
4229
|
+
var a, c = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !1, d = o ? o(l) : l, f = B.toFlatCase(r), y = B.toFlatCase(n.$name);
|
|
4230
|
+
return (a = c ? f !== y ? d == null ? void 0 : d[f] : void 0 : d == null ? void 0 : d[f]) !== null && a !== void 0 ? a : d;
|
|
4231
4231
|
};
|
|
4232
4232
|
return e != null && e.hasOwnProperty("_usept") ? {
|
|
4233
4233
|
_usept: e._usept,
|
|
@@ -4240,8 +4240,8 @@ var Hn = {
|
|
|
4240
4240
|
return n(x, r, o);
|
|
4241
4241
|
};
|
|
4242
4242
|
if (e != null && e.hasOwnProperty("_usept")) {
|
|
4243
|
-
var s, l = e._usept || ((s = this.$config) === null || s === void 0 ? void 0 : s.ptOptions) || {}, a = l.mergeSections,
|
|
4244
|
-
return y === void 0 && b === void 0 ? void 0 : B.isString(b) ? b : B.isString(y) ? y :
|
|
4243
|
+
var s, l = e._usept || ((s = this.$config) === null || s === void 0 ? void 0 : s.ptOptions) || {}, a = l.mergeSections, c = a === void 0 ? !0 : a, d = l.mergeProps, f = d === void 0 ? !1 : d, y = i(e.originalValue), b = i(e.value);
|
|
4244
|
+
return y === void 0 && b === void 0 ? void 0 : B.isString(b) ? b : B.isString(y) ? y : c || !c && b ? f ? this._mergeProps(f, y, b) : ue(ue({}, y), b) : b;
|
|
4245
4245
|
}
|
|
4246
4246
|
return i(e);
|
|
4247
4247
|
},
|
|
@@ -4336,8 +4336,8 @@ var Hn = {
|
|
|
4336
4336
|
return r == null ? void 0 : r.startsWith("pt:");
|
|
4337
4337
|
}).reduce(function(e, n) {
|
|
4338
4338
|
var r = xn(n, 2), o = r[0], i = r[1], s = o.split(":"), l = of(s), a = l.slice(1);
|
|
4339
|
-
return a == null || a.reduce(function(
|
|
4340
|
-
return !
|
|
4339
|
+
return a == null || a.reduce(function(c, d, f, y) {
|
|
4340
|
+
return !c[d] && (c[d] = f === y.length - 1 ? i : {}), c[d];
|
|
4341
4341
|
}, e), e;
|
|
4342
4342
|
}, {});
|
|
4343
4343
|
},
|
|
@@ -4566,7 +4566,7 @@ function fi(t, e) {
|
|
|
4566
4566
|
function Cf(t, e) {
|
|
4567
4567
|
var n = t == null ? null : typeof Symbol < "u" && t[Symbol.iterator] || t["@@iterator"];
|
|
4568
4568
|
if (n != null) {
|
|
4569
|
-
var r, o, i, s, l = [], a = !0,
|
|
4569
|
+
var r, o, i, s, l = [], a = !0, c = !1;
|
|
4570
4570
|
try {
|
|
4571
4571
|
if (i = (n = n.call(t)).next, e === 0) {
|
|
4572
4572
|
if (Object(n) !== n)
|
|
@@ -4576,13 +4576,13 @@ function Cf(t, e) {
|
|
|
4576
4576
|
for (; !(a = (r = i.call(n)).done) && (l.push(r.value), l.length !== e); a = !0)
|
|
4577
4577
|
;
|
|
4578
4578
|
} catch (d) {
|
|
4579
|
-
|
|
4579
|
+
c = !0, o = d;
|
|
4580
4580
|
} finally {
|
|
4581
4581
|
try {
|
|
4582
4582
|
if (!a && n.return != null && (s = n.return(), Object(s) !== s))
|
|
4583
4583
|
return;
|
|
4584
4584
|
} finally {
|
|
4585
|
-
if (
|
|
4585
|
+
if (c)
|
|
4586
4586
|
throw o;
|
|
4587
4587
|
}
|
|
4588
4588
|
}
|
|
@@ -4653,7 +4653,7 @@ var ie = {
|
|
|
4653
4653
|
return B.isString(G) || B.isArray(G) ? {
|
|
4654
4654
|
class: G
|
|
4655
4655
|
} : G;
|
|
4656
|
-
},
|
|
4656
|
+
}, c = ((e = r.binding) === null || e === void 0 || (e = e.value) === null || e === void 0 ? void 0 : e.ptOptions) || ((n = r.$config) === null || n === void 0 ? void 0 : n.ptOptions) || {}, d = c.mergeSections, f = d === void 0 ? !0 : d, y = c.mergeProps, b = y === void 0 ? !1 : y, _ = l ? ie._useDefaultPT(r, r.defaultPT(), a, i, s) : void 0, x = ie._usePT(r, ie._getPT(o, r.$name), a, i, ce(ce({}, s), {}, {
|
|
4657
4657
|
global: _ || {}
|
|
4658
4658
|
})), A = ie._getPTDatasets(r, i);
|
|
4659
4659
|
return f || !f && x ? b ? ie._mergeProps(r, b, _, x, A) : ce(ce(ce({}, _), x), A) : ce(ce({}, x), A);
|
|
@@ -4664,8 +4664,8 @@ var ie = {
|
|
|
4664
4664
|
},
|
|
4665
4665
|
_getPT: function(e) {
|
|
4666
4666
|
var n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : "", r = arguments.length > 2 ? arguments[2] : void 0, o = function(s) {
|
|
4667
|
-
var l, a = r ? r(s) : s,
|
|
4668
|
-
return (l = a == null ? void 0 : a[
|
|
4667
|
+
var l, a = r ? r(s) : s, c = B.toFlatCase(n);
|
|
4668
|
+
return (l = a == null ? void 0 : a[c]) !== null && l !== void 0 ? l : a;
|
|
4669
4669
|
};
|
|
4670
4670
|
return e != null && e.hasOwnProperty("_usept") ? {
|
|
4671
4671
|
_usept: e._usept,
|
|
@@ -4678,7 +4678,7 @@ var ie = {
|
|
|
4678
4678
|
return r(A, o, i);
|
|
4679
4679
|
};
|
|
4680
4680
|
if (n != null && n.hasOwnProperty("_usept")) {
|
|
4681
|
-
var l, a = n._usept || ((l = e.$config) === null || l === void 0 ? void 0 : l.ptOptions) || {},
|
|
4681
|
+
var l, a = n._usept || ((l = e.$config) === null || l === void 0 ? void 0 : l.ptOptions) || {}, c = a.mergeSections, d = c === void 0 ? !0 : c, f = a.mergeProps, y = f === void 0 ? !1 : f, b = s(n.originalValue), _ = s(n.value);
|
|
4682
4682
|
return b === void 0 && _ === void 0 ? void 0 : B.isString(_) ? _ : B.isString(b) ? b : d || !d && _ ? y ? ie._mergeProps(e, y, b, _) : ce(ce({}, b), _) : _;
|
|
4683
4683
|
}
|
|
4684
4684
|
return s(n);
|
|
@@ -4688,7 +4688,7 @@ var ie = {
|
|
|
4688
4688
|
return ie._usePT(e, n, r, o, i);
|
|
4689
4689
|
},
|
|
4690
4690
|
_hook: function(e, n, r, o, i, s) {
|
|
4691
|
-
var l, a,
|
|
4691
|
+
var l, a, c = "on".concat(B.toCapitalCase(n)), d = ie._getConfig(o, i), f = r == null ? void 0 : r.$instance, y = ie._usePT(f, ie._getPT(o == null || (l = o.value) === null || l === void 0 ? void 0 : l.pt, e), ie._getOptionValue, "hooks.".concat(c)), b = ie._useDefaultPT(f, d == null || (a = d.pt) === null || a === void 0 || (a = a.directives) === null || a === void 0 ? void 0 : a[e], ie._getOptionValue, "hooks.".concat(c)), _ = {
|
|
4692
4692
|
el: r,
|
|
4693
4693
|
binding: o,
|
|
4694
4694
|
vnode: i,
|
|
@@ -4702,7 +4702,7 @@ var ie = {
|
|
|
4702
4702
|
return B.isFunction(e) ? e.apply(void 0, r) : ee.apply(void 0, r);
|
|
4703
4703
|
},
|
|
4704
4704
|
_extend: function(e) {
|
|
4705
|
-
var n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, r = function(i, s, l, a,
|
|
4705
|
+
var n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, r = function(i, s, l, a, c) {
|
|
4706
4706
|
var d, f;
|
|
4707
4707
|
s._$instances = s._$instances || {};
|
|
4708
4708
|
var y = ie._getConfig(l, a), b = s._$instances[e] || {}, _ = B.isEmpty(b) ? ce(ce({}, n), n == null ? void 0 : n.methods) : {};
|
|
@@ -4749,24 +4749,24 @@ var ie = {
|
|
|
4749
4749
|
var A, $ = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : "", G = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !0, V = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {};
|
|
4750
4750
|
return G ? ie._getOptionValue((A = s.$instance) === null || A === void 0 || (A = A.$style) === null || A === void 0 ? void 0 : A.inlineStyles, $, ce({}, V)) : void 0;
|
|
4751
4751
|
}
|
|
4752
|
-
}, _), s.$instance = s._$instances[e], (d = (f = s.$instance)[i]) === null || d === void 0 || d.call(f, s, l, a,
|
|
4752
|
+
}, _), s.$instance = s._$instances[e], (d = (f = s.$instance)[i]) === null || d === void 0 || d.call(f, s, l, a, c), s["$".concat(e)] = s.$instance, ie._hook(e, i, s, l, a, c);
|
|
4753
4753
|
};
|
|
4754
4754
|
return {
|
|
4755
4755
|
created: function(i, s, l, a) {
|
|
4756
4756
|
r("created", i, s, l, a);
|
|
4757
4757
|
},
|
|
4758
4758
|
beforeMount: function(i, s, l, a) {
|
|
4759
|
-
var
|
|
4759
|
+
var c, d, f, y, b = ie._getConfig(s, l);
|
|
4760
4760
|
_t.loadStyle({
|
|
4761
|
-
nonce: b == null || (
|
|
4761
|
+
nonce: b == null || (c = b.csp) === null || c === void 0 ? void 0 : c.nonce
|
|
4762
4762
|
}), !((d = i.$instance) !== null && d !== void 0 && d.isUnstyled()) && ((f = i.$instance) === null || f === void 0 || (f = f.$style) === null || f === void 0 || f.loadStyle({
|
|
4763
4763
|
nonce: b == null || (y = b.csp) === null || y === void 0 ? void 0 : y.nonce
|
|
4764
4764
|
})), r("beforeMount", i, s, l, a);
|
|
4765
4765
|
},
|
|
4766
4766
|
mounted: function(i, s, l, a) {
|
|
4767
|
-
var
|
|
4767
|
+
var c, d, f, y, b = ie._getConfig(s, l);
|
|
4768
4768
|
_t.loadStyle({
|
|
4769
|
-
nonce: b == null || (
|
|
4769
|
+
nonce: b == null || (c = b.csp) === null || c === void 0 ? void 0 : c.nonce
|
|
4770
4770
|
}), !((d = i.$instance) !== null && d !== void 0 && d.isUnstyled()) && ((f = i.$instance) === null || f === void 0 || (f = f.$style) === null || f === void 0 || f.loadStyle({
|
|
4771
4771
|
nonce: b == null || (y = b.csp) === null || y === void 0 ? void 0 : y.nonce
|
|
4772
4772
|
})), r("mounted", i, s, l, a);
|
|
@@ -4789,8 +4789,8 @@ var ie = {
|
|
|
4789
4789
|
var e = ie._getMeta.apply(ie, arguments), n = di(e, 2), r = n[0], o = n[1];
|
|
4790
4790
|
return ce({
|
|
4791
4791
|
extend: function() {
|
|
4792
|
-
var s = ie._getMeta.apply(ie, arguments), l = di(s, 2), a = l[0],
|
|
4793
|
-
return ie.extend(a, ce(ce(ce({}, o), o == null ? void 0 : o.methods),
|
|
4792
|
+
var s = ie._getMeta.apply(ie, arguments), l = di(s, 2), a = l[0], c = l[1];
|
|
4793
|
+
return ie.extend(a, ce(ce(ce({}, o), o == null ? void 0 : o.methods), c));
|
|
4794
4794
|
}
|
|
4795
4795
|
}, ie._extend(r, o));
|
|
4796
4796
|
}
|
|
@@ -5049,11 +5049,11 @@ var Bf = Of.extend("ripple", {
|
|
|
5049
5049
|
}
|
|
5050
5050
|
}, Mf = ["tabindex"], Uf = ["id", "aria-label", "aria-expanded", "aria-level", "aria-setsize", "aria-posinset", "data-p-focused", "data-p-disabled"], Hf = ["onClick", "onMousemove"], jf = ["href", "target"];
|
|
5051
5051
|
function Vf(t, e, n, r, o, i) {
|
|
5052
|
-
var s =
|
|
5052
|
+
var s = Dt("PanelMenuSub", !0), l = pa("ripple");
|
|
5053
5053
|
return H(), te("ul", {
|
|
5054
5054
|
class: me(t.cx("submenu")),
|
|
5055
5055
|
tabindex: n.tabindex
|
|
5056
|
-
}, [(H(!0), te(ht, null, Mr(n.items, function(a,
|
|
5056
|
+
}, [(H(!0), te(ht, null, Mr(n.items, function(a, c) {
|
|
5057
5057
|
return H(), te(ht, {
|
|
5058
5058
|
key: i.getItemKey(a)
|
|
5059
5059
|
}, [i.isItemVisible(a) && !i.getItemProp(a, "separator") ? (H(), te("li", ee({
|
|
@@ -5068,8 +5068,8 @@ function Vf(t, e, n, r, o, i) {
|
|
|
5068
5068
|
"aria-expanded": i.isItemGroup(a) ? i.isItemActive(a) : void 0,
|
|
5069
5069
|
"aria-level": n.level + 1,
|
|
5070
5070
|
"aria-setsize": i.getAriaSetSize(),
|
|
5071
|
-
"aria-posinset": i.getAriaPosInset(
|
|
5072
|
-
}, i.getPTOptions("menuitem", a,
|
|
5071
|
+
"aria-posinset": i.getAriaPosInset(c)
|
|
5072
|
+
}, i.getPTOptions("menuitem", a, c), {
|
|
5073
5073
|
"data-p-focused": i.isItemFocused(a),
|
|
5074
5074
|
"data-p-disabled": i.isItemDisabled(a)
|
|
5075
5075
|
}), [z("div", ee({
|
|
@@ -5080,14 +5080,14 @@ function Vf(t, e, n, r, o, i) {
|
|
|
5080
5080
|
onMousemove: function(f) {
|
|
5081
5081
|
return i.onItemMouseMove(f, a);
|
|
5082
5082
|
}
|
|
5083
|
-
}, i.getPTOptions("content", a,
|
|
5083
|
+
}, i.getPTOptions("content", a, c)), [n.templates.item ? (H(), pe(ct(n.templates.item), {
|
|
5084
5084
|
key: 1,
|
|
5085
5085
|
item: a.item,
|
|
5086
5086
|
root: !1,
|
|
5087
5087
|
active: i.isItemActive(a),
|
|
5088
5088
|
hasSubmenu: i.isItemGroup(a),
|
|
5089
5089
|
label: i.getItemLabel(a),
|
|
5090
|
-
props: i.getMenuItemProps(a,
|
|
5090
|
+
props: i.getMenuItemProps(a, c)
|
|
5091
5091
|
}, null, 8, ["item", "active", "hasSubmenu", "label", "props"])) : wr((H(), te("a", ee({
|
|
5092
5092
|
key: 0,
|
|
5093
5093
|
href: i.getItemProp(a, "url"),
|
|
@@ -5095,25 +5095,25 @@ function Vf(t, e, n, r, o, i) {
|
|
|
5095
5095
|
target: i.getItemProp(a, "target"),
|
|
5096
5096
|
tabindex: "-1",
|
|
5097
5097
|
"aria-hidden": "true"
|
|
5098
|
-
}, i.getPTOptions("action", a,
|
|
5098
|
+
}, i.getPTOptions("action", a, c)), [i.isItemGroup(a) ? (H(), te(ht, {
|
|
5099
5099
|
key: 0
|
|
5100
5100
|
}, [n.templates.submenuicon ? (H(), pe(ct(n.templates.submenuicon), ee({
|
|
5101
5101
|
key: 0,
|
|
5102
5102
|
class: t.cx("submenuIcon"),
|
|
5103
5103
|
active: i.isItemActive(a)
|
|
5104
|
-
}, i.getPTOptions("submenuIcon", a,
|
|
5104
|
+
}, i.getPTOptions("submenuIcon", a, c)), null, 16, ["class", "active"])) : (H(), pe(ct(i.isItemActive(a) ? "ChevronDownIcon" : "ChevronRightIcon"), ee({
|
|
5105
5105
|
key: 1,
|
|
5106
5106
|
class: t.cx("submenuIcon")
|
|
5107
|
-
}, i.getPTOptions("submenuIcon", a,
|
|
5107
|
+
}, i.getPTOptions("submenuIcon", a, c)), null, 16, ["class"]))], 64)) : be("", !0), n.templates.itemicon ? (H(), pe(ct(n.templates.itemicon), {
|
|
5108
5108
|
key: 1,
|
|
5109
5109
|
item: a.item,
|
|
5110
5110
|
class: me(t.cx("icon"))
|
|
5111
5111
|
}, null, 8, ["item", "class"])) : i.getItemProp(a, "icon") ? (H(), te("span", ee({
|
|
5112
5112
|
key: 2,
|
|
5113
5113
|
class: [t.cx("icon"), i.getItemProp(a, "icon")]
|
|
5114
|
-
}, i.getPTOptions("icon", a,
|
|
5114
|
+
}, i.getPTOptions("icon", a, c)), null, 16)) : be("", !0), z("span", ee({
|
|
5115
5115
|
class: t.cx("label")
|
|
5116
|
-
}, i.getPTOptions("label", a,
|
|
5116
|
+
}, i.getPTOptions("label", a, c)), pt(i.getItemLabel(a)), 17)], 16, jf)), [[l]])], 16, Hf), Be(Nr, ee({
|
|
5117
5117
|
name: "p-toggleable-content"
|
|
5118
5118
|
}, t.ptm("transition")), {
|
|
5119
5119
|
default: qe(function() {
|
|
@@ -5174,7 +5174,7 @@ function pi(t, e) {
|
|
|
5174
5174
|
function qf(t, e) {
|
|
5175
5175
|
var n = t == null ? null : typeof Symbol < "u" && t[Symbol.iterator] || t["@@iterator"];
|
|
5176
5176
|
if (n != null) {
|
|
5177
|
-
var r, o, i, s, l = [], a = !0,
|
|
5177
|
+
var r, o, i, s, l = [], a = !0, c = !1;
|
|
5178
5178
|
try {
|
|
5179
5179
|
if (i = (n = n.call(t)).next, e === 0) {
|
|
5180
5180
|
if (Object(n) !== n)
|
|
@@ -5184,13 +5184,13 @@ function qf(t, e) {
|
|
|
5184
5184
|
for (; !(a = (r = i.call(n)).done) && (l.push(r.value), l.length !== e); a = !0)
|
|
5185
5185
|
;
|
|
5186
5186
|
} catch (d) {
|
|
5187
|
-
|
|
5187
|
+
c = !0, o = d;
|
|
5188
5188
|
} finally {
|
|
5189
5189
|
try {
|
|
5190
5190
|
if (!a && n.return != null && (s = n.return(), Object(s) !== s))
|
|
5191
5191
|
return;
|
|
5192
5192
|
} finally {
|
|
5193
|
-
if (
|
|
5193
|
+
if (c)
|
|
5194
5194
|
throw o;
|
|
5195
5195
|
}
|
|
5196
5196
|
}
|
|
@@ -5497,15 +5497,15 @@ var Es = {
|
|
|
5497
5497
|
createProcessedItems: function(e) {
|
|
5498
5498
|
var n = this, r = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 0, o = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, i = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : "", s = [];
|
|
5499
5499
|
return e && e.forEach(function(l, a) {
|
|
5500
|
-
var
|
|
5500
|
+
var c = (i !== "" ? i + "_" : "") + a, d = {
|
|
5501
5501
|
item: l,
|
|
5502
5502
|
index: a,
|
|
5503
5503
|
level: r,
|
|
5504
|
-
key:
|
|
5504
|
+
key: c,
|
|
5505
5505
|
parent: o,
|
|
5506
5506
|
parentKey: i
|
|
5507
5507
|
};
|
|
5508
|
-
d.items = n.createProcessedItems(l.items, r + 1, d,
|
|
5508
|
+
d.items = n.createProcessedItems(l.items, r + 1, d, c), s.push(d);
|
|
5509
5509
|
}), s;
|
|
5510
5510
|
},
|
|
5511
5511
|
flatItems: function(e) {
|
|
@@ -5531,7 +5531,7 @@ var Es = {
|
|
|
5531
5531
|
}
|
|
5532
5532
|
};
|
|
5533
5533
|
function Jf(t, e, n, r, o, i) {
|
|
5534
|
-
var s =
|
|
5534
|
+
var s = Dt("PanelMenuSub");
|
|
5535
5535
|
return H(), pe(s, ee({
|
|
5536
5536
|
id: n.panelId + "_list",
|
|
5537
5537
|
class: t.cx("menu"),
|
|
@@ -5782,7 +5782,7 @@ var Cs = {
|
|
|
5782
5782
|
}
|
|
5783
5783
|
}, eh = ["id"], th = ["id", "tabindex", "aria-label", "aria-expanded", "aria-controls", "aria-disabled", "onClick", "onKeydown", "data-p-highlight", "data-p-disabled"], nh = ["href"], rh = ["id", "aria-labelledby"];
|
|
5784
5784
|
function oh(t, e, n, r, o, i) {
|
|
5785
|
-
var s =
|
|
5785
|
+
var s = Dt("PanelMenuList");
|
|
5786
5786
|
return H(), te("div", ee({
|
|
5787
5787
|
id: o.id,
|
|
5788
5788
|
class: t.cx("root")
|
|
@@ -5878,67 +5878,67 @@ const ih = ["data-active", "href", "onClick"], sh = { class: "sf-ml-2" }, ah = [
|
|
|
5878
5878
|
items: {}
|
|
5879
5879
|
},
|
|
5880
5880
|
setup(t) {
|
|
5881
|
-
const e = t, n = Ed();
|
|
5882
|
-
r
|
|
5883
|
-
function
|
|
5884
|
-
|
|
5885
|
-
|
|
5881
|
+
const e = t, n = Ed(), r = Lt(() => e.items);
|
|
5882
|
+
o(r.value);
|
|
5883
|
+
function o(l, a = void 0) {
|
|
5884
|
+
l.forEach((c) => {
|
|
5885
|
+
a && (c.parentKey = a), c.items && o(c.items, c.key);
|
|
5886
5886
|
});
|
|
5887
5887
|
}
|
|
5888
|
-
const
|
|
5889
|
-
function
|
|
5890
|
-
|
|
5891
|
-
|
|
5888
|
+
const i = Ne({});
|
|
5889
|
+
function s(l, a, c = void 0) {
|
|
5890
|
+
l.forEach((d) => {
|
|
5891
|
+
d.routeName && d.routeName === a && c && (i.value[c] = c === d.parentKey), d.items && s(d.items, a, d.key);
|
|
5892
5892
|
});
|
|
5893
5893
|
}
|
|
5894
5894
|
return Ln(
|
|
5895
5895
|
() => n.name,
|
|
5896
|
-
(
|
|
5897
|
-
|
|
5896
|
+
(l) => {
|
|
5897
|
+
l && s(r.value, l.toString());
|
|
5898
5898
|
}
|
|
5899
|
-
), (
|
|
5900
|
-
const
|
|
5899
|
+
), (l, a) => {
|
|
5900
|
+
const c = Dt("router-link");
|
|
5901
5901
|
return H(), pe(Ee(Cs), {
|
|
5902
|
-
model:
|
|
5903
|
-
expandedKeys:
|
|
5904
|
-
"onUpdate:expandedKeys":
|
|
5902
|
+
model: r.value,
|
|
5903
|
+
expandedKeys: i.value,
|
|
5904
|
+
"onUpdate:expandedKeys": a[0] || (a[0] = (d) => i.value = d),
|
|
5905
5905
|
multiple: !0,
|
|
5906
5906
|
class: me("sf-p-2")
|
|
5907
5907
|
}, {
|
|
5908
|
-
item: qe(({ item:
|
|
5909
|
-
|
|
5908
|
+
item: qe(({ item: d, active: f }) => [
|
|
5909
|
+
d.route ? (H(), pe(c, {
|
|
5910
5910
|
key: 0,
|
|
5911
|
-
to: { name:
|
|
5911
|
+
to: { name: d.route },
|
|
5912
5912
|
custom: ""
|
|
5913
5913
|
}, {
|
|
5914
|
-
default: qe(({ href:
|
|
5914
|
+
default: qe(({ href: y, navigate: b, isActive: _ }) => [
|
|
5915
5915
|
z("a", {
|
|
5916
5916
|
class: "sf-flex sf-align-items-center sf-px-3 sf-py-2 sf-ripple",
|
|
5917
|
-
"data-active":
|
|
5918
|
-
href:
|
|
5919
|
-
onClick:
|
|
5917
|
+
"data-active": _,
|
|
5918
|
+
href: y,
|
|
5919
|
+
onClick: b
|
|
5920
5920
|
}, [
|
|
5921
5921
|
Be(wt, {
|
|
5922
|
-
icon:
|
|
5922
|
+
icon: d.icon ?? "chevron_right"
|
|
5923
5923
|
}, null, 8, ["icon"]),
|
|
5924
|
-
z("span", sh, pt(
|
|
5924
|
+
z("span", sh, pt(d.label), 1)
|
|
5925
5925
|
], 8, ih)
|
|
5926
5926
|
]),
|
|
5927
5927
|
_: 2
|
|
5928
5928
|
}, 1032, ["to"])) : (H(), te("a", {
|
|
5929
5929
|
key: 1,
|
|
5930
5930
|
class: "sf-flex sf-align-items-center sf-pl-3 sf-py-2",
|
|
5931
|
-
href:
|
|
5932
|
-
target:
|
|
5931
|
+
href: d.url,
|
|
5932
|
+
target: d.target
|
|
5933
5933
|
}, [
|
|
5934
|
-
|
|
5934
|
+
d.icon ? (H(), pe(wt, {
|
|
5935
5935
|
key: 0,
|
|
5936
|
-
icon:
|
|
5936
|
+
icon: d.icon
|
|
5937
5937
|
}, null, 8, ["icon"])) : be("", !0),
|
|
5938
|
-
z("span", lh, pt(
|
|
5938
|
+
z("span", lh, pt(d.label), 1),
|
|
5939
5939
|
uh,
|
|
5940
5940
|
Be(wt, {
|
|
5941
|
-
icon:
|
|
5941
|
+
icon: f ? "expand_less" : "expand_more"
|
|
5942
5942
|
}, null, 8, ["icon"])
|
|
5943
5943
|
], 8, ah))
|
|
5944
5944
|
]),
|
|
@@ -6039,7 +6039,7 @@ const Sh = {}, Ah = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
6039
6039
|
r.JS_SHA256_NO_WINDOW && (n = !1);
|
|
6040
6040
|
var o = !n && typeof self == "object", i = !r.JS_SHA256_NO_NODE_JS && typeof process == "object" && process.versions && process.versions.node;
|
|
6041
6041
|
i ? r = ch : o && (r = self);
|
|
6042
|
-
var s = !r.JS_SHA256_NO_COMMON_JS && !0 && t.exports, l = !r.JS_SHA256_NO_ARRAY_BUFFER && typeof ArrayBuffer < "u", a = "0123456789abcdef".split(""),
|
|
6042
|
+
var s = !r.JS_SHA256_NO_COMMON_JS && !0 && t.exports, l = !r.JS_SHA256_NO_ARRAY_BUFFER && typeof ArrayBuffer < "u", a = "0123456789abcdef".split(""), c = [-2147483648, 8388608, 32768, 128], d = [24, 16, 8, 0], f = [
|
|
6043
6043
|
1116352408,
|
|
6044
6044
|
1899447441,
|
|
6045
6045
|
3049323471,
|
|
@@ -6189,14 +6189,14 @@ const Sh = {}, Ah = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
6189
6189
|
if (!this.finalized) {
|
|
6190
6190
|
this.finalized = !0;
|
|
6191
6191
|
var g = this.blocks, O = this.lastByteIndex;
|
|
6192
|
-
g[16] = this.block, g[O >> 2] |=
|
|
6192
|
+
g[16] = this.block, g[O >> 2] |= c[O & 3], this.block = g[16], O >= 56 && (this.hashed || this.hash(), g[0] = this.block, g[16] = g[1] = g[2] = g[3] = g[4] = g[5] = g[6] = g[7] = g[8] = g[9] = g[10] = g[11] = g[12] = g[13] = g[14] = g[15] = 0), g[14] = this.hBytes << 3 | this.bytes >>> 29, g[15] = this.bytes << 3, this.hash();
|
|
6193
6193
|
}
|
|
6194
6194
|
}, V.prototype.hash = function() {
|
|
6195
|
-
var g = this.h0, O = this.h1, j = this.h2, R = this.h3, L = this.h4, P = this.h5, q = this.h6, E = this.h7, J = this.blocks, ae, de, he, ke, K, Le,
|
|
6195
|
+
var g = this.h0, O = this.h1, j = this.h2, R = this.h3, L = this.h4, P = this.h5, q = this.h6, E = this.h7, J = this.blocks, ae, de, he, ke, K, Le, u, p, w, I, S;
|
|
6196
6196
|
for (ae = 16; ae < 64; ++ae)
|
|
6197
6197
|
K = J[ae - 15], de = (K >>> 7 | K << 25) ^ (K >>> 18 | K << 14) ^ K >>> 3, K = J[ae - 2], he = (K >>> 17 | K << 15) ^ (K >>> 19 | K << 13) ^ K >>> 10, J[ae] = J[ae - 16] + de + J[ae - 7] + he << 0;
|
|
6198
6198
|
for (S = O & j, ae = 0; ae < 64; ae += 4)
|
|
6199
|
-
this.first ? (this.is224 ? (p = 300032, K = J[0] - 1413257819, E = K - 150054599 << 0, R = K + 24177077 << 0) : (p = 704751109, K = J[0] - 210244248, E = K - 1521486534 << 0, R = K + 143694565 << 0), this.first = !1) : (de = (g >>> 2 | g << 30) ^ (g >>> 13 | g << 19) ^ (g >>> 22 | g << 10), he = (L >>> 6 | L << 26) ^ (L >>> 11 | L << 21) ^ (L >>> 25 | L << 7), p = g & O, ke = p ^ g & j ^ S,
|
|
6199
|
+
this.first ? (this.is224 ? (p = 300032, K = J[0] - 1413257819, E = K - 150054599 << 0, R = K + 24177077 << 0) : (p = 704751109, K = J[0] - 210244248, E = K - 1521486534 << 0, R = K + 143694565 << 0), this.first = !1) : (de = (g >>> 2 | g << 30) ^ (g >>> 13 | g << 19) ^ (g >>> 22 | g << 10), he = (L >>> 6 | L << 26) ^ (L >>> 11 | L << 21) ^ (L >>> 25 | L << 7), p = g & O, ke = p ^ g & j ^ S, u = L & P ^ ~L & q, K = E + he + u + f[ae] + J[ae], Le = de + ke, E = R + K << 0, R = K + Le << 0), de = (R >>> 2 | R << 30) ^ (R >>> 13 | R << 19) ^ (R >>> 22 | R << 10), he = (E >>> 6 | E << 26) ^ (E >>> 11 | E << 21) ^ (E >>> 25 | E << 7), w = R & g, ke = w ^ R & O ^ p, u = E & L ^ ~E & P, K = q + he + u + f[ae + 1] + J[ae + 1], Le = de + ke, q = j + K << 0, j = K + Le << 0, de = (j >>> 2 | j << 30) ^ (j >>> 13 | j << 19) ^ (j >>> 22 | j << 10), he = (q >>> 6 | q << 26) ^ (q >>> 11 | q << 21) ^ (q >>> 25 | q << 7), I = j & R, ke = I ^ j & g ^ w, u = q & E ^ ~q & L, K = P + he + u + f[ae + 2] + J[ae + 2], Le = de + ke, P = O + K << 0, O = K + Le << 0, de = (O >>> 2 | O << 30) ^ (O >>> 13 | O << 19) ^ (O >>> 22 | O << 10), he = (P >>> 6 | P << 26) ^ (P >>> 11 | P << 21) ^ (P >>> 25 | P << 7), S = O & j, ke = S ^ O & R ^ I, u = P & q ^ ~P & E, K = L + he + u + f[ae + 3] + J[ae + 3], Le = de + ke, L = g + K << 0, g = K + Le << 0, this.chromeBugWorkAround = !0;
|
|
6200
6200
|
this.h0 = this.h0 + g << 0, this.h1 = this.h1 + O << 0, this.h2 = this.h2 + j << 0, this.h3 = this.h3 + R << 0, this.h4 = this.h4 + L << 0, this.h5 = this.h5 + P << 0, this.h6 = this.h6 + q << 0, this.h7 = this.h7 + E << 0;
|
|
6201
6201
|
}, V.prototype.hex = function() {
|
|
6202
6202
|
this.finalize();
|
|
@@ -6277,9 +6277,9 @@ const Sh = {}, Ah = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
6277
6277
|
})(Is);
|
|
6278
6278
|
var _h = Is.exports;
|
|
6279
6279
|
const Eh = /* @__PURE__ */ dh(_h);
|
|
6280
|
-
class
|
|
6280
|
+
class Gt extends Error {
|
|
6281
6281
|
}
|
|
6282
|
-
|
|
6282
|
+
Gt.prototype.name = "InvalidTokenError";
|
|
6283
6283
|
function Ch(t) {
|
|
6284
6284
|
return decodeURIComponent(atob(t).replace(/(.)/g, (e, n) => {
|
|
6285
6285
|
let r = n.charCodeAt(0).toString(16).toUpperCase();
|
|
@@ -6308,21 +6308,21 @@ function xh(t) {
|
|
|
6308
6308
|
}
|
|
6309
6309
|
function pr(t, e) {
|
|
6310
6310
|
if (typeof t != "string")
|
|
6311
|
-
throw new
|
|
6311
|
+
throw new Gt("Invalid token specified: must be a string");
|
|
6312
6312
|
e || (e = {});
|
|
6313
6313
|
const n = e.header === !0 ? 0 : 1, r = t.split(".")[n];
|
|
6314
6314
|
if (typeof r != "string")
|
|
6315
|
-
throw new
|
|
6315
|
+
throw new Gt(`Invalid token specified: missing part #${n + 1}`);
|
|
6316
6316
|
let o;
|
|
6317
6317
|
try {
|
|
6318
6318
|
o = xh(r);
|
|
6319
6319
|
} catch (i) {
|
|
6320
|
-
throw new
|
|
6320
|
+
throw new Gt(`Invalid token specified: invalid base64 for part #${n + 1} (${i.message})`);
|
|
6321
6321
|
}
|
|
6322
6322
|
try {
|
|
6323
6323
|
return JSON.parse(o);
|
|
6324
6324
|
} catch (i) {
|
|
6325
|
-
throw new
|
|
6325
|
+
throw new Gt(`Invalid token specified: invalid json for part #${n + 1} (${i.message})`);
|
|
6326
6326
|
}
|
|
6327
6327
|
}
|
|
6328
6328
|
if (typeof Promise > "u")
|
|
@@ -6336,20 +6336,20 @@ function ks(t) {
|
|
|
6336
6336
|
interval: 5
|
|
6337
6337
|
}, s = document.getElementsByTagName("script"), l = 0; l < s.length; l++)
|
|
6338
6338
|
(s[l].src.indexOf("keycloak.js") !== -1 || s[l].src.indexOf("keycloak.min.js") !== -1) && s[l].src.indexOf("version=") !== -1 && (e.iframeVersion = s[l].src.substring(s[l].src.indexOf("version=") + 8).split("&")[0]);
|
|
6339
|
-
var a = !0,
|
|
6340
|
-
e.init = function(
|
|
6339
|
+
var a = !0, c = Le(console.info), d = Le(console.warn);
|
|
6340
|
+
e.init = function(u) {
|
|
6341
6341
|
if (e.didInitialize)
|
|
6342
6342
|
throw new Error("A 'Keycloak' instance can only be initialized once.");
|
|
6343
6343
|
e.didInitialize = !0, e.authenticated = !1, o = K();
|
|
6344
6344
|
var p = ["default", "cordova", "cordova-native"];
|
|
6345
|
-
if (
|
|
6346
|
-
if (typeof
|
|
6347
|
-
if (
|
|
6348
|
-
e.responseMode =
|
|
6345
|
+
if (u && p.indexOf(u.adapter) > -1 ? n = de(u.adapter) : u && typeof u.adapter == "object" ? n = u.adapter : window.Cordova || window.cordova ? n = de("cordova") : n = de(), u) {
|
|
6346
|
+
if (typeof u.useNonce < "u" && (a = u.useNonce), typeof u.checkLoginIframe < "u" && (i.enable = u.checkLoginIframe), u.checkLoginIframeInterval && (i.interval = u.checkLoginIframeInterval), u.onLoad === "login-required" && (e.loginRequired = !0), u.responseMode)
|
|
6347
|
+
if (u.responseMode === "query" || u.responseMode === "fragment")
|
|
6348
|
+
e.responseMode = u.responseMode;
|
|
6349
6349
|
else
|
|
6350
6350
|
throw "Invalid value for responseMode";
|
|
6351
|
-
if (
|
|
6352
|
-
switch (
|
|
6351
|
+
if (u.flow) {
|
|
6352
|
+
switch (u.flow) {
|
|
6353
6353
|
case "standard":
|
|
6354
6354
|
e.responseType = "code";
|
|
6355
6355
|
break;
|
|
@@ -6362,14 +6362,14 @@ function ks(t) {
|
|
|
6362
6362
|
default:
|
|
6363
6363
|
throw "Invalid value for flow";
|
|
6364
6364
|
}
|
|
6365
|
-
e.flow =
|
|
6365
|
+
e.flow = u.flow;
|
|
6366
6366
|
}
|
|
6367
|
-
if (
|
|
6368
|
-
if (
|
|
6367
|
+
if (u.timeSkew != null && (e.timeSkew = u.timeSkew), u.redirectUri && (e.redirectUri = u.redirectUri), u.silentCheckSsoRedirectUri && (e.silentCheckSsoRedirectUri = u.silentCheckSsoRedirectUri), typeof u.silentCheckSsoFallback == "boolean" ? e.silentCheckSsoFallback = u.silentCheckSsoFallback : e.silentCheckSsoFallback = !0, u.pkceMethod) {
|
|
6368
|
+
if (u.pkceMethod !== "S256")
|
|
6369
6369
|
throw "Invalid value for pkceMethod";
|
|
6370
|
-
e.pkceMethod =
|
|
6370
|
+
e.pkceMethod = u.pkceMethod;
|
|
6371
6371
|
}
|
|
6372
|
-
typeof
|
|
6372
|
+
typeof u.enableLogging == "boolean" ? e.enableLogging = u.enableLogging : e.enableLogging = !1, typeof u.scope == "string" && (e.scope = u.scope), typeof u.acrValues == "string" && (e.acrValues = u.acrValues), typeof u.messageReceiveTimeout == "number" && u.messageReceiveTimeout > 0 ? e.messageReceiveTimeout = u.messageReceiveTimeout : e.messageReceiveTimeout = 1e4;
|
|
6373
6373
|
}
|
|
6374
6374
|
e.responseMode || (e.responseMode = "fragment"), e.responseType || (e.responseType = "code", e.flow = "standard");
|
|
6375
6375
|
var w = L(), I = L();
|
|
@@ -6381,7 +6381,7 @@ function ks(t) {
|
|
|
6381
6381
|
var S = V();
|
|
6382
6382
|
function F() {
|
|
6383
6383
|
var N = function(ne) {
|
|
6384
|
-
ne || (W.prompt = "none"),
|
|
6384
|
+
ne || (W.prompt = "none"), u && u.locale && (W.locale = u.locale), e.login(W).then(function() {
|
|
6385
6385
|
I.setSuccess();
|
|
6386
6386
|
}).catch(function(Re) {
|
|
6387
6387
|
I.setError(Re);
|
|
@@ -6397,7 +6397,7 @@ function ks(t) {
|
|
|
6397
6397
|
};
|
|
6398
6398
|
window.addEventListener("message", Te);
|
|
6399
6399
|
}, W = {};
|
|
6400
|
-
switch (
|
|
6400
|
+
switch (u.onLoad) {
|
|
6401
6401
|
case "check-sso":
|
|
6402
6402
|
i.enable ? q().then(function() {
|
|
6403
6403
|
J().then(function(ne) {
|
|
@@ -6422,7 +6422,7 @@ function ks(t) {
|
|
|
6422
6422
|
}).catch(function(D) {
|
|
6423
6423
|
I.setError(D);
|
|
6424
6424
|
});
|
|
6425
|
-
|
|
6425
|
+
u ? u.token && u.refreshToken ? (fe(u.token, u.refreshToken, u.idToken), i.enable ? q().then(function() {
|
|
6426
6426
|
J().then(function(D) {
|
|
6427
6427
|
D ? (e.onAuthSuccess && e.onAuthSuccess(), I.setSuccess(), E()) : I.setSuccess();
|
|
6428
6428
|
}).catch(function(D) {
|
|
@@ -6431,8 +6431,8 @@ function ks(t) {
|
|
|
6431
6431
|
}) : e.updateToken(-1).then(function() {
|
|
6432
6432
|
e.onAuthSuccess && e.onAuthSuccess(), I.setSuccess();
|
|
6433
6433
|
}).catch(function(D) {
|
|
6434
|
-
e.onAuthError && e.onAuthError(),
|
|
6435
|
-
})) :
|
|
6434
|
+
e.onAuthError && e.onAuthError(), u.onLoad ? F() : I.setError(D);
|
|
6435
|
+
})) : u.onLoad ? F() : I.setSuccess() : I.setSuccess();
|
|
6436
6436
|
}
|
|
6437
6437
|
function k() {
|
|
6438
6438
|
var N = L(), D = function() {
|
|
@@ -6447,28 +6447,28 @@ function ks(t) {
|
|
|
6447
6447
|
}), S.catch(function(N) {
|
|
6448
6448
|
w.setError(N);
|
|
6449
6449
|
}), w.promise;
|
|
6450
|
-
}, e.login = function(
|
|
6451
|
-
return n.login(
|
|
6450
|
+
}, e.login = function(u) {
|
|
6451
|
+
return n.login(u);
|
|
6452
6452
|
};
|
|
6453
|
-
function f(
|
|
6453
|
+
function f(u) {
|
|
6454
6454
|
var p = null, w = window.crypto || window.msCrypto;
|
|
6455
6455
|
if (w && w.getRandomValues && window.Uint8Array)
|
|
6456
|
-
return p = new Uint8Array(
|
|
6457
|
-
p = new Array(
|
|
6456
|
+
return p = new Uint8Array(u), w.getRandomValues(p), p;
|
|
6457
|
+
p = new Array(u);
|
|
6458
6458
|
for (var I = 0; I < p.length; I++)
|
|
6459
6459
|
p[I] = Math.floor(256 * Math.random());
|
|
6460
6460
|
return p;
|
|
6461
6461
|
}
|
|
6462
|
-
function y(
|
|
6463
|
-
return b(
|
|
6462
|
+
function y(u) {
|
|
6463
|
+
return b(u, "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789");
|
|
6464
6464
|
}
|
|
6465
|
-
function b(
|
|
6466
|
-
for (var w = f(
|
|
6465
|
+
function b(u, p) {
|
|
6466
|
+
for (var w = f(u), I = new Array(u), S = 0; S < u; S++)
|
|
6467
6467
|
I[S] = p.charCodeAt(w[S] % p.length);
|
|
6468
6468
|
return String.fromCharCode.apply(null, I);
|
|
6469
6469
|
}
|
|
6470
|
-
function _(
|
|
6471
|
-
switch (
|
|
6470
|
+
function _(u, p) {
|
|
6471
|
+
switch (u) {
|
|
6472
6472
|
case "S256":
|
|
6473
6473
|
var w = new Uint8Array(Eh.arrayBuffer(p)), I = jn.fromByteArray(w).replace(/\+/g, "-").replace(/\//g, "_").replace(/\=/g, "");
|
|
6474
6474
|
return I;
|
|
@@ -6476,93 +6476,93 @@ function ks(t) {
|
|
|
6476
6476
|
throw "Invalid value for pkceMethod";
|
|
6477
6477
|
}
|
|
6478
6478
|
}
|
|
6479
|
-
function x(
|
|
6479
|
+
function x(u) {
|
|
6480
6480
|
var p = {
|
|
6481
6481
|
id_token: {
|
|
6482
|
-
acr:
|
|
6482
|
+
acr: u
|
|
6483
6483
|
}
|
|
6484
6484
|
};
|
|
6485
6485
|
return JSON.stringify(p);
|
|
6486
6486
|
}
|
|
6487
|
-
e.createLoginUrl = function(
|
|
6488
|
-
var p = g(), w = g(), I = n.redirectUri(
|
|
6487
|
+
e.createLoginUrl = function(u) {
|
|
6488
|
+
var p = g(), w = g(), I = n.redirectUri(u), S = {
|
|
6489
6489
|
state: p,
|
|
6490
6490
|
nonce: w,
|
|
6491
6491
|
redirectUri: encodeURIComponent(I)
|
|
6492
6492
|
};
|
|
6493
|
-
|
|
6493
|
+
u && u.prompt && (S.prompt = u.prompt);
|
|
6494
6494
|
var F;
|
|
6495
|
-
|
|
6496
|
-
var C =
|
|
6495
|
+
u && u.action == "register" ? F = e.endpoints.register() : F = e.endpoints.authorize();
|
|
6496
|
+
var C = u && u.scope || e.scope;
|
|
6497
6497
|
C ? C.indexOf("openid") === -1 && (C = "openid " + C) : C = "openid";
|
|
6498
6498
|
var k = F + "?client_id=" + encodeURIComponent(e.clientId) + "&redirect_uri=" + encodeURIComponent(I) + "&state=" + encodeURIComponent(p) + "&response_mode=" + encodeURIComponent(e.responseMode) + "&response_type=" + encodeURIComponent(e.responseType) + "&scope=" + encodeURIComponent(C);
|
|
6499
|
-
if (a && (k = k + "&nonce=" + encodeURIComponent(w)),
|
|
6500
|
-
var N = x(
|
|
6499
|
+
if (a && (k = k + "&nonce=" + encodeURIComponent(w)), u && u.prompt && (k += "&prompt=" + encodeURIComponent(u.prompt)), u && u.maxAge && (k += "&max_age=" + encodeURIComponent(u.maxAge)), u && u.loginHint && (k += "&login_hint=" + encodeURIComponent(u.loginHint)), u && u.idpHint && (k += "&kc_idp_hint=" + encodeURIComponent(u.idpHint)), u && u.action && u.action != "register" && (k += "&kc_action=" + encodeURIComponent(u.action)), u && u.locale && (k += "&ui_locales=" + encodeURIComponent(u.locale)), u && u.acr) {
|
|
6500
|
+
var N = x(u.acr);
|
|
6501
6501
|
k += "&claims=" + encodeURIComponent(N);
|
|
6502
6502
|
}
|
|
6503
|
-
if ((
|
|
6503
|
+
if ((u && u.acrValues || e.acrValues) && (k += "&acr_values=" + encodeURIComponent(u.acrValues || e.acrValues)), e.pkceMethod) {
|
|
6504
6504
|
var D = y(96);
|
|
6505
6505
|
S.pkceCodeVerifier = D;
|
|
6506
6506
|
var W = _(e.pkceMethod, D);
|
|
6507
6507
|
k += "&code_challenge=" + W, k += "&code_challenge_method=" + e.pkceMethod;
|
|
6508
6508
|
}
|
|
6509
6509
|
return o.add(S), k;
|
|
6510
|
-
}, e.logout = function(
|
|
6511
|
-
return n.logout(
|
|
6512
|
-
}, e.createLogoutUrl = function(
|
|
6513
|
-
var p = e.endpoints.logout() + "?client_id=" + encodeURIComponent(e.clientId) + "&post_logout_redirect_uri=" + encodeURIComponent(n.redirectUri(
|
|
6510
|
+
}, e.logout = function(u) {
|
|
6511
|
+
return n.logout(u);
|
|
6512
|
+
}, e.createLogoutUrl = function(u) {
|
|
6513
|
+
var p = e.endpoints.logout() + "?client_id=" + encodeURIComponent(e.clientId) + "&post_logout_redirect_uri=" + encodeURIComponent(n.redirectUri(u, !1));
|
|
6514
6514
|
return e.idToken && (p += "&id_token_hint=" + encodeURIComponent(e.idToken)), p;
|
|
6515
|
-
}, e.register = function(
|
|
6516
|
-
return n.register(
|
|
6517
|
-
}, e.createRegisterUrl = function(
|
|
6518
|
-
return
|
|
6519
|
-
}, e.createAccountUrl = function(
|
|
6515
|
+
}, e.register = function(u) {
|
|
6516
|
+
return n.register(u);
|
|
6517
|
+
}, e.createRegisterUrl = function(u) {
|
|
6518
|
+
return u || (u = {}), u.action = "register", e.createLoginUrl(u);
|
|
6519
|
+
}, e.createAccountUrl = function(u) {
|
|
6520
6520
|
var p = A(), w = void 0;
|
|
6521
|
-
return typeof p < "u" && (w = p + "/account?referrer=" + encodeURIComponent(e.clientId) + "&referrer_uri=" + encodeURIComponent(n.redirectUri(
|
|
6521
|
+
return typeof p < "u" && (w = p + "/account?referrer=" + encodeURIComponent(e.clientId) + "&referrer_uri=" + encodeURIComponent(n.redirectUri(u))), w;
|
|
6522
6522
|
}, e.accountManagement = function() {
|
|
6523
6523
|
return n.accountManagement();
|
|
6524
|
-
}, e.hasRealmRole = function(
|
|
6524
|
+
}, e.hasRealmRole = function(u) {
|
|
6525
6525
|
var p = e.realmAccess;
|
|
6526
|
-
return !!p && p.roles.indexOf(
|
|
6527
|
-
}, e.hasResourceRole = function(
|
|
6526
|
+
return !!p && p.roles.indexOf(u) >= 0;
|
|
6527
|
+
}, e.hasResourceRole = function(u, p) {
|
|
6528
6528
|
if (!e.resourceAccess)
|
|
6529
6529
|
return !1;
|
|
6530
6530
|
var w = e.resourceAccess[p || e.clientId];
|
|
6531
|
-
return !!w && w.roles.indexOf(
|
|
6531
|
+
return !!w && w.roles.indexOf(u) >= 0;
|
|
6532
6532
|
}, e.loadUserProfile = function() {
|
|
6533
|
-
var
|
|
6534
|
-
p.open("GET",
|
|
6533
|
+
var u = A() + "/account", p = new XMLHttpRequest();
|
|
6534
|
+
p.open("GET", u, !0), p.setRequestHeader("Accept", "application/json"), p.setRequestHeader("Authorization", "bearer " + e.token);
|
|
6535
6535
|
var w = L();
|
|
6536
6536
|
return p.onreadystatechange = function() {
|
|
6537
6537
|
p.readyState == 4 && (p.status == 200 ? (e.profile = JSON.parse(p.responseText), w.setSuccess(e.profile)) : w.setError());
|
|
6538
6538
|
}, p.send(), w.promise;
|
|
6539
6539
|
}, e.loadUserInfo = function() {
|
|
6540
|
-
var
|
|
6541
|
-
p.open("GET",
|
|
6540
|
+
var u = e.endpoints.userinfo(), p = new XMLHttpRequest();
|
|
6541
|
+
p.open("GET", u, !0), p.setRequestHeader("Accept", "application/json"), p.setRequestHeader("Authorization", "bearer " + e.token);
|
|
6542
6542
|
var w = L();
|
|
6543
6543
|
return p.onreadystatechange = function() {
|
|
6544
6544
|
p.readyState == 4 && (p.status == 200 ? (e.userInfo = JSON.parse(p.responseText), w.setSuccess(e.userInfo)) : w.setError());
|
|
6545
6545
|
}, p.send(), w.promise;
|
|
6546
|
-
}, e.isTokenExpired = function(
|
|
6546
|
+
}, e.isTokenExpired = function(u) {
|
|
6547
6547
|
if (!e.tokenParsed || !e.refreshToken && e.flow != "implicit")
|
|
6548
6548
|
throw "Not authenticated";
|
|
6549
6549
|
if (e.timeSkew == null)
|
|
6550
|
-
return
|
|
6550
|
+
return c("[KEYCLOAK] Unable to determine if token is expired as timeskew is not set"), !0;
|
|
6551
6551
|
var p = e.tokenParsed.exp - Math.ceil((/* @__PURE__ */ new Date()).getTime() / 1e3) + e.timeSkew;
|
|
6552
|
-
if (
|
|
6553
|
-
if (isNaN(
|
|
6552
|
+
if (u) {
|
|
6553
|
+
if (isNaN(u))
|
|
6554
6554
|
throw "Invalid minValidity";
|
|
6555
|
-
p -=
|
|
6555
|
+
p -= u;
|
|
6556
6556
|
}
|
|
6557
6557
|
return p < 0;
|
|
6558
|
-
}, e.updateToken = function(
|
|
6558
|
+
}, e.updateToken = function(u) {
|
|
6559
6559
|
var p = L();
|
|
6560
6560
|
if (!e.refreshToken)
|
|
6561
6561
|
return p.setError(), p.promise;
|
|
6562
|
-
|
|
6562
|
+
u = u || 5;
|
|
6563
6563
|
var w = function() {
|
|
6564
6564
|
var S = !1;
|
|
6565
|
-
if (
|
|
6565
|
+
if (u == -1 ? (S = !0, c("[KEYCLOAK] Refreshing token: forced refresh")) : (!e.tokenParsed || e.isTokenExpired(u)) && (S = !0, c("[KEYCLOAK] Refreshing token: token expired")), !S)
|
|
6566
6566
|
p.setSuccess(!1);
|
|
6567
6567
|
else {
|
|
6568
6568
|
var F = "grant_type=refresh_token&refresh_token=" + e.refreshToken, C = e.endpoints.token();
|
|
@@ -6573,7 +6573,7 @@ function ks(t) {
|
|
|
6573
6573
|
k.onreadystatechange = function() {
|
|
6574
6574
|
if (k.readyState == 4)
|
|
6575
6575
|
if (k.status == 200) {
|
|
6576
|
-
|
|
6576
|
+
c("[KEYCLOAK] Token refreshed"), N = (N + (/* @__PURE__ */ new Date()).getTime()) / 2;
|
|
6577
6577
|
var D = JSON.parse(k.responseText);
|
|
6578
6578
|
fe(D.access_token, D.refresh_token, D.id_token, N), e.onAuthRefreshSuccess && e.onAuthRefreshSuccess();
|
|
6579
6579
|
for (var W = r.pop(); W != null; W = r.pop())
|
|
@@ -6607,20 +6607,20 @@ function ks(t) {
|
|
|
6607
6607
|
function $() {
|
|
6608
6608
|
return window.location.origin ? window.location.origin : window.location.protocol + "//" + window.location.hostname + (window.location.port ? ":" + window.location.port : "");
|
|
6609
6609
|
}
|
|
6610
|
-
function G(
|
|
6611
|
-
var w =
|
|
6612
|
-
if (
|
|
6610
|
+
function G(u, p) {
|
|
6611
|
+
var w = u.code, I = u.error, S = u.prompt, F = (/* @__PURE__ */ new Date()).getTime();
|
|
6612
|
+
if (u.kc_action_status && e.onActionUpdate && e.onActionUpdate(u.kc_action_status), I) {
|
|
6613
6613
|
if (S != "none") {
|
|
6614
|
-
var C = { error: I, error_description:
|
|
6614
|
+
var C = { error: I, error_description: u.error_description };
|
|
6615
6615
|
e.onAuthError && e.onAuthError(C), p && p.setError(C);
|
|
6616
6616
|
} else
|
|
6617
6617
|
p && p.setSuccess();
|
|
6618
6618
|
return;
|
|
6619
6619
|
} else
|
|
6620
|
-
e.flow != "standard" && (
|
|
6620
|
+
e.flow != "standard" && (u.access_token || u.id_token) && W(u.access_token, null, u.id_token, !0);
|
|
6621
6621
|
if (e.flow != "implicit" && w) {
|
|
6622
6622
|
var k = "code=" + w + "&grant_type=authorization_code", N = e.endpoints.token(), D = new XMLHttpRequest();
|
|
6623
|
-
D.open("POST", N, !0), D.setRequestHeader("Content-type", "application/x-www-form-urlencoded"), k += "&client_id=" + encodeURIComponent(e.clientId), k += "&redirect_uri=" +
|
|
6623
|
+
D.open("POST", N, !0), D.setRequestHeader("Content-type", "application/x-www-form-urlencoded"), k += "&client_id=" + encodeURIComponent(e.clientId), k += "&redirect_uri=" + u.redirectUri, u.pkceCodeVerifier && (k += "&code_verifier=" + u.pkceCodeVerifier), D.withCredentials = !0, D.onreadystatechange = function() {
|
|
6624
6624
|
if (D.readyState == 4)
|
|
6625
6625
|
if (D.status == 200) {
|
|
6626
6626
|
var ne = JSON.parse(D.responseText);
|
|
@@ -6630,10 +6630,10 @@ function ks(t) {
|
|
|
6630
6630
|
}, D.send(k);
|
|
6631
6631
|
}
|
|
6632
6632
|
function W(ne, Re, Te, we) {
|
|
6633
|
-
F = (F + (/* @__PURE__ */ new Date()).getTime()) / 2, fe(ne, Re, Te, F), a && (e.tokenParsed && e.tokenParsed.nonce !=
|
|
6633
|
+
F = (F + (/* @__PURE__ */ new Date()).getTime()) / 2, fe(ne, Re, Te, F), a && (e.tokenParsed && e.tokenParsed.nonce != u.storedNonce || e.refreshTokenParsed && e.refreshTokenParsed.nonce != u.storedNonce || e.idTokenParsed && e.idTokenParsed.nonce != u.storedNonce) ? (c("[KEYCLOAK] Invalid nonce, clearing token"), e.clearToken(), p && p.setError()) : we && (e.onAuthSuccess && e.onAuthSuccess(), p && p.setSuccess());
|
|
6634
6634
|
}
|
|
6635
6635
|
}
|
|
6636
|
-
function V(
|
|
6636
|
+
function V(u) {
|
|
6637
6637
|
var p = L(), w;
|
|
6638
6638
|
t ? typeof t == "string" && (w = t) : w = location.origin + "/keycloak.json";
|
|
6639
6639
|
function I(D) {
|
|
@@ -6733,32 +6733,32 @@ function ks(t) {
|
|
|
6733
6733
|
}
|
|
6734
6734
|
return p.promise;
|
|
6735
6735
|
}
|
|
6736
|
-
function ye(
|
|
6737
|
-
return
|
|
6736
|
+
function ye(u) {
|
|
6737
|
+
return u.status == 0 && u.responseText && u.responseURL.startsWith("file:");
|
|
6738
6738
|
}
|
|
6739
|
-
function fe(
|
|
6740
|
-
if (e.tokenTimeoutHandle && (clearTimeout(e.tokenTimeoutHandle), e.tokenTimeoutHandle = null), p ? (e.refreshToken = p, e.refreshTokenParsed = pr(p)) : (delete e.refreshToken, delete e.refreshTokenParsed), w ? (e.idToken = w, e.idTokenParsed = pr(w)) : (delete e.idToken, delete e.idTokenParsed),
|
|
6741
|
-
if (e.token =
|
|
6739
|
+
function fe(u, p, w, I) {
|
|
6740
|
+
if (e.tokenTimeoutHandle && (clearTimeout(e.tokenTimeoutHandle), e.tokenTimeoutHandle = null), p ? (e.refreshToken = p, e.refreshTokenParsed = pr(p)) : (delete e.refreshToken, delete e.refreshTokenParsed), w ? (e.idToken = w, e.idTokenParsed = pr(w)) : (delete e.idToken, delete e.idTokenParsed), u) {
|
|
6741
|
+
if (e.token = u, e.tokenParsed = pr(u), 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, I && (e.timeSkew = Math.floor(I / 1e3) - e.tokenParsed.iat), e.timeSkew != null && (c("[KEYCLOAK] Estimated time difference between browser and server is " + e.timeSkew + " seconds"), e.onTokenExpired)) {
|
|
6742
6742
|
var S = (e.tokenParsed.exp - (/* @__PURE__ */ new Date()).getTime() / 1e3 + e.timeSkew) * 1e3;
|
|
6743
|
-
|
|
6743
|
+
c("[KEYCLOAK] Token expires in " + Math.round(S / 1e3) + " s"), S <= 0 ? e.onTokenExpired() : e.tokenTimeoutHandle = setTimeout(e.onTokenExpired, S);
|
|
6744
6744
|
}
|
|
6745
6745
|
} else
|
|
6746
6746
|
delete e.token, delete e.tokenParsed, delete e.subject, delete e.realmAccess, delete e.resourceAccess, e.authenticated = !1;
|
|
6747
6747
|
}
|
|
6748
6748
|
function g() {
|
|
6749
|
-
var
|
|
6750
|
-
p[14] = "4", p[19] =
|
|
6749
|
+
var u = "0123456789abcdef", p = b(36, u).split("");
|
|
6750
|
+
p[14] = "4", p[19] = u.substr(p[19] & 3 | 8, 1), p[8] = p[13] = p[18] = p[23] = "-";
|
|
6751
6751
|
var w = p.join("");
|
|
6752
6752
|
return w;
|
|
6753
6753
|
}
|
|
6754
|
-
function O(
|
|
6755
|
-
var p = j(
|
|
6754
|
+
function O(u) {
|
|
6755
|
+
var p = j(u);
|
|
6756
6756
|
if (p) {
|
|
6757
6757
|
var w = o.get(p.state);
|
|
6758
6758
|
return w && (p.valid = !0, p.redirectUri = w.redirectUri, p.storedNonce = w.nonce, p.prompt = w.prompt, p.pkceCodeVerifier = w.pkceCodeVerifier), p;
|
|
6759
6759
|
}
|
|
6760
6760
|
}
|
|
6761
|
-
function j(
|
|
6761
|
+
function j(u) {
|
|
6762
6762
|
var p;
|
|
6763
6763
|
switch (e.flow) {
|
|
6764
6764
|
case "standard":
|
|
@@ -6772,8 +6772,8 @@ function ks(t) {
|
|
|
6772
6772
|
break;
|
|
6773
6773
|
}
|
|
6774
6774
|
p.push("error"), p.push("error_description"), p.push("error_uri");
|
|
6775
|
-
var w =
|
|
6776
|
-
if (e.responseMode === "query" && w !== -1 ? (S =
|
|
6775
|
+
var w = u.indexOf("?"), I = u.indexOf("#"), S, F;
|
|
6776
|
+
if (e.responseMode === "query" && w !== -1 ? (S = u.substring(0, w), F = R(u.substring(w + 1, I !== -1 ? I : u.length), p), F.paramsString !== "" && (S += "?" + F.paramsString), I !== -1 && (S += u.substring(I))) : e.responseMode === "fragment" && I !== -1 && (S = u.substring(0, I), F = R(u.substring(I + 1), p), F.paramsString !== "" && (S += "#" + F.paramsString)), F && F.oauthParams) {
|
|
6777
6777
|
if (e.flow === "standard" || e.flow === "hybrid") {
|
|
6778
6778
|
if ((F.oauthParams.code || F.oauthParams.error) && F.oauthParams.state)
|
|
6779
6779
|
return F.oauthParams.newUrl = S, F.oauthParams;
|
|
@@ -6781,8 +6781,8 @@ function ks(t) {
|
|
|
6781
6781
|
return F.oauthParams.newUrl = S, F.oauthParams;
|
|
6782
6782
|
}
|
|
6783
6783
|
}
|
|
6784
|
-
function R(
|
|
6785
|
-
for (var w =
|
|
6784
|
+
function R(u, p) {
|
|
6785
|
+
for (var w = u.split("&"), I = {
|
|
6786
6786
|
paramsString: "",
|
|
6787
6787
|
oauthParams: {}
|
|
6788
6788
|
}, S = 0; S < w.length; S++) {
|
|
@@ -6792,36 +6792,36 @@ function ks(t) {
|
|
|
6792
6792
|
return I;
|
|
6793
6793
|
}
|
|
6794
6794
|
function L() {
|
|
6795
|
-
var
|
|
6795
|
+
var u = {
|
|
6796
6796
|
setSuccess: function(p) {
|
|
6797
|
-
|
|
6797
|
+
u.resolve(p);
|
|
6798
6798
|
},
|
|
6799
6799
|
setError: function(p) {
|
|
6800
|
-
|
|
6800
|
+
u.reject(p);
|
|
6801
6801
|
}
|
|
6802
6802
|
};
|
|
6803
|
-
return
|
|
6804
|
-
|
|
6805
|
-
}),
|
|
6803
|
+
return u.promise = new Promise(function(p, w) {
|
|
6804
|
+
u.resolve = p, u.reject = w;
|
|
6805
|
+
}), u;
|
|
6806
6806
|
}
|
|
6807
|
-
function P(
|
|
6807
|
+
function P(u, p, w) {
|
|
6808
6808
|
var I = null, S = new Promise(function(F, C) {
|
|
6809
6809
|
I = setTimeout(function() {
|
|
6810
6810
|
C({ error: w || "Promise is not settled within timeout of " + p + "ms" });
|
|
6811
6811
|
}, p);
|
|
6812
6812
|
});
|
|
6813
|
-
return Promise.race([
|
|
6813
|
+
return Promise.race([u, S]).finally(function() {
|
|
6814
6814
|
clearTimeout(I);
|
|
6815
6815
|
});
|
|
6816
6816
|
}
|
|
6817
6817
|
function q() {
|
|
6818
|
-
var
|
|
6818
|
+
var u = L();
|
|
6819
6819
|
if (!i.enable || i.iframe)
|
|
6820
|
-
return
|
|
6820
|
+
return u.setSuccess(), u.promise;
|
|
6821
6821
|
var p = document.createElement("iframe");
|
|
6822
6822
|
i.iframe = p, p.onload = function() {
|
|
6823
6823
|
var S = e.endpoints.authorize();
|
|
6824
|
-
S.charAt(0) === "/" ? i.iframeOrigin = $() : i.iframeOrigin = S.substring(0, S.indexOf("/", 8)),
|
|
6824
|
+
S.charAt(0) === "/" ? i.iframeOrigin = $() : i.iframeOrigin = S.substring(0, S.indexOf("/", 8)), u.setSuccess();
|
|
6825
6825
|
};
|
|
6826
6826
|
var w = e.endpoints.checkSessionIframe();
|
|
6827
6827
|
p.setAttribute("src", w), p.setAttribute("sandbox", "allow-scripts allow-same-origin"), p.setAttribute("title", "keycloak-session-iframe"), p.style.display = "none", document.body.appendChild(p);
|
|
@@ -6834,28 +6834,28 @@ function ks(t) {
|
|
|
6834
6834
|
}
|
|
6835
6835
|
}
|
|
6836
6836
|
};
|
|
6837
|
-
return window.addEventListener("message", I, !1),
|
|
6837
|
+
return window.addEventListener("message", I, !1), u.promise;
|
|
6838
6838
|
}
|
|
6839
6839
|
function E() {
|
|
6840
6840
|
i.enable && e.token && setTimeout(function() {
|
|
6841
|
-
J().then(function(
|
|
6842
|
-
|
|
6841
|
+
J().then(function(u) {
|
|
6842
|
+
u && E();
|
|
6843
6843
|
});
|
|
6844
6844
|
}, i.interval * 1e3);
|
|
6845
6845
|
}
|
|
6846
6846
|
function J() {
|
|
6847
|
-
var
|
|
6847
|
+
var u = L();
|
|
6848
6848
|
if (i.iframe && i.iframeOrigin) {
|
|
6849
6849
|
var p = e.clientId + " " + (e.sessionId ? e.sessionId : "");
|
|
6850
|
-
i.callbackList.push(
|
|
6850
|
+
i.callbackList.push(u);
|
|
6851
6851
|
var w = i.iframeOrigin;
|
|
6852
6852
|
i.callbackList.length == 1 && i.iframe.contentWindow.postMessage(p, w);
|
|
6853
6853
|
} else
|
|
6854
|
-
|
|
6855
|
-
return
|
|
6854
|
+
u.setSuccess();
|
|
6855
|
+
return u.promise;
|
|
6856
6856
|
}
|
|
6857
6857
|
function ae() {
|
|
6858
|
-
var
|
|
6858
|
+
var u = L();
|
|
6859
6859
|
if (i.enable || e.silentCheckSsoRedirectUri) {
|
|
6860
6860
|
var p = document.createElement("iframe");
|
|
6861
6861
|
p.setAttribute("src", e.endpoints.thirdPartyCookiesIframe()), p.setAttribute("sandbox", "allow-scripts allow-same-origin"), p.setAttribute("title", "keycloak-3p-check-iframe"), p.style.display = "none", document.body.appendChild(p);
|
|
@@ -6867,15 +6867,15 @@ function ks(t) {
|
|
|
6867
6867
|
- It is not possible to automatically detect changes to the session status (such as the user logging out in another tab).
|
|
6868
6868
|
|
|
6869
6869
|
For more information see: https://www.keycloak.org/docs/latest/securing_apps/#_modern_browsers`
|
|
6870
|
-
), i.enable = !1, e.silentCheckSsoFallback && (e.silentCheckSsoRedirectUri = !1)), document.body.removeChild(p), window.removeEventListener("message", w),
|
|
6870
|
+
), i.enable = !1, e.silentCheckSsoFallback && (e.silentCheckSsoRedirectUri = !1)), document.body.removeChild(p), window.removeEventListener("message", w), u.setSuccess()));
|
|
6871
6871
|
};
|
|
6872
6872
|
window.addEventListener("message", w, !1);
|
|
6873
6873
|
} else
|
|
6874
|
-
|
|
6875
|
-
return P(
|
|
6874
|
+
u.setSuccess();
|
|
6875
|
+
return P(u.promise, e.messageReceiveTimeout, "Timeout when waiting for 3rd party check iframe message.");
|
|
6876
6876
|
}
|
|
6877
|
-
function de(
|
|
6878
|
-
if (!
|
|
6877
|
+
function de(u) {
|
|
6878
|
+
if (!u || u == "default")
|
|
6879
6879
|
return {
|
|
6880
6880
|
login: function(C) {
|
|
6881
6881
|
return window.location.assign(e.createLoginUrl(C)), L().promise;
|
|
@@ -6898,7 +6898,7 @@ For more information see: https://www.keycloak.org/docs/latest/securing_apps/#_m
|
|
|
6898
6898
|
return C && C.redirectUri ? C.redirectUri : e.redirectUri ? e.redirectUri : location.href;
|
|
6899
6899
|
}
|
|
6900
6900
|
};
|
|
6901
|
-
if (
|
|
6901
|
+
if (u == "cordova") {
|
|
6902
6902
|
i.enable = !1;
|
|
6903
6903
|
var p = function(C, k, N) {
|
|
6904
6904
|
return window.cordova && window.cordova.InAppBrowser ? window.cordova.InAppBrowser.open(C, k, N) : window.open(C, k, N);
|
|
@@ -6974,7 +6974,7 @@ For more information see: https://www.keycloak.org/docs/latest/securing_apps/#_m
|
|
|
6974
6974
|
}
|
|
6975
6975
|
};
|
|
6976
6976
|
}
|
|
6977
|
-
if (
|
|
6977
|
+
if (u == "cordova-native")
|
|
6978
6978
|
return i.enable = !1, {
|
|
6979
6979
|
login: function(C) {
|
|
6980
6980
|
var k = L(), N = e.createLoginUrl(C);
|
|
@@ -7009,13 +7009,13 @@ For more information see: https://www.keycloak.org/docs/latest/securing_apps/#_m
|
|
|
7009
7009
|
return C && C.redirectUri ? C.redirectUri : e.redirectUri ? e.redirectUri : "http://localhost";
|
|
7010
7010
|
}
|
|
7011
7011
|
};
|
|
7012
|
-
throw "invalid adapter type: " +
|
|
7012
|
+
throw "invalid adapter type: " + u;
|
|
7013
7013
|
}
|
|
7014
7014
|
var he = function() {
|
|
7015
7015
|
if (!(this instanceof he))
|
|
7016
7016
|
return new he();
|
|
7017
7017
|
localStorage.setItem("kc-test", "test"), localStorage.removeItem("kc-test");
|
|
7018
|
-
var
|
|
7018
|
+
var u = this;
|
|
7019
7019
|
function p() {
|
|
7020
7020
|
for (var w = (/* @__PURE__ */ new Date()).getTime(), I = 0; I < localStorage.length; I++) {
|
|
7021
7021
|
var S = localStorage.key(I);
|
|
@@ -7031,12 +7031,12 @@ For more information see: https://www.keycloak.org/docs/latest/securing_apps/#_m
|
|
|
7031
7031
|
}
|
|
7032
7032
|
}
|
|
7033
7033
|
}
|
|
7034
|
-
|
|
7034
|
+
u.get = function(w) {
|
|
7035
7035
|
if (w) {
|
|
7036
7036
|
var I = "kc-callback-" + w, S = localStorage.getItem(I);
|
|
7037
7037
|
return S && (localStorage.removeItem(I), S = JSON.parse(S)), p(), S;
|
|
7038
7038
|
}
|
|
7039
|
-
},
|
|
7039
|
+
}, u.add = function(w) {
|
|
7040
7040
|
p();
|
|
7041
7041
|
var I = "kc-callback-" + w.state;
|
|
7042
7042
|
w.expires = (/* @__PURE__ */ new Date()).getTime() + 60 * 60 * 1e3, localStorage.setItem(I, JSON.stringify(w));
|
|
@@ -7044,16 +7044,16 @@ For more information see: https://www.keycloak.org/docs/latest/securing_apps/#_m
|
|
|
7044
7044
|
}, ke = function() {
|
|
7045
7045
|
if (!(this instanceof ke))
|
|
7046
7046
|
return new ke();
|
|
7047
|
-
var
|
|
7048
|
-
|
|
7047
|
+
var u = this;
|
|
7048
|
+
u.get = function(S) {
|
|
7049
7049
|
if (S) {
|
|
7050
7050
|
var F = w("kc-callback-" + S);
|
|
7051
7051
|
if (I("kc-callback-" + S, "", p(-100)), F)
|
|
7052
7052
|
return JSON.parse(F);
|
|
7053
7053
|
}
|
|
7054
|
-
},
|
|
7054
|
+
}, u.add = function(S) {
|
|
7055
7055
|
I("kc-callback-" + S.state, JSON.stringify(S), p(60));
|
|
7056
|
-
},
|
|
7056
|
+
}, u.removeItem = function(S) {
|
|
7057
7057
|
I(S, "", p(-100));
|
|
7058
7058
|
};
|
|
7059
7059
|
var p = function(S) {
|
|
@@ -7079,9 +7079,9 @@ For more information see: https://www.keycloak.org/docs/latest/securing_apps/#_m
|
|
|
7079
7079
|
}
|
|
7080
7080
|
return new ke();
|
|
7081
7081
|
}
|
|
7082
|
-
function Le(
|
|
7082
|
+
function Le(u) {
|
|
7083
7083
|
return function() {
|
|
7084
|
-
e.enableLogging &&
|
|
7084
|
+
e.enableLogging && u.apply(console, Array.prototype.slice.call(arguments));
|
|
7085
7085
|
};
|
|
7086
7086
|
}
|
|
7087
7087
|
}
|
|
@@ -7099,10 +7099,10 @@ function kh(t) {
|
|
|
7099
7099
|
return s.onLoad === "login-required" && document.documentElement.setAttribute(
|
|
7100
7100
|
"data-app-message",
|
|
7101
7101
|
"Autorizando..."
|
|
7102
|
-
), e.init(s).then(async (
|
|
7103
|
-
|
|
7104
|
-
}).catch((
|
|
7105
|
-
console.error(
|
|
7102
|
+
), e.init(s).then(async (c) => {
|
|
7103
|
+
c && await o(), l && typeof l == "function" && l(), document.documentElement.classList.add("app-mounted");
|
|
7104
|
+
}).catch((c) => {
|
|
7105
|
+
console.error(c), document.documentElement.setAttribute(
|
|
7106
7106
|
"data-app-message",
|
|
7107
7107
|
"Não foi possível conectar no servidor de autenticação."
|
|
7108
7108
|
);
|
|
@@ -7165,7 +7165,7 @@ function Ts(t, e) {
|
|
|
7165
7165
|
const { toString: Th } = Object.prototype, { getPrototypeOf: no } = Object, Vn = /* @__PURE__ */ ((t) => (e) => {
|
|
7166
7166
|
const n = Th.call(e);
|
|
7167
7167
|
return t[n] || (t[n] = n.slice(8, -1).toLowerCase());
|
|
7168
|
-
})(/* @__PURE__ */ Object.create(null)), ot = (t) => (t = t.toLowerCase(), (e) => Vn(e) === t), Kn = (t) => (e) => typeof e === t, { isArray:
|
|
7168
|
+
})(/* @__PURE__ */ Object.create(null)), ot = (t) => (t = t.toLowerCase(), (e) => Vn(e) === t), Kn = (t) => (e) => typeof e === t, { isArray: Ut } = Array, cn = Kn("undefined");
|
|
7169
7169
|
function Ph(t) {
|
|
7170
7170
|
return t !== null && !cn(t) && t.constructor !== null && !cn(t.constructor) && Ge(t.constructor.isBuffer) && t.constructor.isBuffer(t);
|
|
7171
7171
|
}
|
|
@@ -7188,7 +7188,7 @@ function vn(t, e, { allOwnKeys: n = !1 } = {}) {
|
|
|
7188
7188
|
if (t === null || typeof t > "u")
|
|
7189
7189
|
return;
|
|
7190
7190
|
let r, o;
|
|
7191
|
-
if (typeof t != "object" && (t = [t]),
|
|
7191
|
+
if (typeof t != "object" && (t = [t]), Ut(t))
|
|
7192
7192
|
for (r = 0, o = t.length; r < o; r++)
|
|
7193
7193
|
e.call(null, t[r], r, t);
|
|
7194
7194
|
else {
|
|
@@ -7211,7 +7211,7 @@ const Rs = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typ
|
|
|
7211
7211
|
function Rr() {
|
|
7212
7212
|
const { caseless: t } = Fs(this) && this || {}, e = {}, n = (r, o) => {
|
|
7213
7213
|
const i = t && Ls(e, o) || o;
|
|
7214
|
-
Tn(e[i]) && Tn(r) ? e[i] = Rr(e[i], r) : Tn(r) ? e[i] = Rr({}, r) :
|
|
7214
|
+
Tn(e[i]) && Tn(r) ? e[i] = Rr(e[i], r) : Tn(r) ? e[i] = Rr({}, r) : Ut(r) ? e[i] = r.slice() : e[i] = r;
|
|
7215
7215
|
};
|
|
7216
7216
|
for (let r = 0, o = arguments.length; r < o; r++)
|
|
7217
7217
|
arguments[r] && vn(arguments[r], n);
|
|
@@ -7241,7 +7241,7 @@ const jh = (t, e, n, { allOwnKeys: r } = {}) => (vn(e, (o, i) => {
|
|
|
7241
7241
|
}, qh = (t) => {
|
|
7242
7242
|
if (!t)
|
|
7243
7243
|
return null;
|
|
7244
|
-
if (
|
|
7244
|
+
if (Ut(t))
|
|
7245
7245
|
return t;
|
|
7246
7246
|
let e = t.length;
|
|
7247
7247
|
if (!Os(e))
|
|
@@ -7295,7 +7295,7 @@ const jh = (t, e, n, { allOwnKeys: r } = {}) => (vn(e, (o, i) => {
|
|
|
7295
7295
|
n[i] = !0;
|
|
7296
7296
|
});
|
|
7297
7297
|
};
|
|
7298
|
-
return
|
|
7298
|
+
return Ut(t) ? r(t) : r(String(t).split(e)), n;
|
|
7299
7299
|
}, np = () => {
|
|
7300
7300
|
}, rp = (t, e) => (t = +t, Number.isFinite(t) ? t : e), mr = "abcdefghijklmnopqrstuvwxyz", bi = "0123456789", Ds = {
|
|
7301
7301
|
DIGIT: bi,
|
|
@@ -7318,7 +7318,7 @@ const sp = (t) => {
|
|
|
7318
7318
|
return;
|
|
7319
7319
|
if (!("toJSON" in r)) {
|
|
7320
7320
|
e[o] = r;
|
|
7321
|
-
const i =
|
|
7321
|
+
const i = Ut(r) ? [] : {};
|
|
7322
7322
|
return vn(r, (s, l) => {
|
|
7323
7323
|
const a = n(s, o + 1);
|
|
7324
7324
|
!cn(a) && (i[l] = a);
|
|
@@ -7329,7 +7329,7 @@ const sp = (t) => {
|
|
|
7329
7329
|
};
|
|
7330
7330
|
return n(t, 0);
|
|
7331
7331
|
}, ap = ot("AsyncFunction"), lp = (t) => t && (Wn(t) || Ge(t)) && Ge(t.then) && Ge(t.catch), v = {
|
|
7332
|
-
isArray:
|
|
7332
|
+
isArray: Ut,
|
|
7333
7333
|
isArrayBuffer: Ps,
|
|
7334
7334
|
isBuffer: Ph,
|
|
7335
7335
|
isFormData: Mh,
|
|
@@ -7463,7 +7463,7 @@ function zn(t, e, n) {
|
|
|
7463
7463
|
const r = n.metaTokens, o = n.visitor || d, i = n.dots, s = n.indexes, a = (n.Blob || typeof Blob < "u" && Blob) && v.isSpecCompliantForm(e);
|
|
7464
7464
|
if (!v.isFunction(o))
|
|
7465
7465
|
throw new TypeError("visitor must be a function");
|
|
7466
|
-
function
|
|
7466
|
+
function c(_) {
|
|
7467
7467
|
if (_ === null)
|
|
7468
7468
|
return "";
|
|
7469
7469
|
if (v.isDate(_))
|
|
@@ -7482,15 +7482,15 @@ function zn(t, e, n) {
|
|
|
7482
7482
|
!(v.isUndefined(V) || V === null) && e.append(
|
|
7483
7483
|
// eslint-disable-next-line no-nested-ternary
|
|
7484
7484
|
s === !0 ? wi([x], ye, i) : s === null ? x : x + "[]",
|
|
7485
|
-
|
|
7485
|
+
c(V)
|
|
7486
7486
|
);
|
|
7487
7487
|
}), !1;
|
|
7488
7488
|
}
|
|
7489
|
-
return Fr(_) ? !0 : (e.append(wi(A, x, i),
|
|
7489
|
+
return Fr(_) ? !0 : (e.append(wi(A, x, i), c(_)), !1);
|
|
7490
7490
|
}
|
|
7491
7491
|
const f = [], y = Object.assign(dp, {
|
|
7492
7492
|
defaultVisitor: d,
|
|
7493
|
-
convertValue:
|
|
7493
|
+
convertValue: c,
|
|
7494
7494
|
isVisitable: Fr
|
|
7495
7495
|
});
|
|
7496
7496
|
function b(_, x) {
|
|
@@ -7769,7 +7769,7 @@ const io = oo, Ep = v.toObjectSet([
|
|
|
7769
7769
|
o = s.indexOf(":"), n = s.substring(0, o).trim().toLowerCase(), r = s.substring(o + 1).trim(), !(!n || e[n] && Ep[n]) && (n === "set-cookie" ? e[n] ? e[n].push(r) : e[n] = [r] : e[n] = e[n] ? e[n] + ", " + r : r);
|
|
7770
7770
|
}), e;
|
|
7771
7771
|
}, _i = Symbol("internals");
|
|
7772
|
-
function
|
|
7772
|
+
function qt(t) {
|
|
7773
7773
|
return t && String(t).trim().toLowerCase();
|
|
7774
7774
|
}
|
|
7775
7775
|
function Pn(t) {
|
|
@@ -7813,18 +7813,18 @@ class qn {
|
|
|
7813
7813
|
}
|
|
7814
7814
|
set(e, n, r) {
|
|
7815
7815
|
const o = this;
|
|
7816
|
-
function i(l, a,
|
|
7817
|
-
const d =
|
|
7816
|
+
function i(l, a, c) {
|
|
7817
|
+
const d = qt(a);
|
|
7818
7818
|
if (!d)
|
|
7819
7819
|
throw new Error("header name must be a non-empty string");
|
|
7820
7820
|
const f = v.findKey(o, d);
|
|
7821
|
-
(!f || o[f] === void 0 ||
|
|
7821
|
+
(!f || o[f] === void 0 || c === !0 || c === void 0 && o[f] !== !1) && (o[f || a] = Pn(l));
|
|
7822
7822
|
}
|
|
7823
|
-
const s = (l, a) => v.forEach(l, (
|
|
7823
|
+
const s = (l, a) => v.forEach(l, (c, d) => i(c, d, a));
|
|
7824
7824
|
return v.isPlainObject(e) || e instanceof this.constructor ? s(e, n) : v.isString(e) && (e = e.trim()) && !Ip(e) ? s(Cp(e), n) : e != null && i(n, e, r), this;
|
|
7825
7825
|
}
|
|
7826
7826
|
get(e, n) {
|
|
7827
|
-
if (e =
|
|
7827
|
+
if (e = qt(e), e) {
|
|
7828
7828
|
const r = v.findKey(this, e);
|
|
7829
7829
|
if (r) {
|
|
7830
7830
|
const o = this[r];
|
|
@@ -7841,7 +7841,7 @@ class qn {
|
|
|
7841
7841
|
}
|
|
7842
7842
|
}
|
|
7843
7843
|
has(e, n) {
|
|
7844
|
-
if (e =
|
|
7844
|
+
if (e = qt(e), e) {
|
|
7845
7845
|
const r = v.findKey(this, e);
|
|
7846
7846
|
return !!(r && this[r] !== void 0 && (!n || gr(this, this[r], r, n)));
|
|
7847
7847
|
}
|
|
@@ -7851,7 +7851,7 @@ class qn {
|
|
|
7851
7851
|
const r = this;
|
|
7852
7852
|
let o = !1;
|
|
7853
7853
|
function i(s) {
|
|
7854
|
-
if (s =
|
|
7854
|
+
if (s = qt(s), s) {
|
|
7855
7855
|
const l = v.findKey(r, s);
|
|
7856
7856
|
l && (!n || gr(r, r[l], l, n)) && (delete r[l], o = !0);
|
|
7857
7857
|
}
|
|
@@ -7910,7 +7910,7 @@ class qn {
|
|
|
7910
7910
|
accessors: {}
|
|
7911
7911
|
}).accessors, o = this.prototype;
|
|
7912
7912
|
function i(s) {
|
|
7913
|
-
const l =
|
|
7913
|
+
const l = qt(s);
|
|
7914
7914
|
r[l] || (Tp(o, s), r[l] = !0);
|
|
7915
7915
|
}
|
|
7916
7916
|
return v.isArray(e) ? e.forEach(i) : i(e), this;
|
|
@@ -8031,14 +8031,14 @@ function Dp(t, e) {
|
|
|
8031
8031
|
const n = new Array(t), r = new Array(t);
|
|
8032
8032
|
let o = 0, i = 0, s;
|
|
8033
8033
|
return e = e !== void 0 ? e : 1e3, function(a) {
|
|
8034
|
-
const
|
|
8035
|
-
s || (s =
|
|
8034
|
+
const c = Date.now(), d = r[i];
|
|
8035
|
+
s || (s = c), n[o] = a, r[o] = c;
|
|
8036
8036
|
let f = i, y = 0;
|
|
8037
8037
|
for (; f !== o; )
|
|
8038
8038
|
y += n[f++], f = f % t;
|
|
8039
|
-
if (o = (o + 1) % t, o === i && (i = (i + 1) % t),
|
|
8039
|
+
if (o = (o + 1) % t, o === i && (i = (i + 1) % t), c - s < e)
|
|
8040
8040
|
return;
|
|
8041
|
-
const b = d &&
|
|
8041
|
+
const b = d && c - d;
|
|
8042
8042
|
return b ? Math.round(y * 1e3 / b) : void 0;
|
|
8043
8043
|
};
|
|
8044
8044
|
}
|
|
@@ -8046,7 +8046,7 @@ function Ei(t, e) {
|
|
|
8046
8046
|
let n = 0;
|
|
8047
8047
|
const r = Dp(50, 250);
|
|
8048
8048
|
return (o) => {
|
|
8049
|
-
const i = o.loaded, s = o.lengthComputable ? o.total : void 0, l = i - n, a = r(l),
|
|
8049
|
+
const i = o.loaded, s = o.lengthComputable ? o.total : void 0, l = i - n, a = r(l), c = i <= s;
|
|
8050
8050
|
n = i;
|
|
8051
8051
|
const d = {
|
|
8052
8052
|
loaded: i,
|
|
@@ -8054,7 +8054,7 @@ function Ei(t, e) {
|
|
|
8054
8054
|
progress: s ? i / s : void 0,
|
|
8055
8055
|
bytes: l,
|
|
8056
8056
|
rate: a || void 0,
|
|
8057
|
-
estimated: a && s &&
|
|
8057
|
+
estimated: a && s && c ? (s - i) / a : void 0,
|
|
8058
8058
|
event: o
|
|
8059
8059
|
};
|
|
8060
8060
|
d[e ? "download" : "upload"] = !0, t(d);
|
|
@@ -8065,7 +8065,7 @@ const Bp = typeof XMLHttpRequest < "u", Np = Bp && function(t) {
|
|
|
8065
8065
|
let o = t.data;
|
|
8066
8066
|
const i = lt.from(t.headers).normalize();
|
|
8067
8067
|
let { responseType: s, withXSRFToken: l } = t, a;
|
|
8068
|
-
function
|
|
8068
|
+
function c() {
|
|
8069
8069
|
t.cancelToken && t.cancelToken.unsubscribe(a), t.signal && t.signal.removeEventListener("abort", a);
|
|
8070
8070
|
}
|
|
8071
8071
|
let d;
|
|
@@ -8098,9 +8098,9 @@ const Bp = typeof XMLHttpRequest < "u", Np = Bp && function(t) {
|
|
|
8098
8098
|
request: f
|
|
8099
8099
|
};
|
|
8100
8100
|
Pp(function(V) {
|
|
8101
|
-
n(V),
|
|
8101
|
+
n(V), c();
|
|
8102
8102
|
}, function(V) {
|
|
8103
|
-
r(V),
|
|
8103
|
+
r(V), c();
|
|
8104
8104
|
}, $), f = null;
|
|
8105
8105
|
}
|
|
8106
8106
|
if ("onloadend" in f ? f.onloadend = b : f.onreadystatechange = function() {
|
|
@@ -8201,35 +8201,35 @@ function xi(t) {
|
|
|
8201
8201
|
});
|
|
8202
8202
|
}
|
|
8203
8203
|
const Ii = (t) => t instanceof lt ? t.toJSON() : t;
|
|
8204
|
-
function
|
|
8204
|
+
function $t(t, e) {
|
|
8205
8205
|
e = e || {};
|
|
8206
8206
|
const n = {};
|
|
8207
|
-
function r(
|
|
8208
|
-
return v.isPlainObject(
|
|
8207
|
+
function r(c, d, f) {
|
|
8208
|
+
return v.isPlainObject(c) && v.isPlainObject(d) ? v.merge.call({ caseless: f }, c, d) : v.isPlainObject(d) ? v.merge({}, d) : v.isArray(d) ? d.slice() : d;
|
|
8209
8209
|
}
|
|
8210
|
-
function o(
|
|
8210
|
+
function o(c, d, f) {
|
|
8211
8211
|
if (v.isUndefined(d)) {
|
|
8212
|
-
if (!v.isUndefined(
|
|
8213
|
-
return r(void 0,
|
|
8212
|
+
if (!v.isUndefined(c))
|
|
8213
|
+
return r(void 0, c, f);
|
|
8214
8214
|
} else
|
|
8215
|
-
return r(
|
|
8215
|
+
return r(c, d, f);
|
|
8216
8216
|
}
|
|
8217
|
-
function i(
|
|
8217
|
+
function i(c, d) {
|
|
8218
8218
|
if (!v.isUndefined(d))
|
|
8219
8219
|
return r(void 0, d);
|
|
8220
8220
|
}
|
|
8221
|
-
function s(
|
|
8221
|
+
function s(c, d) {
|
|
8222
8222
|
if (v.isUndefined(d)) {
|
|
8223
|
-
if (!v.isUndefined(
|
|
8224
|
-
return r(void 0,
|
|
8223
|
+
if (!v.isUndefined(c))
|
|
8224
|
+
return r(void 0, c);
|
|
8225
8225
|
} else
|
|
8226
8226
|
return r(void 0, d);
|
|
8227
8227
|
}
|
|
8228
|
-
function l(
|
|
8228
|
+
function l(c, d, f) {
|
|
8229
8229
|
if (f in e)
|
|
8230
|
-
return r(
|
|
8230
|
+
return r(c, d);
|
|
8231
8231
|
if (f in t)
|
|
8232
|
-
return r(void 0,
|
|
8232
|
+
return r(void 0, c);
|
|
8233
8233
|
}
|
|
8234
8234
|
const a = {
|
|
8235
8235
|
url: i,
|
|
@@ -8260,7 +8260,7 @@ function Ft(t, e) {
|
|
|
8260
8260
|
socketPath: s,
|
|
8261
8261
|
responseEncoding: s,
|
|
8262
8262
|
validateStatus: l,
|
|
8263
|
-
headers: (
|
|
8263
|
+
headers: (c, d) => o(Ii(c), Ii(d), !0)
|
|
8264
8264
|
};
|
|
8265
8265
|
return v.forEach(Object.keys(Object.assign({}, t, e)), function(d) {
|
|
8266
8266
|
const f = a[d] || o, y = f(t[d], e[d], d);
|
|
@@ -8329,7 +8329,7 @@ class $n {
|
|
|
8329
8329
|
* @returns {Promise} The Promise to be fulfilled
|
|
8330
8330
|
*/
|
|
8331
8331
|
request(e, n) {
|
|
8332
|
-
typeof e == "string" ? (n = n || {}, n.url = e) : n = e || {}, n =
|
|
8332
|
+
typeof e == "string" ? (n = n || {}, n.url = e) : n = e || {}, n = $t(this.defaults, n);
|
|
8333
8333
|
const { transitional: r, paramsSerializer: o, headers: i } = n;
|
|
8334
8334
|
r !== void 0 && Dr.assertOptions(r, {
|
|
8335
8335
|
silentJSONParsing: ut.transitional(ut.boolean),
|
|
@@ -8356,14 +8356,14 @@ class $n {
|
|
|
8356
8356
|
this.interceptors.request.forEach(function(x) {
|
|
8357
8357
|
typeof x.runWhen == "function" && x.runWhen(n) === !1 || (a = a && x.synchronous, l.unshift(x.fulfilled, x.rejected));
|
|
8358
8358
|
});
|
|
8359
|
-
const
|
|
8359
|
+
const c = [];
|
|
8360
8360
|
this.interceptors.response.forEach(function(x) {
|
|
8361
|
-
|
|
8361
|
+
c.push(x.fulfilled, x.rejected);
|
|
8362
8362
|
});
|
|
8363
8363
|
let d, f = 0, y;
|
|
8364
8364
|
if (!a) {
|
|
8365
8365
|
const _ = [xi.bind(this), void 0];
|
|
8366
|
-
for (_.unshift.apply(_, l), _.push.apply(_,
|
|
8366
|
+
for (_.unshift.apply(_, l), _.push.apply(_, c), y = _.length, d = Promise.resolve(n); f < y; )
|
|
8367
8367
|
d = d.then(_[f++], _[f++]);
|
|
8368
8368
|
return d;
|
|
8369
8369
|
}
|
|
@@ -8383,19 +8383,19 @@ class $n {
|
|
|
8383
8383
|
} catch (_) {
|
|
8384
8384
|
return Promise.reject(_);
|
|
8385
8385
|
}
|
|
8386
|
-
for (f = 0, y =
|
|
8387
|
-
d = d.then(
|
|
8386
|
+
for (f = 0, y = c.length; f < y; )
|
|
8387
|
+
d = d.then(c[f++], c[f++]);
|
|
8388
8388
|
return d;
|
|
8389
8389
|
}
|
|
8390
8390
|
getUri(e) {
|
|
8391
|
-
e =
|
|
8391
|
+
e = $t(this.defaults, e);
|
|
8392
8392
|
const n = zs(e.baseURL, e.url);
|
|
8393
8393
|
return Hs(n, e.params, e.paramsSerializer);
|
|
8394
8394
|
}
|
|
8395
8395
|
}
|
|
8396
8396
|
v.forEach(["delete", "get", "head", "options"], function(e) {
|
|
8397
8397
|
$n.prototype[e] = function(n, r) {
|
|
8398
|
-
return this.request(
|
|
8398
|
+
return this.request($t(r || {}, {
|
|
8399
8399
|
method: e,
|
|
8400
8400
|
url: n,
|
|
8401
8401
|
data: (r || {}).data
|
|
@@ -8405,7 +8405,7 @@ v.forEach(["delete", "get", "head", "options"], function(e) {
|
|
|
8405
8405
|
v.forEach(["post", "put", "patch"], function(e) {
|
|
8406
8406
|
function n(r) {
|
|
8407
8407
|
return function(i, s, l) {
|
|
8408
|
-
return this.request(
|
|
8408
|
+
return this.request($t(l || {}, {
|
|
8409
8409
|
method: e,
|
|
8410
8410
|
headers: r ? {
|
|
8411
8411
|
"Content-Type": "multipart/form-data"
|
|
@@ -8567,7 +8567,7 @@ const Kp = Br;
|
|
|
8567
8567
|
function Js(t) {
|
|
8568
8568
|
const e = new On(t), n = Ts(On.prototype.request, e);
|
|
8569
8569
|
return v.extend(n, On.prototype, e, { allOwnKeys: !0 }), v.extend(n, e, null, { allOwnKeys: !0 }), n.create = function(o) {
|
|
8570
|
-
return Js(
|
|
8570
|
+
return Js($t(t, o));
|
|
8571
8571
|
}, n;
|
|
8572
8572
|
}
|
|
8573
8573
|
const ge = Js(io);
|
|
@@ -8584,7 +8584,7 @@ ge.all = function(e) {
|
|
|
8584
8584
|
};
|
|
8585
8585
|
ge.spread = jp;
|
|
8586
8586
|
ge.isAxiosError = Vp;
|
|
8587
|
-
ge.mergeConfig =
|
|
8587
|
+
ge.mergeConfig = $t;
|
|
8588
8588
|
ge.AxiosHeaders = lt;
|
|
8589
8589
|
ge.formToJSON = (t) => Ks(v.isHTMLForm(t) ? new FormData(t) : t);
|
|
8590
8590
|
ge.getAdapter = qs.getAdapter;
|
|
@@ -8643,14 +8643,14 @@ class Wp {
|
|
|
8643
8643
|
e(!1);
|
|
8644
8644
|
return;
|
|
8645
8645
|
}
|
|
8646
|
-
const
|
|
8647
|
-
|
|
8646
|
+
const c = new XMLHttpRequest();
|
|
8647
|
+
c.open("POST", this.tokenExchangeUrl, !0), c.setRequestHeader(
|
|
8648
8648
|
"Content-type",
|
|
8649
8649
|
"application/x-www-form-urlencoded"
|
|
8650
|
-
),
|
|
8651
|
-
if (
|
|
8652
|
-
if (
|
|
8653
|
-
const d = JSON.parse(
|
|
8650
|
+
), c.onreadystatechange = () => {
|
|
8651
|
+
if (c.readyState === 4) {
|
|
8652
|
+
if (c.status === 200) {
|
|
8653
|
+
const d = JSON.parse(c.responseText);
|
|
8654
8654
|
this.keycloak.setToken(
|
|
8655
8655
|
d.access_token,
|
|
8656
8656
|
null,
|
|
@@ -8661,7 +8661,7 @@ class Wp {
|
|
|
8661
8661
|
}
|
|
8662
8662
|
e(!1);
|
|
8663
8663
|
}
|
|
8664
|
-
},
|
|
8664
|
+
}, c.send(this.TokenExchangeParams(s, l));
|
|
8665
8665
|
};
|
|
8666
8666
|
window.addEventListener("message", r);
|
|
8667
8667
|
}).then((e) => (e || (this.keycloak.clearToken(), this.keycloak.login()), e));
|