@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.esm.js CHANGED
@@ -236,6 +236,19 @@ function toDate$1(argument, context) {
236
236
  * @description
237
237
  * Add the specified number of days to the given date.
238
238
  *
239
+ * **You don't need date-fns\***:
240
+ *
241
+ * Temporal has a built-in `add` method on all its classes:
242
+ *
243
+ * - [`Temporal.Instant.prototype.add()`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Temporal/Instant/add)
244
+ * - [`Temporal.PlainDate.prototype.add()`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Temporal/PlainDate/add)
245
+ * - [`Temporal.PlainDateTime.prototype.add()`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Temporal/PlainDateTime/add)
246
+ * - [`Temporal.PlainTime.prototype.add()`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Temporal/PlainTime/add)
247
+ * - [`Temporal.PlainYearMonth.prototype.add()`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Temporal/PlainYearMonth/add)
248
+ * - [`Temporal.ZonedDateTime.prototype.add()`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Temporal/ZonedDateTime/add)
249
+ *
250
+ * \* **Not really**, see: https://date-fns.org/you-dont-need-date-fns
251
+ *
239
252
  * @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).
240
253
  * @typeParam ResultDate - The result `Date` type, it is the type returned from the context function if it is passed, or inferred from the arguments.
241
254
  *
@@ -249,6 +262,12 @@ function toDate$1(argument, context) {
249
262
  * // Add 10 days to 1 September 2014:
250
263
  * const result = addDays(new Date(2014, 8, 1), 10)
251
264
  * //=> Thu Sep 11 2014 00:00:00
265
+ *
266
+ * @example
267
+ * // Using Temporal:
268
+ * // Add 10 days to 1 September 2014:
269
+ * Temporal.PlainDate.from("2014-09-01").add({ days: 10 }).toString();
270
+ * //=> "2014-09-11"
252
271
  */
253
272
  function addDays(date, amount, options) {
254
273
  const _date = toDate$1(date, options?.in);
@@ -3022,7 +3041,6 @@ class Setter {
3022
3041
  class ValueSetter extends Setter {
3023
3042
  constructor(
3024
3043
  value,
3025
-
3026
3044
  validateValue,
3027
3045
 
3028
3046
  setValue,
@@ -6216,28 +6234,28 @@ var toDate = {exports: {}};
6216
6234
 
6217
6235
  var assertString = {exports: {}};
6218
6236
 
6219
- (function (module, exports$1) {
6237
+ (function (module, exports) {
6220
6238
 
6221
- Object.defineProperty(exports$1, "__esModule", {
6239
+ Object.defineProperty(exports, "__esModule", {
6222
6240
  value: true
6223
6241
  });
6224
- exports$1.default = assertString;
6242
+ exports.default = assertString;
6225
6243
  function assertString(input) {
6226
6244
  if (input === undefined || input === null) throw new TypeError("Expected a string but received a ".concat(input));
6227
6245
  if (input.constructor.name !== 'String') throw new TypeError("Expected a string but received a ".concat(input.constructor.name));
6228
6246
  }
6229
- module.exports = exports$1.default;
6230
- module.exports.default = exports$1.default;
6247
+ module.exports = exports.default;
6248
+ module.exports.default = exports.default;
6231
6249
  } (assertString, assertString.exports));
6232
6250
 
6233
6251
  var assertStringExports = assertString.exports;
6234
6252
 
6235
- (function (module, exports$1) {
6253
+ (function (module, exports) {
6236
6254
 
6237
- Object.defineProperty(exports$1, "__esModule", {
6255
+ Object.defineProperty(exports, "__esModule", {
6238
6256
  value: true
6239
6257
  });
6240
- exports$1.default = toDate;
6258
+ exports.default = toDate;
6241
6259
  var _assertString = _interopRequireDefault(assertStringExports);
6242
6260
  function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
6243
6261
  function toDate(date) {
@@ -6245,8 +6263,8 @@ var assertStringExports = assertString.exports;
6245
6263
  date = Date.parse(date);
6246
6264
  return !isNaN(date) ? new Date(date) : null;
6247
6265
  }
6248
- module.exports = exports$1.default;
6249
- module.exports.default = exports$1.default;
6266
+ module.exports = exports.default;
6267
+ module.exports.default = exports.default;
6250
6268
  } (toDate, toDate.exports));
6251
6269
 
6252
6270
  var toDateExports = toDate.exports;
@@ -6257,17 +6275,17 @@ var isFloat$1 = {};
6257
6275
 
6258
6276
  var nullUndefinedCheck = {exports: {}};
6259
6277
 
6260
- (function (module, exports$1) {
6278
+ (function (module, exports) {
6261
6279
 
6262
- Object.defineProperty(exports$1, "__esModule", {
6280
+ Object.defineProperty(exports, "__esModule", {
6263
6281
  value: true
6264
6282
  });
6265
- exports$1.default = isNullOrUndefined;
6283
+ exports.default = isNullOrUndefined;
6266
6284
  function isNullOrUndefined(value) {
6267
6285
  return value === null || value === undefined;
6268
6286
  }
6269
- module.exports = exports$1.default;
6270
- module.exports.default = exports$1.default;
6287
+ module.exports = exports.default;
6288
+ module.exports.default = exports.default;
6271
6289
  } (nullUndefinedCheck, nullUndefinedCheck.exports));
6272
6290
 
6273
6291
  var nullUndefinedCheckExports = nullUndefinedCheck.exports;
@@ -6451,52 +6469,52 @@ function isFloat(str, options) {
6451
6469
  }
6452
6470
  isFloat$1.locales = Object.keys(_alpha$2.decimal);
6453
6471
 
6454
- (function (module, exports$1) {
6472
+ (function (module, exports) {
6455
6473
 
6456
- Object.defineProperty(exports$1, "__esModule", {
6474
+ Object.defineProperty(exports, "__esModule", {
6457
6475
  value: true
6458
6476
  });
6459
- exports$1.default = toFloat;
6477
+ exports.default = toFloat;
6460
6478
  var _isFloat = _interopRequireDefault(isFloat$1);
6461
6479
  function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
6462
6480
  function toFloat(str) {
6463
6481
  if (!(0, _isFloat.default)(str)) return NaN;
6464
6482
  return parseFloat(str);
6465
6483
  }
6466
- module.exports = exports$1.default;
6467
- module.exports.default = exports$1.default;
6484
+ module.exports = exports.default;
6485
+ module.exports.default = exports.default;
6468
6486
  } (toFloat, toFloat.exports));
6469
6487
 
6470
6488
  var toFloatExports = toFloat.exports;
6471
6489
 
6472
6490
  var toInt = {exports: {}};
6473
6491
 
6474
- (function (module, exports$1) {
6492
+ (function (module, exports) {
6475
6493
 
6476
- Object.defineProperty(exports$1, "__esModule", {
6494
+ Object.defineProperty(exports, "__esModule", {
6477
6495
  value: true
6478
6496
  });
6479
- exports$1.default = toInt;
6497
+ exports.default = toInt;
6480
6498
  var _assertString = _interopRequireDefault(assertStringExports);
6481
6499
  function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
6482
6500
  function toInt(str, radix) {
6483
6501
  (0, _assertString.default)(str);
6484
6502
  return parseInt(str, radix || 10);
6485
6503
  }
6486
- module.exports = exports$1.default;
6487
- module.exports.default = exports$1.default;
6504
+ module.exports = exports.default;
6505
+ module.exports.default = exports.default;
6488
6506
  } (toInt, toInt.exports));
6489
6507
 
6490
6508
  var toIntExports = toInt.exports;
6491
6509
 
6492
6510
  var toBoolean = {exports: {}};
6493
6511
 
6494
- (function (module, exports$1) {
6512
+ (function (module, exports) {
6495
6513
 
6496
- Object.defineProperty(exports$1, "__esModule", {
6514
+ Object.defineProperty(exports, "__esModule", {
6497
6515
  value: true
6498
6516
  });
6499
- exports$1.default = toBoolean;
6517
+ exports.default = toBoolean;
6500
6518
  var _assertString = _interopRequireDefault(assertStringExports);
6501
6519
  function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
6502
6520
  function toBoolean(str, strict) {
@@ -6506,28 +6524,28 @@ var toBoolean = {exports: {}};
6506
6524
  }
6507
6525
  return str !== '0' && !/^false$/i.test(str) && str !== '';
6508
6526
  }
6509
- module.exports = exports$1.default;
6510
- module.exports.default = exports$1.default;
6527
+ module.exports = exports.default;
6528
+ module.exports.default = exports.default;
6511
6529
  } (toBoolean, toBoolean.exports));
6512
6530
 
6513
6531
  var toBooleanExports = toBoolean.exports;
6514
6532
 
6515
6533
  var equals = {exports: {}};
6516
6534
 
6517
- (function (module, exports$1) {
6535
+ (function (module, exports) {
6518
6536
 
6519
- Object.defineProperty(exports$1, "__esModule", {
6537
+ Object.defineProperty(exports, "__esModule", {
6520
6538
  value: true
6521
6539
  });
6522
- exports$1.default = equals;
6540
+ exports.default = equals;
6523
6541
  var _assertString = _interopRequireDefault(assertStringExports);
6524
6542
  function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
6525
6543
  function equals(str, comparison) {
6526
6544
  (0, _assertString.default)(str);
6527
6545
  return str === comparison;
6528
6546
  }
6529
- module.exports = exports$1.default;
6530
- module.exports.default = exports$1.default;
6547
+ module.exports = exports.default;
6548
+ module.exports.default = exports.default;
6531
6549
  } (equals, equals.exports));
6532
6550
 
6533
6551
  var equalsExports = equals.exports;
@@ -6536,12 +6554,12 @@ var contains = {exports: {}};
6536
6554
 
6537
6555
  var toString$1 = {exports: {}};
6538
6556
 
6539
- (function (module, exports$1) {
6557
+ (function (module, exports) {
6540
6558
 
6541
- Object.defineProperty(exports$1, "__esModule", {
6559
+ Object.defineProperty(exports, "__esModule", {
6542
6560
  value: true
6543
6561
  });
6544
- exports$1.default = toString;
6562
+ exports.default = toString;
6545
6563
  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); }
6546
6564
  function toString(input) {
6547
6565
  if (_typeof(input) === 'object' && input !== null) {
@@ -6555,23 +6573,27 @@ var toString$1 = {exports: {}};
6555
6573
  }
6556
6574
  return String(input);
6557
6575
  }
6558
- module.exports = exports$1.default;
6559
- module.exports.default = exports$1.default;
6576
+ module.exports = exports.default;
6577
+ module.exports.default = exports.default;
6560
6578
  } (toString$1, toString$1.exports));
6561
6579
 
6562
6580
  var toStringExports = toString$1.exports;
6563
6581
 
6564
6582
  var merge = {exports: {}};
6565
6583
 
6566
- (function (module, exports$1) {
6584
+ (function (module, exports) {
6567
6585
 
6568
- Object.defineProperty(exports$1, "__esModule", {
6586
+ Object.defineProperty(exports, "__esModule", {
6569
6587
  value: true
6570
6588
  });
6571
- exports$1.default = merge;
6589
+ exports.default = merge;
6590
+ 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); }
6572
6591
  function merge() {
6573
6592
  var obj = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
6574
6593
  var defaults = arguments.length > 1 ? arguments[1] : undefined;
6594
+ if (_typeof(obj) !== 'object' || obj === null) {
6595
+ obj = {};
6596
+ }
6575
6597
  for (var key in defaults) {
6576
6598
  if (typeof obj[key] === 'undefined') {
6577
6599
  obj[key] = defaults[key];
@@ -6579,18 +6601,18 @@ var merge = {exports: {}};
6579
6601
  }
6580
6602
  return obj;
6581
6603
  }
6582
- module.exports = exports$1.default;
6583
- module.exports.default = exports$1.default;
6604
+ module.exports = exports.default;
6605
+ module.exports.default = exports.default;
6584
6606
  } (merge, merge.exports));
6585
6607
 
6586
6608
  var mergeExports = merge.exports;
6587
6609
 
6588
- (function (module, exports$1) {
6610
+ (function (module, exports) {
6589
6611
 
6590
- Object.defineProperty(exports$1, "__esModule", {
6612
+ Object.defineProperty(exports, "__esModule", {
6591
6613
  value: true
6592
6614
  });
6593
- exports$1.default = contains;
6615
+ exports.default = contains;
6594
6616
  var _assertString = _interopRequireDefault(assertStringExports);
6595
6617
  var _toString = _interopRequireDefault(toStringExports);
6596
6618
  var _merge = _interopRequireDefault(mergeExports);
@@ -6607,20 +6629,20 @@ var mergeExports = merge.exports;
6607
6629
  }
6608
6630
  return str.split((0, _toString.default)(elem)).length > options.minOccurrences;
6609
6631
  }
6610
- module.exports = exports$1.default;
6611
- module.exports.default = exports$1.default;
6632
+ module.exports = exports.default;
6633
+ module.exports.default = exports.default;
6612
6634
  } (contains, contains.exports));
6613
6635
 
6614
6636
  var containsExports = contains.exports;
6615
6637
 
6616
6638
  var matches = {exports: {}};
6617
6639
 
6618
- (function (module, exports$1) {
6640
+ (function (module, exports) {
6619
6641
 
6620
- Object.defineProperty(exports$1, "__esModule", {
6642
+ Object.defineProperty(exports, "__esModule", {
6621
6643
  value: true
6622
6644
  });
6623
- exports$1.default = matches;
6645
+ exports.default = matches;
6624
6646
  var _assertString = _interopRequireDefault(assertStringExports);
6625
6647
  function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
6626
6648
  function matches(str, pattern, modifiers) {
@@ -6630,8 +6652,8 @@ var matches = {exports: {}};
6630
6652
  }
6631
6653
  return !!str.match(pattern);
6632
6654
  }
6633
- module.exports = exports$1.default;
6634
- module.exports.default = exports$1.default;
6655
+ module.exports = exports.default;
6656
+ module.exports.default = exports.default;
6635
6657
  } (matches, matches.exports));
6636
6658
 
6637
6659
  var matchesExports = matches.exports;
@@ -6640,12 +6662,12 @@ var isEmail = {exports: {}};
6640
6662
 
6641
6663
  var checkHost = {exports: {}};
6642
6664
 
6643
- (function (module, exports$1) {
6665
+ (function (module, exports) {
6644
6666
 
6645
- Object.defineProperty(exports$1, "__esModule", {
6667
+ Object.defineProperty(exports, "__esModule", {
6646
6668
  value: true
6647
6669
  });
6648
- exports$1.default = checkHost;
6670
+ exports.default = checkHost;
6649
6671
  function isRegExp(obj) {
6650
6672
  return Object.prototype.toString.call(obj) === '[object RegExp]';
6651
6673
  }
@@ -6658,20 +6680,20 @@ var checkHost = {exports: {}};
6658
6680
  }
6659
6681
  return false;
6660
6682
  }
6661
- module.exports = exports$1.default;
6662
- module.exports.default = exports$1.default;
6683
+ module.exports = exports.default;
6684
+ module.exports.default = exports.default;
6663
6685
  } (checkHost, checkHost.exports));
6664
6686
 
6665
6687
  var checkHostExports = checkHost.exports;
6666
6688
 
6667
6689
  var isByteLength = {exports: {}};
6668
6690
 
6669
- (function (module, exports$1) {
6691
+ (function (module, exports) {
6670
6692
 
6671
- Object.defineProperty(exports$1, "__esModule", {
6693
+ Object.defineProperty(exports, "__esModule", {
6672
6694
  value: true
6673
6695
  });
6674
- exports$1.default = isByteLength;
6696
+ exports.default = isByteLength;
6675
6697
  var _assertString = _interopRequireDefault(assertStringExports);
6676
6698
  function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
6677
6699
  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); }
@@ -6691,20 +6713,20 @@ var isByteLength = {exports: {}};
6691
6713
  var len = encodeURI(str).split(/%..|./).length - 1;
6692
6714
  return len >= min && (typeof max === 'undefined' || len <= max);
6693
6715
  }
6694
- module.exports = exports$1.default;
6695
- module.exports.default = exports$1.default;
6716
+ module.exports = exports.default;
6717
+ module.exports.default = exports.default;
6696
6718
  } (isByteLength, isByteLength.exports));
6697
6719
 
6698
6720
  var isByteLengthExports = isByteLength.exports;
6699
6721
 
6700
6722
  var isFQDN = {exports: {}};
6701
6723
 
6702
- (function (module, exports$1) {
6724
+ (function (module, exports) {
6703
6725
 
6704
- Object.defineProperty(exports$1, "__esModule", {
6726
+ Object.defineProperty(exports, "__esModule", {
6705
6727
  value: true
6706
6728
  });
6707
- exports$1.default = isFQDN;
6729
+ exports.default = isFQDN;
6708
6730
  var _assertString = _interopRequireDefault(assertStringExports);
6709
6731
  var _merge = _interopRequireDefault(mergeExports);
6710
6732
  function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
@@ -6773,20 +6795,20 @@ var isFQDN = {exports: {}};
6773
6795
  return true;
6774
6796
  });
6775
6797
  }
6776
- module.exports = exports$1.default;
6777
- module.exports.default = exports$1.default;
6798
+ module.exports = exports.default;
6799
+ module.exports.default = exports.default;
6778
6800
  } (isFQDN, isFQDN.exports));
6779
6801
 
6780
6802
  var isFQDNExports = isFQDN.exports;
6781
6803
 
6782
6804
  var isIP = {exports: {}};
6783
6805
 
6784
- (function (module, exports$1) {
6806
+ (function (module, exports) {
6785
6807
 
6786
- Object.defineProperty(exports$1, "__esModule", {
6808
+ Object.defineProperty(exports, "__esModule", {
6787
6809
  value: true
6788
6810
  });
6789
- exports$1.default = isIP;
6811
+ exports.default = isIP;
6790
6812
  var _assertString = _interopRequireDefault(assertStringExports);
6791
6813
  function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
6792
6814
  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); }
@@ -6846,18 +6868,18 @@ var isIP = {exports: {}};
6846
6868
  }
6847
6869
  return false;
6848
6870
  }
6849
- module.exports = exports$1.default;
6850
- module.exports.default = exports$1.default;
6871
+ module.exports = exports.default;
6872
+ module.exports.default = exports.default;
6851
6873
  } (isIP, isIP.exports));
6852
6874
 
6853
6875
  var isIPExports = isIP.exports;
6854
6876
 
6855
- (function (module, exports$1) {
6877
+ (function (module, exports) {
6856
6878
 
6857
- Object.defineProperty(exports$1, "__esModule", {
6879
+ Object.defineProperty(exports, "__esModule", {
6858
6880
  value: true
6859
6881
  });
6860
- exports$1.default = isEmail;
6882
+ exports.default = isEmail;
6861
6883
  var _assertString = _interopRequireDefault(assertStringExports);
6862
6884
  var _checkHost = _interopRequireDefault(checkHostExports);
6863
6885
  var _isByteLength = _interopRequireDefault(isByteLengthExports);
@@ -7024,8 +7046,8 @@ var isIPExports = isIP.exports;
7024
7046
  }
7025
7047
  return true;
7026
7048
  }
7027
- module.exports = exports$1.default;
7028
- module.exports.default = exports$1.default;
7049
+ module.exports = exports.default;
7050
+ module.exports.default = exports.default;
7029
7051
  } (isEmail, isEmail.exports));
7030
7052
 
7031
7053
  var isEmailExports = isEmail.exports;
@@ -7034,28 +7056,28 @@ var isURL = {exports: {}};
7034
7056
 
7035
7057
  var includesString = {exports: {}};
7036
7058
 
7037
- (function (module, exports$1) {
7059
+ (function (module, exports) {
7038
7060
 
7039
- Object.defineProperty(exports$1, "__esModule", {
7061
+ Object.defineProperty(exports, "__esModule", {
7040
7062
  value: true
7041
7063
  });
7042
- exports$1.default = void 0;
7064
+ exports.default = void 0;
7043
7065
  var includes = function includes(str, val) {
7044
7066
  return str.indexOf(val) !== -1;
7045
7067
  };
7046
- exports$1.default = includes;
7047
- module.exports = exports$1.default;
7048
- module.exports.default = exports$1.default;
7068
+ exports.default = includes;
7069
+ module.exports = exports.default;
7070
+ module.exports.default = exports.default;
7049
7071
  } (includesString, includesString.exports));
7050
7072
 
7051
7073
  var includesStringExports = includesString.exports;
7052
7074
 
7053
- (function (module, exports$1) {
7075
+ (function (module, exports) {
7054
7076
 
7055
- Object.defineProperty(exports$1, "__esModule", {
7077
+ Object.defineProperty(exports, "__esModule", {
7056
7078
  value: true
7057
7079
  });
7058
- exports$1.default = isURL;
7080
+ exports.default = isURL;
7059
7081
  var _assertString = _interopRequireDefault(assertStringExports);
7060
7082
  var _checkHost = _interopRequireDefault(checkHostExports);
7061
7083
  var _includesString = _interopRequireDefault(includesStringExports);
@@ -7297,20 +7319,20 @@ var includesStringExports = includesString.exports;
7297
7319
  }
7298
7320
  return true;
7299
7321
  }
7300
- module.exports = exports$1.default;
7301
- module.exports.default = exports$1.default;
7322
+ module.exports = exports.default;
7323
+ module.exports.default = exports.default;
7302
7324
  } (isURL, isURL.exports));
7303
7325
 
7304
7326
  var isURLExports = isURL.exports;
7305
7327
 
7306
7328
  var isMACAddress = {exports: {}};
7307
7329
 
7308
- (function (module, exports$1) {
7330
+ (function (module, exports) {
7309
7331
 
7310
- Object.defineProperty(exports$1, "__esModule", {
7332
+ Object.defineProperty(exports, "__esModule", {
7311
7333
  value: true
7312
7334
  });
7313
- exports$1.default = isMACAddress;
7335
+ exports.default = isMACAddress;
7314
7336
  var _assertString = _interopRequireDefault(assertStringExports);
7315
7337
  function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
7316
7338
  var macAddress48 = /^(?:[0-9a-fA-F]{2}([-:\s]))([0-9a-fA-F]{2}\1){4}([0-9a-fA-F]{2})$/;
@@ -7348,20 +7370,20 @@ var isMACAddress = {exports: {}};
7348
7370
  eui: '64'
7349
7371
  });
7350
7372
  }
7351
- module.exports = exports$1.default;
7352
- module.exports.default = exports$1.default;
7373
+ module.exports = exports.default;
7374
+ module.exports.default = exports.default;
7353
7375
  } (isMACAddress, isMACAddress.exports));
7354
7376
 
7355
7377
  var isMACAddressExports = isMACAddress.exports;
7356
7378
 
7357
7379
  var isIPRange = {exports: {}};
7358
7380
 
7359
- (function (module, exports$1) {
7381
+ (function (module, exports) {
7360
7382
 
7361
- Object.defineProperty(exports$1, "__esModule", {
7383
+ Object.defineProperty(exports, "__esModule", {
7362
7384
  value: true
7363
7385
  });
7364
- exports$1.default = isIPRange;
7386
+ exports.default = isIPRange;
7365
7387
  var _assertString = _interopRequireDefault(assertStringExports);
7366
7388
  var _isIP = _interopRequireDefault(isIPExports);
7367
7389
  function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
@@ -7404,20 +7426,20 @@ var isIPRange = {exports: {}};
7404
7426
  }
7405
7427
  return parts[1] <= expectedSubnet && parts[1] >= 0;
7406
7428
  }
7407
- module.exports = exports$1.default;
7408
- module.exports.default = exports$1.default;
7429
+ module.exports = exports.default;
7430
+ module.exports.default = exports.default;
7409
7431
  } (isIPRange, isIPRange.exports));
7410
7432
 
7411
7433
  var isIPRangeExports = isIPRange.exports;
7412
7434
 
7413
7435
  var isDate$1 = {exports: {}};
7414
7436
 
7415
- (function (module, exports$1) {
7437
+ (function (module, exports) {
7416
7438
 
7417
- Object.defineProperty(exports$1, "__esModule", {
7439
+ Object.defineProperty(exports, "__esModule", {
7418
7440
  value: true
7419
7441
  });
7420
- exports$1.default = isDate;
7442
+ exports.default = isDate;
7421
7443
  var _merge = _interopRequireDefault(mergeExports);
7422
7444
  function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
7423
7445
  function _slicedToArray(r, e) { return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest(); }
@@ -7512,20 +7534,20 @@ var isDate$1 = {exports: {}};
7512
7534
  }
7513
7535
  return false;
7514
7536
  }
7515
- module.exports = exports$1.default;
7516
- module.exports.default = exports$1.default;
7537
+ module.exports = exports.default;
7538
+ module.exports.default = exports.default;
7517
7539
  } (isDate$1, isDate$1.exports));
7518
7540
 
7519
7541
  var isDateExports = isDate$1.exports;
7520
7542
 
7521
7543
  var isTime = {exports: {}};
7522
7544
 
7523
- (function (module, exports$1) {
7545
+ (function (module, exports) {
7524
7546
 
7525
- Object.defineProperty(exports$1, "__esModule", {
7547
+ Object.defineProperty(exports, "__esModule", {
7526
7548
  value: true
7527
7549
  });
7528
- exports$1.default = isTime;
7550
+ exports.default = isTime;
7529
7551
  var _merge = _interopRequireDefault(mergeExports);
7530
7552
  function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
7531
7553
  var default_time_options = {
@@ -7549,8 +7571,8 @@ var isTime = {exports: {}};
7549
7571
  if (typeof input !== 'string') return false;
7550
7572
  return formats[options.hourFormat][options.mode].test(input);
7551
7573
  }
7552
- module.exports = exports$1.default;
7553
- module.exports.default = exports$1.default;
7574
+ module.exports = exports.default;
7575
+ module.exports.default = exports.default;
7554
7576
  } (isTime, isTime.exports));
7555
7577
 
7556
7578
  var isTimeExports = isTime.exports;
@@ -7559,30 +7581,30 @@ var isBoolean = {exports: {}};
7559
7581
 
7560
7582
  var includesArray = {exports: {}};
7561
7583
 
7562
- (function (module, exports$1) {
7584
+ (function (module, exports) {
7563
7585
 
7564
- Object.defineProperty(exports$1, "__esModule", {
7586
+ Object.defineProperty(exports, "__esModule", {
7565
7587
  value: true
7566
7588
  });
7567
- exports$1.default = void 0;
7589
+ exports.default = void 0;
7568
7590
  var includes = function includes(arr, val) {
7569
7591
  return arr.some(function (arrVal) {
7570
7592
  return val === arrVal;
7571
7593
  });
7572
7594
  };
7573
- exports$1.default = includes;
7574
- module.exports = exports$1.default;
7575
- module.exports.default = exports$1.default;
7595
+ exports.default = includes;
7596
+ module.exports = exports.default;
7597
+ module.exports.default = exports.default;
7576
7598
  } (includesArray, includesArray.exports));
7577
7599
 
7578
7600
  var includesArrayExports = includesArray.exports;
7579
7601
 
7580
- (function (module, exports$1) {
7602
+ (function (module, exports) {
7581
7603
 
7582
- Object.defineProperty(exports$1, "__esModule", {
7604
+ Object.defineProperty(exports, "__esModule", {
7583
7605
  value: true
7584
7606
  });
7585
- exports$1.default = isBoolean;
7607
+ exports.default = isBoolean;
7586
7608
  var _assertString = _interopRequireDefault(assertStringExports);
7587
7609
  var _includesArray = _interopRequireDefault(includesArrayExports);
7588
7610
  function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
@@ -7599,20 +7621,20 @@ var includesArrayExports = includesArray.exports;
7599
7621
  }
7600
7622
  return (0, _includesArray.default)(strictBooleans, str);
7601
7623
  }
7602
- module.exports = exports$1.default;
7603
- module.exports.default = exports$1.default;
7624
+ module.exports = exports.default;
7625
+ module.exports.default = exports.default;
7604
7626
  } (isBoolean, isBoolean.exports));
7605
7627
 
7606
7628
  var isBooleanExports = isBoolean.exports;
7607
7629
 
7608
7630
  var isLocale = {exports: {}};
7609
7631
 
7610
- (function (module, exports$1) {
7632
+ (function (module, exports) {
7611
7633
 
7612
- Object.defineProperty(exports$1, "__esModule", {
7634
+ Object.defineProperty(exports, "__esModule", {
7613
7635
  value: true
7614
7636
  });
7615
- exports$1.default = isLocale;
7637
+ exports.default = isLocale;
7616
7638
  var _assertString = _interopRequireDefault(assertStringExports);
7617
7639
  function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
7618
7640
  /*
@@ -7720,20 +7742,20 @@ var isLocale = {exports: {}};
7720
7742
  (0, _assertString.default)(str);
7721
7743
  return languageTagRegex.test(str);
7722
7744
  }
7723
- module.exports = exports$1.default;
7724
- module.exports.default = exports$1.default;
7745
+ module.exports = exports.default;
7746
+ module.exports.default = exports.default;
7725
7747
  } (isLocale, isLocale.exports));
7726
7748
 
7727
7749
  var isLocaleExports = isLocale.exports;
7728
7750
 
7729
7751
  var isAbaRouting = {exports: {}};
7730
7752
 
7731
- (function (module, exports$1) {
7753
+ (function (module, exports) {
7732
7754
 
7733
- Object.defineProperty(exports$1, "__esModule", {
7755
+ Object.defineProperty(exports, "__esModule", {
7734
7756
  value: true
7735
7757
  });
7736
- exports$1.default = isAbaRouting;
7758
+ exports.default = isAbaRouting;
7737
7759
  var _assertString = _interopRequireDefault(assertStringExports);
7738
7760
  function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
7739
7761
  // http://www.brainjar.com/js/validation/
@@ -7749,8 +7771,8 @@ var isAbaRouting = {exports: {}};
7749
7771
  }
7750
7772
  return checkSumVal % 10 === 0;
7751
7773
  }
7752
- module.exports = exports$1.default;
7753
- module.exports.default = exports$1.default;
7774
+ module.exports = exports.default;
7775
+ module.exports.default = exports.default;
7754
7776
  } (isAbaRouting, isAbaRouting.exports));
7755
7777
 
7756
7778
  var isAbaRoutingExports = isAbaRouting.exports;
@@ -7821,12 +7843,12 @@ isAlphanumeric$1.locales = Object.keys(_alpha.alphanumeric);
7821
7843
 
7822
7844
  var isNumeric = {exports: {}};
7823
7845
 
7824
- (function (module, exports$1) {
7846
+ (function (module, exports) {
7825
7847
 
7826
- Object.defineProperty(exports$1, "__esModule", {
7848
+ Object.defineProperty(exports, "__esModule", {
7827
7849
  value: true
7828
7850
  });
7829
- exports$1.default = isNumeric;
7851
+ exports.default = isNumeric;
7830
7852
  var _assertString = _interopRequireDefault(assertStringExports);
7831
7853
  var _alpha = alpha$1;
7832
7854
  function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
@@ -7838,8 +7860,8 @@ var isNumeric = {exports: {}};
7838
7860
  }
7839
7861
  return new RegExp("^[+-]?([0-9]*[".concat((options || {}).locale ? _alpha.decimal[options.locale] : '.', "])?[0-9]+$")).test(str);
7840
7862
  }
7841
- module.exports = exports$1.default;
7842
- module.exports.default = exports$1.default;
7863
+ module.exports = exports.default;
7864
+ module.exports.default = exports.default;
7843
7865
  } (isNumeric, isNumeric.exports));
7844
7866
 
7845
7867
  var isNumericExports = isNumeric.exports;
@@ -7946,7 +7968,7 @@ var passportRegexByCountryCode = {
7946
7968
  // MOZAMBIQUE
7947
7969
  MY: /^[AHK]\d{8}$/,
7948
7970
  // MALAYSIA
7949
- MX: /^\d{10,11}$/,
7971
+ MX: /^[A-Z]\d{8}$/,
7950
7972
  // MEXICO
7951
7973
  NL: /^[A-Z]{2}[A-Z0-9]{6}\d$/,
7952
7974
  // NETHERLANDS
@@ -8001,12 +8023,12 @@ var isPort = {exports: {}};
8001
8023
 
8002
8024
  var isInt$1 = {exports: {}};
8003
8025
 
8004
- (function (module, exports$1) {
8026
+ (function (module, exports) {
8005
8027
 
8006
- Object.defineProperty(exports$1, "__esModule", {
8028
+ Object.defineProperty(exports, "__esModule", {
8007
8029
  value: true
8008
8030
  });
8009
- exports$1.default = isInt;
8031
+ exports.default = isInt;
8010
8032
  var _assertString = _interopRequireDefault(assertStringExports);
8011
8033
  var _nullUndefinedCheck = _interopRequireDefault(nullUndefinedCheckExports);
8012
8034
  function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
@@ -8027,18 +8049,18 @@ var isInt$1 = {exports: {}};
8027
8049
  var gtCheckPassed = !options.hasOwnProperty('gt') || (0, _nullUndefinedCheck.default)(options.gt) || str > options.gt;
8028
8050
  return regex.test(str) && minCheckPassed && maxCheckPassed && ltCheckPassed && gtCheckPassed;
8029
8051
  }
8030
- module.exports = exports$1.default;
8031
- module.exports.default = exports$1.default;
8052
+ module.exports = exports.default;
8053
+ module.exports.default = exports.default;
8032
8054
  } (isInt$1, isInt$1.exports));
8033
8055
 
8034
8056
  var isIntExports = isInt$1.exports;
8035
8057
 
8036
- (function (module, exports$1) {
8058
+ (function (module, exports) {
8037
8059
 
8038
- Object.defineProperty(exports$1, "__esModule", {
8060
+ Object.defineProperty(exports, "__esModule", {
8039
8061
  value: true
8040
8062
  });
8041
- exports$1.default = isPort;
8063
+ exports.default = isPort;
8042
8064
  var _isInt = _interopRequireDefault(isIntExports);
8043
8065
  function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
8044
8066
  function isPort(str) {
@@ -8048,60 +8070,60 @@ var isIntExports = isInt$1.exports;
8048
8070
  max: 65535
8049
8071
  });
8050
8072
  }
8051
- module.exports = exports$1.default;
8052
- module.exports.default = exports$1.default;
8073
+ module.exports = exports.default;
8074
+ module.exports.default = exports.default;
8053
8075
  } (isPort, isPort.exports));
8054
8076
 
8055
8077
  var isPortExports = isPort.exports;
8056
8078
 
8057
8079
  var isLowercase = {exports: {}};
8058
8080
 
8059
- (function (module, exports$1) {
8081
+ (function (module, exports) {
8060
8082
 
8061
- Object.defineProperty(exports$1, "__esModule", {
8083
+ Object.defineProperty(exports, "__esModule", {
8062
8084
  value: true
8063
8085
  });
8064
- exports$1.default = isLowercase;
8086
+ exports.default = isLowercase;
8065
8087
  var _assertString = _interopRequireDefault(assertStringExports);
8066
8088
  function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
8067
8089
  function isLowercase(str) {
8068
8090
  (0, _assertString.default)(str);
8069
8091
  return str === str.toLowerCase();
8070
8092
  }
8071
- module.exports = exports$1.default;
8072
- module.exports.default = exports$1.default;
8093
+ module.exports = exports.default;
8094
+ module.exports.default = exports.default;
8073
8095
  } (isLowercase, isLowercase.exports));
8074
8096
 
8075
8097
  var isLowercaseExports = isLowercase.exports;
8076
8098
 
8077
8099
  var isUppercase = {exports: {}};
8078
8100
 
8079
- (function (module, exports$1) {
8101
+ (function (module, exports) {
8080
8102
 
8081
- Object.defineProperty(exports$1, "__esModule", {
8103
+ Object.defineProperty(exports, "__esModule", {
8082
8104
  value: true
8083
8105
  });
8084
- exports$1.default = isUppercase;
8106
+ exports.default = isUppercase;
8085
8107
  var _assertString = _interopRequireDefault(assertStringExports);
8086
8108
  function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
8087
8109
  function isUppercase(str) {
8088
8110
  (0, _assertString.default)(str);
8089
8111
  return str === str.toUpperCase();
8090
8112
  }
8091
- module.exports = exports$1.default;
8092
- module.exports.default = exports$1.default;
8113
+ module.exports = exports.default;
8114
+ module.exports.default = exports.default;
8093
8115
  } (isUppercase, isUppercase.exports));
8094
8116
 
8095
8117
  var isUppercaseExports = isUppercase.exports;
8096
8118
 
8097
8119
  var isIMEI = {exports: {}};
8098
8120
 
8099
- (function (module, exports$1) {
8121
+ (function (module, exports) {
8100
8122
 
8101
- Object.defineProperty(exports$1, "__esModule", {
8123
+ Object.defineProperty(exports, "__esModule", {
8102
8124
  value: true
8103
8125
  });
8104
- exports$1.default = isIMEI;
8126
+ exports.default = isIMEI;
8105
8127
  var _assertString = _interopRequireDefault(assertStringExports);
8106
8128
  function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
8107
8129
  var imeiRegexWithoutHyphens = /^[0-9]{15}$/;
@@ -8143,20 +8165,20 @@ var isIMEI = {exports: {}};
8143
8165
  }
8144
8166
  return true;
8145
8167
  }
8146
- module.exports = exports$1.default;
8147
- module.exports.default = exports$1.default;
8168
+ module.exports = exports.default;
8169
+ module.exports.default = exports.default;
8148
8170
  } (isIMEI, isIMEI.exports));
8149
8171
 
8150
8172
  var isIMEIExports = isIMEI.exports;
8151
8173
 
8152
8174
  var isAscii = {exports: {}};
8153
8175
 
8154
- (function (module, exports$1) {
8176
+ (function (module, exports) {
8155
8177
 
8156
- Object.defineProperty(exports$1, "__esModule", {
8178
+ Object.defineProperty(exports, "__esModule", {
8157
8179
  value: true
8158
8180
  });
8159
- exports$1.default = isAscii;
8181
+ exports.default = isAscii;
8160
8182
  var _assertString = _interopRequireDefault(assertStringExports);
8161
8183
  function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
8162
8184
  /* eslint-disable no-control-regex */
@@ -8167,8 +8189,8 @@ var isAscii = {exports: {}};
8167
8189
  (0, _assertString.default)(str);
8168
8190
  return ascii.test(str);
8169
8191
  }
8170
- module.exports = exports$1.default;
8171
- module.exports.default = exports$1.default;
8192
+ module.exports = exports.default;
8193
+ module.exports.default = exports.default;
8172
8194
  } (isAscii, isAscii.exports));
8173
8195
 
8174
8196
  var isAsciiExports = isAscii.exports;
@@ -8205,12 +8227,12 @@ function isHalfWidth(str) {
8205
8227
 
8206
8228
  var isVariableWidth = {exports: {}};
8207
8229
 
8208
- (function (module, exports$1) {
8230
+ (function (module, exports) {
8209
8231
 
8210
- Object.defineProperty(exports$1, "__esModule", {
8232
+ Object.defineProperty(exports, "__esModule", {
8211
8233
  value: true
8212
8234
  });
8213
- exports$1.default = isVariableWidth;
8235
+ exports.default = isVariableWidth;
8214
8236
  var _assertString = _interopRequireDefault(assertStringExports);
8215
8237
  var _isFullWidth = isFullWidth$1;
8216
8238
  var _isHalfWidth = isHalfWidth$1;
@@ -8219,20 +8241,20 @@ var isVariableWidth = {exports: {}};
8219
8241
  (0, _assertString.default)(str);
8220
8242
  return _isFullWidth.fullWidth.test(str) && _isHalfWidth.halfWidth.test(str);
8221
8243
  }
8222
- module.exports = exports$1.default;
8223
- module.exports.default = exports$1.default;
8244
+ module.exports = exports.default;
8245
+ module.exports.default = exports.default;
8224
8246
  } (isVariableWidth, isVariableWidth.exports));
8225
8247
 
8226
8248
  var isVariableWidthExports = isVariableWidth.exports;
8227
8249
 
8228
8250
  var isMultibyte = {exports: {}};
8229
8251
 
8230
- (function (module, exports$1) {
8252
+ (function (module, exports) {
8231
8253
 
8232
- Object.defineProperty(exports$1, "__esModule", {
8254
+ Object.defineProperty(exports, "__esModule", {
8233
8255
  value: true
8234
8256
  });
8235
- exports$1.default = isMultibyte;
8257
+ exports.default = isMultibyte;
8236
8258
  var _assertString = _interopRequireDefault(assertStringExports);
8237
8259
  function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
8238
8260
  /* eslint-disable no-control-regex */
@@ -8243,8 +8265,8 @@ var isMultibyte = {exports: {}};
8243
8265
  (0, _assertString.default)(str);
8244
8266
  return multibyte.test(str);
8245
8267
  }
8246
- module.exports = exports$1.default;
8247
- module.exports.default = exports$1.default;
8268
+ module.exports = exports.default;
8269
+ module.exports.default = exports.default;
8248
8270
  } (isMultibyte, isMultibyte.exports));
8249
8271
 
8250
8272
  var isMultibyteExports = isMultibyte.exports;
@@ -8253,12 +8275,12 @@ var isSemVer = {exports: {}};
8253
8275
 
8254
8276
  var multilineRegex = {exports: {}};
8255
8277
 
8256
- (function (module, exports$1) {
8278
+ (function (module, exports) {
8257
8279
 
8258
- Object.defineProperty(exports$1, "__esModule", {
8280
+ Object.defineProperty(exports, "__esModule", {
8259
8281
  value: true
8260
8282
  });
8261
- exports$1.default = multilineRegexp;
8283
+ exports.default = multilineRegexp;
8262
8284
  /**
8263
8285
  * Build RegExp object from an array
8264
8286
  * of multiple/multi-line regexp parts
@@ -8271,18 +8293,18 @@ var multilineRegex = {exports: {}};
8271
8293
  var regexpAsStringLiteral = parts.join('');
8272
8294
  return new RegExp(regexpAsStringLiteral, flags);
8273
8295
  }
8274
- module.exports = exports$1.default;
8275
- module.exports.default = exports$1.default;
8296
+ module.exports = exports.default;
8297
+ module.exports.default = exports.default;
8276
8298
  } (multilineRegex, multilineRegex.exports));
8277
8299
 
8278
8300
  var multilineRegexExports = multilineRegex.exports;
8279
8301
 
8280
- (function (module, exports$1) {
8302
+ (function (module, exports) {
8281
8303
 
8282
- Object.defineProperty(exports$1, "__esModule", {
8304
+ Object.defineProperty(exports, "__esModule", {
8283
8305
  value: true
8284
8306
  });
8285
- exports$1.default = isSemVer;
8307
+ exports.default = isSemVer;
8286
8308
  var _assertString = _interopRequireDefault(assertStringExports);
8287
8309
  var _multilineRegex = _interopRequireDefault(multilineRegexExports);
8288
8310
  function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
@@ -8297,20 +8319,20 @@ var multilineRegexExports = multilineRegex.exports;
8297
8319
  (0, _assertString.default)(str);
8298
8320
  return semanticVersioningRegex.test(str);
8299
8321
  }
8300
- module.exports = exports$1.default;
8301
- module.exports.default = exports$1.default;
8322
+ module.exports = exports.default;
8323
+ module.exports.default = exports.default;
8302
8324
  } (isSemVer, isSemVer.exports));
8303
8325
 
8304
8326
  var isSemVerExports = isSemVer.exports;
8305
8327
 
8306
8328
  var isSurrogatePair = {exports: {}};
8307
8329
 
8308
- (function (module, exports$1) {
8330
+ (function (module, exports) {
8309
8331
 
8310
- Object.defineProperty(exports$1, "__esModule", {
8332
+ Object.defineProperty(exports, "__esModule", {
8311
8333
  value: true
8312
8334
  });
8313
- exports$1.default = isSurrogatePair;
8335
+ exports.default = isSurrogatePair;
8314
8336
  var _assertString = _interopRequireDefault(assertStringExports);
8315
8337
  function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
8316
8338
  var surrogatePair = /[\uD800-\uDBFF][\uDC00-\uDFFF]/;
@@ -8318,20 +8340,20 @@ var isSurrogatePair = {exports: {}};
8318
8340
  (0, _assertString.default)(str);
8319
8341
  return surrogatePair.test(str);
8320
8342
  }
8321
- module.exports = exports$1.default;
8322
- module.exports.default = exports$1.default;
8343
+ module.exports = exports.default;
8344
+ module.exports.default = exports.default;
8323
8345
  } (isSurrogatePair, isSurrogatePair.exports));
8324
8346
 
8325
8347
  var isSurrogatePairExports = isSurrogatePair.exports;
8326
8348
 
8327
8349
  var isDecimal = {exports: {}};
8328
8350
 
8329
- (function (module, exports$1) {
8351
+ (function (module, exports) {
8330
8352
 
8331
- Object.defineProperty(exports$1, "__esModule", {
8353
+ Object.defineProperty(exports, "__esModule", {
8332
8354
  value: true
8333
8355
  });
8334
- exports$1.default = isDecimal;
8356
+ exports.default = isDecimal;
8335
8357
  var _merge = _interopRequireDefault(mergeExports);
8336
8358
  var _assertString = _interopRequireDefault(assertStringExports);
8337
8359
  var _includesArray = _interopRequireDefault(includesArrayExports);
@@ -8355,20 +8377,20 @@ var isDecimal = {exports: {}};
8355
8377
  }
8356
8378
  throw new Error("Invalid locale '".concat(options.locale, "'"));
8357
8379
  }
8358
- module.exports = exports$1.default;
8359
- module.exports.default = exports$1.default;
8380
+ module.exports = exports.default;
8381
+ module.exports.default = exports.default;
8360
8382
  } (isDecimal, isDecimal.exports));
8361
8383
 
8362
8384
  var isDecimalExports = isDecimal.exports;
8363
8385
 
8364
8386
  var isHexadecimal = {exports: {}};
8365
8387
 
8366
- (function (module, exports$1) {
8388
+ (function (module, exports) {
8367
8389
 
8368
- Object.defineProperty(exports$1, "__esModule", {
8390
+ Object.defineProperty(exports, "__esModule", {
8369
8391
  value: true
8370
8392
  });
8371
- exports$1.default = isHexadecimal;
8393
+ exports.default = isHexadecimal;
8372
8394
  var _assertString = _interopRequireDefault(assertStringExports);
8373
8395
  function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
8374
8396
  var hexadecimal = /^(0x|0h)?[0-9A-F]+$/i;
@@ -8376,20 +8398,20 @@ var isHexadecimal = {exports: {}};
8376
8398
  (0, _assertString.default)(str);
8377
8399
  return hexadecimal.test(str);
8378
8400
  }
8379
- module.exports = exports$1.default;
8380
- module.exports.default = exports$1.default;
8401
+ module.exports = exports.default;
8402
+ module.exports.default = exports.default;
8381
8403
  } (isHexadecimal, isHexadecimal.exports));
8382
8404
 
8383
8405
  var isHexadecimalExports = isHexadecimal.exports;
8384
8406
 
8385
8407
  var isOctal = {exports: {}};
8386
8408
 
8387
- (function (module, exports$1) {
8409
+ (function (module, exports) {
8388
8410
 
8389
- Object.defineProperty(exports$1, "__esModule", {
8411
+ Object.defineProperty(exports, "__esModule", {
8390
8412
  value: true
8391
8413
  });
8392
- exports$1.default = isOctal;
8414
+ exports.default = isOctal;
8393
8415
  var _assertString = _interopRequireDefault(assertStringExports);
8394
8416
  function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
8395
8417
  var octal = /^(0o)?[0-7]+$/i;
@@ -8397,20 +8419,20 @@ var isOctal = {exports: {}};
8397
8419
  (0, _assertString.default)(str);
8398
8420
  return octal.test(str);
8399
8421
  }
8400
- module.exports = exports$1.default;
8401
- module.exports.default = exports$1.default;
8422
+ module.exports = exports.default;
8423
+ module.exports.default = exports.default;
8402
8424
  } (isOctal, isOctal.exports));
8403
8425
 
8404
8426
  var isOctalExports = isOctal.exports;
8405
8427
 
8406
8428
  var isDivisibleBy = {exports: {}};
8407
8429
 
8408
- (function (module, exports$1) {
8430
+ (function (module, exports) {
8409
8431
 
8410
- Object.defineProperty(exports$1, "__esModule", {
8432
+ Object.defineProperty(exports, "__esModule", {
8411
8433
  value: true
8412
8434
  });
8413
- exports$1.default = isDivisibleBy;
8435
+ exports.default = isDivisibleBy;
8414
8436
  var _assertString = _interopRequireDefault(assertStringExports);
8415
8437
  var _toFloat = _interopRequireDefault(toFloatExports);
8416
8438
  function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
@@ -8418,20 +8440,20 @@ var isDivisibleBy = {exports: {}};
8418
8440
  (0, _assertString.default)(str);
8419
8441
  return (0, _toFloat.default)(str) % parseInt(num, 10) === 0;
8420
8442
  }
8421
- module.exports = exports$1.default;
8422
- module.exports.default = exports$1.default;
8443
+ module.exports = exports.default;
8444
+ module.exports.default = exports.default;
8423
8445
  } (isDivisibleBy, isDivisibleBy.exports));
8424
8446
 
8425
8447
  var isDivisibleByExports = isDivisibleBy.exports;
8426
8448
 
8427
8449
  var isHexColor = {exports: {}};
8428
8450
 
8429
- (function (module, exports$1) {
8451
+ (function (module, exports) {
8430
8452
 
8431
- Object.defineProperty(exports$1, "__esModule", {
8453
+ Object.defineProperty(exports, "__esModule", {
8432
8454
  value: true
8433
8455
  });
8434
- exports$1.default = isHexColor;
8456
+ exports.default = isHexColor;
8435
8457
  var _assertString = _interopRequireDefault(assertStringExports);
8436
8458
  var _merge = _interopRequireDefault(mergeExports);
8437
8459
  function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
@@ -8446,20 +8468,20 @@ var isHexColor = {exports: {}};
8446
8468
  var hexcolor_regex = options.require_hashtag ? hexcolor_with_prefix : hexcolor;
8447
8469
  return hexcolor_regex.test(str);
8448
8470
  }
8449
- module.exports = exports$1.default;
8450
- module.exports.default = exports$1.default;
8471
+ module.exports = exports.default;
8472
+ module.exports.default = exports.default;
8451
8473
  } (isHexColor, isHexColor.exports));
8452
8474
 
8453
8475
  var isHexColorExports = isHexColor.exports;
8454
8476
 
8455
8477
  var isRgbColor = {exports: {}};
8456
8478
 
8457
- (function (module, exports$1) {
8479
+ (function (module, exports) {
8458
8480
 
8459
- Object.defineProperty(exports$1, "__esModule", {
8481
+ Object.defineProperty(exports, "__esModule", {
8460
8482
  value: true
8461
8483
  });
8462
- exports$1.default = isRgbColor;
8484
+ exports.default = isRgbColor;
8463
8485
  var _assertString = _interopRequireDefault(assertStringExports);
8464
8486
  function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
8465
8487
  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 */
@@ -8482,7 +8504,7 @@ var isRgbColor = {exports: {}};
8482
8504
  includePercentValues = options.includePercentValues !== undefined ? options.includePercentValues : includePercentValues;
8483
8505
  }
8484
8506
  if (allowSpaces) {
8485
- // make sure it starts with continous rgba? without spaces before stripping
8507
+ // make sure it starts with continuous rgba? without spaces before stripping
8486
8508
  if (!startsWithRgb.test(str)) {
8487
8509
  return false;
8488
8510
  }
@@ -8494,20 +8516,20 @@ var isRgbColor = {exports: {}};
8494
8516
  }
8495
8517
  return rgbColor.test(str) || rgbaColor.test(str) || rgbColorPercent.test(str) || rgbaColorPercent.test(str);
8496
8518
  }
8497
- module.exports = exports$1.default;
8498
- module.exports.default = exports$1.default;
8519
+ module.exports = exports.default;
8520
+ module.exports.default = exports.default;
8499
8521
  } (isRgbColor, isRgbColor.exports));
8500
8522
 
8501
8523
  var isRgbColorExports = isRgbColor.exports;
8502
8524
 
8503
8525
  var isHSL = {exports: {}};
8504
8526
 
8505
- (function (module, exports$1) {
8527
+ (function (module, exports) {
8506
8528
 
8507
- Object.defineProperty(exports$1, "__esModule", {
8529
+ Object.defineProperty(exports, "__esModule", {
8508
8530
  value: true
8509
8531
  });
8510
- exports$1.default = isHSL;
8532
+ exports.default = isHSL;
8511
8533
  var _assertString = _interopRequireDefault(assertStringExports);
8512
8534
  function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
8513
8535
  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;
@@ -8522,20 +8544,20 @@ var isHSL = {exports: {}};
8522
8544
  }
8523
8545
  return hslSpace.test(strippedStr);
8524
8546
  }
8525
- module.exports = exports$1.default;
8526
- module.exports.default = exports$1.default;
8547
+ module.exports = exports.default;
8548
+ module.exports.default = exports.default;
8527
8549
  } (isHSL, isHSL.exports));
8528
8550
 
8529
8551
  var isHSLExports = isHSL.exports;
8530
8552
 
8531
8553
  var isISRC = {exports: {}};
8532
8554
 
8533
- (function (module, exports$1) {
8555
+ (function (module, exports) {
8534
8556
 
8535
- Object.defineProperty(exports$1, "__esModule", {
8557
+ Object.defineProperty(exports, "__esModule", {
8536
8558
  value: true
8537
8559
  });
8538
- exports$1.default = isISRC;
8560
+ exports.default = isISRC;
8539
8561
  var _assertString = _interopRequireDefault(assertStringExports);
8540
8562
  function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
8541
8563
  // see http://isrc.ifpi.org/en/isrc-standard/code-syntax
@@ -8544,8 +8566,8 @@ var isISRC = {exports: {}};
8544
8566
  (0, _assertString.default)(str);
8545
8567
  return isrc.test(str);
8546
8568
  }
8547
- module.exports = exports$1.default;
8548
- module.exports.default = exports$1.default;
8569
+ module.exports = exports.default;
8570
+ module.exports.default = exports.default;
8549
8571
  } (isISRC, isISRC.exports));
8550
8572
 
8551
8573
  var isISRCExports = isISRC.exports;
@@ -8660,10 +8682,7 @@ function hasOnlyValidCountryCodes(countryCodeArray) {
8660
8682
  var countryCodeArrayFilteredWithObjectIbanCode = countryCodeArray.filter(function (countryCode) {
8661
8683
  return !(countryCode in ibanRegexThroughCountryCode);
8662
8684
  });
8663
- if (countryCodeArrayFilteredWithObjectIbanCode.length > 0) {
8664
- return false;
8665
- }
8666
- return true;
8685
+ return countryCodeArrayFilteredWithObjectIbanCode.length === 0;
8667
8686
  }
8668
8687
 
8669
8688
  /**
@@ -8745,18 +8764,30 @@ var _assertString$6 = _interopRequireDefault$6(assertStringExports);
8745
8764
  function _interopRequireDefault$6(e) { return e && e.__esModule ? e : { default: e }; }
8746
8765
  // from https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2
8747
8766
  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']);
8767
+ var alpha2CountryCode = /^[a-zA-Z]{2}$/;
8748
8768
  function isISO31661Alpha2(str) {
8769
+ var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
8749
8770
  (0, _assertString$6.default)(str);
8771
+ var userAssignedCodes = options.userAssignedCodes;
8772
+ var validUserAssignedCodes = (userAssignedCodes || []).reduce(function (accumulator, userAssignedCode) {
8773
+ if (alpha2CountryCode.test(userAssignedCode)) {
8774
+ accumulator.push(userAssignedCode.toUpperCase());
8775
+ }
8776
+ return accumulator;
8777
+ }, []);
8778
+ if (validUserAssignedCodes.includes(str.toUpperCase())) {
8779
+ return true;
8780
+ }
8750
8781
  return validISO31661Alpha2CountriesCodes.has(str.toUpperCase());
8751
8782
  }
8752
8783
  isISO31661Alpha2$1.CountryCodes = validISO31661Alpha2CountriesCodes;
8753
8784
 
8754
- (function (module, exports$1) {
8785
+ (function (module, exports) {
8755
8786
 
8756
- Object.defineProperty(exports$1, "__esModule", {
8787
+ Object.defineProperty(exports, "__esModule", {
8757
8788
  value: true
8758
8789
  });
8759
- exports$1.default = isBIC;
8790
+ exports.default = isBIC;
8760
8791
  var _assertString = _interopRequireDefault(assertStringExports);
8761
8792
  var _isISO31661Alpha = isISO31661Alpha2$1;
8762
8793
  function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
@@ -8773,20 +8804,20 @@ isISO31661Alpha2$1.CountryCodes = validISO31661Alpha2CountriesCodes;
8773
8804
  }
8774
8805
  return isBICReg.test(str);
8775
8806
  }
8776
- module.exports = exports$1.default;
8777
- module.exports.default = exports$1.default;
8807
+ module.exports = exports.default;
8808
+ module.exports.default = exports.default;
8778
8809
  } (isBIC, isBIC.exports));
8779
8810
 
8780
8811
  var isBICExports = isBIC.exports;
8781
8812
 
8782
8813
  var isMD5 = {exports: {}};
8783
8814
 
8784
- (function (module, exports$1) {
8815
+ (function (module, exports) {
8785
8816
 
8786
- Object.defineProperty(exports$1, "__esModule", {
8817
+ Object.defineProperty(exports, "__esModule", {
8787
8818
  value: true
8788
8819
  });
8789
- exports$1.default = isMD5;
8820
+ exports.default = isMD5;
8790
8821
  var _assertString = _interopRequireDefault(assertStringExports);
8791
8822
  function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
8792
8823
  var md5 = /^[a-f0-9]{32}$/;
@@ -8794,20 +8825,20 @@ var isMD5 = {exports: {}};
8794
8825
  (0, _assertString.default)(str);
8795
8826
  return md5.test(str);
8796
8827
  }
8797
- module.exports = exports$1.default;
8798
- module.exports.default = exports$1.default;
8828
+ module.exports = exports.default;
8829
+ module.exports.default = exports.default;
8799
8830
  } (isMD5, isMD5.exports));
8800
8831
 
8801
8832
  var isMD5Exports = isMD5.exports;
8802
8833
 
8803
8834
  var isHash = {exports: {}};
8804
8835
 
8805
- (function (module, exports$1) {
8836
+ (function (module, exports) {
8806
8837
 
8807
- Object.defineProperty(exports$1, "__esModule", {
8838
+ Object.defineProperty(exports, "__esModule", {
8808
8839
  value: true
8809
8840
  });
8810
- exports$1.default = isHash;
8841
+ exports.default = isHash;
8811
8842
  var _assertString = _interopRequireDefault(assertStringExports);
8812
8843
  function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
8813
8844
  var lengths = {
@@ -8830,8 +8861,8 @@ var isHash = {exports: {}};
8830
8861
  var hash = new RegExp("^[a-fA-F0-9]{".concat(lengths[algorithm], "}$"));
8831
8862
  return hash.test(str);
8832
8863
  }
8833
- module.exports = exports$1.default;
8834
- module.exports.default = exports$1.default;
8864
+ module.exports = exports.default;
8865
+ module.exports.default = exports.default;
8835
8866
  } (isHash, isHash.exports));
8836
8867
 
8837
8868
  var isHashExports = isHash.exports;
@@ -8840,12 +8871,12 @@ var isJWT = {exports: {}};
8840
8871
 
8841
8872
  var isBase64 = {exports: {}};
8842
8873
 
8843
- (function (module, exports$1) {
8874
+ (function (module, exports) {
8844
8875
 
8845
- Object.defineProperty(exports$1, "__esModule", {
8876
+ Object.defineProperty(exports, "__esModule", {
8846
8877
  value: true
8847
8878
  });
8848
- exports$1.default = isBase64;
8879
+ exports.default = isBase64;
8849
8880
  var _assertString = _interopRequireDefault(assertStringExports);
8850
8881
  var _merge = _interopRequireDefault(mergeExports);
8851
8882
  function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
@@ -8870,18 +8901,18 @@ var isBase64 = {exports: {}};
8870
8901
  }
8871
8902
  return (!options.padding || str.length % 4 === 0) && regex.test(str);
8872
8903
  }
8873
- module.exports = exports$1.default;
8874
- module.exports.default = exports$1.default;
8904
+ module.exports = exports.default;
8905
+ module.exports.default = exports.default;
8875
8906
  } (isBase64, isBase64.exports));
8876
8907
 
8877
8908
  var isBase64Exports = isBase64.exports;
8878
8909
 
8879
- (function (module, exports$1) {
8910
+ (function (module, exports) {
8880
8911
 
8881
- Object.defineProperty(exports$1, "__esModule", {
8912
+ Object.defineProperty(exports, "__esModule", {
8882
8913
  value: true
8883
8914
  });
8884
- exports$1.default = isJWT;
8915
+ exports.default = isJWT;
8885
8916
  var _assertString = _interopRequireDefault(assertStringExports);
8886
8917
  var _isBase = _interopRequireDefault(isBase64Exports);
8887
8918
  function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
@@ -8898,55 +8929,61 @@ var isBase64Exports = isBase64.exports;
8898
8929
  });
8899
8930
  }, true);
8900
8931
  }
8901
- module.exports = exports$1.default;
8902
- module.exports.default = exports$1.default;
8932
+ module.exports = exports.default;
8933
+ module.exports.default = exports.default;
8903
8934
  } (isJWT, isJWT.exports));
8904
8935
 
8905
8936
  var isJWTExports = isJWT.exports;
8906
8937
 
8907
8938
  var isJSON = {exports: {}};
8908
8939
 
8909
- (function (module, exports$1) {
8940
+ (function (module, exports) {
8910
8941
 
8911
- Object.defineProperty(exports$1, "__esModule", {
8942
+ Object.defineProperty(exports, "__esModule", {
8912
8943
  value: true
8913
8944
  });
8914
- exports$1.default = isJSON;
8945
+ exports.default = isJSON;
8915
8946
  var _assertString = _interopRequireDefault(assertStringExports);
8916
8947
  var _includesArray = _interopRequireDefault(includesArrayExports);
8917
8948
  var _merge = _interopRequireDefault(mergeExports);
8918
8949
  function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
8919
8950
  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); }
8920
8951
  var default_json_options = {
8921
- allow_primitives: false
8952
+ allow_primitives: false,
8953
+ allow_any_value: false
8922
8954
  };
8923
8955
  function isJSON(str, options) {
8924
8956
  (0, _assertString.default)(str);
8925
8957
  try {
8926
8958
  options = (0, _merge.default)(options, default_json_options);
8959
+ var obj = JSON.parse(str);
8960
+
8961
+ // When allow_any_value is true, accept anything that JSON.parse successfully parses
8962
+ if (options.allow_any_value) {
8963
+ return true;
8964
+ }
8927
8965
  var primitives = [];
8928
8966
  if (options.allow_primitives) {
8929
8967
  primitives = [null, false, true];
8930
8968
  }
8931
- var obj = JSON.parse(str);
8932
8969
  return (0, _includesArray.default)(primitives, obj) || !!obj && _typeof(obj) === 'object';
8933
8970
  } catch (e) {/* ignore */}
8934
8971
  return false;
8935
8972
  }
8936
- module.exports = exports$1.default;
8937
- module.exports.default = exports$1.default;
8973
+ module.exports = exports.default;
8974
+ module.exports.default = exports.default;
8938
8975
  } (isJSON, isJSON.exports));
8939
8976
 
8940
8977
  var isJSONExports = isJSON.exports;
8941
8978
 
8942
8979
  var isEmpty = {exports: {}};
8943
8980
 
8944
- (function (module, exports$1) {
8981
+ (function (module, exports) {
8945
8982
 
8946
- Object.defineProperty(exports$1, "__esModule", {
8983
+ Object.defineProperty(exports, "__esModule", {
8947
8984
  value: true
8948
8985
  });
8949
- exports$1.default = isEmpty;
8986
+ exports.default = isEmpty;
8950
8987
  var _assertString = _interopRequireDefault(assertStringExports);
8951
8988
  var _merge = _interopRequireDefault(mergeExports);
8952
8989
  function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
@@ -8958,20 +8995,20 @@ var isEmpty = {exports: {}};
8958
8995
  options = (0, _merge.default)(options, default_is_empty_options);
8959
8996
  return (options.ignore_whitespace ? str.trim().length : str.length) === 0;
8960
8997
  }
8961
- module.exports = exports$1.default;
8962
- module.exports.default = exports$1.default;
8998
+ module.exports = exports.default;
8999
+ module.exports.default = exports.default;
8963
9000
  } (isEmpty, isEmpty.exports));
8964
9001
 
8965
9002
  var isEmptyExports = isEmpty.exports;
8966
9003
 
8967
9004
  var isLength = {exports: {}};
8968
9005
 
8969
- (function (module, exports$1) {
9006
+ (function (module, exports) {
8970
9007
 
8971
- Object.defineProperty(exports$1, "__esModule", {
9008
+ Object.defineProperty(exports, "__esModule", {
8972
9009
  value: true
8973
9010
  });
8974
- exports$1.default = isLength;
9011
+ exports.default = isLength;
8975
9012
  var _assertString = _interopRequireDefault(assertStringExports);
8976
9013
  function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
8977
9014
  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); }
@@ -8999,40 +9036,40 @@ var isLength = {exports: {}};
8999
9036
  }
9000
9037
  return isInsideRange;
9001
9038
  }
9002
- module.exports = exports$1.default;
9003
- module.exports.default = exports$1.default;
9039
+ module.exports = exports.default;
9040
+ module.exports.default = exports.default;
9004
9041
  } (isLength, isLength.exports));
9005
9042
 
9006
9043
  var isLengthExports = isLength.exports;
9007
9044
 
9008
9045
  var isULID = {exports: {}};
9009
9046
 
9010
- (function (module, exports$1) {
9047
+ (function (module, exports) {
9011
9048
 
9012
- Object.defineProperty(exports$1, "__esModule", {
9049
+ Object.defineProperty(exports, "__esModule", {
9013
9050
  value: true
9014
9051
  });
9015
- exports$1.default = isULID;
9052
+ exports.default = isULID;
9016
9053
  var _assertString = _interopRequireDefault(assertStringExports);
9017
9054
  function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
9018
9055
  function isULID(str) {
9019
9056
  (0, _assertString.default)(str);
9020
9057
  return /^[0-7][0-9A-HJKMNP-TV-Z]{25}$/i.test(str);
9021
9058
  }
9022
- module.exports = exports$1.default;
9023
- module.exports.default = exports$1.default;
9059
+ module.exports = exports.default;
9060
+ module.exports.default = exports.default;
9024
9061
  } (isULID, isULID.exports));
9025
9062
 
9026
9063
  var isULIDExports = isULID.exports;
9027
9064
 
9028
9065
  var isUUID = {exports: {}};
9029
9066
 
9030
- (function (module, exports$1) {
9067
+ (function (module, exports) {
9031
9068
 
9032
- Object.defineProperty(exports$1, "__esModule", {
9069
+ Object.defineProperty(exports, "__esModule", {
9033
9070
  value: true
9034
9071
  });
9035
- exports$1.default = isUUID;
9072
+ exports.default = isUUID;
9036
9073
  var _assertString = _interopRequireDefault(assertStringExports);
9037
9074
  function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
9038
9075
  var uuid = {
@@ -9057,20 +9094,20 @@ var isUUID = {exports: {}};
9057
9094
  }
9058
9095
  return version in uuid ? uuid[version].test(str) : false;
9059
9096
  }
9060
- module.exports = exports$1.default;
9061
- module.exports.default = exports$1.default;
9097
+ module.exports = exports.default;
9098
+ module.exports.default = exports.default;
9062
9099
  } (isUUID, isUUID.exports));
9063
9100
 
9064
9101
  var isUUIDExports = isUUID.exports;
9065
9102
 
9066
9103
  var isMongoId = {exports: {}};
9067
9104
 
9068
- (function (module, exports$1) {
9105
+ (function (module, exports) {
9069
9106
 
9070
- Object.defineProperty(exports$1, "__esModule", {
9107
+ Object.defineProperty(exports, "__esModule", {
9071
9108
  value: true
9072
9109
  });
9073
- exports$1.default = isMongoId;
9110
+ exports.default = isMongoId;
9074
9111
  var _assertString = _interopRequireDefault(assertStringExports);
9075
9112
  var _isHexadecimal = _interopRequireDefault(isHexadecimalExports);
9076
9113
  function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
@@ -9078,20 +9115,20 @@ var isMongoId = {exports: {}};
9078
9115
  (0, _assertString.default)(str);
9079
9116
  return (0, _isHexadecimal.default)(str) && str.length === 24;
9080
9117
  }
9081
- module.exports = exports$1.default;
9082
- module.exports.default = exports$1.default;
9118
+ module.exports = exports.default;
9119
+ module.exports.default = exports.default;
9083
9120
  } (isMongoId, isMongoId.exports));
9084
9121
 
9085
9122
  var isMongoIdExports = isMongoId.exports;
9086
9123
 
9087
9124
  var isAfter = {exports: {}};
9088
9125
 
9089
- (function (module, exports$1) {
9126
+ (function (module, exports) {
9090
9127
 
9091
- Object.defineProperty(exports$1, "__esModule", {
9128
+ Object.defineProperty(exports, "__esModule", {
9092
9129
  value: true
9093
9130
  });
9094
- exports$1.default = isAfter;
9131
+ exports.default = isAfter;
9095
9132
  var _toDate = _interopRequireDefault(toDateExports);
9096
9133
  function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
9097
9134
  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); }
@@ -9103,20 +9140,20 @@ var isAfter = {exports: {}};
9103
9140
  var original = (0, _toDate.default)(date);
9104
9141
  return !!(original && comparison && original > comparison);
9105
9142
  }
9106
- module.exports = exports$1.default;
9107
- module.exports.default = exports$1.default;
9143
+ module.exports = exports.default;
9144
+ module.exports.default = exports.default;
9108
9145
  } (isAfter, isAfter.exports));
9109
9146
 
9110
9147
  var isAfterExports = isAfter.exports;
9111
9148
 
9112
9149
  var isBefore = {exports: {}};
9113
9150
 
9114
- (function (module, exports$1) {
9151
+ (function (module, exports) {
9115
9152
 
9116
- Object.defineProperty(exports$1, "__esModule", {
9153
+ Object.defineProperty(exports, "__esModule", {
9117
9154
  value: true
9118
9155
  });
9119
- exports$1.default = isBefore;
9156
+ exports.default = isBefore;
9120
9157
  var _toDate = _interopRequireDefault(toDateExports);
9121
9158
  function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
9122
9159
  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); }
@@ -9128,20 +9165,20 @@ var isBefore = {exports: {}};
9128
9165
  var original = (0, _toDate.default)(date);
9129
9166
  return !!(original && comparison && original < comparison);
9130
9167
  }
9131
- module.exports = exports$1.default;
9132
- module.exports.default = exports$1.default;
9168
+ module.exports = exports.default;
9169
+ module.exports.default = exports.default;
9133
9170
  } (isBefore, isBefore.exports));
9134
9171
 
9135
9172
  var isBeforeExports = isBefore.exports;
9136
9173
 
9137
9174
  var isIn = {exports: {}};
9138
9175
 
9139
- (function (module, exports$1) {
9176
+ (function (module, exports) {
9140
9177
 
9141
- Object.defineProperty(exports$1, "__esModule", {
9178
+ Object.defineProperty(exports, "__esModule", {
9142
9179
  value: true
9143
9180
  });
9144
- exports$1.default = isIn;
9181
+ exports.default = isIn;
9145
9182
  var _assertString = _interopRequireDefault(assertStringExports);
9146
9183
  var _toString = _interopRequireDefault(toStringExports);
9147
9184
  function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
@@ -9166,20 +9203,20 @@ var isIn = {exports: {}};
9166
9203
  }
9167
9204
  return false;
9168
9205
  }
9169
- module.exports = exports$1.default;
9170
- module.exports.default = exports$1.default;
9206
+ module.exports = exports.default;
9207
+ module.exports.default = exports.default;
9171
9208
  } (isIn, isIn.exports));
9172
9209
 
9173
9210
  var isInExports = isIn.exports;
9174
9211
 
9175
9212
  var isLuhnNumber = {exports: {}};
9176
9213
 
9177
- (function (module, exports$1) {
9214
+ (function (module, exports) {
9178
9215
 
9179
- Object.defineProperty(exports$1, "__esModule", {
9216
+ Object.defineProperty(exports, "__esModule", {
9180
9217
  value: true
9181
9218
  });
9182
- exports$1.default = isLuhnNumber;
9219
+ exports.default = isLuhnNumber;
9183
9220
  var _assertString = _interopRequireDefault(assertStringExports);
9184
9221
  function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
9185
9222
  function isLuhnNumber(str) {
@@ -9206,20 +9243,20 @@ var isLuhnNumber = {exports: {}};
9206
9243
  }
9207
9244
  return !!(sum % 10 === 0 ? sanitized : false);
9208
9245
  }
9209
- module.exports = exports$1.default;
9210
- module.exports.default = exports$1.default;
9246
+ module.exports = exports.default;
9247
+ module.exports.default = exports.default;
9211
9248
  } (isLuhnNumber, isLuhnNumber.exports));
9212
9249
 
9213
9250
  var isLuhnNumberExports = isLuhnNumber.exports;
9214
9251
 
9215
9252
  var isCreditCard = {exports: {}};
9216
9253
 
9217
- (function (module, exports$1) {
9254
+ (function (module, exports) {
9218
9255
 
9219
- Object.defineProperty(exports$1, "__esModule", {
9256
+ Object.defineProperty(exports, "__esModule", {
9220
9257
  value: true
9221
9258
  });
9222
- exports$1.default = isCreditCard;
9259
+ exports.default = isCreditCard;
9223
9260
  var _assertString = _interopRequireDefault(assertStringExports);
9224
9261
  var _isLuhnNumber = _interopRequireDefault(isLuhnNumberExports);
9225
9262
  function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
@@ -9264,20 +9301,20 @@ var isCreditCard = {exports: {}};
9264
9301
  }
9265
9302
  return (0, _isLuhnNumber.default)(card);
9266
9303
  }
9267
- module.exports = exports$1.default;
9268
- module.exports.default = exports$1.default;
9304
+ module.exports = exports.default;
9305
+ module.exports.default = exports.default;
9269
9306
  } (isCreditCard, isCreditCard.exports));
9270
9307
 
9271
9308
  var isCreditCardExports = isCreditCard.exports;
9272
9309
 
9273
9310
  var isIdentityCard = {exports: {}};
9274
9311
 
9275
- (function (module, exports$1) {
9312
+ (function (module, exports) {
9276
9313
 
9277
- Object.defineProperty(exports$1, "__esModule", {
9314
+ Object.defineProperty(exports, "__esModule", {
9278
9315
  value: true
9279
9316
  });
9280
- exports$1.default = isIdentityCard;
9317
+ exports.default = isIdentityCard;
9281
9318
  var _assertString = _interopRequireDefault(assertStringExports);
9282
9319
  var _includesArray = _interopRequireDefault(includesArrayExports);
9283
9320
  var _isInt = _interopRequireDefault(isIntExports);
@@ -9446,24 +9483,14 @@ var isIdentityCard = {exports: {}};
9446
9483
 
9447
9484
  // sanitize user input
9448
9485
  var sanitized = str.trim();
9449
-
9450
- // validate the data structure
9451
- if (!NIN.test(sanitized)) {
9452
- return false;
9453
- }
9454
- return true;
9486
+ return NIN.test(sanitized);
9455
9487
  },
9456
9488
  'ar-TN': function arTN(str) {
9457
9489
  var DNI = /^\d{8}$/;
9458
9490
 
9459
9491
  // sanitize user input
9460
9492
  var sanitized = str.trim();
9461
-
9462
- // validate the data structure
9463
- if (!DNI.test(sanitized)) {
9464
- return false;
9465
- }
9466
- return true;
9493
+ return DNI.test(sanitized);
9467
9494
  },
9468
9495
  'zh-CN': function zhCN(str) {
9469
9496
  var provincesAndCities = ['11',
@@ -9696,20 +9723,20 @@ var isIdentityCard = {exports: {}};
9696
9723
  }
9697
9724
  throw new Error("Invalid locale '".concat(locale, "'"));
9698
9725
  }
9699
- module.exports = exports$1.default;
9700
- module.exports.default = exports$1.default;
9726
+ module.exports = exports.default;
9727
+ module.exports.default = exports.default;
9701
9728
  } (isIdentityCard, isIdentityCard.exports));
9702
9729
 
9703
9730
  var isIdentityCardExports = isIdentityCard.exports;
9704
9731
 
9705
9732
  var isEAN = {exports: {}};
9706
9733
 
9707
- (function (module, exports$1) {
9734
+ (function (module, exports) {
9708
9735
 
9709
- Object.defineProperty(exports$1, "__esModule", {
9736
+ Object.defineProperty(exports, "__esModule", {
9710
9737
  value: true
9711
9738
  });
9712
- exports$1.default = isEAN;
9739
+ exports.default = isEAN;
9713
9740
  var _assertString = _interopRequireDefault(assertStringExports);
9714
9741
  function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
9715
9742
  /**
@@ -9780,20 +9807,20 @@ var isEAN = {exports: {}};
9780
9807
  var actualCheckDigit = Number(str.slice(-1));
9781
9808
  return validEanRegex.test(str) && actualCheckDigit === calculateCheckDigit(str);
9782
9809
  }
9783
- module.exports = exports$1.default;
9784
- module.exports.default = exports$1.default;
9810
+ module.exports = exports.default;
9811
+ module.exports.default = exports.default;
9785
9812
  } (isEAN, isEAN.exports));
9786
9813
 
9787
9814
  var isEANExports = isEAN.exports;
9788
9815
 
9789
9816
  var isISIN = {exports: {}};
9790
9817
 
9791
- (function (module, exports$1) {
9818
+ (function (module, exports) {
9792
9819
 
9793
- Object.defineProperty(exports$1, "__esModule", {
9820
+ Object.defineProperty(exports, "__esModule", {
9794
9821
  value: true
9795
9822
  });
9796
- exports$1.default = isISIN;
9823
+ exports.default = isISIN;
9797
9824
  var _assertString = _interopRequireDefault(assertStringExports);
9798
9825
  function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
9799
9826
  var isin = /^[A-Z]{2}[0-9A-Z]{9}[0-9]$/;
@@ -9850,20 +9877,20 @@ var isISIN = {exports: {}};
9850
9877
  var check = Math.trunc((sum + 9) / 10) * 10 - sum;
9851
9878
  return +str[str.length - 1] === check;
9852
9879
  }
9853
- module.exports = exports$1.default;
9854
- module.exports.default = exports$1.default;
9880
+ module.exports = exports.default;
9881
+ module.exports.default = exports.default;
9855
9882
  } (isISIN, isISIN.exports));
9856
9883
 
9857
9884
  var isISINExports = isISIN.exports;
9858
9885
 
9859
9886
  var isISBN = {exports: {}};
9860
9887
 
9861
- (function (module, exports$1) {
9888
+ (function (module, exports) {
9862
9889
 
9863
- Object.defineProperty(exports$1, "__esModule", {
9890
+ Object.defineProperty(exports, "__esModule", {
9864
9891
  value: true
9865
9892
  });
9866
- exports$1.default = isISBN;
9893
+ exports.default = isISBN;
9867
9894
  var _assertString = _interopRequireDefault(assertStringExports);
9868
9895
  function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
9869
9896
  var possibleIsbn10 = /^(?:[0-9]{9}X|[0-9]{10})$/;
@@ -9912,20 +9939,20 @@ var isISBN = {exports: {}};
9912
9939
  }
9913
9940
  return false;
9914
9941
  }
9915
- module.exports = exports$1.default;
9916
- module.exports.default = exports$1.default;
9942
+ module.exports = exports.default;
9943
+ module.exports.default = exports.default;
9917
9944
  } (isISBN, isISBN.exports));
9918
9945
 
9919
9946
  var isISBNExports = isISBN.exports;
9920
9947
 
9921
9948
  var isISSN = {exports: {}};
9922
9949
 
9923
- (function (module, exports$1) {
9950
+ (function (module, exports) {
9924
9951
 
9925
- Object.defineProperty(exports$1, "__esModule", {
9952
+ Object.defineProperty(exports, "__esModule", {
9926
9953
  value: true
9927
9954
  });
9928
- exports$1.default = isISSN;
9955
+ exports.default = isISSN;
9929
9956
  var _assertString = _interopRequireDefault(assertStringExports);
9930
9957
  function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
9931
9958
  var issn = '^\\d{4}-?\\d{3}[\\dX]$';
@@ -9946,8 +9973,8 @@ var isISSN = {exports: {}};
9946
9973
  }
9947
9974
  return checksum % 11 === 0;
9948
9975
  }
9949
- module.exports = exports$1.default;
9950
- module.exports.default = exports$1.default;
9976
+ module.exports = exports.default;
9977
+ module.exports.default = exports.default;
9951
9978
  } (isISSN, isISSN.exports));
9952
9979
 
9953
9980
  var isISSNExports = isISSN.exports;
@@ -10043,13 +10070,13 @@ function verhoeffCheck(str) {
10043
10070
  return checksum === 0;
10044
10071
  }
10045
10072
 
10046
- (function (module, exports$1) {
10073
+ (function (module, exports) {
10047
10074
 
10048
10075
  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); }
10049
- Object.defineProperty(exports$1, "__esModule", {
10076
+ Object.defineProperty(exports, "__esModule", {
10050
10077
  value: true
10051
10078
  });
10052
- exports$1.default = isTaxID;
10079
+ exports.default = isTaxID;
10053
10080
  var _assertString = _interopRequireDefault(assertStringExports);
10054
10081
  var algorithms = _interopRequireWildcard(algorithms$1);
10055
10082
  var _isDate = _interopRequireDefault(isDateExports);
@@ -11043,68 +11070,87 @@ function verhoeffCheck(str) {
11043
11070
  }
11044
11071
 
11045
11072
  /*
11046
- * pt-BR validation function
11047
- * (Cadastro de Pessoas Físicas (CPF, persons)
11048
- * Cadastro Nacional de Pessoas Jurídicas (CNPJ, entities)
11049
- * Both inputs will be validated
11050
- */
11073
+ * pt-BR validation function
11074
+ * (Cadastro de Pessoas Físicas (CPF, persons)
11075
+ * Cadastro Nacional de Pessoas Jurídicas (CNPJ, entities)
11076
+ * Both inputs will be validated.
11077
+ * CPF accepts formatted (XXX.XXX.XXX-XX) and unformatted input;
11078
+ * formatting is stripped before validation.
11079
+ * CNPJ supports both numeric (legacy) and alphanumeric format (starting July 2026).
11080
+ */
11081
+
11082
+ /**
11083
+ * Convert a CNPJ character to its numeric value for check digit calculation.
11084
+ * Numbers 0-9 map to values 0-9, letters A-Z map to values 17-42.
11085
+ * This is done by subtracting 48 from the ASCII code.
11086
+ */
11087
+ function cnpjCharToValue(char) {
11088
+ return char.charCodeAt(0) - 48;
11089
+ }
11090
+
11091
+ /**
11092
+ * Validate CNPJ (both numeric and alphanumeric formats).
11093
+ * Algorithm: module 11 with weights 2-9 from right to left.
11094
+ */
11095
+ function validateCnpj(cnpj) {
11096
+ // Get the 12 identifier characters and 2 check digits
11097
+ var identifiers = cnpj.substring(0, 12).toUpperCase();
11098
+ var checkDigits = cnpj.substring(12);
11099
+
11100
+ // Reject CNPJs with all same characters (e.g., '00000000000000', 'AAAAAAAAAAAAAA')
11101
+ if (/^(.)\1+$/.test(cnpj.toUpperCase())) {
11102
+ return false;
11103
+ }
11051
11104
 
11105
+ // Calculate first check digit
11106
+ var sum = 0;
11107
+ var weight = 5;
11108
+ for (var i = 0; i < 12; i++) {
11109
+ sum += cnpjCharToValue(identifiers.charAt(i)) * weight;
11110
+ weight = weight === 2 ? 9 : weight - 1;
11111
+ }
11112
+ var remainder = sum % 11;
11113
+ var firstDV = remainder < 2 ? 0 : 11 - remainder;
11114
+ if (firstDV !== parseInt(checkDigits.charAt(0), 10)) {
11115
+ return false;
11116
+ }
11117
+
11118
+ // Calculate second check digit (includes first check digit)
11119
+ sum = 0;
11120
+ weight = 6;
11121
+ for (var _i8 = 0; _i8 < 12; _i8++) {
11122
+ sum += cnpjCharToValue(identifiers.charAt(_i8)) * weight;
11123
+ weight = weight === 2 ? 9 : weight - 1;
11124
+ }
11125
+ sum += firstDV * 2;
11126
+ remainder = sum % 11;
11127
+ var secondDV = remainder < 2 ? 0 : 11 - remainder;
11128
+ return secondDV === parseInt(checkDigits.charAt(1), 10);
11129
+ }
11052
11130
  function ptBrCheck(tin) {
11131
+ // Strip CPF formatting (XXX.XXX.XXX-XX)
11132
+ tin = tin.replace(/[.\-/]/g, '');
11053
11133
  if (tin.length === 11) {
11054
- var _sum;
11134
+ var sum;
11055
11135
  var remainder;
11056
- _sum = 0;
11136
+ sum = 0;
11057
11137
  if (
11058
11138
  // Reject known invalid CPFs
11059
11139
  tin === '11111111111' || tin === '22222222222' || tin === '33333333333' || tin === '44444444444' || tin === '55555555555' || tin === '66666666666' || tin === '77777777777' || tin === '88888888888' || tin === '99999999999' || tin === '00000000000') return false;
11060
- for (var i = 1; i <= 9; i++) _sum += parseInt(tin.substring(i - 1, i), 10) * (11 - i);
11061
- remainder = _sum * 10 % 11;
11140
+ for (var i = 1; i <= 9; i++) sum += parseInt(tin.substring(i - 1, i), 10) * (11 - i);
11141
+ remainder = sum * 10 % 11;
11062
11142
  if (remainder === 10) remainder = 0;
11063
11143
  if (remainder !== parseInt(tin.substring(9, 10), 10)) return false;
11064
- _sum = 0;
11065
- for (var _i8 = 1; _i8 <= 10; _i8++) _sum += parseInt(tin.substring(_i8 - 1, _i8), 10) * (12 - _i8);
11066
- remainder = _sum * 10 % 11;
11144
+ sum = 0;
11145
+ for (var _i9 = 1; _i9 <= 10; _i9++) sum += parseInt(tin.substring(_i9 - 1, _i9), 10) * (12 - _i9);
11146
+ remainder = sum * 10 % 11;
11067
11147
  if (remainder === 10) remainder = 0;
11068
11148
  if (remainder !== parseInt(tin.substring(10, 11), 10)) return false;
11069
11149
  return true;
11070
11150
  }
11071
- if (
11072
- // Reject know invalid CNPJs
11073
- tin === '00000000000000' || tin === '11111111111111' || tin === '22222222222222' || tin === '33333333333333' || tin === '44444444444444' || tin === '55555555555555' || tin === '66666666666666' || tin === '77777777777777' || tin === '88888888888888' || tin === '99999999999999') {
11074
- return false;
11075
- }
11076
- var length = tin.length - 2;
11077
- var identifiers = tin.substring(0, length);
11078
- var verificators = tin.substring(length);
11079
- var sum = 0;
11080
- var pos = length - 7;
11081
- for (var _i9 = length; _i9 >= 1; _i9--) {
11082
- sum += identifiers.charAt(length - _i9) * pos;
11083
- pos -= 1;
11084
- if (pos < 2) {
11085
- pos = 9;
11086
- }
11087
- }
11088
- var result = sum % 11 < 2 ? 0 : 11 - sum % 11;
11089
- if (result !== parseInt(verificators.charAt(0), 10)) {
11090
- return false;
11091
- }
11092
- length += 1;
11093
- identifiers = tin.substring(0, length);
11094
- sum = 0;
11095
- pos = length - 7;
11096
- for (var _i0 = length; _i0 >= 1; _i0--) {
11097
- sum += identifiers.charAt(length - _i0) * pos;
11098
- pos -= 1;
11099
- if (pos < 2) {
11100
- pos = 9;
11101
- }
11102
- }
11103
- result = sum % 11 < 2 ? 0 : 11 - sum % 11;
11104
- if (result !== parseInt(verificators.charAt(1), 10)) {
11105
- return false;
11106
- }
11107
- return true;
11151
+
11152
+ // CNPJ validation (supports both numeric and alphanumeric formats)
11153
+ return validateCnpj(tin);
11108
11154
  }
11109
11155
 
11110
11156
  /*
@@ -11347,7 +11393,7 @@ function verhoeffCheck(str) {
11347
11393
  'mt-MT': /^\d{3,7}[APMGLHBZ]$|^([1-8])\1\d{7}$/i,
11348
11394
  'nl-NL': /^\d{9}$/,
11349
11395
  'pl-PL': /^\d{10,11}$/,
11350
- 'pt-BR': /(?:^\d{11}$)|(?:^\d{14}$)/,
11396
+ 'pt-BR': /(?:^\d{3}\.\d{3}\.\d{3}-\d{2}$)|(?:^\d{11}$)|(?:^[A-Z0-9]{12}\d{2}$)/i,
11351
11397
  'pt-PT': /^\d{9}$/,
11352
11398
  'ro-RO': /^\d{13}$/,
11353
11399
  'sk-SK': /^\d{6}\/{0,1}\d{3,4}$/,
@@ -11437,8 +11483,8 @@ function verhoeffCheck(str) {
11437
11483
  }
11438
11484
  throw new Error("Invalid locale '".concat(locale, "'"));
11439
11485
  }
11440
- module.exports = exports$1.default;
11441
- module.exports.default = exports$1.default;
11486
+ module.exports = exports.default;
11487
+ module.exports.default = exports.default;
11442
11488
  } (isTaxID, isTaxID.exports));
11443
11489
 
11444
11490
  var isTaxIDExports = isTaxID.exports;
@@ -11554,6 +11600,7 @@ var phones = {
11554
11600
  'fr-BJ': /^(\+229)\d{8}$/,
11555
11601
  'fr-CD': /^(\+?243|0)?(8|9)\d{8}$/,
11556
11602
  'fr-CM': /^(\+?237)6[0-9]{8}$/,
11603
+ 'fr-DJ': /^(?:\+253)?77[6-8]\d{5}$/,
11557
11604
  'fr-FR': /^(\+?33|0)[67]\d{8}$/,
11558
11605
  'fr-GF': /^(\+?594|0|00594)[67]\d{8}$/,
11559
11606
  'fr-GP': /^(\+?590|0|00590)[67]\d{8}$/,
@@ -11664,12 +11711,12 @@ isMobilePhone$1.locales = Object.keys(phones);
11664
11711
 
11665
11712
  var isEthereumAddress = {exports: {}};
11666
11713
 
11667
- (function (module, exports$1) {
11714
+ (function (module, exports) {
11668
11715
 
11669
- Object.defineProperty(exports$1, "__esModule", {
11716
+ Object.defineProperty(exports, "__esModule", {
11670
11717
  value: true
11671
11718
  });
11672
- exports$1.default = isEthereumAddress;
11719
+ exports.default = isEthereumAddress;
11673
11720
  var _assertString = _interopRequireDefault(assertStringExports);
11674
11721
  function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
11675
11722
  var eth = /^(0x)[0-9a-f]{40}$/i;
@@ -11677,20 +11724,20 @@ var isEthereumAddress = {exports: {}};
11677
11724
  (0, _assertString.default)(str);
11678
11725
  return eth.test(str);
11679
11726
  }
11680
- module.exports = exports$1.default;
11681
- module.exports.default = exports$1.default;
11727
+ module.exports = exports.default;
11728
+ module.exports.default = exports.default;
11682
11729
  } (isEthereumAddress, isEthereumAddress.exports));
11683
11730
 
11684
11731
  var isEthereumAddressExports = isEthereumAddress.exports;
11685
11732
 
11686
11733
  var isCurrency = {exports: {}};
11687
11734
 
11688
- (function (module, exports$1) {
11735
+ (function (module, exports) {
11689
11736
 
11690
- Object.defineProperty(exports$1, "__esModule", {
11737
+ Object.defineProperty(exports, "__esModule", {
11691
11738
  value: true
11692
11739
  });
11693
- exports$1.default = isCurrency;
11740
+ exports.default = isCurrency;
11694
11741
  var _merge = _interopRequireDefault(mergeExports);
11695
11742
  var _assertString = _interopRequireDefault(assertStringExports);
11696
11743
  function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
@@ -11766,20 +11813,20 @@ var isCurrency = {exports: {}};
11766
11813
  options = (0, _merge.default)(options, default_currency_options);
11767
11814
  return currencyRegex(options).test(str);
11768
11815
  }
11769
- module.exports = exports$1.default;
11770
- module.exports.default = exports$1.default;
11816
+ module.exports = exports.default;
11817
+ module.exports.default = exports.default;
11771
11818
  } (isCurrency, isCurrency.exports));
11772
11819
 
11773
11820
  var isCurrencyExports = isCurrency.exports;
11774
11821
 
11775
11822
  var isBtcAddress = {exports: {}};
11776
11823
 
11777
- (function (module, exports$1) {
11824
+ (function (module, exports) {
11778
11825
 
11779
- Object.defineProperty(exports$1, "__esModule", {
11826
+ Object.defineProperty(exports, "__esModule", {
11780
11827
  value: true
11781
11828
  });
11782
- exports$1.default = isBtcAddress;
11829
+ exports.default = isBtcAddress;
11783
11830
  var _assertString = _interopRequireDefault(assertStringExports);
11784
11831
  function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
11785
11832
  var bech32 = /^(bc1|tb1|bc1p|tb1p)[ac-hj-np-z02-9]{39,58}$/;
@@ -11788,8 +11835,8 @@ var isBtcAddress = {exports: {}};
11788
11835
  (0, _assertString.default)(str);
11789
11836
  return bech32.test(str) || base58.test(str);
11790
11837
  }
11791
- module.exports = exports$1.default;
11792
- module.exports.default = exports$1.default;
11838
+ module.exports = exports.default;
11839
+ module.exports.default = exports.default;
11793
11840
  } (isBtcAddress, isBtcAddress.exports));
11794
11841
 
11795
11842
  var isBtcAddressExports = isBtcAddress.exports;
@@ -11832,12 +11879,12 @@ isISO6346$1.isFreightContainerID = isISO6346;
11832
11879
 
11833
11880
  var isISO6391 = {exports: {}};
11834
11881
 
11835
- (function (module, exports$1) {
11882
+ (function (module, exports) {
11836
11883
 
11837
- Object.defineProperty(exports$1, "__esModule", {
11884
+ Object.defineProperty(exports, "__esModule", {
11838
11885
  value: true
11839
11886
  });
11840
- exports$1.default = isISO6391;
11887
+ exports.default = isISO6391;
11841
11888
  var _assertString = _interopRequireDefault(assertStringExports);
11842
11889
  function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
11843
11890
  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']);
@@ -11845,20 +11892,20 @@ var isISO6391 = {exports: {}};
11845
11892
  (0, _assertString.default)(str);
11846
11893
  return isISO6391Set.has(str);
11847
11894
  }
11848
- module.exports = exports$1.default;
11849
- module.exports.default = exports$1.default;
11895
+ module.exports = exports.default;
11896
+ module.exports.default = exports.default;
11850
11897
  } (isISO6391, isISO6391.exports));
11851
11898
 
11852
11899
  var isISO6391Exports = isISO6391.exports;
11853
11900
 
11854
11901
  var isISO8601 = {exports: {}};
11855
11902
 
11856
- (function (module, exports$1) {
11903
+ (function (module, exports) {
11857
11904
 
11858
- Object.defineProperty(exports$1, "__esModule", {
11905
+ Object.defineProperty(exports, "__esModule", {
11859
11906
  value: true
11860
11907
  });
11861
- exports$1.default = isISO8601;
11908
+ exports.default = isISO8601;
11862
11909
  var _assertString = _interopRequireDefault(assertStringExports);
11863
11910
  function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
11864
11911
  /* eslint-disable max-len */
@@ -11901,20 +11948,20 @@ var isISO8601 = {exports: {}};
11901
11948
  if (check && options.strict) return isValidDate(str);
11902
11949
  return check;
11903
11950
  }
11904
- module.exports = exports$1.default;
11905
- module.exports.default = exports$1.default;
11951
+ module.exports = exports.default;
11952
+ module.exports.default = exports.default;
11906
11953
  } (isISO8601, isISO8601.exports));
11907
11954
 
11908
11955
  var isISO8601Exports = isISO8601.exports;
11909
11956
 
11910
11957
  var isRFC3339 = {exports: {}};
11911
11958
 
11912
- (function (module, exports$1) {
11959
+ (function (module, exports) {
11913
11960
 
11914
- Object.defineProperty(exports$1, "__esModule", {
11961
+ Object.defineProperty(exports, "__esModule", {
11915
11962
  value: true
11916
11963
  });
11917
- exports$1.default = isRFC3339;
11964
+ exports.default = isRFC3339;
11918
11965
  var _assertString = _interopRequireDefault(assertStringExports);
11919
11966
  function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
11920
11967
  /* Based on https://tools.ietf.org/html/rfc3339#section-5.6 */
@@ -11936,8 +11983,8 @@ var isRFC3339 = {exports: {}};
11936
11983
  (0, _assertString.default)(str);
11937
11984
  return rfc3339.test(str);
11938
11985
  }
11939
- module.exports = exports$1.default;
11940
- module.exports.default = exports$1.default;
11986
+ module.exports = exports.default;
11987
+ module.exports.default = exports.default;
11941
11988
  } (isRFC3339, isRFC3339.exports));
11942
11989
 
11943
11990
  var isRFC3339Exports = isRFC3339.exports;
@@ -11961,34 +12008,46 @@ isISO15924$1.ScriptCodes = validISO15924Codes;
11961
12008
 
11962
12009
  var isISO31661Alpha3 = {exports: {}};
11963
12010
 
11964
- (function (module, exports$1) {
12011
+ (function (module, exports) {
11965
12012
 
11966
- Object.defineProperty(exports$1, "__esModule", {
12013
+ Object.defineProperty(exports, "__esModule", {
11967
12014
  value: true
11968
12015
  });
11969
- exports$1.default = isISO31661Alpha3;
12016
+ exports.default = isISO31661Alpha3;
11970
12017
  var _assertString = _interopRequireDefault(assertStringExports);
11971
12018
  function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
11972
12019
  // from https://en.wikipedia.org/wiki/ISO_3166-1_alpha-3
11973
12020
  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']);
12021
+ var alpha3CountryCode = /^[a-zA-Z]{3}$/;
11974
12022
  function isISO31661Alpha3(str) {
12023
+ var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
11975
12024
  (0, _assertString.default)(str);
12025
+ var userAssignedCodes = options.userAssignedCodes;
12026
+ var validUserAssignedCodes = (userAssignedCodes || []).reduce(function (accumulator, userAssignedCode) {
12027
+ if (alpha3CountryCode.test(userAssignedCode)) {
12028
+ accumulator.push(userAssignedCode.toUpperCase());
12029
+ }
12030
+ return accumulator;
12031
+ }, []);
12032
+ if (validUserAssignedCodes.includes(str.toUpperCase())) {
12033
+ return true;
12034
+ }
11976
12035
  return validISO31661Alpha3CountriesCodes.has(str.toUpperCase());
11977
12036
  }
11978
- module.exports = exports$1.default;
11979
- module.exports.default = exports$1.default;
12037
+ module.exports = exports.default;
12038
+ module.exports.default = exports.default;
11980
12039
  } (isISO31661Alpha3, isISO31661Alpha3.exports));
11981
12040
 
11982
12041
  var isISO31661Alpha3Exports = isISO31661Alpha3.exports;
11983
12042
 
11984
12043
  var isISO31661Numeric = {exports: {}};
11985
12044
 
11986
- (function (module, exports$1) {
12045
+ (function (module, exports) {
11987
12046
 
11988
- Object.defineProperty(exports$1, "__esModule", {
12047
+ Object.defineProperty(exports, "__esModule", {
11989
12048
  value: true
11990
12049
  });
11991
- exports$1.default = isISO31661Numeric;
12050
+ exports.default = isISO31661Numeric;
11992
12051
  var _assertString = _interopRequireDefault(assertStringExports);
11993
12052
  function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
11994
12053
  // from https://en.wikipedia.org/wiki/ISO_3166-1_numeric
@@ -11997,8 +12056,8 @@ var isISO31661Numeric = {exports: {}};
11997
12056
  (0, _assertString.default)(str);
11998
12057
  return validISO31661NumericCountriesCodes.has(str);
11999
12058
  }
12000
- module.exports = exports$1.default;
12001
- module.exports.default = exports$1.default;
12059
+ module.exports = exports.default;
12060
+ module.exports.default = exports.default;
12002
12061
  } (isISO31661Numeric, isISO31661Numeric.exports));
12003
12062
 
12004
12063
  var isISO31661NumericExports = isISO31661Numeric.exports;
@@ -12022,12 +12081,12 @@ isISO4217$1.CurrencyCodes = validISO4217CurrencyCodes;
12022
12081
 
12023
12082
  var isBase32 = {exports: {}};
12024
12083
 
12025
- (function (module, exports$1) {
12084
+ (function (module, exports) {
12026
12085
 
12027
- Object.defineProperty(exports$1, "__esModule", {
12086
+ Object.defineProperty(exports, "__esModule", {
12028
12087
  value: true
12029
12088
  });
12030
- exports$1.default = isBase32;
12089
+ exports.default = isBase32;
12031
12090
  var _assertString = _interopRequireDefault(assertStringExports);
12032
12091
  var _merge = _interopRequireDefault(mergeExports);
12033
12092
  function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
@@ -12042,51 +12101,44 @@ var isBase32 = {exports: {}};
12042
12101
  if (options.crockford) {
12043
12102
  return crockfordBase32.test(str);
12044
12103
  }
12045
- var len = str.length;
12046
- if (len % 8 === 0 && base32.test(str)) {
12047
- return true;
12048
- }
12049
- return false;
12104
+ return str.length % 8 === 0 && base32.test(str);
12050
12105
  }
12051
- module.exports = exports$1.default;
12052
- module.exports.default = exports$1.default;
12106
+ module.exports = exports.default;
12107
+ module.exports.default = exports.default;
12053
12108
  } (isBase32, isBase32.exports));
12054
12109
 
12055
12110
  var isBase32Exports = isBase32.exports;
12056
12111
 
12057
12112
  var isBase58 = {exports: {}};
12058
12113
 
12059
- (function (module, exports$1) {
12114
+ (function (module, exports) {
12060
12115
 
12061
- Object.defineProperty(exports$1, "__esModule", {
12116
+ Object.defineProperty(exports, "__esModule", {
12062
12117
  value: true
12063
12118
  });
12064
- exports$1.default = isBase58;
12119
+ exports.default = isBase58;
12065
12120
  var _assertString = _interopRequireDefault(assertStringExports);
12066
12121
  function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
12067
12122
  // Accepted chars - 123456789ABCDEFGH JKLMN PQRSTUVWXYZabcdefghijk mnopqrstuvwxyz
12068
12123
  var base58Reg = /^[A-HJ-NP-Za-km-z1-9]*$/;
12069
12124
  function isBase58(str) {
12070
12125
  (0, _assertString.default)(str);
12071
- if (base58Reg.test(str)) {
12072
- return true;
12073
- }
12074
- return false;
12126
+ return base58Reg.test(str);
12075
12127
  }
12076
- module.exports = exports$1.default;
12077
- module.exports.default = exports$1.default;
12128
+ module.exports = exports.default;
12129
+ module.exports.default = exports.default;
12078
12130
  } (isBase58, isBase58.exports));
12079
12131
 
12080
12132
  var isBase58Exports = isBase58.exports;
12081
12133
 
12082
12134
  var isDataURI = {exports: {}};
12083
12135
 
12084
- (function (module, exports$1) {
12136
+ (function (module, exports) {
12085
12137
 
12086
- Object.defineProperty(exports$1, "__esModule", {
12138
+ Object.defineProperty(exports, "__esModule", {
12087
12139
  value: true
12088
12140
  });
12089
- exports$1.default = isDataURI;
12141
+ exports.default = isDataURI;
12090
12142
  var _assertString = _interopRequireDefault(assertStringExports);
12091
12143
  function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
12092
12144
  var validMediaType = /^[a-z]+\/[a-z0-9\-\+\._]+$/i;
@@ -12119,20 +12171,20 @@ var isDataURI = {exports: {}};
12119
12171
  }
12120
12172
  return true;
12121
12173
  }
12122
- module.exports = exports$1.default;
12123
- module.exports.default = exports$1.default;
12174
+ module.exports = exports.default;
12175
+ module.exports.default = exports.default;
12124
12176
  } (isDataURI, isDataURI.exports));
12125
12177
 
12126
12178
  var isDataURIExports = isDataURI.exports;
12127
12179
 
12128
12180
  var isMagnetURI = {exports: {}};
12129
12181
 
12130
- (function (module, exports$1) {
12182
+ (function (module, exports) {
12131
12183
 
12132
- Object.defineProperty(exports$1, "__esModule", {
12184
+ Object.defineProperty(exports, "__esModule", {
12133
12185
  value: true
12134
12186
  });
12135
- exports$1.default = isMagnetURI;
12187
+ exports.default = isMagnetURI;
12136
12188
  var _assertString = _interopRequireDefault(assertStringExports);
12137
12189
  function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
12138
12190
  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;
@@ -12143,8 +12195,8 @@ var isMagnetURI = {exports: {}};
12143
12195
  }
12144
12196
  return magnetURIComponent.test(url);
12145
12197
  }
12146
- module.exports = exports$1.default;
12147
- module.exports.default = exports$1.default;
12198
+ module.exports = exports.default;
12199
+ module.exports.default = exports.default;
12148
12200
  } (isMagnetURI, isMagnetURI.exports));
12149
12201
 
12150
12202
  var isMagnetURIExports = isMagnetURI.exports;
@@ -12155,12 +12207,12 @@ var trim = {exports: {}};
12155
12207
 
12156
12208
  var rtrim = {exports: {}};
12157
12209
 
12158
- (function (module, exports$1) {
12210
+ (function (module, exports) {
12159
12211
 
12160
- Object.defineProperty(exports$1, "__esModule", {
12212
+ Object.defineProperty(exports, "__esModule", {
12161
12213
  value: true
12162
12214
  });
12163
- exports$1.default = rtrim;
12215
+ exports.default = rtrim;
12164
12216
  var _assertString = _interopRequireDefault(assertStringExports);
12165
12217
  function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
12166
12218
  function rtrim(str, chars) {
@@ -12177,20 +12229,20 @@ var rtrim = {exports: {}};
12177
12229
  }
12178
12230
  return str.slice(0, strIndex + 1);
12179
12231
  }
12180
- module.exports = exports$1.default;
12181
- module.exports.default = exports$1.default;
12232
+ module.exports = exports.default;
12233
+ module.exports.default = exports.default;
12182
12234
  } (rtrim, rtrim.exports));
12183
12235
 
12184
12236
  var rtrimExports = rtrim.exports;
12185
12237
 
12186
12238
  var ltrim = {exports: {}};
12187
12239
 
12188
- (function (module, exports$1) {
12240
+ (function (module, exports) {
12189
12241
 
12190
- Object.defineProperty(exports$1, "__esModule", {
12242
+ Object.defineProperty(exports, "__esModule", {
12191
12243
  value: true
12192
12244
  });
12193
- exports$1.default = ltrim;
12245
+ exports.default = ltrim;
12194
12246
  var _assertString = _interopRequireDefault(assertStringExports);
12195
12247
  function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
12196
12248
  function ltrim(str, chars) {
@@ -12199,36 +12251,36 @@ var ltrim = {exports: {}};
12199
12251
  var pattern = chars ? new RegExp("^[".concat(chars.replace(/[.*+?^${}()|[\]\\]/g, '\\$&'), "]+"), 'g') : /^\s+/g;
12200
12252
  return str.replace(pattern, '');
12201
12253
  }
12202
- module.exports = exports$1.default;
12203
- module.exports.default = exports$1.default;
12254
+ module.exports = exports.default;
12255
+ module.exports.default = exports.default;
12204
12256
  } (ltrim, ltrim.exports));
12205
12257
 
12206
12258
  var ltrimExports = ltrim.exports;
12207
12259
 
12208
- (function (module, exports$1) {
12260
+ (function (module, exports) {
12209
12261
 
12210
- Object.defineProperty(exports$1, "__esModule", {
12262
+ Object.defineProperty(exports, "__esModule", {
12211
12263
  value: true
12212
12264
  });
12213
- exports$1.default = trim;
12265
+ exports.default = trim;
12214
12266
  var _rtrim = _interopRequireDefault(rtrimExports);
12215
12267
  var _ltrim = _interopRequireDefault(ltrimExports);
12216
12268
  function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
12217
12269
  function trim(str, chars) {
12218
12270
  return (0, _rtrim.default)((0, _ltrim.default)(str, chars), chars);
12219
12271
  }
12220
- module.exports = exports$1.default;
12221
- module.exports.default = exports$1.default;
12272
+ module.exports = exports.default;
12273
+ module.exports.default = exports.default;
12222
12274
  } (trim, trim.exports));
12223
12275
 
12224
12276
  var trimExports = trim.exports;
12225
12277
 
12226
- (function (module, exports$1) {
12278
+ (function (module, exports) {
12227
12279
 
12228
- Object.defineProperty(exports$1, "__esModule", {
12280
+ Object.defineProperty(exports, "__esModule", {
12229
12281
  value: true
12230
12282
  });
12231
- exports$1.default = isMailtoURI;
12283
+ exports.default = isMailtoURI;
12232
12284
  var _trim = _interopRequireDefault(trimExports);
12233
12285
  var _isEmail = _interopRequireDefault(isEmailExports);
12234
12286
  var _assertString = _interopRequireDefault(assertStringExports);
@@ -12305,20 +12357,20 @@ var trimExports = trim.exports;
12305
12357
  return true;
12306
12358
  });
12307
12359
  }
12308
- module.exports = exports$1.default;
12309
- module.exports.default = exports$1.default;
12360
+ module.exports = exports.default;
12361
+ module.exports.default = exports.default;
12310
12362
  } (isMailtoURI, isMailtoURI.exports));
12311
12363
 
12312
12364
  var isMailtoURIExports = isMailtoURI.exports;
12313
12365
 
12314
12366
  var isMimeType = {exports: {}};
12315
12367
 
12316
- (function (module, exports$1) {
12368
+ (function (module, exports) {
12317
12369
 
12318
- Object.defineProperty(exports$1, "__esModule", {
12370
+ Object.defineProperty(exports, "__esModule", {
12319
12371
  value: true
12320
12372
  });
12321
- exports$1.default = isMimeType;
12373
+ exports.default = isMimeType;
12322
12374
  var _assertString = _interopRequireDefault(assertStringExports);
12323
12375
  function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
12324
12376
  /*
@@ -12359,20 +12411,20 @@ var isMimeType = {exports: {}};
12359
12411
  (0, _assertString.default)(str);
12360
12412
  return mimeTypeSimple.test(str) || mimeTypeText.test(str) || mimeTypeMultipart.test(str);
12361
12413
  }
12362
- module.exports = exports$1.default;
12363
- module.exports.default = exports$1.default;
12414
+ module.exports = exports.default;
12415
+ module.exports.default = exports.default;
12364
12416
  } (isMimeType, isMimeType.exports));
12365
12417
 
12366
12418
  var isMimeTypeExports = isMimeType.exports;
12367
12419
 
12368
12420
  var isLatLong = {exports: {}};
12369
12421
 
12370
- (function (module, exports$1) {
12422
+ (function (module, exports) {
12371
12423
 
12372
- Object.defineProperty(exports$1, "__esModule", {
12424
+ Object.defineProperty(exports, "__esModule", {
12373
12425
  value: true
12374
12426
  });
12375
- exports$1.default = isLatLong;
12427
+ exports.default = isLatLong;
12376
12428
  var _assertString = _interopRequireDefault(assertStringExports);
12377
12429
  var _merge = _interopRequireDefault(mergeExports);
12378
12430
  var _includesString = _interopRequireDefault(includesStringExports);
@@ -12395,8 +12447,8 @@ var isLatLong = {exports: {}};
12395
12447
  }
12396
12448
  return lat.test(pair[0]) && long.test(pair[1]);
12397
12449
  }
12398
- module.exports = exports$1.default;
12399
- module.exports.default = exports$1.default;
12450
+ module.exports = exports.default;
12451
+ module.exports.default = exports.default;
12400
12452
  } (isLatLong, isLatLong.exports));
12401
12453
 
12402
12454
  var isLatLongExports = isLatLong.exports;
@@ -12459,6 +12511,7 @@ var patterns = {
12459
12511
  LU: fourDigit,
12460
12512
  LV: /^LV\-\d{4}$/,
12461
12513
  LK: fiveDigit,
12514
+ MC: /^980\d{2}$/,
12462
12515
  MG: threeDigit,
12463
12516
  MX: fiveDigit,
12464
12517
  MT: /^[A-Za-z]{3}\s{0,1}\d{4}$/,
@@ -12510,32 +12563,32 @@ function isPostalCode(str, locale) {
12510
12563
 
12511
12564
  var _escape = {exports: {}};
12512
12565
 
12513
- (function (module, exports$1) {
12566
+ (function (module, exports) {
12514
12567
 
12515
- Object.defineProperty(exports$1, "__esModule", {
12568
+ Object.defineProperty(exports, "__esModule", {
12516
12569
  value: true
12517
12570
  });
12518
- exports$1.default = escape;
12571
+ exports.default = escape;
12519
12572
  var _assertString = _interopRequireDefault(assertStringExports);
12520
12573
  function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
12521
12574
  function escape(str) {
12522
12575
  (0, _assertString.default)(str);
12523
12576
  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;');
12524
12577
  }
12525
- module.exports = exports$1.default;
12526
- module.exports.default = exports$1.default;
12578
+ module.exports = exports.default;
12579
+ module.exports.default = exports.default;
12527
12580
  } (_escape, _escape.exports));
12528
12581
 
12529
12582
  var _escapeExports = _escape.exports;
12530
12583
 
12531
12584
  var _unescape = {exports: {}};
12532
12585
 
12533
- (function (module, exports$1) {
12586
+ (function (module, exports) {
12534
12587
 
12535
- Object.defineProperty(exports$1, "__esModule", {
12588
+ Object.defineProperty(exports, "__esModule", {
12536
12589
  value: true
12537
12590
  });
12538
- exports$1.default = unescape;
12591
+ exports.default = unescape;
12539
12592
  var _assertString = _interopRequireDefault(assertStringExports);
12540
12593
  function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
12541
12594
  function unescape(str) {
@@ -12545,8 +12598,8 @@ var _unescape = {exports: {}};
12545
12598
  // bugs with intermediate strings containing escape sequences
12546
12599
  // See: https://github.com/validatorjs/validator.js/issues/1827
12547
12600
  }
12548
- module.exports = exports$1.default;
12549
- module.exports.default = exports$1.default;
12601
+ module.exports = exports.default;
12602
+ module.exports.default = exports.default;
12550
12603
  } (_unescape, _unescape.exports));
12551
12604
 
12552
12605
  var _unescapeExports = _unescape.exports;
@@ -12555,30 +12608,30 @@ var stripLow = {exports: {}};
12555
12608
 
12556
12609
  var blacklist = {exports: {}};
12557
12610
 
12558
- (function (module, exports$1) {
12611
+ (function (module, exports) {
12559
12612
 
12560
- Object.defineProperty(exports$1, "__esModule", {
12613
+ Object.defineProperty(exports, "__esModule", {
12561
12614
  value: true
12562
12615
  });
12563
- exports$1.default = blacklist;
12616
+ exports.default = blacklist;
12564
12617
  var _assertString = _interopRequireDefault(assertStringExports);
12565
12618
  function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
12566
12619
  function blacklist(str, chars) {
12567
12620
  (0, _assertString.default)(str);
12568
12621
  return str.replace(new RegExp("[".concat(chars, "]+"), 'g'), '');
12569
12622
  }
12570
- module.exports = exports$1.default;
12571
- module.exports.default = exports$1.default;
12623
+ module.exports = exports.default;
12624
+ module.exports.default = exports.default;
12572
12625
  } (blacklist, blacklist.exports));
12573
12626
 
12574
12627
  var blacklistExports = blacklist.exports;
12575
12628
 
12576
- (function (module, exports$1) {
12629
+ (function (module, exports) {
12577
12630
 
12578
- Object.defineProperty(exports$1, "__esModule", {
12631
+ Object.defineProperty(exports, "__esModule", {
12579
12632
  value: true
12580
12633
  });
12581
- exports$1.default = stripLow;
12634
+ exports.default = stripLow;
12582
12635
  var _assertString = _interopRequireDefault(assertStringExports);
12583
12636
  var _blacklist = _interopRequireDefault(blacklistExports);
12584
12637
  function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
@@ -12587,40 +12640,40 @@ var blacklistExports = blacklist.exports;
12587
12640
  var chars = keep_new_lines ? '\\x00-\\x09\\x0B\\x0C\\x0E-\\x1F\\x7F' : '\\x00-\\x1F\\x7F';
12588
12641
  return (0, _blacklist.default)(str, chars);
12589
12642
  }
12590
- module.exports = exports$1.default;
12591
- module.exports.default = exports$1.default;
12643
+ module.exports = exports.default;
12644
+ module.exports.default = exports.default;
12592
12645
  } (stripLow, stripLow.exports));
12593
12646
 
12594
12647
  var stripLowExports = stripLow.exports;
12595
12648
 
12596
12649
  var whitelist = {exports: {}};
12597
12650
 
12598
- (function (module, exports$1) {
12651
+ (function (module, exports) {
12599
12652
 
12600
- Object.defineProperty(exports$1, "__esModule", {
12653
+ Object.defineProperty(exports, "__esModule", {
12601
12654
  value: true
12602
12655
  });
12603
- exports$1.default = whitelist;
12656
+ exports.default = whitelist;
12604
12657
  var _assertString = _interopRequireDefault(assertStringExports);
12605
12658
  function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
12606
12659
  function whitelist(str, chars) {
12607
12660
  (0, _assertString.default)(str);
12608
12661
  return str.replace(new RegExp("[^".concat(chars, "]+"), 'g'), '');
12609
12662
  }
12610
- module.exports = exports$1.default;
12611
- module.exports.default = exports$1.default;
12663
+ module.exports = exports.default;
12664
+ module.exports.default = exports.default;
12612
12665
  } (whitelist, whitelist.exports));
12613
12666
 
12614
12667
  var whitelistExports = whitelist.exports;
12615
12668
 
12616
12669
  var isWhitelisted = {exports: {}};
12617
12670
 
12618
- (function (module, exports$1) {
12671
+ (function (module, exports) {
12619
12672
 
12620
- Object.defineProperty(exports$1, "__esModule", {
12673
+ Object.defineProperty(exports, "__esModule", {
12621
12674
  value: true
12622
12675
  });
12623
- exports$1.default = isWhitelisted;
12676
+ exports.default = isWhitelisted;
12624
12677
  var _assertString = _interopRequireDefault(assertStringExports);
12625
12678
  function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
12626
12679
  function isWhitelisted(str, chars) {
@@ -12632,20 +12685,20 @@ var isWhitelisted = {exports: {}};
12632
12685
  }
12633
12686
  return true;
12634
12687
  }
12635
- module.exports = exports$1.default;
12636
- module.exports.default = exports$1.default;
12688
+ module.exports = exports.default;
12689
+ module.exports.default = exports.default;
12637
12690
  } (isWhitelisted, isWhitelisted.exports));
12638
12691
 
12639
12692
  var isWhitelistedExports = isWhitelisted.exports;
12640
12693
 
12641
12694
  var normalizeEmail = {exports: {}};
12642
12695
 
12643
- (function (module, exports$1) {
12696
+ (function (module, exports) {
12644
12697
 
12645
- Object.defineProperty(exports$1, "__esModule", {
12698
+ Object.defineProperty(exports, "__esModule", {
12646
12699
  value: true
12647
12700
  });
12648
- exports$1.default = normalizeEmail;
12701
+ exports.default = normalizeEmail;
12649
12702
  var _merge = _interopRequireDefault(mergeExports);
12650
12703
  function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
12651
12704
  var default_normalize_email_options = {
@@ -12778,41 +12831,41 @@ var normalizeEmail = {exports: {}};
12778
12831
  }
12779
12832
  return parts.join('@');
12780
12833
  }
12781
- module.exports = exports$1.default;
12782
- module.exports.default = exports$1.default;
12834
+ module.exports = exports.default;
12835
+ module.exports.default = exports.default;
12783
12836
  } (normalizeEmail, normalizeEmail.exports));
12784
12837
 
12785
12838
  var normalizeEmailExports = normalizeEmail.exports;
12786
12839
 
12787
12840
  var isSlug = {exports: {}};
12788
12841
 
12789
- (function (module, exports$1) {
12842
+ (function (module, exports) {
12790
12843
 
12791
- Object.defineProperty(exports$1, "__esModule", {
12844
+ Object.defineProperty(exports, "__esModule", {
12792
12845
  value: true
12793
12846
  });
12794
- exports$1.default = isSlug;
12847
+ exports.default = isSlug;
12795
12848
  var _assertString = _interopRequireDefault(assertStringExports);
12796
12849
  function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
12797
- var charsetRegex = /^[^\s-_](?!.*?[-_]{2,})[a-z0-9-\\][^\s]*[^-_\s]$/;
12850
+ var charsetRegex = /^[a-z0-9](?!.*[-_]{2,})(?:[a-z0-9_-]*[a-z0-9])?$/;
12798
12851
  function isSlug(str) {
12799
12852
  (0, _assertString.default)(str);
12800
12853
  return charsetRegex.test(str);
12801
12854
  }
12802
- module.exports = exports$1.default;
12803
- module.exports.default = exports$1.default;
12855
+ module.exports = exports.default;
12856
+ module.exports.default = exports.default;
12804
12857
  } (isSlug, isSlug.exports));
12805
12858
 
12806
12859
  var isSlugExports = isSlug.exports;
12807
12860
 
12808
12861
  var isLicensePlate = {exports: {}};
12809
12862
 
12810
- (function (module, exports$1) {
12863
+ (function (module, exports) {
12811
12864
 
12812
- Object.defineProperty(exports$1, "__esModule", {
12865
+ Object.defineProperty(exports, "__esModule", {
12813
12866
  value: true
12814
12867
  });
12815
- exports$1.default = isLicensePlate;
12868
+ exports.default = isLicensePlate;
12816
12869
  var _assertString = _interopRequireDefault(assertStringExports);
12817
12870
  function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
12818
12871
  var validators = {
@@ -12872,20 +12925,20 @@ var isLicensePlate = {exports: {}};
12872
12925
  }
12873
12926
  throw new Error("Invalid locale '".concat(locale, "'"));
12874
12927
  }
12875
- module.exports = exports$1.default;
12876
- module.exports.default = exports$1.default;
12928
+ module.exports = exports.default;
12929
+ module.exports.default = exports.default;
12877
12930
  } (isLicensePlate, isLicensePlate.exports));
12878
12931
 
12879
12932
  var isLicensePlateExports = isLicensePlate.exports;
12880
12933
 
12881
12934
  var isStrongPassword = {exports: {}};
12882
12935
 
12883
- (function (module, exports$1) {
12936
+ (function (module, exports) {
12884
12937
 
12885
- Object.defineProperty(exports$1, "__esModule", {
12938
+ Object.defineProperty(exports, "__esModule", {
12886
12939
  value: true
12887
12940
  });
12888
- exports$1.default = isStrongPassword;
12941
+ exports.default = isStrongPassword;
12889
12942
  var _merge = _interopRequireDefault(mergeExports);
12890
12943
  var _assertString = _interopRequireDefault(assertStringExports);
12891
12944
  function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
@@ -12977,8 +13030,8 @@ var isStrongPassword = {exports: {}};
12977
13030
  }
12978
13031
  return analysis.length >= options.minLength && analysis.lowercaseCount >= options.minLowercase && analysis.uppercaseCount >= options.minUppercase && analysis.numberCount >= options.minNumbers && analysis.symbolCount >= options.minSymbols;
12979
13032
  }
12980
- module.exports = exports$1.default;
12981
- module.exports.default = exports$1.default;
13033
+ module.exports = exports.default;
13034
+ module.exports.default = exports.default;
12982
13035
  } (isStrongPassword, isStrongPassword.exports));
12983
13036
 
12984
13037
  var isStrongPasswordExports = isStrongPassword.exports;
@@ -13258,13 +13311,13 @@ function isVAT(str, countryCode) {
13258
13311
  throw new Error("Invalid country code: '".concat(countryCode, "'"));
13259
13312
  }
13260
13313
 
13261
- (function (module, exports$1) {
13314
+ (function (module, exports) {
13262
13315
 
13263
13316
  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); }
13264
- Object.defineProperty(exports$1, "__esModule", {
13317
+ Object.defineProperty(exports, "__esModule", {
13265
13318
  value: true
13266
13319
  });
13267
- exports$1.default = void 0;
13320
+ exports.default = void 0;
13268
13321
  var _toDate = _interopRequireDefault(toDateExports);
13269
13322
  var _toFloat = _interopRequireDefault(toFloatExports);
13270
13323
  var _toInt = _interopRequireDefault(toIntExports);
@@ -13369,7 +13422,7 @@ function isVAT(str, countryCode) {
13369
13422
  var _isVAT = _interopRequireDefault(isVAT$1);
13370
13423
  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); }
13371
13424
  function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
13372
- var version = '13.15.26';
13425
+ var version = '13.15.35';
13373
13426
  var validator = {
13374
13427
  version: version,
13375
13428
  toDate: _toDate.default,
@@ -13484,9 +13537,9 @@ function isVAT(str, countryCode) {
13484
13537
  isVAT: _isVAT.default,
13485
13538
  ibanLocales: _isIBAN.locales
13486
13539
  };
13487
- exports$1.default = validator;
13488
- module.exports = exports$1.default;
13489
- module.exports.default = exports$1.default;
13540
+ exports.default = validator;
13541
+ module.exports = exports.default;
13542
+ module.exports.default = exports.default;
13490
13543
  } (validator$1, validator$1.exports));
13491
13544
 
13492
13545
  var validatorExports = validator$1.exports;
@@ -14131,11 +14184,11 @@ function requireCSV () {
14131
14184
  return CSV;
14132
14185
  }
14133
14186
 
14134
- (function (exports$1) {
14187
+ (function (exports) {
14135
14188
  function __export(m) {
14136
- for (var p in m) if (!exports$1.hasOwnProperty(p)) exports$1[p] = m[p];
14189
+ for (var p in m) if (!exports.hasOwnProperty(p)) exports[p] = m[p];
14137
14190
  }
14138
- Object.defineProperty(exports$1, "__esModule", { value: true });
14191
+ Object.defineProperty(exports, "__esModule", { value: true });
14139
14192
  __export(requireCSV());
14140
14193
  } (dist));
14141
14194
 
@@ -15670,8 +15723,8 @@ return CRC32;
15670
15723
  })();
15671
15724
  /* [MS-CFB] v20171201 */
15672
15725
  var CFB = /*#__PURE__*/(function _CFB(){
15673
- var exports$1/*:CFBModule*/ = /*::(*/{}/*:: :any)*/;
15674
- exports$1.version = '1.2.2';
15726
+ var exports/*:CFBModule*/ = /*::(*/{}/*:: :any)*/;
15727
+ exports.version = '1.2.2';
15675
15728
  /* [MS-CFB] 2.6.4 */
15676
15729
  function namecmp(l/*:string*/, r/*:string*/)/*:number*/ {
15677
15730
  var L = l.split("/"), R = r.split("/");
@@ -17372,12 +17425,12 @@ function cfb_mov(cfb/*:CFBContainer*/, old_name/*:string*/, new_name/*:string*/)
17372
17425
 
17373
17426
  function cfb_gc(cfb/*:CFBContainer*/)/*:void*/ { rebuild_cfb(cfb, true); }
17374
17427
 
17375
- exports$1.find = find;
17376
- exports$1.read = read;
17377
- exports$1.parse = parse;
17378
- exports$1.write = write;
17379
- exports$1.writeFile = write_file;
17380
- exports$1.utils = {
17428
+ exports.find = find;
17429
+ exports.read = read;
17430
+ exports.parse = parse;
17431
+ exports.write = write;
17432
+ exports.writeFile = write_file;
17433
+ exports.utils = {
17381
17434
  cfb_new: cfb_new,
17382
17435
  cfb_add: cfb_add,
17383
17436
  cfb_del: cfb_del,
@@ -17393,7 +17446,7 @@ exports$1.utils = {
17393
17446
  consts: consts
17394
17447
  };
17395
17448
 
17396
- return exports$1;
17449
+ return exports;
17397
17450
  })();
17398
17451
 
17399
17452
  var _fs;
@@ -41941,20 +41994,17 @@ var _validateFormat = (rows, hasHeader, cols, options) => {
41941
41994
  _forgeColumnsCountError(row, rowIndex + 1, cols, errors);
41942
41995
  }
41943
41996
  for (var colIndex = 0; colIndex < knownColsCount; colIndex++) {
41944
- var {
41945
- type,
41946
- colOptions,
41947
- acceptsEmptyFields,
41948
- field
41949
- } = colMeta[colIndex];
41997
+ var _colMeta$colIndex = colMeta[colIndex],
41998
+ type = _colMeta$colIndex.type,
41999
+ colOptions = _colMeta$colIndex.colOptions,
42000
+ acceptsEmptyFields = _colMeta$colIndex.acceptsEmptyFields,
42001
+ field = _colMeta$colIndex.field;
41950
42002
  var value = row[colIndex];
41951
42003
  if (value === undefined) continue;
41952
42004
  var validationResult = ValidationUtils.isValid(value, type, colOptions, acceptsEmptyFields);
41953
42005
  if (validationResult !== true) {
41954
- var {
41955
- summary: errorSummary,
41956
- context: errorContext
41957
- } = validationResult;
42006
+ var errorSummary = validationResult.summary,
42007
+ errorContext = validationResult.context;
41958
42008
  var errorLoc = "Line ".concat(rowIndex + 1, ", Column ").concat(colIndex + 1, " (\"").concat(field, "\")");
41959
42009
  errors.push(new Error$1(errorSummary, errorLoc, errorContext));
41960
42010
  }
@@ -42500,7 +42550,7 @@ var AuthDev = {
42500
42550
  acquireTokensByRequest
42501
42551
  };
42502
42552
 
42503
- /*! @azure/msal-common v15.16.1 2026-03-13 */
42553
+ /*! @azure/msal-common v15.17.0 2026-03-18 */
42504
42554
  /*
42505
42555
  * Copyright (c) Microsoft Corporation. All rights reserved.
42506
42556
  * Licensed under the MIT License.
@@ -42774,7 +42824,7 @@ const JsonWebTokenTypes = {
42774
42824
  // Token renewal offset default in seconds
42775
42825
  const DEFAULT_TOKEN_RENEWAL_OFFSET_SEC = 300;
42776
42826
 
42777
- /*! @azure/msal-common v15.16.1 2026-03-13 */
42827
+ /*! @azure/msal-common v15.17.0 2026-03-18 */
42778
42828
  /*
42779
42829
  * Copyright (c) Microsoft Corporation. All rights reserved.
42780
42830
  * Licensed under the MIT License.
@@ -42785,7 +42835,7 @@ const DEFAULT_TOKEN_RENEWAL_OFFSET_SEC = 300;
42785
42835
  const unexpectedError = "unexpected_error";
42786
42836
  const postRequestFailed$1 = "post_request_failed";
42787
42837
 
42788
- /*! @azure/msal-common v15.16.1 2026-03-13 */
42838
+ /*! @azure/msal-common v15.17.0 2026-03-18 */
42789
42839
 
42790
42840
  /*
42791
42841
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -42820,7 +42870,7 @@ function createAuthError(code, additionalMessage) {
42820
42870
  : AuthErrorMessages[code]);
42821
42871
  }
42822
42872
 
42823
- /*! @azure/msal-common v15.16.1 2026-03-13 */
42873
+ /*! @azure/msal-common v15.17.0 2026-03-18 */
42824
42874
  /*
42825
42875
  * Copyright (c) Microsoft Corporation. All rights reserved.
42826
42876
  * Licensed under the MIT License.
@@ -42871,7 +42921,7 @@ const methodNotImplemented = "method_not_implemented";
42871
42921
  const nestedAppAuthBridgeDisabled = "nested_app_auth_bridge_disabled";
42872
42922
  const platformBrokerError = "platform_broker_error";
42873
42923
 
42874
- /*! @azure/msal-common v15.16.1 2026-03-13 */
42924
+ /*! @azure/msal-common v15.17.0 2026-03-18 */
42875
42925
 
42876
42926
  /*
42877
42927
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -42946,7 +42996,7 @@ function createClientAuthError(errorCode, additionalMessage) {
42946
42996
  return new ClientAuthError(errorCode, additionalMessage);
42947
42997
  }
42948
42998
 
42949
- /*! @azure/msal-common v15.16.1 2026-03-13 */
42999
+ /*! @azure/msal-common v15.17.0 2026-03-18 */
42950
43000
 
42951
43001
  /*
42952
43002
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -42985,7 +43035,7 @@ const DEFAULT_CRYPTO_IMPLEMENTATION = {
42985
43035
  },
42986
43036
  };
42987
43037
 
42988
- /*! @azure/msal-common v15.16.1 2026-03-13 */
43038
+ /*! @azure/msal-common v15.17.0 2026-03-18 */
42989
43039
 
42990
43040
  /*
42991
43041
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -43176,12 +43226,12 @@ class Logger {
43176
43226
  }
43177
43227
  }
43178
43228
 
43179
- /*! @azure/msal-common v15.16.1 2026-03-13 */
43229
+ /*! @azure/msal-common v15.17.0 2026-03-18 */
43180
43230
  /* eslint-disable header/header */
43181
43231
  const name$2 = "@azure/msal-common";
43182
- const version$1 = "15.16.1";
43232
+ const version$1 = "15.17.0";
43183
43233
 
43184
- /*! @azure/msal-common v15.16.1 2026-03-13 */
43234
+ /*! @azure/msal-common v15.17.0 2026-03-18 */
43185
43235
  /*
43186
43236
  * Copyright (c) Microsoft Corporation. All rights reserved.
43187
43237
  * Licensed under the MIT License.
@@ -43190,7 +43240,7 @@ const AzureCloudInstance = {
43190
43240
  // AzureCloudInstance is not specified.
43191
43241
  None: "none"};
43192
43242
 
43193
- /*! @azure/msal-common v15.16.1 2026-03-13 */
43243
+ /*! @azure/msal-common v15.17.0 2026-03-18 */
43194
43244
  /*
43195
43245
  * Copyright (c) Microsoft Corporation. All rights reserved.
43196
43246
  * Licensed under the MIT License.
@@ -43220,7 +43270,7 @@ const invalidRequestMethodForEAR = "invalid_request_method_for_EAR";
43220
43270
  const invalidAuthorizePostBodyParameters = "invalid_authorize_post_body_parameters";
43221
43271
  const invalidPlatformBrokerConfiguration = "invalid_platform_broker_configuration";
43222
43272
 
43223
- /*! @azure/msal-common v15.16.1 2026-03-13 */
43273
+ /*! @azure/msal-common v15.17.0 2026-03-18 */
43224
43274
 
43225
43275
  /*
43226
43276
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -43266,7 +43316,7 @@ function createClientConfigurationError(errorCode) {
43266
43316
  return new ClientConfigurationError(errorCode);
43267
43317
  }
43268
43318
 
43269
- /*! @azure/msal-common v15.16.1 2026-03-13 */
43319
+ /*! @azure/msal-common v15.17.0 2026-03-18 */
43270
43320
  /*
43271
43321
  * Copyright (c) Microsoft Corporation. All rights reserved.
43272
43322
  * Licensed under the MIT License.
@@ -43402,7 +43452,7 @@ class StringUtils {
43402
43452
  }
43403
43453
  }
43404
43454
 
43405
- /*! @azure/msal-common v15.16.1 2026-03-13 */
43455
+ /*! @azure/msal-common v15.17.0 2026-03-18 */
43406
43456
 
43407
43457
  /*
43408
43458
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -43597,7 +43647,7 @@ class ScopeSet {
43597
43647
  }
43598
43648
  }
43599
43649
 
43600
- /*! @azure/msal-common v15.16.1 2026-03-13 */
43650
+ /*! @azure/msal-common v15.17.0 2026-03-18 */
43601
43651
 
43602
43652
  /*
43603
43653
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -43637,7 +43687,7 @@ function buildClientInfoFromHomeAccountId(homeAccountId) {
43637
43687
  };
43638
43688
  }
43639
43689
 
43640
- /*! @azure/msal-common v15.16.1 2026-03-13 */
43690
+ /*! @azure/msal-common v15.17.0 2026-03-18 */
43641
43691
  /*
43642
43692
  * Copyright (c) Microsoft Corporation. All rights reserved.
43643
43693
  * Licensed under the MIT License.
@@ -43719,7 +43769,7 @@ function updateAccountTenantProfileData(baseAccountInfo, tenantProfile, idTokenC
43719
43769
  return updatedAccountInfo;
43720
43770
  }
43721
43771
 
43722
- /*! @azure/msal-common v15.16.1 2026-03-13 */
43772
+ /*! @azure/msal-common v15.17.0 2026-03-18 */
43723
43773
  /*
43724
43774
  * Copyright (c) Microsoft Corporation. All rights reserved.
43725
43775
  * Licensed under the MIT License.
@@ -43734,7 +43784,7 @@ const AuthorityType = {
43734
43784
  Ciam: 3,
43735
43785
  };
43736
43786
 
43737
- /*! @azure/msal-common v15.16.1 2026-03-13 */
43787
+ /*! @azure/msal-common v15.17.0 2026-03-18 */
43738
43788
  /*
43739
43789
  * Copyright (c) Microsoft Corporation. All rights reserved.
43740
43790
  * Licensed under the MIT License.
@@ -43756,7 +43806,7 @@ function getTenantIdFromIdTokenClaims(idTokenClaims) {
43756
43806
  return null;
43757
43807
  }
43758
43808
 
43759
- /*! @azure/msal-common v15.16.1 2026-03-13 */
43809
+ /*! @azure/msal-common v15.17.0 2026-03-18 */
43760
43810
  /*
43761
43811
  * Copyright (c) Microsoft Corporation. All rights reserved.
43762
43812
  * Licensed under the MIT License.
@@ -43780,7 +43830,7 @@ const ProtocolMode = {
43780
43830
  EAR: "EAR",
43781
43831
  };
43782
43832
 
43783
- /*! @azure/msal-common v15.16.1 2026-03-13 */
43833
+ /*! @azure/msal-common v15.17.0 2026-03-18 */
43784
43834
 
43785
43835
  /*
43786
43836
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -44015,7 +44065,7 @@ class AccountEntity {
44015
44065
  }
44016
44066
  }
44017
44067
 
44018
- /*! @azure/msal-common v15.16.1 2026-03-13 */
44068
+ /*! @azure/msal-common v15.17.0 2026-03-18 */
44019
44069
 
44020
44070
  /*
44021
44071
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -44096,7 +44146,7 @@ function checkMaxAge(authTime, maxAge) {
44096
44146
  }
44097
44147
  }
44098
44148
 
44099
- /*! @azure/msal-common v15.16.1 2026-03-13 */
44149
+ /*! @azure/msal-common v15.17.0 2026-03-18 */
44100
44150
 
44101
44151
  /*
44102
44152
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -44212,7 +44262,7 @@ function normalizeUrlForComparison(url) {
44212
44262
  }
44213
44263
  }
44214
44264
 
44215
- /*! @azure/msal-common v15.16.1 2026-03-13 */
44265
+ /*! @azure/msal-common v15.17.0 2026-03-18 */
44216
44266
 
44217
44267
  /*
44218
44268
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -44376,7 +44426,7 @@ class UrlString {
44376
44426
  }
44377
44427
  }
44378
44428
 
44379
- /*! @azure/msal-common v15.16.1 2026-03-13 */
44429
+ /*! @azure/msal-common v15.17.0 2026-03-18 */
44380
44430
 
44381
44431
  /*
44382
44432
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -44551,7 +44601,7 @@ function getCloudDiscoveryMetadataFromNetworkResponse(response, authorityHost) {
44551
44601
  return null;
44552
44602
  }
44553
44603
 
44554
- /*! @azure/msal-common v15.16.1 2026-03-13 */
44604
+ /*! @azure/msal-common v15.17.0 2026-03-18 */
44555
44605
  /*
44556
44606
  * Copyright (c) Microsoft Corporation. All rights reserved.
44557
44607
  * Licensed under the MIT License.
@@ -44559,7 +44609,7 @@ function getCloudDiscoveryMetadataFromNetworkResponse(response, authorityHost) {
44559
44609
  const cacheQuotaExceeded = "cache_quota_exceeded";
44560
44610
  const cacheErrorUnknown = "cache_error_unknown";
44561
44611
 
44562
- /*! @azure/msal-common v15.16.1 2026-03-13 */
44612
+ /*! @azure/msal-common v15.17.0 2026-03-18 */
44563
44613
 
44564
44614
  /*
44565
44615
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -44604,7 +44654,7 @@ function createCacheError(e) {
44604
44654
  }
44605
44655
  }
44606
44656
 
44607
- /*! @azure/msal-common v15.16.1 2026-03-13 */
44657
+ /*! @azure/msal-common v15.17.0 2026-03-18 */
44608
44658
 
44609
44659
  /*
44610
44660
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -45714,7 +45764,7 @@ class DefaultStorageClass extends CacheManager {
45714
45764
  }
45715
45765
  }
45716
45766
 
45717
- /*! @azure/msal-common v15.16.1 2026-03-13 */
45767
+ /*! @azure/msal-common v15.17.0 2026-03-18 */
45718
45768
  /*
45719
45769
  * Copyright (c) Microsoft Corporation. All rights reserved.
45720
45770
  * Licensed under the MIT License.
@@ -45991,7 +46041,7 @@ const PerformanceEvents = {
45991
46041
  const PerformanceEventStatus = {
45992
46042
  InProgress: 1};
45993
46043
 
45994
- /*! @azure/msal-common v15.16.1 2026-03-13 */
46044
+ /*! @azure/msal-common v15.17.0 2026-03-18 */
45995
46045
 
45996
46046
  /*
45997
46047
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -46070,7 +46120,7 @@ class StubPerformanceClient {
46070
46120
  }
46071
46121
  }
46072
46122
 
46073
- /*! @azure/msal-common v15.16.1 2026-03-13 */
46123
+ /*! @azure/msal-common v15.17.0 2026-03-18 */
46074
46124
 
46075
46125
  /*
46076
46126
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -46170,7 +46220,7 @@ function isOidcProtocolMode(config) {
46170
46220
  return (config.authOptions.authority.options.protocolMode === ProtocolMode.OIDC);
46171
46221
  }
46172
46222
 
46173
- /*! @azure/msal-common v15.16.1 2026-03-13 */
46223
+ /*! @azure/msal-common v15.17.0 2026-03-18 */
46174
46224
  /*
46175
46225
  * Copyright (c) Microsoft Corporation. All rights reserved.
46176
46226
  * Licensed under the MIT License.
@@ -46180,7 +46230,7 @@ const CcsCredentialType = {
46180
46230
  UPN: "UPN",
46181
46231
  };
46182
46232
 
46183
- /*! @azure/msal-common v15.16.1 2026-03-13 */
46233
+ /*! @azure/msal-common v15.17.0 2026-03-18 */
46184
46234
  /*
46185
46235
  * Copyright (c) Microsoft Corporation. All rights reserved.
46186
46236
  * Licensed under the MIT License.
@@ -46228,9 +46278,10 @@ const BROKER_CLIENT_ID = "brk_client_id";
46228
46278
  const BROKER_REDIRECT_URI = "brk_redirect_uri";
46229
46279
  const INSTANCE_AWARE = "instance_aware";
46230
46280
  const EAR_JWK = "ear_jwk";
46231
- const EAR_JWE_CRYPTO = "ear_jwe_crypto";
46281
+ const EAR_JWE_CRYPTO = "ear_jwe_crypto";
46282
+ const CLI_DATA = "clidata";
46232
46283
 
46233
- /*! @azure/msal-common v15.16.1 2026-03-13 */
46284
+ /*! @azure/msal-common v15.17.0 2026-03-18 */
46234
46285
 
46235
46286
  /*
46236
46287
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -46496,6 +46547,12 @@ function addGrantType(parameters, grantType) {
46496
46547
  function addClientInfo(parameters) {
46497
46548
  parameters.set(CLIENT_INFO, "1");
46498
46549
  }
46550
+ /**
46551
+ * add clidata=1 to request to indicate client data support
46552
+ */
46553
+ function addCliData(parameters) {
46554
+ parameters.set(CLI_DATA, "1");
46555
+ }
46499
46556
  function addInstanceAware(parameters) {
46500
46557
  if (!parameters.has(INSTANCE_AWARE)) {
46501
46558
  parameters.set(INSTANCE_AWARE, "true");
@@ -46610,7 +46667,7 @@ function addPostBodyParameters(parameters, bodyParameters) {
46610
46667
  });
46611
46668
  }
46612
46669
 
46613
- /*! @azure/msal-common v15.16.1 2026-03-13 */
46670
+ /*! @azure/msal-common v15.17.0 2026-03-18 */
46614
46671
  /*
46615
46672
  * Copyright (c) Microsoft Corporation. All rights reserved.
46616
46673
  * Licensed under the MIT License.
@@ -46622,7 +46679,7 @@ function isOpenIdConfigResponse(response) {
46622
46679
  response.hasOwnProperty("jwks_uri"));
46623
46680
  }
46624
46681
 
46625
- /*! @azure/msal-common v15.16.1 2026-03-13 */
46682
+ /*! @azure/msal-common v15.17.0 2026-03-18 */
46626
46683
  /*
46627
46684
  * Copyright (c) Microsoft Corporation. All rights reserved.
46628
46685
  * Licensed under the MIT License.
@@ -46632,7 +46689,7 @@ function isCloudInstanceDiscoveryResponse(response) {
46632
46689
  response.hasOwnProperty("metadata"));
46633
46690
  }
46634
46691
 
46635
- /*! @azure/msal-common v15.16.1 2026-03-13 */
46692
+ /*! @azure/msal-common v15.17.0 2026-03-18 */
46636
46693
  /*
46637
46694
  * Copyright (c) Microsoft Corporation. All rights reserved.
46638
46695
  * Licensed under the MIT License.
@@ -46642,7 +46699,7 @@ function isCloudInstanceDiscoveryErrorResponse(response) {
46642
46699
  response.hasOwnProperty("error_description"));
46643
46700
  }
46644
46701
 
46645
- /*! @azure/msal-common v15.16.1 2026-03-13 */
46702
+ /*! @azure/msal-common v15.17.0 2026-03-18 */
46646
46703
  /*
46647
46704
  * Copyright (c) Microsoft Corporation. All rights reserved.
46648
46705
  * Licensed under the MIT License.
@@ -46738,7 +46795,7 @@ const invokeAsync = (callback, eventName, logger, telemetryClient, correlationId
46738
46795
  };
46739
46796
  };
46740
46797
 
46741
- /*! @azure/msal-common v15.16.1 2026-03-13 */
46798
+ /*! @azure/msal-common v15.17.0 2026-03-18 */
46742
46799
 
46743
46800
  /*
46744
46801
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -46844,7 +46901,7 @@ RegionDiscovery.IMDS_OPTIONS = {
46844
46901
  },
46845
46902
  };
46846
46903
 
46847
- /*! @azure/msal-common v15.16.1 2026-03-13 */
46904
+ /*! @azure/msal-common v15.17.0 2026-03-18 */
46848
46905
  /*
46849
46906
  * Copyright (c) Microsoft Corporation. All rights reserved.
46850
46907
  * Licensed under the MIT License.
@@ -46909,7 +46966,7 @@ function wasClockTurnedBack(cachedAt) {
46909
46966
  return cachedAtSec > nowSeconds();
46910
46967
  }
46911
46968
 
46912
- /*! @azure/msal-common v15.16.1 2026-03-13 */
46969
+ /*! @azure/msal-common v15.17.0 2026-03-18 */
46913
46970
 
46914
46971
  /*
46915
46972
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -47171,7 +47228,7 @@ function isAuthorityMetadataExpired(metadata) {
47171
47228
  return metadata.expiresAt <= nowSeconds();
47172
47229
  }
47173
47230
 
47174
- /*! @azure/msal-common v15.16.1 2026-03-13 */
47231
+ /*! @azure/msal-common v15.17.0 2026-03-18 */
47175
47232
 
47176
47233
  /*
47177
47234
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -48010,7 +48067,7 @@ function buildStaticAuthorityOptions(authOptions) {
48010
48067
  };
48011
48068
  }
48012
48069
 
48013
- /*! @azure/msal-common v15.16.1 2026-03-13 */
48070
+ /*! @azure/msal-common v15.17.0 2026-03-18 */
48014
48071
 
48015
48072
  /*
48016
48073
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -48041,7 +48098,7 @@ async function createDiscoveredInstance(authorityUri, networkClient, cacheManage
48041
48098
  }
48042
48099
  }
48043
48100
 
48044
- /*! @azure/msal-common v15.16.1 2026-03-13 */
48101
+ /*! @azure/msal-common v15.17.0 2026-03-18 */
48045
48102
 
48046
48103
  /*
48047
48104
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -48060,7 +48117,7 @@ class ServerError extends AuthError {
48060
48117
  }
48061
48118
  }
48062
48119
 
48063
- /*! @azure/msal-common v15.16.1 2026-03-13 */
48120
+ /*! @azure/msal-common v15.17.0 2026-03-18 */
48064
48121
  /*
48065
48122
  * Copyright (c) Microsoft Corporation. All rights reserved.
48066
48123
  * Licensed under the MIT License.
@@ -48081,7 +48138,7 @@ function getRequestThumbprint(clientId, request, homeAccountId) {
48081
48138
  };
48082
48139
  }
48083
48140
 
48084
- /*! @azure/msal-common v15.16.1 2026-03-13 */
48141
+ /*! @azure/msal-common v15.17.0 2026-03-18 */
48085
48142
 
48086
48143
  /*
48087
48144
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -48168,7 +48225,7 @@ class ThrottlingUtils {
48168
48225
  }
48169
48226
  }
48170
48227
 
48171
- /*! @azure/msal-common v15.16.1 2026-03-13 */
48228
+ /*! @azure/msal-common v15.17.0 2026-03-18 */
48172
48229
 
48173
48230
  /*
48174
48231
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -48199,7 +48256,7 @@ function createNetworkError(error, httpStatus, responseHeaders, additionalError)
48199
48256
  return new NetworkError(error, httpStatus, responseHeaders);
48200
48257
  }
48201
48258
 
48202
- /*! @azure/msal-common v15.16.1 2026-03-13 */
48259
+ /*! @azure/msal-common v15.17.0 2026-03-18 */
48203
48260
 
48204
48261
  /*
48205
48262
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -48347,7 +48404,7 @@ class BaseClient {
48347
48404
  }
48348
48405
  }
48349
48406
 
48350
- /*! @azure/msal-common v15.16.1 2026-03-13 */
48407
+ /*! @azure/msal-common v15.17.0 2026-03-18 */
48351
48408
  /*
48352
48409
  * Copyright (c) Microsoft Corporation. All rights reserved.
48353
48410
  * Licensed under the MIT License.
@@ -48398,7 +48455,7 @@ const badToken = "bad_token";
48398
48455
  */
48399
48456
  const interruptedUser = "interrupted_user";
48400
48457
 
48401
- /*! @azure/msal-common v15.16.1 2026-03-13 */
48458
+ /*! @azure/msal-common v15.17.0 2026-03-18 */
48402
48459
 
48403
48460
  /*
48404
48461
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -48473,7 +48530,7 @@ function createInteractionRequiredAuthError(errorCode) {
48473
48530
  return new InteractionRequiredAuthError(errorCode, InteractionRequiredAuthErrorMessages[errorCode]);
48474
48531
  }
48475
48532
 
48476
- /*! @azure/msal-common v15.16.1 2026-03-13 */
48533
+ /*! @azure/msal-common v15.17.0 2026-03-18 */
48477
48534
 
48478
48535
  /*
48479
48536
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -48545,7 +48602,7 @@ class ProtocolUtils {
48545
48602
  }
48546
48603
  }
48547
48604
 
48548
- /*! @azure/msal-common v15.16.1 2026-03-13 */
48605
+ /*! @azure/msal-common v15.17.0 2026-03-18 */
48549
48606
 
48550
48607
  /*
48551
48608
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -48627,7 +48684,7 @@ class PopTokenGenerator {
48627
48684
  }
48628
48685
  }
48629
48686
 
48630
- /*! @azure/msal-common v15.16.1 2026-03-13 */
48687
+ /*! @azure/msal-common v15.17.0 2026-03-18 */
48631
48688
  /*
48632
48689
  * Copyright (c) Microsoft Corporation. All rights reserved.
48633
48690
  * Licensed under the MIT License.
@@ -48654,7 +48711,7 @@ class PopTokenGenerator {
48654
48711
  }
48655
48712
  }
48656
48713
 
48657
- /*! @azure/msal-common v15.16.1 2026-03-13 */
48714
+ /*! @azure/msal-common v15.17.0 2026-03-18 */
48658
48715
 
48659
48716
  /*
48660
48717
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -48993,7 +49050,7 @@ function buildAccountToCache(cacheStorage, authority, homeAccountId, base64Decod
48993
49050
  return baseAccount;
48994
49051
  }
48995
49052
 
48996
- /*! @azure/msal-common v15.16.1 2026-03-13 */
49053
+ /*! @azure/msal-common v15.17.0 2026-03-18 */
48997
49054
  /*
48998
49055
  * Copyright (c) Microsoft Corporation. All rights reserved.
48999
49056
  * Licensed under the MIT License.
@@ -49011,7 +49068,7 @@ async function getClientAssertion(clientAssertion, clientId, tokenEndpoint) {
49011
49068
  }
49012
49069
  }
49013
49070
 
49014
- /*! @azure/msal-common v15.16.1 2026-03-13 */
49071
+ /*! @azure/msal-common v15.17.0 2026-03-18 */
49015
49072
 
49016
49073
  /*
49017
49074
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -49251,7 +49308,7 @@ class AuthorizationCodeClient extends BaseClient {
49251
49308
  }
49252
49309
  }
49253
49310
 
49254
- /*! @azure/msal-common v15.16.1 2026-03-13 */
49311
+ /*! @azure/msal-common v15.17.0 2026-03-18 */
49255
49312
 
49256
49313
  /*
49257
49314
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -49467,7 +49524,7 @@ class RefreshTokenClient extends BaseClient {
49467
49524
  }
49468
49525
  }
49469
49526
 
49470
- /*! @azure/msal-common v15.16.1 2026-03-13 */
49527
+ /*! @azure/msal-common v15.17.0 2026-03-18 */
49471
49528
 
49472
49529
  /*
49473
49530
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -49565,7 +49622,7 @@ class SilentFlowClient extends BaseClient {
49565
49622
  }
49566
49623
  }
49567
49624
 
49568
- /*! @azure/msal-common v15.16.1 2026-03-13 */
49625
+ /*! @azure/msal-common v15.17.0 2026-03-18 */
49569
49626
 
49570
49627
  /*
49571
49628
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -49580,7 +49637,7 @@ const StubbedNetworkModule = {
49580
49637
  },
49581
49638
  };
49582
49639
 
49583
- /*! @azure/msal-common v15.16.1 2026-03-13 */
49640
+ /*! @azure/msal-common v15.17.0 2026-03-18 */
49584
49641
 
49585
49642
  /*
49586
49643
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -49612,6 +49669,8 @@ function getStandardAuthorizeRequestParameters(authOptions, request, logger, per
49612
49669
  addResponseMode(parameters, request.responseMode);
49613
49670
  // add client_info=1
49614
49671
  addClientInfo(parameters);
49672
+ // add clidata=1
49673
+ addCliData(parameters);
49615
49674
  if (request.prompt) {
49616
49675
  addPrompt(parameters, request.prompt);
49617
49676
  performanceClient?.addFields({ prompt: request.prompt }, correlationId);
@@ -49807,7 +49866,7 @@ function extractLoginHint(account) {
49807
49866
  return account.loginHint || account.idTokenClaims?.login_hint || null;
49808
49867
  }
49809
49868
 
49810
- /*! @azure/msal-common v15.16.1 2026-03-13 */
49869
+ /*! @azure/msal-common v15.17.0 2026-03-18 */
49811
49870
 
49812
49871
  /*
49813
49872
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -50070,7 +50129,7 @@ class ServerTelemetryManager {
50070
50129
  }
50071
50130
  }
50072
50131
 
50073
- /*! @azure/msal-common v15.16.1 2026-03-13 */
50132
+ /*! @azure/msal-common v15.17.0 2026-03-18 */
50074
50133
  /*
50075
50134
  * Copyright (c) Microsoft Corporation. All rights reserved.
50076
50135
  * Licensed under the MIT License.
@@ -50078,7 +50137,7 @@ class ServerTelemetryManager {
50078
50137
  const missingKidError = "missing_kid_error";
50079
50138
  const missingAlgError = "missing_alg_error";
50080
50139
 
50081
- /*! @azure/msal-common v15.16.1 2026-03-13 */
50140
+ /*! @azure/msal-common v15.17.0 2026-03-18 */
50082
50141
 
50083
50142
  /*
50084
50143
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -50103,7 +50162,7 @@ function createJoseHeaderError(code) {
50103
50162
  return new JoseHeaderError(code, JoseHeaderErrorMessages[code]);
50104
50163
  }
50105
50164
 
50106
- /*! @azure/msal-common v15.16.1 2026-03-13 */
50165
+ /*! @azure/msal-common v15.17.0 2026-03-18 */
50107
50166
 
50108
50167
  /*
50109
50168
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -50143,7 +50202,7 @@ class JoseHeader {
50143
50202
  }
50144
50203
  }
50145
50204
 
50146
- /*! @azure/msal-browser v4.29.1 2026-03-13 */
50205
+ /*! @azure/msal-browser v4.30.0 2026-03-18 */
50147
50206
  /*
50148
50207
  * Copyright (c) Microsoft Corporation. All rights reserved.
50149
50208
  * Licensed under the MIT License.
@@ -50200,7 +50259,7 @@ const failedToParseHeaders = "failed_to_parse_headers";
50200
50259
  const failedToDecryptEarResponse = "failed_to_decrypt_ear_response";
50201
50260
  const timedOut = "timed_out";
50202
50261
 
50203
- /*! @azure/msal-browser v4.29.1 2026-03-13 */
50262
+ /*! @azure/msal-browser v4.30.0 2026-03-18 */
50204
50263
 
50205
50264
  /*
50206
50265
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -50277,7 +50336,7 @@ function createBrowserAuthError(errorCode, subError) {
50277
50336
  return new BrowserAuthError(errorCode, subError);
50278
50337
  }
50279
50338
 
50280
- /*! @azure/msal-browser v4.29.1 2026-03-13 */
50339
+ /*! @azure/msal-browser v4.30.0 2026-03-18 */
50281
50340
 
50282
50341
  /*
50283
50342
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -50466,7 +50525,7 @@ const iFrameRenewalPolicies = [
50466
50525
  CacheLookupPolicy.RefreshTokenAndNetwork,
50467
50526
  ];
50468
50527
 
50469
- /*! @azure/msal-browser v4.29.1 2026-03-13 */
50528
+ /*! @azure/msal-browser v4.30.0 2026-03-18 */
50470
50529
  /*
50471
50530
  * Copyright (c) Microsoft Corporation. All rights reserved.
50472
50531
  * Licensed under the MIT License.
@@ -50511,7 +50570,7 @@ function base64EncArr(aBytes) {
50511
50570
  return btoa(binString);
50512
50571
  }
50513
50572
 
50514
- /*! @azure/msal-browser v4.29.1 2026-03-13 */
50573
+ /*! @azure/msal-browser v4.30.0 2026-03-18 */
50515
50574
 
50516
50575
  /*
50517
50576
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -50550,7 +50609,7 @@ function base64DecToArr(base64String) {
50550
50609
  return Uint8Array.from(binString, (m) => m.codePointAt(0) || 0);
50551
50610
  }
50552
50611
 
50553
- /*! @azure/msal-browser v4.29.1 2026-03-13 */
50612
+ /*! @azure/msal-browser v4.30.0 2026-03-18 */
50554
50613
 
50555
50614
  /*
50556
50615
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -50849,7 +50908,7 @@ async function hashString(plainText) {
50849
50908
  return urlEncodeArr(hashBytes);
50850
50909
  }
50851
50910
 
50852
- /*! @azure/msal-browser v4.29.1 2026-03-13 */
50911
+ /*! @azure/msal-browser v4.30.0 2026-03-18 */
50853
50912
  /*
50854
50913
  * Copyright (c) Microsoft Corporation. All rights reserved.
50855
50914
  * Licensed under the MIT License.
@@ -50858,7 +50917,7 @@ const storageNotSupported = "storage_not_supported";
50858
50917
  const stubbedPublicClientApplicationCalled = "stubbed_public_client_application_called";
50859
50918
  const inMemRedirectUnavailable = "in_mem_redirect_unavailable";
50860
50919
 
50861
- /*! @azure/msal-browser v4.29.1 2026-03-13 */
50920
+ /*! @azure/msal-browser v4.30.0 2026-03-18 */
50862
50921
 
50863
50922
  /*
50864
50923
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -50898,7 +50957,7 @@ function createBrowserConfigurationAuthError(errorCode) {
50898
50957
  return new BrowserConfigurationAuthError(errorCode, BrowserConfigurationAuthErrorMessages[errorCode]);
50899
50958
  }
50900
50959
 
50901
- /*! @azure/msal-browser v4.29.1 2026-03-13 */
50960
+ /*! @azure/msal-browser v4.30.0 2026-03-18 */
50902
50961
 
50903
50962
  /*
50904
50963
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -51060,7 +51119,7 @@ function createGuid() {
51060
51119
  return createNewGuid();
51061
51120
  }
51062
51121
 
51063
- /*! @azure/msal-browser v4.29.1 2026-03-13 */
51122
+ /*! @azure/msal-browser v4.30.0 2026-03-18 */
51064
51123
 
51065
51124
  /*
51066
51125
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -51103,7 +51162,7 @@ class NavigationClient {
51103
51162
  }
51104
51163
  }
51105
51164
 
51106
- /*! @azure/msal-browser v4.29.1 2026-03-13 */
51165
+ /*! @azure/msal-browser v4.30.0 2026-03-18 */
51107
51166
 
51108
51167
  /*
51109
51168
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -51224,7 +51283,7 @@ function getHeaderDict(headers) {
51224
51283
  }
51225
51284
  }
51226
51285
 
51227
- /*! @azure/msal-browser v4.29.1 2026-03-13 */
51286
+ /*! @azure/msal-browser v4.30.0 2026-03-18 */
51228
51287
 
51229
51288
  /*
51230
51289
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -51360,12 +51419,12 @@ function buildConfiguration({ auth: userInputAuth, cache: userInputCache, system
51360
51419
  return overlayedConfig;
51361
51420
  }
51362
51421
 
51363
- /*! @azure/msal-browser v4.29.1 2026-03-13 */
51422
+ /*! @azure/msal-browser v4.30.0 2026-03-18 */
51364
51423
  /* eslint-disable header/header */
51365
51424
  const name$1 = "@azure/msal-browser";
51366
- const version = "4.29.1";
51425
+ const version = "4.30.0";
51367
51426
 
51368
- /*! @azure/msal-browser v4.29.1 2026-03-13 */
51427
+ /*! @azure/msal-browser v4.30.0 2026-03-18 */
51369
51428
  /*
51370
51429
  * Copyright (c) Microsoft Corporation. All rights reserved.
51371
51430
  * Licensed under the MIT License.
@@ -51393,7 +51452,7 @@ function getTokenKeysCacheKey(clientId, schema = CREDENTIAL_SCHEMA_VERSION) {
51393
51452
  return `${PREFIX}.${schema}.${TOKEN_KEYS}.${clientId}`;
51394
51453
  }
51395
51454
 
51396
- /*! @azure/msal-browser v4.29.1 2026-03-13 */
51455
+ /*! @azure/msal-browser v4.30.0 2026-03-18 */
51397
51456
 
51398
51457
  /*
51399
51458
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -51490,7 +51549,7 @@ class BaseOperatingContext {
51490
51549
  }
51491
51550
  }
51492
51551
 
51493
- /*! @azure/msal-browser v4.29.1 2026-03-13 */
51552
+ /*! @azure/msal-browser v4.30.0 2026-03-18 */
51494
51553
 
51495
51554
  /*
51496
51555
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -51536,7 +51595,7 @@ StandardOperatingContext.MODULE_NAME = "";
51536
51595
  */
51537
51596
  StandardOperatingContext.ID = "StandardOperatingContext";
51538
51597
 
51539
- /*! @azure/msal-browser v4.29.1 2026-03-13 */
51598
+ /*! @azure/msal-browser v4.30.0 2026-03-18 */
51540
51599
 
51541
51600
  /*
51542
51601
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -51739,7 +51798,7 @@ class DatabaseStorage {
51739
51798
  }
51740
51799
  }
51741
51800
 
51742
- /*! @azure/msal-browser v4.29.1 2026-03-13 */
51801
+ /*! @azure/msal-browser v4.30.0 2026-03-18 */
51743
51802
  /*
51744
51803
  * Copyright (c) Microsoft Corporation. All rights reserved.
51745
51804
  * Licensed under the MIT License.
@@ -51785,7 +51844,7 @@ class MemoryStorage {
51785
51844
  }
51786
51845
  }
51787
51846
 
51788
- /*! @azure/msal-browser v4.29.1 2026-03-13 */
51847
+ /*! @azure/msal-browser v4.30.0 2026-03-18 */
51789
51848
 
51790
51849
  /*
51791
51850
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -51919,7 +51978,7 @@ class AsyncMemoryStorage {
51919
51978
  }
51920
51979
  }
51921
51980
 
51922
- /*! @azure/msal-browser v4.29.1 2026-03-13 */
51981
+ /*! @azure/msal-browser v4.30.0 2026-03-18 */
51923
51982
 
51924
51983
  /*
51925
51984
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -52100,7 +52159,7 @@ function getSortedObjectString(obj) {
52100
52159
  return JSON.stringify(obj, Object.keys(obj).sort());
52101
52160
  }
52102
52161
 
52103
- /*! @azure/msal-browser v4.29.1 2026-03-13 */
52162
+ /*! @azure/msal-browser v4.30.0 2026-03-18 */
52104
52163
 
52105
52164
  /*
52106
52165
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -52178,7 +52237,7 @@ function getCookieExpirationTime(cookieLifeDays) {
52178
52237
  return expr.toUTCString();
52179
52238
  }
52180
52239
 
52181
- /*! @azure/msal-browser v4.29.1 2026-03-13 */
52240
+ /*! @azure/msal-browser v4.30.0 2026-03-18 */
52182
52241
 
52183
52242
  /*
52184
52243
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -52220,7 +52279,7 @@ function getTokenKeys(clientId, storage, schemaVersion) {
52220
52279
  };
52221
52280
  }
52222
52281
 
52223
- /*! @azure/msal-browser v4.29.1 2026-03-13 */
52282
+ /*! @azure/msal-browser v4.30.0 2026-03-18 */
52224
52283
  /*
52225
52284
  * Copyright (c) Microsoft Corporation. All rights reserved.
52226
52285
  * Licensed under the MIT License.
@@ -52231,7 +52290,7 @@ function isEncrypted(data) {
52231
52290
  data.hasOwnProperty("data"));
52232
52291
  }
52233
52292
 
52234
- /*! @azure/msal-browser v4.29.1 2026-03-13 */
52293
+ /*! @azure/msal-browser v4.30.0 2026-03-18 */
52235
52294
 
52236
52295
  /*
52237
52296
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -52521,7 +52580,7 @@ class LocalStorage {
52521
52580
  }
52522
52581
  }
52523
52582
 
52524
- /*! @azure/msal-browser v4.29.1 2026-03-13 */
52583
+ /*! @azure/msal-browser v4.30.0 2026-03-18 */
52525
52584
 
52526
52585
  /*
52527
52586
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -52563,7 +52622,7 @@ class SessionStorage {
52563
52622
  }
52564
52623
  }
52565
52624
 
52566
- /*! @azure/msal-browser v4.29.1 2026-03-13 */
52625
+ /*! @azure/msal-browser v4.30.0 2026-03-18 */
52567
52626
  /*
52568
52627
  * Copyright (c) Microsoft Corporation. All rights reserved.
52569
52628
  * Licensed under the MIT License.
@@ -52598,7 +52657,7 @@ const EventType = {
52598
52657
  BROKER_CONNECTION_ESTABLISHED: "msal:brokerConnectionEstablished",
52599
52658
  };
52600
52659
 
52601
- /*! @azure/msal-browser v4.29.1 2026-03-13 */
52660
+ /*! @azure/msal-browser v4.30.0 2026-03-18 */
52602
52661
  /*
52603
52662
  * Copyright (c) Microsoft Corporation. All rights reserved.
52604
52663
  * Licensed under the MIT License.
@@ -52615,7 +52674,7 @@ function removeElementFromArray(array, element) {
52615
52674
  }
52616
52675
  }
52617
52676
 
52618
- /*! @azure/msal-browser v4.29.1 2026-03-13 */
52677
+ /*! @azure/msal-browser v4.30.0 2026-03-18 */
52619
52678
 
52620
52679
  /*
52621
52680
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -54030,7 +54089,7 @@ const DEFAULT_BROWSER_CACHE_MANAGER = (clientId, logger, performanceClient, even
54030
54089
  return new BrowserCacheManager(clientId, cacheOptions, DEFAULT_CRYPTO_IMPLEMENTATION, logger, performanceClient, eventHandler);
54031
54090
  };
54032
54091
 
54033
- /*! @azure/msal-browser v4.29.1 2026-03-13 */
54092
+ /*! @azure/msal-browser v4.30.0 2026-03-18 */
54034
54093
  /*
54035
54094
  * Copyright (c) Microsoft Corporation. All rights reserved.
54036
54095
  * Licensed under the MIT License.
@@ -54155,7 +54214,7 @@ function getActiveAccount(browserStorage, correlationId) {
54155
54214
  return browserStorage.getActiveAccount(correlationId);
54156
54215
  }
54157
54216
 
54158
- /*! @azure/msal-browser v4.29.1 2026-03-13 */
54217
+ /*! @azure/msal-browser v4.30.0 2026-03-18 */
54159
54218
 
54160
54219
  /*
54161
54220
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -54261,7 +54320,7 @@ class EventHandler {
54261
54320
  }
54262
54321
  }
54263
54322
 
54264
- /*! @azure/msal-browser v4.29.1 2026-03-13 */
54323
+ /*! @azure/msal-browser v4.30.0 2026-03-18 */
54265
54324
 
54266
54325
  /*
54267
54326
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -54377,7 +54436,7 @@ class BaseInteractionClient {
54377
54436
  }
54378
54437
  }
54379
54438
 
54380
- /*! @azure/msal-browser v4.29.1 2026-03-13 */
54439
+ /*! @azure/msal-browser v4.30.0 2026-03-18 */
54381
54440
 
54382
54441
  /*
54383
54442
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -54462,7 +54521,7 @@ function validateRequestMethod(interactionRequest, protocolMode) {
54462
54521
  return httpMethod;
54463
54522
  }
54464
54523
 
54465
- /*! @azure/msal-browser v4.29.1 2026-03-13 */
54524
+ /*! @azure/msal-browser v4.30.0 2026-03-18 */
54466
54525
 
54467
54526
  /*
54468
54527
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -54670,7 +54729,7 @@ class StandardInteractionClient extends BaseInteractionClient {
54670
54729
  }
54671
54730
  }
54672
54731
 
54673
- /*! @azure/msal-browser v4.29.1 2026-03-13 */
54732
+ /*! @azure/msal-browser v4.30.0 2026-03-18 */
54674
54733
 
54675
54734
  /*
54676
54735
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -54694,7 +54753,7 @@ function extractBrowserRequestState(browserCrypto, state) {
54694
54753
  }
54695
54754
  }
54696
54755
 
54697
- /*! @azure/msal-browser v4.29.1 2026-03-13 */
54756
+ /*! @azure/msal-browser v4.30.0 2026-03-18 */
54698
54757
 
54699
54758
  /*
54700
54759
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -54733,7 +54792,7 @@ function validateInteractionType(response, browserCrypto, interactionType) {
54733
54792
  }
54734
54793
  }
54735
54794
 
54736
- /*! @azure/msal-browser v4.29.1 2026-03-13 */
54795
+ /*! @azure/msal-browser v4.30.0 2026-03-18 */
54737
54796
 
54738
54797
  /*
54739
54798
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -54829,7 +54888,7 @@ class InteractionHandler {
54829
54888
  }
54830
54889
  }
54831
54890
 
54832
- /*! @azure/msal-browser v4.29.1 2026-03-13 */
54891
+ /*! @azure/msal-browser v4.30.0 2026-03-18 */
54833
54892
  /*
54834
54893
  * Copyright (c) Microsoft Corporation. All rights reserved.
54835
54894
  * Licensed under the MIT License.
@@ -54838,7 +54897,7 @@ const contentError = "ContentError";
54838
54897
  const pageException = "PageException";
54839
54898
  const userSwitch = "user_switch";
54840
54899
 
54841
- /*! @azure/msal-browser v4.29.1 2026-03-13 */
54900
+ /*! @azure/msal-browser v4.30.0 2026-03-18 */
54842
54901
  /*
54843
54902
  * Copyright (c) Microsoft Corporation. All rights reserved.
54844
54903
  * Licensed under the MIT License.
@@ -54851,7 +54910,7 @@ const DISABLED = "DISABLED";
54851
54910
  const ACCOUNT_UNAVAILABLE = "ACCOUNT_UNAVAILABLE";
54852
54911
  const UX_NOT_ALLOWED = "UX_NOT_ALLOWED";
54853
54912
 
54854
- /*! @azure/msal-browser v4.29.1 2026-03-13 */
54913
+ /*! @azure/msal-browser v4.30.0 2026-03-18 */
54855
54914
 
54856
54915
  /*
54857
54916
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -54916,7 +54975,7 @@ function createNativeAuthError(code, description, ext) {
54916
54975
  return new NativeAuthError(code, NativeAuthErrorMessages[code] || description, ext);
54917
54976
  }
54918
54977
 
54919
- /*! @azure/msal-browser v4.29.1 2026-03-13 */
54978
+ /*! @azure/msal-browser v4.30.0 2026-03-18 */
54920
54979
 
54921
54980
  /*
54922
54981
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -54966,7 +55025,7 @@ class SilentCacheClient extends StandardInteractionClient {
54966
55025
  }
54967
55026
  }
54968
55027
 
54969
- /*! @azure/msal-browser v4.29.1 2026-03-13 */
55028
+ /*! @azure/msal-browser v4.30.0 2026-03-18 */
54970
55029
 
54971
55030
  /*
54972
55031
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -55460,11 +55519,19 @@ class PlatformAuthInteractionClient extends BaseInteractionClient {
55460
55519
  this.logger.trace("NativeInteractionClient - initializeNativeRequest called");
55461
55520
  const canonicalAuthority = await this.getCanonicalAuthority(request);
55462
55521
  // 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.
55463
- const { scopes, ...remainingProperties } = request;
55522
+ const { scopes, claims, ...remainingProperties } = request;
55464
55523
  const scopeSet = new ScopeSet(scopes || []);
55465
55524
  scopeSet.appendScopes(OIDC_DEFAULT_SCOPES);
55525
+ // ignore config claims if skipBrokerClaims is set to true and this is a brokered authentication flow
55526
+ const configClaims = request.skipBrokerClaims && !!request.embeddedClientId
55527
+ ? undefined
55528
+ : this.config.auth.clientCapabilities;
55529
+ const mergedClaims = configClaims && configClaims.length
55530
+ ? addClientCapabilitiesToClaims(claims, configClaims)
55531
+ : claims;
55466
55532
  const validatedRequest = {
55467
55533
  ...remainingProperties,
55534
+ claims: mergedClaims,
55468
55535
  accountId: this.accountId,
55469
55536
  clientId: this.config.auth.clientId,
55470
55537
  authority: canonicalAuthority.urlString,
@@ -55593,12 +55660,59 @@ class PlatformAuthInteractionClient extends BaseInteractionClient {
55593
55660
  }
55594
55661
  }
55595
55662
 
55596
- /*! @azure/msal-browser v4.29.1 2026-03-13 */
55663
+ /*! @azure/msal-browser v4.30.0 2026-03-18 */
55597
55664
 
55598
55665
  /*
55599
55666
  * Copyright (c) Microsoft Corporation. All rights reserved.
55600
55667
  * Licensed under the MIT License.
55601
55668
  */
55669
+ const clientDataAccountTypeMapping = new Map([
55670
+ ["e", "AAD"],
55671
+ ["m", "MSA"],
55672
+ ]);
55673
+ /**
55674
+ * Parses the clientdata response parameter from the /authorize endpoint.
55675
+ *
55676
+ * The clientdata value is URL-encoded and pipe-delimited:
55677
+ * urlencoded(account_type | error | sub_error | cloud_instance | caller_data_boundary)
55678
+ *
55679
+ * @param clientdata - The raw clientdata string from the authorize response
55680
+ * @returns Parsed ClientData object, or null if the input is empty/invalid
55681
+ */
55682
+ function parseClientData(clientdata) {
55683
+ if (!clientdata) {
55684
+ return null;
55685
+ }
55686
+ try {
55687
+ const decoded = decodeURIComponent(clientdata);
55688
+ const parts = decoded.split("|");
55689
+ if (parts.length < 5) {
55690
+ return null;
55691
+ }
55692
+ return {
55693
+ accountType: clientDataAccountTypeMapping.get(parts[0]?.trim() || "") || "",
55694
+ error: parts[1]?.trim() || "",
55695
+ subError: parts[2]?.trim() || "",
55696
+ cloudInstance: parts[3]?.trim() || "",
55697
+ callerDataBoundary: parts[4]?.trim() || "",
55698
+ };
55699
+ }
55700
+ catch {
55701
+ return null;
55702
+ }
55703
+ }
55704
+ /**
55705
+ * Instruments account type, error, and suberror from clientdata
55706
+ */
55707
+ function instrumentClientData(response, correlationId, performanceClient) {
55708
+ const parsed = parseClientData(response.clientdata);
55709
+ parsed?.accountType &&
55710
+ performanceClient.addFields({ accountType: parsed.accountType }, correlationId);
55711
+ parsed?.error &&
55712
+ performanceClient.addFields({ serverErrorNo: parsed.error }, correlationId);
55713
+ parsed?.subError &&
55714
+ performanceClient.addFields({ serverSubErrorNo: parsed.subError }, correlationId);
55715
+ }
55602
55716
  /**
55603
55717
  * Returns map of parameters that are applicable to all calls to /authorize whether using PKCE or EAR
55604
55718
  * @param config
@@ -55761,6 +55875,8 @@ async function handleResponsePlatformBroker(request, accountId, apiId, config, b
55761
55875
  async function handleResponseCode(request, response, codeVerifier, apiId, config, authClient, browserStorage, nativeStorage, eventHandler, logger, performanceClient, platformAuthProvider) {
55762
55876
  // Remove throttle if it exists
55763
55877
  ThrottlingUtils.removeThrottle(browserStorage, config.auth.clientId, request);
55878
+ // Instrument clientdata telemetry fields from the authorize response
55879
+ instrumentClientData(response, request.correlationId, performanceClient);
55764
55880
  if (response.accountId) {
55765
55881
  return invokeAsync(handleResponsePlatformBroker, PerformanceEvents.HandleResponsePlatformBroker, logger, performanceClient, request.correlationId)(request, response.accountId, apiId, config, browserStorage, nativeStorage, eventHandler, logger, performanceClient, platformAuthProvider);
55766
55882
  }
@@ -55793,6 +55909,8 @@ async function handleResponseCode(request, response, codeVerifier, apiId, config
55793
55909
  async function handleResponseEAR(request, response, apiId, config, authority, browserStorage, nativeStorage, eventHandler, logger, performanceClient, platformAuthProvider) {
55794
55910
  // Remove throttle if it exists
55795
55911
  ThrottlingUtils.removeThrottle(browserStorage, config.auth.clientId, request);
55912
+ // Instrument clientdata telemetry fields from the authorize response
55913
+ instrumentClientData(response, request.correlationId, performanceClient);
55796
55914
  // Validate state & check response for errors
55797
55915
  validateAuthorizationResponse(response, request.state);
55798
55916
  if (!response.ear_jwe) {
@@ -55822,7 +55940,7 @@ async function handleResponseEAR(request, response, apiId, config, authority, br
55822
55940
  return (await invokeAsync(responseHandler.handleServerTokenResponse.bind(responseHandler), PerformanceEvents.HandleServerTokenResponse, logger, performanceClient, request.correlationId)(decryptedData, authority, nowSeconds(), request, apiId, additionalData, undefined, undefined, undefined, undefined));
55823
55941
  }
55824
55942
 
55825
- /*! @azure/msal-browser v4.29.1 2026-03-13 */
55943
+ /*! @azure/msal-browser v4.30.0 2026-03-18 */
55826
55944
 
55827
55945
  /*
55828
55946
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -55879,7 +55997,7 @@ async function generateCodeChallengeFromVerifier(pkceCodeVerifier, performanceCl
55879
55997
  }
55880
55998
  }
55881
55999
 
55882
- /*! @azure/msal-browser v4.29.1 2026-03-13 */
56000
+ /*! @azure/msal-browser v4.30.0 2026-03-18 */
55883
56001
 
55884
56002
  /*
55885
56003
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -56144,7 +56262,7 @@ class PlatformAuthExtensionHandler {
56144
56262
  }
56145
56263
  }
56146
56264
 
56147
- /*! @azure/msal-browser v4.29.1 2026-03-13 */
56265
+ /*! @azure/msal-browser v4.30.0 2026-03-18 */
56148
56266
 
56149
56267
  /*
56150
56268
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -56295,7 +56413,7 @@ class PlatformAuthDOMHandler {
56295
56413
  }
56296
56414
  }
56297
56415
 
56298
- /*! @azure/msal-browser v4.29.1 2026-03-13 */
56416
+ /*! @azure/msal-browser v4.30.0 2026-03-18 */
56299
56417
  async function getPlatformAuthProvider(logger, performanceClient, correlationId, nativeBrokerHandshakeTimeout, enablePlatformBrokerDOMSupport) {
56300
56418
  logger.trace("getPlatformAuthProvider called", correlationId);
56301
56419
  logger.trace("Has client allowed platform auth via DOM API: " +
@@ -56360,7 +56478,7 @@ function isPlatformAuthAllowed(config, logger, platformAuthProvider, authenticat
56360
56478
  return true;
56361
56479
  }
56362
56480
 
56363
- /*! @azure/msal-browser v4.29.1 2026-03-13 */
56481
+ /*! @azure/msal-browser v4.30.0 2026-03-18 */
56364
56482
 
56365
56483
  /*
56366
56484
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -56857,7 +56975,7 @@ class PopupClient extends StandardInteractionClient {
56857
56975
  }
56858
56976
  }
56859
56977
 
56860
- /*! @azure/msal-browser v4.29.1 2026-03-13 */
56978
+ /*! @azure/msal-browser v4.30.0 2026-03-18 */
56861
56979
 
56862
56980
  /*
56863
56981
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -57297,7 +57415,7 @@ class RedirectClient extends StandardInteractionClient {
57297
57415
  }
57298
57416
  }
57299
57417
 
57300
- /*! @azure/msal-browser v4.29.1 2026-03-13 */
57418
+ /*! @azure/msal-browser v4.30.0 2026-03-18 */
57301
57419
 
57302
57420
  /*
57303
57421
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -57466,7 +57584,7 @@ function removeHiddenIframe(iframe) {
57466
57584
  }
57467
57585
  }
57468
57586
 
57469
- /*! @azure/msal-browser v4.29.1 2026-03-13 */
57587
+ /*! @azure/msal-browser v4.30.0 2026-03-18 */
57470
57588
 
57471
57589
  /*
57472
57590
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -57673,7 +57791,7 @@ class SilentIframeClient extends StandardInteractionClient {
57673
57791
  }
57674
57792
  }
57675
57793
 
57676
- /*! @azure/msal-browser v4.29.1 2026-03-13 */
57794
+ /*! @azure/msal-browser v4.30.0 2026-03-18 */
57677
57795
 
57678
57796
  /*
57679
57797
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -57739,7 +57857,7 @@ class SilentRefreshClient extends StandardInteractionClient {
57739
57857
  }
57740
57858
  }
57741
57859
 
57742
- /*! @azure/msal-browser v4.29.1 2026-03-13 */
57860
+ /*! @azure/msal-browser v4.30.0 2026-03-18 */
57743
57861
 
57744
57862
  /*
57745
57863
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -57953,7 +58071,7 @@ class TokenCache {
57953
58071
  }
57954
58072
  }
57955
58073
 
57956
- /*! @azure/msal-browser v4.29.1 2026-03-13 */
58074
+ /*! @azure/msal-browser v4.30.0 2026-03-18 */
57957
58075
 
57958
58076
  /*
57959
58077
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -57966,7 +58084,7 @@ class HybridSpaAuthorizationCodeClient extends AuthorizationCodeClient {
57966
58084
  }
57967
58085
  }
57968
58086
 
57969
- /*! @azure/msal-browser v4.29.1 2026-03-13 */
58087
+ /*! @azure/msal-browser v4.30.0 2026-03-18 */
57970
58088
 
57971
58089
  /*
57972
58090
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -58032,7 +58150,7 @@ class SilentAuthCodeClient extends StandardInteractionClient {
58032
58150
  }
58033
58151
  }
58034
58152
 
58035
- /*! @azure/msal-browser v4.29.1 2026-03-13 */
58153
+ /*! @azure/msal-browser v4.30.0 2026-03-18 */
58036
58154
  function collectInstanceStats(currentClientId, performanceEvent, logger) {
58037
58155
  const frameInstances =
58038
58156
  // @ts-ignore
@@ -58048,7 +58166,7 @@ function collectInstanceStats(currentClientId, performanceEvent, logger) {
58048
58166
  });
58049
58167
  }
58050
58168
 
58051
- /*! @azure/msal-browser v4.29.1 2026-03-13 */
58169
+ /*! @azure/msal-browser v4.30.0 2026-03-18 */
58052
58170
 
58053
58171
  /*
58054
58172
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -59590,7 +59708,7 @@ function checkIfRefreshTokenErrorCanBeResolvedSilently(refreshTokenError, cacheL
59590
59708
  return isSilentlyResolvable && tryIframeRenewal;
59591
59709
  }
59592
59710
 
59593
- /*! @azure/msal-browser v4.29.1 2026-03-13 */
59711
+ /*! @azure/msal-browser v4.30.0 2026-03-18 */
59594
59712
 
59595
59713
  /*
59596
59714
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -59602,7 +59720,7 @@ async function createV3Controller(config, request) {
59602
59720
  return StandardController.createController(standard, request);
59603
59721
  }
59604
59722
 
59605
- /*! @azure/msal-browser v4.29.1 2026-03-13 */
59723
+ /*! @azure/msal-browser v4.30.0 2026-03-18 */
59606
59724
 
59607
59725
  /*
59608
59726
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -59975,33 +60093,35 @@ var checkInit = () => {
59975
60093
  return true;
59976
60094
  };
59977
60095
  var getActiveAccountFromMSAL = () => {
60096
+ var _URL, _config;
59978
60097
  var accountId = readFromStorage('authAccountId');
59979
- if (!accountId) {
59980
- return;
59981
- }
59982
- var allAccounts = msalApp.getAllAccounts();
59983
- if (!allAccounts.length === 0) {
59984
- console.warn('WARNING: no accounts found, please log in');
59985
- return;
59986
- }
59987
- var account = allAccounts.find(account => account.homeAccountId === accountId);
59988
- if (account === undefined) {
59989
- console.warn("WARNING: no account found with id \"".concat(accountId, "\", cannot retrieve account"));
60098
+ if (!accountId) return;
60099
+ 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;
60100
+ var accountFilter = {
60101
+ homeAccountId: accountId,
60102
+ environment: expectedAccountEnvironment
60103
+ };
60104
+ var account = msalApp.getAccount(accountFilter);
60105
+ if (account == null) {
60106
+ console.warn("WARNING: no account found with the provided account filter");
59990
60107
  return;
59991
60108
  }
59992
60109
  return account;
59993
60110
  };
59994
60111
  var redirectOnAuthSuccess = () => {
59995
- var _config$msalConfig$au, _config;
59996
- 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 : '/';
60112
+ var _config$msalConfig$au, _config2;
60113
+ 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 : '/';
59997
60114
  };
59998
60115
  var _acquireTokensByRequestAndAccount = /*#__PURE__*/function () {
59999
60116
  var _ref2 = _asyncToGenerator(function* (tokenReq, account) {
60117
+ var _tokenReq, _tokenReq$forceRefres;
60118
+ var forceRefresh = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false;
60000
60119
  if (!tokenReq) {
60001
60120
  console.warn('No token request provided');
60002
60121
  tokenReq = {};
60003
60122
  }
60004
60123
  tokenReq.account = account;
60124
+ (_tokenReq$forceRefres = (_tokenReq = tokenReq).forceRefresh) !== null && _tokenReq$forceRefres !== void 0 ? _tokenReq$forceRefres : _tokenReq.forceRefresh = forceRefresh;
60005
60125
  return yield msalApp.acquireTokenSilent(tokenReq).then(tokenRes => tokenRes).catch(silentTokenFetchError => {
60006
60126
  var _silentTokenFetchErro;
60007
60127
  if (silentTokenFetchError.errorCode === 'no_tokens_found') {
@@ -60037,8 +60157,8 @@ var acquireTokens = /*#__PURE__*/function () {
60037
60157
  };
60038
60158
  }
60039
60159
  var account = getActiveAccountFromMSAL();
60040
- if (account === undefined) return;
60041
- var tokens = yield _acquireTokensByRequestAndAccount(config.accessRequest, account);
60160
+ if (account == null) return;
60161
+ var tokens = yield _acquireTokensByRequestAndAccount(config.accessRequest, account, forceRefresh);
60042
60162
  _updateTokensInStorage(tokens);
60043
60163
  return tokens;
60044
60164
  });
@@ -60073,17 +60193,20 @@ var signIn = () => {
60073
60193
  }, 50);
60074
60194
  return msalApp.handleRedirectPromise().then(handleResponse);
60075
60195
  };
60076
- var signOut = () => {
60077
- var _authData$accountId;
60078
- if (!checkInit()) return;
60079
- var accountId = readFromStorage('authAccountId');
60080
- var idToken = readFromStorage('authIdToken');
60196
+ var clearStorageSessionData = () => {
60081
60197
  clearFromStorage('authIdTokenPopup');
60082
60198
  clearFromStorage('authIdToken');
60083
60199
  clearFromStorage('authAccessToken');
60084
60200
  clearFromStorage('authAccountId');
60085
60201
  clearFromStorage('authEmail');
60086
60202
  writeToStorage('authAuthenticated', 'false');
60203
+ };
60204
+ var signOut = () => {
60205
+ var _authData$accountId;
60206
+ if (!checkInit()) return;
60207
+ var accountId = readFromStorage('authAccountId');
60208
+ var idToken = readFromStorage('authIdToken');
60209
+ clearStorageSessionData();
60087
60210
  var logoutRequest = {
60088
60211
  account: msalApp.getAccountByHomeId((_authData$accountId = authData.accountId) !== null && _authData$accountId !== void 0 ? _authData$accountId : accountId),
60089
60212
  idTokenHint: idToken
@@ -60103,12 +60226,12 @@ var _updateTokensInStorage = tokens => {
60103
60226
  }
60104
60227
  };
60105
60228
  var _extractRolesFromAccessToken = accessToken => {
60106
- var _config2;
60229
+ var _config3;
60107
60230
  if (!accessToken) return [];
60108
60231
  var decodedToken = JSON.parse(atob(accessToken.split('.')[1]));
60109
60232
  // The exact key to use may depend from keycloak client & Cosmo Tech API configuration (c.f. the value of
60110
60233
  // csm.platform.authorization.roles-jwt-claim in your k8s tenant secrets)
60111
- var rolesTokenAttribute = (_config2 = config) === null || _config2 === void 0 ? void 0 : _config2.rolesJwtClaim;
60234
+ var rolesTokenAttribute = (_config3 = config) === null || _config3 === void 0 ? void 0 : _config3.rolesJwtClaim;
60112
60235
  if (rolesTokenAttribute) {
60113
60236
  if (decodedToken !== null && decodedToken !== void 0 && decodedToken[rolesTokenAttribute]) return decodedToken === null || decodedToken === void 0 ? void 0 : decodedToken[rolesTokenAttribute];
60114
60237
  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.');
@@ -60125,12 +60248,16 @@ var _extractRolesFromAccessToken = accessToken => {
60125
60248
  var isUserSignedIn = /*#__PURE__*/function () {
60126
60249
  var _ref4 = _asyncToGenerator(function* () {
60127
60250
  if (readFromStorage('authAuthenticated') === 'true') {
60128
- // Restore roles from access token if necessary (roles in auhtData may be lost after login redirection)
60129
- if (authData.roles.length === 0) {
60130
- var accessToken = readFromStorage('authAccessToken');
60131
- if (accessToken) authData.roles = _extractRolesFromAccessToken(accessToken);
60251
+ if (getActiveAccountFromMSAL() != null) {
60252
+ // Restore roles from access token if necessary (roles in authData may be lost after login redirection)
60253
+ if (authData.roles.length === 0) {
60254
+ var accessToken = readFromStorage('authAccessToken');
60255
+ if (accessToken) authData.roles = _extractRolesFromAccessToken(accessToken);
60256
+ }
60257
+ return true;
60132
60258
  }
60133
- return true;
60259
+ // No valid session found despite authAuthenticated being true, clear local session data before resuming
60260
+ clearStorageSessionData();
60134
60261
  }
60135
60262
  try {
60136
60263
  // Resume interaction if one is already in progress
@@ -60138,12 +60265,12 @@ var isUserSignedIn = /*#__PURE__*/function () {
60138
60265
  clearFromStorage('authInteractionInProgress');
60139
60266
  var locationHashParameters = new URLSearchParams(window.location.hash.substring(1));
60140
60267
  if (locationHashParameters.has('state')) {
60141
- var _config3;
60142
- 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)) {
60268
+ var _config4;
60269
+ 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)) {
60143
60270
  msalApp.handleRedirectPromise().then(handleResponse); // Resume redirect workflow process
60144
60271
  } else if (locationHashParameters.has('iss')) {
60145
- var _config4;
60146
- 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;
60272
+ var _config5;
60273
+ 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;
60147
60274
  var urlIssuer = locationHashParameters.get('iss');
60148
60275
  console.warn("Issuer found in url \"".concat(urlIssuer, "\" does not match keycloak configuration: \"").concat(configIssuer, "\""));
60149
60276
  }