@intlify/core 12.0.0-alpha.10 → 12.0.0-alpha.12

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @intlify/core v12.0.0-alpha.10
2
+ * @intlify/core v12.0.0-alpha.12
3
3
  * (c) 2016-present kazuya kawaguchi and contributors
4
4
  * @license MIT
5
5
  **/ var IntlifyCore = (function(e) {
@@ -23,31 +23,31 @@
23
23
  function h(e) {
24
24
  return p(Object.prototype, e);
25
25
  }
26
- let g = Array.isArray, _ = (e) => typeof e == `function`, v = (e) => typeof e == `string`, y = (e) => typeof e == `boolean`, b = (e) => typeof e == `object` && !!e, x = (e) => b(e) && _(e.then) && _(e.catch), S = Object.prototype.toString, C = (e) => S.call(e), w = (e) => C(e) === `[object Object]`, ee = (e) => e == null ? `` : g(e) || w(e) && e.toString === S ? JSON.stringify(e, null, 2) : String(e);
27
- function T(e, t = ``) {
26
+ let g = Array.isArray, _ = (e) => typeof e == `function`, v = (e) => typeof e == `string`, y = (e) => typeof e == `boolean`, b = (e) => typeof e == `object` && !!e, x = (e) => b(e) && _(e.then) && _(e.catch), S = Object.prototype.toString, C = (e) => S.call(e), w = (e) => C(e) === `[object Object]`, T = (e) => e == null ? `` : g(e) || w(e) && e.toString === S ? JSON.stringify(e, null, 2) : String(e);
27
+ function E(e, t = ``) {
28
28
  return e.reduce((e, n, r) => r === 0 ? e + n : e + t + n, ``);
29
29
  }
30
- function E(e, t) {
30
+ function D(e, t) {
31
31
  typeof console < `u` && (console.warn(`[intlify] ` + e), t && console.warn(t.stack));
32
32
  }
33
- function D(e) {
33
+ function O(e) {
34
34
  return e.replace(/&/g, `&amp;`).replace(/</g, `&lt;`).replace(/>/g, `&gt;`).replace(/"/g, `&quot;`).replace(/'/g, `&apos;`).replace(/\//g, `&#x2F;`).replace(/=/g, `&#x3D;`);
35
35
  }
36
- function te(e) {
36
+ function ee(e) {
37
37
  return e.replace(/&(?![a-z0-9#]{2,6};)/gi, `&amp;`).replace(/"/g, `&quot;`).replace(/'/g, `&apos;`).replace(/</g, `&lt;`).replace(/>/g, `&gt;`);
38
38
  }
39
- let ne = /^javascript:/i, re = /^(?:href|xlink:href|src|action|formaction)$/i, O = /&#(?:x([0-9a-f]+)|(\d+));?/gi, ie = /&(?:Tab|NewLine);/g, ae = /&colon;?/gi, oe = /[\u0000-\u0020\u007f-\u009f]/g, se = /^on\w/i, ce = /^srcdoc$/i, le = /^(?:base|animate|set|script|plaintext)$/i, ue = /^(?:iframe|noembed|noframes|noscript|style|textarea|title|xmp)$/i, k = /<(\/?)([a-z][^\t\n\f\r />]*)/iy, A = /([\t\n\f\r /]*)(?:(>)|([^\t\n\f\r />][^\t\n\f\r />=]*)(?:[\t\n\f\r ]*=[\t\n\f\r ]*(?:(["'])([\s\S]*?)(\4|$)|([^\t\n\f\r >]*)))?)/y, j = /<!--(?:>|->|[\s\S]*?--!?>)/y;
40
- function de(e, t, n) {
39
+ let te = /^javascript:/i, ne = /^(?:href|xlink:href|src|action|formaction)$/i, k = /&#(?:x([0-9a-f]+)|(\d+));?/gi, re = /&(?:Tab|NewLine);/g, ie = /&colon;?/gi, ae = /[\u0000-\u0020\u007f-\u009f]/g, oe = /^on\w/i, se = /^srcdoc$/i, ce = /^(?:base|animate|set|script|plaintext)$/i, le = /^(?:iframe|noembed|noframes|noscript|style|textarea|title|xmp)$/i, A = /<(\/?)([a-z][^\t\n\f\r />]*)/iy, j = /([\t\n\f\r /]*)(?:(>)|([^\t\n\f\r />][^\t\n\f\r />=]*)(?:[\t\n\f\r ]*=[\t\n\f\r ]*(?:(["'])([\s\S]*?)(\4|$)|([^\t\n\f\r >]*)))?)/y, M = /<!--(?:>|->|[\s\S]*?--!?>)/y;
40
+ function ue(e, t, n) {
41
41
  let r = t || n;
42
42
  if (!r) return e;
43
43
  let i = Number.parseInt(r, t ? 16 : 10);
44
44
  return i <= 127 ? String.fromCharCode(i) : e;
45
45
  }
46
- function M(e) {
47
- let t = e.replace(O, de).replace(ie, ``).replace(ae, `:`).replace(oe, ``);
48
- return ne.test(t);
46
+ function N(e) {
47
+ let t = e.replace(k, ue).replace(re, ``).replace(ie, `:`).replace(ae, ``);
48
+ return te.test(t);
49
49
  }
50
- function fe(e) {
50
+ function de(e) {
51
51
  let t = /url\s*\(/gi, n = ``, r = 0, i;
52
52
  for (; (i = t.exec(e)) !== null;) {
53
53
  let a = i.index, o = t.lastIndex - 1, s = o + 1, c = 1, l = null;
@@ -60,31 +60,31 @@
60
60
  }
61
61
  if (c !== 0) break;
62
62
  let u = e.slice(o + 1, s).trim(), d = u.startsWith(`"`) && u.endsWith(`"`) || u.startsWith(`'`) && u.endsWith(`'`) ? u.slice(1, -1).trim() : u;
63
- n += e.slice(r, a), n += M(d) ? `url(about:blank)` : e.slice(a, s + 1), r = s + 1;
63
+ n += e.slice(r, a), n += N(d) ? `url(about:blank)` : e.slice(a, s + 1), r = s + 1;
64
64
  }
65
65
  return n + e.slice(r);
66
66
  }
67
- function pe(e, t) {
68
- return re.test(e) && M(t) ? `about:blank` : te(e.toLowerCase() === `style` ? fe(t) : t);
67
+ function fe(e, t) {
68
+ return ne.test(e) && N(t) ? `about:blank` : ee(e.toLowerCase() === `style` ? de(t) : t);
69
69
  }
70
- function N(e) {
70
+ function P(e) {
71
71
  return e.replace(/</g, `&lt;`);
72
72
  }
73
- function me(e, t, n, r) {
73
+ function pe(e, t, n, r) {
74
74
  let i = e;
75
- if (se.test(e) ? (r.eventHandler = !0, i = `&#111;n${e.slice(2)}`) : ce.test(e) && (r.srcdoc = !0, i = `&#115;${e.slice(1)}`), t === void 0) return i;
75
+ if (oe.test(e) ? (r.eventHandler = !0, i = `&#111;n${e.slice(2)}`) : se.test(e) && (r.srcdoc = !0, i = `&#115;${e.slice(1)}`), t === void 0) return i;
76
76
  let a = n || ``;
77
- return `${i}=${a}${pe(e, t)}${a}`;
77
+ return `${i}=${a}${fe(e, t)}${a}`;
78
78
  }
79
- function P(e, t, n) {
80
- k.lastIndex = t;
81
- let r = k.exec(e);
79
+ function me(e, t, n) {
80
+ A.lastIndex = t;
81
+ let r = A.exec(e);
82
82
  if (!r) return;
83
83
  let [, i, a] = r, o = r[0], s;
84
- for (A.lastIndex = k.lastIndex; s = A.exec(e);) {
84
+ for (j.lastIndex = A.lastIndex; s = j.exec(e);) {
85
85
  let [r, c, l, u, d, f, p, m] = s;
86
86
  if (l) {
87
- let n = A.lastIndex;
87
+ let n = j.lastIndex;
88
88
  return [
89
89
  i ? e.slice(t, n) : o + r,
90
90
  a,
@@ -92,7 +92,7 @@
92
92
  ];
93
93
  }
94
94
  if (d && !p) break;
95
- i || (o += c + me(u, d ? f : m, d, n));
95
+ i || (o += c + pe(u, d ? f : m, d, n));
96
96
  }
97
97
  return [
98
98
  o,
@@ -102,7 +102,7 @@
102
102
  }
103
103
  function F(e, t, n) {
104
104
  for (let r = e.indexOf(`</`, t); r !== -1; r = e.indexOf(`</`, r + 2)) {
105
- let t = P(e, r, {});
105
+ let t = me(e, r, {});
106
106
  if (t && t[1].toLowerCase() === n.toLowerCase()) return t[2] === -1 ? -1 : r;
107
107
  }
108
108
  return -1;
@@ -111,25 +111,25 @@
111
111
  let t = {}, n = ``, r = 0, i;
112
112
  for (; (i = e.indexOf(`<`, r)) !== -1;) {
113
113
  n += e.slice(r, i), r = i + 1;
114
- let a = P(e, i, t);
114
+ let a = me(e, i, t);
115
115
  if (a) {
116
116
  let [o, s, c] = a;
117
117
  if (c === -1) {
118
- t.unclosed = !0, n += N(e.slice(i)), r = e.length;
118
+ t.unclosed = !0, n += P(e.slice(i)), r = e.length;
119
119
  break;
120
120
  }
121
121
  if (r = c, o[1] === `/`) n += o;
122
- else if (le.test(s)) t.element = !0, n += N(o);
123
- else if (ue.test(s)) {
122
+ else if (ce.test(s)) t.element = !0, n += P(o);
123
+ else if (le.test(s)) {
124
124
  let i = F(e, c, s);
125
- i === -1 ? (t.unclosed = !0, n += N(o)) : (n += o + N(e.slice(c, i)), r = i);
125
+ i === -1 ? (t.unclosed = !0, n += P(o)) : (n += o + P(e.slice(c, i)), r = i);
126
126
  } else n += o;
127
- } else j.lastIndex = i, j.test(e) ? (n += e.slice(i, j.lastIndex), r = j.lastIndex) : (e.startsWith(`<!--`, i) && (t.unclosed = !0), n += `&lt;`);
127
+ } else M.lastIndex = i, M.test(e) ? (n += e.slice(i, M.lastIndex), r = M.lastIndex) : (e.startsWith(`<!--`, i) && (t.unclosed = !0), n += `&lt;`);
128
128
  }
129
129
  return n += e.slice(r), n;
130
130
  }
131
131
  let L = (e) => !b(e) || g(e);
132
- function he(e, t) {
132
+ function R(e, t) {
133
133
  if (L(e) || L(t) || t === Object.prototype) throw Error(`Invalid value`);
134
134
  let n = [e, t];
135
135
  for (; n.length;) {
@@ -152,21 +152,21 @@
152
152
  }
153
153
  }
154
154
  }
155
- function ge(e, t, n) {
155
+ function he(e, t, n) {
156
156
  return {
157
157
  line: e,
158
158
  column: t,
159
159
  offset: n
160
160
  };
161
161
  }
162
- function _e(e, t, n) {
162
+ function ge(e, t, n) {
163
163
  let r = {
164
164
  start: e,
165
165
  end: t
166
166
  };
167
167
  return n != null && (r.source = n), r;
168
168
  }
169
- let R = {
169
+ let z = {
170
170
  EXPECTED_TOKEN: 1,
171
171
  INVALID_TOKEN_IN_PLACEHOLDER: 2,
172
172
  UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER: 3,
@@ -184,30 +184,30 @@
184
184
  UNHANDLED_CODEGEN_NODE_TYPE: 15,
185
185
  UNHANDLED_MINIFIER_NODE_TYPE: 16
186
186
  };
187
- R.EXPECTED_TOKEN, R.INVALID_TOKEN_IN_PLACEHOLDER, R.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER, R.UNKNOWN_ESCAPE_SEQUENCE, R.INVALID_UNICODE_ESCAPE_SEQUENCE, R.UNBALANCED_CLOSING_BRACE, R.UNTERMINATED_CLOSING_BRACE, R.EMPTY_PLACEHOLDER, R.NOT_ALLOW_NEST_PLACEHOLDER, R.INVALID_LINKED_FORMAT, R.MUST_HAVE_MESSAGES_IN_PLURAL, R.UNEXPECTED_EMPTY_LINKED_MODIFIER, R.UNEXPECTED_EMPTY_LINKED_KEY, R.UNEXPECTED_LEXICAL_ANALYSIS, R.UNHANDLED_CODEGEN_NODE_TYPE, R.UNHANDLED_MINIFIER_NODE_TYPE;
188
- function z(e, t, n = {}) {
187
+ z.EXPECTED_TOKEN, z.INVALID_TOKEN_IN_PLACEHOLDER, z.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER, z.UNKNOWN_ESCAPE_SEQUENCE, z.INVALID_UNICODE_ESCAPE_SEQUENCE, z.UNBALANCED_CLOSING_BRACE, z.UNTERMINATED_CLOSING_BRACE, z.EMPTY_PLACEHOLDER, z.NOT_ALLOW_NEST_PLACEHOLDER, z.INVALID_LINKED_FORMAT, z.MUST_HAVE_MESSAGES_IN_PLURAL, z.UNEXPECTED_EMPTY_LINKED_MODIFIER, z.UNEXPECTED_EMPTY_LINKED_KEY, z.UNEXPECTED_LEXICAL_ANALYSIS, z.UNHANDLED_CODEGEN_NODE_TYPE, z.UNHANDLED_MINIFIER_NODE_TYPE;
188
+ function B(e, t, n = {}) {
189
189
  let { domain: r, messages: i, args: a } = n, o = SyntaxError(String(e));
190
190
  return o.code = e, t && (o.location = t), o.domain = r, o;
191
191
  }
192
- function ve(e) {
192
+ function _e(e) {
193
193
  throw e;
194
194
  }
195
- function B(e) {
195
+ function V(e) {
196
196
  switch (e.t = e.type, e.type) {
197
197
  case 0: {
198
198
  let t = e;
199
- B(t.body), t.b = t.body, delete t.body;
199
+ V(t.body), t.b = t.body, delete t.body;
200
200
  break;
201
201
  }
202
202
  case 1: {
203
203
  let t = e, n = t.cases;
204
- for (let e = 0; e < n.length; e++) B(n[e]);
204
+ for (let e = 0; e < n.length; e++) V(n[e]);
205
205
  t.c = n, delete t.cases;
206
206
  break;
207
207
  }
208
208
  case 2: {
209
209
  let t = e, n = t.items;
210
- for (let e = 0; e < n.length; e++) B(n[e]);
210
+ for (let e = 0; e < n.length; e++) V(n[e]);
211
211
  t.i = n, delete t.items, t.static && (t.s = t.static, delete t.static);
212
212
  break;
213
213
  }
@@ -221,7 +221,7 @@
221
221
  }
222
222
  case 6: {
223
223
  let t = e;
224
- B(t.key), t.k = t.key, delete t.key, t.modifier && (B(t.modifier), t.m = t.modifier, delete t.modifier);
224
+ V(t.key), t.k = t.key, delete t.key, t.modifier && (V(t.modifier), t.m = t.modifier, delete t.modifier);
225
225
  break;
226
226
  }
227
227
  case 5: {
@@ -237,11 +237,11 @@
237
237
  }
238
238
  delete e.type;
239
239
  }
240
- function ye(e) {
240
+ function ve(e) {
241
241
  let t = e.body;
242
- return t.type === 2 ? be(t) : t.cases.forEach((e) => be(e)), e;
242
+ return t.type === 2 ? ye(t) : t.cases.forEach((e) => ye(e)), e;
243
243
  }
244
- function be(e) {
244
+ function ye(e) {
245
245
  if (e.items.length === 1) {
246
246
  let t = e.items[0];
247
247
  (t.type === 3 || t.type === 9) && (e.static = t.value, delete t.value);
@@ -253,7 +253,7 @@
253
253
  t.push(r.value);
254
254
  }
255
255
  if (t.length === e.items.length) {
256
- e.static = T(t);
256
+ e.static = E(t);
257
257
  for (let t = 0; t < e.items.length; t++) {
258
258
  let n = e.items[t];
259
259
  (n.type === 3 || n.type === 9) && delete n.value;
@@ -261,7 +261,7 @@
261
261
  }
262
262
  }
263
263
  }
264
- function xe(e) {
264
+ function be(e) {
265
265
  let t = e, n = 0, r = 1, i = 1, a = 0, o = (e) => t[e] === `\r` && t[e + 1] === `
266
266
  `, s = (e) => t[e] === `
267
267
  `, c = (e) => t[e] === `\u2029`, l = (e) => t[e] === `\u2028`, u = (e) => o(e) || s(e) || c(e) || l(e), d = () => n, f = () => r, p = () => i, m = () => a, h = (e) => o(e) || c(e) || l(e) ? `
@@ -298,8 +298,8 @@
298
298
  skipToPeek: S
299
299
  };
300
300
  }
301
- function Se(e, t = {}) {
302
- let n = t.location !== !1, r = xe(e), i = () => r.index(), a = () => ge(r.line(), r.column(), r.index()), o = a(), s = i(), c = {
301
+ function xe(e, t = {}) {
302
+ let n = t.location !== !1, r = be(e), i = () => r.index(), a = () => he(r.line(), r.column(), r.index()), o = a(), s = i(), c = {
303
303
  currentType: 13,
304
304
  offset: s,
305
305
  startLoc: o,
@@ -315,7 +315,7 @@
315
315
  function d(e, t, r, ...i) {
316
316
  let a = l();
317
317
  if (t.column += r, t.offset += r, u) {
318
- let r = z(e, n ? _e(a.startLoc, t) : null, {
318
+ let r = B(e, n ? ge(a.startLoc, t) : null, {
319
319
  domain: `tokenizer`,
320
320
  args: i
321
321
  });
@@ -325,11 +325,11 @@
325
325
  function f(e, t, r) {
326
326
  e.endLoc = a(), e.currentType = t;
327
327
  let i = { type: t };
328
- return n && (i.loc = _e(e.startLoc, e.endLoc)), r != null && (i.value = r), i;
328
+ return n && (i.loc = ge(e.startLoc, e.endLoc)), r != null && (i.value = r), i;
329
329
  }
330
330
  let p = (e) => f(e, 13);
331
331
  function m(e, t) {
332
- return e.currentChar() === t ? (e.next(), t) : (d(R.EXPECTED_TOKEN, a(), 0, t), ``);
332
+ return e.currentChar() === t ? (e.next(), t) : (d(z.EXPECTED_TOKEN, a(), 0, t), ``);
333
333
  }
334
334
  function h(e) {
335
335
  let t = ``;
@@ -393,22 +393,22 @@
393
393
  let r = e.currentPeek() === `:`;
394
394
  return e.resetPeek(), r;
395
395
  }
396
- function ee(e, t) {
396
+ function T(e, t) {
397
397
  let { currentType: n } = t;
398
398
  if (n !== 9) return !1;
399
399
  let r = () => {
400
400
  let t = e.currentPeek();
401
401
  return t === `{` ? _(e.peek()) : t === `@` || t === `|` || t === `:` || t === `.` || t === ` ` || !t ? !1 : t === `
402
- ` ? (e.peek(), r()) : E(e, !1);
402
+ ` ? (e.peek(), r()) : D(e, !1);
403
403
  }, i = r();
404
404
  return e.resetPeek(), i;
405
405
  }
406
- function T(e) {
406
+ function E(e) {
407
407
  h(e);
408
408
  let t = e.currentPeek() === `|`;
409
409
  return e.resetPeek(), t;
410
410
  }
411
- function E(e, t = !0) {
411
+ function D(e, t = !0) {
412
412
  let n = (t = !1, r = ``) => {
413
413
  let i = e.currentPeek();
414
414
  return i === `{` || i === `@` || !i ? t : i === `|` ? r !== ` ` && r !== `
@@ -418,44 +418,44 @@
418
418
  }, r = n();
419
419
  return t && e.resetPeek(), r;
420
420
  }
421
- function D(e, t) {
421
+ function O(e, t) {
422
422
  let n = e.currentChar();
423
423
  if (n !== void 0) return t(n) ? (e.next(), n) : null;
424
424
  }
425
- function te(e) {
425
+ function ee(e) {
426
426
  let t = e.charCodeAt(0);
427
427
  return t >= 97 && t <= 122 || t >= 65 && t <= 90 || t >= 48 && t <= 57 || t === 95 || t === 36;
428
428
  }
429
- function ne(e) {
430
- return D(e, te);
429
+ function te(e) {
430
+ return O(e, ee);
431
431
  }
432
- function re(e) {
432
+ function ne(e) {
433
433
  let t = e.charCodeAt(0);
434
434
  return t >= 97 && t <= 122 || t >= 65 && t <= 90 || t >= 48 && t <= 57 || t === 95 || t === 36 || t === 45;
435
435
  }
436
- function O(e) {
437
- return D(e, re);
436
+ function k(e) {
437
+ return O(e, ne);
438
438
  }
439
- function ie(e) {
439
+ function re(e) {
440
440
  let t = e.charCodeAt(0);
441
441
  return t >= 48 && t <= 57;
442
442
  }
443
- function ae(e) {
444
- return D(e, ie);
443
+ function ie(e) {
444
+ return O(e, re);
445
445
  }
446
- function oe(e) {
446
+ function ae(e) {
447
447
  let t = e.charCodeAt(0);
448
448
  return t >= 48 && t <= 57 || t >= 65 && t <= 70 || t >= 97 && t <= 102;
449
449
  }
450
- function se(e) {
451
- return D(e, oe);
450
+ function oe(e) {
451
+ return O(e, ae);
452
452
  }
453
- function ce(e) {
453
+ function se(e) {
454
454
  let t = ``, n = ``;
455
- for (; t = ae(e);) n += t;
455
+ for (; t = ie(e);) n += t;
456
456
  return n;
457
457
  }
458
- function le(e) {
458
+ function ce(e) {
459
459
  let t = ``;
460
460
  for (;;) {
461
461
  let n = e.currentChar();
@@ -465,152 +465,155 @@
465
465
  } else if (n === `{` || n === `}` || n === `@` || n === `|` || !n) break;
466
466
  else if (n === ` ` || n === `
467
467
  `) {
468
- if (E(e)) t += n, e.next();
469
- else if (T(e)) break;
468
+ if (D(e)) t += n, e.next();
469
+ else if (E(e)) break;
470
470
  else t += n, e.next();
471
471
  } else t += n, e.next();
472
472
  }
473
473
  return t;
474
474
  }
475
- function ue(e) {
475
+ function le(e) {
476
476
  g(e);
477
477
  let t = ``, n = ``;
478
- for (; t = O(e);) n += t;
478
+ for (; t = k(e);) n += t;
479
479
  let r = e.currentChar();
480
480
  if (r && r !== `}` && r !== void 0 && r !== ` ` && r !== `
481
481
  ` && r !== ` `) {
482
- let t = pe(e);
483
- return d(R.INVALID_TOKEN_IN_PLACEHOLDER, a(), 0, n + t), n + t;
482
+ let t = fe(e);
483
+ return d(z.INVALID_TOKEN_IN_PLACEHOLDER, a(), 0, n + t), n + t;
484
484
  }
485
- return e.currentChar() === void 0 && d(R.UNTERMINATED_CLOSING_BRACE, a(), 0), n;
485
+ return e.currentChar() === void 0 && d(z.UNTERMINATED_CLOSING_BRACE, a(), 0), n;
486
486
  }
487
- function k(e) {
487
+ function A(e) {
488
488
  g(e);
489
489
  let t = ``;
490
- return e.currentChar() === `-` ? (e.next(), t += `-${ce(e)}`) : t += ce(e), e.currentChar() === void 0 && d(R.UNTERMINATED_CLOSING_BRACE, a(), 0), t;
490
+ return e.currentChar() === `-` ? (e.next(), t += `-${se(e)}`) : t += se(e), e.currentChar() === void 0 && d(z.UNTERMINATED_CLOSING_BRACE, a(), 0), t;
491
491
  }
492
- function A(e) {
492
+ function j(e) {
493
493
  return e !== `'` && e !== `
494
494
  `;
495
495
  }
496
- function j(e) {
496
+ function M(e) {
497
497
  g(e), m(e, `'`);
498
498
  let t = ``, n = ``;
499
- for (; t = D(e, A);) n += t === `\\` ? de(e) : t;
499
+ for (; t = O(e, j);) n += t === `\\` ? ue(e) : t;
500
500
  let r = e.currentChar();
501
501
  return r === `
502
- ` || r === void 0 ? (d(R.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER, a(), 0), r === `
502
+ ` || r === void 0 ? (d(z.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER, a(), 0), r === `
503
503
  ` && (e.next(), m(e, `'`)), n) : (m(e, `'`), n);
504
504
  }
505
- function de(e) {
505
+ function ue(e) {
506
506
  let t = e.currentChar();
507
507
  switch (t) {
508
508
  case `\\`:
509
509
  case `'`: return e.next(), `\\${t}`;
510
- case `u`: return M(e, t, 4);
511
- case `U`: return M(e, t, 6);
512
- default: return d(R.UNKNOWN_ESCAPE_SEQUENCE, a(), 0, t), ``;
510
+ case `u`: return N(e, t, 4);
511
+ case `U`: return N(e, t, 6);
512
+ default: return d(z.UNKNOWN_ESCAPE_SEQUENCE, a(), 0, t), ``;
513
513
  }
514
514
  }
515
- function M(e, t, n) {
515
+ function N(e, t, n) {
516
516
  m(e, t);
517
517
  let r = ``;
518
518
  for (let i = 0; i < n; i++) {
519
- let n = se(e);
519
+ let n = oe(e);
520
520
  if (!n) {
521
- d(R.INVALID_UNICODE_ESCAPE_SEQUENCE, a(), 0, `\\${t}${r}${e.currentChar()}`);
521
+ d(z.INVALID_UNICODE_ESCAPE_SEQUENCE, a(), 0, `\\${t}${r}${e.currentChar()}`);
522
522
  break;
523
523
  }
524
524
  r += n;
525
525
  }
526
526
  return `\\${t}${r}`;
527
527
  }
528
- function fe(e) {
528
+ function de(e) {
529
529
  return e !== `{` && e !== `}` && e !== ` ` && e !== `
530
530
  `;
531
531
  }
532
- function pe(e) {
532
+ function fe(e) {
533
533
  g(e);
534
534
  let t = ``, n = ``;
535
- for (; t = D(e, fe);) n += t;
535
+ for (; t = O(e, de);) n += t;
536
536
  return n;
537
537
  }
538
- function N(e) {
538
+ function P(e) {
539
539
  let t = ``, n = ``;
540
- for (; t = ne(e);) n += t;
540
+ for (; t = te(e);) n += t;
541
541
  return n;
542
542
  }
543
+ function pe(e) {
544
+ return e !== `{` && e !== `@` && e !== `|` && e !== `(` && e !== `)` && e !== ` ` && e !== ` ` && e !== `
545
+ `;
546
+ }
543
547
  function me(e) {
544
- let t = (n) => {
545
- let r = e.currentChar();
546
- return r === `{` || r === `@` || r === `|` || r === `(` || r === `)` || !r || r === ` ` ? n : (n += r, e.next(), t(n));
547
- };
548
- return t(``);
548
+ for (; e.currentChar() === ` `;) e.next();
549
+ let t = ``, n;
550
+ for (; (n = e.currentChar()) && pe(n);) t += n, e.next();
551
+ return t;
549
552
  }
550
- function P(e) {
553
+ function F(e) {
551
554
  g(e);
552
555
  let t = m(e, `|`);
553
556
  return g(e), t;
554
557
  }
555
- function F(e, t) {
558
+ function I(e, t) {
556
559
  let n = null;
557
560
  switch (e.currentChar()) {
558
- case `{`: return t.braceNest >= 1 && d(R.NOT_ALLOW_NEST_PLACEHOLDER, a(), 0), e.next(), n = f(t, 2, `{`), g(e), t.braceNest++, n;
559
- case `}`: return t.braceNest > 0 && t.currentType === 2 && d(R.EMPTY_PLACEHOLDER, a(), 0), e.next(), n = f(t, 3, `}`), t.braceNest--, t.braceNest > 0 && g(e), t.inLinked && t.braceNest === 0 && (t.inLinked = !1), n;
560
- case `@`: return t.braceNest > 0 && d(R.UNTERMINATED_CLOSING_BRACE, a(), 0), n = I(e, t) || p(t), t.braceNest = 0, n;
561
+ case `{`: return t.braceNest >= 1 && d(z.NOT_ALLOW_NEST_PLACEHOLDER, a(), 0), e.next(), n = f(t, 2, `{`), g(e), t.braceNest++, n;
562
+ case `}`: return t.braceNest > 0 && t.currentType === 2 && d(z.EMPTY_PLACEHOLDER, a(), 0), e.next(), n = f(t, 3, `}`), t.braceNest--, t.braceNest > 0 && g(e), t.inLinked && t.braceNest === 0 && (t.inLinked = !1), n;
563
+ case `@`: return t.braceNest > 0 && d(z.UNTERMINATED_CLOSING_BRACE, a(), 0), n = L(e, t) || p(t), t.braceNest = 0, n;
561
564
  default: {
562
565
  let r = !0, i = !0, o = !0;
563
- if (T(e)) return t.braceNest > 0 && d(R.UNTERMINATED_CLOSING_BRACE, a(), 0), n = f(t, 1, P(e)), t.braceNest = 0, t.inLinked = !1, n;
564
- if (t.braceNest > 0 && (t.currentType === 4 || t.currentType === 5 || t.currentType === 6)) return d(R.UNTERMINATED_CLOSING_BRACE, a(), 0), t.braceNest = 0, L(e, t);
565
- if (r = y(e, t)) return n = f(t, 4, ue(e)), g(e), n;
566
- if (i = b(e, t)) return n = f(t, 5, k(e)), g(e), n;
567
- if (o = x(e, t)) return n = f(t, 6, j(e)), g(e), n;
568
- if (!r && !i && !o) return n = f(t, 12, pe(e)), d(R.INVALID_TOKEN_IN_PLACEHOLDER, a(), 0, n.value), g(e), n;
566
+ if (E(e)) return t.braceNest > 0 && d(z.UNTERMINATED_CLOSING_BRACE, a(), 0), n = f(t, 1, F(e)), t.braceNest = 0, t.inLinked = !1, n;
567
+ if (t.braceNest > 0 && (t.currentType === 4 || t.currentType === 5 || t.currentType === 6)) return d(z.UNTERMINATED_CLOSING_BRACE, a(), 0), t.braceNest = 0, R(e, t);
568
+ if (r = y(e, t)) return n = f(t, 4, le(e)), g(e), n;
569
+ if (i = b(e, t)) return n = f(t, 5, A(e)), g(e), n;
570
+ if (o = x(e, t)) return n = f(t, 6, M(e)), g(e), n;
571
+ if (!r && !i && !o) return n = f(t, 12, fe(e)), d(z.INVALID_TOKEN_IN_PLACEHOLDER, a(), 0, n.value), g(e), n;
569
572
  break;
570
573
  }
571
574
  }
572
575
  return n;
573
576
  }
574
- function I(e, t) {
577
+ function L(e, t) {
575
578
  let { currentType: n } = t, r = null, i = e.currentChar();
576
579
  switch (n !== 7 && n !== 8 && n !== 11 && n !== 9 || i !== `
577
- ` && i !== ` ` || d(R.INVALID_LINKED_FORMAT, a(), 0), i) {
580
+ ` && i !== ` ` || d(z.INVALID_LINKED_FORMAT, a(), 0), i) {
578
581
  case `@`: return e.next(), r = f(t, 7, `@`), t.inLinked = !0, r;
579
582
  case `.`: return g(e), e.next(), f(t, 8, `.`);
580
583
  case `:`: return g(e), e.next(), f(t, 9, `:`);
581
- default: return T(e) ? (r = f(t, 1, P(e)), t.braceNest = 0, t.inLinked = !1, r) : S(e, t) || w(e, t) ? (g(e), I(e, t)) : C(e, t) ? (g(e), f(t, 11, N(e))) : ee(e, t) ? (g(e), i === `{` ? F(e, t) || r : f(t, 10, me(e))) : (n === 7 && d(R.INVALID_LINKED_FORMAT, a(), 0), t.braceNest = 0, t.inLinked = !1, L(e, t));
584
+ default: return E(e) ? (r = f(t, 1, F(e)), t.braceNest = 0, t.inLinked = !1, r) : S(e, t) || w(e, t) ? (g(e), L(e, t)) : C(e, t) ? (g(e), f(t, 11, P(e))) : T(e, t) ? (g(e), i === `{` ? I(e, t) || r : f(t, 10, me(e))) : (n === 7 && d(z.INVALID_LINKED_FORMAT, a(), 0), t.braceNest = 0, t.inLinked = !1, R(e, t));
582
585
  }
583
586
  }
584
- function L(e, t) {
587
+ function R(e, t) {
585
588
  let n = { type: 13 };
586
- if (t.braceNest > 0) return F(e, t) || p(t);
587
- if (t.inLinked) return I(e, t) || p(t);
589
+ if (t.braceNest > 0) return I(e, t) || p(t);
590
+ if (t.inLinked) return L(e, t) || p(t);
588
591
  switch (e.currentChar()) {
589
- case `{`: return F(e, t) || p(t);
590
- case `}`: return d(R.UNBALANCED_CLOSING_BRACE, a(), 0), e.next(), f(t, 3, `}`);
591
- case `@`: return I(e, t) || p(t);
592
+ case `{`: return I(e, t) || p(t);
593
+ case `}`: return d(z.UNBALANCED_CLOSING_BRACE, a(), 0), e.next(), f(t, 3, `}`);
594
+ case `@`: return L(e, t) || p(t);
592
595
  default:
593
- if (T(e)) return n = f(t, 1, P(e)), t.braceNest = 0, t.inLinked = !1, n;
594
- if (E(e)) return f(t, 0, le(e));
596
+ if (E(e)) return n = f(t, 1, F(e)), t.braceNest = 0, t.inLinked = !1, n;
597
+ if (D(e)) return f(t, 0, ce(e));
595
598
  }
596
599
  return n;
597
600
  }
598
- function he() {
601
+ function _e() {
599
602
  let { currentType: e, offset: t, startLoc: n, endLoc: o } = c;
600
- return c.lastType = e, c.lastOffset = t, c.lastStartLoc = n, c.lastEndLoc = o, c.offset = i(), c.startLoc = a(), r.currentChar() === void 0 ? f(c, 13) : L(r, c);
603
+ return c.lastType = e, c.lastOffset = t, c.lastStartLoc = n, c.lastEndLoc = o, c.offset = i(), c.startLoc = a(), r.currentChar() === void 0 ? f(c, 13) : R(r, c);
601
604
  }
602
605
  return {
603
- nextToken: he,
606
+ nextToken: _e,
604
607
  currentOffset: i,
605
608
  currentPosition: a,
606
609
  context: l
607
610
  };
608
611
  }
609
- let Ce = /\\\\|\\'|\\u([0-9a-fA-F]{4})|\\U([0-9a-fA-F]{6})/g, we = /\\([\\@{}|])/g;
610
- function Te(e, t) {
612
+ let Se = /\\\\|\\'|\\u([0-9a-fA-F]{4})|\\U([0-9a-fA-F]{6})/g, Ce = /\\([\\@{}|])/g;
613
+ function we(e, t) {
611
614
  return t;
612
615
  }
613
- function Ee(e, t, n) {
616
+ function Te(e, t, n) {
614
617
  switch (e) {
615
618
  case `\\\\`: return `\\`;
616
619
  case `\\'`: return `'`;
@@ -620,12 +623,12 @@
620
623
  }
621
624
  }
622
625
  }
623
- function De(e = {}) {
626
+ function Ee(e = {}) {
624
627
  let t = e.location !== !1, { onError: n } = e;
625
628
  function r(e, r, i, a, ...o) {
626
629
  let s = e.currentPosition();
627
630
  if (s.offset += a, s.column += a, n) {
628
- let e = z(r, t ? _e(i, s) : null, {
631
+ let e = B(r, t ? ge(i, s) : null, {
629
632
  domain: `parser`,
630
633
  args: o
631
634
  });
@@ -644,7 +647,7 @@
644
647
  }
645
648
  function o(e, t) {
646
649
  let n = e.context(), r = i(3, n.offset, n.startLoc);
647
- return r.value = t.replace(we, Te), a(r, e.currentOffset(), e.currentPosition()), r;
650
+ return r.value = t.replace(Ce, we), a(r, e.currentOffset(), e.currentPosition()), r;
648
651
  }
649
652
  function s(e, t) {
650
653
  let { lastOffset: n, lastStartLoc: r } = e.context(), o = i(5, n, r);
@@ -656,11 +659,11 @@
656
659
  }
657
660
  function u(e, t) {
658
661
  let { lastOffset: n, lastStartLoc: r } = e.context(), o = i(9, n, r);
659
- return o.value = t.replace(Ce, Ee), e.nextToken(), a(o, e.currentOffset(), e.currentPosition()), o;
662
+ return o.value = t.replace(Se, Te), e.nextToken(), a(o, e.currentOffset(), e.currentPosition()), o;
660
663
  }
661
664
  function d(e) {
662
665
  let t = e.nextToken(), n = e.context(), { lastOffset: o, lastStartLoc: s } = n, c = i(8, o, s);
663
- return t.type === 11 ? (t.value == null && r(e, R.UNEXPECTED_LEXICAL_ANALYSIS, n.lastStartLoc, 0, V(t)), c.value = t.value || ``, a(c, e.currentOffset(), e.currentPosition()), { node: c }) : (r(e, R.UNEXPECTED_EMPTY_LINKED_MODIFIER, n.lastStartLoc, 0), c.value = ``, a(c, o, s), {
666
+ return t.type === 11 ? (t.value == null && r(e, z.UNEXPECTED_LEXICAL_ANALYSIS, n.lastStartLoc, 0, H(t)), c.value = t.value || ``, a(c, e.currentOffset(), e.currentPosition()), { node: c }) : (r(e, z.UNEXPECTED_EMPTY_LINKED_MODIFIER, n.lastStartLoc, 0), c.value = ``, a(c, o, s), {
664
667
  nextConsumeToken: t,
665
668
  node: c
666
669
  });
@@ -675,21 +678,21 @@
675
678
  let t = d(e);
676
679
  n.modifier = t.node, o = t.nextConsumeToken || e.nextToken();
677
680
  }
678
- switch (o.type !== 9 && r(e, R.UNEXPECTED_LEXICAL_ANALYSIS, t.lastStartLoc, 0, V(o)), o = e.nextToken(), o.type === 2 && (o = e.nextToken()), o.type) {
681
+ switch (o.type !== 9 && r(e, z.UNEXPECTED_LEXICAL_ANALYSIS, t.lastStartLoc, 0, H(o)), o = e.nextToken(), o.type === 2 && (o = e.nextToken()), o.type) {
679
682
  case 10:
680
- o.value == null && r(e, R.UNEXPECTED_LEXICAL_ANALYSIS, t.lastStartLoc, 0, V(o)), n.key = f(e, o.value || ``);
683
+ o.value == null && r(e, z.UNEXPECTED_LEXICAL_ANALYSIS, t.lastStartLoc, 0, H(o)), n.key = f(e, o.value || ``);
681
684
  break;
682
685
  case 4:
683
- o.value == null && r(e, R.UNEXPECTED_LEXICAL_ANALYSIS, t.lastStartLoc, 0, V(o)), n.key = c(e, o.value || ``);
686
+ o.value == null && r(e, z.UNEXPECTED_LEXICAL_ANALYSIS, t.lastStartLoc, 0, H(o)), n.key = c(e, o.value || ``);
684
687
  break;
685
688
  case 5:
686
- o.value == null && r(e, R.UNEXPECTED_LEXICAL_ANALYSIS, t.lastStartLoc, 0, V(o)), n.key = s(e, o.value || ``);
689
+ o.value == null && r(e, z.UNEXPECTED_LEXICAL_ANALYSIS, t.lastStartLoc, 0, H(o)), n.key = s(e, o.value || ``);
687
690
  break;
688
691
  case 6:
689
- o.value == null && r(e, R.UNEXPECTED_LEXICAL_ANALYSIS, t.lastStartLoc, 0, V(o)), n.key = u(e, o.value || ``);
692
+ o.value == null && r(e, z.UNEXPECTED_LEXICAL_ANALYSIS, t.lastStartLoc, 0, H(o)), n.key = u(e, o.value || ``);
690
693
  break;
691
694
  default: {
692
- r(e, R.UNEXPECTED_EMPTY_LINKED_KEY, t.lastStartLoc, 0);
695
+ r(e, z.UNEXPECTED_EMPTY_LINKED_KEY, t.lastStartLoc, 0);
693
696
  let s = e.context(), c = i(7, s.offset, s.startLoc);
694
697
  return c.value = ``, a(c, s.offset, s.startLoc), n.key = c, a(n, s.offset, s.startLoc), {
695
698
  nextConsumeToken: o,
@@ -707,16 +710,16 @@
707
710
  let i = l || e.nextToken();
708
711
  switch (l = null, i.type) {
709
712
  case 0:
710
- i.value == null && r(e, R.UNEXPECTED_LEXICAL_ANALYSIS, t.lastStartLoc, 0, V(i)), n.items.push(o(e, i.value || ``));
713
+ i.value == null && r(e, z.UNEXPECTED_LEXICAL_ANALYSIS, t.lastStartLoc, 0, H(i)), n.items.push(o(e, i.value || ``));
711
714
  break;
712
715
  case 5:
713
- i.value == null && r(e, R.UNEXPECTED_LEXICAL_ANALYSIS, t.lastStartLoc, 0, V(i)), n.items.push(s(e, i.value || ``));
716
+ i.value == null && r(e, z.UNEXPECTED_LEXICAL_ANALYSIS, t.lastStartLoc, 0, H(i)), n.items.push(s(e, i.value || ``));
714
717
  break;
715
718
  case 4:
716
- i.value == null && r(e, R.UNEXPECTED_LEXICAL_ANALYSIS, t.lastStartLoc, 0, V(i)), n.items.push(c(e, i.value || ``));
719
+ i.value == null && r(e, z.UNEXPECTED_LEXICAL_ANALYSIS, t.lastStartLoc, 0, H(i)), n.items.push(c(e, i.value || ``));
717
720
  break;
718
721
  case 6:
719
- i.value == null && r(e, R.UNEXPECTED_LEXICAL_ANALYSIS, t.lastStartLoc, 0, V(i)), n.items.push(u(e, i.value || ``));
722
+ i.value == null && r(e, z.UNEXPECTED_LEXICAL_ANALYSIS, t.lastStartLoc, 0, H(i)), n.items.push(u(e, i.value || ``));
720
723
  break;
721
724
  case 7: {
722
725
  let t = p(e);
@@ -734,164 +737,164 @@
734
737
  let t = m(e);
735
738
  c || (c = t.items.length === 0), l.cases.push(t);
736
739
  } while (s.currentType !== 13);
737
- return c && r(e, R.MUST_HAVE_MESSAGES_IN_PLURAL, n, 0), a(l, e.currentOffset(), e.currentPosition()), l;
740
+ return c && r(e, z.MUST_HAVE_MESSAGES_IN_PLURAL, n, 0), a(l, e.currentOffset(), e.currentPosition()), l;
738
741
  }
739
742
  function g(e) {
740
743
  let t = e.context(), { offset: n, startLoc: r } = t, i = m(e);
741
744
  return t.currentType === 13 ? i : h(e, n, r, i);
742
745
  }
743
746
  function _(n) {
744
- let o = Se(n, l({}, e)), s = o.context(), c = i(0, s.offset, s.startLoc);
745
- return t && c.loc && (c.loc.source = n), c.body = g(o), e.onCacheKey && (c.cacheKey = e.onCacheKey(n)), s.currentType !== 13 && r(o, R.UNEXPECTED_LEXICAL_ANALYSIS, s.lastStartLoc, 0, n[s.offset] || ``), a(c, o.currentOffset(), o.currentPosition()), c;
747
+ let o = xe(n, l({}, e)), s = o.context(), c = i(0, s.offset, s.startLoc);
748
+ return t && c.loc && (c.loc.source = n), c.body = g(o), e.onCacheKey && (c.cacheKey = e.onCacheKey(n)), s.currentType !== 13 && r(o, z.UNEXPECTED_LEXICAL_ANALYSIS, s.lastStartLoc, 0, n[s.offset] || ``), a(c, o.currentOffset(), o.currentPosition()), c;
746
749
  }
747
750
  return { parse: _ };
748
751
  }
749
- function V(e) {
752
+ function H(e) {
750
753
  if (e.type === 13) return `EOF`;
751
754
  let t = (e.value || ``).replace(/\r?\n/gu, `\\n`);
752
755
  return t.length > 10 ? t.slice(0, 9) + `…` : t;
753
756
  }
754
- function H(e) {
755
- return b(e) && Le(e) === 0 && (p(e, `b`) || p(e, `body`));
757
+ function U(e) {
758
+ return b(e) && Ie(e) === 0 && (p(e, `b`) || p(e, `body`));
756
759
  }
757
- let Oe = [`b`, `body`];
758
- function ke(e) {
759
- return W(e, Oe);
760
+ let De = [`b`, `body`];
761
+ function Oe(e) {
762
+ return G(e, De);
760
763
  }
761
- let Ae = [`c`, `cases`];
762
- function je(e) {
763
- return W(e, Ae, []);
764
+ let ke = [`c`, `cases`];
765
+ function Ae(e) {
766
+ return G(e, ke, []);
764
767
  }
765
- let Me = [`s`, `static`];
766
- function Ne(e) {
767
- return W(e, Me);
768
+ let je = [`s`, `static`];
769
+ function Me(e) {
770
+ return G(e, je);
768
771
  }
769
- let Pe = [`i`, `items`];
770
- function Fe(e) {
771
- return W(e, Pe, []);
772
+ let Ne = [`i`, `items`];
773
+ function Pe(e) {
774
+ return G(e, Ne, []);
772
775
  }
773
- let Ie = [`t`, `type`];
774
- function Le(e) {
775
- return W(e, Ie);
776
+ let Fe = [`t`, `type`];
777
+ function Ie(e) {
778
+ return G(e, Fe);
776
779
  }
777
- let Re = [`v`, `value`];
778
- function U(e, t) {
779
- let n = W(e, Re);
780
+ let Le = [`v`, `value`];
781
+ function W(e, t) {
782
+ let n = G(e, Le);
780
783
  if (n != null) return n;
781
- throw G(t);
784
+ throw K(t);
782
785
  }
783
- let ze = [`m`, `modifier`];
784
- function Be(e) {
785
- return W(e, ze);
786
+ let Re = [`m`, `modifier`];
787
+ function ze(e) {
788
+ return G(e, Re);
786
789
  }
787
- let Ve = [`k`, `key`];
788
- function He(e) {
789
- let t = W(e, Ve);
790
+ let Be = [`k`, `key`];
791
+ function Ve(e) {
792
+ let t = G(e, Be);
790
793
  if (t) return t;
791
- throw G(6);
794
+ throw K(6);
792
795
  }
793
- function W(e, t, n) {
796
+ function G(e, t, n) {
794
797
  for (let n = 0; n < t.length; n++) {
795
798
  let r = t[n];
796
799
  if (p(e, r) && e[r] != null) return e[r];
797
800
  }
798
801
  return n;
799
802
  }
800
- let Ue = [
801
- ...Oe,
802
- ...Ae,
803
- ...Me,
804
- ...Pe,
805
- ...Ve,
806
- ...ze,
803
+ let He = [
804
+ ...De,
805
+ ...ke,
806
+ ...je,
807
+ ...Ne,
808
+ ...Be,
807
809
  ...Re,
808
- ...Ie
810
+ ...Le,
811
+ ...Fe
809
812
  ];
810
- function G(e) {
813
+ function K(e) {
811
814
  return Error(`unhandled node type: ${e}`);
812
815
  }
813
- function We(e) {
814
- return (t) => Ge(t, e);
816
+ function Ue(e) {
817
+ return (t) => We(t, e);
815
818
  }
816
- function Ge(e, t) {
817
- let n = ke(t);
818
- if (n == null) throw G(0);
819
- if (Le(n) === 1) {
820
- let t = je(n);
821
- return e.plural(t.reduce((t, n) => [...g(t) ? t : [t], Ke(e, n)], []));
819
+ function We(e, t) {
820
+ let n = Oe(t);
821
+ if (n == null) throw K(0);
822
+ if (Ie(n) === 1) {
823
+ let t = Ae(n);
824
+ return e.plural(t.reduce((t, n) => [...g(t) ? t : [t], Ge(e, n)], []));
822
825
  }
823
- return Ke(e, n);
826
+ return Ge(e, n);
824
827
  }
825
- function Ke(e, t) {
826
- let n = Ne(t);
828
+ function Ge(e, t) {
829
+ let n = Me(t);
827
830
  if (n != null) return e.type === `text` ? n : e.normalize([n]);
828
831
  {
829
- let n = Fe(t).reduce((t, n) => [...t, qe(e, n)], []);
832
+ let n = Pe(t).reduce((t, n) => [...t, Ke(e, n)], []);
830
833
  return e.normalize(n);
831
834
  }
832
835
  }
833
- function qe(e, t) {
834
- let n = Le(t);
836
+ function Ke(e, t) {
837
+ let n = Ie(t);
835
838
  switch (n) {
836
- case 3: return U(t, n);
837
- case 9: return U(t, n);
839
+ case 3: return W(t, n);
840
+ case 9: return W(t, n);
838
841
  case 4: {
839
842
  let r = t;
840
843
  if (p(r, `k`) && r.k) return e.interpolate(e.named(r.k));
841
844
  if (p(r, `key`) && r.key) return e.interpolate(e.named(r.key));
842
- throw G(n);
845
+ throw K(n);
843
846
  }
844
847
  case 5: {
845
848
  let r = t;
846
849
  if (p(r, `i`) && a(r.i)) return e.interpolate(e.list(r.i));
847
850
  if (p(r, `index`) && a(r.index)) return e.interpolate(e.list(r.index));
848
- throw G(n);
851
+ throw K(n);
849
852
  }
850
853
  case 6: {
851
- let n = t, r = Be(n), i = He(n);
852
- return e.linked(qe(e, i), r ? qe(e, r) : void 0, e.type);
854
+ let n = t, r = ze(n), i = Ve(n);
855
+ return e.linked(Ke(e, i), r ? Ke(e, r) : void 0, e.type);
853
856
  }
854
- case 7: return U(t, n);
855
- case 8: return U(t, n);
857
+ case 7: return W(t, n);
858
+ case 8: return W(t, n);
856
859
  default: throw Error(`unhandled node on format message part: ${n}`);
857
860
  }
858
861
  }
859
- let Je = (e) => e, K = d();
860
- function Ye() {
861
- K = d();
862
+ let qe = (e) => e, q = d();
863
+ function Je() {
864
+ q = d();
862
865
  }
863
- function Xe(e, t = {}) {
864
- let n = !1, r = t.onError || ve;
866
+ function Ye(e, t = {}) {
867
+ let n = !1, r = t.onError || _e;
865
868
  t.onError = (e) => {
866
869
  n = !0, r(e);
867
870
  };
868
- let i = De(t).parse(e);
869
- return t.optimize && ye(i), t.mangle && B(i), {
871
+ let i = Ee(t).parse(e);
872
+ return t.optimize && ve(i), t.mangle && V(i), {
870
873
  ast: i,
871
874
  detectError: n,
872
875
  code: ``
873
876
  };
874
877
  }
875
- function Ze(e, t) {
878
+ function Xe(e, t) {
876
879
  if (v(e)) {
877
880
  y(t.warnHtmlMessage) && t.warnHtmlMessage;
878
- let n = (t.onCacheKey || Je)(e), r = K[n];
881
+ let n = (t.onCacheKey || qe)(e), r = q[n];
879
882
  if (r) return r;
880
- let { ast: i, detectError: a } = Xe(e, {
883
+ let { ast: i, detectError: a } = Ye(e, {
881
884
  ...t,
882
885
  location: !1,
883
886
  mangle: !0,
884
887
  optimize: !0
885
- }), o = We(i);
886
- return a ? o : K[n] = o;
888
+ }), o = Ue(i);
889
+ return a ? o : q[n] = o;
887
890
  }
888
891
  {
889
- if (!H(e)) return (() => e);
892
+ if (!U(e)) return (() => e);
890
893
  let t = e.cacheKey;
891
- return t ? K[t] || (K[t] = We(e)) : We(e);
894
+ return t ? q[t] || (q[t] = Ue(e)) : Ue(e);
892
895
  }
893
896
  }
894
- let q = {
897
+ let J = {
895
898
  INVALID_ARGUMENT: 17,
896
899
  INVALID_DATE_ARGUMENT: 18,
897
900
  INVALID_ISO_DATE_ARGUMENT: 19,
@@ -899,56 +902,56 @@
899
902
  NOT_SUPPORT_LOCALE_ASYNC_FUNCTION: 21,
900
903
  NOT_SUPPORT_LOCALE_TYPE: 22
901
904
  };
902
- function J(e) {
903
- return z(e, null, void 0);
905
+ function Y(e) {
906
+ return B(e, null, void 0);
904
907
  }
905
- q.INVALID_ARGUMENT, q.INVALID_DATE_ARGUMENT, q.INVALID_ISO_DATE_ARGUMENT, q.NOT_SUPPORT_LOCALE_PROMISE_VALUE, q.NOT_SUPPORT_LOCALE_ASYNC_FUNCTION, q.NOT_SUPPORT_LOCALE_TYPE;
906
- function Qe(e, t) {
907
- return t.locale == null ? et(e.locale) : et(t.locale);
908
+ J.INVALID_ARGUMENT, J.INVALID_DATE_ARGUMENT, J.INVALID_ISO_DATE_ARGUMENT, J.NOT_SUPPORT_LOCALE_PROMISE_VALUE, J.NOT_SUPPORT_LOCALE_ASYNC_FUNCTION, J.NOT_SUPPORT_LOCALE_TYPE;
909
+ function Ze(e, t) {
910
+ return t.locale == null ? $e(e.locale) : $e(t.locale);
908
911
  }
909
- let $e;
910
- function et(e) {
912
+ let Qe;
913
+ function $e(e) {
911
914
  if (v(e)) return e;
912
915
  if (_(e)) {
913
- if (e.resolvedOnce && $e != null) return $e;
916
+ if (e.resolvedOnce && Qe != null) return Qe;
914
917
  if (e.constructor.name === `Function`) {
915
918
  let t = e();
916
- if (x(t)) throw J(q.NOT_SUPPORT_LOCALE_PROMISE_VALUE);
917
- return $e = t;
919
+ if (x(t)) throw Y(J.NOT_SUPPORT_LOCALE_PROMISE_VALUE);
920
+ return Qe = t;
918
921
  }
919
- throw J(q.NOT_SUPPORT_LOCALE_ASYNC_FUNCTION);
922
+ throw Y(J.NOT_SUPPORT_LOCALE_ASYNC_FUNCTION);
920
923
  }
921
- throw J(q.NOT_SUPPORT_LOCALE_TYPE);
924
+ throw Y(J.NOT_SUPPORT_LOCALE_TYPE);
922
925
  }
923
- function tt(e, t, n) {
926
+ function et(e, t, n) {
924
927
  return [.../* @__PURE__ */ new Set([n, ...g(t) ? t : b(t) ? Object.keys(t).filter((e) => e !== "default") : v(t) ? [t] : [n]])];
925
928
  }
926
- function nt(e, t, n) {
927
- let r = v(n) ? n : vt, i = e, a;
929
+ function tt(e, t, n) {
930
+ let r = v(n) ? n : _t, i = e, a;
928
931
  b(t) ? (i.__localeChainObjectCache || (i.__localeChainObjectCache = /* @__PURE__ */ new WeakMap()), a = i.__localeChainObjectCache.get(t), a || (a = /* @__PURE__ */ new Map(), i.__localeChainObjectCache.set(t, a))) : (i.__localeChainCache || (i.__localeChainCache = /* @__PURE__ */ new Map()), a = i.__localeChainCache.get(t), a || (a = /* @__PURE__ */ new Map(), i.__localeChainCache.set(t, a)));
929
932
  let o = a.get(r);
930
933
  if (o) return o;
931
934
  let s = [], c = [n];
932
- for (; g(c);) c = rt(s, c, t);
935
+ for (; g(c);) c = nt(s, c, t);
933
936
  let l = g(t) || !w(t) ? t : t.default ? t.default : null;
934
- return c = v(l) ? [l] : l, g(c) && rt(s, c, !1), a.set(r, s), s;
937
+ return c = v(l) ? [l] : l, g(c) && nt(s, c, !1), a.set(r, s), s;
935
938
  }
936
- function rt(e, t, n) {
939
+ function nt(e, t, n) {
937
940
  let r = !0;
938
941
  for (let i = 0; i < t.length && y(r); i++) {
939
942
  let a = t[i];
940
- v(a) && (r = it(e, t[i], n));
943
+ v(a) && (r = rt(e, t[i], n));
941
944
  }
942
945
  return r;
943
946
  }
944
- function it(e, t, n) {
947
+ function rt(e, t, n) {
945
948
  let r, i = t.split(`-`);
946
949
  do
947
- r = at(e, i.join(`-`), n), i.splice(-1, 1);
950
+ r = it(e, i.join(`-`), n), i.splice(-1, 1);
948
951
  while (i.length && r === !0);
949
952
  return r;
950
953
  }
951
- function at(e, t, n) {
954
+ function it(e, t, n) {
952
955
  let r = !1;
953
956
  if (!e.includes(t) && (r = !0, t)) {
954
957
  r = t[t.length - 1] !== `!`;
@@ -957,53 +960,53 @@
957
960
  }
958
961
  return r;
959
962
  }
960
- let Y = [];
961
- Y[0] = {
963
+ let X = [];
964
+ X[0] = {
962
965
  w: [0],
963
966
  i: [3, 0],
964
967
  "[": [4],
965
968
  o: [7]
966
- }, Y[1] = {
969
+ }, X[1] = {
967
970
  w: [1],
968
971
  ".": [2],
969
972
  "[": [4],
970
973
  o: [7]
971
- }, Y[2] = {
974
+ }, X[2] = {
972
975
  w: [2],
973
976
  i: [3, 0],
974
977
  0: [3, 0]
975
- }, Y[3] = {
978
+ }, X[3] = {
976
979
  i: [3, 0],
977
980
  0: [3, 0],
978
981
  w: [1, 1],
979
982
  ".": [2, 1],
980
983
  "[": [4, 1],
981
984
  o: [7, 1]
982
- }, Y[4] = {
985
+ }, X[4] = {
983
986
  "'": [5, 0],
984
987
  "\"": [6, 0],
985
988
  "[": [4, 2],
986
989
  "]": [1, 3],
987
990
  o: 8,
988
991
  l: [4, 0]
989
- }, Y[5] = {
992
+ }, X[5] = {
990
993
  "'": [4, 0],
991
994
  o: 8,
992
995
  l: [5, 0]
993
- }, Y[6] = {
996
+ }, X[6] = {
994
997
  "\"": [4, 0],
995
998
  o: 8,
996
999
  l: [6, 0]
997
1000
  };
998
- let ot = /^\s?(?:true|false|-?[\d.]+|'[^']*'|"[^"]*")\s?$/;
999
- function st(e) {
1000
- return ot.test(e);
1001
+ let at = /^\s?(?:true|false|-?[\d.]+|'[^']*'|"[^"]*")\s?$/;
1002
+ function ot(e) {
1003
+ return at.test(e);
1001
1004
  }
1002
- function ct(e) {
1005
+ function st(e) {
1003
1006
  let t = e.charCodeAt(0);
1004
1007
  return t === e.charCodeAt(e.length - 1) && (t === 34 || t === 39) ? e.slice(1, -1) : e;
1005
1008
  }
1006
- function lt(e) {
1009
+ function ct(e) {
1007
1010
  if (e == null) return `o`;
1008
1011
  switch (e.charCodeAt(0)) {
1009
1012
  case 91:
@@ -1024,11 +1027,11 @@
1024
1027
  }
1025
1028
  return `i`;
1026
1029
  }
1027
- function ut(e) {
1030
+ function lt(e) {
1028
1031
  let t = e.trim();
1029
- return e.charAt(0) === `0` && isNaN(parseInt(e)) ? !1 : st(t) ? ct(t) : `*` + t;
1032
+ return e.charAt(0) === `0` && isNaN(parseInt(e)) ? !1 : ot(t) ? st(t) : `*` + t;
1030
1033
  }
1031
- function dt(e) {
1034
+ function ut(e) {
1032
1035
  let t = [], n = -1, r = 0, i = 0, a, o, s, c, l, u, d, f = [];
1033
1036
  f[0] = () => {
1034
1037
  o === void 0 ? o = s : o += s;
@@ -1039,7 +1042,7 @@
1039
1042
  }, f[3] = () => {
1040
1043
  if (i > 0) i--, r = 4, f[0]();
1041
1044
  else {
1042
- if (i = 0, o === void 0 || (o = ut(o), o === !1)) return !1;
1045
+ if (i = 0, o === void 0 || (o = lt(o), o === !1)) return !1;
1043
1046
  f[1]();
1044
1047
  }
1045
1048
  };
@@ -1048,29 +1051,29 @@
1048
1051
  if (r === 5 && t === `'` || r === 6 && t === `"`) return n++, s = `\\` + t, f[0](), !0;
1049
1052
  }
1050
1053
  for (; r !== null;) if (n++, a = e[n], !(a === `\\` && p())) {
1051
- if (c = lt(a), d = Y[r], l = d[c] || d.l || 8, l === 8 || (r = l[0], l[1] !== void 0 && (u = f[l[1]], u && (s = a, u() === !1)))) return;
1054
+ if (c = ct(a), d = X[r], l = d[c] || d.l || 8, l === 8 || (r = l[0], l[1] !== void 0 && (u = f[l[1]], u && (s = a, u() === !1)))) return;
1052
1055
  if (r === 7) return t;
1053
1056
  }
1054
1057
  }
1055
- let ft = /* @__PURE__ */ new Map();
1056
- function pt(e, t) {
1058
+ let dt = /* @__PURE__ */ new Map();
1059
+ function ft(e, t) {
1057
1060
  return b(e) ? m(e, t) : null;
1058
1061
  }
1059
- function mt(e, t) {
1062
+ function pt(e, t) {
1060
1063
  if (!b(e)) return null;
1061
- let n = ft.get(t);
1062
- if (n || (n = dt(t), n && ft.set(t, n)), !n) return null;
1064
+ let n = dt.get(t);
1065
+ if (n || (n = ut(t), n && dt.set(t, n)), !n) return null;
1063
1066
  let r = n.length, i = e, a = 0;
1064
1067
  for (; a < r;) {
1065
1068
  let e = n[a];
1066
- if (Ue.includes(e) && H(i) || !b(i) || !p(i, e)) return null;
1069
+ if (He.includes(e) && U(i) || !b(i) || !p(i, e)) return null;
1067
1070
  let t = i[e];
1068
1071
  if (t === void 0 || _(i)) return null;
1069
1072
  i = t, a++;
1070
1073
  }
1071
1074
  return i;
1072
1075
  }
1073
- let X = {
1076
+ let Z = {
1074
1077
  NOT_FOUND_KEY: 1,
1075
1078
  FALLBACK_TO_TRANSLATE: 2,
1076
1079
  CANNOT_FORMAT_NUMBER: 3,
@@ -1083,50 +1086,50 @@
1083
1086
  IGNORE_UNSAFE_LOCALE: 10,
1084
1087
  FALLBACK_TO_DEFAULT_PLURAL_RULE: 11,
1085
1088
  FALLBACK_FROM_INVALID_LOCALE: 12
1086
- }, ht = {
1087
- [X.NOT_FOUND_KEY]: `Not found '{key}' key in '{locale}' locale {resource}.`,
1088
- [X.FALLBACK_TO_TRANSLATE]: `Fall back to translate '{key}' key with '{target}' locale.`,
1089
- [X.CANNOT_FORMAT_NUMBER]: `Cannot format a number value due to not supported Intl.NumberFormat.`,
1090
- [X.FALLBACK_TO_NUMBER_FORMAT]: `Fall back to number format '{key}' key with '{target}' locale.`,
1091
- [X.CANNOT_FORMAT_DATE]: `Cannot format a date value due to not supported Intl.DateTimeFormat.`,
1092
- [X.FALLBACK_TO_DATE_FORMAT]: `Fall back to datetime format '{key}' key with '{target}' locale.`,
1093
- [X.EXPERIMENTAL_CUSTOM_MESSAGE_COMPILER]: `This project is using Custom Message Compiler, which is an experimental feature. It may receive breaking changes or be removed in the future.`,
1094
- [X.INVALID_NUMBER_ARGUMENT]: `Invalid argument for number formatting: expected a number but received '{value}'.`,
1095
- [X.INVALID_DATE_ARGUMENT]: `Invalid argument for datetime formatting: expected a Date, number, or ISO string but received '{value}'.`,
1096
- [X.IGNORE_UNSAFE_LOCALE]: `Ignore '{locale}' locale: it is a property name of Object.prototype`,
1097
- [X.FALLBACK_TO_DEFAULT_PLURAL_RULE]: `Fall back to the default plural rule for '{locale}' locale: Intl.PluralRules does not support it`,
1098
- [X.FALLBACK_FROM_INVALID_LOCALE]: `Fall back to '{target}' locale for {type} formatting with '{locale}' locale: it is not a BCP 47 language tag`
1089
+ }, mt = {
1090
+ [Z.NOT_FOUND_KEY]: `Not found '{key}' key in '{locale}' locale {resource}.`,
1091
+ [Z.FALLBACK_TO_TRANSLATE]: `Fall back to translate '{key}' key with '{target}' locale.`,
1092
+ [Z.CANNOT_FORMAT_NUMBER]: `Cannot format a number value due to not supported Intl.NumberFormat.`,
1093
+ [Z.FALLBACK_TO_NUMBER_FORMAT]: `Fall back to number format '{key}' key with '{target}' locale.`,
1094
+ [Z.CANNOT_FORMAT_DATE]: `Cannot format a date value due to not supported Intl.DateTimeFormat.`,
1095
+ [Z.FALLBACK_TO_DATE_FORMAT]: `Fall back to datetime format '{key}' key with '{target}' locale.`,
1096
+ [Z.EXPERIMENTAL_CUSTOM_MESSAGE_COMPILER]: `This project is using Custom Message Compiler, which is an experimental feature. It may receive breaking changes or be removed in the future.`,
1097
+ [Z.INVALID_NUMBER_ARGUMENT]: `Invalid argument for number formatting: expected a number but received '{value}'.`,
1098
+ [Z.INVALID_DATE_ARGUMENT]: `Invalid argument for datetime formatting: expected a Date, number, or ISO string but received '{value}'.`,
1099
+ [Z.IGNORE_UNSAFE_LOCALE]: `Ignore '{locale}' locale: it is a property name of Object.prototype`,
1100
+ [Z.FALLBACK_TO_DEFAULT_PLURAL_RULE]: `Fall back to the default plural rule for '{locale}' locale: Intl.PluralRules does not support it`,
1101
+ [Z.FALLBACK_FROM_INVALID_LOCALE]: `Fall back to '{target}' locale for {type} formatting with '{locale}' locale: it is not a BCP 47 language tag`
1099
1102
  };
1100
- function gt(e, ...t) {
1101
- return n(ht[e], ...t);
1103
+ function ht(e, ...t) {
1104
+ return n(mt[e], ...t);
1102
1105
  }
1103
- let _t = `12.0.0-alpha.10`, vt = `en-US`, yt = (e) => `${e.charAt(0).toLocaleUpperCase()}${e.substr(1)}`;
1104
- function bt() {
1106
+ let gt = `12.0.0-alpha.12`, _t = `en-US`, vt = (e) => `${e.charAt(0).toLocaleUpperCase()}${e.substr(1)}`;
1107
+ function yt() {
1105
1108
  return {
1106
1109
  upper: (e, t) => t === `text` && v(e) ? e.toUpperCase() : t === `vnode` && b(e) && `__v_isVNode` in e ? e.children.toUpperCase() : e,
1107
1110
  lower: (e, t) => t === `text` && v(e) ? e.toLowerCase() : t === `vnode` && b(e) && `__v_isVNode` in e ? e.children.toLowerCase() : e,
1108
- capitalize: (e, t) => t === `text` && v(e) ? yt(e) : t === `vnode` && b(e) && `__v_isVNode` in e ? yt(e.children) : e
1111
+ capitalize: (e, t) => t === `text` && v(e) ? vt(e) : t === `vnode` && b(e) && `__v_isVNode` in e ? vt(e.children) : e
1109
1112
  };
1110
1113
  }
1111
- let xt;
1112
- function St(e) {
1113
- xt = e;
1114
+ let bt;
1115
+ function xt(e) {
1116
+ bt = e;
1114
1117
  }
1115
- let Ct;
1116
- function wt(e) {
1117
- Ct = e;
1118
+ let St;
1119
+ function Ct(e) {
1120
+ St = e;
1118
1121
  }
1119
- let Tt;
1120
- function Et(e) {
1121
- Tt = e;
1122
+ let wt;
1123
+ function Tt(e) {
1124
+ wt = e;
1122
1125
  }
1123
- let Dt = 0;
1124
- function Ot(e = {}) {
1125
- let t = _(e.onWarn) ? e.onWarn : E, n = v(e.version) ? e.version : _t, r = v(e.locale) || _(e.locale) ? e.locale : vt, i = _(r) ? vt : r, a = Mt(e.fallbackLocale) ? e.fallbackLocale : i, o = w(e.messages) ? e.messages : kt(i), s = w(e.datetimeFormats) ? e.datetimeFormats : kt(i), c = w(e.numberFormats) ? e.numberFormats : kt(i), u = l(d(), e.modifiers, bt()), f = e.pluralRules || d(), p = _(e.missing) ? e.missing : null, m = !Nt(e.missingWarn) || e.missingWarn, h = !Nt(e.fallbackWarn) || e.fallbackWarn, g = !!e.fallbackFormat, x = !!e.unresolving, S = _(e.postTranslation) ? e.postTranslation : null, C = w(e.processor) ? e.processor : null, ee = !y(e.warnHtmlMessage) || e.warnHtmlMessage, T = !!e.escapeParameter, D = _(e.messageCompiler) ? e.messageCompiler : xt || null, te = _(e.messageResolver) ? e.messageResolver : Ct || pt, ne = _(e.localeFallbacker) ? e.localeFallbacker : Tt || tt, re = b(e.fallbackContext) ? e.fallbackContext : void 0;
1126
- Dt++;
1127
- let O = {
1126
+ let Et = 0;
1127
+ function Dt(e = {}) {
1128
+ let t = _(e.onWarn) ? e.onWarn : D, n = v(e.version) ? e.version : gt, r = v(e.locale) || _(e.locale) ? e.locale : _t, i = _(r) ? _t : r, a = jt(e.fallbackLocale) ? e.fallbackLocale : i, o = w(e.messages) ? e.messages : Ot(i), s = w(e.datetimeFormats) ? e.datetimeFormats : Ot(i), c = w(e.numberFormats) ? e.numberFormats : Ot(i), u = l(d(), e.modifiers, yt()), f = e.pluralRules || d(), p = _(e.missing) ? e.missing : null, m = !Mt(e.missingWarn) || e.missingWarn, h = !Mt(e.fallbackWarn) || e.fallbackWarn, g = !!e.fallbackFormat, x = !!e.unresolving, S = _(e.postTranslation) ? e.postTranslation : null, C = w(e.processor) ? e.processor : null, T = !y(e.warnHtmlMessage) || e.warnHtmlMessage, E = !!e.escapeParameter, O = _(e.messageCompiler) ? e.messageCompiler : bt || null, ee = _(e.messageResolver) ? e.messageResolver : St || ft, te = _(e.localeFallbacker) ? e.localeFallbacker : wt || et, ne = b(e.fallbackContext) ? e.fallbackContext : void 0;
1129
+ Et++;
1130
+ let k = {
1128
1131
  version: n,
1129
- cid: Dt,
1132
+ cid: Et,
1130
1133
  locale: r,
1131
1134
  fallbackLocale: a,
1132
1135
  messages: o,
@@ -1139,39 +1142,39 @@
1139
1142
  unresolving: x,
1140
1143
  postTranslation: S,
1141
1144
  processor: C,
1142
- warnHtmlMessage: ee,
1143
- escapeParameter: T,
1144
- messageCompiler: D,
1145
- messageResolver: te,
1146
- localeFallbacker: ne,
1147
- fallbackContext: re,
1145
+ warnHtmlMessage: T,
1146
+ escapeParameter: E,
1147
+ messageCompiler: O,
1148
+ messageResolver: ee,
1149
+ localeFallbacker: te,
1150
+ fallbackContext: ne,
1148
1151
  onWarn: t
1149
1152
  };
1150
- return O.datetimeFormats = s, O.numberFormats = c, O.__datetimeFormatters = /* @__PURE__ */ new Map(), O.__numberFormatters = /* @__PURE__ */ new Map(), O;
1153
+ return k.datetimeFormats = s, k.numberFormats = c, k.__datetimeFormatters = /* @__PURE__ */ new Map(), k.__numberFormatters = /* @__PURE__ */ new Map(), k;
1151
1154
  }
1152
- let kt = (e) => ({ [e]: d() });
1153
- function At(e, t) {
1155
+ let Ot = (e) => ({ [e]: d() });
1156
+ function kt(e, t) {
1154
1157
  let n = m(e.messages, t);
1155
1158
  if (n == null) return;
1156
1159
  let r = d();
1157
- return he(n, r), r;
1160
+ return R(n, r), r;
1158
1161
  }
1159
- function jt(e, t, n) {
1162
+ function At(e, t, n) {
1160
1163
  h(t) || (e.messages[t] = n);
1161
1164
  }
1162
- function Mt(e) {
1165
+ function jt(e) {
1163
1166
  return v(e) || g(e) || w(e) || e === !1;
1164
1167
  }
1165
- function Nt(e) {
1168
+ function Mt(e) {
1166
1169
  return y(e) || s(e);
1167
1170
  }
1168
- function Pt(e, t) {
1171
+ function Nt(e, t) {
1169
1172
  return s(e) ? e.test(t) : e;
1170
1173
  }
1171
- function Ft(e, t) {
1174
+ function Pt(e, t) {
1172
1175
  return s(e) ? e.test(t) : e;
1173
1176
  }
1174
- function It(e, t, n, r, i) {
1177
+ function Ft(e, t, n, r, i) {
1175
1178
  let { missing: a, onWarn: o } = e;
1176
1179
  if (a !== null) {
1177
1180
  let r = a(e, n, t, i);
@@ -1179,84 +1182,84 @@
1179
1182
  }
1180
1183
  return t;
1181
1184
  }
1182
- function Lt(e, t) {
1185
+ function It(e, t) {
1183
1186
  let n = e;
1184
1187
  b(t) ? n.__localeChainObjectCache?.delete(t) : n.__localeChainCache?.delete(t);
1185
1188
  }
1186
- function Rt(e, t, n) {
1187
- Lt(e, n), e.fallbackContext && Lt(e.fallbackContext, n);
1189
+ function Lt(e, t, n) {
1190
+ It(e, n), e.fallbackContext && It(e.fallbackContext, n);
1188
1191
  {
1189
1192
  let { __datetimeFormatters: t, __numberFormatters: n } = e;
1190
1193
  t.clear(), n.clear();
1191
1194
  }
1192
1195
  e.localeFallbacker(e, n, t);
1193
1196
  }
1194
- function zt(e, t) {
1197
+ function Rt(e, t) {
1195
1198
  return e !== t && e.split(`-`)[0] === t.split(`-`)[0];
1196
1199
  }
1197
- function Bt(e, t) {
1200
+ function zt(e, t) {
1198
1201
  let n = t.indexOf(e);
1199
1202
  if (n === -1) return !1;
1200
- for (let r = n + 1; r < t.length; r++) if (zt(e, t[r])) return !0;
1203
+ for (let r = n + 1; r < t.length; r++) if (Rt(e, t[r])) return !0;
1201
1204
  return !1;
1202
1205
  }
1203
- function Vt(e, t, n, r, i, a, o) {
1206
+ function Bt(e, t, n, r, i, a, o) {
1204
1207
  let { fallbackLocale: s, localeFallbacker: c, onWarn: l } = e, u = c(e, s, n);
1205
1208
  for (let n = 0; n < u.length; n++) {
1206
1209
  let a = u[n], s = m(m(r, a) || {}, t);
1207
1210
  if (w(s) && v(a)) return a;
1208
- It(e, t, a, i, o);
1211
+ Ft(e, t, a, i, o);
1209
1212
  }
1210
1213
  return null;
1211
1214
  }
1212
- function Ht(e) {
1215
+ function Vt(e) {
1213
1216
  try {
1214
1217
  return Intl.getCanonicalLocales(e), !0;
1215
1218
  } catch {
1216
1219
  return !1;
1217
1220
  }
1218
1221
  }
1219
- function Ut(e, t, n, r, i) {
1222
+ function Ht(e, t, n, r, i) {
1220
1223
  try {
1221
1224
  return new t(n, r);
1222
1225
  } catch (i) {
1223
- if (Ht(n)) throw i;
1226
+ if (Vt(n)) throw i;
1224
1227
  let { fallbackLocale: a, localeFallbacker: o, onWarn: s } = e;
1225
- return new t(o(e, a, n).find(Ht) || `en-US`, r);
1228
+ return new t(o(e, a, n).find(Vt) || `en-US`, r);
1226
1229
  }
1227
1230
  }
1228
- function Wt(e, [t, n, r, i], a, o, s, c) {
1229
- let u = y(r.missingWarn) ? r.missingWarn : e.missingWarn, d = y(r.fallbackWarn) ? r.fallbackWarn : e.fallbackWarn, f = !!r.part, p = Qe(e, r);
1231
+ function Ut(e, [t, n, r, i], a, o, s, c) {
1232
+ let u = y(r.missingWarn) ? r.missingWarn : e.missingWarn, d = y(r.fallbackWarn) ? r.fallbackWarn : e.fallbackWarn, f = !!r.part, p = Ze(e, r);
1230
1233
  if (!v(t) || t === ``) {
1231
- let t = Ut(e, a, p.replace(/!/g, ``), i, c);
1234
+ let t = Ht(e, a, p.replace(/!/g, ``), i, c);
1232
1235
  return f ? t.formatToParts(n) : t.format(n);
1233
1236
  }
1234
- let m = Vt(e, t, p, s, u, d, c);
1237
+ let m = Bt(e, t, p, s, u, d, c);
1235
1238
  if (!v(m)) return e.unresolving ? -1 : t;
1236
- let h = s[m][t], g = Gt(m, t, i), _ = o.get(g);
1237
- return _ || (_ = Ut(e, a, m, l({}, h, i), c), o.set(g, _)), f ? _.formatToParts(n) : _.format(n);
1239
+ let h = s[m][t], g = Wt(m, t, i), _ = o.get(g);
1240
+ return _ || (_ = Ht(e, a, m, l({}, h, i), c), o.set(g, _)), f ? _.formatToParts(n) : _.format(n);
1238
1241
  }
1239
- function Gt(e, t, n) {
1242
+ function Wt(e, t, n) {
1240
1243
  let r = `${e}__${t}`;
1241
1244
  return w(n) && !c(n) && (r = `${r}__${JSON.stringify(n)}`), r;
1242
1245
  }
1243
- function Kt(e, t, n) {
1246
+ function Gt(e, t, n) {
1244
1247
  for (let r in n) {
1245
1248
  let n = `${t}__${r}`;
1246
1249
  for (let t of e.keys()) (t === n || t.startsWith(`${n}__`)) && e.delete(t);
1247
1250
  }
1248
1251
  }
1249
- function qt(e, t, n, r) {
1252
+ function Kt(e, t, n, r) {
1250
1253
  let [, i, a, o] = e, s = n;
1251
1254
  return v(i) ? t.key = i : w(i) && Object.keys(i).forEach((e) => {
1252
1255
  r.includes(e) ? s[e] = i[e] : t[e] = i[e];
1253
1256
  }), v(a) ? t.locale = a : w(a) && (s = a), w(o) && (s = o), s;
1254
1257
  }
1255
- function Jt(e, ...t) {
1258
+ function qt(e, ...t) {
1256
1259
  let { datetimeFormats: n, onWarn: r } = e, { __datetimeFormatters: i } = e;
1257
- return !v(t[0]) && !o(t[0]) && !a(t[0]) ? `` : Wt(e, Xt(...t), Intl.DateTimeFormat, i, n, `datetime format`);
1260
+ return !v(t[0]) && !o(t[0]) && !a(t[0]) ? `` : Ut(e, Yt(...t), Intl.DateTimeFormat, i, n, `datetime format`);
1258
1261
  }
1259
- let Yt = [
1262
+ let Jt = [
1260
1263
  `localeMatcher`,
1261
1264
  `weekday`,
1262
1265
  `era`,
@@ -1278,24 +1281,24 @@
1278
1281
  `hourCycle`,
1279
1282
  `fractionalSecondDigits`
1280
1283
  ];
1281
- function Xt(...e) {
1284
+ function Yt(...e) {
1282
1285
  let [t] = e, n = d(), r = d(), i;
1283
1286
  if (v(t)) {
1284
1287
  let e = t.match(/^(\d{4}-\d{2}-\d{2})(?:(T|\s)(.+))?$/);
1285
- if (!e) throw J(q.INVALID_ISO_DATE_ARGUMENT);
1288
+ if (!e) throw Y(J.INVALID_ISO_DATE_ARGUMENT);
1286
1289
  let n = e[3] ? e[3].trim().startsWith(`T`) ? `${e[1].trim()}${e[3].trim()}` : `${e[1].trim()}T${e[3].trim()}` : e[1].trim();
1287
1290
  i = new Date(n);
1288
1291
  try {
1289
1292
  i.toISOString();
1290
1293
  } catch {
1291
- throw J(q.INVALID_ISO_DATE_ARGUMENT);
1294
+ throw Y(J.INVALID_ISO_DATE_ARGUMENT);
1292
1295
  }
1293
1296
  } else if (o(t)) {
1294
- if (isNaN(t.getTime())) throw J(q.INVALID_DATE_ARGUMENT);
1297
+ if (isNaN(t.getTime())) throw Y(J.INVALID_DATE_ARGUMENT);
1295
1298
  i = t;
1296
1299
  } else if (a(t)) i = t;
1297
- else throw J(q.INVALID_ARGUMENT);
1298
- let s = qt(e, n, r, Yt);
1300
+ else throw Y(J.INVALID_ARGUMENT);
1301
+ let s = Kt(e, n, r, Jt);
1299
1302
  return [
1300
1303
  n.key || ``,
1301
1304
  i,
@@ -1303,14 +1306,14 @@
1303
1306
  s
1304
1307
  ];
1305
1308
  }
1306
- function Zt(e, t, n) {
1307
- Kt(e.__datetimeFormatters, t, n);
1309
+ function Xt(e, t, n) {
1310
+ Gt(e.__datetimeFormatters, t, n);
1308
1311
  }
1309
- function Qt(e, ...t) {
1312
+ function Zt(e, ...t) {
1310
1313
  let { numberFormats: n, onWarn: r } = e, { __numberFormatters: i } = e;
1311
- return a(t[0]) ? Wt(e, en(...t), Intl.NumberFormat, i, n, `number format`) : ``;
1314
+ return a(t[0]) ? Ut(e, $t(...t), Intl.NumberFormat, i, n, `number format`) : ``;
1312
1315
  }
1313
- let $t = [
1316
+ let Qt = [
1314
1317
  `localeMatcher`,
1315
1318
  `style`,
1316
1319
  `currency`,
@@ -1332,10 +1335,10 @@
1332
1335
  `roundingIncrement`,
1333
1336
  `trailingZeroDisplay`
1334
1337
  ];
1335
- function en(...e) {
1338
+ function $t(...e) {
1336
1339
  let [t] = e, n = d(), r = d();
1337
- if (!a(t)) throw J(q.INVALID_ARGUMENT);
1338
- let i = t, o = qt(e, n, r, $t);
1340
+ if (!a(t)) throw Y(J.INVALID_ARGUMENT);
1341
+ let i = t, o = Kt(e, n, r, Qt);
1339
1342
  return [
1340
1343
  n.key || ``,
1341
1344
  i,
@@ -1343,56 +1346,56 @@
1343
1346
  o
1344
1347
  ];
1345
1348
  }
1346
- function tn(e, t, n) {
1347
- Kt(e.__numberFormatters, t, n);
1349
+ function en(e, t, n) {
1350
+ Gt(e.__numberFormatters, t, n);
1348
1351
  }
1349
- let nn = (e) => e, rn = (e) => ``, an = `text`, on = (e) => e.length === 0 ? `` : T(e), sn = ee;
1350
- function cn(e, t) {
1352
+ let tn = (e) => e, nn = (e) => ``, rn = `text`, an = (e) => e.length === 0 ? `` : E(e), on = T;
1353
+ function sn(e, t) {
1351
1354
  return e = Math.abs(e), t === 2 ? e === 1 ? 0 : 1 : Math.min(e, 2);
1352
1355
  }
1353
- let ln = [
1356
+ let cn = [
1354
1357
  `zero`,
1355
1358
  `one`,
1356
1359
  `two`,
1357
1360
  `few`,
1358
1361
  `many`,
1359
1362
  `other`
1360
- ], Z = /* @__PURE__ */ new Map();
1361
- function un(e) {
1363
+ ], Q = /* @__PURE__ */ new Map();
1364
+ function ln(e) {
1362
1365
  try {
1363
1366
  if (Intl.PluralRules.supportedLocalesOf(e).length === 0) return null;
1364
1367
  let t = new Intl.PluralRules(e);
1365
1368
  return {
1366
1369
  rules: t,
1367
- categories: t.resolvedOptions().pluralCategories.slice().sort((e, t) => ln.indexOf(e) - ln.indexOf(t))
1370
+ categories: t.resolvedOptions().pluralCategories.slice().sort((e, t) => cn.indexOf(e) - cn.indexOf(t))
1368
1371
  };
1369
1372
  } catch {
1370
1373
  return null;
1371
1374
  }
1372
1375
  }
1373
- function dn(e) {
1374
- let t = Z.get(e);
1375
- return t === void 0 && (t = un(e), Z.size >= 1e3 && Z.delete(Z.keys().next().value), Z.set(e, t)), t;
1376
+ function un(e) {
1377
+ let t = Q.get(e);
1378
+ return t === void 0 && (t = ln(e), Q.size >= 1e3 && Q.delete(Q.keys().next().value), Q.set(e, t)), t;
1376
1379
  }
1377
- function fn(e) {
1380
+ function dn(e) {
1378
1381
  return a(e.pluralIndex) ? e.pluralIndex : a(e.named?.count) ? e.named.count : a(e.named?.n) ? e.named.n : -1;
1379
1382
  }
1380
- function pn(e = {}) {
1381
- let t = e.locale, n = fn(e), r;
1383
+ function fn(e = {}) {
1384
+ let t = e.locale, n = dn(e), r;
1382
1385
  r = v(t) && e.pluralRules && _(m(e.pluralRules, t)) ? e.pluralRules[t] : v(t) && typeof Intl < `u` && Intl.PluralRules !== void 0 ? (e, n) => {
1383
- let r = dn(t);
1384
- if (r === null || n > r.categories.length) return cn(e, n);
1386
+ let r = un(t);
1387
+ if (r === null || n > r.categories.length) return sn(e, n);
1385
1388
  let { rules: i, categories: a } = r, o = i.select(Math.abs(e)), s = a.indexOf(o);
1386
1389
  return Math.min(s === -1 ? n - 1 : s, n - 1);
1387
- } : cn;
1388
- let i = r === cn ? void 0 : cn, o = (e) => e[r(n, e.length, i)], s = e.list || [], c = (e) => s[e], u = e.named || d(), f = a(e.pluralIndex), p = (t) => {
1390
+ } : sn;
1391
+ let i = r === sn ? void 0 : sn, o = (e) => e[r(n, e.length, i)], s = e.list || [], c = (e) => s[e], u = e.named || d(), f = a(e.pluralIndex), p = (t) => {
1389
1392
  let n = h(t) ? m(u, t) : u[t];
1390
1393
  return f && n == null && (t === `count` || t === `n`) ? e.pluralIndex : n;
1391
1394
  };
1392
1395
  function y(t, n) {
1393
- return (_(e.messages) ? e.messages(t, !!n) : b(e.messages) ? e.messages[t] : !1) || (e.parent ? e.parent.message(t) : rn);
1396
+ return (_(e.messages) ? e.messages(t, !!n) : b(e.messages) ? e.messages[t] : !1) || (e.parent ? e.parent.message(t) : nn);
1394
1397
  }
1395
- let x = (t) => e.modifiers ? m(e.modifiers, t) : nn, S = _(e.processor?.normalize) ? e.processor.normalize : on, C = _(e.processor?.interpolate) ? e.processor.interpolate : sn, w = {
1398
+ let x = (t) => e.modifiers ? m(e.modifiers, t) : tn, S = _(e.processor?.normalize) ? e.processor.normalize : an, C = _(e.processor?.interpolate) ? e.processor.interpolate : on, w = {
1396
1399
  list: c,
1397
1400
  named: p,
1398
1401
  plural: o,
@@ -1405,7 +1408,7 @@
1405
1408
  return _(l) ? l(c, i) : c;
1406
1409
  },
1407
1410
  message: y,
1408
- type: v(e.processor?.type) ? e.processor.type : an,
1411
+ type: v(e.processor?.type) ? e.processor.type : rn,
1409
1412
  interpolate: C,
1410
1413
  normalize: S,
1411
1414
  values: l(d(), s, u, f ? {
@@ -1415,41 +1418,47 @@
1415
1418
  };
1416
1419
  return w;
1417
1420
  }
1418
- let mn = () => ``, Q = (e) => _(e), $ = (e) => v(e) || H(e) || Q(e);
1421
+ let pn = () => ``, $ = (e) => _(e), mn = (e) => v(e) || U(e) || $(e);
1419
1422
  function hn(e, ...t) {
1420
- let [n, r] = yn(...t), i = Qe(e, r), a = y(r.escapeParameter) ? r.escapeParameter : e.escapeParameter;
1423
+ let [n, r] = xn(...t), i = Ze(e, r), a = y(r.escapeParameter) ? r.escapeParameter : e.escapeParameter;
1421
1424
  a && gn(r);
1422
1425
  let o = !!r.resolvedMessage, [s, c, l] = o ? [
1423
1426
  n,
1424
1427
  i,
1425
1428
  m(e.messages, i) || d()
1426
- ] : _n(e, n, i, e.fallbackLocale, y(r.fallbackWarn) ? r.fallbackWarn : e.fallbackWarn, y(r.missingWarn) ? r.missingWarn : e.missingWarn), u = n;
1427
- if (!o && !$(s)) {
1429
+ ] : yn(e, n, i, e.fallbackLocale, y(r.fallbackWarn) ? r.fallbackWarn : e.fallbackWarn, y(r.missingWarn) ? r.missingWarn : e.missingWarn), u = n;
1430
+ if (!o && !mn(s)) {
1428
1431
  let t = v(r.default) ? r.default : y(r.default) || e.fallbackFormat ? e.messageCompiler ? n : () => n : null;
1429
1432
  (e.fallbackFormat || t != null && (v(t) || _(t))) && (s = t, u = s);
1430
1433
  }
1431
- if (!o && (!$(s) || !v(c))) return e.unresolving ? -1 : n;
1432
- let f = !1, p = Q(s) ? s : vn(e, n, c, s, u, () => {
1434
+ if (!o && (!mn(s) || !v(c))) return e.unresolving ? -1 : n;
1435
+ let f = !1, p = $(s) ? s : bn(e, n, c, s, u, () => {
1433
1436
  f = !0;
1434
1437
  });
1435
1438
  if (f) return s;
1436
- let h = p(pn(xn(e, c, l, r))), g = e.postTranslation ? e.postTranslation(h, n) : h;
1439
+ let h = p(fn(Cn(e, c, l, r, a))), g = e.postTranslation ? e.postTranslation(h, n) : h;
1437
1440
  return a && v(g) && (g = I(g)), g;
1438
1441
  }
1439
1442
  function gn(e) {
1440
- if (g(e.list) && (e.list = e.list.map((e) => v(e) ? D(e) : e)), b(e.named)) {
1443
+ if (g(e.list) && (e.list = e.list.map((e) => v(e) ? O(e) : e)), b(e.named)) {
1441
1444
  let t = e.named, n = d();
1442
1445
  for (let e of Object.keys(t)) {
1443
1446
  let r = t[e];
1444
- n[e] = v(r) ? D(r) : r;
1447
+ n[e] = v(r) ? O(r) : r;
1445
1448
  }
1446
1449
  e.named = n;
1447
1450
  }
1448
1451
  }
1449
- function _n(e, t, n, r, i, a) {
1452
+ function _n(e) {
1453
+ return v(e) ? e : O(T(e));
1454
+ }
1455
+ function vn(e, t) {
1456
+ return !t || _(e?.interpolate) ? e ?? void 0 : l({}, e, { interpolate: _n });
1457
+ }
1458
+ function yn(e, t, n, r, i, a) {
1450
1459
  let { messages: o, onWarn: s, messageResolver: c, localeFallbacker: l } = e, u = l(e, r, n), f = d(), p, h = null;
1451
- for (let n = 0; n < u.length && (p = u[n], f = m(o, p) || d(), (h = c(f, t)) === null && (h = m(f, t)), !$(h)); n++) if (!Bt(p, u)) {
1452
- let n = It(e, t, p, a, `translate`);
1460
+ for (let n = 0; n < u.length && (p = u[n], f = m(o, p) || d(), (h = c(f, t)) === null && (h = m(f, t)), !mn(h)); n++) if (!zt(p, u)) {
1461
+ let n = Ft(e, t, p, a, `translate`);
1453
1462
  n !== t && (h = n);
1454
1463
  }
1455
1464
  return [
@@ -1458,8 +1467,8 @@
1458
1467
  f
1459
1468
  ];
1460
1469
  }
1461
- function vn(e, t, n, r, i, a) {
1462
- if (Q(r)) {
1470
+ function bn(e, t, n, r, i, a) {
1471
+ if ($(r)) {
1463
1472
  let e = r;
1464
1473
  return e.locale = e.locale || n, e.key = e.key || t, e;
1465
1474
  }
@@ -1467,16 +1476,16 @@
1467
1476
  let e = (() => r);
1468
1477
  return e.locale = n, e.key = t, e;
1469
1478
  }
1470
- let o = e.messageCompiler(r, bn(e, n, i, r, e.warnHtmlMessage, a));
1479
+ let o = e.messageCompiler(r, Sn(e, n, i, r, e.warnHtmlMessage, a));
1471
1480
  return o.locale = n, o.key = t, o.source = r, o;
1472
1481
  }
1473
- function yn(...e) {
1482
+ function xn(...e) {
1474
1483
  let [t, n, r] = e;
1475
- if (!v(t) && !a(t) && !Q(t) && !H(t)) throw J(q.INVALID_ARGUMENT);
1476
- let i = a(t) ? String(t) : (Q(t), t), o = d();
1484
+ if (!v(t) && !a(t) && !$(t) && !U(t)) throw Y(J.INVALID_ARGUMENT);
1485
+ let i = a(t) ? String(t) : ($(t), t), o = d();
1477
1486
  return a(n) ? o.plural = n : v(n) ? o.default = n : w(n) && !c(n) ? o.named = n : g(n) && (o.list = n), a(r) ? o.plural = r : v(r) ? o.default = r : w(r) && l(o, r), [i, o];
1478
1487
  }
1479
- function bn(e, t, n, i, a, o) {
1488
+ function Sn(e, t, n, i, a, o) {
1480
1489
  return {
1481
1490
  locale: t,
1482
1491
  key: n,
@@ -1487,31 +1496,31 @@
1487
1496
  onCacheKey: (e) => r(t, n, e)
1488
1497
  };
1489
1498
  }
1490
- function xn(e, t, n, r) {
1491
- let { modifiers: i, pluralRules: o, messageResolver: s, fallbackLocale: c, fallbackWarn: l, missingWarn: u, fallbackContext: d } = e;
1499
+ function Cn(e, t, n, r, i) {
1500
+ let { modifiers: o, pluralRules: s, messageResolver: c, fallbackLocale: l, fallbackWarn: u, missingWarn: d, fallbackContext: f } = e;
1492
1501
  return {
1493
1502
  locale: t,
1494
- modifiers: i,
1495
- pluralRules: o,
1503
+ modifiers: o,
1504
+ pluralRules: s,
1496
1505
  messages: (r, i) => {
1497
- let a = s(n, r);
1498
- if (a == null && (d || i)) {
1499
- let [n, , i] = _n(d || e, r, t, c, l, u);
1500
- a = n ?? s(i, r);
1506
+ let a = c(n, r);
1507
+ if (a == null && (f || i)) {
1508
+ let [n, , i] = yn(f || e, r, t, l, u, d);
1509
+ a = n ?? c(i, r);
1501
1510
  }
1502
- if (v(a) || H(a)) {
1503
- let n = !1, i = vn(e, r, t, a, r, () => {
1511
+ if (v(a) || U(a)) {
1512
+ let n = !1, i = bn(e, r, t, a, r, () => {
1504
1513
  n = !0;
1505
1514
  });
1506
- return n ? mn : i;
1515
+ return n ? pn : i;
1507
1516
  }
1508
- return Q(a) ? a : mn;
1517
+ return $(a) ? a : pn;
1509
1518
  },
1510
- processor: e.processor ?? void 0,
1519
+ processor: vn(e.processor, i),
1511
1520
  list: r.list ?? void 0,
1512
1521
  named: r.named ?? void 0,
1513
1522
  pluralIndex: a(r.plural) ? r.plural : void 0
1514
1523
  };
1515
1524
  }
1516
- return e.AST_NODE_PROPS_KEYS = Ue, e.CORE_ERROR_CODES_EXTEND_POINT = 23, e.CORE_WARN_CODES_EXTEND_POINT = 13, e.CoreWarnCodes = X, e.DATETIME_FORMAT_OPTIONS_KEYS = Yt, e.DEFAULT_LOCALE = vt, e.DEFAULT_MESSAGE_DATA_TYPE = an, e.MISSING_RESOLVE_VALUE = ``, e.NOT_RESOLVED = -1, e.NUMBER_FORMAT_OPTIONS_KEYS = $t, e.VERSION = _t, e.clearCompileCache = Ye, e.clearDateTimeFormat = Zt, e.clearNumberFormat = tn, e.compile = Ze, e.createCompileError = z, e.createCoreContext = Ot, e.createCoreError = J, e.createMessageContext = pn, e.datetime = Jt, e.fallbackWithLocaleChain = nt, e.fallbackWithSimple = tt, e.getLocale = Qe, e.getLocaleMessage = At, e.getWarnMessage = gt, e.handleMissing = It, e.isAlmostSameLocale = zt, e.isFallbackLocale = Mt, e.isImplicitFallback = Bt, e.isMessageAST = H, e.isMessageFormat = $, e.isMessageFunction = Q, e.isTranslateFallbackWarn = Pt, e.isTranslateMissingWarn = Ft, e.isWarnOption = Nt, e.number = Qt, e.parse = dt, e.parseDateTimeArgs = Xt, e.parseNumberArgs = en, e.parseTranslateArgs = yn, e.registerLocaleFallbacker = Et, e.registerMessageCompiler = St, e.registerMessageResolver = wt, e.resolveLocale = et, e.resolveValue = mt, e.resolveWithKeyValue = pt, e.setLocaleMessage = jt, e.translate = hn, e.updateFallbackLocale = Rt, e;
1525
+ return e.AST_NODE_PROPS_KEYS = He, e.CORE_ERROR_CODES_EXTEND_POINT = 23, e.CORE_WARN_CODES_EXTEND_POINT = 13, e.CoreWarnCodes = Z, e.DATETIME_FORMAT_OPTIONS_KEYS = Jt, e.DEFAULT_LOCALE = _t, e.DEFAULT_MESSAGE_DATA_TYPE = rn, e.MISSING_RESOLVE_VALUE = ``, e.NOT_RESOLVED = -1, e.NUMBER_FORMAT_OPTIONS_KEYS = Qt, e.VERSION = gt, e.clearCompileCache = Je, e.clearDateTimeFormat = Xt, e.clearNumberFormat = en, e.compile = Xe, e.createCompileError = B, e.createCoreContext = Dt, e.createCoreError = Y, e.createMessageContext = fn, e.datetime = qt, e.fallbackWithLocaleChain = tt, e.fallbackWithSimple = et, e.getLocale = Ze, e.getLocaleMessage = kt, e.getWarnMessage = ht, e.handleMissing = Ft, e.isAlmostSameLocale = Rt, e.isFallbackLocale = jt, e.isImplicitFallback = zt, e.isMessageAST = U, e.isMessageFormat = mn, e.isMessageFunction = $, e.isTranslateFallbackWarn = Nt, e.isTranslateMissingWarn = Pt, e.isWarnOption = Mt, e.number = Zt, e.parse = ut, e.parseDateTimeArgs = Yt, e.parseNumberArgs = $t, e.parseTranslateArgs = xn, e.registerLocaleFallbacker = Tt, e.registerMessageCompiler = xt, e.registerMessageResolver = Ct, e.resolveLocale = $e, e.resolveValue = pt, e.resolveWithKeyValue = ft, e.setLocaleMessage = At, e.translate = hn, e.updateFallbackLocale = Lt, e;
1517
1526
  })({});