@luizleon/sf.prefeiturasp.vuecomponents 0.0.13 → 0.0.15

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/lib.es.js CHANGED
@@ -1,10 +1,10 @@
1
1
  var Yr = Object.defineProperty;
2
- var Xr = (c, o, f) => o in c ? Yr(c, o, { enumerable: !0, configurable: !0, writable: !0, value: f }) : c[o] = f;
3
- var qe = (c, o, f) => (Xr(c, typeof o != "symbol" ? o + "" : o, f), f);
4
- import { ref as Ye, openBlock as oe, createElementBlock as ve, createElementVNode as q, defineComponent as Te, normalizeStyle as nn, normalizeClass as me, mergeProps as Zr, createBlock as et, Fragment as on, createTextVNode as Gr, toDisplayString as tt, createCommentVNode as rn, unref as Ee, createStaticVNode as Qr, createVNode as We, renderSlot as Pe, resolveComponent as sn, withCtx as an, onMounted as cn, onBeforeUnmount as es, renderList as ts, nextTick as ns } from "vue";
2
+ var Xr = (c, o, d) => o in c ? Yr(c, o, { enumerable: !0, configurable: !0, writable: !0, value: d }) : c[o] = d;
3
+ var We = (c, o, d) => (Xr(c, typeof o != "symbol" ? o + "" : o, d), d);
4
+ import { ref as Xe, openBlock as X, createElementBlock as fe, createElementVNode as N, defineComponent as _e, normalizeStyle as kt, normalizeClass as de, mergeProps as Zr, createBlock as De, Fragment as sn, createTextVNode as Gr, toDisplayString as nt, createCommentVNode as xt, unref as Be, createStaticVNode as Qr, createVNode as Ke, renderSlot as Se, resolveComponent as an, withCtx as cn, onMounted as ln, onBeforeUnmount as es, renderList as ts, nextTick as ns } from "vue";
5
5
  class os {
6
6
  constructor() {
7
- qe(this, "_visible", Ye(!1));
7
+ We(this, "_visible", Xe(!1));
8
8
  }
9
9
  get IsVisible() {
10
10
  return this._visible.value === !0;
@@ -19,16 +19,16 @@ class os {
19
19
  this._visible.value = !0;
20
20
  }
21
21
  }
22
- const rs = new os(), ln = () => rs;
23
- var un = /* @__PURE__ */ ((c) => (c.Primary = "primary", c.Secondary = "secondary", c.Info = "info", c.Success = "success", c.Help = "help", c.Warn = "warn", c.Error = "error", c))(un || {}), Ke = /* @__PURE__ */ ((c) => (c.Pequeno = "sm", c.Medio = "md", c.Grande = "lg", c))(Ke || {});
24
- const dn = (c, o) => {
25
- const f = c.__vccOpts || c;
26
- for (const [y, L] of o)
27
- f[y] = L;
28
- return f;
29
- }, ss = {}, is = { class: "sf-loading-circle" }, as = /* @__PURE__ */ q("div", null, [
30
- /* @__PURE__ */ q("svg", { viewBox: "25 25 50 50" }, [
31
- /* @__PURE__ */ q("circle", {
22
+ const rs = new os(), un = () => rs;
23
+ var dn = /* @__PURE__ */ ((c) => (c.Primary = "primary", c.Secondary = "secondary", c.Info = "info", c.Success = "success", c.Help = "help", c.Warn = "warn", c.Error = "error", c))(dn || {}), Je = /* @__PURE__ */ ((c) => (c.Pequeno = "sm", c.Medio = "md", c.Grande = "lg", c))(Je || {});
24
+ const fn = (c, o) => {
25
+ const d = c.__vccOpts || c;
26
+ for (const [w, L] of o)
27
+ d[w] = L;
28
+ return d;
29
+ }, ss = {}, is = { class: "sf-loading-circle" }, as = /* @__PURE__ */ N("div", null, [
30
+ /* @__PURE__ */ N("svg", { viewBox: "25 25 50 50" }, [
31
+ /* @__PURE__ */ N("circle", {
32
32
  cx: "50",
33
33
  cy: "50",
34
34
  r: "20",
@@ -41,16 +41,16 @@ const dn = (c, o) => {
41
41
  as
42
42
  ];
43
43
  function ls(c, o) {
44
- return oe(), ve("div", is, cs);
44
+ return X(), fe("div", is, cs);
45
45
  }
46
- const us = /* @__PURE__ */ dn(ss, [["render", ls]]);
47
- class ze {
46
+ const us = /* @__PURE__ */ fn(ss, [["render", ls]]);
47
+ class je {
48
48
  /**
49
49
  * Creates a new instance of the CssClassBuilder class.
50
50
  * @param value The initial value of the CSS class string.
51
51
  */
52
52
  constructor(o) {
53
- qe(this, "retorno");
53
+ We(this, "retorno");
54
54
  this.retorno = o ?? "";
55
55
  }
56
56
  /**
@@ -67,8 +67,8 @@ class ze {
67
67
  * @param when The condition that determines whether to add the CSS class.
68
68
  * @returns The current instance of the CssClassBuilder class.
69
69
  */
70
- AddClass(o, f = !0) {
71
- return f ? this.Concat(o) : this;
70
+ AddClass(o, d = !0) {
71
+ return d ? this.Concat(o) : this;
72
72
  }
73
73
  /**
74
74
  * Builds the final CSS class string.
@@ -78,7 +78,7 @@ class ze {
78
78
  return this.retorno.trim();
79
79
  }
80
80
  }
81
- const ds = ["disabled", "tabindex"], fs = ["data-color"], fn = /* @__PURE__ */ Te({
81
+ const ds = ["disabled", "tabindex"], fs = ["data-color"], tt = /* @__PURE__ */ _e({
82
82
  __name: "Icon",
83
83
  props: {
84
84
  icone: {},
@@ -88,34 +88,34 @@ const ds = ["disabled", "tabindex"], fs = ["data-color"], fn = /* @__PURE__ */ T
88
88
  disabled: { type: Boolean },
89
89
  loading: { type: Boolean },
90
90
  button: { type: Boolean },
91
- tamanho: { default: Ke.Medio },
91
+ tamanho: { default: Je.Medio },
92
92
  dot: { type: Boolean },
93
- dotColor: { default: un.Error },
93
+ dotColor: { default: dn.Error },
94
94
  buttonProps: {}
95
95
  },
96
96
  setup(c) {
97
97
  const o = c;
98
- function f() {
99
- return new ze(`${o.class} sf-icon`).AddClass("sf-component-loading", o.loading).AddClass("sf-component-disabled", o.disabled).AddClass("sf-icon-button", o.button).AddClass("sf-icon-small", o.tamanho === Ke.Pequeno).AddClass("sf-icon-medium", o.tamanho === Ke.Medio).AddClass("sf-icon-large", o.tamanho === Ke.Grande).AddClass("sf-ripple", o.button === !0).Build();
98
+ function d() {
99
+ return new je(`${o.class} sf-icon`).AddClass("sf-component-loading", o.loading).AddClass("sf-component-disabled", o.disabled).AddClass("sf-icon-button", o.button).AddClass("sf-icon-small", o.tamanho === Je.Pequeno).AddClass("sf-icon-medium", o.tamanho === Je.Medio).AddClass("sf-icon-large", o.tamanho === Je.Grande).AddClass("sf-ripple", o.button === !0).Build();
100
100
  }
101
- return (y, L) => (oe(), ve("div", {
102
- style: nn(o.style),
103
- class: me(f())
101
+ return (w, L) => (X(), fe("div", {
102
+ style: kt(o.style),
103
+ class: de(d())
104
104
  }, [
105
- q("button", Zr({
105
+ N("button", Zr({
106
106
  class: "material-symbols-outlined",
107
107
  disabled: o.disabled || o.loading
108
108
  }, o.buttonProps, {
109
109
  tabindex: o.button ? void 0 : -1
110
110
  }), [
111
- o.loading ? (oe(), et(us, { key: 0 })) : (oe(), ve(on, { key: 1 }, [
112
- Gr(tt(o.icone), 1)
111
+ o.loading ? (X(), De(us, { key: 0 })) : (X(), fe(sn, { key: 1 }, [
112
+ Gr(nt(o.icone), 1)
113
113
  ], 64))
114
114
  ], 16, ds),
115
- o.dot ? (oe(), ve("span", {
115
+ o.dot ? (X(), fe("span", {
116
116
  key: 0,
117
117
  "data-color": o.dotColor
118
- }, null, 8, fs)) : rn("", !0)
118
+ }, null, 8, fs)) : xt("", !0)
119
119
  ], 6));
120
120
  }
121
121
  });
@@ -128,67 +128,67 @@ function hs(c) {
128
128
  return c;
129
129
  var o = c.default;
130
130
  if (typeof o == "function") {
131
- var f = function y() {
132
- return this instanceof y ? Reflect.construct(o, arguments, this.constructor) : o.apply(this, arguments);
131
+ var d = function w() {
132
+ return this instanceof w ? Reflect.construct(o, arguments, this.constructor) : o.apply(this, arguments);
133
133
  };
134
- f.prototype = o.prototype;
134
+ d.prototype = o.prototype;
135
135
  } else
136
- f = {};
137
- return Object.defineProperty(f, "__esModule", { value: !0 }), Object.keys(c).forEach(function(y) {
138
- var L = Object.getOwnPropertyDescriptor(c, y);
139
- Object.defineProperty(f, y, L.get ? L : {
136
+ d = {};
137
+ return Object.defineProperty(d, "__esModule", { value: !0 }), Object.keys(c).forEach(function(w) {
138
+ var L = Object.getOwnPropertyDescriptor(c, w);
139
+ Object.defineProperty(d, w, L.get ? L : {
140
140
  enumerable: !0,
141
141
  get: function() {
142
- return c[y];
142
+ return c[w];
143
143
  }
144
144
  });
145
- }), f;
145
+ }), d;
146
146
  }
147
- var nt = {};
148
- nt.byteLength = ms;
149
- nt.toByteArray = bs;
150
- nt.fromByteArray = ks;
151
- var xe = [], ge = [], ps = typeof Uint8Array < "u" ? Uint8Array : Array, vt = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";
147
+ var ot = {};
148
+ ot.byteLength = ms;
149
+ ot.toByteArray = vs;
150
+ ot.fromByteArray = ks;
151
+ var xe = [], be = [], ps = typeof Uint8Array < "u" ? Uint8Array : Array, vt = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";
152
152
  for (var He = 0, gs = vt.length; He < gs; ++He)
153
- xe[He] = vt[He], ge[vt.charCodeAt(He)] = He;
154
- ge["-".charCodeAt(0)] = 62;
155
- ge["_".charCodeAt(0)] = 63;
153
+ xe[He] = vt[He], be[vt.charCodeAt(He)] = He;
154
+ be["-".charCodeAt(0)] = 62;
155
+ be["_".charCodeAt(0)] = 63;
156
156
  function pn(c) {
157
157
  var o = c.length;
158
158
  if (o % 4 > 0)
159
159
  throw new Error("Invalid string. Length must be a multiple of 4");
160
- var f = c.indexOf("=");
161
- f === -1 && (f = o);
162
- var y = f === o ? 0 : 4 - f % 4;
163
- return [f, y];
160
+ var d = c.indexOf("=");
161
+ d === -1 && (d = o);
162
+ var w = d === o ? 0 : 4 - d % 4;
163
+ return [d, w];
164
164
  }
165
165
  function ms(c) {
166
- var o = pn(c), f = o[0], y = o[1];
167
- return (f + y) * 3 / 4 - y;
166
+ var o = pn(c), d = o[0], w = o[1];
167
+ return (d + w) * 3 / 4 - w;
168
168
  }
169
- function vs(c, o, f) {
170
- return (o + f) * 3 / 4 - f;
169
+ function bs(c, o, d) {
170
+ return (o + d) * 3 / 4 - d;
171
171
  }
172
- function bs(c) {
173
- var o, f = pn(c), y = f[0], L = f[1], k = new ps(vs(c, y, L)), B = 0, M = L > 0 ? y - 4 : y, h;
172
+ function vs(c) {
173
+ var o, d = pn(c), w = d[0], L = d[1], k = new ps(bs(c, w, L)), T = 0, M = L > 0 ? w - 4 : w, h;
174
174
  for (h = 0; h < M; h += 4)
175
- o = ge[c.charCodeAt(h)] << 18 | ge[c.charCodeAt(h + 1)] << 12 | ge[c.charCodeAt(h + 2)] << 6 | ge[c.charCodeAt(h + 3)], k[B++] = o >> 16 & 255, k[B++] = o >> 8 & 255, k[B++] = o & 255;
176
- return L === 2 && (o = ge[c.charCodeAt(h)] << 2 | ge[c.charCodeAt(h + 1)] >> 4, k[B++] = o & 255), L === 1 && (o = ge[c.charCodeAt(h)] << 10 | ge[c.charCodeAt(h + 1)] << 4 | ge[c.charCodeAt(h + 2)] >> 2, k[B++] = o >> 8 & 255, k[B++] = o & 255), k;
175
+ o = be[c.charCodeAt(h)] << 18 | be[c.charCodeAt(h + 1)] << 12 | be[c.charCodeAt(h + 2)] << 6 | be[c.charCodeAt(h + 3)], k[T++] = o >> 16 & 255, k[T++] = o >> 8 & 255, k[T++] = o & 255;
176
+ return L === 2 && (o = be[c.charCodeAt(h)] << 2 | be[c.charCodeAt(h + 1)] >> 4, k[T++] = o & 255), L === 1 && (o = be[c.charCodeAt(h)] << 10 | be[c.charCodeAt(h + 1)] << 4 | be[c.charCodeAt(h + 2)] >> 2, k[T++] = o >> 8 & 255, k[T++] = o & 255), k;
177
177
  }
178
178
  function ws(c) {
179
179
  return xe[c >> 18 & 63] + xe[c >> 12 & 63] + xe[c >> 6 & 63] + xe[c & 63];
180
180
  }
181
- function ys(c, o, f) {
182
- for (var y, L = [], k = o; k < f; k += 3)
183
- y = (c[k] << 16 & 16711680) + (c[k + 1] << 8 & 65280) + (c[k + 2] & 255), L.push(ws(y));
181
+ function ys(c, o, d) {
182
+ for (var w, L = [], k = o; k < d; k += 3)
183
+ w = (c[k] << 16 & 16711680) + (c[k + 1] << 8 & 65280) + (c[k + 2] & 255), L.push(ws(w));
184
184
  return L.join("");
185
185
  }
186
186
  function ks(c) {
187
- for (var o, f = c.length, y = f % 3, L = [], k = 16383, B = 0, M = f - y; B < M; B += k)
188
- L.push(ys(c, B, B + k > M ? M : B + k));
189
- return y === 1 ? (o = c[f - 1], L.push(
187
+ for (var o, d = c.length, w = d % 3, L = [], k = 16383, T = 0, M = d - w; T < M; T += k)
188
+ L.push(ys(c, T, T + k > M ? M : T + k));
189
+ return w === 1 ? (o = c[d - 1], L.push(
190
190
  xe[o >> 2] + xe[o << 4 & 63] + "=="
191
- )) : y === 2 && (o = (c[f - 2] << 8) + c[f - 1], L.push(
191
+ )) : w === 2 && (o = (c[d - 2] << 8) + c[d - 1], L.push(
192
192
  xe[o >> 10] + xe[o >> 4 & 63] + xe[o << 2 & 63] + "="
193
193
  )), L.join("");
194
194
  }
@@ -196,7 +196,7 @@ var gn = { exports: {} };
196
196
  const xs = {}, Cs = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
197
197
  __proto__: null,
198
198
  default: xs
199
- }, Symbol.toStringTag, { value: "Module" })), en = /* @__PURE__ */ hs(Cs);
199
+ }, Symbol.toStringTag, { value: "Module" })), on = /* @__PURE__ */ hs(Cs);
200
200
  /**
201
201
  * [js-sha256]{@link https://github.com/emn178/js-sha256}
202
202
  *
@@ -207,11 +207,11 @@ const xs = {}, Cs = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
207
207
  */
208
208
  (function(c) {
209
209
  (function() {
210
- var o = "input is invalid type", f = typeof window == "object", y = f ? window : {};
211
- y.JS_SHA256_NO_WINDOW && (f = !1);
212
- var L = !f && typeof self == "object", k = !y.JS_SHA256_NO_NODE_JS && typeof process == "object" && process.versions && process.versions.node;
213
- k ? y = Ae : L && (y = self);
214
- var B = !y.JS_SHA256_NO_COMMON_JS && !0 && c.exports, M = !y.JS_SHA256_NO_ARRAY_BUFFER && typeof ArrayBuffer < "u", h = "0123456789abcdef".split(""), K = [-2147483648, 8388608, 32768, 128], W = [24, 16, 8, 0], Y = [
210
+ var o = "input is invalid type", d = typeof window == "object", w = d ? window : {};
211
+ w.JS_SHA256_NO_WINDOW && (d = !1);
212
+ var L = !d && typeof self == "object", k = !w.JS_SHA256_NO_NODE_JS && typeof process == "object" && process.versions && process.versions.node;
213
+ k ? w = Ae : L && (w = self);
214
+ var T = !w.JS_SHA256_NO_COMMON_JS && !0 && c.exports, M = !w.JS_SHA256_NO_ARRAY_BUFFER && typeof ArrayBuffer < "u", h = "0123456789abcdef".split(""), W = [-2147483648, 8388608, 32768, 128], z = [24, 16, 8, 0], Y = [
215
215
  1116352408,
216
216
  1899447441,
217
217
  3049323471,
@@ -277,30 +277,30 @@ const xs = {}, Cs = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
277
277
  3204031479,
278
278
  3329325298
279
279
  ], ae = ["hex", "array", "digest", "arrayBuffer"], V = [];
280
- (y.JS_SHA256_NO_NODE_JS || !Array.isArray) && (Array.isArray = function(u) {
280
+ (w.JS_SHA256_NO_NODE_JS || !Array.isArray) && (Array.isArray = function(u) {
281
281
  return Object.prototype.toString.call(u) === "[object Array]";
282
- }), M && (y.JS_SHA256_NO_ARRAY_BUFFER_IS_VIEW || !ArrayBuffer.isView) && (ArrayBuffer.isView = function(u) {
282
+ }), M && (w.JS_SHA256_NO_ARRAY_BUFFER_IS_VIEW || !ArrayBuffer.isView) && (ArrayBuffer.isView = function(u) {
283
283
  return typeof u == "object" && u.buffer && u.buffer.constructor === ArrayBuffer;
284
284
  });
285
- var Se = function(u, x) {
285
+ var Ee = function(u, x) {
286
286
  return function(I) {
287
- return new z(x, !0).update(I)[u]();
287
+ return new K(x, !0).update(I)[u]();
288
288
  };
289
- }, be = function(u) {
290
- var x = Se("hex", u);
289
+ }, ve = function(u) {
290
+ var x = Ee("hex", u);
291
291
  k && (x = ce(x, u)), x.create = function() {
292
- return new z(u);
292
+ return new K(u);
293
293
  }, x.update = function(S) {
294
294
  return x.create().update(S);
295
295
  };
296
296
  for (var I = 0; I < ae.length; ++I) {
297
297
  var C = ae[I];
298
- x[C] = Se(C, u);
298
+ x[C] = Ee(C, u);
299
299
  }
300
300
  return x;
301
301
  }, ce = function(u, x) {
302
- var I = en, C = en.Buffer, S = x ? "sha224" : "sha256", w;
303
- C.from && !y.JS_SHA256_NO_BUFFER_FROM ? w = C.from : w = function(g) {
302
+ var I = on, C = on.Buffer, S = x ? "sha224" : "sha256", y;
303
+ C.from && !w.JS_SHA256_NO_BUFFER_FROM ? y = C.from : y = function(g) {
304
304
  return new C(g);
305
305
  };
306
306
  var i = function(g) {
@@ -308,19 +308,19 @@ const xs = {}, Cs = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
308
308
  return I.createHash(S).update(g, "utf8").digest("hex");
309
309
  if (g == null)
310
310
  throw new Error(o);
311
- return g.constructor === ArrayBuffer && (g = new Uint8Array(g)), Array.isArray(g) || ArrayBuffer.isView(g) || g.constructor === C ? I.createHash(S).update(w(g)).digest("hex") : u(g);
311
+ return g.constructor === ArrayBuffer && (g = new Uint8Array(g)), Array.isArray(g) || ArrayBuffer.isView(g) || g.constructor === C ? I.createHash(S).update(y(g)).digest("hex") : u(g);
312
312
  };
313
313
  return i;
314
314
  }, Fe = function(u, x) {
315
315
  return function(I, C) {
316
316
  return new we(I, x, !0).update(C)[u]();
317
317
  };
318
- }, de = function(u) {
318
+ }, he = function(u) {
319
319
  var x = Fe("hex", u);
320
320
  x.create = function(S) {
321
321
  return new we(S, u);
322
- }, x.update = function(S, w) {
323
- return x.create(S).update(w);
322
+ }, x.update = function(S, y) {
323
+ return x.create(S).update(y);
324
324
  };
325
325
  for (var I = 0; I < ae.length; ++I) {
326
326
  var C = ae[I];
@@ -328,10 +328,10 @@ const xs = {}, Cs = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
328
328
  }
329
329
  return x;
330
330
  };
331
- function z(u, x) {
331
+ function K(u, x) {
332
332
  x ? (V[0] = V[16] = V[1] = V[2] = V[3] = V[4] = V[5] = V[6] = V[7] = V[8] = V[9] = V[10] = V[11] = V[12] = V[13] = V[14] = V[15] = 0, this.blocks = V) : this.blocks = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], u ? (this.h0 = 3238371032, this.h1 = 914150663, this.h2 = 812702999, this.h3 = 4144912697, this.h4 = 4290775857, this.h5 = 1750603025, this.h6 = 1694076839, this.h7 = 3204075428) : (this.h0 = 1779033703, this.h1 = 3144134277, this.h2 = 1013904242, this.h3 = 2773480762, this.h4 = 1359893119, this.h5 = 2600822924, this.h6 = 528734635, this.h7 = 1541459225), this.block = this.start = this.bytes = this.hBytes = 0, this.finalized = this.hashed = !1, this.first = !0, this.is224 = u;
333
333
  }
334
- z.prototype.update = function(u) {
334
+ K.prototype.update = function(u) {
335
335
  if (!this.finalized) {
336
336
  var x, I = typeof u;
337
337
  if (I !== "string") {
@@ -346,37 +346,37 @@ const xs = {}, Cs = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
346
346
  throw new Error(o);
347
347
  x = !0;
348
348
  }
349
- for (var C, S = 0, w, i = u.length, g = this.blocks; S < i; ) {
349
+ for (var C, S = 0, y, i = u.length, g = this.blocks; S < i; ) {
350
350
  if (this.hashed && (this.hashed = !1, g[0] = this.block, g[16] = g[1] = g[2] = g[3] = g[4] = g[5] = g[6] = g[7] = g[8] = g[9] = g[10] = g[11] = g[12] = g[13] = g[14] = g[15] = 0), x)
351
- for (w = this.start; S < i && w < 64; ++S)
352
- g[w >> 2] |= u[S] << W[w++ & 3];
351
+ for (y = this.start; S < i && y < 64; ++S)
352
+ g[y >> 2] |= u[S] << z[y++ & 3];
353
353
  else
354
- for (w = this.start; S < i && w < 64; ++S)
355
- C = u.charCodeAt(S), C < 128 ? g[w >> 2] |= C << W[w++ & 3] : C < 2048 ? (g[w >> 2] |= (192 | C >> 6) << W[w++ & 3], g[w >> 2] |= (128 | C & 63) << W[w++ & 3]) : C < 55296 || C >= 57344 ? (g[w >> 2] |= (224 | C >> 12) << W[w++ & 3], g[w >> 2] |= (128 | C >> 6 & 63) << W[w++ & 3], g[w >> 2] |= (128 | C & 63) << W[w++ & 3]) : (C = 65536 + ((C & 1023) << 10 | u.charCodeAt(++S) & 1023), g[w >> 2] |= (240 | C >> 18) << W[w++ & 3], g[w >> 2] |= (128 | C >> 12 & 63) << W[w++ & 3], g[w >> 2] |= (128 | C >> 6 & 63) << W[w++ & 3], g[w >> 2] |= (128 | C & 63) << W[w++ & 3]);
356
- this.lastByteIndex = w, this.bytes += w - this.start, w >= 64 ? (this.block = g[16], this.start = w - 64, this.hash(), this.hashed = !0) : this.start = w;
354
+ for (y = this.start; S < i && y < 64; ++S)
355
+ C = u.charCodeAt(S), C < 128 ? g[y >> 2] |= C << z[y++ & 3] : C < 2048 ? (g[y >> 2] |= (192 | C >> 6) << z[y++ & 3], g[y >> 2] |= (128 | C & 63) << z[y++ & 3]) : C < 55296 || C >= 57344 ? (g[y >> 2] |= (224 | C >> 12) << z[y++ & 3], g[y >> 2] |= (128 | C >> 6 & 63) << z[y++ & 3], g[y >> 2] |= (128 | C & 63) << z[y++ & 3]) : (C = 65536 + ((C & 1023) << 10 | u.charCodeAt(++S) & 1023), g[y >> 2] |= (240 | C >> 18) << z[y++ & 3], g[y >> 2] |= (128 | C >> 12 & 63) << z[y++ & 3], g[y >> 2] |= (128 | C >> 6 & 63) << z[y++ & 3], g[y >> 2] |= (128 | C & 63) << z[y++ & 3]);
356
+ this.lastByteIndex = y, this.bytes += y - this.start, y >= 64 ? (this.block = g[16], this.start = y - 64, this.hash(), this.hashed = !0) : this.start = y;
357
357
  }
358
358
  return this.bytes > 4294967295 && (this.hBytes += this.bytes / 4294967296 << 0, this.bytes = this.bytes % 4294967296), this;
359
359
  }
360
- }, z.prototype.finalize = function() {
360
+ }, K.prototype.finalize = function() {
361
361
  if (!this.finalized) {
362
362
  this.finalized = !0;
363
363
  var u = this.blocks, x = this.lastByteIndex;
364
- u[16] = this.block, u[x >> 2] |= K[x & 3], this.block = u[16], x >= 56 && (this.hashed || this.hash(), u[0] = this.block, u[16] = u[1] = u[2] = u[3] = u[4] = u[5] = u[6] = u[7] = u[8] = u[9] = u[10] = u[11] = u[12] = u[13] = u[14] = u[15] = 0), u[14] = this.hBytes << 3 | this.bytes >>> 29, u[15] = this.bytes << 3, this.hash();
364
+ u[16] = this.block, u[x >> 2] |= W[x & 3], this.block = u[16], x >= 56 && (this.hashed || this.hash(), u[0] = this.block, u[16] = u[1] = u[2] = u[3] = u[4] = u[5] = u[6] = u[7] = u[8] = u[9] = u[10] = u[11] = u[12] = u[13] = u[14] = u[15] = 0), u[14] = this.hBytes << 3 | this.bytes >>> 29, u[15] = this.bytes << 3, this.hash();
365
365
  }
366
- }, z.prototype.hash = function() {
367
- var u = this.h0, x = this.h1, I = this.h2, C = this.h3, S = this.h4, w = this.h5, i = this.h6, g = this.h7, T = this.blocks, N, $, F, Z, H, Q, s, a, p, m, l;
368
- for (N = 16; N < 64; ++N)
369
- H = T[N - 15], $ = (H >>> 7 | H << 25) ^ (H >>> 18 | H << 14) ^ H >>> 3, H = T[N - 2], F = (H >>> 17 | H << 15) ^ (H >>> 19 | H << 13) ^ H >>> 10, T[N] = T[N - 16] + $ + T[N - 7] + F << 0;
370
- for (l = x & I, N = 0; N < 64; N += 4)
371
- this.first ? (this.is224 ? (a = 300032, H = T[0] - 1413257819, g = H - 150054599 << 0, C = H + 24177077 << 0) : (a = 704751109, H = T[0] - 210244248, g = H - 1521486534 << 0, C = H + 143694565 << 0), this.first = !1) : ($ = (u >>> 2 | u << 30) ^ (u >>> 13 | u << 19) ^ (u >>> 22 | u << 10), F = (S >>> 6 | S << 26) ^ (S >>> 11 | S << 21) ^ (S >>> 25 | S << 7), a = u & x, Z = a ^ u & I ^ l, s = S & w ^ ~S & i, H = g + F + s + Y[N] + T[N], Q = $ + Z, g = C + H << 0, C = H + Q << 0), $ = (C >>> 2 | C << 30) ^ (C >>> 13 | C << 19) ^ (C >>> 22 | C << 10), F = (g >>> 6 | g << 26) ^ (g >>> 11 | g << 21) ^ (g >>> 25 | g << 7), p = C & u, Z = p ^ C & x ^ a, s = g & S ^ ~g & w, H = i + F + s + Y[N + 1] + T[N + 1], Q = $ + Z, i = I + H << 0, I = H + Q << 0, $ = (I >>> 2 | I << 30) ^ (I >>> 13 | I << 19) ^ (I >>> 22 | I << 10), F = (i >>> 6 | i << 26) ^ (i >>> 11 | i << 21) ^ (i >>> 25 | i << 7), m = I & C, Z = m ^ I & u ^ p, s = i & g ^ ~i & S, H = w + F + s + Y[N + 2] + T[N + 2], Q = $ + Z, w = x + H << 0, x = H + Q << 0, $ = (x >>> 2 | x << 30) ^ (x >>> 13 | x << 19) ^ (x >>> 22 | x << 10), F = (w >>> 6 | w << 26) ^ (w >>> 11 | w << 21) ^ (w >>> 25 | w << 7), l = x & I, Z = l ^ x & C ^ m, s = w & i ^ ~w & g, H = S + F + s + Y[N + 3] + T[N + 3], Q = $ + Z, S = u + H << 0, u = H + Q << 0, this.chromeBugWorkAround = !0;
372
- this.h0 = this.h0 + u << 0, this.h1 = this.h1 + x << 0, this.h2 = this.h2 + I << 0, this.h3 = this.h3 + C << 0, this.h4 = this.h4 + S << 0, this.h5 = this.h5 + w << 0, this.h6 = this.h6 + i << 0, this.h7 = this.h7 + g << 0;
373
- }, z.prototype.hex = function() {
366
+ }, K.prototype.hash = function() {
367
+ var u = this.h0, x = this.h1, I = this.h2, C = this.h3, S = this.h4, y = this.h5, i = this.h6, g = this.h7, B = this.blocks, $, q, F, G, H, ee, s, a, p, m, l;
368
+ for ($ = 16; $ < 64; ++$)
369
+ H = B[$ - 15], q = (H >>> 7 | H << 25) ^ (H >>> 18 | H << 14) ^ H >>> 3, H = B[$ - 2], F = (H >>> 17 | H << 15) ^ (H >>> 19 | H << 13) ^ H >>> 10, B[$] = B[$ - 16] + q + B[$ - 7] + F << 0;
370
+ for (l = x & I, $ = 0; $ < 64; $ += 4)
371
+ this.first ? (this.is224 ? (a = 300032, H = B[0] - 1413257819, g = H - 150054599 << 0, C = H + 24177077 << 0) : (a = 704751109, H = B[0] - 210244248, g = H - 1521486534 << 0, C = H + 143694565 << 0), this.first = !1) : (q = (u >>> 2 | u << 30) ^ (u >>> 13 | u << 19) ^ (u >>> 22 | u << 10), F = (S >>> 6 | S << 26) ^ (S >>> 11 | S << 21) ^ (S >>> 25 | S << 7), a = u & x, G = a ^ u & I ^ l, s = S & y ^ ~S & i, H = g + F + s + Y[$] + B[$], ee = q + G, g = C + H << 0, C = H + ee << 0), q = (C >>> 2 | C << 30) ^ (C >>> 13 | C << 19) ^ (C >>> 22 | C << 10), F = (g >>> 6 | g << 26) ^ (g >>> 11 | g << 21) ^ (g >>> 25 | g << 7), p = C & u, G = p ^ C & x ^ a, s = g & S ^ ~g & y, H = i + F + s + Y[$ + 1] + B[$ + 1], ee = q + G, i = I + H << 0, I = H + ee << 0, q = (I >>> 2 | I << 30) ^ (I >>> 13 | I << 19) ^ (I >>> 22 | I << 10), F = (i >>> 6 | i << 26) ^ (i >>> 11 | i << 21) ^ (i >>> 25 | i << 7), m = I & C, G = m ^ I & u ^ p, s = i & g ^ ~i & S, H = y + F + s + Y[$ + 2] + B[$ + 2], ee = q + G, y = x + H << 0, x = H + ee << 0, q = (x >>> 2 | x << 30) ^ (x >>> 13 | x << 19) ^ (x >>> 22 | x << 10), F = (y >>> 6 | y << 26) ^ (y >>> 11 | y << 21) ^ (y >>> 25 | y << 7), l = x & I, G = l ^ x & C ^ m, s = y & i ^ ~y & g, H = S + F + s + Y[$ + 3] + B[$ + 3], ee = q + G, S = u + H << 0, u = H + ee << 0, this.chromeBugWorkAround = !0;
372
+ this.h0 = this.h0 + u << 0, this.h1 = this.h1 + x << 0, this.h2 = this.h2 + I << 0, this.h3 = this.h3 + C << 0, this.h4 = this.h4 + S << 0, this.h5 = this.h5 + y << 0, this.h6 = this.h6 + i << 0, this.h7 = this.h7 + g << 0;
373
+ }, K.prototype.hex = function() {
374
374
  this.finalize();
375
- var u = this.h0, x = this.h1, I = this.h2, C = this.h3, S = this.h4, w = this.h5, i = this.h6, g = this.h7, T = h[u >> 28 & 15] + h[u >> 24 & 15] + h[u >> 20 & 15] + h[u >> 16 & 15] + h[u >> 12 & 15] + h[u >> 8 & 15] + h[u >> 4 & 15] + h[u & 15] + h[x >> 28 & 15] + h[x >> 24 & 15] + h[x >> 20 & 15] + h[x >> 16 & 15] + h[x >> 12 & 15] + h[x >> 8 & 15] + h[x >> 4 & 15] + h[x & 15] + h[I >> 28 & 15] + h[I >> 24 & 15] + h[I >> 20 & 15] + h[I >> 16 & 15] + h[I >> 12 & 15] + h[I >> 8 & 15] + h[I >> 4 & 15] + h[I & 15] + h[C >> 28 & 15] + h[C >> 24 & 15] + h[C >> 20 & 15] + h[C >> 16 & 15] + h[C >> 12 & 15] + h[C >> 8 & 15] + h[C >> 4 & 15] + h[C & 15] + h[S >> 28 & 15] + h[S >> 24 & 15] + h[S >> 20 & 15] + h[S >> 16 & 15] + h[S >> 12 & 15] + h[S >> 8 & 15] + h[S >> 4 & 15] + h[S & 15] + h[w >> 28 & 15] + h[w >> 24 & 15] + h[w >> 20 & 15] + h[w >> 16 & 15] + h[w >> 12 & 15] + h[w >> 8 & 15] + h[w >> 4 & 15] + h[w & 15] + h[i >> 28 & 15] + h[i >> 24 & 15] + h[i >> 20 & 15] + h[i >> 16 & 15] + h[i >> 12 & 15] + h[i >> 8 & 15] + h[i >> 4 & 15] + h[i & 15];
376
- return this.is224 || (T += h[g >> 28 & 15] + h[g >> 24 & 15] + h[g >> 20 & 15] + h[g >> 16 & 15] + h[g >> 12 & 15] + h[g >> 8 & 15] + h[g >> 4 & 15] + h[g & 15]), T;
377
- }, z.prototype.toString = z.prototype.hex, z.prototype.digest = function() {
375
+ var u = this.h0, x = this.h1, I = this.h2, C = this.h3, S = this.h4, y = this.h5, i = this.h6, g = this.h7, B = h[u >> 28 & 15] + h[u >> 24 & 15] + h[u >> 20 & 15] + h[u >> 16 & 15] + h[u >> 12 & 15] + h[u >> 8 & 15] + h[u >> 4 & 15] + h[u & 15] + h[x >> 28 & 15] + h[x >> 24 & 15] + h[x >> 20 & 15] + h[x >> 16 & 15] + h[x >> 12 & 15] + h[x >> 8 & 15] + h[x >> 4 & 15] + h[x & 15] + h[I >> 28 & 15] + h[I >> 24 & 15] + h[I >> 20 & 15] + h[I >> 16 & 15] + h[I >> 12 & 15] + h[I >> 8 & 15] + h[I >> 4 & 15] + h[I & 15] + h[C >> 28 & 15] + h[C >> 24 & 15] + h[C >> 20 & 15] + h[C >> 16 & 15] + h[C >> 12 & 15] + h[C >> 8 & 15] + h[C >> 4 & 15] + h[C & 15] + h[S >> 28 & 15] + h[S >> 24 & 15] + h[S >> 20 & 15] + h[S >> 16 & 15] + h[S >> 12 & 15] + h[S >> 8 & 15] + h[S >> 4 & 15] + h[S & 15] + h[y >> 28 & 15] + h[y >> 24 & 15] + h[y >> 20 & 15] + h[y >> 16 & 15] + h[y >> 12 & 15] + h[y >> 8 & 15] + h[y >> 4 & 15] + h[y & 15] + h[i >> 28 & 15] + h[i >> 24 & 15] + h[i >> 20 & 15] + h[i >> 16 & 15] + h[i >> 12 & 15] + h[i >> 8 & 15] + h[i >> 4 & 15] + h[i & 15];
376
+ return this.is224 || (B += h[g >> 28 & 15] + h[g >> 24 & 15] + h[g >> 20 & 15] + h[g >> 16 & 15] + h[g >> 12 & 15] + h[g >> 8 & 15] + h[g >> 4 & 15] + h[g & 15]), B;
377
+ }, K.prototype.toString = K.prototype.hex, K.prototype.digest = function() {
378
378
  this.finalize();
379
- var u = this.h0, x = this.h1, I = this.h2, C = this.h3, S = this.h4, w = this.h5, i = this.h6, g = this.h7, T = [
379
+ var u = this.h0, x = this.h1, I = this.h2, C = this.h3, S = this.h4, y = this.h5, i = this.h6, g = this.h7, B = [
380
380
  u >> 24 & 255,
381
381
  u >> 16 & 255,
382
382
  u >> 8 & 255,
@@ -397,17 +397,17 @@ const xs = {}, Cs = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
397
397
  S >> 16 & 255,
398
398
  S >> 8 & 255,
399
399
  S & 255,
400
- w >> 24 & 255,
401
- w >> 16 & 255,
402
- w >> 8 & 255,
403
- w & 255,
400
+ y >> 24 & 255,
401
+ y >> 16 & 255,
402
+ y >> 8 & 255,
403
+ y & 255,
404
404
  i >> 24 & 255,
405
405
  i >> 16 & 255,
406
406
  i >> 8 & 255,
407
407
  i & 255
408
408
  ];
409
- return this.is224 || T.push(g >> 24 & 255, g >> 16 & 255, g >> 8 & 255, g & 255), T;
410
- }, z.prototype.array = z.prototype.digest, z.prototype.arrayBuffer = function() {
409
+ return this.is224 || B.push(g >> 24 & 255, g >> 16 & 255, g >> 8 & 255, g & 255), B;
410
+ }, K.prototype.array = K.prototype.digest, K.prototype.arrayBuffer = function() {
411
411
  this.finalize();
412
412
  var u = new ArrayBuffer(this.is224 ? 28 : 32), x = new DataView(u);
413
413
  return x.setUint32(0, this.h0), x.setUint32(4, this.h1), x.setUint32(8, this.h2), x.setUint32(12, this.h3), x.setUint32(16, this.h4), x.setUint32(20, this.h5), x.setUint32(24, this.h6), this.is224 || x.setUint32(28, this.h7), u;
@@ -415,10 +415,10 @@ const xs = {}, Cs = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
415
415
  function we(u, x, I) {
416
416
  var C, S = typeof u;
417
417
  if (S === "string") {
418
- var w = [], i = u.length, g = 0, T;
418
+ var y = [], i = u.length, g = 0, B;
419
419
  for (C = 0; C < i; ++C)
420
- T = u.charCodeAt(C), T < 128 ? w[g++] = T : T < 2048 ? (w[g++] = 192 | T >> 6, w[g++] = 128 | T & 63) : T < 55296 || T >= 57344 ? (w[g++] = 224 | T >> 12, w[g++] = 128 | T >> 6 & 63, w[g++] = 128 | T & 63) : (T = 65536 + ((T & 1023) << 10 | u.charCodeAt(++C) & 1023), w[g++] = 240 | T >> 18, w[g++] = 128 | T >> 12 & 63, w[g++] = 128 | T >> 6 & 63, w[g++] = 128 | T & 63);
421
- u = w;
420
+ B = u.charCodeAt(C), B < 128 ? y[g++] = B : B < 2048 ? (y[g++] = 192 | B >> 6, y[g++] = 128 | B & 63) : B < 55296 || B >= 57344 ? (y[g++] = 224 | B >> 12, y[g++] = 128 | B >> 6 & 63, y[g++] = 128 | B & 63) : (B = 65536 + ((B & 1023) << 10 | u.charCodeAt(++C) & 1023), y[g++] = 240 | B >> 18, y[g++] = 128 | B >> 12 & 63, y[g++] = 128 | B >> 6 & 63, y[g++] = 128 | B & 63);
421
+ u = y;
422
422
  } else if (S === "object") {
423
423
  if (u === null)
424
424
  throw new Error(o);
@@ -428,34 +428,34 @@ const xs = {}, Cs = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
428
428
  throw new Error(o);
429
429
  } else
430
430
  throw new Error(o);
431
- u.length > 64 && (u = new z(x, !0).update(u).array());
432
- var N = [], $ = [];
431
+ u.length > 64 && (u = new K(x, !0).update(u).array());
432
+ var $ = [], q = [];
433
433
  for (C = 0; C < 64; ++C) {
434
434
  var F = u[C] || 0;
435
- N[C] = 92 ^ F, $[C] = 54 ^ F;
435
+ $[C] = 92 ^ F, q[C] = 54 ^ F;
436
436
  }
437
- z.call(this, x, I), this.update($), this.oKeyPad = N, this.inner = !0, this.sharedMemory = I;
437
+ K.call(this, x, I), this.update(q), this.oKeyPad = $, this.inner = !0, this.sharedMemory = I;
438
438
  }
439
- we.prototype = new z(), we.prototype.finalize = function() {
440
- if (z.prototype.finalize.call(this), this.inner) {
439
+ we.prototype = new K(), we.prototype.finalize = function() {
440
+ if (K.prototype.finalize.call(this), this.inner) {
441
441
  this.inner = !1;
442
442
  var u = this.array();
443
- z.call(this, this.is224, this.sharedMemory), this.update(this.oKeyPad), this.update(u), z.prototype.finalize.call(this);
443
+ K.call(this, this.is224, this.sharedMemory), this.update(this.oKeyPad), this.update(u), K.prototype.finalize.call(this);
444
444
  }
445
445
  };
446
- var X = be();
447
- X.sha256 = X, X.sha224 = be(!0), X.sha256.hmac = de(), X.sha224.hmac = de(!0), B ? c.exports = X : (y.sha256 = X.sha256, y.sha224 = X.sha224);
446
+ var Z = ve();
447
+ Z.sha256 = Z, Z.sha224 = ve(!0), Z.sha256.hmac = he(), Z.sha224.hmac = he(!0), T ? c.exports = Z : (w.sha256 = Z.sha256, w.sha224 = Z.sha224);
448
448
  })();
449
449
  })(gn);
450
450
  var As = gn.exports;
451
451
  const Ss = /* @__PURE__ */ hn(As);
452
- class Je extends Error {
452
+ class Ye extends Error {
453
453
  }
454
- Je.prototype.name = "InvalidTokenError";
454
+ Ye.prototype.name = "InvalidTokenError";
455
455
  function _s(c) {
456
- return decodeURIComponent(atob(c).replace(/(.)/g, (o, f) => {
457
- let y = f.charCodeAt(0).toString(16).toUpperCase();
458
- return y.length < 2 && (y = "0" + y), "%" + y;
456
+ return decodeURIComponent(atob(c).replace(/(.)/g, (o, d) => {
457
+ let w = d.charCodeAt(0).toString(16).toUpperCase();
458
+ return w.length < 2 && (w = "0" + w), "%" + w;
459
459
  }));
460
460
  }
461
461
  function Es(c) {
@@ -478,23 +478,23 @@ function Es(c) {
478
478
  return atob(o);
479
479
  }
480
480
  }
481
- function bt(c, o) {
481
+ function wt(c, o) {
482
482
  if (typeof c != "string")
483
- throw new Je("Invalid token specified: must be a string");
483
+ throw new Ye("Invalid token specified: must be a string");
484
484
  o || (o = {});
485
- const f = o.header === !0 ? 0 : 1, y = c.split(".")[f];
486
- if (typeof y != "string")
487
- throw new Je(`Invalid token specified: missing part #${f + 1}`);
485
+ const d = o.header === !0 ? 0 : 1, w = c.split(".")[d];
486
+ if (typeof w != "string")
487
+ throw new Ye(`Invalid token specified: missing part #${d + 1}`);
488
488
  let L;
489
489
  try {
490
- L = Es(y);
490
+ L = Es(w);
491
491
  } catch (k) {
492
- throw new Je(`Invalid token specified: invalid base64 for part #${f + 1} (${k.message})`);
492
+ throw new Ye(`Invalid token specified: invalid base64 for part #${d + 1} (${k.message})`);
493
493
  }
494
494
  try {
495
495
  return JSON.parse(L);
496
496
  } catch (k) {
497
- throw new Je(`Invalid token specified: invalid json for part #${f + 1} (${k.message})`);
497
+ throw new Ye(`Invalid token specified: invalid json for part #${d + 1} (${k.message})`);
498
498
  }
499
499
  }
500
500
  if (typeof Promise > "u")
@@ -502,19 +502,19 @@ if (typeof Promise > "u")
502
502
  function mn(c) {
503
503
  if (!(this instanceof mn))
504
504
  throw new Error("The 'Keycloak' constructor must be invoked with 'new'.");
505
- for (var o = this, f, y = [], L, k = {
505
+ for (var o = this, d, w = [], L, k = {
506
506
  enable: !0,
507
507
  callbackList: [],
508
508
  interval: 5
509
- }, B = document.getElementsByTagName("script"), M = 0; M < B.length; M++)
510
- (B[M].src.indexOf("keycloak.js") !== -1 || B[M].src.indexOf("keycloak.min.js") !== -1) && B[M].src.indexOf("version=") !== -1 && (o.iframeVersion = B[M].src.substring(B[M].src.indexOf("version=") + 8).split("&")[0]);
511
- var h = !0, K = Q(console.info), W = Q(console.warn);
509
+ }, T = document.getElementsByTagName("script"), M = 0; M < T.length; M++)
510
+ (T[M].src.indexOf("keycloak.js") !== -1 || T[M].src.indexOf("keycloak.min.js") !== -1) && T[M].src.indexOf("version=") !== -1 && (o.iframeVersion = T[M].src.substring(T[M].src.indexOf("version=") + 8).split("&")[0]);
511
+ var h = !0, W = ee(console.info), z = ee(console.warn);
512
512
  o.init = function(s) {
513
513
  if (o.didInitialize)
514
514
  throw new Error("A 'Keycloak' instance can only be initialized once.");
515
515
  o.didInitialize = !0, o.authenticated = !1, L = H();
516
516
  var a = ["default", "cordova", "cordova-native"];
517
- if (s && a.indexOf(s.adapter) > -1 ? f = $(s.adapter) : s && typeof s.adapter == "object" ? f = s.adapter : window.Cordova || window.cordova ? f = $("cordova") : f = $(), s) {
517
+ if (s && a.indexOf(s.adapter) > -1 ? d = q(s.adapter) : s && typeof s.adapter == "object" ? d = s.adapter : window.Cordova || window.cordova ? d = q("cordova") : d = q(), s) {
518
518
  if (typeof s.useNonce < "u" && (h = s.useNonce), typeof s.checkLoginIframe < "u" && (k.enable = s.checkLoginIframe), s.checkLoginIframeInterval && (k.interval = s.checkLoginIframeInterval), s.onLoad === "login-required" && (o.loginRequired = !0), s.responseMode)
519
519
  if (s.responseMode === "query" || s.responseMode === "fragment")
520
520
  o.responseMode = s.responseMode;
@@ -550,29 +550,29 @@ function mn(c) {
550
550
  }).catch(function(_) {
551
551
  p.setError(_);
552
552
  });
553
- var l = z();
553
+ var l = K();
554
554
  function A() {
555
555
  var _ = function(j) {
556
556
  j || (U.prompt = "none"), s && s.locale && (U.locale = s.locale), o.login(U).then(function() {
557
557
  m.setSuccess();
558
- }).catch(function(fe) {
559
- m.setError(fe);
558
+ }).catch(function(pe) {
559
+ m.setError(pe);
560
560
  });
561
561
  }, E = function() {
562
- var j = document.createElement("iframe"), fe = o.createLoginUrl({ prompt: "none", redirectUri: o.silentCheckSsoRedirectUri });
563
- j.setAttribute("src", fe), j.setAttribute("sandbox", "allow-scripts allow-same-origin"), j.setAttribute("title", "keycloak-silent-check-sso"), j.style.display = "none", document.body.appendChild(j);
564
- var he = function(ee) {
565
- if (!(ee.origin !== window.location.origin || j.contentWindow !== ee.source)) {
566
- var ye = x(ee.data);
567
- de(ye, m), document.body.removeChild(j), window.removeEventListener("message", he);
562
+ var j = document.createElement("iframe"), pe = o.createLoginUrl({ prompt: "none", redirectUri: o.silentCheckSsoRedirectUri });
563
+ j.setAttribute("src", pe), j.setAttribute("sandbox", "allow-scripts allow-same-origin"), j.setAttribute("title", "keycloak-silent-check-sso"), j.style.display = "none", document.body.appendChild(j);
564
+ var ge = function(te) {
565
+ if (!(te.origin !== window.location.origin || j.contentWindow !== te.source)) {
566
+ var ye = x(te.data);
567
+ he(ye, m), document.body.removeChild(j), window.removeEventListener("message", ge);
568
568
  }
569
569
  };
570
- window.addEventListener("message", he);
570
+ window.addEventListener("message", ge);
571
571
  }, U = {};
572
572
  switch (s.onLoad) {
573
573
  case "check-sso":
574
574
  k.enable ? i().then(function() {
575
- T().then(function(j) {
575
+ B().then(function(j) {
576
576
  j ? m.setSuccess() : o.silentCheckSsoRedirectUri ? E() : _(!1);
577
577
  }).catch(function(j) {
578
578
  m.setError(j);
@@ -586,16 +586,16 @@ function mn(c) {
586
586
  throw "Invalid value for onLoad";
587
587
  }
588
588
  }
589
- function v() {
589
+ function b() {
590
590
  var _ = x(window.location.href);
591
591
  if (_ && window.history.replaceState(window.history.state, null, _.newUrl), _ && _.valid)
592
592
  return i().then(function() {
593
- de(_, m);
593
+ he(_, m);
594
594
  }).catch(function(E) {
595
595
  m.setError(E);
596
596
  });
597
- s ? s.token && s.refreshToken ? (X(s.token, s.refreshToken, s.idToken), k.enable ? i().then(function() {
598
- T().then(function(E) {
597
+ s ? s.token && s.refreshToken ? (Z(s.token, s.refreshToken, s.idToken), k.enable ? i().then(function() {
598
+ B().then(function(E) {
599
599
  E ? (o.onAuthSuccess && o.onAuthSuccess(), m.setSuccess(), g()) : m.setSuccess();
600
600
  }).catch(function(E) {
601
601
  m.setError(E);
@@ -606,21 +606,21 @@ function mn(c) {
606
606
  o.onAuthError && o.onAuthError(), s.onLoad ? A() : m.setError(E);
607
607
  })) : s.onLoad ? A() : m.setSuccess() : m.setSuccess();
608
608
  }
609
- function b() {
609
+ function v() {
610
610
  var _ = S(), E = function() {
611
611
  (document.readyState === "interactive" || document.readyState === "complete") && (document.removeEventListener("readystatechange", E), _.setSuccess());
612
612
  };
613
613
  return document.addEventListener("readystatechange", E), E(), _.promise;
614
614
  }
615
615
  return l.then(function() {
616
- b().then(N).then(v).catch(function(_) {
616
+ v().then($).then(b).catch(function(_) {
617
617
  p.setError(_);
618
618
  });
619
619
  }), l.catch(function(_) {
620
620
  p.setError(_);
621
621
  }), p.promise;
622
622
  }, o.login = function(s) {
623
- return f.login(s);
623
+ return d.login(s);
624
624
  };
625
625
  function Y(s) {
626
626
  var a = null, p = window.crypto || window.msCrypto;
@@ -639,16 +639,16 @@ function mn(c) {
639
639
  m[l] = a.charCodeAt(p[l] % a.length);
640
640
  return String.fromCharCode.apply(null, m);
641
641
  }
642
- function Se(s, a) {
642
+ function Ee(s, a) {
643
643
  switch (s) {
644
644
  case "S256":
645
- var p = new Uint8Array(Ss.arrayBuffer(a)), m = nt.fromByteArray(p).replace(/\+/g, "-").replace(/\//g, "_").replace(/\=/g, "");
645
+ var p = new Uint8Array(Ss.arrayBuffer(a)), m = ot.fromByteArray(p).replace(/\+/g, "-").replace(/\//g, "_").replace(/\=/g, "");
646
646
  return m;
647
647
  default:
648
648
  throw "Invalid value for pkceMethod";
649
649
  }
650
650
  }
651
- function be(s) {
651
+ function ve(s) {
652
652
  var a = {
653
653
  id_token: {
654
654
  acr: s
@@ -657,7 +657,7 @@ function mn(c) {
657
657
  return JSON.stringify(a);
658
658
  }
659
659
  o.createLoginUrl = function(s) {
660
- var a = u(), p = u(), m = f.redirectUri(s), l = {
660
+ var a = u(), p = u(), m = d.redirectUri(s), l = {
661
661
  state: a,
662
662
  nonce: p,
663
663
  redirectUri: encodeURIComponent(m)
@@ -665,34 +665,34 @@ function mn(c) {
665
665
  s && s.prompt && (l.prompt = s.prompt);
666
666
  var A;
667
667
  s && s.action == "register" ? A = o.endpoints.register() : A = o.endpoints.authorize();
668
- var v = s && s.scope || o.scope;
669
- v ? v.indexOf("openid") === -1 && (v = "openid " + v) : v = "openid";
670
- var b = A + "?client_id=" + encodeURIComponent(o.clientId) + "&redirect_uri=" + encodeURIComponent(m) + "&state=" + encodeURIComponent(a) + "&response_mode=" + encodeURIComponent(o.responseMode) + "&response_type=" + encodeURIComponent(o.responseType) + "&scope=" + encodeURIComponent(v);
671
- if (h && (b = b + "&nonce=" + encodeURIComponent(p)), s && s.prompt && (b += "&prompt=" + encodeURIComponent(s.prompt)), s && s.maxAge && (b += "&max_age=" + encodeURIComponent(s.maxAge)), s && s.loginHint && (b += "&login_hint=" + encodeURIComponent(s.loginHint)), s && s.idpHint && (b += "&kc_idp_hint=" + encodeURIComponent(s.idpHint)), s && s.action && s.action != "register" && (b += "&kc_action=" + encodeURIComponent(s.action)), s && s.locale && (b += "&ui_locales=" + encodeURIComponent(s.locale)), s && s.acr) {
672
- var _ = be(s.acr);
673
- b += "&claims=" + encodeURIComponent(_);
674
- }
675
- if ((s && s.acrValues || o.acrValues) && (b += "&acr_values=" + encodeURIComponent(s.acrValues || o.acrValues)), o.pkceMethod) {
668
+ var b = s && s.scope || o.scope;
669
+ b ? b.indexOf("openid") === -1 && (b = "openid " + b) : b = "openid";
670
+ var v = A + "?client_id=" + encodeURIComponent(o.clientId) + "&redirect_uri=" + encodeURIComponent(m) + "&state=" + encodeURIComponent(a) + "&response_mode=" + encodeURIComponent(o.responseMode) + "&response_type=" + encodeURIComponent(o.responseType) + "&scope=" + encodeURIComponent(b);
671
+ if (h && (v = v + "&nonce=" + encodeURIComponent(p)), s && s.prompt && (v += "&prompt=" + encodeURIComponent(s.prompt)), s && s.maxAge && (v += "&max_age=" + encodeURIComponent(s.maxAge)), s && s.loginHint && (v += "&login_hint=" + encodeURIComponent(s.loginHint)), s && s.idpHint && (v += "&kc_idp_hint=" + encodeURIComponent(s.idpHint)), s && s.action && s.action != "register" && (v += "&kc_action=" + encodeURIComponent(s.action)), s && s.locale && (v += "&ui_locales=" + encodeURIComponent(s.locale)), s && s.acr) {
672
+ var _ = ve(s.acr);
673
+ v += "&claims=" + encodeURIComponent(_);
674
+ }
675
+ if ((s && s.acrValues || o.acrValues) && (v += "&acr_values=" + encodeURIComponent(s.acrValues || o.acrValues)), o.pkceMethod) {
676
676
  var E = ae(96);
677
677
  l.pkceCodeVerifier = E;
678
- var U = Se(o.pkceMethod, E);
679
- b += "&code_challenge=" + U, b += "&code_challenge_method=" + o.pkceMethod;
678
+ var U = Ee(o.pkceMethod, E);
679
+ v += "&code_challenge=" + U, v += "&code_challenge_method=" + o.pkceMethod;
680
680
  }
681
- return L.add(l), b;
681
+ return L.add(l), v;
682
682
  }, o.logout = function(s) {
683
- return f.logout(s);
683
+ return d.logout(s);
684
684
  }, o.createLogoutUrl = function(s) {
685
- var a = o.endpoints.logout() + "?client_id=" + encodeURIComponent(o.clientId) + "&post_logout_redirect_uri=" + encodeURIComponent(f.redirectUri(s, !1));
685
+ var a = o.endpoints.logout() + "?client_id=" + encodeURIComponent(o.clientId) + "&post_logout_redirect_uri=" + encodeURIComponent(d.redirectUri(s, !1));
686
686
  return o.idToken && (a += "&id_token_hint=" + encodeURIComponent(o.idToken)), a;
687
687
  }, o.register = function(s) {
688
- return f.register(s);
688
+ return d.register(s);
689
689
  }, o.createRegisterUrl = function(s) {
690
690
  return s || (s = {}), s.action = "register", o.createLoginUrl(s);
691
691
  }, o.createAccountUrl = function(s) {
692
692
  var a = ce(), p = void 0;
693
- return typeof a < "u" && (p = a + "/account?referrer=" + encodeURIComponent(o.clientId) + "&referrer_uri=" + encodeURIComponent(f.redirectUri(s))), p;
693
+ return typeof a < "u" && (p = a + "/account?referrer=" + encodeURIComponent(o.clientId) + "&referrer_uri=" + encodeURIComponent(d.redirectUri(s))), p;
694
694
  }, o.accountManagement = function() {
695
- return f.accountManagement();
695
+ return d.accountManagement();
696
696
  }, o.hasRealmRole = function(s) {
697
697
  var a = o.realmAccess;
698
698
  return !!a && a.roles.indexOf(s) >= 0;
@@ -719,7 +719,7 @@ function mn(c) {
719
719
  if (!o.tokenParsed || !o.refreshToken && o.flow != "implicit")
720
720
  throw "Not authenticated";
721
721
  if (o.timeSkew == null)
722
- return K("[KEYCLOAK] Unable to determine if token is expired as timeskew is not set"), !0;
722
+ return W("[KEYCLOAK] Unable to determine if token is expired as timeskew is not set"), !0;
723
723
  var a = o.tokenParsed.exp - Math.ceil((/* @__PURE__ */ new Date()).getTime() / 1e3) + o.timeSkew;
724
724
  if (s) {
725
725
  if (isNaN(s))
@@ -734,33 +734,33 @@ function mn(c) {
734
734
  s = s || 5;
735
735
  var p = function() {
736
736
  var l = !1;
737
- if (s == -1 ? (l = !0, K("[KEYCLOAK] Refreshing token: forced refresh")) : (!o.tokenParsed || o.isTokenExpired(s)) && (l = !0, K("[KEYCLOAK] Refreshing token: token expired")), !l)
737
+ if (s == -1 ? (l = !0, W("[KEYCLOAK] Refreshing token: forced refresh")) : (!o.tokenParsed || o.isTokenExpired(s)) && (l = !0, W("[KEYCLOAK] Refreshing token: token expired")), !l)
738
738
  a.setSuccess(!1);
739
739
  else {
740
- var A = "grant_type=refresh_token&refresh_token=" + o.refreshToken, v = o.endpoints.token();
741
- if (y.push(a), y.length == 1) {
742
- var b = new XMLHttpRequest();
743
- b.open("POST", v, !0), b.setRequestHeader("Content-type", "application/x-www-form-urlencoded"), b.withCredentials = !0, A += "&client_id=" + encodeURIComponent(o.clientId);
740
+ var A = "grant_type=refresh_token&refresh_token=" + o.refreshToken, b = o.endpoints.token();
741
+ if (w.push(a), w.length == 1) {
742
+ var v = new XMLHttpRequest();
743
+ v.open("POST", b, !0), v.setRequestHeader("Content-type", "application/x-www-form-urlencoded"), v.withCredentials = !0, A += "&client_id=" + encodeURIComponent(o.clientId);
744
744
  var _ = (/* @__PURE__ */ new Date()).getTime();
745
- b.onreadystatechange = function() {
746
- if (b.readyState == 4)
747
- if (b.status == 200) {
748
- K("[KEYCLOAK] Token refreshed"), _ = (_ + (/* @__PURE__ */ new Date()).getTime()) / 2;
749
- var E = JSON.parse(b.responseText);
750
- X(E.access_token, E.refresh_token, E.id_token, _), o.onAuthRefreshSuccess && o.onAuthRefreshSuccess();
751
- for (var U = y.pop(); U != null; U = y.pop())
745
+ v.onreadystatechange = function() {
746
+ if (v.readyState == 4)
747
+ if (v.status == 200) {
748
+ W("[KEYCLOAK] Token refreshed"), _ = (_ + (/* @__PURE__ */ new Date()).getTime()) / 2;
749
+ var E = JSON.parse(v.responseText);
750
+ Z(E.access_token, E.refresh_token, E.id_token, _), o.onAuthRefreshSuccess && o.onAuthRefreshSuccess();
751
+ for (var U = w.pop(); U != null; U = w.pop())
752
752
  U.setSuccess(!0);
753
753
  } else {
754
- W("[KEYCLOAK] Failed to refresh token"), b.status == 400 && o.clearToken(), o.onAuthRefreshError && o.onAuthRefreshError();
755
- for (var U = y.pop(); U != null; U = y.pop())
754
+ z("[KEYCLOAK] Failed to refresh token"), v.status == 400 && o.clearToken(), o.onAuthRefreshError && o.onAuthRefreshError();
755
+ for (var U = w.pop(); U != null; U = w.pop())
756
756
  U.setError(!0);
757
757
  }
758
- }, b.send(A);
758
+ }, v.send(A);
759
759
  }
760
760
  }
761
761
  };
762
762
  if (k.enable) {
763
- var m = T();
763
+ var m = B();
764
764
  m.then(function() {
765
765
  p();
766
766
  }).catch(function(l) {
@@ -770,8 +770,8 @@ function mn(c) {
770
770
  p();
771
771
  return a.promise;
772
772
  }, o.clearToken = function() {
773
- o.token && (X(null, null, null), o.onAuthLogout && o.onAuthLogout(), o.loginRequired && o.login());
774
- }, o.setToken = X;
773
+ o.token && (Z(null, null, null), o.onAuthLogout && o.onAuthLogout(), o.loginRequired && o.login());
774
+ }, o.setToken = Z;
775
775
  function ce() {
776
776
  if (typeof o.authServerUrl < "u")
777
777
  return o.authServerUrl.charAt(o.authServerUrl.length - 1) == "/" ? o.authServerUrl + "realms/" + encodeURIComponent(o.realm) : o.authServerUrl + "/realms/" + encodeURIComponent(o.realm);
@@ -779,33 +779,33 @@ function mn(c) {
779
779
  function Fe() {
780
780
  return window.location.origin ? window.location.origin : window.location.protocol + "//" + window.location.hostname + (window.location.port ? ":" + window.location.port : "");
781
781
  }
782
- function de(s, a) {
782
+ function he(s, a) {
783
783
  var p = s.code, m = s.error, l = s.prompt, A = (/* @__PURE__ */ new Date()).getTime();
784
784
  if (s.kc_action_status && o.onActionUpdate && o.onActionUpdate(s.kc_action_status), m) {
785
785
  if (l != "none") {
786
- var v = { error: m, error_description: s.error_description };
787
- o.onAuthError && o.onAuthError(v), a && a.setError(v);
786
+ var b = { error: m, error_description: s.error_description };
787
+ o.onAuthError && o.onAuthError(b), a && a.setError(b);
788
788
  } else
789
789
  a && a.setSuccess();
790
790
  return;
791
791
  } else
792
792
  o.flow != "standard" && (s.access_token || s.id_token) && U(s.access_token, null, s.id_token, !0);
793
793
  if (o.flow != "implicit" && p) {
794
- var b = "code=" + p + "&grant_type=authorization_code", _ = o.endpoints.token(), E = new XMLHttpRequest();
795
- E.open("POST", _, !0), E.setRequestHeader("Content-type", "application/x-www-form-urlencoded"), b += "&client_id=" + encodeURIComponent(o.clientId), b += "&redirect_uri=" + s.redirectUri, s.pkceCodeVerifier && (b += "&code_verifier=" + s.pkceCodeVerifier), E.withCredentials = !0, E.onreadystatechange = function() {
794
+ var v = "code=" + p + "&grant_type=authorization_code", _ = o.endpoints.token(), E = new XMLHttpRequest();
795
+ E.open("POST", _, !0), E.setRequestHeader("Content-type", "application/x-www-form-urlencoded"), v += "&client_id=" + encodeURIComponent(o.clientId), v += "&redirect_uri=" + s.redirectUri, s.pkceCodeVerifier && (v += "&code_verifier=" + s.pkceCodeVerifier), E.withCredentials = !0, E.onreadystatechange = function() {
796
796
  if (E.readyState == 4)
797
797
  if (E.status == 200) {
798
798
  var j = JSON.parse(E.responseText);
799
799
  U(j.access_token, j.refresh_token, j.id_token, o.flow === "standard"), g();
800
800
  } else
801
801
  o.onAuthError && o.onAuthError(), a && a.setError();
802
- }, E.send(b);
802
+ }, E.send(v);
803
803
  }
804
- function U(j, fe, he, ee) {
805
- A = (A + (/* @__PURE__ */ new Date()).getTime()) / 2, X(j, fe, he, A), h && (o.tokenParsed && o.tokenParsed.nonce != s.storedNonce || o.refreshTokenParsed && o.refreshTokenParsed.nonce != s.storedNonce || o.idTokenParsed && o.idTokenParsed.nonce != s.storedNonce) ? (K("[KEYCLOAK] Invalid nonce, clearing token"), o.clearToken(), a && a.setError()) : ee && (o.onAuthSuccess && o.onAuthSuccess(), a && a.setSuccess());
804
+ function U(j, pe, ge, te) {
805
+ A = (A + (/* @__PURE__ */ new Date()).getTime()) / 2, Z(j, pe, ge, A), h && (o.tokenParsed && o.tokenParsed.nonce != s.storedNonce || o.refreshTokenParsed && o.refreshTokenParsed.nonce != s.storedNonce || o.idTokenParsed && o.idTokenParsed.nonce != s.storedNonce) ? (W("[KEYCLOAK] Invalid nonce, clearing token"), o.clearToken(), a && a.setError()) : te && (o.onAuthSuccess && o.onAuthSuccess(), a && a.setSuccess());
806
806
  }
807
807
  }
808
- function z(s) {
808
+ function K(s) {
809
809
  var a = S(), p;
810
810
  c ? typeof c == "string" && (p = c) : p = location.origin + "/keycloak.json";
811
811
  function m(E) {
@@ -892,9 +892,9 @@ function mn(c) {
892
892
  m(A), a.setSuccess();
893
893
  else {
894
894
  if (!c.url) {
895
- for (var v = document.getElementsByTagName("script"), b = 0; b < v.length; b++)
896
- if (v[b].src.match(/.*keycloak\.js/)) {
897
- c.url = v[b].src.substr(0, v[b].src.indexOf("/js/keycloak.js"));
895
+ for (var b = document.getElementsByTagName("script"), v = 0; v < b.length; v++)
896
+ if (b[v].src.match(/.*keycloak\.js/)) {
897
+ c.url = b[v].src.substr(0, b[v].src.indexOf("/js/keycloak.js"));
898
898
  break;
899
899
  }
900
900
  }
@@ -908,11 +908,11 @@ function mn(c) {
908
908
  function we(s) {
909
909
  return s.status == 0 && s.responseText && s.responseURL.startsWith("file:");
910
910
  }
911
- function X(s, a, p, m) {
912
- if (o.tokenTimeoutHandle && (clearTimeout(o.tokenTimeoutHandle), o.tokenTimeoutHandle = null), a ? (o.refreshToken = a, o.refreshTokenParsed = bt(a)) : (delete o.refreshToken, delete o.refreshTokenParsed), p ? (o.idToken = p, o.idTokenParsed = bt(p)) : (delete o.idToken, delete o.idTokenParsed), s) {
913
- if (o.token = s, o.tokenParsed = bt(s), o.sessionId = o.tokenParsed.session_state, o.authenticated = !0, o.subject = o.tokenParsed.sub, o.realmAccess = o.tokenParsed.realm_access, o.resourceAccess = o.tokenParsed.resource_access, m && (o.timeSkew = Math.floor(m / 1e3) - o.tokenParsed.iat), o.timeSkew != null && (K("[KEYCLOAK] Estimated time difference between browser and server is " + o.timeSkew + " seconds"), o.onTokenExpired)) {
911
+ function Z(s, a, p, m) {
912
+ if (o.tokenTimeoutHandle && (clearTimeout(o.tokenTimeoutHandle), o.tokenTimeoutHandle = null), a ? (o.refreshToken = a, o.refreshTokenParsed = wt(a)) : (delete o.refreshToken, delete o.refreshTokenParsed), p ? (o.idToken = p, o.idTokenParsed = wt(p)) : (delete o.idToken, delete o.idTokenParsed), s) {
913
+ if (o.token = s, o.tokenParsed = wt(s), o.sessionId = o.tokenParsed.session_state, o.authenticated = !0, o.subject = o.tokenParsed.sub, o.realmAccess = o.tokenParsed.realm_access, o.resourceAccess = o.tokenParsed.resource_access, m && (o.timeSkew = Math.floor(m / 1e3) - o.tokenParsed.iat), o.timeSkew != null && (W("[KEYCLOAK] Estimated time difference between browser and server is " + o.timeSkew + " seconds"), o.onTokenExpired)) {
914
914
  var l = (o.tokenParsed.exp - (/* @__PURE__ */ new Date()).getTime() / 1e3 + o.timeSkew) * 1e3;
915
- K("[KEYCLOAK] Token expires in " + Math.round(l / 1e3) + " s"), l <= 0 ? o.onTokenExpired() : o.tokenTimeoutHandle = setTimeout(o.onTokenExpired, l);
915
+ W("[KEYCLOAK] Token expires in " + Math.round(l / 1e3) + " s"), l <= 0 ? o.onTokenExpired() : o.tokenTimeoutHandle = setTimeout(o.onTokenExpired, l);
916
916
  }
917
917
  } else
918
918
  delete o.token, delete o.tokenParsed, delete o.subject, delete o.realmAccess, delete o.resourceAccess, o.authenticated = !1;
@@ -958,8 +958,8 @@ function mn(c) {
958
958
  paramsString: "",
959
959
  oauthParams: {}
960
960
  }, l = 0; l < p.length; l++) {
961
- var A = p[l].indexOf("="), v = p[l].slice(0, A);
962
- a.indexOf(v) !== -1 ? m.oauthParams[v] = p[l].slice(A + 1) : (m.paramsString !== "" && (m.paramsString += "&"), m.paramsString += p[l]);
961
+ var A = p[l].indexOf("="), b = p[l].slice(0, A);
962
+ a.indexOf(b) !== -1 ? m.oauthParams[b] = p[l].slice(A + 1) : (m.paramsString !== "" && (m.paramsString += "&"), m.paramsString += p[l]);
963
963
  }
964
964
  return m;
965
965
  }
@@ -976,10 +976,10 @@ function mn(c) {
976
976
  s.resolve = a, s.reject = p;
977
977
  }), s;
978
978
  }
979
- function w(s, a, p) {
980
- var m = null, l = new Promise(function(A, v) {
979
+ function y(s, a, p) {
980
+ var m = null, l = new Promise(function(A, b) {
981
981
  m = setTimeout(function() {
982
- v({ error: p || "Promise is not settled within timeout of " + a + "ms" });
982
+ b({ error: p || "Promise is not settled within timeout of " + a + "ms" });
983
983
  }, a);
984
984
  });
985
985
  return Promise.race([s, l]).finally(function() {
@@ -1000,9 +1000,9 @@ function mn(c) {
1000
1000
  var m = function(l) {
1001
1001
  if (!(l.origin !== k.iframeOrigin || k.iframe.contentWindow !== l.source) && (l.data == "unchanged" || l.data == "changed" || l.data == "error")) {
1002
1002
  l.data != "unchanged" && o.clearToken();
1003
- for (var A = k.callbackList.splice(0, k.callbackList.length), v = A.length - 1; v >= 0; --v) {
1004
- var b = A[v];
1005
- l.data == "error" ? b.setError() : b.setSuccess(l.data == "unchanged");
1003
+ for (var A = k.callbackList.splice(0, k.callbackList.length), b = A.length - 1; b >= 0; --b) {
1004
+ var v = A[b];
1005
+ l.data == "error" ? v.setError() : v.setSuccess(l.data == "unchanged");
1006
1006
  }
1007
1007
  }
1008
1008
  };
@@ -1010,12 +1010,12 @@ function mn(c) {
1010
1010
  }
1011
1011
  function g() {
1012
1012
  k.enable && o.token && setTimeout(function() {
1013
- T().then(function(s) {
1013
+ B().then(function(s) {
1014
1014
  s && g();
1015
1015
  });
1016
1016
  }, k.interval * 1e3);
1017
1017
  }
1018
- function T() {
1018
+ function B() {
1019
1019
  var s = S();
1020
1020
  if (k.iframe && k.iframeOrigin) {
1021
1021
  var a = o.clientId + " " + (o.sessionId ? o.sessionId : "");
@@ -1026,13 +1026,13 @@ function mn(c) {
1026
1026
  s.setSuccess();
1027
1027
  return s.promise;
1028
1028
  }
1029
- function N() {
1029
+ function $() {
1030
1030
  var s = S();
1031
1031
  if (k.enable || o.silentCheckSsoRedirectUri) {
1032
1032
  var a = document.createElement("iframe");
1033
1033
  a.setAttribute("src", o.endpoints.thirdPartyCookiesIframe()), a.setAttribute("sandbox", "allow-scripts allow-same-origin"), a.setAttribute("title", "keycloak-3p-check-iframe"), a.style.display = "none", document.body.appendChild(a);
1034
1034
  var p = function(m) {
1035
- a.contentWindow === m.source && (m.data !== "supported" && m.data !== "unsupported" || (m.data === "unsupported" && (W(
1035
+ a.contentWindow === m.source && (m.data !== "supported" && m.data !== "unsupported" || (m.data === "unsupported" && (z(
1036
1036
  `[KEYCLOAK] Your browser is blocking access to 3rd-party cookies, this means:
1037
1037
 
1038
1038
  - It is not possible to retrieve tokens without redirecting to the Keycloak server (a.k.a. no support for silent authentication).
@@ -1044,141 +1044,141 @@ For more information see: https://www.keycloak.org/docs/latest/securing_apps/#_m
1044
1044
  window.addEventListener("message", p, !1);
1045
1045
  } else
1046
1046
  s.setSuccess();
1047
- return w(s.promise, o.messageReceiveTimeout, "Timeout when waiting for 3rd party check iframe message.");
1047
+ return y(s.promise, o.messageReceiveTimeout, "Timeout when waiting for 3rd party check iframe message.");
1048
1048
  }
1049
- function $(s) {
1049
+ function q(s) {
1050
1050
  if (!s || s == "default")
1051
1051
  return {
1052
- login: function(v) {
1053
- return window.location.assign(o.createLoginUrl(v)), S().promise;
1052
+ login: function(b) {
1053
+ return window.location.assign(o.createLoginUrl(b)), S().promise;
1054
1054
  },
1055
- logout: function(v) {
1056
- return window.location.replace(o.createLogoutUrl(v)), S().promise;
1055
+ logout: function(b) {
1056
+ return window.location.replace(o.createLogoutUrl(b)), S().promise;
1057
1057
  },
1058
- register: function(v) {
1059
- return window.location.assign(o.createRegisterUrl(v)), S().promise;
1058
+ register: function(b) {
1059
+ return window.location.assign(o.createRegisterUrl(b)), S().promise;
1060
1060
  },
1061
1061
  accountManagement: function() {
1062
- var v = o.createAccountUrl();
1063
- if (typeof v < "u")
1064
- window.location.href = v;
1062
+ var b = o.createAccountUrl();
1063
+ if (typeof b < "u")
1064
+ window.location.href = b;
1065
1065
  else
1066
1066
  throw "Not supported by the OIDC server";
1067
1067
  return S().promise;
1068
1068
  },
1069
- redirectUri: function(v, b) {
1070
- return v && v.redirectUri ? v.redirectUri : o.redirectUri ? o.redirectUri : location.href;
1069
+ redirectUri: function(b, v) {
1070
+ return b && b.redirectUri ? b.redirectUri : o.redirectUri ? o.redirectUri : location.href;
1071
1071
  }
1072
1072
  };
1073
1073
  if (s == "cordova") {
1074
1074
  k.enable = !1;
1075
- var a = function(v, b, _) {
1076
- return window.cordova && window.cordova.InAppBrowser ? window.cordova.InAppBrowser.open(v, b, _) : window.open(v, b, _);
1077
- }, p = function(v) {
1078
- return v && v.cordovaOptions ? Object.keys(v.cordovaOptions).reduce(function(b, _) {
1079
- return b[_] = v.cordovaOptions[_], b;
1075
+ var a = function(b, v, _) {
1076
+ return window.cordova && window.cordova.InAppBrowser ? window.cordova.InAppBrowser.open(b, v, _) : window.open(b, v, _);
1077
+ }, p = function(b) {
1078
+ return b && b.cordovaOptions ? Object.keys(b.cordovaOptions).reduce(function(v, _) {
1079
+ return v[_] = b.cordovaOptions[_], v;
1080
1080
  }, {}) : {};
1081
- }, m = function(v) {
1082
- return Object.keys(v).reduce(function(b, _) {
1083
- return b.push(_ + "=" + v[_]), b;
1081
+ }, m = function(b) {
1082
+ return Object.keys(b).reduce(function(v, _) {
1083
+ return v.push(_ + "=" + b[_]), v;
1084
1084
  }, []).join(",");
1085
- }, l = function(v) {
1086
- var b = p(v);
1087
- return b.location = "no", v && v.prompt == "none" && (b.hidden = "yes"), m(b);
1085
+ }, l = function(b) {
1086
+ var v = p(b);
1087
+ return v.location = "no", b && b.prompt == "none" && (v.hidden = "yes"), m(v);
1088
1088
  }, A = function() {
1089
1089
  return o.redirectUri || "http://localhost";
1090
1090
  };
1091
1091
  return {
1092
- login: function(v) {
1093
- var b = S(), _ = l(v), E = o.createLoginUrl(v), U = a(E, "_blank", _), j = !1, fe = !1, he = function() {
1094
- fe = !0, U.close();
1092
+ login: function(b) {
1093
+ var v = S(), _ = l(b), E = o.createLoginUrl(b), U = a(E, "_blank", _), j = !1, pe = !1, ge = function() {
1094
+ pe = !0, U.close();
1095
1095
  };
1096
- return U.addEventListener("loadstart", function(ee) {
1097
- if (ee.url.indexOf(A()) == 0) {
1098
- var ye = x(ee.url);
1099
- de(ye, b), he(), j = !0;
1096
+ return U.addEventListener("loadstart", function(te) {
1097
+ if (te.url.indexOf(A()) == 0) {
1098
+ var ye = x(te.url);
1099
+ he(ye, v), ge(), j = !0;
1100
1100
  }
1101
- }), U.addEventListener("loaderror", function(ee) {
1101
+ }), U.addEventListener("loaderror", function(te) {
1102
1102
  if (!j)
1103
- if (ee.url.indexOf(A()) == 0) {
1104
- var ye = x(ee.url);
1105
- de(ye, b), he(), j = !0;
1103
+ if (te.url.indexOf(A()) == 0) {
1104
+ var ye = x(te.url);
1105
+ he(ye, v), ge(), j = !0;
1106
1106
  } else
1107
- b.setError(), he();
1108
- }), U.addEventListener("exit", function(ee) {
1109
- fe || b.setError({
1107
+ v.setError(), ge();
1108
+ }), U.addEventListener("exit", function(te) {
1109
+ pe || v.setError({
1110
1110
  reason: "closed_by_user"
1111
1111
  });
1112
- }), b.promise;
1112
+ }), v.promise;
1113
1113
  },
1114
- logout: function(v) {
1115
- var b = S(), _ = o.createLogoutUrl(v), E = a(_, "_blank", "location=no,hidden=yes,clearcache=yes"), U;
1114
+ logout: function(b) {
1115
+ var v = S(), _ = o.createLogoutUrl(b), E = a(_, "_blank", "location=no,hidden=yes,clearcache=yes"), U;
1116
1116
  return E.addEventListener("loadstart", function(j) {
1117
1117
  j.url.indexOf(A()) == 0 && E.close();
1118
1118
  }), E.addEventListener("loaderror", function(j) {
1119
1119
  j.url.indexOf(A()) == 0 || (U = !0), E.close();
1120
1120
  }), E.addEventListener("exit", function(j) {
1121
- U ? b.setError() : (o.clearToken(), b.setSuccess());
1122
- }), b.promise;
1121
+ U ? v.setError() : (o.clearToken(), v.setSuccess());
1122
+ }), v.promise;
1123
1123
  },
1124
- register: function(v) {
1125
- var b = S(), _ = o.createRegisterUrl(), E = l(v), U = a(_, "_blank", E);
1124
+ register: function(b) {
1125
+ var v = S(), _ = o.createRegisterUrl(), E = l(b), U = a(_, "_blank", E);
1126
1126
  return U.addEventListener("loadstart", function(j) {
1127
1127
  if (j.url.indexOf(A()) == 0) {
1128
1128
  U.close();
1129
- var fe = x(j.url);
1130
- de(fe, b);
1129
+ var pe = x(j.url);
1130
+ he(pe, v);
1131
1131
  }
1132
- }), b.promise;
1132
+ }), v.promise;
1133
1133
  },
1134
1134
  accountManagement: function() {
1135
- var v = o.createAccountUrl();
1136
- if (typeof v < "u") {
1137
- var b = a(v, "_blank", "location=no");
1138
- b.addEventListener("loadstart", function(_) {
1139
- _.url.indexOf(A()) == 0 && b.close();
1135
+ var b = o.createAccountUrl();
1136
+ if (typeof b < "u") {
1137
+ var v = a(b, "_blank", "location=no");
1138
+ v.addEventListener("loadstart", function(_) {
1139
+ _.url.indexOf(A()) == 0 && v.close();
1140
1140
  });
1141
1141
  } else
1142
1142
  throw "Not supported by the OIDC server";
1143
1143
  },
1144
- redirectUri: function(v) {
1144
+ redirectUri: function(b) {
1145
1145
  return A();
1146
1146
  }
1147
1147
  };
1148
1148
  }
1149
1149
  if (s == "cordova-native")
1150
1150
  return k.enable = !1, {
1151
- login: function(v) {
1152
- var b = S(), _ = o.createLoginUrl(v);
1151
+ login: function(b) {
1152
+ var v = S(), _ = o.createLoginUrl(b);
1153
1153
  return universalLinks.subscribe("keycloak", function(E) {
1154
1154
  universalLinks.unsubscribe("keycloak"), window.cordova.plugins.browsertab.close();
1155
1155
  var U = x(E.url);
1156
- de(U, b);
1157
- }), window.cordova.plugins.browsertab.openUrl(_), b.promise;
1156
+ he(U, v);
1157
+ }), window.cordova.plugins.browsertab.openUrl(_), v.promise;
1158
1158
  },
1159
- logout: function(v) {
1160
- var b = S(), _ = o.createLogoutUrl(v);
1159
+ logout: function(b) {
1160
+ var v = S(), _ = o.createLogoutUrl(b);
1161
1161
  return universalLinks.subscribe("keycloak", function(E) {
1162
- universalLinks.unsubscribe("keycloak"), window.cordova.plugins.browsertab.close(), o.clearToken(), b.setSuccess();
1163
- }), window.cordova.plugins.browsertab.openUrl(_), b.promise;
1162
+ universalLinks.unsubscribe("keycloak"), window.cordova.plugins.browsertab.close(), o.clearToken(), v.setSuccess();
1163
+ }), window.cordova.plugins.browsertab.openUrl(_), v.promise;
1164
1164
  },
1165
- register: function(v) {
1166
- var b = S(), _ = o.createRegisterUrl(v);
1165
+ register: function(b) {
1166
+ var v = S(), _ = o.createRegisterUrl(b);
1167
1167
  return universalLinks.subscribe("keycloak", function(E) {
1168
1168
  universalLinks.unsubscribe("keycloak"), window.cordova.plugins.browsertab.close();
1169
1169
  var U = x(E.url);
1170
- de(U, b);
1171
- }), window.cordova.plugins.browsertab.openUrl(_), b.promise;
1170
+ he(U, v);
1171
+ }), window.cordova.plugins.browsertab.openUrl(_), v.promise;
1172
1172
  },
1173
1173
  accountManagement: function() {
1174
- var v = o.createAccountUrl();
1175
- if (typeof v < "u")
1176
- window.cordova.plugins.browsertab.openUrl(v);
1174
+ var b = o.createAccountUrl();
1175
+ if (typeof b < "u")
1176
+ window.cordova.plugins.browsertab.openUrl(b);
1177
1177
  else
1178
1178
  throw "Not supported by the OIDC server";
1179
1179
  },
1180
- redirectUri: function(v) {
1181
- return v && v.redirectUri ? v.redirectUri : o.redirectUri ? o.redirectUri : "http://localhost";
1180
+ redirectUri: function(b) {
1181
+ return b && b.redirectUri ? b.redirectUri : o.redirectUri ? o.redirectUri : "http://localhost";
1182
1182
  }
1183
1183
  };
1184
1184
  throw "invalid adapter type: " + s;
@@ -1195,8 +1195,8 @@ For more information see: https://www.keycloak.org/docs/latest/securing_apps/#_m
1195
1195
  var A = localStorage.getItem(l);
1196
1196
  if (A)
1197
1197
  try {
1198
- var v = JSON.parse(A).expires;
1199
- (!v || v < p) && localStorage.removeItem(l);
1198
+ var b = JSON.parse(A).expires;
1199
+ (!b || b < p) && localStorage.removeItem(l);
1200
1200
  } catch {
1201
1201
  localStorage.removeItem(l);
1202
1202
  }
@@ -1213,9 +1213,9 @@ For more information see: https://www.keycloak.org/docs/latest/securing_apps/#_m
1213
1213
  var m = "kc-callback-" + p.state;
1214
1214
  p.expires = (/* @__PURE__ */ new Date()).getTime() + 60 * 60 * 1e3, localStorage.setItem(m, JSON.stringify(p));
1215
1215
  };
1216
- }, Z = function() {
1217
- if (!(this instanceof Z))
1218
- return new Z();
1216
+ }, G = function() {
1217
+ if (!(this instanceof G))
1218
+ return new G();
1219
1219
  var s = this;
1220
1220
  s.get = function(l) {
1221
1221
  if (l) {
@@ -1232,16 +1232,16 @@ For more information see: https://www.keycloak.org/docs/latest/securing_apps/#_m
1232
1232
  var A = /* @__PURE__ */ new Date();
1233
1233
  return A.setTime(A.getTime() + l * 60 * 1e3), A;
1234
1234
  }, p = function(l) {
1235
- for (var A = l + "=", v = document.cookie.split(";"), b = 0; b < v.length; b++) {
1236
- for (var _ = v[b]; _.charAt(0) == " "; )
1235
+ for (var A = l + "=", b = document.cookie.split(";"), v = 0; v < b.length; v++) {
1236
+ for (var _ = b[v]; _.charAt(0) == " "; )
1237
1237
  _ = _.substring(1);
1238
1238
  if (_.indexOf(A) == 0)
1239
1239
  return _.substring(A.length, _.length);
1240
1240
  }
1241
1241
  return "";
1242
- }, m = function(l, A, v) {
1243
- var b = l + "=" + A + "; expires=" + v.toUTCString() + "; ";
1244
- document.cookie = b;
1242
+ }, m = function(l, A, b) {
1243
+ var v = l + "=" + A + "; expires=" + b.toUTCString() + "; ";
1244
+ document.cookie = v;
1245
1245
  };
1246
1246
  };
1247
1247
  function H() {
@@ -1249,58 +1249,58 @@ For more information see: https://www.keycloak.org/docs/latest/securing_apps/#_m
1249
1249
  return new F();
1250
1250
  } catch {
1251
1251
  }
1252
- return new Z();
1252
+ return new G();
1253
1253
  }
1254
- function Q(s) {
1254
+ function ee(s) {
1255
1255
  return function() {
1256
1256
  o.enableLogging && s.apply(console, Array.prototype.slice.call(arguments));
1257
1257
  };
1258
1258
  }
1259
1259
  }
1260
- const ot = new mn(), Ps = (c, o) => {
1261
- ot.init({ onLoad: "login-required" }).then(async (f) => {
1262
- f && await Ts(), c();
1263
- }).catch((f) => {
1264
- o(f);
1260
+ const rt = new mn(), Ps = (c, o) => {
1261
+ rt.init({ onLoad: "login-required" }).then(async (d) => {
1262
+ d && await Bs(), c();
1263
+ }).catch((d) => {
1264
+ o(d);
1265
1265
  });
1266
- }, Ts = async () => {
1267
- const c = await ot.loadUserInfo();
1266
+ }, Bs = async () => {
1267
+ const c = await rt.loadUserInfo();
1268
1268
  se.User.email = c.email ?? "", se.User.emailVerified = c.email_verified === !0, se.User.firstName = c.given_name ?? "", se.User.lastName = c.family_name ?? "", se.User.name = c.name ?? "", se.User.sub = c.sub ?? "", se.User.username = c.preferred_username ?? "", se.User.roles = [...c.role ?? []], se.User.groups = [...c.group ?? []], se.User.IsInRole = (o) => se.User.roles.includes(o);
1269
- }, Bs = () => {
1270
- ot.logout({
1269
+ }, Ts = () => {
1270
+ rt.logout({
1271
1271
  redirectUri: location.origin
1272
1272
  }).then(() => {
1273
1273
  sessionStorage.removeItem("user-info");
1274
1274
  });
1275
1275
  }, se = {
1276
- Instance: ot,
1276
+ Instance: rt,
1277
1277
  User: {},
1278
1278
  CallLogin: Ps,
1279
- CallLogout: Bs
1279
+ CallLogout: Ts
1280
1280
  };
1281
- var vn = { exports: {} };
1281
+ var bn = { exports: {} };
1282
1282
  /*!
1283
1283
  * sweetalert2 v11.4.8
1284
1284
  * Released under the MIT License.
1285
1285
  */
1286
1286
  (function(c, o) {
1287
- (function(f, y) {
1288
- c.exports = y();
1287
+ (function(d, w) {
1288
+ c.exports = w();
1289
1289
  })(Ae, function() {
1290
- const f = "SweetAlert2:", y = (e) => {
1290
+ const d = "SweetAlert2:", w = (e) => {
1291
1291
  const t = [];
1292
1292
  for (let n = 0; n < e.length; n++)
1293
1293
  t.indexOf(e[n]) === -1 && t.push(e[n]);
1294
1294
  return t;
1295
- }, L = (e) => e.charAt(0).toUpperCase() + e.slice(1), k = (e) => Array.prototype.slice.call(e), B = (e) => {
1296
- console.warn("".concat(f, " ").concat(typeof e == "object" ? e.join(" ") : e));
1295
+ }, L = (e) => e.charAt(0).toUpperCase() + e.slice(1), k = (e) => Array.prototype.slice.call(e), T = (e) => {
1296
+ console.warn("".concat(d, " ").concat(typeof e == "object" ? e.join(" ") : e));
1297
1297
  }, M = (e) => {
1298
- console.error("".concat(f, " ").concat(e));
1299
- }, h = [], K = (e) => {
1300
- h.includes(e) || (h.push(e), B(e));
1301
- }, W = (e, t) => {
1302
- K('"'.concat(e, '" is deprecated and will be removed in the next major release. Please use "').concat(t, '" instead.'));
1303
- }, Y = (e) => typeof e == "function" ? e() : e, ae = (e) => e && typeof e.toPromise == "function", V = (e) => ae(e) ? e.toPromise() : Promise.resolve(e), Se = (e) => e && Promise.resolve(e) === e, be = {
1298
+ console.error("".concat(d, " ").concat(e));
1299
+ }, h = [], W = (e) => {
1300
+ h.includes(e) || (h.push(e), T(e));
1301
+ }, z = (e, t) => {
1302
+ W('"'.concat(e, '" is deprecated and will be removed in the next major release. Please use "').concat(t, '" instead.'));
1303
+ }, Y = (e) => typeof e == "function" ? e() : e, ae = (e) => e && typeof e.toPromise == "function", V = (e) => ae(e) ? e.toPromise() : Promise.resolve(e), Ee = (e) => e && Promise.resolve(e) === e, ve = {
1304
1304
  title: "",
1305
1305
  titleText: "",
1306
1306
  text: "",
@@ -1388,25 +1388,25 @@ var vn = { exports: {} };
1388
1388
  didClose: void 0,
1389
1389
  didDestroy: void 0,
1390
1390
  scrollbarPadding: !0
1391
- }, ce = ["allowEscapeKey", "allowOutsideClick", "background", "buttonsStyling", "cancelButtonAriaLabel", "cancelButtonColor", "cancelButtonText", "closeButtonAriaLabel", "closeButtonHtml", "color", "confirmButtonAriaLabel", "confirmButtonColor", "confirmButtonText", "currentProgressStep", "customClass", "denyButtonAriaLabel", "denyButtonColor", "denyButtonText", "didClose", "didDestroy", "footer", "hideClass", "html", "icon", "iconColor", "iconHtml", "imageAlt", "imageHeight", "imageUrl", "imageWidth", "preConfirm", "preDeny", "progressSteps", "returnFocus", "reverseButtons", "showCancelButton", "showCloseButton", "showConfirmButton", "showDenyButton", "text", "title", "titleText", "willClose"], Fe = {}, de = ["allowOutsideClick", "allowEnterKey", "backdrop", "focusConfirm", "focusDeny", "focusCancel", "returnFocus", "heightAuto", "keydownListenerCapture"], z = (e) => Object.prototype.hasOwnProperty.call(be, e), we = (e) => ce.indexOf(e) !== -1, X = (e) => Fe[e], u = (e) => {
1392
- z(e) || B('Unknown parameter "'.concat(e, '"'));
1391
+ }, ce = ["allowEscapeKey", "allowOutsideClick", "background", "buttonsStyling", "cancelButtonAriaLabel", "cancelButtonColor", "cancelButtonText", "closeButtonAriaLabel", "closeButtonHtml", "color", "confirmButtonAriaLabel", "confirmButtonColor", "confirmButtonText", "currentProgressStep", "customClass", "denyButtonAriaLabel", "denyButtonColor", "denyButtonText", "didClose", "didDestroy", "footer", "hideClass", "html", "icon", "iconColor", "iconHtml", "imageAlt", "imageHeight", "imageUrl", "imageWidth", "preConfirm", "preDeny", "progressSteps", "returnFocus", "reverseButtons", "showCancelButton", "showCloseButton", "showConfirmButton", "showDenyButton", "text", "title", "titleText", "willClose"], Fe = {}, he = ["allowOutsideClick", "allowEnterKey", "backdrop", "focusConfirm", "focusDeny", "focusCancel", "returnFocus", "heightAuto", "keydownListenerCapture"], K = (e) => Object.prototype.hasOwnProperty.call(ve, e), we = (e) => ce.indexOf(e) !== -1, Z = (e) => Fe[e], u = (e) => {
1392
+ K(e) || T('Unknown parameter "'.concat(e, '"'));
1393
1393
  }, x = (e) => {
1394
- de.includes(e) && B('The parameter "'.concat(e, '" is incompatible with toasts'));
1394
+ he.includes(e) && T('The parameter "'.concat(e, '" is incompatible with toasts'));
1395
1395
  }, I = (e) => {
1396
- X(e) && W(e, X(e));
1396
+ Z(e) && z(e, Z(e));
1397
1397
  }, C = (e) => {
1398
- !e.backdrop && e.allowOutsideClick && B('"allowOutsideClick" parameter requires `backdrop` parameter to be set to `true`');
1398
+ !e.backdrop && e.allowOutsideClick && T('"allowOutsideClick" parameter requires `backdrop` parameter to be set to `true`');
1399
1399
  for (const t in e)
1400
1400
  u(t), e.toast && x(t), I(t);
1401
- }, S = "swal2-", w = (e) => {
1401
+ }, S = "swal2-", y = (e) => {
1402
1402
  const t = {};
1403
1403
  for (const n in e)
1404
1404
  t[e[n]] = S + e[n];
1405
1405
  return t;
1406
- }, i = w(["container", "shown", "height-auto", "iosfix", "popup", "modal", "no-backdrop", "no-transition", "toast", "toast-shown", "show", "hide", "close", "title", "html-container", "actions", "confirm", "deny", "cancel", "default-outline", "footer", "icon", "icon-content", "image", "input", "file", "range", "select", "radio", "checkbox", "label", "textarea", "inputerror", "input-label", "validation-message", "progress-steps", "active-progress-step", "progress-step", "progress-step-line", "loader", "loading", "styled", "top", "top-start", "top-end", "top-left", "top-right", "center", "center-start", "center-end", "center-left", "center-right", "bottom", "bottom-start", "bottom-end", "bottom-left", "bottom-right", "grow-row", "grow-column", "grow-fullscreen", "rtl", "timer-progress-bar", "timer-progress-bar-container", "scrollbar-measure", "icon-success", "icon-warning", "icon-info", "icon-question", "icon-error"]), g = w(["success", "warning", "info", "question", "error"]), T = () => document.body.querySelector(".".concat(i.container)), N = (e) => {
1407
- const t = T();
1406
+ }, i = y(["container", "shown", "height-auto", "iosfix", "popup", "modal", "no-backdrop", "no-transition", "toast", "toast-shown", "show", "hide", "close", "title", "html-container", "actions", "confirm", "deny", "cancel", "default-outline", "footer", "icon", "icon-content", "image", "input", "file", "range", "select", "radio", "checkbox", "label", "textarea", "inputerror", "input-label", "validation-message", "progress-steps", "active-progress-step", "progress-step", "progress-step-line", "loader", "loading", "styled", "top", "top-start", "top-end", "top-left", "top-right", "center", "center-start", "center-end", "center-left", "center-right", "bottom", "bottom-start", "bottom-end", "bottom-left", "bottom-right", "grow-row", "grow-column", "grow-fullscreen", "rtl", "timer-progress-bar", "timer-progress-bar-container", "scrollbar-measure", "icon-success", "icon-warning", "icon-info", "icon-question", "icon-error"]), g = y(["success", "warning", "info", "question", "error"]), B = () => document.body.querySelector(".".concat(i.container)), $ = (e) => {
1407
+ const t = B();
1408
1408
  return t ? t.querySelector(e) : null;
1409
- }, $ = (e) => N(".".concat(e)), F = () => $(i.popup), Z = () => $(i.icon), H = () => $(i.title), Q = () => $(i["html-container"]), s = () => $(i.image), a = () => $(i["progress-steps"]), p = () => $(i["validation-message"]), m = () => N(".".concat(i.actions, " .").concat(i.confirm)), l = () => N(".".concat(i.actions, " .").concat(i.deny)), A = () => $(i["input-label"]), v = () => N(".".concat(i.loader)), b = () => N(".".concat(i.actions, " .").concat(i.cancel)), _ = () => $(i.actions), E = () => $(i.footer), U = () => $(i["timer-progress-bar"]), j = () => $(i.close), fe = `
1409
+ }, q = (e) => $(".".concat(e)), F = () => q(i.popup), G = () => q(i.icon), H = () => q(i.title), ee = () => q(i["html-container"]), s = () => q(i.image), a = () => q(i["progress-steps"]), p = () => q(i["validation-message"]), m = () => $(".".concat(i.actions, " .").concat(i.confirm)), l = () => $(".".concat(i.actions, " .").concat(i.deny)), A = () => q(i["input-label"]), b = () => $(".".concat(i.loader)), v = () => $(".".concat(i.actions, " .").concat(i.cancel)), _ = () => q(i.actions), E = () => q(i.footer), U = () => q(i["timer-progress-bar"]), j = () => q(i.close), pe = `
1410
1410
  a[href],
1411
1411
  area[href],
1412
1412
  input:not([disabled]),
@@ -1421,21 +1421,21 @@ var vn = { exports: {} };
1421
1421
  audio[controls],
1422
1422
  video[controls],
1423
1423
  summary
1424
- `, he = () => {
1424
+ `, ge = () => {
1425
1425
  const e = k(F().querySelectorAll('[tabindex]:not([tabindex="-1"]):not([tabindex="0"])')).sort((n, r) => {
1426
- const d = parseInt(n.getAttribute("tabindex")), P = parseInt(r.getAttribute("tabindex"));
1427
- return d > P ? 1 : d < P ? -1 : 0;
1428
- }), t = k(F().querySelectorAll(fe)).filter((n) => n.getAttribute("tabindex") !== "-1");
1429
- return y(e.concat(t)).filter((n) => le(n));
1430
- }, ee = () => Ce(document.body, i.shown) && !Ce(document.body, i["toast-shown"]) && !Ce(document.body, i["no-backdrop"]), ye = () => F() && Ce(F(), i.toast), bn = () => F().hasAttribute("data-loading"), Le = {
1426
+ const f = parseInt(n.getAttribute("tabindex")), P = parseInt(r.getAttribute("tabindex"));
1427
+ return f > P ? 1 : f < P ? -1 : 0;
1428
+ }), t = k(F().querySelectorAll(pe)).filter((n) => n.getAttribute("tabindex") !== "-1");
1429
+ return w(e.concat(t)).filter((n) => le(n));
1430
+ }, te = () => Ce(document.body, i.shown) && !Ce(document.body, i["toast-shown"]) && !Ce(document.body, i["no-backdrop"]), ye = () => F() && Ce(F(), i.toast), vn = () => F().hasAttribute("data-loading"), Le = {
1431
1431
  previousBodyPadding: null
1432
- }, te = (e, t) => {
1432
+ }, ne = (e, t) => {
1433
1433
  if (e.textContent = "", t) {
1434
1434
  const r = new DOMParser().parseFromString(t, "text/html");
1435
- k(r.querySelector("head").childNodes).forEach((d) => {
1436
- e.appendChild(d);
1437
- }), k(r.querySelector("body").childNodes).forEach((d) => {
1438
- e.appendChild(d);
1435
+ k(r.querySelector("head").childNodes).forEach((f) => {
1436
+ e.appendChild(f);
1437
+ }), k(r.querySelector("body").childNodes).forEach((f) => {
1438
+ e.appendChild(f);
1439
1439
  });
1440
1440
  }
1441
1441
  }, Ce = (e, t) => {
@@ -1450,13 +1450,13 @@ var vn = { exports: {} };
1450
1450
  k(e.classList).forEach((n) => {
1451
1451
  !Object.values(i).includes(n) && !Object.values(g).includes(n) && !Object.values(t.showClass).includes(n) && e.classList.remove(n);
1452
1452
  });
1453
- }, pe = (e, t, n) => {
1453
+ }, me = (e, t, n) => {
1454
1454
  if (wn(e, t), t.customClass && t.customClass[n]) {
1455
1455
  if (typeof t.customClass[n] != "string" && !t.customClass[n].forEach)
1456
- return B("Invalid type of customClass.".concat(n, '! Expected string or iterable object, got "').concat(typeof t.customClass[n], '"'));
1456
+ return T("Invalid type of customClass.".concat(n, '! Expected string or iterable object, got "').concat(typeof t.customClass[n], '"'));
1457
1457
  D(e, t.customClass[n]);
1458
1458
  }
1459
- }, rt = (e, t) => {
1459
+ }, st = (e, t) => {
1460
1460
  if (!t)
1461
1461
  return null;
1462
1462
  switch (t) {
@@ -1473,42 +1473,42 @@ var vn = { exports: {} };
1473
1473
  default:
1474
1474
  return e.querySelector(".".concat(i.popup, " > .").concat(i.input));
1475
1475
  }
1476
- }, yt = (e) => {
1476
+ }, Ct = (e) => {
1477
1477
  if (e.focus(), e.type !== "file") {
1478
1478
  const t = e.value;
1479
1479
  e.value = "", e.value = t;
1480
1480
  }
1481
- }, kt = (e, t, n) => {
1481
+ }, At = (e, t, n) => {
1482
1482
  !e || !t || (typeof t == "string" && (t = t.split(/\s+/).filter(Boolean)), t.forEach((r) => {
1483
- Array.isArray(e) ? e.forEach((d) => {
1484
- n ? d.classList.add(r) : d.classList.remove(r);
1483
+ Array.isArray(e) ? e.forEach((f) => {
1484
+ n ? f.classList.add(r) : f.classList.remove(r);
1485
1485
  }) : n ? e.classList.add(r) : e.classList.remove(r);
1486
1486
  }));
1487
1487
  }, D = (e, t) => {
1488
- kt(e, t, !0);
1488
+ At(e, t, !0);
1489
1489
  }, ke = (e, t) => {
1490
- kt(e, t, !1);
1491
- }, _e = (e, t) => {
1490
+ At(e, t, !1);
1491
+ }, Pe = (e, t) => {
1492
1492
  const n = k(e.childNodes);
1493
1493
  for (let r = 0; r < n.length; r++)
1494
1494
  if (Ce(n[r], t))
1495
1495
  return n[r];
1496
- }, je = (e, t, n) => {
1496
+ }, Ve = (e, t, n) => {
1497
1497
  n === "".concat(parseInt(n)) && (n = parseInt(n)), n || parseInt(n) === 0 ? e.style[t] = typeof n == "number" ? "".concat(n, "px") : n : e.style.removeProperty(t);
1498
- }, G = function(e) {
1498
+ }, Q = function(e) {
1499
1499
  let t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : "flex";
1500
1500
  e.style.display = t;
1501
- }, ne = (e) => {
1501
+ }, oe = (e) => {
1502
1502
  e.style.display = "none";
1503
- }, xt = (e, t, n, r) => {
1504
- const d = e.querySelector(t);
1505
- d && (d.style[n] = r);
1506
- }, Xe = (e, t, n) => {
1507
- t ? G(e, n) : ne(e);
1508
- }, le = (e) => !!(e && (e.offsetWidth || e.offsetHeight || e.getClientRects().length)), yn = () => !le(m()) && !le(l()) && !le(b()), Ct = (e) => e.scrollHeight > e.clientHeight, At = (e) => {
1503
+ }, St = (e, t, n, r) => {
1504
+ const f = e.querySelector(t);
1505
+ f && (f.style[n] = r);
1506
+ }, Ze = (e, t, n) => {
1507
+ t ? Q(e, n) : oe(e);
1508
+ }, le = (e) => !!(e && (e.offsetWidth || e.offsetHeight || e.getClientRects().length)), yn = () => !le(m()) && !le(l()) && !le(v()), _t = (e) => e.scrollHeight > e.clientHeight, Et = (e) => {
1509
1509
  const t = window.getComputedStyle(e), n = parseFloat(t.getPropertyValue("animation-duration") || "0"), r = parseFloat(t.getPropertyValue("transition-duration") || "0");
1510
1510
  return n > 0 || r > 0;
1511
- }, st = function(e) {
1511
+ }, it = function(e) {
1512
1512
  let t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !1;
1513
1513
  const n = U();
1514
1514
  le(n) && (t && (n.style.transition = "none", n.style.width = "100%"), setTimeout(() => {
@@ -1519,7 +1519,7 @@ var vn = { exports: {} };
1519
1519
  e.style.removeProperty("transition"), e.style.width = "100%";
1520
1520
  const n = parseInt(window.getComputedStyle(e).width), r = t / n * 100;
1521
1521
  e.style.removeProperty("transition"), e.style.width = "".concat(r, "%");
1522
- }, St = () => typeof window > "u" || typeof document > "u", xn = 100, O = {}, Cn = () => {
1522
+ }, Pt = () => typeof window > "u" || typeof document > "u", xn = 100, O = {}, Cn = () => {
1523
1523
  O.previousActiveElement && O.previousActiveElement.focus ? (O.previousActiveElement.focus(), O.previousActiveElement = null) : document.body && document.body.focus();
1524
1524
  }, An = (e) => new Promise((t) => {
1525
1525
  if (!e)
@@ -1562,44 +1562,44 @@ var vn = { exports: {} };
1562
1562
  </div>
1563
1563
  </div>
1564
1564
  `).replace(/(^|\n)\s*/g, ""), _n = () => {
1565
- const e = T();
1565
+ const e = B();
1566
1566
  return e ? (e.remove(), ke([document.documentElement, document.body], [i["no-backdrop"], i["toast-shown"], i["has-column"]]), !0) : !1;
1567
- }, Be = () => {
1567
+ }, Te = () => {
1568
1568
  O.currentInstance.resetValidationMessage();
1569
1569
  }, En = () => {
1570
- const e = F(), t = _e(e, i.input), n = _e(e, i.file), r = e.querySelector(".".concat(i.range, " input")), d = e.querySelector(".".concat(i.range, " output")), P = _e(e, i.select), J = e.querySelector(".".concat(i.checkbox, " input")), ue = _e(e, i.textarea);
1571
- t.oninput = Be, n.onchange = Be, P.onchange = Be, J.onchange = Be, ue.oninput = Be, r.oninput = () => {
1572
- Be(), d.value = r.value;
1570
+ const e = F(), t = Pe(e, i.input), n = Pe(e, i.file), r = e.querySelector(".".concat(i.range, " input")), f = e.querySelector(".".concat(i.range, " output")), P = Pe(e, i.select), J = e.querySelector(".".concat(i.checkbox, " input")), ue = Pe(e, i.textarea);
1571
+ t.oninput = Te, n.onchange = Te, P.onchange = Te, J.onchange = Te, ue.oninput = Te, r.oninput = () => {
1572
+ Te(), f.value = r.value;
1573
1573
  }, r.onchange = () => {
1574
- Be(), r.nextSibling.value = r.value;
1574
+ Te(), r.nextSibling.value = r.value;
1575
1575
  };
1576
- }, Pn = (e) => typeof e == "string" ? document.querySelector(e) : e, Tn = (e) => {
1576
+ }, Pn = (e) => typeof e == "string" ? document.querySelector(e) : e, Bn = (e) => {
1577
1577
  const t = F();
1578
1578
  t.setAttribute("role", e.toast ? "alert" : "dialog"), t.setAttribute("aria-live", e.toast ? "polite" : "assertive"), e.toast || t.setAttribute("aria-modal", "true");
1579
- }, Bn = (e) => {
1580
- window.getComputedStyle(e).direction === "rtl" && D(T(), i.rtl);
1579
+ }, Tn = (e) => {
1580
+ window.getComputedStyle(e).direction === "rtl" && D(B(), i.rtl);
1581
1581
  }, In = (e) => {
1582
1582
  const t = _n();
1583
- if (St()) {
1583
+ if (Pt()) {
1584
1584
  M("SweetAlert2 requires document to initialize");
1585
1585
  return;
1586
1586
  }
1587
1587
  const n = document.createElement("div");
1588
- n.className = i.container, t && D(n, i["no-transition"]), te(n, Sn);
1588
+ n.className = i.container, t && D(n, i["no-transition"]), ne(n, Sn);
1589
1589
  const r = Pn(e.target);
1590
- r.appendChild(n), Tn(e), Bn(r), En();
1591
- }, it = (e, t) => {
1592
- e instanceof HTMLElement ? t.appendChild(e) : typeof e == "object" ? Fn(e, t) : e && te(t, e);
1590
+ r.appendChild(n), Bn(e), Tn(r), En();
1591
+ }, at = (e, t) => {
1592
+ e instanceof HTMLElement ? t.appendChild(e) : typeof e == "object" ? Fn(e, t) : e && ne(t, e);
1593
1593
  }, Fn = (e, t) => {
1594
- e.jquery ? Ln(t, e) : te(t, e.toString());
1594
+ e.jquery ? Ln(t, e) : ne(t, e.toString());
1595
1595
  }, Ln = (e, t) => {
1596
1596
  if (e.textContent = "", 0 in t)
1597
1597
  for (let n = 0; n in t; n++)
1598
1598
  e.appendChild(t[n].cloneNode(!0));
1599
1599
  else
1600
1600
  e.appendChild(t.cloneNode(!0));
1601
- }, De = (() => {
1602
- if (St())
1601
+ }, Ne = (() => {
1602
+ if (Pt())
1603
1603
  return !1;
1604
1604
  const e = document.createElement("div"), t = {
1605
1605
  WebkitAnimation: "webkitAnimationEnd",
@@ -1617,26 +1617,26 @@ var vn = { exports: {} };
1617
1617
  const t = e.getBoundingClientRect().width - e.clientWidth;
1618
1618
  return document.body.removeChild(e), t;
1619
1619
  }, Mn = (e, t) => {
1620
- const n = _(), r = v();
1621
- !t.showConfirmButton && !t.showDenyButton && !t.showCancelButton ? ne(n) : G(n), pe(n, t, "actions"), On(n, r, t), te(r, t.loaderHtml), pe(r, t, "loader");
1620
+ const n = _(), r = b();
1621
+ !t.showConfirmButton && !t.showDenyButton && !t.showCancelButton ? oe(n) : Q(n), me(n, t, "actions"), On(n, r, t), ne(r, t.loaderHtml), me(r, t, "loader");
1622
1622
  };
1623
1623
  function On(e, t, n) {
1624
- const r = m(), d = l(), P = b();
1625
- at(r, "confirm", n), at(d, "deny", n), at(P, "cancel", n), Rn(r, d, P, n), n.reverseButtons && (n.toast ? (e.insertBefore(P, r), e.insertBefore(d, r)) : (e.insertBefore(P, t), e.insertBefore(d, t), e.insertBefore(r, t)));
1624
+ const r = m(), f = l(), P = v();
1625
+ ct(r, "confirm", n), ct(f, "deny", n), ct(P, "cancel", n), Rn(r, f, P, n), n.reverseButtons && (n.toast ? (e.insertBefore(P, r), e.insertBefore(f, r)) : (e.insertBefore(P, t), e.insertBefore(f, t), e.insertBefore(r, t)));
1626
1626
  }
1627
1627
  function Rn(e, t, n, r) {
1628
1628
  if (!r.buttonsStyling)
1629
1629
  return ke([e, t, n], i.styled);
1630
1630
  D([e, t, n], i.styled), r.confirmButtonColor && (e.style.backgroundColor = r.confirmButtonColor, D(e, i["default-outline"])), r.denyButtonColor && (t.style.backgroundColor = r.denyButtonColor, D(t, i["default-outline"])), r.cancelButtonColor && (n.style.backgroundColor = r.cancelButtonColor, D(n, i["default-outline"]));
1631
1631
  }
1632
- function at(e, t, n) {
1633
- Xe(e, n["show".concat(L(t), "Button")], "inline-block"), te(e, n["".concat(t, "ButtonText")]), e.setAttribute("aria-label", n["".concat(t, "ButtonAriaLabel")]), e.className = i[t], pe(e, n, "".concat(t, "Button")), D(e, n["".concat(t, "ButtonClass")]);
1632
+ function ct(e, t, n) {
1633
+ Ze(e, n["show".concat(L(t), "Button")], "inline-block"), ne(e, n["".concat(t, "ButtonText")]), e.setAttribute("aria-label", n["".concat(t, "ButtonAriaLabel")]), e.className = i[t], me(e, n, "".concat(t, "Button")), D(e, n["".concat(t, "ButtonClass")]);
1634
1634
  }
1635
1635
  function Hn(e, t) {
1636
1636
  typeof t == "string" ? e.style.background = t : t || D([document.documentElement, document.body], i["no-backdrop"]);
1637
1637
  }
1638
1638
  function jn(e, t) {
1639
- t in i ? D(e, i[t]) : (B('The "position" parameter is not valid, defaulting to "center"'), D(e, i.center));
1639
+ t in i ? D(e, i[t]) : (T('The "position" parameter is not valid, defaulting to "center"'), D(e, i.center));
1640
1640
  }
1641
1641
  function Dn(e, t) {
1642
1642
  if (t && typeof t == "string") {
@@ -1645,8 +1645,8 @@ var vn = { exports: {} };
1645
1645
  }
1646
1646
  }
1647
1647
  const Vn = (e, t) => {
1648
- const n = T();
1649
- n && (Hn(n, t.backdrop), jn(n, t.position), Dn(n, t.grow), pe(n, t, "container"));
1648
+ const n = B();
1649
+ n && (Hn(n, t.backdrop), jn(n, t.position), Dn(n, t.grow), me(n, t, "container"));
1650
1650
  };
1651
1651
  var R = {
1652
1652
  awaitingPromise: /* @__PURE__ */ new WeakMap(),
@@ -1655,69 +1655,69 @@ var vn = { exports: {} };
1655
1655
  domCache: /* @__PURE__ */ new WeakMap()
1656
1656
  };
1657
1657
  const Nn = ["input", "file", "range", "select", "radio", "checkbox", "textarea"], $n = (e, t) => {
1658
- const n = F(), r = R.innerParams.get(e), d = !r || t.input !== r.input;
1658
+ const n = F(), r = R.innerParams.get(e), f = !r || t.input !== r.input;
1659
1659
  Nn.forEach((P) => {
1660
- const J = i[P], ue = _e(n, J);
1661
- Kn(P, t.inputAttributes), ue.className = J, d && ne(ue);
1662
- }), t.input && (d && qn(t), zn(t));
1660
+ const J = i[P], ue = Pe(n, J);
1661
+ Wn(P, t.inputAttributes), ue.className = J, f && oe(ue);
1662
+ }), t.input && (f && qn(t), Kn(t));
1663
1663
  }, qn = (e) => {
1664
1664
  if (!ie[e.input])
1665
1665
  return M('Unexpected type of input! Expected "text", "email", "password", "number", "tel", "select", "radio", "checkbox", "textarea", "file" or "url", got "'.concat(e.input, '"'));
1666
- const t = _t(e.input), n = ie[e.input](t, e);
1667
- G(n), setTimeout(() => {
1668
- yt(n);
1666
+ const t = Bt(e.input), n = ie[e.input](t, e);
1667
+ Q(n), setTimeout(() => {
1668
+ Ct(n);
1669
1669
  });
1670
- }, Wn = (e) => {
1670
+ }, zn = (e) => {
1671
1671
  for (let t = 0; t < e.attributes.length; t++) {
1672
1672
  const n = e.attributes[t].name;
1673
1673
  ["type", "value", "style"].includes(n) || e.removeAttribute(n);
1674
1674
  }
1675
- }, Kn = (e, t) => {
1676
- const n = rt(F(), e);
1675
+ }, Wn = (e, t) => {
1676
+ const n = st(F(), e);
1677
1677
  if (n) {
1678
- Wn(n);
1678
+ zn(n);
1679
1679
  for (const r in t)
1680
1680
  n.setAttribute(r, t[r]);
1681
1681
  }
1682
- }, zn = (e) => {
1683
- const t = _t(e.input);
1682
+ }, Kn = (e) => {
1683
+ const t = Bt(e.input);
1684
1684
  e.customClass && D(t, e.customClass.input);
1685
- }, ct = (e, t) => {
1685
+ }, lt = (e, t) => {
1686
1686
  (!e.placeholder || t.inputPlaceholder) && (e.placeholder = t.inputPlaceholder);
1687
- }, Ve = (e, t, n) => {
1687
+ }, $e = (e, t, n) => {
1688
1688
  if (n.inputLabel) {
1689
1689
  e.id = i.input;
1690
- const r = document.createElement("label"), d = i["input-label"];
1691
- r.setAttribute("for", e.id), r.className = d, D(r, n.customClass.inputLabel), r.innerText = n.inputLabel, t.insertAdjacentElement("beforebegin", r);
1690
+ const r = document.createElement("label"), f = i["input-label"];
1691
+ r.setAttribute("for", e.id), r.className = f, D(r, n.customClass.inputLabel), r.innerText = n.inputLabel, t.insertAdjacentElement("beforebegin", r);
1692
1692
  }
1693
- }, _t = (e) => {
1693
+ }, Bt = (e) => {
1694
1694
  const t = i[e] ? i[e] : i.input;
1695
- return _e(F(), t);
1695
+ return Pe(F(), t);
1696
1696
  }, ie = {};
1697
- ie.text = ie.email = ie.password = ie.number = ie.tel = ie.url = (e, t) => (typeof t.inputValue == "string" || typeof t.inputValue == "number" ? e.value = t.inputValue : Se(t.inputValue) || B('Unexpected type of inputValue! Expected "string", "number" or "Promise", got "'.concat(typeof t.inputValue, '"')), Ve(e, e, t), ct(e, t), e.type = t.input, e), ie.file = (e, t) => (Ve(e, e, t), ct(e, t), e), ie.range = (e, t) => {
1697
+ ie.text = ie.email = ie.password = ie.number = ie.tel = ie.url = (e, t) => (typeof t.inputValue == "string" || typeof t.inputValue == "number" ? e.value = t.inputValue : Ee(t.inputValue) || T('Unexpected type of inputValue! Expected "string", "number" or "Promise", got "'.concat(typeof t.inputValue, '"')), $e(e, e, t), lt(e, t), e.type = t.input, e), ie.file = (e, t) => ($e(e, e, t), lt(e, t), e), ie.range = (e, t) => {
1698
1698
  const n = e.querySelector("input"), r = e.querySelector("output");
1699
- return n.value = t.inputValue, n.type = t.input, r.value = t.inputValue, Ve(n, e, t), e;
1699
+ return n.value = t.inputValue, n.type = t.input, r.value = t.inputValue, $e(n, e, t), e;
1700
1700
  }, ie.select = (e, t) => {
1701
1701
  if (e.textContent = "", t.inputPlaceholder) {
1702
1702
  const n = document.createElement("option");
1703
- te(n, t.inputPlaceholder), n.value = "", n.disabled = !0, n.selected = !0, e.appendChild(n);
1703
+ ne(n, t.inputPlaceholder), n.value = "", n.disabled = !0, n.selected = !0, e.appendChild(n);
1704
1704
  }
1705
- return Ve(e, e, t), e;
1705
+ return $e(e, e, t), e;
1706
1706
  }, ie.radio = (e) => (e.textContent = "", e), ie.checkbox = (e, t) => {
1707
- const n = rt(F(), "checkbox");
1707
+ const n = st(F(), "checkbox");
1708
1708
  n.value = "1", n.id = i.checkbox, n.checked = !!t.inputValue;
1709
1709
  const r = e.querySelector("span");
1710
- return te(r, t.inputPlaceholder), e;
1710
+ return ne(r, t.inputPlaceholder), e;
1711
1711
  }, ie.textarea = (e, t) => {
1712
- e.value = t.inputValue, ct(e, t), Ve(e, e, t);
1712
+ e.value = t.inputValue, lt(e, t), $e(e, e, t);
1713
1713
  const n = (r) => parseInt(window.getComputedStyle(r).marginLeft) + parseInt(window.getComputedStyle(r).marginRight);
1714
1714
  return setTimeout(() => {
1715
1715
  if ("MutationObserver" in window) {
1716
- const r = parseInt(window.getComputedStyle(F()).width), d = () => {
1716
+ const r = parseInt(window.getComputedStyle(F()).width), f = () => {
1717
1717
  const P = e.offsetWidth + n(e);
1718
1718
  P > r ? F().style.width = "".concat(P, "px") : F().style.width = null;
1719
1719
  };
1720
- new MutationObserver(d).observe(e, {
1720
+ new MutationObserver(f).observe(e, {
1721
1721
  attributes: !0,
1722
1722
  attributeFilter: ["style"]
1723
1723
  });
@@ -1725,29 +1725,29 @@ var vn = { exports: {} };
1725
1725
  }), e;
1726
1726
  };
1727
1727
  const Jn = (e, t) => {
1728
- const n = Q();
1729
- pe(n, t, "htmlContainer"), t.html ? (it(t.html, n), G(n, "block")) : t.text ? (n.textContent = t.text, G(n, "block")) : ne(n), $n(e, t);
1728
+ const n = ee();
1729
+ me(n, t, "htmlContainer"), t.html ? (at(t.html, n), Q(n, "block")) : t.text ? (n.textContent = t.text, Q(n, "block")) : oe(n), $n(e, t);
1730
1730
  }, Yn = (e, t) => {
1731
1731
  const n = E();
1732
- Xe(n, t.footer), t.footer && it(t.footer, n), pe(n, t, "footer");
1732
+ Ze(n, t.footer), t.footer && at(t.footer, n), me(n, t, "footer");
1733
1733
  }, Xn = (e, t) => {
1734
1734
  const n = j();
1735
- te(n, t.closeButtonHtml), pe(n, t, "closeButton"), Xe(n, t.showCloseButton), n.setAttribute("aria-label", t.closeButtonAriaLabel);
1735
+ ne(n, t.closeButtonHtml), me(n, t, "closeButton"), Ze(n, t.showCloseButton), n.setAttribute("aria-label", t.closeButtonAriaLabel);
1736
1736
  }, Zn = (e, t) => {
1737
- const n = R.innerParams.get(e), r = Z();
1737
+ const n = R.innerParams.get(e), r = G();
1738
1738
  if (n && t.icon === n.icon) {
1739
- Pt(r, t), Et(r, t);
1739
+ It(r, t), Tt(r, t);
1740
1740
  return;
1741
1741
  }
1742
1742
  if (!t.icon && !t.iconHtml)
1743
- return ne(r);
1743
+ return oe(r);
1744
1744
  if (t.icon && Object.keys(g).indexOf(t.icon) === -1)
1745
- return M('Unknown icon! Expected "success", "error", "warning", "info" or "question", got "'.concat(t.icon, '"')), ne(r);
1746
- G(r), Pt(r, t), Et(r, t), D(r, t.showClass.icon);
1747
- }, Et = (e, t) => {
1745
+ return M('Unknown icon! Expected "success", "error", "warning", "info" or "question", got "'.concat(t.icon, '"')), oe(r);
1746
+ Q(r), It(r, t), Tt(r, t), D(r, t.showClass.icon);
1747
+ }, Tt = (e, t) => {
1748
1748
  for (const n in g)
1749
1749
  t.icon !== n && ke(e, g[n]);
1750
- D(e, g[t.icon]), to(e, t), Gn(), pe(e, t, "icon");
1750
+ D(e, g[t.icon]), to(e, t), Gn(), me(e, t, "icon");
1751
1751
  }, Gn = () => {
1752
1752
  const e = F(), t = window.getComputedStyle(e).getPropertyValue("background-color"), n = e.querySelectorAll("[class^=swal2-success-circular-line], .swal2-success-fix");
1753
1753
  for (let r = 0; r < n.length; r++)
@@ -1762,8 +1762,8 @@ var vn = { exports: {} };
1762
1762
  <span class="swal2-x-mark-line-left"></span>
1763
1763
  <span class="swal2-x-mark-line-right"></span>
1764
1764
  </span>
1765
- `, Pt = (e, t) => {
1766
- e.textContent = "", t.iconHtml ? te(e, Tt(t.iconHtml)) : t.icon === "success" ? te(e, Qn) : t.icon === "error" ? te(e, eo) : te(e, Tt({
1765
+ `, It = (e, t) => {
1766
+ e.textContent = "", t.iconHtml ? ne(e, Ft(t.iconHtml)) : t.icon === "success" ? ne(e, Qn) : t.icon === "error" ? ne(e, eo) : ne(e, Ft({
1767
1767
  question: "?",
1768
1768
  warning: "!",
1769
1769
  info: "i"
@@ -1772,40 +1772,40 @@ var vn = { exports: {} };
1772
1772
  if (t.iconColor) {
1773
1773
  e.style.color = t.iconColor, e.style.borderColor = t.iconColor;
1774
1774
  for (const n of [".swal2-success-line-tip", ".swal2-success-line-long", ".swal2-x-mark-line-left", ".swal2-x-mark-line-right"])
1775
- xt(e, n, "backgroundColor", t.iconColor);
1776
- xt(e, ".swal2-success-ring", "borderColor", t.iconColor);
1775
+ St(e, n, "backgroundColor", t.iconColor);
1776
+ St(e, ".swal2-success-ring", "borderColor", t.iconColor);
1777
1777
  }
1778
- }, Tt = (e) => '<div class="'.concat(i["icon-content"], '">').concat(e, "</div>"), no = (e, t) => {
1778
+ }, Ft = (e) => '<div class="'.concat(i["icon-content"], '">').concat(e, "</div>"), no = (e, t) => {
1779
1779
  const n = s();
1780
1780
  if (!t.imageUrl)
1781
- return ne(n);
1782
- G(n, ""), n.setAttribute("src", t.imageUrl), n.setAttribute("alt", t.imageAlt), je(n, "width", t.imageWidth), je(n, "height", t.imageHeight), n.className = i.image, pe(n, t, "image");
1781
+ return oe(n);
1782
+ Q(n, ""), n.setAttribute("src", t.imageUrl), n.setAttribute("alt", t.imageAlt), Ve(n, "width", t.imageWidth), Ve(n, "height", t.imageHeight), n.className = i.image, me(n, t, "image");
1783
1783
  }, oo = (e) => {
1784
1784
  const t = document.createElement("li");
1785
- return D(t, i["progress-step"]), te(t, e), t;
1785
+ return D(t, i["progress-step"]), ne(t, e), t;
1786
1786
  }, ro = (e) => {
1787
1787
  const t = document.createElement("li");
1788
1788
  return D(t, i["progress-step-line"]), e.progressStepsDistance && (t.style.width = e.progressStepsDistance), t;
1789
1789
  }, so = (e, t) => {
1790
1790
  const n = a();
1791
1791
  if (!t.progressSteps || t.progressSteps.length === 0)
1792
- return ne(n);
1793
- G(n), n.textContent = "", t.currentProgressStep >= t.progressSteps.length && B("Invalid currentProgressStep parameter, it should be less than progressSteps.length (currentProgressStep like JS arrays starts from 0)"), t.progressSteps.forEach((r, d) => {
1792
+ return oe(n);
1793
+ Q(n), n.textContent = "", t.currentProgressStep >= t.progressSteps.length && T("Invalid currentProgressStep parameter, it should be less than progressSteps.length (currentProgressStep like JS arrays starts from 0)"), t.progressSteps.forEach((r, f) => {
1794
1794
  const P = oo(r);
1795
- if (n.appendChild(P), d === t.currentProgressStep && D(P, i["active-progress-step"]), d !== t.progressSteps.length - 1) {
1795
+ if (n.appendChild(P), f === t.currentProgressStep && D(P, i["active-progress-step"]), f !== t.progressSteps.length - 1) {
1796
1796
  const J = ro(t);
1797
1797
  n.appendChild(J);
1798
1798
  }
1799
1799
  });
1800
1800
  }, io = (e, t) => {
1801
1801
  const n = H();
1802
- Xe(n, t.title || t.titleText, "block"), t.title && it(t.title, n), t.titleText && (n.innerText = t.titleText), pe(n, t, "title");
1802
+ Ze(n, t.title || t.titleText, "block"), t.title && at(t.title, n), t.titleText && (n.innerText = t.titleText), me(n, t, "title");
1803
1803
  }, ao = (e, t) => {
1804
- const n = T(), r = F();
1805
- t.toast ? (je(n, "width", t.width), r.style.width = "100%", r.insertBefore(v(), Z())) : je(r, "width", t.width), je(r, "padding", t.padding), t.color && (r.style.color = t.color), t.background && (r.style.background = t.background), ne(p()), co(r, t);
1804
+ const n = B(), r = F();
1805
+ t.toast ? (Ve(n, "width", t.width), r.style.width = "100%", r.insertBefore(b(), G())) : Ve(r, "width", t.width), Ve(r, "padding", t.padding), t.color && (r.style.color = t.color), t.background && (r.style.background = t.background), oe(p()), co(r, t);
1806
1806
  }, co = (e, t) => {
1807
- e.className = "".concat(i.popup, " ").concat(le(e) ? t.showClass.popup : ""), t.toast ? (D([document.documentElement, document.body], i["toast-shown"]), D(e, i.toast)) : D(e, i.modal), pe(e, t, "popup"), typeof t.customClass == "string" && D(e, t.customClass), t.icon && D(e, i["icon-".concat(t.icon)]);
1808
- }, Bt = (e, t) => {
1807
+ e.className = "".concat(i.popup, " ").concat(le(e) ? t.showClass.popup : ""), t.toast ? (D([document.documentElement, document.body], i["toast-shown"]), D(e, i.toast)) : D(e, i.modal), me(e, t, "popup"), typeof t.customClass == "string" && D(e, t.customClass), t.icon && D(e, i["icon-".concat(t.icon)]);
1808
+ }, Lt = (e, t) => {
1809
1809
  ao(e, t), Vn(e, t), so(e, t), Zn(e, t), no(e, t), io(e, t), Xn(e, t), Jn(e, t), Mn(e, t), Yn(e, t), typeof t.didRender == "function" && t.didRender(F());
1810
1810
  }, Ue = Object.freeze({
1811
1811
  cancel: "cancel",
@@ -1815,24 +1815,24 @@ var vn = { exports: {} };
1815
1815
  timer: "timer"
1816
1816
  }), lo = () => {
1817
1817
  k(document.body.children).forEach((t) => {
1818
- t === T() || t.contains(T()) || (t.hasAttribute("aria-hidden") && t.setAttribute("data-previous-aria-hidden", t.getAttribute("aria-hidden")), t.setAttribute("aria-hidden", "true"));
1818
+ t === B() || t.contains(B()) || (t.hasAttribute("aria-hidden") && t.setAttribute("data-previous-aria-hidden", t.getAttribute("aria-hidden")), t.setAttribute("aria-hidden", "true"));
1819
1819
  });
1820
- }, It = () => {
1820
+ }, Ut = () => {
1821
1821
  k(document.body.children).forEach((t) => {
1822
1822
  t.hasAttribute("data-previous-aria-hidden") ? (t.setAttribute("aria-hidden", t.getAttribute("data-previous-aria-hidden")), t.removeAttribute("data-previous-aria-hidden")) : t.removeAttribute("aria-hidden");
1823
1823
  });
1824
- }, Ft = ["swal-title", "swal-html", "swal-footer"], uo = (e) => {
1824
+ }, Mt = ["swal-title", "swal-html", "swal-footer"], uo = (e) => {
1825
1825
  const t = typeof e.template == "string" ? document.querySelector(e.template) : e.template;
1826
1826
  if (!t)
1827
1827
  return {};
1828
1828
  const n = t.content;
1829
- return bo(n), Object.assign(fo(n), ho(n), po(n), go(n), mo(n), vo(n, Ft));
1829
+ return vo(n), Object.assign(fo(n), ho(n), po(n), go(n), mo(n), bo(n, Mt));
1830
1830
  }, fo = (e) => {
1831
1831
  const t = {};
1832
1832
  return k(e.querySelectorAll("swal-param")).forEach((n) => {
1833
1833
  Ie(n, ["name", "value"]);
1834
- const r = n.getAttribute("name"), d = n.getAttribute("value");
1835
- typeof be[r] == "boolean" && d === "false" && (t[r] = !1), typeof be[r] == "object" && (t[r] = JSON.parse(d));
1834
+ const r = n.getAttribute("name"), f = n.getAttribute("value");
1835
+ typeof ve[r] == "boolean" && f === "false" && (t[r] = !1), typeof ve[r] == "object" && (t[r] = JSON.parse(f));
1836
1836
  }), t;
1837
1837
  }, ho = (e) => {
1838
1838
  const t = {};
@@ -1851,43 +1851,43 @@ var vn = { exports: {} };
1851
1851
  const t = {}, n = e.querySelector("swal-input");
1852
1852
  n && (Ie(n, ["type", "label", "placeholder", "value"]), t.input = n.getAttribute("type") || "text", n.hasAttribute("label") && (t.inputLabel = n.getAttribute("label")), n.hasAttribute("placeholder") && (t.inputPlaceholder = n.getAttribute("placeholder")), n.hasAttribute("value") && (t.inputValue = n.getAttribute("value")));
1853
1853
  const r = e.querySelectorAll("swal-input-option");
1854
- return r.length && (t.inputOptions = {}, k(r).forEach((d) => {
1855
- Ie(d, ["value"]);
1856
- const P = d.getAttribute("value"), J = d.innerHTML;
1854
+ return r.length && (t.inputOptions = {}, k(r).forEach((f) => {
1855
+ Ie(f, ["value"]);
1856
+ const P = f.getAttribute("value"), J = f.innerHTML;
1857
1857
  t.inputOptions[P] = J;
1858
1858
  })), t;
1859
- }, vo = (e, t) => {
1859
+ }, bo = (e, t) => {
1860
1860
  const n = {};
1861
1861
  for (const r in t) {
1862
- const d = t[r], P = e.querySelector(d);
1863
- P && (Ie(P, []), n[d.replace(/^swal-/, "")] = P.innerHTML.trim());
1862
+ const f = t[r], P = e.querySelector(f);
1863
+ P && (Ie(P, []), n[f.replace(/^swal-/, "")] = P.innerHTML.trim());
1864
1864
  }
1865
1865
  return n;
1866
- }, bo = (e) => {
1867
- const t = Ft.concat(["swal-param", "swal-button", "swal-image", "swal-icon", "swal-input", "swal-input-option"]);
1866
+ }, vo = (e) => {
1867
+ const t = Mt.concat(["swal-param", "swal-button", "swal-image", "swal-icon", "swal-input", "swal-input-option"]);
1868
1868
  k(e.children).forEach((n) => {
1869
1869
  const r = n.tagName.toLowerCase();
1870
- t.indexOf(r) === -1 && B("Unrecognized element <".concat(r, ">"));
1870
+ t.indexOf(r) === -1 && T("Unrecognized element <".concat(r, ">"));
1871
1871
  });
1872
1872
  }, Ie = (e, t) => {
1873
1873
  k(e.attributes).forEach((n) => {
1874
- t.indexOf(n.name) === -1 && B(['Unrecognized attribute "'.concat(n.name, '" on <').concat(e.tagName.toLowerCase(), ">."), "".concat(t.length ? "Allowed attributes are: ".concat(t.join(", ")) : "To set the value, use HTML within the element.")]);
1874
+ t.indexOf(n.name) === -1 && T(['Unrecognized attribute "'.concat(n.name, '" on <').concat(e.tagName.toLowerCase(), ">."), "".concat(t.length ? "Allowed attributes are: ".concat(t.join(", ")) : "To set the value, use HTML within the element.")]);
1875
1875
  });
1876
1876
  };
1877
- var Lt = {
1877
+ var Ot = {
1878
1878
  email: (e, t) => /^[a-zA-Z0-9.+_-]+@[a-zA-Z0-9.-]+\.[a-zA-Z0-9-]{2,24}$/.test(e) ? Promise.resolve() : Promise.resolve(t || "Invalid email address"),
1879
1879
  url: (e, t) => /^https?:\/\/(www\.)?[-a-zA-Z0-9@:%._+~#=]{1,256}\.[a-z]{2,63}\b([-a-zA-Z0-9@:%_+.~#?&/=]*)$/.test(e) ? Promise.resolve() : Promise.resolve(t || "Invalid URL")
1880
1880
  };
1881
1881
  function wo(e) {
1882
- e.inputValidator || Object.keys(Lt).forEach((t) => {
1883
- e.input === t && (e.inputValidator = Lt[t]);
1882
+ e.inputValidator || Object.keys(Ot).forEach((t) => {
1883
+ e.input === t && (e.inputValidator = Ot[t]);
1884
1884
  });
1885
1885
  }
1886
1886
  function yo(e) {
1887
- (!e.target || typeof e.target == "string" && !document.querySelector(e.target) || typeof e.target != "string" && !e.target.appendChild) && (B('Target parameter is not valid, defaulting to "body"'), e.target = "body");
1887
+ (!e.target || typeof e.target == "string" && !document.querySelector(e.target) || typeof e.target != "string" && !e.target.appendChild) && (T('Target parameter is not valid, defaulting to "body"'), e.target = "body");
1888
1888
  }
1889
1889
  function ko(e) {
1890
- wo(e), e.showLoaderOnConfirm && !e.preConfirm && B(`showLoaderOnConfirm is set to true, but preConfirm is not defined.
1890
+ wo(e), e.showLoaderOnConfirm && !e.preConfirm && T(`showLoaderOnConfirm is set to true, but preConfirm is not defined.
1891
1891
  showLoaderOnConfirm should be used together with preConfirm, see usage example:
1892
1892
  https://sweetalert2.github.io/#ajax-request`), yo(e), typeof e.title == "string" && (e.title = e.title.split(`
1893
1893
  `).join("<br />")), In(e);
@@ -1925,9 +1925,9 @@ https://sweetalert2.github.io/#ajax-request`), yo(e), typeof e.title == "string"
1925
1925
  }
1926
1926
  }, _o = () => {
1927
1927
  const e = navigator.userAgent, t = !!e.match(/iPad/i) || !!e.match(/iPhone/i), n = !!e.match(/WebKit/i);
1928
- t && n && !e.match(/CriOS/i) && F().scrollHeight > window.innerHeight - 44 && (T().style.paddingBottom = "".concat(44, "px"));
1928
+ t && n && !e.match(/CriOS/i) && F().scrollHeight > window.innerHeight - 44 && (B().style.paddingBottom = "".concat(44, "px"));
1929
1929
  }, Eo = () => {
1930
- const e = T();
1930
+ const e = B();
1931
1931
  let t;
1932
1932
  e.ontouchstart = (n) => {
1933
1933
  t = Po(n);
@@ -1935,49 +1935,49 @@ https://sweetalert2.github.io/#ajax-request`), yo(e), typeof e.title == "string"
1935
1935
  t && (n.preventDefault(), n.stopPropagation());
1936
1936
  };
1937
1937
  }, Po = (e) => {
1938
- const t = e.target, n = T();
1939
- return To(e) || Bo(e) ? !1 : t === n || !Ct(n) && t.tagName !== "INPUT" && // #1603
1938
+ const t = e.target, n = B();
1939
+ return Bo(e) || To(e) ? !1 : t === n || !_t(n) && t.tagName !== "INPUT" && // #1603
1940
1940
  t.tagName !== "TEXTAREA" && // #2266
1941
- !(Ct(Q()) && // #1944
1942
- Q().contains(t));
1943
- }, To = (e) => e.touches && e.touches.length && e.touches[0].touchType === "stylus", Bo = (e) => e.touches && e.touches.length > 1, Io = () => {
1941
+ !(_t(ee()) && // #1944
1942
+ ee().contains(t));
1943
+ }, Bo = (e) => e.touches && e.touches.length && e.touches[0].touchType === "stylus", To = (e) => e.touches && e.touches.length > 1, Io = () => {
1944
1944
  if (Ce(document.body, i.iosfix)) {
1945
1945
  const e = parseInt(document.body.style.top, 10);
1946
1946
  ke(document.body, i.iosfix), document.body.style.top = "", document.body.scrollTop = e * -1;
1947
1947
  }
1948
- }, Ut = 10, Fo = (e) => {
1949
- const t = T(), n = F();
1948
+ }, Rt = 10, Fo = (e) => {
1949
+ const t = B(), n = F();
1950
1950
  typeof e.willOpen == "function" && e.willOpen(n);
1951
- const d = window.getComputedStyle(document.body).overflowY;
1951
+ const f = window.getComputedStyle(document.body).overflowY;
1952
1952
  Mo(t, n, e), setTimeout(() => {
1953
1953
  Lo(t, n);
1954
- }, Ut), ee() && (Uo(t, e.scrollbarPadding, d), lo()), !ye() && !O.previousActiveElement && (O.previousActiveElement = document.activeElement), typeof e.didOpen == "function" && setTimeout(() => e.didOpen(n)), ke(t, i["no-transition"]);
1955
- }, Mt = (e) => {
1954
+ }, Rt), te() && (Uo(t, e.scrollbarPadding, f), lo()), !ye() && !O.previousActiveElement && (O.previousActiveElement = document.activeElement), typeof e.didOpen == "function" && setTimeout(() => e.didOpen(n)), ke(t, i["no-transition"]);
1955
+ }, Ht = (e) => {
1956
1956
  const t = F();
1957
1957
  if (e.target !== t)
1958
1958
  return;
1959
- const n = T();
1960
- t.removeEventListener(De, Mt), n.style.overflowY = "auto";
1959
+ const n = B();
1960
+ t.removeEventListener(Ne, Ht), n.style.overflowY = "auto";
1961
1961
  }, Lo = (e, t) => {
1962
- De && At(t) ? (e.style.overflowY = "hidden", t.addEventListener(De, Mt)) : e.style.overflowY = "auto";
1962
+ Ne && Et(t) ? (e.style.overflowY = "hidden", t.addEventListener(Ne, Ht)) : e.style.overflowY = "auto";
1963
1963
  }, Uo = (e, t, n) => {
1964
1964
  So(), t && n !== "hidden" && Co(), setTimeout(() => {
1965
1965
  e.scrollTop = 0;
1966
1966
  });
1967
1967
  }, Mo = (e, t, n) => {
1968
- D(e, n.showClass.backdrop), t.style.setProperty("opacity", "0", "important"), G(t, "grid"), setTimeout(() => {
1968
+ D(e, n.showClass.backdrop), t.style.setProperty("opacity", "0", "important"), Q(t, "grid"), setTimeout(() => {
1969
1969
  D(t, n.showClass.popup), t.style.removeProperty("opacity");
1970
- }, Ut), D([document.documentElement, document.body], i.shown), n.heightAuto && n.backdrop && !n.toast && D([document.documentElement, document.body], i["height-auto"]);
1970
+ }, Rt), D([document.documentElement, document.body], i.shown), n.heightAuto && n.backdrop && !n.toast && D([document.documentElement, document.body], i["height-auto"]);
1971
1971
  }, Me = (e) => {
1972
1972
  let t = F();
1973
- t || new Qe(), t = F();
1974
- const n = v();
1975
- ye() ? ne(Z()) : Oo(t, e), G(n), t.setAttribute("data-loading", !0), t.setAttribute("aria-busy", !0), t.focus();
1973
+ t || new et(), t = F();
1974
+ const n = b();
1975
+ ye() ? oe(G()) : Oo(t, e), Q(n), t.setAttribute("data-loading", !0), t.setAttribute("aria-busy", !0), t.focus();
1976
1976
  }, Oo = (e, t) => {
1977
- const n = _(), r = v();
1978
- !t && le(m()) && (t = m()), G(n), t && (ne(t), r.setAttribute("data-button-to-replace", t.className)), r.parentNode.insertBefore(r, t), D([e, n], i.loading);
1977
+ const n = _(), r = b();
1978
+ !t && le(m()) && (t = m()), Q(n), t && (oe(t), r.setAttribute("data-button-to-replace", t.className)), r.parentNode.insertBefore(r, t), D([e, n], i.loading);
1979
1979
  }, Ro = (e, t) => {
1980
- t.input === "select" || t.input === "radio" ? No(e, t) : ["text", "email", "number", "tel", "textarea"].includes(t.input) && (ae(t.inputValue) || Se(t.inputValue)) && (Me(m()), $o(e, t));
1980
+ t.input === "select" || t.input === "radio" ? No(e, t) : ["text", "email", "number", "tel", "textarea"].includes(t.input) && (ae(t.inputValue) || Ee(t.inputValue)) && (Me(m()), $o(e, t));
1981
1981
  }, Ho = (e, t) => {
1982
1982
  const n = e.getInput();
1983
1983
  if (!n)
@@ -1993,111 +1993,111 @@ https://sweetalert2.github.io/#ajax-request`), yo(e), typeof e.title == "string"
1993
1993
  return t.inputAutoTrim ? n.value.trim() : n.value;
1994
1994
  }
1995
1995
  }, jo = (e) => e.checked ? 1 : 0, Do = (e) => e.checked ? e.value : null, Vo = (e) => e.files.length ? e.getAttribute("multiple") !== null ? e.files : e.files[0] : null, No = (e, t) => {
1996
- const n = F(), r = (d) => qo[t.input](n, lt(d), t);
1997
- ae(t.inputOptions) || Se(t.inputOptions) ? (Me(m()), V(t.inputOptions).then((d) => {
1998
- e.hideLoading(), r(d);
1996
+ const n = F(), r = (f) => qo[t.input](n, ut(f), t);
1997
+ ae(t.inputOptions) || Ee(t.inputOptions) ? (Me(m()), V(t.inputOptions).then((f) => {
1998
+ e.hideLoading(), r(f);
1999
1999
  })) : typeof t.inputOptions == "object" ? r(t.inputOptions) : M("Unexpected type of inputOptions! Expected object, Map or Promise, got ".concat(typeof t.inputOptions));
2000
2000
  }, $o = (e, t) => {
2001
2001
  const n = e.getInput();
2002
- ne(n), V(t.inputValue).then((r) => {
2003
- n.value = t.input === "number" ? parseFloat(r) || 0 : "".concat(r), G(n), n.focus(), e.hideLoading();
2002
+ oe(n), V(t.inputValue).then((r) => {
2003
+ n.value = t.input === "number" ? parseFloat(r) || 0 : "".concat(r), Q(n), n.focus(), e.hideLoading();
2004
2004
  }).catch((r) => {
2005
- M("Error in inputValue promise: ".concat(r)), n.value = "", G(n), n.focus(), e.hideLoading();
2005
+ M("Error in inputValue promise: ".concat(r)), n.value = "", Q(n), n.focus(), e.hideLoading();
2006
2006
  });
2007
2007
  }, qo = {
2008
2008
  select: (e, t, n) => {
2009
- const r = _e(e, i.select), d = (P, J, ue) => {
2009
+ const r = Pe(e, i.select), f = (P, J, ue) => {
2010
2010
  const re = document.createElement("option");
2011
- re.value = ue, te(re, J), re.selected = Ot(ue, n.inputValue), P.appendChild(re);
2011
+ re.value = ue, ne(re, J), re.selected = jt(ue, n.inputValue), P.appendChild(re);
2012
2012
  };
2013
2013
  t.forEach((P) => {
2014
2014
  const J = P[0], ue = P[1];
2015
2015
  if (Array.isArray(ue)) {
2016
2016
  const re = document.createElement("optgroup");
2017
- re.label = J, re.disabled = !1, r.appendChild(re), ue.forEach((Re) => d(re, Re[1], Re[0]));
2017
+ re.label = J, re.disabled = !1, r.appendChild(re), ue.forEach((Re) => f(re, Re[1], Re[0]));
2018
2018
  } else
2019
- d(r, ue, J);
2019
+ f(r, ue, J);
2020
2020
  }), r.focus();
2021
2021
  },
2022
2022
  radio: (e, t, n) => {
2023
- const r = _e(e, i.radio);
2023
+ const r = Pe(e, i.radio);
2024
2024
  t.forEach((P) => {
2025
2025
  const J = P[0], ue = P[1], re = document.createElement("input"), Re = document.createElement("label");
2026
- re.type = "radio", re.name = i.radio, re.value = J, Ot(J, n.inputValue) && (re.checked = !0);
2027
- const mt = document.createElement("span");
2028
- te(mt, ue), mt.className = i.label, Re.appendChild(re), Re.appendChild(mt), r.appendChild(Re);
2026
+ re.type = "radio", re.name = i.radio, re.value = J, jt(J, n.inputValue) && (re.checked = !0);
2027
+ const bt = document.createElement("span");
2028
+ ne(bt, ue), bt.className = i.label, Re.appendChild(re), Re.appendChild(bt), r.appendChild(Re);
2029
2029
  });
2030
- const d = r.querySelectorAll("input");
2031
- d.length && d[0].focus();
2030
+ const f = r.querySelectorAll("input");
2031
+ f.length && f[0].focus();
2032
2032
  }
2033
- }, lt = (e) => {
2033
+ }, ut = (e) => {
2034
2034
  const t = [];
2035
2035
  return typeof Map < "u" && e instanceof Map ? e.forEach((n, r) => {
2036
- let d = n;
2037
- typeof d == "object" && (d = lt(d)), t.push([r, d]);
2036
+ let f = n;
2037
+ typeof f == "object" && (f = ut(f)), t.push([r, f]);
2038
2038
  }) : Object.keys(e).forEach((n) => {
2039
2039
  let r = e[n];
2040
- typeof r == "object" && (r = lt(r)), t.push([n, r]);
2040
+ typeof r == "object" && (r = ut(r)), t.push([n, r]);
2041
2041
  }), t;
2042
- }, Ot = (e, t) => t && t.toString() === e.toString();
2043
- function Rt() {
2042
+ }, jt = (e, t) => t && t.toString() === e.toString();
2043
+ function Dt() {
2044
2044
  const e = R.innerParams.get(this);
2045
2045
  if (!e)
2046
2046
  return;
2047
2047
  const t = R.domCache.get(this);
2048
- ne(t.loader), ye() ? e.icon && G(Z()) : Wo(t), ke([t.popup, t.actions], i.loading), t.popup.removeAttribute("aria-busy"), t.popup.removeAttribute("data-loading"), t.confirmButton.disabled = !1, t.denyButton.disabled = !1, t.cancelButton.disabled = !1;
2048
+ oe(t.loader), ye() ? e.icon && Q(G()) : zo(t), ke([t.popup, t.actions], i.loading), t.popup.removeAttribute("aria-busy"), t.popup.removeAttribute("data-loading"), t.confirmButton.disabled = !1, t.denyButton.disabled = !1, t.cancelButton.disabled = !1;
2049
2049
  }
2050
- const Wo = (e) => {
2050
+ const zo = (e) => {
2051
2051
  const t = e.popup.getElementsByClassName(e.loader.getAttribute("data-button-to-replace"));
2052
- t.length ? G(t[0], "inline-block") : yn() && ne(e.actions);
2052
+ t.length ? Q(t[0], "inline-block") : yn() && oe(e.actions);
2053
2053
  };
2054
- function Ko(e) {
2054
+ function Wo(e) {
2055
2055
  const t = R.innerParams.get(e || this), n = R.domCache.get(e || this);
2056
- return n ? rt(n.popup, t.input) : null;
2056
+ return n ? st(n.popup, t.input) : null;
2057
2057
  }
2058
- var Ne = {
2058
+ var qe = {
2059
2059
  swalPromiseResolve: /* @__PURE__ */ new WeakMap(),
2060
2060
  swalPromiseReject: /* @__PURE__ */ new WeakMap()
2061
2061
  };
2062
- const zo = () => le(F()), Ht = () => m() && m().click(), Jo = () => l() && l().click(), Yo = () => b() && b().click(), jt = (e) => {
2062
+ const Ko = () => le(F()), Vt = () => m() && m().click(), Jo = () => l() && l().click(), Yo = () => v() && v().click(), Nt = (e) => {
2063
2063
  e.keydownTarget && e.keydownHandlerAdded && (e.keydownTarget.removeEventListener("keydown", e.keydownHandler, {
2064
2064
  capture: e.keydownListenerCapture
2065
2065
  }), e.keydownHandlerAdded = !1);
2066
2066
  }, Xo = (e, t, n, r) => {
2067
- jt(t), n.toast || (t.keydownHandler = (d) => Go(e, d, r), t.keydownTarget = n.keydownListenerCapture ? window : F(), t.keydownListenerCapture = n.keydownListenerCapture, t.keydownTarget.addEventListener("keydown", t.keydownHandler, {
2067
+ Nt(t), n.toast || (t.keydownHandler = (f) => Go(e, f, r), t.keydownTarget = n.keydownListenerCapture ? window : F(), t.keydownListenerCapture = n.keydownListenerCapture, t.keydownTarget.addEventListener("keydown", t.keydownHandler, {
2068
2068
  capture: t.keydownListenerCapture
2069
2069
  }), t.keydownHandlerAdded = !0);
2070
- }, ut = (e, t, n) => {
2071
- const r = he();
2070
+ }, dt = (e, t, n) => {
2071
+ const r = ge();
2072
2072
  if (r.length)
2073
2073
  return t = t + n, t === r.length ? t = 0 : t === -1 && (t = r.length - 1), r[t].focus();
2074
2074
  F().focus();
2075
- }, Dt = ["ArrowRight", "ArrowDown"], Zo = ["ArrowLeft", "ArrowUp"], Go = (e, t, n) => {
2075
+ }, $t = ["ArrowRight", "ArrowDown"], Zo = ["ArrowLeft", "ArrowUp"], Go = (e, t, n) => {
2076
2076
  const r = R.innerParams.get(e);
2077
- r && (t.isComposing || t.keyCode === 229 || (r.stopKeydownPropagation && t.stopPropagation(), t.key === "Enter" ? Qo(e, t, r) : t.key === "Tab" ? er(t, r) : [...Dt, ...Zo].includes(t.key) ? tr(t.key) : t.key === "Escape" && nr(t, r, n)));
2077
+ r && (t.isComposing || t.keyCode === 229 || (r.stopKeydownPropagation && t.stopPropagation(), t.key === "Enter" ? Qo(e, t, r) : t.key === "Tab" ? er(t, r) : [...$t, ...Zo].includes(t.key) ? tr(t.key) : t.key === "Escape" && nr(t, r, n)));
2078
2078
  }, Qo = (e, t, n) => {
2079
2079
  if (Y(n.allowEnterKey) && t.target && e.getInput() && t.target.outerHTML === e.getInput().outerHTML) {
2080
2080
  if (["textarea", "file"].includes(n.input))
2081
2081
  return;
2082
- Ht(), t.preventDefault();
2082
+ Vt(), t.preventDefault();
2083
2083
  }
2084
2084
  }, er = (e, t) => {
2085
- const n = e.target, r = he();
2086
- let d = -1;
2085
+ const n = e.target, r = ge();
2086
+ let f = -1;
2087
2087
  for (let P = 0; P < r.length; P++)
2088
2088
  if (n === r[P]) {
2089
- d = P;
2089
+ f = P;
2090
2090
  break;
2091
2091
  }
2092
- e.shiftKey ? ut(t, d, -1) : ut(t, d, 1), e.stopPropagation(), e.preventDefault();
2092
+ e.shiftKey ? dt(t, f, -1) : dt(t, f, 1), e.stopPropagation(), e.preventDefault();
2093
2093
  }, tr = (e) => {
2094
- const t = m(), n = l(), r = b();
2094
+ const t = m(), n = l(), r = v();
2095
2095
  if (![t, n, r].includes(document.activeElement))
2096
2096
  return;
2097
- const d = Dt.includes(e) ? "nextElementSibling" : "previousElementSibling";
2097
+ const f = $t.includes(e) ? "nextElementSibling" : "previousElementSibling";
2098
2098
  let P = document.activeElement;
2099
2099
  for (let J = 0; J < _().children.length; J++) {
2100
- if (P = P[d], !P)
2100
+ if (P = P[f], !P)
2101
2101
  return;
2102
2102
  if (le(P) && P instanceof HTMLButtonElement)
2103
2103
  break;
@@ -2106,16 +2106,16 @@ https://sweetalert2.github.io/#ajax-request`), yo(e), typeof e.title == "string"
2106
2106
  }, nr = (e, t, n) => {
2107
2107
  Y(t.allowEscapeKey) && (e.preventDefault(), n(Ue.esc));
2108
2108
  };
2109
- function Vt(e, t, n, r) {
2110
- ye() ? Nt(e, r) : (An(n).then(() => Nt(e, r)), jt(O)), /^((?!chrome|android).)*safari/i.test(navigator.userAgent) ? (t.setAttribute("style", "display:none !important"), t.removeAttribute("class"), t.innerHTML = "") : t.remove(), ee() && (Ao(), Io(), It()), or();
2109
+ function qt(e, t, n, r) {
2110
+ ye() ? zt(e, r) : (An(n).then(() => zt(e, r)), Nt(O)), /^((?!chrome|android).)*safari/i.test(navigator.userAgent) ? (t.setAttribute("style", "display:none !important"), t.removeAttribute("class"), t.innerHTML = "") : t.remove(), te() && (Ao(), Io(), Ut()), or();
2111
2111
  }
2112
2112
  function or() {
2113
2113
  ke([document.documentElement, document.body], [i.shown, i["height-auto"], i["no-backdrop"], i["toast-shown"]]);
2114
2114
  }
2115
- function Ze(e) {
2115
+ function Ge(e) {
2116
2116
  e = ar(e);
2117
- const t = Ne.swalPromiseResolve.get(this), n = sr(this);
2118
- this.isAwaitingPromise() ? e.isDismissed || ($e(this), t(e)) : n && t(e);
2117
+ const t = qe.swalPromiseResolve.get(this), n = sr(this);
2118
+ this.isAwaitingPromise() ? e.isDismissed || (ze(this), t(e)) : n && t(e);
2119
2119
  }
2120
2120
  function rr() {
2121
2121
  return !!R.awaitingPromise.get(this);
@@ -2128,14 +2128,14 @@ https://sweetalert2.github.io/#ajax-request`), yo(e), typeof e.title == "string"
2128
2128
  if (!n || Ce(t, n.hideClass.popup))
2129
2129
  return !1;
2130
2130
  ke(t, n.showClass.popup), D(t, n.hideClass.popup);
2131
- const r = T();
2131
+ const r = B();
2132
2132
  return ke(r, n.showClass.backdrop), D(r, n.hideClass.backdrop), cr(e, t, n), !0;
2133
2133
  };
2134
2134
  function ir(e) {
2135
- const t = Ne.swalPromiseReject.get(this);
2136
- $e(this), t && t(e);
2135
+ const t = qe.swalPromiseReject.get(this);
2136
+ ze(this), t && t(e);
2137
2137
  }
2138
- const $e = (e) => {
2138
+ const ze = (e) => {
2139
2139
  e.isAwaitingPromise() && (R.awaitingPromise.delete(e), R.innerParams.get(e) || e._destroy());
2140
2140
  }, ar = (e) => typeof e > "u" ? {
2141
2141
  isConfirmed: !1,
@@ -2146,66 +2146,66 @@ https://sweetalert2.github.io/#ajax-request`), yo(e), typeof e.title == "string"
2146
2146
  isDenied: !1,
2147
2147
  isDismissed: !1
2148
2148
  }, e), cr = (e, t, n) => {
2149
- const r = T(), d = De && At(t);
2150
- typeof n.willClose == "function" && n.willClose(t), d ? lr(e, t, r, n.returnFocus, n.didClose) : Vt(e, r, n.returnFocus, n.didClose);
2151
- }, lr = (e, t, n, r, d) => {
2152
- O.swalCloseEventFinishedCallback = Vt.bind(null, e, n, r, d), t.addEventListener(De, function(P) {
2149
+ const r = B(), f = Ne && Et(t);
2150
+ typeof n.willClose == "function" && n.willClose(t), f ? lr(e, t, r, n.returnFocus, n.didClose) : qt(e, r, n.returnFocus, n.didClose);
2151
+ }, lr = (e, t, n, r, f) => {
2152
+ O.swalCloseEventFinishedCallback = qt.bind(null, e, n, r, f), t.addEventListener(Ne, function(P) {
2153
2153
  P.target === t && (O.swalCloseEventFinishedCallback(), delete O.swalCloseEventFinishedCallback);
2154
2154
  });
2155
- }, Nt = (e, t) => {
2155
+ }, zt = (e, t) => {
2156
2156
  setTimeout(() => {
2157
2157
  typeof t == "function" && t.bind(e.params)(), e._destroy();
2158
2158
  });
2159
2159
  };
2160
- function $t(e, t, n) {
2160
+ function Wt(e, t, n) {
2161
2161
  const r = R.domCache.get(e);
2162
- t.forEach((d) => {
2163
- r[d].disabled = n;
2162
+ t.forEach((f) => {
2163
+ r[f].disabled = n;
2164
2164
  });
2165
2165
  }
2166
- function qt(e, t) {
2166
+ function Kt(e, t) {
2167
2167
  if (!e)
2168
2168
  return !1;
2169
2169
  if (e.type === "radio") {
2170
2170
  const r = e.parentNode.parentNode.querySelectorAll("input");
2171
- for (let d = 0; d < r.length; d++)
2172
- r[d].disabled = t;
2171
+ for (let f = 0; f < r.length; f++)
2172
+ r[f].disabled = t;
2173
2173
  } else
2174
2174
  e.disabled = t;
2175
2175
  }
2176
2176
  function ur() {
2177
- $t(this, ["confirmButton", "denyButton", "cancelButton"], !1);
2177
+ Wt(this, ["confirmButton", "denyButton", "cancelButton"], !1);
2178
2178
  }
2179
2179
  function dr() {
2180
- $t(this, ["confirmButton", "denyButton", "cancelButton"], !0);
2180
+ Wt(this, ["confirmButton", "denyButton", "cancelButton"], !0);
2181
2181
  }
2182
2182
  function fr() {
2183
- return qt(this.getInput(), !1);
2183
+ return Kt(this.getInput(), !1);
2184
2184
  }
2185
2185
  function hr() {
2186
- return qt(this.getInput(), !0);
2186
+ return Kt(this.getInput(), !0);
2187
2187
  }
2188
2188
  function pr(e) {
2189
2189
  const t = R.domCache.get(this), n = R.innerParams.get(this);
2190
- te(t.validationMessage, e), t.validationMessage.className = i["validation-message"], n.customClass && n.customClass.validationMessage && D(t.validationMessage, n.customClass.validationMessage), G(t.validationMessage);
2190
+ ne(t.validationMessage, e), t.validationMessage.className = i["validation-message"], n.customClass && n.customClass.validationMessage && D(t.validationMessage, n.customClass.validationMessage), Q(t.validationMessage);
2191
2191
  const r = this.getInput();
2192
- r && (r.setAttribute("aria-invalid", !0), r.setAttribute("aria-describedby", i["validation-message"]), yt(r), D(r, i.inputerror));
2192
+ r && (r.setAttribute("aria-invalid", !0), r.setAttribute("aria-describedby", i["validation-message"]), Ct(r), D(r, i.inputerror));
2193
2193
  }
2194
2194
  function gr() {
2195
2195
  const e = R.domCache.get(this);
2196
- e.validationMessage && ne(e.validationMessage);
2196
+ e.validationMessage && oe(e.validationMessage);
2197
2197
  const t = this.getInput();
2198
2198
  t && (t.removeAttribute("aria-invalid"), t.removeAttribute("aria-describedby"), ke(t, i.inputerror));
2199
2199
  }
2200
2200
  function mr() {
2201
2201
  return R.domCache.get(this).progressSteps;
2202
2202
  }
2203
- function vr(e) {
2203
+ function br(e) {
2204
2204
  const t = F(), n = R.innerParams.get(this);
2205
2205
  if (!t || Ce(t, n.hideClass.popup))
2206
- return B("You're trying to update the closed or closing popup, that won't work. Use the update() method in preConfirm parameter or show a new popup.");
2207
- const r = br(e), d = Object.assign({}, n, r);
2208
- Bt(this, d), R.innerParams.set(this, d), Object.defineProperties(this, {
2206
+ return T("You're trying to update the closed or closing popup, that won't work. Use the update() method in preConfirm parameter or show a new popup.");
2207
+ const r = vr(e), f = Object.assign({}, n, r);
2208
+ Lt(this, f), R.innerParams.set(this, f), Object.defineProperties(this, {
2209
2209
  params: {
2210
2210
  value: Object.assign({}, this.params, e),
2211
2211
  writable: !1,
@@ -2213,10 +2213,10 @@ https://sweetalert2.github.io/#ajax-request`), yo(e), typeof e.title == "string"
2213
2213
  }
2214
2214
  });
2215
2215
  }
2216
- const br = (e) => {
2216
+ const vr = (e) => {
2217
2217
  const t = {};
2218
2218
  return Object.keys(e).forEach((n) => {
2219
- we(n) ? t[n] = e[n] : B('Invalid parameter to update: "'.concat(n, `". Updatable params are listed here: https://github.com/sweetalert2/sweetalert2/blob/master/src/utils/params.js
2219
+ we(n) ? t[n] = e[n] : T('Invalid parameter to update: "'.concat(n, `". Updatable params are listed here: https://github.com/sweetalert2/sweetalert2/blob/master/src/utils/params.js
2220
2220
 
2221
2221
  If you think this parameter should be updatable, request it here: https://github.com/sweetalert2/sweetalert2/issues/new?template=02_feature_request.md`));
2222
2222
  }), t;
@@ -2224,30 +2224,30 @@ If you think this parameter should be updatable, request it here: https://github
2224
2224
  function wr() {
2225
2225
  const e = R.domCache.get(this), t = R.innerParams.get(this);
2226
2226
  if (!t) {
2227
- Wt(this);
2227
+ Jt(this);
2228
2228
  return;
2229
2229
  }
2230
2230
  e.popup && O.swalCloseEventFinishedCallback && (O.swalCloseEventFinishedCallback(), delete O.swalCloseEventFinishedCallback), O.deferDisposalTimer && (clearTimeout(O.deferDisposalTimer), delete O.deferDisposalTimer), typeof t.didDestroy == "function" && t.didDestroy(), yr(this);
2231
2231
  }
2232
2232
  const yr = (e) => {
2233
- Wt(e), delete e.params, delete O.keydownHandler, delete O.keydownTarget, delete O.currentInstance;
2234
- }, Wt = (e) => {
2235
- e.isAwaitingPromise() ? (dt(R, e), R.awaitingPromise.set(e, !0)) : (dt(Ne, e), dt(R, e));
2236
- }, dt = (e, t) => {
2233
+ Jt(e), delete e.params, delete O.keydownHandler, delete O.keydownTarget, delete O.currentInstance;
2234
+ }, Jt = (e) => {
2235
+ e.isAwaitingPromise() ? (ft(R, e), R.awaitingPromise.set(e, !0)) : (ft(qe, e), ft(R, e));
2236
+ }, ft = (e, t) => {
2237
2237
  for (const n in e)
2238
2238
  e[n].delete(t);
2239
2239
  };
2240
- var Kt = /* @__PURE__ */ Object.freeze({
2241
- hideLoading: Rt,
2242
- disableLoading: Rt,
2243
- getInput: Ko,
2244
- close: Ze,
2240
+ var Yt = /* @__PURE__ */ Object.freeze({
2241
+ hideLoading: Dt,
2242
+ disableLoading: Dt,
2243
+ getInput: Wo,
2244
+ close: Ge,
2245
2245
  isAwaitingPromise: rr,
2246
2246
  rejectPromise: ir,
2247
- handleAwaitingPromise: $e,
2248
- closePopup: Ze,
2249
- closeModal: Ze,
2250
- closeToast: Ze,
2247
+ handleAwaitingPromise: ze,
2248
+ closePopup: Ge,
2249
+ closeModal: Ge,
2250
+ closeToast: Ge,
2251
2251
  enableButtons: ur,
2252
2252
  disableButtons: dr,
2253
2253
  enableInput: fr,
@@ -2255,86 +2255,86 @@ If you think this parameter should be updatable, request it here: https://github
2255
2255
  showValidationMessage: pr,
2256
2256
  resetValidationMessage: gr,
2257
2257
  getProgressSteps: mr,
2258
- update: vr,
2258
+ update: br,
2259
2259
  _destroy: wr
2260
2260
  });
2261
2261
  const kr = (e) => {
2262
2262
  const t = R.innerParams.get(e);
2263
- e.disableButtons(), t.input ? zt(e, "confirm") : ht(e, !0);
2263
+ e.disableButtons(), t.input ? Xt(e, "confirm") : pt(e, !0);
2264
2264
  }, xr = (e) => {
2265
2265
  const t = R.innerParams.get(e);
2266
- e.disableButtons(), t.returnInputValueOnDeny ? zt(e, "deny") : ft(e, !1);
2266
+ e.disableButtons(), t.returnInputValueOnDeny ? Xt(e, "deny") : ht(e, !1);
2267
2267
  }, Cr = (e, t) => {
2268
2268
  e.disableButtons(), t(Ue.cancel);
2269
- }, zt = (e, t) => {
2269
+ }, Xt = (e, t) => {
2270
2270
  const n = R.innerParams.get(e);
2271
2271
  if (!n.input)
2272
2272
  return M('The "input" parameter is needed to be set when using returnInputValueOn'.concat(L(t)));
2273
2273
  const r = Ho(e, n);
2274
- n.inputValidator ? Ar(e, r, t) : e.getInput().checkValidity() ? t === "deny" ? ft(e, r) : ht(e, r) : (e.enableButtons(), e.showValidationMessage(n.validationMessage));
2274
+ n.inputValidator ? Ar(e, r, t) : e.getInput().checkValidity() ? t === "deny" ? ht(e, r) : pt(e, r) : (e.enableButtons(), e.showValidationMessage(n.validationMessage));
2275
2275
  }, Ar = (e, t, n) => {
2276
2276
  const r = R.innerParams.get(e);
2277
2277
  e.disableInput(), Promise.resolve().then(() => V(r.inputValidator(t, r.validationMessage))).then((P) => {
2278
- e.enableButtons(), e.enableInput(), P ? e.showValidationMessage(P) : n === "deny" ? ft(e, t) : ht(e, t);
2278
+ e.enableButtons(), e.enableInput(), P ? e.showValidationMessage(P) : n === "deny" ? ht(e, t) : pt(e, t);
2279
2279
  });
2280
- }, ft = (e, t) => {
2280
+ }, ht = (e, t) => {
2281
2281
  const n = R.innerParams.get(e || void 0);
2282
- n.showLoaderOnDeny && Me(l()), n.preDeny ? (R.awaitingPromise.set(e || void 0, !0), Promise.resolve().then(() => V(n.preDeny(t, n.validationMessage))).then((d) => {
2283
- d === !1 ? (e.hideLoading(), $e(e)) : e.closePopup({
2282
+ n.showLoaderOnDeny && Me(l()), n.preDeny ? (R.awaitingPromise.set(e || void 0, !0), Promise.resolve().then(() => V(n.preDeny(t, n.validationMessage))).then((f) => {
2283
+ f === !1 ? (e.hideLoading(), ze(e)) : e.closePopup({
2284
2284
  isDenied: !0,
2285
- value: typeof d > "u" ? t : d
2285
+ value: typeof f > "u" ? t : f
2286
2286
  });
2287
- }).catch((d) => Yt(e || void 0, d))) : e.closePopup({
2287
+ }).catch((f) => Gt(e || void 0, f))) : e.closePopup({
2288
2288
  isDenied: !0,
2289
2289
  value: t
2290
2290
  });
2291
- }, Jt = (e, t) => {
2291
+ }, Zt = (e, t) => {
2292
2292
  e.closePopup({
2293
2293
  isConfirmed: !0,
2294
2294
  value: t
2295
2295
  });
2296
- }, Yt = (e, t) => {
2296
+ }, Gt = (e, t) => {
2297
2297
  e.rejectPromise(t);
2298
- }, ht = (e, t) => {
2298
+ }, pt = (e, t) => {
2299
2299
  const n = R.innerParams.get(e || void 0);
2300
- n.showLoaderOnConfirm && Me(), n.preConfirm ? (e.resetValidationMessage(), R.awaitingPromise.set(e || void 0, !0), Promise.resolve().then(() => V(n.preConfirm(t, n.validationMessage))).then((d) => {
2301
- le(p()) || d === !1 ? (e.hideLoading(), $e(e)) : Jt(e, typeof d > "u" ? t : d);
2302
- }).catch((d) => Yt(e || void 0, d))) : Jt(e, t);
2300
+ n.showLoaderOnConfirm && Me(), n.preConfirm ? (e.resetValidationMessage(), R.awaitingPromise.set(e || void 0, !0), Promise.resolve().then(() => V(n.preConfirm(t, n.validationMessage))).then((f) => {
2301
+ le(p()) || f === !1 ? (e.hideLoading(), ze(e)) : Zt(e, typeof f > "u" ? t : f);
2302
+ }).catch((f) => Gt(e || void 0, f))) : Zt(e, t);
2303
2303
  }, Sr = (e, t, n) => {
2304
- R.innerParams.get(e).toast ? _r(e, t, n) : (Pr(t), Tr(t), Br(e, t, n));
2304
+ R.innerParams.get(e).toast ? _r(e, t, n) : (Pr(t), Br(t), Tr(e, t, n));
2305
2305
  }, _r = (e, t, n) => {
2306
2306
  t.popup.onclick = () => {
2307
2307
  const r = R.innerParams.get(e);
2308
2308
  r && (Er(r) || r.timer || r.input) || n(Ue.close);
2309
2309
  };
2310
2310
  }, Er = (e) => e.showConfirmButton || e.showDenyButton || e.showCancelButton || e.showCloseButton;
2311
- let Ge = !1;
2311
+ let Qe = !1;
2312
2312
  const Pr = (e) => {
2313
2313
  e.popup.onmousedown = () => {
2314
2314
  e.container.onmouseup = function(t) {
2315
- e.container.onmouseup = void 0, t.target === e.container && (Ge = !0);
2315
+ e.container.onmouseup = void 0, t.target === e.container && (Qe = !0);
2316
2316
  };
2317
2317
  };
2318
- }, Tr = (e) => {
2318
+ }, Br = (e) => {
2319
2319
  e.container.onmousedown = () => {
2320
2320
  e.popup.onmouseup = function(t) {
2321
- e.popup.onmouseup = void 0, (t.target === e.popup || e.popup.contains(t.target)) && (Ge = !0);
2321
+ e.popup.onmouseup = void 0, (t.target === e.popup || e.popup.contains(t.target)) && (Qe = !0);
2322
2322
  };
2323
2323
  };
2324
- }, Br = (e, t, n) => {
2324
+ }, Tr = (e, t, n) => {
2325
2325
  t.container.onclick = (r) => {
2326
- const d = R.innerParams.get(e);
2327
- if (Ge) {
2328
- Ge = !1;
2326
+ const f = R.innerParams.get(e);
2327
+ if (Qe) {
2328
+ Qe = !1;
2329
2329
  return;
2330
2330
  }
2331
- r.target === t.container && Y(d.allowOutsideClick) && n(Ue.backdrop);
2331
+ r.target === t.container && Y(f.allowOutsideClick) && n(Ue.backdrop);
2332
2332
  };
2333
- }, Ir = (e) => typeof e == "object" && e.jquery, Xt = (e) => e instanceof Element || Ir(e), Fr = (e) => {
2333
+ }, Ir = (e) => typeof e == "object" && e.jquery, Qt = (e) => e instanceof Element || Ir(e), Fr = (e) => {
2334
2334
  const t = {};
2335
- return typeof e[0] == "object" && !Xt(e[0]) ? Object.assign(t, e[0]) : ["title", "html", "icon"].forEach((n, r) => {
2336
- const d = e[r];
2337
- typeof d == "string" || Xt(d) ? t[n] = d : d !== void 0 && M("Unexpected type of ".concat(n, '! Expected "string" or "Element", got ').concat(typeof d));
2335
+ return typeof e[0] == "object" && !Qt(e[0]) ? Object.assign(t, e[0]) : ["title", "html", "icon"].forEach((n, r) => {
2336
+ const f = e[r];
2337
+ typeof f == "string" || Qt(f) ? t[n] = f : f !== void 0 && M("Unexpected type of ".concat(n, '! Expected "string" or "Element", got ').concat(typeof f));
2338
2338
  }), t;
2339
2339
  };
2340
2340
  function Lr() {
@@ -2345,41 +2345,41 @@ If you think this parameter should be updatable, request it here: https://github
2345
2345
  }
2346
2346
  function Ur(e) {
2347
2347
  class t extends this {
2348
- _main(r, d) {
2349
- return super._main(r, Object.assign({}, e, d));
2348
+ _main(r, f) {
2349
+ return super._main(r, Object.assign({}, e, f));
2350
2350
  }
2351
2351
  }
2352
2352
  return t;
2353
2353
  }
2354
- const Mr = () => O.timeout && O.timeout.getTimerLeft(), Zt = () => {
2354
+ const Mr = () => O.timeout && O.timeout.getTimerLeft(), en = () => {
2355
2355
  if (O.timeout)
2356
2356
  return kn(), O.timeout.stop();
2357
- }, Gt = () => {
2357
+ }, tn = () => {
2358
2358
  if (O.timeout) {
2359
2359
  const e = O.timeout.start();
2360
- return st(e), e;
2360
+ return it(e), e;
2361
2361
  }
2362
2362
  }, Or = () => {
2363
2363
  const e = O.timeout;
2364
- return e && (e.running ? Zt() : Gt());
2364
+ return e && (e.running ? en() : tn());
2365
2365
  }, Rr = (e) => {
2366
2366
  if (O.timeout) {
2367
2367
  const t = O.timeout.increase(e);
2368
- return st(t, !0), t;
2368
+ return it(t, !0), t;
2369
2369
  }
2370
2370
  }, Hr = () => O.timeout && O.timeout.isRunning();
2371
- let Qt = !1;
2372
- const pt = {};
2371
+ let nn = !1;
2372
+ const gt = {};
2373
2373
  function jr() {
2374
2374
  let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : "data-swal-template";
2375
- pt[e] = this, Qt || (document.body.addEventListener("click", Dr), Qt = !0);
2375
+ gt[e] = this, nn || (document.body.addEventListener("click", Dr), nn = !0);
2376
2376
  }
2377
2377
  const Dr = (e) => {
2378
2378
  for (let t = e.target; t && t !== document; t = t.parentNode)
2379
- for (const n in pt) {
2379
+ for (const n in gt) {
2380
2380
  const r = t.getAttribute(n);
2381
2381
  if (r) {
2382
- pt[n].fire({
2382
+ gt[n].fire({
2383
2383
  template: r
2384
2384
  });
2385
2385
  return;
@@ -2387,56 +2387,56 @@ If you think this parameter should be updatable, request it here: https://github
2387
2387
  }
2388
2388
  };
2389
2389
  var Vr = /* @__PURE__ */ Object.freeze({
2390
- isValidParameter: z,
2390
+ isValidParameter: K,
2391
2391
  isUpdatableParameter: we,
2392
- isDeprecatedParameter: X,
2392
+ isDeprecatedParameter: Z,
2393
2393
  argsToParams: Fr,
2394
- isVisible: zo,
2395
- clickConfirm: Ht,
2394
+ isVisible: Ko,
2395
+ clickConfirm: Vt,
2396
2396
  clickDeny: Jo,
2397
2397
  clickCancel: Yo,
2398
- getContainer: T,
2398
+ getContainer: B,
2399
2399
  getPopup: F,
2400
2400
  getTitle: H,
2401
- getHtmlContainer: Q,
2401
+ getHtmlContainer: ee,
2402
2402
  getImage: s,
2403
- getIcon: Z,
2403
+ getIcon: G,
2404
2404
  getInputLabel: A,
2405
2405
  getCloseButton: j,
2406
2406
  getActions: _,
2407
2407
  getConfirmButton: m,
2408
2408
  getDenyButton: l,
2409
- getCancelButton: b,
2410
- getLoader: v,
2409
+ getCancelButton: v,
2410
+ getLoader: b,
2411
2411
  getFooter: E,
2412
2412
  getTimerProgressBar: U,
2413
- getFocusableElements: he,
2413
+ getFocusableElements: ge,
2414
2414
  getValidationMessage: p,
2415
- isLoading: bn,
2415
+ isLoading: vn,
2416
2416
  fire: Lr,
2417
2417
  mixin: Ur,
2418
2418
  showLoading: Me,
2419
2419
  enableLoading: Me,
2420
2420
  getTimerLeft: Mr,
2421
- stopTimer: Zt,
2422
- resumeTimer: Gt,
2421
+ stopTimer: en,
2422
+ resumeTimer: tn,
2423
2423
  toggleTimer: Or,
2424
2424
  increaseTimer: Rr,
2425
2425
  isTimerRunning: Hr,
2426
2426
  bindClickHandler: jr
2427
2427
  });
2428
- let gt;
2428
+ let mt;
2429
2429
  class Oe {
2430
2430
  constructor() {
2431
2431
  if (typeof window > "u")
2432
2432
  return;
2433
- gt = this;
2433
+ mt = this;
2434
2434
  for (var t = arguments.length, n = new Array(t), r = 0; r < t; r++)
2435
2435
  n[r] = arguments[r];
2436
- const d = Object.freeze(this.constructor.argsToParams(n));
2436
+ const f = Object.freeze(this.constructor.argsToParams(n));
2437
2437
  Object.defineProperties(this, {
2438
2438
  params: {
2439
- value: d,
2439
+ value: f,
2440
2440
  writable: !1,
2441
2441
  enumerable: !0,
2442
2442
  configurable: !0
@@ -2447,11 +2447,11 @@ If you think this parameter should be updatable, request it here: https://github
2447
2447
  }
2448
2448
  _main(t) {
2449
2449
  let n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
2450
- C(Object.assign({}, n, t)), O.currentInstance && (O.currentInstance._destroy(), ee() && It()), O.currentInstance = this;
2450
+ C(Object.assign({}, n, t)), O.currentInstance && (O.currentInstance._destroy(), te() && Ut()), O.currentInstance = this;
2451
2451
  const r = $r(t, n);
2452
2452
  ko(r), Object.freeze(r), O.timeout && (O.timeout.stop(), delete O.timeout), clearTimeout(O.restoreFocusTimeout);
2453
- const d = qr(this);
2454
- return Bt(this, r), R.innerParams.set(this, r), Nr(this, d, r);
2453
+ const f = qr(this);
2454
+ return Lt(this, r), R.innerParams.set(this, r), Nr(this, f, r);
2455
2455
  }
2456
2456
  // `catch` cannot be the name of a module export, so we define our thenable methods here instead
2457
2457
  then(t) {
@@ -2461,68 +2461,68 @@ If you think this parameter should be updatable, request it here: https://github
2461
2461
  return R.promise.get(this).finally(t);
2462
2462
  }
2463
2463
  }
2464
- const Nr = (e, t, n) => new Promise((r, d) => {
2464
+ const Nr = (e, t, n) => new Promise((r, f) => {
2465
2465
  const P = (J) => {
2466
2466
  e.closePopup({
2467
2467
  isDismissed: !0,
2468
2468
  dismiss: J
2469
2469
  });
2470
2470
  };
2471
- Ne.swalPromiseResolve.set(e, r), Ne.swalPromiseReject.set(e, d), t.confirmButton.onclick = () => kr(e), t.denyButton.onclick = () => xr(e), t.cancelButton.onclick = () => Cr(e, P), t.closeButton.onclick = () => P(Ue.close), Sr(e, t, P), Xo(e, O, n, P), Ro(e, n), Fo(n), Wr(O, n, P), Kr(t, n), setTimeout(() => {
2471
+ qe.swalPromiseResolve.set(e, r), qe.swalPromiseReject.set(e, f), t.confirmButton.onclick = () => kr(e), t.denyButton.onclick = () => xr(e), t.cancelButton.onclick = () => Cr(e, P), t.closeButton.onclick = () => P(Ue.close), Sr(e, t, P), Xo(e, O, n, P), Ro(e, n), Fo(n), zr(O, n, P), Wr(t, n), setTimeout(() => {
2472
2472
  t.container.scrollTop = 0;
2473
2473
  });
2474
2474
  }), $r = (e, t) => {
2475
- const n = uo(e), r = Object.assign({}, be, t, n, e);
2476
- return r.showClass = Object.assign({}, be.showClass, r.showClass), r.hideClass = Object.assign({}, be.hideClass, r.hideClass), r;
2475
+ const n = uo(e), r = Object.assign({}, ve, t, n, e);
2476
+ return r.showClass = Object.assign({}, ve.showClass, r.showClass), r.hideClass = Object.assign({}, ve.hideClass, r.hideClass), r;
2477
2477
  }, qr = (e) => {
2478
2478
  const t = {
2479
2479
  popup: F(),
2480
- container: T(),
2480
+ container: B(),
2481
2481
  actions: _(),
2482
2482
  confirmButton: m(),
2483
2483
  denyButton: l(),
2484
- cancelButton: b(),
2485
- loader: v(),
2484
+ cancelButton: v(),
2485
+ loader: b(),
2486
2486
  closeButton: j(),
2487
2487
  validationMessage: p(),
2488
2488
  progressSteps: a()
2489
2489
  };
2490
2490
  return R.domCache.set(e, t), t;
2491
- }, Wr = (e, t, n) => {
2491
+ }, zr = (e, t, n) => {
2492
2492
  const r = U();
2493
- ne(r), t.timer && (e.timeout = new xo(() => {
2493
+ oe(r), t.timer && (e.timeout = new xo(() => {
2494
2494
  n("timer"), delete e.timeout;
2495
- }, t.timer), t.timerProgressBar && (G(r), pe(r, t, "timerProgressBar"), setTimeout(() => {
2496
- e.timeout && e.timeout.running && st(t.timer);
2495
+ }, t.timer), t.timerProgressBar && (Q(r), me(r, t, "timerProgressBar"), setTimeout(() => {
2496
+ e.timeout && e.timeout.running && it(t.timer);
2497
2497
  })));
2498
- }, Kr = (e, t) => {
2498
+ }, Wr = (e, t) => {
2499
2499
  if (!t.toast) {
2500
2500
  if (!Y(t.allowEnterKey))
2501
2501
  return Jr();
2502
- zr(e, t) || ut(t, -1, 1);
2502
+ Kr(e, t) || dt(t, -1, 1);
2503
2503
  }
2504
- }, zr = (e, t) => t.focusDeny && le(e.denyButton) ? (e.denyButton.focus(), !0) : t.focusCancel && le(e.cancelButton) ? (e.cancelButton.focus(), !0) : t.focusConfirm && le(e.confirmButton) ? (e.confirmButton.focus(), !0) : !1, Jr = () => {
2504
+ }, Kr = (e, t) => t.focusDeny && le(e.denyButton) ? (e.denyButton.focus(), !0) : t.focusCancel && le(e.cancelButton) ? (e.cancelButton.focus(), !0) : t.focusConfirm && le(e.confirmButton) ? (e.confirmButton.focus(), !0) : !1, Jr = () => {
2505
2505
  document.activeElement instanceof HTMLElement && typeof document.activeElement.blur == "function" && document.activeElement.blur();
2506
2506
  };
2507
- Object.assign(Oe.prototype, Kt), Object.assign(Oe, Vr), Object.keys(Kt).forEach((e) => {
2507
+ Object.assign(Oe.prototype, Yt), Object.assign(Oe, Vr), Object.keys(Yt).forEach((e) => {
2508
2508
  Oe[e] = function() {
2509
- if (gt)
2510
- return gt[e](...arguments);
2509
+ if (mt)
2510
+ return mt[e](...arguments);
2511
2511
  };
2512
2512
  }), Oe.DismissReason = Ue, Oe.version = "11.4.8";
2513
- const Qe = Oe;
2514
- return Qe.default = Qe, Qe;
2513
+ const et = Oe;
2514
+ return et.default = et, et;
2515
2515
  }), typeof Ae < "u" && Ae.Sweetalert2 && (Ae.swal = Ae.sweetAlert = Ae.Swal = Ae.SweetAlert = Ae.Sweetalert2);
2516
- })(vn);
2517
- var Is = vn.exports;
2518
- const tn = /* @__PURE__ */ hn(Is);
2516
+ })(bn);
2517
+ var Is = bn.exports;
2518
+ const rn = /* @__PURE__ */ hn(Is);
2519
2519
  class Fs {
2520
2520
  get IsVisible() {
2521
- return tn.isVisible();
2521
+ return rn.isVisible();
2522
2522
  }
2523
2523
  async ConfirmAsync(o) {
2524
- return new Promise((f) => {
2525
- tn.fire({
2524
+ return new Promise((d) => {
2525
+ rn.fire({
2526
2526
  showCancelButton: !0,
2527
2527
  allowEscapeKey: !1,
2528
2528
  allowOutsideClick: !1,
@@ -2531,39 +2531,39 @@ class Fs {
2531
2531
  html: o.message,
2532
2532
  confirmButtonText: o.confirmLabel ?? "confirmar",
2533
2533
  cancelButtonText: o.rejectLabel ?? "cancelar"
2534
- }).then((y) => {
2535
- f(y.isConfirmed === !0);
2534
+ }).then((w) => {
2535
+ d(w.isConfirmed === !0);
2536
2536
  });
2537
2537
  });
2538
2538
  }
2539
2539
  }
2540
- const Ls = new Fs(), Us = () => Ls, Ms = ["data-cor"], Os = /* @__PURE__ */ Te({
2540
+ const Ls = new Fs(), Us = () => Ls, Ms = ["data-cor"], Os = /* @__PURE__ */ _e({
2541
2541
  __name: "HeaderAvatar",
2542
2542
  setup(c) {
2543
- const o = Us(), f = L();
2544
- async function y() {
2543
+ const o = Us(), d = L();
2544
+ async function w() {
2545
2545
  await o.ConfirmAsync({
2546
2546
  message: `${se.User.username} - ${se.User.name}.<br /><br />Você deseja sair da conta?`,
2547
2547
  confirmLabel: "sair"
2548
2548
  }) && se.CallLogout();
2549
2549
  }
2550
2550
  function L() {
2551
- const B = se.User.name;
2551
+ const T = se.User.name;
2552
2552
  let M = "?";
2553
- if (!B)
2553
+ if (!T)
2554
2554
  return M;
2555
- const h = B.split(" ").filter((W) => W.length > 0).map((W) => W[0].toUpperCase()), K = Math.min(2, h.length);
2556
- return M = h.slice(0, K).join(""), M.length > 0 ? M : "?";
2555
+ const h = T.split(" ").filter((z) => z.length > 0).map((z) => z[0].toUpperCase()), W = Math.min(2, h.length);
2556
+ return M = h.slice(0, W).join(""), M.length > 0 ? M : "?";
2557
2557
  }
2558
2558
  function k() {
2559
- const B = f[0], M = B === "?" ? 0 : (B.charCodeAt(0) - 64) % 19;
2559
+ const T = d[0], M = T === "?" ? 0 : (T.charCodeAt(0) - 64) % 19;
2560
2560
  return Math.max(M, 0);
2561
2561
  }
2562
- return (B, M) => (oe(), ve("div", {
2562
+ return (T, M) => (X(), fe("div", {
2563
2563
  id: "sf-header-avatar",
2564
2564
  "data-cor": k(),
2565
- onClick: y
2566
- }, tt(Ee(f)), 9, Ms));
2565
+ onClick: w
2566
+ }, nt(Be(d)), 9, Ms));
2567
2567
  }
2568
2568
  }), Rs = {}, Hs = {
2569
2569
  xmlns: "http://www.w3.org/2000/svg",
@@ -2571,13 +2571,13 @@ const Ls = new Fs(), Us = () => Ls, Ms = ["data-cor"], Os = /* @__PURE__ */ Te({
2571
2571
  viewBox: "0 -960 960 960",
2572
2572
  width: "48",
2573
2573
  class: "sf-svg-icon"
2574
- }, js = /* @__PURE__ */ q("path", { d: "m307.231-83.463-54.999-55.23 343.923-343.922-343.923-343.539 54.999-54.614 398.153 398.153L307.231-83.462Z" }, null, -1), Ds = [
2574
+ }, js = /* @__PURE__ */ N("path", { d: "m307.231-83.463-54.999-55.23 343.923-343.922-343.923-343.539 54.999-54.614 398.153 398.153L307.231-83.462Z" }, null, -1), Ds = [
2575
2575
  js
2576
2576
  ];
2577
2577
  function Vs(c, o) {
2578
- return oe(), ve("svg", Hs, Ds);
2578
+ return X(), fe("svg", Hs, Ds);
2579
2579
  }
2580
- const Ns = /* @__PURE__ */ dn(Rs, [["render", Vs]]);
2580
+ const Ns = /* @__PURE__ */ fn(Rs, [["render", Vs]]);
2581
2581
  class $s {
2582
2582
  get storedTheme() {
2583
2583
  return localStorage.getItem("color-scheme");
@@ -2604,66 +2604,66 @@ class $s {
2604
2604
  this.EnableLightMode();
2605
2605
  }
2606
2606
  }
2607
- const wt = (() => new $s())(), qs = /* @__PURE__ */ Qr('<svg xmlns="http://www.w3.org/2000/svg" width="472.39" height="472.39" viewBox="0 0 472.39 472.39"><g class="toggle-sun"><path d="M403.21,167V69.18H305.38L236.2,0,167,69.18H69.18V167L0,236.2l69.18,69.18v97.83H167l69.18,69.18,69.18-69.18h97.83V305.38l69.18-69.18Zm-167,198.17a129,129,0,1,1,129-129A129,129,0,0,1,236.2,365.19Z"></path></g><g class="toggle-circle"><circle class="cls-1" cx="236.2" cy="236.2" r="103.78"></circle></g></svg>', 1), Ws = [
2607
+ const yt = (() => new $s())(), qs = /* @__PURE__ */ Qr('<svg xmlns="http://www.w3.org/2000/svg" width="472.39" height="472.39" viewBox="0 0 472.39 472.39"><g class="toggle-sun"><path d="M403.21,167V69.18H305.38L236.2,0,167,69.18H69.18V167L0,236.2l69.18,69.18v97.83H167l69.18,69.18,69.18-69.18h97.83V305.38l69.18-69.18Zm-167,198.17a129,129,0,1,1,129-129A129,129,0,0,1,236.2,365.19Z"></path></g><g class="toggle-circle"><circle class="cls-1" cx="236.2" cy="236.2" r="103.78"></circle></g></svg>', 1), zs = [
2608
2608
  qs
2609
- ], Ks = /* @__PURE__ */ Te({
2609
+ ], Ws = /* @__PURE__ */ _e({
2610
2610
  __name: "ThemeToggle",
2611
2611
  setup(c) {
2612
- return (o, f) => (oe(), ve("button", {
2612
+ return (o, d) => (X(), fe("button", {
2613
2613
  id: "sf-theme-toggle",
2614
- onClick: f[0] || (f[0] = //@ts-ignore
2615
- (...y) => Ee(wt).Toggle && Ee(wt).Toggle(...y))
2616
- }, Ws));
2614
+ onClick: d[0] || (d[0] = //@ts-ignore
2615
+ (...w) => Be(yt).Toggle && Be(yt).Toggle(...w))
2616
+ }, zs));
2617
2617
  }
2618
- }), zs = { id: "sf-layout" }, Js = /* @__PURE__ */ q("div", { class: "sf-layout-menu-toggler-logo" }, null, -1), Ys = { class: "title" }, Xs = { class: "sf-layout-nav-header" }, Zs = /* @__PURE__ */ q("span", null, "Menu", -1), Gs = { class: "sf-layout-nav-content" }, Qs = /* @__PURE__ */ q("section", { id: "sf-layout-page-title" }, null, -1), ei = { id: "sf-layout-content" }, hi = /* @__PURE__ */ Te({
2618
+ }), Ks = { id: "sf-layout" }, Js = /* @__PURE__ */ N("div", { class: "sf-layout-menu-toggler-logo" }, null, -1), Ys = { class: "title" }, Xs = { class: "sf-layout-nav-header" }, Zs = /* @__PURE__ */ N("span", null, "Menu", -1), Gs = { class: "sf-layout-nav-content" }, Qs = /* @__PURE__ */ N("section", { id: "sf-layout-page-title" }, null, -1), ei = { id: "sf-layout-content" }, gi = /* @__PURE__ */ _e({
2619
2619
  __name: "Layout",
2620
2620
  setup(c) {
2621
- const o = ln();
2622
- return (f, y) => (oe(), ve("div", zs, [
2623
- q("header", null, [
2624
- q("div", {
2625
- class: me([
2621
+ const o = un();
2622
+ return (d, w) => (X(), fe("div", Ks, [
2623
+ N("header", null, [
2624
+ N("div", {
2625
+ class: de([
2626
2626
  "sf-layout-menu-toggler",
2627
- { invert: Ee(o).IsVisible }
2627
+ { invert: Be(o).IsVisible }
2628
2628
  ]),
2629
- onClick: y[0] || (y[0] = (L) => Ee(o).Toggle())
2629
+ onClick: w[0] || (w[0] = (L) => Be(o).Toggle())
2630
2630
  }, [
2631
2631
  Js,
2632
- We(Ns)
2632
+ Ke(Ns)
2633
2633
  ], 2),
2634
- q("div", Ys, [
2635
- Pe(f.$slots, "title")
2634
+ N("div", Ys, [
2635
+ Se(d.$slots, "title")
2636
2636
  ]),
2637
- Pe(f.$slots, "action"),
2638
- We(Ks),
2639
- We(Os)
2637
+ Se(d.$slots, "action"),
2638
+ Ke(Ws),
2639
+ Ke(Os)
2640
2640
  ]),
2641
- q("nav", {
2642
- class: me({ visible: Ee(o).IsVisible })
2641
+ N("nav", {
2642
+ class: de({ visible: Be(o).IsVisible })
2643
2643
  }, [
2644
- q("div", Xs, [
2644
+ N("div", Xs, [
2645
2645
  Zs,
2646
- We(fn, {
2646
+ Ke(tt, {
2647
2647
  icone: "close",
2648
2648
  button: "",
2649
- onClick: y[1] || (y[1] = (L) => Ee(o).Close())
2649
+ onClick: w[1] || (w[1] = (L) => Be(o).Close())
2650
2650
  })
2651
2651
  ]),
2652
- q("div", Gs, [
2653
- Pe(f.$slots, "menu")
2652
+ N("div", Gs, [
2653
+ Se(d.$slots, "menu")
2654
2654
  ])
2655
2655
  ], 2),
2656
- q("main", {
2657
- class: me({ "menu-visible": Ee(o).IsVisible })
2656
+ N("main", {
2657
+ class: de({ "menu-visible": Be(o).IsVisible })
2658
2658
  }, [
2659
2659
  Qs,
2660
- q("section", ei, [
2661
- Pe(f.$slots, "content")
2660
+ N("section", ei, [
2661
+ Se(d.$slots, "content")
2662
2662
  ])
2663
2663
  ], 2)
2664
2664
  ]));
2665
2665
  }
2666
- }), ti = ["href", "data-active", "onClick"], ni = { class: "sf-navmenulink-text" }, pi = /* @__PURE__ */ Te({
2666
+ }), ti = ["href", "data-active", "onClick"], ni = { class: "sf-navmenulink-text" }, mi = /* @__PURE__ */ _e({
2667
2667
  __name: "NavMenuLink",
2668
2668
  props: {
2669
2669
  href: {},
@@ -2672,57 +2672,57 @@ const wt = (() => new $s())(), qs = /* @__PURE__ */ Qr('<svg xmlns="http://www.w
2672
2672
  exact: { type: Boolean }
2673
2673
  },
2674
2674
  setup(c) {
2675
- const o = c, f = ln();
2676
- function y(L, k) {
2675
+ const o = c, d = un();
2676
+ function w(L, k) {
2677
2677
  L.preventDefault();
2678
2678
  const M = L.target.closest(".sf-layout-nav-content");
2679
- k(), M && M.clientWidth + 10 > document.body.clientWidth && f.Close();
2679
+ k(), M && M.clientWidth + 10 > document.body.clientWidth && d.Close();
2680
2680
  }
2681
2681
  return (L, k) => {
2682
- const B = sn("router-link");
2683
- return oe(), et(B, {
2682
+ const T = an("router-link");
2683
+ return X(), De(T, {
2684
2684
  to: o.href,
2685
2685
  custom: ""
2686
2686
  }, {
2687
- default: an(({ href: M, navigate: h, isExactActive: K, isActive: W }) => [
2688
- q("a", {
2687
+ default: cn(({ href: M, navigate: h, isExactActive: W, isActive: z }) => [
2688
+ N("a", {
2689
2689
  class: "sf-navmenulink",
2690
2690
  href: M,
2691
- "data-active": o.exact ? K : W,
2692
- onClick: (Y) => y(Y, h)
2691
+ "data-active": o.exact ? W : z,
2692
+ onClick: (Y) => w(Y, h)
2693
2693
  }, [
2694
- o.icon ? (oe(), et(fn, {
2694
+ o.icon ? (X(), De(tt, {
2695
2695
  key: 0,
2696
2696
  icone: o.icon,
2697
2697
  "button-props": { tabindex: -1 }
2698
- }, null, 8, ["icone"])) : rn("", !0),
2699
- q("span", ni, tt(o.text), 1)
2698
+ }, null, 8, ["icone"])) : xt("", !0),
2699
+ N("span", ni, nt(o.text), 1)
2700
2700
  ], 8, ti)
2701
2701
  ]),
2702
2702
  _: 1
2703
2703
  }, 8, ["to"]);
2704
2704
  };
2705
2705
  }
2706
- }), oi = /* @__PURE__ */ Te({
2706
+ }), oi = /* @__PURE__ */ _e({
2707
2707
  __name: "ScrollToTop",
2708
2708
  setup(c) {
2709
- const o = Ye(!1), f = `--${+/* @__PURE__ */ new Date()}`;
2710
- let y = null;
2709
+ const o = Xe(!1), d = `--${+/* @__PURE__ */ new Date()}`;
2710
+ let w = null;
2711
2711
  function L() {
2712
- y == null || y.scrollTo(0, 0);
2712
+ w == null || w.scrollTo(0, 0);
2713
2713
  }
2714
- return cn(() => {
2714
+ return ln(() => {
2715
2715
  var k;
2716
- y = ((k = document.getElementById(f)) == null ? void 0 : k.parentElement) ?? null, y && y.addEventListener("scroll", function() {
2716
+ w = ((k = document.getElementById(d)) == null ? void 0 : k.parentElement) ?? null, w && w.addEventListener("scroll", function() {
2717
2717
  o.value = this.scrollTop - this.clientHeight > 0;
2718
2718
  });
2719
- }), (k, B) => (oe(), ve("button", {
2720
- id: f,
2721
- class: me(["sf-scrollToTop", { "sf-scrollToTop-visible": o.value }]),
2719
+ }), (k, T) => (X(), fe("button", {
2720
+ id: d,
2721
+ class: de(["sf-scrollToTop", { "sf-scrollToTop-visible": o.value }]),
2722
2722
  onClick: L
2723
2723
  }, null, 2));
2724
2724
  }
2725
- }), gi = /* @__PURE__ */ Te({
2725
+ }), bi = /* @__PURE__ */ _e({
2726
2726
  __name: "Content",
2727
2727
  props: {
2728
2728
  class: {},
@@ -2733,41 +2733,41 @@ const wt = (() => new $s())(), qs = /* @__PURE__ */ Qr('<svg xmlns="http://www.w
2733
2733
  },
2734
2734
  setup(c) {
2735
2735
  const o = c;
2736
- function f() {
2737
- return new ze("sf-content").AddClass(o.class, !!o.class).Build();
2736
+ function d() {
2737
+ return new je("sf-content").AddClass(o.class, !!o.class).Build();
2738
2738
  }
2739
- function y() {
2740
- return new ze("sf-content-body").AddClass("sf-content-no-padding", o.disableBodyPadding).Build();
2739
+ function w() {
2740
+ return new je("sf-content-body").AddClass("sf-content-no-padding", o.disableBodyPadding).Build();
2741
2741
  }
2742
2742
  function L() {
2743
- return new ze("sf-content-header").AddClass("sf-content-no-padding", o.disableHeaderPadding).Build();
2743
+ return new je("sf-content-header").AddClass("sf-content-no-padding", o.disableHeaderPadding).Build();
2744
2744
  }
2745
2745
  function k() {
2746
- return new ze("sf-content-footer").AddClass("sf-content-no-padding", o.disableFooterPadding).Build();
2746
+ return new je("sf-content-footer").AddClass("sf-content-no-padding", o.disableFooterPadding).Build();
2747
2747
  }
2748
- return (B, M) => (oe(), ve("div", {
2749
- class: me(f()),
2750
- style: nn(o.style)
2748
+ return (T, M) => (X(), fe("div", {
2749
+ class: de(d()),
2750
+ style: kt(o.style)
2751
2751
  }, [
2752
- q("div", {
2753
- class: me(L())
2752
+ N("div", {
2753
+ class: de(L())
2754
2754
  }, [
2755
- Pe(B.$slots, "header")
2755
+ Se(T.$slots, "header")
2756
2756
  ], 2),
2757
- q("div", {
2758
- class: me(y())
2757
+ N("div", {
2758
+ class: de(w())
2759
2759
  }, [
2760
- Pe(B.$slots, "default"),
2761
- We(oi)
2760
+ Se(T.$slots, "default"),
2761
+ Ke(oi)
2762
2762
  ], 2),
2763
- q("div", {
2764
- class: me(k())
2763
+ N("div", {
2764
+ class: de(k())
2765
2765
  }, [
2766
- Pe(B.$slots, "footer")
2766
+ Se(T.$slots, "footer")
2767
2767
  ], 2)
2768
2768
  ], 6));
2769
2769
  }
2770
- }), ri = { class: "sf-tab-navigation" }, si = /* @__PURE__ */ q("svg", {
2770
+ }), ri = { class: "sf-tab-navigation" }, si = /* @__PURE__ */ N("svg", {
2771
2771
  xmlns: "http://www.w3.org/2000/svg",
2772
2772
  fill: "none",
2773
2773
  viewBox: "0 0 24 24",
@@ -2775,14 +2775,14 @@ const wt = (() => new $s())(), qs = /* @__PURE__ */ Qr('<svg xmlns="http://www.w
2775
2775
  stroke: "currentColor",
2776
2776
  class: "w-6 h-6"
2777
2777
  }, [
2778
- /* @__PURE__ */ q("path", {
2778
+ /* @__PURE__ */ N("path", {
2779
2779
  "stroke-linecap": "round",
2780
2780
  "stroke-linejoin": "round",
2781
2781
  d: "M15.75 19.5L8.25 12l7.5-7.5"
2782
2782
  })
2783
2783
  ], -1), ii = [
2784
2784
  si
2785
- ], ai = ["data-active"], ci = ["href", "onClick"], li = /* @__PURE__ */ q("svg", {
2785
+ ], ai = ["data-active"], ci = ["href", "onClick"], li = /* @__PURE__ */ N("svg", {
2786
2786
  xmlns: "http://www.w3.org/2000/svg",
2787
2787
  fill: "none",
2788
2788
  viewBox: "0 0 24 24",
@@ -2790,86 +2790,137 @@ const wt = (() => new $s())(), qs = /* @__PURE__ */ Qr('<svg xmlns="http://www.w
2790
2790
  stroke: "currentColor",
2791
2791
  class: "w-6 h-6"
2792
2792
  }, [
2793
- /* @__PURE__ */ q("path", {
2793
+ /* @__PURE__ */ N("path", {
2794
2794
  "stroke-linecap": "round",
2795
2795
  "stroke-linejoin": "round",
2796
2796
  d: "M8.25 4.5l7.5 7.5-7.5 7.5"
2797
2797
  })
2798
2798
  ], -1), ui = [
2799
2799
  li
2800
- ], mi = /* @__PURE__ */ Te({
2800
+ ], vi = /* @__PURE__ */ _e({
2801
2801
  __name: "TabNavigation",
2802
2802
  props: {
2803
2803
  tabs: {}
2804
2804
  },
2805
2805
  setup(c) {
2806
- const o = c, f = Ye(null), y = new ResizeObserver((h) => {
2806
+ const o = c, d = Xe(null), w = new ResizeObserver((h) => {
2807
2807
  M();
2808
- }), L = Ye(!1), k = Ye(!1);
2809
- function B(h = !1) {
2810
- const K = f.value.clientWidth;
2811
- f.value.scrollLeft += h ? -K : K;
2808
+ }), L = Xe(!1), k = Xe(!1);
2809
+ function T(h = !1) {
2810
+ const W = d.value.clientWidth;
2811
+ d.value.scrollLeft += h ? -W : W;
2812
2812
  }
2813
2813
  function M() {
2814
- const h = f.value.scrollWidth - f.value.clientWidth;
2815
- L.value = f.value.scrollLeft > 10, k.value = f.value.scrollLeft < h - 10;
2814
+ const h = d.value.scrollWidth - d.value.clientWidth;
2815
+ L.value = d.value.scrollLeft > 10, k.value = d.value.scrollLeft < h - 10;
2816
2816
  }
2817
- return cn(() => {
2818
- f.value.addEventListener("scroll", M), y.observe(f.value);
2817
+ return ln(() => {
2818
+ d.value.addEventListener("scroll", M), w.observe(d.value);
2819
2819
  }), es(() => {
2820
2820
  var h;
2821
2821
  try {
2822
- (h = f.value) == null || h.removeEventListener(
2822
+ (h = d.value) == null || h.removeEventListener(
2823
2823
  "scroll",
2824
2824
  M
2825
- ), y.unobserve(f.value), y.disconnect();
2825
+ ), w.unobserve(d.value), w.disconnect();
2826
2826
  } catch {
2827
2827
  }
2828
- }), (h, K) => {
2829
- const W = sn("RouterLink");
2830
- return oe(), ve("div", ri, [
2831
- q("div", {
2832
- class: me(["left-arrow", { active: L.value }]),
2833
- onClick: K[0] || (K[0] = (Y) => B(!0))
2828
+ }), (h, W) => {
2829
+ const z = an("RouterLink");
2830
+ return X(), fe("div", ri, [
2831
+ N("div", {
2832
+ class: de(["left-arrow", { active: L.value }]),
2833
+ onClick: W[0] || (W[0] = (Y) => T(!0))
2834
2834
  }, ii, 2),
2835
- q("ul", {
2835
+ N("ul", {
2836
2836
  ref_key: "trackerContainer",
2837
- ref: f
2837
+ ref: d
2838
2838
  }, [
2839
- (oe(!0), ve(on, null, ts(o.tabs, (Y) => (oe(), et(W, {
2839
+ (X(!0), fe(sn, null, ts(o.tabs, (Y) => (X(), De(z, {
2840
2840
  to: Y.route,
2841
2841
  custom: !0
2842
2842
  }, {
2843
- default: an(({ navigate: ae, isActive: V }) => [
2844
- q("li", { "data-active": V }, [
2845
- Pe(h.$slots, "item", {
2843
+ default: cn(({ navigate: ae, isActive: V }) => [
2844
+ N("li", { "data-active": V }, [
2845
+ Se(h.$slots, "item", {
2846
2846
  item: Y,
2847
2847
  navigate: ae,
2848
2848
  isActive: V
2849
2849
  }, () => [
2850
- q("a", {
2850
+ N("a", {
2851
2851
  href: Y.route,
2852
- class: me({ active: V }),
2852
+ class: de({ active: V }),
2853
2853
  onClick: ae
2854
- }, tt(Y.text), 11, ci)
2854
+ }, nt(Y.text), 11, ci)
2855
2855
  ])
2856
2856
  ], 8, ai)
2857
2857
  ]),
2858
2858
  _: 2
2859
2859
  }, 1032, ["to"]))), 256))
2860
2860
  ], 512),
2861
- q("div", {
2862
- class: me(["right-arrow", { active: k.value }]),
2863
- onClick: K[1] || (K[1] = (Y) => B())
2861
+ N("div", {
2862
+ class: de(["right-arrow", { active: k.value }]),
2863
+ onClick: W[1] || (W[1] = (Y) => T())
2864
2864
  }, ui, 2)
2865
2865
  ]);
2866
2866
  };
2867
2867
  }
2868
+ }), di = ["id", "name", "disabled", "data-color", "form", "type"], fi = { class: "button-label" }, wi = /* @__PURE__ */ _e({
2869
+ __name: "Button",
2870
+ props: {
2871
+ icon: {},
2872
+ visible: { type: Boolean, default: !0 },
2873
+ class: {},
2874
+ style: {},
2875
+ disabled: { type: Boolean },
2876
+ loading: { type: Boolean },
2877
+ color: { default: "primary" },
2878
+ size: { default: "md" },
2879
+ variant: { default: "filled" },
2880
+ autofocus: { type: Boolean },
2881
+ form: {},
2882
+ name: {},
2883
+ id: {},
2884
+ type: { default: "button" },
2885
+ value: {}
2886
+ },
2887
+ setup(c) {
2888
+ const o = c;
2889
+ function d() {
2890
+ return new je(`${o.class ?? ""} button`).AddClass("sf-component-loading", o.loading).AddClass("sf-component-disabled", o.disabled).AddClass("sf-button-small", o.size === "sm").AddClass("sf-button-medium", o.size === "md").AddClass("sf-button-large", o.size === "lg").AddClass("sf-button-filled", o.variant === "filled").AddClass("sf-button-text", o.variant === "text").AddClass("sf-button-outlined", o.variant === "outlined").AddClass("sf-button-with-icon", !!o.icon).AddClass("sf-ripple").Build();
2891
+ }
2892
+ return (w, L) => (X(), fe("button", {
2893
+ id: o.id,
2894
+ name: o.name,
2895
+ class: de(d()),
2896
+ style: kt(o.style),
2897
+ disabled: o.disabled || o.loading,
2898
+ "data-color": o.color,
2899
+ form: o.form,
2900
+ type: o.type
2901
+ }, [
2902
+ o.icon ? (X(), De(tt, {
2903
+ key: 0,
2904
+ icon: o.icon,
2905
+ loading: o.loading,
2906
+ size: o.size,
2907
+ "button-props": { tabindex: -1 }
2908
+ }, null, 8, ["icon", "loading", "size"])) : o.loading ? (X(), De(tt, {
2909
+ key: 1,
2910
+ loading: !0,
2911
+ size: o.size,
2912
+ "button-props": { tabindex: -1 }
2913
+ }, null, 8, ["size"])) : xt("", !0),
2914
+ N("span", fi, [
2915
+ Se(w.$slots, "default")
2916
+ ])
2917
+ ], 14, di));
2918
+ }
2868
2919
  });
2869
- class vi {
2920
+ class yi {
2870
2921
  constructor(o = null) {
2871
- qe(this, "errors", []);
2872
- qe(this, "_value", null);
2922
+ We(this, "errors", []);
2923
+ We(this, "_value", null);
2873
2924
  this._value = o;
2874
2925
  }
2875
2926
  get value() {
@@ -2892,30 +2943,31 @@ class vi {
2892
2943
  function c() {
2893
2944
  ns(() => {
2894
2945
  setTimeout(() => {
2895
- var f;
2946
+ var d;
2896
2947
  const o = document.querySelector(":root");
2897
2948
  o && // @ts-ignore
2898
2949
  o.style.setProperty(
2899
2950
  "--window-height",
2900
- `${((f = window.visualViewport) == null ? void 0 : f.height) ?? window.innerHeight}px`
2951
+ `${((d = window.visualViewport) == null ? void 0 : d.height) ?? window.innerHeight}px`
2901
2952
  );
2902
2953
  }, 1);
2903
2954
  });
2904
2955
  }
2905
2956
  c(), window.addEventListener("resize", c);
2906
2957
  })();
2907
- wt.SetInitialTheme();
2958
+ yt.SetInitialTheme();
2908
2959
  export {
2909
- vi as AppResult,
2960
+ yi as AppResult,
2910
2961
  se as AuthService,
2911
- un as Cor,
2912
- gi as SfContent,
2913
- fn as SfIcon,
2914
- hi as SfLayout,
2915
- pi as SfNavMenuLink,
2916
- mi as SfTabNavigation,
2917
- Ke as Tamanho,
2962
+ dn as Cor,
2963
+ wi as SfButton,
2964
+ bi as SfContent,
2965
+ tt as SfIcon,
2966
+ gi as SfLayout,
2967
+ mi as SfNavMenuLink,
2968
+ vi as SfTabNavigation,
2969
+ Je as Tamanho,
2918
2970
  Us as UseDialogService,
2919
- ln as UseNavMenuService
2971
+ un as UseNavMenuService
2920
2972
  };
2921
2973
  //# sourceMappingURL=lib.es.js.map