gt-react 10.19.15 → 10.19.17
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/CHANGELOG.md +26 -0
- package/dist/browser.cjs +10914 -0
- package/dist/browser.cjs.map +1 -0
- package/dist/browser.d.cts +699 -0
- package/dist/browser.d.cts.map +1 -0
- package/dist/browser.d.mts +701 -0
- package/dist/browser.d.mts.map +1 -0
- package/dist/browser.mjs +10877 -0
- package/dist/browser.mjs.map +1 -0
- package/dist/client.cjs +3451 -0
- package/dist/client.cjs.map +1 -0
- package/dist/client.d.cts +248 -0
- package/dist/client.d.cts.map +1 -0
- package/dist/client.d.mts +249 -0
- package/dist/client.d.mts.map +1 -0
- package/dist/client.mjs +3392 -0
- package/dist/client.mjs.map +1 -0
- package/dist/index.cjs +3691 -0
- package/dist/index.cjs.map +1 -0
- package/dist/index.d.cts +377 -0
- package/dist/index.d.cts.map +1 -0
- package/dist/index.d.mts +376 -0
- package/dist/index.d.mts.map +1 -0
- package/dist/index.mjs +3636 -0
- package/dist/index.mjs.map +1 -0
- package/dist/internal.cjs +4046 -0
- package/dist/internal.cjs.map +1 -0
- package/dist/internal.d.cts +1118 -0
- package/dist/internal.d.cts.map +1 -0
- package/dist/internal.d.mts +1118 -0
- package/dist/internal.d.mts.map +1 -0
- package/dist/internal.mjs +3985 -0
- package/dist/internal.mjs.map +1 -0
- package/dist/macros.cjs +6206 -0
- package/dist/macros.cjs.map +1 -0
- package/dist/macros.d.cts +25 -0
- package/dist/macros.d.cts.map +1 -0
- package/dist/macros.d.mts +25 -0
- package/dist/macros.d.mts.map +1 -0
- package/dist/macros.mjs +6207 -0
- package/dist/macros.mjs.map +1 -0
- package/package.json +61 -41
- package/dist/browser-types.d.ts +0 -5
- package/dist/browser-types.d.ts.map +0 -1
- package/dist/browser.cjs.min.cjs +0 -2
- package/dist/browser.cjs.min.cjs.map +0 -1
- package/dist/browser.d.ts +0 -4
- package/dist/browser.d.ts.map +0 -1
- package/dist/browser.esm.min.mjs +0 -2
- package/dist/browser.esm.min.mjs.map +0 -1
- package/dist/client.cjs.min.cjs +0 -2
- package/dist/client.cjs.min.cjs.map +0 -1
- package/dist/client.d.ts +0 -6
- package/dist/client.d.ts.map +0 -1
- package/dist/client.esm.min.mjs +0 -2
- package/dist/client.esm.min.mjs.map +0 -1
- package/dist/i18n-context/browser-i18n-manager/BrowserConditionStore.d.ts +0 -32
- package/dist/i18n-context/browser-i18n-manager/BrowserConditionStore.d.ts.map +0 -1
- package/dist/i18n-context/browser-i18n-manager/BrowserI18nManager.d.ts +0 -42
- package/dist/i18n-context/browser-i18n-manager/BrowserI18nManager.d.ts.map +0 -1
- package/dist/i18n-context/browser-i18n-manager/LocalStorageTranslationCache.d.ts +0 -90
- package/dist/i18n-context/browser-i18n-manager/LocalStorageTranslationCache.d.ts.map +0 -1
- package/dist/i18n-context/browser-i18n-manager/singleton-operations.d.ts +0 -9
- package/dist/i18n-context/browser-i18n-manager/singleton-operations.d.ts.map +0 -1
- package/dist/i18n-context/browser-i18n-manager/utils/constants.d.ts +0 -3
- package/dist/i18n-context/browser-i18n-manager/utils/constants.d.ts.map +0 -1
- package/dist/i18n-context/browser-i18n-manager/utils/cookies.d.ts +0 -19
- package/dist/i18n-context/browser-i18n-manager/utils/cookies.d.ts.map +0 -1
- package/dist/i18n-context/browser-i18n-manager/utils/determineLocale.d.ts +0 -15
- package/dist/i18n-context/browser-i18n-manager/utils/determineLocale.d.ts.map +0 -1
- package/dist/i18n-context/browser-i18n-manager/utils/types.d.ts +0 -14
- package/dist/i18n-context/browser-i18n-manager/utils/types.d.ts.map +0 -1
- package/dist/i18n-context/functions/branching/GtInternalBranch.d.ts +0 -29
- package/dist/i18n-context/functions/branching/GtInternalBranch.d.ts.map +0 -1
- package/dist/i18n-context/functions/branching/GtInternalPlural.d.ts +0 -30
- package/dist/i18n-context/functions/branching/GtInternalPlural.d.ts.map +0 -1
- package/dist/i18n-context/functions/branching/index.d.ts +0 -3
- package/dist/i18n-context/functions/branching/index.d.ts.map +0 -1
- package/dist/i18n-context/functions/derivation/GtInternalDerive.d.ts +0 -31
- package/dist/i18n-context/functions/derivation/GtInternalDerive.d.ts.map +0 -1
- package/dist/i18n-context/functions/derivation/index.d.ts +0 -2
- package/dist/i18n-context/functions/derivation/index.d.ts.map +0 -1
- package/dist/i18n-context/functions/html-tag-operations.d.ts +0 -19
- package/dist/i18n-context/functions/html-tag-operations.d.ts.map +0 -1
- package/dist/i18n-context/functions/index.d.ts +0 -8
- package/dist/i18n-context/functions/index.d.ts.map +0 -1
- package/dist/i18n-context/functions/locale-operations.d.ts +0 -11
- package/dist/i18n-context/functions/locale-operations.d.ts.map +0 -1
- package/dist/i18n-context/functions/translation/GtInternalRuntimeTranslateJsx.d.ts +0 -11
- package/dist/i18n-context/functions/translation/GtInternalRuntimeTranslateJsx.d.ts.map +0 -1
- package/dist/i18n-context/functions/translation/GtInternalRuntimeTranslateString.d.ts +0 -11
- package/dist/i18n-context/functions/translation/GtInternalRuntimeTranslateString.d.ts.map +0 -1
- package/dist/i18n-context/functions/translation/GtInternalTranslateJsx.d.ts +0 -33
- package/dist/i18n-context/functions/translation/GtInternalTranslateJsx.d.ts.map +0 -1
- package/dist/i18n-context/functions/translation/index.d.ts +0 -5
- package/dist/i18n-context/functions/translation/index.d.ts.map +0 -1
- package/dist/i18n-context/functions/translation/t.d.ts +0 -25
- package/dist/i18n-context/functions/translation/t.d.ts.map +0 -1
- package/dist/i18n-context/functions/translation/types.d.ts +0 -21
- package/dist/i18n-context/functions/translation/types.d.ts.map +0 -1
- package/dist/i18n-context/functions/variables/GtInternalCurrency.d.ts +0 -28
- package/dist/i18n-context/functions/variables/GtInternalCurrency.d.ts.map +0 -1
- package/dist/i18n-context/functions/variables/GtInternalDateTime.d.ts +0 -26
- package/dist/i18n-context/functions/variables/GtInternalDateTime.d.ts.map +0 -1
- package/dist/i18n-context/functions/variables/GtInternalNum.d.ts +0 -26
- package/dist/i18n-context/functions/variables/GtInternalNum.d.ts.map +0 -1
- package/dist/i18n-context/functions/variables/GtInternalRelativeTime.d.ts +0 -35
- package/dist/i18n-context/functions/variables/GtInternalRelativeTime.d.ts.map +0 -1
- package/dist/i18n-context/functions/variables/GtInternalVar.d.ts +0 -23
- package/dist/i18n-context/functions/variables/GtInternalVar.d.ts.map +0 -1
- package/dist/i18n-context/functions/variables/index.d.ts +0 -6
- package/dist/i18n-context/functions/variables/index.d.ts.map +0 -1
- package/dist/i18n-context/functions/variables/utils/computeVar.d.ts +0 -9
- package/dist/i18n-context/functions/variables/utils/computeVar.d.ts.map +0 -1
- package/dist/i18n-context/functions/variables/utils/renderVariable.d.ts +0 -15
- package/dist/i18n-context/functions/variables/utils/renderVariable.d.ts.map +0 -1
- package/dist/i18n-context/setup/bootstrap.d.ts +0 -22
- package/dist/i18n-context/setup/bootstrap.d.ts.map +0 -1
- package/dist/i18n-context/setup/index.d.ts +0 -3
- package/dist/i18n-context/setup/index.d.ts.map +0 -1
- package/dist/i18n-context/setup/initializeGT.d.ts +0 -7
- package/dist/i18n-context/setup/initializeGT.d.ts.map +0 -1
- package/dist/i18n-context/setup/types.d.ts +0 -19
- package/dist/i18n-context/setup/types.d.ts.map +0 -1
- package/dist/i18n-context/ui/LocaleSelector.d.ts +0 -18
- package/dist/i18n-context/ui/LocaleSelector.d.ts.map +0 -1
- package/dist/i18n-context/utils/enforceBrowser.d.ts +0 -7
- package/dist/i18n-context/utils/enforceBrowser.d.ts.map +0 -1
- package/dist/index.cjs.min.cjs +0 -2
- package/dist/index.cjs.min.cjs.map +0 -1
- package/dist/index.d.ts +0 -8
- package/dist/index.d.ts.map +0 -1
- package/dist/index.esm.min.mjs +0 -2
- package/dist/index.esm.min.mjs.map +0 -1
- package/dist/internal.cjs.min.cjs +0 -2
- package/dist/internal.cjs.min.cjs.map +0 -1
- package/dist/internal.d.ts +0 -7
- package/dist/internal.d.ts.map +0 -1
- package/dist/internal.esm.min.mjs +0 -2
- package/dist/internal.esm.min.mjs.map +0 -1
- package/dist/macros.cjs.min.cjs +0 -2
- package/dist/macros.cjs.min.cjs.map +0 -1
- package/dist/macros.d.ts +0 -22
- package/dist/macros.d.ts.map +0 -1
- package/dist/macros.esm.min.mjs +0 -2
- package/dist/macros.esm.min.mjs.map +0 -1
- package/dist/react-context/provider/ClientProvider.d.ts +0 -4
- package/dist/react-context/provider/ClientProvider.d.ts.map +0 -1
- package/dist/react-context/provider/GTProvider.d.ts +0 -29
- package/dist/react-context/provider/GTProvider.d.ts.map +0 -1
- package/dist/react-context/provider/helpers/isSSREnabled.d.ts +0 -2
- package/dist/react-context/provider/helpers/isSSREnabled.d.ts.map +0 -1
- package/dist/react-context/provider/hooks/locales/useDetermineLocale.d.ts +0 -5
- package/dist/react-context/provider/hooks/locales/useDetermineLocale.d.ts.map +0 -1
- package/dist/react-context/provider/hooks/useEnableI18n.d.ts +0 -10
- package/dist/react-context/provider/hooks/useEnableI18n.d.ts.map +0 -1
- package/dist/react-context/provider/hooks/useRegionState.d.ts +0 -9
- package/dist/react-context/provider/hooks/useRegionState.d.ts.map +0 -1
- package/dist/react-context/types/config.d.ts +0 -67
- package/dist/react-context/types/config.d.ts.map +0 -1
- package/dist/react-context/ui/LocaleSelector.d.ts +0 -18
- package/dist/react-context/ui/LocaleSelector.d.ts.map +0 -1
- package/dist/react-context/ui/RegionSelector.d.ts +0 -38
- package/dist/react-context/ui/RegionSelector.d.ts.map +0 -1
- package/dist/react-context/utils/readAuthFromEnv.d.ts +0 -9
- package/dist/react-context/utils/readAuthFromEnv.d.ts.map +0 -1
- package/dist/shared/InternalLocaleSelector.d.ts +0 -26
- package/dist/shared/InternalLocaleSelector.d.ts.map +0 -1
- package/dist/shared/messages.d.ts +0 -11
- package/dist/shared/messages.d.ts.map +0 -1
|
@@ -0,0 +1,4046 @@
|
|
|
1
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
+
//#region \0rolldown/runtime.js
|
|
3
|
+
var __create = Object.create;
|
|
4
|
+
var __defProp = Object.defineProperty;
|
|
5
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
6
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
7
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
8
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
9
|
+
var __copyProps = (to, from, except, desc) => {
|
|
10
|
+
if (from && typeof from === "object" || typeof from === "function") for (var keys = __getOwnPropNames(from), i = 0, n = keys.length, key; i < n; i++) {
|
|
11
|
+
key = keys[i];
|
|
12
|
+
if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
|
|
13
|
+
get: ((k) => from[k]).bind(null, key),
|
|
14
|
+
enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
|
|
15
|
+
});
|
|
16
|
+
}
|
|
17
|
+
return to;
|
|
18
|
+
};
|
|
19
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", {
|
|
20
|
+
value: mod,
|
|
21
|
+
enumerable: true
|
|
22
|
+
}) : target, mod));
|
|
23
|
+
//#endregion
|
|
24
|
+
let react = require("react");
|
|
25
|
+
react = __toESM(react, 1);
|
|
26
|
+
let _generaltranslation_format = require("@generaltranslation/format");
|
|
27
|
+
let react_jsx_runtime = require("react/jsx-runtime");
|
|
28
|
+
require("generaltranslation");
|
|
29
|
+
//#region ../react-core/dist/internal.esm.min.mjs
|
|
30
|
+
var c = Object.defineProperty, l = Object.getOwnPropertyDescriptor, u = Object.getOwnPropertyNames, d = Object.prototype.hasOwnProperty, f = (e, t) => () => (e && (t = e(e = 0)), t), p = (e, t) => () => (t || (e((t = { exports: {} }).exports, t), e = null), t.exports), m = (e, t) => {
|
|
31
|
+
let n = {};
|
|
32
|
+
for (var r in e) c(n, r, {
|
|
33
|
+
get: e[r],
|
|
34
|
+
enumerable: !0
|
|
35
|
+
});
|
|
36
|
+
return t || c(n, Symbol.toStringTag, { value: `Module` }), n;
|
|
37
|
+
}, h = (e, t, n, r) => {
|
|
38
|
+
if (t && typeof t == `object` || typeof t == `function`) for (var i = u(t), a = 0, o = i.length, s; a < o; a++) s = i[a], !d.call(e, s) && s !== n && c(e, s, {
|
|
39
|
+
get: ((e) => t[e]).bind(null, s),
|
|
40
|
+
enumerable: !(r = l(t, s)) || r.enumerable
|
|
41
|
+
});
|
|
42
|
+
return e;
|
|
43
|
+
}, g = (e) => d.call(e, `module.exports`) ? e[`module.exports`] : h(c({}, `__esModule`, { value: !0 }), e);
|
|
44
|
+
function _(e, t) {
|
|
45
|
+
if (e == null) throw Error(`Cannot index into an undefined dictionary`);
|
|
46
|
+
return e[t];
|
|
47
|
+
}
|
|
48
|
+
function v(e, t, n) {
|
|
49
|
+
e[t] = n;
|
|
50
|
+
}
|
|
51
|
+
const ee = (e) => `Duplicate key found in dictionary: "${e}"`;
|
|
52
|
+
function y(e, t = ``) {
|
|
53
|
+
let n = {};
|
|
54
|
+
for (let r in e) if (e.hasOwnProperty(r)) {
|
|
55
|
+
let i = t ? `${t}.${r}` : r;
|
|
56
|
+
if (typeof _(e, r) == `object` && _(e, r) !== null && !Array.isArray(_(e, r))) {
|
|
57
|
+
let t = y(_(e, r), i);
|
|
58
|
+
for (let e in t) {
|
|
59
|
+
if (n.hasOwnProperty(e)) throw Error(ee(e));
|
|
60
|
+
n[e] = t[e];
|
|
61
|
+
}
|
|
62
|
+
} else {
|
|
63
|
+
if (n.hasOwnProperty(i)) throw Error(ee(i));
|
|
64
|
+
n[i] = _(e, r);
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
return n;
|
|
68
|
+
}
|
|
69
|
+
function b(e) {
|
|
70
|
+
let t = e.trim();
|
|
71
|
+
return t ? /[.!?)]$/.test(t) ? t : `${t}.` : ``;
|
|
72
|
+
}
|
|
73
|
+
function x(e) {
|
|
74
|
+
let t = e.trim(), n = t.length;
|
|
75
|
+
for (; n > 0;) {
|
|
76
|
+
let e = t[n - 1];
|
|
77
|
+
if (e !== `.` && e !== `!` && e !== `?`) break;
|
|
78
|
+
--n;
|
|
79
|
+
}
|
|
80
|
+
return t.slice(0, n);
|
|
81
|
+
}
|
|
82
|
+
function te(e) {
|
|
83
|
+
return e.replace(/^[A-Z][a-z]/, (e) => e.toLowerCase());
|
|
84
|
+
}
|
|
85
|
+
function ne(e) {
|
|
86
|
+
if (!e) return ``;
|
|
87
|
+
let t = Array.isArray(e) ? e.join(`, `) : e;
|
|
88
|
+
return t.trim() ? b(`Details: ${t}`) : ``;
|
|
89
|
+
}
|
|
90
|
+
function S({ source: e, severity: t, whatHappened: n, reassurance: r, why: i, fix: a, wayOut: o, details: s, docsUrl: c }) {
|
|
91
|
+
let l = e ? t ? `${e} ${t}:` : `${e}:` : t ? `${t}:` : ``, u = i ? `${x(n)} because ${te(x(i))}` : n, d = !!a && !!o && /^[a-z]/.test(x(o)), f = [
|
|
92
|
+
u,
|
|
93
|
+
r,
|
|
94
|
+
d ? `${x(a)}, or ${te(x(o))}` : a,
|
|
95
|
+
d ? void 0 : o,
|
|
96
|
+
ne(s)
|
|
97
|
+
].filter((e) => !!e).map(b);
|
|
98
|
+
c && f.push(`Learn more: ${c}`);
|
|
99
|
+
let p = f.join(` `);
|
|
100
|
+
return l ? `${l} ${p}` : p;
|
|
101
|
+
}
|
|
102
|
+
function C(e) {
|
|
103
|
+
if (typeof Buffer < `u`) return Buffer.from(e, `utf8`).toString(`base64`);
|
|
104
|
+
let t = new TextEncoder().encode(e), n = ``;
|
|
105
|
+
for (let e = 0; e < t.length; e++) n += String.fromCharCode(t[e]);
|
|
106
|
+
return btoa(n);
|
|
107
|
+
}
|
|
108
|
+
function w(e) {
|
|
109
|
+
if (typeof Buffer < `u`) return Buffer.from(e, `base64`).toString(`utf8`);
|
|
110
|
+
let t = atob(e), n = new Uint8Array(t.length);
|
|
111
|
+
for (let e = 0; e < t.length; e++) n[e] = t.charCodeAt(e);
|
|
112
|
+
return new TextDecoder().decode(n);
|
|
113
|
+
}
|
|
114
|
+
function T(e) {
|
|
115
|
+
if (e === void 0) return;
|
|
116
|
+
if (e === null) return `null`;
|
|
117
|
+
if (typeof e == `number`) return isFinite(e) ? `` + e : `null`;
|
|
118
|
+
if (typeof e != `object`) return JSON.stringify(e);
|
|
119
|
+
if (Array.isArray(e)) {
|
|
120
|
+
let t = `[`;
|
|
121
|
+
for (let n = 0; n < e.length; n++) n && (t += `,`), t += T(e[n]) || `null`;
|
|
122
|
+
return t + `]`;
|
|
123
|
+
}
|
|
124
|
+
let t = Object.keys(e).sort(), n = ``;
|
|
125
|
+
for (let r of t) {
|
|
126
|
+
let t = T(e[r]);
|
|
127
|
+
t && (n && (n += `,`), n += JSON.stringify(r) + `:` + t);
|
|
128
|
+
}
|
|
129
|
+
return `{` + n + `}`;
|
|
130
|
+
}
|
|
131
|
+
function re(e) {
|
|
132
|
+
return T(e) ?? ``;
|
|
133
|
+
}
|
|
134
|
+
function E(e) {
|
|
135
|
+
let t = e;
|
|
136
|
+
if (t && typeof t == `object` && typeof t.k == `string`) {
|
|
137
|
+
let e = Object.keys(t);
|
|
138
|
+
if (e.length === 1 || e.length === 2 && (typeof t.i == `number` || typeof t.v == `string`) || e.length === 3 && typeof t.v == `string` && typeof t.i == `number`) return !0;
|
|
139
|
+
}
|
|
140
|
+
return !1;
|
|
141
|
+
}
|
|
142
|
+
function ie(e) {
|
|
143
|
+
return e instanceof Uint8Array || ArrayBuffer.isView(e) && e.constructor.name === `Uint8Array` && `BYTES_PER_ELEMENT` in e && e.BYTES_PER_ELEMENT === 1;
|
|
144
|
+
}
|
|
145
|
+
function D(e, t, n = ``) {
|
|
146
|
+
let r = ie(e), i = e?.length, a = t !== void 0;
|
|
147
|
+
if (!r || a && i !== t) {
|
|
148
|
+
let o = n && `"${n}" `, s = a ? ` of length ${t}` : ``, c = r ? `length=${i}` : `type=${typeof e}`, l = o + `expected Uint8Array` + s + `, got ` + c;
|
|
149
|
+
throw r ? RangeError(l) : TypeError(l);
|
|
150
|
+
}
|
|
151
|
+
return e;
|
|
152
|
+
}
|
|
153
|
+
function ae(e, t = !0) {
|
|
154
|
+
if (e.destroyed) throw Error(`Hash instance has been destroyed`);
|
|
155
|
+
if (t && e.finished) throw Error(`Hash#digest() has already been called`);
|
|
156
|
+
}
|
|
157
|
+
function oe(e, t) {
|
|
158
|
+
D(e, void 0, `digestInto() output`);
|
|
159
|
+
let n = t.outputLen;
|
|
160
|
+
if (e.length < n) throw RangeError(`"digestInto() output" expected to be of length >=` + n);
|
|
161
|
+
}
|
|
162
|
+
function se(...e) {
|
|
163
|
+
for (let t = 0; t < e.length; t++) e[t].fill(0);
|
|
164
|
+
}
|
|
165
|
+
function ce(e) {
|
|
166
|
+
return new DataView(e.buffer, e.byteOffset, e.byteLength);
|
|
167
|
+
}
|
|
168
|
+
function O(e, t) {
|
|
169
|
+
return e << 32 - t | e >>> t;
|
|
170
|
+
}
|
|
171
|
+
new Uint8Array(new Uint32Array([287454020]).buffer)[0];
|
|
172
|
+
const le = typeof Uint8Array.from([]).toHex == `function` && typeof Uint8Array.fromHex == `function`, ue = Array.from({ length: 256 }, (e, t) => t.toString(16).padStart(2, `0`));
|
|
173
|
+
function de(e) {
|
|
174
|
+
if (D(e), le) return e.toHex();
|
|
175
|
+
let t = ``;
|
|
176
|
+
for (let n = 0; n < e.length; n++) t += ue[e[n]];
|
|
177
|
+
return t;
|
|
178
|
+
}
|
|
179
|
+
function fe(e) {
|
|
180
|
+
if (typeof e != `string`) throw TypeError(`string expected`);
|
|
181
|
+
return new Uint8Array(new TextEncoder().encode(e));
|
|
182
|
+
}
|
|
183
|
+
function pe(e, t = {}) {
|
|
184
|
+
let n = (t, n) => e(n).update(t).digest(), r = e(void 0);
|
|
185
|
+
return n.outputLen = r.outputLen, n.blockLen = r.blockLen, n.canXOF = r.canXOF, n.create = (t) => e(t), Object.assign(n, t), Object.freeze(n);
|
|
186
|
+
}
|
|
187
|
+
const me = (e) => ({ oid: Uint8Array.from([
|
|
188
|
+
6,
|
|
189
|
+
9,
|
|
190
|
+
96,
|
|
191
|
+
134,
|
|
192
|
+
72,
|
|
193
|
+
1,
|
|
194
|
+
101,
|
|
195
|
+
3,
|
|
196
|
+
4,
|
|
197
|
+
2,
|
|
198
|
+
e
|
|
199
|
+
]) });
|
|
200
|
+
function he(e, t, n) {
|
|
201
|
+
return e & t ^ ~e & n;
|
|
202
|
+
}
|
|
203
|
+
function ge(e, t, n) {
|
|
204
|
+
return e & t ^ e & n ^ t & n;
|
|
205
|
+
}
|
|
206
|
+
var _e = class {
|
|
207
|
+
blockLen;
|
|
208
|
+
outputLen;
|
|
209
|
+
canXOF = !1;
|
|
210
|
+
padOffset;
|
|
211
|
+
isLE;
|
|
212
|
+
buffer;
|
|
213
|
+
view;
|
|
214
|
+
finished = !1;
|
|
215
|
+
length = 0;
|
|
216
|
+
pos = 0;
|
|
217
|
+
destroyed = !1;
|
|
218
|
+
constructor(e, t, n, r) {
|
|
219
|
+
this.blockLen = e, this.outputLen = t, this.padOffset = n, this.isLE = r, this.buffer = new Uint8Array(e), this.view = ce(this.buffer);
|
|
220
|
+
}
|
|
221
|
+
update(e) {
|
|
222
|
+
ae(this), D(e);
|
|
223
|
+
let { view: t, buffer: n, blockLen: r } = this, i = e.length;
|
|
224
|
+
for (let a = 0; a < i;) {
|
|
225
|
+
let o = Math.min(r - this.pos, i - a);
|
|
226
|
+
if (o === r) {
|
|
227
|
+
let t = ce(e);
|
|
228
|
+
for (; r <= i - a; a += r) this.process(t, a);
|
|
229
|
+
continue;
|
|
230
|
+
}
|
|
231
|
+
n.set(e.subarray(a, a + o), this.pos), this.pos += o, a += o, this.pos === r && (this.process(t, 0), this.pos = 0);
|
|
232
|
+
}
|
|
233
|
+
return this.length += e.length, this.roundClean(), this;
|
|
234
|
+
}
|
|
235
|
+
digestInto(e) {
|
|
236
|
+
ae(this), oe(e, this), this.finished = !0;
|
|
237
|
+
let { buffer: t, view: n, blockLen: r, isLE: i } = this, { pos: a } = this;
|
|
238
|
+
t[a++] = 128, se(this.buffer.subarray(a)), this.padOffset > r - a && (this.process(n, 0), a = 0);
|
|
239
|
+
for (let e = a; e < r; e++) t[e] = 0;
|
|
240
|
+
n.setBigUint64(r - 8, BigInt(this.length * 8), i), this.process(n, 0);
|
|
241
|
+
let o = ce(e), s = this.outputLen;
|
|
242
|
+
if (s % 4) throw Error(`_sha2: outputLen must be aligned to 32bit`);
|
|
243
|
+
let c = s / 4, l = this.get();
|
|
244
|
+
if (c > l.length) throw Error(`_sha2: outputLen bigger than state`);
|
|
245
|
+
for (let e = 0; e < c; e++) o.setUint32(4 * e, l[e], i);
|
|
246
|
+
}
|
|
247
|
+
digest() {
|
|
248
|
+
let { buffer: e, outputLen: t } = this;
|
|
249
|
+
this.digestInto(e);
|
|
250
|
+
let n = e.slice(0, t);
|
|
251
|
+
return this.destroy(), n;
|
|
252
|
+
}
|
|
253
|
+
_cloneInto(e) {
|
|
254
|
+
e ||= new this.constructor(), e.set(...this.get());
|
|
255
|
+
let { blockLen: t, buffer: n, length: r, finished: i, destroyed: a, pos: o } = this;
|
|
256
|
+
return e.destroyed = a, e.finished = i, e.length = r, e.pos = o, r % t && e.buffer.set(n), e;
|
|
257
|
+
}
|
|
258
|
+
clone() {
|
|
259
|
+
return this._cloneInto();
|
|
260
|
+
}
|
|
261
|
+
};
|
|
262
|
+
const k = Uint32Array.from([
|
|
263
|
+
1779033703,
|
|
264
|
+
3144134277,
|
|
265
|
+
1013904242,
|
|
266
|
+
2773480762,
|
|
267
|
+
1359893119,
|
|
268
|
+
2600822924,
|
|
269
|
+
528734635,
|
|
270
|
+
1541459225
|
|
271
|
+
]), A = BigInt(2 ** 32 - 1), ve = BigInt(32);
|
|
272
|
+
function ye(e, t = !1) {
|
|
273
|
+
return t ? {
|
|
274
|
+
h: Number(e & A),
|
|
275
|
+
l: Number(e >> ve & A)
|
|
276
|
+
} : {
|
|
277
|
+
h: Number(e >> ve & A) | 0,
|
|
278
|
+
l: Number(e & A) | 0
|
|
279
|
+
};
|
|
280
|
+
}
|
|
281
|
+
function be(e, t = !1) {
|
|
282
|
+
let n = e.length, r = new Uint32Array(n), i = new Uint32Array(n);
|
|
283
|
+
for (let a = 0; a < n; a++) {
|
|
284
|
+
let { h: n, l: o } = ye(e[a], t);
|
|
285
|
+
[r[a], i[a]] = [n, o];
|
|
286
|
+
}
|
|
287
|
+
return [r, i];
|
|
288
|
+
}
|
|
289
|
+
const xe = Uint32Array.from([
|
|
290
|
+
1116352408,
|
|
291
|
+
1899447441,
|
|
292
|
+
3049323471,
|
|
293
|
+
3921009573,
|
|
294
|
+
961987163,
|
|
295
|
+
1508970993,
|
|
296
|
+
2453635748,
|
|
297
|
+
2870763221,
|
|
298
|
+
3624381080,
|
|
299
|
+
310598401,
|
|
300
|
+
607225278,
|
|
301
|
+
1426881987,
|
|
302
|
+
1925078388,
|
|
303
|
+
2162078206,
|
|
304
|
+
2614888103,
|
|
305
|
+
3248222580,
|
|
306
|
+
3835390401,
|
|
307
|
+
4022224774,
|
|
308
|
+
264347078,
|
|
309
|
+
604807628,
|
|
310
|
+
770255983,
|
|
311
|
+
1249150122,
|
|
312
|
+
1555081692,
|
|
313
|
+
1996064986,
|
|
314
|
+
2554220882,
|
|
315
|
+
2821834349,
|
|
316
|
+
2952996808,
|
|
317
|
+
3210313671,
|
|
318
|
+
3336571891,
|
|
319
|
+
3584528711,
|
|
320
|
+
113926993,
|
|
321
|
+
338241895,
|
|
322
|
+
666307205,
|
|
323
|
+
773529912,
|
|
324
|
+
1294757372,
|
|
325
|
+
1396182291,
|
|
326
|
+
1695183700,
|
|
327
|
+
1986661051,
|
|
328
|
+
2177026350,
|
|
329
|
+
2456956037,
|
|
330
|
+
2730485921,
|
|
331
|
+
2820302411,
|
|
332
|
+
3259730800,
|
|
333
|
+
3345764771,
|
|
334
|
+
3516065817,
|
|
335
|
+
3600352804,
|
|
336
|
+
4094571909,
|
|
337
|
+
275423344,
|
|
338
|
+
430227734,
|
|
339
|
+
506948616,
|
|
340
|
+
659060556,
|
|
341
|
+
883997877,
|
|
342
|
+
958139571,
|
|
343
|
+
1322822218,
|
|
344
|
+
1537002063,
|
|
345
|
+
1747873779,
|
|
346
|
+
1955562222,
|
|
347
|
+
2024104815,
|
|
348
|
+
2227730452,
|
|
349
|
+
2361852424,
|
|
350
|
+
2428436474,
|
|
351
|
+
2756734187,
|
|
352
|
+
3204031479,
|
|
353
|
+
3329325298
|
|
354
|
+
]), j = new Uint32Array(64);
|
|
355
|
+
var Se = class extends _e {
|
|
356
|
+
constructor(e) {
|
|
357
|
+
super(64, e, 8, !1);
|
|
358
|
+
}
|
|
359
|
+
get() {
|
|
360
|
+
let { A: e, B: t, C: n, D: r, E: i, F: a, G: o, H: s } = this;
|
|
361
|
+
return [
|
|
362
|
+
e,
|
|
363
|
+
t,
|
|
364
|
+
n,
|
|
365
|
+
r,
|
|
366
|
+
i,
|
|
367
|
+
a,
|
|
368
|
+
o,
|
|
369
|
+
s
|
|
370
|
+
];
|
|
371
|
+
}
|
|
372
|
+
set(e, t, n, r, i, a, o, s) {
|
|
373
|
+
this.A = e | 0, this.B = t | 0, this.C = n | 0, this.D = r | 0, this.E = i | 0, this.F = a | 0, this.G = o | 0, this.H = s | 0;
|
|
374
|
+
}
|
|
375
|
+
process(e, t) {
|
|
376
|
+
for (let n = 0; n < 16; n++, t += 4) j[n] = e.getUint32(t, !1);
|
|
377
|
+
for (let e = 16; e < 64; e++) {
|
|
378
|
+
let t = j[e - 15], n = j[e - 2], r = O(t, 7) ^ O(t, 18) ^ t >>> 3;
|
|
379
|
+
j[e] = (O(n, 17) ^ O(n, 19) ^ n >>> 10) + j[e - 7] + r + j[e - 16] | 0;
|
|
380
|
+
}
|
|
381
|
+
let { A: n, B: r, C: i, D: a, E: o, F: s, G: c, H: l } = this;
|
|
382
|
+
for (let e = 0; e < 64; e++) {
|
|
383
|
+
let t = O(o, 6) ^ O(o, 11) ^ O(o, 25), u = l + t + he(o, s, c) + xe[e] + j[e] | 0, d = (O(n, 2) ^ O(n, 13) ^ O(n, 22)) + ge(n, r, i) | 0;
|
|
384
|
+
l = c, c = s, s = o, o = a + u | 0, a = i, i = r, r = n, n = u + d | 0;
|
|
385
|
+
}
|
|
386
|
+
n = n + this.A | 0, r = r + this.B | 0, i = i + this.C | 0, a = a + this.D | 0, o = o + this.E | 0, s = s + this.F | 0, c = c + this.G | 0, l = l + this.H | 0, this.set(n, r, i, a, o, s, c, l);
|
|
387
|
+
}
|
|
388
|
+
roundClean() {
|
|
389
|
+
se(j);
|
|
390
|
+
}
|
|
391
|
+
destroy() {
|
|
392
|
+
this.destroyed = !0, this.set(0, 0, 0, 0, 0, 0, 0, 0), se(this.buffer);
|
|
393
|
+
}
|
|
394
|
+
}, Ce = class extends Se {
|
|
395
|
+
A = k[0] | 0;
|
|
396
|
+
B = k[1] | 0;
|
|
397
|
+
C = k[2] | 0;
|
|
398
|
+
D = k[3] | 0;
|
|
399
|
+
E = k[4] | 0;
|
|
400
|
+
F = k[5] | 0;
|
|
401
|
+
G = k[6] | 0;
|
|
402
|
+
H = k[7] | 0;
|
|
403
|
+
constructor() {
|
|
404
|
+
super(32);
|
|
405
|
+
}
|
|
406
|
+
};
|
|
407
|
+
const we = be(`0x428a2f98d728ae22.0x7137449123ef65cd.0xb5c0fbcfec4d3b2f.0xe9b5dba58189dbbc.0x3956c25bf348b538.0x59f111f1b605d019.0x923f82a4af194f9b.0xab1c5ed5da6d8118.0xd807aa98a3030242.0x12835b0145706fbe.0x243185be4ee4b28c.0x550c7dc3d5ffb4e2.0x72be5d74f27b896f.0x80deb1fe3b1696b1.0x9bdc06a725c71235.0xc19bf174cf692694.0xe49b69c19ef14ad2.0xefbe4786384f25e3.0x0fc19dc68b8cd5b5.0x240ca1cc77ac9c65.0x2de92c6f592b0275.0x4a7484aa6ea6e483.0x5cb0a9dcbd41fbd4.0x76f988da831153b5.0x983e5152ee66dfab.0xa831c66d2db43210.0xb00327c898fb213f.0xbf597fc7beef0ee4.0xc6e00bf33da88fc2.0xd5a79147930aa725.0x06ca6351e003826f.0x142929670a0e6e70.0x27b70a8546d22ffc.0x2e1b21385c26c926.0x4d2c6dfc5ac42aed.0x53380d139d95b3df.0x650a73548baf63de.0x766a0abb3c77b2a8.0x81c2c92e47edaee6.0x92722c851482353b.0xa2bfe8a14cf10364.0xa81a664bbc423001.0xc24b8b70d0f89791.0xc76c51a30654be30.0xd192e819d6ef5218.0xd69906245565a910.0xf40e35855771202a.0x106aa07032bbd1b8.0x19a4c116b8d2d0c8.0x1e376c085141ab53.0x2748774cdf8eeb99.0x34b0bcb5e19b48a8.0x391c0cb3c5c95a63.0x4ed8aa4ae3418acb.0x5b9cca4f7763e373.0x682e6ff3d6b2b8a3.0x748f82ee5defb2fc.0x78a5636f43172f60.0x84c87814a1f0ab72.0x8cc702081a6439ec.0x90befffa23631e28.0xa4506cebde82bde9.0xbef9a3f7b2c67915.0xc67178f2e372532b.0xca273eceea26619c.0xd186b8c721c0c207.0xeada7dd6cde0eb1e.0xf57d4f7fee6ed178.0x06f067aa72176fba.0x0a637dc5a2c898a6.0x113f9804bef90dae.0x1b710b35131c471b.0x28db77f523047d84.0x32caab7b40c72493.0x3c9ebe0a15c9bebc.0x431d67c49c100d4c.0x4cc5d4becb3e42b6.0x597f299cfc657e2a.0x5fcb6fab3ad6faec.0x6c44198c4a475817`.split(`.`).map((e) => BigInt(e)));
|
|
408
|
+
we[0], we[1];
|
|
409
|
+
const Te = pe(() => new Ce(), me(1)), Ee = (e) => `generaltranslation Formatting Error: Invalid cutoff style: ${e}.`, De = `DEFAULT_TERMINATOR_KEY`, Oe = {
|
|
410
|
+
ellipsis: {
|
|
411
|
+
fr: {
|
|
412
|
+
terminator: `…`,
|
|
413
|
+
separator: ` `
|
|
414
|
+
},
|
|
415
|
+
zh: {
|
|
416
|
+
terminator: `……`,
|
|
417
|
+
separator: void 0
|
|
418
|
+
},
|
|
419
|
+
ja: {
|
|
420
|
+
terminator: `……`,
|
|
421
|
+
separator: void 0
|
|
422
|
+
},
|
|
423
|
+
[De]: {
|
|
424
|
+
terminator: `…`,
|
|
425
|
+
separator: void 0
|
|
426
|
+
}
|
|
427
|
+
},
|
|
428
|
+
none: { [De]: {
|
|
429
|
+
terminator: void 0,
|
|
430
|
+
separator: void 0
|
|
431
|
+
} }
|
|
432
|
+
};
|
|
433
|
+
var ke = class e {
|
|
434
|
+
static resolveLocale(e) {
|
|
435
|
+
try {
|
|
436
|
+
let t = e ? Array.isArray(e) ? e.map(String) : [String(e)] : [`en`], [n] = Intl.getCanonicalLocales(t);
|
|
437
|
+
return n ?? `en`;
|
|
438
|
+
} catch {
|
|
439
|
+
return `en`;
|
|
440
|
+
}
|
|
441
|
+
}
|
|
442
|
+
constructor(t, n = {}) {
|
|
443
|
+
this.locale = e.resolveLocale(t);
|
|
444
|
+
let r = n.style ?? `ellipsis`;
|
|
445
|
+
if (!Oe[r]) throw Error(Ee(r));
|
|
446
|
+
let i = n.maxChars === void 0 ? void 0 : Oe[r][new Intl.Locale(this.locale).language] || Oe[r].DEFAULT_TERMINATOR_KEY, a = n.terminator ?? i?.terminator, o = a == null ? void 0 : n.separator ?? i?.separator;
|
|
447
|
+
this.additionLength = (a?.length ?? 0) + (o?.length ?? 0), n.maxChars !== void 0 && Math.abs(n.maxChars) < this.additionLength && (a = void 0, o = void 0), this.options = {
|
|
448
|
+
maxChars: n.maxChars,
|
|
449
|
+
style: n.maxChars === void 0 ? void 0 : r,
|
|
450
|
+
terminator: a,
|
|
451
|
+
separator: o
|
|
452
|
+
};
|
|
453
|
+
}
|
|
454
|
+
format(e) {
|
|
455
|
+
return this.formatToParts(e).join(``);
|
|
456
|
+
}
|
|
457
|
+
formatToParts(e) {
|
|
458
|
+
let { maxChars: t, terminator: n, separator: r } = this.options, i = t === void 0 || Math.abs(t) >= e.length ? t : t >= 0 ? Math.max(0, t - this.additionLength) : Math.min(0, t + this.additionLength), a = i !== void 0 && i > -1 ? e.slice(0, i) : e.slice(i);
|
|
459
|
+
return t == null || i == null || i === 0 || n == null || e.length <= Math.abs(t) ? [a] : i > 0 ? r == null ? [a, n] : [
|
|
460
|
+
a,
|
|
461
|
+
r,
|
|
462
|
+
n
|
|
463
|
+
] : r == null ? [n, a] : [
|
|
464
|
+
n,
|
|
465
|
+
r,
|
|
466
|
+
a
|
|
467
|
+
];
|
|
468
|
+
}
|
|
469
|
+
resolvedOptions() {
|
|
470
|
+
return this.options;
|
|
471
|
+
}
|
|
472
|
+
};
|
|
473
|
+
const Ae = {
|
|
474
|
+
Collator: Intl.Collator,
|
|
475
|
+
DateTimeFormat: Intl.DateTimeFormat,
|
|
476
|
+
DisplayNames: Intl.DisplayNames,
|
|
477
|
+
ListFormat: Intl.ListFormat,
|
|
478
|
+
Locale: Intl.Locale,
|
|
479
|
+
NumberFormat: Intl.NumberFormat,
|
|
480
|
+
PluralRules: Intl.PluralRules,
|
|
481
|
+
RelativeTimeFormat: Intl.RelativeTimeFormat,
|
|
482
|
+
Segmenter: Intl.Segmenter,
|
|
483
|
+
CutoffFormat: ke
|
|
484
|
+
}, je = new class {
|
|
485
|
+
constructor() {
|
|
486
|
+
this.cache = {};
|
|
487
|
+
}
|
|
488
|
+
generateKey(e, t = {}) {
|
|
489
|
+
return `${e ? Array.isArray(e) ? e.map((e) => String(e)).join(`,`) : String(e) : `undefined`}:${t ? JSON.stringify(t, Object.keys(t).sort()) : `{}`}`;
|
|
490
|
+
}
|
|
491
|
+
get(e, ...t) {
|
|
492
|
+
let [n = `en`, r = {}] = t, i = this.generateKey(n, r), a = this.cache[e];
|
|
493
|
+
a === void 0 && (a = {}, this.cache[e] = a);
|
|
494
|
+
let o = a[i];
|
|
495
|
+
return o === void 0 && (o = new Ae[e](...t), a[i] = o), o;
|
|
496
|
+
}
|
|
497
|
+
}();
|
|
498
|
+
function Me(e) {
|
|
499
|
+
return je.get(`PluralRules`, e);
|
|
500
|
+
}
|
|
501
|
+
var M = m({
|
|
502
|
+
__addDisposableResource: () => it,
|
|
503
|
+
__assign: () => F,
|
|
504
|
+
__asyncDelegator: () => Xe,
|
|
505
|
+
__asyncGenerator: () => Ye,
|
|
506
|
+
__asyncValues: () => Ze,
|
|
507
|
+
__await: () => P,
|
|
508
|
+
__awaiter: () => He,
|
|
509
|
+
__classPrivateFieldGet: () => tt,
|
|
510
|
+
__classPrivateFieldIn: () => rt,
|
|
511
|
+
__classPrivateFieldSet: () => nt,
|
|
512
|
+
__createBinding: () => I,
|
|
513
|
+
__decorate: () => Fe,
|
|
514
|
+
__disposeResources: () => at,
|
|
515
|
+
__esDecorate: () => Le,
|
|
516
|
+
__exportStar: () => We,
|
|
517
|
+
__extends: () => Ne,
|
|
518
|
+
__generator: () => Ue,
|
|
519
|
+
__importDefault: () => et,
|
|
520
|
+
__importStar: () => $e,
|
|
521
|
+
__makeTemplateObject: () => Qe,
|
|
522
|
+
__metadata: () => Ve,
|
|
523
|
+
__param: () => Ie,
|
|
524
|
+
__propKey: () => ze,
|
|
525
|
+
__read: () => Ge,
|
|
526
|
+
__rest: () => Pe,
|
|
527
|
+
__rewriteRelativeImportExtension: () => ot,
|
|
528
|
+
__runInitializers: () => Re,
|
|
529
|
+
__setFunctionName: () => Be,
|
|
530
|
+
__spread: () => Ke,
|
|
531
|
+
__spreadArray: () => Je,
|
|
532
|
+
__spreadArrays: () => qe,
|
|
533
|
+
__values: () => N,
|
|
534
|
+
default: () => ut
|
|
535
|
+
});
|
|
536
|
+
function Ne(e, t) {
|
|
537
|
+
if (typeof t != `function` && t !== null) throw TypeError(`Class extends value ` + String(t) + ` is not a constructor or null`);
|
|
538
|
+
st(e, t);
|
|
539
|
+
function n() {
|
|
540
|
+
this.constructor = e;
|
|
541
|
+
}
|
|
542
|
+
e.prototype = t === null ? Object.create(t) : (n.prototype = t.prototype, new n());
|
|
543
|
+
}
|
|
544
|
+
function Pe(e, t) {
|
|
545
|
+
var n = {};
|
|
546
|
+
for (var r in e) Object.prototype.hasOwnProperty.call(e, r) && t.indexOf(r) < 0 && (n[r] = e[r]);
|
|
547
|
+
if (e != null && typeof Object.getOwnPropertySymbols == `function`) for (var i = 0, r = Object.getOwnPropertySymbols(e); i < r.length; i++) t.indexOf(r[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, r[i]) && (n[r[i]] = e[r[i]]);
|
|
548
|
+
return n;
|
|
549
|
+
}
|
|
550
|
+
function Fe(e, t, n, r) {
|
|
551
|
+
var i = arguments.length, a = i < 3 ? t : r === null ? r = Object.getOwnPropertyDescriptor(t, n) : r, o;
|
|
552
|
+
if (typeof Reflect == `object` && typeof Reflect.decorate == `function`) a = Reflect.decorate(e, t, n, r);
|
|
553
|
+
else for (var s = e.length - 1; s >= 0; s--) (o = e[s]) && (a = (i < 3 ? o(a) : i > 3 ? o(t, n, a) : o(t, n)) || a);
|
|
554
|
+
return i > 3 && a && Object.defineProperty(t, n, a), a;
|
|
555
|
+
}
|
|
556
|
+
function Ie(e, t) {
|
|
557
|
+
return function(n, r) {
|
|
558
|
+
t(n, r, e);
|
|
559
|
+
};
|
|
560
|
+
}
|
|
561
|
+
function Le(e, t, n, r, i, a) {
|
|
562
|
+
function o(e) {
|
|
563
|
+
if (e !== void 0 && typeof e != `function`) throw TypeError(`Function expected`);
|
|
564
|
+
return e;
|
|
565
|
+
}
|
|
566
|
+
for (var s = r.kind, c = s === `getter` ? `get` : s === `setter` ? `set` : `value`, l = !t && e ? r.static ? e : e.prototype : null, u = t || (l ? Object.getOwnPropertyDescriptor(l, r.name) : {}), d, f = !1, p = n.length - 1; p >= 0; p--) {
|
|
567
|
+
var m = {};
|
|
568
|
+
for (var h in r) m[h] = h === `access` ? {} : r[h];
|
|
569
|
+
for (var h in r.access) m.access[h] = r.access[h];
|
|
570
|
+
m.addInitializer = function(e) {
|
|
571
|
+
if (f) throw TypeError(`Cannot add initializers after decoration has completed`);
|
|
572
|
+
a.push(o(e || null));
|
|
573
|
+
};
|
|
574
|
+
var g = (0, n[p])(s === `accessor` ? {
|
|
575
|
+
get: u.get,
|
|
576
|
+
set: u.set
|
|
577
|
+
} : u[c], m);
|
|
578
|
+
if (s === `accessor`) {
|
|
579
|
+
if (g === void 0) continue;
|
|
580
|
+
if (typeof g != `object` || !g) throw TypeError(`Object expected`);
|
|
581
|
+
(d = o(g.get)) && (u.get = d), (d = o(g.set)) && (u.set = d), (d = o(g.init)) && i.unshift(d);
|
|
582
|
+
} else (d = o(g)) && (s === `field` ? i.unshift(d) : u[c] = d);
|
|
583
|
+
}
|
|
584
|
+
l && Object.defineProperty(l, r.name, u), f = !0;
|
|
585
|
+
}
|
|
586
|
+
function Re(e, t, n) {
|
|
587
|
+
for (var r = arguments.length > 2, i = 0; i < t.length; i++) n = r ? t[i].call(e, n) : t[i].call(e);
|
|
588
|
+
return r ? n : void 0;
|
|
589
|
+
}
|
|
590
|
+
function ze(e) {
|
|
591
|
+
return typeof e == `symbol` ? e : `${e}`;
|
|
592
|
+
}
|
|
593
|
+
function Be(e, t, n) {
|
|
594
|
+
return typeof t == `symbol` && (t = t.description ? `[${t.description}]` : ``), Object.defineProperty(e, `name`, {
|
|
595
|
+
configurable: !0,
|
|
596
|
+
value: n ? `${n} ${t}` : t
|
|
597
|
+
});
|
|
598
|
+
}
|
|
599
|
+
function Ve(e, t) {
|
|
600
|
+
if (typeof Reflect == `object` && typeof Reflect.metadata == `function`) return Reflect.metadata(e, t);
|
|
601
|
+
}
|
|
602
|
+
function He(e, t, n, r) {
|
|
603
|
+
function i(e) {
|
|
604
|
+
return e instanceof n ? e : new n(function(t) {
|
|
605
|
+
t(e);
|
|
606
|
+
});
|
|
607
|
+
}
|
|
608
|
+
return new (n ||= Promise)(function(n, a) {
|
|
609
|
+
function o(e) {
|
|
610
|
+
try {
|
|
611
|
+
c(r.next(e));
|
|
612
|
+
} catch (e) {
|
|
613
|
+
a(e);
|
|
614
|
+
}
|
|
615
|
+
}
|
|
616
|
+
function s(e) {
|
|
617
|
+
try {
|
|
618
|
+
c(r.throw(e));
|
|
619
|
+
} catch (e) {
|
|
620
|
+
a(e);
|
|
621
|
+
}
|
|
622
|
+
}
|
|
623
|
+
function c(e) {
|
|
624
|
+
e.done ? n(e.value) : i(e.value).then(o, s);
|
|
625
|
+
}
|
|
626
|
+
c((r = r.apply(e, t || [])).next());
|
|
627
|
+
});
|
|
628
|
+
}
|
|
629
|
+
function Ue(e, t) {
|
|
630
|
+
var n = {
|
|
631
|
+
label: 0,
|
|
632
|
+
sent: function() {
|
|
633
|
+
if (a[0] & 1) throw a[1];
|
|
634
|
+
return a[1];
|
|
635
|
+
},
|
|
636
|
+
trys: [],
|
|
637
|
+
ops: []
|
|
638
|
+
}, r, i, a, o = Object.create((typeof Iterator == `function` ? Iterator : Object).prototype);
|
|
639
|
+
return o.next = s(0), o.throw = s(1), o.return = s(2), typeof Symbol == `function` && (o[Symbol.iterator] = function() {
|
|
640
|
+
return this;
|
|
641
|
+
}), o;
|
|
642
|
+
function s(e) {
|
|
643
|
+
return function(t) {
|
|
644
|
+
return c([e, t]);
|
|
645
|
+
};
|
|
646
|
+
}
|
|
647
|
+
function c(s) {
|
|
648
|
+
if (r) throw TypeError(`Generator is already executing.`);
|
|
649
|
+
for (; o && (o = 0, s[0] && (n = 0)), n;) try {
|
|
650
|
+
if (r = 1, i && (a = s[0] & 2 ? i.return : s[0] ? i.throw || ((a = i.return) && a.call(i), 0) : i.next) && !(a = a.call(i, s[1])).done) return a;
|
|
651
|
+
switch (i = 0, a && (s = [s[0] & 2, a.value]), s[0]) {
|
|
652
|
+
case 0:
|
|
653
|
+
case 1:
|
|
654
|
+
a = s;
|
|
655
|
+
break;
|
|
656
|
+
case 4: return n.label++, {
|
|
657
|
+
value: s[1],
|
|
658
|
+
done: !1
|
|
659
|
+
};
|
|
660
|
+
case 5:
|
|
661
|
+
n.label++, i = s[1], s = [0];
|
|
662
|
+
continue;
|
|
663
|
+
case 7:
|
|
664
|
+
s = n.ops.pop(), n.trys.pop();
|
|
665
|
+
continue;
|
|
666
|
+
default:
|
|
667
|
+
if ((a = n.trys, !(a = a.length > 0 && a[a.length - 1])) && (s[0] === 6 || s[0] === 2)) {
|
|
668
|
+
n = 0;
|
|
669
|
+
continue;
|
|
670
|
+
}
|
|
671
|
+
if (s[0] === 3 && (!a || s[1] > a[0] && s[1] < a[3])) {
|
|
672
|
+
n.label = s[1];
|
|
673
|
+
break;
|
|
674
|
+
}
|
|
675
|
+
if (s[0] === 6 && n.label < a[1]) {
|
|
676
|
+
n.label = a[1], a = s;
|
|
677
|
+
break;
|
|
678
|
+
}
|
|
679
|
+
if (a && n.label < a[2]) {
|
|
680
|
+
n.label = a[2], n.ops.push(s);
|
|
681
|
+
break;
|
|
682
|
+
}
|
|
683
|
+
a[2] && n.ops.pop(), n.trys.pop();
|
|
684
|
+
continue;
|
|
685
|
+
}
|
|
686
|
+
s = t.call(e, n);
|
|
687
|
+
} catch (e) {
|
|
688
|
+
s = [6, e], i = 0;
|
|
689
|
+
} finally {
|
|
690
|
+
r = a = 0;
|
|
691
|
+
}
|
|
692
|
+
if (s[0] & 5) throw s[1];
|
|
693
|
+
return {
|
|
694
|
+
value: s[0] ? s[1] : void 0,
|
|
695
|
+
done: !0
|
|
696
|
+
};
|
|
697
|
+
}
|
|
698
|
+
}
|
|
699
|
+
function We(e, t) {
|
|
700
|
+
for (var n in e) n !== `default` && !Object.prototype.hasOwnProperty.call(t, n) && I(t, e, n);
|
|
701
|
+
}
|
|
702
|
+
function N(e) {
|
|
703
|
+
var t = typeof Symbol == `function` && Symbol.iterator, n = t && e[t], r = 0;
|
|
704
|
+
if (n) return n.call(e);
|
|
705
|
+
if (e && typeof e.length == `number`) return { next: function() {
|
|
706
|
+
return e && r >= e.length && (e = void 0), {
|
|
707
|
+
value: e && e[r++],
|
|
708
|
+
done: !e
|
|
709
|
+
};
|
|
710
|
+
} };
|
|
711
|
+
throw TypeError(t ? `Object is not iterable.` : `Symbol.iterator is not defined.`);
|
|
712
|
+
}
|
|
713
|
+
function Ge(e, t) {
|
|
714
|
+
var n = typeof Symbol == `function` && e[Symbol.iterator];
|
|
715
|
+
if (!n) return e;
|
|
716
|
+
var r = n.call(e), i, a = [], o;
|
|
717
|
+
try {
|
|
718
|
+
for (; (t === void 0 || t-- > 0) && !(i = r.next()).done;) a.push(i.value);
|
|
719
|
+
} catch (e) {
|
|
720
|
+
o = { error: e };
|
|
721
|
+
} finally {
|
|
722
|
+
try {
|
|
723
|
+
i && !i.done && (n = r.return) && n.call(r);
|
|
724
|
+
} finally {
|
|
725
|
+
if (o) throw o.error;
|
|
726
|
+
}
|
|
727
|
+
}
|
|
728
|
+
return a;
|
|
729
|
+
}
|
|
730
|
+
function Ke() {
|
|
731
|
+
for (var e = [], t = 0; t < arguments.length; t++) e = e.concat(Ge(arguments[t]));
|
|
732
|
+
return e;
|
|
733
|
+
}
|
|
734
|
+
function qe() {
|
|
735
|
+
for (var e = 0, t = 0, n = arguments.length; t < n; t++) e += arguments[t].length;
|
|
736
|
+
for (var r = Array(e), i = 0, t = 0; t < n; t++) for (var a = arguments[t], o = 0, s = a.length; o < s; o++, i++) r[i] = a[o];
|
|
737
|
+
return r;
|
|
738
|
+
}
|
|
739
|
+
function Je(e, t, n) {
|
|
740
|
+
if (n || arguments.length === 2) for (var r = 0, i = t.length, a; r < i; r++) (a || !(r in t)) && (a ||= Array.prototype.slice.call(t, 0, r), a[r] = t[r]);
|
|
741
|
+
return e.concat(a || Array.prototype.slice.call(t));
|
|
742
|
+
}
|
|
743
|
+
function P(e) {
|
|
744
|
+
return this instanceof P ? (this.v = e, this) : new P(e);
|
|
745
|
+
}
|
|
746
|
+
function Ye(e, t, n) {
|
|
747
|
+
if (!Symbol.asyncIterator) throw TypeError(`Symbol.asyncIterator is not defined.`);
|
|
748
|
+
var r = n.apply(e, t || []), i, a = [];
|
|
749
|
+
return i = Object.create((typeof AsyncIterator == `function` ? AsyncIterator : Object).prototype), s(`next`), s(`throw`), s(`return`, o), i[Symbol.asyncIterator] = function() {
|
|
750
|
+
return this;
|
|
751
|
+
}, i;
|
|
752
|
+
function o(e) {
|
|
753
|
+
return function(t) {
|
|
754
|
+
return Promise.resolve(t).then(e, d);
|
|
755
|
+
};
|
|
756
|
+
}
|
|
757
|
+
function s(e, t) {
|
|
758
|
+
r[e] && (i[e] = function(t) {
|
|
759
|
+
return new Promise(function(n, r) {
|
|
760
|
+
a.push([
|
|
761
|
+
e,
|
|
762
|
+
t,
|
|
763
|
+
n,
|
|
764
|
+
r
|
|
765
|
+
]) > 1 || c(e, t);
|
|
766
|
+
});
|
|
767
|
+
}, t && (i[e] = t(i[e])));
|
|
768
|
+
}
|
|
769
|
+
function c(e, t) {
|
|
770
|
+
try {
|
|
771
|
+
l(r[e](t));
|
|
772
|
+
} catch (e) {
|
|
773
|
+
f(a[0][3], e);
|
|
774
|
+
}
|
|
775
|
+
}
|
|
776
|
+
function l(e) {
|
|
777
|
+
e.value instanceof P ? Promise.resolve(e.value.v).then(u, d) : f(a[0][2], e);
|
|
778
|
+
}
|
|
779
|
+
function u(e) {
|
|
780
|
+
c(`next`, e);
|
|
781
|
+
}
|
|
782
|
+
function d(e) {
|
|
783
|
+
c(`throw`, e);
|
|
784
|
+
}
|
|
785
|
+
function f(e, t) {
|
|
786
|
+
e(t), a.shift(), a.length && c(a[0][0], a[0][1]);
|
|
787
|
+
}
|
|
788
|
+
}
|
|
789
|
+
function Xe(e) {
|
|
790
|
+
var t, n;
|
|
791
|
+
return t = {}, r(`next`), r(`throw`, function(e) {
|
|
792
|
+
throw e;
|
|
793
|
+
}), r(`return`), t[Symbol.iterator] = function() {
|
|
794
|
+
return this;
|
|
795
|
+
}, t;
|
|
796
|
+
function r(r, i) {
|
|
797
|
+
t[r] = e[r] ? function(t) {
|
|
798
|
+
return (n = !n) ? {
|
|
799
|
+
value: P(e[r](t)),
|
|
800
|
+
done: !1
|
|
801
|
+
} : i ? i(t) : t;
|
|
802
|
+
} : i;
|
|
803
|
+
}
|
|
804
|
+
}
|
|
805
|
+
function Ze(e) {
|
|
806
|
+
if (!Symbol.asyncIterator) throw TypeError(`Symbol.asyncIterator is not defined.`);
|
|
807
|
+
var t = e[Symbol.asyncIterator], n;
|
|
808
|
+
return t ? t.call(e) : (e = typeof N == `function` ? N(e) : e[Symbol.iterator](), n = {}, r(`next`), r(`throw`), r(`return`), n[Symbol.asyncIterator] = function() {
|
|
809
|
+
return this;
|
|
810
|
+
}, n);
|
|
811
|
+
function r(t) {
|
|
812
|
+
n[t] = e[t] && function(n) {
|
|
813
|
+
return new Promise(function(r, a) {
|
|
814
|
+
n = e[t](n), i(r, a, n.done, n.value);
|
|
815
|
+
});
|
|
816
|
+
};
|
|
817
|
+
}
|
|
818
|
+
function i(e, t, n, r) {
|
|
819
|
+
Promise.resolve(r).then(function(t) {
|
|
820
|
+
e({
|
|
821
|
+
value: t,
|
|
822
|
+
done: n
|
|
823
|
+
});
|
|
824
|
+
}, t);
|
|
825
|
+
}
|
|
826
|
+
}
|
|
827
|
+
function Qe(e, t) {
|
|
828
|
+
return Object.defineProperty ? Object.defineProperty(e, `raw`, { value: t }) : e.raw = t, e;
|
|
829
|
+
}
|
|
830
|
+
function $e(e) {
|
|
831
|
+
if (e && e.__esModule) return e;
|
|
832
|
+
var t = {};
|
|
833
|
+
if (e != null) for (var n = L(e), r = 0; r < n.length; r++) n[r] !== `default` && I(t, e, n[r]);
|
|
834
|
+
return ct(t, e), t;
|
|
835
|
+
}
|
|
836
|
+
function et(e) {
|
|
837
|
+
return e && e.__esModule ? e : { default: e };
|
|
838
|
+
}
|
|
839
|
+
function tt(e, t, n, r) {
|
|
840
|
+
if (n === `a` && !r) throw TypeError(`Private accessor was defined without a getter`);
|
|
841
|
+
if (typeof t == `function` ? e !== t || !r : !t.has(e)) throw TypeError(`Cannot read private member from an object whose class did not declare it`);
|
|
842
|
+
return n === `m` ? r : n === `a` ? r.call(e) : r ? r.value : t.get(e);
|
|
843
|
+
}
|
|
844
|
+
function nt(e, t, n, r, i) {
|
|
845
|
+
if (r === `m`) throw TypeError(`Private method is not writable`);
|
|
846
|
+
if (r === `a` && !i) throw TypeError(`Private accessor was defined without a setter`);
|
|
847
|
+
if (typeof t == `function` ? e !== t || !i : !t.has(e)) throw TypeError(`Cannot write private member to an object whose class did not declare it`);
|
|
848
|
+
return r === `a` ? i.call(e, n) : i ? i.value = n : t.set(e, n), n;
|
|
849
|
+
}
|
|
850
|
+
function rt(e, t) {
|
|
851
|
+
if (t === null || typeof t != `object` && typeof t != `function`) throw TypeError(`Cannot use 'in' operator on non-object`);
|
|
852
|
+
return typeof e == `function` ? t === e : e.has(t);
|
|
853
|
+
}
|
|
854
|
+
function it(e, t, n) {
|
|
855
|
+
if (t != null) {
|
|
856
|
+
if (typeof t != `object` && typeof t != `function`) throw TypeError(`Object expected.`);
|
|
857
|
+
var r, i;
|
|
858
|
+
if (n) {
|
|
859
|
+
if (!Symbol.asyncDispose) throw TypeError(`Symbol.asyncDispose is not defined.`);
|
|
860
|
+
r = t[Symbol.asyncDispose];
|
|
861
|
+
}
|
|
862
|
+
if (r === void 0) {
|
|
863
|
+
if (!Symbol.dispose) throw TypeError(`Symbol.dispose is not defined.`);
|
|
864
|
+
r = t[Symbol.dispose], n && (i = r);
|
|
865
|
+
}
|
|
866
|
+
if (typeof r != `function`) throw TypeError(`Object not disposable.`);
|
|
867
|
+
i && (r = function() {
|
|
868
|
+
try {
|
|
869
|
+
i.call(this);
|
|
870
|
+
} catch (e) {
|
|
871
|
+
return Promise.reject(e);
|
|
872
|
+
}
|
|
873
|
+
}), e.stack.push({
|
|
874
|
+
value: t,
|
|
875
|
+
dispose: r,
|
|
876
|
+
async: n
|
|
877
|
+
});
|
|
878
|
+
} else n && e.stack.push({ async: !0 });
|
|
879
|
+
return t;
|
|
880
|
+
}
|
|
881
|
+
function at(e) {
|
|
882
|
+
function t(t) {
|
|
883
|
+
e.error = e.hasError ? new lt(t, e.error, `An error was suppressed during disposal.`) : t, e.hasError = !0;
|
|
884
|
+
}
|
|
885
|
+
var n, r = 0;
|
|
886
|
+
function i() {
|
|
887
|
+
for (; n = e.stack.pop();) try {
|
|
888
|
+
if (!n.async && r === 1) return r = 0, e.stack.push(n), Promise.resolve().then(i);
|
|
889
|
+
if (n.dispose) {
|
|
890
|
+
var a = n.dispose.call(n.value);
|
|
891
|
+
if (n.async) return r |= 2, Promise.resolve(a).then(i, function(e) {
|
|
892
|
+
return t(e), i();
|
|
893
|
+
});
|
|
894
|
+
} else r |= 1;
|
|
895
|
+
} catch (e) {
|
|
896
|
+
t(e);
|
|
897
|
+
}
|
|
898
|
+
if (r === 1) return e.hasError ? Promise.reject(e.error) : Promise.resolve();
|
|
899
|
+
if (e.hasError) throw e.error;
|
|
900
|
+
}
|
|
901
|
+
return i();
|
|
902
|
+
}
|
|
903
|
+
function ot(e, t) {
|
|
904
|
+
return typeof e == `string` && /^\.\.?\//.test(e) ? e.replace(/\.(tsx)$|((?:\.d)?)((?:\.[^./]+?)?)\.([cm]?)ts$/i, function(e, n, r, i, a) {
|
|
905
|
+
return n ? t ? `.jsx` : `.js` : r && (!i || !a) ? e : r + i + `.` + a.toLowerCase() + `js`;
|
|
906
|
+
}) : e;
|
|
907
|
+
}
|
|
908
|
+
var st, F, I, ct, L, lt, ut, R = f((() => {
|
|
909
|
+
st = function(e, t) {
|
|
910
|
+
return st = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(e, t) {
|
|
911
|
+
e.__proto__ = t;
|
|
912
|
+
} || function(e, t) {
|
|
913
|
+
for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n]);
|
|
914
|
+
}, st(e, t);
|
|
915
|
+
}, F = function() {
|
|
916
|
+
return F = Object.assign || function(e) {
|
|
917
|
+
for (var t, n = 1, r = arguments.length; n < r; n++) for (var i in t = arguments[n], t) Object.prototype.hasOwnProperty.call(t, i) && (e[i] = t[i]);
|
|
918
|
+
return e;
|
|
919
|
+
}, F.apply(this, arguments);
|
|
920
|
+
}, I = Object.create ? (function(e, t, n, r) {
|
|
921
|
+
r === void 0 && (r = n);
|
|
922
|
+
var i = Object.getOwnPropertyDescriptor(t, n);
|
|
923
|
+
(!i || (`get` in i ? !t.__esModule : i.writable || i.configurable)) && (i = {
|
|
924
|
+
enumerable: !0,
|
|
925
|
+
get: function() {
|
|
926
|
+
return t[n];
|
|
927
|
+
}
|
|
928
|
+
}), Object.defineProperty(e, r, i);
|
|
929
|
+
}) : (function(e, t, n, r) {
|
|
930
|
+
r === void 0 && (r = n), e[r] = t[n];
|
|
931
|
+
}), ct = Object.create ? (function(e, t) {
|
|
932
|
+
Object.defineProperty(e, `default`, {
|
|
933
|
+
enumerable: !0,
|
|
934
|
+
value: t
|
|
935
|
+
});
|
|
936
|
+
}) : function(e, t) {
|
|
937
|
+
e.default = t;
|
|
938
|
+
}, L = function(e) {
|
|
939
|
+
return L = Object.getOwnPropertyNames || function(e) {
|
|
940
|
+
var t = [];
|
|
941
|
+
for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && (t[t.length] = n);
|
|
942
|
+
return t;
|
|
943
|
+
}, L(e);
|
|
944
|
+
}, lt = typeof SuppressedError == `function` ? SuppressedError : function(e, t, n) {
|
|
945
|
+
var r = Error(n);
|
|
946
|
+
return r.name = `SuppressedError`, r.error = e, r.suppressed = t, r;
|
|
947
|
+
}, ut = {
|
|
948
|
+
__extends: Ne,
|
|
949
|
+
__assign: F,
|
|
950
|
+
__rest: Pe,
|
|
951
|
+
__decorate: Fe,
|
|
952
|
+
__param: Ie,
|
|
953
|
+
__esDecorate: Le,
|
|
954
|
+
__runInitializers: Re,
|
|
955
|
+
__propKey: ze,
|
|
956
|
+
__setFunctionName: Be,
|
|
957
|
+
__metadata: Ve,
|
|
958
|
+
__awaiter: He,
|
|
959
|
+
__generator: Ue,
|
|
960
|
+
__createBinding: I,
|
|
961
|
+
__exportStar: We,
|
|
962
|
+
__values: N,
|
|
963
|
+
__read: Ge,
|
|
964
|
+
__spread: Ke,
|
|
965
|
+
__spreadArrays: qe,
|
|
966
|
+
__spreadArray: Je,
|
|
967
|
+
__await: P,
|
|
968
|
+
__asyncGenerator: Ye,
|
|
969
|
+
__asyncDelegator: Xe,
|
|
970
|
+
__asyncValues: Ze,
|
|
971
|
+
__makeTemplateObject: Qe,
|
|
972
|
+
__importStar: $e,
|
|
973
|
+
__importDefault: et,
|
|
974
|
+
__classPrivateFieldGet: tt,
|
|
975
|
+
__classPrivateFieldSet: nt,
|
|
976
|
+
__classPrivateFieldIn: rt,
|
|
977
|
+
__addDisposableResource: it,
|
|
978
|
+
__disposeResources: at,
|
|
979
|
+
__rewriteRelativeImportExtension: ot
|
|
980
|
+
};
|
|
981
|
+
})), dt = p(((e) => {
|
|
982
|
+
Object.defineProperty(e, `__esModule`, { value: !0 }), e.ErrorKind = void 0;
|
|
983
|
+
var t;
|
|
984
|
+
(function(e) {
|
|
985
|
+
e[e.EXPECT_ARGUMENT_CLOSING_BRACE = 1] = `EXPECT_ARGUMENT_CLOSING_BRACE`, e[e.EMPTY_ARGUMENT = 2] = `EMPTY_ARGUMENT`, e[e.MALFORMED_ARGUMENT = 3] = `MALFORMED_ARGUMENT`, e[e.EXPECT_ARGUMENT_TYPE = 4] = `EXPECT_ARGUMENT_TYPE`, e[e.INVALID_ARGUMENT_TYPE = 5] = `INVALID_ARGUMENT_TYPE`, e[e.EXPECT_ARGUMENT_STYLE = 6] = `EXPECT_ARGUMENT_STYLE`, e[e.INVALID_NUMBER_SKELETON = 7] = `INVALID_NUMBER_SKELETON`, e[e.INVALID_DATE_TIME_SKELETON = 8] = `INVALID_DATE_TIME_SKELETON`, e[e.EXPECT_NUMBER_SKELETON = 9] = `EXPECT_NUMBER_SKELETON`, e[e.EXPECT_DATE_TIME_SKELETON = 10] = `EXPECT_DATE_TIME_SKELETON`, e[e.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE = 11] = `UNCLOSED_QUOTE_IN_ARGUMENT_STYLE`, e[e.EXPECT_SELECT_ARGUMENT_OPTIONS = 12] = `EXPECT_SELECT_ARGUMENT_OPTIONS`, e[e.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE = 13] = `EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE`, e[e.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE = 14] = `INVALID_PLURAL_ARGUMENT_OFFSET_VALUE`, e[e.EXPECT_SELECT_ARGUMENT_SELECTOR = 15] = `EXPECT_SELECT_ARGUMENT_SELECTOR`, e[e.EXPECT_PLURAL_ARGUMENT_SELECTOR = 16] = `EXPECT_PLURAL_ARGUMENT_SELECTOR`, e[e.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT = 17] = `EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT`, e[e.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT = 18] = `EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT`, e[e.INVALID_PLURAL_ARGUMENT_SELECTOR = 19] = `INVALID_PLURAL_ARGUMENT_SELECTOR`, e[e.DUPLICATE_PLURAL_ARGUMENT_SELECTOR = 20] = `DUPLICATE_PLURAL_ARGUMENT_SELECTOR`, e[e.DUPLICATE_SELECT_ARGUMENT_SELECTOR = 21] = `DUPLICATE_SELECT_ARGUMENT_SELECTOR`, e[e.MISSING_OTHER_CLAUSE = 22] = `MISSING_OTHER_CLAUSE`, e[e.INVALID_TAG = 23] = `INVALID_TAG`, e[e.INVALID_TAG_NAME = 25] = `INVALID_TAG_NAME`, e[e.UNMATCHED_CLOSING_TAG = 26] = `UNMATCHED_CLOSING_TAG`, e[e.UNCLOSED_TAG = 27] = `UNCLOSED_TAG`;
|
|
986
|
+
})(t || (e.ErrorKind = t = {}));
|
|
987
|
+
})), z = p(((e) => {
|
|
988
|
+
Object.defineProperty(e, `__esModule`, { value: !0 }), e.SKELETON_TYPE = e.TYPE = void 0, e.isLiteralElement = r, e.isArgumentElement = i, e.isNumberElement = a, e.isDateElement = o, e.isTimeElement = s, e.isSelectElement = c, e.isPluralElement = l, e.isPoundElement = u, e.isTagElement = d, e.isNumberSkeleton = f, e.isDateTimeSkeleton = p, e.createLiteralElement = m, e.createNumberElement = h;
|
|
989
|
+
var t;
|
|
990
|
+
(function(e) {
|
|
991
|
+
e[e.literal = 0] = `literal`, e[e.argument = 1] = `argument`, e[e.number = 2] = `number`, e[e.date = 3] = `date`, e[e.time = 4] = `time`, e[e.select = 5] = `select`, e[e.plural = 6] = `plural`, e[e.pound = 7] = `pound`, e[e.tag = 8] = `tag`;
|
|
992
|
+
})(t || (e.TYPE = t = {}));
|
|
993
|
+
var n;
|
|
994
|
+
(function(e) {
|
|
995
|
+
e[e.number = 0] = `number`, e[e.dateTime = 1] = `dateTime`;
|
|
996
|
+
})(n || (e.SKELETON_TYPE = n = {}));
|
|
997
|
+
function r(e) {
|
|
998
|
+
return e.type === t.literal;
|
|
999
|
+
}
|
|
1000
|
+
function i(e) {
|
|
1001
|
+
return e.type === t.argument;
|
|
1002
|
+
}
|
|
1003
|
+
function a(e) {
|
|
1004
|
+
return e.type === t.number;
|
|
1005
|
+
}
|
|
1006
|
+
function o(e) {
|
|
1007
|
+
return e.type === t.date;
|
|
1008
|
+
}
|
|
1009
|
+
function s(e) {
|
|
1010
|
+
return e.type === t.time;
|
|
1011
|
+
}
|
|
1012
|
+
function c(e) {
|
|
1013
|
+
return e.type === t.select;
|
|
1014
|
+
}
|
|
1015
|
+
function l(e) {
|
|
1016
|
+
return e.type === t.plural;
|
|
1017
|
+
}
|
|
1018
|
+
function u(e) {
|
|
1019
|
+
return e.type === t.pound;
|
|
1020
|
+
}
|
|
1021
|
+
function d(e) {
|
|
1022
|
+
return e.type === t.tag;
|
|
1023
|
+
}
|
|
1024
|
+
function f(e) {
|
|
1025
|
+
return !!(e && typeof e == `object` && e.type === n.number);
|
|
1026
|
+
}
|
|
1027
|
+
function p(e) {
|
|
1028
|
+
return !!(e && typeof e == `object` && e.type === n.dateTime);
|
|
1029
|
+
}
|
|
1030
|
+
function m(e) {
|
|
1031
|
+
return {
|
|
1032
|
+
type: t.literal,
|
|
1033
|
+
value: e
|
|
1034
|
+
};
|
|
1035
|
+
}
|
|
1036
|
+
function h(e, n) {
|
|
1037
|
+
return {
|
|
1038
|
+
type: t.number,
|
|
1039
|
+
value: e,
|
|
1040
|
+
style: n
|
|
1041
|
+
};
|
|
1042
|
+
}
|
|
1043
|
+
})), ft = p(((e) => {
|
|
1044
|
+
Object.defineProperty(e, `__esModule`, { value: !0 }), e.WHITE_SPACE_REGEX = e.SPACE_SEPARATOR_REGEX = void 0, e.SPACE_SEPARATOR_REGEX = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, e.WHITE_SPACE_REGEX = /[\t-\r \x85\u200E\u200F\u2028\u2029]/;
|
|
1045
|
+
})), pt = p(((e) => {
|
|
1046
|
+
Object.defineProperty(e, `__esModule`, { value: !0 }), e.parseDateTimeSkeleton = n;
|
|
1047
|
+
var t = /(?:[Eec]{1,6}|G{1,5}|[Qq]{1,5}|(?:[yYur]+|U{1,5})|[ML]{1,5}|d{1,2}|D{1,3}|F{1}|[abB]{1,5}|[hkHK]{1,2}|w{1,2}|W{1}|m{1,2}|s{1,2}|[zZOvVxX]{1,4})(?=([^']*'[^']*')*[^']*$)/g;
|
|
1048
|
+
function n(e) {
|
|
1049
|
+
var n = {};
|
|
1050
|
+
return e.replace(t, function(e) {
|
|
1051
|
+
var t = e.length;
|
|
1052
|
+
switch (e[0]) {
|
|
1053
|
+
case `G`:
|
|
1054
|
+
n.era = t === 4 ? `long` : t === 5 ? `narrow` : `short`;
|
|
1055
|
+
break;
|
|
1056
|
+
case `y`:
|
|
1057
|
+
n.year = t === 2 ? `2-digit` : `numeric`;
|
|
1058
|
+
break;
|
|
1059
|
+
case `Y`:
|
|
1060
|
+
case `u`:
|
|
1061
|
+
case `U`:
|
|
1062
|
+
case `r`: throw RangeError("`Y/u/U/r` (year) patterns are not supported, use `y` instead");
|
|
1063
|
+
case `q`:
|
|
1064
|
+
case `Q`: throw RangeError("`q/Q` (quarter) patterns are not supported");
|
|
1065
|
+
case `M`:
|
|
1066
|
+
case `L`:
|
|
1067
|
+
n.month = [
|
|
1068
|
+
`numeric`,
|
|
1069
|
+
`2-digit`,
|
|
1070
|
+
`short`,
|
|
1071
|
+
`long`,
|
|
1072
|
+
`narrow`
|
|
1073
|
+
][t - 1];
|
|
1074
|
+
break;
|
|
1075
|
+
case `w`:
|
|
1076
|
+
case `W`: throw RangeError("`w/W` (week) patterns are not supported");
|
|
1077
|
+
case `d`:
|
|
1078
|
+
n.day = [`numeric`, `2-digit`][t - 1];
|
|
1079
|
+
break;
|
|
1080
|
+
case `D`:
|
|
1081
|
+
case `F`:
|
|
1082
|
+
case `g`: throw RangeError("`D/F/g` (day) patterns are not supported, use `d` instead");
|
|
1083
|
+
case `E`:
|
|
1084
|
+
n.weekday = t === 4 ? `long` : t === 5 ? `narrow` : `short`;
|
|
1085
|
+
break;
|
|
1086
|
+
case `e`:
|
|
1087
|
+
if (t < 4) throw RangeError("`e..eee` (weekday) patterns are not supported");
|
|
1088
|
+
n.weekday = [
|
|
1089
|
+
`short`,
|
|
1090
|
+
`long`,
|
|
1091
|
+
`narrow`,
|
|
1092
|
+
`short`
|
|
1093
|
+
][t - 4];
|
|
1094
|
+
break;
|
|
1095
|
+
case `c`:
|
|
1096
|
+
if (t < 4) throw RangeError("`c..ccc` (weekday) patterns are not supported");
|
|
1097
|
+
n.weekday = [
|
|
1098
|
+
`short`,
|
|
1099
|
+
`long`,
|
|
1100
|
+
`narrow`,
|
|
1101
|
+
`short`
|
|
1102
|
+
][t - 4];
|
|
1103
|
+
break;
|
|
1104
|
+
case `a`:
|
|
1105
|
+
n.hour12 = !0;
|
|
1106
|
+
break;
|
|
1107
|
+
case `b`:
|
|
1108
|
+
case `B`: throw RangeError("`b/B` (period) patterns are not supported, use `a` instead");
|
|
1109
|
+
case `h`:
|
|
1110
|
+
n.hourCycle = `h12`, n.hour = [`numeric`, `2-digit`][t - 1];
|
|
1111
|
+
break;
|
|
1112
|
+
case `H`:
|
|
1113
|
+
n.hourCycle = `h23`, n.hour = [`numeric`, `2-digit`][t - 1];
|
|
1114
|
+
break;
|
|
1115
|
+
case `K`:
|
|
1116
|
+
n.hourCycle = `h11`, n.hour = [`numeric`, `2-digit`][t - 1];
|
|
1117
|
+
break;
|
|
1118
|
+
case `k`:
|
|
1119
|
+
n.hourCycle = `h24`, n.hour = [`numeric`, `2-digit`][t - 1];
|
|
1120
|
+
break;
|
|
1121
|
+
case `j`:
|
|
1122
|
+
case `J`:
|
|
1123
|
+
case `C`: throw RangeError("`j/J/C` (hour) patterns are not supported, use `h/H/K/k` instead");
|
|
1124
|
+
case `m`:
|
|
1125
|
+
n.minute = [`numeric`, `2-digit`][t - 1];
|
|
1126
|
+
break;
|
|
1127
|
+
case `s`:
|
|
1128
|
+
n.second = [`numeric`, `2-digit`][t - 1];
|
|
1129
|
+
break;
|
|
1130
|
+
case `S`:
|
|
1131
|
+
case `A`: throw RangeError("`S/A` (second) patterns are not supported, use `s` instead");
|
|
1132
|
+
case `z`:
|
|
1133
|
+
n.timeZoneName = t < 4 ? `short` : `long`;
|
|
1134
|
+
break;
|
|
1135
|
+
case `Z`:
|
|
1136
|
+
case `O`:
|
|
1137
|
+
case `v`:
|
|
1138
|
+
case `V`:
|
|
1139
|
+
case `X`:
|
|
1140
|
+
case `x`: throw RangeError("`Z/O/v/V/X/x` (timeZone) patterns are not supported, use `z` instead");
|
|
1141
|
+
}
|
|
1142
|
+
return ``;
|
|
1143
|
+
}), n;
|
|
1144
|
+
}
|
|
1145
|
+
})), mt = p(((e) => {
|
|
1146
|
+
Object.defineProperty(e, `__esModule`, { value: !0 }), e.WHITE_SPACE_REGEX = void 0, e.WHITE_SPACE_REGEX = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
|
|
1147
|
+
})), ht = p(((e) => {
|
|
1148
|
+
Object.defineProperty(e, `__esModule`, { value: !0 }), e.parseNumberSkeletonFromString = r, e.parseNumberSkeleton = p;
|
|
1149
|
+
var t = (R(), g(M)), n = mt();
|
|
1150
|
+
function r(e) {
|
|
1151
|
+
if (e.length === 0) throw Error(`Number skeleton cannot be empty`);
|
|
1152
|
+
for (var t = e.split(n.WHITE_SPACE_REGEX).filter(function(e) {
|
|
1153
|
+
return e.length > 0;
|
|
1154
|
+
}), r = [], i = 0, a = t; i < a.length; i++) {
|
|
1155
|
+
var o = a[i].split(`/`);
|
|
1156
|
+
if (o.length === 0) throw Error(`Invalid number skeleton`);
|
|
1157
|
+
for (var s = o[0], c = o.slice(1), l = 0, u = c; l < u.length; l++) if (u[l].length === 0) throw Error(`Invalid number skeleton`);
|
|
1158
|
+
r.push({
|
|
1159
|
+
stem: s,
|
|
1160
|
+
options: c
|
|
1161
|
+
});
|
|
1162
|
+
}
|
|
1163
|
+
return r;
|
|
1164
|
+
}
|
|
1165
|
+
function i(e) {
|
|
1166
|
+
return e.replace(/^(.*?)-/, ``);
|
|
1167
|
+
}
|
|
1168
|
+
var a = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, o = /^(@+)?(\+|#+)?[rs]?$/g, s = /(\*)(0+)|(#+)(0+)|(0+)/g, c = /^(0+)$/;
|
|
1169
|
+
function l(e) {
|
|
1170
|
+
var t = {};
|
|
1171
|
+
return e[e.length - 1] === `r` ? t.roundingPriority = `morePrecision` : e[e.length - 1] === `s` && (t.roundingPriority = `lessPrecision`), e.replace(o, function(e, n, r) {
|
|
1172
|
+
return typeof r == `string` ? r === `+` ? t.minimumSignificantDigits = n.length : n[0] === `#` ? t.maximumSignificantDigits = n.length : (t.minimumSignificantDigits = n.length, t.maximumSignificantDigits = n.length + (typeof r == `string` ? r.length : 0)) : (t.minimumSignificantDigits = n.length, t.maximumSignificantDigits = n.length), ``;
|
|
1173
|
+
}), t;
|
|
1174
|
+
}
|
|
1175
|
+
function u(e) {
|
|
1176
|
+
switch (e) {
|
|
1177
|
+
case `sign-auto`: return { signDisplay: `auto` };
|
|
1178
|
+
case `sign-accounting`:
|
|
1179
|
+
case `()`: return { currencySign: `accounting` };
|
|
1180
|
+
case `sign-always`:
|
|
1181
|
+
case `+!`: return { signDisplay: `always` };
|
|
1182
|
+
case `sign-accounting-always`:
|
|
1183
|
+
case `()!`: return {
|
|
1184
|
+
signDisplay: `always`,
|
|
1185
|
+
currencySign: `accounting`
|
|
1186
|
+
};
|
|
1187
|
+
case `sign-except-zero`:
|
|
1188
|
+
case `+?`: return { signDisplay: `exceptZero` };
|
|
1189
|
+
case `sign-accounting-except-zero`:
|
|
1190
|
+
case `()?`: return {
|
|
1191
|
+
signDisplay: `exceptZero`,
|
|
1192
|
+
currencySign: `accounting`
|
|
1193
|
+
};
|
|
1194
|
+
case `sign-never`:
|
|
1195
|
+
case `+_`: return { signDisplay: `never` };
|
|
1196
|
+
}
|
|
1197
|
+
}
|
|
1198
|
+
function d(e) {
|
|
1199
|
+
var t;
|
|
1200
|
+
if (e[0] === `E` && e[1] === `E` ? (t = { notation: `engineering` }, e = e.slice(2)) : e[0] === `E` && (t = { notation: `scientific` }, e = e.slice(1)), t) {
|
|
1201
|
+
var n = e.slice(0, 2);
|
|
1202
|
+
if (n === `+!` ? (t.signDisplay = `always`, e = e.slice(2)) : n === `+?` && (t.signDisplay = `exceptZero`, e = e.slice(2)), !c.test(e)) throw Error(`Malformed concise eng/scientific notation`);
|
|
1203
|
+
t.minimumIntegerDigits = e.length;
|
|
1204
|
+
}
|
|
1205
|
+
return t;
|
|
1206
|
+
}
|
|
1207
|
+
function f(e) {
|
|
1208
|
+
return u(e) || {};
|
|
1209
|
+
}
|
|
1210
|
+
function p(e) {
|
|
1211
|
+
for (var n = {}, r = 0, p = e; r < p.length; r++) {
|
|
1212
|
+
var m = p[r];
|
|
1213
|
+
switch (m.stem) {
|
|
1214
|
+
case `percent`:
|
|
1215
|
+
case `%`:
|
|
1216
|
+
n.style = `percent`;
|
|
1217
|
+
continue;
|
|
1218
|
+
case `%x100`:
|
|
1219
|
+
n.style = `percent`, n.scale = 100;
|
|
1220
|
+
continue;
|
|
1221
|
+
case `currency`:
|
|
1222
|
+
n.style = `currency`, n.currency = m.options[0];
|
|
1223
|
+
continue;
|
|
1224
|
+
case `group-off`:
|
|
1225
|
+
case `,_`:
|
|
1226
|
+
n.useGrouping = !1;
|
|
1227
|
+
continue;
|
|
1228
|
+
case `precision-integer`:
|
|
1229
|
+
case `.`:
|
|
1230
|
+
n.maximumFractionDigits = 0;
|
|
1231
|
+
continue;
|
|
1232
|
+
case `measure-unit`:
|
|
1233
|
+
case `unit`:
|
|
1234
|
+
n.style = `unit`, n.unit = i(m.options[0]);
|
|
1235
|
+
continue;
|
|
1236
|
+
case `compact-short`:
|
|
1237
|
+
case `K`:
|
|
1238
|
+
n.notation = `compact`, n.compactDisplay = `short`;
|
|
1239
|
+
continue;
|
|
1240
|
+
case `compact-long`:
|
|
1241
|
+
case `KK`:
|
|
1242
|
+
n.notation = `compact`, n.compactDisplay = `long`;
|
|
1243
|
+
continue;
|
|
1244
|
+
case `scientific`:
|
|
1245
|
+
n = t.__assign(t.__assign(t.__assign({}, n), { notation: `scientific` }), m.options.reduce(function(e, n) {
|
|
1246
|
+
return t.__assign(t.__assign({}, e), f(n));
|
|
1247
|
+
}, {}));
|
|
1248
|
+
continue;
|
|
1249
|
+
case `engineering`:
|
|
1250
|
+
n = t.__assign(t.__assign(t.__assign({}, n), { notation: `engineering` }), m.options.reduce(function(e, n) {
|
|
1251
|
+
return t.__assign(t.__assign({}, e), f(n));
|
|
1252
|
+
}, {}));
|
|
1253
|
+
continue;
|
|
1254
|
+
case `notation-simple`:
|
|
1255
|
+
n.notation = `standard`;
|
|
1256
|
+
continue;
|
|
1257
|
+
case `unit-width-narrow`:
|
|
1258
|
+
n.currencyDisplay = `narrowSymbol`, n.unitDisplay = `narrow`;
|
|
1259
|
+
continue;
|
|
1260
|
+
case `unit-width-short`:
|
|
1261
|
+
n.currencyDisplay = `code`, n.unitDisplay = `short`;
|
|
1262
|
+
continue;
|
|
1263
|
+
case `unit-width-full-name`:
|
|
1264
|
+
n.currencyDisplay = `name`, n.unitDisplay = `long`;
|
|
1265
|
+
continue;
|
|
1266
|
+
case `unit-width-iso-code`:
|
|
1267
|
+
n.currencyDisplay = `symbol`;
|
|
1268
|
+
continue;
|
|
1269
|
+
case `scale`:
|
|
1270
|
+
n.scale = parseFloat(m.options[0]);
|
|
1271
|
+
continue;
|
|
1272
|
+
case `rounding-mode-floor`:
|
|
1273
|
+
n.roundingMode = `floor`;
|
|
1274
|
+
continue;
|
|
1275
|
+
case `rounding-mode-ceiling`:
|
|
1276
|
+
n.roundingMode = `ceil`;
|
|
1277
|
+
continue;
|
|
1278
|
+
case `rounding-mode-down`:
|
|
1279
|
+
n.roundingMode = `trunc`;
|
|
1280
|
+
continue;
|
|
1281
|
+
case `rounding-mode-up`:
|
|
1282
|
+
n.roundingMode = `expand`;
|
|
1283
|
+
continue;
|
|
1284
|
+
case `rounding-mode-half-even`:
|
|
1285
|
+
n.roundingMode = `halfEven`;
|
|
1286
|
+
continue;
|
|
1287
|
+
case `rounding-mode-half-down`:
|
|
1288
|
+
n.roundingMode = `halfTrunc`;
|
|
1289
|
+
continue;
|
|
1290
|
+
case `rounding-mode-half-up`:
|
|
1291
|
+
n.roundingMode = `halfExpand`;
|
|
1292
|
+
continue;
|
|
1293
|
+
case `integer-width`:
|
|
1294
|
+
if (m.options.length > 1) throw RangeError(`integer-width stems only accept a single optional option`);
|
|
1295
|
+
m.options[0].replace(s, function(e, t, r, i, a, o) {
|
|
1296
|
+
if (t) n.minimumIntegerDigits = r.length;
|
|
1297
|
+
else if (i && a) throw Error(`We currently do not support maximum integer digits`);
|
|
1298
|
+
else if (o) throw Error(`We currently do not support exact integer digits`);
|
|
1299
|
+
return ``;
|
|
1300
|
+
});
|
|
1301
|
+
continue;
|
|
1302
|
+
}
|
|
1303
|
+
if (c.test(m.stem)) {
|
|
1304
|
+
n.minimumIntegerDigits = m.stem.length;
|
|
1305
|
+
continue;
|
|
1306
|
+
}
|
|
1307
|
+
if (a.test(m.stem)) {
|
|
1308
|
+
if (m.options.length > 1) throw RangeError(`Fraction-precision stems only accept a single optional option`);
|
|
1309
|
+
m.stem.replace(a, function(e, t, r, i, a, o) {
|
|
1310
|
+
return r === `*` ? n.minimumFractionDigits = t.length : i && i[0] === `#` ? n.maximumFractionDigits = i.length : a && o ? (n.minimumFractionDigits = a.length, n.maximumFractionDigits = a.length + o.length) : (n.minimumFractionDigits = t.length, n.maximumFractionDigits = t.length), ``;
|
|
1311
|
+
});
|
|
1312
|
+
var h = m.options[0];
|
|
1313
|
+
h === `w` ? n = t.__assign(t.__assign({}, n), { trailingZeroDisplay: `stripIfInteger` }) : h && (n = t.__assign(t.__assign({}, n), l(h)));
|
|
1314
|
+
continue;
|
|
1315
|
+
}
|
|
1316
|
+
if (o.test(m.stem)) {
|
|
1317
|
+
n = t.__assign(t.__assign({}, n), l(m.stem));
|
|
1318
|
+
continue;
|
|
1319
|
+
}
|
|
1320
|
+
var g = u(m.stem);
|
|
1321
|
+
g && (n = t.__assign(t.__assign({}, n), g));
|
|
1322
|
+
var _ = d(m.stem);
|
|
1323
|
+
_ && (n = t.__assign(t.__assign({}, n), _));
|
|
1324
|
+
}
|
|
1325
|
+
return n;
|
|
1326
|
+
}
|
|
1327
|
+
})), gt = p(((e) => {
|
|
1328
|
+
Object.defineProperty(e, `__esModule`, { value: !0 });
|
|
1329
|
+
var t = (R(), g(M));
|
|
1330
|
+
t.__exportStar(pt(), e), t.__exportStar(ht(), e);
|
|
1331
|
+
})), _t = p(((e) => {
|
|
1332
|
+
Object.defineProperty(e, `__esModule`, { value: !0 }), e.timeData = void 0, e.timeData = {
|
|
1333
|
+
"001": [`H`, `h`],
|
|
1334
|
+
419: [
|
|
1335
|
+
`h`,
|
|
1336
|
+
`H`,
|
|
1337
|
+
`hB`,
|
|
1338
|
+
`hb`
|
|
1339
|
+
],
|
|
1340
|
+
AC: [
|
|
1341
|
+
`H`,
|
|
1342
|
+
`h`,
|
|
1343
|
+
`hb`,
|
|
1344
|
+
`hB`
|
|
1345
|
+
],
|
|
1346
|
+
AD: [`H`, `hB`],
|
|
1347
|
+
AE: [
|
|
1348
|
+
`h`,
|
|
1349
|
+
`hB`,
|
|
1350
|
+
`hb`,
|
|
1351
|
+
`H`
|
|
1352
|
+
],
|
|
1353
|
+
AF: [
|
|
1354
|
+
`H`,
|
|
1355
|
+
`hb`,
|
|
1356
|
+
`hB`,
|
|
1357
|
+
`h`
|
|
1358
|
+
],
|
|
1359
|
+
AG: [
|
|
1360
|
+
`h`,
|
|
1361
|
+
`hb`,
|
|
1362
|
+
`H`,
|
|
1363
|
+
`hB`
|
|
1364
|
+
],
|
|
1365
|
+
AI: [
|
|
1366
|
+
`H`,
|
|
1367
|
+
`h`,
|
|
1368
|
+
`hb`,
|
|
1369
|
+
`hB`
|
|
1370
|
+
],
|
|
1371
|
+
AL: [
|
|
1372
|
+
`h`,
|
|
1373
|
+
`H`,
|
|
1374
|
+
`hB`
|
|
1375
|
+
],
|
|
1376
|
+
AM: [`H`, `hB`],
|
|
1377
|
+
AO: [`H`, `hB`],
|
|
1378
|
+
AR: [
|
|
1379
|
+
`h`,
|
|
1380
|
+
`H`,
|
|
1381
|
+
`hB`,
|
|
1382
|
+
`hb`
|
|
1383
|
+
],
|
|
1384
|
+
AS: [`h`, `H`],
|
|
1385
|
+
AT: [`H`, `hB`],
|
|
1386
|
+
AU: [
|
|
1387
|
+
`h`,
|
|
1388
|
+
`hb`,
|
|
1389
|
+
`H`,
|
|
1390
|
+
`hB`
|
|
1391
|
+
],
|
|
1392
|
+
AW: [`H`, `hB`],
|
|
1393
|
+
AX: [`H`],
|
|
1394
|
+
AZ: [
|
|
1395
|
+
`H`,
|
|
1396
|
+
`hB`,
|
|
1397
|
+
`h`
|
|
1398
|
+
],
|
|
1399
|
+
BA: [
|
|
1400
|
+
`H`,
|
|
1401
|
+
`hB`,
|
|
1402
|
+
`h`
|
|
1403
|
+
],
|
|
1404
|
+
BB: [
|
|
1405
|
+
`h`,
|
|
1406
|
+
`hb`,
|
|
1407
|
+
`H`,
|
|
1408
|
+
`hB`
|
|
1409
|
+
],
|
|
1410
|
+
BD: [
|
|
1411
|
+
`h`,
|
|
1412
|
+
`hB`,
|
|
1413
|
+
`H`
|
|
1414
|
+
],
|
|
1415
|
+
BE: [`H`, `hB`],
|
|
1416
|
+
BF: [`H`, `hB`],
|
|
1417
|
+
BG: [
|
|
1418
|
+
`H`,
|
|
1419
|
+
`hB`,
|
|
1420
|
+
`h`
|
|
1421
|
+
],
|
|
1422
|
+
BH: [
|
|
1423
|
+
`h`,
|
|
1424
|
+
`hB`,
|
|
1425
|
+
`hb`,
|
|
1426
|
+
`H`
|
|
1427
|
+
],
|
|
1428
|
+
BI: [`H`, `h`],
|
|
1429
|
+
BJ: [`H`, `hB`],
|
|
1430
|
+
BL: [`H`, `hB`],
|
|
1431
|
+
BM: [
|
|
1432
|
+
`h`,
|
|
1433
|
+
`hb`,
|
|
1434
|
+
`H`,
|
|
1435
|
+
`hB`
|
|
1436
|
+
],
|
|
1437
|
+
BN: [
|
|
1438
|
+
`hb`,
|
|
1439
|
+
`hB`,
|
|
1440
|
+
`h`,
|
|
1441
|
+
`H`
|
|
1442
|
+
],
|
|
1443
|
+
BO: [
|
|
1444
|
+
`h`,
|
|
1445
|
+
`H`,
|
|
1446
|
+
`hB`,
|
|
1447
|
+
`hb`
|
|
1448
|
+
],
|
|
1449
|
+
BQ: [`H`],
|
|
1450
|
+
BR: [`H`, `hB`],
|
|
1451
|
+
BS: [
|
|
1452
|
+
`h`,
|
|
1453
|
+
`hb`,
|
|
1454
|
+
`H`,
|
|
1455
|
+
`hB`
|
|
1456
|
+
],
|
|
1457
|
+
BT: [`h`, `H`],
|
|
1458
|
+
BW: [
|
|
1459
|
+
`H`,
|
|
1460
|
+
`h`,
|
|
1461
|
+
`hb`,
|
|
1462
|
+
`hB`
|
|
1463
|
+
],
|
|
1464
|
+
BY: [`H`, `h`],
|
|
1465
|
+
BZ: [
|
|
1466
|
+
`H`,
|
|
1467
|
+
`h`,
|
|
1468
|
+
`hb`,
|
|
1469
|
+
`hB`
|
|
1470
|
+
],
|
|
1471
|
+
CA: [
|
|
1472
|
+
`h`,
|
|
1473
|
+
`hb`,
|
|
1474
|
+
`H`,
|
|
1475
|
+
`hB`
|
|
1476
|
+
],
|
|
1477
|
+
CC: [
|
|
1478
|
+
`H`,
|
|
1479
|
+
`h`,
|
|
1480
|
+
`hb`,
|
|
1481
|
+
`hB`
|
|
1482
|
+
],
|
|
1483
|
+
CD: [`hB`, `H`],
|
|
1484
|
+
CF: [
|
|
1485
|
+
`H`,
|
|
1486
|
+
`h`,
|
|
1487
|
+
`hB`
|
|
1488
|
+
],
|
|
1489
|
+
CG: [`H`, `hB`],
|
|
1490
|
+
CH: [
|
|
1491
|
+
`H`,
|
|
1492
|
+
`hB`,
|
|
1493
|
+
`h`
|
|
1494
|
+
],
|
|
1495
|
+
CI: [`H`, `hB`],
|
|
1496
|
+
CK: [
|
|
1497
|
+
`H`,
|
|
1498
|
+
`h`,
|
|
1499
|
+
`hb`,
|
|
1500
|
+
`hB`
|
|
1501
|
+
],
|
|
1502
|
+
CL: [
|
|
1503
|
+
`h`,
|
|
1504
|
+
`H`,
|
|
1505
|
+
`hB`,
|
|
1506
|
+
`hb`
|
|
1507
|
+
],
|
|
1508
|
+
CM: [
|
|
1509
|
+
`H`,
|
|
1510
|
+
`h`,
|
|
1511
|
+
`hB`
|
|
1512
|
+
],
|
|
1513
|
+
CN: [
|
|
1514
|
+
`H`,
|
|
1515
|
+
`hB`,
|
|
1516
|
+
`hb`,
|
|
1517
|
+
`h`
|
|
1518
|
+
],
|
|
1519
|
+
CO: [
|
|
1520
|
+
`h`,
|
|
1521
|
+
`H`,
|
|
1522
|
+
`hB`,
|
|
1523
|
+
`hb`
|
|
1524
|
+
],
|
|
1525
|
+
CP: [`H`],
|
|
1526
|
+
CR: [
|
|
1527
|
+
`h`,
|
|
1528
|
+
`H`,
|
|
1529
|
+
`hB`,
|
|
1530
|
+
`hb`
|
|
1531
|
+
],
|
|
1532
|
+
CU: [
|
|
1533
|
+
`h`,
|
|
1534
|
+
`H`,
|
|
1535
|
+
`hB`,
|
|
1536
|
+
`hb`
|
|
1537
|
+
],
|
|
1538
|
+
CV: [`H`, `hB`],
|
|
1539
|
+
CW: [`H`, `hB`],
|
|
1540
|
+
CX: [
|
|
1541
|
+
`H`,
|
|
1542
|
+
`h`,
|
|
1543
|
+
`hb`,
|
|
1544
|
+
`hB`
|
|
1545
|
+
],
|
|
1546
|
+
CY: [
|
|
1547
|
+
`h`,
|
|
1548
|
+
`H`,
|
|
1549
|
+
`hb`,
|
|
1550
|
+
`hB`
|
|
1551
|
+
],
|
|
1552
|
+
CZ: [`H`],
|
|
1553
|
+
DE: [`H`, `hB`],
|
|
1554
|
+
DG: [
|
|
1555
|
+
`H`,
|
|
1556
|
+
`h`,
|
|
1557
|
+
`hb`,
|
|
1558
|
+
`hB`
|
|
1559
|
+
],
|
|
1560
|
+
DJ: [`h`, `H`],
|
|
1561
|
+
DK: [`H`],
|
|
1562
|
+
DM: [
|
|
1563
|
+
`h`,
|
|
1564
|
+
`hb`,
|
|
1565
|
+
`H`,
|
|
1566
|
+
`hB`
|
|
1567
|
+
],
|
|
1568
|
+
DO: [
|
|
1569
|
+
`h`,
|
|
1570
|
+
`H`,
|
|
1571
|
+
`hB`,
|
|
1572
|
+
`hb`
|
|
1573
|
+
],
|
|
1574
|
+
DZ: [
|
|
1575
|
+
`h`,
|
|
1576
|
+
`hB`,
|
|
1577
|
+
`hb`,
|
|
1578
|
+
`H`
|
|
1579
|
+
],
|
|
1580
|
+
EA: [
|
|
1581
|
+
`H`,
|
|
1582
|
+
`h`,
|
|
1583
|
+
`hB`,
|
|
1584
|
+
`hb`
|
|
1585
|
+
],
|
|
1586
|
+
EC: [
|
|
1587
|
+
`h`,
|
|
1588
|
+
`H`,
|
|
1589
|
+
`hB`,
|
|
1590
|
+
`hb`
|
|
1591
|
+
],
|
|
1592
|
+
EE: [`H`, `hB`],
|
|
1593
|
+
EG: [
|
|
1594
|
+
`h`,
|
|
1595
|
+
`hB`,
|
|
1596
|
+
`hb`,
|
|
1597
|
+
`H`
|
|
1598
|
+
],
|
|
1599
|
+
EH: [
|
|
1600
|
+
`h`,
|
|
1601
|
+
`hB`,
|
|
1602
|
+
`hb`,
|
|
1603
|
+
`H`
|
|
1604
|
+
],
|
|
1605
|
+
ER: [`h`, `H`],
|
|
1606
|
+
ES: [
|
|
1607
|
+
`H`,
|
|
1608
|
+
`hB`,
|
|
1609
|
+
`h`,
|
|
1610
|
+
`hb`
|
|
1611
|
+
],
|
|
1612
|
+
ET: [
|
|
1613
|
+
`hB`,
|
|
1614
|
+
`hb`,
|
|
1615
|
+
`h`,
|
|
1616
|
+
`H`
|
|
1617
|
+
],
|
|
1618
|
+
FI: [`H`],
|
|
1619
|
+
FJ: [
|
|
1620
|
+
`h`,
|
|
1621
|
+
`hb`,
|
|
1622
|
+
`H`,
|
|
1623
|
+
`hB`
|
|
1624
|
+
],
|
|
1625
|
+
FK: [
|
|
1626
|
+
`H`,
|
|
1627
|
+
`h`,
|
|
1628
|
+
`hb`,
|
|
1629
|
+
`hB`
|
|
1630
|
+
],
|
|
1631
|
+
FM: [
|
|
1632
|
+
`h`,
|
|
1633
|
+
`hb`,
|
|
1634
|
+
`H`,
|
|
1635
|
+
`hB`
|
|
1636
|
+
],
|
|
1637
|
+
FO: [`H`, `h`],
|
|
1638
|
+
FR: [`H`, `hB`],
|
|
1639
|
+
GA: [`H`, `hB`],
|
|
1640
|
+
GB: [
|
|
1641
|
+
`H`,
|
|
1642
|
+
`h`,
|
|
1643
|
+
`hb`,
|
|
1644
|
+
`hB`
|
|
1645
|
+
],
|
|
1646
|
+
GD: [
|
|
1647
|
+
`h`,
|
|
1648
|
+
`hb`,
|
|
1649
|
+
`H`,
|
|
1650
|
+
`hB`
|
|
1651
|
+
],
|
|
1652
|
+
GE: [
|
|
1653
|
+
`H`,
|
|
1654
|
+
`hB`,
|
|
1655
|
+
`h`
|
|
1656
|
+
],
|
|
1657
|
+
GF: [`H`, `hB`],
|
|
1658
|
+
GG: [
|
|
1659
|
+
`H`,
|
|
1660
|
+
`h`,
|
|
1661
|
+
`hb`,
|
|
1662
|
+
`hB`
|
|
1663
|
+
],
|
|
1664
|
+
GH: [`h`, `H`],
|
|
1665
|
+
GI: [
|
|
1666
|
+
`H`,
|
|
1667
|
+
`h`,
|
|
1668
|
+
`hb`,
|
|
1669
|
+
`hB`
|
|
1670
|
+
],
|
|
1671
|
+
GL: [`H`, `h`],
|
|
1672
|
+
GM: [
|
|
1673
|
+
`h`,
|
|
1674
|
+
`hb`,
|
|
1675
|
+
`H`,
|
|
1676
|
+
`hB`
|
|
1677
|
+
],
|
|
1678
|
+
GN: [`H`, `hB`],
|
|
1679
|
+
GP: [`H`, `hB`],
|
|
1680
|
+
GQ: [
|
|
1681
|
+
`H`,
|
|
1682
|
+
`hB`,
|
|
1683
|
+
`h`,
|
|
1684
|
+
`hb`
|
|
1685
|
+
],
|
|
1686
|
+
GR: [
|
|
1687
|
+
`h`,
|
|
1688
|
+
`H`,
|
|
1689
|
+
`hb`,
|
|
1690
|
+
`hB`
|
|
1691
|
+
],
|
|
1692
|
+
GT: [
|
|
1693
|
+
`h`,
|
|
1694
|
+
`H`,
|
|
1695
|
+
`hB`,
|
|
1696
|
+
`hb`
|
|
1697
|
+
],
|
|
1698
|
+
GU: [
|
|
1699
|
+
`h`,
|
|
1700
|
+
`hb`,
|
|
1701
|
+
`H`,
|
|
1702
|
+
`hB`
|
|
1703
|
+
],
|
|
1704
|
+
GW: [`H`, `hB`],
|
|
1705
|
+
GY: [
|
|
1706
|
+
`h`,
|
|
1707
|
+
`hb`,
|
|
1708
|
+
`H`,
|
|
1709
|
+
`hB`
|
|
1710
|
+
],
|
|
1711
|
+
HK: [
|
|
1712
|
+
`h`,
|
|
1713
|
+
`hB`,
|
|
1714
|
+
`hb`,
|
|
1715
|
+
`H`
|
|
1716
|
+
],
|
|
1717
|
+
HN: [
|
|
1718
|
+
`h`,
|
|
1719
|
+
`H`,
|
|
1720
|
+
`hB`,
|
|
1721
|
+
`hb`
|
|
1722
|
+
],
|
|
1723
|
+
HR: [`H`, `hB`],
|
|
1724
|
+
HU: [`H`, `h`],
|
|
1725
|
+
IC: [
|
|
1726
|
+
`H`,
|
|
1727
|
+
`h`,
|
|
1728
|
+
`hB`,
|
|
1729
|
+
`hb`
|
|
1730
|
+
],
|
|
1731
|
+
ID: [`H`],
|
|
1732
|
+
IE: [
|
|
1733
|
+
`H`,
|
|
1734
|
+
`h`,
|
|
1735
|
+
`hb`,
|
|
1736
|
+
`hB`
|
|
1737
|
+
],
|
|
1738
|
+
IL: [`H`, `hB`],
|
|
1739
|
+
IM: [
|
|
1740
|
+
`H`,
|
|
1741
|
+
`h`,
|
|
1742
|
+
`hb`,
|
|
1743
|
+
`hB`
|
|
1744
|
+
],
|
|
1745
|
+
IN: [`h`, `H`],
|
|
1746
|
+
IO: [
|
|
1747
|
+
`H`,
|
|
1748
|
+
`h`,
|
|
1749
|
+
`hb`,
|
|
1750
|
+
`hB`
|
|
1751
|
+
],
|
|
1752
|
+
IQ: [
|
|
1753
|
+
`h`,
|
|
1754
|
+
`hB`,
|
|
1755
|
+
`hb`,
|
|
1756
|
+
`H`
|
|
1757
|
+
],
|
|
1758
|
+
IR: [`hB`, `H`],
|
|
1759
|
+
IS: [`H`],
|
|
1760
|
+
IT: [`H`, `hB`],
|
|
1761
|
+
JE: [
|
|
1762
|
+
`H`,
|
|
1763
|
+
`h`,
|
|
1764
|
+
`hb`,
|
|
1765
|
+
`hB`
|
|
1766
|
+
],
|
|
1767
|
+
JM: [
|
|
1768
|
+
`h`,
|
|
1769
|
+
`hb`,
|
|
1770
|
+
`H`,
|
|
1771
|
+
`hB`
|
|
1772
|
+
],
|
|
1773
|
+
JO: [
|
|
1774
|
+
`h`,
|
|
1775
|
+
`hB`,
|
|
1776
|
+
`hb`,
|
|
1777
|
+
`H`
|
|
1778
|
+
],
|
|
1779
|
+
JP: [
|
|
1780
|
+
`H`,
|
|
1781
|
+
`K`,
|
|
1782
|
+
`h`
|
|
1783
|
+
],
|
|
1784
|
+
KE: [
|
|
1785
|
+
`hB`,
|
|
1786
|
+
`hb`,
|
|
1787
|
+
`H`,
|
|
1788
|
+
`h`
|
|
1789
|
+
],
|
|
1790
|
+
KG: [
|
|
1791
|
+
`H`,
|
|
1792
|
+
`h`,
|
|
1793
|
+
`hB`,
|
|
1794
|
+
`hb`
|
|
1795
|
+
],
|
|
1796
|
+
KH: [
|
|
1797
|
+
`hB`,
|
|
1798
|
+
`h`,
|
|
1799
|
+
`H`,
|
|
1800
|
+
`hb`
|
|
1801
|
+
],
|
|
1802
|
+
KI: [
|
|
1803
|
+
`h`,
|
|
1804
|
+
`hb`,
|
|
1805
|
+
`H`,
|
|
1806
|
+
`hB`
|
|
1807
|
+
],
|
|
1808
|
+
KM: [
|
|
1809
|
+
`H`,
|
|
1810
|
+
`h`,
|
|
1811
|
+
`hB`,
|
|
1812
|
+
`hb`
|
|
1813
|
+
],
|
|
1814
|
+
KN: [
|
|
1815
|
+
`h`,
|
|
1816
|
+
`hb`,
|
|
1817
|
+
`H`,
|
|
1818
|
+
`hB`
|
|
1819
|
+
],
|
|
1820
|
+
KP: [
|
|
1821
|
+
`h`,
|
|
1822
|
+
`H`,
|
|
1823
|
+
`hB`,
|
|
1824
|
+
`hb`
|
|
1825
|
+
],
|
|
1826
|
+
KR: [
|
|
1827
|
+
`h`,
|
|
1828
|
+
`H`,
|
|
1829
|
+
`hB`,
|
|
1830
|
+
`hb`
|
|
1831
|
+
],
|
|
1832
|
+
KW: [
|
|
1833
|
+
`h`,
|
|
1834
|
+
`hB`,
|
|
1835
|
+
`hb`,
|
|
1836
|
+
`H`
|
|
1837
|
+
],
|
|
1838
|
+
KY: [
|
|
1839
|
+
`h`,
|
|
1840
|
+
`hb`,
|
|
1841
|
+
`H`,
|
|
1842
|
+
`hB`
|
|
1843
|
+
],
|
|
1844
|
+
KZ: [`H`, `hB`],
|
|
1845
|
+
LA: [
|
|
1846
|
+
`H`,
|
|
1847
|
+
`hb`,
|
|
1848
|
+
`hB`,
|
|
1849
|
+
`h`
|
|
1850
|
+
],
|
|
1851
|
+
LB: [
|
|
1852
|
+
`h`,
|
|
1853
|
+
`hB`,
|
|
1854
|
+
`hb`,
|
|
1855
|
+
`H`
|
|
1856
|
+
],
|
|
1857
|
+
LC: [
|
|
1858
|
+
`h`,
|
|
1859
|
+
`hb`,
|
|
1860
|
+
`H`,
|
|
1861
|
+
`hB`
|
|
1862
|
+
],
|
|
1863
|
+
LI: [
|
|
1864
|
+
`H`,
|
|
1865
|
+
`hB`,
|
|
1866
|
+
`h`
|
|
1867
|
+
],
|
|
1868
|
+
LK: [
|
|
1869
|
+
`H`,
|
|
1870
|
+
`h`,
|
|
1871
|
+
`hB`,
|
|
1872
|
+
`hb`
|
|
1873
|
+
],
|
|
1874
|
+
LR: [
|
|
1875
|
+
`h`,
|
|
1876
|
+
`hb`,
|
|
1877
|
+
`H`,
|
|
1878
|
+
`hB`
|
|
1879
|
+
],
|
|
1880
|
+
LS: [`h`, `H`],
|
|
1881
|
+
LT: [
|
|
1882
|
+
`H`,
|
|
1883
|
+
`h`,
|
|
1884
|
+
`hb`,
|
|
1885
|
+
`hB`
|
|
1886
|
+
],
|
|
1887
|
+
LU: [
|
|
1888
|
+
`H`,
|
|
1889
|
+
`h`,
|
|
1890
|
+
`hB`
|
|
1891
|
+
],
|
|
1892
|
+
LV: [
|
|
1893
|
+
`H`,
|
|
1894
|
+
`hB`,
|
|
1895
|
+
`hb`,
|
|
1896
|
+
`h`
|
|
1897
|
+
],
|
|
1898
|
+
LY: [
|
|
1899
|
+
`h`,
|
|
1900
|
+
`hB`,
|
|
1901
|
+
`hb`,
|
|
1902
|
+
`H`
|
|
1903
|
+
],
|
|
1904
|
+
MA: [
|
|
1905
|
+
`H`,
|
|
1906
|
+
`h`,
|
|
1907
|
+
`hB`,
|
|
1908
|
+
`hb`
|
|
1909
|
+
],
|
|
1910
|
+
MC: [`H`, `hB`],
|
|
1911
|
+
MD: [`H`, `hB`],
|
|
1912
|
+
ME: [
|
|
1913
|
+
`H`,
|
|
1914
|
+
`hB`,
|
|
1915
|
+
`h`
|
|
1916
|
+
],
|
|
1917
|
+
MF: [`H`, `hB`],
|
|
1918
|
+
MG: [`H`, `h`],
|
|
1919
|
+
MH: [
|
|
1920
|
+
`h`,
|
|
1921
|
+
`hb`,
|
|
1922
|
+
`H`,
|
|
1923
|
+
`hB`
|
|
1924
|
+
],
|
|
1925
|
+
MK: [
|
|
1926
|
+
`H`,
|
|
1927
|
+
`h`,
|
|
1928
|
+
`hb`,
|
|
1929
|
+
`hB`
|
|
1930
|
+
],
|
|
1931
|
+
ML: [`H`],
|
|
1932
|
+
MM: [
|
|
1933
|
+
`hB`,
|
|
1934
|
+
`hb`,
|
|
1935
|
+
`H`,
|
|
1936
|
+
`h`
|
|
1937
|
+
],
|
|
1938
|
+
MN: [
|
|
1939
|
+
`H`,
|
|
1940
|
+
`h`,
|
|
1941
|
+
`hb`,
|
|
1942
|
+
`hB`
|
|
1943
|
+
],
|
|
1944
|
+
MO: [
|
|
1945
|
+
`h`,
|
|
1946
|
+
`hB`,
|
|
1947
|
+
`hb`,
|
|
1948
|
+
`H`
|
|
1949
|
+
],
|
|
1950
|
+
MP: [
|
|
1951
|
+
`h`,
|
|
1952
|
+
`hb`,
|
|
1953
|
+
`H`,
|
|
1954
|
+
`hB`
|
|
1955
|
+
],
|
|
1956
|
+
MQ: [`H`, `hB`],
|
|
1957
|
+
MR: [
|
|
1958
|
+
`h`,
|
|
1959
|
+
`hB`,
|
|
1960
|
+
`hb`,
|
|
1961
|
+
`H`
|
|
1962
|
+
],
|
|
1963
|
+
MS: [
|
|
1964
|
+
`H`,
|
|
1965
|
+
`h`,
|
|
1966
|
+
`hb`,
|
|
1967
|
+
`hB`
|
|
1968
|
+
],
|
|
1969
|
+
MT: [`H`, `h`],
|
|
1970
|
+
MU: [`H`, `h`],
|
|
1971
|
+
MV: [`H`, `h`],
|
|
1972
|
+
MW: [
|
|
1973
|
+
`h`,
|
|
1974
|
+
`hb`,
|
|
1975
|
+
`H`,
|
|
1976
|
+
`hB`
|
|
1977
|
+
],
|
|
1978
|
+
MX: [
|
|
1979
|
+
`h`,
|
|
1980
|
+
`H`,
|
|
1981
|
+
`hB`,
|
|
1982
|
+
`hb`
|
|
1983
|
+
],
|
|
1984
|
+
MY: [
|
|
1985
|
+
`hb`,
|
|
1986
|
+
`hB`,
|
|
1987
|
+
`h`,
|
|
1988
|
+
`H`
|
|
1989
|
+
],
|
|
1990
|
+
MZ: [`H`, `hB`],
|
|
1991
|
+
NA: [
|
|
1992
|
+
`h`,
|
|
1993
|
+
`H`,
|
|
1994
|
+
`hB`,
|
|
1995
|
+
`hb`
|
|
1996
|
+
],
|
|
1997
|
+
NC: [`H`, `hB`],
|
|
1998
|
+
NE: [`H`],
|
|
1999
|
+
NF: [
|
|
2000
|
+
`H`,
|
|
2001
|
+
`h`,
|
|
2002
|
+
`hb`,
|
|
2003
|
+
`hB`
|
|
2004
|
+
],
|
|
2005
|
+
NG: [
|
|
2006
|
+
`H`,
|
|
2007
|
+
`h`,
|
|
2008
|
+
`hb`,
|
|
2009
|
+
`hB`
|
|
2010
|
+
],
|
|
2011
|
+
NI: [
|
|
2012
|
+
`h`,
|
|
2013
|
+
`H`,
|
|
2014
|
+
`hB`,
|
|
2015
|
+
`hb`
|
|
2016
|
+
],
|
|
2017
|
+
NL: [`H`, `hB`],
|
|
2018
|
+
NO: [`H`, `h`],
|
|
2019
|
+
NP: [
|
|
2020
|
+
`H`,
|
|
2021
|
+
`h`,
|
|
2022
|
+
`hB`
|
|
2023
|
+
],
|
|
2024
|
+
NR: [
|
|
2025
|
+
`H`,
|
|
2026
|
+
`h`,
|
|
2027
|
+
`hb`,
|
|
2028
|
+
`hB`
|
|
2029
|
+
],
|
|
2030
|
+
NU: [
|
|
2031
|
+
`H`,
|
|
2032
|
+
`h`,
|
|
2033
|
+
`hb`,
|
|
2034
|
+
`hB`
|
|
2035
|
+
],
|
|
2036
|
+
NZ: [
|
|
2037
|
+
`h`,
|
|
2038
|
+
`hb`,
|
|
2039
|
+
`H`,
|
|
2040
|
+
`hB`
|
|
2041
|
+
],
|
|
2042
|
+
OM: [
|
|
2043
|
+
`h`,
|
|
2044
|
+
`hB`,
|
|
2045
|
+
`hb`,
|
|
2046
|
+
`H`
|
|
2047
|
+
],
|
|
2048
|
+
PA: [
|
|
2049
|
+
`h`,
|
|
2050
|
+
`H`,
|
|
2051
|
+
`hB`,
|
|
2052
|
+
`hb`
|
|
2053
|
+
],
|
|
2054
|
+
PE: [
|
|
2055
|
+
`h`,
|
|
2056
|
+
`H`,
|
|
2057
|
+
`hB`,
|
|
2058
|
+
`hb`
|
|
2059
|
+
],
|
|
2060
|
+
PF: [
|
|
2061
|
+
`H`,
|
|
2062
|
+
`h`,
|
|
2063
|
+
`hB`
|
|
2064
|
+
],
|
|
2065
|
+
PG: [`h`, `H`],
|
|
2066
|
+
PH: [
|
|
2067
|
+
`h`,
|
|
2068
|
+
`hB`,
|
|
2069
|
+
`hb`,
|
|
2070
|
+
`H`
|
|
2071
|
+
],
|
|
2072
|
+
PK: [
|
|
2073
|
+
`h`,
|
|
2074
|
+
`hB`,
|
|
2075
|
+
`H`
|
|
2076
|
+
],
|
|
2077
|
+
PL: [`H`, `h`],
|
|
2078
|
+
PM: [`H`, `hB`],
|
|
2079
|
+
PN: [
|
|
2080
|
+
`H`,
|
|
2081
|
+
`h`,
|
|
2082
|
+
`hb`,
|
|
2083
|
+
`hB`
|
|
2084
|
+
],
|
|
2085
|
+
PR: [
|
|
2086
|
+
`h`,
|
|
2087
|
+
`H`,
|
|
2088
|
+
`hB`,
|
|
2089
|
+
`hb`
|
|
2090
|
+
],
|
|
2091
|
+
PS: [
|
|
2092
|
+
`h`,
|
|
2093
|
+
`hB`,
|
|
2094
|
+
`hb`,
|
|
2095
|
+
`H`
|
|
2096
|
+
],
|
|
2097
|
+
PT: [`H`, `hB`],
|
|
2098
|
+
PW: [`h`, `H`],
|
|
2099
|
+
PY: [
|
|
2100
|
+
`h`,
|
|
2101
|
+
`H`,
|
|
2102
|
+
`hB`,
|
|
2103
|
+
`hb`
|
|
2104
|
+
],
|
|
2105
|
+
QA: [
|
|
2106
|
+
`h`,
|
|
2107
|
+
`hB`,
|
|
2108
|
+
`hb`,
|
|
2109
|
+
`H`
|
|
2110
|
+
],
|
|
2111
|
+
RE: [`H`, `hB`],
|
|
2112
|
+
RO: [`H`, `hB`],
|
|
2113
|
+
RS: [
|
|
2114
|
+
`H`,
|
|
2115
|
+
`hB`,
|
|
2116
|
+
`h`
|
|
2117
|
+
],
|
|
2118
|
+
RU: [`H`],
|
|
2119
|
+
RW: [`H`, `h`],
|
|
2120
|
+
SA: [
|
|
2121
|
+
`h`,
|
|
2122
|
+
`hB`,
|
|
2123
|
+
`hb`,
|
|
2124
|
+
`H`
|
|
2125
|
+
],
|
|
2126
|
+
SB: [
|
|
2127
|
+
`h`,
|
|
2128
|
+
`hb`,
|
|
2129
|
+
`H`,
|
|
2130
|
+
`hB`
|
|
2131
|
+
],
|
|
2132
|
+
SC: [
|
|
2133
|
+
`H`,
|
|
2134
|
+
`h`,
|
|
2135
|
+
`hB`
|
|
2136
|
+
],
|
|
2137
|
+
SD: [
|
|
2138
|
+
`h`,
|
|
2139
|
+
`hB`,
|
|
2140
|
+
`hb`,
|
|
2141
|
+
`H`
|
|
2142
|
+
],
|
|
2143
|
+
SE: [`H`],
|
|
2144
|
+
SG: [
|
|
2145
|
+
`h`,
|
|
2146
|
+
`hb`,
|
|
2147
|
+
`H`,
|
|
2148
|
+
`hB`
|
|
2149
|
+
],
|
|
2150
|
+
SH: [
|
|
2151
|
+
`H`,
|
|
2152
|
+
`h`,
|
|
2153
|
+
`hb`,
|
|
2154
|
+
`hB`
|
|
2155
|
+
],
|
|
2156
|
+
SI: [`H`, `hB`],
|
|
2157
|
+
SJ: [`H`],
|
|
2158
|
+
SK: [`H`],
|
|
2159
|
+
SL: [
|
|
2160
|
+
`h`,
|
|
2161
|
+
`hb`,
|
|
2162
|
+
`H`,
|
|
2163
|
+
`hB`
|
|
2164
|
+
],
|
|
2165
|
+
SM: [
|
|
2166
|
+
`H`,
|
|
2167
|
+
`h`,
|
|
2168
|
+
`hB`
|
|
2169
|
+
],
|
|
2170
|
+
SN: [
|
|
2171
|
+
`H`,
|
|
2172
|
+
`h`,
|
|
2173
|
+
`hB`
|
|
2174
|
+
],
|
|
2175
|
+
SO: [`h`, `H`],
|
|
2176
|
+
SR: [`H`, `hB`],
|
|
2177
|
+
SS: [
|
|
2178
|
+
`h`,
|
|
2179
|
+
`hb`,
|
|
2180
|
+
`H`,
|
|
2181
|
+
`hB`
|
|
2182
|
+
],
|
|
2183
|
+
ST: [`H`, `hB`],
|
|
2184
|
+
SV: [
|
|
2185
|
+
`h`,
|
|
2186
|
+
`H`,
|
|
2187
|
+
`hB`,
|
|
2188
|
+
`hb`
|
|
2189
|
+
],
|
|
2190
|
+
SX: [
|
|
2191
|
+
`H`,
|
|
2192
|
+
`h`,
|
|
2193
|
+
`hb`,
|
|
2194
|
+
`hB`
|
|
2195
|
+
],
|
|
2196
|
+
SY: [
|
|
2197
|
+
`h`,
|
|
2198
|
+
`hB`,
|
|
2199
|
+
`hb`,
|
|
2200
|
+
`H`
|
|
2201
|
+
],
|
|
2202
|
+
SZ: [
|
|
2203
|
+
`h`,
|
|
2204
|
+
`hb`,
|
|
2205
|
+
`H`,
|
|
2206
|
+
`hB`
|
|
2207
|
+
],
|
|
2208
|
+
TA: [
|
|
2209
|
+
`H`,
|
|
2210
|
+
`h`,
|
|
2211
|
+
`hb`,
|
|
2212
|
+
`hB`
|
|
2213
|
+
],
|
|
2214
|
+
TC: [
|
|
2215
|
+
`h`,
|
|
2216
|
+
`hb`,
|
|
2217
|
+
`H`,
|
|
2218
|
+
`hB`
|
|
2219
|
+
],
|
|
2220
|
+
TD: [
|
|
2221
|
+
`h`,
|
|
2222
|
+
`H`,
|
|
2223
|
+
`hB`
|
|
2224
|
+
],
|
|
2225
|
+
TF: [
|
|
2226
|
+
`H`,
|
|
2227
|
+
`h`,
|
|
2228
|
+
`hB`
|
|
2229
|
+
],
|
|
2230
|
+
TG: [`H`, `hB`],
|
|
2231
|
+
TH: [`H`, `h`],
|
|
2232
|
+
TJ: [`H`, `h`],
|
|
2233
|
+
TL: [
|
|
2234
|
+
`H`,
|
|
2235
|
+
`hB`,
|
|
2236
|
+
`hb`,
|
|
2237
|
+
`h`
|
|
2238
|
+
],
|
|
2239
|
+
TM: [`H`, `h`],
|
|
2240
|
+
TN: [
|
|
2241
|
+
`h`,
|
|
2242
|
+
`hB`,
|
|
2243
|
+
`hb`,
|
|
2244
|
+
`H`
|
|
2245
|
+
],
|
|
2246
|
+
TO: [`h`, `H`],
|
|
2247
|
+
TR: [`H`, `hB`],
|
|
2248
|
+
TT: [
|
|
2249
|
+
`h`,
|
|
2250
|
+
`hb`,
|
|
2251
|
+
`H`,
|
|
2252
|
+
`hB`
|
|
2253
|
+
],
|
|
2254
|
+
TW: [
|
|
2255
|
+
`hB`,
|
|
2256
|
+
`hb`,
|
|
2257
|
+
`h`,
|
|
2258
|
+
`H`
|
|
2259
|
+
],
|
|
2260
|
+
TZ: [
|
|
2261
|
+
`hB`,
|
|
2262
|
+
`hb`,
|
|
2263
|
+
`H`,
|
|
2264
|
+
`h`
|
|
2265
|
+
],
|
|
2266
|
+
UA: [
|
|
2267
|
+
`H`,
|
|
2268
|
+
`hB`,
|
|
2269
|
+
`h`
|
|
2270
|
+
],
|
|
2271
|
+
UG: [
|
|
2272
|
+
`hB`,
|
|
2273
|
+
`hb`,
|
|
2274
|
+
`H`,
|
|
2275
|
+
`h`
|
|
2276
|
+
],
|
|
2277
|
+
UM: [
|
|
2278
|
+
`h`,
|
|
2279
|
+
`hb`,
|
|
2280
|
+
`H`,
|
|
2281
|
+
`hB`
|
|
2282
|
+
],
|
|
2283
|
+
US: [
|
|
2284
|
+
`h`,
|
|
2285
|
+
`hb`,
|
|
2286
|
+
`H`,
|
|
2287
|
+
`hB`
|
|
2288
|
+
],
|
|
2289
|
+
UY: [
|
|
2290
|
+
`h`,
|
|
2291
|
+
`H`,
|
|
2292
|
+
`hB`,
|
|
2293
|
+
`hb`
|
|
2294
|
+
],
|
|
2295
|
+
UZ: [
|
|
2296
|
+
`H`,
|
|
2297
|
+
`hB`,
|
|
2298
|
+
`h`
|
|
2299
|
+
],
|
|
2300
|
+
VA: [
|
|
2301
|
+
`H`,
|
|
2302
|
+
`h`,
|
|
2303
|
+
`hB`
|
|
2304
|
+
],
|
|
2305
|
+
VC: [
|
|
2306
|
+
`h`,
|
|
2307
|
+
`hb`,
|
|
2308
|
+
`H`,
|
|
2309
|
+
`hB`
|
|
2310
|
+
],
|
|
2311
|
+
VE: [
|
|
2312
|
+
`h`,
|
|
2313
|
+
`H`,
|
|
2314
|
+
`hB`,
|
|
2315
|
+
`hb`
|
|
2316
|
+
],
|
|
2317
|
+
VG: [
|
|
2318
|
+
`h`,
|
|
2319
|
+
`hb`,
|
|
2320
|
+
`H`,
|
|
2321
|
+
`hB`
|
|
2322
|
+
],
|
|
2323
|
+
VI: [
|
|
2324
|
+
`h`,
|
|
2325
|
+
`hb`,
|
|
2326
|
+
`H`,
|
|
2327
|
+
`hB`
|
|
2328
|
+
],
|
|
2329
|
+
VN: [`H`, `h`],
|
|
2330
|
+
VU: [`h`, `H`],
|
|
2331
|
+
WF: [`H`, `hB`],
|
|
2332
|
+
WS: [`h`, `H`],
|
|
2333
|
+
XK: [
|
|
2334
|
+
`H`,
|
|
2335
|
+
`hB`,
|
|
2336
|
+
`h`
|
|
2337
|
+
],
|
|
2338
|
+
YE: [
|
|
2339
|
+
`h`,
|
|
2340
|
+
`hB`,
|
|
2341
|
+
`hb`,
|
|
2342
|
+
`H`
|
|
2343
|
+
],
|
|
2344
|
+
YT: [`H`, `hB`],
|
|
2345
|
+
ZA: [
|
|
2346
|
+
`H`,
|
|
2347
|
+
`h`,
|
|
2348
|
+
`hb`,
|
|
2349
|
+
`hB`
|
|
2350
|
+
],
|
|
2351
|
+
ZM: [
|
|
2352
|
+
`h`,
|
|
2353
|
+
`hb`,
|
|
2354
|
+
`H`,
|
|
2355
|
+
`hB`
|
|
2356
|
+
],
|
|
2357
|
+
ZW: [`H`, `h`],
|
|
2358
|
+
"af-ZA": [
|
|
2359
|
+
`H`,
|
|
2360
|
+
`h`,
|
|
2361
|
+
`hB`,
|
|
2362
|
+
`hb`
|
|
2363
|
+
],
|
|
2364
|
+
"ar-001": [
|
|
2365
|
+
`h`,
|
|
2366
|
+
`hB`,
|
|
2367
|
+
`hb`,
|
|
2368
|
+
`H`
|
|
2369
|
+
],
|
|
2370
|
+
"ca-ES": [
|
|
2371
|
+
`H`,
|
|
2372
|
+
`h`,
|
|
2373
|
+
`hB`
|
|
2374
|
+
],
|
|
2375
|
+
"en-001": [
|
|
2376
|
+
`h`,
|
|
2377
|
+
`hb`,
|
|
2378
|
+
`H`,
|
|
2379
|
+
`hB`
|
|
2380
|
+
],
|
|
2381
|
+
"en-HK": [
|
|
2382
|
+
`h`,
|
|
2383
|
+
`hb`,
|
|
2384
|
+
`H`,
|
|
2385
|
+
`hB`
|
|
2386
|
+
],
|
|
2387
|
+
"en-IL": [
|
|
2388
|
+
`H`,
|
|
2389
|
+
`h`,
|
|
2390
|
+
`hb`,
|
|
2391
|
+
`hB`
|
|
2392
|
+
],
|
|
2393
|
+
"en-MY": [
|
|
2394
|
+
`h`,
|
|
2395
|
+
`hb`,
|
|
2396
|
+
`H`,
|
|
2397
|
+
`hB`
|
|
2398
|
+
],
|
|
2399
|
+
"es-BR": [
|
|
2400
|
+
`H`,
|
|
2401
|
+
`h`,
|
|
2402
|
+
`hB`,
|
|
2403
|
+
`hb`
|
|
2404
|
+
],
|
|
2405
|
+
"es-ES": [
|
|
2406
|
+
`H`,
|
|
2407
|
+
`h`,
|
|
2408
|
+
`hB`,
|
|
2409
|
+
`hb`
|
|
2410
|
+
],
|
|
2411
|
+
"es-GQ": [
|
|
2412
|
+
`H`,
|
|
2413
|
+
`h`,
|
|
2414
|
+
`hB`,
|
|
2415
|
+
`hb`
|
|
2416
|
+
],
|
|
2417
|
+
"fr-CA": [
|
|
2418
|
+
`H`,
|
|
2419
|
+
`h`,
|
|
2420
|
+
`hB`
|
|
2421
|
+
],
|
|
2422
|
+
"gl-ES": [
|
|
2423
|
+
`H`,
|
|
2424
|
+
`h`,
|
|
2425
|
+
`hB`
|
|
2426
|
+
],
|
|
2427
|
+
"gu-IN": [
|
|
2428
|
+
`hB`,
|
|
2429
|
+
`hb`,
|
|
2430
|
+
`h`,
|
|
2431
|
+
`H`
|
|
2432
|
+
],
|
|
2433
|
+
"hi-IN": [
|
|
2434
|
+
`hB`,
|
|
2435
|
+
`h`,
|
|
2436
|
+
`H`
|
|
2437
|
+
],
|
|
2438
|
+
"it-CH": [
|
|
2439
|
+
`H`,
|
|
2440
|
+
`h`,
|
|
2441
|
+
`hB`
|
|
2442
|
+
],
|
|
2443
|
+
"it-IT": [
|
|
2444
|
+
`H`,
|
|
2445
|
+
`h`,
|
|
2446
|
+
`hB`
|
|
2447
|
+
],
|
|
2448
|
+
"kn-IN": [
|
|
2449
|
+
`hB`,
|
|
2450
|
+
`h`,
|
|
2451
|
+
`H`
|
|
2452
|
+
],
|
|
2453
|
+
"ml-IN": [
|
|
2454
|
+
`hB`,
|
|
2455
|
+
`h`,
|
|
2456
|
+
`H`
|
|
2457
|
+
],
|
|
2458
|
+
"mr-IN": [
|
|
2459
|
+
`hB`,
|
|
2460
|
+
`hb`,
|
|
2461
|
+
`h`,
|
|
2462
|
+
`H`
|
|
2463
|
+
],
|
|
2464
|
+
"pa-IN": [
|
|
2465
|
+
`hB`,
|
|
2466
|
+
`hb`,
|
|
2467
|
+
`h`,
|
|
2468
|
+
`H`
|
|
2469
|
+
],
|
|
2470
|
+
"ta-IN": [
|
|
2471
|
+
`hB`,
|
|
2472
|
+
`h`,
|
|
2473
|
+
`hb`,
|
|
2474
|
+
`H`
|
|
2475
|
+
],
|
|
2476
|
+
"te-IN": [
|
|
2477
|
+
`hB`,
|
|
2478
|
+
`h`,
|
|
2479
|
+
`H`
|
|
2480
|
+
],
|
|
2481
|
+
"zu-ZA": [
|
|
2482
|
+
`H`,
|
|
2483
|
+
`hB`,
|
|
2484
|
+
`hb`,
|
|
2485
|
+
`h`
|
|
2486
|
+
]
|
|
2487
|
+
};
|
|
2488
|
+
})), vt = p(((e) => {
|
|
2489
|
+
Object.defineProperty(e, `__esModule`, { value: !0 }), e.getBestPattern = n;
|
|
2490
|
+
var t = _t();
|
|
2491
|
+
function n(e, t) {
|
|
2492
|
+
for (var n = ``, i = 0; i < e.length; i++) {
|
|
2493
|
+
var a = e.charAt(i);
|
|
2494
|
+
if (a === `j`) {
|
|
2495
|
+
for (var o = 0; i + 1 < e.length && e.charAt(i + 1) === a;) o++, i++;
|
|
2496
|
+
var s = 1 + (o & 1), c = o < 2 ? 1 : 3 + (o >> 1), l = `a`, u = r(t);
|
|
2497
|
+
for ((u == `H` || u == `k`) && (c = 0); c-- > 0;) n += l;
|
|
2498
|
+
for (; s-- > 0;) n = u + n;
|
|
2499
|
+
} else a === `J` ? n += `H` : n += a;
|
|
2500
|
+
}
|
|
2501
|
+
return n;
|
|
2502
|
+
}
|
|
2503
|
+
function r(e) {
|
|
2504
|
+
var n = e.hourCycle;
|
|
2505
|
+
if (n === void 0 && e.hourCycles && e.hourCycles.length && (n = e.hourCycles[0]), n) switch (n) {
|
|
2506
|
+
case `h24`: return `k`;
|
|
2507
|
+
case `h23`: return `H`;
|
|
2508
|
+
case `h12`: return `h`;
|
|
2509
|
+
case `h11`: return `K`;
|
|
2510
|
+
default: throw Error(`Invalid hourCycle`);
|
|
2511
|
+
}
|
|
2512
|
+
var r = e.language, i;
|
|
2513
|
+
return r !== `root` && (i = e.maximize().region), (t.timeData[i || ``] || t.timeData[r || ``] || t.timeData[`${r}-001`] || t.timeData[`001`])[0];
|
|
2514
|
+
}
|
|
2515
|
+
})), yt = p(((e) => {
|
|
2516
|
+
Object.defineProperty(e, `__esModule`, { value: !0 }), e.Parser = void 0;
|
|
2517
|
+
var t = (R(), g(M)), n = dt(), r = z(), i = ft(), a = gt(), o = vt(), s = RegExp(`^${i.SPACE_SEPARATOR_REGEX.source}*`), c = RegExp(`${i.SPACE_SEPARATOR_REGEX.source}*\$`);
|
|
2518
|
+
function l(e, t) {
|
|
2519
|
+
return {
|
|
2520
|
+
start: e,
|
|
2521
|
+
end: t
|
|
2522
|
+
};
|
|
2523
|
+
}
|
|
2524
|
+
var u = !!String.prototype.startsWith && `_a`.startsWith(`a`, 1), d = !!String.fromCodePoint, f = !!Object.fromEntries, p = !!String.prototype.codePointAt, m = !!String.prototype.trimStart, h = !!String.prototype.trimEnd, _ = Number.isSafeInteger ? Number.isSafeInteger : function(e) {
|
|
2525
|
+
return typeof e == `number` && isFinite(e) && Math.floor(e) === e && Math.abs(e) <= 9007199254740991;
|
|
2526
|
+
}, v = !0;
|
|
2527
|
+
try {
|
|
2528
|
+
v = S(`([^\\p{White_Space}\\p{Pattern_Syntax}]*)`, `yu`).exec(`a`)?.[0] === `a`;
|
|
2529
|
+
} catch {
|
|
2530
|
+
v = !1;
|
|
2531
|
+
}
|
|
2532
|
+
var ee = u ? function(e, t, n) {
|
|
2533
|
+
return e.startsWith(t, n);
|
|
2534
|
+
} : function(e, t, n) {
|
|
2535
|
+
return e.slice(n, n + t.length) === t;
|
|
2536
|
+
}, y = d ? String.fromCodePoint : function() {
|
|
2537
|
+
for (var e = [...arguments], t = ``, n = e.length, r = 0, i; n > r;) {
|
|
2538
|
+
if (i = e[r++], i > 1114111) throw RangeError(i + ` is not a valid code point`);
|
|
2539
|
+
t += i < 65536 ? String.fromCharCode(i) : String.fromCharCode(((i -= 65536) >> 10) + 55296, i % 1024 + 56320);
|
|
2540
|
+
}
|
|
2541
|
+
return t;
|
|
2542
|
+
}, b = f ? Object.fromEntries : function(e) {
|
|
2543
|
+
for (var t = {}, n = 0, r = e; n < r.length; n++) {
|
|
2544
|
+
var i = r[n], a = i[0];
|
|
2545
|
+
t[a] = i[1];
|
|
2546
|
+
}
|
|
2547
|
+
return t;
|
|
2548
|
+
}, x = p ? function(e, t) {
|
|
2549
|
+
return e.codePointAt(t);
|
|
2550
|
+
} : function(e, t) {
|
|
2551
|
+
var n = e.length;
|
|
2552
|
+
if (!(t < 0 || t >= n)) {
|
|
2553
|
+
var r = e.charCodeAt(t), i;
|
|
2554
|
+
return r < 55296 || r > 56319 || t + 1 === n || (i = e.charCodeAt(t + 1)) < 56320 || i > 57343 ? r : (r - 55296 << 10) + (i - 56320) + 65536;
|
|
2555
|
+
}
|
|
2556
|
+
}, te = m ? function(e) {
|
|
2557
|
+
return e.trimStart();
|
|
2558
|
+
} : function(e) {
|
|
2559
|
+
return e.replace(s, ``);
|
|
2560
|
+
}, ne = h ? function(e) {
|
|
2561
|
+
return e.trimEnd();
|
|
2562
|
+
} : function(e) {
|
|
2563
|
+
return e.replace(c, ``);
|
|
2564
|
+
};
|
|
2565
|
+
function S(e, t) {
|
|
2566
|
+
return new RegExp(e, t);
|
|
2567
|
+
}
|
|
2568
|
+
var C;
|
|
2569
|
+
if (v) {
|
|
2570
|
+
var w = S(`([^\\p{White_Space}\\p{Pattern_Syntax}]*)`, `yu`);
|
|
2571
|
+
C = function(e, t) {
|
|
2572
|
+
return w.lastIndex = t, w.exec(e)[1] ?? ``;
|
|
2573
|
+
};
|
|
2574
|
+
} else C = function(e, t) {
|
|
2575
|
+
for (var n = [];;) {
|
|
2576
|
+
var r = x(e, t);
|
|
2577
|
+
if (r === void 0 || ie(r) || D(r)) break;
|
|
2578
|
+
n.push(r), t += r >= 65536 ? 2 : 1;
|
|
2579
|
+
}
|
|
2580
|
+
return y.apply(void 0, n);
|
|
2581
|
+
};
|
|
2582
|
+
e.Parser = function() {
|
|
2583
|
+
function e(e, t) {
|
|
2584
|
+
t === void 0 && (t = {}), this.message = e, this.position = {
|
|
2585
|
+
offset: 0,
|
|
2586
|
+
line: 1,
|
|
2587
|
+
column: 1
|
|
2588
|
+
}, this.ignoreTag = !!t.ignoreTag, this.locale = t.locale, this.requiresOtherClause = !!t.requiresOtherClause, this.shouldParseSkeletons = !!t.shouldParseSkeletons;
|
|
2589
|
+
}
|
|
2590
|
+
return e.prototype.parse = function() {
|
|
2591
|
+
if (this.offset() !== 0) throw Error(`parser can only be used once`);
|
|
2592
|
+
return this.parseMessage(0, ``, !1);
|
|
2593
|
+
}, e.prototype.parseMessage = function(e, t, i) {
|
|
2594
|
+
for (var a = []; !this.isEOF();) {
|
|
2595
|
+
var o = this.char();
|
|
2596
|
+
if (o === 123) {
|
|
2597
|
+
var s = this.parseArgument(e, i);
|
|
2598
|
+
if (s.err) return s;
|
|
2599
|
+
a.push(s.val);
|
|
2600
|
+
} else if (o === 125 && e > 0) break;
|
|
2601
|
+
else if (o === 35 && (t === `plural` || t === `selectordinal`)) {
|
|
2602
|
+
var c = this.clonePosition();
|
|
2603
|
+
this.bump(), a.push({
|
|
2604
|
+
type: r.TYPE.pound,
|
|
2605
|
+
location: l(c, this.clonePosition())
|
|
2606
|
+
});
|
|
2607
|
+
} else if (o === 60 && !this.ignoreTag && this.peek() === 47) {
|
|
2608
|
+
if (i) break;
|
|
2609
|
+
return this.error(n.ErrorKind.UNMATCHED_CLOSING_TAG, l(this.clonePosition(), this.clonePosition()));
|
|
2610
|
+
} else if (o === 60 && !this.ignoreTag && T(this.peek() || 0)) {
|
|
2611
|
+
var s = this.parseTag(e, t);
|
|
2612
|
+
if (s.err) return s;
|
|
2613
|
+
a.push(s.val);
|
|
2614
|
+
} else {
|
|
2615
|
+
var s = this.parseLiteral(e, t);
|
|
2616
|
+
if (s.err) return s;
|
|
2617
|
+
a.push(s.val);
|
|
2618
|
+
}
|
|
2619
|
+
}
|
|
2620
|
+
return {
|
|
2621
|
+
val: a,
|
|
2622
|
+
err: null
|
|
2623
|
+
};
|
|
2624
|
+
}, e.prototype.parseTag = function(e, t) {
|
|
2625
|
+
var i = this.clonePosition();
|
|
2626
|
+
this.bump();
|
|
2627
|
+
var a = this.parseTagName();
|
|
2628
|
+
if (this.bumpSpace(), this.bumpIf(`/>`)) return {
|
|
2629
|
+
val: {
|
|
2630
|
+
type: r.TYPE.literal,
|
|
2631
|
+
value: `<${a}/>`,
|
|
2632
|
+
location: l(i, this.clonePosition())
|
|
2633
|
+
},
|
|
2634
|
+
err: null
|
|
2635
|
+
};
|
|
2636
|
+
if (this.bumpIf(`>`)) {
|
|
2637
|
+
var o = this.parseMessage(e + 1, t, !0);
|
|
2638
|
+
if (o.err) return o;
|
|
2639
|
+
var s = o.val, c = this.clonePosition();
|
|
2640
|
+
if (this.bumpIf(`</`)) {
|
|
2641
|
+
if (this.isEOF() || !T(this.char())) return this.error(n.ErrorKind.INVALID_TAG, l(c, this.clonePosition()));
|
|
2642
|
+
var u = this.clonePosition();
|
|
2643
|
+
return a === this.parseTagName() ? (this.bumpSpace(), this.bumpIf(`>`) ? {
|
|
2644
|
+
val: {
|
|
2645
|
+
type: r.TYPE.tag,
|
|
2646
|
+
value: a,
|
|
2647
|
+
children: s,
|
|
2648
|
+
location: l(i, this.clonePosition())
|
|
2649
|
+
},
|
|
2650
|
+
err: null
|
|
2651
|
+
} : this.error(n.ErrorKind.INVALID_TAG, l(c, this.clonePosition()))) : this.error(n.ErrorKind.UNMATCHED_CLOSING_TAG, l(u, this.clonePosition()));
|
|
2652
|
+
} else return this.error(n.ErrorKind.UNCLOSED_TAG, l(i, this.clonePosition()));
|
|
2653
|
+
} else return this.error(n.ErrorKind.INVALID_TAG, l(i, this.clonePosition()));
|
|
2654
|
+
}, e.prototype.parseTagName = function() {
|
|
2655
|
+
var e = this.offset();
|
|
2656
|
+
for (this.bump(); !this.isEOF() && E(this.char());) this.bump();
|
|
2657
|
+
return this.message.slice(e, this.offset());
|
|
2658
|
+
}, e.prototype.parseLiteral = function(e, t) {
|
|
2659
|
+
for (var n = this.clonePosition(), i = ``;;) {
|
|
2660
|
+
var a = this.tryParseQuote(t);
|
|
2661
|
+
if (a) {
|
|
2662
|
+
i += a;
|
|
2663
|
+
continue;
|
|
2664
|
+
}
|
|
2665
|
+
var o = this.tryParseUnquoted(e, t);
|
|
2666
|
+
if (o) {
|
|
2667
|
+
i += o;
|
|
2668
|
+
continue;
|
|
2669
|
+
}
|
|
2670
|
+
var s = this.tryParseLeftAngleBracket();
|
|
2671
|
+
if (s) {
|
|
2672
|
+
i += s;
|
|
2673
|
+
continue;
|
|
2674
|
+
}
|
|
2675
|
+
break;
|
|
2676
|
+
}
|
|
2677
|
+
var c = l(n, this.clonePosition());
|
|
2678
|
+
return {
|
|
2679
|
+
val: {
|
|
2680
|
+
type: r.TYPE.literal,
|
|
2681
|
+
value: i,
|
|
2682
|
+
location: c
|
|
2683
|
+
},
|
|
2684
|
+
err: null
|
|
2685
|
+
};
|
|
2686
|
+
}, e.prototype.tryParseLeftAngleBracket = function() {
|
|
2687
|
+
return !this.isEOF() && this.char() === 60 && (this.ignoreTag || !re(this.peek() || 0)) ? (this.bump(), `<`) : null;
|
|
2688
|
+
}, e.prototype.tryParseQuote = function(e) {
|
|
2689
|
+
if (this.isEOF() || this.char() !== 39) return null;
|
|
2690
|
+
switch (this.peek()) {
|
|
2691
|
+
case 39: return this.bump(), this.bump(), `'`;
|
|
2692
|
+
case 123:
|
|
2693
|
+
case 60:
|
|
2694
|
+
case 62:
|
|
2695
|
+
case 125: break;
|
|
2696
|
+
case 35:
|
|
2697
|
+
if (e === `plural` || e === `selectordinal`) break;
|
|
2698
|
+
return null;
|
|
2699
|
+
default: return null;
|
|
2700
|
+
}
|
|
2701
|
+
this.bump();
|
|
2702
|
+
var t = [this.char()];
|
|
2703
|
+
for (this.bump(); !this.isEOF();) {
|
|
2704
|
+
var n = this.char();
|
|
2705
|
+
if (n === 39) if (this.peek() === 39) t.push(39), this.bump();
|
|
2706
|
+
else {
|
|
2707
|
+
this.bump();
|
|
2708
|
+
break;
|
|
2709
|
+
}
|
|
2710
|
+
else t.push(n);
|
|
2711
|
+
this.bump();
|
|
2712
|
+
}
|
|
2713
|
+
return y.apply(void 0, t);
|
|
2714
|
+
}, e.prototype.tryParseUnquoted = function(e, t) {
|
|
2715
|
+
if (this.isEOF()) return null;
|
|
2716
|
+
var n = this.char();
|
|
2717
|
+
return n === 60 || n === 123 || n === 35 && (t === `plural` || t === `selectordinal`) || n === 125 && e > 0 ? null : (this.bump(), y(n));
|
|
2718
|
+
}, e.prototype.parseArgument = function(e, t) {
|
|
2719
|
+
var i = this.clonePosition();
|
|
2720
|
+
if (this.bump(), this.bumpSpace(), this.isEOF()) return this.error(n.ErrorKind.EXPECT_ARGUMENT_CLOSING_BRACE, l(i, this.clonePosition()));
|
|
2721
|
+
if (this.char() === 125) return this.bump(), this.error(n.ErrorKind.EMPTY_ARGUMENT, l(i, this.clonePosition()));
|
|
2722
|
+
var a = this.parseIdentifierIfPossible().value;
|
|
2723
|
+
if (!a) return this.error(n.ErrorKind.MALFORMED_ARGUMENT, l(i, this.clonePosition()));
|
|
2724
|
+
if (this.bumpSpace(), this.isEOF()) return this.error(n.ErrorKind.EXPECT_ARGUMENT_CLOSING_BRACE, l(i, this.clonePosition()));
|
|
2725
|
+
switch (this.char()) {
|
|
2726
|
+
case 125: return this.bump(), {
|
|
2727
|
+
val: {
|
|
2728
|
+
type: r.TYPE.argument,
|
|
2729
|
+
value: a,
|
|
2730
|
+
location: l(i, this.clonePosition())
|
|
2731
|
+
},
|
|
2732
|
+
err: null
|
|
2733
|
+
};
|
|
2734
|
+
case 44: return this.bump(), this.bumpSpace(), this.isEOF() ? this.error(n.ErrorKind.EXPECT_ARGUMENT_CLOSING_BRACE, l(i, this.clonePosition())) : this.parseArgumentOptions(e, t, a, i);
|
|
2735
|
+
default: return this.error(n.ErrorKind.MALFORMED_ARGUMENT, l(i, this.clonePosition()));
|
|
2736
|
+
}
|
|
2737
|
+
}, e.prototype.parseIdentifierIfPossible = function() {
|
|
2738
|
+
var e = this.clonePosition(), t = this.offset(), n = C(this.message, t), r = t + n.length;
|
|
2739
|
+
return this.bumpTo(r), {
|
|
2740
|
+
value: n,
|
|
2741
|
+
location: l(e, this.clonePosition())
|
|
2742
|
+
};
|
|
2743
|
+
}, e.prototype.parseArgumentOptions = function(e, i, s, c) {
|
|
2744
|
+
var u = this.clonePosition(), d = this.parseIdentifierIfPossible().value, f = this.clonePosition();
|
|
2745
|
+
switch (d) {
|
|
2746
|
+
case ``: return this.error(n.ErrorKind.EXPECT_ARGUMENT_TYPE, l(u, f));
|
|
2747
|
+
case `number`:
|
|
2748
|
+
case `date`:
|
|
2749
|
+
case `time`:
|
|
2750
|
+
this.bumpSpace();
|
|
2751
|
+
var p = null;
|
|
2752
|
+
if (this.bumpIf(`,`)) {
|
|
2753
|
+
this.bumpSpace();
|
|
2754
|
+
var m = this.clonePosition(), h = this.parseSimpleArgStyleIfPossible();
|
|
2755
|
+
if (h.err) return h;
|
|
2756
|
+
var g = ne(h.val);
|
|
2757
|
+
if (g.length === 0) return this.error(n.ErrorKind.EXPECT_ARGUMENT_STYLE, l(this.clonePosition(), this.clonePosition()));
|
|
2758
|
+
p = {
|
|
2759
|
+
style: g,
|
|
2760
|
+
styleLocation: l(m, this.clonePosition())
|
|
2761
|
+
};
|
|
2762
|
+
}
|
|
2763
|
+
var _ = this.tryParseArgumentClose(c);
|
|
2764
|
+
if (_.err) return _;
|
|
2765
|
+
var v = l(c, this.clonePosition());
|
|
2766
|
+
if (p && ee(p?.style, `::`, 0)) {
|
|
2767
|
+
var y = te(p.style.slice(2));
|
|
2768
|
+
if (d === `number`) {
|
|
2769
|
+
var h = this.parseNumberSkeletonFromString(y, p.styleLocation);
|
|
2770
|
+
return h.err ? h : {
|
|
2771
|
+
val: {
|
|
2772
|
+
type: r.TYPE.number,
|
|
2773
|
+
value: s,
|
|
2774
|
+
location: v,
|
|
2775
|
+
style: h.val
|
|
2776
|
+
},
|
|
2777
|
+
err: null
|
|
2778
|
+
};
|
|
2779
|
+
} else {
|
|
2780
|
+
if (y.length === 0) return this.error(n.ErrorKind.EXPECT_DATE_TIME_SKELETON, v);
|
|
2781
|
+
var x = y;
|
|
2782
|
+
this.locale && (x = (0, o.getBestPattern)(y, this.locale));
|
|
2783
|
+
var g = {
|
|
2784
|
+
type: r.SKELETON_TYPE.dateTime,
|
|
2785
|
+
pattern: x,
|
|
2786
|
+
location: p.styleLocation,
|
|
2787
|
+
parsedOptions: this.shouldParseSkeletons ? (0, a.parseDateTimeSkeleton)(x) : {}
|
|
2788
|
+
};
|
|
2789
|
+
return {
|
|
2790
|
+
val: {
|
|
2791
|
+
type: d === `date` ? r.TYPE.date : r.TYPE.time,
|
|
2792
|
+
value: s,
|
|
2793
|
+
location: v,
|
|
2794
|
+
style: g
|
|
2795
|
+
},
|
|
2796
|
+
err: null
|
|
2797
|
+
};
|
|
2798
|
+
}
|
|
2799
|
+
}
|
|
2800
|
+
return {
|
|
2801
|
+
val: {
|
|
2802
|
+
type: d === `number` ? r.TYPE.number : d === `date` ? r.TYPE.date : r.TYPE.time,
|
|
2803
|
+
value: s,
|
|
2804
|
+
location: v,
|
|
2805
|
+
style: p?.style ?? null
|
|
2806
|
+
},
|
|
2807
|
+
err: null
|
|
2808
|
+
};
|
|
2809
|
+
case `plural`:
|
|
2810
|
+
case `selectordinal`:
|
|
2811
|
+
case `select`:
|
|
2812
|
+
var S = this.clonePosition();
|
|
2813
|
+
if (this.bumpSpace(), !this.bumpIf(`,`)) return this.error(n.ErrorKind.EXPECT_SELECT_ARGUMENT_OPTIONS, l(S, t.__assign({}, S)));
|
|
2814
|
+
this.bumpSpace();
|
|
2815
|
+
var C = this.parseIdentifierIfPossible(), w = 0;
|
|
2816
|
+
if (d !== `select` && C.value === `offset`) {
|
|
2817
|
+
if (!this.bumpIf(`:`)) return this.error(n.ErrorKind.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, l(this.clonePosition(), this.clonePosition()));
|
|
2818
|
+
this.bumpSpace();
|
|
2819
|
+
var h = this.tryParseDecimalInteger(n.ErrorKind.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, n.ErrorKind.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);
|
|
2820
|
+
if (h.err) return h;
|
|
2821
|
+
this.bumpSpace(), C = this.parseIdentifierIfPossible(), w = h.val;
|
|
2822
|
+
}
|
|
2823
|
+
var T = this.tryParsePluralOrSelectOptions(e, d, i, C);
|
|
2824
|
+
if (T.err) return T;
|
|
2825
|
+
var _ = this.tryParseArgumentClose(c);
|
|
2826
|
+
if (_.err) return _;
|
|
2827
|
+
var re = l(c, this.clonePosition());
|
|
2828
|
+
return d === `select` ? {
|
|
2829
|
+
val: {
|
|
2830
|
+
type: r.TYPE.select,
|
|
2831
|
+
value: s,
|
|
2832
|
+
options: b(T.val),
|
|
2833
|
+
location: re
|
|
2834
|
+
},
|
|
2835
|
+
err: null
|
|
2836
|
+
} : {
|
|
2837
|
+
val: {
|
|
2838
|
+
type: r.TYPE.plural,
|
|
2839
|
+
value: s,
|
|
2840
|
+
options: b(T.val),
|
|
2841
|
+
offset: w,
|
|
2842
|
+
pluralType: d === `plural` ? `cardinal` : `ordinal`,
|
|
2843
|
+
location: re
|
|
2844
|
+
},
|
|
2845
|
+
err: null
|
|
2846
|
+
};
|
|
2847
|
+
default: return this.error(n.ErrorKind.INVALID_ARGUMENT_TYPE, l(u, f));
|
|
2848
|
+
}
|
|
2849
|
+
}, e.prototype.tryParseArgumentClose = function(e) {
|
|
2850
|
+
return this.isEOF() || this.char() !== 125 ? this.error(n.ErrorKind.EXPECT_ARGUMENT_CLOSING_BRACE, l(e, this.clonePosition())) : (this.bump(), {
|
|
2851
|
+
val: !0,
|
|
2852
|
+
err: null
|
|
2853
|
+
});
|
|
2854
|
+
}, e.prototype.parseSimpleArgStyleIfPossible = function() {
|
|
2855
|
+
for (var e = 0, t = this.clonePosition(); !this.isEOF();) switch (this.char()) {
|
|
2856
|
+
case 39:
|
|
2857
|
+
this.bump();
|
|
2858
|
+
var r = this.clonePosition();
|
|
2859
|
+
if (!this.bumpUntil(`'`)) return this.error(n.ErrorKind.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE, l(r, this.clonePosition()));
|
|
2860
|
+
this.bump();
|
|
2861
|
+
break;
|
|
2862
|
+
case 123:
|
|
2863
|
+
e += 1, this.bump();
|
|
2864
|
+
break;
|
|
2865
|
+
case 125:
|
|
2866
|
+
if (e > 0) --e;
|
|
2867
|
+
else return {
|
|
2868
|
+
val: this.message.slice(t.offset, this.offset()),
|
|
2869
|
+
err: null
|
|
2870
|
+
};
|
|
2871
|
+
break;
|
|
2872
|
+
default:
|
|
2873
|
+
this.bump();
|
|
2874
|
+
break;
|
|
2875
|
+
}
|
|
2876
|
+
return {
|
|
2877
|
+
val: this.message.slice(t.offset, this.offset()),
|
|
2878
|
+
err: null
|
|
2879
|
+
};
|
|
2880
|
+
}, e.prototype.parseNumberSkeletonFromString = function(e, t) {
|
|
2881
|
+
var i = [];
|
|
2882
|
+
try {
|
|
2883
|
+
i = (0, a.parseNumberSkeletonFromString)(e);
|
|
2884
|
+
} catch {
|
|
2885
|
+
return this.error(n.ErrorKind.INVALID_NUMBER_SKELETON, t);
|
|
2886
|
+
}
|
|
2887
|
+
return {
|
|
2888
|
+
val: {
|
|
2889
|
+
type: r.SKELETON_TYPE.number,
|
|
2890
|
+
tokens: i,
|
|
2891
|
+
location: t,
|
|
2892
|
+
parsedOptions: this.shouldParseSkeletons ? (0, a.parseNumberSkeleton)(i) : {}
|
|
2893
|
+
},
|
|
2894
|
+
err: null
|
|
2895
|
+
};
|
|
2896
|
+
}, e.prototype.tryParsePluralOrSelectOptions = function(e, t, r, i) {
|
|
2897
|
+
for (var a, o = !1, s = [], c = /* @__PURE__ */ new Set(), u = i.value, d = i.location;;) {
|
|
2898
|
+
if (u.length === 0) {
|
|
2899
|
+
var f = this.clonePosition();
|
|
2900
|
+
if (t !== `select` && this.bumpIf(`=`)) {
|
|
2901
|
+
var p = this.tryParseDecimalInteger(n.ErrorKind.EXPECT_PLURAL_ARGUMENT_SELECTOR, n.ErrorKind.INVALID_PLURAL_ARGUMENT_SELECTOR);
|
|
2902
|
+
if (p.err) return p;
|
|
2903
|
+
d = l(f, this.clonePosition()), u = this.message.slice(f.offset, this.offset());
|
|
2904
|
+
} else break;
|
|
2905
|
+
}
|
|
2906
|
+
if (c.has(u)) return this.error(t === `select` ? n.ErrorKind.DUPLICATE_SELECT_ARGUMENT_SELECTOR : n.ErrorKind.DUPLICATE_PLURAL_ARGUMENT_SELECTOR, d);
|
|
2907
|
+
u === `other` && (o = !0), this.bumpSpace();
|
|
2908
|
+
var m = this.clonePosition();
|
|
2909
|
+
if (!this.bumpIf(`{`)) return this.error(t === `select` ? n.ErrorKind.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT : n.ErrorKind.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT, l(this.clonePosition(), this.clonePosition()));
|
|
2910
|
+
var h = this.parseMessage(e + 1, t, r);
|
|
2911
|
+
if (h.err) return h;
|
|
2912
|
+
var g = this.tryParseArgumentClose(m);
|
|
2913
|
+
if (g.err) return g;
|
|
2914
|
+
s.push([u, {
|
|
2915
|
+
value: h.val,
|
|
2916
|
+
location: l(m, this.clonePosition())
|
|
2917
|
+
}]), c.add(u), this.bumpSpace(), a = this.parseIdentifierIfPossible(), u = a.value, d = a.location;
|
|
2918
|
+
}
|
|
2919
|
+
return s.length === 0 ? this.error(t === `select` ? n.ErrorKind.EXPECT_SELECT_ARGUMENT_SELECTOR : n.ErrorKind.EXPECT_PLURAL_ARGUMENT_SELECTOR, l(this.clonePosition(), this.clonePosition())) : this.requiresOtherClause && !o ? this.error(n.ErrorKind.MISSING_OTHER_CLAUSE, l(this.clonePosition(), this.clonePosition())) : {
|
|
2920
|
+
val: s,
|
|
2921
|
+
err: null
|
|
2922
|
+
};
|
|
2923
|
+
}, e.prototype.tryParseDecimalInteger = function(e, t) {
|
|
2924
|
+
var n = 1, r = this.clonePosition();
|
|
2925
|
+
this.bumpIf(`+`) || this.bumpIf(`-`) && (n = -1);
|
|
2926
|
+
for (var i = !1, a = 0; !this.isEOF();) {
|
|
2927
|
+
var o = this.char();
|
|
2928
|
+
if (o >= 48 && o <= 57) i = !0, a = a * 10 + (o - 48), this.bump();
|
|
2929
|
+
else break;
|
|
2930
|
+
}
|
|
2931
|
+
var s = l(r, this.clonePosition());
|
|
2932
|
+
return i ? (a *= n, _(a) ? {
|
|
2933
|
+
val: a,
|
|
2934
|
+
err: null
|
|
2935
|
+
} : this.error(t, s)) : this.error(e, s);
|
|
2936
|
+
}, e.prototype.offset = function() {
|
|
2937
|
+
return this.position.offset;
|
|
2938
|
+
}, e.prototype.isEOF = function() {
|
|
2939
|
+
return this.offset() === this.message.length;
|
|
2940
|
+
}, e.prototype.clonePosition = function() {
|
|
2941
|
+
return {
|
|
2942
|
+
offset: this.position.offset,
|
|
2943
|
+
line: this.position.line,
|
|
2944
|
+
column: this.position.column
|
|
2945
|
+
};
|
|
2946
|
+
}, e.prototype.char = function() {
|
|
2947
|
+
var e = this.position.offset;
|
|
2948
|
+
if (e >= this.message.length) throw Error(`out of bound`);
|
|
2949
|
+
var t = x(this.message, e);
|
|
2950
|
+
if (t === void 0) throw Error(`Offset ${e} is at invalid UTF-16 code unit boundary`);
|
|
2951
|
+
return t;
|
|
2952
|
+
}, e.prototype.error = function(e, t) {
|
|
2953
|
+
return {
|
|
2954
|
+
val: null,
|
|
2955
|
+
err: {
|
|
2956
|
+
kind: e,
|
|
2957
|
+
message: this.message,
|
|
2958
|
+
location: t
|
|
2959
|
+
}
|
|
2960
|
+
};
|
|
2961
|
+
}, e.prototype.bump = function() {
|
|
2962
|
+
if (!this.isEOF()) {
|
|
2963
|
+
var e = this.char();
|
|
2964
|
+
e === 10 ? (this.position.line += 1, this.position.column = 1, this.position.offset += 1) : (this.position.column += 1, this.position.offset += e < 65536 ? 1 : 2);
|
|
2965
|
+
}
|
|
2966
|
+
}, e.prototype.bumpIf = function(e) {
|
|
2967
|
+
if (ee(this.message, e, this.offset())) {
|
|
2968
|
+
for (var t = 0; t < e.length; t++) this.bump();
|
|
2969
|
+
return !0;
|
|
2970
|
+
}
|
|
2971
|
+
return !1;
|
|
2972
|
+
}, e.prototype.bumpUntil = function(e) {
|
|
2973
|
+
var t = this.offset(), n = this.message.indexOf(e, t);
|
|
2974
|
+
return n >= 0 ? (this.bumpTo(n), !0) : (this.bumpTo(this.message.length), !1);
|
|
2975
|
+
}, e.prototype.bumpTo = function(e) {
|
|
2976
|
+
if (this.offset() > e) throw Error(`targetOffset ${e} must be greater than or equal to the current offset ${this.offset()}`);
|
|
2977
|
+
for (e = Math.min(e, this.message.length);;) {
|
|
2978
|
+
var t = this.offset();
|
|
2979
|
+
if (t === e) break;
|
|
2980
|
+
if (t > e) throw Error(`targetOffset ${e} is at invalid UTF-16 code unit boundary`);
|
|
2981
|
+
if (this.bump(), this.isEOF()) break;
|
|
2982
|
+
}
|
|
2983
|
+
}, e.prototype.bumpSpace = function() {
|
|
2984
|
+
for (; !this.isEOF() && ie(this.char());) this.bump();
|
|
2985
|
+
}, e.prototype.peek = function() {
|
|
2986
|
+
if (this.isEOF()) return null;
|
|
2987
|
+
var e = this.char(), t = this.offset();
|
|
2988
|
+
return this.message.charCodeAt(t + (e >= 65536 ? 2 : 1)) ?? null;
|
|
2989
|
+
}, e;
|
|
2990
|
+
}();
|
|
2991
|
+
function T(e) {
|
|
2992
|
+
return e >= 97 && e <= 122 || e >= 65 && e <= 90;
|
|
2993
|
+
}
|
|
2994
|
+
function re(e) {
|
|
2995
|
+
return T(e) || e === 47;
|
|
2996
|
+
}
|
|
2997
|
+
function E(e) {
|
|
2998
|
+
return e === 45 || e === 46 || e >= 48 && e <= 57 || e === 95 || e >= 97 && e <= 122 || e >= 65 && e <= 90 || e == 183 || e >= 192 && e <= 214 || e >= 216 && e <= 246 || e >= 248 && e <= 893 || e >= 895 && e <= 8191 || e >= 8204 && e <= 8205 || e >= 8255 && e <= 8256 || e >= 8304 && e <= 8591 || e >= 11264 && e <= 12271 || e >= 12289 && e <= 55295 || e >= 63744 && e <= 64975 || e >= 65008 && e <= 65533 || e >= 65536 && e <= 983039;
|
|
2999
|
+
}
|
|
3000
|
+
function ie(e) {
|
|
3001
|
+
return e >= 9 && e <= 13 || e === 32 || e === 133 || e >= 8206 && e <= 8207 || e === 8232 || e === 8233;
|
|
3002
|
+
}
|
|
3003
|
+
function D(e) {
|
|
3004
|
+
return e >= 33 && e <= 35 || e === 36 || e >= 37 && e <= 39 || e === 40 || e === 41 || e === 42 || e === 43 || e === 44 || e === 45 || e >= 46 && e <= 47 || e >= 58 && e <= 59 || e >= 60 && e <= 62 || e >= 63 && e <= 64 || e === 91 || e === 92 || e === 93 || e === 94 || e === 96 || e === 123 || e === 124 || e === 125 || e === 126 || e === 161 || e >= 162 && e <= 165 || e === 166 || e === 167 || e === 169 || e === 171 || e === 172 || e === 174 || e === 176 || e === 177 || e === 182 || e === 187 || e === 191 || e === 215 || e === 247 || e >= 8208 && e <= 8213 || e >= 8214 && e <= 8215 || e === 8216 || e === 8217 || e === 8218 || e >= 8219 && e <= 8220 || e === 8221 || e === 8222 || e === 8223 || e >= 8224 && e <= 8231 || e >= 8240 && e <= 8248 || e === 8249 || e === 8250 || e >= 8251 && e <= 8254 || e >= 8257 && e <= 8259 || e === 8260 || e === 8261 || e === 8262 || e >= 8263 && e <= 8273 || e === 8274 || e === 8275 || e >= 8277 && e <= 8286 || e >= 8592 && e <= 8596 || e >= 8597 && e <= 8601 || e >= 8602 && e <= 8603 || e >= 8604 && e <= 8607 || e === 8608 || e >= 8609 && e <= 8610 || e === 8611 || e >= 8612 && e <= 8613 || e === 8614 || e >= 8615 && e <= 8621 || e === 8622 || e >= 8623 && e <= 8653 || e >= 8654 && e <= 8655 || e >= 8656 && e <= 8657 || e === 8658 || e === 8659 || e === 8660 || e >= 8661 && e <= 8691 || e >= 8692 && e <= 8959 || e >= 8960 && e <= 8967 || e === 8968 || e === 8969 || e === 8970 || e === 8971 || e >= 8972 && e <= 8991 || e >= 8992 && e <= 8993 || e >= 8994 && e <= 9e3 || e === 9001 || e === 9002 || e >= 9003 && e <= 9083 || e === 9084 || e >= 9085 && e <= 9114 || e >= 9115 && e <= 9139 || e >= 9140 && e <= 9179 || e >= 9180 && e <= 9185 || e >= 9186 && e <= 9254 || e >= 9255 && e <= 9279 || e >= 9280 && e <= 9290 || e >= 9291 && e <= 9311 || e >= 9472 && e <= 9654 || e === 9655 || e >= 9656 && e <= 9664 || e === 9665 || e >= 9666 && e <= 9719 || e >= 9720 && e <= 9727 || e >= 9728 && e <= 9838 || e === 9839 || e >= 9840 && e <= 10087 || e === 10088 || e === 10089 || e === 10090 || e === 10091 || e === 10092 || e === 10093 || e === 10094 || e === 10095 || e === 10096 || e === 10097 || e === 10098 || e === 10099 || e === 10100 || e === 10101 || e >= 10132 && e <= 10175 || e >= 10176 && e <= 10180 || e === 10181 || e === 10182 || e >= 10183 && e <= 10213 || e === 10214 || e === 10215 || e === 10216 || e === 10217 || e === 10218 || e === 10219 || e === 10220 || e === 10221 || e === 10222 || e === 10223 || e >= 10224 && e <= 10239 || e >= 10240 && e <= 10495 || e >= 10496 && e <= 10626 || e === 10627 || e === 10628 || e === 10629 || e === 10630 || e === 10631 || e === 10632 || e === 10633 || e === 10634 || e === 10635 || e === 10636 || e === 10637 || e === 10638 || e === 10639 || e === 10640 || e === 10641 || e === 10642 || e === 10643 || e === 10644 || e === 10645 || e === 10646 || e === 10647 || e === 10648 || e >= 10649 && e <= 10711 || e === 10712 || e === 10713 || e === 10714 || e === 10715 || e >= 10716 && e <= 10747 || e === 10748 || e === 10749 || e >= 10750 && e <= 11007 || e >= 11008 && e <= 11055 || e >= 11056 && e <= 11076 || e >= 11077 && e <= 11078 || e >= 11079 && e <= 11084 || e >= 11085 && e <= 11123 || e >= 11124 && e <= 11125 || e >= 11126 && e <= 11157 || e === 11158 || e >= 11159 && e <= 11263 || e >= 11776 && e <= 11777 || e === 11778 || e === 11779 || e === 11780 || e === 11781 || e >= 11782 && e <= 11784 || e === 11785 || e === 11786 || e === 11787 || e === 11788 || e === 11789 || e >= 11790 && e <= 11798 || e === 11799 || e >= 11800 && e <= 11801 || e === 11802 || e === 11803 || e === 11804 || e === 11805 || e >= 11806 && e <= 11807 || e === 11808 || e === 11809 || e === 11810 || e === 11811 || e === 11812 || e === 11813 || e === 11814 || e === 11815 || e === 11816 || e === 11817 || e >= 11818 && e <= 11822 || e === 11823 || e >= 11824 && e <= 11833 || e >= 11834 && e <= 11835 || e >= 11836 && e <= 11839 || e === 11840 || e === 11841 || e === 11842 || e >= 11843 && e <= 11855 || e >= 11856 && e <= 11857 || e === 11858 || e >= 11859 && e <= 11903 || e >= 12289 && e <= 12291 || e === 12296 || e === 12297 || e === 12298 || e === 12299 || e === 12300 || e === 12301 || e === 12302 || e === 12303 || e === 12304 || e === 12305 || e >= 12306 && e <= 12307 || e === 12308 || e === 12309 || e === 12310 || e === 12311 || e === 12312 || e === 12313 || e === 12314 || e === 12315 || e === 12316 || e === 12317 || e >= 12318 && e <= 12319 || e === 12320 || e === 12336 || e === 64830 || e === 64831 || e >= 65093 && e <= 65094;
|
|
3005
|
+
}
|
|
3006
|
+
})), bt = p(((e) => {
|
|
3007
|
+
Object.defineProperty(e, `__esModule`, { value: !0 }), e.hoistSelectors = s, e.isStructurallySame = l;
|
|
3008
|
+
var t = (R(), g(M)), n = z();
|
|
3009
|
+
function r(e) {
|
|
3010
|
+
return Array.isArray(e) ? t.__spreadArray([], e.map(r), !0) : typeof e == `object` && e ? Object.keys(e).reduce(function(t, n) {
|
|
3011
|
+
return t[n] = r(e[n]), t;
|
|
3012
|
+
}, {}) : e;
|
|
3013
|
+
}
|
|
3014
|
+
function i(e, n, i) {
|
|
3015
|
+
var a = r(n), o = a.options;
|
|
3016
|
+
return a.options = Object.keys(o).reduce(function(n, r) {
|
|
3017
|
+
return n[r] = { value: s(t.__spreadArray(t.__spreadArray(t.__spreadArray([], e.slice(0, i), !0), o[r].value, !0), e.slice(i + 1), !0)) }, n;
|
|
3018
|
+
}, {}), a;
|
|
3019
|
+
}
|
|
3020
|
+
function a(e) {
|
|
3021
|
+
return (0, n.isPluralElement)(e) || (0, n.isSelectElement)(e);
|
|
3022
|
+
}
|
|
3023
|
+
function o(e) {
|
|
3024
|
+
return !!e.find(function(e) {
|
|
3025
|
+
return a(e) ? !0 : (0, n.isTagElement)(e) ? o(e.children) : !1;
|
|
3026
|
+
});
|
|
3027
|
+
}
|
|
3028
|
+
function s(e) {
|
|
3029
|
+
for (var t = 0; t < e.length; t++) {
|
|
3030
|
+
var r = e[t];
|
|
3031
|
+
if (a(r)) return [i(e, r, t)];
|
|
3032
|
+
if ((0, n.isTagElement)(r) && o([r])) throw Error(`Cannot hoist plural/select within a tag element. Please put the tag element inside each plural/select option`);
|
|
3033
|
+
}
|
|
3034
|
+
return e;
|
|
3035
|
+
}
|
|
3036
|
+
function c(e, t) {
|
|
3037
|
+
t === void 0 && (t = /* @__PURE__ */ new Map()), e.forEach(function(e) {
|
|
3038
|
+
if ((0, n.isArgumentElement)(e) || (0, n.isDateElement)(e) || (0, n.isTimeElement)(e) || (0, n.isNumberElement)(e)) {
|
|
3039
|
+
if (e.value in t && t.get(e.value) !== e.type) throw Error(`Variable ${e.value} has conflicting types`);
|
|
3040
|
+
t.set(e.value, e.type);
|
|
3041
|
+
}
|
|
3042
|
+
((0, n.isPluralElement)(e) || (0, n.isSelectElement)(e)) && (t.set(e.value, e.type), Object.keys(e.options).forEach(function(n) {
|
|
3043
|
+
c(e.options[n].value, t);
|
|
3044
|
+
})), (0, n.isTagElement)(e) && (t.set(e.value, e.type), c(e.children, t));
|
|
3045
|
+
});
|
|
3046
|
+
}
|
|
3047
|
+
function l(e, t) {
|
|
3048
|
+
var r = /* @__PURE__ */ new Map(), i = /* @__PURE__ */ new Map();
|
|
3049
|
+
return c(e, r), c(t, i), r.size === i.size ? Array.from(r.entries()).reduce(function(e, t) {
|
|
3050
|
+
var r = t[0], a = t[1];
|
|
3051
|
+
if (!e.success) return e;
|
|
3052
|
+
var o = i.get(r);
|
|
3053
|
+
return o == null ? {
|
|
3054
|
+
success: !1,
|
|
3055
|
+
error: Error(`Missing variable ${r} in message`)
|
|
3056
|
+
} : o === a ? e : {
|
|
3057
|
+
success: !1,
|
|
3058
|
+
error: Error(`Variable ${r} has conflicting types: ${n.TYPE[a]} vs ${n.TYPE[o]}`)
|
|
3059
|
+
};
|
|
3060
|
+
}, { success: !0 }) : {
|
|
3061
|
+
success: !1,
|
|
3062
|
+
error: Error(`Different number of variables: [${Array.from(r.keys()).join(`, `)}] vs [${Array.from(i.keys()).join(`, `)}]`)
|
|
3063
|
+
};
|
|
3064
|
+
}
|
|
3065
|
+
})), xt = p(((e) => {
|
|
3066
|
+
Object.defineProperty(e, `__esModule`, { value: !0 }), e.isStructurallySame = e._Parser = void 0, e.parse = o;
|
|
3067
|
+
var t = (R(), g(M)), n = dt(), r = yt(), i = z();
|
|
3068
|
+
function a(e) {
|
|
3069
|
+
e.forEach(function(e) {
|
|
3070
|
+
if (delete e.location, (0, i.isSelectElement)(e) || (0, i.isPluralElement)(e)) for (var t in e.options) delete e.options[t].location, a(e.options[t].value);
|
|
3071
|
+
else (0, i.isNumberElement)(e) && (0, i.isNumberSkeleton)(e.style) || ((0, i.isDateElement)(e) || (0, i.isTimeElement)(e)) && (0, i.isDateTimeSkeleton)(e.style) ? delete e.style.location : (0, i.isTagElement)(e) && a(e.children);
|
|
3072
|
+
});
|
|
3073
|
+
}
|
|
3074
|
+
function o(e, i) {
|
|
3075
|
+
i === void 0 && (i = {}), i = t.__assign({
|
|
3076
|
+
shouldParseSkeletons: !0,
|
|
3077
|
+
requiresOtherClause: !0
|
|
3078
|
+
}, i);
|
|
3079
|
+
var o = new r.Parser(e, i).parse();
|
|
3080
|
+
if (o.err) {
|
|
3081
|
+
var s = SyntaxError(n.ErrorKind[o.err.kind]);
|
|
3082
|
+
throw s.location = o.err.location, s.originalMessage = o.err.message, s;
|
|
3083
|
+
}
|
|
3084
|
+
return i?.captureLocation || a(o.val), o.val;
|
|
3085
|
+
}
|
|
3086
|
+
t.__exportStar(z(), e), e._Parser = r.Parser;
|
|
3087
|
+
var s = bt();
|
|
3088
|
+
Object.defineProperty(e, `isStructurallySame`, {
|
|
3089
|
+
enumerable: !0,
|
|
3090
|
+
get: function() {
|
|
3091
|
+
return s.isStructurallySame;
|
|
3092
|
+
}
|
|
3093
|
+
});
|
|
3094
|
+
})), St = p(((e) => {
|
|
3095
|
+
Object.defineProperty(e, `__esModule`, { value: !0 }), e.printAST = r;
|
|
3096
|
+
var t = (R(), g(M)), n = z();
|
|
3097
|
+
function r(e) {
|
|
3098
|
+
return i(e, !1);
|
|
3099
|
+
}
|
|
3100
|
+
function i(e, t) {
|
|
3101
|
+
return e.map(function(r, i) {
|
|
3102
|
+
if ((0, n.isLiteralElement)(r)) return s(r, t, i === 0, i === e.length - 1);
|
|
3103
|
+
if ((0, n.isArgumentElement)(r)) return c(r);
|
|
3104
|
+
if ((0, n.isDateElement)(r) || (0, n.isTimeElement)(r) || (0, n.isNumberElement)(r)) return l(r);
|
|
3105
|
+
if ((0, n.isPluralElement)(r)) return m(r);
|
|
3106
|
+
if ((0, n.isSelectElement)(r)) return p(r);
|
|
3107
|
+
if ((0, n.isPoundElement)(r)) return `#`;
|
|
3108
|
+
if ((0, n.isTagElement)(r)) return a(r);
|
|
3109
|
+
}).join(``);
|
|
3110
|
+
}
|
|
3111
|
+
function a(e) {
|
|
3112
|
+
return `<${e.value}>${r(e.children)}</${e.value}>`;
|
|
3113
|
+
}
|
|
3114
|
+
function o(e) {
|
|
3115
|
+
return e.replace(/([{}](?:[\s\S]*[{}])?)/, `'$1'`);
|
|
3116
|
+
}
|
|
3117
|
+
function s(e, t, n, r) {
|
|
3118
|
+
var i = e.value;
|
|
3119
|
+
return !n && i[0] === `'` && (i = `''${i.slice(1)}`), !r && i[i.length - 1] === `'` && (i = `${i.slice(0, i.length - 1)}''`), i = o(i), t ? i.replace(`#`, `'#'`) : i;
|
|
3120
|
+
}
|
|
3121
|
+
function c(e) {
|
|
3122
|
+
return `{${e.value}}`;
|
|
3123
|
+
}
|
|
3124
|
+
function l(e) {
|
|
3125
|
+
return `{${e.value}, ${n.TYPE[e.type]}${e.style ? `, ${d(e.style)}` : ``}}`;
|
|
3126
|
+
}
|
|
3127
|
+
function u(e) {
|
|
3128
|
+
var t = e.stem, n = e.options;
|
|
3129
|
+
return n.length === 0 ? t : `${t}${n.map(function(e) {
|
|
3130
|
+
return `/${e}`;
|
|
3131
|
+
}).join(``)}`;
|
|
3132
|
+
}
|
|
3133
|
+
function d(e) {
|
|
3134
|
+
return typeof e == `string` ? o(e) : e.type === n.SKELETON_TYPE.dateTime ? `::${f(e)}` : `::${e.tokens.map(u).join(` `)}`;
|
|
3135
|
+
}
|
|
3136
|
+
function f(e) {
|
|
3137
|
+
return e.pattern;
|
|
3138
|
+
}
|
|
3139
|
+
function p(e) {
|
|
3140
|
+
return `{${[
|
|
3141
|
+
e.value,
|
|
3142
|
+
`select`,
|
|
3143
|
+
Object.keys(e.options).map(function(t) {
|
|
3144
|
+
return `${t}{${i(e.options[t].value, !1)}}`;
|
|
3145
|
+
}).join(` `)
|
|
3146
|
+
].join(`,`)}}`;
|
|
3147
|
+
}
|
|
3148
|
+
function m(e) {
|
|
3149
|
+
var n = e.pluralType === `cardinal` ? `plural` : `selectordinal`;
|
|
3150
|
+
return `{${[
|
|
3151
|
+
e.value,
|
|
3152
|
+
n,
|
|
3153
|
+
t.__spreadArray([e.offset ? `offset:${e.offset}` : ``], Object.keys(e.options).map(function(t) {
|
|
3154
|
+
return `${t}{${i(e.options[t].value, !0)}}`;
|
|
3155
|
+
}), !0).filter(Boolean).join(` `)
|
|
3156
|
+
].join(`,`)}}`;
|
|
3157
|
+
}
|
|
3158
|
+
})), B = xt(), V = z(), Ct = St();
|
|
3159
|
+
const wt = [
|
|
3160
|
+
`singular`,
|
|
3161
|
+
`plural`,
|
|
3162
|
+
`dual`,
|
|
3163
|
+
`zero`,
|
|
3164
|
+
`one`,
|
|
3165
|
+
`two`,
|
|
3166
|
+
`few`,
|
|
3167
|
+
`many`,
|
|
3168
|
+
`other`
|
|
3169
|
+
];
|
|
3170
|
+
function Tt(e) {
|
|
3171
|
+
return wt.includes(e);
|
|
3172
|
+
}
|
|
3173
|
+
function Et(e, t = wt, n = [`en`]) {
|
|
3174
|
+
let r = Me(n).select(e), i = Math.abs(e);
|
|
3175
|
+
if (i === 0 && t.includes(`zero`)) return `zero`;
|
|
3176
|
+
if (i === 1) {
|
|
3177
|
+
if (t.includes(`singular`)) return `singular`;
|
|
3178
|
+
if (t.includes(`one`)) return `one`;
|
|
3179
|
+
}
|
|
3180
|
+
if (r === `one` && t.includes(`singular`)) return `singular`;
|
|
3181
|
+
if (i === 2) {
|
|
3182
|
+
if (t.includes(`dual`)) return `dual`;
|
|
3183
|
+
if (t.includes(`two`)) return `two`;
|
|
3184
|
+
}
|
|
3185
|
+
return r === `two` && t.includes(`dual`) ? `dual` : t.includes(r) ? r : r === `two` && t.includes(`dual`) ? `dual` : r === `two` && t.includes(`plural`) ? `plural` : r === `two` && t.includes(`other`) ? `other` : r === `few` && t.includes(`plural`) ? `plural` : r === `few` && t.includes(`other`) ? `other` : r === `many` && t.includes(`plural`) ? `plural` : r === `many` && t.includes(`other`) ? `other` : r === `other` && t.includes(`plural`) ? `plural` : ``;
|
|
3186
|
+
}
|
|
3187
|
+
const Dt = {
|
|
3188
|
+
variable: `v`,
|
|
3189
|
+
number: `n`,
|
|
3190
|
+
datetime: `d`,
|
|
3191
|
+
currency: `c`,
|
|
3192
|
+
"relative-time": `rt`
|
|
3193
|
+
};
|
|
3194
|
+
function Ot(e) {
|
|
3195
|
+
return Dt[e];
|
|
3196
|
+
}
|
|
3197
|
+
function H({ icuString: e, shouldVisit: t, visitor: n, options: { recurseIntoVisited: r = !0, ...i } }) {
|
|
3198
|
+
let a = (0, B.parse)(e, i);
|
|
3199
|
+
return o(a), a;
|
|
3200
|
+
function o(e) {
|
|
3201
|
+
e.map(s);
|
|
3202
|
+
}
|
|
3203
|
+
function s(e) {
|
|
3204
|
+
let i = !1;
|
|
3205
|
+
t(e) && (n(e), i = !0), (!i || r) && (e.type === B.TYPE.select || e.type === B.TYPE.plural ? Object.values(e.options).map((e) => e.value).map(o) : e.type === B.TYPE.tag && o(e.children));
|
|
3206
|
+
}
|
|
3207
|
+
}
|
|
3208
|
+
const U = `_gt_`, kt = RegExp(`^${U}\\d+$`), At = RegExp(`^${U}$`);
|
|
3209
|
+
function jt(e) {
|
|
3210
|
+
return e.type === V.TYPE.select && kt.test(e.value) && !!e.options.other && (e.options.other.value.length === 0 || e.options.other.value.length > 0 && e.options.other.value[0]?.type === V.TYPE.literal);
|
|
3211
|
+
}
|
|
3212
|
+
function Mt(e) {
|
|
3213
|
+
return e.type === V.TYPE.select && At.test(e.value) && !!e.options.other && (e.options.other.value.length === 0 || e.options.other.value.length > 0 && e.options.other.value[0]?.type === V.TYPE.literal);
|
|
3214
|
+
}
|
|
3215
|
+
function Nt(e) {
|
|
3216
|
+
if (!e.includes(`_gt_`)) return e;
|
|
3217
|
+
let t = [];
|
|
3218
|
+
function n(e) {
|
|
3219
|
+
t.push({
|
|
3220
|
+
start: e.location?.start.offset ?? 0,
|
|
3221
|
+
end: e.location?.end.offset ?? 0,
|
|
3222
|
+
value: e.options.other.value.length > 0 ? e.options.other.value[0].value : ``
|
|
3223
|
+
});
|
|
3224
|
+
}
|
|
3225
|
+
H({
|
|
3226
|
+
icuString: e,
|
|
3227
|
+
shouldVisit: Mt,
|
|
3228
|
+
visitor: n,
|
|
3229
|
+
options: {
|
|
3230
|
+
recurseIntoVisited: !1,
|
|
3231
|
+
captureLocation: !0
|
|
3232
|
+
}
|
|
3233
|
+
});
|
|
3234
|
+
let r = 0, i = [];
|
|
3235
|
+
for (let n = 0; n < t.length; n++) i.push(e.slice(r, t[n].start)), i.push(t[n].value), r = t[n].end;
|
|
3236
|
+
return r < e.length && i.push(e.slice(r)), i.join(``);
|
|
3237
|
+
}
|
|
3238
|
+
function Pt(e) {
|
|
3239
|
+
let t = e.replace(/'/g, `''`), n = /[{}<>]/, r = t.search(n);
|
|
3240
|
+
if (r === -1) return t;
|
|
3241
|
+
let i = -1;
|
|
3242
|
+
for (let e = t.length - 1; e >= 0; e--) if (n.test(t[e])) {
|
|
3243
|
+
i = e;
|
|
3244
|
+
break;
|
|
3245
|
+
}
|
|
3246
|
+
return t = t.slice(0, r) + `'` + t.slice(r, i + 1) + `'` + t.slice(i + 1), t;
|
|
3247
|
+
}
|
|
3248
|
+
function Ft(e, t) {
|
|
3249
|
+
let n = ` other {${Pt(String(e ?? ``))}}`, r = ``;
|
|
3250
|
+
return t?.$name && (r = ` _gt_var_name {${Pt(t.$name)}}`), `{${U}, select,${n}${r}}`;
|
|
3251
|
+
}
|
|
3252
|
+
function It(e) {
|
|
3253
|
+
return e;
|
|
3254
|
+
}
|
|
3255
|
+
const Lt = It;
|
|
3256
|
+
function Rt(e) {
|
|
3257
|
+
if (!e.includes(`_gt_`)) return e;
|
|
3258
|
+
let t = [];
|
|
3259
|
+
function n(e) {
|
|
3260
|
+
t.push({
|
|
3261
|
+
start: e.location?.start.offset ?? 0,
|
|
3262
|
+
end: e.location?.end.offset ?? 0,
|
|
3263
|
+
otherStart: e.options.other.location?.start.offset ?? 0,
|
|
3264
|
+
otherEnd: e.options.other.location?.end.offset ?? 0
|
|
3265
|
+
});
|
|
3266
|
+
}
|
|
3267
|
+
H({
|
|
3268
|
+
icuString: e,
|
|
3269
|
+
shouldVisit: Mt,
|
|
3270
|
+
visitor: n,
|
|
3271
|
+
options: {
|
|
3272
|
+
recurseIntoVisited: !1,
|
|
3273
|
+
captureLocation: !0
|
|
3274
|
+
}
|
|
3275
|
+
});
|
|
3276
|
+
let r = [], i = 0;
|
|
3277
|
+
for (let n = 0; n < t.length; n++) {
|
|
3278
|
+
let { start: a, end: o, otherStart: s, otherEnd: c } = t[n];
|
|
3279
|
+
r.push(e.slice(i, a)), r.push(e.slice(a, a + 4 + 1)), r.push(String(n + 1)), r.push(e.slice(a + 4 + 1, s)), r.push(`{}`), r.push(e.slice(c, o)), i = o;
|
|
3280
|
+
}
|
|
3281
|
+
return r.push(e.slice(i, e.length)), r.join(``);
|
|
3282
|
+
}
|
|
3283
|
+
function zt(e) {
|
|
3284
|
+
if (!e.includes(`_gt_`)) return {};
|
|
3285
|
+
let t = 1, n = {};
|
|
3286
|
+
function r(e) {
|
|
3287
|
+
n[e.value + t] = e.options.other.value.length ? e.options.other.value[0]?.value : ``, t += 1;
|
|
3288
|
+
}
|
|
3289
|
+
return H({
|
|
3290
|
+
icuString: e,
|
|
3291
|
+
shouldVisit: Mt,
|
|
3292
|
+
visitor: r,
|
|
3293
|
+
options: { recurseIntoVisited: !1 }
|
|
3294
|
+
}), n;
|
|
3295
|
+
}
|
|
3296
|
+
function Bt(e) {
|
|
3297
|
+
if (!e.includes(`_gt_`)) return e;
|
|
3298
|
+
function t(e) {
|
|
3299
|
+
e.type = V.TYPE.argument, Reflect.deleteProperty(e, `options`);
|
|
3300
|
+
}
|
|
3301
|
+
return (0, Ct.printAST)(H({
|
|
3302
|
+
icuString: e,
|
|
3303
|
+
shouldVisit: jt,
|
|
3304
|
+
visitor: t,
|
|
3305
|
+
options: { recurseIntoVisited: !1 }
|
|
3306
|
+
}));
|
|
3307
|
+
}
|
|
3308
|
+
function Vt(e, n = 0) {
|
|
3309
|
+
let r = n, a = (e) => {
|
|
3310
|
+
let { type: t, props: n } = e;
|
|
3311
|
+
r += 1;
|
|
3312
|
+
let i = {
|
|
3313
|
+
id: r,
|
|
3314
|
+
injectionType: `manual`
|
|
3315
|
+
}, a;
|
|
3316
|
+
try {
|
|
3317
|
+
a = typeof t == `function` ? t._gtt : void 0;
|
|
3318
|
+
} catch {}
|
|
3319
|
+
if (a) {
|
|
3320
|
+
let e = a.split(`-`);
|
|
3321
|
+
if ((e[1] === `automatic` || e[2] === `automatic`) && (i.injectionType = `automatic`), e[0] === `translate` && (e[0] = `fragment`), e[0] === `variable` && (i.variableType = e?.[1] || `variable`), e[0] === `plural`) {
|
|
3322
|
+
let e = Object.entries(n).reduce((e, [t, n]) => (Tt(t) && (e[t] = Vt(n, r)), e), {});
|
|
3323
|
+
Object.keys(e).length && (i.branches = e);
|
|
3324
|
+
}
|
|
3325
|
+
if (e[0] === `branch`) {
|
|
3326
|
+
let { children: e, branch: t, ...a } = n, o = Object.fromEntries(Object.entries(a).filter(([e]) => !e.startsWith(`data-`))), s = Object.entries(o).reduce((e, [t, n]) => (e[t] = Vt(n, r), e), {});
|
|
3327
|
+
Object.keys(s).length && (i.branches = s);
|
|
3328
|
+
}
|
|
3329
|
+
i.transformation = e[0];
|
|
3330
|
+
}
|
|
3331
|
+
return i;
|
|
3332
|
+
};
|
|
3333
|
+
function o(e) {
|
|
3334
|
+
let { props: n } = e, r = a(e), i = {
|
|
3335
|
+
...n,
|
|
3336
|
+
"data-_gt": r
|
|
3337
|
+
};
|
|
3338
|
+
return n.children && !r.variableType && (i.children = c(n.children)), e.type === react.default.Fragment && (i[`data-_gt`].transformation = `fragment`), react.default.cloneElement(e, i);
|
|
3339
|
+
}
|
|
3340
|
+
function s(e) {
|
|
3341
|
+
return (0, react.isValidElement)(e) ? o(e) : e;
|
|
3342
|
+
}
|
|
3343
|
+
function c(e) {
|
|
3344
|
+
return Array.isArray(e) ? react.default.Children.map(e, s) : s(e);
|
|
3345
|
+
}
|
|
3346
|
+
return c(e);
|
|
3347
|
+
}
|
|
3348
|
+
const Ht = `@generaltranslation/react-core`;
|
|
3349
|
+
function W(e) {
|
|
3350
|
+
return S({
|
|
3351
|
+
source: Ht,
|
|
3352
|
+
...e
|
|
3353
|
+
});
|
|
3354
|
+
}
|
|
3355
|
+
W({
|
|
3356
|
+
severity: `Error`,
|
|
3357
|
+
whatHappened: `Runtime translation needs a project ID`,
|
|
3358
|
+
fix: `Add projectId to your <GTProvider> configuration or set GT_PROJECT_ID in your environment`,
|
|
3359
|
+
docsUrl: `https://generaltranslation.com/dashboard`
|
|
3360
|
+
}), W({
|
|
3361
|
+
severity: `Error`,
|
|
3362
|
+
whatHappened: `Production environments cannot use a development API key`,
|
|
3363
|
+
fix: `Replace it with a production API key before deploying`
|
|
3364
|
+
}), W({
|
|
3365
|
+
severity: `Error`,
|
|
3366
|
+
whatHappened: `The API key is available to client-side production code`,
|
|
3367
|
+
fix: `Move translation credentials to a server-only environment before deploying`
|
|
3368
|
+
}), W({
|
|
3369
|
+
severity: `Error`,
|
|
3370
|
+
whatHappened: `Runtime translation is not configured`,
|
|
3371
|
+
fix: `Add projectId and devApiKey to your environment, or pass them to <GTProvider> directly`
|
|
3372
|
+
}), W({
|
|
3373
|
+
severity: `Error`,
|
|
3374
|
+
whatHappened: `Runtime translations could not be loaded`,
|
|
3375
|
+
wayOut: `Source content will render as a fallback`,
|
|
3376
|
+
fix: `Check your runtime translation configuration and try again`
|
|
3377
|
+
}), W({
|
|
3378
|
+
severity: `Error`,
|
|
3379
|
+
whatHappened: `Runtime translation could not be completed`
|
|
3380
|
+
});
|
|
3381
|
+
const Ut = (e) => W({
|
|
3382
|
+
severity: `Error`,
|
|
3383
|
+
whatHappened: `Dictionary subtree "${e}" could not be found`,
|
|
3384
|
+
fix: `Check that the id matches your dictionary structure`
|
|
3385
|
+
}), Wt = () => W({
|
|
3386
|
+
severity: `Error`,
|
|
3387
|
+
whatHappened: `A dictionary entry cannot be injected as a subtree`,
|
|
3388
|
+
fix: `Pass a dictionary object instead`
|
|
3389
|
+
}), Gt = () => W({
|
|
3390
|
+
severity: `Error`,
|
|
3391
|
+
whatHappened: `A dictionary entry cannot be merged into another dictionary entry`,
|
|
3392
|
+
fix: `Pass a dictionary subtree instead`
|
|
3393
|
+
});
|
|
3394
|
+
W({
|
|
3395
|
+
severity: `Warning`,
|
|
3396
|
+
whatHappened: `Runtime translation needs a project ID`,
|
|
3397
|
+
fix: `Add projectId to <GTProvider> or set GT_PROJECT_ID in your environment`,
|
|
3398
|
+
docsUrl: `https://generaltranslation.com/dashboard`
|
|
3399
|
+
}), W({
|
|
3400
|
+
severity: `Warning`,
|
|
3401
|
+
whatHappened: `Runtime translation needs a development API key`,
|
|
3402
|
+
fix: `Find your development API key at generaltranslation.com/dashboard, or set runtimeUrl to an empty string to disable runtime translation`
|
|
3403
|
+
}), W({
|
|
3404
|
+
severity: `Warning`,
|
|
3405
|
+
whatHappened: `Runtime translation timed out`
|
|
3406
|
+
}), W({
|
|
3407
|
+
severity: `Warning`,
|
|
3408
|
+
whatHappened: `No dictionary was found`,
|
|
3409
|
+
fix: `Pass a dictionary to <GTProvider> or configure a dictionary loader before rendering translations`
|
|
3410
|
+
});
|
|
3411
|
+
`${Ht}`;
|
|
3412
|
+
const Xt = {
|
|
3413
|
+
variable: `value`,
|
|
3414
|
+
number: `n`,
|
|
3415
|
+
datetime: `date`,
|
|
3416
|
+
currency: `cost`,
|
|
3417
|
+
"relative-time": `time`
|
|
3418
|
+
};
|
|
3419
|
+
function Zt(e = {}, t) {
|
|
3420
|
+
return typeof e.name == `string` ? e.name : `_gt_${Xt[t] || `value`}_${e[`data-_gt`]?.id}`;
|
|
3421
|
+
}
|
|
3422
|
+
function Qt(e) {
|
|
3423
|
+
return react.default.isValidElement(e);
|
|
3424
|
+
}
|
|
3425
|
+
const $t = {
|
|
3426
|
+
pl: `placeholder`,
|
|
3427
|
+
ti: `title`,
|
|
3428
|
+
alt: `alt`,
|
|
3429
|
+
arl: `aria-label`,
|
|
3430
|
+
arb: `aria-labelledby`,
|
|
3431
|
+
ard: `aria-describedby`
|
|
3432
|
+
}, en = (e) => {
|
|
3433
|
+
if (!e) return ``;
|
|
3434
|
+
let { type: t, props: n } = e;
|
|
3435
|
+
if (t && typeof t == `function`) {
|
|
3436
|
+
if (`displayName` in t && typeof t.displayName == `string` && t.displayName) return t.displayName;
|
|
3437
|
+
if (`name` in t && typeof t.name == `string` && t.name) return t.name;
|
|
3438
|
+
}
|
|
3439
|
+
return t && typeof t == `string` ? t : n.href ? `a` : n[`data-_gt`]?.id ? `C${n[`data-_gt`].id}` : `function`;
|
|
3440
|
+
}, tn = (e, t, n) => {
|
|
3441
|
+
let r = Object.entries($t).reduce((e, [n, r]) => {
|
|
3442
|
+
let i = t[r];
|
|
3443
|
+
return typeof i == `string` && (e[n] = i), e;
|
|
3444
|
+
}, {});
|
|
3445
|
+
if (e === `plural` && n) {
|
|
3446
|
+
let e = {};
|
|
3447
|
+
Object.entries(n).forEach(([t, n]) => {
|
|
3448
|
+
e[t] = q(n);
|
|
3449
|
+
}), r = {
|
|
3450
|
+
...r,
|
|
3451
|
+
b: e,
|
|
3452
|
+
t: `p`
|
|
3453
|
+
};
|
|
3454
|
+
}
|
|
3455
|
+
if (e === `branch` && n) {
|
|
3456
|
+
let e = {};
|
|
3457
|
+
Object.entries(n).forEach(([t, n]) => {
|
|
3458
|
+
e[t] = q(n);
|
|
3459
|
+
}), r = {
|
|
3460
|
+
...r,
|
|
3461
|
+
b: e,
|
|
3462
|
+
t: `b`
|
|
3463
|
+
};
|
|
3464
|
+
}
|
|
3465
|
+
return Object.keys(r).length ? r : void 0;
|
|
3466
|
+
}, nn = (e) => {
|
|
3467
|
+
let { props: t } = e, n = { t: en(e) };
|
|
3468
|
+
if (t[`data-_gt`]) {
|
|
3469
|
+
let e = t[`data-_gt`], r = e.transformation;
|
|
3470
|
+
if (r === `variable`) {
|
|
3471
|
+
let n = e.variableType || `variable`, r = Zt(t, n), i = Ot(n);
|
|
3472
|
+
return {
|
|
3473
|
+
i: e.id,
|
|
3474
|
+
k: r,
|
|
3475
|
+
v: i
|
|
3476
|
+
};
|
|
3477
|
+
}
|
|
3478
|
+
n.i = e.id, n.d = tn(r, t, e.branches);
|
|
3479
|
+
let i = Object.entries($t).reduce((e, [n, r]) => {
|
|
3480
|
+
let i = t[r];
|
|
3481
|
+
return typeof i == `string` && (e[n] = i), e;
|
|
3482
|
+
}, {});
|
|
3483
|
+
if (r === `plural` && e.branches) {
|
|
3484
|
+
let t = {};
|
|
3485
|
+
Object.entries(e.branches).forEach(([e, n]) => {
|
|
3486
|
+
t[e] = q(n);
|
|
3487
|
+
}), i = {
|
|
3488
|
+
...i,
|
|
3489
|
+
b: t,
|
|
3490
|
+
t: `p`
|
|
3491
|
+
};
|
|
3492
|
+
}
|
|
3493
|
+
if (r === `branch` && e.branches) {
|
|
3494
|
+
let t = {};
|
|
3495
|
+
Object.entries(e.branches).forEach(([e, n]) => {
|
|
3496
|
+
t[e] = q(n);
|
|
3497
|
+
}), i = {
|
|
3498
|
+
...i,
|
|
3499
|
+
b: t,
|
|
3500
|
+
t: `b`
|
|
3501
|
+
};
|
|
3502
|
+
}
|
|
3503
|
+
n.d = Object.keys(i).length ? i : void 0;
|
|
3504
|
+
}
|
|
3505
|
+
return t.children && (n.c = q(t.children)), n;
|
|
3506
|
+
}, rn = (e) => Qt(e) ? nn(e) : typeof e == `number` ? e.toString() : e;
|
|
3507
|
+
function q(e) {
|
|
3508
|
+
return Array.isArray(e) ? e.map(rn) : rn(e);
|
|
3509
|
+
}
|
|
3510
|
+
function J(e, t, n) {
|
|
3511
|
+
let r = ``, i = null;
|
|
3512
|
+
return typeof e == `number` && !i && n && (r = Et(e, Object.keys(n).filter(Tt), t)), r && !i && (i = n[r]), i;
|
|
3513
|
+
}
|
|
3514
|
+
function an(e) {
|
|
3515
|
+
if (typeof e == `string`) return !0;
|
|
3516
|
+
if (Array.isArray(e)) {
|
|
3517
|
+
if (typeof e?.[0] != `string`) return !1;
|
|
3518
|
+
let t = e?.[1];
|
|
3519
|
+
if (t === void 0 || t && typeof t == `object`) return !0;
|
|
3520
|
+
}
|
|
3521
|
+
return !1;
|
|
3522
|
+
}
|
|
3523
|
+
function Y(e, t) {
|
|
3524
|
+
let n = e, r = t.split(`.`);
|
|
3525
|
+
for (let e of r) {
|
|
3526
|
+
if (typeof n != `object` && !Array.isArray(n)) return;
|
|
3527
|
+
n = _(n, e);
|
|
3528
|
+
}
|
|
3529
|
+
return n;
|
|
3530
|
+
}
|
|
3531
|
+
function X(e) {
|
|
3532
|
+
if (Array.isArray(e)) {
|
|
3533
|
+
if (e.length === 1) return { entry: e[0] };
|
|
3534
|
+
if (e.length === 2) return {
|
|
3535
|
+
entry: e[0],
|
|
3536
|
+
metadata: e[1]
|
|
3537
|
+
};
|
|
3538
|
+
}
|
|
3539
|
+
return { entry: e };
|
|
3540
|
+
}
|
|
3541
|
+
function on(e) {
|
|
3542
|
+
return typeof e == `object` && !!e && `data-_gt` in e && typeof e[`data-_gt`] == `object` && !!e[`data-_gt`] && `transformation` in e[`data-_gt`] && e[`data-_gt`]?.transformation === `variable`;
|
|
3543
|
+
}
|
|
3544
|
+
function sn(e) {
|
|
3545
|
+
let t = e[`data-_gt`]?.variableType || `variable`;
|
|
3546
|
+
return {
|
|
3547
|
+
variableName: Zt(e, t),
|
|
3548
|
+
variableType: Ot(t),
|
|
3549
|
+
injectionType: e[`data-_gt`]?.injectionType || `manual`,
|
|
3550
|
+
variableValue: (() => {
|
|
3551
|
+
if (e.value !== void 0) return e.value;
|
|
3552
|
+
if (e.date !== void 0) return e.date;
|
|
3553
|
+
if (e[`data-_gt-unformatted-value`] !== void 0) return e[`data-_gt-unformatted-value`];
|
|
3554
|
+
if (e.children !== void 0) return e.children;
|
|
3555
|
+
})(),
|
|
3556
|
+
variableOptions: (() => {
|
|
3557
|
+
let t = {
|
|
3558
|
+
...e.currency !== void 0 && { currency: e.currency },
|
|
3559
|
+
...e.unit !== void 0 && { unit: e.unit },
|
|
3560
|
+
...e.baseDate !== void 0 && { baseDate: e.baseDate },
|
|
3561
|
+
...e.options !== void 0 && e.options
|
|
3562
|
+
};
|
|
3563
|
+
return Object.keys(t).length ? t : typeof e[`data-_gt-variable-options`] == `string` ? JSON.parse(e[`data-_gt-variable-options`]) : e[`data-_gt-variable-options`] || void 0;
|
|
3564
|
+
})()
|
|
3565
|
+
};
|
|
3566
|
+
}
|
|
3567
|
+
function cn(e) {
|
|
3568
|
+
let t = e;
|
|
3569
|
+
if (t && typeof t == `object` && typeof t.k == `string`) {
|
|
3570
|
+
let e = Object.keys(t);
|
|
3571
|
+
if (e.length === 1 || e.length === 2 && (typeof t.i == `number` || typeof t.v == `string`) || e.length === 3 && typeof t.v == `string` && typeof t.i == `number`) return !0;
|
|
3572
|
+
}
|
|
3573
|
+
return !1;
|
|
3574
|
+
}
|
|
3575
|
+
function ln(e) {
|
|
3576
|
+
return e && e.props && e.props[`data-_gt`] ? e.props[`data-_gt`] : null;
|
|
3577
|
+
}
|
|
3578
|
+
function Z({ children: e, defaultLocale: n = `en`, renderVariable: r }) {
|
|
3579
|
+
let i = (e) => {
|
|
3580
|
+
let i = ln(e);
|
|
3581
|
+
if (on(e.props)) {
|
|
3582
|
+
let { variableType: t, variableValue: i, variableOptions: a, injectionType: o } = sn(e.props);
|
|
3583
|
+
return r({
|
|
3584
|
+
variableType: t,
|
|
3585
|
+
variableValue: i,
|
|
3586
|
+
variableOptions: a,
|
|
3587
|
+
locales: [n],
|
|
3588
|
+
injectionType: o
|
|
3589
|
+
});
|
|
3590
|
+
}
|
|
3591
|
+
if (i?.transformation === `plural`) {
|
|
3592
|
+
let t = i.branches || {};
|
|
3593
|
+
if (typeof e.props.n != `number`) return e.props.children == null ? null : o(e.props.children);
|
|
3594
|
+
let r = J(e.props.n, [n], t);
|
|
3595
|
+
return o(r === null ? e.props.children : r);
|
|
3596
|
+
}
|
|
3597
|
+
if (i?.transformation === `branch`) {
|
|
3598
|
+
let { children: t, branch: n } = e.props, r = i.branches || {}, a = n == null || n === `` ? void 0 : n.toString();
|
|
3599
|
+
return o(a && r[a] !== void 0 ? r[a] : t);
|
|
3600
|
+
}
|
|
3601
|
+
return i?.transformation === `fragment` ? react.default.createElement(react.default.Fragment, {
|
|
3602
|
+
key: e.props.key,
|
|
3603
|
+
children: o(e.props.children)
|
|
3604
|
+
}) : e.props.children ? react.default.cloneElement(e, {
|
|
3605
|
+
...e.props,
|
|
3606
|
+
"data-_gt": void 0,
|
|
3607
|
+
children: o(e.props.children)
|
|
3608
|
+
}) : react.default.cloneElement(e, {
|
|
3609
|
+
...e.props,
|
|
3610
|
+
"data-_gt": void 0
|
|
3611
|
+
});
|
|
3612
|
+
}, a = (e) => react.default.isValidElement(e) ? i(e) : e, o = (e) => Array.isArray(e) ? react.default.Children.map(e, a) : a(e);
|
|
3613
|
+
return o(e);
|
|
3614
|
+
}
|
|
3615
|
+
function un({ sourceElement: e, targetElement: n, locales: r = [`en`], renderVariable: i }) {
|
|
3616
|
+
let { props: a } = e, o = a[`data-_gt`], s = o?.transformation, c = n.d, l = {};
|
|
3617
|
+
if (c && Object.entries($t).forEach(([e, t]) => {
|
|
3618
|
+
c[e] && (l[t] = c[e]);
|
|
3619
|
+
}), s === `plural`) {
|
|
3620
|
+
let t = e.props.n;
|
|
3621
|
+
if (typeof t != `number`) return Z({
|
|
3622
|
+
children: e,
|
|
3623
|
+
defaultLocale: r[0],
|
|
3624
|
+
renderVariable: i
|
|
3625
|
+
});
|
|
3626
|
+
let a = J(t, r, o.branches || {}), s = a === null ? e.props.children : a, c = J(t, r, n.d?.b || {});
|
|
3627
|
+
return Q({
|
|
3628
|
+
source: s,
|
|
3629
|
+
target: c === null ? n.c : c,
|
|
3630
|
+
locales: r,
|
|
3631
|
+
renderVariable: i
|
|
3632
|
+
});
|
|
3633
|
+
}
|
|
3634
|
+
if (s === `branch`) {
|
|
3635
|
+
let { branch: e, children: t } = a, s = e == null || e === `` ? void 0 : e.toString(), c = o.branches || {}, l = n.d?.b || {};
|
|
3636
|
+
return Q({
|
|
3637
|
+
source: s && c[s] !== void 0 ? c[s] : t,
|
|
3638
|
+
target: s && l[s] !== void 0 ? l[s] : n.c,
|
|
3639
|
+
locales: r,
|
|
3640
|
+
renderVariable: i
|
|
3641
|
+
});
|
|
3642
|
+
}
|
|
3643
|
+
return s === `fragment` && n.c ? react.default.createElement(react.default.Fragment, {
|
|
3644
|
+
key: e.props.key,
|
|
3645
|
+
children: Q({
|
|
3646
|
+
source: a.children,
|
|
3647
|
+
target: n.c,
|
|
3648
|
+
locales: r,
|
|
3649
|
+
renderVariable: i
|
|
3650
|
+
})
|
|
3651
|
+
}) : a?.children && n?.c ? react.default.cloneElement(e, {
|
|
3652
|
+
...a,
|
|
3653
|
+
...l,
|
|
3654
|
+
"data-_gt": void 0,
|
|
3655
|
+
children: Q({
|
|
3656
|
+
source: a.children,
|
|
3657
|
+
target: n.c,
|
|
3658
|
+
locales: r,
|
|
3659
|
+
renderVariable: i
|
|
3660
|
+
})
|
|
3661
|
+
}) : Z({
|
|
3662
|
+
children: e,
|
|
3663
|
+
defaultLocale: r[0],
|
|
3664
|
+
renderVariable: i
|
|
3665
|
+
});
|
|
3666
|
+
}
|
|
3667
|
+
function Q({ source: e, target: n, locales: r = [`en`], renderVariable: i }) {
|
|
3668
|
+
if (n == null && e) return Z({
|
|
3669
|
+
children: e,
|
|
3670
|
+
defaultLocale: r[0],
|
|
3671
|
+
renderVariable: i
|
|
3672
|
+
});
|
|
3673
|
+
if (typeof n == `string`) return n;
|
|
3674
|
+
if (Array.isArray(n) && !Array.isArray(e) && e && (e = [e]), Array.isArray(e) && Array.isArray(n)) {
|
|
3675
|
+
let a = {}, o = {}, c = {}, l = e.filter((e) => {
|
|
3676
|
+
if (react.default.isValidElement(e)) if (on(e.props)) {
|
|
3677
|
+
let { variableName: t, variableValue: n, variableOptions: r, injectionType: i } = sn(e.props);
|
|
3678
|
+
a[t] = n, o[t] = r, c[t] = i;
|
|
3679
|
+
} else return !0;
|
|
3680
|
+
return !1;
|
|
3681
|
+
}), u = (e) => l.find((t) => {
|
|
3682
|
+
let n = ln(t);
|
|
3683
|
+
return n?.id === void 0 ? !1 : n.id === e.i;
|
|
3684
|
+
}) || l.shift();
|
|
3685
|
+
return n.map((e, n) => {
|
|
3686
|
+
if (typeof e == `string`) return (0, react_jsx_runtime.jsx)(react.default.Fragment, { children: e }, `string_${n}`);
|
|
3687
|
+
if (E(e)) return (0, react_jsx_runtime.jsx)(react.default.Fragment, { children: i({
|
|
3688
|
+
variableType: e.v || `v`,
|
|
3689
|
+
variableValue: a[e.k],
|
|
3690
|
+
variableOptions: o[e.k],
|
|
3691
|
+
locales: r,
|
|
3692
|
+
injectionType: c[e.k] || `manual`
|
|
3693
|
+
}) }, `var_${n}`);
|
|
3694
|
+
let l = u(e);
|
|
3695
|
+
return l ? (0, react_jsx_runtime.jsx)(react.default.Fragment, { children: un({
|
|
3696
|
+
sourceElement: l,
|
|
3697
|
+
targetElement: e,
|
|
3698
|
+
locales: r,
|
|
3699
|
+
renderVariable: i
|
|
3700
|
+
}) }, `element_${n}`) : null;
|
|
3701
|
+
});
|
|
3702
|
+
}
|
|
3703
|
+
if (n && typeof n == `object` && !Array.isArray(n)) {
|
|
3704
|
+
let a = E(n) ? `variable` : `element`;
|
|
3705
|
+
if (react.default.isValidElement(e)) {
|
|
3706
|
+
if (a === `element`) return un({
|
|
3707
|
+
sourceElement: e,
|
|
3708
|
+
targetElement: n,
|
|
3709
|
+
locales: r,
|
|
3710
|
+
renderVariable: i
|
|
3711
|
+
});
|
|
3712
|
+
if (on(e.props)) {
|
|
3713
|
+
let { variableValue: t, variableOptions: n, variableType: a, injectionType: o } = sn(e.props);
|
|
3714
|
+
return i({
|
|
3715
|
+
variableType: a,
|
|
3716
|
+
variableValue: t,
|
|
3717
|
+
variableOptions: n,
|
|
3718
|
+
locales: r,
|
|
3719
|
+
injectionType: o
|
|
3720
|
+
});
|
|
3721
|
+
}
|
|
3722
|
+
}
|
|
3723
|
+
}
|
|
3724
|
+
return Z({
|
|
3725
|
+
children: e,
|
|
3726
|
+
defaultLocale: r[0],
|
|
3727
|
+
renderVariable: i
|
|
3728
|
+
});
|
|
3729
|
+
}
|
|
3730
|
+
const dn = (e = `production`) => ({
|
|
3731
|
+
method: `default`,
|
|
3732
|
+
timeout: e === `development` ? 8e3 : 12e3
|
|
3733
|
+
});
|
|
3734
|
+
function fn() {
|
|
3735
|
+
return ``;
|
|
3736
|
+
}
|
|
3737
|
+
const pn = `generaltranslation.locale`, mn = `generaltranslation.region`;
|
|
3738
|
+
function $(e) {
|
|
3739
|
+
return e === void 0 ? !1 : typeof e == `string` ? !0 : Array.isArray(e) ? !(e.length !== 1 && e.length !== 2 || typeof e[0] != `string` || e.length === 2 && (typeof e[1] != `object` || e[1] === null || !(`$context` in e[1]) && !(`$maxChars` in e[1]) && !(`$_hash` in e[1]))) : !1;
|
|
3740
|
+
}
|
|
3741
|
+
const gn = (e) => typeof e == `string` || Array.isArray(e), _n = (e) => typeof e == `object` && !!e && !Array.isArray(e);
|
|
3742
|
+
function vn(e, t) {
|
|
3743
|
+
if (Array.isArray(e)) return e.map((e, n) => $(e) ? t[n] : vn(e, t[n]));
|
|
3744
|
+
let n = {
|
|
3745
|
+
...Object.fromEntries(Object.entries(e).filter(([, e]) => gn(e))),
|
|
3746
|
+
...Object.fromEntries(Object.entries(t).filter(([, e]) => gn(e)))
|
|
3747
|
+
}, r = Object.entries(e).filter(([, e]) => _n(e)).map(([e]) => e), i = Object.entries(t).filter(([, e]) => _n(e)).map(([e]) => e), a = new Set([...r, ...i]);
|
|
3748
|
+
for (let r of a) n[r] = vn(_(e, r) || {}, _(t, r) || {});
|
|
3749
|
+
return n;
|
|
3750
|
+
}
|
|
3751
|
+
const yn = typeof react.use == `function`;
|
|
3752
|
+
function bn({ dictionary: e, id: t }) {
|
|
3753
|
+
if (t === ``) return e;
|
|
3754
|
+
let n = e, r = t.split(`.`);
|
|
3755
|
+
for (let e of r) n = _(n, e);
|
|
3756
|
+
return n;
|
|
3757
|
+
}
|
|
3758
|
+
function xn({ dictionary: e, id: t, sourceDictionary: n }) {
|
|
3759
|
+
if (t === ``) return e;
|
|
3760
|
+
let r = e, i = n, a = t.split(`.`);
|
|
3761
|
+
for (let e of a) _(r, e) === void 0 && (Array.isArray(_(i, e)) ? v(r, e, []) : v(r, e, {})), r = _(r, e);
|
|
3762
|
+
return r;
|
|
3763
|
+
}
|
|
3764
|
+
const Sn = [
|
|
3765
|
+
`constructor`,
|
|
3766
|
+
`prototype`,
|
|
3767
|
+
`__proto__`
|
|
3768
|
+
];
|
|
3769
|
+
function Cn(e) {
|
|
3770
|
+
return !!Sn.includes(e);
|
|
3771
|
+
}
|
|
3772
|
+
function wn(e, t, n, r) {
|
|
3773
|
+
if ($(t)) return e;
|
|
3774
|
+
let i = n.split(`.`);
|
|
3775
|
+
i.forEach((e) => {
|
|
3776
|
+
if (Cn(e)) throw Error(`Invalid key: ${e}`);
|
|
3777
|
+
}), t ||= {};
|
|
3778
|
+
for (let e of i.slice(0, -1)) _(t, e) ?? v(t, e, Array.isArray(_(r, e)) ? [] : {}), t = _(t, e), r = _(r, e);
|
|
3779
|
+
let a = i[i.length - 1];
|
|
3780
|
+
v(t, a, e);
|
|
3781
|
+
}
|
|
3782
|
+
function Tn(e) {
|
|
3783
|
+
let t = {};
|
|
3784
|
+
return Array.isArray(e) && (t = []), Object.entries(e).forEach(([e, n]) => {
|
|
3785
|
+
if ($(n)) {
|
|
3786
|
+
let { entry: r } = X(n);
|
|
3787
|
+
v(t, e, r);
|
|
3788
|
+
} else v(t, e, Tn(n));
|
|
3789
|
+
}), t;
|
|
3790
|
+
}
|
|
3791
|
+
function En(e) {
|
|
3792
|
+
return de(Te(fe(e))).slice(0, 16);
|
|
3793
|
+
}
|
|
3794
|
+
function Dn({ source: e, context: t, id: n, maxChars: r, dataFormat: i }, a = En) {
|
|
3795
|
+
let o;
|
|
3796
|
+
return o = i === `JSX` ? kn(e) : e, a(re({
|
|
3797
|
+
source: o,
|
|
3798
|
+
...n && { id: n },
|
|
3799
|
+
...t && { context: t },
|
|
3800
|
+
...r != null && { maxChars: Math.abs(r) },
|
|
3801
|
+
...i && { dataFormat: i }
|
|
3802
|
+
}));
|
|
3803
|
+
}
|
|
3804
|
+
const On = (e) => {
|
|
3805
|
+
if (e && typeof e == `object`) {
|
|
3806
|
+
let t = {};
|
|
3807
|
+
if (`c` in e && e.c && (t.c = kn(e.c)), `d` in e) {
|
|
3808
|
+
let n = e?.d;
|
|
3809
|
+
n?.b && (t.b = Object.fromEntries(Object.entries(n.b).map(([e, t]) => [e, kn(t)]))), n?.t && (t.t = n.t);
|
|
3810
|
+
}
|
|
3811
|
+
return E(e) ? {
|
|
3812
|
+
k: e.k,
|
|
3813
|
+
...e.v && { v: e.v }
|
|
3814
|
+
} : t;
|
|
3815
|
+
}
|
|
3816
|
+
return e;
|
|
3817
|
+
};
|
|
3818
|
+
function kn(e) {
|
|
3819
|
+
return Array.isArray(e) ? e.map(On) : On(e);
|
|
3820
|
+
}
|
|
3821
|
+
function An(e, t = ``) {
|
|
3822
|
+
let n = !1;
|
|
3823
|
+
return Object.entries(e).forEach(([r, i]) => {
|
|
3824
|
+
let a = t ? `${t}.${r}` : r;
|
|
3825
|
+
if ($(i)) {
|
|
3826
|
+
let { entry: t, metadata: o } = X(i);
|
|
3827
|
+
o?.$_hash || (o ||= {}, o.$_hash = Dn({
|
|
3828
|
+
source: Rt(t),
|
|
3829
|
+
...o?.$context && { context: o.$context },
|
|
3830
|
+
...o?.$maxChars != null && { maxChars: Math.abs(o.$maxChars) },
|
|
3831
|
+
id: a,
|
|
3832
|
+
dataFormat: `ICU`
|
|
3833
|
+
}), v(e, r, [t, o]), n = !0);
|
|
3834
|
+
} else {
|
|
3835
|
+
let { updateDictionary: e } = An(i, a);
|
|
3836
|
+
n ||= e;
|
|
3837
|
+
}
|
|
3838
|
+
}), {
|
|
3839
|
+
dictionary: e,
|
|
3840
|
+
updateDictionary: n
|
|
3841
|
+
};
|
|
3842
|
+
}
|
|
3843
|
+
function jn(e, t, n, r, i = ``) {
|
|
3844
|
+
let a = !1, o = i ? i.split(`.`) : [];
|
|
3845
|
+
return r.forEach(({ metadata: r }) => {
|
|
3846
|
+
let { $_hash: i, $id: s } = r, c = o.length > 0 ? s.split(`.`).slice(o.length).join(`.`) : s, l = Y(t, c), u;
|
|
3847
|
+
$(l) && (u = X(l).entry);
|
|
3848
|
+
let d = n[i] || u;
|
|
3849
|
+
d && (wn(d, t, c, e), a = !0);
|
|
3850
|
+
}), {
|
|
3851
|
+
dictionary: t,
|
|
3852
|
+
updateDictionary: a
|
|
3853
|
+
};
|
|
3854
|
+
}
|
|
3855
|
+
function Mn(e, t, n, r = ``) {
|
|
3856
|
+
let i = r ? r.split(`.`) : [];
|
|
3857
|
+
return n.forEach(({ source: n, metadata: r }) => {
|
|
3858
|
+
let { $id: a } = r, o = i.length > 0 ? a.split(`.`).slice(i.length).join(`.`) : a, s = Y(t, o), c;
|
|
3859
|
+
$(s) && (c = X(s).entry), wn(c || n, t, o, e);
|
|
3860
|
+
}), t;
|
|
3861
|
+
}
|
|
3862
|
+
function Nn(e, t, n) {
|
|
3863
|
+
let r = bn({
|
|
3864
|
+
dictionary: e,
|
|
3865
|
+
id: n
|
|
3866
|
+
});
|
|
3867
|
+
if (!r) throw Error(Ut(n));
|
|
3868
|
+
if ($(r)) throw Error(Wt());
|
|
3869
|
+
return Pn(e, vn(r, t), n);
|
|
3870
|
+
}
|
|
3871
|
+
function Pn(e, t, n) {
|
|
3872
|
+
let r = Y(e, n);
|
|
3873
|
+
if (!r) throw Error(Ut(n));
|
|
3874
|
+
if ($(r)) throw Error(Gt());
|
|
3875
|
+
let i = n.split(`.`), a = i.slice(0, -1), o = i[i.length - 1], s = e;
|
|
3876
|
+
return a.forEach((e) => {
|
|
3877
|
+
s = _(s, e);
|
|
3878
|
+
}), v(s, o, t), e;
|
|
3879
|
+
}
|
|
3880
|
+
function Fn(e, t, n = ``) {
|
|
3881
|
+
let r = [];
|
|
3882
|
+
return Object.entries(e).forEach(([e, i]) => {
|
|
3883
|
+
let a = n ? `${n}.${e}` : e;
|
|
3884
|
+
if ($(i)) {
|
|
3885
|
+
let { entry: n, metadata: o } = X(i);
|
|
3886
|
+
_(t, e) || r.push({
|
|
3887
|
+
source: n,
|
|
3888
|
+
metadata: {
|
|
3889
|
+
$id: a,
|
|
3890
|
+
$context: o?.$context,
|
|
3891
|
+
$maxChars: o?.$maxChars,
|
|
3892
|
+
$_hash: o?.$_hash || ``
|
|
3893
|
+
}
|
|
3894
|
+
});
|
|
3895
|
+
} else r.push(...Fn(i, _(t, e) || (Array.isArray(i) ? [] : {}), a));
|
|
3896
|
+
}), r;
|
|
3897
|
+
}
|
|
3898
|
+
var In = {
|
|
3899
|
+
warn(e) {
|
|
3900
|
+
console.warn(e);
|
|
3901
|
+
},
|
|
3902
|
+
error(e) {
|
|
3903
|
+
console.error(e);
|
|
3904
|
+
},
|
|
3905
|
+
info(e) {
|
|
3906
|
+
console.info(e);
|
|
3907
|
+
},
|
|
3908
|
+
debug(e) {
|
|
3909
|
+
console.debug(e);
|
|
3910
|
+
}
|
|
3911
|
+
};
|
|
3912
|
+
function Ln(e) {
|
|
3913
|
+
return Object.fromEntries(Object.entries(e).filter(([e]) => e !== `$id` && e !== `$context` && e !== `$maxChars` && e !== `$hash` && e !== `$_hash` && e !== `$_source` && e !== `$_fallback` && e !== `$format` && e !== `$_locales` && e !== `$locale`));
|
|
3914
|
+
}
|
|
3915
|
+
const Rn = (e) => `String interpolation failed for message: "${e}".`;
|
|
3916
|
+
function zn(e, t, n, r) {
|
|
3917
|
+
try {
|
|
3918
|
+
return (0, _generaltranslation_format.formatMessage)(e, {
|
|
3919
|
+
variables: t,
|
|
3920
|
+
locales: n,
|
|
3921
|
+
dataFormat: r
|
|
3922
|
+
});
|
|
3923
|
+
} catch {
|
|
3924
|
+
return In.warn(Rn(e)), e;
|
|
3925
|
+
}
|
|
3926
|
+
}
|
|
3927
|
+
function Bn(e, t) {
|
|
3928
|
+
if (!e) return e;
|
|
3929
|
+
let n = t.$_fallback, r = Ln(t);
|
|
3930
|
+
try {
|
|
3931
|
+
let i = zt(n || ``);
|
|
3932
|
+
return (0, _generaltranslation_format.formatCutoff)(zn(Object.keys(i).length ? Bt(e) : e, {
|
|
3933
|
+
...r,
|
|
3934
|
+
...i,
|
|
3935
|
+
[U]: `other`
|
|
3936
|
+
}, t.$locale ?? t.$_locales, t.$format), { maxChars: t.$maxChars });
|
|
3937
|
+
} catch {
|
|
3938
|
+
return In.warn(Rn(e)), t.$_fallback == null ? (0, _generaltranslation_format.formatCutoff)(e, { maxChars: t.$maxChars }) : Bn(t.$_fallback, {
|
|
3939
|
+
...t,
|
|
3940
|
+
$_fallback: void 0
|
|
3941
|
+
});
|
|
3942
|
+
}
|
|
3943
|
+
}
|
|
3944
|
+
function Vn(e) {
|
|
3945
|
+
if (e.lastIndexOf(`:`) === -1) return null;
|
|
3946
|
+
let t = e.slice(e.lastIndexOf(`:`) + 1);
|
|
3947
|
+
try {
|
|
3948
|
+
return JSON.parse(w(t));
|
|
3949
|
+
} catch {
|
|
3950
|
+
return null;
|
|
3951
|
+
}
|
|
3952
|
+
}
|
|
3953
|
+
function Hn(e) {
|
|
3954
|
+
return !!(e.$_hash && e.$_source);
|
|
3955
|
+
}
|
|
3956
|
+
function Un(e, t) {
|
|
3957
|
+
let n = t;
|
|
3958
|
+
return n.$_hash == null ? Dn({
|
|
3959
|
+
source: t.$format === `ICU` ? Rt(e) : e,
|
|
3960
|
+
...n.$context && { context: n.$context },
|
|
3961
|
+
...n.$id && { id: n.$id },
|
|
3962
|
+
...n.$maxChars != null && { maxChars: Math.abs(n.$maxChars) },
|
|
3963
|
+
dataFormat: t.$format
|
|
3964
|
+
}) : n.$_hash;
|
|
3965
|
+
}
|
|
3966
|
+
function Wn(e) {
|
|
3967
|
+
return typeof e == `string` && e.lastIndexOf(`:`) !== -1 ? e.slice(0, e.lastIndexOf(`:`)) : e;
|
|
3968
|
+
}
|
|
3969
|
+
const Gn = (e, t = {}) => Bn(e, t), Kn = (e, t = {}) => e && (Hn(Vn(e) ?? {}) ? Wn(e) : Bn(e, t));
|
|
3970
|
+
function qn(e, t) {
|
|
3971
|
+
if (typeof e != `string`) return t ? e.map((e, n) => qn(e, {
|
|
3972
|
+
...t,
|
|
3973
|
+
...t.$id && { $id: `${t.$id}.${n}` }
|
|
3974
|
+
})) : e;
|
|
3975
|
+
if (!t) return e;
|
|
3976
|
+
let n = Ln(t), r = e;
|
|
3977
|
+
try {
|
|
3978
|
+
r = (0, _generaltranslation_format.formatMessage)(e, {
|
|
3979
|
+
locales: [`en`],
|
|
3980
|
+
variables: {
|
|
3981
|
+
...n,
|
|
3982
|
+
[U]: `other`
|
|
3983
|
+
}
|
|
3984
|
+
});
|
|
3985
|
+
} catch {
|
|
3986
|
+
return In.warn(Rn(e)), e;
|
|
3987
|
+
}
|
|
3988
|
+
let i = e, a = t.$_hash || Un(e, {
|
|
3989
|
+
$format: `ICU`,
|
|
3990
|
+
...t
|
|
3991
|
+
}), s = {
|
|
3992
|
+
...t,
|
|
3993
|
+
$_source: i,
|
|
3994
|
+
$_hash: a
|
|
3995
|
+
}, c = C(JSON.stringify(s));
|
|
3996
|
+
return `${r}:${c}`;
|
|
3997
|
+
}
|
|
3998
|
+
function Jn({ children: e }) {
|
|
3999
|
+
return e;
|
|
4000
|
+
}
|
|
4001
|
+
function Yn(e) {
|
|
4002
|
+
return Jn(e);
|
|
4003
|
+
}
|
|
4004
|
+
Jn._gtt = `derive`, Yn._gtt = `derive`;
|
|
4005
|
+
//#endregion
|
|
4006
|
+
exports.Derive = Jn;
|
|
4007
|
+
exports.Static = Yn;
|
|
4008
|
+
exports.addGTIdentifier = Vt;
|
|
4009
|
+
exports.collectUntranslatedEntries = Fn;
|
|
4010
|
+
exports.declareStatic = Lt;
|
|
4011
|
+
exports.declareVar = Ft;
|
|
4012
|
+
exports.decodeMsg = Wn;
|
|
4013
|
+
exports.decodeOptions = Vn;
|
|
4014
|
+
exports.decodeVars = Nt;
|
|
4015
|
+
exports.defaultLocaleCookieName = pn;
|
|
4016
|
+
exports.defaultRegionCookieName = mn;
|
|
4017
|
+
exports.derive = It;
|
|
4018
|
+
exports.flattenDictionary = y;
|
|
4019
|
+
exports.getDefaultRenderSettings = dn;
|
|
4020
|
+
exports.getDictionaryEntry = Y;
|
|
4021
|
+
exports.getEntryAndMetadata = X;
|
|
4022
|
+
exports.getPluralBranch = J;
|
|
4023
|
+
exports.getSubtree = bn;
|
|
4024
|
+
exports.getSubtreeWithCreation = xn;
|
|
4025
|
+
exports.getVariableName = Zt;
|
|
4026
|
+
exports.getVariableProps = sn;
|
|
4027
|
+
exports.gtFallback = Gn;
|
|
4028
|
+
exports.injectAndMerge = Nn;
|
|
4029
|
+
exports.injectEntry = wn;
|
|
4030
|
+
exports.injectFallbacks = Mn;
|
|
4031
|
+
exports.injectHashes = An;
|
|
4032
|
+
exports.injectTranslations = jn;
|
|
4033
|
+
exports.isDictionaryEntry = $;
|
|
4034
|
+
exports.isValidDictionaryEntry = an;
|
|
4035
|
+
exports.isVariableObject = cn;
|
|
4036
|
+
exports.mFallback = Kn;
|
|
4037
|
+
exports.mergeDictionaries = vn;
|
|
4038
|
+
exports.msg = qn;
|
|
4039
|
+
exports.reactHasUse = yn;
|
|
4040
|
+
exports.renderDefaultChildren = Z;
|
|
4041
|
+
exports.renderSkeleton = fn;
|
|
4042
|
+
exports.renderTranslatedChildren = Q;
|
|
4043
|
+
exports.stripMetadataFromEntries = Tn;
|
|
4044
|
+
exports.writeChildrenAsObjects = q;
|
|
4045
|
+
|
|
4046
|
+
//# sourceMappingURL=internal.cjs.map
|