@tapni/auth 1.0.16 → 1.0.17

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.
@@ -150,10 +150,10 @@ function Yi(n, e, t) {
150
150
  return (e + t) * 3 / 4 - t;
151
151
  }
152
152
  function Wi(n) {
153
- var e, t = Zo(n), r = t[0], o = t[1], i = new Gi(Yi(n, r, o)), a = 0, s = o > 0 ? r - 4 : r, u;
154
- for (u = 0; u < s; u += 4)
155
- e = bt[n.charCodeAt(u)] << 18 | bt[n.charCodeAt(u + 1)] << 12 | bt[n.charCodeAt(u + 2)] << 6 | bt[n.charCodeAt(u + 3)], i[a++] = e >> 16 & 255, i[a++] = e >> 8 & 255, i[a++] = e & 255;
156
- return o === 2 && (e = bt[n.charCodeAt(u)] << 2 | bt[n.charCodeAt(u + 1)] >> 4, i[a++] = e & 255), o === 1 && (e = bt[n.charCodeAt(u)] << 10 | bt[n.charCodeAt(u + 1)] << 4 | bt[n.charCodeAt(u + 2)] >> 2, i[a++] = e >> 8 & 255, i[a++] = e & 255), i;
153
+ var e, t = Zo(n), r = t[0], o = t[1], i = new Gi(Yi(n, r, o)), a = 0, s = o > 0 ? r - 4 : r, l;
154
+ for (l = 0; l < s; l += 4)
155
+ e = bt[n.charCodeAt(l)] << 18 | bt[n.charCodeAt(l + 1)] << 12 | bt[n.charCodeAt(l + 2)] << 6 | bt[n.charCodeAt(l + 3)], i[a++] = e >> 16 & 255, i[a++] = e >> 8 & 255, i[a++] = e & 255;
156
+ return o === 2 && (e = bt[n.charCodeAt(l)] << 2 | bt[n.charCodeAt(l + 1)] >> 4, i[a++] = e & 255), o === 1 && (e = bt[n.charCodeAt(l)] << 10 | bt[n.charCodeAt(l + 1)] << 4 | bt[n.charCodeAt(l + 2)] >> 2, i[a++] = e >> 8 & 255, i[a++] = e & 255), i;
157
157
  }
158
158
  function Ji(n) {
159
159
  return Gt[n >> 18 & 63] + Gt[n >> 12 & 63] + Gt[n >> 6 & 63] + Gt[n & 63];
@@ -175,23 +175,23 @@ function Xi(n) {
175
175
  var io = {};
176
176
  /*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */
177
177
  io.read = function(n, e, t, r, o) {
178
- 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];
179
- for (m += f, i = k & (1 << -l) - 1, k >>= -l, l += s; l > 0; i = i * 256 + n[e + m], m += f, l -= 8)
178
+ 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];
179
+ for (m += f, i = k & (1 << -u) - 1, k >>= -u, u += s; u > 0; i = i * 256 + n[e + m], m += f, u -= 8)
180
180
  ;
181
- for (a = i & (1 << -l) - 1, i >>= -l, l += r; l > 0; a = a * 256 + n[e + m], m += f, l -= 8)
181
+ for (a = i & (1 << -u) - 1, i >>= -u, u += r; u > 0; a = a * 256 + n[e + m], m += f, u -= 8)
182
182
  ;
183
183
  if (i === 0)
184
184
  i = 1 - p;
185
185
  else {
186
- if (i === u)
186
+ if (i === l)
187
187
  return a ? NaN : (k ? -1 : 1) * (1 / 0);
188
188
  a = a + Math.pow(2, r), i = i - p;
189
189
  }
190
190
  return (k ? -1 : 1) * a * Math.pow(2, i - r);
191
191
  };
192
192
  io.write = function(n, e, t, r, o, i) {
193
- 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, R = e < 0 || e === 0 && 1 / e < 0 ? 1 : 0;
194
- 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)
193
+ 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, R = e < 0 || e === 0 && 1 / e < 0 ? 1 : 0;
194
+ 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)
195
195
  ;
196
196
  for (a = a << o | s, p += o; p > 0; n[t + k] = a & 255, k += E, a /= 256, p -= 8)
197
197
  ;
@@ -205,14 +205,14 @@ io.write = function(n, e, t, r, o, i) {
205
205
  */
206
206
  (function(n) {
207
207
  const e = Ar, t = io, r = typeof Symbol == "function" && typeof Symbol.for == "function" ? Symbol.for("nodejs.util.inspect.custom") : null;
208
- n.Buffer = l, n.SlowBuffer = G, n.INSPECT_MAX_BYTES = 50;
208
+ n.Buffer = u, n.SlowBuffer = G, n.INSPECT_MAX_BYTES = 50;
209
209
  const o = 2147483647;
210
210
  n.kMaxLength = o;
211
211
  const { Uint8Array: i, ArrayBuffer: a, SharedArrayBuffer: s } = globalThis;
212
- l.TYPED_ARRAY_SUPPORT = u(), !l.TYPED_ARRAY_SUPPORT && typeof console < "u" && typeof console.error == "function" && console.error(
212
+ u.TYPED_ARRAY_SUPPORT = l(), !u.TYPED_ARRAY_SUPPORT && typeof console < "u" && typeof console.error == "function" && console.error(
213
213
  "This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support."
214
214
  );
215
- function u() {
215
+ function l() {
216
216
  try {
217
217
  const h = new i(1), c = { foo: function() {
218
218
  return 42;
@@ -222,16 +222,16 @@ io.write = function(n, e, t, r, o, i) {
222
222
  return !1;
223
223
  }
224
224
  }
225
- Object.defineProperty(l.prototype, "parent", {
225
+ Object.defineProperty(u.prototype, "parent", {
226
226
  enumerable: !0,
227
227
  get: function() {
228
- if (l.isBuffer(this))
228
+ if (u.isBuffer(this))
229
229
  return this.buffer;
230
230
  }
231
- }), Object.defineProperty(l.prototype, "offset", {
231
+ }), Object.defineProperty(u.prototype, "offset", {
232
232
  enumerable: !0,
233
233
  get: function() {
234
- if (l.isBuffer(this))
234
+ if (u.isBuffer(this))
235
235
  return this.byteOffset;
236
236
  }
237
237
  });
@@ -239,9 +239,9 @@ io.write = function(n, e, t, r, o, i) {
239
239
  if (h > o)
240
240
  throw new RangeError('The value "' + h + '" is invalid for option "size"');
241
241
  const c = new i(h);
242
- return Object.setPrototypeOf(c, l.prototype), c;
242
+ return Object.setPrototypeOf(c, u.prototype), c;
243
243
  }
244
- function l(h, c, d) {
244
+ function u(h, c, d) {
245
245
  if (typeof h == "number") {
246
246
  if (typeof c == "string")
247
247
  throw new TypeError(
@@ -251,7 +251,7 @@ io.write = function(n, e, t, r, o, i) {
251
251
  }
252
252
  return m(h, c, d);
253
253
  }
254
- l.poolSize = 8192;
254
+ u.poolSize = 8192;
255
255
  function m(h, c, d) {
256
256
  if (typeof h == "string")
257
257
  return R(h, c);
@@ -269,18 +269,18 @@ io.write = function(n, e, t, r, o, i) {
269
269
  );
270
270
  const g = h.valueOf && h.valueOf();
271
271
  if (g != null && g !== h)
272
- return l.from(g, c, d);
272
+ return u.from(g, c, d);
273
273
  const b = T(h);
274
274
  if (b) return b;
275
275
  if (typeof Symbol < "u" && Symbol.toPrimitive != null && typeof h[Symbol.toPrimitive] == "function")
276
- return l.from(h[Symbol.toPrimitive]("string"), c, d);
276
+ return u.from(h[Symbol.toPrimitive]("string"), c, d);
277
277
  throw new TypeError(
278
278
  "The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type " + typeof h
279
279
  );
280
280
  }
281
- l.from = function(h, c, d) {
281
+ u.from = function(h, c, d) {
282
282
  return m(h, c, d);
283
- }, Object.setPrototypeOf(l.prototype, i.prototype), Object.setPrototypeOf(l, i);
283
+ }, Object.setPrototypeOf(u.prototype, i.prototype), Object.setPrototypeOf(u, i);
284
284
  function f(h) {
285
285
  if (typeof h != "number")
286
286
  throw new TypeError('"size" argument must be of type number');
@@ -290,19 +290,19 @@ io.write = function(n, e, t, r, o, i) {
290
290
  function k(h, c, d) {
291
291
  return f(h), h <= 0 ? p(h) : c !== void 0 ? typeof d == "string" ? p(h).fill(c, d) : p(h).fill(c) : p(h);
292
292
  }
293
- l.alloc = function(h, c, d) {
293
+ u.alloc = function(h, c, d) {
294
294
  return k(h, c, d);
295
295
  };
296
296
  function E(h) {
297
297
  return f(h), p(h < 0 ? 0 : H(h) | 0);
298
298
  }
299
- l.allocUnsafe = function(h) {
299
+ u.allocUnsafe = function(h) {
300
300
  return E(h);
301
- }, l.allocUnsafeSlow = function(h) {
301
+ }, u.allocUnsafeSlow = function(h) {
302
302
  return E(h);
303
303
  };
304
304
  function R(h, c) {
305
- if ((typeof c != "string" || c === "") && (c = "utf8"), !l.isEncoding(c))
305
+ if ((typeof c != "string" || c === "") && (c = "utf8"), !u.isEncoding(c))
306
306
  throw new TypeError("Unknown encoding: " + c);
307
307
  const d = $(h, c) | 0;
308
308
  let g = p(d);
@@ -328,10 +328,10 @@ io.write = function(n, e, t, r, o, i) {
328
328
  if (h.byteLength < c + (d || 0))
329
329
  throw new RangeError('"length" is outside of buffer bounds');
330
330
  let g;
331
- 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;
331
+ 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;
332
332
  }
333
333
  function T(h) {
334
- if (l.isBuffer(h)) {
334
+ if (u.isBuffer(h)) {
335
335
  const c = H(h.length) | 0, d = p(c);
336
336
  return d.length === 0 || h.copy(d, 0, 0, c), d;
337
337
  }
@@ -346,12 +346,12 @@ io.write = function(n, e, t, r, o, i) {
346
346
  return h | 0;
347
347
  }
348
348
  function G(h) {
349
- return +h != h && (h = 0), l.alloc(+h);
349
+ return +h != h && (h = 0), u.alloc(+h);
350
350
  }
351
- l.isBuffer = function(c) {
352
- return c != null && c._isBuffer === !0 && c !== l.prototype;
353
- }, l.compare = function(c, d) {
354
- if (xe(c, i) && (c = l.from(c, c.offset, c.byteLength)), xe(d, i) && (d = l.from(d, d.offset, d.byteLength)), !l.isBuffer(c) || !l.isBuffer(d))
351
+ u.isBuffer = function(c) {
352
+ return c != null && c._isBuffer === !0 && c !== u.prototype;
353
+ }, u.compare = function(c, d) {
354
+ if (xe(c, i) && (c = u.from(c, c.offset, c.byteLength)), xe(d, i) && (d = u.from(d, d.offset, d.byteLength)), !u.isBuffer(c) || !u.isBuffer(d))
355
355
  throw new TypeError(
356
356
  'The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array'
357
357
  );
@@ -363,7 +363,7 @@ io.write = function(n, e, t, r, o, i) {
363
363
  break;
364
364
  }
365
365
  return g < b ? -1 : b < g ? 1 : 0;
366
- }, l.isEncoding = function(c) {
366
+ }, u.isEncoding = function(c) {
367
367
  switch (String(c).toLowerCase()) {
368
368
  case "hex":
369
369
  case "utf8":
@@ -380,26 +380,26 @@ io.write = function(n, e, t, r, o, i) {
380
380
  default:
381
381
  return !1;
382
382
  }
383
- }, l.concat = function(c, d) {
383
+ }, u.concat = function(c, d) {
384
384
  if (!Array.isArray(c))
385
385
  throw new TypeError('"list" argument must be an Array of Buffers');
386
386
  if (c.length === 0)
387
- return l.alloc(0);
387
+ return u.alloc(0);
388
388
  let g;
389
389
  if (d === void 0)
390
390
  for (d = 0, g = 0; g < c.length; ++g)
391
391
  d += c[g].length;
392
- const b = l.allocUnsafe(d);
392
+ const b = u.allocUnsafe(d);
393
393
  let S = 0;
394
394
  for (g = 0; g < c.length; ++g) {
395
395
  let P = c[g];
396
396
  if (xe(P, i))
397
- S + P.length > b.length ? (l.isBuffer(P) || (P = l.from(P)), P.copy(b, S)) : i.prototype.set.call(
397
+ S + P.length > b.length ? (u.isBuffer(P) || (P = u.from(P)), P.copy(b, S)) : i.prototype.set.call(
398
398
  b,
399
399
  P,
400
400
  S
401
401
  );
402
- else if (l.isBuffer(P))
402
+ else if (u.isBuffer(P))
403
403
  P.copy(b, S);
404
404
  else
405
405
  throw new TypeError('"list" argument must be an Array of Buffers');
@@ -408,7 +408,7 @@ io.write = function(n, e, t, r, o, i) {
408
408
  return b;
409
409
  };
410
410
  function $(h, c) {
411
- if (l.isBuffer(h))
411
+ if (u.isBuffer(h))
412
412
  return h.length;
413
413
  if (a.isView(h) || xe(h, a))
414
414
  return h.byteLength;
@@ -443,7 +443,7 @@ io.write = function(n, e, t, r, o, i) {
443
443
  c = ("" + c).toLowerCase(), b = !0;
444
444
  }
445
445
  }
446
- l.byteLength = $;
446
+ u.byteLength = $;
447
447
  function te(h, c, d) {
448
448
  let g = !1;
449
449
  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))
@@ -472,44 +472,44 @@ io.write = function(n, e, t, r, o, i) {
472
472
  h = (h + "").toLowerCase(), g = !0;
473
473
  }
474
474
  }
475
- l.prototype._isBuffer = !0;
475
+ u.prototype._isBuffer = !0;
476
476
  function Z(h, c, d) {
477
477
  const g = h[c];
478
478
  h[c] = h[d], h[d] = g;
479
479
  }
480
- l.prototype.swap16 = function() {
480
+ u.prototype.swap16 = function() {
481
481
  const c = this.length;
482
482
  if (c % 2 !== 0)
483
483
  throw new RangeError("Buffer size must be a multiple of 16-bits");
484
484
  for (let d = 0; d < c; d += 2)
485
485
  Z(this, d, d + 1);
486
486
  return this;
487
- }, l.prototype.swap32 = function() {
487
+ }, u.prototype.swap32 = function() {
488
488
  const c = this.length;
489
489
  if (c % 4 !== 0)
490
490
  throw new RangeError("Buffer size must be a multiple of 32-bits");
491
491
  for (let d = 0; d < c; d += 4)
492
492
  Z(this, d, d + 3), Z(this, d + 1, d + 2);
493
493
  return this;
494
- }, l.prototype.swap64 = function() {
494
+ }, u.prototype.swap64 = function() {
495
495
  const c = this.length;
496
496
  if (c % 8 !== 0)
497
497
  throw new RangeError("Buffer size must be a multiple of 64-bits");
498
498
  for (let d = 0; d < c; d += 8)
499
499
  Z(this, d, d + 7), Z(this, d + 1, d + 6), Z(this, d + 2, d + 5), Z(this, d + 3, d + 4);
500
500
  return this;
501
- }, l.prototype.toString = function() {
501
+ }, u.prototype.toString = function() {
502
502
  const c = this.length;
503
503
  return c === 0 ? "" : arguments.length === 0 ? Ot(this, 0, c) : te.apply(this, arguments);
504
- }, l.prototype.toLocaleString = l.prototype.toString, l.prototype.equals = function(c) {
505
- if (!l.isBuffer(c)) throw new TypeError("Argument must be a Buffer");
506
- return this === c ? !0 : l.compare(this, c) === 0;
507
- }, l.prototype.inspect = function() {
504
+ }, u.prototype.toLocaleString = u.prototype.toString, u.prototype.equals = function(c) {
505
+ if (!u.isBuffer(c)) throw new TypeError("Argument must be a Buffer");
506
+ return this === c ? !0 : u.compare(this, c) === 0;
507
+ }, u.prototype.inspect = function() {
508
508
  let c = "";
509
509
  const d = n.INSPECT_MAX_BYTES;
510
510
  return c = this.toString("hex", 0, d).replace(/(.{2})/g, "$1 ").trim(), this.length > d && (c += " ... "), "<Buffer " + c + ">";
511
- }, r && (l.prototype[r] = l.prototype.inspect), l.prototype.compare = function(c, d, g, b, S) {
512
- if (xe(c, i) && (c = l.from(c, c.offset, c.byteLength)), !l.isBuffer(c))
511
+ }, r && (u.prototype[r] = u.prototype.inspect), u.prototype.compare = function(c, d, g, b, S) {
512
+ if (xe(c, i) && (c = u.from(c, c.offset, c.byteLength)), !u.isBuffer(c))
513
513
  throw new TypeError(
514
514
  'The "target" argument must be one of type Buffer or Uint8Array. Received type ' + typeof c
515
515
  );
@@ -539,7 +539,7 @@ io.write = function(n, e, t, r, o, i) {
539
539
  } else if (d < 0)
540
540
  if (b) d = 0;
541
541
  else return -1;
542
- if (typeof c == "string" && (c = l.from(c, g)), l.isBuffer(c))
542
+ if (typeof c == "string" && (c = u.from(c, g)), u.isBuffer(c))
543
543
  return c.length === 0 ? -1 : Ie(h, c, d, g, b);
544
544
  if (typeof c == "number")
545
545
  return c = c & 255, typeof i.prototype.indexOf == "function" ? b ? i.prototype.indexOf.call(h, c, d) : i.prototype.lastIndexOf.call(h, c, d) : Ie(h, [c], d, g, b);
@@ -575,11 +575,11 @@ io.write = function(n, e, t, r, o, i) {
575
575
  }
576
576
  return -1;
577
577
  }
578
- l.prototype.includes = function(c, d, g) {
578
+ u.prototype.includes = function(c, d, g) {
579
579
  return this.indexOf(c, d, g) !== -1;
580
- }, l.prototype.indexOf = function(c, d, g) {
580
+ }, u.prototype.indexOf = function(c, d, g) {
581
581
  return ye(this, c, d, g, !0);
582
- }, l.prototype.lastIndexOf = function(c, d, g) {
582
+ }, u.prototype.lastIndexOf = function(c, d, g) {
583
583
  return ye(this, c, d, g, !1);
584
584
  };
585
585
  function we(h, c, d, g) {
@@ -608,7 +608,7 @@ io.write = function(n, e, t, r, o, i) {
608
608
  function on(h, c, d, g) {
609
609
  return yt(St(c, h.length - d), h, d, g);
610
610
  }
611
- l.prototype.write = function(c, d, g, b) {
611
+ u.prototype.write = function(c, d, g, b) {
612
612
  if (d === void 0)
613
613
  b = "utf8", g = this.length, d = 0;
614
614
  else if (g === void 0 && typeof d == "string")
@@ -646,7 +646,7 @@ io.write = function(n, e, t, r, o, i) {
646
646
  if (P) throw new TypeError("Unknown encoding: " + b);
647
647
  b = ("" + b).toLowerCase(), P = !0;
648
648
  }
649
- }, l.prototype.toJSON = function() {
649
+ }, u.prototype.toJSON = function() {
650
650
  return {
651
651
  type: "Buffer",
652
652
  data: Array.prototype.slice.call(this._arr || this, 0)
@@ -724,104 +724,104 @@ io.write = function(n, e, t, r, o, i) {
724
724
  b += String.fromCharCode(g[S] + g[S + 1] * 256);
725
725
  return b;
726
726
  }
727
- l.prototype.slice = function(c, d) {
727
+ u.prototype.slice = function(c, d) {
728
728
  const g = this.length;
729
729
  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);
730
730
  const b = this.subarray(c, d);
731
- return Object.setPrototypeOf(b, l.prototype), b;
731
+ return Object.setPrototypeOf(b, u.prototype), b;
732
732
  };
733
733
  function Te(h, c, d) {
734
734
  if (h % 1 !== 0 || h < 0) throw new RangeError("offset is not uint");
735
735
  if (h + c > d) throw new RangeError("Trying to access beyond buffer length");
736
736
  }
737
- l.prototype.readUintLE = l.prototype.readUIntLE = function(c, d, g) {
737
+ u.prototype.readUintLE = u.prototype.readUIntLE = function(c, d, g) {
738
738
  c = c >>> 0, d = d >>> 0, g || Te(c, d, this.length);
739
739
  let b = this[c], S = 1, P = 0;
740
740
  for (; ++P < d && (S *= 256); )
741
741
  b += this[c + P] * S;
742
742
  return b;
743
- }, l.prototype.readUintBE = l.prototype.readUIntBE = function(c, d, g) {
743
+ }, u.prototype.readUintBE = u.prototype.readUIntBE = function(c, d, g) {
744
744
  c = c >>> 0, d = d >>> 0, g || Te(c, d, this.length);
745
745
  let b = this[c + --d], S = 1;
746
746
  for (; d > 0 && (S *= 256); )
747
747
  b += this[c + --d] * S;
748
748
  return b;
749
- }, l.prototype.readUint8 = l.prototype.readUInt8 = function(c, d) {
749
+ }, u.prototype.readUint8 = u.prototype.readUInt8 = function(c, d) {
750
750
  return c = c >>> 0, d || Te(c, 1, this.length), this[c];
751
- }, l.prototype.readUint16LE = l.prototype.readUInt16LE = function(c, d) {
751
+ }, u.prototype.readUint16LE = u.prototype.readUInt16LE = function(c, d) {
752
752
  return c = c >>> 0, d || Te(c, 2, this.length), this[c] | this[c + 1] << 8;
753
- }, l.prototype.readUint16BE = l.prototype.readUInt16BE = function(c, d) {
753
+ }, u.prototype.readUint16BE = u.prototype.readUInt16BE = function(c, d) {
754
754
  return c = c >>> 0, d || Te(c, 2, this.length), this[c] << 8 | this[c + 1];
755
- }, l.prototype.readUint32LE = l.prototype.readUInt32LE = function(c, d) {
755
+ }, u.prototype.readUint32LE = u.prototype.readUInt32LE = function(c, d) {
756
756
  return c = c >>> 0, d || Te(c, 4, this.length), (this[c] | this[c + 1] << 8 | this[c + 2] << 16) + this[c + 3] * 16777216;
757
- }, l.prototype.readUint32BE = l.prototype.readUInt32BE = function(c, d) {
757
+ }, u.prototype.readUint32BE = u.prototype.readUInt32BE = function(c, d) {
758
758
  return c = c >>> 0, d || Te(c, 4, this.length), this[c] * 16777216 + (this[c + 1] << 16 | this[c + 2] << 8 | this[c + 3]);
759
- }, l.prototype.readBigUInt64LE = Ke(function(c) {
759
+ }, u.prototype.readBigUInt64LE = Ke(function(c) {
760
760
  c = c >>> 0, Pe(c, "offset");
761
761
  const d = this[c], g = this[c + 7];
762
762
  (d === void 0 || g === void 0) && pt(c, this.length - 8);
763
763
  const b = 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;
764
764
  return BigInt(b) + (BigInt(S) << BigInt(32));
765
- }), l.prototype.readBigUInt64BE = Ke(function(c) {
765
+ }), u.prototype.readBigUInt64BE = Ke(function(c) {
766
766
  c = c >>> 0, Pe(c, "offset");
767
767
  const d = this[c], g = this[c + 7];
768
768
  (d === void 0 || g === void 0) && pt(c, this.length - 8);
769
769
  const b = 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;
770
770
  return (BigInt(b) << BigInt(32)) + BigInt(S);
771
- }), l.prototype.readIntLE = function(c, d, g) {
771
+ }), u.prototype.readIntLE = function(c, d, g) {
772
772
  c = c >>> 0, d = d >>> 0, g || Te(c, d, this.length);
773
773
  let b = this[c], S = 1, P = 0;
774
774
  for (; ++P < d && (S *= 256); )
775
775
  b += this[c + P] * S;
776
776
  return S *= 128, b >= S && (b -= Math.pow(2, 8 * d)), b;
777
- }, l.prototype.readIntBE = function(c, d, g) {
777
+ }, u.prototype.readIntBE = function(c, d, g) {
778
778
  c = c >>> 0, d = d >>> 0, g || Te(c, d, this.length);
779
779
  let b = d, S = 1, P = this[c + --b];
780
780
  for (; b > 0 && (S *= 256); )
781
781
  P += this[c + --b] * S;
782
782
  return S *= 128, P >= S && (P -= Math.pow(2, 8 * d)), P;
783
- }, l.prototype.readInt8 = function(c, d) {
783
+ }, u.prototype.readInt8 = function(c, d) {
784
784
  return c = c >>> 0, d || Te(c, 1, this.length), this[c] & 128 ? (255 - this[c] + 1) * -1 : this[c];
785
- }, l.prototype.readInt16LE = function(c, d) {
785
+ }, u.prototype.readInt16LE = function(c, d) {
786
786
  c = c >>> 0, d || Te(c, 2, this.length);
787
787
  const g = this[c] | this[c + 1] << 8;
788
788
  return g & 32768 ? g | 4294901760 : g;
789
- }, l.prototype.readInt16BE = function(c, d) {
789
+ }, u.prototype.readInt16BE = function(c, d) {
790
790
  c = c >>> 0, d || Te(c, 2, this.length);
791
791
  const g = this[c + 1] | this[c] << 8;
792
792
  return g & 32768 ? g | 4294901760 : g;
793
- }, l.prototype.readInt32LE = function(c, d) {
793
+ }, u.prototype.readInt32LE = function(c, d) {
794
794
  return c = c >>> 0, d || Te(c, 4, this.length), this[c] | this[c + 1] << 8 | this[c + 2] << 16 | this[c + 3] << 24;
795
- }, l.prototype.readInt32BE = function(c, d) {
795
+ }, u.prototype.readInt32BE = function(c, d) {
796
796
  return c = c >>> 0, d || Te(c, 4, this.length), this[c] << 24 | this[c + 1] << 16 | this[c + 2] << 8 | this[c + 3];
797
- }, l.prototype.readBigInt64LE = Ke(function(c) {
797
+ }, u.prototype.readBigInt64LE = Ke(function(c) {
798
798
  c = c >>> 0, Pe(c, "offset");
799
799
  const d = this[c], g = this[c + 7];
800
800
  (d === void 0 || g === void 0) && pt(c, this.length - 8);
801
801
  const b = this[c + 4] + this[c + 5] * 2 ** 8 + this[c + 6] * 2 ** 16 + (g << 24);
802
802
  return (BigInt(b) << BigInt(32)) + BigInt(d + this[++c] * 2 ** 8 + this[++c] * 2 ** 16 + this[++c] * 2 ** 24);
803
- }), l.prototype.readBigInt64BE = Ke(function(c) {
803
+ }), u.prototype.readBigInt64BE = Ke(function(c) {
804
804
  c = c >>> 0, Pe(c, "offset");
805
805
  const d = this[c], g = this[c + 7];
806
806
  (d === void 0 || g === void 0) && pt(c, this.length - 8);
807
807
  const b = (d << 24) + // Overflow
808
808
  this[++c] * 2 ** 16 + this[++c] * 2 ** 8 + this[++c];
809
809
  return (BigInt(b) << BigInt(32)) + BigInt(this[++c] * 2 ** 24 + this[++c] * 2 ** 16 + this[++c] * 2 ** 8 + g);
810
- }), l.prototype.readFloatLE = function(c, d) {
810
+ }), u.prototype.readFloatLE = function(c, d) {
811
811
  return c = c >>> 0, d || Te(c, 4, this.length), t.read(this, c, !0, 23, 4);
812
- }, l.prototype.readFloatBE = function(c, d) {
812
+ }, u.prototype.readFloatBE = function(c, d) {
813
813
  return c = c >>> 0, d || Te(c, 4, this.length), t.read(this, c, !1, 23, 4);
814
- }, l.prototype.readDoubleLE = function(c, d) {
814
+ }, u.prototype.readDoubleLE = function(c, d) {
815
815
  return c = c >>> 0, d || Te(c, 8, this.length), t.read(this, c, !0, 52, 8);
816
- }, l.prototype.readDoubleBE = function(c, d) {
816
+ }, u.prototype.readDoubleBE = function(c, d) {
817
817
  return c = c >>> 0, d || Te(c, 8, this.length), t.read(this, c, !1, 52, 8);
818
818
  };
819
819
  function Re(h, c, d, g, b, S) {
820
- if (!l.isBuffer(h)) throw new TypeError('"buffer" argument must be a Buffer instance');
820
+ if (!u.isBuffer(h)) throw new TypeError('"buffer" argument must be a Buffer instance');
821
821
  if (c > b || c < S) throw new RangeError('"value" argument is out of bounds');
822
822
  if (d + g > h.length) throw new RangeError("Index out of range");
823
823
  }
824
- l.prototype.writeUintLE = l.prototype.writeUIntLE = function(c, d, g, b) {
824
+ u.prototype.writeUintLE = u.prototype.writeUIntLE = function(c, d, g, b) {
825
825
  if (c = +c, d = d >>> 0, g = g >>> 0, !b) {
826
826
  const se = Math.pow(2, 8 * g) - 1;
827
827
  Re(this, c, d, g, se, 0);
@@ -830,7 +830,7 @@ io.write = function(n, e, t, r, o, i) {
830
830
  for (this[d] = c & 255; ++P < g && (S *= 256); )
831
831
  this[d + P] = c / S & 255;
832
832
  return d + g;
833
- }, l.prototype.writeUintBE = l.prototype.writeUIntBE = function(c, d, g, b) {
833
+ }, u.prototype.writeUintBE = u.prototype.writeUIntBE = function(c, d, g, b) {
834
834
  if (c = +c, d = d >>> 0, g = g >>> 0, !b) {
835
835
  const se = Math.pow(2, 8 * g) - 1;
836
836
  Re(this, c, d, g, se, 0);
@@ -839,15 +839,15 @@ io.write = function(n, e, t, r, o, i) {
839
839
  for (this[d + S] = c & 255; --S >= 0 && (P *= 256); )
840
840
  this[d + S] = c / P & 255;
841
841
  return d + g;
842
- }, l.prototype.writeUint8 = l.prototype.writeUInt8 = function(c, d, g) {
842
+ }, u.prototype.writeUint8 = u.prototype.writeUInt8 = function(c, d, g) {
843
843
  return c = +c, d = d >>> 0, g || Re(this, c, d, 1, 255, 0), this[d] = c & 255, d + 1;
844
- }, l.prototype.writeUint16LE = l.prototype.writeUInt16LE = function(c, d, g) {
844
+ }, u.prototype.writeUint16LE = u.prototype.writeUInt16LE = function(c, d, g) {
845
845
  return c = +c, d = d >>> 0, g || Re(this, c, d, 2, 65535, 0), this[d] = c & 255, this[d + 1] = c >>> 8, d + 2;
846
- }, l.prototype.writeUint16BE = l.prototype.writeUInt16BE = function(c, d, g) {
846
+ }, u.prototype.writeUint16BE = u.prototype.writeUInt16BE = function(c, d, g) {
847
847
  return c = +c, d = d >>> 0, g || Re(this, c, d, 2, 65535, 0), this[d] = c >>> 8, this[d + 1] = c & 255, d + 2;
848
- }, l.prototype.writeUint32LE = l.prototype.writeUInt32LE = function(c, d, g) {
848
+ }, u.prototype.writeUint32LE = u.prototype.writeUInt32LE = function(c, d, g) {
849
849
  return c = +c, d = d >>> 0, g || Re(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;
850
- }, l.prototype.writeUint32BE = l.prototype.writeUInt32BE = function(c, d, g) {
850
+ }, u.prototype.writeUint32BE = u.prototype.writeUInt32BE = function(c, d, g) {
851
851
  return c = +c, d = d >>> 0, g || Re(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;
852
852
  };
853
853
  function Wt(h, c, d, g, b) {
@@ -864,11 +864,11 @@ io.write = function(n, e, t, r, o, i) {
864
864
  let P = Number(c >> BigInt(32) & BigInt(4294967295));
865
865
  return h[d + 3] = P, P = P >> 8, h[d + 2] = P, P = P >> 8, h[d + 1] = P, P = P >> 8, h[d] = P, d + 8;
866
866
  }
867
- l.prototype.writeBigUInt64LE = Ke(function(c, d = 0) {
867
+ u.prototype.writeBigUInt64LE = Ke(function(c, d = 0) {
868
868
  return Wt(this, c, d, BigInt(0), BigInt("0xffffffffffffffff"));
869
- }), l.prototype.writeBigUInt64BE = Ke(function(c, d = 0) {
869
+ }), u.prototype.writeBigUInt64BE = Ke(function(c, d = 0) {
870
870
  return qe(this, c, d, BigInt(0), BigInt("0xffffffffffffffff"));
871
- }), l.prototype.writeIntLE = function(c, d, g, b) {
871
+ }), u.prototype.writeIntLE = function(c, d, g, b) {
872
872
  if (c = +c, d = d >>> 0, !b) {
873
873
  const be = Math.pow(2, 8 * g - 1);
874
874
  Re(this, c, d, g, be - 1, -be);
@@ -877,7 +877,7 @@ io.write = function(n, e, t, r, o, i) {
877
877
  for (this[d] = c & 255; ++S < g && (P *= 256); )
878
878
  c < 0 && se === 0 && this[d + S - 1] !== 0 && (se = 1), this[d + S] = (c / P >> 0) - se & 255;
879
879
  return d + g;
880
- }, l.prototype.writeIntBE = function(c, d, g, b) {
880
+ }, u.prototype.writeIntBE = function(c, d, g, b) {
881
881
  if (c = +c, d = d >>> 0, !b) {
882
882
  const be = Math.pow(2, 8 * g - 1);
883
883
  Re(this, c, d, g, be - 1, -be);
@@ -886,19 +886,19 @@ io.write = function(n, e, t, r, o, i) {
886
886
  for (this[d + S] = c & 255; --S >= 0 && (P *= 256); )
887
887
  c < 0 && se === 0 && this[d + S + 1] !== 0 && (se = 1), this[d + S] = (c / P >> 0) - se & 255;
888
888
  return d + g;
889
- }, l.prototype.writeInt8 = function(c, d, g) {
889
+ }, u.prototype.writeInt8 = function(c, d, g) {
890
890
  return c = +c, d = d >>> 0, g || Re(this, c, d, 1, 127, -128), c < 0 && (c = 255 + c + 1), this[d] = c & 255, d + 1;
891
- }, l.prototype.writeInt16LE = function(c, d, g) {
891
+ }, u.prototype.writeInt16LE = function(c, d, g) {
892
892
  return c = +c, d = d >>> 0, g || Re(this, c, d, 2, 32767, -32768), this[d] = c & 255, this[d + 1] = c >>> 8, d + 2;
893
- }, l.prototype.writeInt16BE = function(c, d, g) {
893
+ }, u.prototype.writeInt16BE = function(c, d, g) {
894
894
  return c = +c, d = d >>> 0, g || Re(this, c, d, 2, 32767, -32768), this[d] = c >>> 8, this[d + 1] = c & 255, d + 2;
895
- }, l.prototype.writeInt32LE = function(c, d, g) {
895
+ }, u.prototype.writeInt32LE = function(c, d, g) {
896
896
  return c = +c, d = d >>> 0, g || Re(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;
897
- }, l.prototype.writeInt32BE = function(c, d, g) {
897
+ }, u.prototype.writeInt32BE = function(c, d, g) {
898
898
  return c = +c, d = d >>> 0, g || Re(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;
899
- }, l.prototype.writeBigInt64LE = Ke(function(c, d = 0) {
899
+ }, u.prototype.writeBigInt64LE = Ke(function(c, d = 0) {
900
900
  return Wt(this, c, d, -BigInt("0x8000000000000000"), BigInt("0x7fffffffffffffff"));
901
- }), l.prototype.writeBigInt64BE = Ke(function(c, d = 0) {
901
+ }), u.prototype.writeBigInt64BE = Ke(function(c, d = 0) {
902
902
  return qe(this, c, d, -BigInt("0x8000000000000000"), BigInt("0x7fffffffffffffff"));
903
903
  });
904
904
  function ze(h, c, d, g, b, S) {
@@ -908,20 +908,20 @@ io.write = function(n, e, t, r, o, i) {
908
908
  function Lt(h, c, d, g, b) {
909
909
  return c = +c, d = d >>> 0, b || ze(h, c, d, 4), t.write(h, c, d, g, 23, 4), d + 4;
910
910
  }
911
- l.prototype.writeFloatLE = function(c, d, g) {
911
+ u.prototype.writeFloatLE = function(c, d, g) {
912
912
  return Lt(this, c, d, !0, g);
913
- }, l.prototype.writeFloatBE = function(c, d, g) {
913
+ }, u.prototype.writeFloatBE = function(c, d, g) {
914
914
  return Lt(this, c, d, !1, g);
915
915
  };
916
916
  function Tt(h, c, d, g, b) {
917
917
  return c = +c, d = d >>> 0, b || ze(h, c, d, 8), t.write(h, c, d, g, 52, 8), d + 8;
918
918
  }
919
- l.prototype.writeDoubleLE = function(c, d, g) {
919
+ u.prototype.writeDoubleLE = function(c, d, g) {
920
920
  return Tt(this, c, d, !0, g);
921
- }, l.prototype.writeDoubleBE = function(c, d, g) {
921
+ }, u.prototype.writeDoubleBE = function(c, d, g) {
922
922
  return Tt(this, c, d, !1, g);
923
- }, l.prototype.copy = function(c, d, g, b) {
924
- if (!l.isBuffer(c)) throw new TypeError("argument should be a Buffer");
923
+ }, u.prototype.copy = function(c, d, g, b) {
924
+ if (!u.isBuffer(c)) throw new TypeError("argument should be a Buffer");
925
925
  if (g || (g = 0), !b && b !== 0 && (b = this.length), d >= c.length && (d = c.length), d || (d = 0), b > 0 && b < g && (b = g), b === g || c.length === 0 || this.length === 0) return 0;
926
926
  if (d < 0)
927
927
  throw new RangeError("targetStart out of bounds");
@@ -934,11 +934,11 @@ io.write = function(n, e, t, r, o, i) {
934
934
  this.subarray(g, b),
935
935
  d
936
936
  ), S;
937
- }, l.prototype.fill = function(c, d, g, b) {
937
+ }, u.prototype.fill = function(c, d, g, b) {
938
938
  if (typeof c == "string") {
939
939
  if (typeof d == "string" ? (b = d, d = 0, g = this.length) : typeof g == "string" && (b = g, g = this.length), b !== void 0 && typeof b != "string")
940
940
  throw new TypeError("encoding must be a string");
941
- if (typeof b == "string" && !l.isEncoding(b))
941
+ if (typeof b == "string" && !u.isEncoding(b))
942
942
  throw new TypeError("Unknown encoding: " + b);
943
943
  if (c.length === 1) {
944
944
  const P = c.charCodeAt(0);
@@ -955,7 +955,7 @@ io.write = function(n, e, t, r, o, i) {
955
955
  for (S = d; S < g; ++S)
956
956
  this[S] = c;
957
957
  else {
958
- const P = l.isBuffer(c) ? c : l.from(c, b), se = P.length;
958
+ const P = u.isBuffer(c) ? c : u.from(c, b), se = P.length;
959
959
  if (se === 0)
960
960
  throw new TypeError('The value "' + c + '" is invalid for argument "value"');
961
961
  for (S = 0; S < g - d; ++S)
@@ -1397,7 +1397,7 @@ function pa(n, e, t, r, o, i) {
1397
1397
  const ao = /* @__PURE__ */ _t(oa, [["render", pa], ["__scopeId", "data-v-7aad6400"]]), ha = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1398
1398
  __proto__: null,
1399
1399
  default: ao
1400
- }, Symbol.toStringTag, { value: "Module" })), fa = "1.0.16", cr = {
1400
+ }, Symbol.toStringTag, { value: "Module" })), fa = "1.0.17", cr = {
1401
1401
  getMe() {
1402
1402
  return le().get("/users/me");
1403
1403
  },
@@ -5563,7 +5563,7 @@ Tanıştığınız herkesi etkileyin 😎 <br> Kendinize bir tane ayırın 👇`
5563
5563
  choose_other_login_methods: "다른 로그인 방법 선택하기",
5564
5564
  no_sso_logins: "귀하의 회사는 SSO 로그인을 사용하지 않습니다. 관리자에게 문의하십시오."
5565
5565
  }
5566
- }, To = () => Promise.resolve().then(() => ha), ma = () => Promise.resolve().then(() => mc), _a = () => Promise.resolve().then(() => cl), va = () => Promise.resolve().then(() => Xu), ya = () => Promise.resolve().then(() => zc), wa = () => Promise.resolve().then(() => Cl), ba = () => Promise.resolve().then(() => od), ka = () => import("./QR-CvamZkR6.js"), Ca = () => Promise.resolve().then(() => Cu), Ea = () => import("./Apps-DgbnT61Y.js"), Ta = () => import("./Billing-CSZHUj6r.js"), Sa = () => import("./CustomApp-9V1Zs2Qk.js"), Ia = () => import("./General-CtJdOqp0.js"), Aa = [
5566
+ }, To = () => Promise.resolve().then(() => ha), ma = () => Promise.resolve().then(() => mc), _a = () => Promise.resolve().then(() => cl), va = () => Promise.resolve().then(() => Xu), ya = () => Promise.resolve().then(() => zc), wa = () => Promise.resolve().then(() => Cl), ba = () => Promise.resolve().then(() => od), ka = () => import("./QR-BO6r4iRS.js"), Ca = () => Promise.resolve().then(() => Cu), Ea = () => import("./Apps-Cu9-IPot.js"), Ta = () => import("./Billing-Drzf6xOd.js"), Sa = () => import("./CustomApp-UfjeQWpc.js"), Ia = () => import("./General-Dn5CdkOJ.js"), Aa = [
5567
5567
  {
5568
5568
  path: "/welcome",
5569
5569
  name: "AuthWelcome",
@@ -6267,22 +6267,22 @@ function O(n, e, t, r) {
6267
6267
  });
6268
6268
  }
6269
6269
  return new (t || (t = Promise))(function(i, a) {
6270
- function s(l) {
6270
+ function s(u) {
6271
6271
  try {
6272
- p(r.next(l));
6272
+ p(r.next(u));
6273
6273
  } catch (m) {
6274
6274
  a(m);
6275
6275
  }
6276
6276
  }
6277
- function u(l) {
6277
+ function l(u) {
6278
6278
  try {
6279
- p(r.throw(l));
6279
+ p(r.throw(u));
6280
6280
  } catch (m) {
6281
6281
  a(m);
6282
6282
  }
6283
6283
  }
6284
- function p(l) {
6285
- l.done ? i(l.value) : o(l.value).then(s, u);
6284
+ function p(u) {
6285
+ u.done ? i(u.value) : o(u.value).then(s, l);
6286
6286
  }
6287
6287
  p((r = r.apply(n, [])).next());
6288
6288
  });
@@ -6296,11 +6296,11 @@ function L(n, e) {
6296
6296
  return this;
6297
6297
  }), a;
6298
6298
  function s(p) {
6299
- return function(l) {
6300
- return u([p, l]);
6299
+ return function(u) {
6300
+ return l([p, u]);
6301
6301
  };
6302
6302
  }
6303
- function u(p) {
6303
+ function l(p) {
6304
6304
  if (r) throw new TypeError("Generator is already executing.");
6305
6305
  for (; t; ) try {
6306
6306
  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;
@@ -6338,8 +6338,8 @@ function L(n, e) {
6338
6338
  continue;
6339
6339
  }
6340
6340
  p = e.call(n, t);
6341
- } catch (l) {
6342
- p = [6, l], o = 0;
6341
+ } catch (u) {
6342
+ p = [6, u], o = 0;
6343
6343
  } finally {
6344
6344
  r = i = 0;
6345
6345
  }
@@ -6414,22 +6414,22 @@ function oe(n, e, t, r) {
6414
6414
  });
6415
6415
  }
6416
6416
  return new (t || (t = Promise))(function(i, a) {
6417
- function s(l) {
6417
+ function s(u) {
6418
6418
  try {
6419
- p(r.next(l));
6419
+ p(r.next(u));
6420
6420
  } catch (m) {
6421
6421
  a(m);
6422
6422
  }
6423
6423
  }
6424
- function u(l) {
6424
+ function l(u) {
6425
6425
  try {
6426
- p(r.throw(l));
6426
+ p(r.throw(u));
6427
6427
  } catch (m) {
6428
6428
  a(m);
6429
6429
  }
6430
6430
  }
6431
- function p(l) {
6432
- l.done ? i(l.value) : o(l.value).then(s, u);
6431
+ function p(u) {
6432
+ u.done ? i(u.value) : o(u.value).then(s, l);
6433
6433
  }
6434
6434
  p((r = r.apply(n, [])).next());
6435
6435
  });
@@ -6443,11 +6443,11 @@ function ie(n, e) {
6443
6443
  return this;
6444
6444
  }), a;
6445
6445
  function s(p) {
6446
- return function(l) {
6447
- return u([p, l]);
6446
+ return function(u) {
6447
+ return l([p, u]);
6448
6448
  };
6449
6449
  }
6450
- function u(p) {
6450
+ function l(p) {
6451
6451
  if (r) throw new TypeError("Generator is already executing.");
6452
6452
  for (; t; ) try {
6453
6453
  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;
@@ -6485,8 +6485,8 @@ function ie(n, e) {
6485
6485
  continue;
6486
6486
  }
6487
6487
  p = e.call(n, t);
6488
- } catch (l) {
6489
- p = [6, l], o = 0;
6488
+ } catch (u) {
6489
+ p = [6, u], o = 0;
6490
6490
  } finally {
6491
6491
  r = i = 0;
6492
6492
  }
@@ -7111,8 +7111,8 @@ var V = (
7111
7111
  };
7112
7112
  return r.forEach(function(i) {
7113
7113
  if (i.trim()) {
7114
- var a = i.split(/=(.+)/g, 2), s = a[0], u = a[1];
7115
- s && u && (t[o(s)] = o(u));
7114
+ var a = i.split(/=(.+)/g, 2), s = a[0], l = a[1];
7115
+ s && l && (t[o(s)] = o(l));
7116
7116
  }
7117
7117
  }), t;
7118
7118
  }, n.trimArrayEntries = function(e) {
@@ -7552,34 +7552,34 @@ var Ve = (
7552
7552
  e.tenantId || w.EMPTY_STRING
7553
7553
  ];
7554
7554
  return t.join(Be.CACHE_KEY_SEPARATOR).toLowerCase();
7555
- }, n.createAccount = function(e, t, r, o, i, a, s, u) {
7556
- var p, l, m, f, k, E, R = new n();
7557
- R.authorityType = $t.MSSTS_ACCOUNT_TYPE, R.clientInfo = e, R.homeAccountId = t, R.nativeAccountId = u;
7555
+ }, n.createAccount = function(e, t, r, o, i, a, s, l) {
7556
+ var p, u, m, f, k, E, R = new n();
7557
+ R.authorityType = $t.MSSTS_ACCOUNT_TYPE, R.clientInfo = e, R.homeAccountId = t, R.nativeAccountId = l;
7558
7558
  var q = s || o && o.getPreferredCache();
7559
7559
  if (!q)
7560
7560
  throw Q.createInvalidCacheEnvironmentError();
7561
7561
  if (R.environment = q, R.realm = ((p = r == null ? void 0 : r.claims) === null || p === void 0 ? void 0 : p.tid) || w.EMPTY_STRING, r) {
7562
- R.idTokenClaims = r.claims, R.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) || w.EMPTY_STRING;
7562
+ R.idTokenClaims = r.claims, R.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) || w.EMPTY_STRING;
7563
7563
  var K = (f = r == null ? void 0 : r.claims) === null || f === void 0 ? void 0 : f.preferred_username, z = !((k = r == null ? void 0 : r.claims) === null || k === void 0) && k.emails ? r.claims.emails[0] : null;
7564
7564
  R.username = K || z || w.EMPTY_STRING, R.name = (E = r == null ? void 0 : r.claims) === null || E === void 0 ? void 0 : E.name;
7565
7565
  }
7566
7566
  return R.cloudGraphHostName = i, R.msGraphHost = a, R;
7567
7567
  }, n.createGenericAccount = function(e, t, r, o, i, a) {
7568
- var s, u, p, l, m = new n();
7568
+ var s, l, p, u, m = new n();
7569
7569
  m.authorityType = r && r.authorityType === nt.Adfs ? $t.ADFS_ACCOUNT_TYPE : $t.GENERIC_ACCOUNT_TYPE, m.homeAccountId = e, m.realm = w.EMPTY_STRING;
7570
7570
  var f = a || r && r.getPreferredCache();
7571
7571
  if (!f)
7572
7572
  throw Q.createInvalidCacheEnvironmentError();
7573
- 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) || w.EMPTY_STRING, m.username = ((p = t == null ? void 0 : t.claims) === null || p === void 0 ? void 0 : p.upn) || w.EMPTY_STRING, m.name = ((l = t == null ? void 0 : t.claims) === null || l === void 0 ? void 0 : l.name) || w.EMPTY_STRING, m.idTokenClaims = t == null ? void 0 : t.claims), m.environment = f, m.cloudGraphHostName = o, m.msGraphHost = i, m;
7573
+ 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) || w.EMPTY_STRING, m.username = ((p = t == null ? void 0 : t.claims) === null || p === void 0 ? void 0 : p.upn) || w.EMPTY_STRING, m.name = ((u = t == null ? void 0 : t.claims) === null || u === void 0 ? void 0 : u.name) || w.EMPTY_STRING, m.idTokenClaims = t == null ? void 0 : t.claims), m.environment = f, m.cloudGraphHostName = o, m.msGraphHost = i, m;
7574
7574
  }, n.generateHomeAccountId = function(e, t, r, o, i) {
7575
7575
  var a, s = !((a = i == null ? void 0 : i.claims) === null || a === void 0) && a.sub ? i.claims.sub : w.EMPTY_STRING;
7576
7576
  if (t === nt.Adfs || t === nt.Dsts)
7577
7577
  return s;
7578
7578
  if (e)
7579
7579
  try {
7580
- var u = yr(e, o);
7581
- if (!V.isEmpty(u.uid) && !V.isEmpty(u.utid))
7582
- return "" + u.uid + Be.CLIENT_INFO_SEPARATOR + u.utid;
7580
+ var l = yr(e, o);
7581
+ if (!V.isEmpty(l.uid) && !V.isEmpty(l.utid))
7582
+ return "" + l.uid + Be.CLIENT_INFO_SEPARATOR + l.utid;
7583
7583
  } catch {
7584
7584
  }
7585
7585
  return r.verbose("No client info in response"), s;
@@ -7680,12 +7680,12 @@ var it = (
7680
7680
  realm: e.realm,
7681
7681
  tokenType: e.tokenType,
7682
7682
  requestedClaimsHash: e.requestedClaimsHash
7683
- }, r = this.getTokenKeys(), o = $e.fromString(e.target), i = [], r.accessToken.forEach(function(u) {
7684
- if (a.accessTokenKeyMatchesFilter(u, t, !1)) {
7685
- var p = a.getAccessTokenCredential(u);
7683
+ }, r = this.getTokenKeys(), o = $e.fromString(e.target), i = [], r.accessToken.forEach(function(l) {
7684
+ if (a.accessTokenKeyMatchesFilter(l, t, !1)) {
7685
+ var p = a.getAccessTokenCredential(l);
7686
7686
  if (p && a.credentialMatchesFilter(p, t)) {
7687
- var l = $e.fromString(p.target);
7688
- l.intersectingScopeSets(o) && i.push(a.removeAccessToken(u));
7687
+ var u = $e.fromString(p.target);
7688
+ u.intersectingScopeSets(o) && i.push(a.removeAccessToken(l));
7689
7689
  }
7690
7690
  }
7691
7691
  }), [4, Promise.all(i)];
@@ -7827,12 +7827,12 @@ var it = (
7827
7827
  e.isAppMetadata(r) && e.removeItem(r);
7828
7828
  }), !0;
7829
7829
  }, n.prototype.readCacheRecord = function(e, t, r) {
7830
- 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);
7830
+ 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);
7831
7831
  return i && a && (i.idTokenClaims = new Qt(a.secret, this.cryptoImpl).claims), {
7832
7832
  account: i,
7833
7833
  idToken: a,
7834
7834
  accessToken: s,
7835
- refreshToken: u,
7835
+ refreshToken: l,
7836
7836
  appMetadata: p
7837
7837
  };
7838
7838
  }, n.prototype.readAccountFromCache = function(e) {
@@ -7869,7 +7869,7 @@ var it = (
7869
7869
  }, n.prototype.getAccessToken = function(e, t, r) {
7870
7870
  var o = this;
7871
7871
  this.commonLogger.trace("CacheManager - getAccessToken called");
7872
- var i = $e.createSearchScopes(t.scopes), a = t.authenticationScheme || _e.BEARER, s = a && a.toLowerCase() !== _e.BEARER.toLowerCase() ? ee.ACCESS_TOKEN_WITH_AUTH_SCHEME : ee.ACCESS_TOKEN, u = {
7872
+ var i = $e.createSearchScopes(t.scopes), a = t.authenticationScheme || _e.BEARER, s = a && a.toLowerCase() !== _e.BEARER.toLowerCase() ? ee.ACCESS_TOKEN_WITH_AUTH_SCHEME : ee.ACCESS_TOKEN, l = {
7873
7873
  homeAccountId: e.homeAccountId,
7874
7874
  environment: e.environment,
7875
7875
  credentialType: s,
@@ -7879,17 +7879,17 @@ var it = (
7879
7879
  tokenType: a,
7880
7880
  keyId: t.sshKid,
7881
7881
  requestedClaimsHash: t.requestedClaimsHash
7882
- }, p = r && r.accessToken || this.getTokenKeys().accessToken, l = [];
7882
+ }, p = r && r.accessToken || this.getTokenKeys().accessToken, u = [];
7883
7883
  p.forEach(function(f) {
7884
- if (o.accessTokenKeyMatchesFilter(f, u, !0)) {
7884
+ if (o.accessTokenKeyMatchesFilter(f, l, !0)) {
7885
7885
  var k = o.getAccessTokenCredential(f);
7886
- k && o.credentialMatchesFilter(k, u) && l.push(k);
7886
+ k && o.credentialMatchesFilter(k, l) && u.push(k);
7887
7887
  }
7888
7888
  });
7889
- var m = l.length;
7890
- 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) {
7889
+ var m = u.length;
7890
+ 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) {
7891
7891
  o.removeAccessToken(f.generateCredentialKey());
7892
- }), null) : (this.commonLogger.info("CacheManager:getAccessToken - Returning access token"), l[0]);
7892
+ }), null) : (this.commonLogger.info("CacheManager:getAccessToken - Returning access token"), u[0]);
7893
7893
  }, n.prototype.accessTokenKeyMatchesFilter = function(e, t, r) {
7894
7894
  var o = e.toLowerCase();
7895
7895
  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)
@@ -7919,15 +7919,15 @@ var it = (
7919
7919
  credentialType: ee.REFRESH_TOKEN,
7920
7920
  clientId: this.clientId,
7921
7921
  familyId: i
7922
- }, s = r && r.refreshToken || this.getTokenKeys().refreshToken, u = [];
7923
- s.forEach(function(l) {
7924
- if (o.refreshTokenKeyMatchesFilter(l, a)) {
7925
- var m = o.getRefreshTokenCredential(l);
7926
- m && o.credentialMatchesFilter(m, a) && u.push(m);
7922
+ }, s = r && r.refreshToken || this.getTokenKeys().refreshToken, l = [];
7923
+ s.forEach(function(u) {
7924
+ if (o.refreshTokenKeyMatchesFilter(u, a)) {
7925
+ var m = o.getRefreshTokenCredential(u);
7926
+ m && o.credentialMatchesFilter(m, a) && l.push(m);
7927
7927
  }
7928
7928
  });
7929
- var p = u.length;
7930
- return p < 1 ? (this.commonLogger.info("CacheManager:getRefreshToken - No refresh token found."), null) : (this.commonLogger.info("CacheManager:getRefreshToken - returning refresh token"), u[0]);
7929
+ var p = l.length;
7930
+ return p < 1 ? (this.commonLogger.info("CacheManager:getRefreshToken - No refresh token found."), null) : (this.commonLogger.info("CacheManager:getRefreshToken - returning refresh token"), l[0]);
7931
7931
  }, n.prototype.refreshTokenKeyMatchesFilter = function(e, t) {
7932
7932
  var r = e.toLowerCase();
7933
7933
  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);
@@ -8122,7 +8122,7 @@ var Oa = 300, di = {
8122
8122
  }
8123
8123
  };
8124
8124
  function ja(n) {
8125
- 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 = fe(fe({}, La), r);
8125
+ 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 = fe(fe({}, La), r);
8126
8126
  return {
8127
8127
  authOptions: qa(e),
8128
8128
  systemOptions: fe(fe({}, di), t),
@@ -8131,9 +8131,9 @@ function ja(n) {
8131
8131
  storageInterface: i || new Na(e.clientId, vr, new lo(E)),
8132
8132
  networkInterface: a || xa,
8133
8133
  cryptoInterface: s || vr,
8134
- clientCredentials: u || Ba,
8134
+ clientCredentials: l || Ba,
8135
8135
  libraryInfo: fe(fe({}, Ua), p),
8136
- telemetry: fe(fe({}, Ha), l),
8136
+ telemetry: fe(fe({}, Ha), u),
8137
8137
  serverTelemetryManager: m || null,
8138
8138
  persistencePlugin: f || null,
8139
8139
  serializableCache: k || null
@@ -8471,15 +8471,15 @@ var ho = (
8471
8471
  default:
8472
8472
  throw Q.createUnexpectedCredentialTypeError();
8473
8473
  }
8474
- }, n.generateCredentialCacheKey = function(e, t, r, o, i, a, s, u, p) {
8475
- var l = [
8474
+ }, n.generateCredentialCacheKey = function(e, t, r, o, i, a, s, l, p) {
8475
+ var u = [
8476
8476
  this.generateAccountIdForCacheKey(e, t),
8477
8477
  this.generateCredentialIdForCacheKey(r, o, i, s),
8478
8478
  this.generateTargetForCacheKey(a),
8479
8479
  this.generateClaimsHashForCacheKey(p),
8480
- this.generateSchemeForCacheKey(u)
8480
+ this.generateSchemeForCacheKey(l)
8481
8481
  ];
8482
- return l.join(Be.CACHE_KEY_SEPARATOR).toLowerCase();
8482
+ return u.join(Be.CACHE_KEY_SEPARATOR).toLowerCase();
8483
8483
  }, n.generateAccountIdForCacheKey = function(e, t) {
8484
8484
  var r = [e, t];
8485
8485
  return r.join(Be.CACHE_KEY_SEPARATOR).toLowerCase();
@@ -8546,14 +8546,14 @@ var Cn = (
8546
8546
  function e() {
8547
8547
  return n !== null && n.apply(this, arguments) || this;
8548
8548
  }
8549
- return e.createAccessTokenEntity = function(t, r, o, i, a, s, u, p, l, m, f, k, E, R, q) {
8549
+ return e.createAccessTokenEntity = function(t, r, o, i, a, s, l, p, u, m, f, k, E, R, q) {
8550
8550
  var K, z, T = new e();
8551
8551
  T.homeAccountId = t, T.credentialType = ee.ACCESS_TOKEN, T.secret = o;
8552
8552
  var H = Et.nowSeconds();
8553
- 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 = V.isEmpty(f) ? _e.BEARER : f, R && (T.requestedClaims = R, T.requestedClaimsHash = q), ((K = T.tokenType) === null || K === void 0 ? void 0 : K.toLowerCase()) !== _e.BEARER.toLowerCase())
8553
+ 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 = V.isEmpty(f) ? _e.BEARER : f, R && (T.requestedClaims = R, T.requestedClaimsHash = q), ((K = T.tokenType) === null || K === void 0 ? void 0 : K.toLowerCase()) !== _e.BEARER.toLowerCase())
8554
8554
  switch (T.credentialType = ee.ACCESS_TOKEN_WITH_AUTH_SCHEME, T.tokenType) {
8555
8555
  case _e.POP:
8556
- var G = Qt.extractTokenClaims(o, l);
8556
+ var G = Qt.extractTokenClaims(o, u);
8557
8557
  if (!(!((z = G == null ? void 0 : G.cnf) === null || z === void 0) && z.kid))
8558
8558
  throw Q.createTokenClaimsRequiredError();
8559
8559
  T.keyId = G.cnf.kid;
@@ -8576,8 +8576,8 @@ var Nn = (
8576
8576
  return n !== null && n.apply(this, arguments) || this;
8577
8577
  }
8578
8578
  return e.createRefreshTokenEntity = function(t, r, o, i, a, s) {
8579
- var u = new e();
8580
- 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;
8579
+ var l = new e();
8580
+ 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;
8581
8581
  }, e.isRefreshTokenEntity = function(t) {
8582
8582
  return t ? t.hasOwnProperty("homeAccountId") && t.hasOwnProperty("environment") && t.hasOwnProperty("credentialType") && t.hasOwnProperty("clientId") && t.hasOwnProperty("secret") && t.credentialType === ee.REFRESH_TOKEN : !1;
8583
8583
  }, e;
@@ -8607,13 +8607,13 @@ var No = [
8607
8607
  /** @class */
8608
8608
  function(n) {
8609
8609
  lt(e, n);
8610
- function e(t, r, o, i, a, s, u) {
8610
+ function e(t, r, o, i, a, s, l) {
8611
8611
  var p = n.call(this, t, r, o) || this;
8612
- return Object.setPrototypeOf(p, e.prototype), p.timestamp = i || w.EMPTY_STRING, p.traceId = a || w.EMPTY_STRING, p.correlationId = s || w.EMPTY_STRING, p.claims = u || w.EMPTY_STRING, p.name = "InteractionRequiredAuthError", p;
8612
+ return Object.setPrototypeOf(p, e.prototype), p.timestamp = i || w.EMPTY_STRING, p.traceId = a || w.EMPTY_STRING, p.correlationId = s || w.EMPTY_STRING, p.claims = l || w.EMPTY_STRING, p.name = "InteractionRequiredAuthError", p;
8613
8613
  }
8614
8614
  return e.isInteractionRequiredError = function(t, r, o) {
8615
- var i = !!t && No.indexOf(t) > -1, a = !!o && Ka.indexOf(o) > -1, s = !!r && No.some(function(u) {
8616
- return r.indexOf(u) > -1;
8615
+ var i = !!t && No.indexOf(t) > -1, a = !!o && Ka.indexOf(o) > -1, s = !!r && No.some(function(l) {
8616
+ return r.indexOf(l) > -1;
8617
8617
  });
8618
8618
  return i || s || a;
8619
8619
  }, e.createNoTokensFoundError = function() {
@@ -8662,8 +8662,8 @@ var tn = (
8662
8662
  userRequestState: V.isEmpty(i) ? w.EMPTY_STRING : i,
8663
8663
  libraryState: s
8664
8664
  };
8665
- } catch (u) {
8666
- throw Q.createInvalidStateError(t, u);
8665
+ } catch (l) {
8666
+ throw Q.createInvalidStateError(t, l);
8667
8667
  }
8668
8668
  }, n;
8669
8669
  }()
@@ -8836,11 +8836,11 @@ var Dn = (
8836
8836
  });
8837
8837
  }, n.prototype.signPayload = function(e, t, r, o) {
8838
8838
  return oe(this, void 0, void 0, function() {
8839
- var i, a, s, u, p, l;
8839
+ var i, a, s, l, p, u;
8840
8840
  return ie(this, function(m) {
8841
8841
  switch (m.label) {
8842
8842
  case 0:
8843
- return i = r.resourceRequestMethod, a = r.resourceRequestUri, s = r.shrClaims, u = r.shrNonce, p = a ? new ue(a) : void 0, l = p == null ? void 0 : p.getUrlComponents(), [4, this.cryptoUtils.signJwt(fe({ at: e, ts: Et.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)];
8843
+ return i = r.resourceRequestMethod, a = r.resourceRequestUri, s = r.shrClaims, l = r.shrNonce, p = a ? new ue(a) : void 0, u = p == null ? void 0 : p.getUrlComponents(), [4, this.cryptoUtils.signJwt(fe({ at: e, ts: Et.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)];
8844
8844
  case 1:
8845
8845
  return [2, m.sent()];
8846
8846
  }
@@ -8922,14 +8922,14 @@ var kr = (
8922
8922
  var t = e.error_codes + " - [" + e.timestamp + "]: " + e.error_description + " - Correlation ID: " + e.correlation_id + " - Trace ID: " + e.trace_id;
8923
8923
  throw new Sn(e.error, t, e.suberror);
8924
8924
  }
8925
- }, n.prototype.handleServerTokenResponse = function(e, t, r, o, i, a, s, u, p) {
8926
- var l;
8925
+ }, n.prototype.handleServerTokenResponse = function(e, t, r, o, i, a, s, l, p) {
8926
+ var u;
8927
8927
  return oe(this, void 0, void 0, function() {
8928
8928
  var m, f, k, E, R, q, K;
8929
8929
  return ie(this, function(z) {
8930
8930
  switch (z.label) {
8931
8931
  case 0:
8932
- if ((l = this.performanceClient) === null || l === void 0 || l.addQueueMeasurement(A.HandleServerTokenResponse, e.correlation_id), e.id_token) {
8932
+ if ((u = this.performanceClient) === null || u === void 0 || u.addQueueMeasurement(A.HandleServerTokenResponse, e.correlation_id), e.id_token) {
8933
8933
  if (m = new Qt(e.id_token || w.EMPTY_STRING, this.cryptoObj), i && !V.isEmpty(i.nonce) && m.claims.nonce !== i.nonce)
8934
8934
  throw Q.createNonceMismatchError();
8935
8935
  if (o.maxAge || o.maxAge === 0) {
@@ -8944,7 +8944,7 @@ var kr = (
8944
8944
  case 2:
8945
8945
  z.sent(), z.label = 3;
8946
8946
  case 3:
8947
- return s && !u && E.account && (q = E.account.generateAccountKey(), K = this.cacheStorage.getAccount(q), !K) ? (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)];
8947
+ return s && !l && E.account && (q = E.account.generateAccountKey(), K = this.cacheStorage.getAccount(q), !K) ? (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)];
8948
8948
  case 4:
8949
8949
  return z.sent(), [3, 8];
8950
8950
  case 5:
@@ -8962,20 +8962,20 @@ var kr = (
8962
8962
  });
8963
8963
  });
8964
8964
  }, n.prototype.generateCacheRecord = function(e, t, r, o, i, a, s) {
8965
- var u = t.getPreferredCache();
8966
- if (V.isEmpty(u))
8965
+ var l = t.getPreferredCache();
8966
+ if (V.isEmpty(l))
8967
8967
  throw Q.createInvalidCacheEnvironmentError();
8968
- var p, l;
8969
- !V.isEmpty(e.id_token) && i && (p = kn.createIdTokenEntity(this.homeAccountIdentifier, u, e.id_token || w.EMPTY_STRING, this.clientId, i.claims.tid || w.EMPTY_STRING), l = this.generateAccountEntity(e, i, t, s));
8968
+ var p, u;
8969
+ !V.isEmpty(e.id_token) && i && (p = kn.createIdTokenEntity(this.homeAccountIdentifier, l, e.id_token || w.EMPTY_STRING, this.clientId, i.claims.tid || w.EMPTY_STRING), u = this.generateAccountEntity(e, i, t, s));
8970
8970
  var m = null;
8971
8971
  if (!V.isEmpty(e.access_token)) {
8972
8972
  var f = e.scope ? $e.fromString(e.scope) : new $e(o.scopes || []), k = (typeof e.expires_in == "string" ? parseInt(e.expires_in, 10) : e.expires_in) || 0, E = (typeof e.ext_expires_in == "string" ? parseInt(e.ext_expires_in, 10) : e.ext_expires_in) || 0, R = (typeof e.refresh_in == "string" ? parseInt(e.refresh_in, 10) : e.refresh_in) || void 0, q = r + k, K = q + E, z = R && R > 0 ? r + R : void 0;
8973
- m = Cn.createAccessTokenEntity(this.homeAccountIdentifier, u, e.access_token || w.EMPTY_STRING, this.clientId, i ? i.claims.tid || w.EMPTY_STRING : t.tenant, f.printScopes(), q, K, this.cryptoObj, z, e.token_type, a, e.key_id, o.claims, o.requestedClaimsHash);
8973
+ m = Cn.createAccessTokenEntity(this.homeAccountIdentifier, l, e.access_token || w.EMPTY_STRING, this.clientId, i ? i.claims.tid || w.EMPTY_STRING : t.tenant, f.printScopes(), q, K, this.cryptoObj, z, e.token_type, a, e.key_id, o.claims, o.requestedClaimsHash);
8974
8974
  }
8975
8975
  var T = null;
8976
- V.isEmpty(e.refresh_token) || (T = Nn.createRefreshTokenEntity(this.homeAccountIdentifier, u, e.refresh_token || w.EMPTY_STRING, this.clientId, e.foci, a));
8976
+ V.isEmpty(e.refresh_token) || (T = Nn.createRefreshTokenEntity(this.homeAccountIdentifier, l, e.refresh_token || w.EMPTY_STRING, this.clientId, e.foci, a));
8977
8977
  var H = null;
8978
- return V.isEmpty(e.foci) || (H = $r.createAppMetadataEntity(this.clientId, u, e.foci)), new $n(l, p, m, T, H);
8978
+ return V.isEmpty(e.foci) || (H = $r.createAppMetadataEntity(this.clientId, l, e.foci)), new $n(u, p, m, T, H);
8979
8979
  }, n.prototype.generateAccountEntity = function(e, t, r, o) {
8980
8980
  var i = r.authorityType, a = o ? o.cloud_graph_host_name : w.EMPTY_STRING, s = o ? o.msgraph_host : w.EMPTY_STRING;
8981
8981
  if (i === nt.Adfs)
@@ -8983,8 +8983,8 @@ var kr = (
8983
8983
  if (V.isEmpty(e.client_info) && r.protocolMode === "AAD")
8984
8984
  throw Q.createClientInfoEmptyError();
8985
8985
  return e.client_info ? Ve.createAccount(e.client_info, this.homeAccountIdentifier, t, r, a, s) : Ve.createGenericAccount(this.homeAccountIdentifier, t, r, a, s);
8986
- }, n.generateAuthenticationResult = function(e, t, r, o, i, a, s, u, p) {
8987
- var l, m, f;
8986
+ }, n.generateAuthenticationResult = function(e, t, r, o, i, a, s, l, p) {
8987
+ var u, m, f;
8988
8988
  return oe(this, void 0, void 0, function() {
8989
8989
  var k, E, R, q, K, z, T, H, G, $, te;
8990
8990
  return ie(this, function(Z) {
@@ -9002,7 +9002,7 @@ var kr = (
9002
9002
  case 3:
9003
9003
  E = $e.fromString(r.accessToken.target).asArray(), R = new Date(Number(r.accessToken.expiresOn) * 1e3), q = new Date(Number(r.accessToken.extendedExpiresOn) * 1e3), Z.label = 4;
9004
9004
  case 4:
9005
- return r.appMetadata && (K = r.appMetadata.familyId === Vn ? Vn : w.EMPTY_STRING), $ = (a == null ? void 0 : a.claims.oid) || (a == null ? void 0 : a.claims.sub) || w.EMPTY_STRING, te = (a == null ? void 0 : a.claims.tid) || w.EMPTY_STRING, u != null && u.spa_accountid && r.account && (r.account.nativeAccountId = u == null ? void 0 : u.spa_accountid), [2, {
9005
+ return r.appMetadata && (K = r.appMetadata.familyId === Vn ? Vn : w.EMPTY_STRING), $ = (a == null ? void 0 : a.claims.oid) || (a == null ? void 0 : a.claims.sub) || w.EMPTY_STRING, te = (a == null ? void 0 : a.claims.tid) || w.EMPTY_STRING, l != null && l.spa_accountid && r.account && (r.account.nativeAccountId = l == null ? void 0 : l.spa_accountid), [2, {
9006
9006
  authority: t.canonicalAuthority,
9007
9007
  uniqueId: $,
9008
9008
  tenantId: te,
@@ -9017,11 +9017,11 @@ var kr = (
9017
9017
  requestId: p || w.EMPTY_STRING,
9018
9018
  extExpiresOn: q,
9019
9019
  familyId: K,
9020
- tokenType: ((l = r.accessToken) === null || l === void 0 ? void 0 : l.tokenType) || w.EMPTY_STRING,
9020
+ tokenType: ((u = r.accessToken) === null || u === void 0 ? void 0 : u.tokenType) || w.EMPTY_STRING,
9021
9021
  state: s ? s.userRequestState : w.EMPTY_STRING,
9022
9022
  cloudGraphHostName: ((m = r.account) === null || m === void 0 ? void 0 : m.cloudGraphHostName) || w.EMPTY_STRING,
9023
9023
  msGraphHost: ((f = r.account) === null || f === void 0 ? void 0 : f.msGraphHost) || w.EMPTY_STRING,
9024
- code: u == null ? void 0 : u.spa_code,
9024
+ code: l == null ? void 0 : l.spa_code,
9025
9025
  fromNativeBroker: !1
9026
9026
  }];
9027
9027
  }
@@ -9053,24 +9053,24 @@ var pi = (
9053
9053
  });
9054
9054
  });
9055
9055
  }, e.prototype.acquireToken = function(t, r) {
9056
- var o, i, a, s, u, p;
9056
+ var o, i, a, s, l, p;
9057
9057
  return oe(this, void 0, void 0, function() {
9058
- var l, m, f, k, E, R, q = this;
9058
+ var u, m, f, k, E, R, q = this;
9059
9059
  return ie(this, function(K) {
9060
9060
  switch (K.label) {
9061
9061
  case 0:
9062
9062
  if (!t || !t.code)
9063
9063
  throw Q.createTokenRequestCannotBeMadeError();
9064
- return (o = this.performanceClient) === null || o === void 0 || o.addQueueMeasurement(A.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 = Et.nowSeconds(), (a = this.performanceClient) === null || a === void 0 || a.setPreQueueTime(A.AuthClientExecuteTokenRequest, t.correlationId), [4, this.executeTokenRequest(this.authority, t)];
9064
+ return (o = this.performanceClient) === null || o === void 0 || o.addQueueMeasurement(A.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 = Et.nowSeconds(), (a = this.performanceClient) === null || a === void 0 || a.setPreQueueTime(A.AuthClientExecuteTokenRequest, t.correlationId), [4, this.executeTokenRequest(this.authority, t)];
9065
9065
  case 1:
9066
- return f = K.sent(), k = (s = f.headers) === null || s === void 0 ? void 0 : s[mt.X_MS_REQUEST_ID], E = (u = f.headers) === null || u === void 0 ? void 0 : u[mt.X_MS_HTTP_VERSION], E && (l == null || l.addStaticFields({
9066
+ return f = K.sent(), k = (s = f.headers) === null || s === void 0 ? void 0 : s[mt.X_MS_REQUEST_ID], E = (l = f.headers) === null || l === void 0 ? void 0 : l[mt.X_MS_HTTP_VERSION], E && (u == null || u.addStaticFields({
9067
9067
  httpVerAuthority: E
9068
9068
  })), R = new kr(this.config.authOptions.clientId, this.cacheManager, this.cryptoUtils, this.logger, this.config.serializableCache, this.config.persistencePlugin, this.performanceClient), R.validateTokenResponse(f.body), (p = this.performanceClient) === null || p === void 0 || p.setPreQueueTime(A.HandleServerTokenResponse, t.correlationId), [2, R.handleServerTokenResponse(f.body, this.authority, m, t, r, void 0, void 0, void 0, k).then(function(z) {
9069
- return l == null || l.endMeasurement({
9069
+ return u == null || u.endMeasurement({
9070
9070
  success: !0
9071
9071
  }), z;
9072
9072
  }).catch(function(z) {
9073
- throw q.logger.verbose("Error in fetching token in ACC", t.correlationId), l == null || l.endMeasurement({
9073
+ throw q.logger.verbose("Error in fetching token in ACC", t.correlationId), u == null || u.endMeasurement({
9074
9074
  errorCode: z.errorCode,
9075
9075
  subErrorCode: z.subError,
9076
9076
  success: !1
@@ -9095,16 +9095,16 @@ var pi = (
9095
9095
  }, e.prototype.executeTokenRequest = function(t, r) {
9096
9096
  var o, i;
9097
9097
  return oe(this, void 0, void 0, function() {
9098
- var a, s, u, p, l, m, f;
9098
+ var a, s, l, p, u, m, f;
9099
9099
  return ie(this, function(k) {
9100
9100
  switch (k.label) {
9101
9101
  case 0:
9102
9102
  return (o = this.performanceClient) === null || o === void 0 || o.addQueueMeasurement(A.AuthClientExecuteTokenRequest, r.correlationId), (i = this.performanceClient) === null || i === void 0 || i.setPreQueueTime(A.AuthClientCreateTokenRequestBody, r.correlationId), a = this.createTokenQueryParameters(r), s = ue.appendQueryString(t.tokenEndpoint, a), [4, this.createTokenRequestBody(r)];
9103
9103
  case 1:
9104
- if (u = k.sent(), p = void 0, r.clientInfo)
9104
+ if (l = k.sent(), p = void 0, r.clientInfo)
9105
9105
  try {
9106
- l = yr(r.clientInfo, this.cryptoUtils), p = {
9107
- credential: "" + l.uid + Be.CLIENT_INFO_SEPARATOR + l.utid,
9106
+ u = yr(r.clientInfo, this.cryptoUtils), p = {
9107
+ credential: "" + u.uid + Be.CLIENT_INFO_SEPARATOR + u.utid,
9108
9108
  type: gt.HOME_ACCOUNT_ID
9109
9109
  };
9110
9110
  } catch (E) {
@@ -9120,20 +9120,20 @@ var pi = (
9120
9120
  resourceRequestUri: r.resourceRequestUri,
9121
9121
  shrClaims: r.shrClaims,
9122
9122
  sshKid: r.sshKid
9123
- }, [2, this.executePostToTokenEndpoint(s, u, m, f)];
9123
+ }, [2, this.executePostToTokenEndpoint(s, l, m, f)];
9124
9124
  }
9125
9125
  });
9126
9126
  });
9127
9127
  }, e.prototype.createTokenRequestBody = function(t) {
9128
9128
  var r, o;
9129
9129
  return oe(this, void 0, void 0, function() {
9130
- var i, a, s, u, p, l, m, m, f;
9130
+ var i, a, s, l, p, u, m, m, f;
9131
9131
  return ie(this, function(k) {
9132
9132
  switch (k.label) {
9133
9133
  case 0:
9134
9134
  return (r = this.performanceClient) === null || r === void 0 || r.addQueueMeasurement(A.AuthClientCreateTokenRequestBody, t.correlationId), i = new Jn(), i.addClientId(this.config.authOptions.clientId), this.includeRedirectUri ? i.addRedirectUri(t.redirectUri) : wn.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(mr.AUTHORIZATION_CODE_GRANT), i.addClientInfo(), t.authenticationScheme !== _e.POP ? [3, 2] : (s = new Dn(this.cryptoUtils, this.performanceClient), (o = this.performanceClient) === null || o === void 0 || o.setPreQueueTime(A.PopTokenGenerateCnf, t.correlationId), [4, s.generateCnf(t)]);
9135
9135
  case 1:
9136
- return u = k.sent(), i.addPopToken(u.reqCnfString), [3, 3];
9136
+ return l = k.sent(), i.addPopToken(l.reqCnfString), [3, 3];
9137
9137
  case 2:
9138
9138
  if (t.authenticationScheme === _e.SSH)
9139
9139
  if (t.sshJwk)
@@ -9142,9 +9142,9 @@ var pi = (
9142
9142
  throw Ee.createMissingSshJwkError();
9143
9143
  k.label = 3;
9144
9144
  case 3:
9145
- if (p = t.correlationId || this.config.cryptoInterface.createNewGuid(), i.addCorrelationId(p), (!V.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)
9145
+ if (p = t.correlationId || this.config.cryptoInterface.createNewGuid(), i.addCorrelationId(p), (!V.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)
9146
9146
  try {
9147
- m = yr(t.clientInfo, this.cryptoUtils), l = {
9147
+ m = yr(t.clientInfo, this.cryptoUtils), u = {
9148
9148
  credential: "" + m.uid + Be.CLIENT_INFO_SEPARATOR + m.utid,
9149
9149
  type: gt.HOME_ACCOUNT_ID
9150
9150
  };
@@ -9152,18 +9152,18 @@ var pi = (
9152
9152
  this.logger.verbose("Could not parse client info for CCS Header: " + E);
9153
9153
  }
9154
9154
  else
9155
- l = t.ccsCredential;
9156
- if (this.config.systemOptions.preventCorsPreflight && l)
9157
- switch (l.type) {
9155
+ u = t.ccsCredential;
9156
+ if (this.config.systemOptions.preventCorsPreflight && u)
9157
+ switch (u.type) {
9158
9158
  case gt.HOME_ACCOUNT_ID:
9159
9159
  try {
9160
- m = Mn(l.credential), i.addCcsOid(m);
9160
+ m = Mn(u.credential), i.addCcsOid(m);
9161
9161
  } catch (E) {
9162
9162
  this.logger.verbose("Could not parse home account ID for CCS Header: " + E);
9163
9163
  }
9164
9164
  break;
9165
9165
  case gt.UPN:
9166
- i.addCcsUpn(l.credential);
9166
+ i.addCcsUpn(u.credential);
9167
9167
  break;
9168
9168
  }
9169
9169
  return t.tokenBodyParameters && i.addExtraQueryParameters(t.tokenBodyParameters), t.enableSpaAuthorizationCode && (!t.tokenBodyParameters || !t.tokenBodyParameters[ae.RETURN_SPA_CODE]) && i.addExtraQueryParameters((f = {}, f[ae.RETURN_SPA_CODE] = "1", f)), [2, i.createQueryString()];
@@ -9173,7 +9173,7 @@ var pi = (
9173
9173
  }, e.prototype.createAuthCodeUrlQueryString = function(t) {
9174
9174
  var r;
9175
9175
  return oe(this, void 0, void 0, function() {
9176
- var o, i, a, s, u, p, p, p, l, m;
9176
+ var o, i, a, s, l, p, p, p, u, m;
9177
9177
  return ie(this, function(f) {
9178
9178
  switch (f.label) {
9179
9179
  case 0:
@@ -9181,8 +9181,8 @@ var pi = (
9181
9181
  if (t.sid && t.prompt === Xe.NONE)
9182
9182
  this.logger.verbose("createAuthCodeUrlQueryString: Prompt is none, adding sid from request"), o.addSid(t.sid);
9183
9183
  else if (t.account) {
9184
- if (s = this.extractAccountSid(t.account), u = this.extractLoginHint(t.account), u) {
9185
- this.logger.verbose("createAuthCodeUrlQueryString: login_hint claim present on account"), o.addLoginHint(u);
9184
+ if (s = this.extractAccountSid(t.account), l = this.extractLoginHint(t.account), l) {
9185
+ this.logger.verbose("createAuthCodeUrlQueryString: login_hint claim present on account"), o.addLoginHint(l);
9186
9186
  try {
9187
9187
  p = Mn(t.account.homeAccountId), o.addCcsOid(p);
9188
9188
  } catch {
@@ -9208,7 +9208,7 @@ var pi = (
9208
9208
  } else t.loginHint && (this.logger.verbose("createAuthCodeUrlQueryString: No account, adding login_hint from request"), o.addLoginHint(t.loginHint), o.addCcsUpn(t.loginHint));
9209
9209
  else
9210
9210
  this.logger.verbose("createAuthCodeUrlQueryString: Prompt is select_account, ignoring account hints");
9211
- return t.nonce && o.addNonce(t.nonce), t.state && o.addState(t.state), (!V.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 !== _e.POP ? [3, 2] : (l = new Dn(this.cryptoUtils), [4, l.generateCnf(t)])) : [3, 2];
9211
+ return t.nonce && o.addNonce(t.nonce), t.state && o.addState(t.state), (!V.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 !== _e.POP ? [3, 2] : (u = new Dn(this.cryptoUtils), [4, u.generateCnf(t)])) : [3, 2];
9212
9212
  case 1:
9213
9213
  m = f.sent(), o.addPopToken(m.reqCnfString), f.label = 2;
9214
9214
  case 2:
@@ -9237,24 +9237,24 @@ var hi = (
9237
9237
  return n.call(this, t, r) || this;
9238
9238
  }
9239
9239
  return e.prototype.acquireToken = function(t) {
9240
- var r, o, i, a, s, u, p;
9240
+ var r, o, i, a, s, l, p;
9241
9241
  return oe(this, void 0, void 0, function() {
9242
- var l, m, f, k, E, R, q = this;
9242
+ var u, m, f, k, E, R, q = this;
9243
9243
  return ie(this, function(K) {
9244
9244
  switch (K.label) {
9245
9245
  case 0:
9246
- return (r = this.performanceClient) === null || r === void 0 || r.addQueueMeasurement(A.RefreshTokenClientAcquireToken, t.correlationId), l = (o = this.performanceClient) === null || o === void 0 ? void 0 : o.startMeasurement(A.RefreshTokenClientAcquireToken, t.correlationId), this.logger.verbose("RefreshTokenClientAcquireToken called", t.correlationId), m = Et.nowSeconds(), (i = this.performanceClient) === null || i === void 0 || i.setPreQueueTime(A.RefreshTokenClientExecuteTokenRequest, t.correlationId), [4, this.executeTokenRequest(t, this.authority)];
9246
+ return (r = this.performanceClient) === null || r === void 0 || r.addQueueMeasurement(A.RefreshTokenClientAcquireToken, t.correlationId), u = (o = this.performanceClient) === null || o === void 0 ? void 0 : o.startMeasurement(A.RefreshTokenClientAcquireToken, t.correlationId), this.logger.verbose("RefreshTokenClientAcquireToken called", t.correlationId), m = Et.nowSeconds(), (i = this.performanceClient) === null || i === void 0 || i.setPreQueueTime(A.RefreshTokenClientExecuteTokenRequest, t.correlationId), [4, this.executeTokenRequest(t, this.authority)];
9247
9247
  case 1:
9248
- return f = K.sent(), k = (a = f.headers) === null || a === void 0 ? void 0 : a[mt.X_MS_HTTP_VERSION], l == null || l.addStaticFields({
9248
+ return f = K.sent(), k = (a = f.headers) === null || a === void 0 ? void 0 : a[mt.X_MS_HTTP_VERSION], u == null || u.addStaticFields({
9249
9249
  refreshTokenSize: ((s = f.body.refresh_token) === null || s === void 0 ? void 0 : s.length) || 0
9250
- }), k && (l == null || l.addStaticFields({
9250
+ }), k && (u == null || u.addStaticFields({
9251
9251
  httpVerToken: k
9252
- })), E = (u = f.headers) === null || u === void 0 ? void 0 : u[mt.X_MS_REQUEST_ID], R = new kr(this.config.authOptions.clientId, this.cacheManager, this.cryptoUtils, this.logger, this.config.serializableCache, this.config.persistencePlugin), R.validateTokenResponse(f.body), (p = this.performanceClient) === null || p === void 0 || p.setPreQueueTime(A.HandleServerTokenResponse, t.correlationId), [2, R.handleServerTokenResponse(f.body, this.authority, m, t, void 0, void 0, !0, t.forceCache, E).then(function(z) {
9253
- return l == null || l.endMeasurement({
9252
+ })), E = (l = f.headers) === null || l === void 0 ? void 0 : l[mt.X_MS_REQUEST_ID], R = new kr(this.config.authOptions.clientId, this.cacheManager, this.cryptoUtils, this.logger, this.config.serializableCache, this.config.persistencePlugin), R.validateTokenResponse(f.body), (p = this.performanceClient) === null || p === void 0 || p.setPreQueueTime(A.HandleServerTokenResponse, t.correlationId), [2, R.handleServerTokenResponse(f.body, this.authority, m, t, void 0, void 0, !0, t.forceCache, E).then(function(z) {
9253
+ return u == null || u.endMeasurement({
9254
9254
  success: !0
9255
9255
  }), z;
9256
9256
  }).catch(function(z) {
9257
- throw q.logger.verbose("Error in fetching refresh token", t.correlationId), l == null || l.endMeasurement({
9257
+ throw q.logger.verbose("Error in fetching refresh token", t.correlationId), u == null || u.endMeasurement({
9258
9258
  errorCode: z.errorCode,
9259
9259
  subErrorCode: z.subError,
9260
9260
  success: !1
@@ -9266,8 +9266,8 @@ var hi = (
9266
9266
  }, e.prototype.acquireTokenByRefreshToken = function(t) {
9267
9267
  var r, o, i, a;
9268
9268
  return oe(this, void 0, void 0, function() {
9269
- var s, u, p;
9270
- return ie(this, function(l) {
9269
+ var s, l, p;
9270
+ return ie(this, function(u) {
9271
9271
  if (!t)
9272
9272
  throw Ee.createEmptyTokenRequestError();
9273
9273
  if ((r = this.performanceClient) === null || r === void 0 || r.addQueueMeasurement(A.RefreshTokenClientAcquireTokenByRefreshToken, t.correlationId), !t.account)
@@ -9276,7 +9276,7 @@ var hi = (
9276
9276
  try {
9277
9277
  return (o = this.performanceClient) === null || o === void 0 || o.setPreQueueTime(A.RefreshTokenClientAcquireTokenWithCachedRefreshToken, t.correlationId), [2, this.acquireTokenWithCachedRefreshToken(t, !0)];
9278
9278
  } catch (m) {
9279
- if (u = m instanceof Mt && m.errorCode === On.noTokensFoundError.code, p = m instanceof Sn && m.errorCode === Mo.INVALID_GRANT_ERROR && m.subError === Mo.CLIENT_MISMATCH_ERROR, u || p)
9279
+ if (l = m instanceof Mt && m.errorCode === On.noTokensFoundError.code, p = m instanceof Sn && m.errorCode === Mo.INVALID_GRANT_ERROR && m.subError === Mo.CLIENT_MISMATCH_ERROR, l || p)
9280
9280
  return (i = this.performanceClient) === null || i === void 0 || i.setPreQueueTime(A.RefreshTokenClientAcquireTokenWithCachedRefreshToken, t.correlationId), [2, this.acquireTokenWithCachedRefreshToken(t, !1)];
9281
9281
  throw m;
9282
9282
  }
@@ -9286,13 +9286,13 @@ var hi = (
9286
9286
  }, e.prototype.acquireTokenWithCachedRefreshToken = function(t, r) {
9287
9287
  var o, i, a;
9288
9288
  return oe(this, void 0, void 0, function() {
9289
- var s, u, p;
9290
- return ie(this, function(l) {
9291
- if ((o = this.performanceClient) === null || o === void 0 || o.addQueueMeasurement(A.RefreshTokenClientAcquireTokenWithCachedRefreshToken, t.correlationId), s = (i = this.performanceClient) === null || i === void 0 ? void 0 : i.startMeasurement(A.RefreshTokenClientAcquireTokenWithCachedRefreshToken, t.correlationId), this.logger.verbose("RefreshTokenClientAcquireTokenWithCachedRefreshToken called", t.correlationId), u = this.cacheManager.getRefreshToken(t.account, r), !u)
9289
+ var s, l, p;
9290
+ return ie(this, function(u) {
9291
+ if ((o = this.performanceClient) === null || o === void 0 || o.addQueueMeasurement(A.RefreshTokenClientAcquireTokenWithCachedRefreshToken, t.correlationId), s = (i = this.performanceClient) === null || i === void 0 ? void 0 : i.startMeasurement(A.RefreshTokenClientAcquireTokenWithCachedRefreshToken, t.correlationId), this.logger.verbose("RefreshTokenClientAcquireTokenWithCachedRefreshToken called", t.correlationId), l = this.cacheManager.getRefreshToken(t.account, r), !l)
9292
9292
  throw s == null || s.discardMeasurement(), Mt.createNoTokensFoundError();
9293
9293
  return s == null || s.endMeasurement({
9294
9294
  success: !0
9295
- }), p = fe(fe({}, t), { refreshToken: u.secret, authenticationScheme: t.authenticationScheme || _e.BEARER, ccsCredential: {
9295
+ }), p = fe(fe({}, t), { refreshToken: l.secret, authenticationScheme: t.authenticationScheme || _e.BEARER, ccsCredential: {
9296
9296
  credential: t.account.homeAccountId,
9297
9297
  type: gt.HOME_ACCOUNT_ID
9298
9298
  } }), (a = this.performanceClient) === null || a === void 0 || a.setPreQueueTime(A.RefreshTokenClientAcquireToken, t.correlationId), [2, this.acquireToken(p)];
@@ -9301,13 +9301,13 @@ var hi = (
9301
9301
  }, e.prototype.executeTokenRequest = function(t, r) {
9302
9302
  var o, i, a;
9303
9303
  return oe(this, void 0, void 0, function() {
9304
- var s, u, p, l, m, f;
9304
+ var s, l, p, u, m, f;
9305
9305
  return ie(this, function(k) {
9306
9306
  switch (k.label) {
9307
9307
  case 0:
9308
- return (o = this.performanceClient) === null || o === void 0 || o.addQueueMeasurement(A.RefreshTokenClientExecuteTokenRequest, t.correlationId), s = (i = this.performanceClient) === null || i === void 0 ? void 0 : i.startMeasurement(A.RefreshTokenClientExecuteTokenRequest, t.correlationId), (a = this.performanceClient) === null || a === void 0 || a.setPreQueueTime(A.RefreshTokenClientCreateTokenRequestBody, t.correlationId), u = this.createTokenQueryParameters(t), p = ue.appendQueryString(r.tokenEndpoint, u), [4, this.createTokenRequestBody(t)];
9308
+ return (o = this.performanceClient) === null || o === void 0 || o.addQueueMeasurement(A.RefreshTokenClientExecuteTokenRequest, t.correlationId), s = (i = this.performanceClient) === null || i === void 0 ? void 0 : i.startMeasurement(A.RefreshTokenClientExecuteTokenRequest, t.correlationId), (a = this.performanceClient) === null || a === void 0 || a.setPreQueueTime(A.RefreshTokenClientCreateTokenRequestBody, t.correlationId), l = this.createTokenQueryParameters(t), p = ue.appendQueryString(r.tokenEndpoint, l), [4, this.createTokenRequestBody(t)];
9309
9309
  case 1:
9310
- return l = k.sent(), m = this.createTokenRequestHeaders(t.ccsCredential), f = {
9310
+ return u = k.sent(), m = this.createTokenRequestHeaders(t.ccsCredential), f = {
9311
9311
  clientId: this.config.authOptions.clientId,
9312
9312
  authority: r.canonicalAuthority,
9313
9313
  scopes: t.scopes,
@@ -9317,7 +9317,7 @@ var hi = (
9317
9317
  resourceRequestUri: t.resourceRequestUri,
9318
9318
  shrClaims: t.shrClaims,
9319
9319
  sshKid: t.sshKid
9320
- }, [2, this.executePostToTokenEndpoint(p, l, m, f).then(function(E) {
9320
+ }, [2, this.executePostToTokenEndpoint(p, u, m, f).then(function(E) {
9321
9321
  return s == null || s.endMeasurement({
9322
9322
  success: !0
9323
9323
  }), E;
@@ -9332,39 +9332,39 @@ var hi = (
9332
9332
  }, e.prototype.createTokenRequestBody = function(t) {
9333
9333
  var r, o, i;
9334
9334
  return oe(this, void 0, void 0, function() {
9335
- var a, s, u, p, l, m, f;
9335
+ var a, s, l, p, u, m, f;
9336
9336
  return ie(this, function(k) {
9337
9337
  switch (k.label) {
9338
9338
  case 0:
9339
- return (r = this.performanceClient) === null || r === void 0 || r.addQueueMeasurement(A.RefreshTokenClientCreateTokenRequestBody, t.correlationId), a = t.correlationId, s = (o = this.performanceClient) === null || o === void 0 ? void 0 : o.startMeasurement(A.BaseClientCreateTokenRequestHeaders, a), u = new Jn(), u.addClientId(this.config.authOptions.clientId), u.addScopes(t.scopes), u.addGrantType(mr.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 !== _e.POP ? [3, 2] : (l = new Dn(this.cryptoUtils, this.performanceClient), (i = this.performanceClient) === null || i === void 0 || i.setPreQueueTime(A.PopTokenGenerateCnf, t.correlationId), [4, l.generateCnf(t)]);
9339
+ return (r = this.performanceClient) === null || r === void 0 || r.addQueueMeasurement(A.RefreshTokenClientCreateTokenRequestBody, t.correlationId), a = t.correlationId, s = (o = this.performanceClient) === null || o === void 0 ? void 0 : o.startMeasurement(A.BaseClientCreateTokenRequestHeaders, a), l = new Jn(), l.addClientId(this.config.authOptions.clientId), l.addScopes(t.scopes), l.addGrantType(mr.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 !== _e.POP ? [3, 2] : (u = new Dn(this.cryptoUtils, this.performanceClient), (i = this.performanceClient) === null || i === void 0 || i.setPreQueueTime(A.PopTokenGenerateCnf, t.correlationId), [4, u.generateCnf(t)]);
9340
9340
  case 1:
9341
- return m = k.sent(), u.addPopToken(m.reqCnfString), [3, 3];
9341
+ return m = k.sent(), l.addPopToken(m.reqCnfString), [3, 3];
9342
9342
  case 2:
9343
9343
  if (t.authenticationScheme === _e.SSH)
9344
9344
  if (t.sshJwk)
9345
- u.addSshJwk(t.sshJwk);
9345
+ l.addSshJwk(t.sshJwk);
9346
9346
  else
9347
9347
  throw s == null || s.endMeasurement({
9348
9348
  success: !1
9349
9349
  }), Ee.createMissingSshJwkError();
9350
9350
  k.label = 3;
9351
9351
  case 3:
9352
- if ((!V.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)
9352
+ if ((!V.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)
9353
9353
  switch (t.ccsCredential.type) {
9354
9354
  case gt.HOME_ACCOUNT_ID:
9355
9355
  try {
9356
- f = Mn(t.ccsCredential.credential), u.addCcsOid(f);
9356
+ f = Mn(t.ccsCredential.credential), l.addCcsOid(f);
9357
9357
  } catch (E) {
9358
9358
  this.logger.verbose("Could not parse home account ID for CCS Header: " + E);
9359
9359
  }
9360
9360
  break;
9361
9361
  case gt.UPN:
9362
- u.addCcsUpn(t.ccsCredential.credential);
9362
+ l.addCcsUpn(t.ccsCredential.credential);
9363
9363
  break;
9364
9364
  }
9365
9365
  return s == null || s.endMeasurement({
9366
9366
  success: !0
9367
- }), [2, u.createQueryString()];
9367
+ }), [2, l.createQueryString()];
9368
9368
  }
9369
9369
  });
9370
9370
  });
@@ -9403,9 +9403,9 @@ var Qa = (
9403
9403
  }, e.prototype.acquireCachedToken = function(t) {
9404
9404
  var r, o, i, a, s;
9405
9405
  return oe(this, void 0, void 0, function() {
9406
- var u, p;
9407
- return ie(this, function(l) {
9408
- switch (l.label) {
9406
+ var l, p;
9407
+ return ie(this, function(u) {
9408
+ switch (u.label) {
9409
9409
  case 0:
9410
9410
  if (!t)
9411
9411
  throw Ee.createEmptyTokenRequestError();
@@ -9415,7 +9415,7 @@ var Qa = (
9415
9415
  throw (o = this.serverTelemetryManager) === null || o === void 0 || o.setCacheOutcome(pn.CLAIMS_REQUESTED_CACHE_SKIPPED), this.logger.info("SilentFlowClient:acquireCachedToken - Skipping cache because claims-based caching is disabled and claims were requested."), Q.createRefreshRequiredError();
9416
9416
  if (!t.account)
9417
9417
  throw Q.createNoAccountInSilentRequestError();
9418
- if (u = t.authority || this.authority.getPreferredCache(), p = this.cacheManager.readCacheRecord(t.account, t, u), p.accessToken) {
9418
+ if (l = t.authority || this.authority.getPreferredCache(), p = this.cacheManager.readCacheRecord(t.account, t, l), p.accessToken) {
9419
9419
  if (Et.wasClockTurnedBack(p.accessToken.cachedAt) || Et.isTokenExpired(p.accessToken.expiresOn, this.config.systemOptions.tokenRenewalOffsetSeconds))
9420
9420
  throw (a = this.serverTelemetryManager) === null || a === void 0 || a.setCacheOutcome(pn.CACHED_ACCESS_TOKEN_EXPIRED), this.logger.info("SilentFlowClient:acquireCachedToken - Cached access token is expired or will expire within " + this.config.systemOptions.tokenRenewalOffsetSeconds + " seconds."), Q.createRefreshRequiredError();
9421
9421
  if (p.accessToken.refreshOn && Et.isTokenExpired(p.accessToken.refreshOn, 0))
@@ -9423,7 +9423,7 @@ var Qa = (
9423
9423
  } else throw (i = this.serverTelemetryManager) === null || i === void 0 || i.setCacheOutcome(pn.NO_CACHED_ACCESS_TOKEN), this.logger.info("SilentFlowClient:acquireCachedToken - No access token found in cache for the given properties."), Q.createRefreshRequiredError();
9424
9424
  return this.config.serverTelemetryManager && this.config.serverTelemetryManager.incrementCacheHits(), [4, this.generateResultFromCacheRecord(p, t)];
9425
9425
  case 1:
9426
- return [2, l.sent()];
9426
+ return [2, u.sent()];
9427
9427
  }
9428
9428
  });
9429
9429
  });
@@ -9498,18 +9498,18 @@ var $a = (
9498
9498
  return n.prototype.detectRegion = function(e, t) {
9499
9499
  var r, o, i, a;
9500
9500
  return oe(this, void 0, void 0, function() {
9501
- var s, u, p, l, m;
9501
+ var s, l, p, u, m;
9502
9502
  return ie(this, function(f) {
9503
9503
  switch (f.label) {
9504
9504
  case 0:
9505
9505
  if ((r = this.performanceClient) === null || r === void 0 || r.addQueueMeasurement(A.RegionDiscoveryDetectRegion, this.correlationId), s = e, s) return [3, 8];
9506
- u = n.IMDS_OPTIONS, f.label = 1;
9506
+ l = n.IMDS_OPTIONS, f.label = 1;
9507
9507
  case 1:
9508
- return f.trys.push([1, 6, , 7]), (o = this.performanceClient) === null || o === void 0 || o.setPreQueueTime(A.RegionDiscoveryGetRegionFromIMDS, this.correlationId), [4, this.getRegionFromIMDS(w.IMDS_VERSION, u)];
9508
+ return f.trys.push([1, 6, , 7]), (o = this.performanceClient) === null || o === void 0 || o.setPreQueueTime(A.RegionDiscoveryGetRegionFromIMDS, this.correlationId), [4, this.getRegionFromIMDS(w.IMDS_VERSION, l)];
9509
9509
  case 2:
9510
- return p = f.sent(), p.status === Pn.httpSuccess && (s = p.body, t.region_source = un.IMDS), p.status !== Pn.httpBadRequest ? [3, 5] : ((i = this.performanceClient) === null || i === void 0 || i.setPreQueueTime(A.RegionDiscoveryGetCurrentVersion, this.correlationId), [4, this.getCurrentVersion(u)]);
9510
+ return p = f.sent(), p.status === Pn.httpSuccess && (s = p.body, t.region_source = un.IMDS), p.status !== Pn.httpBadRequest ? [3, 5] : ((i = this.performanceClient) === null || i === void 0 || i.setPreQueueTime(A.RegionDiscoveryGetCurrentVersion, this.correlationId), [4, this.getCurrentVersion(l)]);
9511
9511
  case 3:
9512
- return l = f.sent(), l ? ((a = this.performanceClient) === null || a === void 0 || a.setPreQueueTime(A.RegionDiscoveryGetRegionFromIMDS, this.correlationId), [4, this.getRegionFromIMDS(l, u)]) : (t.region_source = un.FAILED_AUTO_DETECTION, [2, null]);
9512
+ return u = f.sent(), u ? ((a = this.performanceClient) === null || a === void 0 || a.setPreQueueTime(A.RegionDiscoveryGetRegionFromIMDS, this.correlationId), [4, this.getRegionFromIMDS(u, l)]) : (t.region_source = un.FAILED_AUTO_DETECTION, [2, null]);
9513
9513
  case 4:
9514
9514
  m = f.sent(), m.status === Pn.httpSuccess && (s = m.body, t.region_source = un.IMDS), f.label = 5;
9515
9515
  case 5:
@@ -9719,13 +9719,13 @@ var tr = (
9719
9719
  return e.replace(/{tenant}|{tenantid}/g, this.tenant);
9720
9720
  }, n.prototype.replacePath = function(e) {
9721
9721
  var t = this, r = e, o = new ue(this.metadata.canonical_authority), i = o.getUrlComponents(), a = i.PathSegments, s = this.canonicalAuthorityUrlComponents.PathSegments;
9722
- return s.forEach(function(u, p) {
9723
- var l = a[p];
9722
+ return s.forEach(function(l, p) {
9723
+ var u = a[p];
9724
9724
  if (p === 0 && t.canReplaceTenant(i)) {
9725
9725
  var m = new ue(t.metadata.authorization_endpoint).getUrlComponents().PathSegments[0];
9726
- l !== m && (t.logger.verbose("Replacing tenant domain name " + l + " with id " + m), l = m);
9726
+ u !== m && (t.logger.verbose("Replacing tenant domain name " + u + " with id " + m), u = m);
9727
9727
  }
9728
- u !== l && (r = r.replace("/" + l + "/", "/" + u + "/"));
9728
+ l !== u && (r = r.replace("/" + u + "/", "/" + l + "/"));
9729
9729
  }), this.replaceTenant(r);
9730
9730
  }, Object.defineProperty(n.prototype, "defaultOpenIdConfigurationEndpoint", {
9731
9731
  /**
@@ -9742,14 +9742,14 @@ var tr = (
9742
9742
  var e, t, r;
9743
9743
  return oe(this, void 0, void 0, function() {
9744
9744
  var o, i, a, s;
9745
- return ie(this, function(u) {
9746
- switch (u.label) {
9745
+ return ie(this, function(l) {
9746
+ switch (l.label) {
9747
9747
  case 0:
9748
9748
  return (e = this.performanceClient) === null || e === void 0 || e.addQueueMeasurement(A.AuthorityResolveEndpointsAsync, this.correlationId), o = this.cacheManager.getAuthorityMetadataByAlias(this.hostnameAndPort), o || (o = new Xr(), o.updateCanonicalAuthority(this.canonicalAuthority)), (t = this.performanceClient) === null || t === void 0 || t.setPreQueueTime(A.AuthorityUpdateCloudDiscoveryMetadata, this.correlationId), [4, this.updateCloudDiscoveryMetadata(o)];
9749
9749
  case 1:
9750
- return i = u.sent(), this.canonicalAuthority = this.canonicalAuthority.replace(this.hostnameAndPort, o.preferred_network), (r = this.performanceClient) === null || r === void 0 || r.setPreQueueTime(A.AuthorityUpdateEndpointMetadata, this.correlationId), [4, this.updateEndpointMetadata(o)];
9750
+ return i = l.sent(), this.canonicalAuthority = this.canonicalAuthority.replace(this.hostnameAndPort, o.preferred_network), (r = this.performanceClient) === null || r === void 0 || r.setPreQueueTime(A.AuthorityUpdateEndpointMetadata, this.correlationId), [4, this.updateEndpointMetadata(o)];
9751
9751
  case 2:
9752
- return a = u.sent(), i !== wt.CACHE && a !== wt.CACHE && (o.resetExpiresAt(), o.updateCanonicalAuthority(this.canonicalAuthority)), s = this.cacheManager.generateAuthorityMetadataCacheKey(o.preferred_cache), this.cacheManager.setAuthorityMetadata(s, o), this.metadata = o, [
9752
+ return a = l.sent(), i !== wt.CACHE && a !== wt.CACHE && (o.resetExpiresAt(), o.updateCanonicalAuthority(this.canonicalAuthority)), s = this.cacheManager.generateAuthorityMetadataCacheKey(o.preferred_cache), this.cacheManager.setAuthorityMetadata(s, o), this.metadata = o, [
9753
9753
  2
9754
9754
  /*return*/
9755
9755
  ];
@@ -9759,21 +9759,21 @@ var tr = (
9759
9759
  }, n.prototype.updateEndpointMetadata = function(e) {
9760
9760
  var t, r, o, i, a, s;
9761
9761
  return oe(this, void 0, void 0, function() {
9762
- var u, p;
9763
- return ie(this, function(l) {
9764
- switch (l.label) {
9762
+ var l, p;
9763
+ return ie(this, function(u) {
9764
+ switch (u.label) {
9765
9765
  case 0:
9766
- return (t = this.performanceClient) === null || t === void 0 || t.addQueueMeasurement(A.AuthorityUpdateEndpointMetadata, this.correlationId), u = this.getEndpointMetadataFromConfig(), u ? (e.updateEndpointMetadata(u, !1), [2, wt.CONFIG]) : this.isAuthoritySameType(e) && e.endpointsFromNetwork && !e.isExpired() ? [2, wt.CACHE] : ((r = this.performanceClient) === null || r === void 0 || r.setPreQueueTime(A.AuthorityGetEndpointMetadataFromNetwork, this.correlationId), [4, this.getEndpointMetadataFromNetwork()]);
9766
+ return (t = this.performanceClient) === null || t === void 0 || t.addQueueMeasurement(A.AuthorityUpdateEndpointMetadata, this.correlationId), l = this.getEndpointMetadataFromConfig(), l ? (e.updateEndpointMetadata(l, !1), [2, wt.CONFIG]) : this.isAuthoritySameType(e) && e.endpointsFromNetwork && !e.isExpired() ? [2, wt.CACHE] : ((r = this.performanceClient) === null || r === void 0 || r.setPreQueueTime(A.AuthorityGetEndpointMetadataFromNetwork, this.correlationId), [4, this.getEndpointMetadataFromNetwork()]);
9767
9767
  case 1:
9768
- return u = l.sent(), u ? !((o = this.authorityOptions.azureRegionConfiguration) === null || o === void 0) && o.azureRegion ? ((i = this.performanceClient) === null || i === void 0 || i.setPreQueueTime(A.AuthorityUpdateMetadataWithRegionalInformation, this.correlationId), [4, this.updateMetadataWithRegionalInformation(u)]) : [3, 3] : [3, 4];
9768
+ return l = u.sent(), l ? !((o = this.authorityOptions.azureRegionConfiguration) === null || o === void 0) && o.azureRegion ? ((i = this.performanceClient) === null || i === void 0 || i.setPreQueueTime(A.AuthorityUpdateMetadataWithRegionalInformation, this.correlationId), [4, this.updateMetadataWithRegionalInformation(l)]) : [3, 3] : [3, 4];
9769
9769
  case 2:
9770
- u = l.sent(), l.label = 3;
9770
+ l = u.sent(), u.label = 3;
9771
9771
  case 3:
9772
- return e.updateEndpointMetadata(u, !0), [2, wt.NETWORK];
9772
+ return e.updateEndpointMetadata(l, !0), [2, wt.NETWORK];
9773
9773
  case 4:
9774
9774
  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(A.AuthorityUpdateMetadataWithRegionalInformation, this.correlationId), [4, this.updateMetadataWithRegionalInformation(p)]) : [3, 6] : [3, 7];
9775
9775
  case 5:
9776
- p = l.sent(), l.label = 6;
9776
+ p = u.sent(), u.label = 6;
9777
9777
  case 6:
9778
9778
  return e.updateEndpointMetadata(p, !1), [2, wt.HARDCODED_VALUES];
9779
9779
  case 7:
@@ -9820,14 +9820,14 @@ var tr = (
9820
9820
  var t, r, o, i;
9821
9821
  return oe(this, void 0, void 0, function() {
9822
9822
  var a, s;
9823
- return ie(this, function(u) {
9824
- switch (u.label) {
9823
+ return ie(this, function(l) {
9824
+ switch (l.label) {
9825
9825
  case 0:
9826
9826
  return (t = this.performanceClient) === null || t === void 0 || t.addQueueMeasurement(A.AuthorityUpdateMetadataWithRegionalInformation, this.correlationId), a = (r = this.authorityOptions.azureRegionConfiguration) === null || r === void 0 ? void 0 : r.azureRegion, a ? a !== w.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(A.RegionDiscoveryDetectRegion, this.correlationId), [4, this.regionDiscovery.detectRegion((i = this.authorityOptions.azureRegionConfiguration) === null || i === void 0 ? void 0 : i.environmentRegion, this.regionDiscoveryMetadata)]) : [3, 2];
9827
9827
  case 1:
9828
- if (s = u.sent(), s)
9828
+ if (s = l.sent(), s)
9829
9829
  return this.regionDiscoveryMetadata.region_outcome = Wn.AUTO_DETECTION_REQUESTED_SUCCESSFUL, this.regionDiscoveryMetadata.region_used = s, [2, n.replaceWithRegionalInformation(e, s)];
9830
- this.regionDiscoveryMetadata.region_outcome = Wn.AUTO_DETECTION_REQUESTED_FAILED, u.label = 2;
9830
+ this.regionDiscoveryMetadata.region_outcome = Wn.AUTO_DETECTION_REQUESTED_FAILED, l.label = 2;
9831
9831
  case 2:
9832
9832
  return [2, e];
9833
9833
  }
@@ -9869,15 +9869,15 @@ var tr = (
9869
9869
  }, n.prototype.getCloudDiscoveryMetadataFromNetwork = function() {
9870
9870
  var e;
9871
9871
  return oe(this, void 0, void 0, function() {
9872
- var t, r, o, i, a, s, u, p;
9873
- return ie(this, function(l) {
9874
- switch (l.label) {
9872
+ var t, r, o, i, a, s, l, p;
9873
+ return ie(this, function(u) {
9874
+ switch (u.label) {
9875
9875
  case 0:
9876
- (e = this.performanceClient) === null || e === void 0 || e.addQueueMeasurement(A.AuthorityGetCloudDiscoveryMetadataFromNetwork, this.correlationId), t = "" + w.AAD_INSTANCE_DISCOVERY_ENDPT + this.canonicalAuthority + "oauth2/v2.0/authorize", r = {}, o = null, l.label = 1;
9876
+ (e = this.performanceClient) === null || e === void 0 || e.addQueueMeasurement(A.AuthorityGetCloudDiscoveryMetadataFromNetwork, this.correlationId), t = "" + w.AAD_INSTANCE_DISCOVERY_ENDPT + this.canonicalAuthority + "oauth2/v2.0/authorize", r = {}, o = null, u.label = 1;
9877
9877
  case 1:
9878
- return l.trys.push([1, 3, , 4]), [4, this.networkInterface.sendGetRequestAsync(t, r)];
9878
+ return u.trys.push([1, 3, , 4]), [4, this.networkInterface.sendGetRequestAsync(t, r)];
9879
9879
  case 2:
9880
- if (i = l.sent(), a = void 0, s = void 0, Wa(i.body))
9880
+ if (i = u.sent(), a = void 0, s = void 0, Wa(i.body))
9881
9881
  a = i.body, s = a.metadata, this.logger.verbosePii("tenant_discovery_endpoint is: " + a.tenant_discovery_endpoint);
9882
9882
  else if (Ja(i.body)) {
9883
9883
  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 === w.INVALID_INSTANCE)
@@ -9887,9 +9887,9 @@ var tr = (
9887
9887
  return this.logger.error("AAD did not return a CloudInstanceDiscoveryResponse or CloudInstanceDiscoveryErrorResponse"), [2, null];
9888
9888
  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];
9889
9889
  case 3:
9890
- return u = l.sent(), u instanceof X ? this.logger.error(`There was a network error while attempting to get the cloud discovery instance metadata.
9891
- Error: ` + u.errorCode + `
9892
- Error Description: ` + u.errorMessage) : (p = u, this.logger.error(`A non-MSALJS error was thrown while attempting to get the cloud instance discovery metadata.
9890
+ return l = u.sent(), l instanceof X ? this.logger.error(`There was a network error while attempting to get the cloud discovery instance metadata.
9891
+ Error: ` + l.errorCode + `
9892
+ Error Description: ` + l.errorMessage) : (p = l, this.logger.error(`A non-MSALJS error was thrown while attempting to get the cloud instance discovery metadata.
9893
9893
  Error: ` + p.name + `
9894
9894
  Error Description: ` + p.message)), [2, null];
9895
9895
  case 4:
@@ -9965,17 +9965,17 @@ var Cr = (
9965
9965
  }
9966
9966
  return n.createDiscoveredInstance = function(e, t, r, o, i, a, s) {
9967
9967
  return oe(this, void 0, void 0, function() {
9968
- var u, p, l;
9968
+ var l, p, u;
9969
9969
  return ie(this, function(m) {
9970
9970
  switch (m.label) {
9971
9971
  case 0:
9972
- a == null || a.addQueueMeasurement(A.AuthorityFactoryCreateDiscoveredInstance, s), u = tr.transformCIAMAuthority(e), p = n.createInstance(u, t, r, o, i, a, s), m.label = 1;
9972
+ a == null || a.addQueueMeasurement(A.AuthorityFactoryCreateDiscoveredInstance, s), l = tr.transformCIAMAuthority(e), p = n.createInstance(l, t, r, o, i, a, s), m.label = 1;
9973
9973
  case 1:
9974
9974
  return m.trys.push([1, 3, , 4]), a == null || a.setPreQueueTime(A.AuthorityResolveEndpointsAsync, s), [4, p.resolveEndpointsAsync()];
9975
9975
  case 2:
9976
9976
  return m.sent(), [2, p];
9977
9977
  case 3:
9978
- throw l = m.sent(), Q.createEndpointDiscoveryIncompleteError(l);
9978
+ throw u = m.sent(), Q.createEndpointDiscoveryIncompleteError(u);
9979
9979
  case 4:
9980
9980
  return [
9981
9981
  2
@@ -10109,8 +10109,8 @@ var es = (
10109
10109
  }, n.maxErrorsToSend = function(e) {
10110
10110
  var t, r = 0, o = 0, i = e.errors.length;
10111
10111
  for (t = 0; t < i; t++) {
10112
- var a = e.failedRequests[2 * t] || w.EMPTY_STRING, s = e.failedRequests[2 * t + 1] || w.EMPTY_STRING, u = e.errors[t] || w.EMPTY_STRING;
10113
- if (o += a.toString().length + s.toString().length + u.length + 3, o < Ge.MAX_LAST_HEADER_BYTES)
10112
+ var a = e.failedRequests[2 * t] || w.EMPTY_STRING, s = e.failedRequests[2 * t + 1] || w.EMPTY_STRING, l = e.errors[t] || w.EMPTY_STRING;
10113
+ if (o += a.toString().length + s.toString().length + l.length + 3, o < Ge.MAX_LAST_HEADER_BYTES)
10114
10114
  r += 1;
10115
10115
  else
10116
10116
  break;
@@ -10178,7 +10178,7 @@ var gi = (
10178
10178
  t || this.logger.info("PerformanceClient: No correlation id provided for " + e + ", generating", a), this.logger.trace("PerformanceClient: Performance measurement started for " + e, a);
10179
10179
  var s = this.startPerformanceMeasuremeant(e, a);
10180
10180
  s.startMeasurement();
10181
- var u = {
10181
+ var l = {
10182
10182
  eventId: this.generateId(),
10183
10183
  status: br.InProgress,
10184
10184
  authority: this.authority,
@@ -10191,41 +10191,41 @@ var gi = (
10191
10191
  appName: (o = this.applicationTelemetry) === null || o === void 0 ? void 0 : o.appName,
10192
10192
  appVersion: (i = this.applicationTelemetry) === null || i === void 0 ? void 0 : i.appVersion
10193
10193
  };
10194
- return this.cacheEventByCorrelationId(u), {
10194
+ return this.cacheEventByCorrelationId(l), {
10195
10195
  endMeasurement: function(p) {
10196
- return r.endMeasurement(fe(fe({}, u), p), s);
10196
+ return r.endMeasurement(fe(fe({}, l), p), s);
10197
10197
  },
10198
10198
  discardMeasurement: function() {
10199
- return r.discardMeasurements(u.correlationId);
10199
+ return r.discardMeasurements(l.correlationId);
10200
10200
  },
10201
10201
  addStaticFields: function(p) {
10202
- return r.addStaticFields(p, u.correlationId);
10202
+ return r.addStaticFields(p, l.correlationId);
10203
10203
  },
10204
10204
  increment: function(p) {
10205
- return r.increment(p, u.correlationId);
10205
+ return r.increment(p, l.correlationId);
10206
10206
  },
10207
10207
  measurement: s,
10208
- event: u
10208
+ event: l
10209
10209
  };
10210
10210
  }, n.prototype.endMeasurement = function(e, t) {
10211
10211
  var r = this, o, i, a = this.eventsByCorrelationId.get(e.correlationId);
10212
10212
  if (!a)
10213
10213
  return this.logger.trace("PerformanceClient: Measurement not found for " + e.eventId, e.correlationId), null;
10214
- var s = e.eventId === a.eventId, u = {
10214
+ var s = e.eventId === a.eventId, l = {
10215
10215
  totalQueueTime: 0,
10216
10216
  totalQueueCount: 0,
10217
10217
  manuallyCompletedCount: 0
10218
10218
  };
10219
- 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();
10219
+ 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();
10220
10220
  var p = t == null ? void 0 : t.flushMeasurement();
10221
10221
  if (!p)
10222
10222
  return this.logger.trace("PerformanceClient: Performance measurement not taken", a.correlationId), null;
10223
10223
  if (this.logger.trace("PerformanceClient: Performance measurement ended for " + e.name + ": " + p + " ms", e.correlationId), !s)
10224
10224
  return a[e.name + "DurationMs"] = Math.floor(p), fe({}, a);
10225
- var l = fe(fe({}, a), e), m = 0;
10226
- return (i = l.incompleteSubMeasurements) === null || i === void 0 || i.forEach(function(f) {
10227
- r.logger.trace("PerformanceClient: Incomplete submeasurement " + f.name + " found for " + e.name, l.correlationId), m++;
10228
- }), l.incompleteSubMeasurements = void 0, l = fe(fe({}, l), { durationMs: Math.round(p), queuedTimeMs: u.totalQueueTime, queuedCount: u.totalQueueCount, queuedManuallyCompletedCount: u.manuallyCompletedCount, status: br.Completed, incompleteSubsCount: m }), this.truncateIntegralFields(l, this.getIntFields()), this.emitEvents([l], e.correlationId), l;
10225
+ var u = fe(fe({}, a), e), m = 0;
10226
+ return (i = u.incompleteSubMeasurements) === null || i === void 0 || i.forEach(function(f) {
10227
+ r.logger.trace("PerformanceClient: Incomplete submeasurement " + f.name + " found for " + e.name, u.correlationId), m++;
10228
+ }), u.incompleteSubMeasurements = void 0, u = fe(fe({}, u), { durationMs: Math.round(p), queuedTimeMs: l.totalQueueTime, queuedCount: l.totalQueueCount, queuedManuallyCompletedCount: l.manuallyCompletedCount, status: br.Completed, incompleteSubsCount: m }), this.truncateIntegralFields(u, this.getIntFields()), this.emitEvents([u], e.correlationId), u;
10229
10229
  }, n.prototype.addStaticFields = function(e, t) {
10230
10230
  this.logger.trace("PerformanceClient: Updating static fields");
10231
10231
  var r = this.eventsByCorrelationId.get(t);
@@ -10838,7 +10838,7 @@ var to = (
10838
10838
  return this.internalStorage;
10839
10839
  }
10840
10840
  }, e.prototype.migrateCacheEntries = function() {
10841
- var t = this, r = w.CACHE_PREFIX + "." + Ue.ID_TOKEN, o = w.CACHE_PREFIX + "." + Ue.CLIENT_INFO, i = w.CACHE_PREFIX + "." + Ue.ERROR, a = w.CACHE_PREFIX + "." + Ue.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 = [Ue.ID_TOKEN, Ue.CLIENT_INFO, Ue.ERROR, Ue.ERROR_DESC];
10841
+ var t = this, r = w.CACHE_PREFIX + "." + Ue.ID_TOKEN, o = w.CACHE_PREFIX + "." + Ue.CLIENT_INFO, i = w.CACHE_PREFIX + "." + Ue.ERROR, a = w.CACHE_PREFIX + "." + Ue.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 = [Ue.ID_TOKEN, Ue.CLIENT_INFO, Ue.ERROR, Ue.ERROR_DESC];
10842
10842
  f.forEach(function(k, E) {
10843
10843
  return t.migrateCacheEntry(k, m[E]);
10844
10844
  });
@@ -10857,33 +10857,33 @@ var to = (
10857
10857
  if (t.isCredentialKey(a)) {
10858
10858
  var s = t.getItem(a);
10859
10859
  if (s) {
10860
- var u = t.validateAndParseJson(s);
10861
- if (u && u.hasOwnProperty("credentialType"))
10862
- switch (u.credentialType) {
10860
+ var l = t.validateAndParseJson(s);
10861
+ if (l && l.hasOwnProperty("credentialType"))
10862
+ switch (l.credentialType) {
10863
10863
  case ee.ID_TOKEN:
10864
- if (kn.isIdTokenEntity(u)) {
10864
+ if (kn.isIdTokenEntity(l)) {
10865
10865
  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");
10866
- var p = it.toObject(new kn(), u), l = t.updateCredentialCacheKey(a, p);
10867
- t.addTokenKey(l, ee.ID_TOKEN);
10866
+ var p = it.toObject(new kn(), l), u = t.updateCredentialCacheKey(a, p);
10867
+ t.addTokenKey(u, ee.ID_TOKEN);
10868
10868
  return;
10869
10869
  } else
10870
10870
  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);
10871
10871
  break;
10872
10872
  case ee.ACCESS_TOKEN:
10873
10873
  case ee.ACCESS_TOKEN_WITH_AUTH_SCHEME:
10874
- if (Cn.isAccessTokenEntity(u)) {
10874
+ if (Cn.isAccessTokenEntity(l)) {
10875
10875
  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");
10876
- var m = it.toObject(new Cn(), u), l = t.updateCredentialCacheKey(a, m);
10877
- t.addTokenKey(l, ee.ACCESS_TOKEN);
10876
+ var m = it.toObject(new Cn(), l), u = t.updateCredentialCacheKey(a, m);
10877
+ t.addTokenKey(u, ee.ACCESS_TOKEN);
10878
10878
  return;
10879
10879
  } else
10880
10880
  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);
10881
10881
  break;
10882
10882
  case ee.REFRESH_TOKEN:
10883
- if (Nn.isRefreshTokenEntity(u)) {
10883
+ if (Nn.isRefreshTokenEntity(l)) {
10884
10884
  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");
10885
- var f = it.toObject(new Nn(), u), l = t.updateCredentialCacheKey(a, f);
10886
- t.addTokenKey(l, ee.REFRESH_TOKEN);
10885
+ var f = it.toObject(new Nn(), l), u = t.updateCredentialCacheKey(a, f);
10886
+ t.addTokenKey(u, ee.REFRESH_TOKEN);
10887
10887
  return;
10888
10888
  } else
10889
10889
  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);
@@ -11244,21 +11244,21 @@ var to = (
11244
11244
  this.logger.trace("BrowserCacheManager.updateCacheEntries called");
11245
11245
  var s = this.generateStateKey(t);
11246
11246
  this.setTemporaryCache(s, t, !1);
11247
- var u = this.generateNonceKey(t);
11248
- this.setTemporaryCache(u, r, !1);
11247
+ var l = this.generateNonceKey(t);
11248
+ this.setTemporaryCache(l, r, !1);
11249
11249
  var p = this.generateAuthorityKey(t);
11250
11250
  if (this.setTemporaryCache(p, o, !1), a) {
11251
- var l = {
11251
+ var u = {
11252
11252
  credential: a.homeAccountId,
11253
11253
  type: gt.HOME_ACCOUNT_ID
11254
11254
  };
11255
- this.setTemporaryCache(de.CCS_CREDENTIAL, JSON.stringify(l), !0);
11255
+ this.setTemporaryCache(de.CCS_CREDENTIAL, JSON.stringify(u), !0);
11256
11256
  } else if (!V.isEmpty(i)) {
11257
- var l = {
11257
+ var u = {
11258
11258
  credential: i,
11259
11259
  type: gt.UPN
11260
11260
  };
11261
- this.setTemporaryCache(de.CCS_CREDENTIAL, JSON.stringify(l), !0);
11261
+ this.setTemporaryCache(de.CCS_CREDENTIAL, JSON.stringify(u), !0);
11262
11262
  }
11263
11263
  }, e.prototype.resetRequestCache = function(t) {
11264
11264
  var r = this;
@@ -11479,9 +11479,9 @@ var as = (
11479
11479
  ), o.setXhrHeaders(s, r), s.onload = function() {
11480
11480
  (s.status < 200 || s.status >= 300) && (t === Kt.POST ? a(F.createPostRequestFailedError("Failed with status " + s.status, e)) : a(F.createGetRequestFailedError("Failed with status " + s.status, e)));
11481
11481
  try {
11482
- var u = JSON.parse(s.responseText), p = {
11482
+ var l = JSON.parse(s.responseText), p = {
11483
11483
  headers: o.getHeaderDict(s),
11484
- body: u,
11484
+ body: l,
11485
11485
  status: s.status
11486
11486
  };
11487
11487
  i(p);
@@ -11507,8 +11507,8 @@ var as = (
11507
11507
  }, n.prototype.getHeaderDict = function(e) {
11508
11508
  var t = e.getAllResponseHeaders(), r = t.trim().split(/[\r\n]+/), o = {};
11509
11509
  return r.forEach(function(i) {
11510
- var a = i.split(": "), s = a.shift(), u = a.join(": ");
11511
- s && u && (o[s] = u);
11510
+ var a = i.split(": "), s = a.shift(), l = a.join(": ");
11511
+ s && l && (o[s] = l);
11512
11512
  }), o;
11513
11513
  }, n;
11514
11514
  }()
@@ -11562,8 +11562,8 @@ var Ae = (
11562
11562
  var _i = (
11563
11563
  /** @class */
11564
11564
  function() {
11565
- function n(e, t, r, o, i, a, s, u, p) {
11566
- 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, Xn, this.correlationId), this.performanceClient = s;
11565
+ function n(e, t, r, o, i, a, s, l, p) {
11566
+ 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, Xn, this.correlationId), this.performanceClient = s;
11567
11567
  }
11568
11568
  return n.prototype.clearCacheOnLogout = function(e) {
11569
11569
  return O(this, void 0, void 0, function() {
@@ -11794,7 +11794,7 @@ var jn = (
11794
11794
  }, e.prototype.getDiscoveredAuthority = function(t, r) {
11795
11795
  var o;
11796
11796
  return O(this, void 0, void 0, function() {
11797
- var i, a, s, u;
11797
+ var i, a, s, l;
11798
11798
  return L(this, function(p) {
11799
11799
  switch (p.label) {
11800
11800
  case 0:
@@ -11804,16 +11804,16 @@ var jn = (
11804
11804
  cloudDiscoveryMetadata: this.config.auth.cloudDiscoveryMetadata,
11805
11805
  authorityMetadata: this.config.auth.authorityMetadata,
11806
11806
  skipAuthorityMetadataCache: this.config.auth.skipAuthorityMetadataCache
11807
- }, s = t || this.config.auth.authority, u = tr.generateAuthority(s, r || this.config.auth.azureCloudOptions), this.logger.verbose("Creating discovered authority with configured authority", this.correlationId), this.performanceClient.setPreQueueTime(A.AuthorityFactoryCreateDiscoveredInstance, this.correlationId), [4, Cr.createDiscoveredInstance(u, this.config.system.networkClient, this.browserStorage, a, this.logger, this.performanceClient, this.correlationId).then(function(l) {
11807
+ }, s = t || this.config.auth.authority, l = tr.generateAuthority(s, r || this.config.auth.azureCloudOptions), this.logger.verbose("Creating discovered authority with configured authority", this.correlationId), this.performanceClient.setPreQueueTime(A.AuthorityFactoryCreateDiscoveredInstance, this.correlationId), [4, Cr.createDiscoveredInstance(l, this.config.system.networkClient, this.browserStorage, a, this.logger, this.performanceClient, this.correlationId).then(function(u) {
11808
11808
  return i.endMeasurement({
11809
11809
  success: !0
11810
- }), l;
11811
- }).catch(function(l) {
11810
+ }), u;
11811
+ }).catch(function(u) {
11812
11812
  throw i.endMeasurement({
11813
- errorCode: l.errorCode,
11814
- subErrorCode: l.subError,
11813
+ errorCode: u.errorCode,
11814
+ subErrorCode: u.subError,
11815
11815
  success: !1
11816
- }), l;
11816
+ }), u;
11817
11817
  })];
11818
11818
  case 1:
11819
11819
  return [2, p.sent()];
@@ -11822,15 +11822,15 @@ var jn = (
11822
11822
  });
11823
11823
  }, e.prototype.initializeAuthorizationRequest = function(t, r) {
11824
11824
  return O(this, void 0, void 0, function() {
11825
- var o, i, a, s, u, p, l;
11825
+ var o, i, a, s, l, p, u;
11826
11826
  return L(this, function(m) {
11827
11827
  switch (m.label) {
11828
11828
  case 0:
11829
11829
  return this.performanceClient.addQueueMeasurement(A.StandardInteractionClientInitializeAuthorizationRequest, this.correlationId), this.logger.verbose("initializeAuthorizationRequest called", this.correlationId), o = this.getRedirectUri(t.redirectUri), i = {
11830
11830
  interactionType: r
11831
- }, a = tn.setRequestState(this.browserCrypto, t && t.state || w.EMPTY_STRING, i), this.performanceClient.setPreQueueTime(A.InitializeBaseRequest, this.correlationId), u = [{}], [4, this.initializeBaseRequest(t)];
11831
+ }, a = tn.setRequestState(this.browserCrypto, t && t.state || w.EMPTY_STRING, i), this.performanceClient.setPreQueueTime(A.InitializeBaseRequest, this.correlationId), l = [{}], [4, this.initializeBaseRequest(t)];
11832
11832
  case 1:
11833
- 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: gr.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), V.isEmpty(s.loginHint) && !p && (l = this.browserStorage.getLegacyLoginHint(), l && (s.loginHint = l)), [2, s];
11833
+ 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: gr.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), V.isEmpty(s.loginHint) && !p && (u = this.browserStorage.getLegacyLoginHint(), u && (s.loginHint = u)), [2, s];
11834
11834
  }
11835
11835
  });
11836
11836
  });
@@ -11847,7 +11847,7 @@ var fo = (
11847
11847
  return n.prototype.handleCodeResponseFromHash = function(e, t, r, o) {
11848
11848
  return O(this, void 0, void 0, function() {
11849
11849
  var i, a, s;
11850
- return L(this, function(u) {
11850
+ return L(this, function(l) {
11851
11851
  if (this.performanceClient.addQueueMeasurement(A.HandleCodeResponseFromHash, this.authCodeRequest.correlationId), this.logger.verbose("InteractionHandler.handleCodeResponse called"), V.isEmpty(e))
11852
11852
  throw F.createEmptyHashError(e);
11853
11853
  if (i = this.browserStorage.generateStateKey(t), a = this.browserStorage.getTemporaryCache(i), !a)
@@ -11862,17 +11862,17 @@ var fo = (
11862
11862
  });
11863
11863
  }, n.prototype.handleCodeResponseFromServer = function(e, t, r, o, i) {
11864
11864
  return i === void 0 && (i = !0), O(this, void 0, void 0, function() {
11865
- var a, s, u, p, l, m;
11865
+ var a, s, l, p, u, m;
11866
11866
  return L(this, function(f) {
11867
11867
  switch (f.label) {
11868
11868
  case 0:
11869
11869
  if (this.performanceClient.addQueueMeasurement(A.HandleCodeResponseFromServer, this.authCodeRequest.correlationId), this.logger.trace("InteractionHandler.handleCodeResponseFromServer called"), a = this.browserStorage.generateStateKey(t), s = this.browserStorage.getTemporaryCache(a), !s)
11870
11870
  throw Q.createStateNotFoundError("Cached State");
11871
- return u = this.browserStorage.generateNonceKey(s), p = this.browserStorage.getTemporaryCache(u), this.authCodeRequest.code = e.code, e.cloud_instance_host_name ? (this.performanceClient.setPreQueueTime(A.UpdateTokenEndpointAuthority, this.authCodeRequest.correlationId), [4, this.updateTokenEndpointAuthority(e.cloud_instance_host_name, r, o)]) : [3, 2];
11871
+ return l = this.browserStorage.generateNonceKey(s), p = this.browserStorage.getTemporaryCache(l), this.authCodeRequest.code = e.code, e.cloud_instance_host_name ? (this.performanceClient.setPreQueueTime(A.UpdateTokenEndpointAuthority, this.authCodeRequest.correlationId), [4, this.updateTokenEndpointAuthority(e.cloud_instance_host_name, r, o)]) : [3, 2];
11872
11872
  case 1:
11873
11873
  f.sent(), f.label = 2;
11874
11874
  case 2:
11875
- 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(A.AuthClientAcquireToken, this.authCodeRequest.correlationId), [4, this.authModule.acquireToken(this.authCodeRequest, e)];
11875
+ 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(A.AuthClientAcquireToken, this.authCodeRequest.correlationId), [4, this.authModule.acquireToken(this.authCodeRequest, e)];
11876
11876
  case 3:
11877
11877
  return m = f.sent(), this.browserStorage.cleanRequestByState(t), [2, m];
11878
11878
  }
@@ -11911,8 +11911,8 @@ var qo = (
11911
11911
  function(n) {
11912
11912
  Qe(e, n);
11913
11913
  function e(t, r, o, i, a, s) {
11914
- var u = n.call(this, t, r, o, i, s) || this;
11915
- return u.browserCrypto = a, u;
11914
+ var l = n.call(this, t, r, o, i, s) || this;
11915
+ return l.browserCrypto = a, l;
11916
11916
  }
11917
11917
  return e.prototype.initiateAuthRequest = function(t, r) {
11918
11918
  return O(this, void 0, void 0, function() {
@@ -11958,7 +11958,7 @@ var qo = (
11958
11958
  });
11959
11959
  }, e.prototype.handleCodeResponseFromHash = function(t, r, o, i) {
11960
11960
  return O(this, void 0, void 0, function() {
11961
- var a, s, u, p, l, m, f;
11961
+ var a, s, l, p, u, m, f;
11962
11962
  return L(this, function(k) {
11963
11963
  switch (k.label) {
11964
11964
  case 0:
@@ -11967,15 +11967,15 @@ var qo = (
11967
11967
  if (this.browserStorage.setInteractionInProgress(!1), a = this.browserStorage.generateStateKey(r), s = this.browserStorage.getTemporaryCache(a), !s)
11968
11968
  throw Q.createStateNotFoundError("Cached State");
11969
11969
  try {
11970
- u = this.authModule.handleFragmentResponse(t, s);
11970
+ l = this.authModule.handleFragmentResponse(t, s);
11971
11971
  } catch (E) {
11972
11972
  throw E instanceof Sn && E.subError === U.userCancelledError.code ? F.createUserCancelledError() : E;
11973
11973
  }
11974
- 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];
11974
+ 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];
11975
11975
  case 1:
11976
11976
  k.sent(), k.label = 2;
11977
11977
  case 2:
11978
- 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)];
11978
+ 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)];
11979
11979
  case 3:
11980
11980
  return f = k.sent(), this.browserStorage.cleanRequestByState(r), [2, f];
11981
11981
  }
@@ -12054,21 +12054,21 @@ var vi = (
12054
12054
  return e.prototype.acquireToken = function(t) {
12055
12055
  return O(this, void 0, void 0, function() {
12056
12056
  var r, o, i, a, s;
12057
- return L(this, function(u) {
12058
- switch (u.label) {
12057
+ return L(this, function(l) {
12058
+ switch (l.label) {
12059
12059
  case 0:
12060
12060
  return r = this.performanceClient.startMeasurement(A.SilentCacheClientAcquireToken, t.correlationId), o = this.initializeServerTelemetryManager(Ce.acquireTokenSilent_silentFlow), [4, this.createSilentFlowClient(o, t.authority, t.azureCloudOptions)];
12061
12061
  case 1:
12062
- i = u.sent(), this.logger.verbose("Silent auth client created"), u.label = 2;
12062
+ i = l.sent(), this.logger.verbose("Silent auth client created"), l.label = 2;
12063
12063
  case 2:
12064
- return u.trys.push([2, 4, , 5]), [4, i.acquireCachedToken(t)];
12064
+ return l.trys.push([2, 4, , 5]), [4, i.acquireCachedToken(t)];
12065
12065
  case 3:
12066
- return a = u.sent(), r.endMeasurement({
12066
+ return a = l.sent(), r.endMeasurement({
12067
12067
  success: !0,
12068
12068
  fromCache: !0
12069
12069
  }), [2, a];
12070
12070
  case 4:
12071
- throw s = u.sent(), s instanceof F && s.errorCode === U.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({
12071
+ throw s = l.sent(), s instanceof F && s.errorCode === U.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({
12072
12072
  errorCode: s instanceof X && s.errorCode || void 0,
12073
12073
  subErrorCode: s instanceof X && s.subError || void 0,
12074
12074
  success: !1
@@ -12115,36 +12115,36 @@ var Un = (
12115
12115
  /** @class */
12116
12116
  function(n) {
12117
12117
  Qe(e, n);
12118
- function e(t, r, o, i, a, s, u, p, l, m, f, k) {
12119
- var E = n.call(this, t, r, o, i, a, s, p, l, k) || this;
12120
- return E.apiId = u, E.accountId = m, E.nativeMessageHandler = l, E.nativeStorageManager = f, E.silentCacheClient = new vi(t, E.nativeStorageManager, o, i, a, s, p, l, k), E;
12118
+ function e(t, r, o, i, a, s, l, p, u, m, f, k) {
12119
+ var E = n.call(this, t, r, o, i, a, s, p, u, k) || this;
12120
+ return E.apiId = l, E.accountId = m, E.nativeMessageHandler = u, E.nativeStorageManager = f, E.silentCacheClient = new vi(t, E.nativeStorageManager, o, i, a, s, p, u, k), E;
12121
12121
  }
12122
12122
  return e.prototype.acquireToken = function(t) {
12123
12123
  return O(this, void 0, void 0, function() {
12124
- var r, o, i, a, s, u, p;
12125
- return L(this, function(l) {
12126
- switch (l.label) {
12124
+ var r, o, i, a, s, l, p;
12125
+ return L(this, function(u) {
12126
+ switch (u.label) {
12127
12127
  case 0:
12128
12128
  return this.logger.trace("NativeInteractionClient - acquireToken called."), r = this.performanceClient.startMeasurement(A.NativeInteractionClientAcquireToken, t.correlationId), o = Et.nowSeconds(), [4, this.initializeNativeRequest(t)];
12129
12129
  case 1:
12130
- i = l.sent(), l.label = 2;
12130
+ i = u.sent(), u.label = 2;
12131
12131
  case 2:
12132
- return l.trys.push([2, 4, , 5]), [4, this.acquireTokensFromCache(this.accountId, i)];
12132
+ return u.trys.push([2, 4, , 5]), [4, this.acquireTokensFromCache(this.accountId, i)];
12133
12133
  case 3:
12134
- return a = l.sent(), r.endMeasurement({
12134
+ return a = u.sent(), r.endMeasurement({
12135
12135
  success: !0,
12136
12136
  isNativeBroker: !1,
12137
12137
  fromCache: !0
12138
12138
  }), [2, a];
12139
12139
  case 4:
12140
- return l.sent(), this.logger.info("MSAL internal Cache does not contain tokens, proceed to make a native call"), [3, 5];
12140
+ return u.sent(), this.logger.info("MSAL internal Cache does not contain tokens, proceed to make a native call"), [3, 5];
12141
12141
  case 5:
12142
12142
  return s = {
12143
12143
  method: en.GetToken,
12144
12144
  request: i
12145
12145
  }, [4, this.nativeMessageHandler.sendMessage(s)];
12146
12146
  case 6:
12147
- return u = l.sent(), p = this.validateNativeResponse(u), [2, this.handleNativeResponse(p, i, o).then(function(m) {
12147
+ return l = u.sent(), p = this.validateNativeResponse(l), [2, this.handleNativeResponse(p, i, o).then(function(m) {
12148
12148
  return r.endMeasurement({
12149
12149
  success: !0,
12150
12150
  isNativeBroker: !0,
@@ -12172,20 +12172,20 @@ var Un = (
12172
12172
  }, e.prototype.acquireTokensFromCache = function(t, r) {
12173
12173
  return O(this, void 0, void 0, function() {
12174
12174
  var o, i, a, s;
12175
- return L(this, function(u) {
12176
- switch (u.label) {
12175
+ return L(this, function(l) {
12176
+ switch (l.label) {
12177
12177
  case 0:
12178
12178
  if (!t)
12179
12179
  throw this.logger.warning("NativeInteractionClient:acquireTokensFromCache - No nativeAccountId provided"), Q.createNoAccountFoundError();
12180
12180
  if (o = this.browserStorage.getAccountInfoFilteredBy({ nativeAccountId: t }), !o)
12181
12181
  throw Q.createNoAccountFoundError();
12182
- u.label = 1;
12182
+ l.label = 1;
12183
12183
  case 1:
12184
- return u.trys.push([1, 3, , 4]), i = this.createSilentCacheRequest(r, o), [4, this.silentCacheClient.acquireToken(i)];
12184
+ return l.trys.push([1, 3, , 4]), i = this.createSilentCacheRequest(r, o), [4, this.silentCacheClient.acquireToken(i)];
12185
12185
  case 2:
12186
- return a = u.sent(), [2, a];
12186
+ return a = l.sent(), [2, a];
12187
12187
  case 3:
12188
- throw s = u.sent(), s;
12188
+ throw s = l.sent(), s;
12189
12189
  case 4:
12190
12190
  return [
12191
12191
  2
@@ -12196,7 +12196,7 @@ var Un = (
12196
12196
  });
12197
12197
  }, e.prototype.acquireTokenRedirect = function(t) {
12198
12198
  return O(this, void 0, void 0, function() {
12199
- var r, o, i, a, s, u;
12199
+ var r, o, i, a, s, l;
12200
12200
  return L(this, function(p) {
12201
12201
  switch (p.label) {
12202
12202
  case 0:
@@ -12219,7 +12219,7 @@ var Un = (
12219
12219
  apiId: Ce.acquireTokenRedirect,
12220
12220
  timeout: this.config.system.redirectNavigationTimeout,
12221
12221
  noHistory: !1
12222
- }, u = this.config.auth.navigateToLoginRequestUrl ? window.location.href : this.getRedirectUri(t.redirectUri), [4, this.navigationClient.navigateExternal(u, s)];
12222
+ }, l = this.config.auth.navigateToLoginRequestUrl ? window.location.href : this.getRedirectUri(t.redirectUri), [4, this.navigationClient.navigateExternal(l, s)];
12223
12223
  case 6:
12224
12224
  return p.sent(), [
12225
12225
  2
@@ -12230,9 +12230,9 @@ var Un = (
12230
12230
  });
12231
12231
  }, e.prototype.handleRedirectPromise = function() {
12232
12232
  return O(this, void 0, void 0, function() {
12233
- var t, r, o, i, a, s, u, p;
12234
- return L(this, function(l) {
12235
- switch (l.label) {
12233
+ var t, r, o, i, a, s, l, p;
12234
+ return L(this, function(u) {
12235
+ switch (u.label) {
12236
12236
  case 0:
12237
12237
  if (this.logger.trace("NativeInteractionClient - handleRedirectPromise called."), !this.browserStorage.isInteractionInProgress(!0))
12238
12238
  return this.logger.info("handleRedirectPromise called but there is no interaction in progress, returning null."), [2, null];
@@ -12241,13 +12241,13 @@ var Un = (
12241
12241
  r = t.prompt, o = Ao(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(de.NATIVE_REQUEST)), i = {
12242
12242
  method: en.GetToken,
12243
12243
  request: o
12244
- }, a = Et.nowSeconds(), l.label = 1;
12244
+ }, a = Et.nowSeconds(), u.label = 1;
12245
12245
  case 1:
12246
- return l.trys.push([1, 3, , 4]), this.logger.verbose("NativeInteractionClient - handleRedirectPromise sending message to native broker."), [4, this.nativeMessageHandler.sendMessage(i)];
12246
+ return u.trys.push([1, 3, , 4]), this.logger.verbose("NativeInteractionClient - handleRedirectPromise sending message to native broker."), [4, this.nativeMessageHandler.sendMessage(i)];
12247
12247
  case 2:
12248
- return s = l.sent(), this.validateNativeResponse(s), u = this.handleNativeResponse(s, o, a), this.browserStorage.setInteractionInProgress(!1), [2, u];
12248
+ return s = u.sent(), this.validateNativeResponse(s), l = this.handleNativeResponse(s, o, a), this.browserStorage.setInteractionInProgress(!1), [2, l];
12249
12249
  case 3:
12250
- throw p = l.sent(), this.browserStorage.setInteractionInProgress(!1), p;
12250
+ throw p = u.sent(), this.browserStorage.setInteractionInProgress(!1), p;
12251
12251
  case 4:
12252
12252
  return [
12253
12253
  2
@@ -12260,7 +12260,7 @@ var Un = (
12260
12260
  return this.logger.trace("NativeInteractionClient - logout called."), Promise.reject("Logout not implemented yet");
12261
12261
  }, e.prototype.handleNativeResponse = function(t, r, o) {
12262
12262
  return O(this, void 0, void 0, function() {
12263
- var i, a, s, u, p, l;
12263
+ var i, a, s, l, p, u;
12264
12264
  return L(this, function(m) {
12265
12265
  switch (m.label) {
12266
12266
  case 0:
@@ -12268,9 +12268,9 @@ var Un = (
12268
12268
  throw Vt.createUserSwitchError();
12269
12269
  return [4, this.getDiscoveredAuthority(r.authority)];
12270
12270
  case 1:
12271
- 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)];
12271
+ 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)];
12272
12272
  case 2:
12273
- return l = m.sent(), this.cacheAccount(p), this.cacheNativeTokens(t, r, u, p, s, l.accessToken, l.tenantId, o), [2, l];
12273
+ return u = m.sent(), this.cacheAccount(p), this.cacheNativeTokens(t, r, l, p, s, u.accessToken, u.tenantId, o), [2, u];
12274
12274
  }
12275
12275
  });
12276
12276
  });
@@ -12309,11 +12309,11 @@ var Un = (
12309
12309
  });
12310
12310
  }, e.prototype.generateAuthenticationResult = function(t, r, o, i, a, s) {
12311
12311
  return O(this, void 0, void 0, function() {
12312
- var u, p, l, m, f, k, E, R;
12312
+ var l, p, u, m, f, k, E, R;
12313
12313
  return L(this, function(q) {
12314
12314
  switch (q.label) {
12315
12315
  case 0:
12316
- return u = this.addTelemetryFromNativeResponse(t), p = t.scope ? $e.fromString(t.scope) : $e.fromString(r.scope), l = t.account.properties || {}, m = l.UID || o.claims.oid || o.claims.sub || w.EMPTY_STRING, f = l.TenantId || o.claims.tid || w.EMPTY_STRING, [4, this.generatePopAccessToken(t, r)];
12316
+ return l = this.addTelemetryFromNativeResponse(t), p = t.scope ? $e.fromString(t.scope) : $e.fromString(r.scope), u = t.account.properties || {}, m = u.UID || o.claims.oid || o.claims.sub || w.EMPTY_STRING, f = u.TenantId || o.claims.tid || w.EMPTY_STRING, [4, this.generatePopAccessToken(t, r)];
12317
12317
  case 1:
12318
12318
  return k = q.sent(), E = r.tokenType === _e.POP ? _e.POP : _e.BEARER, R = {
12319
12319
  authority: a,
@@ -12324,7 +12324,7 @@ var Un = (
12324
12324
  idToken: t.id_token,
12325
12325
  idTokenClaims: o.claims,
12326
12326
  accessToken: k,
12327
- fromCache: u ? this.isResponseFromCache(u) : !1,
12327
+ fromCache: l ? this.isResponseFromCache(l) : !1,
12328
12328
  expiresOn: new Date(Number(s + t.expires_in) * 1e3),
12329
12329
  tokenType: E,
12330
12330
  correlationId: this.correlationId,
@@ -12339,8 +12339,8 @@ var Un = (
12339
12339
  this.browserStorage.setAccount(t), this.browserStorage.removeAccountContext(t).catch(function(o) {
12340
12340
  r.logger.error("Error occurred while removing account context from browser storage. " + o);
12341
12341
  });
12342
- }, e.prototype.cacheNativeTokens = function(t, r, o, i, a, s, u, p) {
12343
- var l = kn.createIdTokenEntity(o, r.authority, t.id_token || w.EMPTY_STRING, r.clientId, a.claims.tid || w.EMPTY_STRING), m = r.tokenType === _e.POP ? w.SHR_NONCE_VALIDITY : (typeof t.expires_in == "string" ? parseInt(t.expires_in, 10) : t.expires_in) || 0, f = p + m, k = this.generateScopes(t, r), E = Cn.createAccessTokenEntity(o, r.authority, s, r.clientId, a ? a.claims.tid || w.EMPTY_STRING : u, k.printScopes(), f, 0, this.browserCrypto), R = new $n(i, l, E);
12342
+ }, e.prototype.cacheNativeTokens = function(t, r, o, i, a, s, l, p) {
12343
+ var u = kn.createIdTokenEntity(o, r.authority, t.id_token || w.EMPTY_STRING, r.clientId, a.claims.tid || w.EMPTY_STRING), m = r.tokenType === _e.POP ? w.SHR_NONCE_VALIDITY : (typeof t.expires_in == "string" ? parseInt(t.expires_in, 10) : t.expires_in) || 0, f = p + m, k = this.generateScopes(t, r), E = Cn.createAccessTokenEntity(o, r.authority, s, r.clientId, a ? a.claims.tid || w.EMPTY_STRING : l, k.printScopes(), f, 0, this.browserCrypto), R = new $n(i, u, E);
12344
12344
  this.nativeStorageManager.saveCacheRecord(R);
12345
12345
  }, e.prototype.addTelemetryFromNativeResponse = function(t) {
12346
12346
  var r = this.getMATSFromResponse(t);
@@ -12377,7 +12377,7 @@ var Un = (
12377
12377
  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;
12378
12378
  }, e.prototype.initializeNativeRequest = function(t) {
12379
12379
  return O(this, void 0, void 0, function() {
12380
- var r, o, i, a, s, u, p, l, m, f, k = this;
12380
+ var r, o, i, a, s, l, p, u, m, f, k = this;
12381
12381
  return L(this, function(E) {
12382
12382
  switch (E.label) {
12383
12383
  case 0:
@@ -12385,7 +12385,7 @@ var Un = (
12385
12385
  case 1:
12386
12386
  E.sent(), E.label = 2;
12387
12387
  case 2:
12388
- return o = new ue(r), o.validateAsUri(), i = t.scopes, a = Ao(t, ["scopes"]), s = new $e(i || []), s.appendScopes(nr), u = function() {
12388
+ return o = new ue(r), o.validateAsUri(), i = t.scopes, a = Ao(t, ["scopes"]), s = new $e(i || []), s.appendScopes(nr), l = function() {
12389
12389
  switch (k.apiId) {
12390
12390
  case Ce.ssoSilent:
12391
12391
  case Ce.acquireTokenSilent_silentFlow:
@@ -12409,19 +12409,19 @@ var Un = (
12409
12409
  authority: o.urlString,
12410
12410
  scope: s.printScopes(),
12411
12411
  redirectUri: this.getRedirectUri(t.redirectUri),
12412
- prompt: u(),
12412
+ prompt: l(),
12413
12413
  correlationId: this.correlationId,
12414
12414
  tokenType: t.authenticationScheme,
12415
12415
  windowTitleSubstring: document.title,
12416
12416
  extraParameters: J(J(J({}, t.extraQueryParameters), t.tokenQueryParameters), { telemetry: Fn.MATS_TELEMETRY }),
12417
12417
  extendedExpiryToken: !1
12418
12418
  // Make this configurable?
12419
- }), t.authenticationScheme !== _e.POP ? [3, 4] : (l = {
12419
+ }), t.authenticationScheme !== _e.POP ? [3, 4] : (u = {
12420
12420
  resourceRequestUri: t.resourceRequestUri,
12421
12421
  resourceRequestMethod: t.resourceRequestMethod,
12422
12422
  shrClaims: t.shrClaims,
12423
12423
  shrNonce: t.shrNonce
12424
- }, m = new Dn(this.browserCrypto), [4, m.generateCnf(l)]);
12424
+ }, m = new Dn(this.browserCrypto), [4, m.generateCnf(u)]);
12425
12425
  case 3:
12426
12426
  f = E.sent(), p.reqCnf = f.reqCnfString, p.keyId = f.kid, E.label = 4;
12427
12427
  case 4:
@@ -12558,13 +12558,13 @@ var ss = (
12558
12558
  /** @class */
12559
12559
  function(n) {
12560
12560
  Qe(e, n);
12561
- function e(t, r, o, i, a, s, u, p, l, m) {
12562
- var f = n.call(this, t, r, o, i, a, s, u, l, m) || this;
12561
+ function e(t, r, o, i, a, s, l, p, u, m) {
12562
+ var f = n.call(this, t, r, o, i, a, s, l, u, m) || this;
12563
12563
  return f.nativeStorage = p, f;
12564
12564
  }
12565
12565
  return e.prototype.acquireToken = function(t) {
12566
12566
  return O(this, void 0, void 0, function() {
12567
- var r, o, i, a, s, u, p, l, m, f = this;
12567
+ var r, o, i, a, s, l, p, u, m, f = this;
12568
12568
  return L(this, function(k) {
12569
12569
  switch (k.label) {
12570
12570
  case 0:
@@ -12578,12 +12578,12 @@ var ss = (
12578
12578
  case 3:
12579
12579
  return a = k.sent(), this.performanceClient.setPreQueueTime(A.StandardInteractionClientCreateAuthCodeClient, t.correlationId), [4, this.createAuthCodeClient(o, r.authority, r.azureCloudOptions)];
12580
12580
  case 4:
12581
- return s = k.sent(), this.logger.verbose("Auth code client created"), u = new qo(s, this.browserStorage, a, this.logger, this.browserCrypto, this.performanceClient), [4, s.getAuthCodeUrl(J(J({}, r), { nativeBroker: Tn.isNativeAvailable(this.config, this.logger, this.nativeMessageHandler, t.authenticationScheme) }))];
12581
+ return s = k.sent(), this.logger.verbose("Auth code client created"), l = new qo(s, this.browserStorage, a, this.logger, this.browserCrypto, this.performanceClient), [4, s.getAuthCodeUrl(J(J({}, r), { nativeBroker: Tn.isNativeAvailable(this.config, this.logger, this.nativeMessageHandler, t.authenticationScheme) }))];
12582
12582
  case 5:
12583
- return p = k.sent(), l = this.getRedirectStartPage(t.redirectStartPage), this.logger.verbosePii("Redirect start page: " + l), window.addEventListener("pageshow", i), [4, u.initiateAuthRequest(p, {
12583
+ return p = k.sent(), u = this.getRedirectStartPage(t.redirectStartPage), this.logger.verbosePii("Redirect start page: " + u), window.addEventListener("pageshow", i), [4, l.initiateAuthRequest(p, {
12584
12584
  navigationClient: this.navigationClient,
12585
12585
  redirectTimeout: this.config.system.redirectNavigationTimeout,
12586
- redirectStartPage: l,
12586
+ redirectStartPage: u,
12587
12587
  onRedirectNavigate: t.onRedirectNavigate
12588
12588
  })];
12589
12589
  case 6:
@@ -12600,7 +12600,7 @@ var ss = (
12600
12600
  });
12601
12601
  }, e.prototype.handleRedirectPromise = function(t) {
12602
12602
  return O(this, void 0, void 0, function() {
12603
- var r, o, i, a, s, u, p, l, m, f, k, E;
12603
+ var r, o, i, a, s, l, p, u, m, f, k, E;
12604
12604
  return L(this, function(R) {
12605
12605
  switch (R.label) {
12606
12606
  case 0:
@@ -12616,9 +12616,9 @@ var ss = (
12616
12616
  } catch (q) {
12617
12617
  return this.logger.info("handleRedirectPromise was unable to extract state due to: " + q), this.browserStorage.cleanRequestByInteractionType(W.Redirect), [2, null];
12618
12618
  }
12619
- return s = this.browserStorage.getTemporaryCache(de.ORIGIN_URI, !0) || w.EMPTY_STRING, u = ue.removeHashFromUrl(s), p = ue.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];
12619
+ return s = this.browserStorage.getTemporaryCache(de.ORIGIN_URI, !0) || w.EMPTY_STRING, l = ue.removeHashFromUrl(s), p = ue.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];
12620
12620
  case 2:
12621
- return l = R.sent(), s.indexOf("#") > -1 && Ae.replaceHash(s), [2, l];
12621
+ return u = R.sent(), s.indexOf("#") > -1 && Ae.replaceHash(s), [2, u];
12622
12622
  case 3:
12623
12623
  return this.config.auth.navigateToLoginRequestUrl ? [3, 4] : (this.logger.verbose("NavigateToLoginRequestUrl set to false, handling hash"), [2, this.handleHash(o, i, r)]);
12624
12624
  case 4:
@@ -12658,15 +12658,15 @@ var ss = (
12658
12658
  return this.browserStorage.removeItem(this.browserStorage.generateCacheKey(de.URL_HASH)), this.logger.verbose("Hash does not contain known properties, returning cached hash"), o;
12659
12659
  }, e.prototype.handleHash = function(t, r, o) {
12660
12660
  return O(this, void 0, void 0, function() {
12661
- var i, a, s, u, p, l, m, f = this;
12661
+ var i, a, s, l, p, u, m, f = this;
12662
12662
  return L(this, function(k) {
12663
12663
  switch (k.label) {
12664
12664
  case 0:
12665
12665
  if (i = this.browserStorage.getCachedRequest(r, this.browserCrypto), this.logger.verbose("handleHash called, retrieved cached request"), a = ue.getDeserializedHash(t), a.accountId) {
12666
12666
  if (this.logger.verbose("Account id found in hash, calling WAM for token"), !this.nativeMessageHandler)
12667
12667
  throw F.createNativeConnectionNotEstablishedError();
12668
- return s = new Un(this.config, this.browserStorage, this.browserCrypto, this.logger, this.eventHandler, this.navigationClient, Ce.acquireTokenPopup, this.performanceClient, this.nativeMessageHandler, a.accountId, this.nativeStorage, i.correlationId), u = tn.parseRequestState(this.browserCrypto, r).userRequestState, [2, s.acquireToken(J(J({}, i), {
12669
- state: u,
12668
+ return s = new Un(this.config, this.browserStorage, this.browserCrypto, this.logger, this.eventHandler, this.navigationClient, Ce.acquireTokenPopup, this.performanceClient, this.nativeMessageHandler, a.accountId, this.nativeStorage, i.correlationId), l = tn.parseRequestState(this.browserCrypto, r).userRequestState, [2, s.acquireToken(J(J({}, i), {
12669
+ state: l,
12670
12670
  prompt: void 0
12671
12671
  // Server should handle the prompt, ideally native broker can do this part silently
12672
12672
  })).finally(function() {
@@ -12677,7 +12677,7 @@ var ss = (
12677
12677
  throw F.createNoCachedAuthorityError();
12678
12678
  return this.performanceClient.setPreQueueTime(A.StandardInteractionClientCreateAuthCodeClient, i.correlationId), [4, this.createAuthCodeClient(o, p)];
12679
12679
  case 1:
12680
- return l = k.sent(), this.logger.verbose("Auth code client created"), wr.removeThrottle(this.browserStorage, this.config.auth.clientId, i), m = new qo(l, this.browserStorage, i, this.logger, this.browserCrypto, this.performanceClient), [4, m.handleCodeResponseFromHash(t, r, l.authority, this.networkClient)];
12680
+ return u = k.sent(), this.logger.verbose("Auth code client created"), wr.removeThrottle(this.browserStorage, this.config.auth.clientId, i), m = new qo(u, this.browserStorage, i, this.logger, this.browserCrypto, this.performanceClient), [4, m.handleCodeResponseFromHash(t, r, u.authority, this.networkClient)];
12681
12681
  case 2:
12682
12682
  return [2, k.sent()];
12683
12683
  }
@@ -12685,41 +12685,41 @@ var ss = (
12685
12685
  });
12686
12686
  }, e.prototype.logout = function(t) {
12687
12687
  return O(this, void 0, void 0, function() {
12688
- var r, o, i, a, s, u, p;
12689
- return L(this, function(l) {
12690
- switch (l.label) {
12688
+ var r, o, i, a, s, l, p;
12689
+ return L(this, function(u) {
12690
+ switch (u.label) {
12691
12691
  case 0:
12692
- this.logger.verbose("logoutRedirect called"), r = this.initializeLogoutRequest(t), o = this.initializeServerTelemetryManager(Ce.logout), l.label = 1;
12692
+ this.logger.verbose("logoutRedirect called"), r = this.initializeLogoutRequest(t), o = this.initializeServerTelemetryManager(Ce.logout), u.label = 1;
12693
12693
  case 1:
12694
- return l.trys.push([1, 10, , 11]), this.eventHandler.emitEvent(ne.LOGOUT_START, W.Redirect, t), [4, this.clearCacheOnLogout(r.account)];
12694
+ return u.trys.push([1, 10, , 11]), this.eventHandler.emitEvent(ne.LOGOUT_START, W.Redirect, t), [4, this.clearCacheOnLogout(r.account)];
12695
12695
  case 2:
12696
- return l.sent(), i = {
12696
+ return u.sent(), i = {
12697
12697
  apiId: Ce.logout,
12698
12698
  timeout: this.config.system.redirectNavigationTimeout,
12699
12699
  noHistory: !1
12700
12700
  }, this.performanceClient.setPreQueueTime(A.StandardInteractionClientCreateAuthCodeClient, r.correlationId), [4, this.createAuthCodeClient(o, t && t.authority)];
12701
12701
  case 3:
12702
- return a = l.sent(), this.logger.verbose("Auth code client created"), s = a.getLogoutUri(r), this.eventHandler.emitEvent(ne.LOGOUT_SUCCESS, W.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];
12702
+ return a = u.sent(), this.logger.verbose("Auth code client created"), s = a.getLogoutUri(r), this.eventHandler.emitEvent(ne.LOGOUT_SUCCESS, W.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];
12703
12703
  case 4:
12704
- return l.sent(), [
12704
+ return u.sent(), [
12705
12705
  2
12706
12706
  /*return*/
12707
12707
  ];
12708
12708
  case 5:
12709
- this.browserStorage.setInteractionInProgress(!1), this.logger.verbose("Logout onRedirectNavigate returned false, stopping navigation"), l.label = 6;
12709
+ this.browserStorage.setInteractionInProgress(!1), this.logger.verbose("Logout onRedirectNavigate returned false, stopping navigation"), u.label = 6;
12710
12710
  case 6:
12711
12711
  return [3, 9];
12712
12712
  case 7:
12713
12713
  return this.browserStorage.getInteractionInProgress() || this.browserStorage.setInteractionInProgress(!0), [4, this.navigationClient.navigateExternal(s, i)];
12714
12714
  case 8:
12715
- return l.sent(), [
12715
+ return u.sent(), [
12716
12716
  2
12717
12717
  /*return*/
12718
12718
  ];
12719
12719
  case 9:
12720
12720
  return [3, 11];
12721
12721
  case 10:
12722
- throw p = l.sent(), p instanceof X && p.setCorrelationId(this.correlationId), o.cacheFailedRequest(p), this.eventHandler.emitEvent(ne.LOGOUT_FAILURE, W.Redirect, null, p), this.eventHandler.emitEvent(ne.LOGOUT_END, W.Redirect), p;
12722
+ throw p = u.sent(), p instanceof X && p.setCorrelationId(this.correlationId), o.cacheFailedRequest(p), this.eventHandler.emitEvent(ne.LOGOUT_FAILURE, W.Redirect, null, p), this.eventHandler.emitEvent(ne.LOGOUT_END, W.Redirect), p;
12723
12723
  case 11:
12724
12724
  return this.eventHandler.emitEvent(ne.LOGOUT_END, W.Redirect), [
12725
12725
  2
@@ -12739,8 +12739,8 @@ var cs = (
12739
12739
  /** @class */
12740
12740
  function(n) {
12741
12741
  Qe(e, n);
12742
- function e(t, r, o, i, a, s, u, p, l, m) {
12743
- var f = n.call(this, t, r, o, i, a, s, u, l, m) || this;
12742
+ function e(t, r, o, i, a, s, l, p, u, m) {
12743
+ var f = n.call(this, t, r, o, i, a, s, l, u, m) || this;
12744
12744
  return f.unloadWindow = f.unloadWindow.bind(f), f.nativeStorage = p, f;
12745
12745
  }
12746
12746
  return e.prototype.acquireToken = function(t) {
@@ -12761,14 +12761,14 @@ var cs = (
12761
12761
  if (this.config.system.asyncPopups)
12762
12762
  return this.logger.verbose("asyncPopups set to true"), this.logoutPopupAsync(r, o, s, i, void 0, a);
12763
12763
  this.logger.verbose("asyncPopup set to false, opening popup");
12764
- var u = this.openSizedPopup("about:blank", o, s);
12765
- return this.logoutPopupAsync(r, o, s, i, u, a);
12764
+ var l = this.openSizedPopup("about:blank", o, s);
12765
+ return this.logoutPopupAsync(r, o, s, i, l, a);
12766
12766
  } catch (p) {
12767
12767
  return Promise.reject(p);
12768
12768
  }
12769
12769
  }, e.prototype.acquireTokenPopupAsync = function(t, r, o, i) {
12770
12770
  return O(this, void 0, void 0, function() {
12771
- var a, s, u, p, l, m, f, k, E, R, q, K, z, T, H, G, $, te = this;
12771
+ var a, s, l, p, u, m, f, k, E, R, q, K, z, T, H, G, $, te = this;
12772
12772
  return L(this, function(Z) {
12773
12773
  switch (Z.label) {
12774
12774
  case 0:
@@ -12778,17 +12778,17 @@ var cs = (
12778
12778
  case 2:
12779
12779
  return Z.trys.push([2, 8, , 9]), this.performanceClient.setPreQueueTime(A.StandardInteractionClientInitializeAuthorizationCodeRequest, t.correlationId), [4, this.initializeAuthorizationCodeRequest(s)];
12780
12780
  case 3:
12781
- return u = Z.sent(), this.performanceClient.setPreQueueTime(A.StandardInteractionClientCreateAuthCodeClient, t.correlationId), [4, this.createAuthCodeClient(a, s.authority, s.azureCloudOptions)];
12781
+ return l = Z.sent(), this.performanceClient.setPreQueueTime(A.StandardInteractionClientCreateAuthCodeClient, t.correlationId), [4, this.createAuthCodeClient(a, s.authority, s.azureCloudOptions)];
12782
12782
  case 4:
12783
- return p = Z.sent(), this.logger.verbose("Auth code client created"), l = Tn.isNativeAvailable(this.config, this.logger, this.nativeMessageHandler, t.authenticationScheme), m = void 0, l && (m = this.performanceClient.startMeasurement(A.FetchAccountIdWithNativeBroker, t.correlationId)), [4, p.getAuthCodeUrl(J(J({}, s), { nativeBroker: l }))];
12783
+ return p = Z.sent(), this.logger.verbose("Auth code client created"), u = Tn.isNativeAvailable(this.config, this.logger, this.nativeMessageHandler, t.authenticationScheme), m = void 0, u && (m = this.performanceClient.startMeasurement(A.FetchAccountIdWithNativeBroker, t.correlationId)), [4, p.getAuthCodeUrl(J(J({}, s), { nativeBroker: u }))];
12784
12784
  case 5:
12785
- return f = Z.sent(), k = new fo(p, this.browserStorage, u, this.logger, this.performanceClient), E = {
12785
+ return f = Z.sent(), k = new fo(p, this.browserStorage, l, this.logger, this.performanceClient), E = {
12786
12786
  popup: i,
12787
12787
  popupName: r,
12788
12788
  popupWindowAttributes: o
12789
12789
  }, R = this.initiateAuthRequest(f, E), this.eventHandler.emitEvent(ne.POPUP_OPENED, W.Popup, { popupWindow: R }, null), [4, this.monitorPopupForHash(R)];
12790
12790
  case 6:
12791
- if (q = Z.sent(), K = ue.getDeserializedHash(q), z = this.validateAndExtractStateFromHash(K, W.Popup, s.correlationId), wr.removeThrottle(this.browserStorage, this.config.auth.clientId, u), K.accountId) {
12791
+ if (q = Z.sent(), K = ue.getDeserializedHash(q), z = this.validateAndExtractStateFromHash(K, W.Popup, s.correlationId), wr.removeThrottle(this.browserStorage, this.config.auth.clientId, l), K.accountId) {
12792
12792
  if (this.logger.verbose("Account id found in hash, calling WAM for token"), m && m.endMeasurement({
12793
12793
  success: !0,
12794
12794
  isNativeBroker: !0
@@ -12817,17 +12817,17 @@ var cs = (
12817
12817
  });
12818
12818
  }, e.prototype.logoutPopupAsync = function(t, r, o, i, a, s) {
12819
12819
  return O(this, void 0, void 0, function() {
12820
- var u, p, l, m, f, k, E;
12820
+ var l, p, u, m, f, k, E;
12821
12821
  return L(this, function(R) {
12822
12822
  switch (R.label) {
12823
12823
  case 0:
12824
- this.logger.verbose("logoutPopupAsync called"), this.eventHandler.emitEvent(ne.LOGOUT_START, W.Popup, t), u = this.initializeServerTelemetryManager(Ce.logoutPopup), R.label = 1;
12824
+ this.logger.verbose("logoutPopupAsync called"), this.eventHandler.emitEvent(ne.LOGOUT_START, W.Popup, t), l = this.initializeServerTelemetryManager(Ce.logoutPopup), R.label = 1;
12825
12825
  case 1:
12826
12826
  return R.trys.push([1, 5, , 6]), [4, this.clearCacheOnLogout(t.account)];
12827
12827
  case 2:
12828
- return R.sent(), this.performanceClient.setPreQueueTime(A.StandardInteractionClientCreateAuthCodeClient, t.correlationId), [4, this.createAuthCodeClient(u, i)];
12828
+ return R.sent(), this.performanceClient.setPreQueueTime(A.StandardInteractionClientCreateAuthCodeClient, t.correlationId), [4, this.createAuthCodeClient(l, i)];
12829
12829
  case 3:
12830
- return p = R.sent(), this.logger.verbose("Auth code client created"), l = p.getLogoutUri(t), this.eventHandler.emitEvent(ne.LOGOUT_SUCCESS, W.Popup, t), m = this.openPopup(l, { popupName: r, popupWindowAttributes: o, popup: a }), this.eventHandler.emitEvent(ne.POPUP_OPENED, W.Popup, { popupWindow: m }, null), [4, this.waitForLogoutPopup(m)];
12830
+ return p = R.sent(), this.logger.verbose("Auth code client created"), u = p.getLogoutUri(t), this.eventHandler.emitEvent(ne.LOGOUT_SUCCESS, W.Popup, t), m = this.openPopup(u, { popupName: r, popupWindowAttributes: o, popup: a }), this.eventHandler.emitEvent(ne.POPUP_OPENED, W.Popup, { popupWindow: m }, null), [4, this.waitForLogoutPopup(m)];
12831
12831
  case 4:
12832
12832
  return R.sent(), s ? (f = {
12833
12833
  apiId: Ce.logoutPopup,
@@ -12835,7 +12835,7 @@ var cs = (
12835
12835
  noHistory: !1
12836
12836
  }, k = ue.getAbsoluteUrl(s, Ae.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];
12837
12837
  case 5:
12838
- throw E = R.sent(), a && a.close(), E instanceof X && E.setCorrelationId(this.correlationId), this.browserStorage.setInteractionInProgress(!1), this.eventHandler.emitEvent(ne.LOGOUT_FAILURE, W.Popup, null, E), this.eventHandler.emitEvent(ne.LOGOUT_END, W.Popup), u.cacheFailedRequest(E), E;
12838
+ throw E = R.sent(), a && a.close(), E instanceof X && E.setCorrelationId(this.correlationId), this.browserStorage.setInteractionInProgress(!1), this.eventHandler.emitEvent(ne.LOGOUT_FAILURE, W.Popup, null, E), this.eventHandler.emitEvent(ne.LOGOUT_END, W.Popup), l.cacheFailedRequest(E), E;
12839
12839
  case 6:
12840
12840
  return this.eventHandler.emitEvent(ne.LOGOUT_END, W.Popup), [
12841
12841
  2
@@ -12853,17 +12853,17 @@ var cs = (
12853
12853
  return new Promise(function(o, i) {
12854
12854
  var a = r.config.system.windowHashTimeout / r.config.system.pollIntervalMilliseconds, s = 0;
12855
12855
  r.logger.verbose("PopupHandler.monitorPopupForHash - polling started");
12856
- var u = setInterval(function() {
12856
+ var l = setInterval(function() {
12857
12857
  if (t.closed) {
12858
- r.logger.error("PopupHandler.monitorPopupForHash - window closed"), r.cleanPopup(), clearInterval(u), i(F.createUserCancelledError());
12858
+ r.logger.error("PopupHandler.monitorPopupForHash - window closed"), r.cleanPopup(), clearInterval(l), i(F.createUserCancelledError());
12859
12859
  return;
12860
12860
  }
12861
- var p = w.EMPTY_STRING, l = w.EMPTY_STRING;
12861
+ var p = w.EMPTY_STRING, u = w.EMPTY_STRING;
12862
12862
  try {
12863
- p = t.location.href, l = t.location.hash;
12863
+ p = t.location.href, u = t.location.hash;
12864
12864
  } catch {
12865
12865
  }
12866
- V.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), ue.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(F.createHashDoesNotContainKnownPropertiesError()))) : s > a && (r.logger.error("PopupHandler.monitorPopupForHash - unable to find hash in url, timing out"), clearInterval(u), i(F.createMonitorPopupTimeoutError())));
12866
+ V.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), ue.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(F.createHashDoesNotContainKnownPropertiesError()))) : s > a && (r.logger.error("PopupHandler.monitorPopupForHash - unable to find hash in url, timing out"), clearInterval(l), i(F.createMonitorPopupTimeoutError())));
12867
12867
  }, r.config.system.pollIntervalMilliseconds);
12868
12868
  });
12869
12869
  }, e.prototype.waitForLogoutPopup = function(t) {
@@ -12890,8 +12890,8 @@ var cs = (
12890
12890
  throw this.logger.error("error opening popup " + i.message), this.browserStorage.setInteractionInProgress(!1), F.createPopupWindowError(i.toString());
12891
12891
  }
12892
12892
  }, e.prototype.openSizedPopup = function(t, r, o) {
12893
- 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, R = (s = o.popupPosition) === null || s === void 0 ? void 0 : s.top, q = (u = o.popupPosition) === null || u === void 0 ? void 0 : u.left;
12894
- 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), (!R || R < 0 || R > f) && (this.logger.verbose("Default popup window top position used. Window top not configured or invalid."), R = Math.max(0, f / 2 - Pt.POPUP_HEIGHT / 2 + l)), (!q || q < 0 || q > m) && (this.logger.verbose("Default popup window left position used. Window left not configured or invalid."), q = Math.max(0, m / 2 - Pt.POPUP_WIDTH / 2 + p)), window.open(t, r, "width=" + k + ", height=" + E + ", top=" + R + ", left=" + q + ", scrollbars=yes");
12893
+ 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, R = (s = o.popupPosition) === null || s === void 0 ? void 0 : s.top, q = (l = o.popupPosition) === null || l === void 0 ? void 0 : l.left;
12894
+ 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), (!R || R < 0 || R > f) && (this.logger.verbose("Default popup window top position used. Window top not configured or invalid."), R = Math.max(0, f / 2 - Pt.POPUP_HEIGHT / 2 + u)), (!q || q < 0 || q > m) && (this.logger.verbose("Default popup window left position used. Window left not configured or invalid."), q = Math.max(0, m / 2 - Pt.POPUP_WIDTH / 2 + p)), window.open(t, r, "width=" + k + ", height=" + E + ", top=" + R + ", left=" + q + ", scrollbars=yes");
12895
12895
  }, e.prototype.unloadWindow = function(t) {
12896
12896
  this.browserStorage.cleanRequestByInteractionType(W.Popup), this.currentWindow && this.currentWindow.close(), t.preventDefault();
12897
12897
  }, e.prototype.cleanPopup = function(t) {
@@ -12950,14 +12950,14 @@ function hs(n, e) {
12950
12950
  // 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
12951
12951
  cacheMigrationEnabled: !!(r && r.cacheLocation === Le.LocalStorage),
12952
12952
  claimsBasedCachingEnabled: !0
12953
- }, u = {
12953
+ }, l = {
12954
12954
  // eslint-disable-next-line @typescript-eslint/no-empty-function
12955
12955
  loggerCallback: function() {
12956
12956
  },
12957
12957
  logLevel: De.Info,
12958
12958
  piiLoggingEnabled: !1
12959
12959
  }, p = J(J({}, di), {
12960
- loggerOptions: u,
12960
+ loggerOptions: l,
12961
12961
  networkClient: e ? Ae.getBrowserNetworkClient() : Xa,
12962
12962
  navigationClient: new ls(),
12963
12963
  loadFrameTimeout: 0,
@@ -12975,7 +12975,7 @@ function hs(n, e) {
12975
12975
  useMsrCrypto: !1,
12976
12976
  entropy: void 0
12977
12977
  }
12978
- }), l = J(J({}, o), { loggerOptions: (o == null ? void 0 : o.loggerOptions) || u }), m = {
12978
+ }), u = J(J({}, o), { loggerOptions: (o == null ? void 0 : o.loggerOptions) || l }), m = {
12979
12979
  application: {
12980
12980
  appName: w.EMPTY_STRING,
12981
12981
  appVersion: w.EMPTY_STRING
@@ -12983,7 +12983,7 @@ function hs(n, e) {
12983
12983
  }, f = {
12984
12984
  auth: J(J({}, a), t),
12985
12985
  cache: J(J({}, s), r),
12986
- system: J(J({}, p), l),
12986
+ system: J(J({}, p), u),
12987
12987
  telemetry: J(J({}, m), i)
12988
12988
  };
12989
12989
  return f;
@@ -12994,8 +12994,8 @@ var yi = (
12994
12994
  function(n) {
12995
12995
  Qe(e, n);
12996
12996
  function e(t, r, o, i, a, s) {
12997
- var u = n.call(this, t, r, o, i, s) || this;
12998
- return u.navigateFrameWait = a.navigateFrameWait, u.pollIntervalMilliseconds = a.pollIntervalMilliseconds, u;
12997
+ var l = n.call(this, t, r, o, i, s) || this;
12998
+ return l.navigateFrameWait = a.navigateFrameWait, l.pollIntervalMilliseconds = a.pollIntervalMilliseconds, l;
12999
12999
  }
13000
13000
  return e.prototype.initiateAuthRequest = function(t) {
13001
13001
  return O(this, void 0, void 0, function() {
@@ -13016,17 +13016,17 @@ var yi = (
13016
13016
  var o = this;
13017
13017
  return this.performanceClient.addQueueMeasurement(A.SilentHandlerMonitorIframeForHash, this.authCodeRequest.correlationId), new Promise(function(i, a) {
13018
13018
  r < no && o.logger.warning("system.loadFrameTimeout or system.iframeHashTimeout set to lower (" + r + "ms) than the default (" + no + "ms). This may result in timeouts.");
13019
- var s = window.performance.now(), u = s + r, p = setInterval(function() {
13020
- if (window.performance.now() > u) {
13019
+ var s = window.performance.now(), l = s + r, p = setInterval(function() {
13020
+ if (window.performance.now() > l) {
13021
13021
  o.removeHiddenIframe(t), clearInterval(p), a(F.createMonitorIframeTimeoutError());
13022
13022
  return;
13023
13023
  }
13024
- var l = w.EMPTY_STRING, m = t.contentWindow;
13024
+ var u = w.EMPTY_STRING, m = t.contentWindow;
13025
13025
  try {
13026
- l = m ? m.location.href : w.EMPTY_STRING;
13026
+ u = m ? m.location.href : w.EMPTY_STRING;
13027
13027
  } catch {
13028
13028
  }
13029
- if (!V.isEmpty(l)) {
13029
+ if (!V.isEmpty(u)) {
13030
13030
  var f = m ? m.location.hash : w.EMPTY_STRING;
13031
13031
  if (ue.hashContainsKnownProperties(f)) {
13032
13032
  o.removeHiddenIframe(t), clearInterval(p), i(f);
@@ -13063,15 +13063,15 @@ var fs = (
13063
13063
  /** @class */
13064
13064
  function(n) {
13065
13065
  Qe(e, n);
13066
- function e(t, r, o, i, a, s, u, p, l, m, f) {
13066
+ function e(t, r, o, i, a, s, l, p, u, m, f) {
13067
13067
  var k = n.call(this, t, r, o, i, a, s, p, m, f) || this;
13068
- return k.apiId = u, k.nativeStorage = l, k;
13068
+ return k.apiId = l, k.nativeStorage = u, k;
13069
13069
  }
13070
13070
  return e.prototype.acquireToken = function(t) {
13071
13071
  return O(this, void 0, void 0, function() {
13072
13072
  var r, o, i, a, s;
13073
- return L(this, function(u) {
13074
- switch (u.label) {
13073
+ return L(this, function(l) {
13074
+ switch (l.label) {
13075
13075
  case 0:
13076
13076
  if (this.performanceClient.addQueueMeasurement(A.SilentIframeClientAcquireToken, t.correlationId), this.logger.verbose("acquireTokenByIframe called"), r = this.performanceClient.startMeasurement(A.SilentIframeClientAcquireToken, t.correlationId), V.isEmpty(t.loginHint) && V.isEmpty(t.sid) && (!t.account || V.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 !== Xe.NONE && t.prompt !== Xe.NO_SESSION)
13077
13077
  throw r.endMeasurement({
@@ -13079,11 +13079,11 @@ var fs = (
13079
13079
  }), F.createSilentPromptValueError(t.prompt);
13080
13080
  return this.performanceClient.setPreQueueTime(A.StandardInteractionClientInitializeAuthorizationRequest, t.correlationId), [4, this.initializeAuthorizationRequest(J(J({}, t), { prompt: t.prompt || Xe.NONE }), W.Silent)];
13081
13081
  case 1:
13082
- o = u.sent(), this.browserStorage.updateCacheEntries(o.state, o.nonce, o.authority, o.loginHint || w.EMPTY_STRING, o.account || null), i = this.initializeServerTelemetryManager(this.apiId), u.label = 2;
13082
+ o = l.sent(), this.browserStorage.updateCacheEntries(o.state, o.nonce, o.authority, o.loginHint || w.EMPTY_STRING, o.account || null), i = this.initializeServerTelemetryManager(this.apiId), l.label = 2;
13083
13083
  case 2:
13084
- return u.trys.push([2, 5, , 6]), this.performanceClient.setPreQueueTime(A.StandardInteractionClientCreateAuthCodeClient, t.correlationId), [4, this.createAuthCodeClient(i, o.authority, o.azureCloudOptions)];
13084
+ return l.trys.push([2, 5, , 6]), this.performanceClient.setPreQueueTime(A.StandardInteractionClientCreateAuthCodeClient, t.correlationId), [4, this.createAuthCodeClient(i, o.authority, o.azureCloudOptions)];
13085
13085
  case 3:
13086
- return a = u.sent(), this.logger.verbose("Auth code client created"), this.performanceClient.setPreQueueTime(A.SilentIframeClientTokenHelper, t.correlationId), [4, this.silentTokenHelper(a, o).then(function(p) {
13086
+ return a = l.sent(), this.logger.verbose("Auth code client created"), this.performanceClient.setPreQueueTime(A.SilentIframeClientTokenHelper, t.correlationId), [4, this.silentTokenHelper(a, o).then(function(p) {
13087
13087
  return r.endMeasurement({
13088
13088
  success: !0,
13089
13089
  fromCache: !1,
@@ -13091,9 +13091,9 @@ var fs = (
13091
13091
  }), p;
13092
13092
  })];
13093
13093
  case 4:
13094
- return [2, u.sent()];
13094
+ return [2, l.sent()];
13095
13095
  case 5:
13096
- throw s = u.sent(), s instanceof X && s.setCorrelationId(this.correlationId), i.cacheFailedRequest(s), this.browserStorage.cleanRequestByState(o.state), r.endMeasurement({
13096
+ throw s = l.sent(), s instanceof X && s.setCorrelationId(this.correlationId), i.cacheFailedRequest(s), this.browserStorage.cleanRequestByState(o.state), r.endMeasurement({
13097
13097
  errorCode: s instanceof X && s.errorCode || void 0,
13098
13098
  subErrorCode: s instanceof X && s.subError || void 0,
13099
13099
  success: !1
@@ -13110,7 +13110,7 @@ var fs = (
13110
13110
  return Promise.reject(F.createSilentLogoutUnsupportedError());
13111
13111
  }, e.prototype.silentTokenHelper = function(t, r) {
13112
13112
  return O(this, void 0, void 0, function() {
13113
- var o, i, a, s, u, p, l, m, f, k = this;
13113
+ var o, i, a, s, l, p, u, m, f, k = this;
13114
13114
  return L(this, function(E) {
13115
13115
  switch (E.label) {
13116
13116
  case 0:
@@ -13122,14 +13122,14 @@ var fs = (
13122
13122
  case 3:
13123
13123
  return s = E.sent(), this.performanceClient.setPreQueueTime(A.SilentHandlerMonitorIframeForHash, r.correlationId), [4, a.monitorIframeForHash(s, this.config.system.iframeHashTimeout)];
13124
13124
  case 4:
13125
- if (u = E.sent(), p = ue.getDeserializedHash(u), l = this.validateAndExtractStateFromHash(p, W.Silent, o.correlationId), p.accountId) {
13125
+ if (l = E.sent(), p = ue.getDeserializedHash(l), u = this.validateAndExtractStateFromHash(p, W.Silent, o.correlationId), p.accountId) {
13126
13126
  if (this.logger.verbose("Account id found in hash, calling WAM for token"), !this.nativeMessageHandler)
13127
13127
  throw F.createNativeConnectionNotEstablishedError();
13128
- return m = new Un(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 || Xe.NONE })).finally(function() {
13129
- k.browserStorage.cleanRequestByState(l);
13128
+ return m = new Un(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 || Xe.NONE })).finally(function() {
13129
+ k.browserStorage.cleanRequestByState(u);
13130
13130
  })];
13131
13131
  }
13132
- return this.performanceClient.setPreQueueTime(A.HandleCodeResponseFromHash, r.correlationId), [2, a.handleCodeResponseFromHash(u, l, t.authority, this.networkClient)];
13132
+ return this.performanceClient.setPreQueueTime(A.HandleCodeResponseFromHash, r.correlationId), [2, a.handleCodeResponseFromHash(l, u, t.authority, this.networkClient)];
13133
13133
  }
13134
13134
  });
13135
13135
  });
@@ -13146,7 +13146,7 @@ var gs = (
13146
13146
  }
13147
13147
  return e.prototype.acquireToken = function(t) {
13148
13148
  return O(this, void 0, void 0, function() {
13149
- var r, o, i, a, s, u = this;
13149
+ var r, o, i, a, s, l = this;
13150
13150
  return L(this, function(p) {
13151
13151
  switch (p.label) {
13152
13152
  case 0:
@@ -13154,18 +13154,18 @@ var gs = (
13154
13154
  case 1:
13155
13155
  return r = J.apply(void 0, o.concat([p.sent()])), i = this.performanceClient.startMeasurement(A.SilentRefreshClientAcquireToken, r.correlationId), a = this.initializeServerTelemetryManager(Ce.acquireTokenSilent_silentFlow), [4, this.createRefreshTokenClient(a, r.authority, r.azureCloudOptions)];
13156
13156
  case 2:
13157
- return s = p.sent(), this.logger.verbose("Refresh token client created"), this.performanceClient.setPreQueueTime(A.RefreshTokenClientAcquireTokenByRefreshToken, t.correlationId), [2, s.acquireTokenByRefreshToken(r).then(function(l) {
13157
+ return s = p.sent(), this.logger.verbose("Refresh token client created"), this.performanceClient.setPreQueueTime(A.RefreshTokenClientAcquireTokenByRefreshToken, t.correlationId), [2, s.acquireTokenByRefreshToken(r).then(function(u) {
13158
13158
  return i.endMeasurement({
13159
13159
  success: !0,
13160
- fromCache: l.fromCache,
13161
- requestId: l.requestId
13162
- }), l;
13163
- }).catch(function(l) {
13164
- throw l instanceof X && l.setCorrelationId(u.correlationId), a.cacheFailedRequest(l), i.endMeasurement({
13165
- errorCode: l.errorCode,
13166
- subErrorCode: l.subError,
13160
+ fromCache: u.fromCache,
13161
+ requestId: u.requestId
13162
+ }), u;
13163
+ }).catch(function(u) {
13164
+ throw u instanceof X && u.setCorrelationId(l.correlationId), a.cacheFailedRequest(u), i.endMeasurement({
13165
+ errorCode: u.errorCode,
13166
+ subErrorCode: u.subError,
13167
13167
  success: !1
13168
- }), l;
13168
+ }), u;
13169
13169
  })];
13170
13170
  }
13171
13171
  });
@@ -13216,8 +13216,8 @@ var ms = (
13216
13216
  error: o || null,
13217
13217
  timestamp: Date.now()
13218
13218
  };
13219
- this.logger.info("Emitting event: " + e), this.eventCallbacks.forEach(function(s, u) {
13220
- i.logger.verbose("Emitting event to callback " + u + ": " + e), s.apply(null, [a]);
13219
+ this.logger.info("Emitting event: " + e), this.eventCallbacks.forEach(function(s, l) {
13220
+ i.logger.verbose("Emitting event to callback " + l + ": " + e), s.apply(null, [a]);
13221
13221
  });
13222
13222
  }
13223
13223
  }, n.prototype.handleAccountCacheChange = function(e) {
@@ -13280,8 +13280,8 @@ var nn = (
13280
13280
  return n.stringToUtf8Arr = function(e) {
13281
13281
  for (var t, r = 0, o = e.length, i = 0; i < o; i++)
13282
13282
  t = e.charCodeAt(i), r += t < 128 ? 1 : t < 2048 ? 2 : t < 65536 ? 3 : t < 2097152 ? 4 : t < 67108864 ? 5 : 6;
13283
- for (var a = new Uint8Array(r), s = 0, u = 0; s < r; u++)
13284
- 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));
13283
+ for (var a = new Uint8Array(r), s = 0, l = 0; s < r; l++)
13284
+ 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));
13285
13285
  return a;
13286
13286
  }, n.stringToArrayBuffer = function(e) {
13287
13287
  for (var t = new ArrayBuffer(e.length), r = new Uint8Array(t), o = 0; o < e.length; o++)
@@ -13361,10 +13361,10 @@ var _s = (
13361
13361
  var r = this.base64DecToArr(t);
13362
13362
  return nn.utf8ArrToString(r);
13363
13363
  }, n.prototype.base64DecToArr = function(e, t) {
13364
- for (var r = e.replace(/[^A-Za-z0-9\+\/]/g, w.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++)
13365
- if (u = m & 3, p |= this.b64ToUint6(r.charCodeAt(m)) << 18 - 6 * u, u === 3 || o - m === 1) {
13366
- for (s = 0; s < 3 && l < i; s++, l++)
13367
- a[l] = p >>> (16 >>> s & 24) & 255;
13364
+ for (var r = e.replace(/[^A-Za-z0-9\+\/]/g, w.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++)
13365
+ if (l = m & 3, p |= this.b64ToUint6(r.charCodeAt(m)) << 18 - 6 * l, l === 3 || o - m === 1) {
13366
+ for (s = 0; s < 3 && u < i; s++, u++)
13367
+ a[u] = p >>> (16 >>> s & 24) & 255;
13368
13368
  p = 0;
13369
13369
  }
13370
13370
  return a;
@@ -13523,10 +13523,10 @@ var ks = (
13523
13523
  return L(this, function(o) {
13524
13524
  return [2, new Promise(function(i, a) {
13525
13525
  var s = window.msCrypto.subtle.generateKey(e, t, r);
13526
- s.addEventListener("complete", function(u) {
13527
- i(u.target.result);
13528
- }), s.addEventListener("error", function(u) {
13529
- a(u);
13526
+ s.addEventListener("complete", function(l) {
13527
+ i(l.target.result);
13528
+ }), s.addEventListener("error", function(l) {
13529
+ a(l);
13530
13530
  });
13531
13531
  })];
13532
13532
  });
@@ -13537,9 +13537,9 @@ var ks = (
13537
13537
  return [2, new Promise(function(r, o) {
13538
13538
  var i = window.msCrypto.subtle.exportKey(Hn, e);
13539
13539
  i.addEventListener("complete", function(a) {
13540
- var s = a.target.result, u = nn.utf8ArrToString(new Uint8Array(s)).replace(/\r/g, w.EMPTY_STRING).replace(/\n/g, w.EMPTY_STRING).replace(/\t/g, w.EMPTY_STRING).split(" ").join(w.EMPTY_STRING).replace("\0", w.EMPTY_STRING);
13540
+ var s = a.target.result, l = nn.utf8ArrToString(new Uint8Array(s)).replace(/\r/g, w.EMPTY_STRING).replace(/\n/g, w.EMPTY_STRING).replace(/\t/g, w.EMPTY_STRING).split(" ").join(w.EMPTY_STRING).replace("\0", w.EMPTY_STRING);
13541
13541
  try {
13542
- r(JSON.parse(u));
13542
+ r(JSON.parse(l));
13543
13543
  } catch (p) {
13544
13544
  o(p);
13545
13545
  }
@@ -13553,11 +13553,11 @@ var ks = (
13553
13553
  return O(this, void 0, void 0, function() {
13554
13554
  var i, a;
13555
13555
  return L(this, function(s) {
13556
- return i = nn.getSortedObjectString(e), a = nn.stringToArrayBuffer(i), [2, new Promise(function(u, p) {
13557
- var l = window.msCrypto.subtle.importKey(Hn, a, t, r, o);
13558
- l.addEventListener("complete", function(m) {
13559
- u(m.target.result);
13560
- }), l.addEventListener("error", function(m) {
13556
+ return i = nn.getSortedObjectString(e), a = nn.stringToArrayBuffer(i), [2, new Promise(function(l, p) {
13557
+ var u = window.msCrypto.subtle.importKey(Hn, a, t, r, o);
13558
+ u.addEventListener("complete", function(m) {
13559
+ l(m.target.result);
13560
+ }), u.addEventListener("error", function(m) {
13561
13561
  p(m);
13562
13562
  });
13563
13563
  })];
@@ -13568,10 +13568,10 @@ var ks = (
13568
13568
  return L(this, function(o) {
13569
13569
  return [2, new Promise(function(i, a) {
13570
13570
  var s = window.msCrypto.subtle.sign(e, t, r);
13571
- s.addEventListener("complete", function(u) {
13572
- i(u.target.result);
13573
- }), s.addEventListener("error", function(u) {
13574
- a(u);
13571
+ s.addEventListener("complete", function(l) {
13572
+ i(l.target.result);
13573
+ }), s.addEventListener("error", function(l) {
13574
+ a(l);
13575
13575
  });
13576
13576
  })];
13577
13577
  });
@@ -13715,11 +13715,11 @@ var Ss = (
13715
13715
  return r.sent(), [2, new Promise(function(o, i) {
13716
13716
  if (!t.db)
13717
13717
  return i(F.createDatabaseNotOpenError());
13718
- var a = t.db.transaction([t.tableName], "readonly"), s = a.objectStore(t.tableName), u = s.get(e);
13719
- u.addEventListener("success", function(p) {
13720
- var l = p;
13721
- t.closeConnection(), o(l.target.result);
13722
- }), u.addEventListener("error", function(p) {
13718
+ var a = t.db.transaction([t.tableName], "readonly"), s = a.objectStore(t.tableName), l = s.get(e);
13719
+ l.addEventListener("success", function(p) {
13720
+ var u = p;
13721
+ t.closeConnection(), o(u.target.result);
13722
+ }), l.addEventListener("error", function(p) {
13723
13723
  t.closeConnection(), i(p);
13724
13724
  });
13725
13725
  })];
@@ -13737,11 +13737,11 @@ var Ss = (
13737
13737
  return o.sent(), [2, new Promise(function(i, a) {
13738
13738
  if (!r.db)
13739
13739
  return a(F.createDatabaseNotOpenError());
13740
- var s = r.db.transaction([r.tableName], "readwrite"), u = s.objectStore(r.tableName), p = u.put(t, e);
13740
+ var s = r.db.transaction([r.tableName], "readwrite"), l = s.objectStore(r.tableName), p = l.put(t, e);
13741
13741
  p.addEventListener("success", function() {
13742
13742
  r.closeConnection(), i();
13743
- }), p.addEventListener("error", function(l) {
13744
- r.closeConnection(), a(l);
13743
+ }), p.addEventListener("error", function(u) {
13744
+ r.closeConnection(), a(u);
13745
13745
  });
13746
13746
  })];
13747
13747
  }
@@ -13758,10 +13758,10 @@ var Ss = (
13758
13758
  return r.sent(), [2, new Promise(function(o, i) {
13759
13759
  if (!t.db)
13760
13760
  return i(F.createDatabaseNotOpenError());
13761
- var a = t.db.transaction([t.tableName], "readwrite"), s = a.objectStore(t.tableName), u = s.delete(e);
13762
- u.addEventListener("success", function() {
13761
+ var a = t.db.transaction([t.tableName], "readwrite"), s = a.objectStore(t.tableName), l = s.delete(e);
13762
+ l.addEventListener("success", function() {
13763
13763
  t.closeConnection(), o();
13764
- }), u.addEventListener("error", function(p) {
13764
+ }), l.addEventListener("error", function(p) {
13765
13765
  t.closeConnection(), i(p);
13766
13766
  });
13767
13767
  })];
@@ -13780,11 +13780,11 @@ var Ss = (
13780
13780
  if (!e.db)
13781
13781
  return o(F.createDatabaseNotOpenError());
13782
13782
  var i = e.db.transaction([e.tableName], "readonly"), a = i.objectStore(e.tableName), s = a.getAllKeys();
13783
- s.addEventListener("success", function(u) {
13784
- var p = u;
13783
+ s.addEventListener("success", function(l) {
13784
+ var p = l;
13785
13785
  e.closeConnection(), r(p.target.result);
13786
- }), s.addEventListener("error", function(u) {
13787
- e.closeConnection(), o(u);
13786
+ }), s.addEventListener("error", function(l) {
13787
+ e.closeConnection(), o(l);
13788
13788
  });
13789
13789
  })];
13790
13790
  }
@@ -13801,11 +13801,11 @@ var Ss = (
13801
13801
  return r.sent(), [2, new Promise(function(o, i) {
13802
13802
  if (!t.db)
13803
13803
  return i(F.createDatabaseNotOpenError());
13804
- var a = t.db.transaction([t.tableName], "readonly"), s = a.objectStore(t.tableName), u = s.count(e);
13805
- u.addEventListener("success", function(p) {
13806
- var l = p;
13807
- t.closeConnection(), o(l.target.result === 1);
13808
- }), u.addEventListener("error", function(p) {
13804
+ var a = t.db.transaction([t.tableName], "readonly"), s = a.objectStore(t.tableName), l = s.count(e);
13805
+ l.addEventListener("success", function(p) {
13806
+ var u = p;
13807
+ t.closeConnection(), o(u.target.result === 1);
13808
+ }), l.addEventListener("error", function(p) {
13809
13809
  t.closeConnection(), i(p);
13810
13810
  });
13811
13811
  })];
@@ -14022,7 +14022,7 @@ var As = (
14022
14022
  }, n.prototype.getPublicKeyThumbprint = function(e) {
14023
14023
  var t;
14024
14024
  return O(this, void 0, void 0, function() {
14025
- var r, o, i, a, s, u, p, l;
14025
+ var r, o, i, a, s, l, p, u;
14026
14026
  return L(this, function(m) {
14027
14027
  switch (m.label) {
14028
14028
  case 0:
@@ -14036,12 +14036,12 @@ var As = (
14036
14036
  n: i.n
14037
14037
  }, s = nn.getSortedObjectString(a), [4, this.hashString(s)];
14038
14038
  case 3:
14039
- return u = m.sent(), [4, this.browserCrypto.exportJwk(o.privateKey)];
14039
+ return l = m.sent(), [4, this.browserCrypto.exportJwk(o.privateKey)];
14040
14040
  case 4:
14041
14041
  return p = m.sent(), [4, this.browserCrypto.importJwk(p, !1, ["sign"])];
14042
14042
  case 5:
14043
- return l = m.sent(), [4, this.cache.asymmetricKeys.setItem(u, {
14044
- privateKey: l,
14043
+ return u = m.sent(), [4, this.cache.asymmetricKeys.setItem(l, {
14044
+ privateKey: u,
14045
14045
  publicKey: o.publicKey,
14046
14046
  requestMethod: e.resourceRequestMethod,
14047
14047
  requestUri: e.resourceRequestUri
@@ -14049,7 +14049,7 @@ var As = (
14049
14049
  case 6:
14050
14050
  return m.sent(), r && r.endMeasurement({
14051
14051
  success: !0
14052
- }), [2, u];
14052
+ }), [2, l];
14053
14053
  }
14054
14054
  });
14055
14055
  });
@@ -14081,7 +14081,7 @@ var As = (
14081
14081
  }, n.prototype.signJwt = function(e, t, r) {
14082
14082
  var o;
14083
14083
  return O(this, void 0, void 0, function() {
14084
- var i, a, s, u, p, l, m, f, k, E, R, q, K;
14084
+ var i, a, s, l, p, u, m, f, k, E, R, q, K;
14085
14085
  return L(this, function(z) {
14086
14086
  switch (z.label) {
14087
14087
  case 0:
@@ -14091,8 +14091,8 @@ var As = (
14091
14091
  throw F.createSigningKeyNotFoundInStorageError(t);
14092
14092
  return [4, this.browserCrypto.exportJwk(a.publicKey)];
14093
14093
  case 2:
14094
- return s = z.sent(), u = nn.getSortedObjectString(s), p = this.b64Encode.urlEncode(JSON.stringify({ kid: t })), l = Za.getShrHeaderString({ kid: p, alg: s.alg }), m = this.b64Encode.urlEncode(l), e.cnf = {
14095
- jwk: JSON.parse(u)
14094
+ return s = z.sent(), l = nn.getSortedObjectString(s), p = this.b64Encode.urlEncode(JSON.stringify({ kid: t })), u = Za.getShrHeaderString({ kid: p, alg: s.alg }), m = this.b64Encode.urlEncode(u), e.cnf = {
14095
+ jwk: JSON.parse(l)
14096
14096
  }, f = this.b64Encode.urlEncode(JSON.stringify(e)), k = m + "." + f, E = nn.stringToArrayBuffer(k), [4, this.browserCrypto.sign(a.privateKey, E)];
14097
14097
  case 3:
14098
14098
  return R = z.sent(), q = this.b64Encode.urlEncodeArr(new Uint8Array(R)), K = k + "." + q, i && i.endMeasurement({
@@ -14171,9 +14171,9 @@ var Rs = (
14171
14171
  /** @class */
14172
14172
  function(n) {
14173
14173
  Qe(e, n);
14174
- function e(t, r, o, i, a, s, u) {
14174
+ function e(t, r, o, i, a, s, l) {
14175
14175
  var p = n.call(this, t, r, o, i, a, s) || this;
14176
- return p.browserCrypto = new ki(p.logger, u), p.guidGenerator = new wi(p.browserCrypto), p;
14176
+ return p.browserCrypto = new ki(p.logger, l), p.guidGenerator = new wi(p.browserCrypto), p;
14177
14177
  }
14178
14178
  return e.prototype.startPerformanceMeasuremeant = function(t, r) {
14179
14179
  return new Go(t, r);
@@ -14192,8 +14192,8 @@ var Rs = (
14192
14192
  }, e.prototype.startMeasurement = function(t, r) {
14193
14193
  var o = this, i = this.getPageVisibility(), a = n.prototype.startMeasurement.call(this, t, r);
14194
14194
  return J(J({}, a), { endMeasurement: function(s) {
14195
- var u = a.endMeasurement(J({ startPageVisibility: i, endPageVisibility: o.getPageVisibility() }, s));
14196
- return o.deleteIncompleteSubMeasurements(a), u;
14195
+ var l = a.endMeasurement(J({ startPageVisibility: i, endPageVisibility: o.getPageVisibility() }, s));
14196
+ return o.deleteIncompleteSubMeasurements(a), l;
14197
14197
  }, discardMeasurement: function() {
14198
14198
  a.discardMeasurement(), o.deleteIncompleteSubMeasurements(a), a.measurement.flushMeasurement();
14199
14199
  } });
@@ -14219,8 +14219,8 @@ var Rs = (
14219
14219
  }
14220
14220
  var a = n.prototype.getPreQueueTime.call(this, t, r);
14221
14221
  if (a) {
14222
- var s = window.performance.now(), u = o || n.prototype.calculateQueuedTime.call(this, a, s);
14223
- return n.prototype.addQueueMeasurement.call(this, t, r, u, i);
14222
+ var s = window.performance.now(), l = o || n.prototype.calculateQueuedTime.call(this, a, s);
14223
+ return n.prototype.addQueueMeasurement.call(this, t, r, l, i);
14224
14224
  }
14225
14225
  }, e;
14226
14226
  }(gi)
@@ -14240,14 +14240,14 @@ var Ps = (
14240
14240
  var s = this.loadAccount(o, e.account.environment, void 0, void 0, e.account.homeAccountId);
14241
14241
  i = new $n(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));
14242
14242
  } else if (e.authority) {
14243
- var u = tr.generateAuthority(e.authority, e.azureCloudOptions), p = {
14243
+ var l = tr.generateAuthority(e.authority, e.azureCloudOptions), p = {
14244
14244
  protocolMode: this.config.auth.protocolMode,
14245
14245
  knownAuthorities: this.config.auth.knownAuthorities,
14246
14246
  cloudDiscoveryMetadata: this.config.auth.cloudDiscoveryMetadata,
14247
14247
  authorityMetadata: this.config.auth.authorityMetadata,
14248
14248
  skipAuthorityMetadataCache: this.config.auth.skipAuthorityMetadataCache
14249
14249
  };
14250
- if (a = new tr(u, this.config.system.networkClient, this.storage, p, this.logger), r.clientInfo) {
14250
+ if (a = new tr(l, this.config.system.networkClient, this.storage, p, this.logger), r.clientInfo) {
14251
14251
  this.logger.trace("TokenCache - homeAccountId from options");
14252
14252
  var s = this.loadAccount(o, a.hostnameAndPort, r.clientInfo, a.authorityType);
14253
14253
  i = new $n(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));
@@ -14280,9 +14280,9 @@ var Ps = (
14280
14280
  throw F.createUnableToLoadTokenError("Please ensure server response includes expires_in value.");
14281
14281
  if (!a.extendedExpiresOn)
14282
14282
  throw F.createUnableToLoadTokenError("Please provide an extendedExpiresOn value in the options.");
14283
- var s = new $e(e.scopes).printScopes(), u = a.expiresOn || t.expires_in + (/* @__PURE__ */ new Date()).getTime() / 1e3, p = a.extendedExpiresOn, l = Cn.createAccessTokenEntity(r, o, t.access_token, this.config.auth.clientId, i, s, u, p, this.cryptoObj);
14283
+ var s = new $e(e.scopes).printScopes(), l = a.expiresOn || t.expires_in + (/* @__PURE__ */ new Date()).getTime() / 1e3, p = a.extendedExpiresOn, u = Cn.createAccessTokenEntity(r, o, t.access_token, this.config.auth.clientId, i, s, l, p, this.cryptoObj);
14284
14284
  if (this.isBrowserEnvironment)
14285
- return this.logger.verbose("TokenCache - loading access token"), this.storage.setAccessTokenCredential(l), l;
14285
+ return this.logger.verbose("TokenCache - loading access token"), this.storage.setAccessTokenCredential(u), u;
14286
14286
  throw F.createUnableToLoadTokenError("loadExternalTokens is designed to work in browser environments only.");
14287
14287
  }, n.prototype.loadRefreshToken = function(e, t, r, o) {
14288
14288
  if (!t.refresh_token)
@@ -14292,8 +14292,8 @@ var Ps = (
14292
14292
  return this.logger.verbose("TokenCache - loading refresh token"), this.storage.setRefreshTokenCredential(i), i;
14293
14293
  throw F.createUnableToLoadTokenError("loadExternalTokens is designed to work in browser environments only.");
14294
14294
  }, n.prototype.generateAuthenticationResult = function(e, t, r, o) {
14295
- var i, a, s, u = w.EMPTY_STRING, p = [], l = null, m;
14296
- r != null && r.accessToken && (u = r.accessToken.secret, p = $e.fromString(r.accessToken.target).asArray(), l = new Date(Number(r.accessToken.expiresOn) * 1e3), m = new Date(Number(r.accessToken.extendedExpiresOn) * 1e3));
14295
+ var i, a, s, l = w.EMPTY_STRING, p = [], u = null, m;
14296
+ r != null && r.accessToken && (l = r.accessToken.secret, p = $e.fromString(r.accessToken.target).asArray(), u = new Date(Number(r.accessToken.expiresOn) * 1e3), m = new Date(Number(r.accessToken.extendedExpiresOn) * 1e3));
14297
14297
  var f = (t == null ? void 0 : t.claims.oid) || (t == null ? void 0 : t.claims.sub) || w.EMPTY_STRING, k = (t == null ? void 0 : t.claims.tid) || w.EMPTY_STRING;
14298
14298
  return {
14299
14299
  authority: o ? o.canonicalAuthority : w.EMPTY_STRING,
@@ -14303,9 +14303,9 @@ var Ps = (
14303
14303
  account: r != null && r.account ? r.account.getAccountInfo() : null,
14304
14304
  idToken: t ? t.rawToken : w.EMPTY_STRING,
14305
14305
  idTokenClaims: t ? t.claims : {},
14306
- accessToken: u,
14306
+ accessToken: l,
14307
14307
  fromCache: !0,
14308
- expiresOn: l,
14308
+ expiresOn: u,
14309
14309
  correlationId: e.correlationId || w.EMPTY_STRING,
14310
14310
  requestId: w.EMPTY_STRING,
14311
14311
  extExpiresOn: m,
@@ -14337,32 +14337,32 @@ var Ns = (
14337
14337
  /** @class */
14338
14338
  function(n) {
14339
14339
  Qe(e, n);
14340
- function e(t, r, o, i, a, s, u, p, l, m) {
14341
- var f = n.call(this, t, r, o, i, a, s, p, l, m) || this;
14342
- return f.apiId = u, f;
14340
+ function e(t, r, o, i, a, s, l, p, u, m) {
14341
+ var f = n.call(this, t, r, o, i, a, s, p, u, m) || this;
14342
+ return f.apiId = l, f;
14343
14343
  }
14344
14344
  return e.prototype.acquireToken = function(t) {
14345
14345
  return O(this, void 0, void 0, function() {
14346
- var r, o, i, a, s, u, p;
14347
- return L(this, function(l) {
14348
- switch (l.label) {
14346
+ var r, o, i, a, s, l, p;
14347
+ return L(this, function(u) {
14348
+ switch (u.label) {
14349
14349
  case 0:
14350
14350
  if (this.logger.trace("SilentAuthCodeClient.acquireToken called"), !t.code)
14351
14351
  throw F.createAuthCodeRequiredError();
14352
14352
  return this.performanceClient.setPreQueueTime(A.StandardInteractionClientInitializeAuthorizationRequest, t.correlationId), [4, this.initializeAuthorizationRequest(t, W.Silent)];
14353
14353
  case 1:
14354
- r = l.sent(), this.browserStorage.updateCacheEntries(r.state, r.nonce, r.authority, r.loginHint || w.EMPTY_STRING, r.account || null), o = this.initializeServerTelemetryManager(this.apiId), l.label = 2;
14354
+ r = u.sent(), this.browserStorage.updateCacheEntries(r.state, r.nonce, r.authority, r.loginHint || w.EMPTY_STRING, r.account || null), o = this.initializeServerTelemetryManager(this.apiId), u.label = 2;
14355
14355
  case 2:
14356
- return l.trys.push([2, 4, , 5]), i = J(J({}, r), { code: t.code }), this.performanceClient.setPreQueueTime(A.StandardInteractionClientGetClientConfiguration, t.correlationId), [4, this.getClientConfiguration(o, r.authority)];
14356
+ return u.trys.push([2, 4, , 5]), i = J(J({}, r), { code: t.code }), this.performanceClient.setPreQueueTime(A.StandardInteractionClientGetClientConfiguration, t.correlationId), [4, this.getClientConfiguration(o, r.authority)];
14357
14357
  case 3:
14358
- return a = l.sent(), s = new Ms(a), this.logger.verbose("Auth code client created"), u = new yi(s, this.browserStorage, i, this.logger, this.config.system, this.performanceClient), [2, u.handleCodeResponseFromServer({
14358
+ return a = u.sent(), s = new Ms(a), this.logger.verbose("Auth code client created"), l = new yi(s, this.browserStorage, i, this.logger, this.config.system, this.performanceClient), [2, l.handleCodeResponseFromServer({
14359
14359
  code: t.code,
14360
14360
  msgraph_host: t.msGraphHost,
14361
14361
  cloud_graph_host_name: t.cloudGraphHostName,
14362
14362
  cloud_instance_host_name: t.cloudInstanceHostName
14363
14363
  }, r.state, s.authority, this.networkClient, !1)];
14364
14364
  case 4:
14365
- throw p = l.sent(), p instanceof X && p.setCorrelationId(this.correlationId), o.cacheFailedRequest(p), this.browserStorage.cleanRequestByState(r.state), p;
14365
+ throw p = u.sent(), p instanceof X && p.setCorrelationId(this.correlationId), o.cacheFailedRequest(p), this.browserStorage.cleanRequestByState(r.state), p;
14366
14366
  case 5:
14367
14367
  return [
14368
14368
  2
@@ -14425,32 +14425,32 @@ var Os = (
14425
14425
  });
14426
14426
  }, n.prototype.handleRedirectPromise = function(e) {
14427
14427
  return O(this, void 0, void 0, function() {
14428
- var t, r, o, i, a, s, u, p, l = this;
14428
+ var t, r, o, i, a, s, l, p, u = this;
14429
14429
  return L(this, function(m) {
14430
- return this.logger.verbose("handleRedirectPromise called"), Ae.blockNativeBrokerCalledBeforeInitialized(this.config.system.allowNativeBroker, this.initialized), t = this.getAllAccounts(), this.isBrowserEnvironment ? (r = e || w.EMPTY_STRING, o = this.redirectResponse.get(r), typeof o > "u" ? (this.eventHandler.emitEvent(ne.HANDLE_REDIRECT_START, W.Redirect), this.logger.verbose("handleRedirectPromise has been called for the first time, storing the promise"), i = this.browserStorage.getCachedNativeRequest(), a = void 0, i && Tn.isNativeAvailable(this.config, this.logger, this.nativeExtensionProvider) && this.nativeExtensionProvider && !e ? (this.logger.trace("handleRedirectPromise - acquiring token from native platform"), s = new Un(this.config, this.browserStorage, this.browserCrypto, this.logger, this.eventHandler, this.navigationClient, Ce.handleRedirectPromise, this.performanceClient, this.nativeExtensionProvider, i.accountId, this.nativeInternalStorage, i.correlationId), a = s.handleRedirectPromise()) : (this.logger.trace("handleRedirectPromise - acquiring token from web flow"), u = this.browserStorage.getTemporaryCache(de.CORRELATION_ID, !0) || w.EMPTY_STRING, p = this.createRedirectClient(u), a = p.handleRedirectPromise(e)), o = a.then(function(f) {
14430
+ return this.logger.verbose("handleRedirectPromise called"), Ae.blockNativeBrokerCalledBeforeInitialized(this.config.system.allowNativeBroker, this.initialized), t = this.getAllAccounts(), this.isBrowserEnvironment ? (r = e || w.EMPTY_STRING, o = this.redirectResponse.get(r), typeof o > "u" ? (this.eventHandler.emitEvent(ne.HANDLE_REDIRECT_START, W.Redirect), this.logger.verbose("handleRedirectPromise has been called for the first time, storing the promise"), i = this.browserStorage.getCachedNativeRequest(), a = void 0, i && Tn.isNativeAvailable(this.config, this.logger, this.nativeExtensionProvider) && this.nativeExtensionProvider && !e ? (this.logger.trace("handleRedirectPromise - acquiring token from native platform"), s = new Un(this.config, this.browserStorage, this.browserCrypto, this.logger, this.eventHandler, this.navigationClient, Ce.handleRedirectPromise, this.performanceClient, this.nativeExtensionProvider, i.accountId, this.nativeInternalStorage, i.correlationId), a = s.handleRedirectPromise()) : (this.logger.trace("handleRedirectPromise - acquiring token from web flow"), l = this.browserStorage.getTemporaryCache(de.CORRELATION_ID, !0) || w.EMPTY_STRING, p = this.createRedirectClient(l), a = p.handleRedirectPromise(e)), o = a.then(function(f) {
14431
14431
  if (f) {
14432
- var k = t.length < l.getAllAccounts().length;
14433
- k ? (l.eventHandler.emitEvent(ne.LOGIN_SUCCESS, W.Redirect, f), l.logger.verbose("handleRedirectResponse returned result, login success")) : (l.eventHandler.emitEvent(ne.ACQUIRE_TOKEN_SUCCESS, W.Redirect, f), l.logger.verbose("handleRedirectResponse returned result, acquire token success"));
14432
+ var k = t.length < u.getAllAccounts().length;
14433
+ k ? (u.eventHandler.emitEvent(ne.LOGIN_SUCCESS, W.Redirect, f), u.logger.verbose("handleRedirectResponse returned result, login success")) : (u.eventHandler.emitEvent(ne.ACQUIRE_TOKEN_SUCCESS, W.Redirect, f), u.logger.verbose("handleRedirectResponse returned result, acquire token success"));
14434
14434
  }
14435
- return l.eventHandler.emitEvent(ne.HANDLE_REDIRECT_END, W.Redirect), f;
14435
+ return u.eventHandler.emitEvent(ne.HANDLE_REDIRECT_END, W.Redirect), f;
14436
14436
  }).catch(function(f) {
14437
- throw t.length > 0 ? l.eventHandler.emitEvent(ne.ACQUIRE_TOKEN_FAILURE, W.Redirect, null, f) : l.eventHandler.emitEvent(ne.LOGIN_FAILURE, W.Redirect, null, f), l.eventHandler.emitEvent(ne.HANDLE_REDIRECT_END, W.Redirect), f;
14437
+ throw t.length > 0 ? u.eventHandler.emitEvent(ne.ACQUIRE_TOKEN_FAILURE, W.Redirect, null, f) : u.eventHandler.emitEvent(ne.LOGIN_FAILURE, W.Redirect, null, f), u.eventHandler.emitEvent(ne.HANDLE_REDIRECT_END, W.Redirect), f;
14438
14438
  }), 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]);
14439
14439
  });
14440
14440
  });
14441
14441
  }, n.prototype.acquireTokenRedirect = function(e) {
14442
14442
  return O(this, void 0, void 0, function() {
14443
14443
  var t, r, o, i, a, s = this;
14444
- return L(this, function(u) {
14444
+ return L(this, function(l) {
14445
14445
  return t = this.getRequestCorrelationId(e), this.logger.verbose("acquireTokenRedirect called", t), this.preflightBrowserEnvironmentCheck(W.Redirect), r = this.getAllAccounts().length > 0, r ? this.eventHandler.emitEvent(ne.ACQUIRE_TOKEN_START, W.Redirect, e) : this.eventHandler.emitEvent(ne.LOGIN_START, W.Redirect, e), this.nativeExtensionProvider && this.canUseNative(e) ? (i = new Un(this.config, this.browserStorage, this.browserCrypto, this.logger, this.eventHandler, this.navigationClient, Ce.acquireTokenRedirect, this.performanceClient, this.nativeExtensionProvider, this.getNativeAccountId(e), this.nativeInternalStorage, e.correlationId), o = i.acquireTokenRedirect(e).catch(function(p) {
14446
14446
  if (p instanceof Vt && p.isFatal()) {
14447
14447
  s.nativeExtensionProvider = void 0;
14448
- var l = s.createRedirectClient(e.correlationId);
14449
- return l.acquireToken(e);
14448
+ var u = s.createRedirectClient(e.correlationId);
14449
+ return u.acquireToken(e);
14450
14450
  } else if (p instanceof Mt) {
14451
14451
  s.logger.verbose("acquireTokenRedirect - Resolving interaction required error thrown by native broker by falling back to web flow");
14452
- var l = s.createRedirectClient(e.correlationId);
14453
- return l.acquireToken(e);
14452
+ var u = s.createRedirectClient(e.correlationId);
14453
+ return u.acquireToken(e);
14454
14454
  }
14455
14455
  throw s.browserStorage.setInteractionInProgress(!1), p;
14456
14456
  })) : (a = this.createRedirectClient(e.correlationId), o = a.acquireToken(e)), [2, o.catch(function(p) {
@@ -14462,50 +14462,50 @@ var Os = (
14462
14462
  var t = this, r = this.getRequestCorrelationId(e), o = this.performanceClient.startMeasurement(A.AcquireTokenPopup, r);
14463
14463
  try {
14464
14464
  this.logger.verbose("acquireTokenPopup called", r), this.preflightBrowserEnvironmentCheck(W.Popup);
14465
- } catch (u) {
14466
- return Promise.reject(u);
14465
+ } catch (l) {
14466
+ return Promise.reject(l);
14467
14467
  }
14468
14468
  var i = this.getAllAccounts();
14469
14469
  i.length > 0 ? this.eventHandler.emitEvent(ne.ACQUIRE_TOKEN_START, W.Popup, e) : this.eventHandler.emitEvent(ne.LOGIN_START, W.Popup, e);
14470
14470
  var a;
14471
14471
  if (this.canUseNative(e))
14472
- a = this.acquireTokenNative(e, Ce.acquireTokenPopup).then(function(u) {
14472
+ a = this.acquireTokenNative(e, Ce.acquireTokenPopup).then(function(l) {
14473
14473
  return t.browserStorage.setInteractionInProgress(!1), o.endMeasurement({
14474
14474
  success: !0,
14475
14475
  isNativeBroker: !0,
14476
- requestId: u.requestId
14477
- }), u;
14478
- }).catch(function(u) {
14479
- if (u instanceof Vt && u.isFatal()) {
14476
+ requestId: l.requestId
14477
+ }), l;
14478
+ }).catch(function(l) {
14479
+ if (l instanceof Vt && l.isFatal()) {
14480
14480
  t.nativeExtensionProvider = void 0;
14481
14481
  var p = t.createPopupClient(e.correlationId);
14482
14482
  return p.acquireToken(e);
14483
- } else if (u instanceof Mt) {
14483
+ } else if (l instanceof Mt) {
14484
14484
  t.logger.verbose("acquireTokenPopup - Resolving interaction required error thrown by native broker by falling back to web flow");
14485
14485
  var p = t.createPopupClient(e.correlationId);
14486
14486
  return p.acquireToken(e);
14487
14487
  }
14488
- throw t.browserStorage.setInteractionInProgress(!1), u;
14488
+ throw t.browserStorage.setInteractionInProgress(!1), l;
14489
14489
  });
14490
14490
  else {
14491
14491
  var s = this.createPopupClient(e.correlationId);
14492
14492
  a = s.acquireToken(e);
14493
14493
  }
14494
- return a.then(function(u) {
14494
+ return a.then(function(l) {
14495
14495
  var p = i.length < t.getAllAccounts().length;
14496
- return p ? t.eventHandler.emitEvent(ne.LOGIN_SUCCESS, W.Popup, u) : t.eventHandler.emitEvent(ne.ACQUIRE_TOKEN_SUCCESS, W.Popup, u), o.addStaticFields({
14497
- accessTokenSize: u.accessToken.length,
14498
- idTokenSize: u.idToken.length
14496
+ return p ? t.eventHandler.emitEvent(ne.LOGIN_SUCCESS, W.Popup, l) : t.eventHandler.emitEvent(ne.ACQUIRE_TOKEN_SUCCESS, W.Popup, l), o.addStaticFields({
14497
+ accessTokenSize: l.accessToken.length,
14498
+ idTokenSize: l.idToken.length
14499
14499
  }), o.endMeasurement({
14500
14500
  success: !0,
14501
- requestId: u.requestId
14502
- }), u;
14503
- }).catch(function(u) {
14504
- return i.length > 0 ? t.eventHandler.emitEvent(ne.ACQUIRE_TOKEN_FAILURE, W.Popup, null, u) : t.eventHandler.emitEvent(ne.LOGIN_FAILURE, W.Popup, null, u), o.endMeasurement({
14505
- errorCode: u.errorCode,
14506
- subErrorCode: u.subError,
14501
+ requestId: l.requestId
14502
+ }), l;
14503
+ }).catch(function(l) {
14504
+ return i.length > 0 ? t.eventHandler.emitEvent(ne.ACQUIRE_TOKEN_FAILURE, W.Popup, null, l) : t.eventHandler.emitEvent(ne.LOGIN_FAILURE, W.Popup, null, l), o.endMeasurement({
14505
+ errorCode: l.errorCode,
14506
+ subErrorCode: l.subError,
14507
14507
  success: !1
14508
- }), Promise.reject(u);
14508
+ }), Promise.reject(l);
14509
14509
  });
14510
14510
  }, n.prototype.trackPageVisibilityWithMeasurement = function() {
14511
14511
  var e = this.ssoSilentMeasurement || this.acquireTokenByCodeAsyncMeasurement;
@@ -14516,7 +14516,7 @@ var Os = (
14516
14516
  var t;
14517
14517
  return O(this, void 0, void 0, function() {
14518
14518
  var r, o, i, a, s = this;
14519
- return L(this, function(u) {
14519
+ return L(this, function(l) {
14520
14520
  return r = this.getRequestCorrelationId(e), o = J(J({}, e), {
14521
14521
  // will be PromptValue.NONE or PromptValue.NO_SESSION
14522
14522
  prompt: e.prompt,
@@ -14526,13 +14526,13 @@ var Os = (
14526
14526
  }), document.addEventListener("visibilitychange", this.trackPageVisibilityWithMeasurement), this.logger.verbose("ssoSilent called", r), this.eventHandler.emitEvent(ne.SSO_SILENT_START, W.Silent, o), this.canUseNative(o) ? i = this.acquireTokenNative(o, Ce.ssoSilent).catch(function(p) {
14527
14527
  if (p instanceof Vt && p.isFatal()) {
14528
14528
  s.nativeExtensionProvider = void 0;
14529
- var l = s.createSilentIframeClient(o.correlationId);
14530
- return l.acquireToken(o);
14529
+ var u = s.createSilentIframeClient(o.correlationId);
14530
+ return u.acquireToken(o);
14531
14531
  }
14532
14532
  throw p;
14533
14533
  }) : (a = this.createSilentIframeClient(o.correlationId), i = a.acquireToken(o)), [2, i.then(function(p) {
14534
- var l, m;
14535
- return s.eventHandler.emitEvent(ne.SSO_SILENT_SUCCESS, W.Silent, p), (l = s.ssoSilentMeasurement) === null || l === void 0 || l.addStaticFields({
14534
+ var u, m;
14535
+ return s.eventHandler.emitEvent(ne.SSO_SILENT_SUCCESS, W.Silent, p), (u = s.ssoSilentMeasurement) === null || u === void 0 || u.addStaticFields({
14536
14536
  accessTokenSize: p.accessToken.length,
14537
14537
  idTokenSize: p.idToken.length
14538
14538
  }), (m = s.ssoSilentMeasurement) === null || m === void 0 || m.endMeasurement({
@@ -14541,8 +14541,8 @@ var Os = (
14541
14541
  requestId: p.requestId
14542
14542
  }), p;
14543
14543
  }).catch(function(p) {
14544
- var l;
14545
- throw s.eventHandler.emitEvent(ne.SSO_SILENT_FAILURE, W.Silent, null, p), (l = s.ssoSilentMeasurement) === null || l === void 0 || l.endMeasurement({
14544
+ var u;
14545
+ throw s.eventHandler.emitEvent(ne.SSO_SILENT_FAILURE, W.Silent, null, p), (u = s.ssoSilentMeasurement) === null || u === void 0 || u.endMeasurement({
14546
14546
  errorCode: p.errorCode,
14547
14547
  subErrorCode: p.subError,
14548
14548
  success: !1
@@ -14561,36 +14561,36 @@ var Os = (
14561
14561
  if (e.code && e.nativeAccountId)
14562
14562
  throw F.createSpaCodeAndNativeAccountIdPresentError();
14563
14563
  if (e.code)
14564
- 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) {
14565
- return a.eventHandler.emitEvent(ne.ACQUIRE_TOKEN_BY_CODE_SUCCESS, W.Silent, u), a.hybridAuthCodeResponses.delete(o), r.addStaticFields({
14566
- accessTokenSize: u.accessToken.length,
14567
- idTokenSize: u.idToken.length
14564
+ 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) {
14565
+ return a.eventHandler.emitEvent(ne.ACQUIRE_TOKEN_BY_CODE_SUCCESS, W.Silent, l), a.hybridAuthCodeResponses.delete(o), r.addStaticFields({
14566
+ accessTokenSize: l.accessToken.length,
14567
+ idTokenSize: l.idToken.length
14568
14568
  }), r.endMeasurement({
14569
14569
  success: !0,
14570
- isNativeBroker: u.fromNativeBroker,
14571
- requestId: u.requestId
14572
- }), u;
14573
- }).catch(function(u) {
14574
- throw a.hybridAuthCodeResponses.delete(o), a.eventHandler.emitEvent(ne.ACQUIRE_TOKEN_BY_CODE_FAILURE, W.Silent, null, u), r.endMeasurement({
14575
- errorCode: u.errorCode,
14576
- subErrorCode: u.subError,
14570
+ isNativeBroker: l.fromNativeBroker,
14571
+ requestId: l.requestId
14572
+ }), l;
14573
+ }).catch(function(l) {
14574
+ throw a.hybridAuthCodeResponses.delete(o), a.eventHandler.emitEvent(ne.ACQUIRE_TOKEN_BY_CODE_FAILURE, W.Silent, null, l), r.endMeasurement({
14575
+ errorCode: l.errorCode,
14576
+ subErrorCode: l.subError,
14577
14577
  success: !1
14578
- }), u;
14578
+ }), l;
14579
14579
  }), this.hybridAuthCodeResponses.set(o, i)), [2, i];
14580
14580
  if (e.nativeAccountId) {
14581
14581
  if (this.canUseNative(e, e.nativeAccountId))
14582
- return [2, this.acquireTokenNative(e, Ce.acquireTokenByCode, e.nativeAccountId).catch(function(u) {
14583
- throw u instanceof Vt && u.isFatal() && (a.nativeExtensionProvider = void 0), u;
14582
+ return [2, this.acquireTokenNative(e, Ce.acquireTokenByCode, e.nativeAccountId).catch(function(l) {
14583
+ throw l instanceof Vt && l.isFatal() && (a.nativeExtensionProvider = void 0), l;
14584
14584
  })];
14585
14585
  throw F.createUnableToAcquireTokenFromNativePlatformError();
14586
14586
  } else
14587
14587
  throw F.createAuthCodeOrNativeAccountIdRequiredError();
14588
- } catch (u) {
14589
- throw this.eventHandler.emitEvent(ne.ACQUIRE_TOKEN_BY_CODE_FAILURE, W.Silent, null, u), r.endMeasurement({
14590
- errorCode: u instanceof X && u.errorCode || void 0,
14591
- subErrorCode: u instanceof X && u.subError || void 0,
14588
+ } catch (l) {
14589
+ throw this.eventHandler.emitEvent(ne.ACQUIRE_TOKEN_BY_CODE_FAILURE, W.Silent, null, l), r.endMeasurement({
14590
+ errorCode: l instanceof X && l.errorCode || void 0,
14591
+ subErrorCode: l instanceof X && l.subError || void 0,
14592
14592
  success: !1
14593
- }), u;
14593
+ }), l;
14594
14594
  }
14595
14595
  return [
14596
14596
  2
@@ -14608,16 +14608,16 @@ var Os = (
14608
14608
  return this.logger.trace("acquireTokenByCodeAsync called", e.correlationId), this.acquireTokenByCodeAsyncMeasurement = this.performanceClient.startMeasurement(A.AcquireTokenByCodeAsync, e.correlationId), (t = this.acquireTokenByCodeAsyncMeasurement) === null || t === void 0 || t.increment({
14609
14609
  visibilityChangeCount: 0
14610
14610
  }), document.addEventListener("visibilitychange", this.trackPageVisibilityWithMeasurement), r = this.createSilentAuthCodeClient(e.correlationId), [4, r.acquireToken(e).then(function(s) {
14611
- var u;
14612
- return (u = i.acquireTokenByCodeAsyncMeasurement) === null || u === void 0 || u.endMeasurement({
14611
+ var l;
14612
+ return (l = i.acquireTokenByCodeAsyncMeasurement) === null || l === void 0 || l.endMeasurement({
14613
14613
  success: !0,
14614
14614
  fromCache: s.fromCache,
14615
14615
  isNativeBroker: s.fromNativeBroker,
14616
14616
  requestId: s.requestId
14617
14617
  }), s;
14618
14618
  }).catch(function(s) {
14619
- var u;
14620
- throw (u = i.acquireTokenByCodeAsyncMeasurement) === null || u === void 0 || u.endMeasurement({
14619
+ var l;
14620
+ throw (l = i.acquireTokenByCodeAsyncMeasurement) === null || l === void 0 || l.endMeasurement({
14621
14621
  errorCode: s.errorCode,
14622
14622
  subErrorCode: s.subError,
14623
14623
  success: !1
@@ -14811,7 +14811,7 @@ var Ls = (
14811
14811
  return this.logger.verbose("loginPopup called", r), this.acquireTokenPopup(J({ correlationId: r }, t || Do));
14812
14812
  }, e.prototype.acquireTokenSilent = function(t) {
14813
14813
  return O(this, void 0, void 0, function() {
14814
- var r, o, i, a, s, u, p, l = this;
14814
+ var r, o, i, a, s, l, p, u = this;
14815
14815
  return L(this, function(m) {
14816
14816
  if (r = this.getRequestCorrelationId(t), o = this.performanceClient.startMeasurement(A.AcquireTokenSilent, r), o.addStaticFields({
14817
14817
  cacheLookupPolicy: t.cacheLookupPolicy
@@ -14828,8 +14828,8 @@ var Ls = (
14828
14828
  resourceRequestUri: t.resourceRequestUri,
14829
14829
  shrClaims: t.shrClaims,
14830
14830
  sshKid: t.sshKid
14831
- }, 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(A.AcquireTokenSilentAsync, r), p = this.acquireTokenSilentAsync(J(J({}, t), { correlationId: r }), i).then(function(f) {
14832
- return l.activeSilentTokenRequests.delete(s), o.addStaticFields({
14831
+ }, 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(A.AcquireTokenSilentAsync, r), p = this.acquireTokenSilentAsync(J(J({}, t), { correlationId: r }), i).then(function(f) {
14832
+ return u.activeSilentTokenRequests.delete(s), o.addStaticFields({
14833
14833
  accessTokenSize: f.accessToken.length,
14834
14834
  idTokenSize: f.idToken.length
14835
14835
  }), o.endMeasurement({
@@ -14840,12 +14840,12 @@ var Ls = (
14840
14840
  requestId: f.requestId
14841
14841
  }), f;
14842
14842
  }).catch(function(f) {
14843
- throw l.activeSilentTokenRequests.delete(s), o.endMeasurement({
14843
+ throw u.activeSilentTokenRequests.delete(s), o.endMeasurement({
14844
14844
  errorCode: f.errorCode,
14845
14845
  subErrorCode: f.subError,
14846
14846
  success: !1
14847
14847
  }), f;
14848
- }), 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]);
14848
+ }), 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]);
14849
14849
  });
14850
14850
  });
14851
14851
  }, e.prototype.trackPageVisibility = function() {
@@ -14855,14 +14855,14 @@ var Ls = (
14855
14855
  }, e.prototype.acquireTokenSilentAsync = function(t, r) {
14856
14856
  var o;
14857
14857
  return O(this, void 0, void 0, function() {
14858
- var i, a, s, u, p, l = this;
14858
+ var i, a, s, l, p, u = this;
14859
14859
  return L(this, function(m) {
14860
14860
  switch (m.label) {
14861
14861
  case 0:
14862
14862
  return this.performanceClient.addQueueMeasurement(A.AcquireTokenSilentAsync, t.correlationId), this.eventHandler.emitEvent(ne.ACQUIRE_TOKEN_START, W.Silent, t), this.astsAsyncMeasurement = this.performanceClient.startMeasurement(A.AcquireTokenSilentAsync, t.correlationId), (o = this.astsAsyncMeasurement) === null || o === void 0 || o.increment({
14863
14863
  visibilityChangeCount: 0
14864
14864
  }), document.addEventListener("visibilitychange", this.trackPageVisibility), Tn.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, Ce.acquireTokenSilent_silentFlow).catch(function(f) {
14865
- return O(l, void 0, void 0, function() {
14865
+ return O(u, void 0, void 0, function() {
14866
14866
  var k;
14867
14867
  return L(this, function(E) {
14868
14868
  if (f instanceof Vt && f.isFatal())
@@ -14874,23 +14874,23 @@ var Ls = (
14874
14874
  case 1:
14875
14875
  return this.logger.verbose("acquireTokenSilent - attempting to acquire token from web flow"), s = this.createSilentCacheClient(t.correlationId), this.performanceClient.setPreQueueTime(A.InitializeSilentRequest, t.correlationId), [4, s.initializeSilentRequest(t, r)];
14876
14876
  case 2:
14877
- u = m.sent(), p = J(J({}, t), {
14877
+ l = m.sent(), p = J(J({}, t), {
14878
14878
  // set the request's CacheLookupPolicy to Default if it was not optionally passed in
14879
14879
  cacheLookupPolicy: t.cacheLookupPolicy || at.Default
14880
- }), this.performanceClient.setPreQueueTime(A.AcquireTokenFromCache, u.correlationId), i = this.acquireTokenFromCache(s, u, p).catch(function(f) {
14880
+ }), this.performanceClient.setPreQueueTime(A.AcquireTokenFromCache, l.correlationId), i = this.acquireTokenFromCache(s, l, p).catch(function(f) {
14881
14881
  if (p.cacheLookupPolicy === at.AccessToken)
14882
14882
  throw f;
14883
- return Ae.blockReloadInHiddenIframes(), l.eventHandler.emitEvent(ne.ACQUIRE_TOKEN_NETWORK_START, W.Silent, u), l.performanceClient.setPreQueueTime(A.AcquireTokenByRefreshToken, u.correlationId), l.acquireTokenByRefreshToken(u, p).catch(function(k) {
14883
+ return Ae.blockReloadInHiddenIframes(), u.eventHandler.emitEvent(ne.ACQUIRE_TOKEN_NETWORK_START, W.Silent, l), u.performanceClient.setPreQueueTime(A.AcquireTokenByRefreshToken, l.correlationId), u.acquireTokenByRefreshToken(l, p).catch(function(k) {
14884
14884
  var E = k instanceof Sn, R = k instanceof Mt, q = k.errorCode === On.noTokensFoundError.code, K = k.errorCode === Pt.INVALID_GRANT_ERROR;
14885
14885
  if ((!E || !K || R || p.cacheLookupPolicy === at.AccessTokenAndRefreshToken || p.cacheLookupPolicy === at.RefreshToken) && p.cacheLookupPolicy !== at.Skip && !q)
14886
14886
  throw k;
14887
- return l.logger.verbose("Refresh token expired/invalid or CacheLookupPolicy is set to Skip, attempting acquire token by iframe.", t.correlationId), l.performanceClient.setPreQueueTime(A.AcquireTokenBySilentIframe, u.correlationId), l.acquireTokenBySilentIframe(u);
14887
+ return u.logger.verbose("Refresh token expired/invalid or CacheLookupPolicy is set to Skip, attempting acquire token by iframe.", t.correlationId), u.performanceClient.setPreQueueTime(A.AcquireTokenBySilentIframe, l.correlationId), u.acquireTokenBySilentIframe(l);
14888
14888
  });
14889
14889
  }), m.label = 3;
14890
14890
  case 3:
14891
14891
  return [2, i.then(function(f) {
14892
14892
  var k;
14893
- return l.eventHandler.emitEvent(ne.ACQUIRE_TOKEN_SUCCESS, W.Silent, f), (k = l.astsAsyncMeasurement) === null || k === void 0 || k.endMeasurement({
14893
+ return u.eventHandler.emitEvent(ne.ACQUIRE_TOKEN_SUCCESS, W.Silent, f), (k = u.astsAsyncMeasurement) === null || k === void 0 || k.endMeasurement({
14894
14894
  success: !0,
14895
14895
  fromCache: f.fromCache,
14896
14896
  isNativeBroker: f.fromNativeBroker,
@@ -14898,13 +14898,13 @@ var Ls = (
14898
14898
  }), f;
14899
14899
  }).catch(function(f) {
14900
14900
  var k;
14901
- throw l.eventHandler.emitEvent(ne.ACQUIRE_TOKEN_FAILURE, W.Silent, null, f), (k = l.astsAsyncMeasurement) === null || k === void 0 || k.endMeasurement({
14901
+ throw u.eventHandler.emitEvent(ne.ACQUIRE_TOKEN_FAILURE, W.Silent, null, f), (k = u.astsAsyncMeasurement) === null || k === void 0 || k.endMeasurement({
14902
14902
  errorCode: f.errorCode,
14903
14903
  subErrorCode: f.subError,
14904
14904
  success: !1
14905
14905
  }), f;
14906
14906
  }).finally(function() {
14907
- document.removeEventListener("visibilitychange", l.trackPageVisibility);
14907
+ document.removeEventListener("visibilitychange", u.trackPageVisibility);
14908
14908
  })];
14909
14909
  }
14910
14910
  });
@@ -15030,46 +15030,46 @@ const xs = Ir("MsAuthPlugin", {
15030
15030
  const n = Object.keys(ei.default.state), e = Object.keys(ti.default.state), t = Object.keys(ni.default.state), r = Object.keys(si.default.state), o = Object.keys(oi.default.state), i = Object.keys(ri.default.state), a = Object.keys(ii.default.state), s = Object.keys(ai.default.state);
15031
15031
  console.log(
15032
15032
  "In en but not in de",
15033
- n.filter((u) => !e.includes(u))
15033
+ n.filter((l) => !e.includes(l))
15034
15034
  ), console.log(
15035
15035
  "In de but not in en",
15036
- e.filter((u) => !n.includes(u))
15036
+ e.filter((l) => !n.includes(l))
15037
15037
  ), console.log(), console.log(
15038
15038
  "In en but not in es",
15039
- n.filter((u) => !t.includes(u))
15039
+ n.filter((l) => !t.includes(l))
15040
15040
  ), console.log(
15041
15041
  "In es but not in en",
15042
- t.filter((u) => !n.includes(u))
15042
+ t.filter((l) => !n.includes(l))
15043
15043
  ), console.log(), console.log(
15044
15044
  "In en but not in kr",
15045
- n.filter((u) => !r.includes(u))
15045
+ n.filter((l) => !r.includes(l))
15046
15046
  ), console.log(
15047
15047
  "In kr but not in en",
15048
- r.filter((u) => !n.includes(u))
15048
+ r.filter((l) => !n.includes(l))
15049
15049
  ), console.log(), console.log(
15050
15050
  "In en but not in it",
15051
- n.filter((u) => !o.includes(u))
15051
+ n.filter((l) => !o.includes(l))
15052
15052
  ), console.log(
15053
15053
  "In it but not in en",
15054
- o.filter((u) => !n.includes(u))
15054
+ o.filter((l) => !n.includes(l))
15055
15055
  ), console.log(), console.log(
15056
15056
  "In en but not in fr",
15057
- n.filter((u) => !i.includes(u))
15057
+ n.filter((l) => !i.includes(l))
15058
15058
  ), console.log(
15059
15059
  "In fr but not in en",
15060
- i.filter((u) => !n.includes(u))
15060
+ i.filter((l) => !n.includes(l))
15061
15061
  ), console.log(), console.log(
15062
15062
  "In en but not in sr",
15063
- n.filter((u) => !a.includes(u))
15063
+ n.filter((l) => !a.includes(l))
15064
15064
  ), console.log(
15065
15065
  "In sr but not in en",
15066
- a.filter((u) => !n.includes(u))
15066
+ a.filter((l) => !n.includes(l))
15067
15067
  ), console.log(), console.log(
15068
15068
  "In en but not in tr",
15069
- n.filter((u) => !s.includes(u))
15069
+ n.filter((l) => !s.includes(l))
15070
15070
  ), console.log(
15071
15071
  "In tr but not in en",
15072
- s.filter((u) => !n.includes(u))
15072
+ s.filter((l) => !n.includes(l))
15073
15073
  ), console.log();
15074
15074
  },
15075
15075
  base64ImageToBlob(n) {
@@ -15104,8 +15104,8 @@ const xs = Ir("MsAuthPlugin", {
15104
15104
  cropCardScan(n, e) {
15105
15105
  const t = new window.Image(), r = document.createElement("canvas"), o = r.getContext("2d");
15106
15106
  t.src = "data:image/jpeg;base64," + n, t.onload = () => {
15107
- const i = t.width, a = t.width / 1.65, s = 0, u = t.height / 2 - a / 2, p = i, l = a;
15108
- r.width = p, r.height = l, o.drawImage(t, s, u, i, a, 0, 0, p, l);
15107
+ const i = t.width, a = t.width / 1.65, s = 0, l = t.height / 2 - a / 2, p = i, u = a;
15108
+ r.width = p, r.height = u, o.drawImage(t, s, l, i, a, 0, 0, p, u);
15109
15109
  const m = r.toDataURL();
15110
15110
  return e(m), m;
15111
15111
  };
@@ -15131,7 +15131,7 @@ const xs = Ir("MsAuthPlugin", {
15131
15131
  },
15132
15132
  async decryptAES(n, e, t) {
15133
15133
  try {
15134
- const r = (u) => Uint8Array.from(atob(u), (p) => p.charCodeAt(0));
15134
+ const r = (l) => Uint8Array.from(atob(l), (p) => p.charCodeAt(0));
15135
15135
  t = t.replace(/ /g, "+");
15136
15136
  const o = new TextEncoder(), i = new TextDecoder();
15137
15137
  n = o.encode(n), e = o.encode(e), t = r(t, storage);
@@ -15179,10 +15179,10 @@ const xs = Ir("MsAuthPlugin", {
15179
15179
  localStorage.setItem("pkce_code_verifier", r);
15180
15180
  let o = await Bn.pkceChallengeFromVerifier(r), i = n.domain + "/v1/authorize", a;
15181
15181
  this.isNative ? a = "tapni://t.link/callback/okta" : a = location.origin + "/callback/okta";
15182
- 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;
15183
- window.addEventListener("message", async (l) => {
15184
- if (!this.allowedOriginsAuth.includes(l.origin)) return console.log("Origin is not allowed!");
15185
- l.data.type === "okta" && (p = l.data.code, await u.exchangeCode({ domain: n.domain, code: p, clientID: n.clientID }));
15182
+ 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;
15183
+ window.addEventListener("message", async (u) => {
15184
+ if (!this.allowedOriginsAuth.includes(u.origin)) return console.log("Origin is not allowed!");
15185
+ u.data.type === "okta" && (p = u.data.code, await l.exchangeCode({ domain: n.domain, code: p, clientID: n.clientID }));
15186
15186
  }, { once: !0 }), this.isNative ? await fr.open({ url: s, presentationStyle: "popover" }) : window.open(s, "popup", "width=600,height=600");
15187
15187
  },
15188
15188
  async handleOktaRedirect() {
@@ -15228,19 +15228,20 @@ const xs = Ir("MsAuthPlugin", {
15228
15228
  window.addEventListener(
15229
15229
  "message",
15230
15230
  async (i) => {
15231
- var a;
15231
+ var l;
15232
15232
  if (!this.allowedOriginsAuth.includes(i.origin)) return console.log("Origin is not allowed! " + i.origin);
15233
- if (i.data.code) {
15233
+ const a = i.data.code, s = localStorage.getItem("pkce_code_verifier");
15234
+ if (a) {
15234
15235
  if (o.display === "popup")
15235
- return (a = window.parent) == null ? void 0 : a.postMessage({ code: i.data.code, state: i.data.state, code_verifier: localStorage.getItem("pkce_code_verifier") }, "*");
15236
- await o.exchangeAuthCode({ code: i.data.code, code_verifier: localStorage.getItem("pkce_code_verifier") }), localStorage.removeItem("pkce_code_verifier");
15236
+ return (l = window.parent) == null ? void 0 : l.postMessage({ code: a, state: i.data.state, code_verifier: s }, "*");
15237
+ s && (await o.exchangeAuthCode({ code: i.data.code, code_verifier: s }), localStorage.removeItem("pkce_code_verifier"));
15237
15238
  }
15238
15239
  },
15239
15240
  { once: !0 }
15240
15241
  ), this.isNative ? this.popupWindow = await fr.open({ url: n, presentationStyle: "popover" }) : (this.checkInterval = setInterval(() => {
15241
15242
  var s;
15242
15243
  const i = localStorage.getItem("auth_code"), a = localStorage.getItem("pkce_code_verifier");
15243
- i && (clearInterval(this.checkInterval), localStorage.removeItem("auth_code"), localStorage.removeItem("pkce_code_verifier"), (s = window.parent) == null || s.postMessage({ code: i, state: this.$route.query.state, code_verifier: a }, "*"), (this.display === "npm" || this.display === "redirect") && this.exchangeAuthCode({ code: i, code_verifier: a }));
15244
+ i && (clearInterval(this.checkInterval), localStorage.removeItem("auth_code"), localStorage.removeItem("pkce_code_verifier"), (s = window.parent) == null || s.postMessage({ code: i, state: this.$route.query.state, code_verifier: a }, "*"), a && (this.display === "npm" || this.display === "redirect") && this.exchangeAuthCode({ code: i, code_verifier: a }));
15244
15245
  }, 500), this.popupWindow = window.open(window.location.origin + "/callback/redirect?uri=" + btoa(n), "popup", "width=600,height=600")), this.popupWindow && this.popupWindow.addEventListener("beforeunload", () => {
15245
15246
  console.log("popup window closed");
15246
15247
  });
@@ -16321,9 +16322,9 @@ var Ei = { exports: {} };
16321
16322
  }, o.t = function(i, a) {
16322
16323
  if (1 & a && (i = o(i)), 8 & a || 4 & a && typeof i == "object" && i && i.__esModule) return i;
16323
16324
  var s = /* @__PURE__ */ Object.create(null);
16324
- 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) {
16325
+ 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) {
16325
16326
  return i[p];
16326
- }).bind(null, u));
16327
+ }).bind(null, l));
16327
16328
  return s;
16328
16329
  }, o.n = function(i) {
16329
16330
  var a = i && i.__esModule ? function() {
@@ -16338,15 +16339,15 @@ var Ei = { exports: {} };
16338
16339
  }([function(t, r, o) {
16339
16340
  var i;
16340
16341
  t.exports = (i = i || function(a, s) {
16341
- var u = Object.create || /* @__PURE__ */ function() {
16342
+ var l = Object.create || /* @__PURE__ */ function() {
16342
16343
  function T() {
16343
16344
  }
16344
16345
  return function(H) {
16345
16346
  var G;
16346
16347
  return T.prototype = H, G = new T(), T.prototype = null, G;
16347
16348
  };
16348
- }(), p = {}, l = p.lib = {}, m = l.Base = { extend: function(T) {
16349
- var H = u(this);
16349
+ }(), p = {}, u = p.lib = {}, m = u.Base = { extend: function(T) {
16350
+ var H = l(this);
16350
16351
  return T && H.mixIn(T), H.hasOwnProperty("init") && this.init !== H.init || (H.init = function() {
16351
16352
  H.$super.init.apply(this, arguments);
16352
16353
  }), H.init.prototype = H, H.$super = this, H;
@@ -16359,7 +16360,7 @@ var Ei = { exports: {} };
16359
16360
  T.hasOwnProperty("toString") && (this.toString = T.toString);
16360
16361
  }, clone: function() {
16361
16362
  return this.init.prototype.extend(this);
16362
- } }, f = l.WordArray = m.extend({ init: function(T, H) {
16363
+ } }, f = u.WordArray = m.extend({ init: function(T, H) {
16363
16364
  T = this.words = T || [], this.sigBytes = H ?? 4 * T.length;
16364
16365
  }, toString: function(T) {
16365
16366
  return (T || E).stringify(this);
@@ -16416,7 +16417,7 @@ var Ei = { exports: {} };
16416
16417
  }
16417
16418
  }, parse: function(T) {
16418
16419
  return R.parse(unescape(encodeURIComponent(T)));
16419
- } }, K = l.BufferedBlockAlgorithm = m.extend({ reset: function() {
16420
+ } }, K = u.BufferedBlockAlgorithm = m.extend({ reset: function() {
16420
16421
  this._data = new f.init(), this._nDataBytes = 0;
16421
16422
  }, _append: function(T) {
16422
16423
  typeof T == "string" && (T = q.parse(T)), this._data.concat(T), this._nDataBytes += T.sigBytes;
@@ -16431,7 +16432,7 @@ var Ei = { exports: {} };
16431
16432
  }, clone: function() {
16432
16433
  var T = m.clone.call(this);
16433
16434
  return T._data = this._data.clone(), T;
16434
- }, _minBufferSize: 0 }), z = (l.Hasher = K.extend({ cfg: m.extend(), init: function(T) {
16435
+ }, _minBufferSize: 0 }), z = (u.Hasher = K.extend({ cfg: m.extend(), init: function(T) {
16435
16436
  this.cfg = this.cfg.extend(T), this.reset();
16436
16437
  }, reset: function() {
16437
16438
  K.reset.call(this), this._doReset();
@@ -16451,12 +16452,12 @@ var Ei = { exports: {} };
16451
16452
  return p;
16452
16453
  }(Math), i);
16453
16454
  }, function(t, r, o) {
16454
- var i, a, s, u;
16455
- t.exports = (i = o(0), s = (a = i).lib.Base, u = a.enc.Utf8, void (a.algo.HMAC = s.extend({ init: function(p, l) {
16456
- p = this._hasher = new p.init(), typeof l == "string" && (l = u.parse(l));
16455
+ var i, a, s, l;
16456
+ t.exports = (i = o(0), s = (a = i).lib.Base, l = a.enc.Utf8, void (a.algo.HMAC = s.extend({ init: function(p, u) {
16457
+ p = this._hasher = new p.init(), typeof u == "string" && (u = l.parse(u));
16457
16458
  var m = p.blockSize, f = 4 * m;
16458
- l.sigBytes > f && (l = p.finalize(l)), l.clamp();
16459
- for (var k = this._oKey = l.clone(), E = this._iKey = l.clone(), R = k.words, q = E.words, K = 0; K < m; K++) R[K] ^= 1549556828, q[K] ^= 909522486;
16459
+ u.sigBytes > f && (u = p.finalize(u)), u.clamp();
16460
+ for (var k = this._oKey = u.clone(), E = this._iKey = u.clone(), R = k.words, q = E.words, K = 0; K < m; K++) R[K] ^= 1549556828, q[K] ^= 909522486;
16460
16461
  k.sigBytes = E.sigBytes = f, this.reset();
16461
16462
  }, reset: function() {
16462
16463
  var p = this._hasher;
@@ -16464,15 +16465,15 @@ var Ei = { exports: {} };
16464
16465
  }, update: function(p) {
16465
16466
  return this._hasher.update(p), this;
16466
16467
  }, finalize: function(p) {
16467
- var l = this._hasher, m = l.finalize(p);
16468
- return l.reset(), l.finalize(this._oKey.clone().concat(m));
16468
+ var u = this._hasher, m = u.finalize(p);
16469
+ return u.reset(), u.finalize(this._oKey.clone().concat(m));
16469
16470
  } })));
16470
16471
  }, function(t, r, o) {
16471
16472
  var i;
16472
16473
  t.exports = (i = o(0), i.enc.Hex);
16473
16474
  }, function(t, r, o) {
16474
- var i, a, s, u, p, l;
16475
- 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) {
16475
+ var i, a, s, l, p, u;
16476
+ 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) {
16476
16477
  this.high = m, this.low = f;
16477
16478
  } }), p.WordArray = s.extend({ init: function(m, f) {
16478
16479
  m = this.words = m || [], this.sigBytes = f ?? 8 * m.length;
@@ -16481,11 +16482,11 @@ var Ei = { exports: {} };
16481
16482
  var R = m[E];
16482
16483
  k.push(R.high), k.push(R.low);
16483
16484
  }
16484
- return u.create(k, this.sigBytes);
16485
+ return l.create(k, this.sigBytes);
16485
16486
  }, clone: function() {
16486
16487
  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();
16487
16488
  return m;
16488
- } }), l);
16489
+ } }), u);
16489
16490
  }, function(t, r, o) {
16490
16491
  var i;
16491
16492
  t.exports = (i = o(0), o(9), o(1), i.HmacSHA1);
@@ -16517,42 +16518,42 @@ var Ei = { exports: {} };
16517
16518
  default:
16518
16519
  throw new Error("Unknown base32 variant: " + a);
16519
16520
  }
16520
- 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);
16521
+ 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);
16521
16522
  return f.buffer;
16522
16523
  };
16523
16524
  }, function(t, r) {
16524
16525
  t.exports = function(o, i, a) {
16525
- var s, u;
16526
+ var s, l;
16526
16527
  switch (a = a || {}, i) {
16527
16528
  case "RFC3548":
16528
16529
  case "RFC4648":
16529
- s = "ABCDEFGHIJKLMNOPQRSTUVWXYZ234567", u = !0;
16530
+ s = "ABCDEFGHIJKLMNOPQRSTUVWXYZ234567", l = !0;
16530
16531
  break;
16531
16532
  case "RFC4648-HEX":
16532
- s = "0123456789ABCDEFGHIJKLMNOPQRSTUV", u = !0;
16533
+ s = "0123456789ABCDEFGHIJKLMNOPQRSTUV", l = !0;
16533
16534
  break;
16534
16535
  case "Crockford":
16535
- s = "0123456789ABCDEFGHJKMNPQRSTVWXYZ", u = !1;
16536
+ s = "0123456789ABCDEFGHJKMNPQRSTVWXYZ", l = !1;
16536
16537
  break;
16537
16538
  default:
16538
16539
  throw new Error("Unknown base32 variant: " + i);
16539
16540
  }
16540
- for (var p = a.padding !== void 0 ? a.padding : u, l = o.byteLength, m = new Uint8Array(o), f = 0, k = 0, E = "", R = 0; R < l; R++) for (k = k << 8 | m[R], f += 8; f >= 5; ) E += s[k >>> f - 5 & 31], f -= 5;
16541
+ for (var p = a.padding !== void 0 ? a.padding : l, u = o.byteLength, m = new Uint8Array(o), f = 0, k = 0, E = "", R = 0; R < u; R++) for (k = k << 8 | m[R], f += 8; f >= 5; ) E += s[k >>> f - 5 & 31], f -= 5;
16541
16542
  if (f > 0 && (E += s[k << 5 - f & 31]), p) for (; E.length % 8 != 0; ) E += "=";
16542
16543
  return E;
16543
16544
  };
16544
16545
  }, function(t, r, o) {
16545
- var i, a, s, u, p, l, m, f;
16546
- 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() {
16546
+ var i, a, s, l, p, u, m, f;
16547
+ 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() {
16547
16548
  this._hash = new s.init([1732584193, 4023233417, 2562383102, 271733878, 3285377520]);
16548
16549
  }, _doProcessBlock: function(k, E) {
16549
16550
  for (var R = this._hash.words, q = R[0], K = R[1], z = R[2], T = R[3], H = R[4], G = 0; G < 80; G++) {
16550
- if (G < 16) l[G] = 0 | k[E + G];
16551
+ if (G < 16) u[G] = 0 | k[E + G];
16551
16552
  else {
16552
- var $ = l[G - 3] ^ l[G - 8] ^ l[G - 14] ^ l[G - 16];
16553
- l[G] = $ << 1 | $ >>> 31;
16553
+ var $ = u[G - 3] ^ u[G - 8] ^ u[G - 14] ^ u[G - 16];
16554
+ u[G] = $ << 1 | $ >>> 31;
16554
16555
  }
16555
- var te = (q << 5 | q >>> 27) + H + l[G];
16556
+ var te = (q << 5 | q >>> 27) + H + u[G];
16556
16557
  te += G < 20 ? 1518500249 + (K & z | ~K & T) : G < 40 ? 1859775393 + (K ^ z ^ T) : G < 60 ? (K & z | K & T | z & T) - 1894007588 : (K ^ z ^ T) - 899497514, H = T, T = z, z = K << 30 | K >>> 2, K = q, q = te;
16557
16558
  }
16558
16559
  R[0] = R[0] + q | 0, R[1] = R[1] + K | 0, R[2] = R[2] + z | 0, R[3] = R[3] + T | 0, R[4] = R[4] + H | 0;
@@ -16560,13 +16561,13 @@ var Ei = { exports: {} };
16560
16561
  var k = this._data, E = k.words, R = 8 * this._nDataBytes, q = 8 * k.sigBytes;
16561
16562
  return E[q >>> 5] |= 128 << 24 - q % 32, E[14 + (q + 64 >>> 9 << 4)] = Math.floor(R / 4294967296), E[15 + (q + 64 >>> 9 << 4)] = R, k.sigBytes = 4 * E.length, this._process(), this._hash;
16562
16563
  }, clone: function() {
16563
- var k = u.clone.call(this);
16564
+ var k = l.clone.call(this);
16564
16565
  return k._hash = this._hash.clone(), k;
16565
- } }), i.SHA1 = u._createHelper(m), i.HmacSHA1 = u._createHmacHelper(m), f.SHA1);
16566
+ } }), i.SHA1 = l._createHelper(m), i.HmacSHA1 = l._createHmacHelper(m), f.SHA1);
16566
16567
  }, function(t, r, o) {
16567
16568
  var i;
16568
16569
  t.exports = (i = o(0), function(a) {
16569
- var s = i, u = s.lib, p = u.WordArray, l = u.Hasher, m = s.algo, f = [], k = [];
16570
+ var s = i, l = s.lib, p = l.WordArray, u = l.Hasher, m = s.algo, f = [], k = [];
16570
16571
  (function() {
16571
16572
  function q(H) {
16572
16573
  for (var G = a.sqrt(H), $ = 2; $ <= G; $++) if (!(H % $)) return !1;
@@ -16577,7 +16578,7 @@ var Ei = { exports: {} };
16577
16578
  }
16578
16579
  for (var z = 2, T = 0; T < 64; ) q(z) && (T < 8 && (f[T] = K(a.pow(z, 0.5))), k[T] = K(a.pow(z, 1 / 3)), T++), z++;
16579
16580
  })();
16580
- var E = [], R = m.SHA256 = l.extend({ _doReset: function() {
16581
+ var E = [], R = m.SHA256 = u.extend({ _doReset: function() {
16581
16582
  this._hash = new p.init(f.slice(0));
16582
16583
  }, _doProcessBlock: function(q, K) {
16583
16584
  for (var z = this._hash.words, T = z[0], H = z[1], G = z[2], $ = z[3], te = z[4], Z = z[5], ye = z[6], Ie = z[7], we = 0; we < 64; we++) {
@@ -16594,15 +16595,15 @@ var Ei = { exports: {} };
16594
16595
  var q = this._data, K = q.words, z = 8 * this._nDataBytes, T = 8 * q.sigBytes;
16595
16596
  return K[T >>> 5] |= 128 << 24 - T % 32, K[14 + (T + 64 >>> 9 << 4)] = a.floor(z / 4294967296), K[15 + (T + 64 >>> 9 << 4)] = z, q.sigBytes = 4 * K.length, this._process(), this._hash;
16596
16597
  }, clone: function() {
16597
- var q = l.clone.call(this);
16598
+ var q = u.clone.call(this);
16598
16599
  return q._hash = this._hash.clone(), q;
16599
16600
  } });
16600
- s.SHA256 = l._createHelper(R), s.HmacSHA256 = l._createHmacHelper(R);
16601
+ s.SHA256 = u._createHelper(R), s.HmacSHA256 = u._createHmacHelper(R);
16601
16602
  }(Math), i.SHA256);
16602
16603
  }, function(t, r, o) {
16603
16604
  var i;
16604
16605
  t.exports = (i = o(0), o(3), function() {
16605
- var a = i, s = a.lib.Hasher, u = a.x64, p = u.Word, l = u.WordArray, m = a.algo;
16606
+ var a = i, s = a.lib.Hasher, l = a.x64, p = l.Word, u = l.WordArray, m = a.algo;
16606
16607
  function f() {
16607
16608
  return p.create.apply(p, arguments);
16608
16609
  }
@@ -16611,7 +16612,7 @@ var Ei = { exports: {} };
16611
16612
  for (var q = 0; q < 80; q++) E[q] = f();
16612
16613
  })();
16613
16614
  var R = m.SHA512 = s.extend({ _doReset: function() {
16614
- 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)]);
16615
+ 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)]);
16615
16616
  }, _doProcessBlock: function(q, K) {
16616
16617
  for (var z = this._hash.words, T = z[0], H = z[1], G = z[2], $ = z[3], te = z[4], Z = z[5], ye = z[6], Ie = z[7], we = T.high, Oe = T.low, Yt = H.high, Ye = H.low, on = G.high, Nt = G.low, Ot = $.high, ut = $.low, gn = te.high, an = te.low, mn = Z.high, sn = Z.low, In = ye.high, Te = ye.low, Re = Ie.high, Wt = Ie.low, qe = we, ze = Oe, Lt = Yt, Tt = Ye, Ze = on, dt = Nt, Jt = Ot, zt = ut, We = gn, Pe = an, pt = mn, xt = sn, Ut = In, vt = Te, _n = Re, St = Wt, Fe = 0; Fe < 80; Fe++) {
16617
16618
  var yt = E[Fe];
@@ -16635,7 +16636,7 @@ var Ei = { exports: {} };
16635
16636
  }(), i.SHA512);
16636
16637
  }, function(t, r, o) {
16637
16638
  o.r(r);
16638
- 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), R = o.n(E);
16639
+ 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), R = o.n(E);
16639
16640
  function q(v, y) {
16640
16641
  var C = Object.keys(v);
16641
16642
  if (Object.getOwnPropertySymbols) {
@@ -17950,7 +17951,7 @@ const Si = /* @__PURE__ */ _t(sd, [["render", hd], ["__scopeId", "data-v-6ebe2dc
17950
17951
  class: "button--loading button__loader"
17951
17952
  };
17952
17953
  function kd(n, e, t, r, o, i) {
17953
- var a, s, u;
17954
+ var a, s, l;
17954
17955
  return N(), x("form", {
17955
17956
  onSubmit: e[4] || (e[4] = je(() => {
17956
17957
  }, ["prevent"])),
@@ -17993,7 +17994,7 @@ function kd(n, e, t, r, o, i) {
17993
17994
  }, null, -1)),
17994
17995
  o.oktaLoad ? (N(), x("span", yd)) : (N(), x("span", vd, D(n.ssoLang[n.appLanguage].sign_in_with) + " Okta", 1))
17995
17996
  ])) : ce("", !0),
17996
- (u = o.sso) != null && u.saml ? (N(), x("a", {
17997
+ (l = o.sso) != null && l.saml ? (N(), x("a", {
17997
17998
  key: 2,
17998
17999
  onClick: e[3] || (e[3] = (p) => i.ssoLogin("saml")),
17999
18000
  class: "button-center button black-button button-90 google-button pointer"
@@ -18098,30 +18099,30 @@ function Ad(n, e, t, r, o, i) {
18098
18099
  src: "https://cdn.tapni.co/icons/" + t.data.type + ".png",
18099
18100
  class: "responsive-image",
18100
18101
  alt: t.data.text,
18101
- onLoad: e[0] || (e[0] = (u) => n.$emit("loaded")),
18102
- onError: e[1] || (e[1] = (u) => n.$emit("loaded"))
18102
+ onLoad: e[0] || (e[0] = (l) => n.$emit("loaded")),
18103
+ onError: e[1] || (e[1] = (l) => n.$emit("loaded"))
18103
18104
  }, null, 40, Ed)) : !t.data.custom_icon && t.data.type === "customlink" && t.linkAdding ? (N(), x("img", {
18104
18105
  key: 1,
18105
18106
  src: "https://cdn.tapni.co/icons/custom-icon-128.gif",
18106
18107
  class: "responsive-image",
18107
18108
  alt: t.data.text,
18108
- onLoad: e[2] || (e[2] = (u) => n.$emit("loaded")),
18109
- onError: e[3] || (e[3] = (u) => n.$emit("loaded"))
18109
+ onLoad: e[2] || (e[2] = (l) => n.$emit("loaded")),
18110
+ onError: e[3] || (e[3] = (l) => n.$emit("loaded"))
18110
18111
  }, null, 40, Td)) : !t.data.custom_icon && t.data.type === "customlink" && !t.linkAdding ? (N(), x("img", {
18111
18112
  key: 2,
18112
18113
  src: "https://cdn.tapni.co/icons/customlink.png",
18113
18114
  class: "responsive-image",
18114
18115
  alt: t.data.text,
18115
- onLoad: e[4] || (e[4] = (u) => n.$emit("loaded")),
18116
- onError: e[5] || (e[5] = (u) => n.$emit("loaded"))
18116
+ onLoad: e[4] || (e[4] = (l) => n.$emit("loaded")),
18117
+ onError: e[5] || (e[5] = (l) => n.$emit("loaded"))
18117
18118
  }, null, 40, Sd)) : (N(), x("img", {
18118
18119
  key: 3,
18119
18120
  src: t.data.style.custom_icon,
18120
18121
  style: { "border-radius": "22.46%" },
18121
18122
  class: "responsive-image",
18122
18123
  alt: t.data.text,
18123
- onLoad: e[6] || (e[6] = (u) => n.$emit("loaded")),
18124
- onError: e[7] || (e[7] = (u) => n.$emit("loaded"))
18124
+ onLoad: e[6] || (e[6] = (l) => n.$emit("loaded")),
18125
+ onError: e[7] || (e[7] = (l) => n.$emit("loaded"))
18125
18126
  }, null, 40, Id))
18126
18127
  ], 6),
18127
18128
  _("span", {