@ozdao/prometheus-framework 0.1.54 → 0.1.56
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/_virtual/vue.runtime.esm-bundler.cjs +1 -0
- package/dist/_virtual/vue.runtime.esm-bundler.js +6 -0
- package/dist/node_modules/@intlify/core-base/dist/core-base.esm-bundler.cjs +6 -0
- package/dist/node_modules/@intlify/core-base/dist/core-base.esm-bundler.js +887 -0
- package/dist/node_modules/@intlify/devtools-if/dist/devtools-if.esm-bundler.cjs +5 -0
- package/dist/node_modules/@intlify/devtools-if/dist/devtools-if.esm-bundler.js +12 -0
- package/dist/node_modules/@intlify/message-compiler/dist/message-compiler.esm-bundler.cjs +5 -0
- package/dist/node_modules/@intlify/message-compiler/dist/message-compiler.esm-bundler.js +54 -0
- package/dist/node_modules/@intlify/shared/dist/shared.esm-bundler.cjs +6 -0
- package/dist/node_modules/@intlify/shared/dist/shared.esm-bundler.js +109 -0
- package/dist/node_modules/@intlify/vue-devtools/dist/vue-devtools.esm-bundler.cjs +5 -0
- package/dist/node_modules/@intlify/vue-devtools/dist/vue-devtools.esm-bundler.js +19 -0
- package/dist/node_modules/vue-i18n/dist/vue-i18n.runtime.esm-bundler.cjs +5 -0
- package/dist/node_modules/vue-i18n/dist/vue-i18n.runtime.esm-bundler.js +1111 -0
- package/dist/node_modules/vue-router/dist/vue-router.cjs +5 -0
- package/dist/node_modules/vue-router/dist/vue-router.js +37 -0
- package/dist/prometheus-framework/node_modules/@vue/reactivity/dist/reactivity.esm-bundler.cjs +1 -0
- package/dist/prometheus-framework/node_modules/@vue/reactivity/dist/reactivity.esm-bundler.js +700 -0
- package/dist/prometheus-framework/node_modules/@vue/runtime-core/dist/runtime-core.esm-bundler.cjs +14 -0
- package/dist/prometheus-framework/node_modules/@vue/runtime-core/dist/runtime-core.esm-bundler.js +3863 -0
- package/dist/prometheus-framework/node_modules/@vue/runtime-dom/dist/runtime-dom.esm-bundler.cjs +1 -0
- package/dist/prometheus-framework/node_modules/@vue/runtime-dom/dist/runtime-dom.esm-bundler.js +1023 -0
- package/dist/prometheus-framework/node_modules/@vue/shared/dist/shared.esm-bundler.cjs +1 -0
- package/dist/prometheus-framework/node_modules/@vue/shared/dist/shared.esm-bundler.js +176 -0
- package/dist/prometheus-framework/node_modules/vue/dist/vue.runtime.esm-bundler.cjs +1 -0
- package/dist/prometheus-framework/node_modules/vue/dist/vue.runtime.esm-bundler.js +163 -0
- package/dist/prometheus-framework/src/components/Popup/Popup.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/Popup/Popup.vue.js +72 -2
- package/dist/prometheus-framework/src/components/Popup/Popup.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/components/Popup/Popup.vue2.js +2 -72
- package/dist/prometheus-framework/src/components/Select/Select.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/Select/Select.vue.js +78 -2
- package/dist/prometheus-framework/src/components/Select/Select.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/components/Select/Select.vue2.js +2 -78
- package/dist/prometheus-framework/src/modules/auth/store/auth.cjs +1 -1
- package/dist/prometheus-framework/src/modules/auth/store/auth.js +17 -18
- package/dist/prometheus-framework/src/modules/community/components/layouts/Community.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/community/components/layouts/Community.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/community/components/pages/CreateBlogPost.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/community/components/pages/CreateBlogPost.vue.js +2 -2
- package/dist/prometheus-framework/src/modules/constructor/components/elements/Textarea.vue.cjs +4 -1
- package/dist/prometheus-framework/src/modules/constructor/components/elements/Textarea.vue.js +61 -2
- package/dist/prometheus-framework/src/modules/constructor/components/elements/Textarea.vue2.cjs +1 -4
- package/dist/prometheus-framework/src/modules/constructor/components/elements/Textarea.vue2.js +2 -61
- package/dist/prometheus-framework/src/modules/constructor/components/sections/Constructor.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/constructor/components/sections/Constructor.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/events/components/layouts/layoutEvents.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/events/components/layouts/layoutEvents.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/events/components/pages/EditEvent.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/events/components/pages/EditEvent.vue.js +2 -2
- package/dist/prometheus-framework/src/modules/gallery/components/sections/BackofficeGallery.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/gallery/components/sections/BackofficeGallery.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/gallery/components/sections/GalleryWithCategories.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/gallery/components/sections/GalleryWithCategories.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/blocks/DepartmentMemberModify.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/blocks/DepartmentMemberModify.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/pages/DepartmentEdit.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/pages/DepartmentEdit.vue.js +2 -2
- package/dist/prometheus-framework/src/modules/organizations/components/pages/Organization.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/pages/Organization.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/pages/OrganizationEdit.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/pages/OrganizationEdit.vue.js +2 -2
- package/dist/prometheus-framework/src/modules/organizations/components/sections/Documents.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/sections/Documents.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/sections/MembersAdd.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/sections/MembersAdd.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/sections/Organizations.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/sections/Organizations.vue.js +2 -2
- package/dist/prometheus-framework/src/modules/products/components/blocks/CardPosition.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/blocks/CardPosition.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/products/components/blocks/ImagesThumbnails.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/blocks/ImagesThumbnails.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/products/components/pages/LeftoverAdd.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/pages/LeftoverAdd.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/products/components/pages/ProductEdit.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/pages/ProductEdit.vue.js +2 -2
- package/dist/prometheus-framework/src/modules/products/components/sections/EditProductInfo.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/sections/EditProductInfo.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/reports/components/sections/FormReport.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/reports/components/sections/FormReport.vue.js +2 -2
- package/dist/style.css +1 -1
- package/package.json +3 -3
- package/src/modules/auth/store/auth.js +4 -7
@@ -0,0 +1,5 @@
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});/*!
|
2
|
+
* devtools-if v9.2.2
|
3
|
+
* (c) 2022 kazuya kawaguchi
|
4
|
+
* Released under the MIT License.
|
5
|
+
*/const t={I18nInit:"i18n:init",FunctionTranslate:"function:translate"};exports.IntlifyDevToolsHooks=t;
|
@@ -0,0 +1,5 @@
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const C=require("../../shared/dist/shared.esm-bundler.cjs");/*!
|
2
|
+
* message-compiler v9.2.2
|
3
|
+
* (c) 2022 kazuya kawaguchi
|
4
|
+
* Released under the MIT License.
|
5
|
+
*/const E={EXPECTED_TOKEN:1,INVALID_TOKEN_IN_PLACEHOLDER:2,UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER:3,UNKNOWN_ESCAPE_SEQUENCE:4,INVALID_UNICODE_ESCAPE_SEQUENCE:5,UNBALANCED_CLOSING_BRACE:6,UNTERMINATED_CLOSING_BRACE:7,EMPTY_PLACEHOLDER:8,NOT_ALLOW_NEST_PLACEHOLDER:9,INVALID_LINKED_FORMAT:10,MUST_HAVE_MESSAGES_IN_PLURAL:11,UNEXPECTED_EMPTY_LINKED_MODIFIER:12,UNEXPECTED_EMPTY_LINKED_KEY:13,UNEXPECTED_LEXICAL_ANALYSIS:14,__EXTEND_POINT__:15},n={[E.EXPECTED_TOKEN]:"Expected token: '{0}'",[E.INVALID_TOKEN_IN_PLACEHOLDER]:"Invalid token in placeholder: '{0}'",[E.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER]:"Unterminated single quote in placeholder",[E.UNKNOWN_ESCAPE_SEQUENCE]:"Unknown escape sequence: \\{0}",[E.INVALID_UNICODE_ESCAPE_SEQUENCE]:"Invalid unicode escape sequence: {0}",[E.UNBALANCED_CLOSING_BRACE]:"Unbalanced closing brace",[E.UNTERMINATED_CLOSING_BRACE]:"Unterminated closing brace",[E.EMPTY_PLACEHOLDER]:"Empty placeholder",[E.NOT_ALLOW_NEST_PLACEHOLDER]:"Not allowed nest placeholder",[E.INVALID_LINKED_FORMAT]:"Invalid linked format",[E.MUST_HAVE_MESSAGES_IN_PLURAL]:"Plural must have messages",[E.UNEXPECTED_EMPTY_LINKED_MODIFIER]:"Unexpected empty linked modifier",[E.UNEXPECTED_EMPTY_LINKED_KEY]:"Unexpected empty linked key",[E.UNEXPECTED_LEXICAL_ANALYSIS]:"Unexpected lexical analysis in token: '{0}'"};function t(_,N,r={}){const{domain:L,messages:I,args:o}=r,A=process.env.NODE_ENV!=="production"?C.format((I||n)[_]||"",...o||[]):_,e=new SyntaxError(String(A));return e.code=_,N&&(e.location=N),e.domain=L,e}exports.CompileErrorCodes=E;exports.createCompileError=t;exports.errorMessages=n;
|
@@ -0,0 +1,54 @@
|
|
1
|
+
import { format as D } from "../../shared/dist/shared.esm-bundler.js";
|
2
|
+
/*!
|
3
|
+
* message-compiler v9.2.2
|
4
|
+
* (c) 2022 kazuya kawaguchi
|
5
|
+
* Released under the MIT License.
|
6
|
+
*/
|
7
|
+
const E = {
|
8
|
+
// tokenizer error codes
|
9
|
+
EXPECTED_TOKEN: 1,
|
10
|
+
INVALID_TOKEN_IN_PLACEHOLDER: 2,
|
11
|
+
UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER: 3,
|
12
|
+
UNKNOWN_ESCAPE_SEQUENCE: 4,
|
13
|
+
INVALID_UNICODE_ESCAPE_SEQUENCE: 5,
|
14
|
+
UNBALANCED_CLOSING_BRACE: 6,
|
15
|
+
UNTERMINATED_CLOSING_BRACE: 7,
|
16
|
+
EMPTY_PLACEHOLDER: 8,
|
17
|
+
NOT_ALLOW_NEST_PLACEHOLDER: 9,
|
18
|
+
INVALID_LINKED_FORMAT: 10,
|
19
|
+
// parser error codes
|
20
|
+
MUST_HAVE_MESSAGES_IN_PLURAL: 11,
|
21
|
+
UNEXPECTED_EMPTY_LINKED_MODIFIER: 12,
|
22
|
+
UNEXPECTED_EMPTY_LINKED_KEY: 13,
|
23
|
+
UNEXPECTED_LEXICAL_ANALYSIS: 14,
|
24
|
+
// Special value for higher-order compilers to pick up the last code
|
25
|
+
// to avoid collision of error codes. This should always be kept as the last
|
26
|
+
// item.
|
27
|
+
__EXTEND_POINT__: 15
|
28
|
+
}, o = {
|
29
|
+
// tokenizer error messages
|
30
|
+
[E.EXPECTED_TOKEN]: "Expected token: '{0}'",
|
31
|
+
[E.INVALID_TOKEN_IN_PLACEHOLDER]: "Invalid token in placeholder: '{0}'",
|
32
|
+
[E.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER]: "Unterminated single quote in placeholder",
|
33
|
+
[E.UNKNOWN_ESCAPE_SEQUENCE]: "Unknown escape sequence: \\{0}",
|
34
|
+
[E.INVALID_UNICODE_ESCAPE_SEQUENCE]: "Invalid unicode escape sequence: {0}",
|
35
|
+
[E.UNBALANCED_CLOSING_BRACE]: "Unbalanced closing brace",
|
36
|
+
[E.UNTERMINATED_CLOSING_BRACE]: "Unterminated closing brace",
|
37
|
+
[E.EMPTY_PLACEHOLDER]: "Empty placeholder",
|
38
|
+
[E.NOT_ALLOW_NEST_PLACEHOLDER]: "Not allowed nest placeholder",
|
39
|
+
[E.INVALID_LINKED_FORMAT]: "Invalid linked format",
|
40
|
+
// parser error messages
|
41
|
+
[E.MUST_HAVE_MESSAGES_IN_PLURAL]: "Plural must have messages",
|
42
|
+
[E.UNEXPECTED_EMPTY_LINKED_MODIFIER]: "Unexpected empty linked modifier",
|
43
|
+
[E.UNEXPECTED_EMPTY_LINKED_KEY]: "Unexpected empty linked key",
|
44
|
+
[E.UNEXPECTED_LEXICAL_ANALYSIS]: "Unexpected lexical analysis in token: '{0}'"
|
45
|
+
};
|
46
|
+
function r(e, N, L = {}) {
|
47
|
+
const { domain: n, messages: I, args: A } = L, C = process.env.NODE_ENV !== "production" ? D((I || o)[e] || "", ...A || []) : e, _ = new SyntaxError(String(C));
|
48
|
+
return _.code = e, N && (_.location = N), _.domain = n, _;
|
49
|
+
}
|
50
|
+
export {
|
51
|
+
E as CompileErrorCodes,
|
52
|
+
r as createCompileError,
|
53
|
+
o as errorMessages
|
54
|
+
};
|
@@ -0,0 +1,6 @@
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});/*!
|
2
|
+
* shared v9.2.2
|
3
|
+
* (c) 2022 kazuya kawaguchi
|
4
|
+
* Released under the MIT License.
|
5
|
+
*/const b=typeof window<"u";exports.mark=void 0;exports.measure=void 0;if(process.env.NODE_ENV!=="production"){const e=b&&window.performance;e&&e.mark&&e.measure&&e.clearMarks&&e.clearMeasures&&(exports.mark=t=>e.mark(t),exports.measure=(t,n,o)=>{e.measure(t,n,o),e.clearMarks(n),e.clearMarks(o)})}const w=/\{([0-9a-zA-Z]+)\}/g;function j(e,...t){return t.length===1&&S(t[0])&&(t=t[0]),(!t||!t.hasOwnProperty)&&(t={}),e.replace(w,(n,o)=>t.hasOwnProperty(o)?t[o]:"")}const k=typeof Symbol=="function"&&typeof Symbol.toStringTag=="symbol",E=e=>k?Symbol(e):e,M=(e,t,n)=>h({l:e,k:t,s:n}),h=e=>JSON.stringify(e).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029").replace(/\u0027/g,"\\u0027"),N=e=>typeof e=="number"&&isFinite(e),T=e=>p(e)==="[object Date]",A=e=>p(e)==="[object RegExp]",F=e=>g(e)&&Object.keys(e).length===0;function P(e,t){typeof console<"u"&&(console.warn("[intlify] "+e),t&&console.warn(t.stack))}const x=Object.assign;let y;const D=()=>y||(y=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function R(e){return e.replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'")}const B=Object.prototype.hasOwnProperty;function C(e,t){return B.call(e,t)}const d=Array.isArray,G=e=>typeof e=="function",J=e=>typeof e=="string",_=e=>typeof e=="boolean",S=e=>e!==null&&typeof e=="object",f=Object.prototype.toString,p=e=>f.call(e),g=e=>p(e)==="[object Object]",$=e=>e==null?"":d(e)||g(e)&&e.toString===f?JSON.stringify(e,null,2):String(e),m=2;function H(e,t=0,n=e.length){const o=e.split(/\r?\n/);let i=0;const c=[];for(let r=0;r<o.length;r++)if(i+=o[r].length+1,i>=t){for(let s=r-m;s<=r+m||n>i;s++){if(s<0||s>=o.length)continue;const u=s+1;c.push(`${u}${" ".repeat(3-String(u).length)}| ${o[s]}`);const a=o[s].length;if(s===r){const l=t-(i-a)+1,O=Math.max(1,n>i?a-l:n-t);c.push(" | "+" ".repeat(l)+"^".repeat(O))}else if(s>r){if(n>i){const l=Math.max(Math.min(n-i,a),1);c.push(" | "+"^".repeat(l))}i+=a+1}}break}return c.join(`
|
6
|
+
`)}function K(){const e=new Map;return{events:e,on(n,o){const i=e.get(n);i&&i.push(o)||e.set(n,[o])},off(n,o){const i=e.get(n);i&&i.splice(i.indexOf(o)>>>0,1)},emit(n,o){(e.get(n)||[]).slice().map(i=>i(o)),(e.get("*")||[]).slice().map(i=>i(n,o))}}}exports.assign=x;exports.createEmitter=K;exports.escapeHtml=R;exports.format=j;exports.friendlyJSONstringify=h;exports.generateCodeFrame=H;exports.generateFormatCacheKey=M;exports.getGlobalThis=D;exports.hasOwn=C;exports.inBrowser=b;exports.isArray=d;exports.isBoolean=_;exports.isDate=T;exports.isEmptyObject=F;exports.isFunction=G;exports.isNumber=N;exports.isObject=S;exports.isPlainObject=g;exports.isRegExp=A;exports.isString=J;exports.makeSymbol=E;exports.objectToString=f;exports.toDisplayString=$;exports.toTypeString=p;exports.warn=P;
|
@@ -0,0 +1,109 @@
|
|
1
|
+
/*!
|
2
|
+
* shared v9.2.2
|
3
|
+
* (c) 2022 kazuya kawaguchi
|
4
|
+
* Released under the MIT License.
|
5
|
+
*/
|
6
|
+
const b = typeof window < "u";
|
7
|
+
let d, w;
|
8
|
+
if (process.env.NODE_ENV !== "production") {
|
9
|
+
const e = b && window.performance;
|
10
|
+
e && e.mark && e.measure && e.clearMarks && e.clearMeasures && (d = (t) => e.mark(t), w = (t, n, o) => {
|
11
|
+
e.measure(t, n, o), e.clearMarks(n), e.clearMarks(o);
|
12
|
+
});
|
13
|
+
}
|
14
|
+
const O = /\{([0-9a-zA-Z]+)\}/g;
|
15
|
+
function N(e, ...t) {
|
16
|
+
return t.length === 1 && M(t[0]) && (t = t[0]), (!t || !t.hasOwnProperty) && (t = {}), e.replace(O, (n, o) => t.hasOwnProperty(o) ? t[o] : "");
|
17
|
+
}
|
18
|
+
const S = typeof Symbol == "function" && typeof Symbol.toStringTag == "symbol", x = (e) => S ? Symbol(e) : e, A = (e, t, n) => j({ l: e, k: t, s: n }), j = (e) => JSON.stringify(e).replace(/\u2028/g, "\\u2028").replace(/\u2029/g, "\\u2029").replace(/\u0027/g, "\\u0027"), P = (e) => typeof e == "number" && isFinite(e), R = (e) => f(e) === "[object Date]", T = (e) => f(e) === "[object RegExp]", D = (e) => h(e) && Object.keys(e).length === 0;
|
19
|
+
function F(e, t) {
|
20
|
+
typeof console < "u" && (console.warn("[intlify] " + e), t && console.warn(t.stack));
|
21
|
+
}
|
22
|
+
const G = Object.assign;
|
23
|
+
let u;
|
24
|
+
const J = () => u || (u = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : typeof global < "u" ? global : {});
|
25
|
+
function _(e) {
|
26
|
+
return e.replace(/</g, "<").replace(/>/g, ">").replace(/"/g, """).replace(/'/g, "'");
|
27
|
+
}
|
28
|
+
const k = Object.prototype.hasOwnProperty;
|
29
|
+
function $(e, t) {
|
30
|
+
return k.call(e, t);
|
31
|
+
}
|
32
|
+
const E = Array.isArray, B = (e) => typeof e == "function", C = (e) => typeof e == "string", q = (e) => typeof e == "boolean", M = (e) => (
|
33
|
+
// eslint-disable-line
|
34
|
+
e !== null && typeof e == "object"
|
35
|
+
), y = Object.prototype.toString, f = (e) => y.call(e), h = (e) => f(e) === "[object Object]", z = (e) => e == null ? "" : E(e) || h(e) && e.toString === y ? JSON.stringify(e, null, 2) : String(e), g = 2;
|
36
|
+
function H(e, t = 0, n = e.length) {
|
37
|
+
const o = e.split(/\r?\n/);
|
38
|
+
let s = 0;
|
39
|
+
const r = [];
|
40
|
+
for (let c = 0; c < o.length; c++)
|
41
|
+
if (s += o[c].length + 1, s >= t) {
|
42
|
+
for (let i = c - g; i <= c + g || n > s; i++) {
|
43
|
+
if (i < 0 || i >= o.length)
|
44
|
+
continue;
|
45
|
+
const p = i + 1;
|
46
|
+
r.push(`${p}${" ".repeat(3 - String(p).length)}| ${o[i]}`);
|
47
|
+
const l = o[i].length;
|
48
|
+
if (i === c) {
|
49
|
+
const a = t - (s - l) + 1, m = Math.max(1, n > s ? l - a : n - t);
|
50
|
+
r.push(" | " + " ".repeat(a) + "^".repeat(m));
|
51
|
+
} else if (i > c) {
|
52
|
+
if (n > s) {
|
53
|
+
const a = Math.max(Math.min(n - s, l), 1);
|
54
|
+
r.push(" | " + "^".repeat(a));
|
55
|
+
}
|
56
|
+
s += l + 1;
|
57
|
+
}
|
58
|
+
}
|
59
|
+
break;
|
60
|
+
}
|
61
|
+
return r.join(`
|
62
|
+
`);
|
63
|
+
}
|
64
|
+
function K() {
|
65
|
+
const e = /* @__PURE__ */ new Map();
|
66
|
+
return {
|
67
|
+
events: e,
|
68
|
+
on(n, o) {
|
69
|
+
const s = e.get(n);
|
70
|
+
s && s.push(o) || e.set(n, [o]);
|
71
|
+
},
|
72
|
+
off(n, o) {
|
73
|
+
const s = e.get(n);
|
74
|
+
s && s.splice(s.indexOf(o) >>> 0, 1);
|
75
|
+
},
|
76
|
+
emit(n, o) {
|
77
|
+
(e.get(n) || []).slice().map((s) => s(o)), (e.get("*") || []).slice().map((s) => s(n, o));
|
78
|
+
}
|
79
|
+
};
|
80
|
+
}
|
81
|
+
export {
|
82
|
+
G as assign,
|
83
|
+
K as createEmitter,
|
84
|
+
_ as escapeHtml,
|
85
|
+
N as format,
|
86
|
+
j as friendlyJSONstringify,
|
87
|
+
H as generateCodeFrame,
|
88
|
+
A as generateFormatCacheKey,
|
89
|
+
J as getGlobalThis,
|
90
|
+
$ as hasOwn,
|
91
|
+
b as inBrowser,
|
92
|
+
E as isArray,
|
93
|
+
q as isBoolean,
|
94
|
+
R as isDate,
|
95
|
+
D as isEmptyObject,
|
96
|
+
B as isFunction,
|
97
|
+
P as isNumber,
|
98
|
+
M as isObject,
|
99
|
+
h as isPlainObject,
|
100
|
+
T as isRegExp,
|
101
|
+
C as isString,
|
102
|
+
x as makeSymbol,
|
103
|
+
d as mark,
|
104
|
+
w as measure,
|
105
|
+
y as objectToString,
|
106
|
+
z as toDisplayString,
|
107
|
+
f as toTypeString,
|
108
|
+
F as warn
|
109
|
+
};
|
@@ -0,0 +1,5 @@
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});/*!
|
2
|
+
* vue-devtools v9.2.2
|
3
|
+
* (c) 2022 kazuya kawaguchi
|
4
|
+
* Released under the MIT License.
|
5
|
+
*/const e={"vue-devtools-plugin-vue-i18n":"Vue I18n devtools","vue-i18n-resource-inspector":"I18n Resources","vue-i18n-timeline":"Vue I18n"},o={"vue-i18n-resource-inspector":"Search for scopes ..."},s={"vue-i18n-timeline":16764185};exports.VueDevToolsLabels=e;exports.VueDevToolsPlaceholders=o;exports.VueDevToolsTimelineColors=s;
|
@@ -0,0 +1,19 @@
|
|
1
|
+
/*!
|
2
|
+
* vue-devtools v9.2.2
|
3
|
+
* (c) 2022 kazuya kawaguchi
|
4
|
+
* Released under the MIT License.
|
5
|
+
*/
|
6
|
+
const e = {
|
7
|
+
"vue-devtools-plugin-vue-i18n": "Vue I18n devtools",
|
8
|
+
"vue-i18n-resource-inspector": "I18n Resources",
|
9
|
+
"vue-i18n-timeline": "Vue I18n"
|
10
|
+
}, o = {
|
11
|
+
"vue-i18n-resource-inspector": "Search for scopes ..."
|
12
|
+
}, s = {
|
13
|
+
"vue-i18n-timeline": 16764185
|
14
|
+
};
|
15
|
+
export {
|
16
|
+
e as VueDevToolsLabels,
|
17
|
+
o as VueDevToolsPlaceholders,
|
18
|
+
s as VueDevToolsTimelineColors
|
19
|
+
};
|
@@ -0,0 +1,5 @@
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("../../@intlify/shared/dist/shared.esm-bundler.cjs"),f=require("../../@intlify/core-base/dist/core-base.esm-bundler.cjs");require("../../../prometheus-framework/node_modules/vue/dist/vue.runtime.esm-bundler.cjs");const st=require("../../@vue/devtools-api/lib/esm/index.cjs"),U=require("../../@intlify/vue-devtools/dist/vue-devtools.esm-bundler.cjs"),O=require("../../../prometheus-framework/node_modules/@vue/runtime-core/dist/runtime-core.esm-bundler.cjs"),A=require("../../../prometheus-framework/node_modules/@vue/reactivity/dist/reactivity.esm-bundler.cjs"),Ee=require("../../@intlify/message-compiler/dist/message-compiler.esm-bundler.cjs");/*!
|
2
|
+
* vue-i18n v9.2.2
|
3
|
+
* (c) 2022 kazuya kawaguchi
|
4
|
+
* Released under the MIT License.
|
5
|
+
*/const de="9.2.2";function it(){let e=!1;typeof __INTLIFY_PROD_DEVTOOLS__!="boolean"&&(r.getGlobalThis().__INTLIFY_PROD_DEVTOOLS__=!1),process.env.NODE_ENV!=="production"&&e&&console.warn("You are running the esm-bundler build of vue-i18n. It is recommended to configure your bundler to explicitly replace feature flag globals with boolean literals to get proper tree-shaking in the final bundle.")}let be=f.CoreWarnCodes.__EXTEND_POINT__;const V=()=>++be,P={FALLBACK_TO_ROOT:be,NOT_SUPPORTED_PRESERVE:V(),NOT_SUPPORTED_FORMATTER:V(),NOT_SUPPORTED_PRESERVE_DIRECTIVE:V(),NOT_SUPPORTED_GET_CHOICE_INDEX:V(),COMPONENT_NAME_LEGACY_COMPATIBLE:V(),NOT_FOUND_PARENT_SCOPE:V()},ct={[P.FALLBACK_TO_ROOT]:"Fall back to {type} '{key}' with root locale.",[P.NOT_SUPPORTED_PRESERVE]:"Not supported 'preserve'.",[P.NOT_SUPPORTED_FORMATTER]:"Not supported 'formatter'.",[P.NOT_SUPPORTED_PRESERVE_DIRECTIVE]:"Not supported 'preserveDirectiveContent'.",[P.NOT_SUPPORTED_GET_CHOICE_INDEX]:"Not supported 'getChoiceIndex'.",[P.COMPONENT_NAME_LEGACY_COMPATIBLE]:"Component name legacy compatible: '{name}' -> 'i18n'",[P.NOT_FOUND_PARENT_SCOPE]:"Not found parent scope. use the global scope."};function G(e,...t){return r.format(ct[e],...t)}let pe=Ee.CompileErrorCodes.__EXTEND_POINT__;const I=()=>++pe,E={UNEXPECTED_RETURN_TYPE:pe,INVALID_ARGUMENT:I(),MUST_BE_CALL_SETUP_TOP:I(),NOT_INSLALLED:I(),NOT_AVAILABLE_IN_LEGACY_MODE:I(),REQUIRED_VALUE:I(),INVALID_VALUE:I(),CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN:I(),NOT_INSLALLED_WITH_PROVIDE:I(),UNEXPECTED_ERROR:I(),NOT_COMPATIBLE_LEGACY_VUE_I18N:I(),BRIDGE_SUPPORT_VUE_2_ONLY:I(),MUST_DEFINE_I18N_OPTION_IN_ALLOW_COMPOSITION:I(),NOT_AVAILABLE_COMPOSITION_IN_LEGACY:I(),__EXTEND_POINT__:I()};function S(e,...t){return Ee.createCompileError(e,null,process.env.NODE_ENV!=="production"?{messages:ut,args:t}:void 0)}const ut={[E.UNEXPECTED_RETURN_TYPE]:"Unexpected return type in composer",[E.INVALID_ARGUMENT]:"Invalid argument",[E.MUST_BE_CALL_SETUP_TOP]:"Must be called at the top of a `setup` function",[E.NOT_INSLALLED]:"Need to install with `app.use` function",[E.UNEXPECTED_ERROR]:"Unexpected error",[E.NOT_AVAILABLE_IN_LEGACY_MODE]:"Not available in legacy mode",[E.REQUIRED_VALUE]:"Required in value: {0}",[E.INVALID_VALUE]:"Invalid value",[E.CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN]:"Cannot setup vue-devtools plugin",[E.NOT_INSLALLED_WITH_PROVIDE]:"Need to install with `provide` function",[E.NOT_COMPATIBLE_LEGACY_VUE_I18N]:"Not compatible legacy VueI18n.",[E.BRIDGE_SUPPORT_VUE_2_ONLY]:"vue-i18n-bridge support Vue 2.x only",[E.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",[E.NOT_AVAILABLE_COMPOSITION_IN_LEGACY]:"Not available Compostion API in Legacy API mode. Please make sure that the legacy API mode is working properly"},X=r.makeSymbol("__transrateVNode"),q=r.makeSymbol("__datetimeParts"),K=r.makeSymbol("__numberParts"),w=r.makeSymbol("__enableEmitter"),J=r.makeSymbol("__disableEmitter"),_t=r.makeSymbol("__setPluralRules");r.makeSymbol("__intlifyMeta");const mt=r.makeSymbol("__injectWithOption");function Q(e){if(!r.isObject(e))return e;for(const t in e)if(r.hasOwn(e,t))if(!t.includes("."))r.isObject(e[t])&&Q(e[t]);else{const n=t.split("."),s=n.length-1;let l=e;for(let c=0;c<s;c++)n[c]in l||(l[n[c]]={}),l=l[n[c]];l[n[s]]=e[t],delete e[t],r.isObject(l[n[s]])&&Q(l[n[s]])}return e}function Oe(e,t){const{messages:n,__i18n:s,messageResolver:l,flatJson:c}=t,o=r.isPlainObject(n)?n:r.isArray(s)?{}:{[e]:{}};if(r.isArray(s)&&s.forEach(u=>{if("locale"in u&&"resource"in u){const{locale:m,resource:g}=u;m?(o[m]=o[m]||{},M(g,o[m])):M(g,o)}else r.isString(u)&&M(JSON.parse(u),o)}),l==null&&c)for(const u in o)r.hasOwn(o,u)&&Q(o[u]);return o}const W=e=>!r.isObject(e)||r.isArray(e);function M(e,t){if(W(e)||W(t))throw S(E.INVALID_VALUE);for(const n in e)r.hasOwn(e,n)&&(W(e[n])||W(t[n])?t[n]=e[n]:M(e[n],t[n]))}function Ne(e){return e.type}function ft(e,t,n){let s=r.isObject(t.messages)?t.messages:{};"__i18nGlobal"in n&&(s=Oe(e.locale.value,{messages:s,__i18n:n.__i18nGlobal}));const l=Object.keys(s);l.length&&l.forEach(c=>{e.mergeLocaleMessage(c,s[c])});{if(r.isObject(t.datetimeFormats)){const c=Object.keys(t.datetimeFormats);c.length&&c.forEach(o=>{e.mergeDateTimeFormat(o,t.datetimeFormats[o])})}if(r.isObject(t.numberFormats)){const c=Object.keys(t.numberFormats);c.length&&c.forEach(o=>{e.mergeNumberFormat(o,t.numberFormats[o])})}}}function ie(e){return O.createVNode(O.Text,null,e,0)}const ce="__INTLIFY_META__";let ue=0;function _e(e){return(t,n,s,l)=>e(n,s,O.getCurrentInstance()||void 0,l)}const gt=()=>{const e=O.getCurrentInstance();let t=null;return e&&(t=Ne(e)[ce])?{[ce]:t}:null};function ve(e={},t){const{__root:n}=e,s=n===void 0;let l=r.isBoolean(e.inheritLocale)?e.inheritLocale:!0;const c=A.ref(n&&l?n.locale.value:r.isString(e.locale)?e.locale:f.DEFAULT_LOCALE),o=A.ref(n&&l?n.fallbackLocale.value:r.isString(e.fallbackLocale)||r.isArray(e.fallbackLocale)||r.isPlainObject(e.fallbackLocale)||e.fallbackLocale===!1?e.fallbackLocale:c.value),u=A.ref(Oe(c.value,e)),m=A.ref(r.isPlainObject(e.datetimeFormats)?e.datetimeFormats:{[c.value]:{}}),g=A.ref(r.isPlainObject(e.numberFormats)?e.numberFormats:{[c.value]:{}});let N=n?n.missingWarn:r.isBoolean(e.missingWarn)||r.isRegExp(e.missingWarn)?e.missingWarn:!0,b=n?n.fallbackWarn:r.isBoolean(e.fallbackWarn)||r.isRegExp(e.fallbackWarn)?e.fallbackWarn:!0,d=n?n.fallbackRoot:r.isBoolean(e.fallbackRoot)?e.fallbackRoot:!0,L=!!e.fallbackFormat,C=r.isFunction(e.missing)?e.missing:null,R=r.isFunction(e.missing)?_e(e.missing):null,y=r.isFunction(e.postTranslation)?e.postTranslation:null,h=n?n.warnHtmlMessage:r.isBoolean(e.warnHtmlMessage)?e.warnHtmlMessage:!0,H=!!e.escapeParameter;const re=n?n.modifiers:r.isPlainObject(e.modifiers)?e.modifiers:{};let j=e.pluralRules||n&&n.pluralRules,_;_=(()=>{s&&f.setFallbackContext(null);const a={version:de,locale:c.value,fallbackLocale:o.value,messages:u.value,modifiers:re,pluralRules:j,missing:R===null?void 0:R,missingWarn:N,fallbackWarn:b,fallbackFormat:L,unresolving:!0,postTranslation:y===null?void 0:y,warnHtmlMessage:h,escapeParameter:H,messageResolver:e.messageResolver,__meta:{framework:"vue"}};a.datetimeFormats=m.value,a.numberFormats=g.value,a.__datetimeFormatters=r.isPlainObject(_)?_.__datetimeFormatters:void 0,a.__numberFormatters=r.isPlainObject(_)?_.__numberFormatters:void 0,process.env.NODE_ENV!=="production"&&(a.__v_emitter=r.isPlainObject(_)?_.__v_emitter:void 0);const i=f.createCoreContext(a);return s&&f.setFallbackContext(i),i})(),f.updateFallbackLocale(_,c.value,o.value);function Ce(){return[c.value,o.value,u.value,m.value,g.value]}const De=O.computed({get:()=>c.value,set:a=>{c.value=a,_.locale=c.value}}),Ae=O.computed({get:()=>o.value,set:a=>{o.value=a,_.fallbackLocale=o.value,f.updateFallbackLocale(_,c.value,a)}}),he=O.computed(()=>u.value),ke=O.computed(()=>m.value),Fe=O.computed(()=>g.value);function Ve(){return r.isFunction(y)?y:null}function Ue(a){y=a,_.postTranslation=a}function Me(){return C}function we(a){a!==null&&(R=_e(a)),C=a,_.missing=R}function je(a,i){return a!=="translate"||!i.resolvedMessage}const k=(a,i,T,v,$,B)=>{Ce();let F;if(process.env.NODE_ENV!=="production"||__INTLIFY_PROD_DEVTOOLS__)try{f.setAdditionalMeta(gt()),s||(_.fallbackContext=n?f.getFallbackContext():void 0),F=a(_)}finally{f.setAdditionalMeta(null),s||(_.fallbackContext=void 0)}else F=a(_);if(r.isNumber(F)&&F===f.NOT_REOSLVED){const[D,lt]=i();if(process.env.NODE_ENV!=="production"&&n&&r.isString(D)&&je(T,lt)&&(d&&(f.isTranslateFallbackWarn(b,D)||f.isTranslateMissingWarn(N,D))&&r.warn(G(P.FALLBACK_TO_ROOT,{key:D,type:T})),process.env.NODE_ENV!=="production")){const{__v_emitter:se}=_;se&&d&&se.emit("fallback",{type:T,key:D,to:"global",groupId:`${T}:${D}`})}return n&&d?v(n):$(D)}else{if(B(F))return F;throw S(E.UNEXPECTED_RETURN_TYPE)}};function oe(...a){return k(i=>Reflect.apply(f.translate,null,[i,...a]),()=>f.parseTranslateArgs(...a),"translate",i=>Reflect.apply(i.t,i,[...a]),i=>i,i=>r.isString(i))}function Be(...a){const[i,T,v]=a;if(v&&!r.isObject(v))throw S(E.INVALID_ARGUMENT);return oe(i,T,r.assign({resolvedMessage:!0},v||{}))}function We(...a){return k(i=>Reflect.apply(f.datetime,null,[i,...a]),()=>f.parseDateTimeArgs(...a),"datetime format",i=>Reflect.apply(i.d,i,[...a]),()=>f.MISSING_RESOLVE_VALUE,i=>r.isString(i))}function xe(...a){return k(i=>Reflect.apply(f.number,null,[i,...a]),()=>f.parseNumberArgs(...a),"number format",i=>Reflect.apply(i.n,i,[...a]),()=>f.MISSING_RESOLVE_VALUE,i=>r.isString(i))}function Ge(a){return a.map(i=>r.isString(i)||r.isNumber(i)||r.isBoolean(i)?ie(String(i)):i)}const Ye={normalize:Ge,interpolate:a=>a,type:"vnode"};function He(...a){return k(i=>{let T;const v=i;try{v.processor=Ye,T=Reflect.apply(f.translate,null,[v,...a])}finally{v.processor=null}return T},()=>f.parseTranslateArgs(...a),"translate",i=>i[X](...a),i=>[ie(i)],i=>r.isArray(i))}function $e(...a){return k(i=>Reflect.apply(f.number,null,[i,...a]),()=>f.parseNumberArgs(...a),"number format",i=>i[K](...a),()=>[],i=>r.isString(i)||r.isArray(i))}function Xe(...a){return k(i=>Reflect.apply(f.datetime,null,[i,...a]),()=>f.parseDateTimeArgs(...a),"datetime format",i=>i[q](...a),()=>[],i=>r.isString(i)||r.isArray(i))}function qe(a){j=a,_.pluralRules=j}function Ke(a,i){const T=r.isString(i)?i:c.value,v=le(T);return _.messageResolver(v,a)!==null}function Je(a){let i=null;const T=f.fallbackWithLocaleChain(_,o.value,c.value);for(let v=0;v<T.length;v++){const $=u.value[T[v]]||{},B=_.messageResolver($,a);if(B!=null){i=B;break}}return i}function Qe(a){const i=Je(a);return i??(n?n.tm(a)||{}:{})}function le(a){return u.value[a]||{}}function ze(a,i){u.value[a]=i,_.messages=u.value}function Ze(a,i){u.value[a]=u.value[a]||{},M(i,u.value[a]),_.messages=u.value}function et(a){return m.value[a]||{}}function tt(a,i){m.value[a]=i,_.datetimeFormats=m.value,f.clearDateTimeFormat(_,a,i)}function nt(a,i){m.value[a]=r.assign(m.value[a]||{},i),_.datetimeFormats=m.value,f.clearDateTimeFormat(_,a,i)}function at(a){return g.value[a]||{}}function rt(a,i){g.value[a]=i,_.numberFormats=g.value,f.clearNumberFormat(_,a,i)}function ot(a,i){g.value[a]=r.assign(g.value[a]||{},i),_.numberFormats=g.value,f.clearNumberFormat(_,a,i)}ue++,n&&r.inBrowser&&(O.watch(n.locale,a=>{l&&(c.value=a,_.locale=a,f.updateFallbackLocale(_,c.value,o.value))}),O.watch(n.fallbackLocale,a=>{l&&(o.value=a,_.fallbackLocale=a,f.updateFallbackLocale(_,c.value,o.value))}));const p={id:ue,locale:De,fallbackLocale:Ae,get inheritLocale(){return l},set inheritLocale(a){l=a,a&&n&&(c.value=n.locale.value,o.value=n.fallbackLocale.value,f.updateFallbackLocale(_,c.value,o.value))},get availableLocales(){return Object.keys(u.value).sort()},messages:he,get modifiers(){return re},get pluralRules(){return j||{}},get isGlobal(){return s},get missingWarn(){return N},set missingWarn(a){N=a,_.missingWarn=N},get fallbackWarn(){return b},set fallbackWarn(a){b=a,_.fallbackWarn=b},get fallbackRoot(){return d},set fallbackRoot(a){d=a},get fallbackFormat(){return L},set fallbackFormat(a){L=a,_.fallbackFormat=L},get warnHtmlMessage(){return h},set warnHtmlMessage(a){h=a,_.warnHtmlMessage=a},get escapeParameter(){return H},set escapeParameter(a){H=a,_.escapeParameter=a},t:oe,getLocaleMessage:le,setLocaleMessage:ze,mergeLocaleMessage:Ze,getPostTranslationHandler:Ve,setPostTranslationHandler:Ue,getMissingHandler:Me,setMissingHandler:we,[_t]:qe};return p.datetimeFormats=ke,p.numberFormats=Fe,p.rt=Be,p.te=Ke,p.tm=Qe,p.d=We,p.n=xe,p.getDateTimeFormat=et,p.setDateTimeFormat=tt,p.mergeDateTimeFormat=nt,p.getNumberFormat=at,p.setNumberFormat=rt,p.mergeNumberFormat=ot,p[mt]=e.__injectWithOption,p[X]=He,p[q]=Xe,p[K]=$e,process.env.NODE_ENV!=="production"&&(p[w]=a=>{_.__v_emitter=a},p[J]=()=>{_.__v_emitter=void 0}),p}const ne={tag:{type:[String,Object]},locale:{type:String},scope:{type:String,validator:e=>e==="parent"||e==="global",default:"parent"},i18n:{type:Object}};function Et({slots:e},t){return t.length===1&&t[0]==="default"?(e.default?e.default():[]).reduce((s,l)=>s=[...s,...r.isArray(l.children)?l.children:[l]],[]):t.reduce((n,s)=>{const l=e[s];return l&&(n[s]=l()),n},{})}function Te(e){return O.Fragment}const x={name:"i18n-t",props:r.assign({keypath:{type:String,required:!0},plural:{type:[Number,String],validator:e=>r.isNumber(e)||!isNaN(e)}},ne),setup(e,t){const{slots:n,attrs:s}=t,l=e.i18n||Y({useScope:e.scope,__useComponent:!0});return()=>{const c=Object.keys(n).filter(b=>b!=="_"),o={};e.locale&&(o.locale=e.locale),e.plural!==void 0&&(o.plural=r.isString(e.plural)?+e.plural:e.plural);const u=Et(t,c),m=l[X](e.keypath,u,o),g=r.assign({},s),N=r.isString(e.tag)||r.isObject(e.tag)?e.tag:Te();return O.h(N,g,m)}}};function dt(e){return r.isArray(e)&&!r.isString(e[0])}function Ie(e,t,n,s){const{slots:l,attrs:c}=t;return()=>{const o={part:!0};let u={};e.locale&&(o.locale=e.locale),r.isString(e.format)?o.key=e.format:r.isObject(e.format)&&(r.isString(e.format.key)&&(o.key=e.format.key),u=Object.keys(e.format).reduce((d,L)=>n.includes(L)?r.assign({},d,{[L]:e.format[L]}):d,{}));const m=s(e.value,o,u);let g=[o.key];r.isArray(m)?g=m.map((d,L)=>{const C=l[d.type],R=C?C({[d.type]:d.value,index:L,parts:m}):[d.value];return dt(R)&&(R[0].key=`${d.type}-${L}`),R}):r.isString(m)&&(g=[m]);const N=r.assign({},c),b=r.isString(e.tag)||r.isObject(e.tag)?e.tag:Te();return O.h(b,N,g)}}const z={name:"i18n-n",props:r.assign({value:{type:Number,required:!0},format:{type:[String,Object]}},ne),setup(e,t){const n=e.i18n||Y({useScope:"parent",__useComponent:!0});return Ie(e,t,f.NUMBER_FORMAT_OPTIONS_KEYS,(...s)=>n[K](...s))}},Z={name:"i18n-d",props:r.assign({value:{type:[Number,Date],required:!0},format:{type:[String,Object]}},ne),setup(e,t){const n=e.i18n||Y({useScope:"parent",__useComponent:!0});return Ie(e,t,f.DATETIME_FORMAT_OPTIONS_KEYS,(...s)=>n[q](...s))}};function bt(e,t){const n=e;if(e.mode==="composition")return n.__getInstance(t)||e.global;{const s=n.__getInstance(t);return s!=null?s.__composer:e.global.__composer}}function Le(e){const t=o=>{const{instance:u,modifiers:m,value:g}=o;if(!u||!u.$)throw S(E.UNEXPECTED_ERROR);const N=bt(e,u.$);process.env.NODE_ENV!=="production"&&m.preserve&&r.warn(G(P.NOT_SUPPORTED_PRESERVE));const b=me(g);return[Reflect.apply(N.t,N,[...fe(b)]),N]};return{created:(o,u)=>{const[m,g]=t(u);r.inBrowser&&e.global===g&&(o.__i18nWatcher=O.watch(g.locale,()=>{u.instance&&u.instance.$forceUpdate()})),o.__composer=g,o.textContent=m},unmounted:o=>{r.inBrowser&&o.__i18nWatcher&&(o.__i18nWatcher(),o.__i18nWatcher=void 0,delete o.__i18nWatcher),o.__composer&&(o.__composer=void 0,delete o.__composer)},beforeUpdate:(o,{value:u})=>{if(o.__composer){const m=o.__composer,g=me(u);o.textContent=Reflect.apply(m.t,m,[...fe(g)])}},getSSRProps:o=>{const[u]=t(o);return{textContent:u}}}}function me(e){if(r.isString(e))return{path:e};if(r.isPlainObject(e)){if(!("path"in e))throw S(E.REQUIRED_VALUE,"path");return e}else throw S(E.INVALID_VALUE)}function fe(e){const{path:t,locale:n,args:s,choice:l,plural:c}=e,o={},u=s||{};return r.isString(n)&&(o.locale=n),r.isNumber(l)&&(o.plural=l),r.isNumber(c)&&(o.plural=c),[t,u,o]}function pt(e,t,...n){const s=r.isPlainObject(n[0])?n[0]:{},l=!!s.useI18nComponentName,c=r.isBoolean(s.globalInstall)?s.globalInstall:!0;process.env.NODE_ENV!=="production"&&c&&l&&r.warn(G(P.COMPONENT_NAME_LEGACY_COMPATIBLE,{name:x.name})),c&&(e.component(l?"i18n":x.name,x),e.component(z.name,z),e.component(Z.name,Z)),e.directive("t",Le(t))}const Se="vue-i18n: composer properties";let ee;async function Ot(e,t){return new Promise((n,s)=>{try{st.setupDevtoolsPlugin({id:"vue-devtools-plugin-vue-i18n",label:U.VueDevToolsLabels["vue-devtools-plugin-vue-i18n"],packageName:"vue-i18n",homepage:"https://vue-i18n.intlify.dev",logo:"https://vue-i18n.intlify.dev/vue-i18n-devtools-logo.png",componentStateTypes:[Se],app:e},l=>{ee=l,l.on.visitComponentTree(({componentInstance:o,treeNode:u})=>{Nt(o,u,t)}),l.on.inspectComponent(({componentInstance:o,instanceData:u})=>{o.vnode.el&&o.vnode.el.__VUE_I18N__&&u&&(t.mode==="legacy"?o.vnode.el.__VUE_I18N__!==t.global.__composer&&ge(u,o.vnode.el.__VUE_I18N__):ge(u,o.vnode.el.__VUE_I18N__))}),l.addInspector({id:"vue-i18n-resource-inspector",label:U.VueDevToolsLabels["vue-i18n-resource-inspector"],icon:"language",treeFilterPlaceholder:U.VueDevToolsPlaceholders["vue-i18n-resource-inspector"]}),l.on.getInspectorTree(o=>{o.app===e&&o.inspectorId==="vue-i18n-resource-inspector"&&St(o,t)});const c=new Map;l.on.getInspectorState(async o=>{if(o.app===e&&o.inspectorId==="vue-i18n-resource-inspector")if(l.unhighlightElement(),Rt(o,t),o.nodeId==="global"){if(!c.has(o.app)){const[u]=await l.getComponentInstances(o.app);c.set(o.app,u)}l.highlightElement(c.get(o.app))}else{const u=Pt(o.nodeId,t);u&&l.highlightElement(u)}}),l.on.editInspectorState(o=>{o.app===e&&o.inspectorId==="vue-i18n-resource-inspector"&&Ct(o,t)}),l.addTimelineLayer({id:"vue-i18n-timeline",label:U.VueDevToolsLabels["vue-i18n-timeline"],color:U.VueDevToolsTimelineColors["vue-i18n-timeline"]}),n(!0)})}catch(l){console.error(l),s(!1)}})}function Pe(e){return e.type.name||e.type.displayName||e.type.__file||"Anonymous"}function Nt(e,t,n){const s=n.mode==="composition"?n.global:n.global.__composer;if(e&&e.vnode.el&&e.vnode.el.__VUE_I18N__&&e.vnode.el.__VUE_I18N__!==s){const l={label:`i18n (${Pe(e)} Scope)`,textColor:0,backgroundColor:16764185};t.tags.push(l)}}function ge(e,t){const n=Se;e.state.push({type:n,key:"locale",editable:!0,value:t.locale.value}),e.state.push({type:n,key:"availableLocales",editable:!1,value:t.availableLocales}),e.state.push({type:n,key:"fallbackLocale",editable:!0,value:t.fallbackLocale.value}),e.state.push({type:n,key:"inheritLocale",editable:!0,value:t.inheritLocale}),e.state.push({type:n,key:"messages",editable:!1,value:ae(t.messages.value)}),e.state.push({type:n,key:"datetimeFormats",editable:!1,value:t.datetimeFormats.value}),e.state.push({type:n,key:"numberFormats",editable:!1,value:t.numberFormats.value})}function ae(e){const t={};return Object.keys(e).forEach(n=>{const s=e[n];r.isFunction(s)&&"source"in s?t[n]=Lt(s):r.isObject(s)?t[n]=ae(s):t[n]=s}),t}const vt={"<":"<",">":">",'"':""","&":"&"};function Tt(e){return e.replace(/[<>"&]/g,It)}function It(e){return vt[e]||e}function Lt(e){return{_custom:{type:"function",display:`<span>ƒ</span> ${e.source?`("${Tt(e.source)}")`:"(?)"}`}}}function St(e,t){e.rootNodes.push({id:"global",label:"Global Scope"});const n=t.mode==="composition"?t.global:t.global.__composer;for(const[s,l]of t.__instances){const c=t.mode==="composition"?l:l.__composer;n!==c&&e.rootNodes.push({id:c.id.toString(),label:`${Pe(s)} Scope`})}}function Pt(e,t){let n=null;if(e!=="global"){for(const[s,l]of t.__instances.entries())if(l.id.toString()===e){n=s;break}}return n}function Re(e,t){if(e==="global")return t.mode==="composition"?t.global:t.global.__composer;{const n=Array.from(t.__instances.values()).find(s=>s.id.toString()===e);return n?t.mode==="composition"?n:n.__composer:null}}function Rt(e,t){const n=Re(e.nodeId,t);return n&&(e.state=yt(n)),null}function yt(e){const t={},n="Locale related info",s=[{type:n,key:"locale",editable:!0,value:e.locale.value},{type:n,key:"fallbackLocale",editable:!0,value:e.fallbackLocale.value},{type:n,key:"availableLocales",editable:!1,value:e.availableLocales},{type:n,key:"inheritLocale",editable:!0,value:e.inheritLocale}];t[n]=s;const l="Locale messages info",c=[{type:l,key:"messages",editable:!1,value:ae(e.messages.value)}];t[l]=c;{const o="Datetime formats info",u=[{type:o,key:"datetimeFormats",editable:!1,value:e.datetimeFormats.value}];t[o]=u;const m="Datetime formats info",g=[{type:m,key:"numberFormats",editable:!1,value:e.numberFormats.value}];t[m]=g}return t}function te(e,t){if(ee){let n;t&&"groupId"in t&&(n=t.groupId,delete t.groupId),ee.addTimelineEvent({layerId:"vue-i18n-timeline",event:{title:e,groupId:n,time:Date.now(),meta:{},data:t||{},logType:e==="compile-error"?"error":e==="fallback"||e==="missing"?"warning":"default"}})}}function Ct(e,t){const n=Re(e.nodeId,t);if(n){const[s]=e.path;s==="locale"&&r.isString(e.state.value)?n.locale.value=e.state.value:s==="fallbackLocale"&&(r.isString(e.state.value)||r.isArray(e.state.value)||r.isObject(e.state.value))?n.fallbackLocale.value=e.state.value:s==="inheritLocale"&&r.isBoolean(e.state.value)&&(n.inheritLocale=e.state.value)}}const ye=r.makeSymbol("global-vue-i18n");function Dt(e={},t){const n=r.isBoolean(e.globalInjection)?e.globalInjection:!0,s=!0,l=new Map,[c,o]=At(e),u=r.makeSymbol(process.env.NODE_ENV!=="production"?"vue-i18n":"");function m(b){return l.get(b)||null}function g(b,d){l.set(b,d)}function N(b){l.delete(b)}{const b={get mode(){return"composition"},get allowComposition(){return s},async install(d,...L){process.env.NODE_ENV!=="production"&&(d.__VUE_I18N__=b),d.__VUE_I18N_SYMBOL__=u,d.provide(d.__VUE_I18N_SYMBOL__,b),n&&jt(d,b.global),pt(d,b,...L);const C=d.unmount;if(d.unmount=()=>{b.dispose(),C()},process.env.NODE_ENV!=="production"){if(!await Ot(d,b))throw S(E.CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN);const y=r.createEmitter();{const h=o;h[w]&&h[w](y)}y.on("*",te)}},get global(){return o},dispose(){c.stop()},__instances:l,__getInstance:m,__setInstance:g,__deleteInstance:N};return b}}function Y(e={}){const t=O.getCurrentInstance();if(t==null)throw S(E.MUST_BE_CALL_SETUP_TOP);if(!t.isCE&&t.appContext.app!=null&&!t.appContext.app.__VUE_I18N_SYMBOL__)throw S(E.NOT_INSLALLED);const n=ht(t),s=Ft(n),l=Ne(t),c=kt(e,l);if(c==="global")return ft(s,e,l),s;if(c==="parent"){let m=Vt(n,t,e.__useComponent);return m==null&&(process.env.NODE_ENV!=="production"&&r.warn(G(P.NOT_FOUND_PARENT_SCOPE)),m=s),m}const o=n;let u=o.__getInstance(t);if(u==null){const m=r.assign({},e);"__i18n"in l&&(m.__i18n=l.__i18n),s&&(m.__root=s),u=ve(m),Ut(o,t,u),o.__setInstance(t,u)}return u}function At(e,t,n){const s=A.effectScope();{const l=s.run(()=>ve(e));if(l==null)throw S(E.UNEXPECTED_ERROR);return[s,l]}}function ht(e){{const t=O.inject(e.isCE?ye:e.appContext.app.__VUE_I18N_SYMBOL__);if(!t)throw S(e.isCE?E.NOT_INSLALLED_WITH_PROVIDE:E.UNEXPECTED_ERROR);return t}}function kt(e,t){return r.isEmptyObject(e)?"__i18n"in t?"local":"global":e.useScope?e.useScope:"local"}function Ft(e){return e.mode==="composition"?e.global:e.global.__composer}function Vt(e,t,n=!1){let s=null;const l=t.root;let c=t.parent;for(;c!=null;){const o=e;if(e.mode==="composition"&&(s=o.__getInstance(c)),s!=null||l===c)break;c=c.parent}return s}function Ut(e,t,n){let s=null;O.onMounted(()=>{if(process.env.NODE_ENV!=="production"&&t.vnode.el){t.vnode.el.__VUE_I18N__=n,s=r.createEmitter();const l=n;l[w]&&l[w](s),s.on("*",te)}},t),O.onUnmounted(()=>{if(process.env.NODE_ENV!=="production"&&t.vnode.el&&t.vnode.el.__VUE_I18N__){s&&s.off("*",te);const l=n;l[J]&&l[J](),delete t.vnode.el.__VUE_I18N__}e.__deleteInstance(t)},t)}const Mt=["locale","fallbackLocale","availableLocales"],wt=["t","rt","d","n","tm"];function jt(e,t){const n=Object.create(null);Mt.forEach(s=>{const l=Object.getOwnPropertyDescriptor(t,s);if(!l)throw S(E.UNEXPECTED_ERROR);const c=A.isRef(l.value)?{get(){return l.value.value},set(o){l.value.value=o}}:{get(){return l.get&&l.get()}};Object.defineProperty(n,s,c)}),e.config.globalProperties.$i18n=n,wt.forEach(s=>{const l=Object.getOwnPropertyDescriptor(t,s);if(!l||!l.value)throw S(E.UNEXPECTED_ERROR);Object.defineProperty(e.config.globalProperties,`$${s}`,l)})}f.registerMessageResolver(f.resolveValue);f.registerLocaleFallbacker(f.fallbackWithLocaleChain);it();if(process.env.NODE_ENV!=="production"||__INTLIFY_PROD_DEVTOOLS__){const e=r.getGlobalThis();e.__INTLIFY__=!0,f.setDevToolsHook(e.__INTLIFY_DEVTOOLS_GLOBAL_HOOK__)}process.env.NODE_ENV;exports.DatetimeFormat=Z;exports.I18nInjectionKey=ye;exports.NumberFormat=z;exports.Translation=x;exports.VERSION=de;exports.createI18n=Dt;exports.useI18n=Y;exports.vTDirective=Le;
|