@qy_better_lib/pc 0.1.1 → 0.1.2

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.
Files changed (150) hide show
  1. package/dist/@qy_better_lib/pc.min.js +1 -42
  2. package/lib/contextMenu/index.js +7 -0
  3. package/lib/index.js +24 -0
  4. package/lib/tableExtend/index.js +7 -0
  5. package/lib/tableExtend/props.js +50 -0
  6. package/lib/tableExtend/type.js +4 -0
  7. package/lib/tableExtend/useTable.js +72 -0
  8. package/lib/textButton/index.js +7 -0
  9. package/lib/utils/index.js +79 -0
  10. package/package.json +7 -7
  11. package/lib/node_modules/@ctrl/tinycolor/dist/module/conversion.js +0 -115
  12. package/lib/node_modules/@ctrl/tinycolor/dist/module/css-color-names.js +0 -153
  13. package/lib/node_modules/@ctrl/tinycolor/dist/module/format-input.js +0 -68
  14. package/lib/node_modules/@ctrl/tinycolor/dist/module/index.js +0 -183
  15. package/lib/node_modules/@ctrl/tinycolor/dist/module/util.js +0 -32
  16. package/lib/node_modules/@element-plus/icons-vue/dist/index.js +0 -167
  17. package/lib/node_modules/@intlify/core-base/dist/core-base.js +0 -1104
  18. package/lib/node_modules/@intlify/message-compiler/dist/message-compiler.esm-browser.js +0 -1004
  19. package/lib/node_modules/@intlify/shared/dist/shared.js +0 -142
  20. package/lib/node_modules/@qy_better_lib/core/lib/directives/click-outside.js +0 -40
  21. package/lib/node_modules/@qy_better_lib/core/lib/utils/is.js +0 -8
  22. package/lib/node_modules/@vue/shared/dist/shared.esm-bundler.js +0 -22
  23. package/lib/node_modules/@vueuse/core/index.js +0 -112
  24. package/lib/node_modules/@vueuse/shared/index.js +0 -68
  25. package/lib/node_modules/element-plus/es/_virtual/plugin-vue_export-helper.js +0 -9
  26. package/lib/node_modules/element-plus/es/components/badge/index.js +0 -7
  27. package/lib/node_modules/element-plus/es/components/button/index.js +0 -11
  28. package/lib/node_modules/element-plus/es/components/icon/index.js +0 -7
  29. package/lib/node_modules/element-plus/es/components/input/index.js +0 -7
  30. package/lib/node_modules/element-plus/es/components/message/index.js +0 -7
  31. package/lib/node_modules/element-plus/es/components/message-box/index.js +0 -10
  32. package/lib/node_modules/element-plus/es/components/notification/index.js +0 -7
  33. package/lib/node_modules/element-plus/es/components/overlay/index.js +0 -9
  34. package/lib/node_modules/element-plus/es/constants/aria.js +0 -20
  35. package/lib/node_modules/element-plus/es/constants/event.js +0 -4
  36. package/lib/node_modules/element-plus/es/constants/size.js +0 -4
  37. package/lib/node_modules/element-plus/es/directives/trap-focus/index.js +0 -36
  38. package/lib/node_modules/element-plus/es/hooks/use-aria/index.js +0 -14
  39. package/lib/node_modules/element-plus/es/hooks/use-attrs/index.js +0 -13
  40. package/lib/node_modules/element-plus/es/hooks/use-composition/index.js +0 -29
  41. package/lib/node_modules/element-plus/es/hooks/use-cursor/index.js +0 -39
  42. package/lib/node_modules/element-plus/es/hooks/use-deprecated/index.js +0 -14
  43. package/lib/node_modules/element-plus/es/hooks/use-draggable/index.js +0 -41
  44. package/lib/node_modules/element-plus/es/hooks/use-empty-values/index.js +0 -15
  45. package/lib/node_modules/element-plus/es/hooks/use-escape-keydown/index.js +0 -16
  46. package/lib/node_modules/element-plus/es/hooks/use-focus-controller/index.js +0 -34
  47. package/lib/node_modules/element-plus/es/hooks/use-id/index.js +0 -22
  48. package/lib/node_modules/element-plus/es/hooks/use-locale/index.js +0 -24
  49. package/lib/node_modules/element-plus/es/hooks/use-lockscreen/index.js +0 -30
  50. package/lib/node_modules/element-plus/es/hooks/use-namespace/index.js +0 -44
  51. package/lib/node_modules/element-plus/es/hooks/use-prop/index.js +0 -11
  52. package/lib/node_modules/element-plus/es/hooks/use-same-target/index.js +0 -16
  53. package/lib/node_modules/element-plus/es/hooks/use-size/index.js +0 -16
  54. package/lib/node_modules/element-plus/es/hooks/use-z-index/index.js +0 -24
  55. package/lib/node_modules/element-plus/es/locale/lang/en.js +0 -182
  56. package/lib/node_modules/element-plus/es/utils/browser.js +0 -6
  57. package/lib/node_modules/element-plus/es/utils/dom/aria.js +0 -23
  58. package/lib/node_modules/element-plus/es/utils/dom/scroll.js +0 -20
  59. package/lib/node_modules/element-plus/es/utils/dom/style.js +0 -47
  60. package/lib/node_modules/element-plus/es/utils/error.js +0 -19
  61. package/lib/node_modules/element-plus/es/utils/i18n.js +0 -4
  62. package/lib/node_modules/element-plus/es/utils/objects.js +0 -4
  63. package/lib/node_modules/element-plus/es/utils/types.js +0 -13
  64. package/lib/node_modules/element-plus/es/utils/typescript.js +0 -4
  65. package/lib/node_modules/element-plus/es/utils/vue/icon.js +0 -31
  66. package/lib/node_modules/element-plus/es/utils/vue/install.js +0 -17
  67. package/lib/node_modules/element-plus/es/utils/vue/props/runtime.js +0 -31
  68. package/lib/node_modules/element-plus/es/utils/vue/validator.js +0 -5
  69. package/lib/node_modules/element-plus/es/utils/vue/vnode.js +0 -5
  70. package/lib/node_modules/lodash-es/_Hash.js +0 -20
  71. package/lib/node_modules/lodash-es/_ListCache.js +0 -20
  72. package/lib/node_modules/lodash-es/_Map.js +0 -6
  73. package/lib/node_modules/lodash-es/_MapCache.js +0 -20
  74. package/lib/node_modules/lodash-es/_Symbol.js +0 -5
  75. package/lib/node_modules/lodash-es/_apply.js +0 -16
  76. package/lib/node_modules/lodash-es/_arrayMap.js +0 -8
  77. package/lib/node_modules/lodash-es/_arrayPush.js +0 -8
  78. package/lib/node_modules/lodash-es/_assignValue.js +0 -10
  79. package/lib/node_modules/lodash-es/_assocIndexOf.js +0 -10
  80. package/lib/node_modules/lodash-es/_baseAssignValue.js +0 -12
  81. package/lib/node_modules/lodash-es/_baseFlatten.js +0 -13
  82. package/lib/node_modules/lodash-es/_baseGet.js +0 -11
  83. package/lib/node_modules/lodash-es/_baseGetTag.js +0 -10
  84. package/lib/node_modules/lodash-es/_baseHasIn.js +0 -6
  85. package/lib/node_modules/lodash-es/_baseIsArguments.js +0 -9
  86. package/lib/node_modules/lodash-es/_baseIsNative.js +0 -16
  87. package/lib/node_modules/lodash-es/_basePick.js +0 -10
  88. package/lib/node_modules/lodash-es/_basePickBy.js +0 -13
  89. package/lib/node_modules/lodash-es/_baseSet.js +0 -24
  90. package/lib/node_modules/lodash-es/_baseSetToString.js +0 -14
  91. package/lib/node_modules/lodash-es/_baseToString.js +0 -18
  92. package/lib/node_modules/lodash-es/_castPath.js +0 -10
  93. package/lib/node_modules/lodash-es/_coreJsData.js +0 -5
  94. package/lib/node_modules/lodash-es/_defineProperty.js +0 -11
  95. package/lib/node_modules/lodash-es/_flatRest.js +0 -9
  96. package/lib/node_modules/lodash-es/_freeGlobal.js +0 -4
  97. package/lib/node_modules/lodash-es/_getMapData.js +0 -8
  98. package/lib/node_modules/lodash-es/_getNative.js +0 -9
  99. package/lib/node_modules/lodash-es/_getRawTag.js +0 -15
  100. package/lib/node_modules/lodash-es/_getValue.js +0 -6
  101. package/lib/node_modules/lodash-es/_hasPath.js +0 -19
  102. package/lib/node_modules/lodash-es/_hashClear.js +0 -7
  103. package/lib/node_modules/lodash-es/_hashDelete.js +0 -7
  104. package/lib/node_modules/lodash-es/_hashGet.js +0 -13
  105. package/lib/node_modules/lodash-es/_hashHas.js +0 -9
  106. package/lib/node_modules/lodash-es/_hashSet.js +0 -9
  107. package/lib/node_modules/lodash-es/_isFlattenable.js +0 -10
  108. package/lib/node_modules/lodash-es/_isIndex.js +0 -8
  109. package/lib/node_modules/lodash-es/_isKey.js +0 -12
  110. package/lib/node_modules/lodash-es/_isKeyable.js +0 -7
  111. package/lib/node_modules/lodash-es/_isMasked.js +0 -11
  112. package/lib/node_modules/lodash-es/_listCacheClear.js +0 -6
  113. package/lib/node_modules/lodash-es/_listCacheDelete.js +0 -12
  114. package/lib/node_modules/lodash-es/_listCacheGet.js +0 -8
  115. package/lib/node_modules/lodash-es/_listCacheHas.js +0 -7
  116. package/lib/node_modules/lodash-es/_listCacheSet.js +0 -8
  117. package/lib/node_modules/lodash-es/_mapCacheClear.js +0 -13
  118. package/lib/node_modules/lodash-es/_mapCacheDelete.js +0 -8
  119. package/lib/node_modules/lodash-es/_mapCacheGet.js +0 -7
  120. package/lib/node_modules/lodash-es/_mapCacheHas.js +0 -7
  121. package/lib/node_modules/lodash-es/_mapCacheSet.js +0 -8
  122. package/lib/node_modules/lodash-es/_memoizeCapped.js +0 -11
  123. package/lib/node_modules/lodash-es/_nativeCreate.js +0 -5
  124. package/lib/node_modules/lodash-es/_objectToString.js +0 -7
  125. package/lib/node_modules/lodash-es/_overRest.js +0 -15
  126. package/lib/node_modules/lodash-es/_root.js +0 -5
  127. package/lib/node_modules/lodash-es/_setToString.js +0 -6
  128. package/lib/node_modules/lodash-es/_shortOut.js +0 -16
  129. package/lib/node_modules/lodash-es/_stringToPath.js +0 -10
  130. package/lib/node_modules/lodash-es/_toKey.js +0 -10
  131. package/lib/node_modules/lodash-es/_toSource.js +0 -17
  132. package/lib/node_modules/lodash-es/constant.js +0 -8
  133. package/lib/node_modules/lodash-es/eq.js +0 -6
  134. package/lib/node_modules/lodash-es/flatten.js +0 -8
  135. package/lib/node_modules/lodash-es/fromPairs.js +0 -10
  136. package/lib/node_modules/lodash-es/get.js +0 -8
  137. package/lib/node_modules/lodash-es/hasIn.js +0 -8
  138. package/lib/node_modules/lodash-es/identity.js +0 -6
  139. package/lib/node_modules/lodash-es/isArguments.js +0 -10
  140. package/lib/node_modules/lodash-es/isArray.js +0 -4
  141. package/lib/node_modules/lodash-es/isFunction.js +0 -12
  142. package/lib/node_modules/lodash-es/isLength.js +0 -7
  143. package/lib/node_modules/lodash-es/isNil.js +0 -6
  144. package/lib/node_modules/lodash-es/isObject.js +0 -7
  145. package/lib/node_modules/lodash-es/isObjectLike.js +0 -6
  146. package/lib/node_modules/lodash-es/isSymbol.js +0 -9
  147. package/lib/node_modules/lodash-es/memoize.js +0 -18
  148. package/lib/node_modules/lodash-es/pick.js +0 -8
  149. package/lib/node_modules/lodash-es/toString.js +0 -7
  150. package/lib/node_modules/vue-i18n/dist/vue-i18n.js +0 -864
@@ -1,864 +0,0 @@
1
- import { assign as M, isNumber as pe, isString as T, isObject as k, warn as ye, isEmptyObject as Da, isBoolean as p, isArray as V, isPlainObject as A, isRegExp as re, isFunction as K, getGlobalThis as J, format as Ma, makeSymbol as U, deepCopy as ne, hasOwn as se, warnOnce as Sa, inBrowser as Be, createEmitter as ya, incrementer as ia } from "../../@intlify/shared/dist/shared.js";
2
- import { DEFAULT_LOCALE as ca, setDevToolsHook as Va, updateFallbackLocale as Z, NUMBER_FORMAT_OPTIONS_KEYS as Ua, DATETIME_FORMAT_OPTIONS_KEYS as ha, CoreErrorCodes as Wa, createCoreContext as wa, clearDateTimeFormat as je, clearNumberFormat as Xe, CoreWarnCodes as Ga, setAdditionalMeta as xa, getFallbackContext as Ha, NOT_REOSLVED as Ya, isTranslateFallbackWarn as Ba, isTranslateMissingWarn as ja, parseTranslateArgs as Je, translate as $e, MISSING_RESOLVE_VALUE as Ke, parseDateTimeArgs as qe, datetime as ze, parseNumberArgs as Qe, number as Ze, isMessageAST as Xa, isMessageFunction as Ja, fallbackWithLocaleChain as _a, registerMessageCompiler as ea, registerMessageResolver as $a, registerLocaleFallbacker as Ka, setFallbackContext as aa, compile as qa, compileToFunction as za, resolveValue as Qa } from "../../@intlify/core-base/dist/core-base.js";
3
- import { defineComponent as Ve, h as ma, getCurrentInstance as Ue, inject as Za, onMounted as et, onUnmounted as at, shallowRef as fa, ref as $, computed as D, onBeforeMount as tt, watch as ta, Fragment as Ea, createVNode as lt, Text as nt } from "vue";
4
- import { createCompileError as rt } from "../../@intlify/message-compiler/dist/message-compiler.esm-browser.js";
5
- /*!
6
- * vue-i18n v9.13.1
7
- * (c) 2024 kazuya kawaguchi
8
- * Released under the MIT License.
9
- */
10
- const st = "9.13.1";
11
- function ut() {
12
- typeof __VUE_I18N_FULL_INSTALL__ != "boolean" && (J().__VUE_I18N_FULL_INSTALL__ = !0), typeof __VUE_I18N_LEGACY_API__ != "boolean" && (J().__VUE_I18N_LEGACY_API__ = !0), typeof __INTLIFY_JIT_COMPILATION__ != "boolean" && (J().__INTLIFY_JIT_COMPILATION__ = !1), typeof __INTLIFY_DROP_MESSAGE_COMPILER__ != "boolean" && (J().__INTLIFY_DROP_MESSAGE_COMPILER__ = !1), typeof __INTLIFY_PROD_DEVTOOLS__ != "boolean" && (J().__INTLIFY_PROD_DEVTOOLS__ = !1);
13
- }
14
- const va = Ga.__EXTEND_POINT__, y = ia(va), P = {
15
- FALLBACK_TO_ROOT: va,
16
- // 9
17
- NOT_SUPPORTED_PRESERVE: y(),
18
- // 10
19
- NOT_SUPPORTED_FORMATTER: y(),
20
- // 11
21
- NOT_SUPPORTED_PRESERVE_DIRECTIVE: y(),
22
- // 12
23
- NOT_SUPPORTED_GET_CHOICE_INDEX: y(),
24
- // 13
25
- COMPONENT_NAME_LEGACY_COMPATIBLE: y(),
26
- // 14
27
- NOT_FOUND_PARENT_SCOPE: y(),
28
- // 15
29
- IGNORE_OBJ_FLATTEN: y(),
30
- // 16
31
- NOTICE_DROP_ALLOW_COMPOSITION: y(),
32
- // 17
33
- NOTICE_DROP_TRANSLATE_EXIST_COMPATIBLE_FLAG: y()
34
- // 18
35
- }, ot = {
36
- [P.FALLBACK_TO_ROOT]: "Fall back to {type} '{key}' with root locale.",
37
- [P.NOT_SUPPORTED_PRESERVE]: "Not supported 'preserve'.",
38
- [P.NOT_SUPPORTED_FORMATTER]: "Not supported 'formatter'.",
39
- [P.NOT_SUPPORTED_PRESERVE_DIRECTIVE]: "Not supported 'preserveDirectiveContent'.",
40
- [P.NOT_SUPPORTED_GET_CHOICE_INDEX]: "Not supported 'getChoiceIndex'.",
41
- [P.COMPONENT_NAME_LEGACY_COMPATIBLE]: "Component name legacy compatible: '{name}' -> 'i18n'",
42
- [P.NOT_FOUND_PARENT_SCOPE]: "Not found parent scope. use the global scope.",
43
- [P.IGNORE_OBJ_FLATTEN]: "Ignore object flatten: '{key}' key has an string value",
44
- [P.NOTICE_DROP_ALLOW_COMPOSITION]: "'allowComposition' option will be dropped in the next major version. For more information, please see 👉 https://tinyurl.com/2p97mcze",
45
- [P.NOTICE_DROP_TRANSLATE_EXIST_COMPATIBLE_FLAG]: "'translateExistCompatible' option will be dropped in the next major version."
46
- };
47
- function ue(e, ...u) {
48
- return Ma(ot[e], ...u);
49
- }
50
- const ga = Wa.__EXTEND_POINT__, R = ia(ga), N = {
51
- // composer module errors
52
- UNEXPECTED_RETURN_TYPE: ga,
53
- // 24
54
- // legacy module errors
55
- INVALID_ARGUMENT: R(),
56
- // 25
57
- // i18n module errors
58
- MUST_BE_CALL_SETUP_TOP: R(),
59
- // 26
60
- NOT_INSTALLED: R(),
61
- // 27
62
- NOT_AVAILABLE_IN_LEGACY_MODE: R(),
63
- // 28
64
- // directive module errors
65
- REQUIRED_VALUE: R(),
66
- // 29
67
- INVALID_VALUE: R(),
68
- // 30
69
- // vue-devtools errors
70
- CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN: R(),
71
- // 31
72
- NOT_INSTALLED_WITH_PROVIDE: R(),
73
- // 32
74
- // unexpected error
75
- UNEXPECTED_ERROR: R(),
76
- // 33
77
- // not compatible legacy vue-i18n constructor
78
- NOT_COMPATIBLE_LEGACY_VUE_I18N: R(),
79
- // 34
80
- // bridge support vue 2.x only
81
- BRIDGE_SUPPORT_VUE_2_ONLY: R(),
82
- // 35
83
- // need to define `i18n` option in `allowComposition: true` and `useScope: 'local' at `useI18n``
84
- MUST_DEFINE_I18N_OPTION_IN_ALLOW_COMPOSITION: R(),
85
- // 36
86
- // Not available Compostion API in Legacy API mode. Please make sure that the legacy API mode is working properly
87
- NOT_AVAILABLE_COMPOSITION_IN_LEGACY: R(),
88
- // 37
89
- // for enhancement
90
- __EXTEND_POINT__: R()
91
- // 38
92
- };
93
- function w(e, ...u) {
94
- return rt(e, null, process.env.NODE_ENV !== "production" ? { messages: it, args: u } : void 0);
95
- }
96
- const it = {
97
- [N.UNEXPECTED_RETURN_TYPE]: "Unexpected return type in composer",
98
- [N.INVALID_ARGUMENT]: "Invalid argument",
99
- [N.MUST_BE_CALL_SETUP_TOP]: "Must be called at the top of a `setup` function",
100
- [N.NOT_INSTALLED]: "Need to install with `app.use` function",
101
- [N.UNEXPECTED_ERROR]: "Unexpected error",
102
- [N.NOT_AVAILABLE_IN_LEGACY_MODE]: "Not available in legacy mode",
103
- [N.REQUIRED_VALUE]: "Required in value: {0}",
104
- [N.INVALID_VALUE]: "Invalid value",
105
- [N.CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN]: "Cannot setup vue-devtools plugin",
106
- [N.NOT_INSTALLED_WITH_PROVIDE]: "Need to install with `provide` function",
107
- [N.NOT_COMPATIBLE_LEGACY_VUE_I18N]: "Not compatible legacy VueI18n.",
108
- [N.BRIDGE_SUPPORT_VUE_2_ONLY]: "vue-i18n-bridge support Vue 2.x only",
109
- [N.MUST_DEFINE_I18N_OPTION_IN_ALLOW_COMPOSITION]: "Must define ‘i18n’ option or custom block in Composition API with using local scope in Legacy API mode",
110
- [N.NOT_AVAILABLE_COMPOSITION_IN_LEGACY]: "Not available Compostion API in Legacy API mode. Please make sure that the legacy API mode is working properly"
111
- }, Ae = /* @__PURE__ */ U("__translateVNode"), Ce = /* @__PURE__ */ U("__datetimeParts"), ke = /* @__PURE__ */ U("__numberParts"), De = /* @__PURE__ */ U("__enableEmitter"), Me = /* @__PURE__ */ U("__disableEmitter"), ct = U("__setPluralRules"), Oa = /* @__PURE__ */ U("__injectWithOption"), Se = /* @__PURE__ */ U("__dispose");
112
- function ee(e) {
113
- if (!k(e))
114
- return e;
115
- for (const u in e)
116
- if (se(e, u))
117
- if (!u.includes("."))
118
- k(e[u]) && ee(e[u]);
119
- else {
120
- const r = u.split("."), n = r.length - 1;
121
- let o = e, a = !1;
122
- for (let i = 0; i < n; i++) {
123
- if (r[i] in o || (o[r[i]] = {}), !k(o[r[i]])) {
124
- process.env.NODE_ENV !== "production" && ye(ue(P.IGNORE_OBJ_FLATTEN, {
125
- key: r[i]
126
- })), a = !0;
127
- break;
128
- }
129
- o = o[r[i]];
130
- }
131
- a || (o[r[n]] = e[u], delete e[u]), k(o[r[n]]) && ee(o[r[n]]);
132
- }
133
- return e;
134
- }
135
- function he(e, u) {
136
- const { messages: r, __i18n: n, messageResolver: o, flatJson: a } = u, i = A(r) ? r : V(n) ? {} : { [e]: {} };
137
- if (V(n) && n.forEach((_) => {
138
- if ("locale" in _ && "resource" in _) {
139
- const { locale: f, resource: m } = _;
140
- f ? (i[f] = i[f] || {}, ne(m, i[f])) : ne(m, i);
141
- } else
142
- T(_) && ne(JSON.parse(_), i);
143
- }), o == null && a)
144
- for (const _ in i)
145
- se(i, _) && ee(i[_]);
146
- return i;
147
- }
148
- function Na(e) {
149
- return e.type;
150
- }
151
- function _t(e, u, r) {
152
- let n = k(u.messages) ? u.messages : {};
153
- "__i18nGlobal" in r && (n = he(e.locale.value, {
154
- messages: n,
155
- __i18n: r.__i18nGlobal
156
- }));
157
- const o = Object.keys(n);
158
- o.length && o.forEach((a) => {
159
- e.mergeLocaleMessage(a, n[a]);
160
- });
161
- {
162
- if (k(u.datetimeFormats)) {
163
- const a = Object.keys(u.datetimeFormats);
164
- a.length && a.forEach((i) => {
165
- e.mergeDateTimeFormat(i, u.datetimeFormats[i]);
166
- });
167
- }
168
- if (k(u.numberFormats)) {
169
- const a = Object.keys(u.numberFormats);
170
- a.length && a.forEach((i) => {
171
- e.mergeNumberFormat(i, u.numberFormats[i]);
172
- });
173
- }
174
- }
175
- }
176
- function la(e) {
177
- return lt(nt, null, e, 0);
178
- }
179
- const na = "__INTLIFY_META__", ra = () => [], mt = () => !1;
180
- let sa = 0;
181
- function ua(e) {
182
- return (u, r, n, o) => e(r, n, Ue() || void 0, o);
183
- }
184
- const ft = /* @__NO_SIDE_EFFECTS__ */ () => {
185
- const e = Ue();
186
- let u = null;
187
- return e && (u = Na(e)[na]) ? { [na]: u } : null;
188
- };
189
- function Et(e = {}, u) {
190
- const { __root: r, __injectWithOption: n } = e, o = r === void 0, a = e.flatJson, i = Be ? $ : fa, _ = !!e.translateExistCompatible;
191
- process.env.NODE_ENV !== "production" && _ && Sa(ue(P.NOTICE_DROP_TRANSLATE_EXIST_COMPATIBLE_FLAG));
192
- let f = p(e.inheritLocale) ? e.inheritLocale : !0;
193
- const m = i(
194
- // prettier-ignore
195
- r && f ? r.locale.value : T(e.locale) ? e.locale : ca
196
- ), g = i(
197
- // prettier-ignore
198
- r && f ? r.fallbackLocale.value : T(e.fallbackLocale) || V(e.fallbackLocale) || A(e.fallbackLocale) || e.fallbackLocale === !1 ? e.fallbackLocale : m.value
199
- ), O = i(he(m.value, e)), L = i(A(e.datetimeFormats) ? e.datetimeFormats : { [m.value]: {} }), d = i(A(e.numberFormats) ? e.numberFormats : { [m.value]: {} });
200
- let C = r ? r.missingWarn : p(e.missingWarn) || re(e.missingWarn) ? e.missingWarn : !0, F = r ? r.fallbackWarn : p(e.fallbackWarn) || re(e.fallbackWarn) ? e.fallbackWarn : !0, G = r ? r.fallbackRoot : p(e.fallbackRoot) ? e.fallbackRoot : !0, B = !!e.fallbackFormat, q = K(e.missing) ? e.missing : null, x = K(e.missing) ? ua(e.missing) : null, H = K(e.postTranslation) ? e.postTranslation : null, z = r ? r.warnHtmlMessage : p(e.warnHtmlMessage) ? e.warnHtmlMessage : !0, Q = !!e.escapeParameter;
201
- const ae = r ? r.modifiers : A(e.modifiers) ? e.modifiers : {};
202
- let j = e.pluralRules || r && r.pluralRules, c;
203
- c = (() => {
204
- o && aa(null);
205
- const t = {
206
- version: st,
207
- locale: m.value,
208
- fallbackLocale: g.value,
209
- messages: O.value,
210
- modifiers: ae,
211
- pluralRules: j,
212
- missing: x === null ? void 0 : x,
213
- missingWarn: C,
214
- fallbackWarn: F,
215
- fallbackFormat: B,
216
- unresolving: !0,
217
- postTranslation: H === null ? void 0 : H,
218
- warnHtmlMessage: z,
219
- escapeParameter: Q,
220
- messageResolver: e.messageResolver,
221
- messageCompiler: e.messageCompiler,
222
- __meta: { framework: "vue" }
223
- };
224
- t.datetimeFormats = L.value, t.numberFormats = d.value, t.__datetimeFormatters = A(c) ? c.__datetimeFormatters : void 0, t.__numberFormatters = A(c) ? c.__numberFormatters : void 0, process.env.NODE_ENV !== "production" && (t.__v_emitter = A(c) ? c.__v_emitter : void 0);
225
- const l = wa(t);
226
- return o && aa(l), l;
227
- })(), Z(c, m.value, g.value);
228
- function oe() {
229
- return [
230
- m.value,
231
- g.value,
232
- O.value,
233
- L.value,
234
- d.value
235
- ];
236
- }
237
- const ie = D({
238
- get: () => m.value,
239
- set: (t) => {
240
- m.value = t, c.locale = m.value;
241
- }
242
- }), ce = D({
243
- get: () => g.value,
244
- set: (t) => {
245
- g.value = t, c.fallbackLocale = g.value, Z(c, m.value, t);
246
- }
247
- }), _e = D(() => O.value), me = /* @__PURE__ */ D(() => L.value), h = /* @__PURE__ */ D(() => d.value);
248
- function fe() {
249
- return K(H) ? H : null;
250
- }
251
- function Ee(t) {
252
- H = t, c.postTranslation = t;
253
- }
254
- function ve() {
255
- return q;
256
- }
257
- function ge(t) {
258
- t !== null && (x = ua(t)), q = t, c.missing = x;
259
- }
260
- function Oe(t, l) {
261
- return t !== "translate" || !l.resolvedMessage;
262
- }
263
- const S = (t, l, E, I, W, le) => {
264
- oe();
265
- let X;
266
- try {
267
- (process.env.NODE_ENV !== "production" || __INTLIFY_PROD_DEVTOOLS__) && xa(/* @__PURE__ */ ft()), o || (c.fallbackContext = r ? Ha() : void 0), X = t(c);
268
- } finally {
269
- process.env.NODE_ENV !== "production" || __INTLIFY_PROD_DEVTOOLS__, o || (c.fallbackContext = void 0);
270
- }
271
- if (E !== "translate exists" && // for not `te` (e.g `t`)
272
- pe(X) && X === Ya || E === "translate exists" && !X) {
273
- const [Y, ka] = l();
274
- if (process.env.NODE_ENV !== "production" && r && T(Y) && Oe(E, ka) && (G && (Ba(F, Y) || ja(C, Y)) && ye(ue(P.FALLBACK_TO_ROOT, {
275
- key: Y,
276
- type: E
277
- })), process.env.NODE_ENV !== "production")) {
278
- const { __v_emitter: Ye } = c;
279
- Ye && G && Ye.emit("fallback", {
280
- type: E,
281
- key: Y,
282
- to: "global",
283
- groupId: `${E}:${Y}`
284
- });
285
- }
286
- return r && G ? I(r) : W(Y);
287
- } else {
288
- if (le(X))
289
- return X;
290
- throw w(N.UNEXPECTED_RETURN_TYPE);
291
- }
292
- };
293
- function te(...t) {
294
- return S((l) => Reflect.apply($e, null, [l, ...t]), () => Je(...t), "translate", (l) => Reflect.apply(l.t, l, [...t]), (l) => l, (l) => T(l));
295
- }
296
- function Ne(...t) {
297
- const [l, E, I] = t;
298
- if (I && !k(I))
299
- throw w(N.INVALID_ARGUMENT);
300
- return te(l, E, M({ resolvedMessage: !0 }, I || {}));
301
- }
302
- function Te(...t) {
303
- return S((l) => Reflect.apply(ze, null, [l, ...t]), () => qe(...t), "datetime format", (l) => Reflect.apply(l.d, l, [...t]), () => Ke, (l) => T(l));
304
- }
305
- function Le(...t) {
306
- return S((l) => Reflect.apply(Ze, null, [l, ...t]), () => Qe(...t), "number format", (l) => Reflect.apply(l.n, l, [...t]), () => Ke, (l) => T(l));
307
- }
308
- function Ie(t) {
309
- return t.map((l) => T(l) || pe(l) || p(l) ? la(String(l)) : l);
310
- }
311
- const be = {
312
- normalize: Ie,
313
- interpolate: (t) => t,
314
- type: "vnode"
315
- };
316
- function de(...t) {
317
- return S(
318
- (l) => {
319
- let E;
320
- const I = l;
321
- try {
322
- I.processor = be, E = Reflect.apply($e, null, [I, ...t]);
323
- } finally {
324
- I.processor = null;
325
- }
326
- return E;
327
- },
328
- () => Je(...t),
329
- "translate",
330
- // eslint-disable-next-line @typescript-eslint/no-explicit-any
331
- (l) => l[Ae](...t),
332
- (l) => [la(l)],
333
- (l) => V(l)
334
- );
335
- }
336
- function Re(...t) {
337
- return S(
338
- (l) => Reflect.apply(Ze, null, [l, ...t]),
339
- () => Qe(...t),
340
- "number format",
341
- // eslint-disable-next-line @typescript-eslint/no-explicit-any
342
- (l) => l[ke](...t),
343
- ra,
344
- (l) => T(l) || V(l)
345
- );
346
- }
347
- function Pe(...t) {
348
- return S(
349
- (l) => Reflect.apply(ze, null, [l, ...t]),
350
- () => qe(...t),
351
- "datetime format",
352
- // eslint-disable-next-line @typescript-eslint/no-explicit-any
353
- (l) => l[Ce](...t),
354
- ra,
355
- (l) => T(l) || V(l)
356
- );
357
- }
358
- function Fe(t) {
359
- j = t, c.pluralRules = j;
360
- }
361
- function s(t, l) {
362
- return S(() => {
363
- if (!t)
364
- return !1;
365
- const E = T(l) ? l : m.value, I = He(E), W = c.messageResolver(I, t);
366
- return _ ? W != null : Xa(W) || Ja(W) || T(W);
367
- }, () => [t], "translate exists", (E) => Reflect.apply(E.te, E, [t, l]), mt, (E) => p(E));
368
- }
369
- function v(t) {
370
- let l = null;
371
- const E = _a(c, g.value, m.value);
372
- for (let I = 0; I < E.length; I++) {
373
- const W = O.value[E[I]] || {}, le = c.messageResolver(W, t);
374
- if (le != null) {
375
- l = le;
376
- break;
377
- }
378
- }
379
- return l;
380
- }
381
- function Ia(t) {
382
- const l = v(t);
383
- return l ?? (r ? r.tm(t) || {} : {});
384
- }
385
- function He(t) {
386
- return O.value[t] || {};
387
- }
388
- function ba(t, l) {
389
- if (a) {
390
- const E = { [t]: l };
391
- for (const I in E)
392
- se(E, I) && ee(E[I]);
393
- l = E[t];
394
- }
395
- O.value[t] = l, c.messages = O.value;
396
- }
397
- function da(t, l) {
398
- O.value[t] = O.value[t] || {};
399
- const E = { [t]: l };
400
- if (a)
401
- for (const I in E)
402
- se(E, I) && ee(E[I]);
403
- l = E[t], ne(l, O.value[t]), c.messages = O.value;
404
- }
405
- function Ra(t) {
406
- return L.value[t] || {};
407
- }
408
- function Pa(t, l) {
409
- L.value[t] = l, c.datetimeFormats = L.value, je(c, t, l);
410
- }
411
- function Fa(t, l) {
412
- L.value[t] = M(L.value[t] || {}, l), c.datetimeFormats = L.value, je(c, t, l);
413
- }
414
- function pa(t) {
415
- return d.value[t] || {};
416
- }
417
- function Aa(t, l) {
418
- d.value[t] = l, c.numberFormats = d.value, Xe(c, t, l);
419
- }
420
- function Ca(t, l) {
421
- d.value[t] = M(d.value[t] || {}, l), c.numberFormats = d.value, Xe(c, t, l);
422
- }
423
- sa++, r && Be && (ta(r.locale, (t) => {
424
- f && (m.value = t, c.locale = t, Z(c, m.value, g.value));
425
- }), ta(r.fallbackLocale, (t) => {
426
- f && (g.value = t, c.fallbackLocale = t, Z(c, m.value, g.value));
427
- }));
428
- const b = {
429
- id: sa,
430
- locale: ie,
431
- fallbackLocale: ce,
432
- get inheritLocale() {
433
- return f;
434
- },
435
- set inheritLocale(t) {
436
- f = t, t && r && (m.value = r.locale.value, g.value = r.fallbackLocale.value, Z(c, m.value, g.value));
437
- },
438
- get availableLocales() {
439
- return Object.keys(O.value).sort();
440
- },
441
- messages: _e,
442
- get modifiers() {
443
- return ae;
444
- },
445
- get pluralRules() {
446
- return j || {};
447
- },
448
- get isGlobal() {
449
- return o;
450
- },
451
- get missingWarn() {
452
- return C;
453
- },
454
- set missingWarn(t) {
455
- C = t, c.missingWarn = C;
456
- },
457
- get fallbackWarn() {
458
- return F;
459
- },
460
- set fallbackWarn(t) {
461
- F = t, c.fallbackWarn = F;
462
- },
463
- get fallbackRoot() {
464
- return G;
465
- },
466
- set fallbackRoot(t) {
467
- G = t;
468
- },
469
- get fallbackFormat() {
470
- return B;
471
- },
472
- set fallbackFormat(t) {
473
- B = t, c.fallbackFormat = B;
474
- },
475
- get warnHtmlMessage() {
476
- return z;
477
- },
478
- set warnHtmlMessage(t) {
479
- z = t, c.warnHtmlMessage = t;
480
- },
481
- get escapeParameter() {
482
- return Q;
483
- },
484
- set escapeParameter(t) {
485
- Q = t, c.escapeParameter = t;
486
- },
487
- t: te,
488
- getLocaleMessage: He,
489
- setLocaleMessage: ba,
490
- mergeLocaleMessage: da,
491
- getPostTranslationHandler: fe,
492
- setPostTranslationHandler: Ee,
493
- getMissingHandler: ve,
494
- setMissingHandler: ge,
495
- [ct]: Fe
496
- };
497
- return b.datetimeFormats = me, b.numberFormats = h, b.rt = Ne, b.te = s, b.tm = Ia, b.d = Te, b.n = Le, b.getDateTimeFormat = Ra, b.setDateTimeFormat = Pa, b.mergeDateTimeFormat = Fa, b.getNumberFormat = pa, b.setNumberFormat = Aa, b.mergeNumberFormat = Ca, b[Oa] = n, b[Ae] = de, b[Ce] = Pe, b[ke] = Re, process.env.NODE_ENV !== "production" && (b[De] = (t) => {
498
- c.__v_emitter = t;
499
- }, b[Me] = () => {
500
- c.__v_emitter = void 0;
501
- }), b;
502
- }
503
- const We = {
504
- tag: {
505
- type: [String, Object]
506
- },
507
- locale: {
508
- type: String
509
- },
510
- scope: {
511
- type: String,
512
- // NOTE: avoid https://github.com/microsoft/rushstack/issues/1050
513
- validator: (e) => e === "parent" || e === "global",
514
- default: "parent"
515
- /* ComponentI18nScope */
516
- },
517
- i18n: {
518
- type: Object
519
- }
520
- };
521
- function vt({ slots: e }, u) {
522
- return u.length === 1 && u[0] === "default" ? (e.default ? e.default() : []).reduce((n, o) => [
523
- ...n,
524
- // prettier-ignore
525
- ...o.type === Ea ? o.children : [o]
526
- ], []) : u.reduce((r, n) => {
527
- const o = e[n];
528
- return o && (r[n] = o()), r;
529
- }, {});
530
- }
531
- function Ta(e) {
532
- return Ea;
533
- }
534
- M({
535
- keypath: {
536
- type: String,
537
- required: !0
538
- },
539
- plural: {
540
- type: [Number, String],
541
- // eslint-disable-next-line @typescript-eslint/no-explicit-any
542
- validator: (e) => pe(e) || !isNaN(e)
543
- }
544
- }, We);
545
- function gt(e) {
546
- return V(e) && !T(e[0]);
547
- }
548
- function La(e, u, r, n) {
549
- const { slots: o, attrs: a } = u;
550
- return () => {
551
- const i = { part: !0 };
552
- let _ = {};
553
- e.locale && (i.locale = e.locale), T(e.format) ? i.key = e.format : k(e.format) && (T(e.format.key) && (i.key = e.format.key), _ = Object.keys(e.format).reduce((L, d) => r.includes(d) ? M({}, L, { [d]: e.format[d] }) : L, {}));
554
- const f = n(e.value, i, _);
555
- let m = [i.key];
556
- V(f) ? m = f.map((L, d) => {
557
- const C = o[L.type], F = C ? C({ [L.type]: L.value, index: d, parts: f }) : [L.value];
558
- return gt(F) && (F[0].key = `${L.type}-${d}`), F;
559
- }) : T(f) && (m = [f]);
560
- const g = M({}, a), O = T(e.tag) || k(e.tag) ? e.tag : Ta();
561
- return ma(O, g, m);
562
- };
563
- }
564
- M({
565
- value: {
566
- type: Number,
567
- required: !0
568
- },
569
- format: {
570
- type: [String, Object]
571
- }
572
- }, We);
573
- M({
574
- value: {
575
- type: [Number, Date],
576
- required: !0
577
- },
578
- format: {
579
- type: [String, Object]
580
- }
581
- }, We);
582
- function oa(e, u) {
583
- }
584
- const Ot = /* @__PURE__ */ U("global-vue-i18n");
585
- function we(e = {}) {
586
- const u = Ue();
587
- if (u == null)
588
- throw w(N.MUST_BE_CALL_SETUP_TOP);
589
- if (!u.isCE && u.appContext.app != null && !u.appContext.app.__VUE_I18N_SYMBOL__)
590
- throw w(N.NOT_INSTALLED);
591
- const r = Nt(u), n = Lt(r), o = Na(u), a = Tt(e, o);
592
- if (__VUE_I18N_LEGACY_API__ && r.mode === "legacy" && !e.__useComponent) {
593
- if (!r.allowComposition)
594
- throw w(N.NOT_AVAILABLE_IN_LEGACY_MODE);
595
- return Rt(u, a, n, e);
596
- }
597
- if (a === "global")
598
- return _t(n, e, o), n;
599
- if (a === "parent") {
600
- let f = It(r, u, e.__useComponent);
601
- return f == null && (process.env.NODE_ENV !== "production" && ye(ue(P.NOT_FOUND_PARENT_SCOPE)), f = n), f;
602
- }
603
- const i = r;
604
- let _ = i.__getInstance(u);
605
- if (_ == null) {
606
- const f = M({}, e);
607
- "__i18n" in o && (f.__i18n = o.__i18n), n && (f.__root = n), _ = Et(f), i.__composerExtend && (_[Se] = i.__composerExtend(_)), dt(i, u, _), i.__setInstance(u, _);
608
- }
609
- return _;
610
- }
611
- function Nt(e) {
612
- {
613
- const u = Za(e.isCE ? Ot : e.appContext.app.__VUE_I18N_SYMBOL__);
614
- if (!u)
615
- throw w(e.isCE ? N.NOT_INSTALLED_WITH_PROVIDE : N.UNEXPECTED_ERROR);
616
- return u;
617
- }
618
- }
619
- function Tt(e, u) {
620
- return Da(e) ? "__i18n" in u ? "local" : "global" : e.useScope ? e.useScope : "local";
621
- }
622
- function Lt(e) {
623
- return e.mode === "composition" ? e.global : e.global.__composer;
624
- }
625
- function It(e, u, r = !1) {
626
- let n = null;
627
- const o = u.root;
628
- let a = bt(u, r);
629
- for (; a != null; ) {
630
- const i = e;
631
- if (e.mode === "composition")
632
- n = i.__getInstance(a);
633
- else if (__VUE_I18N_LEGACY_API__) {
634
- const _ = i.__getInstance(a);
635
- _ != null && (n = _.__composer, r && n && !n[Oa] && (n = null));
636
- }
637
- if (n != null || o === a)
638
- break;
639
- a = a.parent;
640
- }
641
- return n;
642
- }
643
- function bt(e, u = !1) {
644
- return e == null ? null : u && e.vnode.ctx || e.parent;
645
- }
646
- function dt(e, u, r) {
647
- let n = null;
648
- et(() => {
649
- if (process.env.NODE_ENV !== "production" && u.vnode.el) {
650
- u.vnode.el.__VUE_I18N__ = r, n = ya();
651
- const o = r;
652
- o[De] && o[De](n), n.on("*", oa);
653
- }
654
- }, u), at(() => {
655
- const o = r;
656
- process.env.NODE_ENV !== "production" && u.vnode.el && u.vnode.el.__VUE_I18N__ && (n && n.off("*", oa), o[Me] && o[Me](), delete u.vnode.el.__VUE_I18N__), e.__deleteInstance(u);
657
- const a = o[Se];
658
- a && (a(), delete o[Se]);
659
- }, u);
660
- }
661
- function Rt(e, u, r, n = {}) {
662
- const o = u === "local", a = fa(null);
663
- if (o && e.proxy && !(e.proxy.$options.i18n || e.proxy.$options.__i18n))
664
- throw w(N.MUST_DEFINE_I18N_OPTION_IN_ALLOW_COMPOSITION);
665
- const i = p(n.inheritLocale) ? n.inheritLocale : !T(n.locale), _ = $(
666
- // prettier-ignore
667
- !o || i ? r.locale.value : T(n.locale) ? n.locale : ca
668
- ), f = $(
669
- // prettier-ignore
670
- !o || i ? r.fallbackLocale.value : T(n.fallbackLocale) || V(n.fallbackLocale) || A(n.fallbackLocale) || n.fallbackLocale === !1 ? n.fallbackLocale : _.value
671
- ), m = $(he(_.value, n)), g = $(A(n.datetimeFormats) ? n.datetimeFormats : { [_.value]: {} }), O = $(A(n.numberFormats) ? n.numberFormats : { [_.value]: {} }), L = o ? r.missingWarn : p(n.missingWarn) || re(n.missingWarn) ? n.missingWarn : !0, d = o ? r.fallbackWarn : p(n.fallbackWarn) || re(n.fallbackWarn) ? n.fallbackWarn : !0, C = o ? r.fallbackRoot : p(n.fallbackRoot) ? n.fallbackRoot : !0, F = !!n.fallbackFormat, G = K(n.missing) ? n.missing : null, B = K(n.postTranslation) ? n.postTranslation : null, q = o ? r.warnHtmlMessage : p(n.warnHtmlMessage) ? n.warnHtmlMessage : !0, x = !!n.escapeParameter, H = o ? r.modifiers : A(n.modifiers) ? n.modifiers : {}, z = n.pluralRules || o && r.pluralRules;
672
- function Q() {
673
- return [
674
- _.value,
675
- f.value,
676
- m.value,
677
- g.value,
678
- O.value
679
- ];
680
- }
681
- const ae = D({
682
- get: () => a.value ? a.value.locale.value : _.value,
683
- set: (s) => {
684
- a.value && (a.value.locale.value = s), _.value = s;
685
- }
686
- }), j = D({
687
- get: () => a.value ? a.value.fallbackLocale.value : f.value,
688
- set: (s) => {
689
- a.value && (a.value.fallbackLocale.value = s), f.value = s;
690
- }
691
- }), c = D(() => a.value ? a.value.messages.value : m.value), Ge = D(() => g.value), oe = D(() => O.value);
692
- function ie() {
693
- return a.value ? a.value.getPostTranslationHandler() : B;
694
- }
695
- function ce(s) {
696
- a.value && a.value.setPostTranslationHandler(s);
697
- }
698
- function _e() {
699
- return a.value ? a.value.getMissingHandler() : G;
700
- }
701
- function me(s) {
702
- a.value && a.value.setMissingHandler(s);
703
- }
704
- function h(s) {
705
- return Q(), s();
706
- }
707
- function fe(...s) {
708
- return a.value ? h(() => Reflect.apply(a.value.t, null, [...s])) : h(() => "");
709
- }
710
- function Ee(...s) {
711
- return a.value ? Reflect.apply(a.value.rt, null, [...s]) : "";
712
- }
713
- function ve(...s) {
714
- return a.value ? h(() => Reflect.apply(a.value.d, null, [...s])) : h(() => "");
715
- }
716
- function ge(...s) {
717
- return a.value ? h(() => Reflect.apply(a.value.n, null, [...s])) : h(() => "");
718
- }
719
- function Oe(s) {
720
- return a.value ? a.value.tm(s) : {};
721
- }
722
- function S(s, v) {
723
- return a.value ? a.value.te(s, v) : !1;
724
- }
725
- function te(s) {
726
- return a.value ? a.value.getLocaleMessage(s) : {};
727
- }
728
- function Ne(s, v) {
729
- a.value && (a.value.setLocaleMessage(s, v), m.value[s] = v);
730
- }
731
- function Te(s, v) {
732
- a.value && a.value.mergeLocaleMessage(s, v);
733
- }
734
- function Le(s) {
735
- return a.value ? a.value.getDateTimeFormat(s) : {};
736
- }
737
- function Ie(s, v) {
738
- a.value && (a.value.setDateTimeFormat(s, v), g.value[s] = v);
739
- }
740
- function xe(s, v) {
741
- a.value && a.value.mergeDateTimeFormat(s, v);
742
- }
743
- function be(s) {
744
- return a.value ? a.value.getNumberFormat(s) : {};
745
- }
746
- function de(s, v) {
747
- a.value && (a.value.setNumberFormat(s, v), O.value[s] = v);
748
- }
749
- function Re(s, v) {
750
- a.value && a.value.mergeNumberFormat(s, v);
751
- }
752
- const Pe = {
753
- get id() {
754
- return a.value ? a.value.id : -1;
755
- },
756
- locale: ae,
757
- fallbackLocale: j,
758
- messages: c,
759
- datetimeFormats: Ge,
760
- numberFormats: oe,
761
- get inheritLocale() {
762
- return a.value ? a.value.inheritLocale : i;
763
- },
764
- set inheritLocale(s) {
765
- a.value && (a.value.inheritLocale = s);
766
- },
767
- get availableLocales() {
768
- return a.value ? a.value.availableLocales : Object.keys(m.value);
769
- },
770
- get modifiers() {
771
- return a.value ? a.value.modifiers : H;
772
- },
773
- get pluralRules() {
774
- return a.value ? a.value.pluralRules : z;
775
- },
776
- get isGlobal() {
777
- return a.value ? a.value.isGlobal : !1;
778
- },
779
- get missingWarn() {
780
- return a.value ? a.value.missingWarn : L;
781
- },
782
- set missingWarn(s) {
783
- a.value && (a.value.missingWarn = s);
784
- },
785
- get fallbackWarn() {
786
- return a.value ? a.value.fallbackWarn : d;
787
- },
788
- set fallbackWarn(s) {
789
- a.value && (a.value.missingWarn = s);
790
- },
791
- get fallbackRoot() {
792
- return a.value ? a.value.fallbackRoot : C;
793
- },
794
- set fallbackRoot(s) {
795
- a.value && (a.value.fallbackRoot = s);
796
- },
797
- get fallbackFormat() {
798
- return a.value ? a.value.fallbackFormat : F;
799
- },
800
- set fallbackFormat(s) {
801
- a.value && (a.value.fallbackFormat = s);
802
- },
803
- get warnHtmlMessage() {
804
- return a.value ? a.value.warnHtmlMessage : q;
805
- },
806
- set warnHtmlMessage(s) {
807
- a.value && (a.value.warnHtmlMessage = s);
808
- },
809
- get escapeParameter() {
810
- return a.value ? a.value.escapeParameter : x;
811
- },
812
- set escapeParameter(s) {
813
- a.value && (a.value.escapeParameter = s);
814
- },
815
- t: fe,
816
- getPostTranslationHandler: ie,
817
- setPostTranslationHandler: ce,
818
- getMissingHandler: _e,
819
- setMissingHandler: me,
820
- rt: Ee,
821
- d: ve,
822
- n: ge,
823
- tm: Oe,
824
- te: S,
825
- getLocaleMessage: te,
826
- setLocaleMessage: Ne,
827
- mergeLocaleMessage: Te,
828
- getDateTimeFormat: Le,
829
- setDateTimeFormat: Ie,
830
- mergeDateTimeFormat: xe,
831
- getNumberFormat: be,
832
- setNumberFormat: de,
833
- mergeNumberFormat: Re
834
- };
835
- function Fe(s) {
836
- s.locale.value = _.value, s.fallbackLocale.value = f.value, Object.keys(m.value).forEach((v) => {
837
- s.mergeLocaleMessage(v, m.value[v]);
838
- }), Object.keys(g.value).forEach((v) => {
839
- s.mergeDateTimeFormat(v, g.value[v]);
840
- }), Object.keys(O.value).forEach((v) => {
841
- s.mergeNumberFormat(v, O.value[v]);
842
- }), s.escapeParameter = x, s.fallbackFormat = F, s.fallbackRoot = C, s.fallbackWarn = d, s.missingWarn = L, s.warnHtmlMessage = q;
843
- }
844
- return tt(() => {
845
- if (e.proxy == null || e.proxy.$i18n == null)
846
- throw w(N.NOT_AVAILABLE_COMPOSITION_IN_LEGACY);
847
- const s = a.value = e.proxy.$i18n.__composer;
848
- u === "global" ? (_.value = s.locale.value, f.value = s.fallbackLocale.value, m.value = s.messages.value, g.value = s.datetimeFormats.value, O.value = s.numberFormats.value) : o && Fe(s);
849
- }), Pe;
850
- }
851
- ut();
852
- __INTLIFY_JIT_COMPILATION__ ? ea(qa) : ea(za);
853
- $a(Qa);
854
- Ka(_a);
855
- if (process.env.NODE_ENV !== "production" || __INTLIFY_PROD_DEVTOOLS__) {
856
- const e = J();
857
- e.__INTLIFY__ = !0, Va(e.__INTLIFY_DEVTOOLS_GLOBAL_HOOK__);
858
- }
859
- process.env.NODE_ENV;
860
- export {
861
- Ot as I18nInjectionKey,
862
- st as VERSION,
863
- we as useI18n
864
- };