@everymatrix/player-account-timeout 1.77.26 → 1.77.28
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/components/PlayerAccountGeneralConfirmationModal-BAzIqzPO.cjs +18 -0
- package/components/{PlayerAccountGeneralConfirmationModal-5qFM4_q7.js → PlayerAccountGeneralConfirmationModal-D1513x8q.js} +832 -811
- package/components/{PlayerAccountGeneralConfirmationModal-CDWu9PDO.js → PlayerAccountGeneralConfirmationModal-DdwHxQsA.js} +846 -825
- package/components/{PlayerAccountTimeout-EpPro8ec.js → PlayerAccountTimeout-BSuYuxqh.js} +111 -112
- package/components/{PlayerAccountTimeout-BKeRlSSh.cjs → PlayerAccountTimeout-DGQAeGDI.cjs} +74 -74
- package/components/{PlayerAccountTimeout-DJzkcdJo.js → PlayerAccountTimeout-i8KIJRi6.js} +508 -509
- package/es2015/player-account-timeout.cjs +1 -1
- package/es2015/player-account-timeout.js +1 -1
- package/esnext/player-account-timeout.js +1 -1
- package/package.json +1 -1
- package/stencil/index-b2193545-BeKKnKhR.js +519 -0
- package/stencil/index-b2193545-HC0t7mHa.js +503 -0
- package/stencil/index-b2193545-YW9b062G.cjs +1 -0
- package/stencil/{ui-skeleton-BPqjm-YB.cjs → ui-skeleton-BL4789dS.cjs} +1 -1
- package/stencil/{ui-skeleton-CWuMYFGQ.js → ui-skeleton-Ca5rz3Hv.js} +2 -2
- package/stencil/{ui-skeleton-ae35c6f2-CW3z59Qf.js → ui-skeleton-ae35c6f2-BDBUiN3S.js} +1 -1
- package/stencil/{ui-skeleton-ae35c6f2-DlexSQlT.js → ui-skeleton-ae35c6f2-Cn0ZM_hs.js} +1 -1
- package/stencil/{ui-skeleton-ae35c6f2-CKJgMm_5.cjs → ui-skeleton-ae35c6f2-xLf3HyeB.cjs} +1 -1
- package/stencil/{ui-skeleton-NZtdK490.js → ui-skeleton-hI4GeaLk.js} +2 -2
- package/components/PlayerAccountGeneralConfirmationModal-Cuo9r0rD.cjs +0 -18
- package/stencil/index-b2193545-BtPvM93e.js +0 -519
- package/stencil/index-b2193545-CgelUAhE.cjs +0 -1
- package/stencil/index-b2193545-D_KBbaD-.js +0 -503
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
function
|
|
1
|
+
function N() {
|
|
2
2
|
}
|
|
3
|
-
function
|
|
3
|
+
function br(e, t) {
|
|
4
4
|
for (const r in t)
|
|
5
5
|
e[r] = t[r];
|
|
6
6
|
return (
|
|
@@ -8,46 +8,46 @@ function pr(e, t) {
|
|
|
8
8
|
e
|
|
9
9
|
);
|
|
10
10
|
}
|
|
11
|
-
function
|
|
11
|
+
function Ot(e) {
|
|
12
12
|
return e();
|
|
13
13
|
}
|
|
14
|
-
function
|
|
14
|
+
function nt() {
|
|
15
15
|
return /* @__PURE__ */ Object.create(null);
|
|
16
16
|
}
|
|
17
|
-
function
|
|
18
|
-
e.forEach(
|
|
17
|
+
function W(e) {
|
|
18
|
+
e.forEach(Ot);
|
|
19
19
|
}
|
|
20
|
-
function
|
|
20
|
+
function Ye(e) {
|
|
21
21
|
return typeof e == "function";
|
|
22
22
|
}
|
|
23
|
-
function
|
|
23
|
+
function It(e, t) {
|
|
24
24
|
return e != e ? t == t : e !== t || e && typeof e == "object" || typeof e == "function";
|
|
25
25
|
}
|
|
26
|
-
function
|
|
26
|
+
function gr(e) {
|
|
27
27
|
return Object.keys(e).length === 0;
|
|
28
28
|
}
|
|
29
|
-
function
|
|
29
|
+
function Mt(e, ...t) {
|
|
30
30
|
if (e == null) {
|
|
31
31
|
for (const n of t)
|
|
32
32
|
n(void 0);
|
|
33
|
-
return
|
|
33
|
+
return N;
|
|
34
34
|
}
|
|
35
35
|
const r = e.subscribe(...t);
|
|
36
36
|
return r.unsubscribe ? () => r.unsubscribe() : r;
|
|
37
37
|
}
|
|
38
|
-
function
|
|
39
|
-
e.$$.on_destroy.push(
|
|
38
|
+
function yr(e, t, r) {
|
|
39
|
+
e.$$.on_destroy.push(Mt(t, r));
|
|
40
40
|
}
|
|
41
|
-
function
|
|
41
|
+
function vr(e, t, r, n) {
|
|
42
42
|
if (e) {
|
|
43
|
-
const i =
|
|
43
|
+
const i = Nt(e, t, r, n);
|
|
44
44
|
return e[0](i);
|
|
45
45
|
}
|
|
46
46
|
}
|
|
47
|
-
function
|
|
48
|
-
return e[1] && n ?
|
|
47
|
+
function Nt(e, t, r, n) {
|
|
48
|
+
return e[1] && n ? br(r.ctx.slice(), e[1](n(t))) : r.ctx;
|
|
49
49
|
}
|
|
50
|
-
function
|
|
50
|
+
function _r(e, t, r, n) {
|
|
51
51
|
if (e[2] && n) {
|
|
52
52
|
const i = e[2](n(r));
|
|
53
53
|
if (t.dirty === void 0)
|
|
@@ -64,11 +64,11 @@ function vr(e, t, r, n) {
|
|
|
64
64
|
}
|
|
65
65
|
function xr(e, t, r, n, i, o) {
|
|
66
66
|
if (i) {
|
|
67
|
-
const s =
|
|
67
|
+
const s = Nt(t, r, n, o);
|
|
68
68
|
e.p(s, i);
|
|
69
69
|
}
|
|
70
70
|
}
|
|
71
|
-
function
|
|
71
|
+
function Er(e) {
|
|
72
72
|
if (e.ctx.length > 32) {
|
|
73
73
|
const t = [], r = e.ctx.length / 32;
|
|
74
74
|
for (let n = 0; n < r; n++)
|
|
@@ -80,14 +80,14 @@ function _r(e) {
|
|
|
80
80
|
function B(e, t) {
|
|
81
81
|
e.appendChild(t);
|
|
82
82
|
}
|
|
83
|
-
function
|
|
84
|
-
const n =
|
|
83
|
+
function Sr(e, t, r) {
|
|
84
|
+
const n = wr(e);
|
|
85
85
|
if (!n.getElementById(t)) {
|
|
86
86
|
const i = I("style");
|
|
87
|
-
i.id = t, i.textContent = r,
|
|
87
|
+
i.id = t, i.textContent = r, Tr(n, i);
|
|
88
88
|
}
|
|
89
89
|
}
|
|
90
|
-
function
|
|
90
|
+
function wr(e) {
|
|
91
91
|
if (!e)
|
|
92
92
|
return document;
|
|
93
93
|
const t = e.getRootNode ? e.getRootNode() : e.ownerDocument;
|
|
@@ -97,62 +97,62 @@ function Sr(e) {
|
|
|
97
97
|
t
|
|
98
98
|
) : e.ownerDocument;
|
|
99
99
|
}
|
|
100
|
-
function
|
|
100
|
+
function Tr(e, t) {
|
|
101
101
|
return B(
|
|
102
102
|
/** @type {Document} */
|
|
103
103
|
e.head || e,
|
|
104
104
|
t
|
|
105
105
|
), t.sheet;
|
|
106
106
|
}
|
|
107
|
-
function
|
|
107
|
+
function ne(e, t, r) {
|
|
108
108
|
e.insertBefore(t, r || null);
|
|
109
109
|
}
|
|
110
|
-
function
|
|
110
|
+
function Z(e) {
|
|
111
111
|
e.parentNode && e.parentNode.removeChild(e);
|
|
112
112
|
}
|
|
113
|
-
function
|
|
113
|
+
function ro(e, t) {
|
|
114
114
|
for (let r = 0; r < e.length; r += 1)
|
|
115
115
|
e[r] && e[r].d(t);
|
|
116
116
|
}
|
|
117
117
|
function I(e) {
|
|
118
118
|
return document.createElement(e);
|
|
119
119
|
}
|
|
120
|
-
function
|
|
120
|
+
function it(e) {
|
|
121
121
|
return document.createElementNS("http://www.w3.org/2000/svg", e);
|
|
122
122
|
}
|
|
123
|
-
function
|
|
123
|
+
function ie(e) {
|
|
124
124
|
return document.createTextNode(e);
|
|
125
125
|
}
|
|
126
126
|
function ue() {
|
|
127
|
-
return
|
|
127
|
+
return ie(" ");
|
|
128
128
|
}
|
|
129
|
-
function
|
|
130
|
-
return
|
|
129
|
+
function no() {
|
|
130
|
+
return ie("");
|
|
131
131
|
}
|
|
132
|
-
function
|
|
132
|
+
function Me(e, t, r, n) {
|
|
133
133
|
return e.addEventListener(t, r, n), () => e.removeEventListener(t, r, n);
|
|
134
134
|
}
|
|
135
135
|
function T(e, t, r) {
|
|
136
136
|
r == null ? e.removeAttribute(t) : e.getAttribute(t) !== r && e.setAttribute(t, r);
|
|
137
137
|
}
|
|
138
|
-
function
|
|
138
|
+
function io(e, t, r) {
|
|
139
139
|
const n = t.toLowerCase();
|
|
140
140
|
n in e ? e[n] = typeof e[n] == "boolean" && r === "" ? !0 : r : t in e ? e[t] = typeof e[t] == "boolean" && r === "" ? !0 : r : T(e, t, r);
|
|
141
141
|
}
|
|
142
|
-
function
|
|
142
|
+
function Hr(e) {
|
|
143
143
|
return Array.from(e.childNodes);
|
|
144
144
|
}
|
|
145
|
-
function
|
|
145
|
+
function Ke(e, t) {
|
|
146
146
|
t = "" + t, e.data !== t && (e.data = /** @type {string} */
|
|
147
147
|
t);
|
|
148
148
|
}
|
|
149
|
-
function
|
|
149
|
+
function oo(e, t) {
|
|
150
150
|
e.value = t ?? "";
|
|
151
151
|
}
|
|
152
|
-
function
|
|
152
|
+
function so(e, t, r, n) {
|
|
153
153
|
r == null ? e.style.removeProperty(t) : e.style.setProperty(t, r, "");
|
|
154
154
|
}
|
|
155
|
-
function
|
|
155
|
+
function ao(e, t, r) {
|
|
156
156
|
for (let n = 0; n < e.options.length; n += 1) {
|
|
157
157
|
const i = e.options[n];
|
|
158
158
|
if (i.__value === t) {
|
|
@@ -162,11 +162,11 @@ function oo(e, t, r) {
|
|
|
162
162
|
}
|
|
163
163
|
(!r || t !== void 0) && (e.selectedIndex = -1);
|
|
164
164
|
}
|
|
165
|
-
function
|
|
165
|
+
function uo(e) {
|
|
166
166
|
const t = e.querySelector(":checked");
|
|
167
167
|
return t && t.__value;
|
|
168
168
|
}
|
|
169
|
-
function
|
|
169
|
+
function Ar(e) {
|
|
170
170
|
const t = {};
|
|
171
171
|
return e.childNodes.forEach(
|
|
172
172
|
/** @param {Element} node */
|
|
@@ -175,108 +175,108 @@ function Hr(e) {
|
|
|
175
175
|
}
|
|
176
176
|
), t;
|
|
177
177
|
}
|
|
178
|
-
let
|
|
179
|
-
function
|
|
180
|
-
|
|
178
|
+
let ee;
|
|
179
|
+
function K(e) {
|
|
180
|
+
ee = e;
|
|
181
181
|
}
|
|
182
|
-
function
|
|
183
|
-
if (!
|
|
182
|
+
function Br() {
|
|
183
|
+
if (!ee)
|
|
184
184
|
throw new Error("Function called outside component initialization");
|
|
185
|
-
return
|
|
185
|
+
return ee;
|
|
186
186
|
}
|
|
187
|
-
function
|
|
188
|
-
|
|
187
|
+
function Cr(e) {
|
|
188
|
+
Br().$$.on_mount.push(e);
|
|
189
189
|
}
|
|
190
|
-
const F = [],
|
|
190
|
+
const F = [], Ne = [];
|
|
191
191
|
let j = [];
|
|
192
|
-
const
|
|
193
|
-
let
|
|
194
|
-
function
|
|
195
|
-
|
|
192
|
+
const ot = [], Pr = /* @__PURE__ */ Promise.resolve();
|
|
193
|
+
let Le = !1;
|
|
194
|
+
function Or() {
|
|
195
|
+
Le || (Le = !0, Pr.then(O));
|
|
196
196
|
}
|
|
197
|
-
function
|
|
197
|
+
function Re(e) {
|
|
198
198
|
j.push(e);
|
|
199
199
|
}
|
|
200
|
-
const
|
|
200
|
+
const Te = /* @__PURE__ */ new Set();
|
|
201
201
|
let U = 0;
|
|
202
202
|
function O() {
|
|
203
203
|
if (U !== 0)
|
|
204
204
|
return;
|
|
205
|
-
const e =
|
|
205
|
+
const e = ee;
|
|
206
206
|
do {
|
|
207
207
|
try {
|
|
208
208
|
for (; U < F.length; ) {
|
|
209
209
|
const t = F[U];
|
|
210
|
-
U++,
|
|
210
|
+
U++, K(t), Ir(t.$$);
|
|
211
211
|
}
|
|
212
212
|
} catch (t) {
|
|
213
213
|
throw F.length = 0, U = 0, t;
|
|
214
214
|
}
|
|
215
|
-
for (
|
|
216
|
-
|
|
215
|
+
for (K(null), F.length = 0, U = 0; Ne.length; )
|
|
216
|
+
Ne.pop()();
|
|
217
217
|
for (let t = 0; t < j.length; t += 1) {
|
|
218
218
|
const r = j[t];
|
|
219
|
-
|
|
219
|
+
Te.has(r) || (Te.add(r), r());
|
|
220
220
|
}
|
|
221
221
|
j.length = 0;
|
|
222
222
|
} while (F.length);
|
|
223
|
-
for (;
|
|
224
|
-
|
|
225
|
-
|
|
223
|
+
for (; ot.length; )
|
|
224
|
+
ot.pop()();
|
|
225
|
+
Le = !1, Te.clear(), K(e);
|
|
226
226
|
}
|
|
227
|
-
function
|
|
227
|
+
function Ir(e) {
|
|
228
228
|
if (e.fragment !== null) {
|
|
229
|
-
e.update(),
|
|
229
|
+
e.update(), W(e.before_update);
|
|
230
230
|
const t = e.dirty;
|
|
231
|
-
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(
|
|
231
|
+
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(Re);
|
|
232
232
|
}
|
|
233
233
|
}
|
|
234
|
-
function
|
|
234
|
+
function Mr(e) {
|
|
235
235
|
const t = [], r = [];
|
|
236
236
|
j.forEach((n) => e.indexOf(n) === -1 ? t.push(n) : r.push(n)), r.forEach((n) => n()), j = t;
|
|
237
237
|
}
|
|
238
238
|
const ce = /* @__PURE__ */ new Set();
|
|
239
|
-
let
|
|
240
|
-
function
|
|
239
|
+
let Nr;
|
|
240
|
+
function Lt(e, t) {
|
|
241
241
|
e && e.i && (ce.delete(e), e.i(t));
|
|
242
242
|
}
|
|
243
|
-
function
|
|
243
|
+
function Lr(e, t, r, n) {
|
|
244
244
|
if (e && e.o) {
|
|
245
245
|
if (ce.has(e))
|
|
246
246
|
return;
|
|
247
|
-
ce.add(e),
|
|
247
|
+
ce.add(e), Nr.c.push(() => {
|
|
248
248
|
ce.delete(e);
|
|
249
249
|
}), e.o(t);
|
|
250
250
|
}
|
|
251
251
|
}
|
|
252
|
-
function
|
|
252
|
+
function lo(e) {
|
|
253
253
|
return e?.length !== void 0 ? e : Array.from(e);
|
|
254
254
|
}
|
|
255
|
-
function
|
|
255
|
+
function Rr(e, t, r) {
|
|
256
256
|
const { fragment: n, after_update: i } = e.$$;
|
|
257
|
-
n && n.m(t, r),
|
|
258
|
-
const o = e.$$.on_mount.map(
|
|
259
|
-
e.$$.on_destroy ? e.$$.on_destroy.push(...o) :
|
|
260
|
-
}), i.forEach(
|
|
257
|
+
n && n.m(t, r), Re(() => {
|
|
258
|
+
const o = e.$$.on_mount.map(Ot).filter(Ye);
|
|
259
|
+
e.$$.on_destroy ? e.$$.on_destroy.push(...o) : W(o), e.$$.on_mount = [];
|
|
260
|
+
}), i.forEach(Re);
|
|
261
261
|
}
|
|
262
|
-
function
|
|
262
|
+
function $r(e, t) {
|
|
263
263
|
const r = e.$$;
|
|
264
|
-
r.fragment !== null && (
|
|
264
|
+
r.fragment !== null && (Mr(r.after_update), W(r.on_destroy), r.fragment && r.fragment.d(t), r.on_destroy = r.fragment = null, r.ctx = []);
|
|
265
265
|
}
|
|
266
|
-
function
|
|
267
|
-
e.$$.dirty[0] === -1 && (F.push(e),
|
|
266
|
+
function Gr(e, t) {
|
|
267
|
+
e.$$.dirty[0] === -1 && (F.push(e), Or(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
|
|
268
268
|
}
|
|
269
|
-
function
|
|
270
|
-
const l =
|
|
271
|
-
|
|
269
|
+
function Ur(e, t, r, n, i, o, s = null, a = [-1]) {
|
|
270
|
+
const l = ee;
|
|
271
|
+
K(e);
|
|
272
272
|
const u = e.$$ = {
|
|
273
273
|
fragment: null,
|
|
274
274
|
ctx: [],
|
|
275
275
|
// state
|
|
276
276
|
props: o,
|
|
277
|
-
update:
|
|
277
|
+
update: N,
|
|
278
278
|
not_equal: i,
|
|
279
|
-
bound:
|
|
279
|
+
bound: nt(),
|
|
280
280
|
// lifecycle
|
|
281
281
|
on_mount: [],
|
|
282
282
|
on_destroy: [],
|
|
@@ -285,7 +285,7 @@ function Gr(e, t, r, n, i, o, s = null, a = [-1]) {
|
|
|
285
285
|
after_update: [],
|
|
286
286
|
context: new Map(t.context || (l ? l.$$.context : [])),
|
|
287
287
|
// everything else
|
|
288
|
-
callbacks:
|
|
288
|
+
callbacks: nt(),
|
|
289
289
|
dirty: a,
|
|
290
290
|
skip_bound: !1,
|
|
291
291
|
root: t.target || l.$$.root
|
|
@@ -294,19 +294,19 @@ function Gr(e, t, r, n, i, o, s = null, a = [-1]) {
|
|
|
294
294
|
let h = !1;
|
|
295
295
|
if (u.ctx = r ? r(e, t.props || {}, (c, f, ...m) => {
|
|
296
296
|
const y = m.length ? m[0] : f;
|
|
297
|
-
return u.ctx && i(u.ctx[c], u.ctx[c] = y) && (!u.skip_bound && u.bound[c] && u.bound[c](y), h &&
|
|
298
|
-
}) : [], u.update(), h = !0,
|
|
297
|
+
return u.ctx && i(u.ctx[c], u.ctx[c] = y) && (!u.skip_bound && u.bound[c] && u.bound[c](y), h && Gr(e, c)), f;
|
|
298
|
+
}) : [], u.update(), h = !0, W(u.before_update), u.fragment = n ? n(u.ctx) : !1, t.target) {
|
|
299
299
|
if (t.hydrate) {
|
|
300
|
-
const c =
|
|
301
|
-
u.fragment && u.fragment.l(c), c.forEach(
|
|
300
|
+
const c = Hr(t.target);
|
|
301
|
+
u.fragment && u.fragment.l(c), c.forEach(Z);
|
|
302
302
|
} else
|
|
303
303
|
u.fragment && u.fragment.c();
|
|
304
|
-
t.intro &&
|
|
304
|
+
t.intro && Lt(e.$$.fragment), Rr(e, t.target, t.anchor), O();
|
|
305
305
|
}
|
|
306
|
-
|
|
306
|
+
K(l);
|
|
307
307
|
}
|
|
308
|
-
let
|
|
309
|
-
typeof HTMLElement == "function" && (
|
|
308
|
+
let Rt;
|
|
309
|
+
typeof HTMLElement == "function" && (Rt = class extends HTMLElement {
|
|
310
310
|
/** The Svelte component constructor */
|
|
311
311
|
$$ctor;
|
|
312
312
|
/** Slots */
|
|
@@ -355,17 +355,17 @@ typeof HTMLElement == "function" && (Nt = class extends HTMLElement {
|
|
|
355
355
|
* @param {HTMLElement} [anchor]
|
|
356
356
|
*/
|
|
357
357
|
m: function(l, u) {
|
|
358
|
-
|
|
358
|
+
ne(l, o, u);
|
|
359
359
|
},
|
|
360
360
|
d: function(l) {
|
|
361
|
-
l &&
|
|
361
|
+
l && Z(o);
|
|
362
362
|
}
|
|
363
363
|
};
|
|
364
364
|
};
|
|
365
365
|
};
|
|
366
366
|
if (await Promise.resolve(), !this.$$cn || this.$$c)
|
|
367
367
|
return;
|
|
368
|
-
const t = {}, r =
|
|
368
|
+
const t = {}, r = Ar(this);
|
|
369
369
|
for (const i of this.$$s)
|
|
370
370
|
i in r && (t[i] = [e(i)]);
|
|
371
371
|
for (const i of this.attributes) {
|
|
@@ -452,8 +452,8 @@ function fe(e, t, r, n) {
|
|
|
452
452
|
return t;
|
|
453
453
|
}
|
|
454
454
|
}
|
|
455
|
-
function
|
|
456
|
-
let s = class extends
|
|
455
|
+
function Dr(e, t, r, n, i, o) {
|
|
456
|
+
let s = class extends Rt {
|
|
457
457
|
constructor() {
|
|
458
458
|
super(e, r, i), this.$$p_d = t;
|
|
459
459
|
}
|
|
@@ -481,7 +481,7 @@ function Ur(e, t, r, n, i, o) {
|
|
|
481
481
|
}), e.element = /** @type {any} */
|
|
482
482
|
s, s;
|
|
483
483
|
}
|
|
484
|
-
class
|
|
484
|
+
class Fr {
|
|
485
485
|
/**
|
|
486
486
|
* ### PRIVATE API
|
|
487
487
|
*
|
|
@@ -500,7 +500,7 @@ class Dr {
|
|
|
500
500
|
$$set = void 0;
|
|
501
501
|
/** @returns {void} */
|
|
502
502
|
$destroy() {
|
|
503
|
-
|
|
503
|
+
$r(this, 1), this.$destroy = N;
|
|
504
504
|
}
|
|
505
505
|
/**
|
|
506
506
|
* @template {Extract<keyof Events, string>} K
|
|
@@ -509,8 +509,8 @@ class Dr {
|
|
|
509
509
|
* @returns {() => void}
|
|
510
510
|
*/
|
|
511
511
|
$on(t, r) {
|
|
512
|
-
if (!
|
|
513
|
-
return
|
|
512
|
+
if (!Ye(r))
|
|
513
|
+
return N;
|
|
514
514
|
const n = this.$$.callbacks[t] || (this.$$.callbacks[t] = []);
|
|
515
515
|
return n.push(r), () => {
|
|
516
516
|
const i = n.indexOf(r);
|
|
@@ -522,13 +522,13 @@ class Dr {
|
|
|
522
522
|
* @returns {void}
|
|
523
523
|
*/
|
|
524
524
|
$set(t) {
|
|
525
|
-
this.$$set && !
|
|
525
|
+
this.$$set && !gr(t) && (this.$$.skip_bound = !0, this.$$set(t), this.$$.skip_bound = !1);
|
|
526
526
|
}
|
|
527
527
|
}
|
|
528
|
-
const
|
|
529
|
-
typeof window < "u" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(
|
|
530
|
-
var
|
|
531
|
-
function
|
|
528
|
+
const jr = "4";
|
|
529
|
+
typeof window < "u" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(jr);
|
|
530
|
+
var ho = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
|
|
531
|
+
function kr(e) {
|
|
532
532
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
533
533
|
}
|
|
534
534
|
/*! *****************************************************************************
|
|
@@ -545,43 +545,24 @@ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
|
545
545
|
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
546
546
|
PERFORMANCE OF THIS SOFTWARE.
|
|
547
547
|
***************************************************************************** */
|
|
548
|
-
var
|
|
549
|
-
return
|
|
548
|
+
var $e = function(e, t) {
|
|
549
|
+
return $e = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
|
|
550
550
|
r.__proto__ = n;
|
|
551
551
|
} || function(r, n) {
|
|
552
552
|
for (var i in n)
|
|
553
553
|
Object.prototype.hasOwnProperty.call(n, i) && (r[i] = n[i]);
|
|
554
|
-
},
|
|
554
|
+
}, $e(e, t);
|
|
555
555
|
};
|
|
556
|
-
function
|
|
556
|
+
function oe(e, t) {
|
|
557
557
|
if (typeof t != "function" && t !== null)
|
|
558
558
|
throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
|
|
559
|
-
|
|
559
|
+
$e(e, t);
|
|
560
560
|
function r() {
|
|
561
561
|
this.constructor = e;
|
|
562
562
|
}
|
|
563
563
|
e.prototype = t === null ? Object.create(t) : (r.prototype = t.prototype, new r());
|
|
564
564
|
}
|
|
565
|
-
|
|
566
|
-
return v = Object.assign || function(t) {
|
|
567
|
-
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
568
|
-
r = arguments[n];
|
|
569
|
-
for (var o in r)
|
|
570
|
-
Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
|
|
571
|
-
}
|
|
572
|
-
return t;
|
|
573
|
-
}, v.apply(this, arguments);
|
|
574
|
-
};
|
|
575
|
-
function kr(e, t) {
|
|
576
|
-
var r = {};
|
|
577
|
-
for (var n in e)
|
|
578
|
-
Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
579
|
-
if (e != null && typeof Object.getOwnPropertySymbols == "function")
|
|
580
|
-
for (var i = 0, n = Object.getOwnPropertySymbols(e); i < n.length; i++)
|
|
581
|
-
t.indexOf(n[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[i]) && (r[n[i]] = e[n[i]]);
|
|
582
|
-
return r;
|
|
583
|
-
}
|
|
584
|
-
function Re(e) {
|
|
565
|
+
function Ge(e) {
|
|
585
566
|
var t = typeof Symbol == "function" && Symbol.iterator, r = t && e[t], n = 0;
|
|
586
567
|
if (r)
|
|
587
568
|
return r.call(e);
|
|
@@ -593,7 +574,7 @@ function Re(e) {
|
|
|
593
574
|
};
|
|
594
575
|
throw new TypeError(t ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
|
595
576
|
}
|
|
596
|
-
function
|
|
577
|
+
function Ue(e, t) {
|
|
597
578
|
var r = typeof Symbol == "function" && e[Symbol.iterator];
|
|
598
579
|
if (!r)
|
|
599
580
|
return e;
|
|
@@ -613,22 +594,22 @@ function $e(e, t) {
|
|
|
613
594
|
}
|
|
614
595
|
return o;
|
|
615
596
|
}
|
|
616
|
-
function
|
|
617
|
-
if (
|
|
597
|
+
function De(e, t, r) {
|
|
598
|
+
if (arguments.length === 2)
|
|
618
599
|
for (var n = 0, i = t.length, o; n < i; n++)
|
|
619
600
|
(o || !(n in t)) && (o || (o = Array.prototype.slice.call(t, 0, n)), o[n] = t[n]);
|
|
620
601
|
return e.concat(o || t);
|
|
621
602
|
}
|
|
622
|
-
function
|
|
603
|
+
function L(e) {
|
|
623
604
|
return typeof e == "function";
|
|
624
605
|
}
|
|
625
|
-
function
|
|
606
|
+
function $t(e) {
|
|
626
607
|
var t = function(n) {
|
|
627
608
|
Error.call(n), n.stack = new Error().stack;
|
|
628
609
|
}, r = e(t);
|
|
629
610
|
return r.prototype = Object.create(Error.prototype), r.prototype.constructor = r, r;
|
|
630
611
|
}
|
|
631
|
-
var
|
|
612
|
+
var He = $t(function(e) {
|
|
632
613
|
return function(r) {
|
|
633
614
|
e(this), this.message = r ? r.length + ` errors occurred during unsubscription:
|
|
634
615
|
` + r.map(function(n, i) {
|
|
@@ -637,13 +618,13 @@ var we = Lt(function(e) {
|
|
|
637
618
|
`) : "", this.name = "UnsubscriptionError", this.errors = r;
|
|
638
619
|
};
|
|
639
620
|
});
|
|
640
|
-
function
|
|
621
|
+
function Fe(e, t) {
|
|
641
622
|
if (e) {
|
|
642
623
|
var r = e.indexOf(t);
|
|
643
624
|
0 <= r && e.splice(r, 1);
|
|
644
625
|
}
|
|
645
626
|
}
|
|
646
|
-
var
|
|
627
|
+
var ve = function() {
|
|
647
628
|
function e(t) {
|
|
648
629
|
this.initialTeardown = t, this.closed = !1, this._parentage = null, this._finalizers = null;
|
|
649
630
|
}
|
|
@@ -655,12 +636,12 @@ var ye = function() {
|
|
|
655
636
|
if (s)
|
|
656
637
|
if (this._parentage = null, Array.isArray(s))
|
|
657
638
|
try {
|
|
658
|
-
for (var a =
|
|
639
|
+
for (var a = Ge(s), l = a.next(); !l.done; l = a.next()) {
|
|
659
640
|
var u = l.value;
|
|
660
641
|
u.remove(this);
|
|
661
642
|
}
|
|
662
|
-
} catch (
|
|
663
|
-
t = { error:
|
|
643
|
+
} catch (d) {
|
|
644
|
+
t = { error: d };
|
|
664
645
|
} finally {
|
|
665
646
|
try {
|
|
666
647
|
l && !l.done && (r = a.return) && r.call(a);
|
|
@@ -672,26 +653,26 @@ var ye = function() {
|
|
|
672
653
|
else
|
|
673
654
|
s.remove(this);
|
|
674
655
|
var h = this.initialTeardown;
|
|
675
|
-
if (
|
|
656
|
+
if (L(h))
|
|
676
657
|
try {
|
|
677
658
|
h();
|
|
678
|
-
} catch (
|
|
679
|
-
o =
|
|
659
|
+
} catch (d) {
|
|
660
|
+
o = d instanceof He ? d.errors : [d];
|
|
680
661
|
}
|
|
681
662
|
var c = this._finalizers;
|
|
682
663
|
if (c) {
|
|
683
664
|
this._finalizers = null;
|
|
684
665
|
try {
|
|
685
|
-
for (var f =
|
|
666
|
+
for (var f = Ge(c), m = f.next(); !m.done; m = f.next()) {
|
|
686
667
|
var y = m.value;
|
|
687
668
|
try {
|
|
688
|
-
|
|
689
|
-
} catch (
|
|
690
|
-
o = o ?? [],
|
|
669
|
+
st(y);
|
|
670
|
+
} catch (d) {
|
|
671
|
+
o = o ?? [], d instanceof He ? o = De(De([], Ue(o)), Ue(d.errors)) : o.push(d);
|
|
691
672
|
}
|
|
692
673
|
}
|
|
693
|
-
} catch (
|
|
694
|
-
n = { error:
|
|
674
|
+
} catch (d) {
|
|
675
|
+
n = { error: d };
|
|
695
676
|
} finally {
|
|
696
677
|
try {
|
|
697
678
|
m && !m.done && (i = f.return) && i.call(f);
|
|
@@ -702,13 +683,13 @@ var ye = function() {
|
|
|
702
683
|
}
|
|
703
684
|
}
|
|
704
685
|
if (o)
|
|
705
|
-
throw new
|
|
686
|
+
throw new He(o);
|
|
706
687
|
}
|
|
707
688
|
}, e.prototype.add = function(t) {
|
|
708
689
|
var r;
|
|
709
690
|
if (t && t !== this)
|
|
710
691
|
if (this.closed)
|
|
711
|
-
|
|
692
|
+
st(t);
|
|
712
693
|
else {
|
|
713
694
|
if (t instanceof e) {
|
|
714
695
|
if (t.closed || t._hasParent(this))
|
|
@@ -725,56 +706,52 @@ var ye = function() {
|
|
|
725
706
|
this._parentage = Array.isArray(r) ? (r.push(t), r) : r ? [r, t] : t;
|
|
726
707
|
}, e.prototype._removeParent = function(t) {
|
|
727
708
|
var r = this._parentage;
|
|
728
|
-
r === t ? this._parentage = null : Array.isArray(r) &&
|
|
709
|
+
r === t ? this._parentage = null : Array.isArray(r) && Fe(r, t);
|
|
729
710
|
}, e.prototype.remove = function(t) {
|
|
730
711
|
var r = this._finalizers;
|
|
731
|
-
r &&
|
|
712
|
+
r && Fe(r, t), t instanceof e && t._removeParent(this);
|
|
732
713
|
}, e.EMPTY = function() {
|
|
733
714
|
var t = new e();
|
|
734
715
|
return t.closed = !0, t;
|
|
735
716
|
}(), e;
|
|
736
|
-
}(),
|
|
737
|
-
function
|
|
738
|
-
return e instanceof
|
|
717
|
+
}(), Gt = ve.EMPTY;
|
|
718
|
+
function Ut(e) {
|
|
719
|
+
return e instanceof ve || e && "closed" in e && L(e.remove) && L(e.add) && L(e.unsubscribe);
|
|
739
720
|
}
|
|
740
|
-
function
|
|
741
|
-
|
|
742
|
-
}
|
|
743
|
-
var
|
|
744
|
-
|
|
745
|
-
|
|
746
|
-
Promise: void 0,
|
|
747
|
-
useDeprecatedSynchronousErrorHandling: !1,
|
|
748
|
-
useDeprecatedNextContext: !1
|
|
749
|
-
}, Vr = {
|
|
721
|
+
function st(e) {
|
|
722
|
+
L(e) ? e() : e.unsubscribe();
|
|
723
|
+
}
|
|
724
|
+
var Vr = {
|
|
725
|
+
Promise: void 0
|
|
726
|
+
}, Xr = {
|
|
750
727
|
setTimeout: function(e, t) {
|
|
751
728
|
for (var r = [], n = 2; n < arguments.length; n++)
|
|
752
729
|
r[n - 2] = arguments[n];
|
|
753
|
-
return setTimeout.apply(void 0,
|
|
730
|
+
return setTimeout.apply(void 0, De([e, t], Ue(r)));
|
|
754
731
|
},
|
|
755
732
|
clearTimeout: function(e) {
|
|
756
733
|
return clearTimeout(e);
|
|
757
734
|
},
|
|
758
735
|
delegate: void 0
|
|
759
736
|
};
|
|
760
|
-
function
|
|
761
|
-
|
|
737
|
+
function zr(e) {
|
|
738
|
+
Xr.setTimeout(function() {
|
|
762
739
|
throw e;
|
|
763
740
|
});
|
|
764
741
|
}
|
|
765
|
-
function
|
|
742
|
+
function at() {
|
|
766
743
|
}
|
|
767
744
|
function me(e) {
|
|
768
745
|
e();
|
|
769
746
|
}
|
|
770
|
-
var
|
|
771
|
-
|
|
747
|
+
var Dt = function(e) {
|
|
748
|
+
oe(t, e);
|
|
772
749
|
function t(r) {
|
|
773
750
|
var n = e.call(this) || this;
|
|
774
|
-
return n.isStopped = !1, r ? (n.destination = r,
|
|
751
|
+
return n.isStopped = !1, r ? (n.destination = r, Ut(r) && r.add(n)) : n.destination = Qr, n;
|
|
775
752
|
}
|
|
776
753
|
return t.create = function(r, n, i) {
|
|
777
|
-
return new
|
|
754
|
+
return new je(r, n, i);
|
|
778
755
|
}, t.prototype.next = function(r) {
|
|
779
756
|
this.isStopped || this._next(r);
|
|
780
757
|
}, t.prototype.error = function(r) {
|
|
@@ -798,11 +775,7 @@ var Ut = function(e) {
|
|
|
798
775
|
this.unsubscribe();
|
|
799
776
|
}
|
|
800
777
|
}, t;
|
|
801
|
-
}(
|
|
802
|
-
function Te(e, t) {
|
|
803
|
-
return zr.call(e, t);
|
|
804
|
-
}
|
|
805
|
-
var Wr = function() {
|
|
778
|
+
}(ve), Wr = function() {
|
|
806
779
|
function e(t) {
|
|
807
780
|
this.partialObserver = t;
|
|
808
781
|
}
|
|
@@ -833,41 +806,29 @@ var Wr = function() {
|
|
|
833
806
|
le(r);
|
|
834
807
|
}
|
|
835
808
|
}, e;
|
|
836
|
-
}(),
|
|
837
|
-
|
|
809
|
+
}(), je = function(e) {
|
|
810
|
+
oe(t, e);
|
|
838
811
|
function t(r, n, i) {
|
|
839
812
|
var o = e.call(this) || this, s;
|
|
840
|
-
|
|
841
|
-
|
|
842
|
-
|
|
843
|
-
|
|
844
|
-
|
|
845
|
-
};
|
|
846
|
-
else {
|
|
847
|
-
var a;
|
|
848
|
-
o && Gt.useDeprecatedNextContext ? (a = Object.create(r), a.unsubscribe = function() {
|
|
849
|
-
return o.unsubscribe();
|
|
850
|
-
}, s = {
|
|
851
|
-
next: r.next && Te(r.next, a),
|
|
852
|
-
error: r.error && Te(r.error, a),
|
|
853
|
-
complete: r.complete && Te(r.complete, a)
|
|
854
|
-
}) : s = r;
|
|
855
|
-
}
|
|
856
|
-
return o.destination = new Wr(s), o;
|
|
813
|
+
return L(r) || !r ? s = {
|
|
814
|
+
next: r ?? void 0,
|
|
815
|
+
error: n ?? void 0,
|
|
816
|
+
complete: i ?? void 0
|
|
817
|
+
} : s = r, o.destination = new Wr(s), o;
|
|
857
818
|
}
|
|
858
819
|
return t;
|
|
859
|
-
}(
|
|
820
|
+
}(Dt);
|
|
860
821
|
function le(e) {
|
|
861
|
-
|
|
822
|
+
zr(e);
|
|
862
823
|
}
|
|
863
824
|
function Zr(e) {
|
|
864
825
|
throw e;
|
|
865
826
|
}
|
|
866
827
|
var Qr = {
|
|
867
828
|
closed: !0,
|
|
868
|
-
next:
|
|
829
|
+
next: at,
|
|
869
830
|
error: Zr,
|
|
870
|
-
complete:
|
|
831
|
+
complete: at
|
|
871
832
|
}, Jr = function() {
|
|
872
833
|
return typeof Symbol == "function" && Symbol.observable || "@@observable";
|
|
873
834
|
}();
|
|
@@ -881,7 +842,7 @@ function Yr(e) {
|
|
|
881
842
|
}, r);
|
|
882
843
|
};
|
|
883
844
|
}
|
|
884
|
-
var
|
|
845
|
+
var ut = function() {
|
|
885
846
|
function e(t) {
|
|
886
847
|
t && (this._subscribe = t);
|
|
887
848
|
}
|
|
@@ -889,7 +850,7 @@ var st = function() {
|
|
|
889
850
|
var r = new e();
|
|
890
851
|
return r.source = this, r.operator = t, r;
|
|
891
852
|
}, e.prototype.subscribe = function(t, r, n) {
|
|
892
|
-
var i = this, o = en(t) ? t : new
|
|
853
|
+
var i = this, o = en(t) ? t : new je(t, r, n);
|
|
893
854
|
return me(function() {
|
|
894
855
|
var s = i, a = s.operator, l = s.source;
|
|
895
856
|
o.add(a ? a.call(o, l) : l ? i._subscribe(o) : i._trySubscribe(o));
|
|
@@ -902,8 +863,8 @@ var st = function() {
|
|
|
902
863
|
}
|
|
903
864
|
}, e.prototype.forEach = function(t, r) {
|
|
904
865
|
var n = this;
|
|
905
|
-
return r =
|
|
906
|
-
var s = new
|
|
866
|
+
return r = lt(r), new r(function(i, o) {
|
|
867
|
+
var s = new je({
|
|
907
868
|
next: function(a) {
|
|
908
869
|
try {
|
|
909
870
|
t(a);
|
|
@@ -927,7 +888,7 @@ var st = function() {
|
|
|
927
888
|
return Yr(t)(this);
|
|
928
889
|
}, e.prototype.toPromise = function(t) {
|
|
929
890
|
var r = this;
|
|
930
|
-
return t =
|
|
891
|
+
return t = lt(t), new t(function(n, i) {
|
|
931
892
|
var o;
|
|
932
893
|
r.subscribe(function(s) {
|
|
933
894
|
return o = s;
|
|
@@ -941,28 +902,28 @@ var st = function() {
|
|
|
941
902
|
return new e(t);
|
|
942
903
|
}, e;
|
|
943
904
|
}();
|
|
944
|
-
function
|
|
905
|
+
function lt(e) {
|
|
945
906
|
var t;
|
|
946
|
-
return (t = e ??
|
|
907
|
+
return (t = e ?? Vr.Promise) !== null && t !== void 0 ? t : Promise;
|
|
947
908
|
}
|
|
948
909
|
function Kr(e) {
|
|
949
|
-
return e &&
|
|
910
|
+
return e && L(e.next) && L(e.error) && L(e.complete);
|
|
950
911
|
}
|
|
951
912
|
function en(e) {
|
|
952
|
-
return e && e instanceof
|
|
913
|
+
return e && e instanceof Dt || Kr(e) && Ut(e);
|
|
953
914
|
}
|
|
954
|
-
var tn =
|
|
915
|
+
var tn = $t(function(e) {
|
|
955
916
|
return function() {
|
|
956
917
|
e(this), this.name = "ObjectUnsubscribedError", this.message = "object unsubscribed";
|
|
957
918
|
};
|
|
958
|
-
}),
|
|
959
|
-
|
|
919
|
+
}), Ft = function(e) {
|
|
920
|
+
oe(t, e);
|
|
960
921
|
function t() {
|
|
961
922
|
var r = e.call(this) || this;
|
|
962
923
|
return r.closed = !1, r.currentObservers = null, r.observers = [], r.isStopped = !1, r.hasError = !1, r.thrownError = null, r;
|
|
963
924
|
}
|
|
964
925
|
return t.prototype.lift = function(r) {
|
|
965
|
-
var n = new
|
|
926
|
+
var n = new ht(this, this);
|
|
966
927
|
return n.operator = r, n;
|
|
967
928
|
}, t.prototype._throwIfClosed = function() {
|
|
968
929
|
if (this.closed)
|
|
@@ -974,7 +935,7 @@ var tn = Lt(function(e) {
|
|
|
974
935
|
if (n._throwIfClosed(), !n.isStopped) {
|
|
975
936
|
n.currentObservers || (n.currentObservers = Array.from(n.observers));
|
|
976
937
|
try {
|
|
977
|
-
for (var s =
|
|
938
|
+
for (var s = Ge(n.currentObservers), a = s.next(); !a.done; a = s.next()) {
|
|
978
939
|
var l = a.value;
|
|
979
940
|
l.next(r);
|
|
980
941
|
}
|
|
@@ -1023,20 +984,20 @@ var tn = Lt(function(e) {
|
|
|
1023
984
|
return this._throwIfClosed(), this._checkFinalizedStatuses(r), this._innerSubscribe(r);
|
|
1024
985
|
}, t.prototype._innerSubscribe = function(r) {
|
|
1025
986
|
var n = this, i = this, o = i.hasError, s = i.isStopped, a = i.observers;
|
|
1026
|
-
return o || s ?
|
|
1027
|
-
n.currentObservers = null,
|
|
987
|
+
return o || s ? Gt : (this.currentObservers = null, a.push(r), new ve(function() {
|
|
988
|
+
n.currentObservers = null, Fe(a, r);
|
|
1028
989
|
}));
|
|
1029
990
|
}, t.prototype._checkFinalizedStatuses = function(r) {
|
|
1030
991
|
var n = this, i = n.hasError, o = n.thrownError, s = n.isStopped;
|
|
1031
992
|
i ? r.error(o) : s && r.complete();
|
|
1032
993
|
}, t.prototype.asObservable = function() {
|
|
1033
|
-
var r = new
|
|
994
|
+
var r = new ut();
|
|
1034
995
|
return r.source = this, r;
|
|
1035
996
|
}, t.create = function(r, n) {
|
|
1036
|
-
return new
|
|
997
|
+
return new ht(r, n);
|
|
1037
998
|
}, t;
|
|
1038
|
-
}(
|
|
1039
|
-
|
|
999
|
+
}(ut), ht = function(e) {
|
|
1000
|
+
oe(t, e);
|
|
1040
1001
|
function t(r, n) {
|
|
1041
1002
|
var i = e.call(this) || this;
|
|
1042
1003
|
return i.destination = r, i.source = n, i;
|
|
@@ -1052,17 +1013,17 @@ var tn = Lt(function(e) {
|
|
|
1052
1013
|
(n = (r = this.destination) === null || r === void 0 ? void 0 : r.complete) === null || n === void 0 || n.call(r);
|
|
1053
1014
|
}, t.prototype._subscribe = function(r) {
|
|
1054
1015
|
var n, i;
|
|
1055
|
-
return (i = (n = this.source) === null || n === void 0 ? void 0 : n.subscribe(r)) !== null && i !== void 0 ? i :
|
|
1016
|
+
return (i = (n = this.source) === null || n === void 0 ? void 0 : n.subscribe(r)) !== null && i !== void 0 ? i : Gt;
|
|
1056
1017
|
}, t;
|
|
1057
|
-
}(
|
|
1018
|
+
}(Ft), jt = {
|
|
1058
1019
|
now: function() {
|
|
1059
|
-
return (
|
|
1020
|
+
return (jt.delegate || Date).now();
|
|
1060
1021
|
},
|
|
1061
1022
|
delegate: void 0
|
|
1062
1023
|
}, rn = function(e) {
|
|
1063
|
-
|
|
1024
|
+
oe(t, e);
|
|
1064
1025
|
function t(r, n, i) {
|
|
1065
|
-
r === void 0 && (r = 1 / 0), n === void 0 && (n = 1 / 0), i === void 0 && (i =
|
|
1026
|
+
r === void 0 && (r = 1 / 0), n === void 0 && (n = 1 / 0), i === void 0 && (i = jt);
|
|
1066
1027
|
var o = e.call(this) || this;
|
|
1067
1028
|
return o._bufferSize = r, o._windowTime = n, o._timestampProvider = i, o._buffer = [], o._infiniteTimeWindow = !0, o._infiniteTimeWindow = n === 1 / 0, o._bufferSize = Math.max(1, r), o._windowTime = Math.max(1, n), o;
|
|
1068
1029
|
}
|
|
@@ -1082,24 +1043,24 @@ var tn = Lt(function(e) {
|
|
|
1082
1043
|
u && o.splice(0, u + 1);
|
|
1083
1044
|
}
|
|
1084
1045
|
}, t;
|
|
1085
|
-
}(
|
|
1086
|
-
const
|
|
1087
|
-
if (
|
|
1046
|
+
}(Ft);
|
|
1047
|
+
const ct = [], ft = {}, nn = (e, t = 0) => {
|
|
1048
|
+
if (ct.indexOf(e) == -1) {
|
|
1088
1049
|
const r = new rn(t);
|
|
1089
|
-
|
|
1050
|
+
ft[e] = r, ct.push(e);
|
|
1090
1051
|
}
|
|
1091
|
-
return
|
|
1052
|
+
return ft[e];
|
|
1092
1053
|
}, D = [];
|
|
1093
1054
|
function on(e, t) {
|
|
1094
1055
|
return {
|
|
1095
|
-
subscribe:
|
|
1056
|
+
subscribe: _e(e, t).subscribe
|
|
1096
1057
|
};
|
|
1097
1058
|
}
|
|
1098
|
-
function
|
|
1059
|
+
function _e(e, t = N) {
|
|
1099
1060
|
let r;
|
|
1100
1061
|
const n = /* @__PURE__ */ new Set();
|
|
1101
1062
|
function i(a) {
|
|
1102
|
-
if (
|
|
1063
|
+
if (It(e, a) && (e = a, r)) {
|
|
1103
1064
|
const l = !D.length;
|
|
1104
1065
|
for (const u of n)
|
|
1105
1066
|
u[1](), D.push(u, e);
|
|
@@ -1113,15 +1074,15 @@ function ve(e, t = M) {
|
|
|
1113
1074
|
function o(a) {
|
|
1114
1075
|
i(a(e));
|
|
1115
1076
|
}
|
|
1116
|
-
function s(a, l =
|
|
1077
|
+
function s(a, l = N) {
|
|
1117
1078
|
const u = [a, l];
|
|
1118
|
-
return n.add(u), n.size === 1 && (r = t(i, o) ||
|
|
1079
|
+
return n.add(u), n.size === 1 && (r = t(i, o) || N), a(e), () => {
|
|
1119
1080
|
n.delete(u), n.size === 0 && r && (r(), r = null);
|
|
1120
1081
|
};
|
|
1121
1082
|
}
|
|
1122
1083
|
return { set: i, update: o, subscribe: s };
|
|
1123
1084
|
}
|
|
1124
|
-
function
|
|
1085
|
+
function Q(e, t, r) {
|
|
1125
1086
|
const n = !Array.isArray(e), i = n ? [e] : e;
|
|
1126
1087
|
if (!i.every(Boolean))
|
|
1127
1088
|
throw new Error("derived() expects stores as input, got a falsy value");
|
|
@@ -1129,26 +1090,26 @@ function J(e, t, r) {
|
|
|
1129
1090
|
return on(r, (s, a) => {
|
|
1130
1091
|
let l = !1;
|
|
1131
1092
|
const u = [];
|
|
1132
|
-
let h = 0, c =
|
|
1093
|
+
let h = 0, c = N;
|
|
1133
1094
|
const f = () => {
|
|
1134
1095
|
if (h)
|
|
1135
1096
|
return;
|
|
1136
1097
|
c();
|
|
1137
1098
|
const y = t(n ? u[0] : u, s, a);
|
|
1138
|
-
o ? s(y) : c =
|
|
1099
|
+
o ? s(y) : c = Ye(y) ? y : N;
|
|
1139
1100
|
}, m = i.map(
|
|
1140
|
-
(y,
|
|
1101
|
+
(y, d) => Mt(
|
|
1141
1102
|
y,
|
|
1142
|
-
(
|
|
1143
|
-
u[
|
|
1103
|
+
(S) => {
|
|
1104
|
+
u[d] = S, h &= ~(1 << d), l && f();
|
|
1144
1105
|
},
|
|
1145
1106
|
() => {
|
|
1146
|
-
h |= 1 <<
|
|
1107
|
+
h |= 1 << d;
|
|
1147
1108
|
}
|
|
1148
1109
|
)
|
|
1149
1110
|
);
|
|
1150
1111
|
return l = !0, f(), function() {
|
|
1151
|
-
|
|
1112
|
+
W(m), c(), l = !1;
|
|
1152
1113
|
};
|
|
1153
1114
|
});
|
|
1154
1115
|
}
|
|
@@ -1169,29 +1130,29 @@ function cn(e) {
|
|
|
1169
1130
|
function fn(e) {
|
|
1170
1131
|
return Array.isArray(e) ? [] : {};
|
|
1171
1132
|
}
|
|
1172
|
-
function
|
|
1173
|
-
return t.clone !== !1 && t.isMergeableObject(e) ?
|
|
1133
|
+
function te(e, t) {
|
|
1134
|
+
return t.clone !== !1 && t.isMergeableObject(e) ? k(fn(e), e, t) : e;
|
|
1174
1135
|
}
|
|
1175
1136
|
function mn(e, t, r) {
|
|
1176
1137
|
return e.concat(t).map(function(n) {
|
|
1177
|
-
return
|
|
1138
|
+
return te(n, r);
|
|
1178
1139
|
});
|
|
1179
1140
|
}
|
|
1180
|
-
function
|
|
1141
|
+
function pn(e, t) {
|
|
1181
1142
|
if (!t.customMerge)
|
|
1182
|
-
return
|
|
1143
|
+
return k;
|
|
1183
1144
|
var r = t.customMerge(e);
|
|
1184
|
-
return typeof r == "function" ? r :
|
|
1145
|
+
return typeof r == "function" ? r : k;
|
|
1185
1146
|
}
|
|
1186
|
-
function
|
|
1147
|
+
function dn(e) {
|
|
1187
1148
|
return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(e).filter(function(t) {
|
|
1188
1149
|
return Object.propertyIsEnumerable.call(e, t);
|
|
1189
1150
|
}) : [];
|
|
1190
1151
|
}
|
|
1191
|
-
function
|
|
1192
|
-
return Object.keys(e).concat(
|
|
1152
|
+
function mt(e) {
|
|
1153
|
+
return Object.keys(e).concat(dn(e));
|
|
1193
1154
|
}
|
|
1194
|
-
function
|
|
1155
|
+
function kt(e, t) {
|
|
1195
1156
|
try {
|
|
1196
1157
|
return t in e;
|
|
1197
1158
|
} catch {
|
|
@@ -1199,129 +1160,179 @@ function jt(e, t) {
|
|
|
1199
1160
|
}
|
|
1200
1161
|
}
|
|
1201
1162
|
function bn(e, t) {
|
|
1202
|
-
return
|
|
1163
|
+
return kt(e, t) && !(Object.hasOwnProperty.call(e, t) && Object.propertyIsEnumerable.call(e, t));
|
|
1203
1164
|
}
|
|
1204
1165
|
function gn(e, t, r) {
|
|
1205
1166
|
var n = {};
|
|
1206
|
-
return r.isMergeableObject(e) &&
|
|
1207
|
-
n[i] =
|
|
1208
|
-
}),
|
|
1209
|
-
bn(e, i) || (
|
|
1167
|
+
return r.isMergeableObject(e) && mt(e).forEach(function(i) {
|
|
1168
|
+
n[i] = te(e[i], r);
|
|
1169
|
+
}), mt(t).forEach(function(i) {
|
|
1170
|
+
bn(e, i) || (kt(e, i) && r.isMergeableObject(t[i]) ? n[i] = pn(i, r)(e[i], t[i], r) : n[i] = te(t[i], r));
|
|
1210
1171
|
}), n;
|
|
1211
1172
|
}
|
|
1212
|
-
function
|
|
1213
|
-
r = r || {}, r.arrayMerge = r.arrayMerge || mn, r.isMergeableObject = r.isMergeableObject || sn, r.cloneUnlessOtherwiseSpecified =
|
|
1173
|
+
function k(e, t, r) {
|
|
1174
|
+
r = r || {}, r.arrayMerge = r.arrayMerge || mn, r.isMergeableObject = r.isMergeableObject || sn, r.cloneUnlessOtherwiseSpecified = te;
|
|
1214
1175
|
var n = Array.isArray(t), i = Array.isArray(e), o = n === i;
|
|
1215
|
-
return o ? n ? r.arrayMerge(e, t, r) : gn(e, t, r) :
|
|
1176
|
+
return o ? n ? r.arrayMerge(e, t, r) : gn(e, t, r) : te(t, r);
|
|
1216
1177
|
}
|
|
1217
|
-
|
|
1178
|
+
k.all = function(t, r) {
|
|
1218
1179
|
if (!Array.isArray(t))
|
|
1219
1180
|
throw new Error("first argument should be an array");
|
|
1220
1181
|
return t.reduce(function(n, i) {
|
|
1221
|
-
return
|
|
1182
|
+
return k(n, i, r);
|
|
1222
1183
|
}, {});
|
|
1223
1184
|
};
|
|
1224
|
-
var yn =
|
|
1225
|
-
const
|
|
1226
|
-
function
|
|
1227
|
-
|
|
1185
|
+
var yn = k, vn = yn;
|
|
1186
|
+
const _n = /* @__PURE__ */ kr(vn);
|
|
1187
|
+
var ke = function(e, t) {
|
|
1188
|
+
return ke = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
|
|
1189
|
+
r.__proto__ = n;
|
|
1190
|
+
} || function(r, n) {
|
|
1191
|
+
for (var i in n)
|
|
1192
|
+
Object.prototype.hasOwnProperty.call(n, i) && (r[i] = n[i]);
|
|
1193
|
+
}, ke(e, t);
|
|
1194
|
+
};
|
|
1195
|
+
function xe(e, t) {
|
|
1196
|
+
if (typeof t != "function" && t !== null)
|
|
1197
|
+
throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
|
|
1198
|
+
ke(e, t);
|
|
1199
|
+
function r() {
|
|
1200
|
+
this.constructor = e;
|
|
1201
|
+
}
|
|
1202
|
+
e.prototype = t === null ? Object.create(t) : (r.prototype = t.prototype, new r());
|
|
1203
|
+
}
|
|
1204
|
+
var M = function() {
|
|
1205
|
+
return M = Object.assign || function(t) {
|
|
1206
|
+
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
1207
|
+
r = arguments[n];
|
|
1208
|
+
for (var o in r)
|
|
1209
|
+
Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
|
|
1210
|
+
}
|
|
1211
|
+
return t;
|
|
1212
|
+
}, M.apply(this, arguments);
|
|
1213
|
+
};
|
|
1214
|
+
function xn(e, t) {
|
|
1215
|
+
var r = {};
|
|
1216
|
+
for (var n in e)
|
|
1217
|
+
Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
1218
|
+
if (e != null && typeof Object.getOwnPropertySymbols == "function")
|
|
1219
|
+
for (var i = 0, n = Object.getOwnPropertySymbols(e); i < n.length; i++)
|
|
1220
|
+
t.indexOf(n[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[i]) && (r[n[i]] = e[n[i]]);
|
|
1221
|
+
return r;
|
|
1222
|
+
}
|
|
1223
|
+
function Ae(e, t, r) {
|
|
1224
|
+
if (r || arguments.length === 2)
|
|
1225
|
+
for (var n = 0, i = t.length, o; n < i; n++)
|
|
1226
|
+
(o || !(n in t)) && (o || (o = Array.prototype.slice.call(t, 0, n)), o[n] = t[n]);
|
|
1227
|
+
return e.concat(o || Array.prototype.slice.call(t));
|
|
1228
|
+
}
|
|
1229
|
+
function Be(e, t) {
|
|
1230
|
+
var r = t && t.cache ? t.cache : Bn, n = t && t.serializer ? t.serializer : Hn, i = t && t.strategy ? t.strategy : wn;
|
|
1228
1231
|
return i(e, {
|
|
1229
1232
|
cache: r,
|
|
1230
1233
|
serializer: n
|
|
1231
1234
|
});
|
|
1232
1235
|
}
|
|
1233
|
-
function
|
|
1236
|
+
function En(e) {
|
|
1234
1237
|
return e == null || typeof e == "number" || typeof e == "boolean";
|
|
1235
1238
|
}
|
|
1236
|
-
function
|
|
1237
|
-
var i =
|
|
1239
|
+
function Sn(e, t, r, n) {
|
|
1240
|
+
var i = En(n) ? n : r(n), o = t.get(i);
|
|
1238
1241
|
return typeof o > "u" && (o = e.call(this, n), t.set(i, o)), o;
|
|
1239
1242
|
}
|
|
1240
1243
|
function Vt(e, t, r) {
|
|
1241
1244
|
var n = Array.prototype.slice.call(arguments, 3), i = r(n), o = t.get(i);
|
|
1242
1245
|
return typeof o > "u" && (o = e.apply(this, n), t.set(i, o)), o;
|
|
1243
1246
|
}
|
|
1244
|
-
function
|
|
1247
|
+
function Xt(e, t, r, n, i) {
|
|
1245
1248
|
return r.bind(t, e, n, i);
|
|
1246
1249
|
}
|
|
1247
|
-
function En(e, t) {
|
|
1248
|
-
var r = e.length === 1 ? kt : Vt;
|
|
1249
|
-
return Je(e, this, r, t.cache.create(), t.serializer);
|
|
1250
|
-
}
|
|
1251
|
-
function Sn(e, t) {
|
|
1252
|
-
return Je(e, this, Vt, t.cache.create(), t.serializer);
|
|
1253
|
-
}
|
|
1254
1250
|
function wn(e, t) {
|
|
1255
|
-
|
|
1251
|
+
var r = e.length === 1 ? Sn : Vt;
|
|
1252
|
+
return Xt(e, this, r, t.cache.create(), t.serializer);
|
|
1256
1253
|
}
|
|
1257
|
-
|
|
1258
|
-
return
|
|
1259
|
-
};
|
|
1260
|
-
function qe() {
|
|
1261
|
-
this.cache = /* @__PURE__ */ Object.create(null);
|
|
1254
|
+
function Tn(e, t) {
|
|
1255
|
+
return Xt(e, this, Vt, t.cache.create(), t.serializer);
|
|
1262
1256
|
}
|
|
1263
|
-
|
|
1264
|
-
return
|
|
1265
|
-
}
|
|
1266
|
-
|
|
1267
|
-
|
|
1268
|
-
|
|
1269
|
-
|
|
1257
|
+
var Hn = function() {
|
|
1258
|
+
return JSON.stringify(arguments);
|
|
1259
|
+
}, An = (
|
|
1260
|
+
/** @class */
|
|
1261
|
+
function() {
|
|
1262
|
+
function e() {
|
|
1263
|
+
this.cache = /* @__PURE__ */ Object.create(null);
|
|
1264
|
+
}
|
|
1265
|
+
return e.prototype.get = function(t) {
|
|
1266
|
+
return this.cache[t];
|
|
1267
|
+
}, e.prototype.set = function(t, r) {
|
|
1268
|
+
this.cache[t] = r;
|
|
1269
|
+
}, e;
|
|
1270
|
+
}()
|
|
1271
|
+
), Bn = {
|
|
1270
1272
|
create: function() {
|
|
1271
|
-
return new
|
|
1273
|
+
return new An();
|
|
1272
1274
|
}
|
|
1273
|
-
},
|
|
1274
|
-
variadic:
|
|
1275
|
-
|
|
1276
|
-
|
|
1275
|
+
}, Ce = {
|
|
1276
|
+
variadic: Tn
|
|
1277
|
+
}, be = function() {
|
|
1278
|
+
return be = Object.assign || function(t) {
|
|
1279
|
+
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
1280
|
+
r = arguments[n];
|
|
1281
|
+
for (var o in r)
|
|
1282
|
+
Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
|
|
1283
|
+
}
|
|
1284
|
+
return t;
|
|
1285
|
+
}, be.apply(this, arguments);
|
|
1286
|
+
};
|
|
1287
|
+
var p;
|
|
1277
1288
|
(function(e) {
|
|
1278
1289
|
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";
|
|
1279
|
-
})(
|
|
1280
|
-
var
|
|
1290
|
+
})(p || (p = {}));
|
|
1291
|
+
var E;
|
|
1281
1292
|
(function(e) {
|
|
1282
1293
|
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";
|
|
1283
|
-
})(
|
|
1284
|
-
var
|
|
1294
|
+
})(E || (E = {}));
|
|
1295
|
+
var V;
|
|
1285
1296
|
(function(e) {
|
|
1286
1297
|
e[e.number = 0] = "number", e[e.dateTime = 1] = "dateTime";
|
|
1287
|
-
})(
|
|
1288
|
-
function
|
|
1289
|
-
return e.type ===
|
|
1290
|
-
}
|
|
1291
|
-
function An(e) {
|
|
1292
|
-
return e.type === S.argument;
|
|
1298
|
+
})(V || (V = {}));
|
|
1299
|
+
function pt(e) {
|
|
1300
|
+
return e.type === E.literal;
|
|
1293
1301
|
}
|
|
1294
|
-
function
|
|
1295
|
-
return e.type ===
|
|
1302
|
+
function Cn(e) {
|
|
1303
|
+
return e.type === E.argument;
|
|
1296
1304
|
}
|
|
1297
1305
|
function zt(e) {
|
|
1298
|
-
return e.type ===
|
|
1306
|
+
return e.type === E.number;
|
|
1299
1307
|
}
|
|
1300
1308
|
function Wt(e) {
|
|
1301
|
-
return e.type ===
|
|
1309
|
+
return e.type === E.date;
|
|
1302
1310
|
}
|
|
1303
1311
|
function Zt(e) {
|
|
1304
|
-
return e.type ===
|
|
1312
|
+
return e.type === E.time;
|
|
1305
1313
|
}
|
|
1306
1314
|
function Qt(e) {
|
|
1307
|
-
return e.type ===
|
|
1308
|
-
}
|
|
1309
|
-
function Bn(e) {
|
|
1310
|
-
return e.type === S.pound;
|
|
1315
|
+
return e.type === E.select;
|
|
1311
1316
|
}
|
|
1312
1317
|
function Jt(e) {
|
|
1313
|
-
return e.type ===
|
|
1318
|
+
return e.type === E.plural;
|
|
1319
|
+
}
|
|
1320
|
+
function Pn(e) {
|
|
1321
|
+
return e.type === E.pound;
|
|
1314
1322
|
}
|
|
1315
1323
|
function qt(e) {
|
|
1316
|
-
return
|
|
1324
|
+
return e.type === E.tag;
|
|
1317
1325
|
}
|
|
1318
|
-
function
|
|
1319
|
-
return !!(e && typeof e == "object" && e.type ===
|
|
1326
|
+
function Yt(e) {
|
|
1327
|
+
return !!(e && typeof e == "object" && e.type === V.number);
|
|
1320
1328
|
}
|
|
1321
|
-
|
|
1322
|
-
|
|
1329
|
+
function Ve(e) {
|
|
1330
|
+
return !!(e && typeof e == "object" && e.type === V.dateTime);
|
|
1331
|
+
}
|
|
1332
|
+
var Kt = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, On = /(?:[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;
|
|
1333
|
+
function In(e) {
|
|
1323
1334
|
var t = {};
|
|
1324
|
-
return e.replace(
|
|
1335
|
+
return e.replace(On, function(r) {
|
|
1325
1336
|
var n = r.length;
|
|
1326
1337
|
switch (r[0]) {
|
|
1327
1338
|
case "G":
|
|
@@ -1410,11 +1421,21 @@ function Pn(e) {
|
|
|
1410
1421
|
return "";
|
|
1411
1422
|
}), t;
|
|
1412
1423
|
}
|
|
1413
|
-
var
|
|
1414
|
-
function
|
|
1424
|
+
var w = function() {
|
|
1425
|
+
return w = Object.assign || function(t) {
|
|
1426
|
+
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
1427
|
+
r = arguments[n];
|
|
1428
|
+
for (var o in r)
|
|
1429
|
+
Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
|
|
1430
|
+
}
|
|
1431
|
+
return t;
|
|
1432
|
+
}, w.apply(this, arguments);
|
|
1433
|
+
};
|
|
1434
|
+
var Mn = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
|
|
1435
|
+
function Nn(e) {
|
|
1415
1436
|
if (e.length === 0)
|
|
1416
1437
|
throw new Error("Number skeleton cannot be empty");
|
|
1417
|
-
for (var t = e.split(
|
|
1438
|
+
for (var t = e.split(Mn).filter(function(f) {
|
|
1418
1439
|
return f.length > 0;
|
|
1419
1440
|
}), r = [], n = 0, i = t; n < i.length; n++) {
|
|
1420
1441
|
var o = i[n], s = o.split("/");
|
|
@@ -1429,17 +1450,17 @@ function In(e) {
|
|
|
1429
1450
|
}
|
|
1430
1451
|
return r;
|
|
1431
1452
|
}
|
|
1432
|
-
function
|
|
1453
|
+
function Ln(e) {
|
|
1433
1454
|
return e.replace(/^(.*?)-/, "");
|
|
1434
1455
|
}
|
|
1435
|
-
var
|
|
1436
|
-
function
|
|
1456
|
+
var dt = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, er = /^(@+)?(\+|#+)?[rs]?$/g, Rn = /(\*)(0+)|(#+)(0+)|(0+)/g, tr = /^(0+)$/;
|
|
1457
|
+
function bt(e) {
|
|
1437
1458
|
var t = {};
|
|
1438
|
-
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(
|
|
1459
|
+
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(er, function(r, n, i) {
|
|
1439
1460
|
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)), "";
|
|
1440
1461
|
}), t;
|
|
1441
1462
|
}
|
|
1442
|
-
function
|
|
1463
|
+
function rr(e) {
|
|
1443
1464
|
switch (e) {
|
|
1444
1465
|
case "sign-auto":
|
|
1445
1466
|
return {
|
|
@@ -1479,7 +1500,7 @@ function tr(e) {
|
|
|
1479
1500
|
};
|
|
1480
1501
|
}
|
|
1481
1502
|
}
|
|
1482
|
-
function
|
|
1503
|
+
function $n(e) {
|
|
1483
1504
|
var t;
|
|
1484
1505
|
if (e[0] === "E" && e[1] === "E" ? (t = {
|
|
1485
1506
|
notation: "engineering"
|
|
@@ -1487,17 +1508,17 @@ function Ln(e) {
|
|
|
1487
1508
|
notation: "scientific"
|
|
1488
1509
|
}, e = e.slice(1)), t) {
|
|
1489
1510
|
var r = e.slice(0, 2);
|
|
1490
|
-
if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !
|
|
1511
|
+
if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !tr.test(e))
|
|
1491
1512
|
throw new Error("Malformed concise eng/scientific notation");
|
|
1492
1513
|
t.minimumIntegerDigits = e.length;
|
|
1493
1514
|
}
|
|
1494
1515
|
return t;
|
|
1495
1516
|
}
|
|
1496
|
-
function
|
|
1497
|
-
var t = {}, r =
|
|
1517
|
+
function gt(e) {
|
|
1518
|
+
var t = {}, r = rr(e);
|
|
1498
1519
|
return r || t;
|
|
1499
1520
|
}
|
|
1500
|
-
function
|
|
1521
|
+
function Gn(e) {
|
|
1501
1522
|
for (var t = {}, r = 0, n = e; r < n.length; r++) {
|
|
1502
1523
|
var i = n[r];
|
|
1503
1524
|
switch (i.stem) {
|
|
@@ -1521,7 +1542,7 @@ function Rn(e) {
|
|
|
1521
1542
|
continue;
|
|
1522
1543
|
case "measure-unit":
|
|
1523
1544
|
case "unit":
|
|
1524
|
-
t.style = "unit", t.unit =
|
|
1545
|
+
t.style = "unit", t.unit = Ln(i.options[0]);
|
|
1525
1546
|
continue;
|
|
1526
1547
|
case "compact-short":
|
|
1527
1548
|
case "K":
|
|
@@ -1532,13 +1553,13 @@ function Rn(e) {
|
|
|
1532
1553
|
t.notation = "compact", t.compactDisplay = "long";
|
|
1533
1554
|
continue;
|
|
1534
1555
|
case "scientific":
|
|
1535
|
-
t =
|
|
1536
|
-
return
|
|
1556
|
+
t = w(w(w({}, t), { notation: "scientific" }), i.options.reduce(function(l, u) {
|
|
1557
|
+
return w(w({}, l), gt(u));
|
|
1537
1558
|
}, {}));
|
|
1538
1559
|
continue;
|
|
1539
1560
|
case "engineering":
|
|
1540
|
-
t =
|
|
1541
|
-
return
|
|
1561
|
+
t = w(w(w({}, t), { notation: "engineering" }), i.options.reduce(function(l, u) {
|
|
1562
|
+
return w(w({}, l), gt(u));
|
|
1542
1563
|
}, {}));
|
|
1543
1564
|
continue;
|
|
1544
1565
|
case "notation-simple":
|
|
@@ -1583,7 +1604,7 @@ function Rn(e) {
|
|
|
1583
1604
|
case "integer-width":
|
|
1584
1605
|
if (i.options.length > 1)
|
|
1585
1606
|
throw new RangeError("integer-width stems only accept a single optional option");
|
|
1586
|
-
i.options[0].replace(
|
|
1607
|
+
i.options[0].replace(Rn, function(l, u, h, c, f, m) {
|
|
1587
1608
|
if (u)
|
|
1588
1609
|
t.minimumIntegerDigits = h.length;
|
|
1589
1610
|
else {
|
|
@@ -1596,28 +1617,28 @@ function Rn(e) {
|
|
|
1596
1617
|
});
|
|
1597
1618
|
continue;
|
|
1598
1619
|
}
|
|
1599
|
-
if (
|
|
1620
|
+
if (tr.test(i.stem)) {
|
|
1600
1621
|
t.minimumIntegerDigits = i.stem.length;
|
|
1601
1622
|
continue;
|
|
1602
1623
|
}
|
|
1603
|
-
if (
|
|
1624
|
+
if (dt.test(i.stem)) {
|
|
1604
1625
|
if (i.options.length > 1)
|
|
1605
1626
|
throw new RangeError("Fraction-precision stems only accept a single optional option");
|
|
1606
|
-
i.stem.replace(
|
|
1627
|
+
i.stem.replace(dt, function(l, u, h, c, f, m) {
|
|
1607
1628
|
return h === "*" ? t.minimumFractionDigits = u.length : c && c[0] === "#" ? t.maximumFractionDigits = c.length : f && m ? (t.minimumFractionDigits = f.length, t.maximumFractionDigits = f.length + m.length) : (t.minimumFractionDigits = u.length, t.maximumFractionDigits = u.length), "";
|
|
1608
1629
|
});
|
|
1609
1630
|
var o = i.options[0];
|
|
1610
|
-
o === "w" ? t =
|
|
1631
|
+
o === "w" ? t = w(w({}, t), { trailingZeroDisplay: "stripIfInteger" }) : o && (t = w(w({}, t), bt(o)));
|
|
1611
1632
|
continue;
|
|
1612
1633
|
}
|
|
1613
|
-
if (
|
|
1614
|
-
t =
|
|
1634
|
+
if (er.test(i.stem)) {
|
|
1635
|
+
t = w(w({}, t), bt(i.stem));
|
|
1615
1636
|
continue;
|
|
1616
1637
|
}
|
|
1617
|
-
var s =
|
|
1618
|
-
s && (t =
|
|
1619
|
-
var a =
|
|
1620
|
-
a && (t =
|
|
1638
|
+
var s = rr(i.stem);
|
|
1639
|
+
s && (t = w(w({}, t), s));
|
|
1640
|
+
var a = $n(i.stem);
|
|
1641
|
+
a && (t = w(w({}, t), a));
|
|
1621
1642
|
}
|
|
1622
1643
|
return t;
|
|
1623
1644
|
}
|
|
@@ -3036,13 +3057,13 @@ var he = {
|
|
|
3036
3057
|
"h"
|
|
3037
3058
|
]
|
|
3038
3059
|
};
|
|
3039
|
-
function
|
|
3060
|
+
function Un(e, t) {
|
|
3040
3061
|
for (var r = "", n = 0; n < e.length; n++) {
|
|
3041
3062
|
var i = e.charAt(n);
|
|
3042
3063
|
if (i === "j") {
|
|
3043
3064
|
for (var o = 0; n + 1 < e.length && e.charAt(n + 1) === i; )
|
|
3044
3065
|
o++, n++;
|
|
3045
|
-
var s = 1 + (o & 1), a = o < 2 ? 1 : 3 + (o >> 1), l = "a", u =
|
|
3066
|
+
var s = 1 + (o & 1), a = o < 2 ? 1 : 3 + (o >> 1), l = "a", u = Dn(t);
|
|
3046
3067
|
for ((u == "H" || u == "k") && (a = 0); a-- > 0; )
|
|
3047
3068
|
r += l;
|
|
3048
3069
|
for (; s-- > 0; )
|
|
@@ -3052,7 +3073,7 @@ function $n(e, t) {
|
|
|
3052
3073
|
}
|
|
3053
3074
|
return r;
|
|
3054
3075
|
}
|
|
3055
|
-
function
|
|
3076
|
+
function Dn(e) {
|
|
3056
3077
|
var t = e.hourCycle;
|
|
3057
3078
|
if (t === void 0 && // @ts-ignore hourCycle(s) is not identified yet
|
|
3058
3079
|
e.hourCycles && // @ts-ignore
|
|
@@ -3074,20 +3095,20 @@ function Gn(e) {
|
|
|
3074
3095
|
var i = he[n || ""] || he[r || ""] || he["".concat(r, "-001")] || he["001"];
|
|
3075
3096
|
return i[0];
|
|
3076
3097
|
}
|
|
3077
|
-
var
|
|
3098
|
+
var Pe, Fn = new RegExp("^".concat(Kt.source, "*")), jn = new RegExp("".concat(Kt.source, "*$"));
|
|
3078
3099
|
function g(e, t) {
|
|
3079
3100
|
return { start: e, end: t };
|
|
3080
3101
|
}
|
|
3081
|
-
var
|
|
3102
|
+
var kn = !!String.prototype.startsWith && "_a".startsWith("a", 1), Vn = !!String.fromCodePoint, Xn = !!Object.fromEntries, zn = !!String.prototype.codePointAt, Wn = !!String.prototype.trimStart, Zn = !!String.prototype.trimEnd, Qn = !!Number.isSafeInteger, Jn = Qn ? Number.isSafeInteger : function(e) {
|
|
3082
3103
|
return typeof e == "number" && isFinite(e) && Math.floor(e) === e && Math.abs(e) <= 9007199254740991;
|
|
3083
|
-
},
|
|
3104
|
+
}, Xe = !0;
|
|
3084
3105
|
try {
|
|
3085
|
-
var
|
|
3086
|
-
|
|
3106
|
+
var qn = ir("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
3107
|
+
Xe = ((Pe = qn.exec("a")) === null || Pe === void 0 ? void 0 : Pe[0]) === "a";
|
|
3087
3108
|
} catch {
|
|
3088
|
-
|
|
3109
|
+
Xe = !1;
|
|
3089
3110
|
}
|
|
3090
|
-
var
|
|
3111
|
+
var yt = kn ? (
|
|
3091
3112
|
// Native
|
|
3092
3113
|
function(t, r, n) {
|
|
3093
3114
|
return t.startsWith(r, n);
|
|
@@ -3097,7 +3118,7 @@ var bt = Fn ? (
|
|
|
3097
3118
|
function(t, r, n) {
|
|
3098
3119
|
return t.slice(n, n + r.length) === r;
|
|
3099
3120
|
}
|
|
3100
|
-
),
|
|
3121
|
+
), ze = Vn ? String.fromCodePoint : (
|
|
3101
3122
|
// IE11
|
|
3102
3123
|
function() {
|
|
3103
3124
|
for (var t = [], r = 0; r < arguments.length; r++)
|
|
@@ -3109,9 +3130,9 @@ var bt = Fn ? (
|
|
|
3109
3130
|
}
|
|
3110
3131
|
return n;
|
|
3111
3132
|
}
|
|
3112
|
-
),
|
|
3133
|
+
), vt = (
|
|
3113
3134
|
// native
|
|
3114
|
-
|
|
3135
|
+
Xn ? Object.fromEntries : (
|
|
3115
3136
|
// Ponyfill
|
|
3116
3137
|
function(t) {
|
|
3117
3138
|
for (var r = {}, n = 0, i = t; n < i.length; n++) {
|
|
@@ -3121,7 +3142,7 @@ var bt = Fn ? (
|
|
|
3121
3142
|
return r;
|
|
3122
3143
|
}
|
|
3123
3144
|
)
|
|
3124
|
-
),
|
|
3145
|
+
), nr = zn ? (
|
|
3125
3146
|
// Native
|
|
3126
3147
|
function(t, r) {
|
|
3127
3148
|
return t.codePointAt(r);
|
|
@@ -3135,7 +3156,7 @@ var bt = Fn ? (
|
|
|
3135
3156
|
return i < 55296 || i > 56319 || r + 1 === n || (o = t.charCodeAt(r + 1)) < 56320 || o > 57343 ? i : (i - 55296 << 10) + (o - 56320) + 65536;
|
|
3136
3157
|
}
|
|
3137
3158
|
}
|
|
3138
|
-
),
|
|
3159
|
+
), Yn = Wn ? (
|
|
3139
3160
|
// Native
|
|
3140
3161
|
function(t) {
|
|
3141
3162
|
return t.trimStart();
|
|
@@ -3143,9 +3164,9 @@ var bt = Fn ? (
|
|
|
3143
3164
|
) : (
|
|
3144
3165
|
// Ponyfill
|
|
3145
3166
|
function(t) {
|
|
3146
|
-
return t.replace(
|
|
3167
|
+
return t.replace(Fn, "");
|
|
3147
3168
|
}
|
|
3148
|
-
),
|
|
3169
|
+
), Kn = Zn ? (
|
|
3149
3170
|
// Native
|
|
3150
3171
|
function(t) {
|
|
3151
3172
|
return t.trimEnd();
|
|
@@ -3153,32 +3174,32 @@ var bt = Fn ? (
|
|
|
3153
3174
|
) : (
|
|
3154
3175
|
// Ponyfill
|
|
3155
3176
|
function(t) {
|
|
3156
|
-
return t.replace(
|
|
3177
|
+
return t.replace(jn, "");
|
|
3157
3178
|
}
|
|
3158
3179
|
);
|
|
3159
|
-
function
|
|
3180
|
+
function ir(e, t) {
|
|
3160
3181
|
return new RegExp(e, t);
|
|
3161
3182
|
}
|
|
3162
|
-
var
|
|
3163
|
-
if (
|
|
3164
|
-
var
|
|
3165
|
-
|
|
3183
|
+
var We;
|
|
3184
|
+
if (Xe) {
|
|
3185
|
+
var _t = ir("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
3186
|
+
We = function(t, r) {
|
|
3166
3187
|
var n;
|
|
3167
|
-
|
|
3168
|
-
var i =
|
|
3188
|
+
_t.lastIndex = r;
|
|
3189
|
+
var i = _t.exec(t);
|
|
3169
3190
|
return (n = i[1]) !== null && n !== void 0 ? n : "";
|
|
3170
3191
|
};
|
|
3171
3192
|
} else
|
|
3172
|
-
|
|
3193
|
+
We = function(t, r) {
|
|
3173
3194
|
for (var n = []; ; ) {
|
|
3174
|
-
var i =
|
|
3175
|
-
if (i === void 0 ||
|
|
3195
|
+
var i = nr(t, r);
|
|
3196
|
+
if (i === void 0 || or(i) || ni(i))
|
|
3176
3197
|
break;
|
|
3177
3198
|
n.push(i), r += i >= 65536 ? 2 : 1;
|
|
3178
3199
|
}
|
|
3179
|
-
return
|
|
3200
|
+
return ze.apply(void 0, n);
|
|
3180
3201
|
};
|
|
3181
|
-
var
|
|
3202
|
+
var ei = (
|
|
3182
3203
|
/** @class */
|
|
3183
3204
|
function() {
|
|
3184
3205
|
function e(t, r) {
|
|
@@ -3202,14 +3223,14 @@ var Yn = (
|
|
|
3202
3223
|
if (o === 35 && (r === "plural" || r === "selectordinal")) {
|
|
3203
3224
|
var a = this.clonePosition();
|
|
3204
3225
|
this.bump(), i.push({
|
|
3205
|
-
type:
|
|
3226
|
+
type: E.pound,
|
|
3206
3227
|
location: g(a, this.clonePosition())
|
|
3207
3228
|
});
|
|
3208
3229
|
} else if (o === 60 && !this.ignoreTag && this.peek() === 47) {
|
|
3209
3230
|
if (n)
|
|
3210
3231
|
break;
|
|
3211
|
-
return this.error(
|
|
3212
|
-
} else if (o === 60 && !this.ignoreTag &&
|
|
3232
|
+
return this.error(p.UNMATCHED_CLOSING_TAG, g(this.clonePosition(), this.clonePosition()));
|
|
3233
|
+
} else if (o === 60 && !this.ignoreTag && Ze(this.peek() || 0)) {
|
|
3213
3234
|
var s = this.parseTag(t, r);
|
|
3214
3235
|
if (s.err)
|
|
3215
3236
|
return s;
|
|
@@ -3230,7 +3251,7 @@ var Yn = (
|
|
|
3230
3251
|
if (this.bumpSpace(), this.bumpIf("/>"))
|
|
3231
3252
|
return {
|
|
3232
3253
|
val: {
|
|
3233
|
-
type:
|
|
3254
|
+
type: E.literal,
|
|
3234
3255
|
value: "<".concat(i, "/>"),
|
|
3235
3256
|
location: g(n, this.clonePosition())
|
|
3236
3257
|
},
|
|
@@ -3242,25 +3263,25 @@ var Yn = (
|
|
|
3242
3263
|
return o;
|
|
3243
3264
|
var s = o.val, a = this.clonePosition();
|
|
3244
3265
|
if (this.bumpIf("</")) {
|
|
3245
|
-
if (this.isEOF() || !
|
|
3246
|
-
return this.error(
|
|
3266
|
+
if (this.isEOF() || !Ze(this.char()))
|
|
3267
|
+
return this.error(p.INVALID_TAG, g(a, this.clonePosition()));
|
|
3247
3268
|
var l = this.clonePosition(), u = this.parseTagName();
|
|
3248
|
-
return i !== u ? this.error(
|
|
3269
|
+
return i !== u ? this.error(p.UNMATCHED_CLOSING_TAG, g(l, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
|
|
3249
3270
|
val: {
|
|
3250
|
-
type:
|
|
3271
|
+
type: E.tag,
|
|
3251
3272
|
value: i,
|
|
3252
3273
|
children: s,
|
|
3253
3274
|
location: g(n, this.clonePosition())
|
|
3254
3275
|
},
|
|
3255
3276
|
err: null
|
|
3256
|
-
} : this.error(
|
|
3277
|
+
} : this.error(p.INVALID_TAG, g(a, this.clonePosition())));
|
|
3257
3278
|
} else
|
|
3258
|
-
return this.error(
|
|
3279
|
+
return this.error(p.UNCLOSED_TAG, g(n, this.clonePosition()));
|
|
3259
3280
|
} else
|
|
3260
|
-
return this.error(
|
|
3281
|
+
return this.error(p.INVALID_TAG, g(n, this.clonePosition()));
|
|
3261
3282
|
}, e.prototype.parseTagName = function() {
|
|
3262
3283
|
var t = this.offset();
|
|
3263
|
-
for (this.bump(); !this.isEOF() &&
|
|
3284
|
+
for (this.bump(); !this.isEOF() && ri(this.char()); )
|
|
3264
3285
|
this.bump();
|
|
3265
3286
|
return this.message.slice(t, this.offset());
|
|
3266
3287
|
}, e.prototype.parseLiteral = function(t, r) {
|
|
@@ -3284,12 +3305,12 @@ var Yn = (
|
|
|
3284
3305
|
}
|
|
3285
3306
|
var l = g(n, this.clonePosition());
|
|
3286
3307
|
return {
|
|
3287
|
-
val: { type:
|
|
3308
|
+
val: { type: E.literal, value: i, location: l },
|
|
3288
3309
|
err: null
|
|
3289
3310
|
};
|
|
3290
3311
|
}, e.prototype.tryParseLeftAngleBracket = function() {
|
|
3291
3312
|
return !this.isEOF() && this.char() === 60 && (this.ignoreTag || // If at the opening tag or closing tag position, bail.
|
|
3292
|
-
!
|
|
3313
|
+
!ti(this.peek() || 0)) ? (this.bump(), "<") : null;
|
|
3293
3314
|
}, e.prototype.tryParseQuote = function(t) {
|
|
3294
3315
|
if (this.isEOF() || this.char() !== 39)
|
|
3295
3316
|
return null;
|
|
@@ -3323,28 +3344,28 @@ var Yn = (
|
|
|
3323
3344
|
r.push(n);
|
|
3324
3345
|
this.bump();
|
|
3325
3346
|
}
|
|
3326
|
-
return
|
|
3347
|
+
return ze.apply(void 0, r);
|
|
3327
3348
|
}, e.prototype.tryParseUnquoted = function(t, r) {
|
|
3328
3349
|
if (this.isEOF())
|
|
3329
3350
|
return null;
|
|
3330
3351
|
var n = this.char();
|
|
3331
|
-
return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(),
|
|
3352
|
+
return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(), ze(n));
|
|
3332
3353
|
}, e.prototype.parseArgument = function(t, r) {
|
|
3333
3354
|
var n = this.clonePosition();
|
|
3334
3355
|
if (this.bump(), this.bumpSpace(), this.isEOF())
|
|
3335
|
-
return this.error(
|
|
3356
|
+
return this.error(p.EXPECT_ARGUMENT_CLOSING_BRACE, g(n, this.clonePosition()));
|
|
3336
3357
|
if (this.char() === 125)
|
|
3337
|
-
return this.bump(), this.error(
|
|
3358
|
+
return this.bump(), this.error(p.EMPTY_ARGUMENT, g(n, this.clonePosition()));
|
|
3338
3359
|
var i = this.parseIdentifierIfPossible().value;
|
|
3339
3360
|
if (!i)
|
|
3340
|
-
return this.error(
|
|
3361
|
+
return this.error(p.MALFORMED_ARGUMENT, g(n, this.clonePosition()));
|
|
3341
3362
|
if (this.bumpSpace(), this.isEOF())
|
|
3342
|
-
return this.error(
|
|
3363
|
+
return this.error(p.EXPECT_ARGUMENT_CLOSING_BRACE, g(n, this.clonePosition()));
|
|
3343
3364
|
switch (this.char()) {
|
|
3344
3365
|
case 125:
|
|
3345
3366
|
return this.bump(), {
|
|
3346
3367
|
val: {
|
|
3347
|
-
type:
|
|
3368
|
+
type: E.argument,
|
|
3348
3369
|
// value does not include the opening and closing braces.
|
|
3349
3370
|
value: i,
|
|
3350
3371
|
location: g(n, this.clonePosition())
|
|
@@ -3352,12 +3373,12 @@ var Yn = (
|
|
|
3352
3373
|
err: null
|
|
3353
3374
|
};
|
|
3354
3375
|
case 44:
|
|
3355
|
-
return this.bump(), this.bumpSpace(), this.isEOF() ? this.error(
|
|
3376
|
+
return this.bump(), this.bumpSpace(), this.isEOF() ? this.error(p.EXPECT_ARGUMENT_CLOSING_BRACE, g(n, this.clonePosition())) : this.parseArgumentOptions(t, r, i, n);
|
|
3356
3377
|
default:
|
|
3357
|
-
return this.error(
|
|
3378
|
+
return this.error(p.MALFORMED_ARGUMENT, g(n, this.clonePosition()));
|
|
3358
3379
|
}
|
|
3359
3380
|
}, e.prototype.parseIdentifierIfPossible = function() {
|
|
3360
|
-
var t = this.clonePosition(), r = this.offset(), n =
|
|
3381
|
+
var t = this.clonePosition(), r = this.offset(), n = We(this.message, r), i = r + n.length;
|
|
3361
3382
|
this.bumpTo(i);
|
|
3362
3383
|
var o = this.clonePosition(), s = g(t, o);
|
|
3363
3384
|
return { value: n, location: s };
|
|
@@ -3365,7 +3386,7 @@ var Yn = (
|
|
|
3365
3386
|
var o, s = this.clonePosition(), a = this.parseIdentifierIfPossible().value, l = this.clonePosition();
|
|
3366
3387
|
switch (a) {
|
|
3367
3388
|
case "":
|
|
3368
|
-
return this.error(
|
|
3389
|
+
return this.error(p.EXPECT_ARGUMENT_TYPE, g(s, l));
|
|
3369
3390
|
case "number":
|
|
3370
3391
|
case "date":
|
|
3371
3392
|
case "time": {
|
|
@@ -3376,46 +3397,46 @@ var Yn = (
|
|
|
3376
3397
|
var h = this.clonePosition(), c = this.parseSimpleArgStyleIfPossible();
|
|
3377
3398
|
if (c.err)
|
|
3378
3399
|
return c;
|
|
3379
|
-
var f =
|
|
3400
|
+
var f = Kn(c.val);
|
|
3380
3401
|
if (f.length === 0)
|
|
3381
|
-
return this.error(
|
|
3402
|
+
return this.error(p.EXPECT_ARGUMENT_STYLE, g(this.clonePosition(), this.clonePosition()));
|
|
3382
3403
|
var m = g(h, this.clonePosition());
|
|
3383
3404
|
u = { style: f, styleLocation: m };
|
|
3384
3405
|
}
|
|
3385
3406
|
var y = this.tryParseArgumentClose(i);
|
|
3386
3407
|
if (y.err)
|
|
3387
3408
|
return y;
|
|
3388
|
-
var
|
|
3389
|
-
if (u &&
|
|
3390
|
-
var
|
|
3409
|
+
var d = g(i, this.clonePosition());
|
|
3410
|
+
if (u && yt(u?.style, "::", 0)) {
|
|
3411
|
+
var S = Yn(u.style.slice(2));
|
|
3391
3412
|
if (a === "number") {
|
|
3392
|
-
var c = this.parseNumberSkeletonFromString(
|
|
3413
|
+
var c = this.parseNumberSkeletonFromString(S, u.styleLocation);
|
|
3393
3414
|
return c.err ? c : {
|
|
3394
|
-
val: { type:
|
|
3415
|
+
val: { type: E.number, value: n, location: d, style: c.val },
|
|
3395
3416
|
err: null
|
|
3396
3417
|
};
|
|
3397
3418
|
} else {
|
|
3398
|
-
if (
|
|
3399
|
-
return this.error(
|
|
3400
|
-
var P =
|
|
3401
|
-
this.locale && (P =
|
|
3419
|
+
if (S.length === 0)
|
|
3420
|
+
return this.error(p.EXPECT_DATE_TIME_SKELETON, d);
|
|
3421
|
+
var P = S;
|
|
3422
|
+
this.locale && (P = Un(S, this.locale));
|
|
3402
3423
|
var f = {
|
|
3403
|
-
type:
|
|
3424
|
+
type: V.dateTime,
|
|
3404
3425
|
pattern: P,
|
|
3405
3426
|
location: u.styleLocation,
|
|
3406
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
3407
|
-
}, H = a === "date" ?
|
|
3427
|
+
parsedOptions: this.shouldParseSkeletons ? In(P) : {}
|
|
3428
|
+
}, H = a === "date" ? E.date : E.time;
|
|
3408
3429
|
return {
|
|
3409
|
-
val: { type: H, value: n, location:
|
|
3430
|
+
val: { type: H, value: n, location: d, style: f },
|
|
3410
3431
|
err: null
|
|
3411
3432
|
};
|
|
3412
3433
|
}
|
|
3413
3434
|
}
|
|
3414
3435
|
return {
|
|
3415
3436
|
val: {
|
|
3416
|
-
type: a === "number" ?
|
|
3437
|
+
type: a === "number" ? E.number : a === "date" ? E.date : E.time,
|
|
3417
3438
|
value: n,
|
|
3418
|
-
location:
|
|
3439
|
+
location: d,
|
|
3419
3440
|
style: (o = u?.style) !== null && o !== void 0 ? o : null
|
|
3420
3441
|
},
|
|
3421
3442
|
err: null
|
|
@@ -3426,19 +3447,19 @@ var Yn = (
|
|
|
3426
3447
|
case "select": {
|
|
3427
3448
|
var _ = this.clonePosition();
|
|
3428
3449
|
if (this.bumpSpace(), !this.bumpIf(","))
|
|
3429
|
-
return this.error(
|
|
3450
|
+
return this.error(p.EXPECT_SELECT_ARGUMENT_OPTIONS, g(_, be({}, _)));
|
|
3430
3451
|
this.bumpSpace();
|
|
3431
|
-
var
|
|
3432
|
-
if (a !== "select" &&
|
|
3452
|
+
var x = this.parseIdentifierIfPossible(), v = 0;
|
|
3453
|
+
if (a !== "select" && x.value === "offset") {
|
|
3433
3454
|
if (!this.bumpIf(":"))
|
|
3434
|
-
return this.error(
|
|
3455
|
+
return this.error(p.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, g(this.clonePosition(), this.clonePosition()));
|
|
3435
3456
|
this.bumpSpace();
|
|
3436
|
-
var c = this.tryParseDecimalInteger(
|
|
3457
|
+
var c = this.tryParseDecimalInteger(p.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, p.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);
|
|
3437
3458
|
if (c.err)
|
|
3438
3459
|
return c;
|
|
3439
|
-
this.bumpSpace(),
|
|
3460
|
+
this.bumpSpace(), x = this.parseIdentifierIfPossible(), v = c.val;
|
|
3440
3461
|
}
|
|
3441
|
-
var A = this.tryParsePluralOrSelectOptions(t, a, r,
|
|
3462
|
+
var A = this.tryParsePluralOrSelectOptions(t, a, r, x);
|
|
3442
3463
|
if (A.err)
|
|
3443
3464
|
return A;
|
|
3444
3465
|
var y = this.tryParseArgumentClose(i);
|
|
@@ -3447,18 +3468,18 @@ var Yn = (
|
|
|
3447
3468
|
var ae = g(i, this.clonePosition());
|
|
3448
3469
|
return a === "select" ? {
|
|
3449
3470
|
val: {
|
|
3450
|
-
type:
|
|
3471
|
+
type: E.select,
|
|
3451
3472
|
value: n,
|
|
3452
|
-
options:
|
|
3473
|
+
options: vt(A.val),
|
|
3453
3474
|
location: ae
|
|
3454
3475
|
},
|
|
3455
3476
|
err: null
|
|
3456
3477
|
} : {
|
|
3457
3478
|
val: {
|
|
3458
|
-
type:
|
|
3479
|
+
type: E.plural,
|
|
3459
3480
|
value: n,
|
|
3460
|
-
options:
|
|
3461
|
-
offset:
|
|
3481
|
+
options: vt(A.val),
|
|
3482
|
+
offset: v,
|
|
3462
3483
|
pluralType: a === "plural" ? "cardinal" : "ordinal",
|
|
3463
3484
|
location: ae
|
|
3464
3485
|
},
|
|
@@ -3466,10 +3487,10 @@ var Yn = (
|
|
|
3466
3487
|
};
|
|
3467
3488
|
}
|
|
3468
3489
|
default:
|
|
3469
|
-
return this.error(
|
|
3490
|
+
return this.error(p.INVALID_ARGUMENT_TYPE, g(s, l));
|
|
3470
3491
|
}
|
|
3471
3492
|
}, e.prototype.tryParseArgumentClose = function(t) {
|
|
3472
|
-
return this.isEOF() || this.char() !== 125 ? this.error(
|
|
3493
|
+
return this.isEOF() || this.char() !== 125 ? this.error(p.EXPECT_ARGUMENT_CLOSING_BRACE, g(t, this.clonePosition())) : (this.bump(), { val: !0, err: null });
|
|
3473
3494
|
}, e.prototype.parseSimpleArgStyleIfPossible = function() {
|
|
3474
3495
|
for (var t = 0, r = this.clonePosition(); !this.isEOF(); ) {
|
|
3475
3496
|
var n = this.char();
|
|
@@ -3478,7 +3499,7 @@ var Yn = (
|
|
|
3478
3499
|
this.bump();
|
|
3479
3500
|
var i = this.clonePosition();
|
|
3480
3501
|
if (!this.bumpUntil("'"))
|
|
3481
|
-
return this.error(
|
|
3502
|
+
return this.error(p.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE, g(i, this.clonePosition()));
|
|
3482
3503
|
this.bump();
|
|
3483
3504
|
break;
|
|
3484
3505
|
}
|
|
@@ -3508,16 +3529,16 @@ var Yn = (
|
|
|
3508
3529
|
}, e.prototype.parseNumberSkeletonFromString = function(t, r) {
|
|
3509
3530
|
var n = [];
|
|
3510
3531
|
try {
|
|
3511
|
-
n =
|
|
3532
|
+
n = Nn(t);
|
|
3512
3533
|
} catch {
|
|
3513
|
-
return this.error(
|
|
3534
|
+
return this.error(p.INVALID_NUMBER_SKELETON, r);
|
|
3514
3535
|
}
|
|
3515
3536
|
return {
|
|
3516
3537
|
val: {
|
|
3517
|
-
type:
|
|
3538
|
+
type: V.number,
|
|
3518
3539
|
tokens: n,
|
|
3519
3540
|
location: r,
|
|
3520
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
3541
|
+
parsedOptions: this.shouldParseSkeletons ? Gn(n) : {}
|
|
3521
3542
|
},
|
|
3522
3543
|
err: null
|
|
3523
3544
|
};
|
|
@@ -3526,7 +3547,7 @@ var Yn = (
|
|
|
3526
3547
|
if (u.length === 0) {
|
|
3527
3548
|
var c = this.clonePosition();
|
|
3528
3549
|
if (r !== "select" && this.bumpIf("=")) {
|
|
3529
|
-
var f = this.tryParseDecimalInteger(
|
|
3550
|
+
var f = this.tryParseDecimalInteger(p.EXPECT_PLURAL_ARGUMENT_SELECTOR, p.INVALID_PLURAL_ARGUMENT_SELECTOR);
|
|
3530
3551
|
if (f.err)
|
|
3531
3552
|
return f;
|
|
3532
3553
|
h = g(c, this.clonePosition()), u = this.message.slice(c.offset, this.offset());
|
|
@@ -3534,17 +3555,17 @@ var Yn = (
|
|
|
3534
3555
|
break;
|
|
3535
3556
|
}
|
|
3536
3557
|
if (l.has(u))
|
|
3537
|
-
return this.error(r === "select" ?
|
|
3558
|
+
return this.error(r === "select" ? p.DUPLICATE_SELECT_ARGUMENT_SELECTOR : p.DUPLICATE_PLURAL_ARGUMENT_SELECTOR, h);
|
|
3538
3559
|
u === "other" && (s = !0), this.bumpSpace();
|
|
3539
3560
|
var m = this.clonePosition();
|
|
3540
3561
|
if (!this.bumpIf("{"))
|
|
3541
|
-
return this.error(r === "select" ?
|
|
3562
|
+
return this.error(r === "select" ? p.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT : p.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT, g(this.clonePosition(), this.clonePosition()));
|
|
3542
3563
|
var y = this.parseMessage(t + 1, r, n);
|
|
3543
3564
|
if (y.err)
|
|
3544
3565
|
return y;
|
|
3545
|
-
var
|
|
3546
|
-
if (
|
|
3547
|
-
return
|
|
3566
|
+
var d = this.tryParseArgumentClose(m);
|
|
3567
|
+
if (d.err)
|
|
3568
|
+
return d;
|
|
3548
3569
|
a.push([
|
|
3549
3570
|
u,
|
|
3550
3571
|
{
|
|
@@ -3553,7 +3574,7 @@ var Yn = (
|
|
|
3553
3574
|
}
|
|
3554
3575
|
]), l.add(u), this.bumpSpace(), o = this.parseIdentifierIfPossible(), u = o.value, h = o.location;
|
|
3555
3576
|
}
|
|
3556
|
-
return a.length === 0 ? this.error(r === "select" ?
|
|
3577
|
+
return a.length === 0 ? this.error(r === "select" ? p.EXPECT_SELECT_ARGUMENT_SELECTOR : p.EXPECT_PLURAL_ARGUMENT_SELECTOR, g(this.clonePosition(), this.clonePosition())) : this.requiresOtherClause && !s ? this.error(p.MISSING_OTHER_CLAUSE, g(this.clonePosition(), this.clonePosition())) : { val: a, err: null };
|
|
3557
3578
|
}, e.prototype.tryParseDecimalInteger = function(t, r) {
|
|
3558
3579
|
var n = 1, i = this.clonePosition();
|
|
3559
3580
|
this.bumpIf("+") || this.bumpIf("-") && (n = -1);
|
|
@@ -3565,7 +3586,7 @@ var Yn = (
|
|
|
3565
3586
|
break;
|
|
3566
3587
|
}
|
|
3567
3588
|
var l = g(i, this.clonePosition());
|
|
3568
|
-
return o ? (s *= n,
|
|
3589
|
+
return o ? (s *= n, Jn(s) ? { val: s, err: null } : this.error(r, l)) : this.error(t, l);
|
|
3569
3590
|
}, e.prototype.offset = function() {
|
|
3570
3591
|
return this.position.offset;
|
|
3571
3592
|
}, e.prototype.isEOF = function() {
|
|
@@ -3580,7 +3601,7 @@ var Yn = (
|
|
|
3580
3601
|
var t = this.position.offset;
|
|
3581
3602
|
if (t >= this.message.length)
|
|
3582
3603
|
throw Error("out of bound");
|
|
3583
|
-
var r =
|
|
3604
|
+
var r = nr(this.message, t);
|
|
3584
3605
|
if (r === void 0)
|
|
3585
3606
|
throw Error("Offset ".concat(t, " is at invalid UTF-16 code unit boundary"));
|
|
3586
3607
|
return r;
|
|
@@ -3599,7 +3620,7 @@ var Yn = (
|
|
|
3599
3620
|
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);
|
|
3600
3621
|
}
|
|
3601
3622
|
}, e.prototype.bumpIf = function(t) {
|
|
3602
|
-
if (
|
|
3623
|
+
if (yt(this.message, t, this.offset())) {
|
|
3603
3624
|
for (var r = 0; r < t.length; r++)
|
|
3604
3625
|
this.bump();
|
|
3605
3626
|
return !0;
|
|
@@ -3621,7 +3642,7 @@ var Yn = (
|
|
|
3621
3642
|
break;
|
|
3622
3643
|
}
|
|
3623
3644
|
}, e.prototype.bumpSpace = function() {
|
|
3624
|
-
for (; !this.isEOF() &&
|
|
3645
|
+
for (; !this.isEOF() && or(this.char()); )
|
|
3625
3646
|
this.bump();
|
|
3626
3647
|
}, e.prototype.peek = function() {
|
|
3627
3648
|
if (this.isEOF())
|
|
@@ -3631,47 +3652,47 @@ var Yn = (
|
|
|
3631
3652
|
}, e;
|
|
3632
3653
|
}()
|
|
3633
3654
|
);
|
|
3634
|
-
function
|
|
3655
|
+
function Ze(e) {
|
|
3635
3656
|
return e >= 97 && e <= 122 || e >= 65 && e <= 90;
|
|
3636
3657
|
}
|
|
3637
|
-
function
|
|
3638
|
-
return
|
|
3658
|
+
function ti(e) {
|
|
3659
|
+
return Ze(e) || e === 47;
|
|
3639
3660
|
}
|
|
3640
|
-
function
|
|
3661
|
+
function ri(e) {
|
|
3641
3662
|
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;
|
|
3642
3663
|
}
|
|
3643
|
-
function
|
|
3664
|
+
function or(e) {
|
|
3644
3665
|
return e >= 9 && e <= 13 || e === 32 || e === 133 || e >= 8206 && e <= 8207 || e === 8232 || e === 8233;
|
|
3645
3666
|
}
|
|
3646
|
-
function
|
|
3667
|
+
function ni(e) {
|
|
3647
3668
|
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;
|
|
3648
3669
|
}
|
|
3649
|
-
function
|
|
3670
|
+
function Qe(e) {
|
|
3650
3671
|
e.forEach(function(t) {
|
|
3651
|
-
if (delete t.location,
|
|
3672
|
+
if (delete t.location, Qt(t) || Jt(t))
|
|
3652
3673
|
for (var r in t.options)
|
|
3653
|
-
delete t.options[r].location,
|
|
3674
|
+
delete t.options[r].location, Qe(t.options[r].value);
|
|
3654
3675
|
else
|
|
3655
|
-
|
|
3676
|
+
zt(t) && Yt(t.style) || (Wt(t) || Zt(t)) && Ve(t.style) ? delete t.style.location : qt(t) && Qe(t.children);
|
|
3656
3677
|
});
|
|
3657
3678
|
}
|
|
3658
|
-
function
|
|
3659
|
-
t === void 0 && (t = {}), t =
|
|
3660
|
-
var r = new
|
|
3679
|
+
function ii(e, t) {
|
|
3680
|
+
t === void 0 && (t = {}), t = be({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
|
|
3681
|
+
var r = new ei(e, t).parse();
|
|
3661
3682
|
if (r.err) {
|
|
3662
|
-
var n = SyntaxError(
|
|
3683
|
+
var n = SyntaxError(p[r.err.kind]);
|
|
3663
3684
|
throw n.location = r.err.location, n.originalMessage = r.err.message, n;
|
|
3664
3685
|
}
|
|
3665
|
-
return t?.captureLocation ||
|
|
3686
|
+
return t?.captureLocation || Qe(r.val), r.val;
|
|
3666
3687
|
}
|
|
3667
|
-
var
|
|
3688
|
+
var X;
|
|
3668
3689
|
(function(e) {
|
|
3669
3690
|
e.MISSING_VALUE = "MISSING_VALUE", e.INVALID_VALUE = "INVALID_VALUE", e.MISSING_INTL_API = "MISSING_INTL_API";
|
|
3670
|
-
})(
|
|
3671
|
-
var
|
|
3691
|
+
})(X || (X = {}));
|
|
3692
|
+
var Ee = (
|
|
3672
3693
|
/** @class */
|
|
3673
3694
|
function(e) {
|
|
3674
|
-
|
|
3695
|
+
xe(t, e);
|
|
3675
3696
|
function t(r, n, i) {
|
|
3676
3697
|
var o = e.call(this, r) || this;
|
|
3677
3698
|
return o.code = n, o.originalMessage = i, o;
|
|
@@ -3680,48 +3701,48 @@ var xe = (
|
|
|
3680
3701
|
return "[formatjs Error: ".concat(this.code, "] ").concat(this.message);
|
|
3681
3702
|
}, t;
|
|
3682
3703
|
}(Error)
|
|
3683
|
-
),
|
|
3704
|
+
), xt = (
|
|
3684
3705
|
/** @class */
|
|
3685
3706
|
function(e) {
|
|
3686
|
-
|
|
3707
|
+
xe(t, e);
|
|
3687
3708
|
function t(r, n, i, o) {
|
|
3688
|
-
return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'),
|
|
3709
|
+
return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'), X.INVALID_VALUE, o) || this;
|
|
3689
3710
|
}
|
|
3690
3711
|
return t;
|
|
3691
|
-
}(
|
|
3692
|
-
),
|
|
3712
|
+
}(Ee)
|
|
3713
|
+
), oi = (
|
|
3693
3714
|
/** @class */
|
|
3694
3715
|
function(e) {
|
|
3695
|
-
|
|
3716
|
+
xe(t, e);
|
|
3696
3717
|
function t(r, n, i) {
|
|
3697
|
-
return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n),
|
|
3718
|
+
return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n), X.INVALID_VALUE, i) || this;
|
|
3698
3719
|
}
|
|
3699
3720
|
return t;
|
|
3700
|
-
}(
|
|
3701
|
-
),
|
|
3721
|
+
}(Ee)
|
|
3722
|
+
), si = (
|
|
3702
3723
|
/** @class */
|
|
3703
3724
|
function(e) {
|
|
3704
|
-
|
|
3725
|
+
xe(t, e);
|
|
3705
3726
|
function t(r, n) {
|
|
3706
|
-
return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'),
|
|
3727
|
+
return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'), X.MISSING_VALUE, n) || this;
|
|
3707
3728
|
}
|
|
3708
3729
|
return t;
|
|
3709
|
-
}(
|
|
3730
|
+
}(Ee)
|
|
3710
3731
|
), C;
|
|
3711
3732
|
(function(e) {
|
|
3712
3733
|
e[e.literal = 0] = "literal", e[e.object = 1] = "object";
|
|
3713
3734
|
})(C || (C = {}));
|
|
3714
|
-
function
|
|
3735
|
+
function ai(e) {
|
|
3715
3736
|
return e.length < 2 ? e : e.reduce(function(t, r) {
|
|
3716
3737
|
var n = t[t.length - 1];
|
|
3717
3738
|
return !n || n.type !== C.literal || r.type !== C.literal ? t.push(r) : n.value += r.value, t;
|
|
3718
3739
|
}, []);
|
|
3719
3740
|
}
|
|
3720
|
-
function
|
|
3741
|
+
function ui(e) {
|
|
3721
3742
|
return typeof e == "function";
|
|
3722
3743
|
}
|
|
3723
|
-
function
|
|
3724
|
-
if (e.length === 1 &&
|
|
3744
|
+
function pe(e, t, r, n, i, o, s) {
|
|
3745
|
+
if (e.length === 1 && pt(e[0]))
|
|
3725
3746
|
return [
|
|
3726
3747
|
{
|
|
3727
3748
|
type: C.literal,
|
|
@@ -3730,14 +3751,14 @@ function de(e, t, r, n, i, o, s) {
|
|
|
3730
3751
|
];
|
|
3731
3752
|
for (var a = [], l = 0, u = e; l < u.length; l++) {
|
|
3732
3753
|
var h = u[l];
|
|
3733
|
-
if (
|
|
3754
|
+
if (pt(h)) {
|
|
3734
3755
|
a.push({
|
|
3735
3756
|
type: C.literal,
|
|
3736
3757
|
value: h.value
|
|
3737
3758
|
});
|
|
3738
3759
|
continue;
|
|
3739
3760
|
}
|
|
3740
|
-
if (
|
|
3761
|
+
if (Pn(h)) {
|
|
3741
3762
|
typeof o == "number" && a.push({
|
|
3742
3763
|
type: C.literal,
|
|
3743
3764
|
value: r.getNumberFormat(t).format(o)
|
|
@@ -3746,89 +3767,89 @@ function de(e, t, r, n, i, o, s) {
|
|
|
3746
3767
|
}
|
|
3747
3768
|
var c = h.value;
|
|
3748
3769
|
if (!(i && c in i))
|
|
3749
|
-
throw new
|
|
3770
|
+
throw new si(c, s);
|
|
3750
3771
|
var f = i[c];
|
|
3751
|
-
if (
|
|
3772
|
+
if (Cn(h)) {
|
|
3752
3773
|
(!f || typeof f == "string" || typeof f == "number") && (f = typeof f == "string" || typeof f == "number" ? String(f) : ""), a.push({
|
|
3753
3774
|
type: typeof f == "string" ? C.literal : C.object,
|
|
3754
3775
|
value: f
|
|
3755
3776
|
});
|
|
3756
3777
|
continue;
|
|
3757
3778
|
}
|
|
3758
|
-
if (
|
|
3759
|
-
var m = typeof h.style == "string" ? n.date[h.style] :
|
|
3779
|
+
if (Wt(h)) {
|
|
3780
|
+
var m = typeof h.style == "string" ? n.date[h.style] : Ve(h.style) ? h.style.parsedOptions : void 0;
|
|
3760
3781
|
a.push({
|
|
3761
3782
|
type: C.literal,
|
|
3762
3783
|
value: r.getDateTimeFormat(t, m).format(f)
|
|
3763
3784
|
});
|
|
3764
3785
|
continue;
|
|
3765
3786
|
}
|
|
3766
|
-
if (
|
|
3767
|
-
var m = typeof h.style == "string" ? n.time[h.style] :
|
|
3787
|
+
if (Zt(h)) {
|
|
3788
|
+
var m = typeof h.style == "string" ? n.time[h.style] : Ve(h.style) ? h.style.parsedOptions : n.time.medium;
|
|
3768
3789
|
a.push({
|
|
3769
3790
|
type: C.literal,
|
|
3770
3791
|
value: r.getDateTimeFormat(t, m).format(f)
|
|
3771
3792
|
});
|
|
3772
3793
|
continue;
|
|
3773
3794
|
}
|
|
3774
|
-
if (
|
|
3775
|
-
var m = typeof h.style == "string" ? n.number[h.style] :
|
|
3795
|
+
if (zt(h)) {
|
|
3796
|
+
var m = typeof h.style == "string" ? n.number[h.style] : Yt(h.style) ? h.style.parsedOptions : void 0;
|
|
3776
3797
|
m && m.scale && (f = f * (m.scale || 1)), a.push({
|
|
3777
3798
|
type: C.literal,
|
|
3778
3799
|
value: r.getNumberFormat(t, m).format(f)
|
|
3779
3800
|
});
|
|
3780
3801
|
continue;
|
|
3781
3802
|
}
|
|
3782
|
-
if (
|
|
3783
|
-
var y = h.children,
|
|
3784
|
-
if (!
|
|
3785
|
-
throw new
|
|
3786
|
-
var P =
|
|
3787
|
-
return
|
|
3803
|
+
if (qt(h)) {
|
|
3804
|
+
var y = h.children, d = h.value, S = i[d];
|
|
3805
|
+
if (!ui(S))
|
|
3806
|
+
throw new oi(d, "function", s);
|
|
3807
|
+
var P = pe(y, t, r, n, i, o), H = S(P.map(function(v) {
|
|
3808
|
+
return v.value;
|
|
3788
3809
|
}));
|
|
3789
|
-
Array.isArray(H) || (H = [H]), a.push.apply(a, H.map(function(
|
|
3810
|
+
Array.isArray(H) || (H = [H]), a.push.apply(a, H.map(function(v) {
|
|
3790
3811
|
return {
|
|
3791
|
-
type: typeof
|
|
3792
|
-
value:
|
|
3812
|
+
type: typeof v == "string" ? C.literal : C.object,
|
|
3813
|
+
value: v
|
|
3793
3814
|
};
|
|
3794
3815
|
}));
|
|
3795
3816
|
}
|
|
3796
|
-
if (
|
|
3817
|
+
if (Qt(h)) {
|
|
3797
3818
|
var _ = h.options[f] || h.options.other;
|
|
3798
3819
|
if (!_)
|
|
3799
|
-
throw new
|
|
3800
|
-
a.push.apply(a,
|
|
3820
|
+
throw new xt(h.value, f, Object.keys(h.options), s);
|
|
3821
|
+
a.push.apply(a, pe(_.value, t, r, n, i));
|
|
3801
3822
|
continue;
|
|
3802
3823
|
}
|
|
3803
|
-
if (
|
|
3824
|
+
if (Jt(h)) {
|
|
3804
3825
|
var _ = h.options["=".concat(f)];
|
|
3805
3826
|
if (!_) {
|
|
3806
3827
|
if (!Intl.PluralRules)
|
|
3807
|
-
throw new
|
|
3828
|
+
throw new Ee(`Intl.PluralRules is not available in this environment.
|
|
3808
3829
|
Try polyfilling it using "@formatjs/intl-pluralrules"
|
|
3809
|
-
`,
|
|
3810
|
-
var
|
|
3811
|
-
_ = h.options[
|
|
3830
|
+
`, X.MISSING_INTL_API, s);
|
|
3831
|
+
var x = r.getPluralRules(t, { type: h.pluralType }).select(f - (h.offset || 0));
|
|
3832
|
+
_ = h.options[x] || h.options.other;
|
|
3812
3833
|
}
|
|
3813
3834
|
if (!_)
|
|
3814
|
-
throw new
|
|
3815
|
-
a.push.apply(a,
|
|
3835
|
+
throw new xt(h.value, f, Object.keys(h.options), s);
|
|
3836
|
+
a.push.apply(a, pe(_.value, t, r, n, i, f - (h.offset || 0)));
|
|
3816
3837
|
continue;
|
|
3817
3838
|
}
|
|
3818
3839
|
}
|
|
3819
|
-
return
|
|
3840
|
+
return ai(a);
|
|
3820
3841
|
}
|
|
3821
|
-
function
|
|
3822
|
-
return t ?
|
|
3823
|
-
return r[n] =
|
|
3842
|
+
function li(e, t) {
|
|
3843
|
+
return t ? M(M(M({}, e || {}), t || {}), Object.keys(e).reduce(function(r, n) {
|
|
3844
|
+
return r[n] = M(M({}, e[n]), t[n] || {}), r;
|
|
3824
3845
|
}, {})) : e;
|
|
3825
3846
|
}
|
|
3826
|
-
function
|
|
3847
|
+
function hi(e, t) {
|
|
3827
3848
|
return t ? Object.keys(e).reduce(function(r, n) {
|
|
3828
|
-
return r[n] =
|
|
3829
|
-
},
|
|
3849
|
+
return r[n] = li(e[n], t[n]), r;
|
|
3850
|
+
}, M({}, e)) : e;
|
|
3830
3851
|
}
|
|
3831
|
-
function
|
|
3852
|
+
function Oe(e) {
|
|
3832
3853
|
return {
|
|
3833
3854
|
create: function() {
|
|
3834
3855
|
return {
|
|
@@ -3842,39 +3863,39 @@ function Ce(e) {
|
|
|
3842
3863
|
}
|
|
3843
3864
|
};
|
|
3844
3865
|
}
|
|
3845
|
-
function
|
|
3866
|
+
function ci(e) {
|
|
3846
3867
|
return e === void 0 && (e = {
|
|
3847
3868
|
number: {},
|
|
3848
3869
|
dateTime: {},
|
|
3849
3870
|
pluralRules: {}
|
|
3850
3871
|
}), {
|
|
3851
|
-
getNumberFormat:
|
|
3872
|
+
getNumberFormat: Be(function() {
|
|
3852
3873
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3853
3874
|
r[n] = arguments[n];
|
|
3854
|
-
return new ((t = Intl.NumberFormat).bind.apply(t,
|
|
3875
|
+
return new ((t = Intl.NumberFormat).bind.apply(t, Ae([void 0], r, !1)))();
|
|
3855
3876
|
}, {
|
|
3856
|
-
cache:
|
|
3857
|
-
strategy:
|
|
3877
|
+
cache: Oe(e.number),
|
|
3878
|
+
strategy: Ce.variadic
|
|
3858
3879
|
}),
|
|
3859
|
-
getDateTimeFormat:
|
|
3880
|
+
getDateTimeFormat: Be(function() {
|
|
3860
3881
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3861
3882
|
r[n] = arguments[n];
|
|
3862
|
-
return new ((t = Intl.DateTimeFormat).bind.apply(t,
|
|
3883
|
+
return new ((t = Intl.DateTimeFormat).bind.apply(t, Ae([void 0], r, !1)))();
|
|
3863
3884
|
}, {
|
|
3864
|
-
cache:
|
|
3865
|
-
strategy:
|
|
3885
|
+
cache: Oe(e.dateTime),
|
|
3886
|
+
strategy: Ce.variadic
|
|
3866
3887
|
}),
|
|
3867
|
-
getPluralRules:
|
|
3888
|
+
getPluralRules: Be(function() {
|
|
3868
3889
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3869
3890
|
r[n] = arguments[n];
|
|
3870
|
-
return new ((t = Intl.PluralRules).bind.apply(t,
|
|
3891
|
+
return new ((t = Intl.PluralRules).bind.apply(t, Ae([void 0], r, !1)))();
|
|
3871
3892
|
}, {
|
|
3872
|
-
cache:
|
|
3873
|
-
strategy:
|
|
3893
|
+
cache: Oe(e.pluralRules),
|
|
3894
|
+
strategy: Ce.variadic
|
|
3874
3895
|
})
|
|
3875
3896
|
};
|
|
3876
3897
|
}
|
|
3877
|
-
var
|
|
3898
|
+
var fi = (
|
|
3878
3899
|
/** @class */
|
|
3879
3900
|
function() {
|
|
3880
3901
|
function e(t, r, n, i) {
|
|
@@ -3893,7 +3914,7 @@ var hi = (
|
|
|
3893
3914
|
}, []);
|
|
3894
3915
|
return h.length <= 1 ? h[0] || "" : h;
|
|
3895
3916
|
}, this.formatToParts = function(l) {
|
|
3896
|
-
return
|
|
3917
|
+
return pe(o.ast, o.locales, o.formatters, o.formats, l, void 0, o.message);
|
|
3897
3918
|
}, this.resolvedOptions = function() {
|
|
3898
3919
|
var l;
|
|
3899
3920
|
return {
|
|
@@ -3906,13 +3927,13 @@ var hi = (
|
|
|
3906
3927
|
throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");
|
|
3907
3928
|
var s = i || {};
|
|
3908
3929
|
s.formatters;
|
|
3909
|
-
var a =
|
|
3910
|
-
this.ast = e.__parse(t,
|
|
3930
|
+
var a = xn(s, ["formatters"]);
|
|
3931
|
+
this.ast = e.__parse(t, M(M({}, a), { locale: this.resolvedLocale }));
|
|
3911
3932
|
} else
|
|
3912
3933
|
this.ast = t;
|
|
3913
3934
|
if (!Array.isArray(this.ast))
|
|
3914
3935
|
throw new TypeError("A message must be provided as a String or AST.");
|
|
3915
|
-
this.formats =
|
|
3936
|
+
this.formats = hi(e.formats, n), this.formatters = i && i.formatters || ci(this.formatterCache);
|
|
3916
3937
|
}
|
|
3917
3938
|
return Object.defineProperty(e, "defaultLocale", {
|
|
3918
3939
|
get: function() {
|
|
@@ -3925,7 +3946,7 @@ var hi = (
|
|
|
3925
3946
|
var r = Intl.NumberFormat.supportedLocalesOf(t);
|
|
3926
3947
|
return r.length > 0 ? new Intl.Locale(r[0]) : new Intl.Locale(typeof t == "string" ? t : t[0]);
|
|
3927
3948
|
}
|
|
3928
|
-
}, e.__parse =
|
|
3949
|
+
}, e.__parse = ii, e.formats = {
|
|
3929
3950
|
number: {
|
|
3930
3951
|
integer: {
|
|
3931
3952
|
maximumFractionDigits: 0
|
|
@@ -3986,7 +4007,7 @@ var hi = (
|
|
|
3986
4007
|
}, e;
|
|
3987
4008
|
}()
|
|
3988
4009
|
);
|
|
3989
|
-
function
|
|
4010
|
+
function mi(e, t) {
|
|
3990
4011
|
if (t == null)
|
|
3991
4012
|
return;
|
|
3992
4013
|
if (t in e)
|
|
@@ -4007,92 +4028,92 @@ function ci(e, t) {
|
|
|
4007
4028
|
n = void 0;
|
|
4008
4029
|
return n;
|
|
4009
4030
|
}
|
|
4010
|
-
const R = {},
|
|
4031
|
+
const R = {}, pi = (e, t, r) => r && (t in R || (R[t] = {}), e in R[t] || (R[t][e] = r), r), sr = (e, t) => {
|
|
4011
4032
|
if (t == null)
|
|
4012
4033
|
return;
|
|
4013
4034
|
if (t in R && e in R[t])
|
|
4014
4035
|
return R[t][e];
|
|
4015
|
-
const r =
|
|
4036
|
+
const r = Se(t);
|
|
4016
4037
|
for (let n = 0; n < r.length; n++) {
|
|
4017
|
-
const i = r[n], o =
|
|
4038
|
+
const i = r[n], o = bi(i, e);
|
|
4018
4039
|
if (o)
|
|
4019
|
-
return
|
|
4040
|
+
return pi(e, t, o);
|
|
4020
4041
|
}
|
|
4021
4042
|
};
|
|
4022
|
-
let
|
|
4023
|
-
const se =
|
|
4024
|
-
function
|
|
4025
|
-
return
|
|
4043
|
+
let et;
|
|
4044
|
+
const se = _e({});
|
|
4045
|
+
function di(e) {
|
|
4046
|
+
return et[e] || null;
|
|
4026
4047
|
}
|
|
4027
|
-
function
|
|
4028
|
-
return e in
|
|
4048
|
+
function ar(e) {
|
|
4049
|
+
return e in et;
|
|
4029
4050
|
}
|
|
4030
|
-
function
|
|
4031
|
-
if (!
|
|
4051
|
+
function bi(e, t) {
|
|
4052
|
+
if (!ar(e))
|
|
4032
4053
|
return null;
|
|
4033
|
-
const r =
|
|
4034
|
-
return
|
|
4054
|
+
const r = di(e);
|
|
4055
|
+
return mi(r, t);
|
|
4035
4056
|
}
|
|
4036
|
-
function
|
|
4057
|
+
function gi(e) {
|
|
4037
4058
|
if (e == null)
|
|
4038
4059
|
return;
|
|
4039
|
-
const t =
|
|
4060
|
+
const t = Se(e);
|
|
4040
4061
|
for (let r = 0; r < t.length; r++) {
|
|
4041
4062
|
const n = t[r];
|
|
4042
|
-
if (
|
|
4063
|
+
if (ar(n))
|
|
4043
4064
|
return n;
|
|
4044
4065
|
}
|
|
4045
4066
|
}
|
|
4046
|
-
function
|
|
4047
|
-
delete R[e], se.update((r) => (r[e] =
|
|
4067
|
+
function ur(e, ...t) {
|
|
4068
|
+
delete R[e], se.update((r) => (r[e] = _n.all([r[e] || {}, ...t]), r));
|
|
4048
4069
|
}
|
|
4049
|
-
|
|
4070
|
+
Q(
|
|
4050
4071
|
[se],
|
|
4051
4072
|
([e]) => Object.keys(e)
|
|
4052
4073
|
);
|
|
4053
|
-
se.subscribe((e) =>
|
|
4054
|
-
const
|
|
4055
|
-
function
|
|
4056
|
-
|
|
4074
|
+
se.subscribe((e) => et = e);
|
|
4075
|
+
const de = {};
|
|
4076
|
+
function yi(e, t) {
|
|
4077
|
+
de[e].delete(t), de[e].size === 0 && delete de[e];
|
|
4057
4078
|
}
|
|
4058
|
-
function
|
|
4059
|
-
return
|
|
4079
|
+
function lr(e) {
|
|
4080
|
+
return de[e];
|
|
4060
4081
|
}
|
|
4061
|
-
function
|
|
4062
|
-
return
|
|
4063
|
-
const r =
|
|
4082
|
+
function vi(e) {
|
|
4083
|
+
return Se(e).map((t) => {
|
|
4084
|
+
const r = lr(t);
|
|
4064
4085
|
return [t, r ? [...r] : []];
|
|
4065
4086
|
}).filter(([, t]) => t.length > 0);
|
|
4066
4087
|
}
|
|
4067
|
-
function
|
|
4068
|
-
return e == null ? !1 :
|
|
4088
|
+
function Je(e) {
|
|
4089
|
+
return e == null ? !1 : Se(e).some(
|
|
4069
4090
|
(t) => {
|
|
4070
4091
|
var r;
|
|
4071
|
-
return (r =
|
|
4092
|
+
return (r = lr(t)) == null ? void 0 : r.size;
|
|
4072
4093
|
}
|
|
4073
4094
|
);
|
|
4074
4095
|
}
|
|
4075
|
-
function
|
|
4096
|
+
function _i(e, t) {
|
|
4076
4097
|
return Promise.all(
|
|
4077
|
-
t.map((n) => (
|
|
4078
|
-
).then((n) =>
|
|
4079
|
-
}
|
|
4080
|
-
const
|
|
4081
|
-
function
|
|
4082
|
-
if (!
|
|
4083
|
-
return e in
|
|
4084
|
-
const t =
|
|
4085
|
-
return
|
|
4098
|
+
t.map((n) => (yi(e, n), n().then((i) => i.default || i)))
|
|
4099
|
+
).then((n) => ur(e, ...n));
|
|
4100
|
+
}
|
|
4101
|
+
const Y = {};
|
|
4102
|
+
function hr(e) {
|
|
4103
|
+
if (!Je(e))
|
|
4104
|
+
return e in Y ? Y[e] : Promise.resolve();
|
|
4105
|
+
const t = vi(e);
|
|
4106
|
+
return Y[e] = Promise.all(
|
|
4086
4107
|
t.map(
|
|
4087
|
-
([r, n]) =>
|
|
4108
|
+
([r, n]) => _i(r, n)
|
|
4088
4109
|
)
|
|
4089
4110
|
).then(() => {
|
|
4090
|
-
if (
|
|
4091
|
-
return
|
|
4092
|
-
delete
|
|
4093
|
-
}),
|
|
4111
|
+
if (Je(e))
|
|
4112
|
+
return hr(e);
|
|
4113
|
+
delete Y[e];
|
|
4114
|
+
}), Y[e];
|
|
4094
4115
|
}
|
|
4095
|
-
const
|
|
4116
|
+
const xi = {
|
|
4096
4117
|
number: {
|
|
4097
4118
|
scientific: { notation: "scientific" },
|
|
4098
4119
|
engineering: { notation: "engineering" },
|
|
@@ -4121,135 +4142,135 @@ const vi = {
|
|
|
4121
4142
|
timeZoneName: "short"
|
|
4122
4143
|
}
|
|
4123
4144
|
}
|
|
4124
|
-
},
|
|
4145
|
+
}, Ei = {
|
|
4125
4146
|
fallbackLocale: null,
|
|
4126
4147
|
loadingDelay: 200,
|
|
4127
|
-
formats:
|
|
4148
|
+
formats: xi,
|
|
4128
4149
|
warnOnMissingMessages: !0,
|
|
4129
4150
|
handleMissingMessage: void 0,
|
|
4130
4151
|
ignoreTag: !0
|
|
4131
|
-
},
|
|
4132
|
-
function
|
|
4133
|
-
return
|
|
4152
|
+
}, Si = Ei;
|
|
4153
|
+
function z() {
|
|
4154
|
+
return Si;
|
|
4134
4155
|
}
|
|
4135
|
-
const
|
|
4136
|
-
var
|
|
4156
|
+
const Ie = _e(!1);
|
|
4157
|
+
var wi = Object.defineProperty, Ti = Object.defineProperties, Hi = Object.getOwnPropertyDescriptors, Et = Object.getOwnPropertySymbols, Ai = Object.prototype.hasOwnProperty, Bi = Object.prototype.propertyIsEnumerable, St = (e, t, r) => t in e ? wi(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Ci = (e, t) => {
|
|
4137
4158
|
for (var r in t || (t = {}))
|
|
4138
|
-
|
|
4139
|
-
if (
|
|
4140
|
-
for (var r of
|
|
4141
|
-
|
|
4159
|
+
Ai.call(t, r) && St(e, r, t[r]);
|
|
4160
|
+
if (Et)
|
|
4161
|
+
for (var r of Et(t))
|
|
4162
|
+
Bi.call(t, r) && St(e, r, t[r]);
|
|
4142
4163
|
return e;
|
|
4143
|
-
},
|
|
4144
|
-
let
|
|
4145
|
-
const
|
|
4146
|
-
function
|
|
4164
|
+
}, Pi = (e, t) => Ti(e, Hi(t));
|
|
4165
|
+
let qe;
|
|
4166
|
+
const ge = _e(null);
|
|
4167
|
+
function wt(e) {
|
|
4147
4168
|
return e.split("-").map((t, r, n) => n.slice(0, r + 1).join("-")).reverse();
|
|
4148
4169
|
}
|
|
4149
|
-
function
|
|
4150
|
-
const r =
|
|
4151
|
-
return t ? [.../* @__PURE__ */ new Set([...r, ...
|
|
4170
|
+
function Se(e, t = z().fallbackLocale) {
|
|
4171
|
+
const r = wt(e);
|
|
4172
|
+
return t ? [.../* @__PURE__ */ new Set([...r, ...wt(t)])] : r;
|
|
4152
4173
|
}
|
|
4153
4174
|
function $() {
|
|
4154
|
-
return
|
|
4175
|
+
return qe ?? void 0;
|
|
4155
4176
|
}
|
|
4156
|
-
|
|
4157
|
-
|
|
4177
|
+
ge.subscribe((e) => {
|
|
4178
|
+
qe = e ?? void 0, typeof window < "u" && e != null && document.documentElement.setAttribute("lang", e);
|
|
4158
4179
|
});
|
|
4159
|
-
const
|
|
4160
|
-
if (e &&
|
|
4161
|
-
const { loadingDelay: t } =
|
|
4180
|
+
const Oi = (e) => {
|
|
4181
|
+
if (e && gi(e) && Je(e)) {
|
|
4182
|
+
const { loadingDelay: t } = z();
|
|
4162
4183
|
let r;
|
|
4163
4184
|
return typeof window < "u" && $() != null && t ? r = window.setTimeout(
|
|
4164
|
-
() =>
|
|
4185
|
+
() => Ie.set(!0),
|
|
4165
4186
|
t
|
|
4166
|
-
) :
|
|
4167
|
-
|
|
4187
|
+
) : Ie.set(!0), hr(e).then(() => {
|
|
4188
|
+
ge.set(e);
|
|
4168
4189
|
}).finally(() => {
|
|
4169
|
-
clearTimeout(r),
|
|
4190
|
+
clearTimeout(r), Ie.set(!1);
|
|
4170
4191
|
});
|
|
4171
4192
|
}
|
|
4172
|
-
return
|
|
4173
|
-
},
|
|
4174
|
-
set:
|
|
4175
|
-
}),
|
|
4193
|
+
return ge.set(e);
|
|
4194
|
+
}, J = Pi(Ci({}, ge), {
|
|
4195
|
+
set: Oi
|
|
4196
|
+
}), we = (e) => {
|
|
4176
4197
|
const t = /* @__PURE__ */ Object.create(null);
|
|
4177
4198
|
return (n) => {
|
|
4178
4199
|
const i = JSON.stringify(n);
|
|
4179
4200
|
return i in t ? t[i] : t[i] = e(n);
|
|
4180
4201
|
};
|
|
4181
4202
|
};
|
|
4182
|
-
var
|
|
4203
|
+
var Ii = Object.defineProperty, ye = Object.getOwnPropertySymbols, cr = Object.prototype.hasOwnProperty, fr = Object.prototype.propertyIsEnumerable, Tt = (e, t, r) => t in e ? Ii(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, tt = (e, t) => {
|
|
4183
4204
|
for (var r in t || (t = {}))
|
|
4184
|
-
|
|
4185
|
-
if (
|
|
4186
|
-
for (var r of
|
|
4187
|
-
|
|
4205
|
+
cr.call(t, r) && Tt(e, r, t[r]);
|
|
4206
|
+
if (ye)
|
|
4207
|
+
for (var r of ye(t))
|
|
4208
|
+
fr.call(t, r) && Tt(e, r, t[r]);
|
|
4188
4209
|
return e;
|
|
4189
|
-
},
|
|
4210
|
+
}, q = (e, t) => {
|
|
4190
4211
|
var r = {};
|
|
4191
4212
|
for (var n in e)
|
|
4192
|
-
|
|
4193
|
-
if (e != null &&
|
|
4194
|
-
for (var n of
|
|
4195
|
-
t.indexOf(n) < 0 &&
|
|
4213
|
+
cr.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
4214
|
+
if (e != null && ye)
|
|
4215
|
+
for (var n of ye(e))
|
|
4216
|
+
t.indexOf(n) < 0 && fr.call(e, n) && (r[n] = e[n]);
|
|
4196
4217
|
return r;
|
|
4197
4218
|
};
|
|
4198
|
-
const
|
|
4199
|
-
const { formats: r } =
|
|
4219
|
+
const re = (e, t) => {
|
|
4220
|
+
const { formats: r } = z();
|
|
4200
4221
|
if (e in r && t in r[e])
|
|
4201
4222
|
return r[e][t];
|
|
4202
4223
|
throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`);
|
|
4203
|
-
},
|
|
4224
|
+
}, Mi = we(
|
|
4204
4225
|
(e) => {
|
|
4205
|
-
var t = e, { locale: r, format: n } = t, i =
|
|
4226
|
+
var t = e, { locale: r, format: n } = t, i = q(t, ["locale", "format"]);
|
|
4206
4227
|
if (r == null)
|
|
4207
4228
|
throw new Error('[svelte-i18n] A "locale" must be set to format numbers');
|
|
4208
|
-
return n && (i =
|
|
4229
|
+
return n && (i = re("number", n)), new Intl.NumberFormat(r, i);
|
|
4209
4230
|
}
|
|
4210
|
-
),
|
|
4231
|
+
), Ni = we(
|
|
4211
4232
|
(e) => {
|
|
4212
|
-
var t = e, { locale: r, format: n } = t, i =
|
|
4233
|
+
var t = e, { locale: r, format: n } = t, i = q(t, ["locale", "format"]);
|
|
4213
4234
|
if (r == null)
|
|
4214
4235
|
throw new Error('[svelte-i18n] A "locale" must be set to format dates');
|
|
4215
|
-
return n ? i =
|
|
4236
|
+
return n ? i = re("date", n) : Object.keys(i).length === 0 && (i = re("date", "short")), new Intl.DateTimeFormat(r, i);
|
|
4216
4237
|
}
|
|
4217
|
-
),
|
|
4238
|
+
), Li = we(
|
|
4218
4239
|
(e) => {
|
|
4219
|
-
var t = e, { locale: r, format: n } = t, i =
|
|
4240
|
+
var t = e, { locale: r, format: n } = t, i = q(t, ["locale", "format"]);
|
|
4220
4241
|
if (r == null)
|
|
4221
4242
|
throw new Error(
|
|
4222
4243
|
'[svelte-i18n] A "locale" must be set to format time values'
|
|
4223
4244
|
);
|
|
4224
|
-
return n ? i =
|
|
4245
|
+
return n ? i = re("time", n) : Object.keys(i).length === 0 && (i = re("time", "short")), new Intl.DateTimeFormat(r, i);
|
|
4225
4246
|
}
|
|
4226
|
-
),
|
|
4247
|
+
), Ri = (e = {}) => {
|
|
4227
4248
|
var t = e, {
|
|
4228
4249
|
locale: r = $()
|
|
4229
|
-
} = t, n =
|
|
4250
|
+
} = t, n = q(t, [
|
|
4230
4251
|
"locale"
|
|
4231
4252
|
]);
|
|
4232
|
-
return
|
|
4233
|
-
},
|
|
4253
|
+
return Mi(tt({ locale: r }, n));
|
|
4254
|
+
}, $i = (e = {}) => {
|
|
4234
4255
|
var t = e, {
|
|
4235
4256
|
locale: r = $()
|
|
4236
|
-
} = t, n =
|
|
4257
|
+
} = t, n = q(t, [
|
|
4237
4258
|
"locale"
|
|
4238
4259
|
]);
|
|
4239
|
-
return
|
|
4240
|
-
},
|
|
4260
|
+
return Ni(tt({ locale: r }, n));
|
|
4261
|
+
}, Gi = (e = {}) => {
|
|
4241
4262
|
var t = e, {
|
|
4242
4263
|
locale: r = $()
|
|
4243
|
-
} = t, n =
|
|
4264
|
+
} = t, n = q(t, [
|
|
4244
4265
|
"locale"
|
|
4245
4266
|
]);
|
|
4246
|
-
return
|
|
4247
|
-
},
|
|
4267
|
+
return Li(tt({ locale: r }, n));
|
|
4268
|
+
}, Ui = we(
|
|
4248
4269
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
4249
|
-
(e, t = $()) => new
|
|
4250
|
-
ignoreTag:
|
|
4270
|
+
(e, t = $()) => new fi(e, t, z().formats, {
|
|
4271
|
+
ignoreTag: z().ignoreTag
|
|
4251
4272
|
})
|
|
4252
|
-
),
|
|
4273
|
+
), Di = (e, t = {}) => {
|
|
4253
4274
|
var r, n, i, o;
|
|
4254
4275
|
let s = t;
|
|
4255
4276
|
typeof e == "object" && (s = e, e = s.id);
|
|
@@ -4262,9 +4283,9 @@ const ne = (e, t) => {
|
|
|
4262
4283
|
throw new Error(
|
|
4263
4284
|
"[svelte-i18n] Cannot format a message without first setting the initial locale."
|
|
4264
4285
|
);
|
|
4265
|
-
let h =
|
|
4286
|
+
let h = sr(e, l);
|
|
4266
4287
|
if (!h)
|
|
4267
|
-
h = (o = (i = (n = (r =
|
|
4288
|
+
h = (o = (i = (n = (r = z()).handleMissingMessage) == null ? void 0 : n.call(r, { locale: l, id: e, defaultValue: u })) != null ? i : u) != null ? o : e;
|
|
4268
4289
|
else if (typeof h != "string")
|
|
4269
4290
|
return console.warn(
|
|
4270
4291
|
`[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.`
|
|
@@ -4273,7 +4294,7 @@ const ne = (e, t) => {
|
|
|
4273
4294
|
return h;
|
|
4274
4295
|
let c = h;
|
|
4275
4296
|
try {
|
|
4276
|
-
c =
|
|
4297
|
+
c = Ui(h, l).format(a);
|
|
4277
4298
|
} catch (f) {
|
|
4278
4299
|
f instanceof Error && console.warn(
|
|
4279
4300
|
`[svelte-i18n] Message "${e}" has syntax error:`,
|
|
@@ -4281,20 +4302,20 @@ const ne = (e, t) => {
|
|
|
4281
4302
|
);
|
|
4282
4303
|
}
|
|
4283
4304
|
return c;
|
|
4284
|
-
},
|
|
4285
|
-
|
|
4286
|
-
|
|
4287
|
-
|
|
4288
|
-
|
|
4305
|
+
}, Fi = (e, t) => Gi(t).format(e), ji = (e, t) => $i(t).format(e), ki = (e, t) => Ri(t).format(e), Vi = (e, t = $()) => sr(e, t), Xi = Q([J, se], () => Di);
|
|
4306
|
+
Q([J], () => Fi);
|
|
4307
|
+
Q([J], () => ji);
|
|
4308
|
+
Q([J], () => ki);
|
|
4309
|
+
Q([J, se], () => Vi);
|
|
4289
4310
|
window.emWidgets = { topic: nn };
|
|
4290
|
-
const
|
|
4291
|
-
function
|
|
4311
|
+
const zi = (e) => e.toLowerCase().match(/android/i) ? "Android" : e.toLowerCase().match(/iphone/i) ? "iPhone" : e.toLowerCase().match(/ipad|ipod/i) ? "iPad" : "PC";
|
|
4312
|
+
function Wi(e, t) {
|
|
4292
4313
|
if (e) {
|
|
4293
4314
|
const r = document.createElement("style");
|
|
4294
4315
|
r.innerHTML = t, e.appendChild(r);
|
|
4295
4316
|
}
|
|
4296
4317
|
}
|
|
4297
|
-
function
|
|
4318
|
+
function Zi(e, t) {
|
|
4298
4319
|
const r = new URL(t);
|
|
4299
4320
|
fetch(r.href).then((n) => n.text()).then((n) => {
|
|
4300
4321
|
const i = document.createElement("style");
|
|
@@ -4303,7 +4324,7 @@ function zi(e, t) {
|
|
|
4303
4324
|
console.error("There was an error while trying to load client styling from URL", n);
|
|
4304
4325
|
});
|
|
4305
4326
|
}
|
|
4306
|
-
function
|
|
4327
|
+
function Qi(e, t, r) {
|
|
4307
4328
|
if (window.emMessageBus) {
|
|
4308
4329
|
const n = document.createElement("style");
|
|
4309
4330
|
window.emMessageBus.subscribe(t, (i) => {
|
|
@@ -4311,13 +4332,13 @@ function Wi(e, t, r) {
|
|
|
4311
4332
|
});
|
|
4312
4333
|
}
|
|
4313
4334
|
}
|
|
4314
|
-
function
|
|
4315
|
-
|
|
4335
|
+
function Ht(e, t) {
|
|
4336
|
+
ur(e, t);
|
|
4316
4337
|
}
|
|
4317
|
-
function
|
|
4318
|
-
|
|
4338
|
+
function Ji(e) {
|
|
4339
|
+
J.set(e);
|
|
4319
4340
|
}
|
|
4320
|
-
const
|
|
4341
|
+
const At = {
|
|
4321
4342
|
en: {
|
|
4322
4343
|
cancel: "Cancel",
|
|
4323
4344
|
confirm: "Confirm"
|
|
@@ -4363,61 +4384,61 @@ const Tt = {
|
|
|
4363
4384
|
confirm: "Confirm"
|
|
4364
4385
|
}
|
|
4365
4386
|
};
|
|
4366
|
-
function Qi(e) {
|
|
4367
|
-
Er(e, "svelte-8g0wf4", '*,*::before,*::after{margin:0;padding:0;box-sizing:border-box}.GeneralConfirmationWrapper{position:fixed;top:0;right:0;bottom:0;left:0;background-color:var(--emw--color-background, rgba(0, 0, 0, 0.7));display:flex;justify-content:center;align-items:center;z-index:300;color:var(--emw--color-typography, #ffffff)}.GeneralConfirmationTitle{margin-bottom:20px}.GeneralConfirmationContainer{position:relative;background:linear-gradient(to right, var(--emw--color-primary-variant, #184026), var(--emw--color-secondary-variant, #013e5c));border:5px solid transparent;padding:60px 30px 30px;background-clip:padding-box;border-radius:var(--emw--border-radius-medium, 10px);text-align:center}.GeneralConfirmationContainer::before{content:"";position:absolute;top:-4px;left:-8px;width:103%;height:105%;z-index:-1;background:linear-gradient(to right, var(--emw--color-primary, #22b04e), color-mix(in srgb, var(--emw--color-secondary, #e98b0f) 80%, black 20%), #22b04e);opacity:0.5;border-radius:inherit;filter:blur(6px)}.GeneralConfirmationContainer::after{position:absolute;top:-4px;bottom:-4px;left:-4px;right:-4px;background:linear-gradient(to right, color-mix(in srgb, var(--emw--color-primary-variant, #184026) 80%, white 10%), color-mix(in srgb, var(--emw--color-secondary-variant, #013e5c) 80%, white 10%));content:"";z-index:-1;border-radius:var(--emw--border-radius-medium, 10px)}.GeneralConfirmationContainerMobile{padding:40px;max-width:330px}.GeneralConfirmationContainerMobile .GeneralConfirmationControlAreaMobile .GeneralCancelButton,.GeneralConfirmationContainerMobile .GeneralConfirmationControlAreaMobile .GeneralConfirmButton{width:120px;height:auto;font-size:var(--emw--font-size-x-small, 12px)}.GeneralConfirmationContent{font-size:var(--emw--font-size-medium, 18px);font-weight:300}.GeneralConfirmationControlArea{display:flex;gap:10px;direction:ltr;margin-top:30px}.GeneralConfirmationControlArea .GeneralCancelButton,.GeneralConfirmationControlArea .GeneralConfirmButton{flex:1;background:transparent;border:1px solid var(--emw--color-gray-100, #bfcbc3);color:var(--emw--color-gray-100, #bfcbc3);cursor:pointer;border-radius:var(--emw--button-border-radius, 50px);width:200px;height:50px;font-size:var(--emw--font-size-small, 16px);text-transform:uppercase;text-align:center;transition-duration:0.3s;box-sizing:border-box;padding:10px}.GeneralConfirmationControlArea .GeneralConfirmButton{background-color:var(--emw--color-primary, #22b04e);border:2px solid var(--emw--button-border-color, #063b17);border-radius:var(--emw--button-border-radius, 50px);color:var(--emw--button-typography, var(--emw--button-text-color, #ffffff))}.ModalCloseBtn{position:absolute;display:flex;align-items:center;justify-content:center;top:5px;right:5px;padding:8px;border-radius:50%;cursor:pointer;transition:all 150ms ease-in-out}.ModalCloseBtn svg{width:35px;height:40px}.ModalCloseBtn:hover{background:rgba(255, 255, 255, 0.2)}.GeneralConfirmationMobileWrapper{border:none;padding:0}');
|
|
4368
|
-
}
|
|
4369
|
-
const Ji = (e) => ({}), Ht = (e) => ({});
|
|
4370
4387
|
function qi(e) {
|
|
4388
|
+
Sr(e, "svelte-8g0wf4", '*,*::before,*::after{margin:0;padding:0;box-sizing:border-box}.GeneralConfirmationWrapper{position:fixed;top:0;right:0;bottom:0;left:0;background-color:var(--emw--color-background, rgba(0, 0, 0, 0.7));display:flex;justify-content:center;align-items:center;z-index:300;color:var(--emw--color-typography, #ffffff)}.GeneralConfirmationTitle{margin-bottom:20px}.GeneralConfirmationContainer{position:relative;background:linear-gradient(to right, var(--emw--color-primary-variant, #184026), var(--emw--color-secondary-variant, #013e5c));border:5px solid transparent;padding:60px 30px 30px;background-clip:padding-box;border-radius:var(--emw--border-radius-medium, 10px);text-align:center}.GeneralConfirmationContainer::before{content:"";position:absolute;top:-4px;left:-8px;width:103%;height:105%;z-index:-1;background:linear-gradient(to right, var(--emw--color-primary, #22b04e), color-mix(in srgb, var(--emw--color-secondary, #e98b0f) 80%, black 20%), #22b04e);opacity:0.5;border-radius:inherit;filter:blur(6px)}.GeneralConfirmationContainer::after{position:absolute;top:-4px;bottom:-4px;left:-4px;right:-4px;background:linear-gradient(to right, color-mix(in srgb, var(--emw--color-primary-variant, #184026) 80%, white 10%), color-mix(in srgb, var(--emw--color-secondary-variant, #013e5c) 80%, white 10%));content:"";z-index:-1;border-radius:var(--emw--border-radius-medium, 10px)}.GeneralConfirmationContainerMobile{padding:40px;max-width:330px}.GeneralConfirmationContainerMobile .GeneralConfirmationControlAreaMobile .GeneralCancelButton,.GeneralConfirmationContainerMobile .GeneralConfirmationControlAreaMobile .GeneralConfirmButton{width:120px;height:auto;font-size:var(--emw--font-size-x-small, 12px)}.GeneralConfirmationContent{font-size:var(--emw--font-size-medium, 18px);font-weight:300}.GeneralConfirmationControlArea{display:flex;gap:10px;direction:ltr;margin-top:30px}.GeneralConfirmationControlArea .GeneralCancelButton,.GeneralConfirmationControlArea .GeneralConfirmButton{flex:1;background:transparent;border:1px solid var(--emw--color-gray-100, #bfcbc3);color:var(--emw--color-gray-100, #bfcbc3);cursor:pointer;border-radius:var(--emw--button-border-radius, 50px);width:200px;height:50px;font-size:var(--emw--font-size-small, 16px);text-transform:uppercase;text-align:center;transition-duration:0.3s;box-sizing:border-box;padding:10px}.GeneralConfirmationControlArea .GeneralConfirmButton{background-color:var(--emw--color-primary, #22b04e);border:2px solid var(--emw--button-border-color, #063b17);border-radius:var(--emw--button-border-radius, 50px);color:var(--emw--button-typography, var(--emw--button-text-color, #ffffff))}.ModalCloseBtn{position:absolute;display:flex;align-items:center;justify-content:center;top:5px;right:5px;padding:8px;border-radius:50%;cursor:pointer;transition:all 150ms ease-in-out}.ModalCloseBtn svg{width:35px;height:40px}.ModalCloseBtn:hover{background:rgba(255, 255, 255, 0.2)}.GeneralConfirmationMobileWrapper{border:none;padding:0}');
|
|
4389
|
+
}
|
|
4390
|
+
const Yi = (e) => ({}), Bt = (e) => ({});
|
|
4391
|
+
function Ki(e) {
|
|
4371
4392
|
let t, r;
|
|
4372
4393
|
return {
|
|
4373
4394
|
c() {
|
|
4374
|
-
t =
|
|
4395
|
+
t = it("svg"), r = it("path"), T(r, "stroke-linecap", "round"), T(r, "stroke-linejoin", "round"), T(r, "stroke-width", "2"), T(r, "d", "M6 18L18 6M6 6l12 12"), T(t, "class", "w-6 h-6"), T(t, "fill", "none"), T(t, "stroke", "currentColor"), T(t, "viewBox", "0 0 24 24"), T(t, "xmlns", "http://www.w3.org/2000/svg");
|
|
4375
4396
|
},
|
|
4376
4397
|
m(n, i) {
|
|
4377
|
-
|
|
4398
|
+
ne(n, t, i), B(t, r);
|
|
4378
4399
|
},
|
|
4379
|
-
p:
|
|
4400
|
+
p: N,
|
|
4380
4401
|
d(n) {
|
|
4381
|
-
n &&
|
|
4402
|
+
n && Z(t);
|
|
4382
4403
|
}
|
|
4383
4404
|
};
|
|
4384
4405
|
}
|
|
4385
|
-
function
|
|
4406
|
+
function Ct(e) {
|
|
4386
4407
|
let t, r, n;
|
|
4387
4408
|
return {
|
|
4388
4409
|
c() {
|
|
4389
|
-
t = I("div"), r = I("h2"), n =
|
|
4410
|
+
t = I("div"), r = I("h2"), n = ie(
|
|
4390
4411
|
/*modaltitle*/
|
|
4391
4412
|
e[1]
|
|
4392
4413
|
), T(t, "class", "GeneralConfirmationTitle");
|
|
4393
4414
|
},
|
|
4394
4415
|
m(i, o) {
|
|
4395
|
-
|
|
4416
|
+
ne(i, t, o), B(t, r), B(r, n);
|
|
4396
4417
|
},
|
|
4397
4418
|
p(i, o) {
|
|
4398
4419
|
o & /*modaltitle*/
|
|
4399
|
-
2 &&
|
|
4420
|
+
2 && Ke(
|
|
4400
4421
|
n,
|
|
4401
4422
|
/*modaltitle*/
|
|
4402
4423
|
i[1]
|
|
4403
4424
|
);
|
|
4404
4425
|
},
|
|
4405
4426
|
d(i) {
|
|
4406
|
-
i &&
|
|
4427
|
+
i && Z(t);
|
|
4407
4428
|
}
|
|
4408
4429
|
};
|
|
4409
4430
|
}
|
|
4410
|
-
function
|
|
4431
|
+
function Pt(e) {
|
|
4411
4432
|
let t, r = (
|
|
4412
4433
|
/*$_*/
|
|
4413
4434
|
e[4]("cancel") + ""
|
|
4414
4435
|
), n, i, o;
|
|
4415
4436
|
return {
|
|
4416
4437
|
c() {
|
|
4417
|
-
t = I("button"), n =
|
|
4438
|
+
t = I("button"), n = ie(r), T(t, "class", "GeneralCancelButton");
|
|
4418
4439
|
},
|
|
4419
4440
|
m(s, a) {
|
|
4420
|
-
|
|
4441
|
+
ne(s, t, a), B(t, n), i || (o = Me(
|
|
4421
4442
|
t,
|
|
4422
4443
|
"click",
|
|
4423
4444
|
/*click_handler*/
|
|
@@ -4427,52 +4448,52 @@ function Bt(e) {
|
|
|
4427
4448
|
p(s, a) {
|
|
4428
4449
|
a & /*$_*/
|
|
4429
4450
|
16 && r !== (r = /*$_*/
|
|
4430
|
-
s[4]("cancel") + "") &&
|
|
4451
|
+
s[4]("cancel") + "") && Ke(n, r);
|
|
4431
4452
|
},
|
|
4432
4453
|
d(s) {
|
|
4433
|
-
s &&
|
|
4454
|
+
s && Z(t), i = !1, o();
|
|
4434
4455
|
}
|
|
4435
4456
|
};
|
|
4436
4457
|
}
|
|
4437
|
-
function
|
|
4458
|
+
function eo(e) {
|
|
4438
4459
|
let t, r, n, i, o, s, a, l, u, h, c = (
|
|
4439
4460
|
/*$_*/
|
|
4440
4461
|
e[4]("confirm") + ""
|
|
4441
|
-
), f, m, y,
|
|
4442
|
-
const
|
|
4462
|
+
), f, m, y, d;
|
|
4463
|
+
const S = (
|
|
4443
4464
|
/*#slots*/
|
|
4444
4465
|
e[16].close
|
|
4445
|
-
), P =
|
|
4446
|
-
|
|
4466
|
+
), P = vr(
|
|
4467
|
+
S,
|
|
4447
4468
|
e,
|
|
4448
4469
|
/*$$scope*/
|
|
4449
4470
|
e[15],
|
|
4450
|
-
|
|
4451
|
-
), H = P ||
|
|
4471
|
+
Bt
|
|
4472
|
+
), H = P || Ki();
|
|
4452
4473
|
let _ = (
|
|
4453
4474
|
/*modaltitle*/
|
|
4454
|
-
e[1] &&
|
|
4455
|
-
),
|
|
4475
|
+
e[1] && Ct(e)
|
|
4476
|
+
), x = (
|
|
4456
4477
|
/*hascancelbutton*/
|
|
4457
|
-
e[2] &&
|
|
4478
|
+
e[2] && Pt(e)
|
|
4458
4479
|
);
|
|
4459
4480
|
return {
|
|
4460
4481
|
c() {
|
|
4461
|
-
t = I("div"), r = I("div"), n = I("span"), H && H.c(), i = ue(), _ && _.c(), o = ue(), s = I("div"), a = ue(), l = I("div"),
|
|
4482
|
+
t = I("div"), r = I("div"), n = I("span"), H && H.c(), i = ue(), _ && _.c(), o = ue(), s = I("div"), a = ue(), l = I("div"), x && x.c(), u = ue(), h = I("button"), f = ie(c), T(n, "class", "ModalCloseBtn"), T(n, "role", "button"), T(s, "class", "GeneralConfirmationContent"), T(h, "class", "GeneralConfirmButton"), T(l, "class", "GeneralConfirmationControlArea " + /*isMobile*/
|
|
4462
4483
|
(e[5] ? "GeneralConfirmationControlAreaMobile" : "")), T(r, "class", "GeneralConfirmationContainer " + /*isMobile*/
|
|
4463
4484
|
(e[5] ? "GeneralConfirmationContainerMobile" : "")), T(t, "class", "GeneralConfirmationWrapper " + /*isMobile*/
|
|
4464
4485
|
(e[5] ? "GeneralConfirmationMobileWrapper" : ""));
|
|
4465
4486
|
},
|
|
4466
|
-
m(
|
|
4467
|
-
|
|
4468
|
-
e[0], B(r, a), B(r, l),
|
|
4469
|
-
|
|
4487
|
+
m(v, A) {
|
|
4488
|
+
ne(v, t, A), B(t, r), B(r, n), H && H.m(n, null), B(r, i), _ && _.m(r, null), B(r, o), B(r, s), s.innerHTML = /*modaltext*/
|
|
4489
|
+
e[0], B(r, a), B(r, l), x && x.m(l, null), B(l, u), B(l, h), B(h, f), e[19](t), m = !0, y || (d = [
|
|
4490
|
+
Me(
|
|
4470
4491
|
n,
|
|
4471
4492
|
"click",
|
|
4472
4493
|
/*close*/
|
|
4473
4494
|
e[6]
|
|
4474
4495
|
),
|
|
4475
|
-
|
|
4496
|
+
Me(
|
|
4476
4497
|
h,
|
|
4477
4498
|
"click",
|
|
4478
4499
|
/*click_handler_1*/
|
|
@@ -4480,115 +4501,115 @@ function Yi(e) {
|
|
|
4480
4501
|
)
|
|
4481
4502
|
], y = !0);
|
|
4482
4503
|
},
|
|
4483
|
-
p(
|
|
4504
|
+
p(v, [A]) {
|
|
4484
4505
|
P && P.p && (!m || A & /*$$scope*/
|
|
4485
4506
|
32768) && xr(
|
|
4486
4507
|
P,
|
|
4487
|
-
|
|
4488
|
-
|
|
4508
|
+
S,
|
|
4509
|
+
v,
|
|
4489
4510
|
/*$$scope*/
|
|
4490
|
-
|
|
4491
|
-
m ?
|
|
4492
|
-
|
|
4511
|
+
v[15],
|
|
4512
|
+
m ? _r(
|
|
4513
|
+
S,
|
|
4493
4514
|
/*$$scope*/
|
|
4494
|
-
|
|
4515
|
+
v[15],
|
|
4495
4516
|
A,
|
|
4496
|
-
|
|
4497
|
-
) :
|
|
4517
|
+
Yi
|
|
4518
|
+
) : Er(
|
|
4498
4519
|
/*$$scope*/
|
|
4499
|
-
|
|
4520
|
+
v[15]
|
|
4500
4521
|
),
|
|
4501
|
-
|
|
4522
|
+
Bt
|
|
4502
4523
|
), /*modaltitle*/
|
|
4503
|
-
|
|
4524
|
+
v[1] ? _ ? _.p(v, A) : (_ = Ct(v), _.c(), _.m(r, o)) : _ && (_.d(1), _ = null), (!m || A & /*modaltext*/
|
|
4504
4525
|
1) && (s.innerHTML = /*modaltext*/
|
|
4505
|
-
|
|
4506
|
-
|
|
4526
|
+
v[0]), /*hascancelbutton*/
|
|
4527
|
+
v[2] ? x ? x.p(v, A) : (x = Pt(v), x.c(), x.m(l, u)) : x && (x.d(1), x = null), (!m || A & /*$_*/
|
|
4507
4528
|
16) && c !== (c = /*$_*/
|
|
4508
|
-
|
|
4529
|
+
v[4]("confirm") + "") && Ke(f, c);
|
|
4509
4530
|
},
|
|
4510
|
-
i(
|
|
4511
|
-
m || (
|
|
4531
|
+
i(v) {
|
|
4532
|
+
m || (Lt(H, v), m = !0);
|
|
4512
4533
|
},
|
|
4513
|
-
o(
|
|
4514
|
-
|
|
4534
|
+
o(v) {
|
|
4535
|
+
Lr(H, v), m = !1;
|
|
4515
4536
|
},
|
|
4516
|
-
d(
|
|
4517
|
-
|
|
4537
|
+
d(v) {
|
|
4538
|
+
v && Z(t), H && H.d(v), _ && _.d(), x && x.d(), e[19](null), y = !1, W(d);
|
|
4518
4539
|
}
|
|
4519
4540
|
};
|
|
4520
4541
|
}
|
|
4521
|
-
function
|
|
4542
|
+
function to(e, t, r) {
|
|
4522
4543
|
let n;
|
|
4523
|
-
|
|
4524
|
-
let { $$slots: i = {}, $$scope: o } = t, { modaltext: s = "Are you sure that you want to perform this action?" } = t, { modaltitle: a = "" } = t, { hascancelbutton: l = !1 } = t, { modalconfirmevent: u = {} } = t, { modalcancelevent: h = {} } = t, { lang: c = "en" } = t, { clientstyling: f = "" } = t, { clientstylingurl: m = "" } = t, { translationurl: y = "" } = t, { mbsource:
|
|
4544
|
+
yr(e, Xi, (b) => r(4, n = b));
|
|
4545
|
+
let { $$slots: i = {}, $$scope: o } = t, { modaltext: s = "Are you sure that you want to perform this action?" } = t, { modaltitle: a = "" } = t, { hascancelbutton: l = !1 } = t, { modalconfirmevent: u = {} } = t, { modalcancelevent: h = {} } = t, { lang: c = "en" } = t, { clientstyling: f = "" } = t, { clientstylingurl: m = "" } = t, { translationurl: y = "" } = t, { mbsource: d } = t, S, P = window.navigator.userAgent, H = zi(P) !== "PC";
|
|
4525
4546
|
const _ = () => {
|
|
4526
4547
|
window.postMessage({ type: "ModalClosed" }, window.location.href);
|
|
4527
|
-
},
|
|
4548
|
+
}, x = (b) => {
|
|
4528
4549
|
b === "confirm" && u && window.postMessage(u, window.location.href), b === "cancel" && h && window.postMessage(h, window.location.href), _();
|
|
4529
|
-
},
|
|
4550
|
+
}, v = () => {
|
|
4530
4551
|
fetch(y).then((G) => G.json()).then((G) => {
|
|
4531
|
-
Object.keys(G).forEach((
|
|
4532
|
-
|
|
4552
|
+
Object.keys(G).forEach((rt) => {
|
|
4553
|
+
Ht(rt, G[rt]);
|
|
4533
4554
|
});
|
|
4534
4555
|
}).catch((G) => {
|
|
4535
4556
|
console.log(G);
|
|
4536
4557
|
});
|
|
4537
4558
|
};
|
|
4538
|
-
Object.keys(
|
|
4539
|
-
|
|
4559
|
+
Object.keys(At).forEach((b) => {
|
|
4560
|
+
Ht(b, At[b]);
|
|
4540
4561
|
});
|
|
4541
4562
|
const A = () => {
|
|
4542
|
-
|
|
4563
|
+
Ji(c);
|
|
4543
4564
|
};
|
|
4544
|
-
|
|
4565
|
+
Cr(() => () => {
|
|
4545
4566
|
});
|
|
4546
|
-
const ae = () =>
|
|
4567
|
+
const ae = () => x("cancel"), pr = () => x("confirm");
|
|
4547
4568
|
function dr(b) {
|
|
4548
|
-
|
|
4549
|
-
|
|
4569
|
+
Ne[b ? "unshift" : "push"](() => {
|
|
4570
|
+
S = b, r(3, S);
|
|
4550
4571
|
});
|
|
4551
4572
|
}
|
|
4552
4573
|
return e.$$set = (b) => {
|
|
4553
|
-
"modaltext" in b && r(0, s = b.modaltext), "modaltitle" in b && r(1, a = b.modaltitle), "hascancelbutton" in b && r(2, l = b.hascancelbutton), "modalconfirmevent" in b && r(8, u = b.modalconfirmevent), "modalcancelevent" in b && r(9, h = b.modalcancelevent), "lang" in b && r(10, c = b.lang), "clientstyling" in b && r(11, f = b.clientstyling), "clientstylingurl" in b && r(12, m = b.clientstylingurl), "translationurl" in b && r(13, y = b.translationurl), "mbsource" in b && r(14,
|
|
4574
|
+
"modaltext" in b && r(0, s = b.modaltext), "modaltitle" in b && r(1, a = b.modaltitle), "hascancelbutton" in b && r(2, l = b.hascancelbutton), "modalconfirmevent" in b && r(8, u = b.modalconfirmevent), "modalcancelevent" in b && r(9, h = b.modalcancelevent), "lang" in b && r(10, c = b.lang), "clientstyling" in b && r(11, f = b.clientstyling), "clientstylingurl" in b && r(12, m = b.clientstylingurl), "translationurl" in b && r(13, y = b.translationurl), "mbsource" in b && r(14, d = b.mbsource), "$$scope" in b && r(15, o = b.$$scope);
|
|
4554
4575
|
}, e.$$.update = () => {
|
|
4555
4576
|
e.$$.dirty & /*modaltext, lang*/
|
|
4556
4577
|
1025 && s && c && A(), e.$$.dirty & /*clientstyling, customStylingContainer*/
|
|
4557
|
-
2056 && f &&
|
|
4558
|
-
4104 && m &&
|
|
4559
|
-
16392 &&
|
|
4560
|
-
8192 && y &&
|
|
4578
|
+
2056 && f && S && Wi(S, f), e.$$.dirty & /*clientstylingurl, customStylingContainer*/
|
|
4579
|
+
4104 && m && S && Zi(S, m), e.$$.dirty & /*mbsource, customStylingContainer*/
|
|
4580
|
+
16392 && d && S && Qi(S, `${d}.Style`), e.$$.dirty & /*translationurl*/
|
|
4581
|
+
8192 && y && v();
|
|
4561
4582
|
}, [
|
|
4562
4583
|
s,
|
|
4563
4584
|
a,
|
|
4564
4585
|
l,
|
|
4565
|
-
|
|
4586
|
+
S,
|
|
4566
4587
|
n,
|
|
4567
4588
|
H,
|
|
4568
4589
|
_,
|
|
4569
|
-
|
|
4590
|
+
x,
|
|
4570
4591
|
u,
|
|
4571
4592
|
h,
|
|
4572
4593
|
c,
|
|
4573
4594
|
f,
|
|
4574
4595
|
m,
|
|
4575
4596
|
y,
|
|
4576
|
-
|
|
4597
|
+
d,
|
|
4577
4598
|
o,
|
|
4578
4599
|
i,
|
|
4579
4600
|
ae,
|
|
4580
|
-
|
|
4601
|
+
pr,
|
|
4581
4602
|
dr
|
|
4582
4603
|
];
|
|
4583
4604
|
}
|
|
4584
|
-
class
|
|
4605
|
+
class mr extends Fr {
|
|
4585
4606
|
constructor(t) {
|
|
4586
|
-
super(),
|
|
4607
|
+
super(), Ur(
|
|
4587
4608
|
this,
|
|
4588
4609
|
t,
|
|
4589
|
-
|
|
4590
|
-
|
|
4591
|
-
|
|
4610
|
+
to,
|
|
4611
|
+
eo,
|
|
4612
|
+
It,
|
|
4592
4613
|
{
|
|
4593
4614
|
modaltext: 0,
|
|
4594
4615
|
modaltitle: 1,
|
|
@@ -4601,7 +4622,7 @@ class fr extends Dr {
|
|
|
4601
4622
|
translationurl: 13,
|
|
4602
4623
|
mbsource: 14
|
|
4603
4624
|
},
|
|
4604
|
-
|
|
4625
|
+
qi
|
|
4605
4626
|
);
|
|
4606
4627
|
}
|
|
4607
4628
|
get modaltext() {
|
|
@@ -4665,50 +4686,50 @@ class fr extends Dr {
|
|
|
4665
4686
|
this.$$set({ mbsource: t }), O();
|
|
4666
4687
|
}
|
|
4667
4688
|
}
|
|
4668
|
-
|
|
4669
|
-
const
|
|
4689
|
+
Dr(mr, { modaltext: {}, modaltitle: {}, hascancelbutton: { type: "Boolean" }, modalconfirmevent: {}, modalcancelevent: {}, lang: {}, clientstyling: {}, clientstylingurl: {}, translationurl: {}, mbsource: {} }, ["close"], [], !0);
|
|
4690
|
+
const co = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
4670
4691
|
__proto__: null,
|
|
4671
|
-
default:
|
|
4692
|
+
default: mr
|
|
4672
4693
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
4673
4694
|
export {
|
|
4674
|
-
|
|
4675
|
-
|
|
4676
|
-
|
|
4677
|
-
|
|
4678
|
-
|
|
4679
|
-
|
|
4680
|
-
|
|
4681
|
-
|
|
4682
|
-
|
|
4683
|
-
|
|
4684
|
-
|
|
4685
|
-
|
|
4686
|
-
|
|
4687
|
-
|
|
4688
|
-
|
|
4689
|
-
|
|
4690
|
-
|
|
4691
|
-
|
|
4692
|
-
|
|
4695
|
+
J as $,
|
|
4696
|
+
ao as A,
|
|
4697
|
+
Me as B,
|
|
4698
|
+
ie as C,
|
|
4699
|
+
no as D,
|
|
4700
|
+
Re as E,
|
|
4701
|
+
it as F,
|
|
4702
|
+
oo as G,
|
|
4703
|
+
Xi as H,
|
|
4704
|
+
Wi as I,
|
|
4705
|
+
Zi as J,
|
|
4706
|
+
Qi as K,
|
|
4707
|
+
co as P,
|
|
4708
|
+
Fr as S,
|
|
4709
|
+
ur as a,
|
|
4710
|
+
Dr as b,
|
|
4711
|
+
ho as c,
|
|
4712
|
+
Sr as d,
|
|
4713
|
+
Z as e,
|
|
4693
4714
|
O as f,
|
|
4694
|
-
|
|
4695
|
-
|
|
4696
|
-
|
|
4697
|
-
|
|
4698
|
-
|
|
4699
|
-
|
|
4700
|
-
|
|
4701
|
-
|
|
4702
|
-
|
|
4703
|
-
|
|
4704
|
-
|
|
4705
|
-
|
|
4706
|
-
|
|
4707
|
-
|
|
4708
|
-
|
|
4709
|
-
|
|
4710
|
-
|
|
4711
|
-
|
|
4712
|
-
|
|
4713
|
-
|
|
4715
|
+
kr as g,
|
|
4716
|
+
ne as h,
|
|
4717
|
+
Ur as i,
|
|
4718
|
+
I as j,
|
|
4719
|
+
yr as k,
|
|
4720
|
+
zi as l,
|
|
4721
|
+
uo as m,
|
|
4722
|
+
N as n,
|
|
4723
|
+
Cr as o,
|
|
4724
|
+
Ne as p,
|
|
4725
|
+
B as q,
|
|
4726
|
+
ue as r,
|
|
4727
|
+
It as s,
|
|
4728
|
+
io as t,
|
|
4729
|
+
so as u,
|
|
4730
|
+
T as v,
|
|
4731
|
+
lo as w,
|
|
4732
|
+
ro as x,
|
|
4733
|
+
W as y,
|
|
4734
|
+
Ke as z
|
|
4714
4735
|
};
|