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