@everymatrix/transaction-history-page 0.0.1
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/components/CashierHeader-5zy8g8OM.js +4500 -0
- package/components/CashierHeader-D8XyDtbQ.js +4463 -0
- package/components/CashierHeader-WepsG79s.cjs +21 -0
- package/components/CashierPagination-BAxf9S89.js +287 -0
- package/components/CashierPagination-DS04u5aL.js +287 -0
- package/components/CashierPagination-OH0bY8kI.cjs +3 -0
- package/components/CashierTransactionHistory-ByYI6h3-.js +1606 -0
- package/components/CashierTransactionHistory-DDHBkAnM.js +1606 -0
- package/components/CashierTransactionHistory-cF3SrkZI.cjs +1 -0
- package/components/EmptyStateIcon-BKTXVMxl.js +27 -0
- package/components/EmptyStateIcon-BXdFAthb.cjs +1 -0
- package/components/EmptyStateIcon-BmntjMXF.js +27 -0
- package/components/Tooltip-CH7HmcK4.cjs +1 -0
- package/components/Tooltip-WAE69Wpz.js +113 -0
- package/components/Tooltip-XvNWUv3X.js +113 -0
- package/components/TransactionHistoryCalendar-CGecBXnr.js +5166 -0
- package/components/TransactionHistoryCalendar-DqleOuPE.cjs +22 -0
- package/components/TransactionHistoryCalendar-p3Cm8jjd.js +5137 -0
- package/components/TransactionHistoryPage-C3CWZ4Id.js +898 -0
- package/components/TransactionHistoryPage-CvCPQkSZ.cjs +1 -0
- package/components/TransactionHistoryPage-eMkQW27N.js +880 -0
- package/components/TxnStatusIcon-BkEEMoFp.js +142 -0
- package/components/TxnStatusIcon-CknmbHtX.cjs +1 -0
- package/components/TxnStatusIcon-ajCxZslH.js +142 -0
- package/components/TxnTypeIcons-D70zalMR.js +101 -0
- package/components/TxnTypeIcons-DevbhR7w.cjs +1 -0
- package/components/TxnTypeIcons-ETOHW7Tq.js +101 -0
- package/es2015/transaction-history-page.cjs +1 -0
- package/es2015/transaction-history-page.js +16 -0
- package/esnext/transaction-history-page.js +14 -0
- package/package.json +25 -0
- package/stencil/app-globals-0f993ce5-D-kw1sls.js +5 -0
- package/stencil/app-globals-0f993ce5-sCt45RkC.cjs +1 -0
- package/stencil/index-97d17652-BgKdDb-e.cjs +1 -0
- package/stencil/index-97d17652-C7V2DWFg.js +542 -0
- package/stencil/index-97d17652-DIpvPU9H.js +558 -0
- package/stencil/ui-image-CYuYAlOX.js +7 -0
- package/stencil/ui-image-D3_FGUyo.js +25 -0
- package/stencil/ui-image-DJWD4G-S.cjs +1 -0
- package/stencil/ui-image-b7b48fe5-B-k0kWgx.js +39 -0
- package/stencil/ui-image-b7b48fe5-D8-wEkoZ.js +39 -0
- package/stencil/ui-image-b7b48fe5-yceZ9WkN.cjs +1 -0
- package/stencil/ui-image_2-CzFe50WB.js +157 -0
- package/stencil/ui-image_2-Ha_4GYwN.cjs +55 -0
- package/stencil/ui-image_2-z5LhXZY2.js +157 -0
|
@@ -0,0 +1,4500 @@
|
|
|
1
|
+
var Tn = Object.defineProperty, Sn = Object.defineProperties;
|
|
2
|
+
var An = Object.getOwnPropertyDescriptors;
|
|
3
|
+
var st = Object.getOwnPropertySymbols;
|
|
4
|
+
var On = Object.prototype.hasOwnProperty, Pn = Object.prototype.propertyIsEnumerable;
|
|
5
|
+
var Ae = (e, t, n) => t in e ? Tn(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, ot = (e, t) => {
|
|
6
|
+
for (var n in t || (t = {}))
|
|
7
|
+
On.call(t, n) && Ae(e, n, t[n]);
|
|
8
|
+
if (st)
|
|
9
|
+
for (var n of st(t))
|
|
10
|
+
Pn.call(t, n) && Ae(e, n, t[n]);
|
|
11
|
+
return e;
|
|
12
|
+
}, at = (e, t) => Sn(e, An(t));
|
|
13
|
+
var S = (e, t, n) => (Ae(e, typeof t != "symbol" ? t + "" : t, n), n);
|
|
14
|
+
var ut = (e, t, n) => new Promise((r, i) => {
|
|
15
|
+
var s = (l) => {
|
|
16
|
+
try {
|
|
17
|
+
a(n.next(l));
|
|
18
|
+
} catch (u) {
|
|
19
|
+
i(u);
|
|
20
|
+
}
|
|
21
|
+
}, o = (l) => {
|
|
22
|
+
try {
|
|
23
|
+
a(n.throw(l));
|
|
24
|
+
} catch (u) {
|
|
25
|
+
i(u);
|
|
26
|
+
}
|
|
27
|
+
}, a = (l) => l.done ? r(l.value) : Promise.resolve(l.value).then(s, o);
|
|
28
|
+
a((n = n.apply(e, t)).next());
|
|
29
|
+
});
|
|
30
|
+
function B() {
|
|
31
|
+
}
|
|
32
|
+
const Nt = (e) => e;
|
|
33
|
+
function Cn(e, t) {
|
|
34
|
+
for (const n in t)
|
|
35
|
+
e[n] = t[n];
|
|
36
|
+
return (
|
|
37
|
+
/** @type {T & S} */
|
|
38
|
+
e
|
|
39
|
+
);
|
|
40
|
+
}
|
|
41
|
+
function It(e) {
|
|
42
|
+
return e();
|
|
43
|
+
}
|
|
44
|
+
function ht() {
|
|
45
|
+
return /* @__PURE__ */ Object.create(null);
|
|
46
|
+
}
|
|
47
|
+
function M(e) {
|
|
48
|
+
e.forEach(It);
|
|
49
|
+
}
|
|
50
|
+
function oe(e) {
|
|
51
|
+
return typeof e == "function";
|
|
52
|
+
}
|
|
53
|
+
function Mt(e, t) {
|
|
54
|
+
return e != e ? t == t : e !== t || e && typeof e == "object" || typeof e == "function";
|
|
55
|
+
}
|
|
56
|
+
let le;
|
|
57
|
+
function ss(e, t) {
|
|
58
|
+
return e === t ? !0 : (le || (le = document.createElement("a")), le.href = t, e === le.href);
|
|
59
|
+
}
|
|
60
|
+
function Ln(e) {
|
|
61
|
+
return Object.keys(e).length === 0;
|
|
62
|
+
}
|
|
63
|
+
function $t(e, ...t) {
|
|
64
|
+
if (e == null) {
|
|
65
|
+
for (const r of t)
|
|
66
|
+
r(void 0);
|
|
67
|
+
return B;
|
|
68
|
+
}
|
|
69
|
+
const n = e.subscribe(...t);
|
|
70
|
+
return n.unsubscribe ? () => n.unsubscribe() : n;
|
|
71
|
+
}
|
|
72
|
+
function Nn(e, t, n) {
|
|
73
|
+
e.$$.on_destroy.push($t(t, n));
|
|
74
|
+
}
|
|
75
|
+
function Oe(e, t, n, r) {
|
|
76
|
+
if (e) {
|
|
77
|
+
const i = Rt(e, t, n, r);
|
|
78
|
+
return e[0](i);
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
function Rt(e, t, n, r) {
|
|
82
|
+
return e[1] && r ? Cn(n.ctx.slice(), e[1](r(t))) : n.ctx;
|
|
83
|
+
}
|
|
84
|
+
function Pe(e, t, n, r) {
|
|
85
|
+
if (e[2] && r) {
|
|
86
|
+
const i = e[2](r(n));
|
|
87
|
+
if (t.dirty === void 0)
|
|
88
|
+
return i;
|
|
89
|
+
if (typeof i == "object") {
|
|
90
|
+
const s = [], o = Math.max(t.dirty.length, i.length);
|
|
91
|
+
for (let a = 0; a < o; a += 1)
|
|
92
|
+
s[a] = t.dirty[a] | i[a];
|
|
93
|
+
return s;
|
|
94
|
+
}
|
|
95
|
+
return t.dirty | i;
|
|
96
|
+
}
|
|
97
|
+
return t.dirty;
|
|
98
|
+
}
|
|
99
|
+
function Ce(e, t, n, r, i, s) {
|
|
100
|
+
if (i) {
|
|
101
|
+
const o = Rt(t, n, r, s);
|
|
102
|
+
e.p(o, i);
|
|
103
|
+
}
|
|
104
|
+
}
|
|
105
|
+
function Le(e) {
|
|
106
|
+
if (e.ctx.length > 32) {
|
|
107
|
+
const t = [], n = e.ctx.length / 32;
|
|
108
|
+
for (let r = 0; r < n; r++)
|
|
109
|
+
t[r] = -1;
|
|
110
|
+
return t;
|
|
111
|
+
}
|
|
112
|
+
return -1;
|
|
113
|
+
}
|
|
114
|
+
function os(e) {
|
|
115
|
+
return e == null ? "" : e;
|
|
116
|
+
}
|
|
117
|
+
const Ut = typeof window != "undefined";
|
|
118
|
+
let Dt = Ut ? () => window.performance.now() : () => Date.now(), Ye = Ut ? (e) => requestAnimationFrame(e) : B;
|
|
119
|
+
const k = /* @__PURE__ */ new Set();
|
|
120
|
+
function Gt(e) {
|
|
121
|
+
k.forEach((t) => {
|
|
122
|
+
t.c(e) || (k.delete(t), t.f());
|
|
123
|
+
}), k.size !== 0 && Ye(Gt);
|
|
124
|
+
}
|
|
125
|
+
function Ft(e) {
|
|
126
|
+
let t;
|
|
127
|
+
return k.size === 0 && Ye(Gt), {
|
|
128
|
+
promise: new Promise((n) => {
|
|
129
|
+
k.add(t = { c: e, f: n });
|
|
130
|
+
}),
|
|
131
|
+
abort() {
|
|
132
|
+
k.delete(t);
|
|
133
|
+
}
|
|
134
|
+
};
|
|
135
|
+
}
|
|
136
|
+
function be(e, t) {
|
|
137
|
+
e.appendChild(t);
|
|
138
|
+
}
|
|
139
|
+
function In(e, t, n) {
|
|
140
|
+
const r = Ke(e);
|
|
141
|
+
if (!r.getElementById(t)) {
|
|
142
|
+
const i = R("style");
|
|
143
|
+
i.id = t, i.textContent = n, jt(r, i);
|
|
144
|
+
}
|
|
145
|
+
}
|
|
146
|
+
function Ke(e) {
|
|
147
|
+
if (!e)
|
|
148
|
+
return document;
|
|
149
|
+
const t = e.getRootNode ? e.getRootNode() : e.ownerDocument;
|
|
150
|
+
return t && /** @type {ShadowRoot} */
|
|
151
|
+
t.host ? (
|
|
152
|
+
/** @type {ShadowRoot} */
|
|
153
|
+
t
|
|
154
|
+
) : e.ownerDocument;
|
|
155
|
+
}
|
|
156
|
+
function Mn(e) {
|
|
157
|
+
const t = R("style");
|
|
158
|
+
return t.textContent = "/* empty */", jt(Ke(e), t), t.sheet;
|
|
159
|
+
}
|
|
160
|
+
function jt(e, t) {
|
|
161
|
+
return be(
|
|
162
|
+
/** @type {Document} */
|
|
163
|
+
e.head || e,
|
|
164
|
+
t
|
|
165
|
+
), t.sheet;
|
|
166
|
+
}
|
|
167
|
+
function $(e, t, n) {
|
|
168
|
+
e.insertBefore(t, n || null);
|
|
169
|
+
}
|
|
170
|
+
function C(e) {
|
|
171
|
+
e.parentNode && e.parentNode.removeChild(e);
|
|
172
|
+
}
|
|
173
|
+
function as(e, t) {
|
|
174
|
+
for (let n = 0; n < e.length; n += 1)
|
|
175
|
+
e[n] && e[n].d(t);
|
|
176
|
+
}
|
|
177
|
+
function R(e) {
|
|
178
|
+
return document.createElement(e);
|
|
179
|
+
}
|
|
180
|
+
function us(e) {
|
|
181
|
+
return document.createElementNS("http://www.w3.org/2000/svg", e);
|
|
182
|
+
}
|
|
183
|
+
function et(e) {
|
|
184
|
+
return document.createTextNode(e);
|
|
185
|
+
}
|
|
186
|
+
function lt() {
|
|
187
|
+
return et(" ");
|
|
188
|
+
}
|
|
189
|
+
function kt() {
|
|
190
|
+
return et("");
|
|
191
|
+
}
|
|
192
|
+
function Vt(e, t, n, r) {
|
|
193
|
+
return e.addEventListener(t, n, r), () => e.removeEventListener(t, n, r);
|
|
194
|
+
}
|
|
195
|
+
function Q(e, t, n) {
|
|
196
|
+
n == null ? e.removeAttribute(t) : e.getAttribute(t) !== n && e.setAttribute(t, n);
|
|
197
|
+
}
|
|
198
|
+
function hs(e, t, n) {
|
|
199
|
+
const r = t.toLowerCase();
|
|
200
|
+
r in e ? e[r] = typeof e[r] == "boolean" && n === "" ? !0 : n : t in e ? e[t] = typeof e[t] == "boolean" && n === "" ? !0 : n : Q(e, t, n);
|
|
201
|
+
}
|
|
202
|
+
function $n(e) {
|
|
203
|
+
return Array.from(e.childNodes);
|
|
204
|
+
}
|
|
205
|
+
function Rn(e, t) {
|
|
206
|
+
t = "" + t, e.data !== t && (e.data = /** @type {string} */
|
|
207
|
+
t);
|
|
208
|
+
}
|
|
209
|
+
function ls(e, t, n, r) {
|
|
210
|
+
n == null ? e.style.removeProperty(t) : e.style.setProperty(t, n, "");
|
|
211
|
+
}
|
|
212
|
+
function fs(e, t, n) {
|
|
213
|
+
e.classList.toggle(t, !!n);
|
|
214
|
+
}
|
|
215
|
+
function Un(e, t, { bubbles: n = !1, cancelable: r = !1 } = {}) {
|
|
216
|
+
return new CustomEvent(e, { detail: t, bubbles: n, cancelable: r });
|
|
217
|
+
}
|
|
218
|
+
function Dn(e) {
|
|
219
|
+
const t = {};
|
|
220
|
+
return e.childNodes.forEach(
|
|
221
|
+
/** @param {Element} node */
|
|
222
|
+
(n) => {
|
|
223
|
+
t[n.slot || "default"] = !0;
|
|
224
|
+
}
|
|
225
|
+
), t;
|
|
226
|
+
}
|
|
227
|
+
const _e = /* @__PURE__ */ new Map();
|
|
228
|
+
let ye = 0;
|
|
229
|
+
function Gn(e) {
|
|
230
|
+
let t = 5381, n = e.length;
|
|
231
|
+
for (; n--; )
|
|
232
|
+
t = (t << 5) - t ^ e.charCodeAt(n);
|
|
233
|
+
return t >>> 0;
|
|
234
|
+
}
|
|
235
|
+
function Fn(e, t) {
|
|
236
|
+
const n = { stylesheet: Mn(t), rules: {} };
|
|
237
|
+
return _e.set(e, n), n;
|
|
238
|
+
}
|
|
239
|
+
function Xt(e, t, n, r, i, s, o, a = 0) {
|
|
240
|
+
const l = 16.666 / r;
|
|
241
|
+
let u = `{
|
|
242
|
+
`;
|
|
243
|
+
for (let E = 0; E <= 1; E += l) {
|
|
244
|
+
const v = t + (n - t) * s(E);
|
|
245
|
+
u += E * 100 + `%{${o(v, 1 - v)}}
|
|
246
|
+
`;
|
|
247
|
+
}
|
|
248
|
+
const h = u + `100% {${o(n, 1 - n)}}
|
|
249
|
+
}`, f = `__svelte_${Gn(h)}_${a}`, m = Ke(e), { stylesheet: d, rules: c } = _e.get(m) || Fn(m, e);
|
|
250
|
+
c[f] || (c[f] = !0, d.insertRule(`@keyframes ${f} ${h}`, d.cssRules.length));
|
|
251
|
+
const p = e.style.animation || "";
|
|
252
|
+
return e.style.animation = `${p ? `${p}, ` : ""}${f} ${r}ms linear ${i}ms 1 both`, ye += 1, f;
|
|
253
|
+
}
|
|
254
|
+
function Fe(e, t) {
|
|
255
|
+
const n = (e.style.animation || "").split(", "), r = n.filter(
|
|
256
|
+
t ? (s) => s.indexOf(t) < 0 : (s) => s.indexOf("__svelte") === -1
|
|
257
|
+
// remove all Svelte animations
|
|
258
|
+
), i = n.length - r.length;
|
|
259
|
+
i && (e.style.animation = r.join(", "), ye -= i, ye || jn());
|
|
260
|
+
}
|
|
261
|
+
function jn() {
|
|
262
|
+
Ye(() => {
|
|
263
|
+
ye || (_e.forEach((e) => {
|
|
264
|
+
const { ownerNode: t } = e.stylesheet;
|
|
265
|
+
t && C(t);
|
|
266
|
+
}), _e.clear());
|
|
267
|
+
});
|
|
268
|
+
}
|
|
269
|
+
let ne;
|
|
270
|
+
function te(e) {
|
|
271
|
+
ne = e;
|
|
272
|
+
}
|
|
273
|
+
function kn() {
|
|
274
|
+
if (!ne)
|
|
275
|
+
throw new Error("Function called outside component initialization");
|
|
276
|
+
return ne;
|
|
277
|
+
}
|
|
278
|
+
function Vn(e) {
|
|
279
|
+
kn().$$.on_mount.push(e);
|
|
280
|
+
}
|
|
281
|
+
const j = [], je = [];
|
|
282
|
+
let V = [];
|
|
283
|
+
const ft = [], zt = /* @__PURE__ */ Promise.resolve();
|
|
284
|
+
let ke = !1;
|
|
285
|
+
function Wt() {
|
|
286
|
+
ke || (ke = !0, zt.then(O));
|
|
287
|
+
}
|
|
288
|
+
function cs() {
|
|
289
|
+
return Wt(), zt;
|
|
290
|
+
}
|
|
291
|
+
function re(e) {
|
|
292
|
+
V.push(e);
|
|
293
|
+
}
|
|
294
|
+
const Ne = /* @__PURE__ */ new Set();
|
|
295
|
+
let G = 0;
|
|
296
|
+
function O() {
|
|
297
|
+
if (G !== 0)
|
|
298
|
+
return;
|
|
299
|
+
const e = ne;
|
|
300
|
+
do {
|
|
301
|
+
try {
|
|
302
|
+
for (; G < j.length; ) {
|
|
303
|
+
const t = j[G];
|
|
304
|
+
G++, te(t), Xn(t.$$);
|
|
305
|
+
}
|
|
306
|
+
} catch (t) {
|
|
307
|
+
throw j.length = 0, G = 0, t;
|
|
308
|
+
}
|
|
309
|
+
for (te(null), j.length = 0, G = 0; je.length; )
|
|
310
|
+
je.pop()();
|
|
311
|
+
for (let t = 0; t < V.length; t += 1) {
|
|
312
|
+
const n = V[t];
|
|
313
|
+
Ne.has(n) || (Ne.add(n), n());
|
|
314
|
+
}
|
|
315
|
+
V.length = 0;
|
|
316
|
+
} while (j.length);
|
|
317
|
+
for (; ft.length; )
|
|
318
|
+
ft.pop()();
|
|
319
|
+
ke = !1, Ne.clear(), te(e);
|
|
320
|
+
}
|
|
321
|
+
function Xn(e) {
|
|
322
|
+
if (e.fragment !== null) {
|
|
323
|
+
e.update(), M(e.before_update);
|
|
324
|
+
const t = e.dirty;
|
|
325
|
+
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(re);
|
|
326
|
+
}
|
|
327
|
+
}
|
|
328
|
+
function zn(e) {
|
|
329
|
+
const t = [], n = [];
|
|
330
|
+
V.forEach((r) => e.indexOf(r) === -1 ? t.push(r) : n.push(r)), n.forEach((r) => r()), V = t;
|
|
331
|
+
}
|
|
332
|
+
let Y;
|
|
333
|
+
function Zt() {
|
|
334
|
+
return Y || (Y = Promise.resolve(), Y.then(() => {
|
|
335
|
+
Y = null;
|
|
336
|
+
})), Y;
|
|
337
|
+
}
|
|
338
|
+
function xe(e, t, n) {
|
|
339
|
+
e.dispatchEvent(Un(`${t ? "intro" : "outro"}${n}`));
|
|
340
|
+
}
|
|
341
|
+
const ce = /* @__PURE__ */ new Set();
|
|
342
|
+
let L;
|
|
343
|
+
function ms() {
|
|
344
|
+
L = {
|
|
345
|
+
r: 0,
|
|
346
|
+
c: [],
|
|
347
|
+
p: L
|
|
348
|
+
// parent group
|
|
349
|
+
};
|
|
350
|
+
}
|
|
351
|
+
function ds() {
|
|
352
|
+
L.r || M(L.c), L = L.p;
|
|
353
|
+
}
|
|
354
|
+
function me(e, t) {
|
|
355
|
+
e && e.i && (ce.delete(e), e.i(t));
|
|
356
|
+
}
|
|
357
|
+
function Ie(e, t, n, r) {
|
|
358
|
+
if (e && e.o) {
|
|
359
|
+
if (ce.has(e))
|
|
360
|
+
return;
|
|
361
|
+
ce.add(e), L.c.push(() => {
|
|
362
|
+
ce.delete(e), r && (n && e.d(1), r());
|
|
363
|
+
}), e.o(t);
|
|
364
|
+
} else
|
|
365
|
+
r && r();
|
|
366
|
+
}
|
|
367
|
+
const Qt = { duration: 0 };
|
|
368
|
+
function ps(e, t, n) {
|
|
369
|
+
const r = { direction: "in" };
|
|
370
|
+
let i = t(e, n, r), s = !1, o, a, l = 0;
|
|
371
|
+
function u() {
|
|
372
|
+
o && Fe(e, o);
|
|
373
|
+
}
|
|
374
|
+
function h() {
|
|
375
|
+
const {
|
|
376
|
+
delay: m = 0,
|
|
377
|
+
duration: d = 300,
|
|
378
|
+
easing: c = Nt,
|
|
379
|
+
tick: p = B,
|
|
380
|
+
css: E
|
|
381
|
+
} = i || Qt;
|
|
382
|
+
E && (o = Xt(e, 0, 1, d, m, c, E, l++)), p(0, 1);
|
|
383
|
+
const v = Dt() + m, T = v + d;
|
|
384
|
+
a && a.abort(), s = !0, re(() => xe(e, !0, "start")), a = Ft((H) => {
|
|
385
|
+
if (s) {
|
|
386
|
+
if (H >= T)
|
|
387
|
+
return p(1, 0), xe(e, !0, "end"), u(), s = !1;
|
|
388
|
+
if (H >= v) {
|
|
389
|
+
const A = c((H - v) / d);
|
|
390
|
+
p(A, 1 - A);
|
|
391
|
+
}
|
|
392
|
+
}
|
|
393
|
+
return s;
|
|
394
|
+
});
|
|
395
|
+
}
|
|
396
|
+
let f = !1;
|
|
397
|
+
return {
|
|
398
|
+
start() {
|
|
399
|
+
f || (f = !0, Fe(e), oe(i) ? (i = i(r), Zt().then(h)) : h());
|
|
400
|
+
},
|
|
401
|
+
invalidate() {
|
|
402
|
+
f = !1;
|
|
403
|
+
},
|
|
404
|
+
end() {
|
|
405
|
+
s && (u(), s = !1);
|
|
406
|
+
}
|
|
407
|
+
};
|
|
408
|
+
}
|
|
409
|
+
function gs(e, t, n) {
|
|
410
|
+
const r = { direction: "out" };
|
|
411
|
+
let i = t(e, n, r), s = !0, o;
|
|
412
|
+
const a = L;
|
|
413
|
+
a.r += 1;
|
|
414
|
+
let l;
|
|
415
|
+
function u() {
|
|
416
|
+
const {
|
|
417
|
+
delay: h = 0,
|
|
418
|
+
duration: f = 300,
|
|
419
|
+
easing: m = Nt,
|
|
420
|
+
tick: d = B,
|
|
421
|
+
css: c
|
|
422
|
+
} = i || Qt;
|
|
423
|
+
c && (o = Xt(e, 1, 0, f, h, m, c));
|
|
424
|
+
const p = Dt() + h, E = p + f;
|
|
425
|
+
re(() => xe(e, !1, "start")), "inert" in e && (l = /** @type {HTMLElement} */
|
|
426
|
+
e.inert, e.inert = !0), Ft((v) => {
|
|
427
|
+
if (s) {
|
|
428
|
+
if (v >= E)
|
|
429
|
+
return d(0, 1), xe(e, !1, "end"), --a.r || M(a.c), !1;
|
|
430
|
+
if (v >= p) {
|
|
431
|
+
const T = m((v - p) / f);
|
|
432
|
+
d(1 - T, T);
|
|
433
|
+
}
|
|
434
|
+
}
|
|
435
|
+
return s;
|
|
436
|
+
});
|
|
437
|
+
}
|
|
438
|
+
return oe(i) ? Zt().then(() => {
|
|
439
|
+
i = i(r), u();
|
|
440
|
+
}) : u(), {
|
|
441
|
+
end(h) {
|
|
442
|
+
h && "inert" in e && (e.inert = l), h && i.tick && i.tick(1, 0), s && (o && Fe(e, o), s = !1);
|
|
443
|
+
}
|
|
444
|
+
};
|
|
445
|
+
}
|
|
446
|
+
function bs(e) {
|
|
447
|
+
return (e == null ? void 0 : e.length) !== void 0 ? e : Array.from(e);
|
|
448
|
+
}
|
|
449
|
+
function _s(e) {
|
|
450
|
+
e && e.c();
|
|
451
|
+
}
|
|
452
|
+
function Wn(e, t, n) {
|
|
453
|
+
const { fragment: r, after_update: i } = e.$$;
|
|
454
|
+
r && r.m(t, n), re(() => {
|
|
455
|
+
const s = e.$$.on_mount.map(It).filter(oe);
|
|
456
|
+
e.$$.on_destroy ? e.$$.on_destroy.push(...s) : M(s), e.$$.on_mount = [];
|
|
457
|
+
}), i.forEach(re);
|
|
458
|
+
}
|
|
459
|
+
function Zn(e, t) {
|
|
460
|
+
const n = e.$$;
|
|
461
|
+
n.fragment !== null && (zn(n.after_update), M(n.on_destroy), n.fragment && n.fragment.d(t), n.on_destroy = n.fragment = null, n.ctx = []);
|
|
462
|
+
}
|
|
463
|
+
function Qn(e, t) {
|
|
464
|
+
e.$$.dirty[0] === -1 && (j.push(e), Wt(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
|
|
465
|
+
}
|
|
466
|
+
function qn(e, t, n, r, i, s, o = null, a = [-1]) {
|
|
467
|
+
const l = ne;
|
|
468
|
+
te(e);
|
|
469
|
+
const u = e.$$ = {
|
|
470
|
+
fragment: null,
|
|
471
|
+
ctx: [],
|
|
472
|
+
// state
|
|
473
|
+
props: s,
|
|
474
|
+
update: B,
|
|
475
|
+
not_equal: i,
|
|
476
|
+
bound: ht(),
|
|
477
|
+
// lifecycle
|
|
478
|
+
on_mount: [],
|
|
479
|
+
on_destroy: [],
|
|
480
|
+
on_disconnect: [],
|
|
481
|
+
before_update: [],
|
|
482
|
+
after_update: [],
|
|
483
|
+
context: new Map(t.context || (l ? l.$$.context : [])),
|
|
484
|
+
// everything else
|
|
485
|
+
callbacks: ht(),
|
|
486
|
+
dirty: a,
|
|
487
|
+
skip_bound: !1,
|
|
488
|
+
root: t.target || l.$$.root
|
|
489
|
+
};
|
|
490
|
+
o && o(u.root);
|
|
491
|
+
let h = !1;
|
|
492
|
+
if (u.ctx = n ? n(e, t.props || {}, (f, m, ...d) => {
|
|
493
|
+
const c = d.length ? d[0] : m;
|
|
494
|
+
return u.ctx && i(u.ctx[f], u.ctx[f] = c) && (!u.skip_bound && u.bound[f] && u.bound[f](c), h && Qn(e, f)), m;
|
|
495
|
+
}) : [], u.update(), h = !0, M(u.before_update), u.fragment = r ? r(u.ctx) : !1, t.target) {
|
|
496
|
+
if (t.hydrate) {
|
|
497
|
+
const f = $n(t.target);
|
|
498
|
+
u.fragment && u.fragment.l(f), f.forEach(C);
|
|
499
|
+
} else
|
|
500
|
+
u.fragment && u.fragment.c();
|
|
501
|
+
t.intro && me(e.$$.fragment), Wn(e, t.target, t.anchor), O();
|
|
502
|
+
}
|
|
503
|
+
te(l);
|
|
504
|
+
}
|
|
505
|
+
let qt;
|
|
506
|
+
typeof HTMLElement == "function" && (qt = class extends HTMLElement {
|
|
507
|
+
constructor(t, n, r) {
|
|
508
|
+
super();
|
|
509
|
+
/** The Svelte component constructor */
|
|
510
|
+
S(this, "$$ctor");
|
|
511
|
+
/** Slots */
|
|
512
|
+
S(this, "$$s");
|
|
513
|
+
/** The Svelte component instance */
|
|
514
|
+
S(this, "$$c");
|
|
515
|
+
/** Whether or not the custom element is connected */
|
|
516
|
+
S(this, "$$cn", !1);
|
|
517
|
+
/** Component props data */
|
|
518
|
+
S(this, "$$d", {});
|
|
519
|
+
/** `true` if currently in the process of reflecting component props back to attributes */
|
|
520
|
+
S(this, "$$r", !1);
|
|
521
|
+
/** @type {Record<string, CustomElementPropDefinition>} Props definition (name, reflected, type etc) */
|
|
522
|
+
S(this, "$$p_d", {});
|
|
523
|
+
/** @type {Record<string, Function[]>} Event listeners */
|
|
524
|
+
S(this, "$$l", {});
|
|
525
|
+
/** @type {Map<Function, Function>} Event listener unsubscribe functions */
|
|
526
|
+
S(this, "$$l_u", /* @__PURE__ */ new Map());
|
|
527
|
+
this.$$ctor = t, this.$$s = n, r && this.attachShadow({ mode: "open" });
|
|
528
|
+
}
|
|
529
|
+
addEventListener(t, n, r) {
|
|
530
|
+
if (this.$$l[t] = this.$$l[t] || [], this.$$l[t].push(n), this.$$c) {
|
|
531
|
+
const i = this.$$c.$on(t, n);
|
|
532
|
+
this.$$l_u.set(n, i);
|
|
533
|
+
}
|
|
534
|
+
super.addEventListener(t, n, r);
|
|
535
|
+
}
|
|
536
|
+
removeEventListener(t, n, r) {
|
|
537
|
+
if (super.removeEventListener(t, n, r), this.$$c) {
|
|
538
|
+
const i = this.$$l_u.get(n);
|
|
539
|
+
i && (i(), this.$$l_u.delete(n));
|
|
540
|
+
}
|
|
541
|
+
}
|
|
542
|
+
connectedCallback() {
|
|
543
|
+
return ut(this, null, function* () {
|
|
544
|
+
if (this.$$cn = !0, !this.$$c) {
|
|
545
|
+
let t = function(s) {
|
|
546
|
+
return () => {
|
|
547
|
+
let o;
|
|
548
|
+
return {
|
|
549
|
+
c: function() {
|
|
550
|
+
o = R("slot"), s !== "default" && Q(o, "name", s);
|
|
551
|
+
},
|
|
552
|
+
/**
|
|
553
|
+
* @param {HTMLElement} target
|
|
554
|
+
* @param {HTMLElement} [anchor]
|
|
555
|
+
*/
|
|
556
|
+
m: function(u, h) {
|
|
557
|
+
$(u, o, h);
|
|
558
|
+
},
|
|
559
|
+
d: function(u) {
|
|
560
|
+
u && C(o);
|
|
561
|
+
}
|
|
562
|
+
};
|
|
563
|
+
};
|
|
564
|
+
};
|
|
565
|
+
if (yield Promise.resolve(), !this.$$cn || this.$$c)
|
|
566
|
+
return;
|
|
567
|
+
const n = {}, r = Dn(this);
|
|
568
|
+
for (const s of this.$$s)
|
|
569
|
+
s in r && (n[s] = [t(s)]);
|
|
570
|
+
for (const s of this.attributes) {
|
|
571
|
+
const o = this.$$g_p(s.name);
|
|
572
|
+
o in this.$$d || (this.$$d[o] = de(o, s.value, this.$$p_d, "toProp"));
|
|
573
|
+
}
|
|
574
|
+
for (const s in this.$$p_d)
|
|
575
|
+
!(s in this.$$d) && this[s] !== void 0 && (this.$$d[s] = this[s], delete this[s]);
|
|
576
|
+
this.$$c = new this.$$ctor({
|
|
577
|
+
target: this.shadowRoot || this,
|
|
578
|
+
props: at(ot({}, this.$$d), {
|
|
579
|
+
$$slots: n,
|
|
580
|
+
$$scope: {
|
|
581
|
+
ctx: []
|
|
582
|
+
}
|
|
583
|
+
})
|
|
584
|
+
});
|
|
585
|
+
const i = () => {
|
|
586
|
+
this.$$r = !0;
|
|
587
|
+
for (const s in this.$$p_d)
|
|
588
|
+
if (this.$$d[s] = this.$$c.$$.ctx[this.$$c.$$.props[s]], this.$$p_d[s].reflect) {
|
|
589
|
+
const o = de(
|
|
590
|
+
s,
|
|
591
|
+
this.$$d[s],
|
|
592
|
+
this.$$p_d,
|
|
593
|
+
"toAttribute"
|
|
594
|
+
);
|
|
595
|
+
o == null ? this.removeAttribute(this.$$p_d[s].attribute || s) : this.setAttribute(this.$$p_d[s].attribute || s, o);
|
|
596
|
+
}
|
|
597
|
+
this.$$r = !1;
|
|
598
|
+
};
|
|
599
|
+
this.$$c.$$.after_update.push(i), i();
|
|
600
|
+
for (const s in this.$$l)
|
|
601
|
+
for (const o of this.$$l[s]) {
|
|
602
|
+
const a = this.$$c.$on(s, o);
|
|
603
|
+
this.$$l_u.set(o, a);
|
|
604
|
+
}
|
|
605
|
+
this.$$l = {};
|
|
606
|
+
}
|
|
607
|
+
});
|
|
608
|
+
}
|
|
609
|
+
// We don't need this when working within Svelte code, but for compatibility of people using this outside of Svelte
|
|
610
|
+
// and setting attributes through setAttribute etc, this is helpful
|
|
611
|
+
attributeChangedCallback(t, n, r) {
|
|
612
|
+
var i;
|
|
613
|
+
this.$$r || (t = this.$$g_p(t), this.$$d[t] = de(t, r, this.$$p_d, "toProp"), (i = this.$$c) == null || i.$set({ [t]: this.$$d[t] }));
|
|
614
|
+
}
|
|
615
|
+
disconnectedCallback() {
|
|
616
|
+
this.$$cn = !1, Promise.resolve().then(() => {
|
|
617
|
+
!this.$$cn && this.$$c && (this.$$c.$destroy(), this.$$c = void 0);
|
|
618
|
+
});
|
|
619
|
+
}
|
|
620
|
+
$$g_p(t) {
|
|
621
|
+
return Object.keys(this.$$p_d).find(
|
|
622
|
+
(n) => this.$$p_d[n].attribute === t || !this.$$p_d[n].attribute && n.toLowerCase() === t
|
|
623
|
+
) || t;
|
|
624
|
+
}
|
|
625
|
+
});
|
|
626
|
+
function de(e, t, n, r) {
|
|
627
|
+
var s;
|
|
628
|
+
const i = (s = n[e]) == null ? void 0 : s.type;
|
|
629
|
+
if (t = i === "Boolean" && typeof t != "boolean" ? t != null : t, !r || !n[e])
|
|
630
|
+
return t;
|
|
631
|
+
if (r === "toAttribute")
|
|
632
|
+
switch (i) {
|
|
633
|
+
case "Object":
|
|
634
|
+
case "Array":
|
|
635
|
+
return t == null ? null : JSON.stringify(t);
|
|
636
|
+
case "Boolean":
|
|
637
|
+
return t ? "" : null;
|
|
638
|
+
case "Number":
|
|
639
|
+
return t == null ? null : t;
|
|
640
|
+
default:
|
|
641
|
+
return t;
|
|
642
|
+
}
|
|
643
|
+
else
|
|
644
|
+
switch (i) {
|
|
645
|
+
case "Object":
|
|
646
|
+
case "Array":
|
|
647
|
+
return t && JSON.parse(t);
|
|
648
|
+
case "Boolean":
|
|
649
|
+
return t;
|
|
650
|
+
case "Number":
|
|
651
|
+
return t != null ? +t : t;
|
|
652
|
+
default:
|
|
653
|
+
return t;
|
|
654
|
+
}
|
|
655
|
+
}
|
|
656
|
+
function Jn(e, t, n, r, i, s) {
|
|
657
|
+
let o = class extends qt {
|
|
658
|
+
constructor() {
|
|
659
|
+
super(e, n, i), this.$$p_d = t;
|
|
660
|
+
}
|
|
661
|
+
static get observedAttributes() {
|
|
662
|
+
return Object.keys(t).map(
|
|
663
|
+
(a) => (t[a].attribute || a).toLowerCase()
|
|
664
|
+
);
|
|
665
|
+
}
|
|
666
|
+
};
|
|
667
|
+
return Object.keys(t).forEach((a) => {
|
|
668
|
+
Object.defineProperty(o.prototype, a, {
|
|
669
|
+
get() {
|
|
670
|
+
return this.$$c && a in this.$$c ? this.$$c[a] : this.$$d[a];
|
|
671
|
+
},
|
|
672
|
+
set(l) {
|
|
673
|
+
var u;
|
|
674
|
+
l = de(a, l, t), this.$$d[a] = l, (u = this.$$c) == null || u.$set({ [a]: l });
|
|
675
|
+
}
|
|
676
|
+
});
|
|
677
|
+
}), r.forEach((a) => {
|
|
678
|
+
Object.defineProperty(o.prototype, a, {
|
|
679
|
+
get() {
|
|
680
|
+
var l;
|
|
681
|
+
return (l = this.$$c) == null ? void 0 : l[a];
|
|
682
|
+
}
|
|
683
|
+
});
|
|
684
|
+
}), e.element = /** @type {any} */
|
|
685
|
+
o, o;
|
|
686
|
+
}
|
|
687
|
+
class Yn {
|
|
688
|
+
constructor() {
|
|
689
|
+
/**
|
|
690
|
+
* ### PRIVATE API
|
|
691
|
+
*
|
|
692
|
+
* Do not use, may change at any time
|
|
693
|
+
*
|
|
694
|
+
* @type {any}
|
|
695
|
+
*/
|
|
696
|
+
S(this, "$$");
|
|
697
|
+
/**
|
|
698
|
+
* ### PRIVATE API
|
|
699
|
+
*
|
|
700
|
+
* Do not use, may change at any time
|
|
701
|
+
*
|
|
702
|
+
* @type {any}
|
|
703
|
+
*/
|
|
704
|
+
S(this, "$$set");
|
|
705
|
+
}
|
|
706
|
+
/** @returns {void} */
|
|
707
|
+
$destroy() {
|
|
708
|
+
Zn(this, 1), this.$destroy = B;
|
|
709
|
+
}
|
|
710
|
+
/**
|
|
711
|
+
* @template {Extract<keyof Events, string>} K
|
|
712
|
+
* @param {K} type
|
|
713
|
+
* @param {((e: Events[K]) => void) | null | undefined} callback
|
|
714
|
+
* @returns {() => void}
|
|
715
|
+
*/
|
|
716
|
+
$on(t, n) {
|
|
717
|
+
if (!oe(n))
|
|
718
|
+
return B;
|
|
719
|
+
const r = this.$$.callbacks[t] || (this.$$.callbacks[t] = []);
|
|
720
|
+
return r.push(n), () => {
|
|
721
|
+
const i = r.indexOf(n);
|
|
722
|
+
i !== -1 && r.splice(i, 1);
|
|
723
|
+
};
|
|
724
|
+
}
|
|
725
|
+
/**
|
|
726
|
+
* @param {Partial<Props>} props
|
|
727
|
+
* @returns {void}
|
|
728
|
+
*/
|
|
729
|
+
$set(t) {
|
|
730
|
+
this.$$set && !Ln(t) && (this.$$.skip_bound = !0, this.$$set(t), this.$$.skip_bound = !1);
|
|
731
|
+
}
|
|
732
|
+
}
|
|
733
|
+
const Kn = "4";
|
|
734
|
+
typeof window != "undefined" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(Kn);
|
|
735
|
+
function er(e, t) {
|
|
736
|
+
if (e) {
|
|
737
|
+
const n = document.createElement("style");
|
|
738
|
+
n.innerHTML = t, e.appendChild(n);
|
|
739
|
+
}
|
|
740
|
+
}
|
|
741
|
+
function tr(e, t) {
|
|
742
|
+
const n = new URL(t);
|
|
743
|
+
fetch(n.href).then((r) => r.text()).then((r) => {
|
|
744
|
+
const i = document.createElement("style");
|
|
745
|
+
i.innerHTML = r, e && e.appendChild(i);
|
|
746
|
+
}).catch((r) => {
|
|
747
|
+
console.error("There was an error while trying to load client styling from URL", r);
|
|
748
|
+
});
|
|
749
|
+
}
|
|
750
|
+
function nr(e, t, n) {
|
|
751
|
+
if (window.emMessageBus) {
|
|
752
|
+
const r = document.createElement("style");
|
|
753
|
+
window.emMessageBus.subscribe(t, (i) => {
|
|
754
|
+
r.innerHTML = i, e && e.appendChild(r);
|
|
755
|
+
});
|
|
756
|
+
}
|
|
757
|
+
}
|
|
758
|
+
const F = [];
|
|
759
|
+
function rr(e, t) {
|
|
760
|
+
return {
|
|
761
|
+
subscribe: we(e, t).subscribe
|
|
762
|
+
};
|
|
763
|
+
}
|
|
764
|
+
function we(e, t = B) {
|
|
765
|
+
let n;
|
|
766
|
+
const r = /* @__PURE__ */ new Set();
|
|
767
|
+
function i(a) {
|
|
768
|
+
if (Mt(e, a) && (e = a, n)) {
|
|
769
|
+
const l = !F.length;
|
|
770
|
+
for (const u of r)
|
|
771
|
+
u[1](), F.push(u, e);
|
|
772
|
+
if (l) {
|
|
773
|
+
for (let u = 0; u < F.length; u += 2)
|
|
774
|
+
F[u][0](F[u + 1]);
|
|
775
|
+
F.length = 0;
|
|
776
|
+
}
|
|
777
|
+
}
|
|
778
|
+
}
|
|
779
|
+
function s(a) {
|
|
780
|
+
i(a(e));
|
|
781
|
+
}
|
|
782
|
+
function o(a, l = B) {
|
|
783
|
+
const u = [a, l];
|
|
784
|
+
return r.add(u), r.size === 1 && (n = t(i, s) || B), a(e), () => {
|
|
785
|
+
r.delete(u), r.size === 0 && n && (n(), n = null);
|
|
786
|
+
};
|
|
787
|
+
}
|
|
788
|
+
return { set: i, update: s, subscribe: o };
|
|
789
|
+
}
|
|
790
|
+
function q(e, t, n) {
|
|
791
|
+
const r = !Array.isArray(e), i = r ? [e] : e;
|
|
792
|
+
if (!i.every(Boolean))
|
|
793
|
+
throw new Error("derived() expects stores as input, got a falsy value");
|
|
794
|
+
const s = t.length < 2;
|
|
795
|
+
return rr(n, (o, a) => {
|
|
796
|
+
let l = !1;
|
|
797
|
+
const u = [];
|
|
798
|
+
let h = 0, f = B;
|
|
799
|
+
const m = () => {
|
|
800
|
+
if (h)
|
|
801
|
+
return;
|
|
802
|
+
f();
|
|
803
|
+
const c = t(r ? u[0] : u, o, a);
|
|
804
|
+
s ? o(c) : f = oe(c) ? c : B;
|
|
805
|
+
}, d = i.map(
|
|
806
|
+
(c, p) => $t(
|
|
807
|
+
c,
|
|
808
|
+
(E) => {
|
|
809
|
+
u[p] = E, h &= ~(1 << p), l && m();
|
|
810
|
+
},
|
|
811
|
+
() => {
|
|
812
|
+
h |= 1 << p;
|
|
813
|
+
}
|
|
814
|
+
)
|
|
815
|
+
);
|
|
816
|
+
return l = !0, m(), function() {
|
|
817
|
+
M(d), f(), l = !1;
|
|
818
|
+
};
|
|
819
|
+
});
|
|
820
|
+
}
|
|
821
|
+
var ys = typeof globalThis != "undefined" ? globalThis : typeof window != "undefined" ? window : typeof global != "undefined" ? global : typeof self != "undefined" ? self : {};
|
|
822
|
+
function ir(e) {
|
|
823
|
+
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
824
|
+
}
|
|
825
|
+
var sr = function(t) {
|
|
826
|
+
return or(t) && !ar(t);
|
|
827
|
+
};
|
|
828
|
+
function or(e) {
|
|
829
|
+
return !!e && typeof e == "object";
|
|
830
|
+
}
|
|
831
|
+
function ar(e) {
|
|
832
|
+
var t = Object.prototype.toString.call(e);
|
|
833
|
+
return t === "[object RegExp]" || t === "[object Date]" || lr(e);
|
|
834
|
+
}
|
|
835
|
+
var ur = typeof Symbol == "function" && Symbol.for, hr = ur ? Symbol.for("react.element") : 60103;
|
|
836
|
+
function lr(e) {
|
|
837
|
+
return e.$$typeof === hr;
|
|
838
|
+
}
|
|
839
|
+
function fr(e) {
|
|
840
|
+
return Array.isArray(e) ? [] : {};
|
|
841
|
+
}
|
|
842
|
+
function ie(e, t) {
|
|
843
|
+
return t.clone !== !1 && t.isMergeableObject(e) ? X(fr(e), e, t) : e;
|
|
844
|
+
}
|
|
845
|
+
function cr(e, t, n) {
|
|
846
|
+
return e.concat(t).map(function(r) {
|
|
847
|
+
return ie(r, n);
|
|
848
|
+
});
|
|
849
|
+
}
|
|
850
|
+
function mr(e, t) {
|
|
851
|
+
if (!t.customMerge)
|
|
852
|
+
return X;
|
|
853
|
+
var n = t.customMerge(e);
|
|
854
|
+
return typeof n == "function" ? n : X;
|
|
855
|
+
}
|
|
856
|
+
function dr(e) {
|
|
857
|
+
return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(e).filter(function(t) {
|
|
858
|
+
return Object.propertyIsEnumerable.call(e, t);
|
|
859
|
+
}) : [];
|
|
860
|
+
}
|
|
861
|
+
function ct(e) {
|
|
862
|
+
return Object.keys(e).concat(dr(e));
|
|
863
|
+
}
|
|
864
|
+
function Jt(e, t) {
|
|
865
|
+
try {
|
|
866
|
+
return t in e;
|
|
867
|
+
} catch (n) {
|
|
868
|
+
return !1;
|
|
869
|
+
}
|
|
870
|
+
}
|
|
871
|
+
function pr(e, t) {
|
|
872
|
+
return Jt(e, t) && !(Object.hasOwnProperty.call(e, t) && Object.propertyIsEnumerable.call(e, t));
|
|
873
|
+
}
|
|
874
|
+
function gr(e, t, n) {
|
|
875
|
+
var r = {};
|
|
876
|
+
return n.isMergeableObject(e) && ct(e).forEach(function(i) {
|
|
877
|
+
r[i] = ie(e[i], n);
|
|
878
|
+
}), ct(t).forEach(function(i) {
|
|
879
|
+
pr(e, i) || (Jt(e, i) && n.isMergeableObject(t[i]) ? r[i] = mr(i, n)(e[i], t[i], n) : r[i] = ie(t[i], n));
|
|
880
|
+
}), r;
|
|
881
|
+
}
|
|
882
|
+
function X(e, t, n) {
|
|
883
|
+
n = n || {}, n.arrayMerge = n.arrayMerge || cr, n.isMergeableObject = n.isMergeableObject || sr, n.cloneUnlessOtherwiseSpecified = ie;
|
|
884
|
+
var r = Array.isArray(t), i = Array.isArray(e), s = r === i;
|
|
885
|
+
return s ? r ? n.arrayMerge(e, t, n) : gr(e, t, n) : ie(t, n);
|
|
886
|
+
}
|
|
887
|
+
X.all = function(t, n) {
|
|
888
|
+
if (!Array.isArray(t))
|
|
889
|
+
throw new Error("first argument should be an array");
|
|
890
|
+
return t.reduce(function(r, i) {
|
|
891
|
+
return X(r, i, n);
|
|
892
|
+
}, {});
|
|
893
|
+
};
|
|
894
|
+
var br = X, _r = br;
|
|
895
|
+
const yr = /* @__PURE__ */ ir(_r);
|
|
896
|
+
/*! *****************************************************************************
|
|
897
|
+
Copyright (c) Microsoft Corporation.
|
|
898
|
+
|
|
899
|
+
Permission to use, copy, modify, and/or distribute this software for any
|
|
900
|
+
purpose with or without fee is hereby granted.
|
|
901
|
+
|
|
902
|
+
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
903
|
+
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
904
|
+
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
905
|
+
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
906
|
+
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
907
|
+
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
908
|
+
PERFORMANCE OF THIS SOFTWARE.
|
|
909
|
+
***************************************************************************** */
|
|
910
|
+
var Ve = function(e, t) {
|
|
911
|
+
return Ve = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(n, r) {
|
|
912
|
+
n.__proto__ = r;
|
|
913
|
+
} || function(n, r) {
|
|
914
|
+
for (var i in r)
|
|
915
|
+
Object.prototype.hasOwnProperty.call(r, i) && (n[i] = r[i]);
|
|
916
|
+
}, Ve(e, t);
|
|
917
|
+
};
|
|
918
|
+
function Be(e, t) {
|
|
919
|
+
if (typeof t != "function" && t !== null)
|
|
920
|
+
throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
|
|
921
|
+
Ve(e, t);
|
|
922
|
+
function n() {
|
|
923
|
+
this.constructor = e;
|
|
924
|
+
}
|
|
925
|
+
e.prototype = t === null ? Object.create(t) : (n.prototype = t.prototype, new n());
|
|
926
|
+
}
|
|
927
|
+
var y = function() {
|
|
928
|
+
return y = Object.assign || function(t) {
|
|
929
|
+
for (var n, r = 1, i = arguments.length; r < i; r++) {
|
|
930
|
+
n = arguments[r];
|
|
931
|
+
for (var s in n)
|
|
932
|
+
Object.prototype.hasOwnProperty.call(n, s) && (t[s] = n[s]);
|
|
933
|
+
}
|
|
934
|
+
return t;
|
|
935
|
+
}, y.apply(this, arguments);
|
|
936
|
+
};
|
|
937
|
+
function xr(e, t) {
|
|
938
|
+
var n = {};
|
|
939
|
+
for (var r in e)
|
|
940
|
+
Object.prototype.hasOwnProperty.call(e, r) && t.indexOf(r) < 0 && (n[r] = e[r]);
|
|
941
|
+
if (e != null && typeof Object.getOwnPropertySymbols == "function")
|
|
942
|
+
for (var i = 0, r = Object.getOwnPropertySymbols(e); i < r.length; i++)
|
|
943
|
+
t.indexOf(r[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, r[i]) && (n[r[i]] = e[r[i]]);
|
|
944
|
+
return n;
|
|
945
|
+
}
|
|
946
|
+
function Me(e, t, n) {
|
|
947
|
+
if (arguments.length === 2)
|
|
948
|
+
for (var r = 0, i = t.length, s; r < i; r++)
|
|
949
|
+
(s || !(r in t)) && (s || (s = Array.prototype.slice.call(t, 0, r)), s[r] = t[r]);
|
|
950
|
+
return e.concat(s || t);
|
|
951
|
+
}
|
|
952
|
+
function $e(e, t) {
|
|
953
|
+
var n = t && t.cache ? t.cache : Sr, r = t && t.serializer ? t.serializer : Br, i = t && t.strategy ? t.strategy : vr;
|
|
954
|
+
return i(e, {
|
|
955
|
+
cache: n,
|
|
956
|
+
serializer: r
|
|
957
|
+
});
|
|
958
|
+
}
|
|
959
|
+
function Er(e) {
|
|
960
|
+
return e == null || typeof e == "number" || typeof e == "boolean";
|
|
961
|
+
}
|
|
962
|
+
function Yt(e, t, n, r) {
|
|
963
|
+
var i = Er(r) ? r : n(r), s = t.get(i);
|
|
964
|
+
return typeof s == "undefined" && (s = e.call(this, r), t.set(i, s)), s;
|
|
965
|
+
}
|
|
966
|
+
function Kt(e, t, n) {
|
|
967
|
+
var r = Array.prototype.slice.call(arguments, 3), i = n(r), s = t.get(i);
|
|
968
|
+
return typeof s == "undefined" && (s = e.apply(this, r), t.set(i, s)), s;
|
|
969
|
+
}
|
|
970
|
+
function tt(e, t, n, r, i) {
|
|
971
|
+
return n.bind(t, e, r, i);
|
|
972
|
+
}
|
|
973
|
+
function vr(e, t) {
|
|
974
|
+
var n = e.length === 1 ? Yt : Kt;
|
|
975
|
+
return tt(e, this, n, t.cache.create(), t.serializer);
|
|
976
|
+
}
|
|
977
|
+
function Hr(e, t) {
|
|
978
|
+
return tt(e, this, Kt, t.cache.create(), t.serializer);
|
|
979
|
+
}
|
|
980
|
+
function wr(e, t) {
|
|
981
|
+
return tt(e, this, Yt, t.cache.create(), t.serializer);
|
|
982
|
+
}
|
|
983
|
+
var Br = function() {
|
|
984
|
+
return JSON.stringify(arguments);
|
|
985
|
+
}, Tr = (
|
|
986
|
+
/** @class */
|
|
987
|
+
function() {
|
|
988
|
+
function e() {
|
|
989
|
+
this.cache = /* @__PURE__ */ Object.create(null);
|
|
990
|
+
}
|
|
991
|
+
return e.prototype.get = function(t) {
|
|
992
|
+
return this.cache[t];
|
|
993
|
+
}, e.prototype.set = function(t, n) {
|
|
994
|
+
this.cache[t] = n;
|
|
995
|
+
}, e;
|
|
996
|
+
}()
|
|
997
|
+
), Sr = {
|
|
998
|
+
create: function() {
|
|
999
|
+
return new Tr();
|
|
1000
|
+
}
|
|
1001
|
+
}, Re = {
|
|
1002
|
+
variadic: Hr,
|
|
1003
|
+
monadic: wr
|
|
1004
|
+
}, g;
|
|
1005
|
+
(function(e) {
|
|
1006
|
+
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";
|
|
1007
|
+
})(g || (g = {}));
|
|
1008
|
+
var x;
|
|
1009
|
+
(function(e) {
|
|
1010
|
+
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";
|
|
1011
|
+
})(x || (x = {}));
|
|
1012
|
+
var z;
|
|
1013
|
+
(function(e) {
|
|
1014
|
+
e[e.number = 0] = "number", e[e.dateTime = 1] = "dateTime";
|
|
1015
|
+
})(z || (z = {}));
|
|
1016
|
+
function mt(e) {
|
|
1017
|
+
return e.type === x.literal;
|
|
1018
|
+
}
|
|
1019
|
+
function Ar(e) {
|
|
1020
|
+
return e.type === x.argument;
|
|
1021
|
+
}
|
|
1022
|
+
function en(e) {
|
|
1023
|
+
return e.type === x.number;
|
|
1024
|
+
}
|
|
1025
|
+
function tn(e) {
|
|
1026
|
+
return e.type === x.date;
|
|
1027
|
+
}
|
|
1028
|
+
function nn(e) {
|
|
1029
|
+
return e.type === x.time;
|
|
1030
|
+
}
|
|
1031
|
+
function rn(e) {
|
|
1032
|
+
return e.type === x.select;
|
|
1033
|
+
}
|
|
1034
|
+
function sn(e) {
|
|
1035
|
+
return e.type === x.plural;
|
|
1036
|
+
}
|
|
1037
|
+
function Or(e) {
|
|
1038
|
+
return e.type === x.pound;
|
|
1039
|
+
}
|
|
1040
|
+
function on(e) {
|
|
1041
|
+
return e.type === x.tag;
|
|
1042
|
+
}
|
|
1043
|
+
function an(e) {
|
|
1044
|
+
return !!(e && typeof e == "object" && e.type === z.number);
|
|
1045
|
+
}
|
|
1046
|
+
function Xe(e) {
|
|
1047
|
+
return !!(e && typeof e == "object" && e.type === z.dateTime);
|
|
1048
|
+
}
|
|
1049
|
+
var un = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, Pr = /(?:[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;
|
|
1050
|
+
function Cr(e) {
|
|
1051
|
+
var t = {};
|
|
1052
|
+
return e.replace(Pr, function(n) {
|
|
1053
|
+
var r = n.length;
|
|
1054
|
+
switch (n[0]) {
|
|
1055
|
+
case "G":
|
|
1056
|
+
t.era = r === 4 ? "long" : r === 5 ? "narrow" : "short";
|
|
1057
|
+
break;
|
|
1058
|
+
case "y":
|
|
1059
|
+
t.year = r === 2 ? "2-digit" : "numeric";
|
|
1060
|
+
break;
|
|
1061
|
+
case "Y":
|
|
1062
|
+
case "u":
|
|
1063
|
+
case "U":
|
|
1064
|
+
case "r":
|
|
1065
|
+
throw new RangeError("`Y/u/U/r` (year) patterns are not supported, use `y` instead");
|
|
1066
|
+
case "q":
|
|
1067
|
+
case "Q":
|
|
1068
|
+
throw new RangeError("`q/Q` (quarter) patterns are not supported");
|
|
1069
|
+
case "M":
|
|
1070
|
+
case "L":
|
|
1071
|
+
t.month = ["numeric", "2-digit", "short", "long", "narrow"][r - 1];
|
|
1072
|
+
break;
|
|
1073
|
+
case "w":
|
|
1074
|
+
case "W":
|
|
1075
|
+
throw new RangeError("`w/W` (week) patterns are not supported");
|
|
1076
|
+
case "d":
|
|
1077
|
+
t.day = ["numeric", "2-digit"][r - 1];
|
|
1078
|
+
break;
|
|
1079
|
+
case "D":
|
|
1080
|
+
case "F":
|
|
1081
|
+
case "g":
|
|
1082
|
+
throw new RangeError("`D/F/g` (day) patterns are not supported, use `d` instead");
|
|
1083
|
+
case "E":
|
|
1084
|
+
t.weekday = r === 4 ? "long" : r === 5 ? "narrow" : "short";
|
|
1085
|
+
break;
|
|
1086
|
+
case "e":
|
|
1087
|
+
if (r < 4)
|
|
1088
|
+
throw new RangeError("`e..eee` (weekday) patterns are not supported");
|
|
1089
|
+
t.weekday = ["short", "long", "narrow", "short"][r - 4];
|
|
1090
|
+
break;
|
|
1091
|
+
case "c":
|
|
1092
|
+
if (r < 4)
|
|
1093
|
+
throw new RangeError("`c..ccc` (weekday) patterns are not supported");
|
|
1094
|
+
t.weekday = ["short", "long", "narrow", "short"][r - 4];
|
|
1095
|
+
break;
|
|
1096
|
+
case "a":
|
|
1097
|
+
t.hour12 = !0;
|
|
1098
|
+
break;
|
|
1099
|
+
case "b":
|
|
1100
|
+
case "B":
|
|
1101
|
+
throw new RangeError("`b/B` (period) patterns are not supported, use `a` instead");
|
|
1102
|
+
case "h":
|
|
1103
|
+
t.hourCycle = "h12", t.hour = ["numeric", "2-digit"][r - 1];
|
|
1104
|
+
break;
|
|
1105
|
+
case "H":
|
|
1106
|
+
t.hourCycle = "h23", t.hour = ["numeric", "2-digit"][r - 1];
|
|
1107
|
+
break;
|
|
1108
|
+
case "K":
|
|
1109
|
+
t.hourCycle = "h11", t.hour = ["numeric", "2-digit"][r - 1];
|
|
1110
|
+
break;
|
|
1111
|
+
case "k":
|
|
1112
|
+
t.hourCycle = "h24", t.hour = ["numeric", "2-digit"][r - 1];
|
|
1113
|
+
break;
|
|
1114
|
+
case "j":
|
|
1115
|
+
case "J":
|
|
1116
|
+
case "C":
|
|
1117
|
+
throw new RangeError("`j/J/C` (hour) patterns are not supported, use `h/H/K/k` instead");
|
|
1118
|
+
case "m":
|
|
1119
|
+
t.minute = ["numeric", "2-digit"][r - 1];
|
|
1120
|
+
break;
|
|
1121
|
+
case "s":
|
|
1122
|
+
t.second = ["numeric", "2-digit"][r - 1];
|
|
1123
|
+
break;
|
|
1124
|
+
case "S":
|
|
1125
|
+
case "A":
|
|
1126
|
+
throw new RangeError("`S/A` (second) patterns are not supported, use `s` instead");
|
|
1127
|
+
case "z":
|
|
1128
|
+
t.timeZoneName = r < 4 ? "short" : "long";
|
|
1129
|
+
break;
|
|
1130
|
+
case "Z":
|
|
1131
|
+
case "O":
|
|
1132
|
+
case "v":
|
|
1133
|
+
case "V":
|
|
1134
|
+
case "X":
|
|
1135
|
+
case "x":
|
|
1136
|
+
throw new RangeError("`Z/O/v/V/X/x` (timeZone) patterns are not supported, use `z` instead");
|
|
1137
|
+
}
|
|
1138
|
+
return "";
|
|
1139
|
+
}), t;
|
|
1140
|
+
}
|
|
1141
|
+
var Lr = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
|
|
1142
|
+
function Nr(e) {
|
|
1143
|
+
if (e.length === 0)
|
|
1144
|
+
throw new Error("Number skeleton cannot be empty");
|
|
1145
|
+
for (var t = e.split(Lr).filter(function(m) {
|
|
1146
|
+
return m.length > 0;
|
|
1147
|
+
}), n = [], r = 0, i = t; r < i.length; r++) {
|
|
1148
|
+
var s = i[r], o = s.split("/");
|
|
1149
|
+
if (o.length === 0)
|
|
1150
|
+
throw new Error("Invalid number skeleton");
|
|
1151
|
+
for (var a = o[0], l = o.slice(1), u = 0, h = l; u < h.length; u++) {
|
|
1152
|
+
var f = h[u];
|
|
1153
|
+
if (f.length === 0)
|
|
1154
|
+
throw new Error("Invalid number skeleton");
|
|
1155
|
+
}
|
|
1156
|
+
n.push({ stem: a, options: l });
|
|
1157
|
+
}
|
|
1158
|
+
return n;
|
|
1159
|
+
}
|
|
1160
|
+
function Ir(e) {
|
|
1161
|
+
return e.replace(/^(.*?)-/, "");
|
|
1162
|
+
}
|
|
1163
|
+
var dt = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, hn = /^(@+)?(\+|#+)?[rs]?$/g, Mr = /(\*)(0+)|(#+)(0+)|(0+)/g, ln = /^(0+)$/;
|
|
1164
|
+
function pt(e) {
|
|
1165
|
+
var t = {};
|
|
1166
|
+
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(hn, function(n, r, i) {
|
|
1167
|
+
return typeof i != "string" ? (t.minimumSignificantDigits = r.length, t.maximumSignificantDigits = r.length) : i === "+" ? t.minimumSignificantDigits = r.length : r[0] === "#" ? t.maximumSignificantDigits = r.length : (t.minimumSignificantDigits = r.length, t.maximumSignificantDigits = r.length + (typeof i == "string" ? i.length : 0)), "";
|
|
1168
|
+
}), t;
|
|
1169
|
+
}
|
|
1170
|
+
function fn(e) {
|
|
1171
|
+
switch (e) {
|
|
1172
|
+
case "sign-auto":
|
|
1173
|
+
return {
|
|
1174
|
+
signDisplay: "auto"
|
|
1175
|
+
};
|
|
1176
|
+
case "sign-accounting":
|
|
1177
|
+
case "()":
|
|
1178
|
+
return {
|
|
1179
|
+
currencySign: "accounting"
|
|
1180
|
+
};
|
|
1181
|
+
case "sign-always":
|
|
1182
|
+
case "+!":
|
|
1183
|
+
return {
|
|
1184
|
+
signDisplay: "always"
|
|
1185
|
+
};
|
|
1186
|
+
case "sign-accounting-always":
|
|
1187
|
+
case "()!":
|
|
1188
|
+
return {
|
|
1189
|
+
signDisplay: "always",
|
|
1190
|
+
currencySign: "accounting"
|
|
1191
|
+
};
|
|
1192
|
+
case "sign-except-zero":
|
|
1193
|
+
case "+?":
|
|
1194
|
+
return {
|
|
1195
|
+
signDisplay: "exceptZero"
|
|
1196
|
+
};
|
|
1197
|
+
case "sign-accounting-except-zero":
|
|
1198
|
+
case "()?":
|
|
1199
|
+
return {
|
|
1200
|
+
signDisplay: "exceptZero",
|
|
1201
|
+
currencySign: "accounting"
|
|
1202
|
+
};
|
|
1203
|
+
case "sign-never":
|
|
1204
|
+
case "+_":
|
|
1205
|
+
return {
|
|
1206
|
+
signDisplay: "never"
|
|
1207
|
+
};
|
|
1208
|
+
}
|
|
1209
|
+
}
|
|
1210
|
+
function $r(e) {
|
|
1211
|
+
var t;
|
|
1212
|
+
if (e[0] === "E" && e[1] === "E" ? (t = {
|
|
1213
|
+
notation: "engineering"
|
|
1214
|
+
}, e = e.slice(2)) : e[0] === "E" && (t = {
|
|
1215
|
+
notation: "scientific"
|
|
1216
|
+
}, e = e.slice(1)), t) {
|
|
1217
|
+
var n = e.slice(0, 2);
|
|
1218
|
+
if (n === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : n === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !ln.test(e))
|
|
1219
|
+
throw new Error("Malformed concise eng/scientific notation");
|
|
1220
|
+
t.minimumIntegerDigits = e.length;
|
|
1221
|
+
}
|
|
1222
|
+
return t;
|
|
1223
|
+
}
|
|
1224
|
+
function gt(e) {
|
|
1225
|
+
var t = {}, n = fn(e);
|
|
1226
|
+
return n || t;
|
|
1227
|
+
}
|
|
1228
|
+
function Rr(e) {
|
|
1229
|
+
for (var t = {}, n = 0, r = e; n < r.length; n++) {
|
|
1230
|
+
var i = r[n];
|
|
1231
|
+
switch (i.stem) {
|
|
1232
|
+
case "percent":
|
|
1233
|
+
case "%":
|
|
1234
|
+
t.style = "percent";
|
|
1235
|
+
continue;
|
|
1236
|
+
case "%x100":
|
|
1237
|
+
t.style = "percent", t.scale = 100;
|
|
1238
|
+
continue;
|
|
1239
|
+
case "currency":
|
|
1240
|
+
t.style = "currency", t.currency = i.options[0];
|
|
1241
|
+
continue;
|
|
1242
|
+
case "group-off":
|
|
1243
|
+
case ",_":
|
|
1244
|
+
t.useGrouping = !1;
|
|
1245
|
+
continue;
|
|
1246
|
+
case "precision-integer":
|
|
1247
|
+
case ".":
|
|
1248
|
+
t.maximumFractionDigits = 0;
|
|
1249
|
+
continue;
|
|
1250
|
+
case "measure-unit":
|
|
1251
|
+
case "unit":
|
|
1252
|
+
t.style = "unit", t.unit = Ir(i.options[0]);
|
|
1253
|
+
continue;
|
|
1254
|
+
case "compact-short":
|
|
1255
|
+
case "K":
|
|
1256
|
+
t.notation = "compact", t.compactDisplay = "short";
|
|
1257
|
+
continue;
|
|
1258
|
+
case "compact-long":
|
|
1259
|
+
case "KK":
|
|
1260
|
+
t.notation = "compact", t.compactDisplay = "long";
|
|
1261
|
+
continue;
|
|
1262
|
+
case "scientific":
|
|
1263
|
+
t = y(y(y({}, t), { notation: "scientific" }), i.options.reduce(function(l, u) {
|
|
1264
|
+
return y(y({}, l), gt(u));
|
|
1265
|
+
}, {}));
|
|
1266
|
+
continue;
|
|
1267
|
+
case "engineering":
|
|
1268
|
+
t = y(y(y({}, t), { notation: "engineering" }), i.options.reduce(function(l, u) {
|
|
1269
|
+
return y(y({}, l), gt(u));
|
|
1270
|
+
}, {}));
|
|
1271
|
+
continue;
|
|
1272
|
+
case "notation-simple":
|
|
1273
|
+
t.notation = "standard";
|
|
1274
|
+
continue;
|
|
1275
|
+
case "unit-width-narrow":
|
|
1276
|
+
t.currencyDisplay = "narrowSymbol", t.unitDisplay = "narrow";
|
|
1277
|
+
continue;
|
|
1278
|
+
case "unit-width-short":
|
|
1279
|
+
t.currencyDisplay = "code", t.unitDisplay = "short";
|
|
1280
|
+
continue;
|
|
1281
|
+
case "unit-width-full-name":
|
|
1282
|
+
t.currencyDisplay = "name", t.unitDisplay = "long";
|
|
1283
|
+
continue;
|
|
1284
|
+
case "unit-width-iso-code":
|
|
1285
|
+
t.currencyDisplay = "symbol";
|
|
1286
|
+
continue;
|
|
1287
|
+
case "scale":
|
|
1288
|
+
t.scale = parseFloat(i.options[0]);
|
|
1289
|
+
continue;
|
|
1290
|
+
case "rounding-mode-floor":
|
|
1291
|
+
t.roundingMode = "floor";
|
|
1292
|
+
continue;
|
|
1293
|
+
case "rounding-mode-ceiling":
|
|
1294
|
+
t.roundingMode = "ceil";
|
|
1295
|
+
continue;
|
|
1296
|
+
case "rounding-mode-down":
|
|
1297
|
+
t.roundingMode = "trunc";
|
|
1298
|
+
continue;
|
|
1299
|
+
case "rounding-mode-up":
|
|
1300
|
+
t.roundingMode = "expand";
|
|
1301
|
+
continue;
|
|
1302
|
+
case "rounding-mode-half-even":
|
|
1303
|
+
t.roundingMode = "halfEven";
|
|
1304
|
+
continue;
|
|
1305
|
+
case "rounding-mode-half-down":
|
|
1306
|
+
t.roundingMode = "halfTrunc";
|
|
1307
|
+
continue;
|
|
1308
|
+
case "rounding-mode-half-up":
|
|
1309
|
+
t.roundingMode = "halfExpand";
|
|
1310
|
+
continue;
|
|
1311
|
+
case "integer-width":
|
|
1312
|
+
if (i.options.length > 1)
|
|
1313
|
+
throw new RangeError("integer-width stems only accept a single optional option");
|
|
1314
|
+
i.options[0].replace(Mr, function(l, u, h, f, m, d) {
|
|
1315
|
+
if (u)
|
|
1316
|
+
t.minimumIntegerDigits = h.length;
|
|
1317
|
+
else {
|
|
1318
|
+
if (f && m)
|
|
1319
|
+
throw new Error("We currently do not support maximum integer digits");
|
|
1320
|
+
if (d)
|
|
1321
|
+
throw new Error("We currently do not support exact integer digits");
|
|
1322
|
+
}
|
|
1323
|
+
return "";
|
|
1324
|
+
});
|
|
1325
|
+
continue;
|
|
1326
|
+
}
|
|
1327
|
+
if (ln.test(i.stem)) {
|
|
1328
|
+
t.minimumIntegerDigits = i.stem.length;
|
|
1329
|
+
continue;
|
|
1330
|
+
}
|
|
1331
|
+
if (dt.test(i.stem)) {
|
|
1332
|
+
if (i.options.length > 1)
|
|
1333
|
+
throw new RangeError("Fraction-precision stems only accept a single optional option");
|
|
1334
|
+
i.stem.replace(dt, function(l, u, h, f, m, d) {
|
|
1335
|
+
return h === "*" ? t.minimumFractionDigits = u.length : f && f[0] === "#" ? t.maximumFractionDigits = f.length : m && d ? (t.minimumFractionDigits = m.length, t.maximumFractionDigits = m.length + d.length) : (t.minimumFractionDigits = u.length, t.maximumFractionDigits = u.length), "";
|
|
1336
|
+
});
|
|
1337
|
+
var s = i.options[0];
|
|
1338
|
+
s === "w" ? t = y(y({}, t), { trailingZeroDisplay: "stripIfInteger" }) : s && (t = y(y({}, t), pt(s)));
|
|
1339
|
+
continue;
|
|
1340
|
+
}
|
|
1341
|
+
if (hn.test(i.stem)) {
|
|
1342
|
+
t = y(y({}, t), pt(i.stem));
|
|
1343
|
+
continue;
|
|
1344
|
+
}
|
|
1345
|
+
var o = fn(i.stem);
|
|
1346
|
+
o && (t = y(y({}, t), o));
|
|
1347
|
+
var a = $r(i.stem);
|
|
1348
|
+
a && (t = y(y({}, t), a));
|
|
1349
|
+
}
|
|
1350
|
+
return t;
|
|
1351
|
+
}
|
|
1352
|
+
var fe = {
|
|
1353
|
+
"001": [
|
|
1354
|
+
"H",
|
|
1355
|
+
"h"
|
|
1356
|
+
],
|
|
1357
|
+
419: [
|
|
1358
|
+
"h",
|
|
1359
|
+
"H",
|
|
1360
|
+
"hB",
|
|
1361
|
+
"hb"
|
|
1362
|
+
],
|
|
1363
|
+
AC: [
|
|
1364
|
+
"H",
|
|
1365
|
+
"h",
|
|
1366
|
+
"hb",
|
|
1367
|
+
"hB"
|
|
1368
|
+
],
|
|
1369
|
+
AD: [
|
|
1370
|
+
"H",
|
|
1371
|
+
"hB"
|
|
1372
|
+
],
|
|
1373
|
+
AE: [
|
|
1374
|
+
"h",
|
|
1375
|
+
"hB",
|
|
1376
|
+
"hb",
|
|
1377
|
+
"H"
|
|
1378
|
+
],
|
|
1379
|
+
AF: [
|
|
1380
|
+
"H",
|
|
1381
|
+
"hb",
|
|
1382
|
+
"hB",
|
|
1383
|
+
"h"
|
|
1384
|
+
],
|
|
1385
|
+
AG: [
|
|
1386
|
+
"h",
|
|
1387
|
+
"hb",
|
|
1388
|
+
"H",
|
|
1389
|
+
"hB"
|
|
1390
|
+
],
|
|
1391
|
+
AI: [
|
|
1392
|
+
"H",
|
|
1393
|
+
"h",
|
|
1394
|
+
"hb",
|
|
1395
|
+
"hB"
|
|
1396
|
+
],
|
|
1397
|
+
AL: [
|
|
1398
|
+
"h",
|
|
1399
|
+
"H",
|
|
1400
|
+
"hB"
|
|
1401
|
+
],
|
|
1402
|
+
AM: [
|
|
1403
|
+
"H",
|
|
1404
|
+
"hB"
|
|
1405
|
+
],
|
|
1406
|
+
AO: [
|
|
1407
|
+
"H",
|
|
1408
|
+
"hB"
|
|
1409
|
+
],
|
|
1410
|
+
AR: [
|
|
1411
|
+
"h",
|
|
1412
|
+
"H",
|
|
1413
|
+
"hB",
|
|
1414
|
+
"hb"
|
|
1415
|
+
],
|
|
1416
|
+
AS: [
|
|
1417
|
+
"h",
|
|
1418
|
+
"H"
|
|
1419
|
+
],
|
|
1420
|
+
AT: [
|
|
1421
|
+
"H",
|
|
1422
|
+
"hB"
|
|
1423
|
+
],
|
|
1424
|
+
AU: [
|
|
1425
|
+
"h",
|
|
1426
|
+
"hb",
|
|
1427
|
+
"H",
|
|
1428
|
+
"hB"
|
|
1429
|
+
],
|
|
1430
|
+
AW: [
|
|
1431
|
+
"H",
|
|
1432
|
+
"hB"
|
|
1433
|
+
],
|
|
1434
|
+
AX: [
|
|
1435
|
+
"H"
|
|
1436
|
+
],
|
|
1437
|
+
AZ: [
|
|
1438
|
+
"H",
|
|
1439
|
+
"hB",
|
|
1440
|
+
"h"
|
|
1441
|
+
],
|
|
1442
|
+
BA: [
|
|
1443
|
+
"H",
|
|
1444
|
+
"hB",
|
|
1445
|
+
"h"
|
|
1446
|
+
],
|
|
1447
|
+
BB: [
|
|
1448
|
+
"h",
|
|
1449
|
+
"hb",
|
|
1450
|
+
"H",
|
|
1451
|
+
"hB"
|
|
1452
|
+
],
|
|
1453
|
+
BD: [
|
|
1454
|
+
"h",
|
|
1455
|
+
"hB",
|
|
1456
|
+
"H"
|
|
1457
|
+
],
|
|
1458
|
+
BE: [
|
|
1459
|
+
"H",
|
|
1460
|
+
"hB"
|
|
1461
|
+
],
|
|
1462
|
+
BF: [
|
|
1463
|
+
"H",
|
|
1464
|
+
"hB"
|
|
1465
|
+
],
|
|
1466
|
+
BG: [
|
|
1467
|
+
"H",
|
|
1468
|
+
"hB",
|
|
1469
|
+
"h"
|
|
1470
|
+
],
|
|
1471
|
+
BH: [
|
|
1472
|
+
"h",
|
|
1473
|
+
"hB",
|
|
1474
|
+
"hb",
|
|
1475
|
+
"H"
|
|
1476
|
+
],
|
|
1477
|
+
BI: [
|
|
1478
|
+
"H",
|
|
1479
|
+
"h"
|
|
1480
|
+
],
|
|
1481
|
+
BJ: [
|
|
1482
|
+
"H",
|
|
1483
|
+
"hB"
|
|
1484
|
+
],
|
|
1485
|
+
BL: [
|
|
1486
|
+
"H",
|
|
1487
|
+
"hB"
|
|
1488
|
+
],
|
|
1489
|
+
BM: [
|
|
1490
|
+
"h",
|
|
1491
|
+
"hb",
|
|
1492
|
+
"H",
|
|
1493
|
+
"hB"
|
|
1494
|
+
],
|
|
1495
|
+
BN: [
|
|
1496
|
+
"hb",
|
|
1497
|
+
"hB",
|
|
1498
|
+
"h",
|
|
1499
|
+
"H"
|
|
1500
|
+
],
|
|
1501
|
+
BO: [
|
|
1502
|
+
"h",
|
|
1503
|
+
"H",
|
|
1504
|
+
"hB",
|
|
1505
|
+
"hb"
|
|
1506
|
+
],
|
|
1507
|
+
BQ: [
|
|
1508
|
+
"H"
|
|
1509
|
+
],
|
|
1510
|
+
BR: [
|
|
1511
|
+
"H",
|
|
1512
|
+
"hB"
|
|
1513
|
+
],
|
|
1514
|
+
BS: [
|
|
1515
|
+
"h",
|
|
1516
|
+
"hb",
|
|
1517
|
+
"H",
|
|
1518
|
+
"hB"
|
|
1519
|
+
],
|
|
1520
|
+
BT: [
|
|
1521
|
+
"h",
|
|
1522
|
+
"H"
|
|
1523
|
+
],
|
|
1524
|
+
BW: [
|
|
1525
|
+
"H",
|
|
1526
|
+
"h",
|
|
1527
|
+
"hb",
|
|
1528
|
+
"hB"
|
|
1529
|
+
],
|
|
1530
|
+
BY: [
|
|
1531
|
+
"H",
|
|
1532
|
+
"h"
|
|
1533
|
+
],
|
|
1534
|
+
BZ: [
|
|
1535
|
+
"H",
|
|
1536
|
+
"h",
|
|
1537
|
+
"hb",
|
|
1538
|
+
"hB"
|
|
1539
|
+
],
|
|
1540
|
+
CA: [
|
|
1541
|
+
"h",
|
|
1542
|
+
"hb",
|
|
1543
|
+
"H",
|
|
1544
|
+
"hB"
|
|
1545
|
+
],
|
|
1546
|
+
CC: [
|
|
1547
|
+
"H",
|
|
1548
|
+
"h",
|
|
1549
|
+
"hb",
|
|
1550
|
+
"hB"
|
|
1551
|
+
],
|
|
1552
|
+
CD: [
|
|
1553
|
+
"hB",
|
|
1554
|
+
"H"
|
|
1555
|
+
],
|
|
1556
|
+
CF: [
|
|
1557
|
+
"H",
|
|
1558
|
+
"h",
|
|
1559
|
+
"hB"
|
|
1560
|
+
],
|
|
1561
|
+
CG: [
|
|
1562
|
+
"H",
|
|
1563
|
+
"hB"
|
|
1564
|
+
],
|
|
1565
|
+
CH: [
|
|
1566
|
+
"H",
|
|
1567
|
+
"hB",
|
|
1568
|
+
"h"
|
|
1569
|
+
],
|
|
1570
|
+
CI: [
|
|
1571
|
+
"H",
|
|
1572
|
+
"hB"
|
|
1573
|
+
],
|
|
1574
|
+
CK: [
|
|
1575
|
+
"H",
|
|
1576
|
+
"h",
|
|
1577
|
+
"hb",
|
|
1578
|
+
"hB"
|
|
1579
|
+
],
|
|
1580
|
+
CL: [
|
|
1581
|
+
"h",
|
|
1582
|
+
"H",
|
|
1583
|
+
"hB",
|
|
1584
|
+
"hb"
|
|
1585
|
+
],
|
|
1586
|
+
CM: [
|
|
1587
|
+
"H",
|
|
1588
|
+
"h",
|
|
1589
|
+
"hB"
|
|
1590
|
+
],
|
|
1591
|
+
CN: [
|
|
1592
|
+
"H",
|
|
1593
|
+
"hB",
|
|
1594
|
+
"hb",
|
|
1595
|
+
"h"
|
|
1596
|
+
],
|
|
1597
|
+
CO: [
|
|
1598
|
+
"h",
|
|
1599
|
+
"H",
|
|
1600
|
+
"hB",
|
|
1601
|
+
"hb"
|
|
1602
|
+
],
|
|
1603
|
+
CP: [
|
|
1604
|
+
"H"
|
|
1605
|
+
],
|
|
1606
|
+
CR: [
|
|
1607
|
+
"h",
|
|
1608
|
+
"H",
|
|
1609
|
+
"hB",
|
|
1610
|
+
"hb"
|
|
1611
|
+
],
|
|
1612
|
+
CU: [
|
|
1613
|
+
"h",
|
|
1614
|
+
"H",
|
|
1615
|
+
"hB",
|
|
1616
|
+
"hb"
|
|
1617
|
+
],
|
|
1618
|
+
CV: [
|
|
1619
|
+
"H",
|
|
1620
|
+
"hB"
|
|
1621
|
+
],
|
|
1622
|
+
CW: [
|
|
1623
|
+
"H",
|
|
1624
|
+
"hB"
|
|
1625
|
+
],
|
|
1626
|
+
CX: [
|
|
1627
|
+
"H",
|
|
1628
|
+
"h",
|
|
1629
|
+
"hb",
|
|
1630
|
+
"hB"
|
|
1631
|
+
],
|
|
1632
|
+
CY: [
|
|
1633
|
+
"h",
|
|
1634
|
+
"H",
|
|
1635
|
+
"hb",
|
|
1636
|
+
"hB"
|
|
1637
|
+
],
|
|
1638
|
+
CZ: [
|
|
1639
|
+
"H"
|
|
1640
|
+
],
|
|
1641
|
+
DE: [
|
|
1642
|
+
"H",
|
|
1643
|
+
"hB"
|
|
1644
|
+
],
|
|
1645
|
+
DG: [
|
|
1646
|
+
"H",
|
|
1647
|
+
"h",
|
|
1648
|
+
"hb",
|
|
1649
|
+
"hB"
|
|
1650
|
+
],
|
|
1651
|
+
DJ: [
|
|
1652
|
+
"h",
|
|
1653
|
+
"H"
|
|
1654
|
+
],
|
|
1655
|
+
DK: [
|
|
1656
|
+
"H"
|
|
1657
|
+
],
|
|
1658
|
+
DM: [
|
|
1659
|
+
"h",
|
|
1660
|
+
"hb",
|
|
1661
|
+
"H",
|
|
1662
|
+
"hB"
|
|
1663
|
+
],
|
|
1664
|
+
DO: [
|
|
1665
|
+
"h",
|
|
1666
|
+
"H",
|
|
1667
|
+
"hB",
|
|
1668
|
+
"hb"
|
|
1669
|
+
],
|
|
1670
|
+
DZ: [
|
|
1671
|
+
"h",
|
|
1672
|
+
"hB",
|
|
1673
|
+
"hb",
|
|
1674
|
+
"H"
|
|
1675
|
+
],
|
|
1676
|
+
EA: [
|
|
1677
|
+
"H",
|
|
1678
|
+
"h",
|
|
1679
|
+
"hB",
|
|
1680
|
+
"hb"
|
|
1681
|
+
],
|
|
1682
|
+
EC: [
|
|
1683
|
+
"h",
|
|
1684
|
+
"H",
|
|
1685
|
+
"hB",
|
|
1686
|
+
"hb"
|
|
1687
|
+
],
|
|
1688
|
+
EE: [
|
|
1689
|
+
"H",
|
|
1690
|
+
"hB"
|
|
1691
|
+
],
|
|
1692
|
+
EG: [
|
|
1693
|
+
"h",
|
|
1694
|
+
"hB",
|
|
1695
|
+
"hb",
|
|
1696
|
+
"H"
|
|
1697
|
+
],
|
|
1698
|
+
EH: [
|
|
1699
|
+
"h",
|
|
1700
|
+
"hB",
|
|
1701
|
+
"hb",
|
|
1702
|
+
"H"
|
|
1703
|
+
],
|
|
1704
|
+
ER: [
|
|
1705
|
+
"h",
|
|
1706
|
+
"H"
|
|
1707
|
+
],
|
|
1708
|
+
ES: [
|
|
1709
|
+
"H",
|
|
1710
|
+
"hB",
|
|
1711
|
+
"h",
|
|
1712
|
+
"hb"
|
|
1713
|
+
],
|
|
1714
|
+
ET: [
|
|
1715
|
+
"hB",
|
|
1716
|
+
"hb",
|
|
1717
|
+
"h",
|
|
1718
|
+
"H"
|
|
1719
|
+
],
|
|
1720
|
+
FI: [
|
|
1721
|
+
"H"
|
|
1722
|
+
],
|
|
1723
|
+
FJ: [
|
|
1724
|
+
"h",
|
|
1725
|
+
"hb",
|
|
1726
|
+
"H",
|
|
1727
|
+
"hB"
|
|
1728
|
+
],
|
|
1729
|
+
FK: [
|
|
1730
|
+
"H",
|
|
1731
|
+
"h",
|
|
1732
|
+
"hb",
|
|
1733
|
+
"hB"
|
|
1734
|
+
],
|
|
1735
|
+
FM: [
|
|
1736
|
+
"h",
|
|
1737
|
+
"hb",
|
|
1738
|
+
"H",
|
|
1739
|
+
"hB"
|
|
1740
|
+
],
|
|
1741
|
+
FO: [
|
|
1742
|
+
"H",
|
|
1743
|
+
"h"
|
|
1744
|
+
],
|
|
1745
|
+
FR: [
|
|
1746
|
+
"H",
|
|
1747
|
+
"hB"
|
|
1748
|
+
],
|
|
1749
|
+
GA: [
|
|
1750
|
+
"H",
|
|
1751
|
+
"hB"
|
|
1752
|
+
],
|
|
1753
|
+
GB: [
|
|
1754
|
+
"H",
|
|
1755
|
+
"h",
|
|
1756
|
+
"hb",
|
|
1757
|
+
"hB"
|
|
1758
|
+
],
|
|
1759
|
+
GD: [
|
|
1760
|
+
"h",
|
|
1761
|
+
"hb",
|
|
1762
|
+
"H",
|
|
1763
|
+
"hB"
|
|
1764
|
+
],
|
|
1765
|
+
GE: [
|
|
1766
|
+
"H",
|
|
1767
|
+
"hB",
|
|
1768
|
+
"h"
|
|
1769
|
+
],
|
|
1770
|
+
GF: [
|
|
1771
|
+
"H",
|
|
1772
|
+
"hB"
|
|
1773
|
+
],
|
|
1774
|
+
GG: [
|
|
1775
|
+
"H",
|
|
1776
|
+
"h",
|
|
1777
|
+
"hb",
|
|
1778
|
+
"hB"
|
|
1779
|
+
],
|
|
1780
|
+
GH: [
|
|
1781
|
+
"h",
|
|
1782
|
+
"H"
|
|
1783
|
+
],
|
|
1784
|
+
GI: [
|
|
1785
|
+
"H",
|
|
1786
|
+
"h",
|
|
1787
|
+
"hb",
|
|
1788
|
+
"hB"
|
|
1789
|
+
],
|
|
1790
|
+
GL: [
|
|
1791
|
+
"H",
|
|
1792
|
+
"h"
|
|
1793
|
+
],
|
|
1794
|
+
GM: [
|
|
1795
|
+
"h",
|
|
1796
|
+
"hb",
|
|
1797
|
+
"H",
|
|
1798
|
+
"hB"
|
|
1799
|
+
],
|
|
1800
|
+
GN: [
|
|
1801
|
+
"H",
|
|
1802
|
+
"hB"
|
|
1803
|
+
],
|
|
1804
|
+
GP: [
|
|
1805
|
+
"H",
|
|
1806
|
+
"hB"
|
|
1807
|
+
],
|
|
1808
|
+
GQ: [
|
|
1809
|
+
"H",
|
|
1810
|
+
"hB",
|
|
1811
|
+
"h",
|
|
1812
|
+
"hb"
|
|
1813
|
+
],
|
|
1814
|
+
GR: [
|
|
1815
|
+
"h",
|
|
1816
|
+
"H",
|
|
1817
|
+
"hb",
|
|
1818
|
+
"hB"
|
|
1819
|
+
],
|
|
1820
|
+
GT: [
|
|
1821
|
+
"h",
|
|
1822
|
+
"H",
|
|
1823
|
+
"hB",
|
|
1824
|
+
"hb"
|
|
1825
|
+
],
|
|
1826
|
+
GU: [
|
|
1827
|
+
"h",
|
|
1828
|
+
"hb",
|
|
1829
|
+
"H",
|
|
1830
|
+
"hB"
|
|
1831
|
+
],
|
|
1832
|
+
GW: [
|
|
1833
|
+
"H",
|
|
1834
|
+
"hB"
|
|
1835
|
+
],
|
|
1836
|
+
GY: [
|
|
1837
|
+
"h",
|
|
1838
|
+
"hb",
|
|
1839
|
+
"H",
|
|
1840
|
+
"hB"
|
|
1841
|
+
],
|
|
1842
|
+
HK: [
|
|
1843
|
+
"h",
|
|
1844
|
+
"hB",
|
|
1845
|
+
"hb",
|
|
1846
|
+
"H"
|
|
1847
|
+
],
|
|
1848
|
+
HN: [
|
|
1849
|
+
"h",
|
|
1850
|
+
"H",
|
|
1851
|
+
"hB",
|
|
1852
|
+
"hb"
|
|
1853
|
+
],
|
|
1854
|
+
HR: [
|
|
1855
|
+
"H",
|
|
1856
|
+
"hB"
|
|
1857
|
+
],
|
|
1858
|
+
HU: [
|
|
1859
|
+
"H",
|
|
1860
|
+
"h"
|
|
1861
|
+
],
|
|
1862
|
+
IC: [
|
|
1863
|
+
"H",
|
|
1864
|
+
"h",
|
|
1865
|
+
"hB",
|
|
1866
|
+
"hb"
|
|
1867
|
+
],
|
|
1868
|
+
ID: [
|
|
1869
|
+
"H"
|
|
1870
|
+
],
|
|
1871
|
+
IE: [
|
|
1872
|
+
"H",
|
|
1873
|
+
"h",
|
|
1874
|
+
"hb",
|
|
1875
|
+
"hB"
|
|
1876
|
+
],
|
|
1877
|
+
IL: [
|
|
1878
|
+
"H",
|
|
1879
|
+
"hB"
|
|
1880
|
+
],
|
|
1881
|
+
IM: [
|
|
1882
|
+
"H",
|
|
1883
|
+
"h",
|
|
1884
|
+
"hb",
|
|
1885
|
+
"hB"
|
|
1886
|
+
],
|
|
1887
|
+
IN: [
|
|
1888
|
+
"h",
|
|
1889
|
+
"H"
|
|
1890
|
+
],
|
|
1891
|
+
IO: [
|
|
1892
|
+
"H",
|
|
1893
|
+
"h",
|
|
1894
|
+
"hb",
|
|
1895
|
+
"hB"
|
|
1896
|
+
],
|
|
1897
|
+
IQ: [
|
|
1898
|
+
"h",
|
|
1899
|
+
"hB",
|
|
1900
|
+
"hb",
|
|
1901
|
+
"H"
|
|
1902
|
+
],
|
|
1903
|
+
IR: [
|
|
1904
|
+
"hB",
|
|
1905
|
+
"H"
|
|
1906
|
+
],
|
|
1907
|
+
IS: [
|
|
1908
|
+
"H"
|
|
1909
|
+
],
|
|
1910
|
+
IT: [
|
|
1911
|
+
"H",
|
|
1912
|
+
"hB"
|
|
1913
|
+
],
|
|
1914
|
+
JE: [
|
|
1915
|
+
"H",
|
|
1916
|
+
"h",
|
|
1917
|
+
"hb",
|
|
1918
|
+
"hB"
|
|
1919
|
+
],
|
|
1920
|
+
JM: [
|
|
1921
|
+
"h",
|
|
1922
|
+
"hb",
|
|
1923
|
+
"H",
|
|
1924
|
+
"hB"
|
|
1925
|
+
],
|
|
1926
|
+
JO: [
|
|
1927
|
+
"h",
|
|
1928
|
+
"hB",
|
|
1929
|
+
"hb",
|
|
1930
|
+
"H"
|
|
1931
|
+
],
|
|
1932
|
+
JP: [
|
|
1933
|
+
"H",
|
|
1934
|
+
"K",
|
|
1935
|
+
"h"
|
|
1936
|
+
],
|
|
1937
|
+
KE: [
|
|
1938
|
+
"hB",
|
|
1939
|
+
"hb",
|
|
1940
|
+
"H",
|
|
1941
|
+
"h"
|
|
1942
|
+
],
|
|
1943
|
+
KG: [
|
|
1944
|
+
"H",
|
|
1945
|
+
"h",
|
|
1946
|
+
"hB",
|
|
1947
|
+
"hb"
|
|
1948
|
+
],
|
|
1949
|
+
KH: [
|
|
1950
|
+
"hB",
|
|
1951
|
+
"h",
|
|
1952
|
+
"H",
|
|
1953
|
+
"hb"
|
|
1954
|
+
],
|
|
1955
|
+
KI: [
|
|
1956
|
+
"h",
|
|
1957
|
+
"hb",
|
|
1958
|
+
"H",
|
|
1959
|
+
"hB"
|
|
1960
|
+
],
|
|
1961
|
+
KM: [
|
|
1962
|
+
"H",
|
|
1963
|
+
"h",
|
|
1964
|
+
"hB",
|
|
1965
|
+
"hb"
|
|
1966
|
+
],
|
|
1967
|
+
KN: [
|
|
1968
|
+
"h",
|
|
1969
|
+
"hb",
|
|
1970
|
+
"H",
|
|
1971
|
+
"hB"
|
|
1972
|
+
],
|
|
1973
|
+
KP: [
|
|
1974
|
+
"h",
|
|
1975
|
+
"H",
|
|
1976
|
+
"hB",
|
|
1977
|
+
"hb"
|
|
1978
|
+
],
|
|
1979
|
+
KR: [
|
|
1980
|
+
"h",
|
|
1981
|
+
"H",
|
|
1982
|
+
"hB",
|
|
1983
|
+
"hb"
|
|
1984
|
+
],
|
|
1985
|
+
KW: [
|
|
1986
|
+
"h",
|
|
1987
|
+
"hB",
|
|
1988
|
+
"hb",
|
|
1989
|
+
"H"
|
|
1990
|
+
],
|
|
1991
|
+
KY: [
|
|
1992
|
+
"h",
|
|
1993
|
+
"hb",
|
|
1994
|
+
"H",
|
|
1995
|
+
"hB"
|
|
1996
|
+
],
|
|
1997
|
+
KZ: [
|
|
1998
|
+
"H",
|
|
1999
|
+
"hB"
|
|
2000
|
+
],
|
|
2001
|
+
LA: [
|
|
2002
|
+
"H",
|
|
2003
|
+
"hb",
|
|
2004
|
+
"hB",
|
|
2005
|
+
"h"
|
|
2006
|
+
],
|
|
2007
|
+
LB: [
|
|
2008
|
+
"h",
|
|
2009
|
+
"hB",
|
|
2010
|
+
"hb",
|
|
2011
|
+
"H"
|
|
2012
|
+
],
|
|
2013
|
+
LC: [
|
|
2014
|
+
"h",
|
|
2015
|
+
"hb",
|
|
2016
|
+
"H",
|
|
2017
|
+
"hB"
|
|
2018
|
+
],
|
|
2019
|
+
LI: [
|
|
2020
|
+
"H",
|
|
2021
|
+
"hB",
|
|
2022
|
+
"h"
|
|
2023
|
+
],
|
|
2024
|
+
LK: [
|
|
2025
|
+
"H",
|
|
2026
|
+
"h",
|
|
2027
|
+
"hB",
|
|
2028
|
+
"hb"
|
|
2029
|
+
],
|
|
2030
|
+
LR: [
|
|
2031
|
+
"h",
|
|
2032
|
+
"hb",
|
|
2033
|
+
"H",
|
|
2034
|
+
"hB"
|
|
2035
|
+
],
|
|
2036
|
+
LS: [
|
|
2037
|
+
"h",
|
|
2038
|
+
"H"
|
|
2039
|
+
],
|
|
2040
|
+
LT: [
|
|
2041
|
+
"H",
|
|
2042
|
+
"h",
|
|
2043
|
+
"hb",
|
|
2044
|
+
"hB"
|
|
2045
|
+
],
|
|
2046
|
+
LU: [
|
|
2047
|
+
"H",
|
|
2048
|
+
"h",
|
|
2049
|
+
"hB"
|
|
2050
|
+
],
|
|
2051
|
+
LV: [
|
|
2052
|
+
"H",
|
|
2053
|
+
"hB",
|
|
2054
|
+
"hb",
|
|
2055
|
+
"h"
|
|
2056
|
+
],
|
|
2057
|
+
LY: [
|
|
2058
|
+
"h",
|
|
2059
|
+
"hB",
|
|
2060
|
+
"hb",
|
|
2061
|
+
"H"
|
|
2062
|
+
],
|
|
2063
|
+
MA: [
|
|
2064
|
+
"H",
|
|
2065
|
+
"h",
|
|
2066
|
+
"hB",
|
|
2067
|
+
"hb"
|
|
2068
|
+
],
|
|
2069
|
+
MC: [
|
|
2070
|
+
"H",
|
|
2071
|
+
"hB"
|
|
2072
|
+
],
|
|
2073
|
+
MD: [
|
|
2074
|
+
"H",
|
|
2075
|
+
"hB"
|
|
2076
|
+
],
|
|
2077
|
+
ME: [
|
|
2078
|
+
"H",
|
|
2079
|
+
"hB",
|
|
2080
|
+
"h"
|
|
2081
|
+
],
|
|
2082
|
+
MF: [
|
|
2083
|
+
"H",
|
|
2084
|
+
"hB"
|
|
2085
|
+
],
|
|
2086
|
+
MG: [
|
|
2087
|
+
"H",
|
|
2088
|
+
"h"
|
|
2089
|
+
],
|
|
2090
|
+
MH: [
|
|
2091
|
+
"h",
|
|
2092
|
+
"hb",
|
|
2093
|
+
"H",
|
|
2094
|
+
"hB"
|
|
2095
|
+
],
|
|
2096
|
+
MK: [
|
|
2097
|
+
"H",
|
|
2098
|
+
"h",
|
|
2099
|
+
"hb",
|
|
2100
|
+
"hB"
|
|
2101
|
+
],
|
|
2102
|
+
ML: [
|
|
2103
|
+
"H"
|
|
2104
|
+
],
|
|
2105
|
+
MM: [
|
|
2106
|
+
"hB",
|
|
2107
|
+
"hb",
|
|
2108
|
+
"H",
|
|
2109
|
+
"h"
|
|
2110
|
+
],
|
|
2111
|
+
MN: [
|
|
2112
|
+
"H",
|
|
2113
|
+
"h",
|
|
2114
|
+
"hb",
|
|
2115
|
+
"hB"
|
|
2116
|
+
],
|
|
2117
|
+
MO: [
|
|
2118
|
+
"h",
|
|
2119
|
+
"hB",
|
|
2120
|
+
"hb",
|
|
2121
|
+
"H"
|
|
2122
|
+
],
|
|
2123
|
+
MP: [
|
|
2124
|
+
"h",
|
|
2125
|
+
"hb",
|
|
2126
|
+
"H",
|
|
2127
|
+
"hB"
|
|
2128
|
+
],
|
|
2129
|
+
MQ: [
|
|
2130
|
+
"H",
|
|
2131
|
+
"hB"
|
|
2132
|
+
],
|
|
2133
|
+
MR: [
|
|
2134
|
+
"h",
|
|
2135
|
+
"hB",
|
|
2136
|
+
"hb",
|
|
2137
|
+
"H"
|
|
2138
|
+
],
|
|
2139
|
+
MS: [
|
|
2140
|
+
"H",
|
|
2141
|
+
"h",
|
|
2142
|
+
"hb",
|
|
2143
|
+
"hB"
|
|
2144
|
+
],
|
|
2145
|
+
MT: [
|
|
2146
|
+
"H",
|
|
2147
|
+
"h"
|
|
2148
|
+
],
|
|
2149
|
+
MU: [
|
|
2150
|
+
"H",
|
|
2151
|
+
"h"
|
|
2152
|
+
],
|
|
2153
|
+
MV: [
|
|
2154
|
+
"H",
|
|
2155
|
+
"h"
|
|
2156
|
+
],
|
|
2157
|
+
MW: [
|
|
2158
|
+
"h",
|
|
2159
|
+
"hb",
|
|
2160
|
+
"H",
|
|
2161
|
+
"hB"
|
|
2162
|
+
],
|
|
2163
|
+
MX: [
|
|
2164
|
+
"h",
|
|
2165
|
+
"H",
|
|
2166
|
+
"hB",
|
|
2167
|
+
"hb"
|
|
2168
|
+
],
|
|
2169
|
+
MY: [
|
|
2170
|
+
"hb",
|
|
2171
|
+
"hB",
|
|
2172
|
+
"h",
|
|
2173
|
+
"H"
|
|
2174
|
+
],
|
|
2175
|
+
MZ: [
|
|
2176
|
+
"H",
|
|
2177
|
+
"hB"
|
|
2178
|
+
],
|
|
2179
|
+
NA: [
|
|
2180
|
+
"h",
|
|
2181
|
+
"H",
|
|
2182
|
+
"hB",
|
|
2183
|
+
"hb"
|
|
2184
|
+
],
|
|
2185
|
+
NC: [
|
|
2186
|
+
"H",
|
|
2187
|
+
"hB"
|
|
2188
|
+
],
|
|
2189
|
+
NE: [
|
|
2190
|
+
"H"
|
|
2191
|
+
],
|
|
2192
|
+
NF: [
|
|
2193
|
+
"H",
|
|
2194
|
+
"h",
|
|
2195
|
+
"hb",
|
|
2196
|
+
"hB"
|
|
2197
|
+
],
|
|
2198
|
+
NG: [
|
|
2199
|
+
"H",
|
|
2200
|
+
"h",
|
|
2201
|
+
"hb",
|
|
2202
|
+
"hB"
|
|
2203
|
+
],
|
|
2204
|
+
NI: [
|
|
2205
|
+
"h",
|
|
2206
|
+
"H",
|
|
2207
|
+
"hB",
|
|
2208
|
+
"hb"
|
|
2209
|
+
],
|
|
2210
|
+
NL: [
|
|
2211
|
+
"H",
|
|
2212
|
+
"hB"
|
|
2213
|
+
],
|
|
2214
|
+
NO: [
|
|
2215
|
+
"H",
|
|
2216
|
+
"h"
|
|
2217
|
+
],
|
|
2218
|
+
NP: [
|
|
2219
|
+
"H",
|
|
2220
|
+
"h",
|
|
2221
|
+
"hB"
|
|
2222
|
+
],
|
|
2223
|
+
NR: [
|
|
2224
|
+
"H",
|
|
2225
|
+
"h",
|
|
2226
|
+
"hb",
|
|
2227
|
+
"hB"
|
|
2228
|
+
],
|
|
2229
|
+
NU: [
|
|
2230
|
+
"H",
|
|
2231
|
+
"h",
|
|
2232
|
+
"hb",
|
|
2233
|
+
"hB"
|
|
2234
|
+
],
|
|
2235
|
+
NZ: [
|
|
2236
|
+
"h",
|
|
2237
|
+
"hb",
|
|
2238
|
+
"H",
|
|
2239
|
+
"hB"
|
|
2240
|
+
],
|
|
2241
|
+
OM: [
|
|
2242
|
+
"h",
|
|
2243
|
+
"hB",
|
|
2244
|
+
"hb",
|
|
2245
|
+
"H"
|
|
2246
|
+
],
|
|
2247
|
+
PA: [
|
|
2248
|
+
"h",
|
|
2249
|
+
"H",
|
|
2250
|
+
"hB",
|
|
2251
|
+
"hb"
|
|
2252
|
+
],
|
|
2253
|
+
PE: [
|
|
2254
|
+
"h",
|
|
2255
|
+
"H",
|
|
2256
|
+
"hB",
|
|
2257
|
+
"hb"
|
|
2258
|
+
],
|
|
2259
|
+
PF: [
|
|
2260
|
+
"H",
|
|
2261
|
+
"h",
|
|
2262
|
+
"hB"
|
|
2263
|
+
],
|
|
2264
|
+
PG: [
|
|
2265
|
+
"h",
|
|
2266
|
+
"H"
|
|
2267
|
+
],
|
|
2268
|
+
PH: [
|
|
2269
|
+
"h",
|
|
2270
|
+
"hB",
|
|
2271
|
+
"hb",
|
|
2272
|
+
"H"
|
|
2273
|
+
],
|
|
2274
|
+
PK: [
|
|
2275
|
+
"h",
|
|
2276
|
+
"hB",
|
|
2277
|
+
"H"
|
|
2278
|
+
],
|
|
2279
|
+
PL: [
|
|
2280
|
+
"H",
|
|
2281
|
+
"h"
|
|
2282
|
+
],
|
|
2283
|
+
PM: [
|
|
2284
|
+
"H",
|
|
2285
|
+
"hB"
|
|
2286
|
+
],
|
|
2287
|
+
PN: [
|
|
2288
|
+
"H",
|
|
2289
|
+
"h",
|
|
2290
|
+
"hb",
|
|
2291
|
+
"hB"
|
|
2292
|
+
],
|
|
2293
|
+
PR: [
|
|
2294
|
+
"h",
|
|
2295
|
+
"H",
|
|
2296
|
+
"hB",
|
|
2297
|
+
"hb"
|
|
2298
|
+
],
|
|
2299
|
+
PS: [
|
|
2300
|
+
"h",
|
|
2301
|
+
"hB",
|
|
2302
|
+
"hb",
|
|
2303
|
+
"H"
|
|
2304
|
+
],
|
|
2305
|
+
PT: [
|
|
2306
|
+
"H",
|
|
2307
|
+
"hB"
|
|
2308
|
+
],
|
|
2309
|
+
PW: [
|
|
2310
|
+
"h",
|
|
2311
|
+
"H"
|
|
2312
|
+
],
|
|
2313
|
+
PY: [
|
|
2314
|
+
"h",
|
|
2315
|
+
"H",
|
|
2316
|
+
"hB",
|
|
2317
|
+
"hb"
|
|
2318
|
+
],
|
|
2319
|
+
QA: [
|
|
2320
|
+
"h",
|
|
2321
|
+
"hB",
|
|
2322
|
+
"hb",
|
|
2323
|
+
"H"
|
|
2324
|
+
],
|
|
2325
|
+
RE: [
|
|
2326
|
+
"H",
|
|
2327
|
+
"hB"
|
|
2328
|
+
],
|
|
2329
|
+
RO: [
|
|
2330
|
+
"H",
|
|
2331
|
+
"hB"
|
|
2332
|
+
],
|
|
2333
|
+
RS: [
|
|
2334
|
+
"H",
|
|
2335
|
+
"hB",
|
|
2336
|
+
"h"
|
|
2337
|
+
],
|
|
2338
|
+
RU: [
|
|
2339
|
+
"H"
|
|
2340
|
+
],
|
|
2341
|
+
RW: [
|
|
2342
|
+
"H",
|
|
2343
|
+
"h"
|
|
2344
|
+
],
|
|
2345
|
+
SA: [
|
|
2346
|
+
"h",
|
|
2347
|
+
"hB",
|
|
2348
|
+
"hb",
|
|
2349
|
+
"H"
|
|
2350
|
+
],
|
|
2351
|
+
SB: [
|
|
2352
|
+
"h",
|
|
2353
|
+
"hb",
|
|
2354
|
+
"H",
|
|
2355
|
+
"hB"
|
|
2356
|
+
],
|
|
2357
|
+
SC: [
|
|
2358
|
+
"H",
|
|
2359
|
+
"h",
|
|
2360
|
+
"hB"
|
|
2361
|
+
],
|
|
2362
|
+
SD: [
|
|
2363
|
+
"h",
|
|
2364
|
+
"hB",
|
|
2365
|
+
"hb",
|
|
2366
|
+
"H"
|
|
2367
|
+
],
|
|
2368
|
+
SE: [
|
|
2369
|
+
"H"
|
|
2370
|
+
],
|
|
2371
|
+
SG: [
|
|
2372
|
+
"h",
|
|
2373
|
+
"hb",
|
|
2374
|
+
"H",
|
|
2375
|
+
"hB"
|
|
2376
|
+
],
|
|
2377
|
+
SH: [
|
|
2378
|
+
"H",
|
|
2379
|
+
"h",
|
|
2380
|
+
"hb",
|
|
2381
|
+
"hB"
|
|
2382
|
+
],
|
|
2383
|
+
SI: [
|
|
2384
|
+
"H",
|
|
2385
|
+
"hB"
|
|
2386
|
+
],
|
|
2387
|
+
SJ: [
|
|
2388
|
+
"H"
|
|
2389
|
+
],
|
|
2390
|
+
SK: [
|
|
2391
|
+
"H"
|
|
2392
|
+
],
|
|
2393
|
+
SL: [
|
|
2394
|
+
"h",
|
|
2395
|
+
"hb",
|
|
2396
|
+
"H",
|
|
2397
|
+
"hB"
|
|
2398
|
+
],
|
|
2399
|
+
SM: [
|
|
2400
|
+
"H",
|
|
2401
|
+
"h",
|
|
2402
|
+
"hB"
|
|
2403
|
+
],
|
|
2404
|
+
SN: [
|
|
2405
|
+
"H",
|
|
2406
|
+
"h",
|
|
2407
|
+
"hB"
|
|
2408
|
+
],
|
|
2409
|
+
SO: [
|
|
2410
|
+
"h",
|
|
2411
|
+
"H"
|
|
2412
|
+
],
|
|
2413
|
+
SR: [
|
|
2414
|
+
"H",
|
|
2415
|
+
"hB"
|
|
2416
|
+
],
|
|
2417
|
+
SS: [
|
|
2418
|
+
"h",
|
|
2419
|
+
"hb",
|
|
2420
|
+
"H",
|
|
2421
|
+
"hB"
|
|
2422
|
+
],
|
|
2423
|
+
ST: [
|
|
2424
|
+
"H",
|
|
2425
|
+
"hB"
|
|
2426
|
+
],
|
|
2427
|
+
SV: [
|
|
2428
|
+
"h",
|
|
2429
|
+
"H",
|
|
2430
|
+
"hB",
|
|
2431
|
+
"hb"
|
|
2432
|
+
],
|
|
2433
|
+
SX: [
|
|
2434
|
+
"H",
|
|
2435
|
+
"h",
|
|
2436
|
+
"hb",
|
|
2437
|
+
"hB"
|
|
2438
|
+
],
|
|
2439
|
+
SY: [
|
|
2440
|
+
"h",
|
|
2441
|
+
"hB",
|
|
2442
|
+
"hb",
|
|
2443
|
+
"H"
|
|
2444
|
+
],
|
|
2445
|
+
SZ: [
|
|
2446
|
+
"h",
|
|
2447
|
+
"hb",
|
|
2448
|
+
"H",
|
|
2449
|
+
"hB"
|
|
2450
|
+
],
|
|
2451
|
+
TA: [
|
|
2452
|
+
"H",
|
|
2453
|
+
"h",
|
|
2454
|
+
"hb",
|
|
2455
|
+
"hB"
|
|
2456
|
+
],
|
|
2457
|
+
TC: [
|
|
2458
|
+
"h",
|
|
2459
|
+
"hb",
|
|
2460
|
+
"H",
|
|
2461
|
+
"hB"
|
|
2462
|
+
],
|
|
2463
|
+
TD: [
|
|
2464
|
+
"h",
|
|
2465
|
+
"H",
|
|
2466
|
+
"hB"
|
|
2467
|
+
],
|
|
2468
|
+
TF: [
|
|
2469
|
+
"H",
|
|
2470
|
+
"h",
|
|
2471
|
+
"hB"
|
|
2472
|
+
],
|
|
2473
|
+
TG: [
|
|
2474
|
+
"H",
|
|
2475
|
+
"hB"
|
|
2476
|
+
],
|
|
2477
|
+
TH: [
|
|
2478
|
+
"H",
|
|
2479
|
+
"h"
|
|
2480
|
+
],
|
|
2481
|
+
TJ: [
|
|
2482
|
+
"H",
|
|
2483
|
+
"h"
|
|
2484
|
+
],
|
|
2485
|
+
TL: [
|
|
2486
|
+
"H",
|
|
2487
|
+
"hB",
|
|
2488
|
+
"hb",
|
|
2489
|
+
"h"
|
|
2490
|
+
],
|
|
2491
|
+
TM: [
|
|
2492
|
+
"H",
|
|
2493
|
+
"h"
|
|
2494
|
+
],
|
|
2495
|
+
TN: [
|
|
2496
|
+
"h",
|
|
2497
|
+
"hB",
|
|
2498
|
+
"hb",
|
|
2499
|
+
"H"
|
|
2500
|
+
],
|
|
2501
|
+
TO: [
|
|
2502
|
+
"h",
|
|
2503
|
+
"H"
|
|
2504
|
+
],
|
|
2505
|
+
TR: [
|
|
2506
|
+
"H",
|
|
2507
|
+
"hB"
|
|
2508
|
+
],
|
|
2509
|
+
TT: [
|
|
2510
|
+
"h",
|
|
2511
|
+
"hb",
|
|
2512
|
+
"H",
|
|
2513
|
+
"hB"
|
|
2514
|
+
],
|
|
2515
|
+
TW: [
|
|
2516
|
+
"hB",
|
|
2517
|
+
"hb",
|
|
2518
|
+
"h",
|
|
2519
|
+
"H"
|
|
2520
|
+
],
|
|
2521
|
+
TZ: [
|
|
2522
|
+
"hB",
|
|
2523
|
+
"hb",
|
|
2524
|
+
"H",
|
|
2525
|
+
"h"
|
|
2526
|
+
],
|
|
2527
|
+
UA: [
|
|
2528
|
+
"H",
|
|
2529
|
+
"hB",
|
|
2530
|
+
"h"
|
|
2531
|
+
],
|
|
2532
|
+
UG: [
|
|
2533
|
+
"hB",
|
|
2534
|
+
"hb",
|
|
2535
|
+
"H",
|
|
2536
|
+
"h"
|
|
2537
|
+
],
|
|
2538
|
+
UM: [
|
|
2539
|
+
"h",
|
|
2540
|
+
"hb",
|
|
2541
|
+
"H",
|
|
2542
|
+
"hB"
|
|
2543
|
+
],
|
|
2544
|
+
US: [
|
|
2545
|
+
"h",
|
|
2546
|
+
"hb",
|
|
2547
|
+
"H",
|
|
2548
|
+
"hB"
|
|
2549
|
+
],
|
|
2550
|
+
UY: [
|
|
2551
|
+
"h",
|
|
2552
|
+
"H",
|
|
2553
|
+
"hB",
|
|
2554
|
+
"hb"
|
|
2555
|
+
],
|
|
2556
|
+
UZ: [
|
|
2557
|
+
"H",
|
|
2558
|
+
"hB",
|
|
2559
|
+
"h"
|
|
2560
|
+
],
|
|
2561
|
+
VA: [
|
|
2562
|
+
"H",
|
|
2563
|
+
"h",
|
|
2564
|
+
"hB"
|
|
2565
|
+
],
|
|
2566
|
+
VC: [
|
|
2567
|
+
"h",
|
|
2568
|
+
"hb",
|
|
2569
|
+
"H",
|
|
2570
|
+
"hB"
|
|
2571
|
+
],
|
|
2572
|
+
VE: [
|
|
2573
|
+
"h",
|
|
2574
|
+
"H",
|
|
2575
|
+
"hB",
|
|
2576
|
+
"hb"
|
|
2577
|
+
],
|
|
2578
|
+
VG: [
|
|
2579
|
+
"h",
|
|
2580
|
+
"hb",
|
|
2581
|
+
"H",
|
|
2582
|
+
"hB"
|
|
2583
|
+
],
|
|
2584
|
+
VI: [
|
|
2585
|
+
"h",
|
|
2586
|
+
"hb",
|
|
2587
|
+
"H",
|
|
2588
|
+
"hB"
|
|
2589
|
+
],
|
|
2590
|
+
VN: [
|
|
2591
|
+
"H",
|
|
2592
|
+
"h"
|
|
2593
|
+
],
|
|
2594
|
+
VU: [
|
|
2595
|
+
"h",
|
|
2596
|
+
"H"
|
|
2597
|
+
],
|
|
2598
|
+
WF: [
|
|
2599
|
+
"H",
|
|
2600
|
+
"hB"
|
|
2601
|
+
],
|
|
2602
|
+
WS: [
|
|
2603
|
+
"h",
|
|
2604
|
+
"H"
|
|
2605
|
+
],
|
|
2606
|
+
XK: [
|
|
2607
|
+
"H",
|
|
2608
|
+
"hB",
|
|
2609
|
+
"h"
|
|
2610
|
+
],
|
|
2611
|
+
YE: [
|
|
2612
|
+
"h",
|
|
2613
|
+
"hB",
|
|
2614
|
+
"hb",
|
|
2615
|
+
"H"
|
|
2616
|
+
],
|
|
2617
|
+
YT: [
|
|
2618
|
+
"H",
|
|
2619
|
+
"hB"
|
|
2620
|
+
],
|
|
2621
|
+
ZA: [
|
|
2622
|
+
"H",
|
|
2623
|
+
"h",
|
|
2624
|
+
"hb",
|
|
2625
|
+
"hB"
|
|
2626
|
+
],
|
|
2627
|
+
ZM: [
|
|
2628
|
+
"h",
|
|
2629
|
+
"hb",
|
|
2630
|
+
"H",
|
|
2631
|
+
"hB"
|
|
2632
|
+
],
|
|
2633
|
+
ZW: [
|
|
2634
|
+
"H",
|
|
2635
|
+
"h"
|
|
2636
|
+
],
|
|
2637
|
+
"af-ZA": [
|
|
2638
|
+
"H",
|
|
2639
|
+
"h",
|
|
2640
|
+
"hB",
|
|
2641
|
+
"hb"
|
|
2642
|
+
],
|
|
2643
|
+
"ar-001": [
|
|
2644
|
+
"h",
|
|
2645
|
+
"hB",
|
|
2646
|
+
"hb",
|
|
2647
|
+
"H"
|
|
2648
|
+
],
|
|
2649
|
+
"ca-ES": [
|
|
2650
|
+
"H",
|
|
2651
|
+
"h",
|
|
2652
|
+
"hB"
|
|
2653
|
+
],
|
|
2654
|
+
"en-001": [
|
|
2655
|
+
"h",
|
|
2656
|
+
"hb",
|
|
2657
|
+
"H",
|
|
2658
|
+
"hB"
|
|
2659
|
+
],
|
|
2660
|
+
"en-HK": [
|
|
2661
|
+
"h",
|
|
2662
|
+
"hb",
|
|
2663
|
+
"H",
|
|
2664
|
+
"hB"
|
|
2665
|
+
],
|
|
2666
|
+
"en-IL": [
|
|
2667
|
+
"H",
|
|
2668
|
+
"h",
|
|
2669
|
+
"hb",
|
|
2670
|
+
"hB"
|
|
2671
|
+
],
|
|
2672
|
+
"en-MY": [
|
|
2673
|
+
"h",
|
|
2674
|
+
"hb",
|
|
2675
|
+
"H",
|
|
2676
|
+
"hB"
|
|
2677
|
+
],
|
|
2678
|
+
"es-BR": [
|
|
2679
|
+
"H",
|
|
2680
|
+
"h",
|
|
2681
|
+
"hB",
|
|
2682
|
+
"hb"
|
|
2683
|
+
],
|
|
2684
|
+
"es-ES": [
|
|
2685
|
+
"H",
|
|
2686
|
+
"h",
|
|
2687
|
+
"hB",
|
|
2688
|
+
"hb"
|
|
2689
|
+
],
|
|
2690
|
+
"es-GQ": [
|
|
2691
|
+
"H",
|
|
2692
|
+
"h",
|
|
2693
|
+
"hB",
|
|
2694
|
+
"hb"
|
|
2695
|
+
],
|
|
2696
|
+
"fr-CA": [
|
|
2697
|
+
"H",
|
|
2698
|
+
"h",
|
|
2699
|
+
"hB"
|
|
2700
|
+
],
|
|
2701
|
+
"gl-ES": [
|
|
2702
|
+
"H",
|
|
2703
|
+
"h",
|
|
2704
|
+
"hB"
|
|
2705
|
+
],
|
|
2706
|
+
"gu-IN": [
|
|
2707
|
+
"hB",
|
|
2708
|
+
"hb",
|
|
2709
|
+
"h",
|
|
2710
|
+
"H"
|
|
2711
|
+
],
|
|
2712
|
+
"hi-IN": [
|
|
2713
|
+
"hB",
|
|
2714
|
+
"h",
|
|
2715
|
+
"H"
|
|
2716
|
+
],
|
|
2717
|
+
"it-CH": [
|
|
2718
|
+
"H",
|
|
2719
|
+
"h",
|
|
2720
|
+
"hB"
|
|
2721
|
+
],
|
|
2722
|
+
"it-IT": [
|
|
2723
|
+
"H",
|
|
2724
|
+
"h",
|
|
2725
|
+
"hB"
|
|
2726
|
+
],
|
|
2727
|
+
"kn-IN": [
|
|
2728
|
+
"hB",
|
|
2729
|
+
"h",
|
|
2730
|
+
"H"
|
|
2731
|
+
],
|
|
2732
|
+
"ml-IN": [
|
|
2733
|
+
"hB",
|
|
2734
|
+
"h",
|
|
2735
|
+
"H"
|
|
2736
|
+
],
|
|
2737
|
+
"mr-IN": [
|
|
2738
|
+
"hB",
|
|
2739
|
+
"hb",
|
|
2740
|
+
"h",
|
|
2741
|
+
"H"
|
|
2742
|
+
],
|
|
2743
|
+
"pa-IN": [
|
|
2744
|
+
"hB",
|
|
2745
|
+
"hb",
|
|
2746
|
+
"h",
|
|
2747
|
+
"H"
|
|
2748
|
+
],
|
|
2749
|
+
"ta-IN": [
|
|
2750
|
+
"hB",
|
|
2751
|
+
"h",
|
|
2752
|
+
"hb",
|
|
2753
|
+
"H"
|
|
2754
|
+
],
|
|
2755
|
+
"te-IN": [
|
|
2756
|
+
"hB",
|
|
2757
|
+
"h",
|
|
2758
|
+
"H"
|
|
2759
|
+
],
|
|
2760
|
+
"zu-ZA": [
|
|
2761
|
+
"H",
|
|
2762
|
+
"hB",
|
|
2763
|
+
"hb",
|
|
2764
|
+
"h"
|
|
2765
|
+
]
|
|
2766
|
+
};
|
|
2767
|
+
function Ur(e, t) {
|
|
2768
|
+
for (var n = "", r = 0; r < e.length; r++) {
|
|
2769
|
+
var i = e.charAt(r);
|
|
2770
|
+
if (i === "j") {
|
|
2771
|
+
for (var s = 0; r + 1 < e.length && e.charAt(r + 1) === i; )
|
|
2772
|
+
s++, r++;
|
|
2773
|
+
var o = 1 + (s & 1), a = s < 2 ? 1 : 3 + (s >> 1), l = "a", u = Dr(t);
|
|
2774
|
+
for ((u == "H" || u == "k") && (a = 0); a-- > 0; )
|
|
2775
|
+
n += l;
|
|
2776
|
+
for (; o-- > 0; )
|
|
2777
|
+
n = u + n;
|
|
2778
|
+
} else
|
|
2779
|
+
i === "J" ? n += "H" : n += i;
|
|
2780
|
+
}
|
|
2781
|
+
return n;
|
|
2782
|
+
}
|
|
2783
|
+
function Dr(e) {
|
|
2784
|
+
var t = e.hourCycle;
|
|
2785
|
+
if (t === void 0 && // @ts-ignore hourCycle(s) is not identified yet
|
|
2786
|
+
e.hourCycles && // @ts-ignore
|
|
2787
|
+
e.hourCycles.length && (t = e.hourCycles[0]), t)
|
|
2788
|
+
switch (t) {
|
|
2789
|
+
case "h24":
|
|
2790
|
+
return "k";
|
|
2791
|
+
case "h23":
|
|
2792
|
+
return "H";
|
|
2793
|
+
case "h12":
|
|
2794
|
+
return "h";
|
|
2795
|
+
case "h11":
|
|
2796
|
+
return "K";
|
|
2797
|
+
default:
|
|
2798
|
+
throw new Error("Invalid hourCycle");
|
|
2799
|
+
}
|
|
2800
|
+
var n = e.language, r;
|
|
2801
|
+
n !== "root" && (r = e.maximize().region);
|
|
2802
|
+
var i = fe[r || ""] || fe[n || ""] || fe["".concat(n, "-001")] || fe["001"];
|
|
2803
|
+
return i[0];
|
|
2804
|
+
}
|
|
2805
|
+
var Ue, Gr = new RegExp("^".concat(un.source, "*")), Fr = new RegExp("".concat(un.source, "*$"));
|
|
2806
|
+
function b(e, t) {
|
|
2807
|
+
return { start: e, end: t };
|
|
2808
|
+
}
|
|
2809
|
+
var jr = !!String.prototype.startsWith && "_a".startsWith("a", 1), kr = !!String.fromCodePoint, Vr = !!Object.fromEntries, Xr = !!String.prototype.codePointAt, zr = !!String.prototype.trimStart, Wr = !!String.prototype.trimEnd, Zr = !!Number.isSafeInteger, Qr = Zr ? Number.isSafeInteger : function(e) {
|
|
2810
|
+
return typeof e == "number" && isFinite(e) && Math.floor(e) === e && Math.abs(e) <= 9007199254740991;
|
|
2811
|
+
}, ze = !0;
|
|
2812
|
+
try {
|
|
2813
|
+
var qr = mn("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
2814
|
+
ze = ((Ue = qr.exec("a")) === null || Ue === void 0 ? void 0 : Ue[0]) === "a";
|
|
2815
|
+
} catch (e) {
|
|
2816
|
+
ze = !1;
|
|
2817
|
+
}
|
|
2818
|
+
var bt = jr ? (
|
|
2819
|
+
// Native
|
|
2820
|
+
function(t, n, r) {
|
|
2821
|
+
return t.startsWith(n, r);
|
|
2822
|
+
}
|
|
2823
|
+
) : (
|
|
2824
|
+
// For IE11
|
|
2825
|
+
function(t, n, r) {
|
|
2826
|
+
return t.slice(r, r + n.length) === n;
|
|
2827
|
+
}
|
|
2828
|
+
), We = kr ? String.fromCodePoint : (
|
|
2829
|
+
// IE11
|
|
2830
|
+
function() {
|
|
2831
|
+
for (var t = [], n = 0; n < arguments.length; n++)
|
|
2832
|
+
t[n] = arguments[n];
|
|
2833
|
+
for (var r = "", i = t.length, s = 0, o; i > s; ) {
|
|
2834
|
+
if (o = t[s++], o > 1114111)
|
|
2835
|
+
throw RangeError(o + " is not a valid code point");
|
|
2836
|
+
r += o < 65536 ? String.fromCharCode(o) : String.fromCharCode(((o -= 65536) >> 10) + 55296, o % 1024 + 56320);
|
|
2837
|
+
}
|
|
2838
|
+
return r;
|
|
2839
|
+
}
|
|
2840
|
+
), _t = (
|
|
2841
|
+
// native
|
|
2842
|
+
Vr ? Object.fromEntries : (
|
|
2843
|
+
// Ponyfill
|
|
2844
|
+
function(t) {
|
|
2845
|
+
for (var n = {}, r = 0, i = t; r < i.length; r++) {
|
|
2846
|
+
var s = i[r], o = s[0], a = s[1];
|
|
2847
|
+
n[o] = a;
|
|
2848
|
+
}
|
|
2849
|
+
return n;
|
|
2850
|
+
}
|
|
2851
|
+
)
|
|
2852
|
+
), cn = Xr ? (
|
|
2853
|
+
// Native
|
|
2854
|
+
function(t, n) {
|
|
2855
|
+
return t.codePointAt(n);
|
|
2856
|
+
}
|
|
2857
|
+
) : (
|
|
2858
|
+
// IE 11
|
|
2859
|
+
function(t, n) {
|
|
2860
|
+
var r = t.length;
|
|
2861
|
+
if (!(n < 0 || n >= r)) {
|
|
2862
|
+
var i = t.charCodeAt(n), s;
|
|
2863
|
+
return i < 55296 || i > 56319 || n + 1 === r || (s = t.charCodeAt(n + 1)) < 56320 || s > 57343 ? i : (i - 55296 << 10) + (s - 56320) + 65536;
|
|
2864
|
+
}
|
|
2865
|
+
}
|
|
2866
|
+
), Jr = zr ? (
|
|
2867
|
+
// Native
|
|
2868
|
+
function(t) {
|
|
2869
|
+
return t.trimStart();
|
|
2870
|
+
}
|
|
2871
|
+
) : (
|
|
2872
|
+
// Ponyfill
|
|
2873
|
+
function(t) {
|
|
2874
|
+
return t.replace(Gr, "");
|
|
2875
|
+
}
|
|
2876
|
+
), Yr = Wr ? (
|
|
2877
|
+
// Native
|
|
2878
|
+
function(t) {
|
|
2879
|
+
return t.trimEnd();
|
|
2880
|
+
}
|
|
2881
|
+
) : (
|
|
2882
|
+
// Ponyfill
|
|
2883
|
+
function(t) {
|
|
2884
|
+
return t.replace(Fr, "");
|
|
2885
|
+
}
|
|
2886
|
+
);
|
|
2887
|
+
function mn(e, t) {
|
|
2888
|
+
return new RegExp(e, t);
|
|
2889
|
+
}
|
|
2890
|
+
var Ze;
|
|
2891
|
+
if (ze) {
|
|
2892
|
+
var yt = mn("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
2893
|
+
Ze = function(t, n) {
|
|
2894
|
+
var r;
|
|
2895
|
+
yt.lastIndex = n;
|
|
2896
|
+
var i = yt.exec(t);
|
|
2897
|
+
return (r = i[1]) !== null && r !== void 0 ? r : "";
|
|
2898
|
+
};
|
|
2899
|
+
} else
|
|
2900
|
+
Ze = function(t, n) {
|
|
2901
|
+
for (var r = []; ; ) {
|
|
2902
|
+
var i = cn(t, n);
|
|
2903
|
+
if (i === void 0 || dn(i) || ni(i))
|
|
2904
|
+
break;
|
|
2905
|
+
r.push(i), n += i >= 65536 ? 2 : 1;
|
|
2906
|
+
}
|
|
2907
|
+
return We.apply(void 0, r);
|
|
2908
|
+
};
|
|
2909
|
+
var Kr = (
|
|
2910
|
+
/** @class */
|
|
2911
|
+
function() {
|
|
2912
|
+
function e(t, n) {
|
|
2913
|
+
n === void 0 && (n = {}), this.message = t, this.position = { offset: 0, line: 1, column: 1 }, this.ignoreTag = !!n.ignoreTag, this.locale = n.locale, this.requiresOtherClause = !!n.requiresOtherClause, this.shouldParseSkeletons = !!n.shouldParseSkeletons;
|
|
2914
|
+
}
|
|
2915
|
+
return e.prototype.parse = function() {
|
|
2916
|
+
if (this.offset() !== 0)
|
|
2917
|
+
throw Error("parser can only be used once");
|
|
2918
|
+
return this.parseMessage(0, "", !1);
|
|
2919
|
+
}, e.prototype.parseMessage = function(t, n, r) {
|
|
2920
|
+
for (var i = []; !this.isEOF(); ) {
|
|
2921
|
+
var s = this.char();
|
|
2922
|
+
if (s === 123) {
|
|
2923
|
+
var o = this.parseArgument(t, r);
|
|
2924
|
+
if (o.err)
|
|
2925
|
+
return o;
|
|
2926
|
+
i.push(o.val);
|
|
2927
|
+
} else {
|
|
2928
|
+
if (s === 125 && t > 0)
|
|
2929
|
+
break;
|
|
2930
|
+
if (s === 35 && (n === "plural" || n === "selectordinal")) {
|
|
2931
|
+
var a = this.clonePosition();
|
|
2932
|
+
this.bump(), i.push({
|
|
2933
|
+
type: x.pound,
|
|
2934
|
+
location: b(a, this.clonePosition())
|
|
2935
|
+
});
|
|
2936
|
+
} else if (s === 60 && !this.ignoreTag && this.peek() === 47) {
|
|
2937
|
+
if (r)
|
|
2938
|
+
break;
|
|
2939
|
+
return this.error(g.UNMATCHED_CLOSING_TAG, b(this.clonePosition(), this.clonePosition()));
|
|
2940
|
+
} else if (s === 60 && !this.ignoreTag && Qe(this.peek() || 0)) {
|
|
2941
|
+
var o = this.parseTag(t, n);
|
|
2942
|
+
if (o.err)
|
|
2943
|
+
return o;
|
|
2944
|
+
i.push(o.val);
|
|
2945
|
+
} else {
|
|
2946
|
+
var o = this.parseLiteral(t, n);
|
|
2947
|
+
if (o.err)
|
|
2948
|
+
return o;
|
|
2949
|
+
i.push(o.val);
|
|
2950
|
+
}
|
|
2951
|
+
}
|
|
2952
|
+
}
|
|
2953
|
+
return { val: i, err: null };
|
|
2954
|
+
}, e.prototype.parseTag = function(t, n) {
|
|
2955
|
+
var r = this.clonePosition();
|
|
2956
|
+
this.bump();
|
|
2957
|
+
var i = this.parseTagName();
|
|
2958
|
+
if (this.bumpSpace(), this.bumpIf("/>"))
|
|
2959
|
+
return {
|
|
2960
|
+
val: {
|
|
2961
|
+
type: x.literal,
|
|
2962
|
+
value: "<".concat(i, "/>"),
|
|
2963
|
+
location: b(r, this.clonePosition())
|
|
2964
|
+
},
|
|
2965
|
+
err: null
|
|
2966
|
+
};
|
|
2967
|
+
if (this.bumpIf(">")) {
|
|
2968
|
+
var s = this.parseMessage(t + 1, n, !0);
|
|
2969
|
+
if (s.err)
|
|
2970
|
+
return s;
|
|
2971
|
+
var o = s.val, a = this.clonePosition();
|
|
2972
|
+
if (this.bumpIf("</")) {
|
|
2973
|
+
if (this.isEOF() || !Qe(this.char()))
|
|
2974
|
+
return this.error(g.INVALID_TAG, b(a, this.clonePosition()));
|
|
2975
|
+
var l = this.clonePosition(), u = this.parseTagName();
|
|
2976
|
+
return i !== u ? this.error(g.UNMATCHED_CLOSING_TAG, b(l, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
|
|
2977
|
+
val: {
|
|
2978
|
+
type: x.tag,
|
|
2979
|
+
value: i,
|
|
2980
|
+
children: o,
|
|
2981
|
+
location: b(r, this.clonePosition())
|
|
2982
|
+
},
|
|
2983
|
+
err: null
|
|
2984
|
+
} : this.error(g.INVALID_TAG, b(a, this.clonePosition())));
|
|
2985
|
+
} else
|
|
2986
|
+
return this.error(g.UNCLOSED_TAG, b(r, this.clonePosition()));
|
|
2987
|
+
} else
|
|
2988
|
+
return this.error(g.INVALID_TAG, b(r, this.clonePosition()));
|
|
2989
|
+
}, e.prototype.parseTagName = function() {
|
|
2990
|
+
var t = this.offset();
|
|
2991
|
+
for (this.bump(); !this.isEOF() && ti(this.char()); )
|
|
2992
|
+
this.bump();
|
|
2993
|
+
return this.message.slice(t, this.offset());
|
|
2994
|
+
}, e.prototype.parseLiteral = function(t, n) {
|
|
2995
|
+
for (var r = this.clonePosition(), i = ""; ; ) {
|
|
2996
|
+
var s = this.tryParseQuote(n);
|
|
2997
|
+
if (s) {
|
|
2998
|
+
i += s;
|
|
2999
|
+
continue;
|
|
3000
|
+
}
|
|
3001
|
+
var o = this.tryParseUnquoted(t, n);
|
|
3002
|
+
if (o) {
|
|
3003
|
+
i += o;
|
|
3004
|
+
continue;
|
|
3005
|
+
}
|
|
3006
|
+
var a = this.tryParseLeftAngleBracket();
|
|
3007
|
+
if (a) {
|
|
3008
|
+
i += a;
|
|
3009
|
+
continue;
|
|
3010
|
+
}
|
|
3011
|
+
break;
|
|
3012
|
+
}
|
|
3013
|
+
var l = b(r, this.clonePosition());
|
|
3014
|
+
return {
|
|
3015
|
+
val: { type: x.literal, value: i, location: l },
|
|
3016
|
+
err: null
|
|
3017
|
+
};
|
|
3018
|
+
}, e.prototype.tryParseLeftAngleBracket = function() {
|
|
3019
|
+
return !this.isEOF() && this.char() === 60 && (this.ignoreTag || // If at the opening tag or closing tag position, bail.
|
|
3020
|
+
!ei(this.peek() || 0)) ? (this.bump(), "<") : null;
|
|
3021
|
+
}, e.prototype.tryParseQuote = function(t) {
|
|
3022
|
+
if (this.isEOF() || this.char() !== 39)
|
|
3023
|
+
return null;
|
|
3024
|
+
switch (this.peek()) {
|
|
3025
|
+
case 39:
|
|
3026
|
+
return this.bump(), this.bump(), "'";
|
|
3027
|
+
case 123:
|
|
3028
|
+
case 60:
|
|
3029
|
+
case 62:
|
|
3030
|
+
case 125:
|
|
3031
|
+
break;
|
|
3032
|
+
case 35:
|
|
3033
|
+
if (t === "plural" || t === "selectordinal")
|
|
3034
|
+
break;
|
|
3035
|
+
return null;
|
|
3036
|
+
default:
|
|
3037
|
+
return null;
|
|
3038
|
+
}
|
|
3039
|
+
this.bump();
|
|
3040
|
+
var n = [this.char()];
|
|
3041
|
+
for (this.bump(); !this.isEOF(); ) {
|
|
3042
|
+
var r = this.char();
|
|
3043
|
+
if (r === 39)
|
|
3044
|
+
if (this.peek() === 39)
|
|
3045
|
+
n.push(39), this.bump();
|
|
3046
|
+
else {
|
|
3047
|
+
this.bump();
|
|
3048
|
+
break;
|
|
3049
|
+
}
|
|
3050
|
+
else
|
|
3051
|
+
n.push(r);
|
|
3052
|
+
this.bump();
|
|
3053
|
+
}
|
|
3054
|
+
return We.apply(void 0, n);
|
|
3055
|
+
}, e.prototype.tryParseUnquoted = function(t, n) {
|
|
3056
|
+
if (this.isEOF())
|
|
3057
|
+
return null;
|
|
3058
|
+
var r = this.char();
|
|
3059
|
+
return r === 60 || r === 123 || r === 35 && (n === "plural" || n === "selectordinal") || r === 125 && t > 0 ? null : (this.bump(), We(r));
|
|
3060
|
+
}, e.prototype.parseArgument = function(t, n) {
|
|
3061
|
+
var r = this.clonePosition();
|
|
3062
|
+
if (this.bump(), this.bumpSpace(), this.isEOF())
|
|
3063
|
+
return this.error(g.EXPECT_ARGUMENT_CLOSING_BRACE, b(r, this.clonePosition()));
|
|
3064
|
+
if (this.char() === 125)
|
|
3065
|
+
return this.bump(), this.error(g.EMPTY_ARGUMENT, b(r, this.clonePosition()));
|
|
3066
|
+
var i = this.parseIdentifierIfPossible().value;
|
|
3067
|
+
if (!i)
|
|
3068
|
+
return this.error(g.MALFORMED_ARGUMENT, b(r, this.clonePosition()));
|
|
3069
|
+
if (this.bumpSpace(), this.isEOF())
|
|
3070
|
+
return this.error(g.EXPECT_ARGUMENT_CLOSING_BRACE, b(r, this.clonePosition()));
|
|
3071
|
+
switch (this.char()) {
|
|
3072
|
+
case 125:
|
|
3073
|
+
return this.bump(), {
|
|
3074
|
+
val: {
|
|
3075
|
+
type: x.argument,
|
|
3076
|
+
// value does not include the opening and closing braces.
|
|
3077
|
+
value: i,
|
|
3078
|
+
location: b(r, this.clonePosition())
|
|
3079
|
+
},
|
|
3080
|
+
err: null
|
|
3081
|
+
};
|
|
3082
|
+
case 44:
|
|
3083
|
+
return this.bump(), this.bumpSpace(), this.isEOF() ? this.error(g.EXPECT_ARGUMENT_CLOSING_BRACE, b(r, this.clonePosition())) : this.parseArgumentOptions(t, n, i, r);
|
|
3084
|
+
default:
|
|
3085
|
+
return this.error(g.MALFORMED_ARGUMENT, b(r, this.clonePosition()));
|
|
3086
|
+
}
|
|
3087
|
+
}, e.prototype.parseIdentifierIfPossible = function() {
|
|
3088
|
+
var t = this.clonePosition(), n = this.offset(), r = Ze(this.message, n), i = n + r.length;
|
|
3089
|
+
this.bumpTo(i);
|
|
3090
|
+
var s = this.clonePosition(), o = b(t, s);
|
|
3091
|
+
return { value: r, location: o };
|
|
3092
|
+
}, e.prototype.parseArgumentOptions = function(t, n, r, i) {
|
|
3093
|
+
var s, o = this.clonePosition(), a = this.parseIdentifierIfPossible().value, l = this.clonePosition();
|
|
3094
|
+
switch (a) {
|
|
3095
|
+
case "":
|
|
3096
|
+
return this.error(g.EXPECT_ARGUMENT_TYPE, b(o, l));
|
|
3097
|
+
case "number":
|
|
3098
|
+
case "date":
|
|
3099
|
+
case "time": {
|
|
3100
|
+
this.bumpSpace();
|
|
3101
|
+
var u = null;
|
|
3102
|
+
if (this.bumpIf(",")) {
|
|
3103
|
+
this.bumpSpace();
|
|
3104
|
+
var h = this.clonePosition(), f = this.parseSimpleArgStyleIfPossible();
|
|
3105
|
+
if (f.err)
|
|
3106
|
+
return f;
|
|
3107
|
+
var m = Yr(f.val);
|
|
3108
|
+
if (m.length === 0)
|
|
3109
|
+
return this.error(g.EXPECT_ARGUMENT_STYLE, b(this.clonePosition(), this.clonePosition()));
|
|
3110
|
+
var d = b(h, this.clonePosition());
|
|
3111
|
+
u = { style: m, styleLocation: d };
|
|
3112
|
+
}
|
|
3113
|
+
var c = this.tryParseArgumentClose(i);
|
|
3114
|
+
if (c.err)
|
|
3115
|
+
return c;
|
|
3116
|
+
var p = b(i, this.clonePosition());
|
|
3117
|
+
if (u && bt(u == null ? void 0 : u.style, "::", 0)) {
|
|
3118
|
+
var E = Jr(u.style.slice(2));
|
|
3119
|
+
if (a === "number") {
|
|
3120
|
+
var f = this.parseNumberSkeletonFromString(E, u.styleLocation);
|
|
3121
|
+
return f.err ? f : {
|
|
3122
|
+
val: { type: x.number, value: r, location: p, style: f.val },
|
|
3123
|
+
err: null
|
|
3124
|
+
};
|
|
3125
|
+
} else {
|
|
3126
|
+
if (E.length === 0)
|
|
3127
|
+
return this.error(g.EXPECT_DATE_TIME_SKELETON, p);
|
|
3128
|
+
var v = E;
|
|
3129
|
+
this.locale && (v = Ur(E, this.locale));
|
|
3130
|
+
var m = {
|
|
3131
|
+
type: z.dateTime,
|
|
3132
|
+
pattern: v,
|
|
3133
|
+
location: u.styleLocation,
|
|
3134
|
+
parsedOptions: this.shouldParseSkeletons ? Cr(v) : {}
|
|
3135
|
+
}, T = a === "date" ? x.date : x.time;
|
|
3136
|
+
return {
|
|
3137
|
+
val: { type: T, value: r, location: p, style: m },
|
|
3138
|
+
err: null
|
|
3139
|
+
};
|
|
3140
|
+
}
|
|
3141
|
+
}
|
|
3142
|
+
return {
|
|
3143
|
+
val: {
|
|
3144
|
+
type: a === "number" ? x.number : a === "date" ? x.date : x.time,
|
|
3145
|
+
value: r,
|
|
3146
|
+
location: p,
|
|
3147
|
+
style: (s = u == null ? void 0 : u.style) !== null && s !== void 0 ? s : null
|
|
3148
|
+
},
|
|
3149
|
+
err: null
|
|
3150
|
+
};
|
|
3151
|
+
}
|
|
3152
|
+
case "plural":
|
|
3153
|
+
case "selectordinal":
|
|
3154
|
+
case "select": {
|
|
3155
|
+
var H = this.clonePosition();
|
|
3156
|
+
if (this.bumpSpace(), !this.bumpIf(","))
|
|
3157
|
+
return this.error(g.EXPECT_SELECT_ARGUMENT_OPTIONS, b(H, y({}, H)));
|
|
3158
|
+
this.bumpSpace();
|
|
3159
|
+
var A = this.parseIdentifierIfPossible(), P = 0;
|
|
3160
|
+
if (a !== "select" && A.value === "offset") {
|
|
3161
|
+
if (!this.bumpIf(":"))
|
|
3162
|
+
return this.error(g.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, b(this.clonePosition(), this.clonePosition()));
|
|
3163
|
+
this.bumpSpace();
|
|
3164
|
+
var f = this.tryParseDecimalInteger(g.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, g.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);
|
|
3165
|
+
if (f.err)
|
|
3166
|
+
return f;
|
|
3167
|
+
this.bumpSpace(), A = this.parseIdentifierIfPossible(), P = f.val;
|
|
3168
|
+
}
|
|
3169
|
+
var D = this.tryParsePluralOrSelectOptions(t, a, n, A);
|
|
3170
|
+
if (D.err)
|
|
3171
|
+
return D;
|
|
3172
|
+
var c = this.tryParseArgumentClose(i);
|
|
3173
|
+
if (c.err)
|
|
3174
|
+
return c;
|
|
3175
|
+
var he = b(i, this.clonePosition());
|
|
3176
|
+
return a === "select" ? {
|
|
3177
|
+
val: {
|
|
3178
|
+
type: x.select,
|
|
3179
|
+
value: r,
|
|
3180
|
+
options: _t(D.val),
|
|
3181
|
+
location: he
|
|
3182
|
+
},
|
|
3183
|
+
err: null
|
|
3184
|
+
} : {
|
|
3185
|
+
val: {
|
|
3186
|
+
type: x.plural,
|
|
3187
|
+
value: r,
|
|
3188
|
+
options: _t(D.val),
|
|
3189
|
+
offset: P,
|
|
3190
|
+
pluralType: a === "plural" ? "cardinal" : "ordinal",
|
|
3191
|
+
location: he
|
|
3192
|
+
},
|
|
3193
|
+
err: null
|
|
3194
|
+
};
|
|
3195
|
+
}
|
|
3196
|
+
default:
|
|
3197
|
+
return this.error(g.INVALID_ARGUMENT_TYPE, b(o, l));
|
|
3198
|
+
}
|
|
3199
|
+
}, e.prototype.tryParseArgumentClose = function(t) {
|
|
3200
|
+
return this.isEOF() || this.char() !== 125 ? this.error(g.EXPECT_ARGUMENT_CLOSING_BRACE, b(t, this.clonePosition())) : (this.bump(), { val: !0, err: null });
|
|
3201
|
+
}, e.prototype.parseSimpleArgStyleIfPossible = function() {
|
|
3202
|
+
for (var t = 0, n = this.clonePosition(); !this.isEOF(); ) {
|
|
3203
|
+
var r = this.char();
|
|
3204
|
+
switch (r) {
|
|
3205
|
+
case 39: {
|
|
3206
|
+
this.bump();
|
|
3207
|
+
var i = this.clonePosition();
|
|
3208
|
+
if (!this.bumpUntil("'"))
|
|
3209
|
+
return this.error(g.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE, b(i, this.clonePosition()));
|
|
3210
|
+
this.bump();
|
|
3211
|
+
break;
|
|
3212
|
+
}
|
|
3213
|
+
case 123: {
|
|
3214
|
+
t += 1, this.bump();
|
|
3215
|
+
break;
|
|
3216
|
+
}
|
|
3217
|
+
case 125: {
|
|
3218
|
+
if (t > 0)
|
|
3219
|
+
t -= 1;
|
|
3220
|
+
else
|
|
3221
|
+
return {
|
|
3222
|
+
val: this.message.slice(n.offset, this.offset()),
|
|
3223
|
+
err: null
|
|
3224
|
+
};
|
|
3225
|
+
break;
|
|
3226
|
+
}
|
|
3227
|
+
default:
|
|
3228
|
+
this.bump();
|
|
3229
|
+
break;
|
|
3230
|
+
}
|
|
3231
|
+
}
|
|
3232
|
+
return {
|
|
3233
|
+
val: this.message.slice(n.offset, this.offset()),
|
|
3234
|
+
err: null
|
|
3235
|
+
};
|
|
3236
|
+
}, e.prototype.parseNumberSkeletonFromString = function(t, n) {
|
|
3237
|
+
var r = [];
|
|
3238
|
+
try {
|
|
3239
|
+
r = Nr(t);
|
|
3240
|
+
} catch (i) {
|
|
3241
|
+
return this.error(g.INVALID_NUMBER_SKELETON, n);
|
|
3242
|
+
}
|
|
3243
|
+
return {
|
|
3244
|
+
val: {
|
|
3245
|
+
type: z.number,
|
|
3246
|
+
tokens: r,
|
|
3247
|
+
location: n,
|
|
3248
|
+
parsedOptions: this.shouldParseSkeletons ? Rr(r) : {}
|
|
3249
|
+
},
|
|
3250
|
+
err: null
|
|
3251
|
+
};
|
|
3252
|
+
}, e.prototype.tryParsePluralOrSelectOptions = function(t, n, r, i) {
|
|
3253
|
+
for (var s, o = !1, a = [], l = /* @__PURE__ */ new Set(), u = i.value, h = i.location; ; ) {
|
|
3254
|
+
if (u.length === 0) {
|
|
3255
|
+
var f = this.clonePosition();
|
|
3256
|
+
if (n !== "select" && this.bumpIf("=")) {
|
|
3257
|
+
var m = this.tryParseDecimalInteger(g.EXPECT_PLURAL_ARGUMENT_SELECTOR, g.INVALID_PLURAL_ARGUMENT_SELECTOR);
|
|
3258
|
+
if (m.err)
|
|
3259
|
+
return m;
|
|
3260
|
+
h = b(f, this.clonePosition()), u = this.message.slice(f.offset, this.offset());
|
|
3261
|
+
} else
|
|
3262
|
+
break;
|
|
3263
|
+
}
|
|
3264
|
+
if (l.has(u))
|
|
3265
|
+
return this.error(n === "select" ? g.DUPLICATE_SELECT_ARGUMENT_SELECTOR : g.DUPLICATE_PLURAL_ARGUMENT_SELECTOR, h);
|
|
3266
|
+
u === "other" && (o = !0), this.bumpSpace();
|
|
3267
|
+
var d = this.clonePosition();
|
|
3268
|
+
if (!this.bumpIf("{"))
|
|
3269
|
+
return this.error(n === "select" ? g.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT : g.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT, b(this.clonePosition(), this.clonePosition()));
|
|
3270
|
+
var c = this.parseMessage(t + 1, n, r);
|
|
3271
|
+
if (c.err)
|
|
3272
|
+
return c;
|
|
3273
|
+
var p = this.tryParseArgumentClose(d);
|
|
3274
|
+
if (p.err)
|
|
3275
|
+
return p;
|
|
3276
|
+
a.push([
|
|
3277
|
+
u,
|
|
3278
|
+
{
|
|
3279
|
+
value: c.val,
|
|
3280
|
+
location: b(d, this.clonePosition())
|
|
3281
|
+
}
|
|
3282
|
+
]), l.add(u), this.bumpSpace(), s = this.parseIdentifierIfPossible(), u = s.value, h = s.location;
|
|
3283
|
+
}
|
|
3284
|
+
return a.length === 0 ? this.error(n === "select" ? g.EXPECT_SELECT_ARGUMENT_SELECTOR : g.EXPECT_PLURAL_ARGUMENT_SELECTOR, b(this.clonePosition(), this.clonePosition())) : this.requiresOtherClause && !o ? this.error(g.MISSING_OTHER_CLAUSE, b(this.clonePosition(), this.clonePosition())) : { val: a, err: null };
|
|
3285
|
+
}, e.prototype.tryParseDecimalInteger = function(t, n) {
|
|
3286
|
+
var r = 1, i = this.clonePosition();
|
|
3287
|
+
this.bumpIf("+") || this.bumpIf("-") && (r = -1);
|
|
3288
|
+
for (var s = !1, o = 0; !this.isEOF(); ) {
|
|
3289
|
+
var a = this.char();
|
|
3290
|
+
if (a >= 48 && a <= 57)
|
|
3291
|
+
s = !0, o = o * 10 + (a - 48), this.bump();
|
|
3292
|
+
else
|
|
3293
|
+
break;
|
|
3294
|
+
}
|
|
3295
|
+
var l = b(i, this.clonePosition());
|
|
3296
|
+
return s ? (o *= r, Qr(o) ? { val: o, err: null } : this.error(n, l)) : this.error(t, l);
|
|
3297
|
+
}, e.prototype.offset = function() {
|
|
3298
|
+
return this.position.offset;
|
|
3299
|
+
}, e.prototype.isEOF = function() {
|
|
3300
|
+
return this.offset() === this.message.length;
|
|
3301
|
+
}, e.prototype.clonePosition = function() {
|
|
3302
|
+
return {
|
|
3303
|
+
offset: this.position.offset,
|
|
3304
|
+
line: this.position.line,
|
|
3305
|
+
column: this.position.column
|
|
3306
|
+
};
|
|
3307
|
+
}, e.prototype.char = function() {
|
|
3308
|
+
var t = this.position.offset;
|
|
3309
|
+
if (t >= this.message.length)
|
|
3310
|
+
throw Error("out of bound");
|
|
3311
|
+
var n = cn(this.message, t);
|
|
3312
|
+
if (n === void 0)
|
|
3313
|
+
throw Error("Offset ".concat(t, " is at invalid UTF-16 code unit boundary"));
|
|
3314
|
+
return n;
|
|
3315
|
+
}, e.prototype.error = function(t, n) {
|
|
3316
|
+
return {
|
|
3317
|
+
val: null,
|
|
3318
|
+
err: {
|
|
3319
|
+
kind: t,
|
|
3320
|
+
message: this.message,
|
|
3321
|
+
location: n
|
|
3322
|
+
}
|
|
3323
|
+
};
|
|
3324
|
+
}, e.prototype.bump = function() {
|
|
3325
|
+
if (!this.isEOF()) {
|
|
3326
|
+
var t = this.char();
|
|
3327
|
+
t === 10 ? (this.position.line += 1, this.position.column = 1, this.position.offset += 1) : (this.position.column += 1, this.position.offset += t < 65536 ? 1 : 2);
|
|
3328
|
+
}
|
|
3329
|
+
}, e.prototype.bumpIf = function(t) {
|
|
3330
|
+
if (bt(this.message, t, this.offset())) {
|
|
3331
|
+
for (var n = 0; n < t.length; n++)
|
|
3332
|
+
this.bump();
|
|
3333
|
+
return !0;
|
|
3334
|
+
}
|
|
3335
|
+
return !1;
|
|
3336
|
+
}, e.prototype.bumpUntil = function(t) {
|
|
3337
|
+
var n = this.offset(), r = this.message.indexOf(t, n);
|
|
3338
|
+
return r >= 0 ? (this.bumpTo(r), !0) : (this.bumpTo(this.message.length), !1);
|
|
3339
|
+
}, e.prototype.bumpTo = function(t) {
|
|
3340
|
+
if (this.offset() > t)
|
|
3341
|
+
throw Error("targetOffset ".concat(t, " must be greater than or equal to the current offset ").concat(this.offset()));
|
|
3342
|
+
for (t = Math.min(t, this.message.length); ; ) {
|
|
3343
|
+
var n = this.offset();
|
|
3344
|
+
if (n === t)
|
|
3345
|
+
break;
|
|
3346
|
+
if (n > t)
|
|
3347
|
+
throw Error("targetOffset ".concat(t, " is at invalid UTF-16 code unit boundary"));
|
|
3348
|
+
if (this.bump(), this.isEOF())
|
|
3349
|
+
break;
|
|
3350
|
+
}
|
|
3351
|
+
}, e.prototype.bumpSpace = function() {
|
|
3352
|
+
for (; !this.isEOF() && dn(this.char()); )
|
|
3353
|
+
this.bump();
|
|
3354
|
+
}, e.prototype.peek = function() {
|
|
3355
|
+
if (this.isEOF())
|
|
3356
|
+
return null;
|
|
3357
|
+
var t = this.char(), n = this.offset(), r = this.message.charCodeAt(n + (t >= 65536 ? 2 : 1));
|
|
3358
|
+
return r != null ? r : null;
|
|
3359
|
+
}, e;
|
|
3360
|
+
}()
|
|
3361
|
+
);
|
|
3362
|
+
function Qe(e) {
|
|
3363
|
+
return e >= 97 && e <= 122 || e >= 65 && e <= 90;
|
|
3364
|
+
}
|
|
3365
|
+
function ei(e) {
|
|
3366
|
+
return Qe(e) || e === 47;
|
|
3367
|
+
}
|
|
3368
|
+
function ti(e) {
|
|
3369
|
+
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;
|
|
3370
|
+
}
|
|
3371
|
+
function dn(e) {
|
|
3372
|
+
return e >= 9 && e <= 13 || e === 32 || e === 133 || e >= 8206 && e <= 8207 || e === 8232 || e === 8233;
|
|
3373
|
+
}
|
|
3374
|
+
function ni(e) {
|
|
3375
|
+
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;
|
|
3376
|
+
}
|
|
3377
|
+
function qe(e) {
|
|
3378
|
+
e.forEach(function(t) {
|
|
3379
|
+
if (delete t.location, rn(t) || sn(t))
|
|
3380
|
+
for (var n in t.options)
|
|
3381
|
+
delete t.options[n].location, qe(t.options[n].value);
|
|
3382
|
+
else
|
|
3383
|
+
en(t) && an(t.style) || (tn(t) || nn(t)) && Xe(t.style) ? delete t.style.location : on(t) && qe(t.children);
|
|
3384
|
+
});
|
|
3385
|
+
}
|
|
3386
|
+
function ri(e, t) {
|
|
3387
|
+
t === void 0 && (t = {}), t = y({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
|
|
3388
|
+
var n = new Kr(e, t).parse();
|
|
3389
|
+
if (n.err) {
|
|
3390
|
+
var r = SyntaxError(g[n.err.kind]);
|
|
3391
|
+
throw r.location = n.err.location, r.originalMessage = n.err.message, r;
|
|
3392
|
+
}
|
|
3393
|
+
return t != null && t.captureLocation || qe(n.val), n.val;
|
|
3394
|
+
}
|
|
3395
|
+
var W;
|
|
3396
|
+
(function(e) {
|
|
3397
|
+
e.MISSING_VALUE = "MISSING_VALUE", e.INVALID_VALUE = "INVALID_VALUE", e.MISSING_INTL_API = "MISSING_INTL_API";
|
|
3398
|
+
})(W || (W = {}));
|
|
3399
|
+
var Te = (
|
|
3400
|
+
/** @class */
|
|
3401
|
+
function(e) {
|
|
3402
|
+
Be(t, e);
|
|
3403
|
+
function t(n, r, i) {
|
|
3404
|
+
var s = e.call(this, n) || this;
|
|
3405
|
+
return s.code = r, s.originalMessage = i, s;
|
|
3406
|
+
}
|
|
3407
|
+
return t.prototype.toString = function() {
|
|
3408
|
+
return "[formatjs Error: ".concat(this.code, "] ").concat(this.message);
|
|
3409
|
+
}, t;
|
|
3410
|
+
}(Error)
|
|
3411
|
+
), xt = (
|
|
3412
|
+
/** @class */
|
|
3413
|
+
function(e) {
|
|
3414
|
+
Be(t, e);
|
|
3415
|
+
function t(n, r, i, s) {
|
|
3416
|
+
return e.call(this, 'Invalid values for "'.concat(n, '": "').concat(r, '". Options are "').concat(Object.keys(i).join('", "'), '"'), W.INVALID_VALUE, s) || this;
|
|
3417
|
+
}
|
|
3418
|
+
return t;
|
|
3419
|
+
}(Te)
|
|
3420
|
+
), ii = (
|
|
3421
|
+
/** @class */
|
|
3422
|
+
function(e) {
|
|
3423
|
+
Be(t, e);
|
|
3424
|
+
function t(n, r, i) {
|
|
3425
|
+
return e.call(this, 'Value for "'.concat(n, '" must be of type ').concat(r), W.INVALID_VALUE, i) || this;
|
|
3426
|
+
}
|
|
3427
|
+
return t;
|
|
3428
|
+
}(Te)
|
|
3429
|
+
), si = (
|
|
3430
|
+
/** @class */
|
|
3431
|
+
function(e) {
|
|
3432
|
+
Be(t, e);
|
|
3433
|
+
function t(n, r) {
|
|
3434
|
+
return e.call(this, 'The intl string context variable "'.concat(n, '" was not provided to the string "').concat(r, '"'), W.MISSING_VALUE, r) || this;
|
|
3435
|
+
}
|
|
3436
|
+
return t;
|
|
3437
|
+
}(Te)
|
|
3438
|
+
), w;
|
|
3439
|
+
(function(e) {
|
|
3440
|
+
e[e.literal = 0] = "literal", e[e.object = 1] = "object";
|
|
3441
|
+
})(w || (w = {}));
|
|
3442
|
+
function oi(e) {
|
|
3443
|
+
return e.length < 2 ? e : e.reduce(function(t, n) {
|
|
3444
|
+
var r = t[t.length - 1];
|
|
3445
|
+
return !r || r.type !== w.literal || n.type !== w.literal ? t.push(n) : r.value += n.value, t;
|
|
3446
|
+
}, []);
|
|
3447
|
+
}
|
|
3448
|
+
function ai(e) {
|
|
3449
|
+
return typeof e == "function";
|
|
3450
|
+
}
|
|
3451
|
+
function pe(e, t, n, r, i, s, o) {
|
|
3452
|
+
if (e.length === 1 && mt(e[0]))
|
|
3453
|
+
return [
|
|
3454
|
+
{
|
|
3455
|
+
type: w.literal,
|
|
3456
|
+
value: e[0].value
|
|
3457
|
+
}
|
|
3458
|
+
];
|
|
3459
|
+
for (var a = [], l = 0, u = e; l < u.length; l++) {
|
|
3460
|
+
var h = u[l];
|
|
3461
|
+
if (mt(h)) {
|
|
3462
|
+
a.push({
|
|
3463
|
+
type: w.literal,
|
|
3464
|
+
value: h.value
|
|
3465
|
+
});
|
|
3466
|
+
continue;
|
|
3467
|
+
}
|
|
3468
|
+
if (Or(h)) {
|
|
3469
|
+
typeof s == "number" && a.push({
|
|
3470
|
+
type: w.literal,
|
|
3471
|
+
value: n.getNumberFormat(t).format(s)
|
|
3472
|
+
});
|
|
3473
|
+
continue;
|
|
3474
|
+
}
|
|
3475
|
+
var f = h.value;
|
|
3476
|
+
if (!(i && f in i))
|
|
3477
|
+
throw new si(f, o);
|
|
3478
|
+
var m = i[f];
|
|
3479
|
+
if (Ar(h)) {
|
|
3480
|
+
(!m || typeof m == "string" || typeof m == "number") && (m = typeof m == "string" || typeof m == "number" ? String(m) : ""), a.push({
|
|
3481
|
+
type: typeof m == "string" ? w.literal : w.object,
|
|
3482
|
+
value: m
|
|
3483
|
+
});
|
|
3484
|
+
continue;
|
|
3485
|
+
}
|
|
3486
|
+
if (tn(h)) {
|
|
3487
|
+
var d = typeof h.style == "string" ? r.date[h.style] : Xe(h.style) ? h.style.parsedOptions : void 0;
|
|
3488
|
+
a.push({
|
|
3489
|
+
type: w.literal,
|
|
3490
|
+
value: n.getDateTimeFormat(t, d).format(m)
|
|
3491
|
+
});
|
|
3492
|
+
continue;
|
|
3493
|
+
}
|
|
3494
|
+
if (nn(h)) {
|
|
3495
|
+
var d = typeof h.style == "string" ? r.time[h.style] : Xe(h.style) ? h.style.parsedOptions : r.time.medium;
|
|
3496
|
+
a.push({
|
|
3497
|
+
type: w.literal,
|
|
3498
|
+
value: n.getDateTimeFormat(t, d).format(m)
|
|
3499
|
+
});
|
|
3500
|
+
continue;
|
|
3501
|
+
}
|
|
3502
|
+
if (en(h)) {
|
|
3503
|
+
var d = typeof h.style == "string" ? r.number[h.style] : an(h.style) ? h.style.parsedOptions : void 0;
|
|
3504
|
+
d && d.scale && (m = m * (d.scale || 1)), a.push({
|
|
3505
|
+
type: w.literal,
|
|
3506
|
+
value: n.getNumberFormat(t, d).format(m)
|
|
3507
|
+
});
|
|
3508
|
+
continue;
|
|
3509
|
+
}
|
|
3510
|
+
if (on(h)) {
|
|
3511
|
+
var c = h.children, p = h.value, E = i[p];
|
|
3512
|
+
if (!ai(E))
|
|
3513
|
+
throw new ii(p, "function", o);
|
|
3514
|
+
var v = pe(c, t, n, r, i, s), T = E(v.map(function(P) {
|
|
3515
|
+
return P.value;
|
|
3516
|
+
}));
|
|
3517
|
+
Array.isArray(T) || (T = [T]), a.push.apply(a, T.map(function(P) {
|
|
3518
|
+
return {
|
|
3519
|
+
type: typeof P == "string" ? w.literal : w.object,
|
|
3520
|
+
value: P
|
|
3521
|
+
};
|
|
3522
|
+
}));
|
|
3523
|
+
}
|
|
3524
|
+
if (rn(h)) {
|
|
3525
|
+
var H = h.options[m] || h.options.other;
|
|
3526
|
+
if (!H)
|
|
3527
|
+
throw new xt(h.value, m, Object.keys(h.options), o);
|
|
3528
|
+
a.push.apply(a, pe(H.value, t, n, r, i));
|
|
3529
|
+
continue;
|
|
3530
|
+
}
|
|
3531
|
+
if (sn(h)) {
|
|
3532
|
+
var H = h.options["=".concat(m)];
|
|
3533
|
+
if (!H) {
|
|
3534
|
+
if (!Intl.PluralRules)
|
|
3535
|
+
throw new Te(`Intl.PluralRules is not available in this environment.
|
|
3536
|
+
Try polyfilling it using "@formatjs/intl-pluralrules"
|
|
3537
|
+
`, W.MISSING_INTL_API, o);
|
|
3538
|
+
var A = n.getPluralRules(t, { type: h.pluralType }).select(m - (h.offset || 0));
|
|
3539
|
+
H = h.options[A] || h.options.other;
|
|
3540
|
+
}
|
|
3541
|
+
if (!H)
|
|
3542
|
+
throw new xt(h.value, m, Object.keys(h.options), o);
|
|
3543
|
+
a.push.apply(a, pe(H.value, t, n, r, i, m - (h.offset || 0)));
|
|
3544
|
+
continue;
|
|
3545
|
+
}
|
|
3546
|
+
}
|
|
3547
|
+
return oi(a);
|
|
3548
|
+
}
|
|
3549
|
+
function ui(e, t) {
|
|
3550
|
+
return t ? y(y(y({}, e || {}), t || {}), Object.keys(e).reduce(function(n, r) {
|
|
3551
|
+
return n[r] = y(y({}, e[r]), t[r] || {}), n;
|
|
3552
|
+
}, {})) : e;
|
|
3553
|
+
}
|
|
3554
|
+
function hi(e, t) {
|
|
3555
|
+
return t ? Object.keys(e).reduce(function(n, r) {
|
|
3556
|
+
return n[r] = ui(e[r], t[r]), n;
|
|
3557
|
+
}, y({}, e)) : e;
|
|
3558
|
+
}
|
|
3559
|
+
function De(e) {
|
|
3560
|
+
return {
|
|
3561
|
+
create: function() {
|
|
3562
|
+
return {
|
|
3563
|
+
get: function(t) {
|
|
3564
|
+
return e[t];
|
|
3565
|
+
},
|
|
3566
|
+
set: function(t, n) {
|
|
3567
|
+
e[t] = n;
|
|
3568
|
+
}
|
|
3569
|
+
};
|
|
3570
|
+
}
|
|
3571
|
+
};
|
|
3572
|
+
}
|
|
3573
|
+
function li(e) {
|
|
3574
|
+
return e === void 0 && (e = {
|
|
3575
|
+
number: {},
|
|
3576
|
+
dateTime: {},
|
|
3577
|
+
pluralRules: {}
|
|
3578
|
+
}), {
|
|
3579
|
+
getNumberFormat: $e(function() {
|
|
3580
|
+
for (var t, n = [], r = 0; r < arguments.length; r++)
|
|
3581
|
+
n[r] = arguments[r];
|
|
3582
|
+
return new ((t = Intl.NumberFormat).bind.apply(t, Me([void 0], n, !1)))();
|
|
3583
|
+
}, {
|
|
3584
|
+
cache: De(e.number),
|
|
3585
|
+
strategy: Re.variadic
|
|
3586
|
+
}),
|
|
3587
|
+
getDateTimeFormat: $e(function() {
|
|
3588
|
+
for (var t, n = [], r = 0; r < arguments.length; r++)
|
|
3589
|
+
n[r] = arguments[r];
|
|
3590
|
+
return new ((t = Intl.DateTimeFormat).bind.apply(t, Me([void 0], n, !1)))();
|
|
3591
|
+
}, {
|
|
3592
|
+
cache: De(e.dateTime),
|
|
3593
|
+
strategy: Re.variadic
|
|
3594
|
+
}),
|
|
3595
|
+
getPluralRules: $e(function() {
|
|
3596
|
+
for (var t, n = [], r = 0; r < arguments.length; r++)
|
|
3597
|
+
n[r] = arguments[r];
|
|
3598
|
+
return new ((t = Intl.PluralRules).bind.apply(t, Me([void 0], n, !1)))();
|
|
3599
|
+
}, {
|
|
3600
|
+
cache: De(e.pluralRules),
|
|
3601
|
+
strategy: Re.variadic
|
|
3602
|
+
})
|
|
3603
|
+
};
|
|
3604
|
+
}
|
|
3605
|
+
var pn = (
|
|
3606
|
+
/** @class */
|
|
3607
|
+
function() {
|
|
3608
|
+
function e(t, n, r, i) {
|
|
3609
|
+
n === void 0 && (n = e.defaultLocale);
|
|
3610
|
+
var s = this;
|
|
3611
|
+
if (this.formatterCache = {
|
|
3612
|
+
number: {},
|
|
3613
|
+
dateTime: {},
|
|
3614
|
+
pluralRules: {}
|
|
3615
|
+
}, this.format = function(l) {
|
|
3616
|
+
var u = s.formatToParts(l);
|
|
3617
|
+
if (u.length === 1)
|
|
3618
|
+
return u[0].value;
|
|
3619
|
+
var h = u.reduce(function(f, m) {
|
|
3620
|
+
return !f.length || m.type !== w.literal || typeof f[f.length - 1] != "string" ? f.push(m.value) : f[f.length - 1] += m.value, f;
|
|
3621
|
+
}, []);
|
|
3622
|
+
return h.length <= 1 ? h[0] || "" : h;
|
|
3623
|
+
}, this.formatToParts = function(l) {
|
|
3624
|
+
return pe(s.ast, s.locales, s.formatters, s.formats, l, void 0, s.message);
|
|
3625
|
+
}, this.resolvedOptions = function() {
|
|
3626
|
+
var l;
|
|
3627
|
+
return {
|
|
3628
|
+
locale: ((l = s.resolvedLocale) === null || l === void 0 ? void 0 : l.toString()) || Intl.NumberFormat.supportedLocalesOf(s.locales)[0]
|
|
3629
|
+
};
|
|
3630
|
+
}, this.getAst = function() {
|
|
3631
|
+
return s.ast;
|
|
3632
|
+
}, this.locales = n, this.resolvedLocale = e.resolveLocale(n), typeof t == "string") {
|
|
3633
|
+
if (this.message = t, !e.__parse)
|
|
3634
|
+
throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");
|
|
3635
|
+
var o = i || {};
|
|
3636
|
+
o.formatters;
|
|
3637
|
+
var a = xr(o, ["formatters"]);
|
|
3638
|
+
this.ast = e.__parse(t, y(y({}, a), { locale: this.resolvedLocale }));
|
|
3639
|
+
} else
|
|
3640
|
+
this.ast = t;
|
|
3641
|
+
if (!Array.isArray(this.ast))
|
|
3642
|
+
throw new TypeError("A message must be provided as a String or AST.");
|
|
3643
|
+
this.formats = hi(e.formats, r), this.formatters = i && i.formatters || li(this.formatterCache);
|
|
3644
|
+
}
|
|
3645
|
+
return Object.defineProperty(e, "defaultLocale", {
|
|
3646
|
+
get: function() {
|
|
3647
|
+
return e.memoizedDefaultLocale || (e.memoizedDefaultLocale = new Intl.NumberFormat().resolvedOptions().locale), e.memoizedDefaultLocale;
|
|
3648
|
+
},
|
|
3649
|
+
enumerable: !1,
|
|
3650
|
+
configurable: !0
|
|
3651
|
+
}), e.memoizedDefaultLocale = null, e.resolveLocale = function(t) {
|
|
3652
|
+
if (typeof Intl.Locale != "undefined") {
|
|
3653
|
+
var n = Intl.NumberFormat.supportedLocalesOf(t);
|
|
3654
|
+
return n.length > 0 ? new Intl.Locale(n[0]) : new Intl.Locale(typeof t == "string" ? t : t[0]);
|
|
3655
|
+
}
|
|
3656
|
+
}, e.__parse = ri, e.formats = {
|
|
3657
|
+
number: {
|
|
3658
|
+
integer: {
|
|
3659
|
+
maximumFractionDigits: 0
|
|
3660
|
+
},
|
|
3661
|
+
currency: {
|
|
3662
|
+
style: "currency"
|
|
3663
|
+
},
|
|
3664
|
+
percent: {
|
|
3665
|
+
style: "percent"
|
|
3666
|
+
}
|
|
3667
|
+
},
|
|
3668
|
+
date: {
|
|
3669
|
+
short: {
|
|
3670
|
+
month: "numeric",
|
|
3671
|
+
day: "numeric",
|
|
3672
|
+
year: "2-digit"
|
|
3673
|
+
},
|
|
3674
|
+
medium: {
|
|
3675
|
+
month: "short",
|
|
3676
|
+
day: "numeric",
|
|
3677
|
+
year: "numeric"
|
|
3678
|
+
},
|
|
3679
|
+
long: {
|
|
3680
|
+
month: "long",
|
|
3681
|
+
day: "numeric",
|
|
3682
|
+
year: "numeric"
|
|
3683
|
+
},
|
|
3684
|
+
full: {
|
|
3685
|
+
weekday: "long",
|
|
3686
|
+
month: "long",
|
|
3687
|
+
day: "numeric",
|
|
3688
|
+
year: "numeric"
|
|
3689
|
+
}
|
|
3690
|
+
},
|
|
3691
|
+
time: {
|
|
3692
|
+
short: {
|
|
3693
|
+
hour: "numeric",
|
|
3694
|
+
minute: "numeric"
|
|
3695
|
+
},
|
|
3696
|
+
medium: {
|
|
3697
|
+
hour: "numeric",
|
|
3698
|
+
minute: "numeric",
|
|
3699
|
+
second: "numeric"
|
|
3700
|
+
},
|
|
3701
|
+
long: {
|
|
3702
|
+
hour: "numeric",
|
|
3703
|
+
minute: "numeric",
|
|
3704
|
+
second: "numeric",
|
|
3705
|
+
timeZoneName: "short"
|
|
3706
|
+
},
|
|
3707
|
+
full: {
|
|
3708
|
+
hour: "numeric",
|
|
3709
|
+
minute: "numeric",
|
|
3710
|
+
second: "numeric",
|
|
3711
|
+
timeZoneName: "short"
|
|
3712
|
+
}
|
|
3713
|
+
}
|
|
3714
|
+
}, e;
|
|
3715
|
+
}()
|
|
3716
|
+
);
|
|
3717
|
+
function fi(e, t) {
|
|
3718
|
+
if (t == null)
|
|
3719
|
+
return;
|
|
3720
|
+
if (t in e)
|
|
3721
|
+
return e[t];
|
|
3722
|
+
const n = t.split(".");
|
|
3723
|
+
let r = e;
|
|
3724
|
+
for (let i = 0; i < n.length; i++)
|
|
3725
|
+
if (typeof r == "object") {
|
|
3726
|
+
if (i > 0) {
|
|
3727
|
+
const s = n.slice(i, n.length).join(".");
|
|
3728
|
+
if (s in r) {
|
|
3729
|
+
r = r[s];
|
|
3730
|
+
break;
|
|
3731
|
+
}
|
|
3732
|
+
}
|
|
3733
|
+
r = r[n[i]];
|
|
3734
|
+
} else
|
|
3735
|
+
r = void 0;
|
|
3736
|
+
return r;
|
|
3737
|
+
}
|
|
3738
|
+
const N = {}, ci = (e, t, n) => n && (t in N || (N[t] = {}), e in N[t] || (N[t][e] = n), n), gn = (e, t) => {
|
|
3739
|
+
if (t == null)
|
|
3740
|
+
return;
|
|
3741
|
+
if (t in N && e in N[t])
|
|
3742
|
+
return N[t][e];
|
|
3743
|
+
const n = ue(t);
|
|
3744
|
+
for (let r = 0; r < n.length; r++) {
|
|
3745
|
+
const i = n[r], s = di(i, e);
|
|
3746
|
+
if (s)
|
|
3747
|
+
return ci(e, t, s);
|
|
3748
|
+
}
|
|
3749
|
+
};
|
|
3750
|
+
let nt;
|
|
3751
|
+
const ae = we({});
|
|
3752
|
+
function mi(e) {
|
|
3753
|
+
return nt[e] || null;
|
|
3754
|
+
}
|
|
3755
|
+
function bn(e) {
|
|
3756
|
+
return e in nt;
|
|
3757
|
+
}
|
|
3758
|
+
function di(e, t) {
|
|
3759
|
+
if (!bn(e))
|
|
3760
|
+
return null;
|
|
3761
|
+
const n = mi(e);
|
|
3762
|
+
return fi(n, t);
|
|
3763
|
+
}
|
|
3764
|
+
function pi(e) {
|
|
3765
|
+
if (e == null)
|
|
3766
|
+
return;
|
|
3767
|
+
const t = ue(e);
|
|
3768
|
+
for (let n = 0; n < t.length; n++) {
|
|
3769
|
+
const r = t[n];
|
|
3770
|
+
if (bn(r))
|
|
3771
|
+
return r;
|
|
3772
|
+
}
|
|
3773
|
+
}
|
|
3774
|
+
function _n(e, ...t) {
|
|
3775
|
+
delete N[e], ae.update((n) => (n[e] = yr.all([n[e] || {}, ...t]), n));
|
|
3776
|
+
}
|
|
3777
|
+
q(
|
|
3778
|
+
[ae],
|
|
3779
|
+
([e]) => Object.keys(e)
|
|
3780
|
+
);
|
|
3781
|
+
ae.subscribe((e) => nt = e);
|
|
3782
|
+
const ge = {};
|
|
3783
|
+
function gi(e, t) {
|
|
3784
|
+
ge[e].delete(t), ge[e].size === 0 && delete ge[e];
|
|
3785
|
+
}
|
|
3786
|
+
function yn(e) {
|
|
3787
|
+
return ge[e];
|
|
3788
|
+
}
|
|
3789
|
+
function bi(e) {
|
|
3790
|
+
return ue(e).map((t) => {
|
|
3791
|
+
const n = yn(t);
|
|
3792
|
+
return [t, n ? [...n] : []];
|
|
3793
|
+
}).filter(([, t]) => t.length > 0);
|
|
3794
|
+
}
|
|
3795
|
+
function Ee(e) {
|
|
3796
|
+
return e == null ? !1 : ue(e).some(
|
|
3797
|
+
(t) => {
|
|
3798
|
+
var n;
|
|
3799
|
+
return (n = yn(t)) == null ? void 0 : n.size;
|
|
3800
|
+
}
|
|
3801
|
+
);
|
|
3802
|
+
}
|
|
3803
|
+
function _i(e, t) {
|
|
3804
|
+
return Promise.all(
|
|
3805
|
+
t.map((r) => (gi(e, r), r().then((i) => i.default || i)))
|
|
3806
|
+
).then((r) => _n(e, ...r));
|
|
3807
|
+
}
|
|
3808
|
+
const K = {};
|
|
3809
|
+
function xn(e) {
|
|
3810
|
+
if (!Ee(e))
|
|
3811
|
+
return e in K ? K[e] : Promise.resolve();
|
|
3812
|
+
const t = bi(e);
|
|
3813
|
+
return K[e] = Promise.all(
|
|
3814
|
+
t.map(
|
|
3815
|
+
([n, r]) => _i(n, r)
|
|
3816
|
+
)
|
|
3817
|
+
).then(() => {
|
|
3818
|
+
if (Ee(e))
|
|
3819
|
+
return xn(e);
|
|
3820
|
+
delete K[e];
|
|
3821
|
+
}), K[e];
|
|
3822
|
+
}
|
|
3823
|
+
var Et = Object.getOwnPropertySymbols, yi = Object.prototype.hasOwnProperty, xi = Object.prototype.propertyIsEnumerable, Ei = (e, t) => {
|
|
3824
|
+
var n = {};
|
|
3825
|
+
for (var r in e)
|
|
3826
|
+
yi.call(e, r) && t.indexOf(r) < 0 && (n[r] = e[r]);
|
|
3827
|
+
if (e != null && Et)
|
|
3828
|
+
for (var r of Et(e))
|
|
3829
|
+
t.indexOf(r) < 0 && xi.call(e, r) && (n[r] = e[r]);
|
|
3830
|
+
return n;
|
|
3831
|
+
};
|
|
3832
|
+
const vi = {
|
|
3833
|
+
number: {
|
|
3834
|
+
scientific: { notation: "scientific" },
|
|
3835
|
+
engineering: { notation: "engineering" },
|
|
3836
|
+
compactLong: { notation: "compact", compactDisplay: "long" },
|
|
3837
|
+
compactShort: { notation: "compact", compactDisplay: "short" }
|
|
3838
|
+
},
|
|
3839
|
+
date: {
|
|
3840
|
+
short: { month: "numeric", day: "numeric", year: "2-digit" },
|
|
3841
|
+
medium: { month: "short", day: "numeric", year: "numeric" },
|
|
3842
|
+
long: { month: "long", day: "numeric", year: "numeric" },
|
|
3843
|
+
full: { weekday: "long", month: "long", day: "numeric", year: "numeric" }
|
|
3844
|
+
},
|
|
3845
|
+
time: {
|
|
3846
|
+
short: { hour: "numeric", minute: "numeric" },
|
|
3847
|
+
medium: { hour: "numeric", minute: "numeric", second: "numeric" },
|
|
3848
|
+
long: {
|
|
3849
|
+
hour: "numeric",
|
|
3850
|
+
minute: "numeric",
|
|
3851
|
+
second: "numeric",
|
|
3852
|
+
timeZoneName: "short"
|
|
3853
|
+
},
|
|
3854
|
+
full: {
|
|
3855
|
+
hour: "numeric",
|
|
3856
|
+
minute: "numeric",
|
|
3857
|
+
second: "numeric",
|
|
3858
|
+
timeZoneName: "short"
|
|
3859
|
+
}
|
|
3860
|
+
}
|
|
3861
|
+
};
|
|
3862
|
+
function Hi({ locale: e, id: t }) {
|
|
3863
|
+
console.warn(
|
|
3864
|
+
`[svelte-i18n] The message "${t}" was not found in "${ue(
|
|
3865
|
+
e
|
|
3866
|
+
).join('", "')}".${Ee(I()) ? `
|
|
3867
|
+
|
|
3868
|
+
Note: there are at least one loader still registered to this locale that wasn't executed.` : ""}`
|
|
3869
|
+
);
|
|
3870
|
+
}
|
|
3871
|
+
const wi = {
|
|
3872
|
+
fallbackLocale: null,
|
|
3873
|
+
loadingDelay: 200,
|
|
3874
|
+
formats: vi,
|
|
3875
|
+
warnOnMissingMessages: !0,
|
|
3876
|
+
handleMissingMessage: void 0,
|
|
3877
|
+
ignoreTag: !0
|
|
3878
|
+
}, ee = wi;
|
|
3879
|
+
function Z() {
|
|
3880
|
+
return ee;
|
|
3881
|
+
}
|
|
3882
|
+
function Bi(e) {
|
|
3883
|
+
const t = e, { formats: n } = t, r = Ei(t, ["formats"]);
|
|
3884
|
+
let i = e.fallbackLocale;
|
|
3885
|
+
if (e.initialLocale)
|
|
3886
|
+
try {
|
|
3887
|
+
pn.resolveLocale(e.initialLocale) && (i = e.initialLocale);
|
|
3888
|
+
} catch (s) {
|
|
3889
|
+
console.warn(
|
|
3890
|
+
`[svelte-i18n] The initial locale "${e.initialLocale}" is not a valid locale.`
|
|
3891
|
+
);
|
|
3892
|
+
}
|
|
3893
|
+
return r.warnOnMissingMessages && (delete r.warnOnMissingMessages, r.handleMissingMessage == null ? r.handleMissingMessage = Hi : console.warn(
|
|
3894
|
+
'[svelte-i18n] The "warnOnMissingMessages" option is deprecated. Please use the "handleMissingMessage" option instead.'
|
|
3895
|
+
)), Object.assign(ee, r, { initialLocale: i }), n && ("number" in n && Object.assign(ee.formats.number, n.number), "date" in n && Object.assign(ee.formats.date, n.date), "time" in n && Object.assign(ee.formats.time, n.time)), U.set(i);
|
|
3896
|
+
}
|
|
3897
|
+
const Ge = we(!1);
|
|
3898
|
+
var Ti = Object.defineProperty, Si = Object.defineProperties, Ai = Object.getOwnPropertyDescriptors, vt = Object.getOwnPropertySymbols, Oi = Object.prototype.hasOwnProperty, Pi = Object.prototype.propertyIsEnumerable, Ht = (e, t, n) => t in e ? Ti(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, Ci = (e, t) => {
|
|
3899
|
+
for (var n in t)
|
|
3900
|
+
Oi.call(t, n) && Ht(e, n, t[n]);
|
|
3901
|
+
if (vt)
|
|
3902
|
+
for (var n of vt(t))
|
|
3903
|
+
Pi.call(t, n) && Ht(e, n, t[n]);
|
|
3904
|
+
return e;
|
|
3905
|
+
}, Li = (e, t) => Si(e, Ai(t));
|
|
3906
|
+
let Je;
|
|
3907
|
+
const ve = we(null);
|
|
3908
|
+
function wt(e) {
|
|
3909
|
+
return e.split("-").map((t, n, r) => r.slice(0, n + 1).join("-")).reverse();
|
|
3910
|
+
}
|
|
3911
|
+
function ue(e, t = Z().fallbackLocale) {
|
|
3912
|
+
const n = wt(e);
|
|
3913
|
+
return t ? [.../* @__PURE__ */ new Set([...n, ...wt(t)])] : n;
|
|
3914
|
+
}
|
|
3915
|
+
function I() {
|
|
3916
|
+
return Je != null ? Je : void 0;
|
|
3917
|
+
}
|
|
3918
|
+
ve.subscribe((e) => {
|
|
3919
|
+
Je = e != null ? e : void 0, typeof window != "undefined" && e != null && document.documentElement.setAttribute("lang", e);
|
|
3920
|
+
});
|
|
3921
|
+
const Ni = (e) => {
|
|
3922
|
+
if (e && pi(e) && Ee(e)) {
|
|
3923
|
+
const { loadingDelay: t } = Z();
|
|
3924
|
+
let n;
|
|
3925
|
+
return typeof window != "undefined" && I() != null && t ? n = window.setTimeout(
|
|
3926
|
+
() => Ge.set(!0),
|
|
3927
|
+
t
|
|
3928
|
+
) : Ge.set(!0), xn(e).then(() => {
|
|
3929
|
+
ve.set(e);
|
|
3930
|
+
}).finally(() => {
|
|
3931
|
+
clearTimeout(n), Ge.set(!1);
|
|
3932
|
+
});
|
|
3933
|
+
}
|
|
3934
|
+
return ve.set(e);
|
|
3935
|
+
}, U = Li(Ci({}, ve), {
|
|
3936
|
+
set: Ni
|
|
3937
|
+
}), Se = (e) => {
|
|
3938
|
+
const t = /* @__PURE__ */ Object.create(null);
|
|
3939
|
+
return (r) => {
|
|
3940
|
+
const i = JSON.stringify(r);
|
|
3941
|
+
return i in t ? t[i] : t[i] = e(r);
|
|
3942
|
+
};
|
|
3943
|
+
};
|
|
3944
|
+
var Ii = Object.defineProperty, He = Object.getOwnPropertySymbols, En = Object.prototype.hasOwnProperty, vn = Object.prototype.propertyIsEnumerable, Bt = (e, t, n) => t in e ? Ii(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, rt = (e, t) => {
|
|
3945
|
+
for (var n in t || (t = {}))
|
|
3946
|
+
En.call(t, n) && Bt(e, n, t[n]);
|
|
3947
|
+
if (He)
|
|
3948
|
+
for (var n of He(t))
|
|
3949
|
+
vn.call(t, n) && Bt(e, n, t[n]);
|
|
3950
|
+
return e;
|
|
3951
|
+
}, J = (e, t) => {
|
|
3952
|
+
var n = {};
|
|
3953
|
+
for (var r in e)
|
|
3954
|
+
En.call(e, r) && t.indexOf(r) < 0 && (n[r] = e[r]);
|
|
3955
|
+
if (e != null && He)
|
|
3956
|
+
for (var r of He(e))
|
|
3957
|
+
t.indexOf(r) < 0 && vn.call(e, r) && (n[r] = e[r]);
|
|
3958
|
+
return n;
|
|
3959
|
+
};
|
|
3960
|
+
const se = (e, t) => {
|
|
3961
|
+
const { formats: n } = Z();
|
|
3962
|
+
if (e in n && t in n[e])
|
|
3963
|
+
return n[e][t];
|
|
3964
|
+
throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`);
|
|
3965
|
+
}, Mi = Se(
|
|
3966
|
+
(e) => {
|
|
3967
|
+
var t = e, { locale: n, format: r } = t, i = J(t, ["locale", "format"]);
|
|
3968
|
+
if (n == null)
|
|
3969
|
+
throw new Error('[svelte-i18n] A "locale" must be set to format numbers');
|
|
3970
|
+
return r && (i = se("number", r)), new Intl.NumberFormat(n, i);
|
|
3971
|
+
}
|
|
3972
|
+
), $i = Se(
|
|
3973
|
+
(e) => {
|
|
3974
|
+
var t = e, { locale: n, format: r } = t, i = J(t, ["locale", "format"]);
|
|
3975
|
+
if (n == null)
|
|
3976
|
+
throw new Error('[svelte-i18n] A "locale" must be set to format dates');
|
|
3977
|
+
return r ? i = se("date", r) : Object.keys(i).length === 0 && (i = se("date", "short")), new Intl.DateTimeFormat(n, i);
|
|
3978
|
+
}
|
|
3979
|
+
), Ri = Se(
|
|
3980
|
+
(e) => {
|
|
3981
|
+
var t = e, { locale: n, format: r } = t, i = J(t, ["locale", "format"]);
|
|
3982
|
+
if (n == null)
|
|
3983
|
+
throw new Error(
|
|
3984
|
+
'[svelte-i18n] A "locale" must be set to format time values'
|
|
3985
|
+
);
|
|
3986
|
+
return r ? i = se("time", r) : Object.keys(i).length === 0 && (i = se("time", "short")), new Intl.DateTimeFormat(n, i);
|
|
3987
|
+
}
|
|
3988
|
+
), Ui = (e = {}) => {
|
|
3989
|
+
var t = e, {
|
|
3990
|
+
locale: n = I()
|
|
3991
|
+
} = t, r = J(t, [
|
|
3992
|
+
"locale"
|
|
3993
|
+
]);
|
|
3994
|
+
return Mi(rt({ locale: n }, r));
|
|
3995
|
+
}, Di = (e = {}) => {
|
|
3996
|
+
var t = e, {
|
|
3997
|
+
locale: n = I()
|
|
3998
|
+
} = t, r = J(t, [
|
|
3999
|
+
"locale"
|
|
4000
|
+
]);
|
|
4001
|
+
return $i(rt({ locale: n }, r));
|
|
4002
|
+
}, Gi = (e = {}) => {
|
|
4003
|
+
var t = e, {
|
|
4004
|
+
locale: n = I()
|
|
4005
|
+
} = t, r = J(t, [
|
|
4006
|
+
"locale"
|
|
4007
|
+
]);
|
|
4008
|
+
return Ri(rt({ locale: n }, r));
|
|
4009
|
+
}, Fi = Se(
|
|
4010
|
+
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
4011
|
+
(e, t = I()) => new pn(e, t, Z().formats, {
|
|
4012
|
+
ignoreTag: Z().ignoreTag
|
|
4013
|
+
})
|
|
4014
|
+
), ji = (e, t = {}) => {
|
|
4015
|
+
var n, r, i, s;
|
|
4016
|
+
let o = t;
|
|
4017
|
+
typeof e == "object" && (o = e, e = o.id);
|
|
4018
|
+
const {
|
|
4019
|
+
values: a,
|
|
4020
|
+
locale: l = I(),
|
|
4021
|
+
default: u
|
|
4022
|
+
} = o;
|
|
4023
|
+
if (l == null)
|
|
4024
|
+
throw new Error(
|
|
4025
|
+
"[svelte-i18n] Cannot format a message without first setting the initial locale."
|
|
4026
|
+
);
|
|
4027
|
+
let h = gn(e, l);
|
|
4028
|
+
if (!h)
|
|
4029
|
+
h = (s = (i = (r = (n = Z()).handleMissingMessage) == null ? void 0 : r.call(n, { locale: l, id: e, defaultValue: u })) != null ? i : u) != null ? s : e;
|
|
4030
|
+
else if (typeof h != "string")
|
|
4031
|
+
return console.warn(
|
|
4032
|
+
`[svelte-i18n] Message with id "${e}" must be of type "string", found: "${typeof h}". Gettin its value through the "$format" method is deprecated; use the "json" method instead.`
|
|
4033
|
+
), h;
|
|
4034
|
+
if (!a)
|
|
4035
|
+
return h;
|
|
4036
|
+
let f = h;
|
|
4037
|
+
try {
|
|
4038
|
+
f = Fi(h, l).format(a);
|
|
4039
|
+
} catch (m) {
|
|
4040
|
+
m instanceof Error && console.warn(
|
|
4041
|
+
`[svelte-i18n] Message "${e}" has syntax error:`,
|
|
4042
|
+
m.message
|
|
4043
|
+
);
|
|
4044
|
+
}
|
|
4045
|
+
return f;
|
|
4046
|
+
}, ki = (e, t) => Gi(t).format(e), Vi = (e, t) => Di(t).format(e), Xi = (e, t) => Ui(t).format(e), zi = (e, t = I()) => gn(e, t), Wi = q([U, ae], () => ji);
|
|
4047
|
+
q([U], () => ki);
|
|
4048
|
+
q([U], () => Vi);
|
|
4049
|
+
q([U], () => Xi);
|
|
4050
|
+
q([U, ae], () => zi);
|
|
4051
|
+
function Tt(e, t) {
|
|
4052
|
+
_n(e, t);
|
|
4053
|
+
}
|
|
4054
|
+
function Zi(e) {
|
|
4055
|
+
Bi({
|
|
4056
|
+
fallbackLocale: "en"
|
|
4057
|
+
}), U.set(e);
|
|
4058
|
+
}
|
|
4059
|
+
const St = {
|
|
4060
|
+
en: {
|
|
4061
|
+
header: {
|
|
4062
|
+
general: "Cashier",
|
|
4063
|
+
deposit: "Deposit",
|
|
4064
|
+
withdraw: "Withdraw"
|
|
4065
|
+
}
|
|
4066
|
+
},
|
|
4067
|
+
tr: {
|
|
4068
|
+
header: {
|
|
4069
|
+
general: "Cashier",
|
|
4070
|
+
deposit: "Para Yatır",
|
|
4071
|
+
withdraw: "Çekim"
|
|
4072
|
+
}
|
|
4073
|
+
},
|
|
4074
|
+
"en-us": {
|
|
4075
|
+
header: {
|
|
4076
|
+
general: "Cashier",
|
|
4077
|
+
deposit: "Deposit",
|
|
4078
|
+
withdraw: "Withdraw"
|
|
4079
|
+
}
|
|
4080
|
+
}
|
|
4081
|
+
};
|
|
4082
|
+
function Qi(e) {
|
|
4083
|
+
In(e, "svelte-bbilb", ".CashierHeader{display:flex;position:relative;align-items:center;height:var(--mmw--header-height, 40px);background-color:var(--mmw--color-grey-105, #E8E9EB);width:100%;border-radius:6px 6px 0 0}.CashierHeaderLeftButton{color:var(--mmw--color-grey-10, #111);font-size:var(--emw--font-size-small, 14px);font-weight:var(--emw--font-weight-semibold, 500);margin-bottom:0;position:absolute;display:flex;align-items:center;font-variant:all-small-caps;height:32px;left:7px;gap:2px;cursor:pointer}.CashierHeaderLeftButton svg path{fill:var(--mmw--color-grey-10, #111)}.CashierHeaderLeftButton.disabled{pointer-events:none}.CashierHeaderTitle{color:var(--mmw--color-grey-10, #111);font-size:var(--emw--font-size-large, 18px);line-height:125%;font-weight:var(--emw--font-weight-semibold, 500);margin:auto;max-width:calc(100% - 150px);overflow:hidden;text-overflow:ellipsis}.CashierHeaderRightButton{position:absolute;display:flex;justify-content:space-between;align-items:center;padding:0 var(--emw--spacing-small, 12px);height:inherit;right:0;gap:var(--emw--spacing-small, 12px);cursor:pointer}");
|
|
4084
|
+
}
|
|
4085
|
+
const qi = (e) => ({}), At = (e) => ({}), Ji = (e) => ({}), Ot = (e) => ({}), Yi = (e) => ({}), Pt = (e) => ({});
|
|
4086
|
+
function Ct(e) {
|
|
4087
|
+
let t, n, r;
|
|
4088
|
+
return {
|
|
4089
|
+
c() {
|
|
4090
|
+
t = R("div"), t.innerHTML = '<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 20 20" fill="none"><path fill-rule="evenodd" clip-rule="evenodd" d="M12.5632 3.47782C12.4787 3.50138 12.3362 3.57505 12.2465 3.64153C12.1567 3.70806 10.8069 5.04216 9.24694 6.60626C6.11944 9.74192 6.25999 9.58204 6.25999 10.0037C6.25999 10.4243 6.13093 10.2784 9.34296 13.4903C12.4449 16.5921 12.356 16.5116 12.7278 16.5556C13.1855 16.6098 13.6413 16.2585 13.7301 15.783C13.7612 15.6164 13.7212 15.3395 13.6437 15.1847C13.6158 15.129 12.451 13.9396 11.0553 12.5417L8.51768 10L11.0553 7.45837C12.451 6.06048 13.6158 4.87114 13.6437 4.81544C13.7729 4.55751 13.7703 4.2006 13.6374 3.94274C13.4469 3.5731 12.9668 3.36532 12.5632 3.47782Z" fill="#111111"></path></svg>', Q(t, "class", "CashierHeaderLeftButton");
|
|
4091
|
+
},
|
|
4092
|
+
m(i, s) {
|
|
4093
|
+
$(i, t, s), n || (r = Vt(
|
|
4094
|
+
t,
|
|
4095
|
+
"click",
|
|
4096
|
+
/*back*/
|
|
4097
|
+
e[6]
|
|
4098
|
+
), n = !0);
|
|
4099
|
+
},
|
|
4100
|
+
p: B,
|
|
4101
|
+
d(i) {
|
|
4102
|
+
i && C(t), n = !1, r();
|
|
4103
|
+
}
|
|
4104
|
+
};
|
|
4105
|
+
}
|
|
4106
|
+
function Ki(e) {
|
|
4107
|
+
let t, n = (
|
|
4108
|
+
/*backButton*/
|
|
4109
|
+
e[1] && Ct(e)
|
|
4110
|
+
);
|
|
4111
|
+
return {
|
|
4112
|
+
c() {
|
|
4113
|
+
n && n.c(), t = kt();
|
|
4114
|
+
},
|
|
4115
|
+
m(r, i) {
|
|
4116
|
+
n && n.m(r, i), $(r, t, i);
|
|
4117
|
+
},
|
|
4118
|
+
p(r, i) {
|
|
4119
|
+
/*backButton*/
|
|
4120
|
+
r[1] ? n ? n.p(r, i) : (n = Ct(r), n.c(), n.m(t.parentNode, t)) : n && (n.d(1), n = null);
|
|
4121
|
+
},
|
|
4122
|
+
d(r) {
|
|
4123
|
+
r && C(t), n && n.d(r);
|
|
4124
|
+
}
|
|
4125
|
+
};
|
|
4126
|
+
}
|
|
4127
|
+
function es(e) {
|
|
4128
|
+
let t, n = (
|
|
4129
|
+
/*$_*/
|
|
4130
|
+
e[4](
|
|
4131
|
+
/*titleText*/
|
|
4132
|
+
e[2]
|
|
4133
|
+
) + ""
|
|
4134
|
+
), r;
|
|
4135
|
+
return {
|
|
4136
|
+
c() {
|
|
4137
|
+
t = R("span"), r = et(n), Q(t, "class", "CashierHeaderTitle");
|
|
4138
|
+
},
|
|
4139
|
+
m(i, s) {
|
|
4140
|
+
$(i, t, s), be(t, r);
|
|
4141
|
+
},
|
|
4142
|
+
p(i, s) {
|
|
4143
|
+
s & /*$_, titleText*/
|
|
4144
|
+
20 && n !== (n = /*$_*/
|
|
4145
|
+
i[4](
|
|
4146
|
+
/*titleText*/
|
|
4147
|
+
i[2]
|
|
4148
|
+
) + "") && Rn(r, n);
|
|
4149
|
+
},
|
|
4150
|
+
d(i) {
|
|
4151
|
+
i && C(t);
|
|
4152
|
+
}
|
|
4153
|
+
};
|
|
4154
|
+
}
|
|
4155
|
+
function Lt(e) {
|
|
4156
|
+
let t, n, r;
|
|
4157
|
+
return {
|
|
4158
|
+
c() {
|
|
4159
|
+
t = R("span"), t.innerHTML = '<svg xmlns="http://www.w3.org/2000/svg" width="13" height="20" viewBox="0 0 13 13" fill="none"><path d="M12.7711 0.229435C13.0582 0.517619 13.0755 0.973729 12.8215 1.28141L12.7711 1.33721L7.60685 6.50068L12.7711 11.6641C12.9128 11.8066 12.9944 11.998 12.999 12.1988C13.0035 12.3997 12.9308 12.5946 12.7957 12.7433C12.6606 12.892 12.4735 12.9832 12.2731 12.9979C12.0728 13.0126 11.8744 12.9497 11.7191 12.8223L11.6633 12.7719L6.49958 7.60791L1.3359 12.7719C1.19349 12.9136 1.00207 12.9952 0.801203 12.9998C0.60034 13.0044 0.405398 12.9316 0.256676 12.7965C0.107955 12.6614 0.0168256 12.4744 0.00212786 12.274C-0.0125699 12.0736 0.0502877 11.8753 0.177706 11.7199L0.228086 11.6641L5.3923 6.50068L0.228086 1.33721C0.0863637 1.1948 0.00478102 1.00338 0.000203544 0.802529C-0.00437393 0.601674 0.0684038 0.40674 0.203491 0.258024C0.338579 0.109308 0.525647 0.0181829 0.726024 0.00348576C0.9264 -0.0112114 1.12476 0.0516437 1.28011 0.179057L1.3359 0.229435L6.49958 5.39345L11.6633 0.229435C11.736 0.156695 11.8223 0.0989949 11.9174 0.0596283C12.0124 0.0202617 12.1143 0 12.2172 0C12.32 0 12.4219 0.0202617 12.5169 0.0596283C12.612 0.0989949 12.6983 0.156695 12.7711 0.229435Z" fill="#111111"></path></svg>', Q(t, "class", "CashierHeaderRightButton");
|
|
4160
|
+
},
|
|
4161
|
+
m(i, s) {
|
|
4162
|
+
$(i, t, s), n || (r = Vt(
|
|
4163
|
+
t,
|
|
4164
|
+
"click",
|
|
4165
|
+
/*close*/
|
|
4166
|
+
e[5]
|
|
4167
|
+
), n = !0);
|
|
4168
|
+
},
|
|
4169
|
+
p: B,
|
|
4170
|
+
d(i) {
|
|
4171
|
+
i && C(t), n = !1, r();
|
|
4172
|
+
}
|
|
4173
|
+
};
|
|
4174
|
+
}
|
|
4175
|
+
function ts(e) {
|
|
4176
|
+
let t, n = (
|
|
4177
|
+
/*closeButton*/
|
|
4178
|
+
e[3] && Lt(e)
|
|
4179
|
+
);
|
|
4180
|
+
return {
|
|
4181
|
+
c() {
|
|
4182
|
+
n && n.c(), t = kt();
|
|
4183
|
+
},
|
|
4184
|
+
m(r, i) {
|
|
4185
|
+
n && n.m(r, i), $(r, t, i);
|
|
4186
|
+
},
|
|
4187
|
+
p(r, i) {
|
|
4188
|
+
/*closeButton*/
|
|
4189
|
+
r[3] ? n ? n.p(r, i) : (n = Lt(r), n.c(), n.m(t.parentNode, t)) : n && (n.d(1), n = null);
|
|
4190
|
+
},
|
|
4191
|
+
d(r) {
|
|
4192
|
+
r && C(t), n && n.d(r);
|
|
4193
|
+
}
|
|
4194
|
+
};
|
|
4195
|
+
}
|
|
4196
|
+
function ns(e) {
|
|
4197
|
+
let t, n, r, i;
|
|
4198
|
+
const s = (
|
|
4199
|
+
/*#slots*/
|
|
4200
|
+
e[16].leftButton
|
|
4201
|
+
), o = Oe(
|
|
4202
|
+
s,
|
|
4203
|
+
e,
|
|
4204
|
+
/*$$scope*/
|
|
4205
|
+
e[15],
|
|
4206
|
+
Pt
|
|
4207
|
+
), a = o || Ki(e), l = (
|
|
4208
|
+
/*#slots*/
|
|
4209
|
+
e[16].title
|
|
4210
|
+
), u = Oe(
|
|
4211
|
+
l,
|
|
4212
|
+
e,
|
|
4213
|
+
/*$$scope*/
|
|
4214
|
+
e[15],
|
|
4215
|
+
Ot
|
|
4216
|
+
), h = u || es(e), f = (
|
|
4217
|
+
/*#slots*/
|
|
4218
|
+
e[16].rightButton
|
|
4219
|
+
), m = Oe(
|
|
4220
|
+
f,
|
|
4221
|
+
e,
|
|
4222
|
+
/*$$scope*/
|
|
4223
|
+
e[15],
|
|
4224
|
+
At
|
|
4225
|
+
), d = m || ts(e);
|
|
4226
|
+
return {
|
|
4227
|
+
c() {
|
|
4228
|
+
t = R("div"), a.c(), n = lt(), h.c(), r = lt(), d.c(), Q(t, "class", "CashierHeader");
|
|
4229
|
+
},
|
|
4230
|
+
m(c, p) {
|
|
4231
|
+
$(c, t, p), a.m(t, null), be(t, n), h.m(t, null), be(t, r), d.m(t, null), e[17](t), i = !0;
|
|
4232
|
+
},
|
|
4233
|
+
p(c, [p]) {
|
|
4234
|
+
o ? o.p && (!i || p & /*$$scope*/
|
|
4235
|
+
32768) && Ce(
|
|
4236
|
+
o,
|
|
4237
|
+
s,
|
|
4238
|
+
c,
|
|
4239
|
+
/*$$scope*/
|
|
4240
|
+
c[15],
|
|
4241
|
+
i ? Pe(
|
|
4242
|
+
s,
|
|
4243
|
+
/*$$scope*/
|
|
4244
|
+
c[15],
|
|
4245
|
+
p,
|
|
4246
|
+
Yi
|
|
4247
|
+
) : Le(
|
|
4248
|
+
/*$$scope*/
|
|
4249
|
+
c[15]
|
|
4250
|
+
),
|
|
4251
|
+
Pt
|
|
4252
|
+
) : a.p && (!i || p & /*backButton*/
|
|
4253
|
+
2) && a.p(c, i ? p : -1), u ? u.p && (!i || p & /*$$scope*/
|
|
4254
|
+
32768) && Ce(
|
|
4255
|
+
u,
|
|
4256
|
+
l,
|
|
4257
|
+
c,
|
|
4258
|
+
/*$$scope*/
|
|
4259
|
+
c[15],
|
|
4260
|
+
i ? Pe(
|
|
4261
|
+
l,
|
|
4262
|
+
/*$$scope*/
|
|
4263
|
+
c[15],
|
|
4264
|
+
p,
|
|
4265
|
+
Ji
|
|
4266
|
+
) : Le(
|
|
4267
|
+
/*$$scope*/
|
|
4268
|
+
c[15]
|
|
4269
|
+
),
|
|
4270
|
+
Ot
|
|
4271
|
+
) : h.p && (!i || p & /*$_, titleText*/
|
|
4272
|
+
20) && h.p(c, i ? p : -1), m ? m.p && (!i || p & /*$$scope*/
|
|
4273
|
+
32768) && Ce(
|
|
4274
|
+
m,
|
|
4275
|
+
f,
|
|
4276
|
+
c,
|
|
4277
|
+
/*$$scope*/
|
|
4278
|
+
c[15],
|
|
4279
|
+
i ? Pe(
|
|
4280
|
+
f,
|
|
4281
|
+
/*$$scope*/
|
|
4282
|
+
c[15],
|
|
4283
|
+
p,
|
|
4284
|
+
qi
|
|
4285
|
+
) : Le(
|
|
4286
|
+
/*$$scope*/
|
|
4287
|
+
c[15]
|
|
4288
|
+
),
|
|
4289
|
+
At
|
|
4290
|
+
) : d.p && (!i || p & /*closeButton*/
|
|
4291
|
+
8) && d.p(c, i ? p : -1);
|
|
4292
|
+
},
|
|
4293
|
+
i(c) {
|
|
4294
|
+
i || (me(a, c), me(h, c), me(d, c), i = !0);
|
|
4295
|
+
},
|
|
4296
|
+
o(c) {
|
|
4297
|
+
Ie(a, c), Ie(h, c), Ie(d, c), i = !1;
|
|
4298
|
+
},
|
|
4299
|
+
d(c) {
|
|
4300
|
+
c && C(t), a.d(c), h.d(c), d.d(c), e[17](null);
|
|
4301
|
+
}
|
|
4302
|
+
};
|
|
4303
|
+
}
|
|
4304
|
+
function rs(e, t, n) {
|
|
4305
|
+
let r;
|
|
4306
|
+
Nn(e, Wi, (_) => n(4, r = _));
|
|
4307
|
+
let { $$slots: i = {}, $$scope: s } = t, { clientstyling: o = "" } = t, { clientstylingurl: a = "" } = t, { translationurl: l = "" } = t, { showbackbutton: u = "" } = t, { title: h = "header.general" } = t, { lang: f = "en" } = t, { showclosebutton: m = "" } = t, { mbsource: d = "" } = t, c, p = !1, E, v = !1;
|
|
4308
|
+
const T = () => {
|
|
4309
|
+
fetch(l).then((_) => _.json()).then((_) => {
|
|
4310
|
+
Object.keys(_).forEach((it) => {
|
|
4311
|
+
Tt(it, _[it]);
|
|
4312
|
+
});
|
|
4313
|
+
}).catch((_) => {
|
|
4314
|
+
console.log(_);
|
|
4315
|
+
});
|
|
4316
|
+
};
|
|
4317
|
+
Object.keys(St).forEach((_) => {
|
|
4318
|
+
Tt(_, St[_]);
|
|
4319
|
+
});
|
|
4320
|
+
const H = () => {
|
|
4321
|
+
Zi(f);
|
|
4322
|
+
}, A = () => {
|
|
4323
|
+
window.postMessage({ type: "CloseCashier" }, window.location.href);
|
|
4324
|
+
}, P = () => {
|
|
4325
|
+
window.postMessage({ type: "BackCashier" }, window.location.href);
|
|
4326
|
+
}, D = () => {
|
|
4327
|
+
n(1, p = !!u && u !== "false");
|
|
4328
|
+
}, he = () => {
|
|
4329
|
+
n(3, v = !!m && m !== "false");
|
|
4330
|
+
}, wn = () => {
|
|
4331
|
+
n(2, E = h || "header.general");
|
|
4332
|
+
};
|
|
4333
|
+
Vn(() => () => {
|
|
4334
|
+
});
|
|
4335
|
+
function Bn(_) {
|
|
4336
|
+
je[_ ? "unshift" : "push"](() => {
|
|
4337
|
+
c = _, n(0, c);
|
|
4338
|
+
});
|
|
4339
|
+
}
|
|
4340
|
+
return e.$$set = (_) => {
|
|
4341
|
+
"clientstyling" in _ && n(7, o = _.clientstyling), "clientstylingurl" in _ && n(8, a = _.clientstylingurl), "translationurl" in _ && n(9, l = _.translationurl), "showbackbutton" in _ && n(10, u = _.showbackbutton), "title" in _ && n(11, h = _.title), "lang" in _ && n(12, f = _.lang), "showclosebutton" in _ && n(13, m = _.showclosebutton), "mbsource" in _ && n(14, d = _.mbsource), "$$scope" in _ && n(15, s = _.$$scope);
|
|
4342
|
+
}, e.$$.update = () => {
|
|
4343
|
+
e.$$.dirty & /*lang*/
|
|
4344
|
+
4096 && f && H(), e.$$.dirty & /*lang, title*/
|
|
4345
|
+
6144 && f && h && wn(), e.$$.dirty & /*clientstyling, customStylingContainer*/
|
|
4346
|
+
129 && o && c && er(c, o), e.$$.dirty & /*clientstylingurl, customStylingContainer*/
|
|
4347
|
+
257 && a && c && tr(c, a), e.$$.dirty & /*mbsource, customStylingContainer*/
|
|
4348
|
+
16385 && d && c && nr(c, `${d}.Style`), e.$$.dirty & /*lang, translationurl*/
|
|
4349
|
+
4608 && f && l && T(), e.$$.dirty & /*showbackbutton*/
|
|
4350
|
+
1024 && u && D(), e.$$.dirty & /*showclosebutton*/
|
|
4351
|
+
8192 && m && he();
|
|
4352
|
+
}, [
|
|
4353
|
+
c,
|
|
4354
|
+
p,
|
|
4355
|
+
E,
|
|
4356
|
+
v,
|
|
4357
|
+
r,
|
|
4358
|
+
A,
|
|
4359
|
+
P,
|
|
4360
|
+
o,
|
|
4361
|
+
a,
|
|
4362
|
+
l,
|
|
4363
|
+
u,
|
|
4364
|
+
h,
|
|
4365
|
+
f,
|
|
4366
|
+
m,
|
|
4367
|
+
d,
|
|
4368
|
+
s,
|
|
4369
|
+
i,
|
|
4370
|
+
Bn
|
|
4371
|
+
];
|
|
4372
|
+
}
|
|
4373
|
+
class Hn extends Yn {
|
|
4374
|
+
constructor(t) {
|
|
4375
|
+
super(), qn(
|
|
4376
|
+
this,
|
|
4377
|
+
t,
|
|
4378
|
+
rs,
|
|
4379
|
+
ns,
|
|
4380
|
+
Mt,
|
|
4381
|
+
{
|
|
4382
|
+
clientstyling: 7,
|
|
4383
|
+
clientstylingurl: 8,
|
|
4384
|
+
translationurl: 9,
|
|
4385
|
+
showbackbutton: 10,
|
|
4386
|
+
title: 11,
|
|
4387
|
+
lang: 12,
|
|
4388
|
+
showclosebutton: 13,
|
|
4389
|
+
mbsource: 14
|
|
4390
|
+
},
|
|
4391
|
+
Qi
|
|
4392
|
+
);
|
|
4393
|
+
}
|
|
4394
|
+
get clientstyling() {
|
|
4395
|
+
return this.$$.ctx[7];
|
|
4396
|
+
}
|
|
4397
|
+
set clientstyling(t) {
|
|
4398
|
+
this.$$set({ clientstyling: t }), O();
|
|
4399
|
+
}
|
|
4400
|
+
get clientstylingurl() {
|
|
4401
|
+
return this.$$.ctx[8];
|
|
4402
|
+
}
|
|
4403
|
+
set clientstylingurl(t) {
|
|
4404
|
+
this.$$set({ clientstylingurl: t }), O();
|
|
4405
|
+
}
|
|
4406
|
+
get translationurl() {
|
|
4407
|
+
return this.$$.ctx[9];
|
|
4408
|
+
}
|
|
4409
|
+
set translationurl(t) {
|
|
4410
|
+
this.$$set({ translationurl: t }), O();
|
|
4411
|
+
}
|
|
4412
|
+
get showbackbutton() {
|
|
4413
|
+
return this.$$.ctx[10];
|
|
4414
|
+
}
|
|
4415
|
+
set showbackbutton(t) {
|
|
4416
|
+
this.$$set({ showbackbutton: t }), O();
|
|
4417
|
+
}
|
|
4418
|
+
get title() {
|
|
4419
|
+
return this.$$.ctx[11];
|
|
4420
|
+
}
|
|
4421
|
+
set title(t) {
|
|
4422
|
+
this.$$set({ title: t }), O();
|
|
4423
|
+
}
|
|
4424
|
+
get lang() {
|
|
4425
|
+
return this.$$.ctx[12];
|
|
4426
|
+
}
|
|
4427
|
+
set lang(t) {
|
|
4428
|
+
this.$$set({ lang: t }), O();
|
|
4429
|
+
}
|
|
4430
|
+
get showclosebutton() {
|
|
4431
|
+
return this.$$.ctx[13];
|
|
4432
|
+
}
|
|
4433
|
+
set showclosebutton(t) {
|
|
4434
|
+
this.$$set({ showclosebutton: t }), O();
|
|
4435
|
+
}
|
|
4436
|
+
get mbsource() {
|
|
4437
|
+
return this.$$.ctx[14];
|
|
4438
|
+
}
|
|
4439
|
+
set mbsource(t) {
|
|
4440
|
+
this.$$set({ mbsource: t }), O();
|
|
4441
|
+
}
|
|
4442
|
+
}
|
|
4443
|
+
Jn(Hn, { clientstyling: {}, clientstylingurl: {}, translationurl: {}, showbackbutton: {}, title: {}, lang: {}, showclosebutton: {}, mbsource: {} }, ["leftButton", "title", "rightButton"], [], !0);
|
|
4444
|
+
const xs = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
4445
|
+
__proto__: null,
|
|
4446
|
+
default: Hn
|
|
4447
|
+
}, Symbol.toStringTag, { value: "Module" }));
|
|
4448
|
+
export {
|
|
4449
|
+
U as $,
|
|
4450
|
+
ir as A,
|
|
4451
|
+
Nt as B,
|
|
4452
|
+
Bi as C,
|
|
4453
|
+
_n as D,
|
|
4454
|
+
Ie as E,
|
|
4455
|
+
ds as F,
|
|
4456
|
+
me as G,
|
|
4457
|
+
Nn as H,
|
|
4458
|
+
ms as I,
|
|
4459
|
+
hs as J,
|
|
4460
|
+
re as K,
|
|
4461
|
+
ps as L,
|
|
4462
|
+
gs as M,
|
|
4463
|
+
kt as N,
|
|
4464
|
+
Wi as O,
|
|
4465
|
+
os as P,
|
|
4466
|
+
ss as Q,
|
|
4467
|
+
_s as R,
|
|
4468
|
+
Yn as S,
|
|
4469
|
+
Wn as T,
|
|
4470
|
+
Zn as U,
|
|
4471
|
+
ls as V,
|
|
4472
|
+
cs as W,
|
|
4473
|
+
xs as X,
|
|
4474
|
+
In as a,
|
|
4475
|
+
R as b,
|
|
4476
|
+
Jn as c,
|
|
4477
|
+
us as d,
|
|
4478
|
+
bs as e,
|
|
4479
|
+
O as f,
|
|
4480
|
+
lt as g,
|
|
4481
|
+
Q as h,
|
|
4482
|
+
qn as i,
|
|
4483
|
+
$ as j,
|
|
4484
|
+
be as k,
|
|
4485
|
+
Vt as l,
|
|
4486
|
+
C as m,
|
|
4487
|
+
B as n,
|
|
4488
|
+
as as o,
|
|
4489
|
+
Vn as p,
|
|
4490
|
+
fs as q,
|
|
4491
|
+
M as r,
|
|
4492
|
+
Mt as s,
|
|
4493
|
+
et as t,
|
|
4494
|
+
Rn as u,
|
|
4495
|
+
je as v,
|
|
4496
|
+
er as w,
|
|
4497
|
+
tr as x,
|
|
4498
|
+
nr as y,
|
|
4499
|
+
ys as z
|
|
4500
|
+
};
|