@everymatrix/player-account-closure-nd 1.55.0 → 1.56.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/components/{PlayerAccountClosureNd-BL603h76.js → PlayerAccountClosureNd-CC4pYH5Z.js} +964 -904
- package/components/{PlayerAccountClosureNd-DgbYr_5n.js → PlayerAccountClosureNd-C_2Lx9S3.js} +1004 -944
- package/components/PlayerAccountClosureNd-DjqN8YNi.cjs +18 -0
- package/es2015/player-account-closure-nd.cjs +1 -1
- package/es2015/player-account-closure-nd.js +1 -1
- package/esnext/player-account-closure-nd.js +1 -1
- package/package.json +1 -1
- package/components/PlayerAccountClosureNd-DotHJaD2.cjs +0 -5
package/components/{PlayerAccountClosureNd-BL603h76.js → PlayerAccountClosureNd-CC4pYH5Z.js}
RENAMED
|
@@ -1,47 +1,48 @@
|
|
|
1
|
-
function
|
|
1
|
+
function O() {
|
|
2
2
|
}
|
|
3
|
-
function
|
|
3
|
+
function At(e) {
|
|
4
4
|
return e();
|
|
5
5
|
}
|
|
6
|
-
function
|
|
6
|
+
function et() {
|
|
7
7
|
return /* @__PURE__ */ Object.create(null);
|
|
8
8
|
}
|
|
9
|
-
function
|
|
10
|
-
e.forEach(
|
|
9
|
+
function J(e) {
|
|
10
|
+
e.forEach(At);
|
|
11
11
|
}
|
|
12
|
-
function
|
|
12
|
+
function Ze(e) {
|
|
13
13
|
return typeof e == "function";
|
|
14
14
|
}
|
|
15
|
-
function
|
|
15
|
+
function St(e, t) {
|
|
16
16
|
return e != e ? t == t : e !== t || e && typeof e == "object" || typeof e == "function";
|
|
17
17
|
}
|
|
18
|
-
function
|
|
18
|
+
function sr(e) {
|
|
19
19
|
return Object.keys(e).length === 0;
|
|
20
20
|
}
|
|
21
|
-
function
|
|
21
|
+
function Tt(e, ...t) {
|
|
22
22
|
if (e == null) {
|
|
23
23
|
for (const n of t)
|
|
24
24
|
n(void 0);
|
|
25
|
-
return
|
|
25
|
+
return O;
|
|
26
26
|
}
|
|
27
27
|
const r = e.subscribe(...t);
|
|
28
28
|
return r.unsubscribe ? () => r.unsubscribe() : r;
|
|
29
29
|
}
|
|
30
|
-
function
|
|
31
|
-
e.$$.on_destroy.push(
|
|
30
|
+
function ar(e, t, r) {
|
|
31
|
+
e.$$.on_destroy.push(Tt(t, r));
|
|
32
32
|
}
|
|
33
33
|
function v(e, t) {
|
|
34
34
|
e.appendChild(t);
|
|
35
35
|
}
|
|
36
|
-
function
|
|
37
|
-
const n =
|
|
36
|
+
function ur(e, t, r) {
|
|
37
|
+
const n = lr(e);
|
|
38
38
|
if (!n.getElementById(t)) {
|
|
39
39
|
const i = B("style");
|
|
40
|
-
i.id = t, i.textContent = r,
|
|
40
|
+
i.id = t, i.textContent = r, cr(n, i);
|
|
41
41
|
}
|
|
42
42
|
}
|
|
43
|
-
function
|
|
44
|
-
if (!e)
|
|
43
|
+
function lr(e) {
|
|
44
|
+
if (!e)
|
|
45
|
+
return document;
|
|
45
46
|
const t = e.getRootNode ? e.getRootNode() : e.ownerDocument;
|
|
46
47
|
return t && /** @type {ShadowRoot} */
|
|
47
48
|
t.host ? (
|
|
@@ -49,45 +50,45 @@ function cr(e) {
|
|
|
49
50
|
t
|
|
50
51
|
) : e.ownerDocument;
|
|
51
52
|
}
|
|
52
|
-
function
|
|
53
|
+
function cr(e, t) {
|
|
53
54
|
return v(
|
|
54
55
|
/** @type {Document} */
|
|
55
56
|
e.head || e,
|
|
56
57
|
t
|
|
57
58
|
), t.sheet;
|
|
58
59
|
}
|
|
59
|
-
function
|
|
60
|
+
function ge(e, t, r) {
|
|
60
61
|
e.insertBefore(t, r || null);
|
|
61
62
|
}
|
|
62
|
-
function
|
|
63
|
+
function ae(e) {
|
|
63
64
|
e.parentNode && e.parentNode.removeChild(e);
|
|
64
65
|
}
|
|
65
66
|
function B(e) {
|
|
66
67
|
return document.createElement(e);
|
|
67
68
|
}
|
|
68
|
-
function
|
|
69
|
+
function j(e) {
|
|
69
70
|
return document.createElementNS("http://www.w3.org/2000/svg", e);
|
|
70
71
|
}
|
|
71
|
-
function
|
|
72
|
+
function I(e) {
|
|
72
73
|
return document.createTextNode(e);
|
|
73
74
|
}
|
|
74
|
-
function
|
|
75
|
-
return
|
|
75
|
+
function D() {
|
|
76
|
+
return I(" ");
|
|
76
77
|
}
|
|
77
|
-
function
|
|
78
|
+
function me(e, t, r, n) {
|
|
78
79
|
return e.addEventListener(t, r, n), () => e.removeEventListener(t, r, n);
|
|
79
80
|
}
|
|
80
|
-
function
|
|
81
|
+
function E(e, t, r) {
|
|
81
82
|
r == null ? e.removeAttribute(t) : e.getAttribute(t) !== r && e.setAttribute(t, r);
|
|
82
83
|
}
|
|
83
|
-
function
|
|
84
|
+
function hr(e) {
|
|
84
85
|
return Array.from(e.childNodes);
|
|
85
86
|
}
|
|
86
|
-
function
|
|
87
|
+
function U(e, t) {
|
|
87
88
|
t = "" + t, e.data !== t && (e.data = /** @type {string} */
|
|
88
89
|
t);
|
|
89
90
|
}
|
|
90
|
-
function
|
|
91
|
+
function fr(e) {
|
|
91
92
|
const t = {};
|
|
92
93
|
return e.childNodes.forEach(
|
|
93
94
|
/** @param {Element} node */
|
|
@@ -96,116 +97,125 @@ function pr(e) {
|
|
|
96
97
|
}
|
|
97
98
|
), t;
|
|
98
99
|
}
|
|
99
|
-
let
|
|
100
|
-
function
|
|
101
|
-
|
|
100
|
+
let ie;
|
|
101
|
+
function ne(e) {
|
|
102
|
+
ie = e;
|
|
103
|
+
}
|
|
104
|
+
function pr() {
|
|
105
|
+
if (!ie)
|
|
106
|
+
throw new Error("Function called outside component initialization");
|
|
107
|
+
return ie;
|
|
102
108
|
}
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
const rt = [], dr = /* @__PURE__ */ Promise.resolve();
|
|
106
|
-
let Ne = !1;
|
|
107
|
-
function mr() {
|
|
108
|
-
Ne || (Ne = !0, dr.then(X));
|
|
109
|
+
function dr(e) {
|
|
110
|
+
pr().$$.on_mount.push(e);
|
|
109
111
|
}
|
|
110
|
-
|
|
111
|
-
|
|
112
|
+
const V = [], Oe = [];
|
|
113
|
+
let W = [];
|
|
114
|
+
const tt = [], mr = /* @__PURE__ */ Promise.resolve();
|
|
115
|
+
let Ie = !1;
|
|
116
|
+
function br() {
|
|
117
|
+
Ie || (Ie = !0, mr.then(R));
|
|
118
|
+
}
|
|
119
|
+
function Ne(e) {
|
|
120
|
+
W.push(e);
|
|
112
121
|
}
|
|
113
122
|
const we = /* @__PURE__ */ new Set();
|
|
114
|
-
let
|
|
115
|
-
function
|
|
116
|
-
if (
|
|
123
|
+
let k = 0;
|
|
124
|
+
function R() {
|
|
125
|
+
if (k !== 0)
|
|
117
126
|
return;
|
|
118
|
-
const e =
|
|
127
|
+
const e = ie;
|
|
119
128
|
do {
|
|
120
129
|
try {
|
|
121
|
-
for (;
|
|
122
|
-
const t =
|
|
123
|
-
|
|
130
|
+
for (; k < V.length; ) {
|
|
131
|
+
const t = V[k];
|
|
132
|
+
k++, ne(t), vr(t.$$);
|
|
124
133
|
}
|
|
125
134
|
} catch (t) {
|
|
126
|
-
throw
|
|
135
|
+
throw V.length = 0, k = 0, t;
|
|
127
136
|
}
|
|
128
|
-
for (
|
|
129
|
-
|
|
130
|
-
|
|
137
|
+
for (ne(null), V.length = 0, k = 0; Oe.length; )
|
|
138
|
+
Oe.pop()();
|
|
139
|
+
for (let t = 0; t < W.length; t += 1) {
|
|
140
|
+
const r = W[t];
|
|
131
141
|
we.has(r) || (we.add(r), r());
|
|
132
142
|
}
|
|
133
|
-
|
|
134
|
-
} while (
|
|
135
|
-
for (;
|
|
136
|
-
|
|
137
|
-
|
|
143
|
+
W.length = 0;
|
|
144
|
+
} while (V.length);
|
|
145
|
+
for (; tt.length; )
|
|
146
|
+
tt.pop()();
|
|
147
|
+
Ie = !1, we.clear(), ne(e);
|
|
138
148
|
}
|
|
139
|
-
function
|
|
149
|
+
function vr(e) {
|
|
140
150
|
if (e.fragment !== null) {
|
|
141
|
-
e.update(),
|
|
151
|
+
e.update(), J(e.before_update);
|
|
142
152
|
const t = e.dirty;
|
|
143
|
-
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(
|
|
153
|
+
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(Ne);
|
|
144
154
|
}
|
|
145
155
|
}
|
|
146
|
-
function
|
|
156
|
+
function gr(e) {
|
|
147
157
|
const t = [], r = [];
|
|
148
|
-
|
|
158
|
+
W.forEach((n) => e.indexOf(n) === -1 ? t.push(n) : r.push(n)), r.forEach((n) => n()), W = t;
|
|
149
159
|
}
|
|
150
|
-
const
|
|
151
|
-
function
|
|
152
|
-
e && e.i && (
|
|
160
|
+
const yr = /* @__PURE__ */ new Set();
|
|
161
|
+
function xr(e, t) {
|
|
162
|
+
e && e.i && (yr.delete(e), e.i(t));
|
|
153
163
|
}
|
|
154
|
-
function
|
|
164
|
+
function Er(e, t, r) {
|
|
155
165
|
const { fragment: n, after_update: i } = e.$$;
|
|
156
|
-
n && n.m(t, r),
|
|
157
|
-
const o = e.$$.on_mount.map(
|
|
158
|
-
e.$$.on_destroy ? e.$$.on_destroy.push(...o) :
|
|
159
|
-
}), i.forEach(
|
|
166
|
+
n && n.m(t, r), Ne(() => {
|
|
167
|
+
const o = e.$$.on_mount.map(At).filter(Ze);
|
|
168
|
+
e.$$.on_destroy ? e.$$.on_destroy.push(...o) : J(o), e.$$.on_mount = [];
|
|
169
|
+
}), i.forEach(Ne);
|
|
160
170
|
}
|
|
161
|
-
function
|
|
171
|
+
function _r(e, t) {
|
|
162
172
|
const r = e.$$;
|
|
163
|
-
r.fragment !== null && (
|
|
173
|
+
r.fragment !== null && (gr(r.after_update), J(r.on_destroy), r.fragment && r.fragment.d(t), r.on_destroy = r.fragment = null, r.ctx = []);
|
|
164
174
|
}
|
|
165
|
-
function
|
|
166
|
-
e.$$.dirty[0] === -1 && (
|
|
175
|
+
function Cr(e, t) {
|
|
176
|
+
e.$$.dirty[0] === -1 && (V.push(e), br(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
|
|
167
177
|
}
|
|
168
|
-
function
|
|
169
|
-
const
|
|
170
|
-
|
|
171
|
-
const
|
|
178
|
+
function wr(e, t, r, n, i, o, s = null, a = [-1]) {
|
|
179
|
+
const u = ie;
|
|
180
|
+
ne(e);
|
|
181
|
+
const l = e.$$ = {
|
|
172
182
|
fragment: null,
|
|
173
183
|
ctx: [],
|
|
174
184
|
// state
|
|
175
185
|
props: o,
|
|
176
|
-
update:
|
|
186
|
+
update: O,
|
|
177
187
|
not_equal: i,
|
|
178
|
-
bound:
|
|
188
|
+
bound: et(),
|
|
179
189
|
// lifecycle
|
|
180
190
|
on_mount: [],
|
|
181
191
|
on_destroy: [],
|
|
182
192
|
on_disconnect: [],
|
|
183
193
|
before_update: [],
|
|
184
194
|
after_update: [],
|
|
185
|
-
context: new Map(t.context || (
|
|
195
|
+
context: new Map(t.context || (u ? u.$$.context : [])),
|
|
186
196
|
// everything else
|
|
187
|
-
callbacks:
|
|
197
|
+
callbacks: et(),
|
|
188
198
|
dirty: a,
|
|
189
199
|
skip_bound: !1,
|
|
190
|
-
root: t.target ||
|
|
200
|
+
root: t.target || u.$$.root
|
|
191
201
|
};
|
|
192
|
-
s && s(
|
|
202
|
+
s && s(l.root);
|
|
193
203
|
let c = !1;
|
|
194
|
-
if (
|
|
195
|
-
const m = p.length ? p[0] :
|
|
196
|
-
return
|
|
197
|
-
}) : [],
|
|
204
|
+
if (l.ctx = r ? r(e, t.props || {}, (f, h, ...p) => {
|
|
205
|
+
const m = p.length ? p[0] : h;
|
|
206
|
+
return l.ctx && i(l.ctx[f], l.ctx[f] = m) && (!l.skip_bound && l.bound[f] && l.bound[f](m), c && Cr(e, f)), h;
|
|
207
|
+
}) : [], l.update(), c = !0, J(l.before_update), l.fragment = n ? n(l.ctx) : !1, t.target) {
|
|
198
208
|
if (t.hydrate) {
|
|
199
|
-
const
|
|
200
|
-
|
|
209
|
+
const f = hr(t.target);
|
|
210
|
+
l.fragment && l.fragment.l(f), f.forEach(ae);
|
|
201
211
|
} else
|
|
202
|
-
|
|
203
|
-
t.intro &&
|
|
212
|
+
l.fragment && l.fragment.c();
|
|
213
|
+
t.intro && xr(e.$$.fragment), Er(e, t.target, t.anchor), R();
|
|
204
214
|
}
|
|
205
|
-
|
|
215
|
+
ne(u);
|
|
206
216
|
}
|
|
207
|
-
let
|
|
208
|
-
typeof HTMLElement == "function" && (
|
|
217
|
+
let Bt;
|
|
218
|
+
typeof HTMLElement == "function" && (Bt = class extends HTMLElement {
|
|
209
219
|
/** The Svelte component constructor */
|
|
210
220
|
$$ctor;
|
|
211
221
|
/** Slots */
|
|
@@ -247,29 +257,29 @@ typeof HTMLElement == "function" && (Ht = class extends HTMLElement {
|
|
|
247
257
|
let o;
|
|
248
258
|
return {
|
|
249
259
|
c: function() {
|
|
250
|
-
o = B("slot"), i !== "default" &&
|
|
260
|
+
o = B("slot"), i !== "default" && E(o, "name", i);
|
|
251
261
|
},
|
|
252
262
|
/**
|
|
253
263
|
* @param {HTMLElement} target
|
|
254
264
|
* @param {HTMLElement} [anchor]
|
|
255
265
|
*/
|
|
256
|
-
m: function(
|
|
257
|
-
|
|
266
|
+
m: function(u, l) {
|
|
267
|
+
ge(u, o, l);
|
|
258
268
|
},
|
|
259
|
-
d: function(
|
|
260
|
-
|
|
269
|
+
d: function(u) {
|
|
270
|
+
u && ae(o);
|
|
261
271
|
}
|
|
262
272
|
};
|
|
263
273
|
};
|
|
264
274
|
};
|
|
265
275
|
if (await Promise.resolve(), !this.$$cn || this.$$c)
|
|
266
276
|
return;
|
|
267
|
-
const t = {}, r =
|
|
277
|
+
const t = {}, r = fr(this);
|
|
268
278
|
for (const i of this.$$s)
|
|
269
279
|
i in r && (t[i] = [e(i)]);
|
|
270
280
|
for (const i of this.attributes) {
|
|
271
281
|
const o = this.$$g_p(i.name);
|
|
272
|
-
o in this.$$d || (this.$$d[o] =
|
|
282
|
+
o in this.$$d || (this.$$d[o] = he(o, i.value, this.$$p_d, "toProp"));
|
|
273
283
|
}
|
|
274
284
|
for (const i in this.$$p_d)
|
|
275
285
|
!(i in this.$$d) && this[i] !== void 0 && (this.$$d[i] = this[i], delete this[i]);
|
|
@@ -287,7 +297,7 @@ typeof HTMLElement == "function" && (Ht = class extends HTMLElement {
|
|
|
287
297
|
this.$$r = !0;
|
|
288
298
|
for (const i in this.$$p_d)
|
|
289
299
|
if (this.$$d[i] = this.$$c.$$.ctx[this.$$c.$$.props[i]], this.$$p_d[i].reflect) {
|
|
290
|
-
const o =
|
|
300
|
+
const o = he(
|
|
291
301
|
i,
|
|
292
302
|
this.$$d[i],
|
|
293
303
|
this.$$p_d,
|
|
@@ -309,7 +319,7 @@ typeof HTMLElement == "function" && (Ht = class extends HTMLElement {
|
|
|
309
319
|
// We don't need this when working within Svelte code, but for compatibility of people using this outside of Svelte
|
|
310
320
|
// and setting attributes through setAttribute etc, this is helpful
|
|
311
321
|
attributeChangedCallback(e, t, r) {
|
|
312
|
-
this.$$r || (e = this.$$g_p(e), this.$$d[e] =
|
|
322
|
+
this.$$r || (e = this.$$g_p(e), this.$$d[e] = he(e, r, this.$$p_d, "toProp"), this.$$c?.$set({ [e]: this.$$d[e] }));
|
|
313
323
|
}
|
|
314
324
|
disconnectedCallback() {
|
|
315
325
|
this.$$cn = !1, Promise.resolve().then(() => {
|
|
@@ -322,7 +332,7 @@ typeof HTMLElement == "function" && (Ht = class extends HTMLElement {
|
|
|
322
332
|
) || e;
|
|
323
333
|
}
|
|
324
334
|
});
|
|
325
|
-
function
|
|
335
|
+
function he(e, t, r, n) {
|
|
326
336
|
const i = r[e]?.type;
|
|
327
337
|
if (t = i === "Boolean" && typeof t != "boolean" ? t != null : t, !n || !r[e])
|
|
328
338
|
return t;
|
|
@@ -352,7 +362,7 @@ function fe(e, t, r, n) {
|
|
|
352
362
|
}
|
|
353
363
|
}
|
|
354
364
|
function Ar(e, t, r, n, i, o) {
|
|
355
|
-
let s = class extends
|
|
365
|
+
let s = class extends Bt {
|
|
356
366
|
constructor() {
|
|
357
367
|
super(e, r, i), this.$$p_d = t;
|
|
358
368
|
}
|
|
@@ -367,8 +377,8 @@ function Ar(e, t, r, n, i, o) {
|
|
|
367
377
|
get() {
|
|
368
378
|
return this.$$c && a in this.$$c ? this.$$c[a] : this.$$d[a];
|
|
369
379
|
},
|
|
370
|
-
set(
|
|
371
|
-
|
|
380
|
+
set(u) {
|
|
381
|
+
u = he(a, u, t), this.$$d[a] = u, this.$$c?.$set({ [a]: u });
|
|
372
382
|
}
|
|
373
383
|
});
|
|
374
384
|
}), n.forEach((a) => {
|
|
@@ -380,7 +390,7 @@ function Ar(e, t, r, n, i, o) {
|
|
|
380
390
|
}), e.element = /** @type {any} */
|
|
381
391
|
s, s;
|
|
382
392
|
}
|
|
383
|
-
class
|
|
393
|
+
class Sr {
|
|
384
394
|
/**
|
|
385
395
|
* ### PRIVATE API
|
|
386
396
|
*
|
|
@@ -399,7 +409,7 @@ class wr {
|
|
|
399
409
|
$$set = void 0;
|
|
400
410
|
/** @returns {void} */
|
|
401
411
|
$destroy() {
|
|
402
|
-
|
|
412
|
+
_r(this, 1), this.$destroy = O;
|
|
403
413
|
}
|
|
404
414
|
/**
|
|
405
415
|
* @template {Extract<keyof Events, string>} K
|
|
@@ -408,8 +418,8 @@ class wr {
|
|
|
408
418
|
* @returns {() => void}
|
|
409
419
|
*/
|
|
410
420
|
$on(t, r) {
|
|
411
|
-
if (!
|
|
412
|
-
return
|
|
421
|
+
if (!Ze(r))
|
|
422
|
+
return O;
|
|
413
423
|
const n = this.$$.callbacks[t] || (this.$$.callbacks[t] = []);
|
|
414
424
|
return n.push(r), () => {
|
|
415
425
|
const i = n.indexOf(r);
|
|
@@ -421,86 +431,109 @@ class wr {
|
|
|
421
431
|
* @returns {void}
|
|
422
432
|
*/
|
|
423
433
|
$set(t) {
|
|
424
|
-
this.$$set && !
|
|
434
|
+
this.$$set && !sr(t) && (this.$$.skip_bound = !0, this.$$set(t), this.$$.skip_bound = !1);
|
|
425
435
|
}
|
|
426
436
|
}
|
|
427
|
-
const
|
|
428
|
-
typeof window < "u" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(
|
|
429
|
-
|
|
430
|
-
|
|
437
|
+
const Tr = "4";
|
|
438
|
+
typeof window < "u" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(Tr);
|
|
439
|
+
/*! *****************************************************************************
|
|
440
|
+
Copyright (c) Microsoft Corporation.
|
|
441
|
+
|
|
442
|
+
Permission to use, copy, modify, and/or distribute this software for any
|
|
443
|
+
purpose with or without fee is hereby granted.
|
|
444
|
+
|
|
445
|
+
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
446
|
+
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
447
|
+
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
448
|
+
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
449
|
+
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
450
|
+
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
451
|
+
PERFORMANCE OF THIS SOFTWARE.
|
|
452
|
+
***************************************************************************** */
|
|
453
|
+
var Le = function(e, t) {
|
|
454
|
+
return Le = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
|
|
431
455
|
r.__proto__ = n;
|
|
432
456
|
} || function(r, n) {
|
|
433
|
-
for (var i in n)
|
|
434
|
-
|
|
457
|
+
for (var i in n)
|
|
458
|
+
Object.prototype.hasOwnProperty.call(n, i) && (r[i] = n[i]);
|
|
459
|
+
}, Le(e, t);
|
|
435
460
|
};
|
|
436
|
-
function
|
|
461
|
+
function L(e, t) {
|
|
437
462
|
if (typeof t != "function" && t !== null)
|
|
438
463
|
throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
|
|
439
|
-
|
|
464
|
+
Le(e, t);
|
|
440
465
|
function r() {
|
|
441
466
|
this.constructor = e;
|
|
442
467
|
}
|
|
443
468
|
e.prototype = t === null ? Object.create(t) : (r.prototype = t.prototype, new r());
|
|
444
469
|
}
|
|
445
|
-
var
|
|
446
|
-
return
|
|
470
|
+
var x = function() {
|
|
471
|
+
return x = Object.assign || function(t) {
|
|
447
472
|
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
448
473
|
r = arguments[n];
|
|
449
|
-
for (var o in r)
|
|
474
|
+
for (var o in r)
|
|
475
|
+
Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
|
|
450
476
|
}
|
|
451
477
|
return t;
|
|
452
|
-
},
|
|
478
|
+
}, x.apply(this, arguments);
|
|
453
479
|
};
|
|
454
|
-
function
|
|
480
|
+
function Br(e, t) {
|
|
455
481
|
var r = {};
|
|
456
|
-
for (var n in e)
|
|
482
|
+
for (var n in e)
|
|
483
|
+
Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
457
484
|
if (e != null && typeof Object.getOwnPropertySymbols == "function")
|
|
458
485
|
for (var i = 0, n = Object.getOwnPropertySymbols(e); i < n.length; i++)
|
|
459
486
|
t.indexOf(n[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[i]) && (r[n[i]] = e[n[i]]);
|
|
460
487
|
return r;
|
|
461
488
|
}
|
|
462
|
-
function
|
|
489
|
+
function $e(e) {
|
|
463
490
|
var t = typeof Symbol == "function" && Symbol.iterator, r = t && e[t], n = 0;
|
|
464
|
-
if (r)
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
491
|
+
if (r)
|
|
492
|
+
return r.call(e);
|
|
493
|
+
if (e && typeof e.length == "number")
|
|
494
|
+
return {
|
|
495
|
+
next: function() {
|
|
496
|
+
return e && n >= e.length && (e = void 0), { value: e && e[n++], done: !e };
|
|
497
|
+
}
|
|
498
|
+
};
|
|
470
499
|
throw new TypeError(t ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
|
471
500
|
}
|
|
472
|
-
function
|
|
501
|
+
function Re(e, t) {
|
|
473
502
|
var r = typeof Symbol == "function" && e[Symbol.iterator];
|
|
474
|
-
if (!r)
|
|
503
|
+
if (!r)
|
|
504
|
+
return e;
|
|
475
505
|
var n = r.call(e), i, o = [], s;
|
|
476
506
|
try {
|
|
477
|
-
for (; (t === void 0 || t-- > 0) && !(i = n.next()).done; )
|
|
507
|
+
for (; (t === void 0 || t-- > 0) && !(i = n.next()).done; )
|
|
508
|
+
o.push(i.value);
|
|
478
509
|
} catch (a) {
|
|
479
510
|
s = { error: a };
|
|
480
511
|
} finally {
|
|
481
512
|
try {
|
|
482
513
|
i && !i.done && (r = n.return) && r.call(n);
|
|
483
514
|
} finally {
|
|
484
|
-
if (s)
|
|
515
|
+
if (s)
|
|
516
|
+
throw s.error;
|
|
485
517
|
}
|
|
486
518
|
}
|
|
487
519
|
return o;
|
|
488
520
|
}
|
|
489
|
-
function
|
|
490
|
-
if (r || arguments.length === 2)
|
|
491
|
-
(
|
|
492
|
-
|
|
521
|
+
function X(e, t, r) {
|
|
522
|
+
if (r || arguments.length === 2)
|
|
523
|
+
for (var n = 0, i = t.length, o; n < i; n++)
|
|
524
|
+
(o || !(n in t)) && (o || (o = Array.prototype.slice.call(t, 0, n)), o[n] = t[n]);
|
|
525
|
+
return e.concat(o || t);
|
|
493
526
|
}
|
|
494
|
-
function
|
|
527
|
+
function N(e) {
|
|
495
528
|
return typeof e == "function";
|
|
496
529
|
}
|
|
497
|
-
function
|
|
530
|
+
function Ht(e) {
|
|
498
531
|
var t = function(n) {
|
|
499
532
|
Error.call(n), n.stack = new Error().stack;
|
|
500
533
|
}, r = e(t);
|
|
501
534
|
return r.prototype = Object.create(Error.prototype), r.prototype.constructor = r, r;
|
|
502
535
|
}
|
|
503
|
-
var
|
|
536
|
+
var Ae = Ht(function(e) {
|
|
504
537
|
return function(r) {
|
|
505
538
|
e(this), this.message = r ? r.length + ` errors occurred during unsubscription:
|
|
506
539
|
` + r.map(function(n, i) {
|
|
@@ -509,13 +542,13 @@ var Se = Mt(function(e) {
|
|
|
509
542
|
`) : "", this.name = "UnsubscriptionError", this.errors = r;
|
|
510
543
|
};
|
|
511
544
|
});
|
|
512
|
-
function
|
|
545
|
+
function De(e, t) {
|
|
513
546
|
if (e) {
|
|
514
547
|
var r = e.indexOf(t);
|
|
515
548
|
0 <= r && e.splice(r, 1);
|
|
516
549
|
}
|
|
517
550
|
}
|
|
518
|
-
var
|
|
551
|
+
var ye = function() {
|
|
519
552
|
function e(t) {
|
|
520
553
|
this.initialTeardown = t, this.closed = !1, this._parentage = null, this._finalizers = null;
|
|
521
554
|
}
|
|
@@ -527,58 +560,60 @@ var xe = function() {
|
|
|
527
560
|
if (s)
|
|
528
561
|
if (this._parentage = null, Array.isArray(s))
|
|
529
562
|
try {
|
|
530
|
-
for (var a =
|
|
531
|
-
var
|
|
532
|
-
|
|
563
|
+
for (var a = $e(s), u = a.next(); !u.done; u = a.next()) {
|
|
564
|
+
var l = u.value;
|
|
565
|
+
l.remove(this);
|
|
533
566
|
}
|
|
534
567
|
} catch (d) {
|
|
535
568
|
t = { error: d };
|
|
536
569
|
} finally {
|
|
537
570
|
try {
|
|
538
|
-
|
|
571
|
+
u && !u.done && (r = a.return) && r.call(a);
|
|
539
572
|
} finally {
|
|
540
|
-
if (t)
|
|
573
|
+
if (t)
|
|
574
|
+
throw t.error;
|
|
541
575
|
}
|
|
542
576
|
}
|
|
543
577
|
else
|
|
544
578
|
s.remove(this);
|
|
545
579
|
var c = this.initialTeardown;
|
|
546
|
-
if (
|
|
580
|
+
if (N(c))
|
|
547
581
|
try {
|
|
548
582
|
c();
|
|
549
583
|
} catch (d) {
|
|
550
|
-
o = d instanceof
|
|
584
|
+
o = d instanceof Ae ? d.errors : [d];
|
|
551
585
|
}
|
|
552
|
-
var
|
|
553
|
-
if (
|
|
586
|
+
var f = this._finalizers;
|
|
587
|
+
if (f) {
|
|
554
588
|
this._finalizers = null;
|
|
555
589
|
try {
|
|
556
|
-
for (var
|
|
590
|
+
for (var h = $e(f), p = h.next(); !p.done; p = h.next()) {
|
|
557
591
|
var m = p.value;
|
|
558
592
|
try {
|
|
559
|
-
|
|
593
|
+
rt(m);
|
|
560
594
|
} catch (d) {
|
|
561
|
-
o = o ?? [], d instanceof
|
|
595
|
+
o = o ?? [], d instanceof Ae ? o = X(X([], Re(o)), Re(d.errors)) : o.push(d);
|
|
562
596
|
}
|
|
563
597
|
}
|
|
564
598
|
} catch (d) {
|
|
565
599
|
n = { error: d };
|
|
566
600
|
} finally {
|
|
567
601
|
try {
|
|
568
|
-
p && !p.done && (i =
|
|
602
|
+
p && !p.done && (i = h.return) && i.call(h);
|
|
569
603
|
} finally {
|
|
570
|
-
if (n)
|
|
604
|
+
if (n)
|
|
605
|
+
throw n.error;
|
|
571
606
|
}
|
|
572
607
|
}
|
|
573
608
|
}
|
|
574
609
|
if (o)
|
|
575
|
-
throw new
|
|
610
|
+
throw new Ae(o);
|
|
576
611
|
}
|
|
577
612
|
}, e.prototype.add = function(t) {
|
|
578
613
|
var r;
|
|
579
614
|
if (t && t !== this)
|
|
580
615
|
if (this.closed)
|
|
581
|
-
|
|
616
|
+
rt(t);
|
|
582
617
|
else {
|
|
583
618
|
if (t instanceof e) {
|
|
584
619
|
if (t.closed || t._hasParent(this))
|
|
@@ -595,56 +630,56 @@ var xe = function() {
|
|
|
595
630
|
this._parentage = Array.isArray(r) ? (r.push(t), r) : r ? [r, t] : t;
|
|
596
631
|
}, e.prototype._removeParent = function(t) {
|
|
597
632
|
var r = this._parentage;
|
|
598
|
-
r === t ? this._parentage = null : Array.isArray(r) &&
|
|
633
|
+
r === t ? this._parentage = null : Array.isArray(r) && De(r, t);
|
|
599
634
|
}, e.prototype.remove = function(t) {
|
|
600
635
|
var r = this._finalizers;
|
|
601
|
-
r &&
|
|
636
|
+
r && De(r, t), t instanceof e && t._removeParent(this);
|
|
602
637
|
}, e.EMPTY = function() {
|
|
603
638
|
var t = new e();
|
|
604
639
|
return t.closed = !0, t;
|
|
605
640
|
}(), e;
|
|
606
|
-
}(),
|
|
607
|
-
function
|
|
608
|
-
return e instanceof
|
|
641
|
+
}(), Mt = ye.EMPTY;
|
|
642
|
+
function Pt(e) {
|
|
643
|
+
return e instanceof ye || e && "closed" in e && N(e.remove) && N(e.add) && N(e.unsubscribe);
|
|
609
644
|
}
|
|
610
|
-
function
|
|
611
|
-
|
|
645
|
+
function rt(e) {
|
|
646
|
+
N(e) ? e() : e.unsubscribe();
|
|
612
647
|
}
|
|
613
|
-
var
|
|
648
|
+
var Ot = {
|
|
614
649
|
onUnhandledError: null,
|
|
615
650
|
onStoppedNotification: null,
|
|
616
651
|
Promise: void 0,
|
|
617
652
|
useDeprecatedSynchronousErrorHandling: !1,
|
|
618
653
|
useDeprecatedNextContext: !1
|
|
619
|
-
},
|
|
654
|
+
}, Hr = {
|
|
620
655
|
setTimeout: function(e, t) {
|
|
621
656
|
for (var r = [], n = 2; n < arguments.length; n++)
|
|
622
657
|
r[n - 2] = arguments[n];
|
|
623
|
-
return setTimeout.apply(void 0,
|
|
658
|
+
return setTimeout.apply(void 0, X([e, t], Re(r)));
|
|
624
659
|
},
|
|
625
660
|
clearTimeout: function(e) {
|
|
626
661
|
return clearTimeout(e);
|
|
627
662
|
},
|
|
628
663
|
delegate: void 0
|
|
629
664
|
};
|
|
630
|
-
function
|
|
631
|
-
|
|
665
|
+
function Mr(e) {
|
|
666
|
+
Hr.setTimeout(function() {
|
|
632
667
|
throw e;
|
|
633
668
|
});
|
|
634
669
|
}
|
|
635
|
-
function
|
|
670
|
+
function nt() {
|
|
636
671
|
}
|
|
637
|
-
function
|
|
672
|
+
function fe(e) {
|
|
638
673
|
e();
|
|
639
674
|
}
|
|
640
|
-
var
|
|
641
|
-
|
|
675
|
+
var It = function(e) {
|
|
676
|
+
L(t, e);
|
|
642
677
|
function t(r) {
|
|
643
678
|
var n = e.call(this) || this;
|
|
644
|
-
return n.isStopped = !1, r ? (n.destination = r,
|
|
679
|
+
return n.isStopped = !1, r ? (n.destination = r, Pt(r) && r.add(n)) : n.destination = Nr, n;
|
|
645
680
|
}
|
|
646
681
|
return t.create = function(r, n, i) {
|
|
647
|
-
return new
|
|
682
|
+
return new Ue(r, n, i);
|
|
648
683
|
}, t.prototype.next = function(r) {
|
|
649
684
|
this.isStopped || this._next(r);
|
|
650
685
|
}, t.prototype.error = function(r) {
|
|
@@ -668,11 +703,11 @@ var Nt = function(e) {
|
|
|
668
703
|
this.unsubscribe();
|
|
669
704
|
}
|
|
670
705
|
}, t;
|
|
671
|
-
}(
|
|
672
|
-
function
|
|
673
|
-
return
|
|
706
|
+
}(ye), Pr = Function.prototype.bind;
|
|
707
|
+
function Se(e, t) {
|
|
708
|
+
return Pr.call(e, t);
|
|
674
709
|
}
|
|
675
|
-
var
|
|
710
|
+
var Or = function() {
|
|
676
711
|
function e(t) {
|
|
677
712
|
this.partialObserver = t;
|
|
678
713
|
}
|
|
@@ -682,7 +717,7 @@ var Pr = function() {
|
|
|
682
717
|
try {
|
|
683
718
|
r.next(t);
|
|
684
719
|
} catch (n) {
|
|
685
|
-
|
|
720
|
+
le(n);
|
|
686
721
|
}
|
|
687
722
|
}, e.prototype.error = function(t) {
|
|
688
723
|
var r = this.partialObserver;
|
|
@@ -690,24 +725,24 @@ var Pr = function() {
|
|
|
690
725
|
try {
|
|
691
726
|
r.error(t);
|
|
692
727
|
} catch (n) {
|
|
693
|
-
|
|
728
|
+
le(n);
|
|
694
729
|
}
|
|
695
730
|
else
|
|
696
|
-
|
|
731
|
+
le(t);
|
|
697
732
|
}, e.prototype.complete = function() {
|
|
698
733
|
var t = this.partialObserver;
|
|
699
734
|
if (t.complete)
|
|
700
735
|
try {
|
|
701
736
|
t.complete();
|
|
702
737
|
} catch (r) {
|
|
703
|
-
|
|
738
|
+
le(r);
|
|
704
739
|
}
|
|
705
740
|
}, e;
|
|
706
|
-
}(),
|
|
707
|
-
|
|
741
|
+
}(), Ue = function(e) {
|
|
742
|
+
L(t, e);
|
|
708
743
|
function t(r, n, i) {
|
|
709
744
|
var o = e.call(this) || this, s;
|
|
710
|
-
if (
|
|
745
|
+
if (N(r) || !r)
|
|
711
746
|
s = {
|
|
712
747
|
next: r ?? void 0,
|
|
713
748
|
error: n ?? void 0,
|
|
@@ -715,43 +750,43 @@ var Pr = function() {
|
|
|
715
750
|
};
|
|
716
751
|
else {
|
|
717
752
|
var a;
|
|
718
|
-
o &&
|
|
753
|
+
o && Ot.useDeprecatedNextContext ? (a = Object.create(r), a.unsubscribe = function() {
|
|
719
754
|
return o.unsubscribe();
|
|
720
755
|
}, s = {
|
|
721
|
-
next: r.next &&
|
|
722
|
-
error: r.error &&
|
|
723
|
-
complete: r.complete &&
|
|
756
|
+
next: r.next && Se(r.next, a),
|
|
757
|
+
error: r.error && Se(r.error, a),
|
|
758
|
+
complete: r.complete && Se(r.complete, a)
|
|
724
759
|
}) : s = r;
|
|
725
760
|
}
|
|
726
|
-
return o.destination = new
|
|
761
|
+
return o.destination = new Or(s), o;
|
|
727
762
|
}
|
|
728
763
|
return t;
|
|
729
|
-
}(
|
|
730
|
-
function
|
|
731
|
-
|
|
764
|
+
}(It);
|
|
765
|
+
function le(e) {
|
|
766
|
+
Mr(e);
|
|
732
767
|
}
|
|
733
|
-
function
|
|
768
|
+
function Ir(e) {
|
|
734
769
|
throw e;
|
|
735
770
|
}
|
|
736
|
-
var
|
|
771
|
+
var Nr = {
|
|
737
772
|
closed: !0,
|
|
738
|
-
next:
|
|
739
|
-
error:
|
|
740
|
-
complete:
|
|
741
|
-
},
|
|
773
|
+
next: nt,
|
|
774
|
+
error: Ir,
|
|
775
|
+
complete: nt
|
|
776
|
+
}, Lr = function() {
|
|
742
777
|
return typeof Symbol == "function" && Symbol.observable || "@@observable";
|
|
743
778
|
}();
|
|
744
|
-
function
|
|
779
|
+
function $r(e) {
|
|
745
780
|
return e;
|
|
746
781
|
}
|
|
747
|
-
function
|
|
748
|
-
return e.length === 0 ?
|
|
782
|
+
function Rr(e) {
|
|
783
|
+
return e.length === 0 ? $r : e.length === 1 ? e[0] : function(r) {
|
|
749
784
|
return e.reduce(function(n, i) {
|
|
750
785
|
return i(n);
|
|
751
786
|
}, r);
|
|
752
787
|
};
|
|
753
788
|
}
|
|
754
|
-
var
|
|
789
|
+
var it = function() {
|
|
755
790
|
function e(t) {
|
|
756
791
|
t && (this._subscribe = t);
|
|
757
792
|
}
|
|
@@ -759,10 +794,10 @@ var ot = function() {
|
|
|
759
794
|
var r = new e();
|
|
760
795
|
return r.source = this, r.operator = t, r;
|
|
761
796
|
}, e.prototype.subscribe = function(t, r, n) {
|
|
762
|
-
var i = this, o =
|
|
763
|
-
return
|
|
764
|
-
var s = i, a = s.operator,
|
|
765
|
-
o.add(a ? a.call(o,
|
|
797
|
+
var i = this, o = Ur(t) ? t : new Ue(t, r, n);
|
|
798
|
+
return fe(function() {
|
|
799
|
+
var s = i, a = s.operator, u = s.source;
|
|
800
|
+
o.add(a ? a.call(o, u) : u ? i._subscribe(o) : i._trySubscribe(o));
|
|
766
801
|
}), o;
|
|
767
802
|
}, e.prototype._trySubscribe = function(t) {
|
|
768
803
|
try {
|
|
@@ -772,13 +807,13 @@ var ot = function() {
|
|
|
772
807
|
}
|
|
773
808
|
}, e.prototype.forEach = function(t, r) {
|
|
774
809
|
var n = this;
|
|
775
|
-
return r =
|
|
776
|
-
var s = new
|
|
810
|
+
return r = ot(r), new r(function(i, o) {
|
|
811
|
+
var s = new Ue({
|
|
777
812
|
next: function(a) {
|
|
778
813
|
try {
|
|
779
814
|
t(a);
|
|
780
|
-
} catch (
|
|
781
|
-
o(
|
|
815
|
+
} catch (u) {
|
|
816
|
+
o(u), s.unsubscribe();
|
|
782
817
|
}
|
|
783
818
|
},
|
|
784
819
|
error: o,
|
|
@@ -789,15 +824,15 @@ var ot = function() {
|
|
|
789
824
|
}, e.prototype._subscribe = function(t) {
|
|
790
825
|
var r;
|
|
791
826
|
return (r = this.source) === null || r === void 0 ? void 0 : r.subscribe(t);
|
|
792
|
-
}, e.prototype[
|
|
827
|
+
}, e.prototype[Lr] = function() {
|
|
793
828
|
return this;
|
|
794
829
|
}, e.prototype.pipe = function() {
|
|
795
830
|
for (var t = [], r = 0; r < arguments.length; r++)
|
|
796
831
|
t[r] = arguments[r];
|
|
797
|
-
return
|
|
832
|
+
return Rr(t)(this);
|
|
798
833
|
}, e.prototype.toPromise = function(t) {
|
|
799
834
|
var r = this;
|
|
800
|
-
return t =
|
|
835
|
+
return t = ot(t), new t(function(n, i) {
|
|
801
836
|
var o;
|
|
802
837
|
r.subscribe(function(s) {
|
|
803
838
|
return o = s;
|
|
@@ -811,57 +846,58 @@ var ot = function() {
|
|
|
811
846
|
return new e(t);
|
|
812
847
|
}, e;
|
|
813
848
|
}();
|
|
814
|
-
function
|
|
849
|
+
function ot(e) {
|
|
815
850
|
var t;
|
|
816
|
-
return (t = e ??
|
|
817
|
-
}
|
|
818
|
-
function Rr(e) {
|
|
819
|
-
return e && $(e.next) && $(e.error) && $(e.complete);
|
|
851
|
+
return (t = e ?? Ot.Promise) !== null && t !== void 0 ? t : Promise;
|
|
820
852
|
}
|
|
821
853
|
function Dr(e) {
|
|
822
|
-
return e && e
|
|
854
|
+
return e && N(e.next) && N(e.error) && N(e.complete);
|
|
823
855
|
}
|
|
824
|
-
|
|
856
|
+
function Ur(e) {
|
|
857
|
+
return e && e instanceof It || Dr(e) && Pt(e);
|
|
858
|
+
}
|
|
859
|
+
var Fr = Ht(function(e) {
|
|
825
860
|
return function() {
|
|
826
861
|
e(this), this.name = "ObjectUnsubscribedError", this.message = "object unsubscribed";
|
|
827
862
|
};
|
|
828
|
-
}),
|
|
829
|
-
|
|
863
|
+
}), Nt = function(e) {
|
|
864
|
+
L(t, e);
|
|
830
865
|
function t() {
|
|
831
866
|
var r = e.call(this) || this;
|
|
832
867
|
return r.closed = !1, r.currentObservers = null, r.observers = [], r.isStopped = !1, r.hasError = !1, r.thrownError = null, r;
|
|
833
868
|
}
|
|
834
869
|
return t.prototype.lift = function(r) {
|
|
835
|
-
var n = new
|
|
870
|
+
var n = new st(this, this);
|
|
836
871
|
return n.operator = r, n;
|
|
837
872
|
}, t.prototype._throwIfClosed = function() {
|
|
838
873
|
if (this.closed)
|
|
839
|
-
throw new
|
|
874
|
+
throw new Fr();
|
|
840
875
|
}, t.prototype.next = function(r) {
|
|
841
876
|
var n = this;
|
|
842
|
-
|
|
877
|
+
fe(function() {
|
|
843
878
|
var i, o;
|
|
844
879
|
if (n._throwIfClosed(), !n.isStopped) {
|
|
845
880
|
n.currentObservers || (n.currentObservers = Array.from(n.observers));
|
|
846
881
|
try {
|
|
847
|
-
for (var s =
|
|
848
|
-
var
|
|
849
|
-
|
|
882
|
+
for (var s = $e(n.currentObservers), a = s.next(); !a.done; a = s.next()) {
|
|
883
|
+
var u = a.value;
|
|
884
|
+
u.next(r);
|
|
850
885
|
}
|
|
851
|
-
} catch (
|
|
852
|
-
i = { error:
|
|
886
|
+
} catch (l) {
|
|
887
|
+
i = { error: l };
|
|
853
888
|
} finally {
|
|
854
889
|
try {
|
|
855
890
|
a && !a.done && (o = s.return) && o.call(s);
|
|
856
891
|
} finally {
|
|
857
|
-
if (i)
|
|
892
|
+
if (i)
|
|
893
|
+
throw i.error;
|
|
858
894
|
}
|
|
859
895
|
}
|
|
860
896
|
}
|
|
861
897
|
});
|
|
862
898
|
}, t.prototype.error = function(r) {
|
|
863
899
|
var n = this;
|
|
864
|
-
|
|
900
|
+
fe(function() {
|
|
865
901
|
if (n._throwIfClosed(), !n.isStopped) {
|
|
866
902
|
n.hasError = n.isStopped = !0, n.thrownError = r;
|
|
867
903
|
for (var i = n.observers; i.length; )
|
|
@@ -870,7 +906,7 @@ var Ur = Mt(function(e) {
|
|
|
870
906
|
});
|
|
871
907
|
}, t.prototype.complete = function() {
|
|
872
908
|
var r = this;
|
|
873
|
-
|
|
909
|
+
fe(function() {
|
|
874
910
|
if (r._throwIfClosed(), !r.isStopped) {
|
|
875
911
|
r.isStopped = !0;
|
|
876
912
|
for (var n = r.observers; n.length; )
|
|
@@ -892,20 +928,20 @@ var Ur = Mt(function(e) {
|
|
|
892
928
|
return this._throwIfClosed(), this._checkFinalizedStatuses(r), this._innerSubscribe(r);
|
|
893
929
|
}, t.prototype._innerSubscribe = function(r) {
|
|
894
930
|
var n = this, i = this, o = i.hasError, s = i.isStopped, a = i.observers;
|
|
895
|
-
return o || s ?
|
|
896
|
-
n.currentObservers = null,
|
|
931
|
+
return o || s ? Mt : (this.currentObservers = null, a.push(r), new ye(function() {
|
|
932
|
+
n.currentObservers = null, De(a, r);
|
|
897
933
|
}));
|
|
898
934
|
}, t.prototype._checkFinalizedStatuses = function(r) {
|
|
899
935
|
var n = this, i = n.hasError, o = n.thrownError, s = n.isStopped;
|
|
900
936
|
i ? r.error(o) : s && r.complete();
|
|
901
937
|
}, t.prototype.asObservable = function() {
|
|
902
|
-
var r = new
|
|
938
|
+
var r = new it();
|
|
903
939
|
return r.source = this, r;
|
|
904
940
|
}, t.create = function(r, n) {
|
|
905
|
-
return new
|
|
941
|
+
return new st(r, n);
|
|
906
942
|
}, t;
|
|
907
|
-
}(
|
|
908
|
-
|
|
943
|
+
}(it), st = function(e) {
|
|
944
|
+
L(t, e);
|
|
909
945
|
function t(r, n) {
|
|
910
946
|
var i = e.call(this) || this;
|
|
911
947
|
return i.destination = r, i.source = n, i;
|
|
@@ -921,279 +957,279 @@ var Ur = Mt(function(e) {
|
|
|
921
957
|
(n = (r = this.destination) === null || r === void 0 ? void 0 : r.complete) === null || n === void 0 || n.call(r);
|
|
922
958
|
}, t.prototype._subscribe = function(r) {
|
|
923
959
|
var n, i;
|
|
924
|
-
return (i = (n = this.source) === null || n === void 0 ? void 0 : n.subscribe(r)) !== null && i !== void 0 ? i :
|
|
960
|
+
return (i = (n = this.source) === null || n === void 0 ? void 0 : n.subscribe(r)) !== null && i !== void 0 ? i : Mt;
|
|
925
961
|
}, t;
|
|
926
|
-
}(
|
|
962
|
+
}(Nt), Lt = {
|
|
927
963
|
now: function() {
|
|
928
|
-
return (
|
|
964
|
+
return (Lt.delegate || Date).now();
|
|
929
965
|
},
|
|
930
966
|
delegate: void 0
|
|
931
|
-
},
|
|
932
|
-
|
|
967
|
+
}, Gr = function(e) {
|
|
968
|
+
L(t, e);
|
|
933
969
|
function t(r, n, i) {
|
|
934
|
-
r === void 0 && (r = 1 / 0), n === void 0 && (n = 1 / 0), i === void 0 && (i =
|
|
970
|
+
r === void 0 && (r = 1 / 0), n === void 0 && (n = 1 / 0), i === void 0 && (i = Lt);
|
|
935
971
|
var o = e.call(this) || this;
|
|
936
972
|
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;
|
|
937
973
|
}
|
|
938
974
|
return t.prototype.next = function(r) {
|
|
939
|
-
var n = this, i = n.isStopped, o = n._buffer, s = n._infiniteTimeWindow, a = n._timestampProvider,
|
|
940
|
-
i || (o.push(r), !s && o.push(a.now() +
|
|
975
|
+
var n = this, i = n.isStopped, o = n._buffer, s = n._infiniteTimeWindow, a = n._timestampProvider, u = n._windowTime;
|
|
976
|
+
i || (o.push(r), !s && o.push(a.now() + u)), this._trimBuffer(), e.prototype.next.call(this, r);
|
|
941
977
|
}, t.prototype._subscribe = function(r) {
|
|
942
978
|
this._throwIfClosed(), this._trimBuffer();
|
|
943
|
-
for (var n = this._innerSubscribe(r), i = this, o = i._infiniteTimeWindow, s = i._buffer, a = s.slice(),
|
|
944
|
-
r.next(a[
|
|
979
|
+
for (var n = this._innerSubscribe(r), i = this, o = i._infiniteTimeWindow, s = i._buffer, a = s.slice(), u = 0; u < a.length && !r.closed; u += o ? 1 : 2)
|
|
980
|
+
r.next(a[u]);
|
|
945
981
|
return this._checkFinalizedStatuses(r), n;
|
|
946
982
|
}, t.prototype._trimBuffer = function() {
|
|
947
983
|
var r = this, n = r._bufferSize, i = r._timestampProvider, o = r._buffer, s = r._infiniteTimeWindow, a = (s ? 1 : 2) * n;
|
|
948
984
|
if (n < 1 / 0 && a < o.length && o.splice(0, o.length - a), !s) {
|
|
949
|
-
for (var
|
|
950
|
-
|
|
951
|
-
|
|
985
|
+
for (var u = i.now(), l = 0, c = 1; c < o.length && o[c] <= u; c += 2)
|
|
986
|
+
l = c;
|
|
987
|
+
l && o.splice(0, l + 1);
|
|
952
988
|
}
|
|
953
989
|
}, t;
|
|
954
|
-
}(
|
|
955
|
-
const
|
|
956
|
-
if (
|
|
957
|
-
const r = new
|
|
958
|
-
|
|
990
|
+
}(Nt);
|
|
991
|
+
const at = [], ut = {}, jr = (e, t = 0) => {
|
|
992
|
+
if (at.indexOf(e) == -1) {
|
|
993
|
+
const r = new Gr(t);
|
|
994
|
+
ut[e] = r, at.push(e);
|
|
959
995
|
}
|
|
960
|
-
return
|
|
961
|
-
},
|
|
962
|
-
function
|
|
996
|
+
return ut[e];
|
|
997
|
+
}, z = [];
|
|
998
|
+
function kr(e, t) {
|
|
963
999
|
return {
|
|
964
|
-
subscribe:
|
|
1000
|
+
subscribe: xe(e, t).subscribe
|
|
965
1001
|
};
|
|
966
1002
|
}
|
|
967
|
-
function
|
|
1003
|
+
function xe(e, t = O) {
|
|
968
1004
|
let r;
|
|
969
1005
|
const n = /* @__PURE__ */ new Set();
|
|
970
1006
|
function i(a) {
|
|
971
|
-
if (
|
|
972
|
-
const
|
|
973
|
-
for (const
|
|
974
|
-
|
|
975
|
-
if (
|
|
976
|
-
for (let
|
|
977
|
-
|
|
978
|
-
|
|
1007
|
+
if (St(e, a) && (e = a, r)) {
|
|
1008
|
+
const u = !z.length;
|
|
1009
|
+
for (const l of n)
|
|
1010
|
+
l[1](), z.push(l, e);
|
|
1011
|
+
if (u) {
|
|
1012
|
+
for (let l = 0; l < z.length; l += 2)
|
|
1013
|
+
z[l][0](z[l + 1]);
|
|
1014
|
+
z.length = 0;
|
|
979
1015
|
}
|
|
980
1016
|
}
|
|
981
1017
|
}
|
|
982
1018
|
function o(a) {
|
|
983
1019
|
i(a(e));
|
|
984
1020
|
}
|
|
985
|
-
function s(a,
|
|
986
|
-
const
|
|
987
|
-
return n.add(
|
|
988
|
-
n.delete(
|
|
1021
|
+
function s(a, u = O) {
|
|
1022
|
+
const l = [a, u];
|
|
1023
|
+
return n.add(l), n.size === 1 && (r = t(i, o) || O), a(e), () => {
|
|
1024
|
+
n.delete(l), n.size === 0 && r && (r(), r = null);
|
|
989
1025
|
};
|
|
990
1026
|
}
|
|
991
1027
|
return { set: i, update: o, subscribe: s };
|
|
992
1028
|
}
|
|
993
|
-
function
|
|
1029
|
+
function K(e, t, r) {
|
|
994
1030
|
const n = !Array.isArray(e), i = n ? [e] : e;
|
|
995
1031
|
if (!i.every(Boolean))
|
|
996
1032
|
throw new Error("derived() expects stores as input, got a falsy value");
|
|
997
1033
|
const o = t.length < 2;
|
|
998
|
-
return
|
|
999
|
-
let
|
|
1000
|
-
const
|
|
1001
|
-
let c = 0,
|
|
1002
|
-
const
|
|
1034
|
+
return kr(r, (s, a) => {
|
|
1035
|
+
let u = !1;
|
|
1036
|
+
const l = [];
|
|
1037
|
+
let c = 0, f = O;
|
|
1038
|
+
const h = () => {
|
|
1003
1039
|
if (c)
|
|
1004
1040
|
return;
|
|
1005
|
-
|
|
1006
|
-
const m = t(n ?
|
|
1007
|
-
o ? s(m) :
|
|
1041
|
+
f();
|
|
1042
|
+
const m = t(n ? l[0] : l, s, a);
|
|
1043
|
+
o ? s(m) : f = Ze(m) ? m : O;
|
|
1008
1044
|
}, p = i.map(
|
|
1009
|
-
(m, d) =>
|
|
1045
|
+
(m, d) => Tt(
|
|
1010
1046
|
m,
|
|
1011
|
-
(
|
|
1012
|
-
|
|
1047
|
+
(_) => {
|
|
1048
|
+
l[d] = _, c &= ~(1 << d), u && h();
|
|
1013
1049
|
},
|
|
1014
1050
|
() => {
|
|
1015
1051
|
c |= 1 << d;
|
|
1016
1052
|
}
|
|
1017
1053
|
)
|
|
1018
1054
|
);
|
|
1019
|
-
return
|
|
1020
|
-
|
|
1055
|
+
return u = !0, h(), function() {
|
|
1056
|
+
J(p), f(), u = !1;
|
|
1021
1057
|
};
|
|
1022
1058
|
});
|
|
1023
1059
|
}
|
|
1024
|
-
function
|
|
1060
|
+
function zr(e) {
|
|
1025
1061
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
1026
1062
|
}
|
|
1027
|
-
var
|
|
1028
|
-
return
|
|
1063
|
+
var Vr = function(t) {
|
|
1064
|
+
return Wr(t) && !Xr(t);
|
|
1029
1065
|
};
|
|
1030
|
-
function
|
|
1066
|
+
function Wr(e) {
|
|
1031
1067
|
return !!e && typeof e == "object";
|
|
1032
1068
|
}
|
|
1033
|
-
function
|
|
1069
|
+
function Xr(e) {
|
|
1034
1070
|
var t = Object.prototype.toString.call(e);
|
|
1035
|
-
return t === "[object RegExp]" || t === "[object Date]" ||
|
|
1036
|
-
}
|
|
1037
|
-
var Xr = typeof Symbol == "function" && Symbol.for, Zr = Xr ? Symbol.for("react.element") : 60103;
|
|
1038
|
-
function qr(e) {
|
|
1039
|
-
return e.$$typeof === Zr;
|
|
1071
|
+
return t === "[object RegExp]" || t === "[object Date]" || Qr(e);
|
|
1040
1072
|
}
|
|
1073
|
+
var Zr = typeof Symbol == "function" && Symbol.for, qr = Zr ? Symbol.for("react.element") : 60103;
|
|
1041
1074
|
function Qr(e) {
|
|
1075
|
+
return e.$$typeof === qr;
|
|
1076
|
+
}
|
|
1077
|
+
function Yr(e) {
|
|
1042
1078
|
return Array.isArray(e) ? [] : {};
|
|
1043
1079
|
}
|
|
1044
|
-
function
|
|
1045
|
-
return t.clone !== !1 && t.isMergeableObject(e) ?
|
|
1080
|
+
function oe(e, t) {
|
|
1081
|
+
return t.clone !== !1 && t.isMergeableObject(e) ? Z(Yr(e), e, t) : e;
|
|
1046
1082
|
}
|
|
1047
|
-
function
|
|
1083
|
+
function Jr(e, t, r) {
|
|
1048
1084
|
return e.concat(t).map(function(n) {
|
|
1049
|
-
return
|
|
1085
|
+
return oe(n, r);
|
|
1050
1086
|
});
|
|
1051
1087
|
}
|
|
1052
|
-
function
|
|
1088
|
+
function Kr(e, t) {
|
|
1053
1089
|
if (!t.customMerge)
|
|
1054
|
-
return
|
|
1090
|
+
return Z;
|
|
1055
1091
|
var r = t.customMerge(e);
|
|
1056
|
-
return typeof r == "function" ? r :
|
|
1092
|
+
return typeof r == "function" ? r : Z;
|
|
1057
1093
|
}
|
|
1058
|
-
function
|
|
1094
|
+
function en(e) {
|
|
1059
1095
|
return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(e).filter(function(t) {
|
|
1060
1096
|
return Object.propertyIsEnumerable.call(e, t);
|
|
1061
1097
|
}) : [];
|
|
1062
1098
|
}
|
|
1063
|
-
function
|
|
1064
|
-
return Object.keys(e).concat(
|
|
1099
|
+
function lt(e) {
|
|
1100
|
+
return Object.keys(e).concat(en(e));
|
|
1065
1101
|
}
|
|
1066
|
-
function
|
|
1102
|
+
function $t(e, t) {
|
|
1067
1103
|
try {
|
|
1068
1104
|
return t in e;
|
|
1069
1105
|
} catch {
|
|
1070
1106
|
return !1;
|
|
1071
1107
|
}
|
|
1072
1108
|
}
|
|
1073
|
-
function
|
|
1074
|
-
return
|
|
1109
|
+
function tn(e, t) {
|
|
1110
|
+
return $t(e, t) && !(Object.hasOwnProperty.call(e, t) && Object.propertyIsEnumerable.call(e, t));
|
|
1075
1111
|
}
|
|
1076
|
-
function
|
|
1112
|
+
function rn(e, t, r) {
|
|
1077
1113
|
var n = {};
|
|
1078
|
-
return r.isMergeableObject(e) &&
|
|
1079
|
-
n[i] =
|
|
1080
|
-
}),
|
|
1081
|
-
|
|
1114
|
+
return r.isMergeableObject(e) && lt(e).forEach(function(i) {
|
|
1115
|
+
n[i] = oe(e[i], r);
|
|
1116
|
+
}), lt(t).forEach(function(i) {
|
|
1117
|
+
tn(e, i) || ($t(e, i) && r.isMergeableObject(t[i]) ? n[i] = Kr(i, r)(e[i], t[i], r) : n[i] = oe(t[i], r));
|
|
1082
1118
|
}), n;
|
|
1083
1119
|
}
|
|
1084
|
-
function
|
|
1085
|
-
r = r || {}, r.arrayMerge = r.arrayMerge ||
|
|
1120
|
+
function Z(e, t, r) {
|
|
1121
|
+
r = r || {}, r.arrayMerge = r.arrayMerge || Jr, r.isMergeableObject = r.isMergeableObject || Vr, r.cloneUnlessOtherwiseSpecified = oe;
|
|
1086
1122
|
var n = Array.isArray(t), i = Array.isArray(e), o = n === i;
|
|
1087
|
-
return o ? n ? r.arrayMerge(e, t, r) :
|
|
1123
|
+
return o ? n ? r.arrayMerge(e, t, r) : rn(e, t, r) : oe(t, r);
|
|
1088
1124
|
}
|
|
1089
|
-
|
|
1125
|
+
Z.all = function(t, r) {
|
|
1090
1126
|
if (!Array.isArray(t))
|
|
1091
1127
|
throw new Error("first argument should be an array");
|
|
1092
1128
|
return t.reduce(function(n, i) {
|
|
1093
|
-
return
|
|
1129
|
+
return Z(n, i, r);
|
|
1094
1130
|
}, {});
|
|
1095
1131
|
};
|
|
1096
|
-
var
|
|
1097
|
-
const
|
|
1098
|
-
function
|
|
1099
|
-
var r = t && t.cache ? t.cache :
|
|
1132
|
+
var nn = Z, on = nn;
|
|
1133
|
+
const sn = /* @__PURE__ */ zr(on);
|
|
1134
|
+
function Te(e, t) {
|
|
1135
|
+
var r = t && t.cache ? t.cache : fn, n = t && t.serializer ? t.serializer : hn, i = t && t.strategy ? t.strategy : un;
|
|
1100
1136
|
return i(e, {
|
|
1101
1137
|
cache: r,
|
|
1102
1138
|
serializer: n
|
|
1103
1139
|
});
|
|
1104
1140
|
}
|
|
1105
|
-
function
|
|
1141
|
+
function an(e) {
|
|
1106
1142
|
return e == null || typeof e == "number" || typeof e == "boolean";
|
|
1107
1143
|
}
|
|
1108
|
-
function
|
|
1109
|
-
var i =
|
|
1144
|
+
function Rt(e, t, r, n) {
|
|
1145
|
+
var i = an(n) ? n : r(n), o = t.get(i);
|
|
1110
1146
|
return typeof o > "u" && (o = e.call(this, n), t.set(i, o)), o;
|
|
1111
1147
|
}
|
|
1112
|
-
function
|
|
1148
|
+
function Dt(e, t, r) {
|
|
1113
1149
|
var n = Array.prototype.slice.call(arguments, 3), i = r(n), o = t.get(i);
|
|
1114
1150
|
return typeof o > "u" && (o = e.apply(this, n), t.set(i, o)), o;
|
|
1115
1151
|
}
|
|
1116
|
-
function
|
|
1152
|
+
function qe(e, t, r, n, i) {
|
|
1117
1153
|
return r.bind(t, e, n, i);
|
|
1118
1154
|
}
|
|
1119
|
-
function an(e, t) {
|
|
1120
|
-
var r = e.length === 1 ? Dt : Ut;
|
|
1121
|
-
return Ye(e, this, r, t.cache.create(), t.serializer);
|
|
1122
|
-
}
|
|
1123
1155
|
function un(e, t) {
|
|
1124
|
-
|
|
1156
|
+
var r = e.length === 1 ? Rt : Dt;
|
|
1157
|
+
return qe(e, this, r, t.cache.create(), t.serializer);
|
|
1125
1158
|
}
|
|
1126
1159
|
function ln(e, t) {
|
|
1127
|
-
return
|
|
1160
|
+
return qe(e, this, Dt, t.cache.create(), t.serializer);
|
|
1161
|
+
}
|
|
1162
|
+
function cn(e, t) {
|
|
1163
|
+
return qe(e, this, Rt, t.cache.create(), t.serializer);
|
|
1128
1164
|
}
|
|
1129
|
-
var
|
|
1165
|
+
var hn = function() {
|
|
1130
1166
|
return JSON.stringify(arguments);
|
|
1131
1167
|
};
|
|
1132
|
-
function
|
|
1168
|
+
function Qe() {
|
|
1133
1169
|
this.cache = /* @__PURE__ */ Object.create(null);
|
|
1134
1170
|
}
|
|
1135
|
-
|
|
1171
|
+
Qe.prototype.get = function(e) {
|
|
1136
1172
|
return this.cache[e];
|
|
1137
1173
|
};
|
|
1138
|
-
|
|
1174
|
+
Qe.prototype.set = function(e, t) {
|
|
1139
1175
|
this.cache[e] = t;
|
|
1140
1176
|
};
|
|
1141
|
-
var
|
|
1177
|
+
var fn = {
|
|
1142
1178
|
create: function() {
|
|
1143
|
-
return new
|
|
1179
|
+
return new Qe();
|
|
1144
1180
|
}
|
|
1145
|
-
},
|
|
1146
|
-
variadic:
|
|
1147
|
-
monadic:
|
|
1181
|
+
}, Be = {
|
|
1182
|
+
variadic: ln,
|
|
1183
|
+
monadic: cn
|
|
1148
1184
|
}, b;
|
|
1149
1185
|
(function(e) {
|
|
1150
1186
|
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";
|
|
1151
1187
|
})(b || (b = {}));
|
|
1152
|
-
var
|
|
1188
|
+
var w;
|
|
1153
1189
|
(function(e) {
|
|
1154
1190
|
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";
|
|
1155
|
-
})(
|
|
1156
|
-
var
|
|
1191
|
+
})(w || (w = {}));
|
|
1192
|
+
var q;
|
|
1157
1193
|
(function(e) {
|
|
1158
1194
|
e[e.number = 0] = "number", e[e.dateTime = 1] = "dateTime";
|
|
1159
|
-
})(
|
|
1160
|
-
function
|
|
1161
|
-
return e.type ===
|
|
1195
|
+
})(q || (q = {}));
|
|
1196
|
+
function ct(e) {
|
|
1197
|
+
return e.type === w.literal;
|
|
1198
|
+
}
|
|
1199
|
+
function pn(e) {
|
|
1200
|
+
return e.type === w.argument;
|
|
1162
1201
|
}
|
|
1163
|
-
function
|
|
1164
|
-
return e.type ===
|
|
1202
|
+
function Ut(e) {
|
|
1203
|
+
return e.type === w.number;
|
|
1165
1204
|
}
|
|
1166
1205
|
function Ft(e) {
|
|
1167
|
-
return e.type ===
|
|
1206
|
+
return e.type === w.date;
|
|
1168
1207
|
}
|
|
1169
1208
|
function Gt(e) {
|
|
1170
|
-
return e.type ===
|
|
1209
|
+
return e.type === w.time;
|
|
1171
1210
|
}
|
|
1172
1211
|
function jt(e) {
|
|
1173
|
-
return e.type ===
|
|
1212
|
+
return e.type === w.select;
|
|
1174
1213
|
}
|
|
1175
1214
|
function kt(e) {
|
|
1176
|
-
return e.type ===
|
|
1215
|
+
return e.type === w.plural;
|
|
1177
1216
|
}
|
|
1178
|
-
function
|
|
1179
|
-
return e.type ===
|
|
1217
|
+
function dn(e) {
|
|
1218
|
+
return e.type === w.pound;
|
|
1180
1219
|
}
|
|
1181
|
-
function
|
|
1182
|
-
return e.type ===
|
|
1220
|
+
function zt(e) {
|
|
1221
|
+
return e.type === w.tag;
|
|
1183
1222
|
}
|
|
1184
1223
|
function Vt(e) {
|
|
1185
|
-
return e.type ===
|
|
1186
|
-
}
|
|
1187
|
-
function Wt(e) {
|
|
1188
|
-
return !!(e && typeof e == "object" && e.type === Y.number);
|
|
1224
|
+
return !!(e && typeof e == "object" && e.type === q.number);
|
|
1189
1225
|
}
|
|
1190
|
-
function
|
|
1191
|
-
return !!(e && typeof e == "object" && e.type ===
|
|
1226
|
+
function Fe(e) {
|
|
1227
|
+
return !!(e && typeof e == "object" && e.type === q.dateTime);
|
|
1192
1228
|
}
|
|
1193
|
-
var
|
|
1194
|
-
function
|
|
1229
|
+
var Wt = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, mn = /(?:[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;
|
|
1230
|
+
function bn(e) {
|
|
1195
1231
|
var t = {};
|
|
1196
|
-
return e.replace(
|
|
1232
|
+
return e.replace(mn, function(r) {
|
|
1197
1233
|
var n = r.length;
|
|
1198
1234
|
switch (r[0]) {
|
|
1199
1235
|
case "G":
|
|
@@ -1282,36 +1318,36 @@ function mn(e) {
|
|
|
1282
1318
|
return "";
|
|
1283
1319
|
}), t;
|
|
1284
1320
|
}
|
|
1285
|
-
var
|
|
1286
|
-
function
|
|
1321
|
+
var vn = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
|
|
1322
|
+
function gn(e) {
|
|
1287
1323
|
if (e.length === 0)
|
|
1288
1324
|
throw new Error("Number skeleton cannot be empty");
|
|
1289
|
-
for (var t = e.split(
|
|
1290
|
-
return
|
|
1325
|
+
for (var t = e.split(vn).filter(function(h) {
|
|
1326
|
+
return h.length > 0;
|
|
1291
1327
|
}), r = [], n = 0, i = t; n < i.length; n++) {
|
|
1292
1328
|
var o = i[n], s = o.split("/");
|
|
1293
1329
|
if (s.length === 0)
|
|
1294
1330
|
throw new Error("Invalid number skeleton");
|
|
1295
|
-
for (var a = s[0],
|
|
1296
|
-
var
|
|
1297
|
-
if (
|
|
1331
|
+
for (var a = s[0], u = s.slice(1), l = 0, c = u; l < c.length; l++) {
|
|
1332
|
+
var f = c[l];
|
|
1333
|
+
if (f.length === 0)
|
|
1298
1334
|
throw new Error("Invalid number skeleton");
|
|
1299
1335
|
}
|
|
1300
|
-
r.push({ stem: a, options:
|
|
1336
|
+
r.push({ stem: a, options: u });
|
|
1301
1337
|
}
|
|
1302
1338
|
return r;
|
|
1303
1339
|
}
|
|
1304
|
-
function
|
|
1340
|
+
function yn(e) {
|
|
1305
1341
|
return e.replace(/^(.*?)-/, "");
|
|
1306
1342
|
}
|
|
1307
|
-
var
|
|
1308
|
-
function
|
|
1343
|
+
var ht = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, Xt = /^(@+)?(\+|#+)?[rs]?$/g, xn = /(\*)(0+)|(#+)(0+)|(0+)/g, Zt = /^(0+)$/;
|
|
1344
|
+
function ft(e) {
|
|
1309
1345
|
var t = {};
|
|
1310
|
-
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(
|
|
1346
|
+
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(Xt, function(r, n, i) {
|
|
1311
1347
|
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)), "";
|
|
1312
1348
|
}), t;
|
|
1313
1349
|
}
|
|
1314
|
-
function
|
|
1350
|
+
function qt(e) {
|
|
1315
1351
|
switch (e) {
|
|
1316
1352
|
case "sign-auto":
|
|
1317
1353
|
return {
|
|
@@ -1351,7 +1387,7 @@ function Qt(e) {
|
|
|
1351
1387
|
};
|
|
1352
1388
|
}
|
|
1353
1389
|
}
|
|
1354
|
-
function
|
|
1390
|
+
function En(e) {
|
|
1355
1391
|
var t;
|
|
1356
1392
|
if (e[0] === "E" && e[1] === "E" ? (t = {
|
|
1357
1393
|
notation: "engineering"
|
|
@@ -1359,17 +1395,17 @@ function xn(e) {
|
|
|
1359
1395
|
notation: "scientific"
|
|
1360
1396
|
}, e = e.slice(1)), t) {
|
|
1361
1397
|
var r = e.slice(0, 2);
|
|
1362
|
-
if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !
|
|
1398
|
+
if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !Zt.test(e))
|
|
1363
1399
|
throw new Error("Malformed concise eng/scientific notation");
|
|
1364
1400
|
t.minimumIntegerDigits = e.length;
|
|
1365
1401
|
}
|
|
1366
1402
|
return t;
|
|
1367
1403
|
}
|
|
1368
|
-
function
|
|
1369
|
-
var t = {}, r =
|
|
1404
|
+
function pt(e) {
|
|
1405
|
+
var t = {}, r = qt(e);
|
|
1370
1406
|
return r || t;
|
|
1371
1407
|
}
|
|
1372
|
-
function
|
|
1408
|
+
function _n(e) {
|
|
1373
1409
|
for (var t = {}, r = 0, n = e; r < n.length; r++) {
|
|
1374
1410
|
var i = n[r];
|
|
1375
1411
|
switch (i.stem) {
|
|
@@ -1393,7 +1429,7 @@ function En(e) {
|
|
|
1393
1429
|
continue;
|
|
1394
1430
|
case "measure-unit":
|
|
1395
1431
|
case "unit":
|
|
1396
|
-
t.style = "unit", t.unit =
|
|
1432
|
+
t.style = "unit", t.unit = yn(i.options[0]);
|
|
1397
1433
|
continue;
|
|
1398
1434
|
case "compact-short":
|
|
1399
1435
|
case "K":
|
|
@@ -1404,13 +1440,13 @@ function En(e) {
|
|
|
1404
1440
|
t.notation = "compact", t.compactDisplay = "long";
|
|
1405
1441
|
continue;
|
|
1406
1442
|
case "scientific":
|
|
1407
|
-
t =
|
|
1408
|
-
return
|
|
1443
|
+
t = x(x(x({}, t), { notation: "scientific" }), i.options.reduce(function(u, l) {
|
|
1444
|
+
return x(x({}, u), pt(l));
|
|
1409
1445
|
}, {}));
|
|
1410
1446
|
continue;
|
|
1411
1447
|
case "engineering":
|
|
1412
|
-
t =
|
|
1413
|
-
return
|
|
1448
|
+
t = x(x(x({}, t), { notation: "engineering" }), i.options.reduce(function(u, l) {
|
|
1449
|
+
return x(x({}, u), pt(l));
|
|
1414
1450
|
}, {}));
|
|
1415
1451
|
continue;
|
|
1416
1452
|
case "notation-simple":
|
|
@@ -1455,11 +1491,11 @@ function En(e) {
|
|
|
1455
1491
|
case "integer-width":
|
|
1456
1492
|
if (i.options.length > 1)
|
|
1457
1493
|
throw new RangeError("integer-width stems only accept a single optional option");
|
|
1458
|
-
i.options[0].replace(
|
|
1459
|
-
if (
|
|
1494
|
+
i.options[0].replace(xn, function(u, l, c, f, h, p) {
|
|
1495
|
+
if (l)
|
|
1460
1496
|
t.minimumIntegerDigits = c.length;
|
|
1461
1497
|
else {
|
|
1462
|
-
if (
|
|
1498
|
+
if (f && h)
|
|
1463
1499
|
throw new Error("We currently do not support maximum integer digits");
|
|
1464
1500
|
if (p)
|
|
1465
1501
|
throw new Error("We currently do not support exact integer digits");
|
|
@@ -1468,32 +1504,32 @@ function En(e) {
|
|
|
1468
1504
|
});
|
|
1469
1505
|
continue;
|
|
1470
1506
|
}
|
|
1471
|
-
if (
|
|
1507
|
+
if (Zt.test(i.stem)) {
|
|
1472
1508
|
t.minimumIntegerDigits = i.stem.length;
|
|
1473
1509
|
continue;
|
|
1474
1510
|
}
|
|
1475
|
-
if (
|
|
1511
|
+
if (ht.test(i.stem)) {
|
|
1476
1512
|
if (i.options.length > 1)
|
|
1477
1513
|
throw new RangeError("Fraction-precision stems only accept a single optional option");
|
|
1478
|
-
i.stem.replace(
|
|
1479
|
-
return c === "*" ? t.minimumFractionDigits =
|
|
1514
|
+
i.stem.replace(ht, function(u, l, c, f, h, p) {
|
|
1515
|
+
return c === "*" ? t.minimumFractionDigits = l.length : f && f[0] === "#" ? t.maximumFractionDigits = f.length : h && p ? (t.minimumFractionDigits = h.length, t.maximumFractionDigits = h.length + p.length) : (t.minimumFractionDigits = l.length, t.maximumFractionDigits = l.length), "";
|
|
1480
1516
|
});
|
|
1481
1517
|
var o = i.options[0];
|
|
1482
|
-
o === "w" ? t =
|
|
1518
|
+
o === "w" ? t = x(x({}, t), { trailingZeroDisplay: "stripIfInteger" }) : o && (t = x(x({}, t), ft(o)));
|
|
1483
1519
|
continue;
|
|
1484
1520
|
}
|
|
1485
|
-
if (
|
|
1486
|
-
t =
|
|
1521
|
+
if (Xt.test(i.stem)) {
|
|
1522
|
+
t = x(x({}, t), ft(i.stem));
|
|
1487
1523
|
continue;
|
|
1488
1524
|
}
|
|
1489
|
-
var s =
|
|
1490
|
-
s && (t =
|
|
1491
|
-
var a =
|
|
1492
|
-
a && (t =
|
|
1525
|
+
var s = qt(i.stem);
|
|
1526
|
+
s && (t = x(x({}, t), s));
|
|
1527
|
+
var a = En(i.stem);
|
|
1528
|
+
a && (t = x(x({}, t), a));
|
|
1493
1529
|
}
|
|
1494
1530
|
return t;
|
|
1495
1531
|
}
|
|
1496
|
-
var
|
|
1532
|
+
var ce = {
|
|
1497
1533
|
"001": [
|
|
1498
1534
|
"H",
|
|
1499
1535
|
"h"
|
|
@@ -2908,22 +2944,23 @@ var he = {
|
|
|
2908
2944
|
"h"
|
|
2909
2945
|
]
|
|
2910
2946
|
};
|
|
2911
|
-
function
|
|
2947
|
+
function Cn(e, t) {
|
|
2912
2948
|
for (var r = "", n = 0; n < e.length; n++) {
|
|
2913
2949
|
var i = e.charAt(n);
|
|
2914
2950
|
if (i === "j") {
|
|
2915
2951
|
for (var o = 0; n + 1 < e.length && e.charAt(n + 1) === i; )
|
|
2916
2952
|
o++, n++;
|
|
2917
|
-
var s = 1 + (o & 1), a = o < 2 ? 1 : 3 + (o >> 1),
|
|
2918
|
-
for ((
|
|
2919
|
-
r +=
|
|
2953
|
+
var s = 1 + (o & 1), a = o < 2 ? 1 : 3 + (o >> 1), u = "a", l = wn(t);
|
|
2954
|
+
for ((l == "H" || l == "k") && (a = 0); a-- > 0; )
|
|
2955
|
+
r += u;
|
|
2920
2956
|
for (; s-- > 0; )
|
|
2921
|
-
r =
|
|
2922
|
-
} else
|
|
2957
|
+
r = l + r;
|
|
2958
|
+
} else
|
|
2959
|
+
i === "J" ? r += "H" : r += i;
|
|
2923
2960
|
}
|
|
2924
2961
|
return r;
|
|
2925
2962
|
}
|
|
2926
|
-
function
|
|
2963
|
+
function wn(e) {
|
|
2927
2964
|
var t = e.hourCycle;
|
|
2928
2965
|
if (t === void 0 && // @ts-ignore hourCycle(s) is not identified yet
|
|
2929
2966
|
e.hourCycles && // @ts-ignore
|
|
@@ -2942,23 +2979,23 @@ function Cn(e) {
|
|
|
2942
2979
|
}
|
|
2943
2980
|
var r = e.language, n;
|
|
2944
2981
|
r !== "root" && (n = e.maximize().region);
|
|
2945
|
-
var i =
|
|
2982
|
+
var i = ce[n || ""] || ce[r || ""] || ce["".concat(r, "-001")] || ce["001"];
|
|
2946
2983
|
return i[0];
|
|
2947
2984
|
}
|
|
2948
|
-
var
|
|
2985
|
+
var He, An = new RegExp("^".concat(Wt.source, "*")), Sn = new RegExp("".concat(Wt.source, "*$"));
|
|
2949
2986
|
function g(e, t) {
|
|
2950
2987
|
return { start: e, end: t };
|
|
2951
2988
|
}
|
|
2952
|
-
var
|
|
2989
|
+
var Tn = !!String.prototype.startsWith && "_a".startsWith("a", 1), Bn = !!String.fromCodePoint, Hn = !!Object.fromEntries, Mn = !!String.prototype.codePointAt, Pn = !!String.prototype.trimStart, On = !!String.prototype.trimEnd, In = !!Number.isSafeInteger, Nn = In ? Number.isSafeInteger : function(e) {
|
|
2953
2990
|
return typeof e == "number" && isFinite(e) && Math.floor(e) === e && Math.abs(e) <= 9007199254740991;
|
|
2954
|
-
},
|
|
2991
|
+
}, Ge = !0;
|
|
2955
2992
|
try {
|
|
2956
|
-
var
|
|
2957
|
-
|
|
2993
|
+
var Ln = Yt("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
2994
|
+
Ge = ((He = Ln.exec("a")) === null || He === void 0 ? void 0 : He[0]) === "a";
|
|
2958
2995
|
} catch {
|
|
2959
|
-
|
|
2996
|
+
Ge = !1;
|
|
2960
2997
|
}
|
|
2961
|
-
var
|
|
2998
|
+
var dt = Tn ? (
|
|
2962
2999
|
// Native
|
|
2963
3000
|
function(t, r, n) {
|
|
2964
3001
|
return t.startsWith(r, n);
|
|
@@ -2968,7 +3005,7 @@ var mt = Sn ? (
|
|
|
2968
3005
|
function(t, r, n) {
|
|
2969
3006
|
return t.slice(n, n + r.length) === r;
|
|
2970
3007
|
}
|
|
2971
|
-
),
|
|
3008
|
+
), je = Bn ? String.fromCodePoint : (
|
|
2972
3009
|
// IE11
|
|
2973
3010
|
function() {
|
|
2974
3011
|
for (var t = [], r = 0; r < arguments.length; r++)
|
|
@@ -2980,9 +3017,9 @@ var mt = Sn ? (
|
|
|
2980
3017
|
}
|
|
2981
3018
|
return n;
|
|
2982
3019
|
}
|
|
2983
|
-
),
|
|
3020
|
+
), mt = (
|
|
2984
3021
|
// native
|
|
2985
|
-
|
|
3022
|
+
Hn ? Object.fromEntries : (
|
|
2986
3023
|
// Ponyfill
|
|
2987
3024
|
function(t) {
|
|
2988
3025
|
for (var r = {}, n = 0, i = t; n < i.length; n++) {
|
|
@@ -2992,7 +3029,7 @@ var mt = Sn ? (
|
|
|
2992
3029
|
return r;
|
|
2993
3030
|
}
|
|
2994
3031
|
)
|
|
2995
|
-
),
|
|
3032
|
+
), Qt = Mn ? (
|
|
2996
3033
|
// Native
|
|
2997
3034
|
function(t, r) {
|
|
2998
3035
|
return t.codePointAt(r);
|
|
@@ -3006,7 +3043,7 @@ var mt = Sn ? (
|
|
|
3006
3043
|
return i < 55296 || i > 56319 || r + 1 === n || (o = t.charCodeAt(r + 1)) < 56320 || o > 57343 ? i : (i - 55296 << 10) + (o - 56320) + 65536;
|
|
3007
3044
|
}
|
|
3008
3045
|
}
|
|
3009
|
-
),
|
|
3046
|
+
), $n = Pn ? (
|
|
3010
3047
|
// Native
|
|
3011
3048
|
function(t) {
|
|
3012
3049
|
return t.trimStart();
|
|
@@ -3016,7 +3053,7 @@ var mt = Sn ? (
|
|
|
3016
3053
|
function(t) {
|
|
3017
3054
|
return t.replace(An, "");
|
|
3018
3055
|
}
|
|
3019
|
-
),
|
|
3056
|
+
), Rn = On ? (
|
|
3020
3057
|
// Native
|
|
3021
3058
|
function(t) {
|
|
3022
3059
|
return t.trimEnd();
|
|
@@ -3024,32 +3061,32 @@ var mt = Sn ? (
|
|
|
3024
3061
|
) : (
|
|
3025
3062
|
// Ponyfill
|
|
3026
3063
|
function(t) {
|
|
3027
|
-
return t.replace(
|
|
3064
|
+
return t.replace(Sn, "");
|
|
3028
3065
|
}
|
|
3029
3066
|
);
|
|
3030
|
-
function
|
|
3067
|
+
function Yt(e, t) {
|
|
3031
3068
|
return new RegExp(e, t);
|
|
3032
3069
|
}
|
|
3033
|
-
var
|
|
3034
|
-
if (
|
|
3035
|
-
var
|
|
3036
|
-
|
|
3070
|
+
var ke;
|
|
3071
|
+
if (Ge) {
|
|
3072
|
+
var bt = Yt("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
3073
|
+
ke = function(t, r) {
|
|
3037
3074
|
var n;
|
|
3038
|
-
|
|
3039
|
-
var i =
|
|
3075
|
+
bt.lastIndex = r;
|
|
3076
|
+
var i = bt.exec(t);
|
|
3040
3077
|
return (n = i[1]) !== null && n !== void 0 ? n : "";
|
|
3041
3078
|
};
|
|
3042
3079
|
} else
|
|
3043
|
-
|
|
3080
|
+
ke = function(t, r) {
|
|
3044
3081
|
for (var n = []; ; ) {
|
|
3045
|
-
var i =
|
|
3046
|
-
if (i === void 0 ||
|
|
3082
|
+
var i = Qt(t, r);
|
|
3083
|
+
if (i === void 0 || Jt(i) || Gn(i))
|
|
3047
3084
|
break;
|
|
3048
3085
|
n.push(i), r += i >= 65536 ? 2 : 1;
|
|
3049
3086
|
}
|
|
3050
|
-
return
|
|
3087
|
+
return je.apply(void 0, n);
|
|
3051
3088
|
};
|
|
3052
|
-
var
|
|
3089
|
+
var Dn = (
|
|
3053
3090
|
/** @class */
|
|
3054
3091
|
function() {
|
|
3055
3092
|
function e(t, r) {
|
|
@@ -3073,14 +3110,14 @@ var Rn = (
|
|
|
3073
3110
|
if (o === 35 && (r === "plural" || r === "selectordinal")) {
|
|
3074
3111
|
var a = this.clonePosition();
|
|
3075
3112
|
this.bump(), i.push({
|
|
3076
|
-
type:
|
|
3113
|
+
type: w.pound,
|
|
3077
3114
|
location: g(a, this.clonePosition())
|
|
3078
3115
|
});
|
|
3079
3116
|
} else if (o === 60 && !this.ignoreTag && this.peek() === 47) {
|
|
3080
3117
|
if (n)
|
|
3081
3118
|
break;
|
|
3082
3119
|
return this.error(b.UNMATCHED_CLOSING_TAG, g(this.clonePosition(), this.clonePosition()));
|
|
3083
|
-
} else if (o === 60 && !this.ignoreTag &&
|
|
3120
|
+
} else if (o === 60 && !this.ignoreTag && ze(this.peek() || 0)) {
|
|
3084
3121
|
var s = this.parseTag(t, r);
|
|
3085
3122
|
if (s.err)
|
|
3086
3123
|
return s;
|
|
@@ -3101,7 +3138,7 @@ var Rn = (
|
|
|
3101
3138
|
if (this.bumpSpace(), this.bumpIf("/>"))
|
|
3102
3139
|
return {
|
|
3103
3140
|
val: {
|
|
3104
|
-
type:
|
|
3141
|
+
type: w.literal,
|
|
3105
3142
|
value: "<".concat(i, "/>"),
|
|
3106
3143
|
location: g(n, this.clonePosition())
|
|
3107
3144
|
},
|
|
@@ -3113,12 +3150,12 @@ var Rn = (
|
|
|
3113
3150
|
return o;
|
|
3114
3151
|
var s = o.val, a = this.clonePosition();
|
|
3115
3152
|
if (this.bumpIf("</")) {
|
|
3116
|
-
if (this.isEOF() || !
|
|
3153
|
+
if (this.isEOF() || !ze(this.char()))
|
|
3117
3154
|
return this.error(b.INVALID_TAG, g(a, this.clonePosition()));
|
|
3118
|
-
var
|
|
3119
|
-
return i !==
|
|
3155
|
+
var u = this.clonePosition(), l = this.parseTagName();
|
|
3156
|
+
return i !== l ? this.error(b.UNMATCHED_CLOSING_TAG, g(u, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
|
|
3120
3157
|
val: {
|
|
3121
|
-
type:
|
|
3158
|
+
type: w.tag,
|
|
3122
3159
|
value: i,
|
|
3123
3160
|
children: s,
|
|
3124
3161
|
location: g(n, this.clonePosition())
|
|
@@ -3131,7 +3168,7 @@ var Rn = (
|
|
|
3131
3168
|
return this.error(b.INVALID_TAG, g(n, this.clonePosition()));
|
|
3132
3169
|
}, e.prototype.parseTagName = function() {
|
|
3133
3170
|
var t = this.offset();
|
|
3134
|
-
for (this.bump(); !this.isEOF() &&
|
|
3171
|
+
for (this.bump(); !this.isEOF() && Fn(this.char()); )
|
|
3135
3172
|
this.bump();
|
|
3136
3173
|
return this.message.slice(t, this.offset());
|
|
3137
3174
|
}, e.prototype.parseLiteral = function(t, r) {
|
|
@@ -3153,14 +3190,14 @@ var Rn = (
|
|
|
3153
3190
|
}
|
|
3154
3191
|
break;
|
|
3155
3192
|
}
|
|
3156
|
-
var
|
|
3193
|
+
var u = g(n, this.clonePosition());
|
|
3157
3194
|
return {
|
|
3158
|
-
val: { type:
|
|
3195
|
+
val: { type: w.literal, value: i, location: u },
|
|
3159
3196
|
err: null
|
|
3160
3197
|
};
|
|
3161
3198
|
}, e.prototype.tryParseLeftAngleBracket = function() {
|
|
3162
3199
|
return !this.isEOF() && this.char() === 60 && (this.ignoreTag || // If at the opening tag or closing tag position, bail.
|
|
3163
|
-
!
|
|
3200
|
+
!Un(this.peek() || 0)) ? (this.bump(), "<") : null;
|
|
3164
3201
|
}, e.prototype.tryParseQuote = function(t) {
|
|
3165
3202
|
if (this.isEOF() || this.char() !== 39)
|
|
3166
3203
|
return null;
|
|
@@ -3194,12 +3231,12 @@ var Rn = (
|
|
|
3194
3231
|
r.push(n);
|
|
3195
3232
|
this.bump();
|
|
3196
3233
|
}
|
|
3197
|
-
return
|
|
3234
|
+
return je.apply(void 0, r);
|
|
3198
3235
|
}, e.prototype.tryParseUnquoted = function(t, r) {
|
|
3199
3236
|
if (this.isEOF())
|
|
3200
3237
|
return null;
|
|
3201
3238
|
var n = this.char();
|
|
3202
|
-
return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(),
|
|
3239
|
+
return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(), je(n));
|
|
3203
3240
|
}, e.prototype.parseArgument = function(t, r) {
|
|
3204
3241
|
var n = this.clonePosition();
|
|
3205
3242
|
if (this.bump(), this.bumpSpace(), this.isEOF())
|
|
@@ -3215,7 +3252,7 @@ var Rn = (
|
|
|
3215
3252
|
case 125:
|
|
3216
3253
|
return this.bump(), {
|
|
3217
3254
|
val: {
|
|
3218
|
-
type:
|
|
3255
|
+
type: w.argument,
|
|
3219
3256
|
// value does not include the opening and closing braces.
|
|
3220
3257
|
value: i,
|
|
3221
3258
|
location: g(n, this.clonePosition())
|
|
@@ -3228,66 +3265,66 @@ var Rn = (
|
|
|
3228
3265
|
return this.error(b.MALFORMED_ARGUMENT, g(n, this.clonePosition()));
|
|
3229
3266
|
}
|
|
3230
3267
|
}, e.prototype.parseIdentifierIfPossible = function() {
|
|
3231
|
-
var t = this.clonePosition(), r = this.offset(), n =
|
|
3268
|
+
var t = this.clonePosition(), r = this.offset(), n = ke(this.message, r), i = r + n.length;
|
|
3232
3269
|
this.bumpTo(i);
|
|
3233
3270
|
var o = this.clonePosition(), s = g(t, o);
|
|
3234
3271
|
return { value: n, location: s };
|
|
3235
3272
|
}, e.prototype.parseArgumentOptions = function(t, r, n, i) {
|
|
3236
|
-
var o, s = this.clonePosition(), a = this.parseIdentifierIfPossible().value,
|
|
3273
|
+
var o, s = this.clonePosition(), a = this.parseIdentifierIfPossible().value, u = this.clonePosition();
|
|
3237
3274
|
switch (a) {
|
|
3238
3275
|
case "":
|
|
3239
|
-
return this.error(b.EXPECT_ARGUMENT_TYPE, g(s,
|
|
3276
|
+
return this.error(b.EXPECT_ARGUMENT_TYPE, g(s, u));
|
|
3240
3277
|
case "number":
|
|
3241
3278
|
case "date":
|
|
3242
3279
|
case "time": {
|
|
3243
3280
|
this.bumpSpace();
|
|
3244
|
-
var
|
|
3281
|
+
var l = null;
|
|
3245
3282
|
if (this.bumpIf(",")) {
|
|
3246
3283
|
this.bumpSpace();
|
|
3247
|
-
var c = this.clonePosition(),
|
|
3248
|
-
if (
|
|
3249
|
-
return
|
|
3250
|
-
var
|
|
3251
|
-
if (
|
|
3284
|
+
var c = this.clonePosition(), f = this.parseSimpleArgStyleIfPossible();
|
|
3285
|
+
if (f.err)
|
|
3286
|
+
return f;
|
|
3287
|
+
var h = Rn(f.val);
|
|
3288
|
+
if (h.length === 0)
|
|
3252
3289
|
return this.error(b.EXPECT_ARGUMENT_STYLE, g(this.clonePosition(), this.clonePosition()));
|
|
3253
3290
|
var p = g(c, this.clonePosition());
|
|
3254
|
-
|
|
3291
|
+
l = { style: h, styleLocation: p };
|
|
3255
3292
|
}
|
|
3256
3293
|
var m = this.tryParseArgumentClose(i);
|
|
3257
3294
|
if (m.err)
|
|
3258
3295
|
return m;
|
|
3259
3296
|
var d = g(i, this.clonePosition());
|
|
3260
|
-
if (
|
|
3261
|
-
var
|
|
3297
|
+
if (l && dt(l?.style, "::", 0)) {
|
|
3298
|
+
var _ = $n(l.style.slice(2));
|
|
3262
3299
|
if (a === "number") {
|
|
3263
|
-
var
|
|
3264
|
-
return
|
|
3265
|
-
val: { type:
|
|
3300
|
+
var f = this.parseNumberSkeletonFromString(_, l.styleLocation);
|
|
3301
|
+
return f.err ? f : {
|
|
3302
|
+
val: { type: w.number, value: n, location: d, style: f.val },
|
|
3266
3303
|
err: null
|
|
3267
3304
|
};
|
|
3268
3305
|
} else {
|
|
3269
|
-
if (
|
|
3306
|
+
if (_.length === 0)
|
|
3270
3307
|
return this.error(b.EXPECT_DATE_TIME_SKELETON, d);
|
|
3271
|
-
var P =
|
|
3272
|
-
this.locale && (P =
|
|
3273
|
-
var
|
|
3274
|
-
type:
|
|
3308
|
+
var P = _;
|
|
3309
|
+
this.locale && (P = Cn(_, this.locale));
|
|
3310
|
+
var h = {
|
|
3311
|
+
type: q.dateTime,
|
|
3275
3312
|
pattern: P,
|
|
3276
|
-
location:
|
|
3277
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
3278
|
-
}, S = a === "date" ?
|
|
3313
|
+
location: l.styleLocation,
|
|
3314
|
+
parsedOptions: this.shouldParseSkeletons ? bn(P) : {}
|
|
3315
|
+
}, S = a === "date" ? w.date : w.time;
|
|
3279
3316
|
return {
|
|
3280
|
-
val: { type: S, value: n, location: d, style:
|
|
3317
|
+
val: { type: S, value: n, location: d, style: h },
|
|
3281
3318
|
err: null
|
|
3282
3319
|
};
|
|
3283
3320
|
}
|
|
3284
3321
|
}
|
|
3285
3322
|
return {
|
|
3286
3323
|
val: {
|
|
3287
|
-
type: a === "number" ?
|
|
3324
|
+
type: a === "number" ? w.number : a === "date" ? w.date : w.time,
|
|
3288
3325
|
value: n,
|
|
3289
3326
|
location: d,
|
|
3290
|
-
style: (o =
|
|
3327
|
+
style: (o = l?.style) !== null && o !== void 0 ? o : null
|
|
3291
3328
|
},
|
|
3292
3329
|
err: null
|
|
3293
3330
|
};
|
|
@@ -3295,19 +3332,19 @@ var Rn = (
|
|
|
3295
3332
|
case "plural":
|
|
3296
3333
|
case "selectordinal":
|
|
3297
3334
|
case "select": {
|
|
3298
|
-
var
|
|
3335
|
+
var A = this.clonePosition();
|
|
3299
3336
|
if (this.bumpSpace(), !this.bumpIf(","))
|
|
3300
|
-
return this.error(b.EXPECT_SELECT_ARGUMENT_OPTIONS, g(
|
|
3337
|
+
return this.error(b.EXPECT_SELECT_ARGUMENT_OPTIONS, g(A, x({}, A)));
|
|
3301
3338
|
this.bumpSpace();
|
|
3302
|
-
var H = this.parseIdentifierIfPossible(),
|
|
3339
|
+
var H = this.parseIdentifierIfPossible(), C = 0;
|
|
3303
3340
|
if (a !== "select" && H.value === "offset") {
|
|
3304
3341
|
if (!this.bumpIf(":"))
|
|
3305
3342
|
return this.error(b.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, g(this.clonePosition(), this.clonePosition()));
|
|
3306
3343
|
this.bumpSpace();
|
|
3307
|
-
var
|
|
3308
|
-
if (
|
|
3309
|
-
return
|
|
3310
|
-
this.bumpSpace(), H = this.parseIdentifierIfPossible(),
|
|
3344
|
+
var f = this.tryParseDecimalInteger(b.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, b.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);
|
|
3345
|
+
if (f.err)
|
|
3346
|
+
return f;
|
|
3347
|
+
this.bumpSpace(), H = this.parseIdentifierIfPossible(), C = f.val;
|
|
3311
3348
|
}
|
|
3312
3349
|
var T = this.tryParsePluralOrSelectOptions(t, a, r, H);
|
|
3313
3350
|
if (T.err)
|
|
@@ -3315,29 +3352,29 @@ var Rn = (
|
|
|
3315
3352
|
var m = this.tryParseArgumentClose(i);
|
|
3316
3353
|
if (m.err)
|
|
3317
3354
|
return m;
|
|
3318
|
-
var
|
|
3355
|
+
var y = g(i, this.clonePosition());
|
|
3319
3356
|
return a === "select" ? {
|
|
3320
3357
|
val: {
|
|
3321
|
-
type:
|
|
3358
|
+
type: w.select,
|
|
3322
3359
|
value: n,
|
|
3323
|
-
options:
|
|
3324
|
-
location:
|
|
3360
|
+
options: mt(T.val),
|
|
3361
|
+
location: y
|
|
3325
3362
|
},
|
|
3326
3363
|
err: null
|
|
3327
3364
|
} : {
|
|
3328
3365
|
val: {
|
|
3329
|
-
type:
|
|
3366
|
+
type: w.plural,
|
|
3330
3367
|
value: n,
|
|
3331
|
-
options:
|
|
3332
|
-
offset:
|
|
3368
|
+
options: mt(T.val),
|
|
3369
|
+
offset: C,
|
|
3333
3370
|
pluralType: a === "plural" ? "cardinal" : "ordinal",
|
|
3334
|
-
location:
|
|
3371
|
+
location: y
|
|
3335
3372
|
},
|
|
3336
3373
|
err: null
|
|
3337
3374
|
};
|
|
3338
3375
|
}
|
|
3339
3376
|
default:
|
|
3340
|
-
return this.error(b.INVALID_ARGUMENT_TYPE, g(s,
|
|
3377
|
+
return this.error(b.INVALID_ARGUMENT_TYPE, g(s, u));
|
|
3341
3378
|
}
|
|
3342
3379
|
}, e.prototype.tryParseArgumentClose = function(t) {
|
|
3343
3380
|
return this.isEOF() || this.char() !== 125 ? this.error(b.EXPECT_ARGUMENT_CLOSING_BRACE, g(t, this.clonePosition())) : (this.bump(), { val: !0, err: null });
|
|
@@ -3379,34 +3416,34 @@ var Rn = (
|
|
|
3379
3416
|
}, e.prototype.parseNumberSkeletonFromString = function(t, r) {
|
|
3380
3417
|
var n = [];
|
|
3381
3418
|
try {
|
|
3382
|
-
n =
|
|
3419
|
+
n = gn(t);
|
|
3383
3420
|
} catch {
|
|
3384
3421
|
return this.error(b.INVALID_NUMBER_SKELETON, r);
|
|
3385
3422
|
}
|
|
3386
3423
|
return {
|
|
3387
3424
|
val: {
|
|
3388
|
-
type:
|
|
3425
|
+
type: q.number,
|
|
3389
3426
|
tokens: n,
|
|
3390
3427
|
location: r,
|
|
3391
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
3428
|
+
parsedOptions: this.shouldParseSkeletons ? _n(n) : {}
|
|
3392
3429
|
},
|
|
3393
3430
|
err: null
|
|
3394
3431
|
};
|
|
3395
3432
|
}, e.prototype.tryParsePluralOrSelectOptions = function(t, r, n, i) {
|
|
3396
|
-
for (var o, s = !1, a = [],
|
|
3397
|
-
if (
|
|
3398
|
-
var
|
|
3433
|
+
for (var o, s = !1, a = [], u = /* @__PURE__ */ new Set(), l = i.value, c = i.location; ; ) {
|
|
3434
|
+
if (l.length === 0) {
|
|
3435
|
+
var f = this.clonePosition();
|
|
3399
3436
|
if (r !== "select" && this.bumpIf("=")) {
|
|
3400
|
-
var
|
|
3401
|
-
if (
|
|
3402
|
-
return
|
|
3403
|
-
c = g(
|
|
3437
|
+
var h = this.tryParseDecimalInteger(b.EXPECT_PLURAL_ARGUMENT_SELECTOR, b.INVALID_PLURAL_ARGUMENT_SELECTOR);
|
|
3438
|
+
if (h.err)
|
|
3439
|
+
return h;
|
|
3440
|
+
c = g(f, this.clonePosition()), l = this.message.slice(f.offset, this.offset());
|
|
3404
3441
|
} else
|
|
3405
3442
|
break;
|
|
3406
3443
|
}
|
|
3407
|
-
if (
|
|
3444
|
+
if (u.has(l))
|
|
3408
3445
|
return this.error(r === "select" ? b.DUPLICATE_SELECT_ARGUMENT_SELECTOR : b.DUPLICATE_PLURAL_ARGUMENT_SELECTOR, c);
|
|
3409
|
-
|
|
3446
|
+
l === "other" && (s = !0), this.bumpSpace();
|
|
3410
3447
|
var p = this.clonePosition();
|
|
3411
3448
|
if (!this.bumpIf("{"))
|
|
3412
3449
|
return this.error(r === "select" ? b.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT : b.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT, g(this.clonePosition(), this.clonePosition()));
|
|
@@ -3417,12 +3454,12 @@ var Rn = (
|
|
|
3417
3454
|
if (d.err)
|
|
3418
3455
|
return d;
|
|
3419
3456
|
a.push([
|
|
3420
|
-
|
|
3457
|
+
l,
|
|
3421
3458
|
{
|
|
3422
3459
|
value: m.val,
|
|
3423
3460
|
location: g(p, this.clonePosition())
|
|
3424
3461
|
}
|
|
3425
|
-
]),
|
|
3462
|
+
]), u.add(l), this.bumpSpace(), o = this.parseIdentifierIfPossible(), l = o.value, c = o.location;
|
|
3426
3463
|
}
|
|
3427
3464
|
return a.length === 0 ? this.error(r === "select" ? b.EXPECT_SELECT_ARGUMENT_SELECTOR : b.EXPECT_PLURAL_ARGUMENT_SELECTOR, g(this.clonePosition(), this.clonePosition())) : this.requiresOtherClause && !s ? this.error(b.MISSING_OTHER_CLAUSE, g(this.clonePosition(), this.clonePosition())) : { val: a, err: null };
|
|
3428
3465
|
}, e.prototype.tryParseDecimalInteger = function(t, r) {
|
|
@@ -3435,8 +3472,8 @@ var Rn = (
|
|
|
3435
3472
|
else
|
|
3436
3473
|
break;
|
|
3437
3474
|
}
|
|
3438
|
-
var
|
|
3439
|
-
return o ? (s *= n,
|
|
3475
|
+
var u = g(i, this.clonePosition());
|
|
3476
|
+
return o ? (s *= n, Nn(s) ? { val: s, err: null } : this.error(r, u)) : this.error(t, u);
|
|
3440
3477
|
}, e.prototype.offset = function() {
|
|
3441
3478
|
return this.position.offset;
|
|
3442
3479
|
}, e.prototype.isEOF = function() {
|
|
@@ -3451,7 +3488,7 @@ var Rn = (
|
|
|
3451
3488
|
var t = this.position.offset;
|
|
3452
3489
|
if (t >= this.message.length)
|
|
3453
3490
|
throw Error("out of bound");
|
|
3454
|
-
var r =
|
|
3491
|
+
var r = Qt(this.message, t);
|
|
3455
3492
|
if (r === void 0)
|
|
3456
3493
|
throw Error("Offset ".concat(t, " is at invalid UTF-16 code unit boundary"));
|
|
3457
3494
|
return r;
|
|
@@ -3470,7 +3507,7 @@ var Rn = (
|
|
|
3470
3507
|
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);
|
|
3471
3508
|
}
|
|
3472
3509
|
}, e.prototype.bumpIf = function(t) {
|
|
3473
|
-
if (
|
|
3510
|
+
if (dt(this.message, t, this.offset())) {
|
|
3474
3511
|
for (var r = 0; r < t.length; r++)
|
|
3475
3512
|
this.bump();
|
|
3476
3513
|
return !0;
|
|
@@ -3492,7 +3529,7 @@ var Rn = (
|
|
|
3492
3529
|
break;
|
|
3493
3530
|
}
|
|
3494
3531
|
}, e.prototype.bumpSpace = function() {
|
|
3495
|
-
for (; !this.isEOF() &&
|
|
3532
|
+
for (; !this.isEOF() && Jt(this.char()); )
|
|
3496
3533
|
this.bump();
|
|
3497
3534
|
}, e.prototype.peek = function() {
|
|
3498
3535
|
if (this.isEOF())
|
|
@@ -3502,46 +3539,47 @@ var Rn = (
|
|
|
3502
3539
|
}, e;
|
|
3503
3540
|
}()
|
|
3504
3541
|
);
|
|
3505
|
-
function
|
|
3542
|
+
function ze(e) {
|
|
3506
3543
|
return e >= 97 && e <= 122 || e >= 65 && e <= 90;
|
|
3507
3544
|
}
|
|
3508
|
-
function Dn(e) {
|
|
3509
|
-
return Ve(e) || e === 47;
|
|
3510
|
-
}
|
|
3511
3545
|
function Un(e) {
|
|
3546
|
+
return ze(e) || e === 47;
|
|
3547
|
+
}
|
|
3548
|
+
function Fn(e) {
|
|
3512
3549
|
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;
|
|
3513
3550
|
}
|
|
3514
|
-
function
|
|
3551
|
+
function Jt(e) {
|
|
3515
3552
|
return e >= 9 && e <= 13 || e === 32 || e === 133 || e >= 8206 && e <= 8207 || e === 8232 || e === 8233;
|
|
3516
3553
|
}
|
|
3517
|
-
function
|
|
3554
|
+
function Gn(e) {
|
|
3518
3555
|
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;
|
|
3519
3556
|
}
|
|
3520
|
-
function
|
|
3557
|
+
function Ve(e) {
|
|
3521
3558
|
e.forEach(function(t) {
|
|
3522
|
-
if (delete t.location,
|
|
3559
|
+
if (delete t.location, jt(t) || kt(t))
|
|
3523
3560
|
for (var r in t.options)
|
|
3524
|
-
delete t.options[r].location,
|
|
3525
|
-
else
|
|
3561
|
+
delete t.options[r].location, Ve(t.options[r].value);
|
|
3562
|
+
else
|
|
3563
|
+
Ut(t) && Vt(t.style) || (Ft(t) || Gt(t)) && Fe(t.style) ? delete t.style.location : zt(t) && Ve(t.children);
|
|
3526
3564
|
});
|
|
3527
3565
|
}
|
|
3528
|
-
function
|
|
3529
|
-
t === void 0 && (t = {}), t =
|
|
3530
|
-
var r = new
|
|
3566
|
+
function jn(e, t) {
|
|
3567
|
+
t === void 0 && (t = {}), t = x({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
|
|
3568
|
+
var r = new Dn(e, t).parse();
|
|
3531
3569
|
if (r.err) {
|
|
3532
3570
|
var n = SyntaxError(b[r.err.kind]);
|
|
3533
3571
|
throw n.location = r.err.location, n.originalMessage = r.err.message, n;
|
|
3534
3572
|
}
|
|
3535
|
-
return t?.captureLocation ||
|
|
3573
|
+
return t?.captureLocation || Ve(r.val), r.val;
|
|
3536
3574
|
}
|
|
3537
|
-
var
|
|
3575
|
+
var Q;
|
|
3538
3576
|
(function(e) {
|
|
3539
3577
|
e.MISSING_VALUE = "MISSING_VALUE", e.INVALID_VALUE = "INVALID_VALUE", e.MISSING_INTL_API = "MISSING_INTL_API";
|
|
3540
|
-
})(
|
|
3541
|
-
var
|
|
3578
|
+
})(Q || (Q = {}));
|
|
3579
|
+
var Ee = (
|
|
3542
3580
|
/** @class */
|
|
3543
3581
|
function(e) {
|
|
3544
|
-
|
|
3582
|
+
L(t, e);
|
|
3545
3583
|
function t(r, n, i) {
|
|
3546
3584
|
var o = e.call(this, r) || this;
|
|
3547
3585
|
return o.code = n, o.originalMessage = i, o;
|
|
@@ -3550,155 +3588,155 @@ var _e = (
|
|
|
3550
3588
|
return "[formatjs Error: ".concat(this.code, "] ").concat(this.message);
|
|
3551
3589
|
}, t;
|
|
3552
3590
|
}(Error)
|
|
3553
|
-
),
|
|
3591
|
+
), vt = (
|
|
3554
3592
|
/** @class */
|
|
3555
3593
|
function(e) {
|
|
3556
|
-
|
|
3594
|
+
L(t, e);
|
|
3557
3595
|
function t(r, n, i, o) {
|
|
3558
|
-
return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'),
|
|
3596
|
+
return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'), Q.INVALID_VALUE, o) || this;
|
|
3559
3597
|
}
|
|
3560
3598
|
return t;
|
|
3561
|
-
}(
|
|
3562
|
-
),
|
|
3599
|
+
}(Ee)
|
|
3600
|
+
), kn = (
|
|
3563
3601
|
/** @class */
|
|
3564
3602
|
function(e) {
|
|
3565
|
-
|
|
3603
|
+
L(t, e);
|
|
3566
3604
|
function t(r, n, i) {
|
|
3567
|
-
return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n),
|
|
3605
|
+
return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n), Q.INVALID_VALUE, i) || this;
|
|
3568
3606
|
}
|
|
3569
3607
|
return t;
|
|
3570
|
-
}(
|
|
3571
|
-
),
|
|
3608
|
+
}(Ee)
|
|
3609
|
+
), zn = (
|
|
3572
3610
|
/** @class */
|
|
3573
3611
|
function(e) {
|
|
3574
|
-
|
|
3612
|
+
L(t, e);
|
|
3575
3613
|
function t(r, n) {
|
|
3576
|
-
return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'),
|
|
3614
|
+
return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'), Q.MISSING_VALUE, n) || this;
|
|
3577
3615
|
}
|
|
3578
3616
|
return t;
|
|
3579
|
-
}(
|
|
3617
|
+
}(Ee)
|
|
3580
3618
|
), M;
|
|
3581
3619
|
(function(e) {
|
|
3582
3620
|
e[e.literal = 0] = "literal", e[e.object = 1] = "object";
|
|
3583
3621
|
})(M || (M = {}));
|
|
3584
|
-
function
|
|
3622
|
+
function Vn(e) {
|
|
3585
3623
|
return e.length < 2 ? e : e.reduce(function(t, r) {
|
|
3586
3624
|
var n = t[t.length - 1];
|
|
3587
3625
|
return !n || n.type !== M.literal || r.type !== M.literal ? t.push(r) : n.value += r.value, t;
|
|
3588
3626
|
}, []);
|
|
3589
3627
|
}
|
|
3590
|
-
function
|
|
3628
|
+
function Wn(e) {
|
|
3591
3629
|
return typeof e == "function";
|
|
3592
3630
|
}
|
|
3593
|
-
function
|
|
3594
|
-
if (e.length === 1 &&
|
|
3631
|
+
function pe(e, t, r, n, i, o, s) {
|
|
3632
|
+
if (e.length === 1 && ct(e[0]))
|
|
3595
3633
|
return [
|
|
3596
3634
|
{
|
|
3597
3635
|
type: M.literal,
|
|
3598
3636
|
value: e[0].value
|
|
3599
3637
|
}
|
|
3600
3638
|
];
|
|
3601
|
-
for (var a = [],
|
|
3602
|
-
var c = u
|
|
3603
|
-
if (
|
|
3639
|
+
for (var a = [], u = 0, l = e; u < l.length; u++) {
|
|
3640
|
+
var c = l[u];
|
|
3641
|
+
if (ct(c)) {
|
|
3604
3642
|
a.push({
|
|
3605
3643
|
type: M.literal,
|
|
3606
3644
|
value: c.value
|
|
3607
3645
|
});
|
|
3608
3646
|
continue;
|
|
3609
3647
|
}
|
|
3610
|
-
if (
|
|
3648
|
+
if (dn(c)) {
|
|
3611
3649
|
typeof o == "number" && a.push({
|
|
3612
3650
|
type: M.literal,
|
|
3613
3651
|
value: r.getNumberFormat(t).format(o)
|
|
3614
3652
|
});
|
|
3615
3653
|
continue;
|
|
3616
3654
|
}
|
|
3617
|
-
var
|
|
3618
|
-
if (!(i &&
|
|
3619
|
-
throw new
|
|
3620
|
-
var
|
|
3621
|
-
if (
|
|
3622
|
-
(!
|
|
3623
|
-
type: typeof
|
|
3624
|
-
value:
|
|
3655
|
+
var f = c.value;
|
|
3656
|
+
if (!(i && f in i))
|
|
3657
|
+
throw new zn(f, s);
|
|
3658
|
+
var h = i[f];
|
|
3659
|
+
if (pn(c)) {
|
|
3660
|
+
(!h || typeof h == "string" || typeof h == "number") && (h = typeof h == "string" || typeof h == "number" ? String(h) : ""), a.push({
|
|
3661
|
+
type: typeof h == "string" ? M.literal : M.object,
|
|
3662
|
+
value: h
|
|
3625
3663
|
});
|
|
3626
3664
|
continue;
|
|
3627
3665
|
}
|
|
3628
|
-
if (
|
|
3629
|
-
var p = typeof c.style == "string" ? n.date[c.style] :
|
|
3666
|
+
if (Ft(c)) {
|
|
3667
|
+
var p = typeof c.style == "string" ? n.date[c.style] : Fe(c.style) ? c.style.parsedOptions : void 0;
|
|
3630
3668
|
a.push({
|
|
3631
3669
|
type: M.literal,
|
|
3632
|
-
value: r.getDateTimeFormat(t, p).format(
|
|
3670
|
+
value: r.getDateTimeFormat(t, p).format(h)
|
|
3633
3671
|
});
|
|
3634
3672
|
continue;
|
|
3635
3673
|
}
|
|
3636
|
-
if (
|
|
3637
|
-
var p = typeof c.style == "string" ? n.time[c.style] :
|
|
3674
|
+
if (Gt(c)) {
|
|
3675
|
+
var p = typeof c.style == "string" ? n.time[c.style] : Fe(c.style) ? c.style.parsedOptions : n.time.medium;
|
|
3638
3676
|
a.push({
|
|
3639
3677
|
type: M.literal,
|
|
3640
|
-
value: r.getDateTimeFormat(t, p).format(
|
|
3678
|
+
value: r.getDateTimeFormat(t, p).format(h)
|
|
3641
3679
|
});
|
|
3642
3680
|
continue;
|
|
3643
3681
|
}
|
|
3644
|
-
if (
|
|
3645
|
-
var p = typeof c.style == "string" ? n.number[c.style] :
|
|
3646
|
-
p && p.scale && (
|
|
3682
|
+
if (Ut(c)) {
|
|
3683
|
+
var p = typeof c.style == "string" ? n.number[c.style] : Vt(c.style) ? c.style.parsedOptions : void 0;
|
|
3684
|
+
p && p.scale && (h = h * (p.scale || 1)), a.push({
|
|
3647
3685
|
type: M.literal,
|
|
3648
|
-
value: r.getNumberFormat(t, p).format(
|
|
3686
|
+
value: r.getNumberFormat(t, p).format(h)
|
|
3649
3687
|
});
|
|
3650
3688
|
continue;
|
|
3651
3689
|
}
|
|
3652
|
-
if (
|
|
3653
|
-
var m = c.children, d = c.value,
|
|
3654
|
-
if (!
|
|
3655
|
-
throw new
|
|
3656
|
-
var P =
|
|
3657
|
-
return
|
|
3690
|
+
if (zt(c)) {
|
|
3691
|
+
var m = c.children, d = c.value, _ = i[d];
|
|
3692
|
+
if (!Wn(_))
|
|
3693
|
+
throw new kn(d, "function", s);
|
|
3694
|
+
var P = pe(m, t, r, n, i, o), S = _(P.map(function(C) {
|
|
3695
|
+
return C.value;
|
|
3658
3696
|
}));
|
|
3659
|
-
Array.isArray(S) || (S = [S]), a.push.apply(a, S.map(function(
|
|
3697
|
+
Array.isArray(S) || (S = [S]), a.push.apply(a, S.map(function(C) {
|
|
3660
3698
|
return {
|
|
3661
|
-
type: typeof
|
|
3662
|
-
value:
|
|
3699
|
+
type: typeof C == "string" ? M.literal : M.object,
|
|
3700
|
+
value: C
|
|
3663
3701
|
};
|
|
3664
3702
|
}));
|
|
3665
3703
|
}
|
|
3666
|
-
if (
|
|
3667
|
-
var
|
|
3668
|
-
if (!
|
|
3669
|
-
throw new
|
|
3670
|
-
a.push.apply(a,
|
|
3704
|
+
if (jt(c)) {
|
|
3705
|
+
var A = c.options[h] || c.options.other;
|
|
3706
|
+
if (!A)
|
|
3707
|
+
throw new vt(c.value, h, Object.keys(c.options), s);
|
|
3708
|
+
a.push.apply(a, pe(A.value, t, r, n, i));
|
|
3671
3709
|
continue;
|
|
3672
3710
|
}
|
|
3673
|
-
if (
|
|
3674
|
-
var
|
|
3675
|
-
if (!
|
|
3711
|
+
if (kt(c)) {
|
|
3712
|
+
var A = c.options["=".concat(h)];
|
|
3713
|
+
if (!A) {
|
|
3676
3714
|
if (!Intl.PluralRules)
|
|
3677
|
-
throw new
|
|
3715
|
+
throw new Ee(`Intl.PluralRules is not available in this environment.
|
|
3678
3716
|
Try polyfilling it using "@formatjs/intl-pluralrules"
|
|
3679
|
-
`,
|
|
3680
|
-
var H = r.getPluralRules(t, { type: c.pluralType }).select(
|
|
3681
|
-
|
|
3717
|
+
`, Q.MISSING_INTL_API, s);
|
|
3718
|
+
var H = r.getPluralRules(t, { type: c.pluralType }).select(h - (c.offset || 0));
|
|
3719
|
+
A = c.options[H] || c.options.other;
|
|
3682
3720
|
}
|
|
3683
|
-
if (!
|
|
3684
|
-
throw new
|
|
3685
|
-
a.push.apply(a,
|
|
3721
|
+
if (!A)
|
|
3722
|
+
throw new vt(c.value, h, Object.keys(c.options), s);
|
|
3723
|
+
a.push.apply(a, pe(A.value, t, r, n, i, h - (c.offset || 0)));
|
|
3686
3724
|
continue;
|
|
3687
3725
|
}
|
|
3688
3726
|
}
|
|
3689
|
-
return
|
|
3727
|
+
return Vn(a);
|
|
3690
3728
|
}
|
|
3691
|
-
function
|
|
3692
|
-
return t ?
|
|
3693
|
-
return r[n] =
|
|
3729
|
+
function Xn(e, t) {
|
|
3730
|
+
return t ? x(x(x({}, e || {}), t || {}), Object.keys(e).reduce(function(r, n) {
|
|
3731
|
+
return r[n] = x(x({}, e[n]), t[n] || {}), r;
|
|
3694
3732
|
}, {})) : e;
|
|
3695
3733
|
}
|
|
3696
|
-
function
|
|
3734
|
+
function Zn(e, t) {
|
|
3697
3735
|
return t ? Object.keys(e).reduce(function(r, n) {
|
|
3698
|
-
return r[n] =
|
|
3699
|
-
},
|
|
3736
|
+
return r[n] = Xn(e[n], t[n]), r;
|
|
3737
|
+
}, x({}, e)) : e;
|
|
3700
3738
|
}
|
|
3701
|
-
function
|
|
3739
|
+
function Me(e) {
|
|
3702
3740
|
return {
|
|
3703
3741
|
create: function() {
|
|
3704
3742
|
return {
|
|
@@ -3712,39 +3750,39 @@ function Pe(e) {
|
|
|
3712
3750
|
}
|
|
3713
3751
|
};
|
|
3714
3752
|
}
|
|
3715
|
-
function
|
|
3753
|
+
function qn(e) {
|
|
3716
3754
|
return e === void 0 && (e = {
|
|
3717
3755
|
number: {},
|
|
3718
3756
|
dateTime: {},
|
|
3719
3757
|
pluralRules: {}
|
|
3720
3758
|
}), {
|
|
3721
|
-
getNumberFormat:
|
|
3759
|
+
getNumberFormat: Te(function() {
|
|
3722
3760
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3723
3761
|
r[n] = arguments[n];
|
|
3724
|
-
return new ((t = Intl.NumberFormat).bind.apply(t,
|
|
3762
|
+
return new ((t = Intl.NumberFormat).bind.apply(t, X([void 0], r, !1)))();
|
|
3725
3763
|
}, {
|
|
3726
|
-
cache:
|
|
3727
|
-
strategy:
|
|
3764
|
+
cache: Me(e.number),
|
|
3765
|
+
strategy: Be.variadic
|
|
3728
3766
|
}),
|
|
3729
|
-
getDateTimeFormat:
|
|
3767
|
+
getDateTimeFormat: Te(function() {
|
|
3730
3768
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3731
3769
|
r[n] = arguments[n];
|
|
3732
|
-
return new ((t = Intl.DateTimeFormat).bind.apply(t,
|
|
3770
|
+
return new ((t = Intl.DateTimeFormat).bind.apply(t, X([void 0], r, !1)))();
|
|
3733
3771
|
}, {
|
|
3734
|
-
cache:
|
|
3735
|
-
strategy:
|
|
3772
|
+
cache: Me(e.dateTime),
|
|
3773
|
+
strategy: Be.variadic
|
|
3736
3774
|
}),
|
|
3737
|
-
getPluralRules:
|
|
3775
|
+
getPluralRules: Te(function() {
|
|
3738
3776
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3739
3777
|
r[n] = arguments[n];
|
|
3740
|
-
return new ((t = Intl.PluralRules).bind.apply(t,
|
|
3778
|
+
return new ((t = Intl.PluralRules).bind.apply(t, X([void 0], r, !1)))();
|
|
3741
3779
|
}, {
|
|
3742
|
-
cache:
|
|
3743
|
-
strategy:
|
|
3780
|
+
cache: Me(e.pluralRules),
|
|
3781
|
+
strategy: Be.variadic
|
|
3744
3782
|
})
|
|
3745
3783
|
};
|
|
3746
3784
|
}
|
|
3747
|
-
var
|
|
3785
|
+
var Qn = (
|
|
3748
3786
|
/** @class */
|
|
3749
3787
|
function() {
|
|
3750
3788
|
function e(t, r, n, i) {
|
|
@@ -3754,20 +3792,20 @@ var qn = (
|
|
|
3754
3792
|
number: {},
|
|
3755
3793
|
dateTime: {},
|
|
3756
3794
|
pluralRules: {}
|
|
3757
|
-
}, this.format = function(
|
|
3758
|
-
var
|
|
3759
|
-
if (
|
|
3760
|
-
return
|
|
3761
|
-
var c =
|
|
3762
|
-
return !
|
|
3795
|
+
}, this.format = function(u) {
|
|
3796
|
+
var l = o.formatToParts(u);
|
|
3797
|
+
if (l.length === 1)
|
|
3798
|
+
return l[0].value;
|
|
3799
|
+
var c = l.reduce(function(f, h) {
|
|
3800
|
+
return !f.length || h.type !== M.literal || typeof f[f.length - 1] != "string" ? f.push(h.value) : f[f.length - 1] += h.value, f;
|
|
3763
3801
|
}, []);
|
|
3764
3802
|
return c.length <= 1 ? c[0] || "" : c;
|
|
3765
|
-
}, this.formatToParts = function(
|
|
3766
|
-
return
|
|
3803
|
+
}, this.formatToParts = function(u) {
|
|
3804
|
+
return pe(o.ast, o.locales, o.formatters, o.formats, u, void 0, o.message);
|
|
3767
3805
|
}, this.resolvedOptions = function() {
|
|
3768
|
-
var
|
|
3806
|
+
var u;
|
|
3769
3807
|
return {
|
|
3770
|
-
locale: ((
|
|
3808
|
+
locale: ((u = o.resolvedLocale) === null || u === void 0 ? void 0 : u.toString()) || Intl.NumberFormat.supportedLocalesOf(o.locales)[0]
|
|
3771
3809
|
};
|
|
3772
3810
|
}, this.getAst = function() {
|
|
3773
3811
|
return o.ast;
|
|
@@ -3776,13 +3814,13 @@ var qn = (
|
|
|
3776
3814
|
throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");
|
|
3777
3815
|
var s = i || {};
|
|
3778
3816
|
s.formatters;
|
|
3779
|
-
var a =
|
|
3780
|
-
this.ast = e.__parse(t,
|
|
3817
|
+
var a = Br(s, ["formatters"]);
|
|
3818
|
+
this.ast = e.__parse(t, x(x({}, a), { locale: this.resolvedLocale }));
|
|
3781
3819
|
} else
|
|
3782
3820
|
this.ast = t;
|
|
3783
3821
|
if (!Array.isArray(this.ast))
|
|
3784
3822
|
throw new TypeError("A message must be provided as a String or AST.");
|
|
3785
|
-
this.formats =
|
|
3823
|
+
this.formats = Zn(e.formats, n), this.formatters = i && i.formatters || qn(this.formatterCache);
|
|
3786
3824
|
}
|
|
3787
3825
|
return Object.defineProperty(e, "defaultLocale", {
|
|
3788
3826
|
get: function() {
|
|
@@ -3795,7 +3833,7 @@ var qn = (
|
|
|
3795
3833
|
var r = Intl.NumberFormat.supportedLocalesOf(t);
|
|
3796
3834
|
return r.length > 0 ? new Intl.Locale(r[0]) : new Intl.Locale(typeof t == "string" ? t : t[0]);
|
|
3797
3835
|
}
|
|
3798
|
-
}, e.__parse =
|
|
3836
|
+
}, e.__parse = jn, e.formats = {
|
|
3799
3837
|
number: {
|
|
3800
3838
|
integer: {
|
|
3801
3839
|
maximumFractionDigits: 0
|
|
@@ -3856,7 +3894,7 @@ var qn = (
|
|
|
3856
3894
|
}, e;
|
|
3857
3895
|
}()
|
|
3858
3896
|
);
|
|
3859
|
-
function
|
|
3897
|
+
function Yn(e, t) {
|
|
3860
3898
|
if (t == null)
|
|
3861
3899
|
return;
|
|
3862
3900
|
if (t in e)
|
|
@@ -3877,92 +3915,92 @@ function Qn(e, t) {
|
|
|
3877
3915
|
n = void 0;
|
|
3878
3916
|
return n;
|
|
3879
3917
|
}
|
|
3880
|
-
const
|
|
3918
|
+
const $ = {}, Jn = (e, t, r) => r && (t in $ || ($[t] = {}), e in $[t] || ($[t][e] = r), r), Kt = (e, t) => {
|
|
3881
3919
|
if (t == null)
|
|
3882
3920
|
return;
|
|
3883
|
-
if (t in
|
|
3884
|
-
return
|
|
3885
|
-
const r =
|
|
3921
|
+
if (t in $ && e in $[t])
|
|
3922
|
+
return $[t][e];
|
|
3923
|
+
const r = _e(t);
|
|
3886
3924
|
for (let n = 0; n < r.length; n++) {
|
|
3887
|
-
const i = r[n], o =
|
|
3925
|
+
const i = r[n], o = ei(i, e);
|
|
3888
3926
|
if (o)
|
|
3889
|
-
return
|
|
3927
|
+
return Jn(e, t, o);
|
|
3890
3928
|
}
|
|
3891
3929
|
};
|
|
3892
|
-
let
|
|
3893
|
-
const
|
|
3894
|
-
function
|
|
3895
|
-
return
|
|
3930
|
+
let Ye;
|
|
3931
|
+
const ue = xe({});
|
|
3932
|
+
function Kn(e) {
|
|
3933
|
+
return Ye[e] || null;
|
|
3896
3934
|
}
|
|
3897
|
-
function
|
|
3898
|
-
return e in
|
|
3935
|
+
function er(e) {
|
|
3936
|
+
return e in Ye;
|
|
3899
3937
|
}
|
|
3900
|
-
function
|
|
3901
|
-
if (!
|
|
3938
|
+
function ei(e, t) {
|
|
3939
|
+
if (!er(e))
|
|
3902
3940
|
return null;
|
|
3903
|
-
const r =
|
|
3904
|
-
return
|
|
3941
|
+
const r = Kn(e);
|
|
3942
|
+
return Yn(r, t);
|
|
3905
3943
|
}
|
|
3906
|
-
function
|
|
3944
|
+
function ti(e) {
|
|
3907
3945
|
if (e == null)
|
|
3908
3946
|
return;
|
|
3909
|
-
const t =
|
|
3947
|
+
const t = _e(e);
|
|
3910
3948
|
for (let r = 0; r < t.length; r++) {
|
|
3911
3949
|
const n = t[r];
|
|
3912
|
-
if (
|
|
3950
|
+
if (er(n))
|
|
3913
3951
|
return n;
|
|
3914
3952
|
}
|
|
3915
3953
|
}
|
|
3916
|
-
function
|
|
3917
|
-
delete
|
|
3954
|
+
function tr(e, ...t) {
|
|
3955
|
+
delete $[e], ue.update((r) => (r[e] = sn.all([r[e] || {}, ...t]), r));
|
|
3918
3956
|
}
|
|
3919
|
-
|
|
3920
|
-
[
|
|
3957
|
+
K(
|
|
3958
|
+
[ue],
|
|
3921
3959
|
([e]) => Object.keys(e)
|
|
3922
3960
|
);
|
|
3923
|
-
|
|
3924
|
-
const
|
|
3925
|
-
function
|
|
3926
|
-
|
|
3961
|
+
ue.subscribe((e) => Ye = e);
|
|
3962
|
+
const de = {};
|
|
3963
|
+
function ri(e, t) {
|
|
3964
|
+
de[e].delete(t), de[e].size === 0 && delete de[e];
|
|
3927
3965
|
}
|
|
3928
|
-
function
|
|
3929
|
-
return
|
|
3966
|
+
function rr(e) {
|
|
3967
|
+
return de[e];
|
|
3930
3968
|
}
|
|
3931
|
-
function
|
|
3932
|
-
return
|
|
3933
|
-
const r =
|
|
3969
|
+
function ni(e) {
|
|
3970
|
+
return _e(e).map((t) => {
|
|
3971
|
+
const r = rr(t);
|
|
3934
3972
|
return [t, r ? [...r] : []];
|
|
3935
3973
|
}).filter(([, t]) => t.length > 0);
|
|
3936
3974
|
}
|
|
3937
|
-
function
|
|
3938
|
-
return e == null ? !1 :
|
|
3975
|
+
function We(e) {
|
|
3976
|
+
return e == null ? !1 : _e(e).some(
|
|
3939
3977
|
(t) => {
|
|
3940
3978
|
var r;
|
|
3941
|
-
return (r =
|
|
3979
|
+
return (r = rr(t)) == null ? void 0 : r.size;
|
|
3942
3980
|
}
|
|
3943
3981
|
);
|
|
3944
3982
|
}
|
|
3945
|
-
function
|
|
3983
|
+
function ii(e, t) {
|
|
3946
3984
|
return Promise.all(
|
|
3947
|
-
t.map((n) => (
|
|
3948
|
-
).then((n) =>
|
|
3949
|
-
}
|
|
3950
|
-
const
|
|
3951
|
-
function
|
|
3952
|
-
if (!
|
|
3953
|
-
return e in
|
|
3954
|
-
const t =
|
|
3955
|
-
return
|
|
3985
|
+
t.map((n) => (ri(e, n), n().then((i) => i.default || i)))
|
|
3986
|
+
).then((n) => tr(e, ...n));
|
|
3987
|
+
}
|
|
3988
|
+
const re = {};
|
|
3989
|
+
function nr(e) {
|
|
3990
|
+
if (!We(e))
|
|
3991
|
+
return e in re ? re[e] : Promise.resolve();
|
|
3992
|
+
const t = ni(e);
|
|
3993
|
+
return re[e] = Promise.all(
|
|
3956
3994
|
t.map(
|
|
3957
|
-
([r, n]) =>
|
|
3995
|
+
([r, n]) => ii(r, n)
|
|
3958
3996
|
)
|
|
3959
3997
|
).then(() => {
|
|
3960
|
-
if (
|
|
3961
|
-
return
|
|
3962
|
-
delete
|
|
3963
|
-
}),
|
|
3998
|
+
if (We(e))
|
|
3999
|
+
return nr(e);
|
|
4000
|
+
delete re[e];
|
|
4001
|
+
}), re[e];
|
|
3964
4002
|
}
|
|
3965
|
-
const
|
|
4003
|
+
const oi = {
|
|
3966
4004
|
number: {
|
|
3967
4005
|
scientific: { notation: "scientific" },
|
|
3968
4006
|
engineering: { notation: "engineering" },
|
|
@@ -3991,180 +4029,180 @@ const ii = {
|
|
|
3991
4029
|
timeZoneName: "short"
|
|
3992
4030
|
}
|
|
3993
4031
|
}
|
|
3994
|
-
},
|
|
4032
|
+
}, si = {
|
|
3995
4033
|
fallbackLocale: null,
|
|
3996
4034
|
loadingDelay: 200,
|
|
3997
|
-
formats:
|
|
4035
|
+
formats: oi,
|
|
3998
4036
|
warnOnMissingMessages: !0,
|
|
3999
4037
|
handleMissingMessage: void 0,
|
|
4000
4038
|
ignoreTag: !0
|
|
4001
|
-
},
|
|
4002
|
-
function
|
|
4003
|
-
return
|
|
4039
|
+
}, ai = si;
|
|
4040
|
+
function Y() {
|
|
4041
|
+
return ai;
|
|
4004
4042
|
}
|
|
4005
|
-
const
|
|
4006
|
-
var
|
|
4043
|
+
const Pe = xe(!1);
|
|
4044
|
+
var ui = Object.defineProperty, li = Object.defineProperties, ci = Object.getOwnPropertyDescriptors, gt = Object.getOwnPropertySymbols, hi = Object.prototype.hasOwnProperty, fi = Object.prototype.propertyIsEnumerable, yt = (e, t, r) => t in e ? ui(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, pi = (e, t) => {
|
|
4007
4045
|
for (var r in t || (t = {}))
|
|
4008
|
-
|
|
4009
|
-
if (
|
|
4010
|
-
for (var r of
|
|
4011
|
-
|
|
4046
|
+
hi.call(t, r) && yt(e, r, t[r]);
|
|
4047
|
+
if (gt)
|
|
4048
|
+
for (var r of gt(t))
|
|
4049
|
+
fi.call(t, r) && yt(e, r, t[r]);
|
|
4012
4050
|
return e;
|
|
4013
|
-
},
|
|
4014
|
-
let
|
|
4015
|
-
const
|
|
4016
|
-
function
|
|
4051
|
+
}, di = (e, t) => li(e, ci(t));
|
|
4052
|
+
let Xe;
|
|
4053
|
+
const be = xe(null);
|
|
4054
|
+
function xt(e) {
|
|
4017
4055
|
return e.split("-").map((t, r, n) => n.slice(0, r + 1).join("-")).reverse();
|
|
4018
4056
|
}
|
|
4019
|
-
function
|
|
4020
|
-
const r =
|
|
4021
|
-
return t ? [.../* @__PURE__ */ new Set([...r, ...
|
|
4057
|
+
function _e(e, t = Y().fallbackLocale) {
|
|
4058
|
+
const r = xt(e);
|
|
4059
|
+
return t ? [.../* @__PURE__ */ new Set([...r, ...xt(t)])] : r;
|
|
4022
4060
|
}
|
|
4023
|
-
function
|
|
4024
|
-
return
|
|
4061
|
+
function F() {
|
|
4062
|
+
return Xe ?? void 0;
|
|
4025
4063
|
}
|
|
4026
|
-
|
|
4027
|
-
|
|
4064
|
+
be.subscribe((e) => {
|
|
4065
|
+
Xe = e ?? void 0, typeof window < "u" && e != null && document.documentElement.setAttribute("lang", e);
|
|
4028
4066
|
});
|
|
4029
|
-
const
|
|
4030
|
-
if (e &&
|
|
4031
|
-
const { loadingDelay: t } =
|
|
4067
|
+
const mi = (e) => {
|
|
4068
|
+
if (e && ti(e) && We(e)) {
|
|
4069
|
+
const { loadingDelay: t } = Y();
|
|
4032
4070
|
let r;
|
|
4033
|
-
return typeof window < "u" &&
|
|
4034
|
-
() =>
|
|
4071
|
+
return typeof window < "u" && F() != null && t ? r = window.setTimeout(
|
|
4072
|
+
() => Pe.set(!0),
|
|
4035
4073
|
t
|
|
4036
|
-
) :
|
|
4037
|
-
|
|
4074
|
+
) : Pe.set(!0), nr(e).then(() => {
|
|
4075
|
+
be.set(e);
|
|
4038
4076
|
}).finally(() => {
|
|
4039
|
-
clearTimeout(r),
|
|
4077
|
+
clearTimeout(r), Pe.set(!1);
|
|
4040
4078
|
});
|
|
4041
4079
|
}
|
|
4042
|
-
return
|
|
4043
|
-
},
|
|
4044
|
-
set:
|
|
4045
|
-
}),
|
|
4080
|
+
return be.set(e);
|
|
4081
|
+
}, ee = di(pi({}, be), {
|
|
4082
|
+
set: mi
|
|
4083
|
+
}), Ce = (e) => {
|
|
4046
4084
|
const t = /* @__PURE__ */ Object.create(null);
|
|
4047
4085
|
return (n) => {
|
|
4048
4086
|
const i = JSON.stringify(n);
|
|
4049
4087
|
return i in t ? t[i] : t[i] = e(n);
|
|
4050
4088
|
};
|
|
4051
4089
|
};
|
|
4052
|
-
var
|
|
4090
|
+
var bi = Object.defineProperty, ve = Object.getOwnPropertySymbols, ir = Object.prototype.hasOwnProperty, or = Object.prototype.propertyIsEnumerable, Et = (e, t, r) => t in e ? bi(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Je = (e, t) => {
|
|
4053
4091
|
for (var r in t || (t = {}))
|
|
4054
|
-
|
|
4055
|
-
if (
|
|
4056
|
-
for (var r of
|
|
4057
|
-
|
|
4092
|
+
ir.call(t, r) && Et(e, r, t[r]);
|
|
4093
|
+
if (ve)
|
|
4094
|
+
for (var r of ve(t))
|
|
4095
|
+
or.call(t, r) && Et(e, r, t[r]);
|
|
4058
4096
|
return e;
|
|
4059
|
-
},
|
|
4097
|
+
}, te = (e, t) => {
|
|
4060
4098
|
var r = {};
|
|
4061
4099
|
for (var n in e)
|
|
4062
|
-
|
|
4063
|
-
if (e != null &&
|
|
4064
|
-
for (var n of
|
|
4065
|
-
t.indexOf(n) < 0 &&
|
|
4100
|
+
ir.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
4101
|
+
if (e != null && ve)
|
|
4102
|
+
for (var n of ve(e))
|
|
4103
|
+
t.indexOf(n) < 0 && or.call(e, n) && (r[n] = e[n]);
|
|
4066
4104
|
return r;
|
|
4067
4105
|
};
|
|
4068
|
-
const
|
|
4069
|
-
const { formats: r } =
|
|
4106
|
+
const se = (e, t) => {
|
|
4107
|
+
const { formats: r } = Y();
|
|
4070
4108
|
if (e in r && t in r[e])
|
|
4071
4109
|
return r[e][t];
|
|
4072
4110
|
throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`);
|
|
4073
|
-
},
|
|
4111
|
+
}, vi = Ce(
|
|
4074
4112
|
(e) => {
|
|
4075
|
-
var t = e, { locale: r, format: n } = t, i =
|
|
4113
|
+
var t = e, { locale: r, format: n } = t, i = te(t, ["locale", "format"]);
|
|
4076
4114
|
if (r == null)
|
|
4077
4115
|
throw new Error('[svelte-i18n] A "locale" must be set to format numbers');
|
|
4078
|
-
return n && (i =
|
|
4116
|
+
return n && (i = se("number", n)), new Intl.NumberFormat(r, i);
|
|
4079
4117
|
}
|
|
4080
|
-
),
|
|
4118
|
+
), gi = Ce(
|
|
4081
4119
|
(e) => {
|
|
4082
|
-
var t = e, { locale: r, format: n } = t, i =
|
|
4120
|
+
var t = e, { locale: r, format: n } = t, i = te(t, ["locale", "format"]);
|
|
4083
4121
|
if (r == null)
|
|
4084
4122
|
throw new Error('[svelte-i18n] A "locale" must be set to format dates');
|
|
4085
|
-
return n ? i =
|
|
4123
|
+
return n ? i = se("date", n) : Object.keys(i).length === 0 && (i = se("date", "short")), new Intl.DateTimeFormat(r, i);
|
|
4086
4124
|
}
|
|
4087
|
-
),
|
|
4125
|
+
), yi = Ce(
|
|
4088
4126
|
(e) => {
|
|
4089
|
-
var t = e, { locale: r, format: n } = t, i =
|
|
4127
|
+
var t = e, { locale: r, format: n } = t, i = te(t, ["locale", "format"]);
|
|
4090
4128
|
if (r == null)
|
|
4091
4129
|
throw new Error(
|
|
4092
4130
|
'[svelte-i18n] A "locale" must be set to format time values'
|
|
4093
4131
|
);
|
|
4094
|
-
return n ? i =
|
|
4132
|
+
return n ? i = se("time", n) : Object.keys(i).length === 0 && (i = se("time", "short")), new Intl.DateTimeFormat(r, i);
|
|
4095
4133
|
}
|
|
4096
|
-
),
|
|
4134
|
+
), xi = (e = {}) => {
|
|
4097
4135
|
var t = e, {
|
|
4098
|
-
locale: r =
|
|
4099
|
-
} = t, n =
|
|
4136
|
+
locale: r = F()
|
|
4137
|
+
} = t, n = te(t, [
|
|
4100
4138
|
"locale"
|
|
4101
4139
|
]);
|
|
4102
|
-
return
|
|
4103
|
-
},
|
|
4140
|
+
return vi(Je({ locale: r }, n));
|
|
4141
|
+
}, Ei = (e = {}) => {
|
|
4104
4142
|
var t = e, {
|
|
4105
|
-
locale: r =
|
|
4106
|
-
} = t, n =
|
|
4143
|
+
locale: r = F()
|
|
4144
|
+
} = t, n = te(t, [
|
|
4107
4145
|
"locale"
|
|
4108
4146
|
]);
|
|
4109
|
-
return
|
|
4110
|
-
},
|
|
4147
|
+
return gi(Je({ locale: r }, n));
|
|
4148
|
+
}, _i = (e = {}) => {
|
|
4111
4149
|
var t = e, {
|
|
4112
|
-
locale: r =
|
|
4113
|
-
} = t, n =
|
|
4150
|
+
locale: r = F()
|
|
4151
|
+
} = t, n = te(t, [
|
|
4114
4152
|
"locale"
|
|
4115
4153
|
]);
|
|
4116
|
-
return
|
|
4117
|
-
},
|
|
4154
|
+
return yi(Je({ locale: r }, n));
|
|
4155
|
+
}, Ci = Ce(
|
|
4118
4156
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
4119
|
-
(e, t =
|
|
4120
|
-
ignoreTag:
|
|
4157
|
+
(e, t = F()) => new Qn(e, t, Y().formats, {
|
|
4158
|
+
ignoreTag: Y().ignoreTag
|
|
4121
4159
|
})
|
|
4122
|
-
),
|
|
4160
|
+
), wi = (e, t = {}) => {
|
|
4123
4161
|
var r, n, i, o;
|
|
4124
4162
|
let s = t;
|
|
4125
4163
|
typeof e == "object" && (s = e, e = s.id);
|
|
4126
4164
|
const {
|
|
4127
4165
|
values: a,
|
|
4128
|
-
locale:
|
|
4129
|
-
default:
|
|
4166
|
+
locale: u = F(),
|
|
4167
|
+
default: l
|
|
4130
4168
|
} = s;
|
|
4131
|
-
if (
|
|
4169
|
+
if (u == null)
|
|
4132
4170
|
throw new Error(
|
|
4133
4171
|
"[svelte-i18n] Cannot format a message without first setting the initial locale."
|
|
4134
4172
|
);
|
|
4135
|
-
let c =
|
|
4173
|
+
let c = Kt(e, u);
|
|
4136
4174
|
if (!c)
|
|
4137
|
-
c = (o = (i = (n = (r =
|
|
4175
|
+
c = (o = (i = (n = (r = Y()).handleMissingMessage) == null ? void 0 : n.call(r, { locale: u, id: e, defaultValue: l })) != null ? i : l) != null ? o : e;
|
|
4138
4176
|
else if (typeof c != "string")
|
|
4139
4177
|
return console.warn(
|
|
4140
4178
|
`[svelte-i18n] Message with id "${e}" must be of type "string", found: "${typeof c}". Gettin its value through the "$format" method is deprecated; use the "json" method instead.`
|
|
4141
4179
|
), c;
|
|
4142
4180
|
if (!a)
|
|
4143
4181
|
return c;
|
|
4144
|
-
let
|
|
4182
|
+
let f = c;
|
|
4145
4183
|
try {
|
|
4146
|
-
|
|
4147
|
-
} catch (
|
|
4148
|
-
|
|
4184
|
+
f = Ci(c, u).format(a);
|
|
4185
|
+
} catch (h) {
|
|
4186
|
+
h instanceof Error && console.warn(
|
|
4149
4187
|
`[svelte-i18n] Message "${e}" has syntax error:`,
|
|
4150
|
-
|
|
4188
|
+
h.message
|
|
4151
4189
|
);
|
|
4152
4190
|
}
|
|
4153
|
-
return
|
|
4154
|
-
}, Ai = (e, t) =>
|
|
4155
|
-
|
|
4156
|
-
|
|
4157
|
-
|
|
4158
|
-
|
|
4159
|
-
window.emWidgets = { topic:
|
|
4160
|
-
const
|
|
4161
|
-
function
|
|
4162
|
-
|
|
4163
|
-
}
|
|
4164
|
-
function
|
|
4165
|
-
|
|
4166
|
-
}
|
|
4167
|
-
const
|
|
4191
|
+
return f;
|
|
4192
|
+
}, Ai = (e, t) => _i(t).format(e), Si = (e, t) => Ei(t).format(e), Ti = (e, t) => xi(t).format(e), Bi = (e, t = F()) => Kt(e, t), Hi = K([ee, ue], () => wi);
|
|
4193
|
+
K([ee], () => Ai);
|
|
4194
|
+
K([ee], () => Si);
|
|
4195
|
+
K([ee], () => Ti);
|
|
4196
|
+
K([ee, ue], () => Bi);
|
|
4197
|
+
window.emWidgets = { topic: jr };
|
|
4198
|
+
const Mi = (e) => e.toLowerCase().match(/android/i) ? "Android" : e.toLowerCase().match(/iphone/i) ? "iPhone" : e.toLowerCase().match(/ipad|ipod/i) ? "iPad" : "PC";
|
|
4199
|
+
function _t(e, t) {
|
|
4200
|
+
tr(e, t);
|
|
4201
|
+
}
|
|
4202
|
+
function Pi(e) {
|
|
4203
|
+
ee.set(e);
|
|
4204
|
+
}
|
|
4205
|
+
const Ct = {
|
|
4168
4206
|
en: {
|
|
4169
4207
|
titleAccountClosure: "Account Closure",
|
|
4170
4208
|
accountClosureDescription: "Account Closure provides a permanent access restriction to your account if you feel you need a break, or you just want to stop using our services.",
|
|
@@ -4254,33 +4292,56 @@ const At = {
|
|
|
4254
4292
|
accountClosureConfirm: "Yes"
|
|
4255
4293
|
}
|
|
4256
4294
|
};
|
|
4257
|
-
function
|
|
4258
|
-
|
|
4295
|
+
function Oi(e, t) {
|
|
4296
|
+
if (e) {
|
|
4297
|
+
const r = document.createElement("style");
|
|
4298
|
+
r.innerHTML = t, e.appendChild(r);
|
|
4299
|
+
}
|
|
4300
|
+
}
|
|
4301
|
+
function Ii(e, t) {
|
|
4302
|
+
const r = new URL(t);
|
|
4303
|
+
fetch(r.href).then((n) => n.text()).then((n) => {
|
|
4304
|
+
const i = document.createElement("style");
|
|
4305
|
+
i.innerHTML = n, e && e.appendChild(i);
|
|
4306
|
+
}).catch((n) => {
|
|
4307
|
+
console.error("There was an error while trying to load client styling from URL", n);
|
|
4308
|
+
});
|
|
4309
|
+
}
|
|
4310
|
+
function Ni(e, t, r) {
|
|
4311
|
+
if (window.emMessageBus) {
|
|
4312
|
+
const n = document.createElement("style");
|
|
4313
|
+
window.emMessageBus.subscribe(t, (i) => {
|
|
4314
|
+
n.innerHTML = i, e && e.appendChild(n);
|
|
4315
|
+
});
|
|
4316
|
+
}
|
|
4259
4317
|
}
|
|
4260
|
-
function
|
|
4261
|
-
|
|
4318
|
+
function Li(e) {
|
|
4319
|
+
ur(e, "svelte-l1zvzl", '.AccountClosureWrapper{color:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E));background-color:var(--emw--pam-color-bg, var(--emw--background-color, #F1F1F1));border-radius:5%;padding:50px;height:100vh}.AccountClosureWrapper.AccountClosureWrapperMobile{padding:20px 15px;max-width:unset;border-radius:0}.MenuReturnButton{color:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E));display:inline-flex;align-items:center;column-gap:10px;margin-bottom:10px}.MenuReturnButton svg .aaa{fill:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E))}.AccountClosureTitle{font-size:26px;color:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E));font-weight:var(--emw--font-weight-normal, 400)}.AccountClosureTitleMobile{font-size:var(--emw--font-size-large, 20px)}.AccountClosureTitleNone{display:none}.AccountClosureDescription{color:var(--emw--color-gray-300, #58586B);line-height:24px}.AccountClosureDescription.AccountClosureDescriptionMobile{font-size:var(--emw--font-size-small, 14px);line-height:18px}.AccountClosureActionButtons{display:grid;grid-column-gap:10px;grid-template-rows:auto;grid-template-columns:1fr;margin-top:20px;width:50%;color:var(--emw--button-typography, var(--emw--button-text-color, #FFFFFF))}.AccountClosureActionButtons.AccountClosureActionButtonsMobile{width:100%;grid-template-columns:1fr}.AccountClosureSave{background-image:linear-gradient(to bottom, color-mix(in srgb, var(--emw--color-primary, #22B04E) 80%, black 20%), var(--emw--color-primary, #22B04E), color-mix(in srgb, var(--emw--color-primary, #22B04E) 80%, white 30%));border:2px solid var(--emw--button-border-color, #0E5924);border-radius:var(--emw--button-border-radius, 50px);padding:13px 0;color:var(--emw--button-typography, var(--emw--button-text-color, #FFFFFF));width:100%;max-width:400px;min-width:200px;display:flex;align-items:center;justify-content:center;font-size:var(--emw--font-size-medium, 16px);text-transform:uppercase;transition-duration:0.3s;box-sizing:border-box;cursor:pointer}.AccountClosureSave.AccountClosureSaveMobile{width:100%;padding:10px 0;font-size:var(--emw--font-size-small, 14px);grid-template-columns:1fr}.ModalWrapper{position:fixed;top:0;right:0;bottom:0;left:0;background-color:rgba(0, 0, 0, 0.7);display:flex;justify-content:center;align-items:center;z-index:300}.ModalWrapper .ModalContent{position:relative;background:linear-gradient(to right, var(--emw--color-primary-variant, #184026), var(--emw--color-secondary-variant, #013E5C));border:5px solid transparent;padding:30px;background-clip:padding-box;border-radius:var(--emw--border-radius-medium, 20px)}.ModalWrapper .ModalContent::before{content:"";position:absolute;top:-6px;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)}.ModalWrapper .ModalContent::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, 20px)}.ModalWrapper .ModalBody{background:transparent;padding:30px;text-align:center}.ModalWrapper .ModalBody .ModalText{font-size:var(--emw--font-size-x-large, 24px);margin-bottom:40px;color:white}.ModalWrapper .ModalBody .ModalButtons{display:flex;gap:36px}.ModalWrapper .ModalBody .ModalCancel,.ModalWrapper .ModalBody .ModalConfirm{background:transparent;border:1px solid #BFCBC3;color:#BFCBC3;cursor:pointer;border-radius:var(--emw--button-border-radius, 50px);width:200px;height:50px;font-size:var(--emw--font-size-medium, 16px);text-transform:uppercase;text-align:center;transition-duration:0.3s;box-sizing:border-box;padding:10px}.ModalWrapper .ModalBody .ModalConfirm{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))}.ModalWrapper.ModalWrapperMobile .ModalContent{padding:20px;width:80vw;border-top:none}.ModalWrapper.ModalWrapperMobile .ModalBody{padding:0;background:transparent}.ModalWrapper.ModalWrapperMobile .ModalText{font-size:var(--emw--font-size-medium, 16px)}.ModalWrapper.ModalWrapperMobile .ModalButtons{gap:10px}.ModalWrapper.ModalWrapperMobile .ModalCancel,.ModalWrapper.ModalWrapperMobile .ModalConfirm{height:40px;width:50%;font-size:var(--emw--font-size-small, 14px)}');
|
|
4320
|
+
}
|
|
4321
|
+
function $i(e) {
|
|
4322
|
+
let t, r, n, i, o, s, a, u, l, c, f = (
|
|
4262
4323
|
/*$_*/
|
|
4263
4324
|
e[2]("titleAccountClosure") + ""
|
|
4264
|
-
),
|
|
4325
|
+
), h, p, m;
|
|
4265
4326
|
return {
|
|
4266
4327
|
c() {
|
|
4267
|
-
t = B("div"), r =
|
|
4328
|
+
t = B("div"), r = j("svg"), n = j("defs"), i = j("style"), o = I(".aaa{fill:var(--emw--pam-color-primary, var(--emw--color-primary, #D0046C));}"), s = j("g"), a = j("g"), u = j("path"), l = D(), c = B("h2"), h = I(f), E(u, "class", "aaa"), E(u, "d", "M7.5,0,6.136,1.364,11.3,6.526H0V8.474H11.3L6.136,13.636,7.5,15,15,7.5Z"), E(u, "transform", "translate(15 15) rotate(180)"), E(a, "transform", "translate(20 158)"), E(s, "transform", "translate(-20 -158)"), E(r, "xmlns", "http://www.w3.org/2000/svg"), E(r, "width", "15"), E(r, "height", "15"), E(r, "viewBox", "0 0 15 15"), E(c, "class", "AccountClosureTitleMobile"), E(c, "part", "AccountClosureTitleMobile"), E(t, "class", "MenuReturnButton"), E(t, "part", "MenuReturnButton");
|
|
4268
4329
|
},
|
|
4269
|
-
m(d,
|
|
4270
|
-
|
|
4330
|
+
m(d, _) {
|
|
4331
|
+
ge(d, t, _), v(t, r), v(r, n), v(n, i), v(i, o), v(r, s), v(s, a), v(a, u), v(t, l), v(t, c), v(c, h), p || (m = me(
|
|
4271
4332
|
t,
|
|
4272
4333
|
"click",
|
|
4273
4334
|
/*click_handler*/
|
|
4274
|
-
e[
|
|
4335
|
+
e[12]
|
|
4275
4336
|
), p = !0);
|
|
4276
4337
|
},
|
|
4277
|
-
p(d,
|
|
4278
|
-
|
|
4279
|
-
4 &&
|
|
4280
|
-
d[2]("titleAccountClosure") + "") &&
|
|
4338
|
+
p(d, _) {
|
|
4339
|
+
_ & /*$_*/
|
|
4340
|
+
4 && f !== (f = /*$_*/
|
|
4341
|
+
d[2]("titleAccountClosure") + "") && U(h, f);
|
|
4281
4342
|
},
|
|
4282
4343
|
d(d) {
|
|
4283
|
-
d &&
|
|
4344
|
+
d && ae(t), p = !1, m();
|
|
4284
4345
|
}
|
|
4285
4346
|
};
|
|
4286
4347
|
}
|
|
@@ -4288,219 +4349,218 @@ function wt(e) {
|
|
|
4288
4349
|
let t, r, n, i, o = (
|
|
4289
4350
|
/*$_*/
|
|
4290
4351
|
e[2]("modal") + ""
|
|
4291
|
-
), s, a,
|
|
4352
|
+
), s, a, u, l, c = (
|
|
4292
4353
|
/*$_*/
|
|
4293
4354
|
e[2]("accountClosureCancel") + ""
|
|
4294
|
-
),
|
|
4355
|
+
), f, h, p, m = (
|
|
4295
4356
|
/*$_*/
|
|
4296
4357
|
e[2]("accountClosureConfirm") + ""
|
|
4297
|
-
), d,
|
|
4358
|
+
), d, _, P;
|
|
4298
4359
|
return {
|
|
4299
4360
|
c() {
|
|
4300
|
-
t = B("div"), r = B("div"), n = B("div"), i = B("p"), s =
|
|
4361
|
+
t = B("div"), r = B("div"), n = B("div"), i = B("p"), s = I(o), a = D(), u = B("div"), l = B("button"), f = I(c), h = D(), p = B("button"), d = I(m), E(i, "class", "ModalText"), E(l, "class", "ModalCancel"), E(p, "class", "ModalConfirm"), E(u, "class", "ModalButtons"), E(n, "class", "ModalBody"), E(r, "class", "ModalContent"), E(t, "class", "ModalWrapper " + /*isMobile*/
|
|
4301
4362
|
(e[3] ? "ModalWrapperMobile" : ""));
|
|
4302
4363
|
},
|
|
4303
|
-
m(S,
|
|
4304
|
-
|
|
4305
|
-
|
|
4306
|
-
|
|
4364
|
+
m(S, A) {
|
|
4365
|
+
ge(S, t, A), v(t, r), v(r, n), v(n, i), v(i, s), v(n, a), v(n, u), v(u, l), v(l, f), v(u, h), v(u, p), v(p, d), _ || (P = [
|
|
4366
|
+
me(
|
|
4367
|
+
l,
|
|
4307
4368
|
"click",
|
|
4308
4369
|
/*click_handler_2*/
|
|
4309
|
-
e[
|
|
4370
|
+
e[14]
|
|
4310
4371
|
),
|
|
4311
|
-
|
|
4372
|
+
me(
|
|
4312
4373
|
p,
|
|
4313
4374
|
"click",
|
|
4314
4375
|
/*click_handler_3*/
|
|
4315
|
-
e[
|
|
4376
|
+
e[15]
|
|
4316
4377
|
)
|
|
4317
|
-
],
|
|
4378
|
+
], _ = !0);
|
|
4318
4379
|
},
|
|
4319
|
-
p(S,
|
|
4320
|
-
|
|
4380
|
+
p(S, A) {
|
|
4381
|
+
A & /*$_*/
|
|
4321
4382
|
4 && o !== (o = /*$_*/
|
|
4322
|
-
S[2]("modal") + "") &&
|
|
4383
|
+
S[2]("modal") + "") && U(s, o), A & /*$_*/
|
|
4323
4384
|
4 && c !== (c = /*$_*/
|
|
4324
|
-
S[2]("accountClosureCancel") + "") &&
|
|
4385
|
+
S[2]("accountClosureCancel") + "") && U(f, c), A & /*$_*/
|
|
4325
4386
|
4 && m !== (m = /*$_*/
|
|
4326
|
-
S[2]("accountClosureConfirm") + "") &&
|
|
4387
|
+
S[2]("accountClosureConfirm") + "") && U(d, m);
|
|
4327
4388
|
},
|
|
4328
4389
|
d(S) {
|
|
4329
|
-
S &&
|
|
4390
|
+
S && ae(t), _ = !1, J(P);
|
|
4330
4391
|
}
|
|
4331
4392
|
};
|
|
4332
4393
|
}
|
|
4333
|
-
function
|
|
4394
|
+
function Ri(e) {
|
|
4334
4395
|
let t, r, n, i, o = (
|
|
4335
4396
|
/*$_*/
|
|
4336
4397
|
e[2]("titleAccountClosure") + ""
|
|
4337
|
-
), s, a,
|
|
4398
|
+
), s, a, u, l, c = (
|
|
4338
4399
|
/*$_*/
|
|
4339
4400
|
e[2]("accountClosureDescription") + ""
|
|
4340
|
-
),
|
|
4401
|
+
), f, h, p, m, d = (
|
|
4341
4402
|
/*$_*/
|
|
4342
4403
|
e[2]("closeAccount") + ""
|
|
4343
|
-
),
|
|
4404
|
+
), _, P, S, A, H = (
|
|
4344
4405
|
/*isMobile*/
|
|
4345
|
-
e[3] &&
|
|
4346
|
-
),
|
|
4406
|
+
e[3] && $i(e)
|
|
4407
|
+
), C = (
|
|
4347
4408
|
/*closureModal*/
|
|
4348
4409
|
e[1] && wt(e)
|
|
4349
4410
|
);
|
|
4350
4411
|
return {
|
|
4351
4412
|
c() {
|
|
4352
|
-
t = B("div"), r = B("div"), H && H.c(), n =
|
|
4353
|
-
(e[3] ? "AccountClosureTitleNone" : "")),
|
|
4354
|
-
(e[3] ? "AccountClosureDescriptionMobile" : "")),
|
|
4355
|
-
(e[3] ? "AccountClosureSaveMobile" : "")),
|
|
4356
|
-
(e[3] ? "AccountClosureActionButtonsMobile" : "")),
|
|
4413
|
+
t = B("div"), r = B("div"), H && H.c(), n = D(), i = B("h2"), s = I(o), a = D(), u = B("div"), l = B("p"), f = I(c), h = D(), p = B("div"), m = B("button"), _ = I(d), P = D(), C && C.c(), E(i, "class", "AccountClosureTitle " + /*isMobile*/
|
|
4414
|
+
(e[3] ? "AccountClosureTitleNone" : "")), E(u, "class", "AccountClosureDescription " + /*isMobile*/
|
|
4415
|
+
(e[3] ? "AccountClosureDescriptionMobile" : "")), E(m, "class", "AccountClosureSave " + /*isMobile*/
|
|
4416
|
+
(e[3] ? "AccountClosureSaveMobile" : "")), E(p, "class", "AccountClosureActionButtons " + /*isMobile*/
|
|
4417
|
+
(e[3] ? "AccountClosureActionButtonsMobile" : "")), E(r, "class", "AccountClosureWrapper " + /*isMobile*/
|
|
4357
4418
|
(e[3] ? "AccountClosureWrapperMobile" : ""));
|
|
4358
4419
|
},
|
|
4359
|
-
m(T,
|
|
4360
|
-
|
|
4420
|
+
m(T, y) {
|
|
4421
|
+
ge(T, t, y), v(t, r), H && H.m(r, null), v(r, n), v(r, i), v(i, s), v(r, a), v(r, u), v(u, l), v(l, f), v(r, h), v(r, p), v(p, m), v(m, _), v(t, P), C && C.m(t, null), e[16](t), S || (A = me(
|
|
4361
4422
|
m,
|
|
4362
4423
|
"click",
|
|
4363
4424
|
/*click_handler_1*/
|
|
4364
|
-
e[
|
|
4425
|
+
e[13]
|
|
4365
4426
|
), S = !0);
|
|
4366
4427
|
},
|
|
4367
|
-
p(T, [
|
|
4428
|
+
p(T, [y]) {
|
|
4368
4429
|
/*isMobile*/
|
|
4369
|
-
T[3] && H.p(T,
|
|
4430
|
+
T[3] && H.p(T, y), y & /*$_*/
|
|
4370
4431
|
4 && o !== (o = /*$_*/
|
|
4371
|
-
T[2]("titleAccountClosure") + "") &&
|
|
4432
|
+
T[2]("titleAccountClosure") + "") && U(s, o), y & /*$_*/
|
|
4372
4433
|
4 && c !== (c = /*$_*/
|
|
4373
|
-
T[2]("accountClosureDescription") + "") &&
|
|
4434
|
+
T[2]("accountClosureDescription") + "") && U(f, c), y & /*$_*/
|
|
4374
4435
|
4 && d !== (d = /*$_*/
|
|
4375
|
-
T[2]("closeAccount") + "") &&
|
|
4376
|
-
T[1] ?
|
|
4436
|
+
T[2]("closeAccount") + "") && U(_, d), /*closureModal*/
|
|
4437
|
+
T[1] ? C ? C.p(T, y) : (C = wt(T), C.c(), C.m(t, null)) : C && (C.d(1), C = null);
|
|
4377
4438
|
},
|
|
4378
|
-
i:
|
|
4379
|
-
o:
|
|
4439
|
+
i: O,
|
|
4440
|
+
o: O,
|
|
4380
4441
|
d(T) {
|
|
4381
|
-
T &&
|
|
4442
|
+
T && ae(t), H && H.d(), C && C.d(), e[16](null), S = !1, A();
|
|
4382
4443
|
}
|
|
4383
4444
|
};
|
|
4384
4445
|
}
|
|
4385
|
-
function
|
|
4446
|
+
function Di(e, t, r) {
|
|
4386
4447
|
let n;
|
|
4387
|
-
|
|
4388
|
-
let { lang: i = "en" } = t, { clientstyling: o = "" } = t, { clientstylingurl: s = "" } = t, {
|
|
4389
|
-
const
|
|
4390
|
-
fetch(
|
|
4391
|
-
Object.keys(
|
|
4392
|
-
|
|
4448
|
+
ar(e, Hi, (y) => r(2, n = y));
|
|
4449
|
+
let { lang: i = "en" } = t, { clientstyling: o = "" } = t, { clientstylingurl: s = "" } = t, { mbsource: a } = t, { translationurl: u = "" } = t, l = window.navigator.userAgent, c = Mi(l) !== "PC", f = !1, h;
|
|
4450
|
+
const p = () => {
|
|
4451
|
+
fetch(u).then((G) => G.json()).then((G) => {
|
|
4452
|
+
Object.keys(G).forEach((Ke) => {
|
|
4453
|
+
_t(Ke, G[Ke]);
|
|
4393
4454
|
});
|
|
4394
|
-
}).catch((
|
|
4395
|
-
console.log(
|
|
4455
|
+
}).catch((G) => {
|
|
4456
|
+
console.log(G);
|
|
4396
4457
|
});
|
|
4397
4458
|
};
|
|
4398
|
-
Object.keys(
|
|
4399
|
-
|
|
4459
|
+
Object.keys(Ct).forEach((y) => {
|
|
4460
|
+
_t(y, Ct[y]);
|
|
4400
4461
|
});
|
|
4401
|
-
const
|
|
4402
|
-
r(1,
|
|
4403
|
-
}, m = () => {
|
|
4404
|
-
p(!1), window.postMessage({ type: "AccountClosure" }, window.location.href);
|
|
4462
|
+
const m = (y) => {
|
|
4463
|
+
r(1, f = y), y === !0 ? window.postMessage({ type: "DisableScroll" }, window.location.href) : window.postMessage({ type: "EnableScroll" }, window.location.href);
|
|
4405
4464
|
}, d = () => {
|
|
4465
|
+
m(!1), window.postMessage({ type: "AccountClosure" }, window.location.href);
|
|
4466
|
+
}, _ = () => {
|
|
4406
4467
|
window.postMessage(
|
|
4407
4468
|
{
|
|
4408
4469
|
type: "PlayerAccountMenuActive",
|
|
4409
|
-
isMobile:
|
|
4470
|
+
isMobile: c
|
|
4410
4471
|
},
|
|
4411
4472
|
window.location.href
|
|
4412
4473
|
);
|
|
4413
|
-
}, A = () => {
|
|
4414
|
-
Mi(i);
|
|
4415
4474
|
}, P = () => {
|
|
4416
|
-
|
|
4417
|
-
|
|
4418
|
-
|
|
4419
|
-
|
|
4420
|
-
|
|
4421
|
-
|
|
4422
|
-
|
|
4423
|
-
|
|
4424
|
-
},
|
|
4425
|
-
1
|
|
4426
|
-
);
|
|
4427
|
-
});
|
|
4428
|
-
}, w = () => d(), H = () => p(!0), _ = () => p(!1), T = () => m();
|
|
4429
|
-
function O(E) {
|
|
4430
|
-
Ie[E ? "unshift" : "push"](() => {
|
|
4431
|
-
h = E, r(0, h);
|
|
4475
|
+
Pi(i);
|
|
4476
|
+
};
|
|
4477
|
+
dr(() => () => {
|
|
4478
|
+
});
|
|
4479
|
+
const S = () => _(), A = () => m(!0), H = () => m(!1), C = () => d();
|
|
4480
|
+
function T(y) {
|
|
4481
|
+
Oe[y ? "unshift" : "push"](() => {
|
|
4482
|
+
h = y, r(0, h);
|
|
4432
4483
|
});
|
|
4433
4484
|
}
|
|
4434
|
-
return e.$$set = (
|
|
4435
|
-
"lang" in
|
|
4485
|
+
return e.$$set = (y) => {
|
|
4486
|
+
"lang" in y && r(7, i = y.lang), "clientstyling" in y && r(8, o = y.clientstyling), "clientstylingurl" in y && r(9, s = y.clientstylingurl), "mbsource" in y && r(10, a = y.mbsource), "translationurl" in y && r(11, u = y.translationurl);
|
|
4436
4487
|
}, e.$$.update = () => {
|
|
4437
4488
|
e.$$.dirty & /*lang*/
|
|
4438
|
-
128 && i &&
|
|
4439
|
-
257 && o && h &&
|
|
4440
|
-
513 && s && h &&
|
|
4441
|
-
|
|
4489
|
+
128 && i && P(), e.$$.dirty & /*clientstyling, customStylingContainer*/
|
|
4490
|
+
257 && o && h && Oi(h, o), e.$$.dirty & /*clientstylingurl, customStylingContainer*/
|
|
4491
|
+
513 && s && h && Ii(h, s), e.$$.dirty & /*mbsource, customStylingContainer*/
|
|
4492
|
+
1025 && a && h && Ni(h, `${a}.Style`), e.$$.dirty & /*translationurl*/
|
|
4493
|
+
2048 && u && p();
|
|
4442
4494
|
}, [
|
|
4443
4495
|
h,
|
|
4444
|
-
|
|
4496
|
+
f,
|
|
4445
4497
|
n,
|
|
4446
|
-
|
|
4447
|
-
p,
|
|
4498
|
+
c,
|
|
4448
4499
|
m,
|
|
4449
4500
|
d,
|
|
4501
|
+
_,
|
|
4450
4502
|
i,
|
|
4451
4503
|
o,
|
|
4452
4504
|
s,
|
|
4453
4505
|
a,
|
|
4454
|
-
|
|
4506
|
+
u,
|
|
4507
|
+
S,
|
|
4508
|
+
A,
|
|
4455
4509
|
H,
|
|
4456
|
-
|
|
4457
|
-
T
|
|
4458
|
-
O
|
|
4510
|
+
C,
|
|
4511
|
+
T
|
|
4459
4512
|
];
|
|
4460
4513
|
}
|
|
4461
|
-
class
|
|
4514
|
+
class Ui extends Sr {
|
|
4462
4515
|
constructor(t) {
|
|
4463
|
-
super(),
|
|
4516
|
+
super(), wr(
|
|
4464
4517
|
this,
|
|
4465
4518
|
t,
|
|
4466
|
-
|
|
4467
|
-
|
|
4468
|
-
|
|
4519
|
+
Di,
|
|
4520
|
+
Ri,
|
|
4521
|
+
St,
|
|
4469
4522
|
{
|
|
4470
4523
|
lang: 7,
|
|
4471
4524
|
clientstyling: 8,
|
|
4472
4525
|
clientstylingurl: 9,
|
|
4473
|
-
|
|
4526
|
+
mbsource: 10,
|
|
4527
|
+
translationurl: 11
|
|
4474
4528
|
},
|
|
4475
|
-
|
|
4529
|
+
Li
|
|
4476
4530
|
);
|
|
4477
4531
|
}
|
|
4478
4532
|
get lang() {
|
|
4479
4533
|
return this.$$.ctx[7];
|
|
4480
4534
|
}
|
|
4481
4535
|
set lang(t) {
|
|
4482
|
-
this.$$set({ lang: t }),
|
|
4536
|
+
this.$$set({ lang: t }), R();
|
|
4483
4537
|
}
|
|
4484
4538
|
get clientstyling() {
|
|
4485
4539
|
return this.$$.ctx[8];
|
|
4486
4540
|
}
|
|
4487
4541
|
set clientstyling(t) {
|
|
4488
|
-
this.$$set({ clientstyling: t }),
|
|
4542
|
+
this.$$set({ clientstyling: t }), R();
|
|
4489
4543
|
}
|
|
4490
4544
|
get clientstylingurl() {
|
|
4491
4545
|
return this.$$.ctx[9];
|
|
4492
4546
|
}
|
|
4493
4547
|
set clientstylingurl(t) {
|
|
4494
|
-
this.$$set({ clientstylingurl: t }),
|
|
4548
|
+
this.$$set({ clientstylingurl: t }), R();
|
|
4495
4549
|
}
|
|
4496
|
-
get
|
|
4550
|
+
get mbsource() {
|
|
4497
4551
|
return this.$$.ctx[10];
|
|
4498
4552
|
}
|
|
4553
|
+
set mbsource(t) {
|
|
4554
|
+
this.$$set({ mbsource: t }), R();
|
|
4555
|
+
}
|
|
4556
|
+
get translationurl() {
|
|
4557
|
+
return this.$$.ctx[11];
|
|
4558
|
+
}
|
|
4499
4559
|
set translationurl(t) {
|
|
4500
|
-
this.$$set({ translationurl: t }),
|
|
4560
|
+
this.$$set({ translationurl: t }), R();
|
|
4501
4561
|
}
|
|
4502
4562
|
}
|
|
4503
|
-
Ar(
|
|
4563
|
+
Ar(Ui, { lang: {}, clientstyling: {}, clientstylingurl: {}, mbsource: {}, translationurl: {} }, [], [], !0);
|
|
4504
4564
|
export {
|
|
4505
|
-
|
|
4565
|
+
Ui as P
|
|
4506
4566
|
};
|