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