@everymatrix/cashier-header 1.74.3 → 1.74.4
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-Ce6RZ-9Q.js → CashierHeader-CSvf9QLy.js} +899 -901
- package/components/{CashierHeader-CDYMzcBx.js → CashierHeader-CXVwtc5T.js} +786 -788
- package/components/CashierHeader-K66rbzS5.cjs +18 -0
- package/es2015/cashier-header.cjs +1 -1
- package/es2015/cashier-header.js +1 -1
- package/esnext/cashier-header.js +1 -1
- package/package.json +1 -1
- package/components/CashierHeader-3y-CVhjE.cjs +0 -18
|
@@ -1,107 +1,107 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var
|
|
4
|
-
var
|
|
5
|
-
var ye = (e, t,
|
|
6
|
-
for (var
|
|
7
|
-
|
|
8
|
-
if (
|
|
9
|
-
for (var
|
|
10
|
-
|
|
1
|
+
var ir = Object.defineProperty, sr = Object.defineProperties;
|
|
2
|
+
var or = Object.getOwnPropertyDescriptors;
|
|
3
|
+
var Je = Object.getOwnPropertySymbols;
|
|
4
|
+
var ar = Object.prototype.hasOwnProperty, ur = Object.prototype.propertyIsEnumerable;
|
|
5
|
+
var ye = (e, t, r) => t in e ? ir(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, qe = (e, t) => {
|
|
6
|
+
for (var r in t || (t = {}))
|
|
7
|
+
ar.call(t, r) && ye(e, r, t[r]);
|
|
8
|
+
if (Je)
|
|
9
|
+
for (var r of Je(t))
|
|
10
|
+
ur.call(t, r) && ye(e, r, t[r]);
|
|
11
11
|
return e;
|
|
12
|
-
},
|
|
13
|
-
var B = (e, t,
|
|
14
|
-
var
|
|
12
|
+
}, Ye = (e, t) => sr(e, or(t));
|
|
13
|
+
var B = (e, t, r) => (ye(e, typeof t != "symbol" ? t + "" : t, r), r);
|
|
14
|
+
var Ke = (e, t, r) => new Promise((n, i) => {
|
|
15
15
|
var s = (l) => {
|
|
16
16
|
try {
|
|
17
|
-
|
|
17
|
+
o(r.next(l));
|
|
18
18
|
} catch (u) {
|
|
19
19
|
i(u);
|
|
20
20
|
}
|
|
21
|
-
},
|
|
21
|
+
}, a = (l) => {
|
|
22
22
|
try {
|
|
23
|
-
|
|
23
|
+
o(r.throw(l));
|
|
24
24
|
} catch (u) {
|
|
25
25
|
i(u);
|
|
26
26
|
}
|
|
27
|
-
},
|
|
28
|
-
|
|
27
|
+
}, o = (l) => l.done ? n(l.value) : Promise.resolve(l.value).then(s, a);
|
|
28
|
+
o((r = r.apply(e, t)).next());
|
|
29
29
|
});
|
|
30
30
|
function T() {
|
|
31
31
|
}
|
|
32
|
-
function
|
|
33
|
-
for (const
|
|
34
|
-
e[
|
|
32
|
+
function hr(e, t) {
|
|
33
|
+
for (const r in t)
|
|
34
|
+
e[r] = t[r];
|
|
35
35
|
return (
|
|
36
36
|
/** @type {T & S} */
|
|
37
37
|
e
|
|
38
38
|
);
|
|
39
39
|
}
|
|
40
|
-
function
|
|
40
|
+
function Bt(e) {
|
|
41
41
|
return e();
|
|
42
42
|
}
|
|
43
|
-
function
|
|
43
|
+
function et() {
|
|
44
44
|
return /* @__PURE__ */ Object.create(null);
|
|
45
45
|
}
|
|
46
46
|
function ee(e) {
|
|
47
|
-
e.forEach(
|
|
47
|
+
e.forEach(Bt);
|
|
48
48
|
}
|
|
49
49
|
function ke(e) {
|
|
50
50
|
return typeof e == "function";
|
|
51
51
|
}
|
|
52
|
-
function
|
|
52
|
+
function Tt(e, t) {
|
|
53
53
|
return e != e ? t == t : e !== t || e && typeof e == "object" || typeof e == "function";
|
|
54
54
|
}
|
|
55
|
-
function
|
|
55
|
+
function lr(e) {
|
|
56
56
|
return Object.keys(e).length === 0;
|
|
57
57
|
}
|
|
58
|
-
function
|
|
58
|
+
function wt(e, ...t) {
|
|
59
59
|
if (e == null) {
|
|
60
|
-
for (const
|
|
61
|
-
|
|
60
|
+
for (const n of t)
|
|
61
|
+
n(void 0);
|
|
62
62
|
return T;
|
|
63
63
|
}
|
|
64
|
-
const
|
|
65
|
-
return
|
|
64
|
+
const r = e.subscribe(...t);
|
|
65
|
+
return r.unsubscribe ? () => r.unsubscribe() : r;
|
|
66
66
|
}
|
|
67
|
-
function
|
|
68
|
-
e.$$.on_destroy.push(
|
|
67
|
+
function fr(e, t, r) {
|
|
68
|
+
e.$$.on_destroy.push(wt(t, r));
|
|
69
69
|
}
|
|
70
|
-
function xe(e, t,
|
|
70
|
+
function xe(e, t, r, n) {
|
|
71
71
|
if (e) {
|
|
72
|
-
const i =
|
|
72
|
+
const i = St(e, t, r, n);
|
|
73
73
|
return e[0](i);
|
|
74
74
|
}
|
|
75
75
|
}
|
|
76
|
-
function
|
|
77
|
-
return e[1] &&
|
|
76
|
+
function St(e, t, r, n) {
|
|
77
|
+
return e[1] && n ? hr(r.ctx.slice(), e[1](n(t))) : r.ctx;
|
|
78
78
|
}
|
|
79
|
-
function Ee(e, t,
|
|
80
|
-
if (e[2] &&
|
|
81
|
-
const i = e[2](r
|
|
79
|
+
function Ee(e, t, r, n) {
|
|
80
|
+
if (e[2] && n) {
|
|
81
|
+
const i = e[2](n(r));
|
|
82
82
|
if (t.dirty === void 0)
|
|
83
83
|
return i;
|
|
84
84
|
if (typeof i == "object") {
|
|
85
|
-
const s = [],
|
|
86
|
-
for (let
|
|
87
|
-
s[
|
|
85
|
+
const s = [], a = Math.max(t.dirty.length, i.length);
|
|
86
|
+
for (let o = 0; o < a; o += 1)
|
|
87
|
+
s[o] = t.dirty[o] | i[o];
|
|
88
88
|
return s;
|
|
89
89
|
}
|
|
90
90
|
return t.dirty | i;
|
|
91
91
|
}
|
|
92
92
|
return t.dirty;
|
|
93
93
|
}
|
|
94
|
-
function ve(e, t,
|
|
94
|
+
function ve(e, t, r, n, i, s) {
|
|
95
95
|
if (i) {
|
|
96
|
-
const
|
|
97
|
-
e.p(
|
|
96
|
+
const a = St(t, r, n, s);
|
|
97
|
+
e.p(a, i);
|
|
98
98
|
}
|
|
99
99
|
}
|
|
100
100
|
function He(e) {
|
|
101
101
|
if (e.ctx.length > 32) {
|
|
102
|
-
const t = [],
|
|
103
|
-
for (let
|
|
104
|
-
t[
|
|
102
|
+
const t = [], r = e.ctx.length / 32;
|
|
103
|
+
for (let n = 0; n < r; n++)
|
|
104
|
+
t[n] = -1;
|
|
105
105
|
return t;
|
|
106
106
|
}
|
|
107
107
|
return -1;
|
|
@@ -109,14 +109,14 @@ function He(e) {
|
|
|
109
109
|
function fe(e, t) {
|
|
110
110
|
e.appendChild(t);
|
|
111
111
|
}
|
|
112
|
-
function
|
|
113
|
-
const
|
|
114
|
-
if (!
|
|
112
|
+
function cr(e, t, r) {
|
|
113
|
+
const n = mr(e);
|
|
114
|
+
if (!n.getElementById(t)) {
|
|
115
115
|
const i = X("style");
|
|
116
|
-
i.id = t, i.textContent =
|
|
116
|
+
i.id = t, i.textContent = r, dr(n, i);
|
|
117
117
|
}
|
|
118
118
|
}
|
|
119
|
-
function
|
|
119
|
+
function mr(e) {
|
|
120
120
|
if (!e)
|
|
121
121
|
return document;
|
|
122
122
|
const t = e.getRootNode ? e.getRootNode() : e.ownerDocument;
|
|
@@ -126,15 +126,15 @@ function mn(e) {
|
|
|
126
126
|
t
|
|
127
127
|
) : e.ownerDocument;
|
|
128
128
|
}
|
|
129
|
-
function
|
|
129
|
+
function dr(e, t) {
|
|
130
130
|
return fe(
|
|
131
131
|
/** @type {Document} */
|
|
132
132
|
e.head || e,
|
|
133
133
|
t
|
|
134
134
|
), t.sheet;
|
|
135
135
|
}
|
|
136
|
-
function I(e, t,
|
|
137
|
-
e.insertBefore(t,
|
|
136
|
+
function I(e, t, r) {
|
|
137
|
+
e.insertBefore(t, r || null);
|
|
138
138
|
}
|
|
139
139
|
function C(e) {
|
|
140
140
|
e.parentNode && e.parentNode.removeChild(e);
|
|
@@ -145,31 +145,31 @@ function X(e) {
|
|
|
145
145
|
function Ve(e) {
|
|
146
146
|
return document.createTextNode(e);
|
|
147
147
|
}
|
|
148
|
-
function
|
|
148
|
+
function tt() {
|
|
149
149
|
return Ve(" ");
|
|
150
150
|
}
|
|
151
|
-
function
|
|
151
|
+
function At() {
|
|
152
152
|
return Ve("");
|
|
153
153
|
}
|
|
154
|
-
function
|
|
155
|
-
return e.addEventListener(t,
|
|
154
|
+
function Ot(e, t, r, n) {
|
|
155
|
+
return e.addEventListener(t, r, n), () => e.removeEventListener(t, r, n);
|
|
156
156
|
}
|
|
157
|
-
function te(e, t,
|
|
158
|
-
|
|
157
|
+
function te(e, t, r) {
|
|
158
|
+
r == null ? e.removeAttribute(t) : e.getAttribute(t) !== r && e.setAttribute(t, r);
|
|
159
159
|
}
|
|
160
|
-
function
|
|
160
|
+
function pr(e) {
|
|
161
161
|
return Array.from(e.childNodes);
|
|
162
162
|
}
|
|
163
|
-
function
|
|
163
|
+
function br(e, t) {
|
|
164
164
|
t = "" + t, e.data !== t && (e.data = /** @type {string} */
|
|
165
165
|
t);
|
|
166
166
|
}
|
|
167
|
-
function
|
|
167
|
+
function gr(e) {
|
|
168
168
|
const t = {};
|
|
169
169
|
return e.childNodes.forEach(
|
|
170
170
|
/** @param {Element} node */
|
|
171
|
-
(
|
|
172
|
-
t[
|
|
171
|
+
(r) => {
|
|
172
|
+
t[r.slot || "default"] = !0;
|
|
173
173
|
}
|
|
174
174
|
), t;
|
|
175
175
|
}
|
|
@@ -177,20 +177,20 @@ let q;
|
|
|
177
177
|
function J(e) {
|
|
178
178
|
q = e;
|
|
179
179
|
}
|
|
180
|
-
function
|
|
180
|
+
function _r() {
|
|
181
181
|
if (!q)
|
|
182
182
|
throw new Error("Function called outside component initialization");
|
|
183
183
|
return q;
|
|
184
184
|
}
|
|
185
|
-
function
|
|
186
|
-
|
|
185
|
+
function yr(e) {
|
|
186
|
+
_r().$$.on_mount.push(e);
|
|
187
187
|
}
|
|
188
188
|
const D = [], Le = [];
|
|
189
189
|
let G = [];
|
|
190
|
-
const
|
|
190
|
+
const rt = [], xr = /* @__PURE__ */ Promise.resolve();
|
|
191
191
|
let Ne = !1;
|
|
192
|
-
function
|
|
193
|
-
Ne || (Ne = !0,
|
|
192
|
+
function Er() {
|
|
193
|
+
Ne || (Ne = !0, xr.then(w));
|
|
194
194
|
}
|
|
195
195
|
function Ie(e) {
|
|
196
196
|
G.push(e);
|
|
@@ -205,7 +205,7 @@ function w() {
|
|
|
205
205
|
try {
|
|
206
206
|
for (; $ < D.length; ) {
|
|
207
207
|
const t = D[$];
|
|
208
|
-
$++, J(t),
|
|
208
|
+
$++, J(t), vr(t.$$);
|
|
209
209
|
}
|
|
210
210
|
} catch (t) {
|
|
211
211
|
throw D.length = 0, $ = 0, t;
|
|
@@ -213,55 +213,55 @@ function w() {
|
|
|
213
213
|
for (J(null), D.length = 0, $ = 0; Le.length; )
|
|
214
214
|
Le.pop()();
|
|
215
215
|
for (let t = 0; t < G.length; t += 1) {
|
|
216
|
-
const
|
|
217
|
-
Be.has(
|
|
216
|
+
const r = G[t];
|
|
217
|
+
Be.has(r) || (Be.add(r), r());
|
|
218
218
|
}
|
|
219
219
|
G.length = 0;
|
|
220
220
|
} while (D.length);
|
|
221
|
-
for (;
|
|
222
|
-
|
|
221
|
+
for (; rt.length; )
|
|
222
|
+
rt.pop()();
|
|
223
223
|
Ne = !1, Be.clear(), J(e);
|
|
224
224
|
}
|
|
225
|
-
function
|
|
225
|
+
function vr(e) {
|
|
226
226
|
if (e.fragment !== null) {
|
|
227
227
|
e.update(), ee(e.before_update);
|
|
228
228
|
const t = e.dirty;
|
|
229
229
|
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(Ie);
|
|
230
230
|
}
|
|
231
231
|
}
|
|
232
|
-
function
|
|
233
|
-
const t = [],
|
|
234
|
-
G.forEach((
|
|
232
|
+
function Hr(e) {
|
|
233
|
+
const t = [], r = [];
|
|
234
|
+
G.forEach((n) => e.indexOf(n) === -1 ? t.push(n) : r.push(n)), r.forEach((n) => n()), G = t;
|
|
235
235
|
}
|
|
236
236
|
const oe = /* @__PURE__ */ new Set();
|
|
237
|
-
let
|
|
237
|
+
let Br;
|
|
238
238
|
function ae(e, t) {
|
|
239
239
|
e && e.i && (oe.delete(e), e.i(t));
|
|
240
240
|
}
|
|
241
|
-
function Te(e, t,
|
|
241
|
+
function Te(e, t, r, n) {
|
|
242
242
|
if (e && e.o) {
|
|
243
243
|
if (oe.has(e))
|
|
244
244
|
return;
|
|
245
|
-
oe.add(e),
|
|
245
|
+
oe.add(e), Br.c.push(() => {
|
|
246
246
|
oe.delete(e);
|
|
247
247
|
}), e.o(t);
|
|
248
248
|
}
|
|
249
249
|
}
|
|
250
|
-
function
|
|
251
|
-
const { fragment:
|
|
252
|
-
|
|
253
|
-
const s = e.$$.on_mount.map(
|
|
250
|
+
function Tr(e, t, r) {
|
|
251
|
+
const { fragment: n, after_update: i } = e.$$;
|
|
252
|
+
n && n.m(t, r), Ie(() => {
|
|
253
|
+
const s = e.$$.on_mount.map(Bt).filter(ke);
|
|
254
254
|
e.$$.on_destroy ? e.$$.on_destroy.push(...s) : ee(s), e.$$.on_mount = [];
|
|
255
255
|
}), i.forEach(Ie);
|
|
256
256
|
}
|
|
257
|
-
function
|
|
258
|
-
const
|
|
259
|
-
|
|
257
|
+
function wr(e, t) {
|
|
258
|
+
const r = e.$$;
|
|
259
|
+
r.fragment !== null && (Hr(r.after_update), ee(r.on_destroy), r.fragment && r.fragment.d(t), r.on_destroy = r.fragment = null, r.ctx = []);
|
|
260
260
|
}
|
|
261
|
-
function
|
|
262
|
-
e.$$.dirty[0] === -1 && (D.push(e),
|
|
261
|
+
function Sr(e, t) {
|
|
262
|
+
e.$$.dirty[0] === -1 && (D.push(e), Er(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
|
|
263
263
|
}
|
|
264
|
-
function
|
|
264
|
+
function Ar(e, t, r, n, i, s, a = null, o = [-1]) {
|
|
265
265
|
const l = q;
|
|
266
266
|
J(e);
|
|
267
267
|
const u = e.$$ = {
|
|
@@ -271,7 +271,7 @@ function An(e, t, n, r, i, s, o = null, a = [-1]) {
|
|
|
271
271
|
props: s,
|
|
272
272
|
update: T,
|
|
273
273
|
not_equal: i,
|
|
274
|
-
bound:
|
|
274
|
+
bound: et(),
|
|
275
275
|
// lifecycle
|
|
276
276
|
on_mount: [],
|
|
277
277
|
on_destroy: [],
|
|
@@ -280,29 +280,29 @@ function An(e, t, n, r, i, s, o = null, a = [-1]) {
|
|
|
280
280
|
after_update: [],
|
|
281
281
|
context: new Map(t.context || (l ? l.$$.context : [])),
|
|
282
282
|
// everything else
|
|
283
|
-
callbacks:
|
|
284
|
-
dirty:
|
|
283
|
+
callbacks: et(),
|
|
284
|
+
dirty: o,
|
|
285
285
|
skip_bound: !1,
|
|
286
286
|
root: t.target || l.$$.root
|
|
287
287
|
};
|
|
288
|
-
|
|
288
|
+
a && a(u.root);
|
|
289
289
|
let h = !1;
|
|
290
|
-
if (u.ctx =
|
|
290
|
+
if (u.ctx = r ? r(e, t.props || {}, (c, m, ...d) => {
|
|
291
291
|
const f = d.length ? d[0] : m;
|
|
292
|
-
return u.ctx && i(u.ctx[c], u.ctx[c] = f) && (!u.skip_bound && u.bound[c] && u.bound[c](f), h &&
|
|
293
|
-
}), u.update(), h = !0, ee(u.before_update), u.fragment =
|
|
292
|
+
return u.ctx && i(u.ctx[c], u.ctx[c] = f) && (!u.skip_bound && u.bound[c] && u.bound[c](f), h && Sr(e, c)), m;
|
|
293
|
+
}) : [], u.update(), h = !0, ee(u.before_update), u.fragment = n ? n(u.ctx) : !1, t.target) {
|
|
294
294
|
if (t.hydrate) {
|
|
295
|
-
const c =
|
|
295
|
+
const c = pr(t.target);
|
|
296
296
|
u.fragment && u.fragment.l(c), c.forEach(C);
|
|
297
297
|
} else
|
|
298
298
|
u.fragment && u.fragment.c();
|
|
299
|
-
t.intro && ae(e.$$.fragment),
|
|
299
|
+
t.intro && ae(e.$$.fragment), Tr(e, t.target, t.anchor), w();
|
|
300
300
|
}
|
|
301
301
|
J(l);
|
|
302
302
|
}
|
|
303
|
-
let
|
|
304
|
-
typeof HTMLElement == "function" && (
|
|
305
|
-
constructor(t,
|
|
303
|
+
let Pt;
|
|
304
|
+
typeof HTMLElement == "function" && (Pt = class extends HTMLElement {
|
|
305
|
+
constructor(t, r, n) {
|
|
306
306
|
super();
|
|
307
307
|
/** The Svelte component constructor */
|
|
308
308
|
B(this, "$$ctor");
|
|
@@ -322,59 +322,59 @@ typeof HTMLElement == "function" && (Ot = class extends HTMLElement {
|
|
|
322
322
|
B(this, "$$l", {});
|
|
323
323
|
/** @type {Map<Function, Function>} Event listener unsubscribe functions */
|
|
324
324
|
B(this, "$$l_u", /* @__PURE__ */ new Map());
|
|
325
|
-
this.$$ctor = t, this.$$s =
|
|
325
|
+
this.$$ctor = t, this.$$s = r, n && this.attachShadow({ mode: "open" });
|
|
326
326
|
}
|
|
327
|
-
addEventListener(t,
|
|
328
|
-
if (this.$$l[t] = this.$$l[t] || [], this.$$l[t].push(
|
|
329
|
-
const i = this.$$c.$on(t,
|
|
330
|
-
this.$$l_u.set(
|
|
327
|
+
addEventListener(t, r, n) {
|
|
328
|
+
if (this.$$l[t] = this.$$l[t] || [], this.$$l[t].push(r), this.$$c) {
|
|
329
|
+
const i = this.$$c.$on(t, r);
|
|
330
|
+
this.$$l_u.set(r, i);
|
|
331
331
|
}
|
|
332
|
-
super.addEventListener(t,
|
|
332
|
+
super.addEventListener(t, r, n);
|
|
333
333
|
}
|
|
334
|
-
removeEventListener(t,
|
|
335
|
-
if (super.removeEventListener(t,
|
|
336
|
-
const i = this.$$l_u.get(
|
|
337
|
-
i && (i(), this.$$l_u.delete(
|
|
334
|
+
removeEventListener(t, r, n) {
|
|
335
|
+
if (super.removeEventListener(t, r, n), this.$$c) {
|
|
336
|
+
const i = this.$$l_u.get(r);
|
|
337
|
+
i && (i(), this.$$l_u.delete(r));
|
|
338
338
|
}
|
|
339
339
|
}
|
|
340
340
|
connectedCallback() {
|
|
341
|
-
return
|
|
341
|
+
return Ke(this, null, function* () {
|
|
342
342
|
if (this.$$cn = !0, !this.$$c) {
|
|
343
343
|
let t = function(s) {
|
|
344
344
|
return () => {
|
|
345
|
-
let
|
|
345
|
+
let a;
|
|
346
346
|
return {
|
|
347
347
|
c: function() {
|
|
348
|
-
|
|
348
|
+
a = X("slot"), s !== "default" && te(a, "name", s);
|
|
349
349
|
},
|
|
350
350
|
/**
|
|
351
351
|
* @param {HTMLElement} target
|
|
352
352
|
* @param {HTMLElement} [anchor]
|
|
353
353
|
*/
|
|
354
354
|
m: function(u, h) {
|
|
355
|
-
I(u,
|
|
355
|
+
I(u, a, h);
|
|
356
356
|
},
|
|
357
357
|
d: function(u) {
|
|
358
|
-
u && C(
|
|
358
|
+
u && C(a);
|
|
359
359
|
}
|
|
360
360
|
};
|
|
361
361
|
};
|
|
362
362
|
};
|
|
363
363
|
if (yield Promise.resolve(), !this.$$cn || this.$$c)
|
|
364
364
|
return;
|
|
365
|
-
const
|
|
365
|
+
const r = {}, n = gr(this);
|
|
366
366
|
for (const s of this.$$s)
|
|
367
|
-
s in
|
|
367
|
+
s in n && (r[s] = [t(s)]);
|
|
368
368
|
for (const s of this.attributes) {
|
|
369
|
-
const
|
|
370
|
-
|
|
369
|
+
const a = this.$$g_p(s.name);
|
|
370
|
+
a in this.$$d || (this.$$d[a] = ue(a, s.value, this.$$p_d, "toProp"));
|
|
371
371
|
}
|
|
372
372
|
for (const s in this.$$p_d)
|
|
373
373
|
!(s in this.$$d) && this[s] !== void 0 && (this.$$d[s] = this[s], delete this[s]);
|
|
374
374
|
this.$$c = new this.$$ctor({
|
|
375
375
|
target: this.shadowRoot || this,
|
|
376
|
-
props: qe(
|
|
377
|
-
$$slots:
|
|
376
|
+
props: Ye(qe({}, this.$$d), {
|
|
377
|
+
$$slots: r,
|
|
378
378
|
$$scope: {
|
|
379
379
|
ctx: []
|
|
380
380
|
}
|
|
@@ -384,21 +384,21 @@ typeof HTMLElement == "function" && (Ot = class extends HTMLElement {
|
|
|
384
384
|
this.$$r = !0;
|
|
385
385
|
for (const s in this.$$p_d)
|
|
386
386
|
if (this.$$d[s] = this.$$c.$$.ctx[this.$$c.$$.props[s]], this.$$p_d[s].reflect) {
|
|
387
|
-
const
|
|
387
|
+
const a = ue(
|
|
388
388
|
s,
|
|
389
389
|
this.$$d[s],
|
|
390
390
|
this.$$p_d,
|
|
391
391
|
"toAttribute"
|
|
392
392
|
);
|
|
393
|
-
|
|
393
|
+
a == null ? this.removeAttribute(this.$$p_d[s].attribute || s) : this.setAttribute(this.$$p_d[s].attribute || s, a);
|
|
394
394
|
}
|
|
395
395
|
this.$$r = !1;
|
|
396
396
|
};
|
|
397
397
|
this.$$c.$$.after_update.push(i), i();
|
|
398
398
|
for (const s in this.$$l)
|
|
399
|
-
for (const
|
|
400
|
-
const
|
|
401
|
-
this.$$l_u.set(
|
|
399
|
+
for (const a of this.$$l[s]) {
|
|
400
|
+
const o = this.$$c.$on(s, a);
|
|
401
|
+
this.$$l_u.set(a, o);
|
|
402
402
|
}
|
|
403
403
|
this.$$l = {};
|
|
404
404
|
}
|
|
@@ -406,9 +406,9 @@ typeof HTMLElement == "function" && (Ot = class extends HTMLElement {
|
|
|
406
406
|
}
|
|
407
407
|
// We don't need this when working within Svelte code, but for compatibility of people using this outside of Svelte
|
|
408
408
|
// and setting attributes through setAttribute etc, this is helpful
|
|
409
|
-
attributeChangedCallback(t,
|
|
409
|
+
attributeChangedCallback(t, r, n) {
|
|
410
410
|
var i;
|
|
411
|
-
this.$$r || (t = this.$$g_p(t), this.$$d[t] = ue(t,
|
|
411
|
+
this.$$r || (t = this.$$g_p(t), this.$$d[t] = ue(t, n, this.$$p_d, "toProp"), (i = this.$$c) == null || i.$set({ [t]: this.$$d[t] }));
|
|
412
412
|
}
|
|
413
413
|
disconnectedCallback() {
|
|
414
414
|
this.$$cn = !1, Promise.resolve().then(() => {
|
|
@@ -417,16 +417,16 @@ typeof HTMLElement == "function" && (Ot = class extends HTMLElement {
|
|
|
417
417
|
}
|
|
418
418
|
$$g_p(t) {
|
|
419
419
|
return Object.keys(this.$$p_d).find(
|
|
420
|
-
(
|
|
420
|
+
(r) => this.$$p_d[r].attribute === t || !this.$$p_d[r].attribute && r.toLowerCase() === t
|
|
421
421
|
) || t;
|
|
422
422
|
}
|
|
423
423
|
});
|
|
424
|
-
function ue(e, t,
|
|
424
|
+
function ue(e, t, r, n) {
|
|
425
425
|
var s;
|
|
426
|
-
const i = (s =
|
|
427
|
-
if (t = i === "Boolean" && typeof t != "boolean" ? t != null : t, !
|
|
426
|
+
const i = (s = r[e]) == null ? void 0 : s.type;
|
|
427
|
+
if (t = i === "Boolean" && typeof t != "boolean" ? t != null : t, !n || !r[e])
|
|
428
428
|
return t;
|
|
429
|
-
if (
|
|
429
|
+
if (n === "toAttribute")
|
|
430
430
|
switch (i) {
|
|
431
431
|
case "Object":
|
|
432
432
|
case "Array":
|
|
@@ -451,38 +451,38 @@ function ue(e, t, n, r) {
|
|
|
451
451
|
return t;
|
|
452
452
|
}
|
|
453
453
|
}
|
|
454
|
-
function
|
|
455
|
-
let
|
|
454
|
+
function Or(e, t, r, n, i, s) {
|
|
455
|
+
let a = class extends Pt {
|
|
456
456
|
constructor() {
|
|
457
|
-
super(e,
|
|
457
|
+
super(e, r, i), this.$$p_d = t;
|
|
458
458
|
}
|
|
459
459
|
static get observedAttributes() {
|
|
460
460
|
return Object.keys(t).map(
|
|
461
|
-
(
|
|
461
|
+
(o) => (t[o].attribute || o).toLowerCase()
|
|
462
462
|
);
|
|
463
463
|
}
|
|
464
464
|
};
|
|
465
|
-
return Object.keys(t).forEach((
|
|
466
|
-
Object.defineProperty(
|
|
465
|
+
return Object.keys(t).forEach((o) => {
|
|
466
|
+
Object.defineProperty(a.prototype, o, {
|
|
467
467
|
get() {
|
|
468
|
-
return this.$$c &&
|
|
468
|
+
return this.$$c && o in this.$$c ? this.$$c[o] : this.$$d[o];
|
|
469
469
|
},
|
|
470
470
|
set(l) {
|
|
471
471
|
var u;
|
|
472
|
-
l = ue(
|
|
472
|
+
l = ue(o, l, t), this.$$d[o] = l, (u = this.$$c) == null || u.$set({ [o]: l });
|
|
473
473
|
}
|
|
474
474
|
});
|
|
475
|
-
}),
|
|
476
|
-
Object.defineProperty(
|
|
475
|
+
}), n.forEach((o) => {
|
|
476
|
+
Object.defineProperty(a.prototype, o, {
|
|
477
477
|
get() {
|
|
478
478
|
var l;
|
|
479
|
-
return (l = this.$$c) == null ? void 0 : l[
|
|
479
|
+
return (l = this.$$c) == null ? void 0 : l[o];
|
|
480
480
|
}
|
|
481
481
|
});
|
|
482
482
|
}), e.element = /** @type {any} */
|
|
483
|
-
|
|
483
|
+
a, a;
|
|
484
484
|
}
|
|
485
|
-
class
|
|
485
|
+
class Pr {
|
|
486
486
|
constructor() {
|
|
487
487
|
/**
|
|
488
488
|
* ### PRIVATE API
|
|
@@ -503,7 +503,7 @@ class Pn {
|
|
|
503
503
|
}
|
|
504
504
|
/** @returns {void} */
|
|
505
505
|
$destroy() {
|
|
506
|
-
|
|
506
|
+
wr(this, 1), this.$destroy = T;
|
|
507
507
|
}
|
|
508
508
|
/**
|
|
509
509
|
* @template {Extract<keyof Events, string>} K
|
|
@@ -511,13 +511,13 @@ class Pn {
|
|
|
511
511
|
* @param {((e: Events[K]) => void) | null | undefined} callback
|
|
512
512
|
* @returns {() => void}
|
|
513
513
|
*/
|
|
514
|
-
$on(t,
|
|
515
|
-
if (!ke(
|
|
514
|
+
$on(t, r) {
|
|
515
|
+
if (!ke(r))
|
|
516
516
|
return T;
|
|
517
|
-
const
|
|
518
|
-
return
|
|
519
|
-
const i =
|
|
520
|
-
i !== -1 &&
|
|
517
|
+
const n = this.$$.callbacks[t] || (this.$$.callbacks[t] = []);
|
|
518
|
+
return n.push(r), () => {
|
|
519
|
+
const i = n.indexOf(r);
|
|
520
|
+
i !== -1 && n.splice(i, 1);
|
|
521
521
|
};
|
|
522
522
|
}
|
|
523
523
|
/**
|
|
@@ -525,24 +525,24 @@ class Pn {
|
|
|
525
525
|
* @returns {void}
|
|
526
526
|
*/
|
|
527
527
|
$set(t) {
|
|
528
|
-
this.$$set && !
|
|
528
|
+
this.$$set && !lr(t) && (this.$$.skip_bound = !0, this.$$set(t), this.$$.skip_bound = !1);
|
|
529
529
|
}
|
|
530
530
|
}
|
|
531
|
-
const
|
|
532
|
-
typeof window != "undefined" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(
|
|
531
|
+
const Cr = "4";
|
|
532
|
+
typeof window != "undefined" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(Cr);
|
|
533
533
|
const U = [];
|
|
534
|
-
function
|
|
534
|
+
function Lr(e, t) {
|
|
535
535
|
return {
|
|
536
|
-
subscribe:
|
|
536
|
+
subscribe: pe(e, t).subscribe
|
|
537
537
|
};
|
|
538
538
|
}
|
|
539
|
-
function
|
|
540
|
-
let
|
|
541
|
-
const
|
|
542
|
-
function i(
|
|
543
|
-
if (
|
|
539
|
+
function pe(e, t = T) {
|
|
540
|
+
let r;
|
|
541
|
+
const n = /* @__PURE__ */ new Set();
|
|
542
|
+
function i(o) {
|
|
543
|
+
if (Tt(e, o) && (e = o, r)) {
|
|
544
544
|
const l = !U.length;
|
|
545
|
-
for (const u of
|
|
545
|
+
for (const u of n)
|
|
546
546
|
u[1](), U.push(u, e);
|
|
547
547
|
if (l) {
|
|
548
548
|
for (let u = 0; u < U.length; u += 2)
|
|
@@ -551,23 +551,23 @@ function be(e, t = T) {
|
|
|
551
551
|
}
|
|
552
552
|
}
|
|
553
553
|
}
|
|
554
|
-
function s(
|
|
555
|
-
i(
|
|
554
|
+
function s(o) {
|
|
555
|
+
i(o(e));
|
|
556
556
|
}
|
|
557
|
-
function o
|
|
558
|
-
const u = [
|
|
559
|
-
return
|
|
560
|
-
|
|
557
|
+
function a(o, l = T) {
|
|
558
|
+
const u = [o, l];
|
|
559
|
+
return n.add(u), n.size === 1 && (r = t(i, s) || T), o(e), () => {
|
|
560
|
+
n.delete(u), n.size === 0 && r && (r(), r = null);
|
|
561
561
|
};
|
|
562
562
|
}
|
|
563
|
-
return { set: i, update: s, subscribe:
|
|
563
|
+
return { set: i, update: s, subscribe: a };
|
|
564
564
|
}
|
|
565
|
-
function z(e, t,
|
|
566
|
-
const
|
|
565
|
+
function z(e, t, r) {
|
|
566
|
+
const n = !Array.isArray(e), i = n ? [e] : e;
|
|
567
567
|
if (!i.every(Boolean))
|
|
568
568
|
throw new Error("derived() expects stores as input, got a falsy value");
|
|
569
569
|
const s = t.length < 2;
|
|
570
|
-
return
|
|
570
|
+
return Lr(r, (a, o) => {
|
|
571
571
|
let l = !1;
|
|
572
572
|
const u = [];
|
|
573
573
|
let h = 0, c = T;
|
|
@@ -575,10 +575,10 @@ function z(e, t, n) {
|
|
|
575
575
|
if (h)
|
|
576
576
|
return;
|
|
577
577
|
c();
|
|
578
|
-
const f = t(
|
|
579
|
-
s ?
|
|
578
|
+
const f = t(n ? u[0] : u, a, o);
|
|
579
|
+
s ? a(f) : c = ke(f) ? f : T;
|
|
580
580
|
}, d = i.map(
|
|
581
|
-
(f, _) =>
|
|
581
|
+
(f, _) => wt(
|
|
582
582
|
f,
|
|
583
583
|
(v) => {
|
|
584
584
|
u[_] = v, h &= ~(1 << _), l && m();
|
|
@@ -593,80 +593,80 @@ function z(e, t, n) {
|
|
|
593
593
|
};
|
|
594
594
|
});
|
|
595
595
|
}
|
|
596
|
-
function
|
|
597
|
-
return e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
596
|
+
function Nr(e) {
|
|
597
|
+
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
598
598
|
}
|
|
599
|
-
var
|
|
600
|
-
return
|
|
599
|
+
var Ir = function(t) {
|
|
600
|
+
return Mr(t) && !Rr(t);
|
|
601
601
|
};
|
|
602
|
-
function
|
|
602
|
+
function Mr(e) {
|
|
603
603
|
return !!e && typeof e == "object";
|
|
604
604
|
}
|
|
605
|
-
function
|
|
605
|
+
function Rr(e) {
|
|
606
606
|
var t = Object.prototype.toString.call(e);
|
|
607
|
-
return t === "[object RegExp]" || t === "[object Date]" ||
|
|
607
|
+
return t === "[object RegExp]" || t === "[object Date]" || Dr(e);
|
|
608
608
|
}
|
|
609
|
-
var $
|
|
610
|
-
function
|
|
611
|
-
return e.$$typeof ===
|
|
609
|
+
var $r = typeof Symbol == "function" && Symbol.for, Ur = $r ? Symbol.for("react.element") : 60103;
|
|
610
|
+
function Dr(e) {
|
|
611
|
+
return e.$$typeof === Ur;
|
|
612
612
|
}
|
|
613
|
-
function
|
|
613
|
+
function Gr(e) {
|
|
614
614
|
return Array.isArray(e) ? [] : {};
|
|
615
615
|
}
|
|
616
616
|
function Y(e, t) {
|
|
617
|
-
return t.clone !== !1 && t.isMergeableObject(e) ? F(
|
|
617
|
+
return t.clone !== !1 && t.isMergeableObject(e) ? F(Gr(e), e, t) : e;
|
|
618
618
|
}
|
|
619
|
-
function
|
|
620
|
-
return e.concat(t).map(function(
|
|
621
|
-
return Y(
|
|
619
|
+
function Fr(e, t, r) {
|
|
620
|
+
return e.concat(t).map(function(n) {
|
|
621
|
+
return Y(n, r);
|
|
622
622
|
});
|
|
623
623
|
}
|
|
624
|
-
function
|
|
624
|
+
function jr(e, t) {
|
|
625
625
|
if (!t.customMerge)
|
|
626
626
|
return F;
|
|
627
|
-
var
|
|
628
|
-
return typeof
|
|
627
|
+
var r = t.customMerge(e);
|
|
628
|
+
return typeof r == "function" ? r : F;
|
|
629
629
|
}
|
|
630
|
-
function
|
|
630
|
+
function kr(e) {
|
|
631
631
|
return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(e).filter(function(t) {
|
|
632
632
|
return Object.propertyIsEnumerable.call(e, t);
|
|
633
633
|
}) : [];
|
|
634
634
|
}
|
|
635
635
|
function nt(e) {
|
|
636
|
-
return Object.keys(e).concat(
|
|
636
|
+
return Object.keys(e).concat(kr(e));
|
|
637
637
|
}
|
|
638
|
-
function
|
|
638
|
+
function Ct(e, t) {
|
|
639
639
|
try {
|
|
640
640
|
return t in e;
|
|
641
|
-
} catch (
|
|
641
|
+
} catch (r) {
|
|
642
642
|
return !1;
|
|
643
643
|
}
|
|
644
644
|
}
|
|
645
|
-
function
|
|
646
|
-
return
|
|
645
|
+
function Vr(e, t) {
|
|
646
|
+
return Ct(e, t) && !(Object.hasOwnProperty.call(e, t) && Object.propertyIsEnumerable.call(e, t));
|
|
647
647
|
}
|
|
648
|
-
function
|
|
649
|
-
var
|
|
650
|
-
return
|
|
651
|
-
|
|
648
|
+
function Xr(e, t, r) {
|
|
649
|
+
var n = {};
|
|
650
|
+
return r.isMergeableObject(e) && nt(e).forEach(function(i) {
|
|
651
|
+
n[i] = Y(e[i], r);
|
|
652
652
|
}), nt(t).forEach(function(i) {
|
|
653
|
-
|
|
654
|
-
}),
|
|
653
|
+
Vr(e, i) || (Ct(e, i) && r.isMergeableObject(t[i]) ? n[i] = jr(i, r)(e[i], t[i], r) : n[i] = Y(t[i], r));
|
|
654
|
+
}), n;
|
|
655
655
|
}
|
|
656
|
-
function F(e, t,
|
|
657
|
-
|
|
658
|
-
var
|
|
659
|
-
return s ?
|
|
656
|
+
function F(e, t, r) {
|
|
657
|
+
r = r || {}, r.arrayMerge = r.arrayMerge || Fr, r.isMergeableObject = r.isMergeableObject || Ir, r.cloneUnlessOtherwiseSpecified = Y;
|
|
658
|
+
var n = Array.isArray(t), i = Array.isArray(e), s = n === i;
|
|
659
|
+
return s ? n ? r.arrayMerge(e, t, r) : Xr(e, t, r) : Y(t, r);
|
|
660
660
|
}
|
|
661
|
-
F.all = function(t,
|
|
661
|
+
F.all = function(t, r) {
|
|
662
662
|
if (!Array.isArray(t))
|
|
663
663
|
throw new Error("first argument should be an array");
|
|
664
|
-
return t.reduce(function(
|
|
665
|
-
return F(
|
|
664
|
+
return t.reduce(function(n, i) {
|
|
665
|
+
return F(n, i, r);
|
|
666
666
|
}, {});
|
|
667
667
|
};
|
|
668
|
-
var
|
|
669
|
-
const
|
|
668
|
+
var zr = F, Wr = zr;
|
|
669
|
+
const Zr = /* @__PURE__ */ Nr(Wr);
|
|
670
670
|
/*! *****************************************************************************
|
|
671
671
|
Copyright (c) Microsoft Corporation.
|
|
672
672
|
|
|
@@ -682,103 +682,101 @@ OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
|
682
682
|
PERFORMANCE OF THIS SOFTWARE.
|
|
683
683
|
***************************************************************************** */
|
|
684
684
|
var Me = function(e, t) {
|
|
685
|
-
return Me = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(
|
|
686
|
-
|
|
687
|
-
} || function(
|
|
688
|
-
for (var i in
|
|
689
|
-
Object.prototype.hasOwnProperty.call(
|
|
685
|
+
return Me = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
|
|
686
|
+
r.__proto__ = n;
|
|
687
|
+
} || function(r, n) {
|
|
688
|
+
for (var i in n)
|
|
689
|
+
Object.prototype.hasOwnProperty.call(n, i) && (r[i] = n[i]);
|
|
690
690
|
}, Me(e, t);
|
|
691
691
|
};
|
|
692
|
-
function
|
|
692
|
+
function be(e, t) {
|
|
693
693
|
if (typeof t != "function" && t !== null)
|
|
694
694
|
throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
|
|
695
695
|
Me(e, t);
|
|
696
|
-
function
|
|
696
|
+
function r() {
|
|
697
697
|
this.constructor = e;
|
|
698
698
|
}
|
|
699
|
-
e.prototype = t === null ? Object.create(t) : (
|
|
699
|
+
e.prototype = t === null ? Object.create(t) : (r.prototype = t.prototype, new r());
|
|
700
700
|
}
|
|
701
701
|
var y = function() {
|
|
702
702
|
return y = Object.assign || function(t) {
|
|
703
|
-
for (var
|
|
704
|
-
|
|
705
|
-
for (var s in
|
|
706
|
-
Object.prototype.hasOwnProperty.call(
|
|
703
|
+
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
704
|
+
r = arguments[n];
|
|
705
|
+
for (var s in r)
|
|
706
|
+
Object.prototype.hasOwnProperty.call(r, s) && (t[s] = r[s]);
|
|
707
707
|
}
|
|
708
708
|
return t;
|
|
709
709
|
}, y.apply(this, arguments);
|
|
710
710
|
};
|
|
711
|
-
function
|
|
712
|
-
var
|
|
713
|
-
for (var
|
|
714
|
-
Object.prototype.hasOwnProperty.call(e,
|
|
711
|
+
function Qr(e, t) {
|
|
712
|
+
var r = {};
|
|
713
|
+
for (var n in e)
|
|
714
|
+
Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
715
715
|
if (e != null && typeof Object.getOwnPropertySymbols == "function")
|
|
716
|
-
for (var i = 0,
|
|
717
|
-
t.indexOf(
|
|
718
|
-
return
|
|
716
|
+
for (var i = 0, n = Object.getOwnPropertySymbols(e); i < n.length; i++)
|
|
717
|
+
t.indexOf(n[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[i]) && (r[n[i]] = e[n[i]]);
|
|
718
|
+
return r;
|
|
719
719
|
}
|
|
720
|
-
function we(e, t,
|
|
720
|
+
function we(e, t, r) {
|
|
721
721
|
if (arguments.length === 2)
|
|
722
|
-
for (var
|
|
723
|
-
(s || !(
|
|
722
|
+
for (var n = 0, i = t.length, s; n < i; n++)
|
|
723
|
+
(s || !(n in t)) && (s || (s = Array.prototype.slice.call(t, 0, n)), s[n] = t[n]);
|
|
724
724
|
return e.concat(s || t);
|
|
725
725
|
}
|
|
726
726
|
function Se(e, t) {
|
|
727
|
-
var
|
|
727
|
+
var r = t && t.cache ? t.cache : tn, n = t && t.serializer ? t.serializer : en, i = t && t.strategy ? t.strategy : qr;
|
|
728
728
|
return i(e, {
|
|
729
|
-
cache:
|
|
730
|
-
serializer:
|
|
729
|
+
cache: r,
|
|
730
|
+
serializer: n
|
|
731
731
|
});
|
|
732
732
|
}
|
|
733
|
-
function
|
|
733
|
+
function Jr(e) {
|
|
734
734
|
return e == null || typeof e == "number" || typeof e == "boolean";
|
|
735
735
|
}
|
|
736
|
-
function
|
|
737
|
-
var i =
|
|
738
|
-
return typeof s == "undefined" && (s = e.call(this,
|
|
736
|
+
function Lt(e, t, r, n) {
|
|
737
|
+
var i = Jr(n) ? n : r(n), s = t.get(i);
|
|
738
|
+
return typeof s == "undefined" && (s = e.call(this, n), t.set(i, s)), s;
|
|
739
739
|
}
|
|
740
|
-
function
|
|
741
|
-
var
|
|
742
|
-
return typeof s == "undefined" && (s = e.apply(this,
|
|
740
|
+
function Nt(e, t, r) {
|
|
741
|
+
var n = Array.prototype.slice.call(arguments, 3), i = r(n), s = t.get(i);
|
|
742
|
+
return typeof s == "undefined" && (s = e.apply(this, n), t.set(i, s)), s;
|
|
743
743
|
}
|
|
744
|
-
function Xe(e, t,
|
|
745
|
-
return
|
|
744
|
+
function Xe(e, t, r, n, i) {
|
|
745
|
+
return r.bind(t, e, n, i);
|
|
746
746
|
}
|
|
747
|
-
function
|
|
748
|
-
var
|
|
749
|
-
return Xe(e, this,
|
|
747
|
+
function qr(e, t) {
|
|
748
|
+
var r = e.length === 1 ? Lt : Nt;
|
|
749
|
+
return Xe(e, this, r, t.cache.create(), t.serializer);
|
|
750
750
|
}
|
|
751
|
-
function
|
|
752
|
-
return Xe(e, this,
|
|
751
|
+
function Yr(e, t) {
|
|
752
|
+
return Xe(e, this, Nt, t.cache.create(), t.serializer);
|
|
753
753
|
}
|
|
754
|
-
function
|
|
755
|
-
return Xe(e, this,
|
|
754
|
+
function Kr(e, t) {
|
|
755
|
+
return Xe(e, this, Lt, t.cache.create(), t.serializer);
|
|
756
756
|
}
|
|
757
|
-
var
|
|
757
|
+
var en = function() {
|
|
758
758
|
return JSON.stringify(arguments);
|
|
759
|
-
}
|
|
760
|
-
|
|
761
|
-
|
|
762
|
-
|
|
763
|
-
|
|
764
|
-
|
|
765
|
-
|
|
766
|
-
|
|
767
|
-
|
|
768
|
-
|
|
769
|
-
|
|
770
|
-
}()
|
|
771
|
-
), nr = {
|
|
759
|
+
};
|
|
760
|
+
function ze() {
|
|
761
|
+
this.cache = /* @__PURE__ */ Object.create(null);
|
|
762
|
+
}
|
|
763
|
+
ze.prototype.get = function(e) {
|
|
764
|
+
return this.cache[e];
|
|
765
|
+
};
|
|
766
|
+
ze.prototype.set = function(e, t) {
|
|
767
|
+
this.cache[e] = t;
|
|
768
|
+
};
|
|
769
|
+
var tn = {
|
|
772
770
|
create: function() {
|
|
773
|
-
return new
|
|
771
|
+
return new ze();
|
|
774
772
|
}
|
|
775
773
|
}, Ae = {
|
|
776
|
-
variadic:
|
|
777
|
-
monadic:
|
|
778
|
-
},
|
|
774
|
+
variadic: Yr,
|
|
775
|
+
monadic: Kr
|
|
776
|
+
}, p;
|
|
779
777
|
(function(e) {
|
|
780
778
|
e[e.EXPECT_ARGUMENT_CLOSING_BRACE = 1] = "EXPECT_ARGUMENT_CLOSING_BRACE", e[e.EMPTY_ARGUMENT = 2] = "EMPTY_ARGUMENT", e[e.MALFORMED_ARGUMENT = 3] = "MALFORMED_ARGUMENT", e[e.EXPECT_ARGUMENT_TYPE = 4] = "EXPECT_ARGUMENT_TYPE", e[e.INVALID_ARGUMENT_TYPE = 5] = "INVALID_ARGUMENT_TYPE", e[e.EXPECT_ARGUMENT_STYLE = 6] = "EXPECT_ARGUMENT_STYLE", e[e.INVALID_NUMBER_SKELETON = 7] = "INVALID_NUMBER_SKELETON", e[e.INVALID_DATE_TIME_SKELETON = 8] = "INVALID_DATE_TIME_SKELETON", e[e.EXPECT_NUMBER_SKELETON = 9] = "EXPECT_NUMBER_SKELETON", e[e.EXPECT_DATE_TIME_SKELETON = 10] = "EXPECT_DATE_TIME_SKELETON", e[e.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE = 11] = "UNCLOSED_QUOTE_IN_ARGUMENT_STYLE", e[e.EXPECT_SELECT_ARGUMENT_OPTIONS = 12] = "EXPECT_SELECT_ARGUMENT_OPTIONS", e[e.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE = 13] = "EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE", e[e.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE = 14] = "INVALID_PLURAL_ARGUMENT_OFFSET_VALUE", e[e.EXPECT_SELECT_ARGUMENT_SELECTOR = 15] = "EXPECT_SELECT_ARGUMENT_SELECTOR", e[e.EXPECT_PLURAL_ARGUMENT_SELECTOR = 16] = "EXPECT_PLURAL_ARGUMENT_SELECTOR", e[e.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT = 17] = "EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT", e[e.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT = 18] = "EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT", e[e.INVALID_PLURAL_ARGUMENT_SELECTOR = 19] = "INVALID_PLURAL_ARGUMENT_SELECTOR", e[e.DUPLICATE_PLURAL_ARGUMENT_SELECTOR = 20] = "DUPLICATE_PLURAL_ARGUMENT_SELECTOR", e[e.DUPLICATE_SELECT_ARGUMENT_SELECTOR = 21] = "DUPLICATE_SELECT_ARGUMENT_SELECTOR", e[e.MISSING_OTHER_CLAUSE = 22] = "MISSING_OTHER_CLAUSE", e[e.INVALID_TAG = 23] = "INVALID_TAG", e[e.INVALID_TAG_NAME = 25] = "INVALID_TAG_NAME", e[e.UNMATCHED_CLOSING_TAG = 26] = "UNMATCHED_CLOSING_TAG", e[e.UNCLOSED_TAG = 27] = "UNCLOSED_TAG";
|
|
781
|
-
})(
|
|
779
|
+
})(p || (p = {}));
|
|
782
780
|
var x;
|
|
783
781
|
(function(e) {
|
|
784
782
|
e[e.literal = 0] = "literal", e[e.argument = 1] = "argument", e[e.number = 2] = "number", e[e.date = 3] = "date", e[e.time = 4] = "time", e[e.select = 5] = "select", e[e.plural = 6] = "plural", e[e.pound = 7] = "pound", e[e.tag = 8] = "tag";
|
|
@@ -787,50 +785,50 @@ var j;
|
|
|
787
785
|
(function(e) {
|
|
788
786
|
e[e.number = 0] = "number", e[e.dateTime = 1] = "dateTime";
|
|
789
787
|
})(j || (j = {}));
|
|
790
|
-
function
|
|
788
|
+
function it(e) {
|
|
791
789
|
return e.type === x.literal;
|
|
792
790
|
}
|
|
793
|
-
function
|
|
791
|
+
function rn(e) {
|
|
794
792
|
return e.type === x.argument;
|
|
795
793
|
}
|
|
796
|
-
function
|
|
794
|
+
function It(e) {
|
|
797
795
|
return e.type === x.number;
|
|
798
796
|
}
|
|
799
|
-
function
|
|
797
|
+
function Mt(e) {
|
|
800
798
|
return e.type === x.date;
|
|
801
799
|
}
|
|
802
|
-
function
|
|
800
|
+
function Rt(e) {
|
|
803
801
|
return e.type === x.time;
|
|
804
802
|
}
|
|
805
|
-
function
|
|
803
|
+
function $t(e) {
|
|
806
804
|
return e.type === x.select;
|
|
807
805
|
}
|
|
808
|
-
function
|
|
806
|
+
function Ut(e) {
|
|
809
807
|
return e.type === x.plural;
|
|
810
808
|
}
|
|
811
|
-
function
|
|
809
|
+
function nn(e) {
|
|
812
810
|
return e.type === x.pound;
|
|
813
811
|
}
|
|
814
|
-
function
|
|
812
|
+
function Dt(e) {
|
|
815
813
|
return e.type === x.tag;
|
|
816
814
|
}
|
|
817
|
-
function
|
|
815
|
+
function Gt(e) {
|
|
818
816
|
return !!(e && typeof e == "object" && e.type === j.number);
|
|
819
817
|
}
|
|
820
818
|
function Re(e) {
|
|
821
819
|
return !!(e && typeof e == "object" && e.type === j.dateTime);
|
|
822
820
|
}
|
|
823
|
-
var
|
|
824
|
-
function
|
|
821
|
+
var Ft = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, sn = /(?:[Eec]{1,6}|G{1,5}|[Qq]{1,5}|(?:[yYur]+|U{1,5})|[ML]{1,5}|d{1,2}|D{1,3}|F{1}|[abB]{1,5}|[hkHK]{1,2}|w{1,2}|W{1}|m{1,2}|s{1,2}|[zZOvVxX]{1,4})(?=([^']*'[^']*')*[^']*$)/g;
|
|
822
|
+
function on(e) {
|
|
825
823
|
var t = {};
|
|
826
|
-
return e.replace(
|
|
827
|
-
var
|
|
828
|
-
switch (
|
|
824
|
+
return e.replace(sn, function(r) {
|
|
825
|
+
var n = r.length;
|
|
826
|
+
switch (r[0]) {
|
|
829
827
|
case "G":
|
|
830
|
-
t.era =
|
|
828
|
+
t.era = n === 4 ? "long" : n === 5 ? "narrow" : "short";
|
|
831
829
|
break;
|
|
832
830
|
case "y":
|
|
833
|
-
t.year =
|
|
831
|
+
t.year = n === 2 ? "2-digit" : "numeric";
|
|
834
832
|
break;
|
|
835
833
|
case "Y":
|
|
836
834
|
case "u":
|
|
@@ -842,30 +840,30 @@ function or(e) {
|
|
|
842
840
|
throw new RangeError("`q/Q` (quarter) patterns are not supported");
|
|
843
841
|
case "M":
|
|
844
842
|
case "L":
|
|
845
|
-
t.month = ["numeric", "2-digit", "short", "long", "narrow"][
|
|
843
|
+
t.month = ["numeric", "2-digit", "short", "long", "narrow"][n - 1];
|
|
846
844
|
break;
|
|
847
845
|
case "w":
|
|
848
846
|
case "W":
|
|
849
847
|
throw new RangeError("`w/W` (week) patterns are not supported");
|
|
850
848
|
case "d":
|
|
851
|
-
t.day = ["numeric", "2-digit"][
|
|
849
|
+
t.day = ["numeric", "2-digit"][n - 1];
|
|
852
850
|
break;
|
|
853
851
|
case "D":
|
|
854
852
|
case "F":
|
|
855
853
|
case "g":
|
|
856
854
|
throw new RangeError("`D/F/g` (day) patterns are not supported, use `d` instead");
|
|
857
855
|
case "E":
|
|
858
|
-
t.weekday =
|
|
856
|
+
t.weekday = n === 4 ? "long" : n === 5 ? "narrow" : "short";
|
|
859
857
|
break;
|
|
860
858
|
case "e":
|
|
861
|
-
if (
|
|
859
|
+
if (n < 4)
|
|
862
860
|
throw new RangeError("`e..eee` (weekday) patterns are not supported");
|
|
863
|
-
t.weekday = ["short", "long", "narrow", "short"][
|
|
861
|
+
t.weekday = ["short", "long", "narrow", "short"][n - 4];
|
|
864
862
|
break;
|
|
865
863
|
case "c":
|
|
866
|
-
if (
|
|
864
|
+
if (n < 4)
|
|
867
865
|
throw new RangeError("`c..ccc` (weekday) patterns are not supported");
|
|
868
|
-
t.weekday = ["short", "long", "narrow", "short"][
|
|
866
|
+
t.weekday = ["short", "long", "narrow", "short"][n - 4];
|
|
869
867
|
break;
|
|
870
868
|
case "a":
|
|
871
869
|
t.hour12 = !0;
|
|
@@ -874,32 +872,32 @@ function or(e) {
|
|
|
874
872
|
case "B":
|
|
875
873
|
throw new RangeError("`b/B` (period) patterns are not supported, use `a` instead");
|
|
876
874
|
case "h":
|
|
877
|
-
t.hourCycle = "h12", t.hour = ["numeric", "2-digit"][
|
|
875
|
+
t.hourCycle = "h12", t.hour = ["numeric", "2-digit"][n - 1];
|
|
878
876
|
break;
|
|
879
877
|
case "H":
|
|
880
|
-
t.hourCycle = "h23", t.hour = ["numeric", "2-digit"][
|
|
878
|
+
t.hourCycle = "h23", t.hour = ["numeric", "2-digit"][n - 1];
|
|
881
879
|
break;
|
|
882
880
|
case "K":
|
|
883
|
-
t.hourCycle = "h11", t.hour = ["numeric", "2-digit"][
|
|
881
|
+
t.hourCycle = "h11", t.hour = ["numeric", "2-digit"][n - 1];
|
|
884
882
|
break;
|
|
885
883
|
case "k":
|
|
886
|
-
t.hourCycle = "h24", t.hour = ["numeric", "2-digit"][
|
|
884
|
+
t.hourCycle = "h24", t.hour = ["numeric", "2-digit"][n - 1];
|
|
887
885
|
break;
|
|
888
886
|
case "j":
|
|
889
887
|
case "J":
|
|
890
888
|
case "C":
|
|
891
889
|
throw new RangeError("`j/J/C` (hour) patterns are not supported, use `h/H/K/k` instead");
|
|
892
890
|
case "m":
|
|
893
|
-
t.minute = ["numeric", "2-digit"][
|
|
891
|
+
t.minute = ["numeric", "2-digit"][n - 1];
|
|
894
892
|
break;
|
|
895
893
|
case "s":
|
|
896
|
-
t.second = ["numeric", "2-digit"][
|
|
894
|
+
t.second = ["numeric", "2-digit"][n - 1];
|
|
897
895
|
break;
|
|
898
896
|
case "S":
|
|
899
897
|
case "A":
|
|
900
898
|
throw new RangeError("`S/A` (second) patterns are not supported, use `s` instead");
|
|
901
899
|
case "z":
|
|
902
|
-
t.timeZoneName =
|
|
900
|
+
t.timeZoneName = n < 4 ? "short" : "long";
|
|
903
901
|
break;
|
|
904
902
|
case "Z":
|
|
905
903
|
case "O":
|
|
@@ -912,36 +910,36 @@ function or(e) {
|
|
|
912
910
|
return "";
|
|
913
911
|
}), t;
|
|
914
912
|
}
|
|
915
|
-
var
|
|
916
|
-
function
|
|
913
|
+
var an = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
|
|
914
|
+
function un(e) {
|
|
917
915
|
if (e.length === 0)
|
|
918
916
|
throw new Error("Number skeleton cannot be empty");
|
|
919
|
-
for (var t = e.split(
|
|
917
|
+
for (var t = e.split(an).filter(function(m) {
|
|
920
918
|
return m.length > 0;
|
|
921
|
-
}),
|
|
922
|
-
var s = i[
|
|
923
|
-
if (
|
|
919
|
+
}), r = [], n = 0, i = t; n < i.length; n++) {
|
|
920
|
+
var s = i[n], a = s.split("/");
|
|
921
|
+
if (a.length === 0)
|
|
924
922
|
throw new Error("Invalid number skeleton");
|
|
925
|
-
for (var
|
|
923
|
+
for (var o = a[0], l = a.slice(1), u = 0, h = l; u < h.length; u++) {
|
|
926
924
|
var c = h[u];
|
|
927
925
|
if (c.length === 0)
|
|
928
926
|
throw new Error("Invalid number skeleton");
|
|
929
927
|
}
|
|
930
|
-
|
|
928
|
+
r.push({ stem: o, options: l });
|
|
931
929
|
}
|
|
932
|
-
return
|
|
930
|
+
return r;
|
|
933
931
|
}
|
|
934
|
-
function
|
|
932
|
+
function hn(e) {
|
|
935
933
|
return e.replace(/^(.*?)-/, "");
|
|
936
934
|
}
|
|
937
|
-
var
|
|
938
|
-
function
|
|
935
|
+
var st = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, jt = /^(@+)?(\+|#+)?[rs]?$/g, ln = /(\*)(0+)|(#+)(0+)|(0+)/g, kt = /^(0+)$/;
|
|
936
|
+
function ot(e) {
|
|
939
937
|
var t = {};
|
|
940
|
-
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(
|
|
941
|
-
return typeof i != "string" ? (t.minimumSignificantDigits =
|
|
938
|
+
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(jt, function(r, n, i) {
|
|
939
|
+
return typeof i != "string" ? (t.minimumSignificantDigits = n.length, t.maximumSignificantDigits = n.length) : i === "+" ? t.minimumSignificantDigits = n.length : n[0] === "#" ? t.maximumSignificantDigits = n.length : (t.minimumSignificantDigits = n.length, t.maximumSignificantDigits = n.length + (typeof i == "string" ? i.length : 0)), "";
|
|
942
940
|
}), t;
|
|
943
941
|
}
|
|
944
|
-
function
|
|
942
|
+
function Vt(e) {
|
|
945
943
|
switch (e) {
|
|
946
944
|
case "sign-auto":
|
|
947
945
|
return {
|
|
@@ -981,27 +979,27 @@ function kt(e) {
|
|
|
981
979
|
};
|
|
982
980
|
}
|
|
983
981
|
}
|
|
984
|
-
function
|
|
982
|
+
function fn(e) {
|
|
985
983
|
var t;
|
|
986
984
|
if (e[0] === "E" && e[1] === "E" ? (t = {
|
|
987
985
|
notation: "engineering"
|
|
988
986
|
}, e = e.slice(2)) : e[0] === "E" && (t = {
|
|
989
987
|
notation: "scientific"
|
|
990
988
|
}, e = e.slice(1)), t) {
|
|
991
|
-
var
|
|
992
|
-
if (
|
|
989
|
+
var r = e.slice(0, 2);
|
|
990
|
+
if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !kt.test(e))
|
|
993
991
|
throw new Error("Malformed concise eng/scientific notation");
|
|
994
992
|
t.minimumIntegerDigits = e.length;
|
|
995
993
|
}
|
|
996
994
|
return t;
|
|
997
995
|
}
|
|
998
|
-
function
|
|
999
|
-
var t = {},
|
|
1000
|
-
return
|
|
996
|
+
function at(e) {
|
|
997
|
+
var t = {}, r = Vt(e);
|
|
998
|
+
return r || t;
|
|
1001
999
|
}
|
|
1002
|
-
function
|
|
1003
|
-
for (var t = {},
|
|
1004
|
-
var i = r
|
|
1000
|
+
function cn(e) {
|
|
1001
|
+
for (var t = {}, r = 0, n = e; r < n.length; r++) {
|
|
1002
|
+
var i = n[r];
|
|
1005
1003
|
switch (i.stem) {
|
|
1006
1004
|
case "percent":
|
|
1007
1005
|
case "%":
|
|
@@ -1023,7 +1021,7 @@ function cr(e) {
|
|
|
1023
1021
|
continue;
|
|
1024
1022
|
case "measure-unit":
|
|
1025
1023
|
case "unit":
|
|
1026
|
-
t.style = "unit", t.unit =
|
|
1024
|
+
t.style = "unit", t.unit = hn(i.options[0]);
|
|
1027
1025
|
continue;
|
|
1028
1026
|
case "compact-short":
|
|
1029
1027
|
case "K":
|
|
@@ -1035,12 +1033,12 @@ function cr(e) {
|
|
|
1035
1033
|
continue;
|
|
1036
1034
|
case "scientific":
|
|
1037
1035
|
t = y(y(y({}, t), { notation: "scientific" }), i.options.reduce(function(l, u) {
|
|
1038
|
-
return y(y({}, l),
|
|
1036
|
+
return y(y({}, l), at(u));
|
|
1039
1037
|
}, {}));
|
|
1040
1038
|
continue;
|
|
1041
1039
|
case "engineering":
|
|
1042
1040
|
t = y(y(y({}, t), { notation: "engineering" }), i.options.reduce(function(l, u) {
|
|
1043
|
-
return y(y({}, l),
|
|
1041
|
+
return y(y({}, l), at(u));
|
|
1044
1042
|
}, {}));
|
|
1045
1043
|
continue;
|
|
1046
1044
|
case "notation-simple":
|
|
@@ -1085,7 +1083,7 @@ function cr(e) {
|
|
|
1085
1083
|
case "integer-width":
|
|
1086
1084
|
if (i.options.length > 1)
|
|
1087
1085
|
throw new RangeError("integer-width stems only accept a single optional option");
|
|
1088
|
-
i.options[0].replace(
|
|
1086
|
+
i.options[0].replace(ln, function(l, u, h, c, m, d) {
|
|
1089
1087
|
if (u)
|
|
1090
1088
|
t.minimumIntegerDigits = h.length;
|
|
1091
1089
|
else {
|
|
@@ -1098,28 +1096,28 @@ function cr(e) {
|
|
|
1098
1096
|
});
|
|
1099
1097
|
continue;
|
|
1100
1098
|
}
|
|
1101
|
-
if (
|
|
1099
|
+
if (kt.test(i.stem)) {
|
|
1102
1100
|
t.minimumIntegerDigits = i.stem.length;
|
|
1103
1101
|
continue;
|
|
1104
1102
|
}
|
|
1105
|
-
if (
|
|
1103
|
+
if (st.test(i.stem)) {
|
|
1106
1104
|
if (i.options.length > 1)
|
|
1107
1105
|
throw new RangeError("Fraction-precision stems only accept a single optional option");
|
|
1108
|
-
i.stem.replace(
|
|
1106
|
+
i.stem.replace(st, function(l, u, h, c, m, d) {
|
|
1109
1107
|
return h === "*" ? t.minimumFractionDigits = u.length : c && c[0] === "#" ? t.maximumFractionDigits = c.length : m && d ? (t.minimumFractionDigits = m.length, t.maximumFractionDigits = m.length + d.length) : (t.minimumFractionDigits = u.length, t.maximumFractionDigits = u.length), "";
|
|
1110
1108
|
});
|
|
1111
1109
|
var s = i.options[0];
|
|
1112
|
-
s === "w" ? t = y(y({}, t), { trailingZeroDisplay: "stripIfInteger" }) : s && (t = y(y({}, t),
|
|
1110
|
+
s === "w" ? t = y(y({}, t), { trailingZeroDisplay: "stripIfInteger" }) : s && (t = y(y({}, t), ot(s)));
|
|
1113
1111
|
continue;
|
|
1114
1112
|
}
|
|
1115
|
-
if (
|
|
1116
|
-
t = y(y({}, t),
|
|
1113
|
+
if (jt.test(i.stem)) {
|
|
1114
|
+
t = y(y({}, t), ot(i.stem));
|
|
1117
1115
|
continue;
|
|
1118
1116
|
}
|
|
1119
|
-
var
|
|
1120
|
-
o && (t = y(y({}, t), o));
|
|
1121
|
-
var a = fr(i.stem);
|
|
1117
|
+
var a = Vt(i.stem);
|
|
1122
1118
|
a && (t = y(y({}, t), a));
|
|
1119
|
+
var o = fn(i.stem);
|
|
1120
|
+
o && (t = y(y({}, t), o));
|
|
1123
1121
|
}
|
|
1124
1122
|
return t;
|
|
1125
1123
|
}
|
|
@@ -2538,23 +2536,23 @@ var se = {
|
|
|
2538
2536
|
"h"
|
|
2539
2537
|
]
|
|
2540
2538
|
};
|
|
2541
|
-
function
|
|
2542
|
-
for (var
|
|
2543
|
-
var i = e.charAt(
|
|
2539
|
+
function mn(e, t) {
|
|
2540
|
+
for (var r = "", n = 0; n < e.length; n++) {
|
|
2541
|
+
var i = e.charAt(n);
|
|
2544
2542
|
if (i === "j") {
|
|
2545
|
-
for (var s = 0;
|
|
2546
|
-
s++,
|
|
2547
|
-
var
|
|
2548
|
-
for ((u == "H" || u == "k") && (
|
|
2549
|
-
|
|
2550
|
-
for (;
|
|
2551
|
-
|
|
2543
|
+
for (var s = 0; n + 1 < e.length && e.charAt(n + 1) === i; )
|
|
2544
|
+
s++, n++;
|
|
2545
|
+
var a = 1 + (s & 1), o = s < 2 ? 1 : 3 + (s >> 1), l = "a", u = dn(t);
|
|
2546
|
+
for ((u == "H" || u == "k") && (o = 0); o-- > 0; )
|
|
2547
|
+
r += l;
|
|
2548
|
+
for (; a-- > 0; )
|
|
2549
|
+
r = u + r;
|
|
2552
2550
|
} else
|
|
2553
|
-
i === "J" ?
|
|
2551
|
+
i === "J" ? r += "H" : r += i;
|
|
2554
2552
|
}
|
|
2555
|
-
return
|
|
2553
|
+
return r;
|
|
2556
2554
|
}
|
|
2557
|
-
function
|
|
2555
|
+
function dn(e) {
|
|
2558
2556
|
var t = e.hourCycle;
|
|
2559
2557
|
if (t === void 0 && // @ts-ignore hourCycle(s) is not identified yet
|
|
2560
2558
|
e.hourCycles && // @ts-ignore
|
|
@@ -2571,73 +2569,73 @@ function dr(e) {
|
|
|
2571
2569
|
default:
|
|
2572
2570
|
throw new Error("Invalid hourCycle");
|
|
2573
2571
|
}
|
|
2574
|
-
var
|
|
2575
|
-
|
|
2576
|
-
var i = se[
|
|
2572
|
+
var r = e.language, n;
|
|
2573
|
+
r !== "root" && (n = e.maximize().region);
|
|
2574
|
+
var i = se[n || ""] || se[r || ""] || se["".concat(r, "-001")] || se["001"];
|
|
2577
2575
|
return i[0];
|
|
2578
2576
|
}
|
|
2579
|
-
var Oe,
|
|
2580
|
-
function
|
|
2577
|
+
var Oe, pn = new RegExp("^".concat(Ft.source, "*")), bn = new RegExp("".concat(Ft.source, "*$"));
|
|
2578
|
+
function b(e, t) {
|
|
2581
2579
|
return { start: e, end: t };
|
|
2582
2580
|
}
|
|
2583
|
-
var
|
|
2581
|
+
var gn = !!String.prototype.startsWith && "_a".startsWith("a", 1), _n = !!String.fromCodePoint, yn = !!Object.fromEntries, xn = !!String.prototype.codePointAt, En = !!String.prototype.trimStart, vn = !!String.prototype.trimEnd, Hn = !!Number.isSafeInteger, Bn = Hn ? Number.isSafeInteger : function(e) {
|
|
2584
2582
|
return typeof e == "number" && isFinite(e) && Math.floor(e) === e && Math.abs(e) <= 9007199254740991;
|
|
2585
2583
|
}, $e = !0;
|
|
2586
2584
|
try {
|
|
2587
|
-
var
|
|
2588
|
-
$e = ((Oe =
|
|
2585
|
+
var Tn = zt("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
2586
|
+
$e = ((Oe = Tn.exec("a")) === null || Oe === void 0 ? void 0 : Oe[0]) === "a";
|
|
2589
2587
|
} catch (e) {
|
|
2590
2588
|
$e = !1;
|
|
2591
2589
|
}
|
|
2592
|
-
var
|
|
2590
|
+
var ut = gn ? (
|
|
2593
2591
|
// Native
|
|
2594
|
-
function(t,
|
|
2595
|
-
return t.startsWith(
|
|
2592
|
+
function(t, r, n) {
|
|
2593
|
+
return t.startsWith(r, n);
|
|
2596
2594
|
}
|
|
2597
2595
|
) : (
|
|
2598
2596
|
// For IE11
|
|
2599
|
-
function(t,
|
|
2600
|
-
return t.slice(
|
|
2597
|
+
function(t, r, n) {
|
|
2598
|
+
return t.slice(n, n + r.length) === r;
|
|
2601
2599
|
}
|
|
2602
|
-
), Ue =
|
|
2600
|
+
), Ue = _n ? String.fromCodePoint : (
|
|
2603
2601
|
// IE11
|
|
2604
2602
|
function() {
|
|
2605
|
-
for (var t = [],
|
|
2606
|
-
t[
|
|
2607
|
-
for (var
|
|
2608
|
-
if (
|
|
2609
|
-
throw RangeError(
|
|
2610
|
-
|
|
2603
|
+
for (var t = [], r = 0; r < arguments.length; r++)
|
|
2604
|
+
t[r] = arguments[r];
|
|
2605
|
+
for (var n = "", i = t.length, s = 0, a; i > s; ) {
|
|
2606
|
+
if (a = t[s++], a > 1114111)
|
|
2607
|
+
throw RangeError(a + " is not a valid code point");
|
|
2608
|
+
n += a < 65536 ? String.fromCharCode(a) : String.fromCharCode(((a -= 65536) >> 10) + 55296, a % 1024 + 56320);
|
|
2611
2609
|
}
|
|
2612
|
-
return
|
|
2610
|
+
return n;
|
|
2613
2611
|
}
|
|
2614
|
-
),
|
|
2612
|
+
), ht = (
|
|
2615
2613
|
// native
|
|
2616
|
-
|
|
2614
|
+
yn ? Object.fromEntries : (
|
|
2617
2615
|
// Ponyfill
|
|
2618
2616
|
function(t) {
|
|
2619
|
-
for (var
|
|
2620
|
-
var s = i[
|
|
2621
|
-
|
|
2617
|
+
for (var r = {}, n = 0, i = t; n < i.length; n++) {
|
|
2618
|
+
var s = i[n], a = s[0], o = s[1];
|
|
2619
|
+
r[a] = o;
|
|
2622
2620
|
}
|
|
2623
|
-
return
|
|
2621
|
+
return r;
|
|
2624
2622
|
}
|
|
2625
2623
|
)
|
|
2626
|
-
),
|
|
2624
|
+
), Xt = xn ? (
|
|
2627
2625
|
// Native
|
|
2628
|
-
function(t,
|
|
2629
|
-
return t.codePointAt(
|
|
2626
|
+
function(t, r) {
|
|
2627
|
+
return t.codePointAt(r);
|
|
2630
2628
|
}
|
|
2631
2629
|
) : (
|
|
2632
2630
|
// IE 11
|
|
2633
|
-
function(t,
|
|
2634
|
-
var
|
|
2635
|
-
if (!(
|
|
2636
|
-
var i = t.charCodeAt(
|
|
2637
|
-
return i < 55296 || i > 56319 ||
|
|
2631
|
+
function(t, r) {
|
|
2632
|
+
var n = t.length;
|
|
2633
|
+
if (!(r < 0 || r >= n)) {
|
|
2634
|
+
var i = t.charCodeAt(r), s;
|
|
2635
|
+
return i < 55296 || i > 56319 || r + 1 === n || (s = t.charCodeAt(r + 1)) < 56320 || s > 57343 ? i : (i - 55296 << 10) + (s - 56320) + 65536;
|
|
2638
2636
|
}
|
|
2639
2637
|
}
|
|
2640
|
-
),
|
|
2638
|
+
), wn = En ? (
|
|
2641
2639
|
// Native
|
|
2642
2640
|
function(t) {
|
|
2643
2641
|
return t.trimStart();
|
|
@@ -2645,9 +2643,9 @@ var at = gr ? (
|
|
|
2645
2643
|
) : (
|
|
2646
2644
|
// Ponyfill
|
|
2647
2645
|
function(t) {
|
|
2648
|
-
return t.replace(
|
|
2646
|
+
return t.replace(pn, "");
|
|
2649
2647
|
}
|
|
2650
|
-
),
|
|
2648
|
+
), Sn = vn ? (
|
|
2651
2649
|
// Native
|
|
2652
2650
|
function(t) {
|
|
2653
2651
|
return t.trimEnd();
|
|
@@ -2655,78 +2653,78 @@ var at = gr ? (
|
|
|
2655
2653
|
) : (
|
|
2656
2654
|
// Ponyfill
|
|
2657
2655
|
function(t) {
|
|
2658
|
-
return t.replace(
|
|
2656
|
+
return t.replace(bn, "");
|
|
2659
2657
|
}
|
|
2660
2658
|
);
|
|
2661
|
-
function
|
|
2659
|
+
function zt(e, t) {
|
|
2662
2660
|
return new RegExp(e, t);
|
|
2663
2661
|
}
|
|
2664
2662
|
var De;
|
|
2665
2663
|
if ($e) {
|
|
2666
|
-
var
|
|
2667
|
-
De = function(t,
|
|
2668
|
-
var
|
|
2669
|
-
|
|
2670
|
-
var i =
|
|
2671
|
-
return (
|
|
2664
|
+
var lt = zt("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
2665
|
+
De = function(t, r) {
|
|
2666
|
+
var n;
|
|
2667
|
+
lt.lastIndex = r;
|
|
2668
|
+
var i = lt.exec(t);
|
|
2669
|
+
return (n = i[1]) !== null && n !== void 0 ? n : "";
|
|
2672
2670
|
};
|
|
2673
2671
|
} else
|
|
2674
|
-
De = function(t,
|
|
2675
|
-
for (var
|
|
2676
|
-
var i =
|
|
2677
|
-
if (i === void 0 ||
|
|
2672
|
+
De = function(t, r) {
|
|
2673
|
+
for (var n = []; ; ) {
|
|
2674
|
+
var i = Xt(t, r);
|
|
2675
|
+
if (i === void 0 || Wt(i) || Cn(i))
|
|
2678
2676
|
break;
|
|
2679
|
-
|
|
2677
|
+
n.push(i), r += i >= 65536 ? 2 : 1;
|
|
2680
2678
|
}
|
|
2681
|
-
return Ue.apply(void 0,
|
|
2679
|
+
return Ue.apply(void 0, n);
|
|
2682
2680
|
};
|
|
2683
|
-
var
|
|
2681
|
+
var An = (
|
|
2684
2682
|
/** @class */
|
|
2685
2683
|
function() {
|
|
2686
|
-
function e(t,
|
|
2687
|
-
|
|
2684
|
+
function e(t, r) {
|
|
2685
|
+
r === void 0 && (r = {}), this.message = t, this.position = { offset: 0, line: 1, column: 1 }, this.ignoreTag = !!r.ignoreTag, this.locale = r.locale, this.requiresOtherClause = !!r.requiresOtherClause, this.shouldParseSkeletons = !!r.shouldParseSkeletons;
|
|
2688
2686
|
}
|
|
2689
2687
|
return e.prototype.parse = function() {
|
|
2690
2688
|
if (this.offset() !== 0)
|
|
2691
2689
|
throw Error("parser can only be used once");
|
|
2692
2690
|
return this.parseMessage(0, "", !1);
|
|
2693
|
-
}, e.prototype.parseMessage = function(t,
|
|
2691
|
+
}, e.prototype.parseMessage = function(t, r, n) {
|
|
2694
2692
|
for (var i = []; !this.isEOF(); ) {
|
|
2695
2693
|
var s = this.char();
|
|
2696
2694
|
if (s === 123) {
|
|
2697
|
-
var
|
|
2698
|
-
if (
|
|
2699
|
-
return
|
|
2700
|
-
i.push(
|
|
2695
|
+
var a = this.parseArgument(t, n);
|
|
2696
|
+
if (a.err)
|
|
2697
|
+
return a;
|
|
2698
|
+
i.push(a.val);
|
|
2701
2699
|
} else {
|
|
2702
2700
|
if (s === 125 && t > 0)
|
|
2703
2701
|
break;
|
|
2704
|
-
if (s === 35 && (
|
|
2705
|
-
var
|
|
2702
|
+
if (s === 35 && (r === "plural" || r === "selectordinal")) {
|
|
2703
|
+
var o = this.clonePosition();
|
|
2706
2704
|
this.bump(), i.push({
|
|
2707
2705
|
type: x.pound,
|
|
2708
|
-
location:
|
|
2706
|
+
location: b(o, this.clonePosition())
|
|
2709
2707
|
});
|
|
2710
2708
|
} else if (s === 60 && !this.ignoreTag && this.peek() === 47) {
|
|
2711
|
-
if (
|
|
2709
|
+
if (n)
|
|
2712
2710
|
break;
|
|
2713
|
-
return this.error(
|
|
2711
|
+
return this.error(p.UNMATCHED_CLOSING_TAG, b(this.clonePosition(), this.clonePosition()));
|
|
2714
2712
|
} else if (s === 60 && !this.ignoreTag && Ge(this.peek() || 0)) {
|
|
2715
|
-
var
|
|
2716
|
-
if (
|
|
2717
|
-
return
|
|
2718
|
-
i.push(
|
|
2713
|
+
var a = this.parseTag(t, r);
|
|
2714
|
+
if (a.err)
|
|
2715
|
+
return a;
|
|
2716
|
+
i.push(a.val);
|
|
2719
2717
|
} else {
|
|
2720
|
-
var
|
|
2721
|
-
if (
|
|
2722
|
-
return
|
|
2723
|
-
i.push(
|
|
2718
|
+
var a = this.parseLiteral(t, r);
|
|
2719
|
+
if (a.err)
|
|
2720
|
+
return a;
|
|
2721
|
+
i.push(a.val);
|
|
2724
2722
|
}
|
|
2725
2723
|
}
|
|
2726
2724
|
}
|
|
2727
2725
|
return { val: i, err: null };
|
|
2728
|
-
}, e.prototype.parseTag = function(t,
|
|
2729
|
-
var
|
|
2726
|
+
}, e.prototype.parseTag = function(t, r) {
|
|
2727
|
+
var n = this.clonePosition();
|
|
2730
2728
|
this.bump();
|
|
2731
2729
|
var i = this.parseTagName();
|
|
2732
2730
|
if (this.bumpSpace(), this.bumpIf("/>"))
|
|
@@ -2734,64 +2732,64 @@ var Ar = (
|
|
|
2734
2732
|
val: {
|
|
2735
2733
|
type: x.literal,
|
|
2736
2734
|
value: "<".concat(i, "/>"),
|
|
2737
|
-
location:
|
|
2735
|
+
location: b(n, this.clonePosition())
|
|
2738
2736
|
},
|
|
2739
2737
|
err: null
|
|
2740
2738
|
};
|
|
2741
2739
|
if (this.bumpIf(">")) {
|
|
2742
|
-
var s = this.parseMessage(t + 1,
|
|
2740
|
+
var s = this.parseMessage(t + 1, r, !0);
|
|
2743
2741
|
if (s.err)
|
|
2744
2742
|
return s;
|
|
2745
|
-
var
|
|
2743
|
+
var a = s.val, o = this.clonePosition();
|
|
2746
2744
|
if (this.bumpIf("</")) {
|
|
2747
2745
|
if (this.isEOF() || !Ge(this.char()))
|
|
2748
|
-
return this.error(
|
|
2746
|
+
return this.error(p.INVALID_TAG, b(o, this.clonePosition()));
|
|
2749
2747
|
var l = this.clonePosition(), u = this.parseTagName();
|
|
2750
|
-
return i !== u ? this.error(
|
|
2748
|
+
return i !== u ? this.error(p.UNMATCHED_CLOSING_TAG, b(l, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
|
|
2751
2749
|
val: {
|
|
2752
2750
|
type: x.tag,
|
|
2753
2751
|
value: i,
|
|
2754
|
-
children:
|
|
2755
|
-
location:
|
|
2752
|
+
children: a,
|
|
2753
|
+
location: b(n, this.clonePosition())
|
|
2756
2754
|
},
|
|
2757
2755
|
err: null
|
|
2758
|
-
} : this.error(
|
|
2756
|
+
} : this.error(p.INVALID_TAG, b(o, this.clonePosition())));
|
|
2759
2757
|
} else
|
|
2760
|
-
return this.error(
|
|
2758
|
+
return this.error(p.UNCLOSED_TAG, b(n, this.clonePosition()));
|
|
2761
2759
|
} else
|
|
2762
|
-
return this.error(
|
|
2760
|
+
return this.error(p.INVALID_TAG, b(n, this.clonePosition()));
|
|
2763
2761
|
}, e.prototype.parseTagName = function() {
|
|
2764
2762
|
var t = this.offset();
|
|
2765
|
-
for (this.bump(); !this.isEOF() &&
|
|
2763
|
+
for (this.bump(); !this.isEOF() && Pn(this.char()); )
|
|
2766
2764
|
this.bump();
|
|
2767
2765
|
return this.message.slice(t, this.offset());
|
|
2768
|
-
}, e.prototype.parseLiteral = function(t,
|
|
2769
|
-
for (var
|
|
2770
|
-
var s = this.tryParseQuote(
|
|
2766
|
+
}, e.prototype.parseLiteral = function(t, r) {
|
|
2767
|
+
for (var n = this.clonePosition(), i = ""; ; ) {
|
|
2768
|
+
var s = this.tryParseQuote(r);
|
|
2771
2769
|
if (s) {
|
|
2772
2770
|
i += s;
|
|
2773
2771
|
continue;
|
|
2774
2772
|
}
|
|
2775
|
-
var
|
|
2776
|
-
if (o) {
|
|
2777
|
-
i += o;
|
|
2778
|
-
continue;
|
|
2779
|
-
}
|
|
2780
|
-
var a = this.tryParseLeftAngleBracket();
|
|
2773
|
+
var a = this.tryParseUnquoted(t, r);
|
|
2781
2774
|
if (a) {
|
|
2782
2775
|
i += a;
|
|
2783
2776
|
continue;
|
|
2784
2777
|
}
|
|
2778
|
+
var o = this.tryParseLeftAngleBracket();
|
|
2779
|
+
if (o) {
|
|
2780
|
+
i += o;
|
|
2781
|
+
continue;
|
|
2782
|
+
}
|
|
2785
2783
|
break;
|
|
2786
2784
|
}
|
|
2787
|
-
var l =
|
|
2785
|
+
var l = b(n, this.clonePosition());
|
|
2788
2786
|
return {
|
|
2789
2787
|
val: { type: x.literal, value: i, location: l },
|
|
2790
2788
|
err: null
|
|
2791
2789
|
};
|
|
2792
2790
|
}, e.prototype.tryParseLeftAngleBracket = function() {
|
|
2793
2791
|
return !this.isEOF() && this.char() === 60 && (this.ignoreTag || // If at the opening tag or closing tag position, bail.
|
|
2794
|
-
!
|
|
2792
|
+
!On(this.peek() || 0)) ? (this.bump(), "<") : null;
|
|
2795
2793
|
}, e.prototype.tryParseQuote = function(t) {
|
|
2796
2794
|
if (this.isEOF() || this.char() !== 39)
|
|
2797
2795
|
return null;
|
|
@@ -2811,37 +2809,37 @@ var Ar = (
|
|
|
2811
2809
|
return null;
|
|
2812
2810
|
}
|
|
2813
2811
|
this.bump();
|
|
2814
|
-
var
|
|
2812
|
+
var r = [this.char()];
|
|
2815
2813
|
for (this.bump(); !this.isEOF(); ) {
|
|
2816
|
-
var
|
|
2817
|
-
if (
|
|
2814
|
+
var n = this.char();
|
|
2815
|
+
if (n === 39)
|
|
2818
2816
|
if (this.peek() === 39)
|
|
2819
|
-
|
|
2817
|
+
r.push(39), this.bump();
|
|
2820
2818
|
else {
|
|
2821
2819
|
this.bump();
|
|
2822
2820
|
break;
|
|
2823
2821
|
}
|
|
2824
2822
|
else
|
|
2825
|
-
|
|
2823
|
+
r.push(n);
|
|
2826
2824
|
this.bump();
|
|
2827
2825
|
}
|
|
2828
|
-
return Ue.apply(void 0,
|
|
2829
|
-
}, e.prototype.tryParseUnquoted = function(t,
|
|
2826
|
+
return Ue.apply(void 0, r);
|
|
2827
|
+
}, e.prototype.tryParseUnquoted = function(t, r) {
|
|
2830
2828
|
if (this.isEOF())
|
|
2831
2829
|
return null;
|
|
2832
|
-
var
|
|
2833
|
-
return
|
|
2834
|
-
}, e.prototype.parseArgument = function(t,
|
|
2835
|
-
var
|
|
2830
|
+
var n = this.char();
|
|
2831
|
+
return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(), Ue(n));
|
|
2832
|
+
}, e.prototype.parseArgument = function(t, r) {
|
|
2833
|
+
var n = this.clonePosition();
|
|
2836
2834
|
if (this.bump(), this.bumpSpace(), this.isEOF())
|
|
2837
|
-
return this.error(
|
|
2835
|
+
return this.error(p.EXPECT_ARGUMENT_CLOSING_BRACE, b(n, this.clonePosition()));
|
|
2838
2836
|
if (this.char() === 125)
|
|
2839
|
-
return this.bump(), this.error(
|
|
2837
|
+
return this.bump(), this.error(p.EMPTY_ARGUMENT, b(n, this.clonePosition()));
|
|
2840
2838
|
var i = this.parseIdentifierIfPossible().value;
|
|
2841
2839
|
if (!i)
|
|
2842
|
-
return this.error(
|
|
2840
|
+
return this.error(p.MALFORMED_ARGUMENT, b(n, this.clonePosition()));
|
|
2843
2841
|
if (this.bumpSpace(), this.isEOF())
|
|
2844
|
-
return this.error(
|
|
2842
|
+
return this.error(p.EXPECT_ARGUMENT_CLOSING_BRACE, b(n, this.clonePosition()));
|
|
2845
2843
|
switch (this.char()) {
|
|
2846
2844
|
case 125:
|
|
2847
2845
|
return this.bump(), {
|
|
@@ -2849,25 +2847,25 @@ var Ar = (
|
|
|
2849
2847
|
type: x.argument,
|
|
2850
2848
|
// value does not include the opening and closing braces.
|
|
2851
2849
|
value: i,
|
|
2852
|
-
location:
|
|
2850
|
+
location: b(n, this.clonePosition())
|
|
2853
2851
|
},
|
|
2854
2852
|
err: null
|
|
2855
2853
|
};
|
|
2856
2854
|
case 44:
|
|
2857
|
-
return this.bump(), this.bumpSpace(), this.isEOF() ? this.error(
|
|
2855
|
+
return this.bump(), this.bumpSpace(), this.isEOF() ? this.error(p.EXPECT_ARGUMENT_CLOSING_BRACE, b(n, this.clonePosition())) : this.parseArgumentOptions(t, r, i, n);
|
|
2858
2856
|
default:
|
|
2859
|
-
return this.error(
|
|
2857
|
+
return this.error(p.MALFORMED_ARGUMENT, b(n, this.clonePosition()));
|
|
2860
2858
|
}
|
|
2861
2859
|
}, e.prototype.parseIdentifierIfPossible = function() {
|
|
2862
|
-
var t = this.clonePosition(),
|
|
2860
|
+
var t = this.clonePosition(), r = this.offset(), n = De(this.message, r), i = r + n.length;
|
|
2863
2861
|
this.bumpTo(i);
|
|
2864
|
-
var s = this.clonePosition(),
|
|
2865
|
-
return { value:
|
|
2866
|
-
}, e.prototype.parseArgumentOptions = function(t,
|
|
2867
|
-
var s,
|
|
2868
|
-
switch (
|
|
2862
|
+
var s = this.clonePosition(), a = b(t, s);
|
|
2863
|
+
return { value: n, location: a };
|
|
2864
|
+
}, e.prototype.parseArgumentOptions = function(t, r, n, i) {
|
|
2865
|
+
var s, a = this.clonePosition(), o = this.parseIdentifierIfPossible().value, l = this.clonePosition();
|
|
2866
|
+
switch (o) {
|
|
2869
2867
|
case "":
|
|
2870
|
-
return this.error(
|
|
2868
|
+
return this.error(p.EXPECT_ARGUMENT_TYPE, b(a, l));
|
|
2871
2869
|
case "number":
|
|
2872
2870
|
case "date":
|
|
2873
2871
|
case "time": {
|
|
@@ -2878,45 +2876,45 @@ var Ar = (
|
|
|
2878
2876
|
var h = this.clonePosition(), c = this.parseSimpleArgStyleIfPossible();
|
|
2879
2877
|
if (c.err)
|
|
2880
2878
|
return c;
|
|
2881
|
-
var m =
|
|
2879
|
+
var m = Sn(c.val);
|
|
2882
2880
|
if (m.length === 0)
|
|
2883
|
-
return this.error(
|
|
2884
|
-
var d =
|
|
2881
|
+
return this.error(p.EXPECT_ARGUMENT_STYLE, b(this.clonePosition(), this.clonePosition()));
|
|
2882
|
+
var d = b(h, this.clonePosition());
|
|
2885
2883
|
u = { style: m, styleLocation: d };
|
|
2886
2884
|
}
|
|
2887
2885
|
var f = this.tryParseArgumentClose(i);
|
|
2888
2886
|
if (f.err)
|
|
2889
2887
|
return f;
|
|
2890
|
-
var _ =
|
|
2891
|
-
if (u &&
|
|
2892
|
-
var v =
|
|
2893
|
-
if (
|
|
2888
|
+
var _ = b(i, this.clonePosition());
|
|
2889
|
+
if (u && ut(u == null ? void 0 : u.style, "::", 0)) {
|
|
2890
|
+
var v = wn(u.style.slice(2));
|
|
2891
|
+
if (o === "number") {
|
|
2894
2892
|
var c = this.parseNumberSkeletonFromString(v, u.styleLocation);
|
|
2895
2893
|
return c.err ? c : {
|
|
2896
|
-
val: { type: x.number, value:
|
|
2894
|
+
val: { type: x.number, value: n, location: _, style: c.val },
|
|
2897
2895
|
err: null
|
|
2898
2896
|
};
|
|
2899
2897
|
} else {
|
|
2900
2898
|
if (v.length === 0)
|
|
2901
|
-
return this.error(
|
|
2899
|
+
return this.error(p.EXPECT_DATE_TIME_SKELETON, _);
|
|
2902
2900
|
var A = v;
|
|
2903
|
-
this.locale && (A =
|
|
2901
|
+
this.locale && (A = mn(v, this.locale));
|
|
2904
2902
|
var m = {
|
|
2905
2903
|
type: j.dateTime,
|
|
2906
2904
|
pattern: A,
|
|
2907
2905
|
location: u.styleLocation,
|
|
2908
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
2909
|
-
}, O =
|
|
2906
|
+
parsedOptions: this.shouldParseSkeletons ? on(A) : {}
|
|
2907
|
+
}, O = o === "date" ? x.date : x.time;
|
|
2910
2908
|
return {
|
|
2911
|
-
val: { type: O, value:
|
|
2909
|
+
val: { type: O, value: n, location: _, style: m },
|
|
2912
2910
|
err: null
|
|
2913
2911
|
};
|
|
2914
2912
|
}
|
|
2915
2913
|
}
|
|
2916
2914
|
return {
|
|
2917
2915
|
val: {
|
|
2918
|
-
type:
|
|
2919
|
-
value:
|
|
2916
|
+
type: o === "number" ? x.number : o === "date" ? x.date : x.time,
|
|
2917
|
+
value: n,
|
|
2920
2918
|
location: _,
|
|
2921
2919
|
style: (s = u == null ? void 0 : u.style) !== null && s !== void 0 ? s : null
|
|
2922
2920
|
},
|
|
@@ -2928,59 +2926,59 @@ var Ar = (
|
|
|
2928
2926
|
case "select": {
|
|
2929
2927
|
var H = this.clonePosition();
|
|
2930
2928
|
if (this.bumpSpace(), !this.bumpIf(","))
|
|
2931
|
-
return this.error(
|
|
2929
|
+
return this.error(p.EXPECT_SELECT_ARGUMENT_OPTIONS, b(H, y({}, H)));
|
|
2932
2930
|
this.bumpSpace();
|
|
2933
2931
|
var N = this.parseIdentifierIfPossible(), S = 0;
|
|
2934
|
-
if (
|
|
2932
|
+
if (o !== "select" && N.value === "offset") {
|
|
2935
2933
|
if (!this.bumpIf(":"))
|
|
2936
|
-
return this.error(
|
|
2934
|
+
return this.error(p.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, b(this.clonePosition(), this.clonePosition()));
|
|
2937
2935
|
this.bumpSpace();
|
|
2938
|
-
var c = this.tryParseDecimalInteger(
|
|
2936
|
+
var c = this.tryParseDecimalInteger(p.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, p.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);
|
|
2939
2937
|
if (c.err)
|
|
2940
2938
|
return c;
|
|
2941
2939
|
this.bumpSpace(), N = this.parseIdentifierIfPossible(), S = c.val;
|
|
2942
2940
|
}
|
|
2943
|
-
var R = this.tryParsePluralOrSelectOptions(t,
|
|
2941
|
+
var R = this.tryParsePluralOrSelectOptions(t, o, r, N);
|
|
2944
2942
|
if (R.err)
|
|
2945
2943
|
return R;
|
|
2946
2944
|
var f = this.tryParseArgumentClose(i);
|
|
2947
2945
|
if (f.err)
|
|
2948
2946
|
return f;
|
|
2949
|
-
var ie =
|
|
2950
|
-
return
|
|
2947
|
+
var ie = b(i, this.clonePosition());
|
|
2948
|
+
return o === "select" ? {
|
|
2951
2949
|
val: {
|
|
2952
2950
|
type: x.select,
|
|
2953
|
-
value:
|
|
2954
|
-
options:
|
|
2951
|
+
value: n,
|
|
2952
|
+
options: ht(R.val),
|
|
2955
2953
|
location: ie
|
|
2956
2954
|
},
|
|
2957
2955
|
err: null
|
|
2958
2956
|
} : {
|
|
2959
2957
|
val: {
|
|
2960
2958
|
type: x.plural,
|
|
2961
|
-
value:
|
|
2962
|
-
options:
|
|
2959
|
+
value: n,
|
|
2960
|
+
options: ht(R.val),
|
|
2963
2961
|
offset: S,
|
|
2964
|
-
pluralType:
|
|
2962
|
+
pluralType: o === "plural" ? "cardinal" : "ordinal",
|
|
2965
2963
|
location: ie
|
|
2966
2964
|
},
|
|
2967
2965
|
err: null
|
|
2968
2966
|
};
|
|
2969
2967
|
}
|
|
2970
2968
|
default:
|
|
2971
|
-
return this.error(
|
|
2969
|
+
return this.error(p.INVALID_ARGUMENT_TYPE, b(a, l));
|
|
2972
2970
|
}
|
|
2973
2971
|
}, e.prototype.tryParseArgumentClose = function(t) {
|
|
2974
|
-
return this.isEOF() || this.char() !== 125 ? this.error(
|
|
2972
|
+
return this.isEOF() || this.char() !== 125 ? this.error(p.EXPECT_ARGUMENT_CLOSING_BRACE, b(t, this.clonePosition())) : (this.bump(), { val: !0, err: null });
|
|
2975
2973
|
}, e.prototype.parseSimpleArgStyleIfPossible = function() {
|
|
2976
|
-
for (var t = 0,
|
|
2977
|
-
var
|
|
2978
|
-
switch (
|
|
2974
|
+
for (var t = 0, r = this.clonePosition(); !this.isEOF(); ) {
|
|
2975
|
+
var n = this.char();
|
|
2976
|
+
switch (n) {
|
|
2979
2977
|
case 39: {
|
|
2980
2978
|
this.bump();
|
|
2981
2979
|
var i = this.clonePosition();
|
|
2982
2980
|
if (!this.bumpUntil("'"))
|
|
2983
|
-
return this.error(
|
|
2981
|
+
return this.error(p.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE, b(i, this.clonePosition()));
|
|
2984
2982
|
this.bump();
|
|
2985
2983
|
break;
|
|
2986
2984
|
}
|
|
@@ -2993,7 +2991,7 @@ var Ar = (
|
|
|
2993
2991
|
t -= 1;
|
|
2994
2992
|
else
|
|
2995
2993
|
return {
|
|
2996
|
-
val: this.message.slice(
|
|
2994
|
+
val: this.message.slice(r.offset, this.offset()),
|
|
2997
2995
|
err: null
|
|
2998
2996
|
};
|
|
2999
2997
|
break;
|
|
@@ -3004,70 +3002,70 @@ var Ar = (
|
|
|
3004
3002
|
}
|
|
3005
3003
|
}
|
|
3006
3004
|
return {
|
|
3007
|
-
val: this.message.slice(
|
|
3005
|
+
val: this.message.slice(r.offset, this.offset()),
|
|
3008
3006
|
err: null
|
|
3009
3007
|
};
|
|
3010
|
-
}, e.prototype.parseNumberSkeletonFromString = function(t,
|
|
3011
|
-
var
|
|
3008
|
+
}, e.prototype.parseNumberSkeletonFromString = function(t, r) {
|
|
3009
|
+
var n = [];
|
|
3012
3010
|
try {
|
|
3013
|
-
|
|
3011
|
+
n = un(t);
|
|
3014
3012
|
} catch (i) {
|
|
3015
|
-
return this.error(
|
|
3013
|
+
return this.error(p.INVALID_NUMBER_SKELETON, r);
|
|
3016
3014
|
}
|
|
3017
3015
|
return {
|
|
3018
3016
|
val: {
|
|
3019
3017
|
type: j.number,
|
|
3020
|
-
tokens:
|
|
3021
|
-
location:
|
|
3022
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
3018
|
+
tokens: n,
|
|
3019
|
+
location: r,
|
|
3020
|
+
parsedOptions: this.shouldParseSkeletons ? cn(n) : {}
|
|
3023
3021
|
},
|
|
3024
3022
|
err: null
|
|
3025
3023
|
};
|
|
3026
|
-
}, e.prototype.tryParsePluralOrSelectOptions = function(t,
|
|
3027
|
-
for (var s,
|
|
3024
|
+
}, e.prototype.tryParsePluralOrSelectOptions = function(t, r, n, i) {
|
|
3025
|
+
for (var s, a = !1, o = [], l = /* @__PURE__ */ new Set(), u = i.value, h = i.location; ; ) {
|
|
3028
3026
|
if (u.length === 0) {
|
|
3029
3027
|
var c = this.clonePosition();
|
|
3030
|
-
if (
|
|
3031
|
-
var m = this.tryParseDecimalInteger(
|
|
3028
|
+
if (r !== "select" && this.bumpIf("=")) {
|
|
3029
|
+
var m = this.tryParseDecimalInteger(p.EXPECT_PLURAL_ARGUMENT_SELECTOR, p.INVALID_PLURAL_ARGUMENT_SELECTOR);
|
|
3032
3030
|
if (m.err)
|
|
3033
3031
|
return m;
|
|
3034
|
-
h =
|
|
3032
|
+
h = b(c, this.clonePosition()), u = this.message.slice(c.offset, this.offset());
|
|
3035
3033
|
} else
|
|
3036
3034
|
break;
|
|
3037
3035
|
}
|
|
3038
3036
|
if (l.has(u))
|
|
3039
|
-
return this.error(
|
|
3040
|
-
u === "other" && (
|
|
3037
|
+
return this.error(r === "select" ? p.DUPLICATE_SELECT_ARGUMENT_SELECTOR : p.DUPLICATE_PLURAL_ARGUMENT_SELECTOR, h);
|
|
3038
|
+
u === "other" && (a = !0), this.bumpSpace();
|
|
3041
3039
|
var d = this.clonePosition();
|
|
3042
3040
|
if (!this.bumpIf("{"))
|
|
3043
|
-
return this.error(
|
|
3044
|
-
var f = this.parseMessage(t + 1,
|
|
3041
|
+
return this.error(r === "select" ? p.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT : p.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT, b(this.clonePosition(), this.clonePosition()));
|
|
3042
|
+
var f = this.parseMessage(t + 1, r, n);
|
|
3045
3043
|
if (f.err)
|
|
3046
3044
|
return f;
|
|
3047
3045
|
var _ = this.tryParseArgumentClose(d);
|
|
3048
3046
|
if (_.err)
|
|
3049
3047
|
return _;
|
|
3050
|
-
|
|
3048
|
+
o.push([
|
|
3051
3049
|
u,
|
|
3052
3050
|
{
|
|
3053
3051
|
value: f.val,
|
|
3054
|
-
location:
|
|
3052
|
+
location: b(d, this.clonePosition())
|
|
3055
3053
|
}
|
|
3056
3054
|
]), l.add(u), this.bumpSpace(), s = this.parseIdentifierIfPossible(), u = s.value, h = s.location;
|
|
3057
3055
|
}
|
|
3058
|
-
return
|
|
3059
|
-
}, e.prototype.tryParseDecimalInteger = function(t,
|
|
3060
|
-
var
|
|
3061
|
-
this.bumpIf("+") || this.bumpIf("-") && (
|
|
3062
|
-
for (var s = !1,
|
|
3063
|
-
var
|
|
3064
|
-
if (
|
|
3065
|
-
s = !0,
|
|
3056
|
+
return o.length === 0 ? this.error(r === "select" ? p.EXPECT_SELECT_ARGUMENT_SELECTOR : p.EXPECT_PLURAL_ARGUMENT_SELECTOR, b(this.clonePosition(), this.clonePosition())) : this.requiresOtherClause && !a ? this.error(p.MISSING_OTHER_CLAUSE, b(this.clonePosition(), this.clonePosition())) : { val: o, err: null };
|
|
3057
|
+
}, e.prototype.tryParseDecimalInteger = function(t, r) {
|
|
3058
|
+
var n = 1, i = this.clonePosition();
|
|
3059
|
+
this.bumpIf("+") || this.bumpIf("-") && (n = -1);
|
|
3060
|
+
for (var s = !1, a = 0; !this.isEOF(); ) {
|
|
3061
|
+
var o = this.char();
|
|
3062
|
+
if (o >= 48 && o <= 57)
|
|
3063
|
+
s = !0, a = a * 10 + (o - 48), this.bump();
|
|
3066
3064
|
else
|
|
3067
3065
|
break;
|
|
3068
3066
|
}
|
|
3069
|
-
var l =
|
|
3070
|
-
return s ? (
|
|
3067
|
+
var l = b(i, this.clonePosition());
|
|
3068
|
+
return s ? (a *= n, Bn(a) ? { val: a, err: null } : this.error(r, l)) : this.error(t, l);
|
|
3071
3069
|
}, e.prototype.offset = function() {
|
|
3072
3070
|
return this.position.offset;
|
|
3073
3071
|
}, e.prototype.isEOF = function() {
|
|
@@ -3082,17 +3080,17 @@ var Ar = (
|
|
|
3082
3080
|
var t = this.position.offset;
|
|
3083
3081
|
if (t >= this.message.length)
|
|
3084
3082
|
throw Error("out of bound");
|
|
3085
|
-
var
|
|
3086
|
-
if (
|
|
3083
|
+
var r = Xt(this.message, t);
|
|
3084
|
+
if (r === void 0)
|
|
3087
3085
|
throw Error("Offset ".concat(t, " is at invalid UTF-16 code unit boundary"));
|
|
3088
|
-
return
|
|
3089
|
-
}, e.prototype.error = function(t,
|
|
3086
|
+
return r;
|
|
3087
|
+
}, e.prototype.error = function(t, r) {
|
|
3090
3088
|
return {
|
|
3091
3089
|
val: null,
|
|
3092
3090
|
err: {
|
|
3093
3091
|
kind: t,
|
|
3094
3092
|
message: this.message,
|
|
3095
|
-
location:
|
|
3093
|
+
location: r
|
|
3096
3094
|
}
|
|
3097
3095
|
};
|
|
3098
3096
|
}, e.prototype.bump = function() {
|
|
@@ -3101,70 +3099,70 @@ var Ar = (
|
|
|
3101
3099
|
t === 10 ? (this.position.line += 1, this.position.column = 1, this.position.offset += 1) : (this.position.column += 1, this.position.offset += t < 65536 ? 1 : 2);
|
|
3102
3100
|
}
|
|
3103
3101
|
}, e.prototype.bumpIf = function(t) {
|
|
3104
|
-
if (
|
|
3105
|
-
for (var
|
|
3102
|
+
if (ut(this.message, t, this.offset())) {
|
|
3103
|
+
for (var r = 0; r < t.length; r++)
|
|
3106
3104
|
this.bump();
|
|
3107
3105
|
return !0;
|
|
3108
3106
|
}
|
|
3109
3107
|
return !1;
|
|
3110
3108
|
}, e.prototype.bumpUntil = function(t) {
|
|
3111
|
-
var
|
|
3112
|
-
return
|
|
3109
|
+
var r = this.offset(), n = this.message.indexOf(t, r);
|
|
3110
|
+
return n >= 0 ? (this.bumpTo(n), !0) : (this.bumpTo(this.message.length), !1);
|
|
3113
3111
|
}, e.prototype.bumpTo = function(t) {
|
|
3114
3112
|
if (this.offset() > t)
|
|
3115
3113
|
throw Error("targetOffset ".concat(t, " must be greater than or equal to the current offset ").concat(this.offset()));
|
|
3116
3114
|
for (t = Math.min(t, this.message.length); ; ) {
|
|
3117
|
-
var
|
|
3118
|
-
if (
|
|
3115
|
+
var r = this.offset();
|
|
3116
|
+
if (r === t)
|
|
3119
3117
|
break;
|
|
3120
|
-
if (
|
|
3118
|
+
if (r > t)
|
|
3121
3119
|
throw Error("targetOffset ".concat(t, " is at invalid UTF-16 code unit boundary"));
|
|
3122
3120
|
if (this.bump(), this.isEOF())
|
|
3123
3121
|
break;
|
|
3124
3122
|
}
|
|
3125
3123
|
}, e.prototype.bumpSpace = function() {
|
|
3126
|
-
for (; !this.isEOF() &&
|
|
3124
|
+
for (; !this.isEOF() && Wt(this.char()); )
|
|
3127
3125
|
this.bump();
|
|
3128
3126
|
}, e.prototype.peek = function() {
|
|
3129
3127
|
if (this.isEOF())
|
|
3130
3128
|
return null;
|
|
3131
|
-
var t = this.char(),
|
|
3132
|
-
return
|
|
3129
|
+
var t = this.char(), r = this.offset(), n = this.message.charCodeAt(r + (t >= 65536 ? 2 : 1));
|
|
3130
|
+
return n != null ? n : null;
|
|
3133
3131
|
}, e;
|
|
3134
3132
|
}()
|
|
3135
3133
|
);
|
|
3136
3134
|
function Ge(e) {
|
|
3137
3135
|
return e >= 97 && e <= 122 || e >= 65 && e <= 90;
|
|
3138
3136
|
}
|
|
3139
|
-
function
|
|
3137
|
+
function On(e) {
|
|
3140
3138
|
return Ge(e) || e === 47;
|
|
3141
3139
|
}
|
|
3142
|
-
function
|
|
3140
|
+
function Pn(e) {
|
|
3143
3141
|
return e === 45 || e === 46 || e >= 48 && e <= 57 || e === 95 || e >= 97 && e <= 122 || e >= 65 && e <= 90 || e == 183 || e >= 192 && e <= 214 || e >= 216 && e <= 246 || e >= 248 && e <= 893 || e >= 895 && e <= 8191 || e >= 8204 && e <= 8205 || e >= 8255 && e <= 8256 || e >= 8304 && e <= 8591 || e >= 11264 && e <= 12271 || e >= 12289 && e <= 55295 || e >= 63744 && e <= 64975 || e >= 65008 && e <= 65533 || e >= 65536 && e <= 983039;
|
|
3144
3142
|
}
|
|
3145
|
-
function
|
|
3143
|
+
function Wt(e) {
|
|
3146
3144
|
return e >= 9 && e <= 13 || e === 32 || e === 133 || e >= 8206 && e <= 8207 || e === 8232 || e === 8233;
|
|
3147
3145
|
}
|
|
3148
|
-
function
|
|
3146
|
+
function Cn(e) {
|
|
3149
3147
|
return e >= 33 && e <= 35 || e === 36 || e >= 37 && e <= 39 || e === 40 || e === 41 || e === 42 || e === 43 || e === 44 || e === 45 || e >= 46 && e <= 47 || e >= 58 && e <= 59 || e >= 60 && e <= 62 || e >= 63 && e <= 64 || e === 91 || e === 92 || e === 93 || e === 94 || e === 96 || e === 123 || e === 124 || e === 125 || e === 126 || e === 161 || e >= 162 && e <= 165 || e === 166 || e === 167 || e === 169 || e === 171 || e === 172 || e === 174 || e === 176 || e === 177 || e === 182 || e === 187 || e === 191 || e === 215 || e === 247 || e >= 8208 && e <= 8213 || e >= 8214 && e <= 8215 || e === 8216 || e === 8217 || e === 8218 || e >= 8219 && e <= 8220 || e === 8221 || e === 8222 || e === 8223 || e >= 8224 && e <= 8231 || e >= 8240 && e <= 8248 || e === 8249 || e === 8250 || e >= 8251 && e <= 8254 || e >= 8257 && e <= 8259 || e === 8260 || e === 8261 || e === 8262 || e >= 8263 && e <= 8273 || e === 8274 || e === 8275 || e >= 8277 && e <= 8286 || e >= 8592 && e <= 8596 || e >= 8597 && e <= 8601 || e >= 8602 && e <= 8603 || e >= 8604 && e <= 8607 || e === 8608 || e >= 8609 && e <= 8610 || e === 8611 || e >= 8612 && e <= 8613 || e === 8614 || e >= 8615 && e <= 8621 || e === 8622 || e >= 8623 && e <= 8653 || e >= 8654 && e <= 8655 || e >= 8656 && e <= 8657 || e === 8658 || e === 8659 || e === 8660 || e >= 8661 && e <= 8691 || e >= 8692 && e <= 8959 || e >= 8960 && e <= 8967 || e === 8968 || e === 8969 || e === 8970 || e === 8971 || e >= 8972 && e <= 8991 || e >= 8992 && e <= 8993 || e >= 8994 && e <= 9e3 || e === 9001 || e === 9002 || e >= 9003 && e <= 9083 || e === 9084 || e >= 9085 && e <= 9114 || e >= 9115 && e <= 9139 || e >= 9140 && e <= 9179 || e >= 9180 && e <= 9185 || e >= 9186 && e <= 9254 || e >= 9255 && e <= 9279 || e >= 9280 && e <= 9290 || e >= 9291 && e <= 9311 || e >= 9472 && e <= 9654 || e === 9655 || e >= 9656 && e <= 9664 || e === 9665 || e >= 9666 && e <= 9719 || e >= 9720 && e <= 9727 || e >= 9728 && e <= 9838 || e === 9839 || e >= 9840 && e <= 10087 || e === 10088 || e === 10089 || e === 10090 || e === 10091 || e === 10092 || e === 10093 || e === 10094 || e === 10095 || e === 10096 || e === 10097 || e === 10098 || e === 10099 || e === 10100 || e === 10101 || e >= 10132 && e <= 10175 || e >= 10176 && e <= 10180 || e === 10181 || e === 10182 || e >= 10183 && e <= 10213 || e === 10214 || e === 10215 || e === 10216 || e === 10217 || e === 10218 || e === 10219 || e === 10220 || e === 10221 || e === 10222 || e === 10223 || e >= 10224 && e <= 10239 || e >= 10240 && e <= 10495 || e >= 10496 && e <= 10626 || e === 10627 || e === 10628 || e === 10629 || e === 10630 || e === 10631 || e === 10632 || e === 10633 || e === 10634 || e === 10635 || e === 10636 || e === 10637 || e === 10638 || e === 10639 || e === 10640 || e === 10641 || e === 10642 || e === 10643 || e === 10644 || e === 10645 || e === 10646 || e === 10647 || e === 10648 || e >= 10649 && e <= 10711 || e === 10712 || e === 10713 || e === 10714 || e === 10715 || e >= 10716 && e <= 10747 || e === 10748 || e === 10749 || e >= 10750 && e <= 11007 || e >= 11008 && e <= 11055 || e >= 11056 && e <= 11076 || e >= 11077 && e <= 11078 || e >= 11079 && e <= 11084 || e >= 11085 && e <= 11123 || e >= 11124 && e <= 11125 || e >= 11126 && e <= 11157 || e === 11158 || e >= 11159 && e <= 11263 || e >= 11776 && e <= 11777 || e === 11778 || e === 11779 || e === 11780 || e === 11781 || e >= 11782 && e <= 11784 || e === 11785 || e === 11786 || e === 11787 || e === 11788 || e === 11789 || e >= 11790 && e <= 11798 || e === 11799 || e >= 11800 && e <= 11801 || e === 11802 || e === 11803 || e === 11804 || e === 11805 || e >= 11806 && e <= 11807 || e === 11808 || e === 11809 || e === 11810 || e === 11811 || e === 11812 || e === 11813 || e === 11814 || e === 11815 || e === 11816 || e === 11817 || e >= 11818 && e <= 11822 || e === 11823 || e >= 11824 && e <= 11833 || e >= 11834 && e <= 11835 || e >= 11836 && e <= 11839 || e === 11840 || e === 11841 || e === 11842 || e >= 11843 && e <= 11855 || e >= 11856 && e <= 11857 || e === 11858 || e >= 11859 && e <= 11903 || e >= 12289 && e <= 12291 || e === 12296 || e === 12297 || e === 12298 || e === 12299 || e === 12300 || e === 12301 || e === 12302 || e === 12303 || e === 12304 || e === 12305 || e >= 12306 && e <= 12307 || e === 12308 || e === 12309 || e === 12310 || e === 12311 || e === 12312 || e === 12313 || e === 12314 || e === 12315 || e === 12316 || e === 12317 || e >= 12318 && e <= 12319 || e === 12320 || e === 12336 || e === 64830 || e === 64831 || e >= 65093 && e <= 65094;
|
|
3150
3148
|
}
|
|
3151
3149
|
function Fe(e) {
|
|
3152
3150
|
e.forEach(function(t) {
|
|
3153
|
-
if (delete t.location,
|
|
3154
|
-
for (var
|
|
3155
|
-
delete t.options[
|
|
3151
|
+
if (delete t.location, $t(t) || Ut(t))
|
|
3152
|
+
for (var r in t.options)
|
|
3153
|
+
delete t.options[r].location, Fe(t.options[r].value);
|
|
3156
3154
|
else
|
|
3157
|
-
|
|
3155
|
+
It(t) && Gt(t.style) || (Mt(t) || Rt(t)) && Re(t.style) ? delete t.style.location : Dt(t) && Fe(t.children);
|
|
3158
3156
|
});
|
|
3159
3157
|
}
|
|
3160
|
-
function
|
|
3158
|
+
function Ln(e, t) {
|
|
3161
3159
|
t === void 0 && (t = {}), t = y({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
|
|
3162
|
-
var
|
|
3163
|
-
if (
|
|
3164
|
-
var
|
|
3165
|
-
throw
|
|
3160
|
+
var r = new An(e, t).parse();
|
|
3161
|
+
if (r.err) {
|
|
3162
|
+
var n = SyntaxError(p[r.err.kind]);
|
|
3163
|
+
throw n.location = r.err.location, n.originalMessage = r.err.message, n;
|
|
3166
3164
|
}
|
|
3167
|
-
return t != null && t.captureLocation || Fe(
|
|
3165
|
+
return t != null && t.captureLocation || Fe(r.val), r.val;
|
|
3168
3166
|
}
|
|
3169
3167
|
var k;
|
|
3170
3168
|
(function(e) {
|
|
@@ -3173,39 +3171,39 @@ var k;
|
|
|
3173
3171
|
var ge = (
|
|
3174
3172
|
/** @class */
|
|
3175
3173
|
function(e) {
|
|
3176
|
-
|
|
3177
|
-
function t(
|
|
3178
|
-
var s = e.call(this,
|
|
3179
|
-
return s.code =
|
|
3174
|
+
be(t, e);
|
|
3175
|
+
function t(r, n, i) {
|
|
3176
|
+
var s = e.call(this, r) || this;
|
|
3177
|
+
return s.code = n, s.originalMessage = i, s;
|
|
3180
3178
|
}
|
|
3181
3179
|
return t.prototype.toString = function() {
|
|
3182
3180
|
return "[formatjs Error: ".concat(this.code, "] ").concat(this.message);
|
|
3183
3181
|
}, t;
|
|
3184
3182
|
}(Error)
|
|
3185
|
-
),
|
|
3183
|
+
), ft = (
|
|
3186
3184
|
/** @class */
|
|
3187
3185
|
function(e) {
|
|
3188
|
-
|
|
3189
|
-
function t(
|
|
3190
|
-
return e.call(this, 'Invalid values for "'.concat(
|
|
3186
|
+
be(t, e);
|
|
3187
|
+
function t(r, n, i, s) {
|
|
3188
|
+
return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'), k.INVALID_VALUE, s) || this;
|
|
3191
3189
|
}
|
|
3192
3190
|
return t;
|
|
3193
3191
|
}(ge)
|
|
3194
|
-
),
|
|
3192
|
+
), Nn = (
|
|
3195
3193
|
/** @class */
|
|
3196
3194
|
function(e) {
|
|
3197
|
-
|
|
3198
|
-
function t(
|
|
3199
|
-
return e.call(this, 'Value for "'.concat(
|
|
3195
|
+
be(t, e);
|
|
3196
|
+
function t(r, n, i) {
|
|
3197
|
+
return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n), k.INVALID_VALUE, i) || this;
|
|
3200
3198
|
}
|
|
3201
3199
|
return t;
|
|
3202
3200
|
}(ge)
|
|
3203
|
-
),
|
|
3201
|
+
), In = (
|
|
3204
3202
|
/** @class */
|
|
3205
3203
|
function(e) {
|
|
3206
|
-
|
|
3207
|
-
function t(
|
|
3208
|
-
return e.call(this, 'The intl string context variable "'.concat(
|
|
3204
|
+
be(t, e);
|
|
3205
|
+
function t(r, n) {
|
|
3206
|
+
return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'), k.MISSING_VALUE, n) || this;
|
|
3209
3207
|
}
|
|
3210
3208
|
return t;
|
|
3211
3209
|
}(ge)
|
|
@@ -3213,121 +3211,121 @@ var ge = (
|
|
|
3213
3211
|
(function(e) {
|
|
3214
3212
|
e[e.literal = 0] = "literal", e[e.object = 1] = "object";
|
|
3215
3213
|
})(E || (E = {}));
|
|
3216
|
-
function
|
|
3217
|
-
return e.length < 2 ? e : e.reduce(function(t,
|
|
3218
|
-
var
|
|
3219
|
-
return !
|
|
3214
|
+
function Mn(e) {
|
|
3215
|
+
return e.length < 2 ? e : e.reduce(function(t, r) {
|
|
3216
|
+
var n = t[t.length - 1];
|
|
3217
|
+
return !n || n.type !== E.literal || r.type !== E.literal ? t.push(r) : n.value += r.value, t;
|
|
3220
3218
|
}, []);
|
|
3221
3219
|
}
|
|
3222
|
-
function
|
|
3220
|
+
function Rn(e) {
|
|
3223
3221
|
return typeof e == "function";
|
|
3224
3222
|
}
|
|
3225
|
-
function he(e, t,
|
|
3226
|
-
if (e.length === 1 &&
|
|
3223
|
+
function he(e, t, r, n, i, s, a) {
|
|
3224
|
+
if (e.length === 1 && it(e[0]))
|
|
3227
3225
|
return [
|
|
3228
3226
|
{
|
|
3229
3227
|
type: E.literal,
|
|
3230
3228
|
value: e[0].value
|
|
3231
3229
|
}
|
|
3232
3230
|
];
|
|
3233
|
-
for (var
|
|
3231
|
+
for (var o = [], l = 0, u = e; l < u.length; l++) {
|
|
3234
3232
|
var h = u[l];
|
|
3235
|
-
if (
|
|
3236
|
-
|
|
3233
|
+
if (it(h)) {
|
|
3234
|
+
o.push({
|
|
3237
3235
|
type: E.literal,
|
|
3238
3236
|
value: h.value
|
|
3239
3237
|
});
|
|
3240
3238
|
continue;
|
|
3241
3239
|
}
|
|
3242
|
-
if (
|
|
3243
|
-
typeof s == "number" &&
|
|
3240
|
+
if (nn(h)) {
|
|
3241
|
+
typeof s == "number" && o.push({
|
|
3244
3242
|
type: E.literal,
|
|
3245
|
-
value:
|
|
3243
|
+
value: r.getNumberFormat(t).format(s)
|
|
3246
3244
|
});
|
|
3247
3245
|
continue;
|
|
3248
3246
|
}
|
|
3249
3247
|
var c = h.value;
|
|
3250
3248
|
if (!(i && c in i))
|
|
3251
|
-
throw new
|
|
3249
|
+
throw new In(c, a);
|
|
3252
3250
|
var m = i[c];
|
|
3253
|
-
if (
|
|
3254
|
-
(!m || typeof m == "string" || typeof m == "number") && (m = typeof m == "string" || typeof m == "number" ? String(m) : ""),
|
|
3251
|
+
if (rn(h)) {
|
|
3252
|
+
(!m || typeof m == "string" || typeof m == "number") && (m = typeof m == "string" || typeof m == "number" ? String(m) : ""), o.push({
|
|
3255
3253
|
type: typeof m == "string" ? E.literal : E.object,
|
|
3256
3254
|
value: m
|
|
3257
3255
|
});
|
|
3258
3256
|
continue;
|
|
3259
3257
|
}
|
|
3260
|
-
if (
|
|
3261
|
-
var d = typeof h.style == "string" ?
|
|
3262
|
-
|
|
3258
|
+
if (Mt(h)) {
|
|
3259
|
+
var d = typeof h.style == "string" ? n.date[h.style] : Re(h.style) ? h.style.parsedOptions : void 0;
|
|
3260
|
+
o.push({
|
|
3263
3261
|
type: E.literal,
|
|
3264
|
-
value:
|
|
3262
|
+
value: r.getDateTimeFormat(t, d).format(m)
|
|
3265
3263
|
});
|
|
3266
3264
|
continue;
|
|
3267
3265
|
}
|
|
3268
|
-
if (
|
|
3269
|
-
var d = typeof h.style == "string" ?
|
|
3270
|
-
|
|
3266
|
+
if (Rt(h)) {
|
|
3267
|
+
var d = typeof h.style == "string" ? n.time[h.style] : Re(h.style) ? h.style.parsedOptions : n.time.medium;
|
|
3268
|
+
o.push({
|
|
3271
3269
|
type: E.literal,
|
|
3272
|
-
value:
|
|
3270
|
+
value: r.getDateTimeFormat(t, d).format(m)
|
|
3273
3271
|
});
|
|
3274
3272
|
continue;
|
|
3275
3273
|
}
|
|
3276
|
-
if (
|
|
3277
|
-
var d = typeof h.style == "string" ?
|
|
3278
|
-
d && d.scale && (m = m * (d.scale || 1)),
|
|
3274
|
+
if (It(h)) {
|
|
3275
|
+
var d = typeof h.style == "string" ? n.number[h.style] : Gt(h.style) ? h.style.parsedOptions : void 0;
|
|
3276
|
+
d && d.scale && (m = m * (d.scale || 1)), o.push({
|
|
3279
3277
|
type: E.literal,
|
|
3280
|
-
value:
|
|
3278
|
+
value: r.getNumberFormat(t, d).format(m)
|
|
3281
3279
|
});
|
|
3282
3280
|
continue;
|
|
3283
3281
|
}
|
|
3284
|
-
if (
|
|
3282
|
+
if (Dt(h)) {
|
|
3285
3283
|
var f = h.children, _ = h.value, v = i[_];
|
|
3286
|
-
if (!
|
|
3287
|
-
throw new
|
|
3288
|
-
var A = he(f, t,
|
|
3284
|
+
if (!Rn(v))
|
|
3285
|
+
throw new Nn(_, "function", a);
|
|
3286
|
+
var A = he(f, t, r, n, i, s), O = v(A.map(function(S) {
|
|
3289
3287
|
return S.value;
|
|
3290
3288
|
}));
|
|
3291
|
-
Array.isArray(O) || (O = [O]),
|
|
3289
|
+
Array.isArray(O) || (O = [O]), o.push.apply(o, O.map(function(S) {
|
|
3292
3290
|
return {
|
|
3293
3291
|
type: typeof S == "string" ? E.literal : E.object,
|
|
3294
3292
|
value: S
|
|
3295
3293
|
};
|
|
3296
3294
|
}));
|
|
3297
3295
|
}
|
|
3298
|
-
if (
|
|
3296
|
+
if ($t(h)) {
|
|
3299
3297
|
var H = h.options[m] || h.options.other;
|
|
3300
3298
|
if (!H)
|
|
3301
|
-
throw new
|
|
3302
|
-
|
|
3299
|
+
throw new ft(h.value, m, Object.keys(h.options), a);
|
|
3300
|
+
o.push.apply(o, he(H.value, t, r, n, i));
|
|
3303
3301
|
continue;
|
|
3304
3302
|
}
|
|
3305
|
-
if (
|
|
3303
|
+
if (Ut(h)) {
|
|
3306
3304
|
var H = h.options["=".concat(m)];
|
|
3307
3305
|
if (!H) {
|
|
3308
3306
|
if (!Intl.PluralRules)
|
|
3309
3307
|
throw new ge(`Intl.PluralRules is not available in this environment.
|
|
3310
3308
|
Try polyfilling it using "@formatjs/intl-pluralrules"
|
|
3311
|
-
`, k.MISSING_INTL_API,
|
|
3312
|
-
var N =
|
|
3309
|
+
`, k.MISSING_INTL_API, a);
|
|
3310
|
+
var N = r.getPluralRules(t, { type: h.pluralType }).select(m - (h.offset || 0));
|
|
3313
3311
|
H = h.options[N] || h.options.other;
|
|
3314
3312
|
}
|
|
3315
3313
|
if (!H)
|
|
3316
|
-
throw new
|
|
3317
|
-
|
|
3314
|
+
throw new ft(h.value, m, Object.keys(h.options), a);
|
|
3315
|
+
o.push.apply(o, he(H.value, t, r, n, i, m - (h.offset || 0)));
|
|
3318
3316
|
continue;
|
|
3319
3317
|
}
|
|
3320
3318
|
}
|
|
3321
|
-
return
|
|
3319
|
+
return Mn(o);
|
|
3322
3320
|
}
|
|
3323
|
-
function $
|
|
3324
|
-
return t ? y(y(y({}, e || {}), t || {}), Object.keys(e).reduce(function(
|
|
3325
|
-
return n
|
|
3321
|
+
function $n(e, t) {
|
|
3322
|
+
return t ? y(y(y({}, e || {}), t || {}), Object.keys(e).reduce(function(r, n) {
|
|
3323
|
+
return r[n] = y(y({}, e[n]), t[n] || {}), r;
|
|
3326
3324
|
}, {})) : e;
|
|
3327
3325
|
}
|
|
3328
|
-
function
|
|
3329
|
-
return t ? Object.keys(e).reduce(function(
|
|
3330
|
-
return n
|
|
3326
|
+
function Un(e, t) {
|
|
3327
|
+
return t ? Object.keys(e).reduce(function(r, n) {
|
|
3328
|
+
return r[n] = $n(e[n], t[n]), r;
|
|
3331
3329
|
}, y({}, e)) : e;
|
|
3332
3330
|
}
|
|
3333
3331
|
function Pe(e) {
|
|
@@ -3337,50 +3335,50 @@ function Pe(e) {
|
|
|
3337
3335
|
get: function(t) {
|
|
3338
3336
|
return e[t];
|
|
3339
3337
|
},
|
|
3340
|
-
set: function(t,
|
|
3341
|
-
e[t] =
|
|
3338
|
+
set: function(t, r) {
|
|
3339
|
+
e[t] = r;
|
|
3342
3340
|
}
|
|
3343
3341
|
};
|
|
3344
3342
|
}
|
|
3345
3343
|
};
|
|
3346
3344
|
}
|
|
3347
|
-
function
|
|
3345
|
+
function Dn(e) {
|
|
3348
3346
|
return e === void 0 && (e = {
|
|
3349
3347
|
number: {},
|
|
3350
3348
|
dateTime: {},
|
|
3351
3349
|
pluralRules: {}
|
|
3352
3350
|
}), {
|
|
3353
3351
|
getNumberFormat: Se(function() {
|
|
3354
|
-
for (var t,
|
|
3355
|
-
n
|
|
3356
|
-
return new ((t = Intl.NumberFormat).bind.apply(t, we([void 0],
|
|
3352
|
+
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3353
|
+
r[n] = arguments[n];
|
|
3354
|
+
return new ((t = Intl.NumberFormat).bind.apply(t, we([void 0], r, !1)))();
|
|
3357
3355
|
}, {
|
|
3358
3356
|
cache: Pe(e.number),
|
|
3359
3357
|
strategy: Ae.variadic
|
|
3360
3358
|
}),
|
|
3361
3359
|
getDateTimeFormat: Se(function() {
|
|
3362
|
-
for (var t,
|
|
3363
|
-
n
|
|
3364
|
-
return new ((t = Intl.DateTimeFormat).bind.apply(t, we([void 0],
|
|
3360
|
+
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3361
|
+
r[n] = arguments[n];
|
|
3362
|
+
return new ((t = Intl.DateTimeFormat).bind.apply(t, we([void 0], r, !1)))();
|
|
3365
3363
|
}, {
|
|
3366
3364
|
cache: Pe(e.dateTime),
|
|
3367
3365
|
strategy: Ae.variadic
|
|
3368
3366
|
}),
|
|
3369
3367
|
getPluralRules: Se(function() {
|
|
3370
|
-
for (var t,
|
|
3371
|
-
n
|
|
3372
|
-
return new ((t = Intl.PluralRules).bind.apply(t, we([void 0],
|
|
3368
|
+
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3369
|
+
r[n] = arguments[n];
|
|
3370
|
+
return new ((t = Intl.PluralRules).bind.apply(t, we([void 0], r, !1)))();
|
|
3373
3371
|
}, {
|
|
3374
3372
|
cache: Pe(e.pluralRules),
|
|
3375
3373
|
strategy: Ae.variadic
|
|
3376
3374
|
})
|
|
3377
3375
|
};
|
|
3378
3376
|
}
|
|
3379
|
-
var
|
|
3377
|
+
var Zt = (
|
|
3380
3378
|
/** @class */
|
|
3381
3379
|
function() {
|
|
3382
|
-
function e(t,
|
|
3383
|
-
|
|
3380
|
+
function e(t, r, n, i) {
|
|
3381
|
+
r === void 0 && (r = e.defaultLocale);
|
|
3384
3382
|
var s = this;
|
|
3385
3383
|
if (this.formatterCache = {
|
|
3386
3384
|
number: {},
|
|
@@ -3403,18 +3401,18 @@ var Wt = (
|
|
|
3403
3401
|
};
|
|
3404
3402
|
}, this.getAst = function() {
|
|
3405
3403
|
return s.ast;
|
|
3406
|
-
}, this.locales =
|
|
3404
|
+
}, this.locales = r, this.resolvedLocale = e.resolveLocale(r), typeof t == "string") {
|
|
3407
3405
|
if (this.message = t, !e.__parse)
|
|
3408
3406
|
throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");
|
|
3409
|
-
var
|
|
3410
|
-
|
|
3411
|
-
var
|
|
3412
|
-
this.ast = e.__parse(t, y(y({},
|
|
3407
|
+
var a = i || {};
|
|
3408
|
+
a.formatters;
|
|
3409
|
+
var o = Qr(a, ["formatters"]);
|
|
3410
|
+
this.ast = e.__parse(t, y(y({}, o), { locale: this.resolvedLocale }));
|
|
3413
3411
|
} else
|
|
3414
3412
|
this.ast = t;
|
|
3415
3413
|
if (!Array.isArray(this.ast))
|
|
3416
3414
|
throw new TypeError("A message must be provided as a String or AST.");
|
|
3417
|
-
this.formats =
|
|
3415
|
+
this.formats = Un(e.formats, n), this.formatters = i && i.formatters || Dn(this.formatterCache);
|
|
3418
3416
|
}
|
|
3419
3417
|
return Object.defineProperty(e, "defaultLocale", {
|
|
3420
3418
|
get: function() {
|
|
@@ -3424,10 +3422,10 @@ var Wt = (
|
|
|
3424
3422
|
configurable: !0
|
|
3425
3423
|
}), e.memoizedDefaultLocale = null, e.resolveLocale = function(t) {
|
|
3426
3424
|
if (typeof Intl.Locale != "undefined") {
|
|
3427
|
-
var
|
|
3428
|
-
return
|
|
3425
|
+
var r = Intl.NumberFormat.supportedLocalesOf(t);
|
|
3426
|
+
return r.length > 0 ? new Intl.Locale(r[0]) : new Intl.Locale(typeof t == "string" ? t : t[0]);
|
|
3429
3427
|
}
|
|
3430
|
-
}, e.__parse =
|
|
3428
|
+
}, e.__parse = Ln, e.formats = {
|
|
3431
3429
|
number: {
|
|
3432
3430
|
integer: {
|
|
3433
3431
|
maximumFractionDigits: 0
|
|
@@ -3488,122 +3486,122 @@ var Wt = (
|
|
|
3488
3486
|
}, e;
|
|
3489
3487
|
}()
|
|
3490
3488
|
);
|
|
3491
|
-
function
|
|
3489
|
+
function Gn(e, t) {
|
|
3492
3490
|
if (t == null)
|
|
3493
3491
|
return;
|
|
3494
3492
|
if (t in e)
|
|
3495
3493
|
return e[t];
|
|
3496
|
-
const
|
|
3497
|
-
let
|
|
3498
|
-
for (let i = 0; i <
|
|
3499
|
-
if (typeof
|
|
3494
|
+
const r = t.split(".");
|
|
3495
|
+
let n = e;
|
|
3496
|
+
for (let i = 0; i < r.length; i++)
|
|
3497
|
+
if (typeof n == "object") {
|
|
3500
3498
|
if (i > 0) {
|
|
3501
|
-
const s =
|
|
3502
|
-
if (s in
|
|
3503
|
-
|
|
3499
|
+
const s = r.slice(i, r.length).join(".");
|
|
3500
|
+
if (s in n) {
|
|
3501
|
+
n = n[s];
|
|
3504
3502
|
break;
|
|
3505
3503
|
}
|
|
3506
3504
|
}
|
|
3507
|
-
|
|
3505
|
+
n = n[r[i]];
|
|
3508
3506
|
} else
|
|
3509
|
-
|
|
3510
|
-
return
|
|
3507
|
+
n = void 0;
|
|
3508
|
+
return n;
|
|
3511
3509
|
}
|
|
3512
|
-
const P = {},
|
|
3510
|
+
const P = {}, Fn = (e, t, r) => r && (t in P || (P[t] = {}), e in P[t] || (P[t][e] = r), r), Qt = (e, t) => {
|
|
3513
3511
|
if (t == null)
|
|
3514
3512
|
return;
|
|
3515
3513
|
if (t in P && e in P[t])
|
|
3516
3514
|
return P[t][e];
|
|
3517
|
-
const
|
|
3518
|
-
for (let
|
|
3519
|
-
const i = n
|
|
3515
|
+
const r = ne(t);
|
|
3516
|
+
for (let n = 0; n < r.length; n++) {
|
|
3517
|
+
const i = r[n], s = kn(i, e);
|
|
3520
3518
|
if (s)
|
|
3521
|
-
return
|
|
3519
|
+
return Fn(e, t, s);
|
|
3522
3520
|
}
|
|
3523
3521
|
};
|
|
3524
|
-
let
|
|
3525
|
-
const
|
|
3526
|
-
function
|
|
3527
|
-
return
|
|
3522
|
+
let We;
|
|
3523
|
+
const re = pe({});
|
|
3524
|
+
function jn(e) {
|
|
3525
|
+
return We[e] || null;
|
|
3528
3526
|
}
|
|
3529
|
-
function
|
|
3530
|
-
return e in
|
|
3527
|
+
function Jt(e) {
|
|
3528
|
+
return e in We;
|
|
3531
3529
|
}
|
|
3532
|
-
function
|
|
3533
|
-
if (!
|
|
3530
|
+
function kn(e, t) {
|
|
3531
|
+
if (!Jt(e))
|
|
3534
3532
|
return null;
|
|
3535
|
-
const
|
|
3536
|
-
return
|
|
3533
|
+
const r = jn(e);
|
|
3534
|
+
return Gn(r, t);
|
|
3537
3535
|
}
|
|
3538
|
-
function
|
|
3536
|
+
function Vn(e) {
|
|
3539
3537
|
if (e == null)
|
|
3540
3538
|
return;
|
|
3541
|
-
const t =
|
|
3542
|
-
for (let
|
|
3543
|
-
const
|
|
3544
|
-
if (
|
|
3545
|
-
return
|
|
3539
|
+
const t = ne(e);
|
|
3540
|
+
for (let r = 0; r < t.length; r++) {
|
|
3541
|
+
const n = t[r];
|
|
3542
|
+
if (Jt(n))
|
|
3543
|
+
return n;
|
|
3546
3544
|
}
|
|
3547
3545
|
}
|
|
3548
|
-
function
|
|
3549
|
-
delete P[e],
|
|
3546
|
+
function qt(e, ...t) {
|
|
3547
|
+
delete P[e], re.update((r) => (r[e] = Zr.all([r[e] || {}, ...t]), r));
|
|
3550
3548
|
}
|
|
3551
3549
|
z(
|
|
3552
|
-
[
|
|
3550
|
+
[re],
|
|
3553
3551
|
([e]) => Object.keys(e)
|
|
3554
3552
|
);
|
|
3555
|
-
|
|
3553
|
+
re.subscribe((e) => We = e);
|
|
3556
3554
|
const le = {};
|
|
3557
|
-
function
|
|
3555
|
+
function Xn(e, t) {
|
|
3558
3556
|
le[e].delete(t), le[e].size === 0 && delete le[e];
|
|
3559
3557
|
}
|
|
3560
|
-
function
|
|
3558
|
+
function Yt(e) {
|
|
3561
3559
|
return le[e];
|
|
3562
3560
|
}
|
|
3563
|
-
function
|
|
3564
|
-
return
|
|
3565
|
-
const
|
|
3566
|
-
return [t,
|
|
3561
|
+
function zn(e) {
|
|
3562
|
+
return ne(e).map((t) => {
|
|
3563
|
+
const r = Yt(t);
|
|
3564
|
+
return [t, r ? [...r] : []];
|
|
3567
3565
|
}).filter(([, t]) => t.length > 0);
|
|
3568
3566
|
}
|
|
3569
3567
|
function ce(e) {
|
|
3570
|
-
return e == null ? !1 :
|
|
3568
|
+
return e == null ? !1 : ne(e).some(
|
|
3571
3569
|
(t) => {
|
|
3572
|
-
var
|
|
3573
|
-
return (
|
|
3570
|
+
var r;
|
|
3571
|
+
return (r = Yt(t)) == null ? void 0 : r.size;
|
|
3574
3572
|
}
|
|
3575
3573
|
);
|
|
3576
3574
|
}
|
|
3577
|
-
function
|
|
3575
|
+
function Wn(e, t) {
|
|
3578
3576
|
return Promise.all(
|
|
3579
|
-
t.map((
|
|
3580
|
-
).then((
|
|
3577
|
+
t.map((n) => (Xn(e, n), n().then((i) => i.default || i)))
|
|
3578
|
+
).then((n) => qt(e, ...n));
|
|
3581
3579
|
}
|
|
3582
3580
|
const Z = {};
|
|
3583
|
-
function
|
|
3581
|
+
function Kt(e) {
|
|
3584
3582
|
if (!ce(e))
|
|
3585
3583
|
return e in Z ? Z[e] : Promise.resolve();
|
|
3586
|
-
const t =
|
|
3584
|
+
const t = zn(e);
|
|
3587
3585
|
return Z[e] = Promise.all(
|
|
3588
3586
|
t.map(
|
|
3589
|
-
([
|
|
3587
|
+
([r, n]) => Wn(r, n)
|
|
3590
3588
|
)
|
|
3591
3589
|
).then(() => {
|
|
3592
3590
|
if (ce(e))
|
|
3593
|
-
return
|
|
3591
|
+
return Kt(e);
|
|
3594
3592
|
delete Z[e];
|
|
3595
3593
|
}), Z[e];
|
|
3596
3594
|
}
|
|
3597
|
-
var
|
|
3598
|
-
var
|
|
3599
|
-
for (var
|
|
3600
|
-
|
|
3601
|
-
if (e != null &&
|
|
3602
|
-
for (var
|
|
3603
|
-
t.indexOf(
|
|
3604
|
-
return
|
|
3595
|
+
var ct = Object.getOwnPropertySymbols, Zn = Object.prototype.hasOwnProperty, Qn = Object.prototype.propertyIsEnumerable, Jn = (e, t) => {
|
|
3596
|
+
var r = {};
|
|
3597
|
+
for (var n in e)
|
|
3598
|
+
Zn.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
3599
|
+
if (e != null && ct)
|
|
3600
|
+
for (var n of ct(e))
|
|
3601
|
+
t.indexOf(n) < 0 && Qn.call(e, n) && (r[n] = e[n]);
|
|
3602
|
+
return r;
|
|
3605
3603
|
};
|
|
3606
|
-
const
|
|
3604
|
+
const qn = {
|
|
3607
3605
|
number: {
|
|
3608
3606
|
scientific: { notation: "scientific" },
|
|
3609
3607
|
engineering: { notation: "engineering" },
|
|
@@ -3633,58 +3631,58 @@ const qr = {
|
|
|
3633
3631
|
}
|
|
3634
3632
|
}
|
|
3635
3633
|
};
|
|
3636
|
-
function
|
|
3634
|
+
function Yn({ locale: e, id: t }) {
|
|
3637
3635
|
console.warn(
|
|
3638
|
-
`[svelte-i18n] The message "${t}" was not found in "${
|
|
3636
|
+
`[svelte-i18n] The message "${t}" was not found in "${ne(
|
|
3639
3637
|
e
|
|
3640
3638
|
).join('", "')}".${ce(L()) ? `
|
|
3641
3639
|
|
|
3642
3640
|
Note: there are at least one loader still registered to this locale that wasn't executed.` : ""}`
|
|
3643
3641
|
);
|
|
3644
3642
|
}
|
|
3645
|
-
const
|
|
3643
|
+
const Kn = {
|
|
3646
3644
|
fallbackLocale: null,
|
|
3647
3645
|
loadingDelay: 200,
|
|
3648
|
-
formats:
|
|
3646
|
+
formats: qn,
|
|
3649
3647
|
warnOnMissingMessages: !0,
|
|
3650
3648
|
handleMissingMessage: void 0,
|
|
3651
3649
|
ignoreTag: !0
|
|
3652
|
-
}, Q =
|
|
3650
|
+
}, Q = Kn;
|
|
3653
3651
|
function V() {
|
|
3654
3652
|
return Q;
|
|
3655
3653
|
}
|
|
3656
3654
|
function ei(e) {
|
|
3657
|
-
const t = e, { formats:
|
|
3655
|
+
const t = e, { formats: r } = t, n = Jn(t, ["formats"]);
|
|
3658
3656
|
let i = e.fallbackLocale;
|
|
3659
3657
|
if (e.initialLocale)
|
|
3660
3658
|
try {
|
|
3661
|
-
|
|
3659
|
+
Zt.resolveLocale(e.initialLocale) && (i = e.initialLocale);
|
|
3662
3660
|
} catch (s) {
|
|
3663
3661
|
console.warn(
|
|
3664
3662
|
`[svelte-i18n] The initial locale "${e.initialLocale}" is not a valid locale.`
|
|
3665
3663
|
);
|
|
3666
3664
|
}
|
|
3667
|
-
return
|
|
3665
|
+
return n.warnOnMissingMessages && (delete n.warnOnMissingMessages, n.handleMissingMessage == null ? n.handleMissingMessage = Yn : console.warn(
|
|
3668
3666
|
'[svelte-i18n] The "warnOnMissingMessages" option is deprecated. Please use the "handleMissingMessage" option instead.'
|
|
3669
|
-
)), Object.assign(Q,
|
|
3670
|
-
}
|
|
3671
|
-
const Ce =
|
|
3672
|
-
var ti = Object.defineProperty,
|
|
3673
|
-
for (var
|
|
3674
|
-
ii.call(t,
|
|
3675
|
-
if (
|
|
3676
|
-
for (var
|
|
3677
|
-
si.call(t,
|
|
3667
|
+
)), Object.assign(Q, n, { initialLocale: i }), r && ("number" in r && Object.assign(Q.formats.number, r.number), "date" in r && Object.assign(Q.formats.date, r.date), "time" in r && Object.assign(Q.formats.time, r.time)), M.set(i);
|
|
3668
|
+
}
|
|
3669
|
+
const Ce = pe(!1);
|
|
3670
|
+
var ti = Object.defineProperty, ri = Object.defineProperties, ni = Object.getOwnPropertyDescriptors, mt = Object.getOwnPropertySymbols, ii = Object.prototype.hasOwnProperty, si = Object.prototype.propertyIsEnumerable, dt = (e, t, r) => t in e ? ti(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, oi = (e, t) => {
|
|
3671
|
+
for (var r in t || (t = {}))
|
|
3672
|
+
ii.call(t, r) && dt(e, r, t[r]);
|
|
3673
|
+
if (mt)
|
|
3674
|
+
for (var r of mt(t))
|
|
3675
|
+
si.call(t, r) && dt(e, r, t[r]);
|
|
3678
3676
|
return e;
|
|
3679
|
-
}, ai = (e, t) =>
|
|
3677
|
+
}, ai = (e, t) => ri(e, ni(t));
|
|
3680
3678
|
let je;
|
|
3681
|
-
const me =
|
|
3682
|
-
function
|
|
3683
|
-
return e.split("-").map((t,
|
|
3679
|
+
const me = pe(null);
|
|
3680
|
+
function pt(e) {
|
|
3681
|
+
return e.split("-").map((t, r, n) => n.slice(0, r + 1).join("-")).reverse();
|
|
3684
3682
|
}
|
|
3685
|
-
function
|
|
3686
|
-
const
|
|
3687
|
-
return t ? [.../* @__PURE__ */ new Set([...
|
|
3683
|
+
function ne(e, t = V().fallbackLocale) {
|
|
3684
|
+
const r = pt(e);
|
|
3685
|
+
return t ? [.../* @__PURE__ */ new Set([...r, ...pt(t)])] : r;
|
|
3688
3686
|
}
|
|
3689
3687
|
function L() {
|
|
3690
3688
|
return je != null ? je : void 0;
|
|
@@ -3693,16 +3691,16 @@ me.subscribe((e) => {
|
|
|
3693
3691
|
je = e != null ? e : void 0, typeof window != "undefined" && e != null && document.documentElement.setAttribute("lang", e);
|
|
3694
3692
|
});
|
|
3695
3693
|
const ui = (e) => {
|
|
3696
|
-
if (e &&
|
|
3694
|
+
if (e && Vn(e) && ce(e)) {
|
|
3697
3695
|
const { loadingDelay: t } = V();
|
|
3698
|
-
let
|
|
3699
|
-
return typeof window != "undefined" && L() != null && t ?
|
|
3696
|
+
let r;
|
|
3697
|
+
return typeof window != "undefined" && L() != null && t ? r = window.setTimeout(
|
|
3700
3698
|
() => Ce.set(!0),
|
|
3701
3699
|
t
|
|
3702
|
-
) : Ce.set(!0),
|
|
3700
|
+
) : Ce.set(!0), Kt(e).then(() => {
|
|
3703
3701
|
me.set(e);
|
|
3704
3702
|
}).finally(() => {
|
|
3705
|
-
clearTimeout(
|
|
3703
|
+
clearTimeout(r), Ce.set(!1);
|
|
3706
3704
|
});
|
|
3707
3705
|
}
|
|
3708
3706
|
return me.set(e);
|
|
@@ -3710,106 +3708,106 @@ const ui = (e) => {
|
|
|
3710
3708
|
set: ui
|
|
3711
3709
|
}), _e = (e) => {
|
|
3712
3710
|
const t = /* @__PURE__ */ Object.create(null);
|
|
3713
|
-
return (
|
|
3714
|
-
const i = JSON.stringify(
|
|
3715
|
-
return i in t ? t[i] : t[i] = e(
|
|
3711
|
+
return (n) => {
|
|
3712
|
+
const i = JSON.stringify(n);
|
|
3713
|
+
return i in t ? t[i] : t[i] = e(n);
|
|
3716
3714
|
};
|
|
3717
3715
|
};
|
|
3718
|
-
var hi = Object.defineProperty, de = Object.getOwnPropertySymbols,
|
|
3719
|
-
for (var
|
|
3720
|
-
|
|
3716
|
+
var hi = Object.defineProperty, de = Object.getOwnPropertySymbols, er = Object.prototype.hasOwnProperty, tr = Object.prototype.propertyIsEnumerable, bt = (e, t, r) => t in e ? hi(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Ze = (e, t) => {
|
|
3717
|
+
for (var r in t || (t = {}))
|
|
3718
|
+
er.call(t, r) && bt(e, r, t[r]);
|
|
3721
3719
|
if (de)
|
|
3722
|
-
for (var
|
|
3723
|
-
|
|
3720
|
+
for (var r of de(t))
|
|
3721
|
+
tr.call(t, r) && bt(e, r, t[r]);
|
|
3724
3722
|
return e;
|
|
3725
3723
|
}, W = (e, t) => {
|
|
3726
|
-
var
|
|
3727
|
-
for (var
|
|
3728
|
-
|
|
3724
|
+
var r = {};
|
|
3725
|
+
for (var n in e)
|
|
3726
|
+
er.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
3729
3727
|
if (e != null && de)
|
|
3730
|
-
for (var
|
|
3731
|
-
t.indexOf(
|
|
3732
|
-
return
|
|
3728
|
+
for (var n of de(e))
|
|
3729
|
+
t.indexOf(n) < 0 && tr.call(e, n) && (r[n] = e[n]);
|
|
3730
|
+
return r;
|
|
3733
3731
|
};
|
|
3734
3732
|
const K = (e, t) => {
|
|
3735
|
-
const { formats:
|
|
3736
|
-
if (e in
|
|
3737
|
-
return
|
|
3733
|
+
const { formats: r } = V();
|
|
3734
|
+
if (e in r && t in r[e])
|
|
3735
|
+
return r[e][t];
|
|
3738
3736
|
throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`);
|
|
3739
3737
|
}, li = _e(
|
|
3740
3738
|
(e) => {
|
|
3741
|
-
var t = e, { locale:
|
|
3742
|
-
if (
|
|
3739
|
+
var t = e, { locale: r, format: n } = t, i = W(t, ["locale", "format"]);
|
|
3740
|
+
if (r == null)
|
|
3743
3741
|
throw new Error('[svelte-i18n] A "locale" must be set to format numbers');
|
|
3744
|
-
return
|
|
3742
|
+
return n && (i = K("number", n)), new Intl.NumberFormat(r, i);
|
|
3745
3743
|
}
|
|
3746
3744
|
), fi = _e(
|
|
3747
3745
|
(e) => {
|
|
3748
|
-
var t = e, { locale:
|
|
3749
|
-
if (
|
|
3746
|
+
var t = e, { locale: r, format: n } = t, i = W(t, ["locale", "format"]);
|
|
3747
|
+
if (r == null)
|
|
3750
3748
|
throw new Error('[svelte-i18n] A "locale" must be set to format dates');
|
|
3751
|
-
return
|
|
3749
|
+
return n ? i = K("date", n) : Object.keys(i).length === 0 && (i = K("date", "short")), new Intl.DateTimeFormat(r, i);
|
|
3752
3750
|
}
|
|
3753
3751
|
), ci = _e(
|
|
3754
3752
|
(e) => {
|
|
3755
|
-
var t = e, { locale:
|
|
3756
|
-
if (
|
|
3753
|
+
var t = e, { locale: r, format: n } = t, i = W(t, ["locale", "format"]);
|
|
3754
|
+
if (r == null)
|
|
3757
3755
|
throw new Error(
|
|
3758
3756
|
'[svelte-i18n] A "locale" must be set to format time values'
|
|
3759
3757
|
);
|
|
3760
|
-
return
|
|
3758
|
+
return n ? i = K("time", n) : Object.keys(i).length === 0 && (i = K("time", "short")), new Intl.DateTimeFormat(r, i);
|
|
3761
3759
|
}
|
|
3762
3760
|
), mi = (e = {}) => {
|
|
3763
3761
|
var t = e, {
|
|
3764
|
-
locale:
|
|
3765
|
-
} = t,
|
|
3762
|
+
locale: r = L()
|
|
3763
|
+
} = t, n = W(t, [
|
|
3766
3764
|
"locale"
|
|
3767
3765
|
]);
|
|
3768
|
-
return li(
|
|
3766
|
+
return li(Ze({ locale: r }, n));
|
|
3769
3767
|
}, di = (e = {}) => {
|
|
3770
3768
|
var t = e, {
|
|
3771
|
-
locale:
|
|
3772
|
-
} = t,
|
|
3769
|
+
locale: r = L()
|
|
3770
|
+
} = t, n = W(t, [
|
|
3773
3771
|
"locale"
|
|
3774
3772
|
]);
|
|
3775
|
-
return fi(
|
|
3776
|
-
},
|
|
3773
|
+
return fi(Ze({ locale: r }, n));
|
|
3774
|
+
}, pi = (e = {}) => {
|
|
3777
3775
|
var t = e, {
|
|
3778
|
-
locale:
|
|
3779
|
-
} = t,
|
|
3776
|
+
locale: r = L()
|
|
3777
|
+
} = t, n = W(t, [
|
|
3780
3778
|
"locale"
|
|
3781
3779
|
]);
|
|
3782
|
-
return ci(
|
|
3783
|
-
},
|
|
3780
|
+
return ci(Ze({ locale: r }, n));
|
|
3781
|
+
}, bi = _e(
|
|
3784
3782
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
3785
|
-
(e, t = L()) => new
|
|
3783
|
+
(e, t = L()) => new Zt(e, t, V().formats, {
|
|
3786
3784
|
ignoreTag: V().ignoreTag
|
|
3787
3785
|
})
|
|
3788
3786
|
), gi = (e, t = {}) => {
|
|
3789
|
-
var
|
|
3790
|
-
let
|
|
3791
|
-
typeof e == "object" && (
|
|
3787
|
+
var r, n, i, s;
|
|
3788
|
+
let a = t;
|
|
3789
|
+
typeof e == "object" && (a = e, e = a.id);
|
|
3792
3790
|
const {
|
|
3793
|
-
values:
|
|
3791
|
+
values: o,
|
|
3794
3792
|
locale: l = L(),
|
|
3795
3793
|
default: u
|
|
3796
|
-
} =
|
|
3794
|
+
} = a;
|
|
3797
3795
|
if (l == null)
|
|
3798
3796
|
throw new Error(
|
|
3799
3797
|
"[svelte-i18n] Cannot format a message without first setting the initial locale."
|
|
3800
3798
|
);
|
|
3801
|
-
let h =
|
|
3799
|
+
let h = Qt(e, l);
|
|
3802
3800
|
if (!h)
|
|
3803
|
-
h = (s = (i = (
|
|
3801
|
+
h = (s = (i = (n = (r = V()).handleMissingMessage) == null ? void 0 : n.call(r, { locale: l, id: e, defaultValue: u })) != null ? i : u) != null ? s : e;
|
|
3804
3802
|
else if (typeof h != "string")
|
|
3805
3803
|
return console.warn(
|
|
3806
3804
|
`[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.`
|
|
3807
3805
|
), h;
|
|
3808
|
-
if (!
|
|
3806
|
+
if (!o)
|
|
3809
3807
|
return h;
|
|
3810
3808
|
let c = h;
|
|
3811
3809
|
try {
|
|
3812
|
-
c =
|
|
3810
|
+
c = bi(h, l).format(o);
|
|
3813
3811
|
} catch (m) {
|
|
3814
3812
|
m instanceof Error && console.warn(
|
|
3815
3813
|
`[svelte-i18n] Message "${e}" has syntax error:`,
|
|
@@ -3817,20 +3815,20 @@ const K = (e, t) => {
|
|
|
3817
3815
|
);
|
|
3818
3816
|
}
|
|
3819
3817
|
return c;
|
|
3820
|
-
}, _i = (e, t) =>
|
|
3818
|
+
}, _i = (e, t) => pi(t).format(e), yi = (e, t) => di(t).format(e), xi = (e, t) => mi(t).format(e), Ei = (e, t = L()) => Qt(e, t), vi = z([M, re], () => gi);
|
|
3821
3819
|
z([M], () => _i);
|
|
3822
3820
|
z([M], () => yi);
|
|
3823
3821
|
z([M], () => xi);
|
|
3824
|
-
z([M,
|
|
3825
|
-
function
|
|
3826
|
-
|
|
3822
|
+
z([M, re], () => Ei);
|
|
3823
|
+
function gt(e, t) {
|
|
3824
|
+
qt(e, t);
|
|
3827
3825
|
}
|
|
3828
3826
|
function Hi(e) {
|
|
3829
3827
|
ei({
|
|
3830
3828
|
fallbackLocale: "en"
|
|
3831
3829
|
}), M.set(e);
|
|
3832
3830
|
}
|
|
3833
|
-
const
|
|
3831
|
+
const _t = {
|
|
3834
3832
|
en: {
|
|
3835
3833
|
header: {
|
|
3836
3834
|
general: "Cashier",
|
|
@@ -3855,153 +3853,153 @@ const gt = {
|
|
|
3855
3853
|
};
|
|
3856
3854
|
function Bi(e, t) {
|
|
3857
3855
|
if (e) {
|
|
3858
|
-
const
|
|
3859
|
-
|
|
3856
|
+
const r = document.createElement("style");
|
|
3857
|
+
r.innerHTML = t, e.appendChild(r);
|
|
3860
3858
|
}
|
|
3861
3859
|
}
|
|
3862
3860
|
function Ti(e, t) {
|
|
3863
|
-
const
|
|
3864
|
-
fetch(
|
|
3861
|
+
const r = new URL(t);
|
|
3862
|
+
fetch(r.href).then((n) => n.text()).then((n) => {
|
|
3865
3863
|
const i = document.createElement("style");
|
|
3866
|
-
i.innerHTML =
|
|
3867
|
-
}).catch((
|
|
3868
|
-
console.error("There was an error while trying to load client styling from URL",
|
|
3864
|
+
i.innerHTML = n, e && e.appendChild(i);
|
|
3865
|
+
}).catch((n) => {
|
|
3866
|
+
console.error("There was an error while trying to load client styling from URL", n);
|
|
3869
3867
|
});
|
|
3870
3868
|
}
|
|
3871
|
-
function wi(e, t,
|
|
3869
|
+
function wi(e, t, r) {
|
|
3872
3870
|
if (window.emMessageBus) {
|
|
3873
|
-
const
|
|
3871
|
+
const n = document.createElement("style");
|
|
3874
3872
|
window.emMessageBus.subscribe(t, (i) => {
|
|
3875
|
-
|
|
3873
|
+
n.innerHTML = i, e && e.appendChild(n);
|
|
3876
3874
|
});
|
|
3877
3875
|
}
|
|
3878
3876
|
}
|
|
3879
3877
|
function Si(e) {
|
|
3880
|
-
|
|
3878
|
+
cr(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}");
|
|
3881
3879
|
}
|
|
3882
|
-
const Ai = (e) => ({}),
|
|
3883
|
-
function
|
|
3884
|
-
let t,
|
|
3880
|
+
const Ai = (e) => ({}), yt = (e) => ({}), Oi = (e) => ({}), xt = (e) => ({}), Pi = (e) => ({}), Et = (e) => ({});
|
|
3881
|
+
function vt(e) {
|
|
3882
|
+
let t, r, n;
|
|
3885
3883
|
return {
|
|
3886
3884
|
c() {
|
|
3887
3885
|
t = X("div"), t.innerHTML = '<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 20 20" fill="none"><path fill-rule="evenodd" clip-rule="evenodd" d="M12.5632 3.47782C12.4787 3.50138 12.3362 3.57505 12.2465 3.64153C12.1567 3.70806 10.8069 5.04216 9.24694 6.60626C6.11944 9.74192 6.25999 9.58204 6.25999 10.0037C6.25999 10.4243 6.13093 10.2784 9.34296 13.4903C12.4449 16.5921 12.356 16.5116 12.7278 16.5556C13.1855 16.6098 13.6413 16.2585 13.7301 15.783C13.7612 15.6164 13.7212 15.3395 13.6437 15.1847C13.6158 15.129 12.451 13.9396 11.0553 12.5417L8.51768 10L11.0553 7.45837C12.451 6.06048 13.6158 4.87114 13.6437 4.81544C13.7729 4.55751 13.7703 4.2006 13.6374 3.94274C13.4469 3.5731 12.9668 3.36532 12.5632 3.47782Z" fill="#111111"></path></svg>', te(t, "class", "CashierHeaderLeftButton");
|
|
3888
3886
|
},
|
|
3889
3887
|
m(i, s) {
|
|
3890
|
-
I(i, t, s),
|
|
3888
|
+
I(i, t, s), r || (n = Ot(
|
|
3891
3889
|
t,
|
|
3892
3890
|
"click",
|
|
3893
3891
|
/*back*/
|
|
3894
3892
|
e[6]
|
|
3895
|
-
),
|
|
3893
|
+
), r = !0);
|
|
3896
3894
|
},
|
|
3897
3895
|
p: T,
|
|
3898
3896
|
d(i) {
|
|
3899
|
-
i && C(t),
|
|
3897
|
+
i && C(t), r = !1, n();
|
|
3900
3898
|
}
|
|
3901
3899
|
};
|
|
3902
3900
|
}
|
|
3903
3901
|
function Ci(e) {
|
|
3904
|
-
let t,
|
|
3902
|
+
let t, r = (
|
|
3905
3903
|
/*backButton*/
|
|
3906
|
-
e[1] &&
|
|
3904
|
+
e[1] && vt(e)
|
|
3907
3905
|
);
|
|
3908
3906
|
return {
|
|
3909
3907
|
c() {
|
|
3910
|
-
|
|
3908
|
+
r && r.c(), t = At();
|
|
3911
3909
|
},
|
|
3912
|
-
m(
|
|
3913
|
-
|
|
3910
|
+
m(n, i) {
|
|
3911
|
+
r && r.m(n, i), I(n, t, i);
|
|
3914
3912
|
},
|
|
3915
|
-
p(
|
|
3913
|
+
p(n, i) {
|
|
3916
3914
|
/*backButton*/
|
|
3917
|
-
|
|
3915
|
+
n[1] ? r ? r.p(n, i) : (r = vt(n), r.c(), r.m(t.parentNode, t)) : r && (r.d(1), r = null);
|
|
3918
3916
|
},
|
|
3919
|
-
d(
|
|
3920
|
-
|
|
3917
|
+
d(n) {
|
|
3918
|
+
n && C(t), r && r.d(n);
|
|
3921
3919
|
}
|
|
3922
3920
|
};
|
|
3923
3921
|
}
|
|
3924
3922
|
function Li(e) {
|
|
3925
|
-
let t,
|
|
3923
|
+
let t, r = (
|
|
3926
3924
|
/*$_*/
|
|
3927
3925
|
e[4](
|
|
3928
3926
|
/*titleText*/
|
|
3929
3927
|
e[2]
|
|
3930
3928
|
) + ""
|
|
3931
|
-
),
|
|
3929
|
+
), n;
|
|
3932
3930
|
return {
|
|
3933
3931
|
c() {
|
|
3934
|
-
t = X("span"),
|
|
3932
|
+
t = X("span"), n = Ve(r), te(t, "class", "CashierHeaderTitle");
|
|
3935
3933
|
},
|
|
3936
3934
|
m(i, s) {
|
|
3937
|
-
I(i, t, s), fe(t,
|
|
3935
|
+
I(i, t, s), fe(t, n);
|
|
3938
3936
|
},
|
|
3939
3937
|
p(i, s) {
|
|
3940
3938
|
s & /*$_, titleText*/
|
|
3941
|
-
20 &&
|
|
3939
|
+
20 && r !== (r = /*$_*/
|
|
3942
3940
|
i[4](
|
|
3943
3941
|
/*titleText*/
|
|
3944
3942
|
i[2]
|
|
3945
|
-
) + "") &&
|
|
3943
|
+
) + "") && br(n, r);
|
|
3946
3944
|
},
|
|
3947
3945
|
d(i) {
|
|
3948
3946
|
i && C(t);
|
|
3949
3947
|
}
|
|
3950
3948
|
};
|
|
3951
3949
|
}
|
|
3952
|
-
function
|
|
3953
|
-
let t,
|
|
3950
|
+
function Ht(e) {
|
|
3951
|
+
let t, r, n;
|
|
3954
3952
|
return {
|
|
3955
3953
|
c() {
|
|
3956
3954
|
t = X("span"), t.innerHTML = '<svg xmlns="http://www.w3.org/2000/svg" width="13" height="20" viewBox="0 0 13 13" fill="none"><path d="M12.7711 0.229435C13.0582 0.517619 13.0755 0.973729 12.8215 1.28141L12.7711 1.33721L7.60685 6.50068L12.7711 11.6641C12.9128 11.8066 12.9944 11.998 12.999 12.1988C13.0035 12.3997 12.9308 12.5946 12.7957 12.7433C12.6606 12.892 12.4735 12.9832 12.2731 12.9979C12.0728 13.0126 11.8744 12.9497 11.7191 12.8223L11.6633 12.7719L6.49958 7.60791L1.3359 12.7719C1.19349 12.9136 1.00207 12.9952 0.801203 12.9998C0.60034 13.0044 0.405398 12.9316 0.256676 12.7965C0.107955 12.6614 0.0168256 12.4744 0.00212786 12.274C-0.0125699 12.0736 0.0502877 11.8753 0.177706 11.7199L0.228086 11.6641L5.3923 6.50068L0.228086 1.33721C0.0863637 1.1948 0.00478102 1.00338 0.000203544 0.802529C-0.00437393 0.601674 0.0684038 0.40674 0.203491 0.258024C0.338579 0.109308 0.525647 0.0181829 0.726024 0.00348576C0.9264 -0.0112114 1.12476 0.0516437 1.28011 0.179057L1.3359 0.229435L6.49958 5.39345L11.6633 0.229435C11.736 0.156695 11.8223 0.0989949 11.9174 0.0596283C12.0124 0.0202617 12.1143 0 12.2172 0C12.32 0 12.4219 0.0202617 12.5169 0.0596283C12.612 0.0989949 12.6983 0.156695 12.7711 0.229435Z" fill="#111111"></path></svg>', te(t, "class", "CashierHeaderRightButton");
|
|
3957
3955
|
},
|
|
3958
3956
|
m(i, s) {
|
|
3959
|
-
I(i, t, s),
|
|
3957
|
+
I(i, t, s), r || (n = Ot(
|
|
3960
3958
|
t,
|
|
3961
3959
|
"click",
|
|
3962
3960
|
/*close*/
|
|
3963
3961
|
e[5]
|
|
3964
|
-
),
|
|
3962
|
+
), r = !0);
|
|
3965
3963
|
},
|
|
3966
3964
|
p: T,
|
|
3967
3965
|
d(i) {
|
|
3968
|
-
i && C(t),
|
|
3966
|
+
i && C(t), r = !1, n();
|
|
3969
3967
|
}
|
|
3970
3968
|
};
|
|
3971
3969
|
}
|
|
3972
3970
|
function Ni(e) {
|
|
3973
|
-
let t,
|
|
3971
|
+
let t, r = (
|
|
3974
3972
|
/*closeButton*/
|
|
3975
|
-
e[3] &&
|
|
3973
|
+
e[3] && Ht(e)
|
|
3976
3974
|
);
|
|
3977
3975
|
return {
|
|
3978
3976
|
c() {
|
|
3979
|
-
|
|
3977
|
+
r && r.c(), t = At();
|
|
3980
3978
|
},
|
|
3981
|
-
m(
|
|
3982
|
-
|
|
3979
|
+
m(n, i) {
|
|
3980
|
+
r && r.m(n, i), I(n, t, i);
|
|
3983
3981
|
},
|
|
3984
|
-
p(
|
|
3982
|
+
p(n, i) {
|
|
3985
3983
|
/*closeButton*/
|
|
3986
|
-
|
|
3984
|
+
n[3] ? r ? r.p(n, i) : (r = Ht(n), r.c(), r.m(t.parentNode, t)) : r && (r.d(1), r = null);
|
|
3987
3985
|
},
|
|
3988
|
-
d(
|
|
3989
|
-
|
|
3986
|
+
d(n) {
|
|
3987
|
+
n && C(t), r && r.d(n);
|
|
3990
3988
|
}
|
|
3991
3989
|
};
|
|
3992
3990
|
}
|
|
3993
3991
|
function Ii(e) {
|
|
3994
|
-
let t,
|
|
3992
|
+
let t, r, n, i;
|
|
3995
3993
|
const s = (
|
|
3996
3994
|
/*#slots*/
|
|
3997
3995
|
e[16].leftButton
|
|
3998
|
-
),
|
|
3996
|
+
), a = xe(
|
|
3999
3997
|
s,
|
|
4000
3998
|
e,
|
|
4001
3999
|
/*$$scope*/
|
|
4002
4000
|
e[15],
|
|
4003
|
-
|
|
4004
|
-
),
|
|
4001
|
+
Et
|
|
4002
|
+
), o = a || Ci(e), l = (
|
|
4005
4003
|
/*#slots*/
|
|
4006
4004
|
e[16].title
|
|
4007
4005
|
), u = xe(
|
|
@@ -4009,7 +4007,7 @@ function Ii(e) {
|
|
|
4009
4007
|
e,
|
|
4010
4008
|
/*$$scope*/
|
|
4011
4009
|
e[15],
|
|
4012
|
-
|
|
4010
|
+
xt
|
|
4013
4011
|
), h = u || Li(e), c = (
|
|
4014
4012
|
/*#slots*/
|
|
4015
4013
|
e[16].rightButton
|
|
@@ -4018,19 +4016,19 @@ function Ii(e) {
|
|
|
4018
4016
|
e,
|
|
4019
4017
|
/*$$scope*/
|
|
4020
4018
|
e[15],
|
|
4021
|
-
|
|
4019
|
+
yt
|
|
4022
4020
|
), d = m || Ni(e);
|
|
4023
4021
|
return {
|
|
4024
4022
|
c() {
|
|
4025
|
-
t = X("div"),
|
|
4023
|
+
t = X("div"), o && o.c(), r = tt(), h && h.c(), n = tt(), d && d.c(), te(t, "class", "CashierHeader");
|
|
4026
4024
|
},
|
|
4027
4025
|
m(f, _) {
|
|
4028
|
-
I(f, t, _),
|
|
4026
|
+
I(f, t, _), o && o.m(t, null), fe(t, r), h && h.m(t, null), fe(t, n), d && d.m(t, null), e[17](t), i = !0;
|
|
4029
4027
|
},
|
|
4030
4028
|
p(f, [_]) {
|
|
4031
|
-
|
|
4029
|
+
a ? a.p && (!i || _ & /*$$scope*/
|
|
4032
4030
|
32768) && ve(
|
|
4033
|
-
|
|
4031
|
+
a,
|
|
4034
4032
|
s,
|
|
4035
4033
|
f,
|
|
4036
4034
|
/*$$scope*/
|
|
@@ -4045,9 +4043,9 @@ function Ii(e) {
|
|
|
4045
4043
|
/*$$scope*/
|
|
4046
4044
|
f[15]
|
|
4047
4045
|
),
|
|
4048
|
-
|
|
4049
|
-
) :
|
|
4050
|
-
2) &&
|
|
4046
|
+
Et
|
|
4047
|
+
) : o && o.p && (!i || _ & /*backButton*/
|
|
4048
|
+
2) && o.p(f, i ? _ : -1), u ? u.p && (!i || _ & /*$$scope*/
|
|
4051
4049
|
32768) && ve(
|
|
4052
4050
|
u,
|
|
4053
4051
|
l,
|
|
@@ -4064,8 +4062,8 @@ function Ii(e) {
|
|
|
4064
4062
|
/*$$scope*/
|
|
4065
4063
|
f[15]
|
|
4066
4064
|
),
|
|
4067
|
-
|
|
4068
|
-
) : h.p && (!i || _ & /*$_, titleText*/
|
|
4065
|
+
xt
|
|
4066
|
+
) : h && h.p && (!i || _ & /*$_, titleText*/
|
|
4069
4067
|
20) && h.p(f, i ? _ : -1), m ? m.p && (!i || _ & /*$$scope*/
|
|
4070
4068
|
32768) && ve(
|
|
4071
4069
|
m,
|
|
@@ -4083,36 +4081,36 @@ function Ii(e) {
|
|
|
4083
4081
|
/*$$scope*/
|
|
4084
4082
|
f[15]
|
|
4085
4083
|
),
|
|
4086
|
-
|
|
4087
|
-
) : d.p && (!i || _ & /*closeButton*/
|
|
4084
|
+
yt
|
|
4085
|
+
) : d && d.p && (!i || _ & /*closeButton*/
|
|
4088
4086
|
8) && d.p(f, i ? _ : -1);
|
|
4089
4087
|
},
|
|
4090
4088
|
i(f) {
|
|
4091
|
-
i || (ae(
|
|
4089
|
+
i || (ae(o, f), ae(h, f), ae(d, f), i = !0);
|
|
4092
4090
|
},
|
|
4093
4091
|
o(f) {
|
|
4094
|
-
Te(
|
|
4092
|
+
Te(o, f), Te(h, f), Te(d, f), i = !1;
|
|
4095
4093
|
},
|
|
4096
4094
|
d(f) {
|
|
4097
|
-
f && C(t),
|
|
4095
|
+
f && C(t), o && o.d(f), h && h.d(f), d && d.d(f), e[17](null);
|
|
4098
4096
|
}
|
|
4099
4097
|
};
|
|
4100
4098
|
}
|
|
4101
|
-
function Mi(e, t,
|
|
4102
|
-
let
|
|
4103
|
-
|
|
4104
|
-
let { $$slots: i = {}, $$scope: s } = t, { clientstyling:
|
|
4099
|
+
function Mi(e, t, r) {
|
|
4100
|
+
let n;
|
|
4101
|
+
fr(e, vi, (g) => r(4, n = g));
|
|
4102
|
+
let { $$slots: i = {}, $$scope: s } = t, { clientstyling: a = "" } = t, { clientstylingurl: o = "" } = t, { translationurl: l = "" } = t, { showbackbutton: u = "" } = t, { title: h = "header.general" } = t, { lang: c = "en" } = t, { showclosebutton: m = "" } = t, { mbsource: d = "" } = t, f, _ = !1, v, A = !1;
|
|
4105
4103
|
const O = () => {
|
|
4106
4104
|
fetch(l).then((g) => g.json()).then((g) => {
|
|
4107
|
-
Object.keys(g).forEach((
|
|
4108
|
-
|
|
4105
|
+
Object.keys(g).forEach((Qe) => {
|
|
4106
|
+
gt(Qe, g[Qe]);
|
|
4109
4107
|
});
|
|
4110
4108
|
}).catch((g) => {
|
|
4111
4109
|
console.log(g);
|
|
4112
4110
|
});
|
|
4113
4111
|
};
|
|
4114
|
-
Object.keys(
|
|
4115
|
-
|
|
4112
|
+
Object.keys(_t).forEach((g) => {
|
|
4113
|
+
gt(g, _t[g]);
|
|
4116
4114
|
});
|
|
4117
4115
|
const H = () => {
|
|
4118
4116
|
Hi(c);
|
|
@@ -4121,27 +4119,27 @@ function Mi(e, t, n) {
|
|
|
4121
4119
|
}, S = () => {
|
|
4122
4120
|
window.postMessage({ type: "BackCashier" }, window.location.href);
|
|
4123
4121
|
}, R = () => {
|
|
4124
|
-
|
|
4122
|
+
r(1, _ = !!u && u !== "false");
|
|
4125
4123
|
}, ie = () => {
|
|
4126
|
-
|
|
4127
|
-
},
|
|
4128
|
-
|
|
4124
|
+
r(3, A = !!m && m !== "false");
|
|
4125
|
+
}, rr = () => {
|
|
4126
|
+
r(2, v = h || "header.general");
|
|
4129
4127
|
};
|
|
4130
|
-
|
|
4128
|
+
yr(() => () => {
|
|
4131
4129
|
});
|
|
4132
|
-
function
|
|
4130
|
+
function nr(g) {
|
|
4133
4131
|
Le[g ? "unshift" : "push"](() => {
|
|
4134
|
-
f = g,
|
|
4132
|
+
f = g, r(0, f);
|
|
4135
4133
|
});
|
|
4136
4134
|
}
|
|
4137
4135
|
return e.$$set = (g) => {
|
|
4138
|
-
"clientstyling" in g &&
|
|
4136
|
+
"clientstyling" in g && r(7, a = g.clientstyling), "clientstylingurl" in g && r(8, o = g.clientstylingurl), "translationurl" in g && r(9, l = g.translationurl), "showbackbutton" in g && r(10, u = g.showbackbutton), "title" in g && r(11, h = g.title), "lang" in g && r(12, c = g.lang), "showclosebutton" in g && r(13, m = g.showclosebutton), "mbsource" in g && r(14, d = g.mbsource), "$$scope" in g && r(15, s = g.$$scope);
|
|
4139
4137
|
}, e.$$.update = () => {
|
|
4140
4138
|
e.$$.dirty & /*lang*/
|
|
4141
4139
|
4096 && c && H(), e.$$.dirty & /*lang, title*/
|
|
4142
|
-
6144 && c && h &&
|
|
4143
|
-
129 &&
|
|
4144
|
-
257 &&
|
|
4140
|
+
6144 && c && h && rr(), e.$$.dirty & /*clientstyling, customStylingContainer*/
|
|
4141
|
+
129 && a && f && Bi(f, a), e.$$.dirty & /*clientstylingurl, customStylingContainer*/
|
|
4142
|
+
257 && o && f && Ti(f, o), e.$$.dirty & /*mbsource, customStylingContainer*/
|
|
4145
4143
|
16385 && d && f && wi(f, `${d}.Style`), e.$$.dirty & /*lang, translationurl*/
|
|
4146
4144
|
4608 && c && l && O(), e.$$.dirty & /*showbackbutton*/
|
|
4147
4145
|
1024 && u && R(), e.$$.dirty & /*showclosebutton*/
|
|
@@ -4151,11 +4149,11 @@ function Mi(e, t, n) {
|
|
|
4151
4149
|
_,
|
|
4152
4150
|
v,
|
|
4153
4151
|
A,
|
|
4154
|
-
|
|
4152
|
+
n,
|
|
4155
4153
|
N,
|
|
4156
4154
|
S,
|
|
4157
|
-
o,
|
|
4158
4155
|
a,
|
|
4156
|
+
o,
|
|
4159
4157
|
l,
|
|
4160
4158
|
u,
|
|
4161
4159
|
h,
|
|
@@ -4164,17 +4162,17 @@ function Mi(e, t, n) {
|
|
|
4164
4162
|
d,
|
|
4165
4163
|
s,
|
|
4166
4164
|
i,
|
|
4167
|
-
|
|
4165
|
+
nr
|
|
4168
4166
|
];
|
|
4169
4167
|
}
|
|
4170
|
-
class Ri extends
|
|
4168
|
+
class Ri extends Pr {
|
|
4171
4169
|
constructor(t) {
|
|
4172
|
-
super(),
|
|
4170
|
+
super(), Ar(
|
|
4173
4171
|
this,
|
|
4174
4172
|
t,
|
|
4175
4173
|
Mi,
|
|
4176
4174
|
Ii,
|
|
4177
|
-
|
|
4175
|
+
Tt,
|
|
4178
4176
|
{
|
|
4179
4177
|
clientstyling: 7,
|
|
4180
4178
|
clientstylingurl: 8,
|
|
@@ -4237,7 +4235,7 @@ class Ri extends Pn {
|
|
|
4237
4235
|
this.$$set({ mbsource: t }), w();
|
|
4238
4236
|
}
|
|
4239
4237
|
}
|
|
4240
|
-
|
|
4238
|
+
Or(Ri, { clientstyling: {}, clientstylingurl: {}, translationurl: {}, showbackbutton: {}, title: {}, lang: {}, showclosebutton: {}, mbsource: {} }, ["leftButton", "title", "rightButton"], [], !0);
|
|
4241
4239
|
export {
|
|
4242
4240
|
Ri as default
|
|
4243
4241
|
};
|