@ory/elements-react 1.0.0-next.0 → 1.0.0-next.2

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.
@@ -29,9 +29,9 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
29
29
  mod
30
30
  ));
31
31
 
32
- // ../../node_modules/react-is/cjs/react-is.production.min.js
32
+ // ../../node_modules/hoist-non-react-statics/node_modules/react-is/cjs/react-is.production.min.js
33
33
  var require_react_is_production_min = __commonJS({
34
- "../../node_modules/react-is/cjs/react-is.production.min.js"(exports) {
34
+ "../../node_modules/hoist-non-react-statics/node_modules/react-is/cjs/react-is.production.min.js"(exports) {
35
35
  "use strict";
36
36
  var b = "function" === typeof Symbol && Symbol.for;
37
37
  var c = b ? Symbol.for("react.element") : 60103;
@@ -142,9 +142,9 @@ var require_react_is_production_min = __commonJS({
142
142
  }
143
143
  });
144
144
 
145
- // ../../node_modules/react-is/cjs/react-is.development.js
145
+ // ../../node_modules/hoist-non-react-statics/node_modules/react-is/cjs/react-is.development.js
146
146
  var require_react_is_development = __commonJS({
147
- "../../node_modules/react-is/cjs/react-is.development.js"(exports) {
147
+ "../../node_modules/hoist-non-react-statics/node_modules/react-is/cjs/react-is.development.js"(exports) {
148
148
  "use strict";
149
149
  if (process.env.NODE_ENV !== "production") {
150
150
  (function() {
@@ -297,9 +297,9 @@ var require_react_is_development = __commonJS({
297
297
  }
298
298
  });
299
299
 
300
- // ../../node_modules/react-is/index.js
300
+ // ../../node_modules/hoist-non-react-statics/node_modules/react-is/index.js
301
301
  var require_react_is = __commonJS({
302
- "../../node_modules/react-is/index.js"(exports, module) {
302
+ "../../node_modules/hoist-non-react-statics/node_modules/react-is/index.js"(exports, module) {
303
303
  "use strict";
304
304
  if (process.env.NODE_ENV === "production") {
305
305
  module.exports = require_react_is_production_min();
@@ -432,7 +432,7 @@ function DefaultCardContent({ children }) {
432
432
  }
433
433
 
434
434
  // src/theme/default/components/card/footer.tsx
435
- import { useSearchParams } from "next/navigation";
435
+ import { FlowType } from "@ory/client-fetch";
436
436
 
437
437
  // ../../node_modules/tslib/tslib.es6.mjs
438
438
  var extendStatics = function(d, b) {
@@ -496,7 +496,7 @@ import * as React4 from "react";
496
496
  // ../../node_modules/react-intl/lib/src/utils.js
497
497
  import * as React3 from "react";
498
498
 
499
- // ../../node_modules/@formatjs/ecma402-abstract/lib/utils.js
499
+ // ../../node_modules/react-intl/node_modules/@formatjs/ecma402-abstract/lib/utils.js
500
500
  function invariant(condition, message, Err) {
501
501
  if (Err === void 0) {
502
502
  Err = Error;
@@ -506,54 +506,54 @@ function invariant(condition, message, Err) {
506
506
  }
507
507
  }
508
508
 
509
- // ../../node_modules/@formatjs/icu-messageformat-parser/lib/error.js
509
+ // ../../node_modules/intl-messageformat/node_modules/@formatjs/icu-messageformat-parser/lib/error.js
510
510
  var ErrorKind;
511
- (function(ErrorKind2) {
512
- ErrorKind2[ErrorKind2["EXPECT_ARGUMENT_CLOSING_BRACE"] = 1] = "EXPECT_ARGUMENT_CLOSING_BRACE";
513
- ErrorKind2[ErrorKind2["EMPTY_ARGUMENT"] = 2] = "EMPTY_ARGUMENT";
514
- ErrorKind2[ErrorKind2["MALFORMED_ARGUMENT"] = 3] = "MALFORMED_ARGUMENT";
515
- ErrorKind2[ErrorKind2["EXPECT_ARGUMENT_TYPE"] = 4] = "EXPECT_ARGUMENT_TYPE";
516
- ErrorKind2[ErrorKind2["INVALID_ARGUMENT_TYPE"] = 5] = "INVALID_ARGUMENT_TYPE";
517
- ErrorKind2[ErrorKind2["EXPECT_ARGUMENT_STYLE"] = 6] = "EXPECT_ARGUMENT_STYLE";
518
- ErrorKind2[ErrorKind2["INVALID_NUMBER_SKELETON"] = 7] = "INVALID_NUMBER_SKELETON";
519
- ErrorKind2[ErrorKind2["INVALID_DATE_TIME_SKELETON"] = 8] = "INVALID_DATE_TIME_SKELETON";
520
- ErrorKind2[ErrorKind2["EXPECT_NUMBER_SKELETON"] = 9] = "EXPECT_NUMBER_SKELETON";
521
- ErrorKind2[ErrorKind2["EXPECT_DATE_TIME_SKELETON"] = 10] = "EXPECT_DATE_TIME_SKELETON";
522
- ErrorKind2[ErrorKind2["UNCLOSED_QUOTE_IN_ARGUMENT_STYLE"] = 11] = "UNCLOSED_QUOTE_IN_ARGUMENT_STYLE";
523
- ErrorKind2[ErrorKind2["EXPECT_SELECT_ARGUMENT_OPTIONS"] = 12] = "EXPECT_SELECT_ARGUMENT_OPTIONS";
524
- ErrorKind2[ErrorKind2["EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE"] = 13] = "EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE";
525
- ErrorKind2[ErrorKind2["INVALID_PLURAL_ARGUMENT_OFFSET_VALUE"] = 14] = "INVALID_PLURAL_ARGUMENT_OFFSET_VALUE";
526
- ErrorKind2[ErrorKind2["EXPECT_SELECT_ARGUMENT_SELECTOR"] = 15] = "EXPECT_SELECT_ARGUMENT_SELECTOR";
527
- ErrorKind2[ErrorKind2["EXPECT_PLURAL_ARGUMENT_SELECTOR"] = 16] = "EXPECT_PLURAL_ARGUMENT_SELECTOR";
528
- ErrorKind2[ErrorKind2["EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT"] = 17] = "EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT";
529
- ErrorKind2[ErrorKind2["EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT"] = 18] = "EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT";
530
- ErrorKind2[ErrorKind2["INVALID_PLURAL_ARGUMENT_SELECTOR"] = 19] = "INVALID_PLURAL_ARGUMENT_SELECTOR";
531
- ErrorKind2[ErrorKind2["DUPLICATE_PLURAL_ARGUMENT_SELECTOR"] = 20] = "DUPLICATE_PLURAL_ARGUMENT_SELECTOR";
532
- ErrorKind2[ErrorKind2["DUPLICATE_SELECT_ARGUMENT_SELECTOR"] = 21] = "DUPLICATE_SELECT_ARGUMENT_SELECTOR";
533
- ErrorKind2[ErrorKind2["MISSING_OTHER_CLAUSE"] = 22] = "MISSING_OTHER_CLAUSE";
534
- ErrorKind2[ErrorKind2["INVALID_TAG"] = 23] = "INVALID_TAG";
535
- ErrorKind2[ErrorKind2["INVALID_TAG_NAME"] = 25] = "INVALID_TAG_NAME";
536
- ErrorKind2[ErrorKind2["UNMATCHED_CLOSING_TAG"] = 26] = "UNMATCHED_CLOSING_TAG";
537
- ErrorKind2[ErrorKind2["UNCLOSED_TAG"] = 27] = "UNCLOSED_TAG";
511
+ (function(ErrorKind3) {
512
+ ErrorKind3[ErrorKind3["EXPECT_ARGUMENT_CLOSING_BRACE"] = 1] = "EXPECT_ARGUMENT_CLOSING_BRACE";
513
+ ErrorKind3[ErrorKind3["EMPTY_ARGUMENT"] = 2] = "EMPTY_ARGUMENT";
514
+ ErrorKind3[ErrorKind3["MALFORMED_ARGUMENT"] = 3] = "MALFORMED_ARGUMENT";
515
+ ErrorKind3[ErrorKind3["EXPECT_ARGUMENT_TYPE"] = 4] = "EXPECT_ARGUMENT_TYPE";
516
+ ErrorKind3[ErrorKind3["INVALID_ARGUMENT_TYPE"] = 5] = "INVALID_ARGUMENT_TYPE";
517
+ ErrorKind3[ErrorKind3["EXPECT_ARGUMENT_STYLE"] = 6] = "EXPECT_ARGUMENT_STYLE";
518
+ ErrorKind3[ErrorKind3["INVALID_NUMBER_SKELETON"] = 7] = "INVALID_NUMBER_SKELETON";
519
+ ErrorKind3[ErrorKind3["INVALID_DATE_TIME_SKELETON"] = 8] = "INVALID_DATE_TIME_SKELETON";
520
+ ErrorKind3[ErrorKind3["EXPECT_NUMBER_SKELETON"] = 9] = "EXPECT_NUMBER_SKELETON";
521
+ ErrorKind3[ErrorKind3["EXPECT_DATE_TIME_SKELETON"] = 10] = "EXPECT_DATE_TIME_SKELETON";
522
+ ErrorKind3[ErrorKind3["UNCLOSED_QUOTE_IN_ARGUMENT_STYLE"] = 11] = "UNCLOSED_QUOTE_IN_ARGUMENT_STYLE";
523
+ ErrorKind3[ErrorKind3["EXPECT_SELECT_ARGUMENT_OPTIONS"] = 12] = "EXPECT_SELECT_ARGUMENT_OPTIONS";
524
+ ErrorKind3[ErrorKind3["EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE"] = 13] = "EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE";
525
+ ErrorKind3[ErrorKind3["INVALID_PLURAL_ARGUMENT_OFFSET_VALUE"] = 14] = "INVALID_PLURAL_ARGUMENT_OFFSET_VALUE";
526
+ ErrorKind3[ErrorKind3["EXPECT_SELECT_ARGUMENT_SELECTOR"] = 15] = "EXPECT_SELECT_ARGUMENT_SELECTOR";
527
+ ErrorKind3[ErrorKind3["EXPECT_PLURAL_ARGUMENT_SELECTOR"] = 16] = "EXPECT_PLURAL_ARGUMENT_SELECTOR";
528
+ ErrorKind3[ErrorKind3["EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT"] = 17] = "EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT";
529
+ ErrorKind3[ErrorKind3["EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT"] = 18] = "EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT";
530
+ ErrorKind3[ErrorKind3["INVALID_PLURAL_ARGUMENT_SELECTOR"] = 19] = "INVALID_PLURAL_ARGUMENT_SELECTOR";
531
+ ErrorKind3[ErrorKind3["DUPLICATE_PLURAL_ARGUMENT_SELECTOR"] = 20] = "DUPLICATE_PLURAL_ARGUMENT_SELECTOR";
532
+ ErrorKind3[ErrorKind3["DUPLICATE_SELECT_ARGUMENT_SELECTOR"] = 21] = "DUPLICATE_SELECT_ARGUMENT_SELECTOR";
533
+ ErrorKind3[ErrorKind3["MISSING_OTHER_CLAUSE"] = 22] = "MISSING_OTHER_CLAUSE";
534
+ ErrorKind3[ErrorKind3["INVALID_TAG"] = 23] = "INVALID_TAG";
535
+ ErrorKind3[ErrorKind3["INVALID_TAG_NAME"] = 25] = "INVALID_TAG_NAME";
536
+ ErrorKind3[ErrorKind3["UNMATCHED_CLOSING_TAG"] = 26] = "UNMATCHED_CLOSING_TAG";
537
+ ErrorKind3[ErrorKind3["UNCLOSED_TAG"] = 27] = "UNCLOSED_TAG";
538
538
  })(ErrorKind || (ErrorKind = {}));
539
539
 
540
- // ../../node_modules/@formatjs/icu-messageformat-parser/lib/types.js
540
+ // ../../node_modules/intl-messageformat/node_modules/@formatjs/icu-messageformat-parser/lib/types.js
541
541
  var TYPE;
542
- (function(TYPE2) {
543
- TYPE2[TYPE2["literal"] = 0] = "literal";
544
- TYPE2[TYPE2["argument"] = 1] = "argument";
545
- TYPE2[TYPE2["number"] = 2] = "number";
546
- TYPE2[TYPE2["date"] = 3] = "date";
547
- TYPE2[TYPE2["time"] = 4] = "time";
548
- TYPE2[TYPE2["select"] = 5] = "select";
549
- TYPE2[TYPE2["plural"] = 6] = "plural";
550
- TYPE2[TYPE2["pound"] = 7] = "pound";
551
- TYPE2[TYPE2["tag"] = 8] = "tag";
542
+ (function(TYPE3) {
543
+ TYPE3[TYPE3["literal"] = 0] = "literal";
544
+ TYPE3[TYPE3["argument"] = 1] = "argument";
545
+ TYPE3[TYPE3["number"] = 2] = "number";
546
+ TYPE3[TYPE3["date"] = 3] = "date";
547
+ TYPE3[TYPE3["time"] = 4] = "time";
548
+ TYPE3[TYPE3["select"] = 5] = "select";
549
+ TYPE3[TYPE3["plural"] = 6] = "plural";
550
+ TYPE3[TYPE3["pound"] = 7] = "pound";
551
+ TYPE3[TYPE3["tag"] = 8] = "tag";
552
552
  })(TYPE || (TYPE = {}));
553
553
  var SKELETON_TYPE;
554
- (function(SKELETON_TYPE2) {
555
- SKELETON_TYPE2[SKELETON_TYPE2["number"] = 0] = "number";
556
- SKELETON_TYPE2[SKELETON_TYPE2["dateTime"] = 1] = "dateTime";
554
+ (function(SKELETON_TYPE3) {
555
+ SKELETON_TYPE3[SKELETON_TYPE3["number"] = 0] = "number";
556
+ SKELETON_TYPE3[SKELETON_TYPE3["dateTime"] = 1] = "dateTime";
557
557
  })(SKELETON_TYPE || (SKELETON_TYPE = {}));
558
558
  function isLiteralElement(el) {
559
559
  return el.type === TYPE.literal;
@@ -589,10 +589,10 @@ function isDateTimeSkeleton(el) {
589
589
  return !!(el && typeof el === "object" && el.type === SKELETON_TYPE.dateTime);
590
590
  }
591
591
 
592
- // ../../node_modules/@formatjs/icu-messageformat-parser/lib/regex.generated.js
592
+ // ../../node_modules/intl-messageformat/node_modules/@formatjs/icu-messageformat-parser/lib/regex.generated.js
593
593
  var SPACE_SEPARATOR_REGEX = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/;
594
594
 
595
- // ../../node_modules/@formatjs/icu-skeleton-parser/lib/date-time.js
595
+ // ../../node_modules/intl-messageformat/node_modules/@formatjs/icu-skeleton-parser/lib/date-time.js
596
596
  var DATE_TIME_REGEX = /(?:[Eec]{1,6}|G{1,5}|[Qq]{1,5}|(?:[yYur]+|U{1,5})|[ML]{1,5}|d{1,2}|D{1,3}|F{1}|[abB]{1,5}|[hkHK]{1,2}|w{1,2}|W{1}|m{1,2}|s{1,2}|[zZOvVxX]{1,4})(?=([^']*'[^']*')*[^']*$)/g;
597
597
  function parseDateTimeSkeleton(skeleton) {
598
598
  var result = {};
@@ -693,10 +693,10 @@ function parseDateTimeSkeleton(skeleton) {
693
693
  return result;
694
694
  }
695
695
 
696
- // ../../node_modules/@formatjs/icu-skeleton-parser/lib/regex.generated.js
696
+ // ../../node_modules/intl-messageformat/node_modules/@formatjs/icu-skeleton-parser/lib/regex.generated.js
697
697
  var WHITE_SPACE_REGEX = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
698
698
 
699
- // ../../node_modules/@formatjs/icu-skeleton-parser/lib/number.js
699
+ // ../../node_modules/intl-messageformat/node_modules/@formatjs/icu-skeleton-parser/lib/number.js
700
700
  function parseNumberSkeletonFromString(skeleton) {
701
701
  if (skeleton.length === 0) {
702
702
  throw new Error("Number skeleton cannot be empty");
@@ -712,8 +712,8 @@ function parseNumberSkeletonFromString(skeleton) {
712
712
  throw new Error("Invalid number skeleton");
713
713
  }
714
714
  var stem = stemAndOptions[0], options = stemAndOptions.slice(1);
715
- for (var _a2 = 0, options_1 = options; _a2 < options_1.length; _a2++) {
716
- var option = options_1[_a2];
715
+ for (var _a3 = 0, options_1 = options; _a3 < options_1.length; _a3++) {
716
+ var option = options_1[_a3];
717
717
  if (option.length === 0) {
718
718
  throw new Error("Invalid number skeleton");
719
719
  }
@@ -962,7 +962,7 @@ function parseNumberSkeleton(tokens) {
962
962
  return result;
963
963
  }
964
964
 
965
- // ../../node_modules/@formatjs/icu-messageformat-parser/lib/time-data.generated.js
965
+ // ../../node_modules/intl-messageformat/node_modules/@formatjs/icu-messageformat-parser/lib/time-data.generated.js
966
966
  var timeData = {
967
967
  "001": [
968
968
  "H",
@@ -2301,7 +2301,7 @@ var timeData = {
2301
2301
  ]
2302
2302
  };
2303
2303
 
2304
- // ../../node_modules/@formatjs/icu-messageformat-parser/lib/date-time-pattern-generator.js
2304
+ // ../../node_modules/intl-messageformat/node_modules/@formatjs/icu-messageformat-parser/lib/date-time-pattern-generator.js
2305
2305
  function getBestPattern(skeleton, locale) {
2306
2306
  var skeletonCopy = "";
2307
2307
  for (var patternPos = 0; patternPos < skeleton.length; patternPos++) {
@@ -2363,7 +2363,7 @@ function getDefaultHourSymbolFromLocale(locale) {
2363
2363
  return hourCycles[0];
2364
2364
  }
2365
2365
 
2366
- // ../../node_modules/@formatjs/icu-messageformat-parser/lib/parser.js
2366
+ // ../../node_modules/intl-messageformat/node_modules/@formatjs/icu-messageformat-parser/lib/parser.js
2367
2367
  var _a;
2368
2368
  var SPACE_SEPARATOR_START_REGEX = new RegExp("^".concat(SPACE_SEPARATOR_REGEX.source, "*"));
2369
2369
  var SPACE_SEPARATOR_END_REGEX = new RegExp("".concat(SPACE_SEPARATOR_REGEX.source, "*$"));
@@ -2426,7 +2426,7 @@ var fromEntries = (
2426
2426
  function fromEntries2(entries) {
2427
2427
  var obj = {};
2428
2428
  for (var _i = 0, entries_1 = entries; _i < entries_1.length; _i++) {
2429
- var _a2 = entries_1[_i], k = _a2[0], v = _a2[1];
2429
+ var _a3 = entries_1[_i], k = _a3[0], v = _a3[1];
2430
2430
  obj[k] = v;
2431
2431
  }
2432
2432
  return obj;
@@ -2478,14 +2478,14 @@ function RE(s, flag) {
2478
2478
  var matchIdentifierAtIndex;
2479
2479
  if (REGEX_SUPPORTS_U_AND_Y) {
2480
2480
  IDENTIFIER_PREFIX_RE_1 = RE("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
2481
- matchIdentifierAtIndex = function matchIdentifierAtIndex2(s, index) {
2482
- var _a2;
2481
+ matchIdentifierAtIndex = function matchIdentifierAtIndex3(s, index) {
2482
+ var _a3;
2483
2483
  IDENTIFIER_PREFIX_RE_1.lastIndex = index;
2484
2484
  var match = IDENTIFIER_PREFIX_RE_1.exec(s);
2485
- return (_a2 = match[1]) !== null && _a2 !== void 0 ? _a2 : "";
2485
+ return (_a3 = match[1]) !== null && _a3 !== void 0 ? _a3 : "";
2486
2486
  };
2487
2487
  } else {
2488
- matchIdentifierAtIndex = function matchIdentifierAtIndex2(s, index) {
2488
+ matchIdentifierAtIndex = function matchIdentifierAtIndex3(s, index) {
2489
2489
  var match = [];
2490
2490
  while (true) {
2491
2491
  var c = codePointAt(s, index);
@@ -2502,7 +2502,7 @@ var IDENTIFIER_PREFIX_RE_1;
2502
2502
  var Parser = (
2503
2503
  /** @class */
2504
2504
  function() {
2505
- function Parser2(message, options) {
2505
+ function Parser3(message, options) {
2506
2506
  if (options === void 0) {
2507
2507
  options = {};
2508
2508
  }
@@ -2513,13 +2513,13 @@ var Parser = (
2513
2513
  this.requiresOtherClause = !!options.requiresOtherClause;
2514
2514
  this.shouldParseSkeletons = !!options.shouldParseSkeletons;
2515
2515
  }
2516
- Parser2.prototype.parse = function() {
2516
+ Parser3.prototype.parse = function() {
2517
2517
  if (this.offset() !== 0) {
2518
2518
  throw Error("parser can only be used once");
2519
2519
  }
2520
2520
  return this.parseMessage(0, "", false);
2521
2521
  };
2522
- Parser2.prototype.parseMessage = function(nestingLevel, parentArgType, expectingCloseTag) {
2522
+ Parser3.prototype.parseMessage = function(nestingLevel, parentArgType, expectingCloseTag) {
2523
2523
  var elements = [];
2524
2524
  while (!this.isEOF()) {
2525
2525
  var char = this.char();
@@ -2560,7 +2560,7 @@ var Parser = (
2560
2560
  }
2561
2561
  return { val: elements, err: null };
2562
2562
  };
2563
- Parser2.prototype.parseTag = function(nestingLevel, parentArgType) {
2563
+ Parser3.prototype.parseTag = function(nestingLevel, parentArgType) {
2564
2564
  var startPosition = this.clonePosition();
2565
2565
  this.bump();
2566
2566
  var tagName = this.parseTagName();
@@ -2610,7 +2610,7 @@ var Parser = (
2610
2610
  return this.error(ErrorKind.INVALID_TAG, createLocation(startPosition, this.clonePosition()));
2611
2611
  }
2612
2612
  };
2613
- Parser2.prototype.parseTagName = function() {
2613
+ Parser3.prototype.parseTagName = function() {
2614
2614
  var startOffset = this.offset();
2615
2615
  this.bump();
2616
2616
  while (!this.isEOF() && _isPotentialElementNameChar(this.char())) {
@@ -2618,7 +2618,7 @@ var Parser = (
2618
2618
  }
2619
2619
  return this.message.slice(startOffset, this.offset());
2620
2620
  };
2621
- Parser2.prototype.parseLiteral = function(nestingLevel, parentArgType) {
2621
+ Parser3.prototype.parseLiteral = function(nestingLevel, parentArgType) {
2622
2622
  var start = this.clonePosition();
2623
2623
  var value = "";
2624
2624
  while (true) {
@@ -2645,7 +2645,7 @@ var Parser = (
2645
2645
  err: null
2646
2646
  };
2647
2647
  };
2648
- Parser2.prototype.tryParseLeftAngleBracket = function() {
2648
+ Parser3.prototype.tryParseLeftAngleBracket = function() {
2649
2649
  if (!this.isEOF() && this.char() === 60 && (this.ignoreTag || // If at the opening tag or closing tag position, bail.
2650
2650
  !_isAlphaOrSlash(this.peek() || 0))) {
2651
2651
  this.bump();
@@ -2653,7 +2653,7 @@ var Parser = (
2653
2653
  }
2654
2654
  return null;
2655
2655
  };
2656
- Parser2.prototype.tryParseQuote = function(parentArgType) {
2656
+ Parser3.prototype.tryParseQuote = function(parentArgType) {
2657
2657
  if (this.isEOF() || this.char() !== 39) {
2658
2658
  return null;
2659
2659
  }
@@ -2695,7 +2695,7 @@ var Parser = (
2695
2695
  }
2696
2696
  return fromCodePoint.apply(void 0, codePoints);
2697
2697
  };
2698
- Parser2.prototype.tryParseUnquoted = function(nestingLevel, parentArgType) {
2698
+ Parser3.prototype.tryParseUnquoted = function(nestingLevel, parentArgType) {
2699
2699
  if (this.isEOF()) {
2700
2700
  return null;
2701
2701
  }
@@ -2707,7 +2707,7 @@ var Parser = (
2707
2707
  return fromCodePoint(ch);
2708
2708
  }
2709
2709
  };
2710
- Parser2.prototype.parseArgument = function(nestingLevel, expectingCloseTag) {
2710
+ Parser3.prototype.parseArgument = function(nestingLevel, expectingCloseTag) {
2711
2711
  var openingBracePosition = this.clonePosition();
2712
2712
  this.bump();
2713
2713
  this.bumpSpace();
@@ -2751,7 +2751,7 @@ var Parser = (
2751
2751
  return this.error(ErrorKind.MALFORMED_ARGUMENT, createLocation(openingBracePosition, this.clonePosition()));
2752
2752
  }
2753
2753
  };
2754
- Parser2.prototype.parseIdentifierIfPossible = function() {
2754
+ Parser3.prototype.parseIdentifierIfPossible = function() {
2755
2755
  var startingPosition = this.clonePosition();
2756
2756
  var startOffset = this.offset();
2757
2757
  var value = matchIdentifierAtIndex(this.message, startOffset);
@@ -2761,8 +2761,8 @@ var Parser = (
2761
2761
  var location = createLocation(startingPosition, endPosition);
2762
2762
  return { value, location };
2763
2763
  };
2764
- Parser2.prototype.parseArgumentOptions = function(nestingLevel, expectingCloseTag, value, openingBracePosition) {
2765
- var _a2;
2764
+ Parser3.prototype.parseArgumentOptions = function(nestingLevel, expectingCloseTag, value, openingBracePosition) {
2765
+ var _a3;
2766
2766
  var typeStartPosition = this.clonePosition();
2767
2767
  var argType = this.parseIdentifierIfPossible().value;
2768
2768
  var typeEndPosition = this.clonePosition();
@@ -2830,7 +2830,7 @@ var Parser = (
2830
2830
  type: argType === "number" ? TYPE.number : argType === "date" ? TYPE.date : TYPE.time,
2831
2831
  value,
2832
2832
  location: location_1,
2833
- style: (_a2 = styleAndLocation === null || styleAndLocation === void 0 ? void 0 : styleAndLocation.style) !== null && _a2 !== void 0 ? _a2 : null
2833
+ style: (_a3 = styleAndLocation === null || styleAndLocation === void 0 ? void 0 : styleAndLocation.style) !== null && _a3 !== void 0 ? _a3 : null
2834
2834
  },
2835
2835
  err: null
2836
2836
  };
@@ -2896,14 +2896,14 @@ var Parser = (
2896
2896
  return this.error(ErrorKind.INVALID_ARGUMENT_TYPE, createLocation(typeStartPosition, typeEndPosition));
2897
2897
  }
2898
2898
  };
2899
- Parser2.prototype.tryParseArgumentClose = function(openingBracePosition) {
2899
+ Parser3.prototype.tryParseArgumentClose = function(openingBracePosition) {
2900
2900
  if (this.isEOF() || this.char() !== 125) {
2901
2901
  return this.error(ErrorKind.EXPECT_ARGUMENT_CLOSING_BRACE, createLocation(openingBracePosition, this.clonePosition()));
2902
2902
  }
2903
2903
  this.bump();
2904
2904
  return { val: true, err: null };
2905
2905
  };
2906
- Parser2.prototype.parseSimpleArgStyleIfPossible = function() {
2906
+ Parser3.prototype.parseSimpleArgStyleIfPossible = function() {
2907
2907
  var nestedBraces = 0;
2908
2908
  var startPosition = this.clonePosition();
2909
2909
  while (!this.isEOF()) {
@@ -2944,7 +2944,7 @@ var Parser = (
2944
2944
  err: null
2945
2945
  };
2946
2946
  };
2947
- Parser2.prototype.parseNumberSkeletonFromString = function(skeleton, location) {
2947
+ Parser3.prototype.parseNumberSkeletonFromString = function(skeleton, location) {
2948
2948
  var tokens = [];
2949
2949
  try {
2950
2950
  tokens = parseNumberSkeletonFromString(skeleton);
@@ -2961,8 +2961,8 @@ var Parser = (
2961
2961
  err: null
2962
2962
  };
2963
2963
  };
2964
- Parser2.prototype.tryParsePluralOrSelectOptions = function(nestingLevel, parentArgType, expectCloseTag, parsedFirstIdentifier) {
2965
- var _a2;
2964
+ Parser3.prototype.tryParsePluralOrSelectOptions = function(nestingLevel, parentArgType, expectCloseTag, parsedFirstIdentifier) {
2965
+ var _a3;
2966
2966
  var hasOtherClause = false;
2967
2967
  var options = [];
2968
2968
  var parsedSelectors = /* @__PURE__ */ new Set();
@@ -3009,7 +3009,7 @@ var Parser = (
3009
3009
  ]);
3010
3010
  parsedSelectors.add(selector);
3011
3011
  this.bumpSpace();
3012
- _a2 = this.parseIdentifierIfPossible(), selector = _a2.value, selectorLocation = _a2.location;
3012
+ _a3 = this.parseIdentifierIfPossible(), selector = _a3.value, selectorLocation = _a3.location;
3013
3013
  }
3014
3014
  if (options.length === 0) {
3015
3015
  return this.error(parentArgType === "select" ? ErrorKind.EXPECT_SELECT_ARGUMENT_SELECTOR : ErrorKind.EXPECT_PLURAL_ARGUMENT_SELECTOR, createLocation(this.clonePosition(), this.clonePosition()));
@@ -3019,7 +3019,7 @@ var Parser = (
3019
3019
  }
3020
3020
  return { val: options, err: null };
3021
3021
  };
3022
- Parser2.prototype.tryParseDecimalInteger = function(expectNumberError, invalidNumberError) {
3022
+ Parser3.prototype.tryParseDecimalInteger = function(expectNumberError, invalidNumberError) {
3023
3023
  var sign = 1;
3024
3024
  var startingPosition = this.clonePosition();
3025
3025
  if (this.bumpIf("+")) {
@@ -3048,20 +3048,20 @@ var Parser = (
3048
3048
  }
3049
3049
  return { val: decimal, err: null };
3050
3050
  };
3051
- Parser2.prototype.offset = function() {
3051
+ Parser3.prototype.offset = function() {
3052
3052
  return this.position.offset;
3053
3053
  };
3054
- Parser2.prototype.isEOF = function() {
3054
+ Parser3.prototype.isEOF = function() {
3055
3055
  return this.offset() === this.message.length;
3056
3056
  };
3057
- Parser2.prototype.clonePosition = function() {
3057
+ Parser3.prototype.clonePosition = function() {
3058
3058
  return {
3059
3059
  offset: this.position.offset,
3060
3060
  line: this.position.line,
3061
3061
  column: this.position.column
3062
3062
  };
3063
3063
  };
3064
- Parser2.prototype.char = function() {
3064
+ Parser3.prototype.char = function() {
3065
3065
  var offset = this.position.offset;
3066
3066
  if (offset >= this.message.length) {
3067
3067
  throw Error("out of bound");
@@ -3072,7 +3072,7 @@ var Parser = (
3072
3072
  }
3073
3073
  return code;
3074
3074
  };
3075
- Parser2.prototype.error = function(kind, location) {
3075
+ Parser3.prototype.error = function(kind, location) {
3076
3076
  return {
3077
3077
  val: null,
3078
3078
  err: {
@@ -3082,7 +3082,7 @@ var Parser = (
3082
3082
  }
3083
3083
  };
3084
3084
  };
3085
- Parser2.prototype.bump = function() {
3085
+ Parser3.prototype.bump = function() {
3086
3086
  if (this.isEOF()) {
3087
3087
  return;
3088
3088
  }
@@ -3096,7 +3096,7 @@ var Parser = (
3096
3096
  this.position.offset += code < 65536 ? 1 : 2;
3097
3097
  }
3098
3098
  };
3099
- Parser2.prototype.bumpIf = function(prefix) {
3099
+ Parser3.prototype.bumpIf = function(prefix) {
3100
3100
  if (startsWith(this.message, prefix, this.offset())) {
3101
3101
  for (var i = 0; i < prefix.length; i++) {
3102
3102
  this.bump();
@@ -3105,7 +3105,7 @@ var Parser = (
3105
3105
  }
3106
3106
  return false;
3107
3107
  };
3108
- Parser2.prototype.bumpUntil = function(pattern) {
3108
+ Parser3.prototype.bumpUntil = function(pattern) {
3109
3109
  var currentOffset = this.offset();
3110
3110
  var index = this.message.indexOf(pattern, currentOffset);
3111
3111
  if (index >= 0) {
@@ -3116,7 +3116,7 @@ var Parser = (
3116
3116
  return false;
3117
3117
  }
3118
3118
  };
3119
- Parser2.prototype.bumpTo = function(targetOffset) {
3119
+ Parser3.prototype.bumpTo = function(targetOffset) {
3120
3120
  if (this.offset() > targetOffset) {
3121
3121
  throw Error("targetOffset ".concat(targetOffset, " must be greater than or equal to the current offset ").concat(this.offset()));
3122
3122
  }
@@ -3135,12 +3135,12 @@ var Parser = (
3135
3135
  }
3136
3136
  }
3137
3137
  };
3138
- Parser2.prototype.bumpSpace = function() {
3138
+ Parser3.prototype.bumpSpace = function() {
3139
3139
  while (!this.isEOF() && _isWhiteSpace(this.char())) {
3140
3140
  this.bump();
3141
3141
  }
3142
3142
  };
3143
- Parser2.prototype.peek = function() {
3143
+ Parser3.prototype.peek = function() {
3144
3144
  if (this.isEOF()) {
3145
3145
  return null;
3146
3146
  }
@@ -3149,7 +3149,7 @@ var Parser = (
3149
3149
  var nextCode = this.message.charCodeAt(offset + (code >= 65536 ? 2 : 1));
3150
3150
  return nextCode !== null && nextCode !== void 0 ? nextCode : null;
3151
3151
  };
3152
- return Parser2;
3152
+ return Parser3;
3153
3153
  }()
3154
3154
  );
3155
3155
  function _isAlpha(codepoint) {
@@ -3168,7 +3168,7 @@ function _isPatternSyntax(c) {
3168
3168
  return c >= 33 && c <= 35 || c === 36 || c >= 37 && c <= 39 || c === 40 || c === 41 || c === 42 || c === 43 || c === 44 || c === 45 || c >= 46 && c <= 47 || c >= 58 && c <= 59 || c >= 60 && c <= 62 || c >= 63 && c <= 64 || c === 91 || c === 92 || c === 93 || c === 94 || c === 96 || c === 123 || c === 124 || c === 125 || c === 126 || c === 161 || c >= 162 && c <= 165 || c === 166 || c === 167 || c === 169 || c === 171 || c === 172 || c === 174 || c === 176 || c === 177 || c === 182 || c === 187 || c === 191 || c === 215 || c === 247 || c >= 8208 && c <= 8213 || c >= 8214 && c <= 8215 || c === 8216 || c === 8217 || c === 8218 || c >= 8219 && c <= 8220 || c === 8221 || c === 8222 || c === 8223 || c >= 8224 && c <= 8231 || c >= 8240 && c <= 8248 || c === 8249 || c === 8250 || c >= 8251 && c <= 8254 || c >= 8257 && c <= 8259 || c === 8260 || c === 8261 || c === 8262 || c >= 8263 && c <= 8273 || c === 8274 || c === 8275 || c >= 8277 && c <= 8286 || c >= 8592 && c <= 8596 || c >= 8597 && c <= 8601 || c >= 8602 && c <= 8603 || c >= 8604 && c <= 8607 || c === 8608 || c >= 8609 && c <= 8610 || c === 8611 || c >= 8612 && c <= 8613 || c === 8614 || c >= 8615 && c <= 8621 || c === 8622 || c >= 8623 && c <= 8653 || c >= 8654 && c <= 8655 || c >= 8656 && c <= 8657 || c === 8658 || c === 8659 || c === 8660 || c >= 8661 && c <= 8691 || c >= 8692 && c <= 8959 || c >= 8960 && c <= 8967 || c === 8968 || c === 8969 || c === 8970 || c === 8971 || c >= 8972 && c <= 8991 || c >= 8992 && c <= 8993 || c >= 8994 && c <= 9e3 || c === 9001 || c === 9002 || c >= 9003 && c <= 9083 || c === 9084 || c >= 9085 && c <= 9114 || c >= 9115 && c <= 9139 || c >= 9140 && c <= 9179 || c >= 9180 && c <= 9185 || c >= 9186 && c <= 9254 || c >= 9255 && c <= 9279 || c >= 9280 && c <= 9290 || c >= 9291 && c <= 9311 || c >= 9472 && c <= 9654 || c === 9655 || c >= 9656 && c <= 9664 || c === 9665 || c >= 9666 && c <= 9719 || c >= 9720 && c <= 9727 || c >= 9728 && c <= 9838 || c === 9839 || c >= 9840 && c <= 10087 || c === 10088 || c === 10089 || c === 10090 || c === 10091 || c === 10092 || c === 10093 || c === 10094 || c === 10095 || c === 10096 || c === 10097 || c === 10098 || c === 10099 || c === 10100 || c === 10101 || c >= 10132 && c <= 10175 || c >= 10176 && c <= 10180 || c === 10181 || c === 10182 || c >= 10183 && c <= 10213 || c === 10214 || c === 10215 || c === 10216 || c === 10217 || c === 10218 || c === 10219 || c === 10220 || c === 10221 || c === 10222 || c === 10223 || c >= 10224 && c <= 10239 || c >= 10240 && c <= 10495 || c >= 10496 && c <= 10626 || c === 10627 || c === 10628 || c === 10629 || c === 10630 || c === 10631 || c === 10632 || c === 10633 || c === 10634 || c === 10635 || c === 10636 || c === 10637 || c === 10638 || c === 10639 || c === 10640 || c === 10641 || c === 10642 || c === 10643 || c === 10644 || c === 10645 || c === 10646 || c === 10647 || c === 10648 || c >= 10649 && c <= 10711 || c === 10712 || c === 10713 || c === 10714 || c === 10715 || c >= 10716 && c <= 10747 || c === 10748 || c === 10749 || c >= 10750 && c <= 11007 || c >= 11008 && c <= 11055 || c >= 11056 && c <= 11076 || c >= 11077 && c <= 11078 || c >= 11079 && c <= 11084 || c >= 11085 && c <= 11123 || c >= 11124 && c <= 11125 || c >= 11126 && c <= 11157 || c === 11158 || c >= 11159 && c <= 11263 || c >= 11776 && c <= 11777 || c === 11778 || c === 11779 || c === 11780 || c === 11781 || c >= 11782 && c <= 11784 || c === 11785 || c === 11786 || c === 11787 || c === 11788 || c === 11789 || c >= 11790 && c <= 11798 || c === 11799 || c >= 11800 && c <= 11801 || c === 11802 || c === 11803 || c === 11804 || c === 11805 || c >= 11806 && c <= 11807 || c === 11808 || c === 11809 || c === 11810 || c === 11811 || c === 11812 || c === 11813 || c === 11814 || c === 11815 || c === 11816 || c === 11817 || c >= 11818 && c <= 11822 || c === 11823 || c >= 11824 && c <= 11833 || c >= 11834 && c <= 11835 || c >= 11836 && c <= 11839 || c === 11840 || c === 11841 || c === 11842 || c >= 11843 && c <= 11855 || c >= 11856 && c <= 11857 || c === 11858 || c >= 11859 && c <= 11903 || c >= 12289 && c <= 12291 || c === 12296 || c === 12297 || c === 12298 || c === 12299 || c === 12300 || c === 12301 || c === 12302 || c === 12303 || c === 12304 || c === 12305 || c >= 12306 && c <= 12307 || c === 12308 || c === 12309 || c === 12310 || c === 12311 || c === 12312 || c === 12313 || c === 12314 || c === 12315 || c === 12316 || c === 12317 || c >= 12318 && c <= 12319 || c === 12320 || c === 12336 || c === 64830 || c === 64831 || c >= 65093 && c <= 65094;
3169
3169
  }
3170
3170
 
3171
- // ../../node_modules/@formatjs/icu-messageformat-parser/lib/index.js
3171
+ // ../../node_modules/intl-messageformat/node_modules/@formatjs/icu-messageformat-parser/lib/index.js
3172
3172
  function pruneLocation(els) {
3173
3173
  els.forEach(function(el) {
3174
3174
  delete el.location;
@@ -3508,34 +3508,34 @@ function createDefaultFormatters(cache) {
3508
3508
  }
3509
3509
  return {
3510
3510
  getNumberFormat: memoize(function() {
3511
- var _a2;
3511
+ var _a3;
3512
3512
  var args = [];
3513
3513
  for (var _i = 0; _i < arguments.length; _i++) {
3514
3514
  args[_i] = arguments[_i];
3515
3515
  }
3516
- return new ((_a2 = Intl.NumberFormat).bind.apply(_a2, __spreadArray([void 0], args, false)))();
3516
+ return new ((_a3 = Intl.NumberFormat).bind.apply(_a3, __spreadArray([void 0], args, false)))();
3517
3517
  }, {
3518
3518
  cache: createFastMemoizeCache(cache.number),
3519
3519
  strategy: strategies.variadic
3520
3520
  }),
3521
3521
  getDateTimeFormat: memoize(function() {
3522
- var _a2;
3522
+ var _a3;
3523
3523
  var args = [];
3524
3524
  for (var _i = 0; _i < arguments.length; _i++) {
3525
3525
  args[_i] = arguments[_i];
3526
3526
  }
3527
- return new ((_a2 = Intl.DateTimeFormat).bind.apply(_a2, __spreadArray([void 0], args, false)))();
3527
+ return new ((_a3 = Intl.DateTimeFormat).bind.apply(_a3, __spreadArray([void 0], args, false)))();
3528
3528
  }, {
3529
3529
  cache: createFastMemoizeCache(cache.dateTime),
3530
3530
  strategy: strategies.variadic
3531
3531
  }),
3532
3532
  getPluralRules: memoize(function() {
3533
- var _a2;
3533
+ var _a3;
3534
3534
  var args = [];
3535
3535
  for (var _i = 0; _i < arguments.length; _i++) {
3536
3536
  args[_i] = arguments[_i];
3537
3537
  }
3538
- return new ((_a2 = Intl.PluralRules).bind.apply(_a2, __spreadArray([void 0], args, false)))();
3538
+ return new ((_a3 = Intl.PluralRules).bind.apply(_a3, __spreadArray([void 0], args, false)))();
3539
3539
  }, {
3540
3540
  cache: createFastMemoizeCache(cache.pluralRules),
3541
3541
  strategy: strategies.variadic
@@ -3577,9 +3577,9 @@ var IntlMessageFormat = (
3577
3577
  return formatToParts(_this.ast, _this.locales, _this.formatters, _this.formats, values, void 0, _this.message);
3578
3578
  };
3579
3579
  this.resolvedOptions = function() {
3580
- var _a3;
3580
+ var _a4;
3581
3581
  return {
3582
- locale: ((_a3 = _this.resolvedLocale) === null || _a3 === void 0 ? void 0 : _a3.toString()) || Intl.NumberFormat.supportedLocalesOf(_this.locales)[0]
3582
+ locale: ((_a4 = _this.resolvedLocale) === null || _a4 === void 0 ? void 0 : _a4.toString()) || Intl.NumberFormat.supportedLocalesOf(_this.locales)[0]
3583
3583
  };
3584
3584
  };
3585
3585
  this.getAst = function() {
@@ -3592,7 +3592,7 @@ var IntlMessageFormat = (
3592
3592
  if (!IntlMessageFormat2.__parse) {
3593
3593
  throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");
3594
3594
  }
3595
- var _a2 = opts || {}, formatters = _a2.formatters, parseOpts = __rest(_a2, ["formatters"]);
3595
+ var _a3 = opts || {}, formatters = _a3.formatters, parseOpts = __rest(_a3, ["formatters"]);
3596
3596
  this.ast = IntlMessageFormat2.__parse(message, __assign(__assign({}, parseOpts), { locale: this.resolvedLocale }));
3597
3597
  } else {
3598
3598
  this.ast = message;
@@ -3775,8 +3775,8 @@ var MissingTranslationError = (
3775
3775
  __extends(MissingTranslationError2, _super);
3776
3776
  function MissingTranslationError2(descriptor, locale) {
3777
3777
  var _this = _super.call(this, IntlErrorCode.MISSING_TRANSLATION, 'Missing message: "'.concat(descriptor.id, '" for locale "').concat(locale, '", using ').concat(descriptor.defaultMessage ? "default message (".concat(typeof descriptor.defaultMessage === "string" ? descriptor.defaultMessage : descriptor.defaultMessage.map(function(e) {
3778
- var _a2;
3779
- return (_a2 = e.value) !== null && _a2 !== void 0 ? _a2 : JSON.stringify(e);
3778
+ var _a3;
3779
+ return (_a3 = e.value) !== null && _a3 !== void 0 ? _a3 : JSON.stringify(e);
3780
3780
  }).join(), ")") : "id", " as fallback.")) || this;
3781
3781
  _this.descriptor = descriptor;
3782
3782
  return _this;
@@ -3834,112 +3834,2751 @@ function createFastMemoizeCache2(store) {
3834
3834
  return {
3835
3835
  create: function() {
3836
3836
  return {
3837
- get: function(key) {
3838
- return store[key];
3839
- },
3840
- set: function(key, value) {
3841
- store[key] = value;
3837
+ get: function(key) {
3838
+ return store[key];
3839
+ },
3840
+ set: function(key, value) {
3841
+ store[key] = value;
3842
+ }
3843
+ };
3844
+ }
3845
+ };
3846
+ }
3847
+ function createFormatters(cache) {
3848
+ if (cache === void 0) {
3849
+ cache = createIntlCache();
3850
+ }
3851
+ var RelativeTimeFormat = Intl.RelativeTimeFormat;
3852
+ var ListFormat = Intl.ListFormat;
3853
+ var DisplayNames = Intl.DisplayNames;
3854
+ var getDateTimeFormat = memoize(function() {
3855
+ var _a3;
3856
+ var args = [];
3857
+ for (var _i = 0; _i < arguments.length; _i++) {
3858
+ args[_i] = arguments[_i];
3859
+ }
3860
+ return new ((_a3 = Intl.DateTimeFormat).bind.apply(_a3, __spreadArray([void 0], args, false)))();
3861
+ }, {
3862
+ cache: createFastMemoizeCache2(cache.dateTime),
3863
+ strategy: strategies.variadic
3864
+ });
3865
+ var getNumberFormat = memoize(function() {
3866
+ var _a3;
3867
+ var args = [];
3868
+ for (var _i = 0; _i < arguments.length; _i++) {
3869
+ args[_i] = arguments[_i];
3870
+ }
3871
+ return new ((_a3 = Intl.NumberFormat).bind.apply(_a3, __spreadArray([void 0], args, false)))();
3872
+ }, {
3873
+ cache: createFastMemoizeCache2(cache.number),
3874
+ strategy: strategies.variadic
3875
+ });
3876
+ var getPluralRules = memoize(function() {
3877
+ var _a3;
3878
+ var args = [];
3879
+ for (var _i = 0; _i < arguments.length; _i++) {
3880
+ args[_i] = arguments[_i];
3881
+ }
3882
+ return new ((_a3 = Intl.PluralRules).bind.apply(_a3, __spreadArray([void 0], args, false)))();
3883
+ }, {
3884
+ cache: createFastMemoizeCache2(cache.pluralRules),
3885
+ strategy: strategies.variadic
3886
+ });
3887
+ return {
3888
+ getDateTimeFormat,
3889
+ getNumberFormat,
3890
+ getMessageFormat: memoize(function(message, locales, overrideFormats, opts) {
3891
+ return new IntlMessageFormat(message, locales, overrideFormats, __assign({ formatters: {
3892
+ getNumberFormat,
3893
+ getDateTimeFormat,
3894
+ getPluralRules
3895
+ } }, opts || {}));
3896
+ }, {
3897
+ cache: createFastMemoizeCache2(cache.message),
3898
+ strategy: strategies.variadic
3899
+ }),
3900
+ getRelativeTimeFormat: memoize(function() {
3901
+ var args = [];
3902
+ for (var _i = 0; _i < arguments.length; _i++) {
3903
+ args[_i] = arguments[_i];
3904
+ }
3905
+ return new (RelativeTimeFormat.bind.apply(RelativeTimeFormat, __spreadArray([void 0], args, false)))();
3906
+ }, {
3907
+ cache: createFastMemoizeCache2(cache.relativeTime),
3908
+ strategy: strategies.variadic
3909
+ }),
3910
+ getPluralRules,
3911
+ getListFormat: memoize(function() {
3912
+ var args = [];
3913
+ for (var _i = 0; _i < arguments.length; _i++) {
3914
+ args[_i] = arguments[_i];
3915
+ }
3916
+ return new (ListFormat.bind.apply(ListFormat, __spreadArray([void 0], args, false)))();
3917
+ }, {
3918
+ cache: createFastMemoizeCache2(cache.list),
3919
+ strategy: strategies.variadic
3920
+ }),
3921
+ getDisplayNames: memoize(function() {
3922
+ var args = [];
3923
+ for (var _i = 0; _i < arguments.length; _i++) {
3924
+ args[_i] = arguments[_i];
3925
+ }
3926
+ return new (DisplayNames.bind.apply(DisplayNames, __spreadArray([void 0], args, false)))();
3927
+ }, {
3928
+ cache: createFastMemoizeCache2(cache.displayNames),
3929
+ strategy: strategies.variadic
3930
+ })
3931
+ };
3932
+ }
3933
+ function getNamedFormat(formats, type, name, onError) {
3934
+ var formatType = formats && formats[type];
3935
+ var format;
3936
+ if (formatType) {
3937
+ format = formatType[name];
3938
+ }
3939
+ if (format) {
3940
+ return format;
3941
+ }
3942
+ onError(new UnsupportedFormatterError("No ".concat(type, " format named: ").concat(name)));
3943
+ }
3944
+
3945
+ // ../../node_modules/@formatjs/intl/node_modules/@formatjs/ecma402-abstract/lib/utils.js
3946
+ function invariant2(condition, message, Err) {
3947
+ if (Err === void 0) {
3948
+ Err = Error;
3949
+ }
3950
+ if (!condition) {
3951
+ throw new Err(message);
3952
+ }
3953
+ }
3954
+
3955
+ // ../../node_modules/@formatjs/intl/node_modules/@formatjs/icu-messageformat-parser/lib/error.js
3956
+ var ErrorKind2;
3957
+ (function(ErrorKind3) {
3958
+ ErrorKind3[ErrorKind3["EXPECT_ARGUMENT_CLOSING_BRACE"] = 1] = "EXPECT_ARGUMENT_CLOSING_BRACE";
3959
+ ErrorKind3[ErrorKind3["EMPTY_ARGUMENT"] = 2] = "EMPTY_ARGUMENT";
3960
+ ErrorKind3[ErrorKind3["MALFORMED_ARGUMENT"] = 3] = "MALFORMED_ARGUMENT";
3961
+ ErrorKind3[ErrorKind3["EXPECT_ARGUMENT_TYPE"] = 4] = "EXPECT_ARGUMENT_TYPE";
3962
+ ErrorKind3[ErrorKind3["INVALID_ARGUMENT_TYPE"] = 5] = "INVALID_ARGUMENT_TYPE";
3963
+ ErrorKind3[ErrorKind3["EXPECT_ARGUMENT_STYLE"] = 6] = "EXPECT_ARGUMENT_STYLE";
3964
+ ErrorKind3[ErrorKind3["INVALID_NUMBER_SKELETON"] = 7] = "INVALID_NUMBER_SKELETON";
3965
+ ErrorKind3[ErrorKind3["INVALID_DATE_TIME_SKELETON"] = 8] = "INVALID_DATE_TIME_SKELETON";
3966
+ ErrorKind3[ErrorKind3["EXPECT_NUMBER_SKELETON"] = 9] = "EXPECT_NUMBER_SKELETON";
3967
+ ErrorKind3[ErrorKind3["EXPECT_DATE_TIME_SKELETON"] = 10] = "EXPECT_DATE_TIME_SKELETON";
3968
+ ErrorKind3[ErrorKind3["UNCLOSED_QUOTE_IN_ARGUMENT_STYLE"] = 11] = "UNCLOSED_QUOTE_IN_ARGUMENT_STYLE";
3969
+ ErrorKind3[ErrorKind3["EXPECT_SELECT_ARGUMENT_OPTIONS"] = 12] = "EXPECT_SELECT_ARGUMENT_OPTIONS";
3970
+ ErrorKind3[ErrorKind3["EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE"] = 13] = "EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE";
3971
+ ErrorKind3[ErrorKind3["INVALID_PLURAL_ARGUMENT_OFFSET_VALUE"] = 14] = "INVALID_PLURAL_ARGUMENT_OFFSET_VALUE";
3972
+ ErrorKind3[ErrorKind3["EXPECT_SELECT_ARGUMENT_SELECTOR"] = 15] = "EXPECT_SELECT_ARGUMENT_SELECTOR";
3973
+ ErrorKind3[ErrorKind3["EXPECT_PLURAL_ARGUMENT_SELECTOR"] = 16] = "EXPECT_PLURAL_ARGUMENT_SELECTOR";
3974
+ ErrorKind3[ErrorKind3["EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT"] = 17] = "EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT";
3975
+ ErrorKind3[ErrorKind3["EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT"] = 18] = "EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT";
3976
+ ErrorKind3[ErrorKind3["INVALID_PLURAL_ARGUMENT_SELECTOR"] = 19] = "INVALID_PLURAL_ARGUMENT_SELECTOR";
3977
+ ErrorKind3[ErrorKind3["DUPLICATE_PLURAL_ARGUMENT_SELECTOR"] = 20] = "DUPLICATE_PLURAL_ARGUMENT_SELECTOR";
3978
+ ErrorKind3[ErrorKind3["DUPLICATE_SELECT_ARGUMENT_SELECTOR"] = 21] = "DUPLICATE_SELECT_ARGUMENT_SELECTOR";
3979
+ ErrorKind3[ErrorKind3["MISSING_OTHER_CLAUSE"] = 22] = "MISSING_OTHER_CLAUSE";
3980
+ ErrorKind3[ErrorKind3["INVALID_TAG"] = 23] = "INVALID_TAG";
3981
+ ErrorKind3[ErrorKind3["INVALID_TAG_NAME"] = 25] = "INVALID_TAG_NAME";
3982
+ ErrorKind3[ErrorKind3["UNMATCHED_CLOSING_TAG"] = 26] = "UNMATCHED_CLOSING_TAG";
3983
+ ErrorKind3[ErrorKind3["UNCLOSED_TAG"] = 27] = "UNCLOSED_TAG";
3984
+ })(ErrorKind2 || (ErrorKind2 = {}));
3985
+
3986
+ // ../../node_modules/@formatjs/intl/node_modules/@formatjs/icu-messageformat-parser/lib/types.js
3987
+ var TYPE2;
3988
+ (function(TYPE3) {
3989
+ TYPE3[TYPE3["literal"] = 0] = "literal";
3990
+ TYPE3[TYPE3["argument"] = 1] = "argument";
3991
+ TYPE3[TYPE3["number"] = 2] = "number";
3992
+ TYPE3[TYPE3["date"] = 3] = "date";
3993
+ TYPE3[TYPE3["time"] = 4] = "time";
3994
+ TYPE3[TYPE3["select"] = 5] = "select";
3995
+ TYPE3[TYPE3["plural"] = 6] = "plural";
3996
+ TYPE3[TYPE3["pound"] = 7] = "pound";
3997
+ TYPE3[TYPE3["tag"] = 8] = "tag";
3998
+ })(TYPE2 || (TYPE2 = {}));
3999
+ var SKELETON_TYPE2;
4000
+ (function(SKELETON_TYPE3) {
4001
+ SKELETON_TYPE3[SKELETON_TYPE3["number"] = 0] = "number";
4002
+ SKELETON_TYPE3[SKELETON_TYPE3["dateTime"] = 1] = "dateTime";
4003
+ })(SKELETON_TYPE2 || (SKELETON_TYPE2 = {}));
4004
+
4005
+ // ../../node_modules/@formatjs/intl/node_modules/@formatjs/icu-messageformat-parser/lib/regex.generated.js
4006
+ var SPACE_SEPARATOR_REGEX2 = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/;
4007
+
4008
+ // ../../node_modules/@formatjs/intl/node_modules/@formatjs/icu-skeleton-parser/lib/date-time.js
4009
+ var DATE_TIME_REGEX2 = /(?:[Eec]{1,6}|G{1,5}|[Qq]{1,5}|(?:[yYur]+|U{1,5})|[ML]{1,5}|d{1,2}|D{1,3}|F{1}|[abB]{1,5}|[hkHK]{1,2}|w{1,2}|W{1}|m{1,2}|s{1,2}|[zZOvVxX]{1,4})(?=([^']*'[^']*')*[^']*$)/g;
4010
+ function parseDateTimeSkeleton2(skeleton) {
4011
+ var result = {};
4012
+ skeleton.replace(DATE_TIME_REGEX2, function(match) {
4013
+ var len = match.length;
4014
+ switch (match[0]) {
4015
+ case "G":
4016
+ result.era = len === 4 ? "long" : len === 5 ? "narrow" : "short";
4017
+ break;
4018
+ case "y":
4019
+ result.year = len === 2 ? "2-digit" : "numeric";
4020
+ break;
4021
+ case "Y":
4022
+ case "u":
4023
+ case "U":
4024
+ case "r":
4025
+ throw new RangeError("`Y/u/U/r` (year) patterns are not supported, use `y` instead");
4026
+ case "q":
4027
+ case "Q":
4028
+ throw new RangeError("`q/Q` (quarter) patterns are not supported");
4029
+ case "M":
4030
+ case "L":
4031
+ result.month = ["numeric", "2-digit", "short", "long", "narrow"][len - 1];
4032
+ break;
4033
+ case "w":
4034
+ case "W":
4035
+ throw new RangeError("`w/W` (week) patterns are not supported");
4036
+ case "d":
4037
+ result.day = ["numeric", "2-digit"][len - 1];
4038
+ break;
4039
+ case "D":
4040
+ case "F":
4041
+ case "g":
4042
+ throw new RangeError("`D/F/g` (day) patterns are not supported, use `d` instead");
4043
+ case "E":
4044
+ result.weekday = len === 4 ? "short" : len === 5 ? "narrow" : "short";
4045
+ break;
4046
+ case "e":
4047
+ if (len < 4) {
4048
+ throw new RangeError("`e..eee` (weekday) patterns are not supported");
4049
+ }
4050
+ result.weekday = ["short", "long", "narrow", "short"][len - 4];
4051
+ break;
4052
+ case "c":
4053
+ if (len < 4) {
4054
+ throw new RangeError("`c..ccc` (weekday) patterns are not supported");
4055
+ }
4056
+ result.weekday = ["short", "long", "narrow", "short"][len - 4];
4057
+ break;
4058
+ case "a":
4059
+ result.hour12 = true;
4060
+ break;
4061
+ case "b":
4062
+ case "B":
4063
+ throw new RangeError("`b/B` (period) patterns are not supported, use `a` instead");
4064
+ case "h":
4065
+ result.hourCycle = "h12";
4066
+ result.hour = ["numeric", "2-digit"][len - 1];
4067
+ break;
4068
+ case "H":
4069
+ result.hourCycle = "h23";
4070
+ result.hour = ["numeric", "2-digit"][len - 1];
4071
+ break;
4072
+ case "K":
4073
+ result.hourCycle = "h11";
4074
+ result.hour = ["numeric", "2-digit"][len - 1];
4075
+ break;
4076
+ case "k":
4077
+ result.hourCycle = "h24";
4078
+ result.hour = ["numeric", "2-digit"][len - 1];
4079
+ break;
4080
+ case "j":
4081
+ case "J":
4082
+ case "C":
4083
+ throw new RangeError("`j/J/C` (hour) patterns are not supported, use `h/H/K/k` instead");
4084
+ case "m":
4085
+ result.minute = ["numeric", "2-digit"][len - 1];
4086
+ break;
4087
+ case "s":
4088
+ result.second = ["numeric", "2-digit"][len - 1];
4089
+ break;
4090
+ case "S":
4091
+ case "A":
4092
+ throw new RangeError("`S/A` (second) patterns are not supported, use `s` instead");
4093
+ case "z":
4094
+ result.timeZoneName = len < 4 ? "short" : "long";
4095
+ break;
4096
+ case "Z":
4097
+ case "O":
4098
+ case "v":
4099
+ case "V":
4100
+ case "X":
4101
+ case "x":
4102
+ throw new RangeError("`Z/O/v/V/X/x` (timeZone) patterns are not supported, use `z` instead");
4103
+ }
4104
+ return "";
4105
+ });
4106
+ return result;
4107
+ }
4108
+
4109
+ // ../../node_modules/@formatjs/intl/node_modules/@formatjs/icu-skeleton-parser/lib/regex.generated.js
4110
+ var WHITE_SPACE_REGEX2 = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
4111
+
4112
+ // ../../node_modules/@formatjs/intl/node_modules/@formatjs/icu-skeleton-parser/lib/number.js
4113
+ function parseNumberSkeletonFromString2(skeleton) {
4114
+ if (skeleton.length === 0) {
4115
+ throw new Error("Number skeleton cannot be empty");
4116
+ }
4117
+ var stringTokens = skeleton.split(WHITE_SPACE_REGEX2).filter(function(x) {
4118
+ return x.length > 0;
4119
+ });
4120
+ var tokens = [];
4121
+ for (var _i = 0, stringTokens_1 = stringTokens; _i < stringTokens_1.length; _i++) {
4122
+ var stringToken = stringTokens_1[_i];
4123
+ var stemAndOptions = stringToken.split("/");
4124
+ if (stemAndOptions.length === 0) {
4125
+ throw new Error("Invalid number skeleton");
4126
+ }
4127
+ var stem = stemAndOptions[0], options = stemAndOptions.slice(1);
4128
+ for (var _a3 = 0, options_1 = options; _a3 < options_1.length; _a3++) {
4129
+ var option = options_1[_a3];
4130
+ if (option.length === 0) {
4131
+ throw new Error("Invalid number skeleton");
4132
+ }
4133
+ }
4134
+ tokens.push({ stem, options });
4135
+ }
4136
+ return tokens;
4137
+ }
4138
+ function icuUnitToEcma2(unit) {
4139
+ return unit.replace(/^(.*?)-/, "");
4140
+ }
4141
+ var FRACTION_PRECISION_REGEX2 = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g;
4142
+ var SIGNIFICANT_PRECISION_REGEX2 = /^(@+)?(\+|#+)?[rs]?$/g;
4143
+ var INTEGER_WIDTH_REGEX2 = /(\*)(0+)|(#+)(0+)|(0+)/g;
4144
+ var CONCISE_INTEGER_WIDTH_REGEX2 = /^(0+)$/;
4145
+ function parseSignificantPrecision2(str) {
4146
+ var result = {};
4147
+ if (str[str.length - 1] === "r") {
4148
+ result.roundingPriority = "morePrecision";
4149
+ } else if (str[str.length - 1] === "s") {
4150
+ result.roundingPriority = "lessPrecision";
4151
+ }
4152
+ str.replace(SIGNIFICANT_PRECISION_REGEX2, function(_, g1, g2) {
4153
+ if (typeof g2 !== "string") {
4154
+ result.minimumSignificantDigits = g1.length;
4155
+ result.maximumSignificantDigits = g1.length;
4156
+ } else if (g2 === "+") {
4157
+ result.minimumSignificantDigits = g1.length;
4158
+ } else if (g1[0] === "#") {
4159
+ result.maximumSignificantDigits = g1.length;
4160
+ } else {
4161
+ result.minimumSignificantDigits = g1.length;
4162
+ result.maximumSignificantDigits = g1.length + (typeof g2 === "string" ? g2.length : 0);
4163
+ }
4164
+ return "";
4165
+ });
4166
+ return result;
4167
+ }
4168
+ function parseSign2(str) {
4169
+ switch (str) {
4170
+ case "sign-auto":
4171
+ return {
4172
+ signDisplay: "auto"
4173
+ };
4174
+ case "sign-accounting":
4175
+ case "()":
4176
+ return {
4177
+ currencySign: "accounting"
4178
+ };
4179
+ case "sign-always":
4180
+ case "+!":
4181
+ return {
4182
+ signDisplay: "always"
4183
+ };
4184
+ case "sign-accounting-always":
4185
+ case "()!":
4186
+ return {
4187
+ signDisplay: "always",
4188
+ currencySign: "accounting"
4189
+ };
4190
+ case "sign-except-zero":
4191
+ case "+?":
4192
+ return {
4193
+ signDisplay: "exceptZero"
4194
+ };
4195
+ case "sign-accounting-except-zero":
4196
+ case "()?":
4197
+ return {
4198
+ signDisplay: "exceptZero",
4199
+ currencySign: "accounting"
4200
+ };
4201
+ case "sign-never":
4202
+ case "+_":
4203
+ return {
4204
+ signDisplay: "never"
4205
+ };
4206
+ }
4207
+ }
4208
+ function parseConciseScientificAndEngineeringStem2(stem) {
4209
+ var result;
4210
+ if (stem[0] === "E" && stem[1] === "E") {
4211
+ result = {
4212
+ notation: "engineering"
4213
+ };
4214
+ stem = stem.slice(2);
4215
+ } else if (stem[0] === "E") {
4216
+ result = {
4217
+ notation: "scientific"
4218
+ };
4219
+ stem = stem.slice(1);
4220
+ }
4221
+ if (result) {
4222
+ var signDisplay = stem.slice(0, 2);
4223
+ if (signDisplay === "+!") {
4224
+ result.signDisplay = "always";
4225
+ stem = stem.slice(2);
4226
+ } else if (signDisplay === "+?") {
4227
+ result.signDisplay = "exceptZero";
4228
+ stem = stem.slice(2);
4229
+ }
4230
+ if (!CONCISE_INTEGER_WIDTH_REGEX2.test(stem)) {
4231
+ throw new Error("Malformed concise eng/scientific notation");
4232
+ }
4233
+ result.minimumIntegerDigits = stem.length;
4234
+ }
4235
+ return result;
4236
+ }
4237
+ function parseNotationOptions2(opt) {
4238
+ var result = {};
4239
+ var signOpts = parseSign2(opt);
4240
+ if (signOpts) {
4241
+ return signOpts;
4242
+ }
4243
+ return result;
4244
+ }
4245
+ function parseNumberSkeleton2(tokens) {
4246
+ var result = {};
4247
+ for (var _i = 0, tokens_1 = tokens; _i < tokens_1.length; _i++) {
4248
+ var token = tokens_1[_i];
4249
+ switch (token.stem) {
4250
+ case "percent":
4251
+ case "%":
4252
+ result.style = "percent";
4253
+ continue;
4254
+ case "%x100":
4255
+ result.style = "percent";
4256
+ result.scale = 100;
4257
+ continue;
4258
+ case "currency":
4259
+ result.style = "currency";
4260
+ result.currency = token.options[0];
4261
+ continue;
4262
+ case "group-off":
4263
+ case ",_":
4264
+ result.useGrouping = false;
4265
+ continue;
4266
+ case "precision-integer":
4267
+ case ".":
4268
+ result.maximumFractionDigits = 0;
4269
+ continue;
4270
+ case "measure-unit":
4271
+ case "unit":
4272
+ result.style = "unit";
4273
+ result.unit = icuUnitToEcma2(token.options[0]);
4274
+ continue;
4275
+ case "compact-short":
4276
+ case "K":
4277
+ result.notation = "compact";
4278
+ result.compactDisplay = "short";
4279
+ continue;
4280
+ case "compact-long":
4281
+ case "KK":
4282
+ result.notation = "compact";
4283
+ result.compactDisplay = "long";
4284
+ continue;
4285
+ case "scientific":
4286
+ result = __assign(__assign(__assign({}, result), { notation: "scientific" }), token.options.reduce(function(all, opt2) {
4287
+ return __assign(__assign({}, all), parseNotationOptions2(opt2));
4288
+ }, {}));
4289
+ continue;
4290
+ case "engineering":
4291
+ result = __assign(__assign(__assign({}, result), { notation: "engineering" }), token.options.reduce(function(all, opt2) {
4292
+ return __assign(__assign({}, all), parseNotationOptions2(opt2));
4293
+ }, {}));
4294
+ continue;
4295
+ case "notation-simple":
4296
+ result.notation = "standard";
4297
+ continue;
4298
+ case "unit-width-narrow":
4299
+ result.currencyDisplay = "narrowSymbol";
4300
+ result.unitDisplay = "narrow";
4301
+ continue;
4302
+ case "unit-width-short":
4303
+ result.currencyDisplay = "code";
4304
+ result.unitDisplay = "short";
4305
+ continue;
4306
+ case "unit-width-full-name":
4307
+ result.currencyDisplay = "name";
4308
+ result.unitDisplay = "long";
4309
+ continue;
4310
+ case "unit-width-iso-code":
4311
+ result.currencyDisplay = "symbol";
4312
+ continue;
4313
+ case "scale":
4314
+ result.scale = parseFloat(token.options[0]);
4315
+ continue;
4316
+ case "integer-width":
4317
+ if (token.options.length > 1) {
4318
+ throw new RangeError("integer-width stems only accept a single optional option");
4319
+ }
4320
+ token.options[0].replace(INTEGER_WIDTH_REGEX2, function(_, g1, g2, g3, g4, g5) {
4321
+ if (g1) {
4322
+ result.minimumIntegerDigits = g2.length;
4323
+ } else if (g3 && g4) {
4324
+ throw new Error("We currently do not support maximum integer digits");
4325
+ } else if (g5) {
4326
+ throw new Error("We currently do not support exact integer digits");
4327
+ }
4328
+ return "";
4329
+ });
4330
+ continue;
4331
+ }
4332
+ if (CONCISE_INTEGER_WIDTH_REGEX2.test(token.stem)) {
4333
+ result.minimumIntegerDigits = token.stem.length;
4334
+ continue;
4335
+ }
4336
+ if (FRACTION_PRECISION_REGEX2.test(token.stem)) {
4337
+ if (token.options.length > 1) {
4338
+ throw new RangeError("Fraction-precision stems only accept a single optional option");
4339
+ }
4340
+ token.stem.replace(FRACTION_PRECISION_REGEX2, function(_, g1, g2, g3, g4, g5) {
4341
+ if (g2 === "*") {
4342
+ result.minimumFractionDigits = g1.length;
4343
+ } else if (g3 && g3[0] === "#") {
4344
+ result.maximumFractionDigits = g3.length;
4345
+ } else if (g4 && g5) {
4346
+ result.minimumFractionDigits = g4.length;
4347
+ result.maximumFractionDigits = g4.length + g5.length;
4348
+ } else {
4349
+ result.minimumFractionDigits = g1.length;
4350
+ result.maximumFractionDigits = g1.length;
4351
+ }
4352
+ return "";
4353
+ });
4354
+ var opt = token.options[0];
4355
+ if (opt === "w") {
4356
+ result = __assign(__assign({}, result), { trailingZeroDisplay: "stripIfInteger" });
4357
+ } else if (opt) {
4358
+ result = __assign(__assign({}, result), parseSignificantPrecision2(opt));
4359
+ }
4360
+ continue;
4361
+ }
4362
+ if (SIGNIFICANT_PRECISION_REGEX2.test(token.stem)) {
4363
+ result = __assign(__assign({}, result), parseSignificantPrecision2(token.stem));
4364
+ continue;
4365
+ }
4366
+ var signOpts = parseSign2(token.stem);
4367
+ if (signOpts) {
4368
+ result = __assign(__assign({}, result), signOpts);
4369
+ }
4370
+ var conciseScientificAndEngineeringOpts = parseConciseScientificAndEngineeringStem2(token.stem);
4371
+ if (conciseScientificAndEngineeringOpts) {
4372
+ result = __assign(__assign({}, result), conciseScientificAndEngineeringOpts);
4373
+ }
4374
+ }
4375
+ return result;
4376
+ }
4377
+
4378
+ // ../../node_modules/@formatjs/intl/node_modules/@formatjs/icu-messageformat-parser/lib/time-data.generated.js
4379
+ var timeData2 = {
4380
+ "001": [
4381
+ "H",
4382
+ "h"
4383
+ ],
4384
+ "AC": [
4385
+ "H",
4386
+ "h",
4387
+ "hb",
4388
+ "hB"
4389
+ ],
4390
+ "AD": [
4391
+ "H",
4392
+ "hB"
4393
+ ],
4394
+ "AE": [
4395
+ "h",
4396
+ "hB",
4397
+ "hb",
4398
+ "H"
4399
+ ],
4400
+ "AF": [
4401
+ "H",
4402
+ "hb",
4403
+ "hB",
4404
+ "h"
4405
+ ],
4406
+ "AG": [
4407
+ "h",
4408
+ "hb",
4409
+ "H",
4410
+ "hB"
4411
+ ],
4412
+ "AI": [
4413
+ "H",
4414
+ "h",
4415
+ "hb",
4416
+ "hB"
4417
+ ],
4418
+ "AL": [
4419
+ "h",
4420
+ "H",
4421
+ "hB"
4422
+ ],
4423
+ "AM": [
4424
+ "H",
4425
+ "hB"
4426
+ ],
4427
+ "AO": [
4428
+ "H",
4429
+ "hB"
4430
+ ],
4431
+ "AR": [
4432
+ "H",
4433
+ "h",
4434
+ "hB",
4435
+ "hb"
4436
+ ],
4437
+ "AS": [
4438
+ "h",
4439
+ "H"
4440
+ ],
4441
+ "AT": [
4442
+ "H",
4443
+ "hB"
4444
+ ],
4445
+ "AU": [
4446
+ "h",
4447
+ "hb",
4448
+ "H",
4449
+ "hB"
4450
+ ],
4451
+ "AW": [
4452
+ "H",
4453
+ "hB"
4454
+ ],
4455
+ "AX": [
4456
+ "H"
4457
+ ],
4458
+ "AZ": [
4459
+ "H",
4460
+ "hB",
4461
+ "h"
4462
+ ],
4463
+ "BA": [
4464
+ "H",
4465
+ "hB",
4466
+ "h"
4467
+ ],
4468
+ "BB": [
4469
+ "h",
4470
+ "hb",
4471
+ "H",
4472
+ "hB"
4473
+ ],
4474
+ "BD": [
4475
+ "h",
4476
+ "hB",
4477
+ "H"
4478
+ ],
4479
+ "BE": [
4480
+ "H",
4481
+ "hB"
4482
+ ],
4483
+ "BF": [
4484
+ "H",
4485
+ "hB"
4486
+ ],
4487
+ "BG": [
4488
+ "H",
4489
+ "hB",
4490
+ "h"
4491
+ ],
4492
+ "BH": [
4493
+ "h",
4494
+ "hB",
4495
+ "hb",
4496
+ "H"
4497
+ ],
4498
+ "BJ": [
4499
+ "H",
4500
+ "hB"
4501
+ ],
4502
+ "BL": [
4503
+ "H",
4504
+ "hB"
4505
+ ],
4506
+ "BM": [
4507
+ "h",
4508
+ "hb",
4509
+ "H",
4510
+ "hB"
4511
+ ],
4512
+ "BN": [
4513
+ "hb",
4514
+ "hB",
4515
+ "h",
4516
+ "H"
4517
+ ],
4518
+ "BO": [
4519
+ "H",
4520
+ "hB",
4521
+ "h",
4522
+ "hb"
4523
+ ],
4524
+ "BQ": [
4525
+ "H"
4526
+ ],
4527
+ "BR": [
4528
+ "H",
4529
+ "hB"
4530
+ ],
4531
+ "BS": [
4532
+ "h",
4533
+ "hb",
4534
+ "H",
4535
+ "hB"
4536
+ ],
4537
+ "BT": [
4538
+ "h",
4539
+ "H"
4540
+ ],
4541
+ "BW": [
4542
+ "H",
4543
+ "h",
4544
+ "hb",
4545
+ "hB"
4546
+ ],
4547
+ "BZ": [
4548
+ "H",
4549
+ "h",
4550
+ "hb",
4551
+ "hB"
4552
+ ],
4553
+ "CA": [
4554
+ "h",
4555
+ "hb",
4556
+ "H",
4557
+ "hB"
4558
+ ],
4559
+ "CC": [
4560
+ "H",
4561
+ "h",
4562
+ "hb",
4563
+ "hB"
4564
+ ],
4565
+ "CD": [
4566
+ "hB",
4567
+ "H"
4568
+ ],
4569
+ "CF": [
4570
+ "H",
4571
+ "h",
4572
+ "hB"
4573
+ ],
4574
+ "CG": [
4575
+ "H",
4576
+ "hB"
4577
+ ],
4578
+ "CH": [
4579
+ "H",
4580
+ "hB",
4581
+ "h"
4582
+ ],
4583
+ "CI": [
4584
+ "H",
4585
+ "hB"
4586
+ ],
4587
+ "CK": [
4588
+ "H",
4589
+ "h",
4590
+ "hb",
4591
+ "hB"
4592
+ ],
4593
+ "CL": [
4594
+ "H",
4595
+ "h",
4596
+ "hB",
4597
+ "hb"
4598
+ ],
4599
+ "CM": [
4600
+ "H",
4601
+ "h",
4602
+ "hB"
4603
+ ],
4604
+ "CN": [
4605
+ "H",
4606
+ "hB",
4607
+ "hb",
4608
+ "h"
4609
+ ],
4610
+ "CO": [
4611
+ "h",
4612
+ "H",
4613
+ "hB",
4614
+ "hb"
4615
+ ],
4616
+ "CP": [
4617
+ "H"
4618
+ ],
4619
+ "CR": [
4620
+ "H",
4621
+ "h",
4622
+ "hB",
4623
+ "hb"
4624
+ ],
4625
+ "CU": [
4626
+ "H",
4627
+ "h",
4628
+ "hB",
4629
+ "hb"
4630
+ ],
4631
+ "CV": [
4632
+ "H",
4633
+ "hB"
4634
+ ],
4635
+ "CX": [
4636
+ "H",
4637
+ "h",
4638
+ "hb",
4639
+ "hB"
4640
+ ],
4641
+ "CY": [
4642
+ "h",
4643
+ "H",
4644
+ "hb",
4645
+ "hB"
4646
+ ],
4647
+ "CZ": [
4648
+ "H"
4649
+ ],
4650
+ "DE": [
4651
+ "H",
4652
+ "hB"
4653
+ ],
4654
+ "DG": [
4655
+ "H",
4656
+ "h",
4657
+ "hb",
4658
+ "hB"
4659
+ ],
4660
+ "DJ": [
4661
+ "h",
4662
+ "H"
4663
+ ],
4664
+ "DK": [
4665
+ "H"
4666
+ ],
4667
+ "DM": [
4668
+ "h",
4669
+ "hb",
4670
+ "H",
4671
+ "hB"
4672
+ ],
4673
+ "DO": [
4674
+ "h",
4675
+ "H",
4676
+ "hB",
4677
+ "hb"
4678
+ ],
4679
+ "DZ": [
4680
+ "h",
4681
+ "hB",
4682
+ "hb",
4683
+ "H"
4684
+ ],
4685
+ "EA": [
4686
+ "H",
4687
+ "h",
4688
+ "hB",
4689
+ "hb"
4690
+ ],
4691
+ "EC": [
4692
+ "H",
4693
+ "hB",
4694
+ "h",
4695
+ "hb"
4696
+ ],
4697
+ "EE": [
4698
+ "H",
4699
+ "hB"
4700
+ ],
4701
+ "EG": [
4702
+ "h",
4703
+ "hB",
4704
+ "hb",
4705
+ "H"
4706
+ ],
4707
+ "EH": [
4708
+ "h",
4709
+ "hB",
4710
+ "hb",
4711
+ "H"
4712
+ ],
4713
+ "ER": [
4714
+ "h",
4715
+ "H"
4716
+ ],
4717
+ "ES": [
4718
+ "H",
4719
+ "hB",
4720
+ "h",
4721
+ "hb"
4722
+ ],
4723
+ "ET": [
4724
+ "hB",
4725
+ "hb",
4726
+ "h",
4727
+ "H"
4728
+ ],
4729
+ "FI": [
4730
+ "H"
4731
+ ],
4732
+ "FJ": [
4733
+ "h",
4734
+ "hb",
4735
+ "H",
4736
+ "hB"
4737
+ ],
4738
+ "FK": [
4739
+ "H",
4740
+ "h",
4741
+ "hb",
4742
+ "hB"
4743
+ ],
4744
+ "FM": [
4745
+ "h",
4746
+ "hb",
4747
+ "H",
4748
+ "hB"
4749
+ ],
4750
+ "FR": [
4751
+ "H",
4752
+ "hB"
4753
+ ],
4754
+ "GA": [
4755
+ "H",
4756
+ "hB"
4757
+ ],
4758
+ "GB": [
4759
+ "H",
4760
+ "h",
4761
+ "hb",
4762
+ "hB"
4763
+ ],
4764
+ "GD": [
4765
+ "h",
4766
+ "hb",
4767
+ "H",
4768
+ "hB"
4769
+ ],
4770
+ "GE": [
4771
+ "H",
4772
+ "hB",
4773
+ "h"
4774
+ ],
4775
+ "GF": [
4776
+ "H",
4777
+ "hB"
4778
+ ],
4779
+ "GG": [
4780
+ "H",
4781
+ "h",
4782
+ "hb",
4783
+ "hB"
4784
+ ],
4785
+ "GH": [
4786
+ "h",
4787
+ "H"
4788
+ ],
4789
+ "GI": [
4790
+ "H",
4791
+ "h",
4792
+ "hb",
4793
+ "hB"
4794
+ ],
4795
+ "GM": [
4796
+ "h",
4797
+ "hb",
4798
+ "H",
4799
+ "hB"
4800
+ ],
4801
+ "GN": [
4802
+ "H",
4803
+ "hB"
4804
+ ],
4805
+ "GP": [
4806
+ "H",
4807
+ "hB"
4808
+ ],
4809
+ "GQ": [
4810
+ "H",
4811
+ "hB",
4812
+ "h",
4813
+ "hb"
4814
+ ],
4815
+ "GR": [
4816
+ "h",
4817
+ "H",
4818
+ "hb",
4819
+ "hB"
4820
+ ],
4821
+ "GT": [
4822
+ "H",
4823
+ "h",
4824
+ "hB",
4825
+ "hb"
4826
+ ],
4827
+ "GU": [
4828
+ "h",
4829
+ "hb",
4830
+ "H",
4831
+ "hB"
4832
+ ],
4833
+ "GW": [
4834
+ "H",
4835
+ "hB"
4836
+ ],
4837
+ "GY": [
4838
+ "h",
4839
+ "hb",
4840
+ "H",
4841
+ "hB"
4842
+ ],
4843
+ "HK": [
4844
+ "h",
4845
+ "hB",
4846
+ "hb",
4847
+ "H"
4848
+ ],
4849
+ "HN": [
4850
+ "H",
4851
+ "h",
4852
+ "hB",
4853
+ "hb"
4854
+ ],
4855
+ "HR": [
4856
+ "H",
4857
+ "hB"
4858
+ ],
4859
+ "IC": [
4860
+ "H",
4861
+ "h",
4862
+ "hB",
4863
+ "hb"
4864
+ ],
4865
+ "ID": [
4866
+ "H"
4867
+ ],
4868
+ "IE": [
4869
+ "H",
4870
+ "h",
4871
+ "hb",
4872
+ "hB"
4873
+ ],
4874
+ "IL": [
4875
+ "H",
4876
+ "hB"
4877
+ ],
4878
+ "IM": [
4879
+ "H",
4880
+ "h",
4881
+ "hb",
4882
+ "hB"
4883
+ ],
4884
+ "IN": [
4885
+ "h",
4886
+ "H"
4887
+ ],
4888
+ "IO": [
4889
+ "H",
4890
+ "h",
4891
+ "hb",
4892
+ "hB"
4893
+ ],
4894
+ "IQ": [
4895
+ "h",
4896
+ "hB",
4897
+ "hb",
4898
+ "H"
4899
+ ],
4900
+ "IR": [
4901
+ "hB",
4902
+ "H"
4903
+ ],
4904
+ "IS": [
4905
+ "H"
4906
+ ],
4907
+ "IT": [
4908
+ "H",
4909
+ "hB"
4910
+ ],
4911
+ "JE": [
4912
+ "H",
4913
+ "h",
4914
+ "hb",
4915
+ "hB"
4916
+ ],
4917
+ "JM": [
4918
+ "h",
4919
+ "hb",
4920
+ "H",
4921
+ "hB"
4922
+ ],
4923
+ "JO": [
4924
+ "h",
4925
+ "hB",
4926
+ "hb",
4927
+ "H"
4928
+ ],
4929
+ "JP": [
4930
+ "H",
4931
+ "h",
4932
+ "K"
4933
+ ],
4934
+ "KE": [
4935
+ "hB",
4936
+ "hb",
4937
+ "H",
4938
+ "h"
4939
+ ],
4940
+ "KG": [
4941
+ "H",
4942
+ "h",
4943
+ "hB",
4944
+ "hb"
4945
+ ],
4946
+ "KH": [
4947
+ "hB",
4948
+ "h",
4949
+ "H",
4950
+ "hb"
4951
+ ],
4952
+ "KI": [
4953
+ "h",
4954
+ "hb",
4955
+ "H",
4956
+ "hB"
4957
+ ],
4958
+ "KM": [
4959
+ "H",
4960
+ "h",
4961
+ "hB",
4962
+ "hb"
4963
+ ],
4964
+ "KN": [
4965
+ "h",
4966
+ "hb",
4967
+ "H",
4968
+ "hB"
4969
+ ],
4970
+ "KP": [
4971
+ "h",
4972
+ "H",
4973
+ "hB",
4974
+ "hb"
4975
+ ],
4976
+ "KR": [
4977
+ "h",
4978
+ "H",
4979
+ "hB",
4980
+ "hb"
4981
+ ],
4982
+ "KW": [
4983
+ "h",
4984
+ "hB",
4985
+ "hb",
4986
+ "H"
4987
+ ],
4988
+ "KY": [
4989
+ "h",
4990
+ "hb",
4991
+ "H",
4992
+ "hB"
4993
+ ],
4994
+ "KZ": [
4995
+ "H",
4996
+ "hB"
4997
+ ],
4998
+ "LA": [
4999
+ "H",
5000
+ "hb",
5001
+ "hB",
5002
+ "h"
5003
+ ],
5004
+ "LB": [
5005
+ "h",
5006
+ "hB",
5007
+ "hb",
5008
+ "H"
5009
+ ],
5010
+ "LC": [
5011
+ "h",
5012
+ "hb",
5013
+ "H",
5014
+ "hB"
5015
+ ],
5016
+ "LI": [
5017
+ "H",
5018
+ "hB",
5019
+ "h"
5020
+ ],
5021
+ "LK": [
5022
+ "H",
5023
+ "h",
5024
+ "hB",
5025
+ "hb"
5026
+ ],
5027
+ "LR": [
5028
+ "h",
5029
+ "hb",
5030
+ "H",
5031
+ "hB"
5032
+ ],
5033
+ "LS": [
5034
+ "h",
5035
+ "H"
5036
+ ],
5037
+ "LT": [
5038
+ "H",
5039
+ "h",
5040
+ "hb",
5041
+ "hB"
5042
+ ],
5043
+ "LU": [
5044
+ "H",
5045
+ "h",
5046
+ "hB"
5047
+ ],
5048
+ "LV": [
5049
+ "H",
5050
+ "hB",
5051
+ "hb",
5052
+ "h"
5053
+ ],
5054
+ "LY": [
5055
+ "h",
5056
+ "hB",
5057
+ "hb",
5058
+ "H"
5059
+ ],
5060
+ "MA": [
5061
+ "H",
5062
+ "h",
5063
+ "hB",
5064
+ "hb"
5065
+ ],
5066
+ "MC": [
5067
+ "H",
5068
+ "hB"
5069
+ ],
5070
+ "MD": [
5071
+ "H",
5072
+ "hB"
5073
+ ],
5074
+ "ME": [
5075
+ "H",
5076
+ "hB",
5077
+ "h"
5078
+ ],
5079
+ "MF": [
5080
+ "H",
5081
+ "hB"
5082
+ ],
5083
+ "MH": [
5084
+ "h",
5085
+ "hb",
5086
+ "H",
5087
+ "hB"
5088
+ ],
5089
+ "MK": [
5090
+ "H",
5091
+ "h",
5092
+ "hb",
5093
+ "hB"
5094
+ ],
5095
+ "ML": [
5096
+ "H"
5097
+ ],
5098
+ "MM": [
5099
+ "hB",
5100
+ "hb",
5101
+ "H",
5102
+ "h"
5103
+ ],
5104
+ "MN": [
5105
+ "H",
5106
+ "h",
5107
+ "hb",
5108
+ "hB"
5109
+ ],
5110
+ "MO": [
5111
+ "h",
5112
+ "hB",
5113
+ "hb",
5114
+ "H"
5115
+ ],
5116
+ "MP": [
5117
+ "h",
5118
+ "hb",
5119
+ "H",
5120
+ "hB"
5121
+ ],
5122
+ "MQ": [
5123
+ "H",
5124
+ "hB"
5125
+ ],
5126
+ "MR": [
5127
+ "h",
5128
+ "hB",
5129
+ "hb",
5130
+ "H"
5131
+ ],
5132
+ "MS": [
5133
+ "H",
5134
+ "h",
5135
+ "hb",
5136
+ "hB"
5137
+ ],
5138
+ "MW": [
5139
+ "h",
5140
+ "hb",
5141
+ "H",
5142
+ "hB"
5143
+ ],
5144
+ "MX": [
5145
+ "H",
5146
+ "h",
5147
+ "hB",
5148
+ "hb"
5149
+ ],
5150
+ "MY": [
5151
+ "hb",
5152
+ "hB",
5153
+ "h",
5154
+ "H"
5155
+ ],
5156
+ "MZ": [
5157
+ "H",
5158
+ "hB"
5159
+ ],
5160
+ "NA": [
5161
+ "h",
5162
+ "H",
5163
+ "hB",
5164
+ "hb"
5165
+ ],
5166
+ "NC": [
5167
+ "H",
5168
+ "hB"
5169
+ ],
5170
+ "NE": [
5171
+ "H"
5172
+ ],
5173
+ "NF": [
5174
+ "H",
5175
+ "h",
5176
+ "hb",
5177
+ "hB"
5178
+ ],
5179
+ "NG": [
5180
+ "H",
5181
+ "h",
5182
+ "hb",
5183
+ "hB"
5184
+ ],
5185
+ "NI": [
5186
+ "H",
5187
+ "h",
5188
+ "hB",
5189
+ "hb"
5190
+ ],
5191
+ "NL": [
5192
+ "H",
5193
+ "hB"
5194
+ ],
5195
+ "NP": [
5196
+ "H",
5197
+ "h",
5198
+ "hB"
5199
+ ],
5200
+ "NR": [
5201
+ "H",
5202
+ "h",
5203
+ "hb",
5204
+ "hB"
5205
+ ],
5206
+ "NU": [
5207
+ "H",
5208
+ "h",
5209
+ "hb",
5210
+ "hB"
5211
+ ],
5212
+ "NZ": [
5213
+ "h",
5214
+ "hb",
5215
+ "H",
5216
+ "hB"
5217
+ ],
5218
+ "OM": [
5219
+ "h",
5220
+ "hB",
5221
+ "hb",
5222
+ "H"
5223
+ ],
5224
+ "PA": [
5225
+ "h",
5226
+ "H",
5227
+ "hB",
5228
+ "hb"
5229
+ ],
5230
+ "PE": [
5231
+ "H",
5232
+ "hB",
5233
+ "h",
5234
+ "hb"
5235
+ ],
5236
+ "PF": [
5237
+ "H",
5238
+ "h",
5239
+ "hB"
5240
+ ],
5241
+ "PG": [
5242
+ "h",
5243
+ "H"
5244
+ ],
5245
+ "PH": [
5246
+ "h",
5247
+ "hB",
5248
+ "hb",
5249
+ "H"
5250
+ ],
5251
+ "PK": [
5252
+ "h",
5253
+ "hB",
5254
+ "H"
5255
+ ],
5256
+ "PM": [
5257
+ "H",
5258
+ "hB"
5259
+ ],
5260
+ "PN": [
5261
+ "H",
5262
+ "h",
5263
+ "hb",
5264
+ "hB"
5265
+ ],
5266
+ "PR": [
5267
+ "h",
5268
+ "H",
5269
+ "hB",
5270
+ "hb"
5271
+ ],
5272
+ "PS": [
5273
+ "h",
5274
+ "hB",
5275
+ "hb",
5276
+ "H"
5277
+ ],
5278
+ "PT": [
5279
+ "H",
5280
+ "hB"
5281
+ ],
5282
+ "PW": [
5283
+ "h",
5284
+ "H"
5285
+ ],
5286
+ "PY": [
5287
+ "H",
5288
+ "h",
5289
+ "hB",
5290
+ "hb"
5291
+ ],
5292
+ "QA": [
5293
+ "h",
5294
+ "hB",
5295
+ "hb",
5296
+ "H"
5297
+ ],
5298
+ "RE": [
5299
+ "H",
5300
+ "hB"
5301
+ ],
5302
+ "RO": [
5303
+ "H",
5304
+ "hB"
5305
+ ],
5306
+ "RS": [
5307
+ "H",
5308
+ "hB",
5309
+ "h"
5310
+ ],
5311
+ "RU": [
5312
+ "H"
5313
+ ],
5314
+ "SA": [
5315
+ "h",
5316
+ "hB",
5317
+ "hb",
5318
+ "H"
5319
+ ],
5320
+ "SB": [
5321
+ "h",
5322
+ "hb",
5323
+ "H",
5324
+ "hB"
5325
+ ],
5326
+ "SC": [
5327
+ "H",
5328
+ "h",
5329
+ "hB"
5330
+ ],
5331
+ "SD": [
5332
+ "h",
5333
+ "hB",
5334
+ "hb",
5335
+ "H"
5336
+ ],
5337
+ "SE": [
5338
+ "H"
5339
+ ],
5340
+ "SG": [
5341
+ "h",
5342
+ "hb",
5343
+ "H",
5344
+ "hB"
5345
+ ],
5346
+ "SH": [
5347
+ "H",
5348
+ "h",
5349
+ "hb",
5350
+ "hB"
5351
+ ],
5352
+ "SI": [
5353
+ "H",
5354
+ "hB"
5355
+ ],
5356
+ "SJ": [
5357
+ "H"
5358
+ ],
5359
+ "SK": [
5360
+ "H"
5361
+ ],
5362
+ "SL": [
5363
+ "h",
5364
+ "hb",
5365
+ "H",
5366
+ "hB"
5367
+ ],
5368
+ "SM": [
5369
+ "H",
5370
+ "h",
5371
+ "hB"
5372
+ ],
5373
+ "SN": [
5374
+ "H",
5375
+ "h",
5376
+ "hB"
5377
+ ],
5378
+ "SO": [
5379
+ "h",
5380
+ "H"
5381
+ ],
5382
+ "SR": [
5383
+ "H",
5384
+ "hB"
5385
+ ],
5386
+ "SS": [
5387
+ "h",
5388
+ "hb",
5389
+ "H",
5390
+ "hB"
5391
+ ],
5392
+ "ST": [
5393
+ "H",
5394
+ "hB"
5395
+ ],
5396
+ "SV": [
5397
+ "H",
5398
+ "h",
5399
+ "hB",
5400
+ "hb"
5401
+ ],
5402
+ "SX": [
5403
+ "H",
5404
+ "h",
5405
+ "hb",
5406
+ "hB"
5407
+ ],
5408
+ "SY": [
5409
+ "h",
5410
+ "hB",
5411
+ "hb",
5412
+ "H"
5413
+ ],
5414
+ "SZ": [
5415
+ "h",
5416
+ "hb",
5417
+ "H",
5418
+ "hB"
5419
+ ],
5420
+ "TA": [
5421
+ "H",
5422
+ "h",
5423
+ "hb",
5424
+ "hB"
5425
+ ],
5426
+ "TC": [
5427
+ "h",
5428
+ "hb",
5429
+ "H",
5430
+ "hB"
5431
+ ],
5432
+ "TD": [
5433
+ "h",
5434
+ "H",
5435
+ "hB"
5436
+ ],
5437
+ "TF": [
5438
+ "H",
5439
+ "h",
5440
+ "hB"
5441
+ ],
5442
+ "TG": [
5443
+ "H",
5444
+ "hB"
5445
+ ],
5446
+ "TL": [
5447
+ "H",
5448
+ "hB",
5449
+ "hb",
5450
+ "h"
5451
+ ],
5452
+ "TN": [
5453
+ "h",
5454
+ "hB",
5455
+ "hb",
5456
+ "H"
5457
+ ],
5458
+ "TO": [
5459
+ "h",
5460
+ "H"
5461
+ ],
5462
+ "TR": [
5463
+ "H",
5464
+ "hB"
5465
+ ],
5466
+ "TT": [
5467
+ "h",
5468
+ "hb",
5469
+ "H",
5470
+ "hB"
5471
+ ],
5472
+ "TW": [
5473
+ "hB",
5474
+ "hb",
5475
+ "h",
5476
+ "H"
5477
+ ],
5478
+ "TZ": [
5479
+ "hB",
5480
+ "hb",
5481
+ "H",
5482
+ "h"
5483
+ ],
5484
+ "UA": [
5485
+ "H",
5486
+ "hB",
5487
+ "h"
5488
+ ],
5489
+ "UG": [
5490
+ "hB",
5491
+ "hb",
5492
+ "H",
5493
+ "h"
5494
+ ],
5495
+ "UM": [
5496
+ "h",
5497
+ "hb",
5498
+ "H",
5499
+ "hB"
5500
+ ],
5501
+ "US": [
5502
+ "h",
5503
+ "hb",
5504
+ "H",
5505
+ "hB"
5506
+ ],
5507
+ "UY": [
5508
+ "H",
5509
+ "h",
5510
+ "hB",
5511
+ "hb"
5512
+ ],
5513
+ "UZ": [
5514
+ "H",
5515
+ "hB",
5516
+ "h"
5517
+ ],
5518
+ "VA": [
5519
+ "H",
5520
+ "h",
5521
+ "hB"
5522
+ ],
5523
+ "VC": [
5524
+ "h",
5525
+ "hb",
5526
+ "H",
5527
+ "hB"
5528
+ ],
5529
+ "VE": [
5530
+ "h",
5531
+ "H",
5532
+ "hB",
5533
+ "hb"
5534
+ ],
5535
+ "VG": [
5536
+ "h",
5537
+ "hb",
5538
+ "H",
5539
+ "hB"
5540
+ ],
5541
+ "VI": [
5542
+ "h",
5543
+ "hb",
5544
+ "H",
5545
+ "hB"
5546
+ ],
5547
+ "VU": [
5548
+ "h",
5549
+ "H"
5550
+ ],
5551
+ "WF": [
5552
+ "H",
5553
+ "hB"
5554
+ ],
5555
+ "WS": [
5556
+ "h",
5557
+ "H"
5558
+ ],
5559
+ "XK": [
5560
+ "H",
5561
+ "hB",
5562
+ "h"
5563
+ ],
5564
+ "YE": [
5565
+ "h",
5566
+ "hB",
5567
+ "hb",
5568
+ "H"
5569
+ ],
5570
+ "YT": [
5571
+ "H",
5572
+ "hB"
5573
+ ],
5574
+ "ZA": [
5575
+ "H",
5576
+ "h",
5577
+ "hb",
5578
+ "hB"
5579
+ ],
5580
+ "ZM": [
5581
+ "h",
5582
+ "hb",
5583
+ "H",
5584
+ "hB"
5585
+ ],
5586
+ "af-ZA": [
5587
+ "H",
5588
+ "h",
5589
+ "hB",
5590
+ "hb"
5591
+ ],
5592
+ "ar-001": [
5593
+ "h",
5594
+ "hB",
5595
+ "hb",
5596
+ "H"
5597
+ ],
5598
+ "ca-ES": [
5599
+ "H",
5600
+ "h",
5601
+ "hB"
5602
+ ],
5603
+ "en-001": [
5604
+ "h",
5605
+ "hb",
5606
+ "H",
5607
+ "hB"
5608
+ ],
5609
+ "es-BO": [
5610
+ "H",
5611
+ "h",
5612
+ "hB",
5613
+ "hb"
5614
+ ],
5615
+ "es-BR": [
5616
+ "H",
5617
+ "h",
5618
+ "hB",
5619
+ "hb"
5620
+ ],
5621
+ "es-EC": [
5622
+ "H",
5623
+ "h",
5624
+ "hB",
5625
+ "hb"
5626
+ ],
5627
+ "es-ES": [
5628
+ "H",
5629
+ "h",
5630
+ "hB",
5631
+ "hb"
5632
+ ],
5633
+ "es-GQ": [
5634
+ "H",
5635
+ "h",
5636
+ "hB",
5637
+ "hb"
5638
+ ],
5639
+ "es-PE": [
5640
+ "H",
5641
+ "h",
5642
+ "hB",
5643
+ "hb"
5644
+ ],
5645
+ "fr-CA": [
5646
+ "H",
5647
+ "h",
5648
+ "hB"
5649
+ ],
5650
+ "gl-ES": [
5651
+ "H",
5652
+ "h",
5653
+ "hB"
5654
+ ],
5655
+ "gu-IN": [
5656
+ "hB",
5657
+ "hb",
5658
+ "h",
5659
+ "H"
5660
+ ],
5661
+ "hi-IN": [
5662
+ "hB",
5663
+ "h",
5664
+ "H"
5665
+ ],
5666
+ "it-CH": [
5667
+ "H",
5668
+ "h",
5669
+ "hB"
5670
+ ],
5671
+ "it-IT": [
5672
+ "H",
5673
+ "h",
5674
+ "hB"
5675
+ ],
5676
+ "kn-IN": [
5677
+ "hB",
5678
+ "h",
5679
+ "H"
5680
+ ],
5681
+ "ml-IN": [
5682
+ "hB",
5683
+ "h",
5684
+ "H"
5685
+ ],
5686
+ "mr-IN": [
5687
+ "hB",
5688
+ "hb",
5689
+ "h",
5690
+ "H"
5691
+ ],
5692
+ "pa-IN": [
5693
+ "hB",
5694
+ "hb",
5695
+ "h",
5696
+ "H"
5697
+ ],
5698
+ "ta-IN": [
5699
+ "hB",
5700
+ "h",
5701
+ "hb",
5702
+ "H"
5703
+ ],
5704
+ "te-IN": [
5705
+ "hB",
5706
+ "h",
5707
+ "H"
5708
+ ],
5709
+ "zu-ZA": [
5710
+ "H",
5711
+ "hB",
5712
+ "hb",
5713
+ "h"
5714
+ ]
5715
+ };
5716
+
5717
+ // ../../node_modules/@formatjs/intl/node_modules/@formatjs/icu-messageformat-parser/lib/date-time-pattern-generator.js
5718
+ function getBestPattern2(skeleton, locale) {
5719
+ var skeletonCopy = "";
5720
+ for (var patternPos = 0; patternPos < skeleton.length; patternPos++) {
5721
+ var patternChar = skeleton.charAt(patternPos);
5722
+ if (patternChar === "j") {
5723
+ var extraLength = 0;
5724
+ while (patternPos + 1 < skeleton.length && skeleton.charAt(patternPos + 1) === patternChar) {
5725
+ extraLength++;
5726
+ patternPos++;
5727
+ }
5728
+ var hourLen = 1 + (extraLength & 1);
5729
+ var dayPeriodLen = extraLength < 2 ? 1 : 3 + (extraLength >> 1);
5730
+ var dayPeriodChar = "a";
5731
+ var hourChar = getDefaultHourSymbolFromLocale2(locale);
5732
+ if (hourChar == "H" || hourChar == "k") {
5733
+ dayPeriodLen = 0;
5734
+ }
5735
+ while (dayPeriodLen-- > 0) {
5736
+ skeletonCopy += dayPeriodChar;
5737
+ }
5738
+ while (hourLen-- > 0) {
5739
+ skeletonCopy = hourChar + skeletonCopy;
5740
+ }
5741
+ } else if (patternChar === "J") {
5742
+ skeletonCopy += "H";
5743
+ } else {
5744
+ skeletonCopy += patternChar;
5745
+ }
5746
+ }
5747
+ return skeletonCopy;
5748
+ }
5749
+ function getDefaultHourSymbolFromLocale2(locale) {
5750
+ var hourCycle = locale.hourCycle;
5751
+ if (hourCycle === void 0 && // @ts-ignore hourCycle(s) is not identified yet
5752
+ locale.hourCycles && // @ts-ignore
5753
+ locale.hourCycles.length) {
5754
+ hourCycle = locale.hourCycles[0];
5755
+ }
5756
+ if (hourCycle) {
5757
+ switch (hourCycle) {
5758
+ case "h24":
5759
+ return "k";
5760
+ case "h23":
5761
+ return "H";
5762
+ case "h12":
5763
+ return "h";
5764
+ case "h11":
5765
+ return "K";
5766
+ default:
5767
+ throw new Error("Invalid hourCycle");
5768
+ }
5769
+ }
5770
+ var languageTag = locale.language;
5771
+ var regionTag;
5772
+ if (languageTag !== "root") {
5773
+ regionTag = locale.maximize().region;
5774
+ }
5775
+ var hourCycles = timeData2[regionTag || ""] || timeData2[languageTag || ""] || timeData2["".concat(languageTag, "-001")] || timeData2["001"];
5776
+ return hourCycles[0];
5777
+ }
5778
+
5779
+ // ../../node_modules/@formatjs/intl/node_modules/@formatjs/icu-messageformat-parser/lib/parser.js
5780
+ var _a2;
5781
+ var SPACE_SEPARATOR_START_REGEX2 = new RegExp("^".concat(SPACE_SEPARATOR_REGEX2.source, "*"));
5782
+ var SPACE_SEPARATOR_END_REGEX2 = new RegExp("".concat(SPACE_SEPARATOR_REGEX2.source, "*$"));
5783
+ function createLocation2(start, end) {
5784
+ return { start, end };
5785
+ }
5786
+ var hasNativeStartsWith2 = !!String.prototype.startsWith;
5787
+ var hasNativeFromCodePoint2 = !!String.fromCodePoint;
5788
+ var hasNativeFromEntries2 = !!Object.fromEntries;
5789
+ var hasNativeCodePointAt2 = !!String.prototype.codePointAt;
5790
+ var hasTrimStart2 = !!String.prototype.trimStart;
5791
+ var hasTrimEnd2 = !!String.prototype.trimEnd;
5792
+ var hasNativeIsSafeInteger2 = !!Number.isSafeInteger;
5793
+ var isSafeInteger2 = hasNativeIsSafeInteger2 ? Number.isSafeInteger : function(n) {
5794
+ return typeof n === "number" && isFinite(n) && Math.floor(n) === n && Math.abs(n) <= 9007199254740991;
5795
+ };
5796
+ var REGEX_SUPPORTS_U_AND_Y2 = true;
5797
+ try {
5798
+ re = RE2("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
5799
+ REGEX_SUPPORTS_U_AND_Y2 = ((_a2 = re.exec("a")) === null || _a2 === void 0 ? void 0 : _a2[0]) === "a";
5800
+ } catch (_) {
5801
+ REGEX_SUPPORTS_U_AND_Y2 = false;
5802
+ }
5803
+ var re;
5804
+ var startsWith4 = hasNativeStartsWith2 ? (
5805
+ // Native
5806
+ function startsWith5(s, search, position) {
5807
+ return s.startsWith(search, position);
5808
+ }
5809
+ ) : (
5810
+ // For IE11
5811
+ function startsWith6(s, search, position) {
5812
+ return s.slice(position, position + search.length) === search;
5813
+ }
5814
+ );
5815
+ var fromCodePoint3 = hasNativeFromCodePoint2 ? String.fromCodePoint : (
5816
+ // IE11
5817
+ function fromCodePoint4() {
5818
+ var codePoints = [];
5819
+ for (var _i = 0; _i < arguments.length; _i++) {
5820
+ codePoints[_i] = arguments[_i];
5821
+ }
5822
+ var elements = "";
5823
+ var length = codePoints.length;
5824
+ var i = 0;
5825
+ var code;
5826
+ while (length > i) {
5827
+ code = codePoints[i++];
5828
+ if (code > 1114111)
5829
+ throw RangeError(code + " is not a valid code point");
5830
+ elements += code < 65536 ? String.fromCharCode(code) : String.fromCharCode(((code -= 65536) >> 10) + 55296, code % 1024 + 56320);
5831
+ }
5832
+ return elements;
5833
+ }
5834
+ );
5835
+ var fromEntries3 = (
5836
+ // native
5837
+ hasNativeFromEntries2 ? Object.fromEntries : (
5838
+ // Ponyfill
5839
+ function fromEntries4(entries) {
5840
+ var obj = {};
5841
+ for (var _i = 0, entries_1 = entries; _i < entries_1.length; _i++) {
5842
+ var _a3 = entries_1[_i], k = _a3[0], v = _a3[1];
5843
+ obj[k] = v;
5844
+ }
5845
+ return obj;
5846
+ }
5847
+ )
5848
+ );
5849
+ var codePointAt4 = hasNativeCodePointAt2 ? (
5850
+ // Native
5851
+ function codePointAt5(s, index) {
5852
+ return s.codePointAt(index);
5853
+ }
5854
+ ) : (
5855
+ // IE 11
5856
+ function codePointAt6(s, index) {
5857
+ var size = s.length;
5858
+ if (index < 0 || index >= size) {
5859
+ return void 0;
5860
+ }
5861
+ var first = s.charCodeAt(index);
5862
+ var second;
5863
+ return first < 55296 || first > 56319 || index + 1 === size || (second = s.charCodeAt(index + 1)) < 56320 || second > 57343 ? first : (first - 55296 << 10) + (second - 56320) + 65536;
5864
+ }
5865
+ );
5866
+ var trimStart4 = hasTrimStart2 ? (
5867
+ // Native
5868
+ function trimStart5(s) {
5869
+ return s.trimStart();
5870
+ }
5871
+ ) : (
5872
+ // Ponyfill
5873
+ function trimStart6(s) {
5874
+ return s.replace(SPACE_SEPARATOR_START_REGEX2, "");
5875
+ }
5876
+ );
5877
+ var trimEnd4 = hasTrimEnd2 ? (
5878
+ // Native
5879
+ function trimEnd5(s) {
5880
+ return s.trimEnd();
5881
+ }
5882
+ ) : (
5883
+ // Ponyfill
5884
+ function trimEnd6(s) {
5885
+ return s.replace(SPACE_SEPARATOR_END_REGEX2, "");
5886
+ }
5887
+ );
5888
+ function RE2(s, flag) {
5889
+ return new RegExp(s, flag);
5890
+ }
5891
+ var matchIdentifierAtIndex2;
5892
+ if (REGEX_SUPPORTS_U_AND_Y2) {
5893
+ IDENTIFIER_PREFIX_RE_1 = RE2("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
5894
+ matchIdentifierAtIndex2 = function matchIdentifierAtIndex3(s, index) {
5895
+ var _a3;
5896
+ IDENTIFIER_PREFIX_RE_1.lastIndex = index;
5897
+ var match = IDENTIFIER_PREFIX_RE_1.exec(s);
5898
+ return (_a3 = match[1]) !== null && _a3 !== void 0 ? _a3 : "";
5899
+ };
5900
+ } else {
5901
+ matchIdentifierAtIndex2 = function matchIdentifierAtIndex3(s, index) {
5902
+ var match = [];
5903
+ while (true) {
5904
+ var c = codePointAt4(s, index);
5905
+ if (c === void 0 || _isWhiteSpace2(c) || _isPatternSyntax2(c)) {
5906
+ break;
5907
+ }
5908
+ match.push(c);
5909
+ index += c >= 65536 ? 2 : 1;
5910
+ }
5911
+ return fromCodePoint3.apply(void 0, match);
5912
+ };
5913
+ }
5914
+ var IDENTIFIER_PREFIX_RE_1;
5915
+ var Parser2 = (
5916
+ /** @class */
5917
+ function() {
5918
+ function Parser3(message, options) {
5919
+ if (options === void 0) {
5920
+ options = {};
5921
+ }
5922
+ this.message = message;
5923
+ this.position = { offset: 0, line: 1, column: 1 };
5924
+ this.ignoreTag = !!options.ignoreTag;
5925
+ this.locale = options.locale;
5926
+ this.requiresOtherClause = !!options.requiresOtherClause;
5927
+ this.shouldParseSkeletons = !!options.shouldParseSkeletons;
5928
+ }
5929
+ Parser3.prototype.parse = function() {
5930
+ if (this.offset() !== 0) {
5931
+ throw Error("parser can only be used once");
5932
+ }
5933
+ return this.parseMessage(0, "", false);
5934
+ };
5935
+ Parser3.prototype.parseMessage = function(nestingLevel, parentArgType, expectingCloseTag) {
5936
+ var elements = [];
5937
+ while (!this.isEOF()) {
5938
+ var char = this.char();
5939
+ if (char === 123) {
5940
+ var result = this.parseArgument(nestingLevel, expectingCloseTag);
5941
+ if (result.err) {
5942
+ return result;
5943
+ }
5944
+ elements.push(result.val);
5945
+ } else if (char === 125 && nestingLevel > 0) {
5946
+ break;
5947
+ } else if (char === 35 && (parentArgType === "plural" || parentArgType === "selectordinal")) {
5948
+ var position = this.clonePosition();
5949
+ this.bump();
5950
+ elements.push({
5951
+ type: TYPE2.pound,
5952
+ location: createLocation2(position, this.clonePosition())
5953
+ });
5954
+ } else if (char === 60 && !this.ignoreTag && this.peek() === 47) {
5955
+ if (expectingCloseTag) {
5956
+ break;
5957
+ } else {
5958
+ return this.error(ErrorKind2.UNMATCHED_CLOSING_TAG, createLocation2(this.clonePosition(), this.clonePosition()));
5959
+ }
5960
+ } else if (char === 60 && !this.ignoreTag && _isAlpha2(this.peek() || 0)) {
5961
+ var result = this.parseTag(nestingLevel, parentArgType);
5962
+ if (result.err) {
5963
+ return result;
5964
+ }
5965
+ elements.push(result.val);
5966
+ } else {
5967
+ var result = this.parseLiteral(nestingLevel, parentArgType);
5968
+ if (result.err) {
5969
+ return result;
5970
+ }
5971
+ elements.push(result.val);
5972
+ }
5973
+ }
5974
+ return { val: elements, err: null };
5975
+ };
5976
+ Parser3.prototype.parseTag = function(nestingLevel, parentArgType) {
5977
+ var startPosition = this.clonePosition();
5978
+ this.bump();
5979
+ var tagName = this.parseTagName();
5980
+ this.bumpSpace();
5981
+ if (this.bumpIf("/>")) {
5982
+ return {
5983
+ val: {
5984
+ type: TYPE2.literal,
5985
+ value: "<".concat(tagName, "/>"),
5986
+ location: createLocation2(startPosition, this.clonePosition())
5987
+ },
5988
+ err: null
5989
+ };
5990
+ } else if (this.bumpIf(">")) {
5991
+ var childrenResult = this.parseMessage(nestingLevel + 1, parentArgType, true);
5992
+ if (childrenResult.err) {
5993
+ return childrenResult;
5994
+ }
5995
+ var children = childrenResult.val;
5996
+ var endTagStartPosition = this.clonePosition();
5997
+ if (this.bumpIf("</")) {
5998
+ if (this.isEOF() || !_isAlpha2(this.char())) {
5999
+ return this.error(ErrorKind2.INVALID_TAG, createLocation2(endTagStartPosition, this.clonePosition()));
6000
+ }
6001
+ var closingTagNameStartPosition = this.clonePosition();
6002
+ var closingTagName = this.parseTagName();
6003
+ if (tagName !== closingTagName) {
6004
+ return this.error(ErrorKind2.UNMATCHED_CLOSING_TAG, createLocation2(closingTagNameStartPosition, this.clonePosition()));
6005
+ }
6006
+ this.bumpSpace();
6007
+ if (!this.bumpIf(">")) {
6008
+ return this.error(ErrorKind2.INVALID_TAG, createLocation2(endTagStartPosition, this.clonePosition()));
6009
+ }
6010
+ return {
6011
+ val: {
6012
+ type: TYPE2.tag,
6013
+ value: tagName,
6014
+ children,
6015
+ location: createLocation2(startPosition, this.clonePosition())
6016
+ },
6017
+ err: null
6018
+ };
6019
+ } else {
6020
+ return this.error(ErrorKind2.UNCLOSED_TAG, createLocation2(startPosition, this.clonePosition()));
6021
+ }
6022
+ } else {
6023
+ return this.error(ErrorKind2.INVALID_TAG, createLocation2(startPosition, this.clonePosition()));
6024
+ }
6025
+ };
6026
+ Parser3.prototype.parseTagName = function() {
6027
+ var startOffset = this.offset();
6028
+ this.bump();
6029
+ while (!this.isEOF() && _isPotentialElementNameChar2(this.char())) {
6030
+ this.bump();
6031
+ }
6032
+ return this.message.slice(startOffset, this.offset());
6033
+ };
6034
+ Parser3.prototype.parseLiteral = function(nestingLevel, parentArgType) {
6035
+ var start = this.clonePosition();
6036
+ var value = "";
6037
+ while (true) {
6038
+ var parseQuoteResult = this.tryParseQuote(parentArgType);
6039
+ if (parseQuoteResult) {
6040
+ value += parseQuoteResult;
6041
+ continue;
6042
+ }
6043
+ var parseUnquotedResult = this.tryParseUnquoted(nestingLevel, parentArgType);
6044
+ if (parseUnquotedResult) {
6045
+ value += parseUnquotedResult;
6046
+ continue;
6047
+ }
6048
+ var parseLeftAngleResult = this.tryParseLeftAngleBracket();
6049
+ if (parseLeftAngleResult) {
6050
+ value += parseLeftAngleResult;
6051
+ continue;
6052
+ }
6053
+ break;
6054
+ }
6055
+ var location = createLocation2(start, this.clonePosition());
6056
+ return {
6057
+ val: { type: TYPE2.literal, value, location },
6058
+ err: null
6059
+ };
6060
+ };
6061
+ Parser3.prototype.tryParseLeftAngleBracket = function() {
6062
+ if (!this.isEOF() && this.char() === 60 && (this.ignoreTag || // If at the opening tag or closing tag position, bail.
6063
+ !_isAlphaOrSlash2(this.peek() || 0))) {
6064
+ this.bump();
6065
+ return "<";
6066
+ }
6067
+ return null;
6068
+ };
6069
+ Parser3.prototype.tryParseQuote = function(parentArgType) {
6070
+ if (this.isEOF() || this.char() !== 39) {
6071
+ return null;
6072
+ }
6073
+ switch (this.peek()) {
6074
+ case 39:
6075
+ this.bump();
6076
+ this.bump();
6077
+ return "'";
6078
+ case 123:
6079
+ case 60:
6080
+ case 62:
6081
+ case 125:
6082
+ break;
6083
+ case 35:
6084
+ if (parentArgType === "plural" || parentArgType === "selectordinal") {
6085
+ break;
6086
+ }
6087
+ return null;
6088
+ default:
6089
+ return null;
6090
+ }
6091
+ this.bump();
6092
+ var codePoints = [this.char()];
6093
+ this.bump();
6094
+ while (!this.isEOF()) {
6095
+ var ch = this.char();
6096
+ if (ch === 39) {
6097
+ if (this.peek() === 39) {
6098
+ codePoints.push(39);
6099
+ this.bump();
6100
+ } else {
6101
+ this.bump();
6102
+ break;
6103
+ }
6104
+ } else {
6105
+ codePoints.push(ch);
6106
+ }
6107
+ this.bump();
6108
+ }
6109
+ return fromCodePoint3.apply(void 0, codePoints);
6110
+ };
6111
+ Parser3.prototype.tryParseUnquoted = function(nestingLevel, parentArgType) {
6112
+ if (this.isEOF()) {
6113
+ return null;
6114
+ }
6115
+ var ch = this.char();
6116
+ if (ch === 60 || ch === 123 || ch === 35 && (parentArgType === "plural" || parentArgType === "selectordinal") || ch === 125 && nestingLevel > 0) {
6117
+ return null;
6118
+ } else {
6119
+ this.bump();
6120
+ return fromCodePoint3(ch);
6121
+ }
6122
+ };
6123
+ Parser3.prototype.parseArgument = function(nestingLevel, expectingCloseTag) {
6124
+ var openingBracePosition = this.clonePosition();
6125
+ this.bump();
6126
+ this.bumpSpace();
6127
+ if (this.isEOF()) {
6128
+ return this.error(ErrorKind2.EXPECT_ARGUMENT_CLOSING_BRACE, createLocation2(openingBracePosition, this.clonePosition()));
6129
+ }
6130
+ if (this.char() === 125) {
6131
+ this.bump();
6132
+ return this.error(ErrorKind2.EMPTY_ARGUMENT, createLocation2(openingBracePosition, this.clonePosition()));
6133
+ }
6134
+ var value = this.parseIdentifierIfPossible().value;
6135
+ if (!value) {
6136
+ return this.error(ErrorKind2.MALFORMED_ARGUMENT, createLocation2(openingBracePosition, this.clonePosition()));
6137
+ }
6138
+ this.bumpSpace();
6139
+ if (this.isEOF()) {
6140
+ return this.error(ErrorKind2.EXPECT_ARGUMENT_CLOSING_BRACE, createLocation2(openingBracePosition, this.clonePosition()));
6141
+ }
6142
+ switch (this.char()) {
6143
+ case 125: {
6144
+ this.bump();
6145
+ return {
6146
+ val: {
6147
+ type: TYPE2.argument,
6148
+ // value does not include the opening and closing braces.
6149
+ value,
6150
+ location: createLocation2(openingBracePosition, this.clonePosition())
6151
+ },
6152
+ err: null
6153
+ };
6154
+ }
6155
+ case 44: {
6156
+ this.bump();
6157
+ this.bumpSpace();
6158
+ if (this.isEOF()) {
6159
+ return this.error(ErrorKind2.EXPECT_ARGUMENT_CLOSING_BRACE, createLocation2(openingBracePosition, this.clonePosition()));
6160
+ }
6161
+ return this.parseArgumentOptions(nestingLevel, expectingCloseTag, value, openingBracePosition);
6162
+ }
6163
+ default:
6164
+ return this.error(ErrorKind2.MALFORMED_ARGUMENT, createLocation2(openingBracePosition, this.clonePosition()));
6165
+ }
6166
+ };
6167
+ Parser3.prototype.parseIdentifierIfPossible = function() {
6168
+ var startingPosition = this.clonePosition();
6169
+ var startOffset = this.offset();
6170
+ var value = matchIdentifierAtIndex2(this.message, startOffset);
6171
+ var endOffset = startOffset + value.length;
6172
+ this.bumpTo(endOffset);
6173
+ var endPosition = this.clonePosition();
6174
+ var location = createLocation2(startingPosition, endPosition);
6175
+ return { value, location };
6176
+ };
6177
+ Parser3.prototype.parseArgumentOptions = function(nestingLevel, expectingCloseTag, value, openingBracePosition) {
6178
+ var _a3;
6179
+ var typeStartPosition = this.clonePosition();
6180
+ var argType = this.parseIdentifierIfPossible().value;
6181
+ var typeEndPosition = this.clonePosition();
6182
+ switch (argType) {
6183
+ case "":
6184
+ return this.error(ErrorKind2.EXPECT_ARGUMENT_TYPE, createLocation2(typeStartPosition, typeEndPosition));
6185
+ case "number":
6186
+ case "date":
6187
+ case "time": {
6188
+ this.bumpSpace();
6189
+ var styleAndLocation = null;
6190
+ if (this.bumpIf(",")) {
6191
+ this.bumpSpace();
6192
+ var styleStartPosition = this.clonePosition();
6193
+ var result = this.parseSimpleArgStyleIfPossible();
6194
+ if (result.err) {
6195
+ return result;
6196
+ }
6197
+ var style = trimEnd4(result.val);
6198
+ if (style.length === 0) {
6199
+ return this.error(ErrorKind2.EXPECT_ARGUMENT_STYLE, createLocation2(this.clonePosition(), this.clonePosition()));
6200
+ }
6201
+ var styleLocation = createLocation2(styleStartPosition, this.clonePosition());
6202
+ styleAndLocation = { style, styleLocation };
6203
+ }
6204
+ var argCloseResult = this.tryParseArgumentClose(openingBracePosition);
6205
+ if (argCloseResult.err) {
6206
+ return argCloseResult;
6207
+ }
6208
+ var location_1 = createLocation2(openingBracePosition, this.clonePosition());
6209
+ if (styleAndLocation && startsWith4(styleAndLocation === null || styleAndLocation === void 0 ? void 0 : styleAndLocation.style, "::", 0)) {
6210
+ var skeleton = trimStart4(styleAndLocation.style.slice(2));
6211
+ if (argType === "number") {
6212
+ var result = this.parseNumberSkeletonFromString(skeleton, styleAndLocation.styleLocation);
6213
+ if (result.err) {
6214
+ return result;
6215
+ }
6216
+ return {
6217
+ val: { type: TYPE2.number, value, location: location_1, style: result.val },
6218
+ err: null
6219
+ };
6220
+ } else {
6221
+ if (skeleton.length === 0) {
6222
+ return this.error(ErrorKind2.EXPECT_DATE_TIME_SKELETON, location_1);
6223
+ }
6224
+ var dateTimePattern = skeleton;
6225
+ if (this.locale) {
6226
+ dateTimePattern = getBestPattern2(skeleton, this.locale);
6227
+ }
6228
+ var style = {
6229
+ type: SKELETON_TYPE2.dateTime,
6230
+ pattern: dateTimePattern,
6231
+ location: styleAndLocation.styleLocation,
6232
+ parsedOptions: this.shouldParseSkeletons ? parseDateTimeSkeleton2(dateTimePattern) : {}
6233
+ };
6234
+ var type = argType === "date" ? TYPE2.date : TYPE2.time;
6235
+ return {
6236
+ val: { type, value, location: location_1, style },
6237
+ err: null
6238
+ };
6239
+ }
6240
+ }
6241
+ return {
6242
+ val: {
6243
+ type: argType === "number" ? TYPE2.number : argType === "date" ? TYPE2.date : TYPE2.time,
6244
+ value,
6245
+ location: location_1,
6246
+ style: (_a3 = styleAndLocation === null || styleAndLocation === void 0 ? void 0 : styleAndLocation.style) !== null && _a3 !== void 0 ? _a3 : null
6247
+ },
6248
+ err: null
6249
+ };
6250
+ }
6251
+ case "plural":
6252
+ case "selectordinal":
6253
+ case "select": {
6254
+ var typeEndPosition_1 = this.clonePosition();
6255
+ this.bumpSpace();
6256
+ if (!this.bumpIf(",")) {
6257
+ return this.error(ErrorKind2.EXPECT_SELECT_ARGUMENT_OPTIONS, createLocation2(typeEndPosition_1, __assign({}, typeEndPosition_1)));
6258
+ }
6259
+ this.bumpSpace();
6260
+ var identifierAndLocation = this.parseIdentifierIfPossible();
6261
+ var pluralOffset = 0;
6262
+ if (argType !== "select" && identifierAndLocation.value === "offset") {
6263
+ if (!this.bumpIf(":")) {
6264
+ return this.error(ErrorKind2.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, createLocation2(this.clonePosition(), this.clonePosition()));
6265
+ }
6266
+ this.bumpSpace();
6267
+ var result = this.tryParseDecimalInteger(ErrorKind2.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, ErrorKind2.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);
6268
+ if (result.err) {
6269
+ return result;
6270
+ }
6271
+ this.bumpSpace();
6272
+ identifierAndLocation = this.parseIdentifierIfPossible();
6273
+ pluralOffset = result.val;
6274
+ }
6275
+ var optionsResult = this.tryParsePluralOrSelectOptions(nestingLevel, argType, expectingCloseTag, identifierAndLocation);
6276
+ if (optionsResult.err) {
6277
+ return optionsResult;
6278
+ }
6279
+ var argCloseResult = this.tryParseArgumentClose(openingBracePosition);
6280
+ if (argCloseResult.err) {
6281
+ return argCloseResult;
6282
+ }
6283
+ var location_2 = createLocation2(openingBracePosition, this.clonePosition());
6284
+ if (argType === "select") {
6285
+ return {
6286
+ val: {
6287
+ type: TYPE2.select,
6288
+ value,
6289
+ options: fromEntries3(optionsResult.val),
6290
+ location: location_2
6291
+ },
6292
+ err: null
6293
+ };
6294
+ } else {
6295
+ return {
6296
+ val: {
6297
+ type: TYPE2.plural,
6298
+ value,
6299
+ options: fromEntries3(optionsResult.val),
6300
+ offset: pluralOffset,
6301
+ pluralType: argType === "plural" ? "cardinal" : "ordinal",
6302
+ location: location_2
6303
+ },
6304
+ err: null
6305
+ };
6306
+ }
6307
+ }
6308
+ default:
6309
+ return this.error(ErrorKind2.INVALID_ARGUMENT_TYPE, createLocation2(typeStartPosition, typeEndPosition));
6310
+ }
6311
+ };
6312
+ Parser3.prototype.tryParseArgumentClose = function(openingBracePosition) {
6313
+ if (this.isEOF() || this.char() !== 125) {
6314
+ return this.error(ErrorKind2.EXPECT_ARGUMENT_CLOSING_BRACE, createLocation2(openingBracePosition, this.clonePosition()));
6315
+ }
6316
+ this.bump();
6317
+ return { val: true, err: null };
6318
+ };
6319
+ Parser3.prototype.parseSimpleArgStyleIfPossible = function() {
6320
+ var nestedBraces = 0;
6321
+ var startPosition = this.clonePosition();
6322
+ while (!this.isEOF()) {
6323
+ var ch = this.char();
6324
+ switch (ch) {
6325
+ case 39: {
6326
+ this.bump();
6327
+ var apostrophePosition = this.clonePosition();
6328
+ if (!this.bumpUntil("'")) {
6329
+ return this.error(ErrorKind2.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE, createLocation2(apostrophePosition, this.clonePosition()));
6330
+ }
6331
+ this.bump();
6332
+ break;
6333
+ }
6334
+ case 123: {
6335
+ nestedBraces += 1;
6336
+ this.bump();
6337
+ break;
6338
+ }
6339
+ case 125: {
6340
+ if (nestedBraces > 0) {
6341
+ nestedBraces -= 1;
6342
+ } else {
6343
+ return {
6344
+ val: this.message.slice(startPosition.offset, this.offset()),
6345
+ err: null
6346
+ };
6347
+ }
6348
+ break;
6349
+ }
6350
+ default:
6351
+ this.bump();
6352
+ break;
6353
+ }
6354
+ }
6355
+ return {
6356
+ val: this.message.slice(startPosition.offset, this.offset()),
6357
+ err: null
6358
+ };
6359
+ };
6360
+ Parser3.prototype.parseNumberSkeletonFromString = function(skeleton, location) {
6361
+ var tokens = [];
6362
+ try {
6363
+ tokens = parseNumberSkeletonFromString2(skeleton);
6364
+ } catch (e) {
6365
+ return this.error(ErrorKind2.INVALID_NUMBER_SKELETON, location);
6366
+ }
6367
+ return {
6368
+ val: {
6369
+ type: SKELETON_TYPE2.number,
6370
+ tokens,
6371
+ location,
6372
+ parsedOptions: this.shouldParseSkeletons ? parseNumberSkeleton2(tokens) : {}
6373
+ },
6374
+ err: null
6375
+ };
6376
+ };
6377
+ Parser3.prototype.tryParsePluralOrSelectOptions = function(nestingLevel, parentArgType, expectCloseTag, parsedFirstIdentifier) {
6378
+ var _a3;
6379
+ var hasOtherClause = false;
6380
+ var options = [];
6381
+ var parsedSelectors = /* @__PURE__ */ new Set();
6382
+ var selector = parsedFirstIdentifier.value, selectorLocation = parsedFirstIdentifier.location;
6383
+ while (true) {
6384
+ if (selector.length === 0) {
6385
+ var startPosition = this.clonePosition();
6386
+ if (parentArgType !== "select" && this.bumpIf("=")) {
6387
+ var result = this.tryParseDecimalInteger(ErrorKind2.EXPECT_PLURAL_ARGUMENT_SELECTOR, ErrorKind2.INVALID_PLURAL_ARGUMENT_SELECTOR);
6388
+ if (result.err) {
6389
+ return result;
6390
+ }
6391
+ selectorLocation = createLocation2(startPosition, this.clonePosition());
6392
+ selector = this.message.slice(startPosition.offset, this.offset());
6393
+ } else {
6394
+ break;
6395
+ }
6396
+ }
6397
+ if (parsedSelectors.has(selector)) {
6398
+ return this.error(parentArgType === "select" ? ErrorKind2.DUPLICATE_SELECT_ARGUMENT_SELECTOR : ErrorKind2.DUPLICATE_PLURAL_ARGUMENT_SELECTOR, selectorLocation);
6399
+ }
6400
+ if (selector === "other") {
6401
+ hasOtherClause = true;
6402
+ }
6403
+ this.bumpSpace();
6404
+ var openingBracePosition = this.clonePosition();
6405
+ if (!this.bumpIf("{")) {
6406
+ return this.error(parentArgType === "select" ? ErrorKind2.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT : ErrorKind2.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT, createLocation2(this.clonePosition(), this.clonePosition()));
6407
+ }
6408
+ var fragmentResult = this.parseMessage(nestingLevel + 1, parentArgType, expectCloseTag);
6409
+ if (fragmentResult.err) {
6410
+ return fragmentResult;
6411
+ }
6412
+ var argCloseResult = this.tryParseArgumentClose(openingBracePosition);
6413
+ if (argCloseResult.err) {
6414
+ return argCloseResult;
6415
+ }
6416
+ options.push([
6417
+ selector,
6418
+ {
6419
+ value: fragmentResult.val,
6420
+ location: createLocation2(openingBracePosition, this.clonePosition())
6421
+ }
6422
+ ]);
6423
+ parsedSelectors.add(selector);
6424
+ this.bumpSpace();
6425
+ _a3 = this.parseIdentifierIfPossible(), selector = _a3.value, selectorLocation = _a3.location;
6426
+ }
6427
+ if (options.length === 0) {
6428
+ return this.error(parentArgType === "select" ? ErrorKind2.EXPECT_SELECT_ARGUMENT_SELECTOR : ErrorKind2.EXPECT_PLURAL_ARGUMENT_SELECTOR, createLocation2(this.clonePosition(), this.clonePosition()));
6429
+ }
6430
+ if (this.requiresOtherClause && !hasOtherClause) {
6431
+ return this.error(ErrorKind2.MISSING_OTHER_CLAUSE, createLocation2(this.clonePosition(), this.clonePosition()));
6432
+ }
6433
+ return { val: options, err: null };
6434
+ };
6435
+ Parser3.prototype.tryParseDecimalInteger = function(expectNumberError, invalidNumberError) {
6436
+ var sign = 1;
6437
+ var startingPosition = this.clonePosition();
6438
+ if (this.bumpIf("+")) {
6439
+ } else if (this.bumpIf("-")) {
6440
+ sign = -1;
6441
+ }
6442
+ var hasDigits = false;
6443
+ var decimal = 0;
6444
+ while (!this.isEOF()) {
6445
+ var ch = this.char();
6446
+ if (ch >= 48 && ch <= 57) {
6447
+ hasDigits = true;
6448
+ decimal = decimal * 10 + (ch - 48);
6449
+ this.bump();
6450
+ } else {
6451
+ break;
6452
+ }
6453
+ }
6454
+ var location = createLocation2(startingPosition, this.clonePosition());
6455
+ if (!hasDigits) {
6456
+ return this.error(expectNumberError, location);
6457
+ }
6458
+ decimal *= sign;
6459
+ if (!isSafeInteger2(decimal)) {
6460
+ return this.error(invalidNumberError, location);
6461
+ }
6462
+ return { val: decimal, err: null };
6463
+ };
6464
+ Parser3.prototype.offset = function() {
6465
+ return this.position.offset;
6466
+ };
6467
+ Parser3.prototype.isEOF = function() {
6468
+ return this.offset() === this.message.length;
6469
+ };
6470
+ Parser3.prototype.clonePosition = function() {
6471
+ return {
6472
+ offset: this.position.offset,
6473
+ line: this.position.line,
6474
+ column: this.position.column
6475
+ };
6476
+ };
6477
+ Parser3.prototype.char = function() {
6478
+ var offset = this.position.offset;
6479
+ if (offset >= this.message.length) {
6480
+ throw Error("out of bound");
6481
+ }
6482
+ var code = codePointAt4(this.message, offset);
6483
+ if (code === void 0) {
6484
+ throw Error("Offset ".concat(offset, " is at invalid UTF-16 code unit boundary"));
6485
+ }
6486
+ return code;
6487
+ };
6488
+ Parser3.prototype.error = function(kind, location) {
6489
+ return {
6490
+ val: null,
6491
+ err: {
6492
+ kind,
6493
+ message: this.message,
6494
+ location
3842
6495
  }
3843
6496
  };
3844
- }
3845
- };
3846
- }
3847
- function createFormatters(cache) {
3848
- if (cache === void 0) {
3849
- cache = createIntlCache();
3850
- }
3851
- var RelativeTimeFormat = Intl.RelativeTimeFormat;
3852
- var ListFormat = Intl.ListFormat;
3853
- var DisplayNames = Intl.DisplayNames;
3854
- var getDateTimeFormat = memoize(function() {
3855
- var _a2;
3856
- var args = [];
3857
- for (var _i = 0; _i < arguments.length; _i++) {
3858
- args[_i] = arguments[_i];
3859
- }
3860
- return new ((_a2 = Intl.DateTimeFormat).bind.apply(_a2, __spreadArray([void 0], args, false)))();
3861
- }, {
3862
- cache: createFastMemoizeCache2(cache.dateTime),
3863
- strategy: strategies.variadic
3864
- });
3865
- var getNumberFormat = memoize(function() {
3866
- var _a2;
3867
- var args = [];
3868
- for (var _i = 0; _i < arguments.length; _i++) {
3869
- args[_i] = arguments[_i];
3870
- }
3871
- return new ((_a2 = Intl.NumberFormat).bind.apply(_a2, __spreadArray([void 0], args, false)))();
3872
- }, {
3873
- cache: createFastMemoizeCache2(cache.number),
3874
- strategy: strategies.variadic
3875
- });
3876
- var getPluralRules = memoize(function() {
3877
- var _a2;
3878
- var args = [];
3879
- for (var _i = 0; _i < arguments.length; _i++) {
3880
- args[_i] = arguments[_i];
3881
- }
3882
- return new ((_a2 = Intl.PluralRules).bind.apply(_a2, __spreadArray([void 0], args, false)))();
3883
- }, {
3884
- cache: createFastMemoizeCache2(cache.pluralRules),
3885
- strategy: strategies.variadic
3886
- });
3887
- return {
3888
- getDateTimeFormat,
3889
- getNumberFormat,
3890
- getMessageFormat: memoize(function(message, locales, overrideFormats, opts) {
3891
- return new IntlMessageFormat(message, locales, overrideFormats, __assign({ formatters: {
3892
- getNumberFormat,
3893
- getDateTimeFormat,
3894
- getPluralRules
3895
- } }, opts || {}));
3896
- }, {
3897
- cache: createFastMemoizeCache2(cache.message),
3898
- strategy: strategies.variadic
3899
- }),
3900
- getRelativeTimeFormat: memoize(function() {
3901
- var args = [];
3902
- for (var _i = 0; _i < arguments.length; _i++) {
3903
- args[_i] = arguments[_i];
6497
+ };
6498
+ Parser3.prototype.bump = function() {
6499
+ if (this.isEOF()) {
6500
+ return;
3904
6501
  }
3905
- return new (RelativeTimeFormat.bind.apply(RelativeTimeFormat, __spreadArray([void 0], args, false)))();
3906
- }, {
3907
- cache: createFastMemoizeCache2(cache.relativeTime),
3908
- strategy: strategies.variadic
3909
- }),
3910
- getPluralRules,
3911
- getListFormat: memoize(function() {
3912
- var args = [];
3913
- for (var _i = 0; _i < arguments.length; _i++) {
3914
- args[_i] = arguments[_i];
6502
+ var code = this.char();
6503
+ if (code === 10) {
6504
+ this.position.line += 1;
6505
+ this.position.column = 1;
6506
+ this.position.offset += 1;
6507
+ } else {
6508
+ this.position.column += 1;
6509
+ this.position.offset += code < 65536 ? 1 : 2;
3915
6510
  }
3916
- return new (ListFormat.bind.apply(ListFormat, __spreadArray([void 0], args, false)))();
3917
- }, {
3918
- cache: createFastMemoizeCache2(cache.list),
3919
- strategy: strategies.variadic
3920
- }),
3921
- getDisplayNames: memoize(function() {
3922
- var args = [];
3923
- for (var _i = 0; _i < arguments.length; _i++) {
3924
- args[_i] = arguments[_i];
6511
+ };
6512
+ Parser3.prototype.bumpIf = function(prefix) {
6513
+ if (startsWith4(this.message, prefix, this.offset())) {
6514
+ for (var i = 0; i < prefix.length; i++) {
6515
+ this.bump();
6516
+ }
6517
+ return true;
3925
6518
  }
3926
- return new (DisplayNames.bind.apply(DisplayNames, __spreadArray([void 0], args, false)))();
3927
- }, {
3928
- cache: createFastMemoizeCache2(cache.displayNames),
3929
- strategy: strategies.variadic
3930
- })
3931
- };
6519
+ return false;
6520
+ };
6521
+ Parser3.prototype.bumpUntil = function(pattern) {
6522
+ var currentOffset = this.offset();
6523
+ var index = this.message.indexOf(pattern, currentOffset);
6524
+ if (index >= 0) {
6525
+ this.bumpTo(index);
6526
+ return true;
6527
+ } else {
6528
+ this.bumpTo(this.message.length);
6529
+ return false;
6530
+ }
6531
+ };
6532
+ Parser3.prototype.bumpTo = function(targetOffset) {
6533
+ if (this.offset() > targetOffset) {
6534
+ throw Error("targetOffset ".concat(targetOffset, " must be greater than or equal to the current offset ").concat(this.offset()));
6535
+ }
6536
+ targetOffset = Math.min(targetOffset, this.message.length);
6537
+ while (true) {
6538
+ var offset = this.offset();
6539
+ if (offset === targetOffset) {
6540
+ break;
6541
+ }
6542
+ if (offset > targetOffset) {
6543
+ throw Error("targetOffset ".concat(targetOffset, " is at invalid UTF-16 code unit boundary"));
6544
+ }
6545
+ this.bump();
6546
+ if (this.isEOF()) {
6547
+ break;
6548
+ }
6549
+ }
6550
+ };
6551
+ Parser3.prototype.bumpSpace = function() {
6552
+ while (!this.isEOF() && _isWhiteSpace2(this.char())) {
6553
+ this.bump();
6554
+ }
6555
+ };
6556
+ Parser3.prototype.peek = function() {
6557
+ if (this.isEOF()) {
6558
+ return null;
6559
+ }
6560
+ var code = this.char();
6561
+ var offset = this.offset();
6562
+ var nextCode = this.message.charCodeAt(offset + (code >= 65536 ? 2 : 1));
6563
+ return nextCode !== null && nextCode !== void 0 ? nextCode : null;
6564
+ };
6565
+ return Parser3;
6566
+ }()
6567
+ );
6568
+ function _isAlpha2(codepoint) {
6569
+ return codepoint >= 97 && codepoint <= 122 || codepoint >= 65 && codepoint <= 90;
3932
6570
  }
3933
- function getNamedFormat(formats, type, name, onError) {
3934
- var formatType = formats && formats[type];
3935
- var format;
3936
- if (formatType) {
3937
- format = formatType[name];
3938
- }
3939
- if (format) {
3940
- return format;
3941
- }
3942
- onError(new UnsupportedFormatterError("No ".concat(type, " format named: ").concat(name)));
6571
+ function _isAlphaOrSlash2(codepoint) {
6572
+ return _isAlpha2(codepoint) || codepoint === 47;
6573
+ }
6574
+ function _isPotentialElementNameChar2(c) {
6575
+ return c === 45 || c === 46 || c >= 48 && c <= 57 || c === 95 || c >= 97 && c <= 122 || c >= 65 && c <= 90 || c == 183 || c >= 192 && c <= 214 || c >= 216 && c <= 246 || c >= 248 && c <= 893 || c >= 895 && c <= 8191 || c >= 8204 && c <= 8205 || c >= 8255 && c <= 8256 || c >= 8304 && c <= 8591 || c >= 11264 && c <= 12271 || c >= 12289 && c <= 55295 || c >= 63744 && c <= 64975 || c >= 65008 && c <= 65533 || c >= 65536 && c <= 983039;
6576
+ }
6577
+ function _isWhiteSpace2(c) {
6578
+ return c >= 9 && c <= 13 || c === 32 || c === 133 || c >= 8206 && c <= 8207 || c === 8232 || c === 8233;
6579
+ }
6580
+ function _isPatternSyntax2(c) {
6581
+ return c >= 33 && c <= 35 || c === 36 || c >= 37 && c <= 39 || c === 40 || c === 41 || c === 42 || c === 43 || c === 44 || c === 45 || c >= 46 && c <= 47 || c >= 58 && c <= 59 || c >= 60 && c <= 62 || c >= 63 && c <= 64 || c === 91 || c === 92 || c === 93 || c === 94 || c === 96 || c === 123 || c === 124 || c === 125 || c === 126 || c === 161 || c >= 162 && c <= 165 || c === 166 || c === 167 || c === 169 || c === 171 || c === 172 || c === 174 || c === 176 || c === 177 || c === 182 || c === 187 || c === 191 || c === 215 || c === 247 || c >= 8208 && c <= 8213 || c >= 8214 && c <= 8215 || c === 8216 || c === 8217 || c === 8218 || c >= 8219 && c <= 8220 || c === 8221 || c === 8222 || c === 8223 || c >= 8224 && c <= 8231 || c >= 8240 && c <= 8248 || c === 8249 || c === 8250 || c >= 8251 && c <= 8254 || c >= 8257 && c <= 8259 || c === 8260 || c === 8261 || c === 8262 || c >= 8263 && c <= 8273 || c === 8274 || c === 8275 || c >= 8277 && c <= 8286 || c >= 8592 && c <= 8596 || c >= 8597 && c <= 8601 || c >= 8602 && c <= 8603 || c >= 8604 && c <= 8607 || c === 8608 || c >= 8609 && c <= 8610 || c === 8611 || c >= 8612 && c <= 8613 || c === 8614 || c >= 8615 && c <= 8621 || c === 8622 || c >= 8623 && c <= 8653 || c >= 8654 && c <= 8655 || c >= 8656 && c <= 8657 || c === 8658 || c === 8659 || c === 8660 || c >= 8661 && c <= 8691 || c >= 8692 && c <= 8959 || c >= 8960 && c <= 8967 || c === 8968 || c === 8969 || c === 8970 || c === 8971 || c >= 8972 && c <= 8991 || c >= 8992 && c <= 8993 || c >= 8994 && c <= 9e3 || c === 9001 || c === 9002 || c >= 9003 && c <= 9083 || c === 9084 || c >= 9085 && c <= 9114 || c >= 9115 && c <= 9139 || c >= 9140 && c <= 9179 || c >= 9180 && c <= 9185 || c >= 9186 && c <= 9254 || c >= 9255 && c <= 9279 || c >= 9280 && c <= 9290 || c >= 9291 && c <= 9311 || c >= 9472 && c <= 9654 || c === 9655 || c >= 9656 && c <= 9664 || c === 9665 || c >= 9666 && c <= 9719 || c >= 9720 && c <= 9727 || c >= 9728 && c <= 9838 || c === 9839 || c >= 9840 && c <= 10087 || c === 10088 || c === 10089 || c === 10090 || c === 10091 || c === 10092 || c === 10093 || c === 10094 || c === 10095 || c === 10096 || c === 10097 || c === 10098 || c === 10099 || c === 10100 || c === 10101 || c >= 10132 && c <= 10175 || c >= 10176 && c <= 10180 || c === 10181 || c === 10182 || c >= 10183 && c <= 10213 || c === 10214 || c === 10215 || c === 10216 || c === 10217 || c === 10218 || c === 10219 || c === 10220 || c === 10221 || c === 10222 || c === 10223 || c >= 10224 && c <= 10239 || c >= 10240 && c <= 10495 || c >= 10496 && c <= 10626 || c === 10627 || c === 10628 || c === 10629 || c === 10630 || c === 10631 || c === 10632 || c === 10633 || c === 10634 || c === 10635 || c === 10636 || c === 10637 || c === 10638 || c === 10639 || c === 10640 || c === 10641 || c === 10642 || c === 10643 || c === 10644 || c === 10645 || c === 10646 || c === 10647 || c === 10648 || c >= 10649 && c <= 10711 || c === 10712 || c === 10713 || c === 10714 || c === 10715 || c >= 10716 && c <= 10747 || c === 10748 || c === 10749 || c >= 10750 && c <= 11007 || c >= 11008 && c <= 11055 || c >= 11056 && c <= 11076 || c >= 11077 && c <= 11078 || c >= 11079 && c <= 11084 || c >= 11085 && c <= 11123 || c >= 11124 && c <= 11125 || c >= 11126 && c <= 11157 || c === 11158 || c >= 11159 && c <= 11263 || c >= 11776 && c <= 11777 || c === 11778 || c === 11779 || c === 11780 || c === 11781 || c >= 11782 && c <= 11784 || c === 11785 || c === 11786 || c === 11787 || c === 11788 || c === 11789 || c >= 11790 && c <= 11798 || c === 11799 || c >= 11800 && c <= 11801 || c === 11802 || c === 11803 || c === 11804 || c === 11805 || c >= 11806 && c <= 11807 || c === 11808 || c === 11809 || c === 11810 || c === 11811 || c === 11812 || c === 11813 || c === 11814 || c === 11815 || c === 11816 || c === 11817 || c >= 11818 && c <= 11822 || c === 11823 || c >= 11824 && c <= 11833 || c >= 11834 && c <= 11835 || c >= 11836 && c <= 11839 || c === 11840 || c === 11841 || c === 11842 || c >= 11843 && c <= 11855 || c >= 11856 && c <= 11857 || c === 11858 || c >= 11859 && c <= 11903 || c >= 12289 && c <= 12291 || c === 12296 || c === 12297 || c === 12298 || c === 12299 || c === 12300 || c === 12301 || c === 12302 || c === 12303 || c === 12304 || c === 12305 || c >= 12306 && c <= 12307 || c === 12308 || c === 12309 || c === 12310 || c === 12311 || c === 12312 || c === 12313 || c === 12314 || c === 12315 || c === 12316 || c === 12317 || c >= 12318 && c <= 12319 || c === 12320 || c === 12336 || c === 64830 || c === 64831 || c >= 65093 && c <= 65094;
3943
6582
  }
3944
6583
 
3945
6584
  // ../../node_modules/@formatjs/intl/lib/src/message.js
@@ -3963,13 +6602,13 @@ function deepMergeFormatsAndSetTimeZone(f1, timeZone) {
3963
6602
  var mfFormats = IntlMessageFormat.formats;
3964
6603
  return __assign(__assign(__assign({}, mfFormats), f1), { date: deepMergeOptions(setTimeZoneInOptions(mfFormats.date, timeZone), setTimeZoneInOptions(f1.date || {}, timeZone)), time: deepMergeOptions(setTimeZoneInOptions(mfFormats.time, timeZone), setTimeZoneInOptions(f1.time || {}, timeZone)) });
3965
6604
  }
3966
- var formatMessage = function(_a2, state, messageDescriptor, values, opts) {
3967
- var locale = _a2.locale, formats = _a2.formats, messages = _a2.messages, defaultLocale = _a2.defaultLocale, defaultFormats = _a2.defaultFormats, fallbackOnEmptyString = _a2.fallbackOnEmptyString, onError = _a2.onError, timeZone = _a2.timeZone, defaultRichTextElements = _a2.defaultRichTextElements;
6605
+ var formatMessage = function(_a3, state, messageDescriptor, values, opts) {
6606
+ var locale = _a3.locale, formats = _a3.formats, messages = _a3.messages, defaultLocale = _a3.defaultLocale, defaultFormats = _a3.defaultFormats, fallbackOnEmptyString = _a3.fallbackOnEmptyString, onError = _a3.onError, timeZone = _a3.timeZone, defaultRichTextElements = _a3.defaultRichTextElements;
3968
6607
  if (messageDescriptor === void 0) {
3969
6608
  messageDescriptor = { id: "" };
3970
6609
  }
3971
6610
  var msgId = messageDescriptor.id, defaultMessage = messageDescriptor.defaultMessage;
3972
- invariant(!!msgId, "[@formatjs/intl] An `id` must be provided to format a message. You can either:\n1. Configure your build toolchain with [babel-plugin-formatjs](https://formatjs.io/docs/tooling/babel-plugin)\nor [@formatjs/ts-transformer](https://formatjs.io/docs/tooling/ts-transformer) OR\n2. Configure your `eslint` config to include [eslint-plugin-formatjs](https://formatjs.io/docs/tooling/linter#enforce-id)\nto autofix this issue");
6611
+ invariant2(!!msgId, "[@formatjs/intl] An `id` must be provided to format a message. You can either:\n1. Configure your build toolchain with [babel-plugin-formatjs](https://formatjs.io/docs/tooling/babel-plugin)\nor [@formatjs/ts-transformer](https://formatjs.io/docs/tooling/ts-transformer) OR\n2. Configure your `eslint` config to include [eslint-plugin-formatjs](https://formatjs.io/docs/tooling/linter#enforce-id)\nto autofix this issue");
3973
6612
  var id = String(msgId);
3974
6613
  var message = (
3975
6614
  // In case messages is Object.create(null)
@@ -3977,7 +6616,7 @@ var formatMessage = function(_a2, state, messageDescriptor, values, opts) {
3977
6616
  // See https://github.com/formatjs/formatjs/issues/1914
3978
6617
  messages && Object.prototype.hasOwnProperty.call(messages, id) && messages[id]
3979
6618
  );
3980
- if (Array.isArray(message) && message.length === 1 && message[0].type === TYPE.literal) {
6619
+ if (Array.isArray(message) && message.length === 1 && message[0].type === TYPE2.literal) {
3981
6620
  return message[0].value;
3982
6621
  }
3983
6622
  if (!values && message && typeof message === "string" && !defaultRichTextElements) {
@@ -4049,8 +6688,8 @@ var DATE_TIME_FORMAT_OPTIONS = [
4049
6688
  "numberingSystem",
4050
6689
  "fractionalSecondDigits"
4051
6690
  ];
4052
- function getFormatter(_a2, type, getDateTimeFormat, options) {
4053
- var locale = _a2.locale, formats = _a2.formats, onError = _a2.onError, timeZone = _a2.timeZone;
6691
+ function getFormatter(_a3, type, getDateTimeFormat, options) {
6692
+ var locale = _a3.locale, formats = _a3.formats, onError = _a3.onError, timeZone = _a3.timeZone;
4054
6693
  if (options === void 0) {
4055
6694
  options = {};
4056
6695
  }
@@ -4063,11 +6702,11 @@ function getFormatter(_a2, type, getDateTimeFormat, options) {
4063
6702
  return getDateTimeFormat(locale, filteredOptions);
4064
6703
  }
4065
6704
  function formatDate(config, getDateTimeFormat) {
4066
- var _a2 = [];
6705
+ var _a3 = [];
4067
6706
  for (var _i = 2; _i < arguments.length; _i++) {
4068
- _a2[_i - 2] = arguments[_i];
6707
+ _a3[_i - 2] = arguments[_i];
4069
6708
  }
4070
- var value = _a2[0], _b = _a2[1], options = _b === void 0 ? {} : _b;
6709
+ var value = _a3[0], _b = _a3[1], options = _b === void 0 ? {} : _b;
4071
6710
  var date = typeof value === "string" ? new Date(value || 0) : value;
4072
6711
  try {
4073
6712
  return getFormatter(config, "date", getDateTimeFormat, options).format(date);
@@ -4077,11 +6716,11 @@ function formatDate(config, getDateTimeFormat) {
4077
6716
  return String(date);
4078
6717
  }
4079
6718
  function formatTime(config, getDateTimeFormat) {
4080
- var _a2 = [];
6719
+ var _a3 = [];
4081
6720
  for (var _i = 2; _i < arguments.length; _i++) {
4082
- _a2[_i - 2] = arguments[_i];
6721
+ _a3[_i - 2] = arguments[_i];
4083
6722
  }
4084
- var value = _a2[0], _b = _a2[1], options = _b === void 0 ? {} : _b;
6723
+ var value = _a3[0], _b = _a3[1], options = _b === void 0 ? {} : _b;
4085
6724
  var date = typeof value === "string" ? new Date(value || 0) : value;
4086
6725
  try {
4087
6726
  return getFormatter(config, "time", getDateTimeFormat, options).format(date);
@@ -4091,11 +6730,11 @@ function formatTime(config, getDateTimeFormat) {
4091
6730
  return String(date);
4092
6731
  }
4093
6732
  function formatDateTimeRange(config, getDateTimeFormat) {
4094
- var _a2 = [];
6733
+ var _a3 = [];
4095
6734
  for (var _i = 2; _i < arguments.length; _i++) {
4096
- _a2[_i - 2] = arguments[_i];
6735
+ _a3[_i - 2] = arguments[_i];
4097
6736
  }
4098
- var from = _a2[0], to = _a2[1], _b = _a2[2], options = _b === void 0 ? {} : _b;
6737
+ var from = _a3[0], to = _a3[1], _b = _a3[2], options = _b === void 0 ? {} : _b;
4099
6738
  var timeZone = config.timeZone, locale = config.locale, onError = config.onError;
4100
6739
  var filteredOptions = filterProps(options, DATE_TIME_FORMAT_OPTIONS, timeZone ? { timeZone } : {});
4101
6740
  try {
@@ -4106,11 +6745,11 @@ function formatDateTimeRange(config, getDateTimeFormat) {
4106
6745
  return String(from);
4107
6746
  }
4108
6747
  function formatDateToParts(config, getDateTimeFormat) {
4109
- var _a2 = [];
6748
+ var _a3 = [];
4110
6749
  for (var _i = 2; _i < arguments.length; _i++) {
4111
- _a2[_i - 2] = arguments[_i];
6750
+ _a3[_i - 2] = arguments[_i];
4112
6751
  }
4113
- var value = _a2[0], _b = _a2[1], options = _b === void 0 ? {} : _b;
6752
+ var value = _a3[0], _b = _a3[1], options = _b === void 0 ? {} : _b;
4114
6753
  var date = typeof value === "string" ? new Date(value || 0) : value;
4115
6754
  try {
4116
6755
  return getFormatter(config, "date", getDateTimeFormat, options).formatToParts(date);
@@ -4120,11 +6759,11 @@ function formatDateToParts(config, getDateTimeFormat) {
4120
6759
  return [];
4121
6760
  }
4122
6761
  function formatTimeToParts(config, getDateTimeFormat) {
4123
- var _a2 = [];
6762
+ var _a3 = [];
4124
6763
  for (var _i = 2; _i < arguments.length; _i++) {
4125
- _a2[_i - 2] = arguments[_i];
6764
+ _a3[_i - 2] = arguments[_i];
4126
6765
  }
4127
- var value = _a2[0], _b = _a2[1], options = _b === void 0 ? {} : _b;
6766
+ var value = _a3[0], _b = _a3[1], options = _b === void 0 ? {} : _b;
4128
6767
  var date = typeof value === "string" ? new Date(value || 0) : value;
4129
6768
  try {
4130
6769
  return getFormatter(config, "time", getDateTimeFormat, options).formatToParts(date);
@@ -4141,8 +6780,8 @@ var DISPLAY_NAMES_OPTONS = [
4141
6780
  "fallback",
4142
6781
  "languageDisplay"
4143
6782
  ];
4144
- function formatDisplayName(_a2, getDisplayNames, value, options) {
4145
- var locale = _a2.locale, onError = _a2.onError;
6783
+ function formatDisplayName(_a3, getDisplayNames, value, options) {
6784
+ var locale = _a3.locale, onError = _a3.onError;
4146
6785
  var DisplayNames = Intl.DisplayNames;
4147
6786
  if (!DisplayNames) {
4148
6787
  onError(new FormatError('Intl.DisplayNames is not available in this environment.\nTry polyfilling it using "@formatjs/intl-displaynames"\n', ErrorCode.MISSING_INTL_API));
@@ -4181,8 +6820,8 @@ function formatList(opts, getListFormat, values, options) {
4181
6820
  }, []);
4182
6821
  return results.length === 1 ? results[0] : results.length === 0 ? "" : results;
4183
6822
  }
4184
- function formatListToParts(_a2, getListFormat, values, options) {
4185
- var locale = _a2.locale, onError = _a2.onError;
6823
+ function formatListToParts(_a3, getListFormat, values, options) {
6824
+ var locale = _a3.locale, onError = _a3.onError;
4186
6825
  if (options === void 0) {
4187
6826
  options = {};
4188
6827
  }
@@ -4212,8 +6851,8 @@ function formatListToParts(_a2, getListFormat, values, options) {
4212
6851
 
4213
6852
  // ../../node_modules/@formatjs/intl/lib/src/plural.js
4214
6853
  var PLURAL_FORMAT_OPTIONS = ["type"];
4215
- function formatPlural(_a2, getPluralRules, value, options) {
4216
- var locale = _a2.locale, onError = _a2.onError;
6854
+ function formatPlural(_a3, getPluralRules, value, options) {
6855
+ var locale = _a3.locale, onError = _a3.onError;
4217
6856
  if (options === void 0) {
4218
6857
  options = {};
4219
6858
  }
@@ -4231,8 +6870,8 @@ function formatPlural(_a2, getPluralRules, value, options) {
4231
6870
 
4232
6871
  // ../../node_modules/@formatjs/intl/lib/src/relativeTime.js
4233
6872
  var RELATIVE_TIME_FORMAT_OPTIONS = ["numeric", "style"];
4234
- function getFormatter2(_a2, getRelativeTimeFormat, options) {
4235
- var locale = _a2.locale, formats = _a2.formats, onError = _a2.onError;
6873
+ function getFormatter2(_a3, getRelativeTimeFormat, options) {
6874
+ var locale = _a3.locale, formats = _a3.formats, onError = _a3.onError;
4236
6875
  if (options === void 0) {
4237
6876
  options = {};
4238
6877
  }
@@ -4283,8 +6922,8 @@ var NUMBER_FORMAT_OPTIONS = [
4283
6922
  "unitDisplay",
4284
6923
  "numberingSystem"
4285
6924
  ];
4286
- function getFormatter3(_a2, getNumberFormat, options) {
4287
- var locale = _a2.locale, formats = _a2.formats, onError = _a2.onError;
6925
+ function getFormatter3(_a3, getNumberFormat, options) {
6926
+ var locale = _a3.locale, formats = _a3.formats, onError = _a3.onError;
4288
6927
  if (options === void 0) {
4289
6928
  options = {};
4290
6929
  }
@@ -4505,8 +7144,8 @@ var formatMessage2 = function(config, formatters, descriptor, rawValues) {
4505
7144
  }
4506
7145
  return chunks;
4507
7146
  };
4508
- var createIntl2 = function(_a2, cache) {
4509
- var rawDefaultRichTextElements = _a2.defaultRichTextElements, config = __rest(_a2, ["defaultRichTextElements"]);
7147
+ var createIntl2 = function(_a3, cache) {
7148
+ var rawDefaultRichTextElements = _a3.defaultRichTextElements, config = __rest(_a3, ["defaultRichTextElements"]);
4510
7149
  var defaultRichTextElements = assignUniqueKeysToFormatXMLElementFnArgument(rawDefaultRichTextElements);
4511
7150
  var coreIntl = createIntl(__assign(__assign(__assign({}, DEFAULT_INTL_CONFIG2), config), { defaultRichTextElements }), cache);
4512
7151
  var resolvedConfig = {
@@ -4541,8 +7180,8 @@ var IntlProvider2 = (
4541
7180
  };
4542
7181
  return _this;
4543
7182
  }
4544
- IntlProvider4.getDerivedStateFromProps = function(props, _a2) {
4545
- var prevConfig = _a2.prevConfig, cache = _a2.cache;
7183
+ IntlProvider4.getDerivedStateFromProps = function(props, _a3) {
7184
+ var prevConfig = _a3.prevConfig, cache = _a3.cache;
4546
7185
  var config = processIntlConfig(props);
4547
7186
  if (!shallowEqual(prevConfig, config)) {
4548
7187
  return {
@@ -4605,8 +7244,8 @@ var defaultGroupOrder = [
4605
7244
  "webauthn"
4606
7245
  ];
4607
7246
  function defaultNodeSorter(a, b) {
4608
- var _a2, _b;
4609
- const aGroupWeight = (_a2 = defaultGroupOrder.indexOf(a.group)) != null ? _a2 : 999;
7247
+ var _a3, _b;
7248
+ const aGroupWeight = (_a3 = defaultGroupOrder.indexOf(a.group)) != null ? _a3 : 999;
4610
7249
  const bGroupWeight = (_b = defaultGroupOrder.indexOf(b.group)) != null ? _b : 999;
4611
7250
  return aGroupWeight - bGroupWeight;
4612
7251
  }
@@ -4666,6 +7305,9 @@ function OryFlowProvider({
4666
7305
  );
4667
7306
  }
4668
7307
 
7308
+ // src/context/intl-context.tsx
7309
+ import { useContext as useContext4 } from "react";
7310
+
4669
7311
  // src/locales/index.ts
4670
7312
  var locales_exports = {};
4671
7313
  __export(locales_exports, {
@@ -6104,7 +8746,6 @@ var se_default = {
6104
8746
  };
6105
8747
 
6106
8748
  // src/context/intl-context.tsx
6107
- import { useContext as useContext4 } from "react";
6108
8749
  import { jsx as jsx6 } from "react/jsx-runtime";
6109
8750
  var isCustomTranslations = (o) => {
6110
8751
  return typeof o === "object" && !!o && "customTranslations" in o && !!o.customTranslations;
@@ -6113,7 +8754,7 @@ var IntlProvider3 = ({
6113
8754
  children,
6114
8755
  ...props
6115
8756
  }) => {
6116
- var _a2, _b;
8757
+ var _a3, _b;
6117
8758
  const intlCtx = useContext4(Context);
6118
8759
  if (intlCtx) {
6119
8760
  return children;
@@ -6127,7 +8768,7 @@ var IntlProvider3 = ({
6127
8768
  defaultLocale: props.defaultLocale,
6128
8769
  messages: props.customTranslations[props.locale]
6129
8770
  } : {
6130
- locale: (_a2 = props.locale) != null ? _a2 : "en",
8771
+ locale: (_a3 = props.locale) != null ? _a3 : "en",
6131
8772
  defaultLocale: (_b = props.defaultLocale) != null ? _b : "en",
6132
8773
  messages: translation
6133
8774
  };
@@ -6156,9 +8797,8 @@ function OryProvider({
6156
8797
  }
6157
8798
 
6158
8799
  // src/theme/default/components/card/footer.tsx
6159
- import { FlowType } from "@ory/client-fetch";
6160
8800
  import { jsx as jsx8, jsxs as jsxs4 } from "react/jsx-runtime";
6161
- function DefaultCardFooter({}) {
8801
+ function DefaultCardFooter() {
6162
8802
  const { flowType } = useOryFlow();
6163
8803
  switch (flowType) {
6164
8804
  case FlowType.Login:
@@ -6173,15 +8813,20 @@ function DefaultCardFooter({}) {
6173
8813
  return null;
6174
8814
  }
6175
8815
  }
8816
+ function getReturnToQueryParam() {
8817
+ if (typeof window !== "undefined") {
8818
+ const searchParams = new URLSearchParams(window.location.search);
8819
+ return searchParams.get("return_to");
8820
+ }
8821
+ }
6176
8822
  function LoginCardFooter() {
6177
8823
  const { config } = useOryFlow();
6178
- const searchParams = useSearchParams();
6179
8824
  const intl = useIntl();
6180
- if (!config.project.registrationEnabled) {
8825
+ if (!config.project.registration_enabled) {
6181
8826
  return null;
6182
8827
  }
6183
- let registrationLink = `/self-service/registration/browser`;
6184
- const returnTo = searchParams == null ? void 0 : searchParams.get("return_to");
8828
+ let registrationLink = `${config.sdk.url}/self-service/registration/browser`;
8829
+ const returnTo = getReturnToQueryParam();
6185
8830
  if (returnTo) {
6186
8831
  registrationLink += `?return_to=${returnTo}`;
6187
8832
  }
@@ -6205,10 +8850,10 @@ function LoginCardFooter() {
6205
8850
  ] });
6206
8851
  }
6207
8852
  function RegistrationCardFooter() {
6208
- const searchParams = useSearchParams();
6209
8853
  const intl = useIntl();
6210
- let loginLink = `/self-service/login/browser`;
6211
- const returnTo = searchParams == null ? void 0 : searchParams.get("return_to");
8854
+ const { config } = useOryFlow();
8855
+ let loginLink = `${config.sdk.url}/self-service/login/browser`;
8856
+ const returnTo = getReturnToQueryParam();
6212
8857
  if (returnTo) {
6213
8858
  loginLink += `?return_to=${returnTo}`;
6214
8859
  }
@@ -6239,7 +8884,7 @@ function VerificationCardFooter() {
6239
8884
  }
6240
8885
 
6241
8886
  // src/theme/default/components/card/header.tsx
6242
- import { FlowType as FlowType2 } from "@ory/client-fetch";
8887
+ import { FlowType as FlowType2, isUiNodeInputAttributes } from "@ory/client-fetch";
6243
8888
  import { jsx as jsx9, jsxs as jsxs5 } from "react/jsx-runtime";
6244
8889
  function joinWithCommaOr(list) {
6245
8890
  if (list.length === 0) {
@@ -6248,7 +8893,7 @@ function joinWithCommaOr(list) {
6248
8893
  return list[0] + ".";
6249
8894
  } else {
6250
8895
  const last = list.pop();
6251
- return `${list.join(", ")}, or ${last}.`;
8896
+ return `${list.join(", ")} or ${last}.`;
6252
8897
  }
6253
8898
  }
6254
8899
  function constructCardHeaderText(container) {
@@ -6275,6 +8920,17 @@ function constructCardHeaderText(container) {
6275
8920
  if (ui.nodes.find((node) => node.group === "webauthn")) {
6276
8921
  parts.push(`a security key`);
6277
8922
  }
8923
+ if (ui.nodes.find((node) => node.group === "default")) {
8924
+ const primaryIdentifier = ui.nodes.filter(
8925
+ (node) => isUiNodeInputAttributes(node.attributes) && node.attributes.name.startsWith("traits")
8926
+ );
8927
+ if (primaryIdentifier.length == 1) {
8928
+ const label = primaryIdentifier[0].meta.label;
8929
+ if (label) {
8930
+ parts.push(`your ${label.text}`);
8931
+ }
8932
+ }
8933
+ }
6278
8934
  switch (container.flowType) {
6279
8935
  case FlowType2.Login:
6280
8936
  if (container.flow.refresh) {
@@ -6310,7 +8966,7 @@ function constructCardHeaderText(container) {
6310
8966
  }
6311
8967
  function InnerCardHeader({ title, text }) {
6312
8968
  const { CardLogo } = useComponents();
6313
- return /* @__PURE__ */ jsxs5("div", { className: "flex flex-col gap-8 antialiased", children: [
8969
+ return /* @__PURE__ */ jsxs5("header", { className: "flex flex-col gap-8 antialiased", children: [
6314
8970
  /* @__PURE__ */ jsx9(CardLogo, {}),
6315
8971
  /* @__PURE__ */ jsxs5("div", { children: [
6316
8972
  /* @__PURE__ */ jsx9("h2", { className: "font-semibold text-lg text-dialog-fg-default leading-normal", children: title }),
@@ -6380,7 +9036,7 @@ function DefaultMessageContainer({ children }) {
6380
9036
  if (!children || Array.isArray(children) && children.length === 0) {
6381
9037
  return null;
6382
9038
  }
6383
- return /* @__PURE__ */ jsx12("div", { className: "text-left", children });
9039
+ return /* @__PURE__ */ jsx12("section", { className: "text-left", children });
6384
9040
  }
6385
9041
  function DefaultMessage({ message }) {
6386
9042
  return /* @__PURE__ */ jsx12(
@@ -6586,18 +9242,18 @@ async function onSubmitLogin({ config, flow }, {
6586
9242
  body,
6587
9243
  onRedirect
6588
9244
  }) {
6589
- var _a2;
9245
+ var _a3;
6590
9246
  if (!config.sdk.url) {
6591
9247
  throw new Error(
6592
9248
  `Please supply your Ory Network SDK url to the Ory Elements configuration.`
6593
9249
  );
6594
9250
  }
6595
- await frontendClient(config.sdk.url, (_a2 = config.sdk.options) != null ? _a2 : {}).updateLoginFlowRaw({
9251
+ await frontendClient(config.sdk.url, (_a3 = config.sdk.options) != null ? _a3 : {}).updateLoginFlowRaw({
6596
9252
  flow: flow.id,
6597
9253
  updateLoginFlowBody: body
6598
9254
  }).then(() => {
6599
- var _a3;
6600
- window.location.href = (_a3 = flow.return_to) != null ? _a3 : config.sdk.url + "/self-service/login/browser";
9255
+ var _a4;
9256
+ window.location.href = (_a4 = flow.return_to) != null ? _a4 : config.sdk.url + "/self-service/login/browser";
6601
9257
  }).catch(
6602
9258
  handleFlowError({
6603
9259
  onRestartFlow: () => {
@@ -6627,13 +9283,13 @@ async function onSubmitSettings({ config, flow }, {
6627
9283
  body,
6628
9284
  onRedirect
6629
9285
  }) {
6630
- var _a2;
9286
+ var _a3;
6631
9287
  if (!config.sdk.url) {
6632
9288
  throw new Error(
6633
9289
  `Please supply your Ory Network SDK url to the Ory Elements configuration.`
6634
9290
  );
6635
9291
  }
6636
- const client = frontendClient2(config.sdk.url, (_a2 = config.sdk.options) != null ? _a2 : {});
9292
+ const client = frontendClient2(config.sdk.url, (_a3 = config.sdk.options) != null ? _a3 : {});
6637
9293
  await client.updateSettingsFlowRaw({
6638
9294
  flow: flow.id,
6639
9295
  updateSettingsFlowBody: body
@@ -6675,13 +9331,13 @@ async function onSubmitRecovery({ config, flow }, {
6675
9331
  body,
6676
9332
  onRedirect
6677
9333
  }) {
6678
- var _a2;
9334
+ var _a3;
6679
9335
  if (!config.sdk.url) {
6680
9336
  throw new Error(
6681
9337
  `Please supply your Ory Network SDK url to the Ory Elements configuration.`
6682
9338
  );
6683
9339
  }
6684
- await frontendClient3(config.sdk.url, (_a2 = config.sdk.options) != null ? _a2 : {}).updateRecoveryFlowRaw({
9340
+ await frontendClient3(config.sdk.url, (_a3 = config.sdk.options) != null ? _a3 : {}).updateRecoveryFlowRaw({
6685
9341
  flow: flow.id,
6686
9342
  updateRecoveryFlowBody: body
6687
9343
  }).then(async (res) => {
@@ -6724,13 +9380,13 @@ async function onSubmitVerification({ config, flow }, {
6724
9380
  body,
6725
9381
  onRedirect
6726
9382
  }) {
6727
- var _a2;
9383
+ var _a3;
6728
9384
  if (!config.sdk.url) {
6729
9385
  throw new Error(
6730
9386
  `Please supply your Ory Network SDK URL to the Ory Elements configuration.`
6731
9387
  );
6732
9388
  }
6733
- await frontendClient4(config.sdk.url, (_a2 = config.sdk.options) != null ? _a2 : {}).updateVerificationFlowRaw({
9389
+ await frontendClient4(config.sdk.url, (_a3 = config.sdk.options) != null ? _a3 : {}).updateVerificationFlowRaw({
6734
9390
  flow: flow.id,
6735
9391
  updateVerificationFlowBody: body
6736
9392
  }).then(
@@ -6767,13 +9423,13 @@ async function onSubmitRegistration({ config, flow }, {
6767
9423
  body,
6768
9424
  onRedirect
6769
9425
  }) {
6770
- var _a2;
9426
+ var _a3;
6771
9427
  if (!config.sdk.url) {
6772
9428
  throw new Error(
6773
9429
  `Please supply your Ory Network SDK url to the Ory Elements configuration.`
6774
9430
  );
6775
9431
  }
6776
- const client = frontendClient5(config.sdk.url, (_a2 = config.sdk.options) != null ? _a2 : {});
9432
+ const client = frontendClient5(config.sdk.url, (_a3 = config.sdk.options) != null ? _a3 : {});
6777
9433
  await client.updateRegistrationFlowRaw({
6778
9434
  flow: flow.id,
6779
9435
  updateRegistrationFlowBody: body
@@ -6815,8 +9471,9 @@ var DefaultButton = ({
6815
9471
  name,
6816
9472
  value,
6817
9473
  // Button does not support these attributes, so we skip them
6818
- autocomplete,
6819
- label: ignoredLabel,
9474
+ autocomplete: _ignoredAutocomplete,
9475
+ label: _ignoredLabel,
9476
+ node_type: _ignoredNodeType,
6820
9477
  // End of skipped attributes
6821
9478
  ...rest
6822
9479
  } = attributes;
@@ -6848,7 +9505,7 @@ var DefaultButton = ({
6848
9505
  className: cn(
6849
9506
  // TODO: Difficult to resolve merge conflict here. Please ensure this is correct:
6850
9507
  // "relative antialiased rounded border gap-3 leading-none transition-colors ease-linear duration-100 px-4 py-4.5 text-sm font-medium",
6851
- "antialiased rounded-border-radius-buttons border border-transparent gap-3 leading-none bg-button-primary-bg-default hover:bg-button-primary-bg-hover transition-colors text-button-primary-fg-default hover:text-button-primary-fg-hover px-4 py-4.5 text-sm font-medium",
9508
+ "antialiased rounded-border-radius-buttons border border-transparent gap-3 bg-button-primary-bg-default hover:bg-button-primary-bg-hover transition-colors text-button-primary-fg-default hover:text-button-primary-fg-hover px-4 py-4.5 text-sm leading-none font-medium",
6852
9509
  {
6853
9510
  "cursor-not-allowed": isSubmitting,
6854
9511
  "bg-button-primary-bg-hover": isSubmitting,
@@ -6863,7 +9520,7 @@ var DefaultButton = ({
6863
9520
  "span",
6864
9521
  {
6865
9522
  className: cn(
6866
- "transition-colors ease-linear duration-100 leading-3 text-button-primary-fg-default/20",
9523
+ "transition-colors ease-linear duration-100 leading-none text-button-primary-fg-default/20",
6867
9524
  {
6868
9525
  "text-button-primary-fg-default opacity-20 transition-opacity": isSubmitting && isPrimary,
6869
9526
  "text-button-secondary-fg-default/20": isSubmitting && !isPrimary
@@ -6904,8 +9561,8 @@ function CheckboxSVG() {
6904
9561
  /* @__PURE__ */ jsx20(
6905
9562
  "path",
6906
9563
  {
6907
- "fill-rule": "evenodd",
6908
- "clip-rule": "evenodd",
9564
+ fillRule: "evenodd",
9565
+ clipRule: "evenodd",
6909
9566
  d: "M11.6464 5.14645C11.8417 4.95118 12.1583 4.95118 12.3536 5.14645C12.5338 5.32669 12.5477 5.6103 12.3951 5.80645L12.3536 5.85355L7.35355 10.8536C7.17331 11.0338 6.8897 11.0477 6.69355 10.8951L6.64645 10.8536L4.14645 8.35355C3.95118 8.15829 3.95118 7.84171 4.14645 7.64645C4.32669 7.4662 4.6103 7.45234 4.80645 7.60485L4.85355 7.64645L7 9.7925L11.6464 5.14645Z",
6910
9567
  fill: "white"
6911
9568
  }
@@ -6922,8 +9579,8 @@ var DefaultCheckbox = ({
6922
9579
  value,
6923
9580
  name,
6924
9581
  // Button does not support these attributes, so we skip them
6925
- autocomplete,
6926
- onclick,
9582
+ autocomplete: _autocomplete,
9583
+ onclick: _onclick,
6927
9584
  // End of skipped attributes
6928
9585
  ...attributes
6929
9586
  } = initialAttributes;
@@ -6991,8 +9648,7 @@ function DefaultHorizontalDivider() {
6991
9648
 
6992
9649
  // src/theme/default/components/form/image.tsx
6993
9650
  import { jsx as jsx23 } from "react/jsx-runtime";
6994
- function DefaultImage({ node, attributes }) {
6995
- const intl = useIntl();
9651
+ function DefaultImage({ attributes }) {
6996
9652
  return /* @__PURE__ */ jsx23("figure", { children: /* @__PURE__ */ jsx23("img", { ...attributes }) });
6997
9653
  }
6998
9654
 
@@ -7023,7 +9679,6 @@ var DefaultInput = ({
7023
9679
 
7024
9680
  // src/theme/default/components/form/label.tsx
7025
9681
  import { FlowType as FlowType8, getNodeLabel as getNodeLabel4 } from "@ory/client-fetch";
7026
- import Link from "next/link";
7027
9682
  import { jsx as jsx25, jsxs as jsxs11 } from "react/jsx-runtime";
7028
9683
  function DefaultLabel({
7029
9684
  node,
@@ -7045,10 +9700,11 @@ function DefaultLabel({
7045
9700
  children: formatMessage3(label, intl)
7046
9701
  }
7047
9702
  ),
7048
- isPassword && config.project.recoveryEnabled && flowType === FlowType8.Login && /* @__PURE__ */ jsx25(
7049
- Link,
9703
+ isPassword && config.project.recovery_enabled && flowType === FlowType8.Login && // TODO: make it possible to override with a custom component
9704
+ /* @__PURE__ */ jsx25(
9705
+ "a",
7050
9706
  {
7051
- href: "/recovery",
9707
+ href: config.project.recovery_ui_url,
7052
9708
  className: "text-links-link-default hover:underline hover:text-link-hover transition-colors text-sm font-medium",
7053
9709
  children: intl.formatMessage({
7054
9710
  id: "forms.label.forgot-password",
@@ -7173,9 +9829,6 @@ var DefaultPinCodeInput = ({ attributes }) => {
7173
9829
  );
7174
9830
  };
7175
9831
 
7176
- // src/theme/default/components/form/social.tsx
7177
- import Image from "next/image";
7178
-
7179
9832
  // src/theme/default/provider-logos/apple.svg
7180
9833
  import * as React13 from "react";
7181
9834
  import { jsx as jsx29, jsxs as jsxs13 } from "react/jsx-runtime";
@@ -7188,7 +9841,7 @@ var apple_default = SvgApple;
7188
9841
  // src/theme/default/provider-logos/auth0.svg
7189
9842
  import * as React14 from "react";
7190
9843
  import { jsx as jsx30 } from "react/jsx-runtime";
7191
- var SvgAuth0 = (props) => /* @__PURE__ */ jsx30("svg", { xmlns: "http://www.w3.org/2000/svg", width: 64, height: 64, ...props, children: /* @__PURE__ */ jsx30("path", { d: "M49.012 51.774L42.514 32l17.008-12.22h-21.02L32.005 0h21.032l6.506 19.78c3.767 11.468-.118 24.52-10.53 31.993zm-34.023 0L31.998 64l17.015-12.226-17.008-12.22zm-10.516-32c-3.976 12.1.64 24.917 10.5 32.007v-.007L21.482 32 4.474 19.774l21.025.007L31.998 0H10.972z", fill: "#eb5424" }) });
9844
+ var SvgAuth0 = (props) => /* @__PURE__ */ jsx30("svg", { xmlns: "http://www.w3.org/2000/svg", width: 64, height: 64, viewBox: "0 0 64 64", ...props, children: /* @__PURE__ */ jsx30("path", { d: "M49.012 51.774L42.514 32l17.008-12.22h-21.02L32.005 0h21.032l6.506 19.78c3.767 11.468-.118 24.52-10.53 31.993zm-34.023 0L31.998 64l17.015-12.226-17.008-12.22zm-10.516-32c-3.976 12.1.64 24.917 10.5 32.007v-.007L21.482 32 4.474 19.774l21.025.007L31.998 0H10.972z", fill: "#eb5424" }) });
7192
9845
  var auth0_default = SvgAuth0;
7193
9846
 
7194
9847
  // src/theme/default/provider-logos/discord.svg
@@ -7225,7 +9878,7 @@ var generic_default = SvgGeneric;
7225
9878
  // src/theme/default/provider-logos/github.svg
7226
9879
  import * as React18 from "react";
7227
9880
  import { jsx as jsx34 } from "react/jsx-runtime";
7228
- var SvgGithub = (props) => /* @__PURE__ */ jsx34("svg", { xmlns: "http://www.w3.org/2000/svg", width: 24, height: 24, ...props, children: /* @__PURE__ */ jsx34("path", { d: "M12 0C5.374 0 0 5.373 0 12c0 5.302 3.438 9.8 8.207 11.387.599.111.793-.261.793-.577v-2.234c-3.338.726-4.033-1.416-4.033-1.416-.546-1.387-1.333-1.756-1.333-1.756-1.089-.745.083-.729.083-.729 1.205.084 1.839 1.237 1.839 1.237 1.07 1.834 2.807 1.304 3.492.997.107-.775.418-1.305.762-1.604-2.665-.305-5.467-1.334-5.467-5.931 0-1.311.469-2.381 1.236-3.221-.124-.303-.535-1.524.117-3.176 0 0 1.008-.322 3.301 1.23A11.509 11.509 0 0 1 12 5.803c1.02.005 2.047.138 3.006.404 2.291-1.552 3.297-1.23 3.297-1.23.653 1.653.242 2.874.118 3.176.77.84 1.235 1.911 1.235 3.221 0 4.609-2.807 5.624-5.479 5.921.43.372.823 1.102.823 2.222v3.293c0 .319.192.694.801.576C20.566 21.797 24 17.3 24 12c0-6.627-5.373-12-12-12z" }) });
9881
+ var SvgGithub = (props) => /* @__PURE__ */ jsx34("svg", { xmlns: "http://www.w3.org/2000/svg", width: 24, height: 24, viewBox: "0 0 24 24", ...props, children: /* @__PURE__ */ jsx34("path", { d: "M12 0C5.374 0 0 5.373 0 12c0 5.302 3.438 9.8 8.207 11.387.599.111.793-.261.793-.577v-2.234c-3.338.726-4.033-1.416-4.033-1.416-.546-1.387-1.333-1.756-1.333-1.756-1.089-.745.083-.729.083-.729 1.205.084 1.839 1.237 1.839 1.237 1.07 1.834 2.807 1.304 3.492.997.107-.775.418-1.305.762-1.604-2.665-.305-5.467-1.334-5.467-5.931 0-1.311.469-2.381 1.236-3.221-.124-.303-.535-1.524.117-3.176 0 0 1.008-.322 3.301 1.23A11.509 11.509 0 0 1 12 5.803c1.02.005 2.047.138 3.006.404 2.291-1.552 3.297-1.23 3.297-1.23.653 1.653.242 2.874.118 3.176.77.84 1.235 1.911 1.235 3.221 0 4.609-2.807 5.624-5.479 5.921.43.372.823 1.102.823 2.222v3.293c0 .319.192.694.801.576C20.566 21.797 24 17.3 24 12c0-6.627-5.373-12-12-12z" }) });
7229
9882
  var github_default = SvgGithub;
7230
9883
 
7231
9884
  // src/theme/default/provider-logos/gitlab.svg
@@ -7242,7 +9895,7 @@ var gitlab_default = SvgGitlab;
7242
9895
  // src/theme/default/provider-logos/google.svg
7243
9896
  import * as React20 from "react";
7244
9897
  import { jsx as jsx36, jsxs as jsxs18 } from "react/jsx-runtime";
7245
- var SvgGoogle = (props) => /* @__PURE__ */ jsxs18("svg", { width: 24, height: 24, xmlns: "http://www.w3.org/2000/svg", ...props, children: [
9898
+ var SvgGoogle = (props) => /* @__PURE__ */ jsxs18("svg", { width: 24, height: 24, viewBox: "0 0 24 24", xmlns: "http://www.w3.org/2000/svg", ...props, children: [
7246
9899
  /* @__PURE__ */ jsx36("path", { fill: "#4285F4", d: "M23.745 12.27c0-.79-.07-1.54-.19-2.27h-11.3v4.51h6.47c-.29 1.48-1.14 2.73-2.4 3.58v3h3.86c2.26-2.09 3.56-5.17 3.56-8.82Z" }),
7247
9900
  /* @__PURE__ */ jsx36("path", { fill: "#34A853", d: "M12.255 24c3.24 0 5.95-1.08 7.93-2.91l-3.86-3c-1.08.72-2.45 1.16-4.07 1.16-3.13 0-5.78-2.11-6.73-4.96h-3.98v3.09C3.515 21.3 7.565 24 12.255 24Z" }),
7248
9901
  /* @__PURE__ */ jsx36("path", { fill: "#FBBC05", d: "M5.525 14.29c-.25-.72-.38-1.49-.38-2.29s.14-1.57.38-2.29V6.62h-3.98a11.86 11.86 0 0 0 0 10.76l3.98-3.09Z" }),
@@ -7264,7 +9917,7 @@ var linkedin_default = SvgLinkedin;
7264
9917
  // src/theme/default/provider-logos/microsoft.svg
7265
9918
  import * as React22 from "react";
7266
9919
  import { jsx as jsx38, jsxs as jsxs20 } from "react/jsx-runtime";
7267
- var SvgMicrosoft = (props) => /* @__PURE__ */ jsxs20("svg", { width: 23, height: 23, fill: "none", xmlns: "http://www.w3.org/2000/svg", ...props, children: [
9920
+ var SvgMicrosoft = (props) => /* @__PURE__ */ jsxs20("svg", { width: 23, height: 23, viewBox: "0 0 23 23", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...props, children: [
7268
9921
  /* @__PURE__ */ jsx38("path", { d: "M1 1h10v10H1V1Z", fill: "#F35325" }),
7269
9922
  /* @__PURE__ */ jsx38("path", { d: "M12 1h10v10H12V1Z", fill: "#81BC06" }),
7270
9923
  /* @__PURE__ */ jsx38("path", { d: "M1 12h10v10H1V12Z", fill: "#05A6F0" }),
@@ -7321,18 +9974,24 @@ var provider_logos_default = logos;
7321
9974
 
7322
9975
  // src/theme/default/components/form/social.tsx
7323
9976
  import { jsx as jsx42, jsxs as jsxs24 } from "react/jsx-runtime";
9977
+ function extractProvider(context) {
9978
+ if (context && typeof context === "object" && "provider" in context && typeof context.provider === "string") {
9979
+ return context.provider;
9980
+ }
9981
+ return void 0;
9982
+ }
7324
9983
  function DefaultButtonSocial({
7325
9984
  attributes,
7326
9985
  node
7327
9986
  }) {
7328
- var _a2, _b, _c, _d, _e, _f;
9987
+ var _a3, _b, _c, _d;
7329
9988
  const {
7330
9989
  flow: { ui }
7331
9990
  } = useOryFlow();
7332
- const oidcNodeCount = (_a2 = ui.nodes.filter((node2) => node2.group === "oidc").length) != null ? _a2 : 0;
7333
- const logo = provider_logos_default[attributes.value];
9991
+ const oidcNodeCount = (_a3 = ui.nodes.filter((node2) => node2.group === "oidc").length) != null ? _a3 : 0;
9992
+ const Logo = provider_logos_default[attributes.value];
7334
9993
  const showLabel = oidcNodeCount % 3 !== 0 && oidcNodeCount % 4 !== 0;
7335
- const provider = ((_c = (_b = node.meta.label) == null ? void 0 : _b.context) == null ? void 0 : _c.provider) || ((_d = node.meta.label) == null ? void 0 : _d.text) || "";
9994
+ const provider = (_c = extractProvider((_b = node.meta.label) == null ? void 0 : _b.context)) != null ? _c : "";
7336
9995
  return /* @__PURE__ */ jsxs24(
7337
9996
  "button",
7338
9997
  {
@@ -7344,17 +10003,15 @@ function DefaultButtonSocial({
7344
10003
  type: "submit",
7345
10004
  name: "provider",
7346
10005
  children: [
7347
- logo ? /* @__PURE__ */ jsx42(
7348
- Image,
10006
+ /* @__PURE__ */ jsx42("span", { className: "w-5 h-5", children: Logo ? /* @__PURE__ */ jsx42(
10007
+ Logo,
7349
10008
  {
7350
- width: 16,
7351
- height: 16,
7352
- src: logo,
7353
- className: "w-5 h-5",
7354
- alt: ((_e = node.meta.label) == null ? void 0 : _e.text) || attributes.value
10009
+ width: 20,
10010
+ height: 20,
10011
+ className: "object-fill w-full h-full"
7355
10012
  }
7356
- ) : /* @__PURE__ */ jsx42("div", { className: "w-5 h-5 rounded-full border flex items-center justify-center text-xs", children: provider.slice(0, 2) }),
7357
- showLabel ? /* @__PURE__ */ jsx42("span", { className: "text-sm text-left leading-none font-medium text-forms-fg-default flex-grow", children: (_f = node.meta.label) == null ? void 0 : _f.text }) : null
10013
+ ) : /* @__PURE__ */ jsx42("span", { className: "rounded-full border flex items-center justify-center text-xs", children: provider.slice(0, 2) }) }),
10014
+ showLabel ? /* @__PURE__ */ jsx42("span", { className: "text-sm text-left leading-none font-medium text-forms-fg-default flex-grow", children: (_d = node.meta.label) == null ? void 0 : _d.text }) : null
7358
10015
  ]
7359
10016
  }
7360
10017
  );
@@ -7380,11 +10037,11 @@ function DefaultSocialButtonContainer({
7380
10037
  // src/theme/default/components/form/text.tsx
7381
10038
  import { Fragment as Fragment3, jsx as jsx43, jsxs as jsxs25 } from "react/jsx-runtime";
7382
10039
  function DefaultText({ node, attributes }) {
7383
- var _a2;
10040
+ var _a3;
7384
10041
  const intl = useIntl();
7385
10042
  return /* @__PURE__ */ jsxs25(Fragment3, { children: [
7386
10043
  /* @__PURE__ */ jsx43("p", { "data-testid": `node/text/${attributes.id}/label`, children: formatMessage3(node.meta.label, intl) }),
7387
- (_a2 = attributes.text.context.secrets) == null ? void 0 : _a2.map((text, index) => /* @__PURE__ */ jsx43("pre", { "data-testid": `node/text/lookup_secret_codes/text`, children: /* @__PURE__ */ jsx43("code", { children: formatMessage3(text, intl) }) }, index))
10044
+ (_a3 = attributes.text.context.secrets) == null ? void 0 : _a3.map((text, index) => /* @__PURE__ */ jsx43("pre", { "data-testid": `node/text/lookup_secret_codes/text`, children: /* @__PURE__ */ jsx43("code", { children: formatMessage3(text, intl) }) }, index))
7388
10045
  ] });
7389
10046
  }
7390
10047
 
@@ -7503,8 +10160,8 @@ var NodeInput = ({
7503
10160
  onloadTrigger,
7504
10161
  onclickTrigger,
7505
10162
  // These properties do not exist on input fields so we remove them (as we already have handled them).
7506
- onclick: ignoredOnclick,
7507
- onload: ignoredOnload,
10163
+ onclick: _ignoredOnclick,
10164
+ onload: _ignoredOnload,
7508
10165
  //
7509
10166
  ...attrs
7510
10167
  } = attributes;
@@ -7516,10 +10173,11 @@ var NodeInput = ({
7516
10173
  triggerToWindowCall(onloadTrigger);
7517
10174
  }
7518
10175
  },
7519
- // eslint-disable-next-line react-hooks/exhaustive-deps
10176
+ // TODO(jonas): make sure onloadTrigger is stable
10177
+ // eslint-disable-next-line react-hooks/exhaustive-deps -- ignore onloadTrigger for now, until we make sure this is stable
7520
10178
  []
7521
10179
  );
7522
- const handleClick = (e) => {
10180
+ const handleClick = () => {
7523
10181
  if (onclickTrigger) {
7524
10182
  triggerToWindowCall(onclickTrigger);
7525
10183
  }
@@ -7590,7 +10248,7 @@ var NodeInput = ({
7590
10248
  import {
7591
10249
  isUiNodeAnchorAttributes,
7592
10250
  isUiNodeImageAttributes,
7593
- isUiNodeInputAttributes,
10251
+ isUiNodeInputAttributes as isUiNodeInputAttributes2,
7594
10252
  isUiNodeScriptAttributes,
7595
10253
  isUiNodeTextAttributes
7596
10254
  } from "@ory/client-fetch";
@@ -7602,12 +10260,17 @@ var Node = ({ node, onClick }) => {
7602
10260
  } else if (isUiNodeTextAttributes(node.attributes)) {
7603
10261
  const attrs = node.attributes;
7604
10262
  return /* @__PURE__ */ jsx47(Components.Text, { attributes: attrs, node });
7605
- } else if (isUiNodeInputAttributes(node.attributes)) {
10263
+ } else if (isUiNodeInputAttributes2(node.attributes)) {
7606
10264
  return /* @__PURE__ */ jsx47(NodeInput, { node, attributes: node.attributes, onClick });
7607
10265
  } else if (isUiNodeAnchorAttributes(node.attributes)) {
7608
10266
  return /* @__PURE__ */ jsx47(Components.LinkButton, { attributes: node.attributes, node });
7609
10267
  } else if (isUiNodeScriptAttributes(node.attributes)) {
7610
- const { crossorigin, referrerpolicy, node_type, ...attributes } = node.attributes;
10268
+ const {
10269
+ crossorigin,
10270
+ referrerpolicy,
10271
+ node_type: _nodeType,
10272
+ ...attributes
10273
+ } = node.attributes;
7611
10274
  return /* @__PURE__ */ jsx47(
7612
10275
  "script",
7613
10276
  {
@@ -7665,19 +10328,19 @@ import {
7665
10328
  FlowType as FlowType9,
7666
10329
  isUiNodeAnchorAttributes as isUiNodeAnchorAttributes2,
7667
10330
  isUiNodeImageAttributes as isUiNodeImageAttributes2,
7668
- isUiNodeInputAttributes as isUiNodeInputAttributes2,
10331
+ isUiNodeInputAttributes as isUiNodeInputAttributes3,
7669
10332
  isUiNodeScriptAttributes as isUiNodeScriptAttributes2
7670
10333
  } from "@ory/client-fetch";
7671
10334
  import { Fragment as Fragment5, jsx as jsx50, jsxs as jsxs27 } from "react/jsx-runtime";
7672
10335
  function OryForm({ children }) {
7673
- var _a2;
10336
+ var _a3;
7674
10337
  const { FormContainer } = useComponents();
7675
10338
  const flowContainer = useOryFlow();
7676
10339
  const methods = useForm2({
7677
10340
  // TODO: Generify this, so we have typesafety in the submit handler.
7678
10341
  defaultValues: flowContainer.flow.ui.nodes.reduce(
7679
10342
  (acc, node) => {
7680
- if (isUiNodeInputAttributes2(node.attributes)) {
10343
+ if (isUiNodeInputAttributes3(node.attributes)) {
7681
10344
  if (node.attributes.name === "method") {
7682
10345
  return acc;
7683
10346
  }
@@ -7750,7 +10413,7 @@ function OryForm({ children }) {
7750
10413
  }
7751
10414
  };
7752
10415
  const hasMethods = flowContainer.flow.ui.nodes.filter((node) => {
7753
- if (isUiNodeInputAttributes2(node.attributes)) {
10416
+ if (isUiNodeInputAttributes3(node.attributes)) {
7754
10417
  return node.attributes.name !== "csrf_token";
7755
10418
  } else if (isUiNodeAnchorAttributes2(node.attributes)) {
7756
10419
  return true;
@@ -7761,7 +10424,7 @@ function OryForm({ children }) {
7761
10424
  }
7762
10425
  return false;
7763
10426
  }).length > 0;
7764
- if (!hasMethods && ((_a2 = flowContainer.flow.ui.messages) != null ? _a2 : []).length === 0) {
10427
+ if (!hasMethods && ((_a3 = flowContainer.flow.ui.messages) != null ? _a3 : []).length === 0) {
7765
10428
  return intl.formatMessage({
7766
10429
  id: `identities.messages.${5000002}`,
7767
10430
  defaultMessage: "No authentication methods are available for this request. Please contact the site or app owner."
@@ -7772,7 +10435,7 @@ function OryForm({ children }) {
7772
10435
  {
7773
10436
  action: flowContainer.flow.ui.action,
7774
10437
  method: flowContainer.flow.ui.method,
7775
- onSubmit: methods.handleSubmit(onSubmit),
10438
+ onSubmit: () => void methods.handleSubmit(onSubmit),
7776
10439
  children: children != null ? children : /* @__PURE__ */ jsxs27(Fragment5, { children: [
7777
10440
  /* @__PURE__ */ jsx50(OryFormSocialButtons, {}),
7778
10441
  /* @__PURE__ */ jsx50(
@@ -7845,7 +10508,7 @@ function OryCardContent({ children }) {
7845
10508
  ] })
7846
10509
  ] });
7847
10510
  }
7848
- function OryCardFooter({}) {
10511
+ function OryCardFooter() {
7849
10512
  const { CardFooter } = useComponents();
7850
10513
  return /* @__PURE__ */ jsx53(CardFooter, {});
7851
10514
  }
@@ -7883,7 +10546,7 @@ function Login({
7883
10546
  flow,
7884
10547
  flowType: FlowType10.Login,
7885
10548
  components,
7886
- children: children || /* @__PURE__ */ jsx55(OryCard, {})
10549
+ children: children != null ? children : /* @__PURE__ */ jsx55(OryCard, {})
7887
10550
  }
7888
10551
  );
7889
10552
  }
@@ -7908,7 +10571,7 @@ function Recovery({
7908
10571
  flow,
7909
10572
  flowType: FlowType11.Recovery,
7910
10573
  components,
7911
- children: children || /* @__PURE__ */ jsx56(OryCard, {})
10574
+ children: children != null ? children : /* @__PURE__ */ jsx56(OryCard, {})
7912
10575
  }
7913
10576
  );
7914
10577
  }
@@ -7933,7 +10596,7 @@ function Registration({
7933
10596
  flow,
7934
10597
  flowType: FlowType12.Registration,
7935
10598
  components,
7936
- children: children || /* @__PURE__ */ jsx57(OryCard, {})
10599
+ children: children != null ? children : /* @__PURE__ */ jsx57(OryCard, {})
7937
10600
  }
7938
10601
  );
7939
10602
  }
@@ -7958,7 +10621,7 @@ function Settings({
7958
10621
  flow,
7959
10622
  flowType: FlowType13.Settings,
7960
10623
  components,
7961
- children: children || /* @__PURE__ */ jsx58(OryCard, {})
10624
+ children: children != null ? children : /* @__PURE__ */ jsx58(OryCard, {})
7962
10625
  }
7963
10626
  );
7964
10627
  }
@@ -7983,7 +10646,7 @@ function Verification({
7983
10646
  flow,
7984
10647
  flowType: FlowType14.Verification,
7985
10648
  components,
7986
- children: children || /* @__PURE__ */ jsx59(OryCard, {})
10649
+ children: children != null ? children : /* @__PURE__ */ jsx59(OryCard, {})
7987
10650
  }
7988
10651
  );
7989
10652
  }