@everymatrix/general-logout 1.87.26 → 1.87.28
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/components/{GeneralLogout-DsmMdpPL.cjs → GeneralLogout-BGfQX8_n.cjs} +4 -4
- package/components/{GeneralLogout-IXsvPAN0.js → GeneralLogout-ChDkT5bC.js} +724 -697
- package/components/{GeneralLogout-CQef-Jah.js → GeneralLogout-DP8a_axV.js} +739 -711
- package/es2015/general-logout.cjs +1 -1
- package/es2015/general-logout.js +1 -1
- package/esnext/general-logout.js +1 -1
- package/package.json +1 -1
|
@@ -1,46 +1,46 @@
|
|
|
1
|
-
function
|
|
1
|
+
function H() {
|
|
2
2
|
}
|
|
3
3
|
function Ht(e) {
|
|
4
4
|
return e();
|
|
5
5
|
}
|
|
6
|
-
function
|
|
6
|
+
function tt() {
|
|
7
7
|
return /* @__PURE__ */ Object.create(null);
|
|
8
8
|
}
|
|
9
|
-
function
|
|
9
|
+
function ie(e) {
|
|
10
10
|
e.forEach(Ht);
|
|
11
11
|
}
|
|
12
|
-
function
|
|
12
|
+
function qe(e) {
|
|
13
13
|
return typeof e == "function";
|
|
14
14
|
}
|
|
15
15
|
function Bt(e, t) {
|
|
16
16
|
return e != e ? t == t : e !== t || e && typeof e == "object" || typeof e == "function";
|
|
17
17
|
}
|
|
18
|
-
function
|
|
18
|
+
function lr(e) {
|
|
19
19
|
return Object.keys(e).length === 0;
|
|
20
20
|
}
|
|
21
|
-
function
|
|
21
|
+
function At(e, ...t) {
|
|
22
22
|
if (e == null) {
|
|
23
23
|
for (const n of t)
|
|
24
24
|
n(void 0);
|
|
25
|
-
return
|
|
25
|
+
return H;
|
|
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 cr(e, t, r) {
|
|
31
|
+
e.$$.on_destroy.push(At(t, r));
|
|
32
32
|
}
|
|
33
|
-
function
|
|
33
|
+
function x(e, t) {
|
|
34
34
|
e.appendChild(t);
|
|
35
35
|
}
|
|
36
|
-
function
|
|
37
|
-
const n =
|
|
36
|
+
function fr(e, t, r) {
|
|
37
|
+
const n = pr(e);
|
|
38
38
|
if (!n.getElementById(t)) {
|
|
39
|
-
const i =
|
|
40
|
-
i.id = t, i.textContent = r,
|
|
39
|
+
const i = I("style");
|
|
40
|
+
i.id = t, i.textContent = r, dr(n, i);
|
|
41
41
|
}
|
|
42
42
|
}
|
|
43
|
-
function
|
|
43
|
+
function pr(e) {
|
|
44
44
|
if (!e)
|
|
45
45
|
return document;
|
|
46
46
|
const t = e.getRootNode ? e.getRootNode() : e.ownerDocument;
|
|
@@ -50,48 +50,48 @@ function cr(e) {
|
|
|
50
50
|
t
|
|
51
51
|
) : e.ownerDocument;
|
|
52
52
|
}
|
|
53
|
-
function
|
|
54
|
-
return
|
|
53
|
+
function dr(e, t) {
|
|
54
|
+
return x(
|
|
55
55
|
/** @type {Document} */
|
|
56
56
|
e.head || e,
|
|
57
57
|
t
|
|
58
58
|
), t.sheet;
|
|
59
59
|
}
|
|
60
|
-
function
|
|
60
|
+
function oe(e, t, r) {
|
|
61
61
|
e.insertBefore(t, r || null);
|
|
62
62
|
}
|
|
63
|
-
function
|
|
63
|
+
function Z(e) {
|
|
64
64
|
e.parentNode && e.parentNode.removeChild(e);
|
|
65
65
|
}
|
|
66
|
-
function
|
|
66
|
+
function I(e) {
|
|
67
67
|
return document.createElement(e);
|
|
68
68
|
}
|
|
69
|
-
function
|
|
69
|
+
function q(e) {
|
|
70
70
|
return document.createElementNS("http://www.w3.org/2000/svg", e);
|
|
71
71
|
}
|
|
72
72
|
function ge(e) {
|
|
73
73
|
return document.createTextNode(e);
|
|
74
74
|
}
|
|
75
|
-
function
|
|
75
|
+
function mr() {
|
|
76
76
|
return ge(" ");
|
|
77
77
|
}
|
|
78
|
-
function
|
|
78
|
+
function Pt(e, t, r, n) {
|
|
79
79
|
return e.addEventListener(t, r, n), () => e.removeEventListener(t, r, n);
|
|
80
80
|
}
|
|
81
81
|
function T(e, t, r) {
|
|
82
82
|
r == null ? e.removeAttribute(t) : e.getAttribute(t) !== r && e.setAttribute(t, r);
|
|
83
83
|
}
|
|
84
|
-
function
|
|
84
|
+
function br(e) {
|
|
85
85
|
return Array.from(e.childNodes);
|
|
86
86
|
}
|
|
87
|
-
function
|
|
87
|
+
function Ot(e, t) {
|
|
88
88
|
t = "" + t, e.data !== t && (e.data = /** @type {string} */
|
|
89
89
|
t);
|
|
90
90
|
}
|
|
91
|
-
function
|
|
91
|
+
function yr(e, t, r, n) {
|
|
92
92
|
r == null ? e.style.removeProperty(t) : e.style.setProperty(t, r, "");
|
|
93
93
|
}
|
|
94
|
-
function
|
|
94
|
+
function gr(e) {
|
|
95
95
|
const t = {};
|
|
96
96
|
return e.childNodes.forEach(
|
|
97
97
|
/** @param {Element} node */
|
|
@@ -100,95 +100,95 @@ function br(e) {
|
|
|
100
100
|
}
|
|
101
101
|
), t;
|
|
102
102
|
}
|
|
103
|
-
let
|
|
104
|
-
function
|
|
105
|
-
|
|
103
|
+
let te;
|
|
104
|
+
function ee(e) {
|
|
105
|
+
te = e;
|
|
106
106
|
}
|
|
107
|
-
function
|
|
108
|
-
if (!
|
|
107
|
+
function vr() {
|
|
108
|
+
if (!te)
|
|
109
109
|
throw new Error("Function called outside component initialization");
|
|
110
|
-
return
|
|
110
|
+
return te;
|
|
111
111
|
}
|
|
112
|
-
function
|
|
113
|
-
|
|
112
|
+
function _r(e) {
|
|
113
|
+
vr().$$.on_mount.push(e);
|
|
114
114
|
}
|
|
115
|
-
const F = [],
|
|
116
|
-
let
|
|
117
|
-
const
|
|
115
|
+
const F = [], Ce = [];
|
|
116
|
+
let k = [];
|
|
117
|
+
const rt = [], Er = /* @__PURE__ */ Promise.resolve();
|
|
118
118
|
let Me = !1;
|
|
119
|
-
function
|
|
120
|
-
Me || (Me = !0,
|
|
119
|
+
function xr() {
|
|
120
|
+
Me || (Me = !0, Er.then(B));
|
|
121
121
|
}
|
|
122
|
-
function
|
|
123
|
-
|
|
122
|
+
function $e(e) {
|
|
123
|
+
k.push(e);
|
|
124
124
|
}
|
|
125
125
|
const He = /* @__PURE__ */ new Set();
|
|
126
126
|
let G = 0;
|
|
127
|
-
function
|
|
127
|
+
function B() {
|
|
128
128
|
if (G !== 0)
|
|
129
129
|
return;
|
|
130
|
-
const e =
|
|
130
|
+
const e = te;
|
|
131
131
|
do {
|
|
132
132
|
try {
|
|
133
133
|
for (; G < F.length; ) {
|
|
134
134
|
const t = F[G];
|
|
135
|
-
G++,
|
|
135
|
+
G++, ee(t), Sr(t.$$);
|
|
136
136
|
}
|
|
137
137
|
} catch (t) {
|
|
138
138
|
throw F.length = 0, G = 0, t;
|
|
139
139
|
}
|
|
140
|
-
for (
|
|
141
|
-
|
|
142
|
-
for (let t = 0; t <
|
|
143
|
-
const r =
|
|
140
|
+
for (ee(null), F.length = 0, G = 0; Ce.length; )
|
|
141
|
+
Ce.pop()();
|
|
142
|
+
for (let t = 0; t < k.length; t += 1) {
|
|
143
|
+
const r = k[t];
|
|
144
144
|
He.has(r) || (He.add(r), r());
|
|
145
145
|
}
|
|
146
|
-
|
|
146
|
+
k.length = 0;
|
|
147
147
|
} while (F.length);
|
|
148
|
-
for (;
|
|
149
|
-
|
|
150
|
-
Me = !1, He.clear(),
|
|
148
|
+
for (; rt.length; )
|
|
149
|
+
rt.pop()();
|
|
150
|
+
Me = !1, He.clear(), ee(e);
|
|
151
151
|
}
|
|
152
|
-
function
|
|
152
|
+
function Sr(e) {
|
|
153
153
|
if (e.fragment !== null) {
|
|
154
|
-
e.update(),
|
|
154
|
+
e.update(), ie(e.before_update);
|
|
155
155
|
const t = e.dirty;
|
|
156
|
-
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(
|
|
156
|
+
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach($e);
|
|
157
157
|
}
|
|
158
158
|
}
|
|
159
|
-
function
|
|
159
|
+
function Tr(e) {
|
|
160
160
|
const t = [], r = [];
|
|
161
|
-
|
|
161
|
+
k.forEach((n) => e.indexOf(n) === -1 ? t.push(n) : r.push(n)), r.forEach((n) => n()), k = t;
|
|
162
162
|
}
|
|
163
|
-
const
|
|
164
|
-
function
|
|
165
|
-
e && e.i && (
|
|
163
|
+
const wr = /* @__PURE__ */ new Set();
|
|
164
|
+
function Hr(e, t) {
|
|
165
|
+
e && e.i && (wr.delete(e), e.i(t));
|
|
166
166
|
}
|
|
167
|
-
function
|
|
167
|
+
function Br(e, t, r) {
|
|
168
168
|
const { fragment: n, after_update: i } = e.$$;
|
|
169
|
-
n && n.m(t, r),
|
|
170
|
-
const o = e.$$.on_mount.map(Ht).filter(
|
|
171
|
-
e.$$.on_destroy ? e.$$.on_destroy.push(...o) :
|
|
172
|
-
}), i.forEach(
|
|
169
|
+
n && n.m(t, r), $e(() => {
|
|
170
|
+
const o = e.$$.on_mount.map(Ht).filter(qe);
|
|
171
|
+
e.$$.on_destroy ? e.$$.on_destroy.push(...o) : ie(o), e.$$.on_mount = [];
|
|
172
|
+
}), i.forEach($e);
|
|
173
173
|
}
|
|
174
|
-
function
|
|
174
|
+
function Ar(e, t) {
|
|
175
175
|
const r = e.$$;
|
|
176
|
-
r.fragment !== null && (
|
|
176
|
+
r.fragment !== null && (Tr(r.after_update), ie(r.on_destroy), r.fragment && r.fragment.d(t), r.on_destroy = r.fragment = null, r.ctx = []);
|
|
177
177
|
}
|
|
178
|
-
function
|
|
179
|
-
e.$$.dirty[0] === -1 && (F.push(e),
|
|
178
|
+
function Pr(e, t) {
|
|
179
|
+
e.$$.dirty[0] === -1 && (F.push(e), xr(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
|
|
180
180
|
}
|
|
181
|
-
function
|
|
182
|
-
const h =
|
|
183
|
-
|
|
181
|
+
function Or(e, t, r, n, i, o, s = null, a = [-1]) {
|
|
182
|
+
const h = te;
|
|
183
|
+
ee(e);
|
|
184
184
|
const u = e.$$ = {
|
|
185
185
|
fragment: null,
|
|
186
186
|
ctx: [],
|
|
187
187
|
// state
|
|
188
188
|
props: o,
|
|
189
|
-
update:
|
|
189
|
+
update: H,
|
|
190
190
|
not_equal: i,
|
|
191
|
-
bound:
|
|
191
|
+
bound: tt(),
|
|
192
192
|
// lifecycle
|
|
193
193
|
on_mount: [],
|
|
194
194
|
on_destroy: [],
|
|
@@ -197,7 +197,7 @@ function Ar(e, t, r, n, i, o, s = null, a = [-1]) {
|
|
|
197
197
|
after_update: [],
|
|
198
198
|
context: new Map(t.context || (h ? h.$$.context : [])),
|
|
199
199
|
// everything else
|
|
200
|
-
callbacks:
|
|
200
|
+
callbacks: tt(),
|
|
201
201
|
dirty: a,
|
|
202
202
|
skip_bound: !1,
|
|
203
203
|
root: t.target || h.$$.root
|
|
@@ -206,19 +206,19 @@ function Ar(e, t, r, n, i, o, s = null, a = [-1]) {
|
|
|
206
206
|
let l = !1;
|
|
207
207
|
if (u.ctx = r ? r(e, t.props || {}, (f, c, ...p) => {
|
|
208
208
|
const d = p.length ? p[0] : c;
|
|
209
|
-
return u.ctx && i(u.ctx[f], u.ctx[f] = d) && (!u.skip_bound && u.bound[f] && u.bound[f](d), l &&
|
|
210
|
-
}) : [], u.update(), l = !0,
|
|
209
|
+
return u.ctx && i(u.ctx[f], u.ctx[f] = d) && (!u.skip_bound && u.bound[f] && u.bound[f](d), l && Pr(e, f)), c;
|
|
210
|
+
}) : [], u.update(), l = !0, ie(u.before_update), u.fragment = n ? n(u.ctx) : !1, t.target) {
|
|
211
211
|
if (t.hydrate) {
|
|
212
|
-
const f =
|
|
213
|
-
u.fragment && u.fragment.l(f), f.forEach(
|
|
212
|
+
const f = br(t.target);
|
|
213
|
+
u.fragment && u.fragment.l(f), f.forEach(Z);
|
|
214
214
|
} else
|
|
215
215
|
u.fragment && u.fragment.c();
|
|
216
|
-
t.intro &&
|
|
216
|
+
t.intro && Hr(e.$$.fragment), Br(e, t.target, t.anchor), B();
|
|
217
217
|
}
|
|
218
|
-
|
|
218
|
+
ee(h);
|
|
219
219
|
}
|
|
220
|
-
let
|
|
221
|
-
typeof HTMLElement == "function" && (
|
|
220
|
+
let It;
|
|
221
|
+
typeof HTMLElement == "function" && (It = class extends HTMLElement {
|
|
222
222
|
/** The Svelte component constructor */
|
|
223
223
|
$$ctor;
|
|
224
224
|
/** Slots */
|
|
@@ -260,29 +260,29 @@ typeof HTMLElement == "function" && (Ot = class extends HTMLElement {
|
|
|
260
260
|
let o;
|
|
261
261
|
return {
|
|
262
262
|
c: function() {
|
|
263
|
-
o =
|
|
263
|
+
o = I("slot"), i !== "default" && T(o, "name", i);
|
|
264
264
|
},
|
|
265
265
|
/**
|
|
266
266
|
* @param {HTMLElement} target
|
|
267
267
|
* @param {HTMLElement} [anchor]
|
|
268
268
|
*/
|
|
269
269
|
m: function(h, u) {
|
|
270
|
-
|
|
270
|
+
oe(h, o, u);
|
|
271
271
|
},
|
|
272
272
|
d: function(h) {
|
|
273
|
-
h &&
|
|
273
|
+
h && Z(o);
|
|
274
274
|
}
|
|
275
275
|
};
|
|
276
276
|
};
|
|
277
277
|
};
|
|
278
278
|
if (await Promise.resolve(), !this.$$cn || this.$$c)
|
|
279
279
|
return;
|
|
280
|
-
const t = {}, r =
|
|
280
|
+
const t = {}, r = gr(this);
|
|
281
281
|
for (const i of this.$$s)
|
|
282
282
|
i in r && (t[i] = [e(i)]);
|
|
283
283
|
for (const i of this.attributes) {
|
|
284
284
|
const o = this.$$g_p(i.name);
|
|
285
|
-
o in this.$$d || (this.$$d[o] =
|
|
285
|
+
o in this.$$d || (this.$$d[o] = ce(o, i.value, this.$$p_d, "toProp"));
|
|
286
286
|
}
|
|
287
287
|
for (const i in this.$$p_d)
|
|
288
288
|
!(i in this.$$d) && this[i] !== void 0 && (this.$$d[i] = this[i], delete this[i]);
|
|
@@ -300,7 +300,7 @@ typeof HTMLElement == "function" && (Ot = class extends HTMLElement {
|
|
|
300
300
|
this.$$r = !0;
|
|
301
301
|
for (const i in this.$$p_d)
|
|
302
302
|
if (this.$$d[i] = this.$$c.$$.ctx[this.$$c.$$.props[i]], this.$$p_d[i].reflect) {
|
|
303
|
-
const o =
|
|
303
|
+
const o = ce(
|
|
304
304
|
i,
|
|
305
305
|
this.$$d[i],
|
|
306
306
|
this.$$p_d,
|
|
@@ -322,7 +322,7 @@ typeof HTMLElement == "function" && (Ot = class extends HTMLElement {
|
|
|
322
322
|
// We don't need this when working within Svelte code, but for compatibility of people using this outside of Svelte
|
|
323
323
|
// and setting attributes through setAttribute etc, this is helpful
|
|
324
324
|
attributeChangedCallback(e, t, r) {
|
|
325
|
-
this.$$r || (e = this.$$g_p(e), this.$$d[e] =
|
|
325
|
+
this.$$r || (e = this.$$g_p(e), this.$$d[e] = ce(e, r, this.$$p_d, "toProp"), this.$$c?.$set({ [e]: this.$$d[e] }));
|
|
326
326
|
}
|
|
327
327
|
disconnectedCallback() {
|
|
328
328
|
this.$$cn = !1, Promise.resolve().then(() => {
|
|
@@ -335,7 +335,7 @@ typeof HTMLElement == "function" && (Ot = class extends HTMLElement {
|
|
|
335
335
|
) || e;
|
|
336
336
|
}
|
|
337
337
|
});
|
|
338
|
-
function
|
|
338
|
+
function ce(e, t, r, n) {
|
|
339
339
|
const i = r[e]?.type;
|
|
340
340
|
if (t = i === "Boolean" && typeof t != "boolean" ? t != null : t, !n || !r[e])
|
|
341
341
|
return t;
|
|
@@ -364,8 +364,8 @@ function le(e, t, r, n) {
|
|
|
364
364
|
return t;
|
|
365
365
|
}
|
|
366
366
|
}
|
|
367
|
-
function
|
|
368
|
-
let s = class extends
|
|
367
|
+
function Ir(e, t, r, n, i, o) {
|
|
368
|
+
let s = class extends It {
|
|
369
369
|
constructor() {
|
|
370
370
|
super(e, r, i), this.$$p_d = t;
|
|
371
371
|
}
|
|
@@ -381,7 +381,7 @@ function Pr(e, t, r, n, i, o) {
|
|
|
381
381
|
return this.$$c && a in this.$$c ? this.$$c[a] : this.$$d[a];
|
|
382
382
|
},
|
|
383
383
|
set(h) {
|
|
384
|
-
h =
|
|
384
|
+
h = ce(a, h, t), this.$$d[a] = h, this.$$c?.$set({ [a]: h });
|
|
385
385
|
}
|
|
386
386
|
});
|
|
387
387
|
}), n.forEach((a) => {
|
|
@@ -393,7 +393,7 @@ function Pr(e, t, r, n, i, o) {
|
|
|
393
393
|
}), e.element = /** @type {any} */
|
|
394
394
|
s, s;
|
|
395
395
|
}
|
|
396
|
-
class
|
|
396
|
+
class Lr {
|
|
397
397
|
/**
|
|
398
398
|
* ### PRIVATE API
|
|
399
399
|
*
|
|
@@ -412,7 +412,7 @@ class Or {
|
|
|
412
412
|
$$set = void 0;
|
|
413
413
|
/** @returns {void} */
|
|
414
414
|
$destroy() {
|
|
415
|
-
|
|
415
|
+
Ar(this, 1), this.$destroy = H;
|
|
416
416
|
}
|
|
417
417
|
/**
|
|
418
418
|
* @template {Extract<keyof Events, string>} K
|
|
@@ -421,8 +421,8 @@ class Or {
|
|
|
421
421
|
* @returns {() => void}
|
|
422
422
|
*/
|
|
423
423
|
$on(t, r) {
|
|
424
|
-
if (!
|
|
425
|
-
return
|
|
424
|
+
if (!qe(r))
|
|
425
|
+
return H;
|
|
426
426
|
const n = this.$$.callbacks[t] || (this.$$.callbacks[t] = []);
|
|
427
427
|
return n.push(r), () => {
|
|
428
428
|
const i = n.indexOf(r);
|
|
@@ -434,11 +434,11 @@ class Or {
|
|
|
434
434
|
* @returns {void}
|
|
435
435
|
*/
|
|
436
436
|
$set(t) {
|
|
437
|
-
this.$$set && !
|
|
437
|
+
this.$$set && !lr(t) && (this.$$.skip_bound = !0, this.$$set(t), this.$$.skip_bound = !1);
|
|
438
438
|
}
|
|
439
439
|
}
|
|
440
|
-
const
|
|
441
|
-
typeof window < "u" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(
|
|
440
|
+
const Nr = "4";
|
|
441
|
+
typeof window < "u" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(Nr);
|
|
442
442
|
/*! *****************************************************************************
|
|
443
443
|
Copyright (c) Microsoft Corporation.
|
|
444
444
|
|
|
@@ -453,24 +453,24 @@ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
|
453
453
|
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
454
454
|
PERFORMANCE OF THIS SOFTWARE.
|
|
455
455
|
***************************************************************************** */
|
|
456
|
-
var
|
|
457
|
-
return
|
|
456
|
+
var Re = function(e, t) {
|
|
457
|
+
return Re = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
|
|
458
458
|
r.__proto__ = n;
|
|
459
459
|
} || function(r, n) {
|
|
460
460
|
for (var i in n)
|
|
461
461
|
Object.prototype.hasOwnProperty.call(n, i) && (r[i] = n[i]);
|
|
462
|
-
},
|
|
462
|
+
}, Re(e, t);
|
|
463
463
|
};
|
|
464
|
-
function
|
|
464
|
+
function se(e, t) {
|
|
465
465
|
if (typeof t != "function" && t !== null)
|
|
466
466
|
throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
|
|
467
|
-
|
|
467
|
+
Re(e, t);
|
|
468
468
|
function r() {
|
|
469
469
|
this.constructor = e;
|
|
470
470
|
}
|
|
471
471
|
e.prototype = t === null ? Object.create(t) : (r.prototype = t.prototype, new r());
|
|
472
472
|
}
|
|
473
|
-
function
|
|
473
|
+
function Ue(e) {
|
|
474
474
|
var t = typeof Symbol == "function" && Symbol.iterator, r = t && e[t], n = 0;
|
|
475
475
|
if (r)
|
|
476
476
|
return r.call(e);
|
|
@@ -482,7 +482,7 @@ function Re(e) {
|
|
|
482
482
|
};
|
|
483
483
|
throw new TypeError(t ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
|
484
484
|
}
|
|
485
|
-
function
|
|
485
|
+
function Ge(e, t) {
|
|
486
486
|
var r = typeof Symbol == "function" && e[Symbol.iterator];
|
|
487
487
|
if (!r)
|
|
488
488
|
return e;
|
|
@@ -502,22 +502,22 @@ function Ue(e, t) {
|
|
|
502
502
|
}
|
|
503
503
|
return o;
|
|
504
504
|
}
|
|
505
|
-
function
|
|
505
|
+
function De(e, t, r) {
|
|
506
506
|
if (arguments.length === 2)
|
|
507
507
|
for (var n = 0, i = t.length, o; n < i; n++)
|
|
508
508
|
(o || !(n in t)) && (o || (o = Array.prototype.slice.call(t, 0, n)), o[n] = t[n]);
|
|
509
509
|
return e.concat(o || t);
|
|
510
510
|
}
|
|
511
|
-
function
|
|
511
|
+
function L(e) {
|
|
512
512
|
return typeof e == "function";
|
|
513
513
|
}
|
|
514
|
-
function
|
|
514
|
+
function Lt(e) {
|
|
515
515
|
var t = function(n) {
|
|
516
516
|
Error.call(n), n.stack = new Error().stack;
|
|
517
517
|
}, r = e(t);
|
|
518
518
|
return r.prototype = Object.create(Error.prototype), r.prototype.constructor = r, r;
|
|
519
519
|
}
|
|
520
|
-
var Be =
|
|
520
|
+
var Be = Lt(function(e) {
|
|
521
521
|
return function(r) {
|
|
522
522
|
e(this), this.message = r ? r.length + ` errors occurred during unsubscription:
|
|
523
523
|
` + r.map(function(n, i) {
|
|
@@ -526,13 +526,13 @@ var Be = It(function(e) {
|
|
|
526
526
|
`) : "", this.name = "UnsubscriptionError", this.errors = r;
|
|
527
527
|
};
|
|
528
528
|
});
|
|
529
|
-
function
|
|
529
|
+
function Fe(e, t) {
|
|
530
530
|
if (e) {
|
|
531
531
|
var r = e.indexOf(t);
|
|
532
532
|
0 <= r && e.splice(r, 1);
|
|
533
533
|
}
|
|
534
534
|
}
|
|
535
|
-
var
|
|
535
|
+
var ve = function() {
|
|
536
536
|
function e(t) {
|
|
537
537
|
this.initialTeardown = t, this.closed = !1, this._parentage = null, this._finalizers = null;
|
|
538
538
|
}
|
|
@@ -544,12 +544,12 @@ var ye = function() {
|
|
|
544
544
|
if (s)
|
|
545
545
|
if (this._parentage = null, Array.isArray(s))
|
|
546
546
|
try {
|
|
547
|
-
for (var a =
|
|
547
|
+
for (var a = Ue(s), h = a.next(); !h.done; h = a.next()) {
|
|
548
548
|
var u = h.value;
|
|
549
549
|
u.remove(this);
|
|
550
550
|
}
|
|
551
|
-
} catch (
|
|
552
|
-
t = { error:
|
|
551
|
+
} catch (g) {
|
|
552
|
+
t = { error: g };
|
|
553
553
|
} finally {
|
|
554
554
|
try {
|
|
555
555
|
h && !h.done && (r = a.return) && r.call(a);
|
|
@@ -561,26 +561,26 @@ var ye = function() {
|
|
|
561
561
|
else
|
|
562
562
|
s.remove(this);
|
|
563
563
|
var l = this.initialTeardown;
|
|
564
|
-
if (
|
|
564
|
+
if (L(l))
|
|
565
565
|
try {
|
|
566
566
|
l();
|
|
567
|
-
} catch (
|
|
568
|
-
o =
|
|
567
|
+
} catch (g) {
|
|
568
|
+
o = g instanceof Be ? g.errors : [g];
|
|
569
569
|
}
|
|
570
570
|
var f = this._finalizers;
|
|
571
571
|
if (f) {
|
|
572
572
|
this._finalizers = null;
|
|
573
573
|
try {
|
|
574
|
-
for (var c =
|
|
574
|
+
for (var c = Ue(f), p = c.next(); !p.done; p = c.next()) {
|
|
575
575
|
var d = p.value;
|
|
576
576
|
try {
|
|
577
|
-
|
|
578
|
-
} catch (
|
|
579
|
-
o = o ?? [],
|
|
577
|
+
nt(d);
|
|
578
|
+
} catch (g) {
|
|
579
|
+
o = o ?? [], g instanceof Be ? o = De(De([], Ge(o)), Ge(g.errors)) : o.push(g);
|
|
580
580
|
}
|
|
581
581
|
}
|
|
582
|
-
} catch (
|
|
583
|
-
n = { error:
|
|
582
|
+
} catch (g) {
|
|
583
|
+
n = { error: g };
|
|
584
584
|
} finally {
|
|
585
585
|
try {
|
|
586
586
|
p && !p.done && (i = c.return) && i.call(c);
|
|
@@ -597,7 +597,7 @@ var ye = function() {
|
|
|
597
597
|
var r;
|
|
598
598
|
if (t && t !== this)
|
|
599
599
|
if (this.closed)
|
|
600
|
-
|
|
600
|
+
nt(t);
|
|
601
601
|
else {
|
|
602
602
|
if (t instanceof e) {
|
|
603
603
|
if (t.closed || t._hasParent(this))
|
|
@@ -614,52 +614,52 @@ var ye = function() {
|
|
|
614
614
|
this._parentage = Array.isArray(r) ? (r.push(t), r) : r ? [r, t] : t;
|
|
615
615
|
}, e.prototype._removeParent = function(t) {
|
|
616
616
|
var r = this._parentage;
|
|
617
|
-
r === t ? this._parentage = null : Array.isArray(r) &&
|
|
617
|
+
r === t ? this._parentage = null : Array.isArray(r) && Fe(r, t);
|
|
618
618
|
}, e.prototype.remove = function(t) {
|
|
619
619
|
var r = this._finalizers;
|
|
620
|
-
r &&
|
|
620
|
+
r && Fe(r, t), t instanceof e && t._removeParent(this);
|
|
621
621
|
}, e.EMPTY = function() {
|
|
622
622
|
var t = new e();
|
|
623
623
|
return t.closed = !0, t;
|
|
624
624
|
}(), e;
|
|
625
|
-
}(),
|
|
626
|
-
function
|
|
627
|
-
return e instanceof
|
|
625
|
+
}(), Nt = ve.EMPTY;
|
|
626
|
+
function Ct(e) {
|
|
627
|
+
return e instanceof ve || e && "closed" in e && L(e.remove) && L(e.add) && L(e.unsubscribe);
|
|
628
628
|
}
|
|
629
|
-
function
|
|
630
|
-
|
|
629
|
+
function nt(e) {
|
|
630
|
+
L(e) ? e() : e.unsubscribe();
|
|
631
631
|
}
|
|
632
|
-
var
|
|
632
|
+
var Cr = {
|
|
633
633
|
Promise: void 0
|
|
634
|
-
},
|
|
634
|
+
}, Mr = {
|
|
635
635
|
setTimeout: function(e, t) {
|
|
636
636
|
for (var r = [], n = 2; n < arguments.length; n++)
|
|
637
637
|
r[n - 2] = arguments[n];
|
|
638
|
-
return setTimeout.apply(void 0,
|
|
638
|
+
return setTimeout.apply(void 0, De([e, t], Ge(r)));
|
|
639
639
|
},
|
|
640
640
|
clearTimeout: function(e) {
|
|
641
641
|
return clearTimeout(e);
|
|
642
642
|
},
|
|
643
643
|
delegate: void 0
|
|
644
644
|
};
|
|
645
|
-
function
|
|
646
|
-
|
|
645
|
+
function $r(e) {
|
|
646
|
+
Mr.setTimeout(function() {
|
|
647
647
|
throw e;
|
|
648
648
|
});
|
|
649
649
|
}
|
|
650
|
-
function
|
|
650
|
+
function it() {
|
|
651
651
|
}
|
|
652
|
-
function
|
|
652
|
+
function fe(e) {
|
|
653
653
|
e();
|
|
654
654
|
}
|
|
655
655
|
var Mt = function(e) {
|
|
656
|
-
|
|
656
|
+
se(t, e);
|
|
657
657
|
function t(r) {
|
|
658
658
|
var n = e.call(this) || this;
|
|
659
|
-
return n.isStopped = !1, r ? (n.destination = r,
|
|
659
|
+
return n.isStopped = !1, r ? (n.destination = r, Ct(r) && r.add(n)) : n.destination = Gr, n;
|
|
660
660
|
}
|
|
661
661
|
return t.create = function(r, n, i) {
|
|
662
|
-
return new
|
|
662
|
+
return new je(r, n, i);
|
|
663
663
|
}, t.prototype.next = function(r) {
|
|
664
664
|
this.isStopped || this._next(r);
|
|
665
665
|
}, t.prototype.error = function(r) {
|
|
@@ -683,7 +683,7 @@ var Mt = function(e) {
|
|
|
683
683
|
this.unsubscribe();
|
|
684
684
|
}
|
|
685
685
|
}, t;
|
|
686
|
-
}(
|
|
686
|
+
}(ve), Rr = function() {
|
|
687
687
|
function e(t) {
|
|
688
688
|
this.partialObserver = t;
|
|
689
689
|
}
|
|
@@ -693,7 +693,7 @@ var Mt = function(e) {
|
|
|
693
693
|
try {
|
|
694
694
|
r.next(t);
|
|
695
695
|
} catch (n) {
|
|
696
|
-
|
|
696
|
+
he(n);
|
|
697
697
|
}
|
|
698
698
|
}, e.prototype.error = function(t) {
|
|
699
699
|
var r = this.partialObserver;
|
|
@@ -701,56 +701,56 @@ var Mt = function(e) {
|
|
|
701
701
|
try {
|
|
702
702
|
r.error(t);
|
|
703
703
|
} catch (n) {
|
|
704
|
-
|
|
704
|
+
he(n);
|
|
705
705
|
}
|
|
706
706
|
else
|
|
707
|
-
|
|
707
|
+
he(t);
|
|
708
708
|
}, e.prototype.complete = function() {
|
|
709
709
|
var t = this.partialObserver;
|
|
710
710
|
if (t.complete)
|
|
711
711
|
try {
|
|
712
712
|
t.complete();
|
|
713
713
|
} catch (r) {
|
|
714
|
-
|
|
714
|
+
he(r);
|
|
715
715
|
}
|
|
716
716
|
}, e;
|
|
717
|
-
}(),
|
|
718
|
-
|
|
717
|
+
}(), je = function(e) {
|
|
718
|
+
se(t, e);
|
|
719
719
|
function t(r, n, i) {
|
|
720
720
|
var o = e.call(this) || this, s;
|
|
721
|
-
return
|
|
721
|
+
return L(r) || !r ? s = {
|
|
722
722
|
next: r ?? void 0,
|
|
723
723
|
error: n ?? void 0,
|
|
724
724
|
complete: i ?? void 0
|
|
725
|
-
} : s = r, o.destination = new
|
|
725
|
+
} : s = r, o.destination = new Rr(s), o;
|
|
726
726
|
}
|
|
727
727
|
return t;
|
|
728
728
|
}(Mt);
|
|
729
|
-
function
|
|
730
|
-
|
|
729
|
+
function he(e) {
|
|
730
|
+
$r(e);
|
|
731
731
|
}
|
|
732
|
-
function
|
|
732
|
+
function Ur(e) {
|
|
733
733
|
throw e;
|
|
734
734
|
}
|
|
735
|
-
var
|
|
735
|
+
var Gr = {
|
|
736
736
|
closed: !0,
|
|
737
|
-
next:
|
|
738
|
-
error:
|
|
739
|
-
complete:
|
|
740
|
-
},
|
|
737
|
+
next: it,
|
|
738
|
+
error: Ur,
|
|
739
|
+
complete: it
|
|
740
|
+
}, Dr = function() {
|
|
741
741
|
return typeof Symbol == "function" && Symbol.observable || "@@observable";
|
|
742
742
|
}();
|
|
743
|
-
function
|
|
743
|
+
function Fr(e) {
|
|
744
744
|
return e;
|
|
745
745
|
}
|
|
746
|
-
function
|
|
747
|
-
return e.length === 0 ?
|
|
746
|
+
function jr(e) {
|
|
747
|
+
return e.length === 0 ? Fr : e.length === 1 ? e[0] : function(r) {
|
|
748
748
|
return e.reduce(function(n, i) {
|
|
749
749
|
return i(n);
|
|
750
750
|
}, r);
|
|
751
751
|
};
|
|
752
752
|
}
|
|
753
|
-
var
|
|
753
|
+
var ot = function() {
|
|
754
754
|
function e(t) {
|
|
755
755
|
t && (this._subscribe = t);
|
|
756
756
|
}
|
|
@@ -758,8 +758,8 @@ var it = function() {
|
|
|
758
758
|
var r = new e();
|
|
759
759
|
return r.source = this, r.operator = t, r;
|
|
760
760
|
}, e.prototype.subscribe = function(t, r, n) {
|
|
761
|
-
var i = this, o =
|
|
762
|
-
return
|
|
761
|
+
var i = this, o = Vr(t) ? t : new je(t, r, n);
|
|
762
|
+
return fe(function() {
|
|
763
763
|
var s = i, a = s.operator, h = s.source;
|
|
764
764
|
o.add(a ? a.call(o, h) : h ? i._subscribe(o) : i._trySubscribe(o));
|
|
765
765
|
}), o;
|
|
@@ -771,8 +771,8 @@ var it = function() {
|
|
|
771
771
|
}
|
|
772
772
|
}, e.prototype.forEach = function(t, r) {
|
|
773
773
|
var n = this;
|
|
774
|
-
return r =
|
|
775
|
-
var s = new
|
|
774
|
+
return r = st(r), new r(function(i, o) {
|
|
775
|
+
var s = new je({
|
|
776
776
|
next: function(a) {
|
|
777
777
|
try {
|
|
778
778
|
t(a);
|
|
@@ -788,15 +788,15 @@ var it = function() {
|
|
|
788
788
|
}, e.prototype._subscribe = function(t) {
|
|
789
789
|
var r;
|
|
790
790
|
return (r = this.source) === null || r === void 0 ? void 0 : r.subscribe(t);
|
|
791
|
-
}, e.prototype[
|
|
791
|
+
}, e.prototype[Dr] = function() {
|
|
792
792
|
return this;
|
|
793
793
|
}, e.prototype.pipe = function() {
|
|
794
794
|
for (var t = [], r = 0; r < arguments.length; r++)
|
|
795
795
|
t[r] = arguments[r];
|
|
796
|
-
return
|
|
796
|
+
return jr(t)(this);
|
|
797
797
|
}, e.prototype.toPromise = function(t) {
|
|
798
798
|
var r = this;
|
|
799
|
-
return t =
|
|
799
|
+
return t = st(t), new t(function(n, i) {
|
|
800
800
|
var o;
|
|
801
801
|
r.subscribe(function(s) {
|
|
802
802
|
return o = s;
|
|
@@ -810,40 +810,40 @@ var it = function() {
|
|
|
810
810
|
return new e(t);
|
|
811
811
|
}, e;
|
|
812
812
|
}();
|
|
813
|
-
function
|
|
813
|
+
function st(e) {
|
|
814
814
|
var t;
|
|
815
|
-
return (t = e ??
|
|
815
|
+
return (t = e ?? Cr.Promise) !== null && t !== void 0 ? t : Promise;
|
|
816
816
|
}
|
|
817
|
-
function
|
|
818
|
-
return e &&
|
|
817
|
+
function kr(e) {
|
|
818
|
+
return e && L(e.next) && L(e.error) && L(e.complete);
|
|
819
819
|
}
|
|
820
|
-
function
|
|
821
|
-
return e && e instanceof Mt ||
|
|
820
|
+
function Vr(e) {
|
|
821
|
+
return e && e instanceof Mt || kr(e) && Ct(e);
|
|
822
822
|
}
|
|
823
|
-
var
|
|
823
|
+
var Xr = Lt(function(e) {
|
|
824
824
|
return function() {
|
|
825
825
|
e(this), this.name = "ObjectUnsubscribedError", this.message = "object unsubscribed";
|
|
826
826
|
};
|
|
827
|
-
}),
|
|
828
|
-
|
|
827
|
+
}), $t = function(e) {
|
|
828
|
+
se(t, e);
|
|
829
829
|
function t() {
|
|
830
830
|
var r = e.call(this) || this;
|
|
831
831
|
return r.closed = !1, r.currentObservers = null, r.observers = [], r.isStopped = !1, r.hasError = !1, r.thrownError = null, r;
|
|
832
832
|
}
|
|
833
833
|
return t.prototype.lift = function(r) {
|
|
834
|
-
var n = new
|
|
834
|
+
var n = new at(this, this);
|
|
835
835
|
return n.operator = r, n;
|
|
836
836
|
}, t.prototype._throwIfClosed = function() {
|
|
837
837
|
if (this.closed)
|
|
838
|
-
throw new
|
|
838
|
+
throw new Xr();
|
|
839
839
|
}, t.prototype.next = function(r) {
|
|
840
840
|
var n = this;
|
|
841
|
-
|
|
841
|
+
fe(function() {
|
|
842
842
|
var i, o;
|
|
843
843
|
if (n._throwIfClosed(), !n.isStopped) {
|
|
844
844
|
n.currentObservers || (n.currentObservers = Array.from(n.observers));
|
|
845
845
|
try {
|
|
846
|
-
for (var s =
|
|
846
|
+
for (var s = Ue(n.currentObservers), a = s.next(); !a.done; a = s.next()) {
|
|
847
847
|
var h = a.value;
|
|
848
848
|
h.next(r);
|
|
849
849
|
}
|
|
@@ -861,7 +861,7 @@ var kr = It(function(e) {
|
|
|
861
861
|
});
|
|
862
862
|
}, t.prototype.error = function(r) {
|
|
863
863
|
var n = this;
|
|
864
|
-
|
|
864
|
+
fe(function() {
|
|
865
865
|
if (n._throwIfClosed(), !n.isStopped) {
|
|
866
866
|
n.hasError = n.isStopped = !0, n.thrownError = r;
|
|
867
867
|
for (var i = n.observers; i.length; )
|
|
@@ -870,7 +870,7 @@ var kr = It(function(e) {
|
|
|
870
870
|
});
|
|
871
871
|
}, t.prototype.complete = function() {
|
|
872
872
|
var r = this;
|
|
873
|
-
|
|
873
|
+
fe(function() {
|
|
874
874
|
if (r._throwIfClosed(), !r.isStopped) {
|
|
875
875
|
r.isStopped = !0;
|
|
876
876
|
for (var n = r.observers; n.length; )
|
|
@@ -892,20 +892,20 @@ var kr = It(function(e) {
|
|
|
892
892
|
return this._throwIfClosed(), this._checkFinalizedStatuses(r), this._innerSubscribe(r);
|
|
893
893
|
}, t.prototype._innerSubscribe = function(r) {
|
|
894
894
|
var n = this, i = this, o = i.hasError, s = i.isStopped, a = i.observers;
|
|
895
|
-
return o || s ?
|
|
896
|
-
n.currentObservers = null,
|
|
895
|
+
return o || s ? Nt : (this.currentObservers = null, a.push(r), new ve(function() {
|
|
896
|
+
n.currentObservers = null, Fe(a, r);
|
|
897
897
|
}));
|
|
898
898
|
}, t.prototype._checkFinalizedStatuses = function(r) {
|
|
899
899
|
var n = this, i = n.hasError, o = n.thrownError, s = n.isStopped;
|
|
900
900
|
i ? r.error(o) : s && r.complete();
|
|
901
901
|
}, t.prototype.asObservable = function() {
|
|
902
|
-
var r = new
|
|
902
|
+
var r = new ot();
|
|
903
903
|
return r.source = this, r;
|
|
904
904
|
}, t.create = function(r, n) {
|
|
905
|
-
return new
|
|
905
|
+
return new at(r, n);
|
|
906
906
|
}, t;
|
|
907
|
-
}(
|
|
908
|
-
|
|
907
|
+
}(ot), at = function(e) {
|
|
908
|
+
se(t, e);
|
|
909
909
|
function t(r, n) {
|
|
910
910
|
var i = e.call(this) || this;
|
|
911
911
|
return i.destination = r, i.source = n, i;
|
|
@@ -921,17 +921,17 @@ var kr = It(function(e) {
|
|
|
921
921
|
(n = (r = this.destination) === null || r === void 0 ? void 0 : r.complete) === null || n === void 0 || n.call(r);
|
|
922
922
|
}, t.prototype._subscribe = function(r) {
|
|
923
923
|
var n, i;
|
|
924
|
-
return (i = (n = this.source) === null || n === void 0 ? void 0 : n.subscribe(r)) !== null && i !== void 0 ? i :
|
|
924
|
+
return (i = (n = this.source) === null || n === void 0 ? void 0 : n.subscribe(r)) !== null && i !== void 0 ? i : Nt;
|
|
925
925
|
}, t;
|
|
926
|
-
}(
|
|
926
|
+
}($t), Rt = {
|
|
927
927
|
now: function() {
|
|
928
|
-
return (
|
|
928
|
+
return (Rt.delegate || Date).now();
|
|
929
929
|
},
|
|
930
930
|
delegate: void 0
|
|
931
|
-
},
|
|
932
|
-
|
|
931
|
+
}, Wr = function(e) {
|
|
932
|
+
se(t, e);
|
|
933
933
|
function t(r, n, i) {
|
|
934
|
-
r === void 0 && (r = 1 / 0), n === void 0 && (n = 1 / 0), i === void 0 && (i =
|
|
934
|
+
r === void 0 && (r = 1 / 0), n === void 0 && (n = 1 / 0), i === void 0 && (i = Rt);
|
|
935
935
|
var o = e.call(this) || this;
|
|
936
936
|
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
937
|
}
|
|
@@ -951,20 +951,20 @@ var kr = It(function(e) {
|
|
|
951
951
|
u && o.splice(0, u + 1);
|
|
952
952
|
}
|
|
953
953
|
}, t;
|
|
954
|
-
}(
|
|
955
|
-
const
|
|
956
|
-
if (
|
|
957
|
-
const r = new
|
|
958
|
-
|
|
954
|
+
}($t);
|
|
955
|
+
const ut = [], ht = {}, zr = (e, t = 0) => {
|
|
956
|
+
if (ut.indexOf(e) == -1) {
|
|
957
|
+
const r = new Wr(t);
|
|
958
|
+
ht[e] = r, ut.push(e);
|
|
959
959
|
}
|
|
960
|
-
return
|
|
960
|
+
return ht[e];
|
|
961
961
|
}, D = [];
|
|
962
|
-
function
|
|
962
|
+
function Zr(e, t) {
|
|
963
963
|
return {
|
|
964
|
-
subscribe:
|
|
964
|
+
subscribe: _e(e, t).subscribe
|
|
965
965
|
};
|
|
966
966
|
}
|
|
967
|
-
function
|
|
967
|
+
function _e(e, t = H) {
|
|
968
968
|
let r;
|
|
969
969
|
const n = /* @__PURE__ */ new Set();
|
|
970
970
|
function i(a) {
|
|
@@ -982,131 +982,131 @@ function ve(e, t = B) {
|
|
|
982
982
|
function o(a) {
|
|
983
983
|
i(a(e));
|
|
984
984
|
}
|
|
985
|
-
function s(a, h =
|
|
985
|
+
function s(a, h = H) {
|
|
986
986
|
const u = [a, h];
|
|
987
|
-
return n.add(u), n.size === 1 && (r = t(i, o) ||
|
|
987
|
+
return n.add(u), n.size === 1 && (r = t(i, o) || H), a(e), () => {
|
|
988
988
|
n.delete(u), n.size === 0 && r && (r(), r = null);
|
|
989
989
|
};
|
|
990
990
|
}
|
|
991
991
|
return { set: i, update: o, subscribe: s };
|
|
992
992
|
}
|
|
993
|
-
function
|
|
993
|
+
function Q(e, t, r) {
|
|
994
994
|
const n = !Array.isArray(e), i = n ? [e] : e;
|
|
995
995
|
if (!i.every(Boolean))
|
|
996
996
|
throw new Error("derived() expects stores as input, got a falsy value");
|
|
997
997
|
const o = t.length < 2;
|
|
998
|
-
return
|
|
998
|
+
return Zr(r, (s, a) => {
|
|
999
999
|
let h = !1;
|
|
1000
1000
|
const u = [];
|
|
1001
|
-
let l = 0, f =
|
|
1001
|
+
let l = 0, f = H;
|
|
1002
1002
|
const c = () => {
|
|
1003
1003
|
if (l)
|
|
1004
1004
|
return;
|
|
1005
1005
|
f();
|
|
1006
1006
|
const d = t(n ? u[0] : u, s, a);
|
|
1007
|
-
o ? s(d) : f =
|
|
1007
|
+
o ? s(d) : f = qe(d) ? d : H;
|
|
1008
1008
|
}, p = i.map(
|
|
1009
|
-
(d,
|
|
1009
|
+
(d, g) => At(
|
|
1010
1010
|
d,
|
|
1011
|
-
(
|
|
1012
|
-
u[
|
|
1011
|
+
(w) => {
|
|
1012
|
+
u[g] = w, l &= ~(1 << g), h && c();
|
|
1013
1013
|
},
|
|
1014
1014
|
() => {
|
|
1015
|
-
l |= 1 <<
|
|
1015
|
+
l |= 1 << g;
|
|
1016
1016
|
}
|
|
1017
1017
|
)
|
|
1018
1018
|
);
|
|
1019
1019
|
return h = !0, c(), function() {
|
|
1020
|
-
|
|
1020
|
+
ie(p), f(), h = !1;
|
|
1021
1021
|
};
|
|
1022
1022
|
});
|
|
1023
1023
|
}
|
|
1024
|
-
function
|
|
1024
|
+
function Qr(e) {
|
|
1025
1025
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
1026
1026
|
}
|
|
1027
|
-
var
|
|
1028
|
-
return
|
|
1027
|
+
var Yr = function(t) {
|
|
1028
|
+
return Jr(t) && !qr(t);
|
|
1029
1029
|
};
|
|
1030
|
-
function
|
|
1030
|
+
function Jr(e) {
|
|
1031
1031
|
return !!e && typeof e == "object";
|
|
1032
1032
|
}
|
|
1033
|
-
function
|
|
1033
|
+
function qr(e) {
|
|
1034
1034
|
var t = Object.prototype.toString.call(e);
|
|
1035
|
-
return t === "[object RegExp]" || t === "[object Date]" ||
|
|
1035
|
+
return t === "[object RegExp]" || t === "[object Date]" || tn(e);
|
|
1036
1036
|
}
|
|
1037
|
-
var
|
|
1038
|
-
function
|
|
1039
|
-
return e.$$typeof ===
|
|
1037
|
+
var Kr = typeof Symbol == "function" && Symbol.for, en = Kr ? Symbol.for("react.element") : 60103;
|
|
1038
|
+
function tn(e) {
|
|
1039
|
+
return e.$$typeof === en;
|
|
1040
1040
|
}
|
|
1041
|
-
function
|
|
1041
|
+
function rn(e) {
|
|
1042
1042
|
return Array.isArray(e) ? [] : {};
|
|
1043
1043
|
}
|
|
1044
|
-
function
|
|
1045
|
-
return t.clone !== !1 && t.isMergeableObject(e) ?
|
|
1044
|
+
function re(e, t) {
|
|
1045
|
+
return t.clone !== !1 && t.isMergeableObject(e) ? V(rn(e), e, t) : e;
|
|
1046
1046
|
}
|
|
1047
|
-
function
|
|
1047
|
+
function nn(e, t, r) {
|
|
1048
1048
|
return e.concat(t).map(function(n) {
|
|
1049
|
-
return
|
|
1049
|
+
return re(n, r);
|
|
1050
1050
|
});
|
|
1051
1051
|
}
|
|
1052
|
-
function
|
|
1052
|
+
function on(e, t) {
|
|
1053
1053
|
if (!t.customMerge)
|
|
1054
|
-
return
|
|
1054
|
+
return V;
|
|
1055
1055
|
var r = t.customMerge(e);
|
|
1056
|
-
return typeof r == "function" ? r :
|
|
1056
|
+
return typeof r == "function" ? r : V;
|
|
1057
1057
|
}
|
|
1058
|
-
function
|
|
1058
|
+
function sn(e) {
|
|
1059
1059
|
return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(e).filter(function(t) {
|
|
1060
1060
|
return Object.propertyIsEnumerable.call(e, t);
|
|
1061
1061
|
}) : [];
|
|
1062
1062
|
}
|
|
1063
|
-
function
|
|
1064
|
-
return Object.keys(e).concat(
|
|
1063
|
+
function lt(e) {
|
|
1064
|
+
return Object.keys(e).concat(sn(e));
|
|
1065
1065
|
}
|
|
1066
|
-
function
|
|
1066
|
+
function Ut(e, t) {
|
|
1067
1067
|
try {
|
|
1068
1068
|
return t in e;
|
|
1069
1069
|
} catch {
|
|
1070
1070
|
return !1;
|
|
1071
1071
|
}
|
|
1072
1072
|
}
|
|
1073
|
-
function
|
|
1074
|
-
return
|
|
1073
|
+
function an(e, t) {
|
|
1074
|
+
return Ut(e, t) && !(Object.hasOwnProperty.call(e, t) && Object.propertyIsEnumerable.call(e, t));
|
|
1075
1075
|
}
|
|
1076
|
-
function
|
|
1076
|
+
function un(e, t, r) {
|
|
1077
1077
|
var n = {};
|
|
1078
|
-
return r.isMergeableObject(e) &&
|
|
1079
|
-
n[i] =
|
|
1080
|
-
}),
|
|
1081
|
-
|
|
1078
|
+
return r.isMergeableObject(e) && lt(e).forEach(function(i) {
|
|
1079
|
+
n[i] = re(e[i], r);
|
|
1080
|
+
}), lt(t).forEach(function(i) {
|
|
1081
|
+
an(e, i) || (Ut(e, i) && r.isMergeableObject(t[i]) ? n[i] = on(i, r)(e[i], t[i], r) : n[i] = re(t[i], r));
|
|
1082
1082
|
}), n;
|
|
1083
1083
|
}
|
|
1084
|
-
function
|
|
1085
|
-
r = r || {}, r.arrayMerge = r.arrayMerge ||
|
|
1084
|
+
function V(e, t, r) {
|
|
1085
|
+
r = r || {}, r.arrayMerge = r.arrayMerge || nn, r.isMergeableObject = r.isMergeableObject || Yr, r.cloneUnlessOtherwiseSpecified = re;
|
|
1086
1086
|
var n = Array.isArray(t), i = Array.isArray(e), o = n === i;
|
|
1087
|
-
return o ? n ? r.arrayMerge(e, t, r) :
|
|
1087
|
+
return o ? n ? r.arrayMerge(e, t, r) : un(e, t, r) : re(t, r);
|
|
1088
1088
|
}
|
|
1089
|
-
|
|
1089
|
+
V.all = function(t, r) {
|
|
1090
1090
|
if (!Array.isArray(t))
|
|
1091
1091
|
throw new Error("first argument should be an array");
|
|
1092
1092
|
return t.reduce(function(n, i) {
|
|
1093
|
-
return
|
|
1093
|
+
return V(n, i, r);
|
|
1094
1094
|
}, {});
|
|
1095
1095
|
};
|
|
1096
|
-
var
|
|
1097
|
-
const
|
|
1098
|
-
var
|
|
1099
|
-
return
|
|
1096
|
+
var hn = V, ln = hn;
|
|
1097
|
+
const cn = /* @__PURE__ */ Qr(ln);
|
|
1098
|
+
var ke = function(e, t) {
|
|
1099
|
+
return ke = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
|
|
1100
1100
|
r.__proto__ = n;
|
|
1101
1101
|
} || function(r, n) {
|
|
1102
1102
|
for (var i in n)
|
|
1103
1103
|
Object.prototype.hasOwnProperty.call(n, i) && (r[i] = n[i]);
|
|
1104
|
-
},
|
|
1104
|
+
}, ke(e, t);
|
|
1105
1105
|
};
|
|
1106
|
-
function
|
|
1106
|
+
function Ee(e, t) {
|
|
1107
1107
|
if (typeof t != "function" && t !== null)
|
|
1108
1108
|
throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
|
|
1109
|
-
|
|
1109
|
+
ke(e, t);
|
|
1110
1110
|
function r() {
|
|
1111
1111
|
this.constructor = e;
|
|
1112
1112
|
}
|
|
@@ -1122,7 +1122,7 @@ var A = function() {
|
|
|
1122
1122
|
return t;
|
|
1123
1123
|
}, A.apply(this, arguments);
|
|
1124
1124
|
};
|
|
1125
|
-
function
|
|
1125
|
+
function fn(e, t) {
|
|
1126
1126
|
var r = {};
|
|
1127
1127
|
for (var n in e)
|
|
1128
1128
|
Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
@@ -1131,43 +1131,43 @@ function ln(e, t) {
|
|
|
1131
1131
|
t.indexOf(n[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[i]) && (r[n[i]] = e[n[i]]);
|
|
1132
1132
|
return r;
|
|
1133
1133
|
}
|
|
1134
|
-
function
|
|
1134
|
+
function Ae(e, t, r) {
|
|
1135
1135
|
if (r || arguments.length === 2)
|
|
1136
1136
|
for (var n = 0, i = t.length, o; n < i; n++)
|
|
1137
1137
|
(o || !(n in t)) && (o || (o = Array.prototype.slice.call(t, 0, n)), o[n] = t[n]);
|
|
1138
1138
|
return e.concat(o || Array.prototype.slice.call(t));
|
|
1139
1139
|
}
|
|
1140
|
-
function
|
|
1141
|
-
var r = t && t.cache ? t.cache :
|
|
1140
|
+
function Pe(e, t) {
|
|
1141
|
+
var r = t && t.cache ? t.cache : vn, n = t && t.serializer ? t.serializer : yn, i = t && t.strategy ? t.strategy : mn;
|
|
1142
1142
|
return i(e, {
|
|
1143
1143
|
cache: r,
|
|
1144
1144
|
serializer: n
|
|
1145
1145
|
});
|
|
1146
1146
|
}
|
|
1147
|
-
function
|
|
1147
|
+
function pn(e) {
|
|
1148
1148
|
return e == null || typeof e == "number" || typeof e == "boolean";
|
|
1149
1149
|
}
|
|
1150
|
-
function
|
|
1151
|
-
var i =
|
|
1150
|
+
function dn(e, t, r, n) {
|
|
1151
|
+
var i = pn(n) ? n : r(n), o = t.get(i);
|
|
1152
1152
|
return typeof o > "u" && (o = e.call(this, n), t.set(i, o)), o;
|
|
1153
1153
|
}
|
|
1154
|
-
function
|
|
1154
|
+
function Gt(e, t, r) {
|
|
1155
1155
|
var n = Array.prototype.slice.call(arguments, 3), i = r(n), o = t.get(i);
|
|
1156
1156
|
return typeof o > "u" && (o = e.apply(this, n), t.set(i, o)), o;
|
|
1157
1157
|
}
|
|
1158
|
-
function
|
|
1158
|
+
function Dt(e, t, r, n, i) {
|
|
1159
1159
|
return r.bind(t, e, n, i);
|
|
1160
1160
|
}
|
|
1161
|
-
function
|
|
1162
|
-
var r = e.length === 1 ?
|
|
1163
|
-
return
|
|
1161
|
+
function mn(e, t) {
|
|
1162
|
+
var r = e.length === 1 ? dn : Gt;
|
|
1163
|
+
return Dt(e, this, r, t.cache.create(), t.serializer);
|
|
1164
1164
|
}
|
|
1165
|
-
function
|
|
1166
|
-
return
|
|
1165
|
+
function bn(e, t) {
|
|
1166
|
+
return Dt(e, this, Gt, t.cache.create(), t.serializer);
|
|
1167
1167
|
}
|
|
1168
|
-
var
|
|
1168
|
+
var yn = function() {
|
|
1169
1169
|
return JSON.stringify(arguments);
|
|
1170
|
-
},
|
|
1170
|
+
}, gn = (
|
|
1171
1171
|
/** @class */
|
|
1172
1172
|
function() {
|
|
1173
1173
|
function e() {
|
|
@@ -1179,21 +1179,21 @@ var mn = function() {
|
|
|
1179
1179
|
this.cache[t] = r;
|
|
1180
1180
|
}, e;
|
|
1181
1181
|
}()
|
|
1182
|
-
),
|
|
1182
|
+
), vn = {
|
|
1183
1183
|
create: function() {
|
|
1184
|
-
return new
|
|
1184
|
+
return new gn();
|
|
1185
1185
|
}
|
|
1186
|
-
},
|
|
1187
|
-
variadic:
|
|
1188
|
-
},
|
|
1189
|
-
return
|
|
1186
|
+
}, Oe = {
|
|
1187
|
+
variadic: bn
|
|
1188
|
+
}, me = function() {
|
|
1189
|
+
return me = Object.assign || function(t) {
|
|
1190
1190
|
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
1191
1191
|
r = arguments[n];
|
|
1192
1192
|
for (var o in r)
|
|
1193
1193
|
Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
|
|
1194
1194
|
}
|
|
1195
1195
|
return t;
|
|
1196
|
-
},
|
|
1196
|
+
}, me.apply(this, arguments);
|
|
1197
1197
|
};
|
|
1198
1198
|
var m;
|
|
1199
1199
|
(function(e) {
|
|
@@ -1203,47 +1203,47 @@ var v;
|
|
|
1203
1203
|
(function(e) {
|
|
1204
1204
|
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";
|
|
1205
1205
|
})(v || (v = {}));
|
|
1206
|
-
var
|
|
1206
|
+
var X;
|
|
1207
1207
|
(function(e) {
|
|
1208
1208
|
e[e.number = 0] = "number", e[e.dateTime = 1] = "dateTime";
|
|
1209
|
-
})(
|
|
1210
|
-
function
|
|
1209
|
+
})(X || (X = {}));
|
|
1210
|
+
function ct(e) {
|
|
1211
1211
|
return e.type === v.literal;
|
|
1212
1212
|
}
|
|
1213
|
-
function
|
|
1213
|
+
function _n(e) {
|
|
1214
1214
|
return e.type === v.argument;
|
|
1215
1215
|
}
|
|
1216
|
-
function
|
|
1216
|
+
function Ft(e) {
|
|
1217
1217
|
return e.type === v.number;
|
|
1218
1218
|
}
|
|
1219
|
-
function
|
|
1219
|
+
function jt(e) {
|
|
1220
1220
|
return e.type === v.date;
|
|
1221
1221
|
}
|
|
1222
|
-
function
|
|
1222
|
+
function kt(e) {
|
|
1223
1223
|
return e.type === v.time;
|
|
1224
1224
|
}
|
|
1225
|
-
function
|
|
1225
|
+
function Vt(e) {
|
|
1226
1226
|
return e.type === v.select;
|
|
1227
1227
|
}
|
|
1228
|
-
function
|
|
1228
|
+
function Xt(e) {
|
|
1229
1229
|
return e.type === v.plural;
|
|
1230
1230
|
}
|
|
1231
|
-
function
|
|
1231
|
+
function En(e) {
|
|
1232
1232
|
return e.type === v.pound;
|
|
1233
1233
|
}
|
|
1234
|
-
function
|
|
1234
|
+
function Wt(e) {
|
|
1235
1235
|
return e.type === v.tag;
|
|
1236
1236
|
}
|
|
1237
|
-
function
|
|
1238
|
-
return !!(e && typeof e == "object" && e.type ===
|
|
1237
|
+
function zt(e) {
|
|
1238
|
+
return !!(e && typeof e == "object" && e.type === X.number);
|
|
1239
1239
|
}
|
|
1240
|
-
function
|
|
1241
|
-
return !!(e && typeof e == "object" && e.type ===
|
|
1240
|
+
function Ve(e) {
|
|
1241
|
+
return !!(e && typeof e == "object" && e.type === X.dateTime);
|
|
1242
1242
|
}
|
|
1243
|
-
var
|
|
1244
|
-
function
|
|
1243
|
+
var Zt = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, xn = /(?:[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;
|
|
1244
|
+
function Sn(e) {
|
|
1245
1245
|
var t = {};
|
|
1246
|
-
return e.replace(
|
|
1246
|
+
return e.replace(xn, function(r) {
|
|
1247
1247
|
var n = r.length;
|
|
1248
1248
|
switch (r[0]) {
|
|
1249
1249
|
case "G":
|
|
@@ -1342,11 +1342,11 @@ var _ = function() {
|
|
|
1342
1342
|
return t;
|
|
1343
1343
|
}, _.apply(this, arguments);
|
|
1344
1344
|
};
|
|
1345
|
-
var
|
|
1346
|
-
function
|
|
1345
|
+
var Tn = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
|
|
1346
|
+
function wn(e) {
|
|
1347
1347
|
if (e.length === 0)
|
|
1348
1348
|
throw new Error("Number skeleton cannot be empty");
|
|
1349
|
-
for (var t = e.split(
|
|
1349
|
+
for (var t = e.split(Tn).filter(function(c) {
|
|
1350
1350
|
return c.length > 0;
|
|
1351
1351
|
}), r = [], n = 0, i = t; n < i.length; n++) {
|
|
1352
1352
|
var o = i[n], s = o.split("/");
|
|
@@ -1361,13 +1361,13 @@ function Sn(e) {
|
|
|
1361
1361
|
}
|
|
1362
1362
|
return r;
|
|
1363
1363
|
}
|
|
1364
|
-
function
|
|
1364
|
+
function Hn(e) {
|
|
1365
1365
|
return e.replace(/^(.*?)-/, "");
|
|
1366
1366
|
}
|
|
1367
|
-
var
|
|
1368
|
-
function
|
|
1367
|
+
var ft = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, Qt = /^(@+)?(\+|#+)?[rs]?$/g, Bn = /(\*)(0+)|(#+)(0+)|(0+)/g, Yt = /^(0+)$/;
|
|
1368
|
+
function pt(e) {
|
|
1369
1369
|
var t = {};
|
|
1370
|
-
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(
|
|
1370
|
+
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(Qt, function(r, n, i) {
|
|
1371
1371
|
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)), "";
|
|
1372
1372
|
}), t;
|
|
1373
1373
|
}
|
|
@@ -1411,7 +1411,7 @@ function Jt(e) {
|
|
|
1411
1411
|
};
|
|
1412
1412
|
}
|
|
1413
1413
|
}
|
|
1414
|
-
function
|
|
1414
|
+
function An(e) {
|
|
1415
1415
|
var t;
|
|
1416
1416
|
if (e[0] === "E" && e[1] === "E" ? (t = {
|
|
1417
1417
|
notation: "engineering"
|
|
@@ -1419,17 +1419,17 @@ function Bn(e) {
|
|
|
1419
1419
|
notation: "scientific"
|
|
1420
1420
|
}, e = e.slice(1)), t) {
|
|
1421
1421
|
var r = e.slice(0, 2);
|
|
1422
|
-
if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !
|
|
1422
|
+
if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !Yt.test(e))
|
|
1423
1423
|
throw new Error("Malformed concise eng/scientific notation");
|
|
1424
1424
|
t.minimumIntegerDigits = e.length;
|
|
1425
1425
|
}
|
|
1426
1426
|
return t;
|
|
1427
1427
|
}
|
|
1428
|
-
function
|
|
1428
|
+
function dt(e) {
|
|
1429
1429
|
var t = {}, r = Jt(e);
|
|
1430
1430
|
return r || t;
|
|
1431
1431
|
}
|
|
1432
|
-
function
|
|
1432
|
+
function Pn(e) {
|
|
1433
1433
|
for (var t = {}, r = 0, n = e; r < n.length; r++) {
|
|
1434
1434
|
var i = n[r];
|
|
1435
1435
|
switch (i.stem) {
|
|
@@ -1453,7 +1453,7 @@ function wn(e) {
|
|
|
1453
1453
|
continue;
|
|
1454
1454
|
case "measure-unit":
|
|
1455
1455
|
case "unit":
|
|
1456
|
-
t.style = "unit", t.unit =
|
|
1456
|
+
t.style = "unit", t.unit = Hn(i.options[0]);
|
|
1457
1457
|
continue;
|
|
1458
1458
|
case "compact-short":
|
|
1459
1459
|
case "K":
|
|
@@ -1465,12 +1465,12 @@ function wn(e) {
|
|
|
1465
1465
|
continue;
|
|
1466
1466
|
case "scientific":
|
|
1467
1467
|
t = _(_(_({}, t), { notation: "scientific" }), i.options.reduce(function(h, u) {
|
|
1468
|
-
return _(_({}, h),
|
|
1468
|
+
return _(_({}, h), dt(u));
|
|
1469
1469
|
}, {}));
|
|
1470
1470
|
continue;
|
|
1471
1471
|
case "engineering":
|
|
1472
1472
|
t = _(_(_({}, t), { notation: "engineering" }), i.options.reduce(function(h, u) {
|
|
1473
|
-
return _(_({}, h),
|
|
1473
|
+
return _(_({}, h), dt(u));
|
|
1474
1474
|
}, {}));
|
|
1475
1475
|
continue;
|
|
1476
1476
|
case "notation-simple":
|
|
@@ -1515,7 +1515,7 @@ function wn(e) {
|
|
|
1515
1515
|
case "integer-width":
|
|
1516
1516
|
if (i.options.length > 1)
|
|
1517
1517
|
throw new RangeError("integer-width stems only accept a single optional option");
|
|
1518
|
-
i.options[0].replace(
|
|
1518
|
+
i.options[0].replace(Bn, function(h, u, l, f, c, p) {
|
|
1519
1519
|
if (u)
|
|
1520
1520
|
t.minimumIntegerDigits = l.length;
|
|
1521
1521
|
else {
|
|
@@ -1528,32 +1528,32 @@ function wn(e) {
|
|
|
1528
1528
|
});
|
|
1529
1529
|
continue;
|
|
1530
1530
|
}
|
|
1531
|
-
if (
|
|
1531
|
+
if (Yt.test(i.stem)) {
|
|
1532
1532
|
t.minimumIntegerDigits = i.stem.length;
|
|
1533
1533
|
continue;
|
|
1534
1534
|
}
|
|
1535
|
-
if (
|
|
1535
|
+
if (ft.test(i.stem)) {
|
|
1536
1536
|
if (i.options.length > 1)
|
|
1537
1537
|
throw new RangeError("Fraction-precision stems only accept a single optional option");
|
|
1538
|
-
i.stem.replace(
|
|
1538
|
+
i.stem.replace(ft, function(h, u, l, f, c, p) {
|
|
1539
1539
|
return l === "*" ? t.minimumFractionDigits = u.length : f && f[0] === "#" ? t.maximumFractionDigits = f.length : c && p ? (t.minimumFractionDigits = c.length, t.maximumFractionDigits = c.length + p.length) : (t.minimumFractionDigits = u.length, t.maximumFractionDigits = u.length), "";
|
|
1540
1540
|
});
|
|
1541
1541
|
var o = i.options[0];
|
|
1542
|
-
o === "w" ? t = _(_({}, t), { trailingZeroDisplay: "stripIfInteger" }) : o && (t = _(_({}, t),
|
|
1542
|
+
o === "w" ? t = _(_({}, t), { trailingZeroDisplay: "stripIfInteger" }) : o && (t = _(_({}, t), pt(o)));
|
|
1543
1543
|
continue;
|
|
1544
1544
|
}
|
|
1545
|
-
if (
|
|
1546
|
-
t = _(_({}, t),
|
|
1545
|
+
if (Qt.test(i.stem)) {
|
|
1546
|
+
t = _(_({}, t), pt(i.stem));
|
|
1547
1547
|
continue;
|
|
1548
1548
|
}
|
|
1549
1549
|
var s = Jt(i.stem);
|
|
1550
1550
|
s && (t = _(_({}, t), s));
|
|
1551
|
-
var a =
|
|
1551
|
+
var a = An(i.stem);
|
|
1552
1552
|
a && (t = _(_({}, t), a));
|
|
1553
1553
|
}
|
|
1554
1554
|
return t;
|
|
1555
1555
|
}
|
|
1556
|
-
var
|
|
1556
|
+
var le = {
|
|
1557
1557
|
"001": [
|
|
1558
1558
|
"H",
|
|
1559
1559
|
"h"
|
|
@@ -2968,13 +2968,13 @@ var he = {
|
|
|
2968
2968
|
"h"
|
|
2969
2969
|
]
|
|
2970
2970
|
};
|
|
2971
|
-
function
|
|
2971
|
+
function On(e, t) {
|
|
2972
2972
|
for (var r = "", n = 0; n < e.length; n++) {
|
|
2973
2973
|
var i = e.charAt(n);
|
|
2974
2974
|
if (i === "j") {
|
|
2975
2975
|
for (var o = 0; n + 1 < e.length && e.charAt(n + 1) === i; )
|
|
2976
2976
|
o++, n++;
|
|
2977
|
-
var s = 1 + (o & 1), a = o < 2 ? 1 : 3 + (o >> 1), h = "a", u =
|
|
2977
|
+
var s = 1 + (o & 1), a = o < 2 ? 1 : 3 + (o >> 1), h = "a", u = In(t);
|
|
2978
2978
|
for ((u == "H" || u == "k") && (a = 0); a-- > 0; )
|
|
2979
2979
|
r += h;
|
|
2980
2980
|
for (; s-- > 0; )
|
|
@@ -2984,7 +2984,7 @@ function An(e, t) {
|
|
|
2984
2984
|
}
|
|
2985
2985
|
return r;
|
|
2986
2986
|
}
|
|
2987
|
-
function
|
|
2987
|
+
function In(e) {
|
|
2988
2988
|
var t = e.hourCycle;
|
|
2989
2989
|
if (t === void 0 && // @ts-ignore hourCycle(s) is not identified yet
|
|
2990
2990
|
e.hourCycles && // @ts-ignore
|
|
@@ -3003,23 +3003,23 @@ function Pn(e) {
|
|
|
3003
3003
|
}
|
|
3004
3004
|
var r = e.language, n;
|
|
3005
3005
|
r !== "root" && (n = e.maximize().region);
|
|
3006
|
-
var i =
|
|
3006
|
+
var i = le[n || ""] || le[r || ""] || le["".concat(r, "-001")] || le["001"];
|
|
3007
3007
|
return i[0];
|
|
3008
3008
|
}
|
|
3009
|
-
var
|
|
3009
|
+
var Ie, Ln = new RegExp("^".concat(Zt.source, "*")), Nn = new RegExp("".concat(Zt.source, "*$"));
|
|
3010
3010
|
function b(e, t) {
|
|
3011
3011
|
return { start: e, end: t };
|
|
3012
3012
|
}
|
|
3013
|
-
var
|
|
3013
|
+
var Cn = !!String.prototype.startsWith && "_a".startsWith("a", 1), Mn = !!String.fromCodePoint, $n = !!Object.fromEntries, Rn = !!String.prototype.codePointAt, Un = !!String.prototype.trimStart, Gn = !!String.prototype.trimEnd, Dn = !!Number.isSafeInteger, Fn = Dn ? Number.isSafeInteger : function(e) {
|
|
3014
3014
|
return typeof e == "number" && isFinite(e) && Math.floor(e) === e && Math.abs(e) <= 9007199254740991;
|
|
3015
|
-
},
|
|
3015
|
+
}, Xe = !0;
|
|
3016
3016
|
try {
|
|
3017
|
-
var
|
|
3018
|
-
|
|
3017
|
+
var jn = Kt("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
3018
|
+
Xe = ((Ie = jn.exec("a")) === null || Ie === void 0 ? void 0 : Ie[0]) === "a";
|
|
3019
3019
|
} catch {
|
|
3020
|
-
|
|
3020
|
+
Xe = !1;
|
|
3021
3021
|
}
|
|
3022
|
-
var
|
|
3022
|
+
var mt = Cn ? (
|
|
3023
3023
|
// Native
|
|
3024
3024
|
function(t, r, n) {
|
|
3025
3025
|
return t.startsWith(r, n);
|
|
@@ -3029,7 +3029,7 @@ var dt = Ln ? (
|
|
|
3029
3029
|
function(t, r, n) {
|
|
3030
3030
|
return t.slice(n, n + r.length) === r;
|
|
3031
3031
|
}
|
|
3032
|
-
),
|
|
3032
|
+
), We = Mn ? String.fromCodePoint : (
|
|
3033
3033
|
// IE11
|
|
3034
3034
|
function() {
|
|
3035
3035
|
for (var t = [], r = 0; r < arguments.length; r++)
|
|
@@ -3041,9 +3041,9 @@ var dt = Ln ? (
|
|
|
3041
3041
|
}
|
|
3042
3042
|
return n;
|
|
3043
3043
|
}
|
|
3044
|
-
),
|
|
3044
|
+
), bt = (
|
|
3045
3045
|
// native
|
|
3046
|
-
|
|
3046
|
+
$n ? Object.fromEntries : (
|
|
3047
3047
|
// Ponyfill
|
|
3048
3048
|
function(t) {
|
|
3049
3049
|
for (var r = {}, n = 0, i = t; n < i.length; n++) {
|
|
@@ -3053,7 +3053,7 @@ var dt = Ln ? (
|
|
|
3053
3053
|
return r;
|
|
3054
3054
|
}
|
|
3055
3055
|
)
|
|
3056
|
-
),
|
|
3056
|
+
), qt = Rn ? (
|
|
3057
3057
|
// Native
|
|
3058
3058
|
function(t, r) {
|
|
3059
3059
|
return t.codePointAt(r);
|
|
@@ -3067,7 +3067,7 @@ var dt = Ln ? (
|
|
|
3067
3067
|
return i < 55296 || i > 56319 || r + 1 === n || (o = t.charCodeAt(r + 1)) < 56320 || o > 57343 ? i : (i - 55296 << 10) + (o - 56320) + 65536;
|
|
3068
3068
|
}
|
|
3069
3069
|
}
|
|
3070
|
-
),
|
|
3070
|
+
), kn = Un ? (
|
|
3071
3071
|
// Native
|
|
3072
3072
|
function(t) {
|
|
3073
3073
|
return t.trimStart();
|
|
@@ -3075,9 +3075,9 @@ var dt = Ln ? (
|
|
|
3075
3075
|
) : (
|
|
3076
3076
|
// Ponyfill
|
|
3077
3077
|
function(t) {
|
|
3078
|
-
return t.replace(
|
|
3078
|
+
return t.replace(Ln, "");
|
|
3079
3079
|
}
|
|
3080
|
-
),
|
|
3080
|
+
), Vn = Gn ? (
|
|
3081
3081
|
// Native
|
|
3082
3082
|
function(t) {
|
|
3083
3083
|
return t.trimEnd();
|
|
@@ -3085,32 +3085,32 @@ var dt = Ln ? (
|
|
|
3085
3085
|
) : (
|
|
3086
3086
|
// Ponyfill
|
|
3087
3087
|
function(t) {
|
|
3088
|
-
return t.replace(
|
|
3088
|
+
return t.replace(Nn, "");
|
|
3089
3089
|
}
|
|
3090
3090
|
);
|
|
3091
|
-
function
|
|
3091
|
+
function Kt(e, t) {
|
|
3092
3092
|
return new RegExp(e, t);
|
|
3093
3093
|
}
|
|
3094
|
-
var
|
|
3095
|
-
if (
|
|
3096
|
-
var
|
|
3097
|
-
|
|
3094
|
+
var ze;
|
|
3095
|
+
if (Xe) {
|
|
3096
|
+
var yt = Kt("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
3097
|
+
ze = function(t, r) {
|
|
3098
3098
|
var n;
|
|
3099
|
-
|
|
3100
|
-
var i =
|
|
3099
|
+
yt.lastIndex = r;
|
|
3100
|
+
var i = yt.exec(t);
|
|
3101
3101
|
return (n = i[1]) !== null && n !== void 0 ? n : "";
|
|
3102
3102
|
};
|
|
3103
3103
|
} else
|
|
3104
|
-
|
|
3104
|
+
ze = function(t, r) {
|
|
3105
3105
|
for (var n = []; ; ) {
|
|
3106
|
-
var i =
|
|
3107
|
-
if (i === void 0 ||
|
|
3106
|
+
var i = qt(t, r);
|
|
3107
|
+
if (i === void 0 || er(i) || Zn(i))
|
|
3108
3108
|
break;
|
|
3109
3109
|
n.push(i), r += i >= 65536 ? 2 : 1;
|
|
3110
3110
|
}
|
|
3111
|
-
return
|
|
3111
|
+
return We.apply(void 0, n);
|
|
3112
3112
|
};
|
|
3113
|
-
var
|
|
3113
|
+
var Xn = (
|
|
3114
3114
|
/** @class */
|
|
3115
3115
|
function() {
|
|
3116
3116
|
function e(t, r) {
|
|
@@ -3141,7 +3141,7 @@ var kn = (
|
|
|
3141
3141
|
if (n)
|
|
3142
3142
|
break;
|
|
3143
3143
|
return this.error(m.UNMATCHED_CLOSING_TAG, b(this.clonePosition(), this.clonePosition()));
|
|
3144
|
-
} else if (o === 60 && !this.ignoreTag &&
|
|
3144
|
+
} else if (o === 60 && !this.ignoreTag && Ze(this.peek() || 0)) {
|
|
3145
3145
|
var s = this.parseTag(t, r);
|
|
3146
3146
|
if (s.err)
|
|
3147
3147
|
return s;
|
|
@@ -3174,7 +3174,7 @@ var kn = (
|
|
|
3174
3174
|
return o;
|
|
3175
3175
|
var s = o.val, a = this.clonePosition();
|
|
3176
3176
|
if (this.bumpIf("</")) {
|
|
3177
|
-
if (this.isEOF() || !
|
|
3177
|
+
if (this.isEOF() || !Ze(this.char()))
|
|
3178
3178
|
return this.error(m.INVALID_TAG, b(a, this.clonePosition()));
|
|
3179
3179
|
var h = this.clonePosition(), u = this.parseTagName();
|
|
3180
3180
|
return i !== u ? this.error(m.UNMATCHED_CLOSING_TAG, b(h, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
|
|
@@ -3192,7 +3192,7 @@ var kn = (
|
|
|
3192
3192
|
return this.error(m.INVALID_TAG, b(n, this.clonePosition()));
|
|
3193
3193
|
}, e.prototype.parseTagName = function() {
|
|
3194
3194
|
var t = this.offset();
|
|
3195
|
-
for (this.bump(); !this.isEOF() &&
|
|
3195
|
+
for (this.bump(); !this.isEOF() && zn(this.char()); )
|
|
3196
3196
|
this.bump();
|
|
3197
3197
|
return this.message.slice(t, this.offset());
|
|
3198
3198
|
}, e.prototype.parseLiteral = function(t, r) {
|
|
@@ -3221,7 +3221,7 @@ var kn = (
|
|
|
3221
3221
|
};
|
|
3222
3222
|
}, e.prototype.tryParseLeftAngleBracket = function() {
|
|
3223
3223
|
return !this.isEOF() && this.char() === 60 && (this.ignoreTag || // If at the opening tag or closing tag position, bail.
|
|
3224
|
-
!
|
|
3224
|
+
!Wn(this.peek() || 0)) ? (this.bump(), "<") : null;
|
|
3225
3225
|
}, e.prototype.tryParseQuote = function(t) {
|
|
3226
3226
|
if (this.isEOF() || this.char() !== 39)
|
|
3227
3227
|
return null;
|
|
@@ -3255,12 +3255,12 @@ var kn = (
|
|
|
3255
3255
|
r.push(n);
|
|
3256
3256
|
this.bump();
|
|
3257
3257
|
}
|
|
3258
|
-
return
|
|
3258
|
+
return We.apply(void 0, r);
|
|
3259
3259
|
}, e.prototype.tryParseUnquoted = function(t, r) {
|
|
3260
3260
|
if (this.isEOF())
|
|
3261
3261
|
return null;
|
|
3262
3262
|
var n = this.char();
|
|
3263
|
-
return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(),
|
|
3263
|
+
return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(), We(n));
|
|
3264
3264
|
}, e.prototype.parseArgument = function(t, r) {
|
|
3265
3265
|
var n = this.clonePosition();
|
|
3266
3266
|
if (this.bump(), this.bumpSpace(), this.isEOF())
|
|
@@ -3289,7 +3289,7 @@ var kn = (
|
|
|
3289
3289
|
return this.error(m.MALFORMED_ARGUMENT, b(n, this.clonePosition()));
|
|
3290
3290
|
}
|
|
3291
3291
|
}, e.prototype.parseIdentifierIfPossible = function() {
|
|
3292
|
-
var t = this.clonePosition(), r = this.offset(), n =
|
|
3292
|
+
var t = this.clonePosition(), r = this.offset(), n = ze(this.message, r), i = r + n.length;
|
|
3293
3293
|
this.bumpTo(i);
|
|
3294
3294
|
var o = this.clonePosition(), s = b(t, o);
|
|
3295
3295
|
return { value: n, location: s };
|
|
@@ -3308,7 +3308,7 @@ var kn = (
|
|
|
3308
3308
|
var l = this.clonePosition(), f = this.parseSimpleArgStyleIfPossible();
|
|
3309
3309
|
if (f.err)
|
|
3310
3310
|
return f;
|
|
3311
|
-
var c =
|
|
3311
|
+
var c = Vn(f.val);
|
|
3312
3312
|
if (c.length === 0)
|
|
3313
3313
|
return this.error(m.EXPECT_ARGUMENT_STYLE, b(this.clonePosition(), this.clonePosition()));
|
|
3314
3314
|
var p = b(l, this.clonePosition());
|
|
@@ -3317,28 +3317,28 @@ var kn = (
|
|
|
3317
3317
|
var d = this.tryParseArgumentClose(i);
|
|
3318
3318
|
if (d.err)
|
|
3319
3319
|
return d;
|
|
3320
|
-
var
|
|
3321
|
-
if (u &&
|
|
3322
|
-
var
|
|
3320
|
+
var g = b(i, this.clonePosition());
|
|
3321
|
+
if (u && mt(u?.style, "::", 0)) {
|
|
3322
|
+
var w = kn(u.style.slice(2));
|
|
3323
3323
|
if (a === "number") {
|
|
3324
|
-
var f = this.parseNumberSkeletonFromString(
|
|
3324
|
+
var f = this.parseNumberSkeletonFromString(w, u.styleLocation);
|
|
3325
3325
|
return f.err ? f : {
|
|
3326
|
-
val: { type: v.number, value: n, location:
|
|
3326
|
+
val: { type: v.number, value: n, location: g, style: f.val },
|
|
3327
3327
|
err: null
|
|
3328
3328
|
};
|
|
3329
3329
|
} else {
|
|
3330
|
-
if (
|
|
3331
|
-
return this.error(m.EXPECT_DATE_TIME_SKELETON,
|
|
3332
|
-
var
|
|
3333
|
-
this.locale && (
|
|
3330
|
+
if (w.length === 0)
|
|
3331
|
+
return this.error(m.EXPECT_DATE_TIME_SKELETON, g);
|
|
3332
|
+
var $ = w;
|
|
3333
|
+
this.locale && ($ = On(w, this.locale));
|
|
3334
3334
|
var c = {
|
|
3335
|
-
type:
|
|
3336
|
-
pattern:
|
|
3335
|
+
type: X.dateTime,
|
|
3336
|
+
pattern: $,
|
|
3337
3337
|
location: u.styleLocation,
|
|
3338
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
3339
|
-
},
|
|
3338
|
+
parsedOptions: this.shouldParseSkeletons ? Sn($) : {}
|
|
3339
|
+
}, N = a === "date" ? v.date : v.time;
|
|
3340
3340
|
return {
|
|
3341
|
-
val: { type:
|
|
3341
|
+
val: { type: N, value: n, location: g, style: c },
|
|
3342
3342
|
err: null
|
|
3343
3343
|
};
|
|
3344
3344
|
}
|
|
@@ -3347,7 +3347,7 @@ var kn = (
|
|
|
3347
3347
|
val: {
|
|
3348
3348
|
type: a === "number" ? v.number : a === "date" ? v.date : v.time,
|
|
3349
3349
|
value: n,
|
|
3350
|
-
location:
|
|
3350
|
+
location: g,
|
|
3351
3351
|
style: (o = u?.style) !== null && o !== void 0 ? o : null
|
|
3352
3352
|
},
|
|
3353
3353
|
err: null
|
|
@@ -3356,43 +3356,43 @@ var kn = (
|
|
|
3356
3356
|
case "plural":
|
|
3357
3357
|
case "selectordinal":
|
|
3358
3358
|
case "select": {
|
|
3359
|
-
var
|
|
3359
|
+
var S = this.clonePosition();
|
|
3360
3360
|
if (this.bumpSpace(), !this.bumpIf(","))
|
|
3361
|
-
return this.error(m.EXPECT_SELECT_ARGUMENT_OPTIONS, b(
|
|
3361
|
+
return this.error(m.EXPECT_SELECT_ARGUMENT_OPTIONS, b(S, me({}, S)));
|
|
3362
3362
|
this.bumpSpace();
|
|
3363
|
-
var
|
|
3364
|
-
if (a !== "select" &&
|
|
3363
|
+
var P = this.parseIdentifierIfPossible(), O = 0;
|
|
3364
|
+
if (a !== "select" && P.value === "offset") {
|
|
3365
3365
|
if (!this.bumpIf(":"))
|
|
3366
3366
|
return this.error(m.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, b(this.clonePosition(), this.clonePosition()));
|
|
3367
3367
|
this.bumpSpace();
|
|
3368
3368
|
var f = this.tryParseDecimalInteger(m.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, m.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);
|
|
3369
3369
|
if (f.err)
|
|
3370
3370
|
return f;
|
|
3371
|
-
this.bumpSpace(),
|
|
3371
|
+
this.bumpSpace(), P = this.parseIdentifierIfPossible(), O = f.val;
|
|
3372
3372
|
}
|
|
3373
|
-
var U = this.tryParsePluralOrSelectOptions(t, a, r,
|
|
3373
|
+
var U = this.tryParsePluralOrSelectOptions(t, a, r, P);
|
|
3374
3374
|
if (U.err)
|
|
3375
3375
|
return U;
|
|
3376
3376
|
var d = this.tryParseArgumentClose(i);
|
|
3377
3377
|
if (d.err)
|
|
3378
3378
|
return d;
|
|
3379
|
-
var
|
|
3379
|
+
var ue = b(i, this.clonePosition());
|
|
3380
3380
|
return a === "select" ? {
|
|
3381
3381
|
val: {
|
|
3382
3382
|
type: v.select,
|
|
3383
3383
|
value: n,
|
|
3384
|
-
options:
|
|
3385
|
-
location:
|
|
3384
|
+
options: bt(U.val),
|
|
3385
|
+
location: ue
|
|
3386
3386
|
},
|
|
3387
3387
|
err: null
|
|
3388
3388
|
} : {
|
|
3389
3389
|
val: {
|
|
3390
3390
|
type: v.plural,
|
|
3391
3391
|
value: n,
|
|
3392
|
-
options:
|
|
3393
|
-
offset:
|
|
3392
|
+
options: bt(U.val),
|
|
3393
|
+
offset: O,
|
|
3394
3394
|
pluralType: a === "plural" ? "cardinal" : "ordinal",
|
|
3395
|
-
location:
|
|
3395
|
+
location: ue
|
|
3396
3396
|
},
|
|
3397
3397
|
err: null
|
|
3398
3398
|
};
|
|
@@ -3440,16 +3440,16 @@ var kn = (
|
|
|
3440
3440
|
}, e.prototype.parseNumberSkeletonFromString = function(t, r) {
|
|
3441
3441
|
var n = [];
|
|
3442
3442
|
try {
|
|
3443
|
-
n =
|
|
3443
|
+
n = wn(t);
|
|
3444
3444
|
} catch {
|
|
3445
3445
|
return this.error(m.INVALID_NUMBER_SKELETON, r);
|
|
3446
3446
|
}
|
|
3447
3447
|
return {
|
|
3448
3448
|
val: {
|
|
3449
|
-
type:
|
|
3449
|
+
type: X.number,
|
|
3450
3450
|
tokens: n,
|
|
3451
3451
|
location: r,
|
|
3452
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
3452
|
+
parsedOptions: this.shouldParseSkeletons ? Pn(n) : {}
|
|
3453
3453
|
},
|
|
3454
3454
|
err: null
|
|
3455
3455
|
};
|
|
@@ -3474,9 +3474,9 @@ var kn = (
|
|
|
3474
3474
|
var d = this.parseMessage(t + 1, r, n);
|
|
3475
3475
|
if (d.err)
|
|
3476
3476
|
return d;
|
|
3477
|
-
var
|
|
3478
|
-
if (
|
|
3479
|
-
return
|
|
3477
|
+
var g = this.tryParseArgumentClose(p);
|
|
3478
|
+
if (g.err)
|
|
3479
|
+
return g;
|
|
3480
3480
|
a.push([
|
|
3481
3481
|
u,
|
|
3482
3482
|
{
|
|
@@ -3497,7 +3497,7 @@ var kn = (
|
|
|
3497
3497
|
break;
|
|
3498
3498
|
}
|
|
3499
3499
|
var h = b(i, this.clonePosition());
|
|
3500
|
-
return o ? (s *= n,
|
|
3500
|
+
return o ? (s *= n, Fn(s) ? { val: s, err: null } : this.error(r, h)) : this.error(t, h);
|
|
3501
3501
|
}, e.prototype.offset = function() {
|
|
3502
3502
|
return this.position.offset;
|
|
3503
3503
|
}, e.prototype.isEOF = function() {
|
|
@@ -3512,7 +3512,7 @@ var kn = (
|
|
|
3512
3512
|
var t = this.position.offset;
|
|
3513
3513
|
if (t >= this.message.length)
|
|
3514
3514
|
throw Error("out of bound");
|
|
3515
|
-
var r =
|
|
3515
|
+
var r = qt(this.message, t);
|
|
3516
3516
|
if (r === void 0)
|
|
3517
3517
|
throw Error("Offset ".concat(t, " is at invalid UTF-16 code unit boundary"));
|
|
3518
3518
|
return r;
|
|
@@ -3531,7 +3531,7 @@ var kn = (
|
|
|
3531
3531
|
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);
|
|
3532
3532
|
}
|
|
3533
3533
|
}, e.prototype.bumpIf = function(t) {
|
|
3534
|
-
if (
|
|
3534
|
+
if (mt(this.message, t, this.offset())) {
|
|
3535
3535
|
for (var r = 0; r < t.length; r++)
|
|
3536
3536
|
this.bump();
|
|
3537
3537
|
return !0;
|
|
@@ -3553,7 +3553,7 @@ var kn = (
|
|
|
3553
3553
|
break;
|
|
3554
3554
|
}
|
|
3555
3555
|
}, e.prototype.bumpSpace = function() {
|
|
3556
|
-
for (; !this.isEOF() &&
|
|
3556
|
+
for (; !this.isEOF() && er(this.char()); )
|
|
3557
3557
|
this.bump();
|
|
3558
3558
|
}, e.prototype.peek = function() {
|
|
3559
3559
|
if (this.isEOF())
|
|
@@ -3563,47 +3563,47 @@ var kn = (
|
|
|
3563
3563
|
}, e;
|
|
3564
3564
|
}()
|
|
3565
3565
|
);
|
|
3566
|
-
function
|
|
3566
|
+
function Ze(e) {
|
|
3567
3567
|
return e >= 97 && e <= 122 || e >= 65 && e <= 90;
|
|
3568
3568
|
}
|
|
3569
|
-
function
|
|
3570
|
-
return
|
|
3569
|
+
function Wn(e) {
|
|
3570
|
+
return Ze(e) || e === 47;
|
|
3571
3571
|
}
|
|
3572
|
-
function
|
|
3572
|
+
function zn(e) {
|
|
3573
3573
|
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;
|
|
3574
3574
|
}
|
|
3575
|
-
function
|
|
3575
|
+
function er(e) {
|
|
3576
3576
|
return e >= 9 && e <= 13 || e === 32 || e === 133 || e >= 8206 && e <= 8207 || e === 8232 || e === 8233;
|
|
3577
3577
|
}
|
|
3578
|
-
function
|
|
3578
|
+
function Zn(e) {
|
|
3579
3579
|
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;
|
|
3580
3580
|
}
|
|
3581
|
-
function
|
|
3581
|
+
function Qe(e) {
|
|
3582
3582
|
e.forEach(function(t) {
|
|
3583
|
-
if (delete t.location,
|
|
3583
|
+
if (delete t.location, Vt(t) || Xt(t))
|
|
3584
3584
|
for (var r in t.options)
|
|
3585
|
-
delete t.options[r].location,
|
|
3585
|
+
delete t.options[r].location, Qe(t.options[r].value);
|
|
3586
3586
|
else
|
|
3587
|
-
|
|
3587
|
+
Ft(t) && zt(t.style) || (jt(t) || kt(t)) && Ve(t.style) ? delete t.style.location : Wt(t) && Qe(t.children);
|
|
3588
3588
|
});
|
|
3589
3589
|
}
|
|
3590
|
-
function
|
|
3591
|
-
t === void 0 && (t = {}), t =
|
|
3592
|
-
var r = new
|
|
3590
|
+
function Qn(e, t) {
|
|
3591
|
+
t === void 0 && (t = {}), t = me({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
|
|
3592
|
+
var r = new Xn(e, t).parse();
|
|
3593
3593
|
if (r.err) {
|
|
3594
3594
|
var n = SyntaxError(m[r.err.kind]);
|
|
3595
3595
|
throw n.location = r.err.location, n.originalMessage = r.err.message, n;
|
|
3596
3596
|
}
|
|
3597
|
-
return t?.captureLocation ||
|
|
3597
|
+
return t?.captureLocation || Qe(r.val), r.val;
|
|
3598
3598
|
}
|
|
3599
|
-
var
|
|
3599
|
+
var W;
|
|
3600
3600
|
(function(e) {
|
|
3601
3601
|
e.MISSING_VALUE = "MISSING_VALUE", e.INVALID_VALUE = "INVALID_VALUE", e.MISSING_INTL_API = "MISSING_INTL_API";
|
|
3602
|
-
})(
|
|
3603
|
-
var
|
|
3602
|
+
})(W || (W = {}));
|
|
3603
|
+
var xe = (
|
|
3604
3604
|
/** @class */
|
|
3605
3605
|
function(e) {
|
|
3606
|
-
|
|
3606
|
+
Ee(t, e);
|
|
3607
3607
|
function t(r, n, i) {
|
|
3608
3608
|
var o = e.call(this, r) || this;
|
|
3609
3609
|
return o.code = n, o.originalMessage = i, o;
|
|
@@ -3615,45 +3615,45 @@ var Ee = (
|
|
|
3615
3615
|
), gt = (
|
|
3616
3616
|
/** @class */
|
|
3617
3617
|
function(e) {
|
|
3618
|
-
|
|
3618
|
+
Ee(t, e);
|
|
3619
3619
|
function t(r, n, i, o) {
|
|
3620
|
-
return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'),
|
|
3620
|
+
return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'), W.INVALID_VALUE, o) || this;
|
|
3621
3621
|
}
|
|
3622
3622
|
return t;
|
|
3623
|
-
}(
|
|
3624
|
-
),
|
|
3623
|
+
}(xe)
|
|
3624
|
+
), Yn = (
|
|
3625
3625
|
/** @class */
|
|
3626
3626
|
function(e) {
|
|
3627
|
-
|
|
3627
|
+
Ee(t, e);
|
|
3628
3628
|
function t(r, n, i) {
|
|
3629
|
-
return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n),
|
|
3629
|
+
return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n), W.INVALID_VALUE, i) || this;
|
|
3630
3630
|
}
|
|
3631
3631
|
return t;
|
|
3632
|
-
}(
|
|
3633
|
-
),
|
|
3632
|
+
}(xe)
|
|
3633
|
+
), Jn = (
|
|
3634
3634
|
/** @class */
|
|
3635
3635
|
function(e) {
|
|
3636
|
-
|
|
3636
|
+
Ee(t, e);
|
|
3637
3637
|
function t(r, n) {
|
|
3638
|
-
return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'),
|
|
3638
|
+
return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'), W.MISSING_VALUE, n) || this;
|
|
3639
3639
|
}
|
|
3640
3640
|
return t;
|
|
3641
|
-
}(
|
|
3641
|
+
}(xe)
|
|
3642
3642
|
), E;
|
|
3643
3643
|
(function(e) {
|
|
3644
3644
|
e[e.literal = 0] = "literal", e[e.object = 1] = "object";
|
|
3645
3645
|
})(E || (E = {}));
|
|
3646
|
-
function
|
|
3646
|
+
function qn(e) {
|
|
3647
3647
|
return e.length < 2 ? e : e.reduce(function(t, r) {
|
|
3648
3648
|
var n = t[t.length - 1];
|
|
3649
3649
|
return !n || n.type !== E.literal || r.type !== E.literal ? t.push(r) : n.value += r.value, t;
|
|
3650
3650
|
}, []);
|
|
3651
3651
|
}
|
|
3652
|
-
function
|
|
3652
|
+
function Kn(e) {
|
|
3653
3653
|
return typeof e == "function";
|
|
3654
3654
|
}
|
|
3655
|
-
function
|
|
3656
|
-
if (e.length === 1 &&
|
|
3655
|
+
function pe(e, t, r, n, i, o, s) {
|
|
3656
|
+
if (e.length === 1 && ct(e[0]))
|
|
3657
3657
|
return [
|
|
3658
3658
|
{
|
|
3659
3659
|
type: E.literal,
|
|
@@ -3662,14 +3662,14 @@ function fe(e, t, r, n, i, o, s) {
|
|
|
3662
3662
|
];
|
|
3663
3663
|
for (var a = [], h = 0, u = e; h < u.length; h++) {
|
|
3664
3664
|
var l = u[h];
|
|
3665
|
-
if (
|
|
3665
|
+
if (ct(l)) {
|
|
3666
3666
|
a.push({
|
|
3667
3667
|
type: E.literal,
|
|
3668
3668
|
value: l.value
|
|
3669
3669
|
});
|
|
3670
3670
|
continue;
|
|
3671
3671
|
}
|
|
3672
|
-
if (
|
|
3672
|
+
if (En(l)) {
|
|
3673
3673
|
typeof o == "number" && a.push({
|
|
3674
3674
|
type: E.literal,
|
|
3675
3675
|
value: r.getNumberFormat(t).format(o)
|
|
@@ -3678,89 +3678,89 @@ function fe(e, t, r, n, i, o, s) {
|
|
|
3678
3678
|
}
|
|
3679
3679
|
var f = l.value;
|
|
3680
3680
|
if (!(i && f in i))
|
|
3681
|
-
throw new
|
|
3681
|
+
throw new Jn(f, s);
|
|
3682
3682
|
var c = i[f];
|
|
3683
|
-
if (
|
|
3683
|
+
if (_n(l)) {
|
|
3684
3684
|
(!c || typeof c == "string" || typeof c == "number") && (c = typeof c == "string" || typeof c == "number" ? String(c) : ""), a.push({
|
|
3685
3685
|
type: typeof c == "string" ? E.literal : E.object,
|
|
3686
3686
|
value: c
|
|
3687
3687
|
});
|
|
3688
3688
|
continue;
|
|
3689
3689
|
}
|
|
3690
|
-
if (
|
|
3691
|
-
var p = typeof l.style == "string" ? n.date[l.style] :
|
|
3690
|
+
if (jt(l)) {
|
|
3691
|
+
var p = typeof l.style == "string" ? n.date[l.style] : Ve(l.style) ? l.style.parsedOptions : void 0;
|
|
3692
3692
|
a.push({
|
|
3693
3693
|
type: E.literal,
|
|
3694
3694
|
value: r.getDateTimeFormat(t, p).format(c)
|
|
3695
3695
|
});
|
|
3696
3696
|
continue;
|
|
3697
3697
|
}
|
|
3698
|
-
if (
|
|
3699
|
-
var p = typeof l.style == "string" ? n.time[l.style] :
|
|
3698
|
+
if (kt(l)) {
|
|
3699
|
+
var p = typeof l.style == "string" ? n.time[l.style] : Ve(l.style) ? l.style.parsedOptions : n.time.medium;
|
|
3700
3700
|
a.push({
|
|
3701
3701
|
type: E.literal,
|
|
3702
3702
|
value: r.getDateTimeFormat(t, p).format(c)
|
|
3703
3703
|
});
|
|
3704
3704
|
continue;
|
|
3705
3705
|
}
|
|
3706
|
-
if (
|
|
3707
|
-
var p = typeof l.style == "string" ? n.number[l.style] :
|
|
3706
|
+
if (Ft(l)) {
|
|
3707
|
+
var p = typeof l.style == "string" ? n.number[l.style] : zt(l.style) ? l.style.parsedOptions : void 0;
|
|
3708
3708
|
p && p.scale && (c = c * (p.scale || 1)), a.push({
|
|
3709
3709
|
type: E.literal,
|
|
3710
3710
|
value: r.getNumberFormat(t, p).format(c)
|
|
3711
3711
|
});
|
|
3712
3712
|
continue;
|
|
3713
3713
|
}
|
|
3714
|
-
if (
|
|
3715
|
-
var d = l.children,
|
|
3716
|
-
if (!
|
|
3717
|
-
throw new
|
|
3718
|
-
var
|
|
3719
|
-
return
|
|
3714
|
+
if (Wt(l)) {
|
|
3715
|
+
var d = l.children, g = l.value, w = i[g];
|
|
3716
|
+
if (!Kn(w))
|
|
3717
|
+
throw new Yn(g, "function", s);
|
|
3718
|
+
var $ = pe(d, t, r, n, i, o), N = w($.map(function(O) {
|
|
3719
|
+
return O.value;
|
|
3720
3720
|
}));
|
|
3721
|
-
Array.isArray(
|
|
3721
|
+
Array.isArray(N) || (N = [N]), a.push.apply(a, N.map(function(O) {
|
|
3722
3722
|
return {
|
|
3723
|
-
type: typeof
|
|
3724
|
-
value:
|
|
3723
|
+
type: typeof O == "string" ? E.literal : E.object,
|
|
3724
|
+
value: O
|
|
3725
3725
|
};
|
|
3726
3726
|
}));
|
|
3727
3727
|
}
|
|
3728
|
-
if (
|
|
3729
|
-
var
|
|
3730
|
-
if (!
|
|
3728
|
+
if (Vt(l)) {
|
|
3729
|
+
var S = l.options[c] || l.options.other;
|
|
3730
|
+
if (!S)
|
|
3731
3731
|
throw new gt(l.value, c, Object.keys(l.options), s);
|
|
3732
|
-
a.push.apply(a,
|
|
3732
|
+
a.push.apply(a, pe(S.value, t, r, n, i));
|
|
3733
3733
|
continue;
|
|
3734
3734
|
}
|
|
3735
|
-
if (
|
|
3736
|
-
var
|
|
3737
|
-
if (!
|
|
3735
|
+
if (Xt(l)) {
|
|
3736
|
+
var S = l.options["=".concat(c)];
|
|
3737
|
+
if (!S) {
|
|
3738
3738
|
if (!Intl.PluralRules)
|
|
3739
|
-
throw new
|
|
3739
|
+
throw new xe(`Intl.PluralRules is not available in this environment.
|
|
3740
3740
|
Try polyfilling it using "@formatjs/intl-pluralrules"
|
|
3741
|
-
`,
|
|
3742
|
-
var
|
|
3743
|
-
|
|
3741
|
+
`, W.MISSING_INTL_API, s);
|
|
3742
|
+
var P = r.getPluralRules(t, { type: l.pluralType }).select(c - (l.offset || 0));
|
|
3743
|
+
S = l.options[P] || l.options.other;
|
|
3744
3744
|
}
|
|
3745
|
-
if (!
|
|
3745
|
+
if (!S)
|
|
3746
3746
|
throw new gt(l.value, c, Object.keys(l.options), s);
|
|
3747
|
-
a.push.apply(a,
|
|
3747
|
+
a.push.apply(a, pe(S.value, t, r, n, i, c - (l.offset || 0)));
|
|
3748
3748
|
continue;
|
|
3749
3749
|
}
|
|
3750
3750
|
}
|
|
3751
|
-
return
|
|
3751
|
+
return qn(a);
|
|
3752
3752
|
}
|
|
3753
|
-
function
|
|
3753
|
+
function ei(e, t) {
|
|
3754
3754
|
return t ? A(A(A({}, e || {}), t || {}), Object.keys(e).reduce(function(r, n) {
|
|
3755
3755
|
return r[n] = A(A({}, e[n]), t[n] || {}), r;
|
|
3756
3756
|
}, {})) : e;
|
|
3757
3757
|
}
|
|
3758
|
-
function
|
|
3758
|
+
function ti(e, t) {
|
|
3759
3759
|
return t ? Object.keys(e).reduce(function(r, n) {
|
|
3760
|
-
return r[n] =
|
|
3760
|
+
return r[n] = ei(e[n], t[n]), r;
|
|
3761
3761
|
}, A({}, e)) : e;
|
|
3762
3762
|
}
|
|
3763
|
-
function
|
|
3763
|
+
function Le(e) {
|
|
3764
3764
|
return {
|
|
3765
3765
|
create: function() {
|
|
3766
3766
|
return {
|
|
@@ -3774,39 +3774,39 @@ function Ie(e) {
|
|
|
3774
3774
|
}
|
|
3775
3775
|
};
|
|
3776
3776
|
}
|
|
3777
|
-
function
|
|
3777
|
+
function ri(e) {
|
|
3778
3778
|
return e === void 0 && (e = {
|
|
3779
3779
|
number: {},
|
|
3780
3780
|
dateTime: {},
|
|
3781
3781
|
pluralRules: {}
|
|
3782
3782
|
}), {
|
|
3783
|
-
getNumberFormat:
|
|
3783
|
+
getNumberFormat: Pe(function() {
|
|
3784
3784
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3785
3785
|
r[n] = arguments[n];
|
|
3786
|
-
return new ((t = Intl.NumberFormat).bind.apply(t,
|
|
3786
|
+
return new ((t = Intl.NumberFormat).bind.apply(t, Ae([void 0], r, !1)))();
|
|
3787
3787
|
}, {
|
|
3788
|
-
cache:
|
|
3789
|
-
strategy:
|
|
3788
|
+
cache: Le(e.number),
|
|
3789
|
+
strategy: Oe.variadic
|
|
3790
3790
|
}),
|
|
3791
|
-
getDateTimeFormat:
|
|
3791
|
+
getDateTimeFormat: Pe(function() {
|
|
3792
3792
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3793
3793
|
r[n] = arguments[n];
|
|
3794
|
-
return new ((t = Intl.DateTimeFormat).bind.apply(t,
|
|
3794
|
+
return new ((t = Intl.DateTimeFormat).bind.apply(t, Ae([void 0], r, !1)))();
|
|
3795
3795
|
}, {
|
|
3796
|
-
cache:
|
|
3797
|
-
strategy:
|
|
3796
|
+
cache: Le(e.dateTime),
|
|
3797
|
+
strategy: Oe.variadic
|
|
3798
3798
|
}),
|
|
3799
|
-
getPluralRules:
|
|
3799
|
+
getPluralRules: Pe(function() {
|
|
3800
3800
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3801
3801
|
r[n] = arguments[n];
|
|
3802
|
-
return new ((t = Intl.PluralRules).bind.apply(t,
|
|
3802
|
+
return new ((t = Intl.PluralRules).bind.apply(t, Ae([void 0], r, !1)))();
|
|
3803
3803
|
}, {
|
|
3804
|
-
cache:
|
|
3805
|
-
strategy:
|
|
3804
|
+
cache: Le(e.pluralRules),
|
|
3805
|
+
strategy: Oe.variadic
|
|
3806
3806
|
})
|
|
3807
3807
|
};
|
|
3808
3808
|
}
|
|
3809
|
-
var
|
|
3809
|
+
var ni = (
|
|
3810
3810
|
/** @class */
|
|
3811
3811
|
function() {
|
|
3812
3812
|
function e(t, r, n, i) {
|
|
@@ -3825,7 +3825,7 @@ var ti = (
|
|
|
3825
3825
|
}, []);
|
|
3826
3826
|
return l.length <= 1 ? l[0] || "" : l;
|
|
3827
3827
|
}, this.formatToParts = function(h) {
|
|
3828
|
-
return
|
|
3828
|
+
return pe(o.ast, o.locales, o.formatters, o.formats, h, void 0, o.message);
|
|
3829
3829
|
}, this.resolvedOptions = function() {
|
|
3830
3830
|
var h;
|
|
3831
3831
|
return {
|
|
@@ -3838,13 +3838,13 @@ var ti = (
|
|
|
3838
3838
|
throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");
|
|
3839
3839
|
var s = i || {};
|
|
3840
3840
|
s.formatters;
|
|
3841
|
-
var a =
|
|
3841
|
+
var a = fn(s, ["formatters"]);
|
|
3842
3842
|
this.ast = e.__parse(t, A(A({}, a), { locale: this.resolvedLocale }));
|
|
3843
3843
|
} else
|
|
3844
3844
|
this.ast = t;
|
|
3845
3845
|
if (!Array.isArray(this.ast))
|
|
3846
3846
|
throw new TypeError("A message must be provided as a String or AST.");
|
|
3847
|
-
this.formats =
|
|
3847
|
+
this.formats = ti(e.formats, n), this.formatters = i && i.formatters || ri(this.formatterCache);
|
|
3848
3848
|
}
|
|
3849
3849
|
return Object.defineProperty(e, "defaultLocale", {
|
|
3850
3850
|
get: function() {
|
|
@@ -3857,7 +3857,7 @@ var ti = (
|
|
|
3857
3857
|
var r = Intl.NumberFormat.supportedLocalesOf(t);
|
|
3858
3858
|
return r.length > 0 ? new Intl.Locale(r[0]) : new Intl.Locale(typeof t == "string" ? t : t[0]);
|
|
3859
3859
|
}
|
|
3860
|
-
}, e.__parse =
|
|
3860
|
+
}, e.__parse = Qn, e.formats = {
|
|
3861
3861
|
number: {
|
|
3862
3862
|
integer: {
|
|
3863
3863
|
maximumFractionDigits: 0
|
|
@@ -3918,7 +3918,7 @@ var ti = (
|
|
|
3918
3918
|
}, e;
|
|
3919
3919
|
}()
|
|
3920
3920
|
);
|
|
3921
|
-
function
|
|
3921
|
+
function ii(e, t) {
|
|
3922
3922
|
if (t == null)
|
|
3923
3923
|
return;
|
|
3924
3924
|
if (t in e)
|
|
@@ -3939,92 +3939,92 @@ function ri(e, t) {
|
|
|
3939
3939
|
n = void 0;
|
|
3940
3940
|
return n;
|
|
3941
3941
|
}
|
|
3942
|
-
const M = {},
|
|
3942
|
+
const M = {}, oi = (e, t, r) => r && (t in M || (M[t] = {}), e in M[t] || (M[t][e] = r), r), tr = (e, t) => {
|
|
3943
3943
|
if (t == null)
|
|
3944
3944
|
return;
|
|
3945
3945
|
if (t in M && e in M[t])
|
|
3946
3946
|
return M[t][e];
|
|
3947
|
-
const r =
|
|
3947
|
+
const r = Se(t);
|
|
3948
3948
|
for (let n = 0; n < r.length; n++) {
|
|
3949
|
-
const i = r[n], o =
|
|
3949
|
+
const i = r[n], o = ai(i, e);
|
|
3950
3950
|
if (o)
|
|
3951
|
-
return
|
|
3951
|
+
return oi(e, t, o);
|
|
3952
3952
|
}
|
|
3953
3953
|
};
|
|
3954
|
-
let
|
|
3955
|
-
const
|
|
3956
|
-
function
|
|
3957
|
-
return
|
|
3954
|
+
let Ke;
|
|
3955
|
+
const ae = _e({});
|
|
3956
|
+
function si(e) {
|
|
3957
|
+
return Ke[e] || null;
|
|
3958
3958
|
}
|
|
3959
|
-
function
|
|
3960
|
-
return e in
|
|
3959
|
+
function rr(e) {
|
|
3960
|
+
return e in Ke;
|
|
3961
3961
|
}
|
|
3962
|
-
function
|
|
3963
|
-
if (!
|
|
3962
|
+
function ai(e, t) {
|
|
3963
|
+
if (!rr(e))
|
|
3964
3964
|
return null;
|
|
3965
|
-
const r =
|
|
3966
|
-
return
|
|
3965
|
+
const r = si(e);
|
|
3966
|
+
return ii(r, t);
|
|
3967
3967
|
}
|
|
3968
|
-
function
|
|
3968
|
+
function ui(e) {
|
|
3969
3969
|
if (e == null)
|
|
3970
3970
|
return;
|
|
3971
|
-
const t =
|
|
3971
|
+
const t = Se(e);
|
|
3972
3972
|
for (let r = 0; r < t.length; r++) {
|
|
3973
3973
|
const n = t[r];
|
|
3974
|
-
if (
|
|
3974
|
+
if (rr(n))
|
|
3975
3975
|
return n;
|
|
3976
3976
|
}
|
|
3977
3977
|
}
|
|
3978
|
-
function
|
|
3979
|
-
delete M[e],
|
|
3978
|
+
function nr(e, ...t) {
|
|
3979
|
+
delete M[e], ae.update((r) => (r[e] = cn.all([r[e] || {}, ...t]), r));
|
|
3980
3980
|
}
|
|
3981
|
-
|
|
3982
|
-
[
|
|
3981
|
+
Q(
|
|
3982
|
+
[ae],
|
|
3983
3983
|
([e]) => Object.keys(e)
|
|
3984
3984
|
);
|
|
3985
|
-
|
|
3986
|
-
const
|
|
3987
|
-
function
|
|
3988
|
-
|
|
3985
|
+
ae.subscribe((e) => Ke = e);
|
|
3986
|
+
const de = {};
|
|
3987
|
+
function hi(e, t) {
|
|
3988
|
+
de[e].delete(t), de[e].size === 0 && delete de[e];
|
|
3989
3989
|
}
|
|
3990
|
-
function
|
|
3991
|
-
return
|
|
3990
|
+
function ir(e) {
|
|
3991
|
+
return de[e];
|
|
3992
3992
|
}
|
|
3993
|
-
function
|
|
3994
|
-
return
|
|
3995
|
-
const r =
|
|
3993
|
+
function li(e) {
|
|
3994
|
+
return Se(e).map((t) => {
|
|
3995
|
+
const r = ir(t);
|
|
3996
3996
|
return [t, r ? [...r] : []];
|
|
3997
3997
|
}).filter(([, t]) => t.length > 0);
|
|
3998
3998
|
}
|
|
3999
|
-
function
|
|
4000
|
-
return e == null ? !1 :
|
|
3999
|
+
function Ye(e) {
|
|
4000
|
+
return e == null ? !1 : Se(e).some(
|
|
4001
4001
|
(t) => {
|
|
4002
4002
|
var r;
|
|
4003
|
-
return (r =
|
|
4003
|
+
return (r = ir(t)) == null ? void 0 : r.size;
|
|
4004
4004
|
}
|
|
4005
4005
|
);
|
|
4006
4006
|
}
|
|
4007
|
-
function
|
|
4007
|
+
function ci(e, t) {
|
|
4008
4008
|
return Promise.all(
|
|
4009
|
-
t.map((n) => (
|
|
4010
|
-
).then((n) =>
|
|
4011
|
-
}
|
|
4012
|
-
const
|
|
4013
|
-
function
|
|
4014
|
-
if (!
|
|
4015
|
-
return e in
|
|
4016
|
-
const t =
|
|
4017
|
-
return
|
|
4009
|
+
t.map((n) => (hi(e, n), n().then((i) => i.default || i)))
|
|
4010
|
+
).then((n) => nr(e, ...n));
|
|
4011
|
+
}
|
|
4012
|
+
const K = {};
|
|
4013
|
+
function or(e) {
|
|
4014
|
+
if (!Ye(e))
|
|
4015
|
+
return e in K ? K[e] : Promise.resolve();
|
|
4016
|
+
const t = li(e);
|
|
4017
|
+
return K[e] = Promise.all(
|
|
4018
4018
|
t.map(
|
|
4019
|
-
([r, n]) =>
|
|
4019
|
+
([r, n]) => ci(r, n)
|
|
4020
4020
|
)
|
|
4021
4021
|
).then(() => {
|
|
4022
|
-
if (
|
|
4023
|
-
return
|
|
4024
|
-
delete
|
|
4025
|
-
}),
|
|
4022
|
+
if (Ye(e))
|
|
4023
|
+
return or(e);
|
|
4024
|
+
delete K[e];
|
|
4025
|
+
}), K[e];
|
|
4026
4026
|
}
|
|
4027
|
-
const
|
|
4027
|
+
const fi = {
|
|
4028
4028
|
number: {
|
|
4029
4029
|
scientific: { notation: "scientific" },
|
|
4030
4030
|
engineering: { notation: "engineering" },
|
|
@@ -4053,135 +4053,135 @@ const li = {
|
|
|
4053
4053
|
timeZoneName: "short"
|
|
4054
4054
|
}
|
|
4055
4055
|
}
|
|
4056
|
-
},
|
|
4056
|
+
}, pi = {
|
|
4057
4057
|
fallbackLocale: null,
|
|
4058
4058
|
loadingDelay: 200,
|
|
4059
|
-
formats:
|
|
4059
|
+
formats: fi,
|
|
4060
4060
|
warnOnMissingMessages: !0,
|
|
4061
4061
|
handleMissingMessage: void 0,
|
|
4062
4062
|
ignoreTag: !0
|
|
4063
|
-
},
|
|
4064
|
-
function
|
|
4065
|
-
return
|
|
4063
|
+
}, di = pi;
|
|
4064
|
+
function z() {
|
|
4065
|
+
return di;
|
|
4066
4066
|
}
|
|
4067
|
-
const
|
|
4068
|
-
var
|
|
4067
|
+
const Ne = _e(!1);
|
|
4068
|
+
var mi = Object.defineProperty, bi = Object.defineProperties, yi = Object.getOwnPropertyDescriptors, vt = Object.getOwnPropertySymbols, gi = Object.prototype.hasOwnProperty, vi = Object.prototype.propertyIsEnumerable, _t = (e, t, r) => t in e ? mi(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, _i = (e, t) => {
|
|
4069
4069
|
for (var r in t || (t = {}))
|
|
4070
|
-
|
|
4071
|
-
if (
|
|
4072
|
-
for (var r of
|
|
4073
|
-
|
|
4070
|
+
gi.call(t, r) && _t(e, r, t[r]);
|
|
4071
|
+
if (vt)
|
|
4072
|
+
for (var r of vt(t))
|
|
4073
|
+
vi.call(t, r) && _t(e, r, t[r]);
|
|
4074
4074
|
return e;
|
|
4075
|
-
},
|
|
4075
|
+
}, Ei = (e, t) => bi(e, yi(t));
|
|
4076
4076
|
let Je;
|
|
4077
|
-
const
|
|
4078
|
-
function
|
|
4077
|
+
const be = _e(null);
|
|
4078
|
+
function Et(e) {
|
|
4079
4079
|
return e.split("-").map((t, r, n) => n.slice(0, r + 1).join("-")).reverse();
|
|
4080
4080
|
}
|
|
4081
|
-
function
|
|
4082
|
-
const r =
|
|
4083
|
-
return t ? [.../* @__PURE__ */ new Set([...r, ...
|
|
4081
|
+
function Se(e, t = z().fallbackLocale) {
|
|
4082
|
+
const r = Et(e);
|
|
4083
|
+
return t ? [.../* @__PURE__ */ new Set([...r, ...Et(t)])] : r;
|
|
4084
4084
|
}
|
|
4085
4085
|
function R() {
|
|
4086
4086
|
return Je ?? void 0;
|
|
4087
4087
|
}
|
|
4088
|
-
|
|
4088
|
+
be.subscribe((e) => {
|
|
4089
4089
|
Je = e ?? void 0, typeof window < "u" && e != null && document.documentElement.setAttribute("lang", e);
|
|
4090
4090
|
});
|
|
4091
|
-
const
|
|
4092
|
-
if (e &&
|
|
4093
|
-
const { loadingDelay: t } =
|
|
4091
|
+
const xi = (e) => {
|
|
4092
|
+
if (e && ui(e) && Ye(e)) {
|
|
4093
|
+
const { loadingDelay: t } = z();
|
|
4094
4094
|
let r;
|
|
4095
4095
|
return typeof window < "u" && R() != null && t ? r = window.setTimeout(
|
|
4096
|
-
() =>
|
|
4096
|
+
() => Ne.set(!0),
|
|
4097
4097
|
t
|
|
4098
|
-
) :
|
|
4099
|
-
|
|
4098
|
+
) : Ne.set(!0), or(e).then(() => {
|
|
4099
|
+
be.set(e);
|
|
4100
4100
|
}).finally(() => {
|
|
4101
|
-
clearTimeout(r),
|
|
4101
|
+
clearTimeout(r), Ne.set(!1);
|
|
4102
4102
|
});
|
|
4103
4103
|
}
|
|
4104
|
-
return
|
|
4105
|
-
},
|
|
4106
|
-
set:
|
|
4107
|
-
}),
|
|
4104
|
+
return be.set(e);
|
|
4105
|
+
}, Y = Ei(_i({}, be), {
|
|
4106
|
+
set: xi
|
|
4107
|
+
}), Te = (e) => {
|
|
4108
4108
|
const t = /* @__PURE__ */ Object.create(null);
|
|
4109
4109
|
return (n) => {
|
|
4110
4110
|
const i = JSON.stringify(n);
|
|
4111
4111
|
return i in t ? t[i] : t[i] = e(n);
|
|
4112
4112
|
};
|
|
4113
4113
|
};
|
|
4114
|
-
var
|
|
4114
|
+
var Si = Object.defineProperty, ye = Object.getOwnPropertySymbols, sr = Object.prototype.hasOwnProperty, ar = Object.prototype.propertyIsEnumerable, xt = (e, t, r) => t in e ? Si(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, et = (e, t) => {
|
|
4115
4115
|
for (var r in t || (t = {}))
|
|
4116
|
-
|
|
4117
|
-
if (
|
|
4118
|
-
for (var r of
|
|
4119
|
-
|
|
4116
|
+
sr.call(t, r) && xt(e, r, t[r]);
|
|
4117
|
+
if (ye)
|
|
4118
|
+
for (var r of ye(t))
|
|
4119
|
+
ar.call(t, r) && xt(e, r, t[r]);
|
|
4120
4120
|
return e;
|
|
4121
4121
|
}, J = (e, t) => {
|
|
4122
4122
|
var r = {};
|
|
4123
4123
|
for (var n in e)
|
|
4124
|
-
|
|
4125
|
-
if (e != null &&
|
|
4126
|
-
for (var n of
|
|
4127
|
-
t.indexOf(n) < 0 &&
|
|
4124
|
+
sr.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
4125
|
+
if (e != null && ye)
|
|
4126
|
+
for (var n of ye(e))
|
|
4127
|
+
t.indexOf(n) < 0 && ar.call(e, n) && (r[n] = e[n]);
|
|
4128
4128
|
return r;
|
|
4129
4129
|
};
|
|
4130
|
-
const
|
|
4131
|
-
const { formats: r } =
|
|
4130
|
+
const ne = (e, t) => {
|
|
4131
|
+
const { formats: r } = z();
|
|
4132
4132
|
if (e in r && t in r[e])
|
|
4133
4133
|
return r[e][t];
|
|
4134
4134
|
throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`);
|
|
4135
|
-
},
|
|
4135
|
+
}, Ti = Te(
|
|
4136
4136
|
(e) => {
|
|
4137
4137
|
var t = e, { locale: r, format: n } = t, i = J(t, ["locale", "format"]);
|
|
4138
4138
|
if (r == null)
|
|
4139
4139
|
throw new Error('[svelte-i18n] A "locale" must be set to format numbers');
|
|
4140
|
-
return n && (i =
|
|
4140
|
+
return n && (i = ne("number", n)), new Intl.NumberFormat(r, i);
|
|
4141
4141
|
}
|
|
4142
|
-
),
|
|
4142
|
+
), wi = Te(
|
|
4143
4143
|
(e) => {
|
|
4144
4144
|
var t = e, { locale: r, format: n } = t, i = J(t, ["locale", "format"]);
|
|
4145
4145
|
if (r == null)
|
|
4146
4146
|
throw new Error('[svelte-i18n] A "locale" must be set to format dates');
|
|
4147
|
-
return n ? i =
|
|
4147
|
+
return n ? i = ne("date", n) : Object.keys(i).length === 0 && (i = ne("date", "short")), new Intl.DateTimeFormat(r, i);
|
|
4148
4148
|
}
|
|
4149
|
-
),
|
|
4149
|
+
), Hi = Te(
|
|
4150
4150
|
(e) => {
|
|
4151
4151
|
var t = e, { locale: r, format: n } = t, i = J(t, ["locale", "format"]);
|
|
4152
4152
|
if (r == null)
|
|
4153
4153
|
throw new Error(
|
|
4154
4154
|
'[svelte-i18n] A "locale" must be set to format time values'
|
|
4155
4155
|
);
|
|
4156
|
-
return n ? i =
|
|
4156
|
+
return n ? i = ne("time", n) : Object.keys(i).length === 0 && (i = ne("time", "short")), new Intl.DateTimeFormat(r, i);
|
|
4157
4157
|
}
|
|
4158
|
-
),
|
|
4158
|
+
), Bi = (e = {}) => {
|
|
4159
4159
|
var t = e, {
|
|
4160
4160
|
locale: r = R()
|
|
4161
4161
|
} = t, n = J(t, [
|
|
4162
4162
|
"locale"
|
|
4163
4163
|
]);
|
|
4164
|
-
return
|
|
4165
|
-
},
|
|
4164
|
+
return Ti(et({ locale: r }, n));
|
|
4165
|
+
}, Ai = (e = {}) => {
|
|
4166
4166
|
var t = e, {
|
|
4167
4167
|
locale: r = R()
|
|
4168
4168
|
} = t, n = J(t, [
|
|
4169
4169
|
"locale"
|
|
4170
4170
|
]);
|
|
4171
|
-
return
|
|
4172
|
-
},
|
|
4171
|
+
return wi(et({ locale: r }, n));
|
|
4172
|
+
}, Pi = (e = {}) => {
|
|
4173
4173
|
var t = e, {
|
|
4174
4174
|
locale: r = R()
|
|
4175
4175
|
} = t, n = J(t, [
|
|
4176
4176
|
"locale"
|
|
4177
4177
|
]);
|
|
4178
|
-
return
|
|
4179
|
-
},
|
|
4178
|
+
return Hi(et({ locale: r }, n));
|
|
4179
|
+
}, Oi = Te(
|
|
4180
4180
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
4181
|
-
(e, t = R()) => new
|
|
4182
|
-
ignoreTag:
|
|
4181
|
+
(e, t = R()) => new ni(e, t, z().formats, {
|
|
4182
|
+
ignoreTag: z().ignoreTag
|
|
4183
4183
|
})
|
|
4184
|
-
),
|
|
4184
|
+
), Ii = (e, t = {}) => {
|
|
4185
4185
|
var r, n, i, o;
|
|
4186
4186
|
let s = t;
|
|
4187
4187
|
typeof e == "object" && (s = e, e = s.id);
|
|
@@ -4194,9 +4194,9 @@ const re = (e, t) => {
|
|
|
4194
4194
|
throw new Error(
|
|
4195
4195
|
"[svelte-i18n] Cannot format a message without first setting the initial locale."
|
|
4196
4196
|
);
|
|
4197
|
-
let l =
|
|
4197
|
+
let l = tr(e, h);
|
|
4198
4198
|
if (!l)
|
|
4199
|
-
l = (o = (i = (n = (r =
|
|
4199
|
+
l = (o = (i = (n = (r = z()).handleMissingMessage) == null ? void 0 : n.call(r, { locale: h, id: e, defaultValue: u })) != null ? i : u) != null ? o : e;
|
|
4200
4200
|
else if (typeof l != "string")
|
|
4201
4201
|
return console.warn(
|
|
4202
4202
|
`[svelte-i18n] Message with id "${e}" must be of type "string", found: "${typeof l}". Gettin its value through the "$format" method is deprecated; use the "json" method instead.`
|
|
@@ -4205,7 +4205,7 @@ const re = (e, t) => {
|
|
|
4205
4205
|
return l;
|
|
4206
4206
|
let f = l;
|
|
4207
4207
|
try {
|
|
4208
|
-
f =
|
|
4208
|
+
f = Oi(l, h).format(a);
|
|
4209
4209
|
} catch (c) {
|
|
4210
4210
|
c instanceof Error && console.warn(
|
|
4211
4211
|
`[svelte-i18n] Message "${e}" has syntax error:`,
|
|
@@ -4213,15 +4213,15 @@ const re = (e, t) => {
|
|
|
4213
4213
|
);
|
|
4214
4214
|
}
|
|
4215
4215
|
return f;
|
|
4216
|
-
},
|
|
4217
|
-
|
|
4218
|
-
|
|
4219
|
-
|
|
4220
|
-
|
|
4221
|
-
window.emWidgets = { topic:
|
|
4222
|
-
const
|
|
4216
|
+
}, Li = (e, t) => Pi(t).format(e), Ni = (e, t) => Ai(t).format(e), Ci = (e, t) => Bi(t).format(e), Mi = (e, t = R()) => tr(e, t), $i = Q([Y, ae], () => Ii);
|
|
4217
|
+
Q([Y], () => Li);
|
|
4218
|
+
Q([Y], () => Ni);
|
|
4219
|
+
Q([Y], () => Ci);
|
|
4220
|
+
Q([Y, ae], () => Mi);
|
|
4221
|
+
window.emWidgets = { topic: zr };
|
|
4222
|
+
const Ri = (e) => e.toLowerCase().match(/android/i) ? "Android" : e.toLowerCase().match(/iphone/i) ? "iPhone" : e.toLowerCase().match(/ipad|ipod/i) ? "iPad" : "PC";
|
|
4223
4223
|
String(Number.MAX_SAFE_INTEGER).length;
|
|
4224
|
-
const
|
|
4224
|
+
const Ui = (e, t = {}) => {
|
|
4225
4225
|
const r = new CustomEvent("track-custom-event", {
|
|
4226
4226
|
detail: {
|
|
4227
4227
|
type: e,
|
|
@@ -4232,13 +4232,13 @@ const $i = (e, t = {}) => {
|
|
|
4232
4232
|
});
|
|
4233
4233
|
document.dispatchEvent(r);
|
|
4234
4234
|
};
|
|
4235
|
-
function
|
|
4236
|
-
|
|
4235
|
+
function St(e, t) {
|
|
4236
|
+
nr(e, t);
|
|
4237
4237
|
}
|
|
4238
|
-
function
|
|
4239
|
-
|
|
4238
|
+
function Gi(e) {
|
|
4239
|
+
Y.set(e);
|
|
4240
4240
|
}
|
|
4241
|
-
const
|
|
4241
|
+
const Tt = {
|
|
4242
4242
|
en: {
|
|
4243
4243
|
logoutButton: "Logout"
|
|
4244
4244
|
},
|
|
@@ -4272,14 +4272,14 @@ const St = {
|
|
|
4272
4272
|
"en-us": {
|
|
4273
4273
|
logoutButton: "Logout"
|
|
4274
4274
|
}
|
|
4275
|
-
};
|
|
4276
|
-
function
|
|
4275
|
+
}, j = "__WIDGET_GLOBAL_STYLE_CACHE__";
|
|
4276
|
+
function wt(e, t) {
|
|
4277
4277
|
if (e) {
|
|
4278
4278
|
const r = document.createElement("style");
|
|
4279
4279
|
r.innerHTML = t, e.appendChild(r);
|
|
4280
4280
|
}
|
|
4281
4281
|
}
|
|
4282
|
-
function
|
|
4282
|
+
function Di(e, t) {
|
|
4283
4283
|
if (!e || !t)
|
|
4284
4284
|
return;
|
|
4285
4285
|
const r = new URL(t);
|
|
@@ -4290,28 +4290,55 @@ function Ui(e, t) {
|
|
|
4290
4290
|
console.error("There was an error while trying to load client styling from URL", n);
|
|
4291
4291
|
});
|
|
4292
4292
|
}
|
|
4293
|
-
function
|
|
4294
|
-
if (window.emMessageBus)
|
|
4295
|
-
|
|
4296
|
-
|
|
4297
|
-
|
|
4293
|
+
function Fi(e, t, r, n = !1) {
|
|
4294
|
+
if (!window.emMessageBus)
|
|
4295
|
+
return;
|
|
4296
|
+
if (!("adoptedStyleSheets" in Document.prototype) || !n)
|
|
4297
|
+
return r = ji(e, t), r;
|
|
4298
|
+
window[j] || (window[j] = {}), r = ki(e, t);
|
|
4299
|
+
const o = r.unsubscribe.bind(r), s = () => {
|
|
4300
|
+
if (window[j][t]) {
|
|
4301
|
+
const a = window[j][t];
|
|
4302
|
+
a.refCount > 1 ? a.refCount = a.refCount - 1 : delete window[j][t];
|
|
4303
|
+
}
|
|
4304
|
+
o();
|
|
4305
|
+
};
|
|
4306
|
+
return r.unsubscribe = s, r;
|
|
4307
|
+
}
|
|
4308
|
+
function ji(e, t) {
|
|
4309
|
+
const r = document.createElement("style");
|
|
4310
|
+
return window.emMessageBus.subscribe(t, (n) => {
|
|
4311
|
+
e && (r.innerHTML = n, e.appendChild(r));
|
|
4312
|
+
});
|
|
4313
|
+
}
|
|
4314
|
+
function ki(e, t) {
|
|
4315
|
+
return window.emMessageBus.subscribe(t, (r) => {
|
|
4316
|
+
if (!e)
|
|
4317
|
+
return;
|
|
4318
|
+
const n = e.getRootNode(), i = window[j];
|
|
4319
|
+
let o = i[t]?.sheet;
|
|
4320
|
+
o ? i[t].refCount = i[t].refCount + 1 : (o = new CSSStyleSheet(), o.replaceSync(r), i[t] = {
|
|
4321
|
+
sheet: o,
|
|
4322
|
+
refCount: 1
|
|
4298
4323
|
});
|
|
4299
|
-
|
|
4324
|
+
const s = n.adoptedStyleSheets || [];
|
|
4325
|
+
s.includes(o) || (n.adoptedStyleSheets = [...s, o]);
|
|
4326
|
+
});
|
|
4300
4327
|
}
|
|
4301
|
-
function
|
|
4302
|
-
|
|
4328
|
+
function Vi(e) {
|
|
4329
|
+
fr(e, "svelte-xtnqa3", "*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box}.PlayerAccountMenuItemBox{padding:20px;font-size:16px;display:inline-flex;width:100%;box-sizing:border-box;align-items:center;cursor:pointer}.PlayerAccountMenuItemBox .PlayerLogoutText{margin-left:20px}.PlayerAccountMenuItemBox svg{fill:var(--emw--pam-typography-color-nav-bg, var(--emw--color-white, #FFFFFF))}.PlayerAccountMenuItemBoxMobile.PlayerAccountMenuItemBox{height:auto;justify-content:center;position:relative;display:flex;width:unset;padding:0}.PlayerAccountMenuItemBoxMobile.PlayerAccountMenuItemBox svg{fill:var(--emw--pam-typography-color-nav-bg, var(--emw--color-white, #FFFFFF))}");
|
|
4303
4330
|
}
|
|
4304
|
-
function
|
|
4331
|
+
function Xi(e) {
|
|
4305
4332
|
let t, r, n, i = (
|
|
4306
4333
|
/*$_*/
|
|
4307
4334
|
e[2]("logoutButton") + ""
|
|
4308
4335
|
), o, s, a;
|
|
4309
4336
|
return {
|
|
4310
4337
|
c() {
|
|
4311
|
-
t =
|
|
4338
|
+
t = I("div"), r = I("button"), n = I("span"), o = ge(i), T(t, "class", "GeneralLogout");
|
|
4312
4339
|
},
|
|
4313
4340
|
m(h, u) {
|
|
4314
|
-
|
|
4341
|
+
oe(h, t, u), x(t, r), x(r, n), x(n, o), s || (a = Pt(
|
|
4315
4342
|
r,
|
|
4316
4343
|
"click",
|
|
4317
4344
|
/*click_handler_1*/
|
|
@@ -4321,19 +4348,19 @@ function Fi(e) {
|
|
|
4321
4348
|
p(h, u) {
|
|
4322
4349
|
u & /*$_*/
|
|
4323
4350
|
4 && i !== (i = /*$_*/
|
|
4324
|
-
h[2]("logoutButton") + "") &&
|
|
4351
|
+
h[2]("logoutButton") + "") && Ot(o, i);
|
|
4325
4352
|
},
|
|
4326
4353
|
d(h) {
|
|
4327
|
-
h &&
|
|
4354
|
+
h && Z(t), s = !1, a();
|
|
4328
4355
|
}
|
|
4329
4356
|
};
|
|
4330
4357
|
}
|
|
4331
|
-
function
|
|
4358
|
+
function Wi(e) {
|
|
4332
4359
|
let t, r, n, i, o, s, a, h, u, l, f, c = !/*isMobile*/
|
|
4333
|
-
e[3] &&
|
|
4360
|
+
e[3] && zi(e);
|
|
4334
4361
|
return {
|
|
4335
4362
|
c() {
|
|
4336
|
-
t =
|
|
4363
|
+
t = I("p"), r = I("span"), n = q("svg"), i = q("defs"), o = q("style"), s = ge(".a88316b4-2478-4a69-b2eb-d32a5fb419dd{fill:var(--emw--color-white, #FFFFFF);}"), a = q("path"), h = q("path"), u = mr(), c && c.c(), T(a, "class", "a88316b4-2478-4a69-b2eb-d32a5fb419dd"), T(a, "d", "M147.16,67.69,115.42,36a9.6,9.6,0,1,0-13.58,13.58l15.32,15.31H49.58a9.63,9.63,0,1,0,0,19.26h67.58L101.84,99.42a9.64,9.64,0,0,0,6.79,16.43,9.41,9.41,0,0,0,6.79-2.85l31.74-31.73a9.53,9.53,0,0,0,0-13.58Z"), T(h, "class", "a88316b4-2478-4a69-b2eb-d32a5fb419dd"), T(h, "d", "M45.16,122.16H19.26V26.79H45.32a9.63,9.63,0,1,0,0-19.26H9.63A9.56,9.56,0,0,0,0,17.16V131.63a9.57,9.57,0,0,0,9.63,9.64H45.32A9.57,9.57,0,0,0,55,131.63a9.78,9.78,0,0,0-9.79-9.47Z"), T(n, "id", "bbfaf345-72af-4296-bf4b-2fd41fc03d5d"), T(n, "data-name", "Layer 1"), T(n, "xmlns", "http://www.w3.org/2000/svg"), T(n, "viewBox", "0 0 150 150"), yr(r, "width", /*isMobile*/
|
|
4337
4364
|
e[3] ? (
|
|
4338
4365
|
/*mediaQuery*/
|
|
4339
4366
|
e[4].matches ? "20px" : "24px"
|
|
@@ -4343,7 +4370,7 @@ function ji(e) {
|
|
|
4343
4370
|
e[3] ? "PlayerAccountMenuItemBoxTablet" : ""));
|
|
4344
4371
|
},
|
|
4345
4372
|
m(p, d) {
|
|
4346
|
-
|
|
4373
|
+
oe(p, t, d), x(t, r), x(r, n), x(n, i), x(i, o), x(o, s), x(n, a), x(n, h), x(t, u), c && c.m(t, null), l || (f = Pt(
|
|
4347
4374
|
t,
|
|
4348
4375
|
"click",
|
|
4349
4376
|
/*click_handler*/
|
|
@@ -4355,110 +4382,110 @@ function ji(e) {
|
|
|
4355
4382
|
p[3] || c.p(p, d);
|
|
4356
4383
|
},
|
|
4357
4384
|
d(p) {
|
|
4358
|
-
p &&
|
|
4385
|
+
p && Z(t), c && c.d(), l = !1, f();
|
|
4359
4386
|
}
|
|
4360
4387
|
};
|
|
4361
4388
|
}
|
|
4362
|
-
function
|
|
4389
|
+
function zi(e) {
|
|
4363
4390
|
let t, r = (
|
|
4364
4391
|
/*$_*/
|
|
4365
4392
|
e[2]("logoutButton") + ""
|
|
4366
4393
|
), n;
|
|
4367
4394
|
return {
|
|
4368
4395
|
c() {
|
|
4369
|
-
t =
|
|
4396
|
+
t = I("span"), n = ge(r), T(t, "class", "PlayerLogoutText");
|
|
4370
4397
|
},
|
|
4371
4398
|
m(i, o) {
|
|
4372
|
-
|
|
4399
|
+
oe(i, t, o), x(t, n);
|
|
4373
4400
|
},
|
|
4374
4401
|
p(i, o) {
|
|
4375
4402
|
o & /*$_*/
|
|
4376
4403
|
4 && r !== (r = /*$_*/
|
|
4377
|
-
i[2]("logoutButton") + "") &&
|
|
4404
|
+
i[2]("logoutButton") + "") && Ot(n, r);
|
|
4378
4405
|
},
|
|
4379
4406
|
d(i) {
|
|
4380
|
-
i &&
|
|
4407
|
+
i && Z(t);
|
|
4381
4408
|
}
|
|
4382
4409
|
};
|
|
4383
4410
|
}
|
|
4384
|
-
function
|
|
4411
|
+
function Zi(e) {
|
|
4385
4412
|
let t;
|
|
4386
4413
|
function r(o, s) {
|
|
4387
4414
|
return (
|
|
4388
4415
|
/*buttonlocation*/
|
|
4389
|
-
o[0] === "PlayerAccountMenu" ?
|
|
4416
|
+
o[0] === "PlayerAccountMenu" ? Wi : Xi
|
|
4390
4417
|
);
|
|
4391
4418
|
}
|
|
4392
4419
|
let n = r(e), i = n(e);
|
|
4393
4420
|
return {
|
|
4394
4421
|
c() {
|
|
4395
|
-
t =
|
|
4422
|
+
t = I("div"), i.c();
|
|
4396
4423
|
},
|
|
4397
4424
|
m(o, s) {
|
|
4398
|
-
|
|
4425
|
+
oe(o, t, s), i.m(t, null), e[15](t);
|
|
4399
4426
|
},
|
|
4400
4427
|
p(o, [s]) {
|
|
4401
4428
|
n === (n = r(o)) && i ? i.p(o, s) : (i.d(1), i = n(o), i && (i.c(), i.m(t, null)));
|
|
4402
4429
|
},
|
|
4403
|
-
i:
|
|
4404
|
-
o:
|
|
4430
|
+
i: H,
|
|
4431
|
+
o: H,
|
|
4405
4432
|
d(o) {
|
|
4406
|
-
o &&
|
|
4433
|
+
o && Z(t), i.d(), e[15](null);
|
|
4407
4434
|
}
|
|
4408
4435
|
};
|
|
4409
4436
|
}
|
|
4410
|
-
function
|
|
4437
|
+
function Qi(e, t, r) {
|
|
4411
4438
|
let n;
|
|
4412
|
-
|
|
4413
|
-
let { endpoint: i = "" } = t, { session: o = "" } = t, { buttonlocation: s = "" } = t, { lang: a = "" } = t, { mbsource: h } = t, { clientstyling: u = "" } = t, { clientstylingurl: l = "" } = t, { translationurl: f = "" } = t, c = "", p = !1, d,
|
|
4414
|
-
const
|
|
4415
|
-
fetch(f).then((
|
|
4416
|
-
Object.keys(
|
|
4417
|
-
|
|
4439
|
+
cr(e, $i, (y) => r(2, n = y));
|
|
4440
|
+
let { endpoint: i = "" } = t, { session: o = "" } = t, { buttonlocation: s = "" } = t, { lang: a = "" } = t, { mbsource: h } = t, { clientstyling: u = "" } = t, { clientstylingurl: l = "" } = t, { translationurl: f = "" } = t, c = "", p = !1, d, g, w = window.navigator.userAgent, $ = Ri(w) !== "PC";
|
|
4441
|
+
const N = window.matchMedia("(min-width: 768px)"), S = () => {
|
|
4442
|
+
fetch(f).then((C) => C.json()).then((C) => {
|
|
4443
|
+
Object.keys(C).forEach((we) => {
|
|
4444
|
+
St(we, C[we]);
|
|
4418
4445
|
});
|
|
4419
|
-
}).catch((
|
|
4420
|
-
console.log(
|
|
4446
|
+
}).catch((C) => {
|
|
4447
|
+
console.log(C);
|
|
4421
4448
|
});
|
|
4422
4449
|
};
|
|
4423
|
-
Object.keys(
|
|
4424
|
-
|
|
4450
|
+
Object.keys(Tt).forEach((y) => {
|
|
4451
|
+
St(y, Tt[y]);
|
|
4425
4452
|
});
|
|
4426
|
-
const
|
|
4427
|
-
let
|
|
4428
|
-
|
|
4429
|
-
let
|
|
4430
|
-
fetch(`${i}/v1/player/session/player`,
|
|
4431
|
-
window.postMessage({ type: "LogoutSuccessfull" }, window.location.href),
|
|
4453
|
+
const P = () => {
|
|
4454
|
+
let y = new Headers();
|
|
4455
|
+
y.append("Content-type", "application/json"), y.append("X-SessionID", o);
|
|
4456
|
+
let C = { method: "DELETE", headers: y };
|
|
4457
|
+
fetch(`${i}/v1/player/session/player`, C).then((we) => {
|
|
4458
|
+
window.postMessage({ type: "LogoutSuccessfull" }, window.location.href), Ui("logged_out", {});
|
|
4432
4459
|
});
|
|
4433
|
-
},
|
|
4434
|
-
|
|
4460
|
+
}, O = () => (i || (c = "GENERAL-LOGOUT - Endpoint is missing! Please provide a valid endpointURL.", p = !0, console.error(c)), o || (c = "GENERAL-LOGOUT - Session is missing! Please provide a valid session.", p = !0, console.error(c)), p), U = () => {
|
|
4461
|
+
Gi(a);
|
|
4435
4462
|
};
|
|
4436
|
-
|
|
4463
|
+
_r(() => () => {
|
|
4437
4464
|
});
|
|
4438
|
-
const
|
|
4439
|
-
function
|
|
4440
|
-
|
|
4441
|
-
d =
|
|
4465
|
+
const ue = () => P(), ur = () => P();
|
|
4466
|
+
function hr(y) {
|
|
4467
|
+
Ce[y ? "unshift" : "push"](() => {
|
|
4468
|
+
d = y, r(1, d);
|
|
4442
4469
|
});
|
|
4443
4470
|
}
|
|
4444
|
-
return e.$$set = (
|
|
4445
|
-
"endpoint" in
|
|
4471
|
+
return e.$$set = (y) => {
|
|
4472
|
+
"endpoint" in y && r(6, i = y.endpoint), "session" in y && r(7, o = y.session), "buttonlocation" in y && r(0, s = y.buttonlocation), "lang" in y && r(8, a = y.lang), "mbsource" in y && r(9, h = y.mbsource), "clientstyling" in y && r(10, u = y.clientstyling), "clientstylingurl" in y && r(11, l = y.clientstylingurl), "translationurl" in y && r(12, f = y.translationurl);
|
|
4446
4473
|
}, e.$$.update = () => {
|
|
4447
4474
|
e.$$.dirty & /*endpoint, session, buttonlocation*/
|
|
4448
|
-
193 && i && o && s &&
|
|
4449
|
-
256 && a &&
|
|
4450
|
-
1026 && u && d &&
|
|
4451
|
-
1026 && u && d &&
|
|
4452
|
-
2050 && l && d &&
|
|
4453
|
-
514 && h && d &&
|
|
4454
|
-
4096 && f &&
|
|
4475
|
+
193 && i && o && s && O(), e.$$.dirty & /*lang*/
|
|
4476
|
+
256 && a && U(), e.$$.dirty & /*clientstyling, customStylingContainer*/
|
|
4477
|
+
1026 && u && d && wt(), e.$$.dirty & /*clientstyling, customStylingContainer*/
|
|
4478
|
+
1026 && u && d && wt(d, u), e.$$.dirty & /*clientstylingurl, customStylingContainer*/
|
|
4479
|
+
2050 && l && d && Di(d, l), e.$$.dirty & /*mbsource, customStylingContainer*/
|
|
4480
|
+
514 && h && d && Fi(d, `${h}.Style`, g), e.$$.dirty & /*translationurl*/
|
|
4481
|
+
4096 && f && S();
|
|
4455
4482
|
}, [
|
|
4456
4483
|
s,
|
|
4457
4484
|
d,
|
|
4458
4485
|
n,
|
|
4459
|
-
|
|
4460
|
-
|
|
4461
|
-
|
|
4486
|
+
$,
|
|
4487
|
+
N,
|
|
4488
|
+
P,
|
|
4462
4489
|
i,
|
|
4463
4490
|
o,
|
|
4464
4491
|
a,
|
|
@@ -4466,18 +4493,18 @@ function Xi(e, t, r) {
|
|
|
4466
4493
|
u,
|
|
4467
4494
|
l,
|
|
4468
4495
|
f,
|
|
4469
|
-
|
|
4470
|
-
|
|
4471
|
-
|
|
4496
|
+
ue,
|
|
4497
|
+
ur,
|
|
4498
|
+
hr
|
|
4472
4499
|
];
|
|
4473
4500
|
}
|
|
4474
|
-
class
|
|
4501
|
+
class Yi extends Lr {
|
|
4475
4502
|
constructor(t) {
|
|
4476
|
-
super(),
|
|
4503
|
+
super(), Or(
|
|
4477
4504
|
this,
|
|
4478
4505
|
t,
|
|
4479
|
-
|
|
4480
|
-
|
|
4506
|
+
Qi,
|
|
4507
|
+
Zi,
|
|
4481
4508
|
Bt,
|
|
4482
4509
|
{
|
|
4483
4510
|
endpoint: 6,
|
|
@@ -4489,59 +4516,59 @@ class Wi extends Or {
|
|
|
4489
4516
|
clientstylingurl: 11,
|
|
4490
4517
|
translationurl: 12
|
|
4491
4518
|
},
|
|
4492
|
-
|
|
4519
|
+
Vi
|
|
4493
4520
|
);
|
|
4494
4521
|
}
|
|
4495
4522
|
get endpoint() {
|
|
4496
4523
|
return this.$$.ctx[6];
|
|
4497
4524
|
}
|
|
4498
4525
|
set endpoint(t) {
|
|
4499
|
-
this.$$set({ endpoint: t }),
|
|
4526
|
+
this.$$set({ endpoint: t }), B();
|
|
4500
4527
|
}
|
|
4501
4528
|
get session() {
|
|
4502
4529
|
return this.$$.ctx[7];
|
|
4503
4530
|
}
|
|
4504
4531
|
set session(t) {
|
|
4505
|
-
this.$$set({ session: t }),
|
|
4532
|
+
this.$$set({ session: t }), B();
|
|
4506
4533
|
}
|
|
4507
4534
|
get buttonlocation() {
|
|
4508
4535
|
return this.$$.ctx[0];
|
|
4509
4536
|
}
|
|
4510
4537
|
set buttonlocation(t) {
|
|
4511
|
-
this.$$set({ buttonlocation: t }),
|
|
4538
|
+
this.$$set({ buttonlocation: t }), B();
|
|
4512
4539
|
}
|
|
4513
4540
|
get lang() {
|
|
4514
4541
|
return this.$$.ctx[8];
|
|
4515
4542
|
}
|
|
4516
4543
|
set lang(t) {
|
|
4517
|
-
this.$$set({ lang: t }),
|
|
4544
|
+
this.$$set({ lang: t }), B();
|
|
4518
4545
|
}
|
|
4519
4546
|
get mbsource() {
|
|
4520
4547
|
return this.$$.ctx[9];
|
|
4521
4548
|
}
|
|
4522
4549
|
set mbsource(t) {
|
|
4523
|
-
this.$$set({ mbsource: t }),
|
|
4550
|
+
this.$$set({ mbsource: t }), B();
|
|
4524
4551
|
}
|
|
4525
4552
|
get clientstyling() {
|
|
4526
4553
|
return this.$$.ctx[10];
|
|
4527
4554
|
}
|
|
4528
4555
|
set clientstyling(t) {
|
|
4529
|
-
this.$$set({ clientstyling: t }),
|
|
4556
|
+
this.$$set({ clientstyling: t }), B();
|
|
4530
4557
|
}
|
|
4531
4558
|
get clientstylingurl() {
|
|
4532
4559
|
return this.$$.ctx[11];
|
|
4533
4560
|
}
|
|
4534
4561
|
set clientstylingurl(t) {
|
|
4535
|
-
this.$$set({ clientstylingurl: t }),
|
|
4562
|
+
this.$$set({ clientstylingurl: t }), B();
|
|
4536
4563
|
}
|
|
4537
4564
|
get translationurl() {
|
|
4538
4565
|
return this.$$.ctx[12];
|
|
4539
4566
|
}
|
|
4540
4567
|
set translationurl(t) {
|
|
4541
|
-
this.$$set({ translationurl: t }),
|
|
4568
|
+
this.$$set({ translationurl: t }), B();
|
|
4542
4569
|
}
|
|
4543
4570
|
}
|
|
4544
|
-
|
|
4571
|
+
Ir(Yi, { endpoint: {}, session: {}, buttonlocation: {}, lang: {}, mbsource: {}, clientstyling: {}, clientstylingurl: {}, translationurl: {} }, [], [], !0);
|
|
4545
4572
|
export {
|
|
4546
|
-
|
|
4573
|
+
Yi as G
|
|
4547
4574
|
};
|