@tapni/auth 1.0.49 → 1.0.52

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.
@@ -151,10 +151,10 @@ function oa(n, e, t) {
151
151
  return (e + t) * 3 / 4 - t;
152
152
  }
153
153
  function ia(n) {
154
- var e, t = ci(n), r = t[0], o = t[1], i = new ta(oa(n, r, o)), a = 0, s = o > 0 ? r - 4 : r, u;
155
- for (u = 0; u < s; u += 4)
156
- e = wt[n.charCodeAt(u)] << 18 | wt[n.charCodeAt(u + 1)] << 12 | wt[n.charCodeAt(u + 2)] << 6 | wt[n.charCodeAt(u + 3)], i[a++] = e >> 16 & 255, i[a++] = e >> 8 & 255, i[a++] = e & 255;
157
- return o === 2 && (e = wt[n.charCodeAt(u)] << 2 | wt[n.charCodeAt(u + 1)] >> 4, i[a++] = e & 255), o === 1 && (e = wt[n.charCodeAt(u)] << 10 | wt[n.charCodeAt(u + 1)] << 4 | wt[n.charCodeAt(u + 2)] >> 2, i[a++] = e >> 8 & 255, i[a++] = e & 255), i;
154
+ var e, t = ci(n), r = t[0], o = t[1], i = new ta(oa(n, r, o)), a = 0, s = o > 0 ? r - 4 : r, l;
155
+ for (l = 0; l < s; l += 4)
156
+ e = wt[n.charCodeAt(l)] << 18 | wt[n.charCodeAt(l + 1)] << 12 | wt[n.charCodeAt(l + 2)] << 6 | wt[n.charCodeAt(l + 3)], i[a++] = e >> 16 & 255, i[a++] = e >> 8 & 255, i[a++] = e & 255;
157
+ return o === 2 && (e = wt[n.charCodeAt(l)] << 2 | wt[n.charCodeAt(l + 1)] >> 4, i[a++] = e & 255), o === 1 && (e = wt[n.charCodeAt(l)] << 10 | wt[n.charCodeAt(l + 1)] << 4 | wt[n.charCodeAt(l + 2)] >> 2, i[a++] = e >> 8 & 255, i[a++] = e & 255), i;
158
158
  }
159
159
  function aa(n) {
160
160
  return Kt[n >> 18 & 63] + Kt[n >> 12 & 63] + Kt[n >> 6 & 63] + Kt[n & 63];
@@ -176,23 +176,23 @@ function ca(n) {
176
176
  var co = {};
177
177
  /*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */
178
178
  co.read = function(n, e, t, r, o) {
179
- var i, a, s = o * 8 - r - 1, u = (1 << s) - 1, p = u >> 1, l = -7, m = t ? o - 1 : 0, f = t ? -1 : 1, k = n[e + m];
180
- for (m += f, i = k & (1 << -l) - 1, k >>= -l, l += s; l > 0; i = i * 256 + n[e + m], m += f, l -= 8)
179
+ var i, a, s = o * 8 - r - 1, l = (1 << s) - 1, p = l >> 1, u = -7, m = t ? o - 1 : 0, f = t ? -1 : 1, k = n[e + m];
180
+ for (m += f, i = k & (1 << -u) - 1, k >>= -u, u += s; u > 0; i = i * 256 + n[e + m], m += f, u -= 8)
181
181
  ;
182
- for (a = i & (1 << -l) - 1, i >>= -l, l += r; l > 0; a = a * 256 + n[e + m], m += f, l -= 8)
182
+ for (a = i & (1 << -u) - 1, i >>= -u, u += r; u > 0; a = a * 256 + n[e + m], m += f, u -= 8)
183
183
  ;
184
184
  if (i === 0)
185
185
  i = 1 - p;
186
186
  else {
187
- if (i === u)
187
+ if (i === l)
188
188
  return a ? NaN : (k ? -1 : 1) * (1 / 0);
189
189
  a = a + Math.pow(2, r), i = i - p;
190
190
  }
191
191
  return (k ? -1 : 1) * a * Math.pow(2, i - r);
192
192
  };
193
193
  co.write = function(n, e, t, r, o, i) {
194
- var a, s, u, p = i * 8 - o - 1, l = (1 << p) - 1, m = l >> 1, f = o === 23 ? Math.pow(2, -24) - Math.pow(2, -77) : 0, k = r ? 0 : i - 1, E = r ? 1 : -1, P = e < 0 || e === 0 && 1 / e < 0 ? 1 : 0;
195
- for (e = Math.abs(e), isNaN(e) || e === 1 / 0 ? (s = isNaN(e) ? 1 : 0, a = l) : (a = Math.floor(Math.log(e) / Math.LN2), e * (u = Math.pow(2, -a)) < 1 && (a--, u *= 2), a + m >= 1 ? e += f / u : e += f * Math.pow(2, 1 - m), e * u >= 2 && (a++, u /= 2), a + m >= l ? (s = 0, a = l) : a + m >= 1 ? (s = (e * u - 1) * Math.pow(2, o), a = a + m) : (s = e * Math.pow(2, m - 1) * Math.pow(2, o), a = 0)); o >= 8; n[t + k] = s & 255, k += E, s /= 256, o -= 8)
194
+ var a, s, l, p = i * 8 - o - 1, u = (1 << p) - 1, m = u >> 1, f = o === 23 ? Math.pow(2, -24) - Math.pow(2, -77) : 0, k = r ? 0 : i - 1, E = r ? 1 : -1, P = e < 0 || e === 0 && 1 / e < 0 ? 1 : 0;
195
+ 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 * (l = Math.pow(2, -a)) < 1 && (a--, l *= 2), a + m >= 1 ? e += f / l : e += f * Math.pow(2, 1 - m), e * l >= 2 && (a++, l /= 2), a + m >= u ? (s = 0, a = u) : a + m >= 1 ? (s = (e * l - 1) * Math.pow(2, o), a = a + m) : (s = e * Math.pow(2, m - 1) * Math.pow(2, o), a = 0)); o >= 8; n[t + k] = s & 255, k += E, s /= 256, o -= 8)
196
196
  ;
197
197
  for (a = a << o | s, p += o; p > 0; n[t + k] = a & 255, k += E, a /= 256, p -= 8)
198
198
  ;
@@ -206,14 +206,14 @@ co.write = function(n, e, t, r, o, i) {
206
206
  */
207
207
  (function(n) {
208
208
  const e = Rr, t = co, r = typeof Symbol == "function" && typeof Symbol.for == "function" ? Symbol.for("nodejs.util.inspect.custom") : null;
209
- n.Buffer = l, n.SlowBuffer = V, n.INSPECT_MAX_BYTES = 50;
209
+ n.Buffer = u, n.SlowBuffer = V, n.INSPECT_MAX_BYTES = 50;
210
210
  const o = 2147483647;
211
211
  n.kMaxLength = o;
212
212
  const { Uint8Array: i, ArrayBuffer: a, SharedArrayBuffer: s } = globalThis;
213
- l.TYPED_ARRAY_SUPPORT = u(), !l.TYPED_ARRAY_SUPPORT && typeof console < "u" && typeof console.error == "function" && console.error(
213
+ u.TYPED_ARRAY_SUPPORT = l(), !u.TYPED_ARRAY_SUPPORT && typeof console < "u" && typeof console.error == "function" && console.error(
214
214
  "This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support."
215
215
  );
216
- function u() {
216
+ function l() {
217
217
  try {
218
218
  const h = new i(1), c = { foo: function() {
219
219
  return 42;
@@ -223,16 +223,16 @@ co.write = function(n, e, t, r, o, i) {
223
223
  return !1;
224
224
  }
225
225
  }
226
- Object.defineProperty(l.prototype, "parent", {
226
+ Object.defineProperty(u.prototype, "parent", {
227
227
  enumerable: !0,
228
228
  get: function() {
229
- if (l.isBuffer(this))
229
+ if (u.isBuffer(this))
230
230
  return this.buffer;
231
231
  }
232
- }), Object.defineProperty(l.prototype, "offset", {
232
+ }), Object.defineProperty(u.prototype, "offset", {
233
233
  enumerable: !0,
234
234
  get: function() {
235
- if (l.isBuffer(this))
235
+ if (u.isBuffer(this))
236
236
  return this.byteOffset;
237
237
  }
238
238
  });
@@ -240,9 +240,9 @@ co.write = function(n, e, t, r, o, i) {
240
240
  if (h > o)
241
241
  throw new RangeError('The value "' + h + '" is invalid for option "size"');
242
242
  const c = new i(h);
243
- return Object.setPrototypeOf(c, l.prototype), c;
243
+ return Object.setPrototypeOf(c, u.prototype), c;
244
244
  }
245
- function l(h, c, d) {
245
+ function u(h, c, d) {
246
246
  if (typeof h == "number") {
247
247
  if (typeof c == "string")
248
248
  throw new TypeError(
@@ -252,7 +252,7 @@ co.write = function(n, e, t, r, o, i) {
252
252
  }
253
253
  return m(h, c, d);
254
254
  }
255
- l.poolSize = 8192;
255
+ u.poolSize = 8192;
256
256
  function m(h, c, d) {
257
257
  if (typeof h == "string")
258
258
  return P(h, c);
@@ -270,18 +270,18 @@ co.write = function(n, e, t, r, o, i) {
270
270
  );
271
271
  const g = h.valueOf && h.valueOf();
272
272
  if (g != null && g !== h)
273
- return l.from(g, c, d);
273
+ return u.from(g, c, d);
274
274
  const w = T(h);
275
275
  if (w) return w;
276
276
  if (typeof Symbol < "u" && Symbol.toPrimitive != null && typeof h[Symbol.toPrimitive] == "function")
277
- return l.from(h[Symbol.toPrimitive]("string"), c, d);
277
+ return u.from(h[Symbol.toPrimitive]("string"), c, d);
278
278
  throw new TypeError(
279
279
  "The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type " + typeof h
280
280
  );
281
281
  }
282
- l.from = function(h, c, d) {
282
+ u.from = function(h, c, d) {
283
283
  return m(h, c, d);
284
- }, Object.setPrototypeOf(l.prototype, i.prototype), Object.setPrototypeOf(l, i);
284
+ }, Object.setPrototypeOf(u.prototype, i.prototype), Object.setPrototypeOf(u, i);
285
285
  function f(h) {
286
286
  if (typeof h != "number")
287
287
  throw new TypeError('"size" argument must be of type number');
@@ -291,19 +291,19 @@ co.write = function(n, e, t, r, o, i) {
291
291
  function k(h, c, d) {
292
292
  return f(h), h <= 0 ? p(h) : c !== void 0 ? typeof d == "string" ? p(h).fill(c, d) : p(h).fill(c) : p(h);
293
293
  }
294
- l.alloc = function(h, c, d) {
294
+ u.alloc = function(h, c, d) {
295
295
  return k(h, c, d);
296
296
  };
297
297
  function E(h) {
298
298
  return f(h), p(h < 0 ? 0 : H(h) | 0);
299
299
  }
300
- l.allocUnsafe = function(h) {
300
+ u.allocUnsafe = function(h) {
301
301
  return E(h);
302
- }, l.allocUnsafeSlow = function(h) {
302
+ }, u.allocUnsafeSlow = function(h) {
303
303
  return E(h);
304
304
  };
305
305
  function P(h, c) {
306
- if ((typeof c != "string" || c === "") && (c = "utf8"), !l.isEncoding(c))
306
+ if ((typeof c != "string" || c === "") && (c = "utf8"), !u.isEncoding(c))
307
307
  throw new TypeError("Unknown encoding: " + c);
308
308
  const d = W(h, c) | 0;
309
309
  let g = p(d);
@@ -329,10 +329,10 @@ co.write = function(n, e, t, r, o, i) {
329
329
  if (h.byteLength < c + (d || 0))
330
330
  throw new RangeError('"length" is outside of buffer bounds');
331
331
  let g;
332
- return c === void 0 && d === void 0 ? g = new i(h) : d === void 0 ? g = new i(h, c) : g = new i(h, c, d), Object.setPrototypeOf(g, l.prototype), g;
332
+ return c === void 0 && d === void 0 ? g = new i(h) : d === void 0 ? g = new i(h, c) : g = new i(h, c, d), Object.setPrototypeOf(g, u.prototype), g;
333
333
  }
334
334
  function T(h) {
335
- if (l.isBuffer(h)) {
335
+ if (u.isBuffer(h)) {
336
336
  const c = H(h.length) | 0, d = p(c);
337
337
  return d.length === 0 || h.copy(d, 0, 0, c), d;
338
338
  }
@@ -347,12 +347,12 @@ co.write = function(n, e, t, r, o, i) {
347
347
  return h | 0;
348
348
  }
349
349
  function V(h) {
350
- return +h != h && (h = 0), l.alloc(+h);
350
+ return +h != h && (h = 0), u.alloc(+h);
351
351
  }
352
- l.isBuffer = function(c) {
353
- return c != null && c._isBuffer === !0 && c !== l.prototype;
354
- }, l.compare = function(c, d) {
355
- if (De(c, i) && (c = l.from(c, c.offset, c.byteLength)), De(d, i) && (d = l.from(d, d.offset, d.byteLength)), !l.isBuffer(c) || !l.isBuffer(d))
352
+ u.isBuffer = function(c) {
353
+ return c != null && c._isBuffer === !0 && c !== u.prototype;
354
+ }, u.compare = function(c, d) {
355
+ if (De(c, i) && (c = u.from(c, c.offset, c.byteLength)), De(d, i) && (d = u.from(d, d.offset, d.byteLength)), !u.isBuffer(c) || !u.isBuffer(d))
356
356
  throw new TypeError(
357
357
  'The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array'
358
358
  );
@@ -364,7 +364,7 @@ co.write = function(n, e, t, r, o, i) {
364
364
  break;
365
365
  }
366
366
  return g < w ? -1 : w < g ? 1 : 0;
367
- }, l.isEncoding = function(c) {
367
+ }, u.isEncoding = function(c) {
368
368
  switch (String(c).toLowerCase()) {
369
369
  case "hex":
370
370
  case "utf8":
@@ -381,26 +381,26 @@ co.write = function(n, e, t, r, o, i) {
381
381
  default:
382
382
  return !1;
383
383
  }
384
- }, l.concat = function(c, d) {
384
+ }, u.concat = function(c, d) {
385
385
  if (!Array.isArray(c))
386
386
  throw new TypeError('"list" argument must be an Array of Buffers');
387
387
  if (c.length === 0)
388
- return l.alloc(0);
388
+ return u.alloc(0);
389
389
  let g;
390
390
  if (d === void 0)
391
391
  for (d = 0, g = 0; g < c.length; ++g)
392
392
  d += c[g].length;
393
- const w = l.allocUnsafe(d);
393
+ const w = u.allocUnsafe(d);
394
394
  let S = 0;
395
395
  for (g = 0; g < c.length; ++g) {
396
396
  let M = c[g];
397
397
  if (De(M, i))
398
- S + M.length > w.length ? (l.isBuffer(M) || (M = l.from(M)), M.copy(w, S)) : i.prototype.set.call(
398
+ S + M.length > w.length ? (u.isBuffer(M) || (M = u.from(M)), M.copy(w, S)) : i.prototype.set.call(
399
399
  w,
400
400
  M,
401
401
  S
402
402
  );
403
- else if (l.isBuffer(M))
403
+ else if (u.isBuffer(M))
404
404
  M.copy(w, S);
405
405
  else
406
406
  throw new TypeError('"list" argument must be an Array of Buffers');
@@ -409,7 +409,7 @@ co.write = function(n, e, t, r, o, i) {
409
409
  return w;
410
410
  };
411
411
  function W(h, c) {
412
- if (l.isBuffer(h))
412
+ if (u.isBuffer(h))
413
413
  return h.length;
414
414
  if (a.isView(h) || De(h, a))
415
415
  return h.byteLength;
@@ -444,7 +444,7 @@ co.write = function(n, e, t, r, o, i) {
444
444
  c = ("" + c).toLowerCase(), w = !0;
445
445
  }
446
446
  }
447
- l.byteLength = W;
447
+ u.byteLength = W;
448
448
  function Z(h, c, d) {
449
449
  let g = !1;
450
450
  if ((c === void 0 || c < 0) && (c = 0), c > this.length || ((d === void 0 || d > this.length) && (d = this.length), d <= 0) || (d >>>= 0, c >>>= 0, d <= c))
@@ -473,44 +473,44 @@ co.write = function(n, e, t, r, o, i) {
473
473
  h = (h + "").toLowerCase(), g = !0;
474
474
  }
475
475
  }
476
- l.prototype._isBuffer = !0;
476
+ u.prototype._isBuffer = !0;
477
477
  function I(h, c, d) {
478
478
  const g = h[c];
479
479
  h[c] = h[d], h[d] = g;
480
480
  }
481
- l.prototype.swap16 = function() {
481
+ u.prototype.swap16 = function() {
482
482
  const c = this.length;
483
483
  if (c % 2 !== 0)
484
484
  throw new RangeError("Buffer size must be a multiple of 16-bits");
485
485
  for (let d = 0; d < c; d += 2)
486
486
  I(this, d, d + 1);
487
487
  return this;
488
- }, l.prototype.swap32 = function() {
488
+ }, u.prototype.swap32 = function() {
489
489
  const c = this.length;
490
490
  if (c % 4 !== 0)
491
491
  throw new RangeError("Buffer size must be a multiple of 32-bits");
492
492
  for (let d = 0; d < c; d += 4)
493
493
  I(this, d, d + 3), I(this, d + 1, d + 2);
494
494
  return this;
495
- }, l.prototype.swap64 = function() {
495
+ }, u.prototype.swap64 = function() {
496
496
  const c = this.length;
497
497
  if (c % 8 !== 0)
498
498
  throw new RangeError("Buffer size must be a multiple of 64-bits");
499
499
  for (let d = 0; d < c; d += 8)
500
500
  I(this, d, d + 7), I(this, d + 1, d + 6), I(this, d + 2, d + 5), I(this, d + 3, d + 4);
501
501
  return this;
502
- }, l.prototype.toString = function() {
502
+ }, u.prototype.toString = function() {
503
503
  const c = this.length;
504
504
  return c === 0 ? "" : arguments.length === 0 ? Nt(this, 0, c) : Z.apply(this, arguments);
505
- }, l.prototype.toLocaleString = l.prototype.toString, l.prototype.equals = function(c) {
506
- if (!l.isBuffer(c)) throw new TypeError("Argument must be a Buffer");
507
- return this === c ? !0 : l.compare(this, c) === 0;
508
- }, l.prototype.inspect = function() {
505
+ }, u.prototype.toLocaleString = u.prototype.toString, u.prototype.equals = function(c) {
506
+ if (!u.isBuffer(c)) throw new TypeError("Argument must be a Buffer");
507
+ return this === c ? !0 : u.compare(this, c) === 0;
508
+ }, u.prototype.inspect = function() {
509
509
  let c = "";
510
510
  const d = n.INSPECT_MAX_BYTES;
511
511
  return c = this.toString("hex", 0, d).replace(/(.{2})/g, "$1 ").trim(), this.length > d && (c += " ... "), "<Buffer " + c + ">";
512
- }, r && (l.prototype[r] = l.prototype.inspect), l.prototype.compare = function(c, d, g, w, S) {
513
- if (De(c, i) && (c = l.from(c, c.offset, c.byteLength)), !l.isBuffer(c))
512
+ }, r && (u.prototype[r] = u.prototype.inspect), u.prototype.compare = function(c, d, g, w, S) {
513
+ if (De(c, i) && (c = u.from(c, c.offset, c.byteLength)), !u.isBuffer(c))
514
514
  throw new TypeError(
515
515
  'The "target" argument must be one of type Buffer or Uint8Array. Received type ' + typeof c
516
516
  );
@@ -540,7 +540,7 @@ co.write = function(n, e, t, r, o, i) {
540
540
  } else if (d < 0)
541
541
  if (w) d = 0;
542
542
  else return -1;
543
- if (typeof c == "string" && (c = l.from(c, g)), l.isBuffer(c))
543
+ if (typeof c == "string" && (c = u.from(c, g)), u.isBuffer(c))
544
544
  return c.length === 0 ? -1 : fe(h, c, d, g, w);
545
545
  if (typeof c == "number")
546
546
  return c = c & 255, typeof i.prototype.indexOf == "function" ? w ? i.prototype.indexOf.call(h, c, d) : i.prototype.lastIndexOf.call(h, c, d) : fe(h, [c], d, g, w);
@@ -576,11 +576,11 @@ co.write = function(n, e, t, r, o, i) {
576
576
  }
577
577
  return -1;
578
578
  }
579
- l.prototype.includes = function(c, d, g) {
579
+ u.prototype.includes = function(c, d, g) {
580
580
  return this.indexOf(c, d, g) !== -1;
581
- }, l.prototype.indexOf = function(c, d, g) {
581
+ }, u.prototype.indexOf = function(c, d, g) {
582
582
  return te(this, c, d, g, !0);
583
- }, l.prototype.lastIndexOf = function(c, d, g) {
583
+ }, u.prototype.lastIndexOf = function(c, d, g) {
584
584
  return te(this, c, d, g, !1);
585
585
  };
586
586
  function re(h, c, d, g) {
@@ -609,7 +609,7 @@ co.write = function(n, e, t, r, o, i) {
609
609
  function Ue(h, c, d, g) {
610
610
  return yt(St(c, h.length - d), h, d, g);
611
611
  }
612
- l.prototype.write = function(c, d, g, w) {
612
+ u.prototype.write = function(c, d, g, w) {
613
613
  if (d === void 0)
614
614
  w = "utf8", g = this.length, d = 0;
615
615
  else if (g === void 0 && typeof d == "string")
@@ -647,7 +647,7 @@ co.write = function(n, e, t, r, o, i) {
647
647
  if (M) throw new TypeError("Unknown encoding: " + w);
648
648
  w = ("" + w).toLowerCase(), M = !0;
649
649
  }
650
- }, l.prototype.toJSON = function() {
650
+ }, u.prototype.toJSON = function() {
651
651
  return {
652
652
  type: "Buffer",
653
653
  data: Array.prototype.slice.call(this._arr || this, 0)
@@ -725,104 +725,104 @@ co.write = function(n, e, t, r, o, i) {
725
725
  w += String.fromCharCode(g[S] + g[S + 1] * 256);
726
726
  return w;
727
727
  }
728
- l.prototype.slice = function(c, d) {
728
+ u.prototype.slice = function(c, d) {
729
729
  const g = this.length;
730
730
  c = ~~c, d = d === void 0 ? g : ~~d, c < 0 ? (c += g, c < 0 && (c = 0)) : c > g && (c = g), d < 0 ? (d += g, d < 0 && (d = 0)) : d > g && (d = g), d < c && (d = c);
731
731
  const w = this.subarray(c, d);
732
- return Object.setPrototypeOf(w, l.prototype), w;
732
+ return Object.setPrototypeOf(w, u.prototype), w;
733
733
  };
734
734
  function Re(h, c, d) {
735
735
  if (h % 1 !== 0 || h < 0) throw new RangeError("offset is not uint");
736
736
  if (h + c > d) throw new RangeError("Trying to access beyond buffer length");
737
737
  }
738
- l.prototype.readUintLE = l.prototype.readUIntLE = function(c, d, g) {
738
+ u.prototype.readUintLE = u.prototype.readUIntLE = function(c, d, g) {
739
739
  c = c >>> 0, d = d >>> 0, g || Re(c, d, this.length);
740
740
  let w = this[c], S = 1, M = 0;
741
741
  for (; ++M < d && (S *= 256); )
742
742
  w += this[c + M] * S;
743
743
  return w;
744
- }, l.prototype.readUintBE = l.prototype.readUIntBE = function(c, d, g) {
744
+ }, u.prototype.readUintBE = u.prototype.readUIntBE = function(c, d, g) {
745
745
  c = c >>> 0, d = d >>> 0, g || Re(c, d, this.length);
746
746
  let w = this[c + --d], S = 1;
747
747
  for (; d > 0 && (S *= 256); )
748
748
  w += this[c + --d] * S;
749
749
  return w;
750
- }, l.prototype.readUint8 = l.prototype.readUInt8 = function(c, d) {
750
+ }, u.prototype.readUint8 = u.prototype.readUInt8 = function(c, d) {
751
751
  return c = c >>> 0, d || Re(c, 1, this.length), this[c];
752
- }, l.prototype.readUint16LE = l.prototype.readUInt16LE = function(c, d) {
752
+ }, u.prototype.readUint16LE = u.prototype.readUInt16LE = function(c, d) {
753
753
  return c = c >>> 0, d || Re(c, 2, this.length), this[c] | this[c + 1] << 8;
754
- }, l.prototype.readUint16BE = l.prototype.readUInt16BE = function(c, d) {
754
+ }, u.prototype.readUint16BE = u.prototype.readUInt16BE = function(c, d) {
755
755
  return c = c >>> 0, d || Re(c, 2, this.length), this[c] << 8 | this[c + 1];
756
- }, l.prototype.readUint32LE = l.prototype.readUInt32LE = function(c, d) {
756
+ }, u.prototype.readUint32LE = u.prototype.readUInt32LE = function(c, d) {
757
757
  return c = c >>> 0, d || Re(c, 4, this.length), (this[c] | this[c + 1] << 8 | this[c + 2] << 16) + this[c + 3] * 16777216;
758
- }, l.prototype.readUint32BE = l.prototype.readUInt32BE = function(c, d) {
758
+ }, u.prototype.readUint32BE = u.prototype.readUInt32BE = function(c, d) {
759
759
  return c = c >>> 0, d || Re(c, 4, this.length), this[c] * 16777216 + (this[c + 1] << 16 | this[c + 2] << 8 | this[c + 3]);
760
- }, l.prototype.readBigUInt64LE = Ge(function(c) {
760
+ }, u.prototype.readBigUInt64LE = Ge(function(c) {
761
761
  c = c >>> 0, Ne(c, "offset");
762
762
  const d = this[c], g = this[c + 7];
763
763
  (d === void 0 || g === void 0) && pt(c, this.length - 8);
764
764
  const w = d + this[++c] * 2 ** 8 + this[++c] * 2 ** 16 + this[++c] * 2 ** 24, S = this[++c] + this[++c] * 2 ** 8 + this[++c] * 2 ** 16 + g * 2 ** 24;
765
765
  return BigInt(w) + (BigInt(S) << BigInt(32));
766
- }), l.prototype.readBigUInt64BE = Ge(function(c) {
766
+ }), u.prototype.readBigUInt64BE = Ge(function(c) {
767
767
  c = c >>> 0, Ne(c, "offset");
768
768
  const d = this[c], g = this[c + 7];
769
769
  (d === void 0 || g === void 0) && pt(c, this.length - 8);
770
770
  const w = d * 2 ** 24 + this[++c] * 2 ** 16 + this[++c] * 2 ** 8 + this[++c], S = this[++c] * 2 ** 24 + this[++c] * 2 ** 16 + this[++c] * 2 ** 8 + g;
771
771
  return (BigInt(w) << BigInt(32)) + BigInt(S);
772
- }), l.prototype.readIntLE = function(c, d, g) {
772
+ }), u.prototype.readIntLE = function(c, d, g) {
773
773
  c = c >>> 0, d = d >>> 0, g || Re(c, d, this.length);
774
774
  let w = this[c], S = 1, M = 0;
775
775
  for (; ++M < d && (S *= 256); )
776
776
  w += this[c + M] * S;
777
777
  return S *= 128, w >= S && (w -= Math.pow(2, 8 * d)), w;
778
- }, l.prototype.readIntBE = function(c, d, g) {
778
+ }, u.prototype.readIntBE = function(c, d, g) {
779
779
  c = c >>> 0, d = d >>> 0, g || Re(c, d, this.length);
780
780
  let w = d, S = 1, M = this[c + --w];
781
781
  for (; w > 0 && (S *= 256); )
782
782
  M += this[c + --w] * S;
783
783
  return S *= 128, M >= S && (M -= Math.pow(2, 8 * d)), M;
784
- }, l.prototype.readInt8 = function(c, d) {
784
+ }, u.prototype.readInt8 = function(c, d) {
785
785
  return c = c >>> 0, d || Re(c, 1, this.length), this[c] & 128 ? (255 - this[c] + 1) * -1 : this[c];
786
- }, l.prototype.readInt16LE = function(c, d) {
786
+ }, u.prototype.readInt16LE = function(c, d) {
787
787
  c = c >>> 0, d || Re(c, 2, this.length);
788
788
  const g = this[c] | this[c + 1] << 8;
789
789
  return g & 32768 ? g | 4294901760 : g;
790
- }, l.prototype.readInt16BE = function(c, d) {
790
+ }, u.prototype.readInt16BE = function(c, d) {
791
791
  c = c >>> 0, d || Re(c, 2, this.length);
792
792
  const g = this[c + 1] | this[c] << 8;
793
793
  return g & 32768 ? g | 4294901760 : g;
794
- }, l.prototype.readInt32LE = function(c, d) {
794
+ }, u.prototype.readInt32LE = function(c, d) {
795
795
  return c = c >>> 0, d || Re(c, 4, this.length), this[c] | this[c + 1] << 8 | this[c + 2] << 16 | this[c + 3] << 24;
796
- }, l.prototype.readInt32BE = function(c, d) {
796
+ }, u.prototype.readInt32BE = function(c, d) {
797
797
  return c = c >>> 0, d || Re(c, 4, this.length), this[c] << 24 | this[c + 1] << 16 | this[c + 2] << 8 | this[c + 3];
798
- }, l.prototype.readBigInt64LE = Ge(function(c) {
798
+ }, u.prototype.readBigInt64LE = Ge(function(c) {
799
799
  c = c >>> 0, Ne(c, "offset");
800
800
  const d = this[c], g = this[c + 7];
801
801
  (d === void 0 || g === void 0) && pt(c, this.length - 8);
802
802
  const w = this[c + 4] + this[c + 5] * 2 ** 8 + this[c + 6] * 2 ** 16 + (g << 24);
803
803
  return (BigInt(w) << BigInt(32)) + BigInt(d + this[++c] * 2 ** 8 + this[++c] * 2 ** 16 + this[++c] * 2 ** 24);
804
- }), l.prototype.readBigInt64BE = Ge(function(c) {
804
+ }), u.prototype.readBigInt64BE = Ge(function(c) {
805
805
  c = c >>> 0, Ne(c, "offset");
806
806
  const d = this[c], g = this[c + 7];
807
807
  (d === void 0 || g === void 0) && pt(c, this.length - 8);
808
808
  const w = (d << 24) + // Overflow
809
809
  this[++c] * 2 ** 16 + this[++c] * 2 ** 8 + this[++c];
810
810
  return (BigInt(w) << BigInt(32)) + BigInt(this[++c] * 2 ** 24 + this[++c] * 2 ** 16 + this[++c] * 2 ** 8 + g);
811
- }), l.prototype.readFloatLE = function(c, d) {
811
+ }), u.prototype.readFloatLE = function(c, d) {
812
812
  return c = c >>> 0, d || Re(c, 4, this.length), t.read(this, c, !0, 23, 4);
813
- }, l.prototype.readFloatBE = function(c, d) {
813
+ }, u.prototype.readFloatBE = function(c, d) {
814
814
  return c = c >>> 0, d || Re(c, 4, this.length), t.read(this, c, !1, 23, 4);
815
- }, l.prototype.readDoubleLE = function(c, d) {
815
+ }, u.prototype.readDoubleLE = function(c, d) {
816
816
  return c = c >>> 0, d || Re(c, 8, this.length), t.read(this, c, !0, 52, 8);
817
- }, l.prototype.readDoubleBE = function(c, d) {
817
+ }, u.prototype.readDoubleBE = function(c, d) {
818
818
  return c = c >>> 0, d || Re(c, 8, this.length), t.read(this, c, !1, 52, 8);
819
819
  };
820
820
  function Me(h, c, d, g, w, S) {
821
- if (!l.isBuffer(h)) throw new TypeError('"buffer" argument must be a Buffer instance');
821
+ if (!u.isBuffer(h)) throw new TypeError('"buffer" argument must be a Buffer instance');
822
822
  if (c > w || c < S) throw new RangeError('"value" argument is out of bounds');
823
823
  if (d + g > h.length) throw new RangeError("Index out of range");
824
824
  }
825
- l.prototype.writeUintLE = l.prototype.writeUIntLE = function(c, d, g, w) {
825
+ u.prototype.writeUintLE = u.prototype.writeUIntLE = function(c, d, g, w) {
826
826
  if (c = +c, d = d >>> 0, g = g >>> 0, !w) {
827
827
  const ue = Math.pow(2, 8 * g) - 1;
828
828
  Me(this, c, d, g, ue, 0);
@@ -831,7 +831,7 @@ co.write = function(n, e, t, r, o, i) {
831
831
  for (this[d] = c & 255; ++M < g && (S *= 256); )
832
832
  this[d + M] = c / S & 255;
833
833
  return d + g;
834
- }, l.prototype.writeUintBE = l.prototype.writeUIntBE = function(c, d, g, w) {
834
+ }, u.prototype.writeUintBE = u.prototype.writeUIntBE = function(c, d, g, w) {
835
835
  if (c = +c, d = d >>> 0, g = g >>> 0, !w) {
836
836
  const ue = Math.pow(2, 8 * g) - 1;
837
837
  Me(this, c, d, g, ue, 0);
@@ -840,15 +840,15 @@ co.write = function(n, e, t, r, o, i) {
840
840
  for (this[d + S] = c & 255; --S >= 0 && (M *= 256); )
841
841
  this[d + S] = c / M & 255;
842
842
  return d + g;
843
- }, l.prototype.writeUint8 = l.prototype.writeUInt8 = function(c, d, g) {
843
+ }, u.prototype.writeUint8 = u.prototype.writeUInt8 = function(c, d, g) {
844
844
  return c = +c, d = d >>> 0, g || Me(this, c, d, 1, 255, 0), this[d] = c & 255, d + 1;
845
- }, l.prototype.writeUint16LE = l.prototype.writeUInt16LE = function(c, d, g) {
845
+ }, u.prototype.writeUint16LE = u.prototype.writeUInt16LE = function(c, d, g) {
846
846
  return c = +c, d = d >>> 0, g || Me(this, c, d, 2, 65535, 0), this[d] = c & 255, this[d + 1] = c >>> 8, d + 2;
847
- }, l.prototype.writeUint16BE = l.prototype.writeUInt16BE = function(c, d, g) {
847
+ }, u.prototype.writeUint16BE = u.prototype.writeUInt16BE = function(c, d, g) {
848
848
  return c = +c, d = d >>> 0, g || Me(this, c, d, 2, 65535, 0), this[d] = c >>> 8, this[d + 1] = c & 255, d + 2;
849
- }, l.prototype.writeUint32LE = l.prototype.writeUInt32LE = function(c, d, g) {
849
+ }, u.prototype.writeUint32LE = u.prototype.writeUInt32LE = function(c, d, g) {
850
850
  return c = +c, d = d >>> 0, g || Me(this, c, d, 4, 4294967295, 0), this[d + 3] = c >>> 24, this[d + 2] = c >>> 16, this[d + 1] = c >>> 8, this[d] = c & 255, d + 4;
851
- }, l.prototype.writeUint32BE = l.prototype.writeUInt32BE = function(c, d, g) {
851
+ }, u.prototype.writeUint32BE = u.prototype.writeUInt32BE = function(c, d, g) {
852
852
  return c = +c, d = d >>> 0, g || Me(this, c, d, 4, 4294967295, 0), this[d] = c >>> 24, this[d + 1] = c >>> 16, this[d + 2] = c >>> 8, this[d + 3] = c & 255, d + 4;
853
853
  };
854
854
  function $t(h, c, d, g, w) {
@@ -865,11 +865,11 @@ co.write = function(n, e, t, r, o, i) {
865
865
  let M = Number(c >> BigInt(32) & BigInt(4294967295));
866
866
  return h[d + 3] = M, M = M >> 8, h[d + 2] = M, M = M >> 8, h[d + 1] = M, M = M >> 8, h[d] = M, d + 8;
867
867
  }
868
- l.prototype.writeBigUInt64LE = Ge(function(c, d = 0) {
868
+ u.prototype.writeBigUInt64LE = Ge(function(c, d = 0) {
869
869
  return $t(this, c, d, BigInt(0), BigInt("0xffffffffffffffff"));
870
- }), l.prototype.writeBigUInt64BE = Ge(function(c, d = 0) {
870
+ }), u.prototype.writeBigUInt64BE = Ge(function(c, d = 0) {
871
871
  return qe(this, c, d, BigInt(0), BigInt("0xffffffffffffffff"));
872
- }), l.prototype.writeIntLE = function(c, d, g, w) {
872
+ }), u.prototype.writeIntLE = function(c, d, g, w) {
873
873
  if (c = +c, d = d >>> 0, !w) {
874
874
  const Te = Math.pow(2, 8 * g - 1);
875
875
  Me(this, c, d, g, Te - 1, -Te);
@@ -878,7 +878,7 @@ co.write = function(n, e, t, r, o, i) {
878
878
  for (this[d] = c & 255; ++S < g && (M *= 256); )
879
879
  c < 0 && ue === 0 && this[d + S - 1] !== 0 && (ue = 1), this[d + S] = (c / M >> 0) - ue & 255;
880
880
  return d + g;
881
- }, l.prototype.writeIntBE = function(c, d, g, w) {
881
+ }, u.prototype.writeIntBE = function(c, d, g, w) {
882
882
  if (c = +c, d = d >>> 0, !w) {
883
883
  const Te = Math.pow(2, 8 * g - 1);
884
884
  Me(this, c, d, g, Te - 1, -Te);
@@ -887,19 +887,19 @@ co.write = function(n, e, t, r, o, i) {
887
887
  for (this[d + S] = c & 255; --S >= 0 && (M *= 256); )
888
888
  c < 0 && ue === 0 && this[d + S + 1] !== 0 && (ue = 1), this[d + S] = (c / M >> 0) - ue & 255;
889
889
  return d + g;
890
- }, l.prototype.writeInt8 = function(c, d, g) {
890
+ }, u.prototype.writeInt8 = function(c, d, g) {
891
891
  return c = +c, d = d >>> 0, g || Me(this, c, d, 1, 127, -128), c < 0 && (c = 255 + c + 1), this[d] = c & 255, d + 1;
892
- }, l.prototype.writeInt16LE = function(c, d, g) {
892
+ }, u.prototype.writeInt16LE = function(c, d, g) {
893
893
  return c = +c, d = d >>> 0, g || Me(this, c, d, 2, 32767, -32768), this[d] = c & 255, this[d + 1] = c >>> 8, d + 2;
894
- }, l.prototype.writeInt16BE = function(c, d, g) {
894
+ }, u.prototype.writeInt16BE = function(c, d, g) {
895
895
  return c = +c, d = d >>> 0, g || Me(this, c, d, 2, 32767, -32768), this[d] = c >>> 8, this[d + 1] = c & 255, d + 2;
896
- }, l.prototype.writeInt32LE = function(c, d, g) {
896
+ }, u.prototype.writeInt32LE = function(c, d, g) {
897
897
  return c = +c, d = d >>> 0, g || Me(this, c, d, 4, 2147483647, -2147483648), this[d] = c & 255, this[d + 1] = c >>> 8, this[d + 2] = c >>> 16, this[d + 3] = c >>> 24, d + 4;
898
- }, l.prototype.writeInt32BE = function(c, d, g) {
898
+ }, u.prototype.writeInt32BE = function(c, d, g) {
899
899
  return c = +c, d = d >>> 0, g || Me(this, c, d, 4, 2147483647, -2147483648), c < 0 && (c = 4294967295 + c + 1), this[d] = c >>> 24, this[d + 1] = c >>> 16, this[d + 2] = c >>> 8, this[d + 3] = c & 255, d + 4;
900
- }, l.prototype.writeBigInt64LE = Ge(function(c, d = 0) {
900
+ }, u.prototype.writeBigInt64LE = Ge(function(c, d = 0) {
901
901
  return $t(this, c, d, -BigInt("0x8000000000000000"), BigInt("0x7fffffffffffffff"));
902
- }), l.prototype.writeBigInt64BE = Ge(function(c, d = 0) {
902
+ }), u.prototype.writeBigInt64BE = Ge(function(c, d = 0) {
903
903
  return qe(this, c, d, -BigInt("0x8000000000000000"), BigInt("0x7fffffffffffffff"));
904
904
  });
905
905
  function Be(h, c, d, g, w, S) {
@@ -909,20 +909,20 @@ co.write = function(n, e, t, r, o, i) {
909
909
  function Ot(h, c, d, g, w) {
910
910
  return c = +c, d = d >>> 0, w || Be(h, c, d, 4), t.write(h, c, d, g, 23, 4), d + 4;
911
911
  }
912
- l.prototype.writeFloatLE = function(c, d, g) {
912
+ u.prototype.writeFloatLE = function(c, d, g) {
913
913
  return Ot(this, c, d, !0, g);
914
- }, l.prototype.writeFloatBE = function(c, d, g) {
914
+ }, u.prototype.writeFloatBE = function(c, d, g) {
915
915
  return Ot(this, c, d, !1, g);
916
916
  };
917
917
  function Tt(h, c, d, g, w) {
918
918
  return c = +c, d = d >>> 0, w || Be(h, c, d, 8), t.write(h, c, d, g, 52, 8), d + 8;
919
919
  }
920
- l.prototype.writeDoubleLE = function(c, d, g) {
920
+ u.prototype.writeDoubleLE = function(c, d, g) {
921
921
  return Tt(this, c, d, !0, g);
922
- }, l.prototype.writeDoubleBE = function(c, d, g) {
922
+ }, u.prototype.writeDoubleBE = function(c, d, g) {
923
923
  return Tt(this, c, d, !1, g);
924
- }, l.prototype.copy = function(c, d, g, w) {
925
- if (!l.isBuffer(c)) throw new TypeError("argument should be a Buffer");
924
+ }, u.prototype.copy = function(c, d, g, w) {
925
+ if (!u.isBuffer(c)) throw new TypeError("argument should be a Buffer");
926
926
  if (g || (g = 0), !w && w !== 0 && (w = this.length), d >= c.length && (d = c.length), d || (d = 0), w > 0 && w < g && (w = g), w === g || c.length === 0 || this.length === 0) return 0;
927
927
  if (d < 0)
928
928
  throw new RangeError("targetStart out of bounds");
@@ -935,11 +935,11 @@ co.write = function(n, e, t, r, o, i) {
935
935
  this.subarray(g, w),
936
936
  d
937
937
  ), S;
938
- }, l.prototype.fill = function(c, d, g, w) {
938
+ }, u.prototype.fill = function(c, d, g, w) {
939
939
  if (typeof c == "string") {
940
940
  if (typeof d == "string" ? (w = d, d = 0, g = this.length) : typeof g == "string" && (w = g, g = this.length), w !== void 0 && typeof w != "string")
941
941
  throw new TypeError("encoding must be a string");
942
- if (typeof w == "string" && !l.isEncoding(w))
942
+ if (typeof w == "string" && !u.isEncoding(w))
943
943
  throw new TypeError("Unknown encoding: " + w);
944
944
  if (c.length === 1) {
945
945
  const M = c.charCodeAt(0);
@@ -956,7 +956,7 @@ co.write = function(n, e, t, r, o, i) {
956
956
  for (S = d; S < g; ++S)
957
957
  this[S] = c;
958
958
  else {
959
- const M = l.isBuffer(c) ? c : l.from(c, w), ue = M.length;
959
+ const M = u.isBuffer(c) ? c : u.from(c, w), ue = M.length;
960
960
  if (ue === 0)
961
961
  throw new TypeError('The value "' + c + '" is invalid for argument "value"');
962
962
  for (S = 0; S < g - d; ++S)
@@ -1391,7 +1391,7 @@ function wa(n, e, t, r, o, i) {
1391
1391
  const lo = /* @__PURE__ */ an(fa, [["render", wa], ["__scopeId", "data-v-cb61958b"]]), ka = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1392
1392
  __proto__: null,
1393
1393
  default: lo
1394
- }, Symbol.toStringTag, { value: "Module" })), Ca = "1.0.49", qn = {
1394
+ }, Symbol.toStringTag, { value: "Module" })), Ca = "1.0.52", qn = {
1395
1395
  getMe() {
1396
1396
  return pe().get("/users/me");
1397
1397
  },
@@ -5828,7 +5828,7 @@ Tanıştığınız herkesi etkileyin 😎 <br> Kendinize bir tane ayırın 👇`
5828
5828
  app_region: "지역",
5829
5829
  app_region_p: "맞춤형 결제 및 지원을 위해 지역을 선택하세요"
5830
5830
  }
5831
- }, Mo = () => Promise.resolve().then(() => ka), Ta = () => Promise.resolve().then(() => Rc), Sa = () => Promise.resolve().then(() => Al), Ia = () => Promise.resolve().then(() => ap), Aa = () => Promise.resolve().then(() => tl), Ra = () => Promise.resolve().then(() => ql), Pa = () => Promise.resolve().then(() => pp), Ma = () => import("./QR-DXrAYZV9.js"), Na = () => Promise.resolve().then(() => Ku), Oa = () => import("./Apps-HQa2BJ6I.js"), La = () => import("./Billing-CdKnzPQ0.js"), za = () => import("./CustomApp-Bne3_0ER.js"), xa = () => Promise.resolve().then(() => Md), Ua = [
5831
+ }, Mo = () => Promise.resolve().then(() => ka), Ta = () => Promise.resolve().then(() => Rc), Sa = () => Promise.resolve().then(() => Al), Ia = () => Promise.resolve().then(() => ap), Aa = () => Promise.resolve().then(() => tl), Ra = () => Promise.resolve().then(() => ql), Pa = () => Promise.resolve().then(() => pp), Ma = () => import("./QR-C6K2Z3Ey.js"), Na = () => Promise.resolve().then(() => Ku), Oa = () => import("./Apps-WVb4S3LS.js"), La = () => import("./Billing-C8WFpUFn.js"), za = () => import("./CustomApp-LUQvCaYr.js"), xa = () => Promise.resolve().then(() => Md), Ua = [
5832
5832
  {
5833
5833
  path: "/welcome",
5834
5834
  name: "AuthWelcome",
@@ -6533,22 +6533,22 @@ function L(n, e, t, r) {
6533
6533
  });
6534
6534
  }
6535
6535
  return new (t || (t = Promise))(function(i, a) {
6536
- function s(l) {
6536
+ function s(u) {
6537
6537
  try {
6538
- p(r.next(l));
6538
+ p(r.next(u));
6539
6539
  } catch (m) {
6540
6540
  a(m);
6541
6541
  }
6542
6542
  }
6543
- function u(l) {
6543
+ function l(u) {
6544
6544
  try {
6545
- p(r.throw(l));
6545
+ p(r.throw(u));
6546
6546
  } catch (m) {
6547
6547
  a(m);
6548
6548
  }
6549
6549
  }
6550
- function p(l) {
6551
- l.done ? i(l.value) : o(l.value).then(s, u);
6550
+ function p(u) {
6551
+ u.done ? i(u.value) : o(u.value).then(s, l);
6552
6552
  }
6553
6553
  p((r = r.apply(n, [])).next());
6554
6554
  });
@@ -6562,11 +6562,11 @@ function z(n, e) {
6562
6562
  return this;
6563
6563
  }), a;
6564
6564
  function s(p) {
6565
- return function(l) {
6566
- return u([p, l]);
6565
+ return function(u) {
6566
+ return l([p, u]);
6567
6567
  };
6568
6568
  }
6569
- function u(p) {
6569
+ function l(p) {
6570
6570
  if (r) throw new TypeError("Generator is already executing.");
6571
6571
  for (; t; ) try {
6572
6572
  if (r = 1, o && (i = p[0] & 2 ? o.return : p[0] ? o.throw || ((i = o.return) && i.call(o), 0) : o.next) && !(i = i.call(o, p[1])).done) return i;
@@ -6604,8 +6604,8 @@ function z(n, e) {
6604
6604
  continue;
6605
6605
  }
6606
6606
  p = e.call(n, t);
6607
- } catch (l) {
6608
- p = [6, l], o = 0;
6607
+ } catch (u) {
6608
+ p = [6, u], o = 0;
6609
6609
  } finally {
6610
6610
  r = i = 0;
6611
6611
  }
@@ -6680,22 +6680,22 @@ function ae(n, e, t, r) {
6680
6680
  });
6681
6681
  }
6682
6682
  return new (t || (t = Promise))(function(i, a) {
6683
- function s(l) {
6683
+ function s(u) {
6684
6684
  try {
6685
- p(r.next(l));
6685
+ p(r.next(u));
6686
6686
  } catch (m) {
6687
6687
  a(m);
6688
6688
  }
6689
6689
  }
6690
- function u(l) {
6690
+ function l(u) {
6691
6691
  try {
6692
- p(r.throw(l));
6692
+ p(r.throw(u));
6693
6693
  } catch (m) {
6694
6694
  a(m);
6695
6695
  }
6696
6696
  }
6697
- function p(l) {
6698
- l.done ? i(l.value) : o(l.value).then(s, u);
6697
+ function p(u) {
6698
+ u.done ? i(u.value) : o(u.value).then(s, l);
6699
6699
  }
6700
6700
  p((r = r.apply(n, [])).next());
6701
6701
  });
@@ -6709,11 +6709,11 @@ function se(n, e) {
6709
6709
  return this;
6710
6710
  }), a;
6711
6711
  function s(p) {
6712
- return function(l) {
6713
- return u([p, l]);
6712
+ return function(u) {
6713
+ return l([p, u]);
6714
6714
  };
6715
6715
  }
6716
- function u(p) {
6716
+ function l(p) {
6717
6717
  if (r) throw new TypeError("Generator is already executing.");
6718
6718
  for (; t; ) try {
6719
6719
  if (r = 1, o && (i = p[0] & 2 ? o.return : p[0] ? o.throw || ((i = o.return) && i.call(o), 0) : o.next) && !(i = i.call(o, p[1])).done) return i;
@@ -6751,8 +6751,8 @@ function se(n, e) {
6751
6751
  continue;
6752
6752
  }
6753
6753
  p = e.call(n, t);
6754
- } catch (l) {
6755
- p = [6, l], o = 0;
6754
+ } catch (u) {
6755
+ p = [6, u], o = 0;
6756
6756
  } finally {
6757
6757
  r = i = 0;
6758
6758
  }
@@ -7377,8 +7377,8 @@ var Q = (
7377
7377
  };
7378
7378
  return r.forEach(function(i) {
7379
7379
  if (i.trim()) {
7380
- var a = i.split(/=(.+)/g, 2), s = a[0], u = a[1];
7381
- s && u && (t[o(s)] = o(u));
7380
+ var a = i.split(/=(.+)/g, 2), s = a[0], l = a[1];
7381
+ s && l && (t[o(s)] = o(l));
7382
7382
  }
7383
7383
  }), t;
7384
7384
  }, n.trimArrayEntries = function(e) {
@@ -7818,34 +7818,34 @@ var Qe = (
7818
7818
  e.tenantId || b.EMPTY_STRING
7819
7819
  ];
7820
7820
  return t.join(He.CACHE_KEY_SEPARATOR).toLowerCase();
7821
- }, n.createAccount = function(e, t, r, o, i, a, s, u) {
7822
- var p, l, m, f, k, E, P = new n();
7823
- P.authorityType = Jt.MSSTS_ACCOUNT_TYPE, P.clientInfo = e, P.homeAccountId = t, P.nativeAccountId = u;
7821
+ }, n.createAccount = function(e, t, r, o, i, a, s, l) {
7822
+ var p, u, m, f, k, E, P = new n();
7823
+ P.authorityType = Jt.MSSTS_ACCOUNT_TYPE, P.clientInfo = e, P.homeAccountId = t, P.nativeAccountId = l;
7824
7824
  var F = s || o && o.getPreferredCache();
7825
7825
  if (!F)
7826
7826
  throw $.createInvalidCacheEnvironmentError();
7827
7827
  if (P.environment = F, P.realm = ((p = r == null ? void 0 : r.claims) === null || p === void 0 ? void 0 : p.tid) || b.EMPTY_STRING, r) {
7828
- P.idTokenClaims = r.claims, P.localAccountId = ((l = r == null ? void 0 : r.claims) === null || l === void 0 ? void 0 : l.oid) || ((m = r == null ? void 0 : r.claims) === null || m === void 0 ? void 0 : m.sub) || b.EMPTY_STRING;
7828
+ P.idTokenClaims = r.claims, P.localAccountId = ((u = r == null ? void 0 : r.claims) === null || u === void 0 ? void 0 : u.oid) || ((m = r == null ? void 0 : r.claims) === null || m === void 0 ? void 0 : m.sub) || b.EMPTY_STRING;
7829
7829
  var G = (f = r == null ? void 0 : r.claims) === null || f === void 0 ? void 0 : f.preferred_username, x = !((k = r == null ? void 0 : r.claims) === null || k === void 0) && k.emails ? r.claims.emails[0] : null;
7830
7830
  P.username = G || x || b.EMPTY_STRING, P.name = (E = r == null ? void 0 : r.claims) === null || E === void 0 ? void 0 : E.name;
7831
7831
  }
7832
7832
  return P.cloudGraphHostName = i, P.msGraphHost = a, P;
7833
7833
  }, n.createGenericAccount = function(e, t, r, o, i, a) {
7834
- var s, u, p, l, m = new n();
7834
+ var s, l, p, u, m = new n();
7835
7835
  m.authorityType = r && r.authorityType === rt.Adfs ? Jt.ADFS_ACCOUNT_TYPE : Jt.GENERIC_ACCOUNT_TYPE, m.homeAccountId = e, m.realm = b.EMPTY_STRING;
7836
7836
  var f = a || r && r.getPreferredCache();
7837
7837
  if (!f)
7838
7838
  throw $.createInvalidCacheEnvironmentError();
7839
- return t && (m.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) || b.EMPTY_STRING, m.username = ((p = t == null ? void 0 : t.claims) === null || p === void 0 ? void 0 : p.upn) || b.EMPTY_STRING, m.name = ((l = t == null ? void 0 : t.claims) === null || l === void 0 ? void 0 : l.name) || b.EMPTY_STRING, m.idTokenClaims = t == null ? void 0 : t.claims), m.environment = f, m.cloudGraphHostName = o, m.msGraphHost = i, m;
7839
+ return t && (m.localAccountId = ((s = t == null ? void 0 : t.claims) === null || s === void 0 ? void 0 : s.oid) || ((l = t == null ? void 0 : t.claims) === null || l === void 0 ? void 0 : l.sub) || b.EMPTY_STRING, m.username = ((p = t == null ? void 0 : t.claims) === null || p === void 0 ? void 0 : p.upn) || b.EMPTY_STRING, m.name = ((u = t == null ? void 0 : t.claims) === null || u === void 0 ? void 0 : u.name) || b.EMPTY_STRING, m.idTokenClaims = t == null ? void 0 : t.claims), m.environment = f, m.cloudGraphHostName = o, m.msGraphHost = i, m;
7840
7840
  }, n.generateHomeAccountId = function(e, t, r, o, i) {
7841
7841
  var a, s = !((a = i == null ? void 0 : i.claims) === null || a === void 0) && a.sub ? i.claims.sub : b.EMPTY_STRING;
7842
7842
  if (t === rt.Adfs || t === rt.Dsts)
7843
7843
  return s;
7844
7844
  if (e)
7845
7845
  try {
7846
- var u = yr(e, o);
7847
- if (!Q.isEmpty(u.uid) && !Q.isEmpty(u.utid))
7848
- return "" + u.uid + He.CLIENT_INFO_SEPARATOR + u.utid;
7846
+ var l = yr(e, o);
7847
+ if (!Q.isEmpty(l.uid) && !Q.isEmpty(l.utid))
7848
+ return "" + l.uid + He.CLIENT_INFO_SEPARATOR + l.utid;
7849
7849
  } catch {
7850
7850
  }
7851
7851
  return r.verbose("No client info in response"), s;
@@ -7946,12 +7946,12 @@ var at = (
7946
7946
  realm: e.realm,
7947
7947
  tokenType: e.tokenType,
7948
7948
  requestedClaimsHash: e.requestedClaimsHash
7949
- }, r = this.getTokenKeys(), o = Je.fromString(e.target), i = [], r.accessToken.forEach(function(u) {
7950
- if (a.accessTokenKeyMatchesFilter(u, t, !1)) {
7951
- var p = a.getAccessTokenCredential(u);
7949
+ }, r = this.getTokenKeys(), o = Je.fromString(e.target), i = [], r.accessToken.forEach(function(l) {
7950
+ if (a.accessTokenKeyMatchesFilter(l, t, !1)) {
7951
+ var p = a.getAccessTokenCredential(l);
7952
7952
  if (p && a.credentialMatchesFilter(p, t)) {
7953
- var l = Je.fromString(p.target);
7954
- l.intersectingScopeSets(o) && i.push(a.removeAccessToken(u));
7953
+ var u = Je.fromString(p.target);
7954
+ u.intersectingScopeSets(o) && i.push(a.removeAccessToken(l));
7955
7955
  }
7956
7956
  }
7957
7957
  }), [4, Promise.all(i)];
@@ -8093,12 +8093,12 @@ var at = (
8093
8093
  e.isAppMetadata(r) && e.removeItem(r);
8094
8094
  }), !0;
8095
8095
  }, n.prototype.readCacheRecord = function(e, t, r) {
8096
- 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);
8096
+ var o = this.getTokenKeys(), i = this.readAccountFromCache(e), a = this.getIdToken(e, o), s = this.getAccessToken(e, t, o), l = this.getRefreshToken(e, !1, o), p = this.readAppMetadataFromCache(r);
8097
8097
  return i && a && (i.idTokenClaims = new Vt(a.secret, this.cryptoImpl).claims), {
8098
8098
  account: i,
8099
8099
  idToken: a,
8100
8100
  accessToken: s,
8101
- refreshToken: u,
8101
+ refreshToken: l,
8102
8102
  appMetadata: p
8103
8103
  };
8104
8104
  }, n.prototype.readAccountFromCache = function(e) {
@@ -8135,7 +8135,7 @@ var at = (
8135
8135
  }, n.prototype.getAccessToken = function(e, t, r) {
8136
8136
  var o = this;
8137
8137
  this.commonLogger.trace("CacheManager - getAccessToken called");
8138
- var i = Je.createSearchScopes(t.scopes), a = t.authenticationScheme || ke.BEARER, s = a && a.toLowerCase() !== ke.BEARER.toLowerCase() ? ee.ACCESS_TOKEN_WITH_AUTH_SCHEME : ee.ACCESS_TOKEN, u = {
8138
+ var i = Je.createSearchScopes(t.scopes), a = t.authenticationScheme || ke.BEARER, s = a && a.toLowerCase() !== ke.BEARER.toLowerCase() ? ee.ACCESS_TOKEN_WITH_AUTH_SCHEME : ee.ACCESS_TOKEN, l = {
8139
8139
  homeAccountId: e.homeAccountId,
8140
8140
  environment: e.environment,
8141
8141
  credentialType: s,
@@ -8145,17 +8145,17 @@ var at = (
8145
8145
  tokenType: a,
8146
8146
  keyId: t.sshKid,
8147
8147
  requestedClaimsHash: t.requestedClaimsHash
8148
- }, p = r && r.accessToken || this.getTokenKeys().accessToken, l = [];
8148
+ }, p = r && r.accessToken || this.getTokenKeys().accessToken, u = [];
8149
8149
  p.forEach(function(f) {
8150
- if (o.accessTokenKeyMatchesFilter(f, u, !0)) {
8150
+ if (o.accessTokenKeyMatchesFilter(f, l, !0)) {
8151
8151
  var k = o.getAccessTokenCredential(f);
8152
- k && o.credentialMatchesFilter(k, u) && l.push(k);
8152
+ k && o.credentialMatchesFilter(k, l) && u.push(k);
8153
8153
  }
8154
8154
  });
8155
- var m = l.length;
8156
- return m < 1 ? (this.commonLogger.info("CacheManager:getAccessToken - No token found"), null) : m > 1 ? (this.commonLogger.info("CacheManager:getAccessToken - Multiple access tokens found, clearing them"), l.forEach(function(f) {
8155
+ var m = u.length;
8156
+ return m < 1 ? (this.commonLogger.info("CacheManager:getAccessToken - No token found"), null) : m > 1 ? (this.commonLogger.info("CacheManager:getAccessToken - Multiple access tokens found, clearing them"), u.forEach(function(f) {
8157
8157
  o.removeAccessToken(f.generateCredentialKey());
8158
- }), null) : (this.commonLogger.info("CacheManager:getAccessToken - Returning access token"), l[0]);
8158
+ }), null) : (this.commonLogger.info("CacheManager:getAccessToken - Returning access token"), u[0]);
8159
8159
  }, n.prototype.accessTokenKeyMatchesFilter = function(e, t, r) {
8160
8160
  var o = e.toLowerCase();
8161
8161
  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)
@@ -8185,15 +8185,15 @@ var at = (
8185
8185
  credentialType: ee.REFRESH_TOKEN,
8186
8186
  clientId: this.clientId,
8187
8187
  familyId: i
8188
- }, s = r && r.refreshToken || this.getTokenKeys().refreshToken, u = [];
8189
- s.forEach(function(l) {
8190
- if (o.refreshTokenKeyMatchesFilter(l, a)) {
8191
- var m = o.getRefreshTokenCredential(l);
8192
- m && o.credentialMatchesFilter(m, a) && u.push(m);
8188
+ }, s = r && r.refreshToken || this.getTokenKeys().refreshToken, l = [];
8189
+ s.forEach(function(u) {
8190
+ if (o.refreshTokenKeyMatchesFilter(u, a)) {
8191
+ var m = o.getRefreshTokenCredential(u);
8192
+ m && o.credentialMatchesFilter(m, a) && l.push(m);
8193
8193
  }
8194
8194
  });
8195
- var p = u.length;
8196
- return p < 1 ? (this.commonLogger.info("CacheManager:getRefreshToken - No refresh token found."), null) : (this.commonLogger.info("CacheManager:getRefreshToken - returning refresh token"), u[0]);
8195
+ var p = l.length;
8196
+ return p < 1 ? (this.commonLogger.info("CacheManager:getRefreshToken - No refresh token found."), null) : (this.commonLogger.info("CacheManager:getRefreshToken - returning refresh token"), l[0]);
8197
8197
  }, n.prototype.refreshTokenKeyMatchesFilter = function(e, t) {
8198
8198
  var r = e.toLowerCase();
8199
8199
  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);
@@ -8388,7 +8388,7 @@ var Fa = 300, bi = {
8388
8388
  }
8389
8389
  };
8390
8390
  function Wa(n) {
8391
- 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, l = n.telemetry, m = n.serverTelemetryManager, f = n.persistencePlugin, k = n.serializableCache, E = ye(ye({}, qa), r);
8391
+ var e = n.authOptions, t = n.systemOptions, r = n.loggerOptions, o = n.cacheOptions, i = n.storageInterface, a = n.networkInterface, s = n.cryptoInterface, l = n.clientCredentials, p = n.libraryInfo, u = n.telemetry, m = n.serverTelemetryManager, f = n.persistencePlugin, k = n.serializableCache, E = ye(ye({}, qa), r);
8392
8392
  return {
8393
8393
  authOptions: Ja(e),
8394
8394
  systemOptions: ye(ye({}, bi), t),
@@ -8397,9 +8397,9 @@ function Wa(n) {
8397
8397
  storageInterface: i || new Ha(e.clientId, vr, new ho(E)),
8398
8398
  networkInterface: a || Ga,
8399
8399
  cryptoInterface: s || vr,
8400
- clientCredentials: u || Qa,
8400
+ clientCredentials: l || Qa,
8401
8401
  libraryInfo: ye(ye({}, Va), p),
8402
- telemetry: ye(ye({}, Ya), l),
8402
+ telemetry: ye(ye({}, Ya), u),
8403
8403
  serverTelemetryManager: m || null,
8404
8404
  persistencePlugin: f || null,
8405
8405
  serializableCache: k || null
@@ -8737,15 +8737,15 @@ var go = (
8737
8737
  default:
8738
8738
  throw $.createUnexpectedCredentialTypeError();
8739
8739
  }
8740
- }, n.generateCredentialCacheKey = function(e, t, r, o, i, a, s, u, p) {
8741
- var l = [
8740
+ }, n.generateCredentialCacheKey = function(e, t, r, o, i, a, s, l, p) {
8741
+ var u = [
8742
8742
  this.generateAccountIdForCacheKey(e, t),
8743
8743
  this.generateCredentialIdForCacheKey(r, o, i, s),
8744
8744
  this.generateTargetForCacheKey(a),
8745
8745
  this.generateClaimsHashForCacheKey(p),
8746
- this.generateSchemeForCacheKey(u)
8746
+ this.generateSchemeForCacheKey(l)
8747
8747
  ];
8748
- return l.join(He.CACHE_KEY_SEPARATOR).toLowerCase();
8748
+ return u.join(He.CACHE_KEY_SEPARATOR).toLowerCase();
8749
8749
  }, n.generateAccountIdForCacheKey = function(e, t) {
8750
8750
  var r = [e, t];
8751
8751
  return r.join(He.CACHE_KEY_SEPARATOR).toLowerCase();
@@ -8812,14 +8812,14 @@ var Tn = (
8812
8812
  function e() {
8813
8813
  return n !== null && n.apply(this, arguments) || this;
8814
8814
  }
8815
- return e.createAccessTokenEntity = function(t, r, o, i, a, s, u, p, l, m, f, k, E, P, F) {
8815
+ return e.createAccessTokenEntity = function(t, r, o, i, a, s, l, p, u, m, f, k, E, P, F) {
8816
8816
  var G, x, T = new e();
8817
8817
  T.homeAccountId = t, T.credentialType = ee.ACCESS_TOKEN, T.secret = o;
8818
8818
  var H = Ct.nowSeconds();
8819
- if (T.cachedAt = H.toString(), T.expiresOn = u.toString(), T.extendedExpiresOn = p.toString(), m && (T.refreshOn = m.toString()), T.environment = r, T.clientId = i, T.realm = a, T.target = s, T.userAssertionHash = k, T.tokenType = Q.isEmpty(f) ? ke.BEARER : f, P && (T.requestedClaims = P, T.requestedClaimsHash = F), ((G = T.tokenType) === null || G === void 0 ? void 0 : G.toLowerCase()) !== ke.BEARER.toLowerCase())
8819
+ if (T.cachedAt = H.toString(), T.expiresOn = l.toString(), T.extendedExpiresOn = p.toString(), m && (T.refreshOn = m.toString()), T.environment = r, T.clientId = i, T.realm = a, T.target = s, T.userAssertionHash = k, T.tokenType = Q.isEmpty(f) ? ke.BEARER : f, P && (T.requestedClaims = P, T.requestedClaimsHash = F), ((G = T.tokenType) === null || G === void 0 ? void 0 : G.toLowerCase()) !== ke.BEARER.toLowerCase())
8820
8820
  switch (T.credentialType = ee.ACCESS_TOKEN_WITH_AUTH_SCHEME, T.tokenType) {
8821
8821
  case ke.POP:
8822
- var V = Vt.extractTokenClaims(o, l);
8822
+ var V = Vt.extractTokenClaims(o, u);
8823
8823
  if (!(!((x = V == null ? void 0 : V.cnf) === null || x === void 0) && x.kid))
8824
8824
  throw $.createTokenClaimsRequiredError();
8825
8825
  T.keyId = V.cnf.kid;
@@ -8842,8 +8842,8 @@ var Ln = (
8842
8842
  return n !== null && n.apply(this, arguments) || this;
8843
8843
  }
8844
8844
  return e.createRefreshTokenEntity = function(t, r, o, i, a, s) {
8845
- var u = new e();
8846
- return u.clientId = i, u.credentialType = ee.REFRESH_TOKEN, u.environment = r, u.homeAccountId = t, u.secret = o, u.userAssertionHash = s, a && (u.familyId = a), u;
8845
+ var l = new e();
8846
+ return l.clientId = i, l.credentialType = ee.REFRESH_TOKEN, l.environment = r, l.homeAccountId = t, l.secret = o, l.userAssertionHash = s, a && (l.familyId = a), l;
8847
8847
  }, e.isRefreshTokenEntity = function(t) {
8848
8848
  return t ? t.hasOwnProperty("homeAccountId") && t.hasOwnProperty("environment") && t.hasOwnProperty("credentialType") && t.hasOwnProperty("clientId") && t.hasOwnProperty("secret") && t.credentialType === ee.REFRESH_TOKEN : !1;
8849
8849
  }, e;
@@ -8873,13 +8873,13 @@ var Bo = [
8873
8873
  /** @class */
8874
8874
  function(n) {
8875
8875
  lt(e, n);
8876
- function e(t, r, o, i, a, s, u) {
8876
+ function e(t, r, o, i, a, s, l) {
8877
8877
  var p = n.call(this, t, r, o) || this;
8878
- return Object.setPrototypeOf(p, e.prototype), p.timestamp = i || b.EMPTY_STRING, p.traceId = a || b.EMPTY_STRING, p.correlationId = s || b.EMPTY_STRING, p.claims = u || b.EMPTY_STRING, p.name = "InteractionRequiredAuthError", p;
8878
+ return Object.setPrototypeOf(p, e.prototype), p.timestamp = i || b.EMPTY_STRING, p.traceId = a || b.EMPTY_STRING, p.correlationId = s || b.EMPTY_STRING, p.claims = l || b.EMPTY_STRING, p.name = "InteractionRequiredAuthError", p;
8879
8879
  }
8880
8880
  return e.isInteractionRequiredError = function(t, r, o) {
8881
- var i = !!t && Bo.indexOf(t) > -1, a = !!o && Za.indexOf(o) > -1, s = !!r && Bo.some(function(u) {
8882
- return r.indexOf(u) > -1;
8881
+ var i = !!t && Bo.indexOf(t) > -1, a = !!o && Za.indexOf(o) > -1, s = !!r && Bo.some(function(l) {
8882
+ return r.indexOf(l) > -1;
8883
8883
  });
8884
8884
  return i || s || a;
8885
8885
  }, e.createNoTokensFoundError = function() {
@@ -8928,8 +8928,8 @@ var tn = (
8928
8928
  userRequestState: Q.isEmpty(i) ? b.EMPTY_STRING : i,
8929
8929
  libraryState: s
8930
8930
  };
8931
- } catch (u) {
8932
- throw $.createInvalidStateError(t, u);
8931
+ } catch (l) {
8932
+ throw $.createInvalidStateError(t, l);
8933
8933
  }
8934
8934
  }, n;
8935
8935
  }()
@@ -9102,11 +9102,11 @@ var Dn = (
9102
9102
  });
9103
9103
  }, n.prototype.signPayload = function(e, t, r, o) {
9104
9104
  return ae(this, void 0, void 0, function() {
9105
- var i, a, s, u, p, l;
9105
+ var i, a, s, l, p, u;
9106
9106
  return se(this, function(m) {
9107
9107
  switch (m.label) {
9108
9108
  case 0:
9109
- return i = r.resourceRequestMethod, a = r.resourceRequestUri, s = r.shrClaims, u = r.shrNonce, p = a ? new he(a) : void 0, l = p == null ? void 0 : p.getUrlComponents(), [4, this.cryptoUtils.signJwt(ye({ at: e, ts: Ct.nowSeconds(), m: i == null ? void 0 : i.toUpperCase(), u: l == null ? void 0 : l.HostNameAndPort, nonce: u || this.cryptoUtils.createNewGuid(), p: l == null ? void 0 : l.AbsolutePath, q: l != null && l.QueryString ? [[], l.QueryString] : void 0, client_claims: s || void 0 }, o), t, r.correlationId)];
9109
+ return i = r.resourceRequestMethod, a = r.resourceRequestUri, s = r.shrClaims, l = r.shrNonce, p = a ? new he(a) : void 0, u = p == null ? void 0 : p.getUrlComponents(), [4, this.cryptoUtils.signJwt(ye({ at: e, ts: Ct.nowSeconds(), m: i == null ? void 0 : i.toUpperCase(), u: u == null ? void 0 : u.HostNameAndPort, nonce: l || 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)];
9110
9110
  case 1:
9111
9111
  return [2, m.sent()];
9112
9112
  }
@@ -9188,14 +9188,14 @@ var kr = (
9188
9188
  var t = e.error_codes + " - [" + e.timestamp + "]: " + e.error_description + " - Correlation ID: " + e.correlation_id + " - Trace ID: " + e.trace_id;
9189
9189
  throw new An(e.error, t, e.suberror);
9190
9190
  }
9191
- }, n.prototype.handleServerTokenResponse = function(e, t, r, o, i, a, s, u, p) {
9192
- var l;
9191
+ }, n.prototype.handleServerTokenResponse = function(e, t, r, o, i, a, s, l, p) {
9192
+ var u;
9193
9193
  return ae(this, void 0, void 0, function() {
9194
9194
  var m, f, k, E, P, F, G;
9195
9195
  return se(this, function(x) {
9196
9196
  switch (x.label) {
9197
9197
  case 0:
9198
- if ((l = this.performanceClient) === null || l === void 0 || l.addQueueMeasurement(R.HandleServerTokenResponse, e.correlation_id), e.id_token) {
9198
+ if ((u = this.performanceClient) === null || u === void 0 || u.addQueueMeasurement(R.HandleServerTokenResponse, e.correlation_id), e.id_token) {
9199
9199
  if (m = new Vt(e.id_token || b.EMPTY_STRING, this.cryptoObj), i && !Q.isEmpty(i.nonce) && m.claims.nonce !== i.nonce)
9200
9200
  throw $.createNonceMismatchError();
9201
9201
  if (o.maxAge || o.maxAge === 0) {
@@ -9210,7 +9210,7 @@ var kr = (
9210
9210
  case 2:
9211
9211
  x.sent(), x.label = 3;
9212
9212
  case 3:
9213
- return s && !u && E.account && (F = E.account.generateAccountKey(), G = this.cacheStorage.getAccount(F), !G) ? (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, m, k, void 0, p)]) : [4, this.cacheStorage.saveCacheRecord(E)];
9213
+ return s && !l && E.account && (F = E.account.generateAccountKey(), G = this.cacheStorage.getAccount(F), !G) ? (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, m, k, void 0, p)]) : [4, this.cacheStorage.saveCacheRecord(E)];
9214
9214
  case 4:
9215
9215
  return x.sent(), [3, 8];
9216
9216
  case 5:
@@ -9228,20 +9228,20 @@ var kr = (
9228
9228
  });
9229
9229
  });
9230
9230
  }, n.prototype.generateCacheRecord = function(e, t, r, o, i, a, s) {
9231
- var u = t.getPreferredCache();
9232
- if (Q.isEmpty(u))
9231
+ var l = t.getPreferredCache();
9232
+ if (Q.isEmpty(l))
9233
9233
  throw $.createInvalidCacheEnvironmentError();
9234
- var p, l;
9235
- !Q.isEmpty(e.id_token) && i && (p = En.createIdTokenEntity(this.homeAccountIdentifier, u, e.id_token || b.EMPTY_STRING, this.clientId, i.claims.tid || b.EMPTY_STRING), l = this.generateAccountEntity(e, i, t, s));
9234
+ var p, u;
9235
+ !Q.isEmpty(e.id_token) && i && (p = En.createIdTokenEntity(this.homeAccountIdentifier, l, e.id_token || b.EMPTY_STRING, this.clientId, i.claims.tid || b.EMPTY_STRING), u = this.generateAccountEntity(e, i, t, s));
9236
9236
  var m = null;
9237
9237
  if (!Q.isEmpty(e.access_token)) {
9238
9238
  var f = e.scope ? Je.fromString(e.scope) : new Je(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, P = (typeof e.refresh_in == "string" ? parseInt(e.refresh_in, 10) : e.refresh_in) || void 0, F = r + k, G = F + E, x = P && P > 0 ? r + P : void 0;
9239
- m = Tn.createAccessTokenEntity(this.homeAccountIdentifier, u, e.access_token || b.EMPTY_STRING, this.clientId, i ? i.claims.tid || b.EMPTY_STRING : t.tenant, f.printScopes(), F, G, this.cryptoObj, x, e.token_type, a, e.key_id, o.claims, o.requestedClaimsHash);
9239
+ m = Tn.createAccessTokenEntity(this.homeAccountIdentifier, l, e.access_token || b.EMPTY_STRING, this.clientId, i ? i.claims.tid || b.EMPTY_STRING : t.tenant, f.printScopes(), F, G, this.cryptoObj, x, e.token_type, a, e.key_id, o.claims, o.requestedClaimsHash);
9240
9240
  }
9241
9241
  var T = null;
9242
- Q.isEmpty(e.refresh_token) || (T = Ln.createRefreshTokenEntity(this.homeAccountIdentifier, u, e.refresh_token || b.EMPTY_STRING, this.clientId, e.foci, a));
9242
+ Q.isEmpty(e.refresh_token) || (T = Ln.createRefreshTokenEntity(this.homeAccountIdentifier, l, e.refresh_token || b.EMPTY_STRING, this.clientId, e.foci, a));
9243
9243
  var H = null;
9244
- return Q.isEmpty(e.foci) || (H = Zr.createAppMetadataEntity(this.clientId, u, e.foci)), new Xn(l, p, m, T, H);
9244
+ return Q.isEmpty(e.foci) || (H = Zr.createAppMetadataEntity(this.clientId, l, e.foci)), new Xn(u, p, m, T, H);
9245
9245
  }, n.prototype.generateAccountEntity = function(e, t, r, o) {
9246
9246
  var i = r.authorityType, a = o ? o.cloud_graph_host_name : b.EMPTY_STRING, s = o ? o.msgraph_host : b.EMPTY_STRING;
9247
9247
  if (i === rt.Adfs)
@@ -9249,8 +9249,8 @@ var kr = (
9249
9249
  if (Q.isEmpty(e.client_info) && r.protocolMode === "AAD")
9250
9250
  throw $.createClientInfoEmptyError();
9251
9251
  return e.client_info ? Qe.createAccount(e.client_info, this.homeAccountIdentifier, t, r, a, s) : Qe.createGenericAccount(this.homeAccountIdentifier, t, r, a, s);
9252
- }, n.generateAuthenticationResult = function(e, t, r, o, i, a, s, u, p) {
9253
- var l, m, f;
9252
+ }, n.generateAuthenticationResult = function(e, t, r, o, i, a, s, l, p) {
9253
+ var u, m, f;
9254
9254
  return ae(this, void 0, void 0, function() {
9255
9255
  var k, E, P, F, G, x, T, H, V, W, Z;
9256
9256
  return se(this, function(I) {
@@ -9268,7 +9268,7 @@ var kr = (
9268
9268
  case 3:
9269
9269
  E = Je.fromString(r.accessToken.target).asArray(), P = new Date(Number(r.accessToken.expiresOn) * 1e3), F = new Date(Number(r.accessToken.extendedExpiresOn) * 1e3), I.label = 4;
9270
9270
  case 4:
9271
- return r.appMetadata && (G = r.appMetadata.familyId === Qn ? Qn : b.EMPTY_STRING), W = (a == null ? void 0 : a.claims.oid) || (a == null ? void 0 : a.claims.sub) || b.EMPTY_STRING, Z = (a == null ? void 0 : a.claims.tid) || b.EMPTY_STRING, u != null && u.spa_accountid && r.account && (r.account.nativeAccountId = u == null ? void 0 : u.spa_accountid), [2, {
9271
+ return r.appMetadata && (G = r.appMetadata.familyId === Qn ? Qn : b.EMPTY_STRING), W = (a == null ? void 0 : a.claims.oid) || (a == null ? void 0 : a.claims.sub) || b.EMPTY_STRING, Z = (a == null ? void 0 : a.claims.tid) || b.EMPTY_STRING, l != null && l.spa_accountid && r.account && (r.account.nativeAccountId = l == null ? void 0 : l.spa_accountid), [2, {
9272
9272
  authority: t.canonicalAuthority,
9273
9273
  uniqueId: W,
9274
9274
  tenantId: Z,
@@ -9283,11 +9283,11 @@ var kr = (
9283
9283
  requestId: p || b.EMPTY_STRING,
9284
9284
  extExpiresOn: F,
9285
9285
  familyId: G,
9286
- tokenType: ((l = r.accessToken) === null || l === void 0 ? void 0 : l.tokenType) || b.EMPTY_STRING,
9286
+ tokenType: ((u = r.accessToken) === null || u === void 0 ? void 0 : u.tokenType) || b.EMPTY_STRING,
9287
9287
  state: s ? s.userRequestState : b.EMPTY_STRING,
9288
9288
  cloudGraphHostName: ((m = r.account) === null || m === void 0 ? void 0 : m.cloudGraphHostName) || b.EMPTY_STRING,
9289
9289
  msGraphHost: ((f = r.account) === null || f === void 0 ? void 0 : f.msGraphHost) || b.EMPTY_STRING,
9290
- code: u == null ? void 0 : u.spa_code,
9290
+ code: l == null ? void 0 : l.spa_code,
9291
9291
  fromNativeBroker: !1
9292
9292
  }];
9293
9293
  }
@@ -9319,24 +9319,24 @@ var wi = (
9319
9319
  });
9320
9320
  });
9321
9321
  }, e.prototype.acquireToken = function(t, r) {
9322
- var o, i, a, s, u, p;
9322
+ var o, i, a, s, l, p;
9323
9323
  return ae(this, void 0, void 0, function() {
9324
- var l, m, f, k, E, P, F = this;
9324
+ var u, m, f, k, E, P, F = this;
9325
9325
  return se(this, function(G) {
9326
9326
  switch (G.label) {
9327
9327
  case 0:
9328
9328
  if (!t || !t.code)
9329
9329
  throw $.createTokenRequestCannotBeMadeError();
9330
- return (o = this.performanceClient) === null || o === void 0 || o.addQueueMeasurement(R.AuthClientAcquireToken, t.correlationId), l = (i = this.performanceClient) === null || i === void 0 ? void 0 : i.startMeasurement("AuthCodeClientAcquireToken", t.correlationId), this.logger.info("in acquireToken call in auth-code client"), m = Ct.nowSeconds(), (a = this.performanceClient) === null || a === void 0 || a.setPreQueueTime(R.AuthClientExecuteTokenRequest, t.correlationId), [4, this.executeTokenRequest(this.authority, t)];
9330
+ return (o = this.performanceClient) === null || o === void 0 || o.addQueueMeasurement(R.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"), m = Ct.nowSeconds(), (a = this.performanceClient) === null || a === void 0 || a.setPreQueueTime(R.AuthClientExecuteTokenRequest, t.correlationId), [4, this.executeTokenRequest(this.authority, t)];
9331
9331
  case 1:
9332
- return f = G.sent(), k = (s = f.headers) === null || s === void 0 ? void 0 : s[_t.X_MS_REQUEST_ID], E = (u = f.headers) === null || u === void 0 ? void 0 : u[_t.X_MS_HTTP_VERSION], E && (l == null || l.addStaticFields({
9332
+ return f = G.sent(), k = (s = f.headers) === null || s === void 0 ? void 0 : s[_t.X_MS_REQUEST_ID], E = (l = f.headers) === null || l === void 0 ? void 0 : l[_t.X_MS_HTTP_VERSION], E && (u == null || u.addStaticFields({
9333
9333
  httpVerAuthority: E
9334
9334
  })), P = new kr(this.config.authOptions.clientId, this.cacheManager, this.cryptoUtils, this.logger, this.config.serializableCache, this.config.persistencePlugin, this.performanceClient), P.validateTokenResponse(f.body), (p = this.performanceClient) === null || p === void 0 || p.setPreQueueTime(R.HandleServerTokenResponse, t.correlationId), [2, P.handleServerTokenResponse(f.body, this.authority, m, t, r, void 0, void 0, void 0, k).then(function(x) {
9335
- return l == null || l.endMeasurement({
9335
+ return u == null || u.endMeasurement({
9336
9336
  success: !0
9337
9337
  }), x;
9338
9338
  }).catch(function(x) {
9339
- throw F.logger.verbose("Error in fetching token in ACC", t.correlationId), l == null || l.endMeasurement({
9339
+ throw F.logger.verbose("Error in fetching token in ACC", t.correlationId), u == null || u.endMeasurement({
9340
9340
  errorCode: x.errorCode,
9341
9341
  subErrorCode: x.subError,
9342
9342
  success: !1
@@ -9361,16 +9361,16 @@ var wi = (
9361
9361
  }, e.prototype.executeTokenRequest = function(t, r) {
9362
9362
  var o, i;
9363
9363
  return ae(this, void 0, void 0, function() {
9364
- var a, s, u, p, l, m, f;
9364
+ var a, s, l, p, u, m, f;
9365
9365
  return se(this, function(k) {
9366
9366
  switch (k.label) {
9367
9367
  case 0:
9368
9368
  return (o = this.performanceClient) === null || o === void 0 || o.addQueueMeasurement(R.AuthClientExecuteTokenRequest, r.correlationId), (i = this.performanceClient) === null || i === void 0 || i.setPreQueueTime(R.AuthClientCreateTokenRequestBody, r.correlationId), a = this.createTokenQueryParameters(r), s = he.appendQueryString(t.tokenEndpoint, a), [4, this.createTokenRequestBody(r)];
9369
9369
  case 1:
9370
- if (u = k.sent(), p = void 0, r.clientInfo)
9370
+ if (l = k.sent(), p = void 0, r.clientInfo)
9371
9371
  try {
9372
- l = yr(r.clientInfo, this.cryptoUtils), p = {
9373
- credential: "" + l.uid + He.CLIENT_INFO_SEPARATOR + l.utid,
9372
+ u = yr(r.clientInfo, this.cryptoUtils), p = {
9373
+ credential: "" + u.uid + He.CLIENT_INFO_SEPARATOR + u.utid,
9374
9374
  type: mt.HOME_ACCOUNT_ID
9375
9375
  };
9376
9376
  } catch (E) {
@@ -9386,20 +9386,20 @@ var wi = (
9386
9386
  resourceRequestUri: r.resourceRequestUri,
9387
9387
  shrClaims: r.shrClaims,
9388
9388
  sshKid: r.sshKid
9389
- }, [2, this.executePostToTokenEndpoint(s, u, m, f)];
9389
+ }, [2, this.executePostToTokenEndpoint(s, l, m, f)];
9390
9390
  }
9391
9391
  });
9392
9392
  });
9393
9393
  }, e.prototype.createTokenRequestBody = function(t) {
9394
9394
  var r, o;
9395
9395
  return ae(this, void 0, void 0, function() {
9396
- var i, a, s, u, p, l, m, m, f;
9396
+ var i, a, s, l, p, u, m, m, f;
9397
9397
  return se(this, function(k) {
9398
9398
  switch (k.label) {
9399
9399
  case 0:
9400
9400
  return (r = this.performanceClient) === null || r === void 0 || r.addQueueMeasurement(R.AuthClientCreateTokenRequestBody, t.correlationId), i = new Jn(), i.addClientId(this.config.authOptions.clientId), this.includeRedirectUri ? i.addRedirectUri(t.redirectUri) : kn.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(gr.AUTHORIZATION_CODE_GRANT), i.addClientInfo(), t.authenticationScheme !== ke.POP ? [3, 2] : (s = new Dn(this.cryptoUtils, this.performanceClient), (o = this.performanceClient) === null || o === void 0 || o.setPreQueueTime(R.PopTokenGenerateCnf, t.correlationId), [4, s.generateCnf(t)]);
9401
9401
  case 1:
9402
- return u = k.sent(), i.addPopToken(u.reqCnfString), [3, 3];
9402
+ return l = k.sent(), i.addPopToken(l.reqCnfString), [3, 3];
9403
9403
  case 2:
9404
9404
  if (t.authenticationScheme === ke.SSH)
9405
9405
  if (t.sshJwk)
@@ -9408,9 +9408,9 @@ var wi = (
9408
9408
  throw Ae.createMissingSshJwkError();
9409
9409
  k.label = 3;
9410
9410
  case 3:
9411
- if (p = t.correlationId || this.config.cryptoInterface.createNewGuid(), i.addCorrelationId(p), (!Q.isEmptyObj(t.claims) || this.config.authOptions.clientCapabilities && this.config.authOptions.clientCapabilities.length > 0) && i.addClaims(t.claims, this.config.authOptions.clientCapabilities), l = void 0, t.clientInfo)
9411
+ if (p = t.correlationId || this.config.cryptoInterface.createNewGuid(), i.addCorrelationId(p), (!Q.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)
9412
9412
  try {
9413
- m = yr(t.clientInfo, this.cryptoUtils), l = {
9413
+ m = yr(t.clientInfo, this.cryptoUtils), u = {
9414
9414
  credential: "" + m.uid + He.CLIENT_INFO_SEPARATOR + m.utid,
9415
9415
  type: mt.HOME_ACCOUNT_ID
9416
9416
  };
@@ -9418,18 +9418,18 @@ var wi = (
9418
9418
  this.logger.verbose("Could not parse client info for CCS Header: " + E);
9419
9419
  }
9420
9420
  else
9421
- l = t.ccsCredential;
9422
- if (this.config.systemOptions.preventCorsPreflight && l)
9423
- switch (l.type) {
9421
+ u = t.ccsCredential;
9422
+ if (this.config.systemOptions.preventCorsPreflight && u)
9423
+ switch (u.type) {
9424
9424
  case mt.HOME_ACCOUNT_ID:
9425
9425
  try {
9426
- m = On(l.credential), i.addCcsOid(m);
9426
+ m = On(u.credential), i.addCcsOid(m);
9427
9427
  } catch (E) {
9428
9428
  this.logger.verbose("Could not parse home account ID for CCS Header: " + E);
9429
9429
  }
9430
9430
  break;
9431
9431
  case mt.UPN:
9432
- i.addCcsUpn(l.credential);
9432
+ i.addCcsUpn(u.credential);
9433
9433
  break;
9434
9434
  }
9435
9435
  return t.tokenBodyParameters && i.addExtraQueryParameters(t.tokenBodyParameters), t.enableSpaAuthorizationCode && (!t.tokenBodyParameters || !t.tokenBodyParameters[ce.RETURN_SPA_CODE]) && i.addExtraQueryParameters((f = {}, f[ce.RETURN_SPA_CODE] = "1", f)), [2, i.createQueryString()];
@@ -9439,7 +9439,7 @@ var wi = (
9439
9439
  }, e.prototype.createAuthCodeUrlQueryString = function(t) {
9440
9440
  var r;
9441
9441
  return ae(this, void 0, void 0, function() {
9442
- var o, i, a, s, u, p, p, p, l, m;
9442
+ var o, i, a, s, l, p, p, p, u, m;
9443
9443
  return se(this, function(f) {
9444
9444
  switch (f.label) {
9445
9445
  case 0:
@@ -9447,8 +9447,8 @@ var wi = (
9447
9447
  if (t.sid && t.prompt === Ze.NONE)
9448
9448
  this.logger.verbose("createAuthCodeUrlQueryString: Prompt is none, adding sid from request"), o.addSid(t.sid);
9449
9449
  else if (t.account) {
9450
- if (s = this.extractAccountSid(t.account), u = this.extractLoginHint(t.account), u) {
9451
- this.logger.verbose("createAuthCodeUrlQueryString: login_hint claim present on account"), o.addLoginHint(u);
9450
+ if (s = this.extractAccountSid(t.account), l = this.extractLoginHint(t.account), l) {
9451
+ this.logger.verbose("createAuthCodeUrlQueryString: login_hint claim present on account"), o.addLoginHint(l);
9452
9452
  try {
9453
9453
  p = On(t.account.homeAccountId), o.addCcsOid(p);
9454
9454
  } catch {
@@ -9474,7 +9474,7 @@ var wi = (
9474
9474
  } else t.loginHint && (this.logger.verbose("createAuthCodeUrlQueryString: No account, adding login_hint from request"), o.addLoginHint(t.loginHint), o.addCcsUpn(t.loginHint));
9475
9475
  else
9476
9476
  this.logger.verbose("createAuthCodeUrlQueryString: Prompt is select_account, ignoring account hints");
9477
- return t.nonce && o.addNonce(t.nonce), t.state && o.addState(t.state), (!Q.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 !== ke.POP ? [3, 2] : (l = new Dn(this.cryptoUtils), [4, l.generateCnf(t)])) : [3, 2];
9477
+ return t.nonce && o.addNonce(t.nonce), t.state && o.addState(t.state), (!Q.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 !== ke.POP ? [3, 2] : (u = new Dn(this.cryptoUtils), [4, u.generateCnf(t)])) : [3, 2];
9478
9478
  case 1:
9479
9479
  m = f.sent(), o.addPopToken(m.reqCnfString), f.label = 2;
9480
9480
  case 2:
@@ -9503,24 +9503,24 @@ var ki = (
9503
9503
  return n.call(this, t, r) || this;
9504
9504
  }
9505
9505
  return e.prototype.acquireToken = function(t) {
9506
- var r, o, i, a, s, u, p;
9506
+ var r, o, i, a, s, l, p;
9507
9507
  return ae(this, void 0, void 0, function() {
9508
- var l, m, f, k, E, P, F = this;
9508
+ var u, m, f, k, E, P, F = this;
9509
9509
  return se(this, function(G) {
9510
9510
  switch (G.label) {
9511
9511
  case 0:
9512
- return (r = this.performanceClient) === null || r === void 0 || r.addQueueMeasurement(R.RefreshTokenClientAcquireToken, t.correlationId), l = (o = this.performanceClient) === null || o === void 0 ? void 0 : o.startMeasurement(R.RefreshTokenClientAcquireToken, t.correlationId), this.logger.verbose("RefreshTokenClientAcquireToken called", t.correlationId), m = Ct.nowSeconds(), (i = this.performanceClient) === null || i === void 0 || i.setPreQueueTime(R.RefreshTokenClientExecuteTokenRequest, t.correlationId), [4, this.executeTokenRequest(t, this.authority)];
9512
+ return (r = this.performanceClient) === null || r === void 0 || r.addQueueMeasurement(R.RefreshTokenClientAcquireToken, t.correlationId), u = (o = this.performanceClient) === null || o === void 0 ? void 0 : o.startMeasurement(R.RefreshTokenClientAcquireToken, t.correlationId), this.logger.verbose("RefreshTokenClientAcquireToken called", t.correlationId), m = Ct.nowSeconds(), (i = this.performanceClient) === null || i === void 0 || i.setPreQueueTime(R.RefreshTokenClientExecuteTokenRequest, t.correlationId), [4, this.executeTokenRequest(t, this.authority)];
9513
9513
  case 1:
9514
- return f = G.sent(), k = (a = f.headers) === null || a === void 0 ? void 0 : a[_t.X_MS_HTTP_VERSION], l == null || l.addStaticFields({
9514
+ return f = G.sent(), k = (a = f.headers) === null || a === void 0 ? void 0 : a[_t.X_MS_HTTP_VERSION], u == null || u.addStaticFields({
9515
9515
  refreshTokenSize: ((s = f.body.refresh_token) === null || s === void 0 ? void 0 : s.length) || 0
9516
- }), k && (l == null || l.addStaticFields({
9516
+ }), k && (u == null || u.addStaticFields({
9517
9517
  httpVerToken: k
9518
- })), E = (u = f.headers) === null || u === void 0 ? void 0 : u[_t.X_MS_REQUEST_ID], P = new kr(this.config.authOptions.clientId, this.cacheManager, this.cryptoUtils, this.logger, this.config.serializableCache, this.config.persistencePlugin), P.validateTokenResponse(f.body), (p = this.performanceClient) === null || p === void 0 || p.setPreQueueTime(R.HandleServerTokenResponse, t.correlationId), [2, P.handleServerTokenResponse(f.body, this.authority, m, t, void 0, void 0, !0, t.forceCache, E).then(function(x) {
9519
- return l == null || l.endMeasurement({
9518
+ })), E = (l = f.headers) === null || l === void 0 ? void 0 : l[_t.X_MS_REQUEST_ID], P = new kr(this.config.authOptions.clientId, this.cacheManager, this.cryptoUtils, this.logger, this.config.serializableCache, this.config.persistencePlugin), P.validateTokenResponse(f.body), (p = this.performanceClient) === null || p === void 0 || p.setPreQueueTime(R.HandleServerTokenResponse, t.correlationId), [2, P.handleServerTokenResponse(f.body, this.authority, m, t, void 0, void 0, !0, t.forceCache, E).then(function(x) {
9519
+ return u == null || u.endMeasurement({
9520
9520
  success: !0
9521
9521
  }), x;
9522
9522
  }).catch(function(x) {
9523
- throw F.logger.verbose("Error in fetching refresh token", t.correlationId), l == null || l.endMeasurement({
9523
+ throw F.logger.verbose("Error in fetching refresh token", t.correlationId), u == null || u.endMeasurement({
9524
9524
  errorCode: x.errorCode,
9525
9525
  subErrorCode: x.subError,
9526
9526
  success: !1
@@ -9532,8 +9532,8 @@ var ki = (
9532
9532
  }, e.prototype.acquireTokenByRefreshToken = function(t) {
9533
9533
  var r, o, i, a;
9534
9534
  return ae(this, void 0, void 0, function() {
9535
- var s, u, p;
9536
- return se(this, function(l) {
9535
+ var s, l, p;
9536
+ return se(this, function(u) {
9537
9537
  if (!t)
9538
9538
  throw Ae.createEmptyTokenRequestError();
9539
9539
  if ((r = this.performanceClient) === null || r === void 0 || r.addQueueMeasurement(R.RefreshTokenClientAcquireTokenByRefreshToken, t.correlationId), !t.account)
@@ -9542,7 +9542,7 @@ var ki = (
9542
9542
  try {
9543
9543
  return (o = this.performanceClient) === null || o === void 0 || o.setPreQueueTime(R.RefreshTokenClientAcquireTokenWithCachedRefreshToken, t.correlationId), [2, this.acquireTokenWithCachedRefreshToken(t, !0)];
9544
9544
  } catch (m) {
9545
- if (u = m instanceof Mt && m.errorCode === zn.noTokensFoundError.code, p = m instanceof An && m.errorCode === Uo.INVALID_GRANT_ERROR && m.subError === Uo.CLIENT_MISMATCH_ERROR, u || p)
9545
+ if (l = m instanceof Mt && m.errorCode === zn.noTokensFoundError.code, p = m instanceof An && m.errorCode === Uo.INVALID_GRANT_ERROR && m.subError === Uo.CLIENT_MISMATCH_ERROR, l || p)
9546
9546
  return (i = this.performanceClient) === null || i === void 0 || i.setPreQueueTime(R.RefreshTokenClientAcquireTokenWithCachedRefreshToken, t.correlationId), [2, this.acquireTokenWithCachedRefreshToken(t, !1)];
9547
9547
  throw m;
9548
9548
  }
@@ -9552,13 +9552,13 @@ var ki = (
9552
9552
  }, e.prototype.acquireTokenWithCachedRefreshToken = function(t, r) {
9553
9553
  var o, i, a;
9554
9554
  return ae(this, void 0, void 0, function() {
9555
- var s, u, p;
9556
- return se(this, function(l) {
9557
- if ((o = this.performanceClient) === null || o === void 0 || o.addQueueMeasurement(R.RefreshTokenClientAcquireTokenWithCachedRefreshToken, t.correlationId), s = (i = this.performanceClient) === null || i === void 0 ? void 0 : i.startMeasurement(R.RefreshTokenClientAcquireTokenWithCachedRefreshToken, t.correlationId), this.logger.verbose("RefreshTokenClientAcquireTokenWithCachedRefreshToken called", t.correlationId), u = this.cacheManager.getRefreshToken(t.account, r), !u)
9555
+ var s, l, p;
9556
+ return se(this, function(u) {
9557
+ if ((o = this.performanceClient) === null || o === void 0 || o.addQueueMeasurement(R.RefreshTokenClientAcquireTokenWithCachedRefreshToken, t.correlationId), s = (i = this.performanceClient) === null || i === void 0 ? void 0 : i.startMeasurement(R.RefreshTokenClientAcquireTokenWithCachedRefreshToken, t.correlationId), this.logger.verbose("RefreshTokenClientAcquireTokenWithCachedRefreshToken called", t.correlationId), l = this.cacheManager.getRefreshToken(t.account, r), !l)
9558
9558
  throw s == null || s.discardMeasurement(), Mt.createNoTokensFoundError();
9559
9559
  return s == null || s.endMeasurement({
9560
9560
  success: !0
9561
- }), p = ye(ye({}, t), { refreshToken: u.secret, authenticationScheme: t.authenticationScheme || ke.BEARER, ccsCredential: {
9561
+ }), p = ye(ye({}, t), { refreshToken: l.secret, authenticationScheme: t.authenticationScheme || ke.BEARER, ccsCredential: {
9562
9562
  credential: t.account.homeAccountId,
9563
9563
  type: mt.HOME_ACCOUNT_ID
9564
9564
  } }), (a = this.performanceClient) === null || a === void 0 || a.setPreQueueTime(R.RefreshTokenClientAcquireToken, t.correlationId), [2, this.acquireToken(p)];
@@ -9567,13 +9567,13 @@ var ki = (
9567
9567
  }, e.prototype.executeTokenRequest = function(t, r) {
9568
9568
  var o, i, a;
9569
9569
  return ae(this, void 0, void 0, function() {
9570
- var s, u, p, l, m, f;
9570
+ var s, l, p, u, m, f;
9571
9571
  return se(this, function(k) {
9572
9572
  switch (k.label) {
9573
9573
  case 0:
9574
- return (o = this.performanceClient) === null || o === void 0 || o.addQueueMeasurement(R.RefreshTokenClientExecuteTokenRequest, t.correlationId), s = (i = this.performanceClient) === null || i === void 0 ? void 0 : i.startMeasurement(R.RefreshTokenClientExecuteTokenRequest, t.correlationId), (a = this.performanceClient) === null || a === void 0 || a.setPreQueueTime(R.RefreshTokenClientCreateTokenRequestBody, t.correlationId), u = this.createTokenQueryParameters(t), p = he.appendQueryString(r.tokenEndpoint, u), [4, this.createTokenRequestBody(t)];
9574
+ return (o = this.performanceClient) === null || o === void 0 || o.addQueueMeasurement(R.RefreshTokenClientExecuteTokenRequest, t.correlationId), s = (i = this.performanceClient) === null || i === void 0 ? void 0 : i.startMeasurement(R.RefreshTokenClientExecuteTokenRequest, t.correlationId), (a = this.performanceClient) === null || a === void 0 || a.setPreQueueTime(R.RefreshTokenClientCreateTokenRequestBody, t.correlationId), l = this.createTokenQueryParameters(t), p = he.appendQueryString(r.tokenEndpoint, l), [4, this.createTokenRequestBody(t)];
9575
9575
  case 1:
9576
- return l = k.sent(), m = this.createTokenRequestHeaders(t.ccsCredential), f = {
9576
+ return u = k.sent(), m = this.createTokenRequestHeaders(t.ccsCredential), f = {
9577
9577
  clientId: this.config.authOptions.clientId,
9578
9578
  authority: r.canonicalAuthority,
9579
9579
  scopes: t.scopes,
@@ -9583,7 +9583,7 @@ var ki = (
9583
9583
  resourceRequestUri: t.resourceRequestUri,
9584
9584
  shrClaims: t.shrClaims,
9585
9585
  sshKid: t.sshKid
9586
- }, [2, this.executePostToTokenEndpoint(p, l, m, f).then(function(E) {
9586
+ }, [2, this.executePostToTokenEndpoint(p, u, m, f).then(function(E) {
9587
9587
  return s == null || s.endMeasurement({
9588
9588
  success: !0
9589
9589
  }), E;
@@ -9598,39 +9598,39 @@ var ki = (
9598
9598
  }, e.prototype.createTokenRequestBody = function(t) {
9599
9599
  var r, o, i;
9600
9600
  return ae(this, void 0, void 0, function() {
9601
- var a, s, u, p, l, m, f;
9601
+ var a, s, l, p, u, m, f;
9602
9602
  return se(this, function(k) {
9603
9603
  switch (k.label) {
9604
9604
  case 0:
9605
- return (r = this.performanceClient) === null || r === void 0 || r.addQueueMeasurement(R.RefreshTokenClientCreateTokenRequestBody, t.correlationId), a = t.correlationId, s = (o = this.performanceClient) === null || o === void 0 ? void 0 : o.startMeasurement(R.BaseClientCreateTokenRequestHeaders, a), u = new Jn(), u.addClientId(this.config.authOptions.clientId), u.addScopes(t.scopes), u.addGrantType(gr.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 !== ke.POP ? [3, 2] : (l = new Dn(this.cryptoUtils, this.performanceClient), (i = this.performanceClient) === null || i === void 0 || i.setPreQueueTime(R.PopTokenGenerateCnf, t.correlationId), [4, l.generateCnf(t)]);
9605
+ return (r = this.performanceClient) === null || r === void 0 || r.addQueueMeasurement(R.RefreshTokenClientCreateTokenRequestBody, t.correlationId), a = t.correlationId, s = (o = this.performanceClient) === null || o === void 0 ? void 0 : o.startMeasurement(R.BaseClientCreateTokenRequestHeaders, a), l = new Jn(), l.addClientId(this.config.authOptions.clientId), l.addScopes(t.scopes), l.addGrantType(gr.REFRESH_TOKEN_GRANT), l.addClientInfo(), l.addLibraryInfo(this.config.libraryInfo), l.addApplicationTelemetry(this.config.telemetry.application), l.addThrottling(), this.serverTelemetryManager && l.addServerTelemetry(this.serverTelemetryManager), l.addCorrelationId(a), l.addRefreshToken(t.refreshToken), this.config.clientCredentials.clientSecret && l.addClientSecret(this.config.clientCredentials.clientSecret), this.config.clientCredentials.clientAssertion && (p = this.config.clientCredentials.clientAssertion, l.addClientAssertion(p.assertion), l.addClientAssertionType(p.assertionType)), t.authenticationScheme !== ke.POP ? [3, 2] : (u = new Dn(this.cryptoUtils, this.performanceClient), (i = this.performanceClient) === null || i === void 0 || i.setPreQueueTime(R.PopTokenGenerateCnf, t.correlationId), [4, u.generateCnf(t)]);
9606
9606
  case 1:
9607
- return m = k.sent(), u.addPopToken(m.reqCnfString), [3, 3];
9607
+ return m = k.sent(), l.addPopToken(m.reqCnfString), [3, 3];
9608
9608
  case 2:
9609
9609
  if (t.authenticationScheme === ke.SSH)
9610
9610
  if (t.sshJwk)
9611
- u.addSshJwk(t.sshJwk);
9611
+ l.addSshJwk(t.sshJwk);
9612
9612
  else
9613
9613
  throw s == null || s.endMeasurement({
9614
9614
  success: !1
9615
9615
  }), Ae.createMissingSshJwkError();
9616
9616
  k.label = 3;
9617
9617
  case 3:
9618
- if ((!Q.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)
9618
+ if ((!Q.isEmptyObj(t.claims) || this.config.authOptions.clientCapabilities && this.config.authOptions.clientCapabilities.length > 0) && l.addClaims(t.claims, this.config.authOptions.clientCapabilities), this.config.systemOptions.preventCorsPreflight && t.ccsCredential)
9619
9619
  switch (t.ccsCredential.type) {
9620
9620
  case mt.HOME_ACCOUNT_ID:
9621
9621
  try {
9622
- f = On(t.ccsCredential.credential), u.addCcsOid(f);
9622
+ f = On(t.ccsCredential.credential), l.addCcsOid(f);
9623
9623
  } catch (E) {
9624
9624
  this.logger.verbose("Could not parse home account ID for CCS Header: " + E);
9625
9625
  }
9626
9626
  break;
9627
9627
  case mt.UPN:
9628
- u.addCcsUpn(t.ccsCredential.credential);
9628
+ l.addCcsUpn(t.ccsCredential.credential);
9629
9629
  break;
9630
9630
  }
9631
9631
  return s == null || s.endMeasurement({
9632
9632
  success: !0
9633
- }), [2, u.createQueryString()];
9633
+ }), [2, l.createQueryString()];
9634
9634
  }
9635
9635
  });
9636
9636
  });
@@ -9669,9 +9669,9 @@ var ns = (
9669
9669
  }, e.prototype.acquireCachedToken = function(t) {
9670
9670
  var r, o, i, a, s;
9671
9671
  return ae(this, void 0, void 0, function() {
9672
- var u, p;
9673
- return se(this, function(l) {
9674
- switch (l.label) {
9672
+ var l, p;
9673
+ return se(this, function(u) {
9674
+ switch (u.label) {
9675
9675
  case 0:
9676
9676
  if (!t)
9677
9677
  throw Ae.createEmptyTokenRequestError();
@@ -9681,7 +9681,7 @@ var ns = (
9681
9681
  throw (o = this.serverTelemetryManager) === null || o === void 0 || o.setCacheOutcome(hn.CLAIMS_REQUESTED_CACHE_SKIPPED), this.logger.info("SilentFlowClient:acquireCachedToken - Skipping cache because claims-based caching is disabled and claims were requested."), $.createRefreshRequiredError();
9682
9682
  if (!t.account)
9683
9683
  throw $.createNoAccountInSilentRequestError();
9684
- if (u = t.authority || this.authority.getPreferredCache(), p = this.cacheManager.readCacheRecord(t.account, t, u), p.accessToken) {
9684
+ if (l = t.authority || this.authority.getPreferredCache(), p = this.cacheManager.readCacheRecord(t.account, t, l), p.accessToken) {
9685
9685
  if (Ct.wasClockTurnedBack(p.accessToken.cachedAt) || Ct.isTokenExpired(p.accessToken.expiresOn, this.config.systemOptions.tokenRenewalOffsetSeconds))
9686
9686
  throw (a = this.serverTelemetryManager) === null || a === void 0 || a.setCacheOutcome(hn.CACHED_ACCESS_TOKEN_EXPIRED), this.logger.info("SilentFlowClient:acquireCachedToken - Cached access token is expired or will expire within " + this.config.systemOptions.tokenRenewalOffsetSeconds + " seconds."), $.createRefreshRequiredError();
9687
9687
  if (p.accessToken.refreshOn && Ct.isTokenExpired(p.accessToken.refreshOn, 0))
@@ -9689,7 +9689,7 @@ var ns = (
9689
9689
  } else throw (i = this.serverTelemetryManager) === null || i === void 0 || i.setCacheOutcome(hn.NO_CACHED_ACCESS_TOKEN), this.logger.info("SilentFlowClient:acquireCachedToken - No access token found in cache for the given properties."), $.createRefreshRequiredError();
9690
9690
  return this.config.serverTelemetryManager && this.config.serverTelemetryManager.incrementCacheHits(), [4, this.generateResultFromCacheRecord(p, t)];
9691
9691
  case 1:
9692
- return [2, l.sent()];
9692
+ return [2, u.sent()];
9693
9693
  }
9694
9694
  });
9695
9695
  });
@@ -9764,18 +9764,18 @@ var as = (
9764
9764
  return n.prototype.detectRegion = function(e, t) {
9765
9765
  var r, o, i, a;
9766
9766
  return ae(this, void 0, void 0, function() {
9767
- var s, u, p, l, m;
9767
+ var s, l, p, u, m;
9768
9768
  return se(this, function(f) {
9769
9769
  switch (f.label) {
9770
9770
  case 0:
9771
9771
  if ((r = this.performanceClient) === null || r === void 0 || r.addQueueMeasurement(R.RegionDiscoveryDetectRegion, this.correlationId), s = e, s) return [3, 8];
9772
- u = n.IMDS_OPTIONS, f.label = 1;
9772
+ l = n.IMDS_OPTIONS, f.label = 1;
9773
9773
  case 1:
9774
- return f.trys.push([1, 6, , 7]), (o = this.performanceClient) === null || o === void 0 || o.setPreQueueTime(R.RegionDiscoveryGetRegionFromIMDS, this.correlationId), [4, this.getRegionFromIMDS(b.IMDS_VERSION, u)];
9774
+ return f.trys.push([1, 6, , 7]), (o = this.performanceClient) === null || o === void 0 || o.setPreQueueTime(R.RegionDiscoveryGetRegionFromIMDS, this.correlationId), [4, this.getRegionFromIMDS(b.IMDS_VERSION, l)];
9775
9775
  case 2:
9776
- return p = f.sent(), p.status === Nn.httpSuccess && (s = p.body, t.region_source = dn.IMDS), p.status !== Nn.httpBadRequest ? [3, 5] : ((i = this.performanceClient) === null || i === void 0 || i.setPreQueueTime(R.RegionDiscoveryGetCurrentVersion, this.correlationId), [4, this.getCurrentVersion(u)]);
9776
+ return p = f.sent(), p.status === Nn.httpSuccess && (s = p.body, t.region_source = dn.IMDS), p.status !== Nn.httpBadRequest ? [3, 5] : ((i = this.performanceClient) === null || i === void 0 || i.setPreQueueTime(R.RegionDiscoveryGetCurrentVersion, this.correlationId), [4, this.getCurrentVersion(l)]);
9777
9777
  case 3:
9778
- return l = f.sent(), l ? ((a = this.performanceClient) === null || a === void 0 || a.setPreQueueTime(R.RegionDiscoveryGetRegionFromIMDS, this.correlationId), [4, this.getRegionFromIMDS(l, u)]) : (t.region_source = dn.FAILED_AUTO_DETECTION, [2, null]);
9778
+ return u = f.sent(), u ? ((a = this.performanceClient) === null || a === void 0 || a.setPreQueueTime(R.RegionDiscoveryGetRegionFromIMDS, this.correlationId), [4, this.getRegionFromIMDS(u, l)]) : (t.region_source = dn.FAILED_AUTO_DETECTION, [2, null]);
9779
9779
  case 4:
9780
9780
  m = f.sent(), m.status === Nn.httpSuccess && (s = m.body, t.region_source = dn.IMDS), f.label = 5;
9781
9781
  case 5:
@@ -9985,13 +9985,13 @@ var rr = (
9985
9985
  return e.replace(/{tenant}|{tenantid}/g, this.tenant);
9986
9986
  }, n.prototype.replacePath = function(e) {
9987
9987
  var t = this, r = e, o = new he(this.metadata.canonical_authority), i = o.getUrlComponents(), a = i.PathSegments, s = this.canonicalAuthorityUrlComponents.PathSegments;
9988
- return s.forEach(function(u, p) {
9989
- var l = a[p];
9988
+ return s.forEach(function(l, p) {
9989
+ var u = a[p];
9990
9990
  if (p === 0 && t.canReplaceTenant(i)) {
9991
9991
  var m = new he(t.metadata.authorization_endpoint).getUrlComponents().PathSegments[0];
9992
- l !== m && (t.logger.verbose("Replacing tenant domain name " + l + " with id " + m), l = m);
9992
+ u !== m && (t.logger.verbose("Replacing tenant domain name " + u + " with id " + m), u = m);
9993
9993
  }
9994
- u !== l && (r = r.replace("/" + l + "/", "/" + u + "/"));
9994
+ l !== u && (r = r.replace("/" + u + "/", "/" + l + "/"));
9995
9995
  }), this.replaceTenant(r);
9996
9996
  }, Object.defineProperty(n.prototype, "defaultOpenIdConfigurationEndpoint", {
9997
9997
  /**
@@ -10008,14 +10008,14 @@ var rr = (
10008
10008
  var e, t, r;
10009
10009
  return ae(this, void 0, void 0, function() {
10010
10010
  var o, i, a, s;
10011
- return se(this, function(u) {
10012
- switch (u.label) {
10011
+ return se(this, function(l) {
10012
+ switch (l.label) {
10013
10013
  case 0:
10014
10014
  return (e = this.performanceClient) === null || e === void 0 || e.addQueueMeasurement(R.AuthorityResolveEndpointsAsync, this.correlationId), o = this.cacheManager.getAuthorityMetadataByAlias(this.hostnameAndPort), o || (o = new eo(), o.updateCanonicalAuthority(this.canonicalAuthority)), (t = this.performanceClient) === null || t === void 0 || t.setPreQueueTime(R.AuthorityUpdateCloudDiscoveryMetadata, this.correlationId), [4, this.updateCloudDiscoveryMetadata(o)];
10015
10015
  case 1:
10016
- return i = u.sent(), this.canonicalAuthority = this.canonicalAuthority.replace(this.hostnameAndPort, o.preferred_network), (r = this.performanceClient) === null || r === void 0 || r.setPreQueueTime(R.AuthorityUpdateEndpointMetadata, this.correlationId), [4, this.updateEndpointMetadata(o)];
10016
+ return i = l.sent(), this.canonicalAuthority = this.canonicalAuthority.replace(this.hostnameAndPort, o.preferred_network), (r = this.performanceClient) === null || r === void 0 || r.setPreQueueTime(R.AuthorityUpdateEndpointMetadata, this.correlationId), [4, this.updateEndpointMetadata(o)];
10017
10017
  case 2:
10018
- return a = u.sent(), i !== bt.CACHE && a !== bt.CACHE && (o.resetExpiresAt(), o.updateCanonicalAuthority(this.canonicalAuthority)), s = this.cacheManager.generateAuthorityMetadataCacheKey(o.preferred_cache), this.cacheManager.setAuthorityMetadata(s, o), this.metadata = o, [
10018
+ return a = l.sent(), i !== bt.CACHE && a !== bt.CACHE && (o.resetExpiresAt(), o.updateCanonicalAuthority(this.canonicalAuthority)), s = this.cacheManager.generateAuthorityMetadataCacheKey(o.preferred_cache), this.cacheManager.setAuthorityMetadata(s, o), this.metadata = o, [
10019
10019
  2
10020
10020
  /*return*/
10021
10021
  ];
@@ -10025,21 +10025,21 @@ var rr = (
10025
10025
  }, n.prototype.updateEndpointMetadata = function(e) {
10026
10026
  var t, r, o, i, a, s;
10027
10027
  return ae(this, void 0, void 0, function() {
10028
- var u, p;
10029
- return se(this, function(l) {
10030
- switch (l.label) {
10028
+ var l, p;
10029
+ return se(this, function(u) {
10030
+ switch (u.label) {
10031
10031
  case 0:
10032
- return (t = this.performanceClient) === null || t === void 0 || t.addQueueMeasurement(R.AuthorityUpdateEndpointMetadata, this.correlationId), u = this.getEndpointMetadataFromConfig(), u ? (e.updateEndpointMetadata(u, !1), [2, bt.CONFIG]) : this.isAuthoritySameType(e) && e.endpointsFromNetwork && !e.isExpired() ? [2, bt.CACHE] : ((r = this.performanceClient) === null || r === void 0 || r.setPreQueueTime(R.AuthorityGetEndpointMetadataFromNetwork, this.correlationId), [4, this.getEndpointMetadataFromNetwork()]);
10032
+ return (t = this.performanceClient) === null || t === void 0 || t.addQueueMeasurement(R.AuthorityUpdateEndpointMetadata, this.correlationId), l = this.getEndpointMetadataFromConfig(), l ? (e.updateEndpointMetadata(l, !1), [2, bt.CONFIG]) : this.isAuthoritySameType(e) && e.endpointsFromNetwork && !e.isExpired() ? [2, bt.CACHE] : ((r = this.performanceClient) === null || r === void 0 || r.setPreQueueTime(R.AuthorityGetEndpointMetadataFromNetwork, this.correlationId), [4, this.getEndpointMetadataFromNetwork()]);
10033
10033
  case 1:
10034
- return u = l.sent(), u ? !((o = this.authorityOptions.azureRegionConfiguration) === null || o === void 0) && o.azureRegion ? ((i = this.performanceClient) === null || i === void 0 || i.setPreQueueTime(R.AuthorityUpdateMetadataWithRegionalInformation, this.correlationId), [4, this.updateMetadataWithRegionalInformation(u)]) : [3, 3] : [3, 4];
10034
+ return l = u.sent(), l ? !((o = this.authorityOptions.azureRegionConfiguration) === null || o === void 0) && o.azureRegion ? ((i = this.performanceClient) === null || i === void 0 || i.setPreQueueTime(R.AuthorityUpdateMetadataWithRegionalInformation, this.correlationId), [4, this.updateMetadataWithRegionalInformation(l)]) : [3, 3] : [3, 4];
10035
10035
  case 2:
10036
- u = l.sent(), l.label = 3;
10036
+ l = u.sent(), u.label = 3;
10037
10037
  case 3:
10038
- return e.updateEndpointMetadata(u, !0), [2, bt.NETWORK];
10038
+ return e.updateEndpointMetadata(l, !0), [2, bt.NETWORK];
10039
10039
  case 4:
10040
10040
  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(R.AuthorityUpdateMetadataWithRegionalInformation, this.correlationId), [4, this.updateMetadataWithRegionalInformation(p)]) : [3, 6] : [3, 7];
10041
10041
  case 5:
10042
- p = l.sent(), l.label = 6;
10042
+ p = u.sent(), u.label = 6;
10043
10043
  case 6:
10044
10044
  return e.updateEndpointMetadata(p, !1), [2, bt.HARDCODED_VALUES];
10045
10045
  case 7:
@@ -10086,14 +10086,14 @@ var rr = (
10086
10086
  var t, r, o, i;
10087
10087
  return ae(this, void 0, void 0, function() {
10088
10088
  var a, s;
10089
- return se(this, function(u) {
10090
- switch (u.label) {
10089
+ return se(this, function(l) {
10090
+ switch (l.label) {
10091
10091
  case 0:
10092
10092
  return (t = this.performanceClient) === null || t === void 0 || t.addQueueMeasurement(R.AuthorityUpdateMetadataWithRegionalInformation, this.correlationId), a = (r = this.authorityOptions.azureRegionConfiguration) === null || r === void 0 ? void 0 : r.azureRegion, a ? a !== b.AZURE_REGION_AUTO_DISCOVER_FLAG ? (this.regionDiscoveryMetadata.region_outcome = Wn.CONFIGURED_NO_AUTO_DETECTION, this.regionDiscoveryMetadata.region_used = a, [2, n.replaceWithRegionalInformation(e, a)]) : ((o = this.performanceClient) === null || o === void 0 || o.setPreQueueTime(R.RegionDiscoveryDetectRegion, this.correlationId), [4, this.regionDiscovery.detectRegion((i = this.authorityOptions.azureRegionConfiguration) === null || i === void 0 ? void 0 : i.environmentRegion, this.regionDiscoveryMetadata)]) : [3, 2];
10093
10093
  case 1:
10094
- if (s = u.sent(), s)
10094
+ if (s = l.sent(), s)
10095
10095
  return this.regionDiscoveryMetadata.region_outcome = Wn.AUTO_DETECTION_REQUESTED_SUCCESSFUL, this.regionDiscoveryMetadata.region_used = s, [2, n.replaceWithRegionalInformation(e, s)];
10096
- this.regionDiscoveryMetadata.region_outcome = Wn.AUTO_DETECTION_REQUESTED_FAILED, u.label = 2;
10096
+ this.regionDiscoveryMetadata.region_outcome = Wn.AUTO_DETECTION_REQUESTED_FAILED, l.label = 2;
10097
10097
  case 2:
10098
10098
  return [2, e];
10099
10099
  }
@@ -10135,15 +10135,15 @@ var rr = (
10135
10135
  }, n.prototype.getCloudDiscoveryMetadataFromNetwork = function() {
10136
10136
  var e;
10137
10137
  return ae(this, void 0, void 0, function() {
10138
- var t, r, o, i, a, s, u, p;
10139
- return se(this, function(l) {
10140
- switch (l.label) {
10138
+ var t, r, o, i, a, s, l, p;
10139
+ return se(this, function(u) {
10140
+ switch (u.label) {
10141
10141
  case 0:
10142
- (e = this.performanceClient) === null || e === void 0 || e.addQueueMeasurement(R.AuthorityGetCloudDiscoveryMetadataFromNetwork, this.correlationId), t = "" + b.AAD_INSTANCE_DISCOVERY_ENDPT + this.canonicalAuthority + "oauth2/v2.0/authorize", r = {}, o = null, l.label = 1;
10142
+ (e = this.performanceClient) === null || e === void 0 || e.addQueueMeasurement(R.AuthorityGetCloudDiscoveryMetadataFromNetwork, this.correlationId), t = "" + b.AAD_INSTANCE_DISCOVERY_ENDPT + this.canonicalAuthority + "oauth2/v2.0/authorize", r = {}, o = null, u.label = 1;
10143
10143
  case 1:
10144
- return l.trys.push([1, 3, , 4]), [4, this.networkInterface.sendGetRequestAsync(t, r)];
10144
+ return u.trys.push([1, 3, , 4]), [4, this.networkInterface.sendGetRequestAsync(t, r)];
10145
10145
  case 2:
10146
- if (i = l.sent(), a = void 0, s = void 0, os(i.body))
10146
+ if (i = u.sent(), a = void 0, s = void 0, os(i.body))
10147
10147
  a = i.body, s = a.metadata, this.logger.verbosePii("tenant_discovery_endpoint is: " + a.tenant_discovery_endpoint);
10148
10148
  else if (is(i.body)) {
10149
10149
  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 === b.INVALID_INSTANCE)
@@ -10153,9 +10153,9 @@ var rr = (
10153
10153
  return this.logger.error("AAD did not return a CloudInstanceDiscoveryResponse or CloudInstanceDiscoveryErrorResponse"), [2, null];
10154
10154
  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];
10155
10155
  case 3:
10156
- return u = l.sent(), u instanceof X ? this.logger.error(`There was a network error while attempting to get the cloud discovery instance metadata.
10157
- Error: ` + u.errorCode + `
10158
- Error Description: ` + u.errorMessage) : (p = u, this.logger.error(`A non-MSALJS error was thrown while attempting to get the cloud instance discovery metadata.
10156
+ return l = u.sent(), l instanceof X ? this.logger.error(`There was a network error while attempting to get the cloud discovery instance metadata.
10157
+ Error: ` + l.errorCode + `
10158
+ Error Description: ` + l.errorMessage) : (p = l, this.logger.error(`A non-MSALJS error was thrown while attempting to get the cloud instance discovery metadata.
10159
10159
  Error: ` + p.name + `
10160
10160
  Error Description: ` + p.message)), [2, null];
10161
10161
  case 4:
@@ -10231,17 +10231,17 @@ var Cr = (
10231
10231
  }
10232
10232
  return n.createDiscoveredInstance = function(e, t, r, o, i, a, s) {
10233
10233
  return ae(this, void 0, void 0, function() {
10234
- var u, p, l;
10234
+ var l, p, u;
10235
10235
  return se(this, function(m) {
10236
10236
  switch (m.label) {
10237
10237
  case 0:
10238
- a == null || a.addQueueMeasurement(R.AuthorityFactoryCreateDiscoveredInstance, s), u = rr.transformCIAMAuthority(e), p = n.createInstance(u, t, r, o, i, a, s), m.label = 1;
10238
+ a == null || a.addQueueMeasurement(R.AuthorityFactoryCreateDiscoveredInstance, s), l = rr.transformCIAMAuthority(e), p = n.createInstance(l, t, r, o, i, a, s), m.label = 1;
10239
10239
  case 1:
10240
10240
  return m.trys.push([1, 3, , 4]), a == null || a.setPreQueueTime(R.AuthorityResolveEndpointsAsync, s), [4, p.resolveEndpointsAsync()];
10241
10241
  case 2:
10242
10242
  return m.sent(), [2, p];
10243
10243
  case 3:
10244
- throw l = m.sent(), $.createEndpointDiscoveryIncompleteError(l);
10244
+ throw u = m.sent(), $.createEndpointDiscoveryIncompleteError(u);
10245
10245
  case 4:
10246
10246
  return [
10247
10247
  2
@@ -10375,8 +10375,8 @@ var ls = (
10375
10375
  }, n.maxErrorsToSend = function(e) {
10376
10376
  var t, r = 0, o = 0, i = e.errors.length;
10377
10377
  for (t = 0; t < i; t++) {
10378
- var a = e.failedRequests[2 * t] || b.EMPTY_STRING, s = e.failedRequests[2 * t + 1] || b.EMPTY_STRING, u = e.errors[t] || b.EMPTY_STRING;
10379
- if (o += a.toString().length + s.toString().length + u.length + 3, o < Ve.MAX_LAST_HEADER_BYTES)
10378
+ var a = e.failedRequests[2 * t] || b.EMPTY_STRING, s = e.failedRequests[2 * t + 1] || b.EMPTY_STRING, l = e.errors[t] || b.EMPTY_STRING;
10379
+ if (o += a.toString().length + s.toString().length + l.length + 3, o < Ve.MAX_LAST_HEADER_BYTES)
10380
10380
  r += 1;
10381
10381
  else
10382
10382
  break;
@@ -10444,7 +10444,7 @@ var Ei = (
10444
10444
  t || this.logger.info("PerformanceClient: No correlation id provided for " + e + ", generating", a), this.logger.trace("PerformanceClient: Performance measurement started for " + e, a);
10445
10445
  var s = this.startPerformanceMeasuremeant(e, a);
10446
10446
  s.startMeasurement();
10447
- var u = {
10447
+ var l = {
10448
10448
  eventId: this.generateId(),
10449
10449
  status: wr.InProgress,
10450
10450
  authority: this.authority,
@@ -10457,41 +10457,41 @@ var Ei = (
10457
10457
  appName: (o = this.applicationTelemetry) === null || o === void 0 ? void 0 : o.appName,
10458
10458
  appVersion: (i = this.applicationTelemetry) === null || i === void 0 ? void 0 : i.appVersion
10459
10459
  };
10460
- return this.cacheEventByCorrelationId(u), {
10460
+ return this.cacheEventByCorrelationId(l), {
10461
10461
  endMeasurement: function(p) {
10462
- return r.endMeasurement(ye(ye({}, u), p), s);
10462
+ return r.endMeasurement(ye(ye({}, l), p), s);
10463
10463
  },
10464
10464
  discardMeasurement: function() {
10465
- return r.discardMeasurements(u.correlationId);
10465
+ return r.discardMeasurements(l.correlationId);
10466
10466
  },
10467
10467
  addStaticFields: function(p) {
10468
- return r.addStaticFields(p, u.correlationId);
10468
+ return r.addStaticFields(p, l.correlationId);
10469
10469
  },
10470
10470
  increment: function(p) {
10471
- return r.increment(p, u.correlationId);
10471
+ return r.increment(p, l.correlationId);
10472
10472
  },
10473
10473
  measurement: s,
10474
- event: u
10474
+ event: l
10475
10475
  };
10476
10476
  }, n.prototype.endMeasurement = function(e, t) {
10477
10477
  var r = this, o, i, a = this.eventsByCorrelationId.get(e.correlationId);
10478
10478
  if (!a)
10479
10479
  return this.logger.trace("PerformanceClient: Measurement not found for " + e.eventId, e.correlationId), null;
10480
- var s = e.eventId === a.eventId, u = {
10480
+ var s = e.eventId === a.eventId, l = {
10481
10481
  totalQueueTime: 0,
10482
10482
  totalQueueCount: 0,
10483
10483
  manuallyCompletedCount: 0
10484
10484
  };
10485
- 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();
10485
+ s ? (l = this.getQueueInfo(e.correlationId), this.discardCache(a.correlationId)) : (o = a.incompleteSubMeasurements) === null || o === void 0 || o.delete(e.eventId), t == null || t.endMeasurement();
10486
10486
  var p = t == null ? void 0 : t.flushMeasurement();
10487
10487
  if (!p)
10488
10488
  return this.logger.trace("PerformanceClient: Performance measurement not taken", a.correlationId), null;
10489
10489
  if (this.logger.trace("PerformanceClient: Performance measurement ended for " + e.name + ": " + p + " ms", e.correlationId), !s)
10490
10490
  return a[e.name + "DurationMs"] = Math.floor(p), ye({}, a);
10491
- var l = ye(ye({}, a), e), m = 0;
10492
- return (i = l.incompleteSubMeasurements) === null || i === void 0 || i.forEach(function(f) {
10493
- r.logger.trace("PerformanceClient: Incomplete submeasurement " + f.name + " found for " + e.name, l.correlationId), m++;
10494
- }), l.incompleteSubMeasurements = void 0, l = ye(ye({}, l), { durationMs: Math.round(p), queuedTimeMs: u.totalQueueTime, queuedCount: u.totalQueueCount, queuedManuallyCompletedCount: u.manuallyCompletedCount, status: wr.Completed, incompleteSubsCount: m }), this.truncateIntegralFields(l, this.getIntFields()), this.emitEvents([l], e.correlationId), l;
10491
+ var u = ye(ye({}, a), e), m = 0;
10492
+ return (i = u.incompleteSubMeasurements) === null || i === void 0 || i.forEach(function(f) {
10493
+ r.logger.trace("PerformanceClient: Incomplete submeasurement " + f.name + " found for " + e.name, u.correlationId), m++;
10494
+ }), u.incompleteSubMeasurements = void 0, u = ye(ye({}, u), { durationMs: Math.round(p), queuedTimeMs: l.totalQueueTime, queuedCount: l.totalQueueCount, queuedManuallyCompletedCount: l.manuallyCompletedCount, status: wr.Completed, incompleteSubsCount: m }), this.truncateIntegralFields(u, this.getIntFields()), this.emitEvents([u], e.correlationId), u;
10495
10495
  }, n.prototype.addStaticFields = function(e, t) {
10496
10496
  this.logger.trace("PerformanceClient: Updating static fields");
10497
10497
  var r = this.eventsByCorrelationId.get(t);
@@ -11104,7 +11104,7 @@ var ro = (
11104
11104
  return this.internalStorage;
11105
11105
  }
11106
11106
  }, e.prototype.migrateCacheEntries = function() {
11107
- var t = this, r = b.CACHE_PREFIX + "." + je.ID_TOKEN, o = b.CACHE_PREFIX + "." + je.CLIENT_INFO, i = b.CACHE_PREFIX + "." + je.ERROR, a = b.CACHE_PREFIX + "." + je.ERROR_DESC, s = this.browserStorage.getItem(r), u = this.browserStorage.getItem(o), p = this.browserStorage.getItem(i), l = this.browserStorage.getItem(a), m = [s, u, p, l], f = [je.ID_TOKEN, je.CLIENT_INFO, je.ERROR, je.ERROR_DESC];
11107
+ var t = this, r = b.CACHE_PREFIX + "." + je.ID_TOKEN, o = b.CACHE_PREFIX + "." + je.CLIENT_INFO, i = b.CACHE_PREFIX + "." + je.ERROR, a = b.CACHE_PREFIX + "." + je.ERROR_DESC, s = this.browserStorage.getItem(r), l = this.browserStorage.getItem(o), p = this.browserStorage.getItem(i), u = this.browserStorage.getItem(a), m = [s, l, p, u], f = [je.ID_TOKEN, je.CLIENT_INFO, je.ERROR, je.ERROR_DESC];
11108
11108
  f.forEach(function(k, E) {
11109
11109
  return t.migrateCacheEntry(k, m[E]);
11110
11110
  });
@@ -11123,33 +11123,33 @@ var ro = (
11123
11123
  if (t.isCredentialKey(a)) {
11124
11124
  var s = t.getItem(a);
11125
11125
  if (s) {
11126
- var u = t.validateAndParseJson(s);
11127
- if (u && u.hasOwnProperty("credentialType"))
11128
- switch (u.credentialType) {
11126
+ var l = t.validateAndParseJson(s);
11127
+ if (l && l.hasOwnProperty("credentialType"))
11128
+ switch (l.credentialType) {
11129
11129
  case ee.ID_TOKEN:
11130
- if (En.isIdTokenEntity(u)) {
11130
+ if (En.isIdTokenEntity(l)) {
11131
11131
  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");
11132
- var p = at.toObject(new En(), u), l = t.updateCredentialCacheKey(a, p);
11133
- t.addTokenKey(l, ee.ID_TOKEN);
11132
+ var p = at.toObject(new En(), l), u = t.updateCredentialCacheKey(a, p);
11133
+ t.addTokenKey(u, ee.ID_TOKEN);
11134
11134
  return;
11135
11135
  } else
11136
11136
  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);
11137
11137
  break;
11138
11138
  case ee.ACCESS_TOKEN:
11139
11139
  case ee.ACCESS_TOKEN_WITH_AUTH_SCHEME:
11140
- if (Tn.isAccessTokenEntity(u)) {
11140
+ if (Tn.isAccessTokenEntity(l)) {
11141
11141
  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");
11142
- var m = at.toObject(new Tn(), u), l = t.updateCredentialCacheKey(a, m);
11143
- t.addTokenKey(l, ee.ACCESS_TOKEN);
11142
+ var m = at.toObject(new Tn(), l), u = t.updateCredentialCacheKey(a, m);
11143
+ t.addTokenKey(u, ee.ACCESS_TOKEN);
11144
11144
  return;
11145
11145
  } else
11146
11146
  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);
11147
11147
  break;
11148
11148
  case ee.REFRESH_TOKEN:
11149
- if (Ln.isRefreshTokenEntity(u)) {
11149
+ if (Ln.isRefreshTokenEntity(l)) {
11150
11150
  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");
11151
- var f = at.toObject(new Ln(), u), l = t.updateCredentialCacheKey(a, f);
11152
- t.addTokenKey(l, ee.REFRESH_TOKEN);
11151
+ var f = at.toObject(new Ln(), l), u = t.updateCredentialCacheKey(a, f);
11152
+ t.addTokenKey(u, ee.REFRESH_TOKEN);
11153
11153
  return;
11154
11154
  } else
11155
11155
  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);
@@ -11510,21 +11510,21 @@ var ro = (
11510
11510
  this.logger.trace("BrowserCacheManager.updateCacheEntries called");
11511
11511
  var s = this.generateStateKey(t);
11512
11512
  this.setTemporaryCache(s, t, !1);
11513
- var u = this.generateNonceKey(t);
11514
- this.setTemporaryCache(u, r, !1);
11513
+ var l = this.generateNonceKey(t);
11514
+ this.setTemporaryCache(l, r, !1);
11515
11515
  var p = this.generateAuthorityKey(t);
11516
11516
  if (this.setTemporaryCache(p, o, !1), a) {
11517
- var l = {
11517
+ var u = {
11518
11518
  credential: a.homeAccountId,
11519
11519
  type: mt.HOME_ACCOUNT_ID
11520
11520
  };
11521
- this.setTemporaryCache(me.CCS_CREDENTIAL, JSON.stringify(l), !0);
11521
+ this.setTemporaryCache(me.CCS_CREDENTIAL, JSON.stringify(u), !0);
11522
11522
  } else if (!Q.isEmpty(i)) {
11523
- var l = {
11523
+ var u = {
11524
11524
  credential: i,
11525
11525
  type: mt.UPN
11526
11526
  };
11527
- this.setTemporaryCache(me.CCS_CREDENTIAL, JSON.stringify(l), !0);
11527
+ this.setTemporaryCache(me.CCS_CREDENTIAL, JSON.stringify(u), !0);
11528
11528
  }
11529
11529
  }, e.prototype.resetRequestCache = function(t) {
11530
11530
  var r = this;
@@ -11745,9 +11745,9 @@ var ms = (
11745
11745
  ), o.setXhrHeaders(s, r), s.onload = function() {
11746
11746
  (s.status < 200 || s.status >= 300) && (t === qt.POST ? a(K.createPostRequestFailedError("Failed with status " + s.status, e)) : a(K.createGetRequestFailedError("Failed with status " + s.status, e)));
11747
11747
  try {
11748
- var u = JSON.parse(s.responseText), p = {
11748
+ var l = JSON.parse(s.responseText), p = {
11749
11749
  headers: o.getHeaderDict(s),
11750
- body: u,
11750
+ body: l,
11751
11751
  status: s.status
11752
11752
  };
11753
11753
  i(p);
@@ -11773,8 +11773,8 @@ var ms = (
11773
11773
  }, n.prototype.getHeaderDict = function(e) {
11774
11774
  var t = e.getAllResponseHeaders(), r = t.trim().split(/[\r\n]+/), o = {};
11775
11775
  return r.forEach(function(i) {
11776
- var a = i.split(": "), s = a.shift(), u = a.join(": ");
11777
- s && u && (o[s] = u);
11776
+ var a = i.split(": "), s = a.shift(), l = a.join(": ");
11777
+ s && l && (o[s] = l);
11778
11778
  }), o;
11779
11779
  }, n;
11780
11780
  }()
@@ -11828,8 +11828,8 @@ var Pe = (
11828
11828
  var Si = (
11829
11829
  /** @class */
11830
11830
  function() {
11831
- function n(e, t, r, o, i, a, s, u, p) {
11832
- 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(Pt.MSAL_SKU, Zn, this.correlationId), this.performanceClient = s;
11831
+ function n(e, t, r, o, i, a, s, l, p) {
11832
+ this.config = e, this.browserStorage = t, this.browserCrypto = r, this.networkClient = this.config.system.networkClient, this.eventHandler = i, this.navigationClient = a, this.nativeMessageHandler = l, this.correlationId = p || this.browserCrypto.createNewGuid(), this.logger = o.clone(Pt.MSAL_SKU, Zn, this.correlationId), this.performanceClient = s;
11833
11833
  }
11834
11834
  return n.prototype.clearCacheOnLogout = function(e) {
11835
11835
  return L(this, void 0, void 0, function() {
@@ -12060,7 +12060,7 @@ var Hn = (
12060
12060
  }, e.prototype.getDiscoveredAuthority = function(t, r) {
12061
12061
  var o;
12062
12062
  return L(this, void 0, void 0, function() {
12063
- var i, a, s, u;
12063
+ var i, a, s, l;
12064
12064
  return z(this, function(p) {
12065
12065
  switch (p.label) {
12066
12066
  case 0:
@@ -12070,16 +12070,16 @@ var Hn = (
12070
12070
  cloudDiscoveryMetadata: this.config.auth.cloudDiscoveryMetadata,
12071
12071
  authorityMetadata: this.config.auth.authorityMetadata,
12072
12072
  skipAuthorityMetadataCache: this.config.auth.skipAuthorityMetadataCache
12073
- }, s = t || this.config.auth.authority, u = rr.generateAuthority(s, r || this.config.auth.azureCloudOptions), this.logger.verbose("Creating discovered authority with configured authority", this.correlationId), this.performanceClient.setPreQueueTime(R.AuthorityFactoryCreateDiscoveredInstance, this.correlationId), [4, Cr.createDiscoveredInstance(u, this.config.system.networkClient, this.browserStorage, a, this.logger, this.performanceClient, this.correlationId).then(function(l) {
12073
+ }, s = t || this.config.auth.authority, l = rr.generateAuthority(s, r || this.config.auth.azureCloudOptions), this.logger.verbose("Creating discovered authority with configured authority", this.correlationId), this.performanceClient.setPreQueueTime(R.AuthorityFactoryCreateDiscoveredInstance, this.correlationId), [4, Cr.createDiscoveredInstance(l, this.config.system.networkClient, this.browserStorage, a, this.logger, this.performanceClient, this.correlationId).then(function(u) {
12074
12074
  return i.endMeasurement({
12075
12075
  success: !0
12076
- }), l;
12077
- }).catch(function(l) {
12076
+ }), u;
12077
+ }).catch(function(u) {
12078
12078
  throw i.endMeasurement({
12079
- errorCode: l.errorCode,
12080
- subErrorCode: l.subError,
12079
+ errorCode: u.errorCode,
12080
+ subErrorCode: u.subError,
12081
12081
  success: !1
12082
- }), l;
12082
+ }), u;
12083
12083
  })];
12084
12084
  case 1:
12085
12085
  return [2, p.sent()];
@@ -12088,15 +12088,15 @@ var Hn = (
12088
12088
  });
12089
12089
  }, e.prototype.initializeAuthorizationRequest = function(t, r) {
12090
12090
  return L(this, void 0, void 0, function() {
12091
- var o, i, a, s, u, p, l;
12091
+ var o, i, a, s, l, p, u;
12092
12092
  return z(this, function(m) {
12093
12093
  switch (m.label) {
12094
12094
  case 0:
12095
12095
  return this.performanceClient.addQueueMeasurement(R.StandardInteractionClientInitializeAuthorizationRequest, this.correlationId), this.logger.verbose("initializeAuthorizationRequest called", this.correlationId), o = this.getRedirectUri(t.redirectUri), i = {
12096
12096
  interactionType: r
12097
- }, a = tn.setRequestState(this.browserCrypto, t && t.state || b.EMPTY_STRING, i), this.performanceClient.setPreQueueTime(R.InitializeBaseRequest, this.correlationId), u = [{}], [4, this.initializeBaseRequest(t)];
12097
+ }, a = tn.setRequestState(this.browserCrypto, t && t.state || b.EMPTY_STRING, i), this.performanceClient.setPreQueueTime(R.InitializeBaseRequest, this.correlationId), l = [{}], [4, this.initializeBaseRequest(t)];
12098
12098
  case 1:
12099
- return s = J.apply(void 0, [J.apply(void 0, u.concat([m.sent()])), { redirectUri: o, state: a, nonce: t.nonce || this.browserCrypto.createNewGuid(), responseMode: mr.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), Q.isEmpty(s.loginHint) && !p && (l = this.browserStorage.getLegacyLoginHint(), l && (s.loginHint = l)), [2, s];
12099
+ return s = J.apply(void 0, [J.apply(void 0, l.concat([m.sent()])), { redirectUri: o, state: a, nonce: t.nonce || this.browserCrypto.createNewGuid(), responseMode: mr.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), Q.isEmpty(s.loginHint) && !p && (u = this.browserStorage.getLegacyLoginHint(), u && (s.loginHint = u)), [2, s];
12100
12100
  }
12101
12101
  });
12102
12102
  });
@@ -12113,7 +12113,7 @@ var _o = (
12113
12113
  return n.prototype.handleCodeResponseFromHash = function(e, t, r, o) {
12114
12114
  return L(this, void 0, void 0, function() {
12115
12115
  var i, a, s;
12116
- return z(this, function(u) {
12116
+ return z(this, function(l) {
12117
12117
  if (this.performanceClient.addQueueMeasurement(R.HandleCodeResponseFromHash, this.authCodeRequest.correlationId), this.logger.verbose("InteractionHandler.handleCodeResponse called"), Q.isEmpty(e))
12118
12118
  throw K.createEmptyHashError(e);
12119
12119
  if (i = this.browserStorage.generateStateKey(t), a = this.browserStorage.getTemporaryCache(i), !a)
@@ -12128,17 +12128,17 @@ var _o = (
12128
12128
  });
12129
12129
  }, n.prototype.handleCodeResponseFromServer = function(e, t, r, o, i) {
12130
12130
  return i === void 0 && (i = !0), L(this, void 0, void 0, function() {
12131
- var a, s, u, p, l, m;
12131
+ var a, s, l, p, u, m;
12132
12132
  return z(this, function(f) {
12133
12133
  switch (f.label) {
12134
12134
  case 0:
12135
12135
  if (this.performanceClient.addQueueMeasurement(R.HandleCodeResponseFromServer, this.authCodeRequest.correlationId), this.logger.trace("InteractionHandler.handleCodeResponseFromServer called"), a = this.browserStorage.generateStateKey(t), s = this.browserStorage.getTemporaryCache(a), !s)
12136
12136
  throw $.createStateNotFoundError("Cached State");
12137
- return u = this.browserStorage.generateNonceKey(s), p = this.browserStorage.getTemporaryCache(u), this.authCodeRequest.code = e.code, e.cloud_instance_host_name ? (this.performanceClient.setPreQueueTime(R.UpdateTokenEndpointAuthority, this.authCodeRequest.correlationId), [4, this.updateTokenEndpointAuthority(e.cloud_instance_host_name, r, o)]) : [3, 2];
12137
+ return l = this.browserStorage.generateNonceKey(s), p = this.browserStorage.getTemporaryCache(l), this.authCodeRequest.code = e.code, e.cloud_instance_host_name ? (this.performanceClient.setPreQueueTime(R.UpdateTokenEndpointAuthority, this.authCodeRequest.correlationId), [4, this.updateTokenEndpointAuthority(e.cloud_instance_host_name, r, o)]) : [3, 2];
12138
12138
  case 1:
12139
12139
  f.sent(), f.label = 2;
12140
12140
  case 2:
12141
- return i && (e.nonce = p || void 0), e.state = s, e.client_info ? this.authCodeRequest.clientInfo = e.client_info : (l = this.checkCcsCredentials(), l && (this.authCodeRequest.ccsCredential = l)), this.performanceClient.setPreQueueTime(R.AuthClientAcquireToken, this.authCodeRequest.correlationId), [4, this.authModule.acquireToken(this.authCodeRequest, e)];
12141
+ 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(R.AuthClientAcquireToken, this.authCodeRequest.correlationId), [4, this.authModule.acquireToken(this.authCodeRequest, e)];
12142
12142
  case 3:
12143
12143
  return m = f.sent(), this.browserStorage.cleanRequestByState(t), [2, m];
12144
12144
  }
@@ -12177,8 +12177,8 @@ var $o = (
12177
12177
  function(n) {
12178
12178
  $e(e, n);
12179
12179
  function e(t, r, o, i, a, s) {
12180
- var u = n.call(this, t, r, o, i, s) || this;
12181
- return u.browserCrypto = a, u;
12180
+ var l = n.call(this, t, r, o, i, s) || this;
12181
+ return l.browserCrypto = a, l;
12182
12182
  }
12183
12183
  return e.prototype.initiateAuthRequest = function(t, r) {
12184
12184
  return L(this, void 0, void 0, function() {
@@ -12224,7 +12224,7 @@ var $o = (
12224
12224
  });
12225
12225
  }, e.prototype.handleCodeResponseFromHash = function(t, r, o, i) {
12226
12226
  return L(this, void 0, void 0, function() {
12227
- var a, s, u, p, l, m, f;
12227
+ var a, s, l, p, u, m, f;
12228
12228
  return z(this, function(k) {
12229
12229
  switch (k.label) {
12230
12230
  case 0:
@@ -12233,15 +12233,15 @@ var $o = (
12233
12233
  if (this.browserStorage.setInteractionInProgress(!1), a = this.browserStorage.generateStateKey(r), s = this.browserStorage.getTemporaryCache(a), !s)
12234
12234
  throw $.createStateNotFoundError("Cached State");
12235
12235
  try {
12236
- u = this.authModule.handleFragmentResponse(t, s);
12236
+ l = this.authModule.handleFragmentResponse(t, s);
12237
12237
  } catch (E) {
12238
12238
  throw E instanceof An && E.subError === D.userCancelledError.code ? K.createUserCancelledError() : E;
12239
12239
  }
12240
- return p = this.browserStorage.generateNonceKey(s), l = this.browserStorage.getTemporaryCache(p), this.authCodeRequest.code = u.code, u.cloud_instance_host_name ? [4, this.updateTokenEndpointAuthority(u.cloud_instance_host_name, o, i)] : [3, 2];
12240
+ return p = this.browserStorage.generateNonceKey(s), u = this.browserStorage.getTemporaryCache(p), this.authCodeRequest.code = l.code, l.cloud_instance_host_name ? [4, this.updateTokenEndpointAuthority(l.cloud_instance_host_name, o, i)] : [3, 2];
12241
12241
  case 1:
12242
12242
  k.sent(), k.label = 2;
12243
12243
  case 2:
12244
- return u.nonce = l || void 0, u.state = s, u.client_info ? this.authCodeRequest.clientInfo = u.client_info : (m = this.checkCcsCredentials(), m && (this.authCodeRequest.ccsCredential = m)), [4, this.authModule.acquireToken(this.authCodeRequest, u)];
12244
+ return l.nonce = u || void 0, l.state = s, l.client_info ? this.authCodeRequest.clientInfo = l.client_info : (m = this.checkCcsCredentials(), m && (this.authCodeRequest.ccsCredential = m)), [4, this.authModule.acquireToken(this.authCodeRequest, l)];
12245
12245
  case 3:
12246
12246
  return f = k.sent(), this.browserStorage.cleanRequestByState(r), [2, f];
12247
12247
  }
@@ -12320,21 +12320,21 @@ var Ii = (
12320
12320
  return e.prototype.acquireToken = function(t) {
12321
12321
  return L(this, void 0, void 0, function() {
12322
12322
  var r, o, i, a, s;
12323
- return z(this, function(u) {
12324
- switch (u.label) {
12323
+ return z(this, function(l) {
12324
+ switch (l.label) {
12325
12325
  case 0:
12326
12326
  return r = this.performanceClient.startMeasurement(R.SilentCacheClientAcquireToken, t.correlationId), o = this.initializeServerTelemetryManager(Ie.acquireTokenSilent_silentFlow), [4, this.createSilentFlowClient(o, t.authority, t.azureCloudOptions)];
12327
12327
  case 1:
12328
- i = u.sent(), this.logger.verbose("Silent auth client created"), u.label = 2;
12328
+ i = l.sent(), this.logger.verbose("Silent auth client created"), l.label = 2;
12329
12329
  case 2:
12330
- return u.trys.push([2, 4, , 5]), [4, i.acquireCachedToken(t)];
12330
+ return l.trys.push([2, 4, , 5]), [4, i.acquireCachedToken(t)];
12331
12331
  case 3:
12332
- return a = u.sent(), r.endMeasurement({
12332
+ return a = l.sent(), r.endMeasurement({
12333
12333
  success: !0,
12334
12334
  fromCache: !0
12335
12335
  }), [2, a];
12336
12336
  case 4:
12337
- throw s = u.sent(), s instanceof K && s.errorCode === D.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({
12337
+ throw s = l.sent(), s instanceof K && s.errorCode === D.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({
12338
12338
  errorCode: s instanceof X && s.errorCode || void 0,
12339
12339
  subErrorCode: s instanceof X && s.subError || void 0,
12340
12340
  success: !1
@@ -12381,36 +12381,36 @@ var Bn = (
12381
12381
  /** @class */
12382
12382
  function(n) {
12383
12383
  $e(e, n);
12384
- function e(t, r, o, i, a, s, u, p, l, m, f, k) {
12385
- var E = n.call(this, t, r, o, i, a, s, p, l, k) || this;
12386
- return E.apiId = u, E.accountId = m, E.nativeMessageHandler = l, E.nativeStorageManager = f, E.silentCacheClient = new Ii(t, E.nativeStorageManager, o, i, a, s, p, l, k), E;
12384
+ function e(t, r, o, i, a, s, l, p, u, m, f, k) {
12385
+ var E = n.call(this, t, r, o, i, a, s, p, u, k) || this;
12386
+ return E.apiId = l, E.accountId = m, E.nativeMessageHandler = u, E.nativeStorageManager = f, E.silentCacheClient = new Ii(t, E.nativeStorageManager, o, i, a, s, p, u, k), E;
12387
12387
  }
12388
12388
  return e.prototype.acquireToken = function(t) {
12389
12389
  return L(this, void 0, void 0, function() {
12390
- var r, o, i, a, s, u, p;
12391
- return z(this, function(l) {
12392
- switch (l.label) {
12390
+ var r, o, i, a, s, l, p;
12391
+ return z(this, function(u) {
12392
+ switch (u.label) {
12393
12393
  case 0:
12394
12394
  return this.logger.trace("NativeInteractionClient - acquireToken called."), r = this.performanceClient.startMeasurement(R.NativeInteractionClientAcquireToken, t.correlationId), o = Ct.nowSeconds(), [4, this.initializeNativeRequest(t)];
12395
12395
  case 1:
12396
- i = l.sent(), l.label = 2;
12396
+ i = u.sent(), u.label = 2;
12397
12397
  case 2:
12398
- return l.trys.push([2, 4, , 5]), [4, this.acquireTokensFromCache(this.accountId, i)];
12398
+ return u.trys.push([2, 4, , 5]), [4, this.acquireTokensFromCache(this.accountId, i)];
12399
12399
  case 3:
12400
- return a = l.sent(), r.endMeasurement({
12400
+ return a = u.sent(), r.endMeasurement({
12401
12401
  success: !0,
12402
12402
  isNativeBroker: !1,
12403
12403
  fromCache: !0
12404
12404
  }), [2, a];
12405
12405
  case 4:
12406
- return l.sent(), this.logger.info("MSAL internal Cache does not contain tokens, proceed to make a native call"), [3, 5];
12406
+ return u.sent(), this.logger.info("MSAL internal Cache does not contain tokens, proceed to make a native call"), [3, 5];
12407
12407
  case 5:
12408
12408
  return s = {
12409
12409
  method: en.GetToken,
12410
12410
  request: i
12411
12411
  }, [4, this.nativeMessageHandler.sendMessage(s)];
12412
12412
  case 6:
12413
- return u = l.sent(), p = this.validateNativeResponse(u), [2, this.handleNativeResponse(p, i, o).then(function(m) {
12413
+ return l = u.sent(), p = this.validateNativeResponse(l), [2, this.handleNativeResponse(p, i, o).then(function(m) {
12414
12414
  return r.endMeasurement({
12415
12415
  success: !0,
12416
12416
  isNativeBroker: !0,
@@ -12438,20 +12438,20 @@ var Bn = (
12438
12438
  }, e.prototype.acquireTokensFromCache = function(t, r) {
12439
12439
  return L(this, void 0, void 0, function() {
12440
12440
  var o, i, a, s;
12441
- return z(this, function(u) {
12442
- switch (u.label) {
12441
+ return z(this, function(l) {
12442
+ switch (l.label) {
12443
12443
  case 0:
12444
12444
  if (!t)
12445
12445
  throw this.logger.warning("NativeInteractionClient:acquireTokensFromCache - No nativeAccountId provided"), $.createNoAccountFoundError();
12446
12446
  if (o = this.browserStorage.getAccountInfoFilteredBy({ nativeAccountId: t }), !o)
12447
12447
  throw $.createNoAccountFoundError();
12448
- u.label = 1;
12448
+ l.label = 1;
12449
12449
  case 1:
12450
- return u.trys.push([1, 3, , 4]), i = this.createSilentCacheRequest(r, o), [4, this.silentCacheClient.acquireToken(i)];
12450
+ return l.trys.push([1, 3, , 4]), i = this.createSilentCacheRequest(r, o), [4, this.silentCacheClient.acquireToken(i)];
12451
12451
  case 2:
12452
- return a = u.sent(), [2, a];
12452
+ return a = l.sent(), [2, a];
12453
12453
  case 3:
12454
- throw s = u.sent(), s;
12454
+ throw s = l.sent(), s;
12455
12455
  case 4:
12456
12456
  return [
12457
12457
  2
@@ -12462,7 +12462,7 @@ var Bn = (
12462
12462
  });
12463
12463
  }, e.prototype.acquireTokenRedirect = function(t) {
12464
12464
  return L(this, void 0, void 0, function() {
12465
- var r, o, i, a, s, u;
12465
+ var r, o, i, a, s, l;
12466
12466
  return z(this, function(p) {
12467
12467
  switch (p.label) {
12468
12468
  case 0:
@@ -12485,7 +12485,7 @@ var Bn = (
12485
12485
  apiId: Ie.acquireTokenRedirect,
12486
12486
  timeout: this.config.system.redirectNavigationTimeout,
12487
12487
  noHistory: !1
12488
- }, u = this.config.auth.navigateToLoginRequestUrl ? window.location.href : this.getRedirectUri(t.redirectUri), [4, this.navigationClient.navigateExternal(u, s)];
12488
+ }, l = this.config.auth.navigateToLoginRequestUrl ? window.location.href : this.getRedirectUri(t.redirectUri), [4, this.navigationClient.navigateExternal(l, s)];
12489
12489
  case 6:
12490
12490
  return p.sent(), [
12491
12491
  2
@@ -12496,9 +12496,9 @@ var Bn = (
12496
12496
  });
12497
12497
  }, e.prototype.handleRedirectPromise = function() {
12498
12498
  return L(this, void 0, void 0, function() {
12499
- var t, r, o, i, a, s, u, p;
12500
- return z(this, function(l) {
12501
- switch (l.label) {
12499
+ var t, r, o, i, a, s, l, p;
12500
+ return z(this, function(u) {
12501
+ switch (u.label) {
12502
12502
  case 0:
12503
12503
  if (this.logger.trace("NativeInteractionClient - handleRedirectPromise called."), !this.browserStorage.isInteractionInProgress(!0))
12504
12504
  return this.logger.info("handleRedirectPromise called but there is no interaction in progress, returning null."), [2, null];
@@ -12507,13 +12507,13 @@ var Bn = (
12507
12507
  r = t.prompt, o = Lo(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(me.NATIVE_REQUEST)), i = {
12508
12508
  method: en.GetToken,
12509
12509
  request: o
12510
- }, a = Ct.nowSeconds(), l.label = 1;
12510
+ }, a = Ct.nowSeconds(), u.label = 1;
12511
12511
  case 1:
12512
- return l.trys.push([1, 3, , 4]), this.logger.verbose("NativeInteractionClient - handleRedirectPromise sending message to native broker."), [4, this.nativeMessageHandler.sendMessage(i)];
12512
+ return u.trys.push([1, 3, , 4]), this.logger.verbose("NativeInteractionClient - handleRedirectPromise sending message to native broker."), [4, this.nativeMessageHandler.sendMessage(i)];
12513
12513
  case 2:
12514
- return s = l.sent(), this.validateNativeResponse(s), u = this.handleNativeResponse(s, o, a), this.browserStorage.setInteractionInProgress(!1), [2, u];
12514
+ return s = u.sent(), this.validateNativeResponse(s), l = this.handleNativeResponse(s, o, a), this.browserStorage.setInteractionInProgress(!1), [2, l];
12515
12515
  case 3:
12516
- throw p = l.sent(), this.browserStorage.setInteractionInProgress(!1), p;
12516
+ throw p = u.sent(), this.browserStorage.setInteractionInProgress(!1), p;
12517
12517
  case 4:
12518
12518
  return [
12519
12519
  2
@@ -12526,7 +12526,7 @@ var Bn = (
12526
12526
  return this.logger.trace("NativeInteractionClient - logout called."), Promise.reject("Logout not implemented yet");
12527
12527
  }, e.prototype.handleNativeResponse = function(t, r, o) {
12528
12528
  return L(this, void 0, void 0, function() {
12529
- var i, a, s, u, p, l;
12529
+ var i, a, s, l, p, u;
12530
12530
  return z(this, function(m) {
12531
12531
  switch (m.label) {
12532
12532
  case 0:
@@ -12534,9 +12534,9 @@ var Bn = (
12534
12534
  throw Gt.createUserSwitchError();
12535
12535
  return [4, this.getDiscoveredAuthority(r.authority)];
12536
12536
  case 1:
12537
- return i = m.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)];
12537
+ return i = m.sent(), a = i.getPreferredCache(), s = this.createIdTokenObj(t), l = this.createHomeAccountIdentifier(t, s), p = this.createAccountEntity(t, l, s, a), [4, this.generateAuthenticationResult(t, r, s, p, i.canonicalAuthority, o)];
12538
12538
  case 2:
12539
- return l = m.sent(), this.cacheAccount(p), this.cacheNativeTokens(t, r, u, p, s, l.accessToken, l.tenantId, o), [2, l];
12539
+ return u = m.sent(), this.cacheAccount(p), this.cacheNativeTokens(t, r, l, p, s, u.accessToken, u.tenantId, o), [2, u];
12540
12540
  }
12541
12541
  });
12542
12542
  });
@@ -12575,11 +12575,11 @@ var Bn = (
12575
12575
  });
12576
12576
  }, e.prototype.generateAuthenticationResult = function(t, r, o, i, a, s) {
12577
12577
  return L(this, void 0, void 0, function() {
12578
- var u, p, l, m, f, k, E, P;
12578
+ var l, p, u, m, f, k, E, P;
12579
12579
  return z(this, function(F) {
12580
12580
  switch (F.label) {
12581
12581
  case 0:
12582
- return u = this.addTelemetryFromNativeResponse(t), p = t.scope ? Je.fromString(t.scope) : Je.fromString(r.scope), l = t.account.properties || {}, m = l.UID || o.claims.oid || o.claims.sub || b.EMPTY_STRING, f = l.TenantId || o.claims.tid || b.EMPTY_STRING, [4, this.generatePopAccessToken(t, r)];
12582
+ return l = this.addTelemetryFromNativeResponse(t), p = t.scope ? Je.fromString(t.scope) : Je.fromString(r.scope), u = t.account.properties || {}, m = u.UID || o.claims.oid || o.claims.sub || b.EMPTY_STRING, f = u.TenantId || o.claims.tid || b.EMPTY_STRING, [4, this.generatePopAccessToken(t, r)];
12583
12583
  case 1:
12584
12584
  return k = F.sent(), E = r.tokenType === ke.POP ? ke.POP : ke.BEARER, P = {
12585
12585
  authority: a,
@@ -12590,7 +12590,7 @@ var Bn = (
12590
12590
  idToken: t.id_token,
12591
12591
  idTokenClaims: o.claims,
12592
12592
  accessToken: k,
12593
- fromCache: u ? this.isResponseFromCache(u) : !1,
12593
+ fromCache: l ? this.isResponseFromCache(l) : !1,
12594
12594
  expiresOn: new Date(Number(s + t.expires_in) * 1e3),
12595
12595
  tokenType: E,
12596
12596
  correlationId: this.correlationId,
@@ -12605,8 +12605,8 @@ var Bn = (
12605
12605
  this.browserStorage.setAccount(t), this.browserStorage.removeAccountContext(t).catch(function(o) {
12606
12606
  r.logger.error("Error occurred while removing account context from browser storage. " + o);
12607
12607
  });
12608
- }, e.prototype.cacheNativeTokens = function(t, r, o, i, a, s, u, p) {
12609
- var l = En.createIdTokenEntity(o, r.authority, t.id_token || b.EMPTY_STRING, r.clientId, a.claims.tid || b.EMPTY_STRING), m = r.tokenType === ke.POP ? b.SHR_NONCE_VALIDITY : (typeof t.expires_in == "string" ? parseInt(t.expires_in, 10) : t.expires_in) || 0, f = p + m, k = this.generateScopes(t, r), E = Tn.createAccessTokenEntity(o, r.authority, s, r.clientId, a ? a.claims.tid || b.EMPTY_STRING : u, k.printScopes(), f, 0, this.browserCrypto), P = new Xn(i, l, E);
12608
+ }, e.prototype.cacheNativeTokens = function(t, r, o, i, a, s, l, p) {
12609
+ var u = En.createIdTokenEntity(o, r.authority, t.id_token || b.EMPTY_STRING, r.clientId, a.claims.tid || b.EMPTY_STRING), m = r.tokenType === ke.POP ? b.SHR_NONCE_VALIDITY : (typeof t.expires_in == "string" ? parseInt(t.expires_in, 10) : t.expires_in) || 0, f = p + m, k = this.generateScopes(t, r), E = Tn.createAccessTokenEntity(o, r.authority, s, r.clientId, a ? a.claims.tid || b.EMPTY_STRING : l, k.printScopes(), f, 0, this.browserCrypto), P = new Xn(i, u, E);
12610
12610
  this.nativeStorageManager.saveCacheRecord(P);
12611
12611
  }, e.prototype.addTelemetryFromNativeResponse = function(t) {
12612
12612
  var r = this.getMATSFromResponse(t);
@@ -12643,7 +12643,7 @@ var Bn = (
12643
12643
  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;
12644
12644
  }, e.prototype.initializeNativeRequest = function(t) {
12645
12645
  return L(this, void 0, void 0, function() {
12646
- var r, o, i, a, s, u, p, l, m, f, k = this;
12646
+ var r, o, i, a, s, l, p, u, m, f, k = this;
12647
12647
  return z(this, function(E) {
12648
12648
  switch (E.label) {
12649
12649
  case 0:
@@ -12651,7 +12651,7 @@ var Bn = (
12651
12651
  case 1:
12652
12652
  E.sent(), E.label = 2;
12653
12653
  case 2:
12654
- return o = new he(r), o.validateAsUri(), i = t.scopes, a = Lo(t, ["scopes"]), s = new Je(i || []), s.appendScopes(or), u = function() {
12654
+ return o = new he(r), o.validateAsUri(), i = t.scopes, a = Lo(t, ["scopes"]), s = new Je(i || []), s.appendScopes(or), l = function() {
12655
12655
  switch (k.apiId) {
12656
12656
  case Ie.ssoSilent:
12657
12657
  case Ie.acquireTokenSilent_silentFlow:
@@ -12675,19 +12675,19 @@ var Bn = (
12675
12675
  authority: o.urlString,
12676
12676
  scope: s.printScopes(),
12677
12677
  redirectUri: this.getRedirectUri(t.redirectUri),
12678
- prompt: u(),
12678
+ prompt: l(),
12679
12679
  correlationId: this.correlationId,
12680
12680
  tokenType: t.authenticationScheme,
12681
12681
  windowTitleSubstring: document.title,
12682
12682
  extraParameters: J(J(J({}, t.extraQueryParameters), t.tokenQueryParameters), { telemetry: Kn.MATS_TELEMETRY }),
12683
12683
  extendedExpiryToken: !1
12684
12684
  // Make this configurable?
12685
- }), t.authenticationScheme !== ke.POP ? [3, 4] : (l = {
12685
+ }), t.authenticationScheme !== ke.POP ? [3, 4] : (u = {
12686
12686
  resourceRequestUri: t.resourceRequestUri,
12687
12687
  resourceRequestMethod: t.resourceRequestMethod,
12688
12688
  shrClaims: t.shrClaims,
12689
12689
  shrNonce: t.shrNonce
12690
- }, m = new Dn(this.browserCrypto), [4, m.generateCnf(l)]);
12690
+ }, m = new Dn(this.browserCrypto), [4, m.generateCnf(u)]);
12691
12691
  case 3:
12692
12692
  f = E.sent(), p.reqCnf = f.reqCnfString, p.keyId = f.kid, E.label = 4;
12693
12693
  case 4:
@@ -12824,13 +12824,13 @@ var gs = (
12824
12824
  /** @class */
12825
12825
  function(n) {
12826
12826
  $e(e, n);
12827
- function e(t, r, o, i, a, s, u, p, l, m) {
12828
- var f = n.call(this, t, r, o, i, a, s, u, l, m) || this;
12827
+ function e(t, r, o, i, a, s, l, p, u, m) {
12828
+ var f = n.call(this, t, r, o, i, a, s, l, u, m) || this;
12829
12829
  return f.nativeStorage = p, f;
12830
12830
  }
12831
12831
  return e.prototype.acquireToken = function(t) {
12832
12832
  return L(this, void 0, void 0, function() {
12833
- var r, o, i, a, s, u, p, l, m, f = this;
12833
+ var r, o, i, a, s, l, p, u, m, f = this;
12834
12834
  return z(this, function(k) {
12835
12835
  switch (k.label) {
12836
12836
  case 0:
@@ -12844,12 +12844,12 @@ var gs = (
12844
12844
  case 3:
12845
12845
  return a = k.sent(), this.performanceClient.setPreQueueTime(R.StandardInteractionClientCreateAuthCodeClient, t.correlationId), [4, this.createAuthCodeClient(o, r.authority, r.azureCloudOptions)];
12846
12846
  case 4:
12847
- return s = k.sent(), this.logger.verbose("Auth code client created"), u = new $o(s, this.browserStorage, a, this.logger, this.browserCrypto, this.performanceClient), [4, s.getAuthCodeUrl(J(J({}, r), { nativeBroker: In.isNativeAvailable(this.config, this.logger, this.nativeMessageHandler, t.authenticationScheme) }))];
12847
+ return s = k.sent(), this.logger.verbose("Auth code client created"), l = new $o(s, this.browserStorage, a, this.logger, this.browserCrypto, this.performanceClient), [4, s.getAuthCodeUrl(J(J({}, r), { nativeBroker: In.isNativeAvailable(this.config, this.logger, this.nativeMessageHandler, t.authenticationScheme) }))];
12848
12848
  case 5:
12849
- return p = k.sent(), l = this.getRedirectStartPage(t.redirectStartPage), this.logger.verbosePii("Redirect start page: " + l), window.addEventListener("pageshow", i), [4, u.initiateAuthRequest(p, {
12849
+ return p = k.sent(), u = this.getRedirectStartPage(t.redirectStartPage), this.logger.verbosePii("Redirect start page: " + u), window.addEventListener("pageshow", i), [4, l.initiateAuthRequest(p, {
12850
12850
  navigationClient: this.navigationClient,
12851
12851
  redirectTimeout: this.config.system.redirectNavigationTimeout,
12852
- redirectStartPage: l,
12852
+ redirectStartPage: u,
12853
12853
  onRedirectNavigate: t.onRedirectNavigate
12854
12854
  })];
12855
12855
  case 6:
@@ -12866,7 +12866,7 @@ var gs = (
12866
12866
  });
12867
12867
  }, e.prototype.handleRedirectPromise = function(t) {
12868
12868
  return L(this, void 0, void 0, function() {
12869
- var r, o, i, a, s, u, p, l, m, f, k, E;
12869
+ var r, o, i, a, s, l, p, u, m, f, k, E;
12870
12870
  return z(this, function(P) {
12871
12871
  switch (P.label) {
12872
12872
  case 0:
@@ -12882,9 +12882,9 @@ var gs = (
12882
12882
  } catch (F) {
12883
12883
  return this.logger.info("handleRedirectPromise was unable to extract state due to: " + F), this.browserStorage.cleanRequestByInteractionType(Y.Redirect), [2, null];
12884
12884
  }
12885
- return s = this.browserStorage.getTemporaryCache(me.ORIGIN_URI, !0) || b.EMPTY_STRING, u = he.removeHashFromUrl(s), p = he.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];
12885
+ return s = this.browserStorage.getTemporaryCache(me.ORIGIN_URI, !0) || b.EMPTY_STRING, l = he.removeHashFromUrl(s), p = he.removeHashFromUrl(window.location.href), l === p && this.config.auth.navigateToLoginRequestUrl ? (this.logger.verbose("Current page is loginRequestUrl, handling hash"), [4, this.handleHash(o, i, r)]) : [3, 3];
12886
12886
  case 2:
12887
- return l = P.sent(), s.indexOf("#") > -1 && Pe.replaceHash(s), [2, l];
12887
+ return u = P.sent(), s.indexOf("#") > -1 && Pe.replaceHash(s), [2, u];
12888
12888
  case 3:
12889
12889
  return this.config.auth.navigateToLoginRequestUrl ? [3, 4] : (this.logger.verbose("NavigateToLoginRequestUrl set to false, handling hash"), [2, this.handleHash(o, i, r)]);
12890
12890
  case 4:
@@ -12924,15 +12924,15 @@ var gs = (
12924
12924
  return this.browserStorage.removeItem(this.browserStorage.generateCacheKey(me.URL_HASH)), this.logger.verbose("Hash does not contain known properties, returning cached hash"), o;
12925
12925
  }, e.prototype.handleHash = function(t, r, o) {
12926
12926
  return L(this, void 0, void 0, function() {
12927
- var i, a, s, u, p, l, m, f = this;
12927
+ var i, a, s, l, p, u, m, f = this;
12928
12928
  return z(this, function(k) {
12929
12929
  switch (k.label) {
12930
12930
  case 0:
12931
12931
  if (i = this.browserStorage.getCachedRequest(r, this.browserCrypto), this.logger.verbose("handleHash called, retrieved cached request"), a = he.getDeserializedHash(t), a.accountId) {
12932
12932
  if (this.logger.verbose("Account id found in hash, calling WAM for token"), !this.nativeMessageHandler)
12933
12933
  throw K.createNativeConnectionNotEstablishedError();
12934
- return s = new Bn(this.config, this.browserStorage, this.browserCrypto, this.logger, this.eventHandler, this.navigationClient, Ie.acquireTokenPopup, this.performanceClient, this.nativeMessageHandler, a.accountId, this.nativeStorage, i.correlationId), u = tn.parseRequestState(this.browserCrypto, r).userRequestState, [2, s.acquireToken(J(J({}, i), {
12935
- state: u,
12934
+ return s = new Bn(this.config, this.browserStorage, this.browserCrypto, this.logger, this.eventHandler, this.navigationClient, Ie.acquireTokenPopup, this.performanceClient, this.nativeMessageHandler, a.accountId, this.nativeStorage, i.correlationId), l = tn.parseRequestState(this.browserCrypto, r).userRequestState, [2, s.acquireToken(J(J({}, i), {
12935
+ state: l,
12936
12936
  prompt: void 0
12937
12937
  // Server should handle the prompt, ideally native broker can do this part silently
12938
12938
  })).finally(function() {
@@ -12943,7 +12943,7 @@ var gs = (
12943
12943
  throw K.createNoCachedAuthorityError();
12944
12944
  return this.performanceClient.setPreQueueTime(R.StandardInteractionClientCreateAuthCodeClient, i.correlationId), [4, this.createAuthCodeClient(o, p)];
12945
12945
  case 1:
12946
- return l = k.sent(), this.logger.verbose("Auth code client created"), br.removeThrottle(this.browserStorage, this.config.auth.clientId, i), m = new $o(l, this.browserStorage, i, this.logger, this.browserCrypto, this.performanceClient), [4, m.handleCodeResponseFromHash(t, r, l.authority, this.networkClient)];
12946
+ return u = k.sent(), this.logger.verbose("Auth code client created"), br.removeThrottle(this.browserStorage, this.config.auth.clientId, i), m = new $o(u, this.browserStorage, i, this.logger, this.browserCrypto, this.performanceClient), [4, m.handleCodeResponseFromHash(t, r, u.authority, this.networkClient)];
12947
12947
  case 2:
12948
12948
  return [2, k.sent()];
12949
12949
  }
@@ -12951,41 +12951,41 @@ var gs = (
12951
12951
  });
12952
12952
  }, e.prototype.logout = function(t) {
12953
12953
  return L(this, void 0, void 0, function() {
12954
- var r, o, i, a, s, u, p;
12955
- return z(this, function(l) {
12956
- switch (l.label) {
12954
+ var r, o, i, a, s, l, p;
12955
+ return z(this, function(u) {
12956
+ switch (u.label) {
12957
12957
  case 0:
12958
- this.logger.verbose("logoutRedirect called"), r = this.initializeLogoutRequest(t), o = this.initializeServerTelemetryManager(Ie.logout), l.label = 1;
12958
+ this.logger.verbose("logoutRedirect called"), r = this.initializeLogoutRequest(t), o = this.initializeServerTelemetryManager(Ie.logout), u.label = 1;
12959
12959
  case 1:
12960
- return l.trys.push([1, 10, , 11]), this.eventHandler.emitEvent(oe.LOGOUT_START, Y.Redirect, t), [4, this.clearCacheOnLogout(r.account)];
12960
+ return u.trys.push([1, 10, , 11]), this.eventHandler.emitEvent(oe.LOGOUT_START, Y.Redirect, t), [4, this.clearCacheOnLogout(r.account)];
12961
12961
  case 2:
12962
- return l.sent(), i = {
12962
+ return u.sent(), i = {
12963
12963
  apiId: Ie.logout,
12964
12964
  timeout: this.config.system.redirectNavigationTimeout,
12965
12965
  noHistory: !1
12966
12966
  }, this.performanceClient.setPreQueueTime(R.StandardInteractionClientCreateAuthCodeClient, r.correlationId), [4, this.createAuthCodeClient(o, t && t.authority)];
12967
12967
  case 3:
12968
- return a = l.sent(), this.logger.verbose("Auth code client created"), s = a.getLogoutUri(r), this.eventHandler.emitEvent(oe.LOGOUT_SUCCESS, Y.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];
12968
+ return a = u.sent(), this.logger.verbose("Auth code client created"), s = a.getLogoutUri(r), this.eventHandler.emitEvent(oe.LOGOUT_SUCCESS, Y.Redirect, r), t && typeof t.onRedirectNavigate == "function" ? (l = t.onRedirectNavigate(s), l === !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];
12969
12969
  case 4:
12970
- return l.sent(), [
12970
+ return u.sent(), [
12971
12971
  2
12972
12972
  /*return*/
12973
12973
  ];
12974
12974
  case 5:
12975
- this.browserStorage.setInteractionInProgress(!1), this.logger.verbose("Logout onRedirectNavigate returned false, stopping navigation"), l.label = 6;
12975
+ this.browserStorage.setInteractionInProgress(!1), this.logger.verbose("Logout onRedirectNavigate returned false, stopping navigation"), u.label = 6;
12976
12976
  case 6:
12977
12977
  return [3, 9];
12978
12978
  case 7:
12979
12979
  return this.browserStorage.getInteractionInProgress() || this.browserStorage.setInteractionInProgress(!0), [4, this.navigationClient.navigateExternal(s, i)];
12980
12980
  case 8:
12981
- return l.sent(), [
12981
+ return u.sent(), [
12982
12982
  2
12983
12983
  /*return*/
12984
12984
  ];
12985
12985
  case 9:
12986
12986
  return [3, 11];
12987
12987
  case 10:
12988
- throw p = l.sent(), p instanceof X && p.setCorrelationId(this.correlationId), o.cacheFailedRequest(p), this.eventHandler.emitEvent(oe.LOGOUT_FAILURE, Y.Redirect, null, p), this.eventHandler.emitEvent(oe.LOGOUT_END, Y.Redirect), p;
12988
+ throw p = u.sent(), p instanceof X && p.setCorrelationId(this.correlationId), o.cacheFailedRequest(p), this.eventHandler.emitEvent(oe.LOGOUT_FAILURE, Y.Redirect, null, p), this.eventHandler.emitEvent(oe.LOGOUT_END, Y.Redirect), p;
12989
12989
  case 11:
12990
12990
  return this.eventHandler.emitEvent(oe.LOGOUT_END, Y.Redirect), [
12991
12991
  2
@@ -13005,8 +13005,8 @@ var _s = (
13005
13005
  /** @class */
13006
13006
  function(n) {
13007
13007
  $e(e, n);
13008
- function e(t, r, o, i, a, s, u, p, l, m) {
13009
- var f = n.call(this, t, r, o, i, a, s, u, l, m) || this;
13008
+ function e(t, r, o, i, a, s, l, p, u, m) {
13009
+ var f = n.call(this, t, r, o, i, a, s, l, u, m) || this;
13010
13010
  return f.unloadWindow = f.unloadWindow.bind(f), f.nativeStorage = p, f;
13011
13011
  }
13012
13012
  return e.prototype.acquireToken = function(t) {
@@ -13027,14 +13027,14 @@ var _s = (
13027
13027
  if (this.config.system.asyncPopups)
13028
13028
  return this.logger.verbose("asyncPopups set to true"), this.logoutPopupAsync(r, o, s, i, void 0, a);
13029
13029
  this.logger.verbose("asyncPopup set to false, opening popup");
13030
- var u = this.openSizedPopup("about:blank", o, s);
13031
- return this.logoutPopupAsync(r, o, s, i, u, a);
13030
+ var l = this.openSizedPopup("about:blank", o, s);
13031
+ return this.logoutPopupAsync(r, o, s, i, l, a);
13032
13032
  } catch (p) {
13033
13033
  return Promise.reject(p);
13034
13034
  }
13035
13035
  }, e.prototype.acquireTokenPopupAsync = function(t, r, o, i) {
13036
13036
  return L(this, void 0, void 0, function() {
13037
- var a, s, u, p, l, m, f, k, E, P, F, G, x, T, H, V, W, Z = this;
13037
+ var a, s, l, p, u, m, f, k, E, P, F, G, x, T, H, V, W, Z = this;
13038
13038
  return z(this, function(I) {
13039
13039
  switch (I.label) {
13040
13040
  case 0:
@@ -13044,17 +13044,17 @@ var _s = (
13044
13044
  case 2:
13045
13045
  return I.trys.push([2, 8, , 9]), this.performanceClient.setPreQueueTime(R.StandardInteractionClientInitializeAuthorizationCodeRequest, t.correlationId), [4, this.initializeAuthorizationCodeRequest(s)];
13046
13046
  case 3:
13047
- return u = I.sent(), this.performanceClient.setPreQueueTime(R.StandardInteractionClientCreateAuthCodeClient, t.correlationId), [4, this.createAuthCodeClient(a, s.authority, s.azureCloudOptions)];
13047
+ return l = I.sent(), this.performanceClient.setPreQueueTime(R.StandardInteractionClientCreateAuthCodeClient, t.correlationId), [4, this.createAuthCodeClient(a, s.authority, s.azureCloudOptions)];
13048
13048
  case 4:
13049
- return p = I.sent(), this.logger.verbose("Auth code client created"), l = In.isNativeAvailable(this.config, this.logger, this.nativeMessageHandler, t.authenticationScheme), m = void 0, l && (m = this.performanceClient.startMeasurement(R.FetchAccountIdWithNativeBroker, t.correlationId)), [4, p.getAuthCodeUrl(J(J({}, s), { nativeBroker: l }))];
13049
+ return p = I.sent(), this.logger.verbose("Auth code client created"), u = In.isNativeAvailable(this.config, this.logger, this.nativeMessageHandler, t.authenticationScheme), m = void 0, u && (m = this.performanceClient.startMeasurement(R.FetchAccountIdWithNativeBroker, t.correlationId)), [4, p.getAuthCodeUrl(J(J({}, s), { nativeBroker: u }))];
13050
13050
  case 5:
13051
- return f = I.sent(), k = new _o(p, this.browserStorage, u, this.logger, this.performanceClient), E = {
13051
+ return f = I.sent(), k = new _o(p, this.browserStorage, l, this.logger, this.performanceClient), E = {
13052
13052
  popup: i,
13053
13053
  popupName: r,
13054
13054
  popupWindowAttributes: o
13055
13055
  }, P = this.initiateAuthRequest(f, E), this.eventHandler.emitEvent(oe.POPUP_OPENED, Y.Popup, { popupWindow: P }, null), [4, this.monitorPopupForHash(P)];
13056
13056
  case 6:
13057
- if (F = I.sent(), G = he.getDeserializedHash(F), x = this.validateAndExtractStateFromHash(G, Y.Popup, s.correlationId), br.removeThrottle(this.browserStorage, this.config.auth.clientId, u), G.accountId) {
13057
+ if (F = I.sent(), G = he.getDeserializedHash(F), x = this.validateAndExtractStateFromHash(G, Y.Popup, s.correlationId), br.removeThrottle(this.browserStorage, this.config.auth.clientId, l), G.accountId) {
13058
13058
  if (this.logger.verbose("Account id found in hash, calling WAM for token"), m && m.endMeasurement({
13059
13059
  success: !0,
13060
13060
  isNativeBroker: !0
@@ -13083,17 +13083,17 @@ var _s = (
13083
13083
  });
13084
13084
  }, e.prototype.logoutPopupAsync = function(t, r, o, i, a, s) {
13085
13085
  return L(this, void 0, void 0, function() {
13086
- var u, p, l, m, f, k, E;
13086
+ var l, p, u, m, f, k, E;
13087
13087
  return z(this, function(P) {
13088
13088
  switch (P.label) {
13089
13089
  case 0:
13090
- this.logger.verbose("logoutPopupAsync called"), this.eventHandler.emitEvent(oe.LOGOUT_START, Y.Popup, t), u = this.initializeServerTelemetryManager(Ie.logoutPopup), P.label = 1;
13090
+ this.logger.verbose("logoutPopupAsync called"), this.eventHandler.emitEvent(oe.LOGOUT_START, Y.Popup, t), l = this.initializeServerTelemetryManager(Ie.logoutPopup), P.label = 1;
13091
13091
  case 1:
13092
13092
  return P.trys.push([1, 5, , 6]), [4, this.clearCacheOnLogout(t.account)];
13093
13093
  case 2:
13094
- return P.sent(), this.performanceClient.setPreQueueTime(R.StandardInteractionClientCreateAuthCodeClient, t.correlationId), [4, this.createAuthCodeClient(u, i)];
13094
+ return P.sent(), this.performanceClient.setPreQueueTime(R.StandardInteractionClientCreateAuthCodeClient, t.correlationId), [4, this.createAuthCodeClient(l, i)];
13095
13095
  case 3:
13096
- return p = P.sent(), this.logger.verbose("Auth code client created"), l = p.getLogoutUri(t), this.eventHandler.emitEvent(oe.LOGOUT_SUCCESS, Y.Popup, t), m = this.openPopup(l, { popupName: r, popupWindowAttributes: o, popup: a }), this.eventHandler.emitEvent(oe.POPUP_OPENED, Y.Popup, { popupWindow: m }, null), [4, this.waitForLogoutPopup(m)];
13096
+ return p = P.sent(), this.logger.verbose("Auth code client created"), u = p.getLogoutUri(t), this.eventHandler.emitEvent(oe.LOGOUT_SUCCESS, Y.Popup, t), m = this.openPopup(u, { popupName: r, popupWindowAttributes: o, popup: a }), this.eventHandler.emitEvent(oe.POPUP_OPENED, Y.Popup, { popupWindow: m }, null), [4, this.waitForLogoutPopup(m)];
13097
13097
  case 4:
13098
13098
  return P.sent(), s ? (f = {
13099
13099
  apiId: Ie.logoutPopup,
@@ -13101,7 +13101,7 @@ var _s = (
13101
13101
  noHistory: !1
13102
13102
  }, k = he.getAbsoluteUrl(s, Pe.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, f)) : this.logger.verbose("No main window navigation requested"), [3, 6];
13103
13103
  case 5:
13104
- throw E = P.sent(), a && a.close(), E instanceof X && E.setCorrelationId(this.correlationId), this.browserStorage.setInteractionInProgress(!1), this.eventHandler.emitEvent(oe.LOGOUT_FAILURE, Y.Popup, null, E), this.eventHandler.emitEvent(oe.LOGOUT_END, Y.Popup), u.cacheFailedRequest(E), E;
13104
+ throw E = P.sent(), a && a.close(), E instanceof X && E.setCorrelationId(this.correlationId), this.browserStorage.setInteractionInProgress(!1), this.eventHandler.emitEvent(oe.LOGOUT_FAILURE, Y.Popup, null, E), this.eventHandler.emitEvent(oe.LOGOUT_END, Y.Popup), l.cacheFailedRequest(E), E;
13105
13105
  case 6:
13106
13106
  return this.eventHandler.emitEvent(oe.LOGOUT_END, Y.Popup), [
13107
13107
  2
@@ -13119,17 +13119,17 @@ var _s = (
13119
13119
  return new Promise(function(o, i) {
13120
13120
  var a = r.config.system.windowHashTimeout / r.config.system.pollIntervalMilliseconds, s = 0;
13121
13121
  r.logger.verbose("PopupHandler.monitorPopupForHash - polling started");
13122
- var u = setInterval(function() {
13122
+ var l = setInterval(function() {
13123
13123
  if (t.closed) {
13124
- r.logger.error("PopupHandler.monitorPopupForHash - window closed"), r.cleanPopup(), clearInterval(u), i(K.createUserCancelledError());
13124
+ r.logger.error("PopupHandler.monitorPopupForHash - window closed"), r.cleanPopup(), clearInterval(l), i(K.createUserCancelledError());
13125
13125
  return;
13126
13126
  }
13127
- var p = b.EMPTY_STRING, l = b.EMPTY_STRING;
13127
+ var p = b.EMPTY_STRING, u = b.EMPTY_STRING;
13128
13128
  try {
13129
- p = t.location.href, l = t.location.hash;
13129
+ p = t.location.href, u = t.location.hash;
13130
13130
  } catch {
13131
13131
  }
13132
- Q.isEmpty(p) || p === "about:blank" || (r.logger.verbose("PopupHandler.monitorPopupForHash - popup window is on same origin as caller"), s++, l ? (r.logger.verbose("PopupHandler.monitorPopupForHash - found hash in url"), clearInterval(u), r.cleanPopup(t), he.hashContainsKnownProperties(l) ? (r.logger.verbose("PopupHandler.monitorPopupForHash - hash contains known properties, returning."), o(l)) : (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: " + l), i(K.createHashDoesNotContainKnownPropertiesError()))) : s > a && (r.logger.error("PopupHandler.monitorPopupForHash - unable to find hash in url, timing out"), clearInterval(u), i(K.createMonitorPopupTimeoutError())));
13132
+ Q.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(l), r.cleanPopup(t), he.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(K.createHashDoesNotContainKnownPropertiesError()))) : s > a && (r.logger.error("PopupHandler.monitorPopupForHash - unable to find hash in url, timing out"), clearInterval(l), i(K.createMonitorPopupTimeoutError())));
13133
13133
  }, r.config.system.pollIntervalMilliseconds);
13134
13134
  });
13135
13135
  }, e.prototype.waitForLogoutPopup = function(t) {
@@ -13156,8 +13156,8 @@ var _s = (
13156
13156
  throw this.logger.error("error opening popup " + i.message), this.browserStorage.setInteractionInProgress(!1), K.createPopupWindowError(i.toString());
13157
13157
  }
13158
13158
  }, e.prototype.openSizedPopup = function(t, r, o) {
13159
- var i, a, s, u, p = window.screenLeft ? window.screenLeft : window.screenX, l = window.screenTop ? window.screenTop : window.screenY, m = window.innerWidth || document.documentElement.clientWidth || document.body.clientWidth, f = 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, P = (s = o.popupPosition) === null || s === void 0 ? void 0 : s.top, F = (u = o.popupPosition) === null || u === void 0 ? void 0 : u.left;
13160
- return (!k || k < 0 || k > m) && (this.logger.verbose("Default popup window width used. Window width not configured or invalid."), k = Pt.POPUP_WIDTH), (!E || E < 0 || E > f) && (this.logger.verbose("Default popup window height used. Window height not configured or invalid."), E = Pt.POPUP_HEIGHT), (!P || P < 0 || P > f) && (this.logger.verbose("Default popup window top position used. Window top not configured or invalid."), P = Math.max(0, f / 2 - Pt.POPUP_HEIGHT / 2 + l)), (!F || F < 0 || F > m) && (this.logger.verbose("Default popup window left position used. Window left not configured or invalid."), F = Math.max(0, m / 2 - Pt.POPUP_WIDTH / 2 + p)), window.open(t, r, "width=" + k + ", height=" + E + ", top=" + P + ", left=" + F + ", scrollbars=yes");
13159
+ var i, a, s, l, p = window.screenLeft ? window.screenLeft : window.screenX, u = window.screenTop ? window.screenTop : window.screenY, m = window.innerWidth || document.documentElement.clientWidth || document.body.clientWidth, f = 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, P = (s = o.popupPosition) === null || s === void 0 ? void 0 : s.top, F = (l = o.popupPosition) === null || l === void 0 ? void 0 : l.left;
13160
+ return (!k || k < 0 || k > m) && (this.logger.verbose("Default popup window width used. Window width not configured or invalid."), k = Pt.POPUP_WIDTH), (!E || E < 0 || E > f) && (this.logger.verbose("Default popup window height used. Window height not configured or invalid."), E = Pt.POPUP_HEIGHT), (!P || P < 0 || P > f) && (this.logger.verbose("Default popup window top position used. Window top not configured or invalid."), P = Math.max(0, f / 2 - Pt.POPUP_HEIGHT / 2 + u)), (!F || F < 0 || F > m) && (this.logger.verbose("Default popup window left position used. Window left not configured or invalid."), F = Math.max(0, m / 2 - Pt.POPUP_WIDTH / 2 + p)), window.open(t, r, "width=" + k + ", height=" + E + ", top=" + P + ", left=" + F + ", scrollbars=yes");
13161
13161
  }, e.prototype.unloadWindow = function(t) {
13162
13162
  this.browserStorage.cleanRequestByInteractionType(Y.Popup), this.currentWindow && this.currentWindow.close(), t.preventDefault();
13163
13163
  }, e.prototype.cleanPopup = function(t) {
@@ -13216,14 +13216,14 @@ function ks(n, e) {
13216
13216
  // 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
13217
13217
  cacheMigrationEnabled: !!(r && r.cacheLocation === xe.LocalStorage),
13218
13218
  claimsBasedCachingEnabled: !0
13219
- }, u = {
13219
+ }, l = {
13220
13220
  // eslint-disable-next-line @typescript-eslint/no-empty-function
13221
13221
  loggerCallback: function() {
13222
13222
  },
13223
13223
  logLevel: Fe.Info,
13224
13224
  piiLoggingEnabled: !1
13225
13225
  }, p = J(J({}, bi), {
13226
- loggerOptions: u,
13226
+ loggerOptions: l,
13227
13227
  networkClient: e ? Pe.getBrowserNetworkClient() : ss,
13228
13228
  navigationClient: new vs(),
13229
13229
  loadFrameTimeout: 0,
@@ -13241,7 +13241,7 @@ function ks(n, e) {
13241
13241
  useMsrCrypto: !1,
13242
13242
  entropy: void 0
13243
13243
  }
13244
- }), l = J(J({}, o), { loggerOptions: (o == null ? void 0 : o.loggerOptions) || u }), m = {
13244
+ }), u = J(J({}, o), { loggerOptions: (o == null ? void 0 : o.loggerOptions) || l }), m = {
13245
13245
  application: {
13246
13246
  appName: b.EMPTY_STRING,
13247
13247
  appVersion: b.EMPTY_STRING
@@ -13249,7 +13249,7 @@ function ks(n, e) {
13249
13249
  }, f = {
13250
13250
  auth: J(J({}, a), t),
13251
13251
  cache: J(J({}, s), r),
13252
- system: J(J({}, p), l),
13252
+ system: J(J({}, p), u),
13253
13253
  telemetry: J(J({}, m), i)
13254
13254
  };
13255
13255
  return f;
@@ -13260,8 +13260,8 @@ var Ai = (
13260
13260
  function(n) {
13261
13261
  $e(e, n);
13262
13262
  function e(t, r, o, i, a, s) {
13263
- var u = n.call(this, t, r, o, i, s) || this;
13264
- return u.navigateFrameWait = a.navigateFrameWait, u.pollIntervalMilliseconds = a.pollIntervalMilliseconds, u;
13263
+ var l = n.call(this, t, r, o, i, s) || this;
13264
+ return l.navigateFrameWait = a.navigateFrameWait, l.pollIntervalMilliseconds = a.pollIntervalMilliseconds, l;
13265
13265
  }
13266
13266
  return e.prototype.initiateAuthRequest = function(t) {
13267
13267
  return L(this, void 0, void 0, function() {
@@ -13282,17 +13282,17 @@ var Ai = (
13282
13282
  var o = this;
13283
13283
  return this.performanceClient.addQueueMeasurement(R.SilentHandlerMonitorIframeForHash, this.authCodeRequest.correlationId), new Promise(function(i, a) {
13284
13284
  r < oo && o.logger.warning("system.loadFrameTimeout or system.iframeHashTimeout set to lower (" + r + "ms) than the default (" + oo + "ms). This may result in timeouts.");
13285
- var s = window.performance.now(), u = s + r, p = setInterval(function() {
13286
- if (window.performance.now() > u) {
13285
+ var s = window.performance.now(), l = s + r, p = setInterval(function() {
13286
+ if (window.performance.now() > l) {
13287
13287
  o.removeHiddenIframe(t), clearInterval(p), a(K.createMonitorIframeTimeoutError());
13288
13288
  return;
13289
13289
  }
13290
- var l = b.EMPTY_STRING, m = t.contentWindow;
13290
+ var u = b.EMPTY_STRING, m = t.contentWindow;
13291
13291
  try {
13292
- l = m ? m.location.href : b.EMPTY_STRING;
13292
+ u = m ? m.location.href : b.EMPTY_STRING;
13293
13293
  } catch {
13294
13294
  }
13295
- if (!Q.isEmpty(l)) {
13295
+ if (!Q.isEmpty(u)) {
13296
13296
  var f = m ? m.location.hash : b.EMPTY_STRING;
13297
13297
  if (he.hashContainsKnownProperties(f)) {
13298
13298
  o.removeHiddenIframe(t), clearInterval(p), i(f);
@@ -13329,15 +13329,15 @@ var Cs = (
13329
13329
  /** @class */
13330
13330
  function(n) {
13331
13331
  $e(e, n);
13332
- function e(t, r, o, i, a, s, u, p, l, m, f) {
13332
+ function e(t, r, o, i, a, s, l, p, u, m, f) {
13333
13333
  var k = n.call(this, t, r, o, i, a, s, p, m, f) || this;
13334
- return k.apiId = u, k.nativeStorage = l, k;
13334
+ return k.apiId = l, k.nativeStorage = u, k;
13335
13335
  }
13336
13336
  return e.prototype.acquireToken = function(t) {
13337
13337
  return L(this, void 0, void 0, function() {
13338
13338
  var r, o, i, a, s;
13339
- return z(this, function(u) {
13340
- switch (u.label) {
13339
+ return z(this, function(l) {
13340
+ switch (l.label) {
13341
13341
  case 0:
13342
13342
  if (this.performanceClient.addQueueMeasurement(R.SilentIframeClientAcquireToken, t.correlationId), this.logger.verbose("acquireTokenByIframe called"), r = this.performanceClient.startMeasurement(R.SilentIframeClientAcquireToken, t.correlationId), Q.isEmpty(t.loginHint) && Q.isEmpty(t.sid) && (!t.account || Q.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 !== Ze.NONE && t.prompt !== Ze.NO_SESSION)
13343
13343
  throw r.endMeasurement({
@@ -13345,11 +13345,11 @@ var Cs = (
13345
13345
  }), K.createSilentPromptValueError(t.prompt);
13346
13346
  return this.performanceClient.setPreQueueTime(R.StandardInteractionClientInitializeAuthorizationRequest, t.correlationId), [4, this.initializeAuthorizationRequest(J(J({}, t), { prompt: t.prompt || Ze.NONE }), Y.Silent)];
13347
13347
  case 1:
13348
- o = u.sent(), this.browserStorage.updateCacheEntries(o.state, o.nonce, o.authority, o.loginHint || b.EMPTY_STRING, o.account || null), i = this.initializeServerTelemetryManager(this.apiId), u.label = 2;
13348
+ o = l.sent(), this.browserStorage.updateCacheEntries(o.state, o.nonce, o.authority, o.loginHint || b.EMPTY_STRING, o.account || null), i = this.initializeServerTelemetryManager(this.apiId), l.label = 2;
13349
13349
  case 2:
13350
- return u.trys.push([2, 5, , 6]), this.performanceClient.setPreQueueTime(R.StandardInteractionClientCreateAuthCodeClient, t.correlationId), [4, this.createAuthCodeClient(i, o.authority, o.azureCloudOptions)];
13350
+ return l.trys.push([2, 5, , 6]), this.performanceClient.setPreQueueTime(R.StandardInteractionClientCreateAuthCodeClient, t.correlationId), [4, this.createAuthCodeClient(i, o.authority, o.azureCloudOptions)];
13351
13351
  case 3:
13352
- return a = u.sent(), this.logger.verbose("Auth code client created"), this.performanceClient.setPreQueueTime(R.SilentIframeClientTokenHelper, t.correlationId), [4, this.silentTokenHelper(a, o).then(function(p) {
13352
+ return a = l.sent(), this.logger.verbose("Auth code client created"), this.performanceClient.setPreQueueTime(R.SilentIframeClientTokenHelper, t.correlationId), [4, this.silentTokenHelper(a, o).then(function(p) {
13353
13353
  return r.endMeasurement({
13354
13354
  success: !0,
13355
13355
  fromCache: !1,
@@ -13357,9 +13357,9 @@ var Cs = (
13357
13357
  }), p;
13358
13358
  })];
13359
13359
  case 4:
13360
- return [2, u.sent()];
13360
+ return [2, l.sent()];
13361
13361
  case 5:
13362
- throw s = u.sent(), s instanceof X && s.setCorrelationId(this.correlationId), i.cacheFailedRequest(s), this.browserStorage.cleanRequestByState(o.state), r.endMeasurement({
13362
+ throw s = l.sent(), s instanceof X && s.setCorrelationId(this.correlationId), i.cacheFailedRequest(s), this.browserStorage.cleanRequestByState(o.state), r.endMeasurement({
13363
13363
  errorCode: s instanceof X && s.errorCode || void 0,
13364
13364
  subErrorCode: s instanceof X && s.subError || void 0,
13365
13365
  success: !1
@@ -13376,7 +13376,7 @@ var Cs = (
13376
13376
  return Promise.reject(K.createSilentLogoutUnsupportedError());
13377
13377
  }, e.prototype.silentTokenHelper = function(t, r) {
13378
13378
  return L(this, void 0, void 0, function() {
13379
- var o, i, a, s, u, p, l, m, f, k = this;
13379
+ var o, i, a, s, l, p, u, m, f, k = this;
13380
13380
  return z(this, function(E) {
13381
13381
  switch (E.label) {
13382
13382
  case 0:
@@ -13388,14 +13388,14 @@ var Cs = (
13388
13388
  case 3:
13389
13389
  return s = E.sent(), this.performanceClient.setPreQueueTime(R.SilentHandlerMonitorIframeForHash, r.correlationId), [4, a.monitorIframeForHash(s, this.config.system.iframeHashTimeout)];
13390
13390
  case 4:
13391
- if (u = E.sent(), p = he.getDeserializedHash(u), l = this.validateAndExtractStateFromHash(p, Y.Silent, o.correlationId), p.accountId) {
13391
+ if (l = E.sent(), p = he.getDeserializedHash(l), u = this.validateAndExtractStateFromHash(p, Y.Silent, o.correlationId), p.accountId) {
13392
13392
  if (this.logger.verbose("Account id found in hash, calling WAM for token"), !this.nativeMessageHandler)
13393
13393
  throw K.createNativeConnectionNotEstablishedError();
13394
- return m = new Bn(this.config, this.browserStorage, this.browserCrypto, this.logger, this.eventHandler, this.navigationClient, this.apiId, this.performanceClient, this.nativeMessageHandler, p.accountId, this.browserStorage, this.correlationId), f = tn.parseRequestState(this.browserCrypto, l).userRequestState, [2, m.acquireToken(J(J({}, r), { state: f, prompt: r.prompt || Ze.NONE })).finally(function() {
13395
- k.browserStorage.cleanRequestByState(l);
13394
+ return m = new Bn(this.config, this.browserStorage, this.browserCrypto, this.logger, this.eventHandler, this.navigationClient, this.apiId, this.performanceClient, this.nativeMessageHandler, p.accountId, this.browserStorage, this.correlationId), f = tn.parseRequestState(this.browserCrypto, u).userRequestState, [2, m.acquireToken(J(J({}, r), { state: f, prompt: r.prompt || Ze.NONE })).finally(function() {
13395
+ k.browserStorage.cleanRequestByState(u);
13396
13396
  })];
13397
13397
  }
13398
- return this.performanceClient.setPreQueueTime(R.HandleCodeResponseFromHash, r.correlationId), [2, a.handleCodeResponseFromHash(u, l, t.authority, this.networkClient)];
13398
+ return this.performanceClient.setPreQueueTime(R.HandleCodeResponseFromHash, r.correlationId), [2, a.handleCodeResponseFromHash(l, u, t.authority, this.networkClient)];
13399
13399
  }
13400
13400
  });
13401
13401
  });
@@ -13412,7 +13412,7 @@ var Es = (
13412
13412
  }
13413
13413
  return e.prototype.acquireToken = function(t) {
13414
13414
  return L(this, void 0, void 0, function() {
13415
- var r, o, i, a, s, u = this;
13415
+ var r, o, i, a, s, l = this;
13416
13416
  return z(this, function(p) {
13417
13417
  switch (p.label) {
13418
13418
  case 0:
@@ -13420,18 +13420,18 @@ var Es = (
13420
13420
  case 1:
13421
13421
  return r = J.apply(void 0, o.concat([p.sent()])), i = this.performanceClient.startMeasurement(R.SilentRefreshClientAcquireToken, r.correlationId), a = this.initializeServerTelemetryManager(Ie.acquireTokenSilent_silentFlow), [4, this.createRefreshTokenClient(a, r.authority, r.azureCloudOptions)];
13422
13422
  case 2:
13423
- return s = p.sent(), this.logger.verbose("Refresh token client created"), this.performanceClient.setPreQueueTime(R.RefreshTokenClientAcquireTokenByRefreshToken, t.correlationId), [2, s.acquireTokenByRefreshToken(r).then(function(l) {
13423
+ return s = p.sent(), this.logger.verbose("Refresh token client created"), this.performanceClient.setPreQueueTime(R.RefreshTokenClientAcquireTokenByRefreshToken, t.correlationId), [2, s.acquireTokenByRefreshToken(r).then(function(u) {
13424
13424
  return i.endMeasurement({
13425
13425
  success: !0,
13426
- fromCache: l.fromCache,
13427
- requestId: l.requestId
13428
- }), l;
13429
- }).catch(function(l) {
13430
- throw l instanceof X && l.setCorrelationId(u.correlationId), a.cacheFailedRequest(l), i.endMeasurement({
13431
- errorCode: l.errorCode,
13432
- subErrorCode: l.subError,
13426
+ fromCache: u.fromCache,
13427
+ requestId: u.requestId
13428
+ }), u;
13429
+ }).catch(function(u) {
13430
+ throw u instanceof X && u.setCorrelationId(l.correlationId), a.cacheFailedRequest(u), i.endMeasurement({
13431
+ errorCode: u.errorCode,
13432
+ subErrorCode: u.subError,
13433
13433
  success: !1
13434
- }), l;
13434
+ }), u;
13435
13435
  })];
13436
13436
  }
13437
13437
  });
@@ -13482,8 +13482,8 @@ var Ts = (
13482
13482
  error: o || null,
13483
13483
  timestamp: Date.now()
13484
13484
  };
13485
- this.logger.info("Emitting event: " + e), this.eventCallbacks.forEach(function(s, u) {
13486
- i.logger.verbose("Emitting event to callback " + u + ": " + e), s.apply(null, [a]);
13485
+ this.logger.info("Emitting event: " + e), this.eventCallbacks.forEach(function(s, l) {
13486
+ i.logger.verbose("Emitting event to callback " + l + ": " + e), s.apply(null, [a]);
13487
13487
  });
13488
13488
  }
13489
13489
  }, n.prototype.handleAccountCacheChange = function(e) {
@@ -13546,8 +13546,8 @@ var nn = (
13546
13546
  return n.stringToUtf8Arr = function(e) {
13547
13547
  for (var t, r = 0, o = e.length, i = 0; i < o; i++)
13548
13548
  t = e.charCodeAt(i), r += t < 128 ? 1 : t < 2048 ? 2 : t < 65536 ? 3 : t < 2097152 ? 4 : t < 67108864 ? 5 : 6;
13549
- for (var a = new Uint8Array(r), s = 0, u = 0; s < r; u++)
13550
- 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));
13549
+ for (var a = new Uint8Array(r), s = 0, l = 0; s < r; l++)
13550
+ t = e.charCodeAt(l), 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));
13551
13551
  return a;
13552
13552
  }, n.stringToArrayBuffer = function(e) {
13553
13553
  for (var t = new ArrayBuffer(e.length), r = new Uint8Array(t), o = 0; o < e.length; o++)
@@ -13627,10 +13627,10 @@ var Ss = (
13627
13627
  var r = this.base64DecToArr(t);
13628
13628
  return nn.utf8ArrToString(r);
13629
13629
  }, n.prototype.base64DecToArr = function(e, t) {
13630
- for (var r = e.replace(/[^A-Za-z0-9\+\/]/g, b.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, l = 0, m = 0; m < o; m++)
13631
- if (u = m & 3, p |= this.b64ToUint6(r.charCodeAt(m)) << 18 - 6 * u, u === 3 || o - m === 1) {
13632
- for (s = 0; s < 3 && l < i; s++, l++)
13633
- a[l] = p >>> (16 >>> s & 24) & 255;
13630
+ for (var r = e.replace(/[^A-Za-z0-9\+\/]/g, b.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, l = void 0, p = 0, u = 0, m = 0; m < o; m++)
13631
+ if (l = m & 3, p |= this.b64ToUint6(r.charCodeAt(m)) << 18 - 6 * l, l === 3 || o - m === 1) {
13632
+ for (s = 0; s < 3 && u < i; s++, u++)
13633
+ a[u] = p >>> (16 >>> s & 24) & 255;
13634
13634
  p = 0;
13635
13635
  }
13636
13636
  return a;
@@ -13789,10 +13789,10 @@ var Ms = (
13789
13789
  return z(this, function(o) {
13790
13790
  return [2, new Promise(function(i, a) {
13791
13791
  var s = window.msCrypto.subtle.generateKey(e, t, r);
13792
- s.addEventListener("complete", function(u) {
13793
- i(u.target.result);
13794
- }), s.addEventListener("error", function(u) {
13795
- a(u);
13792
+ s.addEventListener("complete", function(l) {
13793
+ i(l.target.result);
13794
+ }), s.addEventListener("error", function(l) {
13795
+ a(l);
13796
13796
  });
13797
13797
  })];
13798
13798
  });
@@ -13803,9 +13803,9 @@ var Ms = (
13803
13803
  return [2, new Promise(function(r, o) {
13804
13804
  var i = window.msCrypto.subtle.exportKey(jn, e);
13805
13805
  i.addEventListener("complete", function(a) {
13806
- var s = a.target.result, u = nn.utf8ArrToString(new Uint8Array(s)).replace(/\r/g, b.EMPTY_STRING).replace(/\n/g, b.EMPTY_STRING).replace(/\t/g, b.EMPTY_STRING).split(" ").join(b.EMPTY_STRING).replace("\0", b.EMPTY_STRING);
13806
+ var s = a.target.result, l = nn.utf8ArrToString(new Uint8Array(s)).replace(/\r/g, b.EMPTY_STRING).replace(/\n/g, b.EMPTY_STRING).replace(/\t/g, b.EMPTY_STRING).split(" ").join(b.EMPTY_STRING).replace("\0", b.EMPTY_STRING);
13807
13807
  try {
13808
- r(JSON.parse(u));
13808
+ r(JSON.parse(l));
13809
13809
  } catch (p) {
13810
13810
  o(p);
13811
13811
  }
@@ -13819,11 +13819,11 @@ var Ms = (
13819
13819
  return L(this, void 0, void 0, function() {
13820
13820
  var i, a;
13821
13821
  return z(this, function(s) {
13822
- return i = nn.getSortedObjectString(e), a = nn.stringToArrayBuffer(i), [2, new Promise(function(u, p) {
13823
- var l = window.msCrypto.subtle.importKey(jn, a, t, r, o);
13824
- l.addEventListener("complete", function(m) {
13825
- u(m.target.result);
13826
- }), l.addEventListener("error", function(m) {
13822
+ return i = nn.getSortedObjectString(e), a = nn.stringToArrayBuffer(i), [2, new Promise(function(l, p) {
13823
+ var u = window.msCrypto.subtle.importKey(jn, a, t, r, o);
13824
+ u.addEventListener("complete", function(m) {
13825
+ l(m.target.result);
13826
+ }), u.addEventListener("error", function(m) {
13827
13827
  p(m);
13828
13828
  });
13829
13829
  })];
@@ -13834,10 +13834,10 @@ var Ms = (
13834
13834
  return z(this, function(o) {
13835
13835
  return [2, new Promise(function(i, a) {
13836
13836
  var s = window.msCrypto.subtle.sign(e, t, r);
13837
- s.addEventListener("complete", function(u) {
13838
- i(u.target.result);
13839
- }), s.addEventListener("error", function(u) {
13840
- a(u);
13837
+ s.addEventListener("complete", function(l) {
13838
+ i(l.target.result);
13839
+ }), s.addEventListener("error", function(l) {
13840
+ a(l);
13841
13841
  });
13842
13842
  })];
13843
13843
  });
@@ -13981,11 +13981,11 @@ var zs = (
13981
13981
  return r.sent(), [2, new Promise(function(o, i) {
13982
13982
  if (!t.db)
13983
13983
  return i(K.createDatabaseNotOpenError());
13984
- var a = t.db.transaction([t.tableName], "readonly"), s = a.objectStore(t.tableName), u = s.get(e);
13985
- u.addEventListener("success", function(p) {
13986
- var l = p;
13987
- t.closeConnection(), o(l.target.result);
13988
- }), u.addEventListener("error", function(p) {
13984
+ var a = t.db.transaction([t.tableName], "readonly"), s = a.objectStore(t.tableName), l = s.get(e);
13985
+ l.addEventListener("success", function(p) {
13986
+ var u = p;
13987
+ t.closeConnection(), o(u.target.result);
13988
+ }), l.addEventListener("error", function(p) {
13989
13989
  t.closeConnection(), i(p);
13990
13990
  });
13991
13991
  })];
@@ -14003,11 +14003,11 @@ var zs = (
14003
14003
  return o.sent(), [2, new Promise(function(i, a) {
14004
14004
  if (!r.db)
14005
14005
  return a(K.createDatabaseNotOpenError());
14006
- var s = r.db.transaction([r.tableName], "readwrite"), u = s.objectStore(r.tableName), p = u.put(t, e);
14006
+ var s = r.db.transaction([r.tableName], "readwrite"), l = s.objectStore(r.tableName), p = l.put(t, e);
14007
14007
  p.addEventListener("success", function() {
14008
14008
  r.closeConnection(), i();
14009
- }), p.addEventListener("error", function(l) {
14010
- r.closeConnection(), a(l);
14009
+ }), p.addEventListener("error", function(u) {
14010
+ r.closeConnection(), a(u);
14011
14011
  });
14012
14012
  })];
14013
14013
  }
@@ -14024,10 +14024,10 @@ var zs = (
14024
14024
  return r.sent(), [2, new Promise(function(o, i) {
14025
14025
  if (!t.db)
14026
14026
  return i(K.createDatabaseNotOpenError());
14027
- var a = t.db.transaction([t.tableName], "readwrite"), s = a.objectStore(t.tableName), u = s.delete(e);
14028
- u.addEventListener("success", function() {
14027
+ var a = t.db.transaction([t.tableName], "readwrite"), s = a.objectStore(t.tableName), l = s.delete(e);
14028
+ l.addEventListener("success", function() {
14029
14029
  t.closeConnection(), o();
14030
- }), u.addEventListener("error", function(p) {
14030
+ }), l.addEventListener("error", function(p) {
14031
14031
  t.closeConnection(), i(p);
14032
14032
  });
14033
14033
  })];
@@ -14046,11 +14046,11 @@ var zs = (
14046
14046
  if (!e.db)
14047
14047
  return o(K.createDatabaseNotOpenError());
14048
14048
  var i = e.db.transaction([e.tableName], "readonly"), a = i.objectStore(e.tableName), s = a.getAllKeys();
14049
- s.addEventListener("success", function(u) {
14050
- var p = u;
14049
+ s.addEventListener("success", function(l) {
14050
+ var p = l;
14051
14051
  e.closeConnection(), r(p.target.result);
14052
- }), s.addEventListener("error", function(u) {
14053
- e.closeConnection(), o(u);
14052
+ }), s.addEventListener("error", function(l) {
14053
+ e.closeConnection(), o(l);
14054
14054
  });
14055
14055
  })];
14056
14056
  }
@@ -14067,11 +14067,11 @@ var zs = (
14067
14067
  return r.sent(), [2, new Promise(function(o, i) {
14068
14068
  if (!t.db)
14069
14069
  return i(K.createDatabaseNotOpenError());
14070
- var a = t.db.transaction([t.tableName], "readonly"), s = a.objectStore(t.tableName), u = s.count(e);
14071
- u.addEventListener("success", function(p) {
14072
- var l = p;
14073
- t.closeConnection(), o(l.target.result === 1);
14074
- }), u.addEventListener("error", function(p) {
14070
+ var a = t.db.transaction([t.tableName], "readonly"), s = a.objectStore(t.tableName), l = s.count(e);
14071
+ l.addEventListener("success", function(p) {
14072
+ var u = p;
14073
+ t.closeConnection(), o(u.target.result === 1);
14074
+ }), l.addEventListener("error", function(p) {
14075
14075
  t.closeConnection(), i(p);
14076
14076
  });
14077
14077
  })];
@@ -14288,7 +14288,7 @@ var Us = (
14288
14288
  }, n.prototype.getPublicKeyThumbprint = function(e) {
14289
14289
  var t;
14290
14290
  return L(this, void 0, void 0, function() {
14291
- var r, o, i, a, s, u, p, l;
14291
+ var r, o, i, a, s, l, p, u;
14292
14292
  return z(this, function(m) {
14293
14293
  switch (m.label) {
14294
14294
  case 0:
@@ -14302,12 +14302,12 @@ var Us = (
14302
14302
  n: i.n
14303
14303
  }, s = nn.getSortedObjectString(a), [4, this.hashString(s)];
14304
14304
  case 3:
14305
- return u = m.sent(), [4, this.browserCrypto.exportJwk(o.privateKey)];
14305
+ return l = m.sent(), [4, this.browserCrypto.exportJwk(o.privateKey)];
14306
14306
  case 4:
14307
14307
  return p = m.sent(), [4, this.browserCrypto.importJwk(p, !1, ["sign"])];
14308
14308
  case 5:
14309
- return l = m.sent(), [4, this.cache.asymmetricKeys.setItem(u, {
14310
- privateKey: l,
14309
+ return u = m.sent(), [4, this.cache.asymmetricKeys.setItem(l, {
14310
+ privateKey: u,
14311
14311
  publicKey: o.publicKey,
14312
14312
  requestMethod: e.resourceRequestMethod,
14313
14313
  requestUri: e.resourceRequestUri
@@ -14315,7 +14315,7 @@ var Us = (
14315
14315
  case 6:
14316
14316
  return m.sent(), r && r.endMeasurement({
14317
14317
  success: !0
14318
- }), [2, u];
14318
+ }), [2, l];
14319
14319
  }
14320
14320
  });
14321
14321
  });
@@ -14347,7 +14347,7 @@ var Us = (
14347
14347
  }, n.prototype.signJwt = function(e, t, r) {
14348
14348
  var o;
14349
14349
  return L(this, void 0, void 0, function() {
14350
- var i, a, s, u, p, l, m, f, k, E, P, F, G;
14350
+ var i, a, s, l, p, u, m, f, k, E, P, F, G;
14351
14351
  return z(this, function(x) {
14352
14352
  switch (x.label) {
14353
14353
  case 0:
@@ -14357,8 +14357,8 @@ var Us = (
14357
14357
  throw K.createSigningKeyNotFoundInStorageError(t);
14358
14358
  return [4, this.browserCrypto.exportJwk(a.publicKey)];
14359
14359
  case 2:
14360
- return s = x.sent(), u = nn.getSortedObjectString(s), p = this.b64Encode.urlEncode(JSON.stringify({ kid: t })), l = cs.getShrHeaderString({ kid: p, alg: s.alg }), m = this.b64Encode.urlEncode(l), e.cnf = {
14361
- jwk: JSON.parse(u)
14360
+ return s = x.sent(), l = nn.getSortedObjectString(s), p = this.b64Encode.urlEncode(JSON.stringify({ kid: t })), u = cs.getShrHeaderString({ kid: p, alg: s.alg }), m = this.b64Encode.urlEncode(u), e.cnf = {
14361
+ jwk: JSON.parse(l)
14362
14362
  }, f = this.b64Encode.urlEncode(JSON.stringify(e)), k = m + "." + f, E = nn.stringToArrayBuffer(k), [4, this.browserCrypto.sign(a.privateKey, E)];
14363
14363
  case 3:
14364
14364
  return P = x.sent(), F = this.b64Encode.urlEncodeArr(new Uint8Array(P)), G = k + "." + F, i && i.endMeasurement({
@@ -14437,9 +14437,9 @@ var Bs = (
14437
14437
  /** @class */
14438
14438
  function(n) {
14439
14439
  $e(e, n);
14440
- function e(t, r, o, i, a, s, u) {
14440
+ function e(t, r, o, i, a, s, l) {
14441
14441
  var p = n.call(this, t, r, o, i, a, s) || this;
14442
- return p.browserCrypto = new Mi(p.logger, u), p.guidGenerator = new Ri(p.browserCrypto), p;
14442
+ return p.browserCrypto = new Mi(p.logger, l), p.guidGenerator = new Ri(p.browserCrypto), p;
14443
14443
  }
14444
14444
  return e.prototype.startPerformanceMeasuremeant = function(t, r) {
14445
14445
  return new Jo(t, r);
@@ -14458,8 +14458,8 @@ var Bs = (
14458
14458
  }, e.prototype.startMeasurement = function(t, r) {
14459
14459
  var o = this, i = this.getPageVisibility(), a = n.prototype.startMeasurement.call(this, t, r);
14460
14460
  return J(J({}, a), { endMeasurement: function(s) {
14461
- var u = a.endMeasurement(J({ startPageVisibility: i, endPageVisibility: o.getPageVisibility() }, s));
14462
- return o.deleteIncompleteSubMeasurements(a), u;
14461
+ var l = a.endMeasurement(J({ startPageVisibility: i, endPageVisibility: o.getPageVisibility() }, s));
14462
+ return o.deleteIncompleteSubMeasurements(a), l;
14463
14463
  }, discardMeasurement: function() {
14464
14464
  a.discardMeasurement(), o.deleteIncompleteSubMeasurements(a), a.measurement.flushMeasurement();
14465
14465
  } });
@@ -14485,8 +14485,8 @@ var Bs = (
14485
14485
  }
14486
14486
  var a = n.prototype.getPreQueueTime.call(this, t, r);
14487
14487
  if (a) {
14488
- var s = window.performance.now(), u = o || n.prototype.calculateQueuedTime.call(this, a, s);
14489
- return n.prototype.addQueueMeasurement.call(this, t, r, u, i);
14488
+ var s = window.performance.now(), l = o || n.prototype.calculateQueuedTime.call(this, a, s);
14489
+ return n.prototype.addQueueMeasurement.call(this, t, r, l, i);
14490
14490
  }
14491
14491
  }, e;
14492
14492
  }(Ei)
@@ -14506,14 +14506,14 @@ var Ds = (
14506
14506
  var s = this.loadAccount(o, e.account.environment, void 0, void 0, e.account.homeAccountId);
14507
14507
  i = new Xn(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));
14508
14508
  } else if (e.authority) {
14509
- var u = rr.generateAuthority(e.authority, e.azureCloudOptions), p = {
14509
+ var l = rr.generateAuthority(e.authority, e.azureCloudOptions), p = {
14510
14510
  protocolMode: this.config.auth.protocolMode,
14511
14511
  knownAuthorities: this.config.auth.knownAuthorities,
14512
14512
  cloudDiscoveryMetadata: this.config.auth.cloudDiscoveryMetadata,
14513
14513
  authorityMetadata: this.config.auth.authorityMetadata,
14514
14514
  skipAuthorityMetadataCache: this.config.auth.skipAuthorityMetadataCache
14515
14515
  };
14516
- if (a = new rr(u, this.config.system.networkClient, this.storage, p, this.logger), r.clientInfo) {
14516
+ if (a = new rr(l, this.config.system.networkClient, this.storage, p, this.logger), r.clientInfo) {
14517
14517
  this.logger.trace("TokenCache - homeAccountId from options");
14518
14518
  var s = this.loadAccount(o, a.hostnameAndPort, r.clientInfo, a.authorityType);
14519
14519
  i = new Xn(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));
@@ -14546,9 +14546,9 @@ var Ds = (
14546
14546
  throw K.createUnableToLoadTokenError("Please ensure server response includes expires_in value.");
14547
14547
  if (!a.extendedExpiresOn)
14548
14548
  throw K.createUnableToLoadTokenError("Please provide an extendedExpiresOn value in the options.");
14549
- var s = new Je(e.scopes).printScopes(), u = a.expiresOn || t.expires_in + (/* @__PURE__ */ new Date()).getTime() / 1e3, p = a.extendedExpiresOn, l = Tn.createAccessTokenEntity(r, o, t.access_token, this.config.auth.clientId, i, s, u, p, this.cryptoObj);
14549
+ var s = new Je(e.scopes).printScopes(), l = a.expiresOn || t.expires_in + (/* @__PURE__ */ new Date()).getTime() / 1e3, p = a.extendedExpiresOn, u = Tn.createAccessTokenEntity(r, o, t.access_token, this.config.auth.clientId, i, s, l, p, this.cryptoObj);
14550
14550
  if (this.isBrowserEnvironment)
14551
- return this.logger.verbose("TokenCache - loading access token"), this.storage.setAccessTokenCredential(l), l;
14551
+ return this.logger.verbose("TokenCache - loading access token"), this.storage.setAccessTokenCredential(u), u;
14552
14552
  throw K.createUnableToLoadTokenError("loadExternalTokens is designed to work in browser environments only.");
14553
14553
  }, n.prototype.loadRefreshToken = function(e, t, r, o) {
14554
14554
  if (!t.refresh_token)
@@ -14558,8 +14558,8 @@ var Ds = (
14558
14558
  return this.logger.verbose("TokenCache - loading refresh token"), this.storage.setRefreshTokenCredential(i), i;
14559
14559
  throw K.createUnableToLoadTokenError("loadExternalTokens is designed to work in browser environments only.");
14560
14560
  }, n.prototype.generateAuthenticationResult = function(e, t, r, o) {
14561
- var i, a, s, u = b.EMPTY_STRING, p = [], l = null, m;
14562
- r != null && r.accessToken && (u = r.accessToken.secret, p = Je.fromString(r.accessToken.target).asArray(), l = new Date(Number(r.accessToken.expiresOn) * 1e3), m = new Date(Number(r.accessToken.extendedExpiresOn) * 1e3));
14561
+ var i, a, s, l = b.EMPTY_STRING, p = [], u = null, m;
14562
+ r != null && r.accessToken && (l = r.accessToken.secret, p = Je.fromString(r.accessToken.target).asArray(), u = new Date(Number(r.accessToken.expiresOn) * 1e3), m = new Date(Number(r.accessToken.extendedExpiresOn) * 1e3));
14563
14563
  var f = (t == null ? void 0 : t.claims.oid) || (t == null ? void 0 : t.claims.sub) || b.EMPTY_STRING, k = (t == null ? void 0 : t.claims.tid) || b.EMPTY_STRING;
14564
14564
  return {
14565
14565
  authority: o ? o.canonicalAuthority : b.EMPTY_STRING,
@@ -14569,9 +14569,9 @@ var Ds = (
14569
14569
  account: r != null && r.account ? r.account.getAccountInfo() : null,
14570
14570
  idToken: t ? t.rawToken : b.EMPTY_STRING,
14571
14571
  idTokenClaims: t ? t.claims : {},
14572
- accessToken: u,
14572
+ accessToken: l,
14573
14573
  fromCache: !0,
14574
- expiresOn: l,
14574
+ expiresOn: u,
14575
14575
  correlationId: e.correlationId || b.EMPTY_STRING,
14576
14576
  requestId: b.EMPTY_STRING,
14577
14577
  extExpiresOn: m,
@@ -14603,32 +14603,32 @@ var Hs = (
14603
14603
  /** @class */
14604
14604
  function(n) {
14605
14605
  $e(e, n);
14606
- function e(t, r, o, i, a, s, u, p, l, m) {
14607
- var f = n.call(this, t, r, o, i, a, s, p, l, m) || this;
14608
- return f.apiId = u, f;
14606
+ function e(t, r, o, i, a, s, l, p, u, m) {
14607
+ var f = n.call(this, t, r, o, i, a, s, p, u, m) || this;
14608
+ return f.apiId = l, f;
14609
14609
  }
14610
14610
  return e.prototype.acquireToken = function(t) {
14611
14611
  return L(this, void 0, void 0, function() {
14612
- var r, o, i, a, s, u, p;
14613
- return z(this, function(l) {
14614
- switch (l.label) {
14612
+ var r, o, i, a, s, l, p;
14613
+ return z(this, function(u) {
14614
+ switch (u.label) {
14615
14615
  case 0:
14616
14616
  if (this.logger.trace("SilentAuthCodeClient.acquireToken called"), !t.code)
14617
14617
  throw K.createAuthCodeRequiredError();
14618
14618
  return this.performanceClient.setPreQueueTime(R.StandardInteractionClientInitializeAuthorizationRequest, t.correlationId), [4, this.initializeAuthorizationRequest(t, Y.Silent)];
14619
14619
  case 1:
14620
- r = l.sent(), this.browserStorage.updateCacheEntries(r.state, r.nonce, r.authority, r.loginHint || b.EMPTY_STRING, r.account || null), o = this.initializeServerTelemetryManager(this.apiId), l.label = 2;
14620
+ r = u.sent(), this.browserStorage.updateCacheEntries(r.state, r.nonce, r.authority, r.loginHint || b.EMPTY_STRING, r.account || null), o = this.initializeServerTelemetryManager(this.apiId), u.label = 2;
14621
14621
  case 2:
14622
- return l.trys.push([2, 4, , 5]), i = J(J({}, r), { code: t.code }), this.performanceClient.setPreQueueTime(R.StandardInteractionClientGetClientConfiguration, t.correlationId), [4, this.getClientConfiguration(o, r.authority)];
14622
+ return u.trys.push([2, 4, , 5]), i = J(J({}, r), { code: t.code }), this.performanceClient.setPreQueueTime(R.StandardInteractionClientGetClientConfiguration, t.correlationId), [4, this.getClientConfiguration(o, r.authority)];
14623
14623
  case 3:
14624
- return a = l.sent(), s = new js(a), this.logger.verbose("Auth code client created"), u = new Ai(s, this.browserStorage, i, this.logger, this.config.system, this.performanceClient), [2, u.handleCodeResponseFromServer({
14624
+ return a = u.sent(), s = new js(a), this.logger.verbose("Auth code client created"), l = new Ai(s, this.browserStorage, i, this.logger, this.config.system, this.performanceClient), [2, l.handleCodeResponseFromServer({
14625
14625
  code: t.code,
14626
14626
  msgraph_host: t.msGraphHost,
14627
14627
  cloud_graph_host_name: t.cloudGraphHostName,
14628
14628
  cloud_instance_host_name: t.cloudInstanceHostName
14629
14629
  }, r.state, s.authority, this.networkClient, !1)];
14630
14630
  case 4:
14631
- throw p = l.sent(), p instanceof X && p.setCorrelationId(this.correlationId), o.cacheFailedRequest(p), this.browserStorage.cleanRequestByState(r.state), p;
14631
+ throw p = u.sent(), p instanceof X && p.setCorrelationId(this.correlationId), o.cacheFailedRequest(p), this.browserStorage.cleanRequestByState(r.state), p;
14632
14632
  case 5:
14633
14633
  return [
14634
14634
  2
@@ -14691,32 +14691,32 @@ var Fs = (
14691
14691
  });
14692
14692
  }, n.prototype.handleRedirectPromise = function(e) {
14693
14693
  return L(this, void 0, void 0, function() {
14694
- var t, r, o, i, a, s, u, p, l = this;
14694
+ var t, r, o, i, a, s, l, p, u = this;
14695
14695
  return z(this, function(m) {
14696
- return this.logger.verbose("handleRedirectPromise called"), Pe.blockNativeBrokerCalledBeforeInitialized(this.config.system.allowNativeBroker, this.initialized), t = this.getAllAccounts(), this.isBrowserEnvironment ? (r = e || b.EMPTY_STRING, o = this.redirectResponse.get(r), typeof o > "u" ? (this.eventHandler.emitEvent(oe.HANDLE_REDIRECT_START, Y.Redirect), this.logger.verbose("handleRedirectPromise has been called for the first time, storing the promise"), i = this.browserStorage.getCachedNativeRequest(), a = void 0, i && In.isNativeAvailable(this.config, this.logger, this.nativeExtensionProvider) && this.nativeExtensionProvider && !e ? (this.logger.trace("handleRedirectPromise - acquiring token from native platform"), s = new Bn(this.config, this.browserStorage, this.browserCrypto, this.logger, this.eventHandler, this.navigationClient, Ie.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(me.CORRELATION_ID, !0) || b.EMPTY_STRING, p = this.createRedirectClient(u), a = p.handleRedirectPromise(e)), o = a.then(function(f) {
14696
+ return this.logger.verbose("handleRedirectPromise called"), Pe.blockNativeBrokerCalledBeforeInitialized(this.config.system.allowNativeBroker, this.initialized), t = this.getAllAccounts(), this.isBrowserEnvironment ? (r = e || b.EMPTY_STRING, o = this.redirectResponse.get(r), typeof o > "u" ? (this.eventHandler.emitEvent(oe.HANDLE_REDIRECT_START, Y.Redirect), this.logger.verbose("handleRedirectPromise has been called for the first time, storing the promise"), i = this.browserStorage.getCachedNativeRequest(), a = void 0, i && In.isNativeAvailable(this.config, this.logger, this.nativeExtensionProvider) && this.nativeExtensionProvider && !e ? (this.logger.trace("handleRedirectPromise - acquiring token from native platform"), s = new Bn(this.config, this.browserStorage, this.browserCrypto, this.logger, this.eventHandler, this.navigationClient, Ie.handleRedirectPromise, this.performanceClient, this.nativeExtensionProvider, i.accountId, this.nativeInternalStorage, i.correlationId), a = s.handleRedirectPromise()) : (this.logger.trace("handleRedirectPromise - acquiring token from web flow"), l = this.browserStorage.getTemporaryCache(me.CORRELATION_ID, !0) || b.EMPTY_STRING, p = this.createRedirectClient(l), a = p.handleRedirectPromise(e)), o = a.then(function(f) {
14697
14697
  if (f) {
14698
- var k = t.length < l.getAllAccounts().length;
14699
- k ? (l.eventHandler.emitEvent(oe.LOGIN_SUCCESS, Y.Redirect, f), l.logger.verbose("handleRedirectResponse returned result, login success")) : (l.eventHandler.emitEvent(oe.ACQUIRE_TOKEN_SUCCESS, Y.Redirect, f), l.logger.verbose("handleRedirectResponse returned result, acquire token success"));
14698
+ var k = t.length < u.getAllAccounts().length;
14699
+ k ? (u.eventHandler.emitEvent(oe.LOGIN_SUCCESS, Y.Redirect, f), u.logger.verbose("handleRedirectResponse returned result, login success")) : (u.eventHandler.emitEvent(oe.ACQUIRE_TOKEN_SUCCESS, Y.Redirect, f), u.logger.verbose("handleRedirectResponse returned result, acquire token success"));
14700
14700
  }
14701
- return l.eventHandler.emitEvent(oe.HANDLE_REDIRECT_END, Y.Redirect), f;
14701
+ return u.eventHandler.emitEvent(oe.HANDLE_REDIRECT_END, Y.Redirect), f;
14702
14702
  }).catch(function(f) {
14703
- throw t.length > 0 ? l.eventHandler.emitEvent(oe.ACQUIRE_TOKEN_FAILURE, Y.Redirect, null, f) : l.eventHandler.emitEvent(oe.LOGIN_FAILURE, Y.Redirect, null, f), l.eventHandler.emitEvent(oe.HANDLE_REDIRECT_END, Y.Redirect), f;
14703
+ throw t.length > 0 ? u.eventHandler.emitEvent(oe.ACQUIRE_TOKEN_FAILURE, Y.Redirect, null, f) : u.eventHandler.emitEvent(oe.LOGIN_FAILURE, Y.Redirect, null, f), u.eventHandler.emitEvent(oe.HANDLE_REDIRECT_END, Y.Redirect), f;
14704
14704
  }), 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]);
14705
14705
  });
14706
14706
  });
14707
14707
  }, n.prototype.acquireTokenRedirect = function(e) {
14708
14708
  return L(this, void 0, void 0, function() {
14709
14709
  var t, r, o, i, a, s = this;
14710
- return z(this, function(u) {
14710
+ return z(this, function(l) {
14711
14711
  return t = this.getRequestCorrelationId(e), this.logger.verbose("acquireTokenRedirect called", t), this.preflightBrowserEnvironmentCheck(Y.Redirect), r = this.getAllAccounts().length > 0, r ? this.eventHandler.emitEvent(oe.ACQUIRE_TOKEN_START, Y.Redirect, e) : this.eventHandler.emitEvent(oe.LOGIN_START, Y.Redirect, e), this.nativeExtensionProvider && this.canUseNative(e) ? (i = new Bn(this.config, this.browserStorage, this.browserCrypto, this.logger, this.eventHandler, this.navigationClient, Ie.acquireTokenRedirect, this.performanceClient, this.nativeExtensionProvider, this.getNativeAccountId(e), this.nativeInternalStorage, e.correlationId), o = i.acquireTokenRedirect(e).catch(function(p) {
14712
14712
  if (p instanceof Gt && p.isFatal()) {
14713
14713
  s.nativeExtensionProvider = void 0;
14714
- var l = s.createRedirectClient(e.correlationId);
14715
- return l.acquireToken(e);
14714
+ var u = s.createRedirectClient(e.correlationId);
14715
+ return u.acquireToken(e);
14716
14716
  } else if (p instanceof Mt) {
14717
14717
  s.logger.verbose("acquireTokenRedirect - Resolving interaction required error thrown by native broker by falling back to web flow");
14718
- var l = s.createRedirectClient(e.correlationId);
14719
- return l.acquireToken(e);
14718
+ var u = s.createRedirectClient(e.correlationId);
14719
+ return u.acquireToken(e);
14720
14720
  }
14721
14721
  throw s.browserStorage.setInteractionInProgress(!1), p;
14722
14722
  })) : (a = this.createRedirectClient(e.correlationId), o = a.acquireToken(e)), [2, o.catch(function(p) {
@@ -14728,50 +14728,50 @@ var Fs = (
14728
14728
  var t = this, r = this.getRequestCorrelationId(e), o = this.performanceClient.startMeasurement(R.AcquireTokenPopup, r);
14729
14729
  try {
14730
14730
  this.logger.verbose("acquireTokenPopup called", r), this.preflightBrowserEnvironmentCheck(Y.Popup);
14731
- } catch (u) {
14732
- return Promise.reject(u);
14731
+ } catch (l) {
14732
+ return Promise.reject(l);
14733
14733
  }
14734
14734
  var i = this.getAllAccounts();
14735
14735
  i.length > 0 ? this.eventHandler.emitEvent(oe.ACQUIRE_TOKEN_START, Y.Popup, e) : this.eventHandler.emitEvent(oe.LOGIN_START, Y.Popup, e);
14736
14736
  var a;
14737
14737
  if (this.canUseNative(e))
14738
- a = this.acquireTokenNative(e, Ie.acquireTokenPopup).then(function(u) {
14738
+ a = this.acquireTokenNative(e, Ie.acquireTokenPopup).then(function(l) {
14739
14739
  return t.browserStorage.setInteractionInProgress(!1), o.endMeasurement({
14740
14740
  success: !0,
14741
14741
  isNativeBroker: !0,
14742
- requestId: u.requestId
14743
- }), u;
14744
- }).catch(function(u) {
14745
- if (u instanceof Gt && u.isFatal()) {
14742
+ requestId: l.requestId
14743
+ }), l;
14744
+ }).catch(function(l) {
14745
+ if (l instanceof Gt && l.isFatal()) {
14746
14746
  t.nativeExtensionProvider = void 0;
14747
14747
  var p = t.createPopupClient(e.correlationId);
14748
14748
  return p.acquireToken(e);
14749
- } else if (u instanceof Mt) {
14749
+ } else if (l instanceof Mt) {
14750
14750
  t.logger.verbose("acquireTokenPopup - Resolving interaction required error thrown by native broker by falling back to web flow");
14751
14751
  var p = t.createPopupClient(e.correlationId);
14752
14752
  return p.acquireToken(e);
14753
14753
  }
14754
- throw t.browserStorage.setInteractionInProgress(!1), u;
14754
+ throw t.browserStorage.setInteractionInProgress(!1), l;
14755
14755
  });
14756
14756
  else {
14757
14757
  var s = this.createPopupClient(e.correlationId);
14758
14758
  a = s.acquireToken(e);
14759
14759
  }
14760
- return a.then(function(u) {
14760
+ return a.then(function(l) {
14761
14761
  var p = i.length < t.getAllAccounts().length;
14762
- return p ? t.eventHandler.emitEvent(oe.LOGIN_SUCCESS, Y.Popup, u) : t.eventHandler.emitEvent(oe.ACQUIRE_TOKEN_SUCCESS, Y.Popup, u), o.addStaticFields({
14763
- accessTokenSize: u.accessToken.length,
14764
- idTokenSize: u.idToken.length
14762
+ return p ? t.eventHandler.emitEvent(oe.LOGIN_SUCCESS, Y.Popup, l) : t.eventHandler.emitEvent(oe.ACQUIRE_TOKEN_SUCCESS, Y.Popup, l), o.addStaticFields({
14763
+ accessTokenSize: l.accessToken.length,
14764
+ idTokenSize: l.idToken.length
14765
14765
  }), o.endMeasurement({
14766
14766
  success: !0,
14767
- requestId: u.requestId
14768
- }), u;
14769
- }).catch(function(u) {
14770
- return i.length > 0 ? t.eventHandler.emitEvent(oe.ACQUIRE_TOKEN_FAILURE, Y.Popup, null, u) : t.eventHandler.emitEvent(oe.LOGIN_FAILURE, Y.Popup, null, u), o.endMeasurement({
14771
- errorCode: u.errorCode,
14772
- subErrorCode: u.subError,
14767
+ requestId: l.requestId
14768
+ }), l;
14769
+ }).catch(function(l) {
14770
+ return i.length > 0 ? t.eventHandler.emitEvent(oe.ACQUIRE_TOKEN_FAILURE, Y.Popup, null, l) : t.eventHandler.emitEvent(oe.LOGIN_FAILURE, Y.Popup, null, l), o.endMeasurement({
14771
+ errorCode: l.errorCode,
14772
+ subErrorCode: l.subError,
14773
14773
  success: !1
14774
- }), Promise.reject(u);
14774
+ }), Promise.reject(l);
14775
14775
  });
14776
14776
  }, n.prototype.trackPageVisibilityWithMeasurement = function() {
14777
14777
  var e = this.ssoSilentMeasurement || this.acquireTokenByCodeAsyncMeasurement;
@@ -14782,7 +14782,7 @@ var Fs = (
14782
14782
  var t;
14783
14783
  return L(this, void 0, void 0, function() {
14784
14784
  var r, o, i, a, s = this;
14785
- return z(this, function(u) {
14785
+ return z(this, function(l) {
14786
14786
  return r = this.getRequestCorrelationId(e), o = J(J({}, e), {
14787
14787
  // will be PromptValue.NONE or PromptValue.NO_SESSION
14788
14788
  prompt: e.prompt,
@@ -14792,13 +14792,13 @@ var Fs = (
14792
14792
  }), document.addEventListener("visibilitychange", this.trackPageVisibilityWithMeasurement), this.logger.verbose("ssoSilent called", r), this.eventHandler.emitEvent(oe.SSO_SILENT_START, Y.Silent, o), this.canUseNative(o) ? i = this.acquireTokenNative(o, Ie.ssoSilent).catch(function(p) {
14793
14793
  if (p instanceof Gt && p.isFatal()) {
14794
14794
  s.nativeExtensionProvider = void 0;
14795
- var l = s.createSilentIframeClient(o.correlationId);
14796
- return l.acquireToken(o);
14795
+ var u = s.createSilentIframeClient(o.correlationId);
14796
+ return u.acquireToken(o);
14797
14797
  }
14798
14798
  throw p;
14799
14799
  }) : (a = this.createSilentIframeClient(o.correlationId), i = a.acquireToken(o)), [2, i.then(function(p) {
14800
- var l, m;
14801
- return s.eventHandler.emitEvent(oe.SSO_SILENT_SUCCESS, Y.Silent, p), (l = s.ssoSilentMeasurement) === null || l === void 0 || l.addStaticFields({
14800
+ var u, m;
14801
+ return s.eventHandler.emitEvent(oe.SSO_SILENT_SUCCESS, Y.Silent, p), (u = s.ssoSilentMeasurement) === null || u === void 0 || u.addStaticFields({
14802
14802
  accessTokenSize: p.accessToken.length,
14803
14803
  idTokenSize: p.idToken.length
14804
14804
  }), (m = s.ssoSilentMeasurement) === null || m === void 0 || m.endMeasurement({
@@ -14807,8 +14807,8 @@ var Fs = (
14807
14807
  requestId: p.requestId
14808
14808
  }), p;
14809
14809
  }).catch(function(p) {
14810
- var l;
14811
- throw s.eventHandler.emitEvent(oe.SSO_SILENT_FAILURE, Y.Silent, null, p), (l = s.ssoSilentMeasurement) === null || l === void 0 || l.endMeasurement({
14810
+ var u;
14811
+ throw s.eventHandler.emitEvent(oe.SSO_SILENT_FAILURE, Y.Silent, null, p), (u = s.ssoSilentMeasurement) === null || u === void 0 || u.endMeasurement({
14812
14812
  errorCode: p.errorCode,
14813
14813
  subErrorCode: p.subError,
14814
14814
  success: !1
@@ -14827,36 +14827,36 @@ var Fs = (
14827
14827
  if (e.code && e.nativeAccountId)
14828
14828
  throw K.createSpaCodeAndNativeAccountIdPresentError();
14829
14829
  if (e.code)
14830
- 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(J(J({}, e), { correlationId: t })).then(function(u) {
14831
- return a.eventHandler.emitEvent(oe.ACQUIRE_TOKEN_BY_CODE_SUCCESS, Y.Silent, u), a.hybridAuthCodeResponses.delete(o), r.addStaticFields({
14832
- accessTokenSize: u.accessToken.length,
14833
- idTokenSize: u.idToken.length
14830
+ 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(J(J({}, e), { correlationId: t })).then(function(l) {
14831
+ return a.eventHandler.emitEvent(oe.ACQUIRE_TOKEN_BY_CODE_SUCCESS, Y.Silent, l), a.hybridAuthCodeResponses.delete(o), r.addStaticFields({
14832
+ accessTokenSize: l.accessToken.length,
14833
+ idTokenSize: l.idToken.length
14834
14834
  }), r.endMeasurement({
14835
14835
  success: !0,
14836
- isNativeBroker: u.fromNativeBroker,
14837
- requestId: u.requestId
14838
- }), u;
14839
- }).catch(function(u) {
14840
- throw a.hybridAuthCodeResponses.delete(o), a.eventHandler.emitEvent(oe.ACQUIRE_TOKEN_BY_CODE_FAILURE, Y.Silent, null, u), r.endMeasurement({
14841
- errorCode: u.errorCode,
14842
- subErrorCode: u.subError,
14836
+ isNativeBroker: l.fromNativeBroker,
14837
+ requestId: l.requestId
14838
+ }), l;
14839
+ }).catch(function(l) {
14840
+ throw a.hybridAuthCodeResponses.delete(o), a.eventHandler.emitEvent(oe.ACQUIRE_TOKEN_BY_CODE_FAILURE, Y.Silent, null, l), r.endMeasurement({
14841
+ errorCode: l.errorCode,
14842
+ subErrorCode: l.subError,
14843
14843
  success: !1
14844
- }), u;
14844
+ }), l;
14845
14845
  }), this.hybridAuthCodeResponses.set(o, i)), [2, i];
14846
14846
  if (e.nativeAccountId) {
14847
14847
  if (this.canUseNative(e, e.nativeAccountId))
14848
- return [2, this.acquireTokenNative(e, Ie.acquireTokenByCode, e.nativeAccountId).catch(function(u) {
14849
- throw u instanceof Gt && u.isFatal() && (a.nativeExtensionProvider = void 0), u;
14848
+ return [2, this.acquireTokenNative(e, Ie.acquireTokenByCode, e.nativeAccountId).catch(function(l) {
14849
+ throw l instanceof Gt && l.isFatal() && (a.nativeExtensionProvider = void 0), l;
14850
14850
  })];
14851
14851
  throw K.createUnableToAcquireTokenFromNativePlatformError();
14852
14852
  } else
14853
14853
  throw K.createAuthCodeOrNativeAccountIdRequiredError();
14854
- } catch (u) {
14855
- throw this.eventHandler.emitEvent(oe.ACQUIRE_TOKEN_BY_CODE_FAILURE, Y.Silent, null, u), r.endMeasurement({
14856
- errorCode: u instanceof X && u.errorCode || void 0,
14857
- subErrorCode: u instanceof X && u.subError || void 0,
14854
+ } catch (l) {
14855
+ throw this.eventHandler.emitEvent(oe.ACQUIRE_TOKEN_BY_CODE_FAILURE, Y.Silent, null, l), r.endMeasurement({
14856
+ errorCode: l instanceof X && l.errorCode || void 0,
14857
+ subErrorCode: l instanceof X && l.subError || void 0,
14858
14858
  success: !1
14859
- }), u;
14859
+ }), l;
14860
14860
  }
14861
14861
  return [
14862
14862
  2
@@ -14874,16 +14874,16 @@ var Fs = (
14874
14874
  return this.logger.trace("acquireTokenByCodeAsync called", e.correlationId), this.acquireTokenByCodeAsyncMeasurement = this.performanceClient.startMeasurement(R.AcquireTokenByCodeAsync, e.correlationId), (t = this.acquireTokenByCodeAsyncMeasurement) === null || t === void 0 || t.increment({
14875
14875
  visibilityChangeCount: 0
14876
14876
  }), document.addEventListener("visibilitychange", this.trackPageVisibilityWithMeasurement), r = this.createSilentAuthCodeClient(e.correlationId), [4, r.acquireToken(e).then(function(s) {
14877
- var u;
14878
- return (u = i.acquireTokenByCodeAsyncMeasurement) === null || u === void 0 || u.endMeasurement({
14877
+ var l;
14878
+ return (l = i.acquireTokenByCodeAsyncMeasurement) === null || l === void 0 || l.endMeasurement({
14879
14879
  success: !0,
14880
14880
  fromCache: s.fromCache,
14881
14881
  isNativeBroker: s.fromNativeBroker,
14882
14882
  requestId: s.requestId
14883
14883
  }), s;
14884
14884
  }).catch(function(s) {
14885
- var u;
14886
- throw (u = i.acquireTokenByCodeAsyncMeasurement) === null || u === void 0 || u.endMeasurement({
14885
+ var l;
14886
+ throw (l = i.acquireTokenByCodeAsyncMeasurement) === null || l === void 0 || l.endMeasurement({
14887
14887
  errorCode: s.errorCode,
14888
14888
  subErrorCode: s.subError,
14889
14889
  success: !1
@@ -15077,7 +15077,7 @@ var qs = (
15077
15077
  return this.logger.verbose("loginPopup called", r), this.acquireTokenPopup(J({ correlationId: r }, t || Go));
15078
15078
  }, e.prototype.acquireTokenSilent = function(t) {
15079
15079
  return L(this, void 0, void 0, function() {
15080
- var r, o, i, a, s, u, p, l = this;
15080
+ var r, o, i, a, s, l, p, u = this;
15081
15081
  return z(this, function(m) {
15082
15082
  if (r = this.getRequestCorrelationId(t), o = this.performanceClient.startMeasurement(R.AcquireTokenSilent, r), o.addStaticFields({
15083
15083
  cacheLookupPolicy: t.cacheLookupPolicy
@@ -15094,8 +15094,8 @@ var qs = (
15094
15094
  resourceRequestUri: t.resourceRequestUri,
15095
15095
  shrClaims: t.shrClaims,
15096
15096
  sshKid: t.sshKid
15097
- }, 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(R.AcquireTokenSilentAsync, r), p = this.acquireTokenSilentAsync(J(J({}, t), { correlationId: r }), i).then(function(f) {
15098
- return l.activeSilentTokenRequests.delete(s), o.addStaticFields({
15097
+ }, s = JSON.stringify(a), l = this.activeSilentTokenRequests.get(s), typeof l > "u" ? (this.logger.verbose("acquireTokenSilent called for the first time, storing active request", r), this.performanceClient.setPreQueueTime(R.AcquireTokenSilentAsync, r), p = this.acquireTokenSilentAsync(J(J({}, t), { correlationId: r }), i).then(function(f) {
15098
+ return u.activeSilentTokenRequests.delete(s), o.addStaticFields({
15099
15099
  accessTokenSize: f.accessToken.length,
15100
15100
  idTokenSize: f.idToken.length
15101
15101
  }), o.endMeasurement({
@@ -15106,12 +15106,12 @@ var qs = (
15106
15106
  requestId: f.requestId
15107
15107
  }), f;
15108
15108
  }).catch(function(f) {
15109
- throw l.activeSilentTokenRequests.delete(s), o.endMeasurement({
15109
+ throw u.activeSilentTokenRequests.delete(s), o.endMeasurement({
15110
15110
  errorCode: f.errorCode,
15111
15111
  subErrorCode: f.subError,
15112
15112
  success: !1
15113
15113
  }), f;
15114
- }), 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]);
15114
+ }), 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, l]);
15115
15115
  });
15116
15116
  });
15117
15117
  }, e.prototype.trackPageVisibility = function() {
@@ -15121,14 +15121,14 @@ var qs = (
15121
15121
  }, e.prototype.acquireTokenSilentAsync = function(t, r) {
15122
15122
  var o;
15123
15123
  return L(this, void 0, void 0, function() {
15124
- var i, a, s, u, p, l = this;
15124
+ var i, a, s, l, p, u = this;
15125
15125
  return z(this, function(m) {
15126
15126
  switch (m.label) {
15127
15127
  case 0:
15128
15128
  return this.performanceClient.addQueueMeasurement(R.AcquireTokenSilentAsync, t.correlationId), this.eventHandler.emitEvent(oe.ACQUIRE_TOKEN_START, Y.Silent, t), this.astsAsyncMeasurement = this.performanceClient.startMeasurement(R.AcquireTokenSilentAsync, t.correlationId), (o = this.astsAsyncMeasurement) === null || o === void 0 || o.increment({
15129
15129
  visibilityChangeCount: 0
15130
15130
  }), document.addEventListener("visibilitychange", this.trackPageVisibility), In.isNativeAvailable(this.config, this.logger, this.nativeExtensionProvider, t.authenticationScheme) && r.nativeAccountId ? (this.logger.verbose("acquireTokenSilent - attempting to acquire token from native platform"), a = J(J({}, t), { account: r }), i = this.acquireTokenNative(a, Ie.acquireTokenSilent_silentFlow).catch(function(f) {
15131
- return L(l, void 0, void 0, function() {
15131
+ return L(u, void 0, void 0, function() {
15132
15132
  var k;
15133
15133
  return z(this, function(E) {
15134
15134
  if (f instanceof Gt && f.isFatal())
@@ -15140,23 +15140,23 @@ var qs = (
15140
15140
  case 1:
15141
15141
  return this.logger.verbose("acquireTokenSilent - attempting to acquire token from web flow"), s = this.createSilentCacheClient(t.correlationId), this.performanceClient.setPreQueueTime(R.InitializeSilentRequest, t.correlationId), [4, s.initializeSilentRequest(t, r)];
15142
15142
  case 2:
15143
- u = m.sent(), p = J(J({}, t), {
15143
+ l = m.sent(), p = J(J({}, t), {
15144
15144
  // set the request's CacheLookupPolicy to Default if it was not optionally passed in
15145
15145
  cacheLookupPolicy: t.cacheLookupPolicy || st.Default
15146
- }), this.performanceClient.setPreQueueTime(R.AcquireTokenFromCache, u.correlationId), i = this.acquireTokenFromCache(s, u, p).catch(function(f) {
15146
+ }), this.performanceClient.setPreQueueTime(R.AcquireTokenFromCache, l.correlationId), i = this.acquireTokenFromCache(s, l, p).catch(function(f) {
15147
15147
  if (p.cacheLookupPolicy === st.AccessToken)
15148
15148
  throw f;
15149
- return Pe.blockReloadInHiddenIframes(), l.eventHandler.emitEvent(oe.ACQUIRE_TOKEN_NETWORK_START, Y.Silent, u), l.performanceClient.setPreQueueTime(R.AcquireTokenByRefreshToken, u.correlationId), l.acquireTokenByRefreshToken(u, p).catch(function(k) {
15149
+ return Pe.blockReloadInHiddenIframes(), u.eventHandler.emitEvent(oe.ACQUIRE_TOKEN_NETWORK_START, Y.Silent, l), u.performanceClient.setPreQueueTime(R.AcquireTokenByRefreshToken, l.correlationId), u.acquireTokenByRefreshToken(l, p).catch(function(k) {
15150
15150
  var E = k instanceof An, P = k instanceof Mt, F = k.errorCode === zn.noTokensFoundError.code, G = k.errorCode === Pt.INVALID_GRANT_ERROR;
15151
15151
  if ((!E || !G || P || p.cacheLookupPolicy === st.AccessTokenAndRefreshToken || p.cacheLookupPolicy === st.RefreshToken) && p.cacheLookupPolicy !== st.Skip && !F)
15152
15152
  throw k;
15153
- return l.logger.verbose("Refresh token expired/invalid or CacheLookupPolicy is set to Skip, attempting acquire token by iframe.", t.correlationId), l.performanceClient.setPreQueueTime(R.AcquireTokenBySilentIframe, u.correlationId), l.acquireTokenBySilentIframe(u);
15153
+ return u.logger.verbose("Refresh token expired/invalid or CacheLookupPolicy is set to Skip, attempting acquire token by iframe.", t.correlationId), u.performanceClient.setPreQueueTime(R.AcquireTokenBySilentIframe, l.correlationId), u.acquireTokenBySilentIframe(l);
15154
15154
  });
15155
15155
  }), m.label = 3;
15156
15156
  case 3:
15157
15157
  return [2, i.then(function(f) {
15158
15158
  var k;
15159
- return l.eventHandler.emitEvent(oe.ACQUIRE_TOKEN_SUCCESS, Y.Silent, f), (k = l.astsAsyncMeasurement) === null || k === void 0 || k.endMeasurement({
15159
+ return u.eventHandler.emitEvent(oe.ACQUIRE_TOKEN_SUCCESS, Y.Silent, f), (k = u.astsAsyncMeasurement) === null || k === void 0 || k.endMeasurement({
15160
15160
  success: !0,
15161
15161
  fromCache: f.fromCache,
15162
15162
  isNativeBroker: f.fromNativeBroker,
@@ -15164,13 +15164,13 @@ var qs = (
15164
15164
  }), f;
15165
15165
  }).catch(function(f) {
15166
15166
  var k;
15167
- throw l.eventHandler.emitEvent(oe.ACQUIRE_TOKEN_FAILURE, Y.Silent, null, f), (k = l.astsAsyncMeasurement) === null || k === void 0 || k.endMeasurement({
15167
+ throw u.eventHandler.emitEvent(oe.ACQUIRE_TOKEN_FAILURE, Y.Silent, null, f), (k = u.astsAsyncMeasurement) === null || k === void 0 || k.endMeasurement({
15168
15168
  errorCode: f.errorCode,
15169
15169
  subErrorCode: f.subError,
15170
15170
  success: !1
15171
15171
  }), f;
15172
15172
  }).finally(function() {
15173
- document.removeEventListener("visibilitychange", l.trackPageVisibility);
15173
+ document.removeEventListener("visibilitychange", u.trackPageVisibility);
15174
15174
  })];
15175
15175
  }
15176
15176
  });
@@ -15323,46 +15323,46 @@ const Gs = Ar("MsAuthPlugin", {
15323
15323
  const n = Object.keys(li.state), e = Object.keys(ui.state), t = Object.keys(di.state), r = Object.keys(gi.state), o = Object.keys(hi.state), i = Object.keys(pi.state), a = Object.keys(fi.state), s = Object.keys(mi.state);
15324
15324
  console.log(
15325
15325
  "In en but not in de",
15326
- n.filter((u) => !e.includes(u))
15326
+ n.filter((l) => !e.includes(l))
15327
15327
  ), console.log(
15328
15328
  "In de but not in en",
15329
- e.filter((u) => !n.includes(u))
15329
+ e.filter((l) => !n.includes(l))
15330
15330
  ), console.log(), console.log(
15331
15331
  "In en but not in es",
15332
- n.filter((u) => !t.includes(u))
15332
+ n.filter((l) => !t.includes(l))
15333
15333
  ), console.log(
15334
15334
  "In es but not in en",
15335
- t.filter((u) => !n.includes(u))
15335
+ t.filter((l) => !n.includes(l))
15336
15336
  ), console.log(), console.log(
15337
15337
  "In en but not in kr",
15338
- n.filter((u) => !r.includes(u))
15338
+ n.filter((l) => !r.includes(l))
15339
15339
  ), console.log(
15340
15340
  "In kr but not in en",
15341
- r.filter((u) => !n.includes(u))
15341
+ r.filter((l) => !n.includes(l))
15342
15342
  ), console.log(), console.log(
15343
15343
  "In en but not in it",
15344
- n.filter((u) => !o.includes(u))
15344
+ n.filter((l) => !o.includes(l))
15345
15345
  ), console.log(
15346
15346
  "In it but not in en",
15347
- o.filter((u) => !n.includes(u))
15347
+ o.filter((l) => !n.includes(l))
15348
15348
  ), console.log(), console.log(
15349
15349
  "In en but not in fr",
15350
- n.filter((u) => !i.includes(u))
15350
+ n.filter((l) => !i.includes(l))
15351
15351
  ), console.log(
15352
15352
  "In fr but not in en",
15353
- i.filter((u) => !n.includes(u))
15353
+ i.filter((l) => !n.includes(l))
15354
15354
  ), console.log(), console.log(
15355
15355
  "In en but not in sr",
15356
- n.filter((u) => !a.includes(u))
15356
+ n.filter((l) => !a.includes(l))
15357
15357
  ), console.log(
15358
15358
  "In sr but not in en",
15359
- a.filter((u) => !n.includes(u))
15359
+ a.filter((l) => !n.includes(l))
15360
15360
  ), console.log(), console.log(
15361
15361
  "In en but not in tr",
15362
- n.filter((u) => !s.includes(u))
15362
+ n.filter((l) => !s.includes(l))
15363
15363
  ), console.log(
15364
15364
  "In tr but not in en",
15365
- s.filter((u) => !n.includes(u))
15365
+ s.filter((l) => !n.includes(l))
15366
15366
  ), console.log();
15367
15367
  },
15368
15368
  base64ImageToBlob(n) {
@@ -15397,8 +15397,8 @@ const Gs = Ar("MsAuthPlugin", {
15397
15397
  cropCardScan(n, e) {
15398
15398
  const t = new window.Image(), r = document.createElement("canvas"), o = r.getContext("2d");
15399
15399
  t.src = "data:image/jpeg;base64," + n, t.onload = () => {
15400
- const i = t.width, a = t.width / 1.65, s = 0, u = t.height / 2 - a / 2, p = i, l = a;
15401
- r.width = p, r.height = l, o.drawImage(t, s, u, i, a, 0, 0, p, l);
15400
+ const i = t.width, a = t.width / 1.65, s = 0, l = t.height / 2 - a / 2, p = i, u = a;
15401
+ r.width = p, r.height = u, o.drawImage(t, s, l, i, a, 0, 0, p, u);
15402
15402
  const m = r.toDataURL();
15403
15403
  return e(m), m;
15404
15404
  };
@@ -15433,7 +15433,7 @@ const Gs = Ar("MsAuthPlugin", {
15433
15433
  },
15434
15434
  async decryptAES(n, e, t) {
15435
15435
  try {
15436
- const r = (u) => Uint8Array.from(atob(u), (p) => p.charCodeAt(0));
15436
+ const r = (l) => Uint8Array.from(atob(l), (p) => p.charCodeAt(0));
15437
15437
  t = t.replace(/ /g, "+");
15438
15438
  const o = new TextEncoder(), i = new TextDecoder();
15439
15439
  n = o.encode(n), e = o.encode(e), t = r(t);
@@ -15481,10 +15481,10 @@ const Gs = Ar("MsAuthPlugin", {
15481
15481
  localStorage.setItem("pkce_code_verifier", r);
15482
15482
  let o = await er.pkceChallengeFromVerifier(r), i = n.domain + "/v1/authorize", a;
15483
15483
  this.isNative ? a = "tapni://t.link/callback/okta" : a = location.origin + "/callback/okta";
15484
- 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;
15485
- window.addEventListener("message", async (l) => {
15486
- if (!this.allowedOriginsAuth.includes(l.origin)) return console.error("Origin is not allowed!");
15487
- l.data.type === "okta" && (p = l.data.code, await u.exchangeCode({ domain: n.domain, code: p, clientID: n.clientID }));
15484
+ 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", l = this, p;
15485
+ window.addEventListener("message", async (u) => {
15486
+ if (!this.allowedOriginsAuth.includes(u.origin)) return console.error("Origin is not allowed!");
15487
+ u.data.type === "okta" && (p = u.data.code, await l.exchangeCode({ domain: n.domain, code: p, clientID: n.clientID }));
15488
15488
  }, { once: !0 }), this.isNative ? await fr.open({ url: s, presentationStyle: "popover" }) : window.open(s, "popup", "width=600,height=600");
15489
15489
  },
15490
15490
  async handleOktaRedirect() {
@@ -15529,12 +15529,12 @@ const Gs = Ar("MsAuthPlugin", {
15529
15529
  window.addEventListener(
15530
15530
  "message",
15531
15531
  async (i) => {
15532
- var u;
15532
+ var l;
15533
15533
  if (!this.allowedOriginsAuth.includes(i.origin)) return console.error("Origin is not allowed! " + i.origin);
15534
15534
  const a = i.data.code, s = localStorage.getItem("pkce_code_verifier");
15535
15535
  if (a) {
15536
15536
  if (o.display === "popup")
15537
- return (u = window.parent) == null ? void 0 : u.postMessage({ code: a, state: i.data.state, code_verifier: s }, "*");
15537
+ return (l = window.parent) == null ? void 0 : l.postMessage({ code: a, state: i.data.state, code_verifier: s }, "*");
15538
15538
  s && (await o.exchangeAuthCode({ code: i.data.code, code_verifier: s }), localStorage.removeItem("pkce_code_verifier"));
15539
15539
  }
15540
15540
  },
@@ -15694,7 +15694,7 @@ const Gs = Ar("MsAuthPlugin", {
15694
15694
  if (e = Object.keys(n.sso), e.length)
15695
15695
  e[0] === "azure" && this.microsoftLogin("sso", n.sso.azure.sso), e[0] === "okta" && this.oktaLogin(n.sso.okta.sso), e[0] === "saml" && this.samlLogin(n.sso.saml.sso.loginUrl);
15696
15696
  else
15697
- return this.forceClose(), this.errorSnack(this.ssoLang[this.appLanguage].no_sso_logins);
15697
+ return this.errorSnack(this.ssoLang[this.appLanguage].no_sso_logins);
15698
15698
  },
15699
15699
  async submit() {
15700
15700
  if (this.submitted) return;
@@ -16658,9 +16658,9 @@ var zi = { exports: {} };
16658
16658
  }, o.t = function(i, a) {
16659
16659
  if (1 & a && (i = o(i)), 8 & a || 4 & a && typeof i == "object" && i && i.__esModule) return i;
16660
16660
  var s = /* @__PURE__ */ Object.create(null);
16661
- if (o.r(s), Object.defineProperty(s, "default", { enumerable: !0, value: i }), 2 & a && typeof i != "string") for (var u in i) o.d(s, u, (function(p) {
16661
+ if (o.r(s), Object.defineProperty(s, "default", { enumerable: !0, value: i }), 2 & a && typeof i != "string") for (var l in i) o.d(s, l, (function(p) {
16662
16662
  return i[p];
16663
- }).bind(null, u));
16663
+ }).bind(null, l));
16664
16664
  return s;
16665
16665
  }, o.n = function(i) {
16666
16666
  var a = i && i.__esModule ? function() {
@@ -16675,15 +16675,15 @@ var zi = { exports: {} };
16675
16675
  }([function(t, r, o) {
16676
16676
  var i;
16677
16677
  t.exports = (i = i || function(a, s) {
16678
- var u = Object.create || /* @__PURE__ */ function() {
16678
+ var l = Object.create || /* @__PURE__ */ function() {
16679
16679
  function T() {
16680
16680
  }
16681
16681
  return function(H) {
16682
16682
  var V;
16683
16683
  return T.prototype = H, V = new T(), T.prototype = null, V;
16684
16684
  };
16685
- }(), p = {}, l = p.lib = {}, m = l.Base = { extend: function(T) {
16686
- var H = u(this);
16685
+ }(), p = {}, u = p.lib = {}, m = u.Base = { extend: function(T) {
16686
+ var H = l(this);
16687
16687
  return T && H.mixIn(T), H.hasOwnProperty("init") && this.init !== H.init || (H.init = function() {
16688
16688
  H.$super.init.apply(this, arguments);
16689
16689
  }), H.init.prototype = H, H.$super = this, H;
@@ -16696,7 +16696,7 @@ var zi = { exports: {} };
16696
16696
  T.hasOwnProperty("toString") && (this.toString = T.toString);
16697
16697
  }, clone: function() {
16698
16698
  return this.init.prototype.extend(this);
16699
- } }, f = l.WordArray = m.extend({ init: function(T, H) {
16699
+ } }, f = u.WordArray = m.extend({ init: function(T, H) {
16700
16700
  T = this.words = T || [], this.sigBytes = H ?? 4 * T.length;
16701
16701
  }, toString: function(T) {
16702
16702
  return (T || E).stringify(this);
@@ -16753,7 +16753,7 @@ var zi = { exports: {} };
16753
16753
  }
16754
16754
  }, parse: function(T) {
16755
16755
  return P.parse(unescape(encodeURIComponent(T)));
16756
- } }, G = l.BufferedBlockAlgorithm = m.extend({ reset: function() {
16756
+ } }, G = u.BufferedBlockAlgorithm = m.extend({ reset: function() {
16757
16757
  this._data = new f.init(), this._nDataBytes = 0;
16758
16758
  }, _append: function(T) {
16759
16759
  typeof T == "string" && (T = F.parse(T)), this._data.concat(T), this._nDataBytes += T.sigBytes;
@@ -16768,7 +16768,7 @@ var zi = { exports: {} };
16768
16768
  }, clone: function() {
16769
16769
  var T = m.clone.call(this);
16770
16770
  return T._data = this._data.clone(), T;
16771
- }, _minBufferSize: 0 }), x = (l.Hasher = G.extend({ cfg: m.extend(), init: function(T) {
16771
+ }, _minBufferSize: 0 }), x = (u.Hasher = G.extend({ cfg: m.extend(), init: function(T) {
16772
16772
  this.cfg = this.cfg.extend(T), this.reset();
16773
16773
  }, reset: function() {
16774
16774
  G.reset.call(this), this._doReset();
@@ -16788,12 +16788,12 @@ var zi = { exports: {} };
16788
16788
  return p;
16789
16789
  }(Math), i);
16790
16790
  }, function(t, r, o) {
16791
- var i, a, s, u;
16792
- t.exports = (i = o(0), s = (a = i).lib.Base, u = a.enc.Utf8, void (a.algo.HMAC = s.extend({ init: function(p, l) {
16793
- p = this._hasher = new p.init(), typeof l == "string" && (l = u.parse(l));
16791
+ var i, a, s, l;
16792
+ t.exports = (i = o(0), s = (a = i).lib.Base, l = a.enc.Utf8, void (a.algo.HMAC = s.extend({ init: function(p, u) {
16793
+ p = this._hasher = new p.init(), typeof u == "string" && (u = l.parse(u));
16794
16794
  var m = p.blockSize, f = 4 * m;
16795
- l.sigBytes > f && (l = p.finalize(l)), l.clamp();
16796
- for (var k = this._oKey = l.clone(), E = this._iKey = l.clone(), P = k.words, F = E.words, G = 0; G < m; G++) P[G] ^= 1549556828, F[G] ^= 909522486;
16795
+ u.sigBytes > f && (u = p.finalize(u)), u.clamp();
16796
+ for (var k = this._oKey = u.clone(), E = this._iKey = u.clone(), P = k.words, F = E.words, G = 0; G < m; G++) P[G] ^= 1549556828, F[G] ^= 909522486;
16797
16797
  k.sigBytes = E.sigBytes = f, this.reset();
16798
16798
  }, reset: function() {
16799
16799
  var p = this._hasher;
@@ -16801,15 +16801,15 @@ var zi = { exports: {} };
16801
16801
  }, update: function(p) {
16802
16802
  return this._hasher.update(p), this;
16803
16803
  }, finalize: function(p) {
16804
- var l = this._hasher, m = l.finalize(p);
16805
- return l.reset(), l.finalize(this._oKey.clone().concat(m));
16804
+ var u = this._hasher, m = u.finalize(p);
16805
+ return u.reset(), u.finalize(this._oKey.clone().concat(m));
16806
16806
  } })));
16807
16807
  }, function(t, r, o) {
16808
16808
  var i;
16809
16809
  t.exports = (i = o(0), i.enc.Hex);
16810
16810
  }, function(t, r, o) {
16811
- var i, a, s, u, p, l;
16812
- t.exports = (l = o(0), a = (i = l).lib, s = a.Base, u = a.WordArray, (p = i.x64 = {}).Word = s.extend({ init: function(m, f) {
16811
+ var i, a, s, l, p, u;
16812
+ t.exports = (u = o(0), a = (i = u).lib, s = a.Base, l = a.WordArray, (p = i.x64 = {}).Word = s.extend({ init: function(m, f) {
16813
16813
  this.high = m, this.low = f;
16814
16814
  } }), p.WordArray = s.extend({ init: function(m, f) {
16815
16815
  m = this.words = m || [], this.sigBytes = f ?? 8 * m.length;
@@ -16818,11 +16818,11 @@ var zi = { exports: {} };
16818
16818
  var P = m[E];
16819
16819
  k.push(P.high), k.push(P.low);
16820
16820
  }
16821
- return u.create(k, this.sigBytes);
16821
+ return l.create(k, this.sigBytes);
16822
16822
  }, clone: function() {
16823
16823
  for (var m = s.clone.call(this), f = m.words = this.words.slice(0), k = f.length, E = 0; E < k; E++) f[E] = f[E].clone();
16824
16824
  return m;
16825
- } }), l);
16825
+ } }), u);
16826
16826
  }, function(t, r, o) {
16827
16827
  var i;
16828
16828
  t.exports = (i = o(0), o(9), o(1), i.HmacSHA1);
@@ -16854,42 +16854,42 @@ var zi = { exports: {} };
16854
16854
  default:
16855
16855
  throw new Error("Unknown base32 variant: " + a);
16856
16856
  }
16857
- for (var u = i.length, p = 0, l = 0, m = 0, f = new Uint8Array(5 * u / 8 | 0), k = 0; k < u; k++) l = l << 5 | o(s, i[k]), (p += 5) >= 8 && (f[m++] = l >>> p - 8 & 255, p -= 8);
16857
+ for (var l = i.length, p = 0, u = 0, m = 0, f = new Uint8Array(5 * l / 8 | 0), k = 0; k < l; k++) u = u << 5 | o(s, i[k]), (p += 5) >= 8 && (f[m++] = u >>> p - 8 & 255, p -= 8);
16858
16858
  return f.buffer;
16859
16859
  };
16860
16860
  }, function(t, r) {
16861
16861
  t.exports = function(o, i, a) {
16862
- var s, u;
16862
+ var s, l;
16863
16863
  switch (a = a || {}, i) {
16864
16864
  case "RFC3548":
16865
16865
  case "RFC4648":
16866
- s = "ABCDEFGHIJKLMNOPQRSTUVWXYZ234567", u = !0;
16866
+ s = "ABCDEFGHIJKLMNOPQRSTUVWXYZ234567", l = !0;
16867
16867
  break;
16868
16868
  case "RFC4648-HEX":
16869
- s = "0123456789ABCDEFGHIJKLMNOPQRSTUV", u = !0;
16869
+ s = "0123456789ABCDEFGHIJKLMNOPQRSTUV", l = !0;
16870
16870
  break;
16871
16871
  case "Crockford":
16872
- s = "0123456789ABCDEFGHJKMNPQRSTVWXYZ", u = !1;
16872
+ s = "0123456789ABCDEFGHJKMNPQRSTVWXYZ", l = !1;
16873
16873
  break;
16874
16874
  default:
16875
16875
  throw new Error("Unknown base32 variant: " + i);
16876
16876
  }
16877
- for (var p = a.padding !== void 0 ? a.padding : u, l = o.byteLength, m = new Uint8Array(o), f = 0, k = 0, E = "", P = 0; P < l; P++) for (k = k << 8 | m[P], f += 8; f >= 5; ) E += s[k >>> f - 5 & 31], f -= 5;
16877
+ for (var p = a.padding !== void 0 ? a.padding : l, u = o.byteLength, m = new Uint8Array(o), f = 0, k = 0, E = "", P = 0; P < u; P++) for (k = k << 8 | m[P], f += 8; f >= 5; ) E += s[k >>> f - 5 & 31], f -= 5;
16878
16878
  if (f > 0 && (E += s[k << 5 - f & 31]), p) for (; E.length % 8 != 0; ) E += "=";
16879
16879
  return E;
16880
16880
  };
16881
16881
  }, function(t, r, o) {
16882
- var i, a, s, u, p, l, m, f;
16883
- t.exports = (f = o(0), a = (i = f).lib, s = a.WordArray, u = a.Hasher, p = i.algo, l = [], m = p.SHA1 = u.extend({ _doReset: function() {
16882
+ var i, a, s, l, p, u, m, f;
16883
+ t.exports = (f = o(0), a = (i = f).lib, s = a.WordArray, l = a.Hasher, p = i.algo, u = [], m = p.SHA1 = l.extend({ _doReset: function() {
16884
16884
  this._hash = new s.init([1732584193, 4023233417, 2562383102, 271733878, 3285377520]);
16885
16885
  }, _doProcessBlock: function(k, E) {
16886
16886
  for (var P = this._hash.words, F = P[0], G = P[1], x = P[2], T = P[3], H = P[4], V = 0; V < 80; V++) {
16887
- if (V < 16) l[V] = 0 | k[E + V];
16887
+ if (V < 16) u[V] = 0 | k[E + V];
16888
16888
  else {
16889
- var W = l[V - 3] ^ l[V - 8] ^ l[V - 14] ^ l[V - 16];
16890
- l[V] = W << 1 | W >>> 31;
16889
+ var W = u[V - 3] ^ u[V - 8] ^ u[V - 14] ^ u[V - 16];
16890
+ u[V] = W << 1 | W >>> 31;
16891
16891
  }
16892
- var Z = (F << 5 | F >>> 27) + H + l[V];
16892
+ var Z = (F << 5 | F >>> 27) + H + u[V];
16893
16893
  Z += V < 20 ? 1518500249 + (G & x | ~G & T) : V < 40 ? 1859775393 + (G ^ x ^ T) : V < 60 ? (G & x | G & T | x & T) - 1894007588 : (G ^ x ^ T) - 899497514, H = T, T = x, x = G << 30 | G >>> 2, G = F, F = Z;
16894
16894
  }
16895
16895
  P[0] = P[0] + F | 0, P[1] = P[1] + G | 0, P[2] = P[2] + x | 0, P[3] = P[3] + T | 0, P[4] = P[4] + H | 0;
@@ -16897,13 +16897,13 @@ var zi = { exports: {} };
16897
16897
  var k = this._data, E = k.words, P = 8 * this._nDataBytes, F = 8 * k.sigBytes;
16898
16898
  return E[F >>> 5] |= 128 << 24 - F % 32, E[14 + (F + 64 >>> 9 << 4)] = Math.floor(P / 4294967296), E[15 + (F + 64 >>> 9 << 4)] = P, k.sigBytes = 4 * E.length, this._process(), this._hash;
16899
16899
  }, clone: function() {
16900
- var k = u.clone.call(this);
16900
+ var k = l.clone.call(this);
16901
16901
  return k._hash = this._hash.clone(), k;
16902
- } }), i.SHA1 = u._createHelper(m), i.HmacSHA1 = u._createHmacHelper(m), f.SHA1);
16902
+ } }), i.SHA1 = l._createHelper(m), i.HmacSHA1 = l._createHmacHelper(m), f.SHA1);
16903
16903
  }, function(t, r, o) {
16904
16904
  var i;
16905
16905
  t.exports = (i = o(0), function(a) {
16906
- var s = i, u = s.lib, p = u.WordArray, l = u.Hasher, m = s.algo, f = [], k = [];
16906
+ var s = i, l = s.lib, p = l.WordArray, u = l.Hasher, m = s.algo, f = [], k = [];
16907
16907
  (function() {
16908
16908
  function F(H) {
16909
16909
  for (var V = a.sqrt(H), W = 2; W <= V; W++) if (!(H % W)) return !1;
@@ -16914,7 +16914,7 @@ var zi = { exports: {} };
16914
16914
  }
16915
16915
  for (var x = 2, T = 0; T < 64; ) F(x) && (T < 8 && (f[T] = G(a.pow(x, 0.5))), k[T] = G(a.pow(x, 1 / 3)), T++), x++;
16916
16916
  })();
16917
- var E = [], P = m.SHA256 = l.extend({ _doReset: function() {
16917
+ var E = [], P = m.SHA256 = u.extend({ _doReset: function() {
16918
16918
  this._hash = new p.init(f.slice(0));
16919
16919
  }, _doProcessBlock: function(F, G) {
16920
16920
  for (var x = this._hash.words, T = x[0], H = x[1], V = x[2], W = x[3], Z = x[4], I = x[5], te = x[6], fe = x[7], re = 0; re < 64; re++) {
@@ -16931,15 +16931,15 @@ var zi = { exports: {} };
16931
16931
  var F = this._data, G = F.words, x = 8 * this._nDataBytes, T = 8 * F.sigBytes;
16932
16932
  return G[T >>> 5] |= 128 << 24 - T % 32, G[14 + (T + 64 >>> 9 << 4)] = a.floor(x / 4294967296), G[15 + (T + 64 >>> 9 << 4)] = x, F.sigBytes = 4 * G.length, this._process(), this._hash;
16933
16933
  }, clone: function() {
16934
- var F = l.clone.call(this);
16934
+ var F = u.clone.call(this);
16935
16935
  return F._hash = this._hash.clone(), F;
16936
16936
  } });
16937
- s.SHA256 = l._createHelper(P), s.HmacSHA256 = l._createHmacHelper(P);
16937
+ s.SHA256 = u._createHelper(P), s.HmacSHA256 = u._createHmacHelper(P);
16938
16938
  }(Math), i.SHA256);
16939
16939
  }, function(t, r, o) {
16940
16940
  var i;
16941
16941
  t.exports = (i = o(0), o(3), function() {
16942
- var a = i, s = a.lib.Hasher, u = a.x64, p = u.Word, l = u.WordArray, m = a.algo;
16942
+ var a = i, s = a.lib.Hasher, l = a.x64, p = l.Word, u = l.WordArray, m = a.algo;
16943
16943
  function f() {
16944
16944
  return p.create.apply(p, arguments);
16945
16945
  }
@@ -16948,7 +16948,7 @@ var zi = { exports: {} };
16948
16948
  for (var F = 0; F < 80; F++) E[F] = f();
16949
16949
  })();
16950
16950
  var P = m.SHA512 = s.extend({ _doReset: function() {
16951
- this._hash = new l.init([new p.init(1779033703, 4089235720), new p.init(3144134277, 2227873595), new p.init(1013904242, 4271175723), new p.init(2773480762, 1595750129), new p.init(1359893119, 2917565137), new p.init(2600822924, 725511199), new p.init(528734635, 4215389547), new p.init(1541459225, 327033209)]);
16951
+ this._hash = new u.init([new p.init(1779033703, 4089235720), new p.init(3144134277, 2227873595), new p.init(1013904242, 4271175723), new p.init(2773480762, 1595750129), new p.init(1359893119, 2917565137), new p.init(2600822924, 725511199), new p.init(528734635, 4215389547), new p.init(1541459225, 327033209)]);
16952
16952
  }, _doProcessBlock: function(F, G) {
16953
16953
  for (var x = this._hash.words, T = x[0], H = x[1], V = x[2], W = x[3], Z = x[4], I = x[5], te = x[6], fe = x[7], re = T.high, Ce = T.low, Le = H.high, de = H.low, Ue = V.high, Et = V.low, Nt = W.high, ut = W.low, gn = Z.high, sn = Z.low, _n = I.high, cn = I.low, Rn = te.high, Re = te.low, Me = fe.high, $t = fe.low, qe = re, Be = Ce, Ot = Le, Tt = de, tt = Ue, dt = Et, Yt = Nt, Lt = ut, Ye = gn, Ne = sn, pt = _n, zt = cn, xt = Rn, vt = Re, vn = Me, St = $t, Ke = 0; Ke < 80; Ke++) {
16954
16954
  var yt = E[Ke];
@@ -16972,7 +16972,7 @@ var zi = { exports: {} };
16972
16972
  }(), i.SHA512);
16973
16973
  }, function(t, r, o) {
16974
16974
  o.r(r);
16975
- var i, a = o(0), s = o.n(a), u = o(4), p = o.n(u), l = o(5), m = o.n(l), f = o(6), k = o.n(f), E = o(2), P = o.n(E);
16975
+ var i, a = o(0), s = o.n(a), l = o(4), p = o.n(l), u = o(5), m = o.n(u), f = o(6), k = o.n(f), E = o(2), P = o.n(E);
16976
16976
  function F(v, y) {
16977
16977
  var C = Object.keys(v);
16978
16978
  if (Object.getOwnPropertySymbols) {
@@ -17910,8 +17910,8 @@ const Zo = /* @__PURE__ */ Mr(Yu, [["render", Ju]]), Xu = ["aria-disabled", "ari
17910
17910
  () => t.isFocused,
17911
17911
  () => {
17912
17912
  if (t.isFocused && t.menu) {
17913
- const i = t.menu.children[t.index], a = i.offsetTop, s = a + i.clientHeight, u = t.menu.scrollTop, p = t.menu.clientHeight;
17914
- a < u ? t.menu.scrollTop = a : s > u + p && (t.menu.scrollTop = s - p);
17913
+ const i = t.menu.children[t.index], a = i.offsetTop, s = a + i.clientHeight, l = t.menu.scrollTop, p = t.menu.clientHeight;
17914
+ a < l ? t.menu.scrollTop = a : s > l + p && (t.menu.scrollTop = s - p);
17915
17915
  }
17916
17916
  }
17917
17917
  ), (i, a) => (O(), U("div", {
@@ -17968,14 +17968,14 @@ const rd = /* @__PURE__ */ Mr(ed, [["render", nd], ["__scopeId", "data-v-ed86631
17968
17968
  }),
17969
17969
  emits: /* @__PURE__ */ Ao(["optionSelected", "optionDeselected", "search"], ["update:modelValue"]),
17970
17970
  setup(n, { emit: e }) {
17971
- const t = n, r = e, o = Bi(n, "modelValue"), i = wn(null), a = wn(null), s = wn(null), u = wn(""), p = wn(!1), l = wn(-1), m = Ro(() => {
17971
+ const t = n, r = e, o = Bi(n, "modelValue"), i = wn(null), a = wn(null), s = wn(null), l = wn(""), p = wn(!1), u = wn(-1), m = Ro(() => {
17972
17972
  const I = t.displayedOptions || t.options, te = (fe) => fe.filter(
17973
17973
  (re) => !o.value.includes(re.value)
17974
17974
  );
17975
- if (t.isSearchable && u.value) {
17975
+ if (t.isSearchable && l.value) {
17976
17976
  const fe = I.filter((re) => {
17977
17977
  const Ce = t.isMulti ? t.getMultiValueLabel(re) : t.getOptionLabel(re);
17978
- return t.filterBy(re, Ce, u.value);
17978
+ return t.filterBy(re, Ce, l.value);
17979
17979
  });
17980
17980
  return t.isMulti ? te(fe) : fe;
17981
17981
  }
@@ -17989,24 +17989,24 @@ const rd = /* @__PURE__ */ Mr(ed, [["render", nd], ["__scopeId", "data-v-ed86631
17989
17989
  const I = t.options.find((te) => te.value === o.value);
17990
17990
  return I ? [I] : [];
17991
17991
  }), k = (I) => {
17992
- p.value = !0, t.shouldAutofocusOption && (l.value = t.options.findIndex((te) => !te.disabled)), I != null && I.focusInput && a.value && a.value.focus();
17992
+ p.value = !0, t.shouldAutofocusOption && (u.value = t.options.findIndex((te) => !te.disabled)), I != null && I.focusInput && a.value && a.value.focus();
17993
17993
  }, E = () => {
17994
- p.value = !1, u.value = "";
17994
+ p.value = !1, l.value = "";
17995
17995
  }, P = () => {
17996
17996
  p.value ? E() : k();
17997
17997
  }, F = (I) => {
17998
- I.disabled || (t.isMulti ? o.value.push(I.value) : o.value = I.value, r("optionSelected", I), u.value = "", t.closeOnSelect && (p.value = !1), a.value && a.value.blur());
17998
+ I.disabled || (t.isMulti ? o.value.push(I.value) : o.value = I.value, r("optionSelected", I), l.value = "", t.closeOnSelect && (p.value = !1), a.value && a.value.blur());
17999
17999
  }, G = (I) => {
18000
18000
  t.isMulti && !t.isDisabled && (o.value = o.value.filter((te) => te !== I.value), r("optionDeselected", I));
18001
18001
  }, x = () => {
18002
- t.isMulti ? (o.value = [], r("optionDeselected", null)) : (o.value = void 0, r("optionDeselected", f.value[0])), p.value = !1, u.value = "", a.value && a.value.blur();
18002
+ t.isMulti ? (o.value = [], r("optionDeselected", null)) : (o.value = void 0, r("optionDeselected", f.value[0])), p.value = !1, l.value = "", a.value && a.value.blur();
18003
18003
  }, T = (I) => {
18004
18004
  if (p.value) {
18005
- const te = l.value;
18005
+ const te = u.value;
18006
18006
  if (I.key === "ArrowDown") {
18007
18007
  I.preventDefault();
18008
18008
  const re = m.value.findIndex((Le, de) => !Le.disabled && de > te), Ce = m.value.findIndex((Le) => !Le.disabled);
18009
- l.value = re === -1 ? Ce : re;
18009
+ u.value = re === -1 ? Ce : re;
18010
18010
  }
18011
18011
  if (I.key === "ArrowUp") {
18012
18012
  I.preventDefault();
@@ -18017,26 +18017,26 @@ const rd = /* @__PURE__ */ Mr(ed, [["render", nd], ["__scopeId", "data-v-ed86631
18017
18017
  (Le, de, Ue) => de.disabled ? Le : Ue,
18018
18018
  -1
18019
18019
  );
18020
- l.value = re === -1 ? Ce : re;
18020
+ u.value = re === -1 ? Ce : re;
18021
18021
  }
18022
18022
  if (I.key === "Enter") {
18023
18023
  const re = m.value[te];
18024
18024
  I.preventDefault(), re && F(re);
18025
18025
  }
18026
- if (I.code === "Space" && u.value.length === 0) {
18026
+ if (I.code === "Space" && l.value.length === 0) {
18027
18027
  const re = m.value[te];
18028
18028
  I.preventDefault(), re && F(re);
18029
18029
  }
18030
- I.key === "Escape" && (I.preventDefault(), p.value = !1, u.value = "");
18030
+ I.key === "Escape" && (I.preventDefault(), p.value = !1, l.value = "");
18031
18031
  const fe = t.isMulti ? o.value.length > 0 : !!o.value;
18032
- I.key === "Backspace" && u.value.length === 0 && fe && (I.preventDefault(), t.isMulti ? o.value = o.value.slice(0, -1) : o.value = void 0);
18032
+ I.key === "Backspace" && l.value.length === 0 && fe && (I.preventDefault(), t.isMulti ? o.value = o.value.slice(0, -1) : o.value = void 0);
18033
18033
  }
18034
18034
  }, H = (I) => {
18035
- !p.value && u.value.length === 0 && (I.preventDefault(), I.stopImmediatePropagation(), k());
18035
+ !p.value && l.value.length === 0 && (I.preventDefault(), I.stopImmediatePropagation(), k());
18036
18036
  }, V = (I) => {
18037
18037
  I.key === "Tab" ? E() : I.key === "Space" && H(I);
18038
18038
  }, W = (I) => {
18039
- i.value && !i.value.contains(I.target) && (p.value = !1, u.value = "");
18039
+ i.value && !i.value.contains(I.target) && (p.value = !1, l.value = "");
18040
18040
  }, Z = () => {
18041
18041
  if (i.value) {
18042
18042
  const I = i.value.getBoundingClientRect();
@@ -18048,9 +18048,9 @@ const rd = /* @__PURE__ */ Mr(ed, [["render", nd], ["__scopeId", "data-v-ed86631
18048
18048
  return console.warn("Unable to calculate dynamic menu position because of missing internal DOM reference."), { top: "0px", left: "0px" };
18049
18049
  };
18050
18050
  return io(
18051
- () => u.value,
18051
+ () => l.value,
18052
18052
  () => {
18053
- r("search", u.value), u.value && !p.value && k();
18053
+ r("search", l.value), l.value && !p.value && k();
18054
18054
  }
18055
18055
  ), Di(() => {
18056
18056
  document.addEventListener("click", W), document.addEventListener("keydown", T);
@@ -18062,7 +18062,7 @@ const rd = /* @__PURE__ */ Mr(ed, [["render", nd], ["__scopeId", "data-v-ed86631
18062
18062
  ref_key: "container",
18063
18063
  ref: i,
18064
18064
  dir: "auto",
18065
- class: fn(["vue-select", { open: p.value, typing: p.value && u.value.length > 0, disabled: I.isDisabled }])
18065
+ class: fn(["vue-select", { open: p.value, typing: p.value && l.value.length > 0, disabled: I.isDisabled }])
18066
18066
  }, [
18067
18067
  _("div", {
18068
18068
  class: fn(["control", { focused: p.value }])
@@ -18106,7 +18106,7 @@ const rd = /* @__PURE__ */ Mr(ed, [["render", nd], ["__scopeId", "data-v-ed86631
18106
18106
  id: I.inputId,
18107
18107
  ref_key: "input",
18108
18108
  ref: a,
18109
- "onUpdate:modelValue": te[1] || (te[1] = (de) => u.value = de),
18109
+ "onUpdate:modelValue": te[1] || (te[1] = (de) => l.value = de),
18110
18110
  class: "search-input",
18111
18111
  type: "text",
18112
18112
  "aria-autocomplete": "list",
@@ -18120,7 +18120,7 @@ const rd = /* @__PURE__ */ Mr(ed, [["render", nd], ["__scopeId", "data-v-ed86631
18120
18120
  onMousedown: te[2] || (te[2] = (de) => k()),
18121
18121
  onKeydown: V
18122
18122
  }, null, 40, ad), [
18123
- [ct, u.value]
18123
+ [ct, l.value]
18124
18124
  ])
18125
18125
  ], 10, od),
18126
18126
  _("div", sd, [
@@ -18176,10 +18176,10 @@ const rd = /* @__PURE__ */ Mr(ed, [["render", nd], ["__scopeId", "data-v-ed86631
18176
18176
  (O(!0), U(Fr, null, qr(m.value, (de, Ue) => (O(), ze(Zu, {
18177
18177
  key: Ue,
18178
18178
  type: "button",
18179
- class: fn(["menu-option", { focused: l.value === Ue, selected: de.value === o.value }]),
18179
+ class: fn(["menu-option", { focused: u.value === Ue, selected: de.value === o.value }]),
18180
18180
  menu: s.value,
18181
18181
  index: Ue,
18182
- "is-focused": l.value === Ue,
18182
+ "is-focused": u.value === Ue,
18183
18183
  "is-selected": de.value === o.value,
18184
18184
  "is-disabled": de.disabled || !1,
18185
18185
  onSelect: (Et) => F(de)
@@ -18222,6 +18222,14 @@ const rd = /* @__PURE__ */ Mr(ed, [["render", nd], ["__scopeId", "data-v-ed86631
18222
18222
  loading: !1
18223
18223
  };
18224
18224
  },
18225
+ watch: {
18226
+ "account.lang": {
18227
+ handler(n) {
18228
+ n && (this.updateLang(n), this.display === "npm" && this.$store.commit("setLanguage", n));
18229
+ },
18230
+ immediate: !0
18231
+ }
18232
+ },
18225
18233
  async mounted() {
18226
18234
  this.isLoggedIn || this.$router.push("/login"), this.isEmpty(this.account) && this.$router.push("/account");
18227
18235
  },
@@ -18253,7 +18261,6 @@ const rd = /* @__PURE__ */ Mr(ed, [["render", nd], ["__scopeId", "data-v-ed86631
18253
18261
  class: "button--loading button__loader"
18254
18262
  };
18255
18263
  function Pd(n, e, t, r, o, i) {
18256
- var u, p;
18257
18264
  const a = rn("router-link"), s = rn("VueSelect");
18258
18265
  return O(), U("div", md, [
18259
18266
  t.isModal ? (O(), U("a", {
@@ -18348,7 +18355,7 @@ function Pd(n, e, t, r, o, i) {
18348
18355
  isClearable: !1,
18349
18356
  placeholder: "Select region"
18350
18357
  }, null, 8, ["modelValue"])) : le("", !0),
18351
- _("p", null, "Default currency for this region is " + B((p = (u = n.account.billing) == null ? void 0 : u.currency) == null ? void 0 : p.toUpperCase()), 1),
18358
+ le("", !0),
18352
18359
  _("h3", Sd, B(n.ssoLang[n.appLanguage].app_language), 1),
18353
18360
  gt(s, {
18354
18361
  modelValue: n.account.lang,