@luizleon/sf.prefeiturasp.vuecomponents 5.0.46 → 5.0.48
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/sf.prefeiturasp.vuecomponents.css +1 -1
- package/dist/sf.prefeiturasp.vuecomponents.js +533 -533
- package/dist/sf.prefeiturasp.vuecomponents.js.map +1 -1
- package/dist/sf.prefeiturasp.vuecomponents.umd.cjs +16 -16
- package/dist/sf.prefeiturasp.vuecomponents.umd.cjs.map +1 -1
- package/dist/types/components/navmenu/NavMenu.vue.d.ts.map +1 -1
- package/dist/types/index.d.ts +16 -1
- package/dist/types/index.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
var Ks = Object.defineProperty;
|
|
2
2
|
var zs = (t, e, n) => e in t ? Ks(t, e, { enumerable: !0, configurable: !0, writable: !0, value: n }) : t[e] = n;
|
|
3
3
|
var ne = (t, e, n) => zs(t, typeof e != "symbol" ? e + "" : e, n);
|
|
4
|
-
import { defineComponent as De, onBeforeUnmount as Ei, createElementBlock as U, openBlock as O, unref as ae, renderSlot as me, createElementVNode as $, computed as de, createBlock as pe, resolveDynamicComponent as yt, normalizeClass as ee, withCtx as pt, createCommentVNode as se, normalizeStyle as jt, Fragment as Xe, mergeProps as W, toDisplayString as $e, ref as oe, onMounted as Vt, resolveComponent as Sn, renderList as Ur, useSlots as Hr, watch as Wn, Teleport as Ws, withModifiers as Ir, createVNode as Ee, Transition as jr, normalizeProps as Hn, guardReactiveProps as jn, readonly as Gs, getCurrentInstance as Pi, nextTick as
|
|
4
|
+
import { defineComponent as De, onBeforeUnmount as Ei, createElementBlock as U, openBlock as O, unref as ae, renderSlot as me, createElementVNode as $, computed as de, createBlock as pe, resolveDynamicComponent as yt, normalizeClass as ee, withCtx as pt, createCommentVNode as se, normalizeStyle as jt, Fragment as Xe, mergeProps as W, toDisplayString as $e, ref as oe, onMounted as Vt, resolveComponent as Sn, renderList as Ur, useSlots as Hr, watch as Wn, Teleport as Ws, withModifiers as Ir, createVNode as Ee, Transition as jr, normalizeProps as Hn, guardReactiveProps as jn, readonly as Gs, getCurrentInstance as Pi, nextTick as xi, resolveDirective as qs, withDirectives as Tr, vShow as Li, getCurrentScope as Ys, onScopeDispose as Xs, toValue as Oi, inject as Zs, onBeforeMount as Js, createTextVNode as Po, watchEffect as Qs } from "vue";
|
|
5
5
|
import { useRouter as ea } from "vue-router";
|
|
6
6
|
class fn {
|
|
7
7
|
/**
|
|
@@ -273,17 +273,17 @@ const $i = /* @__PURE__ */ St(na, [["render", oa]]), ia = ["data-size"], sa = ["
|
|
|
273
273
|
to: m.route,
|
|
274
274
|
custom: !0
|
|
275
275
|
}, {
|
|
276
|
-
default: pt(({ navigate:
|
|
277
|
-
$("li", { "data-active":
|
|
276
|
+
default: pt(({ navigate: g, isActive: _ }) => [
|
|
277
|
+
$("li", { "data-active": _ }, [
|
|
278
278
|
me(l.$slots, "item", {
|
|
279
279
|
item: m,
|
|
280
|
-
navigate:
|
|
281
|
-
isActive:
|
|
280
|
+
navigate: g,
|
|
281
|
+
isActive: _
|
|
282
282
|
}, () => [
|
|
283
283
|
$("a", {
|
|
284
284
|
href: m.route,
|
|
285
|
-
class: ee({ active:
|
|
286
|
-
onClick:
|
|
285
|
+
class: ee({ active: _ }),
|
|
286
|
+
onClick: g
|
|
287
287
|
}, $e(m.text), 11, da)
|
|
288
288
|
])
|
|
289
289
|
], 8, ua)
|
|
@@ -437,13 +437,13 @@ const $i = /* @__PURE__ */ St(na, [["render", oa]]), ia = ["data-size"], sa = ["
|
|
|
437
437
|
function m(w) {
|
|
438
438
|
(w.key === "Escape" || w.code === "Escape") && u();
|
|
439
439
|
}
|
|
440
|
-
function
|
|
440
|
+
function g() {
|
|
441
441
|
r("open"), window.document.addEventListener("keydown", m, !0);
|
|
442
442
|
}
|
|
443
|
-
function
|
|
443
|
+
function _(w) {
|
|
444
444
|
s.value = Fr() + 1, w.style.zIndex = `${s.value}`;
|
|
445
445
|
}
|
|
446
|
-
function
|
|
446
|
+
function k(w) {
|
|
447
447
|
var b;
|
|
448
448
|
r("before-close"), (b = w == null ? void 0 : w.parentElement) == null || b.classList.add("sf-mask-overlay-leave");
|
|
449
449
|
}
|
|
@@ -474,9 +474,9 @@ const $i = /* @__PURE__ */ St(na, [["render", oa]]), ia = ["data-size"], sa = ["
|
|
|
474
474
|
Ee(jr, {
|
|
475
475
|
name: "sf-drawer",
|
|
476
476
|
appear: "",
|
|
477
|
-
onBeforeEnter:
|
|
478
|
-
onEnter:
|
|
479
|
-
onBeforeLeave:
|
|
477
|
+
onBeforeEnter: _,
|
|
478
|
+
onEnter: g,
|
|
479
|
+
onBeforeLeave: k,
|
|
480
480
|
onAfterLeave: A
|
|
481
481
|
}, {
|
|
482
482
|
default: pt(() => [
|
|
@@ -593,8 +593,8 @@ function Gn(t, e = {}) {
|
|
|
593
593
|
if (d === "string" || d === "number")
|
|
594
594
|
l.push(u);
|
|
595
595
|
else if (d === "object") {
|
|
596
|
-
const m = Array.isArray(u) ? n(r, u) : Object.entries(u).map(([
|
|
597
|
-
l = m.length ? l.concat(m.filter((
|
|
596
|
+
const m = Array.isArray(u) ? n(r, u) : Object.entries(u).map(([g, _]) => r === "style" && (_ || _ === 0) ? `${g.replace(/([a-z])([A-Z])/g, "$1-$2").toLowerCase()}:${_}` : _ ? g : void 0);
|
|
597
|
+
l = m.length ? l.concat(m.filter((g) => !!g)) : l;
|
|
598
598
|
}
|
|
599
599
|
}
|
|
600
600
|
return l;
|
|
@@ -626,7 +626,7 @@ function sn(t, e) {
|
|
|
626
626
|
return isNaN(n) ? n === "true" || n === "false" ? n === "true" : n : +n;
|
|
627
627
|
}
|
|
628
628
|
}
|
|
629
|
-
function
|
|
629
|
+
function xo(t) {
|
|
630
630
|
if (t) {
|
|
631
631
|
let e = t.offsetHeight, n = getComputedStyle(t);
|
|
632
632
|
return e -= parseFloat(n.paddingTop) + parseFloat(n.paddingBottom) + parseFloat(n.borderTopWidth) + parseFloat(n.borderBottomWidth), e;
|
|
@@ -659,7 +659,7 @@ function Ta(t, e) {
|
|
|
659
659
|
function Aa(t) {
|
|
660
660
|
return !!(t !== null && typeof t < "u" && t.nodeName && Ca(t));
|
|
661
661
|
}
|
|
662
|
-
function
|
|
662
|
+
function Lo(t) {
|
|
663
663
|
if (t) {
|
|
664
664
|
let e = t.offsetWidth, n = getComputedStyle(t);
|
|
665
665
|
return e -= parseFloat(n.paddingLeft) + parseFloat(n.paddingRight) + parseFloat(n.borderLeftWidth) + parseFloat(n.borderRightWidth), e;
|
|
@@ -763,7 +763,7 @@ function zr(t, e = !0) {
|
|
|
763
763
|
function Ri(t) {
|
|
764
764
|
return Q(t) && !isNaN(t);
|
|
765
765
|
}
|
|
766
|
-
function
|
|
766
|
+
function xa(t = "") {
|
|
767
767
|
return Q(t) && t.length === 1 && !!t.match(/\S| /);
|
|
768
768
|
}
|
|
769
769
|
function ft(t, e) {
|
|
@@ -776,7 +776,7 @@ function ft(t, e) {
|
|
|
776
776
|
function cn(t) {
|
|
777
777
|
return t && t.replace(/\/\*(?:(?!\*\/)[\s\S])*\*\/|[\r\n\t]+/g, "").replace(/ {2,}/g, " ").replace(/ ([{:}]) /g, "$1").replace(/([;,]) /g, "$1").replace(/ !/g, "!").replace(/: /g, ":");
|
|
778
778
|
}
|
|
779
|
-
function
|
|
779
|
+
function La(t) {
|
|
780
780
|
return Re(t, !1) ? t[0].toUpperCase() + t.slice(1) : t;
|
|
781
781
|
}
|
|
782
782
|
function Di(t) {
|
|
@@ -832,8 +832,8 @@ function Hi(t, e = "", n = "", r = [], o) {
|
|
|
832
832
|
const i = /{([^}]*)}/g, a = t.trim();
|
|
833
833
|
if (ft(a, i)) {
|
|
834
834
|
const s = a.replaceAll(i, (d) => {
|
|
835
|
-
const
|
|
836
|
-
return `var(${Ui(n, Di(
|
|
835
|
+
const g = d.replace(/{|}/g, "").split(".").filter((_) => !r.some((k) => ft(_, k)));
|
|
836
|
+
return `var(${Ui(n, Di(g.join("-")))}${Q(o) ? `, ${o}` : ""})`;
|
|
837
837
|
}), l = /(\d+\s+[\+\-\*\/]\s+\d+)/g, u = /var\([^)]+\)/g;
|
|
838
838
|
return ft(s.replace(u, "0"), l) ? `calc(${s})` : s;
|
|
839
839
|
}
|
|
@@ -856,13 +856,13 @@ var pr = (...t) => Ha(re.getTheme(), ...t), Ha = (t = {}, e, n, r = "variable")
|
|
|
856
856
|
};
|
|
857
857
|
function ja(t, e = {}) {
|
|
858
858
|
const n = re.defaults.variable, { prefix: r = n.prefix, selector: o = n.selector, excludedKeyRegex: i = n.excludedKeyRegex } = e, a = (u, d = "") => Object.entries(u).reduce(
|
|
859
|
-
(m, [
|
|
860
|
-
const
|
|
859
|
+
(m, [g, _]) => {
|
|
860
|
+
const k = ft(g, i) ? Er(d) : Er(d, Di(g)), A = Na(_);
|
|
861
861
|
if (wt(A)) {
|
|
862
|
-
const { variables: P, tokens: w } = a(A,
|
|
862
|
+
const { variables: P, tokens: w } = a(A, k);
|
|
863
863
|
Ro(m.tokens, w), Ro(m.variables, P);
|
|
864
864
|
} else
|
|
865
|
-
m.tokens.push((r ?
|
|
865
|
+
m.tokens.push((r ? k.replace(`${r}-`, "") : k).replaceAll("-", ".")), Ua(m.variables, Ui(k), Hi(A, k, r, [i]));
|
|
866
866
|
return m;
|
|
867
867
|
},
|
|
868
868
|
{ variables: [], tokens: [] }
|
|
@@ -921,27 +921,27 @@ var We = {
|
|
|
921
921
|
getCommon({ name: t = "", theme: e = {}, params: n, set: r, defaults: o }) {
|
|
922
922
|
var i, a, s, l;
|
|
923
923
|
const { preset: u, options: d } = e;
|
|
924
|
-
let m,
|
|
924
|
+
let m, g, _, k;
|
|
925
925
|
if (Q(u)) {
|
|
926
926
|
const { primitive: A, semantic: P } = u, w = P || {}, { colorScheme: b } = w, N = Zt(w, ["colorScheme"]), H = b || {}, { dark: Y } = H, ge = Zt(H, ["dark"]), le = Q(A) ? this._toVariables({ primitive: A }, d) : {}, Be = Q(N) ? this._toVariables({ semantic: N }, d) : {}, ce = Q(ge) ? this._toVariables({ light: ge }, d) : {}, X = Q(Y) ? this._toVariables({ dark: Y }, d) : {}, [D, J] = [(i = le.declarations) != null ? i : "", le.tokens], [ve, ye] = [(a = Be.declarations) != null ? a : "", Be.tokens || []], [Je, ot] = [(s = ce.declarations) != null ? s : "", ce.tokens || []], [Qe, et] = [(l = X.declarations) != null ? l : "", X.tokens || []];
|
|
927
|
-
m = this.transformCSS(t, D, "light", "variable", d, r, o),
|
|
927
|
+
m = this.transformCSS(t, D, "light", "variable", d, r, o), g = J;
|
|
928
928
|
const kt = this.transformCSS(t, `${ve}${Je}color-scheme:light`, "light", "variable", d, r, o), Fe = this.transformCSS(t, `${Qe}color-scheme:dark`, "dark", "variable", d, r, o);
|
|
929
|
-
|
|
929
|
+
_ = `${kt}${Fe}`, k = [.../* @__PURE__ */ new Set([...ye, ...ot, ...et])];
|
|
930
930
|
}
|
|
931
931
|
return {
|
|
932
932
|
primitive: {
|
|
933
933
|
css: m,
|
|
934
|
-
tokens:
|
|
934
|
+
tokens: g
|
|
935
935
|
},
|
|
936
936
|
semantic: {
|
|
937
|
-
css:
|
|
938
|
-
tokens:
|
|
937
|
+
css: _,
|
|
938
|
+
tokens: k
|
|
939
939
|
}
|
|
940
940
|
};
|
|
941
941
|
},
|
|
942
942
|
getPreset({ name: t = "", preset: e = {}, options: n, params: r, set: o, defaults: i, selector: a }) {
|
|
943
943
|
var s, l, u;
|
|
944
|
-
const d = t.replace("-directive", ""), m = e, { colorScheme:
|
|
944
|
+
const d = t.replace("-directive", ""), m = e, { colorScheme: g } = m, _ = Zt(m, ["colorScheme"]), k = g || {}, { dark: A } = k, P = Zt(k, ["dark"]), w = Q(_) ? this._toVariables({ [d]: _ }, n) : {}, b = Q(P) ? this._toVariables({ [d]: P }, n) : {}, N = Q(A) ? this._toVariables({ [d]: A }, n) : {}, [H, Y] = [(s = w.declarations) != null ? s : "", w.tokens || []], [ge, le] = [(l = b.declarations) != null ? l : "", b.tokens || []], [Be, ce] = [(u = N.declarations) != null ? u : "", N.tokens || []], X = [.../* @__PURE__ */ new Set([...Y, ...le, ...ce])], D = this.transformCSS(d, `${H}${ge}`, "light", "variable", n, o, i, a), J = this.transformCSS(d, Be, "dark", "variable", n, o, i, a);
|
|
945
945
|
return {
|
|
946
946
|
css: `${D}${J}`,
|
|
947
947
|
tokens: X
|
|
@@ -969,15 +969,15 @@ var We = {
|
|
|
969
969
|
const a = this.getCommon({ name: t, theme: e, params: n, set: o, defaults: i }), s = Object.entries(r).reduce((l, [u, d]) => l.push(`${u}="${d}"`) && l, []).join(" ");
|
|
970
970
|
return Object.entries(a || {}).reduce((l, [u, d]) => {
|
|
971
971
|
if (d != null && d.css) {
|
|
972
|
-
const m = cn(d == null ? void 0 : d.css),
|
|
973
|
-
l.push(`<style type="text/css" data-primevue-style-id="${
|
|
972
|
+
const m = cn(d == null ? void 0 : d.css), g = `${u}-variables`;
|
|
973
|
+
l.push(`<style type="text/css" data-primevue-style-id="${g}" ${s}>${m}</style>`);
|
|
974
974
|
}
|
|
975
975
|
return l;
|
|
976
976
|
}, []).join("");
|
|
977
977
|
},
|
|
978
978
|
getStyleSheet({ name: t = "", theme: e = {}, params: n, props: r = {}, set: o, defaults: i }) {
|
|
979
979
|
var a;
|
|
980
|
-
const s = { name: t, theme: e, params: n, set: o, defaults: i }, l = (a = t.includes("-directive") ? this.getPresetD(s) : this.getPresetC(s)) == null ? void 0 : a.css, u = Object.entries(r).reduce((d, [m,
|
|
980
|
+
const s = { name: t, theme: e, params: n, set: o, defaults: i }, l = (a = t.includes("-directive") ? this.getPresetD(s) : this.getPresetC(s)) == null ? void 0 : a.css, u = Object.entries(r).reduce((d, [m, g]) => d.push(`${m}="${g}"`) && d, []).join(" ");
|
|
981
981
|
return l ? `<style type="text/css" data-primevue-style-id="${t}-variables" ${u}>${cn(l)}</style>` : "";
|
|
982
982
|
},
|
|
983
983
|
createTokens(t = {}, e, n = "", r = "", o = {}) {
|
|
@@ -987,7 +987,7 @@ var We = {
|
|
|
987
987
|
paths: [],
|
|
988
988
|
computed(u, d = {}) {
|
|
989
989
|
if (u) {
|
|
990
|
-
const m = this.paths.find((
|
|
990
|
+
const m = this.paths.find((g) => g.scheme === u) || this.paths.find((g) => g.scheme === "none");
|
|
991
991
|
return m == null ? void 0 : m.computed(u, d.binding);
|
|
992
992
|
}
|
|
993
993
|
return this.paths.map((m) => m.computed(m.scheme, d[m.scheme]));
|
|
@@ -998,20 +998,20 @@ var We = {
|
|
|
998
998
|
scheme: l.includes("colorScheme.light") ? "light" : l.includes("colorScheme.dark") ? "dark" : "none",
|
|
999
999
|
computed(u, d = {}) {
|
|
1000
1000
|
const m = /{([^}]*)}/g;
|
|
1001
|
-
let
|
|
1001
|
+
let g = a;
|
|
1002
1002
|
if (d.name = this.path, d.binding || (d.binding = {}), ft(a, m)) {
|
|
1003
|
-
const
|
|
1003
|
+
const k = a.trim().replaceAll(m, (w) => {
|
|
1004
1004
|
var b, N;
|
|
1005
1005
|
const H = w.replace(/{|}/g, "");
|
|
1006
1006
|
return (N = (b = o[H]) == null ? void 0 : b.computed(u, d)) == null ? void 0 : N.value;
|
|
1007
1007
|
}), A = /(\d+\w*\s+[\+\-\*\/]\s+\d+\w*)/g, P = /var\([^)]+\)/g;
|
|
1008
|
-
|
|
1008
|
+
g = ft(k.replace(P, "0"), A) ? `calc(${k})` : k;
|
|
1009
1009
|
}
|
|
1010
1010
|
return It(d.binding) && delete d.binding, {
|
|
1011
1011
|
colorScheme: u,
|
|
1012
1012
|
path: this.path,
|
|
1013
1013
|
paths: d,
|
|
1014
|
-
value:
|
|
1014
|
+
value: g.includes("undefined") ? void 0 : g
|
|
1015
1015
|
};
|
|
1016
1016
|
}
|
|
1017
1017
|
}));
|
|
@@ -1021,8 +1021,8 @@ var We = {
|
|
|
1021
1021
|
var r;
|
|
1022
1022
|
const i = ((l) => l.split(".").filter((d) => !ft(d.toLowerCase(), n.variable.excludedKeyRegex)).join("."))(e), a = e.includes("colorScheme.light") ? "light" : e.includes("colorScheme.dark") ? "dark" : void 0, s = [(r = t[i]) == null ? void 0 : r.computed(a)].flat().filter((l) => l);
|
|
1023
1023
|
return s.length === 1 ? s[0].value : s.reduce((l = {}, u) => {
|
|
1024
|
-
const d = u, { colorScheme: m } = d,
|
|
1025
|
-
return l[m] =
|
|
1024
|
+
const d = u, { colorScheme: m } = d, g = Zt(d, ["colorScheme"]);
|
|
1025
|
+
return l[m] = g, l;
|
|
1026
1026
|
}, void 0);
|
|
1027
1027
|
},
|
|
1028
1028
|
transformCSS(t, e, n, r, o = {}, i, a, s) {
|
|
@@ -1030,7 +1030,7 @@ var We = {
|
|
|
1030
1030
|
const { cssLayer: l } = o;
|
|
1031
1031
|
if (r !== "style") {
|
|
1032
1032
|
const u = this.getColorSchemeOption(o, a), d = s ? an(s, e) : e;
|
|
1033
|
-
e = n === "dark" ? u.reduce((m, { selector:
|
|
1033
|
+
e = n === "dark" ? u.reduce((m, { selector: g }) => (Q(g) && (m += g.includes("[CSS]") ? g.replace("[CSS]", d) : an(g, d)), m), "") : an(s ?? ":root", e);
|
|
1034
1034
|
}
|
|
1035
1035
|
if (l) {
|
|
1036
1036
|
const u = {
|
|
@@ -1224,15 +1224,15 @@ function Ka(t, e) {
|
|
|
1224
1224
|
}
|
|
1225
1225
|
function za(t) {
|
|
1226
1226
|
var e = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !0;
|
|
1227
|
-
Pi() ? Vt(t) : e ? t() :
|
|
1227
|
+
Pi() ? Vt(t) : e ? t() : xi(t);
|
|
1228
1228
|
}
|
|
1229
1229
|
var Wa = 0;
|
|
1230
1230
|
function Ga(t) {
|
|
1231
|
-
var e = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, n = oe(!1), r = oe(t), o = oe(null), i = Ea() ? window.document : void 0, a = e.document, s = a === void 0 ? i : a, l = e.immediate, u = l === void 0 ? !0 : l, d = e.manual, m = d === void 0 ? !1 : d,
|
|
1231
|
+
var e = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, n = oe(!1), r = oe(t), o = oe(null), i = Ea() ? window.document : void 0, a = e.document, s = a === void 0 ? i : a, l = e.immediate, u = l === void 0 ? !0 : l, d = e.manual, m = d === void 0 ? !1 : d, g = e.name, _ = g === void 0 ? "style_".concat(++Wa) : g, k = e.id, A = k === void 0 ? void 0 : k, P = e.media, w = P === void 0 ? void 0 : P, b = e.nonce, N = b === void 0 ? void 0 : b, H = e.first, Y = H === void 0 ? !1 : H, ge = e.onMounted, le = ge === void 0 ? void 0 : ge, Be = e.onUpdated, ce = Be === void 0 ? void 0 : Be, X = e.onLoad, D = X === void 0 ? void 0 : X, J = e.props, ve = J === void 0 ? {} : J, ye = function() {
|
|
1232
1232
|
}, Je = function(et) {
|
|
1233
1233
|
var kt = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
|
|
1234
1234
|
if (s) {
|
|
1235
|
-
var Fe = Bo(Bo({}, ve), kt), c = Fe.name ||
|
|
1235
|
+
var Fe = Bo(Bo({}, ve), kt), c = Fe.name || _, p = Fe.id || A, y = Fe.nonce || N;
|
|
1236
1236
|
o.value = s.querySelector('style[data-primevue-style-id="'.concat(c, '"]')) || s.getElementById(p) || s.createElement("style"), o.value.isConnected || (r.value = et || t, Gn(o.value, {
|
|
1237
1237
|
type: "text/css",
|
|
1238
1238
|
id: p,
|
|
@@ -1253,7 +1253,7 @@ function Ga(t) {
|
|
|
1253
1253
|
};
|
|
1254
1254
|
return u && !m && za(Je), {
|
|
1255
1255
|
id: A,
|
|
1256
|
-
name:
|
|
1256
|
+
name: _,
|
|
1257
1257
|
el: o,
|
|
1258
1258
|
css: r,
|
|
1259
1259
|
unload: ot,
|
|
@@ -1557,8 +1557,8 @@ var tl = function(e) {
|
|
|
1557
1557
|
var o = this.name === "base" ? "global-style" : "".concat(this.name, "-style"), i = Ue(this.theme, {
|
|
1558
1558
|
dt: pr
|
|
1559
1559
|
}), a = cn(re.transformCSS(o, i)), s = Object.entries(n).reduce(function(l, u) {
|
|
1560
|
-
var d = Uo(u, 2), m = d[0],
|
|
1561
|
-
return l.push("".concat(m, '="').concat(
|
|
1560
|
+
var d = Uo(u, 2), m = d[0], g = d[1];
|
|
1561
|
+
return l.push("".concat(m, '="').concat(g, '"')) && l;
|
|
1562
1562
|
}, []).join(" ");
|
|
1563
1563
|
r.push('<style type="text/css" data-primevue-style-id="'.concat(o, '" ').concat(s, ">").concat(a, "</style>"));
|
|
1564
1564
|
}
|
|
@@ -1713,8 +1713,8 @@ var Qn = {
|
|
|
1713
1713
|
scopedStyleEl: void 0,
|
|
1714
1714
|
rootEl: void 0,
|
|
1715
1715
|
beforeCreate: function() {
|
|
1716
|
-
var e, n, r, o, i, a, s, l, u, d, m,
|
|
1717
|
-
(o =
|
|
1716
|
+
var e, n, r, o, i, a, s, l, u, d, m, g = (e = this.pt) === null || e === void 0 ? void 0 : e._usept, _ = g ? (n = this.pt) === null || n === void 0 || (n = n.originalValue) === null || n === void 0 ? void 0 : n[this.$.type.name] : void 0, k = g ? (r = this.pt) === null || r === void 0 || (r = r.value) === null || r === void 0 ? void 0 : r[this.$.type.name] : this.pt;
|
|
1717
|
+
(o = k || _) === null || o === void 0 || (o = o.hooks) === null || o === void 0 || (i = o.onBeforeCreate) === null || i === void 0 || i.call(o);
|
|
1718
1718
|
var A = (a = this.$primevueConfig) === null || a === void 0 || (a = a.pt) === null || a === void 0 ? void 0 : a._usept, P = A ? (s = this.$primevue) === null || s === void 0 || (s = s.config) === null || s === void 0 || (s = s.pt) === null || s === void 0 ? void 0 : s.originalValue : void 0, w = A ? (l = this.$primevue) === null || l === void 0 || (l = l.config) === null || l === void 0 || (l = l.pt) === null || l === void 0 ? void 0 : l.value : (u = this.$primevue) === null || u === void 0 || (u = u.config) === null || u === void 0 ? void 0 : u.pt;
|
|
1719
1719
|
(d = w || P) === null || d === void 0 || (d = d[this.$.type.name]) === null || d === void 0 || (d = d.hooks) === null || d === void 0 || (m = d.onBeforeCreate) === null || m === void 0 || m.call(d);
|
|
1720
1720
|
},
|
|
@@ -1783,15 +1783,15 @@ var Qn = {
|
|
|
1783
1783
|
}, this.$styleOptions)), re.setLoadedStyleName("common");
|
|
1784
1784
|
}
|
|
1785
1785
|
if (!re.isStyleNameLoaded((e = this.$style) === null || e === void 0 ? void 0 : e.name) && (n = this.$style) !== null && n !== void 0 && n.name) {
|
|
1786
|
-
var l, u, d, m,
|
|
1787
|
-
(d = this.$style) === null || d === void 0 || d.load(
|
|
1786
|
+
var l, u, d, m, g = ((l = this.$style) === null || l === void 0 || (u = l.getComponentTheme) === null || u === void 0 ? void 0 : u.call(l)) || {}, _ = g.css;
|
|
1787
|
+
(d = this.$style) === null || d === void 0 || d.load(_, G({
|
|
1788
1788
|
name: "".concat(this.$style.name, "-variables")
|
|
1789
1789
|
}, this.$styleOptions)), (m = this.$style) === null || m === void 0 || m.loadTheme(G({
|
|
1790
1790
|
name: "".concat(this.$style.name, "-style")
|
|
1791
1791
|
}, this.$styleOptions)), re.setLoadedStyleName(this.$style.name);
|
|
1792
1792
|
}
|
|
1793
1793
|
if (!re.isStyleNameLoaded("layer-order")) {
|
|
1794
|
-
var
|
|
1794
|
+
var k, A, P = (k = this.$style) === null || k === void 0 || (A = k.getLayerOrderThemeCSS) === null || A === void 0 ? void 0 : A.call(k);
|
|
1795
1795
|
Pe.load(P, G({
|
|
1796
1796
|
name: "layer-order",
|
|
1797
1797
|
first: !0
|
|
@@ -1826,10 +1826,10 @@ var Qn = {
|
|
|
1826
1826
|
return Kr(e, n, r);
|
|
1827
1827
|
},
|
|
1828
1828
|
_getPTValue: function() {
|
|
1829
|
-
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, a = /./g.test(r) && !!o[r.split(".")[0]], s = this._getPropValue("ptOptions") || ((e = this.$primevueConfig) === null || e === void 0 ? void 0 : e.ptOptions) || {}, l = s.mergeSections, u = l === void 0 ? !0 : l, d = s.mergeProps, m = d === void 0 ? !1 : d,
|
|
1830
|
-
global:
|
|
1831
|
-
})),
|
|
1832
|
-
return u || !u &&
|
|
1829
|
+
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, a = /./g.test(r) && !!o[r.split(".")[0]], s = this._getPropValue("ptOptions") || ((e = this.$primevueConfig) === null || e === void 0 ? void 0 : e.ptOptions) || {}, l = s.mergeSections, u = l === void 0 ? !0 : l, d = s.mergeProps, m = d === void 0 ? !1 : d, g = i ? a ? this._useGlobalPT(this._getPTClassValue, r, o) : this._useDefaultPT(this._getPTClassValue, r, o) : void 0, _ = a ? void 0 : this._getPTSelf(n, this._getPTClassValue, r, G(G({}, o), {}, {
|
|
1830
|
+
global: g || {}
|
|
1831
|
+
})), k = this._getPTDatasets(r);
|
|
1832
|
+
return u || !u && _ ? m ? this._mergeProps(m, g, _, k) : G(G(G({}, g), _), k) : G(G({}, _), k);
|
|
1833
1833
|
},
|
|
1834
1834
|
_getPTSelf: function() {
|
|
1835
1835
|
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++)
|
|
@@ -1853,8 +1853,8 @@ var Qn = {
|
|
|
1853
1853
|
},
|
|
1854
1854
|
_getPT: function(e) {
|
|
1855
1855
|
var n = this, r = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : "", o = arguments.length > 2 ? arguments[2] : void 0, i = function(s) {
|
|
1856
|
-
var l, u = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !1, d = o ? o(s) : s, m = Ye(r),
|
|
1857
|
-
return (l = u ? m !==
|
|
1856
|
+
var l, u = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !1, d = o ? o(s) : s, m = Ye(r), g = Ye(n.$name);
|
|
1857
|
+
return (l = u ? m !== g ? d == null ? void 0 : d[m] : void 0 : d == null ? void 0 : d[m]) !== null && l !== void 0 ? l : d;
|
|
1858
1858
|
};
|
|
1859
1859
|
return e != null && e.hasOwnProperty("_usept") ? {
|
|
1860
1860
|
_usept: e._usept,
|
|
@@ -1867,8 +1867,8 @@ var Qn = {
|
|
|
1867
1867
|
return n(A, r, o);
|
|
1868
1868
|
};
|
|
1869
1869
|
if (e != null && e.hasOwnProperty("_usept")) {
|
|
1870
|
-
var a, s = e._usept || ((a = this.$primevueConfig) === null || a === void 0 ? void 0 : a.ptOptions) || {}, l = s.mergeSections, u = l === void 0 ? !0 : l, d = s.mergeProps, m = d === void 0 ? !1 : d,
|
|
1871
|
-
return
|
|
1870
|
+
var a, s = e._usept || ((a = this.$primevueConfig) === null || a === void 0 ? void 0 : a.ptOptions) || {}, l = s.mergeSections, u = l === void 0 ? !0 : l, d = s.mergeProps, m = d === void 0 ? !1 : d, g = i(e.originalValue), _ = i(e.value);
|
|
1871
|
+
return g === void 0 && _ === void 0 ? void 0 : Re(_) ? _ : Re(g) ? g : u || !u && _ ? m ? this._mergeProps(m, g, _) : G(G({}, g), _) : _;
|
|
1872
1872
|
}
|
|
1873
1873
|
return i(e);
|
|
1874
1874
|
},
|
|
@@ -1973,8 +1973,8 @@ var Qn = {
|
|
|
1973
1973
|
return r == null ? void 0 : r.startsWith("pt:");
|
|
1974
1974
|
}).reduce(function(e, n) {
|
|
1975
1975
|
var r = Dn(n, 2), o = r[0], i = r[1], a = o.split(":"), s = il(a), l = s.slice(1);
|
|
1976
|
-
return l == null || l.reduce(function(u, d, m,
|
|
1977
|
-
return !u[d] && (u[d] = m ===
|
|
1976
|
+
return l == null || l.reduce(function(u, d, m, g) {
|
|
1977
|
+
return !u[d] && (u[d] = m === g.length - 1 ? i : {}), u[d];
|
|
1978
1978
|
}, e), e;
|
|
1979
1979
|
}, {});
|
|
1980
1980
|
},
|
|
@@ -2424,10 +2424,10 @@ var K = {
|
|
|
2424
2424
|
return Re(b) || zr(b) ? {
|
|
2425
2425
|
class: b
|
|
2426
2426
|
} : b;
|
|
2427
|
-
}, u = ((e = r.binding) === null || e === void 0 || (e = e.value) === null || e === void 0 ? void 0 : e.ptOptions) || ((n = r.$primevueConfig) === null || n === void 0 ? void 0 : n.ptOptions) || {}, d = u.mergeSections, m = d === void 0 ? !0 : d,
|
|
2428
|
-
global:
|
|
2427
|
+
}, u = ((e = r.binding) === null || e === void 0 || (e = e.value) === null || e === void 0 ? void 0 : e.ptOptions) || ((n = r.$primevueConfig) === null || n === void 0 ? void 0 : n.ptOptions) || {}, d = u.mergeSections, m = d === void 0 ? !0 : d, g = u.mergeProps, _ = g === void 0 ? !1 : g, k = s ? K._useDefaultPT(r, r.defaultPT(), l, i, a) : void 0, A = K._usePT(r, K._getPT(o, r.$name), l, i, Z(Z({}, a), {}, {
|
|
2428
|
+
global: k || {}
|
|
2429
2429
|
})), P = K._getPTDatasets(r, i);
|
|
2430
|
-
return m || !m && A ?
|
|
2430
|
+
return m || !m && A ? _ ? K._mergeProps(r, _, k, A, P) : Z(Z(Z({}, k), A), P) : Z(Z({}, A), P);
|
|
2431
2431
|
},
|
|
2432
2432
|
_getPTDatasets: function() {
|
|
2433
2433
|
var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : "", r = "data-pc-";
|
|
@@ -2449,8 +2449,8 @@ var K = {
|
|
|
2449
2449
|
return r(P, o, i);
|
|
2450
2450
|
};
|
|
2451
2451
|
if (n != null && n.hasOwnProperty("_usept")) {
|
|
2452
|
-
var s, l = n._usept || ((s = e.$primevueConfig) === null || s === void 0 ? void 0 : s.ptOptions) || {}, u = l.mergeSections, d = u === void 0 ? !0 : u, m = l.mergeProps,
|
|
2453
|
-
return
|
|
2452
|
+
var s, l = n._usept || ((s = e.$primevueConfig) === null || s === void 0 ? void 0 : s.ptOptions) || {}, u = l.mergeSections, d = u === void 0 ? !0 : u, m = l.mergeProps, g = m === void 0 ? !1 : m, _ = a(n.originalValue), k = a(n.value);
|
|
2453
|
+
return _ === void 0 && k === void 0 ? void 0 : Re(k) ? k : Re(_) ? _ : d || !d && k ? g ? K._mergeProps(e, g, _, k) : Z(Z({}, _), k) : k;
|
|
2454
2454
|
}
|
|
2455
2455
|
return a(n);
|
|
2456
2456
|
},
|
|
@@ -2487,10 +2487,10 @@ var K = {
|
|
|
2487
2487
|
}, o)), re.setLoadedStyleName("common");
|
|
2488
2488
|
}
|
|
2489
2489
|
if (!re.isStyleNameLoaded((e = r.$style) === null || e === void 0 ? void 0 : e.name) && (n = r.$style) !== null && n !== void 0 && n.name) {
|
|
2490
|
-
var d, m,
|
|
2491
|
-
(
|
|
2490
|
+
var d, m, g, _, k = ((d = r.$style) === null || d === void 0 || (m = d.getDirectiveTheme) === null || m === void 0 ? void 0 : m.call(d)) || {}, A = k.css;
|
|
2491
|
+
(g = r.$style) === null || g === void 0 || g.load(A, Z({
|
|
2492
2492
|
name: "".concat(r.$style.name, "-variables")
|
|
2493
|
-
}, o)), (
|
|
2493
|
+
}, o)), (_ = r.$style) === null || _ === void 0 || _.loadTheme(Z({
|
|
2494
2494
|
name: "".concat(r.$style.name, "-style")
|
|
2495
2495
|
}, o)), re.setLoadedStyleName(r.$style.name);
|
|
2496
2496
|
}
|
|
@@ -2518,13 +2518,13 @@ var K = {
|
|
|
2518
2518
|
vt.clearLoadedStyleNames(), ut.on("theme:change", e);
|
|
2519
2519
|
},
|
|
2520
2520
|
_hook: function(e, n, r, o, i, a) {
|
|
2521
|
-
var s, l, u = "on".concat(
|
|
2521
|
+
var s, l, u = "on".concat(La(n)), d = K._getConfig(o, i), m = r == null ? void 0 : r.$instance, g = K._usePT(m, K._getPT(o == null || (s = o.value) === null || s === void 0 ? void 0 : s.pt, e), K._getOptionValue, "hooks.".concat(u)), _ = K._useDefaultPT(m, d == null || (l = d.pt) === null || l === void 0 || (l = l.directives) === null || l === void 0 ? void 0 : l[e], K._getOptionValue, "hooks.".concat(u)), k = {
|
|
2522
2522
|
el: r,
|
|
2523
2523
|
binding: o,
|
|
2524
2524
|
vnode: i,
|
|
2525
2525
|
prevVnode: a
|
|
2526
2526
|
};
|
|
2527
|
-
|
|
2527
|
+
g == null || g(m, k), _ == null || _(m, k);
|
|
2528
2528
|
},
|
|
2529
2529
|
_mergeProps: function() {
|
|
2530
2530
|
for (var e = arguments.length > 1 ? arguments[1] : void 0, n = arguments.length, r = new Array(n > 2 ? n - 2 : 0), o = 2; o < n; o++)
|
|
@@ -2533,9 +2533,9 @@ var K = {
|
|
|
2533
2533
|
},
|
|
2534
2534
|
_extend: function(e) {
|
|
2535
2535
|
var n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, r = function(a, s, l, u, d) {
|
|
2536
|
-
var m,
|
|
2536
|
+
var m, g, _;
|
|
2537
2537
|
s._$instances = s._$instances || {};
|
|
2538
|
-
var
|
|
2538
|
+
var k = K._getConfig(l, u), A = s._$instances[e] || {}, P = It(A) ? Z(Z({}, n), n == null ? void 0 : n.methods) : {};
|
|
2539
2539
|
s._$instances[e] = Z(Z({}, A), {}, {
|
|
2540
2540
|
/* new instance variables to pass in directive methods */
|
|
2541
2541
|
$name: e,
|
|
@@ -2554,18 +2554,18 @@ var K = {
|
|
|
2554
2554
|
loadTheme: function() {
|
|
2555
2555
|
}
|
|
2556
2556
|
}, n == null ? void 0 : n.style),
|
|
2557
|
-
$primevueConfig:
|
|
2557
|
+
$primevueConfig: k,
|
|
2558
2558
|
$attrSelector: s.$attrSelector,
|
|
2559
2559
|
/* computed instance variables */
|
|
2560
2560
|
defaultPT: function() {
|
|
2561
|
-
return K._getPT(
|
|
2561
|
+
return K._getPT(k == null ? void 0 : k.pt, void 0, function(b) {
|
|
2562
2562
|
var N;
|
|
2563
2563
|
return b == null || (N = b.directives) === null || N === void 0 ? void 0 : N[e];
|
|
2564
2564
|
});
|
|
2565
2565
|
},
|
|
2566
2566
|
isUnstyled: function() {
|
|
2567
2567
|
var b, N;
|
|
2568
|
-
return ((b = s.$instance) === null || b === void 0 || (b = b.$binding) === null || b === void 0 || (b = b.value) === null || b === void 0 ? void 0 : b.unstyled) !== void 0 ? (N = s.$instance) === null || N === void 0 || (N = N.$binding) === null || N === void 0 || (N = N.value) === null || N === void 0 ? void 0 : N.unstyled :
|
|
2568
|
+
return ((b = s.$instance) === null || b === void 0 || (b = b.$binding) === null || b === void 0 || (b = b.value) === null || b === void 0 ? void 0 : b.unstyled) !== void 0 ? (N = s.$instance) === null || N === void 0 || (N = N.$binding) === null || N === void 0 || (N = N.value) === null || N === void 0 ? void 0 : N.unstyled : k == null ? void 0 : k.unstyled;
|
|
2569
2569
|
},
|
|
2570
2570
|
theme: function() {
|
|
2571
2571
|
var b;
|
|
@@ -2592,18 +2592,18 @@ var K = {
|
|
|
2592
2592
|
var b, N = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : "", H = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !0, Y = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {};
|
|
2593
2593
|
return H ? K._getOptionValue((b = s.$instance) === null || b === void 0 || (b = b.$style) === null || b === void 0 ? void 0 : b.inlineStyles, N, Z({}, Y)) : void 0;
|
|
2594
2594
|
}
|
|
2595
|
-
}, P), s.$instance = s._$instances[e], (m = (
|
|
2595
|
+
}, P), s.$instance = s._$instances[e], (m = (g = s.$instance)[a]) === null || m === void 0 || m.call(g, s, l, u, d), s["$".concat(e)] = s.$instance, K._hook(e, a, s, l, u, d), s.$pd || (s.$pd = {}), s.$pd[e] = Z(Z({}, (_ = s.$pd) === null || _ === void 0 ? void 0 : _[e]), {}, {
|
|
2596
2596
|
name: e,
|
|
2597
2597
|
instance: s.$instance
|
|
2598
2598
|
});
|
|
2599
2599
|
}, o = function(a) {
|
|
2600
|
-
var s, l, u, d, m,
|
|
2601
|
-
|
|
2602
|
-
var
|
|
2603
|
-
return
|
|
2604
|
-
}),
|
|
2605
|
-
var
|
|
2606
|
-
return
|
|
2600
|
+
var s, l, u, d, m, g = (s = a.$instance) === null || s === void 0 ? void 0 : s.watch;
|
|
2601
|
+
g == null || (l = g.config) === null || l === void 0 || l.call(a.$instance, (u = a.$instance) === null || u === void 0 ? void 0 : u.$primevueConfig), Go.on("config:change", function(_) {
|
|
2602
|
+
var k, A = _.newValue, P = _.oldValue;
|
|
2603
|
+
return g == null || (k = g.config) === null || k === void 0 ? void 0 : k.call(a.$instance, A, P);
|
|
2604
|
+
}), g == null || (d = g["config.ripple"]) === null || d === void 0 || d.call(a.$instance, (m = a.$instance) === null || m === void 0 || (m = m.$primevueConfig) === null || m === void 0 ? void 0 : m.ripple), Go.on("config:ripple:change", function(_) {
|
|
2605
|
+
var k, A = _.newValue, P = _.oldValue;
|
|
2606
|
+
return g == null || (k = g["config.ripple"]) === null || k === void 0 ? void 0 : k.call(a.$instance, A, P);
|
|
2607
2607
|
});
|
|
2608
2608
|
};
|
|
2609
2609
|
return {
|
|
@@ -2640,7 +2640,7 @@ var K = {
|
|
|
2640
2640
|
}
|
|
2641
2641
|
}, K._extend(r, o));
|
|
2642
2642
|
}
|
|
2643
|
-
},
|
|
2643
|
+
}, xl = function(e) {
|
|
2644
2644
|
var n = e.dt;
|
|
2645
2645
|
return `
|
|
2646
2646
|
.p-ink {
|
|
@@ -2663,12 +2663,12 @@ var K = {
|
|
|
2663
2663
|
}
|
|
2664
2664
|
}
|
|
2665
2665
|
`);
|
|
2666
|
-
},
|
|
2666
|
+
}, Ll = {
|
|
2667
2667
|
root: "p-ink"
|
|
2668
2668
|
}, Ol = Pe.extend({
|
|
2669
2669
|
name: "ripple-directive",
|
|
2670
|
-
theme:
|
|
2671
|
-
classes:
|
|
2670
|
+
theme: xl,
|
|
2671
|
+
classes: Ll
|
|
2672
2672
|
}), $l = K.extend({
|
|
2673
2673
|
style: Ol
|
|
2674
2674
|
});
|
|
@@ -2689,18 +2689,18 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
2689
2689
|
}
|
|
2690
2690
|
function Dl(t, e) {
|
|
2691
2691
|
if (t) {
|
|
2692
|
-
if (typeof t == "string") return
|
|
2692
|
+
if (typeof t == "string") return xr(t, e);
|
|
2693
2693
|
var n = {}.toString.call(t).slice(8, -1);
|
|
2694
|
-
return n === "Object" && t.constructor && (n = t.constructor.name), n === "Map" || n === "Set" ? Array.from(t) : n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n) ?
|
|
2694
|
+
return n === "Object" && t.constructor && (n = t.constructor.name), n === "Map" || n === "Set" ? Array.from(t) : n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n) ? xr(t, e) : void 0;
|
|
2695
2695
|
}
|
|
2696
2696
|
}
|
|
2697
2697
|
function Nl(t) {
|
|
2698
2698
|
if (typeof Symbol < "u" && t[Symbol.iterator] != null || t["@@iterator"] != null) return Array.from(t);
|
|
2699
2699
|
}
|
|
2700
2700
|
function Bl(t) {
|
|
2701
|
-
if (Array.isArray(t)) return
|
|
2701
|
+
if (Array.isArray(t)) return xr(t);
|
|
2702
2702
|
}
|
|
2703
|
-
function
|
|
2703
|
+
function xr(t, e) {
|
|
2704
2704
|
(e == null || e > t.length) && (e = t.length);
|
|
2705
2705
|
for (var n = 0, r = Array(e); n < e; n++) r[n] = t[n];
|
|
2706
2706
|
return r;
|
|
@@ -2757,11 +2757,11 @@ var jl = $l.extend("ripple", {
|
|
|
2757
2757
|
onMouseDown: function(e) {
|
|
2758
2758
|
var n = this, r = e.currentTarget, o = this.getInk(r);
|
|
2759
2759
|
if (!(!o || getComputedStyle(o, null).display === "none")) {
|
|
2760
|
-
if (!this.isUnstyled() && fr(o, "p-ink-active"), o.setAttribute("data-p-ink-active", "false"), !
|
|
2760
|
+
if (!this.isUnstyled() && fr(o, "p-ink-active"), o.setAttribute("data-p-ink-active", "false"), !xo(o) && !Lo(o)) {
|
|
2761
2761
|
var i = Math.max(Sa(r), Ta(r));
|
|
2762
2762
|
o.style.height = i + "px", o.style.width = i + "px";
|
|
2763
2763
|
}
|
|
2764
|
-
var a = Ia(r), s = e.pageX - a.left + document.body.scrollTop -
|
|
2764
|
+
var a = Ia(r), s = e.pageX - a.left + document.body.scrollTop - Lo(o) / 2, l = e.pageY - a.top + document.body.scrollLeft - xo(o) / 2;
|
|
2765
2765
|
o.style.top = l + "px", o.style.left = s + "px", !this.isUnstyled() && _a(o, "p-ink-active"), o.setAttribute("data-p-ink-active", "true"), this.timeout = setTimeout(function() {
|
|
2766
2766
|
o && (!n.isUnstyled() && fr(o, "p-ink-active"), o.setAttribute("data-p-ink-active", "false"));
|
|
2767
2767
|
}, 401);
|
|
@@ -3033,7 +3033,7 @@ function Gl(t, e, n, r, o, i) {
|
|
|
3033
3033
|
pt: t.pt,
|
|
3034
3034
|
unstyled: t.unstyled,
|
|
3035
3035
|
ref_for: !0
|
|
3036
|
-
}, t.ptm("submenu")), null, 16, ["id", "panelId", "focusedItemId", "items", "level", "templates", "activeItemPath", "onItemToggle", "pt", "unstyled"])) : se("", !0)], 16), [[
|
|
3036
|
+
}, t.ptm("submenu")), null, 16, ["id", "panelId", "focusedItemId", "items", "level", "templates", "activeItemPath", "onItemToggle", "pt", "unstyled"])) : se("", !0)], 16), [[Li, i.isItemActive(l)]])];
|
|
3037
3037
|
}),
|
|
3038
3038
|
_: 2
|
|
3039
3039
|
}, 1040)], 16, Kl)) : se("", !0), i.isItemVisible(l) && i.getItemProp(l, "separator") ? (O(), U("li", W({
|
|
@@ -3190,7 +3190,7 @@ var Wi = {
|
|
|
3190
3190
|
case "ShiftRight":
|
|
3191
3191
|
break;
|
|
3192
3192
|
default:
|
|
3193
|
-
!n &&
|
|
3193
|
+
!n && xa(e.key) && this.searchItems(e, e.key);
|
|
3194
3194
|
break;
|
|
3195
3195
|
}
|
|
3196
3196
|
},
|
|
@@ -3755,7 +3755,7 @@ function lc(t, e, n, r, o, i) {
|
|
|
3755
3755
|
onHeaderFocus: i.updateFocusedHeader,
|
|
3756
3756
|
pt: t.pt,
|
|
3757
3757
|
unstyled: t.unstyled
|
|
3758
|
-
}, null, 8, ["panelId", "items", "templates", "expandedKeys", "onItemToggle", "onHeaderFocus", "pt", "unstyled"])], 16)) : se("", !0)], 16, ac), [[
|
|
3758
|
+
}, null, 8, ["panelId", "items", "templates", "expandedKeys", "onItemToggle", "onHeaderFocus", "pt", "unstyled"])], 16)) : se("", !0)], 16, ac), [[Li, i.isItemActive(s)]])];
|
|
3759
3759
|
}),
|
|
3760
3760
|
_: 2
|
|
3761
3761
|
}, 1040)], 16)) : se("", !0)], 64);
|
|
@@ -3780,61 +3780,61 @@ const cc = { class: "panel-menu-wrapper select-none" }, uc = ["data-active", "on
|
|
|
3780
3780
|
items: {}
|
|
3781
3781
|
},
|
|
3782
3782
|
setup(t) {
|
|
3783
|
-
const e = t, n = (
|
|
3784
|
-
|
|
3785
|
-
}, r = (
|
|
3786
|
-
|
|
3787
|
-
}, o = (
|
|
3788
|
-
return (
|
|
3789
|
-
const
|
|
3783
|
+
const e = t, n = (a, s) => {
|
|
3784
|
+
a.disabled || a.command && typeof a.command == "function" || s();
|
|
3785
|
+
}, r = (a, s) => {
|
|
3786
|
+
s.disabled || typeof s.command == "function" && s.command(a);
|
|
3787
|
+
}, o = (a) => typeof a.label == "function" ? a.label() : a.label ?? "Item", i = (a, s, l) => a.to ? (a.exact = a.exact ?? !1, a.exact ? l : s) : !1;
|
|
3788
|
+
return (a, s) => {
|
|
3789
|
+
const l = Sn("router-link");
|
|
3790
3790
|
return O(), U("div", cc, [
|
|
3791
3791
|
Ee(ae(Gi), {
|
|
3792
3792
|
model: e.items,
|
|
3793
3793
|
unstyled: !0
|
|
3794
3794
|
}, {
|
|
3795
|
-
item: pt(({ item:
|
|
3796
|
-
|
|
3795
|
+
item: pt(({ item: u, active: d }) => [
|
|
3796
|
+
u.to ? (O(), pe(l, {
|
|
3797
3797
|
key: 0,
|
|
3798
|
-
to:
|
|
3798
|
+
to: u.to,
|
|
3799
3799
|
custom: ""
|
|
3800
3800
|
}, {
|
|
3801
|
-
default: pt(({ navigate:
|
|
3801
|
+
default: pt(({ navigate: m, isExactActive: g, isActive: _ }) => [
|
|
3802
3802
|
$("a", {
|
|
3803
3803
|
class: ee([
|
|
3804
3804
|
"item-menu",
|
|
3805
3805
|
{
|
|
3806
|
-
disabled:
|
|
3806
|
+
disabled: u.disabled
|
|
3807
3807
|
}
|
|
3808
3808
|
]),
|
|
3809
|
-
"data-active":
|
|
3810
|
-
onClick: Ir((
|
|
3809
|
+
"data-active": i(u, _, g),
|
|
3810
|
+
onClick: Ir((k) => n(u, m), ["prevent"])
|
|
3811
3811
|
}, [
|
|
3812
|
-
|
|
3812
|
+
u.icon ? (O(), U("span", dc, $e(u.icon), 1)) : se("", !0),
|
|
3813
3813
|
$("span", {
|
|
3814
|
-
textContent: $e(o(
|
|
3814
|
+
textContent: $e(o(u))
|
|
3815
3815
|
}, null, 8, fc)
|
|
3816
3816
|
], 10, uc)
|
|
3817
3817
|
]),
|
|
3818
3818
|
_: 2
|
|
3819
|
-
}, 1032, ["to"])) : typeof
|
|
3819
|
+
}, 1032, ["to"])) : typeof u.command == "function" ? (O(), U("span", {
|
|
3820
3820
|
key: 1,
|
|
3821
|
-
class: ee(["item-menu", { disabled:
|
|
3822
|
-
onClick: Ir((
|
|
3821
|
+
class: ee(["item-menu", { disabled: u.disabled }]),
|
|
3822
|
+
onClick: Ir((m) => r(m, u), ["stop"])
|
|
3823
3823
|
}, [
|
|
3824
|
-
|
|
3824
|
+
u.icon ? (O(), U("span", pc, $e(u.icon), 1)) : se("", !0),
|
|
3825
3825
|
$("span", {
|
|
3826
|
-
textContent: $e(o(
|
|
3826
|
+
textContent: $e(o(u))
|
|
3827
3827
|
}, null, 8, hc)
|
|
3828
3828
|
], 10, mc)) : (O(), U("a", gc, [
|
|
3829
|
-
|
|
3829
|
+
u.icon ? (O(), U("span", vc, $e(u.icon), 1)) : se("", !0),
|
|
3830
3830
|
$("span", {
|
|
3831
|
-
textContent: $e(o(
|
|
3831
|
+
textContent: $e(o(u))
|
|
3832
3832
|
}, null, 8, yc),
|
|
3833
|
-
|
|
3833
|
+
s[0] || (s[0] = $("div", { class: "sep" }, null, -1)),
|
|
3834
3834
|
$("span", {
|
|
3835
3835
|
class: ee([
|
|
3836
3836
|
"material-symbols-outlined arrow",
|
|
3837
|
-
{ "--expand":
|
|
3837
|
+
{ "--expand": d }
|
|
3838
3838
|
])
|
|
3839
3839
|
}, " chevron_right ", 2)
|
|
3840
3840
|
]))
|
|
@@ -3844,7 +3844,7 @@ const cc = { class: "panel-menu-wrapper select-none" }, uc = ["data-active", "on
|
|
|
3844
3844
|
]);
|
|
3845
3845
|
};
|
|
3846
3846
|
}
|
|
3847
|
-
}), Nm = /* @__PURE__ */ St(bc, [["__scopeId", "data-v-
|
|
3847
|
+
}), Nm = /* @__PURE__ */ St(bc, [["__scopeId", "data-v-6f15ffd0"]]), Bm = /* @__PURE__ */ De({
|
|
3848
3848
|
__name: "HelpButton",
|
|
3849
3849
|
props: {
|
|
3850
3850
|
title: {},
|
|
@@ -3941,7 +3941,7 @@ const Jt = new _c(), Yi = "SweetAlert2:", Sc = (t) => {
|
|
|
3941
3941
|
return e;
|
|
3942
3942
|
}, qr = (t) => t.charAt(0).toUpperCase() + t.slice(1), je = (t) => Array.prototype.slice.call(t), Ne = (t) => {
|
|
3943
3943
|
console.warn(`${Yi} ${typeof t == "object" ? t.join(" ") : t}`);
|
|
3944
|
-
},
|
|
3944
|
+
}, xt = (t) => {
|
|
3945
3945
|
console.error(`${Yi} ${t}`);
|
|
3946
3946
|
}, ei = [], kc = (t) => {
|
|
3947
3947
|
ei.includes(t) || (ei.push(t), Ne(t));
|
|
@@ -4091,16 +4091,16 @@ const Jt = new _c(), Yi = "SweetAlert2:", Sc = (t) => {
|
|
|
4091
4091
|
"returnFocus",
|
|
4092
4092
|
"heightAuto",
|
|
4093
4093
|
"keydownListenerCapture"
|
|
4094
|
-
], Xi = (t) => Object.prototype.hasOwnProperty.call(Ut, t), Zi = (t) => Ic.indexOf(t) !== -1,
|
|
4094
|
+
], Xi = (t) => Object.prototype.hasOwnProperty.call(Ut, t), Zi = (t) => Ic.indexOf(t) !== -1, Lr = (t) => Tc[t], Ec = (t) => {
|
|
4095
4095
|
Xi(t) || Ne(`Unknown parameter "${t}"`);
|
|
4096
4096
|
}, Pc = (t) => {
|
|
4097
4097
|
Ac.includes(t) && Ne(`The parameter "${t}" is incompatible with toasts`);
|
|
4098
|
-
}, Lc = (t) => {
|
|
4099
|
-
xr(t) && Cc(t, xr(t));
|
|
4100
4098
|
}, xc = (t) => {
|
|
4099
|
+
Lr(t) && Cc(t, Lr(t));
|
|
4100
|
+
}, Lc = (t) => {
|
|
4101
4101
|
!t.backdrop && t.allowOutsideClick && Ne('"allowOutsideClick" parameter requires `backdrop` parameter to be set to `true`');
|
|
4102
4102
|
for (const e in t)
|
|
4103
|
-
Ec(e), t.toast && Pc(e),
|
|
4103
|
+
Ec(e), t.toast && Pc(e), xc(e);
|
|
4104
4104
|
}, Oc = "swal2-", Ji = (t) => {
|
|
4105
4105
|
const e = {};
|
|
4106
4106
|
for (const n in t)
|
|
@@ -4361,7 +4361,7 @@ const Jt = new _c(), Yi = "SweetAlert2:", Sc = (t) => {
|
|
|
4361
4361
|
}, qc = (t) => {
|
|
4362
4362
|
const e = Vc();
|
|
4363
4363
|
if (ss()) {
|
|
4364
|
-
|
|
4364
|
+
xt("SweetAlert2 requires document to initialize");
|
|
4365
4365
|
return;
|
|
4366
4366
|
}
|
|
4367
4367
|
const n = document.createElement("div");
|
|
@@ -4440,7 +4440,7 @@ const ou = (t, e) => {
|
|
|
4440
4440
|
}), e.input && (o && au(e), uu(e));
|
|
4441
4441
|
}, au = (t) => {
|
|
4442
4442
|
if (!Me[t.input])
|
|
4443
|
-
return
|
|
4443
|
+
return xt(
|
|
4444
4444
|
`Unexpected type of input! Expected "text", "email", "password", "number", "tel", "select", "radio", "checkbox", "textarea", "file" or "url", got "${t.input}"`
|
|
4445
4445
|
);
|
|
4446
4446
|
const e = as(t.input), n = Me[t.input](e, t);
|
|
@@ -4530,7 +4530,7 @@ const du = (t, e) => {
|
|
|
4530
4530
|
if (!e.icon && !e.iconHtml)
|
|
4531
4531
|
return Ie(r);
|
|
4532
4532
|
if (e.icon && Object.keys(un).indexOf(e.icon) === -1)
|
|
4533
|
-
return
|
|
4533
|
+
return xt(`Unknown icon! Expected "success", "error", "warning", "info" or "question", got "${e.icon}"`), Ie(r);
|
|
4534
4534
|
he(r), oi(r, e), ri(r, e), q(r, e.showClass.icon);
|
|
4535
4535
|
}, ri = (t, e) => {
|
|
4536
4536
|
for (const n in un)
|
|
@@ -4624,8 +4624,8 @@ const du = (t, e) => {
|
|
|
4624
4624
|
return Mu(n), Object.assign(
|
|
4625
4625
|
Eu(n),
|
|
4626
4626
|
Pu(n),
|
|
4627
|
-
Lu(n),
|
|
4628
4627
|
xu(n),
|
|
4628
|
+
Lu(n),
|
|
4629
4629
|
Ou(n),
|
|
4630
4630
|
$u(n, us)
|
|
4631
4631
|
);
|
|
@@ -4643,10 +4643,10 @@ const du = (t, e) => {
|
|
|
4643
4643
|
const r = n.getAttribute("type");
|
|
4644
4644
|
e[`${r}ButtonText`] = n.innerHTML, e[`show${qr(r)}Button`] = !0, n.hasAttribute("color") && (e[`${r}ButtonColor`] = n.getAttribute("color")), n.hasAttribute("aria-label") && (e[`${r}ButtonAriaLabel`] = n.getAttribute("aria-label"));
|
|
4645
4645
|
}), e;
|
|
4646
|
-
},
|
|
4646
|
+
}, xu = (t) => {
|
|
4647
4647
|
const e = {}, n = t.querySelector("swal-image");
|
|
4648
4648
|
return n && (Et(n, ["src", "width", "height", "alt"]), n.hasAttribute("src") && (e.imageUrl = n.getAttribute("src")), n.hasAttribute("width") && (e.imageWidth = n.getAttribute("width")), n.hasAttribute("height") && (e.imageHeight = n.getAttribute("height")), n.hasAttribute("alt") && (e.imageAlt = n.getAttribute("alt"))), e;
|
|
4649
|
-
},
|
|
4649
|
+
}, Lu = (t) => {
|
|
4650
4650
|
const e = {}, n = t.querySelector("swal-icon");
|
|
4651
4651
|
return n && (Et(n, ["type", "color"]), n.hasAttribute("type") && (e.icon = n.getAttribute("type")), n.hasAttribute("color") && (e.iconColor = n.getAttribute("color")), e.iconHtml = n.innerHTML), e;
|
|
4652
4652
|
}, Ou = (t) => {
|
|
@@ -4809,13 +4809,13 @@ const Uu = () => {
|
|
|
4809
4809
|
const n = te(), r = (o) => sd[e.input](n, Or(o), e);
|
|
4810
4810
|
Yr(e.inputOptions) || Xr(e.inputOptions) ? (Ft(Ze()), kn(e.inputOptions).then((o) => {
|
|
4811
4811
|
t.hideLoading(), r(o);
|
|
4812
|
-
})) : typeof e.inputOptions == "object" ? r(e.inputOptions) :
|
|
4812
|
+
})) : typeof e.inputOptions == "object" ? r(e.inputOptions) : xt(`Unexpected type of inputOptions! Expected object, Map or Promise, got ${typeof e.inputOptions}`);
|
|
4813
4813
|
}, id = (t, e) => {
|
|
4814
4814
|
const n = t.getInput();
|
|
4815
4815
|
Ie(n), kn(e.inputValue).then((r) => {
|
|
4816
4816
|
n.value = e.input === "number" ? parseFloat(r) || 0 : `${r}`, he(n), n.focus(), t.hideLoading();
|
|
4817
4817
|
}).catch((r) => {
|
|
4818
|
-
|
|
4818
|
+
xt(`Error in inputValue promise: ${r}`), n.value = "", he(n), n.focus(), t.hideLoading();
|
|
4819
4819
|
});
|
|
4820
4820
|
}, sd = {
|
|
4821
4821
|
select: (t, e, n) => {
|
|
@@ -5009,13 +5009,13 @@ function Ed() {
|
|
|
5009
5009
|
function Pd() {
|
|
5010
5010
|
return ys(this.getInput(), !0);
|
|
5011
5011
|
}
|
|
5012
|
-
function
|
|
5012
|
+
function xd(t) {
|
|
5013
5013
|
const e = F.domCache.get(this), n = F.innerParams.get(this);
|
|
5014
5014
|
ke(e.validationMessage, t), e.validationMessage.className = h["validation-message"], n.customClass && n.customClass.validationMessage && q(e.validationMessage, n.customClass.validationMessage), he(e.validationMessage);
|
|
5015
5015
|
const r = this.getInput();
|
|
5016
5016
|
r && (r.setAttribute("aria-invalid", !0), r.setAttribute("aria-describedby", h["validation-message"]), rs(r), q(r, h.inputerror));
|
|
5017
5017
|
}
|
|
5018
|
-
function
|
|
5018
|
+
function Ld() {
|
|
5019
5019
|
const t = F.domCache.get(this);
|
|
5020
5020
|
t.validationMessage && Ie(t.validationMessage);
|
|
5021
5021
|
const e = this.getInput();
|
|
@@ -5082,8 +5082,8 @@ const Dd = (t) => {
|
|
|
5082
5082
|
hideLoading: li,
|
|
5083
5083
|
isAwaitingPromise: wd,
|
|
5084
5084
|
rejectPromise: Sd,
|
|
5085
|
-
resetValidationMessage:
|
|
5086
|
-
showValidationMessage:
|
|
5085
|
+
resetValidationMessage: Ld,
|
|
5086
|
+
showValidationMessage: xd,
|
|
5087
5087
|
update: $d
|
|
5088
5088
|
}, Symbol.toStringTag, { value: "Module" })), Nd = (t) => {
|
|
5089
5089
|
const e = F.innerParams.get(t);
|
|
@@ -5096,7 +5096,7 @@ const Dd = (t) => {
|
|
|
5096
5096
|
}, _s = (t, e) => {
|
|
5097
5097
|
const n = F.innerParams.get(t);
|
|
5098
5098
|
if (!n.input)
|
|
5099
|
-
return
|
|
5099
|
+
return xt(
|
|
5100
5100
|
`The "input" parameter is needed to be set when using returnInputValueOn${qr(e)}`
|
|
5101
5101
|
);
|
|
5102
5102
|
const r = ed(t, n);
|
|
@@ -5160,7 +5160,7 @@ const Kd = (t) => {
|
|
|
5160
5160
|
const e = {};
|
|
5161
5161
|
return typeof t[0] == "object" && !di(t[0]) ? Object.assign(e, t[0]) : ["title", "html", "icon"].forEach((n, r) => {
|
|
5162
5162
|
const o = t[r];
|
|
5163
|
-
typeof o == "string" || di(o) ? e[n] = o : o !== void 0 &&
|
|
5163
|
+
typeof o == "string" || di(o) ? e[n] = o : o !== void 0 && xt(`Unexpected type of ${n}! Expected "string" or "Element", got ${typeof o}`);
|
|
5164
5164
|
}), e;
|
|
5165
5165
|
};
|
|
5166
5166
|
function Yd(...t) {
|
|
@@ -5234,7 +5234,7 @@ const nf = (t) => {
|
|
|
5234
5234
|
getTitle: Qi,
|
|
5235
5235
|
getValidationMessage: tr,
|
|
5236
5236
|
increaseTimer: Qd,
|
|
5237
|
-
isDeprecatedParameter:
|
|
5237
|
+
isDeprecatedParameter: Lr,
|
|
5238
5238
|
isLoading: Rc,
|
|
5239
5239
|
isTimerRunning: ef,
|
|
5240
5240
|
isUpdatableParameter: Zi,
|
|
@@ -5265,7 +5265,7 @@ class Wt {
|
|
|
5265
5265
|
F.promise.set(this, r);
|
|
5266
5266
|
}
|
|
5267
5267
|
_main(e, n = {}) {
|
|
5268
|
-
|
|
5268
|
+
Lc(Object.assign({}, n, e)), j.currentInstance && (j.currentInstance._destroy(), Qr() && cs()), j.currentInstance = this;
|
|
5269
5269
|
const r = sf(e, n);
|
|
5270
5270
|
Nu(r), Object.freeze(r), j.timeout && (j.timeout.stop(), delete j.timeout), clearTimeout(j.restoreFocusTimeout);
|
|
5271
5271
|
const o = af(this);
|
|
@@ -5340,14 +5340,14 @@ const {
|
|
|
5340
5340
|
getOwnPropertyDescriptor: pf
|
|
5341
5341
|
} = Object;
|
|
5342
5342
|
let {
|
|
5343
|
-
freeze:
|
|
5343
|
+
freeze: xe,
|
|
5344
5344
|
seal: Ke,
|
|
5345
5345
|
create: Ts
|
|
5346
5346
|
} = Object, {
|
|
5347
5347
|
apply: Dr,
|
|
5348
5348
|
construct: Nr
|
|
5349
5349
|
} = typeof Reflect < "u" && Reflect;
|
|
5350
|
-
|
|
5350
|
+
xe || (xe = function(e) {
|
|
5351
5351
|
return e;
|
|
5352
5352
|
});
|
|
5353
5353
|
Ke || (Ke = function(e) {
|
|
@@ -5359,8 +5359,8 @@ Dr || (Dr = function(e, n, r) {
|
|
|
5359
5359
|
Nr || (Nr = function(e, n) {
|
|
5360
5360
|
return new e(...n);
|
|
5361
5361
|
});
|
|
5362
|
-
const Bn =
|
|
5363
|
-
function
|
|
5362
|
+
const Bn = Le(Array.prototype.forEach), hf = Le(Array.prototype.lastIndexOf), pi = Le(Array.prototype.pop), Qt = Le(Array.prototype.push), gf = Le(Array.prototype.splice), Vn = Le(String.prototype.toLowerCase), yr = Le(String.prototype.toString), hi = Le(String.prototype.match), en = Le(String.prototype.replace), vf = Le(String.prototype.indexOf), yf = Le(String.prototype.trim), Ge = Le(Object.prototype.hasOwnProperty), Ae = Le(RegExp.prototype.test), tn = bf(TypeError);
|
|
5363
|
+
function Le(t) {
|
|
5364
5364
|
return function(e) {
|
|
5365
5365
|
e instanceof RegExp && (e.lastIndex = 0);
|
|
5366
5366
|
for (var n = arguments.length, r = new Array(n > 1 ? n - 1 : 0), o = 1; o < n; o++)
|
|
@@ -5405,9 +5405,9 @@ function nn(t, e) {
|
|
|
5405
5405
|
const r = pf(t, e);
|
|
5406
5406
|
if (r) {
|
|
5407
5407
|
if (r.get)
|
|
5408
|
-
return
|
|
5408
|
+
return Le(r.get);
|
|
5409
5409
|
if (typeof r.value == "function")
|
|
5410
|
-
return
|
|
5410
|
+
return Le(r.value);
|
|
5411
5411
|
}
|
|
5412
5412
|
t = mf(t);
|
|
5413
5413
|
}
|
|
@@ -5416,18 +5416,18 @@ function nn(t, e) {
|
|
|
5416
5416
|
}
|
|
5417
5417
|
return n;
|
|
5418
5418
|
}
|
|
5419
|
-
const gi =
|
|
5419
|
+
const gi = xe(["a", "abbr", "acronym", "address", "area", "article", "aside", "audio", "b", "bdi", "bdo", "big", "blink", "blockquote", "body", "br", "button", "canvas", "caption", "center", "cite", "code", "col", "colgroup", "content", "data", "datalist", "dd", "decorator", "del", "details", "dfn", "dialog", "dir", "div", "dl", "dt", "element", "em", "fieldset", "figcaption", "figure", "font", "footer", "form", "h1", "h2", "h3", "h4", "h5", "h6", "head", "header", "hgroup", "hr", "html", "i", "img", "input", "ins", "kbd", "label", "legend", "li", "main", "map", "mark", "marquee", "menu", "menuitem", "meter", "nav", "nobr", "ol", "optgroup", "option", "output", "p", "picture", "pre", "progress", "q", "rp", "rt", "ruby", "s", "samp", "section", "select", "shadow", "small", "source", "spacer", "span", "strike", "strong", "style", "sub", "summary", "sup", "table", "tbody", "td", "template", "textarea", "tfoot", "th", "thead", "time", "tr", "track", "tt", "u", "ul", "var", "video", "wbr"]), br = xe(["svg", "a", "altglyph", "altglyphdef", "altglyphitem", "animatecolor", "animatemotion", "animatetransform", "circle", "clippath", "defs", "desc", "ellipse", "filter", "font", "g", "glyph", "glyphref", "hkern", "image", "line", "lineargradient", "marker", "mask", "metadata", "mpath", "path", "pattern", "polygon", "polyline", "radialgradient", "rect", "stop", "style", "switch", "symbol", "text", "textpath", "title", "tref", "tspan", "view", "vkern"]), wr = xe(["feBlend", "feColorMatrix", "feComponentTransfer", "feComposite", "feConvolveMatrix", "feDiffuseLighting", "feDisplacementMap", "feDistantLight", "feDropShadow", "feFlood", "feFuncA", "feFuncB", "feFuncG", "feFuncR", "feGaussianBlur", "feImage", "feMerge", "feMergeNode", "feMorphology", "feOffset", "fePointLight", "feSpecularLighting", "feSpotLight", "feTile", "feTurbulence"]), _f = xe(["animate", "color-profile", "cursor", "discard", "font-face", "font-face-format", "font-face-name", "font-face-src", "font-face-uri", "foreignobject", "hatch", "hatchpath", "mesh", "meshgradient", "meshpatch", "meshrow", "missing-glyph", "script", "set", "solidcolor", "unknown", "use"]), _r = xe(["math", "menclose", "merror", "mfenced", "mfrac", "mglyph", "mi", "mlabeledtr", "mmultiscripts", "mn", "mo", "mover", "mpadded", "mphantom", "mroot", "mrow", "ms", "mspace", "msqrt", "mstyle", "msub", "msup", "msubsup", "mtable", "mtd", "mtext", "mtr", "munder", "munderover", "mprescripts"]), Sf = xe(["maction", "maligngroup", "malignmark", "mlongdiv", "mscarries", "mscarry", "msgroup", "mstack", "msline", "msrow", "semantics", "annotation", "annotation-xml", "mprescripts", "none"]), vi = xe(["#text"]), yi = xe(["accept", "action", "align", "alt", "autocapitalize", "autocomplete", "autopictureinpicture", "autoplay", "background", "bgcolor", "border", "capture", "cellpadding", "cellspacing", "checked", "cite", "class", "clear", "color", "cols", "colspan", "controls", "controlslist", "coords", "crossorigin", "datetime", "decoding", "default", "dir", "disabled", "disablepictureinpicture", "disableremoteplayback", "download", "draggable", "enctype", "enterkeyhint", "face", "for", "headers", "height", "hidden", "high", "href", "hreflang", "id", "inputmode", "integrity", "ismap", "kind", "label", "lang", "list", "loading", "loop", "low", "max", "maxlength", "media", "method", "min", "minlength", "multiple", "muted", "name", "nonce", "noshade", "novalidate", "nowrap", "open", "optimum", "pattern", "placeholder", "playsinline", "popover", "popovertarget", "popovertargetaction", "poster", "preload", "pubdate", "radiogroup", "readonly", "rel", "required", "rev", "reversed", "role", "rows", "rowspan", "spellcheck", "scope", "selected", "shape", "size", "sizes", "span", "srclang", "start", "src", "srcset", "step", "style", "summary", "tabindex", "title", "translate", "type", "usemap", "valign", "value", "width", "wrap", "xmlns", "slot"]), Sr = xe(["accent-height", "accumulate", "additive", "alignment-baseline", "amplitude", "ascent", "attributename", "attributetype", "azimuth", "basefrequency", "baseline-shift", "begin", "bias", "by", "class", "clip", "clippathunits", "clip-path", "clip-rule", "color", "color-interpolation", "color-interpolation-filters", "color-profile", "color-rendering", "cx", "cy", "d", "dx", "dy", "diffuseconstant", "direction", "display", "divisor", "dur", "edgemode", "elevation", "end", "exponent", "fill", "fill-opacity", "fill-rule", "filter", "filterunits", "flood-color", "flood-opacity", "font-family", "font-size", "font-size-adjust", "font-stretch", "font-style", "font-variant", "font-weight", "fx", "fy", "g1", "g2", "glyph-name", "glyphref", "gradientunits", "gradienttransform", "height", "href", "id", "image-rendering", "in", "in2", "intercept", "k", "k1", "k2", "k3", "k4", "kerning", "keypoints", "keysplines", "keytimes", "lang", "lengthadjust", "letter-spacing", "kernelmatrix", "kernelunitlength", "lighting-color", "local", "marker-end", "marker-mid", "marker-start", "markerheight", "markerunits", "markerwidth", "maskcontentunits", "maskunits", "max", "mask", "media", "method", "mode", "min", "name", "numoctaves", "offset", "operator", "opacity", "order", "orient", "orientation", "origin", "overflow", "paint-order", "path", "pathlength", "patterncontentunits", "patterntransform", "patternunits", "points", "preservealpha", "preserveaspectratio", "primitiveunits", "r", "rx", "ry", "radius", "refx", "refy", "repeatcount", "repeatdur", "restart", "result", "rotate", "scale", "seed", "shape-rendering", "slope", "specularconstant", "specularexponent", "spreadmethod", "startoffset", "stddeviation", "stitchtiles", "stop-color", "stop-opacity", "stroke-dasharray", "stroke-dashoffset", "stroke-linecap", "stroke-linejoin", "stroke-miterlimit", "stroke-opacity", "stroke", "stroke-width", "style", "surfacescale", "systemlanguage", "tabindex", "tablevalues", "targetx", "targety", "transform", "transform-origin", "text-anchor", "text-decoration", "text-rendering", "textlength", "type", "u1", "u2", "unicode", "values", "viewbox", "visibility", "version", "vert-adv-y", "vert-origin-x", "vert-origin-y", "width", "word-spacing", "wrap", "writing-mode", "xchannelselector", "ychannelselector", "x", "x1", "x2", "xmlns", "y", "y1", "y2", "z", "zoomandpan"]), bi = xe(["accent", "accentunder", "align", "bevelled", "close", "columnsalign", "columnlines", "columnspan", "denomalign", "depth", "dir", "display", "displaystyle", "encoding", "fence", "frame", "height", "href", "id", "largeop", "length", "linethickness", "lspace", "lquote", "mathbackground", "mathcolor", "mathsize", "mathvariant", "maxsize", "minsize", "movablelimits", "notation", "numalign", "open", "rowalign", "rowlines", "rowspacing", "rowspan", "rspace", "rquote", "scriptlevel", "scriptminsize", "scriptsizemultiplier", "selection", "separator", "separators", "stretchy", "subscriptshift", "supscriptshift", "symmetric", "voffset", "width", "xmlns"]), Un = xe(["xlink:href", "xml:id", "xlink:title", "xml:space", "xmlns:xlink"]), kf = Ke(/\{\{[\w\W]*|[\w\W]*\}\}/gm), Cf = Ke(/<%[\w\W]*|[\w\W]*%>/gm), If = Ke(/\$\{[\w\W]*/gm), Tf = Ke(/^data-[\-\w.\u00B7-\uFFFF]+$/), Af = Ke(/^aria-[\-\w]+$/), As = Ke(
|
|
5420
5420
|
/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i
|
|
5421
5421
|
// eslint-disable-line no-useless-escape
|
|
5422
5422
|
), Ef = Ke(/^(?:\w+script|data):/i), Pf = Ke(
|
|
5423
5423
|
/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g
|
|
5424
5424
|
// eslint-disable-line no-control-regex
|
|
5425
|
-
), Es = Ke(/^html$/i),
|
|
5425
|
+
), Es = Ke(/^html$/i), xf = Ke(/^[a-z][.\w]*(-[.\w]+)+$/i);
|
|
5426
5426
|
var wi = /* @__PURE__ */ Object.freeze({
|
|
5427
5427
|
__proto__: null,
|
|
5428
5428
|
ARIA_ATTR: Af,
|
|
5429
5429
|
ATTR_WHITESPACE: Pf,
|
|
5430
|
-
CUSTOM_ELEMENT:
|
|
5430
|
+
CUSTOM_ELEMENT: xf,
|
|
5431
5431
|
DATA_ATTR: Tf,
|
|
5432
5432
|
DOCTYPE_NAME: Es,
|
|
5433
5433
|
ERB_EXPR: Cf,
|
|
@@ -5443,7 +5443,7 @@ const rn = {
|
|
|
5443
5443
|
progressingInstruction: 7,
|
|
5444
5444
|
comment: 8,
|
|
5445
5445
|
document: 9
|
|
5446
|
-
},
|
|
5446
|
+
}, Lf = function() {
|
|
5447
5447
|
return typeof window > "u" ? null : window;
|
|
5448
5448
|
}, Of = function(e, n) {
|
|
5449
5449
|
if (typeof e != "object" || typeof e.createPolicy != "function")
|
|
@@ -5478,7 +5478,7 @@ const rn = {
|
|
|
5478
5478
|
};
|
|
5479
5479
|
};
|
|
5480
5480
|
function Ps() {
|
|
5481
|
-
let t = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] :
|
|
5481
|
+
let t = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : Lf();
|
|
5482
5482
|
const e = (R) => Ps(R);
|
|
5483
5483
|
if (e.version = "3.2.6", e.removed = [], !t || !t.document || t.document.nodeType !== rn.document || !t.Element)
|
|
5484
5484
|
return e.isSupported = !1, e;
|
|
@@ -5493,9 +5493,9 @@ function Ps() {
|
|
|
5493
5493
|
NodeFilter: u,
|
|
5494
5494
|
NamedNodeMap: d = t.NamedNodeMap || t.MozNamedAttrMap,
|
|
5495
5495
|
HTMLFormElement: m,
|
|
5496
|
-
DOMParser:
|
|
5497
|
-
trustedTypes:
|
|
5498
|
-
} = t,
|
|
5496
|
+
DOMParser: g,
|
|
5497
|
+
trustedTypes: _
|
|
5498
|
+
} = t, k = l.prototype, A = nn(k, "cloneNode"), P = nn(k, "remove"), w = nn(k, "nextSibling"), b = nn(k, "childNodes"), N = nn(k, "parentNode");
|
|
5499
5499
|
if (typeof a == "function") {
|
|
5500
5500
|
const R = n.createElement("template");
|
|
5501
5501
|
R.content && R.content.ownerDocument && (n = R.content.ownerDocument);
|
|
@@ -5527,7 +5527,7 @@ function Ps() {
|
|
|
5527
5527
|
const p = z({}, [...gi, ...br, ...wr, ..._r, ...vi]);
|
|
5528
5528
|
let y = null;
|
|
5529
5529
|
const T = z({}, [...yi, ...Sr, ...bi, ...Un]);
|
|
5530
|
-
let
|
|
5530
|
+
let v = Object.seal(Ts(null, {
|
|
5531
5531
|
tagNameCheck: {
|
|
5532
5532
|
writable: !0,
|
|
5533
5533
|
configurable: !1,
|
|
@@ -5546,16 +5546,16 @@ function Ps() {
|
|
|
5546
5546
|
enumerable: !0,
|
|
5547
5547
|
value: !1
|
|
5548
5548
|
}
|
|
5549
|
-
})), E = null,
|
|
5549
|
+
})), E = null, S = null, C = !0, L = !0, x = !1, B = !0, V = !1, Te = !0, be = !1, we = !1, it = !1, Lt = !1, Pn = !1, xn = !1, uo = !0, fo = !1;
|
|
5550
5550
|
const Ds = "user-content-";
|
|
5551
5551
|
let ir = !0, Gt = !1, Ot = {}, $t = null;
|
|
5552
5552
|
const mo = 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"]);
|
|
5553
5553
|
let po = null;
|
|
5554
5554
|
const ho = z({}, ["audio", "video", "img", "source", "image", "track"]);
|
|
5555
5555
|
let sr = null;
|
|
5556
|
-
const go = z({}, ["alt", "class", "for", "id", "label", "name", "pattern", "placeholder", "role", "summary", "title", "value", "style", "xmlns"]),
|
|
5556
|
+
const go = z({}, ["alt", "class", "for", "id", "label", "name", "pattern", "placeholder", "role", "summary", "title", "value", "style", "xmlns"]), Ln = "http://www.w3.org/1998/Math/MathML", On = "http://www.w3.org/2000/svg", st = "http://www.w3.org/1999/xhtml";
|
|
5557
5557
|
let Mt = st, ar = !1, lr = null;
|
|
5558
|
-
const Ns = z({}, [
|
|
5558
|
+
const Ns = z({}, [Ln, On, st], yr);
|
|
5559
5559
|
let $n = z({}, ["mi", "mo", "mn", "ms", "mtext"]), Mn = z({}, ["annotation-xml"]);
|
|
5560
5560
|
const Bs = z({}, ["title", "style", "font", "a", "script"]);
|
|
5561
5561
|
let qt = null;
|
|
@@ -5567,24 +5567,24 @@ function Ps() {
|
|
|
5567
5567
|
let f = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
5568
5568
|
if (!(Rt && Rt === f)) {
|
|
5569
5569
|
if ((!f || typeof f != "object") && (f = {}), f = ct(f), qt = // eslint-disable-next-line unicorn/prefer-includes
|
|
5570
|
-
Us.indexOf(f.PARSER_MEDIA_TYPE) === -1 ? Hs : f.PARSER_MEDIA_TYPE, fe = qt === "application/xhtml+xml" ? yr : Vn, c = Ge(f, "ALLOWED_TAGS") ? z({}, f.ALLOWED_TAGS, fe) : p, y = Ge(f, "ALLOWED_ATTR") ? z({}, f.ALLOWED_ATTR, fe) : T, lr = Ge(f, "ALLOWED_NAMESPACES") ? z({}, f.ALLOWED_NAMESPACES, yr) : Ns, sr = Ge(f, "ADD_URI_SAFE_ATTR") ? z(ct(go), f.ADD_URI_SAFE_ATTR, fe) : go, po = Ge(f, "ADD_DATA_URI_TAGS") ? z(ct(ho), f.ADD_DATA_URI_TAGS, fe) : ho, $t = Ge(f, "FORBID_CONTENTS") ? z({}, f.FORBID_CONTENTS, fe) : mo, E = Ge(f, "FORBID_TAGS") ? z({}, f.FORBID_TAGS, fe) : ct({}),
|
|
5570
|
+
Us.indexOf(f.PARSER_MEDIA_TYPE) === -1 ? Hs : f.PARSER_MEDIA_TYPE, fe = qt === "application/xhtml+xml" ? yr : Vn, c = Ge(f, "ALLOWED_TAGS") ? z({}, f.ALLOWED_TAGS, fe) : p, y = Ge(f, "ALLOWED_ATTR") ? z({}, f.ALLOWED_ATTR, fe) : T, lr = Ge(f, "ALLOWED_NAMESPACES") ? z({}, f.ALLOWED_NAMESPACES, yr) : Ns, sr = Ge(f, "ADD_URI_SAFE_ATTR") ? z(ct(go), f.ADD_URI_SAFE_ATTR, fe) : go, po = Ge(f, "ADD_DATA_URI_TAGS") ? z(ct(ho), f.ADD_DATA_URI_TAGS, fe) : ho, $t = Ge(f, "FORBID_CONTENTS") ? z({}, f.FORBID_CONTENTS, fe) : mo, E = Ge(f, "FORBID_TAGS") ? z({}, f.FORBID_TAGS, fe) : ct({}), S = Ge(f, "FORBID_ATTR") ? z({}, f.FORBID_ATTR, fe) : ct({}), Ot = Ge(f, "USE_PROFILES") ? f.USE_PROFILES : !1, C = f.ALLOW_ARIA_ATTR !== !1, L = f.ALLOW_DATA_ATTR !== !1, x = f.ALLOW_UNKNOWN_PROTOCOLS || !1, B = f.ALLOW_SELF_CLOSE_IN_ATTR !== !1, V = f.SAFE_FOR_TEMPLATES || !1, Te = f.SAFE_FOR_XML !== !1, be = f.WHOLE_DOCUMENT || !1, Lt = f.RETURN_DOM || !1, Pn = f.RETURN_DOM_FRAGMENT || !1, xn = f.RETURN_TRUSTED_TYPE || !1, it = f.FORCE_BODY || !1, uo = f.SANITIZE_DOM !== !1, fo = f.SANITIZE_NAMED_PROPS || !1, ir = f.KEEP_CONTENT !== !1, Gt = f.IN_PLACE || !1, Fe = f.ALLOWED_URI_REGEXP || As, Mt = f.NAMESPACE || st, $n = f.MATHML_TEXT_INTEGRATION_POINTS || $n, Mn = f.HTML_INTEGRATION_POINTS || Mn, v = f.CUSTOM_ELEMENT_HANDLING || {}, f.CUSTOM_ELEMENT_HANDLING && vo(f.CUSTOM_ELEMENT_HANDLING.tagNameCheck) && (v.tagNameCheck = f.CUSTOM_ELEMENT_HANDLING.tagNameCheck), f.CUSTOM_ELEMENT_HANDLING && vo(f.CUSTOM_ELEMENT_HANDLING.attributeNameCheck) && (v.attributeNameCheck = f.CUSTOM_ELEMENT_HANDLING.attributeNameCheck), f.CUSTOM_ELEMENT_HANDLING && typeof f.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements == "boolean" && (v.allowCustomizedBuiltInElements = f.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements), V && (L = !1), Pn && (Lt = !0), Ot && (c = z({}, vi), y = [], Ot.html === !0 && (z(c, gi), z(y, yi)), Ot.svg === !0 && (z(c, br), z(y, Sr), z(y, Un)), Ot.svgFilters === !0 && (z(c, wr), z(y, Sr), z(y, Un)), Ot.mathMl === !0 && (z(c, _r), z(y, bi), z(y, Un))), f.ADD_TAGS && (c === p && (c = ct(c)), z(c, f.ADD_TAGS, fe)), f.ADD_ATTR && (y === T && (y = ct(y)), z(y, f.ADD_ATTR, fe)), f.ADD_URI_SAFE_ATTR && z(sr, f.ADD_URI_SAFE_ATTR, fe), f.FORBID_CONTENTS && ($t === mo && ($t = ct($t)), z($t, f.FORBID_CONTENTS, fe)), ir && (c["#text"] = !0), be && z(c, ["html", "head", "body"]), c.table && (z(c, ["tbody"]), delete E.tbody), f.TRUSTED_TYPES_POLICY) {
|
|
5571
5571
|
if (typeof f.TRUSTED_TYPES_POLICY.createHTML != "function")
|
|
5572
5572
|
throw tn('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');
|
|
5573
5573
|
if (typeof f.TRUSTED_TYPES_POLICY.createScriptURL != "function")
|
|
5574
5574
|
throw tn('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');
|
|
5575
5575
|
H = f.TRUSTED_TYPES_POLICY, Y = H.createHTML("");
|
|
5576
5576
|
} else
|
|
5577
|
-
H === void 0 && (H = Of(
|
|
5578
|
-
|
|
5577
|
+
H === void 0 && (H = Of(_, o)), H !== null && typeof Y == "string" && (Y = H.createHTML(""));
|
|
5578
|
+
xe && xe(f), Rt = f;
|
|
5579
5579
|
}
|
|
5580
5580
|
}, yo = z({}, [...br, ...wr, ..._f]), bo = z({}, [..._r, ...Sf]), Fs = function(f) {
|
|
5581
|
-
let
|
|
5582
|
-
(!
|
|
5581
|
+
let I = N(f);
|
|
5582
|
+
(!I || !I.tagName) && (I = {
|
|
5583
5583
|
namespaceURI: Mt,
|
|
5584
5584
|
tagName: "template"
|
|
5585
5585
|
});
|
|
5586
|
-
const M = Vn(f.tagName), ie = Vn(
|
|
5587
|
-
return lr[f.namespaceURI] ? f.namespaceURI === On ?
|
|
5586
|
+
const M = Vn(f.tagName), ie = Vn(I.tagName);
|
|
5587
|
+
return lr[f.namespaceURI] ? f.namespaceURI === On ? I.namespaceURI === st ? M === "svg" : I.namespaceURI === Ln ? M === "svg" && (ie === "annotation-xml" || $n[ie]) : !!yo[M] : f.namespaceURI === Ln ? I.namespaceURI === st ? M === "math" : I.namespaceURI === On ? M === "math" && Mn[ie] : !!bo[M] : f.namespaceURI === st ? I.namespaceURI === On && !Mn[ie] || I.namespaceURI === Ln && !$n[ie] ? !1 : !bo[M] && (Bs[M] || !yo[M]) : !!(qt === "application/xhtml+xml" && lr[f.namespaceURI]) : !1;
|
|
5588
5588
|
}, tt = function(f) {
|
|
5589
5589
|
Qt(e.removed, {
|
|
5590
5590
|
element: f
|
|
@@ -5594,31 +5594,31 @@ function Ps() {
|
|
|
5594
5594
|
} catch {
|
|
5595
5595
|
P(f);
|
|
5596
5596
|
}
|
|
5597
|
-
}, Dt = function(f,
|
|
5597
|
+
}, Dt = function(f, I) {
|
|
5598
5598
|
try {
|
|
5599
5599
|
Qt(e.removed, {
|
|
5600
|
-
attribute:
|
|
5601
|
-
from:
|
|
5600
|
+
attribute: I.getAttributeNode(f),
|
|
5601
|
+
from: I
|
|
5602
5602
|
});
|
|
5603
5603
|
} catch {
|
|
5604
5604
|
Qt(e.removed, {
|
|
5605
5605
|
attribute: null,
|
|
5606
|
-
from:
|
|
5606
|
+
from: I
|
|
5607
5607
|
});
|
|
5608
5608
|
}
|
|
5609
|
-
if (
|
|
5610
|
-
if (
|
|
5609
|
+
if (I.removeAttribute(f), f === "is")
|
|
5610
|
+
if (Lt || Pn)
|
|
5611
5611
|
try {
|
|
5612
|
-
tt(
|
|
5612
|
+
tt(I);
|
|
5613
5613
|
} catch {
|
|
5614
5614
|
}
|
|
5615
5615
|
else
|
|
5616
5616
|
try {
|
|
5617
|
-
|
|
5617
|
+
I.setAttribute(f, "");
|
|
5618
5618
|
} catch {
|
|
5619
5619
|
}
|
|
5620
5620
|
}, wo = function(f) {
|
|
5621
|
-
let
|
|
5621
|
+
let I = null, M = null;
|
|
5622
5622
|
if (it)
|
|
5623
5623
|
f = "<remove></remove>" + f;
|
|
5624
5624
|
else {
|
|
@@ -5629,18 +5629,18 @@ function Ps() {
|
|
|
5629
5629
|
const ie = H ? H.createHTML(f) : f;
|
|
5630
5630
|
if (Mt === st)
|
|
5631
5631
|
try {
|
|
5632
|
-
|
|
5632
|
+
I = new g().parseFromString(ie, qt);
|
|
5633
5633
|
} catch {
|
|
5634
5634
|
}
|
|
5635
|
-
if (!
|
|
5636
|
-
|
|
5635
|
+
if (!I || !I.documentElement) {
|
|
5636
|
+
I = ge.createDocument(Mt, "template", null);
|
|
5637
5637
|
try {
|
|
5638
|
-
|
|
5638
|
+
I.documentElement.innerHTML = ar ? Y : ie;
|
|
5639
5639
|
} catch {
|
|
5640
5640
|
}
|
|
5641
5641
|
}
|
|
5642
|
-
const _e =
|
|
5643
|
-
return f && M && _e.insertBefore(n.createTextNode(M), _e.childNodes[0] || null), Mt === st ? ce.call(
|
|
5642
|
+
const _e = I.body || I.documentElement;
|
|
5643
|
+
return f && M && _e.insertBefore(n.createTextNode(M), _e.childNodes[0] || null), Mt === st ? ce.call(I, be ? "html" : "body")[0] : be ? I.documentElement : _e;
|
|
5644
5644
|
}, _o = function(f) {
|
|
5645
5645
|
return le.call(
|
|
5646
5646
|
f.ownerDocument || f,
|
|
@@ -5654,13 +5654,13 @@ function Ps() {
|
|
|
5654
5654
|
}, So = function(f) {
|
|
5655
5655
|
return typeof s == "function" && f instanceof s;
|
|
5656
5656
|
};
|
|
5657
|
-
function at(R, f,
|
|
5657
|
+
function at(R, f, I) {
|
|
5658
5658
|
Bn(R, (M) => {
|
|
5659
|
-
M.call(e, f,
|
|
5659
|
+
M.call(e, f, I, Rt);
|
|
5660
5660
|
});
|
|
5661
5661
|
}
|
|
5662
5662
|
const ko = function(f) {
|
|
5663
|
-
let
|
|
5663
|
+
let I = null;
|
|
5664
5664
|
if (at(D.beforeSanitizeElements, f, null), ur(f))
|
|
5665
5665
|
return tt(f), !0;
|
|
5666
5666
|
const M = fe(f.nodeName);
|
|
@@ -5670,7 +5670,7 @@ function Ps() {
|
|
|
5670
5670
|
}), Te && f.hasChildNodes() && !So(f.firstElementChild) && Ae(/<[/\w!]/g, f.innerHTML) && Ae(/<[/\w!]/g, f.textContent) || f.nodeType === rn.progressingInstruction || Te && f.nodeType === rn.comment && Ae(/<[/\w]/g, f.data))
|
|
5671
5671
|
return tt(f), !0;
|
|
5672
5672
|
if (!c[M] || E[M]) {
|
|
5673
|
-
if (!E[M] && Io(M) && (
|
|
5673
|
+
if (!E[M] && Io(M) && (v.tagNameCheck instanceof RegExp && Ae(v.tagNameCheck, M) || v.tagNameCheck instanceof Function && v.tagNameCheck(M)))
|
|
5674
5674
|
return !1;
|
|
5675
5675
|
if (ir && !$t[M]) {
|
|
5676
5676
|
const ie = N(f) || f.parentNode, _e = b(f) || f.childNodes;
|
|
@@ -5684,29 +5684,29 @@ function Ps() {
|
|
|
5684
5684
|
}
|
|
5685
5685
|
return tt(f), !0;
|
|
5686
5686
|
}
|
|
5687
|
-
return f instanceof l && !Fs(f) || (M === "noscript" || M === "noembed" || M === "noframes") && Ae(/<\/no(script|embed|frames)/i, f.innerHTML) ? (tt(f), !0) : (V && f.nodeType === rn.text && (
|
|
5688
|
-
|
|
5689
|
-
}), f.textContent !==
|
|
5687
|
+
return f instanceof l && !Fs(f) || (M === "noscript" || M === "noembed" || M === "noframes") && Ae(/<\/no(script|embed|frames)/i, f.innerHTML) ? (tt(f), !0) : (V && f.nodeType === rn.text && (I = f.textContent, Bn([J, ve, ye], (ie) => {
|
|
5688
|
+
I = en(I, ie, " ");
|
|
5689
|
+
}), f.textContent !== I && (Qt(e.removed, {
|
|
5690
5690
|
element: f.cloneNode()
|
|
5691
|
-
}), f.textContent =
|
|
5692
|
-
}, Co = function(f,
|
|
5693
|
-
if (uo && (
|
|
5691
|
+
}), f.textContent = I)), at(D.afterSanitizeElements, f, null), !1);
|
|
5692
|
+
}, Co = function(f, I, M) {
|
|
5693
|
+
if (uo && (I === "id" || I === "name") && (M in n || M in js))
|
|
5694
5694
|
return !1;
|
|
5695
|
-
if (!(
|
|
5696
|
-
if (!(
|
|
5697
|
-
if (!y[
|
|
5695
|
+
if (!(L && !S[I] && Ae(Je, I))) {
|
|
5696
|
+
if (!(C && Ae(ot, I))) {
|
|
5697
|
+
if (!y[I] || S[I]) {
|
|
5698
5698
|
if (
|
|
5699
5699
|
// First condition does a very basic check if a) it's basically a valid custom element tagname AND
|
|
5700
5700
|
// b) if the tagName passes whatever the user has configured for CUSTOM_ELEMENT_HANDLING.tagNameCheck
|
|
5701
5701
|
// and c) if the attribute name passes whatever the user has configured for CUSTOM_ELEMENT_HANDLING.attributeNameCheck
|
|
5702
|
-
!(Io(f) && (
|
|
5702
|
+
!(Io(f) && (v.tagNameCheck instanceof RegExp && Ae(v.tagNameCheck, f) || v.tagNameCheck instanceof Function && v.tagNameCheck(f)) && (v.attributeNameCheck instanceof RegExp && Ae(v.attributeNameCheck, I) || v.attributeNameCheck instanceof Function && v.attributeNameCheck(I)) || // Alternative, second condition checks if it's an `is`-attribute, AND
|
|
5703
5703
|
// the value passes whatever the user has configured for CUSTOM_ELEMENT_HANDLING.tagNameCheck
|
|
5704
|
-
|
|
5704
|
+
I === "is" && v.allowCustomizedBuiltInElements && (v.tagNameCheck instanceof RegExp && Ae(v.tagNameCheck, M) || v.tagNameCheck instanceof Function && v.tagNameCheck(M)))
|
|
5705
5705
|
) return !1;
|
|
5706
|
-
} else if (!sr[
|
|
5706
|
+
} else if (!sr[I]) {
|
|
5707
5707
|
if (!Ae(Fe, en(M, et, ""))) {
|
|
5708
|
-
if (!((
|
|
5709
|
-
if (!(
|
|
5708
|
+
if (!((I === "src" || I === "xlink:href" || I === "href") && f !== "script" && vf(M, "data:") === 0 && po[f])) {
|
|
5709
|
+
if (!(x && !Ae(Qe, en(M, et, "")))) {
|
|
5710
5710
|
if (M)
|
|
5711
5711
|
return !1;
|
|
5712
5712
|
}
|
|
@@ -5721,9 +5721,9 @@ function Ps() {
|
|
|
5721
5721
|
}, To = function(f) {
|
|
5722
5722
|
at(D.beforeSanitizeAttributes, f, null);
|
|
5723
5723
|
const {
|
|
5724
|
-
attributes:
|
|
5724
|
+
attributes: I
|
|
5725
5725
|
} = f;
|
|
5726
|
-
if (!
|
|
5726
|
+
if (!I || ur(f))
|
|
5727
5727
|
return;
|
|
5728
5728
|
const M = {
|
|
5729
5729
|
attrName: "",
|
|
@@ -5732,9 +5732,9 @@ function Ps() {
|
|
|
5732
5732
|
allowedAttributes: y,
|
|
5733
5733
|
forceKeepAttr: void 0
|
|
5734
5734
|
};
|
|
5735
|
-
let ie =
|
|
5735
|
+
let ie = I.length;
|
|
5736
5736
|
for (; ie--; ) {
|
|
5737
|
-
const _e =
|
|
5737
|
+
const _e = I[ie], {
|
|
5738
5738
|
name: ue,
|
|
5739
5739
|
namespaceURI: Oe,
|
|
5740
5740
|
value: lt
|
|
@@ -5762,8 +5762,8 @@ function Ps() {
|
|
|
5762
5762
|
Dt(ue, f);
|
|
5763
5763
|
continue;
|
|
5764
5764
|
}
|
|
5765
|
-
if (H && typeof
|
|
5766
|
-
switch (
|
|
5765
|
+
if (H && typeof _ == "object" && typeof _.getAttributeType == "function" && !Oe)
|
|
5766
|
+
switch (_.getAttributeType(Ao, Yt)) {
|
|
5767
5767
|
case "TrustedHTML": {
|
|
5768
5768
|
Se = H.createHTML(Se);
|
|
5769
5769
|
break;
|
|
@@ -5782,14 +5782,14 @@ function Ps() {
|
|
|
5782
5782
|
}
|
|
5783
5783
|
at(D.afterSanitizeAttributes, f, null);
|
|
5784
5784
|
}, Vs = function R(f) {
|
|
5785
|
-
let
|
|
5785
|
+
let I = null;
|
|
5786
5786
|
const M = _o(f);
|
|
5787
|
-
for (at(D.beforeSanitizeShadowDOM, f, null);
|
|
5788
|
-
at(D.uponSanitizeShadowNode,
|
|
5787
|
+
for (at(D.beforeSanitizeShadowDOM, f, null); I = M.nextNode(); )
|
|
5788
|
+
at(D.uponSanitizeShadowNode, I, null), ko(I), To(I), I.content instanceof i && R(I.content);
|
|
5789
5789
|
at(D.afterSanitizeShadowDOM, f, null);
|
|
5790
5790
|
};
|
|
5791
5791
|
return e.sanitize = function(R) {
|
|
5792
|
-
let f = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {},
|
|
5792
|
+
let f = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, I = null, M = null, ie = null, _e = null;
|
|
5793
5793
|
if (ar = !R, ar && (R = "<!-->"), typeof R != "string" && !So(R))
|
|
5794
5794
|
if (typeof R.toString == "function") {
|
|
5795
5795
|
if (R = R.toString(), typeof R != "string")
|
|
@@ -5805,48 +5805,48 @@ function Ps() {
|
|
|
5805
5805
|
throw tn("root node is forbidden and cannot be sanitized in-place");
|
|
5806
5806
|
}
|
|
5807
5807
|
} else if (R instanceof s)
|
|
5808
|
-
|
|
5808
|
+
I = wo("<!---->"), M = I.ownerDocument.importNode(R, !0), M.nodeType === rn.element && M.nodeName === "BODY" || M.nodeName === "HTML" ? I = M : I.appendChild(M);
|
|
5809
5809
|
else {
|
|
5810
|
-
if (!
|
|
5810
|
+
if (!Lt && !V && !be && // eslint-disable-next-line unicorn/prefer-includes
|
|
5811
5811
|
R.indexOf("<") === -1)
|
|
5812
|
-
return H &&
|
|
5813
|
-
if (
|
|
5814
|
-
return
|
|
5812
|
+
return H && xn ? H.createHTML(R) : R;
|
|
5813
|
+
if (I = wo(R), !I)
|
|
5814
|
+
return Lt ? null : xn ? Y : "";
|
|
5815
5815
|
}
|
|
5816
|
-
|
|
5817
|
-
const ue = _o(Gt ? R :
|
|
5816
|
+
I && it && tt(I.firstChild);
|
|
5817
|
+
const ue = _o(Gt ? R : I);
|
|
5818
5818
|
for (; ie = ue.nextNode(); )
|
|
5819
5819
|
ko(ie), To(ie), ie.content instanceof i && Vs(ie.content);
|
|
5820
5820
|
if (Gt)
|
|
5821
5821
|
return R;
|
|
5822
|
-
if (
|
|
5822
|
+
if (Lt) {
|
|
5823
5823
|
if (Pn)
|
|
5824
|
-
for (_e = Be.call(
|
|
5825
|
-
_e.appendChild(
|
|
5824
|
+
for (_e = Be.call(I.ownerDocument); I.firstChild; )
|
|
5825
|
+
_e.appendChild(I.firstChild);
|
|
5826
5826
|
else
|
|
5827
|
-
_e =
|
|
5827
|
+
_e = I;
|
|
5828
5828
|
return (y.shadowroot || y.shadowrootmode) && (_e = X.call(r, _e, !0)), _e;
|
|
5829
5829
|
}
|
|
5830
|
-
let Oe = be ?
|
|
5831
|
-
return be && c["!doctype"] &&
|
|
5830
|
+
let Oe = be ? I.outerHTML : I.innerHTML;
|
|
5831
|
+
return be && c["!doctype"] && I.ownerDocument && I.ownerDocument.doctype && I.ownerDocument.doctype.name && Ae(Es, I.ownerDocument.doctype.name) && (Oe = "<!DOCTYPE " + I.ownerDocument.doctype.name + `>
|
|
5832
5832
|
` + Oe), V && Bn([J, ve, ye], (lt) => {
|
|
5833
5833
|
Oe = en(Oe, lt, " ");
|
|
5834
|
-
}), H &&
|
|
5834
|
+
}), H && xn ? H.createHTML(Oe) : Oe;
|
|
5835
5835
|
}, e.setConfig = function() {
|
|
5836
5836
|
let R = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
5837
5837
|
cr(R), we = !0;
|
|
5838
5838
|
}, e.clearConfig = function() {
|
|
5839
5839
|
Rt = null, we = !1;
|
|
5840
|
-
}, e.isValidAttribute = function(R, f,
|
|
5840
|
+
}, e.isValidAttribute = function(R, f, I) {
|
|
5841
5841
|
Rt || cr({});
|
|
5842
5842
|
const M = fe(R), ie = fe(f);
|
|
5843
|
-
return Co(M, ie,
|
|
5843
|
+
return Co(M, ie, I);
|
|
5844
5844
|
}, e.addHook = function(R, f) {
|
|
5845
5845
|
typeof f == "function" && Qt(D[R], f);
|
|
5846
5846
|
}, e.removeHook = function(R, f) {
|
|
5847
5847
|
if (f !== void 0) {
|
|
5848
|
-
const
|
|
5849
|
-
return
|
|
5848
|
+
const I = hf(D[R], f);
|
|
5849
|
+
return I === -1 ? void 0 : gf(D[R], I, 1)[0];
|
|
5850
5850
|
}
|
|
5851
5851
|
return pi(D[R]);
|
|
5852
5852
|
}, e.removeHooks = function(R) {
|
|
@@ -5856,7 +5856,7 @@ function Ps() {
|
|
|
5856
5856
|
}, e;
|
|
5857
5857
|
}
|
|
5858
5858
|
var so = Ps();
|
|
5859
|
-
class
|
|
5859
|
+
class xs {
|
|
5860
5860
|
get IsVisible() {
|
|
5861
5861
|
return Pt.isVisible();
|
|
5862
5862
|
}
|
|
@@ -5882,7 +5882,7 @@ class Ls {
|
|
|
5882
5882
|
});
|
|
5883
5883
|
}
|
|
5884
5884
|
}
|
|
5885
|
-
const $f = () => new
|
|
5885
|
+
const $f = () => new xs(), Hm = () => new xs();
|
|
5886
5886
|
/*! noble-hashes - MIT License (c) 2022 Paul Miller (paulmillr.com) */
|
|
5887
5887
|
function Mf(t) {
|
|
5888
5888
|
return t instanceof Uint8Array || ArrayBuffer.isView(t) && t.constructor.name === "Uint8Array";
|
|
@@ -5920,13 +5920,13 @@ function Df(t) {
|
|
|
5920
5920
|
throw new Error("string expected");
|
|
5921
5921
|
return new Uint8Array(new TextEncoder().encode(t));
|
|
5922
5922
|
}
|
|
5923
|
-
function
|
|
5923
|
+
function Ls(t) {
|
|
5924
5924
|
return typeof t == "string" && (t = Df(t)), ao(t), t;
|
|
5925
5925
|
}
|
|
5926
5926
|
class Nf {
|
|
5927
5927
|
}
|
|
5928
5928
|
function Bf(t) {
|
|
5929
|
-
const e = (r) => t().update(
|
|
5929
|
+
const e = (r) => t().update(Ls(r)).digest(), n = t();
|
|
5930
5930
|
return e.outputLen = n.outputLen, e.blockLen = n.blockLen, e.create = () => t(), e;
|
|
5931
5931
|
}
|
|
5932
5932
|
function Uf(t, e, n, r) {
|
|
@@ -5946,7 +5946,7 @@ class Ff extends Nf {
|
|
|
5946
5946
|
super(), this.finished = !1, this.length = 0, this.pos = 0, this.destroyed = !1, this.blockLen = e, this.outputLen = n, this.padOffset = r, this.isLE = o, this.buffer = new Uint8Array(e), this.view = kr(this.buffer);
|
|
5947
5947
|
}
|
|
5948
5948
|
update(e) {
|
|
5949
|
-
Si(this), e =
|
|
5949
|
+
Si(this), e = Ls(e), ao(e);
|
|
5950
5950
|
const { view: n, buffer: r, blockLen: o } = this, i = e.length;
|
|
5951
5951
|
for (let a = 0; a < i; ) {
|
|
5952
5952
|
const s = Math.min(o - this.pos, i - a);
|
|
@@ -6083,13 +6083,13 @@ class Kf extends Ff {
|
|
|
6083
6083
|
for (let m = 0; m < 16; m++, n += 4)
|
|
6084
6084
|
gt[m] = e.getUint32(n, !1);
|
|
6085
6085
|
for (let m = 16; m < 64; m++) {
|
|
6086
|
-
const
|
|
6087
|
-
gt[m] = A + gt[m - 7] +
|
|
6086
|
+
const g = gt[m - 15], _ = gt[m - 2], k = nt(g, 7) ^ nt(g, 18) ^ g >>> 3, A = nt(_, 17) ^ nt(_, 19) ^ _ >>> 10;
|
|
6087
|
+
gt[m] = A + gt[m - 7] + k + gt[m - 16] | 0;
|
|
6088
6088
|
}
|
|
6089
6089
|
let { A: r, B: o, C: i, D: a, E: s, F: l, G: u, H: d } = this;
|
|
6090
6090
|
for (let m = 0; m < 64; m++) {
|
|
6091
|
-
const
|
|
6092
|
-
d = u, u = l, l = s, s = a +
|
|
6091
|
+
const g = nt(s, 6) ^ nt(s, 11) ^ nt(s, 25), _ = d + g + Hf(s, l, u) + Vf[m] + gt[m] | 0, A = (nt(r, 2) ^ nt(r, 13) ^ nt(r, 22)) + jf(r, o, i) | 0;
|
|
6092
|
+
d = u, u = l, l = s, s = a + _ | 0, a = i, i = o, o = r, r = _ + A | 0;
|
|
6093
6093
|
}
|
|
6094
6094
|
r = r + this.A | 0, o = o + this.B | 0, i = i + this.C | 0, a = a + this.D | 0, s = s + this.E | 0, l = l + this.F | 0, u = u + this.G | 0, d = d + this.H | 0, this.set(r, o, i, a, s, l, u, d);
|
|
6095
6095
|
}
|
|
@@ -6210,18 +6210,18 @@ function Os(t) {
|
|
|
6210
6210
|
var y = X(), T = X();
|
|
6211
6211
|
T.promise.then(function() {
|
|
6212
6212
|
e.onReady && e.onReady(e.authenticated), y.setSuccess(e.authenticated);
|
|
6213
|
-
}).catch(function(
|
|
6214
|
-
y.setError(
|
|
6213
|
+
}).catch(function(L) {
|
|
6214
|
+
y.setError(L);
|
|
6215
6215
|
});
|
|
6216
|
-
var
|
|
6216
|
+
var v = N();
|
|
6217
6217
|
function E() {
|
|
6218
|
-
var
|
|
6218
|
+
var L = function(V) {
|
|
6219
6219
|
V || (B.prompt = "none"), c && c.locale && (B.locale = c.locale), e.login(B).then(function() {
|
|
6220
6220
|
T.setSuccess();
|
|
6221
6221
|
}).catch(function(Te) {
|
|
6222
6222
|
T.setError(Te);
|
|
6223
6223
|
});
|
|
6224
|
-
},
|
|
6224
|
+
}, x = function() {
|
|
6225
6225
|
var V = document.createElement("iframe"), Te = e.createLoginUrl({
|
|
6226
6226
|
prompt: "none",
|
|
6227
6227
|
redirectUri: e.silentCheckSsoRedirectUri
|
|
@@ -6242,62 +6242,62 @@ function Os(t) {
|
|
|
6242
6242
|
case "check-sso":
|
|
6243
6243
|
i.enable ? J().then(function() {
|
|
6244
6244
|
ye().then(function(V) {
|
|
6245
|
-
V ? T.setSuccess() : e.silentCheckSsoRedirectUri ?
|
|
6245
|
+
V ? T.setSuccess() : e.silentCheckSsoRedirectUri ? x() : L(!1);
|
|
6246
6246
|
}).catch(function(V) {
|
|
6247
6247
|
T.setError(V);
|
|
6248
6248
|
});
|
|
6249
|
-
}) : e.silentCheckSsoRedirectUri ?
|
|
6249
|
+
}) : e.silentCheckSsoRedirectUri ? x() : L(!1);
|
|
6250
6250
|
break;
|
|
6251
6251
|
case "login-required":
|
|
6252
|
-
|
|
6252
|
+
L(!0);
|
|
6253
6253
|
break;
|
|
6254
6254
|
default:
|
|
6255
6255
|
throw "Invalid value for onLoad";
|
|
6256
6256
|
}
|
|
6257
6257
|
}
|
|
6258
|
-
function
|
|
6259
|
-
var
|
|
6260
|
-
if (
|
|
6258
|
+
function S() {
|
|
6259
|
+
var L = le(window.location.href);
|
|
6260
|
+
if (L && window.history.replaceState(
|
|
6261
6261
|
window.history.state,
|
|
6262
6262
|
null,
|
|
6263
|
-
|
|
6264
|
-
),
|
|
6263
|
+
L.newUrl
|
|
6264
|
+
), L && L.valid)
|
|
6265
6265
|
return J().then(function() {
|
|
6266
|
-
b(
|
|
6267
|
-
}).catch(function(
|
|
6268
|
-
T.setError(
|
|
6266
|
+
b(L, T);
|
|
6267
|
+
}).catch(function(x) {
|
|
6268
|
+
T.setError(x);
|
|
6269
6269
|
});
|
|
6270
6270
|
c ? c.token && c.refreshToken ? (Y(
|
|
6271
6271
|
c.token,
|
|
6272
6272
|
c.refreshToken,
|
|
6273
6273
|
c.idToken
|
|
6274
6274
|
), i.enable ? J().then(function() {
|
|
6275
|
-
ye().then(function(
|
|
6276
|
-
|
|
6277
|
-
}).catch(function(
|
|
6278
|
-
T.setError(
|
|
6275
|
+
ye().then(function(x) {
|
|
6276
|
+
x ? (e.onAuthSuccess && e.onAuthSuccess(), T.setSuccess(), ve()) : T.setSuccess();
|
|
6277
|
+
}).catch(function(x) {
|
|
6278
|
+
T.setError(x);
|
|
6279
6279
|
});
|
|
6280
6280
|
}) : e.updateToken(-1).then(function() {
|
|
6281
6281
|
e.onAuthSuccess && e.onAuthSuccess(), T.setSuccess();
|
|
6282
|
-
}).catch(function(
|
|
6283
|
-
e.onAuthError && e.onAuthError(), c.onLoad ? E() : T.setError(
|
|
6282
|
+
}).catch(function(x) {
|
|
6283
|
+
e.onAuthError && e.onAuthError(), c.onLoad ? E() : T.setError(x);
|
|
6284
6284
|
})) : c.onLoad ? E() : T.setSuccess() : T.setSuccess();
|
|
6285
6285
|
}
|
|
6286
|
-
function
|
|
6287
|
-
var
|
|
6286
|
+
function C() {
|
|
6287
|
+
var L = X(), x = function() {
|
|
6288
6288
|
(document.readyState === "interactive" || document.readyState === "complete") && (document.removeEventListener(
|
|
6289
6289
|
"readystatechange",
|
|
6290
|
-
|
|
6291
|
-
),
|
|
6290
|
+
x
|
|
6291
|
+
), L.setSuccess());
|
|
6292
6292
|
};
|
|
6293
|
-
return document.addEventListener("readystatechange",
|
|
6293
|
+
return document.addEventListener("readystatechange", x), x(), L.promise;
|
|
6294
6294
|
}
|
|
6295
|
-
return
|
|
6296
|
-
|
|
6297
|
-
y.setError(
|
|
6295
|
+
return v.then(function() {
|
|
6296
|
+
C().then(Je).then(S).catch(function(L) {
|
|
6297
|
+
y.setError(L);
|
|
6298
6298
|
});
|
|
6299
|
-
}),
|
|
6300
|
-
y.setError(
|
|
6299
|
+
}), v.catch(function(L) {
|
|
6300
|
+
y.setError(L);
|
|
6301
6301
|
}), y.promise;
|
|
6302
6302
|
}, e.login = function(c) {
|
|
6303
6303
|
return n.login(c);
|
|
@@ -6311,18 +6311,18 @@ function Os(t) {
|
|
|
6311
6311
|
p[T] = Math.floor(256 * Math.random());
|
|
6312
6312
|
return p;
|
|
6313
6313
|
}
|
|
6314
|
-
function
|
|
6315
|
-
return
|
|
6314
|
+
function g(c) {
|
|
6315
|
+
return _(
|
|
6316
6316
|
c,
|
|
6317
6317
|
"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789"
|
|
6318
6318
|
);
|
|
6319
6319
|
}
|
|
6320
|
-
function
|
|
6321
|
-
for (var y = m(c), T = new Array(c),
|
|
6322
|
-
T[
|
|
6320
|
+
function _(c, p) {
|
|
6321
|
+
for (var y = m(c), T = new Array(c), v = 0; v < c; v++)
|
|
6322
|
+
T[v] = p.charCodeAt(y[v] % p.length);
|
|
6323
6323
|
return String.fromCharCode.apply(null, T);
|
|
6324
6324
|
}
|
|
6325
|
-
function
|
|
6325
|
+
function k(c, p) {
|
|
6326
6326
|
if (c !== "S256")
|
|
6327
6327
|
throw new TypeError(
|
|
6328
6328
|
`Invalid value for 'pkceMethod', expected 'S256' but got '${c}'.`
|
|
@@ -6339,32 +6339,32 @@ function Os(t) {
|
|
|
6339
6339
|
return JSON.stringify(p);
|
|
6340
6340
|
}
|
|
6341
6341
|
e.createLoginUrl = function(c) {
|
|
6342
|
-
var p = ge(), y = ge(), T = n.redirectUri(c),
|
|
6342
|
+
var p = ge(), y = ge(), T = n.redirectUri(c), v = {
|
|
6343
6343
|
state: p,
|
|
6344
6344
|
nonce: y,
|
|
6345
6345
|
redirectUri: encodeURIComponent(T),
|
|
6346
6346
|
loginOptions: c
|
|
6347
6347
|
};
|
|
6348
|
-
c && c.prompt && (
|
|
6348
|
+
c && c.prompt && (v.prompt = c.prompt);
|
|
6349
6349
|
var E;
|
|
6350
6350
|
c && c.action == "register" ? E = e.endpoints.register() : E = e.endpoints.authorize();
|
|
6351
|
-
var
|
|
6352
|
-
|
|
6353
|
-
var
|
|
6354
|
-
if (l && (
|
|
6355
|
-
var
|
|
6356
|
-
|
|
6351
|
+
var S = c && c.scope || e.scope;
|
|
6352
|
+
S ? S.indexOf("openid") === -1 && (S = "openid " + S) : S = "openid";
|
|
6353
|
+
var C = E + "?client_id=" + encodeURIComponent(e.clientId) + "&redirect_uri=" + encodeURIComponent(T) + "&state=" + encodeURIComponent(p) + "&response_mode=" + encodeURIComponent(e.responseMode) + "&response_type=" + encodeURIComponent(e.responseType) + "&scope=" + encodeURIComponent(S);
|
|
6354
|
+
if (l && (C = C + "&nonce=" + encodeURIComponent(y)), c && c.prompt && (C += "&prompt=" + encodeURIComponent(c.prompt)), c && c.maxAge && (C += "&max_age=" + encodeURIComponent(c.maxAge)), c && c.loginHint && (C += "&login_hint=" + encodeURIComponent(c.loginHint)), c && c.idpHint && (C += "&kc_idp_hint=" + encodeURIComponent(c.idpHint)), c && c.action && c.action != "register" && (C += "&kc_action=" + encodeURIComponent(c.action)), c && c.locale && (C += "&ui_locales=" + encodeURIComponent(c.locale)), c && c.acr) {
|
|
6355
|
+
var L = A(c.acr);
|
|
6356
|
+
C += "&claims=" + encodeURIComponent(L);
|
|
6357
6357
|
}
|
|
6358
|
-
if ((c && c.acrValues || e.acrValues) && (
|
|
6359
|
-
var
|
|
6360
|
-
|
|
6361
|
-
var B =
|
|
6358
|
+
if ((c && c.acrValues || e.acrValues) && (C += "&acr_values=" + encodeURIComponent(c.acrValues || e.acrValues)), e.pkceMethod) {
|
|
6359
|
+
var x = g(96);
|
|
6360
|
+
v.pkceCodeVerifier = x;
|
|
6361
|
+
var B = k(
|
|
6362
6362
|
e.pkceMethod,
|
|
6363
|
-
|
|
6363
|
+
x
|
|
6364
6364
|
);
|
|
6365
|
-
|
|
6365
|
+
C += "&code_challenge=" + B, C += "&code_challenge_method=" + e.pkceMethod;
|
|
6366
6366
|
}
|
|
6367
|
-
return o.add(
|
|
6367
|
+
return o.add(v), C;
|
|
6368
6368
|
}, e.logout = function(c) {
|
|
6369
6369
|
return n.logout(c);
|
|
6370
6370
|
}, e.createLogoutUrl = function(c) {
|
|
@@ -6423,37 +6423,37 @@ function Os(t) {
|
|
|
6423
6423
|
return p.setError(), p.promise;
|
|
6424
6424
|
c = c || 5;
|
|
6425
6425
|
var y = function() {
|
|
6426
|
-
var
|
|
6427
|
-
if (c == -1 ? (
|
|
6426
|
+
var v = !1;
|
|
6427
|
+
if (c == -1 ? (v = !0, u("[KEYCLOAK] Refreshing token: forced refresh")) : (!e.tokenParsed || e.isTokenExpired(c)) && (v = !0, u("[KEYCLOAK] Refreshing token: token expired")), !v)
|
|
6428
6428
|
p.setSuccess(!1);
|
|
6429
6429
|
else {
|
|
6430
|
-
var E = "grant_type=refresh_token&refresh_token=" + e.refreshToken,
|
|
6430
|
+
var E = "grant_type=refresh_token&refresh_token=" + e.refreshToken, S = e.endpoints.token();
|
|
6431
6431
|
if (r.push(p), r.length == 1) {
|
|
6432
|
-
var
|
|
6433
|
-
|
|
6432
|
+
var C = new XMLHttpRequest();
|
|
6433
|
+
C.open("POST", S, !0), C.setRequestHeader(
|
|
6434
6434
|
"Content-type",
|
|
6435
6435
|
"application/x-www-form-urlencoded"
|
|
6436
|
-
),
|
|
6437
|
-
var
|
|
6438
|
-
|
|
6439
|
-
if (
|
|
6440
|
-
if (
|
|
6441
|
-
u("[KEYCLOAK] Token refreshed"),
|
|
6442
|
-
var
|
|
6436
|
+
), C.withCredentials = !0, E += "&client_id=" + encodeURIComponent(e.clientId);
|
|
6437
|
+
var L = (/* @__PURE__ */ new Date()).getTime();
|
|
6438
|
+
C.onreadystatechange = function() {
|
|
6439
|
+
if (C.readyState == 4)
|
|
6440
|
+
if (C.status == 200) {
|
|
6441
|
+
u("[KEYCLOAK] Token refreshed"), L = (L + (/* @__PURE__ */ new Date()).getTime()) / 2;
|
|
6442
|
+
var x = JSON.parse(C.responseText);
|
|
6443
6443
|
Y(
|
|
6444
|
-
|
|
6445
|
-
|
|
6446
|
-
|
|
6447
|
-
|
|
6444
|
+
x.access_token,
|
|
6445
|
+
x.refresh_token,
|
|
6446
|
+
x.id_token,
|
|
6447
|
+
L
|
|
6448
6448
|
), e.onAuthRefreshSuccess && e.onAuthRefreshSuccess();
|
|
6449
6449
|
for (var B = r.pop(); B != null; B = r.pop())
|
|
6450
6450
|
B.setSuccess(!0);
|
|
6451
6451
|
} else {
|
|
6452
|
-
d("[KEYCLOAK] Failed to refresh token"),
|
|
6452
|
+
d("[KEYCLOAK] Failed to refresh token"), C.status == 400 && e.clearToken(), e.onAuthRefreshError && e.onAuthRefreshError();
|
|
6453
6453
|
for (var B = r.pop(); B != null; B = r.pop())
|
|
6454
6454
|
B.setError(!0);
|
|
6455
6455
|
}
|
|
6456
|
-
},
|
|
6456
|
+
}, C.send(E);
|
|
6457
6457
|
}
|
|
6458
6458
|
}
|
|
6459
6459
|
};
|
|
@@ -6461,8 +6461,8 @@ function Os(t) {
|
|
|
6461
6461
|
var T = ye();
|
|
6462
6462
|
T.then(function() {
|
|
6463
6463
|
y();
|
|
6464
|
-
}).catch(function(
|
|
6465
|
-
p.setError(
|
|
6464
|
+
}).catch(function(v) {
|
|
6465
|
+
p.setError(v);
|
|
6466
6466
|
});
|
|
6467
6467
|
} else
|
|
6468
6468
|
y();
|
|
@@ -6478,34 +6478,34 @@ function Os(t) {
|
|
|
6478
6478
|
return window.location.origin ? window.location.origin : window.location.protocol + "//" + window.location.hostname + (window.location.port ? ":" + window.location.port : "");
|
|
6479
6479
|
}
|
|
6480
6480
|
function b(c, p) {
|
|
6481
|
-
var y = c.code, T = c.error,
|
|
6481
|
+
var y = c.code, T = c.error, v = c.prompt, E = (/* @__PURE__ */ new Date()).getTime();
|
|
6482
6482
|
if (c.kc_action_status && e.onActionUpdate && e.onActionUpdate(
|
|
6483
6483
|
c.kc_action_status,
|
|
6484
6484
|
c.kc_action
|
|
6485
6485
|
), T) {
|
|
6486
|
-
if (
|
|
6486
|
+
if (v != "none")
|
|
6487
6487
|
if (c.error_description && c.error_description === "authentication_expired")
|
|
6488
6488
|
e.login(c.loginOptions);
|
|
6489
6489
|
else {
|
|
6490
|
-
var
|
|
6490
|
+
var S = {
|
|
6491
6491
|
error: T,
|
|
6492
6492
|
error_description: c.error_description
|
|
6493
6493
|
};
|
|
6494
|
-
e.onAuthError && e.onAuthError(
|
|
6494
|
+
e.onAuthError && e.onAuthError(S), p && p.setError(S);
|
|
6495
6495
|
}
|
|
6496
6496
|
else
|
|
6497
6497
|
p && p.setSuccess();
|
|
6498
6498
|
return;
|
|
6499
6499
|
} else e.flow != "standard" && (c.access_token || c.id_token) && B(c.access_token, null, c.id_token, !0);
|
|
6500
6500
|
if (e.flow != "implicit" && y) {
|
|
6501
|
-
var
|
|
6502
|
-
|
|
6501
|
+
var C = "code=" + y + "&grant_type=authorization_code", L = e.endpoints.token(), x = new XMLHttpRequest();
|
|
6502
|
+
x.open("POST", L, !0), x.setRequestHeader(
|
|
6503
6503
|
"Content-type",
|
|
6504
6504
|
"application/x-www-form-urlencoded"
|
|
6505
|
-
),
|
|
6506
|
-
if (
|
|
6507
|
-
if (
|
|
6508
|
-
var V = JSON.parse(
|
|
6505
|
+
), C += "&client_id=" + encodeURIComponent(e.clientId), C += "&redirect_uri=" + c.redirectUri, c.pkceCodeVerifier && (C += "&code_verifier=" + c.pkceCodeVerifier), x.withCredentials = !0, x.onreadystatechange = function() {
|
|
6506
|
+
if (x.readyState == 4)
|
|
6507
|
+
if (x.status == 200) {
|
|
6508
|
+
var V = JSON.parse(x.responseText);
|
|
6509
6509
|
B(
|
|
6510
6510
|
V.access_token,
|
|
6511
6511
|
V.refresh_token,
|
|
@@ -6514,7 +6514,7 @@ function Os(t) {
|
|
|
6514
6514
|
), ve();
|
|
6515
6515
|
} else
|
|
6516
6516
|
e.onAuthError && e.onAuthError(), p && p.setError();
|
|
6517
|
-
},
|
|
6517
|
+
}, x.send(C);
|
|
6518
6518
|
}
|
|
6519
6519
|
function B(V, Te, be, we) {
|
|
6520
6520
|
E = (E + (/* @__PURE__ */ new Date()).getTime()) / 2, Y(V, Te, be, E), l && e.idTokenParsed && e.idTokenParsed.nonce != c.storedNonce ? (u("[KEYCLOAK] Invalid nonce, clearing token"), e.clearToken(), p && p.setError()) : we && (e.onAuthSuccess && e.onAuthSuccess(), p && p.setSuccess());
|
|
@@ -6523,31 +6523,31 @@ function Os(t) {
|
|
|
6523
6523
|
function N(c) {
|
|
6524
6524
|
var p = X(), y;
|
|
6525
6525
|
t ? typeof t == "string" && (y = t) : y = "keycloak.json";
|
|
6526
|
-
function T(
|
|
6527
|
-
|
|
6526
|
+
function T(x) {
|
|
6527
|
+
x ? e.endpoints = {
|
|
6528
6528
|
authorize: function() {
|
|
6529
|
-
return
|
|
6529
|
+
return x.authorization_endpoint;
|
|
6530
6530
|
},
|
|
6531
6531
|
token: function() {
|
|
6532
|
-
return
|
|
6532
|
+
return x.token_endpoint;
|
|
6533
6533
|
},
|
|
6534
6534
|
logout: function() {
|
|
6535
|
-
if (!
|
|
6535
|
+
if (!x.end_session_endpoint)
|
|
6536
6536
|
throw "Not supported by the OIDC server";
|
|
6537
|
-
return
|
|
6537
|
+
return x.end_session_endpoint;
|
|
6538
6538
|
},
|
|
6539
6539
|
checkSessionIframe: function() {
|
|
6540
|
-
if (!
|
|
6540
|
+
if (!x.check_session_iframe)
|
|
6541
6541
|
throw "Not supported by the OIDC server";
|
|
6542
|
-
return
|
|
6542
|
+
return x.check_session_iframe;
|
|
6543
6543
|
},
|
|
6544
6544
|
register: function() {
|
|
6545
6545
|
throw 'Redirection to "Register user" page not supported in standard OIDC mode';
|
|
6546
6546
|
},
|
|
6547
6547
|
userinfo: function() {
|
|
6548
|
-
if (!
|
|
6548
|
+
if (!x.userinfo_endpoint)
|
|
6549
6549
|
throw "Not supported by the OIDC server";
|
|
6550
|
-
return
|
|
6550
|
+
return x.userinfo_endpoint;
|
|
6551
6551
|
}
|
|
6552
6552
|
} : e.endpoints = {
|
|
6553
6553
|
authorize: function() {
|
|
@@ -6576,15 +6576,15 @@ function Os(t) {
|
|
|
6576
6576
|
};
|
|
6577
6577
|
}
|
|
6578
6578
|
if (y) {
|
|
6579
|
-
var
|
|
6580
|
-
|
|
6581
|
-
if (
|
|
6582
|
-
if (
|
|
6583
|
-
var
|
|
6584
|
-
e.authServerUrl =
|
|
6579
|
+
var v = new XMLHttpRequest();
|
|
6580
|
+
v.open("GET", y, !0), v.setRequestHeader("Accept", "application/json"), v.onreadystatechange = function() {
|
|
6581
|
+
if (v.readyState == 4)
|
|
6582
|
+
if (v.status == 200 || H(v)) {
|
|
6583
|
+
var x = JSON.parse(v.responseText);
|
|
6584
|
+
e.authServerUrl = x["auth-server-url"], e.realm = x.realm, e.clientId = x.resource, T(null), p.setSuccess();
|
|
6585
6585
|
} else
|
|
6586
6586
|
p.setError();
|
|
6587
|
-
},
|
|
6587
|
+
}, v.send();
|
|
6588
6588
|
} else {
|
|
6589
6589
|
if (!t.clientId)
|
|
6590
6590
|
throw "clientId missing";
|
|
@@ -6592,26 +6592,26 @@ function Os(t) {
|
|
|
6592
6592
|
var E = t.oidcProvider;
|
|
6593
6593
|
if (E)
|
|
6594
6594
|
if (typeof E == "string") {
|
|
6595
|
-
var
|
|
6596
|
-
E.charAt(E.length - 1) == "/" ?
|
|
6597
|
-
var
|
|
6598
|
-
|
|
6599
|
-
if (
|
|
6600
|
-
if (
|
|
6601
|
-
var B = JSON.parse(
|
|
6595
|
+
var L;
|
|
6596
|
+
E.charAt(E.length - 1) == "/" ? L = E + ".well-known/openid-configuration" : L = E + "/.well-known/openid-configuration";
|
|
6597
|
+
var v = new XMLHttpRequest();
|
|
6598
|
+
v.open("GET", L, !0), v.setRequestHeader("Accept", "application/json"), v.onreadystatechange = function() {
|
|
6599
|
+
if (v.readyState == 4)
|
|
6600
|
+
if (v.status == 200 || H(v)) {
|
|
6601
|
+
var B = JSON.parse(v.responseText);
|
|
6602
6602
|
T(B), p.setSuccess();
|
|
6603
6603
|
} else
|
|
6604
6604
|
p.setError();
|
|
6605
|
-
},
|
|
6605
|
+
}, v.send();
|
|
6606
6606
|
} else
|
|
6607
6607
|
T(E), p.setSuccess();
|
|
6608
6608
|
else {
|
|
6609
6609
|
if (!t.url) {
|
|
6610
|
-
for (var
|
|
6611
|
-
if (
|
|
6612
|
-
t.url =
|
|
6610
|
+
for (var S = document.getElementsByTagName("script"), C = 0; C < S.length; C++)
|
|
6611
|
+
if (S[C].src.match(/.*keycloak\.js/)) {
|
|
6612
|
+
t.url = S[C].src.substr(
|
|
6613
6613
|
0,
|
|
6614
|
-
|
|
6614
|
+
S[C].src.indexOf("/js/keycloak.js")
|
|
6615
6615
|
);
|
|
6616
6616
|
break;
|
|
6617
6617
|
}
|
|
@@ -6631,19 +6631,19 @@ function Os(t) {
|
|
|
6631
6631
|
if (e.token = c, e.tokenParsed = Cr(c), e.sessionId = e.tokenParsed.sid, e.authenticated = !0, e.subject = e.tokenParsed.sub, e.realmAccess = e.tokenParsed.realm_access, e.resourceAccess = e.tokenParsed.resource_access, T && (e.timeSkew = Math.floor(T / 1e3) - e.tokenParsed.iat), e.timeSkew != null && (u(
|
|
6632
6632
|
"[KEYCLOAK] Estimated time difference between browser and server is " + e.timeSkew + " seconds"
|
|
6633
6633
|
), e.onTokenExpired)) {
|
|
6634
|
-
var
|
|
6634
|
+
var v = (e.tokenParsed.exp - (/* @__PURE__ */ new Date()).getTime() / 1e3 + e.timeSkew) * 1e3;
|
|
6635
6635
|
u(
|
|
6636
|
-
"[KEYCLOAK] Token expires in " + Math.round(
|
|
6637
|
-
),
|
|
6636
|
+
"[KEYCLOAK] Token expires in " + Math.round(v / 1e3) + " s"
|
|
6637
|
+
), v <= 0 ? e.onTokenExpired() : e.tokenTimeoutHandle = setTimeout(
|
|
6638
6638
|
e.onTokenExpired,
|
|
6639
|
-
|
|
6639
|
+
v
|
|
6640
6640
|
);
|
|
6641
6641
|
}
|
|
6642
6642
|
} else
|
|
6643
6643
|
delete e.token, delete e.tokenParsed, delete e.subject, delete e.realmAccess, delete e.resourceAccess, e.authenticated = !1;
|
|
6644
6644
|
}
|
|
6645
6645
|
function ge() {
|
|
6646
|
-
var c = "0123456789abcdef", p =
|
|
6646
|
+
var c = "0123456789abcdef", p = _(36, c).split("");
|
|
6647
6647
|
p[14] = "4", p[19] = c.substr(p[19] & 3 | 8, 1), p[8] = p[13] = p[18] = p[23] = "-";
|
|
6648
6648
|
var y = p.join("");
|
|
6649
6649
|
return y;
|
|
@@ -6697,31 +6697,31 @@ function Os(t) {
|
|
|
6697
6697
|
break;
|
|
6698
6698
|
}
|
|
6699
6699
|
p.push("error"), p.push("error_description"), p.push("error_uri");
|
|
6700
|
-
var y = c.indexOf("?"), T = c.indexOf("#"),
|
|
6701
|
-
if (e.responseMode === "query" && y !== -1 ? (
|
|
6700
|
+
var y = c.indexOf("?"), T = c.indexOf("#"), v, E;
|
|
6701
|
+
if (e.responseMode === "query" && y !== -1 ? (v = c.substring(0, y), E = ce(
|
|
6702
6702
|
c.substring(
|
|
6703
6703
|
y + 1,
|
|
6704
6704
|
T !== -1 ? T : c.length
|
|
6705
6705
|
),
|
|
6706
6706
|
p
|
|
6707
|
-
), E.paramsString !== "" && (
|
|
6707
|
+
), E.paramsString !== "" && (v += "?" + E.paramsString), T !== -1 && (v += c.substring(T))) : e.responseMode === "fragment" && T !== -1 && (v = c.substring(0, T), E = ce(
|
|
6708
6708
|
c.substring(T + 1),
|
|
6709
6709
|
p
|
|
6710
|
-
), E.paramsString !== "" && (
|
|
6710
|
+
), E.paramsString !== "" && (v += "#" + E.paramsString)), E && E.oauthParams) {
|
|
6711
6711
|
if (e.flow === "standard" || e.flow === "hybrid") {
|
|
6712
6712
|
if ((E.oauthParams.code || E.oauthParams.error) && E.oauthParams.state)
|
|
6713
|
-
return E.oauthParams.newUrl =
|
|
6713
|
+
return E.oauthParams.newUrl = v, E.oauthParams;
|
|
6714
6714
|
} else if (e.flow === "implicit" && (E.oauthParams.access_token || E.oauthParams.error) && E.oauthParams.state)
|
|
6715
|
-
return E.oauthParams.newUrl =
|
|
6715
|
+
return E.oauthParams.newUrl = v, E.oauthParams;
|
|
6716
6716
|
}
|
|
6717
6717
|
}
|
|
6718
6718
|
function ce(c, p) {
|
|
6719
6719
|
for (var y = c.split("&"), T = {
|
|
6720
6720
|
paramsString: "",
|
|
6721
6721
|
oauthParams: {}
|
|
6722
|
-
},
|
|
6723
|
-
var E = y[
|
|
6724
|
-
p.indexOf(
|
|
6722
|
+
}, v = 0; v < y.length; v++) {
|
|
6723
|
+
var E = y[v].indexOf("="), S = y[v].slice(0, E);
|
|
6724
|
+
p.indexOf(S) !== -1 ? T.oauthParams[S] = y[v].slice(E + 1) : (T.paramsString !== "" && (T.paramsString += "&"), T.paramsString += y[v]);
|
|
6725
6725
|
}
|
|
6726
6726
|
return T;
|
|
6727
6727
|
}
|
|
@@ -6739,14 +6739,14 @@ function Os(t) {
|
|
|
6739
6739
|
}), c;
|
|
6740
6740
|
}
|
|
6741
6741
|
function D(c, p, y) {
|
|
6742
|
-
var T = null,
|
|
6742
|
+
var T = null, v = new Promise(function(E, S) {
|
|
6743
6743
|
T = setTimeout(function() {
|
|
6744
|
-
|
|
6744
|
+
S({
|
|
6745
6745
|
error: y
|
|
6746
6746
|
});
|
|
6747
6747
|
}, p);
|
|
6748
6748
|
});
|
|
6749
|
-
return Promise.race([c,
|
|
6749
|
+
return Promise.race([c, v]).finally(
|
|
6750
6750
|
function() {
|
|
6751
6751
|
clearTimeout(T);
|
|
6752
6752
|
}
|
|
@@ -6758,10 +6758,10 @@ function Os(t) {
|
|
|
6758
6758
|
return c.setSuccess(), c.promise;
|
|
6759
6759
|
var p = document.createElement("iframe");
|
|
6760
6760
|
i.iframe = p, p.onload = function() {
|
|
6761
|
-
var
|
|
6762
|
-
|
|
6761
|
+
var v = e.endpoints.authorize();
|
|
6762
|
+
v.charAt(0) === "/" ? i.iframeOrigin = w() : i.iframeOrigin = v.substring(
|
|
6763
6763
|
0,
|
|
6764
|
-
|
|
6764
|
+
v.indexOf("/", 8)
|
|
6765
6765
|
), c.setSuccess();
|
|
6766
6766
|
};
|
|
6767
6767
|
var y = e.endpoints.checkSessionIframe();
|
|
@@ -6769,15 +6769,15 @@ function Os(t) {
|
|
|
6769
6769
|
"sandbox",
|
|
6770
6770
|
"allow-storage-access-by-user-activation allow-scripts allow-same-origin"
|
|
6771
6771
|
), p.setAttribute("title", "keycloak-session-iframe"), p.style.display = "none", document.body.appendChild(p);
|
|
6772
|
-
var T = function(
|
|
6773
|
-
if (!(
|
|
6774
|
-
|
|
6772
|
+
var T = function(v) {
|
|
6773
|
+
if (!(v.origin !== i.iframeOrigin || i.iframe.contentWindow !== v.source) && (v.data == "unchanged" || v.data == "changed" || v.data == "error")) {
|
|
6774
|
+
v.data != "unchanged" && e.clearToken();
|
|
6775
6775
|
for (var E = i.callbackList.splice(
|
|
6776
6776
|
0,
|
|
6777
6777
|
i.callbackList.length
|
|
6778
|
-
),
|
|
6779
|
-
var
|
|
6780
|
-
|
|
6778
|
+
), S = E.length - 1; S >= 0; --S) {
|
|
6779
|
+
var C = E[S];
|
|
6780
|
+
v.data == "error" ? C.setError() : C.setSuccess(v.data == "unchanged");
|
|
6781
6781
|
}
|
|
6782
6782
|
}
|
|
6783
6783
|
};
|
|
@@ -6834,15 +6834,15 @@ For more information see: https://www.keycloak.org/docs/latest/securing_apps/#_m
|
|
|
6834
6834
|
function ot(c) {
|
|
6835
6835
|
if (!c || c == "default")
|
|
6836
6836
|
return {
|
|
6837
|
-
login: function(
|
|
6838
|
-
return window.location.assign(e.createLoginUrl(
|
|
6837
|
+
login: function(S) {
|
|
6838
|
+
return window.location.assign(e.createLoginUrl(S)), X().promise;
|
|
6839
6839
|
},
|
|
6840
|
-
logout: async function(
|
|
6841
|
-
if (((
|
|
6842
|
-
window.location.replace(e.createLogoutUrl(
|
|
6840
|
+
logout: async function(S) {
|
|
6841
|
+
if (((S == null ? void 0 : S.logoutMethod) ?? e.logoutMethod) === "GET") {
|
|
6842
|
+
window.location.replace(e.createLogoutUrl(S));
|
|
6843
6843
|
return;
|
|
6844
6844
|
}
|
|
6845
|
-
const
|
|
6845
|
+
const L = e.createLogoutUrl(S), x = await fetch(L, {
|
|
6846
6846
|
method: "POST",
|
|
6847
6847
|
headers: {
|
|
6848
6848
|
"Content-Type": "application/x-www-form-urlencoded"
|
|
@@ -6851,16 +6851,16 @@ For more information see: https://www.keycloak.org/docs/latest/securing_apps/#_m
|
|
|
6851
6851
|
id_token_hint: e.idToken,
|
|
6852
6852
|
client_id: e.clientId,
|
|
6853
6853
|
post_logout_redirect_uri: n.redirectUri(
|
|
6854
|
-
|
|
6854
|
+
S,
|
|
6855
6855
|
!1
|
|
6856
6856
|
)
|
|
6857
6857
|
})
|
|
6858
6858
|
});
|
|
6859
|
-
if (
|
|
6860
|
-
window.location.href =
|
|
6859
|
+
if (x.redirected) {
|
|
6860
|
+
window.location.href = x.url;
|
|
6861
6861
|
return;
|
|
6862
6862
|
}
|
|
6863
|
-
if (
|
|
6863
|
+
if (x.ok) {
|
|
6864
6864
|
window.location.reload();
|
|
6865
6865
|
return;
|
|
6866
6866
|
}
|
|
@@ -6868,155 +6868,155 @@ For more information see: https://www.keycloak.org/docs/latest/securing_apps/#_m
|
|
|
6868
6868
|
"Logout failed, request returned an error code."
|
|
6869
6869
|
);
|
|
6870
6870
|
},
|
|
6871
|
-
register: function(
|
|
6872
|
-
return window.location.assign(e.createRegisterUrl(
|
|
6871
|
+
register: function(S) {
|
|
6872
|
+
return window.location.assign(e.createRegisterUrl(S)), X().promise;
|
|
6873
6873
|
},
|
|
6874
6874
|
accountManagement: function() {
|
|
6875
|
-
var
|
|
6876
|
-
if (typeof
|
|
6877
|
-
window.location.href =
|
|
6875
|
+
var S = e.createAccountUrl();
|
|
6876
|
+
if (typeof S < "u")
|
|
6877
|
+
window.location.href = S;
|
|
6878
6878
|
else
|
|
6879
6879
|
throw "Not supported by the OIDC server";
|
|
6880
6880
|
return X().promise;
|
|
6881
6881
|
},
|
|
6882
|
-
redirectUri: function(
|
|
6883
|
-
return
|
|
6882
|
+
redirectUri: function(S, C) {
|
|
6883
|
+
return S && S.redirectUri ? S.redirectUri : e.redirectUri ? e.redirectUri : location.href;
|
|
6884
6884
|
}
|
|
6885
6885
|
};
|
|
6886
6886
|
if (c == "cordova") {
|
|
6887
6887
|
i.enable = !1;
|
|
6888
|
-
var p = function(
|
|
6888
|
+
var p = function(S, C, L) {
|
|
6889
6889
|
return window.cordova && window.cordova.InAppBrowser ? window.cordova.InAppBrowser.open(
|
|
6890
|
-
|
|
6891
|
-
|
|
6892
|
-
|
|
6893
|
-
) : window.open(
|
|
6894
|
-
}, y = function(
|
|
6895
|
-
return
|
|
6896
|
-
function(
|
|
6897
|
-
return
|
|
6890
|
+
S,
|
|
6891
|
+
C,
|
|
6892
|
+
L
|
|
6893
|
+
) : window.open(S, C, L);
|
|
6894
|
+
}, y = function(S) {
|
|
6895
|
+
return S && S.cordovaOptions ? Object.keys(S.cordovaOptions).reduce(
|
|
6896
|
+
function(C, L) {
|
|
6897
|
+
return C[L] = S.cordovaOptions[L], C;
|
|
6898
6898
|
},
|
|
6899
6899
|
{}
|
|
6900
6900
|
) : {};
|
|
6901
|
-
}, T = function(
|
|
6902
|
-
return Object.keys(
|
|
6903
|
-
return
|
|
6904
|
-
|
|
6905
|
-
),
|
|
6901
|
+
}, T = function(S) {
|
|
6902
|
+
return Object.keys(S).reduce(function(C, L) {
|
|
6903
|
+
return C.push(
|
|
6904
|
+
L + "=" + S[L]
|
|
6905
|
+
), C;
|
|
6906
6906
|
}, []).join(",");
|
|
6907
|
-
},
|
|
6908
|
-
var
|
|
6909
|
-
return
|
|
6907
|
+
}, v = function(S) {
|
|
6908
|
+
var C = y(S);
|
|
6909
|
+
return C.location = "no", S && S.prompt == "none" && (C.hidden = "yes"), T(C);
|
|
6910
6910
|
}, E = function() {
|
|
6911
6911
|
return e.redirectUri || "http://localhost";
|
|
6912
6912
|
};
|
|
6913
6913
|
return {
|
|
6914
|
-
login: function(
|
|
6915
|
-
var
|
|
6916
|
-
|
|
6914
|
+
login: function(S) {
|
|
6915
|
+
var C = X(), L = v(S), x = e.createLoginUrl(S), B = p(
|
|
6916
|
+
x,
|
|
6917
6917
|
"_blank",
|
|
6918
|
-
|
|
6918
|
+
L
|
|
6919
6919
|
), V = !1, Te = !1, be = function() {
|
|
6920
6920
|
Te = !0, B.close();
|
|
6921
6921
|
};
|
|
6922
6922
|
return B.addEventListener("loadstart", function(we) {
|
|
6923
6923
|
if (we.url.indexOf(E()) == 0) {
|
|
6924
6924
|
var it = le(we.url);
|
|
6925
|
-
b(it,
|
|
6925
|
+
b(it, C), be(), V = !0;
|
|
6926
6926
|
}
|
|
6927
6927
|
}), B.addEventListener("loaderror", function(we) {
|
|
6928
6928
|
if (!V)
|
|
6929
6929
|
if (we.url.indexOf(E()) == 0) {
|
|
6930
6930
|
var it = le(we.url);
|
|
6931
|
-
b(it,
|
|
6931
|
+
b(it, C), be(), V = !0;
|
|
6932
6932
|
} else
|
|
6933
|
-
|
|
6933
|
+
C.setError(), be();
|
|
6934
6934
|
}), B.addEventListener("exit", function(we) {
|
|
6935
|
-
Te ||
|
|
6935
|
+
Te || C.setError({
|
|
6936
6936
|
reason: "closed_by_user"
|
|
6937
6937
|
});
|
|
6938
|
-
}),
|
|
6938
|
+
}), C.promise;
|
|
6939
6939
|
},
|
|
6940
|
-
logout: function(
|
|
6941
|
-
var
|
|
6942
|
-
|
|
6940
|
+
logout: function(S) {
|
|
6941
|
+
var C = X(), L = e.createLogoutUrl(S), x = p(
|
|
6942
|
+
L,
|
|
6943
6943
|
"_blank",
|
|
6944
6944
|
"location=no,hidden=yes,clearcache=yes"
|
|
6945
6945
|
), B;
|
|
6946
|
-
return
|
|
6947
|
-
V.url.indexOf(E()) == 0 &&
|
|
6948
|
-
}),
|
|
6949
|
-
V.url.indexOf(E()) == 0 || (B = !0),
|
|
6950
|
-
}),
|
|
6951
|
-
B ?
|
|
6952
|
-
}),
|
|
6946
|
+
return x.addEventListener("loadstart", function(V) {
|
|
6947
|
+
V.url.indexOf(E()) == 0 && x.close();
|
|
6948
|
+
}), x.addEventListener("loaderror", function(V) {
|
|
6949
|
+
V.url.indexOf(E()) == 0 || (B = !0), x.close();
|
|
6950
|
+
}), x.addEventListener("exit", function(V) {
|
|
6951
|
+
B ? C.setError() : (e.clearToken(), C.setSuccess());
|
|
6952
|
+
}), C.promise;
|
|
6953
6953
|
},
|
|
6954
|
-
register: function(
|
|
6955
|
-
var
|
|
6956
|
-
|
|
6954
|
+
register: function(S) {
|
|
6955
|
+
var C = X(), L = e.createRegisterUrl(), x = v(S), B = p(
|
|
6956
|
+
L,
|
|
6957
6957
|
"_blank",
|
|
6958
|
-
|
|
6958
|
+
x
|
|
6959
6959
|
);
|
|
6960
6960
|
return B.addEventListener("loadstart", function(V) {
|
|
6961
6961
|
if (V.url.indexOf(E()) == 0) {
|
|
6962
6962
|
B.close();
|
|
6963
6963
|
var Te = le(V.url);
|
|
6964
|
-
b(Te,
|
|
6964
|
+
b(Te, C);
|
|
6965
6965
|
}
|
|
6966
|
-
}),
|
|
6966
|
+
}), C.promise;
|
|
6967
6967
|
},
|
|
6968
6968
|
accountManagement: function() {
|
|
6969
|
-
var
|
|
6970
|
-
if (typeof
|
|
6971
|
-
var
|
|
6972
|
-
|
|
6969
|
+
var S = e.createAccountUrl();
|
|
6970
|
+
if (typeof S < "u") {
|
|
6971
|
+
var C = p(
|
|
6972
|
+
S,
|
|
6973
6973
|
"_blank",
|
|
6974
6974
|
"location=no"
|
|
6975
6975
|
);
|
|
6976
|
-
|
|
6977
|
-
|
|
6976
|
+
C.addEventListener("loadstart", function(L) {
|
|
6977
|
+
L.url.indexOf(E()) == 0 && C.close();
|
|
6978
6978
|
});
|
|
6979
6979
|
} else
|
|
6980
6980
|
throw "Not supported by the OIDC server";
|
|
6981
6981
|
},
|
|
6982
|
-
redirectUri: function(
|
|
6982
|
+
redirectUri: function(S) {
|
|
6983
6983
|
return E();
|
|
6984
6984
|
}
|
|
6985
6985
|
};
|
|
6986
6986
|
}
|
|
6987
6987
|
if (c == "cordova-native")
|
|
6988
6988
|
return i.enable = !1, {
|
|
6989
|
-
login: function(
|
|
6990
|
-
var
|
|
6991
|
-
return universalLinks.subscribe("keycloak", function(
|
|
6989
|
+
login: function(S) {
|
|
6990
|
+
var C = X(), L = e.createLoginUrl(S);
|
|
6991
|
+
return universalLinks.subscribe("keycloak", function(x) {
|
|
6992
6992
|
universalLinks.unsubscribe("keycloak"), window.cordova.plugins.browsertab.close();
|
|
6993
|
-
var B = le(
|
|
6994
|
-
b(B,
|
|
6995
|
-
}), window.cordova.plugins.browsertab.openUrl(
|
|
6993
|
+
var B = le(x.url);
|
|
6994
|
+
b(B, C);
|
|
6995
|
+
}), window.cordova.plugins.browsertab.openUrl(L), C.promise;
|
|
6996
6996
|
},
|
|
6997
|
-
logout: function(
|
|
6998
|
-
var
|
|
6999
|
-
return universalLinks.subscribe("keycloak", function(
|
|
7000
|
-
universalLinks.unsubscribe("keycloak"), window.cordova.plugins.browsertab.close(), e.clearToken(),
|
|
7001
|
-
}), window.cordova.plugins.browsertab.openUrl(
|
|
6997
|
+
logout: function(S) {
|
|
6998
|
+
var C = X(), L = e.createLogoutUrl(S);
|
|
6999
|
+
return universalLinks.subscribe("keycloak", function(x) {
|
|
7000
|
+
universalLinks.unsubscribe("keycloak"), window.cordova.plugins.browsertab.close(), e.clearToken(), C.setSuccess();
|
|
7001
|
+
}), window.cordova.plugins.browsertab.openUrl(L), C.promise;
|
|
7002
7002
|
},
|
|
7003
|
-
register: function(
|
|
7004
|
-
var
|
|
7005
|
-
return universalLinks.subscribe("keycloak", function(
|
|
7003
|
+
register: function(S) {
|
|
7004
|
+
var C = X(), L = e.createRegisterUrl(S);
|
|
7005
|
+
return universalLinks.subscribe("keycloak", function(x) {
|
|
7006
7006
|
universalLinks.unsubscribe("keycloak"), window.cordova.plugins.browsertab.close();
|
|
7007
|
-
var B = le(
|
|
7008
|
-
b(B,
|
|
7009
|
-
}), window.cordova.plugins.browsertab.openUrl(
|
|
7007
|
+
var B = le(x.url);
|
|
7008
|
+
b(B, C);
|
|
7009
|
+
}), window.cordova.plugins.browsertab.openUrl(L), C.promise;
|
|
7010
7010
|
},
|
|
7011
7011
|
accountManagement: function() {
|
|
7012
|
-
var
|
|
7013
|
-
if (typeof
|
|
7014
|
-
window.cordova.plugins.browsertab.openUrl(
|
|
7012
|
+
var S = e.createAccountUrl();
|
|
7013
|
+
if (typeof S < "u")
|
|
7014
|
+
window.cordova.plugins.browsertab.openUrl(S);
|
|
7015
7015
|
else
|
|
7016
7016
|
throw "Not supported by the OIDC server";
|
|
7017
7017
|
},
|
|
7018
|
-
redirectUri: function(
|
|
7019
|
-
return
|
|
7018
|
+
redirectUri: function(S) {
|
|
7019
|
+
return S && S.redirectUri ? S.redirectUri : e.redirectUri ? e.redirectUri : "http://localhost";
|
|
7020
7020
|
}
|
|
7021
7021
|
};
|
|
7022
7022
|
throw "invalid adapter type: " + c;
|
|
@@ -7028,23 +7028,23 @@ For more information see: https://www.keycloak.org/docs/latest/securing_apps/#_m
|
|
|
7028
7028
|
var c = this;
|
|
7029
7029
|
function p() {
|
|
7030
7030
|
for (var y = (/* @__PURE__ */ new Date()).getTime(), T = 0; T < localStorage.length; T++) {
|
|
7031
|
-
var
|
|
7032
|
-
if (
|
|
7033
|
-
var E = localStorage.getItem(
|
|
7031
|
+
var v = localStorage.key(T);
|
|
7032
|
+
if (v && v.indexOf("kc-callback-") == 0) {
|
|
7033
|
+
var E = localStorage.getItem(v);
|
|
7034
7034
|
if (E)
|
|
7035
7035
|
try {
|
|
7036
|
-
var
|
|
7037
|
-
(!
|
|
7036
|
+
var S = JSON.parse(E).expires;
|
|
7037
|
+
(!S || S < y) && localStorage.removeItem(v);
|
|
7038
7038
|
} catch {
|
|
7039
|
-
localStorage.removeItem(
|
|
7039
|
+
localStorage.removeItem(v);
|
|
7040
7040
|
}
|
|
7041
7041
|
}
|
|
7042
7042
|
}
|
|
7043
7043
|
}
|
|
7044
7044
|
c.get = function(y) {
|
|
7045
7045
|
if (y) {
|
|
7046
|
-
var T = "kc-callback-" + y,
|
|
7047
|
-
return
|
|
7046
|
+
var T = "kc-callback-" + y, v = localStorage.getItem(T);
|
|
7047
|
+
return v && (localStorage.removeItem(T), v = JSON.parse(v)), p(), v;
|
|
7048
7048
|
}
|
|
7049
7049
|
}, c.add = function(y) {
|
|
7050
7050
|
p();
|
|
@@ -7055,35 +7055,35 @@ For more information see: https://www.keycloak.org/docs/latest/securing_apps/#_m
|
|
|
7055
7055
|
if (!(this instanceof et))
|
|
7056
7056
|
return new et();
|
|
7057
7057
|
var c = this;
|
|
7058
|
-
c.get = function(
|
|
7059
|
-
if (
|
|
7060
|
-
var E = y("kc-callback-" +
|
|
7061
|
-
if (T("kc-callback-" +
|
|
7058
|
+
c.get = function(v) {
|
|
7059
|
+
if (v) {
|
|
7060
|
+
var E = y("kc-callback-" + v);
|
|
7061
|
+
if (T("kc-callback-" + v, "", p(-100)), E)
|
|
7062
7062
|
return JSON.parse(E);
|
|
7063
7063
|
}
|
|
7064
|
-
}, c.add = function(
|
|
7064
|
+
}, c.add = function(v) {
|
|
7065
7065
|
T(
|
|
7066
|
-
"kc-callback-" +
|
|
7067
|
-
JSON.stringify(
|
|
7066
|
+
"kc-callback-" + v.state,
|
|
7067
|
+
JSON.stringify(v),
|
|
7068
7068
|
p(60)
|
|
7069
7069
|
);
|
|
7070
|
-
}, c.removeItem = function(
|
|
7071
|
-
T(
|
|
7070
|
+
}, c.removeItem = function(v) {
|
|
7071
|
+
T(v, "", p(-100));
|
|
7072
7072
|
};
|
|
7073
|
-
var p = function(
|
|
7073
|
+
var p = function(v) {
|
|
7074
7074
|
var E = /* @__PURE__ */ new Date();
|
|
7075
|
-
return E.setTime(E.getTime() +
|
|
7076
|
-
}, y = function(
|
|
7077
|
-
for (var E =
|
|
7078
|
-
for (var
|
|
7079
|
-
|
|
7080
|
-
if (
|
|
7081
|
-
return
|
|
7075
|
+
return E.setTime(E.getTime() + v * 60 * 1e3), E;
|
|
7076
|
+
}, y = function(v) {
|
|
7077
|
+
for (var E = v + "=", S = document.cookie.split(";"), C = 0; C < S.length; C++) {
|
|
7078
|
+
for (var L = S[C]; L.charAt(0) == " "; )
|
|
7079
|
+
L = L.substring(1);
|
|
7080
|
+
if (L.indexOf(E) == 0)
|
|
7081
|
+
return L.substring(E.length, L.length);
|
|
7082
7082
|
}
|
|
7083
7083
|
return "";
|
|
7084
|
-
}, T = function(
|
|
7085
|
-
var
|
|
7086
|
-
document.cookie =
|
|
7084
|
+
}, T = function(v, E, S) {
|
|
7085
|
+
var C = v + "=" + E + "; expires=" + S.toUTCString() + "; ";
|
|
7086
|
+
document.cookie = C;
|
|
7087
7087
|
};
|
|
7088
7088
|
};
|
|
7089
7089
|
function kt() {
|
|
@@ -7164,14 +7164,14 @@ function nm(t, e, n = {}) {
|
|
|
7164
7164
|
i && (i.disconnect(), i = void 0);
|
|
7165
7165
|
}, l = de(() => {
|
|
7166
7166
|
const m = Oi(t);
|
|
7167
|
-
return Array.isArray(m) ? m.map((
|
|
7167
|
+
return Array.isArray(m) ? m.map((g) => Ci(g)) : [Ci(m)];
|
|
7168
7168
|
}), u = Wn(
|
|
7169
7169
|
l,
|
|
7170
7170
|
(m) => {
|
|
7171
7171
|
if (s(), a.value && r) {
|
|
7172
7172
|
i = new ResizeObserver(e);
|
|
7173
|
-
for (const
|
|
7174
|
-
|
|
7173
|
+
for (const g of m)
|
|
7174
|
+
g && i.observe(g, o);
|
|
7175
7175
|
}
|
|
7176
7176
|
},
|
|
7177
7177
|
{ immediate: !0, flush: "post" }
|
|
@@ -7231,10 +7231,10 @@ function im() {
|
|
|
7231
7231
|
typeof console !== n && (d.call(this), this[A].apply(this, arguments));
|
|
7232
7232
|
};
|
|
7233
7233
|
}
|
|
7234
|
-
function
|
|
7234
|
+
function g(A, P, w) {
|
|
7235
7235
|
return u(A) || m.apply(this, arguments);
|
|
7236
7236
|
}
|
|
7237
|
-
function
|
|
7237
|
+
function _(A, P) {
|
|
7238
7238
|
var w = this, b, N, H, Y = "loglevel";
|
|
7239
7239
|
typeof A == "string" ? Y += ":" + A : typeof A == "symbol" && (Y = void 0);
|
|
7240
7240
|
function ge(D) {
|
|
@@ -7294,7 +7294,7 @@ function im() {
|
|
|
7294
7294
|
WARN: 3,
|
|
7295
7295
|
ERROR: 4,
|
|
7296
7296
|
SILENT: 5
|
|
7297
|
-
}, w.methodFactory = P ||
|
|
7297
|
+
}, w.methodFactory = P || g, w.getLevel = function() {
|
|
7298
7298
|
return H ?? N ?? b;
|
|
7299
7299
|
}, w.setLevel = function(D, J) {
|
|
7300
7300
|
return H = ce(D), J !== !1 && ge(H), d.call(w);
|
|
@@ -7316,18 +7316,18 @@ function im() {
|
|
|
7316
7316
|
var X = le();
|
|
7317
7317
|
X != null && (H = ce(X)), d.call(w);
|
|
7318
7318
|
}
|
|
7319
|
-
a = new
|
|
7319
|
+
a = new _(), a.getLogger = function(P) {
|
|
7320
7320
|
if (typeof P != "symbol" && typeof P != "string" || P === "")
|
|
7321
7321
|
throw new TypeError("You must supply a name when creating a logger.");
|
|
7322
7322
|
var w = i[P];
|
|
7323
|
-
return w || (w = i[P] = new
|
|
7323
|
+
return w || (w = i[P] = new _(
|
|
7324
7324
|
P,
|
|
7325
7325
|
a.methodFactory
|
|
7326
7326
|
)), w;
|
|
7327
7327
|
};
|
|
7328
|
-
var
|
|
7328
|
+
var k = typeof window !== n ? window.log : void 0;
|
|
7329
7329
|
return a.noConflict = function() {
|
|
7330
|
-
return typeof window !== n && window.log === a && (window.log =
|
|
7330
|
+
return typeof window !== n && window.log === a && (window.log = k), a;
|
|
7331
7331
|
}, a.getLoggers = function() {
|
|
7332
7332
|
return i;
|
|
7333
7333
|
}, a.default = a, a;
|
|
@@ -7348,11 +7348,11 @@ const zn = /* @__PURE__ */ rm(sm), Fm = {
|
|
|
7348
7348
|
);
|
|
7349
7349
|
const o = oe(!0), i = oe(0), a = oe(!1), s = oe(!1), l = oe(""), u = oe(null), d = oe(0);
|
|
7350
7350
|
let m = null;
|
|
7351
|
-
nm(u, (
|
|
7351
|
+
nm(u, (_) => {
|
|
7352
7352
|
m && clearTimeout(m), m = setTimeout(() => {
|
|
7353
|
-
const { width:
|
|
7354
|
-
|
|
7355
|
-
d.value =
|
|
7353
|
+
const { width: k } = _[0].contentRect;
|
|
7354
|
+
xi(() => {
|
|
7355
|
+
d.value = k;
|
|
7356
7356
|
});
|
|
7357
7357
|
}, 50);
|
|
7358
7358
|
}), t.provide(qi, {
|
|
@@ -7375,16 +7375,16 @@ const zn = /* @__PURE__ */ rm(sm), Fm = {
|
|
|
7375
7375
|
EnableLightMode: () => Jt.EnableLightMode(),
|
|
7376
7376
|
ClearStoredTheme: () => Jt.ClearStoredTheme(),
|
|
7377
7377
|
LogoutAsync: async () => {
|
|
7378
|
-
const
|
|
7379
|
-
await
|
|
7378
|
+
const _ = $f(), { oidc: k } = ki();
|
|
7379
|
+
await _.ConfirmAsync(
|
|
7380
7380
|
"Deseja realmente sair da sua conta?"
|
|
7381
|
-
) && (
|
|
7381
|
+
) && (xm("Saindo..."), s.value = !0, await new Promise((P) => setTimeout(P, 1e3)), k.logout({ redirectUri: window.location.origin }).catch(() => {
|
|
7382
7382
|
s.value = !1, Pm();
|
|
7383
7383
|
}));
|
|
7384
7384
|
},
|
|
7385
7385
|
Login: () => {
|
|
7386
|
-
const { oidc:
|
|
7387
|
-
|
|
7386
|
+
const { oidc: _ } = ki();
|
|
7387
|
+
_.login();
|
|
7388
7388
|
},
|
|
7389
7389
|
isLoggingOut: s,
|
|
7390
7390
|
mainRef: u,
|
|
@@ -7531,11 +7531,11 @@ const co = () => cm(), um = { class: "font-percentage" }, Ti = "--font-size-incr
|
|
|
7531
7531
|
getComputedStyle(i()).getPropertyValue(
|
|
7532
7532
|
Ti
|
|
7533
7533
|
) || "1"
|
|
7534
|
-
), s = (
|
|
7535
|
-
|
|
7534
|
+
), s = (g) => {
|
|
7535
|
+
g < 0.5 || g > 1.6 || (i().style.setProperty(
|
|
7536
7536
|
Ti,
|
|
7537
|
-
|
|
7538
|
-
), m.value =
|
|
7537
|
+
g.toString()
|
|
7538
|
+
), m.value = g);
|
|
7539
7539
|
}, l = () => {
|
|
7540
7540
|
s(m.value + 0.1);
|
|
7541
7541
|
}, u = () => {
|
|
@@ -7547,7 +7547,7 @@ const co = () => cm(), um = { class: "font-percentage" }, Ti = "--font-size-incr
|
|
|
7547
7547
|
localStorage.removeItem(dm);
|
|
7548
7548
|
}), Vt(() => {
|
|
7549
7549
|
m.value = a();
|
|
7550
|
-
}), (
|
|
7550
|
+
}), (g, _) => (O(), U(Xe, null, [
|
|
7551
7551
|
Ee(dt, {
|
|
7552
7552
|
button: !0,
|
|
7553
7553
|
size: "sm",
|
|
@@ -7617,11 +7617,11 @@ const co = () => cm(), um = { class: "font-percentage" }, Ti = "--font-size-incr
|
|
|
7617
7617
|
ToggleTheme: u,
|
|
7618
7618
|
CloseMenu: d,
|
|
7619
7619
|
LogoutAsync: m,
|
|
7620
|
-
isLoggingOut:
|
|
7621
|
-
mainRef:
|
|
7622
|
-
} = co(),
|
|
7623
|
-
if (!
|
|
7624
|
-
|
|
7620
|
+
isLoggingOut: g,
|
|
7621
|
+
mainRef: _
|
|
7622
|
+
} = co(), k = oe(null), A = () => {
|
|
7623
|
+
if (!k.value || !o.value) return !1;
|
|
7624
|
+
k.value.offsetWidth !== r && d();
|
|
7625
7625
|
};
|
|
7626
7626
|
Vt(() => {
|
|
7627
7627
|
ea().afterEach(() => {
|
|
@@ -7631,16 +7631,16 @@ const co = () => cm(), um = { class: "font-percentage" }, Ti = "--font-size-incr
|
|
|
7631
7631
|
const P = e;
|
|
7632
7632
|
return (w, b) => (O(), U("main", {
|
|
7633
7633
|
ref_key: "mainRef",
|
|
7634
|
-
ref:
|
|
7634
|
+
ref: _,
|
|
7635
7635
|
class: ee({
|
|
7636
|
-
disabled: ae(
|
|
7636
|
+
disabled: ae(g),
|
|
7637
7637
|
"nav-menu-visible": ae(o)
|
|
7638
7638
|
})
|
|
7639
7639
|
}, [
|
|
7640
7640
|
$("aside", {
|
|
7641
7641
|
id: "nav-menu",
|
|
7642
7642
|
ref_key: "navMenuRef",
|
|
7643
|
-
ref:
|
|
7643
|
+
ref: k,
|
|
7644
7644
|
class: ee({ "nav-menu-hidden": !ae(o) })
|
|
7645
7645
|
}, [
|
|
7646
7646
|
$("div", hm, [
|
|
@@ -7666,7 +7666,7 @@ const co = () => cm(), um = { class: "font-percentage" }, Ti = "--font-size-incr
|
|
|
7666
7666
|
tooltip: "Menu",
|
|
7667
7667
|
onClick: ae(s)
|
|
7668
7668
|
}, null, 8, ["icon", "onClick"]),
|
|
7669
|
-
$("div", ym, $e(ae(
|
|
7669
|
+
$("div", ym, $e(ae(g) ? "Saindo..." : ae(i)), 1),
|
|
7670
7670
|
b[2] || (b[2] = $("span", { class: "sep" }, null, -1)),
|
|
7671
7671
|
$("div", bm, [
|
|
7672
7672
|
Ee(dt, {
|
|
@@ -7697,7 +7697,7 @@ const co = () => cm(), um = { class: "font-percentage" }, Ti = "--font-size-incr
|
|
|
7697
7697
|
])
|
|
7698
7698
|
], 2),
|
|
7699
7699
|
$("div", wm, [
|
|
7700
|
-
ae(
|
|
7700
|
+
ae(g) ? (O(), U("div", _m, [
|
|
7701
7701
|
Ee($i)
|
|
7702
7702
|
])) : me(w.$slots, "content", { key: 1 }, void 0, !0)
|
|
7703
7703
|
])
|
|
@@ -8369,7 +8369,7 @@ const Em = new Am(), Jm = () => Em;
|
|
|
8369
8369
|
function Pm() {
|
|
8370
8370
|
document.documentElement.removeAttribute("data-app-message"), document.documentElement.classList.add("app-mounted");
|
|
8371
8371
|
}
|
|
8372
|
-
function
|
|
8372
|
+
function xm(t) {
|
|
8373
8373
|
typeof t == "string" && document.documentElement.setAttribute(
|
|
8374
8374
|
"data-app-message",
|
|
8375
8375
|
t
|
|
@@ -8382,7 +8382,7 @@ export {
|
|
|
8382
8382
|
jm as ConfigAuth,
|
|
8383
8383
|
Zm as EnsureUniqueRouteNames,
|
|
8384
8384
|
Pm as RemovePreloader,
|
|
8385
|
-
|
|
8385
|
+
xm as RestorePreloader,
|
|
8386
8386
|
Rm as SfButton,
|
|
8387
8387
|
Um as SfContent,
|
|
8388
8388
|
ya as SfDrawer,
|