azure-maps-control 3.0.2 → 3.1.0

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.
@@ -89,7 +89,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
89
89
  sessionIdHeaderName: "Session-Id"
90
90
  };
91
91
 
92
- var __values$l = (window && window.__values) || function(o) {
92
+ var __values$k = (window && window.__values) || function(o) {
93
93
  var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
94
94
  if (m) return m.call(o);
95
95
  if (o && typeof o.length === "number") return {
@@ -117,7 +117,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
117
117
  }
118
118
  var defaults;
119
119
  try {
120
- for (var valuesList_1 = __values$l(valuesList), valuesList_1_1 = valuesList_1.next(); !valuesList_1_1.done; valuesList_1_1 = valuesList_1.next()) {
120
+ for (var valuesList_1 = __values$k(valuesList), valuesList_1_1 = valuesList_1.next(); !valuesList_1_1.done; valuesList_1_1 = valuesList_1.next()) {
121
121
  var values = valuesList_1_1.value;
122
122
  if (!values) {
123
123
  continue;
@@ -157,7 +157,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
157
157
  return Options;
158
158
  }());
159
159
 
160
- var __extends$1i = (window && window.__extends) || (function () {
160
+ var __extends$1j = (window && window.__extends) || (function () {
161
161
  var extendStatics = function (d, b) {
162
162
  extendStatics = Object.setPrototypeOf ||
163
163
  ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
@@ -172,7 +172,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
172
172
  d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
173
173
  };
174
174
  })();
175
- var __read$i = (window && window.__read) || function (o, n) {
175
+ var __read$h = (window && window.__read) || function (o, n) {
176
176
  var m = typeof Symbol === "function" && o[Symbol.iterator];
177
177
  if (!m) return o;
178
178
  var i = m.call(o), r, ar = [], e;
@@ -192,7 +192,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
192
192
  * @private
193
193
  */
194
194
  var UrlOptions = /** @class */ (function (_super) {
195
- __extends$1i(UrlOptions, _super);
195
+ __extends$1j(UrlOptions, _super);
196
196
  function UrlOptions() {
197
197
  var _this = _super !== null && _super.apply(this, arguments) || this;
198
198
  _this.domain = undefined;
@@ -232,7 +232,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
232
232
  var self = this;
233
233
  var queryParamsString = Object.entries(self.options.queryParams)
234
234
  .map(function (_a) {
235
- var _b = __read$i(_a, 2), key = _b[0], value = _b[1];
235
+ var _b = __read$h(_a, 2), key = _b[0], value = _b[1];
236
236
  return "".concat(key, "=").concat(value);
237
237
  })
238
238
  .join("&");
@@ -263,7 +263,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
263
263
  return Url;
264
264
  }());
265
265
 
266
- var version$2 = "3.0.2";
266
+ var version$2 = "3.1.0";
267
267
 
268
268
  /**
269
269
  * A helper class that provides methods for getting various forms of the map controls current version.
@@ -373,7 +373,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
373
373
  eventTarget.addEventListener("keydown", dismissTooltip);
374
374
  };
375
375
 
376
- var __extends$1h = (window && window.__extends) || (function () {
376
+ var __extends$1i = (window && window.__extends) || (function () {
377
377
  var extendStatics = function (d, b) {
378
378
  extendStatics = Object.setPrototypeOf ||
379
379
  ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
@@ -423,7 +423,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
423
423
  * The options for adding a control to the map.
424
424
  */
425
425
  var ControlOptions = /** @class */ (function (_super) {
426
- __extends$1h(ControlOptions, _super);
426
+ __extends$1i(ControlOptions, _super);
427
427
  function ControlOptions() {
428
428
  var _this = _super !== null && _super.apply(this, arguments) || this;
429
429
  /**
@@ -567,7 +567,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
567
567
  EventEmitter: EventEmitter
568
568
  });
569
569
 
570
- var __extends$1g = (window && window.__extends) || (function () {
570
+ var __extends$1h = (window && window.__extends) || (function () {
571
571
  var extendStatics = function (d, b) {
572
572
  extendStatics = Object.setPrototypeOf ||
573
573
  ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
@@ -587,7 +587,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
587
587
  * Implements control interface and provides support for automatic styling based on the map style.
588
588
  */
589
589
  var ControlBase = /** @class */ (function (_super) {
590
- __extends$1g(ControlBase, _super);
590
+ __extends$1h(ControlBase, _super);
591
591
  function ControlBase() {
592
592
  var _this = _super !== null && _super.apply(this, arguments) || this;
593
593
  /**
@@ -689,7 +689,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
689
689
  return ControlBase;
690
690
  }(EventEmitter));
691
691
 
692
- var __extends$1f = (window && window.__extends) || (function () {
692
+ var __extends$1g = (window && window.__extends) || (function () {
693
693
  var extendStatics = function (d, b) {
694
694
  extendStatics = Object.setPrototypeOf ||
695
695
  ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
@@ -708,7 +708,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
708
708
  * The options for a CompassControl object.
709
709
  */
710
710
  var CompassControlOptions = /** @class */ (function (_super) {
711
- __extends$1f(CompassControlOptions, _super);
711
+ __extends$1g(CompassControlOptions, _super);
712
712
  function CompassControlOptions() {
713
713
  var _this = _super !== null && _super.apply(this, arguments) || this;
714
714
  /**
@@ -733,7 +733,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
733
733
  return CompassControlOptions;
734
734
  }(Options));
735
735
 
736
- var __extends$1e = (window && window.__extends) || (function () {
736
+ var __extends$1f = (window && window.__extends) || (function () {
737
737
  var extendStatics = function (d, b) {
738
738
  extendStatics = Object.setPrototypeOf ||
739
739
  ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
@@ -752,7 +752,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
752
752
  * A control for changing the rotation of the map.
753
753
  */
754
754
  var CompassControl = /** @class */ (function (_super) {
755
- __extends$1e(CompassControl, _super);
755
+ __extends$1f(CompassControl, _super);
756
756
  /**
757
757
  * Constructs a CompassControl.
758
758
  * @param options The options for the control.
@@ -815,6 +815,16 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
815
815
  grid.classList.add("hidden-accessible-element");
816
816
  }
817
817
  });
818
+ // Dismiss the grid when esc key is pressed on the reset button and the tooltip is not visible
819
+ rotationButton.addEventListener("keydown", function (event) {
820
+ if ((event.key === "Escape" || event.key === "Esc") &&
821
+ (container === null || container === void 0 ? void 0 : container.classList.contains("in-use")) &&
822
+ (tooltip === null || tooltip === void 0 ? void 0 : tooltip.style.display) === "none") {
823
+ event.stopPropagation();
824
+ container.classList.remove("in-use");
825
+ grid.classList.add("hidden-accessible-element");
826
+ }
827
+ });
818
828
  // If the control's position will require inverting the element order
819
829
  // add them in the opposite order to preserve tabindex.
820
830
  if (options && CompassControl.InvertOrderPositions.includes(options.position)) {
@@ -920,7 +930,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
920
930
  return CompassControl;
921
931
  }(ControlBase));
922
932
 
923
- var __extends$1d = (window && window.__extends) || (function () {
933
+ var __extends$1e = (window && window.__extends) || (function () {
924
934
  var extendStatics = function (d, b) {
925
935
  extendStatics = Object.setPrototypeOf ||
926
936
  ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
@@ -939,7 +949,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
939
949
  * The options for a PitchControl object.
940
950
  */
941
951
  var PitchControlOptions = /** @class */ (function (_super) {
942
- __extends$1d(PitchControlOptions, _super);
952
+ __extends$1e(PitchControlOptions, _super);
943
953
  function PitchControlOptions() {
944
954
  var _this = _super !== null && _super.apply(this, arguments) || this;
945
955
  /**
@@ -964,7 +974,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
964
974
  return PitchControlOptions;
965
975
  }(Options));
966
976
 
967
- var __extends$1c = (window && window.__extends) || (function () {
977
+ var __extends$1d = (window && window.__extends) || (function () {
968
978
  var extendStatics = function (d, b) {
969
979
  extendStatics = Object.setPrototypeOf ||
970
980
  ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
@@ -983,7 +993,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
983
993
  * A control for changing the pitch of the map.
984
994
  */
985
995
  var PitchControl = /** @class */ (function (_super) {
986
- __extends$1c(PitchControl, _super);
996
+ __extends$1d(PitchControl, _super);
987
997
  /**
988
998
  * Constructs a PitchControl.
989
999
  * @param options The options for the control.
@@ -1076,6 +1086,16 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
1076
1086
  grid.classList.add("hidden-accessible-element");
1077
1087
  }
1078
1088
  });
1089
+ // Dismiss the grid when esc key is pressed on the reset button and the tooltip is not visible
1090
+ pitchButton.addEventListener("keydown", function (event) {
1091
+ if ((event.key === "Escape" || event.key === "Esc") &&
1092
+ (container === null || container === void 0 ? void 0 : container.classList.contains("in-use")) &&
1093
+ (tooltip === null || tooltip === void 0 ? void 0 : tooltip.style.display) === "none") {
1094
+ event.stopPropagation();
1095
+ container.classList.remove("in-use");
1096
+ grid.classList.add("hidden-accessible-element");
1097
+ }
1098
+ });
1079
1099
  // If the control's position will require inverting the element order
1080
1100
  // add them in the opposite order to preserve tabindex.
1081
1101
  if (options && PitchControl.INVERT_ORDER_POSITIONS.includes(options.position)) {
@@ -1194,6 +1214,74 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
1194
1214
  return PitchControl;
1195
1215
  }(ControlBase));
1196
1216
 
1217
+ var __extends$1c = (window && window.__extends) || (function () {
1218
+ var extendStatics = function (d, b) {
1219
+ extendStatics = Object.setPrototypeOf ||
1220
+ ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
1221
+ function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
1222
+ return extendStatics(d, b);
1223
+ };
1224
+ return function (d, b) {
1225
+ if (typeof b !== "function" && b !== null)
1226
+ throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
1227
+ extendStatics(d, b);
1228
+ function __() { this.constructor = d; }
1229
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
1230
+ };
1231
+ })();
1232
+ /**
1233
+ * A control to display a scale bar on the map.
1234
+ */
1235
+ var ScaleControl = /** @class */ (function (_super) {
1236
+ __extends$1c(ScaleControl, _super);
1237
+ /**
1238
+ * A control to displays a scale bar relative to the pixel resolution at the center of the map.
1239
+ * @param options Options for defining how the control is rendered and functions.
1240
+ */
1241
+ function ScaleControl(options) {
1242
+ var _this = _super.call(this) || this;
1243
+ _this.map = null;
1244
+ _this.control = new maplibregl.ScaleControl({
1245
+ maxWidth: options === null || options === void 0 ? void 0 : options.maxWidth,
1246
+ unit: options === null || options === void 0 ? void 0 : options.unit
1247
+ });
1248
+ return _this;
1249
+ }
1250
+ /**
1251
+ * Initialization method for the control which is called when added to the map.
1252
+ * @param map The map that the control will be added to.
1253
+ * @param options The ControlOptions for this control.
1254
+ * @return An HTMLElement to be placed on the map for the control.
1255
+ */
1256
+ ScaleControl.prototype.onAdd = function (map, options) {
1257
+ var _a, _b, _c;
1258
+ this.map = map;
1259
+ (_b = (_a = this.map) === null || _a === void 0 ? void 0 : _a._getMap()) === null || _b === void 0 ? void 0 : _b.addControl(this.control);
1260
+ var container = this.buildContainer(map, exports.ControlStyle.auto, "Scale Bar");
1261
+ container.appendChild((_c = this.control) === null || _c === void 0 ? void 0 : _c._container);
1262
+ return container;
1263
+ };
1264
+ /**
1265
+ * Method that is called when the control is removed from the map. Should perform any necessary cleanup for the
1266
+ * control.
1267
+ */
1268
+ ScaleControl.prototype.onRemove = function () {
1269
+ var _a, _b;
1270
+ _super.prototype.onRemove.call(this);
1271
+ (_b = (_a = this.map) === null || _a === void 0 ? void 0 : _a._getMap()) === null || _b === void 0 ? void 0 : _b.removeControl(this.control);
1272
+ this.map = null;
1273
+ };
1274
+ /**
1275
+ * Set the scale's unit of the distance
1276
+ * @param unit - Unit of the distance (`"imperial"`, `"metric"` or `"nautical"`).
1277
+ */
1278
+ ScaleControl.prototype.setUnit = function (unit) {
1279
+ var _a;
1280
+ (_a = this.control) === null || _a === void 0 ? void 0 : _a.setUnit(unit);
1281
+ };
1282
+ return ScaleControl;
1283
+ }(ControlBase));
1284
+
1197
1285
  var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
1198
1286
 
1199
1287
  function getDefaultExportFromCjs (x) {
@@ -4809,7 +4897,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
4809
4897
  if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
4810
4898
  }
4811
4899
  };
4812
- var __read$h = (window && window.__read) || function (o, n) {
4900
+ var __read$g = (window && window.__read) || function (o, n) {
4813
4901
  var m = typeof Symbol === "function" && o[Symbol.iterator];
4814
4902
  if (!m) return o;
4815
4903
  var i = m.call(o), r, ar = [], e;
@@ -4990,7 +5078,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
4990
5078
  image_1.src = newSrc;
4991
5079
  }
4992
5080
  Object.entries(this.styleButtons).forEach(function (_a) {
4993
- var _b = __read$h(_a, 2), buttonStyleName = _b[0], button = _b[1];
5081
+ var _b = __read$g(_a, 2), buttonStyleName = _b[0], button = _b[1];
4994
5082
  return button.setAttribute('aria-current', buttonStyleName === styleName ? 'true' : 'false');
4995
5083
  });
4996
5084
  this.map.styles.definitions().then(function (mapConfiguration) {
@@ -5079,7 +5167,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
5079
5167
  _this.map.setStyle({ style: name });
5080
5168
  }
5081
5169
  Object.entries(_this.styleButtons).forEach(function (_a) {
5082
- var _b = __read$h(_a, 2), styleName = _b[0], button = _b[1];
5170
+ var _b = __read$g(_a, 2), styleName = _b[0], button = _b[1];
5083
5171
  return button.setAttribute('aria-current', styleName === name ? 'true' : 'false');
5084
5172
  });
5085
5173
  }
@@ -5171,7 +5259,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
5171
5259
  });
5172
5260
  var targetStyleName = this.map.getStyle().style;
5173
5261
  Object.entries(this.styleButtons).forEach(function (_a) {
5174
- var _b = __read$h(_a, 2), styleName = _b[0], button = _b[1];
5262
+ var _b = __read$g(_a, 2), styleName = _b[0], button = _b[1];
5175
5263
  return button.setAttribute('aria-current', styleName === targetStyleName ? 'true' : 'false');
5176
5264
  });
5177
5265
  };
@@ -5432,7 +5520,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
5432
5520
  d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
5433
5521
  };
5434
5522
  })();
5435
- var __values$k = (window && window.__values) || function(o) {
5523
+ var __values$j = (window && window.__values) || function(o) {
5436
5524
  var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
5437
5525
  if (m) return m.call(o);
5438
5526
  if (o && typeof o.length === "number") return {
@@ -5503,7 +5591,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
5503
5591
  // legend table contents
5504
5592
  var tr2 = document.createElement("tr");
5505
5593
  try {
5506
- for (var _c = __values$k(this.table), _d = _c.next(); !_d.done; _d = _c.next()) {
5594
+ for (var _c = __values$j(this.table), _d = _c.next(); !_d.done; _d = _c.next()) {
5507
5595
  var col = _d.value;
5508
5596
  var data = document.createElement("td");
5509
5597
  if (col === "Fast" || col === "Slow") {
@@ -5516,7 +5604,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
5516
5604
  data.setAttribute("aria-label", "Traffic Legend");
5517
5605
  data.setAttribute("role", "img");
5518
5606
  try {
5519
- for (var col_1 = (e_2 = void 0, __values$k(col)), col_1_1 = col_1.next(); !col_1_1.done; col_1_1 = col_1.next()) {
5607
+ for (var col_1 = (e_2 = void 0, __values$j(col)), col_1_1 = col_1.next(); !col_1_1.done; col_1_1 = col_1.next()) {
5520
5608
  var color = col_1_1.value;
5521
5609
  var div = document.createElement("div");
5522
5610
  div.classList.add(color);
@@ -6452,7 +6540,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
6452
6540
  return Point;
6453
6541
  }());
6454
6542
 
6455
- var __read$g = (window && window.__read) || function (o, n) {
6543
+ var __read$f = (window && window.__read) || function (o, n) {
6456
6544
  var m = typeof Symbol === "function" && o[Symbol.iterator];
6457
6545
  if (!m) return o;
6458
6546
  var i = m.call(o), r, ar = [], e;
@@ -6468,7 +6556,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
6468
6556
  }
6469
6557
  return ar;
6470
6558
  };
6471
- var __values$j = (window && window.__values) || function(o) {
6559
+ var __values$i = (window && window.__values) || function(o) {
6472
6560
  var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
6473
6561
  if (m) return m.call(o);
6474
6562
  if (o && typeof o.length === "number") return {
@@ -7443,8 +7531,8 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
7443
7531
  if (k + 1 >= coords.length) {
7444
7532
  continue;
7445
7533
  }
7446
- var _a = __read$g(coords[k], 2), lon1 = _a[0], lat1 = _a[1];
7447
- var _b = __read$g(coords[k + 1], 2), lon2 = _b[0], lat2 = _b[1];
7534
+ var _a = __read$f(coords[k], 2), lon1 = _a[0], lat1 = _a[1];
7535
+ var _b = __read$f(coords[k + 1], 2), lon2 = _b[0], lat2 = _b[1];
7448
7536
  // split the line by antimeridian
7449
7537
  // and break geodesic into two line segments
7450
7538
  if (Math.abs(lon2 - lon1) > 180.0) {
@@ -7515,8 +7603,8 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
7515
7603
  if (k + 1 >= geodesic.length) {
7516
7604
  continue;
7517
7605
  }
7518
- var _a = __read$g(geodesic[k], 2), lon1 = _a[0], lat1 = _a[1];
7519
- var _b = __read$g(geodesic[k + 1], 2), lon2 = _b[0], lat2 = _b[1];
7606
+ var _a = __read$f(geodesic[k], 2), lon1 = _a[0], lat1 = _a[1];
7607
+ var _b = __read$f(geodesic[k + 1], 2), lon2 = _b[0], lat2 = _b[1];
7520
7608
  // split the line by antimeridian
7521
7609
  // and break geodesic into two line segments
7522
7610
  if (Math.abs(lon2 - lon1) > 180.0) {
@@ -7727,7 +7815,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
7727
7815
  function getPixelHeading(origin, destination) {
7728
7816
  origin = getPosition(origin);
7729
7817
  destination = getPosition(destination);
7730
- var _a = __read$g(mercatorPositionsToPixels([origin, destination], 21), 2), p1 = _a[0], p2 = _a[1];
7818
+ var _a = __read$f(mercatorPositionsToPixels([origin, destination], 21), 2), p1 = _a[0], p2 = _a[1];
7731
7819
  var dx = (p2[0] - p1[0]);
7732
7820
  var dy = (p1[1] - p2[1]);
7733
7821
  var alpha = ((5 / 2 * Math.PI) - Math.atan2(dy, dx)) * INV_PI_BY_180 % 360;
@@ -8274,7 +8362,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
8274
8362
  });
8275
8363
  var lower = [];
8276
8364
  try {
8277
- for (var positions_1 = __values$j(positions), positions_1_1 = positions_1.next(); !positions_1_1.done; positions_1_1 = positions_1.next()) {
8365
+ for (var positions_1 = __values$i(positions), positions_1_1 = positions_1.next(); !positions_1_1.done; positions_1_1 = positions_1.next()) {
8278
8366
  var position = positions_1_1.value;
8279
8367
  while (lower.length >= 2 && _cross(lower[lower.length - 2], lower[lower.length - 1], position) <= 0) {
8280
8368
  lower.pop();
@@ -8783,7 +8871,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
8783
8871
  d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
8784
8872
  };
8785
8873
  })();
8786
- var __values$i = (window && window.__values) || function(o) {
8874
+ var __values$h = (window && window.__values) || function(o) {
8787
8875
  var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
8788
8876
  if (m) return m.call(o);
8789
8877
  if (o && typeof o.length === "number") return {
@@ -8870,7 +8958,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
8870
8958
  else if (geoType === "MultiLineString") {
8871
8959
  var pos = positions;
8872
8960
  try {
8873
- for (var pos_1 = __values$i(pos), pos_1_1 = pos_1.next(); !pos_1_1.done; pos_1_1 = pos_1.next()) {
8961
+ for (var pos_1 = __values$h(pos), pos_1_1 = pos_1.next(); !pos_1_1.done; pos_1_1 = pos_1.next()) {
8874
8962
  var p = pos_1_1.value;
8875
8963
  bbox = BoundingBox.merge(bbox, BoundingBox.fromPositions(p));
8876
8964
  }
@@ -8886,7 +8974,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
8886
8974
  else if (geoType === "MultiPolygon") {
8887
8975
  var pos = positions;
8888
8976
  try {
8889
- for (var pos_2 = __values$i(pos), pos_2_1 = pos_2.next(); !pos_2_1.done; pos_2_1 = pos_2.next()) {
8977
+ for (var pos_2 = __values$h(pos), pos_2_1 = pos_2.next(); !pos_2_1.done; pos_2_1 = pos_2.next()) {
8890
8978
  var p1 = pos_2_1.value;
8891
8979
  // only need to check the exterior ring of Polygon
8892
8980
  bbox = BoundingBox.merge(bbox, BoundingBox.fromPositions(p1[0]));
@@ -9109,7 +9197,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
9109
9197
  d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
9110
9198
  };
9111
9199
  })();
9112
- var __values$h = (window && window.__values) || function(o) {
9200
+ var __values$g = (window && window.__values) || function(o) {
9113
9201
  var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
9114
9202
  if (m) return m.call(o);
9115
9203
  if (o && typeof o.length === "number") return {
@@ -9533,7 +9621,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
9533
9621
  var bounds = null;
9534
9622
  if (Array.isArray(data) && data.length > 0) {
9535
9623
  try {
9536
- for (var data_1 = __values$h(data), data_1_1 = data_1.next(); !data_1_1.done; data_1_1 = data_1.next()) {
9624
+ for (var data_1 = __values$g(data), data_1_1 = data_1.next(); !data_1_1.done; data_1_1 = data_1.next()) {
9537
9625
  var datum = data_1_1.value;
9538
9626
  tempBounds = BoundingBox.fromData(datum);
9539
9627
  if (tempBounds != null) {
@@ -10106,7 +10194,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
10106
10194
  return SimplifyAP_1(points, tolerance, true);
10107
10195
  }
10108
10196
 
10109
- var __values$g = (window && window.__values) || function(o) {
10197
+ var __values$f = (window && window.__values) || function(o) {
10110
10198
  var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
10111
10199
  if (m) return m.call(o);
10112
10200
  if (o && typeof o.length === "number") return {
@@ -10166,7 +10254,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
10166
10254
  if (points && Array.isArray(points) && Array.isArray(points[0])) {
10167
10255
  var pos = [];
10168
10256
  try {
10169
- for (var points_1 = __values$g(points), points_1_1 = points_1.next(); !points_1_1.done; points_1_1 = points_1.next()) {
10257
+ for (var points_1 = __values$f(points), points_1_1 = points_1.next(); !points_1_1.done; points_1_1 = points_1.next()) {
10170
10258
  var subPoints = points_1_1.value;
10171
10259
  pos.push(this.transform(subPoints, transformMatrix, decimals));
10172
10260
  }
@@ -10541,6 +10629,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
10541
10629
  CompassControl: CompassControl,
10542
10630
  ControlBase: ControlBase,
10543
10631
  PitchControl: PitchControl,
10632
+ ScaleControl: ScaleControl,
10544
10633
  StyleControl: StyleControl,
10545
10634
  TrafficControl: TrafficControl,
10546
10635
  TrafficLegendControl: TrafficLegendControl,
@@ -10824,7 +10913,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
10824
10913
  d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
10825
10914
  };
10826
10915
  })();
10827
- var __values$f = (window && window.__values) || function(o) {
10916
+ var __values$e = (window && window.__values) || function(o) {
10828
10917
  var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
10829
10918
  if (m) return m.call(o);
10830
10919
  if (o && typeof o.length === "number") return {
@@ -11023,7 +11112,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
11023
11112
  var e_1, _a;
11024
11113
  var shapes = Array.isArray(shape) ? shape : [shape];
11025
11114
  try {
11026
- for (var shapes_1 = __values$f(shapes), shapes_1_1 = shapes_1.next(); !shapes_1_1.done; shapes_1_1 = shapes_1.next()) {
11115
+ for (var shapes_1 = __values$e(shapes), shapes_1_1 = shapes_1.next(); !shapes_1_1.done; shapes_1_1 = shapes_1.next()) {
11027
11116
  var s = shapes_1_1.value;
11028
11117
  if (typeof s === "number") {
11029
11118
  this._removeByIndex(s);
@@ -11050,7 +11139,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
11050
11139
  var e_2, _a;
11051
11140
  var ids = Array.isArray(id) ? id : [id];
11052
11141
  try {
11053
- for (var ids_1 = __values$f(ids), ids_1_1 = ids_1.next(); !ids_1_1.done; ids_1_1 = ids_1.next()) {
11142
+ for (var ids_1 = __values$e(ids), ids_1_1 = ids_1.next(); !ids_1_1.done; ids_1_1 = ids_1.next()) {
11054
11143
  var i = ids_1_1.value;
11055
11144
  this._removeById(i);
11056
11145
  }
@@ -11214,7 +11303,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
11214
11303
  data = Array.isArray(data) ? data : [data];
11215
11304
  if (typeof index !== "number") {
11216
11305
  try {
11217
- for (var data_1 = __values$f(data), data_1_1 = data_1.next(); !data_1_1.done; data_1_1 = data_1.next()) {
11306
+ for (var data_1 = __values$e(data), data_1_1 = data_1.next(); !data_1_1.done; data_1_1 = data_1.next()) {
11218
11307
  var d = data_1_1.value;
11219
11308
  this.shapes.push(d);
11220
11309
  this.shapesMap.set(d.getId(), this.shapes.length - 1);
@@ -11235,7 +11324,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
11235
11324
  }
11236
11325
  }
11237
11326
  try {
11238
- for (var data_2 = __values$f(data), data_2_1 = data_2.next(); !data_2_1.done; data_2_1 = data_2.next()) {
11327
+ for (var data_2 = __values$e(data), data_2_1 = data_2.next(); !data_2_1.done; data_2_1 = data_2.next()) {
11239
11328
  var d = data_2_1.value;
11240
11329
  d._setDataSource(this);
11241
11330
  }
@@ -12178,7 +12267,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
12178
12267
  if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
12179
12268
  }
12180
12269
  };
12181
- var __read$f = (window && window.__read) || function (o, n) {
12270
+ var __read$e = (window && window.__read) || function (o, n) {
12182
12271
  var m = typeof Symbol === "function" && o[Symbol.iterator];
12183
12272
  if (!m) return o;
12184
12273
  var i = m.call(o), r, ar = [], e;
@@ -12194,7 +12283,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
12194
12283
  }
12195
12284
  return ar;
12196
12285
  };
12197
- var __spreadArray$c = (window && window.__spreadArray) || function (to, from, pack) {
12286
+ var __spreadArray$b = (window && window.__spreadArray) || function (to, from, pack) {
12198
12287
  if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
12199
12288
  if (ar || !(i in from)) {
12200
12289
  if (!ar) ar = Array.prototype.slice.call(from, 0, i);
@@ -12231,7 +12320,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
12231
12320
  var bubbleFeature = curRenderedShape instanceof Shape ? curRenderedShape.toJson() : curRenderedShape;
12232
12321
  var indicator = new AccessibleIndicator({ positionInSet: idx + 1, setSize: renderedShapes.length });
12233
12322
  var element = indicator.getElement();
12234
- var _a = __read$f(_this.map.positionsToPixels([_this.getFirstCoordinate(bubbleFeature.geometry.coordinates)]), 1), pixel = _a[0];
12323
+ var _a = __read$e(_this.map.positionsToPixels([_this.getFirstCoordinate(bubbleFeature.geometry.coordinates)]), 1), pixel = _a[0];
12235
12324
  element.addEventListener('focusin', function (event) {
12236
12325
  _this.accessibleIndicator.filter(function (i) { return i !== indicator; }).forEach(function (indicator) { return indicator.remove(); });
12237
12326
  // insert previous and next popups
@@ -12403,7 +12492,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
12403
12492
  return undefined;
12404
12493
  }
12405
12494
  var mapConfiguration = this.map.getServiceOptions().mapConfiguration;
12406
- return __spreadArray$c(__spreadArray$c([], __read$f(this.map.getCamera().bounds), false), [
12495
+ return __spreadArray$b(__spreadArray$b([], __read$e(this.map.getCamera().bounds), false), [
12407
12496
  this.map.getCamera().zoom,
12408
12497
  this.map.getCamera().pitch,
12409
12498
  this.map.getStyle().style,
@@ -13543,42 +13632,6 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
13543
13632
  d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
13544
13633
  };
13545
13634
  })();
13546
- var __values$e = (window && window.__values) || function(o) {
13547
- var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
13548
- if (m) return m.call(o);
13549
- if (o && typeof o.length === "number") return {
13550
- next: function () {
13551
- if (o && i >= o.length) o = void 0;
13552
- return { value: o && o[i++], done: !o };
13553
- }
13554
- };
13555
- throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
13556
- };
13557
- var __read$e = (window && window.__read) || function (o, n) {
13558
- var m = typeof Symbol === "function" && o[Symbol.iterator];
13559
- if (!m) return o;
13560
- var i = m.call(o), r, ar = [], e;
13561
- try {
13562
- while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);
13563
- }
13564
- catch (error) { e = { error: error }; }
13565
- finally {
13566
- try {
13567
- if (r && !r.done && (m = i["return"])) m.call(i);
13568
- }
13569
- finally { if (e) throw e.error; }
13570
- }
13571
- return ar;
13572
- };
13573
- var __spreadArray$b = (window && window.__spreadArray) || function (to, from, pack) {
13574
- if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
13575
- if (ar || !(i in from)) {
13576
- if (!ar) ar = Array.prototype.slice.call(from, 0, i);
13577
- ar[i] = from[i];
13578
- }
13579
- }
13580
- return to.concat(ar || Array.prototype.slice.call(from));
13581
- };
13582
13635
  /**
13583
13636
  * Options used when rendering Polygon and MultiPolygon objects in a PolygonLayer.
13584
13637
  */
@@ -13614,50 +13667,6 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
13614
13667
  _this.fillPattern = undefined;
13615
13668
  return _this;
13616
13669
  }
13617
- /**
13618
- * Override the standard merge behavior to set fillPattern and fillColor to be mutually exclusive
13619
- * @internal
13620
- */
13621
- PolygonLayerOptions.prototype.merge = function () {
13622
- var e_1, _a;
13623
- var valueList = [];
13624
- for (var _i = 0; _i < arguments.length; _i++) {
13625
- valueList[_i] = arguments[_i];
13626
- }
13627
- var isNewColorSet = false;
13628
- var isNewPatternSet = false;
13629
- try {
13630
- for (var valueList_1 = __values$e(valueList), valueList_1_1 = valueList_1.next(); !valueList_1_1.done; valueList_1_1 = valueList_1.next()) {
13631
- var value = valueList_1_1.value;
13632
- if (value) {
13633
- if (value.hasOwnProperty("fillColor")) {
13634
- isNewColorSet = true;
13635
- isNewPatternSet = false;
13636
- }
13637
- else if (value.hasOwnProperty("fillPattern")) {
13638
- isNewPatternSet = true;
13639
- isNewColorSet = false;
13640
- }
13641
- }
13642
- }
13643
- }
13644
- catch (e_1_1) { e_1 = { error: e_1_1 }; }
13645
- finally {
13646
- try {
13647
- if (valueList_1_1 && !valueList_1_1.done && (_a = valueList_1.return)) _a.call(valueList_1);
13648
- }
13649
- finally { if (e_1) throw e_1.error; }
13650
- }
13651
- // Then execute the standard merge behavior.
13652
- var merged = _super.prototype.merge.apply(this, __spreadArray$b([], __read$e(valueList), false));
13653
- if (isNewColorSet) {
13654
- merged.fillPattern = undefined;
13655
- }
13656
- else if (isNewPatternSet) {
13657
- merged.fillColor = undefined;
13658
- }
13659
- return merged;
13660
- };
13661
13670
  return PolygonLayerOptions;
13662
13671
  }(LayerOptions$1));
13663
13672
 
@@ -13709,6 +13718,8 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
13709
13718
  };
13710
13719
  /**
13711
13720
  * Sets the options of the polygon layer.
13721
+ * When `fillPattern` is set, `fillColor` will be ignored.
13722
+ * To set `fillColor`, make sure `fillPattern` is set to `undefined`.
13712
13723
  * @param newOptions The new options of the polygon layer.
13713
13724
  */
13714
13725
  PolygonLayer.prototype.setOptions = function (options) {
@@ -17609,8 +17620,11 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
17609
17620
  var domain = this.map.getServiceOptions().domain;
17610
17621
  var urlOptions = {
17611
17622
  domain: domain,
17612
- path: "search/address/reverse/json",
17613
- queryParams: __assign$6({ "api-version": "1.0", "language": options.style.language, "limit": 1, "query": "".concat(normalizeLatitude(options.position[1]), ",").concat(normalizeLongitude(options.position[0])) }, (options.style.view && { view: options.style.view }))
17623
+ path: "reverseGeocode",
17624
+ queryParams: __assign$6({ "api-version": "2023-06-01", "coordinates": "".concat(normalizeLongitude(options.position[0]), ",").concat(normalizeLatitude(options.position[1])) }, (options.style.view && { view: options.style.view })),
17625
+ headers: {
17626
+ "Accept-Language": options.style.language
17627
+ }
17614
17628
  };
17615
17629
  return new Url(((_a = this.map.authentication) === null || _a === void 0 ? void 0 : _a.signRequest(urlOptions)) || urlOptions).get();
17616
17630
  };
@@ -18816,12 +18830,13 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
18816
18830
  position: cam.center,
18817
18831
  style: style
18818
18832
  }).then(function (r) {
18833
+ var _a, _b, _c;
18819
18834
  var info = {};
18820
- if (r && r.addresses && r.addresses.length > 0) {
18821
- if (r.addresses[0].address) {
18822
- var a = r.addresses[0].address;
18823
- if (a.country) {
18824
- info.country = a.country;
18835
+ if (r && r.features && r.features.length > 0) {
18836
+ if ((_b = (_a = r.features[0]) === null || _a === void 0 ? void 0 : _a.properties) === null || _b === void 0 ? void 0 : _b.address) {
18837
+ var a = r.features[0].properties.address;
18838
+ if (a.countryRegion) {
18839
+ info.country = a.countryRegion.name;
18825
18840
  MapViewDescriptor._labelCache.cache(info.country, {
18826
18841
  source: [],
18827
18842
  labelType: "country",
@@ -18829,8 +18844,8 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
18829
18844
  minZoom: 0
18830
18845
  }, cam.center, style.language);
18831
18846
  }
18832
- if (a.countrySubdivision) {
18833
- info.state = a.countrySubdivision;
18847
+ if (a.adminDistricts) {
18848
+ info.state = (_c = a.adminDistricts[0]) === null || _c === void 0 ? void 0 : _c.shortName;
18834
18849
  MapViewDescriptor._labelCache.cache(info.state, {
18835
18850
  source: [],
18836
18851
  labelType: "state",
@@ -18838,20 +18853,17 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
18838
18853
  minZoom: 4
18839
18854
  }, cam.center, style.language);
18840
18855
  }
18841
- if (a.municipality) {
18842
- info.city = a.municipality;
18843
- MapViewDescriptor._labelCache.cache(info.state, {
18856
+ if (a.locality) {
18857
+ info.city = a.locality;
18858
+ MapViewDescriptor._labelCache.cache(info.city, {
18844
18859
  source: [],
18845
18860
  labelType: "city",
18846
18861
  radius: 1000,
18847
18862
  minZoom: 10
18848
18863
  }, cam.center, style.language);
18849
18864
  }
18850
- if (a.streetNameAndNumber) {
18851
- info.road = a.streetNameAndNumber;
18852
- }
18853
- else if (a.street) {
18854
- info.road = a.street;
18865
+ if (a.addressLine) {
18866
+ info.road = a.addressLine;
18855
18867
  }
18856
18868
  }
18857
18869
  }
@@ -23314,7 +23326,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
23314
23326
  return CopyrightDelegate;
23315
23327
  }());
23316
23328
 
23317
- /*! @azure/msal-browser v2.38.1 2023-08-07 */
23329
+ /*! @azure/msal-browser v2.38.3 2023-10-27 */
23318
23330
  /*! *****************************************************************************
23319
23331
  Copyright (c) Microsoft Corporation.
23320
23332
 
@@ -23428,7 +23440,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
23428
23440
  return ar;
23429
23441
  }
23430
23442
 
23431
- /*! @azure/msal-common v13.2.1 2023-08-07 */
23443
+ /*! @azure/msal-common v13.3.1 2023-10-27 */
23432
23444
  /*! *****************************************************************************
23433
23445
  Copyright (c) Microsoft Corporation.
23434
23446
 
@@ -23515,7 +23527,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
23515
23527
  return r;
23516
23528
  }
23517
23529
 
23518
- /*! @azure/msal-common v13.2.1 2023-08-07 */
23530
+ /*! @azure/msal-common v13.3.1 2023-10-27 */
23519
23531
 
23520
23532
  /*
23521
23533
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -23888,7 +23900,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
23888
23900
  JsonTypes["Pop"] = "pop";
23889
23901
  })(JsonTypes || (JsonTypes = {}));
23890
23902
 
23891
- /*! @azure/msal-common v13.2.1 2023-08-07 */
23903
+ /*! @azure/msal-common v13.3.1 2023-10-27 */
23892
23904
 
23893
23905
  /*
23894
23906
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -23944,7 +23956,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
23944
23956
  return AuthError;
23945
23957
  }(Error));
23946
23958
 
23947
- /*! @azure/msal-common v13.2.1 2023-08-07 */
23959
+ /*! @azure/msal-common v13.3.1 2023-10-27 */
23948
23960
 
23949
23961
  /*
23950
23962
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -24019,7 +24031,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
24019
24031
  }
24020
24032
  };
24021
24033
 
24022
- /*! @azure/msal-common v13.2.1 2023-08-07 */
24034
+ /*! @azure/msal-common v13.3.1 2023-10-27 */
24023
24035
 
24024
24036
  /*
24025
24037
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -24534,7 +24546,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
24534
24546
  return ClientAuthError;
24535
24547
  }(AuthError));
24536
24548
 
24537
- /*! @azure/msal-common v13.2.1 2023-08-07 */
24549
+ /*! @azure/msal-common v13.3.1 2023-10-27 */
24538
24550
 
24539
24551
  /*
24540
24552
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -24659,7 +24671,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
24659
24671
  return StringUtils;
24660
24672
  }());
24661
24673
 
24662
- /*! @azure/msal-common v13.2.1 2023-08-07 */
24674
+ /*! @azure/msal-common v13.3.1 2023-10-27 */
24663
24675
 
24664
24676
  /*
24665
24677
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -24849,12 +24861,12 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
24849
24861
  return Logger;
24850
24862
  }());
24851
24863
 
24852
- /*! @azure/msal-common v13.2.1 2023-08-07 */
24864
+ /*! @azure/msal-common v13.3.1 2023-10-27 */
24853
24865
  /* eslint-disable header/header */
24854
24866
  var name$1 = "@azure/msal-common";
24855
- var version$1 = "13.2.1";
24867
+ var version$1 = "13.3.1";
24856
24868
 
24857
- /*! @azure/msal-common v13.2.1 2023-08-07 */
24869
+ /*! @azure/msal-common v13.3.1 2023-10-27 */
24858
24870
  /*
24859
24871
  * Copyright (c) Microsoft Corporation. All rights reserved.
24860
24872
  * Licensed under the MIT License.
@@ -24875,7 +24887,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
24875
24887
  AzureCloudInstance["AzureUsGovernment"] = "https://login.microsoftonline.us";
24876
24888
  })(AzureCloudInstance || (AzureCloudInstance = {}));
24877
24889
 
24878
- /*! @azure/msal-common v13.2.1 2023-08-07 */
24890
+ /*! @azure/msal-common v13.3.1 2023-10-27 */
24879
24891
 
24880
24892
  /*
24881
24893
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -25140,7 +25152,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
25140
25152
  return ClientConfigurationError;
25141
25153
  }(ClientAuthError));
25142
25154
 
25143
- /*! @azure/msal-common v13.2.1 2023-08-07 */
25155
+ /*! @azure/msal-common v13.3.1 2023-10-27 */
25144
25156
 
25145
25157
  /*
25146
25158
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -25339,7 +25351,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
25339
25351
  return ScopeSet;
25340
25352
  }());
25341
25353
 
25342
- /*! @azure/msal-common v13.2.1 2023-08-07 */
25354
+ /*! @azure/msal-common v13.3.1 2023-10-27 */
25343
25355
 
25344
25356
  /*
25345
25357
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -25377,7 +25389,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
25377
25389
  };
25378
25390
  }
25379
25391
 
25380
- /*! @azure/msal-common v13.2.1 2023-08-07 */
25392
+ /*! @azure/msal-common v13.3.1 2023-10-27 */
25381
25393
  /*
25382
25394
  * Copyright (c) Microsoft Corporation. All rights reserved.
25383
25395
  * Licensed under the MIT License.
@@ -25393,7 +25405,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
25393
25405
  AuthorityType[AuthorityType["Ciam"] = 3] = "Ciam";
25394
25406
  })(AuthorityType || (AuthorityType = {}));
25395
25407
 
25396
- /*! @azure/msal-common v13.2.1 2023-08-07 */
25408
+ /*! @azure/msal-common v13.3.1 2023-10-27 */
25397
25409
 
25398
25410
  /*
25399
25411
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -25632,7 +25644,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
25632
25644
  return AccountEntity;
25633
25645
  }());
25634
25646
 
25635
- /*! @azure/msal-common v13.2.1 2023-08-07 */
25647
+ /*! @azure/msal-common v13.3.1 2023-10-27 */
25636
25648
 
25637
25649
  /*
25638
25650
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -25684,7 +25696,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
25684
25696
  return AuthToken;
25685
25697
  }());
25686
25698
 
25687
- /*! @azure/msal-common v13.2.1 2023-08-07 */
25699
+ /*! @azure/msal-common v13.3.1 2023-10-27 */
25688
25700
 
25689
25701
  /*
25690
25702
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -26212,6 +26224,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
26212
26224
  * @param inputRealm
26213
26225
  */
26214
26226
  CacheManager.prototype.getIdToken = function (account, tokenKeys) {
26227
+ var _this = this;
26215
26228
  this.commonLogger.trace("CacheManager - getIdToken called");
26216
26229
  var idTokenFilter = {
26217
26230
  homeAccountId: account.homeAccountId,
@@ -26227,7 +26240,11 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
26227
26240
  return null;
26228
26241
  }
26229
26242
  else if (numIdTokens > 1) {
26230
- throw ClientAuthError.createMultipleMatchingTokensInCacheError();
26243
+ this.commonLogger.info("CacheManager:getIdToken - Multiple id tokens found, clearing them");
26244
+ idTokens.forEach(function (idToken) {
26245
+ _this.removeIdToken(idToken.generateCredentialKey());
26246
+ });
26247
+ return null;
26231
26248
  }
26232
26249
  this.commonLogger.info("CacheManager:getIdToken - Returning id token");
26233
26250
  return idTokens[0];
@@ -26328,7 +26345,11 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
26328
26345
  return null;
26329
26346
  }
26330
26347
  else if (numAccessTokens > 1) {
26331
- throw ClientAuthError.createMultipleMatchingTokensInCacheError();
26348
+ this.commonLogger.info("CacheManager:getAccessToken - Multiple access tokens found, clearing them");
26349
+ accessTokens.forEach(function (accessToken) {
26350
+ _this.removeAccessToken(accessToken.generateCredentialKey());
26351
+ });
26352
+ return null;
26332
26353
  }
26333
26354
  this.commonLogger.info("CacheManager:getAccessToken - Returning access token");
26334
26355
  return accessTokens[0];
@@ -26732,7 +26753,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
26732
26753
  return DefaultStorageClass;
26733
26754
  }(CacheManager));
26734
26755
 
26735
- /*! @azure/msal-common v13.2.1 2023-08-07 */
26756
+ /*! @azure/msal-common v13.3.1 2023-10-27 */
26736
26757
 
26737
26758
  /*
26738
26759
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -26829,7 +26850,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
26829
26850
  return __assign$4({ clientCapabilities: [], azureCloudOptions: DEFAULT_AZURE_CLOUD_OPTIONS, skipAuthorityMetadataCache: false }, authOptions);
26830
26851
  }
26831
26852
 
26832
- /*! @azure/msal-common v13.2.1 2023-08-07 */
26853
+ /*! @azure/msal-common v13.3.1 2023-10-27 */
26833
26854
 
26834
26855
  /*
26835
26856
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -26849,7 +26870,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
26849
26870
  return ServerError;
26850
26871
  }(AuthError));
26851
26872
 
26852
- /*! @azure/msal-common v13.2.1 2023-08-07 */
26873
+ /*! @azure/msal-common v13.3.1 2023-10-27 */
26853
26874
 
26854
26875
  /*
26855
26876
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -26945,7 +26966,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
26945
26966
  return ThrottlingUtils;
26946
26967
  }());
26947
26968
 
26948
- /*! @azure/msal-common v13.2.1 2023-08-07 */
26969
+ /*! @azure/msal-common v13.3.1 2023-10-27 */
26949
26970
 
26950
26971
  /*
26951
26972
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -26994,7 +27015,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
26994
27015
  return NetworkManager;
26995
27016
  }());
26996
27017
 
26997
- /*! @azure/msal-common v13.2.1 2023-08-07 */
27018
+ /*! @azure/msal-common v13.3.1 2023-10-27 */
26998
27019
  /*
26999
27020
  * Copyright (c) Microsoft Corporation. All rights reserved.
27000
27021
  * Licensed under the MIT License.
@@ -27005,7 +27026,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
27005
27026
  CcsCredentialType["UPN"] = "UPN";
27006
27027
  })(CcsCredentialType || (CcsCredentialType = {}));
27007
27028
 
27008
- /*! @azure/msal-common v13.2.1 2023-08-07 */
27029
+ /*! @azure/msal-common v13.3.1 2023-10-27 */
27009
27030
 
27010
27031
  /*
27011
27032
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -27096,7 +27117,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
27096
27117
  return RequestValidator;
27097
27118
  }());
27098
27119
 
27099
- /*! @azure/msal-common v13.2.1 2023-08-07 */
27120
+ /*! @azure/msal-common v13.3.1 2023-10-27 */
27100
27121
 
27101
27122
  /*
27102
27123
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -27474,7 +27495,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
27474
27495
  return RequestParameterBuilder;
27475
27496
  }());
27476
27497
 
27477
- /*! @azure/msal-common v13.2.1 2023-08-07 */
27498
+ /*! @azure/msal-common v13.3.1 2023-10-27 */
27478
27499
 
27479
27500
  /*
27480
27501
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -27576,7 +27597,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
27576
27597
  return BaseClient;
27577
27598
  }());
27578
27599
 
27579
- /*! @azure/msal-common v13.2.1 2023-08-07 */
27600
+ /*! @azure/msal-common v13.3.1 2023-10-27 */
27580
27601
 
27581
27602
  /*
27582
27603
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -27714,7 +27735,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
27714
27735
  return CredentialEntity;
27715
27736
  }());
27716
27737
 
27717
- /*! @azure/msal-common v13.2.1 2023-08-07 */
27738
+ /*! @azure/msal-common v13.3.1 2023-10-27 */
27718
27739
 
27719
27740
  /*
27720
27741
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -27778,7 +27799,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
27778
27799
  return IdTokenEntity;
27779
27800
  }(CredentialEntity));
27780
27801
 
27781
- /*! @azure/msal-common v13.2.1 2023-08-07 */
27802
+ /*! @azure/msal-common v13.3.1 2023-10-27 */
27782
27803
  /*
27783
27804
  * Copyright (c) Microsoft Corporation. All rights reserved.
27784
27805
  * Licensed under the MIT License.
@@ -27828,7 +27849,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
27828
27849
  return TimeUtils;
27829
27850
  }());
27830
27851
 
27831
- /*! @azure/msal-common v13.2.1 2023-08-07 */
27852
+ /*! @azure/msal-common v13.3.1 2023-10-27 */
27832
27853
 
27833
27854
  /*
27834
27855
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -27942,7 +27963,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
27942
27963
  return AccessTokenEntity;
27943
27964
  }(CredentialEntity));
27944
27965
 
27945
- /*! @azure/msal-common v13.2.1 2023-08-07 */
27966
+ /*! @azure/msal-common v13.3.1 2023-10-27 */
27946
27967
 
27947
27968
  /*
27948
27969
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -28009,7 +28030,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
28009
28030
  return RefreshTokenEntity;
28010
28031
  }(CredentialEntity));
28011
28032
 
28012
- /*! @azure/msal-common v13.2.1 2023-08-07 */
28033
+ /*! @azure/msal-common v13.3.1 2023-10-27 */
28013
28034
 
28014
28035
  /*
28015
28036
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -28088,7 +28109,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
28088
28109
  return InteractionRequiredAuthError;
28089
28110
  }(AuthError));
28090
28111
 
28091
- /*! @azure/msal-common v13.2.1 2023-08-07 */
28112
+ /*! @azure/msal-common v13.3.1 2023-10-27 */
28092
28113
  /*
28093
28114
  * Copyright (c) Microsoft Corporation. All rights reserved.
28094
28115
  * Licensed under the MIT License.
@@ -28104,7 +28125,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
28104
28125
  return CacheRecord;
28105
28126
  }());
28106
28127
 
28107
- /*! @azure/msal-common v13.2.1 2023-08-07 */
28128
+ /*! @azure/msal-common v13.3.1 2023-10-27 */
28108
28129
 
28109
28130
  /*
28110
28131
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -28175,7 +28196,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
28175
28196
  return ProtocolUtils;
28176
28197
  }());
28177
28198
 
28178
- /*! @azure/msal-common v13.2.1 2023-08-07 */
28199
+ /*! @azure/msal-common v13.3.1 2023-10-27 */
28179
28200
 
28180
28201
  /*
28181
28202
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -28409,7 +28430,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
28409
28430
  return UrlString;
28410
28431
  }());
28411
28432
 
28412
- /*! @azure/msal-common v13.2.1 2023-08-07 */
28433
+ /*! @azure/msal-common v13.3.1 2023-10-27 */
28413
28434
  /*
28414
28435
  * Copyright (c) Microsoft Corporation. All rights reserved.
28415
28436
  * Licensed under the MIT License.
@@ -28613,6 +28634,10 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
28613
28634
  PerformanceEvents["UpdateCloudDiscoveryMetadataMeasurement"] = "updateCloudDiscoveryMetadataMeasurement";
28614
28635
  PerformanceEvents["UsernamePasswordClientAcquireToken"] = "usernamePasswordClientAcquireToken";
28615
28636
  PerformanceEvents["NativeMessageHandlerHandshake"] = "nativeMessageHandlerHandshake";
28637
+ /**
28638
+ * Cache operations
28639
+ */
28640
+ PerformanceEvents["ClearTokensAndKeysWithClaims"] = "clearTokensAndKeysWithClaims";
28616
28641
  })(PerformanceEvents || (PerformanceEvents = {}));
28617
28642
  /**
28618
28643
  * State of the performance event.
@@ -28638,7 +28663,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
28638
28663
  "status",
28639
28664
  ]);
28640
28665
 
28641
- /*! @azure/msal-common v13.2.1 2023-08-07 */
28666
+ /*! @azure/msal-common v13.3.1 2023-10-27 */
28642
28667
 
28643
28668
  /*
28644
28669
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -28747,7 +28772,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
28747
28772
  return PopTokenGenerator;
28748
28773
  }());
28749
28774
 
28750
- /*! @azure/msal-common v13.2.1 2023-08-07 */
28775
+ /*! @azure/msal-common v13.3.1 2023-10-27 */
28751
28776
 
28752
28777
  /*
28753
28778
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -28817,7 +28842,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
28817
28842
  return AppMetadataEntity;
28818
28843
  }());
28819
28844
 
28820
- /*! @azure/msal-common v13.2.1 2023-08-07 */
28845
+ /*! @azure/msal-common v13.3.1 2023-10-27 */
28821
28846
  /*
28822
28847
  * Copyright (c) Microsoft Corporation. All rights reserved.
28823
28848
  * Licensed under the MIT License.
@@ -28853,7 +28878,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
28853
28878
  return TokenCacheContext;
28854
28879
  }());
28855
28880
 
28856
- /*! @azure/msal-common v13.2.1 2023-08-07 */
28881
+ /*! @azure/msal-common v13.3.1 2023-10-27 */
28857
28882
 
28858
28883
  /*
28859
28884
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -29140,7 +29165,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
29140
29165
  return ResponseHandler;
29141
29166
  }());
29142
29167
 
29143
- /*! @azure/msal-common v13.2.1 2023-08-07 */
29168
+ /*! @azure/msal-common v13.3.1 2023-10-27 */
29144
29169
 
29145
29170
  /*
29146
29171
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -29618,7 +29643,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
29618
29643
  return AuthorizationCodeClient;
29619
29644
  }(BaseClient));
29620
29645
 
29621
- /*! @azure/msal-common v13.2.1 2023-08-07 */
29646
+ /*! @azure/msal-common v13.3.1 2023-10-27 */
29622
29647
 
29623
29648
  /*
29624
29649
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -29892,7 +29917,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
29892
29917
  return RefreshTokenClient;
29893
29918
  }(BaseClient));
29894
29919
 
29895
- /*! @azure/msal-common v13.2.1 2023-08-07 */
29920
+ /*! @azure/msal-common v13.3.1 2023-10-27 */
29896
29921
 
29897
29922
  /*
29898
29923
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -30022,7 +30047,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
30022
30047
  return SilentFlowClient;
30023
30048
  }(BaseClient));
30024
30049
 
30025
- /*! @azure/msal-common v13.2.1 2023-08-07 */
30050
+ /*! @azure/msal-common v13.3.1 2023-10-27 */
30026
30051
  /*
30027
30052
  * Copyright (c) Microsoft Corporation. All rights reserved.
30028
30053
  * Licensed under the MIT License.
@@ -30034,7 +30059,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
30034
30059
  response.hasOwnProperty("jwks_uri"));
30035
30060
  }
30036
30061
 
30037
- /*! @azure/msal-common v13.2.1 2023-08-07 */
30062
+ /*! @azure/msal-common v13.3.1 2023-10-27 */
30038
30063
  /*
30039
30064
  * Copyright (c) Microsoft Corporation. All rights reserved.
30040
30065
  * Licensed under the MIT License.
@@ -30043,7 +30068,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
30043
30068
  var EndpointMetadata = rawMetdataJSON.endpointMetadata;
30044
30069
  var InstanceDiscoveryMetadata = rawMetdataJSON.instanceDiscoveryMetadata;
30045
30070
 
30046
- /*! @azure/msal-common v13.2.1 2023-08-07 */
30071
+ /*! @azure/msal-common v13.3.1 2023-10-27 */
30047
30072
  /*
30048
30073
  * Copyright (c) Microsoft Corporation. All rights reserved.
30049
30074
  * Licensed under the MIT License.
@@ -30057,7 +30082,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
30057
30082
  ProtocolMode["OIDC"] = "OIDC";
30058
30083
  })(ProtocolMode || (ProtocolMode = {}));
30059
30084
 
30060
- /*! @azure/msal-common v13.2.1 2023-08-07 */
30085
+ /*! @azure/msal-common v13.3.1 2023-10-27 */
30061
30086
 
30062
30087
  /*
30063
30088
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -30134,7 +30159,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
30134
30159
  return AuthorityMetadataEntity;
30135
30160
  }());
30136
30161
 
30137
- /*! @azure/msal-common v13.2.1 2023-08-07 */
30162
+ /*! @azure/msal-common v13.3.1 2023-10-27 */
30138
30163
  /*
30139
30164
  * Copyright (c) Microsoft Corporation. All rights reserved.
30140
30165
  * Licensed under the MIT License.
@@ -30144,7 +30169,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
30144
30169
  response.hasOwnProperty("metadata"));
30145
30170
  }
30146
30171
 
30147
- /*! @azure/msal-common v13.2.1 2023-08-07 */
30172
+ /*! @azure/msal-common v13.3.1 2023-10-27 */
30148
30173
  /*
30149
30174
  * Copyright (c) Microsoft Corporation. All rights reserved.
30150
30175
  * Licensed under the MIT License.
@@ -30154,7 +30179,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
30154
30179
  response.hasOwnProperty("error_description"));
30155
30180
  }
30156
30181
 
30157
- /*! @azure/msal-common v13.2.1 2023-08-07 */
30182
+ /*! @azure/msal-common v13.3.1 2023-10-27 */
30158
30183
 
30159
30184
  /*
30160
30185
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -30286,7 +30311,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
30286
30311
  return RegionDiscovery;
30287
30312
  }());
30288
30313
 
30289
- /*! @azure/msal-common v13.2.1 2023-08-07 */
30314
+ /*! @azure/msal-common v13.3.1 2023-10-27 */
30290
30315
 
30291
30316
  /*
30292
30317
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -31079,7 +31104,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
31079
31104
  return Authority;
31080
31105
  }());
31081
31106
 
31082
- /*! @azure/msal-common v13.2.1 2023-08-07 */
31107
+ /*! @azure/msal-common v13.3.1 2023-10-27 */
31083
31108
 
31084
31109
  /*
31085
31110
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -31143,7 +31168,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
31143
31168
  return AuthorityFactory;
31144
31169
  }());
31145
31170
 
31146
- /*! @azure/msal-common v13.2.1 2023-08-07 */
31171
+ /*! @azure/msal-common v13.3.1 2023-10-27 */
31147
31172
 
31148
31173
  /*
31149
31174
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -31174,7 +31199,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
31174
31199
  return ServerTelemetryEntity;
31175
31200
  }());
31176
31201
 
31177
- /*! @azure/msal-common v13.2.1 2023-08-07 */
31202
+ /*! @azure/msal-common v13.3.1 2023-10-27 */
31178
31203
 
31179
31204
  /*
31180
31205
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -31202,7 +31227,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
31202
31227
  return ThrottlingEntity;
31203
31228
  }());
31204
31229
 
31205
- /*! @azure/msal-common v13.2.1 2023-08-07 */
31230
+ /*! @azure/msal-common v13.3.1 2023-10-27 */
31206
31231
 
31207
31232
  /*
31208
31233
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -31219,7 +31244,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
31219
31244
  }
31220
31245
  };
31221
31246
 
31222
- /*! @azure/msal-common v13.2.1 2023-08-07 */
31247
+ /*! @azure/msal-common v13.3.1 2023-10-27 */
31223
31248
 
31224
31249
  /*
31225
31250
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -31264,7 +31289,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
31264
31289
  return JoseHeaderError;
31265
31290
  }(AuthError));
31266
31291
 
31267
- /*! @azure/msal-common v13.2.1 2023-08-07 */
31292
+ /*! @azure/msal-common v13.3.1 2023-10-27 */
31268
31293
 
31269
31294
  /*
31270
31295
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -31304,7 +31329,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
31304
31329
  return JoseHeader;
31305
31330
  }());
31306
31331
 
31307
- /*! @azure/msal-common v13.2.1 2023-08-07 */
31332
+ /*! @azure/msal-common v13.3.1 2023-10-27 */
31308
31333
 
31309
31334
  /*
31310
31335
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -31466,7 +31491,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
31466
31491
  return ServerTelemetryManager;
31467
31492
  }());
31468
31493
 
31469
- /*! @azure/msal-common v13.2.1 2023-08-07 */
31494
+ /*! @azure/msal-common v13.3.1 2023-10-27 */
31470
31495
 
31471
31496
  /*
31472
31497
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -31869,7 +31894,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
31869
31894
  return PerformanceClient;
31870
31895
  }());
31871
31896
 
31872
- /*! @azure/msal-common v13.2.1 2023-08-07 */
31897
+ /*! @azure/msal-common v13.3.1 2023-10-27 */
31873
31898
 
31874
31899
  /*
31875
31900
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -31916,7 +31941,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
31916
31941
  return StubPerformanceClient;
31917
31942
  }(PerformanceClient));
31918
31943
 
31919
- /*! @azure/msal-browser v2.38.1 2023-08-07 */
31944
+ /*! @azure/msal-browser v2.38.3 2023-10-27 */
31920
31945
 
31921
31946
  /*
31922
31947
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -32403,7 +32428,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
32403
32428
  return BrowserAuthError;
32404
32429
  }(AuthError));
32405
32430
 
32406
- /*! @azure/msal-browser v2.38.1 2023-08-07 */
32431
+ /*! @azure/msal-browser v2.38.3 2023-10-27 */
32407
32432
 
32408
32433
  /*
32409
32434
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -32620,7 +32645,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
32620
32645
  CacheLookupPolicy[CacheLookupPolicy["Skip"] = 5] = "Skip";
32621
32646
  })(CacheLookupPolicy || (CacheLookupPolicy = {}));
32622
32647
 
32623
- /*! @azure/msal-browser v2.38.1 2023-08-07 */
32648
+ /*! @azure/msal-browser v2.38.3 2023-10-27 */
32624
32649
 
32625
32650
  /*
32626
32651
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -32722,7 +32747,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
32722
32747
  return BrowserConfigurationAuthError;
32723
32748
  }(AuthError));
32724
32749
 
32725
- /*! @azure/msal-browser v2.38.1 2023-08-07 */
32750
+ /*! @azure/msal-browser v2.38.3 2023-10-27 */
32726
32751
 
32727
32752
  /*
32728
32753
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -32760,7 +32785,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
32760
32785
  return BrowserStorage;
32761
32786
  }());
32762
32787
 
32763
- /*! @azure/msal-browser v2.38.1 2023-08-07 */
32788
+ /*! @azure/msal-browser v2.38.3 2023-10-27 */
32764
32789
  /*
32765
32790
  * Copyright (c) Microsoft Corporation. All rights reserved.
32766
32791
  * Licensed under the MIT License.
@@ -32794,7 +32819,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
32794
32819
  return MemoryStorage;
32795
32820
  }());
32796
32821
 
32797
- /*! @azure/msal-browser v2.38.1 2023-08-07 */
32822
+ /*! @azure/msal-browser v2.38.3 2023-10-27 */
32798
32823
 
32799
32824
  /*
32800
32825
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -32834,7 +32859,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
32834
32859
  return BrowserProtocolUtils;
32835
32860
  }());
32836
32861
 
32837
- /*! @azure/msal-browser v2.38.1 2023-08-07 */
32862
+ /*! @azure/msal-browser v2.38.3 2023-10-27 */
32838
32863
 
32839
32864
  /*
32840
32865
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -33712,6 +33737,40 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
33712
33737
  });
33713
33738
  });
33714
33739
  };
33740
+ /**
33741
+ * Clears all access tokes that have claims prior to saving the current one
33742
+ * @param credential
33743
+ * @returns
33744
+ */
33745
+ BrowserCacheManager.prototype.clearTokensAndKeysWithClaims = function () {
33746
+ return __awaiter$3(this, void 0, void 0, function () {
33747
+ var tokenKeys, removedAccessTokens;
33748
+ var _this = this;
33749
+ return __generator$3(this, function (_a) {
33750
+ switch (_a.label) {
33751
+ case 0:
33752
+ this.logger.trace("BrowserCacheManager.clearTokensAndKeysWithClaims called");
33753
+ tokenKeys = this.getTokenKeys();
33754
+ removedAccessTokens = [];
33755
+ tokenKeys.accessToken.forEach(function (key) {
33756
+ // if the access token has claims in its key, remove the token key and the token
33757
+ var credential = _this.getAccessTokenCredential(key);
33758
+ if ((credential === null || credential === void 0 ? void 0 : credential.requestedClaimsHash) && key.includes(credential.requestedClaimsHash.toLowerCase())) {
33759
+ removedAccessTokens.push(_this.removeAccessToken(key));
33760
+ }
33761
+ });
33762
+ return [4 /*yield*/, Promise.all(removedAccessTokens)];
33763
+ case 1:
33764
+ _a.sent();
33765
+ // warn if any access tokens are removed
33766
+ if (removedAccessTokens.length > 0) {
33767
+ this.logger.warning(removedAccessTokens.length + " access tokens with claims in the cache keys have been removed from the cache.");
33768
+ }
33769
+ return [2 /*return*/];
33770
+ }
33771
+ });
33772
+ });
33773
+ };
33715
33774
  /**
33716
33775
  * Add value to cookies
33717
33776
  * @param cookieName
@@ -34105,12 +34164,12 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
34105
34164
  return new BrowserCacheManager(clientId, cacheOptions, DEFAULT_CRYPTO_IMPLEMENTATION, logger);
34106
34165
  };
34107
34166
 
34108
- /*! @azure/msal-browser v2.38.1 2023-08-07 */
34167
+ /*! @azure/msal-browser v2.38.3 2023-10-27 */
34109
34168
  /* eslint-disable header/header */
34110
34169
  var name = "@azure/msal-browser";
34111
- var version = "2.38.1";
34170
+ var version = "2.38.3";
34112
34171
 
34113
- /*! @azure/msal-browser v2.38.1 2023-08-07 */
34172
+ /*! @azure/msal-browser v2.38.3 2023-10-27 */
34114
34173
 
34115
34174
  /*
34116
34175
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -34241,7 +34300,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
34241
34300
  return FetchClient;
34242
34301
  }());
34243
34302
 
34244
- /*! @azure/msal-browser v2.38.1 2023-08-07 */
34303
+ /*! @azure/msal-browser v2.38.3 2023-10-27 */
34245
34304
 
34246
34305
  /*
34247
34306
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -34373,7 +34432,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
34373
34432
  return XhrClient;
34374
34433
  }());
34375
34434
 
34376
- /*! @azure/msal-browser v2.38.1 2023-08-07 */
34435
+ /*! @azure/msal-browser v2.38.3 2023-10-27 */
34377
34436
 
34378
34437
  /*
34379
34438
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -34512,7 +34571,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
34512
34571
  return BrowserUtils;
34513
34572
  }());
34514
34573
 
34515
- /*! @azure/msal-browser v2.38.1 2023-08-07 */
34574
+ /*! @azure/msal-browser v2.38.3 2023-10-27 */
34516
34575
 
34517
34576
  /*
34518
34577
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -34709,7 +34768,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
34709
34768
  return BaseInteractionClient;
34710
34769
  }());
34711
34770
 
34712
- /*! @azure/msal-browser v2.38.1 2023-08-07 */
34771
+ /*! @azure/msal-browser v2.38.3 2023-10-27 */
34713
34772
 
34714
34773
  /*
34715
34774
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -35009,7 +35068,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
35009
35068
  return StandardInteractionClient;
35010
35069
  }(BaseInteractionClient));
35011
35070
 
35012
- /*! @azure/msal-browser v2.38.1 2023-08-07 */
35071
+ /*! @azure/msal-browser v2.38.3 2023-10-27 */
35013
35072
 
35014
35073
  /*
35015
35074
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -35164,7 +35223,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
35164
35223
  return InteractionHandler;
35165
35224
  }());
35166
35225
 
35167
- /*! @azure/msal-browser v2.38.1 2023-08-07 */
35226
+ /*! @azure/msal-browser v2.38.3 2023-10-27 */
35168
35227
 
35169
35228
  /*
35170
35229
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -35301,7 +35360,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
35301
35360
  return RedirectHandler;
35302
35361
  }(InteractionHandler));
35303
35362
 
35304
- /*! @azure/msal-browser v2.38.1 2023-08-07 */
35363
+ /*! @azure/msal-browser v2.38.3 2023-10-27 */
35305
35364
  /*
35306
35365
  * Copyright (c) Microsoft Corporation. All rights reserved.
35307
35366
  * Licensed under the MIT License.
@@ -35335,7 +35394,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
35335
35394
  EventType["RESTORE_FROM_BFCACHE"] = "msal:restoreFromBFCache";
35336
35395
  })(EventType || (EventType = {}));
35337
35396
 
35338
- /*! @azure/msal-browser v2.38.1 2023-08-07 */
35397
+ /*! @azure/msal-browser v2.38.3 2023-10-27 */
35339
35398
 
35340
35399
  /*
35341
35400
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -35426,7 +35485,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
35426
35485
  return NativeAuthError;
35427
35486
  }(AuthError));
35428
35487
 
35429
- /*! @azure/msal-browser v2.38.1 2023-08-07 */
35488
+ /*! @azure/msal-browser v2.38.3 2023-10-27 */
35430
35489
 
35431
35490
  /*
35432
35491
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -35526,7 +35585,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
35526
35585
  return SilentCacheClient;
35527
35586
  }(StandardInteractionClient));
35528
35587
 
35529
- /*! @azure/msal-browser v2.38.1 2023-08-07 */
35588
+ /*! @azure/msal-browser v2.38.3 2023-10-27 */
35530
35589
 
35531
35590
  /*
35532
35591
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -36108,7 +36167,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
36108
36167
  return NativeInteractionClient;
36109
36168
  }(BaseInteractionClient));
36110
36169
 
36111
- /*! @azure/msal-browser v2.38.1 2023-08-07 */
36170
+ /*! @azure/msal-browser v2.38.3 2023-10-27 */
36112
36171
 
36113
36172
  /*
36114
36173
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -36371,7 +36430,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
36371
36430
  return NativeMessageHandler;
36372
36431
  }());
36373
36432
 
36374
- /*! @azure/msal-browser v2.38.1 2023-08-07 */
36433
+ /*! @azure/msal-browser v2.38.3 2023-10-27 */
36375
36434
 
36376
36435
  /*
36377
36436
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -36712,7 +36771,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
36712
36771
  return RedirectClient;
36713
36772
  }(StandardInteractionClient));
36714
36773
 
36715
- /*! @azure/msal-browser v2.38.1 2023-08-07 */
36774
+ /*! @azure/msal-browser v2.38.3 2023-10-27 */
36716
36775
 
36717
36776
  /*
36718
36777
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -37212,7 +37271,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
37212
37271
  return PopupClient;
37213
37272
  }(StandardInteractionClient));
37214
37273
 
37215
- /*! @azure/msal-browser v2.38.1 2023-08-07 */
37274
+ /*! @azure/msal-browser v2.38.3 2023-10-27 */
37216
37275
  /*
37217
37276
  * Copyright (c) Microsoft Corporation. All rights reserved.
37218
37277
  * Licensed under the MIT License.
@@ -37257,7 +37316,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
37257
37316
  return NavigationClient;
37258
37317
  }());
37259
37318
 
37260
- /*! @azure/msal-browser v2.38.1 2023-08-07 */
37319
+ /*! @azure/msal-browser v2.38.3 2023-10-27 */
37261
37320
 
37262
37321
  /*
37263
37322
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -37339,7 +37398,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
37339
37398
  return overlayedConfig;
37340
37399
  }
37341
37400
 
37342
- /*! @azure/msal-browser v2.38.1 2023-08-07 */
37401
+ /*! @azure/msal-browser v2.38.3 2023-10-27 */
37343
37402
 
37344
37403
  /*
37345
37404
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -37492,7 +37551,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
37492
37551
  return SilentHandler;
37493
37552
  }(InteractionHandler));
37494
37553
 
37495
- /*! @azure/msal-browser v2.38.1 2023-08-07 */
37554
+ /*! @azure/msal-browser v2.38.3 2023-10-27 */
37496
37555
 
37497
37556
  /*
37498
37557
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -37639,7 +37698,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
37639
37698
  return SilentIframeClient;
37640
37699
  }(StandardInteractionClient));
37641
37700
 
37642
- /*! @azure/msal-browser v2.38.1 2023-08-07 */
37701
+ /*! @azure/msal-browser v2.38.3 2023-10-27 */
37643
37702
 
37644
37703
  /*
37645
37704
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -37731,7 +37790,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
37731
37790
  return SilentRefreshClient;
37732
37791
  }(StandardInteractionClient));
37733
37792
 
37734
- /*! @azure/msal-browser v2.38.1 2023-08-07 */
37793
+ /*! @azure/msal-browser v2.38.3 2023-10-27 */
37735
37794
 
37736
37795
  /*
37737
37796
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -37853,7 +37912,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
37853
37912
  return EventHandler;
37854
37913
  }());
37855
37914
 
37856
- /*! @azure/msal-browser v2.38.1 2023-08-07 */
37915
+ /*! @azure/msal-browser v2.38.3 2023-10-27 */
37857
37916
  /*
37858
37917
  * Copyright (c) Microsoft Corporation. All rights reserved.
37859
37918
  * Licensed under the MIT License.
@@ -37879,7 +37938,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
37879
37938
  return MathUtils;
37880
37939
  }());
37881
37940
 
37882
- /*! @azure/msal-browser v2.38.1 2023-08-07 */
37941
+ /*! @azure/msal-browser v2.38.3 2023-10-27 */
37883
37942
 
37884
37943
  /*
37885
37944
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -37967,7 +38026,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
37967
38026
  return GuidGenerator;
37968
38027
  }());
37969
38028
 
37970
- /*! @azure/msal-browser v2.38.1 2023-08-07 */
38029
+ /*! @azure/msal-browser v2.38.3 2023-10-27 */
37971
38030
 
37972
38031
  /*
37973
38032
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -38085,7 +38144,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
38085
38144
  return BrowserStringUtils;
38086
38145
  }());
38087
38146
 
38088
- /*! @azure/msal-browser v2.38.1 2023-08-07 */
38147
+ /*! @azure/msal-browser v2.38.3 2023-10-27 */
38089
38148
 
38090
38149
  /*
38091
38150
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -38168,7 +38227,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
38168
38227
  return Base64Encode;
38169
38228
  }());
38170
38229
 
38171
- /*! @azure/msal-browser v2.38.1 2023-08-07 */
38230
+ /*! @azure/msal-browser v2.38.3 2023-10-27 */
38172
38231
 
38173
38232
  /*
38174
38233
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -38245,7 +38304,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
38245
38304
  return Base64Decode;
38246
38305
  }());
38247
38306
 
38248
- /*! @azure/msal-browser v2.38.1 2023-08-07 */
38307
+ /*! @azure/msal-browser v2.38.3 2023-10-27 */
38249
38308
 
38250
38309
  /*
38251
38310
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -38326,7 +38385,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
38326
38385
  return PkceGenerator;
38327
38386
  }());
38328
38387
 
38329
- /*! @azure/msal-browser v2.38.1 2023-08-07 */
38388
+ /*! @azure/msal-browser v2.38.3 2023-10-27 */
38330
38389
 
38331
38390
  /*
38332
38391
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -38376,7 +38435,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
38376
38435
  return ModernBrowserCrypto;
38377
38436
  }());
38378
38437
 
38379
- /*! @azure/msal-browser v2.38.1 2023-08-07 */
38438
+ /*! @azure/msal-browser v2.38.3 2023-10-27 */
38380
38439
 
38381
38440
  /*
38382
38441
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -38430,7 +38489,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
38430
38489
  return MsrBrowserCrypto;
38431
38490
  }());
38432
38491
 
38433
- /*! @azure/msal-browser v2.38.1 2023-08-07 */
38492
+ /*! @azure/msal-browser v2.38.3 2023-10-27 */
38434
38493
 
38435
38494
  /*
38436
38495
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -38535,7 +38594,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
38535
38594
  return MsBrowserCrypto;
38536
38595
  }());
38537
38596
 
38538
- /*! @azure/msal-browser v2.38.1 2023-08-07 */
38597
+ /*! @azure/msal-browser v2.38.3 2023-10-27 */
38539
38598
 
38540
38599
  /*
38541
38600
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -38692,7 +38751,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
38692
38751
  return BrowserCrypto;
38693
38752
  }());
38694
38753
 
38695
- /*! @azure/msal-browser v2.38.1 2023-08-07 */
38754
+ /*! @azure/msal-browser v2.38.3 2023-10-27 */
38696
38755
 
38697
38756
  /*
38698
38757
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -38948,7 +39007,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
38948
39007
  return DatabaseStorage;
38949
39008
  }());
38950
39009
 
38951
- /*! @azure/msal-browser v2.38.1 2023-08-07 */
39010
+ /*! @azure/msal-browser v2.38.3 2023-10-27 */
38952
39011
 
38953
39012
  /*
38954
39013
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -39151,7 +39210,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
39151
39210
  return AsyncMemoryStorage;
39152
39211
  }());
39153
39212
 
39154
- /*! @azure/msal-browser v2.38.1 2023-08-07 */
39213
+ /*! @azure/msal-browser v2.38.3 2023-10-27 */
39155
39214
 
39156
39215
  /*
39157
39216
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -39204,7 +39263,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
39204
39263
  return CryptoKeyStore;
39205
39264
  }());
39206
39265
 
39207
- /*! @azure/msal-browser v2.38.1 2023-08-07 */
39266
+ /*! @azure/msal-browser v2.38.3 2023-10-27 */
39208
39267
 
39209
39268
  /*
39210
39269
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -39414,7 +39473,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
39414
39473
  return CryptoOps;
39415
39474
  }());
39416
39475
 
39417
- /*! @azure/msal-browser v2.38.1 2023-08-07 */
39476
+ /*! @azure/msal-browser v2.38.3 2023-10-27 */
39418
39477
  /*
39419
39478
  * Copyright (c) Microsoft Corporation. All rights reserved.
39420
39479
  * Licensed under the MIT License.
@@ -39509,7 +39568,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
39509
39568
  return BrowserPerformanceMeasurement;
39510
39569
  }());
39511
39570
 
39512
- /*! @azure/msal-browser v2.38.1 2023-08-07 */
39571
+ /*! @azure/msal-browser v2.38.3 2023-10-27 */
39513
39572
 
39514
39573
  /*
39515
39574
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -39630,7 +39689,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
39630
39689
  return BrowserPerformanceClient;
39631
39690
  }(PerformanceClient));
39632
39691
 
39633
- /*! @azure/msal-browser v2.38.1 2023-08-07 */
39692
+ /*! @azure/msal-browser v2.38.3 2023-10-27 */
39634
39693
 
39635
39694
  /*
39636
39695
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -39852,7 +39911,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
39852
39911
  return TokenCache;
39853
39912
  }());
39854
39913
 
39855
- /*! @azure/msal-browser v2.38.1 2023-08-07 */
39914
+ /*! @azure/msal-browser v2.38.3 2023-10-27 */
39856
39915
 
39857
39916
  /*
39858
39917
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -39868,7 +39927,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
39868
39927
  return HybridSpaAuthorizationCodeClient;
39869
39928
  }(AuthorizationCodeClient));
39870
39929
 
39871
- /*! @azure/msal-browser v2.38.1 2023-08-07 */
39930
+ /*! @azure/msal-browser v2.38.3 2023-10-27 */
39872
39931
 
39873
39932
  /*
39874
39933
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -39945,7 +40004,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
39945
40004
  return SilentAuthCodeClient;
39946
40005
  }(StandardInteractionClient));
39947
40006
 
39948
- /*! @azure/msal-browser v2.38.1 2023-08-07 */
40007
+ /*! @azure/msal-browser v2.38.3 2023-10-27 */
39949
40008
 
39950
40009
  /*
39951
40010
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -40024,7 +40083,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
40024
40083
  */
40025
40084
  ClientApplication.prototype.initialize = function () {
40026
40085
  return __awaiter$3(this, void 0, void 0, function () {
40027
- var allowNativeBroker, initMeasurement, _a, e_1;
40086
+ var allowNativeBroker, initMeasurement, _a, e_1, claimsTokensRemovalMeasurement;
40028
40087
  return __generator$3(this, function (_b) {
40029
40088
  switch (_b.label) {
40030
40089
  case 0:
@@ -40050,6 +40109,15 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
40050
40109
  this.logger.verbose(e_1);
40051
40110
  return [3 /*break*/, 4];
40052
40111
  case 4:
40112
+ if (!!this.config.cache.claimsBasedCachingEnabled) return [3 /*break*/, 6];
40113
+ this.logger.verbose("Claims-based caching is disabled. Clearing the previous cache with claims");
40114
+ claimsTokensRemovalMeasurement = this.performanceClient.startMeasurement(PerformanceEvents.ClearTokensAndKeysWithClaims);
40115
+ return [4 /*yield*/, this.browserStorage.clearTokensAndKeysWithClaims()];
40116
+ case 5:
40117
+ _b.sent();
40118
+ claimsTokensRemovalMeasurement.endMeasurement({ success: true });
40119
+ _b.label = 6;
40120
+ case 6:
40053
40121
  this.initialized = true;
40054
40122
  this.eventHandler.emitEvent(EventType.INITIALIZE_END);
40055
40123
  initMeasurement.endMeasurement({ allowNativeBroker: allowNativeBroker, success: true });
@@ -40973,7 +41041,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
40973
41041
  return ClientApplication;
40974
41042
  }());
40975
41043
 
40976
- /*! @azure/msal-browser v2.38.1 2023-08-07 */
41044
+ /*! @azure/msal-browser v2.38.3 2023-10-27 */
40977
41045
 
40978
41046
  /*
40979
41047
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -43585,59 +43653,59 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
43585
43653
  var features = this.map._getMap().querySourceFeatures(sourceID, { sourceLayer: sourceLayer, filter: filter });
43586
43654
  return this.map.sources._mapFeaturesToShapes(features, true, this.sources.get(sourceID));
43587
43655
  };
43588
- // TODO: wait till the mapbox's bug is fixed
43589
- // /**
43590
- // * Gets the state of a feature
43591
- // * @param shape the ID of the shape
43592
- // * @param source the ID of the source
43593
- // * @param sourceLayer the ID of the layer
43594
- // */
43595
- // public getFeatureState(shape: string | Shape | Feature<Geometry, any>, source: string | Source, sourceLayer?: string): object {
43596
- // let featureID;
43597
- // if (typeof shape === "string") {
43598
- // featureID = shape;
43599
- // } else {
43600
- // featureID = shape instanceof Shape ? shape.getId() : shape.id;
43601
- // }
43602
- // const featureSource = typeof source === "string" ? source : source.getId();
43603
- // return this.map._getMap().getFeatureState({ id: featureID, source: featureSource, sourceLayer: sourceLayer });
43604
- // }
43605
- // /**
43606
- // * Removes the state or a single key value of the state of a feature.
43607
- // * @param shape the ID of the shape
43608
- // * @param source the ID of the source
43609
- // * @param sourceLayer the ID of the layer
43610
- // * @param key the key in the feature state to update
43611
- // */
43612
- // public removeFeatureState(shape: string | Shape | Feature<Geometry, any>, source: string | Source, sourceLayer?: string, key?: string) {
43613
- // let featureID;
43614
- // if (typeof shape === "string") {
43615
- // featureID = shape;
43616
- // } else {
43617
- // featureID = shape instanceof Shape ? shape.getId() : shape.id;
43618
- // }
43619
- // const featureSource = typeof source === "string" ? source : source.getId();
43620
- // // TODO: update the method when the mapbox typing file is updated
43621
- // (this.map._getMap() as any).removeFeatureState({ id: featureID, source: featureSource, sourceLayer: sourceLayer }, key);
43622
- // }
43623
- // /**
43624
- // * Sets the state of the feature by passing in a key value pair object.
43625
- // * @param shape the ID of the shape
43626
- // * @param source the ID of the source
43627
- // * @param sourceLayer the ID of the layer
43628
- // * @param key the key in the feature state to update
43629
- // */
43630
- // public setFeatureState(shape: string | Shape | Feature<Geometry, any>, source: string | Source, state: object, sourceLayer?: string) {
43631
- // let featureID;
43632
- // if (typeof shape === "string") {
43633
- // featureID = shape;
43634
- // } else {
43635
- // featureID = shape instanceof Shape ? shape.getId() : shape.id;
43636
- // }
43637
- // const featureSource = typeof source === "string" ? source : source.getId();
43638
- // // TODO: update the method when the mapbox typing file is updated
43639
- // this.map._getMap().setFeatureState({ id: featureID, source: featureSource, sourceLayer: sourceLayer }, state);
43640
- // }
43656
+ /**
43657
+ * Gets the state of a feature
43658
+ * @param feature the ID of the feature
43659
+ * @param source the ID of the source
43660
+ * @param sourceLayer the ID of the layer
43661
+ */
43662
+ SourceManager.prototype.getFeatureState = function (feature, source, sourceLayer) {
43663
+ var featureId;
43664
+ if (typeof feature === "string") {
43665
+ featureId = feature;
43666
+ }
43667
+ else {
43668
+ featureId = feature instanceof Shape ? feature.getId() : feature.id;
43669
+ }
43670
+ var featureSource = typeof source === "string" ? source : source.getId();
43671
+ return this.map._getMap().getFeatureState({ id: featureId, source: featureSource, sourceLayer: sourceLayer });
43672
+ };
43673
+ /**
43674
+ * Removes the state or a single key value of the state of a feature.
43675
+ * @param feature the ID of the feature
43676
+ * @param source the ID of the source
43677
+ * @param sourceLayer the ID of the layer
43678
+ * @param key the key in the feature state to update
43679
+ */
43680
+ SourceManager.prototype.removeFeatureState = function (feature, source, sourceLayer, key) {
43681
+ var featureId;
43682
+ if (typeof feature === "string") {
43683
+ featureId = feature;
43684
+ }
43685
+ else {
43686
+ featureId = feature instanceof Shape ? feature.getId() : feature.id;
43687
+ }
43688
+ var featureSource = typeof source === "string" ? source : source.getId();
43689
+ this.map._getMap().removeFeatureState({ id: featureId, source: featureSource, sourceLayer: sourceLayer }, key);
43690
+ };
43691
+ /**
43692
+ * Sets the state of the feature by passing in a key value pair object.
43693
+ * @param feature the ID of the feature
43694
+ * @param source the ID of the source
43695
+ * @param sourceLayer the ID of the layer
43696
+ * @param key the key in the feature state to update
43697
+ */
43698
+ SourceManager.prototype.setFeatureState = function (feature, source, state, sourceLayer) {
43699
+ var featureId;
43700
+ if (typeof feature === "string") {
43701
+ featureId = feature;
43702
+ }
43703
+ else {
43704
+ featureId = feature instanceof Shape ? feature.getId() : feature.id;
43705
+ }
43706
+ var featureSource = typeof source === "string" ? source : source.getId();
43707
+ this.map._getMap().setFeatureState({ id: featureId, source: featureSource, sourceLayer: sourceLayer }, state);
43708
+ };
43641
43709
  /**
43642
43710
  * @internal
43643
43711
  */
@@ -44902,8 +44970,8 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
44902
44970
  */
44903
44971
  _this.styleSet = undefined;
44904
44972
  /**
44905
- * Enable accessibility
44906
- * default: true
44973
+ * Enable the accessibility feature to provide screen reader support for users who have difficulty visualizing the web application.
44974
+ * This property is set to true by default.
44907
44975
  * @default true
44908
44976
  */
44909
44977
  _this.enableAccessibility = true;
@@ -45741,14 +45809,13 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
45741
45809
  return !previousStyle
45742
45810
  ? nextStyle
45743
45811
  : this.map.layers._getUserLayers().reduce(function (style, userLayer) {
45812
+ var _a, _b;
45744
45813
  if (userLayer.layer instanceof WebGLLayer) {
45745
45814
  // mapbox custom layers cannot be serialized and preserved,
45746
45815
  // return to continue to the next user layer.
45747
45816
  return style;
45748
45817
  }
45749
- var before = layerGroupLayers[userLayer.before] && layerGroupLayers[userLayer.before].length > 0
45750
- ? layerGroupLayers[userLayer.before][0]
45751
- : undefined;
45818
+ var beforeLayerId = ((_b = (_a = layerGroupLayers === null || layerGroupLayers === void 0 ? void 0 : layerGroupLayers[userLayer.before]) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.id) || userLayer.before;
45752
45819
  var layer = previousStyle.layers.find(function (layer) { return layer.id === userLayer.layer.getId(); });
45753
45820
  // when setStyle diff attempt is unsuccesful, _load will be called on the style that may have already injected user layers -> clean it up
45754
45821
  var existingLayerIdx = nextStyle.layers.findIndex(function (layer) { return layer.id === userLayer.layer.getId(); });
@@ -45759,7 +45826,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
45759
45826
  var sourcesToCopy = new Set(Array.from(userLayer.layer._getSourceIds())
45760
45827
  .map(function (sourceId) { return previousStyle.sources[sourceId] ? { source: previousStyle.sources[sourceId], id: sourceId } : undefined; })
45761
45828
  .filter(function (source) { return source !== undefined; }));
45762
- var insertIdx = before ? style.layers.findIndex(function (layer) { return layer.id === before.id; }) : -1;
45829
+ var insertIdx = beforeLayerId ? style.layers.findIndex(function (layer) { return layer.id === beforeLayerId; }) : -1;
45763
45830
  if (insertIdx > -1) {
45764
45831
  style.layers.splice(insertIdx, 0, layer);
45765
45832
  }