intl-messageformat 10.3.1 → 10.3.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/intl-messageformat.esm.js +18 -18
- package/intl-messageformat.iife.js +19 -19
- package/lib/src/core.js +1 -1
- package/package.json +2 -2
- package/src/core.js +4 -4
|
@@ -25,9 +25,9 @@ var __publicField = (obj, key, value) => {
|
|
|
25
25
|
return value;
|
|
26
26
|
};
|
|
27
27
|
|
|
28
|
-
// ../../../../../../../../execroot/formatjs/bazel-out/
|
|
28
|
+
// ../../../../../../../../execroot/formatjs/bazel-out/darwin_arm64-fastbuild/bin/node_modules/.aspect_rules_js/tslib@2.4.0/node_modules/tslib/tslib.js
|
|
29
29
|
var require_tslib = __commonJS({
|
|
30
|
-
"../../../../../../../../execroot/formatjs/bazel-out/
|
|
30
|
+
"../../../../../../../../execroot/formatjs/bazel-out/darwin_arm64-fastbuild/bin/node_modules/.aspect_rules_js/tslib@2.4.0/node_modules/tslib/tslib.js"(exports, module) {
|
|
31
31
|
var __extends2;
|
|
32
32
|
var __assign2;
|
|
33
33
|
var __rest2;
|
|
@@ -465,7 +465,7 @@ var require_tslib = __commonJS({
|
|
|
465
465
|
}
|
|
466
466
|
});
|
|
467
467
|
|
|
468
|
-
// ../../../../../../../../execroot/formatjs/bazel-out/
|
|
468
|
+
// ../../../../../../../../execroot/formatjs/bazel-out/darwin_arm64-fastbuild/bin/node_modules/.aspect_rules_js/tslib@2.4.0/node_modules/tslib/modules/index.js
|
|
469
469
|
var import_tslib = __toESM(require_tslib(), 1);
|
|
470
470
|
var {
|
|
471
471
|
__extends,
|
|
@@ -495,7 +495,7 @@ var {
|
|
|
495
495
|
__classPrivateFieldIn
|
|
496
496
|
} = import_tslib.default;
|
|
497
497
|
|
|
498
|
-
// ../../../../../../../../execroot/formatjs/bazel-out/
|
|
498
|
+
// ../../../../../../../../execroot/formatjs/bazel-out/darwin_arm64-fastbuild/bin/node_modules/.aspect_rules_js/@formatjs+icu-messageformat-parser@0.0.0/node_modules/@formatjs/icu-messageformat-parser/lib/error.js
|
|
499
499
|
var ErrorKind;
|
|
500
500
|
(function(ErrorKind2) {
|
|
501
501
|
ErrorKind2[ErrorKind2["EXPECT_ARGUMENT_CLOSING_BRACE"] = 1] = "EXPECT_ARGUMENT_CLOSING_BRACE";
|
|
@@ -526,7 +526,7 @@ var ErrorKind;
|
|
|
526
526
|
ErrorKind2[ErrorKind2["UNCLOSED_TAG"] = 27] = "UNCLOSED_TAG";
|
|
527
527
|
})(ErrorKind || (ErrorKind = {}));
|
|
528
528
|
|
|
529
|
-
// ../../../../../../../../execroot/formatjs/bazel-out/
|
|
529
|
+
// ../../../../../../../../execroot/formatjs/bazel-out/darwin_arm64-fastbuild/bin/node_modules/.aspect_rules_js/@formatjs+icu-messageformat-parser@0.0.0/node_modules/@formatjs/icu-messageformat-parser/lib/types.js
|
|
530
530
|
var TYPE;
|
|
531
531
|
(function(TYPE2) {
|
|
532
532
|
TYPE2[TYPE2["literal"] = 0] = "literal";
|
|
@@ -578,10 +578,10 @@ function isDateTimeSkeleton(el) {
|
|
|
578
578
|
return !!(el && typeof el === "object" && el.type === SKELETON_TYPE.dateTime);
|
|
579
579
|
}
|
|
580
580
|
|
|
581
|
-
// ../../../../../../../../execroot/formatjs/bazel-out/
|
|
581
|
+
// ../../../../../../../../execroot/formatjs/bazel-out/darwin_arm64-fastbuild/bin/node_modules/.aspect_rules_js/@formatjs+icu-messageformat-parser@0.0.0/node_modules/@formatjs/icu-messageformat-parser/lib/regex.generated.js
|
|
582
582
|
var SPACE_SEPARATOR_REGEX = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/;
|
|
583
583
|
|
|
584
|
-
// ../../../../../../../../execroot/formatjs/bazel-out/
|
|
584
|
+
// ../../../../../../../../execroot/formatjs/bazel-out/darwin_arm64-fastbuild/bin/node_modules/.aspect_rules_js/@formatjs+icu-skeleton-parser@0.0.0/node_modules/@formatjs/icu-skeleton-parser/lib/date-time.js
|
|
585
585
|
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;
|
|
586
586
|
function parseDateTimeSkeleton(skeleton) {
|
|
587
587
|
var result = {};
|
|
@@ -682,10 +682,10 @@ function parseDateTimeSkeleton(skeleton) {
|
|
|
682
682
|
return result;
|
|
683
683
|
}
|
|
684
684
|
|
|
685
|
-
// ../../../../../../../../execroot/formatjs/bazel-out/
|
|
685
|
+
// ../../../../../../../../execroot/formatjs/bazel-out/darwin_arm64-fastbuild/bin/node_modules/.aspect_rules_js/@formatjs+icu-skeleton-parser@0.0.0/node_modules/@formatjs/icu-skeleton-parser/lib/regex.generated.js
|
|
686
686
|
var WHITE_SPACE_REGEX = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
|
|
687
687
|
|
|
688
|
-
// ../../../../../../../../execroot/formatjs/bazel-out/
|
|
688
|
+
// ../../../../../../../../execroot/formatjs/bazel-out/darwin_arm64-fastbuild/bin/node_modules/.aspect_rules_js/@formatjs+icu-skeleton-parser@0.0.0/node_modules/@formatjs/icu-skeleton-parser/lib/number.js
|
|
689
689
|
function parseNumberSkeletonFromString(skeleton) {
|
|
690
690
|
if (skeleton.length === 0) {
|
|
691
691
|
throw new Error("Number skeleton cannot be empty");
|
|
@@ -951,7 +951,7 @@ function parseNumberSkeleton(tokens) {
|
|
|
951
951
|
return result;
|
|
952
952
|
}
|
|
953
953
|
|
|
954
|
-
// ../../../../../../../../execroot/formatjs/bazel-out/
|
|
954
|
+
// ../../../../../../../../execroot/formatjs/bazel-out/darwin_arm64-fastbuild/bin/node_modules/.aspect_rules_js/@formatjs+icu-messageformat-parser@0.0.0/node_modules/@formatjs/icu-messageformat-parser/lib/time-data.generated.js
|
|
955
955
|
var timeData = {
|
|
956
956
|
"AX": [
|
|
957
957
|
"H"
|
|
@@ -2290,7 +2290,7 @@ var timeData = {
|
|
|
2290
2290
|
]
|
|
2291
2291
|
};
|
|
2292
2292
|
|
|
2293
|
-
// ../../../../../../../../execroot/formatjs/bazel-out/
|
|
2293
|
+
// ../../../../../../../../execroot/formatjs/bazel-out/darwin_arm64-fastbuild/bin/node_modules/.aspect_rules_js/@formatjs+icu-messageformat-parser@0.0.0/node_modules/@formatjs/icu-messageformat-parser/lib/date-time-pattern-generator.js
|
|
2294
2294
|
function getBestPattern(skeleton, locale) {
|
|
2295
2295
|
var skeletonCopy = "";
|
|
2296
2296
|
for (var patternPos = 0; patternPos < skeleton.length; patternPos++) {
|
|
@@ -2350,7 +2350,7 @@ function getDefaultHourSymbolFromLocale(locale) {
|
|
|
2350
2350
|
return hourCycles[0];
|
|
2351
2351
|
}
|
|
2352
2352
|
|
|
2353
|
-
// ../../../../../../../../execroot/formatjs/bazel-out/
|
|
2353
|
+
// ../../../../../../../../execroot/formatjs/bazel-out/darwin_arm64-fastbuild/bin/node_modules/.aspect_rules_js/@formatjs+icu-messageformat-parser@0.0.0/node_modules/@formatjs/icu-messageformat-parser/lib/parser.js
|
|
2354
2354
|
var _a;
|
|
2355
2355
|
var SPACE_SEPARATOR_START_REGEX = new RegExp("^".concat(SPACE_SEPARATOR_REGEX.source, "*"));
|
|
2356
2356
|
var SPACE_SEPARATOR_END_REGEX = new RegExp("".concat(SPACE_SEPARATOR_REGEX.source, "*$"));
|
|
@@ -3117,7 +3117,7 @@ function _isPatternSyntax(c) {
|
|
|
3117
3117
|
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;
|
|
3118
3118
|
}
|
|
3119
3119
|
|
|
3120
|
-
// ../../../../../../../../execroot/formatjs/bazel-out/
|
|
3120
|
+
// ../../../../../../../../execroot/formatjs/bazel-out/darwin_arm64-fastbuild/bin/node_modules/.aspect_rules_js/@formatjs+icu-messageformat-parser@0.0.0/node_modules/@formatjs/icu-messageformat-parser/lib/index.js
|
|
3121
3121
|
function pruneLocation(els) {
|
|
3122
3122
|
els.forEach(function(el) {
|
|
3123
3123
|
delete el.location;
|
|
@@ -3153,7 +3153,7 @@ function parse(message, opts) {
|
|
|
3153
3153
|
return result.val;
|
|
3154
3154
|
}
|
|
3155
3155
|
|
|
3156
|
-
// ../../../../../../../../execroot/formatjs/bazel-out/
|
|
3156
|
+
// ../../../../../../../../execroot/formatjs/bazel-out/darwin_arm64-fastbuild/bin/node_modules/.aspect_rules_js/@formatjs+fast-memoize@0.0.0/node_modules/@formatjs/fast-memoize/lib/index.js
|
|
3157
3157
|
function memoize(fn, options) {
|
|
3158
3158
|
var cache = options && options.cache ? options.cache : cacheDefault;
|
|
3159
3159
|
var serializer = options && options.serializer ? options.serializer : serializerDefault;
|
|
@@ -3220,7 +3220,7 @@ var strategies = {
|
|
|
3220
3220
|
monadic: strategyMonadic
|
|
3221
3221
|
};
|
|
3222
3222
|
|
|
3223
|
-
// ../../../../../../../../execroot/formatjs/bazel-out/
|
|
3223
|
+
// ../../../../../../../../execroot/formatjs/bazel-out/darwin_arm64-fastbuild/bin/packages/intl-messageformat/lib_esnext/src/error.js
|
|
3224
3224
|
var ErrorCode;
|
|
3225
3225
|
(function(ErrorCode2) {
|
|
3226
3226
|
ErrorCode2["MISSING_VALUE"] = "MISSING_VALUE";
|
|
@@ -3255,7 +3255,7 @@ var MissingValueError = class extends FormatError {
|
|
|
3255
3255
|
}
|
|
3256
3256
|
};
|
|
3257
3257
|
|
|
3258
|
-
// ../../../../../../../../execroot/formatjs/bazel-out/
|
|
3258
|
+
// ../../../../../../../../execroot/formatjs/bazel-out/darwin_arm64-fastbuild/bin/packages/intl-messageformat/lib_esnext/src/formatters.js
|
|
3259
3259
|
var PART_TYPE;
|
|
3260
3260
|
(function(PART_TYPE2) {
|
|
3261
3261
|
PART_TYPE2[PART_TYPE2["literal"] = 0] = "literal";
|
|
@@ -3394,7 +3394,7 @@ Try polyfilling it using "@formatjs/intl-pluralrules"
|
|
|
3394
3394
|
return mergeLiteral(result);
|
|
3395
3395
|
}
|
|
3396
3396
|
|
|
3397
|
-
// ../../../../../../../../execroot/formatjs/bazel-out/
|
|
3397
|
+
// ../../../../../../../../execroot/formatjs/bazel-out/darwin_arm64-fastbuild/bin/packages/intl-messageformat/lib_esnext/src/core.js
|
|
3398
3398
|
function mergeConfig(c1, c2) {
|
|
3399
3399
|
if (!c2) {
|
|
3400
3400
|
return c1;
|
|
@@ -3591,7 +3591,7 @@ __publicField(IntlMessageFormat, "formats", {
|
|
|
3591
3591
|
}
|
|
3592
3592
|
});
|
|
3593
3593
|
|
|
3594
|
-
// ../../../../../../../../execroot/formatjs/bazel-out/
|
|
3594
|
+
// ../../../../../../../../execroot/formatjs/bazel-out/darwin_arm64-fastbuild/bin/packages/intl-messageformat/lib_esnext/index.js
|
|
3595
3595
|
var lib_esnext_default = IntlMessageFormat;
|
|
3596
3596
|
export {
|
|
3597
3597
|
ErrorCode,
|
|
@@ -26,9 +26,9 @@ var IntlMessageFormat = (() => {
|
|
|
26
26
|
));
|
|
27
27
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
28
28
|
|
|
29
|
-
// ../../../../../../../../execroot/formatjs/bazel-out/
|
|
29
|
+
// ../../../../../../../../execroot/formatjs/bazel-out/darwin_arm64-fastbuild/bin/node_modules/.aspect_rules_js/tslib@2.4.0/node_modules/tslib/tslib.js
|
|
30
30
|
var require_tslib = __commonJS({
|
|
31
|
-
"../../../../../../../../execroot/formatjs/bazel-out/
|
|
31
|
+
"../../../../../../../../execroot/formatjs/bazel-out/darwin_arm64-fastbuild/bin/node_modules/.aspect_rules_js/tslib@2.4.0/node_modules/tslib/tslib.js"(exports, module) {
|
|
32
32
|
var __extends2;
|
|
33
33
|
var __assign2;
|
|
34
34
|
var __rest2;
|
|
@@ -466,7 +466,7 @@ var IntlMessageFormat = (() => {
|
|
|
466
466
|
}
|
|
467
467
|
});
|
|
468
468
|
|
|
469
|
-
// ../../../../../../../../execroot/formatjs/bazel-out/
|
|
469
|
+
// ../../../../../../../../execroot/formatjs/bazel-out/darwin_arm64-fastbuild/bin/packages/intl-messageformat/lib/index.js
|
|
470
470
|
var lib_exports = {};
|
|
471
471
|
__export(lib_exports, {
|
|
472
472
|
ErrorCode: () => ErrorCode,
|
|
@@ -481,7 +481,7 @@ var IntlMessageFormat = (() => {
|
|
|
481
481
|
isFormatXMLElementFn: () => isFormatXMLElementFn
|
|
482
482
|
});
|
|
483
483
|
|
|
484
|
-
// ../../../../../../../../execroot/formatjs/bazel-out/
|
|
484
|
+
// ../../../../../../../../execroot/formatjs/bazel-out/darwin_arm64-fastbuild/bin/node_modules/.aspect_rules_js/tslib@2.4.0/node_modules/tslib/modules/index.js
|
|
485
485
|
var import_tslib = __toESM(require_tslib(), 1);
|
|
486
486
|
var {
|
|
487
487
|
__extends,
|
|
@@ -511,7 +511,7 @@ var IntlMessageFormat = (() => {
|
|
|
511
511
|
__classPrivateFieldIn
|
|
512
512
|
} = import_tslib.default;
|
|
513
513
|
|
|
514
|
-
// ../../../../../../../../execroot/formatjs/bazel-out/
|
|
514
|
+
// ../../../../../../../../execroot/formatjs/bazel-out/darwin_arm64-fastbuild/bin/node_modules/.aspect_rules_js/@formatjs+icu-messageformat-parser@0.0.0/node_modules/@formatjs/icu-messageformat-parser/lib/error.js
|
|
515
515
|
var ErrorKind;
|
|
516
516
|
(function(ErrorKind2) {
|
|
517
517
|
ErrorKind2[ErrorKind2["EXPECT_ARGUMENT_CLOSING_BRACE"] = 1] = "EXPECT_ARGUMENT_CLOSING_BRACE";
|
|
@@ -542,7 +542,7 @@ var IntlMessageFormat = (() => {
|
|
|
542
542
|
ErrorKind2[ErrorKind2["UNCLOSED_TAG"] = 27] = "UNCLOSED_TAG";
|
|
543
543
|
})(ErrorKind || (ErrorKind = {}));
|
|
544
544
|
|
|
545
|
-
// ../../../../../../../../execroot/formatjs/bazel-out/
|
|
545
|
+
// ../../../../../../../../execroot/formatjs/bazel-out/darwin_arm64-fastbuild/bin/node_modules/.aspect_rules_js/@formatjs+icu-messageformat-parser@0.0.0/node_modules/@formatjs/icu-messageformat-parser/lib/types.js
|
|
546
546
|
var TYPE;
|
|
547
547
|
(function(TYPE2) {
|
|
548
548
|
TYPE2[TYPE2["literal"] = 0] = "literal";
|
|
@@ -594,10 +594,10 @@ var IntlMessageFormat = (() => {
|
|
|
594
594
|
return !!(el && typeof el === "object" && el.type === SKELETON_TYPE.dateTime);
|
|
595
595
|
}
|
|
596
596
|
|
|
597
|
-
// ../../../../../../../../execroot/formatjs/bazel-out/
|
|
597
|
+
// ../../../../../../../../execroot/formatjs/bazel-out/darwin_arm64-fastbuild/bin/node_modules/.aspect_rules_js/@formatjs+icu-messageformat-parser@0.0.0/node_modules/@formatjs/icu-messageformat-parser/lib/regex.generated.js
|
|
598
598
|
var SPACE_SEPARATOR_REGEX = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/;
|
|
599
599
|
|
|
600
|
-
// ../../../../../../../../execroot/formatjs/bazel-out/
|
|
600
|
+
// ../../../../../../../../execroot/formatjs/bazel-out/darwin_arm64-fastbuild/bin/node_modules/.aspect_rules_js/@formatjs+icu-skeleton-parser@0.0.0/node_modules/@formatjs/icu-skeleton-parser/lib/date-time.js
|
|
601
601
|
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;
|
|
602
602
|
function parseDateTimeSkeleton(skeleton) {
|
|
603
603
|
var result = {};
|
|
@@ -698,10 +698,10 @@ var IntlMessageFormat = (() => {
|
|
|
698
698
|
return result;
|
|
699
699
|
}
|
|
700
700
|
|
|
701
|
-
// ../../../../../../../../execroot/formatjs/bazel-out/
|
|
701
|
+
// ../../../../../../../../execroot/formatjs/bazel-out/darwin_arm64-fastbuild/bin/node_modules/.aspect_rules_js/@formatjs+icu-skeleton-parser@0.0.0/node_modules/@formatjs/icu-skeleton-parser/lib/regex.generated.js
|
|
702
702
|
var WHITE_SPACE_REGEX = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
|
|
703
703
|
|
|
704
|
-
// ../../../../../../../../execroot/formatjs/bazel-out/
|
|
704
|
+
// ../../../../../../../../execroot/formatjs/bazel-out/darwin_arm64-fastbuild/bin/node_modules/.aspect_rules_js/@formatjs+icu-skeleton-parser@0.0.0/node_modules/@formatjs/icu-skeleton-parser/lib/number.js
|
|
705
705
|
function parseNumberSkeletonFromString(skeleton) {
|
|
706
706
|
if (skeleton.length === 0) {
|
|
707
707
|
throw new Error("Number skeleton cannot be empty");
|
|
@@ -967,7 +967,7 @@ var IntlMessageFormat = (() => {
|
|
|
967
967
|
return result;
|
|
968
968
|
}
|
|
969
969
|
|
|
970
|
-
// ../../../../../../../../execroot/formatjs/bazel-out/
|
|
970
|
+
// ../../../../../../../../execroot/formatjs/bazel-out/darwin_arm64-fastbuild/bin/node_modules/.aspect_rules_js/@formatjs+icu-messageformat-parser@0.0.0/node_modules/@formatjs/icu-messageformat-parser/lib/time-data.generated.js
|
|
971
971
|
var timeData = {
|
|
972
972
|
"AX": [
|
|
973
973
|
"H"
|
|
@@ -2306,7 +2306,7 @@ var IntlMessageFormat = (() => {
|
|
|
2306
2306
|
]
|
|
2307
2307
|
};
|
|
2308
2308
|
|
|
2309
|
-
// ../../../../../../../../execroot/formatjs/bazel-out/
|
|
2309
|
+
// ../../../../../../../../execroot/formatjs/bazel-out/darwin_arm64-fastbuild/bin/node_modules/.aspect_rules_js/@formatjs+icu-messageformat-parser@0.0.0/node_modules/@formatjs/icu-messageformat-parser/lib/date-time-pattern-generator.js
|
|
2310
2310
|
function getBestPattern(skeleton, locale) {
|
|
2311
2311
|
var skeletonCopy = "";
|
|
2312
2312
|
for (var patternPos = 0; patternPos < skeleton.length; patternPos++) {
|
|
@@ -2366,7 +2366,7 @@ var IntlMessageFormat = (() => {
|
|
|
2366
2366
|
return hourCycles[0];
|
|
2367
2367
|
}
|
|
2368
2368
|
|
|
2369
|
-
// ../../../../../../../../execroot/formatjs/bazel-out/
|
|
2369
|
+
// ../../../../../../../../execroot/formatjs/bazel-out/darwin_arm64-fastbuild/bin/node_modules/.aspect_rules_js/@formatjs+icu-messageformat-parser@0.0.0/node_modules/@formatjs/icu-messageformat-parser/lib/parser.js
|
|
2370
2370
|
var _a;
|
|
2371
2371
|
var SPACE_SEPARATOR_START_REGEX = new RegExp("^".concat(SPACE_SEPARATOR_REGEX.source, "*"));
|
|
2372
2372
|
var SPACE_SEPARATOR_END_REGEX = new RegExp("".concat(SPACE_SEPARATOR_REGEX.source, "*$"));
|
|
@@ -3133,7 +3133,7 @@ var IntlMessageFormat = (() => {
|
|
|
3133
3133
|
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;
|
|
3134
3134
|
}
|
|
3135
3135
|
|
|
3136
|
-
// ../../../../../../../../execroot/formatjs/bazel-out/
|
|
3136
|
+
// ../../../../../../../../execroot/formatjs/bazel-out/darwin_arm64-fastbuild/bin/node_modules/.aspect_rules_js/@formatjs+icu-messageformat-parser@0.0.0/node_modules/@formatjs/icu-messageformat-parser/lib/index.js
|
|
3137
3137
|
function pruneLocation(els) {
|
|
3138
3138
|
els.forEach(function(el) {
|
|
3139
3139
|
delete el.location;
|
|
@@ -3169,7 +3169,7 @@ var IntlMessageFormat = (() => {
|
|
|
3169
3169
|
return result.val;
|
|
3170
3170
|
}
|
|
3171
3171
|
|
|
3172
|
-
// ../../../../../../../../execroot/formatjs/bazel-out/
|
|
3172
|
+
// ../../../../../../../../execroot/formatjs/bazel-out/darwin_arm64-fastbuild/bin/node_modules/.aspect_rules_js/@formatjs+fast-memoize@0.0.0/node_modules/@formatjs/fast-memoize/lib/index.js
|
|
3173
3173
|
function memoize(fn, options) {
|
|
3174
3174
|
var cache = options && options.cache ? options.cache : cacheDefault;
|
|
3175
3175
|
var serializer = options && options.serializer ? options.serializer : serializerDefault;
|
|
@@ -3236,7 +3236,7 @@ var IntlMessageFormat = (() => {
|
|
|
3236
3236
|
monadic: strategyMonadic
|
|
3237
3237
|
};
|
|
3238
3238
|
|
|
3239
|
-
// ../../../../../../../../execroot/formatjs/bazel-out/
|
|
3239
|
+
// ../../../../../../../../execroot/formatjs/bazel-out/darwin_arm64-fastbuild/bin/packages/intl-messageformat/lib/src/error.js
|
|
3240
3240
|
var ErrorCode;
|
|
3241
3241
|
(function(ErrorCode2) {
|
|
3242
3242
|
ErrorCode2["MISSING_VALUE"] = "MISSING_VALUE";
|
|
@@ -3278,7 +3278,7 @@ var IntlMessageFormat = (() => {
|
|
|
3278
3278
|
return MissingValueError2;
|
|
3279
3279
|
}(FormatError);
|
|
3280
3280
|
|
|
3281
|
-
// ../../../../../../../../execroot/formatjs/bazel-out/
|
|
3281
|
+
// ../../../../../../../../execroot/formatjs/bazel-out/darwin_arm64-fastbuild/bin/packages/intl-messageformat/lib/src/formatters.js
|
|
3282
3282
|
var PART_TYPE;
|
|
3283
3283
|
(function(PART_TYPE2) {
|
|
3284
3284
|
PART_TYPE2[PART_TYPE2["literal"] = 0] = "literal";
|
|
@@ -3418,7 +3418,7 @@ var IntlMessageFormat = (() => {
|
|
|
3418
3418
|
return mergeLiteral(result);
|
|
3419
3419
|
}
|
|
3420
3420
|
|
|
3421
|
-
// ../../../../../../../../execroot/formatjs/bazel-out/
|
|
3421
|
+
// ../../../../../../../../execroot/formatjs/bazel-out/darwin_arm64-fastbuild/bin/packages/intl-messageformat/lib/src/core.js
|
|
3422
3422
|
function mergeConfig(c1, c2) {
|
|
3423
3423
|
if (!c2) {
|
|
3424
3424
|
return c1;
|
|
@@ -3638,7 +3638,7 @@ var IntlMessageFormat = (() => {
|
|
|
3638
3638
|
return IntlMessageFormat2;
|
|
3639
3639
|
}();
|
|
3640
3640
|
|
|
3641
|
-
// ../../../../../../../../execroot/formatjs/bazel-out/
|
|
3641
|
+
// ../../../../../../../../execroot/formatjs/bazel-out/darwin_arm64-fastbuild/bin/packages/intl-messageformat/lib/index.js
|
|
3642
3642
|
var lib_default = IntlMessageFormat;
|
|
3643
3643
|
return __toCommonJS(lib_exports);
|
|
3644
3644
|
})();
|
package/lib/src/core.js
CHANGED
|
@@ -5,7 +5,7 @@ See the accompanying LICENSE file for terms.
|
|
|
5
5
|
*/
|
|
6
6
|
import { __assign, __rest, __spreadArray } from "tslib";
|
|
7
7
|
import { parse, } from '@formatjs/icu-messageformat-parser';
|
|
8
|
-
import memoize,
|
|
8
|
+
import { memoize, strategies } from '@formatjs/fast-memoize';
|
|
9
9
|
import { formatToParts, PART_TYPE, } from './formatters';
|
|
10
10
|
// -- MessageFormat --------------------------------------------------------
|
|
11
11
|
function mergeConfig(c1, c2) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "intl-messageformat",
|
|
3
|
-
"version": "10.3.
|
|
3
|
+
"version": "10.3.3",
|
|
4
4
|
"description": "Formats ICU Message strings with number, date, plural, and select placeholders to create localized messages.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"i18n",
|
|
@@ -32,7 +32,7 @@
|
|
|
32
32
|
"types": "index.d.ts",
|
|
33
33
|
"dependencies": {
|
|
34
34
|
"@formatjs/ecma402-abstract": "1.14.3",
|
|
35
|
-
"@formatjs/fast-memoize": "
|
|
35
|
+
"@formatjs/fast-memoize": "2.0.1",
|
|
36
36
|
"@formatjs/icu-messageformat-parser": "2.3.0",
|
|
37
37
|
"tslib": "^2.4.0"
|
|
38
38
|
},
|
package/src/core.js
CHANGED
|
@@ -8,7 +8,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
8
8
|
exports.IntlMessageFormat = void 0;
|
|
9
9
|
var tslib_1 = require("tslib");
|
|
10
10
|
var icu_messageformat_parser_1 = require("@formatjs/icu-messageformat-parser");
|
|
11
|
-
var fast_memoize_1 =
|
|
11
|
+
var fast_memoize_1 = require("@formatjs/fast-memoize");
|
|
12
12
|
var formatters_1 = require("./formatters");
|
|
13
13
|
// -- MessageFormat --------------------------------------------------------
|
|
14
14
|
function mergeConfig(c1, c2) {
|
|
@@ -50,7 +50,7 @@ function createDefaultFormatters(cache) {
|
|
|
50
50
|
pluralRules: {},
|
|
51
51
|
}; }
|
|
52
52
|
return {
|
|
53
|
-
getNumberFormat: (0, fast_memoize_1.
|
|
53
|
+
getNumberFormat: (0, fast_memoize_1.memoize)(function () {
|
|
54
54
|
var _a;
|
|
55
55
|
var args = [];
|
|
56
56
|
for (var _i = 0; _i < arguments.length; _i++) {
|
|
@@ -61,7 +61,7 @@ function createDefaultFormatters(cache) {
|
|
|
61
61
|
cache: createFastMemoizeCache(cache.number),
|
|
62
62
|
strategy: fast_memoize_1.strategies.variadic,
|
|
63
63
|
}),
|
|
64
|
-
getDateTimeFormat: (0, fast_memoize_1.
|
|
64
|
+
getDateTimeFormat: (0, fast_memoize_1.memoize)(function () {
|
|
65
65
|
var _a;
|
|
66
66
|
var args = [];
|
|
67
67
|
for (var _i = 0; _i < arguments.length; _i++) {
|
|
@@ -72,7 +72,7 @@ function createDefaultFormatters(cache) {
|
|
|
72
72
|
cache: createFastMemoizeCache(cache.dateTime),
|
|
73
73
|
strategy: fast_memoize_1.strategies.variadic,
|
|
74
74
|
}),
|
|
75
|
-
getPluralRules: (0, fast_memoize_1.
|
|
75
|
+
getPluralRules: (0, fast_memoize_1.memoize)(function () {
|
|
76
76
|
var _a;
|
|
77
77
|
var args = [];
|
|
78
78
|
for (var _i = 0; _i < arguments.length; _i++) {
|