@formatjs/intl-pluralrules 5.2.14 → 5.2.16

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.
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.GetOperands = void 0;
3
+ exports.GetOperands = GetOperands;
4
4
  var ecma402_abstract_1 = require("@formatjs/ecma402-abstract");
5
5
  /**
6
6
  * http://ecma-international.org/ecma-402/7.0/index.html#sec-getoperands
@@ -47,4 +47,3 @@ function GetOperands(s) {
47
47
  FractionDigitsWithoutTrailing: t,
48
48
  };
49
49
  }
50
- exports.GetOperands = GetOperands;
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.InitializePluralRules = void 0;
3
+ exports.InitializePluralRules = InitializePluralRules;
4
4
  var ecma402_abstract_1 = require("@formatjs/ecma402-abstract");
5
5
  var intl_localematcher_1 = require("@formatjs/intl-localematcher");
6
6
  function InitializePluralRules(pl, locales, options, _a) {
@@ -18,4 +18,3 @@ function InitializePluralRules(pl, locales, options, _a) {
18
18
  internalSlots.locale = r.locale;
19
19
  return pl;
20
20
  }
21
- exports.InitializePluralRules = InitializePluralRules;
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.ResolvePlural = void 0;
3
+ exports.ResolvePlural = ResolvePlural;
4
4
  var ecma402_abstract_1 = require("@formatjs/ecma402-abstract");
5
5
  var GetOperands_1 = require("./GetOperands");
6
6
  /**
@@ -24,4 +24,3 @@ function ResolvePlural(pl, n, _a) {
24
24
  var operands = (0, GetOperands_1.GetOperands)(s);
25
25
  return PluralRuleSelect(locale, type, n, operands);
26
26
  }
27
- exports.ResolvePlural = ResolvePlural;
@@ -1,5 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.default = getInternalSlots;
3
4
  var internalSlotMap = new WeakMap();
4
5
  function getInternalSlots(x) {
5
6
  var internalSlots = internalSlotMap.get(x);
@@ -9,4 +10,3 @@ function getInternalSlots(x) {
9
10
  }
10
11
  return internalSlots;
11
12
  }
12
- exports.default = getInternalSlots;
package/index.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { LDMLPluralRule, PluralRulesLocaleData, PluralRulesData, NumberFormatDigitInternalSlots } from '@formatjs/ecma402-abstract';
1
+ import { LDMLPluralRule, NumberFormatDigitInternalSlots, PluralRulesData, PluralRulesLocaleData } from '@formatjs/ecma402-abstract';
2
2
  export interface PluralRulesInternal extends NumberFormatDigitInternalSlots {
3
3
  initializedPluralRules: boolean;
4
4
  locale: string;
package/index.js CHANGED
@@ -135,6 +135,12 @@ try {
135
135
  enumerable: false,
136
136
  configurable: true,
137
137
  });
138
+ Object.defineProperty(PluralRules, 'name', {
139
+ value: 'PluralRules',
140
+ writable: false,
141
+ enumerable: false,
142
+ configurable: true,
143
+ });
138
144
  }
139
145
  catch (ex) {
140
146
  // Meta fixes for test262
package/lib/index.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { LDMLPluralRule, PluralRulesLocaleData, PluralRulesData, NumberFormatDigitInternalSlots } from '@formatjs/ecma402-abstract';
1
+ import { LDMLPluralRule, NumberFormatDigitInternalSlots, PluralRulesData, PluralRulesLocaleData } from '@formatjs/ecma402-abstract';
2
2
  export interface PluralRulesInternal extends NumberFormatDigitInternalSlots {
3
3
  initializedPluralRules: boolean;
4
4
  locale: string;
package/lib/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import { __spreadArray } from "tslib";
2
- import { SupportedLocales, ToNumber, CanonicalizeLocaleList, } from '@formatjs/ecma402-abstract';
2
+ import { CanonicalizeLocaleList, SupportedLocales, ToNumber, } from '@formatjs/ecma402-abstract';
3
3
  import { InitializePluralRules } from './abstract/InitializePluralRules';
4
4
  import { ResolvePlural } from './abstract/ResolvePlural';
5
5
  import getInternalSlots from './get_internal_slots';
@@ -132,6 +132,12 @@ try {
132
132
  enumerable: false,
133
133
  configurable: true,
134
134
  });
135
+ Object.defineProperty(PluralRules, 'name', {
136
+ value: 'PluralRules',
137
+ writable: false,
138
+ enumerable: false,
139
+ configurable: true,
140
+ });
135
141
  }
136
142
  catch (ex) {
137
143
  // Meta fixes for test262
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@formatjs/intl-pluralrules",
3
- "version": "5.2.14",
3
+ "version": "5.2.16",
4
4
  "description": "Polyfill for Intl.PluralRules",
5
5
  "keywords": [
6
6
  "polyfill",
@@ -20,13 +20,13 @@
20
20
  "url": "git+https://github.com/formatjs/formatjs.git"
21
21
  },
22
22
  "dependencies": {
23
- "tslib": "^2.4.0",
24
- "@formatjs/ecma402-abstract": "2.0.0",
25
- "@formatjs/intl-localematcher": "0.5.4"
23
+ "tslib": "^2.7.0",
24
+ "@formatjs/ecma402-abstract": "2.2.0",
25
+ "@formatjs/intl-localematcher": "0.5.5"
26
26
  },
27
27
  "devDependencies": {
28
- "@formatjs/intl-getcanonicallocales": "2.3.0",
29
- "@formatjs/intl-locale": "4.0.0"
28
+ "@formatjs/intl-getcanonicallocales": "2.3.1",
29
+ "@formatjs/intl-locale": "4.0.2"
30
30
  },
31
31
  "bugs": {
32
32
  "url": "https://github.com/formatjs/formatjs/issues"
package/polyfill.iife.js CHANGED
@@ -1,42 +1,17 @@
1
1
  (() => {
2
- // ../../../../../../../../execroot/formatjs/bazel-out/darwin_arm64-fastbuild/bin/node_modules/.aspect_rules_js/tslib@2.4.0/node_modules/tslib/tslib.es6.js
3
- var extendStatics = function(d, b) {
4
- extendStatics = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(d2, b2) {
5
- d2.__proto__ = b2;
6
- } || function(d2, b2) {
7
- for (var p in b2)
8
- if (Object.prototype.hasOwnProperty.call(b2, p))
9
- d2[p] = b2[p];
10
- };
11
- return extendStatics(d, b);
2
+ var __defProp = Object.defineProperty;
3
+ var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
4
+ var __publicField = (obj, key, value) => {
5
+ __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
6
+ return value;
12
7
  };
13
- function __extends(d, b) {
14
- if (typeof b !== "function" && b !== null)
15
- throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
16
- extendStatics(d, b);
17
- function __() {
18
- this.constructor = d;
19
- }
20
- d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
21
- }
22
- function __spreadArray(to, from, pack) {
23
- if (pack || arguments.length === 2)
24
- for (var i = 0, l = from.length, ar; i < l; i++) {
25
- if (ar || !(i in from)) {
26
- if (!ar)
27
- ar = Array.prototype.slice.call(from, 0, i);
28
- ar[i] = from[i];
29
- }
30
- }
31
- return to.concat(ar || Array.prototype.slice.call(from));
32
- }
33
8
 
34
- // ../../../../../../../../execroot/formatjs/bazel-out/darwin_arm64-fastbuild/bin/node_modules/.aspect_rules_js/@formatjs+ecma402-abstract@0.0.0/node_modules/@formatjs/ecma402-abstract/lib/CanonicalizeLocaleList.js
9
+ // node_modules/.aspect_rules_js/@formatjs+ecma402-abstract@0.0.0/node_modules/@formatjs/ecma402-abstract/lib/CanonicalizeLocaleList.js
35
10
  function CanonicalizeLocaleList(locales) {
36
11
  return Intl.getCanonicalLocales(locales);
37
12
  }
38
13
 
39
- // ../../../../../../../../execroot/formatjs/bazel-out/darwin_arm64-fastbuild/bin/node_modules/.aspect_rules_js/@formatjs+ecma402-abstract@0.0.0/node_modules/@formatjs/ecma402-abstract/lib/262.js
14
+ // node_modules/.aspect_rules_js/@formatjs+ecma402-abstract@0.0.0/node_modules/@formatjs/ecma402-abstract/lib/262.js
40
15
  function ToString(o) {
41
16
  if (typeof o === "symbol") {
42
17
  throw TypeError("Cannot convert a Symbol value to a string");
@@ -108,7 +83,7 @@
108
83
  var MS_PER_MINUTE = MS_PER_SECOND * SECONDS_PER_MINUTE;
109
84
  var MS_PER_HOUR = MS_PER_MINUTE * MINUTES_PER_HOUR;
110
85
 
111
- // ../../../../../../../../execroot/formatjs/bazel-out/darwin_arm64-fastbuild/bin/node_modules/.aspect_rules_js/@formatjs+ecma402-abstract@0.0.0/node_modules/@formatjs/ecma402-abstract/lib/CoerceOptionsToObject.js
86
+ // node_modules/.aspect_rules_js/@formatjs+ecma402-abstract@0.0.0/node_modules/@formatjs/ecma402-abstract/lib/CoerceOptionsToObject.js
112
87
  function CoerceOptionsToObject(options) {
113
88
  if (typeof options === "undefined") {
114
89
  return /* @__PURE__ */ Object.create(null);
@@ -116,7 +91,7 @@
116
91
  return ToObject(options);
117
92
  }
118
93
 
119
- // ../../../../../../../../execroot/formatjs/bazel-out/darwin_arm64-fastbuild/bin/node_modules/.aspect_rules_js/@formatjs+ecma402-abstract@0.0.0/node_modules/@formatjs/ecma402-abstract/lib/DefaultNumberOption.js
94
+ // node_modules/.aspect_rules_js/@formatjs+ecma402-abstract@0.0.0/node_modules/@formatjs/ecma402-abstract/lib/DefaultNumberOption.js
120
95
  function DefaultNumberOption(inputVal, min, max, fallback) {
121
96
  if (inputVal === void 0) {
122
97
  return fallback;
@@ -128,13 +103,13 @@
128
103
  return Math.floor(val);
129
104
  }
130
105
 
131
- // ../../../../../../../../execroot/formatjs/bazel-out/darwin_arm64-fastbuild/bin/node_modules/.aspect_rules_js/@formatjs+ecma402-abstract@0.0.0/node_modules/@formatjs/ecma402-abstract/lib/GetNumberOption.js
106
+ // node_modules/.aspect_rules_js/@formatjs+ecma402-abstract@0.0.0/node_modules/@formatjs/ecma402-abstract/lib/GetNumberOption.js
132
107
  function GetNumberOption(options, property, minimum, maximum, fallback) {
133
108
  var val = options[property];
134
109
  return DefaultNumberOption(val, minimum, maximum, fallback);
135
110
  }
136
111
 
137
- // ../../../../../../../../execroot/formatjs/bazel-out/darwin_arm64-fastbuild/bin/node_modules/.aspect_rules_js/@formatjs+ecma402-abstract@0.0.0/node_modules/@formatjs/ecma402-abstract/lib/GetOption.js
112
+ // node_modules/.aspect_rules_js/@formatjs+ecma402-abstract@0.0.0/node_modules/@formatjs/ecma402-abstract/lib/GetOption.js
138
113
  function GetOption(opts, prop, type, values, fallback) {
139
114
  if (typeof opts !== "object") {
140
115
  throw new TypeError("Options must be an object");
@@ -160,7 +135,7 @@
160
135
  return fallback;
161
136
  }
162
137
 
163
- // ../../../../../../../../execroot/formatjs/bazel-out/darwin_arm64-fastbuild/bin/node_modules/.aspect_rules_js/@formatjs+ecma402-abstract@0.0.0/node_modules/@formatjs/ecma402-abstract/lib/IsSanctionedSimpleUnitIdentifier.js
138
+ // node_modules/.aspect_rules_js/@formatjs+ecma402-abstract@0.0.0/node_modules/@formatjs/ecma402-abstract/lib/IsSanctionedSimpleUnitIdentifier.js
164
139
  var SANCTIONED_UNITS = [
165
140
  "angle-degree",
166
141
  "area-acre",
@@ -211,7 +186,106 @@
211
186
  }
212
187
  var SIMPLE_UNITS = SANCTIONED_UNITS.map(removeUnitNamespace);
213
188
 
214
- // ../../../../../../../../execroot/formatjs/bazel-out/darwin_arm64-fastbuild/bin/node_modules/.aspect_rules_js/@formatjs+ecma402-abstract@0.0.0/node_modules/@formatjs/ecma402-abstract/lib/utils.js
189
+ // node_modules/.aspect_rules_js/tslib@2.7.0/node_modules/tslib/tslib.es6.mjs
190
+ var extendStatics = function(d, b) {
191
+ extendStatics = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(d2, b2) {
192
+ d2.__proto__ = b2;
193
+ } || function(d2, b2) {
194
+ for (var p in b2)
195
+ if (Object.prototype.hasOwnProperty.call(b2, p))
196
+ d2[p] = b2[p];
197
+ };
198
+ return extendStatics(d, b);
199
+ };
200
+ function __extends(d, b) {
201
+ if (typeof b !== "function" && b !== null)
202
+ throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
203
+ extendStatics(d, b);
204
+ function __() {
205
+ this.constructor = d;
206
+ }
207
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
208
+ }
209
+ function __spreadArray(to, from, pack) {
210
+ if (pack || arguments.length === 2)
211
+ for (var i = 0, l = from.length, ar; i < l; i++) {
212
+ if (ar || !(i in from)) {
213
+ if (!ar)
214
+ ar = Array.prototype.slice.call(from, 0, i);
215
+ ar[i] = from[i];
216
+ }
217
+ }
218
+ return to.concat(ar || Array.prototype.slice.call(from));
219
+ }
220
+
221
+ // node_modules/.aspect_rules_js/@formatjs+fast-memoize@0.0.0/node_modules/@formatjs/fast-memoize/lib/index.js
222
+ function memoize(fn, options) {
223
+ var cache = options && options.cache ? options.cache : cacheDefault;
224
+ var serializer = options && options.serializer ? options.serializer : serializerDefault;
225
+ var strategy = options && options.strategy ? options.strategy : strategyDefault;
226
+ return strategy(fn, {
227
+ cache,
228
+ serializer
229
+ });
230
+ }
231
+ function isPrimitive(value) {
232
+ return value == null || typeof value === "number" || typeof value === "boolean";
233
+ }
234
+ function monadic(fn, cache, serializer, arg) {
235
+ var cacheKey = isPrimitive(arg) ? arg : serializer(arg);
236
+ var computedValue = cache.get(cacheKey);
237
+ if (typeof computedValue === "undefined") {
238
+ computedValue = fn.call(this, arg);
239
+ cache.set(cacheKey, computedValue);
240
+ }
241
+ return computedValue;
242
+ }
243
+ function variadic(fn, cache, serializer) {
244
+ var args = Array.prototype.slice.call(arguments, 3);
245
+ var cacheKey = serializer(args);
246
+ var computedValue = cache.get(cacheKey);
247
+ if (typeof computedValue === "undefined") {
248
+ computedValue = fn.apply(this, args);
249
+ cache.set(cacheKey, computedValue);
250
+ }
251
+ return computedValue;
252
+ }
253
+ function assemble(fn, context, strategy, cache, serialize) {
254
+ return strategy.bind(context, fn, cache, serialize);
255
+ }
256
+ function strategyDefault(fn, options) {
257
+ var strategy = fn.length === 1 ? monadic : variadic;
258
+ return assemble(fn, this, strategy, options.cache.create(), options.serializer);
259
+ }
260
+ function strategyVariadic(fn, options) {
261
+ return assemble(fn, this, variadic, options.cache.create(), options.serializer);
262
+ }
263
+ function strategyMonadic(fn, options) {
264
+ return assemble(fn, this, monadic, options.cache.create(), options.serializer);
265
+ }
266
+ var serializerDefault = function() {
267
+ return JSON.stringify(arguments);
268
+ };
269
+ function ObjectWithoutPrototypeCache() {
270
+ this.cache = /* @__PURE__ */ Object.create(null);
271
+ }
272
+ ObjectWithoutPrototypeCache.prototype.get = function(key) {
273
+ return this.cache[key];
274
+ };
275
+ ObjectWithoutPrototypeCache.prototype.set = function(key, value) {
276
+ this.cache[key] = value;
277
+ };
278
+ var cacheDefault = {
279
+ create: function create() {
280
+ return new ObjectWithoutPrototypeCache();
281
+ }
282
+ };
283
+ var strategies = {
284
+ variadic: strategyVariadic,
285
+ monadic: strategyMonadic
286
+ };
287
+
288
+ // node_modules/.aspect_rules_js/@formatjs+ecma402-abstract@0.0.0/node_modules/@formatjs/ecma402-abstract/lib/utils.js
215
289
  function getMagnitude(x) {
216
290
  return Math.floor(Math.log(x) * Math.LOG10E);
217
291
  }
@@ -233,8 +307,58 @@
233
307
  throw new Err(message);
234
308
  }
235
309
  }
310
+ var createMemoizedNumberFormat = memoize(function() {
311
+ var _a;
312
+ var args = [];
313
+ for (var _i = 0; _i < arguments.length; _i++) {
314
+ args[_i] = arguments[_i];
315
+ }
316
+ return new ((_a = Intl.NumberFormat).bind.apply(_a, __spreadArray([void 0], args, false)))();
317
+ }, {
318
+ strategy: strategies.variadic
319
+ });
320
+ var createMemoizedDateTimeFormat = memoize(function() {
321
+ var _a;
322
+ var args = [];
323
+ for (var _i = 0; _i < arguments.length; _i++) {
324
+ args[_i] = arguments[_i];
325
+ }
326
+ return new ((_a = Intl.DateTimeFormat).bind.apply(_a, __spreadArray([void 0], args, false)))();
327
+ }, {
328
+ strategy: strategies.variadic
329
+ });
330
+ var createMemoizedPluralRules = memoize(function() {
331
+ var _a;
332
+ var args = [];
333
+ for (var _i = 0; _i < arguments.length; _i++) {
334
+ args[_i] = arguments[_i];
335
+ }
336
+ return new ((_a = Intl.PluralRules).bind.apply(_a, __spreadArray([void 0], args, false)))();
337
+ }, {
338
+ strategy: strategies.variadic
339
+ });
340
+ var createMemoizedLocale = memoize(function() {
341
+ var _a;
342
+ var args = [];
343
+ for (var _i = 0; _i < arguments.length; _i++) {
344
+ args[_i] = arguments[_i];
345
+ }
346
+ return new ((_a = Intl.Locale).bind.apply(_a, __spreadArray([void 0], args, false)))();
347
+ }, {
348
+ strategy: strategies.variadic
349
+ });
350
+ var createMemoizedListFormat = memoize(function() {
351
+ var _a;
352
+ var args = [];
353
+ for (var _i = 0; _i < arguments.length; _i++) {
354
+ args[_i] = arguments[_i];
355
+ }
356
+ return new ((_a = Intl.ListFormat).bind.apply(_a, __spreadArray([void 0], args, false)))();
357
+ }, {
358
+ strategy: strategies.variadic
359
+ });
236
360
 
237
- // ../../../../../../../../execroot/formatjs/bazel-out/darwin_arm64-fastbuild/bin/node_modules/.aspect_rules_js/@formatjs+ecma402-abstract@0.0.0/node_modules/@formatjs/ecma402-abstract/lib/NumberFormat/ToRawPrecision.js
361
+ // node_modules/.aspect_rules_js/@formatjs+ecma402-abstract@0.0.0/node_modules/@formatjs/ecma402-abstract/lib/NumberFormat/ToRawPrecision.js
238
362
  function ToRawPrecision(x, minPrecision, maxPrecision) {
239
363
  var p = maxPrecision;
240
364
  var m;
@@ -292,7 +416,7 @@
292
416
  }
293
417
  }
294
418
 
295
- // ../../../../../../../../execroot/formatjs/bazel-out/darwin_arm64-fastbuild/bin/node_modules/.aspect_rules_js/@formatjs+ecma402-abstract@0.0.0/node_modules/@formatjs/ecma402-abstract/lib/NumberFormat/ToRawFixed.js
419
+ // node_modules/.aspect_rules_js/@formatjs+ecma402-abstract@0.0.0/node_modules/@formatjs/ecma402-abstract/lib/NumberFormat/ToRawFixed.js
296
420
  function ToRawFixed(x, minFraction, maxFraction) {
297
421
  var f = maxFraction;
298
422
  var n = Math.round(x * Math.pow(10, f));
@@ -332,7 +456,7 @@
332
456
  return { formattedString: m, roundedNumber: xFinal, integerDigitsCount: int };
333
457
  }
334
458
 
335
- // ../../../../../../../../execroot/formatjs/bazel-out/darwin_arm64-fastbuild/bin/node_modules/.aspect_rules_js/@formatjs+ecma402-abstract@0.0.0/node_modules/@formatjs/ecma402-abstract/lib/NumberFormat/FormatNumericToString.js
459
+ // node_modules/.aspect_rules_js/@formatjs+ecma402-abstract@0.0.0/node_modules/@formatjs/ecma402-abstract/lib/NumberFormat/FormatNumericToString.js
336
460
  function FormatNumericToString(intlObject, x) {
337
461
  var isNegative = x < 0 || SameValue(x, -0);
338
462
  if (isNegative) {
@@ -368,19 +492,19 @@
368
492
  return { roundedNumber: x, formattedString: string };
369
493
  }
370
494
 
371
- // ../../../../../../../../execroot/formatjs/bazel-out/darwin_arm64-fastbuild/bin/node_modules/.aspect_rules_js/@formatjs+ecma402-abstract@0.0.0/node_modules/@formatjs/ecma402-abstract/lib/regex.generated.js
495
+ // node_modules/.aspect_rules_js/@formatjs+ecma402-abstract@0.0.0/node_modules/@formatjs/ecma402-abstract/lib/regex.generated.js
372
496
  var S_UNICODE_REGEX = /[\$\+<->\^`\|~\xA2-\xA6\xA8\xA9\xAC\xAE-\xB1\xB4\xB8\xD7\xF7\u02C2-\u02C5\u02D2-\u02DF\u02E5-\u02EB\u02ED\u02EF-\u02FF\u0375\u0384\u0385\u03F6\u0482\u058D-\u058F\u0606-\u0608\u060B\u060E\u060F\u06DE\u06E9\u06FD\u06FE\u07F6\u07FE\u07FF\u09F2\u09F3\u09FA\u09FB\u0AF1\u0B70\u0BF3-\u0BFA\u0C7F\u0D4F\u0D79\u0E3F\u0F01-\u0F03\u0F13\u0F15-\u0F17\u0F1A-\u0F1F\u0F34\u0F36\u0F38\u0FBE-\u0FC5\u0FC7-\u0FCC\u0FCE\u0FCF\u0FD5-\u0FD8\u109E\u109F\u1390-\u1399\u166D\u17DB\u1940\u19DE-\u19FF\u1B61-\u1B6A\u1B74-\u1B7C\u1FBD\u1FBF-\u1FC1\u1FCD-\u1FCF\u1FDD-\u1FDF\u1FED-\u1FEF\u1FFD\u1FFE\u2044\u2052\u207A-\u207C\u208A-\u208C\u20A0-\u20BF\u2100\u2101\u2103-\u2106\u2108\u2109\u2114\u2116-\u2118\u211E-\u2123\u2125\u2127\u2129\u212E\u213A\u213B\u2140-\u2144\u214A-\u214D\u214F\u218A\u218B\u2190-\u2307\u230C-\u2328\u232B-\u2426\u2440-\u244A\u249C-\u24E9\u2500-\u2767\u2794-\u27C4\u27C7-\u27E5\u27F0-\u2982\u2999-\u29D7\u29DC-\u29FB\u29FE-\u2B73\u2B76-\u2B95\u2B97-\u2BFF\u2CE5-\u2CEA\u2E50\u2E51\u2E80-\u2E99\u2E9B-\u2EF3\u2F00-\u2FD5\u2FF0-\u2FFB\u3004\u3012\u3013\u3020\u3036\u3037\u303E\u303F\u309B\u309C\u3190\u3191\u3196-\u319F\u31C0-\u31E3\u3200-\u321E\u322A-\u3247\u3250\u3260-\u327F\u328A-\u32B0\u32C0-\u33FF\u4DC0-\u4DFF\uA490-\uA4C6\uA700-\uA716\uA720\uA721\uA789\uA78A\uA828-\uA82B\uA836-\uA839\uAA77-\uAA79\uAB5B\uAB6A\uAB6B\uFB29\uFBB2-\uFBC1\uFDFC\uFDFD\uFE62\uFE64-\uFE66\uFE69\uFF04\uFF0B\uFF1C-\uFF1E\uFF3E\uFF40\uFF5C\uFF5E\uFFE0-\uFFE6\uFFE8-\uFFEE\uFFFC\uFFFD]|\uD800[\uDD37-\uDD3F\uDD79-\uDD89\uDD8C-\uDD8E\uDD90-\uDD9C\uDDA0\uDDD0-\uDDFC]|\uD802[\uDC77\uDC78\uDEC8]|\uD805\uDF3F|\uD807[\uDFD5-\uDFF1]|\uD81A[\uDF3C-\uDF3F\uDF45]|\uD82F\uDC9C|\uD834[\uDC00-\uDCF5\uDD00-\uDD26\uDD29-\uDD64\uDD6A-\uDD6C\uDD83\uDD84\uDD8C-\uDDA9\uDDAE-\uDDE8\uDE00-\uDE41\uDE45\uDF00-\uDF56]|\uD835[\uDEC1\uDEDB\uDEFB\uDF15\uDF35\uDF4F\uDF6F\uDF89\uDFA9\uDFC3]|\uD836[\uDC00-\uDDFF\uDE37-\uDE3A\uDE6D-\uDE74\uDE76-\uDE83\uDE85\uDE86]|\uD838[\uDD4F\uDEFF]|\uD83B[\uDCAC\uDCB0\uDD2E\uDEF0\uDEF1]|\uD83C[\uDC00-\uDC2B\uDC30-\uDC93\uDCA0-\uDCAE\uDCB1-\uDCBF\uDCC1-\uDCCF\uDCD1-\uDCF5\uDD0D-\uDDAD\uDDE6-\uDE02\uDE10-\uDE3B\uDE40-\uDE48\uDE50\uDE51\uDE60-\uDE65\uDF00-\uDFFF]|\uD83D[\uDC00-\uDED7\uDEE0-\uDEEC\uDEF0-\uDEFC\uDF00-\uDF73\uDF80-\uDFD8\uDFE0-\uDFEB]|\uD83E[\uDC00-\uDC0B\uDC10-\uDC47\uDC50-\uDC59\uDC60-\uDC87\uDC90-\uDCAD\uDCB0\uDCB1\uDD00-\uDD78\uDD7A-\uDDCB\uDDCD-\uDE53\uDE60-\uDE6D\uDE70-\uDE74\uDE78-\uDE7A\uDE80-\uDE86\uDE90-\uDEA8\uDEB0-\uDEB6\uDEC0-\uDEC2\uDED0-\uDED6\uDF00-\uDF92\uDF94-\uDFCA]/;
373
497
 
374
- // ../../../../../../../../execroot/formatjs/bazel-out/darwin_arm64-fastbuild/bin/node_modules/.aspect_rules_js/@formatjs+ecma402-abstract@0.0.0/node_modules/@formatjs/ecma402-abstract/lib/NumberFormat/format_to_parts.js
498
+ // node_modules/.aspect_rules_js/@formatjs+ecma402-abstract@0.0.0/node_modules/@formatjs/ecma402-abstract/lib/NumberFormat/format_to_parts.js
375
499
  var CARET_S_UNICODE_REGEX = new RegExp("^".concat(S_UNICODE_REGEX.source));
376
500
  var S_DOLLAR_UNICODE_REGEX = new RegExp("".concat(S_UNICODE_REGEX.source, "$"));
377
501
 
378
- // ../../../../../../../../execroot/formatjs/bazel-out/darwin_arm64-fastbuild/bin/node_modules/.aspect_rules_js/@formatjs+intl-localematcher@0.0.0/node_modules/@formatjs/intl-localematcher/lib/abstract/CanonicalizeLocaleList.js
502
+ // node_modules/.aspect_rules_js/@formatjs+intl-localematcher@0.0.0/node_modules/@formatjs/intl-localematcher/lib/abstract/CanonicalizeLocaleList.js
379
503
  function CanonicalizeLocaleList2(locales) {
380
504
  return Intl.getCanonicalLocales(locales);
381
505
  }
382
506
 
383
- // ../../../../../../../../execroot/formatjs/bazel-out/darwin_arm64-fastbuild/bin/node_modules/.aspect_rules_js/@formatjs+intl-localematcher@0.0.0/node_modules/@formatjs/intl-localematcher/lib/abstract/languageMatching.js
507
+ // node_modules/.aspect_rules_js/@formatjs+intl-localematcher@0.0.0/node_modules/@formatjs/intl-localematcher/lib/abstract/languageMatching.js
384
508
  var data = {
385
509
  supplemental: {
386
510
  languageMatching: {
@@ -3002,7 +3126,7 @@
3002
3126
  }
3003
3127
  };
3004
3128
 
3005
- // ../../../../../../../../execroot/formatjs/bazel-out/darwin_arm64-fastbuild/bin/node_modules/.aspect_rules_js/@formatjs+intl-localematcher@0.0.0/node_modules/@formatjs/intl-localematcher/lib/abstract/regions.generated.js
3129
+ // node_modules/.aspect_rules_js/@formatjs+intl-localematcher@0.0.0/node_modules/@formatjs/intl-localematcher/lib/abstract/regions.generated.js
3006
3130
  var regions = {
3007
3131
  "001": [
3008
3132
  "001",
@@ -4337,7 +4461,7 @@
4337
4461
  ]
4338
4462
  };
4339
4463
 
4340
- // ../../../../../../../../execroot/formatjs/bazel-out/darwin_arm64-fastbuild/bin/node_modules/.aspect_rules_js/@formatjs+intl-localematcher@0.0.0/node_modules/@formatjs/intl-localematcher/lib/abstract/utils.js
4464
+ // node_modules/.aspect_rules_js/@formatjs+intl-localematcher@0.0.0/node_modules/@formatjs/intl-localematcher/lib/abstract/utils.js
4341
4465
  var UNICODE_EXTENSION_SEQUENCE_REGEX = /-u(?:-[0-9a-z]{2,8})+/gi;
4342
4466
  function invariant2(condition, message, Err) {
4343
4467
  if (Err === void 0) {
@@ -4491,7 +4615,7 @@
4491
4615
  return result;
4492
4616
  }
4493
4617
 
4494
- // ../../../../../../../../execroot/formatjs/bazel-out/darwin_arm64-fastbuild/bin/node_modules/.aspect_rules_js/@formatjs+intl-localematcher@0.0.0/node_modules/@formatjs/intl-localematcher/lib/abstract/BestFitMatcher.js
4618
+ // node_modules/.aspect_rules_js/@formatjs+intl-localematcher@0.0.0/node_modules/@formatjs/intl-localematcher/lib/abstract/BestFitMatcher.js
4495
4619
  function BestFitMatcher(availableLocales, requestedLocales, getDefaultLocale) {
4496
4620
  var foundLocale;
4497
4621
  var extension;
@@ -4516,7 +4640,7 @@
4516
4640
  };
4517
4641
  }
4518
4642
 
4519
- // ../../../../../../../../execroot/formatjs/bazel-out/darwin_arm64-fastbuild/bin/node_modules/.aspect_rules_js/@formatjs+intl-localematcher@0.0.0/node_modules/@formatjs/intl-localematcher/lib/abstract/BestAvailableLocale.js
4643
+ // node_modules/.aspect_rules_js/@formatjs+intl-localematcher@0.0.0/node_modules/@formatjs/intl-localematcher/lib/abstract/BestAvailableLocale.js
4520
4644
  function BestAvailableLocale(availableLocales, locale) {
4521
4645
  var candidate = locale;
4522
4646
  while (true) {
@@ -4534,7 +4658,7 @@
4534
4658
  }
4535
4659
  }
4536
4660
 
4537
- // ../../../../../../../../execroot/formatjs/bazel-out/darwin_arm64-fastbuild/bin/node_modules/.aspect_rules_js/@formatjs+intl-localematcher@0.0.0/node_modules/@formatjs/intl-localematcher/lib/abstract/LookupMatcher.js
4661
+ // node_modules/.aspect_rules_js/@formatjs+intl-localematcher@0.0.0/node_modules/@formatjs/intl-localematcher/lib/abstract/LookupMatcher.js
4538
4662
  function LookupMatcher(availableLocales, requestedLocales, getDefaultLocale) {
4539
4663
  var result = { locale: "" };
4540
4664
  for (var _i = 0, requestedLocales_1 = requestedLocales; _i < requestedLocales_1.length; _i++) {
@@ -4553,7 +4677,7 @@
4553
4677
  return result;
4554
4678
  }
4555
4679
 
4556
- // ../../../../../../../../execroot/formatjs/bazel-out/darwin_arm64-fastbuild/bin/node_modules/.aspect_rules_js/@formatjs+intl-localematcher@0.0.0/node_modules/@formatjs/intl-localematcher/lib/abstract/UnicodeExtensionValue.js
4680
+ // node_modules/.aspect_rules_js/@formatjs+intl-localematcher@0.0.0/node_modules/@formatjs/intl-localematcher/lib/abstract/UnicodeExtensionValue.js
4557
4681
  function UnicodeExtensionValue(extension, key) {
4558
4682
  invariant2(key.length === 2, "key must have 2 elements");
4559
4683
  var size = extension.length;
@@ -4592,7 +4716,7 @@
4592
4716
  return void 0;
4593
4717
  }
4594
4718
 
4595
- // ../../../../../../../../execroot/formatjs/bazel-out/darwin_arm64-fastbuild/bin/node_modules/.aspect_rules_js/@formatjs+intl-localematcher@0.0.0/node_modules/@formatjs/intl-localematcher/lib/abstract/ResolveLocale.js
4719
+ // node_modules/.aspect_rules_js/@formatjs+intl-localematcher@0.0.0/node_modules/@formatjs/intl-localematcher/lib/abstract/ResolveLocale.js
4596
4720
  function ResolveLocale(availableLocales, requestedLocales, options, relevantExtensionKeys, localeData, getDefaultLocale) {
4597
4721
  var matcher = options.localeMatcher;
4598
4722
  var r;
@@ -4656,7 +4780,7 @@
4656
4780
  return result;
4657
4781
  }
4658
4782
 
4659
- // ../../../../../../../../execroot/formatjs/bazel-out/darwin_arm64-fastbuild/bin/node_modules/.aspect_rules_js/@formatjs+intl-localematcher@0.0.0/node_modules/@formatjs/intl-localematcher/lib/abstract/LookupSupportedLocales.js
4783
+ // node_modules/.aspect_rules_js/@formatjs+intl-localematcher@0.0.0/node_modules/@formatjs/intl-localematcher/lib/abstract/LookupSupportedLocales.js
4660
4784
  function LookupSupportedLocales(availableLocales, requestedLocales) {
4661
4785
  var subset = [];
4662
4786
  for (var _i = 0, requestedLocales_1 = requestedLocales; _i < requestedLocales_1.length; _i++) {
@@ -4670,7 +4794,7 @@
4670
4794
  return subset;
4671
4795
  }
4672
4796
 
4673
- // ../../../../../../../../execroot/formatjs/bazel-out/darwin_arm64-fastbuild/bin/node_modules/.aspect_rules_js/@formatjs+intl-localematcher@0.0.0/node_modules/@formatjs/intl-localematcher/lib/index.js
4797
+ // node_modules/.aspect_rules_js/@formatjs+intl-localematcher@0.0.0/node_modules/@formatjs/intl-localematcher/lib/index.js
4674
4798
  function match(requestedLocales, availableLocales, defaultLocale, opts) {
4675
4799
  return ResolveLocale(availableLocales, CanonicalizeLocaleList2(requestedLocales), {
4676
4800
  localeMatcher: (opts === null || opts === void 0 ? void 0 : opts.algorithm) || "best fit"
@@ -4679,7 +4803,7 @@
4679
4803
  }).locale;
4680
4804
  }
4681
4805
 
4682
- // ../../../../../../../../execroot/formatjs/bazel-out/darwin_arm64-fastbuild/bin/node_modules/.aspect_rules_js/@formatjs+ecma402-abstract@0.0.0/node_modules/@formatjs/ecma402-abstract/lib/NumberFormat/SetNumberFormatDigitOptions.js
4806
+ // node_modules/.aspect_rules_js/@formatjs+ecma402-abstract@0.0.0/node_modules/@formatjs/ecma402-abstract/lib/NumberFormat/SetNumberFormatDigitOptions.js
4683
4807
  function SetNumberFormatDigitOptions(internalSlots, opts, mnfdDefault, mxfdDefault, notation) {
4684
4808
  var mnid = GetNumberOption(opts, "minimumIntegerDigits", 1, 21, 1);
4685
4809
  var mnfd = opts.minimumFractionDigits;
@@ -4746,7 +4870,7 @@
4746
4870
  }
4747
4871
  }
4748
4872
 
4749
- // ../../../../../../../../execroot/formatjs/bazel-out/darwin_arm64-fastbuild/bin/node_modules/.aspect_rules_js/@formatjs+ecma402-abstract@0.0.0/node_modules/@formatjs/ecma402-abstract/lib/SupportedLocales.js
4873
+ // node_modules/.aspect_rules_js/@formatjs+ecma402-abstract@0.0.0/node_modules/@formatjs/ecma402-abstract/lib/SupportedLocales.js
4750
4874
  function SupportedLocales(availableLocales, requestedLocales, options) {
4751
4875
  var matcher = "best fit";
4752
4876
  if (options !== void 0) {
@@ -4759,7 +4883,7 @@
4759
4883
  return LookupSupportedLocales(Array.from(availableLocales), requestedLocales);
4760
4884
  }
4761
4885
 
4762
- // ../../../../../../../../execroot/formatjs/bazel-out/darwin_arm64-fastbuild/bin/node_modules/.aspect_rules_js/@formatjs+ecma402-abstract@0.0.0/node_modules/@formatjs/ecma402-abstract/lib/data.js
4886
+ // node_modules/.aspect_rules_js/@formatjs+ecma402-abstract@0.0.0/node_modules/@formatjs/ecma402-abstract/lib/data.js
4763
4887
  var MissingLocaleDataError = (
4764
4888
  /** @class */
4765
4889
  function(_super) {
@@ -4773,7 +4897,7 @@
4773
4897
  }(Error)
4774
4898
  );
4775
4899
 
4776
- // ../../../../../../../../execroot/formatjs/bazel-out/darwin_arm64-fastbuild/bin/node_modules/.aspect_rules_js/@formatjs+ecma402-abstract@0.0.0/node_modules/@formatjs/ecma402-abstract/lib/types/date-time.js
4900
+ // node_modules/.aspect_rules_js/@formatjs+ecma402-abstract@0.0.0/node_modules/@formatjs/ecma402-abstract/lib/types/date-time.js
4777
4901
  var RangePatternType;
4778
4902
  (function(RangePatternType2) {
4779
4903
  RangePatternType2["startRange"] = "startRange";
@@ -4781,33 +4905,60 @@
4781
4905
  RangePatternType2["endRange"] = "endRange";
4782
4906
  })(RangePatternType || (RangePatternType = {}));
4783
4907
 
4784
- // ../../../../../../../../execroot/formatjs/bazel-out/darwin_arm64-fastbuild/bin/packages/intl-pluralrules/lib/abstract/InitializePluralRules.js
4785
- function InitializePluralRules(pl, locales, options, _a) {
4786
- var availableLocales = _a.availableLocales, relevantExtensionKeys = _a.relevantExtensionKeys, localeData = _a.localeData, getDefaultLocale = _a.getDefaultLocale, getInternalSlots2 = _a.getInternalSlots;
4787
- var requestedLocales = CanonicalizeLocaleList(locales);
4788
- var opt = /* @__PURE__ */ Object.create(null);
4789
- var opts = CoerceOptionsToObject(options);
4790
- var internalSlots = getInternalSlots2(pl);
4908
+ // packages/intl-pluralrules/abstract/InitializePluralRules.ts
4909
+ function InitializePluralRules(pl, locales, options, {
4910
+ availableLocales,
4911
+ relevantExtensionKeys,
4912
+ localeData,
4913
+ getDefaultLocale,
4914
+ getInternalSlots: getInternalSlots2
4915
+ }) {
4916
+ const requestedLocales = CanonicalizeLocaleList(locales);
4917
+ const opt = /* @__PURE__ */ Object.create(null);
4918
+ const opts = CoerceOptionsToObject(options);
4919
+ const internalSlots = getInternalSlots2(pl);
4791
4920
  internalSlots.initializedPluralRules = true;
4792
- var matcher = GetOption(opts, "localeMatcher", "string", ["best fit", "lookup"], "best fit");
4921
+ const matcher = GetOption(
4922
+ opts,
4923
+ "localeMatcher",
4924
+ "string",
4925
+ ["best fit", "lookup"],
4926
+ "best fit"
4927
+ );
4793
4928
  opt.localeMatcher = matcher;
4794
- internalSlots.type = GetOption(opts, "type", "string", ["cardinal", "ordinal"], "cardinal");
4929
+ internalSlots.type = GetOption(
4930
+ opts,
4931
+ "type",
4932
+ "string",
4933
+ ["cardinal", "ordinal"],
4934
+ "cardinal"
4935
+ );
4795
4936
  SetNumberFormatDigitOptions(internalSlots, opts, 0, 3, "standard");
4796
- var r = ResolveLocale(availableLocales, requestedLocales, opt, relevantExtensionKeys, localeData, getDefaultLocale);
4937
+ const r = ResolveLocale(
4938
+ availableLocales,
4939
+ requestedLocales,
4940
+ opt,
4941
+ relevantExtensionKeys,
4942
+ localeData,
4943
+ getDefaultLocale
4944
+ );
4797
4945
  internalSlots.locale = r.locale;
4798
4946
  return pl;
4799
4947
  }
4800
4948
 
4801
- // ../../../../../../../../execroot/formatjs/bazel-out/darwin_arm64-fastbuild/bin/packages/intl-pluralrules/lib/abstract/GetOperands.js
4949
+ // packages/intl-pluralrules/abstract/GetOperands.ts
4802
4950
  function GetOperands(s) {
4803
- invariant(typeof s === "string", "GetOperands should have been called with a string");
4804
- var n = ToNumber(s);
4951
+ invariant(
4952
+ typeof s === "string",
4953
+ `GetOperands should have been called with a string`
4954
+ );
4955
+ const n = ToNumber(s);
4805
4956
  invariant(isFinite(n), "n should be finite");
4806
- var dp = s.indexOf(".");
4807
- var iv;
4808
- var f;
4809
- var v;
4810
- var fv = "";
4957
+ let dp = s.indexOf(".");
4958
+ let iv;
4959
+ let f;
4960
+ let v;
4961
+ let fv = "";
4811
4962
  if (dp === -1) {
4812
4963
  iv = n;
4813
4964
  f = 0;
@@ -4818,11 +4969,11 @@
4818
4969
  f = ToNumber(fv);
4819
4970
  v = fv.length;
4820
4971
  }
4821
- var i = Math.abs(ToNumber(iv));
4822
- var w;
4823
- var t;
4972
+ const i = Math.abs(ToNumber(iv));
4973
+ let w;
4974
+ let t;
4824
4975
  if (f !== 0) {
4825
- var ft = fv.replace(/0+$/, "");
4976
+ const ft = fv.replace(/0+$/, "");
4826
4977
  w = ft.length;
4827
4978
  t = ToNumber(ft);
4828
4979
  } else {
@@ -4839,27 +4990,32 @@
4839
4990
  };
4840
4991
  }
4841
4992
 
4842
- // ../../../../../../../../execroot/formatjs/bazel-out/darwin_arm64-fastbuild/bin/packages/intl-pluralrules/lib/abstract/ResolvePlural.js
4843
- function ResolvePlural(pl, n, _a) {
4844
- var getInternalSlots2 = _a.getInternalSlots, PluralRuleSelect2 = _a.PluralRuleSelect;
4845
- var internalSlots = getInternalSlots2(pl);
4993
+ // packages/intl-pluralrules/abstract/ResolvePlural.ts
4994
+ function ResolvePlural(pl, n, {
4995
+ getInternalSlots: getInternalSlots2,
4996
+ PluralRuleSelect: PluralRuleSelect2
4997
+ }) {
4998
+ const internalSlots = getInternalSlots2(pl);
4846
4999
  invariant(Type(internalSlots) === "Object", "pl has to be an object");
4847
- invariant("initializedPluralRules" in internalSlots, "pluralrules must be initialized");
5000
+ invariant(
5001
+ "initializedPluralRules" in internalSlots,
5002
+ "pluralrules must be initialized"
5003
+ );
4848
5004
  invariant(Type(n) === "Number", "n must be a number");
4849
5005
  if (!isFinite(n)) {
4850
5006
  return "other";
4851
5007
  }
4852
- var locale = internalSlots.locale, type = internalSlots.type;
4853
- var res = FormatNumericToString(internalSlots, n);
4854
- var s = res.formattedString;
4855
- var operands = GetOperands(s);
5008
+ const { locale, type } = internalSlots;
5009
+ const res = FormatNumericToString(internalSlots, n);
5010
+ const s = res.formattedString;
5011
+ const operands = GetOperands(s);
4856
5012
  return PluralRuleSelect2(locale, type, n, operands);
4857
5013
  }
4858
5014
 
4859
- // ../../../../../../../../execroot/formatjs/bazel-out/darwin_arm64-fastbuild/bin/packages/intl-pluralrules/lib/get_internal_slots.js
5015
+ // packages/intl-pluralrules/get_internal_slots.ts
4860
5016
  var internalSlotMap = /* @__PURE__ */ new WeakMap();
4861
5017
  function getInternalSlots(x) {
4862
- var internalSlots = internalSlotMap.get(x);
5018
+ let internalSlots = internalSlotMap.get(x);
4863
5019
  if (!internalSlots) {
4864
5020
  internalSlots = /* @__PURE__ */ Object.create(null);
4865
5021
  internalSlotMap.set(x, internalSlots);
@@ -4867,90 +5023,94 @@
4867
5023
  return internalSlots;
4868
5024
  }
4869
5025
 
4870
- // ../../../../../../../../execroot/formatjs/bazel-out/darwin_arm64-fastbuild/bin/packages/intl-pluralrules/lib/index.js
5026
+ // packages/intl-pluralrules/index.ts
4871
5027
  function validateInstance(instance, method) {
4872
5028
  if (!(instance instanceof PluralRules)) {
4873
- throw new TypeError("Method Intl.PluralRules.prototype.".concat(method, " called on incompatible receiver ").concat(String(instance)));
5029
+ throw new TypeError(
5030
+ `Method Intl.PluralRules.prototype.${method} called on incompatible receiver ${String(
5031
+ instance
5032
+ )}`
5033
+ );
4874
5034
  }
4875
5035
  }
4876
- function PluralRuleSelect(locale, type, _n, _a) {
4877
- var IntegerDigits = _a.IntegerDigits, NumberOfFractionDigits = _a.NumberOfFractionDigits, FractionDigits = _a.FractionDigits;
4878
- return PluralRules.localeData[locale].fn(NumberOfFractionDigits ? "".concat(IntegerDigits, ".").concat(FractionDigits) : IntegerDigits, type === "ordinal");
5036
+ function PluralRuleSelect(locale, type, _n, { IntegerDigits, NumberOfFractionDigits, FractionDigits }) {
5037
+ return PluralRules.localeData[locale].fn(
5038
+ NumberOfFractionDigits ? `${IntegerDigits}.${FractionDigits}` : IntegerDigits,
5039
+ type === "ordinal"
5040
+ );
4879
5041
  }
4880
- var PluralRules = (
4881
- /** @class */
4882
- function() {
4883
- function PluralRules2(locales, options) {
4884
- var newTarget = this && this instanceof PluralRules2 ? this.constructor : void 0;
4885
- if (!newTarget) {
4886
- throw new TypeError("Intl.PluralRules must be called with 'new'");
4887
- }
4888
- return InitializePluralRules(this, locales, options, {
4889
- availableLocales: PluralRules2.availableLocales,
4890
- relevantExtensionKeys: PluralRules2.relevantExtensionKeys,
4891
- localeData: PluralRules2.localeData,
4892
- getDefaultLocale: PluralRules2.getDefaultLocale,
4893
- getInternalSlots
4894
- });
5042
+ var _PluralRules = class _PluralRules {
5043
+ constructor(locales, options) {
5044
+ const newTarget = this && this instanceof _PluralRules ? this.constructor : void 0;
5045
+ if (!newTarget) {
5046
+ throw new TypeError("Intl.PluralRules must be called with 'new'");
4895
5047
  }
4896
- PluralRules2.prototype.resolvedOptions = function() {
4897
- validateInstance(this, "resolvedOptions");
4898
- var opts = /* @__PURE__ */ Object.create(null);
4899
- var internalSlots = getInternalSlots(this);
4900
- opts.locale = internalSlots.locale;
4901
- opts.type = internalSlots.type;
4902
- [
4903
- "minimumIntegerDigits",
4904
- "minimumFractionDigits",
4905
- "maximumFractionDigits",
4906
- "minimumSignificantDigits",
4907
- "maximumSignificantDigits"
4908
- ].forEach(function(field) {
4909
- var val = internalSlots[field];
4910
- if (val !== void 0) {
4911
- opts[field] = val;
4912
- }
4913
- });
4914
- opts.pluralCategories = __spreadArray([], PluralRules2.localeData[opts.locale].categories[opts.type], true);
4915
- return opts;
4916
- };
4917
- PluralRules2.prototype.select = function(val) {
4918
- var pr = this;
4919
- validateInstance(pr, "select");
4920
- var n = ToNumber(val);
4921
- return ResolvePlural(pr, n, { getInternalSlots, PluralRuleSelect });
4922
- };
4923
- PluralRules2.prototype.toString = function() {
4924
- return "[object Intl.PluralRules]";
4925
- };
4926
- PluralRules2.supportedLocalesOf = function(locales, options) {
4927
- return SupportedLocales(PluralRules2.availableLocales, CanonicalizeLocaleList(locales), options);
4928
- };
4929
- PluralRules2.__addLocaleData = function() {
4930
- var data2 = [];
4931
- for (var _i = 0; _i < arguments.length; _i++) {
4932
- data2[_i] = arguments[_i];
5048
+ return InitializePluralRules(this, locales, options, {
5049
+ availableLocales: _PluralRules.availableLocales,
5050
+ relevantExtensionKeys: _PluralRules.relevantExtensionKeys,
5051
+ localeData: _PluralRules.localeData,
5052
+ getDefaultLocale: _PluralRules.getDefaultLocale,
5053
+ getInternalSlots
5054
+ });
5055
+ }
5056
+ resolvedOptions() {
5057
+ validateInstance(this, "resolvedOptions");
5058
+ const opts = /* @__PURE__ */ Object.create(null);
5059
+ const internalSlots = getInternalSlots(this);
5060
+ opts.locale = internalSlots.locale;
5061
+ opts.type = internalSlots.type;
5062
+ [
5063
+ "minimumIntegerDigits",
5064
+ "minimumFractionDigits",
5065
+ "maximumFractionDigits",
5066
+ "minimumSignificantDigits",
5067
+ "maximumSignificantDigits"
5068
+ ].forEach((field) => {
5069
+ const val = internalSlots[field];
5070
+ if (val !== void 0) {
5071
+ opts[field] = val;
4933
5072
  }
4934
- for (var _a = 0, data_1 = data2; _a < data_1.length; _a++) {
4935
- var _b = data_1[_a], d = _b.data, locale = _b.locale;
4936
- PluralRules2.localeData[locale] = d;
4937
- PluralRules2.availableLocales.add(locale);
4938
- if (!PluralRules2.__defaultLocale) {
4939
- PluralRules2.__defaultLocale = locale;
4940
- }
5073
+ });
5074
+ opts.pluralCategories = [
5075
+ ..._PluralRules.localeData[opts.locale].categories[opts.type]
5076
+ ];
5077
+ return opts;
5078
+ }
5079
+ select(val) {
5080
+ const pr = this;
5081
+ validateInstance(pr, "select");
5082
+ const n = ToNumber(val);
5083
+ return ResolvePlural(pr, n, { getInternalSlots, PluralRuleSelect });
5084
+ }
5085
+ toString() {
5086
+ return "[object Intl.PluralRules]";
5087
+ }
5088
+ static supportedLocalesOf(locales, options) {
5089
+ return SupportedLocales(
5090
+ _PluralRules.availableLocales,
5091
+ CanonicalizeLocaleList(locales),
5092
+ options
5093
+ );
5094
+ }
5095
+ static __addLocaleData(...data2) {
5096
+ for (const { data: d, locale } of data2) {
5097
+ _PluralRules.localeData[locale] = d;
5098
+ _PluralRules.availableLocales.add(locale);
5099
+ if (!_PluralRules.__defaultLocale) {
5100
+ _PluralRules.__defaultLocale = locale;
4941
5101
  }
4942
- };
4943
- PluralRules2.getDefaultLocale = function() {
4944
- return PluralRules2.__defaultLocale;
4945
- };
4946
- PluralRules2.localeData = {};
4947
- PluralRules2.availableLocales = /* @__PURE__ */ new Set();
4948
- PluralRules2.__defaultLocale = "";
4949
- PluralRules2.relevantExtensionKeys = [];
4950
- PluralRules2.polyfilled = true;
4951
- return PluralRules2;
4952
- }()
4953
- );
5102
+ }
5103
+ }
5104
+ static getDefaultLocale() {
5105
+ return _PluralRules.__defaultLocale;
5106
+ }
5107
+ };
5108
+ __publicField(_PluralRules, "localeData", {});
5109
+ __publicField(_PluralRules, "availableLocales", /* @__PURE__ */ new Set());
5110
+ __publicField(_PluralRules, "__defaultLocale", "");
5111
+ __publicField(_PluralRules, "relevantExtensionKeys", []);
5112
+ __publicField(_PluralRules, "polyfilled", true);
5113
+ var PluralRules = _PluralRules;
4954
5114
  try {
4955
5115
  if (typeof Symbol !== "undefined") {
4956
5116
  Object.defineProperty(PluralRules.prototype, Symbol.toStringTag, {
@@ -4981,30 +5141,33 @@
4981
5141
  enumerable: false,
4982
5142
  configurable: true
4983
5143
  });
5144
+ Object.defineProperty(PluralRules, "name", {
5145
+ value: "PluralRules",
5146
+ writable: false,
5147
+ enumerable: false,
5148
+ configurable: true
5149
+ });
4984
5150
  } catch (ex) {
4985
5151
  }
4986
5152
 
4987
- // ../../../../../../../../execroot/formatjs/bazel-out/darwin_arm64-fastbuild/bin/packages/intl-pluralrules/lib/supported-locales.generated.js
5153
+ // packages/intl-pluralrules/supported-locales.generated.ts
4988
5154
  var supportedLocales = ["af", "ak", "am", "an", "ar", "ars", "as", "asa", "ast", "az", "bal", "be", "bem", "bez", "bg", "bho", "bm", "bn", "bo", "br", "brx", "bs", "ca", "ce", "ceb", "cgg", "chr", "ckb", "cs", "cy", "da", "de", "doi", "dsb", "dv", "dz", "ee", "el", "en", "eo", "es", "et", "eu", "fa", "ff", "fi", "fil", "fo", "fr", "fur", "fy", "ga", "gd", "gl", "gsw", "gu", "guw", "gv", "ha", "haw", "he", "hi", "hnj", "hr", "hsb", "hu", "hy", "ia", "id", "ig", "ii", "io", "is", "it", "iu", "ja", "jbo", "jgo", "jmc", "jv", "jw", "ka", "kab", "kaj", "kcg", "kde", "kea", "kk", "kkj", "kl", "km", "kn", "ko", "ks", "ksb", "ksh", "ku", "kw", "ky", "lag", "lb", "lg", "lij", "lkt", "ln", "lo", "lt", "lv", "mas", "mg", "mgo", "mk", "ml", "mn", "mo", "mr", "ms", "mt", "my", "nah", "naq", "nb", "nd", "ne", "nl", "nn", "nnh", "no", "nqo", "nr", "nso", "ny", "nyn", "om", "or", "os", "osa", "pa", "pap", "pcm", "pl", "prg", "ps", "pt", "pt-PT", "rm", "ro", "rof", "ru", "rwk", "sah", "saq", "sat", "sc", "scn", "sd", "sdh", "se", "seh", "ses", "sg", "sh", "shi", "si", "sk", "sl", "sma", "smi", "smj", "smn", "sms", "sn", "so", "sq", "sr", "ss", "ssy", "st", "su", "sv", "sw", "syr", "ta", "te", "teo", "th", "ti", "tig", "tk", "tl", "tn", "to", "tpi", "tr", "ts", "tzm", "ug", "uk", "und", "ur", "uz", "ve", "vi", "vo", "vun", "wa", "wae", "wo", "xh", "xog", "yi", "yo", "yue", "zh", "zu"];
4989
5155
 
4990
- // ../../../../../../../../execroot/formatjs/bazel-out/darwin_arm64-fastbuild/bin/packages/intl-pluralrules/lib/should-polyfill.js
5156
+ // packages/intl-pluralrules/should-polyfill.ts
4991
5157
  function supportedLocalesOf(locale) {
4992
5158
  if (!locale) {
4993
5159
  return true;
4994
5160
  }
4995
- var locales = Array.isArray(locale) ? locale : [locale];
5161
+ const locales = Array.isArray(locale) ? locale : [locale];
4996
5162
  return Intl.PluralRules.supportedLocalesOf(locales).length === locales.length;
4997
5163
  }
4998
- function shouldPolyfill(locale) {
4999
- if (locale === void 0) {
5000
- locale = "en";
5001
- }
5164
+ function shouldPolyfill(locale = "en") {
5002
5165
  if (!("PluralRules" in Intl) || new Intl.PluralRules("en", { minimumFractionDigits: 2 }).select(1) === "one" || !supportedLocalesOf(locale)) {
5003
5166
  return locale ? match([locale], supportedLocales, "en") : void 0;
5004
5167
  }
5005
5168
  }
5006
5169
 
5007
- // ../../../../../../../../execroot/formatjs/bazel-out/darwin_arm64-fastbuild/bin/packages/intl-pluralrules/lib/polyfill.js
5170
+ // packages/intl-pluralrules/polyfill.ts
5008
5171
  if (shouldPolyfill()) {
5009
5172
  Object.defineProperty(Intl, "PluralRules", {
5010
5173
  value: PluralRules,
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.shouldPolyfill = void 0;
3
+ exports.shouldPolyfill = shouldPolyfill;
4
4
  var intl_localematcher_1 = require("@formatjs/intl-localematcher");
5
5
  var supported_locales_generated_1 = require("./supported-locales.generated");
6
6
  function supportedLocalesOf(locale) {
@@ -19,4 +19,3 @@ function shouldPolyfill(locale) {
19
19
  return locale ? (0, intl_localematcher_1.match)([locale], supported_locales_generated_1.supportedLocales, 'en') : undefined;
20
20
  }
21
21
  }
22
- exports.shouldPolyfill = shouldPolyfill;