@luizleon/sf.prefeiturasp.vuecomponents 5.0.47 → 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 +534 -535
- 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 +5 -3
- 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);
|
|
@@ -3765,7 +3765,7 @@ Gi.render = lc;
|
|
|
3765
3765
|
const cc = { class: "panel-menu-wrapper select-none" }, uc = ["data-active", "onClick"], dc = {
|
|
3766
3766
|
key: 0,
|
|
3767
3767
|
class: "material-symbols-outlined item-menu-icon-left"
|
|
3768
|
-
}, fc = ["textContent"], mc = ["
|
|
3768
|
+
}, fc = ["textContent"], mc = ["onClick"], pc = {
|
|
3769
3769
|
key: 0,
|
|
3770
3770
|
class: "material-symbols-outlined item-menu-icon-left"
|
|
3771
3771
|
}, hc = ["textContent"], gc = {
|
|
@@ -3780,62 +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
|
-
|
|
3823
|
-
onClick: Ir((d) => r(d, l), ["stop"])
|
|
3821
|
+
class: ee(["item-menu", { disabled: u.disabled }]),
|
|
3822
|
+
onClick: Ir((m) => r(m, u), ["stop"])
|
|
3824
3823
|
}, [
|
|
3825
|
-
|
|
3824
|
+
u.icon ? (O(), U("span", pc, $e(u.icon), 1)) : se("", !0),
|
|
3826
3825
|
$("span", {
|
|
3827
|
-
textContent: $e(o(
|
|
3826
|
+
textContent: $e(o(u))
|
|
3828
3827
|
}, null, 8, hc)
|
|
3829
3828
|
], 10, mc)) : (O(), U("a", gc, [
|
|
3830
|
-
|
|
3829
|
+
u.icon ? (O(), U("span", vc, $e(u.icon), 1)) : se("", !0),
|
|
3831
3830
|
$("span", {
|
|
3832
|
-
textContent: $e(o(
|
|
3831
|
+
textContent: $e(o(u))
|
|
3833
3832
|
}, null, 8, yc),
|
|
3834
|
-
|
|
3833
|
+
s[0] || (s[0] = $("div", { class: "sep" }, null, -1)),
|
|
3835
3834
|
$("span", {
|
|
3836
3835
|
class: ee([
|
|
3837
3836
|
"material-symbols-outlined arrow",
|
|
3838
|
-
{ "--expand":
|
|
3837
|
+
{ "--expand": d }
|
|
3839
3838
|
])
|
|
3840
3839
|
}, " chevron_right ", 2)
|
|
3841
3840
|
]))
|
|
@@ -3845,7 +3844,7 @@ const cc = { class: "panel-menu-wrapper select-none" }, uc = ["data-active", "on
|
|
|
3845
3844
|
]);
|
|
3846
3845
|
};
|
|
3847
3846
|
}
|
|
3848
|
-
}), Nm = /* @__PURE__ */ St(bc, [["__scopeId", "data-v-
|
|
3847
|
+
}), Nm = /* @__PURE__ */ St(bc, [["__scopeId", "data-v-6f15ffd0"]]), Bm = /* @__PURE__ */ De({
|
|
3849
3848
|
__name: "HelpButton",
|
|
3850
3849
|
props: {
|
|
3851
3850
|
title: {},
|
|
@@ -3942,7 +3941,7 @@ const Jt = new _c(), Yi = "SweetAlert2:", Sc = (t) => {
|
|
|
3942
3941
|
return e;
|
|
3943
3942
|
}, qr = (t) => t.charAt(0).toUpperCase() + t.slice(1), je = (t) => Array.prototype.slice.call(t), Ne = (t) => {
|
|
3944
3943
|
console.warn(`${Yi} ${typeof t == "object" ? t.join(" ") : t}`);
|
|
3945
|
-
},
|
|
3944
|
+
}, xt = (t) => {
|
|
3946
3945
|
console.error(`${Yi} ${t}`);
|
|
3947
3946
|
}, ei = [], kc = (t) => {
|
|
3948
3947
|
ei.includes(t) || (ei.push(t), Ne(t));
|
|
@@ -4092,16 +4091,16 @@ const Jt = new _c(), Yi = "SweetAlert2:", Sc = (t) => {
|
|
|
4092
4091
|
"returnFocus",
|
|
4093
4092
|
"heightAuto",
|
|
4094
4093
|
"keydownListenerCapture"
|
|
4095
|
-
], 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) => {
|
|
4096
4095
|
Xi(t) || Ne(`Unknown parameter "${t}"`);
|
|
4097
4096
|
}, Pc = (t) => {
|
|
4098
4097
|
Ac.includes(t) && Ne(`The parameter "${t}" is incompatible with toasts`);
|
|
4099
|
-
}, Lc = (t) => {
|
|
4100
|
-
xr(t) && Cc(t, xr(t));
|
|
4101
4098
|
}, xc = (t) => {
|
|
4099
|
+
Lr(t) && Cc(t, Lr(t));
|
|
4100
|
+
}, Lc = (t) => {
|
|
4102
4101
|
!t.backdrop && t.allowOutsideClick && Ne('"allowOutsideClick" parameter requires `backdrop` parameter to be set to `true`');
|
|
4103
4102
|
for (const e in t)
|
|
4104
|
-
Ec(e), t.toast && Pc(e),
|
|
4103
|
+
Ec(e), t.toast && Pc(e), xc(e);
|
|
4105
4104
|
}, Oc = "swal2-", Ji = (t) => {
|
|
4106
4105
|
const e = {};
|
|
4107
4106
|
for (const n in t)
|
|
@@ -4362,7 +4361,7 @@ const Jt = new _c(), Yi = "SweetAlert2:", Sc = (t) => {
|
|
|
4362
4361
|
}, qc = (t) => {
|
|
4363
4362
|
const e = Vc();
|
|
4364
4363
|
if (ss()) {
|
|
4365
|
-
|
|
4364
|
+
xt("SweetAlert2 requires document to initialize");
|
|
4366
4365
|
return;
|
|
4367
4366
|
}
|
|
4368
4367
|
const n = document.createElement("div");
|
|
@@ -4441,7 +4440,7 @@ const ou = (t, e) => {
|
|
|
4441
4440
|
}), e.input && (o && au(e), uu(e));
|
|
4442
4441
|
}, au = (t) => {
|
|
4443
4442
|
if (!Me[t.input])
|
|
4444
|
-
return
|
|
4443
|
+
return xt(
|
|
4445
4444
|
`Unexpected type of input! Expected "text", "email", "password", "number", "tel", "select", "radio", "checkbox", "textarea", "file" or "url", got "${t.input}"`
|
|
4446
4445
|
);
|
|
4447
4446
|
const e = as(t.input), n = Me[t.input](e, t);
|
|
@@ -4531,7 +4530,7 @@ const du = (t, e) => {
|
|
|
4531
4530
|
if (!e.icon && !e.iconHtml)
|
|
4532
4531
|
return Ie(r);
|
|
4533
4532
|
if (e.icon && Object.keys(un).indexOf(e.icon) === -1)
|
|
4534
|
-
return
|
|
4533
|
+
return xt(`Unknown icon! Expected "success", "error", "warning", "info" or "question", got "${e.icon}"`), Ie(r);
|
|
4535
4534
|
he(r), oi(r, e), ri(r, e), q(r, e.showClass.icon);
|
|
4536
4535
|
}, ri = (t, e) => {
|
|
4537
4536
|
for (const n in un)
|
|
@@ -4625,8 +4624,8 @@ const du = (t, e) => {
|
|
|
4625
4624
|
return Mu(n), Object.assign(
|
|
4626
4625
|
Eu(n),
|
|
4627
4626
|
Pu(n),
|
|
4628
|
-
Lu(n),
|
|
4629
4627
|
xu(n),
|
|
4628
|
+
Lu(n),
|
|
4630
4629
|
Ou(n),
|
|
4631
4630
|
$u(n, us)
|
|
4632
4631
|
);
|
|
@@ -4644,10 +4643,10 @@ const du = (t, e) => {
|
|
|
4644
4643
|
const r = n.getAttribute("type");
|
|
4645
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"));
|
|
4646
4645
|
}), e;
|
|
4647
|
-
},
|
|
4646
|
+
}, xu = (t) => {
|
|
4648
4647
|
const e = {}, n = t.querySelector("swal-image");
|
|
4649
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;
|
|
4650
|
-
},
|
|
4649
|
+
}, Lu = (t) => {
|
|
4651
4650
|
const e = {}, n = t.querySelector("swal-icon");
|
|
4652
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;
|
|
4653
4652
|
}, Ou = (t) => {
|
|
@@ -4810,13 +4809,13 @@ const Uu = () => {
|
|
|
4810
4809
|
const n = te(), r = (o) => sd[e.input](n, Or(o), e);
|
|
4811
4810
|
Yr(e.inputOptions) || Xr(e.inputOptions) ? (Ft(Ze()), kn(e.inputOptions).then((o) => {
|
|
4812
4811
|
t.hideLoading(), r(o);
|
|
4813
|
-
})) : 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}`);
|
|
4814
4813
|
}, id = (t, e) => {
|
|
4815
4814
|
const n = t.getInput();
|
|
4816
4815
|
Ie(n), kn(e.inputValue).then((r) => {
|
|
4817
4816
|
n.value = e.input === "number" ? parseFloat(r) || 0 : `${r}`, he(n), n.focus(), t.hideLoading();
|
|
4818
4817
|
}).catch((r) => {
|
|
4819
|
-
|
|
4818
|
+
xt(`Error in inputValue promise: ${r}`), n.value = "", he(n), n.focus(), t.hideLoading();
|
|
4820
4819
|
});
|
|
4821
4820
|
}, sd = {
|
|
4822
4821
|
select: (t, e, n) => {
|
|
@@ -5010,13 +5009,13 @@ function Ed() {
|
|
|
5010
5009
|
function Pd() {
|
|
5011
5010
|
return ys(this.getInput(), !0);
|
|
5012
5011
|
}
|
|
5013
|
-
function
|
|
5012
|
+
function xd(t) {
|
|
5014
5013
|
const e = F.domCache.get(this), n = F.innerParams.get(this);
|
|
5015
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);
|
|
5016
5015
|
const r = this.getInput();
|
|
5017
5016
|
r && (r.setAttribute("aria-invalid", !0), r.setAttribute("aria-describedby", h["validation-message"]), rs(r), q(r, h.inputerror));
|
|
5018
5017
|
}
|
|
5019
|
-
function
|
|
5018
|
+
function Ld() {
|
|
5020
5019
|
const t = F.domCache.get(this);
|
|
5021
5020
|
t.validationMessage && Ie(t.validationMessage);
|
|
5022
5021
|
const e = this.getInput();
|
|
@@ -5083,8 +5082,8 @@ const Dd = (t) => {
|
|
|
5083
5082
|
hideLoading: li,
|
|
5084
5083
|
isAwaitingPromise: wd,
|
|
5085
5084
|
rejectPromise: Sd,
|
|
5086
|
-
resetValidationMessage:
|
|
5087
|
-
showValidationMessage:
|
|
5085
|
+
resetValidationMessage: Ld,
|
|
5086
|
+
showValidationMessage: xd,
|
|
5088
5087
|
update: $d
|
|
5089
5088
|
}, Symbol.toStringTag, { value: "Module" })), Nd = (t) => {
|
|
5090
5089
|
const e = F.innerParams.get(t);
|
|
@@ -5097,7 +5096,7 @@ const Dd = (t) => {
|
|
|
5097
5096
|
}, _s = (t, e) => {
|
|
5098
5097
|
const n = F.innerParams.get(t);
|
|
5099
5098
|
if (!n.input)
|
|
5100
|
-
return
|
|
5099
|
+
return xt(
|
|
5101
5100
|
`The "input" parameter is needed to be set when using returnInputValueOn${qr(e)}`
|
|
5102
5101
|
);
|
|
5103
5102
|
const r = ed(t, n);
|
|
@@ -5161,7 +5160,7 @@ const Kd = (t) => {
|
|
|
5161
5160
|
const e = {};
|
|
5162
5161
|
return typeof t[0] == "object" && !di(t[0]) ? Object.assign(e, t[0]) : ["title", "html", "icon"].forEach((n, r) => {
|
|
5163
5162
|
const o = t[r];
|
|
5164
|
-
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}`);
|
|
5165
5164
|
}), e;
|
|
5166
5165
|
};
|
|
5167
5166
|
function Yd(...t) {
|
|
@@ -5235,7 +5234,7 @@ const nf = (t) => {
|
|
|
5235
5234
|
getTitle: Qi,
|
|
5236
5235
|
getValidationMessage: tr,
|
|
5237
5236
|
increaseTimer: Qd,
|
|
5238
|
-
isDeprecatedParameter:
|
|
5237
|
+
isDeprecatedParameter: Lr,
|
|
5239
5238
|
isLoading: Rc,
|
|
5240
5239
|
isTimerRunning: ef,
|
|
5241
5240
|
isUpdatableParameter: Zi,
|
|
@@ -5266,7 +5265,7 @@ class Wt {
|
|
|
5266
5265
|
F.promise.set(this, r);
|
|
5267
5266
|
}
|
|
5268
5267
|
_main(e, n = {}) {
|
|
5269
|
-
|
|
5268
|
+
Lc(Object.assign({}, n, e)), j.currentInstance && (j.currentInstance._destroy(), Qr() && cs()), j.currentInstance = this;
|
|
5270
5269
|
const r = sf(e, n);
|
|
5271
5270
|
Nu(r), Object.freeze(r), j.timeout && (j.timeout.stop(), delete j.timeout), clearTimeout(j.restoreFocusTimeout);
|
|
5272
5271
|
const o = af(this);
|
|
@@ -5341,14 +5340,14 @@ const {
|
|
|
5341
5340
|
getOwnPropertyDescriptor: pf
|
|
5342
5341
|
} = Object;
|
|
5343
5342
|
let {
|
|
5344
|
-
freeze:
|
|
5343
|
+
freeze: xe,
|
|
5345
5344
|
seal: Ke,
|
|
5346
5345
|
create: Ts
|
|
5347
5346
|
} = Object, {
|
|
5348
5347
|
apply: Dr,
|
|
5349
5348
|
construct: Nr
|
|
5350
5349
|
} = typeof Reflect < "u" && Reflect;
|
|
5351
|
-
|
|
5350
|
+
xe || (xe = function(e) {
|
|
5352
5351
|
return e;
|
|
5353
5352
|
});
|
|
5354
5353
|
Ke || (Ke = function(e) {
|
|
@@ -5360,8 +5359,8 @@ Dr || (Dr = function(e, n, r) {
|
|
|
5360
5359
|
Nr || (Nr = function(e, n) {
|
|
5361
5360
|
return new e(...n);
|
|
5362
5361
|
});
|
|
5363
|
-
const Bn =
|
|
5364
|
-
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) {
|
|
5365
5364
|
return function(e) {
|
|
5366
5365
|
e instanceof RegExp && (e.lastIndex = 0);
|
|
5367
5366
|
for (var n = arguments.length, r = new Array(n > 1 ? n - 1 : 0), o = 1; o < n; o++)
|
|
@@ -5406,9 +5405,9 @@ function nn(t, e) {
|
|
|
5406
5405
|
const r = pf(t, e);
|
|
5407
5406
|
if (r) {
|
|
5408
5407
|
if (r.get)
|
|
5409
|
-
return
|
|
5408
|
+
return Le(r.get);
|
|
5410
5409
|
if (typeof r.value == "function")
|
|
5411
|
-
return
|
|
5410
|
+
return Le(r.value);
|
|
5412
5411
|
}
|
|
5413
5412
|
t = mf(t);
|
|
5414
5413
|
}
|
|
@@ -5417,18 +5416,18 @@ function nn(t, e) {
|
|
|
5417
5416
|
}
|
|
5418
5417
|
return n;
|
|
5419
5418
|
}
|
|
5420
|
-
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(
|
|
5421
5420
|
/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i
|
|
5422
5421
|
// eslint-disable-line no-useless-escape
|
|
5423
5422
|
), Ef = Ke(/^(?:\w+script|data):/i), Pf = Ke(
|
|
5424
5423
|
/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g
|
|
5425
5424
|
// eslint-disable-line no-control-regex
|
|
5426
|
-
), Es = Ke(/^html$/i),
|
|
5425
|
+
), Es = Ke(/^html$/i), xf = Ke(/^[a-z][.\w]*(-[.\w]+)+$/i);
|
|
5427
5426
|
var wi = /* @__PURE__ */ Object.freeze({
|
|
5428
5427
|
__proto__: null,
|
|
5429
5428
|
ARIA_ATTR: Af,
|
|
5430
5429
|
ATTR_WHITESPACE: Pf,
|
|
5431
|
-
CUSTOM_ELEMENT:
|
|
5430
|
+
CUSTOM_ELEMENT: xf,
|
|
5432
5431
|
DATA_ATTR: Tf,
|
|
5433
5432
|
DOCTYPE_NAME: Es,
|
|
5434
5433
|
ERB_EXPR: Cf,
|
|
@@ -5444,7 +5443,7 @@ const rn = {
|
|
|
5444
5443
|
progressingInstruction: 7,
|
|
5445
5444
|
comment: 8,
|
|
5446
5445
|
document: 9
|
|
5447
|
-
},
|
|
5446
|
+
}, Lf = function() {
|
|
5448
5447
|
return typeof window > "u" ? null : window;
|
|
5449
5448
|
}, Of = function(e, n) {
|
|
5450
5449
|
if (typeof e != "object" || typeof e.createPolicy != "function")
|
|
@@ -5479,7 +5478,7 @@ const rn = {
|
|
|
5479
5478
|
};
|
|
5480
5479
|
};
|
|
5481
5480
|
function Ps() {
|
|
5482
|
-
let t = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] :
|
|
5481
|
+
let t = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : Lf();
|
|
5483
5482
|
const e = (R) => Ps(R);
|
|
5484
5483
|
if (e.version = "3.2.6", e.removed = [], !t || !t.document || t.document.nodeType !== rn.document || !t.Element)
|
|
5485
5484
|
return e.isSupported = !1, e;
|
|
@@ -5494,9 +5493,9 @@ function Ps() {
|
|
|
5494
5493
|
NodeFilter: u,
|
|
5495
5494
|
NamedNodeMap: d = t.NamedNodeMap || t.MozNamedAttrMap,
|
|
5496
5495
|
HTMLFormElement: m,
|
|
5497
|
-
DOMParser:
|
|
5498
|
-
trustedTypes:
|
|
5499
|
-
} = 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");
|
|
5500
5499
|
if (typeof a == "function") {
|
|
5501
5500
|
const R = n.createElement("template");
|
|
5502
5501
|
R.content && R.content.ownerDocument && (n = R.content.ownerDocument);
|
|
@@ -5528,7 +5527,7 @@ function Ps() {
|
|
|
5528
5527
|
const p = z({}, [...gi, ...br, ...wr, ..._r, ...vi]);
|
|
5529
5528
|
let y = null;
|
|
5530
5529
|
const T = z({}, [...yi, ...Sr, ...bi, ...Un]);
|
|
5531
|
-
let
|
|
5530
|
+
let v = Object.seal(Ts(null, {
|
|
5532
5531
|
tagNameCheck: {
|
|
5533
5532
|
writable: !0,
|
|
5534
5533
|
configurable: !1,
|
|
@@ -5547,16 +5546,16 @@ function Ps() {
|
|
|
5547
5546
|
enumerable: !0,
|
|
5548
5547
|
value: !1
|
|
5549
5548
|
}
|
|
5550
|
-
})), 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;
|
|
5551
5550
|
const Ds = "user-content-";
|
|
5552
5551
|
let ir = !0, Gt = !1, Ot = {}, $t = null;
|
|
5553
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"]);
|
|
5554
5553
|
let po = null;
|
|
5555
5554
|
const ho = z({}, ["audio", "video", "img", "source", "image", "track"]);
|
|
5556
5555
|
let sr = null;
|
|
5557
|
-
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";
|
|
5558
5557
|
let Mt = st, ar = !1, lr = null;
|
|
5559
|
-
const Ns = z({}, [
|
|
5558
|
+
const Ns = z({}, [Ln, On, st], yr);
|
|
5560
5559
|
let $n = z({}, ["mi", "mo", "mn", "ms", "mtext"]), Mn = z({}, ["annotation-xml"]);
|
|
5561
5560
|
const Bs = z({}, ["title", "style", "font", "a", "script"]);
|
|
5562
5561
|
let qt = null;
|
|
@@ -5568,24 +5567,24 @@ function Ps() {
|
|
|
5568
5567
|
let f = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
5569
5568
|
if (!(Rt && Rt === f)) {
|
|
5570
5569
|
if ((!f || typeof f != "object") && (f = {}), f = ct(f), qt = // eslint-disable-next-line unicorn/prefer-includes
|
|
5571
|
-
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) {
|
|
5572
5571
|
if (typeof f.TRUSTED_TYPES_POLICY.createHTML != "function")
|
|
5573
5572
|
throw tn('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');
|
|
5574
5573
|
if (typeof f.TRUSTED_TYPES_POLICY.createScriptURL != "function")
|
|
5575
5574
|
throw tn('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');
|
|
5576
5575
|
H = f.TRUSTED_TYPES_POLICY, Y = H.createHTML("");
|
|
5577
5576
|
} else
|
|
5578
|
-
H === void 0 && (H = Of(
|
|
5579
|
-
|
|
5577
|
+
H === void 0 && (H = Of(_, o)), H !== null && typeof Y == "string" && (Y = H.createHTML(""));
|
|
5578
|
+
xe && xe(f), Rt = f;
|
|
5580
5579
|
}
|
|
5581
5580
|
}, yo = z({}, [...br, ...wr, ..._f]), bo = z({}, [..._r, ...Sf]), Fs = function(f) {
|
|
5582
|
-
let
|
|
5583
|
-
(!
|
|
5581
|
+
let I = N(f);
|
|
5582
|
+
(!I || !I.tagName) && (I = {
|
|
5584
5583
|
namespaceURI: Mt,
|
|
5585
5584
|
tagName: "template"
|
|
5586
5585
|
});
|
|
5587
|
-
const M = Vn(f.tagName), ie = Vn(
|
|
5588
|
-
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;
|
|
5589
5588
|
}, tt = function(f) {
|
|
5590
5589
|
Qt(e.removed, {
|
|
5591
5590
|
element: f
|
|
@@ -5595,31 +5594,31 @@ function Ps() {
|
|
|
5595
5594
|
} catch {
|
|
5596
5595
|
P(f);
|
|
5597
5596
|
}
|
|
5598
|
-
}, Dt = function(f,
|
|
5597
|
+
}, Dt = function(f, I) {
|
|
5599
5598
|
try {
|
|
5600
5599
|
Qt(e.removed, {
|
|
5601
|
-
attribute:
|
|
5602
|
-
from:
|
|
5600
|
+
attribute: I.getAttributeNode(f),
|
|
5601
|
+
from: I
|
|
5603
5602
|
});
|
|
5604
5603
|
} catch {
|
|
5605
5604
|
Qt(e.removed, {
|
|
5606
5605
|
attribute: null,
|
|
5607
|
-
from:
|
|
5606
|
+
from: I
|
|
5608
5607
|
});
|
|
5609
5608
|
}
|
|
5610
|
-
if (
|
|
5611
|
-
if (
|
|
5609
|
+
if (I.removeAttribute(f), f === "is")
|
|
5610
|
+
if (Lt || Pn)
|
|
5612
5611
|
try {
|
|
5613
|
-
tt(
|
|
5612
|
+
tt(I);
|
|
5614
5613
|
} catch {
|
|
5615
5614
|
}
|
|
5616
5615
|
else
|
|
5617
5616
|
try {
|
|
5618
|
-
|
|
5617
|
+
I.setAttribute(f, "");
|
|
5619
5618
|
} catch {
|
|
5620
5619
|
}
|
|
5621
5620
|
}, wo = function(f) {
|
|
5622
|
-
let
|
|
5621
|
+
let I = null, M = null;
|
|
5623
5622
|
if (it)
|
|
5624
5623
|
f = "<remove></remove>" + f;
|
|
5625
5624
|
else {
|
|
@@ -5630,18 +5629,18 @@ function Ps() {
|
|
|
5630
5629
|
const ie = H ? H.createHTML(f) : f;
|
|
5631
5630
|
if (Mt === st)
|
|
5632
5631
|
try {
|
|
5633
|
-
|
|
5632
|
+
I = new g().parseFromString(ie, qt);
|
|
5634
5633
|
} catch {
|
|
5635
5634
|
}
|
|
5636
|
-
if (!
|
|
5637
|
-
|
|
5635
|
+
if (!I || !I.documentElement) {
|
|
5636
|
+
I = ge.createDocument(Mt, "template", null);
|
|
5638
5637
|
try {
|
|
5639
|
-
|
|
5638
|
+
I.documentElement.innerHTML = ar ? Y : ie;
|
|
5640
5639
|
} catch {
|
|
5641
5640
|
}
|
|
5642
5641
|
}
|
|
5643
|
-
const _e =
|
|
5644
|
-
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;
|
|
5645
5644
|
}, _o = function(f) {
|
|
5646
5645
|
return le.call(
|
|
5647
5646
|
f.ownerDocument || f,
|
|
@@ -5655,13 +5654,13 @@ function Ps() {
|
|
|
5655
5654
|
}, So = function(f) {
|
|
5656
5655
|
return typeof s == "function" && f instanceof s;
|
|
5657
5656
|
};
|
|
5658
|
-
function at(R, f,
|
|
5657
|
+
function at(R, f, I) {
|
|
5659
5658
|
Bn(R, (M) => {
|
|
5660
|
-
M.call(e, f,
|
|
5659
|
+
M.call(e, f, I, Rt);
|
|
5661
5660
|
});
|
|
5662
5661
|
}
|
|
5663
5662
|
const ko = function(f) {
|
|
5664
|
-
let
|
|
5663
|
+
let I = null;
|
|
5665
5664
|
if (at(D.beforeSanitizeElements, f, null), ur(f))
|
|
5666
5665
|
return tt(f), !0;
|
|
5667
5666
|
const M = fe(f.nodeName);
|
|
@@ -5671,7 +5670,7 @@ function Ps() {
|
|
|
5671
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))
|
|
5672
5671
|
return tt(f), !0;
|
|
5673
5672
|
if (!c[M] || E[M]) {
|
|
5674
|
-
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)))
|
|
5675
5674
|
return !1;
|
|
5676
5675
|
if (ir && !$t[M]) {
|
|
5677
5676
|
const ie = N(f) || f.parentNode, _e = b(f) || f.childNodes;
|
|
@@ -5685,29 +5684,29 @@ function Ps() {
|
|
|
5685
5684
|
}
|
|
5686
5685
|
return tt(f), !0;
|
|
5687
5686
|
}
|
|
5688
|
-
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 && (
|
|
5689
|
-
|
|
5690
|
-
}), 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, {
|
|
5691
5690
|
element: f.cloneNode()
|
|
5692
|
-
}), f.textContent =
|
|
5693
|
-
}, Co = function(f,
|
|
5694
|
-
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))
|
|
5695
5694
|
return !1;
|
|
5696
|
-
if (!(
|
|
5697
|
-
if (!(
|
|
5698
|
-
if (!y[
|
|
5695
|
+
if (!(L && !S[I] && Ae(Je, I))) {
|
|
5696
|
+
if (!(C && Ae(ot, I))) {
|
|
5697
|
+
if (!y[I] || S[I]) {
|
|
5699
5698
|
if (
|
|
5700
5699
|
// First condition does a very basic check if a) it's basically a valid custom element tagname AND
|
|
5701
5700
|
// b) if the tagName passes whatever the user has configured for CUSTOM_ELEMENT_HANDLING.tagNameCheck
|
|
5702
5701
|
// and c) if the attribute name passes whatever the user has configured for CUSTOM_ELEMENT_HANDLING.attributeNameCheck
|
|
5703
|
-
!(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
|
|
5704
5703
|
// the value passes whatever the user has configured for CUSTOM_ELEMENT_HANDLING.tagNameCheck
|
|
5705
|
-
|
|
5704
|
+
I === "is" && v.allowCustomizedBuiltInElements && (v.tagNameCheck instanceof RegExp && Ae(v.tagNameCheck, M) || v.tagNameCheck instanceof Function && v.tagNameCheck(M)))
|
|
5706
5705
|
) return !1;
|
|
5707
|
-
} else if (!sr[
|
|
5706
|
+
} else if (!sr[I]) {
|
|
5708
5707
|
if (!Ae(Fe, en(M, et, ""))) {
|
|
5709
|
-
if (!((
|
|
5710
|
-
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, "")))) {
|
|
5711
5710
|
if (M)
|
|
5712
5711
|
return !1;
|
|
5713
5712
|
}
|
|
@@ -5722,9 +5721,9 @@ function Ps() {
|
|
|
5722
5721
|
}, To = function(f) {
|
|
5723
5722
|
at(D.beforeSanitizeAttributes, f, null);
|
|
5724
5723
|
const {
|
|
5725
|
-
attributes:
|
|
5724
|
+
attributes: I
|
|
5726
5725
|
} = f;
|
|
5727
|
-
if (!
|
|
5726
|
+
if (!I || ur(f))
|
|
5728
5727
|
return;
|
|
5729
5728
|
const M = {
|
|
5730
5729
|
attrName: "",
|
|
@@ -5733,9 +5732,9 @@ function Ps() {
|
|
|
5733
5732
|
allowedAttributes: y,
|
|
5734
5733
|
forceKeepAttr: void 0
|
|
5735
5734
|
};
|
|
5736
|
-
let ie =
|
|
5735
|
+
let ie = I.length;
|
|
5737
5736
|
for (; ie--; ) {
|
|
5738
|
-
const _e =
|
|
5737
|
+
const _e = I[ie], {
|
|
5739
5738
|
name: ue,
|
|
5740
5739
|
namespaceURI: Oe,
|
|
5741
5740
|
value: lt
|
|
@@ -5763,8 +5762,8 @@ function Ps() {
|
|
|
5763
5762
|
Dt(ue, f);
|
|
5764
5763
|
continue;
|
|
5765
5764
|
}
|
|
5766
|
-
if (H && typeof
|
|
5767
|
-
switch (
|
|
5765
|
+
if (H && typeof _ == "object" && typeof _.getAttributeType == "function" && !Oe)
|
|
5766
|
+
switch (_.getAttributeType(Ao, Yt)) {
|
|
5768
5767
|
case "TrustedHTML": {
|
|
5769
5768
|
Se = H.createHTML(Se);
|
|
5770
5769
|
break;
|
|
@@ -5783,14 +5782,14 @@ function Ps() {
|
|
|
5783
5782
|
}
|
|
5784
5783
|
at(D.afterSanitizeAttributes, f, null);
|
|
5785
5784
|
}, Vs = function R(f) {
|
|
5786
|
-
let
|
|
5785
|
+
let I = null;
|
|
5787
5786
|
const M = _o(f);
|
|
5788
|
-
for (at(D.beforeSanitizeShadowDOM, f, null);
|
|
5789
|
-
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);
|
|
5790
5789
|
at(D.afterSanitizeShadowDOM, f, null);
|
|
5791
5790
|
};
|
|
5792
5791
|
return e.sanitize = function(R) {
|
|
5793
|
-
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;
|
|
5794
5793
|
if (ar = !R, ar && (R = "<!-->"), typeof R != "string" && !So(R))
|
|
5795
5794
|
if (typeof R.toString == "function") {
|
|
5796
5795
|
if (R = R.toString(), typeof R != "string")
|
|
@@ -5806,48 +5805,48 @@ function Ps() {
|
|
|
5806
5805
|
throw tn("root node is forbidden and cannot be sanitized in-place");
|
|
5807
5806
|
}
|
|
5808
5807
|
} else if (R instanceof s)
|
|
5809
|
-
|
|
5808
|
+
I = wo("<!---->"), M = I.ownerDocument.importNode(R, !0), M.nodeType === rn.element && M.nodeName === "BODY" || M.nodeName === "HTML" ? I = M : I.appendChild(M);
|
|
5810
5809
|
else {
|
|
5811
|
-
if (!
|
|
5810
|
+
if (!Lt && !V && !be && // eslint-disable-next-line unicorn/prefer-includes
|
|
5812
5811
|
R.indexOf("<") === -1)
|
|
5813
|
-
return H &&
|
|
5814
|
-
if (
|
|
5815
|
-
return
|
|
5812
|
+
return H && xn ? H.createHTML(R) : R;
|
|
5813
|
+
if (I = wo(R), !I)
|
|
5814
|
+
return Lt ? null : xn ? Y : "";
|
|
5816
5815
|
}
|
|
5817
|
-
|
|
5818
|
-
const ue = _o(Gt ? R :
|
|
5816
|
+
I && it && tt(I.firstChild);
|
|
5817
|
+
const ue = _o(Gt ? R : I);
|
|
5819
5818
|
for (; ie = ue.nextNode(); )
|
|
5820
5819
|
ko(ie), To(ie), ie.content instanceof i && Vs(ie.content);
|
|
5821
5820
|
if (Gt)
|
|
5822
5821
|
return R;
|
|
5823
|
-
if (
|
|
5822
|
+
if (Lt) {
|
|
5824
5823
|
if (Pn)
|
|
5825
|
-
for (_e = Be.call(
|
|
5826
|
-
_e.appendChild(
|
|
5824
|
+
for (_e = Be.call(I.ownerDocument); I.firstChild; )
|
|
5825
|
+
_e.appendChild(I.firstChild);
|
|
5827
5826
|
else
|
|
5828
|
-
_e =
|
|
5827
|
+
_e = I;
|
|
5829
5828
|
return (y.shadowroot || y.shadowrootmode) && (_e = X.call(r, _e, !0)), _e;
|
|
5830
5829
|
}
|
|
5831
|
-
let Oe = be ?
|
|
5832
|
-
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 + `>
|
|
5833
5832
|
` + Oe), V && Bn([J, ve, ye], (lt) => {
|
|
5834
5833
|
Oe = en(Oe, lt, " ");
|
|
5835
|
-
}), H &&
|
|
5834
|
+
}), H && xn ? H.createHTML(Oe) : Oe;
|
|
5836
5835
|
}, e.setConfig = function() {
|
|
5837
5836
|
let R = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
5838
5837
|
cr(R), we = !0;
|
|
5839
5838
|
}, e.clearConfig = function() {
|
|
5840
5839
|
Rt = null, we = !1;
|
|
5841
|
-
}, e.isValidAttribute = function(R, f,
|
|
5840
|
+
}, e.isValidAttribute = function(R, f, I) {
|
|
5842
5841
|
Rt || cr({});
|
|
5843
5842
|
const M = fe(R), ie = fe(f);
|
|
5844
|
-
return Co(M, ie,
|
|
5843
|
+
return Co(M, ie, I);
|
|
5845
5844
|
}, e.addHook = function(R, f) {
|
|
5846
5845
|
typeof f == "function" && Qt(D[R], f);
|
|
5847
5846
|
}, e.removeHook = function(R, f) {
|
|
5848
5847
|
if (f !== void 0) {
|
|
5849
|
-
const
|
|
5850
|
-
return
|
|
5848
|
+
const I = hf(D[R], f);
|
|
5849
|
+
return I === -1 ? void 0 : gf(D[R], I, 1)[0];
|
|
5851
5850
|
}
|
|
5852
5851
|
return pi(D[R]);
|
|
5853
5852
|
}, e.removeHooks = function(R) {
|
|
@@ -5857,7 +5856,7 @@ function Ps() {
|
|
|
5857
5856
|
}, e;
|
|
5858
5857
|
}
|
|
5859
5858
|
var so = Ps();
|
|
5860
|
-
class
|
|
5859
|
+
class xs {
|
|
5861
5860
|
get IsVisible() {
|
|
5862
5861
|
return Pt.isVisible();
|
|
5863
5862
|
}
|
|
@@ -5883,7 +5882,7 @@ class Ls {
|
|
|
5883
5882
|
});
|
|
5884
5883
|
}
|
|
5885
5884
|
}
|
|
5886
|
-
const $f = () => new
|
|
5885
|
+
const $f = () => new xs(), Hm = () => new xs();
|
|
5887
5886
|
/*! noble-hashes - MIT License (c) 2022 Paul Miller (paulmillr.com) */
|
|
5888
5887
|
function Mf(t) {
|
|
5889
5888
|
return t instanceof Uint8Array || ArrayBuffer.isView(t) && t.constructor.name === "Uint8Array";
|
|
@@ -5921,13 +5920,13 @@ function Df(t) {
|
|
|
5921
5920
|
throw new Error("string expected");
|
|
5922
5921
|
return new Uint8Array(new TextEncoder().encode(t));
|
|
5923
5922
|
}
|
|
5924
|
-
function
|
|
5923
|
+
function Ls(t) {
|
|
5925
5924
|
return typeof t == "string" && (t = Df(t)), ao(t), t;
|
|
5926
5925
|
}
|
|
5927
5926
|
class Nf {
|
|
5928
5927
|
}
|
|
5929
5928
|
function Bf(t) {
|
|
5930
|
-
const e = (r) => t().update(
|
|
5929
|
+
const e = (r) => t().update(Ls(r)).digest(), n = t();
|
|
5931
5930
|
return e.outputLen = n.outputLen, e.blockLen = n.blockLen, e.create = () => t(), e;
|
|
5932
5931
|
}
|
|
5933
5932
|
function Uf(t, e, n, r) {
|
|
@@ -5947,7 +5946,7 @@ class Ff extends Nf {
|
|
|
5947
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);
|
|
5948
5947
|
}
|
|
5949
5948
|
update(e) {
|
|
5950
|
-
Si(this), e =
|
|
5949
|
+
Si(this), e = Ls(e), ao(e);
|
|
5951
5950
|
const { view: n, buffer: r, blockLen: o } = this, i = e.length;
|
|
5952
5951
|
for (let a = 0; a < i; ) {
|
|
5953
5952
|
const s = Math.min(o - this.pos, i - a);
|
|
@@ -6084,13 +6083,13 @@ class Kf extends Ff {
|
|
|
6084
6083
|
for (let m = 0; m < 16; m++, n += 4)
|
|
6085
6084
|
gt[m] = e.getUint32(n, !1);
|
|
6086
6085
|
for (let m = 16; m < 64; m++) {
|
|
6087
|
-
const
|
|
6088
|
-
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;
|
|
6089
6088
|
}
|
|
6090
6089
|
let { A: r, B: o, C: i, D: a, E: s, F: l, G: u, H: d } = this;
|
|
6091
6090
|
for (let m = 0; m < 64; m++) {
|
|
6092
|
-
const
|
|
6093
|
-
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;
|
|
6094
6093
|
}
|
|
6095
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);
|
|
6096
6095
|
}
|
|
@@ -6211,18 +6210,18 @@ function Os(t) {
|
|
|
6211
6210
|
var y = X(), T = X();
|
|
6212
6211
|
T.promise.then(function() {
|
|
6213
6212
|
e.onReady && e.onReady(e.authenticated), y.setSuccess(e.authenticated);
|
|
6214
|
-
}).catch(function(
|
|
6215
|
-
y.setError(
|
|
6213
|
+
}).catch(function(L) {
|
|
6214
|
+
y.setError(L);
|
|
6216
6215
|
});
|
|
6217
|
-
var
|
|
6216
|
+
var v = N();
|
|
6218
6217
|
function E() {
|
|
6219
|
-
var
|
|
6218
|
+
var L = function(V) {
|
|
6220
6219
|
V || (B.prompt = "none"), c && c.locale && (B.locale = c.locale), e.login(B).then(function() {
|
|
6221
6220
|
T.setSuccess();
|
|
6222
6221
|
}).catch(function(Te) {
|
|
6223
6222
|
T.setError(Te);
|
|
6224
6223
|
});
|
|
6225
|
-
},
|
|
6224
|
+
}, x = function() {
|
|
6226
6225
|
var V = document.createElement("iframe"), Te = e.createLoginUrl({
|
|
6227
6226
|
prompt: "none",
|
|
6228
6227
|
redirectUri: e.silentCheckSsoRedirectUri
|
|
@@ -6243,62 +6242,62 @@ function Os(t) {
|
|
|
6243
6242
|
case "check-sso":
|
|
6244
6243
|
i.enable ? J().then(function() {
|
|
6245
6244
|
ye().then(function(V) {
|
|
6246
|
-
V ? T.setSuccess() : e.silentCheckSsoRedirectUri ?
|
|
6245
|
+
V ? T.setSuccess() : e.silentCheckSsoRedirectUri ? x() : L(!1);
|
|
6247
6246
|
}).catch(function(V) {
|
|
6248
6247
|
T.setError(V);
|
|
6249
6248
|
});
|
|
6250
|
-
}) : e.silentCheckSsoRedirectUri ?
|
|
6249
|
+
}) : e.silentCheckSsoRedirectUri ? x() : L(!1);
|
|
6251
6250
|
break;
|
|
6252
6251
|
case "login-required":
|
|
6253
|
-
|
|
6252
|
+
L(!0);
|
|
6254
6253
|
break;
|
|
6255
6254
|
default:
|
|
6256
6255
|
throw "Invalid value for onLoad";
|
|
6257
6256
|
}
|
|
6258
6257
|
}
|
|
6259
|
-
function
|
|
6260
|
-
var
|
|
6261
|
-
if (
|
|
6258
|
+
function S() {
|
|
6259
|
+
var L = le(window.location.href);
|
|
6260
|
+
if (L && window.history.replaceState(
|
|
6262
6261
|
window.history.state,
|
|
6263
6262
|
null,
|
|
6264
|
-
|
|
6265
|
-
),
|
|
6263
|
+
L.newUrl
|
|
6264
|
+
), L && L.valid)
|
|
6266
6265
|
return J().then(function() {
|
|
6267
|
-
b(
|
|
6268
|
-
}).catch(function(
|
|
6269
|
-
T.setError(
|
|
6266
|
+
b(L, T);
|
|
6267
|
+
}).catch(function(x) {
|
|
6268
|
+
T.setError(x);
|
|
6270
6269
|
});
|
|
6271
6270
|
c ? c.token && c.refreshToken ? (Y(
|
|
6272
6271
|
c.token,
|
|
6273
6272
|
c.refreshToken,
|
|
6274
6273
|
c.idToken
|
|
6275
6274
|
), i.enable ? J().then(function() {
|
|
6276
|
-
ye().then(function(
|
|
6277
|
-
|
|
6278
|
-
}).catch(function(
|
|
6279
|
-
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);
|
|
6280
6279
|
});
|
|
6281
6280
|
}) : e.updateToken(-1).then(function() {
|
|
6282
6281
|
e.onAuthSuccess && e.onAuthSuccess(), T.setSuccess();
|
|
6283
|
-
}).catch(function(
|
|
6284
|
-
e.onAuthError && e.onAuthError(), c.onLoad ? E() : T.setError(
|
|
6282
|
+
}).catch(function(x) {
|
|
6283
|
+
e.onAuthError && e.onAuthError(), c.onLoad ? E() : T.setError(x);
|
|
6285
6284
|
})) : c.onLoad ? E() : T.setSuccess() : T.setSuccess();
|
|
6286
6285
|
}
|
|
6287
|
-
function
|
|
6288
|
-
var
|
|
6286
|
+
function C() {
|
|
6287
|
+
var L = X(), x = function() {
|
|
6289
6288
|
(document.readyState === "interactive" || document.readyState === "complete") && (document.removeEventListener(
|
|
6290
6289
|
"readystatechange",
|
|
6291
|
-
|
|
6292
|
-
),
|
|
6290
|
+
x
|
|
6291
|
+
), L.setSuccess());
|
|
6293
6292
|
};
|
|
6294
|
-
return document.addEventListener("readystatechange",
|
|
6293
|
+
return document.addEventListener("readystatechange", x), x(), L.promise;
|
|
6295
6294
|
}
|
|
6296
|
-
return
|
|
6297
|
-
|
|
6298
|
-
y.setError(
|
|
6295
|
+
return v.then(function() {
|
|
6296
|
+
C().then(Je).then(S).catch(function(L) {
|
|
6297
|
+
y.setError(L);
|
|
6299
6298
|
});
|
|
6300
|
-
}),
|
|
6301
|
-
y.setError(
|
|
6299
|
+
}), v.catch(function(L) {
|
|
6300
|
+
y.setError(L);
|
|
6302
6301
|
}), y.promise;
|
|
6303
6302
|
}, e.login = function(c) {
|
|
6304
6303
|
return n.login(c);
|
|
@@ -6312,18 +6311,18 @@ function Os(t) {
|
|
|
6312
6311
|
p[T] = Math.floor(256 * Math.random());
|
|
6313
6312
|
return p;
|
|
6314
6313
|
}
|
|
6315
|
-
function
|
|
6316
|
-
return
|
|
6314
|
+
function g(c) {
|
|
6315
|
+
return _(
|
|
6317
6316
|
c,
|
|
6318
6317
|
"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789"
|
|
6319
6318
|
);
|
|
6320
6319
|
}
|
|
6321
|
-
function
|
|
6322
|
-
for (var y = m(c), T = new Array(c),
|
|
6323
|
-
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);
|
|
6324
6323
|
return String.fromCharCode.apply(null, T);
|
|
6325
6324
|
}
|
|
6326
|
-
function
|
|
6325
|
+
function k(c, p) {
|
|
6327
6326
|
if (c !== "S256")
|
|
6328
6327
|
throw new TypeError(
|
|
6329
6328
|
`Invalid value for 'pkceMethod', expected 'S256' but got '${c}'.`
|
|
@@ -6340,32 +6339,32 @@ function Os(t) {
|
|
|
6340
6339
|
return JSON.stringify(p);
|
|
6341
6340
|
}
|
|
6342
6341
|
e.createLoginUrl = function(c) {
|
|
6343
|
-
var p = ge(), y = ge(), T = n.redirectUri(c),
|
|
6342
|
+
var p = ge(), y = ge(), T = n.redirectUri(c), v = {
|
|
6344
6343
|
state: p,
|
|
6345
6344
|
nonce: y,
|
|
6346
6345
|
redirectUri: encodeURIComponent(T),
|
|
6347
6346
|
loginOptions: c
|
|
6348
6347
|
};
|
|
6349
|
-
c && c.prompt && (
|
|
6348
|
+
c && c.prompt && (v.prompt = c.prompt);
|
|
6350
6349
|
var E;
|
|
6351
6350
|
c && c.action == "register" ? E = e.endpoints.register() : E = e.endpoints.authorize();
|
|
6352
|
-
var
|
|
6353
|
-
|
|
6354
|
-
var
|
|
6355
|
-
if (l && (
|
|
6356
|
-
var
|
|
6357
|
-
|
|
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);
|
|
6358
6357
|
}
|
|
6359
|
-
if ((c && c.acrValues || e.acrValues) && (
|
|
6360
|
-
var
|
|
6361
|
-
|
|
6362
|
-
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(
|
|
6363
6362
|
e.pkceMethod,
|
|
6364
|
-
|
|
6363
|
+
x
|
|
6365
6364
|
);
|
|
6366
|
-
|
|
6365
|
+
C += "&code_challenge=" + B, C += "&code_challenge_method=" + e.pkceMethod;
|
|
6367
6366
|
}
|
|
6368
|
-
return o.add(
|
|
6367
|
+
return o.add(v), C;
|
|
6369
6368
|
}, e.logout = function(c) {
|
|
6370
6369
|
return n.logout(c);
|
|
6371
6370
|
}, e.createLogoutUrl = function(c) {
|
|
@@ -6424,37 +6423,37 @@ function Os(t) {
|
|
|
6424
6423
|
return p.setError(), p.promise;
|
|
6425
6424
|
c = c || 5;
|
|
6426
6425
|
var y = function() {
|
|
6427
|
-
var
|
|
6428
|
-
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)
|
|
6429
6428
|
p.setSuccess(!1);
|
|
6430
6429
|
else {
|
|
6431
|
-
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();
|
|
6432
6431
|
if (r.push(p), r.length == 1) {
|
|
6433
|
-
var
|
|
6434
|
-
|
|
6432
|
+
var C = new XMLHttpRequest();
|
|
6433
|
+
C.open("POST", S, !0), C.setRequestHeader(
|
|
6435
6434
|
"Content-type",
|
|
6436
6435
|
"application/x-www-form-urlencoded"
|
|
6437
|
-
),
|
|
6438
|
-
var
|
|
6439
|
-
|
|
6440
|
-
if (
|
|
6441
|
-
if (
|
|
6442
|
-
u("[KEYCLOAK] Token refreshed"),
|
|
6443
|
-
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);
|
|
6444
6443
|
Y(
|
|
6445
|
-
|
|
6446
|
-
|
|
6447
|
-
|
|
6448
|
-
|
|
6444
|
+
x.access_token,
|
|
6445
|
+
x.refresh_token,
|
|
6446
|
+
x.id_token,
|
|
6447
|
+
L
|
|
6449
6448
|
), e.onAuthRefreshSuccess && e.onAuthRefreshSuccess();
|
|
6450
6449
|
for (var B = r.pop(); B != null; B = r.pop())
|
|
6451
6450
|
B.setSuccess(!0);
|
|
6452
6451
|
} else {
|
|
6453
|
-
d("[KEYCLOAK] Failed to refresh token"),
|
|
6452
|
+
d("[KEYCLOAK] Failed to refresh token"), C.status == 400 && e.clearToken(), e.onAuthRefreshError && e.onAuthRefreshError();
|
|
6454
6453
|
for (var B = r.pop(); B != null; B = r.pop())
|
|
6455
6454
|
B.setError(!0);
|
|
6456
6455
|
}
|
|
6457
|
-
},
|
|
6456
|
+
}, C.send(E);
|
|
6458
6457
|
}
|
|
6459
6458
|
}
|
|
6460
6459
|
};
|
|
@@ -6462,8 +6461,8 @@ function Os(t) {
|
|
|
6462
6461
|
var T = ye();
|
|
6463
6462
|
T.then(function() {
|
|
6464
6463
|
y();
|
|
6465
|
-
}).catch(function(
|
|
6466
|
-
p.setError(
|
|
6464
|
+
}).catch(function(v) {
|
|
6465
|
+
p.setError(v);
|
|
6467
6466
|
});
|
|
6468
6467
|
} else
|
|
6469
6468
|
y();
|
|
@@ -6479,34 +6478,34 @@ function Os(t) {
|
|
|
6479
6478
|
return window.location.origin ? window.location.origin : window.location.protocol + "//" + window.location.hostname + (window.location.port ? ":" + window.location.port : "");
|
|
6480
6479
|
}
|
|
6481
6480
|
function b(c, p) {
|
|
6482
|
-
var y = c.code, T = c.error,
|
|
6481
|
+
var y = c.code, T = c.error, v = c.prompt, E = (/* @__PURE__ */ new Date()).getTime();
|
|
6483
6482
|
if (c.kc_action_status && e.onActionUpdate && e.onActionUpdate(
|
|
6484
6483
|
c.kc_action_status,
|
|
6485
6484
|
c.kc_action
|
|
6486
6485
|
), T) {
|
|
6487
|
-
if (
|
|
6486
|
+
if (v != "none")
|
|
6488
6487
|
if (c.error_description && c.error_description === "authentication_expired")
|
|
6489
6488
|
e.login(c.loginOptions);
|
|
6490
6489
|
else {
|
|
6491
|
-
var
|
|
6490
|
+
var S = {
|
|
6492
6491
|
error: T,
|
|
6493
6492
|
error_description: c.error_description
|
|
6494
6493
|
};
|
|
6495
|
-
e.onAuthError && e.onAuthError(
|
|
6494
|
+
e.onAuthError && e.onAuthError(S), p && p.setError(S);
|
|
6496
6495
|
}
|
|
6497
6496
|
else
|
|
6498
6497
|
p && p.setSuccess();
|
|
6499
6498
|
return;
|
|
6500
6499
|
} else e.flow != "standard" && (c.access_token || c.id_token) && B(c.access_token, null, c.id_token, !0);
|
|
6501
6500
|
if (e.flow != "implicit" && y) {
|
|
6502
|
-
var
|
|
6503
|
-
|
|
6501
|
+
var C = "code=" + y + "&grant_type=authorization_code", L = e.endpoints.token(), x = new XMLHttpRequest();
|
|
6502
|
+
x.open("POST", L, !0), x.setRequestHeader(
|
|
6504
6503
|
"Content-type",
|
|
6505
6504
|
"application/x-www-form-urlencoded"
|
|
6506
|
-
),
|
|
6507
|
-
if (
|
|
6508
|
-
if (
|
|
6509
|
-
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);
|
|
6510
6509
|
B(
|
|
6511
6510
|
V.access_token,
|
|
6512
6511
|
V.refresh_token,
|
|
@@ -6515,7 +6514,7 @@ function Os(t) {
|
|
|
6515
6514
|
), ve();
|
|
6516
6515
|
} else
|
|
6517
6516
|
e.onAuthError && e.onAuthError(), p && p.setError();
|
|
6518
|
-
},
|
|
6517
|
+
}, x.send(C);
|
|
6519
6518
|
}
|
|
6520
6519
|
function B(V, Te, be, we) {
|
|
6521
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());
|
|
@@ -6524,31 +6523,31 @@ function Os(t) {
|
|
|
6524
6523
|
function N(c) {
|
|
6525
6524
|
var p = X(), y;
|
|
6526
6525
|
t ? typeof t == "string" && (y = t) : y = "keycloak.json";
|
|
6527
|
-
function T(
|
|
6528
|
-
|
|
6526
|
+
function T(x) {
|
|
6527
|
+
x ? e.endpoints = {
|
|
6529
6528
|
authorize: function() {
|
|
6530
|
-
return
|
|
6529
|
+
return x.authorization_endpoint;
|
|
6531
6530
|
},
|
|
6532
6531
|
token: function() {
|
|
6533
|
-
return
|
|
6532
|
+
return x.token_endpoint;
|
|
6534
6533
|
},
|
|
6535
6534
|
logout: function() {
|
|
6536
|
-
if (!
|
|
6535
|
+
if (!x.end_session_endpoint)
|
|
6537
6536
|
throw "Not supported by the OIDC server";
|
|
6538
|
-
return
|
|
6537
|
+
return x.end_session_endpoint;
|
|
6539
6538
|
},
|
|
6540
6539
|
checkSessionIframe: function() {
|
|
6541
|
-
if (!
|
|
6540
|
+
if (!x.check_session_iframe)
|
|
6542
6541
|
throw "Not supported by the OIDC server";
|
|
6543
|
-
return
|
|
6542
|
+
return x.check_session_iframe;
|
|
6544
6543
|
},
|
|
6545
6544
|
register: function() {
|
|
6546
6545
|
throw 'Redirection to "Register user" page not supported in standard OIDC mode';
|
|
6547
6546
|
},
|
|
6548
6547
|
userinfo: function() {
|
|
6549
|
-
if (!
|
|
6548
|
+
if (!x.userinfo_endpoint)
|
|
6550
6549
|
throw "Not supported by the OIDC server";
|
|
6551
|
-
return
|
|
6550
|
+
return x.userinfo_endpoint;
|
|
6552
6551
|
}
|
|
6553
6552
|
} : e.endpoints = {
|
|
6554
6553
|
authorize: function() {
|
|
@@ -6577,15 +6576,15 @@ function Os(t) {
|
|
|
6577
6576
|
};
|
|
6578
6577
|
}
|
|
6579
6578
|
if (y) {
|
|
6580
|
-
var
|
|
6581
|
-
|
|
6582
|
-
if (
|
|
6583
|
-
if (
|
|
6584
|
-
var
|
|
6585
|
-
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();
|
|
6586
6585
|
} else
|
|
6587
6586
|
p.setError();
|
|
6588
|
-
},
|
|
6587
|
+
}, v.send();
|
|
6589
6588
|
} else {
|
|
6590
6589
|
if (!t.clientId)
|
|
6591
6590
|
throw "clientId missing";
|
|
@@ -6593,26 +6592,26 @@ function Os(t) {
|
|
|
6593
6592
|
var E = t.oidcProvider;
|
|
6594
6593
|
if (E)
|
|
6595
6594
|
if (typeof E == "string") {
|
|
6596
|
-
var
|
|
6597
|
-
E.charAt(E.length - 1) == "/" ?
|
|
6598
|
-
var
|
|
6599
|
-
|
|
6600
|
-
if (
|
|
6601
|
-
if (
|
|
6602
|
-
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);
|
|
6603
6602
|
T(B), p.setSuccess();
|
|
6604
6603
|
} else
|
|
6605
6604
|
p.setError();
|
|
6606
|
-
},
|
|
6605
|
+
}, v.send();
|
|
6607
6606
|
} else
|
|
6608
6607
|
T(E), p.setSuccess();
|
|
6609
6608
|
else {
|
|
6610
6609
|
if (!t.url) {
|
|
6611
|
-
for (var
|
|
6612
|
-
if (
|
|
6613
|
-
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(
|
|
6614
6613
|
0,
|
|
6615
|
-
|
|
6614
|
+
S[C].src.indexOf("/js/keycloak.js")
|
|
6616
6615
|
);
|
|
6617
6616
|
break;
|
|
6618
6617
|
}
|
|
@@ -6632,19 +6631,19 @@ function Os(t) {
|
|
|
6632
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(
|
|
6633
6632
|
"[KEYCLOAK] Estimated time difference between browser and server is " + e.timeSkew + " seconds"
|
|
6634
6633
|
), e.onTokenExpired)) {
|
|
6635
|
-
var
|
|
6634
|
+
var v = (e.tokenParsed.exp - (/* @__PURE__ */ new Date()).getTime() / 1e3 + e.timeSkew) * 1e3;
|
|
6636
6635
|
u(
|
|
6637
|
-
"[KEYCLOAK] Token expires in " + Math.round(
|
|
6638
|
-
),
|
|
6636
|
+
"[KEYCLOAK] Token expires in " + Math.round(v / 1e3) + " s"
|
|
6637
|
+
), v <= 0 ? e.onTokenExpired() : e.tokenTimeoutHandle = setTimeout(
|
|
6639
6638
|
e.onTokenExpired,
|
|
6640
|
-
|
|
6639
|
+
v
|
|
6641
6640
|
);
|
|
6642
6641
|
}
|
|
6643
6642
|
} else
|
|
6644
6643
|
delete e.token, delete e.tokenParsed, delete e.subject, delete e.realmAccess, delete e.resourceAccess, e.authenticated = !1;
|
|
6645
6644
|
}
|
|
6646
6645
|
function ge() {
|
|
6647
|
-
var c = "0123456789abcdef", p =
|
|
6646
|
+
var c = "0123456789abcdef", p = _(36, c).split("");
|
|
6648
6647
|
p[14] = "4", p[19] = c.substr(p[19] & 3 | 8, 1), p[8] = p[13] = p[18] = p[23] = "-";
|
|
6649
6648
|
var y = p.join("");
|
|
6650
6649
|
return y;
|
|
@@ -6698,31 +6697,31 @@ function Os(t) {
|
|
|
6698
6697
|
break;
|
|
6699
6698
|
}
|
|
6700
6699
|
p.push("error"), p.push("error_description"), p.push("error_uri");
|
|
6701
|
-
var y = c.indexOf("?"), T = c.indexOf("#"),
|
|
6702
|
-
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(
|
|
6703
6702
|
c.substring(
|
|
6704
6703
|
y + 1,
|
|
6705
6704
|
T !== -1 ? T : c.length
|
|
6706
6705
|
),
|
|
6707
6706
|
p
|
|
6708
|
-
), 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(
|
|
6709
6708
|
c.substring(T + 1),
|
|
6710
6709
|
p
|
|
6711
|
-
), E.paramsString !== "" && (
|
|
6710
|
+
), E.paramsString !== "" && (v += "#" + E.paramsString)), E && E.oauthParams) {
|
|
6712
6711
|
if (e.flow === "standard" || e.flow === "hybrid") {
|
|
6713
6712
|
if ((E.oauthParams.code || E.oauthParams.error) && E.oauthParams.state)
|
|
6714
|
-
return E.oauthParams.newUrl =
|
|
6713
|
+
return E.oauthParams.newUrl = v, E.oauthParams;
|
|
6715
6714
|
} else if (e.flow === "implicit" && (E.oauthParams.access_token || E.oauthParams.error) && E.oauthParams.state)
|
|
6716
|
-
return E.oauthParams.newUrl =
|
|
6715
|
+
return E.oauthParams.newUrl = v, E.oauthParams;
|
|
6717
6716
|
}
|
|
6718
6717
|
}
|
|
6719
6718
|
function ce(c, p) {
|
|
6720
6719
|
for (var y = c.split("&"), T = {
|
|
6721
6720
|
paramsString: "",
|
|
6722
6721
|
oauthParams: {}
|
|
6723
|
-
},
|
|
6724
|
-
var E = y[
|
|
6725
|
-
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]);
|
|
6726
6725
|
}
|
|
6727
6726
|
return T;
|
|
6728
6727
|
}
|
|
@@ -6740,14 +6739,14 @@ function Os(t) {
|
|
|
6740
6739
|
}), c;
|
|
6741
6740
|
}
|
|
6742
6741
|
function D(c, p, y) {
|
|
6743
|
-
var T = null,
|
|
6742
|
+
var T = null, v = new Promise(function(E, S) {
|
|
6744
6743
|
T = setTimeout(function() {
|
|
6745
|
-
|
|
6744
|
+
S({
|
|
6746
6745
|
error: y
|
|
6747
6746
|
});
|
|
6748
6747
|
}, p);
|
|
6749
6748
|
});
|
|
6750
|
-
return Promise.race([c,
|
|
6749
|
+
return Promise.race([c, v]).finally(
|
|
6751
6750
|
function() {
|
|
6752
6751
|
clearTimeout(T);
|
|
6753
6752
|
}
|
|
@@ -6759,10 +6758,10 @@ function Os(t) {
|
|
|
6759
6758
|
return c.setSuccess(), c.promise;
|
|
6760
6759
|
var p = document.createElement("iframe");
|
|
6761
6760
|
i.iframe = p, p.onload = function() {
|
|
6762
|
-
var
|
|
6763
|
-
|
|
6761
|
+
var v = e.endpoints.authorize();
|
|
6762
|
+
v.charAt(0) === "/" ? i.iframeOrigin = w() : i.iframeOrigin = v.substring(
|
|
6764
6763
|
0,
|
|
6765
|
-
|
|
6764
|
+
v.indexOf("/", 8)
|
|
6766
6765
|
), c.setSuccess();
|
|
6767
6766
|
};
|
|
6768
6767
|
var y = e.endpoints.checkSessionIframe();
|
|
@@ -6770,15 +6769,15 @@ function Os(t) {
|
|
|
6770
6769
|
"sandbox",
|
|
6771
6770
|
"allow-storage-access-by-user-activation allow-scripts allow-same-origin"
|
|
6772
6771
|
), p.setAttribute("title", "keycloak-session-iframe"), p.style.display = "none", document.body.appendChild(p);
|
|
6773
|
-
var T = function(
|
|
6774
|
-
if (!(
|
|
6775
|
-
|
|
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();
|
|
6776
6775
|
for (var E = i.callbackList.splice(
|
|
6777
6776
|
0,
|
|
6778
6777
|
i.callbackList.length
|
|
6779
|
-
),
|
|
6780
|
-
var
|
|
6781
|
-
|
|
6778
|
+
), S = E.length - 1; S >= 0; --S) {
|
|
6779
|
+
var C = E[S];
|
|
6780
|
+
v.data == "error" ? C.setError() : C.setSuccess(v.data == "unchanged");
|
|
6782
6781
|
}
|
|
6783
6782
|
}
|
|
6784
6783
|
};
|
|
@@ -6835,15 +6834,15 @@ For more information see: https://www.keycloak.org/docs/latest/securing_apps/#_m
|
|
|
6835
6834
|
function ot(c) {
|
|
6836
6835
|
if (!c || c == "default")
|
|
6837
6836
|
return {
|
|
6838
|
-
login: function(
|
|
6839
|
-
return window.location.assign(e.createLoginUrl(
|
|
6837
|
+
login: function(S) {
|
|
6838
|
+
return window.location.assign(e.createLoginUrl(S)), X().promise;
|
|
6840
6839
|
},
|
|
6841
|
-
logout: async function(
|
|
6842
|
-
if (((
|
|
6843
|
-
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));
|
|
6844
6843
|
return;
|
|
6845
6844
|
}
|
|
6846
|
-
const
|
|
6845
|
+
const L = e.createLogoutUrl(S), x = await fetch(L, {
|
|
6847
6846
|
method: "POST",
|
|
6848
6847
|
headers: {
|
|
6849
6848
|
"Content-Type": "application/x-www-form-urlencoded"
|
|
@@ -6852,16 +6851,16 @@ For more information see: https://www.keycloak.org/docs/latest/securing_apps/#_m
|
|
|
6852
6851
|
id_token_hint: e.idToken,
|
|
6853
6852
|
client_id: e.clientId,
|
|
6854
6853
|
post_logout_redirect_uri: n.redirectUri(
|
|
6855
|
-
|
|
6854
|
+
S,
|
|
6856
6855
|
!1
|
|
6857
6856
|
)
|
|
6858
6857
|
})
|
|
6859
6858
|
});
|
|
6860
|
-
if (
|
|
6861
|
-
window.location.href =
|
|
6859
|
+
if (x.redirected) {
|
|
6860
|
+
window.location.href = x.url;
|
|
6862
6861
|
return;
|
|
6863
6862
|
}
|
|
6864
|
-
if (
|
|
6863
|
+
if (x.ok) {
|
|
6865
6864
|
window.location.reload();
|
|
6866
6865
|
return;
|
|
6867
6866
|
}
|
|
@@ -6869,155 +6868,155 @@ For more information see: https://www.keycloak.org/docs/latest/securing_apps/#_m
|
|
|
6869
6868
|
"Logout failed, request returned an error code."
|
|
6870
6869
|
);
|
|
6871
6870
|
},
|
|
6872
|
-
register: function(
|
|
6873
|
-
return window.location.assign(e.createRegisterUrl(
|
|
6871
|
+
register: function(S) {
|
|
6872
|
+
return window.location.assign(e.createRegisterUrl(S)), X().promise;
|
|
6874
6873
|
},
|
|
6875
6874
|
accountManagement: function() {
|
|
6876
|
-
var
|
|
6877
|
-
if (typeof
|
|
6878
|
-
window.location.href =
|
|
6875
|
+
var S = e.createAccountUrl();
|
|
6876
|
+
if (typeof S < "u")
|
|
6877
|
+
window.location.href = S;
|
|
6879
6878
|
else
|
|
6880
6879
|
throw "Not supported by the OIDC server";
|
|
6881
6880
|
return X().promise;
|
|
6882
6881
|
},
|
|
6883
|
-
redirectUri: function(
|
|
6884
|
-
return
|
|
6882
|
+
redirectUri: function(S, C) {
|
|
6883
|
+
return S && S.redirectUri ? S.redirectUri : e.redirectUri ? e.redirectUri : location.href;
|
|
6885
6884
|
}
|
|
6886
6885
|
};
|
|
6887
6886
|
if (c == "cordova") {
|
|
6888
6887
|
i.enable = !1;
|
|
6889
|
-
var p = function(
|
|
6888
|
+
var p = function(S, C, L) {
|
|
6890
6889
|
return window.cordova && window.cordova.InAppBrowser ? window.cordova.InAppBrowser.open(
|
|
6891
|
-
|
|
6892
|
-
|
|
6893
|
-
|
|
6894
|
-
) : window.open(
|
|
6895
|
-
}, y = function(
|
|
6896
|
-
return
|
|
6897
|
-
function(
|
|
6898
|
-
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;
|
|
6899
6898
|
},
|
|
6900
6899
|
{}
|
|
6901
6900
|
) : {};
|
|
6902
|
-
}, T = function(
|
|
6903
|
-
return Object.keys(
|
|
6904
|
-
return
|
|
6905
|
-
|
|
6906
|
-
),
|
|
6901
|
+
}, T = function(S) {
|
|
6902
|
+
return Object.keys(S).reduce(function(C, L) {
|
|
6903
|
+
return C.push(
|
|
6904
|
+
L + "=" + S[L]
|
|
6905
|
+
), C;
|
|
6907
6906
|
}, []).join(",");
|
|
6908
|
-
},
|
|
6909
|
-
var
|
|
6910
|
-
return
|
|
6907
|
+
}, v = function(S) {
|
|
6908
|
+
var C = y(S);
|
|
6909
|
+
return C.location = "no", S && S.prompt == "none" && (C.hidden = "yes"), T(C);
|
|
6911
6910
|
}, E = function() {
|
|
6912
6911
|
return e.redirectUri || "http://localhost";
|
|
6913
6912
|
};
|
|
6914
6913
|
return {
|
|
6915
|
-
login: function(
|
|
6916
|
-
var
|
|
6917
|
-
|
|
6914
|
+
login: function(S) {
|
|
6915
|
+
var C = X(), L = v(S), x = e.createLoginUrl(S), B = p(
|
|
6916
|
+
x,
|
|
6918
6917
|
"_blank",
|
|
6919
|
-
|
|
6918
|
+
L
|
|
6920
6919
|
), V = !1, Te = !1, be = function() {
|
|
6921
6920
|
Te = !0, B.close();
|
|
6922
6921
|
};
|
|
6923
6922
|
return B.addEventListener("loadstart", function(we) {
|
|
6924
6923
|
if (we.url.indexOf(E()) == 0) {
|
|
6925
6924
|
var it = le(we.url);
|
|
6926
|
-
b(it,
|
|
6925
|
+
b(it, C), be(), V = !0;
|
|
6927
6926
|
}
|
|
6928
6927
|
}), B.addEventListener("loaderror", function(we) {
|
|
6929
6928
|
if (!V)
|
|
6930
6929
|
if (we.url.indexOf(E()) == 0) {
|
|
6931
6930
|
var it = le(we.url);
|
|
6932
|
-
b(it,
|
|
6931
|
+
b(it, C), be(), V = !0;
|
|
6933
6932
|
} else
|
|
6934
|
-
|
|
6933
|
+
C.setError(), be();
|
|
6935
6934
|
}), B.addEventListener("exit", function(we) {
|
|
6936
|
-
Te ||
|
|
6935
|
+
Te || C.setError({
|
|
6937
6936
|
reason: "closed_by_user"
|
|
6938
6937
|
});
|
|
6939
|
-
}),
|
|
6938
|
+
}), C.promise;
|
|
6940
6939
|
},
|
|
6941
|
-
logout: function(
|
|
6942
|
-
var
|
|
6943
|
-
|
|
6940
|
+
logout: function(S) {
|
|
6941
|
+
var C = X(), L = e.createLogoutUrl(S), x = p(
|
|
6942
|
+
L,
|
|
6944
6943
|
"_blank",
|
|
6945
6944
|
"location=no,hidden=yes,clearcache=yes"
|
|
6946
6945
|
), B;
|
|
6947
|
-
return
|
|
6948
|
-
V.url.indexOf(E()) == 0 &&
|
|
6949
|
-
}),
|
|
6950
|
-
V.url.indexOf(E()) == 0 || (B = !0),
|
|
6951
|
-
}),
|
|
6952
|
-
B ?
|
|
6953
|
-
}),
|
|
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;
|
|
6954
6953
|
},
|
|
6955
|
-
register: function(
|
|
6956
|
-
var
|
|
6957
|
-
|
|
6954
|
+
register: function(S) {
|
|
6955
|
+
var C = X(), L = e.createRegisterUrl(), x = v(S), B = p(
|
|
6956
|
+
L,
|
|
6958
6957
|
"_blank",
|
|
6959
|
-
|
|
6958
|
+
x
|
|
6960
6959
|
);
|
|
6961
6960
|
return B.addEventListener("loadstart", function(V) {
|
|
6962
6961
|
if (V.url.indexOf(E()) == 0) {
|
|
6963
6962
|
B.close();
|
|
6964
6963
|
var Te = le(V.url);
|
|
6965
|
-
b(Te,
|
|
6964
|
+
b(Te, C);
|
|
6966
6965
|
}
|
|
6967
|
-
}),
|
|
6966
|
+
}), C.promise;
|
|
6968
6967
|
},
|
|
6969
6968
|
accountManagement: function() {
|
|
6970
|
-
var
|
|
6971
|
-
if (typeof
|
|
6972
|
-
var
|
|
6973
|
-
|
|
6969
|
+
var S = e.createAccountUrl();
|
|
6970
|
+
if (typeof S < "u") {
|
|
6971
|
+
var C = p(
|
|
6972
|
+
S,
|
|
6974
6973
|
"_blank",
|
|
6975
6974
|
"location=no"
|
|
6976
6975
|
);
|
|
6977
|
-
|
|
6978
|
-
|
|
6976
|
+
C.addEventListener("loadstart", function(L) {
|
|
6977
|
+
L.url.indexOf(E()) == 0 && C.close();
|
|
6979
6978
|
});
|
|
6980
6979
|
} else
|
|
6981
6980
|
throw "Not supported by the OIDC server";
|
|
6982
6981
|
},
|
|
6983
|
-
redirectUri: function(
|
|
6982
|
+
redirectUri: function(S) {
|
|
6984
6983
|
return E();
|
|
6985
6984
|
}
|
|
6986
6985
|
};
|
|
6987
6986
|
}
|
|
6988
6987
|
if (c == "cordova-native")
|
|
6989
6988
|
return i.enable = !1, {
|
|
6990
|
-
login: function(
|
|
6991
|
-
var
|
|
6992
|
-
return universalLinks.subscribe("keycloak", function(
|
|
6989
|
+
login: function(S) {
|
|
6990
|
+
var C = X(), L = e.createLoginUrl(S);
|
|
6991
|
+
return universalLinks.subscribe("keycloak", function(x) {
|
|
6993
6992
|
universalLinks.unsubscribe("keycloak"), window.cordova.plugins.browsertab.close();
|
|
6994
|
-
var B = le(
|
|
6995
|
-
b(B,
|
|
6996
|
-
}), window.cordova.plugins.browsertab.openUrl(
|
|
6993
|
+
var B = le(x.url);
|
|
6994
|
+
b(B, C);
|
|
6995
|
+
}), window.cordova.plugins.browsertab.openUrl(L), C.promise;
|
|
6997
6996
|
},
|
|
6998
|
-
logout: function(
|
|
6999
|
-
var
|
|
7000
|
-
return universalLinks.subscribe("keycloak", function(
|
|
7001
|
-
universalLinks.unsubscribe("keycloak"), window.cordova.plugins.browsertab.close(), e.clearToken(),
|
|
7002
|
-
}), 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;
|
|
7003
7002
|
},
|
|
7004
|
-
register: function(
|
|
7005
|
-
var
|
|
7006
|
-
return universalLinks.subscribe("keycloak", function(
|
|
7003
|
+
register: function(S) {
|
|
7004
|
+
var C = X(), L = e.createRegisterUrl(S);
|
|
7005
|
+
return universalLinks.subscribe("keycloak", function(x) {
|
|
7007
7006
|
universalLinks.unsubscribe("keycloak"), window.cordova.plugins.browsertab.close();
|
|
7008
|
-
var B = le(
|
|
7009
|
-
b(B,
|
|
7010
|
-
}), window.cordova.plugins.browsertab.openUrl(
|
|
7007
|
+
var B = le(x.url);
|
|
7008
|
+
b(B, C);
|
|
7009
|
+
}), window.cordova.plugins.browsertab.openUrl(L), C.promise;
|
|
7011
7010
|
},
|
|
7012
7011
|
accountManagement: function() {
|
|
7013
|
-
var
|
|
7014
|
-
if (typeof
|
|
7015
|
-
window.cordova.plugins.browsertab.openUrl(
|
|
7012
|
+
var S = e.createAccountUrl();
|
|
7013
|
+
if (typeof S < "u")
|
|
7014
|
+
window.cordova.plugins.browsertab.openUrl(S);
|
|
7016
7015
|
else
|
|
7017
7016
|
throw "Not supported by the OIDC server";
|
|
7018
7017
|
},
|
|
7019
|
-
redirectUri: function(
|
|
7020
|
-
return
|
|
7018
|
+
redirectUri: function(S) {
|
|
7019
|
+
return S && S.redirectUri ? S.redirectUri : e.redirectUri ? e.redirectUri : "http://localhost";
|
|
7021
7020
|
}
|
|
7022
7021
|
};
|
|
7023
7022
|
throw "invalid adapter type: " + c;
|
|
@@ -7029,23 +7028,23 @@ For more information see: https://www.keycloak.org/docs/latest/securing_apps/#_m
|
|
|
7029
7028
|
var c = this;
|
|
7030
7029
|
function p() {
|
|
7031
7030
|
for (var y = (/* @__PURE__ */ new Date()).getTime(), T = 0; T < localStorage.length; T++) {
|
|
7032
|
-
var
|
|
7033
|
-
if (
|
|
7034
|
-
var E = localStorage.getItem(
|
|
7031
|
+
var v = localStorage.key(T);
|
|
7032
|
+
if (v && v.indexOf("kc-callback-") == 0) {
|
|
7033
|
+
var E = localStorage.getItem(v);
|
|
7035
7034
|
if (E)
|
|
7036
7035
|
try {
|
|
7037
|
-
var
|
|
7038
|
-
(!
|
|
7036
|
+
var S = JSON.parse(E).expires;
|
|
7037
|
+
(!S || S < y) && localStorage.removeItem(v);
|
|
7039
7038
|
} catch {
|
|
7040
|
-
localStorage.removeItem(
|
|
7039
|
+
localStorage.removeItem(v);
|
|
7041
7040
|
}
|
|
7042
7041
|
}
|
|
7043
7042
|
}
|
|
7044
7043
|
}
|
|
7045
7044
|
c.get = function(y) {
|
|
7046
7045
|
if (y) {
|
|
7047
|
-
var T = "kc-callback-" + y,
|
|
7048
|
-
return
|
|
7046
|
+
var T = "kc-callback-" + y, v = localStorage.getItem(T);
|
|
7047
|
+
return v && (localStorage.removeItem(T), v = JSON.parse(v)), p(), v;
|
|
7049
7048
|
}
|
|
7050
7049
|
}, c.add = function(y) {
|
|
7051
7050
|
p();
|
|
@@ -7056,35 +7055,35 @@ For more information see: https://www.keycloak.org/docs/latest/securing_apps/#_m
|
|
|
7056
7055
|
if (!(this instanceof et))
|
|
7057
7056
|
return new et();
|
|
7058
7057
|
var c = this;
|
|
7059
|
-
c.get = function(
|
|
7060
|
-
if (
|
|
7061
|
-
var E = y("kc-callback-" +
|
|
7062
|
-
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)
|
|
7063
7062
|
return JSON.parse(E);
|
|
7064
7063
|
}
|
|
7065
|
-
}, c.add = function(
|
|
7064
|
+
}, c.add = function(v) {
|
|
7066
7065
|
T(
|
|
7067
|
-
"kc-callback-" +
|
|
7068
|
-
JSON.stringify(
|
|
7066
|
+
"kc-callback-" + v.state,
|
|
7067
|
+
JSON.stringify(v),
|
|
7069
7068
|
p(60)
|
|
7070
7069
|
);
|
|
7071
|
-
}, c.removeItem = function(
|
|
7072
|
-
T(
|
|
7070
|
+
}, c.removeItem = function(v) {
|
|
7071
|
+
T(v, "", p(-100));
|
|
7073
7072
|
};
|
|
7074
|
-
var p = function(
|
|
7073
|
+
var p = function(v) {
|
|
7075
7074
|
var E = /* @__PURE__ */ new Date();
|
|
7076
|
-
return E.setTime(E.getTime() +
|
|
7077
|
-
}, y = function(
|
|
7078
|
-
for (var E =
|
|
7079
|
-
for (var
|
|
7080
|
-
|
|
7081
|
-
if (
|
|
7082
|
-
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);
|
|
7083
7082
|
}
|
|
7084
7083
|
return "";
|
|
7085
|
-
}, T = function(
|
|
7086
|
-
var
|
|
7087
|
-
document.cookie =
|
|
7084
|
+
}, T = function(v, E, S) {
|
|
7085
|
+
var C = v + "=" + E + "; expires=" + S.toUTCString() + "; ";
|
|
7086
|
+
document.cookie = C;
|
|
7088
7087
|
};
|
|
7089
7088
|
};
|
|
7090
7089
|
function kt() {
|
|
@@ -7165,14 +7164,14 @@ function nm(t, e, n = {}) {
|
|
|
7165
7164
|
i && (i.disconnect(), i = void 0);
|
|
7166
7165
|
}, l = de(() => {
|
|
7167
7166
|
const m = Oi(t);
|
|
7168
|
-
return Array.isArray(m) ? m.map((
|
|
7167
|
+
return Array.isArray(m) ? m.map((g) => Ci(g)) : [Ci(m)];
|
|
7169
7168
|
}), u = Wn(
|
|
7170
7169
|
l,
|
|
7171
7170
|
(m) => {
|
|
7172
7171
|
if (s(), a.value && r) {
|
|
7173
7172
|
i = new ResizeObserver(e);
|
|
7174
|
-
for (const
|
|
7175
|
-
|
|
7173
|
+
for (const g of m)
|
|
7174
|
+
g && i.observe(g, o);
|
|
7176
7175
|
}
|
|
7177
7176
|
},
|
|
7178
7177
|
{ immediate: !0, flush: "post" }
|
|
@@ -7232,10 +7231,10 @@ function im() {
|
|
|
7232
7231
|
typeof console !== n && (d.call(this), this[A].apply(this, arguments));
|
|
7233
7232
|
};
|
|
7234
7233
|
}
|
|
7235
|
-
function
|
|
7234
|
+
function g(A, P, w) {
|
|
7236
7235
|
return u(A) || m.apply(this, arguments);
|
|
7237
7236
|
}
|
|
7238
|
-
function
|
|
7237
|
+
function _(A, P) {
|
|
7239
7238
|
var w = this, b, N, H, Y = "loglevel";
|
|
7240
7239
|
typeof A == "string" ? Y += ":" + A : typeof A == "symbol" && (Y = void 0);
|
|
7241
7240
|
function ge(D) {
|
|
@@ -7295,7 +7294,7 @@ function im() {
|
|
|
7295
7294
|
WARN: 3,
|
|
7296
7295
|
ERROR: 4,
|
|
7297
7296
|
SILENT: 5
|
|
7298
|
-
}, w.methodFactory = P ||
|
|
7297
|
+
}, w.methodFactory = P || g, w.getLevel = function() {
|
|
7299
7298
|
return H ?? N ?? b;
|
|
7300
7299
|
}, w.setLevel = function(D, J) {
|
|
7301
7300
|
return H = ce(D), J !== !1 && ge(H), d.call(w);
|
|
@@ -7317,18 +7316,18 @@ function im() {
|
|
|
7317
7316
|
var X = le();
|
|
7318
7317
|
X != null && (H = ce(X)), d.call(w);
|
|
7319
7318
|
}
|
|
7320
|
-
a = new
|
|
7319
|
+
a = new _(), a.getLogger = function(P) {
|
|
7321
7320
|
if (typeof P != "symbol" && typeof P != "string" || P === "")
|
|
7322
7321
|
throw new TypeError("You must supply a name when creating a logger.");
|
|
7323
7322
|
var w = i[P];
|
|
7324
|
-
return w || (w = i[P] = new
|
|
7323
|
+
return w || (w = i[P] = new _(
|
|
7325
7324
|
P,
|
|
7326
7325
|
a.methodFactory
|
|
7327
7326
|
)), w;
|
|
7328
7327
|
};
|
|
7329
|
-
var
|
|
7328
|
+
var k = typeof window !== n ? window.log : void 0;
|
|
7330
7329
|
return a.noConflict = function() {
|
|
7331
|
-
return typeof window !== n && window.log === a && (window.log =
|
|
7330
|
+
return typeof window !== n && window.log === a && (window.log = k), a;
|
|
7332
7331
|
}, a.getLoggers = function() {
|
|
7333
7332
|
return i;
|
|
7334
7333
|
}, a.default = a, a;
|
|
@@ -7349,11 +7348,11 @@ const zn = /* @__PURE__ */ rm(sm), Fm = {
|
|
|
7349
7348
|
);
|
|
7350
7349
|
const o = oe(!0), i = oe(0), a = oe(!1), s = oe(!1), l = oe(""), u = oe(null), d = oe(0);
|
|
7351
7350
|
let m = null;
|
|
7352
|
-
nm(u, (
|
|
7351
|
+
nm(u, (_) => {
|
|
7353
7352
|
m && clearTimeout(m), m = setTimeout(() => {
|
|
7354
|
-
const { width:
|
|
7355
|
-
|
|
7356
|
-
d.value =
|
|
7353
|
+
const { width: k } = _[0].contentRect;
|
|
7354
|
+
xi(() => {
|
|
7355
|
+
d.value = k;
|
|
7357
7356
|
});
|
|
7358
7357
|
}, 50);
|
|
7359
7358
|
}), t.provide(qi, {
|
|
@@ -7376,16 +7375,16 @@ const zn = /* @__PURE__ */ rm(sm), Fm = {
|
|
|
7376
7375
|
EnableLightMode: () => Jt.EnableLightMode(),
|
|
7377
7376
|
ClearStoredTheme: () => Jt.ClearStoredTheme(),
|
|
7378
7377
|
LogoutAsync: async () => {
|
|
7379
|
-
const
|
|
7380
|
-
await
|
|
7378
|
+
const _ = $f(), { oidc: k } = ki();
|
|
7379
|
+
await _.ConfirmAsync(
|
|
7381
7380
|
"Deseja realmente sair da sua conta?"
|
|
7382
|
-
) && (
|
|
7381
|
+
) && (xm("Saindo..."), s.value = !0, await new Promise((P) => setTimeout(P, 1e3)), k.logout({ redirectUri: window.location.origin }).catch(() => {
|
|
7383
7382
|
s.value = !1, Pm();
|
|
7384
7383
|
}));
|
|
7385
7384
|
},
|
|
7386
7385
|
Login: () => {
|
|
7387
|
-
const { oidc:
|
|
7388
|
-
|
|
7386
|
+
const { oidc: _ } = ki();
|
|
7387
|
+
_.login();
|
|
7389
7388
|
},
|
|
7390
7389
|
isLoggingOut: s,
|
|
7391
7390
|
mainRef: u,
|
|
@@ -7532,11 +7531,11 @@ const co = () => cm(), um = { class: "font-percentage" }, Ti = "--font-size-incr
|
|
|
7532
7531
|
getComputedStyle(i()).getPropertyValue(
|
|
7533
7532
|
Ti
|
|
7534
7533
|
) || "1"
|
|
7535
|
-
), s = (
|
|
7536
|
-
|
|
7534
|
+
), s = (g) => {
|
|
7535
|
+
g < 0.5 || g > 1.6 || (i().style.setProperty(
|
|
7537
7536
|
Ti,
|
|
7538
|
-
|
|
7539
|
-
), m.value =
|
|
7537
|
+
g.toString()
|
|
7538
|
+
), m.value = g);
|
|
7540
7539
|
}, l = () => {
|
|
7541
7540
|
s(m.value + 0.1);
|
|
7542
7541
|
}, u = () => {
|
|
@@ -7548,7 +7547,7 @@ const co = () => cm(), um = { class: "font-percentage" }, Ti = "--font-size-incr
|
|
|
7548
7547
|
localStorage.removeItem(dm);
|
|
7549
7548
|
}), Vt(() => {
|
|
7550
7549
|
m.value = a();
|
|
7551
|
-
}), (
|
|
7550
|
+
}), (g, _) => (O(), U(Xe, null, [
|
|
7552
7551
|
Ee(dt, {
|
|
7553
7552
|
button: !0,
|
|
7554
7553
|
size: "sm",
|
|
@@ -7618,11 +7617,11 @@ const co = () => cm(), um = { class: "font-percentage" }, Ti = "--font-size-incr
|
|
|
7618
7617
|
ToggleTheme: u,
|
|
7619
7618
|
CloseMenu: d,
|
|
7620
7619
|
LogoutAsync: m,
|
|
7621
|
-
isLoggingOut:
|
|
7622
|
-
mainRef:
|
|
7623
|
-
} = co(),
|
|
7624
|
-
if (!
|
|
7625
|
-
|
|
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();
|
|
7626
7625
|
};
|
|
7627
7626
|
Vt(() => {
|
|
7628
7627
|
ea().afterEach(() => {
|
|
@@ -7632,16 +7631,16 @@ const co = () => cm(), um = { class: "font-percentage" }, Ti = "--font-size-incr
|
|
|
7632
7631
|
const P = e;
|
|
7633
7632
|
return (w, b) => (O(), U("main", {
|
|
7634
7633
|
ref_key: "mainRef",
|
|
7635
|
-
ref:
|
|
7634
|
+
ref: _,
|
|
7636
7635
|
class: ee({
|
|
7637
|
-
disabled: ae(
|
|
7636
|
+
disabled: ae(g),
|
|
7638
7637
|
"nav-menu-visible": ae(o)
|
|
7639
7638
|
})
|
|
7640
7639
|
}, [
|
|
7641
7640
|
$("aside", {
|
|
7642
7641
|
id: "nav-menu",
|
|
7643
7642
|
ref_key: "navMenuRef",
|
|
7644
|
-
ref:
|
|
7643
|
+
ref: k,
|
|
7645
7644
|
class: ee({ "nav-menu-hidden": !ae(o) })
|
|
7646
7645
|
}, [
|
|
7647
7646
|
$("div", hm, [
|
|
@@ -7667,7 +7666,7 @@ const co = () => cm(), um = { class: "font-percentage" }, Ti = "--font-size-incr
|
|
|
7667
7666
|
tooltip: "Menu",
|
|
7668
7667
|
onClick: ae(s)
|
|
7669
7668
|
}, null, 8, ["icon", "onClick"]),
|
|
7670
|
-
$("div", ym, $e(ae(
|
|
7669
|
+
$("div", ym, $e(ae(g) ? "Saindo..." : ae(i)), 1),
|
|
7671
7670
|
b[2] || (b[2] = $("span", { class: "sep" }, null, -1)),
|
|
7672
7671
|
$("div", bm, [
|
|
7673
7672
|
Ee(dt, {
|
|
@@ -7698,7 +7697,7 @@ const co = () => cm(), um = { class: "font-percentage" }, Ti = "--font-size-incr
|
|
|
7698
7697
|
])
|
|
7699
7698
|
], 2),
|
|
7700
7699
|
$("div", wm, [
|
|
7701
|
-
ae(
|
|
7700
|
+
ae(g) ? (O(), U("div", _m, [
|
|
7702
7701
|
Ee($i)
|
|
7703
7702
|
])) : me(w.$slots, "content", { key: 1 }, void 0, !0)
|
|
7704
7703
|
])
|
|
@@ -8370,7 +8369,7 @@ const Em = new Am(), Jm = () => Em;
|
|
|
8370
8369
|
function Pm() {
|
|
8371
8370
|
document.documentElement.removeAttribute("data-app-message"), document.documentElement.classList.add("app-mounted");
|
|
8372
8371
|
}
|
|
8373
|
-
function
|
|
8372
|
+
function xm(t) {
|
|
8374
8373
|
typeof t == "string" && document.documentElement.setAttribute(
|
|
8375
8374
|
"data-app-message",
|
|
8376
8375
|
t
|
|
@@ -8383,7 +8382,7 @@ export {
|
|
|
8383
8382
|
jm as ConfigAuth,
|
|
8384
8383
|
Zm as EnsureUniqueRouteNames,
|
|
8385
8384
|
Pm as RemovePreloader,
|
|
8386
|
-
|
|
8385
|
+
xm as RestorePreloader,
|
|
8387
8386
|
Rm as SfButton,
|
|
8388
8387
|
Um as SfContent,
|
|
8389
8388
|
ya as SfDrawer,
|