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