@everymatrix/cashier-header 1.65.3 → 1.66.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/components/{CashierHeader-DiPZ6EKD.js → CashierHeader-BKLN40IC.js} +866 -864
- package/components/CashierHeader-D70465F5.cjs +5 -0
- package/components/{CashierHeader-D8Fgipc2.js → CashierHeader-DrPNQb80.js} +747 -745
- 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-DuMLT5dI.cjs +0 -18
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
function B() {
|
|
2
2
|
}
|
|
3
|
-
function
|
|
3
|
+
function er(e, t) {
|
|
4
4
|
for (const r in t)
|
|
5
5
|
e[r] = t[r];
|
|
6
6
|
return (
|
|
@@ -8,22 +8,22 @@ function Kt(e, t) {
|
|
|
8
8
|
e
|
|
9
9
|
);
|
|
10
10
|
}
|
|
11
|
-
function
|
|
11
|
+
function yt(e) {
|
|
12
12
|
return e();
|
|
13
13
|
}
|
|
14
|
-
function
|
|
14
|
+
function Qe() {
|
|
15
15
|
return /* @__PURE__ */ Object.create(null);
|
|
16
16
|
}
|
|
17
|
-
function
|
|
18
|
-
e.forEach(
|
|
17
|
+
function te(e) {
|
|
18
|
+
e.forEach(yt);
|
|
19
19
|
}
|
|
20
|
-
function
|
|
20
|
+
function Ve(e) {
|
|
21
21
|
return typeof e == "function";
|
|
22
22
|
}
|
|
23
|
-
function
|
|
23
|
+
function Et(e, t) {
|
|
24
24
|
return e != e ? t == t : e !== t || e && typeof e == "object" || typeof e == "function";
|
|
25
25
|
}
|
|
26
|
-
function
|
|
26
|
+
function tr(e) {
|
|
27
27
|
return Object.keys(e).length === 0;
|
|
28
28
|
}
|
|
29
29
|
function xt(e, ...t) {
|
|
@@ -35,19 +35,19 @@ function xt(e, ...t) {
|
|
|
35
35
|
const r = e.subscribe(...t);
|
|
36
36
|
return r.unsubscribe ? () => r.unsubscribe() : r;
|
|
37
37
|
}
|
|
38
|
-
function
|
|
38
|
+
function rr(e, t, r) {
|
|
39
39
|
e.$$.on_destroy.push(xt(t, r));
|
|
40
40
|
}
|
|
41
|
-
function
|
|
41
|
+
function xe(e, t, r, n) {
|
|
42
42
|
if (e) {
|
|
43
|
-
const i =
|
|
43
|
+
const i = vt(e, t, r, n);
|
|
44
44
|
return e[0](i);
|
|
45
45
|
}
|
|
46
46
|
}
|
|
47
|
-
function
|
|
48
|
-
return e[1] && n ?
|
|
47
|
+
function vt(e, t, r, n) {
|
|
48
|
+
return e[1] && n ? er(r.ctx.slice(), e[1](n(t))) : r.ctx;
|
|
49
49
|
}
|
|
50
|
-
function
|
|
50
|
+
function ve(e, t, r, n) {
|
|
51
51
|
if (e[2] && n) {
|
|
52
52
|
const i = e[2](n(r));
|
|
53
53
|
if (t.dirty === void 0)
|
|
@@ -62,13 +62,13 @@ function xe(e, t, r, n) {
|
|
|
62
62
|
}
|
|
63
63
|
return t.dirty;
|
|
64
64
|
}
|
|
65
|
-
function
|
|
65
|
+
function He(e, t, r, n, i, s) {
|
|
66
66
|
if (i) {
|
|
67
|
-
const u =
|
|
67
|
+
const u = vt(t, r, n, s);
|
|
68
68
|
e.p(u, i);
|
|
69
69
|
}
|
|
70
70
|
}
|
|
71
|
-
function
|
|
71
|
+
function Be(e) {
|
|
72
72
|
if (e.ctx.length > 32) {
|
|
73
73
|
const t = [], r = e.ctx.length / 32;
|
|
74
74
|
for (let n = 0; n < r; n++)
|
|
@@ -77,17 +77,17 @@ function ve(e) {
|
|
|
77
77
|
}
|
|
78
78
|
return -1;
|
|
79
79
|
}
|
|
80
|
-
function
|
|
80
|
+
function ce(e, t) {
|
|
81
81
|
e.appendChild(t);
|
|
82
82
|
}
|
|
83
|
-
function
|
|
84
|
-
const n =
|
|
83
|
+
function nr(e, t, r) {
|
|
84
|
+
const n = ir(e);
|
|
85
85
|
if (!n.getElementById(t)) {
|
|
86
|
-
const i =
|
|
87
|
-
i.id = t, i.textContent = r,
|
|
86
|
+
const i = z("style");
|
|
87
|
+
i.id = t, i.textContent = r, sr(n, i);
|
|
88
88
|
}
|
|
89
89
|
}
|
|
90
|
-
function
|
|
90
|
+
function ir(e) {
|
|
91
91
|
if (!e)
|
|
92
92
|
return document;
|
|
93
93
|
const t = e.getRootNode ? e.getRootNode() : e.ownerDocument;
|
|
@@ -97,45 +97,45 @@ function nr(e) {
|
|
|
97
97
|
t
|
|
98
98
|
) : e.ownerDocument;
|
|
99
99
|
}
|
|
100
|
-
function
|
|
101
|
-
return
|
|
100
|
+
function sr(e, t) {
|
|
101
|
+
return ce(
|
|
102
102
|
/** @type {Document} */
|
|
103
103
|
e.head || e,
|
|
104
104
|
t
|
|
105
105
|
), t.sheet;
|
|
106
106
|
}
|
|
107
|
-
function
|
|
107
|
+
function M(e, t, r) {
|
|
108
108
|
e.insertBefore(t, r || null);
|
|
109
109
|
}
|
|
110
|
-
function
|
|
110
|
+
function P(e) {
|
|
111
111
|
e.parentNode && e.parentNode.removeChild(e);
|
|
112
112
|
}
|
|
113
|
-
function
|
|
113
|
+
function z(e) {
|
|
114
114
|
return document.createElement(e);
|
|
115
115
|
}
|
|
116
|
-
function
|
|
116
|
+
function Xe(e) {
|
|
117
117
|
return document.createTextNode(e);
|
|
118
118
|
}
|
|
119
|
-
function
|
|
120
|
-
return
|
|
119
|
+
function Je() {
|
|
120
|
+
return Xe(" ");
|
|
121
121
|
}
|
|
122
|
-
function
|
|
123
|
-
return
|
|
122
|
+
function Ht() {
|
|
123
|
+
return Xe("");
|
|
124
124
|
}
|
|
125
|
-
function
|
|
125
|
+
function Bt(e, t, r, n) {
|
|
126
126
|
return e.addEventListener(t, r, n), () => e.removeEventListener(t, r, n);
|
|
127
127
|
}
|
|
128
|
-
function
|
|
128
|
+
function re(e, t, r) {
|
|
129
129
|
r == null ? e.removeAttribute(t) : e.getAttribute(t) !== r && e.setAttribute(t, r);
|
|
130
130
|
}
|
|
131
|
-
function
|
|
131
|
+
function or(e) {
|
|
132
132
|
return Array.from(e.childNodes);
|
|
133
133
|
}
|
|
134
|
-
function
|
|
134
|
+
function ar(e, t) {
|
|
135
135
|
t = "" + t, e.data !== t && (e.data = /** @type {string} */
|
|
136
136
|
t);
|
|
137
137
|
}
|
|
138
|
-
function
|
|
138
|
+
function ur(e) {
|
|
139
139
|
const t = {};
|
|
140
140
|
return e.childNodes.forEach(
|
|
141
141
|
/** @param {Element} node */
|
|
@@ -144,89 +144,89 @@ function ar(e) {
|
|
|
144
144
|
}
|
|
145
145
|
), t;
|
|
146
146
|
}
|
|
147
|
-
let
|
|
148
|
-
function
|
|
149
|
-
|
|
147
|
+
let We;
|
|
148
|
+
function Y(e) {
|
|
149
|
+
We = e;
|
|
150
150
|
}
|
|
151
|
-
const
|
|
152
|
-
let
|
|
153
|
-
const
|
|
154
|
-
let
|
|
155
|
-
function
|
|
156
|
-
|
|
151
|
+
const F = [], Ne = [];
|
|
152
|
+
let j = [];
|
|
153
|
+
const qe = [], hr = /* @__PURE__ */ Promise.resolve();
|
|
154
|
+
let Ie = !1;
|
|
155
|
+
function lr() {
|
|
156
|
+
Ie || (Ie = !0, hr.then(A));
|
|
157
157
|
}
|
|
158
|
-
function
|
|
159
|
-
|
|
158
|
+
function Me(e) {
|
|
159
|
+
j.push(e);
|
|
160
160
|
}
|
|
161
|
-
const
|
|
162
|
-
let
|
|
163
|
-
function
|
|
164
|
-
if (
|
|
161
|
+
const Te = /* @__PURE__ */ new Set();
|
|
162
|
+
let D = 0;
|
|
163
|
+
function A() {
|
|
164
|
+
if (D !== 0)
|
|
165
165
|
return;
|
|
166
|
-
const e =
|
|
166
|
+
const e = We;
|
|
167
167
|
do {
|
|
168
168
|
try {
|
|
169
|
-
for (;
|
|
170
|
-
const t =
|
|
171
|
-
|
|
169
|
+
for (; D < F.length; ) {
|
|
170
|
+
const t = F[D];
|
|
171
|
+
D++, Y(t), fr(t.$$);
|
|
172
172
|
}
|
|
173
173
|
} catch (t) {
|
|
174
|
-
throw
|
|
174
|
+
throw F.length = 0, D = 0, t;
|
|
175
175
|
}
|
|
176
|
-
for (
|
|
177
|
-
|
|
178
|
-
for (let t = 0; t <
|
|
179
|
-
const r =
|
|
180
|
-
|
|
176
|
+
for (Y(null), F.length = 0, D = 0; Ne.length; )
|
|
177
|
+
Ne.pop()();
|
|
178
|
+
for (let t = 0; t < j.length; t += 1) {
|
|
179
|
+
const r = j[t];
|
|
180
|
+
Te.has(r) || (Te.add(r), r());
|
|
181
181
|
}
|
|
182
|
-
|
|
183
|
-
} while (
|
|
184
|
-
for (;
|
|
185
|
-
|
|
186
|
-
|
|
182
|
+
j.length = 0;
|
|
183
|
+
} while (F.length);
|
|
184
|
+
for (; qe.length; )
|
|
185
|
+
qe.pop()();
|
|
186
|
+
Ie = !1, Te.clear(), Y(e);
|
|
187
187
|
}
|
|
188
|
-
function
|
|
188
|
+
function fr(e) {
|
|
189
189
|
if (e.fragment !== null) {
|
|
190
|
-
e.update(),
|
|
190
|
+
e.update(), te(e.before_update);
|
|
191
191
|
const t = e.dirty;
|
|
192
|
-
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(
|
|
192
|
+
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(Me);
|
|
193
193
|
}
|
|
194
194
|
}
|
|
195
|
-
function
|
|
195
|
+
function cr(e) {
|
|
196
196
|
const t = [], r = [];
|
|
197
|
-
|
|
197
|
+
j.forEach((n) => e.indexOf(n) === -1 ? t.push(n) : r.push(n)), r.forEach((n) => n()), j = t;
|
|
198
198
|
}
|
|
199
|
-
const
|
|
200
|
-
let
|
|
201
|
-
function
|
|
202
|
-
e && e.i && (
|
|
199
|
+
const ae = /* @__PURE__ */ new Set();
|
|
200
|
+
let mr;
|
|
201
|
+
function ue(e, t) {
|
|
202
|
+
e && e.i && (ae.delete(e), e.i(t));
|
|
203
203
|
}
|
|
204
|
-
function
|
|
204
|
+
function we(e, t, r, n) {
|
|
205
205
|
if (e && e.o) {
|
|
206
|
-
if (
|
|
206
|
+
if (ae.has(e))
|
|
207
207
|
return;
|
|
208
|
-
|
|
209
|
-
|
|
208
|
+
ae.add(e), mr.c.push(() => {
|
|
209
|
+
ae.delete(e);
|
|
210
210
|
}), e.o(t);
|
|
211
211
|
}
|
|
212
212
|
}
|
|
213
|
-
function
|
|
213
|
+
function pr(e, t, r) {
|
|
214
214
|
const { fragment: n, after_update: i } = e.$$;
|
|
215
|
-
n && n.m(t, r),
|
|
216
|
-
const s = e.$$.on_mount.map(
|
|
217
|
-
e.$$.on_destroy ? e.$$.on_destroy.push(...s) :
|
|
218
|
-
}), i.forEach(
|
|
215
|
+
n && n.m(t, r), Me(() => {
|
|
216
|
+
const s = e.$$.on_mount.map(yt).filter(Ve);
|
|
217
|
+
e.$$.on_destroy ? e.$$.on_destroy.push(...s) : te(s), e.$$.on_mount = [];
|
|
218
|
+
}), i.forEach(Me);
|
|
219
219
|
}
|
|
220
220
|
function dr(e, t) {
|
|
221
221
|
const r = e.$$;
|
|
222
|
-
r.fragment !== null && (
|
|
222
|
+
r.fragment !== null && (cr(r.after_update), te(r.on_destroy), r.fragment && r.fragment.d(t), r.on_destroy = r.fragment = null, r.ctx = []);
|
|
223
223
|
}
|
|
224
|
-
function
|
|
225
|
-
e.$$.dirty[0] === -1 && (
|
|
224
|
+
function br(e, t) {
|
|
225
|
+
e.$$.dirty[0] === -1 && (F.push(e), lr(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
|
|
226
226
|
}
|
|
227
|
-
function
|
|
228
|
-
const l =
|
|
229
|
-
|
|
227
|
+
function gr(e, t, r, n, i, s, u = null, o = [-1]) {
|
|
228
|
+
const l = We;
|
|
229
|
+
Y(e);
|
|
230
230
|
const a = e.$$ = {
|
|
231
231
|
fragment: null,
|
|
232
232
|
ctx: [],
|
|
@@ -234,7 +234,7 @@ function br(e, t, r, n, i, s, u = null, o = [-1]) {
|
|
|
234
234
|
props: s,
|
|
235
235
|
update: B,
|
|
236
236
|
not_equal: i,
|
|
237
|
-
bound:
|
|
237
|
+
bound: Qe(),
|
|
238
238
|
// lifecycle
|
|
239
239
|
on_mount: [],
|
|
240
240
|
on_destroy: [],
|
|
@@ -243,28 +243,28 @@ function br(e, t, r, n, i, s, u = null, o = [-1]) {
|
|
|
243
243
|
after_update: [],
|
|
244
244
|
context: new Map(t.context || (l ? l.$$.context : [])),
|
|
245
245
|
// everything else
|
|
246
|
-
callbacks:
|
|
246
|
+
callbacks: Qe(),
|
|
247
247
|
dirty: o,
|
|
248
248
|
skip_bound: !1,
|
|
249
249
|
root: t.target || l.$$.root
|
|
250
250
|
};
|
|
251
251
|
u && u(a.root);
|
|
252
252
|
let h = !1;
|
|
253
|
-
if (a.ctx = r(e, t.props || {}, (f, c, ...
|
|
254
|
-
const m =
|
|
255
|
-
return a.ctx && i(a.ctx[f], a.ctx[f] = m) && (!a.skip_bound && a.bound[f] && a.bound[f](m), h &&
|
|
256
|
-
}), a.update(), h = !0,
|
|
253
|
+
if (a.ctx = r ? r(e, t.props || {}, (f, c, ...p) => {
|
|
254
|
+
const m = p.length ? p[0] : c;
|
|
255
|
+
return a.ctx && i(a.ctx[f], a.ctx[f] = m) && (!a.skip_bound && a.bound[f] && a.bound[f](m), h && br(e, f)), c;
|
|
256
|
+
}) : [], a.update(), h = !0, te(a.before_update), a.fragment = n ? n(a.ctx) : !1, t.target) {
|
|
257
257
|
if (t.hydrate) {
|
|
258
|
-
const f =
|
|
259
|
-
a.fragment && a.fragment.l(f), f.forEach(
|
|
258
|
+
const f = or(t.target);
|
|
259
|
+
a.fragment && a.fragment.l(f), f.forEach(P);
|
|
260
260
|
} else
|
|
261
261
|
a.fragment && a.fragment.c();
|
|
262
|
-
t.intro &&
|
|
262
|
+
t.intro && ue(e.$$.fragment), pr(e, t.target, t.anchor), A();
|
|
263
263
|
}
|
|
264
|
-
|
|
264
|
+
Y(l);
|
|
265
265
|
}
|
|
266
|
-
let
|
|
267
|
-
typeof HTMLElement == "function" && (
|
|
266
|
+
let Tt;
|
|
267
|
+
typeof HTMLElement == "function" && (Tt = class extends HTMLElement {
|
|
268
268
|
/** The Svelte component constructor */
|
|
269
269
|
$$ctor;
|
|
270
270
|
/** Slots */
|
|
@@ -306,29 +306,29 @@ typeof HTMLElement == "function" && (Bt = class extends HTMLElement {
|
|
|
306
306
|
let s;
|
|
307
307
|
return {
|
|
308
308
|
c: function() {
|
|
309
|
-
s =
|
|
309
|
+
s = z("slot"), i !== "default" && re(s, "name", i);
|
|
310
310
|
},
|
|
311
311
|
/**
|
|
312
312
|
* @param {HTMLElement} target
|
|
313
313
|
* @param {HTMLElement} [anchor]
|
|
314
314
|
*/
|
|
315
315
|
m: function(l, a) {
|
|
316
|
-
|
|
316
|
+
M(l, s, a);
|
|
317
317
|
},
|
|
318
318
|
d: function(l) {
|
|
319
|
-
l &&
|
|
319
|
+
l && P(s);
|
|
320
320
|
}
|
|
321
321
|
};
|
|
322
322
|
};
|
|
323
323
|
};
|
|
324
324
|
if (await Promise.resolve(), !this.$$cn || this.$$c)
|
|
325
325
|
return;
|
|
326
|
-
const t = {}, r =
|
|
326
|
+
const t = {}, r = ur(this);
|
|
327
327
|
for (const i of this.$$s)
|
|
328
328
|
i in r && (t[i] = [e(i)]);
|
|
329
329
|
for (const i of this.attributes) {
|
|
330
330
|
const s = this.$$g_p(i.name);
|
|
331
|
-
s in this.$$d || (this.$$d[s] =
|
|
331
|
+
s in this.$$d || (this.$$d[s] = he(s, i.value, this.$$p_d, "toProp"));
|
|
332
332
|
}
|
|
333
333
|
for (const i in this.$$p_d)
|
|
334
334
|
!(i in this.$$d) && this[i] !== void 0 && (this.$$d[i] = this[i], delete this[i]);
|
|
@@ -346,7 +346,7 @@ typeof HTMLElement == "function" && (Bt = class extends HTMLElement {
|
|
|
346
346
|
this.$$r = !0;
|
|
347
347
|
for (const i in this.$$p_d)
|
|
348
348
|
if (this.$$d[i] = this.$$c.$$.ctx[this.$$c.$$.props[i]], this.$$p_d[i].reflect) {
|
|
349
|
-
const s =
|
|
349
|
+
const s = he(
|
|
350
350
|
i,
|
|
351
351
|
this.$$d[i],
|
|
352
352
|
this.$$p_d,
|
|
@@ -368,7 +368,7 @@ typeof HTMLElement == "function" && (Bt = class extends HTMLElement {
|
|
|
368
368
|
// We don't need this when working within Svelte code, but for compatibility of people using this outside of Svelte
|
|
369
369
|
// and setting attributes through setAttribute etc, this is helpful
|
|
370
370
|
attributeChangedCallback(e, t, r) {
|
|
371
|
-
this.$$r || (e = this.$$g_p(e), this.$$d[e] =
|
|
371
|
+
this.$$r || (e = this.$$g_p(e), this.$$d[e] = he(e, r, this.$$p_d, "toProp"), this.$$c?.$set({ [e]: this.$$d[e] }));
|
|
372
372
|
}
|
|
373
373
|
disconnectedCallback() {
|
|
374
374
|
this.$$cn = !1, Promise.resolve().then(() => {
|
|
@@ -381,7 +381,7 @@ typeof HTMLElement == "function" && (Bt = class extends HTMLElement {
|
|
|
381
381
|
) || e;
|
|
382
382
|
}
|
|
383
383
|
});
|
|
384
|
-
function
|
|
384
|
+
function he(e, t, r, n) {
|
|
385
385
|
const i = r[e]?.type;
|
|
386
386
|
if (t = i === "Boolean" && typeof t != "boolean" ? t != null : t, !n || !r[e])
|
|
387
387
|
return t;
|
|
@@ -410,8 +410,8 @@ function ue(e, t, r, n) {
|
|
|
410
410
|
return t;
|
|
411
411
|
}
|
|
412
412
|
}
|
|
413
|
-
function
|
|
414
|
-
let u = class extends
|
|
413
|
+
function _r(e, t, r, n, i, s) {
|
|
414
|
+
let u = class extends Tt {
|
|
415
415
|
constructor() {
|
|
416
416
|
super(e, r, i), this.$$p_d = t;
|
|
417
417
|
}
|
|
@@ -427,7 +427,7 @@ function gr(e, t, r, n, i, s) {
|
|
|
427
427
|
return this.$$c && o in this.$$c ? this.$$c[o] : this.$$d[o];
|
|
428
428
|
},
|
|
429
429
|
set(l) {
|
|
430
|
-
l =
|
|
430
|
+
l = he(o, l, t), this.$$d[o] = l, this.$$c?.$set({ [o]: l });
|
|
431
431
|
}
|
|
432
432
|
});
|
|
433
433
|
}), n.forEach((o) => {
|
|
@@ -439,7 +439,7 @@ function gr(e, t, r, n, i, s) {
|
|
|
439
439
|
}), e.element = /** @type {any} */
|
|
440
440
|
u, u;
|
|
441
441
|
}
|
|
442
|
-
class
|
|
442
|
+
class yr {
|
|
443
443
|
/**
|
|
444
444
|
* ### PRIVATE API
|
|
445
445
|
*
|
|
@@ -467,7 +467,7 @@ class _r {
|
|
|
467
467
|
* @returns {() => void}
|
|
468
468
|
*/
|
|
469
469
|
$on(t, r) {
|
|
470
|
-
if (!
|
|
470
|
+
if (!Ve(r))
|
|
471
471
|
return B;
|
|
472
472
|
const n = this.$$.callbacks[t] || (this.$$.callbacks[t] = []);
|
|
473
473
|
return n.push(r), () => {
|
|
@@ -480,29 +480,29 @@ class _r {
|
|
|
480
480
|
* @returns {void}
|
|
481
481
|
*/
|
|
482
482
|
$set(t) {
|
|
483
|
-
this.$$set && !
|
|
483
|
+
this.$$set && !tr(t) && (this.$$.skip_bound = !0, this.$$set(t), this.$$.skip_bound = !1);
|
|
484
484
|
}
|
|
485
485
|
}
|
|
486
|
-
const
|
|
487
|
-
typeof window < "u" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(
|
|
488
|
-
const
|
|
486
|
+
const Er = "4";
|
|
487
|
+
typeof window < "u" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(Er);
|
|
488
|
+
const G = [];
|
|
489
489
|
function xr(e, t) {
|
|
490
490
|
return {
|
|
491
|
-
subscribe:
|
|
491
|
+
subscribe: ge(e, t).subscribe
|
|
492
492
|
};
|
|
493
493
|
}
|
|
494
|
-
function
|
|
494
|
+
function ge(e, t = B) {
|
|
495
495
|
let r;
|
|
496
496
|
const n = /* @__PURE__ */ new Set();
|
|
497
497
|
function i(o) {
|
|
498
|
-
if (
|
|
499
|
-
const l = !
|
|
498
|
+
if (Et(e, o) && (e = o, r)) {
|
|
499
|
+
const l = !G.length;
|
|
500
500
|
for (const a of n)
|
|
501
|
-
a[1](),
|
|
501
|
+
a[1](), G.push(a, e);
|
|
502
502
|
if (l) {
|
|
503
|
-
for (let a = 0; a <
|
|
504
|
-
|
|
505
|
-
|
|
503
|
+
for (let a = 0; a < G.length; a += 2)
|
|
504
|
+
G[a][0](G[a + 1]);
|
|
505
|
+
G.length = 0;
|
|
506
506
|
}
|
|
507
507
|
}
|
|
508
508
|
}
|
|
@@ -517,7 +517,7 @@ function pe(e, t = B) {
|
|
|
517
517
|
}
|
|
518
518
|
return { set: i, update: s, subscribe: u };
|
|
519
519
|
}
|
|
520
|
-
function
|
|
520
|
+
function Z(e, t, r) {
|
|
521
521
|
const n = !Array.isArray(e), i = n ? [e] : e;
|
|
522
522
|
if (!i.every(Boolean))
|
|
523
523
|
throw new Error("derived() expects stores as input, got a falsy value");
|
|
@@ -531,8 +531,8 @@ function z(e, t, r) {
|
|
|
531
531
|
return;
|
|
532
532
|
f();
|
|
533
533
|
const m = t(n ? a[0] : a, u, o);
|
|
534
|
-
s ? u(m) : f =
|
|
535
|
-
},
|
|
534
|
+
s ? u(m) : f = Ve(m) ? m : B;
|
|
535
|
+
}, p = i.map(
|
|
536
536
|
(m, g) => xt(
|
|
537
537
|
m,
|
|
538
538
|
(v) => {
|
|
@@ -544,126 +544,112 @@ function z(e, t, r) {
|
|
|
544
544
|
)
|
|
545
545
|
);
|
|
546
546
|
return l = !0, c(), function() {
|
|
547
|
-
|
|
547
|
+
te(p), f(), l = !1;
|
|
548
548
|
};
|
|
549
549
|
});
|
|
550
550
|
}
|
|
551
|
-
function
|
|
552
|
-
return e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
551
|
+
function vr(e) {
|
|
552
|
+
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
553
553
|
}
|
|
554
|
-
var
|
|
555
|
-
return
|
|
554
|
+
var Hr = function(t) {
|
|
555
|
+
return Br(t) && !Tr(t);
|
|
556
556
|
};
|
|
557
|
-
function
|
|
557
|
+
function Br(e) {
|
|
558
558
|
return !!e && typeof e == "object";
|
|
559
559
|
}
|
|
560
|
-
function
|
|
560
|
+
function Tr(e) {
|
|
561
561
|
var t = Object.prototype.toString.call(e);
|
|
562
|
-
return t === "[object RegExp]" || t === "[object Date]" ||
|
|
563
|
-
}
|
|
564
|
-
var Tr = typeof Symbol == "function" && Symbol.for, wr = Tr ? Symbol.for("react.element") : 60103;
|
|
565
|
-
function Sr(e) {
|
|
566
|
-
return e.$$typeof === wr;
|
|
562
|
+
return t === "[object RegExp]" || t === "[object Date]" || Ar(e);
|
|
567
563
|
}
|
|
564
|
+
var wr = typeof Symbol == "function" && Symbol.for, Sr = wr ? Symbol.for("react.element") : 60103;
|
|
568
565
|
function Ar(e) {
|
|
566
|
+
return e.$$typeof === Sr;
|
|
567
|
+
}
|
|
568
|
+
function Or(e) {
|
|
569
569
|
return Array.isArray(e) ? [] : {};
|
|
570
570
|
}
|
|
571
|
-
function
|
|
572
|
-
return t.clone !== !1 && t.isMergeableObject(e) ?
|
|
571
|
+
function K(e, t) {
|
|
572
|
+
return t.clone !== !1 && t.isMergeableObject(e) ? k(Or(e), e, t) : e;
|
|
573
573
|
}
|
|
574
574
|
function Cr(e, t, r) {
|
|
575
575
|
return e.concat(t).map(function(n) {
|
|
576
|
-
return
|
|
576
|
+
return K(n, r);
|
|
577
577
|
});
|
|
578
578
|
}
|
|
579
|
-
function
|
|
579
|
+
function Pr(e, t) {
|
|
580
580
|
if (!t.customMerge)
|
|
581
|
-
return
|
|
581
|
+
return k;
|
|
582
582
|
var r = t.customMerge(e);
|
|
583
|
-
return typeof r == "function" ? r :
|
|
583
|
+
return typeof r == "function" ? r : k;
|
|
584
584
|
}
|
|
585
|
-
function
|
|
585
|
+
function Lr(e) {
|
|
586
586
|
return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(e).filter(function(t) {
|
|
587
587
|
return Object.propertyIsEnumerable.call(e, t);
|
|
588
588
|
}) : [];
|
|
589
589
|
}
|
|
590
|
-
function
|
|
591
|
-
return Object.keys(e).concat(
|
|
590
|
+
function Ye(e) {
|
|
591
|
+
return Object.keys(e).concat(Lr(e));
|
|
592
592
|
}
|
|
593
|
-
function
|
|
593
|
+
function wt(e, t) {
|
|
594
594
|
try {
|
|
595
595
|
return t in e;
|
|
596
596
|
} catch {
|
|
597
597
|
return !1;
|
|
598
598
|
}
|
|
599
599
|
}
|
|
600
|
-
function
|
|
601
|
-
return
|
|
600
|
+
function Nr(e, t) {
|
|
601
|
+
return wt(e, t) && !(Object.hasOwnProperty.call(e, t) && Object.propertyIsEnumerable.call(e, t));
|
|
602
602
|
}
|
|
603
|
-
function
|
|
603
|
+
function Ir(e, t, r) {
|
|
604
604
|
var n = {};
|
|
605
|
-
return r.isMergeableObject(e) &&
|
|
606
|
-
n[i] =
|
|
607
|
-
}),
|
|
608
|
-
|
|
605
|
+
return r.isMergeableObject(e) && Ye(e).forEach(function(i) {
|
|
606
|
+
n[i] = K(e[i], r);
|
|
607
|
+
}), Ye(t).forEach(function(i) {
|
|
608
|
+
Nr(e, i) || (wt(e, i) && r.isMergeableObject(t[i]) ? n[i] = Pr(i, r)(e[i], t[i], r) : n[i] = K(t[i], r));
|
|
609
609
|
}), n;
|
|
610
610
|
}
|
|
611
|
-
function
|
|
612
|
-
r = r || {}, r.arrayMerge = r.arrayMerge || Cr, r.isMergeableObject = r.isMergeableObject ||
|
|
611
|
+
function k(e, t, r) {
|
|
612
|
+
r = r || {}, r.arrayMerge = r.arrayMerge || Cr, r.isMergeableObject = r.isMergeableObject || Hr, r.cloneUnlessOtherwiseSpecified = K;
|
|
613
613
|
var n = Array.isArray(t), i = Array.isArray(e), s = n === i;
|
|
614
|
-
return s ? n ? r.arrayMerge(e, t, r) :
|
|
614
|
+
return s ? n ? r.arrayMerge(e, t, r) : Ir(e, t, r) : K(t, r);
|
|
615
615
|
}
|
|
616
|
-
|
|
616
|
+
k.all = function(t, r) {
|
|
617
617
|
if (!Array.isArray(t))
|
|
618
618
|
throw new Error("first argument should be an array");
|
|
619
619
|
return t.reduce(function(n, i) {
|
|
620
|
-
return
|
|
620
|
+
return k(n, i, r);
|
|
621
621
|
}, {});
|
|
622
622
|
};
|
|
623
|
-
var
|
|
624
|
-
const
|
|
625
|
-
|
|
626
|
-
|
|
627
|
-
|
|
628
|
-
Permission to use, copy, modify, and/or distribute this software for any
|
|
629
|
-
purpose with or without fee is hereby granted.
|
|
630
|
-
|
|
631
|
-
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
632
|
-
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
633
|
-
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
634
|
-
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
635
|
-
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
636
|
-
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
637
|
-
PERFORMANCE OF THIS SOFTWARE.
|
|
638
|
-
***************************************************************************** */
|
|
639
|
-
var Ie = function(e, t) {
|
|
640
|
-
return Ie = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
|
|
623
|
+
var Mr = k, $r = Mr;
|
|
624
|
+
const Rr = /* @__PURE__ */ vr($r);
|
|
625
|
+
var $e = function(e, t) {
|
|
626
|
+
return $e = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
|
|
641
627
|
r.__proto__ = n;
|
|
642
628
|
} || function(r, n) {
|
|
643
629
|
for (var i in n)
|
|
644
630
|
Object.prototype.hasOwnProperty.call(n, i) && (r[i] = n[i]);
|
|
645
|
-
},
|
|
631
|
+
}, $e(e, t);
|
|
646
632
|
};
|
|
647
|
-
function
|
|
633
|
+
function _e(e, t) {
|
|
648
634
|
if (typeof t != "function" && t !== null)
|
|
649
635
|
throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
|
|
650
|
-
|
|
636
|
+
$e(e, t);
|
|
651
637
|
function r() {
|
|
652
638
|
this.constructor = e;
|
|
653
639
|
}
|
|
654
640
|
e.prototype = t === null ? Object.create(t) : (r.prototype = t.prototype, new r());
|
|
655
641
|
}
|
|
656
|
-
var
|
|
657
|
-
return
|
|
642
|
+
var T = function() {
|
|
643
|
+
return T = Object.assign || function(t) {
|
|
658
644
|
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
659
645
|
r = arguments[n];
|
|
660
646
|
for (var s in r)
|
|
661
647
|
Object.prototype.hasOwnProperty.call(r, s) && (t[s] = r[s]);
|
|
662
648
|
}
|
|
663
649
|
return t;
|
|
664
|
-
},
|
|
650
|
+
}, T.apply(this, arguments);
|
|
665
651
|
};
|
|
666
|
-
function
|
|
652
|
+
function Ur(e, t) {
|
|
667
653
|
var r = {};
|
|
668
654
|
for (var n in e)
|
|
669
655
|
Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
@@ -672,46 +658,43 @@ function Rr(e, t) {
|
|
|
672
658
|
t.indexOf(n[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[i]) && (r[n[i]] = e[n[i]]);
|
|
673
659
|
return r;
|
|
674
660
|
}
|
|
675
|
-
function
|
|
676
|
-
if (arguments.length === 2)
|
|
661
|
+
function Se(e, t, r) {
|
|
662
|
+
if (r || arguments.length === 2)
|
|
677
663
|
for (var n = 0, i = t.length, s; n < i; n++)
|
|
678
664
|
(s || !(n in t)) && (s || (s = Array.prototype.slice.call(t, 0, n)), s[n] = t[n]);
|
|
679
|
-
return e.concat(s || t);
|
|
665
|
+
return e.concat(s || Array.prototype.slice.call(t));
|
|
680
666
|
}
|
|
681
|
-
function
|
|
682
|
-
var r = t && t.cache ? t.cache :
|
|
667
|
+
function Ae(e, t) {
|
|
668
|
+
var r = t && t.cache ? t.cache : Xr, n = t && t.serializer ? t.serializer : kr, i = t && t.strategy ? t.strategy : Fr;
|
|
683
669
|
return i(e, {
|
|
684
670
|
cache: r,
|
|
685
671
|
serializer: n
|
|
686
672
|
});
|
|
687
673
|
}
|
|
688
|
-
function
|
|
674
|
+
function Dr(e) {
|
|
689
675
|
return e == null || typeof e == "number" || typeof e == "boolean";
|
|
690
676
|
}
|
|
691
|
-
function
|
|
692
|
-
var i =
|
|
677
|
+
function Gr(e, t, r, n) {
|
|
678
|
+
var i = Dr(n) ? n : r(n), s = t.get(i);
|
|
693
679
|
return typeof s > "u" && (s = e.call(this, n), t.set(i, s)), s;
|
|
694
680
|
}
|
|
695
681
|
function St(e, t, r) {
|
|
696
682
|
var n = Array.prototype.slice.call(arguments, 3), i = r(n), s = t.get(i);
|
|
697
683
|
return typeof s > "u" && (s = e.apply(this, n), t.set(i, s)), s;
|
|
698
684
|
}
|
|
699
|
-
function
|
|
685
|
+
function At(e, t, r, n, i) {
|
|
700
686
|
return r.bind(t, e, n, i);
|
|
701
687
|
}
|
|
702
|
-
function Dr(e, t) {
|
|
703
|
-
var r = e.length === 1 ? wt : St;
|
|
704
|
-
return Xe(e, this, r, t.cache.create(), t.serializer);
|
|
705
|
-
}
|
|
706
|
-
function Gr(e, t) {
|
|
707
|
-
return Xe(e, this, St, t.cache.create(), t.serializer);
|
|
708
|
-
}
|
|
709
688
|
function Fr(e, t) {
|
|
710
|
-
|
|
689
|
+
var r = e.length === 1 ? Gr : St;
|
|
690
|
+
return At(e, this, r, t.cache.create(), t.serializer);
|
|
711
691
|
}
|
|
712
|
-
|
|
692
|
+
function jr(e, t) {
|
|
693
|
+
return At(e, this, St, t.cache.create(), t.serializer);
|
|
694
|
+
}
|
|
695
|
+
var kr = function() {
|
|
713
696
|
return JSON.stringify(arguments);
|
|
714
|
-
},
|
|
697
|
+
}, Vr = (
|
|
715
698
|
/** @class */
|
|
716
699
|
function() {
|
|
717
700
|
function e() {
|
|
@@ -723,62 +706,71 @@ var jr = function() {
|
|
|
723
706
|
this.cache[t] = r;
|
|
724
707
|
}, e;
|
|
725
708
|
}()
|
|
726
|
-
),
|
|
709
|
+
), Xr = {
|
|
727
710
|
create: function() {
|
|
728
|
-
return new
|
|
711
|
+
return new Vr();
|
|
729
712
|
}
|
|
730
|
-
},
|
|
731
|
-
variadic:
|
|
732
|
-
|
|
733
|
-
|
|
713
|
+
}, Oe = {
|
|
714
|
+
variadic: jr
|
|
715
|
+
}, me = function() {
|
|
716
|
+
return me = Object.assign || function(t) {
|
|
717
|
+
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
718
|
+
r = arguments[n];
|
|
719
|
+
for (var s in r)
|
|
720
|
+
Object.prototype.hasOwnProperty.call(r, s) && (t[s] = r[s]);
|
|
721
|
+
}
|
|
722
|
+
return t;
|
|
723
|
+
}, me.apply(this, arguments);
|
|
724
|
+
};
|
|
725
|
+
var d;
|
|
734
726
|
(function(e) {
|
|
735
727
|
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";
|
|
736
|
-
})(
|
|
737
|
-
var
|
|
728
|
+
})(d || (d = {}));
|
|
729
|
+
var y;
|
|
738
730
|
(function(e) {
|
|
739
731
|
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";
|
|
740
|
-
})(
|
|
741
|
-
var
|
|
732
|
+
})(y || (y = {}));
|
|
733
|
+
var V;
|
|
742
734
|
(function(e) {
|
|
743
735
|
e[e.number = 0] = "number", e[e.dateTime = 1] = "dateTime";
|
|
744
|
-
})(
|
|
745
|
-
function
|
|
746
|
-
return e.type ===
|
|
736
|
+
})(V || (V = {}));
|
|
737
|
+
function Ke(e) {
|
|
738
|
+
return e.type === y.literal;
|
|
747
739
|
}
|
|
748
|
-
function
|
|
749
|
-
return e.type ===
|
|
740
|
+
function Wr(e) {
|
|
741
|
+
return e.type === y.argument;
|
|
750
742
|
}
|
|
751
|
-
function
|
|
752
|
-
return e.type ===
|
|
743
|
+
function Ot(e) {
|
|
744
|
+
return e.type === y.number;
|
|
753
745
|
}
|
|
754
746
|
function Ct(e) {
|
|
755
|
-
return e.type ===
|
|
756
|
-
}
|
|
757
|
-
function Ot(e) {
|
|
758
|
-
return e.type === x.time;
|
|
747
|
+
return e.type === y.date;
|
|
759
748
|
}
|
|
760
749
|
function Pt(e) {
|
|
761
|
-
return e.type ===
|
|
750
|
+
return e.type === y.time;
|
|
762
751
|
}
|
|
763
752
|
function Lt(e) {
|
|
764
|
-
return e.type ===
|
|
765
|
-
}
|
|
766
|
-
function Wr(e) {
|
|
767
|
-
return e.type === x.pound;
|
|
753
|
+
return e.type === y.select;
|
|
768
754
|
}
|
|
769
755
|
function Nt(e) {
|
|
770
|
-
return e.type ===
|
|
756
|
+
return e.type === y.plural;
|
|
757
|
+
}
|
|
758
|
+
function zr(e) {
|
|
759
|
+
return e.type === y.pound;
|
|
771
760
|
}
|
|
772
761
|
function It(e) {
|
|
773
|
-
return
|
|
762
|
+
return e.type === y.tag;
|
|
774
763
|
}
|
|
775
|
-
function
|
|
776
|
-
return !!(e && typeof e == "object" && e.type ===
|
|
764
|
+
function Mt(e) {
|
|
765
|
+
return !!(e && typeof e == "object" && e.type === V.number);
|
|
766
|
+
}
|
|
767
|
+
function Re(e) {
|
|
768
|
+
return !!(e && typeof e == "object" && e.type === V.dateTime);
|
|
777
769
|
}
|
|
778
|
-
var
|
|
779
|
-
function
|
|
770
|
+
var $t = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, Zr = /(?:[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;
|
|
771
|
+
function Qr(e) {
|
|
780
772
|
var t = {};
|
|
781
|
-
return e.replace(
|
|
773
|
+
return e.replace(Zr, function(r) {
|
|
782
774
|
var n = r.length;
|
|
783
775
|
switch (r[0]) {
|
|
784
776
|
case "G":
|
|
@@ -867,11 +859,21 @@ function Zr(e) {
|
|
|
867
859
|
return "";
|
|
868
860
|
}), t;
|
|
869
861
|
}
|
|
870
|
-
var
|
|
871
|
-
function
|
|
862
|
+
var E = function() {
|
|
863
|
+
return E = Object.assign || function(t) {
|
|
864
|
+
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
865
|
+
r = arguments[n];
|
|
866
|
+
for (var s in r)
|
|
867
|
+
Object.prototype.hasOwnProperty.call(r, s) && (t[s] = r[s]);
|
|
868
|
+
}
|
|
869
|
+
return t;
|
|
870
|
+
}, E.apply(this, arguments);
|
|
871
|
+
};
|
|
872
|
+
var Jr = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
|
|
873
|
+
function qr(e) {
|
|
872
874
|
if (e.length === 0)
|
|
873
875
|
throw new Error("Number skeleton cannot be empty");
|
|
874
|
-
for (var t = e.split(
|
|
876
|
+
for (var t = e.split(Jr).filter(function(c) {
|
|
875
877
|
return c.length > 0;
|
|
876
878
|
}), r = [], n = 0, i = t; n < i.length; n++) {
|
|
877
879
|
var s = i[n], u = s.split("/");
|
|
@@ -886,17 +888,17 @@ function Jr(e) {
|
|
|
886
888
|
}
|
|
887
889
|
return r;
|
|
888
890
|
}
|
|
889
|
-
function
|
|
891
|
+
function Yr(e) {
|
|
890
892
|
return e.replace(/^(.*?)-/, "");
|
|
891
893
|
}
|
|
892
|
-
var
|
|
893
|
-
function
|
|
894
|
+
var et = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, Rt = /^(@+)?(\+|#+)?[rs]?$/g, Kr = /(\*)(0+)|(#+)(0+)|(0+)/g, Ut = /^(0+)$/;
|
|
895
|
+
function tt(e) {
|
|
894
896
|
var t = {};
|
|
895
|
-
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(
|
|
897
|
+
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(Rt, function(r, n, i) {
|
|
896
898
|
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)), "";
|
|
897
899
|
}), t;
|
|
898
900
|
}
|
|
899
|
-
function
|
|
901
|
+
function Dt(e) {
|
|
900
902
|
switch (e) {
|
|
901
903
|
case "sign-auto":
|
|
902
904
|
return {
|
|
@@ -936,7 +938,7 @@ function Ut(e) {
|
|
|
936
938
|
};
|
|
937
939
|
}
|
|
938
940
|
}
|
|
939
|
-
function
|
|
941
|
+
function en(e) {
|
|
940
942
|
var t;
|
|
941
943
|
if (e[0] === "E" && e[1] === "E" ? (t = {
|
|
942
944
|
notation: "engineering"
|
|
@@ -944,17 +946,17 @@ function Kr(e) {
|
|
|
944
946
|
notation: "scientific"
|
|
945
947
|
}, e = e.slice(1)), t) {
|
|
946
948
|
var r = e.slice(0, 2);
|
|
947
|
-
if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !
|
|
949
|
+
if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !Ut.test(e))
|
|
948
950
|
throw new Error("Malformed concise eng/scientific notation");
|
|
949
951
|
t.minimumIntegerDigits = e.length;
|
|
950
952
|
}
|
|
951
953
|
return t;
|
|
952
954
|
}
|
|
953
|
-
function
|
|
954
|
-
var t = {}, r =
|
|
955
|
+
function rt(e) {
|
|
956
|
+
var t = {}, r = Dt(e);
|
|
955
957
|
return r || t;
|
|
956
958
|
}
|
|
957
|
-
function
|
|
959
|
+
function tn(e) {
|
|
958
960
|
for (var t = {}, r = 0, n = e; r < n.length; r++) {
|
|
959
961
|
var i = n[r];
|
|
960
962
|
switch (i.stem) {
|
|
@@ -978,7 +980,7 @@ function en(e) {
|
|
|
978
980
|
continue;
|
|
979
981
|
case "measure-unit":
|
|
980
982
|
case "unit":
|
|
981
|
-
t.style = "unit", t.unit =
|
|
983
|
+
t.style = "unit", t.unit = Yr(i.options[0]);
|
|
982
984
|
continue;
|
|
983
985
|
case "compact-short":
|
|
984
986
|
case "K":
|
|
@@ -989,13 +991,13 @@ function en(e) {
|
|
|
989
991
|
t.notation = "compact", t.compactDisplay = "long";
|
|
990
992
|
continue;
|
|
991
993
|
case "scientific":
|
|
992
|
-
t =
|
|
993
|
-
return
|
|
994
|
+
t = E(E(E({}, t), { notation: "scientific" }), i.options.reduce(function(l, a) {
|
|
995
|
+
return E(E({}, l), rt(a));
|
|
994
996
|
}, {}));
|
|
995
997
|
continue;
|
|
996
998
|
case "engineering":
|
|
997
|
-
t =
|
|
998
|
-
return
|
|
999
|
+
t = E(E(E({}, t), { notation: "engineering" }), i.options.reduce(function(l, a) {
|
|
1000
|
+
return E(E({}, l), rt(a));
|
|
999
1001
|
}, {}));
|
|
1000
1002
|
continue;
|
|
1001
1003
|
case "notation-simple":
|
|
@@ -1040,45 +1042,45 @@ function en(e) {
|
|
|
1040
1042
|
case "integer-width":
|
|
1041
1043
|
if (i.options.length > 1)
|
|
1042
1044
|
throw new RangeError("integer-width stems only accept a single optional option");
|
|
1043
|
-
i.options[0].replace(
|
|
1045
|
+
i.options[0].replace(Kr, function(l, a, h, f, c, p) {
|
|
1044
1046
|
if (a)
|
|
1045
1047
|
t.minimumIntegerDigits = h.length;
|
|
1046
1048
|
else {
|
|
1047
1049
|
if (f && c)
|
|
1048
1050
|
throw new Error("We currently do not support maximum integer digits");
|
|
1049
|
-
if (
|
|
1051
|
+
if (p)
|
|
1050
1052
|
throw new Error("We currently do not support exact integer digits");
|
|
1051
1053
|
}
|
|
1052
1054
|
return "";
|
|
1053
1055
|
});
|
|
1054
1056
|
continue;
|
|
1055
1057
|
}
|
|
1056
|
-
if (
|
|
1058
|
+
if (Ut.test(i.stem)) {
|
|
1057
1059
|
t.minimumIntegerDigits = i.stem.length;
|
|
1058
1060
|
continue;
|
|
1059
1061
|
}
|
|
1060
|
-
if (
|
|
1062
|
+
if (et.test(i.stem)) {
|
|
1061
1063
|
if (i.options.length > 1)
|
|
1062
1064
|
throw new RangeError("Fraction-precision stems only accept a single optional option");
|
|
1063
|
-
i.stem.replace(
|
|
1064
|
-
return h === "*" ? t.minimumFractionDigits = a.length : f && f[0] === "#" ? t.maximumFractionDigits = f.length : c &&
|
|
1065
|
+
i.stem.replace(et, function(l, a, h, f, c, p) {
|
|
1066
|
+
return h === "*" ? t.minimumFractionDigits = a.length : f && f[0] === "#" ? t.maximumFractionDigits = f.length : c && p ? (t.minimumFractionDigits = c.length, t.maximumFractionDigits = c.length + p.length) : (t.minimumFractionDigits = a.length, t.maximumFractionDigits = a.length), "";
|
|
1065
1067
|
});
|
|
1066
1068
|
var s = i.options[0];
|
|
1067
|
-
s === "w" ? t =
|
|
1069
|
+
s === "w" ? t = E(E({}, t), { trailingZeroDisplay: "stripIfInteger" }) : s && (t = E(E({}, t), tt(s)));
|
|
1068
1070
|
continue;
|
|
1069
1071
|
}
|
|
1070
|
-
if (
|
|
1071
|
-
t =
|
|
1072
|
+
if (Rt.test(i.stem)) {
|
|
1073
|
+
t = E(E({}, t), tt(i.stem));
|
|
1072
1074
|
continue;
|
|
1073
1075
|
}
|
|
1074
|
-
var u =
|
|
1075
|
-
u && (t =
|
|
1076
|
-
var o =
|
|
1077
|
-
o && (t =
|
|
1076
|
+
var u = Dt(i.stem);
|
|
1077
|
+
u && (t = E(E({}, t), u));
|
|
1078
|
+
var o = en(i.stem);
|
|
1079
|
+
o && (t = E(E({}, t), o));
|
|
1078
1080
|
}
|
|
1079
1081
|
return t;
|
|
1080
1082
|
}
|
|
1081
|
-
var
|
|
1083
|
+
var oe = {
|
|
1082
1084
|
"001": [
|
|
1083
1085
|
"H",
|
|
1084
1086
|
"h"
|
|
@@ -2493,13 +2495,13 @@ var se = {
|
|
|
2493
2495
|
"h"
|
|
2494
2496
|
]
|
|
2495
2497
|
};
|
|
2496
|
-
function
|
|
2498
|
+
function rn(e, t) {
|
|
2497
2499
|
for (var r = "", n = 0; n < e.length; n++) {
|
|
2498
2500
|
var i = e.charAt(n);
|
|
2499
2501
|
if (i === "j") {
|
|
2500
2502
|
for (var s = 0; n + 1 < e.length && e.charAt(n + 1) === i; )
|
|
2501
2503
|
s++, n++;
|
|
2502
|
-
var u = 1 + (s & 1), o = s < 2 ? 1 : 3 + (s >> 1), l = "a", a =
|
|
2504
|
+
var u = 1 + (s & 1), o = s < 2 ? 1 : 3 + (s >> 1), l = "a", a = nn(t);
|
|
2503
2505
|
for ((a == "H" || a == "k") && (o = 0); o-- > 0; )
|
|
2504
2506
|
r += l;
|
|
2505
2507
|
for (; u-- > 0; )
|
|
@@ -2509,7 +2511,7 @@ function tn(e, t) {
|
|
|
2509
2511
|
}
|
|
2510
2512
|
return r;
|
|
2511
2513
|
}
|
|
2512
|
-
function
|
|
2514
|
+
function nn(e) {
|
|
2513
2515
|
var t = e.hourCycle;
|
|
2514
2516
|
if (t === void 0 && // @ts-ignore hourCycle(s) is not identified yet
|
|
2515
2517
|
e.hourCycles && // @ts-ignore
|
|
@@ -2528,23 +2530,23 @@ function rn(e) {
|
|
|
2528
2530
|
}
|
|
2529
2531
|
var r = e.language, n;
|
|
2530
2532
|
r !== "root" && (n = e.maximize().region);
|
|
2531
|
-
var i =
|
|
2533
|
+
var i = oe[n || ""] || oe[r || ""] || oe["".concat(r, "-001")] || oe["001"];
|
|
2532
2534
|
return i[0];
|
|
2533
2535
|
}
|
|
2534
|
-
var
|
|
2536
|
+
var Ce, sn = new RegExp("^".concat($t.source, "*")), on = new RegExp("".concat($t.source, "*$"));
|
|
2535
2537
|
function b(e, t) {
|
|
2536
2538
|
return { start: e, end: t };
|
|
2537
2539
|
}
|
|
2538
|
-
var
|
|
2540
|
+
var an = !!String.prototype.startsWith && "_a".startsWith("a", 1), un = !!String.fromCodePoint, hn = !!Object.fromEntries, ln = !!String.prototype.codePointAt, fn = !!String.prototype.trimStart, cn = !!String.prototype.trimEnd, mn = !!Number.isSafeInteger, pn = mn ? Number.isSafeInteger : function(e) {
|
|
2539
2541
|
return typeof e == "number" && isFinite(e) && Math.floor(e) === e && Math.abs(e) <= 9007199254740991;
|
|
2540
|
-
},
|
|
2542
|
+
}, Ue = !0;
|
|
2541
2543
|
try {
|
|
2542
|
-
var dn =
|
|
2543
|
-
|
|
2544
|
+
var dn = Ft("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
2545
|
+
Ue = ((Ce = dn.exec("a")) === null || Ce === void 0 ? void 0 : Ce[0]) === "a";
|
|
2544
2546
|
} catch {
|
|
2545
|
-
|
|
2547
|
+
Ue = !1;
|
|
2546
2548
|
}
|
|
2547
|
-
var
|
|
2549
|
+
var nt = an ? (
|
|
2548
2550
|
// Native
|
|
2549
2551
|
function(t, r, n) {
|
|
2550
2552
|
return t.startsWith(r, n);
|
|
@@ -2554,7 +2556,7 @@ var rt = on ? (
|
|
|
2554
2556
|
function(t, r, n) {
|
|
2555
2557
|
return t.slice(n, n + r.length) === r;
|
|
2556
2558
|
}
|
|
2557
|
-
),
|
|
2559
|
+
), De = un ? String.fromCodePoint : (
|
|
2558
2560
|
// IE11
|
|
2559
2561
|
function() {
|
|
2560
2562
|
for (var t = [], r = 0; r < arguments.length; r++)
|
|
@@ -2566,9 +2568,9 @@ var rt = on ? (
|
|
|
2566
2568
|
}
|
|
2567
2569
|
return n;
|
|
2568
2570
|
}
|
|
2569
|
-
),
|
|
2571
|
+
), it = (
|
|
2570
2572
|
// native
|
|
2571
|
-
|
|
2573
|
+
hn ? Object.fromEntries : (
|
|
2572
2574
|
// Ponyfill
|
|
2573
2575
|
function(t) {
|
|
2574
2576
|
for (var r = {}, n = 0, i = t; n < i.length; n++) {
|
|
@@ -2578,7 +2580,7 @@ var rt = on ? (
|
|
|
2578
2580
|
return r;
|
|
2579
2581
|
}
|
|
2580
2582
|
)
|
|
2581
|
-
),
|
|
2583
|
+
), Gt = ln ? (
|
|
2582
2584
|
// Native
|
|
2583
2585
|
function(t, r) {
|
|
2584
2586
|
return t.codePointAt(r);
|
|
@@ -2592,7 +2594,7 @@ var rt = on ? (
|
|
|
2592
2594
|
return i < 55296 || i > 56319 || r + 1 === n || (s = t.charCodeAt(r + 1)) < 56320 || s > 57343 ? i : (i - 55296 << 10) + (s - 56320) + 65536;
|
|
2593
2595
|
}
|
|
2594
2596
|
}
|
|
2595
|
-
),
|
|
2597
|
+
), bn = fn ? (
|
|
2596
2598
|
// Native
|
|
2597
2599
|
function(t) {
|
|
2598
2600
|
return t.trimStart();
|
|
@@ -2600,9 +2602,9 @@ var rt = on ? (
|
|
|
2600
2602
|
) : (
|
|
2601
2603
|
// Ponyfill
|
|
2602
2604
|
function(t) {
|
|
2603
|
-
return t.replace(
|
|
2605
|
+
return t.replace(sn, "");
|
|
2604
2606
|
}
|
|
2605
|
-
),
|
|
2607
|
+
), gn = cn ? (
|
|
2606
2608
|
// Native
|
|
2607
2609
|
function(t) {
|
|
2608
2610
|
return t.trimEnd();
|
|
@@ -2610,32 +2612,32 @@ var rt = on ? (
|
|
|
2610
2612
|
) : (
|
|
2611
2613
|
// Ponyfill
|
|
2612
2614
|
function(t) {
|
|
2613
|
-
return t.replace(
|
|
2615
|
+
return t.replace(on, "");
|
|
2614
2616
|
}
|
|
2615
2617
|
);
|
|
2616
|
-
function
|
|
2618
|
+
function Ft(e, t) {
|
|
2617
2619
|
return new RegExp(e, t);
|
|
2618
2620
|
}
|
|
2619
|
-
var
|
|
2620
|
-
if (
|
|
2621
|
-
var
|
|
2622
|
-
|
|
2621
|
+
var Ge;
|
|
2622
|
+
if (Ue) {
|
|
2623
|
+
var st = Ft("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
2624
|
+
Ge = function(t, r) {
|
|
2623
2625
|
var n;
|
|
2624
|
-
|
|
2625
|
-
var i =
|
|
2626
|
+
st.lastIndex = r;
|
|
2627
|
+
var i = st.exec(t);
|
|
2626
2628
|
return (n = i[1]) !== null && n !== void 0 ? n : "";
|
|
2627
2629
|
};
|
|
2628
2630
|
} else
|
|
2629
|
-
|
|
2631
|
+
Ge = function(t, r) {
|
|
2630
2632
|
for (var n = []; ; ) {
|
|
2631
|
-
var i =
|
|
2632
|
-
if (i === void 0 ||
|
|
2633
|
+
var i = Gt(t, r);
|
|
2634
|
+
if (i === void 0 || jt(i) || xn(i))
|
|
2633
2635
|
break;
|
|
2634
2636
|
n.push(i), r += i >= 65536 ? 2 : 1;
|
|
2635
2637
|
}
|
|
2636
|
-
return
|
|
2638
|
+
return De.apply(void 0, n);
|
|
2637
2639
|
};
|
|
2638
|
-
var
|
|
2640
|
+
var _n = (
|
|
2639
2641
|
/** @class */
|
|
2640
2642
|
function() {
|
|
2641
2643
|
function e(t, r) {
|
|
@@ -2659,14 +2661,14 @@ var gn = (
|
|
|
2659
2661
|
if (s === 35 && (r === "plural" || r === "selectordinal")) {
|
|
2660
2662
|
var o = this.clonePosition();
|
|
2661
2663
|
this.bump(), i.push({
|
|
2662
|
-
type:
|
|
2664
|
+
type: y.pound,
|
|
2663
2665
|
location: b(o, this.clonePosition())
|
|
2664
2666
|
});
|
|
2665
2667
|
} else if (s === 60 && !this.ignoreTag && this.peek() === 47) {
|
|
2666
2668
|
if (n)
|
|
2667
2669
|
break;
|
|
2668
|
-
return this.error(
|
|
2669
|
-
} else if (s === 60 && !this.ignoreTag &&
|
|
2670
|
+
return this.error(d.UNMATCHED_CLOSING_TAG, b(this.clonePosition(), this.clonePosition()));
|
|
2671
|
+
} else if (s === 60 && !this.ignoreTag && Fe(this.peek() || 0)) {
|
|
2670
2672
|
var u = this.parseTag(t, r);
|
|
2671
2673
|
if (u.err)
|
|
2672
2674
|
return u;
|
|
@@ -2687,7 +2689,7 @@ var gn = (
|
|
|
2687
2689
|
if (this.bumpSpace(), this.bumpIf("/>"))
|
|
2688
2690
|
return {
|
|
2689
2691
|
val: {
|
|
2690
|
-
type:
|
|
2692
|
+
type: y.literal,
|
|
2691
2693
|
value: "<".concat(i, "/>"),
|
|
2692
2694
|
location: b(n, this.clonePosition())
|
|
2693
2695
|
},
|
|
@@ -2699,25 +2701,25 @@ var gn = (
|
|
|
2699
2701
|
return s;
|
|
2700
2702
|
var u = s.val, o = this.clonePosition();
|
|
2701
2703
|
if (this.bumpIf("</")) {
|
|
2702
|
-
if (this.isEOF() || !
|
|
2703
|
-
return this.error(
|
|
2704
|
+
if (this.isEOF() || !Fe(this.char()))
|
|
2705
|
+
return this.error(d.INVALID_TAG, b(o, this.clonePosition()));
|
|
2704
2706
|
var l = this.clonePosition(), a = this.parseTagName();
|
|
2705
|
-
return i !== a ? this.error(
|
|
2707
|
+
return i !== a ? this.error(d.UNMATCHED_CLOSING_TAG, b(l, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
|
|
2706
2708
|
val: {
|
|
2707
|
-
type:
|
|
2709
|
+
type: y.tag,
|
|
2708
2710
|
value: i,
|
|
2709
2711
|
children: u,
|
|
2710
2712
|
location: b(n, this.clonePosition())
|
|
2711
2713
|
},
|
|
2712
2714
|
err: null
|
|
2713
|
-
} : this.error(
|
|
2715
|
+
} : this.error(d.INVALID_TAG, b(o, this.clonePosition())));
|
|
2714
2716
|
} else
|
|
2715
|
-
return this.error(
|
|
2717
|
+
return this.error(d.UNCLOSED_TAG, b(n, this.clonePosition()));
|
|
2716
2718
|
} else
|
|
2717
|
-
return this.error(
|
|
2719
|
+
return this.error(d.INVALID_TAG, b(n, this.clonePosition()));
|
|
2718
2720
|
}, e.prototype.parseTagName = function() {
|
|
2719
2721
|
var t = this.offset();
|
|
2720
|
-
for (this.bump(); !this.isEOF() &&
|
|
2722
|
+
for (this.bump(); !this.isEOF() && En(this.char()); )
|
|
2721
2723
|
this.bump();
|
|
2722
2724
|
return this.message.slice(t, this.offset());
|
|
2723
2725
|
}, e.prototype.parseLiteral = function(t, r) {
|
|
@@ -2741,12 +2743,12 @@ var gn = (
|
|
|
2741
2743
|
}
|
|
2742
2744
|
var l = b(n, this.clonePosition());
|
|
2743
2745
|
return {
|
|
2744
|
-
val: { type:
|
|
2746
|
+
val: { type: y.literal, value: i, location: l },
|
|
2745
2747
|
err: null
|
|
2746
2748
|
};
|
|
2747
2749
|
}, e.prototype.tryParseLeftAngleBracket = function() {
|
|
2748
2750
|
return !this.isEOF() && this.char() === 60 && (this.ignoreTag || // If at the opening tag or closing tag position, bail.
|
|
2749
|
-
!
|
|
2751
|
+
!yn(this.peek() || 0)) ? (this.bump(), "<") : null;
|
|
2750
2752
|
}, e.prototype.tryParseQuote = function(t) {
|
|
2751
2753
|
if (this.isEOF() || this.char() !== 39)
|
|
2752
2754
|
return null;
|
|
@@ -2780,28 +2782,28 @@ var gn = (
|
|
|
2780
2782
|
r.push(n);
|
|
2781
2783
|
this.bump();
|
|
2782
2784
|
}
|
|
2783
|
-
return
|
|
2785
|
+
return De.apply(void 0, r);
|
|
2784
2786
|
}, e.prototype.tryParseUnquoted = function(t, r) {
|
|
2785
2787
|
if (this.isEOF())
|
|
2786
2788
|
return null;
|
|
2787
2789
|
var n = this.char();
|
|
2788
|
-
return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(),
|
|
2790
|
+
return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(), De(n));
|
|
2789
2791
|
}, e.prototype.parseArgument = function(t, r) {
|
|
2790
2792
|
var n = this.clonePosition();
|
|
2791
2793
|
if (this.bump(), this.bumpSpace(), this.isEOF())
|
|
2792
|
-
return this.error(
|
|
2794
|
+
return this.error(d.EXPECT_ARGUMENT_CLOSING_BRACE, b(n, this.clonePosition()));
|
|
2793
2795
|
if (this.char() === 125)
|
|
2794
|
-
return this.bump(), this.error(
|
|
2796
|
+
return this.bump(), this.error(d.EMPTY_ARGUMENT, b(n, this.clonePosition()));
|
|
2795
2797
|
var i = this.parseIdentifierIfPossible().value;
|
|
2796
2798
|
if (!i)
|
|
2797
|
-
return this.error(
|
|
2799
|
+
return this.error(d.MALFORMED_ARGUMENT, b(n, this.clonePosition()));
|
|
2798
2800
|
if (this.bumpSpace(), this.isEOF())
|
|
2799
|
-
return this.error(
|
|
2801
|
+
return this.error(d.EXPECT_ARGUMENT_CLOSING_BRACE, b(n, this.clonePosition()));
|
|
2800
2802
|
switch (this.char()) {
|
|
2801
2803
|
case 125:
|
|
2802
2804
|
return this.bump(), {
|
|
2803
2805
|
val: {
|
|
2804
|
-
type:
|
|
2806
|
+
type: y.argument,
|
|
2805
2807
|
// value does not include the opening and closing braces.
|
|
2806
2808
|
value: i,
|
|
2807
2809
|
location: b(n, this.clonePosition())
|
|
@@ -2809,12 +2811,12 @@ var gn = (
|
|
|
2809
2811
|
err: null
|
|
2810
2812
|
};
|
|
2811
2813
|
case 44:
|
|
2812
|
-
return this.bump(), this.bumpSpace(), this.isEOF() ? this.error(
|
|
2814
|
+
return this.bump(), this.bumpSpace(), this.isEOF() ? this.error(d.EXPECT_ARGUMENT_CLOSING_BRACE, b(n, this.clonePosition())) : this.parseArgumentOptions(t, r, i, n);
|
|
2813
2815
|
default:
|
|
2814
|
-
return this.error(
|
|
2816
|
+
return this.error(d.MALFORMED_ARGUMENT, b(n, this.clonePosition()));
|
|
2815
2817
|
}
|
|
2816
2818
|
}, e.prototype.parseIdentifierIfPossible = function() {
|
|
2817
|
-
var t = this.clonePosition(), r = this.offset(), n =
|
|
2819
|
+
var t = this.clonePosition(), r = this.offset(), n = Ge(this.message, r), i = r + n.length;
|
|
2818
2820
|
this.bumpTo(i);
|
|
2819
2821
|
var s = this.clonePosition(), u = b(t, s);
|
|
2820
2822
|
return { value: n, location: u };
|
|
@@ -2822,7 +2824,7 @@ var gn = (
|
|
|
2822
2824
|
var s, u = this.clonePosition(), o = this.parseIdentifierIfPossible().value, l = this.clonePosition();
|
|
2823
2825
|
switch (o) {
|
|
2824
2826
|
case "":
|
|
2825
|
-
return this.error(
|
|
2827
|
+
return this.error(d.EXPECT_ARGUMENT_TYPE, b(u, l));
|
|
2826
2828
|
case "number":
|
|
2827
2829
|
case "date":
|
|
2828
2830
|
case "time": {
|
|
@@ -2833,44 +2835,44 @@ var gn = (
|
|
|
2833
2835
|
var h = this.clonePosition(), f = this.parseSimpleArgStyleIfPossible();
|
|
2834
2836
|
if (f.err)
|
|
2835
2837
|
return f;
|
|
2836
|
-
var c =
|
|
2838
|
+
var c = gn(f.val);
|
|
2837
2839
|
if (c.length === 0)
|
|
2838
|
-
return this.error(
|
|
2839
|
-
var
|
|
2840
|
-
a = { style: c, styleLocation:
|
|
2840
|
+
return this.error(d.EXPECT_ARGUMENT_STYLE, b(this.clonePosition(), this.clonePosition()));
|
|
2841
|
+
var p = b(h, this.clonePosition());
|
|
2842
|
+
a = { style: c, styleLocation: p };
|
|
2841
2843
|
}
|
|
2842
2844
|
var m = this.tryParseArgumentClose(i);
|
|
2843
2845
|
if (m.err)
|
|
2844
2846
|
return m;
|
|
2845
2847
|
var g = b(i, this.clonePosition());
|
|
2846
|
-
if (a &&
|
|
2847
|
-
var v =
|
|
2848
|
+
if (a && nt(a?.style, "::", 0)) {
|
|
2849
|
+
var v = bn(a.style.slice(2));
|
|
2848
2850
|
if (o === "number") {
|
|
2849
2851
|
var f = this.parseNumberSkeletonFromString(v, a.styleLocation);
|
|
2850
2852
|
return f.err ? f : {
|
|
2851
|
-
val: { type:
|
|
2853
|
+
val: { type: y.number, value: n, location: g, style: f.val },
|
|
2852
2854
|
err: null
|
|
2853
2855
|
};
|
|
2854
2856
|
} else {
|
|
2855
2857
|
if (v.length === 0)
|
|
2856
|
-
return this.error(
|
|
2857
|
-
var
|
|
2858
|
-
this.locale && (
|
|
2858
|
+
return this.error(d.EXPECT_DATE_TIME_SKELETON, g);
|
|
2859
|
+
var N = v;
|
|
2860
|
+
this.locale && (N = rn(v, this.locale));
|
|
2859
2861
|
var c = {
|
|
2860
|
-
type:
|
|
2861
|
-
pattern:
|
|
2862
|
+
type: V.dateTime,
|
|
2863
|
+
pattern: N,
|
|
2862
2864
|
location: a.styleLocation,
|
|
2863
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
2864
|
-
},
|
|
2865
|
+
parsedOptions: this.shouldParseSkeletons ? Qr(N) : {}
|
|
2866
|
+
}, O = o === "date" ? y.date : y.time;
|
|
2865
2867
|
return {
|
|
2866
|
-
val: { type:
|
|
2868
|
+
val: { type: O, value: n, location: g, style: c },
|
|
2867
2869
|
err: null
|
|
2868
2870
|
};
|
|
2869
2871
|
}
|
|
2870
2872
|
}
|
|
2871
2873
|
return {
|
|
2872
2874
|
val: {
|
|
2873
|
-
type: o === "number" ?
|
|
2875
|
+
type: o === "number" ? y.number : o === "date" ? y.date : y.time,
|
|
2874
2876
|
value: n,
|
|
2875
2877
|
location: g,
|
|
2876
2878
|
style: (s = a?.style) !== null && s !== void 0 ? s : null
|
|
@@ -2883,50 +2885,50 @@ var gn = (
|
|
|
2883
2885
|
case "select": {
|
|
2884
2886
|
var H = this.clonePosition();
|
|
2885
2887
|
if (this.bumpSpace(), !this.bumpIf(","))
|
|
2886
|
-
return this.error(
|
|
2888
|
+
return this.error(d.EXPECT_SELECT_ARGUMENT_OPTIONS, b(H, me({}, H)));
|
|
2887
2889
|
this.bumpSpace();
|
|
2888
|
-
var
|
|
2889
|
-
if (o !== "select" &&
|
|
2890
|
+
var I = this.parseIdentifierIfPossible(), w = 0;
|
|
2891
|
+
if (o !== "select" && I.value === "offset") {
|
|
2890
2892
|
if (!this.bumpIf(":"))
|
|
2891
|
-
return this.error(
|
|
2893
|
+
return this.error(d.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, b(this.clonePosition(), this.clonePosition()));
|
|
2892
2894
|
this.bumpSpace();
|
|
2893
|
-
var f = this.tryParseDecimalInteger(
|
|
2895
|
+
var f = this.tryParseDecimalInteger(d.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, d.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);
|
|
2894
2896
|
if (f.err)
|
|
2895
2897
|
return f;
|
|
2896
|
-
this.bumpSpace(),
|
|
2898
|
+
this.bumpSpace(), I = this.parseIdentifierIfPossible(), w = f.val;
|
|
2897
2899
|
}
|
|
2898
|
-
var
|
|
2899
|
-
if (
|
|
2900
|
-
return
|
|
2900
|
+
var R = this.tryParsePluralOrSelectOptions(t, o, r, I);
|
|
2901
|
+
if (R.err)
|
|
2902
|
+
return R;
|
|
2901
2903
|
var m = this.tryParseArgumentClose(i);
|
|
2902
2904
|
if (m.err)
|
|
2903
2905
|
return m;
|
|
2904
|
-
var
|
|
2906
|
+
var se = b(i, this.clonePosition());
|
|
2905
2907
|
return o === "select" ? {
|
|
2906
2908
|
val: {
|
|
2907
|
-
type:
|
|
2909
|
+
type: y.select,
|
|
2908
2910
|
value: n,
|
|
2909
|
-
options:
|
|
2910
|
-
location:
|
|
2911
|
+
options: it(R.val),
|
|
2912
|
+
location: se
|
|
2911
2913
|
},
|
|
2912
2914
|
err: null
|
|
2913
2915
|
} : {
|
|
2914
2916
|
val: {
|
|
2915
|
-
type:
|
|
2917
|
+
type: y.plural,
|
|
2916
2918
|
value: n,
|
|
2917
|
-
options:
|
|
2918
|
-
offset:
|
|
2919
|
+
options: it(R.val),
|
|
2920
|
+
offset: w,
|
|
2919
2921
|
pluralType: o === "plural" ? "cardinal" : "ordinal",
|
|
2920
|
-
location:
|
|
2922
|
+
location: se
|
|
2921
2923
|
},
|
|
2922
2924
|
err: null
|
|
2923
2925
|
};
|
|
2924
2926
|
}
|
|
2925
2927
|
default:
|
|
2926
|
-
return this.error(
|
|
2928
|
+
return this.error(d.INVALID_ARGUMENT_TYPE, b(u, l));
|
|
2927
2929
|
}
|
|
2928
2930
|
}, e.prototype.tryParseArgumentClose = function(t) {
|
|
2929
|
-
return this.isEOF() || this.char() !== 125 ? this.error(
|
|
2931
|
+
return this.isEOF() || this.char() !== 125 ? this.error(d.EXPECT_ARGUMENT_CLOSING_BRACE, b(t, this.clonePosition())) : (this.bump(), { val: !0, err: null });
|
|
2930
2932
|
}, e.prototype.parseSimpleArgStyleIfPossible = function() {
|
|
2931
2933
|
for (var t = 0, r = this.clonePosition(); !this.isEOF(); ) {
|
|
2932
2934
|
var n = this.char();
|
|
@@ -2935,7 +2937,7 @@ var gn = (
|
|
|
2935
2937
|
this.bump();
|
|
2936
2938
|
var i = this.clonePosition();
|
|
2937
2939
|
if (!this.bumpUntil("'"))
|
|
2938
|
-
return this.error(
|
|
2940
|
+
return this.error(d.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE, b(i, this.clonePosition()));
|
|
2939
2941
|
this.bump();
|
|
2940
2942
|
break;
|
|
2941
2943
|
}
|
|
@@ -2965,16 +2967,16 @@ var gn = (
|
|
|
2965
2967
|
}, e.prototype.parseNumberSkeletonFromString = function(t, r) {
|
|
2966
2968
|
var n = [];
|
|
2967
2969
|
try {
|
|
2968
|
-
n =
|
|
2970
|
+
n = qr(t);
|
|
2969
2971
|
} catch {
|
|
2970
|
-
return this.error(
|
|
2972
|
+
return this.error(d.INVALID_NUMBER_SKELETON, r);
|
|
2971
2973
|
}
|
|
2972
2974
|
return {
|
|
2973
2975
|
val: {
|
|
2974
|
-
type:
|
|
2976
|
+
type: V.number,
|
|
2975
2977
|
tokens: n,
|
|
2976
2978
|
location: r,
|
|
2977
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
2979
|
+
parsedOptions: this.shouldParseSkeletons ? tn(n) : {}
|
|
2978
2980
|
},
|
|
2979
2981
|
err: null
|
|
2980
2982
|
};
|
|
@@ -2983,7 +2985,7 @@ var gn = (
|
|
|
2983
2985
|
if (a.length === 0) {
|
|
2984
2986
|
var f = this.clonePosition();
|
|
2985
2987
|
if (r !== "select" && this.bumpIf("=")) {
|
|
2986
|
-
var c = this.tryParseDecimalInteger(
|
|
2988
|
+
var c = this.tryParseDecimalInteger(d.EXPECT_PLURAL_ARGUMENT_SELECTOR, d.INVALID_PLURAL_ARGUMENT_SELECTOR);
|
|
2987
2989
|
if (c.err)
|
|
2988
2990
|
return c;
|
|
2989
2991
|
h = b(f, this.clonePosition()), a = this.message.slice(f.offset, this.offset());
|
|
@@ -2991,26 +2993,26 @@ var gn = (
|
|
|
2991
2993
|
break;
|
|
2992
2994
|
}
|
|
2993
2995
|
if (l.has(a))
|
|
2994
|
-
return this.error(r === "select" ?
|
|
2996
|
+
return this.error(r === "select" ? d.DUPLICATE_SELECT_ARGUMENT_SELECTOR : d.DUPLICATE_PLURAL_ARGUMENT_SELECTOR, h);
|
|
2995
2997
|
a === "other" && (u = !0), this.bumpSpace();
|
|
2996
|
-
var
|
|
2998
|
+
var p = this.clonePosition();
|
|
2997
2999
|
if (!this.bumpIf("{"))
|
|
2998
|
-
return this.error(r === "select" ?
|
|
3000
|
+
return this.error(r === "select" ? d.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT : d.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT, b(this.clonePosition(), this.clonePosition()));
|
|
2999
3001
|
var m = this.parseMessage(t + 1, r, n);
|
|
3000
3002
|
if (m.err)
|
|
3001
3003
|
return m;
|
|
3002
|
-
var g = this.tryParseArgumentClose(
|
|
3004
|
+
var g = this.tryParseArgumentClose(p);
|
|
3003
3005
|
if (g.err)
|
|
3004
3006
|
return g;
|
|
3005
3007
|
o.push([
|
|
3006
3008
|
a,
|
|
3007
3009
|
{
|
|
3008
3010
|
value: m.val,
|
|
3009
|
-
location: b(
|
|
3011
|
+
location: b(p, this.clonePosition())
|
|
3010
3012
|
}
|
|
3011
3013
|
]), l.add(a), this.bumpSpace(), s = this.parseIdentifierIfPossible(), a = s.value, h = s.location;
|
|
3012
3014
|
}
|
|
3013
|
-
return o.length === 0 ? this.error(r === "select" ?
|
|
3015
|
+
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 && !u ? this.error(d.MISSING_OTHER_CLAUSE, b(this.clonePosition(), this.clonePosition())) : { val: o, err: null };
|
|
3014
3016
|
}, e.prototype.tryParseDecimalInteger = function(t, r) {
|
|
3015
3017
|
var n = 1, i = this.clonePosition();
|
|
3016
3018
|
this.bumpIf("+") || this.bumpIf("-") && (n = -1);
|
|
@@ -3022,7 +3024,7 @@ var gn = (
|
|
|
3022
3024
|
break;
|
|
3023
3025
|
}
|
|
3024
3026
|
var l = b(i, this.clonePosition());
|
|
3025
|
-
return s ? (u *= n,
|
|
3027
|
+
return s ? (u *= n, pn(u) ? { val: u, err: null } : this.error(r, l)) : this.error(t, l);
|
|
3026
3028
|
}, e.prototype.offset = function() {
|
|
3027
3029
|
return this.position.offset;
|
|
3028
3030
|
}, e.prototype.isEOF = function() {
|
|
@@ -3037,7 +3039,7 @@ var gn = (
|
|
|
3037
3039
|
var t = this.position.offset;
|
|
3038
3040
|
if (t >= this.message.length)
|
|
3039
3041
|
throw Error("out of bound");
|
|
3040
|
-
var r =
|
|
3042
|
+
var r = Gt(this.message, t);
|
|
3041
3043
|
if (r === void 0)
|
|
3042
3044
|
throw Error("Offset ".concat(t, " is at invalid UTF-16 code unit boundary"));
|
|
3043
3045
|
return r;
|
|
@@ -3056,7 +3058,7 @@ var gn = (
|
|
|
3056
3058
|
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);
|
|
3057
3059
|
}
|
|
3058
3060
|
}, e.prototype.bumpIf = function(t) {
|
|
3059
|
-
if (
|
|
3061
|
+
if (nt(this.message, t, this.offset())) {
|
|
3060
3062
|
for (var r = 0; r < t.length; r++)
|
|
3061
3063
|
this.bump();
|
|
3062
3064
|
return !0;
|
|
@@ -3078,7 +3080,7 @@ var gn = (
|
|
|
3078
3080
|
break;
|
|
3079
3081
|
}
|
|
3080
3082
|
}, e.prototype.bumpSpace = function() {
|
|
3081
|
-
for (; !this.isEOF() &&
|
|
3083
|
+
for (; !this.isEOF() && jt(this.char()); )
|
|
3082
3084
|
this.bump();
|
|
3083
3085
|
}, e.prototype.peek = function() {
|
|
3084
3086
|
if (this.isEOF())
|
|
@@ -3088,47 +3090,47 @@ var gn = (
|
|
|
3088
3090
|
}, e;
|
|
3089
3091
|
}()
|
|
3090
3092
|
);
|
|
3091
|
-
function
|
|
3093
|
+
function Fe(e) {
|
|
3092
3094
|
return e >= 97 && e <= 122 || e >= 65 && e <= 90;
|
|
3093
3095
|
}
|
|
3094
|
-
function _n(e) {
|
|
3095
|
-
return De(e) || e === 47;
|
|
3096
|
-
}
|
|
3097
3096
|
function yn(e) {
|
|
3097
|
+
return Fe(e) || e === 47;
|
|
3098
|
+
}
|
|
3099
|
+
function En(e) {
|
|
3098
3100
|
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;
|
|
3099
3101
|
}
|
|
3100
|
-
function
|
|
3102
|
+
function jt(e) {
|
|
3101
3103
|
return e >= 9 && e <= 13 || e === 32 || e === 133 || e >= 8206 && e <= 8207 || e === 8232 || e === 8233;
|
|
3102
3104
|
}
|
|
3103
3105
|
function xn(e) {
|
|
3104
3106
|
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;
|
|
3105
3107
|
}
|
|
3106
|
-
function
|
|
3108
|
+
function je(e) {
|
|
3107
3109
|
e.forEach(function(t) {
|
|
3108
|
-
if (delete t.location,
|
|
3110
|
+
if (delete t.location, Lt(t) || Nt(t))
|
|
3109
3111
|
for (var r in t.options)
|
|
3110
|
-
delete t.options[r].location,
|
|
3112
|
+
delete t.options[r].location, je(t.options[r].value);
|
|
3111
3113
|
else
|
|
3112
|
-
|
|
3114
|
+
Ot(t) && Mt(t.style) || (Ct(t) || Pt(t)) && Re(t.style) ? delete t.style.location : It(t) && je(t.children);
|
|
3113
3115
|
});
|
|
3114
3116
|
}
|
|
3115
|
-
function
|
|
3116
|
-
t === void 0 && (t = {}), t =
|
|
3117
|
-
var r = new
|
|
3117
|
+
function vn(e, t) {
|
|
3118
|
+
t === void 0 && (t = {}), t = me({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
|
|
3119
|
+
var r = new _n(e, t).parse();
|
|
3118
3120
|
if (r.err) {
|
|
3119
|
-
var n = SyntaxError(
|
|
3121
|
+
var n = SyntaxError(d[r.err.kind]);
|
|
3120
3122
|
throw n.location = r.err.location, n.originalMessage = r.err.message, n;
|
|
3121
3123
|
}
|
|
3122
|
-
return t?.captureLocation ||
|
|
3124
|
+
return t?.captureLocation || je(r.val), r.val;
|
|
3123
3125
|
}
|
|
3124
|
-
var
|
|
3126
|
+
var X;
|
|
3125
3127
|
(function(e) {
|
|
3126
3128
|
e.MISSING_VALUE = "MISSING_VALUE", e.INVALID_VALUE = "INVALID_VALUE", e.MISSING_INTL_API = "MISSING_INTL_API";
|
|
3127
|
-
})(
|
|
3128
|
-
var
|
|
3129
|
+
})(X || (X = {}));
|
|
3130
|
+
var ye = (
|
|
3129
3131
|
/** @class */
|
|
3130
3132
|
function(e) {
|
|
3131
|
-
|
|
3133
|
+
_e(t, e);
|
|
3132
3134
|
function t(r, n, i) {
|
|
3133
3135
|
var s = e.call(this, r) || this;
|
|
3134
3136
|
return s.code = n, s.originalMessage = i, s;
|
|
@@ -3137,155 +3139,155 @@ var ge = (
|
|
|
3137
3139
|
return "[formatjs Error: ".concat(this.code, "] ").concat(this.message);
|
|
3138
3140
|
}, t;
|
|
3139
3141
|
}(Error)
|
|
3140
|
-
),
|
|
3142
|
+
), ot = (
|
|
3141
3143
|
/** @class */
|
|
3142
3144
|
function(e) {
|
|
3143
|
-
|
|
3145
|
+
_e(t, e);
|
|
3144
3146
|
function t(r, n, i, s) {
|
|
3145
|
-
return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'),
|
|
3147
|
+
return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'), X.INVALID_VALUE, s) || this;
|
|
3146
3148
|
}
|
|
3147
3149
|
return t;
|
|
3148
|
-
}(
|
|
3149
|
-
),
|
|
3150
|
+
}(ye)
|
|
3151
|
+
), Hn = (
|
|
3150
3152
|
/** @class */
|
|
3151
3153
|
function(e) {
|
|
3152
|
-
|
|
3154
|
+
_e(t, e);
|
|
3153
3155
|
function t(r, n, i) {
|
|
3154
|
-
return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n),
|
|
3156
|
+
return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n), X.INVALID_VALUE, i) || this;
|
|
3155
3157
|
}
|
|
3156
3158
|
return t;
|
|
3157
|
-
}(
|
|
3158
|
-
),
|
|
3159
|
+
}(ye)
|
|
3160
|
+
), Bn = (
|
|
3159
3161
|
/** @class */
|
|
3160
3162
|
function(e) {
|
|
3161
|
-
|
|
3163
|
+
_e(t, e);
|
|
3162
3164
|
function t(r, n) {
|
|
3163
|
-
return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'),
|
|
3165
|
+
return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'), X.MISSING_VALUE, n) || this;
|
|
3164
3166
|
}
|
|
3165
3167
|
return t;
|
|
3166
|
-
}(
|
|
3167
|
-
),
|
|
3168
|
+
}(ye)
|
|
3169
|
+
), x;
|
|
3168
3170
|
(function(e) {
|
|
3169
3171
|
e[e.literal = 0] = "literal", e[e.object = 1] = "object";
|
|
3170
|
-
})(
|
|
3171
|
-
function
|
|
3172
|
+
})(x || (x = {}));
|
|
3173
|
+
function Tn(e) {
|
|
3172
3174
|
return e.length < 2 ? e : e.reduce(function(t, r) {
|
|
3173
3175
|
var n = t[t.length - 1];
|
|
3174
|
-
return !n || n.type !==
|
|
3176
|
+
return !n || n.type !== x.literal || r.type !== x.literal ? t.push(r) : n.value += r.value, t;
|
|
3175
3177
|
}, []);
|
|
3176
3178
|
}
|
|
3177
|
-
function
|
|
3179
|
+
function wn(e) {
|
|
3178
3180
|
return typeof e == "function";
|
|
3179
3181
|
}
|
|
3180
|
-
function
|
|
3181
|
-
if (e.length === 1 &&
|
|
3182
|
+
function le(e, t, r, n, i, s, u) {
|
|
3183
|
+
if (e.length === 1 && Ke(e[0]))
|
|
3182
3184
|
return [
|
|
3183
3185
|
{
|
|
3184
|
-
type:
|
|
3186
|
+
type: x.literal,
|
|
3185
3187
|
value: e[0].value
|
|
3186
3188
|
}
|
|
3187
3189
|
];
|
|
3188
3190
|
for (var o = [], l = 0, a = e; l < a.length; l++) {
|
|
3189
3191
|
var h = a[l];
|
|
3190
|
-
if (
|
|
3192
|
+
if (Ke(h)) {
|
|
3191
3193
|
o.push({
|
|
3192
|
-
type:
|
|
3194
|
+
type: x.literal,
|
|
3193
3195
|
value: h.value
|
|
3194
3196
|
});
|
|
3195
3197
|
continue;
|
|
3196
3198
|
}
|
|
3197
|
-
if (
|
|
3199
|
+
if (zr(h)) {
|
|
3198
3200
|
typeof s == "number" && o.push({
|
|
3199
|
-
type:
|
|
3201
|
+
type: x.literal,
|
|
3200
3202
|
value: r.getNumberFormat(t).format(s)
|
|
3201
3203
|
});
|
|
3202
3204
|
continue;
|
|
3203
3205
|
}
|
|
3204
3206
|
var f = h.value;
|
|
3205
3207
|
if (!(i && f in i))
|
|
3206
|
-
throw new
|
|
3208
|
+
throw new Bn(f, u);
|
|
3207
3209
|
var c = i[f];
|
|
3208
|
-
if (
|
|
3210
|
+
if (Wr(h)) {
|
|
3209
3211
|
(!c || typeof c == "string" || typeof c == "number") && (c = typeof c == "string" || typeof c == "number" ? String(c) : ""), o.push({
|
|
3210
|
-
type: typeof c == "string" ?
|
|
3212
|
+
type: typeof c == "string" ? x.literal : x.object,
|
|
3211
3213
|
value: c
|
|
3212
3214
|
});
|
|
3213
3215
|
continue;
|
|
3214
3216
|
}
|
|
3215
3217
|
if (Ct(h)) {
|
|
3216
|
-
var
|
|
3218
|
+
var p = typeof h.style == "string" ? n.date[h.style] : Re(h.style) ? h.style.parsedOptions : void 0;
|
|
3217
3219
|
o.push({
|
|
3218
|
-
type:
|
|
3219
|
-
value: r.getDateTimeFormat(t,
|
|
3220
|
+
type: x.literal,
|
|
3221
|
+
value: r.getDateTimeFormat(t, p).format(c)
|
|
3220
3222
|
});
|
|
3221
3223
|
continue;
|
|
3222
3224
|
}
|
|
3223
|
-
if (
|
|
3224
|
-
var
|
|
3225
|
+
if (Pt(h)) {
|
|
3226
|
+
var p = typeof h.style == "string" ? n.time[h.style] : Re(h.style) ? h.style.parsedOptions : n.time.medium;
|
|
3225
3227
|
o.push({
|
|
3226
|
-
type:
|
|
3227
|
-
value: r.getDateTimeFormat(t,
|
|
3228
|
+
type: x.literal,
|
|
3229
|
+
value: r.getDateTimeFormat(t, p).format(c)
|
|
3228
3230
|
});
|
|
3229
3231
|
continue;
|
|
3230
3232
|
}
|
|
3231
|
-
if (
|
|
3232
|
-
var
|
|
3233
|
-
|
|
3234
|
-
type:
|
|
3235
|
-
value: r.getNumberFormat(t,
|
|
3233
|
+
if (Ot(h)) {
|
|
3234
|
+
var p = typeof h.style == "string" ? n.number[h.style] : Mt(h.style) ? h.style.parsedOptions : void 0;
|
|
3235
|
+
p && p.scale && (c = c * (p.scale || 1)), o.push({
|
|
3236
|
+
type: x.literal,
|
|
3237
|
+
value: r.getNumberFormat(t, p).format(c)
|
|
3236
3238
|
});
|
|
3237
3239
|
continue;
|
|
3238
3240
|
}
|
|
3239
|
-
if (
|
|
3241
|
+
if (It(h)) {
|
|
3240
3242
|
var m = h.children, g = h.value, v = i[g];
|
|
3241
|
-
if (!
|
|
3242
|
-
throw new
|
|
3243
|
-
var
|
|
3244
|
-
return
|
|
3243
|
+
if (!wn(v))
|
|
3244
|
+
throw new Hn(g, "function", u);
|
|
3245
|
+
var N = le(m, t, r, n, i, s), O = v(N.map(function(w) {
|
|
3246
|
+
return w.value;
|
|
3245
3247
|
}));
|
|
3246
|
-
Array.isArray(
|
|
3248
|
+
Array.isArray(O) || (O = [O]), o.push.apply(o, O.map(function(w) {
|
|
3247
3249
|
return {
|
|
3248
|
-
type: typeof
|
|
3249
|
-
value:
|
|
3250
|
+
type: typeof w == "string" ? x.literal : x.object,
|
|
3251
|
+
value: w
|
|
3250
3252
|
};
|
|
3251
3253
|
}));
|
|
3252
3254
|
}
|
|
3253
|
-
if (
|
|
3255
|
+
if (Lt(h)) {
|
|
3254
3256
|
var H = h.options[c] || h.options.other;
|
|
3255
3257
|
if (!H)
|
|
3256
|
-
throw new
|
|
3257
|
-
o.push.apply(o,
|
|
3258
|
+
throw new ot(h.value, c, Object.keys(h.options), u);
|
|
3259
|
+
o.push.apply(o, le(H.value, t, r, n, i));
|
|
3258
3260
|
continue;
|
|
3259
3261
|
}
|
|
3260
|
-
if (
|
|
3262
|
+
if (Nt(h)) {
|
|
3261
3263
|
var H = h.options["=".concat(c)];
|
|
3262
3264
|
if (!H) {
|
|
3263
3265
|
if (!Intl.PluralRules)
|
|
3264
|
-
throw new
|
|
3266
|
+
throw new ye(`Intl.PluralRules is not available in this environment.
|
|
3265
3267
|
Try polyfilling it using "@formatjs/intl-pluralrules"
|
|
3266
|
-
`,
|
|
3267
|
-
var
|
|
3268
|
-
H = h.options[
|
|
3268
|
+
`, X.MISSING_INTL_API, u);
|
|
3269
|
+
var I = r.getPluralRules(t, { type: h.pluralType }).select(c - (h.offset || 0));
|
|
3270
|
+
H = h.options[I] || h.options.other;
|
|
3269
3271
|
}
|
|
3270
3272
|
if (!H)
|
|
3271
|
-
throw new
|
|
3272
|
-
o.push.apply(o,
|
|
3273
|
+
throw new ot(h.value, c, Object.keys(h.options), u);
|
|
3274
|
+
o.push.apply(o, le(H.value, t, r, n, i, c - (h.offset || 0)));
|
|
3273
3275
|
continue;
|
|
3274
3276
|
}
|
|
3275
3277
|
}
|
|
3276
|
-
return
|
|
3278
|
+
return Tn(o);
|
|
3277
3279
|
}
|
|
3278
|
-
function
|
|
3279
|
-
return t ?
|
|
3280
|
-
return r[n] =
|
|
3280
|
+
function Sn(e, t) {
|
|
3281
|
+
return t ? T(T(T({}, e || {}), t || {}), Object.keys(e).reduce(function(r, n) {
|
|
3282
|
+
return r[n] = T(T({}, e[n]), t[n] || {}), r;
|
|
3281
3283
|
}, {})) : e;
|
|
3282
3284
|
}
|
|
3283
|
-
function
|
|
3285
|
+
function An(e, t) {
|
|
3284
3286
|
return t ? Object.keys(e).reduce(function(r, n) {
|
|
3285
|
-
return r[n] =
|
|
3286
|
-
},
|
|
3287
|
+
return r[n] = Sn(e[n], t[n]), r;
|
|
3288
|
+
}, T({}, e)) : e;
|
|
3287
3289
|
}
|
|
3288
|
-
function
|
|
3290
|
+
function Pe(e) {
|
|
3289
3291
|
return {
|
|
3290
3292
|
create: function() {
|
|
3291
3293
|
return {
|
|
@@ -3299,39 +3301,39 @@ function Ce(e) {
|
|
|
3299
3301
|
}
|
|
3300
3302
|
};
|
|
3301
3303
|
}
|
|
3302
|
-
function
|
|
3304
|
+
function On(e) {
|
|
3303
3305
|
return e === void 0 && (e = {
|
|
3304
3306
|
number: {},
|
|
3305
3307
|
dateTime: {},
|
|
3306
3308
|
pluralRules: {}
|
|
3307
3309
|
}), {
|
|
3308
|
-
getNumberFormat:
|
|
3310
|
+
getNumberFormat: Ae(function() {
|
|
3309
3311
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3310
3312
|
r[n] = arguments[n];
|
|
3311
|
-
return new ((t = Intl.NumberFormat).bind.apply(t,
|
|
3313
|
+
return new ((t = Intl.NumberFormat).bind.apply(t, Se([void 0], r, !1)))();
|
|
3312
3314
|
}, {
|
|
3313
|
-
cache:
|
|
3314
|
-
strategy:
|
|
3315
|
+
cache: Pe(e.number),
|
|
3316
|
+
strategy: Oe.variadic
|
|
3315
3317
|
}),
|
|
3316
|
-
getDateTimeFormat:
|
|
3318
|
+
getDateTimeFormat: Ae(function() {
|
|
3317
3319
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3318
3320
|
r[n] = arguments[n];
|
|
3319
|
-
return new ((t = Intl.DateTimeFormat).bind.apply(t,
|
|
3321
|
+
return new ((t = Intl.DateTimeFormat).bind.apply(t, Se([void 0], r, !1)))();
|
|
3320
3322
|
}, {
|
|
3321
|
-
cache:
|
|
3322
|
-
strategy:
|
|
3323
|
+
cache: Pe(e.dateTime),
|
|
3324
|
+
strategy: Oe.variadic
|
|
3323
3325
|
}),
|
|
3324
|
-
getPluralRules:
|
|
3326
|
+
getPluralRules: Ae(function() {
|
|
3325
3327
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3326
3328
|
r[n] = arguments[n];
|
|
3327
|
-
return new ((t = Intl.PluralRules).bind.apply(t,
|
|
3329
|
+
return new ((t = Intl.PluralRules).bind.apply(t, Se([void 0], r, !1)))();
|
|
3328
3330
|
}, {
|
|
3329
|
-
cache:
|
|
3330
|
-
strategy:
|
|
3331
|
+
cache: Pe(e.pluralRules),
|
|
3332
|
+
strategy: Oe.variadic
|
|
3331
3333
|
})
|
|
3332
3334
|
};
|
|
3333
3335
|
}
|
|
3334
|
-
var
|
|
3336
|
+
var kt = (
|
|
3335
3337
|
/** @class */
|
|
3336
3338
|
function() {
|
|
3337
3339
|
function e(t, r, n, i) {
|
|
@@ -3346,11 +3348,11 @@ var jt = (
|
|
|
3346
3348
|
if (a.length === 1)
|
|
3347
3349
|
return a[0].value;
|
|
3348
3350
|
var h = a.reduce(function(f, c) {
|
|
3349
|
-
return !f.length || c.type !==
|
|
3351
|
+
return !f.length || c.type !== x.literal || typeof f[f.length - 1] != "string" ? f.push(c.value) : f[f.length - 1] += c.value, f;
|
|
3350
3352
|
}, []);
|
|
3351
3353
|
return h.length <= 1 ? h[0] || "" : h;
|
|
3352
3354
|
}, this.formatToParts = function(l) {
|
|
3353
|
-
return
|
|
3355
|
+
return le(s.ast, s.locales, s.formatters, s.formats, l, void 0, s.message);
|
|
3354
3356
|
}, this.resolvedOptions = function() {
|
|
3355
3357
|
var l;
|
|
3356
3358
|
return {
|
|
@@ -3363,13 +3365,13 @@ var jt = (
|
|
|
3363
3365
|
throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");
|
|
3364
3366
|
var u = i || {};
|
|
3365
3367
|
u.formatters;
|
|
3366
|
-
var o =
|
|
3367
|
-
this.ast = e.__parse(t,
|
|
3368
|
+
var o = Ur(u, ["formatters"]);
|
|
3369
|
+
this.ast = e.__parse(t, T(T({}, o), { locale: this.resolvedLocale }));
|
|
3368
3370
|
} else
|
|
3369
3371
|
this.ast = t;
|
|
3370
3372
|
if (!Array.isArray(this.ast))
|
|
3371
3373
|
throw new TypeError("A message must be provided as a String or AST.");
|
|
3372
|
-
this.formats =
|
|
3374
|
+
this.formats = An(e.formats, n), this.formatters = i && i.formatters || On(this.formatterCache);
|
|
3373
3375
|
}
|
|
3374
3376
|
return Object.defineProperty(e, "defaultLocale", {
|
|
3375
3377
|
get: function() {
|
|
@@ -3382,7 +3384,7 @@ var jt = (
|
|
|
3382
3384
|
var r = Intl.NumberFormat.supportedLocalesOf(t);
|
|
3383
3385
|
return r.length > 0 ? new Intl.Locale(r[0]) : new Intl.Locale(typeof t == "string" ? t : t[0]);
|
|
3384
3386
|
}
|
|
3385
|
-
}, e.__parse =
|
|
3387
|
+
}, e.__parse = vn, e.formats = {
|
|
3386
3388
|
number: {
|
|
3387
3389
|
integer: {
|
|
3388
3390
|
maximumFractionDigits: 0
|
|
@@ -3464,101 +3466,101 @@ function Cn(e, t) {
|
|
|
3464
3466
|
n = void 0;
|
|
3465
3467
|
return n;
|
|
3466
3468
|
}
|
|
3467
|
-
const C = {},
|
|
3469
|
+
const C = {}, Pn = (e, t, r) => r && (t in C || (C[t] = {}), e in C[t] || (C[t][e] = r), r), Vt = (e, t) => {
|
|
3468
3470
|
if (t == null)
|
|
3469
3471
|
return;
|
|
3470
3472
|
if (t in C && e in C[t])
|
|
3471
3473
|
return C[t][e];
|
|
3472
|
-
const r =
|
|
3474
|
+
const r = ie(t);
|
|
3473
3475
|
for (let n = 0; n < r.length; n++) {
|
|
3474
|
-
const i = r[n], s =
|
|
3476
|
+
const i = r[n], s = Nn(i, e);
|
|
3475
3477
|
if (s)
|
|
3476
|
-
return
|
|
3478
|
+
return Pn(e, t, s);
|
|
3477
3479
|
}
|
|
3478
3480
|
};
|
|
3479
|
-
let
|
|
3480
|
-
const
|
|
3481
|
-
function
|
|
3482
|
-
return
|
|
3481
|
+
let ze;
|
|
3482
|
+
const ne = ge({});
|
|
3483
|
+
function Ln(e) {
|
|
3484
|
+
return ze[e] || null;
|
|
3483
3485
|
}
|
|
3484
|
-
function
|
|
3485
|
-
return e in
|
|
3486
|
+
function Xt(e) {
|
|
3487
|
+
return e in ze;
|
|
3486
3488
|
}
|
|
3487
|
-
function
|
|
3488
|
-
if (!
|
|
3489
|
+
function Nn(e, t) {
|
|
3490
|
+
if (!Xt(e))
|
|
3489
3491
|
return null;
|
|
3490
|
-
const r =
|
|
3492
|
+
const r = Ln(e);
|
|
3491
3493
|
return Cn(r, t);
|
|
3492
3494
|
}
|
|
3493
|
-
function
|
|
3495
|
+
function In(e) {
|
|
3494
3496
|
if (e == null)
|
|
3495
3497
|
return;
|
|
3496
|
-
const t =
|
|
3498
|
+
const t = ie(e);
|
|
3497
3499
|
for (let r = 0; r < t.length; r++) {
|
|
3498
3500
|
const n = t[r];
|
|
3499
|
-
if (
|
|
3501
|
+
if (Xt(n))
|
|
3500
3502
|
return n;
|
|
3501
3503
|
}
|
|
3502
3504
|
}
|
|
3503
|
-
function
|
|
3504
|
-
delete C[e],
|
|
3505
|
+
function Wt(e, ...t) {
|
|
3506
|
+
delete C[e], ne.update((r) => (r[e] = Rr.all([r[e] || {}, ...t]), r));
|
|
3505
3507
|
}
|
|
3506
|
-
|
|
3507
|
-
[
|
|
3508
|
+
Z(
|
|
3509
|
+
[ne],
|
|
3508
3510
|
([e]) => Object.keys(e)
|
|
3509
3511
|
);
|
|
3510
|
-
|
|
3511
|
-
const
|
|
3512
|
-
function
|
|
3513
|
-
|
|
3512
|
+
ne.subscribe((e) => ze = e);
|
|
3513
|
+
const fe = {};
|
|
3514
|
+
function Mn(e, t) {
|
|
3515
|
+
fe[e].delete(t), fe[e].size === 0 && delete fe[e];
|
|
3514
3516
|
}
|
|
3515
|
-
function
|
|
3516
|
-
return
|
|
3517
|
+
function zt(e) {
|
|
3518
|
+
return fe[e];
|
|
3517
3519
|
}
|
|
3518
|
-
function
|
|
3519
|
-
return
|
|
3520
|
-
const r =
|
|
3520
|
+
function $n(e) {
|
|
3521
|
+
return ie(e).map((t) => {
|
|
3522
|
+
const r = zt(t);
|
|
3521
3523
|
return [t, r ? [...r] : []];
|
|
3522
3524
|
}).filter(([, t]) => t.length > 0);
|
|
3523
3525
|
}
|
|
3524
|
-
function
|
|
3525
|
-
return e == null ? !1 :
|
|
3526
|
+
function pe(e) {
|
|
3527
|
+
return e == null ? !1 : ie(e).some(
|
|
3526
3528
|
(t) => {
|
|
3527
3529
|
var r;
|
|
3528
|
-
return (r =
|
|
3530
|
+
return (r = zt(t)) == null ? void 0 : r.size;
|
|
3529
3531
|
}
|
|
3530
3532
|
);
|
|
3531
3533
|
}
|
|
3532
|
-
function
|
|
3534
|
+
function Rn(e, t) {
|
|
3533
3535
|
return Promise.all(
|
|
3534
|
-
t.map((n) => (
|
|
3535
|
-
).then((n) =>
|
|
3536
|
-
}
|
|
3537
|
-
const
|
|
3538
|
-
function
|
|
3539
|
-
if (!
|
|
3540
|
-
return e in
|
|
3541
|
-
const t =
|
|
3542
|
-
return
|
|
3536
|
+
t.map((n) => (Mn(e, n), n().then((i) => i.default || i)))
|
|
3537
|
+
).then((n) => Wt(e, ...n));
|
|
3538
|
+
}
|
|
3539
|
+
const J = {};
|
|
3540
|
+
function Zt(e) {
|
|
3541
|
+
if (!pe(e))
|
|
3542
|
+
return e in J ? J[e] : Promise.resolve();
|
|
3543
|
+
const t = $n(e);
|
|
3544
|
+
return J[e] = Promise.all(
|
|
3543
3545
|
t.map(
|
|
3544
|
-
([r, n]) =>
|
|
3546
|
+
([r, n]) => Rn(r, n)
|
|
3545
3547
|
)
|
|
3546
3548
|
).then(() => {
|
|
3547
|
-
if (
|
|
3548
|
-
return
|
|
3549
|
-
delete
|
|
3550
|
-
}),
|
|
3549
|
+
if (pe(e))
|
|
3550
|
+
return Zt(e);
|
|
3551
|
+
delete J[e];
|
|
3552
|
+
}), J[e];
|
|
3551
3553
|
}
|
|
3552
|
-
var
|
|
3554
|
+
var at = Object.getOwnPropertySymbols, Un = Object.prototype.hasOwnProperty, Dn = Object.prototype.propertyIsEnumerable, Gn = (e, t) => {
|
|
3553
3555
|
var r = {};
|
|
3554
3556
|
for (var n in e)
|
|
3555
|
-
|
|
3556
|
-
if (e != null &&
|
|
3557
|
-
for (var n of
|
|
3558
|
-
t.indexOf(n) < 0 &&
|
|
3557
|
+
Un.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
3558
|
+
if (e != null && at)
|
|
3559
|
+
for (var n of at(e))
|
|
3560
|
+
t.indexOf(n) < 0 && Dn.call(e, n) && (r[n] = e[n]);
|
|
3559
3561
|
return r;
|
|
3560
3562
|
};
|
|
3561
|
-
const
|
|
3563
|
+
const Fn = {
|
|
3562
3564
|
number: {
|
|
3563
3565
|
scientific: { notation: "scientific" },
|
|
3564
3566
|
engineering: { notation: "engineering" },
|
|
@@ -3588,174 +3590,174 @@ const Gn = {
|
|
|
3588
3590
|
}
|
|
3589
3591
|
}
|
|
3590
3592
|
};
|
|
3591
|
-
function
|
|
3593
|
+
function jn({ locale: e, id: t }) {
|
|
3592
3594
|
console.warn(
|
|
3593
|
-
`[svelte-i18n] The message "${t}" was not found in "${
|
|
3595
|
+
`[svelte-i18n] The message "${t}" was not found in "${ie(
|
|
3594
3596
|
e
|
|
3595
|
-
).join('", "')}".${
|
|
3597
|
+
).join('", "')}".${pe(L()) ? `
|
|
3596
3598
|
|
|
3597
3599
|
Note: there are at least one loader still registered to this locale that wasn't executed.` : ""}`
|
|
3598
3600
|
);
|
|
3599
3601
|
}
|
|
3600
|
-
const
|
|
3602
|
+
const kn = {
|
|
3601
3603
|
fallbackLocale: null,
|
|
3602
3604
|
loadingDelay: 200,
|
|
3603
|
-
formats:
|
|
3605
|
+
formats: Fn,
|
|
3604
3606
|
warnOnMissingMessages: !0,
|
|
3605
3607
|
handleMissingMessage: void 0,
|
|
3606
3608
|
ignoreTag: !0
|
|
3607
|
-
},
|
|
3608
|
-
function
|
|
3609
|
-
return
|
|
3609
|
+
}, q = kn;
|
|
3610
|
+
function W() {
|
|
3611
|
+
return q;
|
|
3610
3612
|
}
|
|
3611
|
-
function
|
|
3612
|
-
const t = e, { formats: r } = t, n =
|
|
3613
|
+
function Vn(e) {
|
|
3614
|
+
const t = e, { formats: r } = t, n = Gn(t, ["formats"]);
|
|
3613
3615
|
let i = e.fallbackLocale;
|
|
3614
3616
|
if (e.initialLocale)
|
|
3615
3617
|
try {
|
|
3616
|
-
|
|
3618
|
+
kt.resolveLocale(e.initialLocale) && (i = e.initialLocale);
|
|
3617
3619
|
} catch {
|
|
3618
3620
|
console.warn(
|
|
3619
3621
|
`[svelte-i18n] The initial locale "${e.initialLocale}" is not a valid locale.`
|
|
3620
3622
|
);
|
|
3621
3623
|
}
|
|
3622
|
-
return n.warnOnMissingMessages && (delete n.warnOnMissingMessages, n.handleMissingMessage == null ? n.handleMissingMessage =
|
|
3624
|
+
return n.warnOnMissingMessages && (delete n.warnOnMissingMessages, n.handleMissingMessage == null ? n.handleMissingMessage = jn : console.warn(
|
|
3623
3625
|
'[svelte-i18n] The "warnOnMissingMessages" option is deprecated. Please use the "handleMissingMessage" option instead.'
|
|
3624
|
-
)), Object.assign(
|
|
3625
|
-
}
|
|
3626
|
-
const
|
|
3627
|
-
var
|
|
3628
|
-
for (var r in t)
|
|
3629
|
-
|
|
3630
|
-
if (
|
|
3631
|
-
for (var r of
|
|
3632
|
-
|
|
3626
|
+
)), Object.assign(q, n, { initialLocale: i }), r && ("number" in r && Object.assign(q.formats.number, r.number), "date" in r && Object.assign(q.formats.date, r.date), "time" in r && Object.assign(q.formats.time, r.time)), $.set(i);
|
|
3627
|
+
}
|
|
3628
|
+
const Le = ge(!1);
|
|
3629
|
+
var Xn = Object.defineProperty, Wn = Object.defineProperties, zn = Object.getOwnPropertyDescriptors, ut = Object.getOwnPropertySymbols, Zn = Object.prototype.hasOwnProperty, Qn = Object.prototype.propertyIsEnumerable, ht = (e, t, r) => t in e ? Xn(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Jn = (e, t) => {
|
|
3630
|
+
for (var r in t || (t = {}))
|
|
3631
|
+
Zn.call(t, r) && ht(e, r, t[r]);
|
|
3632
|
+
if (ut)
|
|
3633
|
+
for (var r of ut(t))
|
|
3634
|
+
Qn.call(t, r) && ht(e, r, t[r]);
|
|
3633
3635
|
return e;
|
|
3634
|
-
},
|
|
3635
|
-
let
|
|
3636
|
-
const
|
|
3637
|
-
function
|
|
3636
|
+
}, qn = (e, t) => Wn(e, zn(t));
|
|
3637
|
+
let ke;
|
|
3638
|
+
const de = ge(null);
|
|
3639
|
+
function lt(e) {
|
|
3638
3640
|
return e.split("-").map((t, r, n) => n.slice(0, r + 1).join("-")).reverse();
|
|
3639
3641
|
}
|
|
3640
|
-
function
|
|
3641
|
-
const r =
|
|
3642
|
-
return t ? [.../* @__PURE__ */ new Set([...r, ...
|
|
3642
|
+
function ie(e, t = W().fallbackLocale) {
|
|
3643
|
+
const r = lt(e);
|
|
3644
|
+
return t ? [.../* @__PURE__ */ new Set([...r, ...lt(t)])] : r;
|
|
3643
3645
|
}
|
|
3644
|
-
function
|
|
3645
|
-
return
|
|
3646
|
+
function L() {
|
|
3647
|
+
return ke ?? void 0;
|
|
3646
3648
|
}
|
|
3647
|
-
|
|
3648
|
-
|
|
3649
|
+
de.subscribe((e) => {
|
|
3650
|
+
ke = e ?? void 0, typeof window < "u" && e != null && document.documentElement.setAttribute("lang", e);
|
|
3649
3651
|
});
|
|
3650
|
-
const
|
|
3651
|
-
if (e &&
|
|
3652
|
-
const { loadingDelay: t } =
|
|
3652
|
+
const Yn = (e) => {
|
|
3653
|
+
if (e && In(e) && pe(e)) {
|
|
3654
|
+
const { loadingDelay: t } = W();
|
|
3653
3655
|
let r;
|
|
3654
|
-
return typeof window < "u" &&
|
|
3655
|
-
() =>
|
|
3656
|
+
return typeof window < "u" && L() != null && t ? r = window.setTimeout(
|
|
3657
|
+
() => Le.set(!0),
|
|
3656
3658
|
t
|
|
3657
|
-
) :
|
|
3658
|
-
|
|
3659
|
+
) : Le.set(!0), Zt(e).then(() => {
|
|
3660
|
+
de.set(e);
|
|
3659
3661
|
}).finally(() => {
|
|
3660
|
-
clearTimeout(r),
|
|
3662
|
+
clearTimeout(r), Le.set(!1);
|
|
3661
3663
|
});
|
|
3662
3664
|
}
|
|
3663
|
-
return
|
|
3664
|
-
},
|
|
3665
|
-
set:
|
|
3666
|
-
}),
|
|
3665
|
+
return de.set(e);
|
|
3666
|
+
}, $ = qn(Jn({}, de), {
|
|
3667
|
+
set: Yn
|
|
3668
|
+
}), Ee = (e) => {
|
|
3667
3669
|
const t = /* @__PURE__ */ Object.create(null);
|
|
3668
3670
|
return (n) => {
|
|
3669
3671
|
const i = JSON.stringify(n);
|
|
3670
3672
|
return i in t ? t[i] : t[i] = e(n);
|
|
3671
3673
|
};
|
|
3672
3674
|
};
|
|
3673
|
-
var
|
|
3675
|
+
var Kn = Object.defineProperty, be = Object.getOwnPropertySymbols, Qt = Object.prototype.hasOwnProperty, Jt = Object.prototype.propertyIsEnumerable, ft = (e, t, r) => t in e ? Kn(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Ze = (e, t) => {
|
|
3674
3676
|
for (var r in t || (t = {}))
|
|
3675
|
-
|
|
3676
|
-
if (
|
|
3677
|
-
for (var r of
|
|
3678
|
-
|
|
3677
|
+
Qt.call(t, r) && ft(e, r, t[r]);
|
|
3678
|
+
if (be)
|
|
3679
|
+
for (var r of be(t))
|
|
3680
|
+
Jt.call(t, r) && ft(e, r, t[r]);
|
|
3679
3681
|
return e;
|
|
3680
|
-
},
|
|
3682
|
+
}, Q = (e, t) => {
|
|
3681
3683
|
var r = {};
|
|
3682
3684
|
for (var n in e)
|
|
3683
|
-
|
|
3684
|
-
if (e != null &&
|
|
3685
|
-
for (var n of
|
|
3686
|
-
t.indexOf(n) < 0 &&
|
|
3685
|
+
Qt.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
3686
|
+
if (e != null && be)
|
|
3687
|
+
for (var n of be(e))
|
|
3688
|
+
t.indexOf(n) < 0 && Jt.call(e, n) && (r[n] = e[n]);
|
|
3687
3689
|
return r;
|
|
3688
3690
|
};
|
|
3689
|
-
const
|
|
3690
|
-
const { formats: r } =
|
|
3691
|
+
const ee = (e, t) => {
|
|
3692
|
+
const { formats: r } = W();
|
|
3691
3693
|
if (e in r && t in r[e])
|
|
3692
3694
|
return r[e][t];
|
|
3693
3695
|
throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`);
|
|
3694
|
-
},
|
|
3696
|
+
}, ei = Ee(
|
|
3695
3697
|
(e) => {
|
|
3696
|
-
var t = e, { locale: r, format: n } = t, i =
|
|
3698
|
+
var t = e, { locale: r, format: n } = t, i = Q(t, ["locale", "format"]);
|
|
3697
3699
|
if (r == null)
|
|
3698
3700
|
throw new Error('[svelte-i18n] A "locale" must be set to format numbers');
|
|
3699
|
-
return n && (i =
|
|
3701
|
+
return n && (i = ee("number", n)), new Intl.NumberFormat(r, i);
|
|
3700
3702
|
}
|
|
3701
|
-
),
|
|
3703
|
+
), ti = Ee(
|
|
3702
3704
|
(e) => {
|
|
3703
|
-
var t = e, { locale: r, format: n } = t, i =
|
|
3705
|
+
var t = e, { locale: r, format: n } = t, i = Q(t, ["locale", "format"]);
|
|
3704
3706
|
if (r == null)
|
|
3705
3707
|
throw new Error('[svelte-i18n] A "locale" must be set to format dates');
|
|
3706
|
-
return n ? i =
|
|
3708
|
+
return n ? i = ee("date", n) : Object.keys(i).length === 0 && (i = ee("date", "short")), new Intl.DateTimeFormat(r, i);
|
|
3707
3709
|
}
|
|
3708
|
-
),
|
|
3710
|
+
), ri = Ee(
|
|
3709
3711
|
(e) => {
|
|
3710
|
-
var t = e, { locale: r, format: n } = t, i =
|
|
3712
|
+
var t = e, { locale: r, format: n } = t, i = Q(t, ["locale", "format"]);
|
|
3711
3713
|
if (r == null)
|
|
3712
3714
|
throw new Error(
|
|
3713
3715
|
'[svelte-i18n] A "locale" must be set to format time values'
|
|
3714
3716
|
);
|
|
3715
|
-
return n ? i =
|
|
3717
|
+
return n ? i = ee("time", n) : Object.keys(i).length === 0 && (i = ee("time", "short")), new Intl.DateTimeFormat(r, i);
|
|
3716
3718
|
}
|
|
3717
|
-
),
|
|
3719
|
+
), ni = (e = {}) => {
|
|
3718
3720
|
var t = e, {
|
|
3719
|
-
locale: r =
|
|
3720
|
-
} = t, n =
|
|
3721
|
+
locale: r = L()
|
|
3722
|
+
} = t, n = Q(t, [
|
|
3721
3723
|
"locale"
|
|
3722
3724
|
]);
|
|
3723
|
-
return
|
|
3724
|
-
},
|
|
3725
|
+
return ei(Ze({ locale: r }, n));
|
|
3726
|
+
}, ii = (e = {}) => {
|
|
3725
3727
|
var t = e, {
|
|
3726
|
-
locale: r =
|
|
3727
|
-
} = t, n =
|
|
3728
|
+
locale: r = L()
|
|
3729
|
+
} = t, n = Q(t, [
|
|
3728
3730
|
"locale"
|
|
3729
3731
|
]);
|
|
3730
|
-
return
|
|
3731
|
-
},
|
|
3732
|
+
return ti(Ze({ locale: r }, n));
|
|
3733
|
+
}, si = (e = {}) => {
|
|
3732
3734
|
var t = e, {
|
|
3733
|
-
locale: r =
|
|
3734
|
-
} = t, n =
|
|
3735
|
+
locale: r = L()
|
|
3736
|
+
} = t, n = Q(t, [
|
|
3735
3737
|
"locale"
|
|
3736
3738
|
]);
|
|
3737
|
-
return
|
|
3738
|
-
},
|
|
3739
|
+
return ri(Ze({ locale: r }, n));
|
|
3740
|
+
}, oi = Ee(
|
|
3739
3741
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
3740
|
-
(e, t =
|
|
3741
|
-
ignoreTag:
|
|
3742
|
+
(e, t = L()) => new kt(e, t, W().formats, {
|
|
3743
|
+
ignoreTag: W().ignoreTag
|
|
3742
3744
|
})
|
|
3743
|
-
),
|
|
3745
|
+
), ai = (e, t = {}) => {
|
|
3744
3746
|
var r, n, i, s;
|
|
3745
3747
|
let u = t;
|
|
3746
3748
|
typeof e == "object" && (u = e, e = u.id);
|
|
3747
3749
|
const {
|
|
3748
3750
|
values: o,
|
|
3749
|
-
locale: l =
|
|
3751
|
+
locale: l = L(),
|
|
3750
3752
|
default: a
|
|
3751
3753
|
} = u;
|
|
3752
3754
|
if (l == null)
|
|
3753
3755
|
throw new Error(
|
|
3754
3756
|
"[svelte-i18n] Cannot format a message without first setting the initial locale."
|
|
3755
3757
|
);
|
|
3756
|
-
let h =
|
|
3758
|
+
let h = Vt(e, l);
|
|
3757
3759
|
if (!h)
|
|
3758
|
-
h = (s = (i = (n = (r =
|
|
3760
|
+
h = (s = (i = (n = (r = W()).handleMissingMessage) == null ? void 0 : n.call(r, { locale: l, id: e, defaultValue: a })) != null ? i : a) != null ? s : e;
|
|
3759
3761
|
else if (typeof h != "string")
|
|
3760
3762
|
return console.warn(
|
|
3761
3763
|
`[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.`
|
|
@@ -3764,7 +3766,7 @@ const K = (e, t) => {
|
|
|
3764
3766
|
return h;
|
|
3765
3767
|
let f = h;
|
|
3766
3768
|
try {
|
|
3767
|
-
f =
|
|
3769
|
+
f = oi(h, l).format(o);
|
|
3768
3770
|
} catch (c) {
|
|
3769
3771
|
c instanceof Error && console.warn(
|
|
3770
3772
|
`[svelte-i18n] Message "${e}" has syntax error:`,
|
|
@@ -3772,20 +3774,20 @@ const K = (e, t) => {
|
|
|
3772
3774
|
);
|
|
3773
3775
|
}
|
|
3774
3776
|
return f;
|
|
3775
|
-
},
|
|
3776
|
-
|
|
3777
|
-
|
|
3778
|
-
|
|
3779
|
-
|
|
3780
|
-
function
|
|
3781
|
-
|
|
3782
|
-
}
|
|
3783
|
-
function
|
|
3784
|
-
|
|
3777
|
+
}, ui = (e, t) => si(t).format(e), hi = (e, t) => ii(t).format(e), li = (e, t) => ni(t).format(e), fi = (e, t = L()) => Vt(e, t), ci = Z([$, ne], () => ai);
|
|
3778
|
+
Z([$], () => ui);
|
|
3779
|
+
Z([$], () => hi);
|
|
3780
|
+
Z([$], () => li);
|
|
3781
|
+
Z([$, ne], () => fi);
|
|
3782
|
+
function ct(e, t) {
|
|
3783
|
+
Wt(e, t);
|
|
3784
|
+
}
|
|
3785
|
+
function mi(e) {
|
|
3786
|
+
Vn({
|
|
3785
3787
|
fallbackLocale: "en"
|
|
3786
|
-
}),
|
|
3788
|
+
}), $.set(e);
|
|
3787
3789
|
}
|
|
3788
|
-
const
|
|
3790
|
+
const mt = {
|
|
3789
3791
|
en: {
|
|
3790
3792
|
header: {
|
|
3791
3793
|
general: "Cashier",
|
|
@@ -3808,18 +3810,18 @@ const ct = {
|
|
|
3808
3810
|
}
|
|
3809
3811
|
}
|
|
3810
3812
|
};
|
|
3811
|
-
function
|
|
3812
|
-
|
|
3813
|
+
function pi(e) {
|
|
3814
|
+
nr(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}");
|
|
3813
3815
|
}
|
|
3814
|
-
const di = (e) => ({}),
|
|
3815
|
-
function
|
|
3816
|
+
const di = (e) => ({}), pt = (e) => ({}), bi = (e) => ({}), dt = (e) => ({}), gi = (e) => ({}), bt = (e) => ({});
|
|
3817
|
+
function gt(e) {
|
|
3816
3818
|
let t, r, n;
|
|
3817
3819
|
return {
|
|
3818
3820
|
c() {
|
|
3819
|
-
t =
|
|
3821
|
+
t = z("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");
|
|
3820
3822
|
},
|
|
3821
3823
|
m(i, s) {
|
|
3822
|
-
|
|
3824
|
+
M(i, t, s), r || (n = Bt(
|
|
3823
3825
|
t,
|
|
3824
3826
|
"click",
|
|
3825
3827
|
/*back*/
|
|
@@ -3828,32 +3830,32 @@ function bt(e) {
|
|
|
3828
3830
|
},
|
|
3829
3831
|
p: B,
|
|
3830
3832
|
d(i) {
|
|
3831
|
-
i &&
|
|
3833
|
+
i && P(t), r = !1, n();
|
|
3832
3834
|
}
|
|
3833
3835
|
};
|
|
3834
3836
|
}
|
|
3835
|
-
function
|
|
3837
|
+
function _i(e) {
|
|
3836
3838
|
let t, r = (
|
|
3837
3839
|
/*backButton*/
|
|
3838
|
-
e[1] &&
|
|
3840
|
+
e[1] && gt(e)
|
|
3839
3841
|
);
|
|
3840
3842
|
return {
|
|
3841
3843
|
c() {
|
|
3842
|
-
r && r.c(), t =
|
|
3844
|
+
r && r.c(), t = Ht();
|
|
3843
3845
|
},
|
|
3844
3846
|
m(n, i) {
|
|
3845
|
-
r && r.m(n, i),
|
|
3847
|
+
r && r.m(n, i), M(n, t, i);
|
|
3846
3848
|
},
|
|
3847
3849
|
p(n, i) {
|
|
3848
3850
|
/*backButton*/
|
|
3849
|
-
n[1] ? r ? r.p(n, i) : (r =
|
|
3851
|
+
n[1] ? r ? r.p(n, i) : (r = gt(n), r.c(), r.m(t.parentNode, t)) : r && (r.d(1), r = null);
|
|
3850
3852
|
},
|
|
3851
3853
|
d(n) {
|
|
3852
|
-
n &&
|
|
3854
|
+
n && P(t), r && r.d(n);
|
|
3853
3855
|
}
|
|
3854
3856
|
};
|
|
3855
3857
|
}
|
|
3856
|
-
function
|
|
3858
|
+
function yi(e) {
|
|
3857
3859
|
let t, r = (
|
|
3858
3860
|
/*$_*/
|
|
3859
3861
|
e[4](
|
|
@@ -3863,10 +3865,10 @@ function _i(e) {
|
|
|
3863
3865
|
), n;
|
|
3864
3866
|
return {
|
|
3865
3867
|
c() {
|
|
3866
|
-
t =
|
|
3868
|
+
t = z("span"), n = Xe(r), re(t, "class", "CashierHeaderTitle");
|
|
3867
3869
|
},
|
|
3868
3870
|
m(i, s) {
|
|
3869
|
-
|
|
3871
|
+
M(i, t, s), ce(t, n);
|
|
3870
3872
|
},
|
|
3871
3873
|
p(i, s) {
|
|
3872
3874
|
s & /*$_, titleText*/
|
|
@@ -3874,21 +3876,21 @@ function _i(e) {
|
|
|
3874
3876
|
i[4](
|
|
3875
3877
|
/*titleText*/
|
|
3876
3878
|
i[2]
|
|
3877
|
-
) + "") &&
|
|
3879
|
+
) + "") && ar(n, r);
|
|
3878
3880
|
},
|
|
3879
3881
|
d(i) {
|
|
3880
|
-
i &&
|
|
3882
|
+
i && P(t);
|
|
3881
3883
|
}
|
|
3882
3884
|
};
|
|
3883
3885
|
}
|
|
3884
|
-
function
|
|
3886
|
+
function _t(e) {
|
|
3885
3887
|
let t, r, n;
|
|
3886
3888
|
return {
|
|
3887
3889
|
c() {
|
|
3888
|
-
t =
|
|
3890
|
+
t = z("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");
|
|
3889
3891
|
},
|
|
3890
3892
|
m(i, s) {
|
|
3891
|
-
|
|
3893
|
+
M(i, t, s), r || (n = Bt(
|
|
3892
3894
|
t,
|
|
3893
3895
|
"click",
|
|
3894
3896
|
/*close*/
|
|
@@ -3897,28 +3899,28 @@ function gt(e) {
|
|
|
3897
3899
|
},
|
|
3898
3900
|
p: B,
|
|
3899
3901
|
d(i) {
|
|
3900
|
-
i &&
|
|
3902
|
+
i && P(t), r = !1, n();
|
|
3901
3903
|
}
|
|
3902
3904
|
};
|
|
3903
3905
|
}
|
|
3904
|
-
function
|
|
3906
|
+
function Ei(e) {
|
|
3905
3907
|
let t, r = (
|
|
3906
3908
|
/*closeButton*/
|
|
3907
|
-
e[3] &&
|
|
3909
|
+
e[3] && _t(e)
|
|
3908
3910
|
);
|
|
3909
3911
|
return {
|
|
3910
3912
|
c() {
|
|
3911
|
-
r && r.c(), t =
|
|
3913
|
+
r && r.c(), t = Ht();
|
|
3912
3914
|
},
|
|
3913
3915
|
m(n, i) {
|
|
3914
|
-
r && r.m(n, i),
|
|
3916
|
+
r && r.m(n, i), M(n, t, i);
|
|
3915
3917
|
},
|
|
3916
3918
|
p(n, i) {
|
|
3917
3919
|
/*closeButton*/
|
|
3918
|
-
n[3] ? r ? r.p(n, i) : (r =
|
|
3920
|
+
n[3] ? r ? r.p(n, i) : (r = _t(n), r.c(), r.m(t.parentNode, t)) : r && (r.d(1), r = null);
|
|
3919
3921
|
},
|
|
3920
3922
|
d(n) {
|
|
3921
|
-
n &&
|
|
3923
|
+
n && P(t), r && r.d(n);
|
|
3922
3924
|
}
|
|
3923
3925
|
};
|
|
3924
3926
|
}
|
|
@@ -3927,176 +3929,176 @@ function xi(e) {
|
|
|
3927
3929
|
const s = (
|
|
3928
3930
|
/*#slots*/
|
|
3929
3931
|
e[15].leftButton
|
|
3930
|
-
), u =
|
|
3932
|
+
), u = xe(
|
|
3931
3933
|
s,
|
|
3932
3934
|
e,
|
|
3933
3935
|
/*$$scope*/
|
|
3934
3936
|
e[14],
|
|
3935
|
-
|
|
3936
|
-
), o = u ||
|
|
3937
|
+
bt
|
|
3938
|
+
), o = u || _i(e), l = (
|
|
3937
3939
|
/*#slots*/
|
|
3938
3940
|
e[15].title
|
|
3939
|
-
), a =
|
|
3941
|
+
), a = xe(
|
|
3940
3942
|
l,
|
|
3941
3943
|
e,
|
|
3942
3944
|
/*$$scope*/
|
|
3943
3945
|
e[14],
|
|
3944
3946
|
dt
|
|
3945
|
-
), h = a ||
|
|
3947
|
+
), h = a || yi(e), f = (
|
|
3946
3948
|
/*#slots*/
|
|
3947
3949
|
e[15].rightButton
|
|
3948
|
-
), c =
|
|
3950
|
+
), c = xe(
|
|
3949
3951
|
f,
|
|
3950
3952
|
e,
|
|
3951
3953
|
/*$$scope*/
|
|
3952
3954
|
e[14],
|
|
3953
|
-
|
|
3954
|
-
),
|
|
3955
|
+
pt
|
|
3956
|
+
), p = c || Ei(e);
|
|
3955
3957
|
return {
|
|
3956
3958
|
c() {
|
|
3957
|
-
t =
|
|
3959
|
+
t = z("div"), o && o.c(), r = Je(), h && h.c(), n = Je(), p && p.c(), re(t, "class", "CashierHeader");
|
|
3958
3960
|
},
|
|
3959
3961
|
m(m, g) {
|
|
3960
|
-
|
|
3962
|
+
M(m, t, g), o && o.m(t, null), ce(t, r), h && h.m(t, null), ce(t, n), p && p.m(t, null), e[16](t), i = !0;
|
|
3961
3963
|
},
|
|
3962
3964
|
p(m, [g]) {
|
|
3963
3965
|
u ? u.p && (!i || g & /*$$scope*/
|
|
3964
|
-
16384) &&
|
|
3966
|
+
16384) && He(
|
|
3965
3967
|
u,
|
|
3966
3968
|
s,
|
|
3967
3969
|
m,
|
|
3968
3970
|
/*$$scope*/
|
|
3969
3971
|
m[14],
|
|
3970
|
-
i ?
|
|
3972
|
+
i ? ve(
|
|
3971
3973
|
s,
|
|
3972
3974
|
/*$$scope*/
|
|
3973
3975
|
m[14],
|
|
3974
3976
|
g,
|
|
3975
|
-
|
|
3976
|
-
) :
|
|
3977
|
+
gi
|
|
3978
|
+
) : Be(
|
|
3977
3979
|
/*$$scope*/
|
|
3978
3980
|
m[14]
|
|
3979
3981
|
),
|
|
3980
|
-
|
|
3981
|
-
) : o.p && (!i || g & /*backButton*/
|
|
3982
|
+
bt
|
|
3983
|
+
) : o && o.p && (!i || g & /*backButton*/
|
|
3982
3984
|
2) && o.p(m, i ? g : -1), a ? a.p && (!i || g & /*$$scope*/
|
|
3983
|
-
16384) &&
|
|
3985
|
+
16384) && He(
|
|
3984
3986
|
a,
|
|
3985
3987
|
l,
|
|
3986
3988
|
m,
|
|
3987
3989
|
/*$$scope*/
|
|
3988
3990
|
m[14],
|
|
3989
|
-
i ?
|
|
3991
|
+
i ? ve(
|
|
3990
3992
|
l,
|
|
3991
3993
|
/*$$scope*/
|
|
3992
3994
|
m[14],
|
|
3993
3995
|
g,
|
|
3994
|
-
|
|
3995
|
-
) :
|
|
3996
|
+
bi
|
|
3997
|
+
) : Be(
|
|
3996
3998
|
/*$$scope*/
|
|
3997
3999
|
m[14]
|
|
3998
4000
|
),
|
|
3999
4001
|
dt
|
|
4000
|
-
) : h.p && (!i || g & /*$_, titleText*/
|
|
4002
|
+
) : h && h.p && (!i || g & /*$_, titleText*/
|
|
4001
4003
|
20) && h.p(m, i ? g : -1), c ? c.p && (!i || g & /*$$scope*/
|
|
4002
|
-
16384) &&
|
|
4004
|
+
16384) && He(
|
|
4003
4005
|
c,
|
|
4004
4006
|
f,
|
|
4005
4007
|
m,
|
|
4006
4008
|
/*$$scope*/
|
|
4007
4009
|
m[14],
|
|
4008
|
-
i ?
|
|
4010
|
+
i ? ve(
|
|
4009
4011
|
f,
|
|
4010
4012
|
/*$$scope*/
|
|
4011
4013
|
m[14],
|
|
4012
4014
|
g,
|
|
4013
4015
|
di
|
|
4014
|
-
) :
|
|
4016
|
+
) : Be(
|
|
4015
4017
|
/*$$scope*/
|
|
4016
4018
|
m[14]
|
|
4017
4019
|
),
|
|
4018
|
-
|
|
4019
|
-
) :
|
|
4020
|
-
8) &&
|
|
4020
|
+
pt
|
|
4021
|
+
) : p && p.p && (!i || g & /*closeButton*/
|
|
4022
|
+
8) && p.p(m, i ? g : -1);
|
|
4021
4023
|
},
|
|
4022
4024
|
i(m) {
|
|
4023
|
-
i || (
|
|
4025
|
+
i || (ue(o, m), ue(h, m), ue(p, m), i = !0);
|
|
4024
4026
|
},
|
|
4025
4027
|
o(m) {
|
|
4026
|
-
|
|
4028
|
+
we(o, m), we(h, m), we(p, m), i = !1;
|
|
4027
4029
|
},
|
|
4028
4030
|
d(m) {
|
|
4029
|
-
m &&
|
|
4031
|
+
m && P(t), o && o.d(m), h && h.d(m), p && p.d(m), e[16](null);
|
|
4030
4032
|
}
|
|
4031
4033
|
};
|
|
4032
4034
|
}
|
|
4033
|
-
function
|
|
4035
|
+
function vi(e, t, r) {
|
|
4034
4036
|
let n;
|
|
4035
|
-
|
|
4036
|
-
let { $$slots: i = {}, $$scope: s } = t, { clientstyling: u = "" } = t, { clientstylingurl: o = "" } = t, { translationurl: l = "" } = t, { showbackbutton: a = "" } = t, { title: h = "header.general" } = t, { lang: f = "en" } = t, { showclosebutton: c = "" } = t,
|
|
4037
|
-
const
|
|
4037
|
+
rr(e, ci, (_) => r(4, n = _));
|
|
4038
|
+
let { $$slots: i = {}, $$scope: s } = t, { clientstyling: u = "" } = t, { clientstylingurl: o = "" } = t, { translationurl: l = "" } = t, { showbackbutton: a = "" } = t, { title: h = "header.general" } = t, { lang: f = "en" } = t, { showclosebutton: c = "" } = t, p, m = !1, g, v = !1;
|
|
4039
|
+
const N = () => {
|
|
4038
4040
|
let _ = l;
|
|
4039
|
-
_ && fetch(_).then((
|
|
4040
|
-
Object.keys(
|
|
4041
|
-
|
|
4041
|
+
_ && fetch(_).then((S) => S.json()).then((S) => {
|
|
4042
|
+
Object.keys(S).forEach((U) => {
|
|
4043
|
+
ct(U, S[U]);
|
|
4042
4044
|
});
|
|
4043
|
-
}).catch((
|
|
4044
|
-
console.log(
|
|
4045
|
+
}).catch((S) => {
|
|
4046
|
+
console.log(S);
|
|
4045
4047
|
});
|
|
4046
4048
|
};
|
|
4047
|
-
Object.keys(
|
|
4048
|
-
|
|
4049
|
+
Object.keys(mt).forEach((_) => {
|
|
4050
|
+
ct(_, mt[_]);
|
|
4049
4051
|
});
|
|
4050
|
-
const
|
|
4052
|
+
const O = () => {
|
|
4051
4053
|
let _ = document.createElement("style");
|
|
4052
|
-
_.innerHTML = u,
|
|
4054
|
+
_.innerHTML = u, p.appendChild(_);
|
|
4053
4055
|
}, H = () => {
|
|
4054
|
-
let _ = new URL(o),
|
|
4055
|
-
fetch(_.href).then((
|
|
4056
|
-
|
|
4056
|
+
let _ = new URL(o), S = document.createElement("style");
|
|
4057
|
+
fetch(_.href).then((U) => U.text()).then((U) => {
|
|
4058
|
+
S.innerHTML = U, setTimeout(
|
|
4057
4059
|
() => {
|
|
4058
|
-
|
|
4060
|
+
p.appendChild(S);
|
|
4059
4061
|
},
|
|
4060
4062
|
1
|
|
4061
4063
|
);
|
|
4062
4064
|
});
|
|
4063
|
-
},
|
|
4064
|
-
|
|
4065
|
-
},
|
|
4065
|
+
}, I = () => {
|
|
4066
|
+
mi(f);
|
|
4067
|
+
}, w = () => {
|
|
4066
4068
|
window.postMessage({ type: "CloseCashier" }, window.location.href);
|
|
4067
|
-
},
|
|
4069
|
+
}, R = () => {
|
|
4068
4070
|
window.postMessage({ type: "BackCashier" }, window.location.href);
|
|
4069
|
-
},
|
|
4071
|
+
}, se = () => {
|
|
4070
4072
|
r(1, m = !!a && a !== "false");
|
|
4071
|
-
}, Jt = () => {
|
|
4072
|
-
r(3, v = !!c && c !== "false");
|
|
4073
4073
|
}, qt = () => {
|
|
4074
|
+
r(3, v = !!c && c !== "false");
|
|
4075
|
+
}, Yt = () => {
|
|
4074
4076
|
r(2, g = h || "header.general");
|
|
4075
4077
|
};
|
|
4076
|
-
function
|
|
4077
|
-
|
|
4078
|
-
|
|
4078
|
+
function Kt(_) {
|
|
4079
|
+
Ne[_ ? "unshift" : "push"](() => {
|
|
4080
|
+
p = _, r(0, p);
|
|
4079
4081
|
});
|
|
4080
4082
|
}
|
|
4081
4083
|
return e.$$set = (_) => {
|
|
4082
4084
|
"clientstyling" in _ && r(7, u = _.clientstyling), "clientstylingurl" in _ && r(8, o = _.clientstylingurl), "translationurl" in _ && r(9, l = _.translationurl), "showbackbutton" in _ && r(10, a = _.showbackbutton), "title" in _ && r(11, h = _.title), "lang" in _ && r(12, f = _.lang), "showclosebutton" in _ && r(13, c = _.showclosebutton), "$$scope" in _ && r(14, s = _.$$scope);
|
|
4083
4085
|
}, e.$$.update = () => {
|
|
4084
4086
|
e.$$.dirty & /*lang*/
|
|
4085
|
-
4096 && f &&
|
|
4086
|
-
6144 && f && h &&
|
|
4087
|
-
129 && u &&
|
|
4088
|
-
257 && o &&
|
|
4089
|
-
4608 && f && l &&
|
|
4090
|
-
1024 && a &&
|
|
4091
|
-
8192 && c &&
|
|
4087
|
+
4096 && f && I(), e.$$.dirty & /*lang, title*/
|
|
4088
|
+
6144 && f && h && Yt(), e.$$.dirty & /*clientstyling, customStylingContainer*/
|
|
4089
|
+
129 && u && p && O(), e.$$.dirty & /*clientstylingurl, customStylingContainer*/
|
|
4090
|
+
257 && o && p && H(), e.$$.dirty & /*lang, translationurl*/
|
|
4091
|
+
4608 && f && l && N(), e.$$.dirty & /*showbackbutton*/
|
|
4092
|
+
1024 && a && se(), e.$$.dirty & /*showclosebutton*/
|
|
4093
|
+
8192 && c && qt();
|
|
4092
4094
|
}, [
|
|
4093
|
-
|
|
4095
|
+
p,
|
|
4094
4096
|
m,
|
|
4095
4097
|
g,
|
|
4096
4098
|
v,
|
|
4097
4099
|
n,
|
|
4098
|
-
|
|
4099
|
-
|
|
4100
|
+
w,
|
|
4101
|
+
R,
|
|
4100
4102
|
u,
|
|
4101
4103
|
o,
|
|
4102
4104
|
l,
|
|
@@ -4106,17 +4108,17 @@ function Ei(e, t, r) {
|
|
|
4106
4108
|
c,
|
|
4107
4109
|
s,
|
|
4108
4110
|
i,
|
|
4109
|
-
|
|
4111
|
+
Kt
|
|
4110
4112
|
];
|
|
4111
4113
|
}
|
|
4112
|
-
class
|
|
4114
|
+
class Hi extends yr {
|
|
4113
4115
|
constructor(t) {
|
|
4114
|
-
super(),
|
|
4116
|
+
super(), gr(
|
|
4115
4117
|
this,
|
|
4116
4118
|
t,
|
|
4117
|
-
|
|
4119
|
+
vi,
|
|
4118
4120
|
xi,
|
|
4119
|
-
|
|
4121
|
+
Et,
|
|
4120
4122
|
{
|
|
4121
4123
|
clientstyling: 7,
|
|
4122
4124
|
clientstylingurl: 8,
|
|
@@ -4126,53 +4128,53 @@ class vi extends _r {
|
|
|
4126
4128
|
lang: 12,
|
|
4127
4129
|
showclosebutton: 13
|
|
4128
4130
|
},
|
|
4129
|
-
|
|
4131
|
+
pi
|
|
4130
4132
|
);
|
|
4131
4133
|
}
|
|
4132
4134
|
get clientstyling() {
|
|
4133
4135
|
return this.$$.ctx[7];
|
|
4134
4136
|
}
|
|
4135
4137
|
set clientstyling(t) {
|
|
4136
|
-
this.$$set({ clientstyling: t }),
|
|
4138
|
+
this.$$set({ clientstyling: t }), A();
|
|
4137
4139
|
}
|
|
4138
4140
|
get clientstylingurl() {
|
|
4139
4141
|
return this.$$.ctx[8];
|
|
4140
4142
|
}
|
|
4141
4143
|
set clientstylingurl(t) {
|
|
4142
|
-
this.$$set({ clientstylingurl: t }),
|
|
4144
|
+
this.$$set({ clientstylingurl: t }), A();
|
|
4143
4145
|
}
|
|
4144
4146
|
get translationurl() {
|
|
4145
4147
|
return this.$$.ctx[9];
|
|
4146
4148
|
}
|
|
4147
4149
|
set translationurl(t) {
|
|
4148
|
-
this.$$set({ translationurl: t }),
|
|
4150
|
+
this.$$set({ translationurl: t }), A();
|
|
4149
4151
|
}
|
|
4150
4152
|
get showbackbutton() {
|
|
4151
4153
|
return this.$$.ctx[10];
|
|
4152
4154
|
}
|
|
4153
4155
|
set showbackbutton(t) {
|
|
4154
|
-
this.$$set({ showbackbutton: t }),
|
|
4156
|
+
this.$$set({ showbackbutton: t }), A();
|
|
4155
4157
|
}
|
|
4156
4158
|
get title() {
|
|
4157
4159
|
return this.$$.ctx[11];
|
|
4158
4160
|
}
|
|
4159
4161
|
set title(t) {
|
|
4160
|
-
this.$$set({ title: t }),
|
|
4162
|
+
this.$$set({ title: t }), A();
|
|
4161
4163
|
}
|
|
4162
4164
|
get lang() {
|
|
4163
4165
|
return this.$$.ctx[12];
|
|
4164
4166
|
}
|
|
4165
4167
|
set lang(t) {
|
|
4166
|
-
this.$$set({ lang: t }),
|
|
4168
|
+
this.$$set({ lang: t }), A();
|
|
4167
4169
|
}
|
|
4168
4170
|
get showclosebutton() {
|
|
4169
4171
|
return this.$$.ctx[13];
|
|
4170
4172
|
}
|
|
4171
4173
|
set showclosebutton(t) {
|
|
4172
|
-
this.$$set({ showclosebutton: t }),
|
|
4174
|
+
this.$$set({ showclosebutton: t }), A();
|
|
4173
4175
|
}
|
|
4174
4176
|
}
|
|
4175
|
-
|
|
4177
|
+
_r(Hi, { clientstyling: {}, clientstylingurl: {}, translationurl: {}, showbackbutton: {}, title: {}, lang: {}, showclosebutton: {} }, ["leftButton", "title", "rightButton"], [], !0);
|
|
4176
4178
|
export {
|
|
4177
|
-
|
|
4179
|
+
Hi as C
|
|
4178
4180
|
};
|