@everymatrix/cashier-iframe-redirect 1.54.0 → 1.54.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/components/{CashierHeader-BAc6VgBD.js → CashierHeader-DZf8BaSf.js} +937 -974
- package/components/{CashierIframeRedirect-D9eXm7aX.js → CashierIframeRedirect-Dqa-gIDO.js} +20 -20
- package/components/{CashierSpinner-DEj529Pa.js → CashierSpinner-D8Wjf0gj.js} +1 -1
- package/esnext/cashier-iframe-redirect.js +14 -0
- package/package.json +10 -12
- package/components/CashierHeader-Bpt7u9Tk.cjs +0 -5
- package/components/CashierIframeRedirect-lNKEL2Km.cjs +0 -1
- package/components/CashierSpinner-Bx0feaVh.cjs +0 -1
- package/es2015/cashier-iframe-redirect.cjs +0 -1
- package/es2015/cashier-iframe-redirect.js +0 -16
|
@@ -1,106 +1,77 @@
|
|
|
1
|
-
|
|
2
|
-
var hr = Object.getOwnPropertyDescriptors;
|
|
3
|
-
var Je = Object.getOwnPropertySymbols;
|
|
4
|
-
var lr = Object.prototype.hasOwnProperty, fr = Object.prototype.propertyIsEnumerable;
|
|
5
|
-
var xe = (e, t, r) => t in e ? ar(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Ye = (e, t) => {
|
|
6
|
-
for (var r in t || (t = {}))
|
|
7
|
-
lr.call(t, r) && xe(e, r, t[r]);
|
|
8
|
-
if (Je)
|
|
9
|
-
for (var r of Je(t))
|
|
10
|
-
fr.call(t, r) && xe(e, r, t[r]);
|
|
11
|
-
return e;
|
|
12
|
-
}, Ke = (e, t) => ur(e, hr(t));
|
|
13
|
-
var B = (e, t, r) => xe(e, typeof t != "symbol" ? t + "" : t, r);
|
|
14
|
-
var et = (e, t, r) => new Promise((n, i) => {
|
|
15
|
-
var s = (l) => {
|
|
16
|
-
try {
|
|
17
|
-
a(r.next(l));
|
|
18
|
-
} catch (u) {
|
|
19
|
-
i(u);
|
|
20
|
-
}
|
|
21
|
-
}, o = (l) => {
|
|
22
|
-
try {
|
|
23
|
-
a(r.throw(l));
|
|
24
|
-
} catch (u) {
|
|
25
|
-
i(u);
|
|
26
|
-
}
|
|
27
|
-
}, a = (l) => l.done ? n(l.value) : Promise.resolve(l.value).then(s, o);
|
|
28
|
-
a((r = r.apply(e, t)).next());
|
|
29
|
-
});
|
|
30
|
-
function T() {
|
|
1
|
+
function B() {
|
|
31
2
|
}
|
|
32
|
-
function
|
|
3
|
+
function tr(e, t) {
|
|
33
4
|
for (const r in t) e[r] = t[r];
|
|
34
5
|
return (
|
|
35
6
|
/** @type {T & S} */
|
|
36
7
|
e
|
|
37
8
|
);
|
|
38
9
|
}
|
|
39
|
-
function
|
|
10
|
+
function yt(e) {
|
|
40
11
|
return e();
|
|
41
12
|
}
|
|
42
|
-
function
|
|
13
|
+
function Qe() {
|
|
43
14
|
return /* @__PURE__ */ Object.create(null);
|
|
44
15
|
}
|
|
45
|
-
function
|
|
46
|
-
e.forEach(
|
|
16
|
+
function te(e) {
|
|
17
|
+
e.forEach(yt);
|
|
47
18
|
}
|
|
48
|
-
function
|
|
19
|
+
function ke(e) {
|
|
49
20
|
return typeof e == "function";
|
|
50
21
|
}
|
|
51
|
-
function
|
|
22
|
+
function Et(e, t) {
|
|
52
23
|
return e != e ? t == t : e !== t || e && typeof e == "object" || typeof e == "function";
|
|
53
24
|
}
|
|
54
|
-
let
|
|
55
|
-
function
|
|
56
|
-
return e === t ? !0 : (
|
|
25
|
+
let se;
|
|
26
|
+
function Bi(e, t) {
|
|
27
|
+
return e === t ? !0 : (se || (se = document.createElement("a")), se.href = t, e === se.href);
|
|
57
28
|
}
|
|
58
|
-
function
|
|
29
|
+
function rr(e) {
|
|
59
30
|
return Object.keys(e).length === 0;
|
|
60
31
|
}
|
|
61
|
-
function
|
|
32
|
+
function xt(e, ...t) {
|
|
62
33
|
if (e == null) {
|
|
63
34
|
for (const n of t)
|
|
64
35
|
n(void 0);
|
|
65
|
-
return
|
|
36
|
+
return B;
|
|
66
37
|
}
|
|
67
38
|
const r = e.subscribe(...t);
|
|
68
39
|
return r.unsubscribe ? () => r.unsubscribe() : r;
|
|
69
40
|
}
|
|
70
|
-
function
|
|
71
|
-
e.$$.on_destroy.push(
|
|
41
|
+
function nr(e, t, r) {
|
|
42
|
+
e.$$.on_destroy.push(xt(t, r));
|
|
72
43
|
}
|
|
73
|
-
function
|
|
44
|
+
function Ee(e, t, r, n) {
|
|
74
45
|
if (e) {
|
|
75
|
-
const i =
|
|
46
|
+
const i = vt(e, t, r, n);
|
|
76
47
|
return e[0](i);
|
|
77
48
|
}
|
|
78
49
|
}
|
|
79
|
-
function
|
|
80
|
-
return e[1] && n ?
|
|
50
|
+
function vt(e, t, r, n) {
|
|
51
|
+
return e[1] && n ? tr(r.ctx.slice(), e[1](n(t))) : r.ctx;
|
|
81
52
|
}
|
|
82
|
-
function
|
|
53
|
+
function xe(e, t, r, n) {
|
|
83
54
|
if (e[2] && n) {
|
|
84
55
|
const i = e[2](n(r));
|
|
85
56
|
if (t.dirty === void 0)
|
|
86
57
|
return i;
|
|
87
58
|
if (typeof i == "object") {
|
|
88
|
-
const s = [],
|
|
89
|
-
for (let
|
|
90
|
-
s[
|
|
59
|
+
const s = [], u = Math.max(t.dirty.length, i.length);
|
|
60
|
+
for (let o = 0; o < u; o += 1)
|
|
61
|
+
s[o] = t.dirty[o] | i[o];
|
|
91
62
|
return s;
|
|
92
63
|
}
|
|
93
64
|
return t.dirty | i;
|
|
94
65
|
}
|
|
95
66
|
return t.dirty;
|
|
96
67
|
}
|
|
97
|
-
function
|
|
68
|
+
function ve(e, t, r, n, i, s) {
|
|
98
69
|
if (i) {
|
|
99
|
-
const
|
|
100
|
-
e.p(
|
|
70
|
+
const u = vt(t, r, n, s);
|
|
71
|
+
e.p(u, i);
|
|
101
72
|
}
|
|
102
73
|
}
|
|
103
|
-
function
|
|
74
|
+
function He(e) {
|
|
104
75
|
if (e.ctx.length > 32) {
|
|
105
76
|
const t = [], r = e.ctx.length / 32;
|
|
106
77
|
for (let n = 0; n < r; n++)
|
|
@@ -109,17 +80,17 @@ function Te(e) {
|
|
|
109
80
|
}
|
|
110
81
|
return -1;
|
|
111
82
|
}
|
|
112
|
-
function
|
|
83
|
+
function ce(e, t) {
|
|
113
84
|
e.appendChild(t);
|
|
114
85
|
}
|
|
115
|
-
function
|
|
116
|
-
const n =
|
|
86
|
+
function ir(e, t, r) {
|
|
87
|
+
const n = sr(e);
|
|
117
88
|
if (!n.getElementById(t)) {
|
|
118
|
-
const i =
|
|
119
|
-
i.id = t, i.textContent = r,
|
|
89
|
+
const i = z("style");
|
|
90
|
+
i.id = t, i.textContent = r, or(n, i);
|
|
120
91
|
}
|
|
121
92
|
}
|
|
122
|
-
function
|
|
93
|
+
function sr(e) {
|
|
123
94
|
if (!e) return document;
|
|
124
95
|
const t = e.getRootNode ? e.getRootNode() : e.ownerDocument;
|
|
125
96
|
return t && /** @type {ShadowRoot} */
|
|
@@ -128,49 +99,49 @@ function br(e) {
|
|
|
128
99
|
t
|
|
129
100
|
) : e.ownerDocument;
|
|
130
101
|
}
|
|
131
|
-
function
|
|
132
|
-
return
|
|
102
|
+
function or(e, t) {
|
|
103
|
+
return ce(
|
|
133
104
|
/** @type {Document} */
|
|
134
105
|
e.head || e,
|
|
135
106
|
t
|
|
136
107
|
), t.sheet;
|
|
137
108
|
}
|
|
138
|
-
function
|
|
109
|
+
function I(e, t, r) {
|
|
139
110
|
e.insertBefore(t, r || null);
|
|
140
111
|
}
|
|
141
|
-
function
|
|
112
|
+
function O(e) {
|
|
142
113
|
e.parentNode && e.parentNode.removeChild(e);
|
|
143
114
|
}
|
|
144
|
-
function
|
|
115
|
+
function z(e) {
|
|
145
116
|
return document.createElement(e);
|
|
146
117
|
}
|
|
147
|
-
function
|
|
118
|
+
function Ve(e) {
|
|
148
119
|
return document.createTextNode(e);
|
|
149
120
|
}
|
|
150
|
-
function
|
|
151
|
-
return
|
|
121
|
+
function qe() {
|
|
122
|
+
return Ve(" ");
|
|
152
123
|
}
|
|
153
|
-
function
|
|
154
|
-
return
|
|
124
|
+
function Ht() {
|
|
125
|
+
return Ve("");
|
|
155
126
|
}
|
|
156
|
-
function
|
|
127
|
+
function Bt(e, t, r, n) {
|
|
157
128
|
return e.addEventListener(t, r, n), () => e.removeEventListener(t, r, n);
|
|
158
129
|
}
|
|
159
|
-
function
|
|
130
|
+
function W(e, t, r) {
|
|
160
131
|
r == null ? e.removeAttribute(t) : e.getAttribute(t) !== r && e.setAttribute(t, r);
|
|
161
132
|
}
|
|
162
|
-
function
|
|
133
|
+
function Ti(e, t, r) {
|
|
163
134
|
const n = t.toLowerCase();
|
|
164
|
-
n in e ? e[n] = typeof e[n] == "boolean" && r === "" ? !0 : r : t in e ? e[t] = typeof e[t] == "boolean" && r === "" ? !0 : r :
|
|
135
|
+
n in e ? e[n] = typeof e[n] == "boolean" && r === "" ? !0 : r : t in e ? e[t] = typeof e[t] == "boolean" && r === "" ? !0 : r : W(e, t, r);
|
|
165
136
|
}
|
|
166
|
-
function
|
|
137
|
+
function ar(e) {
|
|
167
138
|
return Array.from(e.childNodes);
|
|
168
139
|
}
|
|
169
|
-
function
|
|
140
|
+
function ur(e, t) {
|
|
170
141
|
t = "" + t, e.data !== t && (e.data = /** @type {string} */
|
|
171
142
|
t);
|
|
172
143
|
}
|
|
173
|
-
function
|
|
144
|
+
function hr(e) {
|
|
174
145
|
const t = {};
|
|
175
146
|
return e.childNodes.forEach(
|
|
176
147
|
/** @param {Element} node */
|
|
@@ -179,95 +150,95 @@ function Er(e) {
|
|
|
179
150
|
}
|
|
180
151
|
), t;
|
|
181
152
|
}
|
|
182
|
-
let
|
|
183
|
-
function
|
|
184
|
-
|
|
153
|
+
let Xe;
|
|
154
|
+
function Y(e) {
|
|
155
|
+
Xe = e;
|
|
185
156
|
}
|
|
186
|
-
const
|
|
187
|
-
let
|
|
188
|
-
const
|
|
189
|
-
let
|
|
190
|
-
function
|
|
191
|
-
|
|
157
|
+
const G = [], Le = [];
|
|
158
|
+
let F = [];
|
|
159
|
+
const Je = [], lr = /* @__PURE__ */ Promise.resolve();
|
|
160
|
+
let Ne = !1;
|
|
161
|
+
function fr() {
|
|
162
|
+
Ne || (Ne = !0, lr.then(S));
|
|
192
163
|
}
|
|
193
|
-
function
|
|
194
|
-
|
|
164
|
+
function Ie(e) {
|
|
165
|
+
F.push(e);
|
|
195
166
|
}
|
|
196
|
-
const
|
|
197
|
-
let
|
|
198
|
-
function
|
|
199
|
-
if (
|
|
167
|
+
const Be = /* @__PURE__ */ new Set();
|
|
168
|
+
let U = 0;
|
|
169
|
+
function S() {
|
|
170
|
+
if (U !== 0)
|
|
200
171
|
return;
|
|
201
|
-
const e =
|
|
172
|
+
const e = Xe;
|
|
202
173
|
do {
|
|
203
174
|
try {
|
|
204
|
-
for (;
|
|
205
|
-
const t =
|
|
206
|
-
|
|
175
|
+
for (; U < G.length; ) {
|
|
176
|
+
const t = G[U];
|
|
177
|
+
U++, Y(t), cr(t.$$);
|
|
207
178
|
}
|
|
208
179
|
} catch (t) {
|
|
209
|
-
throw
|
|
180
|
+
throw G.length = 0, U = 0, t;
|
|
210
181
|
}
|
|
211
|
-
for (
|
|
212
|
-
for (let t = 0; t <
|
|
213
|
-
const r =
|
|
214
|
-
|
|
182
|
+
for (Y(null), G.length = 0, U = 0; Le.length; ) Le.pop()();
|
|
183
|
+
for (let t = 0; t < F.length; t += 1) {
|
|
184
|
+
const r = F[t];
|
|
185
|
+
Be.has(r) || (Be.add(r), r());
|
|
215
186
|
}
|
|
216
|
-
|
|
217
|
-
} while (
|
|
218
|
-
for (;
|
|
219
|
-
|
|
220
|
-
|
|
187
|
+
F.length = 0;
|
|
188
|
+
} while (G.length);
|
|
189
|
+
for (; Je.length; )
|
|
190
|
+
Je.pop()();
|
|
191
|
+
Ne = !1, Be.clear(), Y(e);
|
|
221
192
|
}
|
|
222
|
-
function
|
|
193
|
+
function cr(e) {
|
|
223
194
|
if (e.fragment !== null) {
|
|
224
|
-
e.update(),
|
|
195
|
+
e.update(), te(e.before_update);
|
|
225
196
|
const t = e.dirty;
|
|
226
|
-
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(
|
|
197
|
+
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(Ie);
|
|
227
198
|
}
|
|
228
199
|
}
|
|
229
|
-
function
|
|
200
|
+
function mr(e) {
|
|
230
201
|
const t = [], r = [];
|
|
231
|
-
|
|
202
|
+
F.forEach((n) => e.indexOf(n) === -1 ? t.push(n) : r.push(n)), r.forEach((n) => n()), F = t;
|
|
232
203
|
}
|
|
233
|
-
const
|
|
234
|
-
let
|
|
235
|
-
function
|
|
236
|
-
e && e.i && (
|
|
204
|
+
const ae = /* @__PURE__ */ new Set();
|
|
205
|
+
let dr;
|
|
206
|
+
function ue(e, t) {
|
|
207
|
+
e && e.i && (ae.delete(e), e.i(t));
|
|
237
208
|
}
|
|
238
|
-
function
|
|
209
|
+
function Te(e, t, r, n) {
|
|
239
210
|
if (e && e.o) {
|
|
240
|
-
if (
|
|
241
|
-
|
|
242
|
-
|
|
211
|
+
if (ae.has(e)) return;
|
|
212
|
+
ae.add(e), dr.c.push(() => {
|
|
213
|
+
ae.delete(e);
|
|
243
214
|
}), e.o(t);
|
|
244
215
|
}
|
|
245
216
|
}
|
|
246
|
-
function
|
|
217
|
+
function pr(e, t, r) {
|
|
247
218
|
const { fragment: n, after_update: i } = e.$$;
|
|
248
|
-
n && n.m(t, r),
|
|
249
|
-
const s = e.$$.on_mount.map(
|
|
250
|
-
e.$$.on_destroy ? e.$$.on_destroy.push(...s) :
|
|
251
|
-
}), i.forEach(
|
|
219
|
+
n && n.m(t, r), Ie(() => {
|
|
220
|
+
const s = e.$$.on_mount.map(yt).filter(ke);
|
|
221
|
+
e.$$.on_destroy ? e.$$.on_destroy.push(...s) : te(s), e.$$.on_mount = [];
|
|
222
|
+
}), i.forEach(Ie);
|
|
252
223
|
}
|
|
253
|
-
function
|
|
224
|
+
function br(e, t) {
|
|
254
225
|
const r = e.$$;
|
|
255
|
-
r.fragment !== null && (
|
|
226
|
+
r.fragment !== null && (mr(r.after_update), te(r.on_destroy), r.fragment && r.fragment.d(t), r.on_destroy = r.fragment = null, r.ctx = []);
|
|
256
227
|
}
|
|
257
|
-
function
|
|
258
|
-
e.$$.dirty[0] === -1 && (
|
|
228
|
+
function gr(e, t) {
|
|
229
|
+
e.$$.dirty[0] === -1 && (G.push(e), fr(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
|
|
259
230
|
}
|
|
260
|
-
function
|
|
261
|
-
const l =
|
|
262
|
-
|
|
263
|
-
const
|
|
231
|
+
function _r(e, t, r, n, i, s, u = null, o = [-1]) {
|
|
232
|
+
const l = Xe;
|
|
233
|
+
Y(e);
|
|
234
|
+
const a = e.$$ = {
|
|
264
235
|
fragment: null,
|
|
265
236
|
ctx: [],
|
|
266
237
|
// state
|
|
267
238
|
props: s,
|
|
268
|
-
update:
|
|
239
|
+
update: B,
|
|
269
240
|
not_equal: i,
|
|
270
|
-
bound:
|
|
241
|
+
bound: Qe(),
|
|
271
242
|
// lifecycle
|
|
272
243
|
on_mount: [],
|
|
273
244
|
on_destroy: [],
|
|
@@ -276,150 +247,146 @@ function Cr(e, t, r, n, i, s, o = null, a = [-1]) {
|
|
|
276
247
|
after_update: [],
|
|
277
248
|
context: new Map(t.context || (l ? l.$$.context : [])),
|
|
278
249
|
// everything else
|
|
279
|
-
callbacks:
|
|
280
|
-
dirty:
|
|
250
|
+
callbacks: Qe(),
|
|
251
|
+
dirty: o,
|
|
281
252
|
skip_bound: !1,
|
|
282
253
|
root: t.target || l.$$.root
|
|
283
254
|
};
|
|
284
|
-
|
|
255
|
+
u && u(a.root);
|
|
285
256
|
let h = !1;
|
|
286
|
-
if (
|
|
257
|
+
if (a.ctx = r ? r(e, t.props || {}, (f, c, ...d) => {
|
|
287
258
|
const m = d.length ? d[0] : c;
|
|
288
|
-
return
|
|
289
|
-
}) : [],
|
|
259
|
+
return a.ctx && i(a.ctx[f], a.ctx[f] = m) && (!a.skip_bound && a.bound[f] && a.bound[f](m), h && gr(e, f)), c;
|
|
260
|
+
}) : [], a.update(), h = !0, te(a.before_update), a.fragment = n ? n(a.ctx) : !1, t.target) {
|
|
290
261
|
if (t.hydrate) {
|
|
291
|
-
const f =
|
|
292
|
-
|
|
262
|
+
const f = ar(t.target);
|
|
263
|
+
a.fragment && a.fragment.l(f), f.forEach(O);
|
|
293
264
|
} else
|
|
294
|
-
|
|
295
|
-
t.intro &&
|
|
265
|
+
a.fragment && a.fragment.c();
|
|
266
|
+
t.intro && ue(e.$$.fragment), pr(e, t.target, t.anchor), S();
|
|
296
267
|
}
|
|
297
|
-
|
|
298
|
-
}
|
|
299
|
-
let
|
|
300
|
-
typeof HTMLElement == "function" && (
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
this.$$ctor = t, this.$$s = r, n && this.attachShadow({ mode: "open" });
|
|
268
|
+
Y(l);
|
|
269
|
+
}
|
|
270
|
+
let Tt;
|
|
271
|
+
typeof HTMLElement == "function" && (Tt = class extends HTMLElement {
|
|
272
|
+
/** The Svelte component constructor */
|
|
273
|
+
$$ctor;
|
|
274
|
+
/** Slots */
|
|
275
|
+
$$s;
|
|
276
|
+
/** The Svelte component instance */
|
|
277
|
+
$$c;
|
|
278
|
+
/** Whether or not the custom element is connected */
|
|
279
|
+
$$cn = !1;
|
|
280
|
+
/** Component props data */
|
|
281
|
+
$$d = {};
|
|
282
|
+
/** `true` if currently in the process of reflecting component props back to attributes */
|
|
283
|
+
$$r = !1;
|
|
284
|
+
/** @type {Record<string, CustomElementPropDefinition>} Props definition (name, reflected, type etc) */
|
|
285
|
+
$$p_d = {};
|
|
286
|
+
/** @type {Record<string, Function[]>} Event listeners */
|
|
287
|
+
$$l = {};
|
|
288
|
+
/** @type {Map<Function, Function>} Event listener unsubscribe functions */
|
|
289
|
+
$$l_u = /* @__PURE__ */ new Map();
|
|
290
|
+
constructor(e, t, r) {
|
|
291
|
+
super(), this.$$ctor = e, this.$$s = t, r && this.attachShadow({ mode: "open" });
|
|
322
292
|
}
|
|
323
|
-
addEventListener(t, r
|
|
324
|
-
if (this.$$l[
|
|
325
|
-
const
|
|
326
|
-
this.$$l_u.set(
|
|
293
|
+
addEventListener(e, t, r) {
|
|
294
|
+
if (this.$$l[e] = this.$$l[e] || [], this.$$l[e].push(t), this.$$c) {
|
|
295
|
+
const n = this.$$c.$on(e, t);
|
|
296
|
+
this.$$l_u.set(t, n);
|
|
327
297
|
}
|
|
328
|
-
super.addEventListener(t, r
|
|
298
|
+
super.addEventListener(e, t, r);
|
|
329
299
|
}
|
|
330
|
-
removeEventListener(t, r
|
|
331
|
-
if (super.removeEventListener(t, r
|
|
332
|
-
const
|
|
333
|
-
|
|
300
|
+
removeEventListener(e, t, r) {
|
|
301
|
+
if (super.removeEventListener(e, t, r), this.$$c) {
|
|
302
|
+
const n = this.$$l_u.get(t);
|
|
303
|
+
n && (n(), this.$$l_u.delete(t));
|
|
334
304
|
}
|
|
335
305
|
}
|
|
336
|
-
connectedCallback() {
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
}
|
|
356
|
-
};
|
|
306
|
+
async connectedCallback() {
|
|
307
|
+
if (this.$$cn = !0, !this.$$c) {
|
|
308
|
+
let e = function(i) {
|
|
309
|
+
return () => {
|
|
310
|
+
let s;
|
|
311
|
+
return {
|
|
312
|
+
c: function() {
|
|
313
|
+
s = z("slot"), i !== "default" && W(s, "name", i);
|
|
314
|
+
},
|
|
315
|
+
/**
|
|
316
|
+
* @param {HTMLElement} target
|
|
317
|
+
* @param {HTMLElement} [anchor]
|
|
318
|
+
*/
|
|
319
|
+
m: function(l, a) {
|
|
320
|
+
I(l, s, a);
|
|
321
|
+
},
|
|
322
|
+
d: function(l) {
|
|
323
|
+
l && O(s);
|
|
324
|
+
}
|
|
357
325
|
};
|
|
358
326
|
};
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
327
|
+
};
|
|
328
|
+
if (await Promise.resolve(), !this.$$cn || this.$$c)
|
|
329
|
+
return;
|
|
330
|
+
const t = {}, r = hr(this);
|
|
331
|
+
for (const i of this.$$s)
|
|
332
|
+
i in r && (t[i] = [e(i)]);
|
|
333
|
+
for (const i of this.attributes) {
|
|
334
|
+
const s = this.$$g_p(i.name);
|
|
335
|
+
s in this.$$d || (this.$$d[s] = he(s, i.value, this.$$p_d, "toProp"));
|
|
336
|
+
}
|
|
337
|
+
for (const i in this.$$p_d)
|
|
338
|
+
!(i in this.$$d) && this[i] !== void 0 && (this.$$d[i] = this[i], delete this[i]);
|
|
339
|
+
this.$$c = new this.$$ctor({
|
|
340
|
+
target: this.shadowRoot || this,
|
|
341
|
+
props: {
|
|
342
|
+
...this.$$d,
|
|
343
|
+
$$slots: t,
|
|
344
|
+
$$scope: {
|
|
345
|
+
ctx: []
|
|
346
|
+
}
|
|
367
347
|
}
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
this.$$
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
this.$$r = !0;
|
|
381
|
-
for (const s in this.$$p_d)
|
|
382
|
-
if (this.$$d[s] = this.$$c.$$.ctx[this.$$c.$$.props[s]], this.$$p_d[s].reflect) {
|
|
383
|
-
const o = le(
|
|
384
|
-
s,
|
|
385
|
-
this.$$d[s],
|
|
386
|
-
this.$$p_d,
|
|
387
|
-
"toAttribute"
|
|
388
|
-
);
|
|
389
|
-
o == null ? this.removeAttribute(this.$$p_d[s].attribute || s) : this.setAttribute(this.$$p_d[s].attribute || s, o);
|
|
390
|
-
}
|
|
391
|
-
this.$$r = !1;
|
|
392
|
-
};
|
|
393
|
-
this.$$c.$$.after_update.push(i), i();
|
|
394
|
-
for (const s in this.$$l)
|
|
395
|
-
for (const o of this.$$l[s]) {
|
|
396
|
-
const a = this.$$c.$on(s, o);
|
|
397
|
-
this.$$l_u.set(o, a);
|
|
348
|
+
});
|
|
349
|
+
const n = () => {
|
|
350
|
+
this.$$r = !0;
|
|
351
|
+
for (const i in this.$$p_d)
|
|
352
|
+
if (this.$$d[i] = this.$$c.$$.ctx[this.$$c.$$.props[i]], this.$$p_d[i].reflect) {
|
|
353
|
+
const s = he(
|
|
354
|
+
i,
|
|
355
|
+
this.$$d[i],
|
|
356
|
+
this.$$p_d,
|
|
357
|
+
"toAttribute"
|
|
358
|
+
);
|
|
359
|
+
s == null ? this.removeAttribute(this.$$p_d[i].attribute || i) : this.setAttribute(this.$$p_d[i].attribute || i, s);
|
|
398
360
|
}
|
|
399
|
-
this.$$
|
|
400
|
-
}
|
|
401
|
-
|
|
361
|
+
this.$$r = !1;
|
|
362
|
+
};
|
|
363
|
+
this.$$c.$$.after_update.push(n), n();
|
|
364
|
+
for (const i in this.$$l)
|
|
365
|
+
for (const s of this.$$l[i]) {
|
|
366
|
+
const u = this.$$c.$on(i, s);
|
|
367
|
+
this.$$l_u.set(s, u);
|
|
368
|
+
}
|
|
369
|
+
this.$$l = {};
|
|
370
|
+
}
|
|
402
371
|
}
|
|
403
372
|
// We don't need this when working within Svelte code, but for compatibility of people using this outside of Svelte
|
|
404
373
|
// and setting attributes through setAttribute etc, this is helpful
|
|
405
|
-
attributeChangedCallback(t, r
|
|
406
|
-
|
|
407
|
-
this.$$r || (t = this.$$g_p(t), this.$$d[t] = le(t, n, this.$$p_d, "toProp"), (i = this.$$c) == null || i.$set({ [t]: this.$$d[t] }));
|
|
374
|
+
attributeChangedCallback(e, t, r) {
|
|
375
|
+
this.$$r || (e = this.$$g_p(e), this.$$d[e] = he(e, r, this.$$p_d, "toProp"), this.$$c?.$set({ [e]: this.$$d[e] }));
|
|
408
376
|
}
|
|
409
377
|
disconnectedCallback() {
|
|
410
378
|
this.$$cn = !1, Promise.resolve().then(() => {
|
|
411
379
|
!this.$$cn && this.$$c && (this.$$c.$destroy(), this.$$c = void 0);
|
|
412
380
|
});
|
|
413
381
|
}
|
|
414
|
-
$$g_p(
|
|
382
|
+
$$g_p(e) {
|
|
415
383
|
return Object.keys(this.$$p_d).find(
|
|
416
|
-
(
|
|
417
|
-
) ||
|
|
384
|
+
(t) => this.$$p_d[t].attribute === e || !this.$$p_d[t].attribute && t.toLowerCase() === e
|
|
385
|
+
) || e;
|
|
418
386
|
}
|
|
419
387
|
});
|
|
420
|
-
function
|
|
421
|
-
|
|
422
|
-
const i = (s = r[e]) == null ? void 0 : s.type;
|
|
388
|
+
function he(e, t, r, n) {
|
|
389
|
+
const i = r[e]?.type;
|
|
423
390
|
if (t = i === "Boolean" && typeof t != "boolean" ? t != null : t, !n || !r[e])
|
|
424
391
|
return t;
|
|
425
392
|
if (n === "toAttribute")
|
|
@@ -430,7 +397,7 @@ function le(e, t, r, n) {
|
|
|
430
397
|
case "Boolean":
|
|
431
398
|
return t ? "" : null;
|
|
432
399
|
case "Number":
|
|
433
|
-
return t
|
|
400
|
+
return t ?? null;
|
|
434
401
|
default:
|
|
435
402
|
return t;
|
|
436
403
|
}
|
|
@@ -447,59 +414,55 @@ function le(e, t, r, n) {
|
|
|
447
414
|
return t;
|
|
448
415
|
}
|
|
449
416
|
}
|
|
450
|
-
function
|
|
451
|
-
let
|
|
417
|
+
function yr(e, t, r, n, i, s) {
|
|
418
|
+
let u = class extends Tt {
|
|
452
419
|
constructor() {
|
|
453
420
|
super(e, r, i), this.$$p_d = t;
|
|
454
421
|
}
|
|
455
422
|
static get observedAttributes() {
|
|
456
423
|
return Object.keys(t).map(
|
|
457
|
-
(
|
|
424
|
+
(o) => (t[o].attribute || o).toLowerCase()
|
|
458
425
|
);
|
|
459
426
|
}
|
|
460
427
|
};
|
|
461
|
-
return Object.keys(t).forEach((
|
|
462
|
-
Object.defineProperty(
|
|
428
|
+
return Object.keys(t).forEach((o) => {
|
|
429
|
+
Object.defineProperty(u.prototype, o, {
|
|
463
430
|
get() {
|
|
464
|
-
return this.$$c &&
|
|
431
|
+
return this.$$c && o in this.$$c ? this.$$c[o] : this.$$d[o];
|
|
465
432
|
},
|
|
466
433
|
set(l) {
|
|
467
|
-
|
|
468
|
-
l = le(a, l, t), this.$$d[a] = l, (u = this.$$c) == null || u.$set({ [a]: l });
|
|
434
|
+
l = he(o, l, t), this.$$d[o] = l, this.$$c?.$set({ [o]: l });
|
|
469
435
|
}
|
|
470
436
|
});
|
|
471
|
-
}), n.forEach((
|
|
472
|
-
Object.defineProperty(
|
|
437
|
+
}), n.forEach((o) => {
|
|
438
|
+
Object.defineProperty(u.prototype, o, {
|
|
473
439
|
get() {
|
|
474
|
-
|
|
475
|
-
return (l = this.$$c) == null ? void 0 : l[a];
|
|
440
|
+
return this.$$c?.[o];
|
|
476
441
|
}
|
|
477
442
|
});
|
|
478
443
|
}), e.element = /** @type {any} */
|
|
479
|
-
|
|
480
|
-
}
|
|
481
|
-
class
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
B(this, "$$set");
|
|
499
|
-
}
|
|
444
|
+
u, u;
|
|
445
|
+
}
|
|
446
|
+
class Er {
|
|
447
|
+
/**
|
|
448
|
+
* ### PRIVATE API
|
|
449
|
+
*
|
|
450
|
+
* Do not use, may change at any time
|
|
451
|
+
*
|
|
452
|
+
* @type {any}
|
|
453
|
+
*/
|
|
454
|
+
$$ = void 0;
|
|
455
|
+
/**
|
|
456
|
+
* ### PRIVATE API
|
|
457
|
+
*
|
|
458
|
+
* Do not use, may change at any time
|
|
459
|
+
*
|
|
460
|
+
* @type {any}
|
|
461
|
+
*/
|
|
462
|
+
$$set = void 0;
|
|
500
463
|
/** @returns {void} */
|
|
501
464
|
$destroy() {
|
|
502
|
-
|
|
465
|
+
br(this, 1), this.$destroy = B;
|
|
503
466
|
}
|
|
504
467
|
/**
|
|
505
468
|
* @template {Extract<keyof Events, string>} K
|
|
@@ -508,8 +471,8 @@ class Pr {
|
|
|
508
471
|
* @returns {() => void}
|
|
509
472
|
*/
|
|
510
473
|
$on(t, r) {
|
|
511
|
-
if (!
|
|
512
|
-
return
|
|
474
|
+
if (!ke(r))
|
|
475
|
+
return B;
|
|
513
476
|
const n = this.$$.callbacks[t] || (this.$$.callbacks[t] = []);
|
|
514
477
|
return n.push(r), () => {
|
|
515
478
|
const i = n.indexOf(r);
|
|
@@ -521,63 +484,63 @@ class Pr {
|
|
|
521
484
|
* @returns {void}
|
|
522
485
|
*/
|
|
523
486
|
$set(t) {
|
|
524
|
-
this.$$set && !
|
|
487
|
+
this.$$set && !rr(t) && (this.$$.skip_bound = !0, this.$$set(t), this.$$.skip_bound = !1);
|
|
525
488
|
}
|
|
526
489
|
}
|
|
527
|
-
const
|
|
528
|
-
typeof window
|
|
529
|
-
const
|
|
530
|
-
function
|
|
490
|
+
const xr = "4";
|
|
491
|
+
typeof window < "u" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(xr);
|
|
492
|
+
const D = [];
|
|
493
|
+
function vr(e, t) {
|
|
531
494
|
return {
|
|
532
|
-
subscribe:
|
|
495
|
+
subscribe: be(e, t).subscribe
|
|
533
496
|
};
|
|
534
497
|
}
|
|
535
|
-
function
|
|
498
|
+
function be(e, t = B) {
|
|
536
499
|
let r;
|
|
537
500
|
const n = /* @__PURE__ */ new Set();
|
|
538
|
-
function i(
|
|
539
|
-
if (
|
|
540
|
-
const l = !
|
|
541
|
-
for (const
|
|
542
|
-
|
|
501
|
+
function i(o) {
|
|
502
|
+
if (Et(e, o) && (e = o, r)) {
|
|
503
|
+
const l = !D.length;
|
|
504
|
+
for (const a of n)
|
|
505
|
+
a[1](), D.push(a, e);
|
|
543
506
|
if (l) {
|
|
544
|
-
for (let
|
|
545
|
-
|
|
546
|
-
|
|
507
|
+
for (let a = 0; a < D.length; a += 2)
|
|
508
|
+
D[a][0](D[a + 1]);
|
|
509
|
+
D.length = 0;
|
|
547
510
|
}
|
|
548
511
|
}
|
|
549
512
|
}
|
|
550
|
-
function s(
|
|
551
|
-
i(
|
|
513
|
+
function s(o) {
|
|
514
|
+
i(o(e));
|
|
552
515
|
}
|
|
553
|
-
function o
|
|
554
|
-
const
|
|
555
|
-
return n.add(
|
|
556
|
-
n.delete(
|
|
516
|
+
function u(o, l = B) {
|
|
517
|
+
const a = [o, l];
|
|
518
|
+
return n.add(a), n.size === 1 && (r = t(i, s) || B), o(e), () => {
|
|
519
|
+
n.delete(a), n.size === 0 && r && (r(), r = null);
|
|
557
520
|
};
|
|
558
521
|
}
|
|
559
|
-
return { set: i, update: s, subscribe:
|
|
522
|
+
return { set: i, update: s, subscribe: u };
|
|
560
523
|
}
|
|
561
|
-
function
|
|
524
|
+
function Z(e, t, r) {
|
|
562
525
|
const n = !Array.isArray(e), i = n ? [e] : e;
|
|
563
526
|
if (!i.every(Boolean))
|
|
564
527
|
throw new Error("derived() expects stores as input, got a falsy value");
|
|
565
528
|
const s = t.length < 2;
|
|
566
|
-
return
|
|
529
|
+
return vr(r, (u, o) => {
|
|
567
530
|
let l = !1;
|
|
568
|
-
const
|
|
569
|
-
let h = 0, f =
|
|
531
|
+
const a = [];
|
|
532
|
+
let h = 0, f = B;
|
|
570
533
|
const c = () => {
|
|
571
534
|
if (h)
|
|
572
535
|
return;
|
|
573
536
|
f();
|
|
574
|
-
const m = t(n ?
|
|
575
|
-
s ?
|
|
537
|
+
const m = t(n ? a[0] : a, u, o);
|
|
538
|
+
s ? u(m) : f = ke(m) ? m : B;
|
|
576
539
|
}, d = i.map(
|
|
577
|
-
(m, g) =>
|
|
540
|
+
(m, g) => xt(
|
|
578
541
|
m,
|
|
579
542
|
(v) => {
|
|
580
|
-
|
|
543
|
+
a[g] = v, h &= ~(1 << g), l && c();
|
|
581
544
|
},
|
|
582
545
|
() => {
|
|
583
546
|
h |= 1 << g;
|
|
@@ -585,95 +548,95 @@ function Q(e, t, r) {
|
|
|
585
548
|
)
|
|
586
549
|
);
|
|
587
550
|
return l = !0, c(), function() {
|
|
588
|
-
|
|
551
|
+
te(d), f(), l = !1;
|
|
589
552
|
};
|
|
590
553
|
});
|
|
591
554
|
}
|
|
592
|
-
function
|
|
555
|
+
function Hr(e) {
|
|
593
556
|
return e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
594
557
|
}
|
|
595
|
-
var
|
|
596
|
-
return
|
|
558
|
+
var Br = function(t) {
|
|
559
|
+
return Tr(t) && !wr(t);
|
|
597
560
|
};
|
|
598
|
-
function
|
|
561
|
+
function Tr(e) {
|
|
599
562
|
return !!e && typeof e == "object";
|
|
600
563
|
}
|
|
601
|
-
function
|
|
564
|
+
function wr(e) {
|
|
602
565
|
var t = Object.prototype.toString.call(e);
|
|
603
|
-
return t === "[object RegExp]" || t === "[object Date]" ||
|
|
566
|
+
return t === "[object RegExp]" || t === "[object Date]" || Cr(e);
|
|
604
567
|
}
|
|
605
|
-
var
|
|
606
|
-
function
|
|
607
|
-
return e.$$typeof ===
|
|
568
|
+
var Sr = typeof Symbol == "function" && Symbol.for, Ar = Sr ? Symbol.for("react.element") : 60103;
|
|
569
|
+
function Cr(e) {
|
|
570
|
+
return e.$$typeof === Ar;
|
|
608
571
|
}
|
|
609
|
-
function
|
|
572
|
+
function Or(e) {
|
|
610
573
|
return Array.isArray(e) ? [] : {};
|
|
611
574
|
}
|
|
612
|
-
function
|
|
613
|
-
return t.clone !== !1 && t.isMergeableObject(e) ?
|
|
575
|
+
function K(e, t) {
|
|
576
|
+
return t.clone !== !1 && t.isMergeableObject(e) ? j(Or(e), e, t) : e;
|
|
614
577
|
}
|
|
615
|
-
function
|
|
578
|
+
function Pr(e, t, r) {
|
|
616
579
|
return e.concat(t).map(function(n) {
|
|
617
|
-
return
|
|
580
|
+
return K(n, r);
|
|
618
581
|
});
|
|
619
582
|
}
|
|
620
|
-
function
|
|
583
|
+
function Lr(e, t) {
|
|
621
584
|
if (!t.customMerge)
|
|
622
|
-
return
|
|
585
|
+
return j;
|
|
623
586
|
var r = t.customMerge(e);
|
|
624
|
-
return typeof r == "function" ? r :
|
|
587
|
+
return typeof r == "function" ? r : j;
|
|
625
588
|
}
|
|
626
|
-
function
|
|
589
|
+
function Nr(e) {
|
|
627
590
|
return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(e).filter(function(t) {
|
|
628
591
|
return Object.propertyIsEnumerable.call(e, t);
|
|
629
592
|
}) : [];
|
|
630
593
|
}
|
|
631
|
-
function
|
|
632
|
-
return Object.keys(e).concat(
|
|
594
|
+
function Ye(e) {
|
|
595
|
+
return Object.keys(e).concat(Nr(e));
|
|
633
596
|
}
|
|
634
|
-
function
|
|
597
|
+
function wt(e, t) {
|
|
635
598
|
try {
|
|
636
599
|
return t in e;
|
|
637
|
-
} catch
|
|
600
|
+
} catch {
|
|
638
601
|
return !1;
|
|
639
602
|
}
|
|
640
603
|
}
|
|
641
|
-
function
|
|
642
|
-
return
|
|
604
|
+
function Ir(e, t) {
|
|
605
|
+
return wt(e, t) && !(Object.hasOwnProperty.call(e, t) && Object.propertyIsEnumerable.call(e, t));
|
|
643
606
|
}
|
|
644
|
-
function
|
|
607
|
+
function Mr(e, t, r) {
|
|
645
608
|
var n = {};
|
|
646
|
-
return r.isMergeableObject(e) &&
|
|
647
|
-
n[i] =
|
|
648
|
-
}),
|
|
649
|
-
|
|
609
|
+
return r.isMergeableObject(e) && Ye(e).forEach(function(i) {
|
|
610
|
+
n[i] = K(e[i], r);
|
|
611
|
+
}), Ye(t).forEach(function(i) {
|
|
612
|
+
Ir(e, i) || (wt(e, i) && r.isMergeableObject(t[i]) ? n[i] = Lr(i, r)(e[i], t[i], r) : n[i] = K(t[i], r));
|
|
650
613
|
}), n;
|
|
651
614
|
}
|
|
652
|
-
function
|
|
653
|
-
r = r || {}, r.arrayMerge = r.arrayMerge ||
|
|
615
|
+
function j(e, t, r) {
|
|
616
|
+
r = r || {}, r.arrayMerge = r.arrayMerge || Pr, r.isMergeableObject = r.isMergeableObject || Br, r.cloneUnlessOtherwiseSpecified = K;
|
|
654
617
|
var n = Array.isArray(t), i = Array.isArray(e), s = n === i;
|
|
655
|
-
return s ? n ? r.arrayMerge(e, t, r) :
|
|
618
|
+
return s ? n ? r.arrayMerge(e, t, r) : Mr(e, t, r) : K(t, r);
|
|
656
619
|
}
|
|
657
|
-
|
|
620
|
+
j.all = function(t, r) {
|
|
658
621
|
if (!Array.isArray(t))
|
|
659
622
|
throw new Error("first argument should be an array");
|
|
660
623
|
return t.reduce(function(n, i) {
|
|
661
|
-
return
|
|
624
|
+
return j(n, i, r);
|
|
662
625
|
}, {});
|
|
663
626
|
};
|
|
664
|
-
var
|
|
665
|
-
const
|
|
666
|
-
var
|
|
667
|
-
return
|
|
627
|
+
var $r = j, Rr = $r;
|
|
628
|
+
const Ur = /* @__PURE__ */ Hr(Rr);
|
|
629
|
+
var Me = function(e, t) {
|
|
630
|
+
return Me = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
|
|
668
631
|
r.__proto__ = n;
|
|
669
632
|
} || function(r, n) {
|
|
670
633
|
for (var i in n) Object.prototype.hasOwnProperty.call(n, i) && (r[i] = n[i]);
|
|
671
|
-
},
|
|
634
|
+
}, Me(e, t);
|
|
672
635
|
};
|
|
673
|
-
function
|
|
636
|
+
function ge(e, t) {
|
|
674
637
|
if (typeof t != "function" && t !== null)
|
|
675
638
|
throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
|
|
676
|
-
|
|
639
|
+
Me(e, t);
|
|
677
640
|
function r() {
|
|
678
641
|
this.constructor = e;
|
|
679
642
|
}
|
|
@@ -688,7 +651,7 @@ var y = function() {
|
|
|
688
651
|
return t;
|
|
689
652
|
}, y.apply(this, arguments);
|
|
690
653
|
};
|
|
691
|
-
function
|
|
654
|
+
function Dr(e, t) {
|
|
692
655
|
var r = {};
|
|
693
656
|
for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
694
657
|
if (e != null && typeof Object.getOwnPropertySymbols == "function")
|
|
@@ -696,45 +659,45 @@ function qr(e, t) {
|
|
|
696
659
|
t.indexOf(n[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[i]) && (r[n[i]] = e[n[i]]);
|
|
697
660
|
return r;
|
|
698
661
|
}
|
|
699
|
-
function
|
|
662
|
+
function we(e, t, r) {
|
|
700
663
|
if (r || arguments.length === 2) for (var n = 0, i = t.length, s; n < i; n++)
|
|
701
664
|
(s || !(n in t)) && (s || (s = Array.prototype.slice.call(t, 0, n)), s[n] = t[n]);
|
|
702
665
|
return e.concat(s || Array.prototype.slice.call(t));
|
|
703
666
|
}
|
|
704
|
-
function
|
|
705
|
-
var r = t && t.cache ? t.cache :
|
|
667
|
+
function Se(e, t) {
|
|
668
|
+
var r = t && t.cache ? t.cache : zr, n = t && t.serializer ? t.serializer : Vr, i = t && t.strategy ? t.strategy : Fr;
|
|
706
669
|
return i(e, {
|
|
707
670
|
cache: r,
|
|
708
671
|
serializer: n
|
|
709
672
|
});
|
|
710
673
|
}
|
|
711
|
-
function
|
|
674
|
+
function Gr(e) {
|
|
712
675
|
return e == null || typeof e == "number" || typeof e == "boolean";
|
|
713
676
|
}
|
|
714
|
-
function
|
|
715
|
-
var i =
|
|
716
|
-
return typeof s
|
|
677
|
+
function St(e, t, r, n) {
|
|
678
|
+
var i = Gr(n) ? n : r(n), s = t.get(i);
|
|
679
|
+
return typeof s > "u" && (s = e.call(this, n), t.set(i, s)), s;
|
|
717
680
|
}
|
|
718
|
-
function
|
|
681
|
+
function At(e, t, r) {
|
|
719
682
|
var n = Array.prototype.slice.call(arguments, 3), i = r(n), s = t.get(i);
|
|
720
|
-
return typeof s
|
|
683
|
+
return typeof s > "u" && (s = e.apply(this, n), t.set(i, s)), s;
|
|
721
684
|
}
|
|
722
|
-
function
|
|
685
|
+
function ze(e, t, r, n, i) {
|
|
723
686
|
return r.bind(t, e, n, i);
|
|
724
687
|
}
|
|
725
|
-
function
|
|
726
|
-
var r = e.length === 1 ?
|
|
727
|
-
return
|
|
688
|
+
function Fr(e, t) {
|
|
689
|
+
var r = e.length === 1 ? St : At;
|
|
690
|
+
return ze(e, this, r, t.cache.create(), t.serializer);
|
|
728
691
|
}
|
|
729
|
-
function
|
|
730
|
-
return
|
|
692
|
+
function jr(e, t) {
|
|
693
|
+
return ze(e, this, At, t.cache.create(), t.serializer);
|
|
731
694
|
}
|
|
732
|
-
function
|
|
733
|
-
return
|
|
695
|
+
function kr(e, t) {
|
|
696
|
+
return ze(e, this, St, t.cache.create(), t.serializer);
|
|
734
697
|
}
|
|
735
|
-
var
|
|
698
|
+
var Vr = function() {
|
|
736
699
|
return JSON.stringify(arguments);
|
|
737
|
-
},
|
|
700
|
+
}, Xr = (
|
|
738
701
|
/** @class */
|
|
739
702
|
function() {
|
|
740
703
|
function e() {
|
|
@@ -746,13 +709,13 @@ var tn = function() {
|
|
|
746
709
|
this.cache[t] = r;
|
|
747
710
|
}, e;
|
|
748
711
|
}()
|
|
749
|
-
),
|
|
712
|
+
), zr = {
|
|
750
713
|
create: function() {
|
|
751
|
-
return new
|
|
714
|
+
return new Xr();
|
|
752
715
|
}
|
|
753
|
-
},
|
|
754
|
-
variadic:
|
|
755
|
-
monadic:
|
|
716
|
+
}, Ae = {
|
|
717
|
+
variadic: jr,
|
|
718
|
+
monadic: kr
|
|
756
719
|
}, p;
|
|
757
720
|
(function(e) {
|
|
758
721
|
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";
|
|
@@ -761,47 +724,47 @@ var E;
|
|
|
761
724
|
(function(e) {
|
|
762
725
|
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";
|
|
763
726
|
})(E || (E = {}));
|
|
764
|
-
var
|
|
727
|
+
var k;
|
|
765
728
|
(function(e) {
|
|
766
729
|
e[e.number = 0] = "number", e[e.dateTime = 1] = "dateTime";
|
|
767
|
-
})(
|
|
768
|
-
function
|
|
730
|
+
})(k || (k = {}));
|
|
731
|
+
function Ke(e) {
|
|
769
732
|
return e.type === E.literal;
|
|
770
733
|
}
|
|
771
|
-
function
|
|
734
|
+
function Wr(e) {
|
|
772
735
|
return e.type === E.argument;
|
|
773
736
|
}
|
|
774
|
-
function
|
|
737
|
+
function Ct(e) {
|
|
775
738
|
return e.type === E.number;
|
|
776
739
|
}
|
|
777
|
-
function
|
|
740
|
+
function Ot(e) {
|
|
778
741
|
return e.type === E.date;
|
|
779
742
|
}
|
|
780
|
-
function
|
|
743
|
+
function Pt(e) {
|
|
781
744
|
return e.type === E.time;
|
|
782
745
|
}
|
|
783
|
-
function
|
|
746
|
+
function Lt(e) {
|
|
784
747
|
return e.type === E.select;
|
|
785
748
|
}
|
|
786
|
-
function
|
|
749
|
+
function Nt(e) {
|
|
787
750
|
return e.type === E.plural;
|
|
788
751
|
}
|
|
789
|
-
function
|
|
752
|
+
function Zr(e) {
|
|
790
753
|
return e.type === E.pound;
|
|
791
754
|
}
|
|
792
|
-
function
|
|
755
|
+
function It(e) {
|
|
793
756
|
return e.type === E.tag;
|
|
794
757
|
}
|
|
795
|
-
function
|
|
796
|
-
return !!(e && typeof e == "object" && e.type ===
|
|
758
|
+
function Mt(e) {
|
|
759
|
+
return !!(e && typeof e == "object" && e.type === k.number);
|
|
797
760
|
}
|
|
798
|
-
function
|
|
799
|
-
return !!(e && typeof e == "object" && e.type ===
|
|
761
|
+
function $e(e) {
|
|
762
|
+
return !!(e && typeof e == "object" && e.type === k.dateTime);
|
|
800
763
|
}
|
|
801
|
-
var
|
|
802
|
-
function
|
|
764
|
+
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;
|
|
765
|
+
function qr(e) {
|
|
803
766
|
var t = {};
|
|
804
|
-
return e.replace(
|
|
767
|
+
return e.replace(Qr, function(r) {
|
|
805
768
|
var n = r.length;
|
|
806
769
|
switch (r[0]) {
|
|
807
770
|
case "G":
|
|
@@ -890,36 +853,36 @@ function un(e) {
|
|
|
890
853
|
return "";
|
|
891
854
|
}), t;
|
|
892
855
|
}
|
|
893
|
-
var
|
|
894
|
-
function
|
|
856
|
+
var Jr = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
|
|
857
|
+
function Yr(e) {
|
|
895
858
|
if (e.length === 0)
|
|
896
859
|
throw new Error("Number skeleton cannot be empty");
|
|
897
|
-
for (var t = e.split(
|
|
860
|
+
for (var t = e.split(Jr).filter(function(c) {
|
|
898
861
|
return c.length > 0;
|
|
899
862
|
}), r = [], n = 0, i = t; n < i.length; n++) {
|
|
900
|
-
var s = i[n],
|
|
901
|
-
if (
|
|
863
|
+
var s = i[n], u = s.split("/");
|
|
864
|
+
if (u.length === 0)
|
|
902
865
|
throw new Error("Invalid number skeleton");
|
|
903
|
-
for (var
|
|
904
|
-
var f = h[
|
|
866
|
+
for (var o = u[0], l = u.slice(1), a = 0, h = l; a < h.length; a++) {
|
|
867
|
+
var f = h[a];
|
|
905
868
|
if (f.length === 0)
|
|
906
869
|
throw new Error("Invalid number skeleton");
|
|
907
870
|
}
|
|
908
|
-
r.push({ stem:
|
|
871
|
+
r.push({ stem: o, options: l });
|
|
909
872
|
}
|
|
910
873
|
return r;
|
|
911
874
|
}
|
|
912
|
-
function
|
|
875
|
+
function Kr(e) {
|
|
913
876
|
return e.replace(/^(.*?)-/, "");
|
|
914
877
|
}
|
|
915
|
-
var
|
|
916
|
-
function
|
|
878
|
+
var et = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, Rt = /^(@+)?(\+|#+)?[rs]?$/g, en = /(\*)(0+)|(#+)(0+)|(0+)/g, Ut = /^(0+)$/;
|
|
879
|
+
function tt(e) {
|
|
917
880
|
var t = {};
|
|
918
|
-
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(
|
|
881
|
+
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(Rt, function(r, n, i) {
|
|
919
882
|
return typeof i != "string" ? (t.minimumSignificantDigits = n.length, t.maximumSignificantDigits = n.length) : i === "+" ? t.minimumSignificantDigits = n.length : n[0] === "#" ? t.maximumSignificantDigits = n.length : (t.minimumSignificantDigits = n.length, t.maximumSignificantDigits = n.length + (typeof i == "string" ? i.length : 0)), "";
|
|
920
883
|
}), t;
|
|
921
884
|
}
|
|
922
|
-
function
|
|
885
|
+
function Dt(e) {
|
|
923
886
|
switch (e) {
|
|
924
887
|
case "sign-auto":
|
|
925
888
|
return {
|
|
@@ -959,7 +922,7 @@ function Xt(e) {
|
|
|
959
922
|
};
|
|
960
923
|
}
|
|
961
924
|
}
|
|
962
|
-
function
|
|
925
|
+
function tn(e) {
|
|
963
926
|
var t;
|
|
964
927
|
if (e[0] === "E" && e[1] === "E" ? (t = {
|
|
965
928
|
notation: "engineering"
|
|
@@ -967,17 +930,17 @@ function mn(e) {
|
|
|
967
930
|
notation: "scientific"
|
|
968
931
|
}, e = e.slice(1)), t) {
|
|
969
932
|
var r = e.slice(0, 2);
|
|
970
|
-
if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !
|
|
933
|
+
if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !Ut.test(e))
|
|
971
934
|
throw new Error("Malformed concise eng/scientific notation");
|
|
972
935
|
t.minimumIntegerDigits = e.length;
|
|
973
936
|
}
|
|
974
937
|
return t;
|
|
975
938
|
}
|
|
976
|
-
function
|
|
977
|
-
var t = {}, r =
|
|
939
|
+
function rt(e) {
|
|
940
|
+
var t = {}, r = Dt(e);
|
|
978
941
|
return r || t;
|
|
979
942
|
}
|
|
980
|
-
function
|
|
943
|
+
function rn(e) {
|
|
981
944
|
for (var t = {}, r = 0, n = e; r < n.length; r++) {
|
|
982
945
|
var i = n[r];
|
|
983
946
|
switch (i.stem) {
|
|
@@ -1001,7 +964,7 @@ function dn(e) {
|
|
|
1001
964
|
continue;
|
|
1002
965
|
case "measure-unit":
|
|
1003
966
|
case "unit":
|
|
1004
|
-
t.style = "unit", t.unit =
|
|
967
|
+
t.style = "unit", t.unit = Kr(i.options[0]);
|
|
1005
968
|
continue;
|
|
1006
969
|
case "compact-short":
|
|
1007
970
|
case "K":
|
|
@@ -1012,13 +975,13 @@ function dn(e) {
|
|
|
1012
975
|
t.notation = "compact", t.compactDisplay = "long";
|
|
1013
976
|
continue;
|
|
1014
977
|
case "scientific":
|
|
1015
|
-
t = y(y(y({}, t), { notation: "scientific" }), i.options.reduce(function(l,
|
|
1016
|
-
return y(y({}, l),
|
|
978
|
+
t = y(y(y({}, t), { notation: "scientific" }), i.options.reduce(function(l, a) {
|
|
979
|
+
return y(y({}, l), rt(a));
|
|
1017
980
|
}, {}));
|
|
1018
981
|
continue;
|
|
1019
982
|
case "engineering":
|
|
1020
|
-
t = y(y(y({}, t), { notation: "engineering" }), i.options.reduce(function(l,
|
|
1021
|
-
return y(y({}, l),
|
|
983
|
+
t = y(y(y({}, t), { notation: "engineering" }), i.options.reduce(function(l, a) {
|
|
984
|
+
return y(y({}, l), rt(a));
|
|
1022
985
|
}, {}));
|
|
1023
986
|
continue;
|
|
1024
987
|
case "notation-simple":
|
|
@@ -1063,8 +1026,8 @@ function dn(e) {
|
|
|
1063
1026
|
case "integer-width":
|
|
1064
1027
|
if (i.options.length > 1)
|
|
1065
1028
|
throw new RangeError("integer-width stems only accept a single optional option");
|
|
1066
|
-
i.options[0].replace(
|
|
1067
|
-
if (
|
|
1029
|
+
i.options[0].replace(en, function(l, a, h, f, c, d) {
|
|
1030
|
+
if (a)
|
|
1068
1031
|
t.minimumIntegerDigits = h.length;
|
|
1069
1032
|
else {
|
|
1070
1033
|
if (f && c)
|
|
@@ -1076,32 +1039,32 @@ function dn(e) {
|
|
|
1076
1039
|
});
|
|
1077
1040
|
continue;
|
|
1078
1041
|
}
|
|
1079
|
-
if (
|
|
1042
|
+
if (Ut.test(i.stem)) {
|
|
1080
1043
|
t.minimumIntegerDigits = i.stem.length;
|
|
1081
1044
|
continue;
|
|
1082
1045
|
}
|
|
1083
|
-
if (
|
|
1046
|
+
if (et.test(i.stem)) {
|
|
1084
1047
|
if (i.options.length > 1)
|
|
1085
1048
|
throw new RangeError("Fraction-precision stems only accept a single optional option");
|
|
1086
|
-
i.stem.replace(
|
|
1087
|
-
return h === "*" ? t.minimumFractionDigits =
|
|
1049
|
+
i.stem.replace(et, function(l, a, h, f, c, d) {
|
|
1050
|
+
return h === "*" ? t.minimumFractionDigits = a.length : f && f[0] === "#" ? t.maximumFractionDigits = f.length : c && d ? (t.minimumFractionDigits = c.length, t.maximumFractionDigits = c.length + d.length) : (t.minimumFractionDigits = a.length, t.maximumFractionDigits = a.length), "";
|
|
1088
1051
|
});
|
|
1089
1052
|
var s = i.options[0];
|
|
1090
|
-
s === "w" ? t = y(y({}, t), { trailingZeroDisplay: "stripIfInteger" }) : s && (t = y(y({}, t),
|
|
1053
|
+
s === "w" ? t = y(y({}, t), { trailingZeroDisplay: "stripIfInteger" }) : s && (t = y(y({}, t), tt(s)));
|
|
1091
1054
|
continue;
|
|
1092
1055
|
}
|
|
1093
|
-
if (
|
|
1094
|
-
t = y(y({}, t),
|
|
1056
|
+
if (Rt.test(i.stem)) {
|
|
1057
|
+
t = y(y({}, t), tt(i.stem));
|
|
1095
1058
|
continue;
|
|
1096
1059
|
}
|
|
1097
|
-
var
|
|
1060
|
+
var u = Dt(i.stem);
|
|
1061
|
+
u && (t = y(y({}, t), u));
|
|
1062
|
+
var o = tn(i.stem);
|
|
1098
1063
|
o && (t = y(y({}, t), o));
|
|
1099
|
-
var a = mn(i.stem);
|
|
1100
|
-
a && (t = y(y({}, t), a));
|
|
1101
1064
|
}
|
|
1102
1065
|
return t;
|
|
1103
1066
|
}
|
|
1104
|
-
var
|
|
1067
|
+
var oe = {
|
|
1105
1068
|
"001": [
|
|
1106
1069
|
"H",
|
|
1107
1070
|
"h"
|
|
@@ -2516,22 +2479,22 @@ var ae = {
|
|
|
2516
2479
|
"h"
|
|
2517
2480
|
]
|
|
2518
2481
|
};
|
|
2519
|
-
function
|
|
2482
|
+
function nn(e, t) {
|
|
2520
2483
|
for (var r = "", n = 0; n < e.length; n++) {
|
|
2521
2484
|
var i = e.charAt(n);
|
|
2522
2485
|
if (i === "j") {
|
|
2523
2486
|
for (var s = 0; n + 1 < e.length && e.charAt(n + 1) === i; )
|
|
2524
2487
|
s++, n++;
|
|
2525
|
-
var
|
|
2526
|
-
for ((
|
|
2488
|
+
var u = 1 + (s & 1), o = s < 2 ? 1 : 3 + (s >> 1), l = "a", a = sn(t);
|
|
2489
|
+
for ((a == "H" || a == "k") && (o = 0); o-- > 0; )
|
|
2527
2490
|
r += l;
|
|
2528
|
-
for (;
|
|
2529
|
-
r =
|
|
2491
|
+
for (; u-- > 0; )
|
|
2492
|
+
r = a + r;
|
|
2530
2493
|
} else i === "J" ? r += "H" : r += i;
|
|
2531
2494
|
}
|
|
2532
2495
|
return r;
|
|
2533
2496
|
}
|
|
2534
|
-
function
|
|
2497
|
+
function sn(e) {
|
|
2535
2498
|
var t = e.hourCycle;
|
|
2536
2499
|
if (t === void 0 && // @ts-ignore hourCycle(s) is not identified yet
|
|
2537
2500
|
e.hourCycles && // @ts-ignore
|
|
@@ -2550,23 +2513,23 @@ function bn(e) {
|
|
|
2550
2513
|
}
|
|
2551
2514
|
var r = e.language, n;
|
|
2552
2515
|
r !== "root" && (n = e.maximize().region);
|
|
2553
|
-
var i =
|
|
2516
|
+
var i = oe[n || ""] || oe[r || ""] || oe["".concat(r, "-001")] || oe["001"];
|
|
2554
2517
|
return i[0];
|
|
2555
2518
|
}
|
|
2556
|
-
var
|
|
2519
|
+
var Ce, on = new RegExp("^".concat($t.source, "*")), an = new RegExp("".concat($t.source, "*$"));
|
|
2557
2520
|
function b(e, t) {
|
|
2558
2521
|
return { start: e, end: t };
|
|
2559
2522
|
}
|
|
2560
|
-
var
|
|
2523
|
+
var un = !!String.prototype.startsWith && "_a".startsWith("a", 1), hn = !!String.fromCodePoint, ln = !!Object.fromEntries, fn = !!String.prototype.codePointAt, cn = !!String.prototype.trimStart, mn = !!String.prototype.trimEnd, dn = !!Number.isSafeInteger, pn = dn ? Number.isSafeInteger : function(e) {
|
|
2561
2524
|
return typeof e == "number" && isFinite(e) && Math.floor(e) === e && Math.abs(e) <= 9007199254740991;
|
|
2562
|
-
},
|
|
2525
|
+
}, Re = !0;
|
|
2563
2526
|
try {
|
|
2564
|
-
var
|
|
2565
|
-
|
|
2566
|
-
} catch
|
|
2567
|
-
|
|
2527
|
+
var bn = Ft("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
2528
|
+
Re = ((Ce = bn.exec("a")) === null || Ce === void 0 ? void 0 : Ce[0]) === "a";
|
|
2529
|
+
} catch {
|
|
2530
|
+
Re = !1;
|
|
2568
2531
|
}
|
|
2569
|
-
var
|
|
2532
|
+
var nt = un ? (
|
|
2570
2533
|
// Native
|
|
2571
2534
|
function(t, r, n) {
|
|
2572
2535
|
return t.startsWith(r, n);
|
|
@@ -2576,31 +2539,31 @@ var ht = yn ? (
|
|
|
2576
2539
|
function(t, r, n) {
|
|
2577
2540
|
return t.slice(n, n + r.length) === r;
|
|
2578
2541
|
}
|
|
2579
|
-
),
|
|
2542
|
+
), Ue = hn ? String.fromCodePoint : (
|
|
2580
2543
|
// IE11
|
|
2581
2544
|
function() {
|
|
2582
2545
|
for (var t = [], r = 0; r < arguments.length; r++)
|
|
2583
2546
|
t[r] = arguments[r];
|
|
2584
|
-
for (var n = "", i = t.length, s = 0,
|
|
2585
|
-
if (
|
|
2586
|
-
throw RangeError(
|
|
2587
|
-
n +=
|
|
2547
|
+
for (var n = "", i = t.length, s = 0, u; i > s; ) {
|
|
2548
|
+
if (u = t[s++], u > 1114111)
|
|
2549
|
+
throw RangeError(u + " is not a valid code point");
|
|
2550
|
+
n += u < 65536 ? String.fromCharCode(u) : String.fromCharCode(((u -= 65536) >> 10) + 55296, u % 1024 + 56320);
|
|
2588
2551
|
}
|
|
2589
2552
|
return n;
|
|
2590
2553
|
}
|
|
2591
|
-
),
|
|
2554
|
+
), it = (
|
|
2592
2555
|
// native
|
|
2593
|
-
|
|
2556
|
+
ln ? Object.fromEntries : (
|
|
2594
2557
|
// Ponyfill
|
|
2595
2558
|
function(t) {
|
|
2596
2559
|
for (var r = {}, n = 0, i = t; n < i.length; n++) {
|
|
2597
|
-
var s = i[n],
|
|
2598
|
-
r[
|
|
2560
|
+
var s = i[n], u = s[0], o = s[1];
|
|
2561
|
+
r[u] = o;
|
|
2599
2562
|
}
|
|
2600
2563
|
return r;
|
|
2601
2564
|
}
|
|
2602
2565
|
)
|
|
2603
|
-
),
|
|
2566
|
+
), Gt = fn ? (
|
|
2604
2567
|
// Native
|
|
2605
2568
|
function(t, r) {
|
|
2606
2569
|
return t.codePointAt(r);
|
|
@@ -2614,7 +2577,7 @@ var ht = yn ? (
|
|
|
2614
2577
|
return i < 55296 || i > 56319 || r + 1 === n || (s = t.charCodeAt(r + 1)) < 56320 || s > 57343 ? i : (i - 55296 << 10) + (s - 56320) + 65536;
|
|
2615
2578
|
}
|
|
2616
2579
|
}
|
|
2617
|
-
),
|
|
2580
|
+
), gn = cn ? (
|
|
2618
2581
|
// Native
|
|
2619
2582
|
function(t) {
|
|
2620
2583
|
return t.trimStart();
|
|
@@ -2622,9 +2585,9 @@ var ht = yn ? (
|
|
|
2622
2585
|
) : (
|
|
2623
2586
|
// Ponyfill
|
|
2624
2587
|
function(t) {
|
|
2625
|
-
return t.replace(
|
|
2588
|
+
return t.replace(on, "");
|
|
2626
2589
|
}
|
|
2627
|
-
),
|
|
2590
|
+
), _n = mn ? (
|
|
2628
2591
|
// Native
|
|
2629
2592
|
function(t) {
|
|
2630
2593
|
return t.trimEnd();
|
|
@@ -2632,32 +2595,32 @@ var ht = yn ? (
|
|
|
2632
2595
|
) : (
|
|
2633
2596
|
// Ponyfill
|
|
2634
2597
|
function(t) {
|
|
2635
|
-
return t.replace(
|
|
2598
|
+
return t.replace(an, "");
|
|
2636
2599
|
}
|
|
2637
2600
|
);
|
|
2638
|
-
function
|
|
2601
|
+
function Ft(e, t) {
|
|
2639
2602
|
return new RegExp(e, t);
|
|
2640
2603
|
}
|
|
2641
|
-
var
|
|
2642
|
-
if (
|
|
2643
|
-
var
|
|
2644
|
-
|
|
2604
|
+
var De;
|
|
2605
|
+
if (Re) {
|
|
2606
|
+
var st = Ft("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
2607
|
+
De = function(t, r) {
|
|
2645
2608
|
var n;
|
|
2646
|
-
|
|
2647
|
-
var i =
|
|
2609
|
+
st.lastIndex = r;
|
|
2610
|
+
var i = st.exec(t);
|
|
2648
2611
|
return (n = i[1]) !== null && n !== void 0 ? n : "";
|
|
2649
2612
|
};
|
|
2650
2613
|
} else
|
|
2651
|
-
|
|
2614
|
+
De = function(t, r) {
|
|
2652
2615
|
for (var n = []; ; ) {
|
|
2653
|
-
var i =
|
|
2654
|
-
if (i === void 0 ||
|
|
2616
|
+
var i = Gt(t, r);
|
|
2617
|
+
if (i === void 0 || jt(i) || vn(i))
|
|
2655
2618
|
break;
|
|
2656
2619
|
n.push(i), r += i >= 65536 ? 2 : 1;
|
|
2657
2620
|
}
|
|
2658
|
-
return
|
|
2621
|
+
return Ue.apply(void 0, n);
|
|
2659
2622
|
};
|
|
2660
|
-
var
|
|
2623
|
+
var yn = (
|
|
2661
2624
|
/** @class */
|
|
2662
2625
|
function() {
|
|
2663
2626
|
function e(t, r) {
|
|
@@ -2671,33 +2634,33 @@ var On = (
|
|
|
2671
2634
|
for (var i = []; !this.isEOF(); ) {
|
|
2672
2635
|
var s = this.char();
|
|
2673
2636
|
if (s === 123) {
|
|
2674
|
-
var
|
|
2675
|
-
if (
|
|
2676
|
-
return
|
|
2677
|
-
i.push(
|
|
2637
|
+
var u = this.parseArgument(t, n);
|
|
2638
|
+
if (u.err)
|
|
2639
|
+
return u;
|
|
2640
|
+
i.push(u.val);
|
|
2678
2641
|
} else {
|
|
2679
2642
|
if (s === 125 && t > 0)
|
|
2680
2643
|
break;
|
|
2681
2644
|
if (s === 35 && (r === "plural" || r === "selectordinal")) {
|
|
2682
|
-
var
|
|
2645
|
+
var o = this.clonePosition();
|
|
2683
2646
|
this.bump(), i.push({
|
|
2684
2647
|
type: E.pound,
|
|
2685
|
-
location: b(
|
|
2648
|
+
location: b(o, this.clonePosition())
|
|
2686
2649
|
});
|
|
2687
2650
|
} else if (s === 60 && !this.ignoreTag && this.peek() === 47) {
|
|
2688
2651
|
if (n)
|
|
2689
2652
|
break;
|
|
2690
2653
|
return this.error(p.UNMATCHED_CLOSING_TAG, b(this.clonePosition(), this.clonePosition()));
|
|
2691
|
-
} else if (s === 60 && !this.ignoreTag &&
|
|
2692
|
-
var
|
|
2693
|
-
if (
|
|
2694
|
-
return
|
|
2695
|
-
i.push(
|
|
2654
|
+
} else if (s === 60 && !this.ignoreTag && Ge(this.peek() || 0)) {
|
|
2655
|
+
var u = this.parseTag(t, r);
|
|
2656
|
+
if (u.err)
|
|
2657
|
+
return u;
|
|
2658
|
+
i.push(u.val);
|
|
2696
2659
|
} else {
|
|
2697
|
-
var
|
|
2698
|
-
if (
|
|
2699
|
-
return
|
|
2700
|
-
i.push(
|
|
2660
|
+
var u = this.parseLiteral(t, r);
|
|
2661
|
+
if (u.err)
|
|
2662
|
+
return u;
|
|
2663
|
+
i.push(u.val);
|
|
2701
2664
|
}
|
|
2702
2665
|
}
|
|
2703
2666
|
}
|
|
@@ -2719,27 +2682,27 @@ var On = (
|
|
|
2719
2682
|
var s = this.parseMessage(t + 1, r, !0);
|
|
2720
2683
|
if (s.err)
|
|
2721
2684
|
return s;
|
|
2722
|
-
var
|
|
2685
|
+
var u = s.val, o = this.clonePosition();
|
|
2723
2686
|
if (this.bumpIf("</")) {
|
|
2724
|
-
if (this.isEOF() || !
|
|
2725
|
-
return this.error(p.INVALID_TAG, b(
|
|
2726
|
-
var l = this.clonePosition(),
|
|
2727
|
-
return i !==
|
|
2687
|
+
if (this.isEOF() || !Ge(this.char()))
|
|
2688
|
+
return this.error(p.INVALID_TAG, b(o, this.clonePosition()));
|
|
2689
|
+
var l = this.clonePosition(), a = this.parseTagName();
|
|
2690
|
+
return i !== a ? this.error(p.UNMATCHED_CLOSING_TAG, b(l, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
|
|
2728
2691
|
val: {
|
|
2729
2692
|
type: E.tag,
|
|
2730
2693
|
value: i,
|
|
2731
|
-
children:
|
|
2694
|
+
children: u,
|
|
2732
2695
|
location: b(n, this.clonePosition())
|
|
2733
2696
|
},
|
|
2734
2697
|
err: null
|
|
2735
|
-
} : this.error(p.INVALID_TAG, b(
|
|
2698
|
+
} : this.error(p.INVALID_TAG, b(o, this.clonePosition())));
|
|
2736
2699
|
} else
|
|
2737
2700
|
return this.error(p.UNCLOSED_TAG, b(n, this.clonePosition()));
|
|
2738
2701
|
} else
|
|
2739
2702
|
return this.error(p.INVALID_TAG, b(n, this.clonePosition()));
|
|
2740
2703
|
}, e.prototype.parseTagName = function() {
|
|
2741
2704
|
var t = this.offset();
|
|
2742
|
-
for (this.bump(); !this.isEOF() &&
|
|
2705
|
+
for (this.bump(); !this.isEOF() && xn(this.char()); )
|
|
2743
2706
|
this.bump();
|
|
2744
2707
|
return this.message.slice(t, this.offset());
|
|
2745
2708
|
}, e.prototype.parseLiteral = function(t, r) {
|
|
@@ -2749,14 +2712,14 @@ var On = (
|
|
|
2749
2712
|
i += s;
|
|
2750
2713
|
continue;
|
|
2751
2714
|
}
|
|
2752
|
-
var
|
|
2753
|
-
if (
|
|
2754
|
-
i +=
|
|
2715
|
+
var u = this.tryParseUnquoted(t, r);
|
|
2716
|
+
if (u) {
|
|
2717
|
+
i += u;
|
|
2755
2718
|
continue;
|
|
2756
2719
|
}
|
|
2757
|
-
var
|
|
2758
|
-
if (
|
|
2759
|
-
i +=
|
|
2720
|
+
var o = this.tryParseLeftAngleBracket();
|
|
2721
|
+
if (o) {
|
|
2722
|
+
i += o;
|
|
2760
2723
|
continue;
|
|
2761
2724
|
}
|
|
2762
2725
|
break;
|
|
@@ -2768,7 +2731,7 @@ var On = (
|
|
|
2768
2731
|
};
|
|
2769
2732
|
}, e.prototype.tryParseLeftAngleBracket = function() {
|
|
2770
2733
|
return !this.isEOF() && this.char() === 60 && (this.ignoreTag || // If at the opening tag or closing tag position, bail.
|
|
2771
|
-
!
|
|
2734
|
+
!En(this.peek() || 0)) ? (this.bump(), "<") : null;
|
|
2772
2735
|
}, e.prototype.tryParseQuote = function(t) {
|
|
2773
2736
|
if (this.isEOF() || this.char() !== 39)
|
|
2774
2737
|
return null;
|
|
@@ -2802,12 +2765,12 @@ var On = (
|
|
|
2802
2765
|
r.push(n);
|
|
2803
2766
|
this.bump();
|
|
2804
2767
|
}
|
|
2805
|
-
return
|
|
2768
|
+
return Ue.apply(void 0, r);
|
|
2806
2769
|
}, e.prototype.tryParseUnquoted = function(t, r) {
|
|
2807
2770
|
if (this.isEOF())
|
|
2808
2771
|
return null;
|
|
2809
2772
|
var n = this.char();
|
|
2810
|
-
return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(),
|
|
2773
|
+
return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(), Ue(n));
|
|
2811
2774
|
}, e.prototype.parseArgument = function(t, r) {
|
|
2812
2775
|
var n = this.clonePosition();
|
|
2813
2776
|
if (this.bump(), this.bumpSpace(), this.isEOF())
|
|
@@ -2836,39 +2799,39 @@ var On = (
|
|
|
2836
2799
|
return this.error(p.MALFORMED_ARGUMENT, b(n, this.clonePosition()));
|
|
2837
2800
|
}
|
|
2838
2801
|
}, e.prototype.parseIdentifierIfPossible = function() {
|
|
2839
|
-
var t = this.clonePosition(), r = this.offset(), n =
|
|
2802
|
+
var t = this.clonePosition(), r = this.offset(), n = De(this.message, r), i = r + n.length;
|
|
2840
2803
|
this.bumpTo(i);
|
|
2841
|
-
var s = this.clonePosition(),
|
|
2842
|
-
return { value: n, location:
|
|
2804
|
+
var s = this.clonePosition(), u = b(t, s);
|
|
2805
|
+
return { value: n, location: u };
|
|
2843
2806
|
}, e.prototype.parseArgumentOptions = function(t, r, n, i) {
|
|
2844
|
-
var s,
|
|
2845
|
-
switch (
|
|
2807
|
+
var s, u = this.clonePosition(), o = this.parseIdentifierIfPossible().value, l = this.clonePosition();
|
|
2808
|
+
switch (o) {
|
|
2846
2809
|
case "":
|
|
2847
|
-
return this.error(p.EXPECT_ARGUMENT_TYPE, b(
|
|
2810
|
+
return this.error(p.EXPECT_ARGUMENT_TYPE, b(u, l));
|
|
2848
2811
|
case "number":
|
|
2849
2812
|
case "date":
|
|
2850
2813
|
case "time": {
|
|
2851
2814
|
this.bumpSpace();
|
|
2852
|
-
var
|
|
2815
|
+
var a = null;
|
|
2853
2816
|
if (this.bumpIf(",")) {
|
|
2854
2817
|
this.bumpSpace();
|
|
2855
2818
|
var h = this.clonePosition(), f = this.parseSimpleArgStyleIfPossible();
|
|
2856
2819
|
if (f.err)
|
|
2857
2820
|
return f;
|
|
2858
|
-
var c =
|
|
2821
|
+
var c = _n(f.val);
|
|
2859
2822
|
if (c.length === 0)
|
|
2860
2823
|
return this.error(p.EXPECT_ARGUMENT_STYLE, b(this.clonePosition(), this.clonePosition()));
|
|
2861
2824
|
var d = b(h, this.clonePosition());
|
|
2862
|
-
|
|
2825
|
+
a = { style: c, styleLocation: d };
|
|
2863
2826
|
}
|
|
2864
2827
|
var m = this.tryParseArgumentClose(i);
|
|
2865
2828
|
if (m.err)
|
|
2866
2829
|
return m;
|
|
2867
2830
|
var g = b(i, this.clonePosition());
|
|
2868
|
-
if (
|
|
2869
|
-
var v =
|
|
2870
|
-
if (
|
|
2871
|
-
var f = this.parseNumberSkeletonFromString(v,
|
|
2831
|
+
if (a && nt(a?.style, "::", 0)) {
|
|
2832
|
+
var v = gn(a.style.slice(2));
|
|
2833
|
+
if (o === "number") {
|
|
2834
|
+
var f = this.parseNumberSkeletonFromString(v, a.styleLocation);
|
|
2872
2835
|
return f.err ? f : {
|
|
2873
2836
|
val: { type: E.number, value: n, location: g, style: f.val },
|
|
2874
2837
|
err: null
|
|
@@ -2876,26 +2839,26 @@ var On = (
|
|
|
2876
2839
|
} else {
|
|
2877
2840
|
if (v.length === 0)
|
|
2878
2841
|
return this.error(p.EXPECT_DATE_TIME_SKELETON, g);
|
|
2879
|
-
var
|
|
2880
|
-
this.locale && (
|
|
2842
|
+
var L = v;
|
|
2843
|
+
this.locale && (L = nn(v, this.locale));
|
|
2881
2844
|
var c = {
|
|
2882
|
-
type:
|
|
2883
|
-
pattern:
|
|
2884
|
-
location:
|
|
2885
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
2886
|
-
},
|
|
2845
|
+
type: k.dateTime,
|
|
2846
|
+
pattern: L,
|
|
2847
|
+
location: a.styleLocation,
|
|
2848
|
+
parsedOptions: this.shouldParseSkeletons ? qr(L) : {}
|
|
2849
|
+
}, A = o === "date" ? E.date : E.time;
|
|
2887
2850
|
return {
|
|
2888
|
-
val: { type:
|
|
2851
|
+
val: { type: A, value: n, location: g, style: c },
|
|
2889
2852
|
err: null
|
|
2890
2853
|
};
|
|
2891
2854
|
}
|
|
2892
2855
|
}
|
|
2893
2856
|
return {
|
|
2894
2857
|
val: {
|
|
2895
|
-
type:
|
|
2858
|
+
type: o === "number" ? E.number : o === "date" ? E.date : E.time,
|
|
2896
2859
|
value: n,
|
|
2897
2860
|
location: g,
|
|
2898
|
-
style: (s =
|
|
2861
|
+
style: (s = a?.style) !== null && s !== void 0 ? s : null
|
|
2899
2862
|
},
|
|
2900
2863
|
err: null
|
|
2901
2864
|
};
|
|
@@ -2907,45 +2870,45 @@ var On = (
|
|
|
2907
2870
|
if (this.bumpSpace(), !this.bumpIf(","))
|
|
2908
2871
|
return this.error(p.EXPECT_SELECT_ARGUMENT_OPTIONS, b(H, y({}, H)));
|
|
2909
2872
|
this.bumpSpace();
|
|
2910
|
-
var
|
|
2911
|
-
if (
|
|
2873
|
+
var N = this.parseIdentifierIfPossible(), T = 0;
|
|
2874
|
+
if (o !== "select" && N.value === "offset") {
|
|
2912
2875
|
if (!this.bumpIf(":"))
|
|
2913
2876
|
return this.error(p.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, b(this.clonePosition(), this.clonePosition()));
|
|
2914
2877
|
this.bumpSpace();
|
|
2915
2878
|
var f = this.tryParseDecimalInteger(p.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, p.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);
|
|
2916
2879
|
if (f.err)
|
|
2917
2880
|
return f;
|
|
2918
|
-
this.bumpSpace(),
|
|
2881
|
+
this.bumpSpace(), N = this.parseIdentifierIfPossible(), T = f.val;
|
|
2919
2882
|
}
|
|
2920
|
-
var
|
|
2921
|
-
if (
|
|
2922
|
-
return
|
|
2883
|
+
var $ = this.tryParsePluralOrSelectOptions(t, o, r, N);
|
|
2884
|
+
if ($.err)
|
|
2885
|
+
return $;
|
|
2923
2886
|
var m = this.tryParseArgumentClose(i);
|
|
2924
2887
|
if (m.err)
|
|
2925
2888
|
return m;
|
|
2926
|
-
var
|
|
2927
|
-
return
|
|
2889
|
+
var ie = b(i, this.clonePosition());
|
|
2890
|
+
return o === "select" ? {
|
|
2928
2891
|
val: {
|
|
2929
2892
|
type: E.select,
|
|
2930
2893
|
value: n,
|
|
2931
|
-
options:
|
|
2932
|
-
location:
|
|
2894
|
+
options: it($.val),
|
|
2895
|
+
location: ie
|
|
2933
2896
|
},
|
|
2934
2897
|
err: null
|
|
2935
2898
|
} : {
|
|
2936
2899
|
val: {
|
|
2937
2900
|
type: E.plural,
|
|
2938
2901
|
value: n,
|
|
2939
|
-
options:
|
|
2940
|
-
offset:
|
|
2941
|
-
pluralType:
|
|
2942
|
-
location:
|
|
2902
|
+
options: it($.val),
|
|
2903
|
+
offset: T,
|
|
2904
|
+
pluralType: o === "plural" ? "cardinal" : "ordinal",
|
|
2905
|
+
location: ie
|
|
2943
2906
|
},
|
|
2944
2907
|
err: null
|
|
2945
2908
|
};
|
|
2946
2909
|
}
|
|
2947
2910
|
default:
|
|
2948
|
-
return this.error(p.INVALID_ARGUMENT_TYPE, b(
|
|
2911
|
+
return this.error(p.INVALID_ARGUMENT_TYPE, b(u, l));
|
|
2949
2912
|
}
|
|
2950
2913
|
}, e.prototype.tryParseArgumentClose = function(t) {
|
|
2951
2914
|
return this.isEOF() || this.char() !== 125 ? this.error(p.EXPECT_ARGUMENT_CLOSING_BRACE, b(t, this.clonePosition())) : (this.bump(), { val: !0, err: null });
|
|
@@ -2987,34 +2950,34 @@ var On = (
|
|
|
2987
2950
|
}, e.prototype.parseNumberSkeletonFromString = function(t, r) {
|
|
2988
2951
|
var n = [];
|
|
2989
2952
|
try {
|
|
2990
|
-
n =
|
|
2991
|
-
} catch
|
|
2953
|
+
n = Yr(t);
|
|
2954
|
+
} catch {
|
|
2992
2955
|
return this.error(p.INVALID_NUMBER_SKELETON, r);
|
|
2993
2956
|
}
|
|
2994
2957
|
return {
|
|
2995
2958
|
val: {
|
|
2996
|
-
type:
|
|
2959
|
+
type: k.number,
|
|
2997
2960
|
tokens: n,
|
|
2998
2961
|
location: r,
|
|
2999
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
2962
|
+
parsedOptions: this.shouldParseSkeletons ? rn(n) : {}
|
|
3000
2963
|
},
|
|
3001
2964
|
err: null
|
|
3002
2965
|
};
|
|
3003
2966
|
}, e.prototype.tryParsePluralOrSelectOptions = function(t, r, n, i) {
|
|
3004
|
-
for (var s,
|
|
3005
|
-
if (
|
|
2967
|
+
for (var s, u = !1, o = [], l = /* @__PURE__ */ new Set(), a = i.value, h = i.location; ; ) {
|
|
2968
|
+
if (a.length === 0) {
|
|
3006
2969
|
var f = this.clonePosition();
|
|
3007
2970
|
if (r !== "select" && this.bumpIf("=")) {
|
|
3008
2971
|
var c = this.tryParseDecimalInteger(p.EXPECT_PLURAL_ARGUMENT_SELECTOR, p.INVALID_PLURAL_ARGUMENT_SELECTOR);
|
|
3009
2972
|
if (c.err)
|
|
3010
2973
|
return c;
|
|
3011
|
-
h = b(f, this.clonePosition()),
|
|
2974
|
+
h = b(f, this.clonePosition()), a = this.message.slice(f.offset, this.offset());
|
|
3012
2975
|
} else
|
|
3013
2976
|
break;
|
|
3014
2977
|
}
|
|
3015
|
-
if (l.has(
|
|
2978
|
+
if (l.has(a))
|
|
3016
2979
|
return this.error(r === "select" ? p.DUPLICATE_SELECT_ARGUMENT_SELECTOR : p.DUPLICATE_PLURAL_ARGUMENT_SELECTOR, h);
|
|
3017
|
-
|
|
2980
|
+
a === "other" && (u = !0), this.bumpSpace();
|
|
3018
2981
|
var d = this.clonePosition();
|
|
3019
2982
|
if (!this.bumpIf("{"))
|
|
3020
2983
|
return this.error(r === "select" ? p.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT : p.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT, b(this.clonePosition(), this.clonePosition()));
|
|
@@ -3024,27 +2987,27 @@ var On = (
|
|
|
3024
2987
|
var g = this.tryParseArgumentClose(d);
|
|
3025
2988
|
if (g.err)
|
|
3026
2989
|
return g;
|
|
3027
|
-
|
|
3028
|
-
|
|
2990
|
+
o.push([
|
|
2991
|
+
a,
|
|
3029
2992
|
{
|
|
3030
2993
|
value: m.val,
|
|
3031
2994
|
location: b(d, this.clonePosition())
|
|
3032
2995
|
}
|
|
3033
|
-
]), l.add(
|
|
2996
|
+
]), l.add(a), this.bumpSpace(), s = this.parseIdentifierIfPossible(), a = s.value, h = s.location;
|
|
3034
2997
|
}
|
|
3035
|
-
return
|
|
2998
|
+
return o.length === 0 ? this.error(r === "select" ? p.EXPECT_SELECT_ARGUMENT_SELECTOR : p.EXPECT_PLURAL_ARGUMENT_SELECTOR, b(this.clonePosition(), this.clonePosition())) : this.requiresOtherClause && !u ? this.error(p.MISSING_OTHER_CLAUSE, b(this.clonePosition(), this.clonePosition())) : { val: o, err: null };
|
|
3036
2999
|
}, e.prototype.tryParseDecimalInteger = function(t, r) {
|
|
3037
3000
|
var n = 1, i = this.clonePosition();
|
|
3038
3001
|
this.bumpIf("+") || this.bumpIf("-") && (n = -1);
|
|
3039
|
-
for (var s = !1,
|
|
3040
|
-
var
|
|
3041
|
-
if (
|
|
3042
|
-
s = !0,
|
|
3002
|
+
for (var s = !1, u = 0; !this.isEOF(); ) {
|
|
3003
|
+
var o = this.char();
|
|
3004
|
+
if (o >= 48 && o <= 57)
|
|
3005
|
+
s = !0, u = u * 10 + (o - 48), this.bump();
|
|
3043
3006
|
else
|
|
3044
3007
|
break;
|
|
3045
3008
|
}
|
|
3046
3009
|
var l = b(i, this.clonePosition());
|
|
3047
|
-
return s ? (
|
|
3010
|
+
return s ? (u *= n, pn(u) ? { val: u, err: null } : this.error(r, l)) : this.error(t, l);
|
|
3048
3011
|
}, e.prototype.offset = function() {
|
|
3049
3012
|
return this.position.offset;
|
|
3050
3013
|
}, e.prototype.isEOF = function() {
|
|
@@ -3059,7 +3022,7 @@ var On = (
|
|
|
3059
3022
|
var t = this.position.offset;
|
|
3060
3023
|
if (t >= this.message.length)
|
|
3061
3024
|
throw Error("out of bound");
|
|
3062
|
-
var r =
|
|
3025
|
+
var r = Gt(this.message, t);
|
|
3063
3026
|
if (r === void 0)
|
|
3064
3027
|
throw Error("Offset ".concat(t, " is at invalid UTF-16 code unit boundary"));
|
|
3065
3028
|
return r;
|
|
@@ -3078,7 +3041,7 @@ var On = (
|
|
|
3078
3041
|
t === 10 ? (this.position.line += 1, this.position.column = 1, this.position.offset += 1) : (this.position.column += 1, this.position.offset += t < 65536 ? 1 : 2);
|
|
3079
3042
|
}
|
|
3080
3043
|
}, e.prototype.bumpIf = function(t) {
|
|
3081
|
-
if (
|
|
3044
|
+
if (nt(this.message, t, this.offset())) {
|
|
3082
3045
|
for (var r = 0; r < t.length; r++)
|
|
3083
3046
|
this.bump();
|
|
3084
3047
|
return !0;
|
|
@@ -3100,56 +3063,56 @@ var On = (
|
|
|
3100
3063
|
break;
|
|
3101
3064
|
}
|
|
3102
3065
|
}, e.prototype.bumpSpace = function() {
|
|
3103
|
-
for (; !this.isEOF() &&
|
|
3066
|
+
for (; !this.isEOF() && jt(this.char()); )
|
|
3104
3067
|
this.bump();
|
|
3105
3068
|
}, e.prototype.peek = function() {
|
|
3106
3069
|
if (this.isEOF())
|
|
3107
3070
|
return null;
|
|
3108
3071
|
var t = this.char(), r = this.offset(), n = this.message.charCodeAt(r + (t >= 65536 ? 2 : 1));
|
|
3109
|
-
return n
|
|
3072
|
+
return n ?? null;
|
|
3110
3073
|
}, e;
|
|
3111
3074
|
}()
|
|
3112
3075
|
);
|
|
3113
|
-
function
|
|
3076
|
+
function Ge(e) {
|
|
3114
3077
|
return e >= 97 && e <= 122 || e >= 65 && e <= 90;
|
|
3115
3078
|
}
|
|
3116
|
-
function
|
|
3117
|
-
return
|
|
3079
|
+
function En(e) {
|
|
3080
|
+
return Ge(e) || e === 47;
|
|
3118
3081
|
}
|
|
3119
|
-
function
|
|
3082
|
+
function xn(e) {
|
|
3120
3083
|
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;
|
|
3121
3084
|
}
|
|
3122
|
-
function
|
|
3085
|
+
function jt(e) {
|
|
3123
3086
|
return e >= 9 && e <= 13 || e === 32 || e === 133 || e >= 8206 && e <= 8207 || e === 8232 || e === 8233;
|
|
3124
3087
|
}
|
|
3125
|
-
function
|
|
3088
|
+
function vn(e) {
|
|
3126
3089
|
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;
|
|
3127
3090
|
}
|
|
3128
|
-
function
|
|
3091
|
+
function Fe(e) {
|
|
3129
3092
|
e.forEach(function(t) {
|
|
3130
|
-
if (delete t.location,
|
|
3093
|
+
if (delete t.location, Lt(t) || Nt(t))
|
|
3131
3094
|
for (var r in t.options)
|
|
3132
|
-
delete t.options[r].location,
|
|
3133
|
-
else
|
|
3095
|
+
delete t.options[r].location, Fe(t.options[r].value);
|
|
3096
|
+
else Ct(t) && Mt(t.style) || (Ot(t) || Pt(t)) && $e(t.style) ? delete t.style.location : It(t) && Fe(t.children);
|
|
3134
3097
|
});
|
|
3135
3098
|
}
|
|
3136
|
-
function
|
|
3099
|
+
function Hn(e, t) {
|
|
3137
3100
|
t === void 0 && (t = {}), t = y({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
|
|
3138
|
-
var r = new
|
|
3101
|
+
var r = new yn(e, t).parse();
|
|
3139
3102
|
if (r.err) {
|
|
3140
3103
|
var n = SyntaxError(p[r.err.kind]);
|
|
3141
3104
|
throw n.location = r.err.location, n.originalMessage = r.err.message, n;
|
|
3142
3105
|
}
|
|
3143
|
-
return t
|
|
3106
|
+
return t?.captureLocation || Fe(r.val), r.val;
|
|
3144
3107
|
}
|
|
3145
|
-
var
|
|
3108
|
+
var V;
|
|
3146
3109
|
(function(e) {
|
|
3147
3110
|
e.MISSING_VALUE = "MISSING_VALUE", e.INVALID_VALUE = "INVALID_VALUE", e.MISSING_INTL_API = "MISSING_INTL_API";
|
|
3148
|
-
})(
|
|
3149
|
-
var
|
|
3111
|
+
})(V || (V = {}));
|
|
3112
|
+
var _e = (
|
|
3150
3113
|
/** @class */
|
|
3151
3114
|
function(e) {
|
|
3152
|
-
|
|
3115
|
+
ge(t, e);
|
|
3153
3116
|
function t(r, n, i) {
|
|
3154
3117
|
var s = e.call(this, r) || this;
|
|
3155
3118
|
return s.code = n, s.originalMessage = i, s;
|
|
@@ -3158,65 +3121,65 @@ var ye = (
|
|
|
3158
3121
|
return "[formatjs Error: ".concat(this.code, "] ").concat(this.message);
|
|
3159
3122
|
}, t;
|
|
3160
3123
|
}(Error)
|
|
3161
|
-
),
|
|
3124
|
+
), ot = (
|
|
3162
3125
|
/** @class */
|
|
3163
3126
|
function(e) {
|
|
3164
|
-
|
|
3127
|
+
ge(t, e);
|
|
3165
3128
|
function t(r, n, i, s) {
|
|
3166
|
-
return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'),
|
|
3129
|
+
return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'), V.INVALID_VALUE, s) || this;
|
|
3167
3130
|
}
|
|
3168
3131
|
return t;
|
|
3169
|
-
}(
|
|
3170
|
-
),
|
|
3132
|
+
}(_e)
|
|
3133
|
+
), Bn = (
|
|
3171
3134
|
/** @class */
|
|
3172
3135
|
function(e) {
|
|
3173
|
-
|
|
3136
|
+
ge(t, e);
|
|
3174
3137
|
function t(r, n, i) {
|
|
3175
|
-
return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n),
|
|
3138
|
+
return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n), V.INVALID_VALUE, i) || this;
|
|
3176
3139
|
}
|
|
3177
3140
|
return t;
|
|
3178
|
-
}(
|
|
3179
|
-
),
|
|
3141
|
+
}(_e)
|
|
3142
|
+
), Tn = (
|
|
3180
3143
|
/** @class */
|
|
3181
3144
|
function(e) {
|
|
3182
|
-
|
|
3145
|
+
ge(t, e);
|
|
3183
3146
|
function t(r, n) {
|
|
3184
|
-
return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'),
|
|
3147
|
+
return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'), V.MISSING_VALUE, n) || this;
|
|
3185
3148
|
}
|
|
3186
3149
|
return t;
|
|
3187
|
-
}(
|
|
3150
|
+
}(_e)
|
|
3188
3151
|
), x;
|
|
3189
3152
|
(function(e) {
|
|
3190
3153
|
e[e.literal = 0] = "literal", e[e.object = 1] = "object";
|
|
3191
3154
|
})(x || (x = {}));
|
|
3192
|
-
function
|
|
3155
|
+
function wn(e) {
|
|
3193
3156
|
return e.length < 2 ? e : e.reduce(function(t, r) {
|
|
3194
3157
|
var n = t[t.length - 1];
|
|
3195
3158
|
return !n || n.type !== x.literal || r.type !== x.literal ? t.push(r) : n.value += r.value, t;
|
|
3196
3159
|
}, []);
|
|
3197
3160
|
}
|
|
3198
|
-
function
|
|
3161
|
+
function Sn(e) {
|
|
3199
3162
|
return typeof e == "function";
|
|
3200
3163
|
}
|
|
3201
|
-
function
|
|
3202
|
-
if (e.length === 1 &&
|
|
3164
|
+
function le(e, t, r, n, i, s, u) {
|
|
3165
|
+
if (e.length === 1 && Ke(e[0]))
|
|
3203
3166
|
return [
|
|
3204
3167
|
{
|
|
3205
3168
|
type: x.literal,
|
|
3206
3169
|
value: e[0].value
|
|
3207
3170
|
}
|
|
3208
3171
|
];
|
|
3209
|
-
for (var
|
|
3210
|
-
var h =
|
|
3211
|
-
if (
|
|
3212
|
-
|
|
3172
|
+
for (var o = [], l = 0, a = e; l < a.length; l++) {
|
|
3173
|
+
var h = a[l];
|
|
3174
|
+
if (Ke(h)) {
|
|
3175
|
+
o.push({
|
|
3213
3176
|
type: x.literal,
|
|
3214
3177
|
value: h.value
|
|
3215
3178
|
});
|
|
3216
3179
|
continue;
|
|
3217
3180
|
}
|
|
3218
|
-
if (
|
|
3219
|
-
typeof s == "number" &&
|
|
3181
|
+
if (Zr(h)) {
|
|
3182
|
+
typeof s == "number" && o.push({
|
|
3220
3183
|
type: x.literal,
|
|
3221
3184
|
value: r.getNumberFormat(t).format(s)
|
|
3222
3185
|
});
|
|
@@ -3224,89 +3187,89 @@ function fe(e, t, r, n, i, s, o) {
|
|
|
3224
3187
|
}
|
|
3225
3188
|
var f = h.value;
|
|
3226
3189
|
if (!(i && f in i))
|
|
3227
|
-
throw new
|
|
3190
|
+
throw new Tn(f, u);
|
|
3228
3191
|
var c = i[f];
|
|
3229
|
-
if (
|
|
3230
|
-
(!c || typeof c == "string" || typeof c == "number") && (c = typeof c == "string" || typeof c == "number" ? String(c) : ""),
|
|
3192
|
+
if (Wr(h)) {
|
|
3193
|
+
(!c || typeof c == "string" || typeof c == "number") && (c = typeof c == "string" || typeof c == "number" ? String(c) : ""), o.push({
|
|
3231
3194
|
type: typeof c == "string" ? x.literal : x.object,
|
|
3232
3195
|
value: c
|
|
3233
3196
|
});
|
|
3234
3197
|
continue;
|
|
3235
3198
|
}
|
|
3236
|
-
if (
|
|
3237
|
-
var d = typeof h.style == "string" ? n.date[h.style] :
|
|
3238
|
-
|
|
3199
|
+
if (Ot(h)) {
|
|
3200
|
+
var d = typeof h.style == "string" ? n.date[h.style] : $e(h.style) ? h.style.parsedOptions : void 0;
|
|
3201
|
+
o.push({
|
|
3239
3202
|
type: x.literal,
|
|
3240
3203
|
value: r.getDateTimeFormat(t, d).format(c)
|
|
3241
3204
|
});
|
|
3242
3205
|
continue;
|
|
3243
3206
|
}
|
|
3244
|
-
if (
|
|
3245
|
-
var d = typeof h.style == "string" ? n.time[h.style] :
|
|
3246
|
-
|
|
3207
|
+
if (Pt(h)) {
|
|
3208
|
+
var d = typeof h.style == "string" ? n.time[h.style] : $e(h.style) ? h.style.parsedOptions : n.time.medium;
|
|
3209
|
+
o.push({
|
|
3247
3210
|
type: x.literal,
|
|
3248
3211
|
value: r.getDateTimeFormat(t, d).format(c)
|
|
3249
3212
|
});
|
|
3250
3213
|
continue;
|
|
3251
3214
|
}
|
|
3252
|
-
if (
|
|
3253
|
-
var d = typeof h.style == "string" ? n.number[h.style] :
|
|
3254
|
-
d && d.scale && (c = c * (d.scale || 1)),
|
|
3215
|
+
if (Ct(h)) {
|
|
3216
|
+
var d = typeof h.style == "string" ? n.number[h.style] : Mt(h.style) ? h.style.parsedOptions : void 0;
|
|
3217
|
+
d && d.scale && (c = c * (d.scale || 1)), o.push({
|
|
3255
3218
|
type: x.literal,
|
|
3256
3219
|
value: r.getNumberFormat(t, d).format(c)
|
|
3257
3220
|
});
|
|
3258
3221
|
continue;
|
|
3259
3222
|
}
|
|
3260
|
-
if (
|
|
3223
|
+
if (It(h)) {
|
|
3261
3224
|
var m = h.children, g = h.value, v = i[g];
|
|
3262
|
-
if (!
|
|
3263
|
-
throw new
|
|
3264
|
-
var
|
|
3265
|
-
return
|
|
3225
|
+
if (!Sn(v))
|
|
3226
|
+
throw new Bn(g, "function", u);
|
|
3227
|
+
var L = le(m, t, r, n, i, s), A = v(L.map(function(T) {
|
|
3228
|
+
return T.value;
|
|
3266
3229
|
}));
|
|
3267
|
-
Array.isArray(
|
|
3230
|
+
Array.isArray(A) || (A = [A]), o.push.apply(o, A.map(function(T) {
|
|
3268
3231
|
return {
|
|
3269
|
-
type: typeof
|
|
3270
|
-
value:
|
|
3232
|
+
type: typeof T == "string" ? x.literal : x.object,
|
|
3233
|
+
value: T
|
|
3271
3234
|
};
|
|
3272
3235
|
}));
|
|
3273
3236
|
}
|
|
3274
|
-
if (
|
|
3237
|
+
if (Lt(h)) {
|
|
3275
3238
|
var H = h.options[c] || h.options.other;
|
|
3276
3239
|
if (!H)
|
|
3277
|
-
throw new
|
|
3278
|
-
|
|
3240
|
+
throw new ot(h.value, c, Object.keys(h.options), u);
|
|
3241
|
+
o.push.apply(o, le(H.value, t, r, n, i));
|
|
3279
3242
|
continue;
|
|
3280
3243
|
}
|
|
3281
|
-
if (
|
|
3244
|
+
if (Nt(h)) {
|
|
3282
3245
|
var H = h.options["=".concat(c)];
|
|
3283
3246
|
if (!H) {
|
|
3284
3247
|
if (!Intl.PluralRules)
|
|
3285
|
-
throw new
|
|
3248
|
+
throw new _e(`Intl.PluralRules is not available in this environment.
|
|
3286
3249
|
Try polyfilling it using "@formatjs/intl-pluralrules"
|
|
3287
|
-
`,
|
|
3288
|
-
var
|
|
3289
|
-
H = h.options[
|
|
3250
|
+
`, V.MISSING_INTL_API, u);
|
|
3251
|
+
var N = r.getPluralRules(t, { type: h.pluralType }).select(c - (h.offset || 0));
|
|
3252
|
+
H = h.options[N] || h.options.other;
|
|
3290
3253
|
}
|
|
3291
3254
|
if (!H)
|
|
3292
|
-
throw new
|
|
3293
|
-
|
|
3255
|
+
throw new ot(h.value, c, Object.keys(h.options), u);
|
|
3256
|
+
o.push.apply(o, le(H.value, t, r, n, i, c - (h.offset || 0)));
|
|
3294
3257
|
continue;
|
|
3295
3258
|
}
|
|
3296
3259
|
}
|
|
3297
|
-
return
|
|
3260
|
+
return wn(o);
|
|
3298
3261
|
}
|
|
3299
|
-
function
|
|
3262
|
+
function An(e, t) {
|
|
3300
3263
|
return t ? y(y(y({}, e || {}), t || {}), Object.keys(e).reduce(function(r, n) {
|
|
3301
3264
|
return r[n] = y(y({}, e[n]), t[n] || {}), r;
|
|
3302
3265
|
}, {})) : e;
|
|
3303
3266
|
}
|
|
3304
|
-
function
|
|
3267
|
+
function Cn(e, t) {
|
|
3305
3268
|
return t ? Object.keys(e).reduce(function(r, n) {
|
|
3306
|
-
return r[n] =
|
|
3269
|
+
return r[n] = An(e[n], t[n]), r;
|
|
3307
3270
|
}, y({}, e)) : e;
|
|
3308
3271
|
}
|
|
3309
|
-
function
|
|
3272
|
+
function Oe(e) {
|
|
3310
3273
|
return {
|
|
3311
3274
|
create: function() {
|
|
3312
3275
|
return {
|
|
@@ -3320,39 +3283,39 @@ function Le(e) {
|
|
|
3320
3283
|
}
|
|
3321
3284
|
};
|
|
3322
3285
|
}
|
|
3323
|
-
function
|
|
3286
|
+
function On(e) {
|
|
3324
3287
|
return e === void 0 && (e = {
|
|
3325
3288
|
number: {},
|
|
3326
3289
|
dateTime: {},
|
|
3327
3290
|
pluralRules: {}
|
|
3328
3291
|
}), {
|
|
3329
|
-
getNumberFormat:
|
|
3292
|
+
getNumberFormat: Se(function() {
|
|
3330
3293
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3331
3294
|
r[n] = arguments[n];
|
|
3332
|
-
return new ((t = Intl.NumberFormat).bind.apply(t,
|
|
3295
|
+
return new ((t = Intl.NumberFormat).bind.apply(t, we([void 0], r, !1)))();
|
|
3333
3296
|
}, {
|
|
3334
|
-
cache:
|
|
3335
|
-
strategy:
|
|
3297
|
+
cache: Oe(e.number),
|
|
3298
|
+
strategy: Ae.variadic
|
|
3336
3299
|
}),
|
|
3337
|
-
getDateTimeFormat:
|
|
3300
|
+
getDateTimeFormat: Se(function() {
|
|
3338
3301
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3339
3302
|
r[n] = arguments[n];
|
|
3340
|
-
return new ((t = Intl.DateTimeFormat).bind.apply(t,
|
|
3303
|
+
return new ((t = Intl.DateTimeFormat).bind.apply(t, we([void 0], r, !1)))();
|
|
3341
3304
|
}, {
|
|
3342
|
-
cache:
|
|
3343
|
-
strategy:
|
|
3305
|
+
cache: Oe(e.dateTime),
|
|
3306
|
+
strategy: Ae.variadic
|
|
3344
3307
|
}),
|
|
3345
|
-
getPluralRules:
|
|
3308
|
+
getPluralRules: Se(function() {
|
|
3346
3309
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3347
3310
|
r[n] = arguments[n];
|
|
3348
|
-
return new ((t = Intl.PluralRules).bind.apply(t,
|
|
3311
|
+
return new ((t = Intl.PluralRules).bind.apply(t, we([void 0], r, !1)))();
|
|
3349
3312
|
}, {
|
|
3350
|
-
cache:
|
|
3351
|
-
strategy:
|
|
3313
|
+
cache: Oe(e.pluralRules),
|
|
3314
|
+
strategy: Ae.variadic
|
|
3352
3315
|
})
|
|
3353
3316
|
};
|
|
3354
3317
|
}
|
|
3355
|
-
var
|
|
3318
|
+
var kt = (
|
|
3356
3319
|
/** @class */
|
|
3357
3320
|
function() {
|
|
3358
3321
|
function e(t, r, n, i) {
|
|
@@ -3363,15 +3326,15 @@ var Qt = (
|
|
|
3363
3326
|
dateTime: {},
|
|
3364
3327
|
pluralRules: {}
|
|
3365
3328
|
}, this.format = function(l) {
|
|
3366
|
-
var
|
|
3367
|
-
if (
|
|
3368
|
-
return
|
|
3369
|
-
var h =
|
|
3329
|
+
var a = s.formatToParts(l);
|
|
3330
|
+
if (a.length === 1)
|
|
3331
|
+
return a[0].value;
|
|
3332
|
+
var h = a.reduce(function(f, c) {
|
|
3370
3333
|
return !f.length || c.type !== x.literal || typeof f[f.length - 1] != "string" ? f.push(c.value) : f[f.length - 1] += c.value, f;
|
|
3371
3334
|
}, []);
|
|
3372
3335
|
return h.length <= 1 ? h[0] || "" : h;
|
|
3373
3336
|
}, this.formatToParts = function(l) {
|
|
3374
|
-
return
|
|
3337
|
+
return le(s.ast, s.locales, s.formatters, s.formats, l, void 0, s.message);
|
|
3375
3338
|
}, this.resolvedOptions = function() {
|
|
3376
3339
|
var l;
|
|
3377
3340
|
return {
|
|
@@ -3382,15 +3345,15 @@ var Qt = (
|
|
|
3382
3345
|
}, this.locales = r, this.resolvedLocale = e.resolveLocale(r), typeof t == "string") {
|
|
3383
3346
|
if (this.message = t, !e.__parse)
|
|
3384
3347
|
throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");
|
|
3385
|
-
var
|
|
3386
|
-
|
|
3387
|
-
var
|
|
3388
|
-
this.ast = e.__parse(t, y(y({},
|
|
3348
|
+
var u = i || {};
|
|
3349
|
+
u.formatters;
|
|
3350
|
+
var o = Dr(u, ["formatters"]);
|
|
3351
|
+
this.ast = e.__parse(t, y(y({}, o), { locale: this.resolvedLocale }));
|
|
3389
3352
|
} else
|
|
3390
3353
|
this.ast = t;
|
|
3391
3354
|
if (!Array.isArray(this.ast))
|
|
3392
3355
|
throw new TypeError("A message must be provided as a String or AST.");
|
|
3393
|
-
this.formats =
|
|
3356
|
+
this.formats = Cn(e.formats, n), this.formatters = i && i.formatters || On(this.formatterCache);
|
|
3394
3357
|
}
|
|
3395
3358
|
return Object.defineProperty(e, "defaultLocale", {
|
|
3396
3359
|
get: function() {
|
|
@@ -3399,11 +3362,11 @@ var Qt = (
|
|
|
3399
3362
|
enumerable: !1,
|
|
3400
3363
|
configurable: !0
|
|
3401
3364
|
}), e.memoizedDefaultLocale = null, e.resolveLocale = function(t) {
|
|
3402
|
-
if (typeof Intl.Locale
|
|
3365
|
+
if (!(typeof Intl.Locale > "u")) {
|
|
3403
3366
|
var r = Intl.NumberFormat.supportedLocalesOf(t);
|
|
3404
3367
|
return r.length > 0 ? new Intl.Locale(r[0]) : new Intl.Locale(typeof t == "string" ? t : t[0]);
|
|
3405
3368
|
}
|
|
3406
|
-
}, e.__parse =
|
|
3369
|
+
}, e.__parse = Hn, e.formats = {
|
|
3407
3370
|
number: {
|
|
3408
3371
|
integer: {
|
|
3409
3372
|
maximumFractionDigits: 0
|
|
@@ -3464,7 +3427,7 @@ var Qt = (
|
|
|
3464
3427
|
}, e;
|
|
3465
3428
|
}()
|
|
3466
3429
|
);
|
|
3467
|
-
function
|
|
3430
|
+
function Pn(e, t) {
|
|
3468
3431
|
if (t == null)
|
|
3469
3432
|
return;
|
|
3470
3433
|
if (t in e)
|
|
@@ -3485,101 +3448,101 @@ function jn(e, t) {
|
|
|
3485
3448
|
n = void 0;
|
|
3486
3449
|
return n;
|
|
3487
3450
|
}
|
|
3488
|
-
const
|
|
3451
|
+
const C = {}, Ln = (e, t, r) => r && (t in C || (C[t] = {}), e in C[t] || (C[t][e] = r), r), Vt = (e, t) => {
|
|
3489
3452
|
if (t == null)
|
|
3490
3453
|
return;
|
|
3491
|
-
if (t in
|
|
3492
|
-
return
|
|
3493
|
-
const r =
|
|
3454
|
+
if (t in C && e in C[t])
|
|
3455
|
+
return C[t][e];
|
|
3456
|
+
const r = ne(t);
|
|
3494
3457
|
for (let n = 0; n < r.length; n++) {
|
|
3495
|
-
const i = r[n], s =
|
|
3458
|
+
const i = r[n], s = In(i, e);
|
|
3496
3459
|
if (s)
|
|
3497
|
-
return
|
|
3460
|
+
return Ln(e, t, s);
|
|
3498
3461
|
}
|
|
3499
3462
|
};
|
|
3500
|
-
let
|
|
3501
|
-
const
|
|
3502
|
-
function
|
|
3503
|
-
return
|
|
3463
|
+
let We;
|
|
3464
|
+
const re = be({});
|
|
3465
|
+
function Nn(e) {
|
|
3466
|
+
return We[e] || null;
|
|
3504
3467
|
}
|
|
3505
|
-
function
|
|
3506
|
-
return e in
|
|
3468
|
+
function Xt(e) {
|
|
3469
|
+
return e in We;
|
|
3507
3470
|
}
|
|
3508
|
-
function
|
|
3509
|
-
if (!
|
|
3471
|
+
function In(e, t) {
|
|
3472
|
+
if (!Xt(e))
|
|
3510
3473
|
return null;
|
|
3511
|
-
const r =
|
|
3512
|
-
return
|
|
3474
|
+
const r = Nn(e);
|
|
3475
|
+
return Pn(r, t);
|
|
3513
3476
|
}
|
|
3514
|
-
function
|
|
3477
|
+
function Mn(e) {
|
|
3515
3478
|
if (e == null)
|
|
3516
3479
|
return;
|
|
3517
|
-
const t =
|
|
3480
|
+
const t = ne(e);
|
|
3518
3481
|
for (let r = 0; r < t.length; r++) {
|
|
3519
3482
|
const n = t[r];
|
|
3520
|
-
if (
|
|
3483
|
+
if (Xt(n))
|
|
3521
3484
|
return n;
|
|
3522
3485
|
}
|
|
3523
3486
|
}
|
|
3524
|
-
function
|
|
3525
|
-
delete
|
|
3487
|
+
function zt(e, ...t) {
|
|
3488
|
+
delete C[e], re.update((r) => (r[e] = Ur.all([r[e] || {}, ...t]), r));
|
|
3526
3489
|
}
|
|
3527
|
-
|
|
3528
|
-
[
|
|
3490
|
+
Z(
|
|
3491
|
+
[re],
|
|
3529
3492
|
([e]) => Object.keys(e)
|
|
3530
3493
|
);
|
|
3531
|
-
|
|
3532
|
-
const
|
|
3533
|
-
function
|
|
3534
|
-
|
|
3494
|
+
re.subscribe((e) => We = e);
|
|
3495
|
+
const fe = {};
|
|
3496
|
+
function $n(e, t) {
|
|
3497
|
+
fe[e].delete(t), fe[e].size === 0 && delete fe[e];
|
|
3535
3498
|
}
|
|
3536
|
-
function
|
|
3537
|
-
return
|
|
3499
|
+
function Wt(e) {
|
|
3500
|
+
return fe[e];
|
|
3538
3501
|
}
|
|
3539
|
-
function
|
|
3540
|
-
return
|
|
3541
|
-
const r =
|
|
3502
|
+
function Rn(e) {
|
|
3503
|
+
return ne(e).map((t) => {
|
|
3504
|
+
const r = Wt(t);
|
|
3542
3505
|
return [t, r ? [...r] : []];
|
|
3543
3506
|
}).filter(([, t]) => t.length > 0);
|
|
3544
3507
|
}
|
|
3545
|
-
function
|
|
3546
|
-
return e == null ? !1 :
|
|
3508
|
+
function me(e) {
|
|
3509
|
+
return e == null ? !1 : ne(e).some(
|
|
3547
3510
|
(t) => {
|
|
3548
3511
|
var r;
|
|
3549
|
-
return (r =
|
|
3512
|
+
return (r = Wt(t)) == null ? void 0 : r.size;
|
|
3550
3513
|
}
|
|
3551
3514
|
);
|
|
3552
3515
|
}
|
|
3553
|
-
function
|
|
3516
|
+
function Un(e, t) {
|
|
3554
3517
|
return Promise.all(
|
|
3555
|
-
t.map((n) => (
|
|
3556
|
-
).then((n) =>
|
|
3557
|
-
}
|
|
3558
|
-
const
|
|
3559
|
-
function
|
|
3560
|
-
if (!
|
|
3561
|
-
return e in
|
|
3562
|
-
const t =
|
|
3563
|
-
return
|
|
3518
|
+
t.map((n) => ($n(e, n), n().then((i) => i.default || i)))
|
|
3519
|
+
).then((n) => zt(e, ...n));
|
|
3520
|
+
}
|
|
3521
|
+
const q = {};
|
|
3522
|
+
function Zt(e) {
|
|
3523
|
+
if (!me(e))
|
|
3524
|
+
return e in q ? q[e] : Promise.resolve();
|
|
3525
|
+
const t = Rn(e);
|
|
3526
|
+
return q[e] = Promise.all(
|
|
3564
3527
|
t.map(
|
|
3565
|
-
([r, n]) =>
|
|
3528
|
+
([r, n]) => Un(r, n)
|
|
3566
3529
|
)
|
|
3567
3530
|
).then(() => {
|
|
3568
|
-
if (
|
|
3569
|
-
return
|
|
3570
|
-
delete
|
|
3571
|
-
}),
|
|
3531
|
+
if (me(e))
|
|
3532
|
+
return Zt(e);
|
|
3533
|
+
delete q[e];
|
|
3534
|
+
}), q[e];
|
|
3572
3535
|
}
|
|
3573
|
-
var
|
|
3536
|
+
var at = Object.getOwnPropertySymbols, Dn = Object.prototype.hasOwnProperty, Gn = Object.prototype.propertyIsEnumerable, Fn = (e, t) => {
|
|
3574
3537
|
var r = {};
|
|
3575
3538
|
for (var n in e)
|
|
3576
|
-
|
|
3577
|
-
if (e != null &&
|
|
3578
|
-
for (var n of
|
|
3579
|
-
t.indexOf(n) < 0 &&
|
|
3539
|
+
Dn.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
3540
|
+
if (e != null && at)
|
|
3541
|
+
for (var n of at(e))
|
|
3542
|
+
t.indexOf(n) < 0 && Gn.call(e, n) && (r[n] = e[n]);
|
|
3580
3543
|
return r;
|
|
3581
3544
|
};
|
|
3582
|
-
const
|
|
3545
|
+
const jn = {
|
|
3583
3546
|
number: {
|
|
3584
3547
|
scientific: { notation: "scientific" },
|
|
3585
3548
|
engineering: { notation: "engineering" },
|
|
@@ -3609,183 +3572,183 @@ const Kn = {
|
|
|
3609
3572
|
}
|
|
3610
3573
|
}
|
|
3611
3574
|
};
|
|
3612
|
-
function
|
|
3575
|
+
function kn({ locale: e, id: t }) {
|
|
3613
3576
|
console.warn(
|
|
3614
|
-
`[svelte-i18n] The message "${t}" was not found in "${
|
|
3577
|
+
`[svelte-i18n] The message "${t}" was not found in "${ne(
|
|
3615
3578
|
e
|
|
3616
|
-
).join('", "')}".${
|
|
3579
|
+
).join('", "')}".${me(P()) ? `
|
|
3617
3580
|
|
|
3618
3581
|
Note: there are at least one loader still registered to this locale that wasn't executed.` : ""}`
|
|
3619
3582
|
);
|
|
3620
3583
|
}
|
|
3621
|
-
const
|
|
3584
|
+
const Vn = {
|
|
3622
3585
|
fallbackLocale: null,
|
|
3623
3586
|
loadingDelay: 200,
|
|
3624
|
-
formats:
|
|
3587
|
+
formats: jn,
|
|
3625
3588
|
warnOnMissingMessages: !0,
|
|
3626
3589
|
handleMissingMessage: void 0,
|
|
3627
3590
|
ignoreTag: !0
|
|
3628
|
-
},
|
|
3629
|
-
function
|
|
3630
|
-
return
|
|
3591
|
+
}, J = Vn;
|
|
3592
|
+
function X() {
|
|
3593
|
+
return J;
|
|
3631
3594
|
}
|
|
3632
|
-
function
|
|
3633
|
-
const t = e, { formats: r } = t, n =
|
|
3595
|
+
function Xn(e) {
|
|
3596
|
+
const t = e, { formats: r } = t, n = Fn(t, ["formats"]);
|
|
3634
3597
|
let i = e.fallbackLocale;
|
|
3635
3598
|
if (e.initialLocale)
|
|
3636
3599
|
try {
|
|
3637
|
-
|
|
3638
|
-
} catch
|
|
3600
|
+
kt.resolveLocale(e.initialLocale) && (i = e.initialLocale);
|
|
3601
|
+
} catch {
|
|
3639
3602
|
console.warn(
|
|
3640
3603
|
`[svelte-i18n] The initial locale "${e.initialLocale}" is not a valid locale.`
|
|
3641
3604
|
);
|
|
3642
3605
|
}
|
|
3643
|
-
return n.warnOnMissingMessages && (delete n.warnOnMissingMessages, n.handleMissingMessage == null ? n.handleMissingMessage =
|
|
3606
|
+
return n.warnOnMissingMessages && (delete n.warnOnMissingMessages, n.handleMissingMessage == null ? n.handleMissingMessage = kn : console.warn(
|
|
3644
3607
|
'[svelte-i18n] The "warnOnMissingMessages" option is deprecated. Please use the "handleMissingMessage" option instead.'
|
|
3645
|
-
)), Object.assign(
|
|
3608
|
+
)), Object.assign(J, n, { initialLocale: i }), r && ("number" in r && Object.assign(J.formats.number, r.number), "date" in r && Object.assign(J.formats.date, r.date), "time" in r && Object.assign(J.formats.time, r.time)), M.set(i);
|
|
3646
3609
|
}
|
|
3647
|
-
const
|
|
3648
|
-
var
|
|
3610
|
+
const Pe = be(!1);
|
|
3611
|
+
var zn = Object.defineProperty, Wn = Object.defineProperties, Zn = Object.getOwnPropertyDescriptors, ut = Object.getOwnPropertySymbols, Qn = Object.prototype.hasOwnProperty, qn = Object.prototype.propertyIsEnumerable, ht = (e, t, r) => t in e ? zn(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Jn = (e, t) => {
|
|
3649
3612
|
for (var r in t)
|
|
3650
|
-
|
|
3651
|
-
if (
|
|
3652
|
-
for (var r of
|
|
3653
|
-
|
|
3613
|
+
Qn.call(t, r) && ht(e, r, t[r]);
|
|
3614
|
+
if (ut)
|
|
3615
|
+
for (var r of ut(t))
|
|
3616
|
+
qn.call(t, r) && ht(e, r, t[r]);
|
|
3654
3617
|
return e;
|
|
3655
|
-
},
|
|
3656
|
-
let
|
|
3657
|
-
const
|
|
3658
|
-
function
|
|
3618
|
+
}, Yn = (e, t) => Wn(e, Zn(t));
|
|
3619
|
+
let je;
|
|
3620
|
+
const de = be(null);
|
|
3621
|
+
function lt(e) {
|
|
3659
3622
|
return e.split("-").map((t, r, n) => n.slice(0, r + 1).join("-")).reverse();
|
|
3660
3623
|
}
|
|
3661
|
-
function
|
|
3662
|
-
const r =
|
|
3663
|
-
return t ? [.../* @__PURE__ */ new Set([...r, ...
|
|
3624
|
+
function ne(e, t = X().fallbackLocale) {
|
|
3625
|
+
const r = lt(e);
|
|
3626
|
+
return t ? [.../* @__PURE__ */ new Set([...r, ...lt(t)])] : r;
|
|
3664
3627
|
}
|
|
3665
|
-
function
|
|
3666
|
-
return
|
|
3628
|
+
function P() {
|
|
3629
|
+
return je ?? void 0;
|
|
3667
3630
|
}
|
|
3668
|
-
|
|
3669
|
-
|
|
3631
|
+
de.subscribe((e) => {
|
|
3632
|
+
je = e ?? void 0, typeof window < "u" && e != null && document.documentElement.setAttribute("lang", e);
|
|
3670
3633
|
});
|
|
3671
|
-
const
|
|
3672
|
-
if (e &&
|
|
3673
|
-
const { loadingDelay: t } =
|
|
3634
|
+
const Kn = (e) => {
|
|
3635
|
+
if (e && Mn(e) && me(e)) {
|
|
3636
|
+
const { loadingDelay: t } = X();
|
|
3674
3637
|
let r;
|
|
3675
|
-
return typeof window
|
|
3676
|
-
() =>
|
|
3638
|
+
return typeof window < "u" && P() != null && t ? r = window.setTimeout(
|
|
3639
|
+
() => Pe.set(!0),
|
|
3677
3640
|
t
|
|
3678
|
-
) :
|
|
3679
|
-
|
|
3641
|
+
) : Pe.set(!0), Zt(e).then(() => {
|
|
3642
|
+
de.set(e);
|
|
3680
3643
|
}).finally(() => {
|
|
3681
|
-
clearTimeout(r),
|
|
3644
|
+
clearTimeout(r), Pe.set(!1);
|
|
3682
3645
|
});
|
|
3683
3646
|
}
|
|
3684
|
-
return
|
|
3685
|
-
},
|
|
3686
|
-
set:
|
|
3687
|
-
}),
|
|
3647
|
+
return de.set(e);
|
|
3648
|
+
}, M = Yn(Jn({}, de), {
|
|
3649
|
+
set: Kn
|
|
3650
|
+
}), ye = (e) => {
|
|
3688
3651
|
const t = /* @__PURE__ */ Object.create(null);
|
|
3689
3652
|
return (n) => {
|
|
3690
3653
|
const i = JSON.stringify(n);
|
|
3691
3654
|
return i in t ? t[i] : t[i] = e(n);
|
|
3692
3655
|
};
|
|
3693
3656
|
};
|
|
3694
|
-
var
|
|
3657
|
+
var ei = Object.defineProperty, pe = Object.getOwnPropertySymbols, Qt = Object.prototype.hasOwnProperty, qt = Object.prototype.propertyIsEnumerable, ft = (e, t, r) => t in e ? ei(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Ze = (e, t) => {
|
|
3695
3658
|
for (var r in t || (t = {}))
|
|
3696
|
-
|
|
3697
|
-
if (
|
|
3698
|
-
for (var r of
|
|
3699
|
-
|
|
3659
|
+
Qt.call(t, r) && ft(e, r, t[r]);
|
|
3660
|
+
if (pe)
|
|
3661
|
+
for (var r of pe(t))
|
|
3662
|
+
qt.call(t, r) && ft(e, r, t[r]);
|
|
3700
3663
|
return e;
|
|
3701
|
-
},
|
|
3664
|
+
}, Q = (e, t) => {
|
|
3702
3665
|
var r = {};
|
|
3703
3666
|
for (var n in e)
|
|
3704
|
-
|
|
3705
|
-
if (e != null &&
|
|
3706
|
-
for (var n of
|
|
3707
|
-
t.indexOf(n) < 0 &&
|
|
3667
|
+
Qt.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
3668
|
+
if (e != null && pe)
|
|
3669
|
+
for (var n of pe(e))
|
|
3670
|
+
t.indexOf(n) < 0 && qt.call(e, n) && (r[n] = e[n]);
|
|
3708
3671
|
return r;
|
|
3709
3672
|
};
|
|
3710
|
-
const
|
|
3711
|
-
const { formats: r } =
|
|
3673
|
+
const ee = (e, t) => {
|
|
3674
|
+
const { formats: r } = X();
|
|
3712
3675
|
if (e in r && t in r[e])
|
|
3713
3676
|
return r[e][t];
|
|
3714
3677
|
throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`);
|
|
3715
|
-
},
|
|
3678
|
+
}, ti = ye(
|
|
3716
3679
|
(e) => {
|
|
3717
|
-
var t = e, { locale: r, format: n } = t, i =
|
|
3680
|
+
var t = e, { locale: r, format: n } = t, i = Q(t, ["locale", "format"]);
|
|
3718
3681
|
if (r == null)
|
|
3719
3682
|
throw new Error('[svelte-i18n] A "locale" must be set to format numbers');
|
|
3720
|
-
return n && (i =
|
|
3683
|
+
return n && (i = ee("number", n)), new Intl.NumberFormat(r, i);
|
|
3721
3684
|
}
|
|
3722
|
-
),
|
|
3685
|
+
), ri = ye(
|
|
3723
3686
|
(e) => {
|
|
3724
|
-
var t = e, { locale: r, format: n } = t, i =
|
|
3687
|
+
var t = e, { locale: r, format: n } = t, i = Q(t, ["locale", "format"]);
|
|
3725
3688
|
if (r == null)
|
|
3726
3689
|
throw new Error('[svelte-i18n] A "locale" must be set to format dates');
|
|
3727
|
-
return n ? i =
|
|
3690
|
+
return n ? i = ee("date", n) : Object.keys(i).length === 0 && (i = ee("date", "short")), new Intl.DateTimeFormat(r, i);
|
|
3728
3691
|
}
|
|
3729
|
-
),
|
|
3692
|
+
), ni = ye(
|
|
3730
3693
|
(e) => {
|
|
3731
|
-
var t = e, { locale: r, format: n } = t, i =
|
|
3694
|
+
var t = e, { locale: r, format: n } = t, i = Q(t, ["locale", "format"]);
|
|
3732
3695
|
if (r == null)
|
|
3733
3696
|
throw new Error(
|
|
3734
3697
|
'[svelte-i18n] A "locale" must be set to format time values'
|
|
3735
3698
|
);
|
|
3736
|
-
return n ? i =
|
|
3699
|
+
return n ? i = ee("time", n) : Object.keys(i).length === 0 && (i = ee("time", "short")), new Intl.DateTimeFormat(r, i);
|
|
3737
3700
|
}
|
|
3738
|
-
),
|
|
3701
|
+
), ii = (e = {}) => {
|
|
3739
3702
|
var t = e, {
|
|
3740
|
-
locale: r =
|
|
3741
|
-
} = t, n =
|
|
3703
|
+
locale: r = P()
|
|
3704
|
+
} = t, n = Q(t, [
|
|
3742
3705
|
"locale"
|
|
3743
3706
|
]);
|
|
3744
|
-
return
|
|
3745
|
-
},
|
|
3707
|
+
return ti(Ze({ locale: r }, n));
|
|
3708
|
+
}, si = (e = {}) => {
|
|
3746
3709
|
var t = e, {
|
|
3747
|
-
locale: r =
|
|
3748
|
-
} = t, n =
|
|
3710
|
+
locale: r = P()
|
|
3711
|
+
} = t, n = Q(t, [
|
|
3749
3712
|
"locale"
|
|
3750
3713
|
]);
|
|
3751
|
-
return
|
|
3752
|
-
},
|
|
3714
|
+
return ri(Ze({ locale: r }, n));
|
|
3715
|
+
}, oi = (e = {}) => {
|
|
3753
3716
|
var t = e, {
|
|
3754
|
-
locale: r =
|
|
3755
|
-
} = t, n =
|
|
3717
|
+
locale: r = P()
|
|
3718
|
+
} = t, n = Q(t, [
|
|
3756
3719
|
"locale"
|
|
3757
3720
|
]);
|
|
3758
|
-
return
|
|
3759
|
-
},
|
|
3721
|
+
return ni(Ze({ locale: r }, n));
|
|
3722
|
+
}, ai = ye(
|
|
3760
3723
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
3761
|
-
(e, t =
|
|
3762
|
-
ignoreTag:
|
|
3724
|
+
(e, t = P()) => new kt(e, t, X().formats, {
|
|
3725
|
+
ignoreTag: X().ignoreTag
|
|
3763
3726
|
})
|
|
3764
|
-
),
|
|
3727
|
+
), ui = (e, t = {}) => {
|
|
3765
3728
|
var r, n, i, s;
|
|
3766
|
-
let
|
|
3767
|
-
typeof e == "object" && (
|
|
3729
|
+
let u = t;
|
|
3730
|
+
typeof e == "object" && (u = e, e = u.id);
|
|
3768
3731
|
const {
|
|
3769
|
-
values:
|
|
3770
|
-
locale: l =
|
|
3771
|
-
default:
|
|
3772
|
-
} =
|
|
3732
|
+
values: o,
|
|
3733
|
+
locale: l = P(),
|
|
3734
|
+
default: a
|
|
3735
|
+
} = u;
|
|
3773
3736
|
if (l == null)
|
|
3774
3737
|
throw new Error(
|
|
3775
3738
|
"[svelte-i18n] Cannot format a message without first setting the initial locale."
|
|
3776
3739
|
);
|
|
3777
|
-
let h =
|
|
3740
|
+
let h = Vt(e, l);
|
|
3778
3741
|
if (!h)
|
|
3779
|
-
h = (s = (i = (n = (r =
|
|
3742
|
+
h = (s = (i = (n = (r = X()).handleMissingMessage) == null ? void 0 : n.call(r, { locale: l, id: e, defaultValue: a })) != null ? i : a) != null ? s : e;
|
|
3780
3743
|
else if (typeof h != "string")
|
|
3781
3744
|
return console.warn(
|
|
3782
3745
|
`[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.`
|
|
3783
3746
|
), h;
|
|
3784
|
-
if (!
|
|
3747
|
+
if (!o)
|
|
3785
3748
|
return h;
|
|
3786
3749
|
let f = h;
|
|
3787
3750
|
try {
|
|
3788
|
-
f =
|
|
3751
|
+
f = ai(h, l).format(o);
|
|
3789
3752
|
} catch (c) {
|
|
3790
3753
|
c instanceof Error && console.warn(
|
|
3791
3754
|
`[svelte-i18n] Message "${e}" has syntax error:`,
|
|
@@ -3793,20 +3756,20 @@ const te = (e, t) => {
|
|
|
3793
3756
|
);
|
|
3794
3757
|
}
|
|
3795
3758
|
return f;
|
|
3796
|
-
},
|
|
3797
|
-
|
|
3798
|
-
|
|
3799
|
-
|
|
3800
|
-
|
|
3801
|
-
function
|
|
3802
|
-
|
|
3803
|
-
}
|
|
3804
|
-
function
|
|
3805
|
-
|
|
3759
|
+
}, hi = (e, t) => oi(t).format(e), li = (e, t) => si(t).format(e), fi = (e, t) => ii(t).format(e), ci = (e, t = P()) => Vt(e, t), mi = Z([M, re], () => ui);
|
|
3760
|
+
Z([M], () => hi);
|
|
3761
|
+
Z([M], () => li);
|
|
3762
|
+
Z([M], () => fi);
|
|
3763
|
+
Z([M, re], () => ci);
|
|
3764
|
+
function ct(e, t) {
|
|
3765
|
+
zt(e, t);
|
|
3766
|
+
}
|
|
3767
|
+
function di(e) {
|
|
3768
|
+
Xn({
|
|
3806
3769
|
fallbackLocale: "en"
|
|
3807
|
-
}),
|
|
3770
|
+
}), M.set(e);
|
|
3808
3771
|
}
|
|
3809
|
-
const
|
|
3772
|
+
const mt = {
|
|
3810
3773
|
en: {
|
|
3811
3774
|
header: {
|
|
3812
3775
|
general: "Cashier",
|
|
@@ -3829,52 +3792,52 @@ const yt = {
|
|
|
3829
3792
|
}
|
|
3830
3793
|
}
|
|
3831
3794
|
};
|
|
3832
|
-
function
|
|
3833
|
-
|
|
3795
|
+
function pi(e) {
|
|
3796
|
+
ir(e, "svelte-bbilb", ".CashierHeader{display:flex;position:relative;align-items:center;height:var(--mmw--header-height, 40px);background-color:var(--mmw--color-grey-105, #E8E9EB);width:100%;border-radius:6px 6px 0 0}.CashierHeaderLeftButton{color:var(--mmw--color-grey-10, #111);font-size:var(--emw--font-size-small, 14px);font-weight:var(--emw--font-weight-semibold, 500);margin-bottom:0;position:absolute;display:flex;align-items:center;font-variant:all-small-caps;height:32px;left:7px;gap:2px;cursor:pointer}.CashierHeaderLeftButton svg path{fill:var(--mmw--color-grey-10, #111)}.CashierHeaderLeftButton.disabled{pointer-events:none}.CashierHeaderTitle{color:var(--mmw--color-grey-10, #111);font-size:var(--emw--font-size-large, 18px);line-height:125%;font-weight:var(--emw--font-weight-semibold, 500);margin:auto;max-width:calc(100% - 150px);overflow:hidden;text-overflow:ellipsis}.CashierHeaderRightButton{position:absolute;display:flex;justify-content:space-between;align-items:center;padding:0 var(--emw--spacing-small, 12px);height:inherit;right:0;gap:var(--emw--spacing-small, 12px);cursor:pointer}");
|
|
3834
3797
|
}
|
|
3835
|
-
const
|
|
3836
|
-
function
|
|
3798
|
+
const bi = (e) => ({}), dt = (e) => ({}), gi = (e) => ({}), pt = (e) => ({}), _i = (e) => ({}), bt = (e) => ({});
|
|
3799
|
+
function gt(e) {
|
|
3837
3800
|
let t, r, n;
|
|
3838
3801
|
return {
|
|
3839
3802
|
c() {
|
|
3840
|
-
t =
|
|
3803
|
+
t = z("div"), t.innerHTML = '<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 20 20" fill="none"><path fill-rule="evenodd" clip-rule="evenodd" d="M12.5632 3.47782C12.4787 3.50138 12.3362 3.57505 12.2465 3.64153C12.1567 3.70806 10.8069 5.04216 9.24694 6.60626C6.11944 9.74192 6.25999 9.58204 6.25999 10.0037C6.25999 10.4243 6.13093 10.2784 9.34296 13.4903C12.4449 16.5921 12.356 16.5116 12.7278 16.5556C13.1855 16.6098 13.6413 16.2585 13.7301 15.783C13.7612 15.6164 13.7212 15.3395 13.6437 15.1847C13.6158 15.129 12.451 13.9396 11.0553 12.5417L8.51768 10L11.0553 7.45837C12.451 6.06048 13.6158 4.87114 13.6437 4.81544C13.7729 4.55751 13.7703 4.2006 13.6374 3.94274C13.4469 3.5731 12.9668 3.36532 12.5632 3.47782Z" fill="#111111"></path></svg>', W(t, "class", "CashierHeaderLeftButton");
|
|
3841
3804
|
},
|
|
3842
3805
|
m(i, s) {
|
|
3843
|
-
|
|
3806
|
+
I(i, t, s), r || (n = Bt(
|
|
3844
3807
|
t,
|
|
3845
3808
|
"click",
|
|
3846
3809
|
/*back*/
|
|
3847
3810
|
e[6]
|
|
3848
3811
|
), r = !0);
|
|
3849
3812
|
},
|
|
3850
|
-
p:
|
|
3813
|
+
p: B,
|
|
3851
3814
|
d(i) {
|
|
3852
|
-
i &&
|
|
3815
|
+
i && O(t), r = !1, n();
|
|
3853
3816
|
}
|
|
3854
3817
|
};
|
|
3855
3818
|
}
|
|
3856
|
-
function
|
|
3819
|
+
function yi(e) {
|
|
3857
3820
|
let t, r = (
|
|
3858
3821
|
/*backButton*/
|
|
3859
|
-
e[1] &&
|
|
3822
|
+
e[1] && gt(e)
|
|
3860
3823
|
);
|
|
3861
3824
|
return {
|
|
3862
3825
|
c() {
|
|
3863
|
-
r && r.c(), t =
|
|
3826
|
+
r && r.c(), t = Ht();
|
|
3864
3827
|
},
|
|
3865
3828
|
m(n, i) {
|
|
3866
|
-
r && r.m(n, i),
|
|
3829
|
+
r && r.m(n, i), I(n, t, i);
|
|
3867
3830
|
},
|
|
3868
3831
|
p(n, i) {
|
|
3869
3832
|
/*backButton*/
|
|
3870
|
-
n[1] ? r ? r.p(n, i) : (r =
|
|
3833
|
+
n[1] ? r ? r.p(n, i) : (r = gt(n), r.c(), r.m(t.parentNode, t)) : r && (r.d(1), r = null);
|
|
3871
3834
|
},
|
|
3872
3835
|
d(n) {
|
|
3873
|
-
n &&
|
|
3836
|
+
n && O(t), r && r.d(n);
|
|
3874
3837
|
}
|
|
3875
3838
|
};
|
|
3876
3839
|
}
|
|
3877
|
-
function
|
|
3840
|
+
function Ei(e) {
|
|
3878
3841
|
let t, r = (
|
|
3879
3842
|
/*$_*/
|
|
3880
3843
|
e[4](
|
|
@@ -3884,10 +3847,10 @@ function Pi(e) {
|
|
|
3884
3847
|
), n;
|
|
3885
3848
|
return {
|
|
3886
3849
|
c() {
|
|
3887
|
-
t =
|
|
3850
|
+
t = z("span"), n = Ve(r), W(t, "class", "CashierHeaderTitle");
|
|
3888
3851
|
},
|
|
3889
3852
|
m(i, s) {
|
|
3890
|
-
|
|
3853
|
+
I(i, t, s), ce(t, n);
|
|
3891
3854
|
},
|
|
3892
3855
|
p(i, s) {
|
|
3893
3856
|
s & /*$_, titleText*/
|
|
@@ -3895,249 +3858,249 @@ function Pi(e) {
|
|
|
3895
3858
|
i[4](
|
|
3896
3859
|
/*titleText*/
|
|
3897
3860
|
i[2]
|
|
3898
|
-
) + "") &&
|
|
3861
|
+
) + "") && ur(n, r);
|
|
3899
3862
|
},
|
|
3900
3863
|
d(i) {
|
|
3901
|
-
i &&
|
|
3864
|
+
i && O(t);
|
|
3902
3865
|
}
|
|
3903
3866
|
};
|
|
3904
3867
|
}
|
|
3905
|
-
function
|
|
3868
|
+
function _t(e) {
|
|
3906
3869
|
let t, r, n;
|
|
3907
3870
|
return {
|
|
3908
3871
|
c() {
|
|
3909
|
-
t =
|
|
3872
|
+
t = z("span"), t.innerHTML = '<svg xmlns="http://www.w3.org/2000/svg" width="13" height="20" viewBox="0 0 13 13" fill="none"><path d="M12.7711 0.229435C13.0582 0.517619 13.0755 0.973729 12.8215 1.28141L12.7711 1.33721L7.60685 6.50068L12.7711 11.6641C12.9128 11.8066 12.9944 11.998 12.999 12.1988C13.0035 12.3997 12.9308 12.5946 12.7957 12.7433C12.6606 12.892 12.4735 12.9832 12.2731 12.9979C12.0728 13.0126 11.8744 12.9497 11.7191 12.8223L11.6633 12.7719L6.49958 7.60791L1.3359 12.7719C1.19349 12.9136 1.00207 12.9952 0.801203 12.9998C0.60034 13.0044 0.405398 12.9316 0.256676 12.7965C0.107955 12.6614 0.0168256 12.4744 0.00212786 12.274C-0.0125699 12.0736 0.0502877 11.8753 0.177706 11.7199L0.228086 11.6641L5.3923 6.50068L0.228086 1.33721C0.0863637 1.1948 0.00478102 1.00338 0.000203544 0.802529C-0.00437393 0.601674 0.0684038 0.40674 0.203491 0.258024C0.338579 0.109308 0.525647 0.0181829 0.726024 0.00348576C0.9264 -0.0112114 1.12476 0.0516437 1.28011 0.179057L1.3359 0.229435L6.49958 5.39345L11.6633 0.229435C11.736 0.156695 11.8223 0.0989949 11.9174 0.0596283C12.0124 0.0202617 12.1143 0 12.2172 0C12.32 0 12.4219 0.0202617 12.5169 0.0596283C12.612 0.0989949 12.6983 0.156695 12.7711 0.229435Z" fill="#111111"></path></svg>', W(t, "class", "CashierHeaderRightButton");
|
|
3910
3873
|
},
|
|
3911
3874
|
m(i, s) {
|
|
3912
|
-
|
|
3875
|
+
I(i, t, s), r || (n = Bt(
|
|
3913
3876
|
t,
|
|
3914
3877
|
"click",
|
|
3915
3878
|
/*close*/
|
|
3916
3879
|
e[5]
|
|
3917
3880
|
), r = !0);
|
|
3918
3881
|
},
|
|
3919
|
-
p:
|
|
3882
|
+
p: B,
|
|
3920
3883
|
d(i) {
|
|
3921
|
-
i &&
|
|
3884
|
+
i && O(t), r = !1, n();
|
|
3922
3885
|
}
|
|
3923
3886
|
};
|
|
3924
3887
|
}
|
|
3925
|
-
function
|
|
3888
|
+
function xi(e) {
|
|
3926
3889
|
let t, r = (
|
|
3927
3890
|
/*closeButton*/
|
|
3928
|
-
e[3] &&
|
|
3891
|
+
e[3] && _t(e)
|
|
3929
3892
|
);
|
|
3930
3893
|
return {
|
|
3931
3894
|
c() {
|
|
3932
|
-
r && r.c(), t =
|
|
3895
|
+
r && r.c(), t = Ht();
|
|
3933
3896
|
},
|
|
3934
3897
|
m(n, i) {
|
|
3935
|
-
r && r.m(n, i),
|
|
3898
|
+
r && r.m(n, i), I(n, t, i);
|
|
3936
3899
|
},
|
|
3937
3900
|
p(n, i) {
|
|
3938
3901
|
/*closeButton*/
|
|
3939
|
-
n[3] ? r ? r.p(n, i) : (r =
|
|
3902
|
+
n[3] ? r ? r.p(n, i) : (r = _t(n), r.c(), r.m(t.parentNode, t)) : r && (r.d(1), r = null);
|
|
3940
3903
|
},
|
|
3941
3904
|
d(n) {
|
|
3942
|
-
n &&
|
|
3905
|
+
n && O(t), r && r.d(n);
|
|
3943
3906
|
}
|
|
3944
3907
|
};
|
|
3945
3908
|
}
|
|
3946
|
-
function
|
|
3909
|
+
function vi(e) {
|
|
3947
3910
|
let t, r, n, i;
|
|
3948
3911
|
const s = (
|
|
3949
3912
|
/*#slots*/
|
|
3950
3913
|
e[15].leftButton
|
|
3951
|
-
),
|
|
3914
|
+
), u = Ee(
|
|
3952
3915
|
s,
|
|
3953
3916
|
e,
|
|
3954
3917
|
/*$$scope*/
|
|
3955
3918
|
e[14],
|
|
3956
|
-
|
|
3957
|
-
),
|
|
3919
|
+
bt
|
|
3920
|
+
), o = u || yi(e), l = (
|
|
3958
3921
|
/*#slots*/
|
|
3959
3922
|
e[15].title
|
|
3960
|
-
),
|
|
3923
|
+
), a = Ee(
|
|
3961
3924
|
l,
|
|
3962
3925
|
e,
|
|
3963
3926
|
/*$$scope*/
|
|
3964
3927
|
e[14],
|
|
3965
|
-
|
|
3966
|
-
), h =
|
|
3928
|
+
pt
|
|
3929
|
+
), h = a || Ei(e), f = (
|
|
3967
3930
|
/*#slots*/
|
|
3968
3931
|
e[15].rightButton
|
|
3969
|
-
), c =
|
|
3932
|
+
), c = Ee(
|
|
3970
3933
|
f,
|
|
3971
3934
|
e,
|
|
3972
3935
|
/*$$scope*/
|
|
3973
3936
|
e[14],
|
|
3974
|
-
|
|
3975
|
-
), d = c ||
|
|
3937
|
+
dt
|
|
3938
|
+
), d = c || xi(e);
|
|
3976
3939
|
return {
|
|
3977
3940
|
c() {
|
|
3978
|
-
t =
|
|
3941
|
+
t = z("div"), o.c(), r = qe(), h.c(), n = qe(), d.c(), W(t, "class", "CashierHeader");
|
|
3979
3942
|
},
|
|
3980
3943
|
m(m, g) {
|
|
3981
|
-
|
|
3944
|
+
I(m, t, g), o.m(t, null), ce(t, r), h.m(t, null), ce(t, n), d.m(t, null), e[16](t), i = !0;
|
|
3982
3945
|
},
|
|
3983
3946
|
p(m, [g]) {
|
|
3984
|
-
|
|
3985
|
-
16384) &&
|
|
3986
|
-
|
|
3947
|
+
u ? u.p && (!i || g & /*$$scope*/
|
|
3948
|
+
16384) && ve(
|
|
3949
|
+
u,
|
|
3987
3950
|
s,
|
|
3988
3951
|
m,
|
|
3989
3952
|
/*$$scope*/
|
|
3990
3953
|
m[14],
|
|
3991
|
-
i ?
|
|
3954
|
+
i ? xe(
|
|
3992
3955
|
s,
|
|
3993
3956
|
/*$$scope*/
|
|
3994
3957
|
m[14],
|
|
3995
3958
|
g,
|
|
3996
|
-
|
|
3997
|
-
) :
|
|
3959
|
+
_i
|
|
3960
|
+
) : He(
|
|
3998
3961
|
/*$$scope*/
|
|
3999
3962
|
m[14]
|
|
4000
3963
|
),
|
|
4001
|
-
|
|
4002
|
-
) :
|
|
4003
|
-
2) &&
|
|
4004
|
-
16384) &&
|
|
4005
|
-
|
|
3964
|
+
bt
|
|
3965
|
+
) : o.p && (!i || g & /*backButton*/
|
|
3966
|
+
2) && o.p(m, i ? g : -1), a ? a.p && (!i || g & /*$$scope*/
|
|
3967
|
+
16384) && ve(
|
|
3968
|
+
a,
|
|
4006
3969
|
l,
|
|
4007
3970
|
m,
|
|
4008
3971
|
/*$$scope*/
|
|
4009
3972
|
m[14],
|
|
4010
|
-
i ?
|
|
3973
|
+
i ? xe(
|
|
4011
3974
|
l,
|
|
4012
3975
|
/*$$scope*/
|
|
4013
3976
|
m[14],
|
|
4014
3977
|
g,
|
|
4015
|
-
|
|
4016
|
-
) :
|
|
3978
|
+
gi
|
|
3979
|
+
) : He(
|
|
4017
3980
|
/*$$scope*/
|
|
4018
3981
|
m[14]
|
|
4019
3982
|
),
|
|
4020
|
-
|
|
3983
|
+
pt
|
|
4021
3984
|
) : h.p && (!i || g & /*$_, titleText*/
|
|
4022
3985
|
20) && h.p(m, i ? g : -1), c ? c.p && (!i || g & /*$$scope*/
|
|
4023
|
-
16384) &&
|
|
3986
|
+
16384) && ve(
|
|
4024
3987
|
c,
|
|
4025
3988
|
f,
|
|
4026
3989
|
m,
|
|
4027
3990
|
/*$$scope*/
|
|
4028
3991
|
m[14],
|
|
4029
|
-
i ?
|
|
3992
|
+
i ? xe(
|
|
4030
3993
|
f,
|
|
4031
3994
|
/*$$scope*/
|
|
4032
3995
|
m[14],
|
|
4033
3996
|
g,
|
|
4034
|
-
|
|
4035
|
-
) :
|
|
3997
|
+
bi
|
|
3998
|
+
) : He(
|
|
4036
3999
|
/*$$scope*/
|
|
4037
4000
|
m[14]
|
|
4038
4001
|
),
|
|
4039
|
-
|
|
4002
|
+
dt
|
|
4040
4003
|
) : d.p && (!i || g & /*closeButton*/
|
|
4041
4004
|
8) && d.p(m, i ? g : -1);
|
|
4042
4005
|
},
|
|
4043
4006
|
i(m) {
|
|
4044
|
-
i || (
|
|
4007
|
+
i || (ue(o, m), ue(h, m), ue(d, m), i = !0);
|
|
4045
4008
|
},
|
|
4046
4009
|
o(m) {
|
|
4047
|
-
|
|
4010
|
+
Te(o, m), Te(h, m), Te(d, m), i = !1;
|
|
4048
4011
|
},
|
|
4049
4012
|
d(m) {
|
|
4050
|
-
m &&
|
|
4013
|
+
m && O(t), o.d(m), h.d(m), d.d(m), e[16](null);
|
|
4051
4014
|
}
|
|
4052
4015
|
};
|
|
4053
4016
|
}
|
|
4054
|
-
function
|
|
4017
|
+
function Hi(e, t, r) {
|
|
4055
4018
|
let n;
|
|
4056
|
-
|
|
4057
|
-
let { $$slots: i = {}, $$scope: s } = t, { clientstyling:
|
|
4058
|
-
const
|
|
4019
|
+
nr(e, mi, (_) => r(4, n = _));
|
|
4020
|
+
let { $$slots: i = {}, $$scope: s } = t, { clientstyling: u = "" } = t, { clientstylingurl: o = "" } = t, { translationurl: l = "" } = t, { showbackbutton: a = "" } = t, { title: h = "header.general" } = t, { lang: f = "en" } = t, { showclosebutton: c = "" } = t, d, m = !1, g, v = !1;
|
|
4021
|
+
const L = () => {
|
|
4059
4022
|
let _ = l;
|
|
4060
|
-
_ && fetch(_).then((
|
|
4061
|
-
Object.keys(
|
|
4062
|
-
|
|
4023
|
+
_ && fetch(_).then((w) => w.json()).then((w) => {
|
|
4024
|
+
Object.keys(w).forEach((R) => {
|
|
4025
|
+
ct(R, w[R]);
|
|
4063
4026
|
});
|
|
4064
|
-
}).catch((
|
|
4065
|
-
console.log(
|
|
4027
|
+
}).catch((w) => {
|
|
4028
|
+
console.log(w);
|
|
4066
4029
|
});
|
|
4067
4030
|
};
|
|
4068
|
-
Object.keys(
|
|
4069
|
-
|
|
4031
|
+
Object.keys(mt).forEach((_) => {
|
|
4032
|
+
ct(_, mt[_]);
|
|
4070
4033
|
});
|
|
4071
|
-
const
|
|
4034
|
+
const A = () => {
|
|
4072
4035
|
let _ = document.createElement("style");
|
|
4073
|
-
_.innerHTML =
|
|
4036
|
+
_.innerHTML = u, d.appendChild(_);
|
|
4074
4037
|
}, H = () => {
|
|
4075
|
-
let _ = new URL(
|
|
4076
|
-
fetch(_.href).then((
|
|
4077
|
-
|
|
4038
|
+
let _ = new URL(o), w = document.createElement("style");
|
|
4039
|
+
fetch(_.href).then((R) => R.text()).then((R) => {
|
|
4040
|
+
w.innerHTML = R, setTimeout(
|
|
4078
4041
|
() => {
|
|
4079
|
-
d.appendChild(
|
|
4042
|
+
d.appendChild(w);
|
|
4080
4043
|
},
|
|
4081
4044
|
1
|
|
4082
4045
|
);
|
|
4083
4046
|
});
|
|
4084
|
-
},
|
|
4085
|
-
|
|
4086
|
-
},
|
|
4047
|
+
}, N = () => {
|
|
4048
|
+
di(f);
|
|
4049
|
+
}, T = () => {
|
|
4087
4050
|
window.postMessage({ type: "CloseCashier" }, window.location.href);
|
|
4088
|
-
},
|
|
4051
|
+
}, $ = () => {
|
|
4089
4052
|
window.postMessage({ type: "BackCashier" }, window.location.href);
|
|
4090
|
-
},
|
|
4091
|
-
r(1, m = !!
|
|
4092
|
-
},
|
|
4053
|
+
}, ie = () => {
|
|
4054
|
+
r(1, m = !!a && a !== "false");
|
|
4055
|
+
}, Yt = () => {
|
|
4093
4056
|
r(3, v = !!c && c !== "false");
|
|
4094
|
-
},
|
|
4057
|
+
}, Kt = () => {
|
|
4095
4058
|
r(2, g = h || "header.general");
|
|
4096
4059
|
};
|
|
4097
|
-
function
|
|
4098
|
-
|
|
4060
|
+
function er(_) {
|
|
4061
|
+
Le[_ ? "unshift" : "push"](() => {
|
|
4099
4062
|
d = _, r(0, d);
|
|
4100
4063
|
});
|
|
4101
4064
|
}
|
|
4102
4065
|
return e.$$set = (_) => {
|
|
4103
|
-
"clientstyling" in _ && r(7,
|
|
4066
|
+
"clientstyling" in _ && r(7, u = _.clientstyling), "clientstylingurl" in _ && r(8, o = _.clientstylingurl), "translationurl" in _ && r(9, l = _.translationurl), "showbackbutton" in _ && r(10, a = _.showbackbutton), "title" in _ && r(11, h = _.title), "lang" in _ && r(12, f = _.lang), "showclosebutton" in _ && r(13, c = _.showclosebutton), "$$scope" in _ && r(14, s = _.$$scope);
|
|
4104
4067
|
}, e.$$.update = () => {
|
|
4105
4068
|
e.$$.dirty & /*lang*/
|
|
4106
|
-
4096 && f &&
|
|
4107
|
-
6144 && f && h &&
|
|
4108
|
-
129 &&
|
|
4109
|
-
257 &&
|
|
4110
|
-
4608 && f && l &&
|
|
4111
|
-
1024 &&
|
|
4112
|
-
8192 && c &&
|
|
4069
|
+
4096 && f && N(), e.$$.dirty & /*lang, title*/
|
|
4070
|
+
6144 && f && h && Kt(), e.$$.dirty & /*clientstyling, customStylingContainer*/
|
|
4071
|
+
129 && u && d && A(), e.$$.dirty & /*clientstylingurl, customStylingContainer*/
|
|
4072
|
+
257 && o && d && H(), e.$$.dirty & /*lang, translationurl*/
|
|
4073
|
+
4608 && f && l && L(), e.$$.dirty & /*showbackbutton*/
|
|
4074
|
+
1024 && a && ie(), e.$$.dirty & /*showclosebutton*/
|
|
4075
|
+
8192 && c && Yt();
|
|
4113
4076
|
}, [
|
|
4114
4077
|
d,
|
|
4115
4078
|
m,
|
|
4116
4079
|
g,
|
|
4117
4080
|
v,
|
|
4118
4081
|
n,
|
|
4119
|
-
|
|
4120
|
-
|
|
4082
|
+
T,
|
|
4083
|
+
$,
|
|
4084
|
+
u,
|
|
4121
4085
|
o,
|
|
4122
|
-
a,
|
|
4123
4086
|
l,
|
|
4124
|
-
|
|
4087
|
+
a,
|
|
4125
4088
|
h,
|
|
4126
4089
|
f,
|
|
4127
4090
|
c,
|
|
4128
4091
|
s,
|
|
4129
4092
|
i,
|
|
4130
|
-
|
|
4093
|
+
er
|
|
4131
4094
|
];
|
|
4132
4095
|
}
|
|
4133
|
-
class
|
|
4096
|
+
class Jt extends Er {
|
|
4134
4097
|
constructor(t) {
|
|
4135
|
-
super(),
|
|
4098
|
+
super(), _r(
|
|
4136
4099
|
this,
|
|
4137
4100
|
t,
|
|
4138
|
-
|
|
4139
|
-
|
|
4140
|
-
|
|
4101
|
+
Hi,
|
|
4102
|
+
vi,
|
|
4103
|
+
Et,
|
|
4141
4104
|
{
|
|
4142
4105
|
clientstyling: 7,
|
|
4143
4106
|
clientstylingurl: 8,
|
|
@@ -4147,77 +4110,77 @@ class nr extends Pr {
|
|
|
4147
4110
|
lang: 12,
|
|
4148
4111
|
showclosebutton: 13
|
|
4149
4112
|
},
|
|
4150
|
-
|
|
4113
|
+
pi
|
|
4151
4114
|
);
|
|
4152
4115
|
}
|
|
4153
4116
|
get clientstyling() {
|
|
4154
4117
|
return this.$$.ctx[7];
|
|
4155
4118
|
}
|
|
4156
4119
|
set clientstyling(t) {
|
|
4157
|
-
this.$$set({ clientstyling: t }),
|
|
4120
|
+
this.$$set({ clientstyling: t }), S();
|
|
4158
4121
|
}
|
|
4159
4122
|
get clientstylingurl() {
|
|
4160
4123
|
return this.$$.ctx[8];
|
|
4161
4124
|
}
|
|
4162
4125
|
set clientstylingurl(t) {
|
|
4163
|
-
this.$$set({ clientstylingurl: t }),
|
|
4126
|
+
this.$$set({ clientstylingurl: t }), S();
|
|
4164
4127
|
}
|
|
4165
4128
|
get translationurl() {
|
|
4166
4129
|
return this.$$.ctx[9];
|
|
4167
4130
|
}
|
|
4168
4131
|
set translationurl(t) {
|
|
4169
|
-
this.$$set({ translationurl: t }),
|
|
4132
|
+
this.$$set({ translationurl: t }), S();
|
|
4170
4133
|
}
|
|
4171
4134
|
get showbackbutton() {
|
|
4172
4135
|
return this.$$.ctx[10];
|
|
4173
4136
|
}
|
|
4174
4137
|
set showbackbutton(t) {
|
|
4175
|
-
this.$$set({ showbackbutton: t }),
|
|
4138
|
+
this.$$set({ showbackbutton: t }), S();
|
|
4176
4139
|
}
|
|
4177
4140
|
get title() {
|
|
4178
4141
|
return this.$$.ctx[11];
|
|
4179
4142
|
}
|
|
4180
4143
|
set title(t) {
|
|
4181
|
-
this.$$set({ title: t }),
|
|
4144
|
+
this.$$set({ title: t }), S();
|
|
4182
4145
|
}
|
|
4183
4146
|
get lang() {
|
|
4184
4147
|
return this.$$.ctx[12];
|
|
4185
4148
|
}
|
|
4186
4149
|
set lang(t) {
|
|
4187
|
-
this.$$set({ lang: t }),
|
|
4150
|
+
this.$$set({ lang: t }), S();
|
|
4188
4151
|
}
|
|
4189
4152
|
get showclosebutton() {
|
|
4190
4153
|
return this.$$.ctx[13];
|
|
4191
4154
|
}
|
|
4192
4155
|
set showclosebutton(t) {
|
|
4193
|
-
this.$$set({ showclosebutton: t }),
|
|
4156
|
+
this.$$set({ showclosebutton: t }), S();
|
|
4194
4157
|
}
|
|
4195
4158
|
}
|
|
4196
|
-
|
|
4197
|
-
const
|
|
4159
|
+
yr(Jt, { clientstyling: {}, clientstylingurl: {}, translationurl: {}, showbackbutton: {}, title: {}, lang: {}, showclosebutton: {} }, ["leftButton", "title", "rightButton"], [], !0);
|
|
4160
|
+
const wi = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
4198
4161
|
__proto__: null,
|
|
4199
|
-
default:
|
|
4162
|
+
default: Jt
|
|
4200
4163
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
4201
4164
|
export {
|
|
4202
|
-
$,
|
|
4203
|
-
|
|
4204
|
-
|
|
4205
|
-
|
|
4206
|
-
|
|
4207
|
-
|
|
4208
|
-
|
|
4209
|
-
|
|
4210
|
-
|
|
4211
|
-
|
|
4212
|
-
|
|
4213
|
-
|
|
4214
|
-
|
|
4215
|
-
|
|
4216
|
-
|
|
4217
|
-
|
|
4218
|
-
|
|
4219
|
-
|
|
4220
|
-
|
|
4221
|
-
|
|
4222
|
-
|
|
4165
|
+
M as $,
|
|
4166
|
+
wi as C,
|
|
4167
|
+
Er as S,
|
|
4168
|
+
zt as a,
|
|
4169
|
+
_r as b,
|
|
4170
|
+
yr as c,
|
|
4171
|
+
ir as d,
|
|
4172
|
+
z as e,
|
|
4173
|
+
S as f,
|
|
4174
|
+
qe as g,
|
|
4175
|
+
Ti as h,
|
|
4176
|
+
Xn as i,
|
|
4177
|
+
Bi as j,
|
|
4178
|
+
W as k,
|
|
4179
|
+
I as l,
|
|
4180
|
+
ce as m,
|
|
4181
|
+
Bt as n,
|
|
4182
|
+
B as o,
|
|
4183
|
+
O as p,
|
|
4184
|
+
Le as q,
|
|
4185
|
+
Et as s
|
|
4223
4186
|
};
|