@intlify/core 12.0.0-alpha.13 → 12.0.0-alpha.14

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/dist/core.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @intlify/core v12.0.0-alpha.13
2
+ * @intlify/core v12.0.0-alpha.14
3
3
  * (c) 2016-present kazuya kawaguchi and contributors
4
4
  * @license MIT
5
5
  **/
package/dist/core.node.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @intlify/core v12.0.0-alpha.13
2
+ * @intlify/core v12.0.0-alpha.14
3
3
  * (c) 2016-present kazuya kawaguchi and contributors
4
4
  * @license MIT
5
5
  **/
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @intlify/core v12.0.0-alpha.13
2
+ * @intlify/core v12.0.0-alpha.14
3
3
  * (c) 2016-present kazuya kawaguchi and contributors
4
4
  * @license MIT
5
5
  **/
@@ -1029,8 +1029,7 @@ function resolveValue(obj, path) {
1029
1029
  */
1030
1030
  if (AST_NODE_PROPS_KEYS.includes(key) && isMessageAST(last)) return null;
1031
1031
  if (!isObject(last)) return null;
1032
- if (!hasOwn(last, key)) return null;
1033
- const val = last[key];
1032
+ const val = getOwn(last, key);
1034
1033
  if (val === void 0) return null;
1035
1034
  if (isFunction(last)) return null;
1036
1035
  last = val;
@@ -1077,7 +1076,7 @@ function getWarnMessage(code, ...args) {
1077
1076
  * Intlify core-base version
1078
1077
  * @internal
1079
1078
  */
1080
- const VERSION = "12.0.0-alpha.13";
1079
+ const VERSION = "12.0.0-alpha.14";
1081
1080
  const NOT_RESOLVED = -1;
1082
1081
  const DEFAULT_LOCALE = "en-US";
1083
1082
  const MISSING_RESOLVE_VALUE = "";
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @intlify/core v12.0.0-alpha.13
2
+ * @intlify/core v12.0.0-alpha.14
3
3
  * (c) 2016-present kazuya kawaguchi and contributors
4
4
  * @license MIT
5
5
  **/ const e = /\{([0-9a-z]+)\}/gi;
@@ -34,7 +34,7 @@ function T(e) {
34
34
  function ne(e) {
35
35
  return e.replace(/&(?![a-z0-9#]{2,6};)/gi, `&amp;`).replace(/"/g, `&quot;`).replace(/'/g, `&apos;`).replace(/</g, `&lt;`).replace(/>/g, `&gt;`);
36
36
  }
37
- const re = /^javascript:/i, ie = /^(?:href|xlink:href|src|action|formaction)$/i, E = /&#(?:x([0-9a-f]+)|(\d+));?/gi, D = /&(?: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, O = /<(\/?)([a-z][^\t\n\f\r />]*)/iy, de = /([\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, k = /<!--(?:>|->|[\s\S]*?--!?>)/y;
37
+ const re = /^javascript:/i, ie = /^(?:href|xlink:href|src|action|formaction)$/i, ae = /&#(?:x([0-9a-f]+)|(\d+));?/gi, E = /&(?:Tab|NewLine);/g, oe = /&colon;?/gi, se = /[\u0000-\u0020\u007f-\u009f]/g, ce = /^on\w/i, le = /^srcdoc$/i, ue = /^(?:base|animate|set|script|plaintext)$/i, de = /^(?:iframe|noembed|noframes|noscript|style|textarea|title|xmp)$/i, D = /<(\/?)([a-z][^\t\n\f\r />]*)/iy, O = /([\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, k = /<!--(?:>|->|[\s\S]*?--!?>)/y;
38
38
  function fe(e, t, n) {
39
39
  let r = t || n;
40
40
  if (!r) return e;
@@ -42,7 +42,7 @@ function fe(e, t, n) {
42
42
  return i <= 127 ? String.fromCharCode(i) : e;
43
43
  }
44
44
  function pe(e) {
45
- let t = e.replace(E, fe).replace(D, ``).replace(ae, `:`).replace(oe, ``);
45
+ let t = e.replace(ae, fe).replace(E, ``).replace(oe, `:`).replace(se, ``);
46
46
  return re.test(t);
47
47
  }
48
48
  function me(e) {
@@ -70,7 +70,7 @@ function A(e) {
70
70
  }
71
71
  function ge(e, t, n, r) {
72
72
  let i = e;
73
- 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;
73
+ if (ce.test(e) ? (r.eventHandler = !0, i = `&#111;n${e.slice(2)}`) : le.test(e) && (r.srcdoc = !0, i = `&#115;${e.slice(1)}`), t === void 0) return i;
74
74
  let a = n || ``;
75
75
  return `${i}=${a}${he(e, t)}${a}`;
76
76
  }
@@ -103,7 +103,7 @@ function Oe(e, t, n, r, i) {
103
103
  if (!Ee(n, r)) return i || e.push({
104
104
  name: n,
105
105
  namespace: s.namespace,
106
- integration: s.namespace === 1 ? xe.test(n) : Ce.test(n) || n === `annotation-xml` && we.test((r.get(`encoding`) || ``).replace(E, fe)),
106
+ integration: s.namespace === 1 ? xe.test(n) : Ce.test(n) || n === `annotation-xml` && we.test((r.get(`encoding`) || ``).replace(ae, fe)),
107
107
  part: a
108
108
  }), o;
109
109
  o = De(e, t);
@@ -137,14 +137,14 @@ function ke(e, t, n) {
137
137
  return i < 0 ? n === `br` || n === `p` ? r : void 0 : (r += M(e, i + 1, t), e.length = i, r);
138
138
  }
139
139
  function Ae(e, t, n) {
140
- O.lastIndex = t;
141
- let r = O.exec(e);
140
+ D.lastIndex = t;
141
+ let r = D.exec(e);
142
142
  if (!r) return;
143
143
  let [, i, a] = r, o = r[0], s = /* @__PURE__ */ new Map(), c;
144
- for (de.lastIndex = O.lastIndex; c = de.exec(e);) {
144
+ for (O.lastIndex = D.lastIndex; c = O.exec(e);) {
145
145
  let [r, l, u, d, f, p, m, h] = c;
146
146
  if (u) {
147
- let n = de.lastIndex;
147
+ let n = O.lastIndex;
148
148
  return [
149
149
  i ? e.slice(t, n) : o + r,
150
150
  a,
@@ -188,10 +188,10 @@ function Me(e) {
188
188
  if (i = l, s[1] === `/`) {
189
189
  let e = ke(r, n, j(c));
190
190
  e === void 0 ? t.closed = !0 : (e && (t.closed = !0), n.push(e + s));
191
- } else if (le.test(c)) t.element = !0, n.push(A(s));
191
+ } else if (ue.test(c)) t.element = !0, n.push(A(s));
192
192
  else {
193
193
  let a = ``;
194
- if (ue.test(c)) {
194
+ if (de.test(c)) {
195
195
  let r = je(e, l, c);
196
196
  if (r === -1) {
197
197
  t.unclosed = !0, n.push(A(s));
@@ -263,130 +263,130 @@ function P(e) {
263
263
  }
264
264
  const Ie = [`b`, `body`];
265
265
  function Le(e) {
266
- return L(e, Ie);
266
+ return I(e, Ie);
267
267
  }
268
268
  const Re = [`c`, `cases`];
269
269
  function ze(e) {
270
- return L(e, Re, []);
270
+ return I(e, Re, []);
271
271
  }
272
272
  const Be = [`s`, `static`];
273
273
  function Ve(e) {
274
- return L(e, Be);
274
+ return I(e, Be);
275
275
  }
276
276
  const He = [`i`, `items`];
277
277
  function Ue(e) {
278
- return L(e, He, []);
278
+ return I(e, He, []);
279
279
  }
280
280
  const We = [`t`, `type`];
281
281
  function F(e) {
282
- return L(e, We);
282
+ return I(e, We);
283
283
  }
284
284
  const Ge = [`v`, `value`];
285
- function I(e, t) {
286
- let n = L(e, Ge);
285
+ function Ke(e, t) {
286
+ let n = I(e, Ge);
287
287
  if (n != null) return n;
288
- throw R(t);
288
+ throw L(t);
289
289
  }
290
- const Ke = [`m`, `modifier`];
291
- function qe(e) {
292
- return L(e, Ke);
290
+ const qe = [`m`, `modifier`];
291
+ function Je(e) {
292
+ return I(e, qe);
293
293
  }
294
- const Je = [`k`, `key`];
295
- function Ye(e) {
296
- let t = L(e, Je);
294
+ const Ye = [`k`, `key`];
295
+ function Xe(e) {
296
+ let t = I(e, Ye);
297
297
  if (t) return t;
298
- throw R(6);
298
+ throw L(6);
299
299
  }
300
- function L(e, t, n) {
300
+ function I(e, t, n) {
301
301
  for (let n = 0; n < t.length; n++) {
302
302
  let r = t[n];
303
303
  if (f(e, r) && e[r] != null) return e[r];
304
304
  }
305
305
  return n;
306
306
  }
307
- const Xe = [
307
+ const Ze = [
308
308
  ...Ie,
309
309
  ...Re,
310
310
  ...Be,
311
311
  ...He,
312
- ...Je,
313
- ...Ke,
312
+ ...Ye,
313
+ ...qe,
314
314
  ...Ge,
315
315
  ...We
316
316
  ];
317
- function R(e) {
317
+ function L(e) {
318
318
  return Error(`unhandled node type: ${e}`);
319
319
  }
320
- function Ze(e) {
321
- return (t) => Qe(t, e);
320
+ function Qe(e) {
321
+ return (t) => $e(t, e);
322
322
  }
323
- function Qe(e, t) {
323
+ function $e(e, t) {
324
324
  let n = Le(t);
325
- if (n == null) throw R(0);
325
+ if (n == null) throw L(0);
326
326
  if (F(n) === 1) {
327
327
  let t = ze(n);
328
- return e.plural(t.reduce((t, n) => [...h(t) ? t : [t], $e(e, n)], []));
328
+ return e.plural(t.reduce((t, n) => [...h(t) ? t : [t], et(e, n)], []));
329
329
  }
330
- return $e(e, n);
330
+ return et(e, n);
331
331
  }
332
- function $e(e, t) {
332
+ function et(e, t) {
333
333
  let n = Ve(t);
334
334
  if (n != null) return e.type === `text` ? n : e.normalize([n]);
335
335
  {
336
- let n = Ue(t).reduce((t, n) => [...t, z(e, n)], []);
336
+ let n = Ue(t).reduce((t, n) => [...t, R(e, n)], []);
337
337
  return e.normalize(n);
338
338
  }
339
339
  }
340
- function z(e, t) {
340
+ function R(e, t) {
341
341
  let n = F(t);
342
342
  switch (n) {
343
- case 3: return I(t, n);
344
- case 9: return I(t, n);
343
+ case 3:
344
+ case 9: return Ke(t, n);
345
345
  case 4: {
346
346
  let r = t;
347
347
  if (f(r, `k`) && r.k) return e.interpolate(e.named(r.k));
348
348
  if (f(r, `key`) && r.key) return e.interpolate(e.named(r.key));
349
- throw R(n);
349
+ throw L(n);
350
350
  }
351
351
  case 5: {
352
352
  let r = t;
353
353
  if (f(r, `i`) && i(r.i)) return e.interpolate(e.list(r.i));
354
354
  if (f(r, `index`) && i(r.index)) return e.interpolate(e.list(r.index));
355
- throw R(n);
355
+ throw L(n);
356
356
  }
357
357
  case 6: {
358
- let n = t, r = qe(n), i = Ye(n);
359
- return e.linked(z(e, i), r ? z(e, r) : void 0, e.type);
358
+ let n = t, r = Je(n), i = Xe(n);
359
+ return e.linked(R(e, i), r ? R(e, r) : void 0, e.type);
360
360
  }
361
- case 7: return I(t, n);
362
- case 8: return I(t, n);
361
+ case 7:
362
+ case 8: return Ke(t, n);
363
363
  default: throw Error(`unhandled node on format message part: ${n}`);
364
364
  }
365
365
  }
366
- let B = u();
367
- function et() {
368
- B = u();
366
+ let z = u();
367
+ function tt() {
368
+ z = u();
369
369
  }
370
- function tt(e, t) {
370
+ function nt(e, t) {
371
371
  {
372
372
  if (!P(e)) return (() => e);
373
373
  let t = e.cacheKey;
374
- return t ? B[t] || (B[t] = Ze(e)) : Ze(e);
374
+ return t ? z[t] || (z[t] = Qe(e)) : Qe(e);
375
375
  }
376
376
  }
377
- const V = {
377
+ const B = {
378
378
  INVALID_ARGUMENT: 17,
379
379
  INVALID_DATE_ARGUMENT: 18,
380
380
  INVALID_ISO_DATE_ARGUMENT: 19,
381
381
  NOT_SUPPORT_LOCALE_PROMISE_VALUE: 20,
382
382
  NOT_SUPPORT_LOCALE_ASYNC_FUNCTION: 21,
383
383
  NOT_SUPPORT_LOCALE_TYPE: 22
384
- }, nt = 23;
385
- function rt(e) {
384
+ }, rt = 23;
385
+ function it(e) {
386
386
  return Fe(e, null, void 0);
387
387
  }
388
- V.INVALID_ARGUMENT, V.INVALID_DATE_ARGUMENT, V.INVALID_ISO_DATE_ARGUMENT, V.NOT_SUPPORT_LOCALE_PROMISE_VALUE, V.NOT_SUPPORT_LOCALE_ASYNC_FUNCTION, V.NOT_SUPPORT_LOCALE_TYPE;
389
- function it(e, t) {
388
+ B.INVALID_ARGUMENT, B.INVALID_DATE_ARGUMENT, B.INVALID_ISO_DATE_ARGUMENT, B.NOT_SUPPORT_LOCALE_PROMISE_VALUE, B.NOT_SUPPORT_LOCALE_ASYNC_FUNCTION, B.NOT_SUPPORT_LOCALE_TYPE;
389
+ function V(e, t) {
390
390
  return t.locale == null ? U(e.locale) : U(t.locale);
391
391
  }
392
392
  let H;
@@ -396,12 +396,12 @@ function U(e) {
396
396
  if (e.resolvedOnce && H != null) return H;
397
397
  if (e.constructor.name === `Function`) {
398
398
  let t = e();
399
- if (b(t)) throw Error(V.NOT_SUPPORT_LOCALE_PROMISE_VALUE);
399
+ if (b(t)) throw Error(B.NOT_SUPPORT_LOCALE_PROMISE_VALUE);
400
400
  return H = t;
401
401
  }
402
- throw Error(V.NOT_SUPPORT_LOCALE_ASYNC_FUNCTION);
402
+ throw Error(B.NOT_SUPPORT_LOCALE_ASYNC_FUNCTION);
403
403
  }
404
- throw Error(V.NOT_SUPPORT_LOCALE_TYPE);
404
+ throw Error(B.NOT_SUPPORT_LOCALE_TYPE);
405
405
  }
406
406
  function at(e, t, n) {
407
407
  return [.../* @__PURE__ */ new Set([n, ...h(t) ? t : y(t) ? Object.keys(t).filter((e) => e !== "default") : _(t) ? [t] : [n]])];
@@ -546,8 +546,8 @@ function vt(e, t) {
546
546
  let r = n.length, i = e, a = 0;
547
547
  for (; a < r;) {
548
548
  let e = n[a];
549
- if (Xe.includes(e) && P(i) || !y(i) || !f(i, e)) return null;
550
- let t = i[e];
549
+ if (Ze.includes(e) && P(i) || !y(i)) return null;
550
+ let t = p(i, e);
551
551
  if (t === void 0 || g(i)) return null;
552
552
  i = t, a++;
553
553
  }
@@ -583,7 +583,7 @@ const G = {
583
583
  function xt(e, ...n) {
584
584
  return t(bt[e], ...n);
585
585
  }
586
- const St = `12.0.0-alpha.13`, Ct = -1, K = `en-US`, wt = ``, Tt = (e) => `${e.charAt(0).toLocaleUpperCase()}${e.substr(1)}`;
586
+ const St = `12.0.0-alpha.14`, Ct = -1, K = `en-US`, wt = ``, Tt = (e) => `${e.charAt(0).toLocaleUpperCase()}${e.substr(1)}`;
587
587
  function Et() {
588
588
  return {
589
589
  upper: (e, t) => t === `text` && _(e) ? e.toUpperCase() : t === `vnode` && y(e) && `__v_isVNode` in e ? e.children.toUpperCase() : e,
@@ -605,9 +605,9 @@ function Mt(e) {
605
605
  }
606
606
  let Nt = 0;
607
607
  function Pt(e = {}) {
608
- let t = g(e.onWarn) ? e.onWarn : te, n = _(e.version) ? e.version : St, r = _(e.locale) || g(e.locale) ? e.locale : K, i = g(r) ? K : r, a = Lt(e.fallbackLocale) ? e.fallbackLocale : i, o = C(e.messages) ? e.messages : q(i), s = C(e.datetimeFormats) ? e.datetimeFormats : q(i), l = C(e.numberFormats) ? e.numberFormats : q(i), d = c(u(), e.modifiers, Et()), f = e.pluralRules || u(), p = g(e.missing) ? e.missing : null, m = !J(e.missingWarn) || e.missingWarn, h = !J(e.fallbackWarn) || e.fallbackWarn, b = !!e.fallbackFormat, x = !!e.unresolving, S = g(e.postTranslation) ? e.postTranslation : null, w = C(e.processor) ? e.processor : null, ee = !v(e.warnHtmlMessage) || e.warnHtmlMessage, T = !!e.escapeParameter, ne = g(e.messageCompiler) ? e.messageCompiler : Dt || null, re = g(e.messageResolver) ? e.messageResolver : kt || _t, ie = g(e.localeFallbacker) ? e.localeFallbacker : jt || at, E = y(e.fallbackContext) ? e.fallbackContext : void 0;
608
+ let t = g(e.onWarn) ? e.onWarn : te, n = _(e.version) ? e.version : St, r = _(e.locale) || g(e.locale) ? e.locale : K, i = g(r) ? K : r, a = Lt(e.fallbackLocale) ? e.fallbackLocale : i, o = C(e.messages) ? e.messages : q(i), s = C(e.datetimeFormats) ? e.datetimeFormats : q(i), l = C(e.numberFormats) ? e.numberFormats : q(i), d = c(u(), e.modifiers, Et()), f = e.pluralRules || u(), p = g(e.missing) ? e.missing : null, m = !J(e.missingWarn) || e.missingWarn, h = !J(e.fallbackWarn) || e.fallbackWarn, b = !!e.fallbackFormat, x = !!e.unresolving, S = g(e.postTranslation) ? e.postTranslation : null, w = C(e.processor) ? e.processor : null, ee = !v(e.warnHtmlMessage) || e.warnHtmlMessage, T = !!e.escapeParameter, ne = g(e.messageCompiler) ? e.messageCompiler : Dt || null, re = g(e.messageResolver) ? e.messageResolver : kt || _t, ie = g(e.localeFallbacker) ? e.localeFallbacker : jt || at, ae = y(e.fallbackContext) ? e.fallbackContext : void 0;
609
609
  Nt++;
610
- let D = {
610
+ let E = {
611
611
  version: n,
612
612
  cid: Nt,
613
613
  locale: r,
@@ -627,10 +627,10 @@ function Pt(e = {}) {
627
627
  messageCompiler: ne,
628
628
  messageResolver: re,
629
629
  localeFallbacker: ie,
630
- fallbackContext: E,
630
+ fallbackContext: ae,
631
631
  onWarn: t
632
632
  };
633
- return D.datetimeFormats = s, D.numberFormats = l, D.__datetimeFormatters = /* @__PURE__ */ new Map(), D.__numberFormatters = /* @__PURE__ */ new Map(), D;
633
+ return E.datetimeFormats = s, E.numberFormats = l, E.__datetimeFormatters = /* @__PURE__ */ new Map(), E.__numberFormatters = /* @__PURE__ */ new Map(), E;
634
634
  }
635
635
  const q = (e) => ({ [e]: u() });
636
636
  function Ft(e, t) {
@@ -709,7 +709,7 @@ function Kt(e, t, n, r, i) {
709
709
  }
710
710
  }
711
711
  function qt(e, [t, n, r, i], a, o, s, l) {
712
- let u = v(r.missingWarn) ? r.missingWarn : e.missingWarn, d = v(r.fallbackWarn) ? r.fallbackWarn : e.fallbackWarn, f = !!r.part, p = it(e, r);
712
+ let u = v(r.missingWarn) ? r.missingWarn : e.missingWarn, d = v(r.fallbackWarn) ? r.fallbackWarn : e.fallbackWarn, f = !!r.part, p = V(e, r);
713
713
  if (!_(t) || t === ``) {
714
714
  let t = Kt(e, a, p.replace(/!/g, ``), i, l);
715
715
  return f ? t.formatToParts(n) : t.format(n);
@@ -765,19 +765,19 @@ function $t(...e) {
765
765
  let [t] = e, n = u(), r = u(), o;
766
766
  if (_(t)) {
767
767
  let e = t.match(/^(\d{4}-\d{2}-\d{2})(?:(T|\s)(.+))?$/);
768
- if (!e) throw Error(V.INVALID_ISO_DATE_ARGUMENT);
768
+ if (!e) throw Error(B.INVALID_ISO_DATE_ARGUMENT);
769
769
  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();
770
770
  o = new Date(n);
771
771
  try {
772
772
  o.toISOString();
773
773
  } catch {
774
- throw Error(V.INVALID_ISO_DATE_ARGUMENT);
774
+ throw Error(B.INVALID_ISO_DATE_ARGUMENT);
775
775
  }
776
776
  } else if (a(t)) {
777
- if (isNaN(t.getTime())) throw Error(V.INVALID_DATE_ARGUMENT);
777
+ if (isNaN(t.getTime())) throw Error(B.INVALID_DATE_ARGUMENT);
778
778
  o = t;
779
779
  } else if (i(t)) o = t;
780
- else throw Error(V.INVALID_ARGUMENT);
780
+ else throw Error(B.INVALID_ARGUMENT);
781
781
  let s = Xt(e, n, r, Qt);
782
782
  return [
783
783
  n.key || ``,
@@ -817,7 +817,7 @@ const nn = [
817
817
  ];
818
818
  function rn(...e) {
819
819
  let [t] = e, n = u(), r = u();
820
- if (!i(t)) throw Error(V.INVALID_ARGUMENT);
820
+ if (!i(t)) throw Error(B.INVALID_ARGUMENT);
821
821
  let a = t, o = Xt(e, n, r, nn);
822
822
  return [
823
823
  n.key || ``,
@@ -900,7 +900,7 @@ function hn(e = {}) {
900
900
  }
901
901
  const gn = () => ``, Q = (e) => g(e), $ = (e) => _(e) || P(e) || Q(e);
902
902
  function _n(e, ...t) {
903
- let [n, r] = Cn(...t), i = it(e, r), a = v(r.escapeParameter) ? r.escapeParameter : e.escapeParameter;
903
+ let [n, r] = Cn(...t), i = V(e, r), a = v(r.escapeParameter) ? r.escapeParameter : e.escapeParameter;
904
904
  a && vn(r);
905
905
  let o = !!r.resolvedMessage, [s, c, l] = o ? [
906
906
  n,
@@ -961,7 +961,7 @@ function Sn(e, t, n, r, i, a) {
961
961
  }
962
962
  function Cn(...e) {
963
963
  let [t, n, r] = e;
964
- if (!_(t) && !i(t) && !Q(t) && !P(t)) throw Error(V.INVALID_ARGUMENT);
964
+ if (!_(t) && !i(t) && !Q(t) && !P(t)) throw Error(B.INVALID_ARGUMENT);
965
965
  let a = i(t) ? String(t) : (Q(t), t), o = u();
966
966
  return i(n) ? o.plural = n : _(n) ? o.default = n : C(n) && !s(n) ? o.named = n : h(n) && (o.list = n), i(r) ? o.plural = r : _(r) ? o.default = r : C(r) && c(o, r), [a, o];
967
967
  }
@@ -1002,4 +1002,4 @@ function Tn(e, t, n, r, a) {
1002
1002
  pluralIndex: i(r.plural) ? r.plural : void 0
1003
1003
  };
1004
1004
  }
1005
- export { Xe as AST_NODE_PROPS_KEYS, nt as CORE_ERROR_CODES_EXTEND_POINT, yt as CORE_WARN_CODES_EXTEND_POINT, G as CoreWarnCodes, Qt as DATETIME_FORMAT_OPTIONS_KEYS, K as DEFAULT_LOCALE, cn as DEFAULT_MESSAGE_DATA_TYPE, wt as MISSING_RESOLVE_VALUE, Ct as NOT_RESOLVED, nn as NUMBER_FORMAT_OPTIONS_KEYS, St as VERSION, et as clearCompileCache, en as clearDateTimeFormat, an as clearNumberFormat, tt as compile, Fe as createCompileError, Pt as createCoreContext, rt as createCoreError, hn as createMessageContext, Zt as datetime, ot as fallbackWithLocaleChain, at as fallbackWithSimple, it as getLocale, Ft as getLocaleMessage, xt as getWarnMessage, Y as handleMissing, Ht as isAlmostSameLocale, Lt as isFallbackLocale, Ut as isImplicitFallback, P as isMessageAST, $ as isMessageFormat, Q as isMessageFunction, Rt as isTranslateFallbackWarn, zt as isTranslateMissingWarn, J as isWarnOption, tn as number, ht as parse, $t as parseDateTimeArgs, rn as parseNumberArgs, Cn as parseTranslateArgs, Mt as registerLocaleFallbacker, Ot as registerMessageCompiler, At as registerMessageResolver, U as resolveLocale, vt as resolveValue, _t as resolveWithKeyValue, It as setLocaleMessage, _n as translate, Vt as updateFallbackLocale };
1005
+ export { Ze as AST_NODE_PROPS_KEYS, rt as CORE_ERROR_CODES_EXTEND_POINT, yt as CORE_WARN_CODES_EXTEND_POINT, G as CoreWarnCodes, Qt as DATETIME_FORMAT_OPTIONS_KEYS, K as DEFAULT_LOCALE, cn as DEFAULT_MESSAGE_DATA_TYPE, wt as MISSING_RESOLVE_VALUE, Ct as NOT_RESOLVED, nn as NUMBER_FORMAT_OPTIONS_KEYS, St as VERSION, tt as clearCompileCache, en as clearDateTimeFormat, an as clearNumberFormat, nt as compile, Fe as createCompileError, Pt as createCoreContext, it as createCoreError, hn as createMessageContext, Zt as datetime, ot as fallbackWithLocaleChain, at as fallbackWithSimple, V as getLocale, Ft as getLocaleMessage, xt as getWarnMessage, Y as handleMissing, Ht as isAlmostSameLocale, Lt as isFallbackLocale, Ut as isImplicitFallback, P as isMessageAST, $ as isMessageFormat, Q as isMessageFunction, Rt as isTranslateFallbackWarn, zt as isTranslateMissingWarn, J as isWarnOption, tn as number, ht as parse, $t as parseDateTimeArgs, rn as parseNumberArgs, Cn as parseTranslateArgs, Mt as registerLocaleFallbacker, Ot as registerMessageCompiler, At as registerMessageResolver, U as resolveLocale, vt as resolveValue, _t as resolveWithKeyValue, It as setLocaleMessage, _n as translate, Vt as updateFallbackLocale };
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @intlify/core v12.0.0-alpha.13
2
+ * @intlify/core v12.0.0-alpha.14
3
3
  * (c) 2016-present kazuya kawaguchi and contributors
4
4
  * @license MIT
5
5
  **/
@@ -1031,8 +1031,7 @@ var IntlifyCore = (function(exports) {
1031
1031
  */
1032
1032
  if (AST_NODE_PROPS_KEYS.includes(key) && isMessageAST(last)) return null;
1033
1033
  if (!isObject(last)) return null;
1034
- if (!hasOwn(last, key)) return null;
1035
- const val = last[key];
1034
+ const val = getOwn(last, key);
1036
1035
  if (val === void 0) return null;
1037
1036
  if (isFunction(last)) return null;
1038
1037
  last = val;
@@ -1079,7 +1078,7 @@ var IntlifyCore = (function(exports) {
1079
1078
  * Intlify core-base version
1080
1079
  * @internal
1081
1080
  */
1082
- const VERSION = "12.0.0-alpha.13";
1081
+ const VERSION = "12.0.0-alpha.14";
1083
1082
  const NOT_RESOLVED = -1;
1084
1083
  const DEFAULT_LOCALE = "en-US";
1085
1084
  const MISSING_RESOLVE_VALUE = "";