@cosmotech/core 3.0.2 → 3.0.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.cjs.js CHANGED
@@ -238,6 +238,19 @@ function toDate$1(argument, context) {
238
238
  * @description
239
239
  * Add the specified number of days to the given date.
240
240
  *
241
+ * **You don't need date-fns\***:
242
+ *
243
+ * Temporal has a built-in `add` method on all its classes:
244
+ *
245
+ * - [`Temporal.Instant.prototype.add()`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Temporal/Instant/add)
246
+ * - [`Temporal.PlainDate.prototype.add()`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Temporal/PlainDate/add)
247
+ * - [`Temporal.PlainDateTime.prototype.add()`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Temporal/PlainDateTime/add)
248
+ * - [`Temporal.PlainTime.prototype.add()`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Temporal/PlainTime/add)
249
+ * - [`Temporal.PlainYearMonth.prototype.add()`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Temporal/PlainYearMonth/add)
250
+ * - [`Temporal.ZonedDateTime.prototype.add()`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Temporal/ZonedDateTime/add)
251
+ *
252
+ * \* **Not really**, see: https://date-fns.org/you-dont-need-date-fns
253
+ *
241
254
  * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc).
242
255
  * @typeParam ResultDate - The result `Date` type, it is the type returned from the context function if it is passed, or inferred from the arguments.
243
256
  *
@@ -251,6 +264,12 @@ function toDate$1(argument, context) {
251
264
  * // Add 10 days to 1 September 2014:
252
265
  * const result = addDays(new Date(2014, 8, 1), 10)
253
266
  * //=> Thu Sep 11 2014 00:00:00
267
+ *
268
+ * @example
269
+ * // Using Temporal:
270
+ * // Add 10 days to 1 September 2014:
271
+ * Temporal.PlainDate.from("2014-09-01").add({ days: 10 }).toString();
272
+ * //=> "2014-09-11"
254
273
  */
255
274
  function addDays(date, amount, options) {
256
275
  const _date = toDate$1(date, options?.in);
@@ -3024,7 +3043,6 @@ class Setter {
3024
3043
  class ValueSetter extends Setter {
3025
3044
  constructor(
3026
3045
  value,
3027
-
3028
3046
  validateValue,
3029
3047
 
3030
3048
  setValue,
@@ -6218,28 +6236,28 @@ var toDate = {exports: {}};
6218
6236
 
6219
6237
  var assertString = {exports: {}};
6220
6238
 
6221
- (function (module, exports$1) {
6239
+ (function (module, exports) {
6222
6240
 
6223
- Object.defineProperty(exports$1, "__esModule", {
6241
+ Object.defineProperty(exports, "__esModule", {
6224
6242
  value: true
6225
6243
  });
6226
- exports$1.default = assertString;
6244
+ exports.default = assertString;
6227
6245
  function assertString(input) {
6228
6246
  if (input === undefined || input === null) throw new TypeError("Expected a string but received a ".concat(input));
6229
6247
  if (input.constructor.name !== 'String') throw new TypeError("Expected a string but received a ".concat(input.constructor.name));
6230
6248
  }
6231
- module.exports = exports$1.default;
6232
- module.exports.default = exports$1.default;
6249
+ module.exports = exports.default;
6250
+ module.exports.default = exports.default;
6233
6251
  } (assertString, assertString.exports));
6234
6252
 
6235
6253
  var assertStringExports = assertString.exports;
6236
6254
 
6237
- (function (module, exports$1) {
6255
+ (function (module, exports) {
6238
6256
 
6239
- Object.defineProperty(exports$1, "__esModule", {
6257
+ Object.defineProperty(exports, "__esModule", {
6240
6258
  value: true
6241
6259
  });
6242
- exports$1.default = toDate;
6260
+ exports.default = toDate;
6243
6261
  var _assertString = _interopRequireDefault(assertStringExports);
6244
6262
  function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
6245
6263
  function toDate(date) {
@@ -6247,8 +6265,8 @@ var assertStringExports = assertString.exports;
6247
6265
  date = Date.parse(date);
6248
6266
  return !isNaN(date) ? new Date(date) : null;
6249
6267
  }
6250
- module.exports = exports$1.default;
6251
- module.exports.default = exports$1.default;
6268
+ module.exports = exports.default;
6269
+ module.exports.default = exports.default;
6252
6270
  } (toDate, toDate.exports));
6253
6271
 
6254
6272
  var toDateExports = toDate.exports;
@@ -6259,17 +6277,17 @@ var isFloat$1 = {};
6259
6277
 
6260
6278
  var nullUndefinedCheck = {exports: {}};
6261
6279
 
6262
- (function (module, exports$1) {
6280
+ (function (module, exports) {
6263
6281
 
6264
- Object.defineProperty(exports$1, "__esModule", {
6282
+ Object.defineProperty(exports, "__esModule", {
6265
6283
  value: true
6266
6284
  });
6267
- exports$1.default = isNullOrUndefined;
6285
+ exports.default = isNullOrUndefined;
6268
6286
  function isNullOrUndefined(value) {
6269
6287
  return value === null || value === undefined;
6270
6288
  }
6271
- module.exports = exports$1.default;
6272
- module.exports.default = exports$1.default;
6289
+ module.exports = exports.default;
6290
+ module.exports.default = exports.default;
6273
6291
  } (nullUndefinedCheck, nullUndefinedCheck.exports));
6274
6292
 
6275
6293
  var nullUndefinedCheckExports = nullUndefinedCheck.exports;
@@ -6453,52 +6471,52 @@ function isFloat(str, options) {
6453
6471
  }
6454
6472
  isFloat$1.locales = Object.keys(_alpha$2.decimal);
6455
6473
 
6456
- (function (module, exports$1) {
6474
+ (function (module, exports) {
6457
6475
 
6458
- Object.defineProperty(exports$1, "__esModule", {
6476
+ Object.defineProperty(exports, "__esModule", {
6459
6477
  value: true
6460
6478
  });
6461
- exports$1.default = toFloat;
6479
+ exports.default = toFloat;
6462
6480
  var _isFloat = _interopRequireDefault(isFloat$1);
6463
6481
  function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
6464
6482
  function toFloat(str) {
6465
6483
  if (!(0, _isFloat.default)(str)) return NaN;
6466
6484
  return parseFloat(str);
6467
6485
  }
6468
- module.exports = exports$1.default;
6469
- module.exports.default = exports$1.default;
6486
+ module.exports = exports.default;
6487
+ module.exports.default = exports.default;
6470
6488
  } (toFloat, toFloat.exports));
6471
6489
 
6472
6490
  var toFloatExports = toFloat.exports;
6473
6491
 
6474
6492
  var toInt = {exports: {}};
6475
6493
 
6476
- (function (module, exports$1) {
6494
+ (function (module, exports) {
6477
6495
 
6478
- Object.defineProperty(exports$1, "__esModule", {
6496
+ Object.defineProperty(exports, "__esModule", {
6479
6497
  value: true
6480
6498
  });
6481
- exports$1.default = toInt;
6499
+ exports.default = toInt;
6482
6500
  var _assertString = _interopRequireDefault(assertStringExports);
6483
6501
  function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
6484
6502
  function toInt(str, radix) {
6485
6503
  (0, _assertString.default)(str);
6486
6504
  return parseInt(str, radix || 10);
6487
6505
  }
6488
- module.exports = exports$1.default;
6489
- module.exports.default = exports$1.default;
6506
+ module.exports = exports.default;
6507
+ module.exports.default = exports.default;
6490
6508
  } (toInt, toInt.exports));
6491
6509
 
6492
6510
  var toIntExports = toInt.exports;
6493
6511
 
6494
6512
  var toBoolean = {exports: {}};
6495
6513
 
6496
- (function (module, exports$1) {
6514
+ (function (module, exports) {
6497
6515
 
6498
- Object.defineProperty(exports$1, "__esModule", {
6516
+ Object.defineProperty(exports, "__esModule", {
6499
6517
  value: true
6500
6518
  });
6501
- exports$1.default = toBoolean;
6519
+ exports.default = toBoolean;
6502
6520
  var _assertString = _interopRequireDefault(assertStringExports);
6503
6521
  function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
6504
6522
  function toBoolean(str, strict) {
@@ -6508,28 +6526,28 @@ var toBoolean = {exports: {}};
6508
6526
  }
6509
6527
  return str !== '0' && !/^false$/i.test(str) && str !== '';
6510
6528
  }
6511
- module.exports = exports$1.default;
6512
- module.exports.default = exports$1.default;
6529
+ module.exports = exports.default;
6530
+ module.exports.default = exports.default;
6513
6531
  } (toBoolean, toBoolean.exports));
6514
6532
 
6515
6533
  var toBooleanExports = toBoolean.exports;
6516
6534
 
6517
6535
  var equals = {exports: {}};
6518
6536
 
6519
- (function (module, exports$1) {
6537
+ (function (module, exports) {
6520
6538
 
6521
- Object.defineProperty(exports$1, "__esModule", {
6539
+ Object.defineProperty(exports, "__esModule", {
6522
6540
  value: true
6523
6541
  });
6524
- exports$1.default = equals;
6542
+ exports.default = equals;
6525
6543
  var _assertString = _interopRequireDefault(assertStringExports);
6526
6544
  function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
6527
6545
  function equals(str, comparison) {
6528
6546
  (0, _assertString.default)(str);
6529
6547
  return str === comparison;
6530
6548
  }
6531
- module.exports = exports$1.default;
6532
- module.exports.default = exports$1.default;
6549
+ module.exports = exports.default;
6550
+ module.exports.default = exports.default;
6533
6551
  } (equals, equals.exports));
6534
6552
 
6535
6553
  var equalsExports = equals.exports;
@@ -6538,12 +6556,12 @@ var contains = {exports: {}};
6538
6556
 
6539
6557
  var toString$1 = {exports: {}};
6540
6558
 
6541
- (function (module, exports$1) {
6559
+ (function (module, exports) {
6542
6560
 
6543
- Object.defineProperty(exports$1, "__esModule", {
6561
+ Object.defineProperty(exports, "__esModule", {
6544
6562
  value: true
6545
6563
  });
6546
- exports$1.default = toString;
6564
+ exports.default = toString;
6547
6565
  function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
6548
6566
  function toString(input) {
6549
6567
  if (_typeof(input) === 'object' && input !== null) {
@@ -6557,23 +6575,27 @@ var toString$1 = {exports: {}};
6557
6575
  }
6558
6576
  return String(input);
6559
6577
  }
6560
- module.exports = exports$1.default;
6561
- module.exports.default = exports$1.default;
6578
+ module.exports = exports.default;
6579
+ module.exports.default = exports.default;
6562
6580
  } (toString$1, toString$1.exports));
6563
6581
 
6564
6582
  var toStringExports = toString$1.exports;
6565
6583
 
6566
6584
  var merge = {exports: {}};
6567
6585
 
6568
- (function (module, exports$1) {
6586
+ (function (module, exports) {
6569
6587
 
6570
- Object.defineProperty(exports$1, "__esModule", {
6588
+ Object.defineProperty(exports, "__esModule", {
6571
6589
  value: true
6572
6590
  });
6573
- exports$1.default = merge;
6591
+ exports.default = merge;
6592
+ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
6574
6593
  function merge() {
6575
6594
  var obj = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
6576
6595
  var defaults = arguments.length > 1 ? arguments[1] : undefined;
6596
+ if (_typeof(obj) !== 'object' || obj === null) {
6597
+ obj = {};
6598
+ }
6577
6599
  for (var key in defaults) {
6578
6600
  if (typeof obj[key] === 'undefined') {
6579
6601
  obj[key] = defaults[key];
@@ -6581,18 +6603,18 @@ var merge = {exports: {}};
6581
6603
  }
6582
6604
  return obj;
6583
6605
  }
6584
- module.exports = exports$1.default;
6585
- module.exports.default = exports$1.default;
6606
+ module.exports = exports.default;
6607
+ module.exports.default = exports.default;
6586
6608
  } (merge, merge.exports));
6587
6609
 
6588
6610
  var mergeExports = merge.exports;
6589
6611
 
6590
- (function (module, exports$1) {
6612
+ (function (module, exports) {
6591
6613
 
6592
- Object.defineProperty(exports$1, "__esModule", {
6614
+ Object.defineProperty(exports, "__esModule", {
6593
6615
  value: true
6594
6616
  });
6595
- exports$1.default = contains;
6617
+ exports.default = contains;
6596
6618
  var _assertString = _interopRequireDefault(assertStringExports);
6597
6619
  var _toString = _interopRequireDefault(toStringExports);
6598
6620
  var _merge = _interopRequireDefault(mergeExports);
@@ -6609,20 +6631,20 @@ var mergeExports = merge.exports;
6609
6631
  }
6610
6632
  return str.split((0, _toString.default)(elem)).length > options.minOccurrences;
6611
6633
  }
6612
- module.exports = exports$1.default;
6613
- module.exports.default = exports$1.default;
6634
+ module.exports = exports.default;
6635
+ module.exports.default = exports.default;
6614
6636
  } (contains, contains.exports));
6615
6637
 
6616
6638
  var containsExports = contains.exports;
6617
6639
 
6618
6640
  var matches = {exports: {}};
6619
6641
 
6620
- (function (module, exports$1) {
6642
+ (function (module, exports) {
6621
6643
 
6622
- Object.defineProperty(exports$1, "__esModule", {
6644
+ Object.defineProperty(exports, "__esModule", {
6623
6645
  value: true
6624
6646
  });
6625
- exports$1.default = matches;
6647
+ exports.default = matches;
6626
6648
  var _assertString = _interopRequireDefault(assertStringExports);
6627
6649
  function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
6628
6650
  function matches(str, pattern, modifiers) {
@@ -6632,8 +6654,8 @@ var matches = {exports: {}};
6632
6654
  }
6633
6655
  return !!str.match(pattern);
6634
6656
  }
6635
- module.exports = exports$1.default;
6636
- module.exports.default = exports$1.default;
6657
+ module.exports = exports.default;
6658
+ module.exports.default = exports.default;
6637
6659
  } (matches, matches.exports));
6638
6660
 
6639
6661
  var matchesExports = matches.exports;
@@ -6642,12 +6664,12 @@ var isEmail = {exports: {}};
6642
6664
 
6643
6665
  var checkHost = {exports: {}};
6644
6666
 
6645
- (function (module, exports$1) {
6667
+ (function (module, exports) {
6646
6668
 
6647
- Object.defineProperty(exports$1, "__esModule", {
6669
+ Object.defineProperty(exports, "__esModule", {
6648
6670
  value: true
6649
6671
  });
6650
- exports$1.default = checkHost;
6672
+ exports.default = checkHost;
6651
6673
  function isRegExp(obj) {
6652
6674
  return Object.prototype.toString.call(obj) === '[object RegExp]';
6653
6675
  }
@@ -6660,20 +6682,20 @@ var checkHost = {exports: {}};
6660
6682
  }
6661
6683
  return false;
6662
6684
  }
6663
- module.exports = exports$1.default;
6664
- module.exports.default = exports$1.default;
6685
+ module.exports = exports.default;
6686
+ module.exports.default = exports.default;
6665
6687
  } (checkHost, checkHost.exports));
6666
6688
 
6667
6689
  var checkHostExports = checkHost.exports;
6668
6690
 
6669
6691
  var isByteLength = {exports: {}};
6670
6692
 
6671
- (function (module, exports$1) {
6693
+ (function (module, exports) {
6672
6694
 
6673
- Object.defineProperty(exports$1, "__esModule", {
6695
+ Object.defineProperty(exports, "__esModule", {
6674
6696
  value: true
6675
6697
  });
6676
- exports$1.default = isByteLength;
6698
+ exports.default = isByteLength;
6677
6699
  var _assertString = _interopRequireDefault(assertStringExports);
6678
6700
  function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
6679
6701
  function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
@@ -6693,20 +6715,20 @@ var isByteLength = {exports: {}};
6693
6715
  var len = encodeURI(str).split(/%..|./).length - 1;
6694
6716
  return len >= min && (typeof max === 'undefined' || len <= max);
6695
6717
  }
6696
- module.exports = exports$1.default;
6697
- module.exports.default = exports$1.default;
6718
+ module.exports = exports.default;
6719
+ module.exports.default = exports.default;
6698
6720
  } (isByteLength, isByteLength.exports));
6699
6721
 
6700
6722
  var isByteLengthExports = isByteLength.exports;
6701
6723
 
6702
6724
  var isFQDN = {exports: {}};
6703
6725
 
6704
- (function (module, exports$1) {
6726
+ (function (module, exports) {
6705
6727
 
6706
- Object.defineProperty(exports$1, "__esModule", {
6728
+ Object.defineProperty(exports, "__esModule", {
6707
6729
  value: true
6708
6730
  });
6709
- exports$1.default = isFQDN;
6731
+ exports.default = isFQDN;
6710
6732
  var _assertString = _interopRequireDefault(assertStringExports);
6711
6733
  var _merge = _interopRequireDefault(mergeExports);
6712
6734
  function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
@@ -6775,20 +6797,20 @@ var isFQDN = {exports: {}};
6775
6797
  return true;
6776
6798
  });
6777
6799
  }
6778
- module.exports = exports$1.default;
6779
- module.exports.default = exports$1.default;
6800
+ module.exports = exports.default;
6801
+ module.exports.default = exports.default;
6780
6802
  } (isFQDN, isFQDN.exports));
6781
6803
 
6782
6804
  var isFQDNExports = isFQDN.exports;
6783
6805
 
6784
6806
  var isIP = {exports: {}};
6785
6807
 
6786
- (function (module, exports$1) {
6808
+ (function (module, exports) {
6787
6809
 
6788
- Object.defineProperty(exports$1, "__esModule", {
6810
+ Object.defineProperty(exports, "__esModule", {
6789
6811
  value: true
6790
6812
  });
6791
- exports$1.default = isIP;
6813
+ exports.default = isIP;
6792
6814
  var _assertString = _interopRequireDefault(assertStringExports);
6793
6815
  function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
6794
6816
  function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
@@ -6848,18 +6870,18 @@ var isIP = {exports: {}};
6848
6870
  }
6849
6871
  return false;
6850
6872
  }
6851
- module.exports = exports$1.default;
6852
- module.exports.default = exports$1.default;
6873
+ module.exports = exports.default;
6874
+ module.exports.default = exports.default;
6853
6875
  } (isIP, isIP.exports));
6854
6876
 
6855
6877
  var isIPExports = isIP.exports;
6856
6878
 
6857
- (function (module, exports$1) {
6879
+ (function (module, exports) {
6858
6880
 
6859
- Object.defineProperty(exports$1, "__esModule", {
6881
+ Object.defineProperty(exports, "__esModule", {
6860
6882
  value: true
6861
6883
  });
6862
- exports$1.default = isEmail;
6884
+ exports.default = isEmail;
6863
6885
  var _assertString = _interopRequireDefault(assertStringExports);
6864
6886
  var _checkHost = _interopRequireDefault(checkHostExports);
6865
6887
  var _isByteLength = _interopRequireDefault(isByteLengthExports);
@@ -7026,8 +7048,8 @@ var isIPExports = isIP.exports;
7026
7048
  }
7027
7049
  return true;
7028
7050
  }
7029
- module.exports = exports$1.default;
7030
- module.exports.default = exports$1.default;
7051
+ module.exports = exports.default;
7052
+ module.exports.default = exports.default;
7031
7053
  } (isEmail, isEmail.exports));
7032
7054
 
7033
7055
  var isEmailExports = isEmail.exports;
@@ -7036,28 +7058,28 @@ var isURL = {exports: {}};
7036
7058
 
7037
7059
  var includesString = {exports: {}};
7038
7060
 
7039
- (function (module, exports$1) {
7061
+ (function (module, exports) {
7040
7062
 
7041
- Object.defineProperty(exports$1, "__esModule", {
7063
+ Object.defineProperty(exports, "__esModule", {
7042
7064
  value: true
7043
7065
  });
7044
- exports$1.default = void 0;
7066
+ exports.default = void 0;
7045
7067
  var includes = function includes(str, val) {
7046
7068
  return str.indexOf(val) !== -1;
7047
7069
  };
7048
- exports$1.default = includes;
7049
- module.exports = exports$1.default;
7050
- module.exports.default = exports$1.default;
7070
+ exports.default = includes;
7071
+ module.exports = exports.default;
7072
+ module.exports.default = exports.default;
7051
7073
  } (includesString, includesString.exports));
7052
7074
 
7053
7075
  var includesStringExports = includesString.exports;
7054
7076
 
7055
- (function (module, exports$1) {
7077
+ (function (module, exports) {
7056
7078
 
7057
- Object.defineProperty(exports$1, "__esModule", {
7079
+ Object.defineProperty(exports, "__esModule", {
7058
7080
  value: true
7059
7081
  });
7060
- exports$1.default = isURL;
7082
+ exports.default = isURL;
7061
7083
  var _assertString = _interopRequireDefault(assertStringExports);
7062
7084
  var _checkHost = _interopRequireDefault(checkHostExports);
7063
7085
  var _includesString = _interopRequireDefault(includesStringExports);
@@ -7299,20 +7321,20 @@ var includesStringExports = includesString.exports;
7299
7321
  }
7300
7322
  return true;
7301
7323
  }
7302
- module.exports = exports$1.default;
7303
- module.exports.default = exports$1.default;
7324
+ module.exports = exports.default;
7325
+ module.exports.default = exports.default;
7304
7326
  } (isURL, isURL.exports));
7305
7327
 
7306
7328
  var isURLExports = isURL.exports;
7307
7329
 
7308
7330
  var isMACAddress = {exports: {}};
7309
7331
 
7310
- (function (module, exports$1) {
7332
+ (function (module, exports) {
7311
7333
 
7312
- Object.defineProperty(exports$1, "__esModule", {
7334
+ Object.defineProperty(exports, "__esModule", {
7313
7335
  value: true
7314
7336
  });
7315
- exports$1.default = isMACAddress;
7337
+ exports.default = isMACAddress;
7316
7338
  var _assertString = _interopRequireDefault(assertStringExports);
7317
7339
  function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
7318
7340
  var macAddress48 = /^(?:[0-9a-fA-F]{2}([-:\s]))([0-9a-fA-F]{2}\1){4}([0-9a-fA-F]{2})$/;
@@ -7350,20 +7372,20 @@ var isMACAddress = {exports: {}};
7350
7372
  eui: '64'
7351
7373
  });
7352
7374
  }
7353
- module.exports = exports$1.default;
7354
- module.exports.default = exports$1.default;
7375
+ module.exports = exports.default;
7376
+ module.exports.default = exports.default;
7355
7377
  } (isMACAddress, isMACAddress.exports));
7356
7378
 
7357
7379
  var isMACAddressExports = isMACAddress.exports;
7358
7380
 
7359
7381
  var isIPRange = {exports: {}};
7360
7382
 
7361
- (function (module, exports$1) {
7383
+ (function (module, exports) {
7362
7384
 
7363
- Object.defineProperty(exports$1, "__esModule", {
7385
+ Object.defineProperty(exports, "__esModule", {
7364
7386
  value: true
7365
7387
  });
7366
- exports$1.default = isIPRange;
7388
+ exports.default = isIPRange;
7367
7389
  var _assertString = _interopRequireDefault(assertStringExports);
7368
7390
  var _isIP = _interopRequireDefault(isIPExports);
7369
7391
  function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
@@ -7406,20 +7428,20 @@ var isIPRange = {exports: {}};
7406
7428
  }
7407
7429
  return parts[1] <= expectedSubnet && parts[1] >= 0;
7408
7430
  }
7409
- module.exports = exports$1.default;
7410
- module.exports.default = exports$1.default;
7431
+ module.exports = exports.default;
7432
+ module.exports.default = exports.default;
7411
7433
  } (isIPRange, isIPRange.exports));
7412
7434
 
7413
7435
  var isIPRangeExports = isIPRange.exports;
7414
7436
 
7415
7437
  var isDate$1 = {exports: {}};
7416
7438
 
7417
- (function (module, exports$1) {
7439
+ (function (module, exports) {
7418
7440
 
7419
- Object.defineProperty(exports$1, "__esModule", {
7441
+ Object.defineProperty(exports, "__esModule", {
7420
7442
  value: true
7421
7443
  });
7422
- exports$1.default = isDate;
7444
+ exports.default = isDate;
7423
7445
  var _merge = _interopRequireDefault(mergeExports);
7424
7446
  function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
7425
7447
  function _slicedToArray(r, e) { return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest(); }
@@ -7514,20 +7536,20 @@ var isDate$1 = {exports: {}};
7514
7536
  }
7515
7537
  return false;
7516
7538
  }
7517
- module.exports = exports$1.default;
7518
- module.exports.default = exports$1.default;
7539
+ module.exports = exports.default;
7540
+ module.exports.default = exports.default;
7519
7541
  } (isDate$1, isDate$1.exports));
7520
7542
 
7521
7543
  var isDateExports = isDate$1.exports;
7522
7544
 
7523
7545
  var isTime = {exports: {}};
7524
7546
 
7525
- (function (module, exports$1) {
7547
+ (function (module, exports) {
7526
7548
 
7527
- Object.defineProperty(exports$1, "__esModule", {
7549
+ Object.defineProperty(exports, "__esModule", {
7528
7550
  value: true
7529
7551
  });
7530
- exports$1.default = isTime;
7552
+ exports.default = isTime;
7531
7553
  var _merge = _interopRequireDefault(mergeExports);
7532
7554
  function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
7533
7555
  var default_time_options = {
@@ -7551,8 +7573,8 @@ var isTime = {exports: {}};
7551
7573
  if (typeof input !== 'string') return false;
7552
7574
  return formats[options.hourFormat][options.mode].test(input);
7553
7575
  }
7554
- module.exports = exports$1.default;
7555
- module.exports.default = exports$1.default;
7576
+ module.exports = exports.default;
7577
+ module.exports.default = exports.default;
7556
7578
  } (isTime, isTime.exports));
7557
7579
 
7558
7580
  var isTimeExports = isTime.exports;
@@ -7561,30 +7583,30 @@ var isBoolean = {exports: {}};
7561
7583
 
7562
7584
  var includesArray = {exports: {}};
7563
7585
 
7564
- (function (module, exports$1) {
7586
+ (function (module, exports) {
7565
7587
 
7566
- Object.defineProperty(exports$1, "__esModule", {
7588
+ Object.defineProperty(exports, "__esModule", {
7567
7589
  value: true
7568
7590
  });
7569
- exports$1.default = void 0;
7591
+ exports.default = void 0;
7570
7592
  var includes = function includes(arr, val) {
7571
7593
  return arr.some(function (arrVal) {
7572
7594
  return val === arrVal;
7573
7595
  });
7574
7596
  };
7575
- exports$1.default = includes;
7576
- module.exports = exports$1.default;
7577
- module.exports.default = exports$1.default;
7597
+ exports.default = includes;
7598
+ module.exports = exports.default;
7599
+ module.exports.default = exports.default;
7578
7600
  } (includesArray, includesArray.exports));
7579
7601
 
7580
7602
  var includesArrayExports = includesArray.exports;
7581
7603
 
7582
- (function (module, exports$1) {
7604
+ (function (module, exports) {
7583
7605
 
7584
- Object.defineProperty(exports$1, "__esModule", {
7606
+ Object.defineProperty(exports, "__esModule", {
7585
7607
  value: true
7586
7608
  });
7587
- exports$1.default = isBoolean;
7609
+ exports.default = isBoolean;
7588
7610
  var _assertString = _interopRequireDefault(assertStringExports);
7589
7611
  var _includesArray = _interopRequireDefault(includesArrayExports);
7590
7612
  function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
@@ -7601,20 +7623,20 @@ var includesArrayExports = includesArray.exports;
7601
7623
  }
7602
7624
  return (0, _includesArray.default)(strictBooleans, str);
7603
7625
  }
7604
- module.exports = exports$1.default;
7605
- module.exports.default = exports$1.default;
7626
+ module.exports = exports.default;
7627
+ module.exports.default = exports.default;
7606
7628
  } (isBoolean, isBoolean.exports));
7607
7629
 
7608
7630
  var isBooleanExports = isBoolean.exports;
7609
7631
 
7610
7632
  var isLocale = {exports: {}};
7611
7633
 
7612
- (function (module, exports$1) {
7634
+ (function (module, exports) {
7613
7635
 
7614
- Object.defineProperty(exports$1, "__esModule", {
7636
+ Object.defineProperty(exports, "__esModule", {
7615
7637
  value: true
7616
7638
  });
7617
- exports$1.default = isLocale;
7639
+ exports.default = isLocale;
7618
7640
  var _assertString = _interopRequireDefault(assertStringExports);
7619
7641
  function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
7620
7642
  /*
@@ -7722,20 +7744,20 @@ var isLocale = {exports: {}};
7722
7744
  (0, _assertString.default)(str);
7723
7745
  return languageTagRegex.test(str);
7724
7746
  }
7725
- module.exports = exports$1.default;
7726
- module.exports.default = exports$1.default;
7747
+ module.exports = exports.default;
7748
+ module.exports.default = exports.default;
7727
7749
  } (isLocale, isLocale.exports));
7728
7750
 
7729
7751
  var isLocaleExports = isLocale.exports;
7730
7752
 
7731
7753
  var isAbaRouting = {exports: {}};
7732
7754
 
7733
- (function (module, exports$1) {
7755
+ (function (module, exports) {
7734
7756
 
7735
- Object.defineProperty(exports$1, "__esModule", {
7757
+ Object.defineProperty(exports, "__esModule", {
7736
7758
  value: true
7737
7759
  });
7738
- exports$1.default = isAbaRouting;
7760
+ exports.default = isAbaRouting;
7739
7761
  var _assertString = _interopRequireDefault(assertStringExports);
7740
7762
  function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
7741
7763
  // http://www.brainjar.com/js/validation/
@@ -7751,8 +7773,8 @@ var isAbaRouting = {exports: {}};
7751
7773
  }
7752
7774
  return checkSumVal % 10 === 0;
7753
7775
  }
7754
- module.exports = exports$1.default;
7755
- module.exports.default = exports$1.default;
7776
+ module.exports = exports.default;
7777
+ module.exports.default = exports.default;
7756
7778
  } (isAbaRouting, isAbaRouting.exports));
7757
7779
 
7758
7780
  var isAbaRoutingExports = isAbaRouting.exports;
@@ -7823,12 +7845,12 @@ isAlphanumeric$1.locales = Object.keys(_alpha.alphanumeric);
7823
7845
 
7824
7846
  var isNumeric = {exports: {}};
7825
7847
 
7826
- (function (module, exports$1) {
7848
+ (function (module, exports) {
7827
7849
 
7828
- Object.defineProperty(exports$1, "__esModule", {
7850
+ Object.defineProperty(exports, "__esModule", {
7829
7851
  value: true
7830
7852
  });
7831
- exports$1.default = isNumeric;
7853
+ exports.default = isNumeric;
7832
7854
  var _assertString = _interopRequireDefault(assertStringExports);
7833
7855
  var _alpha = alpha$1;
7834
7856
  function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
@@ -7840,8 +7862,8 @@ var isNumeric = {exports: {}};
7840
7862
  }
7841
7863
  return new RegExp("^[+-]?([0-9]*[".concat((options || {}).locale ? _alpha.decimal[options.locale] : '.', "])?[0-9]+$")).test(str);
7842
7864
  }
7843
- module.exports = exports$1.default;
7844
- module.exports.default = exports$1.default;
7865
+ module.exports = exports.default;
7866
+ module.exports.default = exports.default;
7845
7867
  } (isNumeric, isNumeric.exports));
7846
7868
 
7847
7869
  var isNumericExports = isNumeric.exports;
@@ -7948,7 +7970,7 @@ var passportRegexByCountryCode = {
7948
7970
  // MOZAMBIQUE
7949
7971
  MY: /^[AHK]\d{8}$/,
7950
7972
  // MALAYSIA
7951
- MX: /^\d{10,11}$/,
7973
+ MX: /^[A-Z]\d{8}$/,
7952
7974
  // MEXICO
7953
7975
  NL: /^[A-Z]{2}[A-Z0-9]{6}\d$/,
7954
7976
  // NETHERLANDS
@@ -8003,12 +8025,12 @@ var isPort = {exports: {}};
8003
8025
 
8004
8026
  var isInt$1 = {exports: {}};
8005
8027
 
8006
- (function (module, exports$1) {
8028
+ (function (module, exports) {
8007
8029
 
8008
- Object.defineProperty(exports$1, "__esModule", {
8030
+ Object.defineProperty(exports, "__esModule", {
8009
8031
  value: true
8010
8032
  });
8011
- exports$1.default = isInt;
8033
+ exports.default = isInt;
8012
8034
  var _assertString = _interopRequireDefault(assertStringExports);
8013
8035
  var _nullUndefinedCheck = _interopRequireDefault(nullUndefinedCheckExports);
8014
8036
  function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
@@ -8029,18 +8051,18 @@ var isInt$1 = {exports: {}};
8029
8051
  var gtCheckPassed = !options.hasOwnProperty('gt') || (0, _nullUndefinedCheck.default)(options.gt) || str > options.gt;
8030
8052
  return regex.test(str) && minCheckPassed && maxCheckPassed && ltCheckPassed && gtCheckPassed;
8031
8053
  }
8032
- module.exports = exports$1.default;
8033
- module.exports.default = exports$1.default;
8054
+ module.exports = exports.default;
8055
+ module.exports.default = exports.default;
8034
8056
  } (isInt$1, isInt$1.exports));
8035
8057
 
8036
8058
  var isIntExports = isInt$1.exports;
8037
8059
 
8038
- (function (module, exports$1) {
8060
+ (function (module, exports) {
8039
8061
 
8040
- Object.defineProperty(exports$1, "__esModule", {
8062
+ Object.defineProperty(exports, "__esModule", {
8041
8063
  value: true
8042
8064
  });
8043
- exports$1.default = isPort;
8065
+ exports.default = isPort;
8044
8066
  var _isInt = _interopRequireDefault(isIntExports);
8045
8067
  function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
8046
8068
  function isPort(str) {
@@ -8050,60 +8072,60 @@ var isIntExports = isInt$1.exports;
8050
8072
  max: 65535
8051
8073
  });
8052
8074
  }
8053
- module.exports = exports$1.default;
8054
- module.exports.default = exports$1.default;
8075
+ module.exports = exports.default;
8076
+ module.exports.default = exports.default;
8055
8077
  } (isPort, isPort.exports));
8056
8078
 
8057
8079
  var isPortExports = isPort.exports;
8058
8080
 
8059
8081
  var isLowercase = {exports: {}};
8060
8082
 
8061
- (function (module, exports$1) {
8083
+ (function (module, exports) {
8062
8084
 
8063
- Object.defineProperty(exports$1, "__esModule", {
8085
+ Object.defineProperty(exports, "__esModule", {
8064
8086
  value: true
8065
8087
  });
8066
- exports$1.default = isLowercase;
8088
+ exports.default = isLowercase;
8067
8089
  var _assertString = _interopRequireDefault(assertStringExports);
8068
8090
  function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
8069
8091
  function isLowercase(str) {
8070
8092
  (0, _assertString.default)(str);
8071
8093
  return str === str.toLowerCase();
8072
8094
  }
8073
- module.exports = exports$1.default;
8074
- module.exports.default = exports$1.default;
8095
+ module.exports = exports.default;
8096
+ module.exports.default = exports.default;
8075
8097
  } (isLowercase, isLowercase.exports));
8076
8098
 
8077
8099
  var isLowercaseExports = isLowercase.exports;
8078
8100
 
8079
8101
  var isUppercase = {exports: {}};
8080
8102
 
8081
- (function (module, exports$1) {
8103
+ (function (module, exports) {
8082
8104
 
8083
- Object.defineProperty(exports$1, "__esModule", {
8105
+ Object.defineProperty(exports, "__esModule", {
8084
8106
  value: true
8085
8107
  });
8086
- exports$1.default = isUppercase;
8108
+ exports.default = isUppercase;
8087
8109
  var _assertString = _interopRequireDefault(assertStringExports);
8088
8110
  function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
8089
8111
  function isUppercase(str) {
8090
8112
  (0, _assertString.default)(str);
8091
8113
  return str === str.toUpperCase();
8092
8114
  }
8093
- module.exports = exports$1.default;
8094
- module.exports.default = exports$1.default;
8115
+ module.exports = exports.default;
8116
+ module.exports.default = exports.default;
8095
8117
  } (isUppercase, isUppercase.exports));
8096
8118
 
8097
8119
  var isUppercaseExports = isUppercase.exports;
8098
8120
 
8099
8121
  var isIMEI = {exports: {}};
8100
8122
 
8101
- (function (module, exports$1) {
8123
+ (function (module, exports) {
8102
8124
 
8103
- Object.defineProperty(exports$1, "__esModule", {
8125
+ Object.defineProperty(exports, "__esModule", {
8104
8126
  value: true
8105
8127
  });
8106
- exports$1.default = isIMEI;
8128
+ exports.default = isIMEI;
8107
8129
  var _assertString = _interopRequireDefault(assertStringExports);
8108
8130
  function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
8109
8131
  var imeiRegexWithoutHyphens = /^[0-9]{15}$/;
@@ -8145,20 +8167,20 @@ var isIMEI = {exports: {}};
8145
8167
  }
8146
8168
  return true;
8147
8169
  }
8148
- module.exports = exports$1.default;
8149
- module.exports.default = exports$1.default;
8170
+ module.exports = exports.default;
8171
+ module.exports.default = exports.default;
8150
8172
  } (isIMEI, isIMEI.exports));
8151
8173
 
8152
8174
  var isIMEIExports = isIMEI.exports;
8153
8175
 
8154
8176
  var isAscii = {exports: {}};
8155
8177
 
8156
- (function (module, exports$1) {
8178
+ (function (module, exports) {
8157
8179
 
8158
- Object.defineProperty(exports$1, "__esModule", {
8180
+ Object.defineProperty(exports, "__esModule", {
8159
8181
  value: true
8160
8182
  });
8161
- exports$1.default = isAscii;
8183
+ exports.default = isAscii;
8162
8184
  var _assertString = _interopRequireDefault(assertStringExports);
8163
8185
  function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
8164
8186
  /* eslint-disable no-control-regex */
@@ -8169,8 +8191,8 @@ var isAscii = {exports: {}};
8169
8191
  (0, _assertString.default)(str);
8170
8192
  return ascii.test(str);
8171
8193
  }
8172
- module.exports = exports$1.default;
8173
- module.exports.default = exports$1.default;
8194
+ module.exports = exports.default;
8195
+ module.exports.default = exports.default;
8174
8196
  } (isAscii, isAscii.exports));
8175
8197
 
8176
8198
  var isAsciiExports = isAscii.exports;
@@ -8207,12 +8229,12 @@ function isHalfWidth(str) {
8207
8229
 
8208
8230
  var isVariableWidth = {exports: {}};
8209
8231
 
8210
- (function (module, exports$1) {
8232
+ (function (module, exports) {
8211
8233
 
8212
- Object.defineProperty(exports$1, "__esModule", {
8234
+ Object.defineProperty(exports, "__esModule", {
8213
8235
  value: true
8214
8236
  });
8215
- exports$1.default = isVariableWidth;
8237
+ exports.default = isVariableWidth;
8216
8238
  var _assertString = _interopRequireDefault(assertStringExports);
8217
8239
  var _isFullWidth = isFullWidth$1;
8218
8240
  var _isHalfWidth = isHalfWidth$1;
@@ -8221,20 +8243,20 @@ var isVariableWidth = {exports: {}};
8221
8243
  (0, _assertString.default)(str);
8222
8244
  return _isFullWidth.fullWidth.test(str) && _isHalfWidth.halfWidth.test(str);
8223
8245
  }
8224
- module.exports = exports$1.default;
8225
- module.exports.default = exports$1.default;
8246
+ module.exports = exports.default;
8247
+ module.exports.default = exports.default;
8226
8248
  } (isVariableWidth, isVariableWidth.exports));
8227
8249
 
8228
8250
  var isVariableWidthExports = isVariableWidth.exports;
8229
8251
 
8230
8252
  var isMultibyte = {exports: {}};
8231
8253
 
8232
- (function (module, exports$1) {
8254
+ (function (module, exports) {
8233
8255
 
8234
- Object.defineProperty(exports$1, "__esModule", {
8256
+ Object.defineProperty(exports, "__esModule", {
8235
8257
  value: true
8236
8258
  });
8237
- exports$1.default = isMultibyte;
8259
+ exports.default = isMultibyte;
8238
8260
  var _assertString = _interopRequireDefault(assertStringExports);
8239
8261
  function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
8240
8262
  /* eslint-disable no-control-regex */
@@ -8245,8 +8267,8 @@ var isMultibyte = {exports: {}};
8245
8267
  (0, _assertString.default)(str);
8246
8268
  return multibyte.test(str);
8247
8269
  }
8248
- module.exports = exports$1.default;
8249
- module.exports.default = exports$1.default;
8270
+ module.exports = exports.default;
8271
+ module.exports.default = exports.default;
8250
8272
  } (isMultibyte, isMultibyte.exports));
8251
8273
 
8252
8274
  var isMultibyteExports = isMultibyte.exports;
@@ -8255,12 +8277,12 @@ var isSemVer = {exports: {}};
8255
8277
 
8256
8278
  var multilineRegex = {exports: {}};
8257
8279
 
8258
- (function (module, exports$1) {
8280
+ (function (module, exports) {
8259
8281
 
8260
- Object.defineProperty(exports$1, "__esModule", {
8282
+ Object.defineProperty(exports, "__esModule", {
8261
8283
  value: true
8262
8284
  });
8263
- exports$1.default = multilineRegexp;
8285
+ exports.default = multilineRegexp;
8264
8286
  /**
8265
8287
  * Build RegExp object from an array
8266
8288
  * of multiple/multi-line regexp parts
@@ -8273,18 +8295,18 @@ var multilineRegex = {exports: {}};
8273
8295
  var regexpAsStringLiteral = parts.join('');
8274
8296
  return new RegExp(regexpAsStringLiteral, flags);
8275
8297
  }
8276
- module.exports = exports$1.default;
8277
- module.exports.default = exports$1.default;
8298
+ module.exports = exports.default;
8299
+ module.exports.default = exports.default;
8278
8300
  } (multilineRegex, multilineRegex.exports));
8279
8301
 
8280
8302
  var multilineRegexExports = multilineRegex.exports;
8281
8303
 
8282
- (function (module, exports$1) {
8304
+ (function (module, exports) {
8283
8305
 
8284
- Object.defineProperty(exports$1, "__esModule", {
8306
+ Object.defineProperty(exports, "__esModule", {
8285
8307
  value: true
8286
8308
  });
8287
- exports$1.default = isSemVer;
8309
+ exports.default = isSemVer;
8288
8310
  var _assertString = _interopRequireDefault(assertStringExports);
8289
8311
  var _multilineRegex = _interopRequireDefault(multilineRegexExports);
8290
8312
  function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
@@ -8299,20 +8321,20 @@ var multilineRegexExports = multilineRegex.exports;
8299
8321
  (0, _assertString.default)(str);
8300
8322
  return semanticVersioningRegex.test(str);
8301
8323
  }
8302
- module.exports = exports$1.default;
8303
- module.exports.default = exports$1.default;
8324
+ module.exports = exports.default;
8325
+ module.exports.default = exports.default;
8304
8326
  } (isSemVer, isSemVer.exports));
8305
8327
 
8306
8328
  var isSemVerExports = isSemVer.exports;
8307
8329
 
8308
8330
  var isSurrogatePair = {exports: {}};
8309
8331
 
8310
- (function (module, exports$1) {
8332
+ (function (module, exports) {
8311
8333
 
8312
- Object.defineProperty(exports$1, "__esModule", {
8334
+ Object.defineProperty(exports, "__esModule", {
8313
8335
  value: true
8314
8336
  });
8315
- exports$1.default = isSurrogatePair;
8337
+ exports.default = isSurrogatePair;
8316
8338
  var _assertString = _interopRequireDefault(assertStringExports);
8317
8339
  function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
8318
8340
  var surrogatePair = /[\uD800-\uDBFF][\uDC00-\uDFFF]/;
@@ -8320,20 +8342,20 @@ var isSurrogatePair = {exports: {}};
8320
8342
  (0, _assertString.default)(str);
8321
8343
  return surrogatePair.test(str);
8322
8344
  }
8323
- module.exports = exports$1.default;
8324
- module.exports.default = exports$1.default;
8345
+ module.exports = exports.default;
8346
+ module.exports.default = exports.default;
8325
8347
  } (isSurrogatePair, isSurrogatePair.exports));
8326
8348
 
8327
8349
  var isSurrogatePairExports = isSurrogatePair.exports;
8328
8350
 
8329
8351
  var isDecimal = {exports: {}};
8330
8352
 
8331
- (function (module, exports$1) {
8353
+ (function (module, exports) {
8332
8354
 
8333
- Object.defineProperty(exports$1, "__esModule", {
8355
+ Object.defineProperty(exports, "__esModule", {
8334
8356
  value: true
8335
8357
  });
8336
- exports$1.default = isDecimal;
8358
+ exports.default = isDecimal;
8337
8359
  var _merge = _interopRequireDefault(mergeExports);
8338
8360
  var _assertString = _interopRequireDefault(assertStringExports);
8339
8361
  var _includesArray = _interopRequireDefault(includesArrayExports);
@@ -8357,20 +8379,20 @@ var isDecimal = {exports: {}};
8357
8379
  }
8358
8380
  throw new Error("Invalid locale '".concat(options.locale, "'"));
8359
8381
  }
8360
- module.exports = exports$1.default;
8361
- module.exports.default = exports$1.default;
8382
+ module.exports = exports.default;
8383
+ module.exports.default = exports.default;
8362
8384
  } (isDecimal, isDecimal.exports));
8363
8385
 
8364
8386
  var isDecimalExports = isDecimal.exports;
8365
8387
 
8366
8388
  var isHexadecimal = {exports: {}};
8367
8389
 
8368
- (function (module, exports$1) {
8390
+ (function (module, exports) {
8369
8391
 
8370
- Object.defineProperty(exports$1, "__esModule", {
8392
+ Object.defineProperty(exports, "__esModule", {
8371
8393
  value: true
8372
8394
  });
8373
- exports$1.default = isHexadecimal;
8395
+ exports.default = isHexadecimal;
8374
8396
  var _assertString = _interopRequireDefault(assertStringExports);
8375
8397
  function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
8376
8398
  var hexadecimal = /^(0x|0h)?[0-9A-F]+$/i;
@@ -8378,20 +8400,20 @@ var isHexadecimal = {exports: {}};
8378
8400
  (0, _assertString.default)(str);
8379
8401
  return hexadecimal.test(str);
8380
8402
  }
8381
- module.exports = exports$1.default;
8382
- module.exports.default = exports$1.default;
8403
+ module.exports = exports.default;
8404
+ module.exports.default = exports.default;
8383
8405
  } (isHexadecimal, isHexadecimal.exports));
8384
8406
 
8385
8407
  var isHexadecimalExports = isHexadecimal.exports;
8386
8408
 
8387
8409
  var isOctal = {exports: {}};
8388
8410
 
8389
- (function (module, exports$1) {
8411
+ (function (module, exports) {
8390
8412
 
8391
- Object.defineProperty(exports$1, "__esModule", {
8413
+ Object.defineProperty(exports, "__esModule", {
8392
8414
  value: true
8393
8415
  });
8394
- exports$1.default = isOctal;
8416
+ exports.default = isOctal;
8395
8417
  var _assertString = _interopRequireDefault(assertStringExports);
8396
8418
  function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
8397
8419
  var octal = /^(0o)?[0-7]+$/i;
@@ -8399,20 +8421,20 @@ var isOctal = {exports: {}};
8399
8421
  (0, _assertString.default)(str);
8400
8422
  return octal.test(str);
8401
8423
  }
8402
- module.exports = exports$1.default;
8403
- module.exports.default = exports$1.default;
8424
+ module.exports = exports.default;
8425
+ module.exports.default = exports.default;
8404
8426
  } (isOctal, isOctal.exports));
8405
8427
 
8406
8428
  var isOctalExports = isOctal.exports;
8407
8429
 
8408
8430
  var isDivisibleBy = {exports: {}};
8409
8431
 
8410
- (function (module, exports$1) {
8432
+ (function (module, exports) {
8411
8433
 
8412
- Object.defineProperty(exports$1, "__esModule", {
8434
+ Object.defineProperty(exports, "__esModule", {
8413
8435
  value: true
8414
8436
  });
8415
- exports$1.default = isDivisibleBy;
8437
+ exports.default = isDivisibleBy;
8416
8438
  var _assertString = _interopRequireDefault(assertStringExports);
8417
8439
  var _toFloat = _interopRequireDefault(toFloatExports);
8418
8440
  function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
@@ -8420,20 +8442,20 @@ var isDivisibleBy = {exports: {}};
8420
8442
  (0, _assertString.default)(str);
8421
8443
  return (0, _toFloat.default)(str) % parseInt(num, 10) === 0;
8422
8444
  }
8423
- module.exports = exports$1.default;
8424
- module.exports.default = exports$1.default;
8445
+ module.exports = exports.default;
8446
+ module.exports.default = exports.default;
8425
8447
  } (isDivisibleBy, isDivisibleBy.exports));
8426
8448
 
8427
8449
  var isDivisibleByExports = isDivisibleBy.exports;
8428
8450
 
8429
8451
  var isHexColor = {exports: {}};
8430
8452
 
8431
- (function (module, exports$1) {
8453
+ (function (module, exports) {
8432
8454
 
8433
- Object.defineProperty(exports$1, "__esModule", {
8455
+ Object.defineProperty(exports, "__esModule", {
8434
8456
  value: true
8435
8457
  });
8436
- exports$1.default = isHexColor;
8458
+ exports.default = isHexColor;
8437
8459
  var _assertString = _interopRequireDefault(assertStringExports);
8438
8460
  var _merge = _interopRequireDefault(mergeExports);
8439
8461
  function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
@@ -8448,20 +8470,20 @@ var isHexColor = {exports: {}};
8448
8470
  var hexcolor_regex = options.require_hashtag ? hexcolor_with_prefix : hexcolor;
8449
8471
  return hexcolor_regex.test(str);
8450
8472
  }
8451
- module.exports = exports$1.default;
8452
- module.exports.default = exports$1.default;
8473
+ module.exports = exports.default;
8474
+ module.exports.default = exports.default;
8453
8475
  } (isHexColor, isHexColor.exports));
8454
8476
 
8455
8477
  var isHexColorExports = isHexColor.exports;
8456
8478
 
8457
8479
  var isRgbColor = {exports: {}};
8458
8480
 
8459
- (function (module, exports$1) {
8481
+ (function (module, exports) {
8460
8482
 
8461
- Object.defineProperty(exports$1, "__esModule", {
8483
+ Object.defineProperty(exports, "__esModule", {
8462
8484
  value: true
8463
8485
  });
8464
- exports$1.default = isRgbColor;
8486
+ exports.default = isRgbColor;
8465
8487
  var _assertString = _interopRequireDefault(assertStringExports);
8466
8488
  function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
8467
8489
  function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); } /* eslint-disable prefer-rest-params */
@@ -8484,7 +8506,7 @@ var isRgbColor = {exports: {}};
8484
8506
  includePercentValues = options.includePercentValues !== undefined ? options.includePercentValues : includePercentValues;
8485
8507
  }
8486
8508
  if (allowSpaces) {
8487
- // make sure it starts with continous rgba? without spaces before stripping
8509
+ // make sure it starts with continuous rgba? without spaces before stripping
8488
8510
  if (!startsWithRgb.test(str)) {
8489
8511
  return false;
8490
8512
  }
@@ -8496,20 +8518,20 @@ var isRgbColor = {exports: {}};
8496
8518
  }
8497
8519
  return rgbColor.test(str) || rgbaColor.test(str) || rgbColorPercent.test(str) || rgbaColorPercent.test(str);
8498
8520
  }
8499
- module.exports = exports$1.default;
8500
- module.exports.default = exports$1.default;
8521
+ module.exports = exports.default;
8522
+ module.exports.default = exports.default;
8501
8523
  } (isRgbColor, isRgbColor.exports));
8502
8524
 
8503
8525
  var isRgbColorExports = isRgbColor.exports;
8504
8526
 
8505
8527
  var isHSL = {exports: {}};
8506
8528
 
8507
- (function (module, exports$1) {
8529
+ (function (module, exports) {
8508
8530
 
8509
- Object.defineProperty(exports$1, "__esModule", {
8531
+ Object.defineProperty(exports, "__esModule", {
8510
8532
  value: true
8511
8533
  });
8512
- exports$1.default = isHSL;
8534
+ exports.default = isHSL;
8513
8535
  var _assertString = _interopRequireDefault(assertStringExports);
8514
8536
  function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
8515
8537
  var hslComma = /^hsla?\(((\+|\-)?([0-9]+(\.[0-9]+)?(e(\+|\-)?[0-9]+)?|\.[0-9]+(e(\+|\-)?[0-9]+)?))(deg|grad|rad|turn)?(,(\+|\-)?([0-9]+(\.[0-9]+)?(e(\+|\-)?[0-9]+)?|\.[0-9]+(e(\+|\-)?[0-9]+)?)%){2}(,((\+|\-)?([0-9]+(\.[0-9]+)?(e(\+|\-)?[0-9]+)?|\.[0-9]+(e(\+|\-)?[0-9]+)?)%?))?\)$/i;
@@ -8524,20 +8546,20 @@ var isHSL = {exports: {}};
8524
8546
  }
8525
8547
  return hslSpace.test(strippedStr);
8526
8548
  }
8527
- module.exports = exports$1.default;
8528
- module.exports.default = exports$1.default;
8549
+ module.exports = exports.default;
8550
+ module.exports.default = exports.default;
8529
8551
  } (isHSL, isHSL.exports));
8530
8552
 
8531
8553
  var isHSLExports = isHSL.exports;
8532
8554
 
8533
8555
  var isISRC = {exports: {}};
8534
8556
 
8535
- (function (module, exports$1) {
8557
+ (function (module, exports) {
8536
8558
 
8537
- Object.defineProperty(exports$1, "__esModule", {
8559
+ Object.defineProperty(exports, "__esModule", {
8538
8560
  value: true
8539
8561
  });
8540
- exports$1.default = isISRC;
8562
+ exports.default = isISRC;
8541
8563
  var _assertString = _interopRequireDefault(assertStringExports);
8542
8564
  function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
8543
8565
  // see http://isrc.ifpi.org/en/isrc-standard/code-syntax
@@ -8546,8 +8568,8 @@ var isISRC = {exports: {}};
8546
8568
  (0, _assertString.default)(str);
8547
8569
  return isrc.test(str);
8548
8570
  }
8549
- module.exports = exports$1.default;
8550
- module.exports.default = exports$1.default;
8571
+ module.exports = exports.default;
8572
+ module.exports.default = exports.default;
8551
8573
  } (isISRC, isISRC.exports));
8552
8574
 
8553
8575
  var isISRCExports = isISRC.exports;
@@ -8662,10 +8684,7 @@ function hasOnlyValidCountryCodes(countryCodeArray) {
8662
8684
  var countryCodeArrayFilteredWithObjectIbanCode = countryCodeArray.filter(function (countryCode) {
8663
8685
  return !(countryCode in ibanRegexThroughCountryCode);
8664
8686
  });
8665
- if (countryCodeArrayFilteredWithObjectIbanCode.length > 0) {
8666
- return false;
8667
- }
8668
- return true;
8687
+ return countryCodeArrayFilteredWithObjectIbanCode.length === 0;
8669
8688
  }
8670
8689
 
8671
8690
  /**
@@ -8747,18 +8766,30 @@ var _assertString$6 = _interopRequireDefault$6(assertStringExports);
8747
8766
  function _interopRequireDefault$6(e) { return e && e.__esModule ? e : { default: e }; }
8748
8767
  // from https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2
8749
8768
  var validISO31661Alpha2CountriesCodes = new Set(['AD', 'AE', 'AF', 'AG', 'AI', 'AL', 'AM', 'AO', 'AQ', 'AR', 'AS', 'AT', 'AU', 'AW', 'AX', 'AZ', 'BA', 'BB', 'BD', 'BE', 'BF', 'BG', 'BH', 'BI', 'BJ', 'BL', 'BM', 'BN', 'BO', 'BQ', 'BR', 'BS', 'BT', 'BV', 'BW', 'BY', 'BZ', 'CA', 'CC', 'CD', 'CF', 'CG', 'CH', 'CI', 'CK', 'CL', 'CM', 'CN', 'CO', 'CR', 'CU', 'CV', 'CW', 'CX', 'CY', 'CZ', 'DE', 'DJ', 'DK', 'DM', 'DO', 'DZ', 'EC', 'EE', 'EG', 'EH', 'ER', 'ES', 'ET', 'FI', 'FJ', 'FK', 'FM', 'FO', 'FR', 'GA', 'GB', 'GD', 'GE', 'GF', 'GG', 'GH', 'GI', 'GL', 'GM', 'GN', 'GP', 'GQ', 'GR', 'GS', 'GT', 'GU', 'GW', 'GY', 'HK', 'HM', 'HN', 'HR', 'HT', 'HU', 'ID', 'IE', 'IL', 'IM', 'IN', 'IO', 'IQ', 'IR', 'IS', 'IT', 'JE', 'JM', 'JO', 'JP', 'KE', 'KG', 'KH', 'KI', 'KM', 'KN', 'KP', 'KR', 'KW', 'KY', 'KZ', 'LA', 'LB', 'LC', 'LI', 'LK', 'LR', 'LS', 'LT', 'LU', 'LV', 'LY', 'MA', 'MC', 'MD', 'ME', 'MF', 'MG', 'MH', 'MK', 'ML', 'MM', 'MN', 'MO', 'MP', 'MQ', 'MR', 'MS', 'MT', 'MU', 'MV', 'MW', 'MX', 'MY', 'MZ', 'NA', 'NC', 'NE', 'NF', 'NG', 'NI', 'NL', 'NO', 'NP', 'NR', 'NU', 'NZ', 'OM', 'PA', 'PE', 'PF', 'PG', 'PH', 'PK', 'PL', 'PM', 'PN', 'PR', 'PS', 'PT', 'PW', 'PY', 'QA', 'RE', 'RO', 'RS', 'RU', 'RW', 'SA', 'SB', 'SC', 'SD', 'SE', 'SG', 'SH', 'SI', 'SJ', 'SK', 'SL', 'SM', 'SN', 'SO', 'SR', 'SS', 'ST', 'SV', 'SX', 'SY', 'SZ', 'TC', 'TD', 'TF', 'TG', 'TH', 'TJ', 'TK', 'TL', 'TM', 'TN', 'TO', 'TR', 'TT', 'TV', 'TW', 'TZ', 'UA', 'UG', 'UM', 'US', 'UY', 'UZ', 'VA', 'VC', 'VE', 'VG', 'VI', 'VN', 'VU', 'WF', 'WS', 'YE', 'YT', 'ZA', 'ZM', 'ZW']);
8769
+ var alpha2CountryCode = /^[a-zA-Z]{2}$/;
8750
8770
  function isISO31661Alpha2(str) {
8771
+ var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
8751
8772
  (0, _assertString$6.default)(str);
8773
+ var userAssignedCodes = options.userAssignedCodes;
8774
+ var validUserAssignedCodes = (userAssignedCodes || []).reduce(function (accumulator, userAssignedCode) {
8775
+ if (alpha2CountryCode.test(userAssignedCode)) {
8776
+ accumulator.push(userAssignedCode.toUpperCase());
8777
+ }
8778
+ return accumulator;
8779
+ }, []);
8780
+ if (validUserAssignedCodes.includes(str.toUpperCase())) {
8781
+ return true;
8782
+ }
8752
8783
  return validISO31661Alpha2CountriesCodes.has(str.toUpperCase());
8753
8784
  }
8754
8785
  isISO31661Alpha2$1.CountryCodes = validISO31661Alpha2CountriesCodes;
8755
8786
 
8756
- (function (module, exports$1) {
8787
+ (function (module, exports) {
8757
8788
 
8758
- Object.defineProperty(exports$1, "__esModule", {
8789
+ Object.defineProperty(exports, "__esModule", {
8759
8790
  value: true
8760
8791
  });
8761
- exports$1.default = isBIC;
8792
+ exports.default = isBIC;
8762
8793
  var _assertString = _interopRequireDefault(assertStringExports);
8763
8794
  var _isISO31661Alpha = isISO31661Alpha2$1;
8764
8795
  function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
@@ -8775,20 +8806,20 @@ isISO31661Alpha2$1.CountryCodes = validISO31661Alpha2CountriesCodes;
8775
8806
  }
8776
8807
  return isBICReg.test(str);
8777
8808
  }
8778
- module.exports = exports$1.default;
8779
- module.exports.default = exports$1.default;
8809
+ module.exports = exports.default;
8810
+ module.exports.default = exports.default;
8780
8811
  } (isBIC, isBIC.exports));
8781
8812
 
8782
8813
  var isBICExports = isBIC.exports;
8783
8814
 
8784
8815
  var isMD5 = {exports: {}};
8785
8816
 
8786
- (function (module, exports$1) {
8817
+ (function (module, exports) {
8787
8818
 
8788
- Object.defineProperty(exports$1, "__esModule", {
8819
+ Object.defineProperty(exports, "__esModule", {
8789
8820
  value: true
8790
8821
  });
8791
- exports$1.default = isMD5;
8822
+ exports.default = isMD5;
8792
8823
  var _assertString = _interopRequireDefault(assertStringExports);
8793
8824
  function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
8794
8825
  var md5 = /^[a-f0-9]{32}$/;
@@ -8796,20 +8827,20 @@ var isMD5 = {exports: {}};
8796
8827
  (0, _assertString.default)(str);
8797
8828
  return md5.test(str);
8798
8829
  }
8799
- module.exports = exports$1.default;
8800
- module.exports.default = exports$1.default;
8830
+ module.exports = exports.default;
8831
+ module.exports.default = exports.default;
8801
8832
  } (isMD5, isMD5.exports));
8802
8833
 
8803
8834
  var isMD5Exports = isMD5.exports;
8804
8835
 
8805
8836
  var isHash = {exports: {}};
8806
8837
 
8807
- (function (module, exports$1) {
8838
+ (function (module, exports) {
8808
8839
 
8809
- Object.defineProperty(exports$1, "__esModule", {
8840
+ Object.defineProperty(exports, "__esModule", {
8810
8841
  value: true
8811
8842
  });
8812
- exports$1.default = isHash;
8843
+ exports.default = isHash;
8813
8844
  var _assertString = _interopRequireDefault(assertStringExports);
8814
8845
  function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
8815
8846
  var lengths = {
@@ -8832,8 +8863,8 @@ var isHash = {exports: {}};
8832
8863
  var hash = new RegExp("^[a-fA-F0-9]{".concat(lengths[algorithm], "}$"));
8833
8864
  return hash.test(str);
8834
8865
  }
8835
- module.exports = exports$1.default;
8836
- module.exports.default = exports$1.default;
8866
+ module.exports = exports.default;
8867
+ module.exports.default = exports.default;
8837
8868
  } (isHash, isHash.exports));
8838
8869
 
8839
8870
  var isHashExports = isHash.exports;
@@ -8842,12 +8873,12 @@ var isJWT = {exports: {}};
8842
8873
 
8843
8874
  var isBase64 = {exports: {}};
8844
8875
 
8845
- (function (module, exports$1) {
8876
+ (function (module, exports) {
8846
8877
 
8847
- Object.defineProperty(exports$1, "__esModule", {
8878
+ Object.defineProperty(exports, "__esModule", {
8848
8879
  value: true
8849
8880
  });
8850
- exports$1.default = isBase64;
8881
+ exports.default = isBase64;
8851
8882
  var _assertString = _interopRequireDefault(assertStringExports);
8852
8883
  var _merge = _interopRequireDefault(mergeExports);
8853
8884
  function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
@@ -8872,18 +8903,18 @@ var isBase64 = {exports: {}};
8872
8903
  }
8873
8904
  return (!options.padding || str.length % 4 === 0) && regex.test(str);
8874
8905
  }
8875
- module.exports = exports$1.default;
8876
- module.exports.default = exports$1.default;
8906
+ module.exports = exports.default;
8907
+ module.exports.default = exports.default;
8877
8908
  } (isBase64, isBase64.exports));
8878
8909
 
8879
8910
  var isBase64Exports = isBase64.exports;
8880
8911
 
8881
- (function (module, exports$1) {
8912
+ (function (module, exports) {
8882
8913
 
8883
- Object.defineProperty(exports$1, "__esModule", {
8914
+ Object.defineProperty(exports, "__esModule", {
8884
8915
  value: true
8885
8916
  });
8886
- exports$1.default = isJWT;
8917
+ exports.default = isJWT;
8887
8918
  var _assertString = _interopRequireDefault(assertStringExports);
8888
8919
  var _isBase = _interopRequireDefault(isBase64Exports);
8889
8920
  function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
@@ -8900,55 +8931,61 @@ var isBase64Exports = isBase64.exports;
8900
8931
  });
8901
8932
  }, true);
8902
8933
  }
8903
- module.exports = exports$1.default;
8904
- module.exports.default = exports$1.default;
8934
+ module.exports = exports.default;
8935
+ module.exports.default = exports.default;
8905
8936
  } (isJWT, isJWT.exports));
8906
8937
 
8907
8938
  var isJWTExports = isJWT.exports;
8908
8939
 
8909
8940
  var isJSON = {exports: {}};
8910
8941
 
8911
- (function (module, exports$1) {
8942
+ (function (module, exports) {
8912
8943
 
8913
- Object.defineProperty(exports$1, "__esModule", {
8944
+ Object.defineProperty(exports, "__esModule", {
8914
8945
  value: true
8915
8946
  });
8916
- exports$1.default = isJSON;
8947
+ exports.default = isJSON;
8917
8948
  var _assertString = _interopRequireDefault(assertStringExports);
8918
8949
  var _includesArray = _interopRequireDefault(includesArrayExports);
8919
8950
  var _merge = _interopRequireDefault(mergeExports);
8920
8951
  function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
8921
8952
  function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
8922
8953
  var default_json_options = {
8923
- allow_primitives: false
8954
+ allow_primitives: false,
8955
+ allow_any_value: false
8924
8956
  };
8925
8957
  function isJSON(str, options) {
8926
8958
  (0, _assertString.default)(str);
8927
8959
  try {
8928
8960
  options = (0, _merge.default)(options, default_json_options);
8961
+ var obj = JSON.parse(str);
8962
+
8963
+ // When allow_any_value is true, accept anything that JSON.parse successfully parses
8964
+ if (options.allow_any_value) {
8965
+ return true;
8966
+ }
8929
8967
  var primitives = [];
8930
8968
  if (options.allow_primitives) {
8931
8969
  primitives = [null, false, true];
8932
8970
  }
8933
- var obj = JSON.parse(str);
8934
8971
  return (0, _includesArray.default)(primitives, obj) || !!obj && _typeof(obj) === 'object';
8935
8972
  } catch (e) {/* ignore */}
8936
8973
  return false;
8937
8974
  }
8938
- module.exports = exports$1.default;
8939
- module.exports.default = exports$1.default;
8975
+ module.exports = exports.default;
8976
+ module.exports.default = exports.default;
8940
8977
  } (isJSON, isJSON.exports));
8941
8978
 
8942
8979
  var isJSONExports = isJSON.exports;
8943
8980
 
8944
8981
  var isEmpty = {exports: {}};
8945
8982
 
8946
- (function (module, exports$1) {
8983
+ (function (module, exports) {
8947
8984
 
8948
- Object.defineProperty(exports$1, "__esModule", {
8985
+ Object.defineProperty(exports, "__esModule", {
8949
8986
  value: true
8950
8987
  });
8951
- exports$1.default = isEmpty;
8988
+ exports.default = isEmpty;
8952
8989
  var _assertString = _interopRequireDefault(assertStringExports);
8953
8990
  var _merge = _interopRequireDefault(mergeExports);
8954
8991
  function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
@@ -8960,20 +8997,20 @@ var isEmpty = {exports: {}};
8960
8997
  options = (0, _merge.default)(options, default_is_empty_options);
8961
8998
  return (options.ignore_whitespace ? str.trim().length : str.length) === 0;
8962
8999
  }
8963
- module.exports = exports$1.default;
8964
- module.exports.default = exports$1.default;
9000
+ module.exports = exports.default;
9001
+ module.exports.default = exports.default;
8965
9002
  } (isEmpty, isEmpty.exports));
8966
9003
 
8967
9004
  var isEmptyExports = isEmpty.exports;
8968
9005
 
8969
9006
  var isLength = {exports: {}};
8970
9007
 
8971
- (function (module, exports$1) {
9008
+ (function (module, exports) {
8972
9009
 
8973
- Object.defineProperty(exports$1, "__esModule", {
9010
+ Object.defineProperty(exports, "__esModule", {
8974
9011
  value: true
8975
9012
  });
8976
- exports$1.default = isLength;
9013
+ exports.default = isLength;
8977
9014
  var _assertString = _interopRequireDefault(assertStringExports);
8978
9015
  function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
8979
9016
  function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
@@ -9001,40 +9038,40 @@ var isLength = {exports: {}};
9001
9038
  }
9002
9039
  return isInsideRange;
9003
9040
  }
9004
- module.exports = exports$1.default;
9005
- module.exports.default = exports$1.default;
9041
+ module.exports = exports.default;
9042
+ module.exports.default = exports.default;
9006
9043
  } (isLength, isLength.exports));
9007
9044
 
9008
9045
  var isLengthExports = isLength.exports;
9009
9046
 
9010
9047
  var isULID = {exports: {}};
9011
9048
 
9012
- (function (module, exports$1) {
9049
+ (function (module, exports) {
9013
9050
 
9014
- Object.defineProperty(exports$1, "__esModule", {
9051
+ Object.defineProperty(exports, "__esModule", {
9015
9052
  value: true
9016
9053
  });
9017
- exports$1.default = isULID;
9054
+ exports.default = isULID;
9018
9055
  var _assertString = _interopRequireDefault(assertStringExports);
9019
9056
  function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
9020
9057
  function isULID(str) {
9021
9058
  (0, _assertString.default)(str);
9022
9059
  return /^[0-7][0-9A-HJKMNP-TV-Z]{25}$/i.test(str);
9023
9060
  }
9024
- module.exports = exports$1.default;
9025
- module.exports.default = exports$1.default;
9061
+ module.exports = exports.default;
9062
+ module.exports.default = exports.default;
9026
9063
  } (isULID, isULID.exports));
9027
9064
 
9028
9065
  var isULIDExports = isULID.exports;
9029
9066
 
9030
9067
  var isUUID = {exports: {}};
9031
9068
 
9032
- (function (module, exports$1) {
9069
+ (function (module, exports) {
9033
9070
 
9034
- Object.defineProperty(exports$1, "__esModule", {
9071
+ Object.defineProperty(exports, "__esModule", {
9035
9072
  value: true
9036
9073
  });
9037
- exports$1.default = isUUID;
9074
+ exports.default = isUUID;
9038
9075
  var _assertString = _interopRequireDefault(assertStringExports);
9039
9076
  function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
9040
9077
  var uuid = {
@@ -9059,20 +9096,20 @@ var isUUID = {exports: {}};
9059
9096
  }
9060
9097
  return version in uuid ? uuid[version].test(str) : false;
9061
9098
  }
9062
- module.exports = exports$1.default;
9063
- module.exports.default = exports$1.default;
9099
+ module.exports = exports.default;
9100
+ module.exports.default = exports.default;
9064
9101
  } (isUUID, isUUID.exports));
9065
9102
 
9066
9103
  var isUUIDExports = isUUID.exports;
9067
9104
 
9068
9105
  var isMongoId = {exports: {}};
9069
9106
 
9070
- (function (module, exports$1) {
9107
+ (function (module, exports) {
9071
9108
 
9072
- Object.defineProperty(exports$1, "__esModule", {
9109
+ Object.defineProperty(exports, "__esModule", {
9073
9110
  value: true
9074
9111
  });
9075
- exports$1.default = isMongoId;
9112
+ exports.default = isMongoId;
9076
9113
  var _assertString = _interopRequireDefault(assertStringExports);
9077
9114
  var _isHexadecimal = _interopRequireDefault(isHexadecimalExports);
9078
9115
  function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
@@ -9080,20 +9117,20 @@ var isMongoId = {exports: {}};
9080
9117
  (0, _assertString.default)(str);
9081
9118
  return (0, _isHexadecimal.default)(str) && str.length === 24;
9082
9119
  }
9083
- module.exports = exports$1.default;
9084
- module.exports.default = exports$1.default;
9120
+ module.exports = exports.default;
9121
+ module.exports.default = exports.default;
9085
9122
  } (isMongoId, isMongoId.exports));
9086
9123
 
9087
9124
  var isMongoIdExports = isMongoId.exports;
9088
9125
 
9089
9126
  var isAfter = {exports: {}};
9090
9127
 
9091
- (function (module, exports$1) {
9128
+ (function (module, exports) {
9092
9129
 
9093
- Object.defineProperty(exports$1, "__esModule", {
9130
+ Object.defineProperty(exports, "__esModule", {
9094
9131
  value: true
9095
9132
  });
9096
- exports$1.default = isAfter;
9133
+ exports.default = isAfter;
9097
9134
  var _toDate = _interopRequireDefault(toDateExports);
9098
9135
  function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
9099
9136
  function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
@@ -9105,20 +9142,20 @@ var isAfter = {exports: {}};
9105
9142
  var original = (0, _toDate.default)(date);
9106
9143
  return !!(original && comparison && original > comparison);
9107
9144
  }
9108
- module.exports = exports$1.default;
9109
- module.exports.default = exports$1.default;
9145
+ module.exports = exports.default;
9146
+ module.exports.default = exports.default;
9110
9147
  } (isAfter, isAfter.exports));
9111
9148
 
9112
9149
  var isAfterExports = isAfter.exports;
9113
9150
 
9114
9151
  var isBefore = {exports: {}};
9115
9152
 
9116
- (function (module, exports$1) {
9153
+ (function (module, exports) {
9117
9154
 
9118
- Object.defineProperty(exports$1, "__esModule", {
9155
+ Object.defineProperty(exports, "__esModule", {
9119
9156
  value: true
9120
9157
  });
9121
- exports$1.default = isBefore;
9158
+ exports.default = isBefore;
9122
9159
  var _toDate = _interopRequireDefault(toDateExports);
9123
9160
  function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
9124
9161
  function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
@@ -9130,20 +9167,20 @@ var isBefore = {exports: {}};
9130
9167
  var original = (0, _toDate.default)(date);
9131
9168
  return !!(original && comparison && original < comparison);
9132
9169
  }
9133
- module.exports = exports$1.default;
9134
- module.exports.default = exports$1.default;
9170
+ module.exports = exports.default;
9171
+ module.exports.default = exports.default;
9135
9172
  } (isBefore, isBefore.exports));
9136
9173
 
9137
9174
  var isBeforeExports = isBefore.exports;
9138
9175
 
9139
9176
  var isIn = {exports: {}};
9140
9177
 
9141
- (function (module, exports$1) {
9178
+ (function (module, exports) {
9142
9179
 
9143
- Object.defineProperty(exports$1, "__esModule", {
9180
+ Object.defineProperty(exports, "__esModule", {
9144
9181
  value: true
9145
9182
  });
9146
- exports$1.default = isIn;
9183
+ exports.default = isIn;
9147
9184
  var _assertString = _interopRequireDefault(assertStringExports);
9148
9185
  var _toString = _interopRequireDefault(toStringExports);
9149
9186
  function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
@@ -9168,20 +9205,20 @@ var isIn = {exports: {}};
9168
9205
  }
9169
9206
  return false;
9170
9207
  }
9171
- module.exports = exports$1.default;
9172
- module.exports.default = exports$1.default;
9208
+ module.exports = exports.default;
9209
+ module.exports.default = exports.default;
9173
9210
  } (isIn, isIn.exports));
9174
9211
 
9175
9212
  var isInExports = isIn.exports;
9176
9213
 
9177
9214
  var isLuhnNumber = {exports: {}};
9178
9215
 
9179
- (function (module, exports$1) {
9216
+ (function (module, exports) {
9180
9217
 
9181
- Object.defineProperty(exports$1, "__esModule", {
9218
+ Object.defineProperty(exports, "__esModule", {
9182
9219
  value: true
9183
9220
  });
9184
- exports$1.default = isLuhnNumber;
9221
+ exports.default = isLuhnNumber;
9185
9222
  var _assertString = _interopRequireDefault(assertStringExports);
9186
9223
  function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
9187
9224
  function isLuhnNumber(str) {
@@ -9208,20 +9245,20 @@ var isLuhnNumber = {exports: {}};
9208
9245
  }
9209
9246
  return !!(sum % 10 === 0 ? sanitized : false);
9210
9247
  }
9211
- module.exports = exports$1.default;
9212
- module.exports.default = exports$1.default;
9248
+ module.exports = exports.default;
9249
+ module.exports.default = exports.default;
9213
9250
  } (isLuhnNumber, isLuhnNumber.exports));
9214
9251
 
9215
9252
  var isLuhnNumberExports = isLuhnNumber.exports;
9216
9253
 
9217
9254
  var isCreditCard = {exports: {}};
9218
9255
 
9219
- (function (module, exports$1) {
9256
+ (function (module, exports) {
9220
9257
 
9221
- Object.defineProperty(exports$1, "__esModule", {
9258
+ Object.defineProperty(exports, "__esModule", {
9222
9259
  value: true
9223
9260
  });
9224
- exports$1.default = isCreditCard;
9261
+ exports.default = isCreditCard;
9225
9262
  var _assertString = _interopRequireDefault(assertStringExports);
9226
9263
  var _isLuhnNumber = _interopRequireDefault(isLuhnNumberExports);
9227
9264
  function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
@@ -9266,20 +9303,20 @@ var isCreditCard = {exports: {}};
9266
9303
  }
9267
9304
  return (0, _isLuhnNumber.default)(card);
9268
9305
  }
9269
- module.exports = exports$1.default;
9270
- module.exports.default = exports$1.default;
9306
+ module.exports = exports.default;
9307
+ module.exports.default = exports.default;
9271
9308
  } (isCreditCard, isCreditCard.exports));
9272
9309
 
9273
9310
  var isCreditCardExports = isCreditCard.exports;
9274
9311
 
9275
9312
  var isIdentityCard = {exports: {}};
9276
9313
 
9277
- (function (module, exports$1) {
9314
+ (function (module, exports) {
9278
9315
 
9279
- Object.defineProperty(exports$1, "__esModule", {
9316
+ Object.defineProperty(exports, "__esModule", {
9280
9317
  value: true
9281
9318
  });
9282
- exports$1.default = isIdentityCard;
9319
+ exports.default = isIdentityCard;
9283
9320
  var _assertString = _interopRequireDefault(assertStringExports);
9284
9321
  var _includesArray = _interopRequireDefault(includesArrayExports);
9285
9322
  var _isInt = _interopRequireDefault(isIntExports);
@@ -9448,24 +9485,14 @@ var isIdentityCard = {exports: {}};
9448
9485
 
9449
9486
  // sanitize user input
9450
9487
  var sanitized = str.trim();
9451
-
9452
- // validate the data structure
9453
- if (!NIN.test(sanitized)) {
9454
- return false;
9455
- }
9456
- return true;
9488
+ return NIN.test(sanitized);
9457
9489
  },
9458
9490
  'ar-TN': function arTN(str) {
9459
9491
  var DNI = /^\d{8}$/;
9460
9492
 
9461
9493
  // sanitize user input
9462
9494
  var sanitized = str.trim();
9463
-
9464
- // validate the data structure
9465
- if (!DNI.test(sanitized)) {
9466
- return false;
9467
- }
9468
- return true;
9495
+ return DNI.test(sanitized);
9469
9496
  },
9470
9497
  'zh-CN': function zhCN(str) {
9471
9498
  var provincesAndCities = ['11',
@@ -9698,20 +9725,20 @@ var isIdentityCard = {exports: {}};
9698
9725
  }
9699
9726
  throw new Error("Invalid locale '".concat(locale, "'"));
9700
9727
  }
9701
- module.exports = exports$1.default;
9702
- module.exports.default = exports$1.default;
9728
+ module.exports = exports.default;
9729
+ module.exports.default = exports.default;
9703
9730
  } (isIdentityCard, isIdentityCard.exports));
9704
9731
 
9705
9732
  var isIdentityCardExports = isIdentityCard.exports;
9706
9733
 
9707
9734
  var isEAN = {exports: {}};
9708
9735
 
9709
- (function (module, exports$1) {
9736
+ (function (module, exports) {
9710
9737
 
9711
- Object.defineProperty(exports$1, "__esModule", {
9738
+ Object.defineProperty(exports, "__esModule", {
9712
9739
  value: true
9713
9740
  });
9714
- exports$1.default = isEAN;
9741
+ exports.default = isEAN;
9715
9742
  var _assertString = _interopRequireDefault(assertStringExports);
9716
9743
  function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
9717
9744
  /**
@@ -9782,20 +9809,20 @@ var isEAN = {exports: {}};
9782
9809
  var actualCheckDigit = Number(str.slice(-1));
9783
9810
  return validEanRegex.test(str) && actualCheckDigit === calculateCheckDigit(str);
9784
9811
  }
9785
- module.exports = exports$1.default;
9786
- module.exports.default = exports$1.default;
9812
+ module.exports = exports.default;
9813
+ module.exports.default = exports.default;
9787
9814
  } (isEAN, isEAN.exports));
9788
9815
 
9789
9816
  var isEANExports = isEAN.exports;
9790
9817
 
9791
9818
  var isISIN = {exports: {}};
9792
9819
 
9793
- (function (module, exports$1) {
9820
+ (function (module, exports) {
9794
9821
 
9795
- Object.defineProperty(exports$1, "__esModule", {
9822
+ Object.defineProperty(exports, "__esModule", {
9796
9823
  value: true
9797
9824
  });
9798
- exports$1.default = isISIN;
9825
+ exports.default = isISIN;
9799
9826
  var _assertString = _interopRequireDefault(assertStringExports);
9800
9827
  function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
9801
9828
  var isin = /^[A-Z]{2}[0-9A-Z]{9}[0-9]$/;
@@ -9852,20 +9879,20 @@ var isISIN = {exports: {}};
9852
9879
  var check = Math.trunc((sum + 9) / 10) * 10 - sum;
9853
9880
  return +str[str.length - 1] === check;
9854
9881
  }
9855
- module.exports = exports$1.default;
9856
- module.exports.default = exports$1.default;
9882
+ module.exports = exports.default;
9883
+ module.exports.default = exports.default;
9857
9884
  } (isISIN, isISIN.exports));
9858
9885
 
9859
9886
  var isISINExports = isISIN.exports;
9860
9887
 
9861
9888
  var isISBN = {exports: {}};
9862
9889
 
9863
- (function (module, exports$1) {
9890
+ (function (module, exports) {
9864
9891
 
9865
- Object.defineProperty(exports$1, "__esModule", {
9892
+ Object.defineProperty(exports, "__esModule", {
9866
9893
  value: true
9867
9894
  });
9868
- exports$1.default = isISBN;
9895
+ exports.default = isISBN;
9869
9896
  var _assertString = _interopRequireDefault(assertStringExports);
9870
9897
  function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
9871
9898
  var possibleIsbn10 = /^(?:[0-9]{9}X|[0-9]{10})$/;
@@ -9914,20 +9941,20 @@ var isISBN = {exports: {}};
9914
9941
  }
9915
9942
  return false;
9916
9943
  }
9917
- module.exports = exports$1.default;
9918
- module.exports.default = exports$1.default;
9944
+ module.exports = exports.default;
9945
+ module.exports.default = exports.default;
9919
9946
  } (isISBN, isISBN.exports));
9920
9947
 
9921
9948
  var isISBNExports = isISBN.exports;
9922
9949
 
9923
9950
  var isISSN = {exports: {}};
9924
9951
 
9925
- (function (module, exports$1) {
9952
+ (function (module, exports) {
9926
9953
 
9927
- Object.defineProperty(exports$1, "__esModule", {
9954
+ Object.defineProperty(exports, "__esModule", {
9928
9955
  value: true
9929
9956
  });
9930
- exports$1.default = isISSN;
9957
+ exports.default = isISSN;
9931
9958
  var _assertString = _interopRequireDefault(assertStringExports);
9932
9959
  function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
9933
9960
  var issn = '^\\d{4}-?\\d{3}[\\dX]$';
@@ -9948,8 +9975,8 @@ var isISSN = {exports: {}};
9948
9975
  }
9949
9976
  return checksum % 11 === 0;
9950
9977
  }
9951
- module.exports = exports$1.default;
9952
- module.exports.default = exports$1.default;
9978
+ module.exports = exports.default;
9979
+ module.exports.default = exports.default;
9953
9980
  } (isISSN, isISSN.exports));
9954
9981
 
9955
9982
  var isISSNExports = isISSN.exports;
@@ -10045,13 +10072,13 @@ function verhoeffCheck(str) {
10045
10072
  return checksum === 0;
10046
10073
  }
10047
10074
 
10048
- (function (module, exports$1) {
10075
+ (function (module, exports) {
10049
10076
 
10050
10077
  function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
10051
- Object.defineProperty(exports$1, "__esModule", {
10078
+ Object.defineProperty(exports, "__esModule", {
10052
10079
  value: true
10053
10080
  });
10054
- exports$1.default = isTaxID;
10081
+ exports.default = isTaxID;
10055
10082
  var _assertString = _interopRequireDefault(assertStringExports);
10056
10083
  var algorithms = _interopRequireWildcard(algorithms$1);
10057
10084
  var _isDate = _interopRequireDefault(isDateExports);
@@ -11045,68 +11072,87 @@ function verhoeffCheck(str) {
11045
11072
  }
11046
11073
 
11047
11074
  /*
11048
- * pt-BR validation function
11049
- * (Cadastro de Pessoas Físicas (CPF, persons)
11050
- * Cadastro Nacional de Pessoas Jurídicas (CNPJ, entities)
11051
- * Both inputs will be validated
11052
- */
11075
+ * pt-BR validation function
11076
+ * (Cadastro de Pessoas Físicas (CPF, persons)
11077
+ * Cadastro Nacional de Pessoas Jurídicas (CNPJ, entities)
11078
+ * Both inputs will be validated.
11079
+ * CPF accepts formatted (XXX.XXX.XXX-XX) and unformatted input;
11080
+ * formatting is stripped before validation.
11081
+ * CNPJ supports both numeric (legacy) and alphanumeric format (starting July 2026).
11082
+ */
11083
+
11084
+ /**
11085
+ * Convert a CNPJ character to its numeric value for check digit calculation.
11086
+ * Numbers 0-9 map to values 0-9, letters A-Z map to values 17-42.
11087
+ * This is done by subtracting 48 from the ASCII code.
11088
+ */
11089
+ function cnpjCharToValue(char) {
11090
+ return char.charCodeAt(0) - 48;
11091
+ }
11092
+
11093
+ /**
11094
+ * Validate CNPJ (both numeric and alphanumeric formats).
11095
+ * Algorithm: module 11 with weights 2-9 from right to left.
11096
+ */
11097
+ function validateCnpj(cnpj) {
11098
+ // Get the 12 identifier characters and 2 check digits
11099
+ var identifiers = cnpj.substring(0, 12).toUpperCase();
11100
+ var checkDigits = cnpj.substring(12);
11101
+
11102
+ // Reject CNPJs with all same characters (e.g., '00000000000000', 'AAAAAAAAAAAAAA')
11103
+ if (/^(.)\1+$/.test(cnpj.toUpperCase())) {
11104
+ return false;
11105
+ }
11053
11106
 
11107
+ // Calculate first check digit
11108
+ var sum = 0;
11109
+ var weight = 5;
11110
+ for (var i = 0; i < 12; i++) {
11111
+ sum += cnpjCharToValue(identifiers.charAt(i)) * weight;
11112
+ weight = weight === 2 ? 9 : weight - 1;
11113
+ }
11114
+ var remainder = sum % 11;
11115
+ var firstDV = remainder < 2 ? 0 : 11 - remainder;
11116
+ if (firstDV !== parseInt(checkDigits.charAt(0), 10)) {
11117
+ return false;
11118
+ }
11119
+
11120
+ // Calculate second check digit (includes first check digit)
11121
+ sum = 0;
11122
+ weight = 6;
11123
+ for (var _i8 = 0; _i8 < 12; _i8++) {
11124
+ sum += cnpjCharToValue(identifiers.charAt(_i8)) * weight;
11125
+ weight = weight === 2 ? 9 : weight - 1;
11126
+ }
11127
+ sum += firstDV * 2;
11128
+ remainder = sum % 11;
11129
+ var secondDV = remainder < 2 ? 0 : 11 - remainder;
11130
+ return secondDV === parseInt(checkDigits.charAt(1), 10);
11131
+ }
11054
11132
  function ptBrCheck(tin) {
11133
+ // Strip CPF formatting (XXX.XXX.XXX-XX)
11134
+ tin = tin.replace(/[.\-/]/g, '');
11055
11135
  if (tin.length === 11) {
11056
- var _sum;
11136
+ var sum;
11057
11137
  var remainder;
11058
- _sum = 0;
11138
+ sum = 0;
11059
11139
  if (
11060
11140
  // Reject known invalid CPFs
11061
11141
  tin === '11111111111' || tin === '22222222222' || tin === '33333333333' || tin === '44444444444' || tin === '55555555555' || tin === '66666666666' || tin === '77777777777' || tin === '88888888888' || tin === '99999999999' || tin === '00000000000') return false;
11062
- for (var i = 1; i <= 9; i++) _sum += parseInt(tin.substring(i - 1, i), 10) * (11 - i);
11063
- remainder = _sum * 10 % 11;
11142
+ for (var i = 1; i <= 9; i++) sum += parseInt(tin.substring(i - 1, i), 10) * (11 - i);
11143
+ remainder = sum * 10 % 11;
11064
11144
  if (remainder === 10) remainder = 0;
11065
11145
  if (remainder !== parseInt(tin.substring(9, 10), 10)) return false;
11066
- _sum = 0;
11067
- for (var _i8 = 1; _i8 <= 10; _i8++) _sum += parseInt(tin.substring(_i8 - 1, _i8), 10) * (12 - _i8);
11068
- remainder = _sum * 10 % 11;
11146
+ sum = 0;
11147
+ for (var _i9 = 1; _i9 <= 10; _i9++) sum += parseInt(tin.substring(_i9 - 1, _i9), 10) * (12 - _i9);
11148
+ remainder = sum * 10 % 11;
11069
11149
  if (remainder === 10) remainder = 0;
11070
11150
  if (remainder !== parseInt(tin.substring(10, 11), 10)) return false;
11071
11151
  return true;
11072
11152
  }
11073
- if (
11074
- // Reject know invalid CNPJs
11075
- tin === '00000000000000' || tin === '11111111111111' || tin === '22222222222222' || tin === '33333333333333' || tin === '44444444444444' || tin === '55555555555555' || tin === '66666666666666' || tin === '77777777777777' || tin === '88888888888888' || tin === '99999999999999') {
11076
- return false;
11077
- }
11078
- var length = tin.length - 2;
11079
- var identifiers = tin.substring(0, length);
11080
- var verificators = tin.substring(length);
11081
- var sum = 0;
11082
- var pos = length - 7;
11083
- for (var _i9 = length; _i9 >= 1; _i9--) {
11084
- sum += identifiers.charAt(length - _i9) * pos;
11085
- pos -= 1;
11086
- if (pos < 2) {
11087
- pos = 9;
11088
- }
11089
- }
11090
- var result = sum % 11 < 2 ? 0 : 11 - sum % 11;
11091
- if (result !== parseInt(verificators.charAt(0), 10)) {
11092
- return false;
11093
- }
11094
- length += 1;
11095
- identifiers = tin.substring(0, length);
11096
- sum = 0;
11097
- pos = length - 7;
11098
- for (var _i0 = length; _i0 >= 1; _i0--) {
11099
- sum += identifiers.charAt(length - _i0) * pos;
11100
- pos -= 1;
11101
- if (pos < 2) {
11102
- pos = 9;
11103
- }
11104
- }
11105
- result = sum % 11 < 2 ? 0 : 11 - sum % 11;
11106
- if (result !== parseInt(verificators.charAt(1), 10)) {
11107
- return false;
11108
- }
11109
- return true;
11153
+
11154
+ // CNPJ validation (supports both numeric and alphanumeric formats)
11155
+ return validateCnpj(tin);
11110
11156
  }
11111
11157
 
11112
11158
  /*
@@ -11349,7 +11395,7 @@ function verhoeffCheck(str) {
11349
11395
  'mt-MT': /^\d{3,7}[APMGLHBZ]$|^([1-8])\1\d{7}$/i,
11350
11396
  'nl-NL': /^\d{9}$/,
11351
11397
  'pl-PL': /^\d{10,11}$/,
11352
- 'pt-BR': /(?:^\d{11}$)|(?:^\d{14}$)/,
11398
+ 'pt-BR': /(?:^\d{3}\.\d{3}\.\d{3}-\d{2}$)|(?:^\d{11}$)|(?:^[A-Z0-9]{12}\d{2}$)/i,
11353
11399
  'pt-PT': /^\d{9}$/,
11354
11400
  'ro-RO': /^\d{13}$/,
11355
11401
  'sk-SK': /^\d{6}\/{0,1}\d{3,4}$/,
@@ -11439,8 +11485,8 @@ function verhoeffCheck(str) {
11439
11485
  }
11440
11486
  throw new Error("Invalid locale '".concat(locale, "'"));
11441
11487
  }
11442
- module.exports = exports$1.default;
11443
- module.exports.default = exports$1.default;
11488
+ module.exports = exports.default;
11489
+ module.exports.default = exports.default;
11444
11490
  } (isTaxID, isTaxID.exports));
11445
11491
 
11446
11492
  var isTaxIDExports = isTaxID.exports;
@@ -11556,6 +11602,7 @@ var phones = {
11556
11602
  'fr-BJ': /^(\+229)\d{8}$/,
11557
11603
  'fr-CD': /^(\+?243|0)?(8|9)\d{8}$/,
11558
11604
  'fr-CM': /^(\+?237)6[0-9]{8}$/,
11605
+ 'fr-DJ': /^(?:\+253)?77[6-8]\d{5}$/,
11559
11606
  'fr-FR': /^(\+?33|0)[67]\d{8}$/,
11560
11607
  'fr-GF': /^(\+?594|0|00594)[67]\d{8}$/,
11561
11608
  'fr-GP': /^(\+?590|0|00590)[67]\d{8}$/,
@@ -11666,12 +11713,12 @@ isMobilePhone$1.locales = Object.keys(phones);
11666
11713
 
11667
11714
  var isEthereumAddress = {exports: {}};
11668
11715
 
11669
- (function (module, exports$1) {
11716
+ (function (module, exports) {
11670
11717
 
11671
- Object.defineProperty(exports$1, "__esModule", {
11718
+ Object.defineProperty(exports, "__esModule", {
11672
11719
  value: true
11673
11720
  });
11674
- exports$1.default = isEthereumAddress;
11721
+ exports.default = isEthereumAddress;
11675
11722
  var _assertString = _interopRequireDefault(assertStringExports);
11676
11723
  function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
11677
11724
  var eth = /^(0x)[0-9a-f]{40}$/i;
@@ -11679,20 +11726,20 @@ var isEthereumAddress = {exports: {}};
11679
11726
  (0, _assertString.default)(str);
11680
11727
  return eth.test(str);
11681
11728
  }
11682
- module.exports = exports$1.default;
11683
- module.exports.default = exports$1.default;
11729
+ module.exports = exports.default;
11730
+ module.exports.default = exports.default;
11684
11731
  } (isEthereumAddress, isEthereumAddress.exports));
11685
11732
 
11686
11733
  var isEthereumAddressExports = isEthereumAddress.exports;
11687
11734
 
11688
11735
  var isCurrency = {exports: {}};
11689
11736
 
11690
- (function (module, exports$1) {
11737
+ (function (module, exports) {
11691
11738
 
11692
- Object.defineProperty(exports$1, "__esModule", {
11739
+ Object.defineProperty(exports, "__esModule", {
11693
11740
  value: true
11694
11741
  });
11695
- exports$1.default = isCurrency;
11742
+ exports.default = isCurrency;
11696
11743
  var _merge = _interopRequireDefault(mergeExports);
11697
11744
  var _assertString = _interopRequireDefault(assertStringExports);
11698
11745
  function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
@@ -11768,20 +11815,20 @@ var isCurrency = {exports: {}};
11768
11815
  options = (0, _merge.default)(options, default_currency_options);
11769
11816
  return currencyRegex(options).test(str);
11770
11817
  }
11771
- module.exports = exports$1.default;
11772
- module.exports.default = exports$1.default;
11818
+ module.exports = exports.default;
11819
+ module.exports.default = exports.default;
11773
11820
  } (isCurrency, isCurrency.exports));
11774
11821
 
11775
11822
  var isCurrencyExports = isCurrency.exports;
11776
11823
 
11777
11824
  var isBtcAddress = {exports: {}};
11778
11825
 
11779
- (function (module, exports$1) {
11826
+ (function (module, exports) {
11780
11827
 
11781
- Object.defineProperty(exports$1, "__esModule", {
11828
+ Object.defineProperty(exports, "__esModule", {
11782
11829
  value: true
11783
11830
  });
11784
- exports$1.default = isBtcAddress;
11831
+ exports.default = isBtcAddress;
11785
11832
  var _assertString = _interopRequireDefault(assertStringExports);
11786
11833
  function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
11787
11834
  var bech32 = /^(bc1|tb1|bc1p|tb1p)[ac-hj-np-z02-9]{39,58}$/;
@@ -11790,8 +11837,8 @@ var isBtcAddress = {exports: {}};
11790
11837
  (0, _assertString.default)(str);
11791
11838
  return bech32.test(str) || base58.test(str);
11792
11839
  }
11793
- module.exports = exports$1.default;
11794
- module.exports.default = exports$1.default;
11840
+ module.exports = exports.default;
11841
+ module.exports.default = exports.default;
11795
11842
  } (isBtcAddress, isBtcAddress.exports));
11796
11843
 
11797
11844
  var isBtcAddressExports = isBtcAddress.exports;
@@ -11834,12 +11881,12 @@ isISO6346$1.isFreightContainerID = isISO6346;
11834
11881
 
11835
11882
  var isISO6391 = {exports: {}};
11836
11883
 
11837
- (function (module, exports$1) {
11884
+ (function (module, exports) {
11838
11885
 
11839
- Object.defineProperty(exports$1, "__esModule", {
11886
+ Object.defineProperty(exports, "__esModule", {
11840
11887
  value: true
11841
11888
  });
11842
- exports$1.default = isISO6391;
11889
+ exports.default = isISO6391;
11843
11890
  var _assertString = _interopRequireDefault(assertStringExports);
11844
11891
  function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
11845
11892
  var isISO6391Set = new Set(['aa', 'ab', 'ae', 'af', 'ak', 'am', 'an', 'ar', 'as', 'av', 'ay', 'az', 'az', 'ba', 'be', 'bg', 'bh', 'bi', 'bm', 'bn', 'bo', 'br', 'bs', 'ca', 'ce', 'ch', 'co', 'cr', 'cs', 'cu', 'cv', 'cy', 'da', 'de', 'dv', 'dz', 'ee', 'el', 'en', 'eo', 'es', 'et', 'eu', 'fa', 'ff', 'fi', 'fj', 'fo', 'fr', 'fy', 'ga', 'gd', 'gl', 'gn', 'gu', 'gv', 'ha', 'he', 'hi', 'ho', 'hr', 'ht', 'hu', 'hy', 'hz', 'ia', 'id', 'ie', 'ig', 'ii', 'ik', 'io', 'is', 'it', 'iu', 'ja', 'jv', 'ka', 'kg', 'ki', 'kj', 'kk', 'kl', 'km', 'kn', 'ko', 'kr', 'ks', 'ku', 'kv', 'kw', 'ky', 'la', 'lb', 'lg', 'li', 'ln', 'lo', 'lt', 'lu', 'lv', 'mg', 'mh', 'mi', 'mk', 'ml', 'mn', 'mr', 'ms', 'mt', 'my', 'na', 'nb', 'nd', 'ne', 'ng', 'nl', 'nn', 'no', 'nr', 'nv', 'ny', 'oc', 'oj', 'om', 'or', 'os', 'pa', 'pi', 'pl', 'ps', 'pt', 'qu', 'rm', 'rn', 'ro', 'ru', 'rw', 'sa', 'sc', 'sd', 'se', 'sg', 'si', 'sk', 'sl', 'sm', 'sn', 'so', 'sq', 'sr', 'ss', 'st', 'su', 'sv', 'sw', 'ta', 'te', 'tg', 'th', 'ti', 'tk', 'tl', 'tn', 'to', 'tr', 'ts', 'tt', 'tw', 'ty', 'ug', 'uk', 'ur', 'uz', 've', 'vi', 'vo', 'wa', 'wo', 'xh', 'yi', 'yo', 'za', 'zh', 'zu']);
@@ -11847,20 +11894,20 @@ var isISO6391 = {exports: {}};
11847
11894
  (0, _assertString.default)(str);
11848
11895
  return isISO6391Set.has(str);
11849
11896
  }
11850
- module.exports = exports$1.default;
11851
- module.exports.default = exports$1.default;
11897
+ module.exports = exports.default;
11898
+ module.exports.default = exports.default;
11852
11899
  } (isISO6391, isISO6391.exports));
11853
11900
 
11854
11901
  var isISO6391Exports = isISO6391.exports;
11855
11902
 
11856
11903
  var isISO8601 = {exports: {}};
11857
11904
 
11858
- (function (module, exports$1) {
11905
+ (function (module, exports) {
11859
11906
 
11860
- Object.defineProperty(exports$1, "__esModule", {
11907
+ Object.defineProperty(exports, "__esModule", {
11861
11908
  value: true
11862
11909
  });
11863
- exports$1.default = isISO8601;
11910
+ exports.default = isISO8601;
11864
11911
  var _assertString = _interopRequireDefault(assertStringExports);
11865
11912
  function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
11866
11913
  /* eslint-disable max-len */
@@ -11903,20 +11950,20 @@ var isISO8601 = {exports: {}};
11903
11950
  if (check && options.strict) return isValidDate(str);
11904
11951
  return check;
11905
11952
  }
11906
- module.exports = exports$1.default;
11907
- module.exports.default = exports$1.default;
11953
+ module.exports = exports.default;
11954
+ module.exports.default = exports.default;
11908
11955
  } (isISO8601, isISO8601.exports));
11909
11956
 
11910
11957
  var isISO8601Exports = isISO8601.exports;
11911
11958
 
11912
11959
  var isRFC3339 = {exports: {}};
11913
11960
 
11914
- (function (module, exports$1) {
11961
+ (function (module, exports) {
11915
11962
 
11916
- Object.defineProperty(exports$1, "__esModule", {
11963
+ Object.defineProperty(exports, "__esModule", {
11917
11964
  value: true
11918
11965
  });
11919
- exports$1.default = isRFC3339;
11966
+ exports.default = isRFC3339;
11920
11967
  var _assertString = _interopRequireDefault(assertStringExports);
11921
11968
  function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
11922
11969
  /* Based on https://tools.ietf.org/html/rfc3339#section-5.6 */
@@ -11938,8 +11985,8 @@ var isRFC3339 = {exports: {}};
11938
11985
  (0, _assertString.default)(str);
11939
11986
  return rfc3339.test(str);
11940
11987
  }
11941
- module.exports = exports$1.default;
11942
- module.exports.default = exports$1.default;
11988
+ module.exports = exports.default;
11989
+ module.exports.default = exports.default;
11943
11990
  } (isRFC3339, isRFC3339.exports));
11944
11991
 
11945
11992
  var isRFC3339Exports = isRFC3339.exports;
@@ -11963,34 +12010,46 @@ isISO15924$1.ScriptCodes = validISO15924Codes;
11963
12010
 
11964
12011
  var isISO31661Alpha3 = {exports: {}};
11965
12012
 
11966
- (function (module, exports$1) {
12013
+ (function (module, exports) {
11967
12014
 
11968
- Object.defineProperty(exports$1, "__esModule", {
12015
+ Object.defineProperty(exports, "__esModule", {
11969
12016
  value: true
11970
12017
  });
11971
- exports$1.default = isISO31661Alpha3;
12018
+ exports.default = isISO31661Alpha3;
11972
12019
  var _assertString = _interopRequireDefault(assertStringExports);
11973
12020
  function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
11974
12021
  // from https://en.wikipedia.org/wiki/ISO_3166-1_alpha-3
11975
12022
  var validISO31661Alpha3CountriesCodes = new Set(['AFG', 'ALA', 'ALB', 'DZA', 'ASM', 'AND', 'AGO', 'AIA', 'ATA', 'ATG', 'ARG', 'ARM', 'ABW', 'AUS', 'AUT', 'AZE', 'BHS', 'BHR', 'BGD', 'BRB', 'BLR', 'BEL', 'BLZ', 'BEN', 'BMU', 'BTN', 'BOL', 'BES', 'BIH', 'BWA', 'BVT', 'BRA', 'IOT', 'BRN', 'BGR', 'BFA', 'BDI', 'KHM', 'CMR', 'CAN', 'CPV', 'CYM', 'CAF', 'TCD', 'CHL', 'CHN', 'CXR', 'CCK', 'COL', 'COM', 'COG', 'COD', 'COK', 'CRI', 'CIV', 'HRV', 'CUB', 'CUW', 'CYP', 'CZE', 'DNK', 'DJI', 'DMA', 'DOM', 'ECU', 'EGY', 'SLV', 'GNQ', 'ERI', 'EST', 'ETH', 'FLK', 'FRO', 'FJI', 'FIN', 'FRA', 'GUF', 'PYF', 'ATF', 'GAB', 'GMB', 'GEO', 'DEU', 'GHA', 'GIB', 'GRC', 'GRL', 'GRD', 'GLP', 'GUM', 'GTM', 'GGY', 'GIN', 'GNB', 'GUY', 'HTI', 'HMD', 'VAT', 'HND', 'HKG', 'HUN', 'ISL', 'IND', 'IDN', 'IRN', 'IRQ', 'IRL', 'IMN', 'ISR', 'ITA', 'JAM', 'JPN', 'JEY', 'JOR', 'KAZ', 'KEN', 'KIR', 'PRK', 'KOR', 'KWT', 'KGZ', 'LAO', 'LVA', 'LBN', 'LSO', 'LBR', 'LBY', 'LIE', 'LTU', 'LUX', 'MAC', 'MKD', 'MDG', 'MWI', 'MYS', 'MDV', 'MLI', 'MLT', 'MHL', 'MTQ', 'MRT', 'MUS', 'MYT', 'MEX', 'FSM', 'MDA', 'MCO', 'MNG', 'MNE', 'MSR', 'MAR', 'MOZ', 'MMR', 'NAM', 'NRU', 'NPL', 'NLD', 'NCL', 'NZL', 'NIC', 'NER', 'NGA', 'NIU', 'NFK', 'MNP', 'NOR', 'OMN', 'PAK', 'PLW', 'PSE', 'PAN', 'PNG', 'PRY', 'PER', 'PHL', 'PCN', 'POL', 'PRT', 'PRI', 'QAT', 'REU', 'ROU', 'RUS', 'RWA', 'BLM', 'SHN', 'KNA', 'LCA', 'MAF', 'SPM', 'VCT', 'WSM', 'SMR', 'STP', 'SAU', 'SEN', 'SRB', 'SYC', 'SLE', 'SGP', 'SXM', 'SVK', 'SVN', 'SLB', 'SOM', 'ZAF', 'SGS', 'SSD', 'ESP', 'LKA', 'SDN', 'SUR', 'SJM', 'SWZ', 'SWE', 'CHE', 'SYR', 'TWN', 'TJK', 'TZA', 'THA', 'TLS', 'TGO', 'TKL', 'TON', 'TTO', 'TUN', 'TUR', 'TKM', 'TCA', 'TUV', 'UGA', 'UKR', 'ARE', 'GBR', 'USA', 'UMI', 'URY', 'UZB', 'VUT', 'VEN', 'VNM', 'VGB', 'VIR', 'WLF', 'ESH', 'YEM', 'ZMB', 'ZWE']);
12023
+ var alpha3CountryCode = /^[a-zA-Z]{3}$/;
11976
12024
  function isISO31661Alpha3(str) {
12025
+ var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
11977
12026
  (0, _assertString.default)(str);
12027
+ var userAssignedCodes = options.userAssignedCodes;
12028
+ var validUserAssignedCodes = (userAssignedCodes || []).reduce(function (accumulator, userAssignedCode) {
12029
+ if (alpha3CountryCode.test(userAssignedCode)) {
12030
+ accumulator.push(userAssignedCode.toUpperCase());
12031
+ }
12032
+ return accumulator;
12033
+ }, []);
12034
+ if (validUserAssignedCodes.includes(str.toUpperCase())) {
12035
+ return true;
12036
+ }
11978
12037
  return validISO31661Alpha3CountriesCodes.has(str.toUpperCase());
11979
12038
  }
11980
- module.exports = exports$1.default;
11981
- module.exports.default = exports$1.default;
12039
+ module.exports = exports.default;
12040
+ module.exports.default = exports.default;
11982
12041
  } (isISO31661Alpha3, isISO31661Alpha3.exports));
11983
12042
 
11984
12043
  var isISO31661Alpha3Exports = isISO31661Alpha3.exports;
11985
12044
 
11986
12045
  var isISO31661Numeric = {exports: {}};
11987
12046
 
11988
- (function (module, exports$1) {
12047
+ (function (module, exports) {
11989
12048
 
11990
- Object.defineProperty(exports$1, "__esModule", {
12049
+ Object.defineProperty(exports, "__esModule", {
11991
12050
  value: true
11992
12051
  });
11993
- exports$1.default = isISO31661Numeric;
12052
+ exports.default = isISO31661Numeric;
11994
12053
  var _assertString = _interopRequireDefault(assertStringExports);
11995
12054
  function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
11996
12055
  // from https://en.wikipedia.org/wiki/ISO_3166-1_numeric
@@ -11999,8 +12058,8 @@ var isISO31661Numeric = {exports: {}};
11999
12058
  (0, _assertString.default)(str);
12000
12059
  return validISO31661NumericCountriesCodes.has(str);
12001
12060
  }
12002
- module.exports = exports$1.default;
12003
- module.exports.default = exports$1.default;
12061
+ module.exports = exports.default;
12062
+ module.exports.default = exports.default;
12004
12063
  } (isISO31661Numeric, isISO31661Numeric.exports));
12005
12064
 
12006
12065
  var isISO31661NumericExports = isISO31661Numeric.exports;
@@ -12024,12 +12083,12 @@ isISO4217$1.CurrencyCodes = validISO4217CurrencyCodes;
12024
12083
 
12025
12084
  var isBase32 = {exports: {}};
12026
12085
 
12027
- (function (module, exports$1) {
12086
+ (function (module, exports) {
12028
12087
 
12029
- Object.defineProperty(exports$1, "__esModule", {
12088
+ Object.defineProperty(exports, "__esModule", {
12030
12089
  value: true
12031
12090
  });
12032
- exports$1.default = isBase32;
12091
+ exports.default = isBase32;
12033
12092
  var _assertString = _interopRequireDefault(assertStringExports);
12034
12093
  var _merge = _interopRequireDefault(mergeExports);
12035
12094
  function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
@@ -12044,51 +12103,44 @@ var isBase32 = {exports: {}};
12044
12103
  if (options.crockford) {
12045
12104
  return crockfordBase32.test(str);
12046
12105
  }
12047
- var len = str.length;
12048
- if (len % 8 === 0 && base32.test(str)) {
12049
- return true;
12050
- }
12051
- return false;
12106
+ return str.length % 8 === 0 && base32.test(str);
12052
12107
  }
12053
- module.exports = exports$1.default;
12054
- module.exports.default = exports$1.default;
12108
+ module.exports = exports.default;
12109
+ module.exports.default = exports.default;
12055
12110
  } (isBase32, isBase32.exports));
12056
12111
 
12057
12112
  var isBase32Exports = isBase32.exports;
12058
12113
 
12059
12114
  var isBase58 = {exports: {}};
12060
12115
 
12061
- (function (module, exports$1) {
12116
+ (function (module, exports) {
12062
12117
 
12063
- Object.defineProperty(exports$1, "__esModule", {
12118
+ Object.defineProperty(exports, "__esModule", {
12064
12119
  value: true
12065
12120
  });
12066
- exports$1.default = isBase58;
12121
+ exports.default = isBase58;
12067
12122
  var _assertString = _interopRequireDefault(assertStringExports);
12068
12123
  function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
12069
12124
  // Accepted chars - 123456789ABCDEFGH JKLMN PQRSTUVWXYZabcdefghijk mnopqrstuvwxyz
12070
12125
  var base58Reg = /^[A-HJ-NP-Za-km-z1-9]*$/;
12071
12126
  function isBase58(str) {
12072
12127
  (0, _assertString.default)(str);
12073
- if (base58Reg.test(str)) {
12074
- return true;
12075
- }
12076
- return false;
12128
+ return base58Reg.test(str);
12077
12129
  }
12078
- module.exports = exports$1.default;
12079
- module.exports.default = exports$1.default;
12130
+ module.exports = exports.default;
12131
+ module.exports.default = exports.default;
12080
12132
  } (isBase58, isBase58.exports));
12081
12133
 
12082
12134
  var isBase58Exports = isBase58.exports;
12083
12135
 
12084
12136
  var isDataURI = {exports: {}};
12085
12137
 
12086
- (function (module, exports$1) {
12138
+ (function (module, exports) {
12087
12139
 
12088
- Object.defineProperty(exports$1, "__esModule", {
12140
+ Object.defineProperty(exports, "__esModule", {
12089
12141
  value: true
12090
12142
  });
12091
- exports$1.default = isDataURI;
12143
+ exports.default = isDataURI;
12092
12144
  var _assertString = _interopRequireDefault(assertStringExports);
12093
12145
  function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
12094
12146
  var validMediaType = /^[a-z]+\/[a-z0-9\-\+\._]+$/i;
@@ -12121,20 +12173,20 @@ var isDataURI = {exports: {}};
12121
12173
  }
12122
12174
  return true;
12123
12175
  }
12124
- module.exports = exports$1.default;
12125
- module.exports.default = exports$1.default;
12176
+ module.exports = exports.default;
12177
+ module.exports.default = exports.default;
12126
12178
  } (isDataURI, isDataURI.exports));
12127
12179
 
12128
12180
  var isDataURIExports = isDataURI.exports;
12129
12181
 
12130
12182
  var isMagnetURI = {exports: {}};
12131
12183
 
12132
- (function (module, exports$1) {
12184
+ (function (module, exports) {
12133
12185
 
12134
- Object.defineProperty(exports$1, "__esModule", {
12186
+ Object.defineProperty(exports, "__esModule", {
12135
12187
  value: true
12136
12188
  });
12137
- exports$1.default = isMagnetURI;
12189
+ exports.default = isMagnetURI;
12138
12190
  var _assertString = _interopRequireDefault(assertStringExports);
12139
12191
  function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
12140
12192
  var magnetURIComponent = /(?:^magnet:\?|[^?&]&)xt(?:\.1)?=urn:(?:(?:aich|bitprint|btih|ed2k|ed2khash|kzhash|md5|sha1|tree:tiger):[a-z0-9]{32}(?:[a-z0-9]{8})?|btmh:1220[a-z0-9]{64})(?:$|&)/i;
@@ -12145,8 +12197,8 @@ var isMagnetURI = {exports: {}};
12145
12197
  }
12146
12198
  return magnetURIComponent.test(url);
12147
12199
  }
12148
- module.exports = exports$1.default;
12149
- module.exports.default = exports$1.default;
12200
+ module.exports = exports.default;
12201
+ module.exports.default = exports.default;
12150
12202
  } (isMagnetURI, isMagnetURI.exports));
12151
12203
 
12152
12204
  var isMagnetURIExports = isMagnetURI.exports;
@@ -12157,12 +12209,12 @@ var trim = {exports: {}};
12157
12209
 
12158
12210
  var rtrim = {exports: {}};
12159
12211
 
12160
- (function (module, exports$1) {
12212
+ (function (module, exports) {
12161
12213
 
12162
- Object.defineProperty(exports$1, "__esModule", {
12214
+ Object.defineProperty(exports, "__esModule", {
12163
12215
  value: true
12164
12216
  });
12165
- exports$1.default = rtrim;
12217
+ exports.default = rtrim;
12166
12218
  var _assertString = _interopRequireDefault(assertStringExports);
12167
12219
  function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
12168
12220
  function rtrim(str, chars) {
@@ -12179,20 +12231,20 @@ var rtrim = {exports: {}};
12179
12231
  }
12180
12232
  return str.slice(0, strIndex + 1);
12181
12233
  }
12182
- module.exports = exports$1.default;
12183
- module.exports.default = exports$1.default;
12234
+ module.exports = exports.default;
12235
+ module.exports.default = exports.default;
12184
12236
  } (rtrim, rtrim.exports));
12185
12237
 
12186
12238
  var rtrimExports = rtrim.exports;
12187
12239
 
12188
12240
  var ltrim = {exports: {}};
12189
12241
 
12190
- (function (module, exports$1) {
12242
+ (function (module, exports) {
12191
12243
 
12192
- Object.defineProperty(exports$1, "__esModule", {
12244
+ Object.defineProperty(exports, "__esModule", {
12193
12245
  value: true
12194
12246
  });
12195
- exports$1.default = ltrim;
12247
+ exports.default = ltrim;
12196
12248
  var _assertString = _interopRequireDefault(assertStringExports);
12197
12249
  function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
12198
12250
  function ltrim(str, chars) {
@@ -12201,36 +12253,36 @@ var ltrim = {exports: {}};
12201
12253
  var pattern = chars ? new RegExp("^[".concat(chars.replace(/[.*+?^${}()|[\]\\]/g, '\\$&'), "]+"), 'g') : /^\s+/g;
12202
12254
  return str.replace(pattern, '');
12203
12255
  }
12204
- module.exports = exports$1.default;
12205
- module.exports.default = exports$1.default;
12256
+ module.exports = exports.default;
12257
+ module.exports.default = exports.default;
12206
12258
  } (ltrim, ltrim.exports));
12207
12259
 
12208
12260
  var ltrimExports = ltrim.exports;
12209
12261
 
12210
- (function (module, exports$1) {
12262
+ (function (module, exports) {
12211
12263
 
12212
- Object.defineProperty(exports$1, "__esModule", {
12264
+ Object.defineProperty(exports, "__esModule", {
12213
12265
  value: true
12214
12266
  });
12215
- exports$1.default = trim;
12267
+ exports.default = trim;
12216
12268
  var _rtrim = _interopRequireDefault(rtrimExports);
12217
12269
  var _ltrim = _interopRequireDefault(ltrimExports);
12218
12270
  function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
12219
12271
  function trim(str, chars) {
12220
12272
  return (0, _rtrim.default)((0, _ltrim.default)(str, chars), chars);
12221
12273
  }
12222
- module.exports = exports$1.default;
12223
- module.exports.default = exports$1.default;
12274
+ module.exports = exports.default;
12275
+ module.exports.default = exports.default;
12224
12276
  } (trim, trim.exports));
12225
12277
 
12226
12278
  var trimExports = trim.exports;
12227
12279
 
12228
- (function (module, exports$1) {
12280
+ (function (module, exports) {
12229
12281
 
12230
- Object.defineProperty(exports$1, "__esModule", {
12282
+ Object.defineProperty(exports, "__esModule", {
12231
12283
  value: true
12232
12284
  });
12233
- exports$1.default = isMailtoURI;
12285
+ exports.default = isMailtoURI;
12234
12286
  var _trim = _interopRequireDefault(trimExports);
12235
12287
  var _isEmail = _interopRequireDefault(isEmailExports);
12236
12288
  var _assertString = _interopRequireDefault(assertStringExports);
@@ -12307,20 +12359,20 @@ var trimExports = trim.exports;
12307
12359
  return true;
12308
12360
  });
12309
12361
  }
12310
- module.exports = exports$1.default;
12311
- module.exports.default = exports$1.default;
12362
+ module.exports = exports.default;
12363
+ module.exports.default = exports.default;
12312
12364
  } (isMailtoURI, isMailtoURI.exports));
12313
12365
 
12314
12366
  var isMailtoURIExports = isMailtoURI.exports;
12315
12367
 
12316
12368
  var isMimeType = {exports: {}};
12317
12369
 
12318
- (function (module, exports$1) {
12370
+ (function (module, exports) {
12319
12371
 
12320
- Object.defineProperty(exports$1, "__esModule", {
12372
+ Object.defineProperty(exports, "__esModule", {
12321
12373
  value: true
12322
12374
  });
12323
- exports$1.default = isMimeType;
12375
+ exports.default = isMimeType;
12324
12376
  var _assertString = _interopRequireDefault(assertStringExports);
12325
12377
  function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
12326
12378
  /*
@@ -12361,20 +12413,20 @@ var isMimeType = {exports: {}};
12361
12413
  (0, _assertString.default)(str);
12362
12414
  return mimeTypeSimple.test(str) || mimeTypeText.test(str) || mimeTypeMultipart.test(str);
12363
12415
  }
12364
- module.exports = exports$1.default;
12365
- module.exports.default = exports$1.default;
12416
+ module.exports = exports.default;
12417
+ module.exports.default = exports.default;
12366
12418
  } (isMimeType, isMimeType.exports));
12367
12419
 
12368
12420
  var isMimeTypeExports = isMimeType.exports;
12369
12421
 
12370
12422
  var isLatLong = {exports: {}};
12371
12423
 
12372
- (function (module, exports$1) {
12424
+ (function (module, exports) {
12373
12425
 
12374
- Object.defineProperty(exports$1, "__esModule", {
12426
+ Object.defineProperty(exports, "__esModule", {
12375
12427
  value: true
12376
12428
  });
12377
- exports$1.default = isLatLong;
12429
+ exports.default = isLatLong;
12378
12430
  var _assertString = _interopRequireDefault(assertStringExports);
12379
12431
  var _merge = _interopRequireDefault(mergeExports);
12380
12432
  var _includesString = _interopRequireDefault(includesStringExports);
@@ -12397,8 +12449,8 @@ var isLatLong = {exports: {}};
12397
12449
  }
12398
12450
  return lat.test(pair[0]) && long.test(pair[1]);
12399
12451
  }
12400
- module.exports = exports$1.default;
12401
- module.exports.default = exports$1.default;
12452
+ module.exports = exports.default;
12453
+ module.exports.default = exports.default;
12402
12454
  } (isLatLong, isLatLong.exports));
12403
12455
 
12404
12456
  var isLatLongExports = isLatLong.exports;
@@ -12461,6 +12513,7 @@ var patterns = {
12461
12513
  LU: fourDigit,
12462
12514
  LV: /^LV\-\d{4}$/,
12463
12515
  LK: fiveDigit,
12516
+ MC: /^980\d{2}$/,
12464
12517
  MG: threeDigit,
12465
12518
  MX: fiveDigit,
12466
12519
  MT: /^[A-Za-z]{3}\s{0,1}\d{4}$/,
@@ -12512,32 +12565,32 @@ function isPostalCode(str, locale) {
12512
12565
 
12513
12566
  var _escape = {exports: {}};
12514
12567
 
12515
- (function (module, exports$1) {
12568
+ (function (module, exports) {
12516
12569
 
12517
- Object.defineProperty(exports$1, "__esModule", {
12570
+ Object.defineProperty(exports, "__esModule", {
12518
12571
  value: true
12519
12572
  });
12520
- exports$1.default = escape;
12573
+ exports.default = escape;
12521
12574
  var _assertString = _interopRequireDefault(assertStringExports);
12522
12575
  function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
12523
12576
  function escape(str) {
12524
12577
  (0, _assertString.default)(str);
12525
12578
  return str.replace(/&/g, '&amp;').replace(/"/g, '&quot;').replace(/'/g, '&#x27;').replace(/</g, '&lt;').replace(/>/g, '&gt;').replace(/\//g, '&#x2F;').replace(/\\/g, '&#x5C;').replace(/`/g, '&#96;');
12526
12579
  }
12527
- module.exports = exports$1.default;
12528
- module.exports.default = exports$1.default;
12580
+ module.exports = exports.default;
12581
+ module.exports.default = exports.default;
12529
12582
  } (_escape, _escape.exports));
12530
12583
 
12531
12584
  var _escapeExports = _escape.exports;
12532
12585
 
12533
12586
  var _unescape = {exports: {}};
12534
12587
 
12535
- (function (module, exports$1) {
12588
+ (function (module, exports) {
12536
12589
 
12537
- Object.defineProperty(exports$1, "__esModule", {
12590
+ Object.defineProperty(exports, "__esModule", {
12538
12591
  value: true
12539
12592
  });
12540
- exports$1.default = unescape;
12593
+ exports.default = unescape;
12541
12594
  var _assertString = _interopRequireDefault(assertStringExports);
12542
12595
  function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
12543
12596
  function unescape(str) {
@@ -12547,8 +12600,8 @@ var _unescape = {exports: {}};
12547
12600
  // bugs with intermediate strings containing escape sequences
12548
12601
  // See: https://github.com/validatorjs/validator.js/issues/1827
12549
12602
  }
12550
- module.exports = exports$1.default;
12551
- module.exports.default = exports$1.default;
12603
+ module.exports = exports.default;
12604
+ module.exports.default = exports.default;
12552
12605
  } (_unescape, _unescape.exports));
12553
12606
 
12554
12607
  var _unescapeExports = _unescape.exports;
@@ -12557,30 +12610,30 @@ var stripLow = {exports: {}};
12557
12610
 
12558
12611
  var blacklist = {exports: {}};
12559
12612
 
12560
- (function (module, exports$1) {
12613
+ (function (module, exports) {
12561
12614
 
12562
- Object.defineProperty(exports$1, "__esModule", {
12615
+ Object.defineProperty(exports, "__esModule", {
12563
12616
  value: true
12564
12617
  });
12565
- exports$1.default = blacklist;
12618
+ exports.default = blacklist;
12566
12619
  var _assertString = _interopRequireDefault(assertStringExports);
12567
12620
  function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
12568
12621
  function blacklist(str, chars) {
12569
12622
  (0, _assertString.default)(str);
12570
12623
  return str.replace(new RegExp("[".concat(chars, "]+"), 'g'), '');
12571
12624
  }
12572
- module.exports = exports$1.default;
12573
- module.exports.default = exports$1.default;
12625
+ module.exports = exports.default;
12626
+ module.exports.default = exports.default;
12574
12627
  } (blacklist, blacklist.exports));
12575
12628
 
12576
12629
  var blacklistExports = blacklist.exports;
12577
12630
 
12578
- (function (module, exports$1) {
12631
+ (function (module, exports) {
12579
12632
 
12580
- Object.defineProperty(exports$1, "__esModule", {
12633
+ Object.defineProperty(exports, "__esModule", {
12581
12634
  value: true
12582
12635
  });
12583
- exports$1.default = stripLow;
12636
+ exports.default = stripLow;
12584
12637
  var _assertString = _interopRequireDefault(assertStringExports);
12585
12638
  var _blacklist = _interopRequireDefault(blacklistExports);
12586
12639
  function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
@@ -12589,40 +12642,40 @@ var blacklistExports = blacklist.exports;
12589
12642
  var chars = keep_new_lines ? '\\x00-\\x09\\x0B\\x0C\\x0E-\\x1F\\x7F' : '\\x00-\\x1F\\x7F';
12590
12643
  return (0, _blacklist.default)(str, chars);
12591
12644
  }
12592
- module.exports = exports$1.default;
12593
- module.exports.default = exports$1.default;
12645
+ module.exports = exports.default;
12646
+ module.exports.default = exports.default;
12594
12647
  } (stripLow, stripLow.exports));
12595
12648
 
12596
12649
  var stripLowExports = stripLow.exports;
12597
12650
 
12598
12651
  var whitelist = {exports: {}};
12599
12652
 
12600
- (function (module, exports$1) {
12653
+ (function (module, exports) {
12601
12654
 
12602
- Object.defineProperty(exports$1, "__esModule", {
12655
+ Object.defineProperty(exports, "__esModule", {
12603
12656
  value: true
12604
12657
  });
12605
- exports$1.default = whitelist;
12658
+ exports.default = whitelist;
12606
12659
  var _assertString = _interopRequireDefault(assertStringExports);
12607
12660
  function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
12608
12661
  function whitelist(str, chars) {
12609
12662
  (0, _assertString.default)(str);
12610
12663
  return str.replace(new RegExp("[^".concat(chars, "]+"), 'g'), '');
12611
12664
  }
12612
- module.exports = exports$1.default;
12613
- module.exports.default = exports$1.default;
12665
+ module.exports = exports.default;
12666
+ module.exports.default = exports.default;
12614
12667
  } (whitelist, whitelist.exports));
12615
12668
 
12616
12669
  var whitelistExports = whitelist.exports;
12617
12670
 
12618
12671
  var isWhitelisted = {exports: {}};
12619
12672
 
12620
- (function (module, exports$1) {
12673
+ (function (module, exports) {
12621
12674
 
12622
- Object.defineProperty(exports$1, "__esModule", {
12675
+ Object.defineProperty(exports, "__esModule", {
12623
12676
  value: true
12624
12677
  });
12625
- exports$1.default = isWhitelisted;
12678
+ exports.default = isWhitelisted;
12626
12679
  var _assertString = _interopRequireDefault(assertStringExports);
12627
12680
  function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
12628
12681
  function isWhitelisted(str, chars) {
@@ -12634,20 +12687,20 @@ var isWhitelisted = {exports: {}};
12634
12687
  }
12635
12688
  return true;
12636
12689
  }
12637
- module.exports = exports$1.default;
12638
- module.exports.default = exports$1.default;
12690
+ module.exports = exports.default;
12691
+ module.exports.default = exports.default;
12639
12692
  } (isWhitelisted, isWhitelisted.exports));
12640
12693
 
12641
12694
  var isWhitelistedExports = isWhitelisted.exports;
12642
12695
 
12643
12696
  var normalizeEmail = {exports: {}};
12644
12697
 
12645
- (function (module, exports$1) {
12698
+ (function (module, exports) {
12646
12699
 
12647
- Object.defineProperty(exports$1, "__esModule", {
12700
+ Object.defineProperty(exports, "__esModule", {
12648
12701
  value: true
12649
12702
  });
12650
- exports$1.default = normalizeEmail;
12703
+ exports.default = normalizeEmail;
12651
12704
  var _merge = _interopRequireDefault(mergeExports);
12652
12705
  function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
12653
12706
  var default_normalize_email_options = {
@@ -12780,41 +12833,41 @@ var normalizeEmail = {exports: {}};
12780
12833
  }
12781
12834
  return parts.join('@');
12782
12835
  }
12783
- module.exports = exports$1.default;
12784
- module.exports.default = exports$1.default;
12836
+ module.exports = exports.default;
12837
+ module.exports.default = exports.default;
12785
12838
  } (normalizeEmail, normalizeEmail.exports));
12786
12839
 
12787
12840
  var normalizeEmailExports = normalizeEmail.exports;
12788
12841
 
12789
12842
  var isSlug = {exports: {}};
12790
12843
 
12791
- (function (module, exports$1) {
12844
+ (function (module, exports) {
12792
12845
 
12793
- Object.defineProperty(exports$1, "__esModule", {
12846
+ Object.defineProperty(exports, "__esModule", {
12794
12847
  value: true
12795
12848
  });
12796
- exports$1.default = isSlug;
12849
+ exports.default = isSlug;
12797
12850
  var _assertString = _interopRequireDefault(assertStringExports);
12798
12851
  function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
12799
- var charsetRegex = /^[^\s-_](?!.*?[-_]{2,})[a-z0-9-\\][^\s]*[^-_\s]$/;
12852
+ var charsetRegex = /^[a-z0-9](?!.*[-_]{2,})(?:[a-z0-9_-]*[a-z0-9])?$/;
12800
12853
  function isSlug(str) {
12801
12854
  (0, _assertString.default)(str);
12802
12855
  return charsetRegex.test(str);
12803
12856
  }
12804
- module.exports = exports$1.default;
12805
- module.exports.default = exports$1.default;
12857
+ module.exports = exports.default;
12858
+ module.exports.default = exports.default;
12806
12859
  } (isSlug, isSlug.exports));
12807
12860
 
12808
12861
  var isSlugExports = isSlug.exports;
12809
12862
 
12810
12863
  var isLicensePlate = {exports: {}};
12811
12864
 
12812
- (function (module, exports$1) {
12865
+ (function (module, exports) {
12813
12866
 
12814
- Object.defineProperty(exports$1, "__esModule", {
12867
+ Object.defineProperty(exports, "__esModule", {
12815
12868
  value: true
12816
12869
  });
12817
- exports$1.default = isLicensePlate;
12870
+ exports.default = isLicensePlate;
12818
12871
  var _assertString = _interopRequireDefault(assertStringExports);
12819
12872
  function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
12820
12873
  var validators = {
@@ -12874,20 +12927,20 @@ var isLicensePlate = {exports: {}};
12874
12927
  }
12875
12928
  throw new Error("Invalid locale '".concat(locale, "'"));
12876
12929
  }
12877
- module.exports = exports$1.default;
12878
- module.exports.default = exports$1.default;
12930
+ module.exports = exports.default;
12931
+ module.exports.default = exports.default;
12879
12932
  } (isLicensePlate, isLicensePlate.exports));
12880
12933
 
12881
12934
  var isLicensePlateExports = isLicensePlate.exports;
12882
12935
 
12883
12936
  var isStrongPassword = {exports: {}};
12884
12937
 
12885
- (function (module, exports$1) {
12938
+ (function (module, exports) {
12886
12939
 
12887
- Object.defineProperty(exports$1, "__esModule", {
12940
+ Object.defineProperty(exports, "__esModule", {
12888
12941
  value: true
12889
12942
  });
12890
- exports$1.default = isStrongPassword;
12943
+ exports.default = isStrongPassword;
12891
12944
  var _merge = _interopRequireDefault(mergeExports);
12892
12945
  var _assertString = _interopRequireDefault(assertStringExports);
12893
12946
  function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
@@ -12979,8 +13032,8 @@ var isStrongPassword = {exports: {}};
12979
13032
  }
12980
13033
  return analysis.length >= options.minLength && analysis.lowercaseCount >= options.minLowercase && analysis.uppercaseCount >= options.minUppercase && analysis.numberCount >= options.minNumbers && analysis.symbolCount >= options.minSymbols;
12981
13034
  }
12982
- module.exports = exports$1.default;
12983
- module.exports.default = exports$1.default;
13035
+ module.exports = exports.default;
13036
+ module.exports.default = exports.default;
12984
13037
  } (isStrongPassword, isStrongPassword.exports));
12985
13038
 
12986
13039
  var isStrongPasswordExports = isStrongPassword.exports;
@@ -13260,13 +13313,13 @@ function isVAT(str, countryCode) {
13260
13313
  throw new Error("Invalid country code: '".concat(countryCode, "'"));
13261
13314
  }
13262
13315
 
13263
- (function (module, exports$1) {
13316
+ (function (module, exports) {
13264
13317
 
13265
13318
  function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
13266
- Object.defineProperty(exports$1, "__esModule", {
13319
+ Object.defineProperty(exports, "__esModule", {
13267
13320
  value: true
13268
13321
  });
13269
- exports$1.default = void 0;
13322
+ exports.default = void 0;
13270
13323
  var _toDate = _interopRequireDefault(toDateExports);
13271
13324
  var _toFloat = _interopRequireDefault(toFloatExports);
13272
13325
  var _toInt = _interopRequireDefault(toIntExports);
@@ -13371,7 +13424,7 @@ function isVAT(str, countryCode) {
13371
13424
  var _isVAT = _interopRequireDefault(isVAT$1);
13372
13425
  function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function _interopRequireWildcard(e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != _typeof(e) && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (var _t in e) "default" !== _t && {}.hasOwnProperty.call(e, _t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, _t)) && (i.get || i.set) ? o(f, _t, i) : f[_t] = e[_t]); return f; })(e, t); }
13373
13426
  function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
13374
- var version = '13.15.26';
13427
+ var version = '13.15.35';
13375
13428
  var validator = {
13376
13429
  version: version,
13377
13430
  toDate: _toDate.default,
@@ -13486,9 +13539,9 @@ function isVAT(str, countryCode) {
13486
13539
  isVAT: _isVAT.default,
13487
13540
  ibanLocales: _isIBAN.locales
13488
13541
  };
13489
- exports$1.default = validator;
13490
- module.exports = exports$1.default;
13491
- module.exports.default = exports$1.default;
13542
+ exports.default = validator;
13543
+ module.exports = exports.default;
13544
+ module.exports.default = exports.default;
13492
13545
  } (validator$1, validator$1.exports));
13493
13546
 
13494
13547
  var validatorExports = validator$1.exports;
@@ -14133,11 +14186,11 @@ function requireCSV () {
14133
14186
  return CSV;
14134
14187
  }
14135
14188
 
14136
- (function (exports$1) {
14189
+ (function (exports) {
14137
14190
  function __export(m) {
14138
- for (var p in m) if (!exports$1.hasOwnProperty(p)) exports$1[p] = m[p];
14191
+ for (var p in m) if (!exports.hasOwnProperty(p)) exports[p] = m[p];
14139
14192
  }
14140
- Object.defineProperty(exports$1, "__esModule", { value: true });
14193
+ Object.defineProperty(exports, "__esModule", { value: true });
14141
14194
  __export(requireCSV());
14142
14195
  } (dist));
14143
14196
 
@@ -15672,8 +15725,8 @@ return CRC32;
15672
15725
  })();
15673
15726
  /* [MS-CFB] v20171201 */
15674
15727
  var CFB = /*#__PURE__*/(function _CFB(){
15675
- var exports$1/*:CFBModule*/ = /*::(*/{}/*:: :any)*/;
15676
- exports$1.version = '1.2.2';
15728
+ var exports/*:CFBModule*/ = /*::(*/{}/*:: :any)*/;
15729
+ exports.version = '1.2.2';
15677
15730
  /* [MS-CFB] 2.6.4 */
15678
15731
  function namecmp(l/*:string*/, r/*:string*/)/*:number*/ {
15679
15732
  var L = l.split("/"), R = r.split("/");
@@ -17374,12 +17427,12 @@ function cfb_mov(cfb/*:CFBContainer*/, old_name/*:string*/, new_name/*:string*/)
17374
17427
 
17375
17428
  function cfb_gc(cfb/*:CFBContainer*/)/*:void*/ { rebuild_cfb(cfb, true); }
17376
17429
 
17377
- exports$1.find = find;
17378
- exports$1.read = read;
17379
- exports$1.parse = parse;
17380
- exports$1.write = write;
17381
- exports$1.writeFile = write_file;
17382
- exports$1.utils = {
17430
+ exports.find = find;
17431
+ exports.read = read;
17432
+ exports.parse = parse;
17433
+ exports.write = write;
17434
+ exports.writeFile = write_file;
17435
+ exports.utils = {
17383
17436
  cfb_new: cfb_new,
17384
17437
  cfb_add: cfb_add,
17385
17438
  cfb_del: cfb_del,
@@ -17395,7 +17448,7 @@ exports$1.utils = {
17395
17448
  consts: consts
17396
17449
  };
17397
17450
 
17398
- return exports$1;
17451
+ return exports;
17399
17452
  })();
17400
17453
 
17401
17454
  var _fs;
@@ -41943,20 +41996,17 @@ var _validateFormat = (rows, hasHeader, cols, options) => {
41943
41996
  _forgeColumnsCountError(row, rowIndex + 1, cols, errors);
41944
41997
  }
41945
41998
  for (var colIndex = 0; colIndex < knownColsCount; colIndex++) {
41946
- var {
41947
- type,
41948
- colOptions,
41949
- acceptsEmptyFields,
41950
- field
41951
- } = colMeta[colIndex];
41999
+ var _colMeta$colIndex = colMeta[colIndex],
42000
+ type = _colMeta$colIndex.type,
42001
+ colOptions = _colMeta$colIndex.colOptions,
42002
+ acceptsEmptyFields = _colMeta$colIndex.acceptsEmptyFields,
42003
+ field = _colMeta$colIndex.field;
41952
42004
  var value = row[colIndex];
41953
42005
  if (value === undefined) continue;
41954
42006
  var validationResult = ValidationUtils.isValid(value, type, colOptions, acceptsEmptyFields);
41955
42007
  if (validationResult !== true) {
41956
- var {
41957
- summary: errorSummary,
41958
- context: errorContext
41959
- } = validationResult;
42008
+ var errorSummary = validationResult.summary,
42009
+ errorContext = validationResult.context;
41960
42010
  var errorLoc = "Line ".concat(rowIndex + 1, ", Column ").concat(colIndex + 1, " (\"").concat(field, "\")");
41961
42011
  errors.push(new Error$1(errorSummary, errorLoc, errorContext));
41962
42012
  }
@@ -42502,7 +42552,7 @@ var AuthDev = {
42502
42552
  acquireTokensByRequest
42503
42553
  };
42504
42554
 
42505
- /*! @azure/msal-common v15.16.1 2026-03-13 */
42555
+ /*! @azure/msal-common v15.17.0 2026-03-18 */
42506
42556
  /*
42507
42557
  * Copyright (c) Microsoft Corporation. All rights reserved.
42508
42558
  * Licensed under the MIT License.
@@ -42776,7 +42826,7 @@ const JsonWebTokenTypes = {
42776
42826
  // Token renewal offset default in seconds
42777
42827
  const DEFAULT_TOKEN_RENEWAL_OFFSET_SEC = 300;
42778
42828
 
42779
- /*! @azure/msal-common v15.16.1 2026-03-13 */
42829
+ /*! @azure/msal-common v15.17.0 2026-03-18 */
42780
42830
  /*
42781
42831
  * Copyright (c) Microsoft Corporation. All rights reserved.
42782
42832
  * Licensed under the MIT License.
@@ -42787,7 +42837,7 @@ const DEFAULT_TOKEN_RENEWAL_OFFSET_SEC = 300;
42787
42837
  const unexpectedError = "unexpected_error";
42788
42838
  const postRequestFailed$1 = "post_request_failed";
42789
42839
 
42790
- /*! @azure/msal-common v15.16.1 2026-03-13 */
42840
+ /*! @azure/msal-common v15.17.0 2026-03-18 */
42791
42841
 
42792
42842
  /*
42793
42843
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -42822,7 +42872,7 @@ function createAuthError(code, additionalMessage) {
42822
42872
  : AuthErrorMessages[code]);
42823
42873
  }
42824
42874
 
42825
- /*! @azure/msal-common v15.16.1 2026-03-13 */
42875
+ /*! @azure/msal-common v15.17.0 2026-03-18 */
42826
42876
  /*
42827
42877
  * Copyright (c) Microsoft Corporation. All rights reserved.
42828
42878
  * Licensed under the MIT License.
@@ -42873,7 +42923,7 @@ const methodNotImplemented = "method_not_implemented";
42873
42923
  const nestedAppAuthBridgeDisabled = "nested_app_auth_bridge_disabled";
42874
42924
  const platformBrokerError = "platform_broker_error";
42875
42925
 
42876
- /*! @azure/msal-common v15.16.1 2026-03-13 */
42926
+ /*! @azure/msal-common v15.17.0 2026-03-18 */
42877
42927
 
42878
42928
  /*
42879
42929
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -42948,7 +42998,7 @@ function createClientAuthError(errorCode, additionalMessage) {
42948
42998
  return new ClientAuthError(errorCode, additionalMessage);
42949
42999
  }
42950
43000
 
42951
- /*! @azure/msal-common v15.16.1 2026-03-13 */
43001
+ /*! @azure/msal-common v15.17.0 2026-03-18 */
42952
43002
 
42953
43003
  /*
42954
43004
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -42987,7 +43037,7 @@ const DEFAULT_CRYPTO_IMPLEMENTATION = {
42987
43037
  },
42988
43038
  };
42989
43039
 
42990
- /*! @azure/msal-common v15.16.1 2026-03-13 */
43040
+ /*! @azure/msal-common v15.17.0 2026-03-18 */
42991
43041
 
42992
43042
  /*
42993
43043
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -43178,12 +43228,12 @@ class Logger {
43178
43228
  }
43179
43229
  }
43180
43230
 
43181
- /*! @azure/msal-common v15.16.1 2026-03-13 */
43231
+ /*! @azure/msal-common v15.17.0 2026-03-18 */
43182
43232
  /* eslint-disable header/header */
43183
43233
  const name$2 = "@azure/msal-common";
43184
- const version$1 = "15.16.1";
43234
+ const version$1 = "15.17.0";
43185
43235
 
43186
- /*! @azure/msal-common v15.16.1 2026-03-13 */
43236
+ /*! @azure/msal-common v15.17.0 2026-03-18 */
43187
43237
  /*
43188
43238
  * Copyright (c) Microsoft Corporation. All rights reserved.
43189
43239
  * Licensed under the MIT License.
@@ -43192,7 +43242,7 @@ const AzureCloudInstance = {
43192
43242
  // AzureCloudInstance is not specified.
43193
43243
  None: "none"};
43194
43244
 
43195
- /*! @azure/msal-common v15.16.1 2026-03-13 */
43245
+ /*! @azure/msal-common v15.17.0 2026-03-18 */
43196
43246
  /*
43197
43247
  * Copyright (c) Microsoft Corporation. All rights reserved.
43198
43248
  * Licensed under the MIT License.
@@ -43222,7 +43272,7 @@ const invalidRequestMethodForEAR = "invalid_request_method_for_EAR";
43222
43272
  const invalidAuthorizePostBodyParameters = "invalid_authorize_post_body_parameters";
43223
43273
  const invalidPlatformBrokerConfiguration = "invalid_platform_broker_configuration";
43224
43274
 
43225
- /*! @azure/msal-common v15.16.1 2026-03-13 */
43275
+ /*! @azure/msal-common v15.17.0 2026-03-18 */
43226
43276
 
43227
43277
  /*
43228
43278
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -43268,7 +43318,7 @@ function createClientConfigurationError(errorCode) {
43268
43318
  return new ClientConfigurationError(errorCode);
43269
43319
  }
43270
43320
 
43271
- /*! @azure/msal-common v15.16.1 2026-03-13 */
43321
+ /*! @azure/msal-common v15.17.0 2026-03-18 */
43272
43322
  /*
43273
43323
  * Copyright (c) Microsoft Corporation. All rights reserved.
43274
43324
  * Licensed under the MIT License.
@@ -43404,7 +43454,7 @@ class StringUtils {
43404
43454
  }
43405
43455
  }
43406
43456
 
43407
- /*! @azure/msal-common v15.16.1 2026-03-13 */
43457
+ /*! @azure/msal-common v15.17.0 2026-03-18 */
43408
43458
 
43409
43459
  /*
43410
43460
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -43599,7 +43649,7 @@ class ScopeSet {
43599
43649
  }
43600
43650
  }
43601
43651
 
43602
- /*! @azure/msal-common v15.16.1 2026-03-13 */
43652
+ /*! @azure/msal-common v15.17.0 2026-03-18 */
43603
43653
 
43604
43654
  /*
43605
43655
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -43639,7 +43689,7 @@ function buildClientInfoFromHomeAccountId(homeAccountId) {
43639
43689
  };
43640
43690
  }
43641
43691
 
43642
- /*! @azure/msal-common v15.16.1 2026-03-13 */
43692
+ /*! @azure/msal-common v15.17.0 2026-03-18 */
43643
43693
  /*
43644
43694
  * Copyright (c) Microsoft Corporation. All rights reserved.
43645
43695
  * Licensed under the MIT License.
@@ -43721,7 +43771,7 @@ function updateAccountTenantProfileData(baseAccountInfo, tenantProfile, idTokenC
43721
43771
  return updatedAccountInfo;
43722
43772
  }
43723
43773
 
43724
- /*! @azure/msal-common v15.16.1 2026-03-13 */
43774
+ /*! @azure/msal-common v15.17.0 2026-03-18 */
43725
43775
  /*
43726
43776
  * Copyright (c) Microsoft Corporation. All rights reserved.
43727
43777
  * Licensed under the MIT License.
@@ -43736,7 +43786,7 @@ const AuthorityType = {
43736
43786
  Ciam: 3,
43737
43787
  };
43738
43788
 
43739
- /*! @azure/msal-common v15.16.1 2026-03-13 */
43789
+ /*! @azure/msal-common v15.17.0 2026-03-18 */
43740
43790
  /*
43741
43791
  * Copyright (c) Microsoft Corporation. All rights reserved.
43742
43792
  * Licensed under the MIT License.
@@ -43758,7 +43808,7 @@ function getTenantIdFromIdTokenClaims(idTokenClaims) {
43758
43808
  return null;
43759
43809
  }
43760
43810
 
43761
- /*! @azure/msal-common v15.16.1 2026-03-13 */
43811
+ /*! @azure/msal-common v15.17.0 2026-03-18 */
43762
43812
  /*
43763
43813
  * Copyright (c) Microsoft Corporation. All rights reserved.
43764
43814
  * Licensed under the MIT License.
@@ -43782,7 +43832,7 @@ const ProtocolMode = {
43782
43832
  EAR: "EAR",
43783
43833
  };
43784
43834
 
43785
- /*! @azure/msal-common v15.16.1 2026-03-13 */
43835
+ /*! @azure/msal-common v15.17.0 2026-03-18 */
43786
43836
 
43787
43837
  /*
43788
43838
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -44017,7 +44067,7 @@ class AccountEntity {
44017
44067
  }
44018
44068
  }
44019
44069
 
44020
- /*! @azure/msal-common v15.16.1 2026-03-13 */
44070
+ /*! @azure/msal-common v15.17.0 2026-03-18 */
44021
44071
 
44022
44072
  /*
44023
44073
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -44098,7 +44148,7 @@ function checkMaxAge(authTime, maxAge) {
44098
44148
  }
44099
44149
  }
44100
44150
 
44101
- /*! @azure/msal-common v15.16.1 2026-03-13 */
44151
+ /*! @azure/msal-common v15.17.0 2026-03-18 */
44102
44152
 
44103
44153
  /*
44104
44154
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -44214,7 +44264,7 @@ function normalizeUrlForComparison(url) {
44214
44264
  }
44215
44265
  }
44216
44266
 
44217
- /*! @azure/msal-common v15.16.1 2026-03-13 */
44267
+ /*! @azure/msal-common v15.17.0 2026-03-18 */
44218
44268
 
44219
44269
  /*
44220
44270
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -44378,7 +44428,7 @@ class UrlString {
44378
44428
  }
44379
44429
  }
44380
44430
 
44381
- /*! @azure/msal-common v15.16.1 2026-03-13 */
44431
+ /*! @azure/msal-common v15.17.0 2026-03-18 */
44382
44432
 
44383
44433
  /*
44384
44434
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -44553,7 +44603,7 @@ function getCloudDiscoveryMetadataFromNetworkResponse(response, authorityHost) {
44553
44603
  return null;
44554
44604
  }
44555
44605
 
44556
- /*! @azure/msal-common v15.16.1 2026-03-13 */
44606
+ /*! @azure/msal-common v15.17.0 2026-03-18 */
44557
44607
  /*
44558
44608
  * Copyright (c) Microsoft Corporation. All rights reserved.
44559
44609
  * Licensed under the MIT License.
@@ -44561,7 +44611,7 @@ function getCloudDiscoveryMetadataFromNetworkResponse(response, authorityHost) {
44561
44611
  const cacheQuotaExceeded = "cache_quota_exceeded";
44562
44612
  const cacheErrorUnknown = "cache_error_unknown";
44563
44613
 
44564
- /*! @azure/msal-common v15.16.1 2026-03-13 */
44614
+ /*! @azure/msal-common v15.17.0 2026-03-18 */
44565
44615
 
44566
44616
  /*
44567
44617
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -44606,7 +44656,7 @@ function createCacheError(e) {
44606
44656
  }
44607
44657
  }
44608
44658
 
44609
- /*! @azure/msal-common v15.16.1 2026-03-13 */
44659
+ /*! @azure/msal-common v15.17.0 2026-03-18 */
44610
44660
 
44611
44661
  /*
44612
44662
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -45716,7 +45766,7 @@ class DefaultStorageClass extends CacheManager {
45716
45766
  }
45717
45767
  }
45718
45768
 
45719
- /*! @azure/msal-common v15.16.1 2026-03-13 */
45769
+ /*! @azure/msal-common v15.17.0 2026-03-18 */
45720
45770
  /*
45721
45771
  * Copyright (c) Microsoft Corporation. All rights reserved.
45722
45772
  * Licensed under the MIT License.
@@ -45993,7 +46043,7 @@ const PerformanceEvents = {
45993
46043
  const PerformanceEventStatus = {
45994
46044
  InProgress: 1};
45995
46045
 
45996
- /*! @azure/msal-common v15.16.1 2026-03-13 */
46046
+ /*! @azure/msal-common v15.17.0 2026-03-18 */
45997
46047
 
45998
46048
  /*
45999
46049
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -46072,7 +46122,7 @@ class StubPerformanceClient {
46072
46122
  }
46073
46123
  }
46074
46124
 
46075
- /*! @azure/msal-common v15.16.1 2026-03-13 */
46125
+ /*! @azure/msal-common v15.17.0 2026-03-18 */
46076
46126
 
46077
46127
  /*
46078
46128
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -46172,7 +46222,7 @@ function isOidcProtocolMode(config) {
46172
46222
  return (config.authOptions.authority.options.protocolMode === ProtocolMode.OIDC);
46173
46223
  }
46174
46224
 
46175
- /*! @azure/msal-common v15.16.1 2026-03-13 */
46225
+ /*! @azure/msal-common v15.17.0 2026-03-18 */
46176
46226
  /*
46177
46227
  * Copyright (c) Microsoft Corporation. All rights reserved.
46178
46228
  * Licensed under the MIT License.
@@ -46182,7 +46232,7 @@ const CcsCredentialType = {
46182
46232
  UPN: "UPN",
46183
46233
  };
46184
46234
 
46185
- /*! @azure/msal-common v15.16.1 2026-03-13 */
46235
+ /*! @azure/msal-common v15.17.0 2026-03-18 */
46186
46236
  /*
46187
46237
  * Copyright (c) Microsoft Corporation. All rights reserved.
46188
46238
  * Licensed under the MIT License.
@@ -46230,9 +46280,10 @@ const BROKER_CLIENT_ID = "brk_client_id";
46230
46280
  const BROKER_REDIRECT_URI = "brk_redirect_uri";
46231
46281
  const INSTANCE_AWARE = "instance_aware";
46232
46282
  const EAR_JWK = "ear_jwk";
46233
- const EAR_JWE_CRYPTO = "ear_jwe_crypto";
46283
+ const EAR_JWE_CRYPTO = "ear_jwe_crypto";
46284
+ const CLI_DATA = "clidata";
46234
46285
 
46235
- /*! @azure/msal-common v15.16.1 2026-03-13 */
46286
+ /*! @azure/msal-common v15.17.0 2026-03-18 */
46236
46287
 
46237
46288
  /*
46238
46289
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -46498,6 +46549,12 @@ function addGrantType(parameters, grantType) {
46498
46549
  function addClientInfo(parameters) {
46499
46550
  parameters.set(CLIENT_INFO, "1");
46500
46551
  }
46552
+ /**
46553
+ * add clidata=1 to request to indicate client data support
46554
+ */
46555
+ function addCliData(parameters) {
46556
+ parameters.set(CLI_DATA, "1");
46557
+ }
46501
46558
  function addInstanceAware(parameters) {
46502
46559
  if (!parameters.has(INSTANCE_AWARE)) {
46503
46560
  parameters.set(INSTANCE_AWARE, "true");
@@ -46612,7 +46669,7 @@ function addPostBodyParameters(parameters, bodyParameters) {
46612
46669
  });
46613
46670
  }
46614
46671
 
46615
- /*! @azure/msal-common v15.16.1 2026-03-13 */
46672
+ /*! @azure/msal-common v15.17.0 2026-03-18 */
46616
46673
  /*
46617
46674
  * Copyright (c) Microsoft Corporation. All rights reserved.
46618
46675
  * Licensed under the MIT License.
@@ -46624,7 +46681,7 @@ function isOpenIdConfigResponse(response) {
46624
46681
  response.hasOwnProperty("jwks_uri"));
46625
46682
  }
46626
46683
 
46627
- /*! @azure/msal-common v15.16.1 2026-03-13 */
46684
+ /*! @azure/msal-common v15.17.0 2026-03-18 */
46628
46685
  /*
46629
46686
  * Copyright (c) Microsoft Corporation. All rights reserved.
46630
46687
  * Licensed under the MIT License.
@@ -46634,7 +46691,7 @@ function isCloudInstanceDiscoveryResponse(response) {
46634
46691
  response.hasOwnProperty("metadata"));
46635
46692
  }
46636
46693
 
46637
- /*! @azure/msal-common v15.16.1 2026-03-13 */
46694
+ /*! @azure/msal-common v15.17.0 2026-03-18 */
46638
46695
  /*
46639
46696
  * Copyright (c) Microsoft Corporation. All rights reserved.
46640
46697
  * Licensed under the MIT License.
@@ -46644,7 +46701,7 @@ function isCloudInstanceDiscoveryErrorResponse(response) {
46644
46701
  response.hasOwnProperty("error_description"));
46645
46702
  }
46646
46703
 
46647
- /*! @azure/msal-common v15.16.1 2026-03-13 */
46704
+ /*! @azure/msal-common v15.17.0 2026-03-18 */
46648
46705
  /*
46649
46706
  * Copyright (c) Microsoft Corporation. All rights reserved.
46650
46707
  * Licensed under the MIT License.
@@ -46740,7 +46797,7 @@ const invokeAsync = (callback, eventName, logger, telemetryClient, correlationId
46740
46797
  };
46741
46798
  };
46742
46799
 
46743
- /*! @azure/msal-common v15.16.1 2026-03-13 */
46800
+ /*! @azure/msal-common v15.17.0 2026-03-18 */
46744
46801
 
46745
46802
  /*
46746
46803
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -46846,7 +46903,7 @@ RegionDiscovery.IMDS_OPTIONS = {
46846
46903
  },
46847
46904
  };
46848
46905
 
46849
- /*! @azure/msal-common v15.16.1 2026-03-13 */
46906
+ /*! @azure/msal-common v15.17.0 2026-03-18 */
46850
46907
  /*
46851
46908
  * Copyright (c) Microsoft Corporation. All rights reserved.
46852
46909
  * Licensed under the MIT License.
@@ -46911,7 +46968,7 @@ function wasClockTurnedBack(cachedAt) {
46911
46968
  return cachedAtSec > nowSeconds();
46912
46969
  }
46913
46970
 
46914
- /*! @azure/msal-common v15.16.1 2026-03-13 */
46971
+ /*! @azure/msal-common v15.17.0 2026-03-18 */
46915
46972
 
46916
46973
  /*
46917
46974
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -47173,7 +47230,7 @@ function isAuthorityMetadataExpired(metadata) {
47173
47230
  return metadata.expiresAt <= nowSeconds();
47174
47231
  }
47175
47232
 
47176
- /*! @azure/msal-common v15.16.1 2026-03-13 */
47233
+ /*! @azure/msal-common v15.17.0 2026-03-18 */
47177
47234
 
47178
47235
  /*
47179
47236
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -48012,7 +48069,7 @@ function buildStaticAuthorityOptions(authOptions) {
48012
48069
  };
48013
48070
  }
48014
48071
 
48015
- /*! @azure/msal-common v15.16.1 2026-03-13 */
48072
+ /*! @azure/msal-common v15.17.0 2026-03-18 */
48016
48073
 
48017
48074
  /*
48018
48075
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -48043,7 +48100,7 @@ async function createDiscoveredInstance(authorityUri, networkClient, cacheManage
48043
48100
  }
48044
48101
  }
48045
48102
 
48046
- /*! @azure/msal-common v15.16.1 2026-03-13 */
48103
+ /*! @azure/msal-common v15.17.0 2026-03-18 */
48047
48104
 
48048
48105
  /*
48049
48106
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -48062,7 +48119,7 @@ class ServerError extends AuthError {
48062
48119
  }
48063
48120
  }
48064
48121
 
48065
- /*! @azure/msal-common v15.16.1 2026-03-13 */
48122
+ /*! @azure/msal-common v15.17.0 2026-03-18 */
48066
48123
  /*
48067
48124
  * Copyright (c) Microsoft Corporation. All rights reserved.
48068
48125
  * Licensed under the MIT License.
@@ -48083,7 +48140,7 @@ function getRequestThumbprint(clientId, request, homeAccountId) {
48083
48140
  };
48084
48141
  }
48085
48142
 
48086
- /*! @azure/msal-common v15.16.1 2026-03-13 */
48143
+ /*! @azure/msal-common v15.17.0 2026-03-18 */
48087
48144
 
48088
48145
  /*
48089
48146
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -48170,7 +48227,7 @@ class ThrottlingUtils {
48170
48227
  }
48171
48228
  }
48172
48229
 
48173
- /*! @azure/msal-common v15.16.1 2026-03-13 */
48230
+ /*! @azure/msal-common v15.17.0 2026-03-18 */
48174
48231
 
48175
48232
  /*
48176
48233
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -48201,7 +48258,7 @@ function createNetworkError(error, httpStatus, responseHeaders, additionalError)
48201
48258
  return new NetworkError(error, httpStatus, responseHeaders);
48202
48259
  }
48203
48260
 
48204
- /*! @azure/msal-common v15.16.1 2026-03-13 */
48261
+ /*! @azure/msal-common v15.17.0 2026-03-18 */
48205
48262
 
48206
48263
  /*
48207
48264
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -48349,7 +48406,7 @@ class BaseClient {
48349
48406
  }
48350
48407
  }
48351
48408
 
48352
- /*! @azure/msal-common v15.16.1 2026-03-13 */
48409
+ /*! @azure/msal-common v15.17.0 2026-03-18 */
48353
48410
  /*
48354
48411
  * Copyright (c) Microsoft Corporation. All rights reserved.
48355
48412
  * Licensed under the MIT License.
@@ -48400,7 +48457,7 @@ const badToken = "bad_token";
48400
48457
  */
48401
48458
  const interruptedUser = "interrupted_user";
48402
48459
 
48403
- /*! @azure/msal-common v15.16.1 2026-03-13 */
48460
+ /*! @azure/msal-common v15.17.0 2026-03-18 */
48404
48461
 
48405
48462
  /*
48406
48463
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -48475,7 +48532,7 @@ function createInteractionRequiredAuthError(errorCode) {
48475
48532
  return new InteractionRequiredAuthError(errorCode, InteractionRequiredAuthErrorMessages[errorCode]);
48476
48533
  }
48477
48534
 
48478
- /*! @azure/msal-common v15.16.1 2026-03-13 */
48535
+ /*! @azure/msal-common v15.17.0 2026-03-18 */
48479
48536
 
48480
48537
  /*
48481
48538
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -48547,7 +48604,7 @@ class ProtocolUtils {
48547
48604
  }
48548
48605
  }
48549
48606
 
48550
- /*! @azure/msal-common v15.16.1 2026-03-13 */
48607
+ /*! @azure/msal-common v15.17.0 2026-03-18 */
48551
48608
 
48552
48609
  /*
48553
48610
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -48629,7 +48686,7 @@ class PopTokenGenerator {
48629
48686
  }
48630
48687
  }
48631
48688
 
48632
- /*! @azure/msal-common v15.16.1 2026-03-13 */
48689
+ /*! @azure/msal-common v15.17.0 2026-03-18 */
48633
48690
  /*
48634
48691
  * Copyright (c) Microsoft Corporation. All rights reserved.
48635
48692
  * Licensed under the MIT License.
@@ -48656,7 +48713,7 @@ class PopTokenGenerator {
48656
48713
  }
48657
48714
  }
48658
48715
 
48659
- /*! @azure/msal-common v15.16.1 2026-03-13 */
48716
+ /*! @azure/msal-common v15.17.0 2026-03-18 */
48660
48717
 
48661
48718
  /*
48662
48719
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -48995,7 +49052,7 @@ function buildAccountToCache(cacheStorage, authority, homeAccountId, base64Decod
48995
49052
  return baseAccount;
48996
49053
  }
48997
49054
 
48998
- /*! @azure/msal-common v15.16.1 2026-03-13 */
49055
+ /*! @azure/msal-common v15.17.0 2026-03-18 */
48999
49056
  /*
49000
49057
  * Copyright (c) Microsoft Corporation. All rights reserved.
49001
49058
  * Licensed under the MIT License.
@@ -49013,7 +49070,7 @@ async function getClientAssertion(clientAssertion, clientId, tokenEndpoint) {
49013
49070
  }
49014
49071
  }
49015
49072
 
49016
- /*! @azure/msal-common v15.16.1 2026-03-13 */
49073
+ /*! @azure/msal-common v15.17.0 2026-03-18 */
49017
49074
 
49018
49075
  /*
49019
49076
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -49253,7 +49310,7 @@ class AuthorizationCodeClient extends BaseClient {
49253
49310
  }
49254
49311
  }
49255
49312
 
49256
- /*! @azure/msal-common v15.16.1 2026-03-13 */
49313
+ /*! @azure/msal-common v15.17.0 2026-03-18 */
49257
49314
 
49258
49315
  /*
49259
49316
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -49469,7 +49526,7 @@ class RefreshTokenClient extends BaseClient {
49469
49526
  }
49470
49527
  }
49471
49528
 
49472
- /*! @azure/msal-common v15.16.1 2026-03-13 */
49529
+ /*! @azure/msal-common v15.17.0 2026-03-18 */
49473
49530
 
49474
49531
  /*
49475
49532
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -49567,7 +49624,7 @@ class SilentFlowClient extends BaseClient {
49567
49624
  }
49568
49625
  }
49569
49626
 
49570
- /*! @azure/msal-common v15.16.1 2026-03-13 */
49627
+ /*! @azure/msal-common v15.17.0 2026-03-18 */
49571
49628
 
49572
49629
  /*
49573
49630
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -49582,7 +49639,7 @@ const StubbedNetworkModule = {
49582
49639
  },
49583
49640
  };
49584
49641
 
49585
- /*! @azure/msal-common v15.16.1 2026-03-13 */
49642
+ /*! @azure/msal-common v15.17.0 2026-03-18 */
49586
49643
 
49587
49644
  /*
49588
49645
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -49614,6 +49671,8 @@ function getStandardAuthorizeRequestParameters(authOptions, request, logger, per
49614
49671
  addResponseMode(parameters, request.responseMode);
49615
49672
  // add client_info=1
49616
49673
  addClientInfo(parameters);
49674
+ // add clidata=1
49675
+ addCliData(parameters);
49617
49676
  if (request.prompt) {
49618
49677
  addPrompt(parameters, request.prompt);
49619
49678
  performanceClient?.addFields({ prompt: request.prompt }, correlationId);
@@ -49809,7 +49868,7 @@ function extractLoginHint(account) {
49809
49868
  return account.loginHint || account.idTokenClaims?.login_hint || null;
49810
49869
  }
49811
49870
 
49812
- /*! @azure/msal-common v15.16.1 2026-03-13 */
49871
+ /*! @azure/msal-common v15.17.0 2026-03-18 */
49813
49872
 
49814
49873
  /*
49815
49874
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -50072,7 +50131,7 @@ class ServerTelemetryManager {
50072
50131
  }
50073
50132
  }
50074
50133
 
50075
- /*! @azure/msal-common v15.16.1 2026-03-13 */
50134
+ /*! @azure/msal-common v15.17.0 2026-03-18 */
50076
50135
  /*
50077
50136
  * Copyright (c) Microsoft Corporation. All rights reserved.
50078
50137
  * Licensed under the MIT License.
@@ -50080,7 +50139,7 @@ class ServerTelemetryManager {
50080
50139
  const missingKidError = "missing_kid_error";
50081
50140
  const missingAlgError = "missing_alg_error";
50082
50141
 
50083
- /*! @azure/msal-common v15.16.1 2026-03-13 */
50142
+ /*! @azure/msal-common v15.17.0 2026-03-18 */
50084
50143
 
50085
50144
  /*
50086
50145
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -50105,7 +50164,7 @@ function createJoseHeaderError(code) {
50105
50164
  return new JoseHeaderError(code, JoseHeaderErrorMessages[code]);
50106
50165
  }
50107
50166
 
50108
- /*! @azure/msal-common v15.16.1 2026-03-13 */
50167
+ /*! @azure/msal-common v15.17.0 2026-03-18 */
50109
50168
 
50110
50169
  /*
50111
50170
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -50145,7 +50204,7 @@ class JoseHeader {
50145
50204
  }
50146
50205
  }
50147
50206
 
50148
- /*! @azure/msal-browser v4.29.1 2026-03-13 */
50207
+ /*! @azure/msal-browser v4.30.0 2026-03-18 */
50149
50208
  /*
50150
50209
  * Copyright (c) Microsoft Corporation. All rights reserved.
50151
50210
  * Licensed under the MIT License.
@@ -50202,7 +50261,7 @@ const failedToParseHeaders = "failed_to_parse_headers";
50202
50261
  const failedToDecryptEarResponse = "failed_to_decrypt_ear_response";
50203
50262
  const timedOut = "timed_out";
50204
50263
 
50205
- /*! @azure/msal-browser v4.29.1 2026-03-13 */
50264
+ /*! @azure/msal-browser v4.30.0 2026-03-18 */
50206
50265
 
50207
50266
  /*
50208
50267
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -50279,7 +50338,7 @@ function createBrowserAuthError(errorCode, subError) {
50279
50338
  return new BrowserAuthError(errorCode, subError);
50280
50339
  }
50281
50340
 
50282
- /*! @azure/msal-browser v4.29.1 2026-03-13 */
50341
+ /*! @azure/msal-browser v4.30.0 2026-03-18 */
50283
50342
 
50284
50343
  /*
50285
50344
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -50468,7 +50527,7 @@ const iFrameRenewalPolicies = [
50468
50527
  CacheLookupPolicy.RefreshTokenAndNetwork,
50469
50528
  ];
50470
50529
 
50471
- /*! @azure/msal-browser v4.29.1 2026-03-13 */
50530
+ /*! @azure/msal-browser v4.30.0 2026-03-18 */
50472
50531
  /*
50473
50532
  * Copyright (c) Microsoft Corporation. All rights reserved.
50474
50533
  * Licensed under the MIT License.
@@ -50513,7 +50572,7 @@ function base64EncArr(aBytes) {
50513
50572
  return btoa(binString);
50514
50573
  }
50515
50574
 
50516
- /*! @azure/msal-browser v4.29.1 2026-03-13 */
50575
+ /*! @azure/msal-browser v4.30.0 2026-03-18 */
50517
50576
 
50518
50577
  /*
50519
50578
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -50552,7 +50611,7 @@ function base64DecToArr(base64String) {
50552
50611
  return Uint8Array.from(binString, (m) => m.codePointAt(0) || 0);
50553
50612
  }
50554
50613
 
50555
- /*! @azure/msal-browser v4.29.1 2026-03-13 */
50614
+ /*! @azure/msal-browser v4.30.0 2026-03-18 */
50556
50615
 
50557
50616
  /*
50558
50617
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -50851,7 +50910,7 @@ async function hashString(plainText) {
50851
50910
  return urlEncodeArr(hashBytes);
50852
50911
  }
50853
50912
 
50854
- /*! @azure/msal-browser v4.29.1 2026-03-13 */
50913
+ /*! @azure/msal-browser v4.30.0 2026-03-18 */
50855
50914
  /*
50856
50915
  * Copyright (c) Microsoft Corporation. All rights reserved.
50857
50916
  * Licensed under the MIT License.
@@ -50860,7 +50919,7 @@ const storageNotSupported = "storage_not_supported";
50860
50919
  const stubbedPublicClientApplicationCalled = "stubbed_public_client_application_called";
50861
50920
  const inMemRedirectUnavailable = "in_mem_redirect_unavailable";
50862
50921
 
50863
- /*! @azure/msal-browser v4.29.1 2026-03-13 */
50922
+ /*! @azure/msal-browser v4.30.0 2026-03-18 */
50864
50923
 
50865
50924
  /*
50866
50925
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -50900,7 +50959,7 @@ function createBrowserConfigurationAuthError(errorCode) {
50900
50959
  return new BrowserConfigurationAuthError(errorCode, BrowserConfigurationAuthErrorMessages[errorCode]);
50901
50960
  }
50902
50961
 
50903
- /*! @azure/msal-browser v4.29.1 2026-03-13 */
50962
+ /*! @azure/msal-browser v4.30.0 2026-03-18 */
50904
50963
 
50905
50964
  /*
50906
50965
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -51062,7 +51121,7 @@ function createGuid() {
51062
51121
  return createNewGuid();
51063
51122
  }
51064
51123
 
51065
- /*! @azure/msal-browser v4.29.1 2026-03-13 */
51124
+ /*! @azure/msal-browser v4.30.0 2026-03-18 */
51066
51125
 
51067
51126
  /*
51068
51127
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -51105,7 +51164,7 @@ class NavigationClient {
51105
51164
  }
51106
51165
  }
51107
51166
 
51108
- /*! @azure/msal-browser v4.29.1 2026-03-13 */
51167
+ /*! @azure/msal-browser v4.30.0 2026-03-18 */
51109
51168
 
51110
51169
  /*
51111
51170
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -51226,7 +51285,7 @@ function getHeaderDict(headers) {
51226
51285
  }
51227
51286
  }
51228
51287
 
51229
- /*! @azure/msal-browser v4.29.1 2026-03-13 */
51288
+ /*! @azure/msal-browser v4.30.0 2026-03-18 */
51230
51289
 
51231
51290
  /*
51232
51291
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -51362,12 +51421,12 @@ function buildConfiguration({ auth: userInputAuth, cache: userInputCache, system
51362
51421
  return overlayedConfig;
51363
51422
  }
51364
51423
 
51365
- /*! @azure/msal-browser v4.29.1 2026-03-13 */
51424
+ /*! @azure/msal-browser v4.30.0 2026-03-18 */
51366
51425
  /* eslint-disable header/header */
51367
51426
  const name$1 = "@azure/msal-browser";
51368
- const version = "4.29.1";
51427
+ const version = "4.30.0";
51369
51428
 
51370
- /*! @azure/msal-browser v4.29.1 2026-03-13 */
51429
+ /*! @azure/msal-browser v4.30.0 2026-03-18 */
51371
51430
  /*
51372
51431
  * Copyright (c) Microsoft Corporation. All rights reserved.
51373
51432
  * Licensed under the MIT License.
@@ -51395,7 +51454,7 @@ function getTokenKeysCacheKey(clientId, schema = CREDENTIAL_SCHEMA_VERSION) {
51395
51454
  return `${PREFIX}.${schema}.${TOKEN_KEYS}.${clientId}`;
51396
51455
  }
51397
51456
 
51398
- /*! @azure/msal-browser v4.29.1 2026-03-13 */
51457
+ /*! @azure/msal-browser v4.30.0 2026-03-18 */
51399
51458
 
51400
51459
  /*
51401
51460
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -51492,7 +51551,7 @@ class BaseOperatingContext {
51492
51551
  }
51493
51552
  }
51494
51553
 
51495
- /*! @azure/msal-browser v4.29.1 2026-03-13 */
51554
+ /*! @azure/msal-browser v4.30.0 2026-03-18 */
51496
51555
 
51497
51556
  /*
51498
51557
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -51538,7 +51597,7 @@ StandardOperatingContext.MODULE_NAME = "";
51538
51597
  */
51539
51598
  StandardOperatingContext.ID = "StandardOperatingContext";
51540
51599
 
51541
- /*! @azure/msal-browser v4.29.1 2026-03-13 */
51600
+ /*! @azure/msal-browser v4.30.0 2026-03-18 */
51542
51601
 
51543
51602
  /*
51544
51603
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -51741,7 +51800,7 @@ class DatabaseStorage {
51741
51800
  }
51742
51801
  }
51743
51802
 
51744
- /*! @azure/msal-browser v4.29.1 2026-03-13 */
51803
+ /*! @azure/msal-browser v4.30.0 2026-03-18 */
51745
51804
  /*
51746
51805
  * Copyright (c) Microsoft Corporation. All rights reserved.
51747
51806
  * Licensed under the MIT License.
@@ -51787,7 +51846,7 @@ class MemoryStorage {
51787
51846
  }
51788
51847
  }
51789
51848
 
51790
- /*! @azure/msal-browser v4.29.1 2026-03-13 */
51849
+ /*! @azure/msal-browser v4.30.0 2026-03-18 */
51791
51850
 
51792
51851
  /*
51793
51852
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -51921,7 +51980,7 @@ class AsyncMemoryStorage {
51921
51980
  }
51922
51981
  }
51923
51982
 
51924
- /*! @azure/msal-browser v4.29.1 2026-03-13 */
51983
+ /*! @azure/msal-browser v4.30.0 2026-03-18 */
51925
51984
 
51926
51985
  /*
51927
51986
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -52102,7 +52161,7 @@ function getSortedObjectString(obj) {
52102
52161
  return JSON.stringify(obj, Object.keys(obj).sort());
52103
52162
  }
52104
52163
 
52105
- /*! @azure/msal-browser v4.29.1 2026-03-13 */
52164
+ /*! @azure/msal-browser v4.30.0 2026-03-18 */
52106
52165
 
52107
52166
  /*
52108
52167
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -52180,7 +52239,7 @@ function getCookieExpirationTime(cookieLifeDays) {
52180
52239
  return expr.toUTCString();
52181
52240
  }
52182
52241
 
52183
- /*! @azure/msal-browser v4.29.1 2026-03-13 */
52242
+ /*! @azure/msal-browser v4.30.0 2026-03-18 */
52184
52243
 
52185
52244
  /*
52186
52245
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -52222,7 +52281,7 @@ function getTokenKeys(clientId, storage, schemaVersion) {
52222
52281
  };
52223
52282
  }
52224
52283
 
52225
- /*! @azure/msal-browser v4.29.1 2026-03-13 */
52284
+ /*! @azure/msal-browser v4.30.0 2026-03-18 */
52226
52285
  /*
52227
52286
  * Copyright (c) Microsoft Corporation. All rights reserved.
52228
52287
  * Licensed under the MIT License.
@@ -52233,7 +52292,7 @@ function isEncrypted(data) {
52233
52292
  data.hasOwnProperty("data"));
52234
52293
  }
52235
52294
 
52236
- /*! @azure/msal-browser v4.29.1 2026-03-13 */
52295
+ /*! @azure/msal-browser v4.30.0 2026-03-18 */
52237
52296
 
52238
52297
  /*
52239
52298
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -52523,7 +52582,7 @@ class LocalStorage {
52523
52582
  }
52524
52583
  }
52525
52584
 
52526
- /*! @azure/msal-browser v4.29.1 2026-03-13 */
52585
+ /*! @azure/msal-browser v4.30.0 2026-03-18 */
52527
52586
 
52528
52587
  /*
52529
52588
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -52565,7 +52624,7 @@ class SessionStorage {
52565
52624
  }
52566
52625
  }
52567
52626
 
52568
- /*! @azure/msal-browser v4.29.1 2026-03-13 */
52627
+ /*! @azure/msal-browser v4.30.0 2026-03-18 */
52569
52628
  /*
52570
52629
  * Copyright (c) Microsoft Corporation. All rights reserved.
52571
52630
  * Licensed under the MIT License.
@@ -52600,7 +52659,7 @@ const EventType = {
52600
52659
  BROKER_CONNECTION_ESTABLISHED: "msal:brokerConnectionEstablished",
52601
52660
  };
52602
52661
 
52603
- /*! @azure/msal-browser v4.29.1 2026-03-13 */
52662
+ /*! @azure/msal-browser v4.30.0 2026-03-18 */
52604
52663
  /*
52605
52664
  * Copyright (c) Microsoft Corporation. All rights reserved.
52606
52665
  * Licensed under the MIT License.
@@ -52617,7 +52676,7 @@ function removeElementFromArray(array, element) {
52617
52676
  }
52618
52677
  }
52619
52678
 
52620
- /*! @azure/msal-browser v4.29.1 2026-03-13 */
52679
+ /*! @azure/msal-browser v4.30.0 2026-03-18 */
52621
52680
 
52622
52681
  /*
52623
52682
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -54032,7 +54091,7 @@ const DEFAULT_BROWSER_CACHE_MANAGER = (clientId, logger, performanceClient, even
54032
54091
  return new BrowserCacheManager(clientId, cacheOptions, DEFAULT_CRYPTO_IMPLEMENTATION, logger, performanceClient, eventHandler);
54033
54092
  };
54034
54093
 
54035
- /*! @azure/msal-browser v4.29.1 2026-03-13 */
54094
+ /*! @azure/msal-browser v4.30.0 2026-03-18 */
54036
54095
  /*
54037
54096
  * Copyright (c) Microsoft Corporation. All rights reserved.
54038
54097
  * Licensed under the MIT License.
@@ -54157,7 +54216,7 @@ function getActiveAccount(browserStorage, correlationId) {
54157
54216
  return browserStorage.getActiveAccount(correlationId);
54158
54217
  }
54159
54218
 
54160
- /*! @azure/msal-browser v4.29.1 2026-03-13 */
54219
+ /*! @azure/msal-browser v4.30.0 2026-03-18 */
54161
54220
 
54162
54221
  /*
54163
54222
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -54263,7 +54322,7 @@ class EventHandler {
54263
54322
  }
54264
54323
  }
54265
54324
 
54266
- /*! @azure/msal-browser v4.29.1 2026-03-13 */
54325
+ /*! @azure/msal-browser v4.30.0 2026-03-18 */
54267
54326
 
54268
54327
  /*
54269
54328
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -54379,7 +54438,7 @@ class BaseInteractionClient {
54379
54438
  }
54380
54439
  }
54381
54440
 
54382
- /*! @azure/msal-browser v4.29.1 2026-03-13 */
54441
+ /*! @azure/msal-browser v4.30.0 2026-03-18 */
54383
54442
 
54384
54443
  /*
54385
54444
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -54464,7 +54523,7 @@ function validateRequestMethod(interactionRequest, protocolMode) {
54464
54523
  return httpMethod;
54465
54524
  }
54466
54525
 
54467
- /*! @azure/msal-browser v4.29.1 2026-03-13 */
54526
+ /*! @azure/msal-browser v4.30.0 2026-03-18 */
54468
54527
 
54469
54528
  /*
54470
54529
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -54672,7 +54731,7 @@ class StandardInteractionClient extends BaseInteractionClient {
54672
54731
  }
54673
54732
  }
54674
54733
 
54675
- /*! @azure/msal-browser v4.29.1 2026-03-13 */
54734
+ /*! @azure/msal-browser v4.30.0 2026-03-18 */
54676
54735
 
54677
54736
  /*
54678
54737
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -54696,7 +54755,7 @@ function extractBrowserRequestState(browserCrypto, state) {
54696
54755
  }
54697
54756
  }
54698
54757
 
54699
- /*! @azure/msal-browser v4.29.1 2026-03-13 */
54758
+ /*! @azure/msal-browser v4.30.0 2026-03-18 */
54700
54759
 
54701
54760
  /*
54702
54761
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -54735,7 +54794,7 @@ function validateInteractionType(response, browserCrypto, interactionType) {
54735
54794
  }
54736
54795
  }
54737
54796
 
54738
- /*! @azure/msal-browser v4.29.1 2026-03-13 */
54797
+ /*! @azure/msal-browser v4.30.0 2026-03-18 */
54739
54798
 
54740
54799
  /*
54741
54800
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -54831,7 +54890,7 @@ class InteractionHandler {
54831
54890
  }
54832
54891
  }
54833
54892
 
54834
- /*! @azure/msal-browser v4.29.1 2026-03-13 */
54893
+ /*! @azure/msal-browser v4.30.0 2026-03-18 */
54835
54894
  /*
54836
54895
  * Copyright (c) Microsoft Corporation. All rights reserved.
54837
54896
  * Licensed under the MIT License.
@@ -54840,7 +54899,7 @@ const contentError = "ContentError";
54840
54899
  const pageException = "PageException";
54841
54900
  const userSwitch = "user_switch";
54842
54901
 
54843
- /*! @azure/msal-browser v4.29.1 2026-03-13 */
54902
+ /*! @azure/msal-browser v4.30.0 2026-03-18 */
54844
54903
  /*
54845
54904
  * Copyright (c) Microsoft Corporation. All rights reserved.
54846
54905
  * Licensed under the MIT License.
@@ -54853,7 +54912,7 @@ const DISABLED = "DISABLED";
54853
54912
  const ACCOUNT_UNAVAILABLE = "ACCOUNT_UNAVAILABLE";
54854
54913
  const UX_NOT_ALLOWED = "UX_NOT_ALLOWED";
54855
54914
 
54856
- /*! @azure/msal-browser v4.29.1 2026-03-13 */
54915
+ /*! @azure/msal-browser v4.30.0 2026-03-18 */
54857
54916
 
54858
54917
  /*
54859
54918
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -54918,7 +54977,7 @@ function createNativeAuthError(code, description, ext) {
54918
54977
  return new NativeAuthError(code, NativeAuthErrorMessages[code] || description, ext);
54919
54978
  }
54920
54979
 
54921
- /*! @azure/msal-browser v4.29.1 2026-03-13 */
54980
+ /*! @azure/msal-browser v4.30.0 2026-03-18 */
54922
54981
 
54923
54982
  /*
54924
54983
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -54968,7 +55027,7 @@ class SilentCacheClient extends StandardInteractionClient {
54968
55027
  }
54969
55028
  }
54970
55029
 
54971
- /*! @azure/msal-browser v4.29.1 2026-03-13 */
55030
+ /*! @azure/msal-browser v4.30.0 2026-03-18 */
54972
55031
 
54973
55032
  /*
54974
55033
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -55462,11 +55521,19 @@ class PlatformAuthInteractionClient extends BaseInteractionClient {
55462
55521
  this.logger.trace("NativeInteractionClient - initializeNativeRequest called");
55463
55522
  const canonicalAuthority = await this.getCanonicalAuthority(request);
55464
55523
  // scopes are expected to be received by the native broker as "scope" and will be added to the request below. Other properties that should be dropped from the request to the native broker can be included in the object destructuring here.
55465
- const { scopes, ...remainingProperties } = request;
55524
+ const { scopes, claims, ...remainingProperties } = request;
55466
55525
  const scopeSet = new ScopeSet(scopes || []);
55467
55526
  scopeSet.appendScopes(OIDC_DEFAULT_SCOPES);
55527
+ // ignore config claims if skipBrokerClaims is set to true and this is a brokered authentication flow
55528
+ const configClaims = request.skipBrokerClaims && !!request.embeddedClientId
55529
+ ? undefined
55530
+ : this.config.auth.clientCapabilities;
55531
+ const mergedClaims = configClaims && configClaims.length
55532
+ ? addClientCapabilitiesToClaims(claims, configClaims)
55533
+ : claims;
55468
55534
  const validatedRequest = {
55469
55535
  ...remainingProperties,
55536
+ claims: mergedClaims,
55470
55537
  accountId: this.accountId,
55471
55538
  clientId: this.config.auth.clientId,
55472
55539
  authority: canonicalAuthority.urlString,
@@ -55595,12 +55662,59 @@ class PlatformAuthInteractionClient extends BaseInteractionClient {
55595
55662
  }
55596
55663
  }
55597
55664
 
55598
- /*! @azure/msal-browser v4.29.1 2026-03-13 */
55665
+ /*! @azure/msal-browser v4.30.0 2026-03-18 */
55599
55666
 
55600
55667
  /*
55601
55668
  * Copyright (c) Microsoft Corporation. All rights reserved.
55602
55669
  * Licensed under the MIT License.
55603
55670
  */
55671
+ const clientDataAccountTypeMapping = new Map([
55672
+ ["e", "AAD"],
55673
+ ["m", "MSA"],
55674
+ ]);
55675
+ /**
55676
+ * Parses the clientdata response parameter from the /authorize endpoint.
55677
+ *
55678
+ * The clientdata value is URL-encoded and pipe-delimited:
55679
+ * urlencoded(account_type | error | sub_error | cloud_instance | caller_data_boundary)
55680
+ *
55681
+ * @param clientdata - The raw clientdata string from the authorize response
55682
+ * @returns Parsed ClientData object, or null if the input is empty/invalid
55683
+ */
55684
+ function parseClientData(clientdata) {
55685
+ if (!clientdata) {
55686
+ return null;
55687
+ }
55688
+ try {
55689
+ const decoded = decodeURIComponent(clientdata);
55690
+ const parts = decoded.split("|");
55691
+ if (parts.length < 5) {
55692
+ return null;
55693
+ }
55694
+ return {
55695
+ accountType: clientDataAccountTypeMapping.get(parts[0]?.trim() || "") || "",
55696
+ error: parts[1]?.trim() || "",
55697
+ subError: parts[2]?.trim() || "",
55698
+ cloudInstance: parts[3]?.trim() || "",
55699
+ callerDataBoundary: parts[4]?.trim() || "",
55700
+ };
55701
+ }
55702
+ catch {
55703
+ return null;
55704
+ }
55705
+ }
55706
+ /**
55707
+ * Instruments account type, error, and suberror from clientdata
55708
+ */
55709
+ function instrumentClientData(response, correlationId, performanceClient) {
55710
+ const parsed = parseClientData(response.clientdata);
55711
+ parsed?.accountType &&
55712
+ performanceClient.addFields({ accountType: parsed.accountType }, correlationId);
55713
+ parsed?.error &&
55714
+ performanceClient.addFields({ serverErrorNo: parsed.error }, correlationId);
55715
+ parsed?.subError &&
55716
+ performanceClient.addFields({ serverSubErrorNo: parsed.subError }, correlationId);
55717
+ }
55604
55718
  /**
55605
55719
  * Returns map of parameters that are applicable to all calls to /authorize whether using PKCE or EAR
55606
55720
  * @param config
@@ -55763,6 +55877,8 @@ async function handleResponsePlatformBroker(request, accountId, apiId, config, b
55763
55877
  async function handleResponseCode(request, response, codeVerifier, apiId, config, authClient, browserStorage, nativeStorage, eventHandler, logger, performanceClient, platformAuthProvider) {
55764
55878
  // Remove throttle if it exists
55765
55879
  ThrottlingUtils.removeThrottle(browserStorage, config.auth.clientId, request);
55880
+ // Instrument clientdata telemetry fields from the authorize response
55881
+ instrumentClientData(response, request.correlationId, performanceClient);
55766
55882
  if (response.accountId) {
55767
55883
  return invokeAsync(handleResponsePlatformBroker, PerformanceEvents.HandleResponsePlatformBroker, logger, performanceClient, request.correlationId)(request, response.accountId, apiId, config, browserStorage, nativeStorage, eventHandler, logger, performanceClient, platformAuthProvider);
55768
55884
  }
@@ -55795,6 +55911,8 @@ async function handleResponseCode(request, response, codeVerifier, apiId, config
55795
55911
  async function handleResponseEAR(request, response, apiId, config, authority, browserStorage, nativeStorage, eventHandler, logger, performanceClient, platformAuthProvider) {
55796
55912
  // Remove throttle if it exists
55797
55913
  ThrottlingUtils.removeThrottle(browserStorage, config.auth.clientId, request);
55914
+ // Instrument clientdata telemetry fields from the authorize response
55915
+ instrumentClientData(response, request.correlationId, performanceClient);
55798
55916
  // Validate state & check response for errors
55799
55917
  validateAuthorizationResponse(response, request.state);
55800
55918
  if (!response.ear_jwe) {
@@ -55824,7 +55942,7 @@ async function handleResponseEAR(request, response, apiId, config, authority, br
55824
55942
  return (await invokeAsync(responseHandler.handleServerTokenResponse.bind(responseHandler), PerformanceEvents.HandleServerTokenResponse, logger, performanceClient, request.correlationId)(decryptedData, authority, nowSeconds(), request, apiId, additionalData, undefined, undefined, undefined, undefined));
55825
55943
  }
55826
55944
 
55827
- /*! @azure/msal-browser v4.29.1 2026-03-13 */
55945
+ /*! @azure/msal-browser v4.30.0 2026-03-18 */
55828
55946
 
55829
55947
  /*
55830
55948
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -55881,7 +55999,7 @@ async function generateCodeChallengeFromVerifier(pkceCodeVerifier, performanceCl
55881
55999
  }
55882
56000
  }
55883
56001
 
55884
- /*! @azure/msal-browser v4.29.1 2026-03-13 */
56002
+ /*! @azure/msal-browser v4.30.0 2026-03-18 */
55885
56003
 
55886
56004
  /*
55887
56005
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -56146,7 +56264,7 @@ class PlatformAuthExtensionHandler {
56146
56264
  }
56147
56265
  }
56148
56266
 
56149
- /*! @azure/msal-browser v4.29.1 2026-03-13 */
56267
+ /*! @azure/msal-browser v4.30.0 2026-03-18 */
56150
56268
 
56151
56269
  /*
56152
56270
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -56297,7 +56415,7 @@ class PlatformAuthDOMHandler {
56297
56415
  }
56298
56416
  }
56299
56417
 
56300
- /*! @azure/msal-browser v4.29.1 2026-03-13 */
56418
+ /*! @azure/msal-browser v4.30.0 2026-03-18 */
56301
56419
  async function getPlatformAuthProvider(logger, performanceClient, correlationId, nativeBrokerHandshakeTimeout, enablePlatformBrokerDOMSupport) {
56302
56420
  logger.trace("getPlatformAuthProvider called", correlationId);
56303
56421
  logger.trace("Has client allowed platform auth via DOM API: " +
@@ -56362,7 +56480,7 @@ function isPlatformAuthAllowed(config, logger, platformAuthProvider, authenticat
56362
56480
  return true;
56363
56481
  }
56364
56482
 
56365
- /*! @azure/msal-browser v4.29.1 2026-03-13 */
56483
+ /*! @azure/msal-browser v4.30.0 2026-03-18 */
56366
56484
 
56367
56485
  /*
56368
56486
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -56859,7 +56977,7 @@ class PopupClient extends StandardInteractionClient {
56859
56977
  }
56860
56978
  }
56861
56979
 
56862
- /*! @azure/msal-browser v4.29.1 2026-03-13 */
56980
+ /*! @azure/msal-browser v4.30.0 2026-03-18 */
56863
56981
 
56864
56982
  /*
56865
56983
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -57299,7 +57417,7 @@ class RedirectClient extends StandardInteractionClient {
57299
57417
  }
57300
57418
  }
57301
57419
 
57302
- /*! @azure/msal-browser v4.29.1 2026-03-13 */
57420
+ /*! @azure/msal-browser v4.30.0 2026-03-18 */
57303
57421
 
57304
57422
  /*
57305
57423
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -57468,7 +57586,7 @@ function removeHiddenIframe(iframe) {
57468
57586
  }
57469
57587
  }
57470
57588
 
57471
- /*! @azure/msal-browser v4.29.1 2026-03-13 */
57589
+ /*! @azure/msal-browser v4.30.0 2026-03-18 */
57472
57590
 
57473
57591
  /*
57474
57592
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -57675,7 +57793,7 @@ class SilentIframeClient extends StandardInteractionClient {
57675
57793
  }
57676
57794
  }
57677
57795
 
57678
- /*! @azure/msal-browser v4.29.1 2026-03-13 */
57796
+ /*! @azure/msal-browser v4.30.0 2026-03-18 */
57679
57797
 
57680
57798
  /*
57681
57799
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -57741,7 +57859,7 @@ class SilentRefreshClient extends StandardInteractionClient {
57741
57859
  }
57742
57860
  }
57743
57861
 
57744
- /*! @azure/msal-browser v4.29.1 2026-03-13 */
57862
+ /*! @azure/msal-browser v4.30.0 2026-03-18 */
57745
57863
 
57746
57864
  /*
57747
57865
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -57955,7 +58073,7 @@ class TokenCache {
57955
58073
  }
57956
58074
  }
57957
58075
 
57958
- /*! @azure/msal-browser v4.29.1 2026-03-13 */
58076
+ /*! @azure/msal-browser v4.30.0 2026-03-18 */
57959
58077
 
57960
58078
  /*
57961
58079
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -57968,7 +58086,7 @@ class HybridSpaAuthorizationCodeClient extends AuthorizationCodeClient {
57968
58086
  }
57969
58087
  }
57970
58088
 
57971
- /*! @azure/msal-browser v4.29.1 2026-03-13 */
58089
+ /*! @azure/msal-browser v4.30.0 2026-03-18 */
57972
58090
 
57973
58091
  /*
57974
58092
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -58034,7 +58152,7 @@ class SilentAuthCodeClient extends StandardInteractionClient {
58034
58152
  }
58035
58153
  }
58036
58154
 
58037
- /*! @azure/msal-browser v4.29.1 2026-03-13 */
58155
+ /*! @azure/msal-browser v4.30.0 2026-03-18 */
58038
58156
  function collectInstanceStats(currentClientId, performanceEvent, logger) {
58039
58157
  const frameInstances =
58040
58158
  // @ts-ignore
@@ -58050,7 +58168,7 @@ function collectInstanceStats(currentClientId, performanceEvent, logger) {
58050
58168
  });
58051
58169
  }
58052
58170
 
58053
- /*! @azure/msal-browser v4.29.1 2026-03-13 */
58171
+ /*! @azure/msal-browser v4.30.0 2026-03-18 */
58054
58172
 
58055
58173
  /*
58056
58174
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -59592,7 +59710,7 @@ function checkIfRefreshTokenErrorCanBeResolvedSilently(refreshTokenError, cacheL
59592
59710
  return isSilentlyResolvable && tryIframeRenewal;
59593
59711
  }
59594
59712
 
59595
- /*! @azure/msal-browser v4.29.1 2026-03-13 */
59713
+ /*! @azure/msal-browser v4.30.0 2026-03-18 */
59596
59714
 
59597
59715
  /*
59598
59716
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -59604,7 +59722,7 @@ async function createV3Controller(config, request) {
59604
59722
  return StandardController.createController(standard, request);
59605
59723
  }
59606
59724
 
59607
- /*! @azure/msal-browser v4.29.1 2026-03-13 */
59725
+ /*! @azure/msal-browser v4.30.0 2026-03-18 */
59608
59726
 
59609
59727
  /*
59610
59728
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -59977,33 +60095,35 @@ var checkInit = () => {
59977
60095
  return true;
59978
60096
  };
59979
60097
  var getActiveAccountFromMSAL = () => {
60098
+ var _URL, _config;
59980
60099
  var accountId = readFromStorage('authAccountId');
59981
- if (!accountId) {
59982
- return;
59983
- }
59984
- var allAccounts = msalApp.getAllAccounts();
59985
- if (!allAccounts.length === 0) {
59986
- console.warn('WARNING: no accounts found, please log in');
59987
- return;
59988
- }
59989
- var account = allAccounts.find(account => account.homeAccountId === accountId);
59990
- if (account === undefined) {
59991
- console.warn("WARNING: no account found with id \"".concat(accountId, "\", cannot retrieve account"));
60100
+ if (!accountId) return;
60101
+ var expectedAccountEnvironment = (_URL = new URL((_config = config) === null || _config === void 0 || (_config = _config.msalConfig) === null || _config === void 0 || (_config = _config.auth) === null || _config === void 0 ? void 0 : _config.authority)) === null || _URL === void 0 ? void 0 : _URL.hostname;
60102
+ var accountFilter = {
60103
+ homeAccountId: accountId,
60104
+ environment: expectedAccountEnvironment
60105
+ };
60106
+ var account = msalApp.getAccount(accountFilter);
60107
+ if (account == null) {
60108
+ console.warn("WARNING: no account found with the provided account filter");
59992
60109
  return;
59993
60110
  }
59994
60111
  return account;
59995
60112
  };
59996
60113
  var redirectOnAuthSuccess = () => {
59997
- var _config$msalConfig$au, _config;
59998
- window.location.href = (_config$msalConfig$au = (_config = config) === null || _config === void 0 || (_config = _config.msalConfig) === null || _config === void 0 || (_config = _config.auth) === null || _config === void 0 ? void 0 : _config.redirectUri) !== null && _config$msalConfig$au !== void 0 ? _config$msalConfig$au : '/';
60114
+ var _config$msalConfig$au, _config2;
60115
+ window.location.href = (_config$msalConfig$au = (_config2 = config) === null || _config2 === void 0 || (_config2 = _config2.msalConfig) === null || _config2 === void 0 || (_config2 = _config2.auth) === null || _config2 === void 0 ? void 0 : _config2.redirectUri) !== null && _config$msalConfig$au !== void 0 ? _config$msalConfig$au : '/';
59999
60116
  };
60000
60117
  var _acquireTokensByRequestAndAccount = /*#__PURE__*/function () {
60001
60118
  var _ref2 = _asyncToGenerator(function* (tokenReq, account) {
60119
+ var _tokenReq, _tokenReq$forceRefres;
60120
+ var forceRefresh = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false;
60002
60121
  if (!tokenReq) {
60003
60122
  console.warn('No token request provided');
60004
60123
  tokenReq = {};
60005
60124
  }
60006
60125
  tokenReq.account = account;
60126
+ (_tokenReq$forceRefres = (_tokenReq = tokenReq).forceRefresh) !== null && _tokenReq$forceRefres !== void 0 ? _tokenReq$forceRefres : _tokenReq.forceRefresh = forceRefresh;
60007
60127
  return yield msalApp.acquireTokenSilent(tokenReq).then(tokenRes => tokenRes).catch(silentTokenFetchError => {
60008
60128
  var _silentTokenFetchErro;
60009
60129
  if (silentTokenFetchError.errorCode === 'no_tokens_found') {
@@ -60039,8 +60159,8 @@ var acquireTokens = /*#__PURE__*/function () {
60039
60159
  };
60040
60160
  }
60041
60161
  var account = getActiveAccountFromMSAL();
60042
- if (account === undefined) return;
60043
- var tokens = yield _acquireTokensByRequestAndAccount(config.accessRequest, account);
60162
+ if (account == null) return;
60163
+ var tokens = yield _acquireTokensByRequestAndAccount(config.accessRequest, account, forceRefresh);
60044
60164
  _updateTokensInStorage(tokens);
60045
60165
  return tokens;
60046
60166
  });
@@ -60075,17 +60195,20 @@ var signIn = () => {
60075
60195
  }, 50);
60076
60196
  return msalApp.handleRedirectPromise().then(handleResponse);
60077
60197
  };
60078
- var signOut = () => {
60079
- var _authData$accountId;
60080
- if (!checkInit()) return;
60081
- var accountId = readFromStorage('authAccountId');
60082
- var idToken = readFromStorage('authIdToken');
60198
+ var clearStorageSessionData = () => {
60083
60199
  clearFromStorage('authIdTokenPopup');
60084
60200
  clearFromStorage('authIdToken');
60085
60201
  clearFromStorage('authAccessToken');
60086
60202
  clearFromStorage('authAccountId');
60087
60203
  clearFromStorage('authEmail');
60088
60204
  writeToStorage('authAuthenticated', 'false');
60205
+ };
60206
+ var signOut = () => {
60207
+ var _authData$accountId;
60208
+ if (!checkInit()) return;
60209
+ var accountId = readFromStorage('authAccountId');
60210
+ var idToken = readFromStorage('authIdToken');
60211
+ clearStorageSessionData();
60089
60212
  var logoutRequest = {
60090
60213
  account: msalApp.getAccountByHomeId((_authData$accountId = authData.accountId) !== null && _authData$accountId !== void 0 ? _authData$accountId : accountId),
60091
60214
  idTokenHint: idToken
@@ -60105,12 +60228,12 @@ var _updateTokensInStorage = tokens => {
60105
60228
  }
60106
60229
  };
60107
60230
  var _extractRolesFromAccessToken = accessToken => {
60108
- var _config2;
60231
+ var _config3;
60109
60232
  if (!accessToken) return [];
60110
60233
  var decodedToken = JSON.parse(atob(accessToken.split('.')[1]));
60111
60234
  // The exact key to use may depend from keycloak client & Cosmo Tech API configuration (c.f. the value of
60112
60235
  // csm.platform.authorization.roles-jwt-claim in your k8s tenant secrets)
60113
- var rolesTokenAttribute = (_config2 = config) === null || _config2 === void 0 ? void 0 : _config2.rolesJwtClaim;
60236
+ var rolesTokenAttribute = (_config3 = config) === null || _config3 === void 0 ? void 0 : _config3.rolesJwtClaim;
60114
60237
  if (rolesTokenAttribute) {
60115
60238
  if (decodedToken !== null && decodedToken !== void 0 && decodedToken[rolesTokenAttribute]) return decodedToken === null || decodedToken === void 0 ? void 0 : decodedToken[rolesTokenAttribute];
60116
60239
  console.warn("Authentication provider configuration defined rolesJwtClaim=\"".concat(rolesTokenAttribute, "\" ") + 'but this key was not found in the access token. Please check your webapp and API configuration.');
@@ -60127,12 +60250,16 @@ var _extractRolesFromAccessToken = accessToken => {
60127
60250
  var isUserSignedIn = /*#__PURE__*/function () {
60128
60251
  var _ref4 = _asyncToGenerator(function* () {
60129
60252
  if (readFromStorage('authAuthenticated') === 'true') {
60130
- // Restore roles from access token if necessary (roles in auhtData may be lost after login redirection)
60131
- if (authData.roles.length === 0) {
60132
- var accessToken = readFromStorage('authAccessToken');
60133
- if (accessToken) authData.roles = _extractRolesFromAccessToken(accessToken);
60253
+ if (getActiveAccountFromMSAL() != null) {
60254
+ // Restore roles from access token if necessary (roles in authData may be lost after login redirection)
60255
+ if (authData.roles.length === 0) {
60256
+ var accessToken = readFromStorage('authAccessToken');
60257
+ if (accessToken) authData.roles = _extractRolesFromAccessToken(accessToken);
60258
+ }
60259
+ return true;
60134
60260
  }
60135
- return true;
60261
+ // No valid session found despite authAuthenticated being true, clear local session data before resuming
60262
+ clearStorageSessionData();
60136
60263
  }
60137
60264
  try {
60138
60265
  // Resume interaction if one is already in progress
@@ -60140,12 +60267,12 @@ var isUserSignedIn = /*#__PURE__*/function () {
60140
60267
  clearFromStorage('authInteractionInProgress');
60141
60268
  var locationHashParameters = new URLSearchParams(window.location.hash.substring(1));
60142
60269
  if (locationHashParameters.has('state')) {
60143
- var _config3;
60144
- if (locationHashParameters.has('iss', (_config3 = config) === null || _config3 === void 0 || (_config3 = _config3.msalConfig) === null || _config3 === void 0 || (_config3 = _config3.auth) === null || _config3 === void 0 || (_config3 = _config3.authorityMetadata) === null || _config3 === void 0 ? void 0 : _config3.issuer)) {
60270
+ var _config4;
60271
+ if (locationHashParameters.has('iss', (_config4 = config) === null || _config4 === void 0 || (_config4 = _config4.msalConfig) === null || _config4 === void 0 || (_config4 = _config4.auth) === null || _config4 === void 0 || (_config4 = _config4.authorityMetadata) === null || _config4 === void 0 ? void 0 : _config4.issuer)) {
60145
60272
  msalApp.handleRedirectPromise().then(handleResponse); // Resume redirect workflow process
60146
60273
  } else if (locationHashParameters.has('iss')) {
60147
- var _config4;
60148
- var configIssuer = (_config4 = config) === null || _config4 === void 0 || (_config4 = _config4.msalConfig) === null || _config4 === void 0 || (_config4 = _config4.auth) === null || _config4 === void 0 || (_config4 = _config4.authorityMetadata) === null || _config4 === void 0 ? void 0 : _config4.issuer;
60274
+ var _config5;
60275
+ var configIssuer = (_config5 = config) === null || _config5 === void 0 || (_config5 = _config5.msalConfig) === null || _config5 === void 0 || (_config5 = _config5.auth) === null || _config5 === void 0 || (_config5 = _config5.authorityMetadata) === null || _config5 === void 0 ? void 0 : _config5.issuer;
60149
60276
  var urlIssuer = locationHashParameters.get('iss');
60150
60277
  console.warn("Issuer found in url \"".concat(urlIssuer, "\" does not match keycloak configuration: \"").concat(configIssuer, "\""));
60151
60278
  }