@tapni/auth 0.0.101 → 0.0.102

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.
@@ -1,4 +1,4 @@
1
- import { reactive as Ko, readonly as Go, resolveComponent as Bt, openBlock as S, createElementBlock as P, createElementVNode as y, toDisplayString as U, createCommentVNode as ee, createVNode as ke, withCtx as nt, createTextVNode as se, pushScopeId as Dt, popScopeId as Ht, createStaticVNode as Vo, nextTick as vr, withModifiers as Oe, normalizeStyle as Lt, withDirectives as me, withKeys as kt, vModelText as wt, vModelDynamic as dn, vShow as mt, createBlock as qe, normalizeClass as Ie, unref as Qo } from "vue";
1
+ import { reactive as Ko, readonly as Go, resolveComponent as Bt, openBlock as S, createElementBlock as P, createElementVNode as y, toDisplayString as U, createCommentVNode as ee, createVNode as ke, withCtx as nt, createTextVNode as se, pushScopeId as Dt, popScopeId as Ht, createStaticVNode as Vo, nextTick as vr, withModifiers as Oe, normalizeStyle as Lt, withDirectives as me, withKeys as kt, vModelText as wt, vModelDynamic as un, vShow as mt, createBlock as qe, normalizeClass as Ie, unref as Qo } from "vue";
2
2
  import { RouterView as Yo } from "vue-router";
3
3
  import ne from "await-to-js";
4
4
  import Xn from "axios";
@@ -8,7 +8,7 @@ import { Capacitor as Vt, registerPlugin as In, WebPlugin as Wo } from "@capacit
8
8
  import { Browser as hn } from "@capacitor/browser";
9
9
  import $o from "qr-code-styling";
10
10
  import { sanitizeUrl as Jo } from "@braintree/sanitize-url";
11
- const Xo = "0.0.100";
11
+ const Xo = "0.0.102";
12
12
  let Un;
13
13
  const qt = {
14
14
  setApiRootFromOptions(n) {
@@ -4445,7 +4445,7 @@ const ze = {
4445
4445
  ]);
4446
4446
  },
4447
4447
  async switchAccount(n) {
4448
- console.log("switch account auth f"), this.$storage.username = n, this.$storage.UserId = this.loggedInAccounts[n].id, this.setLoggedInUserId(this.loggedInAccounts[n].id), this.setRefreshToken(this.loggedInAccounts[n].refreshToken), await this.refreshTokenAction(this.loggedInAccounts[n]), z.$emit("ssoEvent", { name: "switchAccount", data: { username: n } });
4448
+ console.log("switch account auth f"), this.$storage.username = n, this.loggedInAccounts[n] && (this.$storage.UserId = this.loggedInAccounts[n].id, this.setLoggedInUserId(this.loggedInAccounts[n].id), this.setRefreshToken(this.loggedInAccounts[n].refreshToken), await this.refreshTokenAction({ ...this.loggedInAccounts[n], storage: this.$storage })), z.$emit("ssoEvent", { name: "switchAccount", data: { username: n } });
4449
4449
  },
4450
4450
  async refreshTokenAction(n) {
4451
4451
  return new Promise(async (e, t) => {
@@ -4662,7 +4662,7 @@ const ze = {
4662
4662
  type: "video/mp4"
4663
4663
  }, null, -1)), ai = [
4664
4664
  ii
4665
- ], si = { class: "bold full-top no-bottom center-text" }, ci = { class: "full-bottom half-top center-text color-black font-16" }, li = { class: "page-login-links center-text" }, ui = /* @__PURE__ */ $r(() => /* @__PURE__ */ y("div", { class: "clear" }, null, -1)), di = {
4665
+ ], si = { class: "bold full-top no-bottom center-text" }, ci = { class: "full-bottom half-top center-text color-black font-16" }, li = { class: "page-login-links center-text" }, di = /* @__PURE__ */ $r(() => /* @__PURE__ */ y("div", { class: "clear" }, null, -1)), ui = {
4666
4666
  key: 2,
4667
4667
  style: { display: "flex", "flex-direction": "row", "justify-content": "space-around", width: "90%", margin: "0 auto", "margin-top": "40px" }
4668
4668
  }, pi = /* @__PURE__ */ Vo('<a href="https://play.google.com/store/apps/details?id=co.tapni.app" target="_blank" data-v-67088d6f><img src="https://cdn.tapni.co/images/playstore.png" class="app-store-icon pointer" style="width:55px;" data-v-67088d6f></a><a href="https://apps.apple.com/ag/app/tapni/id1552930233" target="_blank" data-v-67088d6f><img src="https://cdn.tapni.co/images/appstore.png" class="app-store-icon pointer" style="width:55px;" data-v-67088d6f></a><a href="https://appgallery.huawei.com/#/app/C103931997" target="_blank" data-v-67088d6f><img src="https://cdn.tapni.co/images/appgallery.png" class="app-store-icon pointer" style="width:55px;" data-v-67088d6f></a>', 3), hi = [
@@ -4702,9 +4702,9 @@ function mi(n, e, t, r, o, i) {
4702
4702
  ]),
4703
4703
  _: 1
4704
4704
  }),
4705
- ui
4705
+ di
4706
4706
  ]),
4707
- this.isNative ? ee("", !0) : (S(), P("div", di, hi))
4707
+ this.isNative ? ee("", !0) : (S(), P("div", ui, hi))
4708
4708
  ]);
4709
4709
  }
4710
4710
  const Jr = /* @__PURE__ */ We(ni, [["render", mi], ["__scopeId", "data-v-67088d6f"]]), wr = In("GoogleAuth", {
@@ -4902,22 +4902,22 @@ function T(n, e, t, r) {
4902
4902
  });
4903
4903
  }
4904
4904
  return new (t || (t = Promise))(function(i, a) {
4905
- function s(d) {
4905
+ function s(u) {
4906
4906
  try {
4907
- p(r.next(d));
4907
+ p(r.next(u));
4908
4908
  } catch (f) {
4909
4909
  a(f);
4910
4910
  }
4911
4911
  }
4912
- function u(d) {
4912
+ function d(u) {
4913
4913
  try {
4914
- p(r.throw(d));
4914
+ p(r.throw(u));
4915
4915
  } catch (f) {
4916
4916
  a(f);
4917
4917
  }
4918
4918
  }
4919
- function p(d) {
4920
- d.done ? i(d.value) : o(d.value).then(s, u);
4919
+ function p(u) {
4920
+ u.done ? i(u.value) : o(u.value).then(s, d);
4921
4921
  }
4922
4922
  p((r = r.apply(n, e || [])).next());
4923
4923
  });
@@ -4932,11 +4932,11 @@ function I(n, e) {
4932
4932
  return this;
4933
4933
  }), a;
4934
4934
  function s(p) {
4935
- return function(d) {
4936
- return u([p, d]);
4935
+ return function(u) {
4936
+ return d([p, u]);
4937
4937
  };
4938
4938
  }
4939
- function u(p) {
4939
+ function d(p) {
4940
4940
  if (r)
4941
4941
  throw new TypeError("Generator is already executing.");
4942
4942
  for (; t; )
@@ -4977,8 +4977,8 @@ function I(n, e) {
4977
4977
  continue;
4978
4978
  }
4979
4979
  p = e.call(n, t);
4980
- } catch (d) {
4981
- p = [6, d], o = 0;
4980
+ } catch (u) {
4981
+ p = [6, u], o = 0;
4982
4982
  } finally {
4983
4983
  r = i = 0;
4984
4984
  }
@@ -5059,22 +5059,22 @@ function j(n, e, t, r) {
5059
5059
  });
5060
5060
  }
5061
5061
  return new (t || (t = Promise))(function(i, a) {
5062
- function s(d) {
5062
+ function s(u) {
5063
5063
  try {
5064
- p(r.next(d));
5064
+ p(r.next(u));
5065
5065
  } catch (f) {
5066
5066
  a(f);
5067
5067
  }
5068
5068
  }
5069
- function u(d) {
5069
+ function d(u) {
5070
5070
  try {
5071
- p(r.throw(d));
5071
+ p(r.throw(u));
5072
5072
  } catch (f) {
5073
5073
  a(f);
5074
5074
  }
5075
5075
  }
5076
- function p(d) {
5077
- d.done ? i(d.value) : o(d.value).then(s, u);
5076
+ function p(u) {
5077
+ u.done ? i(u.value) : o(u.value).then(s, d);
5078
5078
  }
5079
5079
  p((r = r.apply(n, e || [])).next());
5080
5080
  });
@@ -5089,11 +5089,11 @@ function K(n, e) {
5089
5089
  return this;
5090
5090
  }), a;
5091
5091
  function s(p) {
5092
- return function(d) {
5093
- return u([p, d]);
5092
+ return function(u) {
5093
+ return d([p, u]);
5094
5094
  };
5095
5095
  }
5096
- function u(p) {
5096
+ function d(p) {
5097
5097
  if (r)
5098
5098
  throw new TypeError("Generator is already executing.");
5099
5099
  for (; t; )
@@ -5134,8 +5134,8 @@ function K(n, e) {
5134
5134
  continue;
5135
5135
  }
5136
5136
  p = e.call(n, t);
5137
- } catch (d) {
5138
- p = [6, d], o = 0;
5137
+ } catch (u) {
5138
+ p = [6, u], o = 0;
5139
5139
  } finally {
5140
5140
  r = i = 0;
5141
5141
  }
@@ -5313,10 +5313,10 @@ var At;
5313
5313
  (function(n) {
5314
5314
  n[n.httpSuccess = 200] = "httpSuccess", n[n.httpBadRequest = 400] = "httpBadRequest";
5315
5315
  })(At || (At = {}));
5316
- var dt;
5316
+ var ut;
5317
5317
  (function(n) {
5318
5318
  n.FAILED_AUTO_DETECTION = "1", n.INTERNAL_CACHE = "2", n.ENVIRONMENT_VARIABLE = "3", n.IMDS = "4";
5319
- })(dt || (dt = {}));
5319
+ })(ut || (ut = {}));
5320
5320
  var Jt;
5321
5321
  (function(n) {
5322
5322
  n.CONFIGURED_MATCHES_DETECTED = "1", n.CONFIGURED_NO_AUTO_DETECTION = "2", n.CONFIGURED_NOT_DETECTED = "3", n.AUTO_DETECTION_REQUESTED_SUCCESSFUL = "4", n.AUTO_DETECTION_REQUESTED_FAILED = "5";
@@ -5762,8 +5762,8 @@ var L = (
5762
5762
  };
5763
5763
  return r.forEach(function(i) {
5764
5764
  if (i.trim()) {
5765
- var a = i.split(/=(.+)/g, 2), s = a[0], u = a[1];
5766
- s && u && (t[o(s)] = o(u));
5765
+ var a = i.split(/=(.+)/g, 2), s = a[0], d = a[1];
5766
+ s && d && (t[o(s)] = o(d));
5767
5767
  }
5768
5768
  }), t;
5769
5769
  }, n.trimArrayEntries = function(e) {
@@ -6203,34 +6203,34 @@ var we = (
6203
6203
  e.tenantId || g.EMPTY_STRING
6204
6204
  ];
6205
6205
  return t.join(fe.CACHE_KEY_SEPARATOR).toLowerCase();
6206
- }, n.createAccount = function(e, t, r, o, i, a, s, u) {
6207
- var p, d, f, _, k, E, N = new n();
6208
- N.authorityType = ot.MSSTS_ACCOUNT_TYPE, N.clientInfo = e, N.homeAccountId = t, N.nativeAccountId = u;
6206
+ }, n.createAccount = function(e, t, r, o, i, a, s, d) {
6207
+ var p, u, f, _, k, E, N = new n();
6208
+ N.authorityType = ot.MSSTS_ACCOUNT_TYPE, N.clientInfo = e, N.homeAccountId = t, N.nativeAccountId = d;
6209
6209
  var Q = s || o && o.getPreferredCache();
6210
6210
  if (!Q)
6211
6211
  throw O.createInvalidCacheEnvironmentError();
6212
6212
  if (N.environment = Q, N.realm = ((p = r == null ? void 0 : r.claims) === null || p === void 0 ? void 0 : p.tid) || g.EMPTY_STRING, r) {
6213
- N.idTokenClaims = r.claims, N.localAccountId = ((d = r == null ? void 0 : r.claims) === null || d === void 0 ? void 0 : d.oid) || ((f = r == null ? void 0 : r.claims) === null || f === void 0 ? void 0 : f.sub) || g.EMPTY_STRING;
6213
+ N.idTokenClaims = r.claims, N.localAccountId = ((u = r == null ? void 0 : r.claims) === null || u === void 0 ? void 0 : u.oid) || ((f = r == null ? void 0 : r.claims) === null || f === void 0 ? void 0 : f.sub) || g.EMPTY_STRING;
6214
6214
  var X = (_ = r == null ? void 0 : r.claims) === null || _ === void 0 ? void 0 : _.preferred_username, G = !((k = r == null ? void 0 : r.claims) === null || k === void 0) && k.emails ? r.claims.emails[0] : null;
6215
6215
  N.username = X || G || g.EMPTY_STRING, N.name = (E = r == null ? void 0 : r.claims) === null || E === void 0 ? void 0 : E.name;
6216
6216
  }
6217
6217
  return N.cloudGraphHostName = i, N.msGraphHost = a, N;
6218
6218
  }, n.createGenericAccount = function(e, t, r, o, i, a) {
6219
- var s, u, p, d, f = new n();
6219
+ var s, d, p, u, f = new n();
6220
6220
  f.authorityType = r && r.authorityType === Se.Adfs ? ot.ADFS_ACCOUNT_TYPE : ot.GENERIC_ACCOUNT_TYPE, f.homeAccountId = e, f.realm = g.EMPTY_STRING;
6221
6221
  var _ = a || r && r.getPreferredCache();
6222
6222
  if (!_)
6223
6223
  throw O.createInvalidCacheEnvironmentError();
6224
- return t && (f.localAccountId = ((s = t == null ? void 0 : t.claims) === null || s === void 0 ? void 0 : s.oid) || ((u = t == null ? void 0 : t.claims) === null || u === void 0 ? void 0 : u.sub) || g.EMPTY_STRING, f.username = ((p = t == null ? void 0 : t.claims) === null || p === void 0 ? void 0 : p.upn) || g.EMPTY_STRING, f.name = ((d = t == null ? void 0 : t.claims) === null || d === void 0 ? void 0 : d.name) || g.EMPTY_STRING, f.idTokenClaims = t == null ? void 0 : t.claims), f.environment = _, f.cloudGraphHostName = o, f.msGraphHost = i, f;
6224
+ return t && (f.localAccountId = ((s = t == null ? void 0 : t.claims) === null || s === void 0 ? void 0 : s.oid) || ((d = t == null ? void 0 : t.claims) === null || d === void 0 ? void 0 : d.sub) || g.EMPTY_STRING, f.username = ((p = t == null ? void 0 : t.claims) === null || p === void 0 ? void 0 : p.upn) || g.EMPTY_STRING, f.name = ((u = t == null ? void 0 : t.claims) === null || u === void 0 ? void 0 : u.name) || g.EMPTY_STRING, f.idTokenClaims = t == null ? void 0 : t.claims), f.environment = _, f.cloudGraphHostName = o, f.msGraphHost = i, f;
6225
6225
  }, n.generateHomeAccountId = function(e, t, r, o, i) {
6226
6226
  var a, s = !((a = i == null ? void 0 : i.claims) === null || a === void 0) && a.sub ? i.claims.sub : g.EMPTY_STRING;
6227
6227
  if (t === Se.Adfs || t === Se.Dsts)
6228
6228
  return s;
6229
6229
  if (e)
6230
6230
  try {
6231
- var u = vn(e, o);
6232
- if (!L.isEmpty(u.uid) && !L.isEmpty(u.utid))
6233
- return "" + u.uid + fe.CLIENT_INFO_SEPARATOR + u.utid;
6231
+ var d = vn(e, o);
6232
+ if (!L.isEmpty(d.uid) && !L.isEmpty(d.utid))
6233
+ return "" + d.uid + fe.CLIENT_INFO_SEPARATOR + d.utid;
6234
6234
  } catch {
6235
6235
  }
6236
6236
  return r.verbose("No client info in response"), s;
@@ -6331,12 +6331,12 @@ var Me = (
6331
6331
  realm: e.realm,
6332
6332
  tokenType: e.tokenType,
6333
6333
  requestedClaimsHash: e.requestedClaimsHash
6334
- }, r = this.getTokenKeys(), o = Ee.fromString(e.target), i = [], r.accessToken.forEach(function(u) {
6335
- if (a.accessTokenKeyMatchesFilter(u, t, !1)) {
6336
- var p = a.getAccessTokenCredential(u);
6334
+ }, r = this.getTokenKeys(), o = Ee.fromString(e.target), i = [], r.accessToken.forEach(function(d) {
6335
+ if (a.accessTokenKeyMatchesFilter(d, t, !1)) {
6336
+ var p = a.getAccessTokenCredential(d);
6337
6337
  if (p && a.credentialMatchesFilter(p, t)) {
6338
- var d = Ee.fromString(p.target);
6339
- d.intersectingScopeSets(o) && i.push(a.removeAccessToken(u));
6338
+ var u = Ee.fromString(p.target);
6339
+ u.intersectingScopeSets(o) && i.push(a.removeAccessToken(d));
6340
6340
  }
6341
6341
  }
6342
6342
  }), [4, Promise.all(i)];
@@ -6481,12 +6481,12 @@ var Me = (
6481
6481
  e.isAppMetadata(r) && e.removeItem(r);
6482
6482
  }), !0;
6483
6483
  }, n.prototype.readCacheRecord = function(e, t, r) {
6484
- var o = this.getTokenKeys(), i = this.readAccountFromCache(e), a = this.getIdToken(e, o), s = this.getAccessToken(e, t, o), u = this.getRefreshToken(e, !1, o), p = this.readAppMetadataFromCache(r);
6484
+ var o = this.getTokenKeys(), i = this.readAccountFromCache(e), a = this.getIdToken(e, o), s = this.getAccessToken(e, t, o), d = this.getRefreshToken(e, !1, o), p = this.readAppMetadataFromCache(r);
6485
6485
  return i && a && (i.idTokenClaims = new rt(a.secret, this.cryptoImpl).claims), {
6486
6486
  account: i,
6487
6487
  idToken: a,
6488
6488
  accessToken: s,
6489
- refreshToken: u,
6489
+ refreshToken: d,
6490
6490
  appMetadata: p
6491
6491
  };
6492
6492
  }, n.prototype.readAccountFromCache = function(e) {
@@ -6523,7 +6523,7 @@ var Me = (
6523
6523
  }, n.prototype.getAccessToken = function(e, t, r) {
6524
6524
  var o = this;
6525
6525
  this.commonLogger.trace("CacheManager - getAccessToken called");
6526
- var i = Ee.createSearchScopes(t.scopes), a = t.authenticationScheme || te.BEARER, s = a && a.toLowerCase() !== te.BEARER.toLowerCase() ? H.ACCESS_TOKEN_WITH_AUTH_SCHEME : H.ACCESS_TOKEN, u = {
6526
+ var i = Ee.createSearchScopes(t.scopes), a = t.authenticationScheme || te.BEARER, s = a && a.toLowerCase() !== te.BEARER.toLowerCase() ? H.ACCESS_TOKEN_WITH_AUTH_SCHEME : H.ACCESS_TOKEN, d = {
6527
6527
  homeAccountId: e.homeAccountId,
6528
6528
  environment: e.environment,
6529
6529
  credentialType: s,
@@ -6533,17 +6533,17 @@ var Me = (
6533
6533
  tokenType: a,
6534
6534
  keyId: t.sshKid,
6535
6535
  requestedClaimsHash: t.requestedClaimsHash
6536
- }, p = r && r.accessToken || this.getTokenKeys().accessToken, d = [];
6536
+ }, p = r && r.accessToken || this.getTokenKeys().accessToken, u = [];
6537
6537
  p.forEach(function(_) {
6538
- if (o.accessTokenKeyMatchesFilter(_, u, !0)) {
6538
+ if (o.accessTokenKeyMatchesFilter(_, d, !0)) {
6539
6539
  var k = o.getAccessTokenCredential(_);
6540
- k && o.credentialMatchesFilter(k, u) && d.push(k);
6540
+ k && o.credentialMatchesFilter(k, d) && u.push(k);
6541
6541
  }
6542
6542
  });
6543
- var f = d.length;
6544
- return f < 1 ? (this.commonLogger.info("CacheManager:getAccessToken - No token found"), null) : f > 1 ? (this.commonLogger.info("CacheManager:getAccessToken - Multiple access tokens found, clearing them"), d.forEach(function(_) {
6543
+ var f = u.length;
6544
+ return f < 1 ? (this.commonLogger.info("CacheManager:getAccessToken - No token found"), null) : f > 1 ? (this.commonLogger.info("CacheManager:getAccessToken - Multiple access tokens found, clearing them"), u.forEach(function(_) {
6545
6545
  o.removeAccessToken(_.generateCredentialKey());
6546
- }), null) : (this.commonLogger.info("CacheManager:getAccessToken - Returning access token"), d[0]);
6546
+ }), null) : (this.commonLogger.info("CacheManager:getAccessToken - Returning access token"), u[0]);
6547
6547
  }, n.prototype.accessTokenKeyMatchesFilter = function(e, t, r) {
6548
6548
  var o = e.toLowerCase();
6549
6549
  if (t.clientId && o.indexOf(t.clientId.toLowerCase()) === -1 || t.homeAccountId && o.indexOf(t.homeAccountId.toLowerCase()) === -1 || t.realm && o.indexOf(t.realm.toLowerCase()) === -1 || t.requestedClaimsHash && o.indexOf(t.requestedClaimsHash.toLowerCase()) === -1)
@@ -6573,15 +6573,15 @@ var Me = (
6573
6573
  credentialType: H.REFRESH_TOKEN,
6574
6574
  clientId: this.clientId,
6575
6575
  familyId: i
6576
- }, s = r && r.refreshToken || this.getTokenKeys().refreshToken, u = [];
6577
- s.forEach(function(d) {
6578
- if (o.refreshTokenKeyMatchesFilter(d, a)) {
6579
- var f = o.getRefreshTokenCredential(d);
6580
- f && o.credentialMatchesFilter(f, a) && u.push(f);
6576
+ }, s = r && r.refreshToken || this.getTokenKeys().refreshToken, d = [];
6577
+ s.forEach(function(u) {
6578
+ if (o.refreshTokenKeyMatchesFilter(u, a)) {
6579
+ var f = o.getRefreshTokenCredential(u);
6580
+ f && o.credentialMatchesFilter(f, a) && d.push(f);
6581
6581
  }
6582
6582
  });
6583
- var p = u.length;
6584
- return p < 1 ? (this.commonLogger.info("CacheManager:getRefreshToken - No refresh token found."), null) : (this.commonLogger.info("CacheManager:getRefreshToken - returning refresh token"), u[0]);
6583
+ var p = d.length;
6584
+ return p < 1 ? (this.commonLogger.info("CacheManager:getRefreshToken - No refresh token found."), null) : (this.commonLogger.info("CacheManager:getRefreshToken - returning refresh token"), d[0]);
6585
6585
  }, n.prototype.refreshTokenKeyMatchesFilter = function(e, t) {
6586
6586
  var r = e.toLowerCase();
6587
6587
  return !(t.familyId && r.indexOf(t.familyId.toLowerCase()) === -1 || !t.familyId && t.clientId && r.indexOf(t.clientId.toLowerCase()) === -1 || t.homeAccountId && r.indexOf(t.homeAccountId.toLowerCase()) === -1);
@@ -6776,7 +6776,7 @@ var ki = 300, no = {
6776
6776
  }
6777
6777
  };
6778
6778
  function Ai(n) {
6779
- var e = n.authOptions, t = n.systemOptions, r = n.loggerOptions, o = n.cacheOptions, i = n.storageInterface, a = n.networkInterface, s = n.cryptoInterface, u = n.clientCredentials, p = n.libraryInfo, d = n.telemetry, f = n.serverTelemetryManager, _ = n.persistencePlugin, k = n.serializableCache, E = Z(Z({}, wi), r);
6779
+ var e = n.authOptions, t = n.systemOptions, r = n.loggerOptions, o = n.cacheOptions, i = n.storageInterface, a = n.networkInterface, s = n.cryptoInterface, d = n.clientCredentials, p = n.libraryInfo, u = n.telemetry, f = n.serverTelemetryManager, _ = n.persistencePlugin, k = n.serializableCache, E = Z(Z({}, wi), r);
6780
6780
  return {
6781
6781
  authOptions: Ri(e),
6782
6782
  systemOptions: Z(Z({}, no), t),
@@ -6785,9 +6785,9 @@ function Ai(n) {
6785
6785
  storageInterface: i || new yi(e.clientId, _n, new er(E)),
6786
6786
  networkInterface: a || Ci,
6787
6787
  cryptoInterface: s || _n,
6788
- clientCredentials: u || Ti,
6788
+ clientCredentials: d || Ti,
6789
6789
  libraryInfo: Z(Z({}, Ei), p),
6790
- telemetry: Z(Z({}, Si), d),
6790
+ telemetry: Z(Z({}, Si), u),
6791
6791
  serverTelemetryManager: f || null,
6792
6792
  persistencePlugin: _ || null,
6793
6793
  serializableCache: k || null
@@ -7125,15 +7125,15 @@ var rr = (
7125
7125
  default:
7126
7126
  throw O.createUnexpectedCredentialTypeError();
7127
7127
  }
7128
- }, n.generateCredentialCacheKey = function(e, t, r, o, i, a, s, u, p) {
7129
- var d = [
7128
+ }, n.generateCredentialCacheKey = function(e, t, r, o, i, a, s, d, p) {
7129
+ var u = [
7130
7130
  this.generateAccountIdForCacheKey(e, t),
7131
7131
  this.generateCredentialIdForCacheKey(r, o, i, s),
7132
7132
  this.generateTargetForCacheKey(a),
7133
7133
  this.generateClaimsHashForCacheKey(p),
7134
- this.generateSchemeForCacheKey(u)
7134
+ this.generateSchemeForCacheKey(d)
7135
7135
  ];
7136
- return d.join(fe.CACHE_KEY_SEPARATOR).toLowerCase();
7136
+ return u.join(fe.CACHE_KEY_SEPARATOR).toLowerCase();
7137
7137
  }, n.generateAccountIdForCacheKey = function(e, t) {
7138
7138
  var r = [e, t];
7139
7139
  return r.join(fe.CACHE_KEY_SEPARATOR).toLowerCase();
@@ -7200,14 +7200,14 @@ var _t = (
7200
7200
  function e() {
7201
7201
  return n !== null && n.apply(this, arguments) || this;
7202
7202
  }
7203
- return e.createAccessTokenEntity = function(t, r, o, i, a, s, u, p, d, f, _, k, E, N, Q) {
7203
+ return e.createAccessTokenEntity = function(t, r, o, i, a, s, d, p, u, f, _, k, E, N, Q) {
7204
7204
  var X, G, $ = new e();
7205
7205
  $.homeAccountId = t, $.credentialType = H.ACCESS_TOKEN, $.secret = o;
7206
7206
  var Ae = Ke.nowSeconds();
7207
- if ($.cachedAt = Ae.toString(), $.expiresOn = u.toString(), $.extendedExpiresOn = p.toString(), f && ($.refreshOn = f.toString()), $.environment = r, $.clientId = i, $.realm = a, $.target = s, $.userAssertionHash = k, $.tokenType = L.isEmpty(_) ? te.BEARER : _, N && ($.requestedClaims = N, $.requestedClaimsHash = Q), ((X = $.tokenType) === null || X === void 0 ? void 0 : X.toLowerCase()) !== te.BEARER.toLowerCase())
7207
+ if ($.cachedAt = Ae.toString(), $.expiresOn = d.toString(), $.extendedExpiresOn = p.toString(), f && ($.refreshOn = f.toString()), $.environment = r, $.clientId = i, $.realm = a, $.target = s, $.userAssertionHash = k, $.tokenType = L.isEmpty(_) ? te.BEARER : _, N && ($.requestedClaims = N, $.requestedClaimsHash = Q), ((X = $.tokenType) === null || X === void 0 ? void 0 : X.toLowerCase()) !== te.BEARER.toLowerCase())
7208
7208
  switch ($.credentialType = H.ACCESS_TOKEN_WITH_AUTH_SCHEME, $.tokenType) {
7209
7209
  case te.POP:
7210
- var xe = rt.extractTokenClaims(o, d);
7210
+ var xe = rt.extractTokenClaims(o, u);
7211
7211
  if (!(!((G = xe == null ? void 0 : xe.cnf) === null || G === void 0) && G.kid))
7212
7212
  throw O.createTokenClaimsRequiredError();
7213
7213
  $.keyId = xe.cnf.kid;
@@ -7230,8 +7230,8 @@ var Pt = (
7230
7230
  return n !== null && n.apply(this, arguments) || this;
7231
7231
  }
7232
7232
  return e.createRefreshTokenEntity = function(t, r, o, i, a, s) {
7233
- var u = new e();
7234
- return u.clientId = i, u.credentialType = H.REFRESH_TOKEN, u.environment = r, u.homeAccountId = t, u.secret = o, u.userAssertionHash = s, a && (u.familyId = a), u;
7233
+ var d = new e();
7234
+ return d.clientId = i, d.credentialType = H.REFRESH_TOKEN, d.environment = r, d.homeAccountId = t, d.secret = o, d.userAssertionHash = s, a && (d.familyId = a), d;
7235
7235
  }, e.isRefreshTokenEntity = function(t) {
7236
7236
  return t ? t.hasOwnProperty("homeAccountId") && t.hasOwnProperty("environment") && t.hasOwnProperty("credentialType") && t.hasOwnProperty("clientId") && t.hasOwnProperty("secret") && t.credentialType === H.REFRESH_TOKEN : !1;
7237
7237
  }, e;
@@ -7261,13 +7261,13 @@ var Ir = [
7261
7261
  /** @class */
7262
7262
  function(n) {
7263
7263
  Ue(e, n);
7264
- function e(t, r, o, i, a, s, u) {
7264
+ function e(t, r, o, i, a, s, d) {
7265
7265
  var p = n.call(this, t, r, o) || this;
7266
- return Object.setPrototypeOf(p, e.prototype), p.timestamp = i || g.EMPTY_STRING, p.traceId = a || g.EMPTY_STRING, p.correlationId = s || g.EMPTY_STRING, p.claims = u || g.EMPTY_STRING, p.name = "InteractionRequiredAuthError", p;
7266
+ return Object.setPrototypeOf(p, e.prototype), p.timestamp = i || g.EMPTY_STRING, p.traceId = a || g.EMPTY_STRING, p.correlationId = s || g.EMPTY_STRING, p.claims = d || g.EMPTY_STRING, p.name = "InteractionRequiredAuthError", p;
7267
7267
  }
7268
7268
  return e.isInteractionRequiredError = function(t, r, o) {
7269
- var i = !!t && Ir.indexOf(t) > -1, a = !!o && Mi.indexOf(o) > -1, s = !!r && Ir.some(function(u) {
7270
- return r.indexOf(u) > -1;
7269
+ var i = !!t && Ir.indexOf(t) > -1, a = !!o && Mi.indexOf(o) > -1, s = !!r && Ir.some(function(d) {
7270
+ return r.indexOf(d) > -1;
7271
7271
  });
7272
7272
  return i || s || a;
7273
7273
  }, e.createNoTokensFoundError = function() {
@@ -7316,8 +7316,8 @@ var st = (
7316
7316
  userRequestState: L.isEmpty(i) ? g.EMPTY_STRING : i,
7317
7317
  libraryState: s
7318
7318
  };
7319
- } catch (u) {
7320
- throw O.createInvalidStateError(t, u);
7319
+ } catch (d) {
7320
+ throw O.createInvalidStateError(t, d);
7321
7321
  }
7322
7322
  }, n;
7323
7323
  }()
@@ -7490,11 +7490,11 @@ var Ut = (
7490
7490
  });
7491
7491
  }, n.prototype.signPayload = function(e, t, r, o) {
7492
7492
  return j(this, void 0, void 0, function() {
7493
- var i, a, s, u, p, d;
7493
+ var i, a, s, d, p, u;
7494
7494
  return K(this, function(f) {
7495
7495
  switch (f.label) {
7496
7496
  case 0:
7497
- return i = r.resourceRequestMethod, a = r.resourceRequestUri, s = r.shrClaims, u = r.shrNonce, p = a ? new W(a) : void 0, d = p == null ? void 0 : p.getUrlComponents(), [4, this.cryptoUtils.signJwt(Z({ at: e, ts: Ke.nowSeconds(), m: i == null ? void 0 : i.toUpperCase(), u: d == null ? void 0 : d.HostNameAndPort, nonce: u || this.cryptoUtils.createNewGuid(), p: d == null ? void 0 : d.AbsolutePath, q: d != null && d.QueryString ? [[], d.QueryString] : void 0, client_claims: s || void 0 }, o), t, r.correlationId)];
7497
+ return i = r.resourceRequestMethod, a = r.resourceRequestUri, s = r.shrClaims, d = r.shrNonce, p = a ? new W(a) : void 0, u = p == null ? void 0 : p.getUrlComponents(), [4, this.cryptoUtils.signJwt(Z({ at: e, ts: Ke.nowSeconds(), m: i == null ? void 0 : i.toUpperCase(), u: u == null ? void 0 : u.HostNameAndPort, nonce: d || this.cryptoUtils.createNewGuid(), p: u == null ? void 0 : u.AbsolutePath, q: u != null && u.QueryString ? [[], u.QueryString] : void 0, client_claims: s || void 0 }, o), t, r.correlationId)];
7498
7498
  case 1:
7499
7499
  return [2, f.sent()];
7500
7500
  }
@@ -7576,14 +7576,14 @@ var wn = (
7576
7576
  var t = e.error_codes + " - [" + e.timestamp + "]: " + e.error_description + " - Correlation ID: " + e.correlation_id + " - Trace ID: " + e.trace_id;
7577
7577
  throw new bt(e.error, t, e.suberror);
7578
7578
  }
7579
- }, n.prototype.handleServerTokenResponse = function(e, t, r, o, i, a, s, u, p) {
7580
- var d;
7579
+ }, n.prototype.handleServerTokenResponse = function(e, t, r, o, i, a, s, d, p) {
7580
+ var u;
7581
7581
  return j(this, void 0, void 0, function() {
7582
7582
  var f, _, k, E, N, Q, X;
7583
7583
  return K(this, function(G) {
7584
7584
  switch (G.label) {
7585
7585
  case 0:
7586
- if ((d = this.performanceClient) === null || d === void 0 || d.addQueueMeasurement(b.HandleServerTokenResponse, e.correlation_id), e.id_token) {
7586
+ if ((u = this.performanceClient) === null || u === void 0 || u.addQueueMeasurement(b.HandleServerTokenResponse, e.correlation_id), e.id_token) {
7587
7587
  if (f = new rt(e.id_token || g.EMPTY_STRING, this.cryptoObj), i && !L.isEmpty(i.nonce) && f.claims.nonce !== i.nonce)
7588
7588
  throw O.createNonceMismatchError();
7589
7589
  if (o.maxAge || o.maxAge === 0) {
@@ -7598,7 +7598,7 @@ var wn = (
7598
7598
  case 2:
7599
7599
  G.sent(), G.label = 3;
7600
7600
  case 3:
7601
- return s && !u && E.account && (Q = E.account.generateAccountKey(), X = this.cacheStorage.getAccount(Q), !X) ? (this.logger.warning("Account used to refresh tokens not in persistence, refreshed tokens will not be stored in the cache"), [2, n.generateAuthenticationResult(this.cryptoObj, t, E, !1, o, f, k, void 0, p)]) : [4, this.cacheStorage.saveCacheRecord(E)];
7601
+ return s && !d && E.account && (Q = E.account.generateAccountKey(), X = this.cacheStorage.getAccount(Q), !X) ? (this.logger.warning("Account used to refresh tokens not in persistence, refreshed tokens will not be stored in the cache"), [2, n.generateAuthenticationResult(this.cryptoObj, t, E, !1, o, f, k, void 0, p)]) : [4, this.cacheStorage.saveCacheRecord(E)];
7602
7602
  case 4:
7603
7603
  return G.sent(), [3, 8];
7604
7604
  case 5:
@@ -7616,20 +7616,20 @@ var wn = (
7616
7616
  });
7617
7617
  });
7618
7618
  }, n.prototype.generateCacheRecord = function(e, t, r, o, i, a, s) {
7619
- var u = t.getPreferredCache();
7620
- if (L.isEmpty(u))
7619
+ var d = t.getPreferredCache();
7620
+ if (L.isEmpty(d))
7621
7621
  throw O.createInvalidCacheEnvironmentError();
7622
- var p, d;
7623
- !L.isEmpty(e.id_token) && i && (p = gt.createIdTokenEntity(this.homeAccountIdentifier, u, e.id_token || g.EMPTY_STRING, this.clientId, i.claims.tid || g.EMPTY_STRING), d = this.generateAccountEntity(e, i, t, s));
7622
+ var p, u;
7623
+ !L.isEmpty(e.id_token) && i && (p = gt.createIdTokenEntity(this.homeAccountIdentifier, d, e.id_token || g.EMPTY_STRING, this.clientId, i.claims.tid || g.EMPTY_STRING), u = this.generateAccountEntity(e, i, t, s));
7624
7624
  var f = null;
7625
7625
  if (!L.isEmpty(e.access_token)) {
7626
7626
  var _ = e.scope ? Ee.fromString(e.scope) : new Ee(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, N = (typeof e.refresh_in == "string" ? parseInt(e.refresh_in, 10) : e.refresh_in) || void 0, Q = r + k, X = Q + E, G = N && N > 0 ? r + N : void 0;
7627
- f = _t.createAccessTokenEntity(this.homeAccountIdentifier, u, e.access_token || g.EMPTY_STRING, this.clientId, i ? i.claims.tid || g.EMPTY_STRING : t.tenant, _.printScopes(), Q, X, this.cryptoObj, G, e.token_type, a, e.key_id, o.claims, o.requestedClaimsHash);
7627
+ f = _t.createAccessTokenEntity(this.homeAccountIdentifier, d, e.access_token || g.EMPTY_STRING, this.clientId, i ? i.claims.tid || g.EMPTY_STRING : t.tenant, _.printScopes(), Q, X, this.cryptoObj, G, e.token_type, a, e.key_id, o.claims, o.requestedClaimsHash);
7628
7628
  }
7629
7629
  var $ = null;
7630
- L.isEmpty(e.refresh_token) || ($ = Pt.createRefreshTokenEntity(this.homeAccountIdentifier, u, e.refresh_token || g.EMPTY_STRING, this.clientId, e.foci, a));
7630
+ L.isEmpty(e.refresh_token) || ($ = Pt.createRefreshTokenEntity(this.homeAccountIdentifier, d, e.refresh_token || g.EMPTY_STRING, this.clientId, e.foci, a));
7631
7631
  var Ae = null;
7632
- return L.isEmpty(e.foci) || (Ae = Vn.createAppMetadataEntity(this.clientId, u, e.foci)), new Zt(d, p, f, $, Ae);
7632
+ return L.isEmpty(e.foci) || (Ae = Vn.createAppMetadataEntity(this.clientId, d, e.foci)), new Zt(u, p, f, $, Ae);
7633
7633
  }, n.prototype.generateAccountEntity = function(e, t, r, o) {
7634
7634
  var i = r.authorityType, a = o ? o.cloud_graph_host_name : g.EMPTY_STRING, s = o ? o.msgraph_host : g.EMPTY_STRING;
7635
7635
  if (i === Se.Adfs)
@@ -7637,8 +7637,8 @@ var wn = (
7637
7637
  if (L.isEmpty(e.client_info) && r.protocolMode === "AAD")
7638
7638
  throw O.createClientInfoEmptyError();
7639
7639
  return e.client_info ? we.createAccount(e.client_info, this.homeAccountIdentifier, t, r, a, s) : we.createGenericAccount(this.homeAccountIdentifier, t, r, a, s);
7640
- }, n.generateAuthenticationResult = function(e, t, r, o, i, a, s, u, p) {
7641
- var d, f, _;
7640
+ }, n.generateAuthenticationResult = function(e, t, r, o, i, a, s, d, p) {
7641
+ var u, f, _;
7642
7642
  return j(this, void 0, void 0, function() {
7643
7643
  var k, E, N, Q, X, G, $, Ae, xe, Ve, Ct;
7644
7644
  return K(this, function(ce) {
@@ -7658,7 +7658,7 @@ var wn = (
7658
7658
  case 3:
7659
7659
  E = Ee.fromString(r.accessToken.target).asArray(), N = new Date(Number(r.accessToken.expiresOn) * 1e3), Q = new Date(Number(r.accessToken.extendedExpiresOn) * 1e3), ce.label = 4;
7660
7660
  case 4:
7661
- return r.appMetadata && (X = r.appMetadata.familyId === Yt ? Yt : g.EMPTY_STRING), Ve = (a == null ? void 0 : a.claims.oid) || (a == null ? void 0 : a.claims.sub) || g.EMPTY_STRING, Ct = (a == null ? void 0 : a.claims.tid) || g.EMPTY_STRING, u != null && u.spa_accountid && r.account && (r.account.nativeAccountId = u == null ? void 0 : u.spa_accountid), [2, {
7661
+ return r.appMetadata && (X = r.appMetadata.familyId === Yt ? Yt : g.EMPTY_STRING), Ve = (a == null ? void 0 : a.claims.oid) || (a == null ? void 0 : a.claims.sub) || g.EMPTY_STRING, Ct = (a == null ? void 0 : a.claims.tid) || g.EMPTY_STRING, d != null && d.spa_accountid && r.account && (r.account.nativeAccountId = d == null ? void 0 : d.spa_accountid), [2, {
7662
7662
  authority: t.canonicalAuthority,
7663
7663
  uniqueId: Ve,
7664
7664
  tenantId: Ct,
@@ -7673,11 +7673,11 @@ var wn = (
7673
7673
  requestId: p || g.EMPTY_STRING,
7674
7674
  extExpiresOn: Q,
7675
7675
  familyId: X,
7676
- tokenType: ((d = r.accessToken) === null || d === void 0 ? void 0 : d.tokenType) || g.EMPTY_STRING,
7676
+ tokenType: ((u = r.accessToken) === null || u === void 0 ? void 0 : u.tokenType) || g.EMPTY_STRING,
7677
7677
  state: s ? s.userRequestState : g.EMPTY_STRING,
7678
7678
  cloudGraphHostName: ((f = r.account) === null || f === void 0 ? void 0 : f.cloudGraphHostName) || g.EMPTY_STRING,
7679
7679
  msGraphHost: ((_ = r.account) === null || _ === void 0 ? void 0 : _.msGraphHost) || g.EMPTY_STRING,
7680
- code: u == null ? void 0 : u.spa_code,
7680
+ code: d == null ? void 0 : d.spa_code,
7681
7681
  fromNativeBroker: !1
7682
7682
  }];
7683
7683
  }
@@ -7709,24 +7709,24 @@ var ro = (
7709
7709
  });
7710
7710
  });
7711
7711
  }, e.prototype.acquireToken = function(t, r) {
7712
- var o, i, a, s, u, p;
7712
+ var o, i, a, s, d, p;
7713
7713
  return j(this, void 0, void 0, function() {
7714
- var d, f, _, k, E, N, Q = this;
7714
+ var u, f, _, k, E, N, Q = this;
7715
7715
  return K(this, function(X) {
7716
7716
  switch (X.label) {
7717
7717
  case 0:
7718
7718
  if (!t || !t.code)
7719
7719
  throw O.createTokenRequestCannotBeMadeError();
7720
- return (o = this.performanceClient) === null || o === void 0 || o.addQueueMeasurement(b.AuthClientAcquireToken, t.correlationId), d = (i = this.performanceClient) === null || i === void 0 ? void 0 : i.startMeasurement("AuthCodeClientAcquireToken", t.correlationId), this.logger.info("in acquireToken call in auth-code client"), f = Ke.nowSeconds(), (a = this.performanceClient) === null || a === void 0 || a.setPreQueueTime(b.AuthClientExecuteTokenRequest, t.correlationId), [4, this.executeTokenRequest(this.authority, t)];
7720
+ return (o = this.performanceClient) === null || o === void 0 || o.addQueueMeasurement(b.AuthClientAcquireToken, t.correlationId), u = (i = this.performanceClient) === null || i === void 0 ? void 0 : i.startMeasurement("AuthCodeClientAcquireToken", t.correlationId), this.logger.info("in acquireToken call in auth-code client"), f = Ke.nowSeconds(), (a = this.performanceClient) === null || a === void 0 || a.setPreQueueTime(b.AuthClientExecuteTokenRequest, t.correlationId), [4, this.executeTokenRequest(this.authority, t)];
7721
7721
  case 1:
7722
- return _ = X.sent(), k = (s = _.headers) === null || s === void 0 ? void 0 : s[De.X_MS_REQUEST_ID], E = (u = _.headers) === null || u === void 0 ? void 0 : u[De.X_MS_HTTP_VERSION], E && (d == null || d.addStaticFields({
7722
+ return _ = X.sent(), k = (s = _.headers) === null || s === void 0 ? void 0 : s[De.X_MS_REQUEST_ID], E = (d = _.headers) === null || d === void 0 ? void 0 : d[De.X_MS_HTTP_VERSION], E && (u == null || u.addStaticFields({
7723
7723
  httpVerAuthority: E
7724
7724
  })), N = new wn(this.config.authOptions.clientId, this.cacheManager, this.cryptoUtils, this.logger, this.config.serializableCache, this.config.persistencePlugin, this.performanceClient), N.validateTokenResponse(_.body), (p = this.performanceClient) === null || p === void 0 || p.setPreQueueTime(b.HandleServerTokenResponse, t.correlationId), [2, N.handleServerTokenResponse(_.body, this.authority, f, t, r, void 0, void 0, void 0, k).then(function(G) {
7725
- return d == null || d.endMeasurement({
7725
+ return u == null || u.endMeasurement({
7726
7726
  success: !0
7727
7727
  }), G;
7728
7728
  }).catch(function(G) {
7729
- throw Q.logger.verbose("Error in fetching token in ACC", t.correlationId), d == null || d.endMeasurement({
7729
+ throw Q.logger.verbose("Error in fetching token in ACC", t.correlationId), u == null || u.endMeasurement({
7730
7730
  errorCode: G.errorCode,
7731
7731
  subErrorCode: G.subError,
7732
7732
  success: !1
@@ -7751,16 +7751,16 @@ var ro = (
7751
7751
  }, e.prototype.executeTokenRequest = function(t, r) {
7752
7752
  var o, i;
7753
7753
  return j(this, void 0, void 0, function() {
7754
- var a, s, u, p, d, f, _;
7754
+ var a, s, d, p, u, f, _;
7755
7755
  return K(this, function(k) {
7756
7756
  switch (k.label) {
7757
7757
  case 0:
7758
7758
  return (o = this.performanceClient) === null || o === void 0 || o.addQueueMeasurement(b.AuthClientExecuteTokenRequest, r.correlationId), (i = this.performanceClient) === null || i === void 0 || i.setPreQueueTime(b.AuthClientCreateTokenRequestBody, r.correlationId), a = this.createTokenQueryParameters(r), s = W.appendQueryString(t.tokenEndpoint, a), [4, this.createTokenRequestBody(r)];
7759
7759
  case 1:
7760
- if (u = k.sent(), p = void 0, r.clientInfo)
7760
+ if (d = k.sent(), p = void 0, r.clientInfo)
7761
7761
  try {
7762
- d = vn(r.clientInfo, this.cryptoUtils), p = {
7763
- credential: "" + d.uid + fe.CLIENT_INFO_SEPARATOR + d.utid,
7762
+ u = vn(r.clientInfo, this.cryptoUtils), p = {
7763
+ credential: "" + u.uid + fe.CLIENT_INFO_SEPARATOR + u.utid,
7764
7764
  type: Be.HOME_ACCOUNT_ID
7765
7765
  };
7766
7766
  } catch (E) {
@@ -7776,20 +7776,20 @@ var ro = (
7776
7776
  resourceRequestUri: r.resourceRequestUri,
7777
7777
  shrClaims: r.shrClaims,
7778
7778
  sshKid: r.sshKid
7779
- }, [2, this.executePostToTokenEndpoint(s, u, f, _)];
7779
+ }, [2, this.executePostToTokenEndpoint(s, d, f, _)];
7780
7780
  }
7781
7781
  });
7782
7782
  });
7783
7783
  }, e.prototype.createTokenRequestBody = function(t) {
7784
7784
  var r, o;
7785
7785
  return j(this, void 0, void 0, function() {
7786
- var i, a, s, u, p, d, f, f, _;
7786
+ var i, a, s, d, p, u, f, f, _;
7787
7787
  return K(this, function(k) {
7788
7788
  switch (k.label) {
7789
7789
  case 0:
7790
7790
  return (r = this.performanceClient) === null || r === void 0 || r.addQueueMeasurement(b.AuthClientCreateTokenRequestBody, t.correlationId), i = new Xt(), i.addClientId(this.config.authOptions.clientId), this.includeRedirectUri ? i.addRedirectUri(t.redirectUri) : ft.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(fn.AUTHORIZATION_CODE_GRANT), i.addClientInfo(), t.authenticationScheme !== te.POP ? [3, 2] : (s = new Ut(this.cryptoUtils, this.performanceClient), (o = this.performanceClient) === null || o === void 0 || o.setPreQueueTime(b.PopTokenGenerateCnf, t.correlationId), [4, s.generateCnf(t)]);
7791
7791
  case 1:
7792
- return u = k.sent(), i.addPopToken(u.reqCnfString), [3, 3];
7792
+ return d = k.sent(), i.addPopToken(d.reqCnfString), [3, 3];
7793
7793
  case 2:
7794
7794
  if (t.authenticationScheme === te.SSH)
7795
7795
  if (t.sshJwk)
@@ -7798,9 +7798,9 @@ var ro = (
7798
7798
  throw ie.createMissingSshJwkError();
7799
7799
  k.label = 3;
7800
7800
  case 3:
7801
- if (p = t.correlationId || this.config.cryptoInterface.createNewGuid(), i.addCorrelationId(p), (!L.isEmptyObj(t.claims) || this.config.authOptions.clientCapabilities && this.config.authOptions.clientCapabilities.length > 0) && i.addClaims(t.claims, this.config.authOptions.clientCapabilities), d = void 0, t.clientInfo)
7801
+ if (p = t.correlationId || this.config.cryptoInterface.createNewGuid(), i.addCorrelationId(p), (!L.isEmptyObj(t.claims) || this.config.authOptions.clientCapabilities && this.config.authOptions.clientCapabilities.length > 0) && i.addClaims(t.claims, this.config.authOptions.clientCapabilities), u = void 0, t.clientInfo)
7802
7802
  try {
7803
- f = vn(t.clientInfo, this.cryptoUtils), d = {
7803
+ f = vn(t.clientInfo, this.cryptoUtils), u = {
7804
7804
  credential: "" + f.uid + fe.CLIENT_INFO_SEPARATOR + f.utid,
7805
7805
  type: Be.HOME_ACCOUNT_ID
7806
7806
  };
@@ -7808,18 +7808,18 @@ var ro = (
7808
7808
  this.logger.verbose("Could not parse client info for CCS Header: " + E);
7809
7809
  }
7810
7810
  else
7811
- d = t.ccsCredential;
7812
- if (this.config.systemOptions.preventCorsPreflight && d)
7813
- switch (d.type) {
7811
+ u = t.ccsCredential;
7812
+ if (this.config.systemOptions.preventCorsPreflight && u)
7813
+ switch (u.type) {
7814
7814
  case Be.HOME_ACCOUNT_ID:
7815
7815
  try {
7816
- f = Rt(d.credential), i.addCcsOid(f);
7816
+ f = Rt(u.credential), i.addCcsOid(f);
7817
7817
  } catch (E) {
7818
7818
  this.logger.verbose("Could not parse home account ID for CCS Header: " + E);
7819
7819
  }
7820
7820
  break;
7821
7821
  case Be.UPN:
7822
- i.addCcsUpn(d.credential);
7822
+ i.addCcsUpn(u.credential);
7823
7823
  break;
7824
7824
  }
7825
7825
  return t.tokenBodyParameters && i.addExtraQueryParameters(t.tokenBodyParameters), t.enableSpaAuthorizationCode && (!t.tokenBodyParameters || !t.tokenBodyParameters[V.RETURN_SPA_CODE]) && i.addExtraQueryParameters((_ = {}, _[V.RETURN_SPA_CODE] = "1", _)), [2, i.createQueryString()];
@@ -7829,7 +7829,7 @@ var ro = (
7829
7829
  }, e.prototype.createAuthCodeUrlQueryString = function(t) {
7830
7830
  var r;
7831
7831
  return j(this, void 0, void 0, function() {
7832
- var o, i, a, s, u, p, p, p, d, f;
7832
+ var o, i, a, s, d, p, p, p, u, f;
7833
7833
  return K(this, function(_) {
7834
7834
  switch (_.label) {
7835
7835
  case 0:
@@ -7837,8 +7837,8 @@ var ro = (
7837
7837
  if (t.sid && t.prompt === Te.NONE)
7838
7838
  this.logger.verbose("createAuthCodeUrlQueryString: Prompt is none, adding sid from request"), o.addSid(t.sid);
7839
7839
  else if (t.account) {
7840
- if (s = this.extractAccountSid(t.account), u = this.extractLoginHint(t.account), u) {
7841
- this.logger.verbose("createAuthCodeUrlQueryString: login_hint claim present on account"), o.addLoginHint(u);
7840
+ if (s = this.extractAccountSid(t.account), d = this.extractLoginHint(t.account), d) {
7841
+ this.logger.verbose("createAuthCodeUrlQueryString: login_hint claim present on account"), o.addLoginHint(d);
7842
7842
  try {
7843
7843
  p = Rt(t.account.homeAccountId), o.addCcsOid(p);
7844
7844
  } catch {
@@ -7865,7 +7865,7 @@ var ro = (
7865
7865
  t.loginHint && (this.logger.verbose("createAuthCodeUrlQueryString: No account, adding login_hint from request"), o.addLoginHint(t.loginHint), o.addCcsUpn(t.loginHint));
7866
7866
  else
7867
7867
  this.logger.verbose("createAuthCodeUrlQueryString: Prompt is select_account, ignoring account hints");
7868
- return t.nonce && o.addNonce(t.nonce), t.state && o.addState(t.state), (!L.isEmpty(t.claims) || this.config.authOptions.clientCapabilities && this.config.authOptions.clientCapabilities.length > 0) && o.addClaims(t.claims, this.config.authOptions.clientCapabilities), t.extraQueryParameters && o.addExtraQueryParameters(t.extraQueryParameters), t.nativeBroker ? (o.addNativeBroker(), t.authenticationScheme !== te.POP ? [3, 2] : (d = new Ut(this.cryptoUtils), [4, d.generateCnf(t)])) : [3, 2];
7868
+ return t.nonce && o.addNonce(t.nonce), t.state && o.addState(t.state), (!L.isEmpty(t.claims) || this.config.authOptions.clientCapabilities && this.config.authOptions.clientCapabilities.length > 0) && o.addClaims(t.claims, this.config.authOptions.clientCapabilities), t.extraQueryParameters && o.addExtraQueryParameters(t.extraQueryParameters), t.nativeBroker ? (o.addNativeBroker(), t.authenticationScheme !== te.POP ? [3, 2] : (u = new Ut(this.cryptoUtils), [4, u.generateCnf(t)])) : [3, 2];
7869
7869
  case 1:
7870
7870
  f = _.sent(), o.addPopToken(f.reqCnfString), _.label = 2;
7871
7871
  case 2:
@@ -7894,24 +7894,24 @@ var oo = (
7894
7894
  return n.call(this, t, r) || this;
7895
7895
  }
7896
7896
  return e.prototype.acquireToken = function(t) {
7897
- var r, o, i, a, s, u, p;
7897
+ var r, o, i, a, s, d, p;
7898
7898
  return j(this, void 0, void 0, function() {
7899
- var d, f, _, k, E, N, Q = this;
7899
+ var u, f, _, k, E, N, Q = this;
7900
7900
  return K(this, function(X) {
7901
7901
  switch (X.label) {
7902
7902
  case 0:
7903
- return (r = this.performanceClient) === null || r === void 0 || r.addQueueMeasurement(b.RefreshTokenClientAcquireToken, t.correlationId), d = (o = this.performanceClient) === null || o === void 0 ? void 0 : o.startMeasurement(b.RefreshTokenClientAcquireToken, t.correlationId), this.logger.verbose("RefreshTokenClientAcquireToken called", t.correlationId), f = Ke.nowSeconds(), (i = this.performanceClient) === null || i === void 0 || i.setPreQueueTime(b.RefreshTokenClientExecuteTokenRequest, t.correlationId), [4, this.executeTokenRequest(t, this.authority)];
7903
+ return (r = this.performanceClient) === null || r === void 0 || r.addQueueMeasurement(b.RefreshTokenClientAcquireToken, t.correlationId), u = (o = this.performanceClient) === null || o === void 0 ? void 0 : o.startMeasurement(b.RefreshTokenClientAcquireToken, t.correlationId), this.logger.verbose("RefreshTokenClientAcquireToken called", t.correlationId), f = Ke.nowSeconds(), (i = this.performanceClient) === null || i === void 0 || i.setPreQueueTime(b.RefreshTokenClientExecuteTokenRequest, t.correlationId), [4, this.executeTokenRequest(t, this.authority)];
7904
7904
  case 1:
7905
- return _ = X.sent(), k = (a = _.headers) === null || a === void 0 ? void 0 : a[De.X_MS_HTTP_VERSION], d == null || d.addStaticFields({
7905
+ return _ = X.sent(), k = (a = _.headers) === null || a === void 0 ? void 0 : a[De.X_MS_HTTP_VERSION], u == null || u.addStaticFields({
7906
7906
  refreshTokenSize: ((s = _.body.refresh_token) === null || s === void 0 ? void 0 : s.length) || 0
7907
- }), k && (d == null || d.addStaticFields({
7907
+ }), k && (u == null || u.addStaticFields({
7908
7908
  httpVerToken: k
7909
- })), E = (u = _.headers) === null || u === void 0 ? void 0 : u[De.X_MS_REQUEST_ID], N = new wn(this.config.authOptions.clientId, this.cacheManager, this.cryptoUtils, this.logger, this.config.serializableCache, this.config.persistencePlugin), N.validateTokenResponse(_.body), (p = this.performanceClient) === null || p === void 0 || p.setPreQueueTime(b.HandleServerTokenResponse, t.correlationId), [2, N.handleServerTokenResponse(_.body, this.authority, f, t, void 0, void 0, !0, t.forceCache, E).then(function(G) {
7910
- return d == null || d.endMeasurement({
7909
+ })), E = (d = _.headers) === null || d === void 0 ? void 0 : d[De.X_MS_REQUEST_ID], N = new wn(this.config.authOptions.clientId, this.cacheManager, this.cryptoUtils, this.logger, this.config.serializableCache, this.config.persistencePlugin), N.validateTokenResponse(_.body), (p = this.performanceClient) === null || p === void 0 || p.setPreQueueTime(b.HandleServerTokenResponse, t.correlationId), [2, N.handleServerTokenResponse(_.body, this.authority, f, t, void 0, void 0, !0, t.forceCache, E).then(function(G) {
7910
+ return u == null || u.endMeasurement({
7911
7911
  success: !0
7912
7912
  }), G;
7913
7913
  }).catch(function(G) {
7914
- throw Q.logger.verbose("Error in fetching refresh token", t.correlationId), d == null || d.endMeasurement({
7914
+ throw Q.logger.verbose("Error in fetching refresh token", t.correlationId), u == null || u.endMeasurement({
7915
7915
  errorCode: G.errorCode,
7916
7916
  subErrorCode: G.subError,
7917
7917
  success: !1
@@ -7923,8 +7923,8 @@ var oo = (
7923
7923
  }, e.prototype.acquireTokenByRefreshToken = function(t) {
7924
7924
  var r, o, i, a;
7925
7925
  return j(this, void 0, void 0, function() {
7926
- var s, u, p;
7927
- return K(this, function(d) {
7926
+ var s, d, p;
7927
+ return K(this, function(u) {
7928
7928
  if (!t)
7929
7929
  throw ie.createEmptyTokenRequestError();
7930
7930
  if ((r = this.performanceClient) === null || r === void 0 || r.addQueueMeasurement(b.RefreshTokenClientAcquireTokenByRefreshToken, t.correlationId), !t.account)
@@ -7933,7 +7933,7 @@ var oo = (
7933
7933
  try {
7934
7934
  return (o = this.performanceClient) === null || o === void 0 || o.setPreQueueTime(b.RefreshTokenClientAcquireTokenWithCachedRefreshToken, t.correlationId), [2, this.acquireTokenWithCachedRefreshToken(t, !0)];
7935
7935
  } catch (f) {
7936
- if (u = f instanceof Ye && f.errorCode === Mt.noTokensFoundError.code, p = f instanceof bt && f.errorCode === Tr.INVALID_GRANT_ERROR && f.subError === Tr.CLIENT_MISMATCH_ERROR, u || p)
7936
+ if (d = f instanceof Ye && f.errorCode === Mt.noTokensFoundError.code, p = f instanceof bt && f.errorCode === Tr.INVALID_GRANT_ERROR && f.subError === Tr.CLIENT_MISMATCH_ERROR, d || p)
7937
7937
  return (i = this.performanceClient) === null || i === void 0 || i.setPreQueueTime(b.RefreshTokenClientAcquireTokenWithCachedRefreshToken, t.correlationId), [2, this.acquireTokenWithCachedRefreshToken(t, !1)];
7938
7938
  throw f;
7939
7939
  }
@@ -7943,13 +7943,13 @@ var oo = (
7943
7943
  }, e.prototype.acquireTokenWithCachedRefreshToken = function(t, r) {
7944
7944
  var o, i, a;
7945
7945
  return j(this, void 0, void 0, function() {
7946
- var s, u, p;
7947
- return K(this, function(d) {
7948
- if ((o = this.performanceClient) === null || o === void 0 || o.addQueueMeasurement(b.RefreshTokenClientAcquireTokenWithCachedRefreshToken, t.correlationId), s = (i = this.performanceClient) === null || i === void 0 ? void 0 : i.startMeasurement(b.RefreshTokenClientAcquireTokenWithCachedRefreshToken, t.correlationId), this.logger.verbose("RefreshTokenClientAcquireTokenWithCachedRefreshToken called", t.correlationId), u = this.cacheManager.getRefreshToken(t.account, r), !u)
7946
+ var s, d, p;
7947
+ return K(this, function(u) {
7948
+ if ((o = this.performanceClient) === null || o === void 0 || o.addQueueMeasurement(b.RefreshTokenClientAcquireTokenWithCachedRefreshToken, t.correlationId), s = (i = this.performanceClient) === null || i === void 0 ? void 0 : i.startMeasurement(b.RefreshTokenClientAcquireTokenWithCachedRefreshToken, t.correlationId), this.logger.verbose("RefreshTokenClientAcquireTokenWithCachedRefreshToken called", t.correlationId), d = this.cacheManager.getRefreshToken(t.account, r), !d)
7949
7949
  throw s == null || s.discardMeasurement(), Ye.createNoTokensFoundError();
7950
7950
  return s == null || s.endMeasurement({
7951
7951
  success: !0
7952
- }), p = Z(Z({}, t), { refreshToken: u.secret, authenticationScheme: t.authenticationScheme || te.BEARER, ccsCredential: {
7952
+ }), p = Z(Z({}, t), { refreshToken: d.secret, authenticationScheme: t.authenticationScheme || te.BEARER, ccsCredential: {
7953
7953
  credential: t.account.homeAccountId,
7954
7954
  type: Be.HOME_ACCOUNT_ID
7955
7955
  } }), (a = this.performanceClient) === null || a === void 0 || a.setPreQueueTime(b.RefreshTokenClientAcquireToken, t.correlationId), [2, this.acquireToken(p)];
@@ -7958,13 +7958,13 @@ var oo = (
7958
7958
  }, e.prototype.executeTokenRequest = function(t, r) {
7959
7959
  var o, i, a;
7960
7960
  return j(this, void 0, void 0, function() {
7961
- var s, u, p, d, f, _;
7961
+ var s, d, p, u, f, _;
7962
7962
  return K(this, function(k) {
7963
7963
  switch (k.label) {
7964
7964
  case 0:
7965
- return (o = this.performanceClient) === null || o === void 0 || o.addQueueMeasurement(b.RefreshTokenClientExecuteTokenRequest, t.correlationId), s = (i = this.performanceClient) === null || i === void 0 ? void 0 : i.startMeasurement(b.RefreshTokenClientExecuteTokenRequest, t.correlationId), (a = this.performanceClient) === null || a === void 0 || a.setPreQueueTime(b.RefreshTokenClientCreateTokenRequestBody, t.correlationId), u = this.createTokenQueryParameters(t), p = W.appendQueryString(r.tokenEndpoint, u), [4, this.createTokenRequestBody(t)];
7965
+ return (o = this.performanceClient) === null || o === void 0 || o.addQueueMeasurement(b.RefreshTokenClientExecuteTokenRequest, t.correlationId), s = (i = this.performanceClient) === null || i === void 0 ? void 0 : i.startMeasurement(b.RefreshTokenClientExecuteTokenRequest, t.correlationId), (a = this.performanceClient) === null || a === void 0 || a.setPreQueueTime(b.RefreshTokenClientCreateTokenRequestBody, t.correlationId), d = this.createTokenQueryParameters(t), p = W.appendQueryString(r.tokenEndpoint, d), [4, this.createTokenRequestBody(t)];
7966
7966
  case 1:
7967
- return d = k.sent(), f = this.createTokenRequestHeaders(t.ccsCredential), _ = {
7967
+ return u = k.sent(), f = this.createTokenRequestHeaders(t.ccsCredential), _ = {
7968
7968
  clientId: this.config.authOptions.clientId,
7969
7969
  authority: r.canonicalAuthority,
7970
7970
  scopes: t.scopes,
@@ -7974,7 +7974,7 @@ var oo = (
7974
7974
  resourceRequestUri: t.resourceRequestUri,
7975
7975
  shrClaims: t.shrClaims,
7976
7976
  sshKid: t.sshKid
7977
- }, [2, this.executePostToTokenEndpoint(p, d, f, _).then(function(E) {
7977
+ }, [2, this.executePostToTokenEndpoint(p, u, f, _).then(function(E) {
7978
7978
  return s == null || s.endMeasurement({
7979
7979
  success: !0
7980
7980
  }), E;
@@ -7989,39 +7989,39 @@ var oo = (
7989
7989
  }, e.prototype.createTokenRequestBody = function(t) {
7990
7990
  var r, o, i;
7991
7991
  return j(this, void 0, void 0, function() {
7992
- var a, s, u, p, d, f, _;
7992
+ var a, s, d, p, u, f, _;
7993
7993
  return K(this, function(k) {
7994
7994
  switch (k.label) {
7995
7995
  case 0:
7996
- return (r = this.performanceClient) === null || r === void 0 || r.addQueueMeasurement(b.RefreshTokenClientCreateTokenRequestBody, t.correlationId), a = t.correlationId, s = (o = this.performanceClient) === null || o === void 0 ? void 0 : o.startMeasurement(b.BaseClientCreateTokenRequestHeaders, a), u = new Xt(), u.addClientId(this.config.authOptions.clientId), u.addScopes(t.scopes), u.addGrantType(fn.REFRESH_TOKEN_GRANT), u.addClientInfo(), u.addLibraryInfo(this.config.libraryInfo), u.addApplicationTelemetry(this.config.telemetry.application), u.addThrottling(), this.serverTelemetryManager && u.addServerTelemetry(this.serverTelemetryManager), u.addCorrelationId(a), u.addRefreshToken(t.refreshToken), this.config.clientCredentials.clientSecret && u.addClientSecret(this.config.clientCredentials.clientSecret), this.config.clientCredentials.clientAssertion && (p = this.config.clientCredentials.clientAssertion, u.addClientAssertion(p.assertion), u.addClientAssertionType(p.assertionType)), t.authenticationScheme !== te.POP ? [3, 2] : (d = new Ut(this.cryptoUtils, this.performanceClient), (i = this.performanceClient) === null || i === void 0 || i.setPreQueueTime(b.PopTokenGenerateCnf, t.correlationId), [4, d.generateCnf(t)]);
7996
+ return (r = this.performanceClient) === null || r === void 0 || r.addQueueMeasurement(b.RefreshTokenClientCreateTokenRequestBody, t.correlationId), a = t.correlationId, s = (o = this.performanceClient) === null || o === void 0 ? void 0 : o.startMeasurement(b.BaseClientCreateTokenRequestHeaders, a), d = new Xt(), d.addClientId(this.config.authOptions.clientId), d.addScopes(t.scopes), d.addGrantType(fn.REFRESH_TOKEN_GRANT), d.addClientInfo(), d.addLibraryInfo(this.config.libraryInfo), d.addApplicationTelemetry(this.config.telemetry.application), d.addThrottling(), this.serverTelemetryManager && d.addServerTelemetry(this.serverTelemetryManager), d.addCorrelationId(a), d.addRefreshToken(t.refreshToken), this.config.clientCredentials.clientSecret && d.addClientSecret(this.config.clientCredentials.clientSecret), this.config.clientCredentials.clientAssertion && (p = this.config.clientCredentials.clientAssertion, d.addClientAssertion(p.assertion), d.addClientAssertionType(p.assertionType)), t.authenticationScheme !== te.POP ? [3, 2] : (u = new Ut(this.cryptoUtils, this.performanceClient), (i = this.performanceClient) === null || i === void 0 || i.setPreQueueTime(b.PopTokenGenerateCnf, t.correlationId), [4, u.generateCnf(t)]);
7997
7997
  case 1:
7998
- return f = k.sent(), u.addPopToken(f.reqCnfString), [3, 3];
7998
+ return f = k.sent(), d.addPopToken(f.reqCnfString), [3, 3];
7999
7999
  case 2:
8000
8000
  if (t.authenticationScheme === te.SSH)
8001
8001
  if (t.sshJwk)
8002
- u.addSshJwk(t.sshJwk);
8002
+ d.addSshJwk(t.sshJwk);
8003
8003
  else
8004
8004
  throw s == null || s.endMeasurement({
8005
8005
  success: !1
8006
8006
  }), ie.createMissingSshJwkError();
8007
8007
  k.label = 3;
8008
8008
  case 3:
8009
- if ((!L.isEmptyObj(t.claims) || this.config.authOptions.clientCapabilities && this.config.authOptions.clientCapabilities.length > 0) && u.addClaims(t.claims, this.config.authOptions.clientCapabilities), this.config.systemOptions.preventCorsPreflight && t.ccsCredential)
8009
+ if ((!L.isEmptyObj(t.claims) || this.config.authOptions.clientCapabilities && this.config.authOptions.clientCapabilities.length > 0) && d.addClaims(t.claims, this.config.authOptions.clientCapabilities), this.config.systemOptions.preventCorsPreflight && t.ccsCredential)
8010
8010
  switch (t.ccsCredential.type) {
8011
8011
  case Be.HOME_ACCOUNT_ID:
8012
8012
  try {
8013
- _ = Rt(t.ccsCredential.credential), u.addCcsOid(_);
8013
+ _ = Rt(t.ccsCredential.credential), d.addCcsOid(_);
8014
8014
  } catch (E) {
8015
8015
  this.logger.verbose("Could not parse home account ID for CCS Header: " + E);
8016
8016
  }
8017
8017
  break;
8018
8018
  case Be.UPN:
8019
- u.addCcsUpn(t.ccsCredential.credential);
8019
+ d.addCcsUpn(t.ccsCredential.credential);
8020
8020
  break;
8021
8021
  }
8022
8022
  return s == null || s.endMeasurement({
8023
8023
  success: !0
8024
- }), [2, u.createQueryString()];
8024
+ }), [2, d.createQueryString()];
8025
8025
  }
8026
8026
  });
8027
8027
  });
@@ -8060,9 +8060,9 @@ var Oi = (
8060
8060
  }, e.prototype.acquireCachedToken = function(t) {
8061
8061
  var r, o, i, a, s;
8062
8062
  return j(this, void 0, void 0, function() {
8063
- var u, p;
8064
- return K(this, function(d) {
8065
- switch (d.label) {
8063
+ var d, p;
8064
+ return K(this, function(u) {
8065
+ switch (u.label) {
8066
8066
  case 0:
8067
8067
  if (!t)
8068
8068
  throw ie.createEmptyTokenRequestError();
@@ -8072,7 +8072,7 @@ var Oi = (
8072
8072
  throw (o = this.serverTelemetryManager) === null || o === void 0 || o.setCacheOutcome(ht.CLAIMS_REQUESTED_CACHE_SKIPPED), this.logger.info("SilentFlowClient:acquireCachedToken - Skipping cache because claims-based caching is disabled and claims were requested."), O.createRefreshRequiredError();
8073
8073
  if (!t.account)
8074
8074
  throw O.createNoAccountInSilentRequestError();
8075
- if (u = t.authority || this.authority.getPreferredCache(), p = this.cacheManager.readCacheRecord(t.account, t, u), p.accessToken) {
8075
+ if (d = t.authority || this.authority.getPreferredCache(), p = this.cacheManager.readCacheRecord(t.account, t, d), p.accessToken) {
8076
8076
  if (Ke.wasClockTurnedBack(p.accessToken.cachedAt) || Ke.isTokenExpired(p.accessToken.expiresOn, this.config.systemOptions.tokenRenewalOffsetSeconds))
8077
8077
  throw (a = this.serverTelemetryManager) === null || a === void 0 || a.setCacheOutcome(ht.CACHED_ACCESS_TOKEN_EXPIRED), this.logger.info("SilentFlowClient:acquireCachedToken - Cached access token is expired or will expire within " + this.config.systemOptions.tokenRenewalOffsetSeconds + " seconds."), O.createRefreshRequiredError();
8078
8078
  if (p.accessToken.refreshOn && Ke.isTokenExpired(p.accessToken.refreshOn, 0))
@@ -8081,7 +8081,7 @@ var Oi = (
8081
8081
  throw (i = this.serverTelemetryManager) === null || i === void 0 || i.setCacheOutcome(ht.NO_CACHED_ACCESS_TOKEN), this.logger.info("SilentFlowClient:acquireCachedToken - No access token found in cache for the given properties."), O.createRefreshRequiredError();
8082
8082
  return this.config.serverTelemetryManager && this.config.serverTelemetryManager.incrementCacheHits(), [4, this.generateResultFromCacheRecord(p, t)];
8083
8083
  case 1:
8084
- return [2, d.sent()];
8084
+ return [2, u.sent()];
8085
8085
  }
8086
8086
  });
8087
8087
  });
@@ -8156,31 +8156,31 @@ var Bi = (
8156
8156
  return n.prototype.detectRegion = function(e, t) {
8157
8157
  var r, o, i, a;
8158
8158
  return j(this, void 0, void 0, function() {
8159
- var s, u, p, d, f;
8159
+ var s, d, p, u, f;
8160
8160
  return K(this, function(_) {
8161
8161
  switch (_.label) {
8162
8162
  case 0:
8163
8163
  if ((r = this.performanceClient) === null || r === void 0 || r.addQueueMeasurement(b.RegionDiscoveryDetectRegion, this.correlationId), s = e, s)
8164
8164
  return [3, 8];
8165
- u = n.IMDS_OPTIONS, _.label = 1;
8165
+ d = n.IMDS_OPTIONS, _.label = 1;
8166
8166
  case 1:
8167
- return _.trys.push([1, 6, , 7]), (o = this.performanceClient) === null || o === void 0 || o.setPreQueueTime(b.RegionDiscoveryGetRegionFromIMDS, this.correlationId), [4, this.getRegionFromIMDS(g.IMDS_VERSION, u)];
8167
+ return _.trys.push([1, 6, , 7]), (o = this.performanceClient) === null || o === void 0 || o.setPreQueueTime(b.RegionDiscoveryGetRegionFromIMDS, this.correlationId), [4, this.getRegionFromIMDS(g.IMDS_VERSION, d)];
8168
8168
  case 2:
8169
- return p = _.sent(), p.status === At.httpSuccess && (s = p.body, t.region_source = dt.IMDS), p.status !== At.httpBadRequest ? [3, 5] : ((i = this.performanceClient) === null || i === void 0 || i.setPreQueueTime(b.RegionDiscoveryGetCurrentVersion, this.correlationId), [4, this.getCurrentVersion(u)]);
8169
+ return p = _.sent(), p.status === At.httpSuccess && (s = p.body, t.region_source = ut.IMDS), p.status !== At.httpBadRequest ? [3, 5] : ((i = this.performanceClient) === null || i === void 0 || i.setPreQueueTime(b.RegionDiscoveryGetCurrentVersion, this.correlationId), [4, this.getCurrentVersion(d)]);
8170
8170
  case 3:
8171
- return d = _.sent(), d ? ((a = this.performanceClient) === null || a === void 0 || a.setPreQueueTime(b.RegionDiscoveryGetRegionFromIMDS, this.correlationId), [4, this.getRegionFromIMDS(d, u)]) : (t.region_source = dt.FAILED_AUTO_DETECTION, [2, null]);
8171
+ return u = _.sent(), u ? ((a = this.performanceClient) === null || a === void 0 || a.setPreQueueTime(b.RegionDiscoveryGetRegionFromIMDS, this.correlationId), [4, this.getRegionFromIMDS(u, d)]) : (t.region_source = ut.FAILED_AUTO_DETECTION, [2, null]);
8172
8172
  case 4:
8173
- f = _.sent(), f.status === At.httpSuccess && (s = f.body, t.region_source = dt.IMDS), _.label = 5;
8173
+ f = _.sent(), f.status === At.httpSuccess && (s = f.body, t.region_source = ut.IMDS), _.label = 5;
8174
8174
  case 5:
8175
8175
  return [3, 7];
8176
8176
  case 6:
8177
- return _.sent(), t.region_source = dt.FAILED_AUTO_DETECTION, [2, null];
8177
+ return _.sent(), t.region_source = ut.FAILED_AUTO_DETECTION, [2, null];
8178
8178
  case 7:
8179
8179
  return [3, 9];
8180
8180
  case 8:
8181
- t.region_source = dt.ENVIRONMENT_VARIABLE, _.label = 9;
8181
+ t.region_source = ut.ENVIRONMENT_VARIABLE, _.label = 9;
8182
8182
  case 9:
8183
- return s || (t.region_source = dt.FAILED_AUTO_DETECTION), [2, s || null];
8183
+ return s || (t.region_source = ut.FAILED_AUTO_DETECTION), [2, s || null];
8184
8184
  }
8185
8185
  });
8186
8186
  });
@@ -8378,13 +8378,13 @@ var rn = (
8378
8378
  return e.replace(/{tenant}|{tenantid}/g, this.tenant);
8379
8379
  }, n.prototype.replacePath = function(e) {
8380
8380
  var t = this, r = e, o = new W(this.metadata.canonical_authority), i = o.getUrlComponents(), a = i.PathSegments, s = this.canonicalAuthorityUrlComponents.PathSegments;
8381
- return s.forEach(function(u, p) {
8382
- var d = a[p];
8381
+ return s.forEach(function(d, p) {
8382
+ var u = a[p];
8383
8383
  if (p === 0 && t.canReplaceTenant(i)) {
8384
8384
  var f = new W(t.metadata.authorization_endpoint).getUrlComponents().PathSegments[0];
8385
- d !== f && (t.logger.verbose("Replacing tenant domain name " + d + " with id " + f), d = f);
8385
+ u !== f && (t.logger.verbose("Replacing tenant domain name " + u + " with id " + f), u = f);
8386
8386
  }
8387
- u !== d && (r = r.replace("/" + d + "/", "/" + u + "/"));
8387
+ d !== u && (r = r.replace("/" + u + "/", "/" + d + "/"));
8388
8388
  }), this.replaceTenant(r);
8389
8389
  }, Object.defineProperty(n.prototype, "defaultOpenIdConfigurationEndpoint", {
8390
8390
  /**
@@ -8401,14 +8401,14 @@ var rn = (
8401
8401
  var e, t, r;
8402
8402
  return j(this, void 0, void 0, function() {
8403
8403
  var o, i, a, s;
8404
- return K(this, function(u) {
8405
- switch (u.label) {
8404
+ return K(this, function(d) {
8405
+ switch (d.label) {
8406
8406
  case 0:
8407
8407
  return (e = this.performanceClient) === null || e === void 0 || e.addQueueMeasurement(b.AuthorityResolveEndpointsAsync, this.correlationId), o = this.cacheManager.getAuthorityMetadataByAlias(this.hostnameAndPort), o || (o = new Qn(), o.updateCanonicalAuthority(this.canonicalAuthority)), (t = this.performanceClient) === null || t === void 0 || t.setPreQueueTime(b.AuthorityUpdateCloudDiscoveryMetadata, this.correlationId), [4, this.updateCloudDiscoveryMetadata(o)];
8408
8408
  case 1:
8409
- return i = u.sent(), this.canonicalAuthority = this.canonicalAuthority.replace(this.hostnameAndPort, o.preferred_network), (r = this.performanceClient) === null || r === void 0 || r.setPreQueueTime(b.AuthorityUpdateEndpointMetadata, this.correlationId), [4, this.updateEndpointMetadata(o)];
8409
+ return i = d.sent(), this.canonicalAuthority = this.canonicalAuthority.replace(this.hostnameAndPort, o.preferred_network), (r = this.performanceClient) === null || r === void 0 || r.setPreQueueTime(b.AuthorityUpdateEndpointMetadata, this.correlationId), [4, this.updateEndpointMetadata(o)];
8410
8410
  case 2:
8411
- return a = u.sent(), i !== Fe.CACHE && a !== Fe.CACHE && (o.resetExpiresAt(), o.updateCanonicalAuthority(this.canonicalAuthority)), s = this.cacheManager.generateAuthorityMetadataCacheKey(o.preferred_cache), this.cacheManager.setAuthorityMetadata(s, o), this.metadata = o, [
8411
+ return a = d.sent(), i !== Fe.CACHE && a !== Fe.CACHE && (o.resetExpiresAt(), o.updateCanonicalAuthority(this.canonicalAuthority)), s = this.cacheManager.generateAuthorityMetadataCacheKey(o.preferred_cache), this.cacheManager.setAuthorityMetadata(s, o), this.metadata = o, [
8412
8412
  2
8413
8413
  /*return*/
8414
8414
  ];
@@ -8418,21 +8418,21 @@ var rn = (
8418
8418
  }, n.prototype.updateEndpointMetadata = function(e) {
8419
8419
  var t, r, o, i, a, s;
8420
8420
  return j(this, void 0, void 0, function() {
8421
- var u, p;
8422
- return K(this, function(d) {
8423
- switch (d.label) {
8421
+ var d, p;
8422
+ return K(this, function(u) {
8423
+ switch (u.label) {
8424
8424
  case 0:
8425
- return (t = this.performanceClient) === null || t === void 0 || t.addQueueMeasurement(b.AuthorityUpdateEndpointMetadata, this.correlationId), u = this.getEndpointMetadataFromConfig(), u ? (e.updateEndpointMetadata(u, !1), [2, Fe.CONFIG]) : this.isAuthoritySameType(e) && e.endpointsFromNetwork && !e.isExpired() ? [2, Fe.CACHE] : ((r = this.performanceClient) === null || r === void 0 || r.setPreQueueTime(b.AuthorityGetEndpointMetadataFromNetwork, this.correlationId), [4, this.getEndpointMetadataFromNetwork()]);
8425
+ return (t = this.performanceClient) === null || t === void 0 || t.addQueueMeasurement(b.AuthorityUpdateEndpointMetadata, this.correlationId), d = this.getEndpointMetadataFromConfig(), d ? (e.updateEndpointMetadata(d, !1), [2, Fe.CONFIG]) : this.isAuthoritySameType(e) && e.endpointsFromNetwork && !e.isExpired() ? [2, Fe.CACHE] : ((r = this.performanceClient) === null || r === void 0 || r.setPreQueueTime(b.AuthorityGetEndpointMetadataFromNetwork, this.correlationId), [4, this.getEndpointMetadataFromNetwork()]);
8426
8426
  case 1:
8427
- return u = d.sent(), u ? !((o = this.authorityOptions.azureRegionConfiguration) === null || o === void 0) && o.azureRegion ? ((i = this.performanceClient) === null || i === void 0 || i.setPreQueueTime(b.AuthorityUpdateMetadataWithRegionalInformation, this.correlationId), [4, this.updateMetadataWithRegionalInformation(u)]) : [3, 3] : [3, 4];
8427
+ return d = u.sent(), d ? !((o = this.authorityOptions.azureRegionConfiguration) === null || o === void 0) && o.azureRegion ? ((i = this.performanceClient) === null || i === void 0 || i.setPreQueueTime(b.AuthorityUpdateMetadataWithRegionalInformation, this.correlationId), [4, this.updateMetadataWithRegionalInformation(d)]) : [3, 3] : [3, 4];
8428
8428
  case 2:
8429
- u = d.sent(), d.label = 3;
8429
+ d = u.sent(), u.label = 3;
8430
8430
  case 3:
8431
- return e.updateEndpointMetadata(u, !0), [2, Fe.NETWORK];
8431
+ return e.updateEndpointMetadata(d, !0), [2, Fe.NETWORK];
8432
8432
  case 4:
8433
8433
  return p = this.getEndpointMetadataFromHardcodedValues(), p && !this.authorityOptions.skipAuthorityMetadataCache ? !((a = this.authorityOptions.azureRegionConfiguration) === null || a === void 0) && a.azureRegion ? ((s = this.performanceClient) === null || s === void 0 || s.setPreQueueTime(b.AuthorityUpdateMetadataWithRegionalInformation, this.correlationId), [4, this.updateMetadataWithRegionalInformation(p)]) : [3, 6] : [3, 7];
8434
8434
  case 5:
8435
- p = d.sent(), d.label = 6;
8435
+ p = u.sent(), u.label = 6;
8436
8436
  case 6:
8437
8437
  return e.updateEndpointMetadata(p, !1), [2, Fe.HARDCODED_VALUES];
8438
8438
  case 7:
@@ -8479,14 +8479,14 @@ var rn = (
8479
8479
  var t, r, o, i;
8480
8480
  return j(this, void 0, void 0, function() {
8481
8481
  var a, s;
8482
- return K(this, function(u) {
8483
- switch (u.label) {
8482
+ return K(this, function(d) {
8483
+ switch (d.label) {
8484
8484
  case 0:
8485
8485
  return (t = this.performanceClient) === null || t === void 0 || t.addQueueMeasurement(b.AuthorityUpdateMetadataWithRegionalInformation, this.correlationId), a = (r = this.authorityOptions.azureRegionConfiguration) === null || r === void 0 ? void 0 : r.azureRegion, a ? a !== g.AZURE_REGION_AUTO_DISCOVER_FLAG ? (this.regionDiscoveryMetadata.region_outcome = Jt.CONFIGURED_NO_AUTO_DETECTION, this.regionDiscoveryMetadata.region_used = a, [2, n.replaceWithRegionalInformation(e, a)]) : ((o = this.performanceClient) === null || o === void 0 || o.setPreQueueTime(b.RegionDiscoveryDetectRegion, this.correlationId), [4, this.regionDiscovery.detectRegion((i = this.authorityOptions.azureRegionConfiguration) === null || i === void 0 ? void 0 : i.environmentRegion, this.regionDiscoveryMetadata)]) : [3, 2];
8486
8486
  case 1:
8487
- if (s = u.sent(), s)
8487
+ if (s = d.sent(), s)
8488
8488
  return this.regionDiscoveryMetadata.region_outcome = Jt.AUTO_DETECTION_REQUESTED_SUCCESSFUL, this.regionDiscoveryMetadata.region_used = s, [2, n.replaceWithRegionalInformation(e, s)];
8489
- this.regionDiscoveryMetadata.region_outcome = Jt.AUTO_DETECTION_REQUESTED_FAILED, u.label = 2;
8489
+ this.regionDiscoveryMetadata.region_outcome = Jt.AUTO_DETECTION_REQUESTED_FAILED, d.label = 2;
8490
8490
  case 2:
8491
8491
  return [2, e];
8492
8492
  }
@@ -8528,15 +8528,15 @@ var rn = (
8528
8528
  }, n.prototype.getCloudDiscoveryMetadataFromNetwork = function() {
8529
8529
  var e;
8530
8530
  return j(this, void 0, void 0, function() {
8531
- var t, r, o, i, a, s, u, p;
8532
- return K(this, function(d) {
8533
- switch (d.label) {
8531
+ var t, r, o, i, a, s, d, p;
8532
+ return K(this, function(u) {
8533
+ switch (u.label) {
8534
8534
  case 0:
8535
- (e = this.performanceClient) === null || e === void 0 || e.addQueueMeasurement(b.AuthorityGetCloudDiscoveryMetadataFromNetwork, this.correlationId), t = "" + g.AAD_INSTANCE_DISCOVERY_ENDPT + this.canonicalAuthority + "oauth2/v2.0/authorize", r = {}, o = null, d.label = 1;
8535
+ (e = this.performanceClient) === null || e === void 0 || e.addQueueMeasurement(b.AuthorityGetCloudDiscoveryMetadataFromNetwork, this.correlationId), t = "" + g.AAD_INSTANCE_DISCOVERY_ENDPT + this.canonicalAuthority + "oauth2/v2.0/authorize", r = {}, o = null, u.label = 1;
8536
8536
  case 1:
8537
- return d.trys.push([1, 3, , 4]), [4, this.networkInterface.sendGetRequestAsync(t, r)];
8537
+ return u.trys.push([1, 3, , 4]), [4, this.networkInterface.sendGetRequestAsync(t, r)];
8538
8538
  case 2:
8539
- if (i = d.sent(), a = void 0, s = void 0, Ui(i.body))
8539
+ if (i = u.sent(), a = void 0, s = void 0, Ui(i.body))
8540
8540
  a = i.body, s = a.metadata, this.logger.verbosePii("tenant_discovery_endpoint is: " + a.tenant_discovery_endpoint);
8541
8541
  else if (xi(i.body)) {
8542
8542
  if (this.logger.warning("A CloudInstanceDiscoveryErrorResponse was returned. The cloud instance discovery network request's status code is: " + i.status), a = i.body, a.error === g.INVALID_INSTANCE)
@@ -8546,9 +8546,9 @@ var rn = (
8546
8546
  return this.logger.error("AAD did not return a CloudInstanceDiscoveryResponse or CloudInstanceDiscoveryErrorResponse"), [2, null];
8547
8547
  return this.logger.verbose("Attempting to find a match between the developer's authority and the CloudInstanceDiscoveryMetadata returned from the network request."), o = n.getCloudDiscoveryMetadataFromNetworkResponse(s, this.hostnameAndPort), [3, 4];
8548
8548
  case 3:
8549
- return u = d.sent(), u instanceof D ? this.logger.error(`There was a network error while attempting to get the cloud discovery instance metadata.
8550
- Error: ` + u.errorCode + `
8551
- Error Description: ` + u.errorMessage) : (p = u, this.logger.error(`A non-MSALJS error was thrown while attempting to get the cloud instance discovery metadata.
8549
+ return d = u.sent(), d instanceof D ? this.logger.error(`There was a network error while attempting to get the cloud discovery instance metadata.
8550
+ Error: ` + d.errorCode + `
8551
+ Error Description: ` + d.errorMessage) : (p = d, this.logger.error(`A non-MSALJS error was thrown while attempting to get the cloud instance discovery metadata.
8552
8552
  Error: ` + p.name + `
8553
8553
  Error Description: ` + p.message)), [2, null];
8554
8554
  case 4:
@@ -8624,17 +8624,17 @@ var bn = (
8624
8624
  }
8625
8625
  return n.createDiscoveredInstance = function(e, t, r, o, i, a, s) {
8626
8626
  return j(this, void 0, void 0, function() {
8627
- var u, p, d;
8627
+ var d, p, u;
8628
8628
  return K(this, function(f) {
8629
8629
  switch (f.label) {
8630
8630
  case 0:
8631
- a == null || a.addQueueMeasurement(b.AuthorityFactoryCreateDiscoveredInstance, s), u = rn.transformCIAMAuthority(e), p = n.createInstance(u, t, r, o, i, a, s), f.label = 1;
8631
+ a == null || a.addQueueMeasurement(b.AuthorityFactoryCreateDiscoveredInstance, s), d = rn.transformCIAMAuthority(e), p = n.createInstance(d, t, r, o, i, a, s), f.label = 1;
8632
8632
  case 1:
8633
8633
  return f.trys.push([1, 3, , 4]), a == null || a.setPreQueueTime(b.AuthorityResolveEndpointsAsync, s), [4, p.resolveEndpointsAsync()];
8634
8634
  case 2:
8635
8635
  return f.sent(), [2, p];
8636
8636
  case 3:
8637
- throw d = f.sent(), O.createEndpointDiscoveryIncompleteError(d);
8637
+ throw u = f.sent(), O.createEndpointDiscoveryIncompleteError(u);
8638
8638
  case 4:
8639
8639
  return [
8640
8640
  2
@@ -8689,7 +8689,7 @@ var Di = {
8689
8689
  }
8690
8690
  };
8691
8691
  /*! @azure/msal-common v13.3.1 2023-10-27 */
8692
- var un = {
8692
+ var dn = {
8693
8693
  missingKidError: {
8694
8694
  code: "missing_kid_error",
8695
8695
  desc: "The JOSE Header for the requested JWT, JWS or JWK object requires a keyId to be configured as the 'kid' header claim. No 'kid' value was provided."
@@ -8707,9 +8707,9 @@ var un = {
8707
8707
  return o.name = "JoseHeaderError", Object.setPrototypeOf(o, e.prototype), o;
8708
8708
  }
8709
8709
  return e.createMissingKidError = function() {
8710
- return new e(un.missingKidError.code, un.missingKidError.desc);
8710
+ return new e(dn.missingKidError.code, dn.missingKidError.desc);
8711
8711
  }, e.createMissingAlgError = function() {
8712
- return new e(un.missingAlgError.code, un.missingAlgError.desc);
8712
+ return new e(dn.missingAlgError.code, dn.missingAlgError.desc);
8713
8713
  }, e;
8714
8714
  }(D)
8715
8715
  );
@@ -8768,8 +8768,8 @@ var qi = (
8768
8768
  }, n.maxErrorsToSend = function(e) {
8769
8769
  var t, r = 0, o = 0, i = e.errors.length;
8770
8770
  for (t = 0; t < i; t++) {
8771
- var a = e.failedRequests[2 * t] || g.EMPTY_STRING, s = e.failedRequests[2 * t + 1] || g.EMPTY_STRING, u = e.errors[t] || g.EMPTY_STRING;
8772
- if (o += a.toString().length + s.toString().length + u.length + 3, o < ye.MAX_LAST_HEADER_BYTES)
8771
+ var a = e.failedRequests[2 * t] || g.EMPTY_STRING, s = e.failedRequests[2 * t + 1] || g.EMPTY_STRING, d = e.errors[t] || g.EMPTY_STRING;
8772
+ if (o += a.toString().length + s.toString().length + d.length + 3, o < ye.MAX_LAST_HEADER_BYTES)
8773
8773
  r += 1;
8774
8774
  else
8775
8775
  break;
@@ -8837,7 +8837,7 @@ var ao = (
8837
8837
  t || this.logger.info("PerformanceClient: No correlation id provided for " + e + ", generating", a), this.logger.trace("PerformanceClient: Performance measurement started for " + e, a);
8838
8838
  var s = this.startPerformanceMeasuremeant(e, a);
8839
8839
  s.startMeasurement();
8840
- var u = {
8840
+ var d = {
8841
8841
  eventId: this.generateId(),
8842
8842
  status: kn.InProgress,
8843
8843
  authority: this.authority,
@@ -8850,41 +8850,41 @@ var ao = (
8850
8850
  appName: (o = this.applicationTelemetry) === null || o === void 0 ? void 0 : o.appName,
8851
8851
  appVersion: (i = this.applicationTelemetry) === null || i === void 0 ? void 0 : i.appVersion
8852
8852
  };
8853
- return this.cacheEventByCorrelationId(u), {
8853
+ return this.cacheEventByCorrelationId(d), {
8854
8854
  endMeasurement: function(p) {
8855
- return r.endMeasurement(Z(Z({}, u), p), s);
8855
+ return r.endMeasurement(Z(Z({}, d), p), s);
8856
8856
  },
8857
8857
  discardMeasurement: function() {
8858
- return r.discardMeasurements(u.correlationId);
8858
+ return r.discardMeasurements(d.correlationId);
8859
8859
  },
8860
8860
  addStaticFields: function(p) {
8861
- return r.addStaticFields(p, u.correlationId);
8861
+ return r.addStaticFields(p, d.correlationId);
8862
8862
  },
8863
8863
  increment: function(p) {
8864
- return r.increment(p, u.correlationId);
8864
+ return r.increment(p, d.correlationId);
8865
8865
  },
8866
8866
  measurement: s,
8867
- event: u
8867
+ event: d
8868
8868
  };
8869
8869
  }, n.prototype.endMeasurement = function(e, t) {
8870
8870
  var r = this, o, i, a = this.eventsByCorrelationId.get(e.correlationId);
8871
8871
  if (!a)
8872
8872
  return this.logger.trace("PerformanceClient: Measurement not found for " + e.eventId, e.correlationId), null;
8873
- var s = e.eventId === a.eventId, u = {
8873
+ var s = e.eventId === a.eventId, d = {
8874
8874
  totalQueueTime: 0,
8875
8875
  totalQueueCount: 0,
8876
8876
  manuallyCompletedCount: 0
8877
8877
  };
8878
- s ? (u = this.getQueueInfo(e.correlationId), this.discardCache(a.correlationId)) : (o = a.incompleteSubMeasurements) === null || o === void 0 || o.delete(e.eventId), t == null || t.endMeasurement();
8878
+ s ? (d = this.getQueueInfo(e.correlationId), this.discardCache(a.correlationId)) : (o = a.incompleteSubMeasurements) === null || o === void 0 || o.delete(e.eventId), t == null || t.endMeasurement();
8879
8879
  var p = t == null ? void 0 : t.flushMeasurement();
8880
8880
  if (!p)
8881
8881
  return this.logger.trace("PerformanceClient: Performance measurement not taken", a.correlationId), null;
8882
8882
  if (this.logger.trace("PerformanceClient: Performance measurement ended for " + e.name + ": " + p + " ms", e.correlationId), !s)
8883
8883
  return a[e.name + "DurationMs"] = Math.floor(p), Z({}, a);
8884
- var d = Z(Z({}, a), e), f = 0;
8885
- return (i = d.incompleteSubMeasurements) === null || i === void 0 || i.forEach(function(_) {
8886
- r.logger.trace("PerformanceClient: Incomplete submeasurement " + _.name + " found for " + e.name, d.correlationId), f++;
8887
- }), d.incompleteSubMeasurements = void 0, d = Z(Z({}, d), { durationMs: Math.round(p), queuedTimeMs: u.totalQueueTime, queuedCount: u.totalQueueCount, queuedManuallyCompletedCount: u.manuallyCompletedCount, status: kn.Completed, incompleteSubsCount: f }), this.truncateIntegralFields(d, this.getIntFields()), this.emitEvents([d], e.correlationId), d;
8884
+ var u = Z(Z({}, a), e), f = 0;
8885
+ return (i = u.incompleteSubMeasurements) === null || i === void 0 || i.forEach(function(_) {
8886
+ r.logger.trace("PerformanceClient: Incomplete submeasurement " + _.name + " found for " + e.name, u.correlationId), f++;
8887
+ }), u.incompleteSubMeasurements = void 0, u = Z(Z({}, u), { durationMs: Math.round(p), queuedTimeMs: d.totalQueueTime, queuedCount: d.totalQueueCount, queuedManuallyCompletedCount: d.manuallyCompletedCount, status: kn.Completed, incompleteSubsCount: f }), this.truncateIntegralFields(u, this.getIntFields()), this.emitEvents([u], e.correlationId), u;
8888
8888
  }, n.prototype.addStaticFields = function(e, t) {
8889
8889
  this.logger.trace("PerformanceClient: Updating static fields");
8890
8890
  var r = this.eventsByCorrelationId.get(t);
@@ -9497,7 +9497,7 @@ var $n = (
9497
9497
  return this.internalStorage;
9498
9498
  }
9499
9499
  }, e.prototype.migrateCacheEntries = function() {
9500
- var t = this, r = g.CACHE_PREFIX + "." + he.ID_TOKEN, o = g.CACHE_PREFIX + "." + he.CLIENT_INFO, i = g.CACHE_PREFIX + "." + he.ERROR, a = g.CACHE_PREFIX + "." + he.ERROR_DESC, s = this.browserStorage.getItem(r), u = this.browserStorage.getItem(o), p = this.browserStorage.getItem(i), d = this.browserStorage.getItem(a), f = [s, u, p, d], _ = [he.ID_TOKEN, he.CLIENT_INFO, he.ERROR, he.ERROR_DESC];
9500
+ var t = this, r = g.CACHE_PREFIX + "." + he.ID_TOKEN, o = g.CACHE_PREFIX + "." + he.CLIENT_INFO, i = g.CACHE_PREFIX + "." + he.ERROR, a = g.CACHE_PREFIX + "." + he.ERROR_DESC, s = this.browserStorage.getItem(r), d = this.browserStorage.getItem(o), p = this.browserStorage.getItem(i), u = this.browserStorage.getItem(a), f = [s, d, p, u], _ = [he.ID_TOKEN, he.CLIENT_INFO, he.ERROR, he.ERROR_DESC];
9501
9501
  _.forEach(function(k, E) {
9502
9502
  return t.migrateCacheEntry(k, f[E]);
9503
9503
  });
@@ -9516,33 +9516,33 @@ var $n = (
9516
9516
  if (t.isCredentialKey(a)) {
9517
9517
  var s = t.getItem(a);
9518
9518
  if (s) {
9519
- var u = t.validateAndParseJson(s);
9520
- if (u && u.hasOwnProperty("credentialType"))
9521
- switch (u.credentialType) {
9519
+ var d = t.validateAndParseJson(s);
9520
+ if (d && d.hasOwnProperty("credentialType"))
9521
+ switch (d.credentialType) {
9522
9522
  case H.ID_TOKEN:
9523
- if (gt.isIdTokenEntity(u)) {
9523
+ if (gt.isIdTokenEntity(d)) {
9524
9524
  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");
9525
- var p = Me.toObject(new gt(), u), d = t.updateCredentialCacheKey(a, p);
9526
- t.addTokenKey(d, H.ID_TOKEN);
9525
+ var p = Me.toObject(new gt(), d), u = t.updateCredentialCacheKey(a, p);
9526
+ t.addTokenKey(u, H.ID_TOKEN);
9527
9527
  return;
9528
9528
  } else
9529
9529
  t.logger.trace("BrowserCacheManager:createKeyMaps - key found matching idToken schema with value containing idToken credentialType field but value failed IdTokenEntity validation, skipping."), t.logger.tracePii("BrowserCacheManager:createKeyMaps - failed idToken validation on key: " + a);
9530
9530
  break;
9531
9531
  case H.ACCESS_TOKEN:
9532
9532
  case H.ACCESS_TOKEN_WITH_AUTH_SCHEME:
9533
- if (_t.isAccessTokenEntity(u)) {
9533
+ if (_t.isAccessTokenEntity(d)) {
9534
9534
  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");
9535
- var f = Me.toObject(new _t(), u), d = t.updateCredentialCacheKey(a, f);
9536
- t.addTokenKey(d, H.ACCESS_TOKEN);
9535
+ var f = Me.toObject(new _t(), d), u = t.updateCredentialCacheKey(a, f);
9536
+ t.addTokenKey(u, H.ACCESS_TOKEN);
9537
9537
  return;
9538
9538
  } else
9539
9539
  t.logger.trace("BrowserCacheManager:createKeyMaps - key found matching accessToken schema with value containing accessToken credentialType field but value failed AccessTokenEntity validation, skipping."), t.logger.tracePii("BrowserCacheManager:createKeyMaps - failed accessToken validation on key: " + a);
9540
9540
  break;
9541
9541
  case H.REFRESH_TOKEN:
9542
- if (Pt.isRefreshTokenEntity(u)) {
9542
+ if (Pt.isRefreshTokenEntity(d)) {
9543
9543
  t.logger.trace("BrowserCacheManager:createKeyMaps - refreshToken found, saving key to token key map"), t.logger.tracePii("BrowserCacheManager:createKeyMaps - refreshToken with key: " + a + " found, saving key to token key map");
9544
- var _ = Me.toObject(new Pt(), u), d = t.updateCredentialCacheKey(a, _);
9545
- t.addTokenKey(d, H.REFRESH_TOKEN);
9544
+ var _ = Me.toObject(new Pt(), d), u = t.updateCredentialCacheKey(a, _);
9545
+ t.addTokenKey(u, H.REFRESH_TOKEN);
9546
9546
  return;
9547
9547
  } else
9548
9548
  t.logger.trace("BrowserCacheManager:createKeyMaps - key found matching refreshToken schema with value containing refreshToken credentialType field but value failed RefreshTokenEntity validation, skipping."), t.logger.tracePii("BrowserCacheManager:createKeyMaps - failed refreshToken validation on key: " + a);
@@ -9903,21 +9903,21 @@ var $n = (
9903
9903
  this.logger.trace("BrowserCacheManager.updateCacheEntries called");
9904
9904
  var s = this.generateStateKey(t);
9905
9905
  this.setTemporaryCache(s, t, !1);
9906
- var u = this.generateNonceKey(t);
9907
- this.setTemporaryCache(u, r, !1);
9906
+ var d = this.generateNonceKey(t);
9907
+ this.setTemporaryCache(d, r, !1);
9908
9908
  var p = this.generateAuthorityKey(t);
9909
9909
  if (this.setTemporaryCache(p, o, !1), a) {
9910
- var d = {
9910
+ var u = {
9911
9911
  credential: a.homeAccountId,
9912
9912
  type: Be.HOME_ACCOUNT_ID
9913
9913
  };
9914
- this.setTemporaryCache(J.CCS_CREDENTIAL, JSON.stringify(d), !0);
9914
+ this.setTemporaryCache(J.CCS_CREDENTIAL, JSON.stringify(u), !0);
9915
9915
  } else if (!L.isEmpty(i)) {
9916
- var d = {
9916
+ var u = {
9917
9917
  credential: i,
9918
9918
  type: Be.UPN
9919
9919
  };
9920
- this.setTemporaryCache(J.CCS_CREDENTIAL, JSON.stringify(d), !0);
9920
+ this.setTemporaryCache(J.CCS_CREDENTIAL, JSON.stringify(u), !0);
9921
9921
  }
9922
9922
  }, e.prototype.resetRequestCache = function(t) {
9923
9923
  var r = this;
@@ -10139,9 +10139,9 @@ var Qi = (
10139
10139
  ), o.setXhrHeaders(s, r), s.onload = function() {
10140
10140
  (s.status < 200 || s.status >= 300) && (t === Ze.POST ? a(M.createPostRequestFailedError("Failed with status " + s.status, e)) : a(M.createGetRequestFailedError("Failed with status " + s.status, e)));
10141
10141
  try {
10142
- var u = JSON.parse(s.responseText), p = {
10142
+ var d = JSON.parse(s.responseText), p = {
10143
10143
  headers: o.getHeaderDict(s),
10144
- body: u,
10144
+ body: d,
10145
10145
  status: s.status
10146
10146
  };
10147
10147
  i(p);
@@ -10167,14 +10167,14 @@ var Qi = (
10167
10167
  }, n.prototype.getHeaderDict = function(e) {
10168
10168
  var t = e.getAllResponseHeaders(), r = t.trim().split(/[\r\n]+/), o = {};
10169
10169
  return r.forEach(function(i) {
10170
- var a = i.split(": "), s = a.shift(), u = a.join(": ");
10171
- s && u && (o[s] = u);
10170
+ var a = i.split(": "), s = a.shift(), d = a.join(": ");
10171
+ s && d && (o[s] = d);
10172
10172
  }), o;
10173
10173
  }, n;
10174
10174
  }()
10175
10175
  );
10176
10176
  /*! @azure/msal-browser v2.38.3 2023-10-27 */
10177
- var de = (
10177
+ var ue = (
10178
10178
  /** @class */
10179
10179
  function() {
10180
10180
  function n() {
@@ -10222,8 +10222,8 @@ var de = (
10222
10222
  var co = (
10223
10223
  /** @class */
10224
10224
  function() {
10225
- function n(e, t, r, o, i, a, s, u, p) {
10226
- this.config = e, this.browserStorage = t, this.browserCrypto = r, this.networkClient = this.config.system.networkClient, this.eventHandler = i, this.navigationClient = a, this.nativeMessageHandler = u, this.correlationId = p || this.browserCrypto.createNewGuid(), this.logger = o.clone(Qe.MSAL_SKU, en, this.correlationId), this.performanceClient = s;
10225
+ function n(e, t, r, o, i, a, s, d, p) {
10226
+ this.config = e, this.browserStorage = t, this.browserCrypto = r, this.networkClient = this.config.system.networkClient, this.eventHandler = i, this.navigationClient = a, this.nativeMessageHandler = d, this.correlationId = p || this.browserCrypto.createNewGuid(), this.logger = o.clone(Qe.MSAL_SKU, en, this.correlationId), this.performanceClient = s;
10227
10227
  }
10228
10228
  return n.prototype.clearCacheOnLogout = function(e) {
10229
10229
  return T(this, void 0, void 0, function() {
@@ -10292,8 +10292,8 @@ var co = (
10292
10292
  });
10293
10293
  }, n.prototype.getRedirectUri = function(e) {
10294
10294
  this.logger.verbose("getRedirectUri called");
10295
- var t = e || this.config.auth.redirectUri || de.getCurrentUri();
10296
- return W.getAbsoluteUrl(t, de.getCurrentUri());
10295
+ var t = e || this.config.auth.redirectUri || ue.getCurrentUri();
10296
+ return W.getAbsoluteUrl(t, ue.getCurrentUri());
10297
10297
  }, n.prototype.validateRequestAuthority = function(e, t) {
10298
10298
  return T(this, void 0, void 0, function() {
10299
10299
  var r;
@@ -10379,7 +10379,7 @@ var Ft = (
10379
10379
  this.logger.verbose("logoutHint was not set and account was not passed into logout request, logoutHint will not be set");
10380
10380
  else
10381
10381
  this.logger.verbose("logoutHint will not be set since no logout request was configured");
10382
- return !t || t.postLogoutRedirectUri !== null ? t && t.postLogoutRedirectUri ? (this.logger.verbose("Setting postLogoutRedirectUri to uri set on logout request", r.correlationId), r.postLogoutRedirectUri = W.getAbsoluteUrl(t.postLogoutRedirectUri, de.getCurrentUri())) : this.config.auth.postLogoutRedirectUri === null ? this.logger.verbose("postLogoutRedirectUri configured as null and no uri set on request, not passing post logout redirect", r.correlationId) : this.config.auth.postLogoutRedirectUri ? (this.logger.verbose("Setting postLogoutRedirectUri to configured uri", r.correlationId), r.postLogoutRedirectUri = W.getAbsoluteUrl(this.config.auth.postLogoutRedirectUri, de.getCurrentUri())) : (this.logger.verbose("Setting postLogoutRedirectUri to current page", r.correlationId), r.postLogoutRedirectUri = W.getAbsoluteUrl(de.getCurrentUri(), de.getCurrentUri())) : this.logger.verbose("postLogoutRedirectUri passed as null, not setting post logout redirect uri", r.correlationId), r;
10382
+ return !t || t.postLogoutRedirectUri !== null ? t && t.postLogoutRedirectUri ? (this.logger.verbose("Setting postLogoutRedirectUri to uri set on logout request", r.correlationId), r.postLogoutRedirectUri = W.getAbsoluteUrl(t.postLogoutRedirectUri, ue.getCurrentUri())) : this.config.auth.postLogoutRedirectUri === null ? this.logger.verbose("postLogoutRedirectUri configured as null and no uri set on request, not passing post logout redirect", r.correlationId) : this.config.auth.postLogoutRedirectUri ? (this.logger.verbose("Setting postLogoutRedirectUri to configured uri", r.correlationId), r.postLogoutRedirectUri = W.getAbsoluteUrl(this.config.auth.postLogoutRedirectUri, ue.getCurrentUri())) : (this.logger.verbose("Setting postLogoutRedirectUri to current page", r.correlationId), r.postLogoutRedirectUri = W.getAbsoluteUrl(ue.getCurrentUri(), ue.getCurrentUri())) : this.logger.verbose("postLogoutRedirectUri passed as null, not setting post logout redirect uri", r.correlationId), r;
10383
10383
  }, e.prototype.getLogoutHintFromIdTokenClaims = function(t) {
10384
10384
  var r = t.idTokenClaims;
10385
10385
  if (r) {
@@ -10455,7 +10455,7 @@ var Ft = (
10455
10455
  }, e.prototype.getDiscoveredAuthority = function(t, r) {
10456
10456
  var o;
10457
10457
  return T(this, void 0, void 0, function() {
10458
- var i, a, s, u;
10458
+ var i, a, s, d;
10459
10459
  return I(this, function(p) {
10460
10460
  switch (p.label) {
10461
10461
  case 0:
@@ -10465,16 +10465,16 @@ var Ft = (
10465
10465
  cloudDiscoveryMetadata: this.config.auth.cloudDiscoveryMetadata,
10466
10466
  authorityMetadata: this.config.auth.authorityMetadata,
10467
10467
  skipAuthorityMetadataCache: this.config.auth.skipAuthorityMetadataCache
10468
- }, s = t || this.config.auth.authority, u = rn.generateAuthority(s, r || this.config.auth.azureCloudOptions), this.logger.verbose("Creating discovered authority with configured authority", this.correlationId), this.performanceClient.setPreQueueTime(b.AuthorityFactoryCreateDiscoveredInstance, this.correlationId), [4, bn.createDiscoveredInstance(u, this.config.system.networkClient, this.browserStorage, a, this.logger, this.performanceClient, this.correlationId).then(function(d) {
10468
+ }, s = t || this.config.auth.authority, d = rn.generateAuthority(s, r || this.config.auth.azureCloudOptions), this.logger.verbose("Creating discovered authority with configured authority", this.correlationId), this.performanceClient.setPreQueueTime(b.AuthorityFactoryCreateDiscoveredInstance, this.correlationId), [4, bn.createDiscoveredInstance(d, this.config.system.networkClient, this.browserStorage, a, this.logger, this.performanceClient, this.correlationId).then(function(u) {
10469
10469
  return i.endMeasurement({
10470
10470
  success: !0
10471
- }), d;
10472
- }).catch(function(d) {
10471
+ }), u;
10472
+ }).catch(function(u) {
10473
10473
  throw i.endMeasurement({
10474
- errorCode: d.errorCode,
10475
- subErrorCode: d.subError,
10474
+ errorCode: u.errorCode,
10475
+ subErrorCode: u.subError,
10476
10476
  success: !1
10477
- }), d;
10477
+ }), u;
10478
10478
  })];
10479
10479
  case 1:
10480
10480
  return [2, p.sent()];
@@ -10483,15 +10483,15 @@ var Ft = (
10483
10483
  });
10484
10484
  }, e.prototype.initializeAuthorizationRequest = function(t, r) {
10485
10485
  return T(this, void 0, void 0, function() {
10486
- var o, i, a, s, u, p, d;
10486
+ var o, i, a, s, d, p, u;
10487
10487
  return I(this, function(f) {
10488
10488
  switch (f.label) {
10489
10489
  case 0:
10490
10490
  return this.performanceClient.addQueueMeasurement(b.StandardInteractionClientInitializeAuthorizationRequest, this.correlationId), this.logger.verbose("initializeAuthorizationRequest called", this.correlationId), o = this.getRedirectUri(t.redirectUri), i = {
10491
10491
  interactionType: r
10492
- }, a = st.setRequestState(this.browserCrypto, t && t.state || g.EMPTY_STRING, i), this.performanceClient.setPreQueueTime(b.InitializeBaseRequest, this.correlationId), u = [{}], [4, this.initializeBaseRequest(t)];
10492
+ }, a = st.setRequestState(this.browserCrypto, t && t.state || g.EMPTY_STRING, i), this.performanceClient.setPreQueueTime(b.InitializeBaseRequest, this.correlationId), d = [{}], [4, this.initializeBaseRequest(t)];
10493
10493
  case 1:
10494
- return s = B.apply(void 0, [B.apply(void 0, u.concat([f.sent()])), { redirectUri: o, state: a, nonce: t.nonce || this.browserCrypto.createNewGuid(), responseMode: mn.FRAGMENT }]), p = t.account || this.browserStorage.getActiveAccount(), p && (this.logger.verbose("Setting validated request account", this.correlationId), this.logger.verbosePii("Setting validated request account: " + p.homeAccountId, this.correlationId), s.account = p), L.isEmpty(s.loginHint) && !p && (d = this.browserStorage.getLegacyLoginHint(), d && (s.loginHint = d)), [2, s];
10494
+ return s = B.apply(void 0, [B.apply(void 0, d.concat([f.sent()])), { redirectUri: o, state: a, nonce: t.nonce || this.browserCrypto.createNewGuid(), responseMode: mn.FRAGMENT }]), p = t.account || this.browserStorage.getActiveAccount(), p && (this.logger.verbose("Setting validated request account", this.correlationId), this.logger.verbosePii("Setting validated request account: " + p.homeAccountId, this.correlationId), s.account = p), L.isEmpty(s.loginHint) && !p && (u = this.browserStorage.getLegacyLoginHint(), u && (s.loginHint = u)), [2, s];
10495
10495
  }
10496
10496
  });
10497
10497
  });
@@ -10508,7 +10508,7 @@ var or = (
10508
10508
  return n.prototype.handleCodeResponseFromHash = function(e, t, r, o) {
10509
10509
  return T(this, void 0, void 0, function() {
10510
10510
  var i, a, s;
10511
- return I(this, function(u) {
10511
+ return I(this, function(d) {
10512
10512
  if (this.performanceClient.addQueueMeasurement(b.HandleCodeResponseFromHash, this.authCodeRequest.correlationId), this.logger.verbose("InteractionHandler.handleCodeResponse called"), L.isEmpty(e))
10513
10513
  throw M.createEmptyHashError(e);
10514
10514
  if (i = this.browserStorage.generateStateKey(t), a = this.browserStorage.getTemporaryCache(i), !a)
@@ -10523,17 +10523,17 @@ var or = (
10523
10523
  });
10524
10524
  }, n.prototype.handleCodeResponseFromServer = function(e, t, r, o, i) {
10525
10525
  return i === void 0 && (i = !0), T(this, void 0, void 0, function() {
10526
- var a, s, u, p, d, f;
10526
+ var a, s, d, p, u, f;
10527
10527
  return I(this, function(_) {
10528
10528
  switch (_.label) {
10529
10529
  case 0:
10530
10530
  if (this.performanceClient.addQueueMeasurement(b.HandleCodeResponseFromServer, this.authCodeRequest.correlationId), this.logger.trace("InteractionHandler.handleCodeResponseFromServer called"), a = this.browserStorage.generateStateKey(t), s = this.browserStorage.getTemporaryCache(a), !s)
10531
10531
  throw O.createStateNotFoundError("Cached State");
10532
- return u = this.browserStorage.generateNonceKey(s), p = this.browserStorage.getTemporaryCache(u), this.authCodeRequest.code = e.code, e.cloud_instance_host_name ? (this.performanceClient.setPreQueueTime(b.UpdateTokenEndpointAuthority, this.authCodeRequest.correlationId), [4, this.updateTokenEndpointAuthority(e.cloud_instance_host_name, r, o)]) : [3, 2];
10532
+ return d = this.browserStorage.generateNonceKey(s), p = this.browserStorage.getTemporaryCache(d), this.authCodeRequest.code = e.code, e.cloud_instance_host_name ? (this.performanceClient.setPreQueueTime(b.UpdateTokenEndpointAuthority, this.authCodeRequest.correlationId), [4, this.updateTokenEndpointAuthority(e.cloud_instance_host_name, r, o)]) : [3, 2];
10533
10533
  case 1:
10534
10534
  _.sent(), _.label = 2;
10535
10535
  case 2:
10536
- return i && (e.nonce = p || void 0), e.state = s, e.client_info ? this.authCodeRequest.clientInfo = e.client_info : (d = this.checkCcsCredentials(), d && (this.authCodeRequest.ccsCredential = d)), this.performanceClient.setPreQueueTime(b.AuthClientAcquireToken, this.authCodeRequest.correlationId), [4, this.authModule.acquireToken(this.authCodeRequest, e)];
10536
+ return i && (e.nonce = p || void 0), e.state = s, e.client_info ? this.authCodeRequest.clientInfo = e.client_info : (u = this.checkCcsCredentials(), u && (this.authCodeRequest.ccsCredential = u)), this.performanceClient.setPreQueueTime(b.AuthClientAcquireToken, this.authCodeRequest.correlationId), [4, this.authModule.acquireToken(this.authCodeRequest, e)];
10537
10537
  case 3:
10538
10538
  return f = _.sent(), this.browserStorage.cleanRequestByState(t), [2, f];
10539
10539
  }
@@ -10572,8 +10572,8 @@ var Ur = (
10572
10572
  function(n) {
10573
10573
  be(e, n);
10574
10574
  function e(t, r, o, i, a, s) {
10575
- var u = n.call(this, t, r, o, i, s) || this;
10576
- return u.browserCrypto = a, u;
10575
+ var d = n.call(this, t, r, o, i, s) || this;
10576
+ return d.browserCrypto = a, d;
10577
10577
  }
10578
10578
  return e.prototype.initiateAuthRequest = function(t, r) {
10579
10579
  return T(this, void 0, void 0, function() {
@@ -10619,7 +10619,7 @@ var Ur = (
10619
10619
  });
10620
10620
  }, e.prototype.handleCodeResponseFromHash = function(t, r, o, i) {
10621
10621
  return T(this, void 0, void 0, function() {
10622
- var a, s, u, p, d, f, _;
10622
+ var a, s, d, p, u, f, _;
10623
10623
  return I(this, function(k) {
10624
10624
  switch (k.label) {
10625
10625
  case 0:
@@ -10628,15 +10628,15 @@ var Ur = (
10628
10628
  if (this.browserStorage.setInteractionInProgress(!1), a = this.browserStorage.generateStateKey(r), s = this.browserStorage.getTemporaryCache(a), !s)
10629
10629
  throw O.createStateNotFoundError("Cached State");
10630
10630
  try {
10631
- u = this.authModule.handleFragmentResponse(t, s);
10631
+ d = this.authModule.handleFragmentResponse(t, s);
10632
10632
  } catch (E) {
10633
10633
  throw E instanceof bt && E.subError === A.userCancelledError.code ? M.createUserCancelledError() : E;
10634
10634
  }
10635
- return p = this.browserStorage.generateNonceKey(s), d = 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];
10635
+ return p = this.browserStorage.generateNonceKey(s), u = this.browserStorage.getTemporaryCache(p), this.authCodeRequest.code = d.code, d.cloud_instance_host_name ? [4, this.updateTokenEndpointAuthority(d.cloud_instance_host_name, o, i)] : [3, 2];
10636
10636
  case 1:
10637
10637
  k.sent(), k.label = 2;
10638
10638
  case 2:
10639
- return u.nonce = d || void 0, u.state = s, u.client_info ? this.authCodeRequest.clientInfo = u.client_info : (f = this.checkCcsCredentials(), f && (this.authCodeRequest.ccsCredential = f)), [4, this.authModule.acquireToken(this.authCodeRequest, u)];
10639
+ return d.nonce = u || void 0, d.state = s, d.client_info ? this.authCodeRequest.clientInfo = d.client_info : (f = this.checkCcsCredentials(), f && (this.authCodeRequest.ccsCredential = f)), [4, this.authModule.acquireToken(this.authCodeRequest, d)];
10640
10640
  case 3:
10641
10641
  return _ = k.sent(), this.browserStorage.cleanRequestByState(r), [2, _];
10642
10642
  }
@@ -10715,21 +10715,21 @@ var lo = (
10715
10715
  return e.prototype.acquireToken = function(t) {
10716
10716
  return T(this, void 0, void 0, function() {
10717
10717
  var r, o, i, a, s;
10718
- return I(this, function(u) {
10719
- switch (u.label) {
10718
+ return I(this, function(d) {
10719
+ switch (d.label) {
10720
10720
  case 0:
10721
10721
  return r = this.performanceClient.startMeasurement(b.SilentCacheClientAcquireToken, t.correlationId), o = this.initializeServerTelemetryManager(oe.acquireTokenSilent_silentFlow), [4, this.createSilentFlowClient(o, t.authority, t.azureCloudOptions)];
10722
10722
  case 1:
10723
- i = u.sent(), this.logger.verbose("Silent auth client created"), u.label = 2;
10723
+ i = d.sent(), this.logger.verbose("Silent auth client created"), d.label = 2;
10724
10724
  case 2:
10725
- return u.trys.push([2, 4, , 5]), [4, i.acquireCachedToken(t)];
10725
+ return d.trys.push([2, 4, , 5]), [4, i.acquireCachedToken(t)];
10726
10726
  case 3:
10727
- return a = u.sent(), r.endMeasurement({
10727
+ return a = d.sent(), r.endMeasurement({
10728
10728
  success: !0,
10729
10729
  fromCache: !0
10730
10730
  }), [2, a];
10731
10731
  case 4:
10732
- throw s = u.sent(), s instanceof M && s.errorCode === A.signingKeyNotFoundInStorage.code && this.logger.verbose("Signing keypair for bound access token not found. Refreshing bound access token and generating a new crypto keypair."), r.endMeasurement({
10732
+ throw s = d.sent(), s instanceof M && s.errorCode === A.signingKeyNotFoundInStorage.code && this.logger.verbose("Signing keypair for bound access token not found. Refreshing bound access token and generating a new crypto keypair."), r.endMeasurement({
10733
10733
  errorCode: s instanceof D && s.errorCode || void 0,
10734
10734
  subErrorCode: s instanceof D && s.subError || void 0,
10735
10735
  success: !1
@@ -10776,36 +10776,36 @@ var Ot = (
10776
10776
  /** @class */
10777
10777
  function(n) {
10778
10778
  be(e, n);
10779
- function e(t, r, o, i, a, s, u, p, d, f, _, k) {
10780
- var E = n.call(this, t, r, o, i, a, s, p, d, k) || this;
10781
- return E.apiId = u, E.accountId = f, E.nativeMessageHandler = d, E.nativeStorageManager = _, E.silentCacheClient = new lo(t, E.nativeStorageManager, o, i, a, s, p, d, k), E;
10779
+ function e(t, r, o, i, a, s, d, p, u, f, _, k) {
10780
+ var E = n.call(this, t, r, o, i, a, s, p, u, k) || this;
10781
+ return E.apiId = d, E.accountId = f, E.nativeMessageHandler = u, E.nativeStorageManager = _, E.silentCacheClient = new lo(t, E.nativeStorageManager, o, i, a, s, p, u, k), E;
10782
10782
  }
10783
10783
  return e.prototype.acquireToken = function(t) {
10784
10784
  return T(this, void 0, void 0, function() {
10785
- var r, o, i, a, s, u, p;
10786
- return I(this, function(d) {
10787
- switch (d.label) {
10785
+ var r, o, i, a, s, d, p;
10786
+ return I(this, function(u) {
10787
+ switch (u.label) {
10788
10788
  case 0:
10789
10789
  return this.logger.trace("NativeInteractionClient - acquireToken called."), r = this.performanceClient.startMeasurement(b.NativeInteractionClientAcquireToken, t.correlationId), o = Ke.nowSeconds(), [4, this.initializeNativeRequest(t)];
10790
10790
  case 1:
10791
- i = d.sent(), d.label = 2;
10791
+ i = u.sent(), u.label = 2;
10792
10792
  case 2:
10793
- return d.trys.push([2, 4, , 5]), [4, this.acquireTokensFromCache(this.accountId, i)];
10793
+ return u.trys.push([2, 4, , 5]), [4, this.acquireTokensFromCache(this.accountId, i)];
10794
10794
  case 3:
10795
- return a = d.sent(), r.endMeasurement({
10795
+ return a = u.sent(), r.endMeasurement({
10796
10796
  success: !0,
10797
10797
  isNativeBroker: !1,
10798
10798
  fromCache: !0
10799
10799
  }), [2, a];
10800
10800
  case 4:
10801
- return d.sent(), this.logger.info("MSAL internal Cache does not contain tokens, proceed to make a native call"), [3, 5];
10801
+ return u.sent(), this.logger.info("MSAL internal Cache does not contain tokens, proceed to make a native call"), [3, 5];
10802
10802
  case 5:
10803
10803
  return s = {
10804
10804
  method: at.GetToken,
10805
10805
  request: i
10806
10806
  }, [4, this.nativeMessageHandler.sendMessage(s)];
10807
10807
  case 6:
10808
- return u = d.sent(), p = this.validateNativeResponse(u), [2, this.handleNativeResponse(p, i, o).then(function(f) {
10808
+ return d = u.sent(), p = this.validateNativeResponse(d), [2, this.handleNativeResponse(p, i, o).then(function(f) {
10809
10809
  return r.endMeasurement({
10810
10810
  success: !0,
10811
10811
  isNativeBroker: !0,
@@ -10833,20 +10833,20 @@ var Ot = (
10833
10833
  }, e.prototype.acquireTokensFromCache = function(t, r) {
10834
10834
  return T(this, void 0, void 0, function() {
10835
10835
  var o, i, a, s;
10836
- return I(this, function(u) {
10837
- switch (u.label) {
10836
+ return I(this, function(d) {
10837
+ switch (d.label) {
10838
10838
  case 0:
10839
10839
  if (!t)
10840
10840
  throw this.logger.warning("NativeInteractionClient:acquireTokensFromCache - No nativeAccountId provided"), O.createNoAccountFoundError();
10841
10841
  if (o = this.browserStorage.getAccountInfoFilteredBy({ nativeAccountId: t }), !o)
10842
10842
  throw O.createNoAccountFoundError();
10843
- u.label = 1;
10843
+ d.label = 1;
10844
10844
  case 1:
10845
- return u.trys.push([1, 3, , 4]), i = this.createSilentCacheRequest(r, o), [4, this.silentCacheClient.acquireToken(i)];
10845
+ return d.trys.push([1, 3, , 4]), i = this.createSilentCacheRequest(r, o), [4, this.silentCacheClient.acquireToken(i)];
10846
10846
  case 2:
10847
- return a = u.sent(), [2, a];
10847
+ return a = d.sent(), [2, a];
10848
10848
  case 3:
10849
- throw s = u.sent(), s;
10849
+ throw s = d.sent(), s;
10850
10850
  case 4:
10851
10851
  return [
10852
10852
  2
@@ -10857,7 +10857,7 @@ var Ot = (
10857
10857
  });
10858
10858
  }, e.prototype.acquireTokenRedirect = function(t) {
10859
10859
  return T(this, void 0, void 0, function() {
10860
- var r, o, i, a, s, u;
10860
+ var r, o, i, a, s, d;
10861
10861
  return I(this, function(p) {
10862
10862
  switch (p.label) {
10863
10863
  case 0:
@@ -10880,7 +10880,7 @@ var Ot = (
10880
10880
  apiId: oe.acquireTokenRedirect,
10881
10881
  timeout: this.config.system.redirectNavigationTimeout,
10882
10882
  noHistory: !1
10883
- }, u = this.config.auth.navigateToLoginRequestUrl ? window.location.href : this.getRedirectUri(t.redirectUri), [4, this.navigationClient.navigateExternal(u, s)];
10883
+ }, d = this.config.auth.navigateToLoginRequestUrl ? window.location.href : this.getRedirectUri(t.redirectUri), [4, this.navigationClient.navigateExternal(d, s)];
10884
10884
  case 6:
10885
10885
  return p.sent(), [
10886
10886
  2
@@ -10891,9 +10891,9 @@ var Ot = (
10891
10891
  });
10892
10892
  }, e.prototype.handleRedirectPromise = function() {
10893
10893
  return T(this, void 0, void 0, function() {
10894
- var t, r, o, i, a, s, u, p;
10895
- return I(this, function(d) {
10896
- switch (d.label) {
10894
+ var t, r, o, i, a, s, d, p;
10895
+ return I(this, function(u) {
10896
+ switch (u.label) {
10897
10897
  case 0:
10898
10898
  if (this.logger.trace("NativeInteractionClient - handleRedirectPromise called."), !this.browserStorage.isInteractionInProgress(!0))
10899
10899
  return this.logger.info("handleRedirectPromise called but there is no interaction in progress, returning null."), [2, null];
@@ -10902,13 +10902,13 @@ var Ot = (
10902
10902
  r = t.prompt, o = br(t, ["prompt"]), r && this.logger.verbose("NativeInteractionClient - handleRedirectPromise called and prompt was included in the original request, removing prompt from cached request to prevent second interaction with native broker window."), this.browserStorage.removeItem(this.browserStorage.generateCacheKey(J.NATIVE_REQUEST)), i = {
10903
10903
  method: at.GetToken,
10904
10904
  request: o
10905
- }, a = Ke.nowSeconds(), d.label = 1;
10905
+ }, a = Ke.nowSeconds(), u.label = 1;
10906
10906
  case 1:
10907
- return d.trys.push([1, 3, , 4]), this.logger.verbose("NativeInteractionClient - handleRedirectPromise sending message to native broker."), [4, this.nativeMessageHandler.sendMessage(i)];
10907
+ return u.trys.push([1, 3, , 4]), this.logger.verbose("NativeInteractionClient - handleRedirectPromise sending message to native broker."), [4, this.nativeMessageHandler.sendMessage(i)];
10908
10908
  case 2:
10909
- return s = d.sent(), this.validateNativeResponse(s), u = this.handleNativeResponse(s, o, a), this.browserStorage.setInteractionInProgress(!1), [2, u];
10909
+ return s = u.sent(), this.validateNativeResponse(s), d = this.handleNativeResponse(s, o, a), this.browserStorage.setInteractionInProgress(!1), [2, d];
10910
10910
  case 3:
10911
- throw p = d.sent(), this.browserStorage.setInteractionInProgress(!1), p;
10911
+ throw p = u.sent(), this.browserStorage.setInteractionInProgress(!1), p;
10912
10912
  case 4:
10913
10913
  return [
10914
10914
  2
@@ -10921,7 +10921,7 @@ var Ot = (
10921
10921
  return this.logger.trace("NativeInteractionClient - logout called."), Promise.reject("Logout not implemented yet");
10922
10922
  }, e.prototype.handleNativeResponse = function(t, r, o) {
10923
10923
  return T(this, void 0, void 0, function() {
10924
- var i, a, s, u, p, d;
10924
+ var i, a, s, d, p, u;
10925
10925
  return I(this, function(f) {
10926
10926
  switch (f.label) {
10927
10927
  case 0:
@@ -10929,9 +10929,9 @@ var Ot = (
10929
10929
  throw tt.createUserSwitchError();
10930
10930
  return [4, this.getDiscoveredAuthority(r.authority)];
10931
10931
  case 1:
10932
- return i = f.sent(), a = i.getPreferredCache(), s = this.createIdTokenObj(t), u = this.createHomeAccountIdentifier(t, s), p = this.createAccountEntity(t, u, s, a), [4, this.generateAuthenticationResult(t, r, s, p, i.canonicalAuthority, o)];
10932
+ return i = f.sent(), a = i.getPreferredCache(), s = this.createIdTokenObj(t), d = this.createHomeAccountIdentifier(t, s), p = this.createAccountEntity(t, d, s, a), [4, this.generateAuthenticationResult(t, r, s, p, i.canonicalAuthority, o)];
10933
10933
  case 2:
10934
- return d = f.sent(), this.cacheAccount(p), this.cacheNativeTokens(t, r, u, p, s, d.accessToken, d.tenantId, o), [2, d];
10934
+ return u = f.sent(), this.cacheAccount(p), this.cacheNativeTokens(t, r, d, p, s, u.accessToken, u.tenantId, o), [2, u];
10935
10935
  }
10936
10936
  });
10937
10937
  });
@@ -10971,11 +10971,11 @@ var Ot = (
10971
10971
  });
10972
10972
  }, e.prototype.generateAuthenticationResult = function(t, r, o, i, a, s) {
10973
10973
  return T(this, void 0, void 0, function() {
10974
- var u, p, d, f, _, k, E, N;
10974
+ var d, p, u, f, _, k, E, N;
10975
10975
  return I(this, function(Q) {
10976
10976
  switch (Q.label) {
10977
10977
  case 0:
10978
- return u = this.addTelemetryFromNativeResponse(t), p = t.scope ? Ee.fromString(t.scope) : Ee.fromString(r.scope), d = t.account.properties || {}, f = d.UID || o.claims.oid || o.claims.sub || g.EMPTY_STRING, _ = d.TenantId || o.claims.tid || g.EMPTY_STRING, [4, this.generatePopAccessToken(t, r)];
10978
+ return d = this.addTelemetryFromNativeResponse(t), p = t.scope ? Ee.fromString(t.scope) : Ee.fromString(r.scope), u = t.account.properties || {}, f = u.UID || o.claims.oid || o.claims.sub || g.EMPTY_STRING, _ = u.TenantId || o.claims.tid || g.EMPTY_STRING, [4, this.generatePopAccessToken(t, r)];
10979
10979
  case 1:
10980
10980
  return k = Q.sent(), E = r.tokenType === te.POP ? te.POP : te.BEARER, N = {
10981
10981
  authority: a,
@@ -10986,7 +10986,7 @@ var Ot = (
10986
10986
  idToken: t.id_token,
10987
10987
  idTokenClaims: o.claims,
10988
10988
  accessToken: k,
10989
- fromCache: u ? this.isResponseFromCache(u) : !1,
10989
+ fromCache: d ? this.isResponseFromCache(d) : !1,
10990
10990
  expiresOn: new Date(Number(s + t.expires_in) * 1e3),
10991
10991
  tokenType: E,
10992
10992
  correlationId: this.correlationId,
@@ -11001,8 +11001,8 @@ var Ot = (
11001
11001
  this.browserStorage.setAccount(t), this.browserStorage.removeAccountContext(t).catch(function(o) {
11002
11002
  r.logger.error("Error occurred while removing account context from browser storage. " + o);
11003
11003
  });
11004
- }, e.prototype.cacheNativeTokens = function(t, r, o, i, a, s, u, p) {
11005
- var d = gt.createIdTokenEntity(o, r.authority, t.id_token || g.EMPTY_STRING, r.clientId, a.claims.tid || g.EMPTY_STRING), f = r.tokenType === te.POP ? g.SHR_NONCE_VALIDITY : (typeof t.expires_in == "string" ? parseInt(t.expires_in, 10) : t.expires_in) || 0, _ = p + f, k = this.generateScopes(t, r), E = _t.createAccessTokenEntity(o, r.authority, s, r.clientId, a ? a.claims.tid || g.EMPTY_STRING : u, k.printScopes(), _, 0, this.browserCrypto), N = new Zt(i, d, E);
11004
+ }, e.prototype.cacheNativeTokens = function(t, r, o, i, a, s, d, p) {
11005
+ var u = gt.createIdTokenEntity(o, r.authority, t.id_token || g.EMPTY_STRING, r.clientId, a.claims.tid || g.EMPTY_STRING), f = r.tokenType === te.POP ? g.SHR_NONCE_VALIDITY : (typeof t.expires_in == "string" ? parseInt(t.expires_in, 10) : t.expires_in) || 0, _ = p + f, k = this.generateScopes(t, r), E = _t.createAccessTokenEntity(o, r.authority, s, r.clientId, a ? a.claims.tid || g.EMPTY_STRING : d, k.printScopes(), _, 0, this.browserCrypto), N = new Zt(i, u, E);
11006
11006
  this.nativeStorageManager.saveCacheRecord(N);
11007
11007
  }, e.prototype.addTelemetryFromNativeResponse = function(t) {
11008
11008
  var r = this.getMATSFromResponse(t);
@@ -11039,7 +11039,7 @@ var Ot = (
11039
11039
  return typeof t.is_cached > "u" ? (this.logger.verbose("NativeInteractionClient - MATS telemetry does not contain field indicating if response was served from cache. Returning false."), !1) : !!t.is_cached;
11040
11040
  }, e.prototype.initializeNativeRequest = function(t) {
11041
11041
  return T(this, void 0, void 0, function() {
11042
- var r, o, i, a, s, u, p, d, f, _, k = this;
11042
+ var r, o, i, a, s, d, p, u, f, _, k = this;
11043
11043
  return I(this, function(E) {
11044
11044
  switch (E.label) {
11045
11045
  case 0:
@@ -11047,7 +11047,7 @@ var Ot = (
11047
11047
  case 1:
11048
11048
  E.sent(), E.label = 2;
11049
11049
  case 2:
11050
- return o = new W(r), o.validateAsUri(), i = t.scopes, a = br(t, ["scopes"]), s = new Ee(i || []), s.appendScopes(on), u = function() {
11050
+ return o = new W(r), o.validateAsUri(), i = t.scopes, a = br(t, ["scopes"]), s = new Ee(i || []), s.appendScopes(on), d = function() {
11051
11051
  switch (k.apiId) {
11052
11052
  case oe.ssoSilent:
11053
11053
  case oe.acquireTokenSilent_silentFlow:
@@ -11071,19 +11071,19 @@ var Ot = (
11071
11071
  authority: o.urlString,
11072
11072
  scope: s.printScopes(),
11073
11073
  redirectUri: this.getRedirectUri(t.redirectUri),
11074
- prompt: u(),
11074
+ prompt: d(),
11075
11075
  correlationId: this.correlationId,
11076
11076
  tokenType: t.authenticationScheme,
11077
11077
  windowTitleSubstring: document.title,
11078
11078
  extraParameters: B(B(B({}, t.extraQueryParameters), t.tokenQueryParameters), { telemetry: Gt.MATS_TELEMETRY }),
11079
11079
  extendedExpiryToken: !1
11080
11080
  // Make this configurable?
11081
- }), t.authenticationScheme !== te.POP ? [3, 4] : (d = {
11081
+ }), t.authenticationScheme !== te.POP ? [3, 4] : (u = {
11082
11082
  resourceRequestUri: t.resourceRequestUri,
11083
11083
  resourceRequestMethod: t.resourceRequestMethod,
11084
11084
  shrClaims: t.shrClaims,
11085
11085
  shrNonce: t.shrNonce
11086
- }, f = new Ut(this.browserCrypto), [4, f.generateCnf(d)]);
11086
+ }, f = new Ut(this.browserCrypto), [4, f.generateCnf(u)]);
11087
11087
  case 3:
11088
11088
  _ = E.sent(), p.reqCnf = _.reqCnfString, p.keyId = _.kid, E.label = 4;
11089
11089
  case 4:
@@ -11220,13 +11220,13 @@ var Yi = (
11220
11220
  /** @class */
11221
11221
  function(n) {
11222
11222
  be(e, n);
11223
- function e(t, r, o, i, a, s, u, p, d, f) {
11224
- var _ = n.call(this, t, r, o, i, a, s, u, d, f) || this;
11223
+ function e(t, r, o, i, a, s, d, p, u, f) {
11224
+ var _ = n.call(this, t, r, o, i, a, s, d, u, f) || this;
11225
11225
  return _.nativeStorage = p, _;
11226
11226
  }
11227
11227
  return e.prototype.acquireToken = function(t) {
11228
11228
  return T(this, void 0, void 0, function() {
11229
- var r, o, i, a, s, u, p, d, f, _ = this;
11229
+ var r, o, i, a, s, d, p, u, f, _ = this;
11230
11230
  return I(this, function(k) {
11231
11231
  switch (k.label) {
11232
11232
  case 0:
@@ -11240,12 +11240,12 @@ var Yi = (
11240
11240
  case 3:
11241
11241
  return a = k.sent(), this.performanceClient.setPreQueueTime(b.StandardInteractionClientCreateAuthCodeClient, t.correlationId), [4, this.createAuthCodeClient(o, r.authority, r.azureCloudOptions)];
11242
11242
  case 4:
11243
- return s = k.sent(), this.logger.verbose("Auth code client created"), u = new Ur(s, this.browserStorage, a, this.logger, this.browserCrypto, this.performanceClient), [4, s.getAuthCodeUrl(B(B({}, r), { nativeBroker: yt.isNativeAvailable(this.config, this.logger, this.nativeMessageHandler, t.authenticationScheme) }))];
11243
+ return s = k.sent(), this.logger.verbose("Auth code client created"), d = new Ur(s, this.browserStorage, a, this.logger, this.browserCrypto, this.performanceClient), [4, s.getAuthCodeUrl(B(B({}, r), { nativeBroker: yt.isNativeAvailable(this.config, this.logger, this.nativeMessageHandler, t.authenticationScheme) }))];
11244
11244
  case 5:
11245
- return p = k.sent(), d = this.getRedirectStartPage(t.redirectStartPage), this.logger.verbosePii("Redirect start page: " + d), window.addEventListener("pageshow", i), [4, u.initiateAuthRequest(p, {
11245
+ return p = k.sent(), u = this.getRedirectStartPage(t.redirectStartPage), this.logger.verbosePii("Redirect start page: " + u), window.addEventListener("pageshow", i), [4, d.initiateAuthRequest(p, {
11246
11246
  navigationClient: this.navigationClient,
11247
11247
  redirectTimeout: this.config.system.redirectNavigationTimeout,
11248
- redirectStartPage: d,
11248
+ redirectStartPage: u,
11249
11249
  onRedirectNavigate: t.onRedirectNavigate
11250
11250
  })];
11251
11251
  case 6:
@@ -11262,7 +11262,7 @@ var Yi = (
11262
11262
  });
11263
11263
  }, e.prototype.handleRedirectPromise = function(t) {
11264
11264
  return T(this, void 0, void 0, function() {
11265
- var r, o, i, a, s, u, p, d, f, _, k, E;
11265
+ var r, o, i, a, s, d, p, u, f, _, k, E;
11266
11266
  return I(this, function(N) {
11267
11267
  switch (N.label) {
11268
11268
  case 0:
@@ -11278,17 +11278,17 @@ var Yi = (
11278
11278
  } catch (Q) {
11279
11279
  return this.logger.info("handleRedirectPromise was unable to extract state due to: " + Q), this.browserStorage.cleanRequestByInteractionType(x.Redirect), [2, null];
11280
11280
  }
11281
- return s = this.browserStorage.getTemporaryCache(J.ORIGIN_URI, !0) || g.EMPTY_STRING, u = W.removeHashFromUrl(s), p = W.removeHashFromUrl(window.location.href), u === p && this.config.auth.navigateToLoginRequestUrl ? (this.logger.verbose("Current page is loginRequestUrl, handling hash"), [4, this.handleHash(o, i, r)]) : [3, 3];
11281
+ return s = this.browserStorage.getTemporaryCache(J.ORIGIN_URI, !0) || g.EMPTY_STRING, d = W.removeHashFromUrl(s), p = W.removeHashFromUrl(window.location.href), d === p && this.config.auth.navigateToLoginRequestUrl ? (this.logger.verbose("Current page is loginRequestUrl, handling hash"), [4, this.handleHash(o, i, r)]) : [3, 3];
11282
11282
  case 2:
11283
- return d = N.sent(), s.indexOf("#") > -1 && de.replaceHash(s), [2, d];
11283
+ return u = N.sent(), s.indexOf("#") > -1 && ue.replaceHash(s), [2, u];
11284
11284
  case 3:
11285
11285
  return this.config.auth.navigateToLoginRequestUrl ? [3, 4] : (this.logger.verbose("NavigateToLoginRequestUrl set to false, handling hash"), [2, this.handleHash(o, i, r)]);
11286
11286
  case 4:
11287
- return !de.isInIframe() || this.config.system.allowRedirectInIframe ? (this.browserStorage.setTemporaryCache(J.URL_HASH, o, !0), f = {
11287
+ return !ue.isInIframe() || this.config.system.allowRedirectInIframe ? (this.browserStorage.setTemporaryCache(J.URL_HASH, o, !0), f = {
11288
11288
  apiId: oe.handleRedirectPromise,
11289
11289
  timeout: this.config.system.redirectNavigationTimeout,
11290
11290
  noHistory: !0
11291
- }, _ = !0, !s || s === "null" ? (k = de.getHomepage(), this.browserStorage.setTemporaryCache(J.ORIGIN_URI, k, !0), this.logger.warning("Unable to get valid login request url from cache, redirecting to home page"), [4, this.navigationClient.navigateInternal(k, f)]) : [3, 6]) : [3, 9];
11291
+ }, _ = !0, !s || s === "null" ? (k = ue.getHomepage(), this.browserStorage.setTemporaryCache(J.ORIGIN_URI, k, !0), this.logger.warning("Unable to get valid login request url from cache, redirecting to home page"), [4, this.navigationClient.navigateInternal(k, f)]) : [3, 6]) : [3, 9];
11292
11292
  case 5:
11293
11293
  return _ = N.sent(), [3, 8];
11294
11294
  case 6:
@@ -11315,20 +11315,20 @@ var Yi = (
11315
11315
  this.logger.verbose("getRedirectResponseHash called");
11316
11316
  var r = W.hashContainsKnownProperties(t);
11317
11317
  if (r)
11318
- return de.clearHash(window), this.logger.verbose("Hash contains known properties, returning response hash"), t;
11318
+ return ue.clearHash(window), this.logger.verbose("Hash contains known properties, returning response hash"), t;
11319
11319
  var o = this.browserStorage.getTemporaryCache(J.URL_HASH, !0);
11320
11320
  return this.browserStorage.removeItem(this.browserStorage.generateCacheKey(J.URL_HASH)), this.logger.verbose("Hash does not contain known properties, returning cached hash"), o;
11321
11321
  }, e.prototype.handleHash = function(t, r, o) {
11322
11322
  return T(this, void 0, void 0, function() {
11323
- var i, a, s, u, p, d, f, _ = this;
11323
+ var i, a, s, d, p, u, f, _ = this;
11324
11324
  return I(this, function(k) {
11325
11325
  switch (k.label) {
11326
11326
  case 0:
11327
11327
  if (i = this.browserStorage.getCachedRequest(r, this.browserCrypto), this.logger.verbose("handleHash called, retrieved cached request"), a = W.getDeserializedHash(t), a.accountId) {
11328
11328
  if (this.logger.verbose("Account id found in hash, calling WAM for token"), !this.nativeMessageHandler)
11329
11329
  throw M.createNativeConnectionNotEstablishedError();
11330
- return s = new Ot(this.config, this.browserStorage, this.browserCrypto, this.logger, this.eventHandler, this.navigationClient, oe.acquireTokenPopup, this.performanceClient, this.nativeMessageHandler, a.accountId, this.nativeStorage, i.correlationId), u = st.parseRequestState(this.browserCrypto, r).userRequestState, [2, s.acquireToken(B(B({}, i), {
11331
- state: u,
11330
+ return s = new Ot(this.config, this.browserStorage, this.browserCrypto, this.logger, this.eventHandler, this.navigationClient, oe.acquireTokenPopup, this.performanceClient, this.nativeMessageHandler, a.accountId, this.nativeStorage, i.correlationId), d = st.parseRequestState(this.browserCrypto, r).userRequestState, [2, s.acquireToken(B(B({}, i), {
11331
+ state: d,
11332
11332
  prompt: void 0
11333
11333
  // Server should handle the prompt, ideally native broker can do this part silently
11334
11334
  })).finally(function() {
@@ -11339,7 +11339,7 @@ var Yi = (
11339
11339
  throw M.createNoCachedAuthorityError();
11340
11340
  return this.performanceClient.setPreQueueTime(b.StandardInteractionClientCreateAuthCodeClient, i.correlationId), [4, this.createAuthCodeClient(o, p)];
11341
11341
  case 1:
11342
- return d = k.sent(), this.logger.verbose("Auth code client created"), yn.removeThrottle(this.browserStorage, this.config.auth.clientId, i), f = new Ur(d, this.browserStorage, i, this.logger, this.browserCrypto, this.performanceClient), [4, f.handleCodeResponseFromHash(t, r, d.authority, this.networkClient)];
11342
+ return u = k.sent(), this.logger.verbose("Auth code client created"), yn.removeThrottle(this.browserStorage, this.config.auth.clientId, i), f = new Ur(u, this.browserStorage, i, this.logger, this.browserCrypto, this.performanceClient), [4, f.handleCodeResponseFromHash(t, r, u.authority, this.networkClient)];
11343
11343
  case 2:
11344
11344
  return [2, k.sent()];
11345
11345
  }
@@ -11347,41 +11347,41 @@ var Yi = (
11347
11347
  });
11348
11348
  }, e.prototype.logout = function(t) {
11349
11349
  return T(this, void 0, void 0, function() {
11350
- var r, o, i, a, s, u, p;
11351
- return I(this, function(d) {
11352
- switch (d.label) {
11350
+ var r, o, i, a, s, d, p;
11351
+ return I(this, function(u) {
11352
+ switch (u.label) {
11353
11353
  case 0:
11354
- this.logger.verbose("logoutRedirect called"), r = this.initializeLogoutRequest(t), o = this.initializeServerTelemetryManager(oe.logout), d.label = 1;
11354
+ this.logger.verbose("logoutRedirect called"), r = this.initializeLogoutRequest(t), o = this.initializeServerTelemetryManager(oe.logout), u.label = 1;
11355
11355
  case 1:
11356
- return d.trys.push([1, 10, , 11]), this.eventHandler.emitEvent(q.LOGOUT_START, x.Redirect, t), [4, this.clearCacheOnLogout(r.account)];
11356
+ return u.trys.push([1, 10, , 11]), this.eventHandler.emitEvent(q.LOGOUT_START, x.Redirect, t), [4, this.clearCacheOnLogout(r.account)];
11357
11357
  case 2:
11358
- return d.sent(), i = {
11358
+ return u.sent(), i = {
11359
11359
  apiId: oe.logout,
11360
11360
  timeout: this.config.system.redirectNavigationTimeout,
11361
11361
  noHistory: !1
11362
11362
  }, this.performanceClient.setPreQueueTime(b.StandardInteractionClientCreateAuthCodeClient, r.correlationId), [4, this.createAuthCodeClient(o, t && t.authority)];
11363
11363
  case 3:
11364
- return a = d.sent(), this.logger.verbose("Auth code client created"), s = a.getLogoutUri(r), this.eventHandler.emitEvent(q.LOGOUT_SUCCESS, x.Redirect, r), t && typeof t.onRedirectNavigate == "function" ? (u = t.onRedirectNavigate(s), u === !1 ? [3, 5] : (this.logger.verbose("Logout onRedirectNavigate did not return false, navigating"), this.browserStorage.getInteractionInProgress() || this.browserStorage.setInteractionInProgress(!0), [4, this.navigationClient.navigateExternal(s, i)])) : [3, 7];
11364
+ return a = u.sent(), this.logger.verbose("Auth code client created"), s = a.getLogoutUri(r), this.eventHandler.emitEvent(q.LOGOUT_SUCCESS, x.Redirect, r), t && typeof t.onRedirectNavigate == "function" ? (d = t.onRedirectNavigate(s), d === !1 ? [3, 5] : (this.logger.verbose("Logout onRedirectNavigate did not return false, navigating"), this.browserStorage.getInteractionInProgress() || this.browserStorage.setInteractionInProgress(!0), [4, this.navigationClient.navigateExternal(s, i)])) : [3, 7];
11365
11365
  case 4:
11366
- return d.sent(), [
11366
+ return u.sent(), [
11367
11367
  2
11368
11368
  /*return*/
11369
11369
  ];
11370
11370
  case 5:
11371
- this.browserStorage.setInteractionInProgress(!1), this.logger.verbose("Logout onRedirectNavigate returned false, stopping navigation"), d.label = 6;
11371
+ this.browserStorage.setInteractionInProgress(!1), this.logger.verbose("Logout onRedirectNavigate returned false, stopping navigation"), u.label = 6;
11372
11372
  case 6:
11373
11373
  return [3, 9];
11374
11374
  case 7:
11375
11375
  return this.browserStorage.getInteractionInProgress() || this.browserStorage.setInteractionInProgress(!0), [4, this.navigationClient.navigateExternal(s, i)];
11376
11376
  case 8:
11377
- return d.sent(), [
11377
+ return u.sent(), [
11378
11378
  2
11379
11379
  /*return*/
11380
11380
  ];
11381
11381
  case 9:
11382
11382
  return [3, 11];
11383
11383
  case 10:
11384
- throw p = d.sent(), p instanceof D && p.setCorrelationId(this.correlationId), o.cacheFailedRequest(p), this.eventHandler.emitEvent(q.LOGOUT_FAILURE, x.Redirect, null, p), this.eventHandler.emitEvent(q.LOGOUT_END, x.Redirect), p;
11384
+ throw p = u.sent(), p instanceof D && p.setCorrelationId(this.correlationId), o.cacheFailedRequest(p), this.eventHandler.emitEvent(q.LOGOUT_FAILURE, x.Redirect, null, p), this.eventHandler.emitEvent(q.LOGOUT_END, x.Redirect), p;
11385
11385
  case 11:
11386
11386
  return this.eventHandler.emitEvent(q.LOGOUT_END, x.Redirect), [
11387
11387
  2
@@ -11392,7 +11392,7 @@ var Yi = (
11392
11392
  });
11393
11393
  }, e.prototype.getRedirectStartPage = function(t) {
11394
11394
  var r = t || window.location.href;
11395
- return W.getAbsoluteUrl(r, de.getCurrentUri());
11395
+ return W.getAbsoluteUrl(r, ue.getCurrentUri());
11396
11396
  }, e;
11397
11397
  }(Ft)
11398
11398
  );
@@ -11401,8 +11401,8 @@ var Wi = (
11401
11401
  /** @class */
11402
11402
  function(n) {
11403
11403
  be(e, n);
11404
- function e(t, r, o, i, a, s, u, p, d, f) {
11405
- var _ = n.call(this, t, r, o, i, a, s, u, d, f) || this;
11404
+ function e(t, r, o, i, a, s, d, p, u, f) {
11405
+ var _ = n.call(this, t, r, o, i, a, s, d, u, f) || this;
11406
11406
  return _.unloadWindow = _.unloadWindow.bind(_), _.nativeStorage = p, _;
11407
11407
  }
11408
11408
  return e.prototype.acquireToken = function(t) {
@@ -11423,14 +11423,14 @@ var Wi = (
11423
11423
  if (this.config.system.asyncPopups)
11424
11424
  return this.logger.verbose("asyncPopups set to true"), this.logoutPopupAsync(r, o, s, i, void 0, a);
11425
11425
  this.logger.verbose("asyncPopup set to false, opening popup");
11426
- var u = this.openSizedPopup("about:blank", o, s);
11427
- return this.logoutPopupAsync(r, o, s, i, u, a);
11426
+ var d = this.openSizedPopup("about:blank", o, s);
11427
+ return this.logoutPopupAsync(r, o, s, i, d, a);
11428
11428
  } catch (p) {
11429
11429
  return Promise.reject(p);
11430
11430
  }
11431
11431
  }, e.prototype.acquireTokenPopupAsync = function(t, r, o, i) {
11432
11432
  return T(this, void 0, void 0, function() {
11433
- var a, s, u, p, d, f, _, k, E, N, Q, X, G, $, Ae, xe, Ve, Ct = this;
11433
+ var a, s, d, p, u, f, _, k, E, N, Q, X, G, $, Ae, xe, Ve, Ct = this;
11434
11434
  return I(this, function(ce) {
11435
11435
  switch (ce.label) {
11436
11436
  case 0:
@@ -11440,17 +11440,17 @@ var Wi = (
11440
11440
  case 2:
11441
11441
  return ce.trys.push([2, 8, , 9]), this.performanceClient.setPreQueueTime(b.StandardInteractionClientInitializeAuthorizationCodeRequest, t.correlationId), [4, this.initializeAuthorizationCodeRequest(s)];
11442
11442
  case 3:
11443
- return u = ce.sent(), this.performanceClient.setPreQueueTime(b.StandardInteractionClientCreateAuthCodeClient, t.correlationId), [4, this.createAuthCodeClient(a, s.authority, s.azureCloudOptions)];
11443
+ return d = ce.sent(), this.performanceClient.setPreQueueTime(b.StandardInteractionClientCreateAuthCodeClient, t.correlationId), [4, this.createAuthCodeClient(a, s.authority, s.azureCloudOptions)];
11444
11444
  case 4:
11445
- return p = ce.sent(), this.logger.verbose("Auth code client created"), d = yt.isNativeAvailable(this.config, this.logger, this.nativeMessageHandler, t.authenticationScheme), f = void 0, d && (f = this.performanceClient.startMeasurement(b.FetchAccountIdWithNativeBroker, t.correlationId)), [4, p.getAuthCodeUrl(B(B({}, s), { nativeBroker: d }))];
11445
+ return p = ce.sent(), this.logger.verbose("Auth code client created"), u = yt.isNativeAvailable(this.config, this.logger, this.nativeMessageHandler, t.authenticationScheme), f = void 0, u && (f = this.performanceClient.startMeasurement(b.FetchAccountIdWithNativeBroker, t.correlationId)), [4, p.getAuthCodeUrl(B(B({}, s), { nativeBroker: u }))];
11446
11446
  case 5:
11447
- return _ = ce.sent(), k = new or(p, this.browserStorage, u, this.logger, this.performanceClient), E = {
11447
+ return _ = ce.sent(), k = new or(p, this.browserStorage, d, this.logger, this.performanceClient), E = {
11448
11448
  popup: i,
11449
11449
  popupName: r,
11450
11450
  popupWindowAttributes: o
11451
11451
  }, N = this.initiateAuthRequest(_, E), this.eventHandler.emitEvent(q.POPUP_OPENED, x.Popup, { popupWindow: N }, null), [4, this.monitorPopupForHash(N)];
11452
11452
  case 6:
11453
- if (Q = ce.sent(), X = W.getDeserializedHash(Q), G = this.validateAndExtractStateFromHash(X, x.Popup, s.correlationId), yn.removeThrottle(this.browserStorage, this.config.auth.clientId, u), X.accountId) {
11453
+ if (Q = ce.sent(), X = W.getDeserializedHash(Q), G = this.validateAndExtractStateFromHash(X, x.Popup, s.correlationId), yn.removeThrottle(this.browserStorage, this.config.auth.clientId, d), X.accountId) {
11454
11454
  if (this.logger.verbose("Account id found in hash, calling WAM for token"), f && f.endMeasurement({
11455
11455
  success: !0,
11456
11456
  isNativeBroker: !0
@@ -11479,25 +11479,25 @@ var Wi = (
11479
11479
  });
11480
11480
  }, e.prototype.logoutPopupAsync = function(t, r, o, i, a, s) {
11481
11481
  return T(this, void 0, void 0, function() {
11482
- var u, p, d, f, _, k, E;
11482
+ var d, p, u, f, _, k, E;
11483
11483
  return I(this, function(N) {
11484
11484
  switch (N.label) {
11485
11485
  case 0:
11486
- this.logger.verbose("logoutPopupAsync called"), this.eventHandler.emitEvent(q.LOGOUT_START, x.Popup, t), u = this.initializeServerTelemetryManager(oe.logoutPopup), N.label = 1;
11486
+ this.logger.verbose("logoutPopupAsync called"), this.eventHandler.emitEvent(q.LOGOUT_START, x.Popup, t), d = this.initializeServerTelemetryManager(oe.logoutPopup), N.label = 1;
11487
11487
  case 1:
11488
11488
  return N.trys.push([1, 5, , 6]), [4, this.clearCacheOnLogout(t.account)];
11489
11489
  case 2:
11490
- return N.sent(), this.performanceClient.setPreQueueTime(b.StandardInteractionClientCreateAuthCodeClient, t.correlationId), [4, this.createAuthCodeClient(u, i)];
11490
+ return N.sent(), this.performanceClient.setPreQueueTime(b.StandardInteractionClientCreateAuthCodeClient, t.correlationId), [4, this.createAuthCodeClient(d, i)];
11491
11491
  case 3:
11492
- return p = N.sent(), this.logger.verbose("Auth code client created"), d = p.getLogoutUri(t), this.eventHandler.emitEvent(q.LOGOUT_SUCCESS, x.Popup, t), f = this.openPopup(d, { popupName: r, popupWindowAttributes: o, popup: a }), this.eventHandler.emitEvent(q.POPUP_OPENED, x.Popup, { popupWindow: f }, null), [4, this.waitForLogoutPopup(f)];
11492
+ return p = N.sent(), this.logger.verbose("Auth code client created"), u = p.getLogoutUri(t), this.eventHandler.emitEvent(q.LOGOUT_SUCCESS, x.Popup, t), f = this.openPopup(u, { popupName: r, popupWindowAttributes: o, popup: a }), this.eventHandler.emitEvent(q.POPUP_OPENED, x.Popup, { popupWindow: f }, null), [4, this.waitForLogoutPopup(f)];
11493
11493
  case 4:
11494
11494
  return N.sent(), s ? (_ = {
11495
11495
  apiId: oe.logoutPopup,
11496
11496
  timeout: this.config.system.redirectNavigationTimeout,
11497
11497
  noHistory: !1
11498
- }, k = W.getAbsoluteUrl(s, de.getCurrentUri()), this.logger.verbose("Redirecting main window to url specified in the request"), this.logger.verbosePii("Redirecting main window to: " + k), this.navigationClient.navigateInternal(k, _)) : this.logger.verbose("No main window navigation requested"), [3, 6];
11498
+ }, k = W.getAbsoluteUrl(s, ue.getCurrentUri()), this.logger.verbose("Redirecting main window to url specified in the request"), this.logger.verbosePii("Redirecting main window to: " + k), this.navigationClient.navigateInternal(k, _)) : this.logger.verbose("No main window navigation requested"), [3, 6];
11499
11499
  case 5:
11500
- throw E = N.sent(), a && a.close(), E instanceof D && E.setCorrelationId(this.correlationId), this.browserStorage.setInteractionInProgress(!1), this.eventHandler.emitEvent(q.LOGOUT_FAILURE, x.Popup, null, E), this.eventHandler.emitEvent(q.LOGOUT_END, x.Popup), u.cacheFailedRequest(E), E;
11500
+ throw E = N.sent(), a && a.close(), E instanceof D && E.setCorrelationId(this.correlationId), this.browserStorage.setInteractionInProgress(!1), this.eventHandler.emitEvent(q.LOGOUT_FAILURE, x.Popup, null, E), this.eventHandler.emitEvent(q.LOGOUT_END, x.Popup), d.cacheFailedRequest(E), E;
11501
11501
  case 6:
11502
11502
  return this.eventHandler.emitEvent(q.LOGOUT_END, x.Popup), [
11503
11503
  2
@@ -11515,17 +11515,17 @@ var Wi = (
11515
11515
  return new Promise(function(o, i) {
11516
11516
  var a = r.config.system.windowHashTimeout / r.config.system.pollIntervalMilliseconds, s = 0;
11517
11517
  r.logger.verbose("PopupHandler.monitorPopupForHash - polling started");
11518
- var u = setInterval(function() {
11518
+ var d = setInterval(function() {
11519
11519
  if (t.closed) {
11520
- r.logger.error("PopupHandler.monitorPopupForHash - window closed"), r.cleanPopup(), clearInterval(u), i(M.createUserCancelledError());
11520
+ r.logger.error("PopupHandler.monitorPopupForHash - window closed"), r.cleanPopup(), clearInterval(d), i(M.createUserCancelledError());
11521
11521
  return;
11522
11522
  }
11523
- var p = g.EMPTY_STRING, d = g.EMPTY_STRING;
11523
+ var p = g.EMPTY_STRING, u = g.EMPTY_STRING;
11524
11524
  try {
11525
- p = t.location.href, d = t.location.hash;
11525
+ p = t.location.href, u = t.location.hash;
11526
11526
  } catch {
11527
11527
  }
11528
- L.isEmpty(p) || p === "about:blank" || (r.logger.verbose("PopupHandler.monitorPopupForHash - popup window is on same origin as caller"), s++, d ? (r.logger.verbose("PopupHandler.monitorPopupForHash - found hash in url"), clearInterval(u), r.cleanPopup(t), W.hashContainsKnownProperties(d) ? (r.logger.verbose("PopupHandler.monitorPopupForHash - hash contains known properties, returning."), o(d)) : (r.logger.error("PopupHandler.monitorPopupForHash - found hash in url but it does not contain known properties. Check that your router is not changing the hash prematurely."), r.logger.errorPii("PopupHandler.monitorPopupForHash - hash found: " + d), i(M.createHashDoesNotContainKnownPropertiesError()))) : s > a && (r.logger.error("PopupHandler.monitorPopupForHash - unable to find hash in url, timing out"), clearInterval(u), i(M.createMonitorPopupTimeoutError())));
11528
+ L.isEmpty(p) || p === "about:blank" || (r.logger.verbose("PopupHandler.monitorPopupForHash - popup window is on same origin as caller"), s++, u ? (r.logger.verbose("PopupHandler.monitorPopupForHash - found hash in url"), clearInterval(d), r.cleanPopup(t), W.hashContainsKnownProperties(u) ? (r.logger.verbose("PopupHandler.monitorPopupForHash - hash contains known properties, returning."), o(u)) : (r.logger.error("PopupHandler.monitorPopupForHash - found hash in url but it does not contain known properties. Check that your router is not changing the hash prematurely."), r.logger.errorPii("PopupHandler.monitorPopupForHash - hash found: " + u), i(M.createHashDoesNotContainKnownPropertiesError()))) : s > a && (r.logger.error("PopupHandler.monitorPopupForHash - unable to find hash in url, timing out"), clearInterval(d), i(M.createMonitorPopupTimeoutError())));
11529
11529
  }, r.config.system.pollIntervalMilliseconds);
11530
11530
  });
11531
11531
  }, e.prototype.waitForLogoutPopup = function(t) {
@@ -11552,8 +11552,8 @@ var Wi = (
11552
11552
  throw this.logger.error("error opening popup " + i.message), this.browserStorage.setInteractionInProgress(!1), M.createPopupWindowError(i.toString());
11553
11553
  }
11554
11554
  }, e.prototype.openSizedPopup = function(t, r, o) {
11555
- var i, a, s, u, p = window.screenLeft ? window.screenLeft : window.screenX, d = window.screenTop ? window.screenTop : window.screenY, f = window.innerWidth || document.documentElement.clientWidth || document.body.clientWidth, _ = window.innerHeight || document.documentElement.clientHeight || document.body.clientHeight, k = (i = o.popupSize) === null || i === void 0 ? void 0 : i.width, E = (a = o.popupSize) === null || a === void 0 ? void 0 : a.height, N = (s = o.popupPosition) === null || s === void 0 ? void 0 : s.top, Q = (u = o.popupPosition) === null || u === void 0 ? void 0 : u.left;
11556
- return (!k || k < 0 || k > f) && (this.logger.verbose("Default popup window width used. Window width not configured or invalid."), k = Qe.POPUP_WIDTH), (!E || E < 0 || E > _) && (this.logger.verbose("Default popup window height used. Window height not configured or invalid."), E = Qe.POPUP_HEIGHT), (!N || N < 0 || N > _) && (this.logger.verbose("Default popup window top position used. Window top not configured or invalid."), N = Math.max(0, _ / 2 - Qe.POPUP_HEIGHT / 2 + d)), (!Q || Q < 0 || Q > f) && (this.logger.verbose("Default popup window left position used. Window left not configured or invalid."), Q = Math.max(0, f / 2 - Qe.POPUP_WIDTH / 2 + p)), window.open(t, r, "width=" + k + ", height=" + E + ", top=" + N + ", left=" + Q + ", scrollbars=yes");
11555
+ var i, a, s, d, p = window.screenLeft ? window.screenLeft : window.screenX, u = window.screenTop ? window.screenTop : window.screenY, f = window.innerWidth || document.documentElement.clientWidth || document.body.clientWidth, _ = window.innerHeight || document.documentElement.clientHeight || document.body.clientHeight, k = (i = o.popupSize) === null || i === void 0 ? void 0 : i.width, E = (a = o.popupSize) === null || a === void 0 ? void 0 : a.height, N = (s = o.popupPosition) === null || s === void 0 ? void 0 : s.top, Q = (d = o.popupPosition) === null || d === void 0 ? void 0 : d.left;
11556
+ return (!k || k < 0 || k > f) && (this.logger.verbose("Default popup window width used. Window width not configured or invalid."), k = Qe.POPUP_WIDTH), (!E || E < 0 || E > _) && (this.logger.verbose("Default popup window height used. Window height not configured or invalid."), E = Qe.POPUP_HEIGHT), (!N || N < 0 || N > _) && (this.logger.verbose("Default popup window top position used. Window top not configured or invalid."), N = Math.max(0, _ / 2 - Qe.POPUP_HEIGHT / 2 + u)), (!Q || Q < 0 || Q > f) && (this.logger.verbose("Default popup window left position used. Window left not configured or invalid."), Q = Math.max(0, f / 2 - Qe.POPUP_WIDTH / 2 + p)), window.open(t, r, "width=" + k + ", height=" + E + ", top=" + N + ", left=" + Q + ", scrollbars=yes");
11557
11557
  }, e.prototype.unloadWindow = function(t) {
11558
11558
  this.browserStorage.cleanRequestByInteractionType(x.Popup), this.currentWindow && this.currentWindow.close(), t.preventDefault();
11559
11559
  }, e.prototype.cleanPopup = function(t) {
@@ -11612,21 +11612,21 @@ function ea(n, e) {
11612
11612
  // Default cache migration to true if cache location is localStorage since entries are preserved across tabs/windows. Migration has little to no benefit in sessionStorage and memoryStorage
11613
11613
  cacheMigrationEnabled: !!(r && r.cacheLocation === pe.LocalStorage),
11614
11614
  claimsBasedCachingEnabled: !0
11615
- }, u = {
11615
+ }, d = {
11616
11616
  // eslint-disable-next-line @typescript-eslint/no-empty-function
11617
11617
  loggerCallback: function() {
11618
11618
  },
11619
11619
  logLevel: ve.Info,
11620
11620
  piiLoggingEnabled: !1
11621
11621
  }, p = B(B({}, no), {
11622
- loggerOptions: u,
11623
- networkClient: e ? de.getBrowserNetworkClient() : Di,
11622
+ loggerOptions: d,
11623
+ networkClient: e ? ue.getBrowserNetworkClient() : Di,
11624
11624
  navigationClient: new $i(),
11625
11625
  loadFrameTimeout: 0,
11626
11626
  // If loadFrameTimeout is provided, use that as default.
11627
11627
  windowHashTimeout: (o == null ? void 0 : o.loadFrameTimeout) || Ji,
11628
11628
  iframeHashTimeout: (o == null ? void 0 : o.loadFrameTimeout) || Jn,
11629
- navigateFrameWait: e && de.detectIEOrEdge() ? 500 : 0,
11629
+ navigateFrameWait: e && ue.detectIEOrEdge() ? 500 : 0,
11630
11630
  redirectNavigationTimeout: Xi,
11631
11631
  asyncPopups: !1,
11632
11632
  allowRedirectInIframe: !1,
@@ -11637,7 +11637,7 @@ function ea(n, e) {
11637
11637
  useMsrCrypto: !1,
11638
11638
  entropy: void 0
11639
11639
  }
11640
- }), d = B(B({}, o), { loggerOptions: (o == null ? void 0 : o.loggerOptions) || u }), f = {
11640
+ }), u = B(B({}, o), { loggerOptions: (o == null ? void 0 : o.loggerOptions) || d }), f = {
11641
11641
  application: {
11642
11642
  appName: g.EMPTY_STRING,
11643
11643
  appVersion: g.EMPTY_STRING
@@ -11645,7 +11645,7 @@ function ea(n, e) {
11645
11645
  }, _ = {
11646
11646
  auth: B(B({}, a), t),
11647
11647
  cache: B(B({}, s), r),
11648
- system: B(B({}, p), d),
11648
+ system: B(B({}, p), u),
11649
11649
  telemetry: B(B({}, f), i)
11650
11650
  };
11651
11651
  return _;
@@ -11656,8 +11656,8 @@ var uo = (
11656
11656
  function(n) {
11657
11657
  be(e, n);
11658
11658
  function e(t, r, o, i, a, s) {
11659
- var u = n.call(this, t, r, o, i, s) || this;
11660
- return u.navigateFrameWait = a.navigateFrameWait, u.pollIntervalMilliseconds = a.pollIntervalMilliseconds, u;
11659
+ var d = n.call(this, t, r, o, i, s) || this;
11660
+ return d.navigateFrameWait = a.navigateFrameWait, d.pollIntervalMilliseconds = a.pollIntervalMilliseconds, d;
11661
11661
  }
11662
11662
  return e.prototype.initiateAuthRequest = function(t) {
11663
11663
  return T(this, void 0, void 0, function() {
@@ -11678,17 +11678,17 @@ var uo = (
11678
11678
  var o = this;
11679
11679
  return this.performanceClient.addQueueMeasurement(b.SilentHandlerMonitorIframeForHash, this.authCodeRequest.correlationId), new Promise(function(i, a) {
11680
11680
  r < Jn && o.logger.warning("system.loadFrameTimeout or system.iframeHashTimeout set to lower (" + r + "ms) than the default (" + Jn + "ms). This may result in timeouts.");
11681
- var s = window.performance.now(), u = s + r, p = setInterval(function() {
11682
- if (window.performance.now() > u) {
11681
+ var s = window.performance.now(), d = s + r, p = setInterval(function() {
11682
+ if (window.performance.now() > d) {
11683
11683
  o.removeHiddenIframe(t), clearInterval(p), a(M.createMonitorIframeTimeoutError());
11684
11684
  return;
11685
11685
  }
11686
- var d = g.EMPTY_STRING, f = t.contentWindow;
11686
+ var u = g.EMPTY_STRING, f = t.contentWindow;
11687
11687
  try {
11688
- d = f ? f.location.href : g.EMPTY_STRING;
11688
+ u = f ? f.location.href : g.EMPTY_STRING;
11689
11689
  } catch {
11690
11690
  }
11691
- if (!L.isEmpty(d)) {
11691
+ if (!L.isEmpty(u)) {
11692
11692
  var _ = f ? f.location.hash : g.EMPTY_STRING;
11693
11693
  if (W.hashContainsKnownProperties(_)) {
11694
11694
  o.removeHiddenIframe(t), clearInterval(p), i(_);
@@ -11725,15 +11725,15 @@ var ta = (
11725
11725
  /** @class */
11726
11726
  function(n) {
11727
11727
  be(e, n);
11728
- function e(t, r, o, i, a, s, u, p, d, f, _) {
11728
+ function e(t, r, o, i, a, s, d, p, u, f, _) {
11729
11729
  var k = n.call(this, t, r, o, i, a, s, p, f, _) || this;
11730
- return k.apiId = u, k.nativeStorage = d, k;
11730
+ return k.apiId = d, k.nativeStorage = u, k;
11731
11731
  }
11732
11732
  return e.prototype.acquireToken = function(t) {
11733
11733
  return T(this, void 0, void 0, function() {
11734
11734
  var r, o, i, a, s;
11735
- return I(this, function(u) {
11736
- switch (u.label) {
11735
+ return I(this, function(d) {
11736
+ switch (d.label) {
11737
11737
  case 0:
11738
11738
  if (this.performanceClient.addQueueMeasurement(b.SilentIframeClientAcquireToken, t.correlationId), this.logger.verbose("acquireTokenByIframe called"), r = this.performanceClient.startMeasurement(b.SilentIframeClientAcquireToken, t.correlationId), L.isEmpty(t.loginHint) && L.isEmpty(t.sid) && (!t.account || L.isEmpty(t.account.username)) && this.logger.warning("No user hint provided. The authorization server may need more information to complete this request."), t.prompt && t.prompt !== Te.NONE && t.prompt !== Te.NO_SESSION)
11739
11739
  throw r.endMeasurement({
@@ -11741,11 +11741,11 @@ var ta = (
11741
11741
  }), M.createSilentPromptValueError(t.prompt);
11742
11742
  return this.performanceClient.setPreQueueTime(b.StandardInteractionClientInitializeAuthorizationRequest, t.correlationId), [4, this.initializeAuthorizationRequest(B(B({}, t), { prompt: t.prompt || Te.NONE }), x.Silent)];
11743
11743
  case 1:
11744
- o = u.sent(), this.browserStorage.updateCacheEntries(o.state, o.nonce, o.authority, o.loginHint || g.EMPTY_STRING, o.account || null), i = this.initializeServerTelemetryManager(this.apiId), u.label = 2;
11744
+ o = d.sent(), this.browserStorage.updateCacheEntries(o.state, o.nonce, o.authority, o.loginHint || g.EMPTY_STRING, o.account || null), i = this.initializeServerTelemetryManager(this.apiId), d.label = 2;
11745
11745
  case 2:
11746
- return u.trys.push([2, 5, , 6]), this.performanceClient.setPreQueueTime(b.StandardInteractionClientCreateAuthCodeClient, t.correlationId), [4, this.createAuthCodeClient(i, o.authority, o.azureCloudOptions)];
11746
+ return d.trys.push([2, 5, , 6]), this.performanceClient.setPreQueueTime(b.StandardInteractionClientCreateAuthCodeClient, t.correlationId), [4, this.createAuthCodeClient(i, o.authority, o.azureCloudOptions)];
11747
11747
  case 3:
11748
- return a = u.sent(), this.logger.verbose("Auth code client created"), this.performanceClient.setPreQueueTime(b.SilentIframeClientTokenHelper, t.correlationId), [4, this.silentTokenHelper(a, o).then(function(p) {
11748
+ return a = d.sent(), this.logger.verbose("Auth code client created"), this.performanceClient.setPreQueueTime(b.SilentIframeClientTokenHelper, t.correlationId), [4, this.silentTokenHelper(a, o).then(function(p) {
11749
11749
  return r.endMeasurement({
11750
11750
  success: !0,
11751
11751
  fromCache: !1,
@@ -11753,9 +11753,9 @@ var ta = (
11753
11753
  }), p;
11754
11754
  })];
11755
11755
  case 4:
11756
- return [2, u.sent()];
11756
+ return [2, d.sent()];
11757
11757
  case 5:
11758
- throw s = u.sent(), s instanceof D && s.setCorrelationId(this.correlationId), i.cacheFailedRequest(s), this.browserStorage.cleanRequestByState(o.state), r.endMeasurement({
11758
+ throw s = d.sent(), s instanceof D && s.setCorrelationId(this.correlationId), i.cacheFailedRequest(s), this.browserStorage.cleanRequestByState(o.state), r.endMeasurement({
11759
11759
  errorCode: s instanceof D && s.errorCode || void 0,
11760
11760
  subErrorCode: s instanceof D && s.subError || void 0,
11761
11761
  success: !1
@@ -11772,7 +11772,7 @@ var ta = (
11772
11772
  return Promise.reject(M.createSilentLogoutUnsupportedError());
11773
11773
  }, e.prototype.silentTokenHelper = function(t, r) {
11774
11774
  return T(this, void 0, void 0, function() {
11775
- var o, i, a, s, u, p, d, f, _, k = this;
11775
+ var o, i, a, s, d, p, u, f, _, k = this;
11776
11776
  return I(this, function(E) {
11777
11777
  switch (E.label) {
11778
11778
  case 0:
@@ -11784,14 +11784,14 @@ var ta = (
11784
11784
  case 3:
11785
11785
  return s = E.sent(), this.performanceClient.setPreQueueTime(b.SilentHandlerMonitorIframeForHash, r.correlationId), [4, a.monitorIframeForHash(s, this.config.system.iframeHashTimeout)];
11786
11786
  case 4:
11787
- if (u = E.sent(), p = W.getDeserializedHash(u), d = this.validateAndExtractStateFromHash(p, x.Silent, o.correlationId), p.accountId) {
11787
+ if (d = E.sent(), p = W.getDeserializedHash(d), u = this.validateAndExtractStateFromHash(p, x.Silent, o.correlationId), p.accountId) {
11788
11788
  if (this.logger.verbose("Account id found in hash, calling WAM for token"), !this.nativeMessageHandler)
11789
11789
  throw M.createNativeConnectionNotEstablishedError();
11790
- return f = new Ot(this.config, this.browserStorage, this.browserCrypto, this.logger, this.eventHandler, this.navigationClient, this.apiId, this.performanceClient, this.nativeMessageHandler, p.accountId, this.browserStorage, this.correlationId), _ = st.parseRequestState(this.browserCrypto, d).userRequestState, [2, f.acquireToken(B(B({}, r), { state: _, prompt: r.prompt || Te.NONE })).finally(function() {
11791
- k.browserStorage.cleanRequestByState(d);
11790
+ return f = new Ot(this.config, this.browserStorage, this.browserCrypto, this.logger, this.eventHandler, this.navigationClient, this.apiId, this.performanceClient, this.nativeMessageHandler, p.accountId, this.browserStorage, this.correlationId), _ = st.parseRequestState(this.browserCrypto, u).userRequestState, [2, f.acquireToken(B(B({}, r), { state: _, prompt: r.prompt || Te.NONE })).finally(function() {
11791
+ k.browserStorage.cleanRequestByState(u);
11792
11792
  })];
11793
11793
  }
11794
- return this.performanceClient.setPreQueueTime(b.HandleCodeResponseFromHash, r.correlationId), [2, a.handleCodeResponseFromHash(u, d, t.authority, this.networkClient)];
11794
+ return this.performanceClient.setPreQueueTime(b.HandleCodeResponseFromHash, r.correlationId), [2, a.handleCodeResponseFromHash(d, u, t.authority, this.networkClient)];
11795
11795
  }
11796
11796
  });
11797
11797
  });
@@ -11808,7 +11808,7 @@ var na = (
11808
11808
  }
11809
11809
  return e.prototype.acquireToken = function(t) {
11810
11810
  return T(this, void 0, void 0, function() {
11811
- var r, o, i, a, s, u = this;
11811
+ var r, o, i, a, s, d = this;
11812
11812
  return I(this, function(p) {
11813
11813
  switch (p.label) {
11814
11814
  case 0:
@@ -11816,18 +11816,18 @@ var na = (
11816
11816
  case 1:
11817
11817
  return r = B.apply(void 0, o.concat([p.sent()])), i = this.performanceClient.startMeasurement(b.SilentRefreshClientAcquireToken, r.correlationId), a = this.initializeServerTelemetryManager(oe.acquireTokenSilent_silentFlow), [4, this.createRefreshTokenClient(a, r.authority, r.azureCloudOptions)];
11818
11818
  case 2:
11819
- return s = p.sent(), this.logger.verbose("Refresh token client created"), this.performanceClient.setPreQueueTime(b.RefreshTokenClientAcquireTokenByRefreshToken, t.correlationId), [2, s.acquireTokenByRefreshToken(r).then(function(d) {
11819
+ return s = p.sent(), this.logger.verbose("Refresh token client created"), this.performanceClient.setPreQueueTime(b.RefreshTokenClientAcquireTokenByRefreshToken, t.correlationId), [2, s.acquireTokenByRefreshToken(r).then(function(u) {
11820
11820
  return i.endMeasurement({
11821
11821
  success: !0,
11822
- fromCache: d.fromCache,
11823
- requestId: d.requestId
11824
- }), d;
11825
- }).catch(function(d) {
11826
- throw d instanceof D && d.setCorrelationId(u.correlationId), a.cacheFailedRequest(d), i.endMeasurement({
11827
- errorCode: d.errorCode,
11828
- subErrorCode: d.subError,
11822
+ fromCache: u.fromCache,
11823
+ requestId: u.requestId
11824
+ }), u;
11825
+ }).catch(function(u) {
11826
+ throw u instanceof D && u.setCorrelationId(d.correlationId), a.cacheFailedRequest(u), i.endMeasurement({
11827
+ errorCode: u.errorCode,
11828
+ subErrorCode: u.subError,
11829
11829
  success: !1
11830
- }), d;
11830
+ }), u;
11831
11831
  })];
11832
11832
  }
11833
11833
  });
@@ -11878,8 +11878,8 @@ var ra = (
11878
11878
  error: o || null,
11879
11879
  timestamp: Date.now()
11880
11880
  };
11881
- this.logger.info("Emitting event: " + e), this.eventCallbacks.forEach(function(s, u) {
11882
- i.logger.verbose("Emitting event to callback " + u + ": " + e), s.apply(null, [a]);
11881
+ this.logger.info("Emitting event: " + e), this.eventCallbacks.forEach(function(s, d) {
11882
+ i.logger.verbose("Emitting event to callback " + d + ": " + e), s.apply(null, [a]);
11883
11883
  });
11884
11884
  }
11885
11885
  }, n.prototype.handleAccountCacheChange = function(e) {
@@ -11942,8 +11942,8 @@ var ct = (
11942
11942
  return n.stringToUtf8Arr = function(e) {
11943
11943
  for (var t, r = 0, o = e.length, i = 0; i < o; i++)
11944
11944
  t = e.charCodeAt(i), r += t < 128 ? 1 : t < 2048 ? 2 : t < 65536 ? 3 : t < 2097152 ? 4 : t < 67108864 ? 5 : 6;
11945
- for (var a = new Uint8Array(r), s = 0, u = 0; s < r; u++)
11946
- t = e.charCodeAt(u), t < 128 ? a[s++] = t : t < 2048 ? (a[s++] = 192 + (t >>> 6), a[s++] = 128 + (t & 63)) : t < 65536 ? (a[s++] = 224 + (t >>> 12), a[s++] = 128 + (t >>> 6 & 63), a[s++] = 128 + (t & 63)) : t < 2097152 ? (a[s++] = 240 + (t >>> 18), a[s++] = 128 + (t >>> 12 & 63), a[s++] = 128 + (t >>> 6 & 63), a[s++] = 128 + (t & 63)) : t < 67108864 ? (a[s++] = 248 + (t >>> 24), a[s++] = 128 + (t >>> 18 & 63), a[s++] = 128 + (t >>> 12 & 63), a[s++] = 128 + (t >>> 6 & 63), a[s++] = 128 + (t & 63)) : (a[s++] = 252 + (t >>> 30), a[s++] = 128 + (t >>> 24 & 63), a[s++] = 128 + (t >>> 18 & 63), a[s++] = 128 + (t >>> 12 & 63), a[s++] = 128 + (t >>> 6 & 63), a[s++] = 128 + (t & 63));
11945
+ for (var a = new Uint8Array(r), s = 0, d = 0; s < r; d++)
11946
+ t = e.charCodeAt(d), t < 128 ? a[s++] = t : t < 2048 ? (a[s++] = 192 + (t >>> 6), a[s++] = 128 + (t & 63)) : t < 65536 ? (a[s++] = 224 + (t >>> 12), a[s++] = 128 + (t >>> 6 & 63), a[s++] = 128 + (t & 63)) : t < 2097152 ? (a[s++] = 240 + (t >>> 18), a[s++] = 128 + (t >>> 12 & 63), a[s++] = 128 + (t >>> 6 & 63), a[s++] = 128 + (t & 63)) : t < 67108864 ? (a[s++] = 248 + (t >>> 24), a[s++] = 128 + (t >>> 18 & 63), a[s++] = 128 + (t >>> 12 & 63), a[s++] = 128 + (t >>> 6 & 63), a[s++] = 128 + (t & 63)) : (a[s++] = 252 + (t >>> 30), a[s++] = 128 + (t >>> 24 & 63), a[s++] = 128 + (t >>> 18 & 63), a[s++] = 128 + (t >>> 12 & 63), a[s++] = 128 + (t >>> 6 & 63), a[s++] = 128 + (t & 63));
11947
11947
  return a;
11948
11948
  }, n.stringToArrayBuffer = function(e) {
11949
11949
  for (var t = new ArrayBuffer(e.length), r = new Uint8Array(t), o = 0; o < e.length; o++)
@@ -12023,10 +12023,10 @@ var oa = (
12023
12023
  var r = this.base64DecToArr(t);
12024
12024
  return ct.utf8ArrToString(r);
12025
12025
  }, n.prototype.base64DecToArr = function(e, t) {
12026
- for (var r = e.replace(/[^A-Za-z0-9\+\/]/g, g.EMPTY_STRING), o = r.length, i = t ? Math.ceil((o * 3 + 1 >>> 2) / t) * t : o * 3 + 1 >>> 2, a = new Uint8Array(i), s = void 0, u = void 0, p = 0, d = 0, f = 0; f < o; f++)
12027
- if (u = f & 3, p |= this.b64ToUint6(r.charCodeAt(f)) << 18 - 6 * u, u === 3 || o - f === 1) {
12028
- for (s = 0; s < 3 && d < i; s++, d++)
12029
- a[d] = p >>> (16 >>> s & 24) & 255;
12026
+ for (var r = e.replace(/[^A-Za-z0-9\+\/]/g, g.EMPTY_STRING), o = r.length, i = t ? Math.ceil((o * 3 + 1 >>> 2) / t) * t : o * 3 + 1 >>> 2, a = new Uint8Array(i), s = void 0, d = void 0, p = 0, u = 0, f = 0; f < o; f++)
12027
+ if (d = f & 3, p |= this.b64ToUint6(r.charCodeAt(f)) << 18 - 6 * d, d === 3 || o - f === 1) {
12028
+ for (s = 0; s < 3 && u < i; s++, u++)
12029
+ a[u] = p >>> (16 >>> s & 24) & 255;
12030
12030
  p = 0;
12031
12031
  }
12032
12032
  return a;
@@ -12185,10 +12185,10 @@ var la = (
12185
12185
  return I(this, function(o) {
12186
12186
  return [2, new Promise(function(i, a) {
12187
12187
  var s = window.msCrypto.subtle.generateKey(e, t, r);
12188
- s.addEventListener("complete", function(u) {
12189
- i(u.target.result);
12190
- }), s.addEventListener("error", function(u) {
12191
- a(u);
12188
+ s.addEventListener("complete", function(d) {
12189
+ i(d.target.result);
12190
+ }), s.addEventListener("error", function(d) {
12191
+ a(d);
12192
12192
  });
12193
12193
  })];
12194
12194
  });
@@ -12199,9 +12199,9 @@ var la = (
12199
12199
  return [2, new Promise(function(r, o) {
12200
12200
  var i = window.msCrypto.subtle.exportKey(xt, e);
12201
12201
  i.addEventListener("complete", function(a) {
12202
- var s = a.target.result, u = ct.utf8ArrToString(new Uint8Array(s)).replace(/\r/g, g.EMPTY_STRING).replace(/\n/g, g.EMPTY_STRING).replace(/\t/g, g.EMPTY_STRING).split(" ").join(g.EMPTY_STRING).replace("\0", g.EMPTY_STRING);
12202
+ var s = a.target.result, d = ct.utf8ArrToString(new Uint8Array(s)).replace(/\r/g, g.EMPTY_STRING).replace(/\n/g, g.EMPTY_STRING).replace(/\t/g, g.EMPTY_STRING).split(" ").join(g.EMPTY_STRING).replace("\0", g.EMPTY_STRING);
12203
12203
  try {
12204
- r(JSON.parse(u));
12204
+ r(JSON.parse(d));
12205
12205
  } catch (p) {
12206
12206
  o(p);
12207
12207
  }
@@ -12215,11 +12215,11 @@ var la = (
12215
12215
  return T(this, void 0, void 0, function() {
12216
12216
  var i, a;
12217
12217
  return I(this, function(s) {
12218
- return i = ct.getSortedObjectString(e), a = ct.stringToArrayBuffer(i), [2, new Promise(function(u, p) {
12219
- var d = window.msCrypto.subtle.importKey(xt, a, t, r, o);
12220
- d.addEventListener("complete", function(f) {
12221
- u(f.target.result);
12222
- }), d.addEventListener("error", function(f) {
12218
+ return i = ct.getSortedObjectString(e), a = ct.stringToArrayBuffer(i), [2, new Promise(function(d, p) {
12219
+ var u = window.msCrypto.subtle.importKey(xt, a, t, r, o);
12220
+ u.addEventListener("complete", function(f) {
12221
+ d(f.target.result);
12222
+ }), u.addEventListener("error", function(f) {
12223
12223
  p(f);
12224
12224
  });
12225
12225
  })];
@@ -12230,10 +12230,10 @@ var la = (
12230
12230
  return I(this, function(o) {
12231
12231
  return [2, new Promise(function(i, a) {
12232
12232
  var s = window.msCrypto.subtle.sign(e, t, r);
12233
- s.addEventListener("complete", function(u) {
12234
- i(u.target.result);
12235
- }), s.addEventListener("error", function(u) {
12236
- a(u);
12233
+ s.addEventListener("complete", function(d) {
12234
+ i(d.target.result);
12235
+ }), s.addEventListener("error", function(d) {
12236
+ a(d);
12237
12237
  });
12238
12238
  })];
12239
12239
  });
@@ -12255,7 +12255,7 @@ var la = (
12255
12255
  }()
12256
12256
  );
12257
12257
  /*! @azure/msal-browser v2.38.3 2023-10-27 */
12258
- var ua = "RSASSA-PKCS1-v1_5", xr = "SHA-256", da = 2048, pa = new Uint8Array([1, 0, 1]), mo = (
12258
+ var da = "RSASSA-PKCS1-v1_5", xr = "SHA-256", ua = 2048, pa = new Uint8Array([1, 0, 1]), mo = (
12259
12259
  /** @class */
12260
12260
  function() {
12261
12261
  function n(e, t) {
@@ -12274,9 +12274,9 @@ var ua = "RSASSA-PKCS1-v1_5", xr = "SHA-256", da = 2048, pa = new Uint8Array([1,
12274
12274
  this.logger.verbose("BrowserCrypto: Entropy provided"), this.subtleCrypto.initPrng(this.cryptoOptions.entropy);
12275
12275
  }
12276
12276
  this.keygenAlgorithmOptions = {
12277
- name: ua,
12277
+ name: da,
12278
12278
  hash: xr,
12279
- modulusLength: da,
12279
+ modulusLength: ua,
12280
12280
  publicExponent: pa
12281
12281
  };
12282
12282
  }
@@ -12377,11 +12377,11 @@ var ha = (
12377
12377
  return r.sent(), [2, new Promise(function(o, i) {
12378
12378
  if (!t.db)
12379
12379
  return i(M.createDatabaseNotOpenError());
12380
- var a = t.db.transaction([t.tableName], "readonly"), s = a.objectStore(t.tableName), u = s.get(e);
12381
- u.addEventListener("success", function(p) {
12382
- var d = p;
12383
- t.closeConnection(), o(d.target.result);
12384
- }), u.addEventListener("error", function(p) {
12380
+ var a = t.db.transaction([t.tableName], "readonly"), s = a.objectStore(t.tableName), d = s.get(e);
12381
+ d.addEventListener("success", function(p) {
12382
+ var u = p;
12383
+ t.closeConnection(), o(u.target.result);
12384
+ }), d.addEventListener("error", function(p) {
12385
12385
  t.closeConnection(), i(p);
12386
12386
  });
12387
12387
  })];
@@ -12399,11 +12399,11 @@ var ha = (
12399
12399
  return o.sent(), [2, new Promise(function(i, a) {
12400
12400
  if (!r.db)
12401
12401
  return a(M.createDatabaseNotOpenError());
12402
- var s = r.db.transaction([r.tableName], "readwrite"), u = s.objectStore(r.tableName), p = u.put(t, e);
12402
+ var s = r.db.transaction([r.tableName], "readwrite"), d = s.objectStore(r.tableName), p = d.put(t, e);
12403
12403
  p.addEventListener("success", function() {
12404
12404
  r.closeConnection(), i();
12405
- }), p.addEventListener("error", function(d) {
12406
- r.closeConnection(), a(d);
12405
+ }), p.addEventListener("error", function(u) {
12406
+ r.closeConnection(), a(u);
12407
12407
  });
12408
12408
  })];
12409
12409
  }
@@ -12420,10 +12420,10 @@ var ha = (
12420
12420
  return r.sent(), [2, new Promise(function(o, i) {
12421
12421
  if (!t.db)
12422
12422
  return i(M.createDatabaseNotOpenError());
12423
- var a = t.db.transaction([t.tableName], "readwrite"), s = a.objectStore(t.tableName), u = s.delete(e);
12424
- u.addEventListener("success", function() {
12423
+ var a = t.db.transaction([t.tableName], "readwrite"), s = a.objectStore(t.tableName), d = s.delete(e);
12424
+ d.addEventListener("success", function() {
12425
12425
  t.closeConnection(), o();
12426
- }), u.addEventListener("error", function(p) {
12426
+ }), d.addEventListener("error", function(p) {
12427
12427
  t.closeConnection(), i(p);
12428
12428
  });
12429
12429
  })];
@@ -12442,11 +12442,11 @@ var ha = (
12442
12442
  if (!e.db)
12443
12443
  return o(M.createDatabaseNotOpenError());
12444
12444
  var i = e.db.transaction([e.tableName], "readonly"), a = i.objectStore(e.tableName), s = a.getAllKeys();
12445
- s.addEventListener("success", function(u) {
12446
- var p = u;
12445
+ s.addEventListener("success", function(d) {
12446
+ var p = d;
12447
12447
  e.closeConnection(), r(p.target.result);
12448
- }), s.addEventListener("error", function(u) {
12449
- e.closeConnection(), o(u);
12448
+ }), s.addEventListener("error", function(d) {
12449
+ e.closeConnection(), o(d);
12450
12450
  });
12451
12451
  })];
12452
12452
  }
@@ -12463,11 +12463,11 @@ var ha = (
12463
12463
  return r.sent(), [2, new Promise(function(o, i) {
12464
12464
  if (!t.db)
12465
12465
  return i(M.createDatabaseNotOpenError());
12466
- var a = t.db.transaction([t.tableName], "readonly"), s = a.objectStore(t.tableName), u = s.count(e);
12467
- u.addEventListener("success", function(p) {
12468
- var d = p;
12469
- t.closeConnection(), o(d.target.result === 1);
12470
- }), u.addEventListener("error", function(p) {
12466
+ var a = t.db.transaction([t.tableName], "readonly"), s = a.objectStore(t.tableName), d = s.count(e);
12467
+ d.addEventListener("success", function(p) {
12468
+ var u = p;
12469
+ t.closeConnection(), o(u.target.result === 1);
12470
+ }), d.addEventListener("error", function(p) {
12471
12471
  t.closeConnection(), i(p);
12472
12472
  });
12473
12473
  })];
@@ -12687,7 +12687,7 @@ var fa = (
12687
12687
  }, n.prototype.getPublicKeyThumbprint = function(e) {
12688
12688
  var t;
12689
12689
  return T(this, void 0, void 0, function() {
12690
- var r, o, i, a, s, u, p, d;
12690
+ var r, o, i, a, s, d, p, u;
12691
12691
  return I(this, function(f) {
12692
12692
  switch (f.label) {
12693
12693
  case 0:
@@ -12701,12 +12701,12 @@ var fa = (
12701
12701
  n: i.n
12702
12702
  }, s = ct.getSortedObjectString(a), [4, this.hashString(s)];
12703
12703
  case 3:
12704
- return u = f.sent(), [4, this.browserCrypto.exportJwk(o.privateKey)];
12704
+ return d = f.sent(), [4, this.browserCrypto.exportJwk(o.privateKey)];
12705
12705
  case 4:
12706
12706
  return p = f.sent(), [4, this.browserCrypto.importJwk(p, !1, ["sign"])];
12707
12707
  case 5:
12708
- return d = f.sent(), [4, this.cache.asymmetricKeys.setItem(u, {
12709
- privateKey: d,
12708
+ return u = f.sent(), [4, this.cache.asymmetricKeys.setItem(d, {
12709
+ privateKey: u,
12710
12710
  publicKey: o.publicKey,
12711
12711
  requestMethod: e.resourceRequestMethod,
12712
12712
  requestUri: e.resourceRequestUri
@@ -12714,7 +12714,7 @@ var fa = (
12714
12714
  case 6:
12715
12715
  return f.sent(), r && r.endMeasurement({
12716
12716
  success: !0
12717
- }), [2, u];
12717
+ }), [2, d];
12718
12718
  }
12719
12719
  });
12720
12720
  });
@@ -12746,7 +12746,7 @@ var fa = (
12746
12746
  }, n.prototype.signJwt = function(e, t, r) {
12747
12747
  var o;
12748
12748
  return T(this, void 0, void 0, function() {
12749
- var i, a, s, u, p, d, f, _, k, E, N, Q, X;
12749
+ var i, a, s, d, p, u, f, _, k, E, N, Q, X;
12750
12750
  return I(this, function(G) {
12751
12751
  switch (G.label) {
12752
12752
  case 0:
@@ -12756,8 +12756,8 @@ var fa = (
12756
12756
  throw M.createSigningKeyNotFoundInStorageError(t);
12757
12757
  return [4, this.browserCrypto.exportJwk(a.publicKey)];
12758
12758
  case 2:
12759
- return s = G.sent(), u = ct.getSortedObjectString(s), p = this.b64Encode.urlEncode(JSON.stringify({ kid: t })), d = Hi.getShrHeaderString({ kid: p, alg: s.alg }), f = this.b64Encode.urlEncode(d), e.cnf = {
12760
- jwk: JSON.parse(u)
12759
+ return s = G.sent(), d = ct.getSortedObjectString(s), p = this.b64Encode.urlEncode(JSON.stringify({ kid: t })), u = Hi.getShrHeaderString({ kid: p, alg: s.alg }), f = this.b64Encode.urlEncode(u), e.cnf = {
12760
+ jwk: JSON.parse(d)
12761
12761
  }, _ = this.b64Encode.urlEncode(JSON.stringify(e)), k = f + "." + _, E = ct.stringToArrayBuffer(k), [4, this.browserCrypto.sign(a.privateKey, E)];
12762
12762
  case 3:
12763
12763
  return N = G.sent(), Q = this.b64Encode.urlEncodeArr(new Uint8Array(N)), X = k + "." + Q, i && i.endMeasurement({
@@ -12836,9 +12836,9 @@ var ga = (
12836
12836
  /** @class */
12837
12837
  function(n) {
12838
12838
  be(e, n);
12839
- function e(t, r, o, i, a, s, u) {
12839
+ function e(t, r, o, i, a, s, d) {
12840
12840
  var p = n.call(this, t, r, o, i, a, s) || this;
12841
- return p.browserCrypto = new mo(p.logger, u), p.guidGenerator = new po(p.browserCrypto), p;
12841
+ return p.browserCrypto = new mo(p.logger, d), p.guidGenerator = new po(p.browserCrypto), p;
12842
12842
  }
12843
12843
  return e.prototype.startPerformanceMeasuremeant = function(t, r) {
12844
12844
  return new Dr(t, r);
@@ -12857,8 +12857,8 @@ var ga = (
12857
12857
  }, e.prototype.startMeasurement = function(t, r) {
12858
12858
  var o = this, i = this.getPageVisibility(), a = n.prototype.startMeasurement.call(this, t, r);
12859
12859
  return B(B({}, a), { endMeasurement: function(s) {
12860
- var u = a.endMeasurement(B({ startPageVisibility: i, endPageVisibility: o.getPageVisibility() }, s));
12861
- return o.deleteIncompleteSubMeasurements(a), u;
12860
+ var d = a.endMeasurement(B({ startPageVisibility: i, endPageVisibility: o.getPageVisibility() }, s));
12861
+ return o.deleteIncompleteSubMeasurements(a), d;
12862
12862
  }, discardMeasurement: function() {
12863
12863
  a.discardMeasurement(), o.deleteIncompleteSubMeasurements(a), a.measurement.flushMeasurement();
12864
12864
  } });
@@ -12884,8 +12884,8 @@ var ga = (
12884
12884
  }
12885
12885
  var a = n.prototype.getPreQueueTime.call(this, t, r);
12886
12886
  if (a) {
12887
- var s = window.performance.now(), u = o || n.prototype.calculateQueuedTime.call(this, a, s);
12888
- return n.prototype.addQueueMeasurement.call(this, t, r, u, i);
12887
+ var s = window.performance.now(), d = o || n.prototype.calculateQueuedTime.call(this, a, s);
12888
+ return n.prototype.addQueueMeasurement.call(this, t, r, d, i);
12889
12889
  }
12890
12890
  }, e;
12891
12891
  }(ao)
@@ -12905,14 +12905,14 @@ var _a = (
12905
12905
  var s = this.loadAccount(o, e.account.environment, void 0, void 0, e.account.homeAccountId);
12906
12906
  i = new Zt(s, this.loadIdToken(o, s.homeAccountId, e.account.environment, e.account.tenantId), this.loadAccessToken(e, t, s.homeAccountId, e.account.environment, e.account.tenantId, r), this.loadRefreshToken(e, t, s.homeAccountId, e.account.environment));
12907
12907
  } else if (e.authority) {
12908
- var u = rn.generateAuthority(e.authority, e.azureCloudOptions), p = {
12908
+ var d = rn.generateAuthority(e.authority, e.azureCloudOptions), p = {
12909
12909
  protocolMode: this.config.auth.protocolMode,
12910
12910
  knownAuthorities: this.config.auth.knownAuthorities,
12911
12911
  cloudDiscoveryMetadata: this.config.auth.cloudDiscoveryMetadata,
12912
12912
  authorityMetadata: this.config.auth.authorityMetadata,
12913
12913
  skipAuthorityMetadataCache: this.config.auth.skipAuthorityMetadataCache
12914
12914
  };
12915
- if (a = new rn(u, this.config.system.networkClient, this.storage, p, this.logger), r.clientInfo) {
12915
+ if (a = new rn(d, this.config.system.networkClient, this.storage, p, this.logger), r.clientInfo) {
12916
12916
  this.logger.trace("TokenCache - homeAccountId from options");
12917
12917
  var s = this.loadAccount(o, a.hostnameAndPort, r.clientInfo, a.authorityType);
12918
12918
  i = new Zt(s, this.loadIdToken(o, s.homeAccountId, a.hostnameAndPort, a.tenant), this.loadAccessToken(e, t, s.homeAccountId, a.hostnameAndPort, a.tenant, r), this.loadRefreshToken(e, t, s.homeAccountId, a.hostnameAndPort));
@@ -12945,9 +12945,9 @@ var _a = (
12945
12945
  throw M.createUnableToLoadTokenError("Please ensure server response includes expires_in value.");
12946
12946
  if (!a.extendedExpiresOn)
12947
12947
  throw M.createUnableToLoadTokenError("Please provide an extendedExpiresOn value in the options.");
12948
- var s = new Ee(e.scopes).printScopes(), u = a.expiresOn || t.expires_in + (/* @__PURE__ */ new Date()).getTime() / 1e3, p = a.extendedExpiresOn, d = _t.createAccessTokenEntity(r, o, t.access_token, this.config.auth.clientId, i, s, u, p, this.cryptoObj);
12948
+ var s = new Ee(e.scopes).printScopes(), d = a.expiresOn || t.expires_in + (/* @__PURE__ */ new Date()).getTime() / 1e3, p = a.extendedExpiresOn, u = _t.createAccessTokenEntity(r, o, t.access_token, this.config.auth.clientId, i, s, d, p, this.cryptoObj);
12949
12949
  if (this.isBrowserEnvironment)
12950
- return this.logger.verbose("TokenCache - loading access token"), this.storage.setAccessTokenCredential(d), d;
12950
+ return this.logger.verbose("TokenCache - loading access token"), this.storage.setAccessTokenCredential(u), u;
12951
12951
  throw M.createUnableToLoadTokenError("loadExternalTokens is designed to work in browser environments only.");
12952
12952
  }, n.prototype.loadRefreshToken = function(e, t, r, o) {
12953
12953
  if (!t.refresh_token)
@@ -12957,8 +12957,8 @@ var _a = (
12957
12957
  return this.logger.verbose("TokenCache - loading refresh token"), this.storage.setRefreshTokenCredential(i), i;
12958
12958
  throw M.createUnableToLoadTokenError("loadExternalTokens is designed to work in browser environments only.");
12959
12959
  }, n.prototype.generateAuthenticationResult = function(e, t, r, o) {
12960
- var i, a, s, u = g.EMPTY_STRING, p = [], d = null, f;
12961
- r != null && r.accessToken && (u = r.accessToken.secret, p = Ee.fromString(r.accessToken.target).asArray(), d = new Date(Number(r.accessToken.expiresOn) * 1e3), f = new Date(Number(r.accessToken.extendedExpiresOn) * 1e3));
12960
+ var i, a, s, d = g.EMPTY_STRING, p = [], u = null, f;
12961
+ r != null && r.accessToken && (d = r.accessToken.secret, p = Ee.fromString(r.accessToken.target).asArray(), u = new Date(Number(r.accessToken.expiresOn) * 1e3), f = new Date(Number(r.accessToken.extendedExpiresOn) * 1e3));
12962
12962
  var _ = (t == null ? void 0 : t.claims.oid) || (t == null ? void 0 : t.claims.sub) || g.EMPTY_STRING, k = (t == null ? void 0 : t.claims.tid) || g.EMPTY_STRING;
12963
12963
  return {
12964
12964
  authority: o ? o.canonicalAuthority : g.EMPTY_STRING,
@@ -12968,9 +12968,9 @@ var _a = (
12968
12968
  account: r != null && r.account ? r.account.getAccountInfo() : null,
12969
12969
  idToken: t ? t.rawToken : g.EMPTY_STRING,
12970
12970
  idTokenClaims: t ? t.claims : {},
12971
- accessToken: u,
12971
+ accessToken: d,
12972
12972
  fromCache: !0,
12973
- expiresOn: d,
12973
+ expiresOn: u,
12974
12974
  correlationId: e.correlationId || g.EMPTY_STRING,
12975
12975
  requestId: g.EMPTY_STRING,
12976
12976
  extExpiresOn: f,
@@ -13002,32 +13002,32 @@ var ya = (
13002
13002
  /** @class */
13003
13003
  function(n) {
13004
13004
  be(e, n);
13005
- function e(t, r, o, i, a, s, u, p, d, f) {
13006
- var _ = n.call(this, t, r, o, i, a, s, p, d, f) || this;
13007
- return _.apiId = u, _;
13005
+ function e(t, r, o, i, a, s, d, p, u, f) {
13006
+ var _ = n.call(this, t, r, o, i, a, s, p, u, f) || this;
13007
+ return _.apiId = d, _;
13008
13008
  }
13009
13009
  return e.prototype.acquireToken = function(t) {
13010
13010
  return T(this, void 0, void 0, function() {
13011
- var r, o, i, a, s, u, p;
13012
- return I(this, function(d) {
13013
- switch (d.label) {
13011
+ var r, o, i, a, s, d, p;
13012
+ return I(this, function(u) {
13013
+ switch (u.label) {
13014
13014
  case 0:
13015
13015
  if (this.logger.trace("SilentAuthCodeClient.acquireToken called"), !t.code)
13016
13016
  throw M.createAuthCodeRequiredError();
13017
13017
  return this.performanceClient.setPreQueueTime(b.StandardInteractionClientInitializeAuthorizationRequest, t.correlationId), [4, this.initializeAuthorizationRequest(t, x.Silent)];
13018
13018
  case 1:
13019
- r = d.sent(), this.browserStorage.updateCacheEntries(r.state, r.nonce, r.authority, r.loginHint || g.EMPTY_STRING, r.account || null), o = this.initializeServerTelemetryManager(this.apiId), d.label = 2;
13019
+ r = u.sent(), this.browserStorage.updateCacheEntries(r.state, r.nonce, r.authority, r.loginHint || g.EMPTY_STRING, r.account || null), o = this.initializeServerTelemetryManager(this.apiId), u.label = 2;
13020
13020
  case 2:
13021
- return d.trys.push([2, 4, , 5]), i = B(B({}, r), { code: t.code }), this.performanceClient.setPreQueueTime(b.StandardInteractionClientGetClientConfiguration, t.correlationId), [4, this.getClientConfiguration(o, r.authority)];
13021
+ return u.trys.push([2, 4, , 5]), i = B(B({}, r), { code: t.code }), this.performanceClient.setPreQueueTime(b.StandardInteractionClientGetClientConfiguration, t.correlationId), [4, this.getClientConfiguration(o, r.authority)];
13022
13022
  case 3:
13023
- return a = d.sent(), s = new va(a), this.logger.verbose("Auth code client created"), u = new uo(s, this.browserStorage, i, this.logger, this.config.system, this.performanceClient), [2, u.handleCodeResponseFromServer({
13023
+ return a = u.sent(), s = new va(a), this.logger.verbose("Auth code client created"), d = new uo(s, this.browserStorage, i, this.logger, this.config.system, this.performanceClient), [2, d.handleCodeResponseFromServer({
13024
13024
  code: t.code,
13025
13025
  msgraph_host: t.msGraphHost,
13026
13026
  cloud_graph_host_name: t.cloudGraphHostName,
13027
13027
  cloud_instance_host_name: t.cloudInstanceHostName
13028
13028
  }, r.state, s.authority, this.networkClient, !1)];
13029
13029
  case 4:
13030
- throw p = d.sent(), p instanceof D && p.setCorrelationId(this.correlationId), o.cacheFailedRequest(p), this.browserStorage.cleanRequestByState(r.state), p;
13030
+ throw p = u.sent(), p instanceof D && p.setCorrelationId(this.correlationId), o.cacheFailedRequest(p), this.browserStorage.cleanRequestByState(r.state), p;
13031
13031
  case 5:
13032
13032
  return [
13033
13033
  2
@@ -13091,32 +13091,32 @@ var ka = (
13091
13091
  });
13092
13092
  }, n.prototype.handleRedirectPromise = function(e) {
13093
13093
  return T(this, void 0, void 0, function() {
13094
- var t, r, o, i, a, s, u, p, d = this;
13094
+ var t, r, o, i, a, s, d, p, u = this;
13095
13095
  return I(this, function(f) {
13096
- return this.logger.verbose("handleRedirectPromise called"), de.blockNativeBrokerCalledBeforeInitialized(this.config.system.allowNativeBroker, this.initialized), t = this.getAllAccounts(), this.isBrowserEnvironment ? (r = e || g.EMPTY_STRING, o = this.redirectResponse.get(r), typeof o > "u" ? (this.eventHandler.emitEvent(q.HANDLE_REDIRECT_START, x.Redirect), this.logger.verbose("handleRedirectPromise has been called for the first time, storing the promise"), i = this.browserStorage.getCachedNativeRequest(), a = void 0, i && yt.isNativeAvailable(this.config, this.logger, this.nativeExtensionProvider) && this.nativeExtensionProvider && !e ? (this.logger.trace("handleRedirectPromise - acquiring token from native platform"), s = new Ot(this.config, this.browserStorage, this.browserCrypto, this.logger, this.eventHandler, this.navigationClient, oe.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(J.CORRELATION_ID, !0) || g.EMPTY_STRING, p = this.createRedirectClient(u), a = p.handleRedirectPromise(e)), o = a.then(function(_) {
13096
+ return this.logger.verbose("handleRedirectPromise called"), ue.blockNativeBrokerCalledBeforeInitialized(this.config.system.allowNativeBroker, this.initialized), t = this.getAllAccounts(), this.isBrowserEnvironment ? (r = e || g.EMPTY_STRING, o = this.redirectResponse.get(r), typeof o > "u" ? (this.eventHandler.emitEvent(q.HANDLE_REDIRECT_START, x.Redirect), this.logger.verbose("handleRedirectPromise has been called for the first time, storing the promise"), i = this.browserStorage.getCachedNativeRequest(), a = void 0, i && yt.isNativeAvailable(this.config, this.logger, this.nativeExtensionProvider) && this.nativeExtensionProvider && !e ? (this.logger.trace("handleRedirectPromise - acquiring token from native platform"), s = new Ot(this.config, this.browserStorage, this.browserCrypto, this.logger, this.eventHandler, this.navigationClient, oe.handleRedirectPromise, this.performanceClient, this.nativeExtensionProvider, i.accountId, this.nativeInternalStorage, i.correlationId), a = s.handleRedirectPromise()) : (this.logger.trace("handleRedirectPromise - acquiring token from web flow"), d = this.browserStorage.getTemporaryCache(J.CORRELATION_ID, !0) || g.EMPTY_STRING, p = this.createRedirectClient(d), a = p.handleRedirectPromise(e)), o = a.then(function(_) {
13097
13097
  if (_) {
13098
- var k = t.length < d.getAllAccounts().length;
13099
- k ? (d.eventHandler.emitEvent(q.LOGIN_SUCCESS, x.Redirect, _), d.logger.verbose("handleRedirectResponse returned result, login success")) : (d.eventHandler.emitEvent(q.ACQUIRE_TOKEN_SUCCESS, x.Redirect, _), d.logger.verbose("handleRedirectResponse returned result, acquire token success"));
13098
+ var k = t.length < u.getAllAccounts().length;
13099
+ k ? (u.eventHandler.emitEvent(q.LOGIN_SUCCESS, x.Redirect, _), u.logger.verbose("handleRedirectResponse returned result, login success")) : (u.eventHandler.emitEvent(q.ACQUIRE_TOKEN_SUCCESS, x.Redirect, _), u.logger.verbose("handleRedirectResponse returned result, acquire token success"));
13100
13100
  }
13101
- return d.eventHandler.emitEvent(q.HANDLE_REDIRECT_END, x.Redirect), _;
13101
+ return u.eventHandler.emitEvent(q.HANDLE_REDIRECT_END, x.Redirect), _;
13102
13102
  }).catch(function(_) {
13103
- throw t.length > 0 ? d.eventHandler.emitEvent(q.ACQUIRE_TOKEN_FAILURE, x.Redirect, null, _) : d.eventHandler.emitEvent(q.LOGIN_FAILURE, x.Redirect, null, _), d.eventHandler.emitEvent(q.HANDLE_REDIRECT_END, x.Redirect), _;
13103
+ throw t.length > 0 ? u.eventHandler.emitEvent(q.ACQUIRE_TOKEN_FAILURE, x.Redirect, null, _) : u.eventHandler.emitEvent(q.LOGIN_FAILURE, x.Redirect, null, _), u.eventHandler.emitEvent(q.HANDLE_REDIRECT_END, x.Redirect), _;
13104
13104
  }), this.redirectResponse.set(r, o)) : this.logger.verbose("handleRedirectPromise has been called previously, returning the result from the first call"), [2, o]) : (this.logger.verbose("handleRedirectPromise returns null, not browser environment"), [2, null]);
13105
13105
  });
13106
13106
  });
13107
13107
  }, n.prototype.acquireTokenRedirect = function(e) {
13108
13108
  return T(this, void 0, void 0, function() {
13109
13109
  var t, r, o, i, a, s = this;
13110
- return I(this, function(u) {
13110
+ return I(this, function(d) {
13111
13111
  return t = this.getRequestCorrelationId(e), this.logger.verbose("acquireTokenRedirect called", t), this.preflightBrowserEnvironmentCheck(x.Redirect), r = this.getAllAccounts().length > 0, r ? this.eventHandler.emitEvent(q.ACQUIRE_TOKEN_START, x.Redirect, e) : this.eventHandler.emitEvent(q.LOGIN_START, x.Redirect, e), this.nativeExtensionProvider && this.canUseNative(e) ? (i = new Ot(this.config, this.browserStorage, this.browserCrypto, this.logger, this.eventHandler, this.navigationClient, oe.acquireTokenRedirect, this.performanceClient, this.nativeExtensionProvider, this.getNativeAccountId(e), this.nativeInternalStorage, e.correlationId), o = i.acquireTokenRedirect(e).catch(function(p) {
13112
13112
  if (p instanceof tt && p.isFatal()) {
13113
13113
  s.nativeExtensionProvider = void 0;
13114
- var d = s.createRedirectClient(e.correlationId);
13115
- return d.acquireToken(e);
13114
+ var u = s.createRedirectClient(e.correlationId);
13115
+ return u.acquireToken(e);
13116
13116
  } else if (p instanceof Ye) {
13117
13117
  s.logger.verbose("acquireTokenRedirect - Resolving interaction required error thrown by native broker by falling back to web flow");
13118
- var d = s.createRedirectClient(e.correlationId);
13119
- return d.acquireToken(e);
13118
+ var u = s.createRedirectClient(e.correlationId);
13119
+ return u.acquireToken(e);
13120
13120
  }
13121
13121
  throw s.browserStorage.setInteractionInProgress(!1), p;
13122
13122
  })) : (a = this.createRedirectClient(e.correlationId), o = a.acquireToken(e)), [2, o.catch(function(p) {
@@ -13128,50 +13128,50 @@ var ka = (
13128
13128
  var t = this, r = this.getRequestCorrelationId(e), o = this.performanceClient.startMeasurement(b.AcquireTokenPopup, r);
13129
13129
  try {
13130
13130
  this.logger.verbose("acquireTokenPopup called", r), this.preflightBrowserEnvironmentCheck(x.Popup);
13131
- } catch (u) {
13132
- return Promise.reject(u);
13131
+ } catch (d) {
13132
+ return Promise.reject(d);
13133
13133
  }
13134
13134
  var i = this.getAllAccounts();
13135
13135
  i.length > 0 ? this.eventHandler.emitEvent(q.ACQUIRE_TOKEN_START, x.Popup, e) : this.eventHandler.emitEvent(q.LOGIN_START, x.Popup, e);
13136
13136
  var a;
13137
13137
  if (this.canUseNative(e))
13138
- a = this.acquireTokenNative(e, oe.acquireTokenPopup).then(function(u) {
13138
+ a = this.acquireTokenNative(e, oe.acquireTokenPopup).then(function(d) {
13139
13139
  return t.browserStorage.setInteractionInProgress(!1), o.endMeasurement({
13140
13140
  success: !0,
13141
13141
  isNativeBroker: !0,
13142
- requestId: u.requestId
13143
- }), u;
13144
- }).catch(function(u) {
13145
- if (u instanceof tt && u.isFatal()) {
13142
+ requestId: d.requestId
13143
+ }), d;
13144
+ }).catch(function(d) {
13145
+ if (d instanceof tt && d.isFatal()) {
13146
13146
  t.nativeExtensionProvider = void 0;
13147
13147
  var p = t.createPopupClient(e.correlationId);
13148
13148
  return p.acquireToken(e);
13149
- } else if (u instanceof Ye) {
13149
+ } else if (d instanceof Ye) {
13150
13150
  t.logger.verbose("acquireTokenPopup - Resolving interaction required error thrown by native broker by falling back to web flow");
13151
13151
  var p = t.createPopupClient(e.correlationId);
13152
13152
  return p.acquireToken(e);
13153
13153
  }
13154
- throw t.browserStorage.setInteractionInProgress(!1), u;
13154
+ throw t.browserStorage.setInteractionInProgress(!1), d;
13155
13155
  });
13156
13156
  else {
13157
13157
  var s = this.createPopupClient(e.correlationId);
13158
13158
  a = s.acquireToken(e);
13159
13159
  }
13160
- return a.then(function(u) {
13160
+ return a.then(function(d) {
13161
13161
  var p = i.length < t.getAllAccounts().length;
13162
- return p ? t.eventHandler.emitEvent(q.LOGIN_SUCCESS, x.Popup, u) : t.eventHandler.emitEvent(q.ACQUIRE_TOKEN_SUCCESS, x.Popup, u), o.addStaticFields({
13163
- accessTokenSize: u.accessToken.length,
13164
- idTokenSize: u.idToken.length
13162
+ return p ? t.eventHandler.emitEvent(q.LOGIN_SUCCESS, x.Popup, d) : t.eventHandler.emitEvent(q.ACQUIRE_TOKEN_SUCCESS, x.Popup, d), o.addStaticFields({
13163
+ accessTokenSize: d.accessToken.length,
13164
+ idTokenSize: d.idToken.length
13165
13165
  }), o.endMeasurement({
13166
13166
  success: !0,
13167
- requestId: u.requestId
13168
- }), u;
13169
- }).catch(function(u) {
13170
- return i.length > 0 ? t.eventHandler.emitEvent(q.ACQUIRE_TOKEN_FAILURE, x.Popup, null, u) : t.eventHandler.emitEvent(q.LOGIN_FAILURE, x.Popup, null, u), o.endMeasurement({
13171
- errorCode: u.errorCode,
13172
- subErrorCode: u.subError,
13167
+ requestId: d.requestId
13168
+ }), d;
13169
+ }).catch(function(d) {
13170
+ return i.length > 0 ? t.eventHandler.emitEvent(q.ACQUIRE_TOKEN_FAILURE, x.Popup, null, d) : t.eventHandler.emitEvent(q.LOGIN_FAILURE, x.Popup, null, d), o.endMeasurement({
13171
+ errorCode: d.errorCode,
13172
+ subErrorCode: d.subError,
13173
13173
  success: !1
13174
- }), Promise.reject(u);
13174
+ }), Promise.reject(d);
13175
13175
  });
13176
13176
  }, n.prototype.trackPageVisibilityWithMeasurement = function() {
13177
13177
  var e = this.ssoSilentMeasurement || this.acquireTokenByCodeAsyncMeasurement;
@@ -13182,7 +13182,7 @@ var ka = (
13182
13182
  var t;
13183
13183
  return T(this, void 0, void 0, function() {
13184
13184
  var r, o, i, a, s = this;
13185
- return I(this, function(u) {
13185
+ return I(this, function(d) {
13186
13186
  return r = this.getRequestCorrelationId(e), o = B(B({}, e), {
13187
13187
  // will be PromptValue.NONE or PromptValue.NO_SESSION
13188
13188
  prompt: e.prompt,
@@ -13192,13 +13192,13 @@ var ka = (
13192
13192
  }), document.addEventListener("visibilitychange", this.trackPageVisibilityWithMeasurement), this.logger.verbose("ssoSilent called", r), this.eventHandler.emitEvent(q.SSO_SILENT_START, x.Silent, o), this.canUseNative(o) ? i = this.acquireTokenNative(o, oe.ssoSilent).catch(function(p) {
13193
13193
  if (p instanceof tt && p.isFatal()) {
13194
13194
  s.nativeExtensionProvider = void 0;
13195
- var d = s.createSilentIframeClient(o.correlationId);
13196
- return d.acquireToken(o);
13195
+ var u = s.createSilentIframeClient(o.correlationId);
13196
+ return u.acquireToken(o);
13197
13197
  }
13198
13198
  throw p;
13199
13199
  }) : (a = this.createSilentIframeClient(o.correlationId), i = a.acquireToken(o)), [2, i.then(function(p) {
13200
- var d, f;
13201
- return s.eventHandler.emitEvent(q.SSO_SILENT_SUCCESS, x.Silent, p), (d = s.ssoSilentMeasurement) === null || d === void 0 || d.addStaticFields({
13200
+ var u, f;
13201
+ return s.eventHandler.emitEvent(q.SSO_SILENT_SUCCESS, x.Silent, p), (u = s.ssoSilentMeasurement) === null || u === void 0 || u.addStaticFields({
13202
13202
  accessTokenSize: p.accessToken.length,
13203
13203
  idTokenSize: p.idToken.length
13204
13204
  }), (f = s.ssoSilentMeasurement) === null || f === void 0 || f.endMeasurement({
@@ -13207,8 +13207,8 @@ var ka = (
13207
13207
  requestId: p.requestId
13208
13208
  }), p;
13209
13209
  }).catch(function(p) {
13210
- var d;
13211
- throw s.eventHandler.emitEvent(q.SSO_SILENT_FAILURE, x.Silent, null, p), (d = s.ssoSilentMeasurement) === null || d === void 0 || d.endMeasurement({
13210
+ var u;
13211
+ throw s.eventHandler.emitEvent(q.SSO_SILENT_FAILURE, x.Silent, null, p), (u = s.ssoSilentMeasurement) === null || u === void 0 || u.endMeasurement({
13212
13212
  errorCode: p.errorCode,
13213
13213
  subErrorCode: p.subError,
13214
13214
  success: !1
@@ -13227,36 +13227,36 @@ var ka = (
13227
13227
  if (e.code && e.nativeAccountId)
13228
13228
  throw M.createSpaCodeAndNativeAccountIdPresentError();
13229
13229
  if (e.code)
13230
- return o = e.code, i = this.hybridAuthCodeResponses.get(o), i ? (this.logger.verbose("Existing acquireTokenByCode request found", e.correlationId), r.discardMeasurement()) : (this.logger.verbose("Initiating new acquireTokenByCode request", t), i = this.acquireTokenByCodeAsync(B(B({}, e), { correlationId: t })).then(function(u) {
13231
- return a.eventHandler.emitEvent(q.ACQUIRE_TOKEN_BY_CODE_SUCCESS, x.Silent, u), a.hybridAuthCodeResponses.delete(o), r.addStaticFields({
13232
- accessTokenSize: u.accessToken.length,
13233
- idTokenSize: u.idToken.length
13230
+ return o = e.code, i = this.hybridAuthCodeResponses.get(o), i ? (this.logger.verbose("Existing acquireTokenByCode request found", e.correlationId), r.discardMeasurement()) : (this.logger.verbose("Initiating new acquireTokenByCode request", t), i = this.acquireTokenByCodeAsync(B(B({}, e), { correlationId: t })).then(function(d) {
13231
+ return a.eventHandler.emitEvent(q.ACQUIRE_TOKEN_BY_CODE_SUCCESS, x.Silent, d), a.hybridAuthCodeResponses.delete(o), r.addStaticFields({
13232
+ accessTokenSize: d.accessToken.length,
13233
+ idTokenSize: d.idToken.length
13234
13234
  }), r.endMeasurement({
13235
13235
  success: !0,
13236
- isNativeBroker: u.fromNativeBroker,
13237
- requestId: u.requestId
13238
- }), u;
13239
- }).catch(function(u) {
13240
- throw a.hybridAuthCodeResponses.delete(o), a.eventHandler.emitEvent(q.ACQUIRE_TOKEN_BY_CODE_FAILURE, x.Silent, null, u), r.endMeasurement({
13241
- errorCode: u.errorCode,
13242
- subErrorCode: u.subError,
13236
+ isNativeBroker: d.fromNativeBroker,
13237
+ requestId: d.requestId
13238
+ }), d;
13239
+ }).catch(function(d) {
13240
+ throw a.hybridAuthCodeResponses.delete(o), a.eventHandler.emitEvent(q.ACQUIRE_TOKEN_BY_CODE_FAILURE, x.Silent, null, d), r.endMeasurement({
13241
+ errorCode: d.errorCode,
13242
+ subErrorCode: d.subError,
13243
13243
  success: !1
13244
- }), u;
13244
+ }), d;
13245
13245
  }), this.hybridAuthCodeResponses.set(o, i)), [2, i];
13246
13246
  if (e.nativeAccountId) {
13247
13247
  if (this.canUseNative(e, e.nativeAccountId))
13248
- return [2, this.acquireTokenNative(e, oe.acquireTokenByCode, e.nativeAccountId).catch(function(u) {
13249
- throw u instanceof tt && u.isFatal() && (a.nativeExtensionProvider = void 0), u;
13248
+ return [2, this.acquireTokenNative(e, oe.acquireTokenByCode, e.nativeAccountId).catch(function(d) {
13249
+ throw d instanceof tt && d.isFatal() && (a.nativeExtensionProvider = void 0), d;
13250
13250
  })];
13251
13251
  throw M.createUnableToAcquireTokenFromNativePlatformError();
13252
13252
  } else
13253
13253
  throw M.createAuthCodeOrNativeAccountIdRequiredError();
13254
- } catch (u) {
13255
- throw this.eventHandler.emitEvent(q.ACQUIRE_TOKEN_BY_CODE_FAILURE, x.Silent, null, u), r.endMeasurement({
13256
- errorCode: u instanceof D && u.errorCode || void 0,
13257
- subErrorCode: u instanceof D && u.subError || void 0,
13254
+ } catch (d) {
13255
+ throw this.eventHandler.emitEvent(q.ACQUIRE_TOKEN_BY_CODE_FAILURE, x.Silent, null, d), r.endMeasurement({
13256
+ errorCode: d instanceof D && d.errorCode || void 0,
13257
+ subErrorCode: d instanceof D && d.subError || void 0,
13258
13258
  success: !1
13259
- }), u;
13259
+ }), d;
13260
13260
  }
13261
13261
  return [
13262
13262
  2
@@ -13274,16 +13274,16 @@ var ka = (
13274
13274
  return this.logger.trace("acquireTokenByCodeAsync called", e.correlationId), this.acquireTokenByCodeAsyncMeasurement = this.performanceClient.startMeasurement(b.AcquireTokenByCodeAsync, e.correlationId), (t = this.acquireTokenByCodeAsyncMeasurement) === null || t === void 0 || t.increment({
13275
13275
  visibilityChangeCount: 0
13276
13276
  }), document.addEventListener("visibilitychange", this.trackPageVisibilityWithMeasurement), r = this.createSilentAuthCodeClient(e.correlationId), [4, r.acquireToken(e).then(function(s) {
13277
- var u;
13278
- return (u = i.acquireTokenByCodeAsyncMeasurement) === null || u === void 0 || u.endMeasurement({
13277
+ var d;
13278
+ return (d = i.acquireTokenByCodeAsyncMeasurement) === null || d === void 0 || d.endMeasurement({
13279
13279
  success: !0,
13280
13280
  fromCache: s.fromCache,
13281
13281
  isNativeBroker: s.fromNativeBroker,
13282
13282
  requestId: s.requestId
13283
13283
  }), s;
13284
13284
  }).catch(function(s) {
13285
- var u;
13286
- throw (u = i.acquireTokenByCodeAsyncMeasurement) === null || u === void 0 || u.endMeasurement({
13285
+ var d;
13286
+ throw (d = i.acquireTokenByCodeAsyncMeasurement) === null || d === void 0 || d.endMeasurement({
13287
13287
  errorCode: s.errorCode,
13288
13288
  subErrorCode: s.subError,
13289
13289
  success: !1
@@ -13384,11 +13384,11 @@ var ka = (
13384
13384
  }, n.prototype.getActiveAccount = function() {
13385
13385
  return this.browserStorage.getActiveAccount();
13386
13386
  }, n.prototype.preflightBrowserEnvironmentCheck = function(e, t) {
13387
- if (t === void 0 && (t = !0), this.logger.verbose("preflightBrowserEnvironmentCheck started"), de.blockNonBrowserEnvironment(this.isBrowserEnvironment), de.blockRedirectInIframe(e, this.config.system.allowRedirectInIframe), de.blockReloadInHiddenIframes(), de.blockAcquireTokenInPopups(), de.blockNativeBrokerCalledBeforeInitialized(this.config.system.allowNativeBroker, this.initialized), e === x.Redirect && this.config.cache.cacheLocation === pe.MemoryStorage && !this.config.cache.storeAuthStateInCookie)
13387
+ if (t === void 0 && (t = !0), this.logger.verbose("preflightBrowserEnvironmentCheck started"), ue.blockNonBrowserEnvironment(this.isBrowserEnvironment), ue.blockRedirectInIframe(e, this.config.system.allowRedirectInIframe), ue.blockReloadInHiddenIframes(), ue.blockAcquireTokenInPopups(), ue.blockNativeBrokerCalledBeforeInitialized(this.config.system.allowNativeBroker, this.initialized), e === x.Redirect && this.config.cache.cacheLocation === pe.MemoryStorage && !this.config.cache.storeAuthStateInCookie)
13388
13388
  throw En.createInMemoryRedirectUnavailableError();
13389
13389
  (e === x.Redirect || e === x.Popup) && this.preflightInteractiveRequest(t);
13390
13390
  }, n.prototype.preflightInteractiveRequest = function(e) {
13391
- this.logger.verbose("preflightInteractiveRequest called, validating app environment"), de.blockReloadInHiddenIframes(), e && this.browserStorage.setInteractionInProgress(!0);
13391
+ this.logger.verbose("preflightInteractiveRequest called, validating app environment"), ue.blockReloadInHiddenIframes(), e && this.browserStorage.setInteractionInProgress(!0);
13392
13392
  }, n.prototype.acquireTokenNative = function(e, t, r) {
13393
13393
  return T(this, void 0, void 0, function() {
13394
13394
  var o;
@@ -13477,7 +13477,7 @@ var wa = (
13477
13477
  return this.logger.verbose("loginPopup called", r), this.acquireTokenPopup(B({ correlationId: r }, t || Lr));
13478
13478
  }, e.prototype.acquireTokenSilent = function(t) {
13479
13479
  return T(this, void 0, void 0, function() {
13480
- var r, o, i, a, s, u, p, d = this;
13480
+ var r, o, i, a, s, d, p, u = this;
13481
13481
  return I(this, function(f) {
13482
13482
  if (r = this.getRequestCorrelationId(t), o = this.performanceClient.startMeasurement(b.AcquireTokenSilent, r), o.addStaticFields({
13483
13483
  cacheLookupPolicy: t.cacheLookupPolicy
@@ -13494,8 +13494,8 @@ var wa = (
13494
13494
  resourceRequestUri: t.resourceRequestUri,
13495
13495
  shrClaims: t.shrClaims,
13496
13496
  sshKid: t.sshKid
13497
- }, s = JSON.stringify(a), u = this.activeSilentTokenRequests.get(s), typeof u > "u" ? (this.logger.verbose("acquireTokenSilent called for the first time, storing active request", r), this.performanceClient.setPreQueueTime(b.AcquireTokenSilentAsync, r), p = this.acquireTokenSilentAsync(B(B({}, t), { correlationId: r }), i).then(function(_) {
13498
- return d.activeSilentTokenRequests.delete(s), o.addStaticFields({
13497
+ }, s = JSON.stringify(a), d = this.activeSilentTokenRequests.get(s), typeof d > "u" ? (this.logger.verbose("acquireTokenSilent called for the first time, storing active request", r), this.performanceClient.setPreQueueTime(b.AcquireTokenSilentAsync, r), p = this.acquireTokenSilentAsync(B(B({}, t), { correlationId: r }), i).then(function(_) {
13498
+ return u.activeSilentTokenRequests.delete(s), o.addStaticFields({
13499
13499
  accessTokenSize: _.accessToken.length,
13500
13500
  idTokenSize: _.idToken.length
13501
13501
  }), o.endMeasurement({
@@ -13506,12 +13506,12 @@ var wa = (
13506
13506
  requestId: _.requestId
13507
13507
  }), _;
13508
13508
  }).catch(function(_) {
13509
- throw d.activeSilentTokenRequests.delete(s), o.endMeasurement({
13509
+ throw u.activeSilentTokenRequests.delete(s), o.endMeasurement({
13510
13510
  errorCode: _.errorCode,
13511
13511
  subErrorCode: _.subError,
13512
13512
  success: !1
13513
13513
  }), _;
13514
- }), this.activeSilentTokenRequests.set(s, p), [2, p]) : (this.logger.verbose("acquireTokenSilent has been called previously, returning the result from the first call", r), o.discardMeasurement(), [2, u]);
13514
+ }), this.activeSilentTokenRequests.set(s, p), [2, p]) : (this.logger.verbose("acquireTokenSilent has been called previously, returning the result from the first call", r), o.discardMeasurement(), [2, d]);
13515
13515
  });
13516
13516
  });
13517
13517
  }, e.prototype.trackPageVisibility = function() {
@@ -13521,14 +13521,14 @@ var wa = (
13521
13521
  }, e.prototype.acquireTokenSilentAsync = function(t, r) {
13522
13522
  var o;
13523
13523
  return T(this, void 0, void 0, function() {
13524
- var i, a, s, u, p, d = this;
13524
+ var i, a, s, d, p, u = this;
13525
13525
  return I(this, function(f) {
13526
13526
  switch (f.label) {
13527
13527
  case 0:
13528
13528
  return this.performanceClient.addQueueMeasurement(b.AcquireTokenSilentAsync, t.correlationId), this.eventHandler.emitEvent(q.ACQUIRE_TOKEN_START, x.Silent, t), this.astsAsyncMeasurement = this.performanceClient.startMeasurement(b.AcquireTokenSilentAsync, t.correlationId), (o = this.astsAsyncMeasurement) === null || o === void 0 || o.increment({
13529
13529
  visibilityChangeCount: 0
13530
13530
  }), document.addEventListener("visibilitychange", this.trackPageVisibility), yt.isNativeAvailable(this.config, this.logger, this.nativeExtensionProvider, t.authenticationScheme) && r.nativeAccountId ? (this.logger.verbose("acquireTokenSilent - attempting to acquire token from native platform"), a = B(B({}, t), { account: r }), i = this.acquireTokenNative(a, oe.acquireTokenSilent_silentFlow).catch(function(_) {
13531
- return T(d, void 0, void 0, function() {
13531
+ return T(u, void 0, void 0, function() {
13532
13532
  var k;
13533
13533
  return I(this, function(E) {
13534
13534
  if (_ instanceof tt && _.isFatal())
@@ -13540,23 +13540,23 @@ var wa = (
13540
13540
  case 1:
13541
13541
  return this.logger.verbose("acquireTokenSilent - attempting to acquire token from web flow"), s = this.createSilentCacheClient(t.correlationId), this.performanceClient.setPreQueueTime(b.InitializeSilentRequest, t.correlationId), [4, s.initializeSilentRequest(t, r)];
13542
13542
  case 2:
13543
- u = f.sent(), p = B(B({}, t), {
13543
+ d = f.sent(), p = B(B({}, t), {
13544
13544
  // set the request's CacheLookupPolicy to Default if it was not optionally passed in
13545
13545
  cacheLookupPolicy: t.cacheLookupPolicy || Le.Default
13546
- }), this.performanceClient.setPreQueueTime(b.AcquireTokenFromCache, u.correlationId), i = this.acquireTokenFromCache(s, u, p).catch(function(_) {
13546
+ }), this.performanceClient.setPreQueueTime(b.AcquireTokenFromCache, d.correlationId), i = this.acquireTokenFromCache(s, d, p).catch(function(_) {
13547
13547
  if (p.cacheLookupPolicy === Le.AccessToken)
13548
13548
  throw _;
13549
- return de.blockReloadInHiddenIframes(), d.eventHandler.emitEvent(q.ACQUIRE_TOKEN_NETWORK_START, x.Silent, u), d.performanceClient.setPreQueueTime(b.AcquireTokenByRefreshToken, u.correlationId), d.acquireTokenByRefreshToken(u, p).catch(function(k) {
13549
+ return ue.blockReloadInHiddenIframes(), u.eventHandler.emitEvent(q.ACQUIRE_TOKEN_NETWORK_START, x.Silent, d), u.performanceClient.setPreQueueTime(b.AcquireTokenByRefreshToken, d.correlationId), u.acquireTokenByRefreshToken(d, p).catch(function(k) {
13550
13550
  var E = k instanceof bt, N = k instanceof Ye, Q = k.errorCode === Mt.noTokensFoundError.code, X = k.errorCode === Qe.INVALID_GRANT_ERROR;
13551
13551
  if ((!E || !X || N || p.cacheLookupPolicy === Le.AccessTokenAndRefreshToken || p.cacheLookupPolicy === Le.RefreshToken) && p.cacheLookupPolicy !== Le.Skip && !Q)
13552
13552
  throw k;
13553
- return d.logger.verbose("Refresh token expired/invalid or CacheLookupPolicy is set to Skip, attempting acquire token by iframe.", t.correlationId), d.performanceClient.setPreQueueTime(b.AcquireTokenBySilentIframe, u.correlationId), d.acquireTokenBySilentIframe(u);
13553
+ return u.logger.verbose("Refresh token expired/invalid or CacheLookupPolicy is set to Skip, attempting acquire token by iframe.", t.correlationId), u.performanceClient.setPreQueueTime(b.AcquireTokenBySilentIframe, d.correlationId), u.acquireTokenBySilentIframe(d);
13554
13554
  });
13555
13555
  }), f.label = 3;
13556
13556
  case 3:
13557
13557
  return [2, i.then(function(_) {
13558
13558
  var k;
13559
- return d.eventHandler.emitEvent(q.ACQUIRE_TOKEN_SUCCESS, x.Silent, _), (k = d.astsAsyncMeasurement) === null || k === void 0 || k.endMeasurement({
13559
+ return u.eventHandler.emitEvent(q.ACQUIRE_TOKEN_SUCCESS, x.Silent, _), (k = u.astsAsyncMeasurement) === null || k === void 0 || k.endMeasurement({
13560
13560
  success: !0,
13561
13561
  fromCache: _.fromCache,
13562
13562
  isNativeBroker: _.fromNativeBroker,
@@ -13564,13 +13564,13 @@ var wa = (
13564
13564
  }), _;
13565
13565
  }).catch(function(_) {
13566
13566
  var k;
13567
- throw d.eventHandler.emitEvent(q.ACQUIRE_TOKEN_FAILURE, x.Silent, null, _), (k = d.astsAsyncMeasurement) === null || k === void 0 || k.endMeasurement({
13567
+ throw u.eventHandler.emitEvent(q.ACQUIRE_TOKEN_FAILURE, x.Silent, null, _), (k = u.astsAsyncMeasurement) === null || k === void 0 || k.endMeasurement({
13568
13568
  errorCode: _.errorCode,
13569
13569
  subErrorCode: _.subError,
13570
13570
  success: !1
13571
13571
  }), _;
13572
13572
  }).finally(function() {
13573
- document.removeEventListener("visibilitychange", d.trackPageVisibility);
13573
+ document.removeEventListener("visibilitychange", u.trackPageVisibility);
13574
13574
  })];
13575
13575
  }
13576
13576
  });
@@ -13663,18 +13663,18 @@ const An = {
13663
13663
  if (t)
13664
13664
  return console.log("Error: " + JSON.stringify(t)), this.microsoftLoad = !1;
13665
13665
  if (this.referral && (r.ref = this.referral), this.display === "popup" && (r.response_type = "code"), r && (r.accessToken || r.idToken)) {
13666
- const [s, u] = await ne(
13666
+ const [s, d] = await ne(
13667
13667
  Ne.microsoftSDK(r, this.$storage)
13668
13668
  );
13669
13669
  if (s)
13670
13670
  return this.microsoftLoad = !1, this.microsoftSSOLoad = !1, z.$emit("ssoEvent", { name: "setLoading", data: !1 }), this.errorHandler(s);
13671
- if (u.data.success) {
13671
+ if (d.data.success) {
13672
13672
  if (this.display === "popup")
13673
13673
  return (a = window.parent) == null ? void 0 : a.postMessage(
13674
- { code: u.data.auth_code, state: this.$route.query.state },
13674
+ { code: d.data.auth_code, state: this.$route.query.state },
13675
13675
  "*"
13676
13676
  );
13677
- await this.loginSetup(u), await this.getLoggedInAccounts(), this.loginSuccess({ ...u, isModal: this.isModal }), setTimeout(() => {
13677
+ await this.loginSetup(d), await this.getLoggedInAccounts(), this.loginSuccess({ ...d, isModal: this.isModal }), setTimeout(() => {
13678
13678
  this.microsoftLoad = !1, this.microsoftSSOLoad = !1;
13679
13679
  }, 1e3);
13680
13680
  } else
@@ -13701,7 +13701,7 @@ const An = {
13701
13701
  },
13702
13702
  compareLangKeys() {
13703
13703
  const n = Object.keys(Fr.default.state), e = Object.keys(jr.default.state), t = Object.keys(Kr.default.state), r = Object.keys(Wr.default.state), o = Object.keys(Vr.default.state), i = Object.keys(Gr.default.state), a = Object.keys(Qr.default.state), s = Object.keys(Yr.default.state);
13704
- console.log("In en but not in de", n.filter((u) => !e.includes(u))), console.log("In de but not in en", e.filter((u) => !n.includes(u))), console.log(), console.log("In en but not in es", n.filter((u) => !t.includes(u))), console.log("In es but not in en", t.filter((u) => !n.includes(u))), console.log(), console.log("In en but not in kr", n.filter((u) => !r.includes(u))), console.log("In kr but not in en", r.filter((u) => !n.includes(u))), console.log(), console.log("In en but not in it", n.filter((u) => !o.includes(u))), console.log("In it but not in en", o.filter((u) => !n.includes(u))), console.log(), console.log("In en but not in fr", n.filter((u) => !i.includes(u))), console.log("In fr but not in en", i.filter((u) => !n.includes(u))), console.log(), console.log("In en but not in sr", n.filter((u) => !a.includes(u))), console.log("In sr but not in en", a.filter((u) => !n.includes(u))), console.log(), console.log("In en but not in tr", n.filter((u) => !s.includes(u))), console.log("In tr but not in en", s.filter((u) => !n.includes(u))), console.log();
13704
+ console.log("In en but not in de", n.filter((d) => !e.includes(d))), console.log("In de but not in en", e.filter((d) => !n.includes(d))), console.log(), console.log("In en but not in es", n.filter((d) => !t.includes(d))), console.log("In es but not in en", t.filter((d) => !n.includes(d))), console.log(), console.log("In en but not in kr", n.filter((d) => !r.includes(d))), console.log("In kr but not in en", r.filter((d) => !n.includes(d))), console.log(), console.log("In en but not in it", n.filter((d) => !o.includes(d))), console.log("In it but not in en", o.filter((d) => !n.includes(d))), console.log(), console.log("In en but not in fr", n.filter((d) => !i.includes(d))), console.log("In fr but not in en", i.filter((d) => !n.includes(d))), console.log(), console.log("In en but not in sr", n.filter((d) => !a.includes(d))), console.log("In sr but not in en", a.filter((d) => !n.includes(d))), console.log(), console.log("In en but not in tr", n.filter((d) => !s.includes(d))), console.log("In tr but not in en", s.filter((d) => !n.includes(d))), console.log();
13705
13705
  },
13706
13706
  base64ImageToBlob(n) {
13707
13707
  const e = n.split(";base64,"), t = e[0].split(":")[1], r = window.atob(e[1]), o = new Uint8Array(r.length);
@@ -13735,8 +13735,8 @@ const An = {
13735
13735
  cropCardScan(n, e) {
13736
13736
  const t = new window.Image(), r = document.createElement("canvas"), o = r.getContext("2d");
13737
13737
  t.src = "data:image/jpeg;base64," + n, t.onload = () => {
13738
- const i = t.width, a = t.width / 1.65, s = 0, u = t.height / 2 - a / 2, p = i, d = a;
13739
- r.width = p, r.height = d, o.drawImage(t, s, u, i, a, 0, 0, p, d);
13738
+ const i = t.width, a = t.width / 1.65, s = 0, d = t.height / 2 - a / 2, p = i, u = a;
13739
+ r.width = p, r.height = u, o.drawImage(t, s, d, i, a, 0, 0, p, u);
13740
13740
  const f = r.toDataURL();
13741
13741
  return e(f), f;
13742
13742
  };
@@ -13762,7 +13762,7 @@ const An = {
13762
13762
  },
13763
13763
  async decryptAES(n, e, t) {
13764
13764
  try {
13765
- const r = (u) => Uint8Array.from(atob(u), (p) => p.charCodeAt(0));
13765
+ const r = (d) => Uint8Array.from(atob(d), (p) => p.charCodeAt(0));
13766
13766
  t = t.replace(/ /g, "+");
13767
13767
  const o = new TextEncoder(), i = new TextDecoder();
13768
13768
  n = o.encode(n), e = o.encode(e), t = r(t, storage);
@@ -13812,11 +13812,11 @@ const An = {
13812
13812
  localStorage.setItem("pkce_code_verifier", r);
13813
13813
  let o = await zt.pkceChallengeFromVerifier(r), i = n.domain + "/v1/authorize", a;
13814
13814
  this.isNative ? a = "tapni://t.link/callback/okta" : a = location.origin + "/callback/okta";
13815
- let s = i + "?response_type=code&client_id=" + encodeURIComponent(n.clientID) + "&state=" + encodeURIComponent(t) + "&scope=" + encodeURIComponent("openid email profile") + "&redirect_uri=" + encodeURIComponent(a) + "&code_challenge=" + encodeURIComponent(o) + "&code_challenge_method=S256", u = this, p;
13816
- window.addEventListener("message", async (d) => {
13817
- if (!this.allowedOrigins.includes(d.origin))
13815
+ let s = i + "?response_type=code&client_id=" + encodeURIComponent(n.clientID) + "&state=" + encodeURIComponent(t) + "&scope=" + encodeURIComponent("openid email profile") + "&redirect_uri=" + encodeURIComponent(a) + "&code_challenge=" + encodeURIComponent(o) + "&code_challenge_method=S256", d = this, p;
13816
+ window.addEventListener("message", async (u) => {
13817
+ if (!this.allowedOrigins.includes(u.origin))
13818
13818
  return console.log("Origin is not allowed!");
13819
- d.data.type === "okta" && (p = d.data.code, await u.exchangeCode({ domain: n.domain, code: p, clientID: n.clientID }));
13819
+ u.data.type === "okta" && (p = u.data.code, await d.exchangeCode({ domain: n.domain, code: p, clientID: n.clientID }));
13820
13820
  }, { once: !0 }), this.isNative ? await hn.open({ url: s, presentationStyle: "popover" }) : window.open(s, "popup", "width=600,height=600");
13821
13821
  },
13822
13822
  async handleOktaRedirect() {
@@ -13856,10 +13856,10 @@ function Aa(n, e, t) {
13856
13856
  return (e + t) * 3 / 4 - t;
13857
13857
  }
13858
13858
  function Ra(n) {
13859
- var e, t = go(n), r = t[0], o = t[1], i = new Ta(Aa(n, r, o)), a = 0, s = o > 0 ? r - 4 : r, u;
13860
- for (u = 0; u < s; u += 4)
13861
- e = je[n.charCodeAt(u)] << 18 | je[n.charCodeAt(u + 1)] << 12 | je[n.charCodeAt(u + 2)] << 6 | je[n.charCodeAt(u + 3)], i[a++] = e >> 16 & 255, i[a++] = e >> 8 & 255, i[a++] = e & 255;
13862
- return o === 2 && (e = je[n.charCodeAt(u)] << 2 | je[n.charCodeAt(u + 1)] >> 4, i[a++] = e & 255), o === 1 && (e = je[n.charCodeAt(u)] << 10 | je[n.charCodeAt(u + 1)] << 4 | je[n.charCodeAt(u + 2)] >> 2, i[a++] = e >> 8 & 255, i[a++] = e & 255), i;
13859
+ var e, t = go(n), r = t[0], o = t[1], i = new Ta(Aa(n, r, o)), a = 0, s = o > 0 ? r - 4 : r, d;
13860
+ for (d = 0; d < s; d += 4)
13861
+ e = je[n.charCodeAt(d)] << 18 | je[n.charCodeAt(d + 1)] << 12 | je[n.charCodeAt(d + 2)] << 6 | je[n.charCodeAt(d + 3)], i[a++] = e >> 16 & 255, i[a++] = e >> 8 & 255, i[a++] = e & 255;
13862
+ return o === 2 && (e = je[n.charCodeAt(d)] << 2 | je[n.charCodeAt(d + 1)] >> 4, i[a++] = e & 255), o === 1 && (e = je[n.charCodeAt(d)] << 10 | je[n.charCodeAt(d + 1)] << 4 | je[n.charCodeAt(d + 2)] >> 2, i[a++] = e >> 8 & 255, i[a++] = e & 255), i;
13863
13863
  }
13864
13864
  function Pa(n) {
13865
13865
  return et[n >> 18 & 63] + et[n >> 12 & 63] + et[n >> 6 & 63] + et[n & 63];
@@ -13881,23 +13881,23 @@ function Na(n) {
13881
13881
  var ir = {};
13882
13882
  /*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */
13883
13883
  ir.read = function(n, e, t, r, o) {
13884
- var i, a, s = o * 8 - r - 1, u = (1 << s) - 1, p = u >> 1, d = -7, f = t ? o - 1 : 0, _ = t ? -1 : 1, k = n[e + f];
13885
- for (f += _, i = k & (1 << -d) - 1, k >>= -d, d += s; d > 0; i = i * 256 + n[e + f], f += _, d -= 8)
13884
+ var i, a, s = o * 8 - r - 1, d = (1 << s) - 1, p = d >> 1, u = -7, f = t ? o - 1 : 0, _ = t ? -1 : 1, k = n[e + f];
13885
+ for (f += _, i = k & (1 << -u) - 1, k >>= -u, u += s; u > 0; i = i * 256 + n[e + f], f += _, u -= 8)
13886
13886
  ;
13887
- for (a = i & (1 << -d) - 1, i >>= -d, d += r; d > 0; a = a * 256 + n[e + f], f += _, d -= 8)
13887
+ for (a = i & (1 << -u) - 1, i >>= -u, u += r; u > 0; a = a * 256 + n[e + f], f += _, u -= 8)
13888
13888
  ;
13889
13889
  if (i === 0)
13890
13890
  i = 1 - p;
13891
13891
  else {
13892
- if (i === u)
13892
+ if (i === d)
13893
13893
  return a ? NaN : (k ? -1 : 1) * (1 / 0);
13894
13894
  a = a + Math.pow(2, r), i = i - p;
13895
13895
  }
13896
13896
  return (k ? -1 : 1) * a * Math.pow(2, i - r);
13897
13897
  };
13898
13898
  ir.write = function(n, e, t, r, o, i) {
13899
- var a, s, u, p = i * 8 - o - 1, d = (1 << p) - 1, f = d >> 1, _ = o === 23 ? Math.pow(2, -24) - Math.pow(2, -77) : 0, k = r ? 0 : i - 1, E = r ? 1 : -1, N = e < 0 || e === 0 && 1 / e < 0 ? 1 : 0;
13900
- for (e = Math.abs(e), isNaN(e) || e === 1 / 0 ? (s = isNaN(e) ? 1 : 0, a = d) : (a = Math.floor(Math.log(e) / Math.LN2), e * (u = Math.pow(2, -a)) < 1 && (a--, u *= 2), a + f >= 1 ? e += _ / u : e += _ * Math.pow(2, 1 - f), e * u >= 2 && (a++, u /= 2), a + f >= d ? (s = 0, a = d) : a + f >= 1 ? (s = (e * u - 1) * Math.pow(2, o), a = a + f) : (s = e * Math.pow(2, f - 1) * Math.pow(2, o), a = 0)); o >= 8; n[t + k] = s & 255, k += E, s /= 256, o -= 8)
13899
+ var a, s, d, p = i * 8 - o - 1, u = (1 << p) - 1, f = u >> 1, _ = o === 23 ? Math.pow(2, -24) - Math.pow(2, -77) : 0, k = r ? 0 : i - 1, E = r ? 1 : -1, N = e < 0 || e === 0 && 1 / e < 0 ? 1 : 0;
13900
+ for (e = Math.abs(e), isNaN(e) || e === 1 / 0 ? (s = isNaN(e) ? 1 : 0, a = u) : (a = Math.floor(Math.log(e) / Math.LN2), e * (d = Math.pow(2, -a)) < 1 && (a--, d *= 2), a + f >= 1 ? e += _ / d : e += _ * Math.pow(2, 1 - f), e * d >= 2 && (a++, d /= 2), a + f >= u ? (s = 0, a = u) : a + f >= 1 ? (s = (e * d - 1) * Math.pow(2, o), a = a + f) : (s = e * Math.pow(2, f - 1) * Math.pow(2, o), a = 0)); o >= 8; n[t + k] = s & 255, k += E, s /= 256, o -= 8)
13901
13901
  ;
13902
13902
  for (a = a << o | s, p += o; p > 0; n[t + k] = a & 255, k += E, a /= 256, p -= 8)
13903
13903
  ;
@@ -13911,14 +13911,14 @@ ir.write = function(n, e, t, r, o, i) {
13911
13911
  */
13912
13912
  (function(n) {
13913
13913
  const e = Pn, t = ir, r = typeof Symbol == "function" && typeof Symbol.for == "function" ? Symbol.for("nodejs.util.inspect.custom") : null;
13914
- n.Buffer = d, n.SlowBuffer = xe, n.INSPECT_MAX_BYTES = 50;
13914
+ n.Buffer = u, n.SlowBuffer = xe, n.INSPECT_MAX_BYTES = 50;
13915
13915
  const o = 2147483647;
13916
13916
  n.kMaxLength = o;
13917
13917
  const { Uint8Array: i, ArrayBuffer: a, SharedArrayBuffer: s } = globalThis;
13918
- d.TYPED_ARRAY_SUPPORT = u(), !d.TYPED_ARRAY_SUPPORT && typeof console < "u" && typeof console.error == "function" && console.error(
13918
+ u.TYPED_ARRAY_SUPPORT = d(), !u.TYPED_ARRAY_SUPPORT && typeof console < "u" && typeof console.error == "function" && console.error(
13919
13919
  "This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support."
13920
13920
  );
13921
- function u() {
13921
+ function d() {
13922
13922
  try {
13923
13923
  const h = new i(1), c = { foo: function() {
13924
13924
  return 42;
@@ -13928,16 +13928,16 @@ ir.write = function(n, e, t, r, o, i) {
13928
13928
  return !1;
13929
13929
  }
13930
13930
  }
13931
- Object.defineProperty(d.prototype, "parent", {
13931
+ Object.defineProperty(u.prototype, "parent", {
13932
13932
  enumerable: !0,
13933
13933
  get: function() {
13934
- if (d.isBuffer(this))
13934
+ if (u.isBuffer(this))
13935
13935
  return this.buffer;
13936
13936
  }
13937
- }), Object.defineProperty(d.prototype, "offset", {
13937
+ }), Object.defineProperty(u.prototype, "offset", {
13938
13938
  enumerable: !0,
13939
13939
  get: function() {
13940
- if (d.isBuffer(this))
13940
+ if (u.isBuffer(this))
13941
13941
  return this.byteOffset;
13942
13942
  }
13943
13943
  });
@@ -13945,9 +13945,9 @@ ir.write = function(n, e, t, r, o, i) {
13945
13945
  if (h > o)
13946
13946
  throw new RangeError('The value "' + h + '" is invalid for option "size"');
13947
13947
  const c = new i(h);
13948
- return Object.setPrototypeOf(c, d.prototype), c;
13948
+ return Object.setPrototypeOf(c, u.prototype), c;
13949
13949
  }
13950
- function d(h, c, l) {
13950
+ function u(h, c, l) {
13951
13951
  if (typeof h == "number") {
13952
13952
  if (typeof c == "string")
13953
13953
  throw new TypeError(
@@ -13957,7 +13957,7 @@ ir.write = function(n, e, t, r, o, i) {
13957
13957
  }
13958
13958
  return f(h, c, l);
13959
13959
  }
13960
- d.poolSize = 8192;
13960
+ u.poolSize = 8192;
13961
13961
  function f(h, c, l) {
13962
13962
  if (typeof h == "string")
13963
13963
  return N(h, c);
@@ -13975,19 +13975,19 @@ ir.write = function(n, e, t, r, o, i) {
13975
13975
  );
13976
13976
  const m = h.valueOf && h.valueOf();
13977
13977
  if (m != null && m !== h)
13978
- return d.from(m, c, l);
13978
+ return u.from(m, c, l);
13979
13979
  const v = $(h);
13980
13980
  if (v)
13981
13981
  return v;
13982
13982
  if (typeof Symbol < "u" && Symbol.toPrimitive != null && typeof h[Symbol.toPrimitive] == "function")
13983
- return d.from(h[Symbol.toPrimitive]("string"), c, l);
13983
+ return u.from(h[Symbol.toPrimitive]("string"), c, l);
13984
13984
  throw new TypeError(
13985
13985
  "The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type " + typeof h
13986
13986
  );
13987
13987
  }
13988
- d.from = function(h, c, l) {
13988
+ u.from = function(h, c, l) {
13989
13989
  return f(h, c, l);
13990
- }, Object.setPrototypeOf(d.prototype, i.prototype), Object.setPrototypeOf(d, i);
13990
+ }, Object.setPrototypeOf(u.prototype, i.prototype), Object.setPrototypeOf(u, i);
13991
13991
  function _(h) {
13992
13992
  if (typeof h != "number")
13993
13993
  throw new TypeError('"size" argument must be of type number');
@@ -13997,19 +13997,19 @@ ir.write = function(n, e, t, r, o, i) {
13997
13997
  function k(h, c, l) {
13998
13998
  return _(h), h <= 0 ? p(h) : c !== void 0 ? typeof l == "string" ? p(h).fill(c, l) : p(h).fill(c) : p(h);
13999
13999
  }
14000
- d.alloc = function(h, c, l) {
14000
+ u.alloc = function(h, c, l) {
14001
14001
  return k(h, c, l);
14002
14002
  };
14003
14003
  function E(h) {
14004
14004
  return _(h), p(h < 0 ? 0 : Ae(h) | 0);
14005
14005
  }
14006
- d.allocUnsafe = function(h) {
14006
+ u.allocUnsafe = function(h) {
14007
14007
  return E(h);
14008
- }, d.allocUnsafeSlow = function(h) {
14008
+ }, u.allocUnsafeSlow = function(h) {
14009
14009
  return E(h);
14010
14010
  };
14011
14011
  function N(h, c) {
14012
- if ((typeof c != "string" || c === "") && (c = "utf8"), !d.isEncoding(c))
14012
+ if ((typeof c != "string" || c === "") && (c = "utf8"), !u.isEncoding(c))
14013
14013
  throw new TypeError("Unknown encoding: " + c);
14014
14014
  const l = Ve(h, c) | 0;
14015
14015
  let m = p(l);
@@ -14035,10 +14035,10 @@ ir.write = function(n, e, t, r, o, i) {
14035
14035
  if (h.byteLength < c + (l || 0))
14036
14036
  throw new RangeError('"length" is outside of buffer bounds');
14037
14037
  let m;
14038
- return c === void 0 && l === void 0 ? m = new i(h) : l === void 0 ? m = new i(h, c) : m = new i(h, c, l), Object.setPrototypeOf(m, d.prototype), m;
14038
+ return c === void 0 && l === void 0 ? m = new i(h) : l === void 0 ? m = new i(h, c) : m = new i(h, c, l), Object.setPrototypeOf(m, u.prototype), m;
14039
14039
  }
14040
14040
  function $(h) {
14041
- if (d.isBuffer(h)) {
14041
+ if (u.isBuffer(h)) {
14042
14042
  const c = Ae(h.length) | 0, l = p(c);
14043
14043
  return l.length === 0 || h.copy(l, 0, 0, c), l;
14044
14044
  }
@@ -14053,12 +14053,12 @@ ir.write = function(n, e, t, r, o, i) {
14053
14053
  return h | 0;
14054
14054
  }
14055
14055
  function xe(h) {
14056
- return +h != h && (h = 0), d.alloc(+h);
14056
+ return +h != h && (h = 0), u.alloc(+h);
14057
14057
  }
14058
- d.isBuffer = function(c) {
14059
- return c != null && c._isBuffer === !0 && c !== d.prototype;
14060
- }, d.compare = function(c, l) {
14061
- if ($e(c, i) && (c = d.from(c, c.offset, c.byteLength)), $e(l, i) && (l = d.from(l, l.offset, l.byteLength)), !d.isBuffer(c) || !d.isBuffer(l))
14058
+ u.isBuffer = function(c) {
14059
+ return c != null && c._isBuffer === !0 && c !== u.prototype;
14060
+ }, u.compare = function(c, l) {
14061
+ if ($e(c, i) && (c = u.from(c, c.offset, c.byteLength)), $e(l, i) && (l = u.from(l, l.offset, l.byteLength)), !u.isBuffer(c) || !u.isBuffer(l))
14062
14062
  throw new TypeError(
14063
14063
  'The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array'
14064
14064
  );
@@ -14071,7 +14071,7 @@ ir.write = function(n, e, t, r, o, i) {
14071
14071
  break;
14072
14072
  }
14073
14073
  return m < v ? -1 : v < m ? 1 : 0;
14074
- }, d.isEncoding = function(c) {
14074
+ }, u.isEncoding = function(c) {
14075
14075
  switch (String(c).toLowerCase()) {
14076
14076
  case "hex":
14077
14077
  case "utf8":
@@ -14088,26 +14088,26 @@ ir.write = function(n, e, t, r, o, i) {
14088
14088
  default:
14089
14089
  return !1;
14090
14090
  }
14091
- }, d.concat = function(c, l) {
14091
+ }, u.concat = function(c, l) {
14092
14092
  if (!Array.isArray(c))
14093
14093
  throw new TypeError('"list" argument must be an Array of Buffers');
14094
14094
  if (c.length === 0)
14095
- return d.alloc(0);
14095
+ return u.alloc(0);
14096
14096
  let m;
14097
14097
  if (l === void 0)
14098
14098
  for (l = 0, m = 0; m < c.length; ++m)
14099
14099
  l += c[m].length;
14100
- const v = d.allocUnsafe(l);
14100
+ const v = u.allocUnsafe(l);
14101
14101
  let w = 0;
14102
14102
  for (m = 0; m < c.length; ++m) {
14103
14103
  let C = c[m];
14104
14104
  if ($e(C, i))
14105
- w + C.length > v.length ? (d.isBuffer(C) || (C = d.from(C)), C.copy(v, w)) : i.prototype.set.call(
14105
+ w + C.length > v.length ? (u.isBuffer(C) || (C = u.from(C)), C.copy(v, w)) : i.prototype.set.call(
14106
14106
  v,
14107
14107
  C,
14108
14108
  w
14109
14109
  );
14110
- else if (d.isBuffer(C))
14110
+ else if (u.isBuffer(C))
14111
14111
  C.copy(v, w);
14112
14112
  else
14113
14113
  throw new TypeError('"list" argument must be an Array of Buffers');
@@ -14116,7 +14116,7 @@ ir.write = function(n, e, t, r, o, i) {
14116
14116
  return v;
14117
14117
  };
14118
14118
  function Ve(h, c) {
14119
- if (d.isBuffer(h))
14119
+ if (u.isBuffer(h))
14120
14120
  return h.length;
14121
14121
  if (a.isView(h) || $e(h, a))
14122
14122
  return h.byteLength;
@@ -14152,7 +14152,7 @@ ir.write = function(n, e, t, r, o, i) {
14152
14152
  c = ("" + c).toLowerCase(), v = !0;
14153
14153
  }
14154
14154
  }
14155
- d.byteLength = Ve;
14155
+ u.byteLength = Ve;
14156
14156
  function Ct(h, c, l) {
14157
14157
  let m = !1;
14158
14158
  if ((c === void 0 || c < 0) && (c = 0), c > this.length || ((l === void 0 || l > this.length) && (l = this.length), l <= 0) || (l >>>= 0, c >>>= 0, l <= c))
@@ -14182,45 +14182,45 @@ ir.write = function(n, e, t, r, o, i) {
14182
14182
  h = (h + "").toLowerCase(), m = !0;
14183
14183
  }
14184
14184
  }
14185
- d.prototype._isBuffer = !0;
14185
+ u.prototype._isBuffer = !0;
14186
14186
  function ce(h, c, l) {
14187
14187
  const m = h[c];
14188
14188
  h[c] = h[l], h[l] = m;
14189
14189
  }
14190
- d.prototype.swap16 = function() {
14190
+ u.prototype.swap16 = function() {
14191
14191
  const c = this.length;
14192
14192
  if (c % 2 !== 0)
14193
14193
  throw new RangeError("Buffer size must be a multiple of 16-bits");
14194
14194
  for (let l = 0; l < c; l += 2)
14195
14195
  ce(this, l, l + 1);
14196
14196
  return this;
14197
- }, d.prototype.swap32 = function() {
14197
+ }, u.prototype.swap32 = function() {
14198
14198
  const c = this.length;
14199
14199
  if (c % 4 !== 0)
14200
14200
  throw new RangeError("Buffer size must be a multiple of 32-bits");
14201
14201
  for (let l = 0; l < c; l += 4)
14202
14202
  ce(this, l, l + 3), ce(this, l + 1, l + 2);
14203
14203
  return this;
14204
- }, d.prototype.swap64 = function() {
14204
+ }, u.prototype.swap64 = function() {
14205
14205
  const c = this.length;
14206
14206
  if (c % 8 !== 0)
14207
14207
  throw new RangeError("Buffer size must be a multiple of 64-bits");
14208
14208
  for (let l = 0; l < c; l += 8)
14209
14209
  ce(this, l, l + 7), ce(this, l + 1, l + 6), ce(this, l + 2, l + 5), ce(this, l + 3, l + 4);
14210
14210
  return this;
14211
- }, d.prototype.toString = function() {
14211
+ }, u.prototype.toString = function() {
14212
14212
  const c = this.length;
14213
14213
  return c === 0 ? "" : arguments.length === 0 ? cr(this, 0, c) : Ct.apply(this, arguments);
14214
- }, d.prototype.toLocaleString = d.prototype.toString, d.prototype.equals = function(c) {
14215
- if (!d.isBuffer(c))
14214
+ }, u.prototype.toLocaleString = u.prototype.toString, u.prototype.equals = function(c) {
14215
+ if (!u.isBuffer(c))
14216
14216
  throw new TypeError("Argument must be a Buffer");
14217
- return this === c ? !0 : d.compare(this, c) === 0;
14218
- }, d.prototype.inspect = function() {
14217
+ return this === c ? !0 : u.compare(this, c) === 0;
14218
+ }, u.prototype.inspect = function() {
14219
14219
  let c = "";
14220
14220
  const l = n.INSPECT_MAX_BYTES;
14221
14221
  return c = this.toString("hex", 0, l).replace(/(.{2})/g, "$1 ").trim(), this.length > l && (c += " ... "), "<Buffer " + c + ">";
14222
- }, r && (d.prototype[r] = d.prototype.inspect), d.prototype.compare = function(c, l, m, v, w) {
14223
- if ($e(c, i) && (c = d.from(c, c.offset, c.byteLength)), !d.isBuffer(c))
14222
+ }, r && (u.prototype[r] = u.prototype.inspect), u.prototype.compare = function(c, l, m, v, w) {
14223
+ if ($e(c, i) && (c = u.from(c, c.offset, c.byteLength)), !u.isBuffer(c))
14224
14224
  throw new TypeError(
14225
14225
  'The "target" argument must be one of type Buffer or Uint8Array. Received type ' + typeof c
14226
14226
  );
@@ -14235,10 +14235,10 @@ ir.write = function(n, e, t, r, o, i) {
14235
14235
  if (l >>>= 0, m >>>= 0, v >>>= 0, w >>>= 0, this === c)
14236
14236
  return 0;
14237
14237
  let C = w - v, Y = m - l;
14238
- const le = Math.min(C, Y), ae = this.slice(v, w), ue = c.slice(l, m);
14238
+ const le = Math.min(C, Y), ae = this.slice(v, w), de = c.slice(l, m);
14239
14239
  for (let re = 0; re < le; ++re)
14240
- if (ae[re] !== ue[re]) {
14241
- C = ae[re], Y = ue[re];
14240
+ if (ae[re] !== de[re]) {
14241
+ C = ae[re], Y = de[re];
14242
14242
  break;
14243
14243
  }
14244
14244
  return C < Y ? -1 : Y < C ? 1 : 0;
@@ -14255,7 +14255,7 @@ ir.write = function(n, e, t, r, o, i) {
14255
14255
  l = 0;
14256
14256
  else
14257
14257
  return -1;
14258
- if (typeof c == "string" && (c = d.from(c, m)), d.isBuffer(c))
14258
+ if (typeof c == "string" && (c = u.from(c, m)), u.isBuffer(c))
14259
14259
  return c.length === 0 ? -1 : sr(h, c, l, m, v);
14260
14260
  if (typeof c == "number")
14261
14261
  return c = c & 255, typeof i.prototype.indexOf == "function" ? v ? i.prototype.indexOf.call(h, c, l) : i.prototype.lastIndexOf.call(h, c, l) : sr(h, [c], l, m, v);
@@ -14268,36 +14268,36 @@ ir.write = function(n, e, t, r, o, i) {
14268
14268
  return -1;
14269
14269
  w = 2, C /= 2, Y /= 2, l /= 2;
14270
14270
  }
14271
- function le(ue, re) {
14272
- return w === 1 ? ue[re] : ue.readUInt16BE(re * w);
14271
+ function le(de, re) {
14272
+ return w === 1 ? de[re] : de.readUInt16BE(re * w);
14273
14273
  }
14274
14274
  let ae;
14275
14275
  if (v) {
14276
- let ue = -1;
14276
+ let de = -1;
14277
14277
  for (ae = l; ae < C; ae++)
14278
- if (le(h, ae) === le(c, ue === -1 ? 0 : ae - ue)) {
14279
- if (ue === -1 && (ue = ae), ae - ue + 1 === Y)
14280
- return ue * w;
14278
+ if (le(h, ae) === le(c, de === -1 ? 0 : ae - de)) {
14279
+ if (de === -1 && (de = ae), ae - de + 1 === Y)
14280
+ return de * w;
14281
14281
  } else
14282
- ue !== -1 && (ae -= ae - ue), ue = -1;
14282
+ de !== -1 && (ae -= ae - de), de = -1;
14283
14283
  } else
14284
14284
  for (l + Y > C && (l = C - Y), ae = l; ae >= 0; ae--) {
14285
- let ue = !0;
14285
+ let de = !0;
14286
14286
  for (let re = 0; re < Y; re++)
14287
14287
  if (le(h, ae + re) !== le(c, re)) {
14288
- ue = !1;
14288
+ de = !1;
14289
14289
  break;
14290
14290
  }
14291
- if (ue)
14291
+ if (de)
14292
14292
  return ae;
14293
14293
  }
14294
14294
  return -1;
14295
14295
  }
14296
- d.prototype.includes = function(c, l, m) {
14296
+ u.prototype.includes = function(c, l, m) {
14297
14297
  return this.indexOf(c, l, m) !== -1;
14298
- }, d.prototype.indexOf = function(c, l, m) {
14298
+ }, u.prototype.indexOf = function(c, l, m) {
14299
14299
  return ar(this, c, l, m, !0);
14300
- }, d.prototype.lastIndexOf = function(c, l, m) {
14300
+ }, u.prototype.lastIndexOf = function(c, l, m) {
14301
14301
  return ar(this, c, l, m, !1);
14302
14302
  };
14303
14303
  function Io(h, c, l, m) {
@@ -14327,7 +14327,7 @@ ir.write = function(n, e, t, r, o, i) {
14327
14327
  function Po(h, c, l, m) {
14328
14328
  return an(qo(c, h.length - l), h, l, m);
14329
14329
  }
14330
- d.prototype.write = function(c, l, m, v) {
14330
+ u.prototype.write = function(c, l, m, v) {
14331
14331
  if (l === void 0)
14332
14332
  v = "utf8", m = this.length, l = 0;
14333
14333
  else if (m === void 0 && typeof l == "string")
@@ -14366,7 +14366,7 @@ ir.write = function(n, e, t, r, o, i) {
14366
14366
  throw new TypeError("Unknown encoding: " + v);
14367
14367
  v = ("" + v).toLowerCase(), C = !0;
14368
14368
  }
14369
- }, d.prototype.toJSON = function() {
14369
+ }, u.prototype.toJSON = function() {
14370
14370
  return {
14371
14371
  type: "Buffer",
14372
14372
  data: Array.prototype.slice.call(this._arr || this, 0)
@@ -14383,7 +14383,7 @@ ir.write = function(n, e, t, r, o, i) {
14383
14383
  const w = h[v];
14384
14384
  let C = null, Y = w > 239 ? 4 : w > 223 ? 3 : w > 191 ? 2 : 1;
14385
14385
  if (v + Y <= l) {
14386
- let le, ae, ue, re;
14386
+ let le, ae, de, re;
14387
14387
  switch (Y) {
14388
14388
  case 1:
14389
14389
  w < 128 && (C = w);
@@ -14395,7 +14395,7 @@ ir.write = function(n, e, t, r, o, i) {
14395
14395
  le = h[v + 1], ae = h[v + 2], (le & 192) === 128 && (ae & 192) === 128 && (re = (w & 15) << 12 | (le & 63) << 6 | ae & 63, re > 2047 && (re < 55296 || re > 57343) && (C = re));
14396
14396
  break;
14397
14397
  case 4:
14398
- le = h[v + 1], ae = h[v + 2], ue = h[v + 3], (le & 192) === 128 && (ae & 192) === 128 && (ue & 192) === 128 && (re = (w & 15) << 18 | (le & 63) << 12 | (ae & 63) << 6 | ue & 63, re > 65535 && re < 1114112 && (C = re));
14398
+ le = h[v + 1], ae = h[v + 2], de = h[v + 3], (le & 192) === 128 && (ae & 192) === 128 && (de & 192) === 128 && (re = (w & 15) << 18 | (le & 63) << 12 | (ae & 63) << 6 | de & 63, re > 65535 && re < 1114112 && (C = re));
14399
14399
  }
14400
14400
  }
14401
14401
  C === null ? (C = 65533, Y = 1) : C > 65535 && (C -= 65536, m.push(C >>> 10 & 1023 | 55296), C = 56320 | C & 1023), m.push(C), v += Y;
@@ -14444,11 +14444,11 @@ ir.write = function(n, e, t, r, o, i) {
14444
14444
  v += String.fromCharCode(m[w] + m[w + 1] * 256);
14445
14445
  return v;
14446
14446
  }
14447
- d.prototype.slice = function(c, l) {
14447
+ u.prototype.slice = function(c, l) {
14448
14448
  const m = this.length;
14449
14449
  c = ~~c, l = l === void 0 ? m : ~~l, c < 0 ? (c += m, c < 0 && (c = 0)) : c > m && (c = m), l < 0 ? (l += m, l < 0 && (l = 0)) : l > m && (l = m), l < c && (l = c);
14450
14450
  const v = this.subarray(c, l);
14451
- return Object.setPrototypeOf(v, d.prototype), v;
14451
+ return Object.setPrototypeOf(v, u.prototype), v;
14452
14452
  };
14453
14453
  function ge(h, c, l) {
14454
14454
  if (h % 1 !== 0 || h < 0)
@@ -14456,97 +14456,97 @@ ir.write = function(n, e, t, r, o, i) {
14456
14456
  if (h + c > l)
14457
14457
  throw new RangeError("Trying to access beyond buffer length");
14458
14458
  }
14459
- d.prototype.readUintLE = d.prototype.readUIntLE = function(c, l, m) {
14459
+ u.prototype.readUintLE = u.prototype.readUIntLE = function(c, l, m) {
14460
14460
  c = c >>> 0, l = l >>> 0, m || ge(c, l, this.length);
14461
14461
  let v = this[c], w = 1, C = 0;
14462
14462
  for (; ++C < l && (w *= 256); )
14463
14463
  v += this[c + C] * w;
14464
14464
  return v;
14465
- }, d.prototype.readUintBE = d.prototype.readUIntBE = function(c, l, m) {
14465
+ }, u.prototype.readUintBE = u.prototype.readUIntBE = function(c, l, m) {
14466
14466
  c = c >>> 0, l = l >>> 0, m || ge(c, l, this.length);
14467
14467
  let v = this[c + --l], w = 1;
14468
14468
  for (; l > 0 && (w *= 256); )
14469
14469
  v += this[c + --l] * w;
14470
14470
  return v;
14471
- }, d.prototype.readUint8 = d.prototype.readUInt8 = function(c, l) {
14471
+ }, u.prototype.readUint8 = u.prototype.readUInt8 = function(c, l) {
14472
14472
  return c = c >>> 0, l || ge(c, 1, this.length), this[c];
14473
- }, d.prototype.readUint16LE = d.prototype.readUInt16LE = function(c, l) {
14473
+ }, u.prototype.readUint16LE = u.prototype.readUInt16LE = function(c, l) {
14474
14474
  return c = c >>> 0, l || ge(c, 2, this.length), this[c] | this[c + 1] << 8;
14475
- }, d.prototype.readUint16BE = d.prototype.readUInt16BE = function(c, l) {
14475
+ }, u.prototype.readUint16BE = u.prototype.readUInt16BE = function(c, l) {
14476
14476
  return c = c >>> 0, l || ge(c, 2, this.length), this[c] << 8 | this[c + 1];
14477
- }, d.prototype.readUint32LE = d.prototype.readUInt32LE = function(c, l) {
14477
+ }, u.prototype.readUint32LE = u.prototype.readUInt32LE = function(c, l) {
14478
14478
  return c = c >>> 0, l || ge(c, 4, this.length), (this[c] | this[c + 1] << 8 | this[c + 2] << 16) + this[c + 3] * 16777216;
14479
- }, d.prototype.readUint32BE = d.prototype.readUInt32BE = function(c, l) {
14479
+ }, u.prototype.readUint32BE = u.prototype.readUInt32BE = function(c, l) {
14480
14480
  return c = c >>> 0, l || ge(c, 4, this.length), this[c] * 16777216 + (this[c + 1] << 16 | this[c + 2] << 8 | this[c + 3]);
14481
- }, d.prototype.readBigUInt64LE = ut(function(c) {
14481
+ }, u.prototype.readBigUInt64LE = dt(function(c) {
14482
14482
  c = c >>> 0, Tt(c, "offset");
14483
14483
  const l = this[c], m = this[c + 7];
14484
14484
  (l === void 0 || m === void 0) && jt(c, this.length - 8);
14485
14485
  const v = l + this[++c] * 2 ** 8 + this[++c] * 2 ** 16 + this[++c] * 2 ** 24, w = this[++c] + this[++c] * 2 ** 8 + this[++c] * 2 ** 16 + m * 2 ** 24;
14486
14486
  return BigInt(v) + (BigInt(w) << BigInt(32));
14487
- }), d.prototype.readBigUInt64BE = ut(function(c) {
14487
+ }), u.prototype.readBigUInt64BE = dt(function(c) {
14488
14488
  c = c >>> 0, Tt(c, "offset");
14489
14489
  const l = this[c], m = this[c + 7];
14490
14490
  (l === void 0 || m === void 0) && jt(c, this.length - 8);
14491
14491
  const v = l * 2 ** 24 + this[++c] * 2 ** 16 + this[++c] * 2 ** 8 + this[++c], w = this[++c] * 2 ** 24 + this[++c] * 2 ** 16 + this[++c] * 2 ** 8 + m;
14492
14492
  return (BigInt(v) << BigInt(32)) + BigInt(w);
14493
- }), d.prototype.readIntLE = function(c, l, m) {
14493
+ }), u.prototype.readIntLE = function(c, l, m) {
14494
14494
  c = c >>> 0, l = l >>> 0, m || ge(c, l, this.length);
14495
14495
  let v = this[c], w = 1, C = 0;
14496
14496
  for (; ++C < l && (w *= 256); )
14497
14497
  v += this[c + C] * w;
14498
14498
  return w *= 128, v >= w && (v -= Math.pow(2, 8 * l)), v;
14499
- }, d.prototype.readIntBE = function(c, l, m) {
14499
+ }, u.prototype.readIntBE = function(c, l, m) {
14500
14500
  c = c >>> 0, l = l >>> 0, m || ge(c, l, this.length);
14501
14501
  let v = l, w = 1, C = this[c + --v];
14502
14502
  for (; v > 0 && (w *= 256); )
14503
14503
  C += this[c + --v] * w;
14504
14504
  return w *= 128, C >= w && (C -= Math.pow(2, 8 * l)), C;
14505
- }, d.prototype.readInt8 = function(c, l) {
14505
+ }, u.prototype.readInt8 = function(c, l) {
14506
14506
  return c = c >>> 0, l || ge(c, 1, this.length), this[c] & 128 ? (255 - this[c] + 1) * -1 : this[c];
14507
- }, d.prototype.readInt16LE = function(c, l) {
14507
+ }, u.prototype.readInt16LE = function(c, l) {
14508
14508
  c = c >>> 0, l || ge(c, 2, this.length);
14509
14509
  const m = this[c] | this[c + 1] << 8;
14510
14510
  return m & 32768 ? m | 4294901760 : m;
14511
- }, d.prototype.readInt16BE = function(c, l) {
14511
+ }, u.prototype.readInt16BE = function(c, l) {
14512
14512
  c = c >>> 0, l || ge(c, 2, this.length);
14513
14513
  const m = this[c + 1] | this[c] << 8;
14514
14514
  return m & 32768 ? m | 4294901760 : m;
14515
- }, d.prototype.readInt32LE = function(c, l) {
14515
+ }, u.prototype.readInt32LE = function(c, l) {
14516
14516
  return c = c >>> 0, l || ge(c, 4, this.length), this[c] | this[c + 1] << 8 | this[c + 2] << 16 | this[c + 3] << 24;
14517
- }, d.prototype.readInt32BE = function(c, l) {
14517
+ }, u.prototype.readInt32BE = function(c, l) {
14518
14518
  return c = c >>> 0, l || ge(c, 4, this.length), this[c] << 24 | this[c + 1] << 16 | this[c + 2] << 8 | this[c + 3];
14519
- }, d.prototype.readBigInt64LE = ut(function(c) {
14519
+ }, u.prototype.readBigInt64LE = dt(function(c) {
14520
14520
  c = c >>> 0, Tt(c, "offset");
14521
14521
  const l = this[c], m = this[c + 7];
14522
14522
  (l === void 0 || m === void 0) && jt(c, this.length - 8);
14523
14523
  const v = this[c + 4] + this[c + 5] * 2 ** 8 + this[c + 6] * 2 ** 16 + (m << 24);
14524
14524
  return (BigInt(v) << BigInt(32)) + BigInt(l + this[++c] * 2 ** 8 + this[++c] * 2 ** 16 + this[++c] * 2 ** 24);
14525
- }), d.prototype.readBigInt64BE = ut(function(c) {
14525
+ }), u.prototype.readBigInt64BE = dt(function(c) {
14526
14526
  c = c >>> 0, Tt(c, "offset");
14527
14527
  const l = this[c], m = this[c + 7];
14528
14528
  (l === void 0 || m === void 0) && jt(c, this.length - 8);
14529
14529
  const v = (l << 24) + // Overflow
14530
14530
  this[++c] * 2 ** 16 + this[++c] * 2 ** 8 + this[++c];
14531
14531
  return (BigInt(v) << BigInt(32)) + BigInt(this[++c] * 2 ** 24 + this[++c] * 2 ** 16 + this[++c] * 2 ** 8 + m);
14532
- }), d.prototype.readFloatLE = function(c, l) {
14532
+ }), u.prototype.readFloatLE = function(c, l) {
14533
14533
  return c = c >>> 0, l || ge(c, 4, this.length), t.read(this, c, !0, 23, 4);
14534
- }, d.prototype.readFloatBE = function(c, l) {
14534
+ }, u.prototype.readFloatBE = function(c, l) {
14535
14535
  return c = c >>> 0, l || ge(c, 4, this.length), t.read(this, c, !1, 23, 4);
14536
- }, d.prototype.readDoubleLE = function(c, l) {
14536
+ }, u.prototype.readDoubleLE = function(c, l) {
14537
14537
  return c = c >>> 0, l || ge(c, 8, this.length), t.read(this, c, !0, 52, 8);
14538
- }, d.prototype.readDoubleBE = function(c, l) {
14538
+ }, u.prototype.readDoubleBE = function(c, l) {
14539
14539
  return c = c >>> 0, l || ge(c, 8, this.length), t.read(this, c, !1, 52, 8);
14540
14540
  };
14541
14541
  function Re(h, c, l, m, v, w) {
14542
- if (!d.isBuffer(h))
14542
+ if (!u.isBuffer(h))
14543
14543
  throw new TypeError('"buffer" argument must be a Buffer instance');
14544
14544
  if (c > v || c < w)
14545
14545
  throw new RangeError('"value" argument is out of bounds');
14546
14546
  if (l + m > h.length)
14547
14547
  throw new RangeError("Index out of range");
14548
14548
  }
14549
- d.prototype.writeUintLE = d.prototype.writeUIntLE = function(c, l, m, v) {
14549
+ u.prototype.writeUintLE = u.prototype.writeUIntLE = function(c, l, m, v) {
14550
14550
  if (c = +c, l = l >>> 0, m = m >>> 0, !v) {
14551
14551
  const Y = Math.pow(2, 8 * m) - 1;
14552
14552
  Re(this, c, l, m, Y, 0);
@@ -14555,7 +14555,7 @@ ir.write = function(n, e, t, r, o, i) {
14555
14555
  for (this[l] = c & 255; ++C < m && (w *= 256); )
14556
14556
  this[l + C] = c / w & 255;
14557
14557
  return l + m;
14558
- }, d.prototype.writeUintBE = d.prototype.writeUIntBE = function(c, l, m, v) {
14558
+ }, u.prototype.writeUintBE = u.prototype.writeUIntBE = function(c, l, m, v) {
14559
14559
  if (c = +c, l = l >>> 0, m = m >>> 0, !v) {
14560
14560
  const Y = Math.pow(2, 8 * m) - 1;
14561
14561
  Re(this, c, l, m, Y, 0);
@@ -14564,36 +14564,36 @@ ir.write = function(n, e, t, r, o, i) {
14564
14564
  for (this[l + w] = c & 255; --w >= 0 && (C *= 256); )
14565
14565
  this[l + w] = c / C & 255;
14566
14566
  return l + m;
14567
- }, d.prototype.writeUint8 = d.prototype.writeUInt8 = function(c, l, m) {
14567
+ }, u.prototype.writeUint8 = u.prototype.writeUInt8 = function(c, l, m) {
14568
14568
  return c = +c, l = l >>> 0, m || Re(this, c, l, 1, 255, 0), this[l] = c & 255, l + 1;
14569
- }, d.prototype.writeUint16LE = d.prototype.writeUInt16LE = function(c, l, m) {
14569
+ }, u.prototype.writeUint16LE = u.prototype.writeUInt16LE = function(c, l, m) {
14570
14570
  return c = +c, l = l >>> 0, m || Re(this, c, l, 2, 65535, 0), this[l] = c & 255, this[l + 1] = c >>> 8, l + 2;
14571
- }, d.prototype.writeUint16BE = d.prototype.writeUInt16BE = function(c, l, m) {
14571
+ }, u.prototype.writeUint16BE = u.prototype.writeUInt16BE = function(c, l, m) {
14572
14572
  return c = +c, l = l >>> 0, m || Re(this, c, l, 2, 65535, 0), this[l] = c >>> 8, this[l + 1] = c & 255, l + 2;
14573
- }, d.prototype.writeUint32LE = d.prototype.writeUInt32LE = function(c, l, m) {
14573
+ }, u.prototype.writeUint32LE = u.prototype.writeUInt32LE = function(c, l, m) {
14574
14574
  return c = +c, l = l >>> 0, m || Re(this, c, l, 4, 4294967295, 0), this[l + 3] = c >>> 24, this[l + 2] = c >>> 16, this[l + 1] = c >>> 8, this[l] = c & 255, l + 4;
14575
- }, d.prototype.writeUint32BE = d.prototype.writeUInt32BE = function(c, l, m) {
14575
+ }, u.prototype.writeUint32BE = u.prototype.writeUInt32BE = function(c, l, m) {
14576
14576
  return c = +c, l = l >>> 0, m || Re(this, c, l, 4, 4294967295, 0), this[l] = c >>> 24, this[l + 1] = c >>> 16, this[l + 2] = c >>> 8, this[l + 3] = c & 255, l + 4;
14577
14577
  };
14578
- function ur(h, c, l, m, v) {
14578
+ function dr(h, c, l, m, v) {
14579
14579
  gr(c, m, v, h, l, 7);
14580
14580
  let w = Number(c & BigInt(4294967295));
14581
14581
  h[l++] = w, w = w >> 8, h[l++] = w, w = w >> 8, h[l++] = w, w = w >> 8, h[l++] = w;
14582
14582
  let C = Number(c >> BigInt(32) & BigInt(4294967295));
14583
14583
  return h[l++] = C, C = C >> 8, h[l++] = C, C = C >> 8, h[l++] = C, C = C >> 8, h[l++] = C, l;
14584
14584
  }
14585
- function dr(h, c, l, m, v) {
14585
+ function ur(h, c, l, m, v) {
14586
14586
  gr(c, m, v, h, l, 7);
14587
14587
  let w = Number(c & BigInt(4294967295));
14588
14588
  h[l + 7] = w, w = w >> 8, h[l + 6] = w, w = w >> 8, h[l + 5] = w, w = w >> 8, h[l + 4] = w;
14589
14589
  let C = Number(c >> BigInt(32) & BigInt(4294967295));
14590
14590
  return h[l + 3] = C, C = C >> 8, h[l + 2] = C, C = C >> 8, h[l + 1] = C, C = C >> 8, h[l] = C, l + 8;
14591
14591
  }
14592
- d.prototype.writeBigUInt64LE = ut(function(c, l = 0) {
14593
- return ur(this, c, l, BigInt(0), BigInt("0xffffffffffffffff"));
14594
- }), d.prototype.writeBigUInt64BE = ut(function(c, l = 0) {
14592
+ u.prototype.writeBigUInt64LE = dt(function(c, l = 0) {
14595
14593
  return dr(this, c, l, BigInt(0), BigInt("0xffffffffffffffff"));
14596
- }), d.prototype.writeIntLE = function(c, l, m, v) {
14594
+ }), u.prototype.writeBigUInt64BE = dt(function(c, l = 0) {
14595
+ return ur(this, c, l, BigInt(0), BigInt("0xffffffffffffffff"));
14596
+ }), u.prototype.writeIntLE = function(c, l, m, v) {
14597
14597
  if (c = +c, l = l >>> 0, !v) {
14598
14598
  const le = Math.pow(2, 8 * m - 1);
14599
14599
  Re(this, c, l, m, le - 1, -le);
@@ -14602,7 +14602,7 @@ ir.write = function(n, e, t, r, o, i) {
14602
14602
  for (this[l] = c & 255; ++w < m && (C *= 256); )
14603
14603
  c < 0 && Y === 0 && this[l + w - 1] !== 0 && (Y = 1), this[l + w] = (c / C >> 0) - Y & 255;
14604
14604
  return l + m;
14605
- }, d.prototype.writeIntBE = function(c, l, m, v) {
14605
+ }, u.prototype.writeIntBE = function(c, l, m, v) {
14606
14606
  if (c = +c, l = l >>> 0, !v) {
14607
14607
  const le = Math.pow(2, 8 * m - 1);
14608
14608
  Re(this, c, l, m, le - 1, -le);
@@ -14611,20 +14611,20 @@ ir.write = function(n, e, t, r, o, i) {
14611
14611
  for (this[l + w] = c & 255; --w >= 0 && (C *= 256); )
14612
14612
  c < 0 && Y === 0 && this[l + w + 1] !== 0 && (Y = 1), this[l + w] = (c / C >> 0) - Y & 255;
14613
14613
  return l + m;
14614
- }, d.prototype.writeInt8 = function(c, l, m) {
14614
+ }, u.prototype.writeInt8 = function(c, l, m) {
14615
14615
  return c = +c, l = l >>> 0, m || Re(this, c, l, 1, 127, -128), c < 0 && (c = 255 + c + 1), this[l] = c & 255, l + 1;
14616
- }, d.prototype.writeInt16LE = function(c, l, m) {
14616
+ }, u.prototype.writeInt16LE = function(c, l, m) {
14617
14617
  return c = +c, l = l >>> 0, m || Re(this, c, l, 2, 32767, -32768), this[l] = c & 255, this[l + 1] = c >>> 8, l + 2;
14618
- }, d.prototype.writeInt16BE = function(c, l, m) {
14618
+ }, u.prototype.writeInt16BE = function(c, l, m) {
14619
14619
  return c = +c, l = l >>> 0, m || Re(this, c, l, 2, 32767, -32768), this[l] = c >>> 8, this[l + 1] = c & 255, l + 2;
14620
- }, d.prototype.writeInt32LE = function(c, l, m) {
14620
+ }, u.prototype.writeInt32LE = function(c, l, m) {
14621
14621
  return c = +c, l = l >>> 0, m || Re(this, c, l, 4, 2147483647, -2147483648), this[l] = c & 255, this[l + 1] = c >>> 8, this[l + 2] = c >>> 16, this[l + 3] = c >>> 24, l + 4;
14622
- }, d.prototype.writeInt32BE = function(c, l, m) {
14622
+ }, u.prototype.writeInt32BE = function(c, l, m) {
14623
14623
  return c = +c, l = l >>> 0, m || Re(this, c, l, 4, 2147483647, -2147483648), c < 0 && (c = 4294967295 + c + 1), this[l] = c >>> 24, this[l + 1] = c >>> 16, this[l + 2] = c >>> 8, this[l + 3] = c & 255, l + 4;
14624
- }, d.prototype.writeBigInt64LE = ut(function(c, l = 0) {
14625
- return ur(this, c, l, -BigInt("0x8000000000000000"), BigInt("0x7fffffffffffffff"));
14626
- }), d.prototype.writeBigInt64BE = ut(function(c, l = 0) {
14624
+ }, u.prototype.writeBigInt64LE = dt(function(c, l = 0) {
14627
14625
  return dr(this, c, l, -BigInt("0x8000000000000000"), BigInt("0x7fffffffffffffff"));
14626
+ }), u.prototype.writeBigInt64BE = dt(function(c, l = 0) {
14627
+ return ur(this, c, l, -BigInt("0x8000000000000000"), BigInt("0x7fffffffffffffff"));
14628
14628
  });
14629
14629
  function pr(h, c, l, m, v, w) {
14630
14630
  if (l + m > h.length)
@@ -14635,20 +14635,20 @@ ir.write = function(n, e, t, r, o, i) {
14635
14635
  function hr(h, c, l, m, v) {
14636
14636
  return c = +c, l = l >>> 0, v || pr(h, c, l, 4), t.write(h, c, l, m, 23, 4), l + 4;
14637
14637
  }
14638
- d.prototype.writeFloatLE = function(c, l, m) {
14638
+ u.prototype.writeFloatLE = function(c, l, m) {
14639
14639
  return hr(this, c, l, !0, m);
14640
- }, d.prototype.writeFloatBE = function(c, l, m) {
14640
+ }, u.prototype.writeFloatBE = function(c, l, m) {
14641
14641
  return hr(this, c, l, !1, m);
14642
14642
  };
14643
14643
  function mr(h, c, l, m, v) {
14644
14644
  return c = +c, l = l >>> 0, v || pr(h, c, l, 8), t.write(h, c, l, m, 52, 8), l + 8;
14645
14645
  }
14646
- d.prototype.writeDoubleLE = function(c, l, m) {
14646
+ u.prototype.writeDoubleLE = function(c, l, m) {
14647
14647
  return mr(this, c, l, !0, m);
14648
- }, d.prototype.writeDoubleBE = function(c, l, m) {
14648
+ }, u.prototype.writeDoubleBE = function(c, l, m) {
14649
14649
  return mr(this, c, l, !1, m);
14650
- }, d.prototype.copy = function(c, l, m, v) {
14651
- if (!d.isBuffer(c))
14650
+ }, u.prototype.copy = function(c, l, m, v) {
14651
+ if (!u.isBuffer(c))
14652
14652
  throw new TypeError("argument should be a Buffer");
14653
14653
  if (m || (m = 0), !v && v !== 0 && (v = this.length), l >= c.length && (l = c.length), l || (l = 0), v > 0 && v < m && (v = m), v === m || c.length === 0 || this.length === 0)
14654
14654
  return 0;
@@ -14665,11 +14665,11 @@ ir.write = function(n, e, t, r, o, i) {
14665
14665
  this.subarray(m, v),
14666
14666
  l
14667
14667
  ), w;
14668
- }, d.prototype.fill = function(c, l, m, v) {
14668
+ }, u.prototype.fill = function(c, l, m, v) {
14669
14669
  if (typeof c == "string") {
14670
14670
  if (typeof l == "string" ? (v = l, l = 0, m = this.length) : typeof m == "string" && (v = m, m = this.length), v !== void 0 && typeof v != "string")
14671
14671
  throw new TypeError("encoding must be a string");
14672
- if (typeof v == "string" && !d.isEncoding(v))
14672
+ if (typeof v == "string" && !u.isEncoding(v))
14673
14673
  throw new TypeError("Unknown encoding: " + v);
14674
14674
  if (c.length === 1) {
14675
14675
  const C = c.charCodeAt(0);
@@ -14687,7 +14687,7 @@ ir.write = function(n, e, t, r, o, i) {
14687
14687
  for (w = l; w < m; ++w)
14688
14688
  this[w] = c;
14689
14689
  else {
14690
- const C = d.isBuffer(c) ? c : d.from(c, v), Y = C.length;
14690
+ const C = u.isBuffer(c) ? c : u.from(c, v), Y = C.length;
14691
14691
  if (Y === 0)
14692
14692
  throw new TypeError('The value "' + c + '" is invalid for argument "value"');
14693
14693
  for (w = 0; w < m - l; ++w)
@@ -14874,7 +14874,7 @@ ir.write = function(n, e, t, r, o, i) {
14874
14874
  }
14875
14875
  return c;
14876
14876
  }();
14877
- function ut(h) {
14877
+ function dt(h) {
14878
14878
  return typeof BigInt > "u" ? jo : h;
14879
14879
  }
14880
14880
  function jo() {
@@ -15139,7 +15139,7 @@ const La = fo.Buffer, Mn = {
15139
15139
  }, ls = /* @__PURE__ */ y("img", {
15140
15140
  src: "https://cdn.tapni.co/icons/outlook.png",
15141
15141
  style: { position: "absolute", "margin-left": "-8px", padding: "10px 0", height: "100%" }
15142
- }, null, -1), us = { key: 0 }, ds = {
15142
+ }, null, -1), ds = { key: 0 }, us = {
15143
15143
  key: 1,
15144
15144
  class: "button--loading-black button__loader"
15145
15145
  }, ps = /* @__PURE__ */ y("img", {
@@ -15209,7 +15209,7 @@ function Ps(n, e, t, r, o, i) {
15209
15209
  required: "",
15210
15210
  minlength: "8"
15211
15211
  }, null, 8, Qa), [
15212
- [dn, o.password]
15212
+ [un, o.password]
15213
15213
  ]),
15214
15214
  y("em", {
15215
15215
  onClick: e[4] || (e[4] = (s) => o.revealPassword = !o.revealPassword),
@@ -15258,7 +15258,7 @@ function Ps(n, e, t, r, o, i) {
15258
15258
  class: "button-center button button-90 google-button pointer"
15259
15259
  }, [
15260
15260
  ls,
15261
- n.microsoftLoad ? (S(), P("span", ds)) : (S(), P("span", us, U(n.ssoLang[n.appLanguage].sign_in_with) + " Outlook", 1))
15261
+ n.microsoftLoad ? (S(), P("span", us)) : (S(), P("span", ds, U(n.ssoLang[n.appLanguage].sign_in_with) + " Outlook", 1))
15262
15262
  ])),
15263
15263
  n.displayMicrosoftSSOLogin ? ee("", !0) : (S(), P("a", {
15264
15264
  key: 6,
@@ -15452,10 +15452,10 @@ const _o = /* @__PURE__ */ We(za, [["render", Ps]]), Ms = {
15452
15452
  }, cc = /* @__PURE__ */ y("img", {
15453
15453
  src: "https://cdn.tapni.co/icons/facebook-blue.png",
15454
15454
  style: { position: "absolute", "margin-left": "-10px", padding: "10px 0", height: "100%" }
15455
- }, null, -1), lc = { key: 0 }, uc = {
15455
+ }, null, -1), lc = { key: 0 }, dc = {
15456
15456
  key: 1,
15457
15457
  class: "button--loading-black button__loader"
15458
- }, dc = /* @__PURE__ */ y("img", {
15458
+ }, uc = /* @__PURE__ */ y("img", {
15459
15459
  src: "https://cdn.tapni.co/icons/mail.png",
15460
15460
  style: { position: "absolute", "margin-left": "-8px", padding: "12px 0", height: "100%" }
15461
15461
  }, null, -1), pc = /* @__PURE__ */ y("div", { class: "decoration decoration-lines-thin no-bottom" }, null, -1), hc = { class: "close-text center-text half-top color-black" }, mc = /* @__PURE__ */ y("br", null, null, -1), fc = {
@@ -15532,7 +15532,7 @@ function Cc(n, e, t, r, o, i) {
15532
15532
  required: "",
15533
15533
  minlength: "8"
15534
15534
  }, null, 8, Ws), [
15535
- [dn, o.password]
15535
+ [un, o.password]
15536
15536
  ]),
15537
15537
  y("em", {
15538
15538
  onClick: e[6] || (e[6] = (s) => o.revealPassword = !o.revealPassword),
@@ -15572,14 +15572,14 @@ function Cc(n, e, t, r, o, i) {
15572
15572
  class: "button-center button button-90 google-button pointer"
15573
15573
  }, [
15574
15574
  cc,
15575
- n.facebookLoad ? (S(), P("span", uc)) : (S(), P("span", lc, U(n.ssoLang[this.appLanguage].sign_up_with) + " Facebook", 1))
15575
+ n.facebookLoad ? (S(), P("span", dc)) : (S(), P("span", lc, U(n.ssoLang[this.appLanguage].sign_up_with) + " Facebook", 1))
15576
15576
  ])) : ee("", !0),
15577
15577
  o.emailLogin ? ee("", !0) : (S(), P("a", {
15578
15578
  key: 4,
15579
15579
  onClick: e[10] || (e[10] = (s) => o.emailLogin = !0),
15580
15580
  class: "button-center button button-90 google-button pointer"
15581
15581
  }, [
15582
- dc,
15582
+ uc,
15583
15583
  y("span", null, U(n.ssoLang[this.appLanguage].sign_up_with) + " Email", 1)
15584
15584
  ])),
15585
15585
  pc,
@@ -15886,7 +15886,7 @@ const yo = /* @__PURE__ */ We(Ec, [["render", $c], ["__scopeId", "data-v-75db7f0
15886
15886
  }, al = {
15887
15887
  key: 1,
15888
15888
  class: "button--loading button__loader"
15889
- }, sl = /* @__PURE__ */ lt(() => /* @__PURE__ */ y("div", { class: "decoration decoration-lines-thin no-bottom half-top" }, null, -1)), cl = { class: "close-text center-text half-top color-black" }, ll = ["innerHTML"], ul = ["href"], dl = /* @__PURE__ */ lt(() => /* @__PURE__ */ y("div", { class: "decoration decoration-lines-thin no-bottom half-top" }, null, -1)), pl = { class: "page-login-links" }, hl = /* @__PURE__ */ lt(() => /* @__PURE__ */ y("div", { class: "clear" }, null, -1)), ml = {
15889
+ }, sl = /* @__PURE__ */ lt(() => /* @__PURE__ */ y("div", { class: "decoration decoration-lines-thin no-bottom half-top" }, null, -1)), cl = { class: "close-text center-text half-top color-black" }, ll = ["innerHTML"], dl = ["href"], ul = /* @__PURE__ */ lt(() => /* @__PURE__ */ y("div", { class: "decoration decoration-lines-thin no-bottom half-top" }, null, -1)), pl = { class: "page-login-links" }, hl = /* @__PURE__ */ lt(() => /* @__PURE__ */ y("div", { class: "clear" }, null, -1)), ml = {
15890
15890
  class: "bold no-bottom center-text",
15891
15891
  style: { "margin-top": "63px" }
15892
15892
  }, fl = { class: "half-bottom small-top center-text color-black" }, gl = { class: "page-login-field half-top" }, _l = /* @__PURE__ */ lt(() => /* @__PURE__ */ y("i", { style: { "padding-top": "15px" } }, [
@@ -15940,7 +15940,7 @@ function Ll(n, e, t, r, o, i) {
15940
15940
  placeholder: n.ssoLang[this.appLanguage].password,
15941
15941
  required: ""
15942
15942
  }, null, 8, vl), [
15943
- [dn, o.password]
15943
+ [un, o.password]
15944
15944
  ]),
15945
15945
  y("em", {
15946
15946
  onClick: e[4] || (e[4] = (s) => o.revealPassword = !o.revealPassword)
@@ -15961,7 +15961,7 @@ function Ll(n, e, t, r, o, i) {
15961
15961
  placeholder: n.ssoLang[this.appLanguage].password_repeat,
15962
15962
  required: ""
15963
15963
  }, null, 8, Cl), [
15964
- [dn, o.passwordRepeat]
15964
+ [un, o.passwordRepeat]
15965
15965
  ]),
15966
15966
  y("em", {
15967
15967
  onClick: e[6] || (e[6] = (s) => o.revealPassword2 = !o.revealPassword2)
@@ -16020,9 +16020,9 @@ function Ll(n, e, t, r, o, i) {
16020
16020
  }, null, 8, ll),
16021
16021
  y("a", {
16022
16022
  href: "mailto:support@tapni.com?subject=" + n.ssoLang[this.appLanguage].password_reset_t
16023
- }, " support@tapni.com", 8, ul)
16023
+ }, " support@tapni.com", 8, dl)
16024
16024
  ]),
16025
- dl,
16025
+ ul,
16026
16026
  y("div", pl, [
16027
16027
  ke(a, {
16028
16028
  class: "create float-right",
@@ -16253,29 +16253,29 @@ const Co = /* @__PURE__ */ We(Fl, [["render", Jl], ["__scopeId", "data-v-11f19a0
16253
16253
  class: "responsive-image",
16254
16254
  style: { width: "45%" }
16255
16255
  })
16256
- ], -1)), eu = [
16256
+ ], -1)), ed = [
16257
16257
  Zl
16258
- ], tu = { class: "bold center-text color-black half-top half-bottom" }, nu = /* @__PURE__ */ Nn(() => /* @__PURE__ */ y("img", {
16258
+ ], td = { class: "bold center-text color-black half-top half-bottom" }, nd = /* @__PURE__ */ Nn(() => /* @__PURE__ */ y("img", {
16259
16259
  src: "https://cdn.tapni.co/icons/azure.png",
16260
16260
  style: { position: "absolute", "margin-left": "-11px", padding: "8px 0", height: "100%" }
16261
- }, null, -1)), ru = { key: 0 }, ou = {
16261
+ }, null, -1)), rd = { key: 0 }, od = {
16262
16262
  key: 1,
16263
16263
  class: "button--loading button__loader"
16264
- }, iu = /* @__PURE__ */ Nn(() => /* @__PURE__ */ y("img", {
16264
+ }, id = /* @__PURE__ */ Nn(() => /* @__PURE__ */ y("img", {
16265
16265
  src: "https://cdn.tapni.co/icons/okta.png",
16266
16266
  style: { position: "absolute", "margin-left": "-11px", padding: "8px 0", height: "100%" }
16267
- }, null, -1)), au = { key: 0 }, su = {
16267
+ }, null, -1)), ad = { key: 0 }, sd = {
16268
16268
  key: 1,
16269
16269
  class: "button--loading button__loader"
16270
- }, cu = /* @__PURE__ */ Nn(() => /* @__PURE__ */ y("img", {
16270
+ }, cd = /* @__PURE__ */ Nn(() => /* @__PURE__ */ y("img", {
16271
16271
  src: "https://cdn.tapni.co/icons/saml.png",
16272
16272
  style: { position: "absolute", "margin-left": "-11px", padding: "8px 0", height: "100%" }
16273
- }, null, -1)), lu = { key: 0 }, uu = {
16273
+ }, null, -1)), ld = { key: 0 }, dd = {
16274
16274
  key: 1,
16275
16275
  class: "button--loading button__loader"
16276
16276
  };
16277
- function du(n, e, t, r, o, i) {
16278
- var a, s, u;
16277
+ function ud(n, e, t, r, o, i) {
16278
+ var a, s, d;
16279
16279
  return S(), P("form", {
16280
16280
  onSubmit: e[4] || (e[4] = Oe(() => {
16281
16281
  }, ["prevent"])),
@@ -16286,35 +16286,35 @@ function du(n, e, t, r, o, i) {
16286
16286
  onClick: e[0] || (e[0] = (...p) => i.forceClose && i.forceClose(...p)),
16287
16287
  class: "color-black pull-right pointer",
16288
16288
  style: { "margin-top": "5px", position: "absolute", right: "5px" }
16289
- }, eu),
16290
- y("h3", tu, U(n.ssoLang[n.appLanguage].select_sign_method), 1),
16289
+ }, ed),
16290
+ y("h3", td, U(n.ssoLang[n.appLanguage].select_sign_method), 1),
16291
16291
  (a = o.sso) != null && a.azure ? (S(), P("a", {
16292
16292
  key: 0,
16293
16293
  onClick: e[1] || (e[1] = (p) => i.ssoLogin("azure")),
16294
16294
  class: "button-center button black-button button-90 google-button pointer"
16295
16295
  }, [
16296
- nu,
16297
- o.azureLoad ? (S(), P("span", ou)) : (S(), P("span", ru, U(n.ssoLang[n.appLanguage].sign_in_with) + " Azure", 1))
16296
+ nd,
16297
+ o.azureLoad ? (S(), P("span", od)) : (S(), P("span", rd, U(n.ssoLang[n.appLanguage].sign_in_with) + " Azure", 1))
16298
16298
  ])) : ee("", !0),
16299
16299
  (s = o.sso) != null && s.okta ? (S(), P("a", {
16300
16300
  key: 1,
16301
16301
  onClick: e[2] || (e[2] = (p) => i.ssoLogin("okta")),
16302
16302
  class: "button-center button black-button button-90 google-button pointer"
16303
16303
  }, [
16304
- iu,
16305
- o.oktaLoad ? (S(), P("span", su)) : (S(), P("span", au, U(n.ssoLang[n.appLanguage].sign_in_with) + " Okta", 1))
16304
+ id,
16305
+ o.oktaLoad ? (S(), P("span", sd)) : (S(), P("span", ad, U(n.ssoLang[n.appLanguage].sign_in_with) + " Okta", 1))
16306
16306
  ])) : ee("", !0),
16307
- (u = o.sso) != null && u.saml ? (S(), P("a", {
16307
+ (d = o.sso) != null && d.saml ? (S(), P("a", {
16308
16308
  key: 2,
16309
16309
  onClick: e[3] || (e[3] = (p) => i.ssoLogin("saml")),
16310
16310
  class: "button-center button black-button button-90 google-button pointer"
16311
16311
  }, [
16312
- cu,
16313
- o.samlLoad ? (S(), P("span", uu)) : (S(), P("span", lu, U(n.ssoLang[n.appLanguage].sign_in_with) + " SAML", 1))
16312
+ cd,
16313
+ o.samlLoad ? (S(), P("span", dd)) : (S(), P("span", ld, U(n.ssoLang[n.appLanguage].sign_in_with) + " SAML", 1))
16314
16314
  ])) : ee("", !0)
16315
16315
  ], 34);
16316
16316
  }
16317
- const Eo = /* @__PURE__ */ We(Xl, [["render", du], ["__scopeId", "data-v-4f821f65"]]), pu = {
16317
+ const Eo = /* @__PURE__ */ We(Xl, [["render", ud], ["__scopeId", "data-v-4f821f65"]]), pd = {
16318
16318
  name: "LinkIcon",
16319
16319
  mixins: [ze],
16320
16320
  props: {
@@ -16386,8 +16386,8 @@ const Eo = /* @__PURE__ */ We(Xl, [["render", du], ["__scopeId", "data-v-4f821f6
16386
16386
  }
16387
16387
  },
16388
16388
  methods: {}
16389
- }, hu = ["src", "alt"], mu = ["src", "alt"], fu = ["src", "alt"], gu = ["src", "alt"];
16390
- function _u(n, e, t, r, o, i) {
16389
+ }, hd = ["src", "alt"], md = ["src", "alt"], fd = ["src", "alt"], gd = ["src", "alt"];
16390
+ function _d(n, e, t, r, o, i) {
16391
16391
  var a, s;
16392
16392
  return S(), P("a", {
16393
16393
  class: Ie(["disable-select", t.linkStyle + (t.disabled ? " opacity-50" : "")]),
@@ -16408,31 +16408,31 @@ function _u(n, e, t, r, o, i) {
16408
16408
  src: "https://cdn.tapni.co/icons/" + t.data.type + ".png",
16409
16409
  class: "responsive-image",
16410
16410
  alt: t.data.text,
16411
- onLoad: e[0] || (e[0] = (u) => n.$emit("loaded")),
16412
- onError: e[1] || (e[1] = (u) => n.$emit("loaded"))
16413
- }, null, 40, hu)) : !t.data.custom_icon && t.data.type === "customlink" && t.linkAdding ? (S(), P("img", {
16411
+ onLoad: e[0] || (e[0] = (d) => n.$emit("loaded")),
16412
+ onError: e[1] || (e[1] = (d) => n.$emit("loaded"))
16413
+ }, null, 40, hd)) : !t.data.custom_icon && t.data.type === "customlink" && t.linkAdding ? (S(), P("img", {
16414
16414
  key: 1,
16415
16415
  src: "https://cdn.tapni.co/icons/custom-icon-128.gif",
16416
16416
  class: "responsive-image",
16417
16417
  alt: t.data.text,
16418
- onLoad: e[2] || (e[2] = (u) => n.$emit("loaded")),
16419
- onError: e[3] || (e[3] = (u) => n.$emit("loaded"))
16420
- }, null, 40, mu)) : !t.data.custom_icon && t.data.type === "customlink" && !t.linkAdding ? (S(), P("img", {
16418
+ onLoad: e[2] || (e[2] = (d) => n.$emit("loaded")),
16419
+ onError: e[3] || (e[3] = (d) => n.$emit("loaded"))
16420
+ }, null, 40, md)) : !t.data.custom_icon && t.data.type === "customlink" && !t.linkAdding ? (S(), P("img", {
16421
16421
  key: 2,
16422
16422
  src: "https://cdn.tapni.co/icons/customlink.png",
16423
16423
  class: "responsive-image",
16424
16424
  alt: t.data.text,
16425
- onLoad: e[4] || (e[4] = (u) => n.$emit("loaded")),
16426
- onError: e[5] || (e[5] = (u) => n.$emit("loaded"))
16427
- }, null, 40, fu)) : (S(), P("img", {
16425
+ onLoad: e[4] || (e[4] = (d) => n.$emit("loaded")),
16426
+ onError: e[5] || (e[5] = (d) => n.$emit("loaded"))
16427
+ }, null, 40, fd)) : (S(), P("img", {
16428
16428
  key: 3,
16429
16429
  src: t.data.style.custom_icon,
16430
16430
  style: { "border-radius": "22.46%" },
16431
16431
  class: "responsive-image",
16432
16432
  alt: t.data.text,
16433
- onLoad: e[6] || (e[6] = (u) => n.$emit("loaded")),
16434
- onError: e[7] || (e[7] = (u) => n.$emit("loaded"))
16435
- }, null, 40, gu))
16433
+ onLoad: e[6] || (e[6] = (d) => n.$emit("loaded")),
16434
+ onError: e[7] || (e[7] = (d) => n.$emit("loaded"))
16435
+ }, null, 40, gd))
16436
16436
  ], 6),
16437
16437
  y("span", {
16438
16438
  class: "link-text link-drag color-black",
@@ -16440,17 +16440,17 @@ function _u(n, e, t, r, o, i) {
16440
16440
  }, U(i.linkText), 5)
16441
16441
  ], 6);
16442
16442
  }
16443
- const vu = /* @__PURE__ */ We(pu, [["render", _u]]), yu = {
16443
+ const vd = /* @__PURE__ */ We(pd, [["render", _d]]), yd = {
16444
16444
  ANDROID_VERSION: "5.6",
16445
16445
  IOS_VERSION: "5.6",
16446
16446
  WEB_VERSION: "5.6.0",
16447
16447
  SUPPORTED_LANGUAGES: ["en", "de", "es", "kr", "it", "fr"],
16448
16448
  METAPIXEL_ID: "1203678696914368",
16449
16449
  GOOGLE_ANALYTICS_ID: ""
16450
- }, ku = {
16450
+ }, kd = {
16451
16451
  name: "Language",
16452
16452
  mixins: [ze],
16453
- components: { LinkIcon: vu },
16453
+ components: { LinkIcon: vd },
16454
16454
  data() {
16455
16455
  return {
16456
16456
  toggle: !1
@@ -16461,7 +16461,7 @@ const vu = /* @__PURE__ */ We(pu, [["render", _u]]), yu = {
16461
16461
  this.toggle = !1;
16462
16462
  });
16463
16463
  let n = this.isNative ? await pn.getLanguageCode() : zt.getFirstBrowserLanguage();
16464
- n && yu.SUPPORTED_LANGUAGES.includes(n) && this.updateLanguage(n);
16464
+ n && yd.SUPPORTED_LANGUAGES.includes(n) && this.updateLanguage(n);
16465
16465
  },
16466
16466
  beforeDestroy() {
16467
16467
  z._events.toggleSSOLanguageModal.pop();
@@ -16480,16 +16480,16 @@ const vu = /* @__PURE__ */ We(pu, [["render", _u]]), yu = {
16480
16480
  this.toggle = !this.toggle;
16481
16481
  }
16482
16482
  }
16483
- }, wu = (n) => (Dt("data-v-29699ad7"), n = n(), Ht(), n), bu = /* @__PURE__ */ wu(() => /* @__PURE__ */ y("i", { class: "font-17 fa color-black" }, [
16483
+ }, wd = (n) => (Dt("data-v-29699ad7"), n = n(), Ht(), n), bd = /* @__PURE__ */ wd(() => /* @__PURE__ */ y("i", { class: "font-17 fa color-black" }, [
16484
16484
  /* @__PURE__ */ y("img", {
16485
16485
  src: "https://cdn.tapni.co/icons/down-arrow.png",
16486
16486
  class: "fa responsive-image",
16487
16487
  style: { width: "45%" }
16488
16488
  })
16489
- ], -1)), Cu = [
16490
- bu
16491
- ], Eu = { class: "bold center-text color-black small-bottom" };
16492
- function Tu(n, e, t, r, o, i) {
16489
+ ], -1)), Cd = [
16490
+ bd
16491
+ ], Ed = { class: "bold center-text color-black small-bottom" };
16492
+ function Td(n, e, t, r, o, i) {
16493
16493
  const a = Bt("LinkIcon");
16494
16494
  return S(), P("div", {
16495
16495
  class: Ie(["menu-wrapper menu-light menu-white menu-modal center-text activate-page", { "active-menu": o.toggle }]),
@@ -16499,8 +16499,8 @@ function Tu(n, e, t, r, o, i) {
16499
16499
  onClick: e[0] || (e[0] = (...s) => i.close && i.close(...s)),
16500
16500
  class: "color-black pull-right pointer",
16501
16501
  style: { "margin-top": "5px", position: "absolute", right: "5px" }
16502
- }, Cu),
16503
- y("h3", Eu, U(n.ssoLang[n.appLanguage].app_language), 1),
16502
+ }, Cd),
16503
+ y("h3", Ed, U(n.ssoLang[n.appLanguage].app_language), 1),
16504
16504
  ke(a, {
16505
16505
  onClick: e[1] || (e[1] = (s) => i.updateLanguage("en")),
16506
16506
  "link-style": "link-grid",
@@ -16559,38 +16559,38 @@ function Tu(n, e, t, r, o, i) {
16559
16559
  }, null, 8, ["data"])
16560
16560
  ], 2);
16561
16561
  }
16562
- const To = /* @__PURE__ */ We(ku, [["render", Tu], ["__scopeId", "data-v-29699ad7"]]);
16563
- var Iu = { VITE_APP_MODE: "npm", VITE_APP_APP_ROOT: "https://t.link", VITE_APP_API_ROOT: "https://api.tapni.co", VITE_APP_GOOGLE_RECAPTCHA_SITE_KEY: "6LenkC0mAAAAADWBxPOhpmwXCwzCJd7cilNgtOLk", VITE_APP_SSO_ID: "9cd47053-080a-4df8-8fd8-ca4389163fde", VITE_APP_POPUP_LOGIN_ALLOWED_ORIGIN: "https://auth.tapni.com", BASE_URL: "/", MODE: "production", DEV: !1, PROD: !0, SSR: !1 };
16564
- const Su = { id: "ssoapp" }, Au = {
16562
+ const To = /* @__PURE__ */ We(kd, [["render", Td], ["__scopeId", "data-v-29699ad7"]]);
16563
+ var Id = { VITE_APP_MODE: "npm", VITE_APP_APP_ROOT: "https://t.link", VITE_APP_API_ROOT: "https://api.tapni.co", VITE_APP_GOOGLE_RECAPTCHA_SITE_KEY: "6LenkC0mAAAAADWBxPOhpmwXCwzCJd7cilNgtOLk", VITE_APP_SSO_ID: "9cd47053-080a-4df8-8fd8-ca4389163fde", VITE_APP_POPUP_LOGIN_ALLOWED_ORIGIN: "https://auth.tapni.com", BASE_URL: "/", MODE: "production", DEV: !1, PROD: !0, SSR: !1 };
16564
+ const Sd = { id: "ssoapp" }, Ad = {
16565
16565
  key: 0,
16566
16566
  href: "/",
16567
16567
  class: "header-logo"
16568
- }, Ru = /* @__PURE__ */ y("img", {
16568
+ }, Rd = /* @__PURE__ */ y("img", {
16569
16569
  src: "data:image/png;base64,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",
16570
16570
  onerror: "this.onerror=null;this.src='https://cdn.tapni.co/images/logo-dark.png';",
16571
16571
  class: "header-logo-img"
16572
- }, null, -1), Pu = [
16573
- Ru
16574
- ], Mu = { class: "lang-icon" }, Nu = {
16572
+ }, null, -1), Pd = [
16573
+ Rd
16574
+ ], Md = { class: "lang-icon" }, Nd = {
16575
16575
  class: "snackbar snackbar-boxed",
16576
16576
  id: "snackbar"
16577
- }, Lu = {
16577
+ }, Ld = {
16578
16578
  class: "snack-body",
16579
16579
  id: "errorSnack"
16580
- }, Ou = { id: "errorMessage" }, zu = /* @__PURE__ */ y("img", {
16580
+ }, Od = { id: "errorMessage" }, zd = /* @__PURE__ */ y("img", {
16581
16581
  src: "https://cdn.tapni.co/icons/notification-close.png",
16582
16582
  style: { width: "100%" }
16583
- }, null, -1), Uu = [
16584
- zu
16585
- ], xu = {
16583
+ }, null, -1), Ud = [
16584
+ zd
16585
+ ], xd = {
16586
16586
  class: "snack-body",
16587
16587
  id: "successSnack"
16588
- }, Bu = { id: "successMessage" }, Du = /* @__PURE__ */ y("img", {
16588
+ }, Bd = { id: "successMessage" }, Dd = /* @__PURE__ */ y("img", {
16589
16589
  src: "https://cdn.tapni.co/icons/notification-close.png",
16590
16590
  style: { width: "100%" }
16591
- }, null, -1), Hu = [
16592
- Du
16593
- ], qu = {
16591
+ }, null, -1), Hd = [
16592
+ Dd
16593
+ ], qd = {
16594
16594
  name: "TapniAuth",
16595
16595
  mixins: [ze],
16596
16596
  data() {
@@ -16663,20 +16663,20 @@ const Su = { id: "ssoapp" }, Au = {
16663
16663
  });
16664
16664
  }
16665
16665
  }
16666
- }, Hr = /* @__PURE__ */ Object.assign(qu, {
16666
+ }, Hr = /* @__PURE__ */ Object.assign(qd, {
16667
16667
  setup(n) {
16668
16668
  return document.addEventListener("DOMContentLoaded", function() {
16669
16669
  const e = document.createElement("script");
16670
- e.src = `https://www.google.com/recaptcha/api.js?render=${Iu.VITE_GOOGLE_RECAPTCHA_SITE_KEY}`, document.head.appendChild(e);
16671
- }), (e, t) => (S(), P("div", Su, [
16672
- e.display === "redirect" || e.renderView.includes("Auth") ? (S(), P("a", Au, Pu)) : ee("", !0),
16670
+ e.src = `https://www.google.com/recaptcha/api.js?render=${Id.VITE_GOOGLE_RECAPTCHA_SITE_KEY}`, document.head.appendChild(e);
16671
+ }), (e, t) => (S(), P("div", Sd, [
16672
+ e.display === "redirect" || e.renderView.includes("Auth") ? (S(), P("a", Ad, Pd)) : ee("", !0),
16673
16673
  e.display === "redirect" ? (S(), P("a", {
16674
16674
  key: 1,
16675
16675
  onClick: t[0] || (t[0] = (...r) => e.toggleSSOLanguageModal && e.toggleSSOLanguageModal(...r)),
16676
16676
  class: "font-18 no-border pointer color-black",
16677
16677
  style: { position: "absolute", right: "20px", top: "-10px", "z-index": "1" }
16678
16678
  }, [
16679
- y("span", Mu, U(e.appLanguage.toUpperCase()), 1)
16679
+ y("span", Md, U(e.appLanguage.toUpperCase()), 1)
16680
16680
  ])) : ee("", !0),
16681
16681
  ke(bo),
16682
16682
  n.isModal ? ee("", !0) : (S(), qe(To, { key: 2 })),
@@ -16692,25 +16692,25 @@ const Su = { id: "ssoapp" }, Au = {
16692
16692
  key: 8,
16693
16693
  isModal: n.isModal
16694
16694
  }, null, 8, ["isModal"])) : e.initialized && e.renderView === "AuthReset" ? (S(), qe(ko, { key: 9 })) : e.initialized && e.renderView === "AuthCallback" ? (S(), qe(wo, { key: 10 })) : e.display !== "npm" ? (S(), qe(Qo(Yo), { key: 11 })) : ee("", !0),
16695
- y("div", Nu, [
16696
- y("p", Lu, [
16697
- y("span", Ou, U(e.ssoLang[e.appLanguage].error), 1),
16695
+ y("div", Nd, [
16696
+ y("p", Ld, [
16697
+ y("span", Od, U(e.ssoLang[e.appLanguage].error), 1),
16698
16698
  y("a", {
16699
16699
  onClick: t[1] || (t[1] = (...r) => e.closeSnacks && e.closeSnacks(...r)),
16700
16700
  style: { position: "absolute", right: "10px", top: "10px", width: "50px", height: "50px" }
16701
- }, Uu)
16701
+ }, Ud)
16702
16702
  ]),
16703
- y("p", xu, [
16704
- y("span", Bu, U(e.ssoLang[e.appLanguage].success), 1),
16703
+ y("p", xd, [
16704
+ y("span", Bd, U(e.ssoLang[e.appLanguage].success), 1),
16705
16705
  y("a", {
16706
16706
  onClick: t[2] || (t[2] = (...r) => e.closeSnacks && e.closeSnacks(...r)),
16707
16707
  style: { position: "absolute", right: "10px", top: "10px", width: "50px", height: "50px" }
16708
- }, Hu)
16708
+ }, Hd)
16709
16709
  ])
16710
16710
  ])
16711
16711
  ]));
16712
16712
  }
16713
- }), Zu = {
16713
+ }), Zd = {
16714
16714
  TapniAuth: Hr,
16715
16715
  AuthMixin: ze,
16716
16716
  install: (n, e) => {
@@ -16718,5 +16718,5 @@ const Su = { id: "ssoapp" }, Au = {
16718
16718
  }
16719
16719
  };
16720
16720
  export {
16721
- Zu as default
16721
+ Zd as default
16722
16722
  };