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