@tapni/auth 1.0.2 → 1.0.4
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/.vite/manifest.json +12 -12
- package/dist/{Account-IR-XgmiM.js → Account-zep_QUuI.js} +1 -1
- package/dist/{Apps-CQXLKu2F.js → Apps-B9XB7Z7q.js} +1 -1
- package/dist/{CustomApp-FxfYHVid.js → CustomApp-BzUsyycz.js} +1 -1
- package/dist/{General-BVjTsECb.js → General-DkcdjPYQ.js} +1 -1
- package/dist/{QR-B60f-H2Q.js → QR-PW6cAG5j.js} +1 -1
- package/dist/TapniAuth.es.js +1 -1
- package/dist/TapniAuth.umd.js +3 -3
- package/dist/{install-BOPYSGGa.js → install-BzPu9V_c.js} +185 -182
- package/package.json +1 -1
- package/src/App.vue +1 -2
- package/src/mixins/auth.mixin.js +1 -0
- package/src/store/auth.js +6 -0
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { reactive as Yr, readonly as zi, resolveComponent as
|
|
1
|
+
import { reactive as Yr, readonly as zi, resolveComponent as An, openBlock as N, createElementBlock as x, createElementVNode as _, toDisplayString as H, createCommentVNode as de, createVNode as Oe, withCtx as Ct, createTextVNode as Se, pushScopeId as Rn, popScopeId as Pn, createStaticVNode as xi, nextTick as Io, withModifiers as je, normalizeStyle as Dn, withDirectives as ve, withKeys as gn, vModelText as bt, vModelDynamic as vr, vShow as Nt, createBlock as pt, normalizeClass as He, vModelCheckbox as Ao, watch as Ui, unref as Bi } from "vue";
|
|
2
2
|
import { createRouter as Di, createWebHistory as Hi, RouterView as ji } from "vue-router";
|
|
3
3
|
import { createNamespacedHelpers as Fi, createStore as qi } from "vuex";
|
|
4
4
|
import { Capacitor as Wn, registerPlugin as sr, WebPlugin as Ki } from "@capacitor/core";
|
|
@@ -12,7 +12,7 @@ import { sanitizeUrl as Gi } from "@braintree/sanitize-url";
|
|
|
12
12
|
function Vi(n) {
|
|
13
13
|
return n && n.__esModule && Object.prototype.hasOwnProperty.call(n, "default") ? n.default : n;
|
|
14
14
|
}
|
|
15
|
-
var ei = { exports: {} },
|
|
15
|
+
var ei = { exports: {} }, Me = ei.exports = {}, qt, Kt;
|
|
16
16
|
function Wr() {
|
|
17
17
|
throw new Error("setTimeout has not been defined");
|
|
18
18
|
}
|
|
@@ -61,23 +61,23 @@ function Qi(n) {
|
|
|
61
61
|
}
|
|
62
62
|
}
|
|
63
63
|
}
|
|
64
|
-
var Zt = [], Hn = !1,
|
|
64
|
+
var Zt = [], Hn = !1, kn, _r = -1;
|
|
65
65
|
function Yi() {
|
|
66
|
-
!Hn || !
|
|
66
|
+
!Hn || !kn || (Hn = !1, kn.length ? Zt = kn.concat(Zt) : _r = -1, Zt.length && ni());
|
|
67
67
|
}
|
|
68
68
|
function ni() {
|
|
69
69
|
if (!Hn) {
|
|
70
70
|
var n = ti(Yi);
|
|
71
71
|
Hn = !0;
|
|
72
72
|
for (var e = Zt.length; e; ) {
|
|
73
|
-
for (
|
|
74
|
-
|
|
73
|
+
for (kn = Zt, Zt = []; ++_r < e; )
|
|
74
|
+
kn && kn[_r].run();
|
|
75
75
|
_r = -1, e = Zt.length;
|
|
76
76
|
}
|
|
77
|
-
|
|
77
|
+
kn = null, Hn = !1, Qi(n);
|
|
78
78
|
}
|
|
79
79
|
}
|
|
80
|
-
|
|
80
|
+
Me.nextTick = function(n) {
|
|
81
81
|
var e = new Array(arguments.length - 1);
|
|
82
82
|
if (arguments.length > 1)
|
|
83
83
|
for (var t = 1; t < arguments.length; t++)
|
|
@@ -90,36 +90,36 @@ function ri(n, e) {
|
|
|
90
90
|
ri.prototype.run = function() {
|
|
91
91
|
this.fun.apply(null, this.array);
|
|
92
92
|
};
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
93
|
+
Me.title = "browser";
|
|
94
|
+
Me.browser = !0;
|
|
95
|
+
Me.env = {};
|
|
96
|
+
Me.argv = [];
|
|
97
|
+
Me.version = "";
|
|
98
|
+
Me.versions = {};
|
|
99
99
|
function on() {
|
|
100
100
|
}
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
101
|
+
Me.on = on;
|
|
102
|
+
Me.addListener = on;
|
|
103
|
+
Me.once = on;
|
|
104
|
+
Me.off = on;
|
|
105
|
+
Me.removeListener = on;
|
|
106
|
+
Me.removeAllListeners = on;
|
|
107
|
+
Me.emit = on;
|
|
108
|
+
Me.prependListener = on;
|
|
109
|
+
Me.prependOnceListener = on;
|
|
110
|
+
Me.listeners = function(n) {
|
|
111
111
|
return [];
|
|
112
112
|
};
|
|
113
|
-
|
|
113
|
+
Me.binding = function(n) {
|
|
114
114
|
throw new Error("process.binding is not supported");
|
|
115
115
|
};
|
|
116
|
-
|
|
116
|
+
Me.cwd = function() {
|
|
117
117
|
return "/";
|
|
118
118
|
};
|
|
119
|
-
|
|
119
|
+
Me.chdir = function(n) {
|
|
120
120
|
throw new Error("process.chdir is not supported");
|
|
121
121
|
};
|
|
122
|
-
|
|
122
|
+
Me.umask = function() {
|
|
123
123
|
return 0;
|
|
124
124
|
};
|
|
125
125
|
var Wi = ei.exports;
|
|
@@ -459,7 +459,7 @@ po.write = function(n, e, t, r, o, i) {
|
|
|
459
459
|
return cn(this, c, d);
|
|
460
460
|
case "latin1":
|
|
461
461
|
case "binary":
|
|
462
|
-
return
|
|
462
|
+
return _n(this, c, d);
|
|
463
463
|
case "base64":
|
|
464
464
|
return Lt(this, c, d);
|
|
465
465
|
case "ucs2":
|
|
@@ -596,11 +596,11 @@ po.write = function(n, e, t, r, o, i) {
|
|
|
596
596
|
}
|
|
597
597
|
return P;
|
|
598
598
|
}
|
|
599
|
-
function
|
|
599
|
+
function Ne(h, c, d, g) {
|
|
600
600
|
return _t(mt(c, h.length - d), h, d, g);
|
|
601
601
|
}
|
|
602
602
|
function Wt(h, c, d, g) {
|
|
603
|
-
return _t(
|
|
603
|
+
return _t(vn(c), h, d, g);
|
|
604
604
|
}
|
|
605
605
|
function Ye(h, c, d, g) {
|
|
606
606
|
return _t(qe(c), h, d, g);
|
|
@@ -630,7 +630,7 @@ po.write = function(n, e, t, r, o, i) {
|
|
|
630
630
|
return we(this, c, d, g);
|
|
631
631
|
case "utf8":
|
|
632
632
|
case "utf-8":
|
|
633
|
-
return
|
|
633
|
+
return Ne(this, c, d, g);
|
|
634
634
|
case "ascii":
|
|
635
635
|
case "latin1":
|
|
636
636
|
case "binary":
|
|
@@ -680,10 +680,10 @@ po.write = function(n, e, t, r, o, i) {
|
|
|
680
680
|
}
|
|
681
681
|
P === null ? (P = 65533, se = 1) : P > 65535 && (P -= 65536, g.push(P >>> 10 & 1023 | 55296), P = 56320 | P & 1023), g.push(P), b += se;
|
|
682
682
|
}
|
|
683
|
-
return
|
|
683
|
+
return mn(g);
|
|
684
684
|
}
|
|
685
685
|
const st = 4096;
|
|
686
|
-
function
|
|
686
|
+
function mn(h) {
|
|
687
687
|
const c = h.length;
|
|
688
688
|
if (c <= st)
|
|
689
689
|
return String.fromCharCode.apply(String, h);
|
|
@@ -702,7 +702,7 @@ po.write = function(n, e, t, r, o, i) {
|
|
|
702
702
|
g += String.fromCharCode(h[b] & 127);
|
|
703
703
|
return g;
|
|
704
704
|
}
|
|
705
|
-
function
|
|
705
|
+
function _n(h, c, d) {
|
|
706
706
|
let g = "";
|
|
707
707
|
d = Math.min(h.length, d);
|
|
708
708
|
for (let b = c; b < d; ++b)
|
|
@@ -714,7 +714,7 @@ po.write = function(n, e, t, r, o, i) {
|
|
|
714
714
|
(!c || c < 0) && (c = 0), (!d || d < 0 || d > g) && (d = g);
|
|
715
715
|
let b = "";
|
|
716
716
|
for (let S = c; S < d; ++S)
|
|
717
|
-
b +=
|
|
717
|
+
b += yn[h[S]];
|
|
718
718
|
return b;
|
|
719
719
|
}
|
|
720
720
|
function Mn(h, c, d) {
|
|
@@ -1099,7 +1099,7 @@ po.write = function(n, e, t, r, o, i) {
|
|
|
1099
1099
|
}
|
|
1100
1100
|
return S;
|
|
1101
1101
|
}
|
|
1102
|
-
function
|
|
1102
|
+
function vn(h) {
|
|
1103
1103
|
const c = [];
|
|
1104
1104
|
for (let d = 0; d < h.length; ++d)
|
|
1105
1105
|
c.push(h.charCodeAt(d) & 255);
|
|
@@ -1127,7 +1127,7 @@ po.write = function(n, e, t, r, o, i) {
|
|
|
1127
1127
|
function ut(h) {
|
|
1128
1128
|
return h !== h;
|
|
1129
1129
|
}
|
|
1130
|
-
const
|
|
1130
|
+
const yn = function() {
|
|
1131
1131
|
const h = "0123456789abcdef", c = new Array(256);
|
|
1132
1132
|
for (let d = 0; d < 16; ++d) {
|
|
1133
1133
|
const g = d * 16;
|
|
@@ -1143,7 +1143,7 @@ po.write = function(n, e, t, r, o, i) {
|
|
|
1143
1143
|
throw new Error("BigInt not supported");
|
|
1144
1144
|
}
|
|
1145
1145
|
})(uo);
|
|
1146
|
-
const
|
|
1146
|
+
const wn = uo.Buffer, ia = uo.Buffer, hr = Yr(/* @__PURE__ */ new Map()), Q = {
|
|
1147
1147
|
$on(n, e) {
|
|
1148
1148
|
let t = hr.get(n);
|
|
1149
1149
|
t || (t = /* @__PURE__ */ new Set(), hr.set(n, t)), t.add(e);
|
|
@@ -1269,6 +1269,7 @@ const aa = {
|
|
|
1269
1269
|
"setToken",
|
|
1270
1270
|
"setView",
|
|
1271
1271
|
"setStorage",
|
|
1272
|
+
"setStorageItem",
|
|
1272
1273
|
"updateLang",
|
|
1273
1274
|
"login",
|
|
1274
1275
|
"register",
|
|
@@ -1346,7 +1347,7 @@ const aa = {
|
|
|
1346
1347
|
ba
|
|
1347
1348
|
];
|
|
1348
1349
|
function Ca(n, e, t, r, o, i) {
|
|
1349
|
-
const a =
|
|
1350
|
+
const a = An("router-link");
|
|
1350
1351
|
return N(), x("div", da, [
|
|
1351
1352
|
_("video", {
|
|
1352
1353
|
id: "tapniVideo",
|
|
@@ -1361,7 +1362,7 @@ function Ca(n, e, t, r, o, i) {
|
|
|
1361
1362
|
_("p", ma, H(n.ssoLang[this.appLanguage].welcome_p1), 1),
|
|
1362
1363
|
de("", !0),
|
|
1363
1364
|
de("", !0),
|
|
1364
|
-
|
|
1365
|
+
Oe(a, {
|
|
1365
1366
|
to: "register",
|
|
1366
1367
|
exact: "",
|
|
1367
1368
|
class: "button-center button button-90 google-button bg-tapni-grey pointer"
|
|
@@ -1372,7 +1373,7 @@ function Ca(n, e, t, r, o, i) {
|
|
|
1372
1373
|
_: 1
|
|
1373
1374
|
}),
|
|
1374
1375
|
_("div", _a, [
|
|
1375
|
-
|
|
1376
|
+
Oe(a, { to: "/login" }, {
|
|
1376
1377
|
default: Ct(() => [
|
|
1377
1378
|
Se(H(n.ssoLang[this.appLanguage].already_registered) + "? ", 1),
|
|
1378
1379
|
_("b", null, H(n.ssoLang[this.appLanguage].sign_in), 1)
|
|
@@ -1395,7 +1396,7 @@ function Ca(n, e, t, r, o, i) {
|
|
|
1395
1396
|
const ho = /* @__PURE__ */ Et(ua, [["render", Ca], ["__scopeId", "data-v-7aad6400"]]), Ea = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1396
1397
|
__proto__: null,
|
|
1397
1398
|
default: ho
|
|
1398
|
-
}, Symbol.toStringTag, { value: "Module" })), Ta = "1.0.
|
|
1399
|
+
}, Symbol.toStringTag, { value: "Module" })), Ta = "1.0.4", fr = {
|
|
1399
1400
|
getMe() {
|
|
1400
1401
|
return ce().get("/users/me");
|
|
1401
1402
|
},
|
|
@@ -5560,7 +5561,7 @@ Tanıştığınız herkesi etkileyin 😎 <br> Kendinize bir tane ayırın 👇`
|
|
|
5560
5561
|
choose_other_login_methods: "다른 로그인 방법 선택하기",
|
|
5561
5562
|
no_sso_logins: "귀하의 회사는 SSO 로그인을 사용하지 않습니다. 관리자에게 문의하십시오."
|
|
5562
5563
|
}
|
|
5563
|
-
}, Po = () => Promise.resolve().then(() => Ea), Ia = () => Promise.resolve().then(() => $c), Aa = () => Promise.resolve().then(() => Kl), Ra = () => Promise.resolve().then(() => lp), Pa = () => import("./Account-
|
|
5564
|
+
}, Po = () => Promise.resolve().then(() => Ea), Ia = () => Promise.resolve().then(() => $c), Aa = () => Promise.resolve().then(() => Kl), Ra = () => Promise.resolve().then(() => lp), Pa = () => import("./Account-zep_QUuI.js"), Ma = () => Promise.resolve().then(() => vu), Na = () => Promise.resolve().then(() => mp), Oa = () => import("./QR-PW6cAG5j.js"), La = () => Promise.resolve().then(() => Td), za = () => import("./Apps-B9XB7Z7q.js"), xa = () => import("./CustomApp-BzUsyycz.js"), Ua = () => import("./General-DkcdjPYQ.js"), Ba = [
|
|
5564
5565
|
{
|
|
5565
5566
|
path: "/welcome",
|
|
5566
5567
|
name: "AuthWelcome",
|
|
@@ -5687,6 +5688,9 @@ Tanıştığınız herkesi etkileyin 😎 <br> Kendinize bir tane ayırın 👇`
|
|
|
5687
5688
|
setAccountSettings(n, e) {
|
|
5688
5689
|
n.account = e;
|
|
5689
5690
|
},
|
|
5691
|
+
setStorageItem(n, e) {
|
|
5692
|
+
n.$storex[e.name] = e.data;
|
|
5693
|
+
},
|
|
5690
5694
|
setStorage(n, e) {
|
|
5691
5695
|
n.$storex = {
|
|
5692
5696
|
...n.$storex,
|
|
@@ -5745,6 +5749,9 @@ Tanıştığınız herkesi etkileyin 😎 <br> Kendinize bir tane ayırın 👇`
|
|
|
5745
5749
|
if (r) return t("errorHandler", r);
|
|
5746
5750
|
o.data.success && e("setAccountSettings", o.data.data);
|
|
5747
5751
|
},
|
|
5752
|
+
setStorageItem({ commit: n }, e) {
|
|
5753
|
+
n("setStorageItem", e);
|
|
5754
|
+
},
|
|
5748
5755
|
setStorage({ commit: n }, e) {
|
|
5749
5756
|
n("setStorage", e);
|
|
5750
5757
|
},
|
|
@@ -6605,10 +6612,10 @@ var Ue;
|
|
|
6605
6612
|
(function(n) {
|
|
6606
6613
|
n.ID_TOKEN = "idtoken", n.CLIENT_INFO = "client.info", n.ADAL_ID_TOKEN = "adal.idtoken", n.ERROR = "error", n.ERROR_DESC = "error.description", n.ACTIVE_ACCOUNT = "active-account", n.ACTIVE_ACCOUNT_FILTERS = "active-account-filters";
|
|
6607
6614
|
})(Ue || (Ue = {}));
|
|
6608
|
-
var
|
|
6615
|
+
var Tn;
|
|
6609
6616
|
(function(n) {
|
|
6610
6617
|
n.COMMON = "common", n.ORGANIZATIONS = "organizations", n.CONSUMERS = "consumers";
|
|
6611
|
-
})(
|
|
6618
|
+
})(Tn || (Tn = {}));
|
|
6612
6619
|
var ae;
|
|
6613
6620
|
(function(n) {
|
|
6614
6621
|
n.CLIENT_ID = "client_id", n.REDIRECT_URI = "redirect_uri", n.RESPONSE_TYPE = "response_type", n.RESPONSE_MODE = "response_mode", n.GRANT_TYPE = "grant_type", n.CLAIMS = "claims", n.SCOPE = "scope", n.ERROR = "error", n.ERROR_DESCRIPTION = "error_description", n.ACCESS_TOKEN = "access_token", n.ID_TOKEN = "id_token", n.REFRESH_TOKEN = "refresh_token", n.EXPIRES_IN = "expires_in", n.STATE = "state", n.NONCE = "nonce", n.PROMPT = "prompt", n.SESSION_STATE = "session_state", n.CLIENT_INFO = "client_info", n.CODE = "code", n.CODE_CHALLENGE = "code_challenge", n.CODE_CHALLENGE_METHOD = "code_challenge_method", n.CODE_VERIFIER = "code_verifier", n.CLIENT_REQUEST_ID = "client-request-id", n.X_CLIENT_SKU = "x-client-SKU", n.X_CLIENT_VER = "x-client-VER", n.X_CLIENT_OS = "x-client-OS", n.X_CLIENT_CPU = "x-client-CPU", n.X_CLIENT_CURR_TELEM = "x-client-current-telemetry", n.X_CLIENT_LAST_TELEM = "x-client-last-telemetry", n.X_MS_LIB_CAPABILITY = "x-ms-lib-capability", n.X_APP_NAME = "x-app-name", n.X_APP_VER = "x-app-ver", n.POST_LOGOUT_URI = "post_logout_redirect_uri", n.ID_TOKEN_HINT = "id_token_hint", n.DEVICE_CODE = "device_code", n.CLIENT_SECRET = "client_secret", n.CLIENT_ASSERTION = "client_assertion", n.CLIENT_ASSERTION_TYPE = "client_assertion_type", n.TOKEN_TYPE = "token_type", n.REQ_CNF = "req_cnf", n.OBO_ASSERTION = "assertion", n.REQUESTED_TOKEN_USE = "requested_token_use", n.ON_BEHALF_OF = "on_behalf_of", n.FOCI = "foci", n.CCS_HEADER = "X-AnchorMailbox", n.RETURN_SPA_CODE = "return_spa_code", n.NATIVE_BROKER = "nativebroker", n.LOGOUT_HINT = "logout_hint";
|
|
@@ -8179,7 +8186,7 @@ function Za(n) {
|
|
|
8179
8186
|
return ge({ clientCapabilities: [], azureCloudOptions: $a, skipAuthorityMetadataCache: !1 }, n);
|
|
8180
8187
|
}
|
|
8181
8188
|
/*! @azure/msal-common v13.3.1 2023-10-27 */
|
|
8182
|
-
var
|
|
8189
|
+
var In = (
|
|
8183
8190
|
/** @class */
|
|
8184
8191
|
function(n) {
|
|
8185
8192
|
at(e, n);
|
|
@@ -8205,7 +8212,7 @@ var Sr = (
|
|
|
8205
8212
|
e.removeItem(o);
|
|
8206
8213
|
return;
|
|
8207
8214
|
}
|
|
8208
|
-
throw new
|
|
8215
|
+
throw new In(((r = i.errorCodes) === null || r === void 0 ? void 0 : r.join(" ")) || w.EMPTY_STRING, i.errorMessage, i.subError);
|
|
8209
8216
|
}
|
|
8210
8217
|
}, n.postProcess = function(e, t, r) {
|
|
8211
8218
|
if (n.checkResponseStatus(r) || n.checkResponseForRetryAfter(r)) {
|
|
@@ -8276,7 +8283,7 @@ var ht;
|
|
|
8276
8283
|
n.HOME_ACCOUNT_ID = "home_account_id", n.UPN = "UPN";
|
|
8277
8284
|
})(ht || (ht = {}));
|
|
8278
8285
|
/*! @azure/msal-common v13.3.1 2023-10-27 */
|
|
8279
|
-
var
|
|
8286
|
+
var bn = (
|
|
8280
8287
|
/** @class */
|
|
8281
8288
|
function() {
|
|
8282
8289
|
function n() {
|
|
@@ -8338,9 +8345,9 @@ var tr = (
|
|
|
8338
8345
|
}, n.prototype.addClientId = function(e) {
|
|
8339
8346
|
this.parameters.set(ae.CLIENT_ID, encodeURIComponent(e));
|
|
8340
8347
|
}, n.prototype.addRedirectUri = function(e) {
|
|
8341
|
-
|
|
8348
|
+
bn.validateRedirectUri(e), this.parameters.set(ae.REDIRECT_URI, encodeURIComponent(e));
|
|
8342
8349
|
}, n.prototype.addPostLogoutRedirectUri = function(e) {
|
|
8343
|
-
|
|
8350
|
+
bn.validateRedirectUri(e), this.parameters.set(ae.POST_LOGOUT_URI, encodeURIComponent(e));
|
|
8344
8351
|
}, n.prototype.addIdTokenHint = function(e) {
|
|
8345
8352
|
this.parameters.set(ae.ID_TOKEN_HINT, encodeURIComponent(e));
|
|
8346
8353
|
}, n.prototype.addDomainHint = function(e) {
|
|
@@ -8355,7 +8362,7 @@ var tr = (
|
|
|
8355
8362
|
this.parameters.set($n.SID, encodeURIComponent(e));
|
|
8356
8363
|
}, n.prototype.addClaims = function(e, t) {
|
|
8357
8364
|
var r = this.addClientCapabilitiesToClaims(e, t);
|
|
8358
|
-
|
|
8365
|
+
bn.validateClaims(r), this.parameters.set(ae.CLAIMS, encodeURIComponent(r));
|
|
8359
8366
|
}, n.prototype.addCorrelationId = function(e) {
|
|
8360
8367
|
this.parameters.set(ae.CLIENT_REQUEST_ID, encodeURIComponent(e));
|
|
8361
8368
|
}, n.prototype.addLibraryInfo = function(e) {
|
|
@@ -8363,13 +8370,13 @@ var tr = (
|
|
|
8363
8370
|
}, n.prototype.addApplicationTelemetry = function(e) {
|
|
8364
8371
|
e != null && e.appName && this.parameters.set(ae.X_APP_NAME, e.appName), e != null && e.appVersion && this.parameters.set(ae.X_APP_VER, e.appVersion);
|
|
8365
8372
|
}, n.prototype.addPrompt = function(e) {
|
|
8366
|
-
|
|
8373
|
+
bn.validatePrompt(e), this.parameters.set("" + ae.PROMPT, encodeURIComponent(e));
|
|
8367
8374
|
}, n.prototype.addState = function(e) {
|
|
8368
8375
|
V.isEmpty(e) || this.parameters.set(ae.STATE, encodeURIComponent(e));
|
|
8369
8376
|
}, n.prototype.addNonce = function(e) {
|
|
8370
8377
|
this.parameters.set(ae.NONCE, encodeURIComponent(e));
|
|
8371
8378
|
}, n.prototype.addCodeChallengeParams = function(e, t) {
|
|
8372
|
-
if (
|
|
8379
|
+
if (bn.validateCodeChallengeParams(e, t), e && t)
|
|
8373
8380
|
this.parameters.set(ae.CODE_CHALLENGE, encodeURIComponent(e)), this.parameters.set(ae.CODE_CHALLENGE_METHOD, encodeURIComponent(t));
|
|
8374
8381
|
else
|
|
8375
8382
|
throw Ee.createInvalidCodeChallengeParamsError();
|
|
@@ -8396,7 +8403,7 @@ var tr = (
|
|
|
8396
8403
|
}, n.prototype.addClientInfo = function() {
|
|
8397
8404
|
this.parameters.set(Fa, "1");
|
|
8398
8405
|
}, n.prototype.addExtraQueryParameters = function(e) {
|
|
8399
|
-
var t = this, r =
|
|
8406
|
+
var t = this, r = bn.sanitizeEQParams(e, this.parameters);
|
|
8400
8407
|
Object.keys(r).forEach(function(o) {
|
|
8401
8408
|
t.parameters.set(o, e[o]);
|
|
8402
8409
|
});
|
|
@@ -8536,7 +8543,7 @@ var yo = (
|
|
|
8536
8543
|
}()
|
|
8537
8544
|
);
|
|
8538
8545
|
/*! @azure/msal-common v13.3.1 2023-10-27 */
|
|
8539
|
-
var
|
|
8546
|
+
var Cn = (
|
|
8540
8547
|
/** @class */
|
|
8541
8548
|
function(n) {
|
|
8542
8549
|
at(e, n);
|
|
@@ -8575,7 +8582,7 @@ var kt = (
|
|
|
8575
8582
|
}()
|
|
8576
8583
|
);
|
|
8577
8584
|
/*! @azure/msal-common v13.3.1 2023-10-27 */
|
|
8578
|
-
var
|
|
8585
|
+
var En = (
|
|
8579
8586
|
/** @class */
|
|
8580
8587
|
function(n) {
|
|
8581
8588
|
at(e, n);
|
|
@@ -8742,7 +8749,7 @@ var le = (
|
|
|
8742
8749
|
return n.canonicalizeUri(e.split("#")[0]);
|
|
8743
8750
|
}, n.prototype.replaceTenantPath = function(e) {
|
|
8744
8751
|
var t = this.getUrlComponents(), r = t.PathSegments;
|
|
8745
|
-
return e && r.length !== 0 && (r[0] ===
|
|
8752
|
+
return e && r.length !== 0 && (r[0] === Tn.COMMON || r[0] === Tn.ORGANIZATIONS) && (r[0] = e), n.constructAuthorityUriFromObject(t);
|
|
8746
8753
|
}, n.prototype.getHash = function() {
|
|
8747
8754
|
return n.parseHash(this.urlString);
|
|
8748
8755
|
}, n.prototype.getUrlComponents = function() {
|
|
@@ -8949,14 +8956,14 @@ var Ar = (
|
|
|
8949
8956
|
if (decodeURIComponent(e.state) !== decodeURIComponent(t))
|
|
8950
8957
|
throw Y.createStateMismatchError();
|
|
8951
8958
|
if (e.error || e.error_description || e.suberror)
|
|
8952
|
-
throw Ot.isInteractionRequiredError(e.error, e.error_description, e.suberror) ? new Ot(e.error || w.EMPTY_STRING, e.error_description, e.suberror, e.timestamp || w.EMPTY_STRING, e.trace_id || w.EMPTY_STRING, e.correlation_id || w.EMPTY_STRING, e.claims || w.EMPTY_STRING) : new
|
|
8959
|
+
throw Ot.isInteractionRequiredError(e.error, e.error_description, e.suberror) ? new Ot(e.error || w.EMPTY_STRING, e.error_description, e.suberror, e.timestamp || w.EMPTY_STRING, e.trace_id || w.EMPTY_STRING, e.correlation_id || w.EMPTY_STRING, e.claims || w.EMPTY_STRING) : new In(e.error || w.EMPTY_STRING, e.error_description, e.suberror);
|
|
8953
8960
|
e.client_info && Tr(e.client_info, r);
|
|
8954
8961
|
}, n.prototype.validateTokenResponse = function(e) {
|
|
8955
8962
|
if (e.error || e.error_description || e.suberror) {
|
|
8956
8963
|
if (Ot.isInteractionRequiredError(e.error, e.error_description, e.suberror))
|
|
8957
8964
|
throw new Ot(e.error, e.error_description, e.suberror, e.timestamp || w.EMPTY_STRING, e.trace_id || w.EMPTY_STRING, e.correlation_id || w.EMPTY_STRING, e.claims || w.EMPTY_STRING);
|
|
8958
8965
|
var t = e.error_codes + " - [" + e.timestamp + "]: " + e.error_description + " - Correlation ID: " + e.correlation_id + " - Trace ID: " + e.trace_id;
|
|
8959
|
-
throw new
|
|
8966
|
+
throw new In(e.error, t, e.suberror);
|
|
8960
8967
|
}
|
|
8961
8968
|
}, n.prototype.handleServerTokenResponse = function(e, t, r, o, i, a, s, u, p) {
|
|
8962
8969
|
var l;
|
|
@@ -9002,11 +9009,11 @@ var Ar = (
|
|
|
9002
9009
|
if (V.isEmpty(u))
|
|
9003
9010
|
throw Y.createInvalidCacheEnvironmentError();
|
|
9004
9011
|
var p, l;
|
|
9005
|
-
!V.isEmpty(e.id_token) && i && (p =
|
|
9012
|
+
!V.isEmpty(e.id_token) && i && (p = Cn.createIdTokenEntity(this.homeAccountIdentifier, u, e.id_token || w.EMPTY_STRING, this.clientId, i.claims.tid || w.EMPTY_STRING), l = this.generateAccountEntity(e, i, t, s));
|
|
9006
9013
|
var m = null;
|
|
9007
9014
|
if (!V.isEmpty(e.access_token)) {
|
|
9008
9015
|
var f = e.scope ? Xe.fromString(e.scope) : new Xe(o.scopes || []), k = (typeof e.expires_in == "string" ? parseInt(e.expires_in, 10) : e.expires_in) || 0, E = (typeof e.ext_expires_in == "string" ? parseInt(e.ext_expires_in, 10) : e.ext_expires_in) || 0, R = (typeof e.refresh_in == "string" ? parseInt(e.refresh_in, 10) : e.refresh_in) || void 0, F = r + k, K = F + E, z = R && R > 0 ? r + R : void 0;
|
|
9009
|
-
m =
|
|
9016
|
+
m = En.createAccessTokenEntity(this.homeAccountIdentifier, u, e.access_token || w.EMPTY_STRING, this.clientId, i ? i.claims.tid || w.EMPTY_STRING : t.tenant, f.printScopes(), F, K, this.cryptoObj, z, e.token_type, a, e.key_id, o.claims, o.requestedClaimsHash);
|
|
9010
9017
|
}
|
|
9011
9018
|
var T = null;
|
|
9012
9019
|
V.isEmpty(e.refresh_token) || (T = xn.createRefreshTokenEntity(this.homeAccountIdentifier, u, e.refresh_token || w.EMPTY_STRING, this.clientId, e.foci, a));
|
|
@@ -9167,7 +9174,7 @@ var yi = (
|
|
|
9167
9174
|
return ie(this, function(k) {
|
|
9168
9175
|
switch (k.label) {
|
|
9169
9176
|
case 0:
|
|
9170
|
-
return (r = this.performanceClient) === null || r === void 0 || r.addQueueMeasurement(A.AuthClientCreateTokenRequestBody, t.correlationId), i = new tr(), i.addClientId(this.config.authOptions.clientId), this.includeRedirectUri ? i.addRedirectUri(t.redirectUri) :
|
|
9177
|
+
return (r = this.performanceClient) === null || r === void 0 || r.addQueueMeasurement(A.AuthClientCreateTokenRequestBody, t.correlationId), i = new tr(), i.addClientId(this.config.authOptions.clientId), this.includeRedirectUri ? i.addRedirectUri(t.redirectUri) : bn.validateRedirectUri(t.redirectUri), i.addScopes(t.scopes), i.addAuthorizationCode(t.code), i.addLibraryInfo(this.config.libraryInfo), i.addApplicationTelemetry(this.config.telemetry.application), i.addThrottling(), this.serverTelemetryManager && i.addServerTelemetry(this.serverTelemetryManager), t.codeVerifier && i.addCodeVerifier(t.codeVerifier), this.config.clientCredentials.clientSecret && i.addClientSecret(this.config.clientCredentials.clientSecret), this.config.clientCredentials.clientAssertion && (a = this.config.clientCredentials.clientAssertion, i.addClientAssertion(a.assertion), i.addClientAssertionType(a.assertionType)), i.addGrantType(kr.AUTHORIZATION_CODE_GRANT), i.addClientInfo(), t.authenticationScheme !== _e.POP ? [3, 2] : (s = new qn(this.cryptoUtils, this.performanceClient), (o = this.performanceClient) === null || o === void 0 || o.setPreQueueTime(A.PopTokenGenerateCnf, t.correlationId), [4, s.generateCnf(t)]);
|
|
9171
9178
|
case 1:
|
|
9172
9179
|
return u = k.sent(), i.addPopToken(u.reqCnfString), [3, 3];
|
|
9173
9180
|
case 2:
|
|
@@ -9312,7 +9319,7 @@ var wi = (
|
|
|
9312
9319
|
try {
|
|
9313
9320
|
return (o = this.performanceClient) === null || o === void 0 || o.setPreQueueTime(A.RefreshTokenClientAcquireTokenWithCachedRefreshToken, t.correlationId), [2, this.acquireTokenWithCachedRefreshToken(t, !0)];
|
|
9314
9321
|
} catch (m) {
|
|
9315
|
-
if (u = m instanceof Ot && m.errorCode === Un.noTokensFoundError.code, p = m instanceof
|
|
9322
|
+
if (u = m instanceof Ot && m.errorCode === Un.noTokensFoundError.code, p = m instanceof In && m.errorCode === xo.INVALID_GRANT_ERROR && m.subError === xo.CLIENT_MISMATCH_ERROR, u || p)
|
|
9316
9323
|
return (i = this.performanceClient) === null || i === void 0 || i.setPreQueueTime(A.RefreshTokenClientAcquireTokenWithCachedRefreshToken, t.correlationId), [2, this.acquireTokenWithCachedRefreshToken(t, !1)];
|
|
9317
9324
|
throw m;
|
|
9318
9325
|
}
|
|
@@ -9987,9 +9994,9 @@ Error Description: ` + p.message)), [2, null];
|
|
|
9987
9994
|
}, n.reservedTenantDomains = /* @__PURE__ */ new Set([
|
|
9988
9995
|
"{tenant}",
|
|
9989
9996
|
"{tenantid}",
|
|
9990
|
-
|
|
9991
|
-
|
|
9992
|
-
|
|
9997
|
+
Tn.COMMON,
|
|
9998
|
+
Tn.CONSUMERS,
|
|
9999
|
+
Tn.ORGANIZATIONS
|
|
9993
10000
|
]), n;
|
|
9994
10001
|
}()
|
|
9995
10002
|
);
|
|
@@ -10897,9 +10904,9 @@ var so = (
|
|
|
10897
10904
|
if (u && u.hasOwnProperty("credentialType"))
|
|
10898
10905
|
switch (u.credentialType) {
|
|
10899
10906
|
case ee.ID_TOKEN:
|
|
10900
|
-
if (
|
|
10907
|
+
if (Cn.isIdTokenEntity(u)) {
|
|
10901
10908
|
t.logger.trace("BrowserCacheManager:createKeyMaps - idToken found, saving key to token key map"), t.logger.tracePii("BrowserCacheManager:createKeyMaps - idToken with key: " + a + " found, saving key to token key map");
|
|
10902
|
-
var p = ot.toObject(new
|
|
10909
|
+
var p = ot.toObject(new Cn(), u), l = t.updateCredentialCacheKey(a, p);
|
|
10903
10910
|
t.addTokenKey(l, ee.ID_TOKEN);
|
|
10904
10911
|
return;
|
|
10905
10912
|
} else
|
|
@@ -10907,9 +10914,9 @@ var so = (
|
|
|
10907
10914
|
break;
|
|
10908
10915
|
case ee.ACCESS_TOKEN:
|
|
10909
10916
|
case ee.ACCESS_TOKEN_WITH_AUTH_SCHEME:
|
|
10910
|
-
if (
|
|
10917
|
+
if (En.isAccessTokenEntity(u)) {
|
|
10911
10918
|
t.logger.trace("BrowserCacheManager:createKeyMaps - accessToken found, saving key to token key map"), t.logger.tracePii("BrowserCacheManager:createKeyMaps - accessToken with key: " + a + " found, saving key to token key map");
|
|
10912
|
-
var m = ot.toObject(new
|
|
10919
|
+
var m = ot.toObject(new En(), u), l = t.updateCredentialCacheKey(a, m);
|
|
10913
10920
|
t.addTokenKey(l, ee.ACCESS_TOKEN);
|
|
10914
10921
|
return;
|
|
10915
10922
|
} else
|
|
@@ -11051,7 +11058,7 @@ var so = (
|
|
|
11051
11058
|
if (!r)
|
|
11052
11059
|
return this.logger.trace("BrowserCacheManager.getIdTokenCredential: called, no cache hit"), this.removeTokenKey(t, ee.ID_TOKEN), null;
|
|
11053
11060
|
var o = this.validateAndParseJson(r);
|
|
11054
|
-
return !o || !
|
|
11061
|
+
return !o || !Cn.isIdTokenEntity(o) ? (this.logger.trace("BrowserCacheManager.getIdTokenCredential: called, no cache hit"), this.removeTokenKey(t, ee.ID_TOKEN), null) : (this.logger.trace("BrowserCacheManager.getIdTokenCredential: cache hit"), ot.toObject(new Cn(), o));
|
|
11055
11062
|
}, e.prototype.setIdTokenCredential = function(t) {
|
|
11056
11063
|
this.logger.trace("BrowserCacheManager.setIdTokenCredential called");
|
|
11057
11064
|
var r = t.generateCredentialKey();
|
|
@@ -11061,7 +11068,7 @@ var so = (
|
|
|
11061
11068
|
if (!r)
|
|
11062
11069
|
return this.logger.trace("BrowserCacheManager.getAccessTokenCredential: called, no cache hit"), this.removeTokenKey(t, ee.ACCESS_TOKEN), null;
|
|
11063
11070
|
var o = this.validateAndParseJson(r);
|
|
11064
|
-
return !o || !
|
|
11071
|
+
return !o || !En.isAccessTokenEntity(o) ? (this.logger.trace("BrowserCacheManager.getAccessTokenCredential: called, no cache hit"), this.removeTokenKey(t, ee.ACCESS_TOKEN), null) : (this.logger.trace("BrowserCacheManager.getAccessTokenCredential: cache hit"), ot.toObject(new En(), o));
|
|
11065
11072
|
}, e.prototype.setAccessTokenCredential = function(t) {
|
|
11066
11073
|
this.logger.trace("BrowserCacheManager.setAccessTokenCredential called");
|
|
11067
11074
|
var r = t.generateCredentialKey();
|
|
@@ -11891,7 +11898,7 @@ var wo = (
|
|
|
11891
11898
|
try {
|
|
11892
11899
|
s = this.authModule.handleFragmentResponse(e, a);
|
|
11893
11900
|
} catch (p) {
|
|
11894
|
-
throw p instanceof
|
|
11901
|
+
throw p instanceof In && p.subError === U.userCancelledError.code ? q.createUserCancelledError() : p;
|
|
11895
11902
|
}
|
|
11896
11903
|
return this.performanceClient.setPreQueueTime(A.HandleCodeResponseFromServer, this.authCodeRequest.correlationId), [2, this.handleCodeResponseFromServer(s, t, r, o)];
|
|
11897
11904
|
});
|
|
@@ -12005,7 +12012,7 @@ var Qo = (
|
|
|
12005
12012
|
try {
|
|
12006
12013
|
u = this.authModule.handleFragmentResponse(t, s);
|
|
12007
12014
|
} catch (E) {
|
|
12008
|
-
throw E instanceof
|
|
12015
|
+
throw E instanceof In && E.subError === U.userCancelledError.code ? q.createUserCancelledError() : E;
|
|
12009
12016
|
}
|
|
12010
12017
|
return p = this.browserStorage.generateNonceKey(s), l = this.browserStorage.getTemporaryCache(p), this.authCodeRequest.code = u.code, u.cloud_instance_host_name ? [4, this.updateTokenEndpointAuthority(u.cloud_instance_host_name, o, i)] : [3, 2];
|
|
12011
12018
|
case 1:
|
|
@@ -12376,7 +12383,7 @@ var jn = (
|
|
|
12376
12383
|
r.logger.error("Error occurred while removing account context from browser storage. " + o);
|
|
12377
12384
|
});
|
|
12378
12385
|
}, e.prototype.cacheNativeTokens = function(t, r, o, i, a, s, u, p) {
|
|
12379
|
-
var l =
|
|
12386
|
+
var l = Cn.createIdTokenEntity(o, r.authority, t.id_token || w.EMPTY_STRING, r.clientId, a.claims.tid || w.EMPTY_STRING), m = r.tokenType === _e.POP ? w.SHR_NONCE_VALIDITY : (typeof t.expires_in == "string" ? parseInt(t.expires_in, 10) : t.expires_in) || 0, f = p + m, k = this.generateScopes(t, r), E = En.createAccessTokenEntity(o, r.authority, s, r.clientId, a ? a.claims.tid || w.EMPTY_STRING : u, k.printScopes(), f, 0, this.browserCrypto), R = new nr(i, l, E);
|
|
12380
12387
|
this.nativeStorageManager.saveCacheRecord(R);
|
|
12381
12388
|
}, e.prototype.addTelemetryFromNativeResponse = function(t) {
|
|
12382
12389
|
var r = this.getMATSFromResponse(t);
|
|
@@ -12469,7 +12476,7 @@ var jn = (
|
|
|
12469
12476
|
}(Ei)
|
|
12470
12477
|
);
|
|
12471
12478
|
/*! @azure/msal-browser v2.38.3 2023-10-27 */
|
|
12472
|
-
var
|
|
12479
|
+
var Sn = (
|
|
12473
12480
|
/** @class */
|
|
12474
12481
|
function() {
|
|
12475
12482
|
function n(e, t, r, o) {
|
|
@@ -12614,7 +12621,7 @@ var vs = (
|
|
|
12614
12621
|
case 3:
|
|
12615
12622
|
return a = k.sent(), this.performanceClient.setPreQueueTime(A.StandardInteractionClientCreateAuthCodeClient, t.correlationId), [4, this.createAuthCodeClient(o, r.authority, r.azureCloudOptions)];
|
|
12616
12623
|
case 4:
|
|
12617
|
-
return s = k.sent(), this.logger.verbose("Auth code client created"), u = new Qo(s, this.browserStorage, a, this.logger, this.browserCrypto, this.performanceClient), [4, s.getAuthCodeUrl($($({}, r), { nativeBroker:
|
|
12624
|
+
return s = k.sent(), this.logger.verbose("Auth code client created"), u = new Qo(s, this.browserStorage, a, this.logger, this.browserCrypto, this.performanceClient), [4, s.getAuthCodeUrl($($({}, r), { nativeBroker: Sn.isNativeAvailable(this.config, this.logger, this.nativeMessageHandler, t.authenticationScheme) }))];
|
|
12618
12625
|
case 5:
|
|
12619
12626
|
return p = k.sent(), l = this.getRedirectStartPage(t.redirectStartPage), this.logger.verbosePii("Redirect start page: " + l), window.addEventListener("pageshow", i), [4, u.initiateAuthRequest(p, {
|
|
12620
12627
|
navigationClient: this.navigationClient,
|
|
@@ -12816,7 +12823,7 @@ var ys = (
|
|
|
12816
12823
|
case 3:
|
|
12817
12824
|
return u = Z.sent(), this.performanceClient.setPreQueueTime(A.StandardInteractionClientCreateAuthCodeClient, t.correlationId), [4, this.createAuthCodeClient(a, s.authority, s.azureCloudOptions)];
|
|
12818
12825
|
case 4:
|
|
12819
|
-
return p = Z.sent(), this.logger.verbose("Auth code client created"), l =
|
|
12826
|
+
return p = Z.sent(), this.logger.verbose("Auth code client created"), l = Sn.isNativeAvailable(this.config, this.logger, this.nativeMessageHandler, t.authenticationScheme), m = void 0, l && (m = this.performanceClient.startMeasurement(A.FetchAccountIdWithNativeBroker, t.correlationId)), [4, p.getAuthCodeUrl($($({}, s), { nativeBroker: l }))];
|
|
12820
12827
|
case 5:
|
|
12821
12828
|
return f = Z.sent(), k = new wo(p, this.browserStorage, u, this.logger, this.performanceClient), E = {
|
|
12822
12829
|
popup: i,
|
|
@@ -13152,7 +13159,7 @@ var Ts = (
|
|
|
13152
13159
|
case 0:
|
|
13153
13160
|
return this.performanceClient.addQueueMeasurement(A.SilentIframeClientTokenHelper, r.correlationId), this.performanceClient.setPreQueueTime(A.StandardInteractionClientInitializeAuthorizationCodeRequest, r.correlationId), [4, this.initializeAuthorizationCodeRequest(r)];
|
|
13154
13161
|
case 1:
|
|
13155
|
-
return o = E.sent(), this.performanceClient.setPreQueueTime(A.GetAuthCodeUrl, r.correlationId), [4, t.getAuthCodeUrl($($({}, r), { nativeBroker:
|
|
13162
|
+
return o = E.sent(), this.performanceClient.setPreQueueTime(A.GetAuthCodeUrl, r.correlationId), [4, t.getAuthCodeUrl($($({}, r), { nativeBroker: Sn.isNativeAvailable(this.config, this.logger, this.nativeMessageHandler, r.authenticationScheme) }))];
|
|
13156
13163
|
case 2:
|
|
13157
13164
|
return i = E.sent(), a = new Si(t, this.browserStorage, o, this.logger, this.config.system, this.performanceClient), this.performanceClient.setPreQueueTime(A.SilentHandlerInitiateAuthRequest, r.correlationId), [4, a.initiateAuthRequest(i)];
|
|
13158
13165
|
case 3:
|
|
@@ -14305,7 +14312,7 @@ var js = (
|
|
|
14305
14312
|
return this.logger.verbose("TokenCache - loading account"), this.storage.setAccount(s), s;
|
|
14306
14313
|
throw q.createUnableToLoadTokenError("loadExternalTokens is designed to work in browser environments only.");
|
|
14307
14314
|
}, n.prototype.loadIdToken = function(e, t, r, o) {
|
|
14308
|
-
var i =
|
|
14315
|
+
var i = Cn.createIdTokenEntity(t, r, e.rawToken, this.config.auth.clientId, o);
|
|
14309
14316
|
if (this.isBrowserEnvironment)
|
|
14310
14317
|
return this.logger.verbose("TokenCache - loading id token"), this.storage.setIdTokenCredential(i), i;
|
|
14311
14318
|
throw q.createUnableToLoadTokenError("loadExternalTokens is designed to work in browser environments only.");
|
|
@@ -14316,7 +14323,7 @@ var js = (
|
|
|
14316
14323
|
throw q.createUnableToLoadTokenError("Please ensure server response includes expires_in value.");
|
|
14317
14324
|
if (!a.extendedExpiresOn)
|
|
14318
14325
|
throw q.createUnableToLoadTokenError("Please provide an extendedExpiresOn value in the options.");
|
|
14319
|
-
var s = new Xe(e.scopes).printScopes(), u = a.expiresOn || t.expires_in + (/* @__PURE__ */ new Date()).getTime() / 1e3, p = a.extendedExpiresOn, l =
|
|
14326
|
+
var s = new Xe(e.scopes).printScopes(), u = a.expiresOn || t.expires_in + (/* @__PURE__ */ new Date()).getTime() / 1e3, p = a.extendedExpiresOn, l = En.createAccessTokenEntity(r, o, t.access_token, this.config.auth.clientId, i, s, u, p, this.cryptoObj);
|
|
14320
14327
|
if (this.isBrowserEnvironment)
|
|
14321
14328
|
return this.logger.verbose("TokenCache - loading access token"), this.storage.setAccessTokenCredential(l), l;
|
|
14322
14329
|
throw q.createUnableToLoadTokenError("loadExternalTokens is designed to work in browser environments only.");
|
|
@@ -14442,7 +14449,7 @@ var Ks = (
|
|
|
14442
14449
|
if (e = this.config.system.allowNativeBroker, t = this.performanceClient.startMeasurement(A.InitializeClientApplication), this.eventHandler.emitEvent(ne.INITIALIZE_START), !e) return [3, 4];
|
|
14443
14450
|
a.label = 1;
|
|
14444
14451
|
case 1:
|
|
14445
|
-
return a.trys.push([1, 3, , 4]), r = this, [4,
|
|
14452
|
+
return a.trys.push([1, 3, , 4]), r = this, [4, Sn.createProvider(this.logger, this.config.system.nativeBrokerHandshakeTimeout, this.performanceClient)];
|
|
14446
14453
|
case 2:
|
|
14447
14454
|
return r.nativeExtensionProvider = a.sent(), [3, 4];
|
|
14448
14455
|
case 3:
|
|
@@ -14463,7 +14470,7 @@ var Ks = (
|
|
|
14463
14470
|
return O(this, void 0, void 0, function() {
|
|
14464
14471
|
var t, r, o, i, a, s, u, p, l = this;
|
|
14465
14472
|
return L(this, function(m) {
|
|
14466
|
-
return this.logger.verbose("handleRedirectPromise called"), Ae.blockNativeBrokerCalledBeforeInitialized(this.config.system.allowNativeBroker, this.initialized), t = this.getAllAccounts(), this.isBrowserEnvironment ? (r = e || w.EMPTY_STRING, o = this.redirectResponse.get(r), typeof o > "u" ? (this.eventHandler.emitEvent(ne.HANDLE_REDIRECT_START, W.Redirect), this.logger.verbose("handleRedirectPromise has been called for the first time, storing the promise"), i = this.browserStorage.getCachedNativeRequest(), a = void 0, i &&
|
|
14473
|
+
return this.logger.verbose("handleRedirectPromise called"), Ae.blockNativeBrokerCalledBeforeInitialized(this.config.system.allowNativeBroker, this.initialized), t = this.getAllAccounts(), this.isBrowserEnvironment ? (r = e || w.EMPTY_STRING, o = this.redirectResponse.get(r), typeof o > "u" ? (this.eventHandler.emitEvent(ne.HANDLE_REDIRECT_START, W.Redirect), this.logger.verbose("handleRedirectPromise has been called for the first time, storing the promise"), i = this.browserStorage.getCachedNativeRequest(), a = void 0, i && Sn.isNativeAvailable(this.config, this.logger, this.nativeExtensionProvider) && this.nativeExtensionProvider && !e ? (this.logger.trace("handleRedirectPromise - acquiring token from native platform"), s = new jn(this.config, this.browserStorage, this.browserCrypto, this.logger, this.eventHandler, this.navigationClient, Ce.handleRedirectPromise, this.performanceClient, this.nativeExtensionProvider, i.accountId, this.nativeInternalStorage, i.correlationId), a = s.handleRedirectPromise()) : (this.logger.trace("handleRedirectPromise - acquiring token from web flow"), u = this.browserStorage.getTemporaryCache(ue.CORRELATION_ID, !0) || w.EMPTY_STRING, p = this.createRedirectClient(u), a = p.handleRedirectPromise(e)), o = a.then(function(f) {
|
|
14467
14474
|
if (f) {
|
|
14468
14475
|
var k = t.length < l.getAllAccounts().length;
|
|
14469
14476
|
k ? (l.eventHandler.emitEvent(ne.LOGIN_SUCCESS, W.Redirect, f), l.logger.verbose("handleRedirectResponse returned result, login success")) : (l.eventHandler.emitEvent(ne.ACQUIRE_TOKEN_SUCCESS, W.Redirect, f), l.logger.verbose("handleRedirectResponse returned result, acquire token success"));
|
|
@@ -14769,7 +14776,7 @@ var Ks = (
|
|
|
14769
14776
|
});
|
|
14770
14777
|
});
|
|
14771
14778
|
}, n.prototype.canUseNative = function(e, t) {
|
|
14772
|
-
if (this.logger.trace("canUseNative called"), !
|
|
14779
|
+
if (this.logger.trace("canUseNative called"), !Sn.isNativeAvailable(this.config, this.logger, this.nativeExtensionProvider, e.authenticationScheme))
|
|
14773
14780
|
return this.logger.trace("canUseNative: isNativeAvailable returned false, returning false"), !1;
|
|
14774
14781
|
if (e.prompt)
|
|
14775
14782
|
switch (e.prompt) {
|
|
@@ -14897,7 +14904,7 @@ var Gs = (
|
|
|
14897
14904
|
case 0:
|
|
14898
14905
|
return this.performanceClient.addQueueMeasurement(A.AcquireTokenSilentAsync, t.correlationId), this.eventHandler.emitEvent(ne.ACQUIRE_TOKEN_START, W.Silent, t), this.astsAsyncMeasurement = this.performanceClient.startMeasurement(A.AcquireTokenSilentAsync, t.correlationId), (o = this.astsAsyncMeasurement) === null || o === void 0 || o.increment({
|
|
14899
14906
|
visibilityChangeCount: 0
|
|
14900
|
-
}), document.addEventListener("visibilitychange", this.trackPageVisibility),
|
|
14907
|
+
}), document.addEventListener("visibilitychange", this.trackPageVisibility), Sn.isNativeAvailable(this.config, this.logger, this.nativeExtensionProvider, t.authenticationScheme) && r.nativeAccountId ? (this.logger.verbose("acquireTokenSilent - attempting to acquire token from native platform"), a = $($({}, t), { account: r }), i = this.acquireTokenNative(a, Ce.acquireTokenSilent_silentFlow).catch(function(f) {
|
|
14901
14908
|
return O(l, void 0, void 0, function() {
|
|
14902
14909
|
var k;
|
|
14903
14910
|
return L(this, function(E) {
|
|
@@ -14917,7 +14924,7 @@ var Gs = (
|
|
|
14917
14924
|
if (p.cacheLookupPolicy === it.AccessToken)
|
|
14918
14925
|
throw f;
|
|
14919
14926
|
return Ae.blockReloadInHiddenIframes(), l.eventHandler.emitEvent(ne.ACQUIRE_TOKEN_NETWORK_START, W.Silent, u), l.performanceClient.setPreQueueTime(A.AcquireTokenByRefreshToken, u.correlationId), l.acquireTokenByRefreshToken(u, p).catch(function(k) {
|
|
14920
|
-
var E = k instanceof
|
|
14927
|
+
var E = k instanceof In, R = k instanceof Ot, F = k.errorCode === Un.noTokensFoundError.code, K = k.errorCode === Mt.INVALID_GRANT_ERROR;
|
|
14921
14928
|
if ((!E || !K || R || p.cacheLookupPolicy === it.AccessTokenAndRefreshToken || p.cacheLookupPolicy === it.RefreshToken) && p.cacheLookupPolicy !== it.Skip && !F)
|
|
14922
14929
|
throw k;
|
|
14923
14930
|
return l.logger.verbose("Refresh token expired/invalid or CacheLookupPolicy is set to Skip, attempting acquire token by iframe.", t.correlationId), l.performanceClient.setPreQueueTime(A.AcquireTokenBySilentIframe, u.correlationId), l.acquireTokenBySilentIframe(u);
|
|
@@ -15484,7 +15491,7 @@ const Qs = sr("MsAuthPlugin", {
|
|
|
15484
15491
|
class: "page-login-links"
|
|
15485
15492
|
}, Gc = /* @__PURE__ */ _("div", { class: "clear" }, null, -1), Vc = { class: "forgot center-text pointer small-top" }, Qc = /* @__PURE__ */ _("br", null, null, -1), Yc = /* @__PURE__ */ _("div", { class: "clear" }, null, -1);
|
|
15486
15493
|
function Wc(n, e, t, r, o, i) {
|
|
15487
|
-
const a =
|
|
15494
|
+
const a = An("router-link");
|
|
15488
15495
|
return N(), x("form", {
|
|
15489
15496
|
class: "page-login content-boxed content-boxed-padding",
|
|
15490
15497
|
onSubmit: e[15] || (e[15] = je((...s) => i.submit && i.submit(...s), ["prevent"])),
|
|
@@ -15805,7 +15812,7 @@ const bo = /* @__PURE__ */ Et(Ws, [["render", Wc]]), $c = /* @__PURE__ */ Object
|
|
|
15805
15812
|
class: "page-login-links"
|
|
15806
15813
|
}, Dl = /* @__PURE__ */ _("div", { class: "clear" }, null, -1), Hl = { class: "forgot center-text pointer small-top" }, jl = /* @__PURE__ */ _("br", null, null, -1), Fl = /* @__PURE__ */ _("div", { class: "clear" }, null, -1);
|
|
15807
15814
|
function ql(n, e, t, r, o, i) {
|
|
15808
|
-
const a =
|
|
15815
|
+
const a = An("router-link");
|
|
15809
15816
|
return N(), x("form", {
|
|
15810
15817
|
class: "page-login content-boxed content-boxed-padding",
|
|
15811
15818
|
onSubmit: e[12] || (e[12] = je((...s) => i.submit && i.submit(...s), ["prevent"])),
|
|
@@ -15942,7 +15949,7 @@ function ql(n, e, t, r, o, i) {
|
|
|
15942
15949
|
]),
|
|
15943
15950
|
Fl
|
|
15944
15951
|
])) : (N(), x("div", Bl, [
|
|
15945
|
-
|
|
15952
|
+
Oe(a, {
|
|
15946
15953
|
class: "create float-right",
|
|
15947
15954
|
to: "/verify"
|
|
15948
15955
|
}, {
|
|
@@ -15951,7 +15958,7 @@ function ql(n, e, t, r, o, i) {
|
|
|
15951
15958
|
]),
|
|
15952
15959
|
_: 1
|
|
15953
15960
|
}),
|
|
15954
|
-
|
|
15961
|
+
Oe(a, {
|
|
15955
15962
|
class: "forgot float-left",
|
|
15956
15963
|
to: "/login"
|
|
15957
15964
|
}, {
|
|
@@ -16066,7 +16073,7 @@ const ko = /* @__PURE__ */ Et(Jc, [["render", ql]]), Kl = /* @__PURE__ */ Object
|
|
|
16066
16073
|
class: "page-login-links"
|
|
16067
16074
|
}, hu = /* @__PURE__ */ Tt(() => /* @__PURE__ */ _("div", { class: "clear" }, null, -1)), fu = { class: "forgot center-text pointer small-top" }, gu = /* @__PURE__ */ Tt(() => /* @__PURE__ */ _("br", null, null, -1)), mu = /* @__PURE__ */ Tt(() => /* @__PURE__ */ _("div", { class: "clear" }, null, -1));
|
|
16068
16075
|
function _u(n, e, t, r, o, i) {
|
|
16069
|
-
const a =
|
|
16076
|
+
const a = An("router-link");
|
|
16070
16077
|
return N(), x("form", {
|
|
16071
16078
|
class: "page-login content-boxed content-boxed-padding",
|
|
16072
16079
|
onSubmit: e[6] || (e[6] = je((...s) => i.submit && i.submit(...s), ["prevent"])),
|
|
@@ -16133,7 +16140,7 @@ function _u(n, e, t, r, o, i) {
|
|
|
16133
16140
|
]),
|
|
16134
16141
|
mu
|
|
16135
16142
|
])) : (N(), x("div", pu, [
|
|
16136
|
-
|
|
16143
|
+
Oe(a, {
|
|
16137
16144
|
class: "create float-right",
|
|
16138
16145
|
to: "/register"
|
|
16139
16146
|
}, {
|
|
@@ -16142,7 +16149,7 @@ function _u(n, e, t, r, o, i) {
|
|
|
16142
16149
|
]),
|
|
16143
16150
|
_: 1
|
|
16144
16151
|
}),
|
|
16145
|
-
|
|
16152
|
+
Oe(a, {
|
|
16146
16153
|
class: "forgot float-left",
|
|
16147
16154
|
to: "/login"
|
|
16148
16155
|
}, {
|
|
@@ -16239,8 +16246,8 @@ var Pi = { exports: {} };
|
|
|
16239
16246
|
ye = ye;
|
|
16240
16247
|
var Ie = 987654321, we = 4294967295;
|
|
16241
16248
|
return function() {
|
|
16242
|
-
var
|
|
16243
|
-
return
|
|
16249
|
+
var Ne = ((Ie = 36969 * (65535 & Ie) + (Ie >> 16) & we) << 16) + (ye = 18e3 * (65535 & ye) + (ye >> 16) & we) & we;
|
|
16250
|
+
return Ne /= 4294967296, (Ne += 0.5) * (a.random() > 0.5 ? 1 : -1);
|
|
16244
16251
|
};
|
|
16245
16252
|
}, te = 0; te < T; te += 4) {
|
|
16246
16253
|
var Z = J(4294967296 * (D || a.random()));
|
|
@@ -16281,10 +16288,10 @@ var Pi = { exports: {} };
|
|
|
16281
16288
|
var D = this._data, G = D.words, J = D.sigBytes, te = this.blockSize, Z = J / (4 * te), ye = (Z = T ? a.ceil(Z) : a.max((0 | Z) - this._minBufferSize, 0)) * te, Ie = a.min(4 * ye, J);
|
|
16282
16289
|
if (ye) {
|
|
16283
16290
|
for (var we = 0; we < ye; we += te) this._doProcessBlock(G, we);
|
|
16284
|
-
var
|
|
16291
|
+
var Ne = G.splice(0, ye);
|
|
16285
16292
|
D.sigBytes -= Ie;
|
|
16286
16293
|
}
|
|
16287
|
-
return new f.init(
|
|
16294
|
+
return new f.init(Ne, Ie);
|
|
16288
16295
|
}, clone: function() {
|
|
16289
16296
|
var T = m.clone.call(this);
|
|
16290
16297
|
return T._data = this._data.clone(), T;
|
|
@@ -16440,7 +16447,7 @@ var Pi = { exports: {} };
|
|
|
16440
16447
|
for (var z = this._hash.words, T = z[0], D = z[1], G = z[2], J = z[3], te = z[4], Z = z[5], ye = z[6], Ie = z[7], we = 0; we < 64; we++) {
|
|
16441
16448
|
if (we < 16) E[we] = 0 | F[K + we];
|
|
16442
16449
|
else {
|
|
16443
|
-
var
|
|
16450
|
+
var Ne = E[we - 15], Wt = (Ne << 25 | Ne >>> 7) ^ (Ne << 14 | Ne >>> 18) ^ Ne >>> 3, Ye = E[we - 2], sn = (Ye << 15 | Ye >>> 17) ^ (Ye << 13 | Ye >>> 19) ^ Ye >>> 10;
|
|
16444
16451
|
E[we] = Wt + E[we - 7] + sn + E[we - 16];
|
|
16445
16452
|
}
|
|
16446
16453
|
var Lt = T & D ^ T & G ^ D & G, zt = (T << 30 | T >>> 2) ^ (T << 19 | T >>> 13) ^ (T << 10 | T >>> 22), st = Ie + ((te << 26 | te >>> 6) ^ (te << 21 | te >>> 11) ^ (te << 7 | te >>> 25)) + (te & Z ^ ~te & ye) + k[we] + E[we];
|
|
@@ -16470,17 +16477,17 @@ var Pi = { exports: {} };
|
|
|
16470
16477
|
var R = m.SHA512 = s.extend({ _doReset: function() {
|
|
16471
16478
|
this._hash = new l.init([new p.init(1779033703, 4089235720), new p.init(3144134277, 2227873595), new p.init(1013904242, 4271175723), new p.init(2773480762, 1595750129), new p.init(1359893119, 2917565137), new p.init(2600822924, 725511199), new p.init(528734635, 4215389547), new p.init(1541459225, 327033209)]);
|
|
16472
16479
|
}, _doProcessBlock: function(F, K) {
|
|
16473
|
-
for (var z = this._hash.words, T = z[0], D = z[1], G = z[2], J = z[3], te = z[4], Z = z[5], ye = z[6], Ie = z[7], we = T.high,
|
|
16480
|
+
for (var z = this._hash.words, T = z[0], D = z[1], G = z[2], J = z[3], te = z[4], Z = z[5], ye = z[6], Ie = z[7], we = T.high, Ne = T.low, Wt = D.high, Ye = D.low, sn = G.high, Lt = G.low, zt = J.high, st = J.low, mn = te.high, cn = te.low, _n = Z.high, ln = Z.low, Mn = ye.high, Te = ye.low, Re = Ie.high, $t = Ie.low, Fe = we, ze = Ne, xt = Wt, St = Ye, et = sn, ct = Lt, Jt = zt, Ut = st, We = mn, Pe = cn, lt = _n, Bt = ln, Dt = Mn, mt = Te, vn = Re, It = $t, qe = 0; qe < 80; qe++) {
|
|
16474
16481
|
var _t = E[qe];
|
|
16475
16482
|
if (qe < 16) var xe = _t.high = 0 | F[K + 2 * qe], ut = _t.low = 0 | F[K + 2 * qe + 1];
|
|
16476
16483
|
else {
|
|
16477
|
-
var
|
|
16484
|
+
var yn = E[qe - 15], Ke = yn.high, Ht = yn.low, h = (Ke >>> 1 | Ht << 31) ^ (Ke >>> 8 | Ht << 24) ^ Ke >>> 7, c = (Ht >>> 1 | Ke << 31) ^ (Ht >>> 8 | Ke << 24) ^ (Ht >>> 7 | Ke << 25), d = E[qe - 2], g = d.high, b = d.low, S = (g >>> 19 | b << 13) ^ (g << 3 | b >>> 29) ^ g >>> 6, P = (b >>> 19 | g << 13) ^ (b << 3 | g >>> 29) ^ (b >>> 6 | g << 26), se = E[qe - 7], be = se.high, me = se.low, ke = E[qe - 16], he = ke.high, lr = ke.low;
|
|
16478
16485
|
xe = (xe = (xe = h + be + ((ut = c + me) >>> 0 < c >>> 0 ? 1 : 0)) + S + ((ut += P) >>> 0 < P >>> 0 ? 1 : 0)) + he + ((ut += lr) >>> 0 < lr >>> 0 ? 1 : 0), _t.high = xe, _t.low = ut;
|
|
16479
16486
|
}
|
|
16480
|
-
var At, Dr = We & lt ^ ~We & Dt, ur = Pe & Bt ^ ~Pe & mt, Hr = Fe & xt ^ Fe & et ^ xt & et, jr = ze & St ^ ze & ct ^ St & ct, dr = (Fe >>> 28 | ze << 4) ^ (Fe << 30 | ze >>> 2) ^ (Fe << 25 | ze >>> 7), pr = (ze >>> 28 | Fe << 4) ^ (ze << 30 | Fe >>> 2) ^ (ze << 25 | Fe >>> 7), Fr = (We >>> 14 | Pe << 18) ^ (We >>> 18 | Pe << 14) ^ (We << 23 | Pe >>> 9), qr = (Pe >>> 14 | We << 18) ^ (Pe >>> 18 | We << 14) ^ (Pe << 23 | We >>> 9), v = k[qe], y = v.high, C = v.low, I =
|
|
16481
|
-
|
|
16487
|
+
var At, Dr = We & lt ^ ~We & Dt, ur = Pe & Bt ^ ~Pe & mt, Hr = Fe & xt ^ Fe & et ^ xt & et, jr = ze & St ^ ze & ct ^ St & ct, dr = (Fe >>> 28 | ze << 4) ^ (Fe << 30 | ze >>> 2) ^ (Fe << 25 | ze >>> 7), pr = (ze >>> 28 | Fe << 4) ^ (ze << 30 | Fe >>> 2) ^ (ze << 25 | Fe >>> 7), Fr = (We >>> 14 | Pe << 18) ^ (We >>> 18 | Pe << 14) ^ (We << 23 | Pe >>> 9), qr = (Pe >>> 14 | We << 18) ^ (Pe >>> 18 | We << 14) ^ (Pe << 23 | We >>> 9), v = k[qe], y = v.high, C = v.low, I = vn + Fr + ((At = It + qr) >>> 0 < It >>> 0 ? 1 : 0), M = pr + jr;
|
|
16488
|
+
vn = Dt, It = mt, Dt = lt, mt = Bt, lt = We, Bt = Pe, We = Jt + (I = (I = (I = I + Dr + ((At += ur) >>> 0 < ur >>> 0 ? 1 : 0)) + y + ((At += C) >>> 0 < C >>> 0 ? 1 : 0)) + xe + ((At += ut) >>> 0 < ut >>> 0 ? 1 : 0)) + ((Pe = Ut + At | 0) >>> 0 < Ut >>> 0 ? 1 : 0) | 0, Jt = et, Ut = ct, et = xt, ct = St, xt = Fe, St = ze, Fe = I + (dr + Hr + (M >>> 0 < pr >>> 0 ? 1 : 0)) + ((ze = At + M | 0) >>> 0 < At >>> 0 ? 1 : 0) | 0;
|
|
16482
16489
|
}
|
|
16483
|
-
|
|
16490
|
+
Ne = T.low = Ne + ze, T.high = we + Fe + (Ne >>> 0 < ze >>> 0 ? 1 : 0), Ye = D.low = Ye + St, D.high = Wt + xt + (Ye >>> 0 < St >>> 0 ? 1 : 0), Lt = G.low = Lt + ct, G.high = sn + et + (Lt >>> 0 < ct >>> 0 ? 1 : 0), st = J.low = st + Ut, J.high = zt + Jt + (st >>> 0 < Ut >>> 0 ? 1 : 0), cn = te.low = cn + Pe, te.high = mn + We + (cn >>> 0 < Pe >>> 0 ? 1 : 0), ln = Z.low = ln + Bt, Z.high = _n + lt + (ln >>> 0 < Bt >>> 0 ? 1 : 0), Te = ye.low = Te + mt, ye.high = Mn + Dt + (Te >>> 0 < mt >>> 0 ? 1 : 0), $t = Ie.low = $t + It, Ie.high = Re + vn + ($t >>> 0 < It >>> 0 ? 1 : 0);
|
|
16484
16491
|
}, _doFinalize: function() {
|
|
16485
16492
|
var F = this._data, K = F.words, z = 8 * this._nDataBytes, T = 8 * F.sigBytes;
|
|
16486
16493
|
return K[T >>> 5] |= 128 << 24 - T % 32, K[30 + (T + 128 >>> 10 << 5)] = Math.floor(z / 4294967296), K[31 + (T + 128 >>> 10 << 5)] = z, F.sigBytes = 4 * K.length, this._process(), this._hash.toX32();
|
|
@@ -16545,7 +16552,7 @@ var Pi = { exports: {} };
|
|
|
16545
16552
|
function we(v) {
|
|
16546
16553
|
return /^(\d+)$/.test(v);
|
|
16547
16554
|
}
|
|
16548
|
-
function
|
|
16555
|
+
function Ne(v, y, C) {
|
|
16549
16556
|
if (v.length >= y) return v;
|
|
16550
16557
|
var I = Array(y + 1).join(C);
|
|
16551
16558
|
return "".concat(I).concat(v).slice(-1 * y);
|
|
@@ -16588,7 +16595,7 @@ var Pi = { exports: {} };
|
|
|
16588
16595
|
return C.__proto__ = I, C;
|
|
16589
16596
|
})(v, y);
|
|
16590
16597
|
}
|
|
16591
|
-
function
|
|
16598
|
+
function mn(v, y) {
|
|
16592
16599
|
var C = Object.keys(v);
|
|
16593
16600
|
if (Object.getOwnPropertySymbols) {
|
|
16594
16601
|
var I = Object.getOwnPropertySymbols(v);
|
|
@@ -16601,7 +16608,7 @@ var Pi = { exports: {} };
|
|
|
16601
16608
|
function cn(v, y, C) {
|
|
16602
16609
|
return y in v ? Object.defineProperty(v, y, { value: C, enumerable: !0, configurable: !0, writable: !0 }) : v[y] = C, v;
|
|
16603
16610
|
}
|
|
16604
|
-
function
|
|
16611
|
+
function _n(v) {
|
|
16605
16612
|
if (typeof v.createDigest != "function") throw new Error("Expecting options.createDigest to be a function.");
|
|
16606
16613
|
if (typeof v.createHmacKey != "function") throw new Error("Expecting options.createHmacKey to be a function.");
|
|
16607
16614
|
if (typeof v.digits != "number") throw new Error("Expecting options.digits to be a number.");
|
|
@@ -16609,32 +16616,32 @@ var Pi = { exports: {} };
|
|
|
16609
16616
|
if (!v.encoding || Z.indexOf(v.encoding) < 0) throw new Error("Expecting options.encoding to be one of ".concat(Z.join(", "), ". Received ").concat(v.encoding, "."));
|
|
16610
16617
|
}
|
|
16611
16618
|
var ln = function(v, y, C) {
|
|
16612
|
-
return
|
|
16619
|
+
return wn.from(y, C).toString("hex");
|
|
16613
16620
|
};
|
|
16614
16621
|
function Mn(v) {
|
|
16615
16622
|
var y = function(C) {
|
|
16616
16623
|
for (var I = 1; I < arguments.length; I++) {
|
|
16617
16624
|
var M = arguments[I] != null ? arguments[I] : {};
|
|
16618
|
-
I % 2 ?
|
|
16625
|
+
I % 2 ? mn(Object(M), !0).forEach(function(j) {
|
|
16619
16626
|
cn(C, j, M[j]);
|
|
16620
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(C, Object.getOwnPropertyDescriptors(M)) :
|
|
16627
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(C, Object.getOwnPropertyDescriptors(M)) : mn(Object(M)).forEach(function(j) {
|
|
16621
16628
|
Object.defineProperty(C, j, Object.getOwnPropertyDescriptor(M, j));
|
|
16622
16629
|
});
|
|
16623
16630
|
}
|
|
16624
16631
|
return C;
|
|
16625
16632
|
}({}, { algorithm: i.SHA1, createHmacKey: ln, createDigest: Ie, digits: 6, encoding: G.ASCII }, {}, v);
|
|
16626
|
-
return
|
|
16633
|
+
return _n(y), Object.freeze(y);
|
|
16627
16634
|
}
|
|
16628
16635
|
function Te(v, y, C) {
|
|
16629
16636
|
var I = function(j) {
|
|
16630
|
-
return
|
|
16637
|
+
return Ne(j.toString(16), 16, "0");
|
|
16631
16638
|
}(y), M = C.createHmacKey(C.algorithm, v, C.encoding);
|
|
16632
16639
|
return C.createDigest(C.algorithm, M, I);
|
|
16633
16640
|
}
|
|
16634
16641
|
function Re(v, y, C) {
|
|
16635
16642
|
return function(I, M) {
|
|
16636
|
-
var j =
|
|
16637
|
-
return
|
|
16643
|
+
var j = wn.from(I, "hex"), pe = 15 & j[j.length - 1], nt = ((127 & j[pe]) << 24 | (255 & j[pe + 1]) << 16 | (255 & j[pe + 2]) << 8 | 255 & j[pe + 3]) % Math.pow(10, M);
|
|
16644
|
+
return Ne(String(nt), M, "0");
|
|
16638
16645
|
}(C.digest || Te(v, y, C), C.digits);
|
|
16639
16646
|
}
|
|
16640
16647
|
function $t(v, y, C, I, M) {
|
|
@@ -16776,14 +16783,14 @@ var Pi = { exports: {} };
|
|
|
16776
16783
|
throw new Error("Expecting options.window to be an number or [number, number].");
|
|
16777
16784
|
}
|
|
16778
16785
|
function Bt(v) {
|
|
16779
|
-
if (
|
|
16786
|
+
if (_n(v), lt(v.window), typeof v.epoch != "number") throw new Error("Expecting options.epoch to be a number.");
|
|
16780
16787
|
if (typeof v.step != "number") throw new Error("Expecting options.step to be a number.");
|
|
16781
16788
|
}
|
|
16782
16789
|
var Dt = function(v, y, C) {
|
|
16783
|
-
var I = v.length, M =
|
|
16790
|
+
var I = v.length, M = wn.from(v, y).toString("hex");
|
|
16784
16791
|
if (I < C) {
|
|
16785
16792
|
var j = new Array(C - I + 1).join(M);
|
|
16786
|
-
return
|
|
16793
|
+
return wn.from(j, "hex").slice(0, C).toString("hex");
|
|
16787
16794
|
}
|
|
16788
16795
|
return M;
|
|
16789
16796
|
}, mt = function(v, y, C) {
|
|
@@ -16798,7 +16805,7 @@ var Pi = { exports: {} };
|
|
|
16798
16805
|
throw new Error("Expecting algorithm to be one of ".concat(J.join(", "), ". Received ").concat(v, "."));
|
|
16799
16806
|
}
|
|
16800
16807
|
};
|
|
16801
|
-
function
|
|
16808
|
+
function vn(v) {
|
|
16802
16809
|
var y = Ut({}, { algorithm: i.SHA1, createDigest: Ie, createHmacKey: mt, digits: 6, encoding: G.ASCII, epoch: Date.now(), step: 30, window: 0 }, {}, v);
|
|
16803
16810
|
return Bt(y), Object.freeze(y);
|
|
16804
16811
|
}
|
|
@@ -16829,7 +16836,7 @@ var Pi = { exports: {} };
|
|
|
16829
16836
|
var I, M, j, pe, nt, jt = (I = C.epoch, M = C.step, j = C.window, pe = lt(j), { current: I, past: qe(I, -1, nt = 1e3 * M, pe[0]), future: qe(I, 1, nt, pe[1]) }), un = xe(jt.past, v, y, C);
|
|
16830
16837
|
return un !== null ? -1 * un : xe(jt.future, v, y, C);
|
|
16831
16838
|
}
|
|
16832
|
-
function
|
|
16839
|
+
function yn(v, y) {
|
|
16833
16840
|
return Math.floor(v / 1e3) % y;
|
|
16834
16841
|
}
|
|
16835
16842
|
function Ke(v, y, C, I) {
|
|
@@ -16849,7 +16856,7 @@ var Pi = { exports: {} };
|
|
|
16849
16856
|
var M = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
16850
16857
|
return new y(M);
|
|
16851
16858
|
} }, { key: "allOptions", value: function() {
|
|
16852
|
-
return
|
|
16859
|
+
return vn(this.options);
|
|
16853
16860
|
} }, { key: "generate", value: function(M) {
|
|
16854
16861
|
return It(M, this.allOptions());
|
|
16855
16862
|
} }, { key: "checkDelta", value: function(M, j) {
|
|
@@ -16861,10 +16868,10 @@ var Pi = { exports: {} };
|
|
|
16861
16868
|
return this.check(M.token, M.secret);
|
|
16862
16869
|
} }, { key: "timeRemaining", value: function() {
|
|
16863
16870
|
var M, j, pe = this.allOptions();
|
|
16864
|
-
return M = pe.epoch, (j = pe.step) -
|
|
16871
|
+
return M = pe.epoch, (j = pe.step) - yn(M, j);
|
|
16865
16872
|
} }, { key: "timeUsed", value: function() {
|
|
16866
16873
|
var M = this.allOptions();
|
|
16867
|
-
return
|
|
16874
|
+
return yn(M.epoch, M.step);
|
|
16868
16875
|
} }, { key: "keyuri", value: function(M, j, pe) {
|
|
16869
16876
|
return Ke(M, j, pe, this.allOptions());
|
|
16870
16877
|
} }]) && xt(C.prototype, I), y;
|
|
@@ -16999,12 +17006,12 @@ var Pi = { exports: {} };
|
|
|
16999
17006
|
}), (typeof window > "u" ? "undefined" : dr(window)) === "object" && window.Buffer === void 0 && (window.Buffer = buffer.Buffer);
|
|
17000
17007
|
var pr = new Fe({ createDigest: At }), Fr = new Ht({ createDigest: At }), qr = new he({ createDigest: At, createRandomBytes: function(v, y) {
|
|
17001
17008
|
var C = lr.random(v);
|
|
17002
|
-
return
|
|
17009
|
+
return wn.from(C.toString(), "hex").toString(y);
|
|
17003
17010
|
}, keyDecoder: function(v, y) {
|
|
17004
17011
|
var C = ur()(v.toUpperCase(), "RFC4648");
|
|
17005
|
-
return
|
|
17012
|
+
return wn.from(C).toString(y);
|
|
17006
17013
|
}, keyEncoder: function(v, y) {
|
|
17007
|
-
return jr()(
|
|
17014
|
+
return jr()(wn.from(v, y), "RFC4648", { padding: !1 });
|
|
17008
17015
|
} });
|
|
17009
17016
|
}]);
|
|
17010
17017
|
});
|
|
@@ -17139,7 +17146,7 @@ const yu = {
|
|
|
17139
17146
|
class: "button--loading button__loader"
|
|
17140
17147
|
}, Cd = { class: "small-bottom red-text" };
|
|
17141
17148
|
function Ed(n, e, t, r, o, i) {
|
|
17142
|
-
const a =
|
|
17149
|
+
const a = An("router-link");
|
|
17143
17150
|
return N(), x("div", wu, [
|
|
17144
17151
|
n.isModal ? (N(), x("a", {
|
|
17145
17152
|
key: 0,
|
|
@@ -17148,7 +17155,7 @@ function Ed(n, e, t, r, o, i) {
|
|
|
17148
17155
|
style: { "margin-top": "0px", position: "absolute", right: "-20px", "text-align": "right" }
|
|
17149
17156
|
}, ku)) : de("", !0),
|
|
17150
17157
|
_("div", Cu, [
|
|
17151
|
-
|
|
17158
|
+
Oe(a, {
|
|
17152
17159
|
to: "/account",
|
|
17153
17160
|
class: "button gray-button pointer left-button"
|
|
17154
17161
|
}, {
|
|
@@ -17298,7 +17305,7 @@ function Ed(n, e, t, r, o, i) {
|
|
|
17298
17305
|
_("span", {
|
|
17299
17306
|
innerHTML: n.ssoLang[n.appLanguage].password_reset
|
|
17300
17307
|
}, null, 8, ud),
|
|
17301
|
-
|
|
17308
|
+
Oe(a, {
|
|
17302
17309
|
to: "/reset",
|
|
17303
17310
|
exact: "",
|
|
17304
17311
|
class: "color-black"
|
|
@@ -17468,7 +17475,7 @@ const Eo = /* @__PURE__ */ Et(yu, [["render", Ed], ["__scopeId", "data-v-04b9da4
|
|
|
17468
17475
|
class: "button--loading button__loader"
|
|
17469
17476
|
}, op = /* @__PURE__ */ an(() => /* @__PURE__ */ _("div", { class: "decoration decoration-lines-thin no-bottom half-top" }, null, -1)), ip = { class: "close-text center-text half-top color-black" }, ap = ["innerHTML"], sp = ["href"];
|
|
17470
17477
|
function cp(n, e, t, r, o, i) {
|
|
17471
|
-
const a =
|
|
17478
|
+
const a = An("router-link");
|
|
17472
17479
|
return o.passwordChange ? (N(), x("form", {
|
|
17473
17480
|
key: 1,
|
|
17474
17481
|
class: "page-login content-boxed content-boxed-padding",
|
|
@@ -17568,7 +17575,7 @@ function cp(n, e, t, r, o, i) {
|
|
|
17568
17575
|
]),
|
|
17569
17576
|
Hd,
|
|
17570
17577
|
_("div", jd, [
|
|
17571
|
-
|
|
17578
|
+
Oe(a, {
|
|
17572
17579
|
class: "create float-right",
|
|
17573
17580
|
to: "/verify"
|
|
17574
17581
|
}, {
|
|
@@ -17577,7 +17584,7 @@ function cp(n, e, t, r, o, i) {
|
|
|
17577
17584
|
]),
|
|
17578
17585
|
_: 1
|
|
17579
17586
|
}),
|
|
17580
|
-
|
|
17587
|
+
Oe(a, {
|
|
17581
17588
|
class: "forgot float-left",
|
|
17582
17589
|
to: "/login"
|
|
17583
17590
|
}, {
|
|
@@ -18033,7 +18040,7 @@ const Wp = /* @__PURE__ */ Et(qp, [["render", Yp]]), $p = {
|
|
|
18033
18040
|
Zp
|
|
18034
18041
|
], th = { class: "bold center-text color-black small-bottom" };
|
|
18035
18042
|
function nh(n, e, t, r, o, i) {
|
|
18036
|
-
const a =
|
|
18043
|
+
const a = An("LinkIcon");
|
|
18037
18044
|
return N(), x("div", {
|
|
18038
18045
|
class: He(["menu-wrapper menu-light menu-white menu-modal center-text activate-page", { "active-menu": o.toggle }]),
|
|
18039
18046
|
style: { height: "auto", "max-height": "92vh", "margin-top": "-172.5px" }
|
|
@@ -18044,7 +18051,7 @@ function nh(n, e, t, r, o, i) {
|
|
|
18044
18051
|
style: { "margin-top": "5px", position: "absolute", right: "5px" }
|
|
18045
18052
|
}, eh),
|
|
18046
18053
|
_("h3", th, H(n.ssoLang[n.appLanguage].app_language), 1),
|
|
18047
|
-
|
|
18054
|
+
Oe(a, {
|
|
18048
18055
|
onClick: e[1] || (e[1] = (s) => i.updateLanguage("en")),
|
|
18049
18056
|
"link-style": "link-list",
|
|
18050
18057
|
data: { type: "lang/en", text: n.ssoLang[this.appLanguage].english },
|
|
@@ -18052,7 +18059,7 @@ function nh(n, e, t, r, o, i) {
|
|
|
18052
18059
|
class: He({ "add-button": !0 }),
|
|
18053
18060
|
customLinkStyle: { linkIcon: { display: "none" } }
|
|
18054
18061
|
}, null, 8, ["data"]),
|
|
18055
|
-
|
|
18062
|
+
Oe(a, {
|
|
18056
18063
|
onClick: e[2] || (e[2] = (s) => i.updateLanguage("es")),
|
|
18057
18064
|
"link-style": "link-list",
|
|
18058
18065
|
data: { type: "lang/es", text: n.ssoLang[this.appLanguage].spanish },
|
|
@@ -18060,7 +18067,7 @@ function nh(n, e, t, r, o, i) {
|
|
|
18060
18067
|
class: He({ "add-button": !0 }),
|
|
18061
18068
|
customLinkStyle: { linkIcon: { display: "none" } }
|
|
18062
18069
|
}, null, 8, ["data"]),
|
|
18063
|
-
|
|
18070
|
+
Oe(a, {
|
|
18064
18071
|
onClick: e[3] || (e[3] = (s) => i.updateLanguage("de")),
|
|
18065
18072
|
"link-style": "link-list",
|
|
18066
18073
|
data: { type: "lang/de", text: n.ssoLang[this.appLanguage].german },
|
|
@@ -18068,7 +18075,7 @@ function nh(n, e, t, r, o, i) {
|
|
|
18068
18075
|
class: He({ "add-button": !0 }),
|
|
18069
18076
|
customLinkStyle: { linkIcon: { display: "none" } }
|
|
18070
18077
|
}, null, 8, ["data"]),
|
|
18071
|
-
|
|
18078
|
+
Oe(a, {
|
|
18072
18079
|
onClick: e[4] || (e[4] = (s) => i.updateLanguage("it")),
|
|
18073
18080
|
"link-style": "link-list",
|
|
18074
18081
|
data: { type: "lang/it", text: n.ssoLang[this.appLanguage].italian },
|
|
@@ -18076,7 +18083,7 @@ function nh(n, e, t, r, o, i) {
|
|
|
18076
18083
|
class: He({ "add-button": !0 }),
|
|
18077
18084
|
customLinkStyle: { linkIcon: { display: "none" } }
|
|
18078
18085
|
}, null, 8, ["data"]),
|
|
18079
|
-
|
|
18086
|
+
Oe(a, {
|
|
18080
18087
|
onClick: e[5] || (e[5] = (s) => i.updateLanguage("fr")),
|
|
18081
18088
|
"link-style": "link-list",
|
|
18082
18089
|
data: { type: "lang/fr", text: n.ssoLang[this.appLanguage].french },
|
|
@@ -18084,7 +18091,7 @@ function nh(n, e, t, r, o, i) {
|
|
|
18084
18091
|
class: He({ "add-button": !0 }),
|
|
18085
18092
|
customLinkStyle: { linkIcon: { display: "none" } }
|
|
18086
18093
|
}, null, 8, ["data"]),
|
|
18087
|
-
|
|
18094
|
+
Oe(a, {
|
|
18088
18095
|
onClick: e[6] || (e[6] = (s) => i.updateLanguage("kr")),
|
|
18089
18096
|
"link-style": "link-list",
|
|
18090
18097
|
data: { type: "lang/kr", text: n.ssoLang[this.appLanguage].korean },
|
|
@@ -18092,7 +18099,7 @@ function nh(n, e, t, r, o, i) {
|
|
|
18092
18099
|
class: He({ "add-button": !0 }),
|
|
18093
18100
|
customLinkStyle: { linkIcon: { display: "none" } }
|
|
18094
18101
|
}, null, 8, ["data"]),
|
|
18095
|
-
|
|
18102
|
+
Oe(a, {
|
|
18096
18103
|
onClick: e[7] || (e[7] = (s) => i.updateLanguage("sr")),
|
|
18097
18104
|
"link-style": "link-list",
|
|
18098
18105
|
data: { type: "lang/sr", text: n.ssoLang[this.appLanguage].serbian },
|
|
@@ -18100,7 +18107,7 @@ function nh(n, e, t, r, o, i) {
|
|
|
18100
18107
|
class: He({ "add-button": !0 }),
|
|
18101
18108
|
customLinkStyle: { linkIcon: { display: "none" } }
|
|
18102
18109
|
}, null, 8, ["data"]),
|
|
18103
|
-
|
|
18110
|
+
Oe(a, {
|
|
18104
18111
|
onClick: e[8] || (e[8] = (s) => i.updateLanguage("tr")),
|
|
18105
18112
|
"link-style": "link-list",
|
|
18106
18113
|
data: { type: "lang/tr", text: n.ssoLang[this.appLanguage].turkish },
|
|
@@ -18108,7 +18115,7 @@ function nh(n, e, t, r, o, i) {
|
|
|
18108
18115
|
class: He({ "add-button": !0 }),
|
|
18109
18116
|
customLinkStyle: { linkIcon: { display: "none" } }
|
|
18110
18117
|
}, null, 8, ["data"]),
|
|
18111
|
-
|
|
18118
|
+
Oe(a, {
|
|
18112
18119
|
onClick: e[9] || (e[9] = (s) => i.updateLanguage("cn")),
|
|
18113
18120
|
"link-style": "link-list",
|
|
18114
18121
|
data: { type: "lang/cn", text: n.ssoLang[this.appLanguage].chinese },
|
|
@@ -18324,7 +18331,7 @@ const Li = /* @__PURE__ */ Et(Jp, [["render", nh], ["__scopeId", "data-v-ce67778
|
|
|
18324
18331
|
}
|
|
18325
18332
|
},
|
|
18326
18333
|
async mounted() {
|
|
18327
|
-
this.applyBgStyle(), this.setView(this.viewProp), Q.$on("ssoEvent", this.ssoOutgoingEvent), Q.$on("ssoLogout", (n) => this.logout(n)), Q.$on("getLoggedInAccounts", () => this.getLoggedInAccounts()), Q.$on("refreshTokenAction", (n) => this.refreshTokenAction({ ...n, storage: this.$storex })), Q.$on("switchAccount", (n) => this.switchAccount(n)), Q.$on("setToken", (n) => this.setToken(n)), Q.$on("
|
|
18334
|
+
this.applyBgStyle(), this.setView(this.viewProp), Q.$on("ssoEvent", this.ssoOutgoingEvent), Q.$on("ssoLogout", (n) => this.logout(n)), Q.$on("getLoggedInAccounts", () => this.getLoggedInAccounts()), Q.$on("refreshTokenAction", (n) => this.refreshTokenAction({ ...n, storage: this.$storex })), Q.$on("switchAccount", (n) => this.switchAccount(n)), Q.$on("setToken", (n) => this.setToken(n)), Q.$on("setStorageItem", (n) => this.setStorageItem(n));
|
|
18328
18335
|
},
|
|
18329
18336
|
methods: {
|
|
18330
18337
|
async init() {
|
|
@@ -18368,47 +18375,43 @@ const Li = /* @__PURE__ */ Et(Jp, [["render", nh], ["__scopeId", "data-v-ce67778
|
|
|
18368
18375
|
return window.Buffer = ia, document.addEventListener("DOMContentLoaded", function() {
|
|
18369
18376
|
const e = document.createElement("script");
|
|
18370
18377
|
e.src = "https://www.google.com/recaptcha/api.js?render=undefined", document.head.appendChild(e);
|
|
18371
|
-
}), (e, t) =>
|
|
18372
|
-
|
|
18373
|
-
|
|
18374
|
-
|
|
18375
|
-
|
|
18376
|
-
|
|
18377
|
-
|
|
18378
|
-
|
|
18379
|
-
|
|
18380
|
-
|
|
18381
|
-
|
|
18382
|
-
|
|
18383
|
-
|
|
18384
|
-
|
|
18385
|
-
|
|
18386
|
-
|
|
18387
|
-
|
|
18388
|
-
|
|
18389
|
-
|
|
18390
|
-
|
|
18391
|
-
|
|
18392
|
-
|
|
18393
|
-
|
|
18394
|
-
|
|
18395
|
-
|
|
18396
|
-
|
|
18397
|
-
|
|
18398
|
-
|
|
18399
|
-
|
|
18400
|
-
|
|
18401
|
-
|
|
18402
|
-
|
|
18403
|
-
|
|
18404
|
-
|
|
18405
|
-
onClick: t[1] || (t[1] = (...o) => e.closeSnacks && e.closeSnacks(...o)),
|
|
18406
|
-
style: { position: "absolute", right: "10px", top: "10px", width: "50px", height: "50px" }
|
|
18407
|
-
}, mh)
|
|
18408
|
-
])
|
|
18378
|
+
}), (e, t) => (N(), x("div", oh, [
|
|
18379
|
+
e.display === "redirect" || e.renderView.includes("Auth") ? (N(), x("a", ih, sh)) : de("", !0),
|
|
18380
|
+
Oe(Mi),
|
|
18381
|
+
n.isModal ? de("", !0) : (N(), pt(Li, { key: 1 })),
|
|
18382
|
+
n.isModal ? de("", !0) : (N(), pt(Ni, { key: 2 })),
|
|
18383
|
+
n.isModal ? de("", !0) : (N(), pt(Oi, { key: 3 })),
|
|
18384
|
+
e.initialized && e.renderView === "AuthWelcome" ? (N(), pt(ho, { key: 4 })) : e.initialized && e.renderView === "AuthLogin" ? (N(), pt(bo, {
|
|
18385
|
+
key: 5,
|
|
18386
|
+
isModal: n.isModal
|
|
18387
|
+
}, null, 8, ["isModal"])) : e.initialized && e.renderView === "AuthRegister" ? (N(), pt(ko, {
|
|
18388
|
+
key: 6,
|
|
18389
|
+
isModal: n.isModal
|
|
18390
|
+
}, null, 8, ["isModal"])) : e.initialized && e.renderView === "AuthVerify" ? (N(), pt(Co, {
|
|
18391
|
+
key: 7,
|
|
18392
|
+
isModal: n.isModal
|
|
18393
|
+
}, null, 8, ["isModal"])) : e.initialized && e.renderView === "AuthSecurity" ? (N(), pt(Eo, {
|
|
18394
|
+
key: 8,
|
|
18395
|
+
isModal: n.isModal,
|
|
18396
|
+
payload: n.payload
|
|
18397
|
+
}, null, 8, ["isModal", "payload"])) : e.initialized && e.renderView === "AuthReset" ? (N(), pt(To, { key: 9 })) : e.initialized && e.renderView === "AuthCallback" ? (N(), pt(So, { key: 10 })) : e.display !== "npm" ? (N(), pt(Bi(ji), { key: 11 })) : de("", !0),
|
|
18398
|
+
_("div", ch, [
|
|
18399
|
+
_("p", lh, [
|
|
18400
|
+
_("span", uh, H(e.ssoLang[e.appLanguage].error), 1),
|
|
18401
|
+
_("a", {
|
|
18402
|
+
onClick: t[0] || (t[0] = (...r) => e.closeSnacks && e.closeSnacks(...r)),
|
|
18403
|
+
style: { position: "absolute", right: "10px", top: "10px", width: "50px", height: "50px" }
|
|
18404
|
+
}, ph)
|
|
18405
|
+
]),
|
|
18406
|
+
_("p", hh, [
|
|
18407
|
+
_("span", fh, H(e.ssoLang[e.appLanguage].success), 1),
|
|
18408
|
+
_("a", {
|
|
18409
|
+
onClick: t[1] || (t[1] = (...r) => e.closeSnacks && e.closeSnacks(...r)),
|
|
18410
|
+
style: { position: "absolute", right: "10px", top: "10px", width: "50px", height: "50px" }
|
|
18411
|
+
}, mh)
|
|
18409
18412
|
])
|
|
18410
|
-
])
|
|
18411
|
-
|
|
18413
|
+
])
|
|
18414
|
+
]));
|
|
18412
18415
|
}
|
|
18413
18416
|
}), Mh = {
|
|
18414
18417
|
install: (n, { store: e, apiRoot: t }) => {
|