@everymatrix/cashier-header 1.76.3 → 1.76.5
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-BtBIN1GD.cjs +5 -0
- package/components/{CashierHeader-CDYMzcBx.js → CashierHeader-HTo_eoDZ.js} +1034 -1032
- package/components/{CashierHeader-Ce6RZ-9Q.js → CashierHeader-sXl0iK6D.js} +1137 -1135
- package/es2015/cashier-header.cjs +1 -1
- package/es2015/cashier-header.js +1 -1
- package/esnext/cashier-header.js +1 -1
- package/package.json +1 -1
- package/components/CashierHeader-3y-CVhjE.cjs +0 -18
|
@@ -1,122 +1,122 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var
|
|
4
|
-
var
|
|
5
|
-
var
|
|
6
|
-
for (var
|
|
7
|
-
|
|
8
|
-
if (
|
|
9
|
-
for (var
|
|
10
|
-
|
|
1
|
+
var ir = Object.defineProperty, sr = Object.defineProperties;
|
|
2
|
+
var or = Object.getOwnPropertyDescriptors;
|
|
3
|
+
var Je = Object.getOwnPropertySymbols;
|
|
4
|
+
var ar = Object.prototype.hasOwnProperty, ur = Object.prototype.propertyIsEnumerable;
|
|
5
|
+
var xe = (e, t, r) => t in e ? ir(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, qe = (e, t) => {
|
|
6
|
+
for (var r in t || (t = {}))
|
|
7
|
+
ar.call(t, r) && xe(e, r, t[r]);
|
|
8
|
+
if (Je)
|
|
9
|
+
for (var r of Je(t))
|
|
10
|
+
ur.call(t, r) && xe(e, r, t[r]);
|
|
11
11
|
return e;
|
|
12
|
-
},
|
|
13
|
-
var B = (e, t,
|
|
14
|
-
var
|
|
12
|
+
}, Ye = (e, t) => sr(e, or(t));
|
|
13
|
+
var B = (e, t, r) => (xe(e, typeof t != "symbol" ? t + "" : t, r), r);
|
|
14
|
+
var Ke = (e, t, r) => new Promise((n, i) => {
|
|
15
15
|
var s = (l) => {
|
|
16
16
|
try {
|
|
17
|
-
|
|
17
|
+
o(r.next(l));
|
|
18
18
|
} catch (u) {
|
|
19
19
|
i(u);
|
|
20
20
|
}
|
|
21
|
-
},
|
|
21
|
+
}, a = (l) => {
|
|
22
22
|
try {
|
|
23
|
-
|
|
23
|
+
o(r.throw(l));
|
|
24
24
|
} catch (u) {
|
|
25
25
|
i(u);
|
|
26
26
|
}
|
|
27
|
-
},
|
|
28
|
-
|
|
27
|
+
}, o = (l) => l.done ? n(l.value) : Promise.resolve(l.value).then(s, a);
|
|
28
|
+
o((r = r.apply(e, t)).next());
|
|
29
29
|
});
|
|
30
30
|
function T() {
|
|
31
31
|
}
|
|
32
|
-
function
|
|
33
|
-
for (const
|
|
34
|
-
e[
|
|
32
|
+
function hr(e, t) {
|
|
33
|
+
for (const r in t)
|
|
34
|
+
e[r] = t[r];
|
|
35
35
|
return (
|
|
36
36
|
/** @type {T & S} */
|
|
37
37
|
e
|
|
38
38
|
);
|
|
39
39
|
}
|
|
40
|
-
function
|
|
40
|
+
function Bt(e) {
|
|
41
41
|
return e();
|
|
42
42
|
}
|
|
43
|
-
function
|
|
43
|
+
function et() {
|
|
44
44
|
return /* @__PURE__ */ Object.create(null);
|
|
45
45
|
}
|
|
46
|
-
function
|
|
47
|
-
e.forEach(
|
|
46
|
+
function te(e) {
|
|
47
|
+
e.forEach(Bt);
|
|
48
48
|
}
|
|
49
|
-
function
|
|
49
|
+
function Xe(e) {
|
|
50
50
|
return typeof e == "function";
|
|
51
51
|
}
|
|
52
|
-
function
|
|
52
|
+
function Tt(e, t) {
|
|
53
53
|
return e != e ? t == t : e !== t || e && typeof e == "object" || typeof e == "function";
|
|
54
54
|
}
|
|
55
|
-
function
|
|
55
|
+
function lr(e) {
|
|
56
56
|
return Object.keys(e).length === 0;
|
|
57
57
|
}
|
|
58
|
-
function
|
|
58
|
+
function wt(e, ...t) {
|
|
59
59
|
if (e == null) {
|
|
60
|
-
for (const
|
|
61
|
-
|
|
60
|
+
for (const n of t)
|
|
61
|
+
n(void 0);
|
|
62
62
|
return T;
|
|
63
63
|
}
|
|
64
|
-
const
|
|
65
|
-
return
|
|
64
|
+
const r = e.subscribe(...t);
|
|
65
|
+
return r.unsubscribe ? () => r.unsubscribe() : r;
|
|
66
66
|
}
|
|
67
|
-
function
|
|
68
|
-
e.$$.on_destroy.push(
|
|
67
|
+
function fr(e, t, r) {
|
|
68
|
+
e.$$.on_destroy.push(wt(t, r));
|
|
69
69
|
}
|
|
70
|
-
function
|
|
70
|
+
function ve(e, t, r, n) {
|
|
71
71
|
if (e) {
|
|
72
|
-
const i =
|
|
72
|
+
const i = St(e, t, r, n);
|
|
73
73
|
return e[0](i);
|
|
74
74
|
}
|
|
75
75
|
}
|
|
76
|
-
function
|
|
77
|
-
return e[1] &&
|
|
76
|
+
function St(e, t, r, n) {
|
|
77
|
+
return e[1] && n ? hr(r.ctx.slice(), e[1](n(t))) : r.ctx;
|
|
78
78
|
}
|
|
79
|
-
function
|
|
80
|
-
if (e[2] &&
|
|
81
|
-
const i = e[2](r
|
|
79
|
+
function He(e, t, r, n) {
|
|
80
|
+
if (e[2] && n) {
|
|
81
|
+
const i = e[2](n(r));
|
|
82
82
|
if (t.dirty === void 0)
|
|
83
83
|
return i;
|
|
84
84
|
if (typeof i == "object") {
|
|
85
|
-
const s = [],
|
|
86
|
-
for (let
|
|
87
|
-
s[
|
|
85
|
+
const s = [], a = Math.max(t.dirty.length, i.length);
|
|
86
|
+
for (let o = 0; o < a; o += 1)
|
|
87
|
+
s[o] = t.dirty[o] | i[o];
|
|
88
88
|
return s;
|
|
89
89
|
}
|
|
90
90
|
return t.dirty | i;
|
|
91
91
|
}
|
|
92
92
|
return t.dirty;
|
|
93
93
|
}
|
|
94
|
-
function
|
|
94
|
+
function Be(e, t, r, n, i, s) {
|
|
95
95
|
if (i) {
|
|
96
|
-
const
|
|
97
|
-
e.p(
|
|
96
|
+
const a = St(t, r, n, s);
|
|
97
|
+
e.p(a, i);
|
|
98
98
|
}
|
|
99
99
|
}
|
|
100
|
-
function
|
|
100
|
+
function Te(e) {
|
|
101
101
|
if (e.ctx.length > 32) {
|
|
102
|
-
const t = [],
|
|
103
|
-
for (let
|
|
104
|
-
t[
|
|
102
|
+
const t = [], r = e.ctx.length / 32;
|
|
103
|
+
for (let n = 0; n < r; n++)
|
|
104
|
+
t[n] = -1;
|
|
105
105
|
return t;
|
|
106
106
|
}
|
|
107
107
|
return -1;
|
|
108
108
|
}
|
|
109
|
-
function
|
|
109
|
+
function ce(e, t) {
|
|
110
110
|
e.appendChild(t);
|
|
111
111
|
}
|
|
112
|
-
function
|
|
113
|
-
const
|
|
114
|
-
if (!
|
|
115
|
-
const i =
|
|
116
|
-
i.id = t, i.textContent =
|
|
112
|
+
function cr(e, t, r) {
|
|
113
|
+
const n = mr(e);
|
|
114
|
+
if (!n.getElementById(t)) {
|
|
115
|
+
const i = W("style");
|
|
116
|
+
i.id = t, i.textContent = r, pr(n, i);
|
|
117
117
|
}
|
|
118
118
|
}
|
|
119
|
-
function
|
|
119
|
+
function mr(e) {
|
|
120
120
|
if (!e)
|
|
121
121
|
return document;
|
|
122
122
|
const t = e.getRootNode ? e.getRootNode() : e.ownerDocument;
|
|
@@ -126,144 +126,144 @@ function mn(e) {
|
|
|
126
126
|
t
|
|
127
127
|
) : e.ownerDocument;
|
|
128
128
|
}
|
|
129
|
-
function
|
|
130
|
-
return
|
|
129
|
+
function pr(e, t) {
|
|
130
|
+
return ce(
|
|
131
131
|
/** @type {Document} */
|
|
132
132
|
e.head || e,
|
|
133
133
|
t
|
|
134
134
|
), t.sheet;
|
|
135
135
|
}
|
|
136
|
-
function
|
|
137
|
-
e.insertBefore(t,
|
|
136
|
+
function M(e, t, r) {
|
|
137
|
+
e.insertBefore(t, r || null);
|
|
138
138
|
}
|
|
139
|
-
function
|
|
139
|
+
function L(e) {
|
|
140
140
|
e.parentNode && e.parentNode.removeChild(e);
|
|
141
141
|
}
|
|
142
|
-
function
|
|
142
|
+
function W(e) {
|
|
143
143
|
return document.createElement(e);
|
|
144
144
|
}
|
|
145
|
-
function
|
|
145
|
+
function We(e) {
|
|
146
146
|
return document.createTextNode(e);
|
|
147
147
|
}
|
|
148
|
-
function
|
|
149
|
-
return
|
|
148
|
+
function tt() {
|
|
149
|
+
return We(" ");
|
|
150
150
|
}
|
|
151
|
-
function
|
|
152
|
-
return
|
|
151
|
+
function At() {
|
|
152
|
+
return We("");
|
|
153
153
|
}
|
|
154
|
-
function
|
|
155
|
-
return e.addEventListener(t,
|
|
154
|
+
function Ot(e, t, r, n) {
|
|
155
|
+
return e.addEventListener(t, r, n), () => e.removeEventListener(t, r, n);
|
|
156
156
|
}
|
|
157
|
-
function
|
|
158
|
-
|
|
157
|
+
function re(e, t, r) {
|
|
158
|
+
r == null ? e.removeAttribute(t) : e.getAttribute(t) !== r && e.setAttribute(t, r);
|
|
159
159
|
}
|
|
160
|
-
function
|
|
160
|
+
function dr(e) {
|
|
161
161
|
return Array.from(e.childNodes);
|
|
162
162
|
}
|
|
163
|
-
function
|
|
163
|
+
function br(e, t) {
|
|
164
164
|
t = "" + t, e.data !== t && (e.data = /** @type {string} */
|
|
165
165
|
t);
|
|
166
166
|
}
|
|
167
|
-
function
|
|
167
|
+
function gr(e) {
|
|
168
168
|
const t = {};
|
|
169
169
|
return e.childNodes.forEach(
|
|
170
170
|
/** @param {Element} node */
|
|
171
|
-
(
|
|
172
|
-
t[
|
|
171
|
+
(r) => {
|
|
172
|
+
t[r.slot || "default"] = !0;
|
|
173
173
|
}
|
|
174
174
|
), t;
|
|
175
175
|
}
|
|
176
|
-
let
|
|
177
|
-
function
|
|
178
|
-
|
|
176
|
+
let Y;
|
|
177
|
+
function q(e) {
|
|
178
|
+
Y = e;
|
|
179
179
|
}
|
|
180
|
-
function
|
|
181
|
-
if (!
|
|
180
|
+
function _r() {
|
|
181
|
+
if (!Y)
|
|
182
182
|
throw new Error("Function called outside component initialization");
|
|
183
|
-
return
|
|
183
|
+
return Y;
|
|
184
184
|
}
|
|
185
|
-
function
|
|
186
|
-
|
|
185
|
+
function yr(e) {
|
|
186
|
+
_r().$$.on_mount.push(e);
|
|
187
187
|
}
|
|
188
|
-
const
|
|
189
|
-
let
|
|
190
|
-
const
|
|
191
|
-
let
|
|
192
|
-
function
|
|
193
|
-
|
|
188
|
+
const G = [], Ie = [];
|
|
189
|
+
let F = [];
|
|
190
|
+
const rt = [], Er = /* @__PURE__ */ Promise.resolve();
|
|
191
|
+
let Me = !1;
|
|
192
|
+
function xr() {
|
|
193
|
+
Me || (Me = !0, Er.then(w));
|
|
194
194
|
}
|
|
195
|
-
function
|
|
196
|
-
|
|
195
|
+
function $e(e) {
|
|
196
|
+
F.push(e);
|
|
197
197
|
}
|
|
198
|
-
const
|
|
199
|
-
let
|
|
198
|
+
const we = /* @__PURE__ */ new Set();
|
|
199
|
+
let U = 0;
|
|
200
200
|
function w() {
|
|
201
|
-
if (
|
|
201
|
+
if (U !== 0)
|
|
202
202
|
return;
|
|
203
|
-
const e =
|
|
203
|
+
const e = Y;
|
|
204
204
|
do {
|
|
205
205
|
try {
|
|
206
|
-
for (;
|
|
207
|
-
const t =
|
|
208
|
-
|
|
206
|
+
for (; U < G.length; ) {
|
|
207
|
+
const t = G[U];
|
|
208
|
+
U++, q(t), vr(t.$$);
|
|
209
209
|
}
|
|
210
210
|
} catch (t) {
|
|
211
|
-
throw
|
|
211
|
+
throw G.length = 0, U = 0, t;
|
|
212
212
|
}
|
|
213
|
-
for (
|
|
214
|
-
|
|
215
|
-
for (let t = 0; t <
|
|
216
|
-
const
|
|
217
|
-
|
|
213
|
+
for (q(null), G.length = 0, U = 0; Ie.length; )
|
|
214
|
+
Ie.pop()();
|
|
215
|
+
for (let t = 0; t < F.length; t += 1) {
|
|
216
|
+
const r = F[t];
|
|
217
|
+
we.has(r) || (we.add(r), r());
|
|
218
218
|
}
|
|
219
|
-
|
|
220
|
-
} while (
|
|
221
|
-
for (;
|
|
222
|
-
|
|
223
|
-
|
|
219
|
+
F.length = 0;
|
|
220
|
+
} while (G.length);
|
|
221
|
+
for (; rt.length; )
|
|
222
|
+
rt.pop()();
|
|
223
|
+
Me = !1, we.clear(), q(e);
|
|
224
224
|
}
|
|
225
|
-
function
|
|
225
|
+
function vr(e) {
|
|
226
226
|
if (e.fragment !== null) {
|
|
227
|
-
e.update(),
|
|
227
|
+
e.update(), te(e.before_update);
|
|
228
228
|
const t = e.dirty;
|
|
229
|
-
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(
|
|
229
|
+
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach($e);
|
|
230
230
|
}
|
|
231
231
|
}
|
|
232
|
-
function
|
|
233
|
-
const t = [],
|
|
234
|
-
|
|
232
|
+
function Hr(e) {
|
|
233
|
+
const t = [], r = [];
|
|
234
|
+
F.forEach((n) => e.indexOf(n) === -1 ? t.push(n) : r.push(n)), r.forEach((n) => n()), F = t;
|
|
235
235
|
}
|
|
236
|
-
const
|
|
237
|
-
let
|
|
238
|
-
function
|
|
239
|
-
e && e.i && (
|
|
236
|
+
const ae = /* @__PURE__ */ new Set();
|
|
237
|
+
let Br;
|
|
238
|
+
function ue(e, t) {
|
|
239
|
+
e && e.i && (ae.delete(e), e.i(t));
|
|
240
240
|
}
|
|
241
|
-
function
|
|
241
|
+
function Se(e, t, r, n) {
|
|
242
242
|
if (e && e.o) {
|
|
243
|
-
if (
|
|
243
|
+
if (ae.has(e))
|
|
244
244
|
return;
|
|
245
|
-
|
|
246
|
-
|
|
245
|
+
ae.add(e), Br.c.push(() => {
|
|
246
|
+
ae.delete(e);
|
|
247
247
|
}), e.o(t);
|
|
248
248
|
}
|
|
249
249
|
}
|
|
250
|
-
function
|
|
251
|
-
const { fragment:
|
|
252
|
-
|
|
253
|
-
const s = e.$$.on_mount.map(
|
|
254
|
-
e.$$.on_destroy ? e.$$.on_destroy.push(...s) :
|
|
255
|
-
}), i.forEach(
|
|
250
|
+
function Tr(e, t, r) {
|
|
251
|
+
const { fragment: n, after_update: i } = e.$$;
|
|
252
|
+
n && n.m(t, r), $e(() => {
|
|
253
|
+
const s = e.$$.on_mount.map(Bt).filter(Xe);
|
|
254
|
+
e.$$.on_destroy ? e.$$.on_destroy.push(...s) : te(s), e.$$.on_mount = [];
|
|
255
|
+
}), i.forEach($e);
|
|
256
256
|
}
|
|
257
|
-
function
|
|
258
|
-
const
|
|
259
|
-
|
|
257
|
+
function wr(e, t) {
|
|
258
|
+
const r = e.$$;
|
|
259
|
+
r.fragment !== null && (Hr(r.after_update), te(r.on_destroy), r.fragment && r.fragment.d(t), r.on_destroy = r.fragment = null, r.ctx = []);
|
|
260
260
|
}
|
|
261
|
-
function
|
|
262
|
-
e.$$.dirty[0] === -1 && (
|
|
261
|
+
function Sr(e, t) {
|
|
262
|
+
e.$$.dirty[0] === -1 && (G.push(e), xr(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
|
|
263
263
|
}
|
|
264
|
-
function
|
|
265
|
-
const l =
|
|
266
|
-
|
|
264
|
+
function Ar(e, t, r, n, i, s, a = null, o = [-1]) {
|
|
265
|
+
const l = Y;
|
|
266
|
+
q(e);
|
|
267
267
|
const u = e.$$ = {
|
|
268
268
|
fragment: null,
|
|
269
269
|
ctx: [],
|
|
@@ -271,7 +271,7 @@ function An(e, t, n, r, i, s, o = null, a = [-1]) {
|
|
|
271
271
|
props: s,
|
|
272
272
|
update: T,
|
|
273
273
|
not_equal: i,
|
|
274
|
-
bound:
|
|
274
|
+
bound: et(),
|
|
275
275
|
// lifecycle
|
|
276
276
|
on_mount: [],
|
|
277
277
|
on_destroy: [],
|
|
@@ -280,29 +280,29 @@ function An(e, t, n, r, i, s, o = null, a = [-1]) {
|
|
|
280
280
|
after_update: [],
|
|
281
281
|
context: new Map(t.context || (l ? l.$$.context : [])),
|
|
282
282
|
// everything else
|
|
283
|
-
callbacks:
|
|
284
|
-
dirty:
|
|
283
|
+
callbacks: et(),
|
|
284
|
+
dirty: o,
|
|
285
285
|
skip_bound: !1,
|
|
286
286
|
root: t.target || l.$$.root
|
|
287
287
|
};
|
|
288
|
-
|
|
288
|
+
a && a(u.root);
|
|
289
289
|
let h = !1;
|
|
290
|
-
if (u.ctx =
|
|
291
|
-
const f =
|
|
292
|
-
return u.ctx && i(u.ctx[c], u.ctx[c] = f) && (!u.skip_bound && u.bound[c] && u.bound[c](f), h &&
|
|
293
|
-
}), u.update(), h = !0,
|
|
290
|
+
if (u.ctx = r ? r(e, t.props || {}, (c, m, ...p) => {
|
|
291
|
+
const f = p.length ? p[0] : m;
|
|
292
|
+
return u.ctx && i(u.ctx[c], u.ctx[c] = f) && (!u.skip_bound && u.bound[c] && u.bound[c](f), h && Sr(e, c)), m;
|
|
293
|
+
}) : [], u.update(), h = !0, te(u.before_update), u.fragment = n ? n(u.ctx) : !1, t.target) {
|
|
294
294
|
if (t.hydrate) {
|
|
295
|
-
const c =
|
|
296
|
-
u.fragment && u.fragment.l(c), c.forEach(
|
|
295
|
+
const c = dr(t.target);
|
|
296
|
+
u.fragment && u.fragment.l(c), c.forEach(L);
|
|
297
297
|
} else
|
|
298
298
|
u.fragment && u.fragment.c();
|
|
299
|
-
t.intro &&
|
|
299
|
+
t.intro && ue(e.$$.fragment), Tr(e, t.target, t.anchor), w();
|
|
300
300
|
}
|
|
301
|
-
|
|
301
|
+
q(l);
|
|
302
302
|
}
|
|
303
|
-
let
|
|
304
|
-
typeof HTMLElement == "function" && (
|
|
305
|
-
constructor(t,
|
|
303
|
+
let Pt;
|
|
304
|
+
typeof HTMLElement == "function" && (Pt = class extends HTMLElement {
|
|
305
|
+
constructor(t, r, n) {
|
|
306
306
|
super();
|
|
307
307
|
/** The Svelte component constructor */
|
|
308
308
|
B(this, "$$ctor");
|
|
@@ -322,59 +322,59 @@ typeof HTMLElement == "function" && (Ot = class extends HTMLElement {
|
|
|
322
322
|
B(this, "$$l", {});
|
|
323
323
|
/** @type {Map<Function, Function>} Event listener unsubscribe functions */
|
|
324
324
|
B(this, "$$l_u", /* @__PURE__ */ new Map());
|
|
325
|
-
this.$$ctor = t, this.$$s =
|
|
325
|
+
this.$$ctor = t, this.$$s = r, n && this.attachShadow({ mode: "open" });
|
|
326
326
|
}
|
|
327
|
-
addEventListener(t,
|
|
328
|
-
if (this.$$l[t] = this.$$l[t] || [], this.$$l[t].push(
|
|
329
|
-
const i = this.$$c.$on(t,
|
|
330
|
-
this.$$l_u.set(
|
|
327
|
+
addEventListener(t, r, n) {
|
|
328
|
+
if (this.$$l[t] = this.$$l[t] || [], this.$$l[t].push(r), this.$$c) {
|
|
329
|
+
const i = this.$$c.$on(t, r);
|
|
330
|
+
this.$$l_u.set(r, i);
|
|
331
331
|
}
|
|
332
|
-
super.addEventListener(t,
|
|
332
|
+
super.addEventListener(t, r, n);
|
|
333
333
|
}
|
|
334
|
-
removeEventListener(t,
|
|
335
|
-
if (super.removeEventListener(t,
|
|
336
|
-
const i = this.$$l_u.get(
|
|
337
|
-
i && (i(), this.$$l_u.delete(
|
|
334
|
+
removeEventListener(t, r, n) {
|
|
335
|
+
if (super.removeEventListener(t, r, n), this.$$c) {
|
|
336
|
+
const i = this.$$l_u.get(r);
|
|
337
|
+
i && (i(), this.$$l_u.delete(r));
|
|
338
338
|
}
|
|
339
339
|
}
|
|
340
340
|
connectedCallback() {
|
|
341
|
-
return
|
|
341
|
+
return Ke(this, null, function* () {
|
|
342
342
|
if (this.$$cn = !0, !this.$$c) {
|
|
343
343
|
let t = function(s) {
|
|
344
344
|
return () => {
|
|
345
|
-
let
|
|
345
|
+
let a;
|
|
346
346
|
return {
|
|
347
347
|
c: function() {
|
|
348
|
-
|
|
348
|
+
a = W("slot"), s !== "default" && re(a, "name", s);
|
|
349
349
|
},
|
|
350
350
|
/**
|
|
351
351
|
* @param {HTMLElement} target
|
|
352
352
|
* @param {HTMLElement} [anchor]
|
|
353
353
|
*/
|
|
354
354
|
m: function(u, h) {
|
|
355
|
-
|
|
355
|
+
M(u, a, h);
|
|
356
356
|
},
|
|
357
357
|
d: function(u) {
|
|
358
|
-
u &&
|
|
358
|
+
u && L(a);
|
|
359
359
|
}
|
|
360
360
|
};
|
|
361
361
|
};
|
|
362
362
|
};
|
|
363
363
|
if (yield Promise.resolve(), !this.$$cn || this.$$c)
|
|
364
364
|
return;
|
|
365
|
-
const
|
|
365
|
+
const r = {}, n = gr(this);
|
|
366
366
|
for (const s of this.$$s)
|
|
367
|
-
s in
|
|
367
|
+
s in n && (r[s] = [t(s)]);
|
|
368
368
|
for (const s of this.attributes) {
|
|
369
|
-
const
|
|
370
|
-
|
|
369
|
+
const a = this.$$g_p(s.name);
|
|
370
|
+
a in this.$$d || (this.$$d[a] = he(a, s.value, this.$$p_d, "toProp"));
|
|
371
371
|
}
|
|
372
372
|
for (const s in this.$$p_d)
|
|
373
373
|
!(s in this.$$d) && this[s] !== void 0 && (this.$$d[s] = this[s], delete this[s]);
|
|
374
374
|
this.$$c = new this.$$ctor({
|
|
375
375
|
target: this.shadowRoot || this,
|
|
376
|
-
props: qe(
|
|
377
|
-
$$slots:
|
|
376
|
+
props: Ye(qe({}, this.$$d), {
|
|
377
|
+
$$slots: r,
|
|
378
378
|
$$scope: {
|
|
379
379
|
ctx: []
|
|
380
380
|
}
|
|
@@ -384,21 +384,21 @@ typeof HTMLElement == "function" && (Ot = class extends HTMLElement {
|
|
|
384
384
|
this.$$r = !0;
|
|
385
385
|
for (const s in this.$$p_d)
|
|
386
386
|
if (this.$$d[s] = this.$$c.$$.ctx[this.$$c.$$.props[s]], this.$$p_d[s].reflect) {
|
|
387
|
-
const
|
|
387
|
+
const a = he(
|
|
388
388
|
s,
|
|
389
389
|
this.$$d[s],
|
|
390
390
|
this.$$p_d,
|
|
391
391
|
"toAttribute"
|
|
392
392
|
);
|
|
393
|
-
|
|
393
|
+
a == null ? this.removeAttribute(this.$$p_d[s].attribute || s) : this.setAttribute(this.$$p_d[s].attribute || s, a);
|
|
394
394
|
}
|
|
395
395
|
this.$$r = !1;
|
|
396
396
|
};
|
|
397
397
|
this.$$c.$$.after_update.push(i), i();
|
|
398
398
|
for (const s in this.$$l)
|
|
399
|
-
for (const
|
|
400
|
-
const
|
|
401
|
-
this.$$l_u.set(
|
|
399
|
+
for (const a of this.$$l[s]) {
|
|
400
|
+
const o = this.$$c.$on(s, a);
|
|
401
|
+
this.$$l_u.set(a, o);
|
|
402
402
|
}
|
|
403
403
|
this.$$l = {};
|
|
404
404
|
}
|
|
@@ -406,9 +406,9 @@ typeof HTMLElement == "function" && (Ot = class extends HTMLElement {
|
|
|
406
406
|
}
|
|
407
407
|
// We don't need this when working within Svelte code, but for compatibility of people using this outside of Svelte
|
|
408
408
|
// and setting attributes through setAttribute etc, this is helpful
|
|
409
|
-
attributeChangedCallback(t,
|
|
409
|
+
attributeChangedCallback(t, r, n) {
|
|
410
410
|
var i;
|
|
411
|
-
this.$$r || (t = this.$$g_p(t), this.$$d[t] =
|
|
411
|
+
this.$$r || (t = this.$$g_p(t), this.$$d[t] = he(t, n, this.$$p_d, "toProp"), (i = this.$$c) == null || i.$set({ [t]: this.$$d[t] }));
|
|
412
412
|
}
|
|
413
413
|
disconnectedCallback() {
|
|
414
414
|
this.$$cn = !1, Promise.resolve().then(() => {
|
|
@@ -417,16 +417,16 @@ typeof HTMLElement == "function" && (Ot = class extends HTMLElement {
|
|
|
417
417
|
}
|
|
418
418
|
$$g_p(t) {
|
|
419
419
|
return Object.keys(this.$$p_d).find(
|
|
420
|
-
(
|
|
420
|
+
(r) => this.$$p_d[r].attribute === t || !this.$$p_d[r].attribute && r.toLowerCase() === t
|
|
421
421
|
) || t;
|
|
422
422
|
}
|
|
423
423
|
});
|
|
424
|
-
function
|
|
424
|
+
function he(e, t, r, n) {
|
|
425
425
|
var s;
|
|
426
|
-
const i = (s =
|
|
427
|
-
if (t = i === "Boolean" && typeof t != "boolean" ? t != null : t, !
|
|
426
|
+
const i = (s = r[e]) == null ? void 0 : s.type;
|
|
427
|
+
if (t = i === "Boolean" && typeof t != "boolean" ? t != null : t, !n || !r[e])
|
|
428
428
|
return t;
|
|
429
|
-
if (
|
|
429
|
+
if (n === "toAttribute")
|
|
430
430
|
switch (i) {
|
|
431
431
|
case "Object":
|
|
432
432
|
case "Array":
|
|
@@ -451,38 +451,38 @@ function ue(e, t, n, r) {
|
|
|
451
451
|
return t;
|
|
452
452
|
}
|
|
453
453
|
}
|
|
454
|
-
function
|
|
455
|
-
let
|
|
454
|
+
function Or(e, t, r, n, i, s) {
|
|
455
|
+
let a = class extends Pt {
|
|
456
456
|
constructor() {
|
|
457
|
-
super(e,
|
|
457
|
+
super(e, r, i), this.$$p_d = t;
|
|
458
458
|
}
|
|
459
459
|
static get observedAttributes() {
|
|
460
460
|
return Object.keys(t).map(
|
|
461
|
-
(
|
|
461
|
+
(o) => (t[o].attribute || o).toLowerCase()
|
|
462
462
|
);
|
|
463
463
|
}
|
|
464
464
|
};
|
|
465
|
-
return Object.keys(t).forEach((
|
|
466
|
-
Object.defineProperty(
|
|
465
|
+
return Object.keys(t).forEach((o) => {
|
|
466
|
+
Object.defineProperty(a.prototype, o, {
|
|
467
467
|
get() {
|
|
468
|
-
return this.$$c &&
|
|
468
|
+
return this.$$c && o in this.$$c ? this.$$c[o] : this.$$d[o];
|
|
469
469
|
},
|
|
470
470
|
set(l) {
|
|
471
471
|
var u;
|
|
472
|
-
l =
|
|
472
|
+
l = he(o, l, t), this.$$d[o] = l, (u = this.$$c) == null || u.$set({ [o]: l });
|
|
473
473
|
}
|
|
474
474
|
});
|
|
475
|
-
}),
|
|
476
|
-
Object.defineProperty(
|
|
475
|
+
}), n.forEach((o) => {
|
|
476
|
+
Object.defineProperty(a.prototype, o, {
|
|
477
477
|
get() {
|
|
478
478
|
var l;
|
|
479
|
-
return (l = this.$$c) == null ? void 0 : l[
|
|
479
|
+
return (l = this.$$c) == null ? void 0 : l[o];
|
|
480
480
|
}
|
|
481
481
|
});
|
|
482
482
|
}), e.element = /** @type {any} */
|
|
483
|
-
|
|
483
|
+
a, a;
|
|
484
484
|
}
|
|
485
|
-
class
|
|
485
|
+
class Pr {
|
|
486
486
|
constructor() {
|
|
487
487
|
/**
|
|
488
488
|
* ### PRIVATE API
|
|
@@ -503,7 +503,7 @@ class Pn {
|
|
|
503
503
|
}
|
|
504
504
|
/** @returns {void} */
|
|
505
505
|
$destroy() {
|
|
506
|
-
|
|
506
|
+
wr(this, 1), this.$destroy = T;
|
|
507
507
|
}
|
|
508
508
|
/**
|
|
509
509
|
* @template {Extract<keyof Events, string>} K
|
|
@@ -511,13 +511,13 @@ class Pn {
|
|
|
511
511
|
* @param {((e: Events[K]) => void) | null | undefined} callback
|
|
512
512
|
* @returns {() => void}
|
|
513
513
|
*/
|
|
514
|
-
$on(t,
|
|
515
|
-
if (!
|
|
514
|
+
$on(t, r) {
|
|
515
|
+
if (!Xe(r))
|
|
516
516
|
return T;
|
|
517
|
-
const
|
|
518
|
-
return
|
|
519
|
-
const i =
|
|
520
|
-
i !== -1 &&
|
|
517
|
+
const n = this.$$.callbacks[t] || (this.$$.callbacks[t] = []);
|
|
518
|
+
return n.push(r), () => {
|
|
519
|
+
const i = n.indexOf(r);
|
|
520
|
+
i !== -1 && n.splice(i, 1);
|
|
521
521
|
};
|
|
522
522
|
}
|
|
523
523
|
/**
|
|
@@ -525,49 +525,49 @@ class Pn {
|
|
|
525
525
|
* @returns {void}
|
|
526
526
|
*/
|
|
527
527
|
$set(t) {
|
|
528
|
-
this.$$set && !
|
|
528
|
+
this.$$set && !lr(t) && (this.$$.skip_bound = !0, this.$$set(t), this.$$.skip_bound = !1);
|
|
529
529
|
}
|
|
530
530
|
}
|
|
531
|
-
const
|
|
532
|
-
typeof window != "undefined" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(
|
|
533
|
-
const
|
|
534
|
-
function
|
|
531
|
+
const Cr = "4";
|
|
532
|
+
typeof window != "undefined" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(Cr);
|
|
533
|
+
const D = [];
|
|
534
|
+
function Lr(e, t) {
|
|
535
535
|
return {
|
|
536
|
-
subscribe:
|
|
536
|
+
subscribe: ge(e, t).subscribe
|
|
537
537
|
};
|
|
538
538
|
}
|
|
539
|
-
function
|
|
540
|
-
let
|
|
541
|
-
const
|
|
542
|
-
function i(
|
|
543
|
-
if (
|
|
544
|
-
const l = !
|
|
545
|
-
for (const u of
|
|
546
|
-
u[1](),
|
|
539
|
+
function ge(e, t = T) {
|
|
540
|
+
let r;
|
|
541
|
+
const n = /* @__PURE__ */ new Set();
|
|
542
|
+
function i(o) {
|
|
543
|
+
if (Tt(e, o) && (e = o, r)) {
|
|
544
|
+
const l = !D.length;
|
|
545
|
+
for (const u of n)
|
|
546
|
+
u[1](), D.push(u, e);
|
|
547
547
|
if (l) {
|
|
548
|
-
for (let u = 0; u <
|
|
549
|
-
|
|
550
|
-
|
|
548
|
+
for (let u = 0; u < D.length; u += 2)
|
|
549
|
+
D[u][0](D[u + 1]);
|
|
550
|
+
D.length = 0;
|
|
551
551
|
}
|
|
552
552
|
}
|
|
553
553
|
}
|
|
554
|
-
function s(
|
|
555
|
-
i(
|
|
554
|
+
function s(o) {
|
|
555
|
+
i(o(e));
|
|
556
556
|
}
|
|
557
|
-
function o
|
|
558
|
-
const u = [
|
|
559
|
-
return
|
|
560
|
-
|
|
557
|
+
function a(o, l = T) {
|
|
558
|
+
const u = [o, l];
|
|
559
|
+
return n.add(u), n.size === 1 && (r = t(i, s) || T), o(e), () => {
|
|
560
|
+
n.delete(u), n.size === 0 && r && (r(), r = null);
|
|
561
561
|
};
|
|
562
562
|
}
|
|
563
|
-
return { set: i, update: s, subscribe:
|
|
563
|
+
return { set: i, update: s, subscribe: a };
|
|
564
564
|
}
|
|
565
|
-
function z(e, t,
|
|
566
|
-
const
|
|
565
|
+
function z(e, t, r) {
|
|
566
|
+
const n = !Array.isArray(e), i = n ? [e] : e;
|
|
567
567
|
if (!i.every(Boolean))
|
|
568
568
|
throw new Error("derived() expects stores as input, got a falsy value");
|
|
569
569
|
const s = t.length < 2;
|
|
570
|
-
return
|
|
570
|
+
return Lr(r, (a, o) => {
|
|
571
571
|
let l = !1;
|
|
572
572
|
const u = [];
|
|
573
573
|
let h = 0, c = T;
|
|
@@ -575,10 +575,10 @@ function z(e, t, n) {
|
|
|
575
575
|
if (h)
|
|
576
576
|
return;
|
|
577
577
|
c();
|
|
578
|
-
const f = t(
|
|
579
|
-
s ?
|
|
580
|
-
},
|
|
581
|
-
(f, _) =>
|
|
578
|
+
const f = t(n ? u[0] : u, a, o);
|
|
579
|
+
s ? a(f) : c = Xe(f) ? f : T;
|
|
580
|
+
}, p = i.map(
|
|
581
|
+
(f, _) => wt(
|
|
582
582
|
f,
|
|
583
583
|
(v) => {
|
|
584
584
|
u[_] = v, h &= ~(1 << _), l && m();
|
|
@@ -589,174 +589,157 @@ function z(e, t, n) {
|
|
|
589
589
|
)
|
|
590
590
|
);
|
|
591
591
|
return l = !0, m(), function() {
|
|
592
|
-
|
|
592
|
+
te(p), c(), l = !1;
|
|
593
593
|
};
|
|
594
594
|
});
|
|
595
595
|
}
|
|
596
|
-
function
|
|
597
|
-
return e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
596
|
+
function Nr(e) {
|
|
597
|
+
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
598
598
|
}
|
|
599
|
-
var
|
|
600
|
-
return
|
|
599
|
+
var Ir = function(t) {
|
|
600
|
+
return Mr(t) && !$r(t);
|
|
601
601
|
};
|
|
602
|
-
function
|
|
602
|
+
function Mr(e) {
|
|
603
603
|
return !!e && typeof e == "object";
|
|
604
604
|
}
|
|
605
|
-
function
|
|
605
|
+
function $r(e) {
|
|
606
606
|
var t = Object.prototype.toString.call(e);
|
|
607
|
-
return t === "[object RegExp]" || t === "[object Date]" ||
|
|
607
|
+
return t === "[object RegExp]" || t === "[object Date]" || Dr(e);
|
|
608
608
|
}
|
|
609
|
-
var
|
|
610
|
-
function
|
|
611
|
-
return e.$$typeof ===
|
|
609
|
+
var Rr = typeof Symbol == "function" && Symbol.for, Ur = Rr ? Symbol.for("react.element") : 60103;
|
|
610
|
+
function Dr(e) {
|
|
611
|
+
return e.$$typeof === Ur;
|
|
612
612
|
}
|
|
613
|
-
function
|
|
613
|
+
function Gr(e) {
|
|
614
614
|
return Array.isArray(e) ? [] : {};
|
|
615
615
|
}
|
|
616
|
-
function
|
|
617
|
-
return t.clone !== !1 && t.isMergeableObject(e) ?
|
|
616
|
+
function K(e, t) {
|
|
617
|
+
return t.clone !== !1 && t.isMergeableObject(e) ? j(Gr(e), e, t) : e;
|
|
618
618
|
}
|
|
619
|
-
function
|
|
620
|
-
return e.concat(t).map(function(
|
|
621
|
-
return
|
|
619
|
+
function Fr(e, t, r) {
|
|
620
|
+
return e.concat(t).map(function(n) {
|
|
621
|
+
return K(n, r);
|
|
622
622
|
});
|
|
623
623
|
}
|
|
624
|
-
function
|
|
624
|
+
function jr(e, t) {
|
|
625
625
|
if (!t.customMerge)
|
|
626
|
-
return
|
|
627
|
-
var
|
|
628
|
-
return typeof
|
|
626
|
+
return j;
|
|
627
|
+
var r = t.customMerge(e);
|
|
628
|
+
return typeof r == "function" ? r : j;
|
|
629
629
|
}
|
|
630
|
-
function
|
|
630
|
+
function kr(e) {
|
|
631
631
|
return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(e).filter(function(t) {
|
|
632
632
|
return Object.propertyIsEnumerable.call(e, t);
|
|
633
633
|
}) : [];
|
|
634
634
|
}
|
|
635
635
|
function nt(e) {
|
|
636
|
-
return Object.keys(e).concat(
|
|
636
|
+
return Object.keys(e).concat(kr(e));
|
|
637
637
|
}
|
|
638
|
-
function
|
|
638
|
+
function Ct(e, t) {
|
|
639
639
|
try {
|
|
640
640
|
return t in e;
|
|
641
|
-
} catch (
|
|
641
|
+
} catch (r) {
|
|
642
642
|
return !1;
|
|
643
643
|
}
|
|
644
644
|
}
|
|
645
|
-
function
|
|
646
|
-
return
|
|
645
|
+
function Vr(e, t) {
|
|
646
|
+
return Ct(e, t) && !(Object.hasOwnProperty.call(e, t) && Object.propertyIsEnumerable.call(e, t));
|
|
647
647
|
}
|
|
648
|
-
function
|
|
649
|
-
var
|
|
650
|
-
return
|
|
651
|
-
|
|
648
|
+
function Xr(e, t, r) {
|
|
649
|
+
var n = {};
|
|
650
|
+
return r.isMergeableObject(e) && nt(e).forEach(function(i) {
|
|
651
|
+
n[i] = K(e[i], r);
|
|
652
652
|
}), nt(t).forEach(function(i) {
|
|
653
|
-
|
|
654
|
-
}),
|
|
653
|
+
Vr(e, i) || (Ct(e, i) && r.isMergeableObject(t[i]) ? n[i] = jr(i, r)(e[i], t[i], r) : n[i] = K(t[i], r));
|
|
654
|
+
}), n;
|
|
655
655
|
}
|
|
656
|
-
function
|
|
657
|
-
|
|
658
|
-
var
|
|
659
|
-
return s ?
|
|
656
|
+
function j(e, t, r) {
|
|
657
|
+
r = r || {}, r.arrayMerge = r.arrayMerge || Fr, r.isMergeableObject = r.isMergeableObject || Ir, r.cloneUnlessOtherwiseSpecified = K;
|
|
658
|
+
var n = Array.isArray(t), i = Array.isArray(e), s = n === i;
|
|
659
|
+
return s ? n ? r.arrayMerge(e, t, r) : Xr(e, t, r) : K(t, r);
|
|
660
660
|
}
|
|
661
|
-
|
|
661
|
+
j.all = function(t, r) {
|
|
662
662
|
if (!Array.isArray(t))
|
|
663
663
|
throw new Error("first argument should be an array");
|
|
664
|
-
return t.reduce(function(
|
|
665
|
-
return
|
|
664
|
+
return t.reduce(function(n, i) {
|
|
665
|
+
return j(n, i, r);
|
|
666
666
|
}, {});
|
|
667
667
|
};
|
|
668
|
-
var
|
|
669
|
-
const
|
|
670
|
-
|
|
671
|
-
|
|
672
|
-
|
|
673
|
-
|
|
674
|
-
|
|
675
|
-
|
|
676
|
-
|
|
677
|
-
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
678
|
-
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
679
|
-
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
680
|
-
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
681
|
-
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
682
|
-
PERFORMANCE OF THIS SOFTWARE.
|
|
683
|
-
***************************************************************************** */
|
|
684
|
-
var Me = function(e, t) {
|
|
685
|
-
return Me = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(n, r) {
|
|
686
|
-
n.__proto__ = r;
|
|
687
|
-
} || function(n, r) {
|
|
688
|
-
for (var i in r)
|
|
689
|
-
Object.prototype.hasOwnProperty.call(r, i) && (n[i] = r[i]);
|
|
690
|
-
}, Me(e, t);
|
|
668
|
+
var Wr = j, zr = Wr;
|
|
669
|
+
const Zr = /* @__PURE__ */ Nr(zr);
|
|
670
|
+
var Re = function(e, t) {
|
|
671
|
+
return Re = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
|
|
672
|
+
r.__proto__ = n;
|
|
673
|
+
} || function(r, n) {
|
|
674
|
+
for (var i in n)
|
|
675
|
+
Object.prototype.hasOwnProperty.call(n, i) && (r[i] = n[i]);
|
|
676
|
+
}, Re(e, t);
|
|
691
677
|
};
|
|
692
|
-
function
|
|
678
|
+
function _e(e, t) {
|
|
693
679
|
if (typeof t != "function" && t !== null)
|
|
694
680
|
throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
|
|
695
|
-
|
|
696
|
-
function
|
|
681
|
+
Re(e, t);
|
|
682
|
+
function r() {
|
|
697
683
|
this.constructor = e;
|
|
698
684
|
}
|
|
699
|
-
e.prototype = t === null ? Object.create(t) : (
|
|
700
|
-
}
|
|
701
|
-
var
|
|
702
|
-
return
|
|
703
|
-
for (var
|
|
704
|
-
|
|
705
|
-
for (var s in
|
|
706
|
-
Object.prototype.hasOwnProperty.call(
|
|
685
|
+
e.prototype = t === null ? Object.create(t) : (r.prototype = t.prototype, new r());
|
|
686
|
+
}
|
|
687
|
+
var S = function() {
|
|
688
|
+
return S = Object.assign || function(t) {
|
|
689
|
+
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
690
|
+
r = arguments[n];
|
|
691
|
+
for (var s in r)
|
|
692
|
+
Object.prototype.hasOwnProperty.call(r, s) && (t[s] = r[s]);
|
|
707
693
|
}
|
|
708
694
|
return t;
|
|
709
|
-
},
|
|
695
|
+
}, S.apply(this, arguments);
|
|
710
696
|
};
|
|
711
|
-
function
|
|
712
|
-
var
|
|
713
|
-
for (var
|
|
714
|
-
Object.prototype.hasOwnProperty.call(e,
|
|
697
|
+
function Qr(e, t) {
|
|
698
|
+
var r = {};
|
|
699
|
+
for (var n in e)
|
|
700
|
+
Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
715
701
|
if (e != null && typeof Object.getOwnPropertySymbols == "function")
|
|
716
|
-
for (var i = 0,
|
|
717
|
-
t.indexOf(
|
|
718
|
-
return
|
|
702
|
+
for (var i = 0, n = Object.getOwnPropertySymbols(e); i < n.length; i++)
|
|
703
|
+
t.indexOf(n[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[i]) && (r[n[i]] = e[n[i]]);
|
|
704
|
+
return r;
|
|
719
705
|
}
|
|
720
|
-
function
|
|
721
|
-
if (arguments.length === 2)
|
|
722
|
-
for (var
|
|
723
|
-
(s || !(
|
|
724
|
-
return e.concat(s || t);
|
|
706
|
+
function Ae(e, t, r) {
|
|
707
|
+
if (r || arguments.length === 2)
|
|
708
|
+
for (var n = 0, i = t.length, s; n < i; n++)
|
|
709
|
+
(s || !(n in t)) && (s || (s = Array.prototype.slice.call(t, 0, n)), s[n] = t[n]);
|
|
710
|
+
return e.concat(s || Array.prototype.slice.call(t));
|
|
725
711
|
}
|
|
726
|
-
function
|
|
727
|
-
var
|
|
712
|
+
function Oe(e, t) {
|
|
713
|
+
var r = t && t.cache ? t.cache : rn, n = t && t.serializer ? t.serializer : en, i = t && t.strategy ? t.strategy : Yr;
|
|
728
714
|
return i(e, {
|
|
729
|
-
cache:
|
|
730
|
-
serializer:
|
|
715
|
+
cache: r,
|
|
716
|
+
serializer: n
|
|
731
717
|
});
|
|
732
718
|
}
|
|
733
|
-
function
|
|
719
|
+
function Jr(e) {
|
|
734
720
|
return e == null || typeof e == "number" || typeof e == "boolean";
|
|
735
721
|
}
|
|
736
|
-
function
|
|
737
|
-
var i =
|
|
738
|
-
return typeof s == "undefined" && (s = e.call(this,
|
|
739
|
-
}
|
|
740
|
-
function Lt(e, t, n) {
|
|
741
|
-
var r = Array.prototype.slice.call(arguments, 3), i = n(r), s = t.get(i);
|
|
742
|
-
return typeof s == "undefined" && (s = e.apply(this, r), t.set(i, s)), s;
|
|
722
|
+
function qr(e, t, r, n) {
|
|
723
|
+
var i = Jr(n) ? n : r(n), s = t.get(i);
|
|
724
|
+
return typeof s == "undefined" && (s = e.call(this, n), t.set(i, s)), s;
|
|
743
725
|
}
|
|
744
|
-
function
|
|
745
|
-
|
|
726
|
+
function Lt(e, t, r) {
|
|
727
|
+
var n = Array.prototype.slice.call(arguments, 3), i = r(n), s = t.get(i);
|
|
728
|
+
return typeof s == "undefined" && (s = e.apply(this, n), t.set(i, s)), s;
|
|
746
729
|
}
|
|
747
|
-
function
|
|
748
|
-
|
|
749
|
-
return Xe(e, this, n, t.cache.create(), t.serializer);
|
|
730
|
+
function Nt(e, t, r, n, i) {
|
|
731
|
+
return r.bind(t, e, n, i);
|
|
750
732
|
}
|
|
751
|
-
function
|
|
752
|
-
|
|
733
|
+
function Yr(e, t) {
|
|
734
|
+
var r = e.length === 1 ? qr : Lt;
|
|
735
|
+
return Nt(e, this, r, t.cache.create(), t.serializer);
|
|
753
736
|
}
|
|
754
|
-
function
|
|
755
|
-
return
|
|
737
|
+
function Kr(e, t) {
|
|
738
|
+
return Nt(e, this, Lt, t.cache.create(), t.serializer);
|
|
756
739
|
}
|
|
757
|
-
var
|
|
740
|
+
var en = function() {
|
|
758
741
|
return JSON.stringify(arguments);
|
|
759
|
-
},
|
|
742
|
+
}, tn = (
|
|
760
743
|
/** @class */
|
|
761
744
|
function() {
|
|
762
745
|
function e() {
|
|
@@ -764,73 +747,82 @@ var er = function() {
|
|
|
764
747
|
}
|
|
765
748
|
return e.prototype.get = function(t) {
|
|
766
749
|
return this.cache[t];
|
|
767
|
-
}, e.prototype.set = function(t,
|
|
768
|
-
this.cache[t] =
|
|
750
|
+
}, e.prototype.set = function(t, r) {
|
|
751
|
+
this.cache[t] = r;
|
|
769
752
|
}, e;
|
|
770
753
|
}()
|
|
771
|
-
),
|
|
754
|
+
), rn = {
|
|
772
755
|
create: function() {
|
|
773
|
-
return new
|
|
756
|
+
return new tn();
|
|
774
757
|
}
|
|
775
|
-
},
|
|
776
|
-
variadic:
|
|
777
|
-
|
|
778
|
-
|
|
758
|
+
}, Pe = {
|
|
759
|
+
variadic: Kr
|
|
760
|
+
}, me = function() {
|
|
761
|
+
return me = Object.assign || function(t) {
|
|
762
|
+
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
763
|
+
r = arguments[n];
|
|
764
|
+
for (var s in r)
|
|
765
|
+
Object.prototype.hasOwnProperty.call(r, s) && (t[s] = r[s]);
|
|
766
|
+
}
|
|
767
|
+
return t;
|
|
768
|
+
}, me.apply(this, arguments);
|
|
769
|
+
};
|
|
770
|
+
var d;
|
|
779
771
|
(function(e) {
|
|
780
772
|
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";
|
|
781
|
-
})(
|
|
782
|
-
var
|
|
773
|
+
})(d || (d = {}));
|
|
774
|
+
var y;
|
|
783
775
|
(function(e) {
|
|
784
776
|
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";
|
|
785
|
-
})(
|
|
786
|
-
var
|
|
777
|
+
})(y || (y = {}));
|
|
778
|
+
var k;
|
|
787
779
|
(function(e) {
|
|
788
780
|
e[e.number = 0] = "number", e[e.dateTime = 1] = "dateTime";
|
|
789
|
-
})(
|
|
790
|
-
function
|
|
791
|
-
return e.type ===
|
|
792
|
-
}
|
|
793
|
-
function rr(e) {
|
|
794
|
-
return e.type === x.argument;
|
|
781
|
+
})(k || (k = {}));
|
|
782
|
+
function it(e) {
|
|
783
|
+
return e.type === y.literal;
|
|
795
784
|
}
|
|
796
|
-
function
|
|
797
|
-
return e.type ===
|
|
785
|
+
function nn(e) {
|
|
786
|
+
return e.type === y.argument;
|
|
798
787
|
}
|
|
799
788
|
function It(e) {
|
|
800
|
-
return e.type ===
|
|
789
|
+
return e.type === y.number;
|
|
801
790
|
}
|
|
802
791
|
function Mt(e) {
|
|
803
|
-
return e.type ===
|
|
804
|
-
}
|
|
805
|
-
function Rt(e) {
|
|
806
|
-
return e.type === x.select;
|
|
792
|
+
return e.type === y.date;
|
|
807
793
|
}
|
|
808
794
|
function $t(e) {
|
|
809
|
-
return e.type ===
|
|
795
|
+
return e.type === y.time;
|
|
810
796
|
}
|
|
811
|
-
function
|
|
812
|
-
return e.type ===
|
|
797
|
+
function Rt(e) {
|
|
798
|
+
return e.type === y.select;
|
|
813
799
|
}
|
|
814
800
|
function Ut(e) {
|
|
815
|
-
return e.type ===
|
|
801
|
+
return e.type === y.plural;
|
|
802
|
+
}
|
|
803
|
+
function sn(e) {
|
|
804
|
+
return e.type === y.pound;
|
|
816
805
|
}
|
|
817
806
|
function Dt(e) {
|
|
818
|
-
return
|
|
807
|
+
return e.type === y.tag;
|
|
808
|
+
}
|
|
809
|
+
function Gt(e) {
|
|
810
|
+
return !!(e && typeof e == "object" && e.type === k.number);
|
|
819
811
|
}
|
|
820
|
-
function
|
|
821
|
-
return !!(e && typeof e == "object" && e.type ===
|
|
812
|
+
function Ue(e) {
|
|
813
|
+
return !!(e && typeof e == "object" && e.type === k.dateTime);
|
|
822
814
|
}
|
|
823
|
-
var
|
|
824
|
-
function
|
|
815
|
+
var Ft = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, on = /(?:[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;
|
|
816
|
+
function an(e) {
|
|
825
817
|
var t = {};
|
|
826
|
-
return e.replace(
|
|
827
|
-
var
|
|
828
|
-
switch (
|
|
818
|
+
return e.replace(on, function(r) {
|
|
819
|
+
var n = r.length;
|
|
820
|
+
switch (r[0]) {
|
|
829
821
|
case "G":
|
|
830
|
-
t.era =
|
|
822
|
+
t.era = n === 4 ? "long" : n === 5 ? "narrow" : "short";
|
|
831
823
|
break;
|
|
832
824
|
case "y":
|
|
833
|
-
t.year =
|
|
825
|
+
t.year = n === 2 ? "2-digit" : "numeric";
|
|
834
826
|
break;
|
|
835
827
|
case "Y":
|
|
836
828
|
case "u":
|
|
@@ -842,30 +834,30 @@ function or(e) {
|
|
|
842
834
|
throw new RangeError("`q/Q` (quarter) patterns are not supported");
|
|
843
835
|
case "M":
|
|
844
836
|
case "L":
|
|
845
|
-
t.month = ["numeric", "2-digit", "short", "long", "narrow"][
|
|
837
|
+
t.month = ["numeric", "2-digit", "short", "long", "narrow"][n - 1];
|
|
846
838
|
break;
|
|
847
839
|
case "w":
|
|
848
840
|
case "W":
|
|
849
841
|
throw new RangeError("`w/W` (week) patterns are not supported");
|
|
850
842
|
case "d":
|
|
851
|
-
t.day = ["numeric", "2-digit"][
|
|
843
|
+
t.day = ["numeric", "2-digit"][n - 1];
|
|
852
844
|
break;
|
|
853
845
|
case "D":
|
|
854
846
|
case "F":
|
|
855
847
|
case "g":
|
|
856
848
|
throw new RangeError("`D/F/g` (day) patterns are not supported, use `d` instead");
|
|
857
849
|
case "E":
|
|
858
|
-
t.weekday =
|
|
850
|
+
t.weekday = n === 4 ? "long" : n === 5 ? "narrow" : "short";
|
|
859
851
|
break;
|
|
860
852
|
case "e":
|
|
861
|
-
if (
|
|
853
|
+
if (n < 4)
|
|
862
854
|
throw new RangeError("`e..eee` (weekday) patterns are not supported");
|
|
863
|
-
t.weekday = ["short", "long", "narrow", "short"][
|
|
855
|
+
t.weekday = ["short", "long", "narrow", "short"][n - 4];
|
|
864
856
|
break;
|
|
865
857
|
case "c":
|
|
866
|
-
if (
|
|
858
|
+
if (n < 4)
|
|
867
859
|
throw new RangeError("`c..ccc` (weekday) patterns are not supported");
|
|
868
|
-
t.weekday = ["short", "long", "narrow", "short"][
|
|
860
|
+
t.weekday = ["short", "long", "narrow", "short"][n - 4];
|
|
869
861
|
break;
|
|
870
862
|
case "a":
|
|
871
863
|
t.hour12 = !0;
|
|
@@ -874,32 +866,32 @@ function or(e) {
|
|
|
874
866
|
case "B":
|
|
875
867
|
throw new RangeError("`b/B` (period) patterns are not supported, use `a` instead");
|
|
876
868
|
case "h":
|
|
877
|
-
t.hourCycle = "h12", t.hour = ["numeric", "2-digit"][
|
|
869
|
+
t.hourCycle = "h12", t.hour = ["numeric", "2-digit"][n - 1];
|
|
878
870
|
break;
|
|
879
871
|
case "H":
|
|
880
|
-
t.hourCycle = "h23", t.hour = ["numeric", "2-digit"][
|
|
872
|
+
t.hourCycle = "h23", t.hour = ["numeric", "2-digit"][n - 1];
|
|
881
873
|
break;
|
|
882
874
|
case "K":
|
|
883
|
-
t.hourCycle = "h11", t.hour = ["numeric", "2-digit"][
|
|
875
|
+
t.hourCycle = "h11", t.hour = ["numeric", "2-digit"][n - 1];
|
|
884
876
|
break;
|
|
885
877
|
case "k":
|
|
886
|
-
t.hourCycle = "h24", t.hour = ["numeric", "2-digit"][
|
|
878
|
+
t.hourCycle = "h24", t.hour = ["numeric", "2-digit"][n - 1];
|
|
887
879
|
break;
|
|
888
880
|
case "j":
|
|
889
881
|
case "J":
|
|
890
882
|
case "C":
|
|
891
883
|
throw new RangeError("`j/J/C` (hour) patterns are not supported, use `h/H/K/k` instead");
|
|
892
884
|
case "m":
|
|
893
|
-
t.minute = ["numeric", "2-digit"][
|
|
885
|
+
t.minute = ["numeric", "2-digit"][n - 1];
|
|
894
886
|
break;
|
|
895
887
|
case "s":
|
|
896
|
-
t.second = ["numeric", "2-digit"][
|
|
888
|
+
t.second = ["numeric", "2-digit"][n - 1];
|
|
897
889
|
break;
|
|
898
890
|
case "S":
|
|
899
891
|
case "A":
|
|
900
892
|
throw new RangeError("`S/A` (second) patterns are not supported, use `s` instead");
|
|
901
893
|
case "z":
|
|
902
|
-
t.timeZoneName =
|
|
894
|
+
t.timeZoneName = n < 4 ? "short" : "long";
|
|
903
895
|
break;
|
|
904
896
|
case "Z":
|
|
905
897
|
case "O":
|
|
@@ -912,36 +904,46 @@ function or(e) {
|
|
|
912
904
|
return "";
|
|
913
905
|
}), t;
|
|
914
906
|
}
|
|
915
|
-
var
|
|
916
|
-
function
|
|
907
|
+
var E = function() {
|
|
908
|
+
return E = Object.assign || function(t) {
|
|
909
|
+
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
910
|
+
r = arguments[n];
|
|
911
|
+
for (var s in r)
|
|
912
|
+
Object.prototype.hasOwnProperty.call(r, s) && (t[s] = r[s]);
|
|
913
|
+
}
|
|
914
|
+
return t;
|
|
915
|
+
}, E.apply(this, arguments);
|
|
916
|
+
};
|
|
917
|
+
var un = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
|
|
918
|
+
function hn(e) {
|
|
917
919
|
if (e.length === 0)
|
|
918
920
|
throw new Error("Number skeleton cannot be empty");
|
|
919
|
-
for (var t = e.split(
|
|
921
|
+
for (var t = e.split(un).filter(function(m) {
|
|
920
922
|
return m.length > 0;
|
|
921
|
-
}),
|
|
922
|
-
var s = i[
|
|
923
|
-
if (
|
|
923
|
+
}), r = [], n = 0, i = t; n < i.length; n++) {
|
|
924
|
+
var s = i[n], a = s.split("/");
|
|
925
|
+
if (a.length === 0)
|
|
924
926
|
throw new Error("Invalid number skeleton");
|
|
925
|
-
for (var
|
|
927
|
+
for (var o = a[0], l = a.slice(1), u = 0, h = l; u < h.length; u++) {
|
|
926
928
|
var c = h[u];
|
|
927
929
|
if (c.length === 0)
|
|
928
930
|
throw new Error("Invalid number skeleton");
|
|
929
931
|
}
|
|
930
|
-
|
|
932
|
+
r.push({ stem: o, options: l });
|
|
931
933
|
}
|
|
932
|
-
return
|
|
934
|
+
return r;
|
|
933
935
|
}
|
|
934
|
-
function
|
|
936
|
+
function ln(e) {
|
|
935
937
|
return e.replace(/^(.*?)-/, "");
|
|
936
938
|
}
|
|
937
|
-
var
|
|
938
|
-
function
|
|
939
|
+
var st = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, jt = /^(@+)?(\+|#+)?[rs]?$/g, fn = /(\*)(0+)|(#+)(0+)|(0+)/g, kt = /^(0+)$/;
|
|
940
|
+
function ot(e) {
|
|
939
941
|
var t = {};
|
|
940
|
-
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(
|
|
941
|
-
return typeof i != "string" ? (t.minimumSignificantDigits =
|
|
942
|
+
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(jt, function(r, n, i) {
|
|
943
|
+
return typeof i != "string" ? (t.minimumSignificantDigits = n.length, t.maximumSignificantDigits = n.length) : i === "+" ? t.minimumSignificantDigits = n.length : n[0] === "#" ? t.maximumSignificantDigits = n.length : (t.minimumSignificantDigits = n.length, t.maximumSignificantDigits = n.length + (typeof i == "string" ? i.length : 0)), "";
|
|
942
944
|
}), t;
|
|
943
945
|
}
|
|
944
|
-
function
|
|
946
|
+
function Vt(e) {
|
|
945
947
|
switch (e) {
|
|
946
948
|
case "sign-auto":
|
|
947
949
|
return {
|
|
@@ -981,27 +983,27 @@ function kt(e) {
|
|
|
981
983
|
};
|
|
982
984
|
}
|
|
983
985
|
}
|
|
984
|
-
function
|
|
986
|
+
function cn(e) {
|
|
985
987
|
var t;
|
|
986
988
|
if (e[0] === "E" && e[1] === "E" ? (t = {
|
|
987
989
|
notation: "engineering"
|
|
988
990
|
}, e = e.slice(2)) : e[0] === "E" && (t = {
|
|
989
991
|
notation: "scientific"
|
|
990
992
|
}, e = e.slice(1)), t) {
|
|
991
|
-
var
|
|
992
|
-
if (
|
|
993
|
+
var r = e.slice(0, 2);
|
|
994
|
+
if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !kt.test(e))
|
|
993
995
|
throw new Error("Malformed concise eng/scientific notation");
|
|
994
996
|
t.minimumIntegerDigits = e.length;
|
|
995
997
|
}
|
|
996
998
|
return t;
|
|
997
999
|
}
|
|
998
|
-
function
|
|
999
|
-
var t = {},
|
|
1000
|
-
return
|
|
1000
|
+
function at(e) {
|
|
1001
|
+
var t = {}, r = Vt(e);
|
|
1002
|
+
return r || t;
|
|
1001
1003
|
}
|
|
1002
|
-
function
|
|
1003
|
-
for (var t = {},
|
|
1004
|
-
var i = r
|
|
1004
|
+
function mn(e) {
|
|
1005
|
+
for (var t = {}, r = 0, n = e; r < n.length; r++) {
|
|
1006
|
+
var i = n[r];
|
|
1005
1007
|
switch (i.stem) {
|
|
1006
1008
|
case "percent":
|
|
1007
1009
|
case "%":
|
|
@@ -1023,7 +1025,7 @@ function cr(e) {
|
|
|
1023
1025
|
continue;
|
|
1024
1026
|
case "measure-unit":
|
|
1025
1027
|
case "unit":
|
|
1026
|
-
t.style = "unit", t.unit =
|
|
1028
|
+
t.style = "unit", t.unit = ln(i.options[0]);
|
|
1027
1029
|
continue;
|
|
1028
1030
|
case "compact-short":
|
|
1029
1031
|
case "K":
|
|
@@ -1034,13 +1036,13 @@ function cr(e) {
|
|
|
1034
1036
|
t.notation = "compact", t.compactDisplay = "long";
|
|
1035
1037
|
continue;
|
|
1036
1038
|
case "scientific":
|
|
1037
|
-
t =
|
|
1038
|
-
return
|
|
1039
|
+
t = E(E(E({}, t), { notation: "scientific" }), i.options.reduce(function(l, u) {
|
|
1040
|
+
return E(E({}, l), at(u));
|
|
1039
1041
|
}, {}));
|
|
1040
1042
|
continue;
|
|
1041
1043
|
case "engineering":
|
|
1042
|
-
t =
|
|
1043
|
-
return
|
|
1044
|
+
t = E(E(E({}, t), { notation: "engineering" }), i.options.reduce(function(l, u) {
|
|
1045
|
+
return E(E({}, l), at(u));
|
|
1044
1046
|
}, {}));
|
|
1045
1047
|
continue;
|
|
1046
1048
|
case "notation-simple":
|
|
@@ -1085,45 +1087,45 @@ function cr(e) {
|
|
|
1085
1087
|
case "integer-width":
|
|
1086
1088
|
if (i.options.length > 1)
|
|
1087
1089
|
throw new RangeError("integer-width stems only accept a single optional option");
|
|
1088
|
-
i.options[0].replace(
|
|
1090
|
+
i.options[0].replace(fn, function(l, u, h, c, m, p) {
|
|
1089
1091
|
if (u)
|
|
1090
1092
|
t.minimumIntegerDigits = h.length;
|
|
1091
1093
|
else {
|
|
1092
1094
|
if (c && m)
|
|
1093
1095
|
throw new Error("We currently do not support maximum integer digits");
|
|
1094
|
-
if (
|
|
1096
|
+
if (p)
|
|
1095
1097
|
throw new Error("We currently do not support exact integer digits");
|
|
1096
1098
|
}
|
|
1097
1099
|
return "";
|
|
1098
1100
|
});
|
|
1099
1101
|
continue;
|
|
1100
1102
|
}
|
|
1101
|
-
if (
|
|
1103
|
+
if (kt.test(i.stem)) {
|
|
1102
1104
|
t.minimumIntegerDigits = i.stem.length;
|
|
1103
1105
|
continue;
|
|
1104
1106
|
}
|
|
1105
|
-
if (
|
|
1107
|
+
if (st.test(i.stem)) {
|
|
1106
1108
|
if (i.options.length > 1)
|
|
1107
1109
|
throw new RangeError("Fraction-precision stems only accept a single optional option");
|
|
1108
|
-
i.stem.replace(
|
|
1109
|
-
return h === "*" ? t.minimumFractionDigits = u.length : c && c[0] === "#" ? t.maximumFractionDigits = c.length : m &&
|
|
1110
|
+
i.stem.replace(st, function(l, u, h, c, m, p) {
|
|
1111
|
+
return h === "*" ? t.minimumFractionDigits = u.length : c && c[0] === "#" ? t.maximumFractionDigits = c.length : m && p ? (t.minimumFractionDigits = m.length, t.maximumFractionDigits = m.length + p.length) : (t.minimumFractionDigits = u.length, t.maximumFractionDigits = u.length), "";
|
|
1110
1112
|
});
|
|
1111
1113
|
var s = i.options[0];
|
|
1112
|
-
s === "w" ? t =
|
|
1114
|
+
s === "w" ? t = E(E({}, t), { trailingZeroDisplay: "stripIfInteger" }) : s && (t = E(E({}, t), ot(s)));
|
|
1113
1115
|
continue;
|
|
1114
1116
|
}
|
|
1115
|
-
if (
|
|
1116
|
-
t =
|
|
1117
|
+
if (jt.test(i.stem)) {
|
|
1118
|
+
t = E(E({}, t), ot(i.stem));
|
|
1117
1119
|
continue;
|
|
1118
1120
|
}
|
|
1119
|
-
var
|
|
1120
|
-
|
|
1121
|
-
var
|
|
1122
|
-
|
|
1121
|
+
var a = Vt(i.stem);
|
|
1122
|
+
a && (t = E(E({}, t), a));
|
|
1123
|
+
var o = cn(i.stem);
|
|
1124
|
+
o && (t = E(E({}, t), o));
|
|
1123
1125
|
}
|
|
1124
1126
|
return t;
|
|
1125
1127
|
}
|
|
1126
|
-
var
|
|
1128
|
+
var oe = {
|
|
1127
1129
|
"001": [
|
|
1128
1130
|
"H",
|
|
1129
1131
|
"h"
|
|
@@ -2538,23 +2540,23 @@ var se = {
|
|
|
2538
2540
|
"h"
|
|
2539
2541
|
]
|
|
2540
2542
|
};
|
|
2541
|
-
function
|
|
2542
|
-
for (var
|
|
2543
|
-
var i = e.charAt(
|
|
2543
|
+
function pn(e, t) {
|
|
2544
|
+
for (var r = "", n = 0; n < e.length; n++) {
|
|
2545
|
+
var i = e.charAt(n);
|
|
2544
2546
|
if (i === "j") {
|
|
2545
|
-
for (var s = 0;
|
|
2546
|
-
s++,
|
|
2547
|
-
var
|
|
2548
|
-
for ((u == "H" || u == "k") && (
|
|
2549
|
-
|
|
2550
|
-
for (;
|
|
2551
|
-
|
|
2547
|
+
for (var s = 0; n + 1 < e.length && e.charAt(n + 1) === i; )
|
|
2548
|
+
s++, n++;
|
|
2549
|
+
var a = 1 + (s & 1), o = s < 2 ? 1 : 3 + (s >> 1), l = "a", u = dn(t);
|
|
2550
|
+
for ((u == "H" || u == "k") && (o = 0); o-- > 0; )
|
|
2551
|
+
r += l;
|
|
2552
|
+
for (; a-- > 0; )
|
|
2553
|
+
r = u + r;
|
|
2552
2554
|
} else
|
|
2553
|
-
i === "J" ?
|
|
2555
|
+
i === "J" ? r += "H" : r += i;
|
|
2554
2556
|
}
|
|
2555
|
-
return
|
|
2557
|
+
return r;
|
|
2556
2558
|
}
|
|
2557
|
-
function
|
|
2559
|
+
function dn(e) {
|
|
2558
2560
|
var t = e.hourCycle;
|
|
2559
2561
|
if (t === void 0 && // @ts-ignore hourCycle(s) is not identified yet
|
|
2560
2562
|
e.hourCycles && // @ts-ignore
|
|
@@ -2571,73 +2573,73 @@ function dr(e) {
|
|
|
2571
2573
|
default:
|
|
2572
2574
|
throw new Error("Invalid hourCycle");
|
|
2573
2575
|
}
|
|
2574
|
-
var
|
|
2575
|
-
|
|
2576
|
-
var i =
|
|
2576
|
+
var r = e.language, n;
|
|
2577
|
+
r !== "root" && (n = e.maximize().region);
|
|
2578
|
+
var i = oe[n || ""] || oe[r || ""] || oe["".concat(r, "-001")] || oe["001"];
|
|
2577
2579
|
return i[0];
|
|
2578
2580
|
}
|
|
2579
|
-
var
|
|
2580
|
-
function
|
|
2581
|
+
var Ce, bn = new RegExp("^".concat(Ft.source, "*")), gn = new RegExp("".concat(Ft.source, "*$"));
|
|
2582
|
+
function b(e, t) {
|
|
2581
2583
|
return { start: e, end: t };
|
|
2582
2584
|
}
|
|
2583
|
-
var
|
|
2585
|
+
var _n = !!String.prototype.startsWith && "_a".startsWith("a", 1), yn = !!String.fromCodePoint, En = !!Object.fromEntries, xn = !!String.prototype.codePointAt, vn = !!String.prototype.trimStart, Hn = !!String.prototype.trimEnd, Bn = !!Number.isSafeInteger, Tn = Bn ? Number.isSafeInteger : function(e) {
|
|
2584
2586
|
return typeof e == "number" && isFinite(e) && Math.floor(e) === e && Math.abs(e) <= 9007199254740991;
|
|
2585
|
-
},
|
|
2587
|
+
}, De = !0;
|
|
2586
2588
|
try {
|
|
2587
|
-
var
|
|
2588
|
-
|
|
2589
|
+
var wn = Wt("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
2590
|
+
De = ((Ce = wn.exec("a")) === null || Ce === void 0 ? void 0 : Ce[0]) === "a";
|
|
2589
2591
|
} catch (e) {
|
|
2590
|
-
|
|
2592
|
+
De = !1;
|
|
2591
2593
|
}
|
|
2592
|
-
var
|
|
2594
|
+
var ut = _n ? (
|
|
2593
2595
|
// Native
|
|
2594
|
-
function(t,
|
|
2595
|
-
return t.startsWith(
|
|
2596
|
+
function(t, r, n) {
|
|
2597
|
+
return t.startsWith(r, n);
|
|
2596
2598
|
}
|
|
2597
2599
|
) : (
|
|
2598
2600
|
// For IE11
|
|
2599
|
-
function(t,
|
|
2600
|
-
return t.slice(
|
|
2601
|
+
function(t, r, n) {
|
|
2602
|
+
return t.slice(n, n + r.length) === r;
|
|
2601
2603
|
}
|
|
2602
|
-
),
|
|
2604
|
+
), Ge = yn ? String.fromCodePoint : (
|
|
2603
2605
|
// IE11
|
|
2604
2606
|
function() {
|
|
2605
|
-
for (var t = [],
|
|
2606
|
-
t[
|
|
2607
|
-
for (var
|
|
2608
|
-
if (
|
|
2609
|
-
throw RangeError(
|
|
2610
|
-
|
|
2607
|
+
for (var t = [], r = 0; r < arguments.length; r++)
|
|
2608
|
+
t[r] = arguments[r];
|
|
2609
|
+
for (var n = "", i = t.length, s = 0, a; i > s; ) {
|
|
2610
|
+
if (a = t[s++], a > 1114111)
|
|
2611
|
+
throw RangeError(a + " is not a valid code point");
|
|
2612
|
+
n += a < 65536 ? String.fromCharCode(a) : String.fromCharCode(((a -= 65536) >> 10) + 55296, a % 1024 + 56320);
|
|
2611
2613
|
}
|
|
2612
|
-
return
|
|
2614
|
+
return n;
|
|
2613
2615
|
}
|
|
2614
|
-
),
|
|
2616
|
+
), ht = (
|
|
2615
2617
|
// native
|
|
2616
|
-
|
|
2618
|
+
En ? Object.fromEntries : (
|
|
2617
2619
|
// Ponyfill
|
|
2618
2620
|
function(t) {
|
|
2619
|
-
for (var
|
|
2620
|
-
var s = i[
|
|
2621
|
-
|
|
2621
|
+
for (var r = {}, n = 0, i = t; n < i.length; n++) {
|
|
2622
|
+
var s = i[n], a = s[0], o = s[1];
|
|
2623
|
+
r[a] = o;
|
|
2622
2624
|
}
|
|
2623
|
-
return
|
|
2625
|
+
return r;
|
|
2624
2626
|
}
|
|
2625
2627
|
)
|
|
2626
|
-
),
|
|
2628
|
+
), Xt = xn ? (
|
|
2627
2629
|
// Native
|
|
2628
|
-
function(t,
|
|
2629
|
-
return t.codePointAt(
|
|
2630
|
+
function(t, r) {
|
|
2631
|
+
return t.codePointAt(r);
|
|
2630
2632
|
}
|
|
2631
2633
|
) : (
|
|
2632
2634
|
// IE 11
|
|
2633
|
-
function(t,
|
|
2634
|
-
var
|
|
2635
|
-
if (!(
|
|
2636
|
-
var i = t.charCodeAt(
|
|
2637
|
-
return i < 55296 || i > 56319 ||
|
|
2635
|
+
function(t, r) {
|
|
2636
|
+
var n = t.length;
|
|
2637
|
+
if (!(r < 0 || r >= n)) {
|
|
2638
|
+
var i = t.charCodeAt(r), s;
|
|
2639
|
+
return i < 55296 || i > 56319 || r + 1 === n || (s = t.charCodeAt(r + 1)) < 56320 || s > 57343 ? i : (i - 55296 << 10) + (s - 56320) + 65536;
|
|
2638
2640
|
}
|
|
2639
2641
|
}
|
|
2640
|
-
),
|
|
2642
|
+
), Sn = vn ? (
|
|
2641
2643
|
// Native
|
|
2642
2644
|
function(t) {
|
|
2643
2645
|
return t.trimStart();
|
|
@@ -2645,9 +2647,9 @@ var at = gr ? (
|
|
|
2645
2647
|
) : (
|
|
2646
2648
|
// Ponyfill
|
|
2647
2649
|
function(t) {
|
|
2648
|
-
return t.replace(
|
|
2650
|
+
return t.replace(bn, "");
|
|
2649
2651
|
}
|
|
2650
|
-
),
|
|
2652
|
+
), An = Hn ? (
|
|
2651
2653
|
// Native
|
|
2652
2654
|
function(t) {
|
|
2653
2655
|
return t.trimEnd();
|
|
@@ -2655,143 +2657,143 @@ var at = gr ? (
|
|
|
2655
2657
|
) : (
|
|
2656
2658
|
// Ponyfill
|
|
2657
2659
|
function(t) {
|
|
2658
|
-
return t.replace(
|
|
2660
|
+
return t.replace(gn, "");
|
|
2659
2661
|
}
|
|
2660
2662
|
);
|
|
2661
|
-
function
|
|
2663
|
+
function Wt(e, t) {
|
|
2662
2664
|
return new RegExp(e, t);
|
|
2663
2665
|
}
|
|
2664
|
-
var
|
|
2665
|
-
if (
|
|
2666
|
-
var
|
|
2667
|
-
|
|
2668
|
-
var
|
|
2669
|
-
|
|
2670
|
-
var i =
|
|
2671
|
-
return (
|
|
2666
|
+
var Fe;
|
|
2667
|
+
if (De) {
|
|
2668
|
+
var lt = Wt("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
2669
|
+
Fe = function(t, r) {
|
|
2670
|
+
var n;
|
|
2671
|
+
lt.lastIndex = r;
|
|
2672
|
+
var i = lt.exec(t);
|
|
2673
|
+
return (n = i[1]) !== null && n !== void 0 ? n : "";
|
|
2672
2674
|
};
|
|
2673
2675
|
} else
|
|
2674
|
-
|
|
2675
|
-
for (var
|
|
2676
|
-
var i =
|
|
2677
|
-
if (i === void 0 || zt(i) ||
|
|
2676
|
+
Fe = function(t, r) {
|
|
2677
|
+
for (var n = []; ; ) {
|
|
2678
|
+
var i = Xt(t, r);
|
|
2679
|
+
if (i === void 0 || zt(i) || Ln(i))
|
|
2678
2680
|
break;
|
|
2679
|
-
|
|
2681
|
+
n.push(i), r += i >= 65536 ? 2 : 1;
|
|
2680
2682
|
}
|
|
2681
|
-
return
|
|
2683
|
+
return Ge.apply(void 0, n);
|
|
2682
2684
|
};
|
|
2683
|
-
var
|
|
2685
|
+
var On = (
|
|
2684
2686
|
/** @class */
|
|
2685
2687
|
function() {
|
|
2686
|
-
function e(t,
|
|
2687
|
-
|
|
2688
|
+
function e(t, r) {
|
|
2689
|
+
r === void 0 && (r = {}), this.message = t, this.position = { offset: 0, line: 1, column: 1 }, this.ignoreTag = !!r.ignoreTag, this.locale = r.locale, this.requiresOtherClause = !!r.requiresOtherClause, this.shouldParseSkeletons = !!r.shouldParseSkeletons;
|
|
2688
2690
|
}
|
|
2689
2691
|
return e.prototype.parse = function() {
|
|
2690
2692
|
if (this.offset() !== 0)
|
|
2691
2693
|
throw Error("parser can only be used once");
|
|
2692
2694
|
return this.parseMessage(0, "", !1);
|
|
2693
|
-
}, e.prototype.parseMessage = function(t,
|
|
2695
|
+
}, e.prototype.parseMessage = function(t, r, n) {
|
|
2694
2696
|
for (var i = []; !this.isEOF(); ) {
|
|
2695
2697
|
var s = this.char();
|
|
2696
2698
|
if (s === 123) {
|
|
2697
|
-
var
|
|
2698
|
-
if (
|
|
2699
|
-
return
|
|
2700
|
-
i.push(
|
|
2699
|
+
var a = this.parseArgument(t, n);
|
|
2700
|
+
if (a.err)
|
|
2701
|
+
return a;
|
|
2702
|
+
i.push(a.val);
|
|
2701
2703
|
} else {
|
|
2702
2704
|
if (s === 125 && t > 0)
|
|
2703
2705
|
break;
|
|
2704
|
-
if (s === 35 && (
|
|
2705
|
-
var
|
|
2706
|
+
if (s === 35 && (r === "plural" || r === "selectordinal")) {
|
|
2707
|
+
var o = this.clonePosition();
|
|
2706
2708
|
this.bump(), i.push({
|
|
2707
|
-
type:
|
|
2708
|
-
location:
|
|
2709
|
+
type: y.pound,
|
|
2710
|
+
location: b(o, this.clonePosition())
|
|
2709
2711
|
});
|
|
2710
2712
|
} else if (s === 60 && !this.ignoreTag && this.peek() === 47) {
|
|
2711
|
-
if (
|
|
2713
|
+
if (n)
|
|
2712
2714
|
break;
|
|
2713
|
-
return this.error(
|
|
2714
|
-
} else if (s === 60 && !this.ignoreTag &&
|
|
2715
|
-
var
|
|
2716
|
-
if (
|
|
2717
|
-
return
|
|
2718
|
-
i.push(
|
|
2715
|
+
return this.error(d.UNMATCHED_CLOSING_TAG, b(this.clonePosition(), this.clonePosition()));
|
|
2716
|
+
} else if (s === 60 && !this.ignoreTag && je(this.peek() || 0)) {
|
|
2717
|
+
var a = this.parseTag(t, r);
|
|
2718
|
+
if (a.err)
|
|
2719
|
+
return a;
|
|
2720
|
+
i.push(a.val);
|
|
2719
2721
|
} else {
|
|
2720
|
-
var
|
|
2721
|
-
if (
|
|
2722
|
-
return
|
|
2723
|
-
i.push(
|
|
2722
|
+
var a = this.parseLiteral(t, r);
|
|
2723
|
+
if (a.err)
|
|
2724
|
+
return a;
|
|
2725
|
+
i.push(a.val);
|
|
2724
2726
|
}
|
|
2725
2727
|
}
|
|
2726
2728
|
}
|
|
2727
2729
|
return { val: i, err: null };
|
|
2728
|
-
}, e.prototype.parseTag = function(t,
|
|
2729
|
-
var
|
|
2730
|
+
}, e.prototype.parseTag = function(t, r) {
|
|
2731
|
+
var n = this.clonePosition();
|
|
2730
2732
|
this.bump();
|
|
2731
2733
|
var i = this.parseTagName();
|
|
2732
2734
|
if (this.bumpSpace(), this.bumpIf("/>"))
|
|
2733
2735
|
return {
|
|
2734
2736
|
val: {
|
|
2735
|
-
type:
|
|
2737
|
+
type: y.literal,
|
|
2736
2738
|
value: "<".concat(i, "/>"),
|
|
2737
|
-
location:
|
|
2739
|
+
location: b(n, this.clonePosition())
|
|
2738
2740
|
},
|
|
2739
2741
|
err: null
|
|
2740
2742
|
};
|
|
2741
2743
|
if (this.bumpIf(">")) {
|
|
2742
|
-
var s = this.parseMessage(t + 1,
|
|
2744
|
+
var s = this.parseMessage(t + 1, r, !0);
|
|
2743
2745
|
if (s.err)
|
|
2744
2746
|
return s;
|
|
2745
|
-
var
|
|
2747
|
+
var a = s.val, o = this.clonePosition();
|
|
2746
2748
|
if (this.bumpIf("</")) {
|
|
2747
|
-
if (this.isEOF() || !
|
|
2748
|
-
return this.error(
|
|
2749
|
+
if (this.isEOF() || !je(this.char()))
|
|
2750
|
+
return this.error(d.INVALID_TAG, b(o, this.clonePosition()));
|
|
2749
2751
|
var l = this.clonePosition(), u = this.parseTagName();
|
|
2750
|
-
return i !== u ? this.error(
|
|
2752
|
+
return i !== u ? this.error(d.UNMATCHED_CLOSING_TAG, b(l, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
|
|
2751
2753
|
val: {
|
|
2752
|
-
type:
|
|
2754
|
+
type: y.tag,
|
|
2753
2755
|
value: i,
|
|
2754
|
-
children:
|
|
2755
|
-
location:
|
|
2756
|
+
children: a,
|
|
2757
|
+
location: b(n, this.clonePosition())
|
|
2756
2758
|
},
|
|
2757
2759
|
err: null
|
|
2758
|
-
} : this.error(
|
|
2760
|
+
} : this.error(d.INVALID_TAG, b(o, this.clonePosition())));
|
|
2759
2761
|
} else
|
|
2760
|
-
return this.error(
|
|
2762
|
+
return this.error(d.UNCLOSED_TAG, b(n, this.clonePosition()));
|
|
2761
2763
|
} else
|
|
2762
|
-
return this.error(
|
|
2764
|
+
return this.error(d.INVALID_TAG, b(n, this.clonePosition()));
|
|
2763
2765
|
}, e.prototype.parseTagName = function() {
|
|
2764
2766
|
var t = this.offset();
|
|
2765
|
-
for (this.bump(); !this.isEOF() &&
|
|
2767
|
+
for (this.bump(); !this.isEOF() && Cn(this.char()); )
|
|
2766
2768
|
this.bump();
|
|
2767
2769
|
return this.message.slice(t, this.offset());
|
|
2768
|
-
}, e.prototype.parseLiteral = function(t,
|
|
2769
|
-
for (var
|
|
2770
|
-
var s = this.tryParseQuote(
|
|
2770
|
+
}, e.prototype.parseLiteral = function(t, r) {
|
|
2771
|
+
for (var n = this.clonePosition(), i = ""; ; ) {
|
|
2772
|
+
var s = this.tryParseQuote(r);
|
|
2771
2773
|
if (s) {
|
|
2772
2774
|
i += s;
|
|
2773
2775
|
continue;
|
|
2774
2776
|
}
|
|
2775
|
-
var
|
|
2776
|
-
if (o) {
|
|
2777
|
-
i += o;
|
|
2778
|
-
continue;
|
|
2779
|
-
}
|
|
2780
|
-
var a = this.tryParseLeftAngleBracket();
|
|
2777
|
+
var a = this.tryParseUnquoted(t, r);
|
|
2781
2778
|
if (a) {
|
|
2782
2779
|
i += a;
|
|
2783
2780
|
continue;
|
|
2784
2781
|
}
|
|
2782
|
+
var o = this.tryParseLeftAngleBracket();
|
|
2783
|
+
if (o) {
|
|
2784
|
+
i += o;
|
|
2785
|
+
continue;
|
|
2786
|
+
}
|
|
2785
2787
|
break;
|
|
2786
2788
|
}
|
|
2787
|
-
var l =
|
|
2789
|
+
var l = b(n, this.clonePosition());
|
|
2788
2790
|
return {
|
|
2789
|
-
val: { type:
|
|
2791
|
+
val: { type: y.literal, value: i, location: l },
|
|
2790
2792
|
err: null
|
|
2791
2793
|
};
|
|
2792
2794
|
}, e.prototype.tryParseLeftAngleBracket = function() {
|
|
2793
2795
|
return !this.isEOF() && this.char() === 60 && (this.ignoreTag || // If at the opening tag or closing tag position, bail.
|
|
2794
|
-
!
|
|
2796
|
+
!Pn(this.peek() || 0)) ? (this.bump(), "<") : null;
|
|
2795
2797
|
}, e.prototype.tryParseQuote = function(t) {
|
|
2796
2798
|
if (this.isEOF() || this.char() !== 39)
|
|
2797
2799
|
return null;
|
|
@@ -2811,63 +2813,63 @@ var Ar = (
|
|
|
2811
2813
|
return null;
|
|
2812
2814
|
}
|
|
2813
2815
|
this.bump();
|
|
2814
|
-
var
|
|
2816
|
+
var r = [this.char()];
|
|
2815
2817
|
for (this.bump(); !this.isEOF(); ) {
|
|
2816
|
-
var
|
|
2817
|
-
if (
|
|
2818
|
+
var n = this.char();
|
|
2819
|
+
if (n === 39)
|
|
2818
2820
|
if (this.peek() === 39)
|
|
2819
|
-
|
|
2821
|
+
r.push(39), this.bump();
|
|
2820
2822
|
else {
|
|
2821
2823
|
this.bump();
|
|
2822
2824
|
break;
|
|
2823
2825
|
}
|
|
2824
2826
|
else
|
|
2825
|
-
|
|
2827
|
+
r.push(n);
|
|
2826
2828
|
this.bump();
|
|
2827
2829
|
}
|
|
2828
|
-
return
|
|
2829
|
-
}, e.prototype.tryParseUnquoted = function(t,
|
|
2830
|
+
return Ge.apply(void 0, r);
|
|
2831
|
+
}, e.prototype.tryParseUnquoted = function(t, r) {
|
|
2830
2832
|
if (this.isEOF())
|
|
2831
2833
|
return null;
|
|
2832
|
-
var
|
|
2833
|
-
return
|
|
2834
|
-
}, e.prototype.parseArgument = function(t,
|
|
2835
|
-
var
|
|
2834
|
+
var n = this.char();
|
|
2835
|
+
return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(), Ge(n));
|
|
2836
|
+
}, e.prototype.parseArgument = function(t, r) {
|
|
2837
|
+
var n = this.clonePosition();
|
|
2836
2838
|
if (this.bump(), this.bumpSpace(), this.isEOF())
|
|
2837
|
-
return this.error(
|
|
2839
|
+
return this.error(d.EXPECT_ARGUMENT_CLOSING_BRACE, b(n, this.clonePosition()));
|
|
2838
2840
|
if (this.char() === 125)
|
|
2839
|
-
return this.bump(), this.error(
|
|
2841
|
+
return this.bump(), this.error(d.EMPTY_ARGUMENT, b(n, this.clonePosition()));
|
|
2840
2842
|
var i = this.parseIdentifierIfPossible().value;
|
|
2841
2843
|
if (!i)
|
|
2842
|
-
return this.error(
|
|
2844
|
+
return this.error(d.MALFORMED_ARGUMENT, b(n, this.clonePosition()));
|
|
2843
2845
|
if (this.bumpSpace(), this.isEOF())
|
|
2844
|
-
return this.error(
|
|
2846
|
+
return this.error(d.EXPECT_ARGUMENT_CLOSING_BRACE, b(n, this.clonePosition()));
|
|
2845
2847
|
switch (this.char()) {
|
|
2846
2848
|
case 125:
|
|
2847
2849
|
return this.bump(), {
|
|
2848
2850
|
val: {
|
|
2849
|
-
type:
|
|
2851
|
+
type: y.argument,
|
|
2850
2852
|
// value does not include the opening and closing braces.
|
|
2851
2853
|
value: i,
|
|
2852
|
-
location:
|
|
2854
|
+
location: b(n, this.clonePosition())
|
|
2853
2855
|
},
|
|
2854
2856
|
err: null
|
|
2855
2857
|
};
|
|
2856
2858
|
case 44:
|
|
2857
|
-
return this.bump(), this.bumpSpace(), this.isEOF() ? this.error(
|
|
2859
|
+
return this.bump(), this.bumpSpace(), this.isEOF() ? this.error(d.EXPECT_ARGUMENT_CLOSING_BRACE, b(n, this.clonePosition())) : this.parseArgumentOptions(t, r, i, n);
|
|
2858
2860
|
default:
|
|
2859
|
-
return this.error(
|
|
2861
|
+
return this.error(d.MALFORMED_ARGUMENT, b(n, this.clonePosition()));
|
|
2860
2862
|
}
|
|
2861
2863
|
}, e.prototype.parseIdentifierIfPossible = function() {
|
|
2862
|
-
var t = this.clonePosition(),
|
|
2864
|
+
var t = this.clonePosition(), r = this.offset(), n = Fe(this.message, r), i = r + n.length;
|
|
2863
2865
|
this.bumpTo(i);
|
|
2864
|
-
var s = this.clonePosition(),
|
|
2865
|
-
return { value:
|
|
2866
|
-
}, e.prototype.parseArgumentOptions = function(t,
|
|
2867
|
-
var s,
|
|
2868
|
-
switch (
|
|
2866
|
+
var s = this.clonePosition(), a = b(t, s);
|
|
2867
|
+
return { value: n, location: a };
|
|
2868
|
+
}, e.prototype.parseArgumentOptions = function(t, r, n, i) {
|
|
2869
|
+
var s, a = this.clonePosition(), o = this.parseIdentifierIfPossible().value, l = this.clonePosition();
|
|
2870
|
+
switch (o) {
|
|
2869
2871
|
case "":
|
|
2870
|
-
return this.error(
|
|
2872
|
+
return this.error(d.EXPECT_ARGUMENT_TYPE, b(a, l));
|
|
2871
2873
|
case "number":
|
|
2872
2874
|
case "date":
|
|
2873
2875
|
case "time": {
|
|
@@ -2878,45 +2880,45 @@ var Ar = (
|
|
|
2878
2880
|
var h = this.clonePosition(), c = this.parseSimpleArgStyleIfPossible();
|
|
2879
2881
|
if (c.err)
|
|
2880
2882
|
return c;
|
|
2881
|
-
var m =
|
|
2883
|
+
var m = An(c.val);
|
|
2882
2884
|
if (m.length === 0)
|
|
2883
|
-
return this.error(
|
|
2884
|
-
var
|
|
2885
|
-
u = { style: m, styleLocation:
|
|
2885
|
+
return this.error(d.EXPECT_ARGUMENT_STYLE, b(this.clonePosition(), this.clonePosition()));
|
|
2886
|
+
var p = b(h, this.clonePosition());
|
|
2887
|
+
u = { style: m, styleLocation: p };
|
|
2886
2888
|
}
|
|
2887
2889
|
var f = this.tryParseArgumentClose(i);
|
|
2888
2890
|
if (f.err)
|
|
2889
2891
|
return f;
|
|
2890
|
-
var _ =
|
|
2891
|
-
if (u &&
|
|
2892
|
-
var v =
|
|
2893
|
-
if (
|
|
2892
|
+
var _ = b(i, this.clonePosition());
|
|
2893
|
+
if (u && ut(u == null ? void 0 : u.style, "::", 0)) {
|
|
2894
|
+
var v = Sn(u.style.slice(2));
|
|
2895
|
+
if (o === "number") {
|
|
2894
2896
|
var c = this.parseNumberSkeletonFromString(v, u.styleLocation);
|
|
2895
2897
|
return c.err ? c : {
|
|
2896
|
-
val: { type:
|
|
2898
|
+
val: { type: y.number, value: n, location: _, style: c.val },
|
|
2897
2899
|
err: null
|
|
2898
2900
|
};
|
|
2899
2901
|
} else {
|
|
2900
2902
|
if (v.length === 0)
|
|
2901
|
-
return this.error(
|
|
2902
|
-
var
|
|
2903
|
-
this.locale && (
|
|
2903
|
+
return this.error(d.EXPECT_DATE_TIME_SKELETON, _);
|
|
2904
|
+
var O = v;
|
|
2905
|
+
this.locale && (O = pn(v, this.locale));
|
|
2904
2906
|
var m = {
|
|
2905
|
-
type:
|
|
2906
|
-
pattern:
|
|
2907
|
+
type: k.dateTime,
|
|
2908
|
+
pattern: O,
|
|
2907
2909
|
location: u.styleLocation,
|
|
2908
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
2909
|
-
},
|
|
2910
|
+
parsedOptions: this.shouldParseSkeletons ? an(O) : {}
|
|
2911
|
+
}, P = o === "date" ? y.date : y.time;
|
|
2910
2912
|
return {
|
|
2911
|
-
val: { type:
|
|
2913
|
+
val: { type: P, value: n, location: _, style: m },
|
|
2912
2914
|
err: null
|
|
2913
2915
|
};
|
|
2914
2916
|
}
|
|
2915
2917
|
}
|
|
2916
2918
|
return {
|
|
2917
2919
|
val: {
|
|
2918
|
-
type:
|
|
2919
|
-
value:
|
|
2920
|
+
type: o === "number" ? y.number : o === "date" ? y.date : y.time,
|
|
2921
|
+
value: n,
|
|
2920
2922
|
location: _,
|
|
2921
2923
|
style: (s = u == null ? void 0 : u.style) !== null && s !== void 0 ? s : null
|
|
2922
2924
|
},
|
|
@@ -2928,59 +2930,59 @@ var Ar = (
|
|
|
2928
2930
|
case "select": {
|
|
2929
2931
|
var H = this.clonePosition();
|
|
2930
2932
|
if (this.bumpSpace(), !this.bumpIf(","))
|
|
2931
|
-
return this.error(
|
|
2933
|
+
return this.error(d.EXPECT_SELECT_ARGUMENT_OPTIONS, b(H, me({}, H)));
|
|
2932
2934
|
this.bumpSpace();
|
|
2933
|
-
var
|
|
2934
|
-
if (
|
|
2935
|
+
var I = this.parseIdentifierIfPossible(), A = 0;
|
|
2936
|
+
if (o !== "select" && I.value === "offset") {
|
|
2935
2937
|
if (!this.bumpIf(":"))
|
|
2936
|
-
return this.error(
|
|
2938
|
+
return this.error(d.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, b(this.clonePosition(), this.clonePosition()));
|
|
2937
2939
|
this.bumpSpace();
|
|
2938
|
-
var c = this.tryParseDecimalInteger(
|
|
2940
|
+
var c = this.tryParseDecimalInteger(d.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, d.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);
|
|
2939
2941
|
if (c.err)
|
|
2940
2942
|
return c;
|
|
2941
|
-
this.bumpSpace(),
|
|
2943
|
+
this.bumpSpace(), I = this.parseIdentifierIfPossible(), A = c.val;
|
|
2942
2944
|
}
|
|
2943
|
-
var R = this.tryParsePluralOrSelectOptions(t,
|
|
2945
|
+
var R = this.tryParsePluralOrSelectOptions(t, o, r, I);
|
|
2944
2946
|
if (R.err)
|
|
2945
2947
|
return R;
|
|
2946
2948
|
var f = this.tryParseArgumentClose(i);
|
|
2947
2949
|
if (f.err)
|
|
2948
2950
|
return f;
|
|
2949
|
-
var
|
|
2950
|
-
return
|
|
2951
|
+
var se = b(i, this.clonePosition());
|
|
2952
|
+
return o === "select" ? {
|
|
2951
2953
|
val: {
|
|
2952
|
-
type:
|
|
2953
|
-
value:
|
|
2954
|
-
options:
|
|
2955
|
-
location:
|
|
2954
|
+
type: y.select,
|
|
2955
|
+
value: n,
|
|
2956
|
+
options: ht(R.val),
|
|
2957
|
+
location: se
|
|
2956
2958
|
},
|
|
2957
2959
|
err: null
|
|
2958
2960
|
} : {
|
|
2959
2961
|
val: {
|
|
2960
|
-
type:
|
|
2961
|
-
value:
|
|
2962
|
-
options:
|
|
2963
|
-
offset:
|
|
2964
|
-
pluralType:
|
|
2965
|
-
location:
|
|
2962
|
+
type: y.plural,
|
|
2963
|
+
value: n,
|
|
2964
|
+
options: ht(R.val),
|
|
2965
|
+
offset: A,
|
|
2966
|
+
pluralType: o === "plural" ? "cardinal" : "ordinal",
|
|
2967
|
+
location: se
|
|
2966
2968
|
},
|
|
2967
2969
|
err: null
|
|
2968
2970
|
};
|
|
2969
2971
|
}
|
|
2970
2972
|
default:
|
|
2971
|
-
return this.error(
|
|
2973
|
+
return this.error(d.INVALID_ARGUMENT_TYPE, b(a, l));
|
|
2972
2974
|
}
|
|
2973
2975
|
}, e.prototype.tryParseArgumentClose = function(t) {
|
|
2974
|
-
return this.isEOF() || this.char() !== 125 ? this.error(
|
|
2976
|
+
return this.isEOF() || this.char() !== 125 ? this.error(d.EXPECT_ARGUMENT_CLOSING_BRACE, b(t, this.clonePosition())) : (this.bump(), { val: !0, err: null });
|
|
2975
2977
|
}, e.prototype.parseSimpleArgStyleIfPossible = function() {
|
|
2976
|
-
for (var t = 0,
|
|
2977
|
-
var
|
|
2978
|
-
switch (
|
|
2978
|
+
for (var t = 0, r = this.clonePosition(); !this.isEOF(); ) {
|
|
2979
|
+
var n = this.char();
|
|
2980
|
+
switch (n) {
|
|
2979
2981
|
case 39: {
|
|
2980
2982
|
this.bump();
|
|
2981
2983
|
var i = this.clonePosition();
|
|
2982
2984
|
if (!this.bumpUntil("'"))
|
|
2983
|
-
return this.error(
|
|
2985
|
+
return this.error(d.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE, b(i, this.clonePosition()));
|
|
2984
2986
|
this.bump();
|
|
2985
2987
|
break;
|
|
2986
2988
|
}
|
|
@@ -2993,7 +2995,7 @@ var Ar = (
|
|
|
2993
2995
|
t -= 1;
|
|
2994
2996
|
else
|
|
2995
2997
|
return {
|
|
2996
|
-
val: this.message.slice(
|
|
2998
|
+
val: this.message.slice(r.offset, this.offset()),
|
|
2997
2999
|
err: null
|
|
2998
3000
|
};
|
|
2999
3001
|
break;
|
|
@@ -3004,70 +3006,70 @@ var Ar = (
|
|
|
3004
3006
|
}
|
|
3005
3007
|
}
|
|
3006
3008
|
return {
|
|
3007
|
-
val: this.message.slice(
|
|
3009
|
+
val: this.message.slice(r.offset, this.offset()),
|
|
3008
3010
|
err: null
|
|
3009
3011
|
};
|
|
3010
|
-
}, e.prototype.parseNumberSkeletonFromString = function(t,
|
|
3011
|
-
var
|
|
3012
|
+
}, e.prototype.parseNumberSkeletonFromString = function(t, r) {
|
|
3013
|
+
var n = [];
|
|
3012
3014
|
try {
|
|
3013
|
-
|
|
3015
|
+
n = hn(t);
|
|
3014
3016
|
} catch (i) {
|
|
3015
|
-
return this.error(
|
|
3017
|
+
return this.error(d.INVALID_NUMBER_SKELETON, r);
|
|
3016
3018
|
}
|
|
3017
3019
|
return {
|
|
3018
3020
|
val: {
|
|
3019
|
-
type:
|
|
3020
|
-
tokens:
|
|
3021
|
-
location:
|
|
3022
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
3021
|
+
type: k.number,
|
|
3022
|
+
tokens: n,
|
|
3023
|
+
location: r,
|
|
3024
|
+
parsedOptions: this.shouldParseSkeletons ? mn(n) : {}
|
|
3023
3025
|
},
|
|
3024
3026
|
err: null
|
|
3025
3027
|
};
|
|
3026
|
-
}, e.prototype.tryParsePluralOrSelectOptions = function(t,
|
|
3027
|
-
for (var s,
|
|
3028
|
+
}, e.prototype.tryParsePluralOrSelectOptions = function(t, r, n, i) {
|
|
3029
|
+
for (var s, a = !1, o = [], l = /* @__PURE__ */ new Set(), u = i.value, h = i.location; ; ) {
|
|
3028
3030
|
if (u.length === 0) {
|
|
3029
3031
|
var c = this.clonePosition();
|
|
3030
|
-
if (
|
|
3031
|
-
var m = this.tryParseDecimalInteger(
|
|
3032
|
+
if (r !== "select" && this.bumpIf("=")) {
|
|
3033
|
+
var m = this.tryParseDecimalInteger(d.EXPECT_PLURAL_ARGUMENT_SELECTOR, d.INVALID_PLURAL_ARGUMENT_SELECTOR);
|
|
3032
3034
|
if (m.err)
|
|
3033
3035
|
return m;
|
|
3034
|
-
h =
|
|
3036
|
+
h = b(c, this.clonePosition()), u = this.message.slice(c.offset, this.offset());
|
|
3035
3037
|
} else
|
|
3036
3038
|
break;
|
|
3037
3039
|
}
|
|
3038
3040
|
if (l.has(u))
|
|
3039
|
-
return this.error(
|
|
3040
|
-
u === "other" && (
|
|
3041
|
-
var
|
|
3041
|
+
return this.error(r === "select" ? d.DUPLICATE_SELECT_ARGUMENT_SELECTOR : d.DUPLICATE_PLURAL_ARGUMENT_SELECTOR, h);
|
|
3042
|
+
u === "other" && (a = !0), this.bumpSpace();
|
|
3043
|
+
var p = this.clonePosition();
|
|
3042
3044
|
if (!this.bumpIf("{"))
|
|
3043
|
-
return this.error(
|
|
3044
|
-
var f = this.parseMessage(t + 1,
|
|
3045
|
+
return this.error(r === "select" ? d.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT : d.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT, b(this.clonePosition(), this.clonePosition()));
|
|
3046
|
+
var f = this.parseMessage(t + 1, r, n);
|
|
3045
3047
|
if (f.err)
|
|
3046
3048
|
return f;
|
|
3047
|
-
var _ = this.tryParseArgumentClose(
|
|
3049
|
+
var _ = this.tryParseArgumentClose(p);
|
|
3048
3050
|
if (_.err)
|
|
3049
3051
|
return _;
|
|
3050
|
-
|
|
3052
|
+
o.push([
|
|
3051
3053
|
u,
|
|
3052
3054
|
{
|
|
3053
3055
|
value: f.val,
|
|
3054
|
-
location: p
|
|
3056
|
+
location: b(p, this.clonePosition())
|
|
3055
3057
|
}
|
|
3056
3058
|
]), l.add(u), this.bumpSpace(), s = this.parseIdentifierIfPossible(), u = s.value, h = s.location;
|
|
3057
3059
|
}
|
|
3058
|
-
return
|
|
3059
|
-
}, e.prototype.tryParseDecimalInteger = function(t,
|
|
3060
|
-
var
|
|
3061
|
-
this.bumpIf("+") || this.bumpIf("-") && (
|
|
3062
|
-
for (var s = !1,
|
|
3063
|
-
var
|
|
3064
|
-
if (
|
|
3065
|
-
s = !0,
|
|
3060
|
+
return o.length === 0 ? this.error(r === "select" ? d.EXPECT_SELECT_ARGUMENT_SELECTOR : d.EXPECT_PLURAL_ARGUMENT_SELECTOR, b(this.clonePosition(), this.clonePosition())) : this.requiresOtherClause && !a ? this.error(d.MISSING_OTHER_CLAUSE, b(this.clonePosition(), this.clonePosition())) : { val: o, err: null };
|
|
3061
|
+
}, e.prototype.tryParseDecimalInteger = function(t, r) {
|
|
3062
|
+
var n = 1, i = this.clonePosition();
|
|
3063
|
+
this.bumpIf("+") || this.bumpIf("-") && (n = -1);
|
|
3064
|
+
for (var s = !1, a = 0; !this.isEOF(); ) {
|
|
3065
|
+
var o = this.char();
|
|
3066
|
+
if (o >= 48 && o <= 57)
|
|
3067
|
+
s = !0, a = a * 10 + (o - 48), this.bump();
|
|
3066
3068
|
else
|
|
3067
3069
|
break;
|
|
3068
3070
|
}
|
|
3069
|
-
var l =
|
|
3070
|
-
return s ? (
|
|
3071
|
+
var l = b(i, this.clonePosition());
|
|
3072
|
+
return s ? (a *= n, Tn(a) ? { val: a, err: null } : this.error(r, l)) : this.error(t, l);
|
|
3071
3073
|
}, e.prototype.offset = function() {
|
|
3072
3074
|
return this.position.offset;
|
|
3073
3075
|
}, e.prototype.isEOF = function() {
|
|
@@ -3082,17 +3084,17 @@ var Ar = (
|
|
|
3082
3084
|
var t = this.position.offset;
|
|
3083
3085
|
if (t >= this.message.length)
|
|
3084
3086
|
throw Error("out of bound");
|
|
3085
|
-
var
|
|
3086
|
-
if (
|
|
3087
|
+
var r = Xt(this.message, t);
|
|
3088
|
+
if (r === void 0)
|
|
3087
3089
|
throw Error("Offset ".concat(t, " is at invalid UTF-16 code unit boundary"));
|
|
3088
|
-
return
|
|
3089
|
-
}, e.prototype.error = function(t,
|
|
3090
|
+
return r;
|
|
3091
|
+
}, e.prototype.error = function(t, r) {
|
|
3090
3092
|
return {
|
|
3091
3093
|
val: null,
|
|
3092
3094
|
err: {
|
|
3093
3095
|
kind: t,
|
|
3094
3096
|
message: this.message,
|
|
3095
|
-
location:
|
|
3097
|
+
location: r
|
|
3096
3098
|
}
|
|
3097
3099
|
};
|
|
3098
3100
|
}, e.prototype.bump = function() {
|
|
@@ -3101,23 +3103,23 @@ var Ar = (
|
|
|
3101
3103
|
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);
|
|
3102
3104
|
}
|
|
3103
3105
|
}, e.prototype.bumpIf = function(t) {
|
|
3104
|
-
if (
|
|
3105
|
-
for (var
|
|
3106
|
+
if (ut(this.message, t, this.offset())) {
|
|
3107
|
+
for (var r = 0; r < t.length; r++)
|
|
3106
3108
|
this.bump();
|
|
3107
3109
|
return !0;
|
|
3108
3110
|
}
|
|
3109
3111
|
return !1;
|
|
3110
3112
|
}, e.prototype.bumpUntil = function(t) {
|
|
3111
|
-
var
|
|
3112
|
-
return
|
|
3113
|
+
var r = this.offset(), n = this.message.indexOf(t, r);
|
|
3114
|
+
return n >= 0 ? (this.bumpTo(n), !0) : (this.bumpTo(this.message.length), !1);
|
|
3113
3115
|
}, e.prototype.bumpTo = function(t) {
|
|
3114
3116
|
if (this.offset() > t)
|
|
3115
3117
|
throw Error("targetOffset ".concat(t, " must be greater than or equal to the current offset ").concat(this.offset()));
|
|
3116
3118
|
for (t = Math.min(t, this.message.length); ; ) {
|
|
3117
|
-
var
|
|
3118
|
-
if (
|
|
3119
|
+
var r = this.offset();
|
|
3120
|
+
if (r === t)
|
|
3119
3121
|
break;
|
|
3120
|
-
if (
|
|
3122
|
+
if (r > t)
|
|
3121
3123
|
throw Error("targetOffset ".concat(t, " is at invalid UTF-16 code unit boundary"));
|
|
3122
3124
|
if (this.bump(), this.isEOF())
|
|
3123
3125
|
break;
|
|
@@ -3128,259 +3130,259 @@ var Ar = (
|
|
|
3128
3130
|
}, e.prototype.peek = function() {
|
|
3129
3131
|
if (this.isEOF())
|
|
3130
3132
|
return null;
|
|
3131
|
-
var t = this.char(),
|
|
3132
|
-
return
|
|
3133
|
+
var t = this.char(), r = this.offset(), n = this.message.charCodeAt(r + (t >= 65536 ? 2 : 1));
|
|
3134
|
+
return n != null ? n : null;
|
|
3133
3135
|
}, e;
|
|
3134
3136
|
}()
|
|
3135
3137
|
);
|
|
3136
|
-
function
|
|
3138
|
+
function je(e) {
|
|
3137
3139
|
return e >= 97 && e <= 122 || e >= 65 && e <= 90;
|
|
3138
3140
|
}
|
|
3139
|
-
function
|
|
3140
|
-
return
|
|
3141
|
+
function Pn(e) {
|
|
3142
|
+
return je(e) || e === 47;
|
|
3141
3143
|
}
|
|
3142
|
-
function
|
|
3144
|
+
function Cn(e) {
|
|
3143
3145
|
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;
|
|
3144
3146
|
}
|
|
3145
3147
|
function zt(e) {
|
|
3146
3148
|
return e >= 9 && e <= 13 || e === 32 || e === 133 || e >= 8206 && e <= 8207 || e === 8232 || e === 8233;
|
|
3147
3149
|
}
|
|
3148
|
-
function
|
|
3150
|
+
function Ln(e) {
|
|
3149
3151
|
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;
|
|
3150
3152
|
}
|
|
3151
|
-
function
|
|
3153
|
+
function ke(e) {
|
|
3152
3154
|
e.forEach(function(t) {
|
|
3153
|
-
if (delete t.location, Rt(t) ||
|
|
3154
|
-
for (var
|
|
3155
|
-
delete t.options[
|
|
3155
|
+
if (delete t.location, Rt(t) || Ut(t))
|
|
3156
|
+
for (var r in t.options)
|
|
3157
|
+
delete t.options[r].location, ke(t.options[r].value);
|
|
3156
3158
|
else
|
|
3157
|
-
|
|
3159
|
+
It(t) && Gt(t.style) || (Mt(t) || $t(t)) && Ue(t.style) ? delete t.style.location : Dt(t) && ke(t.children);
|
|
3158
3160
|
});
|
|
3159
3161
|
}
|
|
3160
|
-
function
|
|
3161
|
-
t === void 0 && (t = {}), t =
|
|
3162
|
-
var
|
|
3163
|
-
if (
|
|
3164
|
-
var
|
|
3165
|
-
throw
|
|
3162
|
+
function Nn(e, t) {
|
|
3163
|
+
t === void 0 && (t = {}), t = me({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
|
|
3164
|
+
var r = new On(e, t).parse();
|
|
3165
|
+
if (r.err) {
|
|
3166
|
+
var n = SyntaxError(d[r.err.kind]);
|
|
3167
|
+
throw n.location = r.err.location, n.originalMessage = r.err.message, n;
|
|
3166
3168
|
}
|
|
3167
|
-
return t != null && t.captureLocation ||
|
|
3169
|
+
return t != null && t.captureLocation || ke(r.val), r.val;
|
|
3168
3170
|
}
|
|
3169
|
-
var
|
|
3171
|
+
var V;
|
|
3170
3172
|
(function(e) {
|
|
3171
3173
|
e.MISSING_VALUE = "MISSING_VALUE", e.INVALID_VALUE = "INVALID_VALUE", e.MISSING_INTL_API = "MISSING_INTL_API";
|
|
3172
|
-
})(
|
|
3173
|
-
var
|
|
3174
|
+
})(V || (V = {}));
|
|
3175
|
+
var ye = (
|
|
3174
3176
|
/** @class */
|
|
3175
3177
|
function(e) {
|
|
3176
|
-
|
|
3177
|
-
function t(
|
|
3178
|
-
var s = e.call(this,
|
|
3179
|
-
return s.code =
|
|
3178
|
+
_e(t, e);
|
|
3179
|
+
function t(r, n, i) {
|
|
3180
|
+
var s = e.call(this, r) || this;
|
|
3181
|
+
return s.code = n, s.originalMessage = i, s;
|
|
3180
3182
|
}
|
|
3181
3183
|
return t.prototype.toString = function() {
|
|
3182
3184
|
return "[formatjs Error: ".concat(this.code, "] ").concat(this.message);
|
|
3183
3185
|
}, t;
|
|
3184
3186
|
}(Error)
|
|
3185
|
-
),
|
|
3187
|
+
), ft = (
|
|
3186
3188
|
/** @class */
|
|
3187
3189
|
function(e) {
|
|
3188
|
-
|
|
3189
|
-
function t(
|
|
3190
|
-
return e.call(this, 'Invalid values for "'.concat(
|
|
3190
|
+
_e(t, e);
|
|
3191
|
+
function t(r, n, i, s) {
|
|
3192
|
+
return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'), V.INVALID_VALUE, s) || this;
|
|
3191
3193
|
}
|
|
3192
3194
|
return t;
|
|
3193
|
-
}(
|
|
3194
|
-
),
|
|
3195
|
+
}(ye)
|
|
3196
|
+
), In = (
|
|
3195
3197
|
/** @class */
|
|
3196
3198
|
function(e) {
|
|
3197
|
-
|
|
3198
|
-
function t(
|
|
3199
|
-
return e.call(this, 'Value for "'.concat(
|
|
3199
|
+
_e(t, e);
|
|
3200
|
+
function t(r, n, i) {
|
|
3201
|
+
return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n), V.INVALID_VALUE, i) || this;
|
|
3200
3202
|
}
|
|
3201
3203
|
return t;
|
|
3202
|
-
}(
|
|
3203
|
-
),
|
|
3204
|
+
}(ye)
|
|
3205
|
+
), Mn = (
|
|
3204
3206
|
/** @class */
|
|
3205
3207
|
function(e) {
|
|
3206
|
-
|
|
3207
|
-
function t(
|
|
3208
|
-
return e.call(this, 'The intl string context variable "'.concat(
|
|
3208
|
+
_e(t, e);
|
|
3209
|
+
function t(r, n) {
|
|
3210
|
+
return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'), V.MISSING_VALUE, n) || this;
|
|
3209
3211
|
}
|
|
3210
3212
|
return t;
|
|
3211
|
-
}(
|
|
3212
|
-
),
|
|
3213
|
+
}(ye)
|
|
3214
|
+
), x;
|
|
3213
3215
|
(function(e) {
|
|
3214
3216
|
e[e.literal = 0] = "literal", e[e.object = 1] = "object";
|
|
3215
|
-
})(
|
|
3216
|
-
function
|
|
3217
|
-
return e.length < 2 ? e : e.reduce(function(t,
|
|
3218
|
-
var
|
|
3219
|
-
return !
|
|
3217
|
+
})(x || (x = {}));
|
|
3218
|
+
function $n(e) {
|
|
3219
|
+
return e.length < 2 ? e : e.reduce(function(t, r) {
|
|
3220
|
+
var n = t[t.length - 1];
|
|
3221
|
+
return !n || n.type !== x.literal || r.type !== x.literal ? t.push(r) : n.value += r.value, t;
|
|
3220
3222
|
}, []);
|
|
3221
3223
|
}
|
|
3222
|
-
function
|
|
3224
|
+
function Rn(e) {
|
|
3223
3225
|
return typeof e == "function";
|
|
3224
3226
|
}
|
|
3225
|
-
function
|
|
3226
|
-
if (e.length === 1 &&
|
|
3227
|
+
function le(e, t, r, n, i, s, a) {
|
|
3228
|
+
if (e.length === 1 && it(e[0]))
|
|
3227
3229
|
return [
|
|
3228
3230
|
{
|
|
3229
|
-
type:
|
|
3231
|
+
type: x.literal,
|
|
3230
3232
|
value: e[0].value
|
|
3231
3233
|
}
|
|
3232
3234
|
];
|
|
3233
|
-
for (var
|
|
3235
|
+
for (var o = [], l = 0, u = e; l < u.length; l++) {
|
|
3234
3236
|
var h = u[l];
|
|
3235
|
-
if (
|
|
3236
|
-
|
|
3237
|
-
type:
|
|
3237
|
+
if (it(h)) {
|
|
3238
|
+
o.push({
|
|
3239
|
+
type: x.literal,
|
|
3238
3240
|
value: h.value
|
|
3239
3241
|
});
|
|
3240
3242
|
continue;
|
|
3241
3243
|
}
|
|
3242
|
-
if (
|
|
3243
|
-
typeof s == "number" &&
|
|
3244
|
-
type:
|
|
3245
|
-
value:
|
|
3244
|
+
if (sn(h)) {
|
|
3245
|
+
typeof s == "number" && o.push({
|
|
3246
|
+
type: x.literal,
|
|
3247
|
+
value: r.getNumberFormat(t).format(s)
|
|
3246
3248
|
});
|
|
3247
3249
|
continue;
|
|
3248
3250
|
}
|
|
3249
3251
|
var c = h.value;
|
|
3250
3252
|
if (!(i && c in i))
|
|
3251
|
-
throw new
|
|
3253
|
+
throw new Mn(c, a);
|
|
3252
3254
|
var m = i[c];
|
|
3253
|
-
if (
|
|
3254
|
-
(!m || typeof m == "string" || typeof m == "number") && (m = typeof m == "string" || typeof m == "number" ? String(m) : ""),
|
|
3255
|
-
type: typeof m == "string" ?
|
|
3255
|
+
if (nn(h)) {
|
|
3256
|
+
(!m || typeof m == "string" || typeof m == "number") && (m = typeof m == "string" || typeof m == "number" ? String(m) : ""), o.push({
|
|
3257
|
+
type: typeof m == "string" ? x.literal : x.object,
|
|
3256
3258
|
value: m
|
|
3257
3259
|
});
|
|
3258
3260
|
continue;
|
|
3259
3261
|
}
|
|
3260
|
-
if (
|
|
3261
|
-
var
|
|
3262
|
-
|
|
3263
|
-
type:
|
|
3264
|
-
value:
|
|
3262
|
+
if (Mt(h)) {
|
|
3263
|
+
var p = typeof h.style == "string" ? n.date[h.style] : Ue(h.style) ? h.style.parsedOptions : void 0;
|
|
3264
|
+
o.push({
|
|
3265
|
+
type: x.literal,
|
|
3266
|
+
value: r.getDateTimeFormat(t, p).format(m)
|
|
3265
3267
|
});
|
|
3266
3268
|
continue;
|
|
3267
3269
|
}
|
|
3268
|
-
if (
|
|
3269
|
-
var
|
|
3270
|
-
|
|
3271
|
-
type:
|
|
3272
|
-
value:
|
|
3270
|
+
if ($t(h)) {
|
|
3271
|
+
var p = typeof h.style == "string" ? n.time[h.style] : Ue(h.style) ? h.style.parsedOptions : n.time.medium;
|
|
3272
|
+
o.push({
|
|
3273
|
+
type: x.literal,
|
|
3274
|
+
value: r.getDateTimeFormat(t, p).format(m)
|
|
3273
3275
|
});
|
|
3274
3276
|
continue;
|
|
3275
3277
|
}
|
|
3276
|
-
if (
|
|
3277
|
-
var
|
|
3278
|
-
|
|
3279
|
-
type:
|
|
3280
|
-
value:
|
|
3278
|
+
if (It(h)) {
|
|
3279
|
+
var p = typeof h.style == "string" ? n.number[h.style] : Gt(h.style) ? h.style.parsedOptions : void 0;
|
|
3280
|
+
p && p.scale && (m = m * (p.scale || 1)), o.push({
|
|
3281
|
+
type: x.literal,
|
|
3282
|
+
value: r.getNumberFormat(t, p).format(m)
|
|
3281
3283
|
});
|
|
3282
3284
|
continue;
|
|
3283
3285
|
}
|
|
3284
|
-
if (
|
|
3286
|
+
if (Dt(h)) {
|
|
3285
3287
|
var f = h.children, _ = h.value, v = i[_];
|
|
3286
|
-
if (!
|
|
3287
|
-
throw new
|
|
3288
|
-
var
|
|
3289
|
-
return
|
|
3288
|
+
if (!Rn(v))
|
|
3289
|
+
throw new In(_, "function", a);
|
|
3290
|
+
var O = le(f, t, r, n, i, s), P = v(O.map(function(A) {
|
|
3291
|
+
return A.value;
|
|
3290
3292
|
}));
|
|
3291
|
-
Array.isArray(
|
|
3293
|
+
Array.isArray(P) || (P = [P]), o.push.apply(o, P.map(function(A) {
|
|
3292
3294
|
return {
|
|
3293
|
-
type: typeof
|
|
3294
|
-
value:
|
|
3295
|
+
type: typeof A == "string" ? x.literal : x.object,
|
|
3296
|
+
value: A
|
|
3295
3297
|
};
|
|
3296
3298
|
}));
|
|
3297
3299
|
}
|
|
3298
3300
|
if (Rt(h)) {
|
|
3299
3301
|
var H = h.options[m] || h.options.other;
|
|
3300
3302
|
if (!H)
|
|
3301
|
-
throw new
|
|
3302
|
-
|
|
3303
|
+
throw new ft(h.value, m, Object.keys(h.options), a);
|
|
3304
|
+
o.push.apply(o, le(H.value, t, r, n, i));
|
|
3303
3305
|
continue;
|
|
3304
3306
|
}
|
|
3305
|
-
if (
|
|
3307
|
+
if (Ut(h)) {
|
|
3306
3308
|
var H = h.options["=".concat(m)];
|
|
3307
3309
|
if (!H) {
|
|
3308
3310
|
if (!Intl.PluralRules)
|
|
3309
|
-
throw new
|
|
3311
|
+
throw new ye(`Intl.PluralRules is not available in this environment.
|
|
3310
3312
|
Try polyfilling it using "@formatjs/intl-pluralrules"
|
|
3311
|
-
`,
|
|
3312
|
-
var
|
|
3313
|
-
H = h.options[
|
|
3313
|
+
`, V.MISSING_INTL_API, a);
|
|
3314
|
+
var I = r.getPluralRules(t, { type: h.pluralType }).select(m - (h.offset || 0));
|
|
3315
|
+
H = h.options[I] || h.options.other;
|
|
3314
3316
|
}
|
|
3315
3317
|
if (!H)
|
|
3316
|
-
throw new
|
|
3317
|
-
|
|
3318
|
+
throw new ft(h.value, m, Object.keys(h.options), a);
|
|
3319
|
+
o.push.apply(o, le(H.value, t, r, n, i, m - (h.offset || 0)));
|
|
3318
3320
|
continue;
|
|
3319
3321
|
}
|
|
3320
3322
|
}
|
|
3321
|
-
return
|
|
3323
|
+
return $n(o);
|
|
3322
3324
|
}
|
|
3323
|
-
function
|
|
3324
|
-
return t ?
|
|
3325
|
-
return n
|
|
3325
|
+
function Un(e, t) {
|
|
3326
|
+
return t ? S(S(S({}, e || {}), t || {}), Object.keys(e).reduce(function(r, n) {
|
|
3327
|
+
return r[n] = S(S({}, e[n]), t[n] || {}), r;
|
|
3326
3328
|
}, {})) : e;
|
|
3327
3329
|
}
|
|
3328
|
-
function
|
|
3329
|
-
return t ? Object.keys(e).reduce(function(
|
|
3330
|
-
return n
|
|
3331
|
-
},
|
|
3330
|
+
function Dn(e, t) {
|
|
3331
|
+
return t ? Object.keys(e).reduce(function(r, n) {
|
|
3332
|
+
return r[n] = Un(e[n], t[n]), r;
|
|
3333
|
+
}, S({}, e)) : e;
|
|
3332
3334
|
}
|
|
3333
|
-
function
|
|
3335
|
+
function Le(e) {
|
|
3334
3336
|
return {
|
|
3335
3337
|
create: function() {
|
|
3336
3338
|
return {
|
|
3337
3339
|
get: function(t) {
|
|
3338
3340
|
return e[t];
|
|
3339
3341
|
},
|
|
3340
|
-
set: function(t,
|
|
3341
|
-
e[t] =
|
|
3342
|
+
set: function(t, r) {
|
|
3343
|
+
e[t] = r;
|
|
3342
3344
|
}
|
|
3343
3345
|
};
|
|
3344
3346
|
}
|
|
3345
3347
|
};
|
|
3346
3348
|
}
|
|
3347
|
-
function
|
|
3349
|
+
function Gn(e) {
|
|
3348
3350
|
return e === void 0 && (e = {
|
|
3349
3351
|
number: {},
|
|
3350
3352
|
dateTime: {},
|
|
3351
3353
|
pluralRules: {}
|
|
3352
3354
|
}), {
|
|
3353
|
-
getNumberFormat:
|
|
3354
|
-
for (var t,
|
|
3355
|
-
n
|
|
3356
|
-
return new ((t = Intl.NumberFormat).bind.apply(t,
|
|
3355
|
+
getNumberFormat: Oe(function() {
|
|
3356
|
+
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3357
|
+
r[n] = arguments[n];
|
|
3358
|
+
return new ((t = Intl.NumberFormat).bind.apply(t, Ae([void 0], r, !1)))();
|
|
3357
3359
|
}, {
|
|
3358
|
-
cache:
|
|
3359
|
-
strategy:
|
|
3360
|
+
cache: Le(e.number),
|
|
3361
|
+
strategy: Pe.variadic
|
|
3360
3362
|
}),
|
|
3361
|
-
getDateTimeFormat:
|
|
3362
|
-
for (var t,
|
|
3363
|
-
n
|
|
3364
|
-
return new ((t = Intl.DateTimeFormat).bind.apply(t,
|
|
3363
|
+
getDateTimeFormat: Oe(function() {
|
|
3364
|
+
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3365
|
+
r[n] = arguments[n];
|
|
3366
|
+
return new ((t = Intl.DateTimeFormat).bind.apply(t, Ae([void 0], r, !1)))();
|
|
3365
3367
|
}, {
|
|
3366
|
-
cache:
|
|
3367
|
-
strategy:
|
|
3368
|
+
cache: Le(e.dateTime),
|
|
3369
|
+
strategy: Pe.variadic
|
|
3368
3370
|
}),
|
|
3369
|
-
getPluralRules:
|
|
3370
|
-
for (var t,
|
|
3371
|
-
n
|
|
3372
|
-
return new ((t = Intl.PluralRules).bind.apply(t,
|
|
3371
|
+
getPluralRules: Oe(function() {
|
|
3372
|
+
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3373
|
+
r[n] = arguments[n];
|
|
3374
|
+
return new ((t = Intl.PluralRules).bind.apply(t, Ae([void 0], r, !1)))();
|
|
3373
3375
|
}, {
|
|
3374
|
-
cache:
|
|
3375
|
-
strategy:
|
|
3376
|
+
cache: Le(e.pluralRules),
|
|
3377
|
+
strategy: Pe.variadic
|
|
3376
3378
|
})
|
|
3377
3379
|
};
|
|
3378
3380
|
}
|
|
3379
|
-
var
|
|
3381
|
+
var Zt = (
|
|
3380
3382
|
/** @class */
|
|
3381
3383
|
function() {
|
|
3382
|
-
function e(t,
|
|
3383
|
-
|
|
3384
|
+
function e(t, r, n, i) {
|
|
3385
|
+
r === void 0 && (r = e.defaultLocale);
|
|
3384
3386
|
var s = this;
|
|
3385
3387
|
if (this.formatterCache = {
|
|
3386
3388
|
number: {},
|
|
@@ -3391,11 +3393,11 @@ var Wt = (
|
|
|
3391
3393
|
if (u.length === 1)
|
|
3392
3394
|
return u[0].value;
|
|
3393
3395
|
var h = u.reduce(function(c, m) {
|
|
3394
|
-
return !c.length || m.type !==
|
|
3396
|
+
return !c.length || m.type !== x.literal || typeof c[c.length - 1] != "string" ? c.push(m.value) : c[c.length - 1] += m.value, c;
|
|
3395
3397
|
}, []);
|
|
3396
3398
|
return h.length <= 1 ? h[0] || "" : h;
|
|
3397
3399
|
}, this.formatToParts = function(l) {
|
|
3398
|
-
return
|
|
3400
|
+
return le(s.ast, s.locales, s.formatters, s.formats, l, void 0, s.message);
|
|
3399
3401
|
}, this.resolvedOptions = function() {
|
|
3400
3402
|
var l;
|
|
3401
3403
|
return {
|
|
@@ -3403,18 +3405,18 @@ var Wt = (
|
|
|
3403
3405
|
};
|
|
3404
3406
|
}, this.getAst = function() {
|
|
3405
3407
|
return s.ast;
|
|
3406
|
-
}, this.locales =
|
|
3408
|
+
}, this.locales = r, this.resolvedLocale = e.resolveLocale(r), typeof t == "string") {
|
|
3407
3409
|
if (this.message = t, !e.__parse)
|
|
3408
3410
|
throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");
|
|
3409
|
-
var
|
|
3410
|
-
|
|
3411
|
-
var
|
|
3412
|
-
this.ast = e.__parse(t,
|
|
3411
|
+
var a = i || {};
|
|
3412
|
+
a.formatters;
|
|
3413
|
+
var o = Qr(a, ["formatters"]);
|
|
3414
|
+
this.ast = e.__parse(t, S(S({}, o), { locale: this.resolvedLocale }));
|
|
3413
3415
|
} else
|
|
3414
3416
|
this.ast = t;
|
|
3415
3417
|
if (!Array.isArray(this.ast))
|
|
3416
3418
|
throw new TypeError("A message must be provided as a String or AST.");
|
|
3417
|
-
this.formats =
|
|
3419
|
+
this.formats = Dn(e.formats, n), this.formatters = i && i.formatters || Gn(this.formatterCache);
|
|
3418
3420
|
}
|
|
3419
3421
|
return Object.defineProperty(e, "defaultLocale", {
|
|
3420
3422
|
get: function() {
|
|
@@ -3424,10 +3426,10 @@ var Wt = (
|
|
|
3424
3426
|
configurable: !0
|
|
3425
3427
|
}), e.memoizedDefaultLocale = null, e.resolveLocale = function(t) {
|
|
3426
3428
|
if (typeof Intl.Locale != "undefined") {
|
|
3427
|
-
var
|
|
3428
|
-
return
|
|
3429
|
+
var r = Intl.NumberFormat.supportedLocalesOf(t);
|
|
3430
|
+
return r.length > 0 ? new Intl.Locale(r[0]) : new Intl.Locale(typeof t == "string" ? t : t[0]);
|
|
3429
3431
|
}
|
|
3430
|
-
}, e.__parse =
|
|
3432
|
+
}, e.__parse = Nn, e.formats = {
|
|
3431
3433
|
number: {
|
|
3432
3434
|
integer: {
|
|
3433
3435
|
maximumFractionDigits: 0
|
|
@@ -3488,122 +3490,122 @@ var Wt = (
|
|
|
3488
3490
|
}, e;
|
|
3489
3491
|
}()
|
|
3490
3492
|
);
|
|
3491
|
-
function
|
|
3493
|
+
function Fn(e, t) {
|
|
3492
3494
|
if (t == null)
|
|
3493
3495
|
return;
|
|
3494
3496
|
if (t in e)
|
|
3495
3497
|
return e[t];
|
|
3496
|
-
const
|
|
3497
|
-
let
|
|
3498
|
-
for (let i = 0; i <
|
|
3499
|
-
if (typeof
|
|
3498
|
+
const r = t.split(".");
|
|
3499
|
+
let n = e;
|
|
3500
|
+
for (let i = 0; i < r.length; i++)
|
|
3501
|
+
if (typeof n == "object") {
|
|
3500
3502
|
if (i > 0) {
|
|
3501
|
-
const s =
|
|
3502
|
-
if (s in
|
|
3503
|
-
|
|
3503
|
+
const s = r.slice(i, r.length).join(".");
|
|
3504
|
+
if (s in n) {
|
|
3505
|
+
n = n[s];
|
|
3504
3506
|
break;
|
|
3505
3507
|
}
|
|
3506
3508
|
}
|
|
3507
|
-
|
|
3509
|
+
n = n[r[i]];
|
|
3508
3510
|
} else
|
|
3509
|
-
|
|
3510
|
-
return
|
|
3511
|
+
n = void 0;
|
|
3512
|
+
return n;
|
|
3511
3513
|
}
|
|
3512
|
-
const
|
|
3514
|
+
const C = {}, jn = (e, t, r) => r && (t in C || (C[t] = {}), e in C[t] || (C[t][e] = r), r), Qt = (e, t) => {
|
|
3513
3515
|
if (t == null)
|
|
3514
3516
|
return;
|
|
3515
|
-
if (t in
|
|
3516
|
-
return
|
|
3517
|
-
const
|
|
3518
|
-
for (let
|
|
3519
|
-
const i = n
|
|
3517
|
+
if (t in C && e in C[t])
|
|
3518
|
+
return C[t][e];
|
|
3519
|
+
const r = ie(t);
|
|
3520
|
+
for (let n = 0; n < r.length; n++) {
|
|
3521
|
+
const i = r[n], s = Vn(i, e);
|
|
3520
3522
|
if (s)
|
|
3521
|
-
return
|
|
3523
|
+
return jn(e, t, s);
|
|
3522
3524
|
}
|
|
3523
3525
|
};
|
|
3524
3526
|
let ze;
|
|
3525
|
-
const ne =
|
|
3526
|
-
function
|
|
3527
|
+
const ne = ge({});
|
|
3528
|
+
function kn(e) {
|
|
3527
3529
|
return ze[e] || null;
|
|
3528
3530
|
}
|
|
3529
|
-
function
|
|
3531
|
+
function Jt(e) {
|
|
3530
3532
|
return e in ze;
|
|
3531
3533
|
}
|
|
3532
|
-
function
|
|
3533
|
-
if (!
|
|
3534
|
+
function Vn(e, t) {
|
|
3535
|
+
if (!Jt(e))
|
|
3534
3536
|
return null;
|
|
3535
|
-
const
|
|
3536
|
-
return
|
|
3537
|
+
const r = kn(e);
|
|
3538
|
+
return Fn(r, t);
|
|
3537
3539
|
}
|
|
3538
|
-
function
|
|
3540
|
+
function Xn(e) {
|
|
3539
3541
|
if (e == null)
|
|
3540
3542
|
return;
|
|
3541
|
-
const t =
|
|
3542
|
-
for (let
|
|
3543
|
-
const
|
|
3544
|
-
if (
|
|
3545
|
-
return
|
|
3543
|
+
const t = ie(e);
|
|
3544
|
+
for (let r = 0; r < t.length; r++) {
|
|
3545
|
+
const n = t[r];
|
|
3546
|
+
if (Jt(n))
|
|
3547
|
+
return n;
|
|
3546
3548
|
}
|
|
3547
3549
|
}
|
|
3548
|
-
function
|
|
3549
|
-
delete
|
|
3550
|
+
function qt(e, ...t) {
|
|
3551
|
+
delete C[e], ne.update((r) => (r[e] = Zr.all([r[e] || {}, ...t]), r));
|
|
3550
3552
|
}
|
|
3551
3553
|
z(
|
|
3552
3554
|
[ne],
|
|
3553
3555
|
([e]) => Object.keys(e)
|
|
3554
3556
|
);
|
|
3555
3557
|
ne.subscribe((e) => ze = e);
|
|
3556
|
-
const
|
|
3557
|
-
function
|
|
3558
|
-
|
|
3558
|
+
const fe = {};
|
|
3559
|
+
function Wn(e, t) {
|
|
3560
|
+
fe[e].delete(t), fe[e].size === 0 && delete fe[e];
|
|
3559
3561
|
}
|
|
3560
|
-
function
|
|
3561
|
-
return
|
|
3562
|
+
function Yt(e) {
|
|
3563
|
+
return fe[e];
|
|
3562
3564
|
}
|
|
3563
|
-
function
|
|
3564
|
-
return
|
|
3565
|
-
const
|
|
3566
|
-
return [t,
|
|
3565
|
+
function zn(e) {
|
|
3566
|
+
return ie(e).map((t) => {
|
|
3567
|
+
const r = Yt(t);
|
|
3568
|
+
return [t, r ? [...r] : []];
|
|
3567
3569
|
}).filter(([, t]) => t.length > 0);
|
|
3568
3570
|
}
|
|
3569
|
-
function
|
|
3570
|
-
return e == null ? !1 :
|
|
3571
|
+
function pe(e) {
|
|
3572
|
+
return e == null ? !1 : ie(e).some(
|
|
3571
3573
|
(t) => {
|
|
3572
|
-
var
|
|
3573
|
-
return (
|
|
3574
|
+
var r;
|
|
3575
|
+
return (r = Yt(t)) == null ? void 0 : r.size;
|
|
3574
3576
|
}
|
|
3575
3577
|
);
|
|
3576
3578
|
}
|
|
3577
|
-
function
|
|
3579
|
+
function Zn(e, t) {
|
|
3578
3580
|
return Promise.all(
|
|
3579
|
-
t.map((
|
|
3580
|
-
).then((
|
|
3581
|
-
}
|
|
3582
|
-
const
|
|
3583
|
-
function
|
|
3584
|
-
if (!
|
|
3585
|
-
return e in
|
|
3586
|
-
const t =
|
|
3587
|
-
return
|
|
3581
|
+
t.map((n) => (Wn(e, n), n().then((i) => i.default || i)))
|
|
3582
|
+
).then((n) => qt(e, ...n));
|
|
3583
|
+
}
|
|
3584
|
+
const Q = {};
|
|
3585
|
+
function Kt(e) {
|
|
3586
|
+
if (!pe(e))
|
|
3587
|
+
return e in Q ? Q[e] : Promise.resolve();
|
|
3588
|
+
const t = zn(e);
|
|
3589
|
+
return Q[e] = Promise.all(
|
|
3588
3590
|
t.map(
|
|
3589
|
-
([
|
|
3591
|
+
([r, n]) => Zn(r, n)
|
|
3590
3592
|
)
|
|
3591
3593
|
).then(() => {
|
|
3592
|
-
if (
|
|
3593
|
-
return
|
|
3594
|
-
delete
|
|
3595
|
-
}),
|
|
3594
|
+
if (pe(e))
|
|
3595
|
+
return Kt(e);
|
|
3596
|
+
delete Q[e];
|
|
3597
|
+
}), Q[e];
|
|
3596
3598
|
}
|
|
3597
|
-
var
|
|
3598
|
-
var
|
|
3599
|
-
for (var
|
|
3600
|
-
|
|
3601
|
-
if (e != null &&
|
|
3602
|
-
for (var
|
|
3603
|
-
t.indexOf(
|
|
3604
|
-
return
|
|
3599
|
+
var ct = Object.getOwnPropertySymbols, Qn = Object.prototype.hasOwnProperty, Jn = Object.prototype.propertyIsEnumerable, qn = (e, t) => {
|
|
3600
|
+
var r = {};
|
|
3601
|
+
for (var n in e)
|
|
3602
|
+
Qn.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
3603
|
+
if (e != null && ct)
|
|
3604
|
+
for (var n of ct(e))
|
|
3605
|
+
t.indexOf(n) < 0 && Jn.call(e, n) && (r[n] = e[n]);
|
|
3606
|
+
return r;
|
|
3605
3607
|
};
|
|
3606
|
-
const
|
|
3608
|
+
const Yn = {
|
|
3607
3609
|
number: {
|
|
3608
3610
|
scientific: { notation: "scientific" },
|
|
3609
3611
|
engineering: { notation: "engineering" },
|
|
@@ -3633,183 +3635,183 @@ const qr = {
|
|
|
3633
3635
|
}
|
|
3634
3636
|
}
|
|
3635
3637
|
};
|
|
3636
|
-
function
|
|
3638
|
+
function Kn({ locale: e, id: t }) {
|
|
3637
3639
|
console.warn(
|
|
3638
|
-
`[svelte-i18n] The message "${t}" was not found in "${
|
|
3640
|
+
`[svelte-i18n] The message "${t}" was not found in "${ie(
|
|
3639
3641
|
e
|
|
3640
|
-
).join('", "')}".${
|
|
3642
|
+
).join('", "')}".${pe(N()) ? `
|
|
3641
3643
|
|
|
3642
3644
|
Note: there are at least one loader still registered to this locale that wasn't executed.` : ""}`
|
|
3643
3645
|
);
|
|
3644
3646
|
}
|
|
3645
|
-
const
|
|
3647
|
+
const ei = {
|
|
3646
3648
|
fallbackLocale: null,
|
|
3647
3649
|
loadingDelay: 200,
|
|
3648
|
-
formats:
|
|
3650
|
+
formats: Yn,
|
|
3649
3651
|
warnOnMissingMessages: !0,
|
|
3650
3652
|
handleMissingMessage: void 0,
|
|
3651
3653
|
ignoreTag: !0
|
|
3652
|
-
},
|
|
3653
|
-
function
|
|
3654
|
-
return
|
|
3654
|
+
}, J = ei;
|
|
3655
|
+
function X() {
|
|
3656
|
+
return J;
|
|
3655
3657
|
}
|
|
3656
|
-
function
|
|
3657
|
-
const t = e, { formats:
|
|
3658
|
+
function ti(e) {
|
|
3659
|
+
const t = e, { formats: r } = t, n = qn(t, ["formats"]);
|
|
3658
3660
|
let i = e.fallbackLocale;
|
|
3659
3661
|
if (e.initialLocale)
|
|
3660
3662
|
try {
|
|
3661
|
-
|
|
3663
|
+
Zt.resolveLocale(e.initialLocale) && (i = e.initialLocale);
|
|
3662
3664
|
} catch (s) {
|
|
3663
3665
|
console.warn(
|
|
3664
3666
|
`[svelte-i18n] The initial locale "${e.initialLocale}" is not a valid locale.`
|
|
3665
3667
|
);
|
|
3666
3668
|
}
|
|
3667
|
-
return
|
|
3669
|
+
return n.warnOnMissingMessages && (delete n.warnOnMissingMessages, n.handleMissingMessage == null ? n.handleMissingMessage = Kn : console.warn(
|
|
3668
3670
|
'[svelte-i18n] The "warnOnMissingMessages" option is deprecated. Please use the "handleMissingMessage" option instead.'
|
|
3669
|
-
)), Object.assign(
|
|
3670
|
-
}
|
|
3671
|
-
const
|
|
3672
|
-
var
|
|
3673
|
-
for (var
|
|
3674
|
-
|
|
3675
|
-
if (
|
|
3676
|
-
for (var
|
|
3677
|
-
|
|
3671
|
+
)), Object.assign(J, n, { initialLocale: i }), r && ("number" in r && Object.assign(J.formats.number, r.number), "date" in r && Object.assign(J.formats.date, r.date), "time" in r && Object.assign(J.formats.time, r.time)), $.set(i);
|
|
3672
|
+
}
|
|
3673
|
+
const Ne = ge(!1);
|
|
3674
|
+
var ri = Object.defineProperty, ni = Object.defineProperties, ii = Object.getOwnPropertyDescriptors, mt = Object.getOwnPropertySymbols, si = Object.prototype.hasOwnProperty, oi = Object.prototype.propertyIsEnumerable, pt = (e, t, r) => t in e ? ri(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, ai = (e, t) => {
|
|
3675
|
+
for (var r in t || (t = {}))
|
|
3676
|
+
si.call(t, r) && pt(e, r, t[r]);
|
|
3677
|
+
if (mt)
|
|
3678
|
+
for (var r of mt(t))
|
|
3679
|
+
oi.call(t, r) && pt(e, r, t[r]);
|
|
3678
3680
|
return e;
|
|
3679
|
-
},
|
|
3680
|
-
let
|
|
3681
|
-
const
|
|
3681
|
+
}, ui = (e, t) => ni(e, ii(t));
|
|
3682
|
+
let Ve;
|
|
3683
|
+
const de = ge(null);
|
|
3682
3684
|
function dt(e) {
|
|
3683
|
-
return e.split("-").map((t,
|
|
3685
|
+
return e.split("-").map((t, r, n) => n.slice(0, r + 1).join("-")).reverse();
|
|
3684
3686
|
}
|
|
3685
|
-
function
|
|
3686
|
-
const
|
|
3687
|
-
return t ? [.../* @__PURE__ */ new Set([...
|
|
3687
|
+
function ie(e, t = X().fallbackLocale) {
|
|
3688
|
+
const r = dt(e);
|
|
3689
|
+
return t ? [.../* @__PURE__ */ new Set([...r, ...dt(t)])] : r;
|
|
3688
3690
|
}
|
|
3689
|
-
function
|
|
3690
|
-
return
|
|
3691
|
+
function N() {
|
|
3692
|
+
return Ve != null ? Ve : void 0;
|
|
3691
3693
|
}
|
|
3692
|
-
|
|
3693
|
-
|
|
3694
|
+
de.subscribe((e) => {
|
|
3695
|
+
Ve = e != null ? e : void 0, typeof window != "undefined" && e != null && document.documentElement.setAttribute("lang", e);
|
|
3694
3696
|
});
|
|
3695
|
-
const
|
|
3696
|
-
if (e &&
|
|
3697
|
-
const { loadingDelay: t } =
|
|
3698
|
-
let
|
|
3699
|
-
return typeof window != "undefined" &&
|
|
3700
|
-
() =>
|
|
3697
|
+
const hi = (e) => {
|
|
3698
|
+
if (e && Xn(e) && pe(e)) {
|
|
3699
|
+
const { loadingDelay: t } = X();
|
|
3700
|
+
let r;
|
|
3701
|
+
return typeof window != "undefined" && N() != null && t ? r = window.setTimeout(
|
|
3702
|
+
() => Ne.set(!0),
|
|
3701
3703
|
t
|
|
3702
|
-
) :
|
|
3703
|
-
|
|
3704
|
+
) : Ne.set(!0), Kt(e).then(() => {
|
|
3705
|
+
de.set(e);
|
|
3704
3706
|
}).finally(() => {
|
|
3705
|
-
clearTimeout(
|
|
3707
|
+
clearTimeout(r), Ne.set(!1);
|
|
3706
3708
|
});
|
|
3707
3709
|
}
|
|
3708
|
-
return
|
|
3709
|
-
},
|
|
3710
|
-
set:
|
|
3711
|
-
}),
|
|
3710
|
+
return de.set(e);
|
|
3711
|
+
}, $ = ui(ai({}, de), {
|
|
3712
|
+
set: hi
|
|
3713
|
+
}), Ee = (e) => {
|
|
3712
3714
|
const t = /* @__PURE__ */ Object.create(null);
|
|
3713
|
-
return (
|
|
3714
|
-
const i = JSON.stringify(
|
|
3715
|
-
return i in t ? t[i] : t[i] = e(
|
|
3715
|
+
return (n) => {
|
|
3716
|
+
const i = JSON.stringify(n);
|
|
3717
|
+
return i in t ? t[i] : t[i] = e(n);
|
|
3716
3718
|
};
|
|
3717
3719
|
};
|
|
3718
|
-
var
|
|
3719
|
-
for (var
|
|
3720
|
-
|
|
3721
|
-
if (
|
|
3722
|
-
for (var
|
|
3723
|
-
|
|
3720
|
+
var li = Object.defineProperty, be = Object.getOwnPropertySymbols, er = Object.prototype.hasOwnProperty, tr = Object.prototype.propertyIsEnumerable, bt = (e, t, r) => t in e ? li(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Ze = (e, t) => {
|
|
3721
|
+
for (var r in t || (t = {}))
|
|
3722
|
+
er.call(t, r) && bt(e, r, t[r]);
|
|
3723
|
+
if (be)
|
|
3724
|
+
for (var r of be(t))
|
|
3725
|
+
tr.call(t, r) && bt(e, r, t[r]);
|
|
3724
3726
|
return e;
|
|
3725
|
-
},
|
|
3726
|
-
var
|
|
3727
|
-
for (var
|
|
3728
|
-
|
|
3729
|
-
if (e != null &&
|
|
3730
|
-
for (var
|
|
3731
|
-
t.indexOf(
|
|
3732
|
-
return
|
|
3727
|
+
}, Z = (e, t) => {
|
|
3728
|
+
var r = {};
|
|
3729
|
+
for (var n in e)
|
|
3730
|
+
er.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
3731
|
+
if (e != null && be)
|
|
3732
|
+
for (var n of be(e))
|
|
3733
|
+
t.indexOf(n) < 0 && tr.call(e, n) && (r[n] = e[n]);
|
|
3734
|
+
return r;
|
|
3733
3735
|
};
|
|
3734
|
-
const
|
|
3735
|
-
const { formats:
|
|
3736
|
-
if (e in
|
|
3737
|
-
return
|
|
3736
|
+
const ee = (e, t) => {
|
|
3737
|
+
const { formats: r } = X();
|
|
3738
|
+
if (e in r && t in r[e])
|
|
3739
|
+
return r[e][t];
|
|
3738
3740
|
throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`);
|
|
3739
|
-
},
|
|
3741
|
+
}, fi = Ee(
|
|
3740
3742
|
(e) => {
|
|
3741
|
-
var t = e, { locale:
|
|
3742
|
-
if (
|
|
3743
|
+
var t = e, { locale: r, format: n } = t, i = Z(t, ["locale", "format"]);
|
|
3744
|
+
if (r == null)
|
|
3743
3745
|
throw new Error('[svelte-i18n] A "locale" must be set to format numbers');
|
|
3744
|
-
return
|
|
3746
|
+
return n && (i = ee("number", n)), new Intl.NumberFormat(r, i);
|
|
3745
3747
|
}
|
|
3746
|
-
),
|
|
3748
|
+
), ci = Ee(
|
|
3747
3749
|
(e) => {
|
|
3748
|
-
var t = e, { locale:
|
|
3749
|
-
if (
|
|
3750
|
+
var t = e, { locale: r, format: n } = t, i = Z(t, ["locale", "format"]);
|
|
3751
|
+
if (r == null)
|
|
3750
3752
|
throw new Error('[svelte-i18n] A "locale" must be set to format dates');
|
|
3751
|
-
return
|
|
3753
|
+
return n ? i = ee("date", n) : Object.keys(i).length === 0 && (i = ee("date", "short")), new Intl.DateTimeFormat(r, i);
|
|
3752
3754
|
}
|
|
3753
|
-
),
|
|
3755
|
+
), mi = Ee(
|
|
3754
3756
|
(e) => {
|
|
3755
|
-
var t = e, { locale:
|
|
3756
|
-
if (
|
|
3757
|
+
var t = e, { locale: r, format: n } = t, i = Z(t, ["locale", "format"]);
|
|
3758
|
+
if (r == null)
|
|
3757
3759
|
throw new Error(
|
|
3758
3760
|
'[svelte-i18n] A "locale" must be set to format time values'
|
|
3759
3761
|
);
|
|
3760
|
-
return
|
|
3762
|
+
return n ? i = ee("time", n) : Object.keys(i).length === 0 && (i = ee("time", "short")), new Intl.DateTimeFormat(r, i);
|
|
3761
3763
|
}
|
|
3762
|
-
),
|
|
3764
|
+
), pi = (e = {}) => {
|
|
3763
3765
|
var t = e, {
|
|
3764
|
-
locale:
|
|
3765
|
-
} = t,
|
|
3766
|
+
locale: r = N()
|
|
3767
|
+
} = t, n = Z(t, [
|
|
3766
3768
|
"locale"
|
|
3767
3769
|
]);
|
|
3768
|
-
return
|
|
3770
|
+
return fi(Ze({ locale: r }, n));
|
|
3769
3771
|
}, di = (e = {}) => {
|
|
3770
3772
|
var t = e, {
|
|
3771
|
-
locale:
|
|
3772
|
-
} = t,
|
|
3773
|
+
locale: r = N()
|
|
3774
|
+
} = t, n = Z(t, [
|
|
3773
3775
|
"locale"
|
|
3774
3776
|
]);
|
|
3775
|
-
return
|
|
3777
|
+
return ci(Ze({ locale: r }, n));
|
|
3776
3778
|
}, bi = (e = {}) => {
|
|
3777
3779
|
var t = e, {
|
|
3778
|
-
locale:
|
|
3779
|
-
} = t,
|
|
3780
|
+
locale: r = N()
|
|
3781
|
+
} = t, n = Z(t, [
|
|
3780
3782
|
"locale"
|
|
3781
3783
|
]);
|
|
3782
|
-
return
|
|
3783
|
-
},
|
|
3784
|
+
return mi(Ze({ locale: r }, n));
|
|
3785
|
+
}, gi = Ee(
|
|
3784
3786
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
3785
|
-
(e, t =
|
|
3786
|
-
ignoreTag:
|
|
3787
|
+
(e, t = N()) => new Zt(e, t, X().formats, {
|
|
3788
|
+
ignoreTag: X().ignoreTag
|
|
3787
3789
|
})
|
|
3788
|
-
),
|
|
3789
|
-
var
|
|
3790
|
-
let
|
|
3791
|
-
typeof e == "object" && (
|
|
3790
|
+
), _i = (e, t = {}) => {
|
|
3791
|
+
var r, n, i, s;
|
|
3792
|
+
let a = t;
|
|
3793
|
+
typeof e == "object" && (a = e, e = a.id);
|
|
3792
3794
|
const {
|
|
3793
|
-
values:
|
|
3794
|
-
locale: l =
|
|
3795
|
+
values: o,
|
|
3796
|
+
locale: l = N(),
|
|
3795
3797
|
default: u
|
|
3796
|
-
} =
|
|
3798
|
+
} = a;
|
|
3797
3799
|
if (l == null)
|
|
3798
3800
|
throw new Error(
|
|
3799
3801
|
"[svelte-i18n] Cannot format a message without first setting the initial locale."
|
|
3800
3802
|
);
|
|
3801
|
-
let h =
|
|
3803
|
+
let h = Qt(e, l);
|
|
3802
3804
|
if (!h)
|
|
3803
|
-
h = (s = (i = (
|
|
3805
|
+
h = (s = (i = (n = (r = X()).handleMissingMessage) == null ? void 0 : n.call(r, { locale: l, id: e, defaultValue: u })) != null ? i : u) != null ? s : e;
|
|
3804
3806
|
else if (typeof h != "string")
|
|
3805
3807
|
return console.warn(
|
|
3806
3808
|
`[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.`
|
|
3807
3809
|
), h;
|
|
3808
|
-
if (!
|
|
3810
|
+
if (!o)
|
|
3809
3811
|
return h;
|
|
3810
3812
|
let c = h;
|
|
3811
3813
|
try {
|
|
3812
|
-
c =
|
|
3814
|
+
c = gi(h, l).format(o);
|
|
3813
3815
|
} catch (m) {
|
|
3814
3816
|
m instanceof Error && console.warn(
|
|
3815
3817
|
`[svelte-i18n] Message "${e}" has syntax error:`,
|
|
@@ -3817,20 +3819,20 @@ const K = (e, t) => {
|
|
|
3817
3819
|
);
|
|
3818
3820
|
}
|
|
3819
3821
|
return c;
|
|
3820
|
-
},
|
|
3821
|
-
z([
|
|
3822
|
-
z([
|
|
3823
|
-
z([
|
|
3824
|
-
z([
|
|
3825
|
-
function
|
|
3826
|
-
|
|
3827
|
-
}
|
|
3828
|
-
function
|
|
3829
|
-
|
|
3822
|
+
}, yi = (e, t) => bi(t).format(e), Ei = (e, t) => di(t).format(e), xi = (e, t) => pi(t).format(e), vi = (e, t = N()) => Qt(e, t), Hi = z([$, ne], () => _i);
|
|
3823
|
+
z([$], () => yi);
|
|
3824
|
+
z([$], () => Ei);
|
|
3825
|
+
z([$], () => xi);
|
|
3826
|
+
z([$, ne], () => vi);
|
|
3827
|
+
function gt(e, t) {
|
|
3828
|
+
qt(e, t);
|
|
3829
|
+
}
|
|
3830
|
+
function Bi(e) {
|
|
3831
|
+
ti({
|
|
3830
3832
|
fallbackLocale: "en"
|
|
3831
|
-
}),
|
|
3833
|
+
}), $.set(e);
|
|
3832
3834
|
}
|
|
3833
|
-
const
|
|
3835
|
+
const _t = {
|
|
3834
3836
|
en: {
|
|
3835
3837
|
header: {
|
|
3836
3838
|
general: "Cashier",
|
|
@@ -3853,328 +3855,328 @@ const gt = {
|
|
|
3853
3855
|
}
|
|
3854
3856
|
}
|
|
3855
3857
|
};
|
|
3856
|
-
function
|
|
3858
|
+
function Ti(e, t) {
|
|
3857
3859
|
if (e) {
|
|
3858
|
-
const
|
|
3859
|
-
|
|
3860
|
+
const r = document.createElement("style");
|
|
3861
|
+
r.innerHTML = t, e.appendChild(r);
|
|
3860
3862
|
}
|
|
3861
3863
|
}
|
|
3862
|
-
function
|
|
3863
|
-
const
|
|
3864
|
-
fetch(
|
|
3864
|
+
function wi(e, t) {
|
|
3865
|
+
const r = new URL(t);
|
|
3866
|
+
fetch(r.href).then((n) => n.text()).then((n) => {
|
|
3865
3867
|
const i = document.createElement("style");
|
|
3866
|
-
i.innerHTML =
|
|
3867
|
-
}).catch((
|
|
3868
|
-
console.error("There was an error while trying to load client styling from URL",
|
|
3868
|
+
i.innerHTML = n, e && e.appendChild(i);
|
|
3869
|
+
}).catch((n) => {
|
|
3870
|
+
console.error("There was an error while trying to load client styling from URL", n);
|
|
3869
3871
|
});
|
|
3870
3872
|
}
|
|
3871
|
-
function
|
|
3873
|
+
function Si(e, t, r) {
|
|
3872
3874
|
if (window.emMessageBus) {
|
|
3873
|
-
const
|
|
3875
|
+
const n = document.createElement("style");
|
|
3874
3876
|
window.emMessageBus.subscribe(t, (i) => {
|
|
3875
|
-
|
|
3877
|
+
n.innerHTML = i, e && e.appendChild(n);
|
|
3876
3878
|
});
|
|
3877
3879
|
}
|
|
3878
3880
|
}
|
|
3879
|
-
function
|
|
3880
|
-
|
|
3881
|
+
function Ai(e) {
|
|
3882
|
+
cr(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}");
|
|
3881
3883
|
}
|
|
3882
|
-
const
|
|
3883
|
-
function
|
|
3884
|
-
let t,
|
|
3884
|
+
const Oi = (e) => ({}), yt = (e) => ({}), Pi = (e) => ({}), Et = (e) => ({}), Ci = (e) => ({}), xt = (e) => ({});
|
|
3885
|
+
function vt(e) {
|
|
3886
|
+
let t, r, n;
|
|
3885
3887
|
return {
|
|
3886
3888
|
c() {
|
|
3887
|
-
t =
|
|
3889
|
+
t = W("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>', re(t, "class", "CashierHeaderLeftButton");
|
|
3888
3890
|
},
|
|
3889
3891
|
m(i, s) {
|
|
3890
|
-
|
|
3892
|
+
M(i, t, s), r || (n = Ot(
|
|
3891
3893
|
t,
|
|
3892
3894
|
"click",
|
|
3893
3895
|
/*back*/
|
|
3894
3896
|
e[6]
|
|
3895
|
-
),
|
|
3897
|
+
), r = !0);
|
|
3896
3898
|
},
|
|
3897
3899
|
p: T,
|
|
3898
3900
|
d(i) {
|
|
3899
|
-
i &&
|
|
3901
|
+
i && L(t), r = !1, n();
|
|
3900
3902
|
}
|
|
3901
3903
|
};
|
|
3902
3904
|
}
|
|
3903
|
-
function
|
|
3904
|
-
let t,
|
|
3905
|
+
function Li(e) {
|
|
3906
|
+
let t, r = (
|
|
3905
3907
|
/*backButton*/
|
|
3906
|
-
e[1] &&
|
|
3908
|
+
e[1] && vt(e)
|
|
3907
3909
|
);
|
|
3908
3910
|
return {
|
|
3909
3911
|
c() {
|
|
3910
|
-
|
|
3912
|
+
r && r.c(), t = At();
|
|
3911
3913
|
},
|
|
3912
|
-
m(
|
|
3913
|
-
|
|
3914
|
+
m(n, i) {
|
|
3915
|
+
r && r.m(n, i), M(n, t, i);
|
|
3914
3916
|
},
|
|
3915
|
-
p(
|
|
3917
|
+
p(n, i) {
|
|
3916
3918
|
/*backButton*/
|
|
3917
|
-
|
|
3919
|
+
n[1] ? r ? r.p(n, i) : (r = vt(n), r.c(), r.m(t.parentNode, t)) : r && (r.d(1), r = null);
|
|
3918
3920
|
},
|
|
3919
|
-
d(
|
|
3920
|
-
|
|
3921
|
+
d(n) {
|
|
3922
|
+
n && L(t), r && r.d(n);
|
|
3921
3923
|
}
|
|
3922
3924
|
};
|
|
3923
3925
|
}
|
|
3924
|
-
function
|
|
3925
|
-
let t,
|
|
3926
|
+
function Ni(e) {
|
|
3927
|
+
let t, r = (
|
|
3926
3928
|
/*$_*/
|
|
3927
3929
|
e[4](
|
|
3928
3930
|
/*titleText*/
|
|
3929
3931
|
e[2]
|
|
3930
3932
|
) + ""
|
|
3931
|
-
),
|
|
3933
|
+
), n;
|
|
3932
3934
|
return {
|
|
3933
3935
|
c() {
|
|
3934
|
-
t =
|
|
3936
|
+
t = W("span"), n = We(r), re(t, "class", "CashierHeaderTitle");
|
|
3935
3937
|
},
|
|
3936
3938
|
m(i, s) {
|
|
3937
|
-
|
|
3939
|
+
M(i, t, s), ce(t, n);
|
|
3938
3940
|
},
|
|
3939
3941
|
p(i, s) {
|
|
3940
3942
|
s & /*$_, titleText*/
|
|
3941
|
-
20 &&
|
|
3943
|
+
20 && r !== (r = /*$_*/
|
|
3942
3944
|
i[4](
|
|
3943
3945
|
/*titleText*/
|
|
3944
3946
|
i[2]
|
|
3945
|
-
) + "") &&
|
|
3947
|
+
) + "") && br(n, r);
|
|
3946
3948
|
},
|
|
3947
3949
|
d(i) {
|
|
3948
|
-
i &&
|
|
3950
|
+
i && L(t);
|
|
3949
3951
|
}
|
|
3950
3952
|
};
|
|
3951
3953
|
}
|
|
3952
|
-
function
|
|
3953
|
-
let t,
|
|
3954
|
+
function Ht(e) {
|
|
3955
|
+
let t, r, n;
|
|
3954
3956
|
return {
|
|
3955
3957
|
c() {
|
|
3956
|
-
t =
|
|
3958
|
+
t = W("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>', re(t, "class", "CashierHeaderRightButton");
|
|
3957
3959
|
},
|
|
3958
3960
|
m(i, s) {
|
|
3959
|
-
|
|
3961
|
+
M(i, t, s), r || (n = Ot(
|
|
3960
3962
|
t,
|
|
3961
3963
|
"click",
|
|
3962
3964
|
/*close*/
|
|
3963
3965
|
e[5]
|
|
3964
|
-
),
|
|
3966
|
+
), r = !0);
|
|
3965
3967
|
},
|
|
3966
3968
|
p: T,
|
|
3967
3969
|
d(i) {
|
|
3968
|
-
i &&
|
|
3970
|
+
i && L(t), r = !1, n();
|
|
3969
3971
|
}
|
|
3970
3972
|
};
|
|
3971
3973
|
}
|
|
3972
|
-
function
|
|
3973
|
-
let t,
|
|
3974
|
+
function Ii(e) {
|
|
3975
|
+
let t, r = (
|
|
3974
3976
|
/*closeButton*/
|
|
3975
|
-
e[3] &&
|
|
3977
|
+
e[3] && Ht(e)
|
|
3976
3978
|
);
|
|
3977
3979
|
return {
|
|
3978
3980
|
c() {
|
|
3979
|
-
|
|
3981
|
+
r && r.c(), t = At();
|
|
3980
3982
|
},
|
|
3981
|
-
m(
|
|
3982
|
-
|
|
3983
|
+
m(n, i) {
|
|
3984
|
+
r && r.m(n, i), M(n, t, i);
|
|
3983
3985
|
},
|
|
3984
|
-
p(
|
|
3986
|
+
p(n, i) {
|
|
3985
3987
|
/*closeButton*/
|
|
3986
|
-
|
|
3988
|
+
n[3] ? r ? r.p(n, i) : (r = Ht(n), r.c(), r.m(t.parentNode, t)) : r && (r.d(1), r = null);
|
|
3987
3989
|
},
|
|
3988
|
-
d(
|
|
3989
|
-
|
|
3990
|
+
d(n) {
|
|
3991
|
+
n && L(t), r && r.d(n);
|
|
3990
3992
|
}
|
|
3991
3993
|
};
|
|
3992
3994
|
}
|
|
3993
|
-
function
|
|
3994
|
-
let t,
|
|
3995
|
+
function Mi(e) {
|
|
3996
|
+
let t, r, n, i;
|
|
3995
3997
|
const s = (
|
|
3996
3998
|
/*#slots*/
|
|
3997
3999
|
e[16].leftButton
|
|
3998
|
-
),
|
|
4000
|
+
), a = ve(
|
|
3999
4001
|
s,
|
|
4000
4002
|
e,
|
|
4001
4003
|
/*$$scope*/
|
|
4002
4004
|
e[15],
|
|
4003
4005
|
xt
|
|
4004
|
-
),
|
|
4006
|
+
), o = a || Li(e), l = (
|
|
4005
4007
|
/*#slots*/
|
|
4006
4008
|
e[16].title
|
|
4007
|
-
), u =
|
|
4009
|
+
), u = ve(
|
|
4008
4010
|
l,
|
|
4009
4011
|
e,
|
|
4010
4012
|
/*$$scope*/
|
|
4011
4013
|
e[15],
|
|
4012
|
-
|
|
4013
|
-
), h = u ||
|
|
4014
|
+
Et
|
|
4015
|
+
), h = u || Ni(e), c = (
|
|
4014
4016
|
/*#slots*/
|
|
4015
4017
|
e[16].rightButton
|
|
4016
|
-
), m =
|
|
4018
|
+
), m = ve(
|
|
4017
4019
|
c,
|
|
4018
4020
|
e,
|
|
4019
4021
|
/*$$scope*/
|
|
4020
4022
|
e[15],
|
|
4021
|
-
|
|
4022
|
-
),
|
|
4023
|
+
yt
|
|
4024
|
+
), p = m || Ii(e);
|
|
4023
4025
|
return {
|
|
4024
4026
|
c() {
|
|
4025
|
-
t =
|
|
4027
|
+
t = W("div"), o && o.c(), r = tt(), h && h.c(), n = tt(), p && p.c(), re(t, "class", "CashierHeader");
|
|
4026
4028
|
},
|
|
4027
4029
|
m(f, _) {
|
|
4028
|
-
|
|
4030
|
+
M(f, t, _), o && o.m(t, null), ce(t, r), h && h.m(t, null), ce(t, n), p && p.m(t, null), e[17](t), i = !0;
|
|
4029
4031
|
},
|
|
4030
4032
|
p(f, [_]) {
|
|
4031
|
-
|
|
4032
|
-
32768) &&
|
|
4033
|
-
|
|
4033
|
+
a ? a.p && (!i || _ & /*$$scope*/
|
|
4034
|
+
32768) && Be(
|
|
4035
|
+
a,
|
|
4034
4036
|
s,
|
|
4035
4037
|
f,
|
|
4036
4038
|
/*$$scope*/
|
|
4037
4039
|
f[15],
|
|
4038
|
-
i ?
|
|
4040
|
+
i ? He(
|
|
4039
4041
|
s,
|
|
4040
4042
|
/*$$scope*/
|
|
4041
4043
|
f[15],
|
|
4042
4044
|
_,
|
|
4043
|
-
|
|
4044
|
-
) :
|
|
4045
|
+
Ci
|
|
4046
|
+
) : Te(
|
|
4045
4047
|
/*$$scope*/
|
|
4046
4048
|
f[15]
|
|
4047
4049
|
),
|
|
4048
4050
|
xt
|
|
4049
|
-
) :
|
|
4050
|
-
2) &&
|
|
4051
|
-
32768) &&
|
|
4051
|
+
) : o && o.p && (!i || _ & /*backButton*/
|
|
4052
|
+
2) && o.p(f, i ? _ : -1), u ? u.p && (!i || _ & /*$$scope*/
|
|
4053
|
+
32768) && Be(
|
|
4052
4054
|
u,
|
|
4053
4055
|
l,
|
|
4054
4056
|
f,
|
|
4055
4057
|
/*$$scope*/
|
|
4056
4058
|
f[15],
|
|
4057
|
-
i ?
|
|
4059
|
+
i ? He(
|
|
4058
4060
|
l,
|
|
4059
4061
|
/*$$scope*/
|
|
4060
4062
|
f[15],
|
|
4061
4063
|
_,
|
|
4062
|
-
|
|
4063
|
-
) :
|
|
4064
|
+
Pi
|
|
4065
|
+
) : Te(
|
|
4064
4066
|
/*$$scope*/
|
|
4065
4067
|
f[15]
|
|
4066
4068
|
),
|
|
4067
|
-
|
|
4068
|
-
) : h.p && (!i || _ & /*$_, titleText*/
|
|
4069
|
+
Et
|
|
4070
|
+
) : h && h.p && (!i || _ & /*$_, titleText*/
|
|
4069
4071
|
20) && h.p(f, i ? _ : -1), m ? m.p && (!i || _ & /*$$scope*/
|
|
4070
|
-
32768) &&
|
|
4072
|
+
32768) && Be(
|
|
4071
4073
|
m,
|
|
4072
4074
|
c,
|
|
4073
4075
|
f,
|
|
4074
4076
|
/*$$scope*/
|
|
4075
4077
|
f[15],
|
|
4076
|
-
i ?
|
|
4078
|
+
i ? He(
|
|
4077
4079
|
c,
|
|
4078
4080
|
/*$$scope*/
|
|
4079
4081
|
f[15],
|
|
4080
4082
|
_,
|
|
4081
|
-
|
|
4082
|
-
) :
|
|
4083
|
+
Oi
|
|
4084
|
+
) : Te(
|
|
4083
4085
|
/*$$scope*/
|
|
4084
4086
|
f[15]
|
|
4085
4087
|
),
|
|
4086
|
-
|
|
4087
|
-
) :
|
|
4088
|
-
8) &&
|
|
4088
|
+
yt
|
|
4089
|
+
) : p && p.p && (!i || _ & /*closeButton*/
|
|
4090
|
+
8) && p.p(f, i ? _ : -1);
|
|
4089
4091
|
},
|
|
4090
4092
|
i(f) {
|
|
4091
|
-
i || (
|
|
4093
|
+
i || (ue(o, f), ue(h, f), ue(p, f), i = !0);
|
|
4092
4094
|
},
|
|
4093
4095
|
o(f) {
|
|
4094
|
-
|
|
4096
|
+
Se(o, f), Se(h, f), Se(p, f), i = !1;
|
|
4095
4097
|
},
|
|
4096
4098
|
d(f) {
|
|
4097
|
-
f &&
|
|
4099
|
+
f && L(t), o && o.d(f), h && h.d(f), p && p.d(f), e[17](null);
|
|
4098
4100
|
}
|
|
4099
4101
|
};
|
|
4100
4102
|
}
|
|
4101
|
-
function
|
|
4102
|
-
let
|
|
4103
|
-
|
|
4104
|
-
let { $$slots: i = {}, $$scope: s } = t, { clientstyling:
|
|
4105
|
-
const
|
|
4103
|
+
function $i(e, t, r) {
|
|
4104
|
+
let n;
|
|
4105
|
+
fr(e, Hi, (g) => r(4, n = g));
|
|
4106
|
+
let { $$slots: i = {}, $$scope: s } = t, { clientstyling: a = "" } = t, { clientstylingurl: o = "" } = t, { translationurl: l = "" } = t, { showbackbutton: u = "" } = t, { title: h = "header.general" } = t, { lang: c = "en" } = t, { showclosebutton: m = "" } = t, { mbsource: p = "" } = t, f, _ = !1, v, O = !1;
|
|
4107
|
+
const P = () => {
|
|
4106
4108
|
fetch(l).then((g) => g.json()).then((g) => {
|
|
4107
|
-
Object.keys(g).forEach((
|
|
4108
|
-
|
|
4109
|
+
Object.keys(g).forEach((Qe) => {
|
|
4110
|
+
gt(Qe, g[Qe]);
|
|
4109
4111
|
});
|
|
4110
4112
|
}).catch((g) => {
|
|
4111
4113
|
console.log(g);
|
|
4112
4114
|
});
|
|
4113
4115
|
};
|
|
4114
|
-
Object.keys(
|
|
4115
|
-
|
|
4116
|
+
Object.keys(_t).forEach((g) => {
|
|
4117
|
+
gt(g, _t[g]);
|
|
4116
4118
|
});
|
|
4117
4119
|
const H = () => {
|
|
4118
|
-
|
|
4119
|
-
},
|
|
4120
|
+
Bi(c);
|
|
4121
|
+
}, I = () => {
|
|
4120
4122
|
window.postMessage({ type: "CloseCashier" }, window.location.href);
|
|
4121
|
-
},
|
|
4123
|
+
}, A = () => {
|
|
4122
4124
|
window.postMessage({ type: "BackCashier" }, window.location.href);
|
|
4123
4125
|
}, R = () => {
|
|
4124
|
-
|
|
4125
|
-
},
|
|
4126
|
-
|
|
4127
|
-
},
|
|
4128
|
-
|
|
4126
|
+
r(1, _ = !!u && u !== "false");
|
|
4127
|
+
}, se = () => {
|
|
4128
|
+
r(3, O = !!m && m !== "false");
|
|
4129
|
+
}, rr = () => {
|
|
4130
|
+
r(2, v = h || "header.general");
|
|
4129
4131
|
};
|
|
4130
|
-
|
|
4132
|
+
yr(() => () => {
|
|
4131
4133
|
});
|
|
4132
|
-
function
|
|
4133
|
-
|
|
4134
|
-
f = g,
|
|
4134
|
+
function nr(g) {
|
|
4135
|
+
Ie[g ? "unshift" : "push"](() => {
|
|
4136
|
+
f = g, r(0, f);
|
|
4135
4137
|
});
|
|
4136
4138
|
}
|
|
4137
4139
|
return e.$$set = (g) => {
|
|
4138
|
-
"clientstyling" in g &&
|
|
4140
|
+
"clientstyling" in g && r(7, a = g.clientstyling), "clientstylingurl" in g && r(8, o = g.clientstylingurl), "translationurl" in g && r(9, l = g.translationurl), "showbackbutton" in g && r(10, u = g.showbackbutton), "title" in g && r(11, h = g.title), "lang" in g && r(12, c = g.lang), "showclosebutton" in g && r(13, m = g.showclosebutton), "mbsource" in g && r(14, p = g.mbsource), "$$scope" in g && r(15, s = g.$$scope);
|
|
4139
4141
|
}, e.$$.update = () => {
|
|
4140
4142
|
e.$$.dirty & /*lang*/
|
|
4141
4143
|
4096 && c && H(), e.$$.dirty & /*lang, title*/
|
|
4142
|
-
6144 && c && h &&
|
|
4143
|
-
129 &&
|
|
4144
|
-
257 &&
|
|
4145
|
-
16385 &&
|
|
4146
|
-
4608 && c && l &&
|
|
4144
|
+
6144 && c && h && rr(), e.$$.dirty & /*clientstyling, customStylingContainer*/
|
|
4145
|
+
129 && a && f && Ti(f, a), e.$$.dirty & /*clientstylingurl, customStylingContainer*/
|
|
4146
|
+
257 && o && f && wi(f, o), e.$$.dirty & /*mbsource, customStylingContainer*/
|
|
4147
|
+
16385 && p && f && Si(f, `${p}.Style`), e.$$.dirty & /*lang, translationurl*/
|
|
4148
|
+
4608 && c && l && P(), e.$$.dirty & /*showbackbutton*/
|
|
4147
4149
|
1024 && u && R(), e.$$.dirty & /*showclosebutton*/
|
|
4148
|
-
8192 && m &&
|
|
4150
|
+
8192 && m && se();
|
|
4149
4151
|
}, [
|
|
4150
4152
|
f,
|
|
4151
4153
|
_,
|
|
4152
4154
|
v,
|
|
4155
|
+
O,
|
|
4156
|
+
n,
|
|
4157
|
+
I,
|
|
4153
4158
|
A,
|
|
4154
|
-
r,
|
|
4155
|
-
N,
|
|
4156
|
-
S,
|
|
4157
|
-
o,
|
|
4158
4159
|
a,
|
|
4160
|
+
o,
|
|
4159
4161
|
l,
|
|
4160
4162
|
u,
|
|
4161
4163
|
h,
|
|
4162
4164
|
c,
|
|
4163
4165
|
m,
|
|
4164
|
-
|
|
4166
|
+
p,
|
|
4165
4167
|
s,
|
|
4166
4168
|
i,
|
|
4167
|
-
|
|
4169
|
+
nr
|
|
4168
4170
|
];
|
|
4169
4171
|
}
|
|
4170
|
-
class Ri extends
|
|
4172
|
+
class Ri extends Pr {
|
|
4171
4173
|
constructor(t) {
|
|
4172
|
-
super(),
|
|
4174
|
+
super(), Ar(
|
|
4173
4175
|
this,
|
|
4174
4176
|
t,
|
|
4177
|
+
$i,
|
|
4175
4178
|
Mi,
|
|
4176
|
-
|
|
4177
|
-
Bt,
|
|
4179
|
+
Tt,
|
|
4178
4180
|
{
|
|
4179
4181
|
clientstyling: 7,
|
|
4180
4182
|
clientstylingurl: 8,
|
|
@@ -4185,7 +4187,7 @@ class Ri extends Pn {
|
|
|
4185
4187
|
showclosebutton: 13,
|
|
4186
4188
|
mbsource: 14
|
|
4187
4189
|
},
|
|
4188
|
-
|
|
4190
|
+
Ai
|
|
4189
4191
|
);
|
|
4190
4192
|
}
|
|
4191
4193
|
get clientstyling() {
|
|
@@ -4237,7 +4239,7 @@ class Ri extends Pn {
|
|
|
4237
4239
|
this.$$set({ mbsource: t }), w();
|
|
4238
4240
|
}
|
|
4239
4241
|
}
|
|
4240
|
-
|
|
4242
|
+
Or(Ri, { clientstyling: {}, clientstylingurl: {}, translationurl: {}, showbackbutton: {}, title: {}, lang: {}, showclosebutton: {}, mbsource: {} }, ["leftButton", "title", "rightButton"], [], !0);
|
|
4241
4243
|
export {
|
|
4242
4244
|
Ri as default
|
|
4243
4245
|
};
|