@everymatrix/cashier-iframe-redirect 1.77.26 → 1.77.28
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-iPVh920q.js → CashierHeader-3BHguzLW.js} +637 -633
- package/components/{CashierHeader-DgDGrk10.js → CashierHeader-f6jWnWep.js} +624 -620
- package/components/CashierHeader-kJ73l8JW.cjs +5 -0
- package/components/{CashierIframeRedirect-DBZWqftr.js → CashierIframeRedirect-CA0WParE.js} +15 -15
- package/components/{CashierIframeRedirect-DKAcz2wJ.js → CashierIframeRedirect-D7p4NZmd.js} +17 -17
- package/components/{CashierIframeRedirect-Cp3zIvkN.cjs → CashierIframeRedirect-IdrBPZVu.cjs} +1 -1
- package/components/{CashierSpinner-BiY_0Fcz.js → CashierSpinner-C_NiI_YQ.js} +15 -15
- package/components/{CashierSpinner-Dum0UP2I.js → CashierSpinner-CwK7YfzB.js} +15 -15
- package/components/{CashierSpinner-lFzQpLWA.cjs → CashierSpinner-Cwhfqlrm.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-CHCcQzEc.cjs +0 -18
|
@@ -14,23 +14,23 @@ function yt(e) {
|
|
|
14
14
|
function Qe() {
|
|
15
15
|
return /* @__PURE__ */ Object.create(null);
|
|
16
16
|
}
|
|
17
|
-
function
|
|
17
|
+
function te(e) {
|
|
18
18
|
e.forEach(yt);
|
|
19
19
|
}
|
|
20
|
-
function
|
|
20
|
+
function Ve(e) {
|
|
21
21
|
return typeof e == "function";
|
|
22
22
|
}
|
|
23
|
-
function
|
|
23
|
+
function Et(e, t) {
|
|
24
24
|
return e != e ? t == t : e !== t || e && typeof e == "object" || typeof e == "function";
|
|
25
25
|
}
|
|
26
|
-
let
|
|
27
|
-
function
|
|
28
|
-
return e === t ? !0 : (
|
|
26
|
+
let se;
|
|
27
|
+
function Ai(e, t) {
|
|
28
|
+
return e === t ? !0 : (se || (se = document.createElement("a")), se.href = t, e === se.href);
|
|
29
29
|
}
|
|
30
30
|
function tr(e) {
|
|
31
31
|
return Object.keys(e).length === 0;
|
|
32
32
|
}
|
|
33
|
-
function
|
|
33
|
+
function xt(e, ...t) {
|
|
34
34
|
if (e == null) {
|
|
35
35
|
for (const n of t)
|
|
36
36
|
n(void 0);
|
|
@@ -40,9 +40,9 @@ function Et(e, ...t) {
|
|
|
40
40
|
return r.unsubscribe ? () => r.unsubscribe() : r;
|
|
41
41
|
}
|
|
42
42
|
function rr(e, t, r) {
|
|
43
|
-
e.$$.on_destroy.push(
|
|
43
|
+
e.$$.on_destroy.push(xt(t, r));
|
|
44
44
|
}
|
|
45
|
-
function
|
|
45
|
+
function xe(e, t, r, n) {
|
|
46
46
|
if (e) {
|
|
47
47
|
const i = vt(e, t, r, n);
|
|
48
48
|
return e[0](i);
|
|
@@ -51,7 +51,7 @@ function ye(e, t, r, n) {
|
|
|
51
51
|
function vt(e, t, r, n) {
|
|
52
52
|
return e[1] && n ? er(r.ctx.slice(), e[1](n(t))) : r.ctx;
|
|
53
53
|
}
|
|
54
|
-
function
|
|
54
|
+
function ve(e, t, r, n) {
|
|
55
55
|
if (e[2] && n) {
|
|
56
56
|
const i = e[2](n(r));
|
|
57
57
|
if (t.dirty === void 0)
|
|
@@ -66,13 +66,13 @@ function xe(e, t, r, n) {
|
|
|
66
66
|
}
|
|
67
67
|
return t.dirty;
|
|
68
68
|
}
|
|
69
|
-
function
|
|
69
|
+
function He(e, t, r, n, i, s) {
|
|
70
70
|
if (i) {
|
|
71
71
|
const u = vt(t, r, n, s);
|
|
72
72
|
e.p(u, i);
|
|
73
73
|
}
|
|
74
74
|
}
|
|
75
|
-
function
|
|
75
|
+
function Be(e) {
|
|
76
76
|
if (e.ctx.length > 32) {
|
|
77
77
|
const t = [], r = e.ctx.length / 32;
|
|
78
78
|
for (let n = 0; n < r; n++)
|
|
@@ -81,13 +81,13 @@ function ve(e) {
|
|
|
81
81
|
}
|
|
82
82
|
return -1;
|
|
83
83
|
}
|
|
84
|
-
function
|
|
84
|
+
function ce(e, t) {
|
|
85
85
|
e.appendChild(t);
|
|
86
86
|
}
|
|
87
87
|
function nr(e, t, r) {
|
|
88
88
|
const n = ir(e);
|
|
89
89
|
if (!n.getElementById(t)) {
|
|
90
|
-
const i =
|
|
90
|
+
const i = X("style");
|
|
91
91
|
i.id = t, i.textContent = r, sr(n, i);
|
|
92
92
|
}
|
|
93
93
|
}
|
|
@@ -102,39 +102,39 @@ function ir(e) {
|
|
|
102
102
|
) : e.ownerDocument;
|
|
103
103
|
}
|
|
104
104
|
function sr(e, t) {
|
|
105
|
-
return
|
|
105
|
+
return ce(
|
|
106
106
|
/** @type {Document} */
|
|
107
107
|
e.head || e,
|
|
108
108
|
t
|
|
109
109
|
), t.sheet;
|
|
110
110
|
}
|
|
111
|
-
function
|
|
111
|
+
function I(e, t, r) {
|
|
112
112
|
e.insertBefore(t, r || null);
|
|
113
113
|
}
|
|
114
114
|
function C(e) {
|
|
115
115
|
e.parentNode && e.parentNode.removeChild(e);
|
|
116
116
|
}
|
|
117
|
-
function
|
|
117
|
+
function X(e) {
|
|
118
118
|
return document.createElement(e);
|
|
119
119
|
}
|
|
120
|
-
function
|
|
120
|
+
function Xe(e) {
|
|
121
121
|
return document.createTextNode(e);
|
|
122
122
|
}
|
|
123
123
|
function qe() {
|
|
124
|
-
return
|
|
124
|
+
return Xe(" ");
|
|
125
125
|
}
|
|
126
126
|
function Ht() {
|
|
127
|
-
return
|
|
127
|
+
return Xe("");
|
|
128
128
|
}
|
|
129
129
|
function Bt(e, t, r, n) {
|
|
130
130
|
return e.addEventListener(t, r, n), () => e.removeEventListener(t, r, n);
|
|
131
131
|
}
|
|
132
|
-
function
|
|
132
|
+
function z(e, t, r) {
|
|
133
133
|
r == null ? e.removeAttribute(t) : e.getAttribute(t) !== r && e.setAttribute(t, r);
|
|
134
134
|
}
|
|
135
|
-
function
|
|
135
|
+
function Oi(e, t, r) {
|
|
136
136
|
const n = t.toLowerCase();
|
|
137
|
-
n in e ? e[n] = typeof e[n] == "boolean" && r === "" ? !0 : r : t in e ? e[t] = typeof e[t] == "boolean" && r === "" ? !0 : r :
|
|
137
|
+
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);
|
|
138
138
|
}
|
|
139
139
|
function or(e) {
|
|
140
140
|
return Array.from(e.childNodes);
|
|
@@ -152,97 +152,97 @@ function ur(e) {
|
|
|
152
152
|
}
|
|
153
153
|
), t;
|
|
154
154
|
}
|
|
155
|
-
let
|
|
156
|
-
function
|
|
157
|
-
|
|
155
|
+
let Y;
|
|
156
|
+
function J(e) {
|
|
157
|
+
Y = e;
|
|
158
158
|
}
|
|
159
159
|
function hr() {
|
|
160
|
-
if (!
|
|
160
|
+
if (!Y)
|
|
161
161
|
throw new Error("Function called outside component initialization");
|
|
162
|
-
return
|
|
162
|
+
return Y;
|
|
163
163
|
}
|
|
164
164
|
function lr(e) {
|
|
165
165
|
hr().$$.on_mount.push(e);
|
|
166
166
|
}
|
|
167
|
-
const
|
|
168
|
-
let
|
|
167
|
+
const D = [], Ne = [];
|
|
168
|
+
let G = [];
|
|
169
169
|
const Je = [], fr = /* @__PURE__ */ Promise.resolve();
|
|
170
|
-
let
|
|
170
|
+
let Ie = !1;
|
|
171
171
|
function cr() {
|
|
172
|
-
|
|
172
|
+
Ie || (Ie = !0, fr.then(T));
|
|
173
173
|
}
|
|
174
|
-
function
|
|
175
|
-
|
|
174
|
+
function Me(e) {
|
|
175
|
+
G.push(e);
|
|
176
176
|
}
|
|
177
|
-
const
|
|
178
|
-
let
|
|
177
|
+
const Te = /* @__PURE__ */ new Set();
|
|
178
|
+
let R = 0;
|
|
179
179
|
function T() {
|
|
180
|
-
if (
|
|
180
|
+
if (R !== 0)
|
|
181
181
|
return;
|
|
182
|
-
const e =
|
|
182
|
+
const e = Y;
|
|
183
183
|
do {
|
|
184
184
|
try {
|
|
185
|
-
for (;
|
|
186
|
-
const t =
|
|
187
|
-
|
|
185
|
+
for (; R < D.length; ) {
|
|
186
|
+
const t = D[R];
|
|
187
|
+
R++, J(t), mr(t.$$);
|
|
188
188
|
}
|
|
189
189
|
} catch (t) {
|
|
190
|
-
throw
|
|
190
|
+
throw D.length = 0, R = 0, t;
|
|
191
191
|
}
|
|
192
|
-
for (
|
|
193
|
-
|
|
194
|
-
for (let t = 0; t <
|
|
195
|
-
const r =
|
|
196
|
-
|
|
192
|
+
for (J(null), D.length = 0, R = 0; Ne.length; )
|
|
193
|
+
Ne.pop()();
|
|
194
|
+
for (let t = 0; t < G.length; t += 1) {
|
|
195
|
+
const r = G[t];
|
|
196
|
+
Te.has(r) || (Te.add(r), r());
|
|
197
197
|
}
|
|
198
|
-
|
|
199
|
-
} while (
|
|
198
|
+
G.length = 0;
|
|
199
|
+
} while (D.length);
|
|
200
200
|
for (; Je.length; )
|
|
201
201
|
Je.pop()();
|
|
202
|
-
|
|
202
|
+
Ie = !1, Te.clear(), J(e);
|
|
203
203
|
}
|
|
204
204
|
function mr(e) {
|
|
205
205
|
if (e.fragment !== null) {
|
|
206
|
-
e.update(),
|
|
206
|
+
e.update(), te(e.before_update);
|
|
207
207
|
const t = e.dirty;
|
|
208
|
-
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(
|
|
208
|
+
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(Me);
|
|
209
209
|
}
|
|
210
210
|
}
|
|
211
|
-
function
|
|
211
|
+
function pr(e) {
|
|
212
212
|
const t = [], r = [];
|
|
213
|
-
|
|
213
|
+
G.forEach((n) => e.indexOf(n) === -1 ? t.push(n) : r.push(n)), r.forEach((n) => n()), G = t;
|
|
214
214
|
}
|
|
215
|
-
const
|
|
216
|
-
let
|
|
217
|
-
function
|
|
218
|
-
e && e.i && (
|
|
215
|
+
const ae = /* @__PURE__ */ new Set();
|
|
216
|
+
let dr;
|
|
217
|
+
function ue(e, t) {
|
|
218
|
+
e && e.i && (ae.delete(e), e.i(t));
|
|
219
219
|
}
|
|
220
|
-
function
|
|
220
|
+
function we(e, t, r, n) {
|
|
221
221
|
if (e && e.o) {
|
|
222
|
-
if (
|
|
222
|
+
if (ae.has(e))
|
|
223
223
|
return;
|
|
224
|
-
|
|
225
|
-
|
|
224
|
+
ae.add(e), dr.c.push(() => {
|
|
225
|
+
ae.delete(e);
|
|
226
226
|
}), e.o(t);
|
|
227
227
|
}
|
|
228
228
|
}
|
|
229
|
-
function
|
|
229
|
+
function br(e, t, r) {
|
|
230
230
|
const { fragment: n, after_update: i } = e.$$;
|
|
231
|
-
n && n.m(t, r),
|
|
232
|
-
const s = e.$$.on_mount.map(yt).filter(
|
|
233
|
-
e.$$.on_destroy ? e.$$.on_destroy.push(...s) :
|
|
234
|
-
}), i.forEach(
|
|
231
|
+
n && n.m(t, r), Me(() => {
|
|
232
|
+
const s = e.$$.on_mount.map(yt).filter(Ve);
|
|
233
|
+
e.$$.on_destroy ? e.$$.on_destroy.push(...s) : te(s), e.$$.on_mount = [];
|
|
234
|
+
}), i.forEach(Me);
|
|
235
235
|
}
|
|
236
236
|
function gr(e, t) {
|
|
237
237
|
const r = e.$$;
|
|
238
|
-
r.fragment !== null && (
|
|
238
|
+
r.fragment !== null && (pr(r.after_update), te(r.on_destroy), r.fragment && r.fragment.d(t), r.on_destroy = r.fragment = null, r.ctx = []);
|
|
239
239
|
}
|
|
240
240
|
function _r(e, t) {
|
|
241
|
-
e.$$.dirty[0] === -1 && (
|
|
241
|
+
e.$$.dirty[0] === -1 && (D.push(e), cr(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
|
|
242
242
|
}
|
|
243
243
|
function yr(e, t, r, n, i, s, u = null, o = [-1]) {
|
|
244
|
-
const l =
|
|
245
|
-
|
|
244
|
+
const l = Y;
|
|
245
|
+
J(e);
|
|
246
246
|
const a = e.$$ = {
|
|
247
247
|
fragment: null,
|
|
248
248
|
ctx: [],
|
|
@@ -266,18 +266,18 @@ function yr(e, t, r, n, i, s, u = null, o = [-1]) {
|
|
|
266
266
|
};
|
|
267
267
|
u && u(a.root);
|
|
268
268
|
let h = !1;
|
|
269
|
-
if (a.ctx = r ? r(e, t.props || {}, (c, m, ...
|
|
270
|
-
const f =
|
|
269
|
+
if (a.ctx = r ? r(e, t.props || {}, (c, m, ...p) => {
|
|
270
|
+
const f = p.length ? p[0] : m;
|
|
271
271
|
return a.ctx && i(a.ctx[c], a.ctx[c] = f) && (!a.skip_bound && a.bound[c] && a.bound[c](f), h && _r(e, c)), m;
|
|
272
|
-
}) : [], a.update(), h = !0,
|
|
272
|
+
}) : [], a.update(), h = !0, te(a.before_update), a.fragment = n ? n(a.ctx) : !1, t.target) {
|
|
273
273
|
if (t.hydrate) {
|
|
274
274
|
const c = or(t.target);
|
|
275
275
|
a.fragment && a.fragment.l(c), c.forEach(C);
|
|
276
276
|
} else
|
|
277
277
|
a.fragment && a.fragment.c();
|
|
278
|
-
t.intro &&
|
|
278
|
+
t.intro && ue(e.$$.fragment), br(e, t.target, t.anchor), T();
|
|
279
279
|
}
|
|
280
|
-
|
|
280
|
+
J(l);
|
|
281
281
|
}
|
|
282
282
|
let Tt;
|
|
283
283
|
typeof HTMLElement == "function" && (Tt = class extends HTMLElement {
|
|
@@ -322,14 +322,14 @@ typeof HTMLElement == "function" && (Tt = class extends HTMLElement {
|
|
|
322
322
|
let s;
|
|
323
323
|
return {
|
|
324
324
|
c: function() {
|
|
325
|
-
s =
|
|
325
|
+
s = X("slot"), i !== "default" && z(s, "name", i);
|
|
326
326
|
},
|
|
327
327
|
/**
|
|
328
328
|
* @param {HTMLElement} target
|
|
329
329
|
* @param {HTMLElement} [anchor]
|
|
330
330
|
*/
|
|
331
331
|
m: function(l, a) {
|
|
332
|
-
|
|
332
|
+
I(l, s, a);
|
|
333
333
|
},
|
|
334
334
|
d: function(l) {
|
|
335
335
|
l && C(s);
|
|
@@ -344,7 +344,7 @@ typeof HTMLElement == "function" && (Tt = class extends HTMLElement {
|
|
|
344
344
|
i in r && (t[i] = [e(i)]);
|
|
345
345
|
for (const i of this.attributes) {
|
|
346
346
|
const s = this.$$g_p(i.name);
|
|
347
|
-
s in this.$$d || (this.$$d[s] =
|
|
347
|
+
s in this.$$d || (this.$$d[s] = he(s, i.value, this.$$p_d, "toProp"));
|
|
348
348
|
}
|
|
349
349
|
for (const i in this.$$p_d)
|
|
350
350
|
!(i in this.$$d) && this[i] !== void 0 && (this.$$d[i] = this[i], delete this[i]);
|
|
@@ -362,7 +362,7 @@ typeof HTMLElement == "function" && (Tt = class extends HTMLElement {
|
|
|
362
362
|
this.$$r = !0;
|
|
363
363
|
for (const i in this.$$p_d)
|
|
364
364
|
if (this.$$d[i] = this.$$c.$$.ctx[this.$$c.$$.props[i]], this.$$p_d[i].reflect) {
|
|
365
|
-
const s =
|
|
365
|
+
const s = he(
|
|
366
366
|
i,
|
|
367
367
|
this.$$d[i],
|
|
368
368
|
this.$$p_d,
|
|
@@ -384,7 +384,7 @@ typeof HTMLElement == "function" && (Tt = class extends HTMLElement {
|
|
|
384
384
|
// We don't need this when working within Svelte code, but for compatibility of people using this outside of Svelte
|
|
385
385
|
// and setting attributes through setAttribute etc, this is helpful
|
|
386
386
|
attributeChangedCallback(e, t, r) {
|
|
387
|
-
this.$$r || (e = this.$$g_p(e), this.$$d[e] =
|
|
387
|
+
this.$$r || (e = this.$$g_p(e), this.$$d[e] = he(e, r, this.$$p_d, "toProp"), this.$$c?.$set({ [e]: this.$$d[e] }));
|
|
388
388
|
}
|
|
389
389
|
disconnectedCallback() {
|
|
390
390
|
this.$$cn = !1, Promise.resolve().then(() => {
|
|
@@ -397,7 +397,7 @@ typeof HTMLElement == "function" && (Tt = class extends HTMLElement {
|
|
|
397
397
|
) || e;
|
|
398
398
|
}
|
|
399
399
|
});
|
|
400
|
-
function
|
|
400
|
+
function he(e, t, r, n) {
|
|
401
401
|
const i = r[e]?.type;
|
|
402
402
|
if (t = i === "Boolean" && typeof t != "boolean" ? t != null : t, !n || !r[e])
|
|
403
403
|
return t;
|
|
@@ -426,7 +426,7 @@ function ue(e, t, r, n) {
|
|
|
426
426
|
return t;
|
|
427
427
|
}
|
|
428
428
|
}
|
|
429
|
-
function
|
|
429
|
+
function Er(e, t, r, n, i, s) {
|
|
430
430
|
let u = class extends Tt {
|
|
431
431
|
constructor() {
|
|
432
432
|
super(e, r, i), this.$$p_d = t;
|
|
@@ -443,7 +443,7 @@ function xr(e, t, r, n, i, s) {
|
|
|
443
443
|
return this.$$c && o in this.$$c ? this.$$c[o] : this.$$d[o];
|
|
444
444
|
},
|
|
445
445
|
set(l) {
|
|
446
|
-
l =
|
|
446
|
+
l = he(o, l, t), this.$$d[o] = l, this.$$c?.$set({ [o]: l });
|
|
447
447
|
}
|
|
448
448
|
});
|
|
449
449
|
}), n.forEach((o) => {
|
|
@@ -455,7 +455,7 @@ function xr(e, t, r, n, i, s) {
|
|
|
455
455
|
}), e.element = /** @type {any} */
|
|
456
456
|
u, u;
|
|
457
457
|
}
|
|
458
|
-
class
|
|
458
|
+
class xr {
|
|
459
459
|
/**
|
|
460
460
|
* ### PRIVATE API
|
|
461
461
|
*
|
|
@@ -483,7 +483,7 @@ class Er {
|
|
|
483
483
|
* @returns {() => void}
|
|
484
484
|
*/
|
|
485
485
|
$on(t, r) {
|
|
486
|
-
if (!
|
|
486
|
+
if (!Ve(r))
|
|
487
487
|
return B;
|
|
488
488
|
const n = this.$$.callbacks[t] || (this.$$.callbacks[t] = []);
|
|
489
489
|
return n.push(r), () => {
|
|
@@ -501,24 +501,24 @@ class Er {
|
|
|
501
501
|
}
|
|
502
502
|
const vr = "4";
|
|
503
503
|
typeof window < "u" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(vr);
|
|
504
|
-
const
|
|
504
|
+
const U = [];
|
|
505
505
|
function Hr(e, t) {
|
|
506
506
|
return {
|
|
507
|
-
subscribe:
|
|
507
|
+
subscribe: ge(e, t).subscribe
|
|
508
508
|
};
|
|
509
509
|
}
|
|
510
|
-
function
|
|
510
|
+
function ge(e, t = B) {
|
|
511
511
|
let r;
|
|
512
512
|
const n = /* @__PURE__ */ new Set();
|
|
513
513
|
function i(o) {
|
|
514
|
-
if (
|
|
515
|
-
const l = !
|
|
514
|
+
if (Et(e, o) && (e = o, r)) {
|
|
515
|
+
const l = !U.length;
|
|
516
516
|
for (const a of n)
|
|
517
|
-
a[1](),
|
|
517
|
+
a[1](), U.push(a, e);
|
|
518
518
|
if (l) {
|
|
519
|
-
for (let a = 0; a <
|
|
520
|
-
|
|
521
|
-
|
|
519
|
+
for (let a = 0; a < U.length; a += 2)
|
|
520
|
+
U[a][0](U[a + 1]);
|
|
521
|
+
U.length = 0;
|
|
522
522
|
}
|
|
523
523
|
}
|
|
524
524
|
}
|
|
@@ -533,7 +533,7 @@ function be(e, t = B) {
|
|
|
533
533
|
}
|
|
534
534
|
return { set: i, update: s, subscribe: u };
|
|
535
535
|
}
|
|
536
|
-
function
|
|
536
|
+
function W(e, t, r) {
|
|
537
537
|
const n = !Array.isArray(e), i = n ? [e] : e;
|
|
538
538
|
if (!i.every(Boolean))
|
|
539
539
|
throw new Error("derived() expects stores as input, got a falsy value");
|
|
@@ -547,9 +547,9 @@ function z(e, t, r) {
|
|
|
547
547
|
return;
|
|
548
548
|
c();
|
|
549
549
|
const f = t(n ? a[0] : a, u, o);
|
|
550
|
-
s ? u(f) : c =
|
|
551
|
-
},
|
|
552
|
-
(f, _) =>
|
|
550
|
+
s ? u(f) : c = Ve(f) ? f : B;
|
|
551
|
+
}, p = i.map(
|
|
552
|
+
(f, _) => xt(
|
|
553
553
|
f,
|
|
554
554
|
(v) => {
|
|
555
555
|
a[_] = v, h &= ~(1 << _), l && m();
|
|
@@ -560,7 +560,7 @@ function z(e, t, r) {
|
|
|
560
560
|
)
|
|
561
561
|
);
|
|
562
562
|
return l = !0, m(), function() {
|
|
563
|
-
|
|
563
|
+
te(p), c(), l = !1;
|
|
564
564
|
};
|
|
565
565
|
});
|
|
566
566
|
}
|
|
@@ -575,28 +575,28 @@ function wr(e) {
|
|
|
575
575
|
}
|
|
576
576
|
function Sr(e) {
|
|
577
577
|
var t = Object.prototype.toString.call(e);
|
|
578
|
-
return t === "[object RegExp]" || t === "[object Date]" ||
|
|
578
|
+
return t === "[object RegExp]" || t === "[object Date]" || Pr(e);
|
|
579
579
|
}
|
|
580
580
|
var Ar = typeof Symbol == "function" && Symbol.for, Or = Ar ? Symbol.for("react.element") : 60103;
|
|
581
|
-
function
|
|
581
|
+
function Pr(e) {
|
|
582
582
|
return e.$$typeof === Or;
|
|
583
583
|
}
|
|
584
|
-
function
|
|
584
|
+
function Cr(e) {
|
|
585
585
|
return Array.isArray(e) ? [] : {};
|
|
586
586
|
}
|
|
587
|
-
function
|
|
588
|
-
return t.clone !== !1 && t.isMergeableObject(e) ?
|
|
587
|
+
function K(e, t) {
|
|
588
|
+
return t.clone !== !1 && t.isMergeableObject(e) ? F(Cr(e), e, t) : e;
|
|
589
589
|
}
|
|
590
590
|
function Lr(e, t, r) {
|
|
591
591
|
return e.concat(t).map(function(n) {
|
|
592
|
-
return
|
|
592
|
+
return K(n, r);
|
|
593
593
|
});
|
|
594
594
|
}
|
|
595
595
|
function Nr(e, t) {
|
|
596
596
|
if (!t.customMerge)
|
|
597
|
-
return
|
|
597
|
+
return F;
|
|
598
598
|
var r = t.customMerge(e);
|
|
599
|
-
return typeof r == "function" ? r :
|
|
599
|
+
return typeof r == "function" ? r : F;
|
|
600
600
|
}
|
|
601
601
|
function Ir(e) {
|
|
602
602
|
return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(e).filter(function(t) {
|
|
@@ -619,65 +619,51 @@ function Mr(e, t) {
|
|
|
619
619
|
function $r(e, t, r) {
|
|
620
620
|
var n = {};
|
|
621
621
|
return r.isMergeableObject(e) && Ye(e).forEach(function(i) {
|
|
622
|
-
n[i] =
|
|
622
|
+
n[i] = K(e[i], r);
|
|
623
623
|
}), Ye(t).forEach(function(i) {
|
|
624
|
-
Mr(e, i) || (wt(e, i) && r.isMergeableObject(t[i]) ? n[i] = Nr(i, r)(e[i], t[i], r) : n[i] =
|
|
624
|
+
Mr(e, i) || (wt(e, i) && r.isMergeableObject(t[i]) ? n[i] = Nr(i, r)(e[i], t[i], r) : n[i] = K(t[i], r));
|
|
625
625
|
}), n;
|
|
626
626
|
}
|
|
627
|
-
function
|
|
628
|
-
r = r || {}, r.arrayMerge = r.arrayMerge || Lr, r.isMergeableObject = r.isMergeableObject || Tr, r.cloneUnlessOtherwiseSpecified =
|
|
627
|
+
function F(e, t, r) {
|
|
628
|
+
r = r || {}, r.arrayMerge = r.arrayMerge || Lr, r.isMergeableObject = r.isMergeableObject || Tr, r.cloneUnlessOtherwiseSpecified = K;
|
|
629
629
|
var n = Array.isArray(t), i = Array.isArray(e), s = n === i;
|
|
630
|
-
return s ? n ? r.arrayMerge(e, t, r) : $r(e, t, r) :
|
|
630
|
+
return s ? n ? r.arrayMerge(e, t, r) : $r(e, t, r) : K(t, r);
|
|
631
631
|
}
|
|
632
|
-
|
|
632
|
+
F.all = function(t, r) {
|
|
633
633
|
if (!Array.isArray(t))
|
|
634
634
|
throw new Error("first argument should be an array");
|
|
635
635
|
return t.reduce(function(n, i) {
|
|
636
|
-
return
|
|
636
|
+
return F(n, i, r);
|
|
637
637
|
}, {});
|
|
638
638
|
};
|
|
639
|
-
var Rr =
|
|
639
|
+
var Rr = F, Ur = Rr;
|
|
640
640
|
const Dr = /* @__PURE__ */ Br(Ur);
|
|
641
|
-
|
|
642
|
-
|
|
643
|
-
|
|
644
|
-
Permission to use, copy, modify, and/or distribute this software for any
|
|
645
|
-
purpose with or without fee is hereby granted.
|
|
646
|
-
|
|
647
|
-
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
648
|
-
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
649
|
-
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
650
|
-
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
651
|
-
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
652
|
-
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
653
|
-
PERFORMANCE OF THIS SOFTWARE.
|
|
654
|
-
***************************************************************************** */
|
|
655
|
-
var Ie = function(e, t) {
|
|
656
|
-
return Ie = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
|
|
641
|
+
var $e = function(e, t) {
|
|
642
|
+
return $e = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
|
|
657
643
|
r.__proto__ = n;
|
|
658
644
|
} || function(r, n) {
|
|
659
645
|
for (var i in n)
|
|
660
646
|
Object.prototype.hasOwnProperty.call(n, i) && (r[i] = n[i]);
|
|
661
|
-
},
|
|
647
|
+
}, $e(e, t);
|
|
662
648
|
};
|
|
663
|
-
function
|
|
649
|
+
function _e(e, t) {
|
|
664
650
|
if (typeof t != "function" && t !== null)
|
|
665
651
|
throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
|
|
666
|
-
|
|
652
|
+
$e(e, t);
|
|
667
653
|
function r() {
|
|
668
654
|
this.constructor = e;
|
|
669
655
|
}
|
|
670
656
|
e.prototype = t === null ? Object.create(t) : (r.prototype = t.prototype, new r());
|
|
671
657
|
}
|
|
672
|
-
var
|
|
673
|
-
return
|
|
658
|
+
var w = function() {
|
|
659
|
+
return w = Object.assign || function(t) {
|
|
674
660
|
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
675
661
|
r = arguments[n];
|
|
676
662
|
for (var s in r)
|
|
677
663
|
Object.prototype.hasOwnProperty.call(r, s) && (t[s] = r[s]);
|
|
678
664
|
}
|
|
679
665
|
return t;
|
|
680
|
-
},
|
|
666
|
+
}, w.apply(this, arguments);
|
|
681
667
|
};
|
|
682
668
|
function Gr(e, t) {
|
|
683
669
|
var r = {};
|
|
@@ -688,14 +674,14 @@ function Gr(e, t) {
|
|
|
688
674
|
t.indexOf(n[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[i]) && (r[n[i]] = e[n[i]]);
|
|
689
675
|
return r;
|
|
690
676
|
}
|
|
691
|
-
function
|
|
692
|
-
if (arguments.length === 2)
|
|
677
|
+
function Se(e, t, r) {
|
|
678
|
+
if (r || arguments.length === 2)
|
|
693
679
|
for (var n = 0, i = t.length, s; n < i; n++)
|
|
694
680
|
(s || !(n in t)) && (s || (s = Array.prototype.slice.call(t, 0, n)), s[n] = t[n]);
|
|
695
|
-
return e.concat(s || t);
|
|
681
|
+
return e.concat(s || Array.prototype.slice.call(t));
|
|
696
682
|
}
|
|
697
|
-
function
|
|
698
|
-
var r = t && t.cache ? t.cache :
|
|
683
|
+
function Ae(e, t) {
|
|
684
|
+
var r = t && t.cache ? t.cache : Wr, n = t && t.serializer ? t.serializer : Xr, i = t && t.strategy ? t.strategy : kr;
|
|
699
685
|
return i(e, {
|
|
700
686
|
cache: r,
|
|
701
687
|
serializer: n
|
|
@@ -704,95 +690,103 @@ function we(e, t) {
|
|
|
704
690
|
function Fr(e) {
|
|
705
691
|
return e == null || typeof e == "number" || typeof e == "boolean";
|
|
706
692
|
}
|
|
707
|
-
function
|
|
693
|
+
function jr(e, t, r, n) {
|
|
708
694
|
var i = Fr(n) ? n : r(n), s = t.get(i);
|
|
709
695
|
return typeof s > "u" && (s = e.call(this, n), t.set(i, s)), s;
|
|
710
696
|
}
|
|
711
|
-
function
|
|
697
|
+
function St(e, t, r) {
|
|
712
698
|
var n = Array.prototype.slice.call(arguments, 3), i = r(n), s = t.get(i);
|
|
713
699
|
return typeof s > "u" && (s = e.apply(this, n), t.set(i, s)), s;
|
|
714
700
|
}
|
|
715
|
-
function
|
|
701
|
+
function At(e, t, r, n, i) {
|
|
716
702
|
return r.bind(t, e, n, i);
|
|
717
703
|
}
|
|
718
|
-
function jr(e, t) {
|
|
719
|
-
var r = e.length === 1 ? St : At;
|
|
720
|
-
return Ve(e, this, r, t.cache.create(), t.serializer);
|
|
721
|
-
}
|
|
722
704
|
function kr(e, t) {
|
|
723
|
-
|
|
705
|
+
var r = e.length === 1 ? jr : St;
|
|
706
|
+
return At(e, this, r, t.cache.create(), t.serializer);
|
|
724
707
|
}
|
|
725
708
|
function Vr(e, t) {
|
|
726
|
-
return
|
|
709
|
+
return At(e, this, St, t.cache.create(), t.serializer);
|
|
727
710
|
}
|
|
728
711
|
var Xr = function() {
|
|
729
712
|
return JSON.stringify(arguments);
|
|
730
|
-
}
|
|
731
|
-
|
|
732
|
-
|
|
733
|
-
|
|
734
|
-
|
|
735
|
-
|
|
736
|
-
|
|
737
|
-
|
|
738
|
-
|
|
739
|
-
|
|
740
|
-
|
|
713
|
+
}, zr = (
|
|
714
|
+
/** @class */
|
|
715
|
+
function() {
|
|
716
|
+
function e() {
|
|
717
|
+
this.cache = /* @__PURE__ */ Object.create(null);
|
|
718
|
+
}
|
|
719
|
+
return e.prototype.get = function(t) {
|
|
720
|
+
return this.cache[t];
|
|
721
|
+
}, e.prototype.set = function(t, r) {
|
|
722
|
+
this.cache[t] = r;
|
|
723
|
+
}, e;
|
|
724
|
+
}()
|
|
725
|
+
), Wr = {
|
|
741
726
|
create: function() {
|
|
742
|
-
return new
|
|
727
|
+
return new zr();
|
|
743
728
|
}
|
|
744
|
-
},
|
|
745
|
-
variadic:
|
|
746
|
-
|
|
747
|
-
|
|
729
|
+
}, Oe = {
|
|
730
|
+
variadic: Vr
|
|
731
|
+
}, me = function() {
|
|
732
|
+
return me = Object.assign || function(t) {
|
|
733
|
+
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
734
|
+
r = arguments[n];
|
|
735
|
+
for (var s in r)
|
|
736
|
+
Object.prototype.hasOwnProperty.call(r, s) && (t[s] = r[s]);
|
|
737
|
+
}
|
|
738
|
+
return t;
|
|
739
|
+
}, me.apply(this, arguments);
|
|
740
|
+
};
|
|
741
|
+
var d;
|
|
748
742
|
(function(e) {
|
|
749
743
|
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";
|
|
750
|
-
})(
|
|
751
|
-
var
|
|
744
|
+
})(d || (d = {}));
|
|
745
|
+
var y;
|
|
752
746
|
(function(e) {
|
|
753
747
|
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";
|
|
754
|
-
})(
|
|
755
|
-
var
|
|
748
|
+
})(y || (y = {}));
|
|
749
|
+
var j;
|
|
756
750
|
(function(e) {
|
|
757
751
|
e[e.number = 0] = "number", e[e.dateTime = 1] = "dateTime";
|
|
758
|
-
})(
|
|
752
|
+
})(j || (j = {}));
|
|
759
753
|
function Ke(e) {
|
|
760
|
-
return e.type ===
|
|
754
|
+
return e.type === y.literal;
|
|
761
755
|
}
|
|
762
|
-
function
|
|
763
|
-
return e.type ===
|
|
756
|
+
function Zr(e) {
|
|
757
|
+
return e.type === y.argument;
|
|
764
758
|
}
|
|
765
759
|
function Ot(e) {
|
|
766
|
-
return e.type ===
|
|
767
|
-
}
|
|
768
|
-
function Ct(e) {
|
|
769
|
-
return e.type === x.date;
|
|
760
|
+
return e.type === y.number;
|
|
770
761
|
}
|
|
771
762
|
function Pt(e) {
|
|
772
|
-
return e.type ===
|
|
763
|
+
return e.type === y.date;
|
|
764
|
+
}
|
|
765
|
+
function Ct(e) {
|
|
766
|
+
return e.type === y.time;
|
|
773
767
|
}
|
|
774
768
|
function Lt(e) {
|
|
775
|
-
return e.type ===
|
|
769
|
+
return e.type === y.select;
|
|
776
770
|
}
|
|
777
771
|
function Nt(e) {
|
|
778
|
-
return e.type ===
|
|
772
|
+
return e.type === y.plural;
|
|
779
773
|
}
|
|
780
|
-
function
|
|
781
|
-
return e.type ===
|
|
774
|
+
function Qr(e) {
|
|
775
|
+
return e.type === y.pound;
|
|
782
776
|
}
|
|
783
777
|
function It(e) {
|
|
784
|
-
return e.type ===
|
|
778
|
+
return e.type === y.tag;
|
|
785
779
|
}
|
|
786
780
|
function Mt(e) {
|
|
787
|
-
return !!(e && typeof e == "object" && e.type ===
|
|
781
|
+
return !!(e && typeof e == "object" && e.type === j.number);
|
|
788
782
|
}
|
|
789
|
-
function
|
|
790
|
-
return !!(e && typeof e == "object" && e.type ===
|
|
783
|
+
function Re(e) {
|
|
784
|
+
return !!(e && typeof e == "object" && e.type === j.dateTime);
|
|
791
785
|
}
|
|
792
|
-
var $t = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,
|
|
793
|
-
function
|
|
786
|
+
var $t = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, qr = /(?:[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;
|
|
787
|
+
function Jr(e) {
|
|
794
788
|
var t = {};
|
|
795
|
-
return e.replace(
|
|
789
|
+
return e.replace(qr, function(r) {
|
|
796
790
|
var n = r.length;
|
|
797
791
|
switch (r[0]) {
|
|
798
792
|
case "G":
|
|
@@ -881,11 +875,21 @@ function qr(e) {
|
|
|
881
875
|
return "";
|
|
882
876
|
}), t;
|
|
883
877
|
}
|
|
884
|
-
var
|
|
885
|
-
function
|
|
878
|
+
var E = function() {
|
|
879
|
+
return E = Object.assign || function(t) {
|
|
880
|
+
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
881
|
+
r = arguments[n];
|
|
882
|
+
for (var s in r)
|
|
883
|
+
Object.prototype.hasOwnProperty.call(r, s) && (t[s] = r[s]);
|
|
884
|
+
}
|
|
885
|
+
return t;
|
|
886
|
+
}, E.apply(this, arguments);
|
|
887
|
+
};
|
|
888
|
+
var Yr = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
|
|
889
|
+
function Kr(e) {
|
|
886
890
|
if (e.length === 0)
|
|
887
891
|
throw new Error("Number skeleton cannot be empty");
|
|
888
|
-
for (var t = e.split(
|
|
892
|
+
for (var t = e.split(Yr).filter(function(m) {
|
|
889
893
|
return m.length > 0;
|
|
890
894
|
}), r = [], n = 0, i = t; n < i.length; n++) {
|
|
891
895
|
var s = i[n], u = s.split("/");
|
|
@@ -900,10 +904,10 @@ function Yr(e) {
|
|
|
900
904
|
}
|
|
901
905
|
return r;
|
|
902
906
|
}
|
|
903
|
-
function
|
|
907
|
+
function en(e) {
|
|
904
908
|
return e.replace(/^(.*?)-/, "");
|
|
905
909
|
}
|
|
906
|
-
var et = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, Rt = /^(@+)?(\+|#+)?[rs]?$/g,
|
|
910
|
+
var et = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, Rt = /^(@+)?(\+|#+)?[rs]?$/g, tn = /(\*)(0+)|(#+)(0+)|(0+)/g, Ut = /^(0+)$/;
|
|
907
911
|
function tt(e) {
|
|
908
912
|
var t = {};
|
|
909
913
|
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(Rt, function(r, n, i) {
|
|
@@ -950,7 +954,7 @@ function Dt(e) {
|
|
|
950
954
|
};
|
|
951
955
|
}
|
|
952
956
|
}
|
|
953
|
-
function
|
|
957
|
+
function rn(e) {
|
|
954
958
|
var t;
|
|
955
959
|
if (e[0] === "E" && e[1] === "E" ? (t = {
|
|
956
960
|
notation: "engineering"
|
|
@@ -968,7 +972,7 @@ function rt(e) {
|
|
|
968
972
|
var t = {}, r = Dt(e);
|
|
969
973
|
return r || t;
|
|
970
974
|
}
|
|
971
|
-
function
|
|
975
|
+
function nn(e) {
|
|
972
976
|
for (var t = {}, r = 0, n = e; r < n.length; r++) {
|
|
973
977
|
var i = n[r];
|
|
974
978
|
switch (i.stem) {
|
|
@@ -992,7 +996,7 @@ function rn(e) {
|
|
|
992
996
|
continue;
|
|
993
997
|
case "measure-unit":
|
|
994
998
|
case "unit":
|
|
995
|
-
t.style = "unit", t.unit =
|
|
999
|
+
t.style = "unit", t.unit = en(i.options[0]);
|
|
996
1000
|
continue;
|
|
997
1001
|
case "compact-short":
|
|
998
1002
|
case "K":
|
|
@@ -1003,13 +1007,13 @@ function rn(e) {
|
|
|
1003
1007
|
t.notation = "compact", t.compactDisplay = "long";
|
|
1004
1008
|
continue;
|
|
1005
1009
|
case "scientific":
|
|
1006
|
-
t =
|
|
1007
|
-
return
|
|
1010
|
+
t = E(E(E({}, t), { notation: "scientific" }), i.options.reduce(function(l, a) {
|
|
1011
|
+
return E(E({}, l), rt(a));
|
|
1008
1012
|
}, {}));
|
|
1009
1013
|
continue;
|
|
1010
1014
|
case "engineering":
|
|
1011
|
-
t =
|
|
1012
|
-
return
|
|
1015
|
+
t = E(E(E({}, t), { notation: "engineering" }), i.options.reduce(function(l, a) {
|
|
1016
|
+
return E(E({}, l), rt(a));
|
|
1013
1017
|
}, {}));
|
|
1014
1018
|
continue;
|
|
1015
1019
|
case "notation-simple":
|
|
@@ -1054,13 +1058,13 @@ function rn(e) {
|
|
|
1054
1058
|
case "integer-width":
|
|
1055
1059
|
if (i.options.length > 1)
|
|
1056
1060
|
throw new RangeError("integer-width stems only accept a single optional option");
|
|
1057
|
-
i.options[0].replace(
|
|
1061
|
+
i.options[0].replace(tn, function(l, a, h, c, m, p) {
|
|
1058
1062
|
if (a)
|
|
1059
1063
|
t.minimumIntegerDigits = h.length;
|
|
1060
1064
|
else {
|
|
1061
1065
|
if (c && m)
|
|
1062
1066
|
throw new Error("We currently do not support maximum integer digits");
|
|
1063
|
-
if (
|
|
1067
|
+
if (p)
|
|
1064
1068
|
throw new Error("We currently do not support exact integer digits");
|
|
1065
1069
|
}
|
|
1066
1070
|
return "";
|
|
@@ -1074,25 +1078,25 @@ function rn(e) {
|
|
|
1074
1078
|
if (et.test(i.stem)) {
|
|
1075
1079
|
if (i.options.length > 1)
|
|
1076
1080
|
throw new RangeError("Fraction-precision stems only accept a single optional option");
|
|
1077
|
-
i.stem.replace(et, function(l, a, h, c, m,
|
|
1078
|
-
return h === "*" ? t.minimumFractionDigits = a.length : c && c[0] === "#" ? t.maximumFractionDigits = c.length : m &&
|
|
1081
|
+
i.stem.replace(et, function(l, a, h, c, m, p) {
|
|
1082
|
+
return h === "*" ? t.minimumFractionDigits = a.length : c && c[0] === "#" ? t.maximumFractionDigits = c.length : m && p ? (t.minimumFractionDigits = m.length, t.maximumFractionDigits = m.length + p.length) : (t.minimumFractionDigits = a.length, t.maximumFractionDigits = a.length), "";
|
|
1079
1083
|
});
|
|
1080
1084
|
var s = i.options[0];
|
|
1081
|
-
s === "w" ? t =
|
|
1085
|
+
s === "w" ? t = E(E({}, t), { trailingZeroDisplay: "stripIfInteger" }) : s && (t = E(E({}, t), tt(s)));
|
|
1082
1086
|
continue;
|
|
1083
1087
|
}
|
|
1084
1088
|
if (Rt.test(i.stem)) {
|
|
1085
|
-
t =
|
|
1089
|
+
t = E(E({}, t), tt(i.stem));
|
|
1086
1090
|
continue;
|
|
1087
1091
|
}
|
|
1088
1092
|
var u = Dt(i.stem);
|
|
1089
|
-
u && (t =
|
|
1090
|
-
var o =
|
|
1091
|
-
o && (t =
|
|
1093
|
+
u && (t = E(E({}, t), u));
|
|
1094
|
+
var o = rn(i.stem);
|
|
1095
|
+
o && (t = E(E({}, t), o));
|
|
1092
1096
|
}
|
|
1093
1097
|
return t;
|
|
1094
1098
|
}
|
|
1095
|
-
var
|
|
1099
|
+
var oe = {
|
|
1096
1100
|
"001": [
|
|
1097
1101
|
"H",
|
|
1098
1102
|
"h"
|
|
@@ -2507,13 +2511,13 @@ var se = {
|
|
|
2507
2511
|
"h"
|
|
2508
2512
|
]
|
|
2509
2513
|
};
|
|
2510
|
-
function
|
|
2514
|
+
function sn(e, t) {
|
|
2511
2515
|
for (var r = "", n = 0; n < e.length; n++) {
|
|
2512
2516
|
var i = e.charAt(n);
|
|
2513
2517
|
if (i === "j") {
|
|
2514
2518
|
for (var s = 0; n + 1 < e.length && e.charAt(n + 1) === i; )
|
|
2515
2519
|
s++, n++;
|
|
2516
|
-
var u = 1 + (s & 1), o = s < 2 ? 1 : 3 + (s >> 1), l = "a", a =
|
|
2520
|
+
var u = 1 + (s & 1), o = s < 2 ? 1 : 3 + (s >> 1), l = "a", a = on(t);
|
|
2517
2521
|
for ((a == "H" || a == "k") && (o = 0); o-- > 0; )
|
|
2518
2522
|
r += l;
|
|
2519
2523
|
for (; u-- > 0; )
|
|
@@ -2523,7 +2527,7 @@ function nn(e, t) {
|
|
|
2523
2527
|
}
|
|
2524
2528
|
return r;
|
|
2525
2529
|
}
|
|
2526
|
-
function
|
|
2530
|
+
function on(e) {
|
|
2527
2531
|
var t = e.hourCycle;
|
|
2528
2532
|
if (t === void 0 && // @ts-ignore hourCycle(s) is not identified yet
|
|
2529
2533
|
e.hourCycles && // @ts-ignore
|
|
@@ -2542,23 +2546,23 @@ function sn(e) {
|
|
|
2542
2546
|
}
|
|
2543
2547
|
var r = e.language, n;
|
|
2544
2548
|
r !== "root" && (n = e.maximize().region);
|
|
2545
|
-
var i =
|
|
2549
|
+
var i = oe[n || ""] || oe[r || ""] || oe["".concat(r, "-001")] || oe["001"];
|
|
2546
2550
|
return i[0];
|
|
2547
2551
|
}
|
|
2548
|
-
var
|
|
2549
|
-
function
|
|
2552
|
+
var Pe, an = new RegExp("^".concat($t.source, "*")), un = new RegExp("".concat($t.source, "*$"));
|
|
2553
|
+
function b(e, t) {
|
|
2550
2554
|
return { start: e, end: t };
|
|
2551
2555
|
}
|
|
2552
|
-
var
|
|
2556
|
+
var hn = !!String.prototype.startsWith && "_a".startsWith("a", 1), ln = !!String.fromCodePoint, fn = !!Object.fromEntries, cn = !!String.prototype.codePointAt, mn = !!String.prototype.trimStart, pn = !!String.prototype.trimEnd, dn = !!Number.isSafeInteger, bn = dn ? Number.isSafeInteger : function(e) {
|
|
2553
2557
|
return typeof e == "number" && isFinite(e) && Math.floor(e) === e && Math.abs(e) <= 9007199254740991;
|
|
2554
|
-
},
|
|
2558
|
+
}, Ue = !0;
|
|
2555
2559
|
try {
|
|
2556
|
-
var
|
|
2557
|
-
|
|
2560
|
+
var gn = Ft("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
2561
|
+
Ue = ((Pe = gn.exec("a")) === null || Pe === void 0 ? void 0 : Pe[0]) === "a";
|
|
2558
2562
|
} catch {
|
|
2559
|
-
|
|
2563
|
+
Ue = !1;
|
|
2560
2564
|
}
|
|
2561
|
-
var nt =
|
|
2565
|
+
var nt = hn ? (
|
|
2562
2566
|
// Native
|
|
2563
2567
|
function(t, r, n) {
|
|
2564
2568
|
return t.startsWith(r, n);
|
|
@@ -2568,7 +2572,7 @@ var nt = un ? (
|
|
|
2568
2572
|
function(t, r, n) {
|
|
2569
2573
|
return t.slice(n, n + r.length) === r;
|
|
2570
2574
|
}
|
|
2571
|
-
),
|
|
2575
|
+
), De = ln ? String.fromCodePoint : (
|
|
2572
2576
|
// IE11
|
|
2573
2577
|
function() {
|
|
2574
2578
|
for (var t = [], r = 0; r < arguments.length; r++)
|
|
@@ -2582,7 +2586,7 @@ var nt = un ? (
|
|
|
2582
2586
|
}
|
|
2583
2587
|
), it = (
|
|
2584
2588
|
// native
|
|
2585
|
-
|
|
2589
|
+
fn ? Object.fromEntries : (
|
|
2586
2590
|
// Ponyfill
|
|
2587
2591
|
function(t) {
|
|
2588
2592
|
for (var r = {}, n = 0, i = t; n < i.length; n++) {
|
|
@@ -2592,7 +2596,7 @@ var nt = un ? (
|
|
|
2592
2596
|
return r;
|
|
2593
2597
|
}
|
|
2594
2598
|
)
|
|
2595
|
-
), Gt =
|
|
2599
|
+
), Gt = cn ? (
|
|
2596
2600
|
// Native
|
|
2597
2601
|
function(t, r) {
|
|
2598
2602
|
return t.codePointAt(r);
|
|
@@ -2606,7 +2610,7 @@ var nt = un ? (
|
|
|
2606
2610
|
return i < 55296 || i > 56319 || r + 1 === n || (s = t.charCodeAt(r + 1)) < 56320 || s > 57343 ? i : (i - 55296 << 10) + (s - 56320) + 65536;
|
|
2607
2611
|
}
|
|
2608
2612
|
}
|
|
2609
|
-
),
|
|
2613
|
+
), _n = mn ? (
|
|
2610
2614
|
// Native
|
|
2611
2615
|
function(t) {
|
|
2612
2616
|
return t.trimStart();
|
|
@@ -2614,9 +2618,9 @@ var nt = un ? (
|
|
|
2614
2618
|
) : (
|
|
2615
2619
|
// Ponyfill
|
|
2616
2620
|
function(t) {
|
|
2617
|
-
return t.replace(
|
|
2621
|
+
return t.replace(an, "");
|
|
2618
2622
|
}
|
|
2619
|
-
),
|
|
2623
|
+
), yn = pn ? (
|
|
2620
2624
|
// Native
|
|
2621
2625
|
function(t) {
|
|
2622
2626
|
return t.trimEnd();
|
|
@@ -2624,32 +2628,32 @@ var nt = un ? (
|
|
|
2624
2628
|
) : (
|
|
2625
2629
|
// Ponyfill
|
|
2626
2630
|
function(t) {
|
|
2627
|
-
return t.replace(
|
|
2631
|
+
return t.replace(un, "");
|
|
2628
2632
|
}
|
|
2629
2633
|
);
|
|
2630
2634
|
function Ft(e, t) {
|
|
2631
2635
|
return new RegExp(e, t);
|
|
2632
2636
|
}
|
|
2633
|
-
var
|
|
2634
|
-
if (
|
|
2637
|
+
var Ge;
|
|
2638
|
+
if (Ue) {
|
|
2635
2639
|
var st = Ft("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
2636
|
-
|
|
2640
|
+
Ge = function(t, r) {
|
|
2637
2641
|
var n;
|
|
2638
2642
|
st.lastIndex = r;
|
|
2639
2643
|
var i = st.exec(t);
|
|
2640
2644
|
return (n = i[1]) !== null && n !== void 0 ? n : "";
|
|
2641
2645
|
};
|
|
2642
2646
|
} else
|
|
2643
|
-
|
|
2647
|
+
Ge = function(t, r) {
|
|
2644
2648
|
for (var n = []; ; ) {
|
|
2645
2649
|
var i = Gt(t, r);
|
|
2646
|
-
if (i === void 0 || jt(i) ||
|
|
2650
|
+
if (i === void 0 || jt(i) || Hn(i))
|
|
2647
2651
|
break;
|
|
2648
2652
|
n.push(i), r += i >= 65536 ? 2 : 1;
|
|
2649
2653
|
}
|
|
2650
|
-
return
|
|
2654
|
+
return De.apply(void 0, n);
|
|
2651
2655
|
};
|
|
2652
|
-
var
|
|
2656
|
+
var En = (
|
|
2653
2657
|
/** @class */
|
|
2654
2658
|
function() {
|
|
2655
2659
|
function e(t, r) {
|
|
@@ -2673,14 +2677,14 @@ var yn = (
|
|
|
2673
2677
|
if (s === 35 && (r === "plural" || r === "selectordinal")) {
|
|
2674
2678
|
var o = this.clonePosition();
|
|
2675
2679
|
this.bump(), i.push({
|
|
2676
|
-
type:
|
|
2677
|
-
location:
|
|
2680
|
+
type: y.pound,
|
|
2681
|
+
location: b(o, this.clonePosition())
|
|
2678
2682
|
});
|
|
2679
2683
|
} else if (s === 60 && !this.ignoreTag && this.peek() === 47) {
|
|
2680
2684
|
if (n)
|
|
2681
2685
|
break;
|
|
2682
|
-
return this.error(
|
|
2683
|
-
} else if (s === 60 && !this.ignoreTag &&
|
|
2686
|
+
return this.error(d.UNMATCHED_CLOSING_TAG, b(this.clonePosition(), this.clonePosition()));
|
|
2687
|
+
} else if (s === 60 && !this.ignoreTag && Fe(this.peek() || 0)) {
|
|
2684
2688
|
var u = this.parseTag(t, r);
|
|
2685
2689
|
if (u.err)
|
|
2686
2690
|
return u;
|
|
@@ -2701,9 +2705,9 @@ var yn = (
|
|
|
2701
2705
|
if (this.bumpSpace(), this.bumpIf("/>"))
|
|
2702
2706
|
return {
|
|
2703
2707
|
val: {
|
|
2704
|
-
type:
|
|
2708
|
+
type: y.literal,
|
|
2705
2709
|
value: "<".concat(i, "/>"),
|
|
2706
|
-
location:
|
|
2710
|
+
location: b(n, this.clonePosition())
|
|
2707
2711
|
},
|
|
2708
2712
|
err: null
|
|
2709
2713
|
};
|
|
@@ -2713,25 +2717,25 @@ var yn = (
|
|
|
2713
2717
|
return s;
|
|
2714
2718
|
var u = s.val, o = this.clonePosition();
|
|
2715
2719
|
if (this.bumpIf("</")) {
|
|
2716
|
-
if (this.isEOF() || !
|
|
2717
|
-
return this.error(
|
|
2720
|
+
if (this.isEOF() || !Fe(this.char()))
|
|
2721
|
+
return this.error(d.INVALID_TAG, b(o, this.clonePosition()));
|
|
2718
2722
|
var l = this.clonePosition(), a = this.parseTagName();
|
|
2719
|
-
return i !== a ? this.error(
|
|
2723
|
+
return i !== a ? this.error(d.UNMATCHED_CLOSING_TAG, b(l, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
|
|
2720
2724
|
val: {
|
|
2721
|
-
type:
|
|
2725
|
+
type: y.tag,
|
|
2722
2726
|
value: i,
|
|
2723
2727
|
children: u,
|
|
2724
|
-
location:
|
|
2728
|
+
location: b(n, this.clonePosition())
|
|
2725
2729
|
},
|
|
2726
2730
|
err: null
|
|
2727
|
-
} : this.error(
|
|
2731
|
+
} : this.error(d.INVALID_TAG, b(o, this.clonePosition())));
|
|
2728
2732
|
} else
|
|
2729
|
-
return this.error(
|
|
2733
|
+
return this.error(d.UNCLOSED_TAG, b(n, this.clonePosition()));
|
|
2730
2734
|
} else
|
|
2731
|
-
return this.error(
|
|
2735
|
+
return this.error(d.INVALID_TAG, b(n, this.clonePosition()));
|
|
2732
2736
|
}, e.prototype.parseTagName = function() {
|
|
2733
2737
|
var t = this.offset();
|
|
2734
|
-
for (this.bump(); !this.isEOF() &&
|
|
2738
|
+
for (this.bump(); !this.isEOF() && vn(this.char()); )
|
|
2735
2739
|
this.bump();
|
|
2736
2740
|
return this.message.slice(t, this.offset());
|
|
2737
2741
|
}, e.prototype.parseLiteral = function(t, r) {
|
|
@@ -2753,9 +2757,9 @@ var yn = (
|
|
|
2753
2757
|
}
|
|
2754
2758
|
break;
|
|
2755
2759
|
}
|
|
2756
|
-
var l =
|
|
2760
|
+
var l = b(n, this.clonePosition());
|
|
2757
2761
|
return {
|
|
2758
|
-
val: { type:
|
|
2762
|
+
val: { type: y.literal, value: i, location: l },
|
|
2759
2763
|
err: null
|
|
2760
2764
|
};
|
|
2761
2765
|
}, e.prototype.tryParseLeftAngleBracket = function() {
|
|
@@ -2794,49 +2798,49 @@ var yn = (
|
|
|
2794
2798
|
r.push(n);
|
|
2795
2799
|
this.bump();
|
|
2796
2800
|
}
|
|
2797
|
-
return
|
|
2801
|
+
return De.apply(void 0, r);
|
|
2798
2802
|
}, e.prototype.tryParseUnquoted = function(t, r) {
|
|
2799
2803
|
if (this.isEOF())
|
|
2800
2804
|
return null;
|
|
2801
2805
|
var n = this.char();
|
|
2802
|
-
return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(),
|
|
2806
|
+
return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(), De(n));
|
|
2803
2807
|
}, e.prototype.parseArgument = function(t, r) {
|
|
2804
2808
|
var n = this.clonePosition();
|
|
2805
2809
|
if (this.bump(), this.bumpSpace(), this.isEOF())
|
|
2806
|
-
return this.error(
|
|
2810
|
+
return this.error(d.EXPECT_ARGUMENT_CLOSING_BRACE, b(n, this.clonePosition()));
|
|
2807
2811
|
if (this.char() === 125)
|
|
2808
|
-
return this.bump(), this.error(
|
|
2812
|
+
return this.bump(), this.error(d.EMPTY_ARGUMENT, b(n, this.clonePosition()));
|
|
2809
2813
|
var i = this.parseIdentifierIfPossible().value;
|
|
2810
2814
|
if (!i)
|
|
2811
|
-
return this.error(
|
|
2815
|
+
return this.error(d.MALFORMED_ARGUMENT, b(n, this.clonePosition()));
|
|
2812
2816
|
if (this.bumpSpace(), this.isEOF())
|
|
2813
|
-
return this.error(
|
|
2817
|
+
return this.error(d.EXPECT_ARGUMENT_CLOSING_BRACE, b(n, this.clonePosition()));
|
|
2814
2818
|
switch (this.char()) {
|
|
2815
2819
|
case 125:
|
|
2816
2820
|
return this.bump(), {
|
|
2817
2821
|
val: {
|
|
2818
|
-
type:
|
|
2822
|
+
type: y.argument,
|
|
2819
2823
|
// value does not include the opening and closing braces.
|
|
2820
2824
|
value: i,
|
|
2821
|
-
location:
|
|
2825
|
+
location: b(n, this.clonePosition())
|
|
2822
2826
|
},
|
|
2823
2827
|
err: null
|
|
2824
2828
|
};
|
|
2825
2829
|
case 44:
|
|
2826
|
-
return this.bump(), this.bumpSpace(), this.isEOF() ? this.error(
|
|
2830
|
+
return this.bump(), this.bumpSpace(), this.isEOF() ? this.error(d.EXPECT_ARGUMENT_CLOSING_BRACE, b(n, this.clonePosition())) : this.parseArgumentOptions(t, r, i, n);
|
|
2827
2831
|
default:
|
|
2828
|
-
return this.error(
|
|
2832
|
+
return this.error(d.MALFORMED_ARGUMENT, b(n, this.clonePosition()));
|
|
2829
2833
|
}
|
|
2830
2834
|
}, e.prototype.parseIdentifierIfPossible = function() {
|
|
2831
|
-
var t = this.clonePosition(), r = this.offset(), n =
|
|
2835
|
+
var t = this.clonePosition(), r = this.offset(), n = Ge(this.message, r), i = r + n.length;
|
|
2832
2836
|
this.bumpTo(i);
|
|
2833
|
-
var s = this.clonePosition(), u =
|
|
2837
|
+
var s = this.clonePosition(), u = b(t, s);
|
|
2834
2838
|
return { value: n, location: u };
|
|
2835
2839
|
}, e.prototype.parseArgumentOptions = function(t, r, n, i) {
|
|
2836
2840
|
var s, u = this.clonePosition(), o = this.parseIdentifierIfPossible().value, l = this.clonePosition();
|
|
2837
2841
|
switch (o) {
|
|
2838
2842
|
case "":
|
|
2839
|
-
return this.error(
|
|
2843
|
+
return this.error(d.EXPECT_ARGUMENT_TYPE, b(u, l));
|
|
2840
2844
|
case "number":
|
|
2841
2845
|
case "date":
|
|
2842
2846
|
case "time": {
|
|
@@ -2847,44 +2851,44 @@ var yn = (
|
|
|
2847
2851
|
var h = this.clonePosition(), c = this.parseSimpleArgStyleIfPossible();
|
|
2848
2852
|
if (c.err)
|
|
2849
2853
|
return c;
|
|
2850
|
-
var m =
|
|
2854
|
+
var m = yn(c.val);
|
|
2851
2855
|
if (m.length === 0)
|
|
2852
|
-
return this.error(
|
|
2853
|
-
var
|
|
2854
|
-
a = { style: m, styleLocation:
|
|
2856
|
+
return this.error(d.EXPECT_ARGUMENT_STYLE, b(this.clonePosition(), this.clonePosition()));
|
|
2857
|
+
var p = b(h, this.clonePosition());
|
|
2858
|
+
a = { style: m, styleLocation: p };
|
|
2855
2859
|
}
|
|
2856
2860
|
var f = this.tryParseArgumentClose(i);
|
|
2857
2861
|
if (f.err)
|
|
2858
2862
|
return f;
|
|
2859
|
-
var _ =
|
|
2863
|
+
var _ = b(i, this.clonePosition());
|
|
2860
2864
|
if (a && nt(a?.style, "::", 0)) {
|
|
2861
|
-
var v =
|
|
2865
|
+
var v = _n(a.style.slice(2));
|
|
2862
2866
|
if (o === "number") {
|
|
2863
2867
|
var c = this.parseNumberSkeletonFromString(v, a.styleLocation);
|
|
2864
2868
|
return c.err ? c : {
|
|
2865
|
-
val: { type:
|
|
2869
|
+
val: { type: y.number, value: n, location: _, style: c.val },
|
|
2866
2870
|
err: null
|
|
2867
2871
|
};
|
|
2868
2872
|
} else {
|
|
2869
2873
|
if (v.length === 0)
|
|
2870
|
-
return this.error(
|
|
2871
|
-
var
|
|
2872
|
-
this.locale && (
|
|
2874
|
+
return this.error(d.EXPECT_DATE_TIME_SKELETON, _);
|
|
2875
|
+
var A = v;
|
|
2876
|
+
this.locale && (A = sn(v, this.locale));
|
|
2873
2877
|
var m = {
|
|
2874
|
-
type:
|
|
2875
|
-
pattern:
|
|
2878
|
+
type: j.dateTime,
|
|
2879
|
+
pattern: A,
|
|
2876
2880
|
location: a.styleLocation,
|
|
2877
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
2878
|
-
},
|
|
2881
|
+
parsedOptions: this.shouldParseSkeletons ? Jr(A) : {}
|
|
2882
|
+
}, O = o === "date" ? y.date : y.time;
|
|
2879
2883
|
return {
|
|
2880
|
-
val: { type:
|
|
2884
|
+
val: { type: O, value: n, location: _, style: m },
|
|
2881
2885
|
err: null
|
|
2882
2886
|
};
|
|
2883
2887
|
}
|
|
2884
2888
|
}
|
|
2885
2889
|
return {
|
|
2886
2890
|
val: {
|
|
2887
|
-
type: o === "number" ?
|
|
2891
|
+
type: o === "number" ? y.number : o === "date" ? y.date : y.time,
|
|
2888
2892
|
value: n,
|
|
2889
2893
|
location: _,
|
|
2890
2894
|
style: (s = a?.style) !== null && s !== void 0 ? s : null
|
|
@@ -2897,50 +2901,50 @@ var yn = (
|
|
|
2897
2901
|
case "select": {
|
|
2898
2902
|
var H = this.clonePosition();
|
|
2899
2903
|
if (this.bumpSpace(), !this.bumpIf(","))
|
|
2900
|
-
return this.error(
|
|
2904
|
+
return this.error(d.EXPECT_SELECT_ARGUMENT_OPTIONS, b(H, me({}, H)));
|
|
2901
2905
|
this.bumpSpace();
|
|
2902
|
-
var
|
|
2903
|
-
if (o !== "select" &&
|
|
2906
|
+
var N = this.parseIdentifierIfPossible(), S = 0;
|
|
2907
|
+
if (o !== "select" && N.value === "offset") {
|
|
2904
2908
|
if (!this.bumpIf(":"))
|
|
2905
|
-
return this.error(
|
|
2909
|
+
return this.error(d.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, b(this.clonePosition(), this.clonePosition()));
|
|
2906
2910
|
this.bumpSpace();
|
|
2907
|
-
var c = this.tryParseDecimalInteger(
|
|
2911
|
+
var c = this.tryParseDecimalInteger(d.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, d.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);
|
|
2908
2912
|
if (c.err)
|
|
2909
2913
|
return c;
|
|
2910
|
-
this.bumpSpace(),
|
|
2914
|
+
this.bumpSpace(), N = this.parseIdentifierIfPossible(), S = c.val;
|
|
2911
2915
|
}
|
|
2912
|
-
var
|
|
2913
|
-
if (
|
|
2914
|
-
return
|
|
2916
|
+
var $ = this.tryParsePluralOrSelectOptions(t, o, r, N);
|
|
2917
|
+
if ($.err)
|
|
2918
|
+
return $;
|
|
2915
2919
|
var f = this.tryParseArgumentClose(i);
|
|
2916
2920
|
if (f.err)
|
|
2917
2921
|
return f;
|
|
2918
|
-
var
|
|
2922
|
+
var ie = b(i, this.clonePosition());
|
|
2919
2923
|
return o === "select" ? {
|
|
2920
2924
|
val: {
|
|
2921
|
-
type:
|
|
2925
|
+
type: y.select,
|
|
2922
2926
|
value: n,
|
|
2923
|
-
options: it(
|
|
2924
|
-
location:
|
|
2927
|
+
options: it($.val),
|
|
2928
|
+
location: ie
|
|
2925
2929
|
},
|
|
2926
2930
|
err: null
|
|
2927
2931
|
} : {
|
|
2928
2932
|
val: {
|
|
2929
|
-
type:
|
|
2933
|
+
type: y.plural,
|
|
2930
2934
|
value: n,
|
|
2931
|
-
options: it(
|
|
2932
|
-
offset:
|
|
2935
|
+
options: it($.val),
|
|
2936
|
+
offset: S,
|
|
2933
2937
|
pluralType: o === "plural" ? "cardinal" : "ordinal",
|
|
2934
|
-
location:
|
|
2938
|
+
location: ie
|
|
2935
2939
|
},
|
|
2936
2940
|
err: null
|
|
2937
2941
|
};
|
|
2938
2942
|
}
|
|
2939
2943
|
default:
|
|
2940
|
-
return this.error(
|
|
2944
|
+
return this.error(d.INVALID_ARGUMENT_TYPE, b(u, l));
|
|
2941
2945
|
}
|
|
2942
2946
|
}, e.prototype.tryParseArgumentClose = function(t) {
|
|
2943
|
-
return this.isEOF() || this.char() !== 125 ? this.error(
|
|
2947
|
+
return this.isEOF() || this.char() !== 125 ? this.error(d.EXPECT_ARGUMENT_CLOSING_BRACE, b(t, this.clonePosition())) : (this.bump(), { val: !0, err: null });
|
|
2944
2948
|
}, e.prototype.parseSimpleArgStyleIfPossible = function() {
|
|
2945
2949
|
for (var t = 0, r = this.clonePosition(); !this.isEOF(); ) {
|
|
2946
2950
|
var n = this.char();
|
|
@@ -2949,7 +2953,7 @@ var yn = (
|
|
|
2949
2953
|
this.bump();
|
|
2950
2954
|
var i = this.clonePosition();
|
|
2951
2955
|
if (!this.bumpUntil("'"))
|
|
2952
|
-
return this.error(
|
|
2956
|
+
return this.error(d.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE, b(i, this.clonePosition()));
|
|
2953
2957
|
this.bump();
|
|
2954
2958
|
break;
|
|
2955
2959
|
}
|
|
@@ -2979,16 +2983,16 @@ var yn = (
|
|
|
2979
2983
|
}, e.prototype.parseNumberSkeletonFromString = function(t, r) {
|
|
2980
2984
|
var n = [];
|
|
2981
2985
|
try {
|
|
2982
|
-
n =
|
|
2986
|
+
n = Kr(t);
|
|
2983
2987
|
} catch {
|
|
2984
|
-
return this.error(
|
|
2988
|
+
return this.error(d.INVALID_NUMBER_SKELETON, r);
|
|
2985
2989
|
}
|
|
2986
2990
|
return {
|
|
2987
2991
|
val: {
|
|
2988
|
-
type:
|
|
2992
|
+
type: j.number,
|
|
2989
2993
|
tokens: n,
|
|
2990
2994
|
location: r,
|
|
2991
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
2995
|
+
parsedOptions: this.shouldParseSkeletons ? nn(n) : {}
|
|
2992
2996
|
},
|
|
2993
2997
|
err: null
|
|
2994
2998
|
};
|
|
@@ -2997,34 +3001,34 @@ var yn = (
|
|
|
2997
3001
|
if (a.length === 0) {
|
|
2998
3002
|
var c = this.clonePosition();
|
|
2999
3003
|
if (r !== "select" && this.bumpIf("=")) {
|
|
3000
|
-
var m = this.tryParseDecimalInteger(
|
|
3004
|
+
var m = this.tryParseDecimalInteger(d.EXPECT_PLURAL_ARGUMENT_SELECTOR, d.INVALID_PLURAL_ARGUMENT_SELECTOR);
|
|
3001
3005
|
if (m.err)
|
|
3002
3006
|
return m;
|
|
3003
|
-
h =
|
|
3007
|
+
h = b(c, this.clonePosition()), a = this.message.slice(c.offset, this.offset());
|
|
3004
3008
|
} else
|
|
3005
3009
|
break;
|
|
3006
3010
|
}
|
|
3007
3011
|
if (l.has(a))
|
|
3008
|
-
return this.error(r === "select" ?
|
|
3012
|
+
return this.error(r === "select" ? d.DUPLICATE_SELECT_ARGUMENT_SELECTOR : d.DUPLICATE_PLURAL_ARGUMENT_SELECTOR, h);
|
|
3009
3013
|
a === "other" && (u = !0), this.bumpSpace();
|
|
3010
|
-
var
|
|
3014
|
+
var p = this.clonePosition();
|
|
3011
3015
|
if (!this.bumpIf("{"))
|
|
3012
|
-
return this.error(r === "select" ?
|
|
3016
|
+
return this.error(r === "select" ? d.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT : d.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT, b(this.clonePosition(), this.clonePosition()));
|
|
3013
3017
|
var f = this.parseMessage(t + 1, r, n);
|
|
3014
3018
|
if (f.err)
|
|
3015
3019
|
return f;
|
|
3016
|
-
var _ = this.tryParseArgumentClose(
|
|
3020
|
+
var _ = this.tryParseArgumentClose(p);
|
|
3017
3021
|
if (_.err)
|
|
3018
3022
|
return _;
|
|
3019
3023
|
o.push([
|
|
3020
3024
|
a,
|
|
3021
3025
|
{
|
|
3022
3026
|
value: f.val,
|
|
3023
|
-
location: p
|
|
3027
|
+
location: b(p, this.clonePosition())
|
|
3024
3028
|
}
|
|
3025
3029
|
]), l.add(a), this.bumpSpace(), s = this.parseIdentifierIfPossible(), a = s.value, h = s.location;
|
|
3026
3030
|
}
|
|
3027
|
-
return o.length === 0 ? this.error(r === "select" ?
|
|
3031
|
+
return o.length === 0 ? this.error(r === "select" ? d.EXPECT_SELECT_ARGUMENT_SELECTOR : d.EXPECT_PLURAL_ARGUMENT_SELECTOR, b(this.clonePosition(), this.clonePosition())) : this.requiresOtherClause && !u ? this.error(d.MISSING_OTHER_CLAUSE, b(this.clonePosition(), this.clonePosition())) : { val: o, err: null };
|
|
3028
3032
|
}, e.prototype.tryParseDecimalInteger = function(t, r) {
|
|
3029
3033
|
var n = 1, i = this.clonePosition();
|
|
3030
3034
|
this.bumpIf("+") || this.bumpIf("-") && (n = -1);
|
|
@@ -3035,7 +3039,7 @@ var yn = (
|
|
|
3035
3039
|
else
|
|
3036
3040
|
break;
|
|
3037
3041
|
}
|
|
3038
|
-
var l =
|
|
3042
|
+
var l = b(i, this.clonePosition());
|
|
3039
3043
|
return s ? (u *= n, bn(u) ? { val: u, err: null } : this.error(r, l)) : this.error(t, l);
|
|
3040
3044
|
}, e.prototype.offset = function() {
|
|
3041
3045
|
return this.position.offset;
|
|
@@ -3102,47 +3106,47 @@ var yn = (
|
|
|
3102
3106
|
}, e;
|
|
3103
3107
|
}()
|
|
3104
3108
|
);
|
|
3105
|
-
function
|
|
3109
|
+
function Fe(e) {
|
|
3106
3110
|
return e >= 97 && e <= 122 || e >= 65 && e <= 90;
|
|
3107
3111
|
}
|
|
3108
3112
|
function xn(e) {
|
|
3109
|
-
return
|
|
3113
|
+
return Fe(e) || e === 47;
|
|
3110
3114
|
}
|
|
3111
|
-
function
|
|
3115
|
+
function vn(e) {
|
|
3112
3116
|
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;
|
|
3113
3117
|
}
|
|
3114
3118
|
function jt(e) {
|
|
3115
3119
|
return e >= 9 && e <= 13 || e === 32 || e === 133 || e >= 8206 && e <= 8207 || e === 8232 || e === 8233;
|
|
3116
3120
|
}
|
|
3117
|
-
function
|
|
3121
|
+
function Hn(e) {
|
|
3118
3122
|
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;
|
|
3119
3123
|
}
|
|
3120
|
-
function
|
|
3124
|
+
function je(e) {
|
|
3121
3125
|
e.forEach(function(t) {
|
|
3122
3126
|
if (delete t.location, Lt(t) || Nt(t))
|
|
3123
3127
|
for (var r in t.options)
|
|
3124
|
-
delete t.options[r].location,
|
|
3128
|
+
delete t.options[r].location, je(t.options[r].value);
|
|
3125
3129
|
else
|
|
3126
|
-
Ot(t) && Mt(t.style) || (
|
|
3130
|
+
Ot(t) && Mt(t.style) || (Pt(t) || Ct(t)) && Re(t.style) ? delete t.style.location : It(t) && je(t.children);
|
|
3127
3131
|
});
|
|
3128
3132
|
}
|
|
3129
|
-
function
|
|
3130
|
-
t === void 0 && (t = {}), t =
|
|
3131
|
-
var r = new
|
|
3133
|
+
function Bn(e, t) {
|
|
3134
|
+
t === void 0 && (t = {}), t = me({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
|
|
3135
|
+
var r = new En(e, t).parse();
|
|
3132
3136
|
if (r.err) {
|
|
3133
|
-
var n = SyntaxError(
|
|
3137
|
+
var n = SyntaxError(d[r.err.kind]);
|
|
3134
3138
|
throw n.location = r.err.location, n.originalMessage = r.err.message, n;
|
|
3135
3139
|
}
|
|
3136
|
-
return t?.captureLocation ||
|
|
3140
|
+
return t?.captureLocation || je(r.val), r.val;
|
|
3137
3141
|
}
|
|
3138
|
-
var
|
|
3142
|
+
var k;
|
|
3139
3143
|
(function(e) {
|
|
3140
3144
|
e.MISSING_VALUE = "MISSING_VALUE", e.INVALID_VALUE = "INVALID_VALUE", e.MISSING_INTL_API = "MISSING_INTL_API";
|
|
3141
|
-
})(
|
|
3142
|
-
var
|
|
3145
|
+
})(k || (k = {}));
|
|
3146
|
+
var ye = (
|
|
3143
3147
|
/** @class */
|
|
3144
3148
|
function(e) {
|
|
3145
|
-
|
|
3149
|
+
_e(t, e);
|
|
3146
3150
|
function t(r, n, i) {
|
|
3147
3151
|
var s = e.call(this, r) || this;
|
|
3148
3152
|
return s.code = n, s.originalMessage = i, s;
|
|
@@ -3154,48 +3158,48 @@ var ge = (
|
|
|
3154
3158
|
), ot = (
|
|
3155
3159
|
/** @class */
|
|
3156
3160
|
function(e) {
|
|
3157
|
-
|
|
3161
|
+
_e(t, e);
|
|
3158
3162
|
function t(r, n, i, s) {
|
|
3159
|
-
return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'),
|
|
3163
|
+
return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'), k.INVALID_VALUE, s) || this;
|
|
3160
3164
|
}
|
|
3161
3165
|
return t;
|
|
3162
|
-
}(
|
|
3163
|
-
),
|
|
3166
|
+
}(ye)
|
|
3167
|
+
), Tn = (
|
|
3164
3168
|
/** @class */
|
|
3165
3169
|
function(e) {
|
|
3166
|
-
|
|
3170
|
+
_e(t, e);
|
|
3167
3171
|
function t(r, n, i) {
|
|
3168
|
-
return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n),
|
|
3172
|
+
return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n), k.INVALID_VALUE, i) || this;
|
|
3169
3173
|
}
|
|
3170
3174
|
return t;
|
|
3171
|
-
}(
|
|
3172
|
-
),
|
|
3175
|
+
}(ye)
|
|
3176
|
+
), wn = (
|
|
3173
3177
|
/** @class */
|
|
3174
3178
|
function(e) {
|
|
3175
|
-
|
|
3179
|
+
_e(t, e);
|
|
3176
3180
|
function t(r, n) {
|
|
3177
|
-
return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'),
|
|
3181
|
+
return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'), k.MISSING_VALUE, n) || this;
|
|
3178
3182
|
}
|
|
3179
3183
|
return t;
|
|
3180
|
-
}(
|
|
3181
|
-
),
|
|
3184
|
+
}(ye)
|
|
3185
|
+
), x;
|
|
3182
3186
|
(function(e) {
|
|
3183
3187
|
e[e.literal = 0] = "literal", e[e.object = 1] = "object";
|
|
3184
|
-
})(
|
|
3185
|
-
function
|
|
3188
|
+
})(x || (x = {}));
|
|
3189
|
+
function Sn(e) {
|
|
3186
3190
|
return e.length < 2 ? e : e.reduce(function(t, r) {
|
|
3187
3191
|
var n = t[t.length - 1];
|
|
3188
|
-
return !n || n.type !==
|
|
3192
|
+
return !n || n.type !== x.literal || r.type !== x.literal ? t.push(r) : n.value += r.value, t;
|
|
3189
3193
|
}, []);
|
|
3190
3194
|
}
|
|
3191
|
-
function
|
|
3195
|
+
function An(e) {
|
|
3192
3196
|
return typeof e == "function";
|
|
3193
3197
|
}
|
|
3194
|
-
function
|
|
3198
|
+
function le(e, t, r, n, i, s, u) {
|
|
3195
3199
|
if (e.length === 1 && Ke(e[0]))
|
|
3196
3200
|
return [
|
|
3197
3201
|
{
|
|
3198
|
-
type:
|
|
3202
|
+
type: x.literal,
|
|
3199
3203
|
value: e[0].value
|
|
3200
3204
|
}
|
|
3201
3205
|
];
|
|
@@ -3203,64 +3207,64 @@ function he(e, t, r, n, i, s, u) {
|
|
|
3203
3207
|
var h = a[l];
|
|
3204
3208
|
if (Ke(h)) {
|
|
3205
3209
|
o.push({
|
|
3206
|
-
type:
|
|
3210
|
+
type: x.literal,
|
|
3207
3211
|
value: h.value
|
|
3208
3212
|
});
|
|
3209
3213
|
continue;
|
|
3210
3214
|
}
|
|
3211
|
-
if (
|
|
3215
|
+
if (Qr(h)) {
|
|
3212
3216
|
typeof s == "number" && o.push({
|
|
3213
|
-
type:
|
|
3217
|
+
type: x.literal,
|
|
3214
3218
|
value: r.getNumberFormat(t).format(s)
|
|
3215
3219
|
});
|
|
3216
3220
|
continue;
|
|
3217
3221
|
}
|
|
3218
3222
|
var c = h.value;
|
|
3219
3223
|
if (!(i && c in i))
|
|
3220
|
-
throw new
|
|
3224
|
+
throw new wn(c, u);
|
|
3221
3225
|
var m = i[c];
|
|
3222
|
-
if (
|
|
3226
|
+
if (Zr(h)) {
|
|
3223
3227
|
(!m || typeof m == "string" || typeof m == "number") && (m = typeof m == "string" || typeof m == "number" ? String(m) : ""), o.push({
|
|
3224
|
-
type: typeof m == "string" ?
|
|
3228
|
+
type: typeof m == "string" ? x.literal : x.object,
|
|
3225
3229
|
value: m
|
|
3226
3230
|
});
|
|
3227
3231
|
continue;
|
|
3228
3232
|
}
|
|
3229
|
-
if (
|
|
3230
|
-
var
|
|
3233
|
+
if (Pt(h)) {
|
|
3234
|
+
var p = typeof h.style == "string" ? n.date[h.style] : Re(h.style) ? h.style.parsedOptions : void 0;
|
|
3231
3235
|
o.push({
|
|
3232
|
-
type:
|
|
3233
|
-
value: r.getDateTimeFormat(t,
|
|
3236
|
+
type: x.literal,
|
|
3237
|
+
value: r.getDateTimeFormat(t, p).format(m)
|
|
3234
3238
|
});
|
|
3235
3239
|
continue;
|
|
3236
3240
|
}
|
|
3237
|
-
if (
|
|
3238
|
-
var
|
|
3241
|
+
if (Ct(h)) {
|
|
3242
|
+
var p = typeof h.style == "string" ? n.time[h.style] : Re(h.style) ? h.style.parsedOptions : n.time.medium;
|
|
3239
3243
|
o.push({
|
|
3240
|
-
type:
|
|
3241
|
-
value: r.getDateTimeFormat(t,
|
|
3244
|
+
type: x.literal,
|
|
3245
|
+
value: r.getDateTimeFormat(t, p).format(m)
|
|
3242
3246
|
});
|
|
3243
3247
|
continue;
|
|
3244
3248
|
}
|
|
3245
3249
|
if (Ot(h)) {
|
|
3246
|
-
var
|
|
3247
|
-
|
|
3248
|
-
type:
|
|
3249
|
-
value: r.getNumberFormat(t,
|
|
3250
|
+
var p = typeof h.style == "string" ? n.number[h.style] : Mt(h.style) ? h.style.parsedOptions : void 0;
|
|
3251
|
+
p && p.scale && (m = m * (p.scale || 1)), o.push({
|
|
3252
|
+
type: x.literal,
|
|
3253
|
+
value: r.getNumberFormat(t, p).format(m)
|
|
3250
3254
|
});
|
|
3251
3255
|
continue;
|
|
3252
3256
|
}
|
|
3253
3257
|
if (It(h)) {
|
|
3254
3258
|
var f = h.children, _ = h.value, v = i[_];
|
|
3255
|
-
if (!
|
|
3256
|
-
throw new
|
|
3257
|
-
var
|
|
3258
|
-
return
|
|
3259
|
+
if (!An(v))
|
|
3260
|
+
throw new Tn(_, "function", u);
|
|
3261
|
+
var A = le(f, t, r, n, i, s), O = v(A.map(function(S) {
|
|
3262
|
+
return S.value;
|
|
3259
3263
|
}));
|
|
3260
|
-
Array.isArray(
|
|
3264
|
+
Array.isArray(O) || (O = [O]), o.push.apply(o, O.map(function(S) {
|
|
3261
3265
|
return {
|
|
3262
|
-
type: typeof
|
|
3263
|
-
value:
|
|
3266
|
+
type: typeof S == "string" ? x.literal : x.object,
|
|
3267
|
+
value: S
|
|
3264
3268
|
};
|
|
3265
3269
|
}));
|
|
3266
3270
|
}
|
|
@@ -3268,38 +3272,38 @@ function he(e, t, r, n, i, s, u) {
|
|
|
3268
3272
|
var H = h.options[m] || h.options.other;
|
|
3269
3273
|
if (!H)
|
|
3270
3274
|
throw new ot(h.value, m, Object.keys(h.options), u);
|
|
3271
|
-
o.push.apply(o,
|
|
3275
|
+
o.push.apply(o, le(H.value, t, r, n, i));
|
|
3272
3276
|
continue;
|
|
3273
3277
|
}
|
|
3274
3278
|
if (Nt(h)) {
|
|
3275
3279
|
var H = h.options["=".concat(m)];
|
|
3276
3280
|
if (!H) {
|
|
3277
3281
|
if (!Intl.PluralRules)
|
|
3278
|
-
throw new
|
|
3282
|
+
throw new ye(`Intl.PluralRules is not available in this environment.
|
|
3279
3283
|
Try polyfilling it using "@formatjs/intl-pluralrules"
|
|
3280
|
-
`,
|
|
3281
|
-
var
|
|
3282
|
-
H = h.options[
|
|
3284
|
+
`, k.MISSING_INTL_API, u);
|
|
3285
|
+
var N = r.getPluralRules(t, { type: h.pluralType }).select(m - (h.offset || 0));
|
|
3286
|
+
H = h.options[N] || h.options.other;
|
|
3283
3287
|
}
|
|
3284
3288
|
if (!H)
|
|
3285
3289
|
throw new ot(h.value, m, Object.keys(h.options), u);
|
|
3286
|
-
o.push.apply(o,
|
|
3290
|
+
o.push.apply(o, le(H.value, t, r, n, i, m - (h.offset || 0)));
|
|
3287
3291
|
continue;
|
|
3288
3292
|
}
|
|
3289
3293
|
}
|
|
3290
|
-
return
|
|
3294
|
+
return Sn(o);
|
|
3291
3295
|
}
|
|
3292
|
-
function
|
|
3293
|
-
return t ?
|
|
3294
|
-
return r[n] =
|
|
3296
|
+
function On(e, t) {
|
|
3297
|
+
return t ? w(w(w({}, e || {}), t || {}), Object.keys(e).reduce(function(r, n) {
|
|
3298
|
+
return r[n] = w(w({}, e[n]), t[n] || {}), r;
|
|
3295
3299
|
}, {})) : e;
|
|
3296
3300
|
}
|
|
3297
|
-
function
|
|
3301
|
+
function Pn(e, t) {
|
|
3298
3302
|
return t ? Object.keys(e).reduce(function(r, n) {
|
|
3299
|
-
return r[n] =
|
|
3300
|
-
},
|
|
3303
|
+
return r[n] = On(e[n], t[n]), r;
|
|
3304
|
+
}, w({}, e)) : e;
|
|
3301
3305
|
}
|
|
3302
|
-
function
|
|
3306
|
+
function Ce(e) {
|
|
3303
3307
|
return {
|
|
3304
3308
|
create: function() {
|
|
3305
3309
|
return {
|
|
@@ -3319,29 +3323,29 @@ function Cn(e) {
|
|
|
3319
3323
|
dateTime: {},
|
|
3320
3324
|
pluralRules: {}
|
|
3321
3325
|
}), {
|
|
3322
|
-
getNumberFormat:
|
|
3326
|
+
getNumberFormat: Ae(function() {
|
|
3323
3327
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3324
3328
|
r[n] = arguments[n];
|
|
3325
|
-
return new ((t = Intl.NumberFormat).bind.apply(t,
|
|
3329
|
+
return new ((t = Intl.NumberFormat).bind.apply(t, Se([void 0], r, !1)))();
|
|
3326
3330
|
}, {
|
|
3327
|
-
cache:
|
|
3328
|
-
strategy:
|
|
3331
|
+
cache: Ce(e.number),
|
|
3332
|
+
strategy: Oe.variadic
|
|
3329
3333
|
}),
|
|
3330
|
-
getDateTimeFormat:
|
|
3334
|
+
getDateTimeFormat: Ae(function() {
|
|
3331
3335
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3332
3336
|
r[n] = arguments[n];
|
|
3333
|
-
return new ((t = Intl.DateTimeFormat).bind.apply(t,
|
|
3337
|
+
return new ((t = Intl.DateTimeFormat).bind.apply(t, Se([void 0], r, !1)))();
|
|
3334
3338
|
}, {
|
|
3335
|
-
cache:
|
|
3336
|
-
strategy:
|
|
3339
|
+
cache: Ce(e.dateTime),
|
|
3340
|
+
strategy: Oe.variadic
|
|
3337
3341
|
}),
|
|
3338
|
-
getPluralRules:
|
|
3342
|
+
getPluralRules: Ae(function() {
|
|
3339
3343
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3340
3344
|
r[n] = arguments[n];
|
|
3341
|
-
return new ((t = Intl.PluralRules).bind.apply(t,
|
|
3345
|
+
return new ((t = Intl.PluralRules).bind.apply(t, Se([void 0], r, !1)))();
|
|
3342
3346
|
}, {
|
|
3343
|
-
cache:
|
|
3344
|
-
strategy:
|
|
3347
|
+
cache: Ce(e.pluralRules),
|
|
3348
|
+
strategy: Oe.variadic
|
|
3345
3349
|
})
|
|
3346
3350
|
};
|
|
3347
3351
|
}
|
|
@@ -3360,11 +3364,11 @@ var kt = (
|
|
|
3360
3364
|
if (a.length === 1)
|
|
3361
3365
|
return a[0].value;
|
|
3362
3366
|
var h = a.reduce(function(c, m) {
|
|
3363
|
-
return !c.length || m.type !==
|
|
3367
|
+
return !c.length || m.type !== x.literal || typeof c[c.length - 1] != "string" ? c.push(m.value) : c[c.length - 1] += m.value, c;
|
|
3364
3368
|
}, []);
|
|
3365
3369
|
return h.length <= 1 ? h[0] || "" : h;
|
|
3366
3370
|
}, this.formatToParts = function(l) {
|
|
3367
|
-
return
|
|
3371
|
+
return le(s.ast, s.locales, s.formatters, s.formats, l, void 0, s.message);
|
|
3368
3372
|
}, this.resolvedOptions = function() {
|
|
3369
3373
|
var l;
|
|
3370
3374
|
return {
|
|
@@ -3378,12 +3382,12 @@ var kt = (
|
|
|
3378
3382
|
var u = i || {};
|
|
3379
3383
|
u.formatters;
|
|
3380
3384
|
var o = Gr(u, ["formatters"]);
|
|
3381
|
-
this.ast = e.__parse(t,
|
|
3385
|
+
this.ast = e.__parse(t, w(w({}, o), { locale: this.resolvedLocale }));
|
|
3382
3386
|
} else
|
|
3383
3387
|
this.ast = t;
|
|
3384
3388
|
if (!Array.isArray(this.ast))
|
|
3385
3389
|
throw new TypeError("A message must be provided as a String or AST.");
|
|
3386
|
-
this.formats =
|
|
3390
|
+
this.formats = Pn(e.formats, n), this.formatters = i && i.formatters || Cn(this.formatterCache);
|
|
3387
3391
|
}
|
|
3388
3392
|
return Object.defineProperty(e, "defaultLocale", {
|
|
3389
3393
|
get: function() {
|
|
@@ -3396,7 +3400,7 @@ var kt = (
|
|
|
3396
3400
|
var r = Intl.NumberFormat.supportedLocalesOf(t);
|
|
3397
3401
|
return r.length > 0 ? new Intl.Locale(r[0]) : new Intl.Locale(typeof t == "string" ? t : t[0]);
|
|
3398
3402
|
}
|
|
3399
|
-
}, e.__parse =
|
|
3403
|
+
}, e.__parse = Bn, e.formats = {
|
|
3400
3404
|
number: {
|
|
3401
3405
|
integer: {
|
|
3402
3406
|
maximumFractionDigits: 0
|
|
@@ -3457,7 +3461,7 @@ var kt = (
|
|
|
3457
3461
|
}, e;
|
|
3458
3462
|
}()
|
|
3459
3463
|
);
|
|
3460
|
-
function
|
|
3464
|
+
function Ln(e, t) {
|
|
3461
3465
|
if (t == null)
|
|
3462
3466
|
return;
|
|
3463
3467
|
if (t in e)
|
|
@@ -3478,36 +3482,36 @@ function Pn(e, t) {
|
|
|
3478
3482
|
n = void 0;
|
|
3479
3483
|
return n;
|
|
3480
3484
|
}
|
|
3481
|
-
const
|
|
3485
|
+
const P = {}, Nn = (e, t, r) => r && (t in P || (P[t] = {}), e in P[t] || (P[t][e] = r), r), Vt = (e, t) => {
|
|
3482
3486
|
if (t == null)
|
|
3483
3487
|
return;
|
|
3484
|
-
if (t in
|
|
3485
|
-
return
|
|
3486
|
-
const r =
|
|
3488
|
+
if (t in P && e in P[t])
|
|
3489
|
+
return P[t][e];
|
|
3490
|
+
const r = ne(t);
|
|
3487
3491
|
for (let n = 0; n < r.length; n++) {
|
|
3488
|
-
const i = r[n], s =
|
|
3492
|
+
const i = r[n], s = Mn(i, e);
|
|
3489
3493
|
if (s)
|
|
3490
|
-
return
|
|
3494
|
+
return Nn(e, t, s);
|
|
3491
3495
|
}
|
|
3492
3496
|
};
|
|
3493
3497
|
let ze;
|
|
3494
|
-
const
|
|
3495
|
-
function
|
|
3498
|
+
const re = ge({});
|
|
3499
|
+
function In(e) {
|
|
3496
3500
|
return ze[e] || null;
|
|
3497
3501
|
}
|
|
3498
3502
|
function Xt(e) {
|
|
3499
3503
|
return e in ze;
|
|
3500
3504
|
}
|
|
3501
|
-
function
|
|
3505
|
+
function Mn(e, t) {
|
|
3502
3506
|
if (!Xt(e))
|
|
3503
3507
|
return null;
|
|
3504
|
-
const r =
|
|
3505
|
-
return
|
|
3508
|
+
const r = In(e);
|
|
3509
|
+
return Ln(r, t);
|
|
3506
3510
|
}
|
|
3507
|
-
function
|
|
3511
|
+
function $n(e) {
|
|
3508
3512
|
if (e == null)
|
|
3509
3513
|
return;
|
|
3510
|
-
const t =
|
|
3514
|
+
const t = ne(e);
|
|
3511
3515
|
for (let r = 0; r < t.length; r++) {
|
|
3512
3516
|
const n = t[r];
|
|
3513
3517
|
if (Xt(n))
|
|
@@ -3515,64 +3519,64 @@ function Mn(e) {
|
|
|
3515
3519
|
}
|
|
3516
3520
|
}
|
|
3517
3521
|
function zt(e, ...t) {
|
|
3518
|
-
delete
|
|
3522
|
+
delete P[e], re.update((r) => (r[e] = Dr.all([r[e] || {}, ...t]), r));
|
|
3519
3523
|
}
|
|
3520
|
-
|
|
3521
|
-
[
|
|
3524
|
+
W(
|
|
3525
|
+
[re],
|
|
3522
3526
|
([e]) => Object.keys(e)
|
|
3523
3527
|
);
|
|
3524
|
-
|
|
3525
|
-
const
|
|
3526
|
-
function
|
|
3527
|
-
|
|
3528
|
+
re.subscribe((e) => ze = e);
|
|
3529
|
+
const fe = {};
|
|
3530
|
+
function Rn(e, t) {
|
|
3531
|
+
fe[e].delete(t), fe[e].size === 0 && delete fe[e];
|
|
3528
3532
|
}
|
|
3529
3533
|
function Wt(e) {
|
|
3530
|
-
return
|
|
3534
|
+
return fe[e];
|
|
3531
3535
|
}
|
|
3532
|
-
function
|
|
3533
|
-
return
|
|
3536
|
+
function Un(e) {
|
|
3537
|
+
return ne(e).map((t) => {
|
|
3534
3538
|
const r = Wt(t);
|
|
3535
3539
|
return [t, r ? [...r] : []];
|
|
3536
3540
|
}).filter(([, t]) => t.length > 0);
|
|
3537
3541
|
}
|
|
3538
|
-
function
|
|
3539
|
-
return e == null ? !1 :
|
|
3542
|
+
function pe(e) {
|
|
3543
|
+
return e == null ? !1 : ne(e).some(
|
|
3540
3544
|
(t) => {
|
|
3541
3545
|
var r;
|
|
3542
3546
|
return (r = Wt(t)) == null ? void 0 : r.size;
|
|
3543
3547
|
}
|
|
3544
3548
|
);
|
|
3545
3549
|
}
|
|
3546
|
-
function
|
|
3550
|
+
function Dn(e, t) {
|
|
3547
3551
|
return Promise.all(
|
|
3548
|
-
t.map((n) => (
|
|
3552
|
+
t.map((n) => (Rn(e, n), n().then((i) => i.default || i)))
|
|
3549
3553
|
).then((n) => zt(e, ...n));
|
|
3550
3554
|
}
|
|
3551
|
-
const
|
|
3555
|
+
const Q = {};
|
|
3552
3556
|
function Zt(e) {
|
|
3553
|
-
if (!
|
|
3554
|
-
return e in
|
|
3555
|
-
const t =
|
|
3556
|
-
return
|
|
3557
|
+
if (!pe(e))
|
|
3558
|
+
return e in Q ? Q[e] : Promise.resolve();
|
|
3559
|
+
const t = Un(e);
|
|
3560
|
+
return Q[e] = Promise.all(
|
|
3557
3561
|
t.map(
|
|
3558
|
-
([r, n]) =>
|
|
3562
|
+
([r, n]) => Dn(r, n)
|
|
3559
3563
|
)
|
|
3560
3564
|
).then(() => {
|
|
3561
|
-
if (
|
|
3565
|
+
if (pe(e))
|
|
3562
3566
|
return Zt(e);
|
|
3563
|
-
delete
|
|
3564
|
-
}),
|
|
3567
|
+
delete Q[e];
|
|
3568
|
+
}), Q[e];
|
|
3565
3569
|
}
|
|
3566
|
-
var at = Object.getOwnPropertySymbols,
|
|
3570
|
+
var at = Object.getOwnPropertySymbols, Gn = Object.prototype.hasOwnProperty, Fn = Object.prototype.propertyIsEnumerable, jn = (e, t) => {
|
|
3567
3571
|
var r = {};
|
|
3568
3572
|
for (var n in e)
|
|
3569
|
-
|
|
3573
|
+
Gn.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
3570
3574
|
if (e != null && at)
|
|
3571
3575
|
for (var n of at(e))
|
|
3572
|
-
t.indexOf(n) < 0 &&
|
|
3576
|
+
t.indexOf(n) < 0 && Fn.call(e, n) && (r[n] = e[n]);
|
|
3573
3577
|
return r;
|
|
3574
3578
|
};
|
|
3575
|
-
const
|
|
3579
|
+
const kn = {
|
|
3576
3580
|
number: {
|
|
3577
3581
|
scientific: { notation: "scientific" },
|
|
3578
3582
|
engineering: { notation: "engineering" },
|
|
@@ -3602,28 +3606,28 @@ const jn = {
|
|
|
3602
3606
|
}
|
|
3603
3607
|
}
|
|
3604
3608
|
};
|
|
3605
|
-
function
|
|
3609
|
+
function Vn({ locale: e, id: t }) {
|
|
3606
3610
|
console.warn(
|
|
3607
|
-
`[svelte-i18n] The message "${t}" was not found in "${
|
|
3611
|
+
`[svelte-i18n] The message "${t}" was not found in "${ne(
|
|
3608
3612
|
e
|
|
3609
|
-
).join('", "')}".${
|
|
3613
|
+
).join('", "')}".${pe(L()) ? `
|
|
3610
3614
|
|
|
3611
3615
|
Note: there are at least one loader still registered to this locale that wasn't executed.` : ""}`
|
|
3612
3616
|
);
|
|
3613
3617
|
}
|
|
3614
|
-
const
|
|
3618
|
+
const Xn = {
|
|
3615
3619
|
fallbackLocale: null,
|
|
3616
3620
|
loadingDelay: 200,
|
|
3617
|
-
formats:
|
|
3621
|
+
formats: kn,
|
|
3618
3622
|
warnOnMissingMessages: !0,
|
|
3619
3623
|
handleMissingMessage: void 0,
|
|
3620
3624
|
ignoreTag: !0
|
|
3621
|
-
},
|
|
3622
|
-
function
|
|
3623
|
-
return
|
|
3625
|
+
}, q = Xn;
|
|
3626
|
+
function V() {
|
|
3627
|
+
return q;
|
|
3624
3628
|
}
|
|
3625
|
-
function
|
|
3626
|
-
const t = e, { formats: r } = t, n =
|
|
3629
|
+
function zn(e) {
|
|
3630
|
+
const t = e, { formats: r } = t, n = jn(t, ["formats"]);
|
|
3627
3631
|
let i = e.fallbackLocale;
|
|
3628
3632
|
if (e.initialLocale)
|
|
3629
3633
|
try {
|
|
@@ -3633,134 +3637,134 @@ function Xn(e) {
|
|
|
3633
3637
|
`[svelte-i18n] The initial locale "${e.initialLocale}" is not a valid locale.`
|
|
3634
3638
|
);
|
|
3635
3639
|
}
|
|
3636
|
-
return n.warnOnMissingMessages && (delete n.warnOnMissingMessages, n.handleMissingMessage == null ? n.handleMissingMessage =
|
|
3640
|
+
return n.warnOnMissingMessages && (delete n.warnOnMissingMessages, n.handleMissingMessage == null ? n.handleMissingMessage = Vn : console.warn(
|
|
3637
3641
|
'[svelte-i18n] The "warnOnMissingMessages" option is deprecated. Please use the "handleMissingMessage" option instead.'
|
|
3638
|
-
)), Object.assign(
|
|
3642
|
+
)), Object.assign(q, n, { initialLocale: i }), r && ("number" in r && Object.assign(q.formats.number, r.number), "date" in r && Object.assign(q.formats.date, r.date), "time" in r && Object.assign(q.formats.time, r.time)), M.set(i);
|
|
3639
3643
|
}
|
|
3640
|
-
const
|
|
3641
|
-
var
|
|
3644
|
+
const Le = ge(!1);
|
|
3645
|
+
var Wn = Object.defineProperty, Zn = Object.defineProperties, Qn = Object.getOwnPropertyDescriptors, ut = Object.getOwnPropertySymbols, qn = Object.prototype.hasOwnProperty, Jn = Object.prototype.propertyIsEnumerable, ht = (e, t, r) => t in e ? Wn(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Yn = (e, t) => {
|
|
3642
3646
|
for (var r in t || (t = {}))
|
|
3643
|
-
|
|
3647
|
+
qn.call(t, r) && ht(e, r, t[r]);
|
|
3644
3648
|
if (ut)
|
|
3645
3649
|
for (var r of ut(t))
|
|
3646
|
-
|
|
3650
|
+
Jn.call(t, r) && ht(e, r, t[r]);
|
|
3647
3651
|
return e;
|
|
3648
|
-
},
|
|
3649
|
-
let
|
|
3650
|
-
const
|
|
3652
|
+
}, Kn = (e, t) => Zn(e, Qn(t));
|
|
3653
|
+
let ke;
|
|
3654
|
+
const de = ge(null);
|
|
3651
3655
|
function lt(e) {
|
|
3652
3656
|
return e.split("-").map((t, r, n) => n.slice(0, r + 1).join("-")).reverse();
|
|
3653
3657
|
}
|
|
3654
|
-
function
|
|
3658
|
+
function ne(e, t = V().fallbackLocale) {
|
|
3655
3659
|
const r = lt(e);
|
|
3656
3660
|
return t ? [.../* @__PURE__ */ new Set([...r, ...lt(t)])] : r;
|
|
3657
3661
|
}
|
|
3658
|
-
function
|
|
3659
|
-
return
|
|
3662
|
+
function L() {
|
|
3663
|
+
return ke ?? void 0;
|
|
3660
3664
|
}
|
|
3661
|
-
|
|
3662
|
-
|
|
3665
|
+
de.subscribe((e) => {
|
|
3666
|
+
ke = e ?? void 0, typeof window < "u" && e != null && document.documentElement.setAttribute("lang", e);
|
|
3663
3667
|
});
|
|
3664
|
-
const
|
|
3665
|
-
if (e &&
|
|
3666
|
-
const { loadingDelay: t } =
|
|
3668
|
+
const ei = (e) => {
|
|
3669
|
+
if (e && $n(e) && pe(e)) {
|
|
3670
|
+
const { loadingDelay: t } = V();
|
|
3667
3671
|
let r;
|
|
3668
|
-
return typeof window < "u" &&
|
|
3669
|
-
() =>
|
|
3672
|
+
return typeof window < "u" && L() != null && t ? r = window.setTimeout(
|
|
3673
|
+
() => Le.set(!0),
|
|
3670
3674
|
t
|
|
3671
|
-
) :
|
|
3672
|
-
|
|
3675
|
+
) : Le.set(!0), Zt(e).then(() => {
|
|
3676
|
+
de.set(e);
|
|
3673
3677
|
}).finally(() => {
|
|
3674
|
-
clearTimeout(r),
|
|
3678
|
+
clearTimeout(r), Le.set(!1);
|
|
3675
3679
|
});
|
|
3676
3680
|
}
|
|
3677
|
-
return
|
|
3678
|
-
},
|
|
3679
|
-
set:
|
|
3680
|
-
}),
|
|
3681
|
+
return de.set(e);
|
|
3682
|
+
}, M = Kn(Yn({}, de), {
|
|
3683
|
+
set: ei
|
|
3684
|
+
}), Ee = (e) => {
|
|
3681
3685
|
const t = /* @__PURE__ */ Object.create(null);
|
|
3682
3686
|
return (n) => {
|
|
3683
3687
|
const i = JSON.stringify(n);
|
|
3684
3688
|
return i in t ? t[i] : t[i] = e(n);
|
|
3685
3689
|
};
|
|
3686
3690
|
};
|
|
3687
|
-
var
|
|
3691
|
+
var ti = Object.defineProperty, be = Object.getOwnPropertySymbols, Qt = Object.prototype.hasOwnProperty, qt = Object.prototype.propertyIsEnumerable, ft = (e, t, r) => t in e ? ti(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, We = (e, t) => {
|
|
3688
3692
|
for (var r in t || (t = {}))
|
|
3689
3693
|
Qt.call(t, r) && ft(e, r, t[r]);
|
|
3690
|
-
if (
|
|
3691
|
-
for (var r of
|
|
3694
|
+
if (be)
|
|
3695
|
+
for (var r of be(t))
|
|
3692
3696
|
qt.call(t, r) && ft(e, r, t[r]);
|
|
3693
3697
|
return e;
|
|
3694
|
-
},
|
|
3698
|
+
}, Z = (e, t) => {
|
|
3695
3699
|
var r = {};
|
|
3696
3700
|
for (var n in e)
|
|
3697
3701
|
Qt.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
3698
|
-
if (e != null &&
|
|
3699
|
-
for (var n of
|
|
3702
|
+
if (e != null && be)
|
|
3703
|
+
for (var n of be(e))
|
|
3700
3704
|
t.indexOf(n) < 0 && qt.call(e, n) && (r[n] = e[n]);
|
|
3701
3705
|
return r;
|
|
3702
3706
|
};
|
|
3703
|
-
const
|
|
3704
|
-
const { formats: r } =
|
|
3707
|
+
const ee = (e, t) => {
|
|
3708
|
+
const { formats: r } = V();
|
|
3705
3709
|
if (e in r && t in r[e])
|
|
3706
3710
|
return r[e][t];
|
|
3707
3711
|
throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`);
|
|
3708
|
-
},
|
|
3712
|
+
}, ri = Ee(
|
|
3709
3713
|
(e) => {
|
|
3710
|
-
var t = e, { locale: r, format: n } = t, i =
|
|
3714
|
+
var t = e, { locale: r, format: n } = t, i = Z(t, ["locale", "format"]);
|
|
3711
3715
|
if (r == null)
|
|
3712
3716
|
throw new Error('[svelte-i18n] A "locale" must be set to format numbers');
|
|
3713
|
-
return n && (i =
|
|
3717
|
+
return n && (i = ee("number", n)), new Intl.NumberFormat(r, i);
|
|
3714
3718
|
}
|
|
3715
|
-
),
|
|
3719
|
+
), ni = Ee(
|
|
3716
3720
|
(e) => {
|
|
3717
|
-
var t = e, { locale: r, format: n } = t, i =
|
|
3721
|
+
var t = e, { locale: r, format: n } = t, i = Z(t, ["locale", "format"]);
|
|
3718
3722
|
if (r == null)
|
|
3719
3723
|
throw new Error('[svelte-i18n] A "locale" must be set to format dates');
|
|
3720
|
-
return n ? i =
|
|
3724
|
+
return n ? i = ee("date", n) : Object.keys(i).length === 0 && (i = ee("date", "short")), new Intl.DateTimeFormat(r, i);
|
|
3721
3725
|
}
|
|
3722
|
-
),
|
|
3726
|
+
), ii = Ee(
|
|
3723
3727
|
(e) => {
|
|
3724
|
-
var t = e, { locale: r, format: n } = t, i =
|
|
3728
|
+
var t = e, { locale: r, format: n } = t, i = Z(t, ["locale", "format"]);
|
|
3725
3729
|
if (r == null)
|
|
3726
3730
|
throw new Error(
|
|
3727
3731
|
'[svelte-i18n] A "locale" must be set to format time values'
|
|
3728
3732
|
);
|
|
3729
|
-
return n ? i =
|
|
3733
|
+
return n ? i = ee("time", n) : Object.keys(i).length === 0 && (i = ee("time", "short")), new Intl.DateTimeFormat(r, i);
|
|
3730
3734
|
}
|
|
3731
|
-
),
|
|
3732
|
-
var t = e, {
|
|
3733
|
-
locale: r = P()
|
|
3734
|
-
} = t, n = W(t, [
|
|
3735
|
-
"locale"
|
|
3736
|
-
]);
|
|
3737
|
-
return ti(We({ locale: r }, n));
|
|
3738
|
-
}, si = (e = {}) => {
|
|
3735
|
+
), si = (e = {}) => {
|
|
3739
3736
|
var t = e, {
|
|
3740
|
-
locale: r =
|
|
3741
|
-
} = t, n =
|
|
3737
|
+
locale: r = L()
|
|
3738
|
+
} = t, n = Z(t, [
|
|
3742
3739
|
"locale"
|
|
3743
3740
|
]);
|
|
3744
3741
|
return ri(We({ locale: r }, n));
|
|
3745
3742
|
}, oi = (e = {}) => {
|
|
3746
3743
|
var t = e, {
|
|
3747
|
-
locale: r =
|
|
3748
|
-
} = t, n =
|
|
3744
|
+
locale: r = L()
|
|
3745
|
+
} = t, n = Z(t, [
|
|
3749
3746
|
"locale"
|
|
3750
3747
|
]);
|
|
3751
3748
|
return ni(We({ locale: r }, n));
|
|
3752
|
-
}, ai =
|
|
3749
|
+
}, ai = (e = {}) => {
|
|
3750
|
+
var t = e, {
|
|
3751
|
+
locale: r = L()
|
|
3752
|
+
} = t, n = Z(t, [
|
|
3753
|
+
"locale"
|
|
3754
|
+
]);
|
|
3755
|
+
return ii(We({ locale: r }, n));
|
|
3756
|
+
}, ui = Ee(
|
|
3753
3757
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
3754
|
-
(e, t =
|
|
3755
|
-
ignoreTag:
|
|
3758
|
+
(e, t = L()) => new kt(e, t, V().formats, {
|
|
3759
|
+
ignoreTag: V().ignoreTag
|
|
3756
3760
|
})
|
|
3757
|
-
),
|
|
3761
|
+
), hi = (e, t = {}) => {
|
|
3758
3762
|
var r, n, i, s;
|
|
3759
3763
|
let u = t;
|
|
3760
3764
|
typeof e == "object" && (u = e, e = u.id);
|
|
3761
3765
|
const {
|
|
3762
3766
|
values: o,
|
|
3763
|
-
locale: l =
|
|
3767
|
+
locale: l = L(),
|
|
3764
3768
|
default: a
|
|
3765
3769
|
} = u;
|
|
3766
3770
|
if (l == null)
|
|
@@ -3769,7 +3773,7 @@ const K = (e, t) => {
|
|
|
3769
3773
|
);
|
|
3770
3774
|
let h = Vt(e, l);
|
|
3771
3775
|
if (!h)
|
|
3772
|
-
h = (s = (i = (n = (r =
|
|
3776
|
+
h = (s = (i = (n = (r = V()).handleMissingMessage) == null ? void 0 : n.call(r, { locale: l, id: e, defaultValue: a })) != null ? i : a) != null ? s : e;
|
|
3773
3777
|
else if (typeof h != "string")
|
|
3774
3778
|
return console.warn(
|
|
3775
3779
|
`[svelte-i18n] Message with id "${e}" must be of type "string", found: "${typeof h}". Gettin its value through the "$format" method is deprecated; use the "json" method instead.`
|
|
@@ -3778,7 +3782,7 @@ const K = (e, t) => {
|
|
|
3778
3782
|
return h;
|
|
3779
3783
|
let c = h;
|
|
3780
3784
|
try {
|
|
3781
|
-
c =
|
|
3785
|
+
c = ui(h, l).format(o);
|
|
3782
3786
|
} catch (m) {
|
|
3783
3787
|
m instanceof Error && console.warn(
|
|
3784
3788
|
`[svelte-i18n] Message "${e}" has syntax error:`,
|
|
@@ -3786,11 +3790,11 @@ const K = (e, t) => {
|
|
|
3786
3790
|
);
|
|
3787
3791
|
}
|
|
3788
3792
|
return c;
|
|
3789
|
-
},
|
|
3790
|
-
|
|
3791
|
-
|
|
3792
|
-
|
|
3793
|
-
|
|
3793
|
+
}, li = (e, t) => ai(t).format(e), fi = (e, t) => oi(t).format(e), ci = (e, t) => si(t).format(e), mi = (e, t = L()) => Vt(e, t), pi = W([M, re], () => hi);
|
|
3794
|
+
W([M], () => li);
|
|
3795
|
+
W([M], () => fi);
|
|
3796
|
+
W([M], () => ci);
|
|
3797
|
+
W([M, re], () => mi);
|
|
3794
3798
|
function di(e, t) {
|
|
3795
3799
|
if (e) {
|
|
3796
3800
|
const r = document.createElement("style");
|
|
@@ -3806,7 +3810,7 @@ function bi(e, t) {
|
|
|
3806
3810
|
console.error("There was an error while trying to load client styling from URL", n);
|
|
3807
3811
|
});
|
|
3808
3812
|
}
|
|
3809
|
-
function
|
|
3813
|
+
function gi(e, t, r) {
|
|
3810
3814
|
if (window.emMessageBus) {
|
|
3811
3815
|
const n = document.createElement("style");
|
|
3812
3816
|
window.emMessageBus.subscribe(t, (i) => {
|
|
@@ -3817,10 +3821,10 @@ function pi(e, t, r) {
|
|
|
3817
3821
|
function ct(e, t) {
|
|
3818
3822
|
zt(e, t);
|
|
3819
3823
|
}
|
|
3820
|
-
function
|
|
3821
|
-
|
|
3824
|
+
function _i(e) {
|
|
3825
|
+
zn({
|
|
3822
3826
|
fallbackLocale: "en"
|
|
3823
|
-
}),
|
|
3827
|
+
}), M.set(e);
|
|
3824
3828
|
}
|
|
3825
3829
|
const mt = {
|
|
3826
3830
|
en: {
|
|
@@ -3845,18 +3849,18 @@ const mt = {
|
|
|
3845
3849
|
}
|
|
3846
3850
|
}
|
|
3847
3851
|
};
|
|
3848
|
-
function
|
|
3852
|
+
function yi(e) {
|
|
3849
3853
|
nr(e, "svelte-brbf89", ".CashierHeader{display:flex;position:relative;align-items:center;height:var(--emw--header-height, 40px);background-color:var(--emw--color-background, #F9FAFF);width:100%;padding:10px 0}.CashierHeaderLeftButton{font-size:var(--emw--font-size-small, 14px);font-weight:var(--emw--font-weight-semibold, 500);margin-bottom:0;display:flex;align-items:center;font-variant:all-small-caps;height:32px;margin-left:5px;gap:2px;cursor:pointer;stroke:var(--emw--color-primary, #3854FF)}.CashierHeaderLeftButton svg path{fill:var(--emw--color-primary, #3854FF)}.CashierHeaderLeftButton.disabled{pointer-events:none}.CashierHeaderTitle{color:var(--emw--color-primary, #3854FF);font-size:var(--emw--font-size-medium, 16px);line-height:125%;font-weight:var(--emw--font-weight-semibold, 500);margin-left:15px;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;stroke:var(--emw--color-primary, #3854FF)}");
|
|
3850
3854
|
}
|
|
3851
|
-
const
|
|
3855
|
+
const Ei = (e) => ({}), pt = (e) => ({}), xi = (e) => ({}), dt = (e) => ({}), vi = (e) => ({}), bt = (e) => ({});
|
|
3852
3856
|
function gt(e) {
|
|
3853
3857
|
let t, r, n;
|
|
3854
3858
|
return {
|
|
3855
3859
|
c() {
|
|
3856
|
-
t =
|
|
3860
|
+
t = X("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");
|
|
3857
3861
|
},
|
|
3858
3862
|
m(i, s) {
|
|
3859
|
-
|
|
3863
|
+
I(i, t, s), r || (n = Bt(
|
|
3860
3864
|
t,
|
|
3861
3865
|
"click",
|
|
3862
3866
|
/*back*/
|
|
@@ -3869,7 +3873,7 @@ function gt(e) {
|
|
|
3869
3873
|
}
|
|
3870
3874
|
};
|
|
3871
3875
|
}
|
|
3872
|
-
function
|
|
3876
|
+
function Hi(e) {
|
|
3873
3877
|
let t, r = (
|
|
3874
3878
|
/*backButton*/
|
|
3875
3879
|
e[1] && gt(e)
|
|
@@ -3879,7 +3883,7 @@ function vi(e) {
|
|
|
3879
3883
|
r && r.c(), t = Ht();
|
|
3880
3884
|
},
|
|
3881
3885
|
m(n, i) {
|
|
3882
|
-
r && r.m(n, i),
|
|
3886
|
+
r && r.m(n, i), I(n, t, i);
|
|
3883
3887
|
},
|
|
3884
3888
|
p(n, i) {
|
|
3885
3889
|
/*backButton*/
|
|
@@ -3890,7 +3894,7 @@ function vi(e) {
|
|
|
3890
3894
|
}
|
|
3891
3895
|
};
|
|
3892
3896
|
}
|
|
3893
|
-
function
|
|
3897
|
+
function Bi(e) {
|
|
3894
3898
|
let t, r = (
|
|
3895
3899
|
/*$_*/
|
|
3896
3900
|
e[4](
|
|
@@ -3900,10 +3904,10 @@ function Hi(e) {
|
|
|
3900
3904
|
), n;
|
|
3901
3905
|
return {
|
|
3902
3906
|
c() {
|
|
3903
|
-
t =
|
|
3907
|
+
t = X("span"), n = Xe(r), z(t, "class", "CashierHeaderTitle");
|
|
3904
3908
|
},
|
|
3905
3909
|
m(i, s) {
|
|
3906
|
-
|
|
3910
|
+
I(i, t, s), ce(t, n);
|
|
3907
3911
|
},
|
|
3908
3912
|
p(i, s) {
|
|
3909
3913
|
s & /*$_, titleText*/
|
|
@@ -3922,10 +3926,10 @@ function _t(e) {
|
|
|
3922
3926
|
let t, r, n;
|
|
3923
3927
|
return {
|
|
3924
3928
|
c() {
|
|
3925
|
-
t =
|
|
3929
|
+
t = X("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");
|
|
3926
3930
|
},
|
|
3927
3931
|
m(i, s) {
|
|
3928
|
-
|
|
3932
|
+
I(i, t, s), r || (n = Bt(
|
|
3929
3933
|
t,
|
|
3930
3934
|
"click",
|
|
3931
3935
|
/*close*/
|
|
@@ -3938,7 +3942,7 @@ function _t(e) {
|
|
|
3938
3942
|
}
|
|
3939
3943
|
};
|
|
3940
3944
|
}
|
|
3941
|
-
function
|
|
3945
|
+
function Ti(e) {
|
|
3942
3946
|
let t, r = (
|
|
3943
3947
|
/*closeButton*/
|
|
3944
3948
|
e[3] && _t(e)
|
|
@@ -3948,7 +3952,7 @@ function Bi(e) {
|
|
|
3948
3952
|
r && r.c(), t = Ht();
|
|
3949
3953
|
},
|
|
3950
3954
|
m(n, i) {
|
|
3951
|
-
r && r.m(n, i),
|
|
3955
|
+
r && r.m(n, i), I(n, t, i);
|
|
3952
3956
|
},
|
|
3953
3957
|
p(n, i) {
|
|
3954
3958
|
/*closeButton*/
|
|
@@ -3959,119 +3963,119 @@ function Bi(e) {
|
|
|
3959
3963
|
}
|
|
3960
3964
|
};
|
|
3961
3965
|
}
|
|
3962
|
-
function
|
|
3966
|
+
function wi(e) {
|
|
3963
3967
|
let t, r, n, i;
|
|
3964
3968
|
const s = (
|
|
3965
3969
|
/*#slots*/
|
|
3966
3970
|
e[16].leftButton
|
|
3967
|
-
), u =
|
|
3971
|
+
), u = xe(
|
|
3968
3972
|
s,
|
|
3969
3973
|
e,
|
|
3970
3974
|
/*$$scope*/
|
|
3971
3975
|
e[15],
|
|
3972
|
-
|
|
3973
|
-
), o = u ||
|
|
3976
|
+
bt
|
|
3977
|
+
), o = u || Hi(e), l = (
|
|
3974
3978
|
/*#slots*/
|
|
3975
3979
|
e[16].title
|
|
3976
|
-
), a =
|
|
3980
|
+
), a = xe(
|
|
3977
3981
|
l,
|
|
3978
3982
|
e,
|
|
3979
3983
|
/*$$scope*/
|
|
3980
3984
|
e[15],
|
|
3981
|
-
|
|
3982
|
-
), h = a ||
|
|
3985
|
+
dt
|
|
3986
|
+
), h = a || Bi(e), c = (
|
|
3983
3987
|
/*#slots*/
|
|
3984
3988
|
e[16].rightButton
|
|
3985
|
-
), m =
|
|
3989
|
+
), m = xe(
|
|
3986
3990
|
c,
|
|
3987
3991
|
e,
|
|
3988
3992
|
/*$$scope*/
|
|
3989
3993
|
e[15],
|
|
3990
|
-
|
|
3991
|
-
),
|
|
3994
|
+
pt
|
|
3995
|
+
), p = m || Ti(e);
|
|
3992
3996
|
return {
|
|
3993
3997
|
c() {
|
|
3994
|
-
t =
|
|
3998
|
+
t = X("div"), o && o.c(), r = qe(), h && h.c(), n = qe(), p && p.c(), z(t, "class", "CashierHeader");
|
|
3995
3999
|
},
|
|
3996
4000
|
m(f, _) {
|
|
3997
|
-
|
|
4001
|
+
I(f, t, _), o && o.m(t, null), ce(t, r), h && h.m(t, null), ce(t, n), p && p.m(t, null), e[17](t), i = !0;
|
|
3998
4002
|
},
|
|
3999
4003
|
p(f, [_]) {
|
|
4000
4004
|
u ? u.p && (!i || _ & /*$$scope*/
|
|
4001
|
-
32768) &&
|
|
4005
|
+
32768) && He(
|
|
4002
4006
|
u,
|
|
4003
4007
|
s,
|
|
4004
4008
|
f,
|
|
4005
4009
|
/*$$scope*/
|
|
4006
4010
|
f[15],
|
|
4007
|
-
i ?
|
|
4011
|
+
i ? ve(
|
|
4008
4012
|
s,
|
|
4009
4013
|
/*$$scope*/
|
|
4010
4014
|
f[15],
|
|
4011
4015
|
_,
|
|
4012
|
-
|
|
4013
|
-
) :
|
|
4016
|
+
vi
|
|
4017
|
+
) : Be(
|
|
4014
4018
|
/*$$scope*/
|
|
4015
4019
|
f[15]
|
|
4016
4020
|
),
|
|
4017
|
-
|
|
4021
|
+
bt
|
|
4018
4022
|
) : o && o.p && (!i || _ & /*backButton*/
|
|
4019
4023
|
2) && o.p(f, i ? _ : -1), a ? a.p && (!i || _ & /*$$scope*/
|
|
4020
|
-
32768) &&
|
|
4024
|
+
32768) && He(
|
|
4021
4025
|
a,
|
|
4022
4026
|
l,
|
|
4023
4027
|
f,
|
|
4024
4028
|
/*$$scope*/
|
|
4025
4029
|
f[15],
|
|
4026
|
-
i ?
|
|
4030
|
+
i ? ve(
|
|
4027
4031
|
l,
|
|
4028
4032
|
/*$$scope*/
|
|
4029
4033
|
f[15],
|
|
4030
4034
|
_,
|
|
4031
4035
|
xi
|
|
4032
|
-
) :
|
|
4036
|
+
) : Be(
|
|
4033
4037
|
/*$$scope*/
|
|
4034
4038
|
f[15]
|
|
4035
4039
|
),
|
|
4036
|
-
|
|
4040
|
+
dt
|
|
4037
4041
|
) : h && h.p && (!i || _ & /*$_, titleText*/
|
|
4038
4042
|
20) && h.p(f, i ? _ : -1), m ? m.p && (!i || _ & /*$$scope*/
|
|
4039
|
-
32768) &&
|
|
4043
|
+
32768) && He(
|
|
4040
4044
|
m,
|
|
4041
4045
|
c,
|
|
4042
4046
|
f,
|
|
4043
4047
|
/*$$scope*/
|
|
4044
4048
|
f[15],
|
|
4045
|
-
i ?
|
|
4049
|
+
i ? ve(
|
|
4046
4050
|
c,
|
|
4047
4051
|
/*$$scope*/
|
|
4048
4052
|
f[15],
|
|
4049
4053
|
_,
|
|
4050
|
-
|
|
4051
|
-
) :
|
|
4054
|
+
Ei
|
|
4055
|
+
) : Be(
|
|
4052
4056
|
/*$$scope*/
|
|
4053
4057
|
f[15]
|
|
4054
4058
|
),
|
|
4055
|
-
|
|
4056
|
-
) :
|
|
4057
|
-
8) &&
|
|
4059
|
+
pt
|
|
4060
|
+
) : p && p.p && (!i || _ & /*closeButton*/
|
|
4061
|
+
8) && p.p(f, i ? _ : -1);
|
|
4058
4062
|
},
|
|
4059
4063
|
i(f) {
|
|
4060
|
-
i || (
|
|
4064
|
+
i || (ue(o, f), ue(h, f), ue(p, f), i = !0);
|
|
4061
4065
|
},
|
|
4062
4066
|
o(f) {
|
|
4063
|
-
|
|
4067
|
+
we(o, f), we(h, f), we(p, f), i = !1;
|
|
4064
4068
|
},
|
|
4065
4069
|
d(f) {
|
|
4066
|
-
f && C(t), o && o.d(f), h && h.d(f),
|
|
4070
|
+
f && C(t), o && o.d(f), h && h.d(f), p && p.d(f), e[17](null);
|
|
4067
4071
|
}
|
|
4068
4072
|
};
|
|
4069
4073
|
}
|
|
4070
|
-
function
|
|
4074
|
+
function Si(e, t, r) {
|
|
4071
4075
|
let n;
|
|
4072
|
-
rr(e,
|
|
4073
|
-
let { $$slots: i = {}, $$scope: s } = t, { clientstyling: u = "" } = t, { clientstylingurl: o = "" } = t, { translationurl: l = "" } = t, { showbackbutton: a = "" } = t, { title: h = "header.general" } = t, { lang: c = "en" } = t, { showclosebutton: m = "" } = t, { mbsource:
|
|
4074
|
-
const
|
|
4076
|
+
rr(e, pi, (g) => r(4, n = g));
|
|
4077
|
+
let { $$slots: i = {}, $$scope: s } = t, { clientstyling: u = "" } = t, { clientstylingurl: o = "" } = t, { translationurl: l = "" } = t, { showbackbutton: a = "" } = t, { title: h = "header.general" } = t, { lang: c = "en" } = t, { showclosebutton: m = "" } = t, { mbsource: p = "" } = t, f, _ = !1, v, A = !1;
|
|
4078
|
+
const O = () => {
|
|
4075
4079
|
fetch(l).then((g) => g.json()).then((g) => {
|
|
4076
4080
|
Object.keys(g).forEach((Ze) => {
|
|
4077
4081
|
ct(Ze, g[Ze]);
|
|
@@ -4084,45 +4088,45 @@ function wi(e, t, r) {
|
|
|
4084
4088
|
ct(g, mt[g]);
|
|
4085
4089
|
});
|
|
4086
4090
|
const H = () => {
|
|
4087
|
-
|
|
4088
|
-
},
|
|
4091
|
+
_i(c);
|
|
4092
|
+
}, N = () => {
|
|
4089
4093
|
window.postMessage({ type: "CloseCashier" }, window.location.href);
|
|
4090
|
-
},
|
|
4094
|
+
}, S = () => {
|
|
4091
4095
|
window.postMessage({ type: "BackCashier" }, window.location.href);
|
|
4092
|
-
},
|
|
4096
|
+
}, $ = () => {
|
|
4093
4097
|
r(1, _ = !!a && a !== "false");
|
|
4094
|
-
},
|
|
4095
|
-
r(3,
|
|
4098
|
+
}, ie = () => {
|
|
4099
|
+
r(3, A = !!m && m !== "false");
|
|
4096
4100
|
}, Yt = () => {
|
|
4097
4101
|
r(2, v = h || "header.general");
|
|
4098
4102
|
};
|
|
4099
4103
|
lr(() => () => {
|
|
4100
4104
|
});
|
|
4101
4105
|
function Kt(g) {
|
|
4102
|
-
|
|
4106
|
+
Ne[g ? "unshift" : "push"](() => {
|
|
4103
4107
|
f = g, r(0, f);
|
|
4104
4108
|
});
|
|
4105
4109
|
}
|
|
4106
4110
|
return e.$$set = (g) => {
|
|
4107
|
-
"clientstyling" in g && r(7, u = g.clientstyling), "clientstylingurl" in g && r(8, o = g.clientstylingurl), "translationurl" in g && r(9, l = g.translationurl), "showbackbutton" in g && r(10, a = g.showbackbutton), "title" in g && r(11, h = g.title), "lang" in g && r(12, c = g.lang), "showclosebutton" in g && r(13, m = g.showclosebutton), "mbsource" in g && r(14,
|
|
4111
|
+
"clientstyling" in g && r(7, u = g.clientstyling), "clientstylingurl" in g && r(8, o = g.clientstylingurl), "translationurl" in g && r(9, l = g.translationurl), "showbackbutton" in g && r(10, a = g.showbackbutton), "title" in g && r(11, h = g.title), "lang" in g && r(12, c = g.lang), "showclosebutton" in g && r(13, m = g.showclosebutton), "mbsource" in g && r(14, p = g.mbsource), "$$scope" in g && r(15, s = g.$$scope);
|
|
4108
4112
|
}, e.$$.update = () => {
|
|
4109
4113
|
e.$$.dirty & /*lang*/
|
|
4110
4114
|
4096 && c && H(), e.$$.dirty & /*lang, title*/
|
|
4111
4115
|
6144 && c && h && Yt(), e.$$.dirty & /*clientstyling, customStylingContainer*/
|
|
4112
4116
|
129 && u && f && di(f, u), e.$$.dirty & /*clientstylingurl, customStylingContainer*/
|
|
4113
4117
|
257 && o && f && bi(f, o), e.$$.dirty & /*mbsource, customStylingContainer*/
|
|
4114
|
-
16385 &&
|
|
4115
|
-
4608 && c && l &&
|
|
4116
|
-
1024 && a &&
|
|
4117
|
-
8192 && m &&
|
|
4118
|
+
16385 && p && f && gi(f, `${p}.Style`), e.$$.dirty & /*lang, translationurl*/
|
|
4119
|
+
4608 && c && l && O(), e.$$.dirty & /*showbackbutton*/
|
|
4120
|
+
1024 && a && $(), e.$$.dirty & /*showclosebutton*/
|
|
4121
|
+
8192 && m && ie();
|
|
4118
4122
|
}, [
|
|
4119
4123
|
f,
|
|
4120
4124
|
_,
|
|
4121
4125
|
v,
|
|
4122
|
-
|
|
4126
|
+
A,
|
|
4123
4127
|
n,
|
|
4124
|
-
|
|
4125
|
-
|
|
4128
|
+
N,
|
|
4129
|
+
S,
|
|
4126
4130
|
u,
|
|
4127
4131
|
o,
|
|
4128
4132
|
l,
|
|
@@ -4130,20 +4134,20 @@ function wi(e, t, r) {
|
|
|
4130
4134
|
h,
|
|
4131
4135
|
c,
|
|
4132
4136
|
m,
|
|
4133
|
-
|
|
4137
|
+
p,
|
|
4134
4138
|
s,
|
|
4135
4139
|
i,
|
|
4136
4140
|
Kt
|
|
4137
4141
|
];
|
|
4138
4142
|
}
|
|
4139
|
-
class Jt extends
|
|
4143
|
+
class Jt extends xr {
|
|
4140
4144
|
constructor(t) {
|
|
4141
4145
|
super(), yr(
|
|
4142
4146
|
this,
|
|
4143
4147
|
t,
|
|
4148
|
+
Si,
|
|
4144
4149
|
wi,
|
|
4145
|
-
|
|
4146
|
-
xt,
|
|
4150
|
+
Et,
|
|
4147
4151
|
{
|
|
4148
4152
|
clientstyling: 7,
|
|
4149
4153
|
clientstylingurl: 8,
|
|
@@ -4154,7 +4158,7 @@ class Jt extends Er {
|
|
|
4154
4158
|
showclosebutton: 13,
|
|
4155
4159
|
mbsource: 14
|
|
4156
4160
|
},
|
|
4157
|
-
|
|
4161
|
+
yi
|
|
4158
4162
|
);
|
|
4159
4163
|
}
|
|
4160
4164
|
get clientstyling() {
|
|
@@ -4206,35 +4210,35 @@ class Jt extends Er {
|
|
|
4206
4210
|
this.$$set({ mbsource: t }), T();
|
|
4207
4211
|
}
|
|
4208
4212
|
}
|
|
4209
|
-
|
|
4210
|
-
const
|
|
4213
|
+
Er(Jt, { clientstyling: {}, clientstylingurl: {}, translationurl: {}, showbackbutton: {}, title: {}, lang: {}, showclosebutton: {}, mbsource: {} }, ["leftButton", "title", "rightButton"], [], !0);
|
|
4214
|
+
const Pi = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
4211
4215
|
__proto__: null,
|
|
4212
4216
|
default: Jt
|
|
4213
4217
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
4214
4218
|
export {
|
|
4215
|
-
|
|
4216
|
-
|
|
4217
|
-
|
|
4219
|
+
M as $,
|
|
4220
|
+
Pi as C,
|
|
4221
|
+
xr as S,
|
|
4218
4222
|
zt as a,
|
|
4219
4223
|
yr as b,
|
|
4220
|
-
|
|
4224
|
+
Er as c,
|
|
4221
4225
|
nr as d,
|
|
4222
|
-
|
|
4226
|
+
C as e,
|
|
4223
4227
|
T as f,
|
|
4224
|
-
|
|
4228
|
+
Oi as g,
|
|
4225
4229
|
Ai as h,
|
|
4226
|
-
|
|
4227
|
-
|
|
4228
|
-
|
|
4229
|
-
|
|
4230
|
-
|
|
4231
|
-
|
|
4232
|
-
|
|
4233
|
-
|
|
4230
|
+
zn as i,
|
|
4231
|
+
z as j,
|
|
4232
|
+
I as k,
|
|
4233
|
+
ce as l,
|
|
4234
|
+
Bt as m,
|
|
4235
|
+
B as n,
|
|
4236
|
+
X as o,
|
|
4237
|
+
qe as p,
|
|
4234
4238
|
lr as q,
|
|
4235
|
-
|
|
4236
|
-
|
|
4237
|
-
|
|
4238
|
-
|
|
4239
|
-
|
|
4239
|
+
Ne as r,
|
|
4240
|
+
Et as s,
|
|
4241
|
+
di as t,
|
|
4242
|
+
bi as u,
|
|
4243
|
+
gi as v
|
|
4240
4244
|
};
|