@kong-ui-public/i18n 2.3.1-pr.2196.4ae50c01a.0 → 2.3.2-pr.2030.0e42f58dc.0
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/package.json +1 -1
- package/dist/i18n.es.js +0 -3469
- package/dist/i18n.umd.js +0 -22
- package/dist/types/Translation.d.ts +0 -39
- package/dist/types/Translation.d.ts.map +0 -1
- package/dist/types/i18n.d.ts +0 -13
- package/dist/types/i18n.d.ts.map +0 -1
- package/dist/types/index.d.ts +0 -4
- package/dist/types/index.d.ts.map +0 -1
- package/dist/types/types/index.d.ts +0 -21
- package/dist/types/types/index.d.ts.map +0 -1
package/dist/i18n.es.js
DELETED
|
@@ -1,3469 +0,0 @@
|
|
|
1
|
-
import { defineComponent as Ue, h as Ve } from "vue";
|
|
2
|
-
var z = function(e, t) {
|
|
3
|
-
return z = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
|
|
4
|
-
r.__proto__ = n;
|
|
5
|
-
} || function(r, n) {
|
|
6
|
-
for (var a in n) Object.prototype.hasOwnProperty.call(n, a) && (r[a] = n[a]);
|
|
7
|
-
}, z(e, t);
|
|
8
|
-
};
|
|
9
|
-
function _(e, t) {
|
|
10
|
-
if (typeof t != "function" && t !== null)
|
|
11
|
-
throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
|
|
12
|
-
z(e, t);
|
|
13
|
-
function r() {
|
|
14
|
-
this.constructor = e;
|
|
15
|
-
}
|
|
16
|
-
e.prototype = t === null ? Object.create(t) : (r.prototype = t.prototype, new r());
|
|
17
|
-
}
|
|
18
|
-
var f = function() {
|
|
19
|
-
return f = Object.assign || function(t) {
|
|
20
|
-
for (var r, n = 1, a = arguments.length; n < a; n++) {
|
|
21
|
-
r = arguments[n];
|
|
22
|
-
for (var i in r) Object.prototype.hasOwnProperty.call(r, i) && (t[i] = r[i]);
|
|
23
|
-
}
|
|
24
|
-
return t;
|
|
25
|
-
}, f.apply(this, arguments);
|
|
26
|
-
};
|
|
27
|
-
function ke(e, t) {
|
|
28
|
-
var r = {};
|
|
29
|
-
for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
30
|
-
if (e != null && typeof Object.getOwnPropertySymbols == "function")
|
|
31
|
-
for (var a = 0, n = Object.getOwnPropertySymbols(e); a < n.length; a++)
|
|
32
|
-
t.indexOf(n[a]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[a]) && (r[n[a]] = e[n[a]]);
|
|
33
|
-
return r;
|
|
34
|
-
}
|
|
35
|
-
function A(e, t, r) {
|
|
36
|
-
if (r || arguments.length === 2) for (var n = 0, a = t.length, i; n < a; n++)
|
|
37
|
-
(i || !(n in t)) && (i || (i = Array.prototype.slice.call(t, 0, n)), i[n] = t[n]);
|
|
38
|
-
return e.concat(i || Array.prototype.slice.call(t));
|
|
39
|
-
}
|
|
40
|
-
function I(e, t) {
|
|
41
|
-
var r = t && t.cache ? t.cache : Je, n = t && t.serializer ? t.serializer : ze, a = t && t.strategy ? t.strategy : Xe;
|
|
42
|
-
return a(e, {
|
|
43
|
-
cache: r,
|
|
44
|
-
serializer: n
|
|
45
|
-
});
|
|
46
|
-
}
|
|
47
|
-
function je(e) {
|
|
48
|
-
return e == null || typeof e == "number" || typeof e == "boolean";
|
|
49
|
-
}
|
|
50
|
-
function Ee(e, t, r, n) {
|
|
51
|
-
var a = je(n) ? n : r(n), i = t.get(a);
|
|
52
|
-
return typeof i > "u" && (i = e.call(this, n), t.set(a, i)), i;
|
|
53
|
-
}
|
|
54
|
-
function be(e, t, r) {
|
|
55
|
-
var n = Array.prototype.slice.call(arguments, 3), a = r(n), i = t.get(a);
|
|
56
|
-
return typeof i > "u" && (i = e.apply(this, n), t.set(a, i)), i;
|
|
57
|
-
}
|
|
58
|
-
function ee(e, t, r, n, a) {
|
|
59
|
-
return r.bind(t, e, n, a);
|
|
60
|
-
}
|
|
61
|
-
function Xe(e, t) {
|
|
62
|
-
var r = e.length === 1 ? Ee : be;
|
|
63
|
-
return ee(e, this, r, t.cache.create(), t.serializer);
|
|
64
|
-
}
|
|
65
|
-
function We(e, t) {
|
|
66
|
-
return ee(e, this, be, t.cache.create(), t.serializer);
|
|
67
|
-
}
|
|
68
|
-
function Ze(e, t) {
|
|
69
|
-
return ee(e, this, Ee, t.cache.create(), t.serializer);
|
|
70
|
-
}
|
|
71
|
-
var ze = function() {
|
|
72
|
-
return JSON.stringify(arguments);
|
|
73
|
-
};
|
|
74
|
-
function te() {
|
|
75
|
-
this.cache = /* @__PURE__ */ Object.create(null);
|
|
76
|
-
}
|
|
77
|
-
te.prototype.get = function(e) {
|
|
78
|
-
return this.cache[e];
|
|
79
|
-
};
|
|
80
|
-
te.prototype.set = function(e, t) {
|
|
81
|
-
this.cache[e] = t;
|
|
82
|
-
};
|
|
83
|
-
var Je = {
|
|
84
|
-
create: function() {
|
|
85
|
-
return new te();
|
|
86
|
-
}
|
|
87
|
-
}, N = {
|
|
88
|
-
variadic: We,
|
|
89
|
-
monadic: Ze
|
|
90
|
-
}, g;
|
|
91
|
-
(function(e) {
|
|
92
|
-
e[e.EXPECT_ARGUMENT_CLOSING_BRACE = 1] = "EXPECT_ARGUMENT_CLOSING_BRACE", e[e.EMPTY_ARGUMENT = 2] = "EMPTY_ARGUMENT", e[e.MALFORMED_ARGUMENT = 3] = "MALFORMED_ARGUMENT", e[e.EXPECT_ARGUMENT_TYPE = 4] = "EXPECT_ARGUMENT_TYPE", e[e.INVALID_ARGUMENT_TYPE = 5] = "INVALID_ARGUMENT_TYPE", e[e.EXPECT_ARGUMENT_STYLE = 6] = "EXPECT_ARGUMENT_STYLE", e[e.INVALID_NUMBER_SKELETON = 7] = "INVALID_NUMBER_SKELETON", e[e.INVALID_DATE_TIME_SKELETON = 8] = "INVALID_DATE_TIME_SKELETON", e[e.EXPECT_NUMBER_SKELETON = 9] = "EXPECT_NUMBER_SKELETON", e[e.EXPECT_DATE_TIME_SKELETON = 10] = "EXPECT_DATE_TIME_SKELETON", e[e.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE = 11] = "UNCLOSED_QUOTE_IN_ARGUMENT_STYLE", e[e.EXPECT_SELECT_ARGUMENT_OPTIONS = 12] = "EXPECT_SELECT_ARGUMENT_OPTIONS", e[e.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE = 13] = "EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE", e[e.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE = 14] = "INVALID_PLURAL_ARGUMENT_OFFSET_VALUE", e[e.EXPECT_SELECT_ARGUMENT_SELECTOR = 15] = "EXPECT_SELECT_ARGUMENT_SELECTOR", e[e.EXPECT_PLURAL_ARGUMENT_SELECTOR = 16] = "EXPECT_PLURAL_ARGUMENT_SELECTOR", e[e.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT = 17] = "EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT", e[e.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT = 18] = "EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT", e[e.INVALID_PLURAL_ARGUMENT_SELECTOR = 19] = "INVALID_PLURAL_ARGUMENT_SELECTOR", e[e.DUPLICATE_PLURAL_ARGUMENT_SELECTOR = 20] = "DUPLICATE_PLURAL_ARGUMENT_SELECTOR", e[e.DUPLICATE_SELECT_ARGUMENT_SELECTOR = 21] = "DUPLICATE_SELECT_ARGUMENT_SELECTOR", e[e.MISSING_OTHER_CLAUSE = 22] = "MISSING_OTHER_CLAUSE", e[e.INVALID_TAG = 23] = "INVALID_TAG", e[e.INVALID_TAG_NAME = 25] = "INVALID_TAG_NAME", e[e.UNMATCHED_CLOSING_TAG = 26] = "UNMATCHED_CLOSING_TAG", e[e.UNCLOSED_TAG = 27] = "UNCLOSED_TAG";
|
|
93
|
-
})(g || (g = {}));
|
|
94
|
-
var y;
|
|
95
|
-
(function(e) {
|
|
96
|
-
e[e.literal = 0] = "literal", e[e.argument = 1] = "argument", e[e.number = 2] = "number", e[e.date = 3] = "date", e[e.time = 4] = "time", e[e.select = 5] = "select", e[e.plural = 6] = "plural", e[e.pound = 7] = "pound", e[e.tag = 8] = "tag";
|
|
97
|
-
})(y || (y = {}));
|
|
98
|
-
var D;
|
|
99
|
-
(function(e) {
|
|
100
|
-
e[e.number = 0] = "number", e[e.dateTime = 1] = "dateTime";
|
|
101
|
-
})(D || (D = {}));
|
|
102
|
-
function ae(e) {
|
|
103
|
-
return e.type === y.literal;
|
|
104
|
-
}
|
|
105
|
-
function qe(e) {
|
|
106
|
-
return e.type === y.argument;
|
|
107
|
-
}
|
|
108
|
-
function ye(e) {
|
|
109
|
-
return e.type === y.number;
|
|
110
|
-
}
|
|
111
|
-
function xe(e) {
|
|
112
|
-
return e.type === y.date;
|
|
113
|
-
}
|
|
114
|
-
function Te(e) {
|
|
115
|
-
return e.type === y.time;
|
|
116
|
-
}
|
|
117
|
-
function Se(e) {
|
|
118
|
-
return e.type === y.select;
|
|
119
|
-
}
|
|
120
|
-
function He(e) {
|
|
121
|
-
return e.type === y.plural;
|
|
122
|
-
}
|
|
123
|
-
function Qe(e) {
|
|
124
|
-
return e.type === y.pound;
|
|
125
|
-
}
|
|
126
|
-
function Ie(e) {
|
|
127
|
-
return e.type === y.tag;
|
|
128
|
-
}
|
|
129
|
-
function Ne(e) {
|
|
130
|
-
return !!(e && typeof e == "object" && e.type === D.number);
|
|
131
|
-
}
|
|
132
|
-
function J(e) {
|
|
133
|
-
return !!(e && typeof e == "object" && e.type === D.dateTime);
|
|
134
|
-
}
|
|
135
|
-
var Ae = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, Ye = /(?:[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;
|
|
136
|
-
function $e(e) {
|
|
137
|
-
var t = {};
|
|
138
|
-
return e.replace(Ye, function(r) {
|
|
139
|
-
var n = r.length;
|
|
140
|
-
switch (r[0]) {
|
|
141
|
-
case "G":
|
|
142
|
-
t.era = n === 4 ? "long" : n === 5 ? "narrow" : "short";
|
|
143
|
-
break;
|
|
144
|
-
case "y":
|
|
145
|
-
t.year = n === 2 ? "2-digit" : "numeric";
|
|
146
|
-
break;
|
|
147
|
-
case "Y":
|
|
148
|
-
case "u":
|
|
149
|
-
case "U":
|
|
150
|
-
case "r":
|
|
151
|
-
throw new RangeError("`Y/u/U/r` (year) patterns are not supported, use `y` instead");
|
|
152
|
-
case "q":
|
|
153
|
-
case "Q":
|
|
154
|
-
throw new RangeError("`q/Q` (quarter) patterns are not supported");
|
|
155
|
-
case "M":
|
|
156
|
-
case "L":
|
|
157
|
-
t.month = ["numeric", "2-digit", "short", "long", "narrow"][n - 1];
|
|
158
|
-
break;
|
|
159
|
-
case "w":
|
|
160
|
-
case "W":
|
|
161
|
-
throw new RangeError("`w/W` (week) patterns are not supported");
|
|
162
|
-
case "d":
|
|
163
|
-
t.day = ["numeric", "2-digit"][n - 1];
|
|
164
|
-
break;
|
|
165
|
-
case "D":
|
|
166
|
-
case "F":
|
|
167
|
-
case "g":
|
|
168
|
-
throw new RangeError("`D/F/g` (day) patterns are not supported, use `d` instead");
|
|
169
|
-
case "E":
|
|
170
|
-
t.weekday = n === 4 ? "long" : n === 5 ? "narrow" : "short";
|
|
171
|
-
break;
|
|
172
|
-
case "e":
|
|
173
|
-
if (n < 4)
|
|
174
|
-
throw new RangeError("`e..eee` (weekday) patterns are not supported");
|
|
175
|
-
t.weekday = ["short", "long", "narrow", "short"][n - 4];
|
|
176
|
-
break;
|
|
177
|
-
case "c":
|
|
178
|
-
if (n < 4)
|
|
179
|
-
throw new RangeError("`c..ccc` (weekday) patterns are not supported");
|
|
180
|
-
t.weekday = ["short", "long", "narrow", "short"][n - 4];
|
|
181
|
-
break;
|
|
182
|
-
case "a":
|
|
183
|
-
t.hour12 = !0;
|
|
184
|
-
break;
|
|
185
|
-
case "b":
|
|
186
|
-
case "B":
|
|
187
|
-
throw new RangeError("`b/B` (period) patterns are not supported, use `a` instead");
|
|
188
|
-
case "h":
|
|
189
|
-
t.hourCycle = "h12", t.hour = ["numeric", "2-digit"][n - 1];
|
|
190
|
-
break;
|
|
191
|
-
case "H":
|
|
192
|
-
t.hourCycle = "h23", t.hour = ["numeric", "2-digit"][n - 1];
|
|
193
|
-
break;
|
|
194
|
-
case "K":
|
|
195
|
-
t.hourCycle = "h11", t.hour = ["numeric", "2-digit"][n - 1];
|
|
196
|
-
break;
|
|
197
|
-
case "k":
|
|
198
|
-
t.hourCycle = "h24", t.hour = ["numeric", "2-digit"][n - 1];
|
|
199
|
-
break;
|
|
200
|
-
case "j":
|
|
201
|
-
case "J":
|
|
202
|
-
case "C":
|
|
203
|
-
throw new RangeError("`j/J/C` (hour) patterns are not supported, use `h/H/K/k` instead");
|
|
204
|
-
case "m":
|
|
205
|
-
t.minute = ["numeric", "2-digit"][n - 1];
|
|
206
|
-
break;
|
|
207
|
-
case "s":
|
|
208
|
-
t.second = ["numeric", "2-digit"][n - 1];
|
|
209
|
-
break;
|
|
210
|
-
case "S":
|
|
211
|
-
case "A":
|
|
212
|
-
throw new RangeError("`S/A` (second) patterns are not supported, use `s` instead");
|
|
213
|
-
case "z":
|
|
214
|
-
t.timeZoneName = n < 4 ? "short" : "long";
|
|
215
|
-
break;
|
|
216
|
-
case "Z":
|
|
217
|
-
case "O":
|
|
218
|
-
case "v":
|
|
219
|
-
case "V":
|
|
220
|
-
case "X":
|
|
221
|
-
case "x":
|
|
222
|
-
throw new RangeError("`Z/O/v/V/X/x` (timeZone) patterns are not supported, use `z` instead");
|
|
223
|
-
}
|
|
224
|
-
return "";
|
|
225
|
-
}), t;
|
|
226
|
-
}
|
|
227
|
-
var Ke = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
|
|
228
|
-
function et(e) {
|
|
229
|
-
if (e.length === 0)
|
|
230
|
-
throw new Error("Number skeleton cannot be empty");
|
|
231
|
-
for (var t = e.split(Ke).filter(function(c) {
|
|
232
|
-
return c.length > 0;
|
|
233
|
-
}), r = [], n = 0, a = t; n < a.length; n++) {
|
|
234
|
-
var i = a[n], o = i.split("/");
|
|
235
|
-
if (o.length === 0)
|
|
236
|
-
throw new Error("Invalid number skeleton");
|
|
237
|
-
for (var s = o[0], u = o.slice(1), l = 0, h = u; l < h.length; l++) {
|
|
238
|
-
var m = h[l];
|
|
239
|
-
if (m.length === 0)
|
|
240
|
-
throw new Error("Invalid number skeleton");
|
|
241
|
-
}
|
|
242
|
-
r.push({ stem: s, options: u });
|
|
243
|
-
}
|
|
244
|
-
return r;
|
|
245
|
-
}
|
|
246
|
-
function tt(e) {
|
|
247
|
-
return e.replace(/^(.*?)-/, "");
|
|
248
|
-
}
|
|
249
|
-
var ie = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, Be = /^(@+)?(\+|#+)?[rs]?$/g, rt = /(\*)(0+)|(#+)(0+)|(0+)/g, _e = /^(0+)$/;
|
|
250
|
-
function oe(e) {
|
|
251
|
-
var t = {};
|
|
252
|
-
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(Be, function(r, n, a) {
|
|
253
|
-
return typeof a != "string" ? (t.minimumSignificantDigits = n.length, t.maximumSignificantDigits = n.length) : a === "+" ? t.minimumSignificantDigits = n.length : n[0] === "#" ? t.maximumSignificantDigits = n.length : (t.minimumSignificantDigits = n.length, t.maximumSignificantDigits = n.length + (typeof a == "string" ? a.length : 0)), "";
|
|
254
|
-
}), t;
|
|
255
|
-
}
|
|
256
|
-
function Pe(e) {
|
|
257
|
-
switch (e) {
|
|
258
|
-
case "sign-auto":
|
|
259
|
-
return {
|
|
260
|
-
signDisplay: "auto"
|
|
261
|
-
};
|
|
262
|
-
case "sign-accounting":
|
|
263
|
-
case "()":
|
|
264
|
-
return {
|
|
265
|
-
currencySign: "accounting"
|
|
266
|
-
};
|
|
267
|
-
case "sign-always":
|
|
268
|
-
case "+!":
|
|
269
|
-
return {
|
|
270
|
-
signDisplay: "always"
|
|
271
|
-
};
|
|
272
|
-
case "sign-accounting-always":
|
|
273
|
-
case "()!":
|
|
274
|
-
return {
|
|
275
|
-
signDisplay: "always",
|
|
276
|
-
currencySign: "accounting"
|
|
277
|
-
};
|
|
278
|
-
case "sign-except-zero":
|
|
279
|
-
case "+?":
|
|
280
|
-
return {
|
|
281
|
-
signDisplay: "exceptZero"
|
|
282
|
-
};
|
|
283
|
-
case "sign-accounting-except-zero":
|
|
284
|
-
case "()?":
|
|
285
|
-
return {
|
|
286
|
-
signDisplay: "exceptZero",
|
|
287
|
-
currencySign: "accounting"
|
|
288
|
-
};
|
|
289
|
-
case "sign-never":
|
|
290
|
-
case "+_":
|
|
291
|
-
return {
|
|
292
|
-
signDisplay: "never"
|
|
293
|
-
};
|
|
294
|
-
}
|
|
295
|
-
}
|
|
296
|
-
function nt(e) {
|
|
297
|
-
var t;
|
|
298
|
-
if (e[0] === "E" && e[1] === "E" ? (t = {
|
|
299
|
-
notation: "engineering"
|
|
300
|
-
}, e = e.slice(2)) : e[0] === "E" && (t = {
|
|
301
|
-
notation: "scientific"
|
|
302
|
-
}, e = e.slice(1)), t) {
|
|
303
|
-
var r = e.slice(0, 2);
|
|
304
|
-
if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !_e.test(e))
|
|
305
|
-
throw new Error("Malformed concise eng/scientific notation");
|
|
306
|
-
t.minimumIntegerDigits = e.length;
|
|
307
|
-
}
|
|
308
|
-
return t;
|
|
309
|
-
}
|
|
310
|
-
function se(e) {
|
|
311
|
-
var t = {}, r = Pe(e);
|
|
312
|
-
return r || t;
|
|
313
|
-
}
|
|
314
|
-
function at(e) {
|
|
315
|
-
for (var t = {}, r = 0, n = e; r < n.length; r++) {
|
|
316
|
-
var a = n[r];
|
|
317
|
-
switch (a.stem) {
|
|
318
|
-
case "percent":
|
|
319
|
-
case "%":
|
|
320
|
-
t.style = "percent";
|
|
321
|
-
continue;
|
|
322
|
-
case "%x100":
|
|
323
|
-
t.style = "percent", t.scale = 100;
|
|
324
|
-
continue;
|
|
325
|
-
case "currency":
|
|
326
|
-
t.style = "currency", t.currency = a.options[0];
|
|
327
|
-
continue;
|
|
328
|
-
case "group-off":
|
|
329
|
-
case ",_":
|
|
330
|
-
t.useGrouping = !1;
|
|
331
|
-
continue;
|
|
332
|
-
case "precision-integer":
|
|
333
|
-
case ".":
|
|
334
|
-
t.maximumFractionDigits = 0;
|
|
335
|
-
continue;
|
|
336
|
-
case "measure-unit":
|
|
337
|
-
case "unit":
|
|
338
|
-
t.style = "unit", t.unit = tt(a.options[0]);
|
|
339
|
-
continue;
|
|
340
|
-
case "compact-short":
|
|
341
|
-
case "K":
|
|
342
|
-
t.notation = "compact", t.compactDisplay = "short";
|
|
343
|
-
continue;
|
|
344
|
-
case "compact-long":
|
|
345
|
-
case "KK":
|
|
346
|
-
t.notation = "compact", t.compactDisplay = "long";
|
|
347
|
-
continue;
|
|
348
|
-
case "scientific":
|
|
349
|
-
t = f(f(f({}, t), { notation: "scientific" }), a.options.reduce(function(u, l) {
|
|
350
|
-
return f(f({}, u), se(l));
|
|
351
|
-
}, {}));
|
|
352
|
-
continue;
|
|
353
|
-
case "engineering":
|
|
354
|
-
t = f(f(f({}, t), { notation: "engineering" }), a.options.reduce(function(u, l) {
|
|
355
|
-
return f(f({}, u), se(l));
|
|
356
|
-
}, {}));
|
|
357
|
-
continue;
|
|
358
|
-
case "notation-simple":
|
|
359
|
-
t.notation = "standard";
|
|
360
|
-
continue;
|
|
361
|
-
case "unit-width-narrow":
|
|
362
|
-
t.currencyDisplay = "narrowSymbol", t.unitDisplay = "narrow";
|
|
363
|
-
continue;
|
|
364
|
-
case "unit-width-short":
|
|
365
|
-
t.currencyDisplay = "code", t.unitDisplay = "short";
|
|
366
|
-
continue;
|
|
367
|
-
case "unit-width-full-name":
|
|
368
|
-
t.currencyDisplay = "name", t.unitDisplay = "long";
|
|
369
|
-
continue;
|
|
370
|
-
case "unit-width-iso-code":
|
|
371
|
-
t.currencyDisplay = "symbol";
|
|
372
|
-
continue;
|
|
373
|
-
case "scale":
|
|
374
|
-
t.scale = parseFloat(a.options[0]);
|
|
375
|
-
continue;
|
|
376
|
-
case "rounding-mode-floor":
|
|
377
|
-
t.roundingMode = "floor";
|
|
378
|
-
continue;
|
|
379
|
-
case "rounding-mode-ceiling":
|
|
380
|
-
t.roundingMode = "ceil";
|
|
381
|
-
continue;
|
|
382
|
-
case "rounding-mode-down":
|
|
383
|
-
t.roundingMode = "trunc";
|
|
384
|
-
continue;
|
|
385
|
-
case "rounding-mode-up":
|
|
386
|
-
t.roundingMode = "expand";
|
|
387
|
-
continue;
|
|
388
|
-
case "rounding-mode-half-even":
|
|
389
|
-
t.roundingMode = "halfEven";
|
|
390
|
-
continue;
|
|
391
|
-
case "rounding-mode-half-down":
|
|
392
|
-
t.roundingMode = "halfTrunc";
|
|
393
|
-
continue;
|
|
394
|
-
case "rounding-mode-half-up":
|
|
395
|
-
t.roundingMode = "halfExpand";
|
|
396
|
-
continue;
|
|
397
|
-
case "integer-width":
|
|
398
|
-
if (a.options.length > 1)
|
|
399
|
-
throw new RangeError("integer-width stems only accept a single optional option");
|
|
400
|
-
a.options[0].replace(rt, function(u, l, h, m, c, b) {
|
|
401
|
-
if (l)
|
|
402
|
-
t.minimumIntegerDigits = h.length;
|
|
403
|
-
else {
|
|
404
|
-
if (m && c)
|
|
405
|
-
throw new Error("We currently do not support maximum integer digits");
|
|
406
|
-
if (b)
|
|
407
|
-
throw new Error("We currently do not support exact integer digits");
|
|
408
|
-
}
|
|
409
|
-
return "";
|
|
410
|
-
});
|
|
411
|
-
continue;
|
|
412
|
-
}
|
|
413
|
-
if (_e.test(a.stem)) {
|
|
414
|
-
t.minimumIntegerDigits = a.stem.length;
|
|
415
|
-
continue;
|
|
416
|
-
}
|
|
417
|
-
if (ie.test(a.stem)) {
|
|
418
|
-
if (a.options.length > 1)
|
|
419
|
-
throw new RangeError("Fraction-precision stems only accept a single optional option");
|
|
420
|
-
a.stem.replace(ie, function(u, l, h, m, c, b) {
|
|
421
|
-
return h === "*" ? t.minimumFractionDigits = l.length : m && m[0] === "#" ? t.maximumFractionDigits = m.length : c && b ? (t.minimumFractionDigits = c.length, t.maximumFractionDigits = c.length + b.length) : (t.minimumFractionDigits = l.length, t.maximumFractionDigits = l.length), "";
|
|
422
|
-
});
|
|
423
|
-
var i = a.options[0];
|
|
424
|
-
i === "w" ? t = f(f({}, t), { trailingZeroDisplay: "stripIfInteger" }) : i && (t = f(f({}, t), oe(i)));
|
|
425
|
-
continue;
|
|
426
|
-
}
|
|
427
|
-
if (Be.test(a.stem)) {
|
|
428
|
-
t = f(f({}, t), oe(a.stem));
|
|
429
|
-
continue;
|
|
430
|
-
}
|
|
431
|
-
var o = Pe(a.stem);
|
|
432
|
-
o && (t = f(f({}, t), o));
|
|
433
|
-
var s = nt(a.stem);
|
|
434
|
-
s && (t = f(f({}, t), s));
|
|
435
|
-
}
|
|
436
|
-
return t;
|
|
437
|
-
}
|
|
438
|
-
var U = {
|
|
439
|
-
"001": [
|
|
440
|
-
"H",
|
|
441
|
-
"h"
|
|
442
|
-
],
|
|
443
|
-
419: [
|
|
444
|
-
"h",
|
|
445
|
-
"H",
|
|
446
|
-
"hB",
|
|
447
|
-
"hb"
|
|
448
|
-
],
|
|
449
|
-
AC: [
|
|
450
|
-
"H",
|
|
451
|
-
"h",
|
|
452
|
-
"hb",
|
|
453
|
-
"hB"
|
|
454
|
-
],
|
|
455
|
-
AD: [
|
|
456
|
-
"H",
|
|
457
|
-
"hB"
|
|
458
|
-
],
|
|
459
|
-
AE: [
|
|
460
|
-
"h",
|
|
461
|
-
"hB",
|
|
462
|
-
"hb",
|
|
463
|
-
"H"
|
|
464
|
-
],
|
|
465
|
-
AF: [
|
|
466
|
-
"H",
|
|
467
|
-
"hb",
|
|
468
|
-
"hB",
|
|
469
|
-
"h"
|
|
470
|
-
],
|
|
471
|
-
AG: [
|
|
472
|
-
"h",
|
|
473
|
-
"hb",
|
|
474
|
-
"H",
|
|
475
|
-
"hB"
|
|
476
|
-
],
|
|
477
|
-
AI: [
|
|
478
|
-
"H",
|
|
479
|
-
"h",
|
|
480
|
-
"hb",
|
|
481
|
-
"hB"
|
|
482
|
-
],
|
|
483
|
-
AL: [
|
|
484
|
-
"h",
|
|
485
|
-
"H",
|
|
486
|
-
"hB"
|
|
487
|
-
],
|
|
488
|
-
AM: [
|
|
489
|
-
"H",
|
|
490
|
-
"hB"
|
|
491
|
-
],
|
|
492
|
-
AO: [
|
|
493
|
-
"H",
|
|
494
|
-
"hB"
|
|
495
|
-
],
|
|
496
|
-
AR: [
|
|
497
|
-
"h",
|
|
498
|
-
"H",
|
|
499
|
-
"hB",
|
|
500
|
-
"hb"
|
|
501
|
-
],
|
|
502
|
-
AS: [
|
|
503
|
-
"h",
|
|
504
|
-
"H"
|
|
505
|
-
],
|
|
506
|
-
AT: [
|
|
507
|
-
"H",
|
|
508
|
-
"hB"
|
|
509
|
-
],
|
|
510
|
-
AU: [
|
|
511
|
-
"h",
|
|
512
|
-
"hb",
|
|
513
|
-
"H",
|
|
514
|
-
"hB"
|
|
515
|
-
],
|
|
516
|
-
AW: [
|
|
517
|
-
"H",
|
|
518
|
-
"hB"
|
|
519
|
-
],
|
|
520
|
-
AX: [
|
|
521
|
-
"H"
|
|
522
|
-
],
|
|
523
|
-
AZ: [
|
|
524
|
-
"H",
|
|
525
|
-
"hB",
|
|
526
|
-
"h"
|
|
527
|
-
],
|
|
528
|
-
BA: [
|
|
529
|
-
"H",
|
|
530
|
-
"hB",
|
|
531
|
-
"h"
|
|
532
|
-
],
|
|
533
|
-
BB: [
|
|
534
|
-
"h",
|
|
535
|
-
"hb",
|
|
536
|
-
"H",
|
|
537
|
-
"hB"
|
|
538
|
-
],
|
|
539
|
-
BD: [
|
|
540
|
-
"h",
|
|
541
|
-
"hB",
|
|
542
|
-
"H"
|
|
543
|
-
],
|
|
544
|
-
BE: [
|
|
545
|
-
"H",
|
|
546
|
-
"hB"
|
|
547
|
-
],
|
|
548
|
-
BF: [
|
|
549
|
-
"H",
|
|
550
|
-
"hB"
|
|
551
|
-
],
|
|
552
|
-
BG: [
|
|
553
|
-
"H",
|
|
554
|
-
"hB",
|
|
555
|
-
"h"
|
|
556
|
-
],
|
|
557
|
-
BH: [
|
|
558
|
-
"h",
|
|
559
|
-
"hB",
|
|
560
|
-
"hb",
|
|
561
|
-
"H"
|
|
562
|
-
],
|
|
563
|
-
BI: [
|
|
564
|
-
"H",
|
|
565
|
-
"h"
|
|
566
|
-
],
|
|
567
|
-
BJ: [
|
|
568
|
-
"H",
|
|
569
|
-
"hB"
|
|
570
|
-
],
|
|
571
|
-
BL: [
|
|
572
|
-
"H",
|
|
573
|
-
"hB"
|
|
574
|
-
],
|
|
575
|
-
BM: [
|
|
576
|
-
"h",
|
|
577
|
-
"hb",
|
|
578
|
-
"H",
|
|
579
|
-
"hB"
|
|
580
|
-
],
|
|
581
|
-
BN: [
|
|
582
|
-
"hb",
|
|
583
|
-
"hB",
|
|
584
|
-
"h",
|
|
585
|
-
"H"
|
|
586
|
-
],
|
|
587
|
-
BO: [
|
|
588
|
-
"h",
|
|
589
|
-
"H",
|
|
590
|
-
"hB",
|
|
591
|
-
"hb"
|
|
592
|
-
],
|
|
593
|
-
BQ: [
|
|
594
|
-
"H"
|
|
595
|
-
],
|
|
596
|
-
BR: [
|
|
597
|
-
"H",
|
|
598
|
-
"hB"
|
|
599
|
-
],
|
|
600
|
-
BS: [
|
|
601
|
-
"h",
|
|
602
|
-
"hb",
|
|
603
|
-
"H",
|
|
604
|
-
"hB"
|
|
605
|
-
],
|
|
606
|
-
BT: [
|
|
607
|
-
"h",
|
|
608
|
-
"H"
|
|
609
|
-
],
|
|
610
|
-
BW: [
|
|
611
|
-
"H",
|
|
612
|
-
"h",
|
|
613
|
-
"hb",
|
|
614
|
-
"hB"
|
|
615
|
-
],
|
|
616
|
-
BY: [
|
|
617
|
-
"H",
|
|
618
|
-
"h"
|
|
619
|
-
],
|
|
620
|
-
BZ: [
|
|
621
|
-
"H",
|
|
622
|
-
"h",
|
|
623
|
-
"hb",
|
|
624
|
-
"hB"
|
|
625
|
-
],
|
|
626
|
-
CA: [
|
|
627
|
-
"h",
|
|
628
|
-
"hb",
|
|
629
|
-
"H",
|
|
630
|
-
"hB"
|
|
631
|
-
],
|
|
632
|
-
CC: [
|
|
633
|
-
"H",
|
|
634
|
-
"h",
|
|
635
|
-
"hb",
|
|
636
|
-
"hB"
|
|
637
|
-
],
|
|
638
|
-
CD: [
|
|
639
|
-
"hB",
|
|
640
|
-
"H"
|
|
641
|
-
],
|
|
642
|
-
CF: [
|
|
643
|
-
"H",
|
|
644
|
-
"h",
|
|
645
|
-
"hB"
|
|
646
|
-
],
|
|
647
|
-
CG: [
|
|
648
|
-
"H",
|
|
649
|
-
"hB"
|
|
650
|
-
],
|
|
651
|
-
CH: [
|
|
652
|
-
"H",
|
|
653
|
-
"hB",
|
|
654
|
-
"h"
|
|
655
|
-
],
|
|
656
|
-
CI: [
|
|
657
|
-
"H",
|
|
658
|
-
"hB"
|
|
659
|
-
],
|
|
660
|
-
CK: [
|
|
661
|
-
"H",
|
|
662
|
-
"h",
|
|
663
|
-
"hb",
|
|
664
|
-
"hB"
|
|
665
|
-
],
|
|
666
|
-
CL: [
|
|
667
|
-
"h",
|
|
668
|
-
"H",
|
|
669
|
-
"hB",
|
|
670
|
-
"hb"
|
|
671
|
-
],
|
|
672
|
-
CM: [
|
|
673
|
-
"H",
|
|
674
|
-
"h",
|
|
675
|
-
"hB"
|
|
676
|
-
],
|
|
677
|
-
CN: [
|
|
678
|
-
"H",
|
|
679
|
-
"hB",
|
|
680
|
-
"hb",
|
|
681
|
-
"h"
|
|
682
|
-
],
|
|
683
|
-
CO: [
|
|
684
|
-
"h",
|
|
685
|
-
"H",
|
|
686
|
-
"hB",
|
|
687
|
-
"hb"
|
|
688
|
-
],
|
|
689
|
-
CP: [
|
|
690
|
-
"H"
|
|
691
|
-
],
|
|
692
|
-
CR: [
|
|
693
|
-
"h",
|
|
694
|
-
"H",
|
|
695
|
-
"hB",
|
|
696
|
-
"hb"
|
|
697
|
-
],
|
|
698
|
-
CU: [
|
|
699
|
-
"h",
|
|
700
|
-
"H",
|
|
701
|
-
"hB",
|
|
702
|
-
"hb"
|
|
703
|
-
],
|
|
704
|
-
CV: [
|
|
705
|
-
"H",
|
|
706
|
-
"hB"
|
|
707
|
-
],
|
|
708
|
-
CW: [
|
|
709
|
-
"H",
|
|
710
|
-
"hB"
|
|
711
|
-
],
|
|
712
|
-
CX: [
|
|
713
|
-
"H",
|
|
714
|
-
"h",
|
|
715
|
-
"hb",
|
|
716
|
-
"hB"
|
|
717
|
-
],
|
|
718
|
-
CY: [
|
|
719
|
-
"h",
|
|
720
|
-
"H",
|
|
721
|
-
"hb",
|
|
722
|
-
"hB"
|
|
723
|
-
],
|
|
724
|
-
CZ: [
|
|
725
|
-
"H"
|
|
726
|
-
],
|
|
727
|
-
DE: [
|
|
728
|
-
"H",
|
|
729
|
-
"hB"
|
|
730
|
-
],
|
|
731
|
-
DG: [
|
|
732
|
-
"H",
|
|
733
|
-
"h",
|
|
734
|
-
"hb",
|
|
735
|
-
"hB"
|
|
736
|
-
],
|
|
737
|
-
DJ: [
|
|
738
|
-
"h",
|
|
739
|
-
"H"
|
|
740
|
-
],
|
|
741
|
-
DK: [
|
|
742
|
-
"H"
|
|
743
|
-
],
|
|
744
|
-
DM: [
|
|
745
|
-
"h",
|
|
746
|
-
"hb",
|
|
747
|
-
"H",
|
|
748
|
-
"hB"
|
|
749
|
-
],
|
|
750
|
-
DO: [
|
|
751
|
-
"h",
|
|
752
|
-
"H",
|
|
753
|
-
"hB",
|
|
754
|
-
"hb"
|
|
755
|
-
],
|
|
756
|
-
DZ: [
|
|
757
|
-
"h",
|
|
758
|
-
"hB",
|
|
759
|
-
"hb",
|
|
760
|
-
"H"
|
|
761
|
-
],
|
|
762
|
-
EA: [
|
|
763
|
-
"H",
|
|
764
|
-
"h",
|
|
765
|
-
"hB",
|
|
766
|
-
"hb"
|
|
767
|
-
],
|
|
768
|
-
EC: [
|
|
769
|
-
"h",
|
|
770
|
-
"H",
|
|
771
|
-
"hB",
|
|
772
|
-
"hb"
|
|
773
|
-
],
|
|
774
|
-
EE: [
|
|
775
|
-
"H",
|
|
776
|
-
"hB"
|
|
777
|
-
],
|
|
778
|
-
EG: [
|
|
779
|
-
"h",
|
|
780
|
-
"hB",
|
|
781
|
-
"hb",
|
|
782
|
-
"H"
|
|
783
|
-
],
|
|
784
|
-
EH: [
|
|
785
|
-
"h",
|
|
786
|
-
"hB",
|
|
787
|
-
"hb",
|
|
788
|
-
"H"
|
|
789
|
-
],
|
|
790
|
-
ER: [
|
|
791
|
-
"h",
|
|
792
|
-
"H"
|
|
793
|
-
],
|
|
794
|
-
ES: [
|
|
795
|
-
"H",
|
|
796
|
-
"hB",
|
|
797
|
-
"h",
|
|
798
|
-
"hb"
|
|
799
|
-
],
|
|
800
|
-
ET: [
|
|
801
|
-
"hB",
|
|
802
|
-
"hb",
|
|
803
|
-
"h",
|
|
804
|
-
"H"
|
|
805
|
-
],
|
|
806
|
-
FI: [
|
|
807
|
-
"H"
|
|
808
|
-
],
|
|
809
|
-
FJ: [
|
|
810
|
-
"h",
|
|
811
|
-
"hb",
|
|
812
|
-
"H",
|
|
813
|
-
"hB"
|
|
814
|
-
],
|
|
815
|
-
FK: [
|
|
816
|
-
"H",
|
|
817
|
-
"h",
|
|
818
|
-
"hb",
|
|
819
|
-
"hB"
|
|
820
|
-
],
|
|
821
|
-
FM: [
|
|
822
|
-
"h",
|
|
823
|
-
"hb",
|
|
824
|
-
"H",
|
|
825
|
-
"hB"
|
|
826
|
-
],
|
|
827
|
-
FO: [
|
|
828
|
-
"H",
|
|
829
|
-
"h"
|
|
830
|
-
],
|
|
831
|
-
FR: [
|
|
832
|
-
"H",
|
|
833
|
-
"hB"
|
|
834
|
-
],
|
|
835
|
-
GA: [
|
|
836
|
-
"H",
|
|
837
|
-
"hB"
|
|
838
|
-
],
|
|
839
|
-
GB: [
|
|
840
|
-
"H",
|
|
841
|
-
"h",
|
|
842
|
-
"hb",
|
|
843
|
-
"hB"
|
|
844
|
-
],
|
|
845
|
-
GD: [
|
|
846
|
-
"h",
|
|
847
|
-
"hb",
|
|
848
|
-
"H",
|
|
849
|
-
"hB"
|
|
850
|
-
],
|
|
851
|
-
GE: [
|
|
852
|
-
"H",
|
|
853
|
-
"hB",
|
|
854
|
-
"h"
|
|
855
|
-
],
|
|
856
|
-
GF: [
|
|
857
|
-
"H",
|
|
858
|
-
"hB"
|
|
859
|
-
],
|
|
860
|
-
GG: [
|
|
861
|
-
"H",
|
|
862
|
-
"h",
|
|
863
|
-
"hb",
|
|
864
|
-
"hB"
|
|
865
|
-
],
|
|
866
|
-
GH: [
|
|
867
|
-
"h",
|
|
868
|
-
"H"
|
|
869
|
-
],
|
|
870
|
-
GI: [
|
|
871
|
-
"H",
|
|
872
|
-
"h",
|
|
873
|
-
"hb",
|
|
874
|
-
"hB"
|
|
875
|
-
],
|
|
876
|
-
GL: [
|
|
877
|
-
"H",
|
|
878
|
-
"h"
|
|
879
|
-
],
|
|
880
|
-
GM: [
|
|
881
|
-
"h",
|
|
882
|
-
"hb",
|
|
883
|
-
"H",
|
|
884
|
-
"hB"
|
|
885
|
-
],
|
|
886
|
-
GN: [
|
|
887
|
-
"H",
|
|
888
|
-
"hB"
|
|
889
|
-
],
|
|
890
|
-
GP: [
|
|
891
|
-
"H",
|
|
892
|
-
"hB"
|
|
893
|
-
],
|
|
894
|
-
GQ: [
|
|
895
|
-
"H",
|
|
896
|
-
"hB",
|
|
897
|
-
"h",
|
|
898
|
-
"hb"
|
|
899
|
-
],
|
|
900
|
-
GR: [
|
|
901
|
-
"h",
|
|
902
|
-
"H",
|
|
903
|
-
"hb",
|
|
904
|
-
"hB"
|
|
905
|
-
],
|
|
906
|
-
GT: [
|
|
907
|
-
"h",
|
|
908
|
-
"H",
|
|
909
|
-
"hB",
|
|
910
|
-
"hb"
|
|
911
|
-
],
|
|
912
|
-
GU: [
|
|
913
|
-
"h",
|
|
914
|
-
"hb",
|
|
915
|
-
"H",
|
|
916
|
-
"hB"
|
|
917
|
-
],
|
|
918
|
-
GW: [
|
|
919
|
-
"H",
|
|
920
|
-
"hB"
|
|
921
|
-
],
|
|
922
|
-
GY: [
|
|
923
|
-
"h",
|
|
924
|
-
"hb",
|
|
925
|
-
"H",
|
|
926
|
-
"hB"
|
|
927
|
-
],
|
|
928
|
-
HK: [
|
|
929
|
-
"h",
|
|
930
|
-
"hB",
|
|
931
|
-
"hb",
|
|
932
|
-
"H"
|
|
933
|
-
],
|
|
934
|
-
HN: [
|
|
935
|
-
"h",
|
|
936
|
-
"H",
|
|
937
|
-
"hB",
|
|
938
|
-
"hb"
|
|
939
|
-
],
|
|
940
|
-
HR: [
|
|
941
|
-
"H",
|
|
942
|
-
"hB"
|
|
943
|
-
],
|
|
944
|
-
HU: [
|
|
945
|
-
"H",
|
|
946
|
-
"h"
|
|
947
|
-
],
|
|
948
|
-
IC: [
|
|
949
|
-
"H",
|
|
950
|
-
"h",
|
|
951
|
-
"hB",
|
|
952
|
-
"hb"
|
|
953
|
-
],
|
|
954
|
-
ID: [
|
|
955
|
-
"H"
|
|
956
|
-
],
|
|
957
|
-
IE: [
|
|
958
|
-
"H",
|
|
959
|
-
"h",
|
|
960
|
-
"hb",
|
|
961
|
-
"hB"
|
|
962
|
-
],
|
|
963
|
-
IL: [
|
|
964
|
-
"H",
|
|
965
|
-
"hB"
|
|
966
|
-
],
|
|
967
|
-
IM: [
|
|
968
|
-
"H",
|
|
969
|
-
"h",
|
|
970
|
-
"hb",
|
|
971
|
-
"hB"
|
|
972
|
-
],
|
|
973
|
-
IN: [
|
|
974
|
-
"h",
|
|
975
|
-
"H"
|
|
976
|
-
],
|
|
977
|
-
IO: [
|
|
978
|
-
"H",
|
|
979
|
-
"h",
|
|
980
|
-
"hb",
|
|
981
|
-
"hB"
|
|
982
|
-
],
|
|
983
|
-
IQ: [
|
|
984
|
-
"h",
|
|
985
|
-
"hB",
|
|
986
|
-
"hb",
|
|
987
|
-
"H"
|
|
988
|
-
],
|
|
989
|
-
IR: [
|
|
990
|
-
"hB",
|
|
991
|
-
"H"
|
|
992
|
-
],
|
|
993
|
-
IS: [
|
|
994
|
-
"H"
|
|
995
|
-
],
|
|
996
|
-
IT: [
|
|
997
|
-
"H",
|
|
998
|
-
"hB"
|
|
999
|
-
],
|
|
1000
|
-
JE: [
|
|
1001
|
-
"H",
|
|
1002
|
-
"h",
|
|
1003
|
-
"hb",
|
|
1004
|
-
"hB"
|
|
1005
|
-
],
|
|
1006
|
-
JM: [
|
|
1007
|
-
"h",
|
|
1008
|
-
"hb",
|
|
1009
|
-
"H",
|
|
1010
|
-
"hB"
|
|
1011
|
-
],
|
|
1012
|
-
JO: [
|
|
1013
|
-
"h",
|
|
1014
|
-
"hB",
|
|
1015
|
-
"hb",
|
|
1016
|
-
"H"
|
|
1017
|
-
],
|
|
1018
|
-
JP: [
|
|
1019
|
-
"H",
|
|
1020
|
-
"K",
|
|
1021
|
-
"h"
|
|
1022
|
-
],
|
|
1023
|
-
KE: [
|
|
1024
|
-
"hB",
|
|
1025
|
-
"hb",
|
|
1026
|
-
"H",
|
|
1027
|
-
"h"
|
|
1028
|
-
],
|
|
1029
|
-
KG: [
|
|
1030
|
-
"H",
|
|
1031
|
-
"h",
|
|
1032
|
-
"hB",
|
|
1033
|
-
"hb"
|
|
1034
|
-
],
|
|
1035
|
-
KH: [
|
|
1036
|
-
"hB",
|
|
1037
|
-
"h",
|
|
1038
|
-
"H",
|
|
1039
|
-
"hb"
|
|
1040
|
-
],
|
|
1041
|
-
KI: [
|
|
1042
|
-
"h",
|
|
1043
|
-
"hb",
|
|
1044
|
-
"H",
|
|
1045
|
-
"hB"
|
|
1046
|
-
],
|
|
1047
|
-
KM: [
|
|
1048
|
-
"H",
|
|
1049
|
-
"h",
|
|
1050
|
-
"hB",
|
|
1051
|
-
"hb"
|
|
1052
|
-
],
|
|
1053
|
-
KN: [
|
|
1054
|
-
"h",
|
|
1055
|
-
"hb",
|
|
1056
|
-
"H",
|
|
1057
|
-
"hB"
|
|
1058
|
-
],
|
|
1059
|
-
KP: [
|
|
1060
|
-
"h",
|
|
1061
|
-
"H",
|
|
1062
|
-
"hB",
|
|
1063
|
-
"hb"
|
|
1064
|
-
],
|
|
1065
|
-
KR: [
|
|
1066
|
-
"h",
|
|
1067
|
-
"H",
|
|
1068
|
-
"hB",
|
|
1069
|
-
"hb"
|
|
1070
|
-
],
|
|
1071
|
-
KW: [
|
|
1072
|
-
"h",
|
|
1073
|
-
"hB",
|
|
1074
|
-
"hb",
|
|
1075
|
-
"H"
|
|
1076
|
-
],
|
|
1077
|
-
KY: [
|
|
1078
|
-
"h",
|
|
1079
|
-
"hb",
|
|
1080
|
-
"H",
|
|
1081
|
-
"hB"
|
|
1082
|
-
],
|
|
1083
|
-
KZ: [
|
|
1084
|
-
"H",
|
|
1085
|
-
"hB"
|
|
1086
|
-
],
|
|
1087
|
-
LA: [
|
|
1088
|
-
"H",
|
|
1089
|
-
"hb",
|
|
1090
|
-
"hB",
|
|
1091
|
-
"h"
|
|
1092
|
-
],
|
|
1093
|
-
LB: [
|
|
1094
|
-
"h",
|
|
1095
|
-
"hB",
|
|
1096
|
-
"hb",
|
|
1097
|
-
"H"
|
|
1098
|
-
],
|
|
1099
|
-
LC: [
|
|
1100
|
-
"h",
|
|
1101
|
-
"hb",
|
|
1102
|
-
"H",
|
|
1103
|
-
"hB"
|
|
1104
|
-
],
|
|
1105
|
-
LI: [
|
|
1106
|
-
"H",
|
|
1107
|
-
"hB",
|
|
1108
|
-
"h"
|
|
1109
|
-
],
|
|
1110
|
-
LK: [
|
|
1111
|
-
"H",
|
|
1112
|
-
"h",
|
|
1113
|
-
"hB",
|
|
1114
|
-
"hb"
|
|
1115
|
-
],
|
|
1116
|
-
LR: [
|
|
1117
|
-
"h",
|
|
1118
|
-
"hb",
|
|
1119
|
-
"H",
|
|
1120
|
-
"hB"
|
|
1121
|
-
],
|
|
1122
|
-
LS: [
|
|
1123
|
-
"h",
|
|
1124
|
-
"H"
|
|
1125
|
-
],
|
|
1126
|
-
LT: [
|
|
1127
|
-
"H",
|
|
1128
|
-
"h",
|
|
1129
|
-
"hb",
|
|
1130
|
-
"hB"
|
|
1131
|
-
],
|
|
1132
|
-
LU: [
|
|
1133
|
-
"H",
|
|
1134
|
-
"h",
|
|
1135
|
-
"hB"
|
|
1136
|
-
],
|
|
1137
|
-
LV: [
|
|
1138
|
-
"H",
|
|
1139
|
-
"hB",
|
|
1140
|
-
"hb",
|
|
1141
|
-
"h"
|
|
1142
|
-
],
|
|
1143
|
-
LY: [
|
|
1144
|
-
"h",
|
|
1145
|
-
"hB",
|
|
1146
|
-
"hb",
|
|
1147
|
-
"H"
|
|
1148
|
-
],
|
|
1149
|
-
MA: [
|
|
1150
|
-
"H",
|
|
1151
|
-
"h",
|
|
1152
|
-
"hB",
|
|
1153
|
-
"hb"
|
|
1154
|
-
],
|
|
1155
|
-
MC: [
|
|
1156
|
-
"H",
|
|
1157
|
-
"hB"
|
|
1158
|
-
],
|
|
1159
|
-
MD: [
|
|
1160
|
-
"H",
|
|
1161
|
-
"hB"
|
|
1162
|
-
],
|
|
1163
|
-
ME: [
|
|
1164
|
-
"H",
|
|
1165
|
-
"hB",
|
|
1166
|
-
"h"
|
|
1167
|
-
],
|
|
1168
|
-
MF: [
|
|
1169
|
-
"H",
|
|
1170
|
-
"hB"
|
|
1171
|
-
],
|
|
1172
|
-
MG: [
|
|
1173
|
-
"H",
|
|
1174
|
-
"h"
|
|
1175
|
-
],
|
|
1176
|
-
MH: [
|
|
1177
|
-
"h",
|
|
1178
|
-
"hb",
|
|
1179
|
-
"H",
|
|
1180
|
-
"hB"
|
|
1181
|
-
],
|
|
1182
|
-
MK: [
|
|
1183
|
-
"H",
|
|
1184
|
-
"h",
|
|
1185
|
-
"hb",
|
|
1186
|
-
"hB"
|
|
1187
|
-
],
|
|
1188
|
-
ML: [
|
|
1189
|
-
"H"
|
|
1190
|
-
],
|
|
1191
|
-
MM: [
|
|
1192
|
-
"hB",
|
|
1193
|
-
"hb",
|
|
1194
|
-
"H",
|
|
1195
|
-
"h"
|
|
1196
|
-
],
|
|
1197
|
-
MN: [
|
|
1198
|
-
"H",
|
|
1199
|
-
"h",
|
|
1200
|
-
"hb",
|
|
1201
|
-
"hB"
|
|
1202
|
-
],
|
|
1203
|
-
MO: [
|
|
1204
|
-
"h",
|
|
1205
|
-
"hB",
|
|
1206
|
-
"hb",
|
|
1207
|
-
"H"
|
|
1208
|
-
],
|
|
1209
|
-
MP: [
|
|
1210
|
-
"h",
|
|
1211
|
-
"hb",
|
|
1212
|
-
"H",
|
|
1213
|
-
"hB"
|
|
1214
|
-
],
|
|
1215
|
-
MQ: [
|
|
1216
|
-
"H",
|
|
1217
|
-
"hB"
|
|
1218
|
-
],
|
|
1219
|
-
MR: [
|
|
1220
|
-
"h",
|
|
1221
|
-
"hB",
|
|
1222
|
-
"hb",
|
|
1223
|
-
"H"
|
|
1224
|
-
],
|
|
1225
|
-
MS: [
|
|
1226
|
-
"H",
|
|
1227
|
-
"h",
|
|
1228
|
-
"hb",
|
|
1229
|
-
"hB"
|
|
1230
|
-
],
|
|
1231
|
-
MT: [
|
|
1232
|
-
"H",
|
|
1233
|
-
"h"
|
|
1234
|
-
],
|
|
1235
|
-
MU: [
|
|
1236
|
-
"H",
|
|
1237
|
-
"h"
|
|
1238
|
-
],
|
|
1239
|
-
MV: [
|
|
1240
|
-
"H",
|
|
1241
|
-
"h"
|
|
1242
|
-
],
|
|
1243
|
-
MW: [
|
|
1244
|
-
"h",
|
|
1245
|
-
"hb",
|
|
1246
|
-
"H",
|
|
1247
|
-
"hB"
|
|
1248
|
-
],
|
|
1249
|
-
MX: [
|
|
1250
|
-
"h",
|
|
1251
|
-
"H",
|
|
1252
|
-
"hB",
|
|
1253
|
-
"hb"
|
|
1254
|
-
],
|
|
1255
|
-
MY: [
|
|
1256
|
-
"hb",
|
|
1257
|
-
"hB",
|
|
1258
|
-
"h",
|
|
1259
|
-
"H"
|
|
1260
|
-
],
|
|
1261
|
-
MZ: [
|
|
1262
|
-
"H",
|
|
1263
|
-
"hB"
|
|
1264
|
-
],
|
|
1265
|
-
NA: [
|
|
1266
|
-
"h",
|
|
1267
|
-
"H",
|
|
1268
|
-
"hB",
|
|
1269
|
-
"hb"
|
|
1270
|
-
],
|
|
1271
|
-
NC: [
|
|
1272
|
-
"H",
|
|
1273
|
-
"hB"
|
|
1274
|
-
],
|
|
1275
|
-
NE: [
|
|
1276
|
-
"H"
|
|
1277
|
-
],
|
|
1278
|
-
NF: [
|
|
1279
|
-
"H",
|
|
1280
|
-
"h",
|
|
1281
|
-
"hb",
|
|
1282
|
-
"hB"
|
|
1283
|
-
],
|
|
1284
|
-
NG: [
|
|
1285
|
-
"H",
|
|
1286
|
-
"h",
|
|
1287
|
-
"hb",
|
|
1288
|
-
"hB"
|
|
1289
|
-
],
|
|
1290
|
-
NI: [
|
|
1291
|
-
"h",
|
|
1292
|
-
"H",
|
|
1293
|
-
"hB",
|
|
1294
|
-
"hb"
|
|
1295
|
-
],
|
|
1296
|
-
NL: [
|
|
1297
|
-
"H",
|
|
1298
|
-
"hB"
|
|
1299
|
-
],
|
|
1300
|
-
NO: [
|
|
1301
|
-
"H",
|
|
1302
|
-
"h"
|
|
1303
|
-
],
|
|
1304
|
-
NP: [
|
|
1305
|
-
"H",
|
|
1306
|
-
"h",
|
|
1307
|
-
"hB"
|
|
1308
|
-
],
|
|
1309
|
-
NR: [
|
|
1310
|
-
"H",
|
|
1311
|
-
"h",
|
|
1312
|
-
"hb",
|
|
1313
|
-
"hB"
|
|
1314
|
-
],
|
|
1315
|
-
NU: [
|
|
1316
|
-
"H",
|
|
1317
|
-
"h",
|
|
1318
|
-
"hb",
|
|
1319
|
-
"hB"
|
|
1320
|
-
],
|
|
1321
|
-
NZ: [
|
|
1322
|
-
"h",
|
|
1323
|
-
"hb",
|
|
1324
|
-
"H",
|
|
1325
|
-
"hB"
|
|
1326
|
-
],
|
|
1327
|
-
OM: [
|
|
1328
|
-
"h",
|
|
1329
|
-
"hB",
|
|
1330
|
-
"hb",
|
|
1331
|
-
"H"
|
|
1332
|
-
],
|
|
1333
|
-
PA: [
|
|
1334
|
-
"h",
|
|
1335
|
-
"H",
|
|
1336
|
-
"hB",
|
|
1337
|
-
"hb"
|
|
1338
|
-
],
|
|
1339
|
-
PE: [
|
|
1340
|
-
"h",
|
|
1341
|
-
"H",
|
|
1342
|
-
"hB",
|
|
1343
|
-
"hb"
|
|
1344
|
-
],
|
|
1345
|
-
PF: [
|
|
1346
|
-
"H",
|
|
1347
|
-
"h",
|
|
1348
|
-
"hB"
|
|
1349
|
-
],
|
|
1350
|
-
PG: [
|
|
1351
|
-
"h",
|
|
1352
|
-
"H"
|
|
1353
|
-
],
|
|
1354
|
-
PH: [
|
|
1355
|
-
"h",
|
|
1356
|
-
"hB",
|
|
1357
|
-
"hb",
|
|
1358
|
-
"H"
|
|
1359
|
-
],
|
|
1360
|
-
PK: [
|
|
1361
|
-
"h",
|
|
1362
|
-
"hB",
|
|
1363
|
-
"H"
|
|
1364
|
-
],
|
|
1365
|
-
PL: [
|
|
1366
|
-
"H",
|
|
1367
|
-
"h"
|
|
1368
|
-
],
|
|
1369
|
-
PM: [
|
|
1370
|
-
"H",
|
|
1371
|
-
"hB"
|
|
1372
|
-
],
|
|
1373
|
-
PN: [
|
|
1374
|
-
"H",
|
|
1375
|
-
"h",
|
|
1376
|
-
"hb",
|
|
1377
|
-
"hB"
|
|
1378
|
-
],
|
|
1379
|
-
PR: [
|
|
1380
|
-
"h",
|
|
1381
|
-
"H",
|
|
1382
|
-
"hB",
|
|
1383
|
-
"hb"
|
|
1384
|
-
],
|
|
1385
|
-
PS: [
|
|
1386
|
-
"h",
|
|
1387
|
-
"hB",
|
|
1388
|
-
"hb",
|
|
1389
|
-
"H"
|
|
1390
|
-
],
|
|
1391
|
-
PT: [
|
|
1392
|
-
"H",
|
|
1393
|
-
"hB"
|
|
1394
|
-
],
|
|
1395
|
-
PW: [
|
|
1396
|
-
"h",
|
|
1397
|
-
"H"
|
|
1398
|
-
],
|
|
1399
|
-
PY: [
|
|
1400
|
-
"h",
|
|
1401
|
-
"H",
|
|
1402
|
-
"hB",
|
|
1403
|
-
"hb"
|
|
1404
|
-
],
|
|
1405
|
-
QA: [
|
|
1406
|
-
"h",
|
|
1407
|
-
"hB",
|
|
1408
|
-
"hb",
|
|
1409
|
-
"H"
|
|
1410
|
-
],
|
|
1411
|
-
RE: [
|
|
1412
|
-
"H",
|
|
1413
|
-
"hB"
|
|
1414
|
-
],
|
|
1415
|
-
RO: [
|
|
1416
|
-
"H",
|
|
1417
|
-
"hB"
|
|
1418
|
-
],
|
|
1419
|
-
RS: [
|
|
1420
|
-
"H",
|
|
1421
|
-
"hB",
|
|
1422
|
-
"h"
|
|
1423
|
-
],
|
|
1424
|
-
RU: [
|
|
1425
|
-
"H"
|
|
1426
|
-
],
|
|
1427
|
-
RW: [
|
|
1428
|
-
"H",
|
|
1429
|
-
"h"
|
|
1430
|
-
],
|
|
1431
|
-
SA: [
|
|
1432
|
-
"h",
|
|
1433
|
-
"hB",
|
|
1434
|
-
"hb",
|
|
1435
|
-
"H"
|
|
1436
|
-
],
|
|
1437
|
-
SB: [
|
|
1438
|
-
"h",
|
|
1439
|
-
"hb",
|
|
1440
|
-
"H",
|
|
1441
|
-
"hB"
|
|
1442
|
-
],
|
|
1443
|
-
SC: [
|
|
1444
|
-
"H",
|
|
1445
|
-
"h",
|
|
1446
|
-
"hB"
|
|
1447
|
-
],
|
|
1448
|
-
SD: [
|
|
1449
|
-
"h",
|
|
1450
|
-
"hB",
|
|
1451
|
-
"hb",
|
|
1452
|
-
"H"
|
|
1453
|
-
],
|
|
1454
|
-
SE: [
|
|
1455
|
-
"H"
|
|
1456
|
-
],
|
|
1457
|
-
SG: [
|
|
1458
|
-
"h",
|
|
1459
|
-
"hb",
|
|
1460
|
-
"H",
|
|
1461
|
-
"hB"
|
|
1462
|
-
],
|
|
1463
|
-
SH: [
|
|
1464
|
-
"H",
|
|
1465
|
-
"h",
|
|
1466
|
-
"hb",
|
|
1467
|
-
"hB"
|
|
1468
|
-
],
|
|
1469
|
-
SI: [
|
|
1470
|
-
"H",
|
|
1471
|
-
"hB"
|
|
1472
|
-
],
|
|
1473
|
-
SJ: [
|
|
1474
|
-
"H"
|
|
1475
|
-
],
|
|
1476
|
-
SK: [
|
|
1477
|
-
"H"
|
|
1478
|
-
],
|
|
1479
|
-
SL: [
|
|
1480
|
-
"h",
|
|
1481
|
-
"hb",
|
|
1482
|
-
"H",
|
|
1483
|
-
"hB"
|
|
1484
|
-
],
|
|
1485
|
-
SM: [
|
|
1486
|
-
"H",
|
|
1487
|
-
"h",
|
|
1488
|
-
"hB"
|
|
1489
|
-
],
|
|
1490
|
-
SN: [
|
|
1491
|
-
"H",
|
|
1492
|
-
"h",
|
|
1493
|
-
"hB"
|
|
1494
|
-
],
|
|
1495
|
-
SO: [
|
|
1496
|
-
"h",
|
|
1497
|
-
"H"
|
|
1498
|
-
],
|
|
1499
|
-
SR: [
|
|
1500
|
-
"H",
|
|
1501
|
-
"hB"
|
|
1502
|
-
],
|
|
1503
|
-
SS: [
|
|
1504
|
-
"h",
|
|
1505
|
-
"hb",
|
|
1506
|
-
"H",
|
|
1507
|
-
"hB"
|
|
1508
|
-
],
|
|
1509
|
-
ST: [
|
|
1510
|
-
"H",
|
|
1511
|
-
"hB"
|
|
1512
|
-
],
|
|
1513
|
-
SV: [
|
|
1514
|
-
"h",
|
|
1515
|
-
"H",
|
|
1516
|
-
"hB",
|
|
1517
|
-
"hb"
|
|
1518
|
-
],
|
|
1519
|
-
SX: [
|
|
1520
|
-
"H",
|
|
1521
|
-
"h",
|
|
1522
|
-
"hb",
|
|
1523
|
-
"hB"
|
|
1524
|
-
],
|
|
1525
|
-
SY: [
|
|
1526
|
-
"h",
|
|
1527
|
-
"hB",
|
|
1528
|
-
"hb",
|
|
1529
|
-
"H"
|
|
1530
|
-
],
|
|
1531
|
-
SZ: [
|
|
1532
|
-
"h",
|
|
1533
|
-
"hb",
|
|
1534
|
-
"H",
|
|
1535
|
-
"hB"
|
|
1536
|
-
],
|
|
1537
|
-
TA: [
|
|
1538
|
-
"H",
|
|
1539
|
-
"h",
|
|
1540
|
-
"hb",
|
|
1541
|
-
"hB"
|
|
1542
|
-
],
|
|
1543
|
-
TC: [
|
|
1544
|
-
"h",
|
|
1545
|
-
"hb",
|
|
1546
|
-
"H",
|
|
1547
|
-
"hB"
|
|
1548
|
-
],
|
|
1549
|
-
TD: [
|
|
1550
|
-
"h",
|
|
1551
|
-
"H",
|
|
1552
|
-
"hB"
|
|
1553
|
-
],
|
|
1554
|
-
TF: [
|
|
1555
|
-
"H",
|
|
1556
|
-
"h",
|
|
1557
|
-
"hB"
|
|
1558
|
-
],
|
|
1559
|
-
TG: [
|
|
1560
|
-
"H",
|
|
1561
|
-
"hB"
|
|
1562
|
-
],
|
|
1563
|
-
TH: [
|
|
1564
|
-
"H",
|
|
1565
|
-
"h"
|
|
1566
|
-
],
|
|
1567
|
-
TJ: [
|
|
1568
|
-
"H",
|
|
1569
|
-
"h"
|
|
1570
|
-
],
|
|
1571
|
-
TL: [
|
|
1572
|
-
"H",
|
|
1573
|
-
"hB",
|
|
1574
|
-
"hb",
|
|
1575
|
-
"h"
|
|
1576
|
-
],
|
|
1577
|
-
TM: [
|
|
1578
|
-
"H",
|
|
1579
|
-
"h"
|
|
1580
|
-
],
|
|
1581
|
-
TN: [
|
|
1582
|
-
"h",
|
|
1583
|
-
"hB",
|
|
1584
|
-
"hb",
|
|
1585
|
-
"H"
|
|
1586
|
-
],
|
|
1587
|
-
TO: [
|
|
1588
|
-
"h",
|
|
1589
|
-
"H"
|
|
1590
|
-
],
|
|
1591
|
-
TR: [
|
|
1592
|
-
"H",
|
|
1593
|
-
"hB"
|
|
1594
|
-
],
|
|
1595
|
-
TT: [
|
|
1596
|
-
"h",
|
|
1597
|
-
"hb",
|
|
1598
|
-
"H",
|
|
1599
|
-
"hB"
|
|
1600
|
-
],
|
|
1601
|
-
TW: [
|
|
1602
|
-
"hB",
|
|
1603
|
-
"hb",
|
|
1604
|
-
"h",
|
|
1605
|
-
"H"
|
|
1606
|
-
],
|
|
1607
|
-
TZ: [
|
|
1608
|
-
"hB",
|
|
1609
|
-
"hb",
|
|
1610
|
-
"H",
|
|
1611
|
-
"h"
|
|
1612
|
-
],
|
|
1613
|
-
UA: [
|
|
1614
|
-
"H",
|
|
1615
|
-
"hB",
|
|
1616
|
-
"h"
|
|
1617
|
-
],
|
|
1618
|
-
UG: [
|
|
1619
|
-
"hB",
|
|
1620
|
-
"hb",
|
|
1621
|
-
"H",
|
|
1622
|
-
"h"
|
|
1623
|
-
],
|
|
1624
|
-
UM: [
|
|
1625
|
-
"h",
|
|
1626
|
-
"hb",
|
|
1627
|
-
"H",
|
|
1628
|
-
"hB"
|
|
1629
|
-
],
|
|
1630
|
-
US: [
|
|
1631
|
-
"h",
|
|
1632
|
-
"hb",
|
|
1633
|
-
"H",
|
|
1634
|
-
"hB"
|
|
1635
|
-
],
|
|
1636
|
-
UY: [
|
|
1637
|
-
"h",
|
|
1638
|
-
"H",
|
|
1639
|
-
"hB",
|
|
1640
|
-
"hb"
|
|
1641
|
-
],
|
|
1642
|
-
UZ: [
|
|
1643
|
-
"H",
|
|
1644
|
-
"hB",
|
|
1645
|
-
"h"
|
|
1646
|
-
],
|
|
1647
|
-
VA: [
|
|
1648
|
-
"H",
|
|
1649
|
-
"h",
|
|
1650
|
-
"hB"
|
|
1651
|
-
],
|
|
1652
|
-
VC: [
|
|
1653
|
-
"h",
|
|
1654
|
-
"hb",
|
|
1655
|
-
"H",
|
|
1656
|
-
"hB"
|
|
1657
|
-
],
|
|
1658
|
-
VE: [
|
|
1659
|
-
"h",
|
|
1660
|
-
"H",
|
|
1661
|
-
"hB",
|
|
1662
|
-
"hb"
|
|
1663
|
-
],
|
|
1664
|
-
VG: [
|
|
1665
|
-
"h",
|
|
1666
|
-
"hb",
|
|
1667
|
-
"H",
|
|
1668
|
-
"hB"
|
|
1669
|
-
],
|
|
1670
|
-
VI: [
|
|
1671
|
-
"h",
|
|
1672
|
-
"hb",
|
|
1673
|
-
"H",
|
|
1674
|
-
"hB"
|
|
1675
|
-
],
|
|
1676
|
-
VN: [
|
|
1677
|
-
"H",
|
|
1678
|
-
"h"
|
|
1679
|
-
],
|
|
1680
|
-
VU: [
|
|
1681
|
-
"h",
|
|
1682
|
-
"H"
|
|
1683
|
-
],
|
|
1684
|
-
WF: [
|
|
1685
|
-
"H",
|
|
1686
|
-
"hB"
|
|
1687
|
-
],
|
|
1688
|
-
WS: [
|
|
1689
|
-
"h",
|
|
1690
|
-
"H"
|
|
1691
|
-
],
|
|
1692
|
-
XK: [
|
|
1693
|
-
"H",
|
|
1694
|
-
"hB",
|
|
1695
|
-
"h"
|
|
1696
|
-
],
|
|
1697
|
-
YE: [
|
|
1698
|
-
"h",
|
|
1699
|
-
"hB",
|
|
1700
|
-
"hb",
|
|
1701
|
-
"H"
|
|
1702
|
-
],
|
|
1703
|
-
YT: [
|
|
1704
|
-
"H",
|
|
1705
|
-
"hB"
|
|
1706
|
-
],
|
|
1707
|
-
ZA: [
|
|
1708
|
-
"H",
|
|
1709
|
-
"h",
|
|
1710
|
-
"hb",
|
|
1711
|
-
"hB"
|
|
1712
|
-
],
|
|
1713
|
-
ZM: [
|
|
1714
|
-
"h",
|
|
1715
|
-
"hb",
|
|
1716
|
-
"H",
|
|
1717
|
-
"hB"
|
|
1718
|
-
],
|
|
1719
|
-
ZW: [
|
|
1720
|
-
"H",
|
|
1721
|
-
"h"
|
|
1722
|
-
],
|
|
1723
|
-
"af-ZA": [
|
|
1724
|
-
"H",
|
|
1725
|
-
"h",
|
|
1726
|
-
"hB",
|
|
1727
|
-
"hb"
|
|
1728
|
-
],
|
|
1729
|
-
"ar-001": [
|
|
1730
|
-
"h",
|
|
1731
|
-
"hB",
|
|
1732
|
-
"hb",
|
|
1733
|
-
"H"
|
|
1734
|
-
],
|
|
1735
|
-
"ca-ES": [
|
|
1736
|
-
"H",
|
|
1737
|
-
"h",
|
|
1738
|
-
"hB"
|
|
1739
|
-
],
|
|
1740
|
-
"en-001": [
|
|
1741
|
-
"h",
|
|
1742
|
-
"hb",
|
|
1743
|
-
"H",
|
|
1744
|
-
"hB"
|
|
1745
|
-
],
|
|
1746
|
-
"en-HK": [
|
|
1747
|
-
"h",
|
|
1748
|
-
"hb",
|
|
1749
|
-
"H",
|
|
1750
|
-
"hB"
|
|
1751
|
-
],
|
|
1752
|
-
"en-IL": [
|
|
1753
|
-
"H",
|
|
1754
|
-
"h",
|
|
1755
|
-
"hb",
|
|
1756
|
-
"hB"
|
|
1757
|
-
],
|
|
1758
|
-
"en-MY": [
|
|
1759
|
-
"h",
|
|
1760
|
-
"hb",
|
|
1761
|
-
"H",
|
|
1762
|
-
"hB"
|
|
1763
|
-
],
|
|
1764
|
-
"es-BR": [
|
|
1765
|
-
"H",
|
|
1766
|
-
"h",
|
|
1767
|
-
"hB",
|
|
1768
|
-
"hb"
|
|
1769
|
-
],
|
|
1770
|
-
"es-ES": [
|
|
1771
|
-
"H",
|
|
1772
|
-
"h",
|
|
1773
|
-
"hB",
|
|
1774
|
-
"hb"
|
|
1775
|
-
],
|
|
1776
|
-
"es-GQ": [
|
|
1777
|
-
"H",
|
|
1778
|
-
"h",
|
|
1779
|
-
"hB",
|
|
1780
|
-
"hb"
|
|
1781
|
-
],
|
|
1782
|
-
"fr-CA": [
|
|
1783
|
-
"H",
|
|
1784
|
-
"h",
|
|
1785
|
-
"hB"
|
|
1786
|
-
],
|
|
1787
|
-
"gl-ES": [
|
|
1788
|
-
"H",
|
|
1789
|
-
"h",
|
|
1790
|
-
"hB"
|
|
1791
|
-
],
|
|
1792
|
-
"gu-IN": [
|
|
1793
|
-
"hB",
|
|
1794
|
-
"hb",
|
|
1795
|
-
"h",
|
|
1796
|
-
"H"
|
|
1797
|
-
],
|
|
1798
|
-
"hi-IN": [
|
|
1799
|
-
"hB",
|
|
1800
|
-
"h",
|
|
1801
|
-
"H"
|
|
1802
|
-
],
|
|
1803
|
-
"it-CH": [
|
|
1804
|
-
"H",
|
|
1805
|
-
"h",
|
|
1806
|
-
"hB"
|
|
1807
|
-
],
|
|
1808
|
-
"it-IT": [
|
|
1809
|
-
"H",
|
|
1810
|
-
"h",
|
|
1811
|
-
"hB"
|
|
1812
|
-
],
|
|
1813
|
-
"kn-IN": [
|
|
1814
|
-
"hB",
|
|
1815
|
-
"h",
|
|
1816
|
-
"H"
|
|
1817
|
-
],
|
|
1818
|
-
"ml-IN": [
|
|
1819
|
-
"hB",
|
|
1820
|
-
"h",
|
|
1821
|
-
"H"
|
|
1822
|
-
],
|
|
1823
|
-
"mr-IN": [
|
|
1824
|
-
"hB",
|
|
1825
|
-
"hb",
|
|
1826
|
-
"h",
|
|
1827
|
-
"H"
|
|
1828
|
-
],
|
|
1829
|
-
"pa-IN": [
|
|
1830
|
-
"hB",
|
|
1831
|
-
"hb",
|
|
1832
|
-
"h",
|
|
1833
|
-
"H"
|
|
1834
|
-
],
|
|
1835
|
-
"ta-IN": [
|
|
1836
|
-
"hB",
|
|
1837
|
-
"h",
|
|
1838
|
-
"hb",
|
|
1839
|
-
"H"
|
|
1840
|
-
],
|
|
1841
|
-
"te-IN": [
|
|
1842
|
-
"hB",
|
|
1843
|
-
"h",
|
|
1844
|
-
"H"
|
|
1845
|
-
],
|
|
1846
|
-
"zu-ZA": [
|
|
1847
|
-
"H",
|
|
1848
|
-
"hB",
|
|
1849
|
-
"hb",
|
|
1850
|
-
"h"
|
|
1851
|
-
]
|
|
1852
|
-
};
|
|
1853
|
-
function it(e, t) {
|
|
1854
|
-
for (var r = "", n = 0; n < e.length; n++) {
|
|
1855
|
-
var a = e.charAt(n);
|
|
1856
|
-
if (a === "j") {
|
|
1857
|
-
for (var i = 0; n + 1 < e.length && e.charAt(n + 1) === a; )
|
|
1858
|
-
i++, n++;
|
|
1859
|
-
var o = 1 + (i & 1), s = i < 2 ? 1 : 3 + (i >> 1), u = "a", l = ot(t);
|
|
1860
|
-
for ((l == "H" || l == "k") && (s = 0); s-- > 0; )
|
|
1861
|
-
r += u;
|
|
1862
|
-
for (; o-- > 0; )
|
|
1863
|
-
r = l + r;
|
|
1864
|
-
} else a === "J" ? r += "H" : r += a;
|
|
1865
|
-
}
|
|
1866
|
-
return r;
|
|
1867
|
-
}
|
|
1868
|
-
function ot(e) {
|
|
1869
|
-
var t = e.hourCycle;
|
|
1870
|
-
if (t === void 0 && // @ts-ignore hourCycle(s) is not identified yet
|
|
1871
|
-
e.hourCycles && // @ts-ignore
|
|
1872
|
-
e.hourCycles.length && (t = e.hourCycles[0]), t)
|
|
1873
|
-
switch (t) {
|
|
1874
|
-
case "h24":
|
|
1875
|
-
return "k";
|
|
1876
|
-
case "h23":
|
|
1877
|
-
return "H";
|
|
1878
|
-
case "h12":
|
|
1879
|
-
return "h";
|
|
1880
|
-
case "h11":
|
|
1881
|
-
return "K";
|
|
1882
|
-
default:
|
|
1883
|
-
throw new Error("Invalid hourCycle");
|
|
1884
|
-
}
|
|
1885
|
-
var r = e.language, n;
|
|
1886
|
-
r !== "root" && (n = e.maximize().region);
|
|
1887
|
-
var a = U[n || ""] || U[r || ""] || U["".concat(r, "-001")] || U["001"];
|
|
1888
|
-
return a[0];
|
|
1889
|
-
}
|
|
1890
|
-
var X, st = new RegExp("^".concat(Ae.source, "*")), ut = new RegExp("".concat(Ae.source, "*$"));
|
|
1891
|
-
function v(e, t) {
|
|
1892
|
-
return { start: e, end: t };
|
|
1893
|
-
}
|
|
1894
|
-
var ht = !!String.prototype.startsWith && "_a".startsWith("a", 1), lt = !!String.fromCodePoint, ft = !!Object.fromEntries, mt = !!String.prototype.codePointAt, ct = !!String.prototype.trimStart, gt = !!String.prototype.trimEnd, pt = !!Number.isSafeInteger, vt = pt ? Number.isSafeInteger : function(e) {
|
|
1895
|
-
return typeof e == "number" && isFinite(e) && Math.floor(e) === e && Math.abs(e) <= 9007199254740991;
|
|
1896
|
-
}, q = !0;
|
|
1897
|
-
try {
|
|
1898
|
-
var dt = Re("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
1899
|
-
q = ((X = dt.exec("a")) === null || X === void 0 ? void 0 : X[0]) === "a";
|
|
1900
|
-
} catch {
|
|
1901
|
-
q = !1;
|
|
1902
|
-
}
|
|
1903
|
-
var ue = ht ? (
|
|
1904
|
-
// Native
|
|
1905
|
-
function(t, r, n) {
|
|
1906
|
-
return t.startsWith(r, n);
|
|
1907
|
-
}
|
|
1908
|
-
) : (
|
|
1909
|
-
// For IE11
|
|
1910
|
-
function(t, r, n) {
|
|
1911
|
-
return t.slice(n, n + r.length) === r;
|
|
1912
|
-
}
|
|
1913
|
-
), Q = lt ? String.fromCodePoint : (
|
|
1914
|
-
// IE11
|
|
1915
|
-
function() {
|
|
1916
|
-
for (var t = [], r = 0; r < arguments.length; r++)
|
|
1917
|
-
t[r] = arguments[r];
|
|
1918
|
-
for (var n = "", a = t.length, i = 0, o; a > i; ) {
|
|
1919
|
-
if (o = t[i++], o > 1114111)
|
|
1920
|
-
throw RangeError(o + " is not a valid code point");
|
|
1921
|
-
n += o < 65536 ? String.fromCharCode(o) : String.fromCharCode(((o -= 65536) >> 10) + 55296, o % 1024 + 56320);
|
|
1922
|
-
}
|
|
1923
|
-
return n;
|
|
1924
|
-
}
|
|
1925
|
-
), he = (
|
|
1926
|
-
// native
|
|
1927
|
-
ft ? Object.fromEntries : (
|
|
1928
|
-
// Ponyfill
|
|
1929
|
-
function(t) {
|
|
1930
|
-
for (var r = {}, n = 0, a = t; n < a.length; n++) {
|
|
1931
|
-
var i = a[n], o = i[0], s = i[1];
|
|
1932
|
-
r[o] = s;
|
|
1933
|
-
}
|
|
1934
|
-
return r;
|
|
1935
|
-
}
|
|
1936
|
-
)
|
|
1937
|
-
), Le = mt ? (
|
|
1938
|
-
// Native
|
|
1939
|
-
function(t, r) {
|
|
1940
|
-
return t.codePointAt(r);
|
|
1941
|
-
}
|
|
1942
|
-
) : (
|
|
1943
|
-
// IE 11
|
|
1944
|
-
function(t, r) {
|
|
1945
|
-
var n = t.length;
|
|
1946
|
-
if (!(r < 0 || r >= n)) {
|
|
1947
|
-
var a = t.charCodeAt(r), i;
|
|
1948
|
-
return a < 55296 || a > 56319 || r + 1 === n || (i = t.charCodeAt(r + 1)) < 56320 || i > 57343 ? a : (a - 55296 << 10) + (i - 56320) + 65536;
|
|
1949
|
-
}
|
|
1950
|
-
}
|
|
1951
|
-
), Et = ct ? (
|
|
1952
|
-
// Native
|
|
1953
|
-
function(t) {
|
|
1954
|
-
return t.trimStart();
|
|
1955
|
-
}
|
|
1956
|
-
) : (
|
|
1957
|
-
// Ponyfill
|
|
1958
|
-
function(t) {
|
|
1959
|
-
return t.replace(st, "");
|
|
1960
|
-
}
|
|
1961
|
-
), bt = gt ? (
|
|
1962
|
-
// Native
|
|
1963
|
-
function(t) {
|
|
1964
|
-
return t.trimEnd();
|
|
1965
|
-
}
|
|
1966
|
-
) : (
|
|
1967
|
-
// Ponyfill
|
|
1968
|
-
function(t) {
|
|
1969
|
-
return t.replace(ut, "");
|
|
1970
|
-
}
|
|
1971
|
-
);
|
|
1972
|
-
function Re(e, t) {
|
|
1973
|
-
return new RegExp(e, t);
|
|
1974
|
-
}
|
|
1975
|
-
var Y;
|
|
1976
|
-
if (q) {
|
|
1977
|
-
var le = Re("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
1978
|
-
Y = function(t, r) {
|
|
1979
|
-
var n;
|
|
1980
|
-
le.lastIndex = r;
|
|
1981
|
-
var a = le.exec(t);
|
|
1982
|
-
return (n = a[1]) !== null && n !== void 0 ? n : "";
|
|
1983
|
-
};
|
|
1984
|
-
} else
|
|
1985
|
-
Y = function(t, r) {
|
|
1986
|
-
for (var n = []; ; ) {
|
|
1987
|
-
var a = Le(t, r);
|
|
1988
|
-
if (a === void 0 || Oe(a) || St(a))
|
|
1989
|
-
break;
|
|
1990
|
-
n.push(a), r += a >= 65536 ? 2 : 1;
|
|
1991
|
-
}
|
|
1992
|
-
return Q.apply(void 0, n);
|
|
1993
|
-
};
|
|
1994
|
-
var yt = (
|
|
1995
|
-
/** @class */
|
|
1996
|
-
function() {
|
|
1997
|
-
function e(t, r) {
|
|
1998
|
-
r === void 0 && (r = {}), this.message = t, this.position = { offset: 0, line: 1, column: 1 }, this.ignoreTag = !!r.ignoreTag, this.locale = r.locale, this.requiresOtherClause = !!r.requiresOtherClause, this.shouldParseSkeletons = !!r.shouldParseSkeletons;
|
|
1999
|
-
}
|
|
2000
|
-
return e.prototype.parse = function() {
|
|
2001
|
-
if (this.offset() !== 0)
|
|
2002
|
-
throw Error("parser can only be used once");
|
|
2003
|
-
return this.parseMessage(0, "", !1);
|
|
2004
|
-
}, e.prototype.parseMessage = function(t, r, n) {
|
|
2005
|
-
for (var a = []; !this.isEOF(); ) {
|
|
2006
|
-
var i = this.char();
|
|
2007
|
-
if (i === 123) {
|
|
2008
|
-
var o = this.parseArgument(t, n);
|
|
2009
|
-
if (o.err)
|
|
2010
|
-
return o;
|
|
2011
|
-
a.push(o.val);
|
|
2012
|
-
} else {
|
|
2013
|
-
if (i === 125 && t > 0)
|
|
2014
|
-
break;
|
|
2015
|
-
if (i === 35 && (r === "plural" || r === "selectordinal")) {
|
|
2016
|
-
var s = this.clonePosition();
|
|
2017
|
-
this.bump(), a.push({
|
|
2018
|
-
type: y.pound,
|
|
2019
|
-
location: v(s, this.clonePosition())
|
|
2020
|
-
});
|
|
2021
|
-
} else if (i === 60 && !this.ignoreTag && this.peek() === 47) {
|
|
2022
|
-
if (n)
|
|
2023
|
-
break;
|
|
2024
|
-
return this.error(g.UNMATCHED_CLOSING_TAG, v(this.clonePosition(), this.clonePosition()));
|
|
2025
|
-
} else if (i === 60 && !this.ignoreTag && $(this.peek() || 0)) {
|
|
2026
|
-
var o = this.parseTag(t, r);
|
|
2027
|
-
if (o.err)
|
|
2028
|
-
return o;
|
|
2029
|
-
a.push(o.val);
|
|
2030
|
-
} else {
|
|
2031
|
-
var o = this.parseLiteral(t, r);
|
|
2032
|
-
if (o.err)
|
|
2033
|
-
return o;
|
|
2034
|
-
a.push(o.val);
|
|
2035
|
-
}
|
|
2036
|
-
}
|
|
2037
|
-
}
|
|
2038
|
-
return { val: a, err: null };
|
|
2039
|
-
}, e.prototype.parseTag = function(t, r) {
|
|
2040
|
-
var n = this.clonePosition();
|
|
2041
|
-
this.bump();
|
|
2042
|
-
var a = this.parseTagName();
|
|
2043
|
-
if (this.bumpSpace(), this.bumpIf("/>"))
|
|
2044
|
-
return {
|
|
2045
|
-
val: {
|
|
2046
|
-
type: y.literal,
|
|
2047
|
-
value: "<".concat(a, "/>"),
|
|
2048
|
-
location: v(n, this.clonePosition())
|
|
2049
|
-
},
|
|
2050
|
-
err: null
|
|
2051
|
-
};
|
|
2052
|
-
if (this.bumpIf(">")) {
|
|
2053
|
-
var i = this.parseMessage(t + 1, r, !0);
|
|
2054
|
-
if (i.err)
|
|
2055
|
-
return i;
|
|
2056
|
-
var o = i.val, s = this.clonePosition();
|
|
2057
|
-
if (this.bumpIf("</")) {
|
|
2058
|
-
if (this.isEOF() || !$(this.char()))
|
|
2059
|
-
return this.error(g.INVALID_TAG, v(s, this.clonePosition()));
|
|
2060
|
-
var u = this.clonePosition(), l = this.parseTagName();
|
|
2061
|
-
return a !== l ? this.error(g.UNMATCHED_CLOSING_TAG, v(u, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
|
|
2062
|
-
val: {
|
|
2063
|
-
type: y.tag,
|
|
2064
|
-
value: a,
|
|
2065
|
-
children: o,
|
|
2066
|
-
location: v(n, this.clonePosition())
|
|
2067
|
-
},
|
|
2068
|
-
err: null
|
|
2069
|
-
} : this.error(g.INVALID_TAG, v(s, this.clonePosition())));
|
|
2070
|
-
} else
|
|
2071
|
-
return this.error(g.UNCLOSED_TAG, v(n, this.clonePosition()));
|
|
2072
|
-
} else
|
|
2073
|
-
return this.error(g.INVALID_TAG, v(n, this.clonePosition()));
|
|
2074
|
-
}, e.prototype.parseTagName = function() {
|
|
2075
|
-
var t = this.offset();
|
|
2076
|
-
for (this.bump(); !this.isEOF() && Tt(this.char()); )
|
|
2077
|
-
this.bump();
|
|
2078
|
-
return this.message.slice(t, this.offset());
|
|
2079
|
-
}, e.prototype.parseLiteral = function(t, r) {
|
|
2080
|
-
for (var n = this.clonePosition(), a = ""; ; ) {
|
|
2081
|
-
var i = this.tryParseQuote(r);
|
|
2082
|
-
if (i) {
|
|
2083
|
-
a += i;
|
|
2084
|
-
continue;
|
|
2085
|
-
}
|
|
2086
|
-
var o = this.tryParseUnquoted(t, r);
|
|
2087
|
-
if (o) {
|
|
2088
|
-
a += o;
|
|
2089
|
-
continue;
|
|
2090
|
-
}
|
|
2091
|
-
var s = this.tryParseLeftAngleBracket();
|
|
2092
|
-
if (s) {
|
|
2093
|
-
a += s;
|
|
2094
|
-
continue;
|
|
2095
|
-
}
|
|
2096
|
-
break;
|
|
2097
|
-
}
|
|
2098
|
-
var u = v(n, this.clonePosition());
|
|
2099
|
-
return {
|
|
2100
|
-
val: { type: y.literal, value: a, location: u },
|
|
2101
|
-
err: null
|
|
2102
|
-
};
|
|
2103
|
-
}, e.prototype.tryParseLeftAngleBracket = function() {
|
|
2104
|
-
return !this.isEOF() && this.char() === 60 && (this.ignoreTag || // If at the opening tag or closing tag position, bail.
|
|
2105
|
-
!xt(this.peek() || 0)) ? (this.bump(), "<") : null;
|
|
2106
|
-
}, e.prototype.tryParseQuote = function(t) {
|
|
2107
|
-
if (this.isEOF() || this.char() !== 39)
|
|
2108
|
-
return null;
|
|
2109
|
-
switch (this.peek()) {
|
|
2110
|
-
case 39:
|
|
2111
|
-
return this.bump(), this.bump(), "'";
|
|
2112
|
-
case 123:
|
|
2113
|
-
case 60:
|
|
2114
|
-
case 62:
|
|
2115
|
-
case 125:
|
|
2116
|
-
break;
|
|
2117
|
-
case 35:
|
|
2118
|
-
if (t === "plural" || t === "selectordinal")
|
|
2119
|
-
break;
|
|
2120
|
-
return null;
|
|
2121
|
-
default:
|
|
2122
|
-
return null;
|
|
2123
|
-
}
|
|
2124
|
-
this.bump();
|
|
2125
|
-
var r = [this.char()];
|
|
2126
|
-
for (this.bump(); !this.isEOF(); ) {
|
|
2127
|
-
var n = this.char();
|
|
2128
|
-
if (n === 39)
|
|
2129
|
-
if (this.peek() === 39)
|
|
2130
|
-
r.push(39), this.bump();
|
|
2131
|
-
else {
|
|
2132
|
-
this.bump();
|
|
2133
|
-
break;
|
|
2134
|
-
}
|
|
2135
|
-
else
|
|
2136
|
-
r.push(n);
|
|
2137
|
-
this.bump();
|
|
2138
|
-
}
|
|
2139
|
-
return Q.apply(void 0, r);
|
|
2140
|
-
}, e.prototype.tryParseUnquoted = function(t, r) {
|
|
2141
|
-
if (this.isEOF())
|
|
2142
|
-
return null;
|
|
2143
|
-
var n = this.char();
|
|
2144
|
-
return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(), Q(n));
|
|
2145
|
-
}, e.prototype.parseArgument = function(t, r) {
|
|
2146
|
-
var n = this.clonePosition();
|
|
2147
|
-
if (this.bump(), this.bumpSpace(), this.isEOF())
|
|
2148
|
-
return this.error(g.EXPECT_ARGUMENT_CLOSING_BRACE, v(n, this.clonePosition()));
|
|
2149
|
-
if (this.char() === 125)
|
|
2150
|
-
return this.bump(), this.error(g.EMPTY_ARGUMENT, v(n, this.clonePosition()));
|
|
2151
|
-
var a = this.parseIdentifierIfPossible().value;
|
|
2152
|
-
if (!a)
|
|
2153
|
-
return this.error(g.MALFORMED_ARGUMENT, v(n, this.clonePosition()));
|
|
2154
|
-
if (this.bumpSpace(), this.isEOF())
|
|
2155
|
-
return this.error(g.EXPECT_ARGUMENT_CLOSING_BRACE, v(n, this.clonePosition()));
|
|
2156
|
-
switch (this.char()) {
|
|
2157
|
-
case 125:
|
|
2158
|
-
return this.bump(), {
|
|
2159
|
-
val: {
|
|
2160
|
-
type: y.argument,
|
|
2161
|
-
// value does not include the opening and closing braces.
|
|
2162
|
-
value: a,
|
|
2163
|
-
location: v(n, this.clonePosition())
|
|
2164
|
-
},
|
|
2165
|
-
err: null
|
|
2166
|
-
};
|
|
2167
|
-
case 44:
|
|
2168
|
-
return this.bump(), this.bumpSpace(), this.isEOF() ? this.error(g.EXPECT_ARGUMENT_CLOSING_BRACE, v(n, this.clonePosition())) : this.parseArgumentOptions(t, r, a, n);
|
|
2169
|
-
default:
|
|
2170
|
-
return this.error(g.MALFORMED_ARGUMENT, v(n, this.clonePosition()));
|
|
2171
|
-
}
|
|
2172
|
-
}, e.prototype.parseIdentifierIfPossible = function() {
|
|
2173
|
-
var t = this.clonePosition(), r = this.offset(), n = Y(this.message, r), a = r + n.length;
|
|
2174
|
-
this.bumpTo(a);
|
|
2175
|
-
var i = this.clonePosition(), o = v(t, i);
|
|
2176
|
-
return { value: n, location: o };
|
|
2177
|
-
}, e.prototype.parseArgumentOptions = function(t, r, n, a) {
|
|
2178
|
-
var i, o = this.clonePosition(), s = this.parseIdentifierIfPossible().value, u = this.clonePosition();
|
|
2179
|
-
switch (s) {
|
|
2180
|
-
case "":
|
|
2181
|
-
return this.error(g.EXPECT_ARGUMENT_TYPE, v(o, u));
|
|
2182
|
-
case "number":
|
|
2183
|
-
case "date":
|
|
2184
|
-
case "time": {
|
|
2185
|
-
this.bumpSpace();
|
|
2186
|
-
var l = null;
|
|
2187
|
-
if (this.bumpIf(",")) {
|
|
2188
|
-
this.bumpSpace();
|
|
2189
|
-
var h = this.clonePosition(), m = this.parseSimpleArgStyleIfPossible();
|
|
2190
|
-
if (m.err)
|
|
2191
|
-
return m;
|
|
2192
|
-
var c = bt(m.val);
|
|
2193
|
-
if (c.length === 0)
|
|
2194
|
-
return this.error(g.EXPECT_ARGUMENT_STYLE, v(this.clonePosition(), this.clonePosition()));
|
|
2195
|
-
var b = v(h, this.clonePosition());
|
|
2196
|
-
l = { style: c, styleLocation: b };
|
|
2197
|
-
}
|
|
2198
|
-
var x = this.tryParseArgumentClose(a);
|
|
2199
|
-
if (x.err)
|
|
2200
|
-
return x;
|
|
2201
|
-
var d = v(a, this.clonePosition());
|
|
2202
|
-
if (l && ue(l == null ? void 0 : l.style, "::", 0)) {
|
|
2203
|
-
var p = Et(l.style.slice(2));
|
|
2204
|
-
if (s === "number") {
|
|
2205
|
-
var m = this.parseNumberSkeletonFromString(p, l.styleLocation);
|
|
2206
|
-
return m.err ? m : {
|
|
2207
|
-
val: { type: y.number, value: n, location: d, style: m.val },
|
|
2208
|
-
err: null
|
|
2209
|
-
};
|
|
2210
|
-
} else {
|
|
2211
|
-
if (p.length === 0)
|
|
2212
|
-
return this.error(g.EXPECT_DATE_TIME_SKELETON, d);
|
|
2213
|
-
var E = p;
|
|
2214
|
-
this.locale && (E = it(p, this.locale));
|
|
2215
|
-
var c = {
|
|
2216
|
-
type: D.dateTime,
|
|
2217
|
-
pattern: E,
|
|
2218
|
-
location: l.styleLocation,
|
|
2219
|
-
parsedOptions: this.shouldParseSkeletons ? $e(E) : {}
|
|
2220
|
-
}, T = s === "date" ? y.date : y.time;
|
|
2221
|
-
return {
|
|
2222
|
-
val: { type: T, value: n, location: d, style: c },
|
|
2223
|
-
err: null
|
|
2224
|
-
};
|
|
2225
|
-
}
|
|
2226
|
-
}
|
|
2227
|
-
return {
|
|
2228
|
-
val: {
|
|
2229
|
-
type: s === "number" ? y.number : s === "date" ? y.date : y.time,
|
|
2230
|
-
value: n,
|
|
2231
|
-
location: d,
|
|
2232
|
-
style: (i = l == null ? void 0 : l.style) !== null && i !== void 0 ? i : null
|
|
2233
|
-
},
|
|
2234
|
-
err: null
|
|
2235
|
-
};
|
|
2236
|
-
}
|
|
2237
|
-
case "plural":
|
|
2238
|
-
case "selectordinal":
|
|
2239
|
-
case "select": {
|
|
2240
|
-
var S = this.clonePosition();
|
|
2241
|
-
if (this.bumpSpace(), !this.bumpIf(","))
|
|
2242
|
-
return this.error(g.EXPECT_SELECT_ARGUMENT_OPTIONS, v(S, f({}, S)));
|
|
2243
|
-
this.bumpSpace();
|
|
2244
|
-
var w = this.parseIdentifierIfPossible(), R = 0;
|
|
2245
|
-
if (s !== "select" && w.value === "offset") {
|
|
2246
|
-
if (!this.bumpIf(":"))
|
|
2247
|
-
return this.error(g.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, v(this.clonePosition(), this.clonePosition()));
|
|
2248
|
-
this.bumpSpace();
|
|
2249
|
-
var m = this.tryParseDecimalInteger(g.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, g.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);
|
|
2250
|
-
if (m.err)
|
|
2251
|
-
return m;
|
|
2252
|
-
this.bumpSpace(), w = this.parseIdentifierIfPossible(), R = m.val;
|
|
2253
|
-
}
|
|
2254
|
-
var G = this.tryParsePluralOrSelectOptions(t, s, r, w);
|
|
2255
|
-
if (G.err)
|
|
2256
|
-
return G;
|
|
2257
|
-
var x = this.tryParseArgumentClose(a);
|
|
2258
|
-
if (x.err)
|
|
2259
|
-
return x;
|
|
2260
|
-
var ne = v(a, this.clonePosition());
|
|
2261
|
-
return s === "select" ? {
|
|
2262
|
-
val: {
|
|
2263
|
-
type: y.select,
|
|
2264
|
-
value: n,
|
|
2265
|
-
options: he(G.val),
|
|
2266
|
-
location: ne
|
|
2267
|
-
},
|
|
2268
|
-
err: null
|
|
2269
|
-
} : {
|
|
2270
|
-
val: {
|
|
2271
|
-
type: y.plural,
|
|
2272
|
-
value: n,
|
|
2273
|
-
options: he(G.val),
|
|
2274
|
-
offset: R,
|
|
2275
|
-
pluralType: s === "plural" ? "cardinal" : "ordinal",
|
|
2276
|
-
location: ne
|
|
2277
|
-
},
|
|
2278
|
-
err: null
|
|
2279
|
-
};
|
|
2280
|
-
}
|
|
2281
|
-
default:
|
|
2282
|
-
return this.error(g.INVALID_ARGUMENT_TYPE, v(o, u));
|
|
2283
|
-
}
|
|
2284
|
-
}, e.prototype.tryParseArgumentClose = function(t) {
|
|
2285
|
-
return this.isEOF() || this.char() !== 125 ? this.error(g.EXPECT_ARGUMENT_CLOSING_BRACE, v(t, this.clonePosition())) : (this.bump(), { val: !0, err: null });
|
|
2286
|
-
}, e.prototype.parseSimpleArgStyleIfPossible = function() {
|
|
2287
|
-
for (var t = 0, r = this.clonePosition(); !this.isEOF(); ) {
|
|
2288
|
-
var n = this.char();
|
|
2289
|
-
switch (n) {
|
|
2290
|
-
case 39: {
|
|
2291
|
-
this.bump();
|
|
2292
|
-
var a = this.clonePosition();
|
|
2293
|
-
if (!this.bumpUntil("'"))
|
|
2294
|
-
return this.error(g.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE, v(a, this.clonePosition()));
|
|
2295
|
-
this.bump();
|
|
2296
|
-
break;
|
|
2297
|
-
}
|
|
2298
|
-
case 123: {
|
|
2299
|
-
t += 1, this.bump();
|
|
2300
|
-
break;
|
|
2301
|
-
}
|
|
2302
|
-
case 125: {
|
|
2303
|
-
if (t > 0)
|
|
2304
|
-
t -= 1;
|
|
2305
|
-
else
|
|
2306
|
-
return {
|
|
2307
|
-
val: this.message.slice(r.offset, this.offset()),
|
|
2308
|
-
err: null
|
|
2309
|
-
};
|
|
2310
|
-
break;
|
|
2311
|
-
}
|
|
2312
|
-
default:
|
|
2313
|
-
this.bump();
|
|
2314
|
-
break;
|
|
2315
|
-
}
|
|
2316
|
-
}
|
|
2317
|
-
return {
|
|
2318
|
-
val: this.message.slice(r.offset, this.offset()),
|
|
2319
|
-
err: null
|
|
2320
|
-
};
|
|
2321
|
-
}, e.prototype.parseNumberSkeletonFromString = function(t, r) {
|
|
2322
|
-
var n = [];
|
|
2323
|
-
try {
|
|
2324
|
-
n = et(t);
|
|
2325
|
-
} catch {
|
|
2326
|
-
return this.error(g.INVALID_NUMBER_SKELETON, r);
|
|
2327
|
-
}
|
|
2328
|
-
return {
|
|
2329
|
-
val: {
|
|
2330
|
-
type: D.number,
|
|
2331
|
-
tokens: n,
|
|
2332
|
-
location: r,
|
|
2333
|
-
parsedOptions: this.shouldParseSkeletons ? at(n) : {}
|
|
2334
|
-
},
|
|
2335
|
-
err: null
|
|
2336
|
-
};
|
|
2337
|
-
}, e.prototype.tryParsePluralOrSelectOptions = function(t, r, n, a) {
|
|
2338
|
-
for (var i, o = !1, s = [], u = /* @__PURE__ */ new Set(), l = a.value, h = a.location; ; ) {
|
|
2339
|
-
if (l.length === 0) {
|
|
2340
|
-
var m = this.clonePosition();
|
|
2341
|
-
if (r !== "select" && this.bumpIf("=")) {
|
|
2342
|
-
var c = this.tryParseDecimalInteger(g.EXPECT_PLURAL_ARGUMENT_SELECTOR, g.INVALID_PLURAL_ARGUMENT_SELECTOR);
|
|
2343
|
-
if (c.err)
|
|
2344
|
-
return c;
|
|
2345
|
-
h = v(m, this.clonePosition()), l = this.message.slice(m.offset, this.offset());
|
|
2346
|
-
} else
|
|
2347
|
-
break;
|
|
2348
|
-
}
|
|
2349
|
-
if (u.has(l))
|
|
2350
|
-
return this.error(r === "select" ? g.DUPLICATE_SELECT_ARGUMENT_SELECTOR : g.DUPLICATE_PLURAL_ARGUMENT_SELECTOR, h);
|
|
2351
|
-
l === "other" && (o = !0), this.bumpSpace();
|
|
2352
|
-
var b = this.clonePosition();
|
|
2353
|
-
if (!this.bumpIf("{"))
|
|
2354
|
-
return this.error(r === "select" ? g.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT : g.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT, v(this.clonePosition(), this.clonePosition()));
|
|
2355
|
-
var x = this.parseMessage(t + 1, r, n);
|
|
2356
|
-
if (x.err)
|
|
2357
|
-
return x;
|
|
2358
|
-
var d = this.tryParseArgumentClose(b);
|
|
2359
|
-
if (d.err)
|
|
2360
|
-
return d;
|
|
2361
|
-
s.push([
|
|
2362
|
-
l,
|
|
2363
|
-
{
|
|
2364
|
-
value: x.val,
|
|
2365
|
-
location: v(b, this.clonePosition())
|
|
2366
|
-
}
|
|
2367
|
-
]), u.add(l), this.bumpSpace(), i = this.parseIdentifierIfPossible(), l = i.value, h = i.location;
|
|
2368
|
-
}
|
|
2369
|
-
return s.length === 0 ? this.error(r === "select" ? g.EXPECT_SELECT_ARGUMENT_SELECTOR : g.EXPECT_PLURAL_ARGUMENT_SELECTOR, v(this.clonePosition(), this.clonePosition())) : this.requiresOtherClause && !o ? this.error(g.MISSING_OTHER_CLAUSE, v(this.clonePosition(), this.clonePosition())) : { val: s, err: null };
|
|
2370
|
-
}, e.prototype.tryParseDecimalInteger = function(t, r) {
|
|
2371
|
-
var n = 1, a = this.clonePosition();
|
|
2372
|
-
this.bumpIf("+") || this.bumpIf("-") && (n = -1);
|
|
2373
|
-
for (var i = !1, o = 0; !this.isEOF(); ) {
|
|
2374
|
-
var s = this.char();
|
|
2375
|
-
if (s >= 48 && s <= 57)
|
|
2376
|
-
i = !0, o = o * 10 + (s - 48), this.bump();
|
|
2377
|
-
else
|
|
2378
|
-
break;
|
|
2379
|
-
}
|
|
2380
|
-
var u = v(a, this.clonePosition());
|
|
2381
|
-
return i ? (o *= n, vt(o) ? { val: o, err: null } : this.error(r, u)) : this.error(t, u);
|
|
2382
|
-
}, e.prototype.offset = function() {
|
|
2383
|
-
return this.position.offset;
|
|
2384
|
-
}, e.prototype.isEOF = function() {
|
|
2385
|
-
return this.offset() === this.message.length;
|
|
2386
|
-
}, e.prototype.clonePosition = function() {
|
|
2387
|
-
return {
|
|
2388
|
-
offset: this.position.offset,
|
|
2389
|
-
line: this.position.line,
|
|
2390
|
-
column: this.position.column
|
|
2391
|
-
};
|
|
2392
|
-
}, e.prototype.char = function() {
|
|
2393
|
-
var t = this.position.offset;
|
|
2394
|
-
if (t >= this.message.length)
|
|
2395
|
-
throw Error("out of bound");
|
|
2396
|
-
var r = Le(this.message, t);
|
|
2397
|
-
if (r === void 0)
|
|
2398
|
-
throw Error("Offset ".concat(t, " is at invalid UTF-16 code unit boundary"));
|
|
2399
|
-
return r;
|
|
2400
|
-
}, e.prototype.error = function(t, r) {
|
|
2401
|
-
return {
|
|
2402
|
-
val: null,
|
|
2403
|
-
err: {
|
|
2404
|
-
kind: t,
|
|
2405
|
-
message: this.message,
|
|
2406
|
-
location: r
|
|
2407
|
-
}
|
|
2408
|
-
};
|
|
2409
|
-
}, e.prototype.bump = function() {
|
|
2410
|
-
if (!this.isEOF()) {
|
|
2411
|
-
var t = this.char();
|
|
2412
|
-
t === 10 ? (this.position.line += 1, this.position.column = 1, this.position.offset += 1) : (this.position.column += 1, this.position.offset += t < 65536 ? 1 : 2);
|
|
2413
|
-
}
|
|
2414
|
-
}, e.prototype.bumpIf = function(t) {
|
|
2415
|
-
if (ue(this.message, t, this.offset())) {
|
|
2416
|
-
for (var r = 0; r < t.length; r++)
|
|
2417
|
-
this.bump();
|
|
2418
|
-
return !0;
|
|
2419
|
-
}
|
|
2420
|
-
return !1;
|
|
2421
|
-
}, e.prototype.bumpUntil = function(t) {
|
|
2422
|
-
var r = this.offset(), n = this.message.indexOf(t, r);
|
|
2423
|
-
return n >= 0 ? (this.bumpTo(n), !0) : (this.bumpTo(this.message.length), !1);
|
|
2424
|
-
}, e.prototype.bumpTo = function(t) {
|
|
2425
|
-
if (this.offset() > t)
|
|
2426
|
-
throw Error("targetOffset ".concat(t, " must be greater than or equal to the current offset ").concat(this.offset()));
|
|
2427
|
-
for (t = Math.min(t, this.message.length); ; ) {
|
|
2428
|
-
var r = this.offset();
|
|
2429
|
-
if (r === t)
|
|
2430
|
-
break;
|
|
2431
|
-
if (r > t)
|
|
2432
|
-
throw Error("targetOffset ".concat(t, " is at invalid UTF-16 code unit boundary"));
|
|
2433
|
-
if (this.bump(), this.isEOF())
|
|
2434
|
-
break;
|
|
2435
|
-
}
|
|
2436
|
-
}, e.prototype.bumpSpace = function() {
|
|
2437
|
-
for (; !this.isEOF() && Oe(this.char()); )
|
|
2438
|
-
this.bump();
|
|
2439
|
-
}, e.prototype.peek = function() {
|
|
2440
|
-
if (this.isEOF())
|
|
2441
|
-
return null;
|
|
2442
|
-
var t = this.char(), r = this.offset(), n = this.message.charCodeAt(r + (t >= 65536 ? 2 : 1));
|
|
2443
|
-
return n ?? null;
|
|
2444
|
-
}, e;
|
|
2445
|
-
}()
|
|
2446
|
-
);
|
|
2447
|
-
function $(e) {
|
|
2448
|
-
return e >= 97 && e <= 122 || e >= 65 && e <= 90;
|
|
2449
|
-
}
|
|
2450
|
-
function xt(e) {
|
|
2451
|
-
return $(e) || e === 47;
|
|
2452
|
-
}
|
|
2453
|
-
function Tt(e) {
|
|
2454
|
-
return e === 45 || e === 46 || e >= 48 && e <= 57 || e === 95 || e >= 97 && e <= 122 || e >= 65 && e <= 90 || e == 183 || e >= 192 && e <= 214 || e >= 216 && e <= 246 || e >= 248 && e <= 893 || e >= 895 && e <= 8191 || e >= 8204 && e <= 8205 || e >= 8255 && e <= 8256 || e >= 8304 && e <= 8591 || e >= 11264 && e <= 12271 || e >= 12289 && e <= 55295 || e >= 63744 && e <= 64975 || e >= 65008 && e <= 65533 || e >= 65536 && e <= 983039;
|
|
2455
|
-
}
|
|
2456
|
-
function Oe(e) {
|
|
2457
|
-
return e >= 9 && e <= 13 || e === 32 || e === 133 || e >= 8206 && e <= 8207 || e === 8232 || e === 8233;
|
|
2458
|
-
}
|
|
2459
|
-
function St(e) {
|
|
2460
|
-
return e >= 33 && e <= 35 || e === 36 || e >= 37 && e <= 39 || e === 40 || e === 41 || e === 42 || e === 43 || e === 44 || e === 45 || e >= 46 && e <= 47 || e >= 58 && e <= 59 || e >= 60 && e <= 62 || e >= 63 && e <= 64 || e === 91 || e === 92 || e === 93 || e === 94 || e === 96 || e === 123 || e === 124 || e === 125 || e === 126 || e === 161 || e >= 162 && e <= 165 || e === 166 || e === 167 || e === 169 || e === 171 || e === 172 || e === 174 || e === 176 || e === 177 || e === 182 || e === 187 || e === 191 || e === 215 || e === 247 || e >= 8208 && e <= 8213 || e >= 8214 && e <= 8215 || e === 8216 || e === 8217 || e === 8218 || e >= 8219 && e <= 8220 || e === 8221 || e === 8222 || e === 8223 || e >= 8224 && e <= 8231 || e >= 8240 && e <= 8248 || e === 8249 || e === 8250 || e >= 8251 && e <= 8254 || e >= 8257 && e <= 8259 || e === 8260 || e === 8261 || e === 8262 || e >= 8263 && e <= 8273 || e === 8274 || e === 8275 || e >= 8277 && e <= 8286 || e >= 8592 && e <= 8596 || e >= 8597 && e <= 8601 || e >= 8602 && e <= 8603 || e >= 8604 && e <= 8607 || e === 8608 || e >= 8609 && e <= 8610 || e === 8611 || e >= 8612 && e <= 8613 || e === 8614 || e >= 8615 && e <= 8621 || e === 8622 || e >= 8623 && e <= 8653 || e >= 8654 && e <= 8655 || e >= 8656 && e <= 8657 || e === 8658 || e === 8659 || e === 8660 || e >= 8661 && e <= 8691 || e >= 8692 && e <= 8959 || e >= 8960 && e <= 8967 || e === 8968 || e === 8969 || e === 8970 || e === 8971 || e >= 8972 && e <= 8991 || e >= 8992 && e <= 8993 || e >= 8994 && e <= 9e3 || e === 9001 || e === 9002 || e >= 9003 && e <= 9083 || e === 9084 || e >= 9085 && e <= 9114 || e >= 9115 && e <= 9139 || e >= 9140 && e <= 9179 || e >= 9180 && e <= 9185 || e >= 9186 && e <= 9254 || e >= 9255 && e <= 9279 || e >= 9280 && e <= 9290 || e >= 9291 && e <= 9311 || e >= 9472 && e <= 9654 || e === 9655 || e >= 9656 && e <= 9664 || e === 9665 || e >= 9666 && e <= 9719 || e >= 9720 && e <= 9727 || e >= 9728 && e <= 9838 || e === 9839 || e >= 9840 && e <= 10087 || e === 10088 || e === 10089 || e === 10090 || e === 10091 || e === 10092 || e === 10093 || e === 10094 || e === 10095 || e === 10096 || e === 10097 || e === 10098 || e === 10099 || e === 10100 || e === 10101 || e >= 10132 && e <= 10175 || e >= 10176 && e <= 10180 || e === 10181 || e === 10182 || e >= 10183 && e <= 10213 || e === 10214 || e === 10215 || e === 10216 || e === 10217 || e === 10218 || e === 10219 || e === 10220 || e === 10221 || e === 10222 || e === 10223 || e >= 10224 && e <= 10239 || e >= 10240 && e <= 10495 || e >= 10496 && e <= 10626 || e === 10627 || e === 10628 || e === 10629 || e === 10630 || e === 10631 || e === 10632 || e === 10633 || e === 10634 || e === 10635 || e === 10636 || e === 10637 || e === 10638 || e === 10639 || e === 10640 || e === 10641 || e === 10642 || e === 10643 || e === 10644 || e === 10645 || e === 10646 || e === 10647 || e === 10648 || e >= 10649 && e <= 10711 || e === 10712 || e === 10713 || e === 10714 || e === 10715 || e >= 10716 && e <= 10747 || e === 10748 || e === 10749 || e >= 10750 && e <= 11007 || e >= 11008 && e <= 11055 || e >= 11056 && e <= 11076 || e >= 11077 && e <= 11078 || e >= 11079 && e <= 11084 || e >= 11085 && e <= 11123 || e >= 11124 && e <= 11125 || e >= 11126 && e <= 11157 || e === 11158 || e >= 11159 && e <= 11263 || e >= 11776 && e <= 11777 || e === 11778 || e === 11779 || e === 11780 || e === 11781 || e >= 11782 && e <= 11784 || e === 11785 || e === 11786 || e === 11787 || e === 11788 || e === 11789 || e >= 11790 && e <= 11798 || e === 11799 || e >= 11800 && e <= 11801 || e === 11802 || e === 11803 || e === 11804 || e === 11805 || e >= 11806 && e <= 11807 || e === 11808 || e === 11809 || e === 11810 || e === 11811 || e === 11812 || e === 11813 || e === 11814 || e === 11815 || e === 11816 || e === 11817 || e >= 11818 && e <= 11822 || e === 11823 || e >= 11824 && e <= 11833 || e >= 11834 && e <= 11835 || e >= 11836 && e <= 11839 || e === 11840 || e === 11841 || e === 11842 || e >= 11843 && e <= 11855 || e >= 11856 && e <= 11857 || e === 11858 || e >= 11859 && e <= 11903 || e >= 12289 && e <= 12291 || e === 12296 || e === 12297 || e === 12298 || e === 12299 || e === 12300 || e === 12301 || e === 12302 || e === 12303 || e === 12304 || e === 12305 || e >= 12306 && e <= 12307 || e === 12308 || e === 12309 || e === 12310 || e === 12311 || e === 12312 || e === 12313 || e === 12314 || e === 12315 || e === 12316 || e === 12317 || e >= 12318 && e <= 12319 || e === 12320 || e === 12336 || e === 64830 || e === 64831 || e >= 65093 && e <= 65094;
|
|
2461
|
-
}
|
|
2462
|
-
function K(e) {
|
|
2463
|
-
e.forEach(function(t) {
|
|
2464
|
-
if (delete t.location, Se(t) || He(t))
|
|
2465
|
-
for (var r in t.options)
|
|
2466
|
-
delete t.options[r].location, K(t.options[r].value);
|
|
2467
|
-
else ye(t) && Ne(t.style) || (xe(t) || Te(t)) && J(t.style) ? delete t.style.location : Ie(t) && K(t.children);
|
|
2468
|
-
});
|
|
2469
|
-
}
|
|
2470
|
-
function Ht(e, t) {
|
|
2471
|
-
t === void 0 && (t = {}), t = f({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
|
|
2472
|
-
var r = new yt(e, t).parse();
|
|
2473
|
-
if (r.err) {
|
|
2474
|
-
var n = SyntaxError(g[r.err.kind]);
|
|
2475
|
-
throw n.location = r.err.location, n.originalMessage = r.err.message, n;
|
|
2476
|
-
}
|
|
2477
|
-
return t != null && t.captureLocation || K(r.val), r.val;
|
|
2478
|
-
}
|
|
2479
|
-
var P;
|
|
2480
|
-
(function(e) {
|
|
2481
|
-
e.MISSING_VALUE = "MISSING_VALUE", e.INVALID_VALUE = "INVALID_VALUE", e.MISSING_INTL_API = "MISSING_INTL_API";
|
|
2482
|
-
})(P || (P = {}));
|
|
2483
|
-
var L = (
|
|
2484
|
-
/** @class */
|
|
2485
|
-
function(e) {
|
|
2486
|
-
_(t, e);
|
|
2487
|
-
function t(r, n, a) {
|
|
2488
|
-
var i = e.call(this, r) || this;
|
|
2489
|
-
return i.code = n, i.originalMessage = a, i;
|
|
2490
|
-
}
|
|
2491
|
-
return t.prototype.toString = function() {
|
|
2492
|
-
return "[formatjs Error: ".concat(this.code, "] ").concat(this.message);
|
|
2493
|
-
}, t;
|
|
2494
|
-
}(Error)
|
|
2495
|
-
), fe = (
|
|
2496
|
-
/** @class */
|
|
2497
|
-
function(e) {
|
|
2498
|
-
_(t, e);
|
|
2499
|
-
function t(r, n, a, i) {
|
|
2500
|
-
return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(a).join('", "'), '"'), P.INVALID_VALUE, i) || this;
|
|
2501
|
-
}
|
|
2502
|
-
return t;
|
|
2503
|
-
}(L)
|
|
2504
|
-
), It = (
|
|
2505
|
-
/** @class */
|
|
2506
|
-
function(e) {
|
|
2507
|
-
_(t, e);
|
|
2508
|
-
function t(r, n, a) {
|
|
2509
|
-
return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n), P.INVALID_VALUE, a) || this;
|
|
2510
|
-
}
|
|
2511
|
-
return t;
|
|
2512
|
-
}(L)
|
|
2513
|
-
), Nt = (
|
|
2514
|
-
/** @class */
|
|
2515
|
-
function(e) {
|
|
2516
|
-
_(t, e);
|
|
2517
|
-
function t(r, n) {
|
|
2518
|
-
return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'), P.MISSING_VALUE, n) || this;
|
|
2519
|
-
}
|
|
2520
|
-
return t;
|
|
2521
|
-
}(L)
|
|
2522
|
-
), H;
|
|
2523
|
-
(function(e) {
|
|
2524
|
-
e[e.literal = 0] = "literal", e[e.object = 1] = "object";
|
|
2525
|
-
})(H || (H = {}));
|
|
2526
|
-
function At(e) {
|
|
2527
|
-
return e.length < 2 ? e : e.reduce(function(t, r) {
|
|
2528
|
-
var n = t[t.length - 1];
|
|
2529
|
-
return !n || n.type !== H.literal || r.type !== H.literal ? t.push(r) : n.value += r.value, t;
|
|
2530
|
-
}, []);
|
|
2531
|
-
}
|
|
2532
|
-
function Bt(e) {
|
|
2533
|
-
return typeof e == "function";
|
|
2534
|
-
}
|
|
2535
|
-
function k(e, t, r, n, a, i, o) {
|
|
2536
|
-
if (e.length === 1 && ae(e[0]))
|
|
2537
|
-
return [
|
|
2538
|
-
{
|
|
2539
|
-
type: H.literal,
|
|
2540
|
-
value: e[0].value
|
|
2541
|
-
}
|
|
2542
|
-
];
|
|
2543
|
-
for (var s = [], u = 0, l = e; u < l.length; u++) {
|
|
2544
|
-
var h = l[u];
|
|
2545
|
-
if (ae(h)) {
|
|
2546
|
-
s.push({
|
|
2547
|
-
type: H.literal,
|
|
2548
|
-
value: h.value
|
|
2549
|
-
});
|
|
2550
|
-
continue;
|
|
2551
|
-
}
|
|
2552
|
-
if (Qe(h)) {
|
|
2553
|
-
typeof i == "number" && s.push({
|
|
2554
|
-
type: H.literal,
|
|
2555
|
-
value: r.getNumberFormat(t).format(i)
|
|
2556
|
-
});
|
|
2557
|
-
continue;
|
|
2558
|
-
}
|
|
2559
|
-
var m = h.value;
|
|
2560
|
-
if (!(a && m in a))
|
|
2561
|
-
throw new Nt(m, o);
|
|
2562
|
-
var c = a[m];
|
|
2563
|
-
if (qe(h)) {
|
|
2564
|
-
(!c || typeof c == "string" || typeof c == "number") && (c = typeof c == "string" || typeof c == "number" ? String(c) : ""), s.push({
|
|
2565
|
-
type: typeof c == "string" ? H.literal : H.object,
|
|
2566
|
-
value: c
|
|
2567
|
-
});
|
|
2568
|
-
continue;
|
|
2569
|
-
}
|
|
2570
|
-
if (xe(h)) {
|
|
2571
|
-
var b = typeof h.style == "string" ? n.date[h.style] : J(h.style) ? h.style.parsedOptions : void 0;
|
|
2572
|
-
s.push({
|
|
2573
|
-
type: H.literal,
|
|
2574
|
-
value: r.getDateTimeFormat(t, b).format(c)
|
|
2575
|
-
});
|
|
2576
|
-
continue;
|
|
2577
|
-
}
|
|
2578
|
-
if (Te(h)) {
|
|
2579
|
-
var b = typeof h.style == "string" ? n.time[h.style] : J(h.style) ? h.style.parsedOptions : n.time.medium;
|
|
2580
|
-
s.push({
|
|
2581
|
-
type: H.literal,
|
|
2582
|
-
value: r.getDateTimeFormat(t, b).format(c)
|
|
2583
|
-
});
|
|
2584
|
-
continue;
|
|
2585
|
-
}
|
|
2586
|
-
if (ye(h)) {
|
|
2587
|
-
var b = typeof h.style == "string" ? n.number[h.style] : Ne(h.style) ? h.style.parsedOptions : void 0;
|
|
2588
|
-
b && b.scale && (c = c * (b.scale || 1)), s.push({
|
|
2589
|
-
type: H.literal,
|
|
2590
|
-
value: r.getNumberFormat(t, b).format(c)
|
|
2591
|
-
});
|
|
2592
|
-
continue;
|
|
2593
|
-
}
|
|
2594
|
-
if (Ie(h)) {
|
|
2595
|
-
var x = h.children, d = h.value, p = a[d];
|
|
2596
|
-
if (!Bt(p))
|
|
2597
|
-
throw new It(d, "function", o);
|
|
2598
|
-
var E = k(x, t, r, n, a, i), T = p(E.map(function(R) {
|
|
2599
|
-
return R.value;
|
|
2600
|
-
}));
|
|
2601
|
-
Array.isArray(T) || (T = [T]), s.push.apply(s, T.map(function(R) {
|
|
2602
|
-
return {
|
|
2603
|
-
type: typeof R == "string" ? H.literal : H.object,
|
|
2604
|
-
value: R
|
|
2605
|
-
};
|
|
2606
|
-
}));
|
|
2607
|
-
}
|
|
2608
|
-
if (Se(h)) {
|
|
2609
|
-
var S = h.options[c] || h.options.other;
|
|
2610
|
-
if (!S)
|
|
2611
|
-
throw new fe(h.value, c, Object.keys(h.options), o);
|
|
2612
|
-
s.push.apply(s, k(S.value, t, r, n, a));
|
|
2613
|
-
continue;
|
|
2614
|
-
}
|
|
2615
|
-
if (He(h)) {
|
|
2616
|
-
var S = h.options["=".concat(c)];
|
|
2617
|
-
if (!S) {
|
|
2618
|
-
if (!Intl.PluralRules)
|
|
2619
|
-
throw new L(`Intl.PluralRules is not available in this environment.
|
|
2620
|
-
Try polyfilling it using "@formatjs/intl-pluralrules"
|
|
2621
|
-
`, P.MISSING_INTL_API, o);
|
|
2622
|
-
var w = r.getPluralRules(t, { type: h.pluralType }).select(c - (h.offset || 0));
|
|
2623
|
-
S = h.options[w] || h.options.other;
|
|
2624
|
-
}
|
|
2625
|
-
if (!S)
|
|
2626
|
-
throw new fe(h.value, c, Object.keys(h.options), o);
|
|
2627
|
-
s.push.apply(s, k(S.value, t, r, n, a, c - (h.offset || 0)));
|
|
2628
|
-
continue;
|
|
2629
|
-
}
|
|
2630
|
-
}
|
|
2631
|
-
return At(s);
|
|
2632
|
-
}
|
|
2633
|
-
function _t(e, t) {
|
|
2634
|
-
return t ? f(f(f({}, e || {}), t || {}), Object.keys(e).reduce(function(r, n) {
|
|
2635
|
-
return r[n] = f(f({}, e[n]), t[n] || {}), r;
|
|
2636
|
-
}, {})) : e;
|
|
2637
|
-
}
|
|
2638
|
-
function Pt(e, t) {
|
|
2639
|
-
return t ? Object.keys(e).reduce(function(r, n) {
|
|
2640
|
-
return r[n] = _t(e[n], t[n]), r;
|
|
2641
|
-
}, f({}, e)) : e;
|
|
2642
|
-
}
|
|
2643
|
-
function W(e) {
|
|
2644
|
-
return {
|
|
2645
|
-
create: function() {
|
|
2646
|
-
return {
|
|
2647
|
-
get: function(t) {
|
|
2648
|
-
return e[t];
|
|
2649
|
-
},
|
|
2650
|
-
set: function(t, r) {
|
|
2651
|
-
e[t] = r;
|
|
2652
|
-
}
|
|
2653
|
-
};
|
|
2654
|
-
}
|
|
2655
|
-
};
|
|
2656
|
-
}
|
|
2657
|
-
function Lt(e) {
|
|
2658
|
-
return e === void 0 && (e = {
|
|
2659
|
-
number: {},
|
|
2660
|
-
dateTime: {},
|
|
2661
|
-
pluralRules: {}
|
|
2662
|
-
}), {
|
|
2663
|
-
getNumberFormat: I(function() {
|
|
2664
|
-
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
2665
|
-
r[n] = arguments[n];
|
|
2666
|
-
return new ((t = Intl.NumberFormat).bind.apply(t, A([void 0], r, !1)))();
|
|
2667
|
-
}, {
|
|
2668
|
-
cache: W(e.number),
|
|
2669
|
-
strategy: N.variadic
|
|
2670
|
-
}),
|
|
2671
|
-
getDateTimeFormat: I(function() {
|
|
2672
|
-
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
2673
|
-
r[n] = arguments[n];
|
|
2674
|
-
return new ((t = Intl.DateTimeFormat).bind.apply(t, A([void 0], r, !1)))();
|
|
2675
|
-
}, {
|
|
2676
|
-
cache: W(e.dateTime),
|
|
2677
|
-
strategy: N.variadic
|
|
2678
|
-
}),
|
|
2679
|
-
getPluralRules: I(function() {
|
|
2680
|
-
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
2681
|
-
r[n] = arguments[n];
|
|
2682
|
-
return new ((t = Intl.PluralRules).bind.apply(t, A([void 0], r, !1)))();
|
|
2683
|
-
}, {
|
|
2684
|
-
cache: W(e.pluralRules),
|
|
2685
|
-
strategy: N.variadic
|
|
2686
|
-
})
|
|
2687
|
-
};
|
|
2688
|
-
}
|
|
2689
|
-
var Me = (
|
|
2690
|
-
/** @class */
|
|
2691
|
-
function() {
|
|
2692
|
-
function e(t, r, n, a) {
|
|
2693
|
-
r === void 0 && (r = e.defaultLocale);
|
|
2694
|
-
var i = this;
|
|
2695
|
-
if (this.formatterCache = {
|
|
2696
|
-
number: {},
|
|
2697
|
-
dateTime: {},
|
|
2698
|
-
pluralRules: {}
|
|
2699
|
-
}, this.format = function(u) {
|
|
2700
|
-
var l = i.formatToParts(u);
|
|
2701
|
-
if (l.length === 1)
|
|
2702
|
-
return l[0].value;
|
|
2703
|
-
var h = l.reduce(function(m, c) {
|
|
2704
|
-
return !m.length || c.type !== H.literal || typeof m[m.length - 1] != "string" ? m.push(c.value) : m[m.length - 1] += c.value, m;
|
|
2705
|
-
}, []);
|
|
2706
|
-
return h.length <= 1 ? h[0] || "" : h;
|
|
2707
|
-
}, this.formatToParts = function(u) {
|
|
2708
|
-
return k(i.ast, i.locales, i.formatters, i.formats, u, void 0, i.message);
|
|
2709
|
-
}, this.resolvedOptions = function() {
|
|
2710
|
-
var u;
|
|
2711
|
-
return {
|
|
2712
|
-
locale: ((u = i.resolvedLocale) === null || u === void 0 ? void 0 : u.toString()) || Intl.NumberFormat.supportedLocalesOf(i.locales)[0]
|
|
2713
|
-
};
|
|
2714
|
-
}, this.getAst = function() {
|
|
2715
|
-
return i.ast;
|
|
2716
|
-
}, this.locales = r, this.resolvedLocale = e.resolveLocale(r), typeof t == "string") {
|
|
2717
|
-
if (this.message = t, !e.__parse)
|
|
2718
|
-
throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");
|
|
2719
|
-
var o = a || {};
|
|
2720
|
-
o.formatters;
|
|
2721
|
-
var s = ke(o, ["formatters"]);
|
|
2722
|
-
this.ast = e.__parse(t, f(f({}, s), { locale: this.resolvedLocale }));
|
|
2723
|
-
} else
|
|
2724
|
-
this.ast = t;
|
|
2725
|
-
if (!Array.isArray(this.ast))
|
|
2726
|
-
throw new TypeError("A message must be provided as a String or AST.");
|
|
2727
|
-
this.formats = Pt(e.formats, n), this.formatters = a && a.formatters || Lt(this.formatterCache);
|
|
2728
|
-
}
|
|
2729
|
-
return Object.defineProperty(e, "defaultLocale", {
|
|
2730
|
-
get: function() {
|
|
2731
|
-
return e.memoizedDefaultLocale || (e.memoizedDefaultLocale = new Intl.NumberFormat().resolvedOptions().locale), e.memoizedDefaultLocale;
|
|
2732
|
-
},
|
|
2733
|
-
enumerable: !1,
|
|
2734
|
-
configurable: !0
|
|
2735
|
-
}), e.memoizedDefaultLocale = null, e.resolveLocale = function(t) {
|
|
2736
|
-
if (!(typeof Intl.Locale > "u")) {
|
|
2737
|
-
var r = Intl.NumberFormat.supportedLocalesOf(t);
|
|
2738
|
-
return r.length > 0 ? new Intl.Locale(r[0]) : new Intl.Locale(typeof t == "string" ? t : t[0]);
|
|
2739
|
-
}
|
|
2740
|
-
}, e.__parse = Ht, e.formats = {
|
|
2741
|
-
number: {
|
|
2742
|
-
integer: {
|
|
2743
|
-
maximumFractionDigits: 0
|
|
2744
|
-
},
|
|
2745
|
-
currency: {
|
|
2746
|
-
style: "currency"
|
|
2747
|
-
},
|
|
2748
|
-
percent: {
|
|
2749
|
-
style: "percent"
|
|
2750
|
-
}
|
|
2751
|
-
},
|
|
2752
|
-
date: {
|
|
2753
|
-
short: {
|
|
2754
|
-
month: "numeric",
|
|
2755
|
-
day: "numeric",
|
|
2756
|
-
year: "2-digit"
|
|
2757
|
-
},
|
|
2758
|
-
medium: {
|
|
2759
|
-
month: "short",
|
|
2760
|
-
day: "numeric",
|
|
2761
|
-
year: "numeric"
|
|
2762
|
-
},
|
|
2763
|
-
long: {
|
|
2764
|
-
month: "long",
|
|
2765
|
-
day: "numeric",
|
|
2766
|
-
year: "numeric"
|
|
2767
|
-
},
|
|
2768
|
-
full: {
|
|
2769
|
-
weekday: "long",
|
|
2770
|
-
month: "long",
|
|
2771
|
-
day: "numeric",
|
|
2772
|
-
year: "numeric"
|
|
2773
|
-
}
|
|
2774
|
-
},
|
|
2775
|
-
time: {
|
|
2776
|
-
short: {
|
|
2777
|
-
hour: "numeric",
|
|
2778
|
-
minute: "numeric"
|
|
2779
|
-
},
|
|
2780
|
-
medium: {
|
|
2781
|
-
hour: "numeric",
|
|
2782
|
-
minute: "numeric",
|
|
2783
|
-
second: "numeric"
|
|
2784
|
-
},
|
|
2785
|
-
long: {
|
|
2786
|
-
hour: "numeric",
|
|
2787
|
-
minute: "numeric",
|
|
2788
|
-
second: "numeric",
|
|
2789
|
-
timeZoneName: "short"
|
|
2790
|
-
},
|
|
2791
|
-
full: {
|
|
2792
|
-
hour: "numeric",
|
|
2793
|
-
minute: "numeric",
|
|
2794
|
-
second: "numeric",
|
|
2795
|
-
timeZoneName: "short"
|
|
2796
|
-
}
|
|
2797
|
-
}
|
|
2798
|
-
}, e;
|
|
2799
|
-
}()
|
|
2800
|
-
), M;
|
|
2801
|
-
(function(e) {
|
|
2802
|
-
e.FORMAT_ERROR = "FORMAT_ERROR", e.UNSUPPORTED_FORMATTER = "UNSUPPORTED_FORMATTER", e.INVALID_CONFIG = "INVALID_CONFIG", e.MISSING_DATA = "MISSING_DATA", e.MISSING_TRANSLATION = "MISSING_TRANSLATION";
|
|
2803
|
-
})(M || (M = {}));
|
|
2804
|
-
var F = (
|
|
2805
|
-
/** @class */
|
|
2806
|
-
function(e) {
|
|
2807
|
-
_(t, e);
|
|
2808
|
-
function t(r, n, a) {
|
|
2809
|
-
var i = this, o = a ? a instanceof Error ? a : new Error(String(a)) : void 0;
|
|
2810
|
-
return i = e.call(this, "[@formatjs/intl Error ".concat(r, "] ").concat(n, `
|
|
2811
|
-
`).concat(o ? `
|
|
2812
|
-
`.concat(o.message, `
|
|
2813
|
-
`).concat(o.stack) : "")) || this, i.code = r, typeof Error.captureStackTrace == "function" && Error.captureStackTrace(i, t), i;
|
|
2814
|
-
}
|
|
2815
|
-
return t;
|
|
2816
|
-
}(Error)
|
|
2817
|
-
), Rt = (
|
|
2818
|
-
/** @class */
|
|
2819
|
-
function(e) {
|
|
2820
|
-
_(t, e);
|
|
2821
|
-
function t(r, n) {
|
|
2822
|
-
return e.call(this, M.UNSUPPORTED_FORMATTER, r, n) || this;
|
|
2823
|
-
}
|
|
2824
|
-
return t;
|
|
2825
|
-
}(F)
|
|
2826
|
-
), Ot = (
|
|
2827
|
-
/** @class */
|
|
2828
|
-
function(e) {
|
|
2829
|
-
_(t, e);
|
|
2830
|
-
function t(r, n) {
|
|
2831
|
-
return e.call(this, M.INVALID_CONFIG, r, n) || this;
|
|
2832
|
-
}
|
|
2833
|
-
return t;
|
|
2834
|
-
}(F)
|
|
2835
|
-
), me = (
|
|
2836
|
-
/** @class */
|
|
2837
|
-
function(e) {
|
|
2838
|
-
_(t, e);
|
|
2839
|
-
function t(r, n) {
|
|
2840
|
-
return e.call(this, M.MISSING_DATA, r, n) || this;
|
|
2841
|
-
}
|
|
2842
|
-
return t;
|
|
2843
|
-
}(F)
|
|
2844
|
-
), B = (
|
|
2845
|
-
/** @class */
|
|
2846
|
-
function(e) {
|
|
2847
|
-
_(t, e);
|
|
2848
|
-
function t(r, n, a) {
|
|
2849
|
-
var i = e.call(this, M.FORMAT_ERROR, "".concat(r, `
|
|
2850
|
-
Locale: `).concat(n, `
|
|
2851
|
-
`), a) || this;
|
|
2852
|
-
return i.locale = n, i;
|
|
2853
|
-
}
|
|
2854
|
-
return t;
|
|
2855
|
-
}(F)
|
|
2856
|
-
), Z = (
|
|
2857
|
-
/** @class */
|
|
2858
|
-
function(e) {
|
|
2859
|
-
_(t, e);
|
|
2860
|
-
function t(r, n, a, i) {
|
|
2861
|
-
var o = e.call(this, "".concat(r, `
|
|
2862
|
-
MessageID: `).concat(a == null ? void 0 : a.id, `
|
|
2863
|
-
Default Message: `).concat(a == null ? void 0 : a.defaultMessage, `
|
|
2864
|
-
Description: `).concat(a == null ? void 0 : a.description, `
|
|
2865
|
-
`), n, i) || this;
|
|
2866
|
-
return o.descriptor = a, o.locale = n, o;
|
|
2867
|
-
}
|
|
2868
|
-
return t;
|
|
2869
|
-
}(B)
|
|
2870
|
-
), Mt = (
|
|
2871
|
-
/** @class */
|
|
2872
|
-
function(e) {
|
|
2873
|
-
_(t, e);
|
|
2874
|
-
function t(r, n) {
|
|
2875
|
-
var a = e.call(this, M.MISSING_TRANSLATION, 'Missing message: "'.concat(r.id, '" for locale "').concat(n, '", using ').concat(r.defaultMessage ? "default message (".concat(typeof r.defaultMessage == "string" ? r.defaultMessage : r.defaultMessage.map(function(i) {
|
|
2876
|
-
var o;
|
|
2877
|
-
return (o = i.value) !== null && o !== void 0 ? o : JSON.stringify(i);
|
|
2878
|
-
}).join(), ")") : "id", " as fallback.")) || this;
|
|
2879
|
-
return a.descriptor = r, a;
|
|
2880
|
-
}
|
|
2881
|
-
return t;
|
|
2882
|
-
}(F)
|
|
2883
|
-
);
|
|
2884
|
-
function C(e, t, r) {
|
|
2885
|
-
return r === void 0 && (r = {}), t.reduce(function(n, a) {
|
|
2886
|
-
return a in e ? n[a] = e[a] : a in r && (n[a] = r[a]), n;
|
|
2887
|
-
}, {});
|
|
2888
|
-
}
|
|
2889
|
-
var Ct = function(e) {
|
|
2890
|
-
process.env.NODE_ENV !== "production" && console.error(e);
|
|
2891
|
-
}, Dt = function(e) {
|
|
2892
|
-
process.env.NODE_ENV !== "production" && console.warn(e);
|
|
2893
|
-
}, wt = {
|
|
2894
|
-
formats: {},
|
|
2895
|
-
messages: {},
|
|
2896
|
-
timeZone: void 0,
|
|
2897
|
-
defaultLocale: "en",
|
|
2898
|
-
defaultFormats: {},
|
|
2899
|
-
fallbackOnEmptyString: !0,
|
|
2900
|
-
onError: Ct,
|
|
2901
|
-
onWarn: Dt
|
|
2902
|
-
};
|
|
2903
|
-
function Ce() {
|
|
2904
|
-
return {
|
|
2905
|
-
dateTime: {},
|
|
2906
|
-
number: {},
|
|
2907
|
-
message: {},
|
|
2908
|
-
relativeTime: {},
|
|
2909
|
-
pluralRules: {},
|
|
2910
|
-
list: {},
|
|
2911
|
-
displayNames: {}
|
|
2912
|
-
};
|
|
2913
|
-
}
|
|
2914
|
-
function O(e) {
|
|
2915
|
-
return {
|
|
2916
|
-
create: function() {
|
|
2917
|
-
return {
|
|
2918
|
-
get: function(t) {
|
|
2919
|
-
return e[t];
|
|
2920
|
-
},
|
|
2921
|
-
set: function(t, r) {
|
|
2922
|
-
e[t] = r;
|
|
2923
|
-
}
|
|
2924
|
-
};
|
|
2925
|
-
}
|
|
2926
|
-
};
|
|
2927
|
-
}
|
|
2928
|
-
function Ft(e) {
|
|
2929
|
-
e === void 0 && (e = Ce());
|
|
2930
|
-
var t = Intl.RelativeTimeFormat, r = Intl.ListFormat, n = Intl.DisplayNames, a = I(function() {
|
|
2931
|
-
for (var s, u = [], l = 0; l < arguments.length; l++)
|
|
2932
|
-
u[l] = arguments[l];
|
|
2933
|
-
return new ((s = Intl.DateTimeFormat).bind.apply(s, A([void 0], u, !1)))();
|
|
2934
|
-
}, {
|
|
2935
|
-
cache: O(e.dateTime),
|
|
2936
|
-
strategy: N.variadic
|
|
2937
|
-
}), i = I(function() {
|
|
2938
|
-
for (var s, u = [], l = 0; l < arguments.length; l++)
|
|
2939
|
-
u[l] = arguments[l];
|
|
2940
|
-
return new ((s = Intl.NumberFormat).bind.apply(s, A([void 0], u, !1)))();
|
|
2941
|
-
}, {
|
|
2942
|
-
cache: O(e.number),
|
|
2943
|
-
strategy: N.variadic
|
|
2944
|
-
}), o = I(function() {
|
|
2945
|
-
for (var s, u = [], l = 0; l < arguments.length; l++)
|
|
2946
|
-
u[l] = arguments[l];
|
|
2947
|
-
return new ((s = Intl.PluralRules).bind.apply(s, A([void 0], u, !1)))();
|
|
2948
|
-
}, {
|
|
2949
|
-
cache: O(e.pluralRules),
|
|
2950
|
-
strategy: N.variadic
|
|
2951
|
-
});
|
|
2952
|
-
return {
|
|
2953
|
-
getDateTimeFormat: a,
|
|
2954
|
-
getNumberFormat: i,
|
|
2955
|
-
getMessageFormat: I(function(s, u, l, h) {
|
|
2956
|
-
return new Me(s, u, l, f({ formatters: {
|
|
2957
|
-
getNumberFormat: i,
|
|
2958
|
-
getDateTimeFormat: a,
|
|
2959
|
-
getPluralRules: o
|
|
2960
|
-
} }, h || {}));
|
|
2961
|
-
}, {
|
|
2962
|
-
cache: O(e.message),
|
|
2963
|
-
strategy: N.variadic
|
|
2964
|
-
}),
|
|
2965
|
-
getRelativeTimeFormat: I(function() {
|
|
2966
|
-
for (var s = [], u = 0; u < arguments.length; u++)
|
|
2967
|
-
s[u] = arguments[u];
|
|
2968
|
-
return new (t.bind.apply(t, A([void 0], s, !1)))();
|
|
2969
|
-
}, {
|
|
2970
|
-
cache: O(e.relativeTime),
|
|
2971
|
-
strategy: N.variadic
|
|
2972
|
-
}),
|
|
2973
|
-
getPluralRules: o,
|
|
2974
|
-
getListFormat: I(function() {
|
|
2975
|
-
for (var s = [], u = 0; u < arguments.length; u++)
|
|
2976
|
-
s[u] = arguments[u];
|
|
2977
|
-
return new (r.bind.apply(r, A([void 0], s, !1)))();
|
|
2978
|
-
}, {
|
|
2979
|
-
cache: O(e.list),
|
|
2980
|
-
strategy: N.variadic
|
|
2981
|
-
}),
|
|
2982
|
-
getDisplayNames: I(function() {
|
|
2983
|
-
for (var s = [], u = 0; u < arguments.length; u++)
|
|
2984
|
-
s[u] = arguments[u];
|
|
2985
|
-
return new (n.bind.apply(n, A([void 0], s, !1)))();
|
|
2986
|
-
}, {
|
|
2987
|
-
cache: O(e.displayNames),
|
|
2988
|
-
strategy: N.variadic
|
|
2989
|
-
})
|
|
2990
|
-
};
|
|
2991
|
-
}
|
|
2992
|
-
function re(e, t, r, n) {
|
|
2993
|
-
var a = e && e[t], i;
|
|
2994
|
-
if (a && (i = a[r]), i)
|
|
2995
|
-
return i;
|
|
2996
|
-
n(new Rt("No ".concat(t, " format named: ").concat(r)));
|
|
2997
|
-
}
|
|
2998
|
-
function Gt(e, t, r) {
|
|
2999
|
-
if (r === void 0 && (r = Error), !e)
|
|
3000
|
-
throw new r(t);
|
|
3001
|
-
}
|
|
3002
|
-
I(function() {
|
|
3003
|
-
for (var e, t = [], r = 0; r < arguments.length; r++)
|
|
3004
|
-
t[r] = arguments[r];
|
|
3005
|
-
return new ((e = Intl.NumberFormat).bind.apply(e, A([void 0], t, !1)))();
|
|
3006
|
-
}, {
|
|
3007
|
-
strategy: N.variadic
|
|
3008
|
-
});
|
|
3009
|
-
I(function() {
|
|
3010
|
-
for (var e, t = [], r = 0; r < arguments.length; r++)
|
|
3011
|
-
t[r] = arguments[r];
|
|
3012
|
-
return new ((e = Intl.DateTimeFormat).bind.apply(e, A([void 0], t, !1)))();
|
|
3013
|
-
}, {
|
|
3014
|
-
strategy: N.variadic
|
|
3015
|
-
});
|
|
3016
|
-
I(function() {
|
|
3017
|
-
for (var e, t = [], r = 0; r < arguments.length; r++)
|
|
3018
|
-
t[r] = arguments[r];
|
|
3019
|
-
return new ((e = Intl.PluralRules).bind.apply(e, A([void 0], t, !1)))();
|
|
3020
|
-
}, {
|
|
3021
|
-
strategy: N.variadic
|
|
3022
|
-
});
|
|
3023
|
-
I(function() {
|
|
3024
|
-
for (var e, t = [], r = 0; r < arguments.length; r++)
|
|
3025
|
-
t[r] = arguments[r];
|
|
3026
|
-
return new ((e = Intl.Locale).bind.apply(e, A([void 0], t, !1)))();
|
|
3027
|
-
}, {
|
|
3028
|
-
strategy: N.variadic
|
|
3029
|
-
});
|
|
3030
|
-
I(function() {
|
|
3031
|
-
for (var e, t = [], r = 0; r < arguments.length; r++)
|
|
3032
|
-
t[r] = arguments[r];
|
|
3033
|
-
return new ((e = Intl.ListFormat).bind.apply(e, A([void 0], t, !1)))();
|
|
3034
|
-
}, {
|
|
3035
|
-
strategy: N.variadic
|
|
3036
|
-
});
|
|
3037
|
-
function V(e, t) {
|
|
3038
|
-
return Object.keys(e).reduce(function(r, n) {
|
|
3039
|
-
return r[n] = f({ timeZone: t }, e[n]), r;
|
|
3040
|
-
}, {});
|
|
3041
|
-
}
|
|
3042
|
-
function ce(e, t) {
|
|
3043
|
-
var r = Object.keys(f(f({}, e), t));
|
|
3044
|
-
return r.reduce(function(n, a) {
|
|
3045
|
-
return n[a] = f(f({}, e[a] || {}), t[a] || {}), n;
|
|
3046
|
-
}, {});
|
|
3047
|
-
}
|
|
3048
|
-
function ge(e, t) {
|
|
3049
|
-
if (!t)
|
|
3050
|
-
return e;
|
|
3051
|
-
var r = Me.formats;
|
|
3052
|
-
return f(f(f({}, r), e), { date: ce(V(r.date, t), V(e.date || {}, t)), time: ce(V(r.time, t), V(e.time || {}, t)) });
|
|
3053
|
-
}
|
|
3054
|
-
var pe = function(e, t, r, n, a) {
|
|
3055
|
-
var i = e.locale, o = e.formats, s = e.messages, u = e.defaultLocale, l = e.defaultFormats, h = e.fallbackOnEmptyString, m = e.onError, c = e.timeZone, b = e.defaultRichTextElements;
|
|
3056
|
-
r === void 0 && (r = { id: "" });
|
|
3057
|
-
var x = r.id, d = r.defaultMessage;
|
|
3058
|
-
Gt(!!x, "[@formatjs/intl] An `id` must be provided to format a message. You can either:\n1. Configure your build toolchain with [babel-plugin-formatjs](https://formatjs.io/docs/tooling/babel-plugin)\nor [@formatjs/ts-transformer](https://formatjs.io/docs/tooling/ts-transformer) OR\n2. Configure your `eslint` config to include [eslint-plugin-formatjs](https://formatjs.io/docs/tooling/linter#enforce-id)\nto autofix this issue");
|
|
3059
|
-
var p = String(x), E = (
|
|
3060
|
-
// In case messages is Object.create(null)
|
|
3061
|
-
// e.g import('foo.json') from webpack)
|
|
3062
|
-
// See https://github.com/formatjs/formatjs/issues/1914
|
|
3063
|
-
s && Object.prototype.hasOwnProperty.call(s, p) && s[p]
|
|
3064
|
-
);
|
|
3065
|
-
if (Array.isArray(E) && E.length === 1 && E[0].type === y.literal)
|
|
3066
|
-
return E[0].value;
|
|
3067
|
-
if (!n && E && typeof E == "string" && !b)
|
|
3068
|
-
return E.replace(/'\{(.*?)\}'/gi, "{$1}");
|
|
3069
|
-
if (n = f(f({}, b), n || {}), o = ge(o, c), l = ge(l, c), !E) {
|
|
3070
|
-
if (h === !1 && E === "")
|
|
3071
|
-
return E;
|
|
3072
|
-
if ((!d || i && i.toLowerCase() !== u.toLowerCase()) && m(new Mt(r, i)), d)
|
|
3073
|
-
try {
|
|
3074
|
-
var T = t.getMessageFormat(d, u, l, a);
|
|
3075
|
-
return T.format(n);
|
|
3076
|
-
} catch (S) {
|
|
3077
|
-
return m(new Z('Error formatting default message for: "'.concat(p, '", rendering default message verbatim'), i, r, S)), typeof d == "string" ? d : p;
|
|
3078
|
-
}
|
|
3079
|
-
return p;
|
|
3080
|
-
}
|
|
3081
|
-
try {
|
|
3082
|
-
var T = t.getMessageFormat(E, i, o, f({ formatters: t }, a || {}));
|
|
3083
|
-
return T.format(n);
|
|
3084
|
-
} catch (S) {
|
|
3085
|
-
m(new Z('Error formatting message: "'.concat(p, '", using ').concat(d ? "default message" : "id", " as fallback."), i, r, S));
|
|
3086
|
-
}
|
|
3087
|
-
if (d)
|
|
3088
|
-
try {
|
|
3089
|
-
var T = t.getMessageFormat(d, u, l, a);
|
|
3090
|
-
return T.format(n);
|
|
3091
|
-
} catch (S) {
|
|
3092
|
-
m(new Z('Error formatting the default message for: "'.concat(p, '", rendering message verbatim'), i, r, S));
|
|
3093
|
-
}
|
|
3094
|
-
return typeof E == "string" ? E : typeof d == "string" ? d : p;
|
|
3095
|
-
}, De = [
|
|
3096
|
-
"formatMatcher",
|
|
3097
|
-
"timeZone",
|
|
3098
|
-
"hour12",
|
|
3099
|
-
"weekday",
|
|
3100
|
-
"era",
|
|
3101
|
-
"year",
|
|
3102
|
-
"month",
|
|
3103
|
-
"day",
|
|
3104
|
-
"hour",
|
|
3105
|
-
"minute",
|
|
3106
|
-
"second",
|
|
3107
|
-
"timeZoneName",
|
|
3108
|
-
"hourCycle",
|
|
3109
|
-
"dateStyle",
|
|
3110
|
-
"timeStyle",
|
|
3111
|
-
"calendar",
|
|
3112
|
-
// 'dayPeriod',
|
|
3113
|
-
"numberingSystem",
|
|
3114
|
-
"fractionalSecondDigits"
|
|
3115
|
-
];
|
|
3116
|
-
function j(e, t, r, n) {
|
|
3117
|
-
var a = e.locale, i = e.formats, o = e.onError, s = e.timeZone;
|
|
3118
|
-
n === void 0 && (n = {});
|
|
3119
|
-
var u = n.format, l = f(f({}, s && { timeZone: s }), u && re(i, t, u, o)), h = C(n, De, l);
|
|
3120
|
-
return t === "time" && !h.hour && !h.minute && !h.second && !h.timeStyle && !h.dateStyle && (h = f(f({}, h), { hour: "numeric", minute: "numeric" })), r(a, h);
|
|
3121
|
-
}
|
|
3122
|
-
function Ut(e, t) {
|
|
3123
|
-
for (var r = [], n = 2; n < arguments.length; n++)
|
|
3124
|
-
r[n - 2] = arguments[n];
|
|
3125
|
-
var a = r[0], i = r[1], o = i === void 0 ? {} : i, s = typeof a == "string" ? new Date(a || 0) : a;
|
|
3126
|
-
try {
|
|
3127
|
-
return j(e, "date", t, o).format(s);
|
|
3128
|
-
} catch (u) {
|
|
3129
|
-
e.onError(new B("Error formatting date.", e.locale, u));
|
|
3130
|
-
}
|
|
3131
|
-
return String(s);
|
|
3132
|
-
}
|
|
3133
|
-
function Vt(e, t) {
|
|
3134
|
-
for (var r = [], n = 2; n < arguments.length; n++)
|
|
3135
|
-
r[n - 2] = arguments[n];
|
|
3136
|
-
var a = r[0], i = r[1], o = i === void 0 ? {} : i, s = typeof a == "string" ? new Date(a || 0) : a;
|
|
3137
|
-
try {
|
|
3138
|
-
return j(e, "time", t, o).format(s);
|
|
3139
|
-
} catch (u) {
|
|
3140
|
-
e.onError(new B("Error formatting time.", e.locale, u));
|
|
3141
|
-
}
|
|
3142
|
-
return String(s);
|
|
3143
|
-
}
|
|
3144
|
-
function kt(e, t) {
|
|
3145
|
-
for (var r = [], n = 2; n < arguments.length; n++)
|
|
3146
|
-
r[n - 2] = arguments[n];
|
|
3147
|
-
var a = r[0], i = r[1], o = r[2], s = o === void 0 ? {} : o, u = e.timeZone, l = e.locale, h = e.onError, m = C(s, De, u ? { timeZone: u } : {});
|
|
3148
|
-
try {
|
|
3149
|
-
return t(l, m).formatRange(a, i);
|
|
3150
|
-
} catch (c) {
|
|
3151
|
-
h(new B("Error formatting date time range.", e.locale, c));
|
|
3152
|
-
}
|
|
3153
|
-
return String(a);
|
|
3154
|
-
}
|
|
3155
|
-
function jt(e, t) {
|
|
3156
|
-
for (var r = [], n = 2; n < arguments.length; n++)
|
|
3157
|
-
r[n - 2] = arguments[n];
|
|
3158
|
-
var a = r[0], i = r[1], o = i === void 0 ? {} : i, s = typeof a == "string" ? new Date(a || 0) : a;
|
|
3159
|
-
try {
|
|
3160
|
-
return j(e, "date", t, o).formatToParts(s);
|
|
3161
|
-
} catch (u) {
|
|
3162
|
-
e.onError(new B("Error formatting date.", e.locale, u));
|
|
3163
|
-
}
|
|
3164
|
-
return [];
|
|
3165
|
-
}
|
|
3166
|
-
function Xt(e, t) {
|
|
3167
|
-
for (var r = [], n = 2; n < arguments.length; n++)
|
|
3168
|
-
r[n - 2] = arguments[n];
|
|
3169
|
-
var a = r[0], i = r[1], o = i === void 0 ? {} : i, s = typeof a == "string" ? new Date(a || 0) : a;
|
|
3170
|
-
try {
|
|
3171
|
-
return j(e, "time", t, o).formatToParts(s);
|
|
3172
|
-
} catch (u) {
|
|
3173
|
-
e.onError(new B("Error formatting time.", e.locale, u));
|
|
3174
|
-
}
|
|
3175
|
-
return [];
|
|
3176
|
-
}
|
|
3177
|
-
var Wt = [
|
|
3178
|
-
"style",
|
|
3179
|
-
"type",
|
|
3180
|
-
"fallback",
|
|
3181
|
-
"languageDisplay"
|
|
3182
|
-
];
|
|
3183
|
-
function Zt(e, t, r, n) {
|
|
3184
|
-
var a = e.locale, i = e.onError, o = Intl.DisplayNames;
|
|
3185
|
-
o || i(new L(`Intl.DisplayNames is not available in this environment.
|
|
3186
|
-
Try polyfilling it using "@formatjs/intl-displaynames"
|
|
3187
|
-
`, P.MISSING_INTL_API));
|
|
3188
|
-
var s = C(n, Wt);
|
|
3189
|
-
try {
|
|
3190
|
-
return t(a, s).of(r);
|
|
3191
|
-
} catch (u) {
|
|
3192
|
-
i(new B("Error formatting display name.", a, u));
|
|
3193
|
-
}
|
|
3194
|
-
}
|
|
3195
|
-
var zt = [
|
|
3196
|
-
"type",
|
|
3197
|
-
"style"
|
|
3198
|
-
], ve = Date.now();
|
|
3199
|
-
function Jt(e) {
|
|
3200
|
-
return "".concat(ve, "_").concat(e, "_").concat(ve);
|
|
3201
|
-
}
|
|
3202
|
-
function qt(e, t, r, n) {
|
|
3203
|
-
n === void 0 && (n = {});
|
|
3204
|
-
var a = we(e, t, r, n).reduce(function(i, o) {
|
|
3205
|
-
var s = o.value;
|
|
3206
|
-
return typeof s != "string" ? i.push(s) : typeof i[i.length - 1] == "string" ? i[i.length - 1] += s : i.push(s), i;
|
|
3207
|
-
}, []);
|
|
3208
|
-
return a.length === 1 ? a[0] : a.length === 0 ? "" : a;
|
|
3209
|
-
}
|
|
3210
|
-
function we(e, t, r, n) {
|
|
3211
|
-
var a = e.locale, i = e.onError;
|
|
3212
|
-
n === void 0 && (n = {});
|
|
3213
|
-
var o = Intl.ListFormat;
|
|
3214
|
-
o || i(new L(`Intl.ListFormat is not available in this environment.
|
|
3215
|
-
Try polyfilling it using "@formatjs/intl-listformat"
|
|
3216
|
-
`, P.MISSING_INTL_API));
|
|
3217
|
-
var s = C(n, zt);
|
|
3218
|
-
try {
|
|
3219
|
-
var u = {}, l = r.map(function(h, m) {
|
|
3220
|
-
if (typeof h == "object") {
|
|
3221
|
-
var c = Jt(m);
|
|
3222
|
-
return u[c] = h, c;
|
|
3223
|
-
}
|
|
3224
|
-
return String(h);
|
|
3225
|
-
});
|
|
3226
|
-
return t(a, s).formatToParts(l).map(function(h) {
|
|
3227
|
-
return h.type === "literal" ? h : f(f({}, h), { value: u[h.value] || h.value });
|
|
3228
|
-
});
|
|
3229
|
-
} catch (h) {
|
|
3230
|
-
i(new B("Error formatting list.", a, h));
|
|
3231
|
-
}
|
|
3232
|
-
return r;
|
|
3233
|
-
}
|
|
3234
|
-
var Qt = ["type"];
|
|
3235
|
-
function Yt(e, t, r, n) {
|
|
3236
|
-
var a = e.locale, i = e.onError;
|
|
3237
|
-
n === void 0 && (n = {}), Intl.PluralRules || i(new L(`Intl.PluralRules is not available in this environment.
|
|
3238
|
-
Try polyfilling it using "@formatjs/intl-pluralrules"
|
|
3239
|
-
`, P.MISSING_INTL_API));
|
|
3240
|
-
var o = C(n, Qt);
|
|
3241
|
-
try {
|
|
3242
|
-
return t(a, o).select(r);
|
|
3243
|
-
} catch (s) {
|
|
3244
|
-
i(new B("Error formatting plural.", a, s));
|
|
3245
|
-
}
|
|
3246
|
-
return "other";
|
|
3247
|
-
}
|
|
3248
|
-
var $t = ["numeric", "style"];
|
|
3249
|
-
function Kt(e, t, r) {
|
|
3250
|
-
var n = e.locale, a = e.formats, i = e.onError;
|
|
3251
|
-
r === void 0 && (r = {});
|
|
3252
|
-
var o = r.format, s = !!o && re(a, "relative", o, i) || {}, u = C(r, $t, s);
|
|
3253
|
-
return t(n, u);
|
|
3254
|
-
}
|
|
3255
|
-
function er(e, t, r, n, a) {
|
|
3256
|
-
a === void 0 && (a = {}), n || (n = "second");
|
|
3257
|
-
var i = Intl.RelativeTimeFormat;
|
|
3258
|
-
i || e.onError(new L(`Intl.RelativeTimeFormat is not available in this environment.
|
|
3259
|
-
Try polyfilling it using "@formatjs/intl-relativetimeformat"
|
|
3260
|
-
`, P.MISSING_INTL_API));
|
|
3261
|
-
try {
|
|
3262
|
-
return Kt(e, t, a).format(r, n);
|
|
3263
|
-
} catch (o) {
|
|
3264
|
-
e.onError(new B("Error formatting relative time.", e.locale, o));
|
|
3265
|
-
}
|
|
3266
|
-
return String(r);
|
|
3267
|
-
}
|
|
3268
|
-
var tr = [
|
|
3269
|
-
"style",
|
|
3270
|
-
"currency",
|
|
3271
|
-
"unit",
|
|
3272
|
-
"unitDisplay",
|
|
3273
|
-
"useGrouping",
|
|
3274
|
-
"minimumIntegerDigits",
|
|
3275
|
-
"minimumFractionDigits",
|
|
3276
|
-
"maximumFractionDigits",
|
|
3277
|
-
"minimumSignificantDigits",
|
|
3278
|
-
"maximumSignificantDigits",
|
|
3279
|
-
// ES2020 NumberFormat
|
|
3280
|
-
"compactDisplay",
|
|
3281
|
-
"currencyDisplay",
|
|
3282
|
-
"currencySign",
|
|
3283
|
-
"notation",
|
|
3284
|
-
"signDisplay",
|
|
3285
|
-
"unit",
|
|
3286
|
-
"unitDisplay",
|
|
3287
|
-
"numberingSystem",
|
|
3288
|
-
// ES2023 NumberFormat
|
|
3289
|
-
"trailingZeroDisplay",
|
|
3290
|
-
"roundingPriority",
|
|
3291
|
-
"roundingIncrement",
|
|
3292
|
-
"roundingMode"
|
|
3293
|
-
];
|
|
3294
|
-
function Fe(e, t, r) {
|
|
3295
|
-
var n = e.locale, a = e.formats, i = e.onError;
|
|
3296
|
-
r === void 0 && (r = {});
|
|
3297
|
-
var o = r.format, s = o && re(a, "number", o, i) || {}, u = C(r, tr, s);
|
|
3298
|
-
return t(n, u);
|
|
3299
|
-
}
|
|
3300
|
-
function rr(e, t, r, n) {
|
|
3301
|
-
n === void 0 && (n = {});
|
|
3302
|
-
try {
|
|
3303
|
-
return Fe(e, t, n).format(r);
|
|
3304
|
-
} catch (a) {
|
|
3305
|
-
e.onError(new B("Error formatting number.", e.locale, a));
|
|
3306
|
-
}
|
|
3307
|
-
return String(r);
|
|
3308
|
-
}
|
|
3309
|
-
function nr(e, t, r, n) {
|
|
3310
|
-
n === void 0 && (n = {});
|
|
3311
|
-
try {
|
|
3312
|
-
return Fe(e, t, n).formatToParts(r);
|
|
3313
|
-
} catch (a) {
|
|
3314
|
-
e.onError(new B("Error formatting number.", e.locale, a));
|
|
3315
|
-
}
|
|
3316
|
-
return [];
|
|
3317
|
-
}
|
|
3318
|
-
function ar(e) {
|
|
3319
|
-
var t = e ? e[Object.keys(e)[0]] : void 0;
|
|
3320
|
-
return typeof t == "string";
|
|
3321
|
-
}
|
|
3322
|
-
function ir(e) {
|
|
3323
|
-
e.onWarn && e.defaultRichTextElements && ar(e.messages || {}) && e.onWarn(`[@formatjs/intl] "defaultRichTextElements" was specified but "message" was not pre-compiled.
|
|
3324
|
-
Please consider using "@formatjs/cli" to pre-compile your messages for performance.
|
|
3325
|
-
For more details see https://formatjs.io/docs/getting-started/message-distribution`);
|
|
3326
|
-
}
|
|
3327
|
-
function or(e, t) {
|
|
3328
|
-
var r = Ft(t), n = f(f({}, wt), e), a = n.locale, i = n.defaultLocale, o = n.onError;
|
|
3329
|
-
return a ? !Intl.NumberFormat.supportedLocalesOf(a).length && o ? o(new me('Missing locale data for locale: "'.concat(a, '" in Intl.NumberFormat. Using default locale: "').concat(i, '" as fallback. See https://formatjs.io/docs/react-intl#runtime-requirements for more details'))) : !Intl.DateTimeFormat.supportedLocalesOf(a).length && o && o(new me('Missing locale data for locale: "'.concat(a, '" in Intl.DateTimeFormat. Using default locale: "').concat(i, '" as fallback. See https://formatjs.io/docs/react-intl#runtime-requirements for more details'))) : (o && o(new Ot('"locale" was not configured, using "'.concat(i, '" as fallback. See https://formatjs.io/docs/react-intl/api#intlshape for more details'))), n.locale = n.defaultLocale || "en"), ir(n), f(f({}, n), {
|
|
3330
|
-
formatters: r,
|
|
3331
|
-
formatNumber: rr.bind(null, n, r.getNumberFormat),
|
|
3332
|
-
formatNumberToParts: nr.bind(null, n, r.getNumberFormat),
|
|
3333
|
-
formatRelativeTime: er.bind(null, n, r.getRelativeTimeFormat),
|
|
3334
|
-
formatDate: Ut.bind(null, n, r.getDateTimeFormat),
|
|
3335
|
-
formatDateToParts: jt.bind(null, n, r.getDateTimeFormat),
|
|
3336
|
-
formatTime: Vt.bind(null, n, r.getDateTimeFormat),
|
|
3337
|
-
formatDateTimeRange: kt.bind(null, n, r.getDateTimeFormat),
|
|
3338
|
-
formatTimeToParts: Xt.bind(null, n, r.getDateTimeFormat),
|
|
3339
|
-
formatPlural: Yt.bind(null, n, r.getPluralRules),
|
|
3340
|
-
// @ts-expect-error TODO: will get to this later
|
|
3341
|
-
formatMessage: pe.bind(null, n, r),
|
|
3342
|
-
// @ts-expect-error TODO: will get to this later
|
|
3343
|
-
$t: pe.bind(null, n, r),
|
|
3344
|
-
formatList: qt.bind(null, n, r.getListFormat),
|
|
3345
|
-
formatListToParts: we.bind(null, n, r.getListFormat),
|
|
3346
|
-
formatDisplayName: Zt.bind(null, n, r.getDisplayNames)
|
|
3347
|
-
});
|
|
3348
|
-
}
|
|
3349
|
-
function sr(e) {
|
|
3350
|
-
return e && e.constructor && typeof e.constructor.isBuffer == "function" && e.constructor.isBuffer(e);
|
|
3351
|
-
}
|
|
3352
|
-
function ur(e) {
|
|
3353
|
-
return e;
|
|
3354
|
-
}
|
|
3355
|
-
function hr(e, t) {
|
|
3356
|
-
t = t || {};
|
|
3357
|
-
const r = t.delimiter || ".", n = t.maxDepth, a = t.transformKey || ur, i = {};
|
|
3358
|
-
function o(s, u, l) {
|
|
3359
|
-
l = l || 1, Object.keys(s).forEach(function(h) {
|
|
3360
|
-
const m = s[h], c = t.safe && Array.isArray(m), b = Object.prototype.toString.call(m), x = sr(m), d = b === "[object Object]" || b === "[object Array]", p = u ? u + r + a(h) : a(h);
|
|
3361
|
-
if (!c && !x && d && Object.keys(m).length && (!t.maxDepth || l < n))
|
|
3362
|
-
return o(m, p, l + 1);
|
|
3363
|
-
i[p] = m;
|
|
3364
|
-
});
|
|
3365
|
-
}
|
|
3366
|
-
return o(e), i;
|
|
3367
|
-
}
|
|
3368
|
-
const lr = Ce();
|
|
3369
|
-
let Ge;
|
|
3370
|
-
const de = {
|
|
3371
|
-
year: "numeric",
|
|
3372
|
-
month: "short",
|
|
3373
|
-
day: "numeric",
|
|
3374
|
-
hour: "numeric",
|
|
3375
|
-
minute: "numeric"
|
|
3376
|
-
}, cr = (e, t, r = !1) => {
|
|
3377
|
-
var d;
|
|
3378
|
-
const n = typeof r == "boolean", a = or(
|
|
3379
|
-
{
|
|
3380
|
-
...n ? null : r,
|
|
3381
|
-
locale: e,
|
|
3382
|
-
messages: hr(t, {
|
|
3383
|
-
safe: !0
|
|
3384
|
-
// Preserve arrays
|
|
3385
|
-
}),
|
|
3386
|
-
formats: {
|
|
3387
|
-
...n ? null : r.formats,
|
|
3388
|
-
date: {
|
|
3389
|
-
...n ? null : (d = r.formats) == null ? void 0 : d.date,
|
|
3390
|
-
datetime: de
|
|
3391
|
-
}
|
|
3392
|
-
}
|
|
3393
|
-
},
|
|
3394
|
-
lr
|
|
3395
|
-
), { $t: i, ...o } = a, s = o, u = (p) => p.toString().length === 13 ? Math.floor(p / 1e3) : p, l = (p) => {
|
|
3396
|
-
const E = "Invalid Date";
|
|
3397
|
-
if (!p)
|
|
3398
|
-
return E;
|
|
3399
|
-
try {
|
|
3400
|
-
const T = new Date(u(p) * 1e3);
|
|
3401
|
-
return s.formatDate(T, de);
|
|
3402
|
-
} catch {
|
|
3403
|
-
return E;
|
|
3404
|
-
}
|
|
3405
|
-
}, x = {
|
|
3406
|
-
formatUnixTimeStamp: l,
|
|
3407
|
-
formatIsoDate: (p) => {
|
|
3408
|
-
const E = Date.parse(p) / 1e3, T = Math.floor(E);
|
|
3409
|
-
return l(T);
|
|
3410
|
-
},
|
|
3411
|
-
t: (p, E, T) => s.formatMessage({ id: p }, E, T),
|
|
3412
|
-
te: (p) => !!s.messages[p],
|
|
3413
|
-
tm: (p) => s.messages[p] || [],
|
|
3414
|
-
...s,
|
|
3415
|
-
source: t
|
|
3416
|
-
};
|
|
3417
|
-
return (typeof r == "boolean" && r === !0 || typeof r != "boolean" && r.isGlobal === !0) && (Ge = x), x;
|
|
3418
|
-
};
|
|
3419
|
-
function gr() {
|
|
3420
|
-
return Ge;
|
|
3421
|
-
}
|
|
3422
|
-
const fr = (e = null) => Ue({
|
|
3423
|
-
name: "I18nT",
|
|
3424
|
-
props: {
|
|
3425
|
-
i18n: {
|
|
3426
|
-
type: Object,
|
|
3427
|
-
default: null
|
|
3428
|
-
},
|
|
3429
|
-
keypath: {
|
|
3430
|
-
type: String,
|
|
3431
|
-
// type: String as unknown as PropType<PathToDotNotation<MessageSource, string>>, // This breaks the type interface, enable to debug
|
|
3432
|
-
required: !0
|
|
3433
|
-
},
|
|
3434
|
-
tag: {
|
|
3435
|
-
type: String,
|
|
3436
|
-
default: "span"
|
|
3437
|
-
}
|
|
3438
|
-
},
|
|
3439
|
-
setup(t, { slots: r }) {
|
|
3440
|
-
const n = (a) => {
|
|
3441
|
-
if (!a)
|
|
3442
|
-
return [];
|
|
3443
|
-
const i = /(\{[^}]+\})/g;
|
|
3444
|
-
return a.split(i).filter(Boolean);
|
|
3445
|
-
};
|
|
3446
|
-
return () => {
|
|
3447
|
-
var s;
|
|
3448
|
-
const a = Object.keys(r).filter((u) => u !== "_"), i = ((s = (e || t.i18n).messages[t.keypath]) == null ? void 0 : s.toString()) || "";
|
|
3449
|
-
let o = n(i);
|
|
3450
|
-
return o = o.filter((u) => u !== ""), o.forEach((u, l) => {
|
|
3451
|
-
if (!u.startsWith("{") && !u.endsWith("}"))
|
|
3452
|
-
return;
|
|
3453
|
-
const h = u.replace(/[\{\}]/g, "");
|
|
3454
|
-
h === "0" && r.default ? o[l] = r.default() : a.includes(h) && r[h] && (o[l] = r[h]());
|
|
3455
|
-
}), Ve(t.tag, t, o);
|
|
3456
|
-
};
|
|
3457
|
-
}
|
|
3458
|
-
}), pr = {
|
|
3459
|
-
install(e, t) {
|
|
3460
|
-
const { i18n: r } = t;
|
|
3461
|
-
e.component("I18nT", fr(r));
|
|
3462
|
-
}
|
|
3463
|
-
};
|
|
3464
|
-
export {
|
|
3465
|
-
pr as Translation,
|
|
3466
|
-
cr as createI18n,
|
|
3467
|
-
fr as i18nTComponent,
|
|
3468
|
-
gr as useI18n
|
|
3469
|
-
};
|