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