@formatjs/intl-pluralrules 5.1.10 → 5.2.1
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/abstract/GetOperands.d.ts.map +1 -1
- package/abstract/InitializePluralRules.d.ts.map +1 -1
- package/abstract/ResolvePlural.d.ts.map +1 -1
- package/index.js +1 -2
- package/lib/index.js +1 -2
- package/package.json +2 -2
- package/polyfill.iife.js +112 -566
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"GetOperands.d.ts","sourceRoot":"","sources":["GetOperands.ts"],"names":[],"mappings":"AAEA,MAAM,WAAW,cAAc;IAC7B;;OAEG;IACH,MAAM,EAAE,MAAM,CAAA;IACd;;OAEG;IACH,aAAa,EAAE,MAAM,CAAA;IACrB;;OAEG;IACH,sBAAsB,EAAE,MAAM,CAAA;IAC9B;;OAEG;IACH,qCAAqC,EAAE,MAAM,CAAA;IAC7C;;OAEG;IACH,cAAc,EAAE,MAAM,CAAA;IACtB;;OAEG;IACH,6BAA6B,EAAE,MAAM,CAAA;CACtC;AAED;;;GAGG;AACH,wBAAgB,WAAW,CAAC,CAAC,EAAE,MAAM,GAAG,cAAc,CAyCrD"}
|
|
1
|
+
{"version":3,"file":"GetOperands.d.ts","sourceRoot":"","sources":["../abstract/GetOperands.ts"],"names":[],"mappings":"AAEA,MAAM,WAAW,cAAc;IAC7B;;OAEG;IACH,MAAM,EAAE,MAAM,CAAA;IACd;;OAEG;IACH,aAAa,EAAE,MAAM,CAAA;IACrB;;OAEG;IACH,sBAAsB,EAAE,MAAM,CAAA;IAC9B;;OAEG;IACH,qCAAqC,EAAE,MAAM,CAAA;IAC7C;;OAEG;IACH,cAAc,EAAE,MAAM,CAAA;IACtB;;OAEG;IACH,6BAA6B,EAAE,MAAM,CAAA;CACtC;AAED;;;GAGG;AACH,wBAAgB,WAAW,CAAC,CAAC,EAAE,MAAM,GAAG,cAAc,CAyCrD"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"InitializePluralRules.d.ts","sourceRoot":"","sources":["InitializePluralRules.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,mBAAmB,EACnB,eAAe,EAKhB,MAAM,4BAA4B,CAAA;AAGnC,wBAAgB,qBAAqB,CACnC,EAAE,EAAE,IAAI,CAAC,WAAW,EACpB,OAAO,EAAE,MAAM,GAAG,MAAM,EAAE,GAAG,SAAS,EACtC,OAAO,EAAE,IAAI,CAAC,kBAAkB,GAAG,SAAS,EAC5C,EACE,gBAAgB,EAChB,qBAAqB,EACrB,UAAU,EACV,gBAAgB,EAChB,gBAAgB,GACjB,EAAE;IACD,gBAAgB,EAAE,GAAG,CAAC,MAAM,CAAC,CAAA;IAC7B,qBAAqB,EAAE,MAAM,EAAE,CAAA;IAC/B,UAAU,EAAE,MAAM,CAAC,MAAM,EAAE,eAAe,GAAG,SAAS,CAAC,CAAA;IACvD,gBAAgB,IAAI,MAAM,CAAA;IAC1B,gBAAgB,CAAC,EAAE,EAAE,IAAI,CAAC,WAAW,GAAG,mBAAmB,CAAA;CAC5D,oBAkCF"}
|
|
1
|
+
{"version":3,"file":"InitializePluralRules.d.ts","sourceRoot":"","sources":["../abstract/InitializePluralRules.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,mBAAmB,EACnB,eAAe,EAKhB,MAAM,4BAA4B,CAAA;AAGnC,wBAAgB,qBAAqB,CACnC,EAAE,EAAE,IAAI,CAAC,WAAW,EACpB,OAAO,EAAE,MAAM,GAAG,MAAM,EAAE,GAAG,SAAS,EACtC,OAAO,EAAE,IAAI,CAAC,kBAAkB,GAAG,SAAS,EAC5C,EACE,gBAAgB,EAChB,qBAAqB,EACrB,UAAU,EACV,gBAAgB,EAChB,gBAAgB,GACjB,EAAE;IACD,gBAAgB,EAAE,GAAG,CAAC,MAAM,CAAC,CAAA;IAC7B,qBAAqB,EAAE,MAAM,EAAE,CAAA;IAC/B,UAAU,EAAE,MAAM,CAAC,MAAM,EAAE,eAAe,GAAG,SAAS,CAAC,CAAA;IACvD,gBAAgB,IAAI,MAAM,CAAA;IAC1B,gBAAgB,CAAC,EAAE,EAAE,IAAI,CAAC,WAAW,GAAG,mBAAmB,CAAA;CAC5D,oBAkCF"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ResolvePlural.d.ts","sourceRoot":"","sources":["ResolvePlural.ts"],"names":[],"mappings":"AAAA,OAAO,EAGL,mBAAmB,EACnB,cAAc,EAEf,MAAM,4BAA4B,CAAA;AACnC,OAAO,EAAc,cAAc,EAAC,MAAM,eAAe,CAAA;AAEzD;;;;;GAKG;AACH,wBAAgB,aAAa,CAC3B,EAAE,EAAE,IAAI,CAAC,WAAW,EACpB,CAAC,EAAE,MAAM,EACT,EACE,gBAAgB,EAChB,gBAAgB,GACjB,EAAE;IACD,gBAAgB,CAAC,EAAE,EAAE,IAAI,CAAC,WAAW,GAAG,mBAAmB,CAAA;IAC3D,gBAAgB,EAAE,CAChB,MAAM,EAAE,MAAM,EACd,IAAI,EAAE,UAAU,GAAG,SAAS,EAC5B,CAAC,EAAE,MAAM,EACT,QAAQ,EAAE,cAAc,KACrB,cAAc,CAAA;CACpB,GACA,cAAc,CAgBhB"}
|
|
1
|
+
{"version":3,"file":"ResolvePlural.d.ts","sourceRoot":"","sources":["../abstract/ResolvePlural.ts"],"names":[],"mappings":"AAAA,OAAO,EAGL,mBAAmB,EACnB,cAAc,EAEf,MAAM,4BAA4B,CAAA;AACnC,OAAO,EAAc,cAAc,EAAC,MAAM,eAAe,CAAA;AAEzD;;;;;GAKG;AACH,wBAAgB,aAAa,CAC3B,EAAE,EAAE,IAAI,CAAC,WAAW,EACpB,CAAC,EAAE,MAAM,EACT,EACE,gBAAgB,EAChB,gBAAgB,GACjB,EAAE;IACD,gBAAgB,CAAC,EAAE,EAAE,IAAI,CAAC,WAAW,GAAG,mBAAmB,CAAA;IAC3D,gBAAgB,EAAE,CAChB,MAAM,EAAE,MAAM,EACd,IAAI,EAAE,UAAU,GAAG,SAAS,EAC5B,CAAC,EAAE,MAAM,EACT,QAAQ,EAAE,cAAc,KACrB,cAAc,CAAA;CACpB,GACA,cAAc,CAgBhB"}
|
package/index.js
CHANGED
|
@@ -24,7 +24,7 @@ function PluralRuleSelect(locale, type, _n, _a) {
|
|
|
24
24
|
? "".concat(IntegerDigits, ".").concat(FractionDigits)
|
|
25
25
|
: IntegerDigits, type === 'ordinal');
|
|
26
26
|
}
|
|
27
|
-
var PluralRules = /** @class */ (function () {
|
|
27
|
+
var PluralRules = exports.PluralRules = /** @class */ (function () {
|
|
28
28
|
function PluralRules(locales, options) {
|
|
29
29
|
// test262/test/intl402/RelativeTimeFormat/constructor/constructor/newtarget-undefined.js
|
|
30
30
|
// Cannot use `new.target` bc of IE11 & TS transpiles it to something else
|
|
@@ -97,7 +97,6 @@ var PluralRules = /** @class */ (function () {
|
|
|
97
97
|
PluralRules.polyfilled = true;
|
|
98
98
|
return PluralRules;
|
|
99
99
|
}());
|
|
100
|
-
exports.PluralRules = PluralRules;
|
|
101
100
|
try {
|
|
102
101
|
// IE11 does not have Symbol
|
|
103
102
|
if (typeof Symbol !== 'undefined') {
|
package/lib/index.js
CHANGED
|
@@ -21,7 +21,7 @@ function PluralRuleSelect(locale, type, _n, _a) {
|
|
|
21
21
|
? "".concat(IntegerDigits, ".").concat(FractionDigits)
|
|
22
22
|
: IntegerDigits, type === 'ordinal');
|
|
23
23
|
}
|
|
24
|
-
var PluralRules = /** @class */ (function () {
|
|
24
|
+
export var PluralRules = /** @class */ (function () {
|
|
25
25
|
function PluralRules(locales, options) {
|
|
26
26
|
// test262/test/intl402/RelativeTimeFormat/constructor/constructor/newtarget-undefined.js
|
|
27
27
|
// Cannot use `new.target` bc of IE11 & TS transpiles it to something else
|
|
@@ -94,7 +94,6 @@ var PluralRules = /** @class */ (function () {
|
|
|
94
94
|
PluralRules.polyfilled = true;
|
|
95
95
|
return PluralRules;
|
|
96
96
|
}());
|
|
97
|
-
export { PluralRules };
|
|
98
97
|
try {
|
|
99
98
|
// IE11 does not have Symbol
|
|
100
99
|
if (typeof Symbol !== 'undefined') {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@formatjs/intl-pluralrules",
|
|
3
|
-
"version": "5.1
|
|
3
|
+
"version": "5.2.1",
|
|
4
4
|
"description": "Polyfill for Intl.PluralRules",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"polyfill",
|
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
},
|
|
27
27
|
"devDependencies": {
|
|
28
28
|
"@formatjs/intl-getcanonicallocales": "2.1.0",
|
|
29
|
-
"@formatjs/intl-locale": "3.
|
|
29
|
+
"@formatjs/intl-locale": "3.2.1"
|
|
30
30
|
},
|
|
31
31
|
"bugs": {
|
|
32
32
|
"url": "https://github.com/formatjs/formatjs/issues"
|
package/polyfill.iife.js
CHANGED
|
@@ -1,495 +1,35 @@
|
|
|
1
1
|
(() => {
|
|
2
|
-
|
|
3
|
-
var
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
13
|
-
for (let key of __getOwnPropNames(from))
|
|
14
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
15
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
16
|
-
}
|
|
17
|
-
return to;
|
|
2
|
+
// ../../../../../../../../execroot/formatjs/bazel-out/darwin-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);
|
|
18
12
|
};
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
var
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
var __exportStar2;
|
|
36
|
-
var __values2;
|
|
37
|
-
var __read2;
|
|
38
|
-
var __spread2;
|
|
39
|
-
var __spreadArrays2;
|
|
40
|
-
var __spreadArray2;
|
|
41
|
-
var __await2;
|
|
42
|
-
var __asyncGenerator2;
|
|
43
|
-
var __asyncDelegator2;
|
|
44
|
-
var __asyncValues2;
|
|
45
|
-
var __makeTemplateObject2;
|
|
46
|
-
var __importStar2;
|
|
47
|
-
var __importDefault2;
|
|
48
|
-
var __classPrivateFieldGet2;
|
|
49
|
-
var __classPrivateFieldSet2;
|
|
50
|
-
var __classPrivateFieldIn2;
|
|
51
|
-
var __createBinding2;
|
|
52
|
-
(function(factory) {
|
|
53
|
-
var root = typeof global === "object" ? global : typeof self === "object" ? self : typeof this === "object" ? this : {};
|
|
54
|
-
if (typeof define === "function" && define.amd) {
|
|
55
|
-
define("tslib", ["exports"], function(exports2) {
|
|
56
|
-
factory(createExporter(root, createExporter(exports2)));
|
|
57
|
-
});
|
|
58
|
-
} else if (typeof module === "object" && typeof module.exports === "object") {
|
|
59
|
-
factory(createExporter(root, createExporter(module.exports)));
|
|
60
|
-
} else {
|
|
61
|
-
factory(createExporter(root));
|
|
62
|
-
}
|
|
63
|
-
function createExporter(exports2, previous) {
|
|
64
|
-
if (exports2 !== root) {
|
|
65
|
-
if (typeof Object.create === "function") {
|
|
66
|
-
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
67
|
-
} else {
|
|
68
|
-
exports2.__esModule = true;
|
|
69
|
-
}
|
|
70
|
-
}
|
|
71
|
-
return function(id, v) {
|
|
72
|
-
return exports2[id] = previous ? previous(id, v) : v;
|
|
73
|
-
};
|
|
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];
|
|
74
29
|
}
|
|
75
|
-
}
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
} || function(d, b) {
|
|
79
|
-
for (var p in b)
|
|
80
|
-
if (Object.prototype.hasOwnProperty.call(b, p))
|
|
81
|
-
d[p] = b[p];
|
|
82
|
-
};
|
|
83
|
-
__extends2 = function(d, b) {
|
|
84
|
-
if (typeof b !== "function" && b !== null)
|
|
85
|
-
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
86
|
-
extendStatics(d, b);
|
|
87
|
-
function __() {
|
|
88
|
-
this.constructor = d;
|
|
89
|
-
}
|
|
90
|
-
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
91
|
-
};
|
|
92
|
-
__assign2 = Object.assign || function(t) {
|
|
93
|
-
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
94
|
-
s = arguments[i];
|
|
95
|
-
for (var p in s)
|
|
96
|
-
if (Object.prototype.hasOwnProperty.call(s, p))
|
|
97
|
-
t[p] = s[p];
|
|
98
|
-
}
|
|
99
|
-
return t;
|
|
100
|
-
};
|
|
101
|
-
__rest2 = function(s, e) {
|
|
102
|
-
var t = {};
|
|
103
|
-
for (var p in s)
|
|
104
|
-
if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
105
|
-
t[p] = s[p];
|
|
106
|
-
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
107
|
-
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
108
|
-
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
109
|
-
t[p[i]] = s[p[i]];
|
|
110
|
-
}
|
|
111
|
-
return t;
|
|
112
|
-
};
|
|
113
|
-
__decorate2 = function(decorators, target, key, desc) {
|
|
114
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
115
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
|
|
116
|
-
r = Reflect.decorate(decorators, target, key, desc);
|
|
117
|
-
else
|
|
118
|
-
for (var i = decorators.length - 1; i >= 0; i--)
|
|
119
|
-
if (d = decorators[i])
|
|
120
|
-
r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
121
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
122
|
-
};
|
|
123
|
-
__param2 = function(paramIndex, decorator) {
|
|
124
|
-
return function(target, key) {
|
|
125
|
-
decorator(target, key, paramIndex);
|
|
126
|
-
};
|
|
127
|
-
};
|
|
128
|
-
__metadata2 = function(metadataKey, metadataValue) {
|
|
129
|
-
if (typeof Reflect === "object" && typeof Reflect.metadata === "function")
|
|
130
|
-
return Reflect.metadata(metadataKey, metadataValue);
|
|
131
|
-
};
|
|
132
|
-
__awaiter2 = function(thisArg, _arguments, P, generator) {
|
|
133
|
-
function adopt(value) {
|
|
134
|
-
return value instanceof P ? value : new P(function(resolve) {
|
|
135
|
-
resolve(value);
|
|
136
|
-
});
|
|
137
|
-
}
|
|
138
|
-
return new (P || (P = Promise))(function(resolve, reject) {
|
|
139
|
-
function fulfilled(value) {
|
|
140
|
-
try {
|
|
141
|
-
step(generator.next(value));
|
|
142
|
-
} catch (e) {
|
|
143
|
-
reject(e);
|
|
144
|
-
}
|
|
145
|
-
}
|
|
146
|
-
function rejected(value) {
|
|
147
|
-
try {
|
|
148
|
-
step(generator["throw"](value));
|
|
149
|
-
} catch (e) {
|
|
150
|
-
reject(e);
|
|
151
|
-
}
|
|
152
|
-
}
|
|
153
|
-
function step(result) {
|
|
154
|
-
result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected);
|
|
155
|
-
}
|
|
156
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
157
|
-
});
|
|
158
|
-
};
|
|
159
|
-
__generator2 = function(thisArg, body) {
|
|
160
|
-
var _ = { label: 0, sent: function() {
|
|
161
|
-
if (t[0] & 1)
|
|
162
|
-
throw t[1];
|
|
163
|
-
return t[1];
|
|
164
|
-
}, trys: [], ops: [] }, f, y, t, g;
|
|
165
|
-
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() {
|
|
166
|
-
return this;
|
|
167
|
-
}), g;
|
|
168
|
-
function verb(n) {
|
|
169
|
-
return function(v) {
|
|
170
|
-
return step([n, v]);
|
|
171
|
-
};
|
|
172
|
-
}
|
|
173
|
-
function step(op) {
|
|
174
|
-
if (f)
|
|
175
|
-
throw new TypeError("Generator is already executing.");
|
|
176
|
-
while (_)
|
|
177
|
-
try {
|
|
178
|
-
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done)
|
|
179
|
-
return t;
|
|
180
|
-
if (y = 0, t)
|
|
181
|
-
op = [op[0] & 2, t.value];
|
|
182
|
-
switch (op[0]) {
|
|
183
|
-
case 0:
|
|
184
|
-
case 1:
|
|
185
|
-
t = op;
|
|
186
|
-
break;
|
|
187
|
-
case 4:
|
|
188
|
-
_.label++;
|
|
189
|
-
return { value: op[1], done: false };
|
|
190
|
-
case 5:
|
|
191
|
-
_.label++;
|
|
192
|
-
y = op[1];
|
|
193
|
-
op = [0];
|
|
194
|
-
continue;
|
|
195
|
-
case 7:
|
|
196
|
-
op = _.ops.pop();
|
|
197
|
-
_.trys.pop();
|
|
198
|
-
continue;
|
|
199
|
-
default:
|
|
200
|
-
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) {
|
|
201
|
-
_ = 0;
|
|
202
|
-
continue;
|
|
203
|
-
}
|
|
204
|
-
if (op[0] === 3 && (!t || op[1] > t[0] && op[1] < t[3])) {
|
|
205
|
-
_.label = op[1];
|
|
206
|
-
break;
|
|
207
|
-
}
|
|
208
|
-
if (op[0] === 6 && _.label < t[1]) {
|
|
209
|
-
_.label = t[1];
|
|
210
|
-
t = op;
|
|
211
|
-
break;
|
|
212
|
-
}
|
|
213
|
-
if (t && _.label < t[2]) {
|
|
214
|
-
_.label = t[2];
|
|
215
|
-
_.ops.push(op);
|
|
216
|
-
break;
|
|
217
|
-
}
|
|
218
|
-
if (t[2])
|
|
219
|
-
_.ops.pop();
|
|
220
|
-
_.trys.pop();
|
|
221
|
-
continue;
|
|
222
|
-
}
|
|
223
|
-
op = body.call(thisArg, _);
|
|
224
|
-
} catch (e) {
|
|
225
|
-
op = [6, e];
|
|
226
|
-
y = 0;
|
|
227
|
-
} finally {
|
|
228
|
-
f = t = 0;
|
|
229
|
-
}
|
|
230
|
-
if (op[0] & 5)
|
|
231
|
-
throw op[1];
|
|
232
|
-
return { value: op[0] ? op[1] : void 0, done: true };
|
|
233
|
-
}
|
|
234
|
-
};
|
|
235
|
-
__exportStar2 = function(m, o) {
|
|
236
|
-
for (var p in m)
|
|
237
|
-
if (p !== "default" && !Object.prototype.hasOwnProperty.call(o, p))
|
|
238
|
-
__createBinding2(o, m, p);
|
|
239
|
-
};
|
|
240
|
-
__createBinding2 = Object.create ? function(o, m, k, k2) {
|
|
241
|
-
if (k2 === void 0)
|
|
242
|
-
k2 = k;
|
|
243
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
244
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
245
|
-
desc = { enumerable: true, get: function() {
|
|
246
|
-
return m[k];
|
|
247
|
-
} };
|
|
248
|
-
}
|
|
249
|
-
Object.defineProperty(o, k2, desc);
|
|
250
|
-
} : function(o, m, k, k2) {
|
|
251
|
-
if (k2 === void 0)
|
|
252
|
-
k2 = k;
|
|
253
|
-
o[k2] = m[k];
|
|
254
|
-
};
|
|
255
|
-
__values2 = function(o) {
|
|
256
|
-
var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
|
|
257
|
-
if (m)
|
|
258
|
-
return m.call(o);
|
|
259
|
-
if (o && typeof o.length === "number")
|
|
260
|
-
return {
|
|
261
|
-
next: function() {
|
|
262
|
-
if (o && i >= o.length)
|
|
263
|
-
o = void 0;
|
|
264
|
-
return { value: o && o[i++], done: !o };
|
|
265
|
-
}
|
|
266
|
-
};
|
|
267
|
-
throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
|
268
|
-
};
|
|
269
|
-
__read2 = function(o, n) {
|
|
270
|
-
var m = typeof Symbol === "function" && o[Symbol.iterator];
|
|
271
|
-
if (!m)
|
|
272
|
-
return o;
|
|
273
|
-
var i = m.call(o), r, ar = [], e;
|
|
274
|
-
try {
|
|
275
|
-
while ((n === void 0 || n-- > 0) && !(r = i.next()).done)
|
|
276
|
-
ar.push(r.value);
|
|
277
|
-
} catch (error) {
|
|
278
|
-
e = { error };
|
|
279
|
-
} finally {
|
|
280
|
-
try {
|
|
281
|
-
if (r && !r.done && (m = i["return"]))
|
|
282
|
-
m.call(i);
|
|
283
|
-
} finally {
|
|
284
|
-
if (e)
|
|
285
|
-
throw e.error;
|
|
286
|
-
}
|
|
287
|
-
}
|
|
288
|
-
return ar;
|
|
289
|
-
};
|
|
290
|
-
__spread2 = function() {
|
|
291
|
-
for (var ar = [], i = 0; i < arguments.length; i++)
|
|
292
|
-
ar = ar.concat(__read2(arguments[i]));
|
|
293
|
-
return ar;
|
|
294
|
-
};
|
|
295
|
-
__spreadArrays2 = function() {
|
|
296
|
-
for (var s = 0, i = 0, il = arguments.length; i < il; i++)
|
|
297
|
-
s += arguments[i].length;
|
|
298
|
-
for (var r = Array(s), k = 0, i = 0; i < il; i++)
|
|
299
|
-
for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)
|
|
300
|
-
r[k] = a[j];
|
|
301
|
-
return r;
|
|
302
|
-
};
|
|
303
|
-
__spreadArray2 = function(to, from, pack) {
|
|
304
|
-
if (pack || arguments.length === 2)
|
|
305
|
-
for (var i = 0, l = from.length, ar; i < l; i++) {
|
|
306
|
-
if (ar || !(i in from)) {
|
|
307
|
-
if (!ar)
|
|
308
|
-
ar = Array.prototype.slice.call(from, 0, i);
|
|
309
|
-
ar[i] = from[i];
|
|
310
|
-
}
|
|
311
|
-
}
|
|
312
|
-
return to.concat(ar || Array.prototype.slice.call(from));
|
|
313
|
-
};
|
|
314
|
-
__await2 = function(v) {
|
|
315
|
-
return this instanceof __await2 ? (this.v = v, this) : new __await2(v);
|
|
316
|
-
};
|
|
317
|
-
__asyncGenerator2 = function(thisArg, _arguments, generator) {
|
|
318
|
-
if (!Symbol.asyncIterator)
|
|
319
|
-
throw new TypeError("Symbol.asyncIterator is not defined.");
|
|
320
|
-
var g = generator.apply(thisArg, _arguments || []), i, q = [];
|
|
321
|
-
return i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function() {
|
|
322
|
-
return this;
|
|
323
|
-
}, i;
|
|
324
|
-
function verb(n) {
|
|
325
|
-
if (g[n])
|
|
326
|
-
i[n] = function(v) {
|
|
327
|
-
return new Promise(function(a, b) {
|
|
328
|
-
q.push([n, v, a, b]) > 1 || resume(n, v);
|
|
329
|
-
});
|
|
330
|
-
};
|
|
331
|
-
}
|
|
332
|
-
function resume(n, v) {
|
|
333
|
-
try {
|
|
334
|
-
step(g[n](v));
|
|
335
|
-
} catch (e) {
|
|
336
|
-
settle(q[0][3], e);
|
|
337
|
-
}
|
|
338
|
-
}
|
|
339
|
-
function step(r) {
|
|
340
|
-
r.value instanceof __await2 ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r);
|
|
341
|
-
}
|
|
342
|
-
function fulfill(value) {
|
|
343
|
-
resume("next", value);
|
|
344
|
-
}
|
|
345
|
-
function reject(value) {
|
|
346
|
-
resume("throw", value);
|
|
347
|
-
}
|
|
348
|
-
function settle(f, v) {
|
|
349
|
-
if (f(v), q.shift(), q.length)
|
|
350
|
-
resume(q[0][0], q[0][1]);
|
|
351
|
-
}
|
|
352
|
-
};
|
|
353
|
-
__asyncDelegator2 = function(o) {
|
|
354
|
-
var i, p;
|
|
355
|
-
return i = {}, verb("next"), verb("throw", function(e) {
|
|
356
|
-
throw e;
|
|
357
|
-
}), verb("return"), i[Symbol.iterator] = function() {
|
|
358
|
-
return this;
|
|
359
|
-
}, i;
|
|
360
|
-
function verb(n, f) {
|
|
361
|
-
i[n] = o[n] ? function(v) {
|
|
362
|
-
return (p = !p) ? { value: __await2(o[n](v)), done: n === "return" } : f ? f(v) : v;
|
|
363
|
-
} : f;
|
|
364
|
-
}
|
|
365
|
-
};
|
|
366
|
-
__asyncValues2 = function(o) {
|
|
367
|
-
if (!Symbol.asyncIterator)
|
|
368
|
-
throw new TypeError("Symbol.asyncIterator is not defined.");
|
|
369
|
-
var m = o[Symbol.asyncIterator], i;
|
|
370
|
-
return m ? m.call(o) : (o = typeof __values2 === "function" ? __values2(o) : o[Symbol.iterator](), i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function() {
|
|
371
|
-
return this;
|
|
372
|
-
}, i);
|
|
373
|
-
function verb(n) {
|
|
374
|
-
i[n] = o[n] && function(v) {
|
|
375
|
-
return new Promise(function(resolve, reject) {
|
|
376
|
-
v = o[n](v), settle(resolve, reject, v.done, v.value);
|
|
377
|
-
});
|
|
378
|
-
};
|
|
379
|
-
}
|
|
380
|
-
function settle(resolve, reject, d, v) {
|
|
381
|
-
Promise.resolve(v).then(function(v2) {
|
|
382
|
-
resolve({ value: v2, done: d });
|
|
383
|
-
}, reject);
|
|
384
|
-
}
|
|
385
|
-
};
|
|
386
|
-
__makeTemplateObject2 = function(cooked, raw) {
|
|
387
|
-
if (Object.defineProperty) {
|
|
388
|
-
Object.defineProperty(cooked, "raw", { value: raw });
|
|
389
|
-
} else {
|
|
390
|
-
cooked.raw = raw;
|
|
391
|
-
}
|
|
392
|
-
return cooked;
|
|
393
|
-
};
|
|
394
|
-
var __setModuleDefault = Object.create ? function(o, v) {
|
|
395
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
396
|
-
} : function(o, v) {
|
|
397
|
-
o["default"] = v;
|
|
398
|
-
};
|
|
399
|
-
__importStar2 = function(mod) {
|
|
400
|
-
if (mod && mod.__esModule)
|
|
401
|
-
return mod;
|
|
402
|
-
var result = {};
|
|
403
|
-
if (mod != null) {
|
|
404
|
-
for (var k in mod)
|
|
405
|
-
if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k))
|
|
406
|
-
__createBinding2(result, mod, k);
|
|
407
|
-
}
|
|
408
|
-
__setModuleDefault(result, mod);
|
|
409
|
-
return result;
|
|
410
|
-
};
|
|
411
|
-
__importDefault2 = function(mod) {
|
|
412
|
-
return mod && mod.__esModule ? mod : { "default": mod };
|
|
413
|
-
};
|
|
414
|
-
__classPrivateFieldGet2 = function(receiver, state, kind, f) {
|
|
415
|
-
if (kind === "a" && !f)
|
|
416
|
-
throw new TypeError("Private accessor was defined without a getter");
|
|
417
|
-
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver))
|
|
418
|
-
throw new TypeError("Cannot read private member from an object whose class did not declare it");
|
|
419
|
-
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
|
|
420
|
-
};
|
|
421
|
-
__classPrivateFieldSet2 = function(receiver, state, value, kind, f) {
|
|
422
|
-
if (kind === "m")
|
|
423
|
-
throw new TypeError("Private method is not writable");
|
|
424
|
-
if (kind === "a" && !f)
|
|
425
|
-
throw new TypeError("Private accessor was defined without a setter");
|
|
426
|
-
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver))
|
|
427
|
-
throw new TypeError("Cannot write private member to an object whose class did not declare it");
|
|
428
|
-
return kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value), value;
|
|
429
|
-
};
|
|
430
|
-
__classPrivateFieldIn2 = function(state, receiver) {
|
|
431
|
-
if (receiver === null || typeof receiver !== "object" && typeof receiver !== "function")
|
|
432
|
-
throw new TypeError("Cannot use 'in' operator on non-object");
|
|
433
|
-
return typeof state === "function" ? receiver === state : state.has(receiver);
|
|
434
|
-
};
|
|
435
|
-
exporter("__extends", __extends2);
|
|
436
|
-
exporter("__assign", __assign2);
|
|
437
|
-
exporter("__rest", __rest2);
|
|
438
|
-
exporter("__decorate", __decorate2);
|
|
439
|
-
exporter("__param", __param2);
|
|
440
|
-
exporter("__metadata", __metadata2);
|
|
441
|
-
exporter("__awaiter", __awaiter2);
|
|
442
|
-
exporter("__generator", __generator2);
|
|
443
|
-
exporter("__exportStar", __exportStar2);
|
|
444
|
-
exporter("__createBinding", __createBinding2);
|
|
445
|
-
exporter("__values", __values2);
|
|
446
|
-
exporter("__read", __read2);
|
|
447
|
-
exporter("__spread", __spread2);
|
|
448
|
-
exporter("__spreadArrays", __spreadArrays2);
|
|
449
|
-
exporter("__spreadArray", __spreadArray2);
|
|
450
|
-
exporter("__await", __await2);
|
|
451
|
-
exporter("__asyncGenerator", __asyncGenerator2);
|
|
452
|
-
exporter("__asyncDelegator", __asyncDelegator2);
|
|
453
|
-
exporter("__asyncValues", __asyncValues2);
|
|
454
|
-
exporter("__makeTemplateObject", __makeTemplateObject2);
|
|
455
|
-
exporter("__importStar", __importStar2);
|
|
456
|
-
exporter("__importDefault", __importDefault2);
|
|
457
|
-
exporter("__classPrivateFieldGet", __classPrivateFieldGet2);
|
|
458
|
-
exporter("__classPrivateFieldSet", __classPrivateFieldSet2);
|
|
459
|
-
exporter("__classPrivateFieldIn", __classPrivateFieldIn2);
|
|
460
|
-
});
|
|
461
|
-
}
|
|
462
|
-
});
|
|
463
|
-
|
|
464
|
-
// ../../../../../../../../execroot/formatjs/bazel-out/darwin-fastbuild/bin/node_modules/.aspect_rules_js/tslib@2.4.0/node_modules/tslib/modules/index.js
|
|
465
|
-
var import_tslib = __toESM(require_tslib(), 1);
|
|
466
|
-
var {
|
|
467
|
-
__extends,
|
|
468
|
-
__assign,
|
|
469
|
-
__rest,
|
|
470
|
-
__decorate,
|
|
471
|
-
__param,
|
|
472
|
-
__metadata,
|
|
473
|
-
__awaiter,
|
|
474
|
-
__generator,
|
|
475
|
-
__exportStar,
|
|
476
|
-
__createBinding,
|
|
477
|
-
__values,
|
|
478
|
-
__read,
|
|
479
|
-
__spread,
|
|
480
|
-
__spreadArrays,
|
|
481
|
-
__spreadArray,
|
|
482
|
-
__await,
|
|
483
|
-
__asyncGenerator,
|
|
484
|
-
__asyncDelegator,
|
|
485
|
-
__asyncValues,
|
|
486
|
-
__makeTemplateObject,
|
|
487
|
-
__importStar,
|
|
488
|
-
__importDefault,
|
|
489
|
-
__classPrivateFieldGet,
|
|
490
|
-
__classPrivateFieldSet,
|
|
491
|
-
__classPrivateFieldIn
|
|
492
|
-
} = import_tslib.default;
|
|
30
|
+
}
|
|
31
|
+
return to.concat(ar || Array.prototype.slice.call(from));
|
|
32
|
+
}
|
|
493
33
|
|
|
494
34
|
// ../../../../../../../../execroot/formatjs/bazel-out/darwin-fastbuild/bin/node_modules/.aspect_rules_js/@formatjs+ecma402-abstract@0.0.0/node_modules/@formatjs/ecma402-abstract/lib/CanonicalizeLocaleList.js
|
|
495
35
|
function CanonicalizeLocaleList(locales) {
|
|
@@ -1147,15 +687,18 @@
|
|
|
1147
687
|
}
|
|
1148
688
|
|
|
1149
689
|
// ../../../../../../../../execroot/formatjs/bazel-out/darwin-fastbuild/bin/node_modules/.aspect_rules_js/@formatjs+ecma402-abstract@0.0.0/node_modules/@formatjs/ecma402-abstract/lib/data.js
|
|
1150
|
-
var MissingLocaleDataError =
|
|
1151
|
-
|
|
1152
|
-
function
|
|
1153
|
-
|
|
1154
|
-
|
|
1155
|
-
|
|
1156
|
-
|
|
1157
|
-
|
|
1158
|
-
|
|
690
|
+
var MissingLocaleDataError = (
|
|
691
|
+
/** @class */
|
|
692
|
+
function(_super) {
|
|
693
|
+
__extends(MissingLocaleDataError2, _super);
|
|
694
|
+
function MissingLocaleDataError2() {
|
|
695
|
+
var _this = _super !== null && _super.apply(this, arguments) || this;
|
|
696
|
+
_this.type = "MISSING_LOCALE_DATA";
|
|
697
|
+
return _this;
|
|
698
|
+
}
|
|
699
|
+
return MissingLocaleDataError2;
|
|
700
|
+
}(Error)
|
|
701
|
+
);
|
|
1159
702
|
|
|
1160
703
|
// ../../../../../../../../execroot/formatjs/bazel-out/darwin-fastbuild/bin/node_modules/.aspect_rules_js/@formatjs+ecma402-abstract@0.0.0/node_modules/@formatjs/ecma402-abstract/lib/types/date-time.js
|
|
1161
704
|
var RangePatternType;
|
|
@@ -1261,77 +804,80 @@
|
|
|
1261
804
|
var IntegerDigits = _a.IntegerDigits, NumberOfFractionDigits = _a.NumberOfFractionDigits, FractionDigits = _a.FractionDigits;
|
|
1262
805
|
return PluralRules.localeData[locale].fn(NumberOfFractionDigits ? "".concat(IntegerDigits, ".").concat(FractionDigits) : IntegerDigits, type === "ordinal");
|
|
1263
806
|
}
|
|
1264
|
-
var PluralRules =
|
|
1265
|
-
|
|
1266
|
-
|
|
1267
|
-
|
|
1268
|
-
|
|
1269
|
-
|
|
1270
|
-
|
|
1271
|
-
availableLocales: PluralRules2.availableLocales,
|
|
1272
|
-
relevantExtensionKeys: PluralRules2.relevantExtensionKeys,
|
|
1273
|
-
localeData: PluralRules2.localeData,
|
|
1274
|
-
getDefaultLocale: PluralRules2.getDefaultLocale,
|
|
1275
|
-
getInternalSlots
|
|
1276
|
-
});
|
|
1277
|
-
}
|
|
1278
|
-
PluralRules2.prototype.resolvedOptions = function() {
|
|
1279
|
-
validateInstance(this, "resolvedOptions");
|
|
1280
|
-
var opts = /* @__PURE__ */ Object.create(null);
|
|
1281
|
-
var internalSlots = getInternalSlots(this);
|
|
1282
|
-
opts.locale = internalSlots.locale;
|
|
1283
|
-
opts.type = internalSlots.type;
|
|
1284
|
-
[
|
|
1285
|
-
"minimumIntegerDigits",
|
|
1286
|
-
"minimumFractionDigits",
|
|
1287
|
-
"maximumFractionDigits",
|
|
1288
|
-
"minimumSignificantDigits",
|
|
1289
|
-
"maximumSignificantDigits"
|
|
1290
|
-
].forEach(function(field) {
|
|
1291
|
-
var val = internalSlots[field];
|
|
1292
|
-
if (val !== void 0) {
|
|
1293
|
-
opts[field] = val;
|
|
807
|
+
var PluralRules = (
|
|
808
|
+
/** @class */
|
|
809
|
+
function() {
|
|
810
|
+
function PluralRules2(locales, options) {
|
|
811
|
+
var newTarget = this && this instanceof PluralRules2 ? this.constructor : void 0;
|
|
812
|
+
if (!newTarget) {
|
|
813
|
+
throw new TypeError("Intl.PluralRules must be called with 'new'");
|
|
1294
814
|
}
|
|
1295
|
-
|
|
1296
|
-
|
|
1297
|
-
|
|
1298
|
-
|
|
1299
|
-
|
|
1300
|
-
|
|
1301
|
-
|
|
1302
|
-
var n = ToNumber(val);
|
|
1303
|
-
return ResolvePlural(pr, n, { getInternalSlots, PluralRuleSelect });
|
|
1304
|
-
};
|
|
1305
|
-
PluralRules2.prototype.toString = function() {
|
|
1306
|
-
return "[object Intl.PluralRules]";
|
|
1307
|
-
};
|
|
1308
|
-
PluralRules2.supportedLocalesOf = function(locales, options) {
|
|
1309
|
-
return SupportedLocales(PluralRules2.availableLocales, CanonicalizeLocaleList(locales), options);
|
|
1310
|
-
};
|
|
1311
|
-
PluralRules2.__addLocaleData = function() {
|
|
1312
|
-
var data = [];
|
|
1313
|
-
for (var _i = 0; _i < arguments.length; _i++) {
|
|
1314
|
-
data[_i] = arguments[_i];
|
|
815
|
+
return InitializePluralRules(this, locales, options, {
|
|
816
|
+
availableLocales: PluralRules2.availableLocales,
|
|
817
|
+
relevantExtensionKeys: PluralRules2.relevantExtensionKeys,
|
|
818
|
+
localeData: PluralRules2.localeData,
|
|
819
|
+
getDefaultLocale: PluralRules2.getDefaultLocale,
|
|
820
|
+
getInternalSlots
|
|
821
|
+
});
|
|
1315
822
|
}
|
|
1316
|
-
|
|
1317
|
-
|
|
1318
|
-
|
|
1319
|
-
|
|
1320
|
-
|
|
1321
|
-
|
|
823
|
+
PluralRules2.prototype.resolvedOptions = function() {
|
|
824
|
+
validateInstance(this, "resolvedOptions");
|
|
825
|
+
var opts = /* @__PURE__ */ Object.create(null);
|
|
826
|
+
var internalSlots = getInternalSlots(this);
|
|
827
|
+
opts.locale = internalSlots.locale;
|
|
828
|
+
opts.type = internalSlots.type;
|
|
829
|
+
[
|
|
830
|
+
"minimumIntegerDigits",
|
|
831
|
+
"minimumFractionDigits",
|
|
832
|
+
"maximumFractionDigits",
|
|
833
|
+
"minimumSignificantDigits",
|
|
834
|
+
"maximumSignificantDigits"
|
|
835
|
+
].forEach(function(field) {
|
|
836
|
+
var val = internalSlots[field];
|
|
837
|
+
if (val !== void 0) {
|
|
838
|
+
opts[field] = val;
|
|
839
|
+
}
|
|
840
|
+
});
|
|
841
|
+
opts.pluralCategories = __spreadArray([], PluralRules2.localeData[opts.locale].categories[opts.type], true);
|
|
842
|
+
return opts;
|
|
843
|
+
};
|
|
844
|
+
PluralRules2.prototype.select = function(val) {
|
|
845
|
+
var pr = this;
|
|
846
|
+
validateInstance(pr, "select");
|
|
847
|
+
var n = ToNumber(val);
|
|
848
|
+
return ResolvePlural(pr, n, { getInternalSlots, PluralRuleSelect });
|
|
849
|
+
};
|
|
850
|
+
PluralRules2.prototype.toString = function() {
|
|
851
|
+
return "[object Intl.PluralRules]";
|
|
852
|
+
};
|
|
853
|
+
PluralRules2.supportedLocalesOf = function(locales, options) {
|
|
854
|
+
return SupportedLocales(PluralRules2.availableLocales, CanonicalizeLocaleList(locales), options);
|
|
855
|
+
};
|
|
856
|
+
PluralRules2.__addLocaleData = function() {
|
|
857
|
+
var data = [];
|
|
858
|
+
for (var _i = 0; _i < arguments.length; _i++) {
|
|
859
|
+
data[_i] = arguments[_i];
|
|
1322
860
|
}
|
|
1323
|
-
|
|
1324
|
-
|
|
1325
|
-
|
|
1326
|
-
|
|
1327
|
-
|
|
1328
|
-
|
|
1329
|
-
|
|
1330
|
-
|
|
1331
|
-
|
|
1332
|
-
|
|
1333
|
-
|
|
1334
|
-
|
|
861
|
+
for (var _a = 0, data_1 = data; _a < data_1.length; _a++) {
|
|
862
|
+
var _b = data_1[_a], d = _b.data, locale = _b.locale;
|
|
863
|
+
PluralRules2.localeData[locale] = d;
|
|
864
|
+
PluralRules2.availableLocales.add(locale);
|
|
865
|
+
if (!PluralRules2.__defaultLocale) {
|
|
866
|
+
PluralRules2.__defaultLocale = locale;
|
|
867
|
+
}
|
|
868
|
+
}
|
|
869
|
+
};
|
|
870
|
+
PluralRules2.getDefaultLocale = function() {
|
|
871
|
+
return PluralRules2.__defaultLocale;
|
|
872
|
+
};
|
|
873
|
+
PluralRules2.localeData = {};
|
|
874
|
+
PluralRules2.availableLocales = /* @__PURE__ */ new Set();
|
|
875
|
+
PluralRules2.__defaultLocale = "";
|
|
876
|
+
PluralRules2.relevantExtensionKeys = [];
|
|
877
|
+
PluralRules2.polyfilled = true;
|
|
878
|
+
return PluralRules2;
|
|
879
|
+
}()
|
|
880
|
+
);
|
|
1335
881
|
try {
|
|
1336
882
|
if (typeof Symbol !== "undefined") {
|
|
1337
883
|
Object.defineProperty(PluralRules.prototype, Symbol.toStringTag, {
|