@everymatrix/general-logout 1.59.3 → 1.60.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/components/{GeneralLogout-DhAajlWC.js → GeneralLogout-CcvJLmVz.js} +604 -572
- package/components/GeneralLogout-DoAq8lES.cjs +18 -0
- package/components/{GeneralLogout-DQ5QU0Qt.js → GeneralLogout-JxZv11vv.js} +591 -559
- 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
- package/components/GeneralLogout-Dn9xyo1g.cjs +0 -18
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var
|
|
4
|
-
var
|
|
5
|
-
var Te = (e, t, r) => t in e ?
|
|
1
|
+
var pr = Object.defineProperty, dr = Object.defineProperties;
|
|
2
|
+
var mr = Object.getOwnPropertyDescriptors;
|
|
3
|
+
var et = Object.getOwnPropertySymbols;
|
|
4
|
+
var br = Object.prototype.hasOwnProperty, gr = Object.prototype.propertyIsEnumerable;
|
|
5
|
+
var Te = (e, t, r) => t in e ? pr(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, tt = (e, t) => {
|
|
6
6
|
for (var r in t || (t = {}))
|
|
7
|
-
|
|
8
|
-
if (
|
|
9
|
-
for (var r of
|
|
10
|
-
|
|
7
|
+
br.call(t, r) && Te(e, r, t[r]);
|
|
8
|
+
if (et)
|
|
9
|
+
for (var r of et(t))
|
|
10
|
+
gr.call(t, r) && Te(e, r, t[r]);
|
|
11
11
|
return e;
|
|
12
|
-
},
|
|
12
|
+
}, rt = (e, t) => dr(e, mr(t));
|
|
13
13
|
var T = (e, t, r) => (Te(e, typeof t != "symbol" ? t + "" : t, r), r);
|
|
14
|
-
var
|
|
14
|
+
var nt = (e, t, r) => new Promise((n, i) => {
|
|
15
15
|
var o = (h) => {
|
|
16
16
|
try {
|
|
17
17
|
a(r.next(h));
|
|
@@ -27,49 +27,49 @@ var et = (e, t, r) => new Promise((n, i) => {
|
|
|
27
27
|
}, a = (h) => h.done ? n(h.value) : Promise.resolve(h.value).then(o, s);
|
|
28
28
|
a((r = r.apply(e, t)).next());
|
|
29
29
|
});
|
|
30
|
-
function
|
|
30
|
+
function w() {
|
|
31
31
|
}
|
|
32
|
-
function
|
|
32
|
+
function Pt(e) {
|
|
33
33
|
return e();
|
|
34
34
|
}
|
|
35
|
-
function
|
|
35
|
+
function it() {
|
|
36
36
|
return /* @__PURE__ */ Object.create(null);
|
|
37
37
|
}
|
|
38
38
|
function oe(e) {
|
|
39
|
-
e.forEach(
|
|
39
|
+
e.forEach(Pt);
|
|
40
40
|
}
|
|
41
|
-
function
|
|
41
|
+
function Qe(e) {
|
|
42
42
|
return typeof e == "function";
|
|
43
43
|
}
|
|
44
|
-
function
|
|
44
|
+
function Ot(e, t) {
|
|
45
45
|
return e != e ? t == t : e !== t || e && typeof e == "object" || typeof e == "function";
|
|
46
46
|
}
|
|
47
|
-
function
|
|
47
|
+
function yr(e) {
|
|
48
48
|
return Object.keys(e).length === 0;
|
|
49
49
|
}
|
|
50
|
-
function
|
|
50
|
+
function It(e, ...t) {
|
|
51
51
|
if (e == null) {
|
|
52
52
|
for (const n of t)
|
|
53
53
|
n(void 0);
|
|
54
|
-
return
|
|
54
|
+
return w;
|
|
55
55
|
}
|
|
56
56
|
const r = e.subscribe(...t);
|
|
57
57
|
return r.unsubscribe ? () => r.unsubscribe() : r;
|
|
58
58
|
}
|
|
59
|
-
function
|
|
60
|
-
e.$$.on_destroy.push(
|
|
59
|
+
function vr(e, t, r) {
|
|
60
|
+
e.$$.on_destroy.push(It(t, r));
|
|
61
61
|
}
|
|
62
62
|
function S(e, t) {
|
|
63
63
|
e.appendChild(t);
|
|
64
64
|
}
|
|
65
|
-
function
|
|
66
|
-
const n =
|
|
65
|
+
function Er(e, t, r) {
|
|
66
|
+
const n = _r(e);
|
|
67
67
|
if (!n.getElementById(t)) {
|
|
68
68
|
const i = O("style");
|
|
69
|
-
i.id = t, i.textContent = r,
|
|
69
|
+
i.id = t, i.textContent = r, xr(n, i);
|
|
70
70
|
}
|
|
71
71
|
}
|
|
72
|
-
function
|
|
72
|
+
function _r(e) {
|
|
73
73
|
if (!e)
|
|
74
74
|
return document;
|
|
75
75
|
const t = e.getRootNode ? e.getRootNode() : e.ownerDocument;
|
|
@@ -79,7 +79,7 @@ function gr(e) {
|
|
|
79
79
|
t
|
|
80
80
|
) : e.ownerDocument;
|
|
81
81
|
}
|
|
82
|
-
function
|
|
82
|
+
function xr(e, t) {
|
|
83
83
|
return S(
|
|
84
84
|
/** @type {Document} */
|
|
85
85
|
e.head || e,
|
|
@@ -101,26 +101,26 @@ function K(e) {
|
|
|
101
101
|
function ge(e) {
|
|
102
102
|
return document.createTextNode(e);
|
|
103
103
|
}
|
|
104
|
-
function
|
|
104
|
+
function Sr() {
|
|
105
105
|
return ge(" ");
|
|
106
106
|
}
|
|
107
|
-
function
|
|
107
|
+
function Lt(e, t, r, n) {
|
|
108
108
|
return e.addEventListener(t, r, n), () => e.removeEventListener(t, r, n);
|
|
109
109
|
}
|
|
110
110
|
function H(e, t, r) {
|
|
111
111
|
r == null ? e.removeAttribute(t) : e.getAttribute(t) !== r && e.setAttribute(t, r);
|
|
112
112
|
}
|
|
113
|
-
function
|
|
113
|
+
function Tr(e) {
|
|
114
114
|
return Array.from(e.childNodes);
|
|
115
115
|
}
|
|
116
|
-
function
|
|
116
|
+
function Nt(e, t) {
|
|
117
117
|
t = "" + t, e.data !== t && (e.data = /** @type {string} */
|
|
118
118
|
t);
|
|
119
119
|
}
|
|
120
|
-
function
|
|
120
|
+
function Hr(e, t, r, n) {
|
|
121
121
|
r == null ? e.style.removeProperty(t) : e.style.setProperty(t, r, "");
|
|
122
122
|
}
|
|
123
|
-
function
|
|
123
|
+
function Br(e) {
|
|
124
124
|
const t = {};
|
|
125
125
|
return e.childNodes.forEach(
|
|
126
126
|
/** @param {Element} node */
|
|
@@ -133,81 +133,81 @@ let re;
|
|
|
133
133
|
function te(e) {
|
|
134
134
|
re = e;
|
|
135
135
|
}
|
|
136
|
-
function
|
|
136
|
+
function wr() {
|
|
137
137
|
if (!re)
|
|
138
138
|
throw new Error("Function called outside component initialization");
|
|
139
139
|
return re;
|
|
140
140
|
}
|
|
141
|
-
function
|
|
142
|
-
|
|
141
|
+
function Ar(e) {
|
|
142
|
+
wr().$$.on_mount.push(e);
|
|
143
143
|
}
|
|
144
|
-
const j = [],
|
|
144
|
+
const j = [], Ne = [];
|
|
145
145
|
let k = [];
|
|
146
|
-
const
|
|
147
|
-
let
|
|
148
|
-
function
|
|
149
|
-
|
|
146
|
+
const ot = [], Pr = /* @__PURE__ */ Promise.resolve();
|
|
147
|
+
let Me = !1;
|
|
148
|
+
function Or() {
|
|
149
|
+
Me || (Me = !0, Pr.then(A));
|
|
150
150
|
}
|
|
151
|
-
function
|
|
151
|
+
function Ce(e) {
|
|
152
152
|
k.push(e);
|
|
153
153
|
}
|
|
154
154
|
const He = /* @__PURE__ */ new Set();
|
|
155
|
-
let
|
|
156
|
-
function
|
|
157
|
-
if (
|
|
155
|
+
let G = 0;
|
|
156
|
+
function A() {
|
|
157
|
+
if (G !== 0)
|
|
158
158
|
return;
|
|
159
159
|
const e = re;
|
|
160
160
|
do {
|
|
161
161
|
try {
|
|
162
|
-
for (;
|
|
163
|
-
const t = j[
|
|
164
|
-
|
|
162
|
+
for (; G < j.length; ) {
|
|
163
|
+
const t = j[G];
|
|
164
|
+
G++, te(t), Ir(t.$$);
|
|
165
165
|
}
|
|
166
166
|
} catch (t) {
|
|
167
|
-
throw j.length = 0,
|
|
167
|
+
throw j.length = 0, G = 0, t;
|
|
168
168
|
}
|
|
169
|
-
for (te(null), j.length = 0,
|
|
170
|
-
|
|
169
|
+
for (te(null), j.length = 0, G = 0; Ne.length; )
|
|
170
|
+
Ne.pop()();
|
|
171
171
|
for (let t = 0; t < k.length; t += 1) {
|
|
172
172
|
const r = k[t];
|
|
173
173
|
He.has(r) || (He.add(r), r());
|
|
174
174
|
}
|
|
175
175
|
k.length = 0;
|
|
176
176
|
} while (j.length);
|
|
177
|
-
for (;
|
|
178
|
-
|
|
179
|
-
|
|
177
|
+
for (; ot.length; )
|
|
178
|
+
ot.pop()();
|
|
179
|
+
Me = !1, He.clear(), te(e);
|
|
180
180
|
}
|
|
181
|
-
function
|
|
181
|
+
function Ir(e) {
|
|
182
182
|
if (e.fragment !== null) {
|
|
183
183
|
e.update(), oe(e.before_update);
|
|
184
184
|
const t = e.dirty;
|
|
185
|
-
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(
|
|
185
|
+
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(Ce);
|
|
186
186
|
}
|
|
187
187
|
}
|
|
188
|
-
function
|
|
188
|
+
function Lr(e) {
|
|
189
189
|
const t = [], r = [];
|
|
190
190
|
k.forEach((n) => e.indexOf(n) === -1 ? t.push(n) : r.push(n)), r.forEach((n) => n()), k = t;
|
|
191
191
|
}
|
|
192
|
-
const
|
|
193
|
-
function
|
|
194
|
-
e && e.i && (
|
|
192
|
+
const Nr = /* @__PURE__ */ new Set();
|
|
193
|
+
function Mr(e, t) {
|
|
194
|
+
e && e.i && (Nr.delete(e), e.i(t));
|
|
195
195
|
}
|
|
196
|
-
function
|
|
196
|
+
function Cr(e, t, r) {
|
|
197
197
|
const { fragment: n, after_update: i } = e.$$;
|
|
198
|
-
n && n.m(t, r),
|
|
199
|
-
const o = e.$$.on_mount.map(
|
|
198
|
+
n && n.m(t, r), Ce(() => {
|
|
199
|
+
const o = e.$$.on_mount.map(Pt).filter(Qe);
|
|
200
200
|
e.$$.on_destroy ? e.$$.on_destroy.push(...o) : oe(o), e.$$.on_mount = [];
|
|
201
|
-
}), i.forEach(
|
|
201
|
+
}), i.forEach(Ce);
|
|
202
202
|
}
|
|
203
|
-
function
|
|
203
|
+
function $r(e, t) {
|
|
204
204
|
const r = e.$$;
|
|
205
|
-
r.fragment !== null && (
|
|
205
|
+
r.fragment !== null && (Lr(r.after_update), oe(r.on_destroy), r.fragment && r.fragment.d(t), r.on_destroy = r.fragment = null, r.ctx = []);
|
|
206
206
|
}
|
|
207
|
-
function
|
|
208
|
-
e.$$.dirty[0] === -1 && (j.push(e),
|
|
207
|
+
function Rr(e, t) {
|
|
208
|
+
e.$$.dirty[0] === -1 && (j.push(e), Or(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
|
|
209
209
|
}
|
|
210
|
-
function
|
|
210
|
+
function Ur(e, t, r, n, i, o, s = null, a = [-1]) {
|
|
211
211
|
const h = re;
|
|
212
212
|
te(e);
|
|
213
213
|
const u = e.$$ = {
|
|
@@ -215,9 +215,9 @@ function Mr(e, t, r, n, i, o, s = null, a = [-1]) {
|
|
|
215
215
|
ctx: [],
|
|
216
216
|
// state
|
|
217
217
|
props: o,
|
|
218
|
-
update:
|
|
218
|
+
update: w,
|
|
219
219
|
not_equal: i,
|
|
220
|
-
bound:
|
|
220
|
+
bound: it(),
|
|
221
221
|
// lifecycle
|
|
222
222
|
on_mount: [],
|
|
223
223
|
on_destroy: [],
|
|
@@ -226,7 +226,7 @@ function Mr(e, t, r, n, i, o, s = null, a = [-1]) {
|
|
|
226
226
|
after_update: [],
|
|
227
227
|
context: new Map(t.context || (h ? h.$$.context : [])),
|
|
228
228
|
// everything else
|
|
229
|
-
callbacks:
|
|
229
|
+
callbacks: it(),
|
|
230
230
|
dirty: a,
|
|
231
231
|
skip_bound: !1,
|
|
232
232
|
root: t.target || h.$$.root
|
|
@@ -235,19 +235,19 @@ function Mr(e, t, r, n, i, o, s = null, a = [-1]) {
|
|
|
235
235
|
let l = !1;
|
|
236
236
|
if (u.ctx = r ? r(e, t.props || {}, (f, c, ...p) => {
|
|
237
237
|
const d = p.length ? p[0] : c;
|
|
238
|
-
return u.ctx && i(u.ctx[f], u.ctx[f] = d) && (!u.skip_bound && u.bound[f] && u.bound[f](d), l &&
|
|
238
|
+
return u.ctx && i(u.ctx[f], u.ctx[f] = d) && (!u.skip_bound && u.bound[f] && u.bound[f](d), l && Rr(e, f)), c;
|
|
239
239
|
}) : [], u.update(), l = !0, oe(u.before_update), u.fragment = n ? n(u.ctx) : !1, t.target) {
|
|
240
240
|
if (t.hydrate) {
|
|
241
|
-
const f =
|
|
241
|
+
const f = Tr(t.target);
|
|
242
242
|
u.fragment && u.fragment.l(f), f.forEach(Q);
|
|
243
243
|
} else
|
|
244
244
|
u.fragment && u.fragment.c();
|
|
245
|
-
t.intro &&
|
|
245
|
+
t.intro && Mr(e.$$.fragment), Cr(e, t.target, t.anchor), A();
|
|
246
246
|
}
|
|
247
247
|
te(h);
|
|
248
248
|
}
|
|
249
|
-
let
|
|
250
|
-
typeof HTMLElement == "function" && (
|
|
249
|
+
let Mt;
|
|
250
|
+
typeof HTMLElement == "function" && (Mt = class extends HTMLElement {
|
|
251
251
|
constructor(t, r, n) {
|
|
252
252
|
super();
|
|
253
253
|
/** The Svelte component constructor */
|
|
@@ -284,7 +284,7 @@ typeof HTMLElement == "function" && (It = class extends HTMLElement {
|
|
|
284
284
|
}
|
|
285
285
|
}
|
|
286
286
|
connectedCallback() {
|
|
287
|
-
return
|
|
287
|
+
return nt(this, null, function* () {
|
|
288
288
|
if (this.$$cn = !0, !this.$$c) {
|
|
289
289
|
let t = function(o) {
|
|
290
290
|
return () => {
|
|
@@ -308,7 +308,7 @@ typeof HTMLElement == "function" && (It = class extends HTMLElement {
|
|
|
308
308
|
};
|
|
309
309
|
if (yield Promise.resolve(), !this.$$cn || this.$$c)
|
|
310
310
|
return;
|
|
311
|
-
const r = {}, n =
|
|
311
|
+
const r = {}, n = Br(this);
|
|
312
312
|
for (const o of this.$$s)
|
|
313
313
|
o in n && (r[o] = [t(o)]);
|
|
314
314
|
for (const o of this.attributes) {
|
|
@@ -319,7 +319,7 @@ typeof HTMLElement == "function" && (It = class extends HTMLElement {
|
|
|
319
319
|
!(o in this.$$d) && this[o] !== void 0 && (this.$$d[o] = this[o], delete this[o]);
|
|
320
320
|
this.$$c = new this.$$ctor({
|
|
321
321
|
target: this.shadowRoot || this,
|
|
322
|
-
props:
|
|
322
|
+
props: rt(tt({}, this.$$d), {
|
|
323
323
|
$$slots: r,
|
|
324
324
|
$$scope: {
|
|
325
325
|
ctx: []
|
|
@@ -397,8 +397,8 @@ function ce(e, t, r, n) {
|
|
|
397
397
|
return t;
|
|
398
398
|
}
|
|
399
399
|
}
|
|
400
|
-
function
|
|
401
|
-
let s = class extends
|
|
400
|
+
function Dr(e, t, r, n, i, o) {
|
|
401
|
+
let s = class extends Mt {
|
|
402
402
|
constructor() {
|
|
403
403
|
super(e, r, i), this.$$p_d = t;
|
|
404
404
|
}
|
|
@@ -428,7 +428,7 @@ function Cr(e, t, r, n, i, o) {
|
|
|
428
428
|
}), e.element = /** @type {any} */
|
|
429
429
|
s, s;
|
|
430
430
|
}
|
|
431
|
-
class
|
|
431
|
+
class Gr {
|
|
432
432
|
constructor() {
|
|
433
433
|
/**
|
|
434
434
|
* ### PRIVATE API
|
|
@@ -449,7 +449,7 @@ class $r {
|
|
|
449
449
|
}
|
|
450
450
|
/** @returns {void} */
|
|
451
451
|
$destroy() {
|
|
452
|
-
|
|
452
|
+
$r(this, 1), this.$destroy = w;
|
|
453
453
|
}
|
|
454
454
|
/**
|
|
455
455
|
* @template {Extract<keyof Events, string>} K
|
|
@@ -458,8 +458,8 @@ class $r {
|
|
|
458
458
|
* @returns {() => void}
|
|
459
459
|
*/
|
|
460
460
|
$on(t, r) {
|
|
461
|
-
if (!
|
|
462
|
-
return
|
|
461
|
+
if (!Qe(r))
|
|
462
|
+
return w;
|
|
463
463
|
const n = this.$$.callbacks[t] || (this.$$.callbacks[t] = []);
|
|
464
464
|
return n.push(r), () => {
|
|
465
465
|
const i = n.indexOf(r);
|
|
@@ -471,11 +471,11 @@ class $r {
|
|
|
471
471
|
* @returns {void}
|
|
472
472
|
*/
|
|
473
473
|
$set(t) {
|
|
474
|
-
this.$$set && !
|
|
474
|
+
this.$$set && !yr(t) && (this.$$.skip_bound = !0, this.$$set(t), this.$$.skip_bound = !1);
|
|
475
475
|
}
|
|
476
476
|
}
|
|
477
|
-
const
|
|
478
|
-
typeof window != "undefined" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(
|
|
477
|
+
const Fr = "4";
|
|
478
|
+
typeof window != "undefined" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(Fr);
|
|
479
479
|
/*! *****************************************************************************
|
|
480
480
|
Copyright (c) Microsoft Corporation.
|
|
481
481
|
|
|
@@ -490,18 +490,18 @@ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
|
490
490
|
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
491
491
|
PERFORMANCE OF THIS SOFTWARE.
|
|
492
492
|
***************************************************************************** */
|
|
493
|
-
var
|
|
494
|
-
return
|
|
493
|
+
var $e = function(e, t) {
|
|
494
|
+
return $e = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
|
|
495
495
|
r.__proto__ = n;
|
|
496
496
|
} || function(r, n) {
|
|
497
497
|
for (var i in n)
|
|
498
498
|
Object.prototype.hasOwnProperty.call(n, i) && (r[i] = n[i]);
|
|
499
|
-
},
|
|
499
|
+
}, $e(e, t);
|
|
500
500
|
};
|
|
501
501
|
function L(e, t) {
|
|
502
502
|
if (typeof t != "function" && t !== null)
|
|
503
503
|
throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
|
|
504
|
-
|
|
504
|
+
$e(e, t);
|
|
505
505
|
function r() {
|
|
506
506
|
this.constructor = e;
|
|
507
507
|
}
|
|
@@ -517,7 +517,7 @@ var g = function() {
|
|
|
517
517
|
return t;
|
|
518
518
|
}, g.apply(this, arguments);
|
|
519
519
|
};
|
|
520
|
-
function
|
|
520
|
+
function jr(e, t) {
|
|
521
521
|
var r = {};
|
|
522
522
|
for (var n in e)
|
|
523
523
|
Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
@@ -526,7 +526,7 @@ function Ur(e, t) {
|
|
|
526
526
|
t.indexOf(n[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[i]) && (r[n[i]] = e[n[i]]);
|
|
527
527
|
return r;
|
|
528
528
|
}
|
|
529
|
-
function
|
|
529
|
+
function Re(e) {
|
|
530
530
|
var t = typeof Symbol == "function" && Symbol.iterator, r = t && e[t], n = 0;
|
|
531
531
|
if (r)
|
|
532
532
|
return r.call(e);
|
|
@@ -538,7 +538,7 @@ function $e(e) {
|
|
|
538
538
|
};
|
|
539
539
|
throw new TypeError(t ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
|
540
540
|
}
|
|
541
|
-
function
|
|
541
|
+
function Ue(e, t) {
|
|
542
542
|
var r = typeof Symbol == "function" && e[Symbol.iterator];
|
|
543
543
|
if (!r)
|
|
544
544
|
return e;
|
|
@@ -567,13 +567,13 @@ function V(e, t, r) {
|
|
|
567
567
|
function I(e) {
|
|
568
568
|
return typeof e == "function";
|
|
569
569
|
}
|
|
570
|
-
function
|
|
570
|
+
function Ct(e) {
|
|
571
571
|
var t = function(n) {
|
|
572
572
|
Error.call(n), n.stack = new Error().stack;
|
|
573
573
|
}, r = e(t);
|
|
574
574
|
return r.prototype = Object.create(Error.prototype), r.prototype.constructor = r, r;
|
|
575
575
|
}
|
|
576
|
-
var Be =
|
|
576
|
+
var Be = Ct(function(e) {
|
|
577
577
|
return function(r) {
|
|
578
578
|
e(this), this.message = r ? r.length + ` errors occurred during unsubscription:
|
|
579
579
|
` + r.map(function(n, i) {
|
|
@@ -582,7 +582,7 @@ var Be = Lt(function(e) {
|
|
|
582
582
|
`) : "", this.name = "UnsubscriptionError", this.errors = r;
|
|
583
583
|
};
|
|
584
584
|
});
|
|
585
|
-
function
|
|
585
|
+
function De(e, t) {
|
|
586
586
|
if (e) {
|
|
587
587
|
var r = e.indexOf(t);
|
|
588
588
|
0 <= r && e.splice(r, 1);
|
|
@@ -600,7 +600,7 @@ var ye = function() {
|
|
|
600
600
|
if (s)
|
|
601
601
|
if (this._parentage = null, Array.isArray(s))
|
|
602
602
|
try {
|
|
603
|
-
for (var a =
|
|
603
|
+
for (var a = Re(s), h = a.next(); !h.done; h = a.next()) {
|
|
604
604
|
var u = h.value;
|
|
605
605
|
u.remove(this);
|
|
606
606
|
}
|
|
@@ -627,12 +627,12 @@ var ye = function() {
|
|
|
627
627
|
if (f) {
|
|
628
628
|
this._finalizers = null;
|
|
629
629
|
try {
|
|
630
|
-
for (var c =
|
|
630
|
+
for (var c = Re(f), p = c.next(); !p.done; p = c.next()) {
|
|
631
631
|
var d = p.value;
|
|
632
632
|
try {
|
|
633
|
-
|
|
633
|
+
st(d);
|
|
634
634
|
} catch (v) {
|
|
635
|
-
o = o != null ? o : [], v instanceof Be ? o = V(V([],
|
|
635
|
+
o = o != null ? o : [], v instanceof Be ? o = V(V([], Ue(o)), Ue(v.errors)) : o.push(v);
|
|
636
636
|
}
|
|
637
637
|
}
|
|
638
638
|
} catch (v) {
|
|
@@ -653,7 +653,7 @@ var ye = function() {
|
|
|
653
653
|
var r;
|
|
654
654
|
if (t && t !== this)
|
|
655
655
|
if (this.closed)
|
|
656
|
-
|
|
656
|
+
st(t);
|
|
657
657
|
else {
|
|
658
658
|
if (t instanceof e) {
|
|
659
659
|
if (t.closed || t._hasParent(this))
|
|
@@ -670,49 +670,53 @@ var ye = function() {
|
|
|
670
670
|
this._parentage = Array.isArray(r) ? (r.push(t), r) : r ? [r, t] : t;
|
|
671
671
|
}, e.prototype._removeParent = function(t) {
|
|
672
672
|
var r = this._parentage;
|
|
673
|
-
r === t ? this._parentage = null : Array.isArray(r) &&
|
|
673
|
+
r === t ? this._parentage = null : Array.isArray(r) && De(r, t);
|
|
674
674
|
}, e.prototype.remove = function(t) {
|
|
675
675
|
var r = this._finalizers;
|
|
676
|
-
r &&
|
|
676
|
+
r && De(r, t), t instanceof e && t._removeParent(this);
|
|
677
677
|
}, e.EMPTY = function() {
|
|
678
678
|
var t = new e();
|
|
679
679
|
return t.closed = !0, t;
|
|
680
680
|
}(), e;
|
|
681
|
-
}(),
|
|
682
|
-
function
|
|
681
|
+
}(), $t = ye.EMPTY;
|
|
682
|
+
function Rt(e) {
|
|
683
683
|
return e instanceof ye || e && "closed" in e && I(e.remove) && I(e.add) && I(e.unsubscribe);
|
|
684
684
|
}
|
|
685
|
-
function
|
|
685
|
+
function st(e) {
|
|
686
686
|
I(e) ? e() : e.unsubscribe();
|
|
687
687
|
}
|
|
688
|
-
var
|
|
689
|
-
|
|
690
|
-
|
|
688
|
+
var Ut = {
|
|
689
|
+
onUnhandledError: null,
|
|
690
|
+
onStoppedNotification: null,
|
|
691
|
+
Promise: void 0,
|
|
692
|
+
useDeprecatedSynchronousErrorHandling: !1,
|
|
693
|
+
useDeprecatedNextContext: !1
|
|
694
|
+
}, kr = {
|
|
691
695
|
setTimeout: function(e, t) {
|
|
692
696
|
for (var r = [], n = 2; n < arguments.length; n++)
|
|
693
697
|
r[n - 2] = arguments[n];
|
|
694
|
-
return setTimeout.apply(void 0, V([e, t],
|
|
698
|
+
return setTimeout.apply(void 0, V([e, t], Ue(r)));
|
|
695
699
|
},
|
|
696
700
|
clearTimeout: function(e) {
|
|
697
701
|
return clearTimeout(e);
|
|
698
702
|
},
|
|
699
703
|
delegate: void 0
|
|
700
704
|
};
|
|
701
|
-
function
|
|
702
|
-
|
|
705
|
+
function Vr(e) {
|
|
706
|
+
kr.setTimeout(function() {
|
|
703
707
|
throw e;
|
|
704
708
|
});
|
|
705
709
|
}
|
|
706
|
-
function
|
|
710
|
+
function at() {
|
|
707
711
|
}
|
|
708
712
|
function fe(e) {
|
|
709
713
|
e();
|
|
710
714
|
}
|
|
711
|
-
var
|
|
715
|
+
var Dt = function(e) {
|
|
712
716
|
L(t, e);
|
|
713
717
|
function t(r) {
|
|
714
718
|
var n = e.call(this) || this;
|
|
715
|
-
return n.isStopped = !1, r ? (n.destination = r,
|
|
719
|
+
return n.isStopped = !1, r ? (n.destination = r, Rt(r) && r.add(n)) : n.destination = Zr, n;
|
|
716
720
|
}
|
|
717
721
|
return t.create = function(r, n, i) {
|
|
718
722
|
return new Ge(r, n, i);
|
|
@@ -739,7 +743,11 @@ var Ct = function(e) {
|
|
|
739
743
|
this.unsubscribe();
|
|
740
744
|
}
|
|
741
745
|
}, t;
|
|
742
|
-
}(ye),
|
|
746
|
+
}(ye), Xr = Function.prototype.bind;
|
|
747
|
+
function we(e, t) {
|
|
748
|
+
return Xr.call(e, t);
|
|
749
|
+
}
|
|
750
|
+
var Wr = function() {
|
|
743
751
|
function e(t) {
|
|
744
752
|
this.partialObserver = t;
|
|
745
753
|
}
|
|
@@ -774,39 +782,51 @@ var Ct = function(e) {
|
|
|
774
782
|
L(t, e);
|
|
775
783
|
function t(r, n, i) {
|
|
776
784
|
var o = e.call(this) || this, s;
|
|
777
|
-
|
|
778
|
-
|
|
779
|
-
|
|
780
|
-
|
|
781
|
-
|
|
785
|
+
if (I(r) || !r)
|
|
786
|
+
s = {
|
|
787
|
+
next: r != null ? r : void 0,
|
|
788
|
+
error: n != null ? n : void 0,
|
|
789
|
+
complete: i != null ? i : void 0
|
|
790
|
+
};
|
|
791
|
+
else {
|
|
792
|
+
var a;
|
|
793
|
+
o && Ut.useDeprecatedNextContext ? (a = Object.create(r), a.unsubscribe = function() {
|
|
794
|
+
return o.unsubscribe();
|
|
795
|
+
}, s = {
|
|
796
|
+
next: r.next && we(r.next, a),
|
|
797
|
+
error: r.error && we(r.error, a),
|
|
798
|
+
complete: r.complete && we(r.complete, a)
|
|
799
|
+
}) : s = r;
|
|
800
|
+
}
|
|
801
|
+
return o.destination = new Wr(s), o;
|
|
782
802
|
}
|
|
783
803
|
return t;
|
|
784
|
-
}(
|
|
804
|
+
}(Dt);
|
|
785
805
|
function he(e) {
|
|
786
|
-
|
|
806
|
+
Vr(e);
|
|
787
807
|
}
|
|
788
|
-
function
|
|
808
|
+
function zr(e) {
|
|
789
809
|
throw e;
|
|
790
810
|
}
|
|
791
|
-
var
|
|
811
|
+
var Zr = {
|
|
792
812
|
closed: !0,
|
|
793
|
-
next:
|
|
794
|
-
error:
|
|
795
|
-
complete:
|
|
796
|
-
},
|
|
813
|
+
next: at,
|
|
814
|
+
error: zr,
|
|
815
|
+
complete: at
|
|
816
|
+
}, Qr = function() {
|
|
797
817
|
return typeof Symbol == "function" && Symbol.observable || "@@observable";
|
|
798
818
|
}();
|
|
799
|
-
function
|
|
819
|
+
function Jr(e) {
|
|
800
820
|
return e;
|
|
801
821
|
}
|
|
802
|
-
function
|
|
803
|
-
return e.length === 0 ?
|
|
822
|
+
function Yr(e) {
|
|
823
|
+
return e.length === 0 ? Jr : e.length === 1 ? e[0] : function(r) {
|
|
804
824
|
return e.reduce(function(n, i) {
|
|
805
825
|
return i(n);
|
|
806
826
|
}, r);
|
|
807
827
|
};
|
|
808
828
|
}
|
|
809
|
-
var
|
|
829
|
+
var ut = function() {
|
|
810
830
|
function e(t) {
|
|
811
831
|
t && (this._subscribe = t);
|
|
812
832
|
}
|
|
@@ -814,7 +834,7 @@ var ot = function() {
|
|
|
814
834
|
var r = new e();
|
|
815
835
|
return r.source = this, r.operator = t, r;
|
|
816
836
|
}, e.prototype.subscribe = function(t, r, n) {
|
|
817
|
-
var i = this, o =
|
|
837
|
+
var i = this, o = Kr(t) ? t : new Ge(t, r, n);
|
|
818
838
|
return fe(function() {
|
|
819
839
|
var s = i, a = s.operator, h = s.source;
|
|
820
840
|
o.add(a ? a.call(o, h) : h ? i._subscribe(o) : i._trySubscribe(o));
|
|
@@ -827,7 +847,7 @@ var ot = function() {
|
|
|
827
847
|
}
|
|
828
848
|
}, e.prototype.forEach = function(t, r) {
|
|
829
849
|
var n = this;
|
|
830
|
-
return r =
|
|
850
|
+
return r = ht(r), new r(function(i, o) {
|
|
831
851
|
var s = new Ge({
|
|
832
852
|
next: function(a) {
|
|
833
853
|
try {
|
|
@@ -844,15 +864,15 @@ var ot = function() {
|
|
|
844
864
|
}, e.prototype._subscribe = function(t) {
|
|
845
865
|
var r;
|
|
846
866
|
return (r = this.source) === null || r === void 0 ? void 0 : r.subscribe(t);
|
|
847
|
-
}, e.prototype[
|
|
867
|
+
}, e.prototype[Qr] = function() {
|
|
848
868
|
return this;
|
|
849
869
|
}, e.prototype.pipe = function() {
|
|
850
870
|
for (var t = [], r = 0; r < arguments.length; r++)
|
|
851
871
|
t[r] = arguments[r];
|
|
852
|
-
return
|
|
872
|
+
return Yr(t)(this);
|
|
853
873
|
}, e.prototype.toPromise = function(t) {
|
|
854
874
|
var r = this;
|
|
855
|
-
return t =
|
|
875
|
+
return t = ht(t), new t(function(n, i) {
|
|
856
876
|
var o;
|
|
857
877
|
r.subscribe(function(s) {
|
|
858
878
|
return o = s;
|
|
@@ -866,32 +886,32 @@ var ot = function() {
|
|
|
866
886
|
return new e(t);
|
|
867
887
|
}, e;
|
|
868
888
|
}();
|
|
869
|
-
function
|
|
889
|
+
function ht(e) {
|
|
870
890
|
var t;
|
|
871
|
-
return (t = e != null ? e :
|
|
891
|
+
return (t = e != null ? e : Ut.Promise) !== null && t !== void 0 ? t : Promise;
|
|
872
892
|
}
|
|
873
|
-
function
|
|
893
|
+
function qr(e) {
|
|
874
894
|
return e && I(e.next) && I(e.error) && I(e.complete);
|
|
875
895
|
}
|
|
876
|
-
function
|
|
877
|
-
return e && e instanceof
|
|
896
|
+
function Kr(e) {
|
|
897
|
+
return e && e instanceof Dt || qr(e) && Rt(e);
|
|
878
898
|
}
|
|
879
|
-
var
|
|
899
|
+
var en = Ct(function(e) {
|
|
880
900
|
return function() {
|
|
881
901
|
e(this), this.name = "ObjectUnsubscribedError", this.message = "object unsubscribed";
|
|
882
902
|
};
|
|
883
|
-
}),
|
|
903
|
+
}), Gt = function(e) {
|
|
884
904
|
L(t, e);
|
|
885
905
|
function t() {
|
|
886
906
|
var r = e.call(this) || this;
|
|
887
907
|
return r.closed = !1, r.currentObservers = null, r.observers = [], r.isStopped = !1, r.hasError = !1, r.thrownError = null, r;
|
|
888
908
|
}
|
|
889
909
|
return t.prototype.lift = function(r) {
|
|
890
|
-
var n = new
|
|
910
|
+
var n = new lt(this, this);
|
|
891
911
|
return n.operator = r, n;
|
|
892
912
|
}, t.prototype._throwIfClosed = function() {
|
|
893
913
|
if (this.closed)
|
|
894
|
-
throw new
|
|
914
|
+
throw new en();
|
|
895
915
|
}, t.prototype.next = function(r) {
|
|
896
916
|
var n = this;
|
|
897
917
|
fe(function() {
|
|
@@ -899,7 +919,7 @@ var Jr = Lt(function(e) {
|
|
|
899
919
|
if (n._throwIfClosed(), !n.isStopped) {
|
|
900
920
|
n.currentObservers || (n.currentObservers = Array.from(n.observers));
|
|
901
921
|
try {
|
|
902
|
-
for (var s =
|
|
922
|
+
for (var s = Re(n.currentObservers), a = s.next(); !a.done; a = s.next()) {
|
|
903
923
|
var h = a.value;
|
|
904
924
|
h.next(r);
|
|
905
925
|
}
|
|
@@ -948,19 +968,19 @@ var Jr = Lt(function(e) {
|
|
|
948
968
|
return this._throwIfClosed(), this._checkFinalizedStatuses(r), this._innerSubscribe(r);
|
|
949
969
|
}, t.prototype._innerSubscribe = function(r) {
|
|
950
970
|
var n = this, i = this, o = i.hasError, s = i.isStopped, a = i.observers;
|
|
951
|
-
return o || s ?
|
|
952
|
-
n.currentObservers = null,
|
|
971
|
+
return o || s ? $t : (this.currentObservers = null, a.push(r), new ye(function() {
|
|
972
|
+
n.currentObservers = null, De(a, r);
|
|
953
973
|
}));
|
|
954
974
|
}, t.prototype._checkFinalizedStatuses = function(r) {
|
|
955
975
|
var n = this, i = n.hasError, o = n.thrownError, s = n.isStopped;
|
|
956
976
|
i ? r.error(o) : s && r.complete();
|
|
957
977
|
}, t.prototype.asObservable = function() {
|
|
958
|
-
var r = new
|
|
978
|
+
var r = new ut();
|
|
959
979
|
return r.source = this, r;
|
|
960
980
|
}, t.create = function(r, n) {
|
|
961
|
-
return new
|
|
981
|
+
return new lt(r, n);
|
|
962
982
|
}, t;
|
|
963
|
-
}(
|
|
983
|
+
}(ut), lt = function(e) {
|
|
964
984
|
L(t, e);
|
|
965
985
|
function t(r, n) {
|
|
966
986
|
var i = e.call(this) || this;
|
|
@@ -977,17 +997,17 @@ var Jr = Lt(function(e) {
|
|
|
977
997
|
(n = (r = this.destination) === null || r === void 0 ? void 0 : r.complete) === null || n === void 0 || n.call(r);
|
|
978
998
|
}, t.prototype._subscribe = function(r) {
|
|
979
999
|
var n, i;
|
|
980
|
-
return (i = (n = this.source) === null || n === void 0 ? void 0 : n.subscribe(r)) !== null && i !== void 0 ? i :
|
|
1000
|
+
return (i = (n = this.source) === null || n === void 0 ? void 0 : n.subscribe(r)) !== null && i !== void 0 ? i : $t;
|
|
981
1001
|
}, t;
|
|
982
|
-
}(
|
|
1002
|
+
}(Gt), Ft = {
|
|
983
1003
|
now: function() {
|
|
984
|
-
return (
|
|
1004
|
+
return (Ft.delegate || Date).now();
|
|
985
1005
|
},
|
|
986
1006
|
delegate: void 0
|
|
987
|
-
},
|
|
1007
|
+
}, tn = function(e) {
|
|
988
1008
|
L(t, e);
|
|
989
1009
|
function t(r, n, i) {
|
|
990
|
-
r === void 0 && (r = 1 / 0), n === void 0 && (n = 1 / 0), i === void 0 && (i =
|
|
1010
|
+
r === void 0 && (r = 1 / 0), n === void 0 && (n = 1 / 0), i === void 0 && (i = Ft);
|
|
991
1011
|
var o = e.call(this) || this;
|
|
992
1012
|
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;
|
|
993
1013
|
}
|
|
@@ -1007,24 +1027,24 @@ var Jr = Lt(function(e) {
|
|
|
1007
1027
|
u && o.splice(0, u + 1);
|
|
1008
1028
|
}
|
|
1009
1029
|
}, t;
|
|
1010
|
-
}(
|
|
1011
|
-
const
|
|
1012
|
-
if (
|
|
1013
|
-
const r = new
|
|
1014
|
-
|
|
1030
|
+
}(Gt);
|
|
1031
|
+
const ct = [], ft = {}, rn = (e, t = 0) => {
|
|
1032
|
+
if (ct.indexOf(e) == -1) {
|
|
1033
|
+
const r = new tn(t);
|
|
1034
|
+
ft[e] = r, ct.push(e);
|
|
1015
1035
|
}
|
|
1016
|
-
return
|
|
1036
|
+
return ft[e];
|
|
1017
1037
|
}, F = [];
|
|
1018
|
-
function
|
|
1038
|
+
function nn(e, t) {
|
|
1019
1039
|
return {
|
|
1020
1040
|
subscribe: ve(e, t).subscribe
|
|
1021
1041
|
};
|
|
1022
1042
|
}
|
|
1023
|
-
function ve(e, t =
|
|
1043
|
+
function ve(e, t = w) {
|
|
1024
1044
|
let r;
|
|
1025
1045
|
const n = /* @__PURE__ */ new Set();
|
|
1026
1046
|
function i(a) {
|
|
1027
|
-
if (
|
|
1047
|
+
if (Ot(e, a) && (e = a, r)) {
|
|
1028
1048
|
const h = !F.length;
|
|
1029
1049
|
for (const u of n)
|
|
1030
1050
|
u[1](), F.push(u, e);
|
|
@@ -1038,9 +1058,9 @@ function ve(e, t = A) {
|
|
|
1038
1058
|
function o(a) {
|
|
1039
1059
|
i(a(e));
|
|
1040
1060
|
}
|
|
1041
|
-
function s(a, h =
|
|
1061
|
+
function s(a, h = w) {
|
|
1042
1062
|
const u = [a, h];
|
|
1043
|
-
return n.add(u), n.size === 1 && (r = t(i, o) ||
|
|
1063
|
+
return n.add(u), n.size === 1 && (r = t(i, o) || w), a(e), () => {
|
|
1044
1064
|
n.delete(u), n.size === 0 && r && (r(), r = null);
|
|
1045
1065
|
};
|
|
1046
1066
|
}
|
|
@@ -1051,18 +1071,18 @@ function J(e, t, r) {
|
|
|
1051
1071
|
if (!i.every(Boolean))
|
|
1052
1072
|
throw new Error("derived() expects stores as input, got a falsy value");
|
|
1053
1073
|
const o = t.length < 2;
|
|
1054
|
-
return
|
|
1074
|
+
return nn(r, (s, a) => {
|
|
1055
1075
|
let h = !1;
|
|
1056
1076
|
const u = [];
|
|
1057
|
-
let l = 0, f =
|
|
1077
|
+
let l = 0, f = w;
|
|
1058
1078
|
const c = () => {
|
|
1059
1079
|
if (l)
|
|
1060
1080
|
return;
|
|
1061
1081
|
f();
|
|
1062
1082
|
const d = t(n ? u[0] : u, s, a);
|
|
1063
|
-
o ? s(d) : f =
|
|
1083
|
+
o ? s(d) : f = Qe(d) ? d : w;
|
|
1064
1084
|
}, p = i.map(
|
|
1065
|
-
(d, v) =>
|
|
1085
|
+
(d, v) => It(
|
|
1066
1086
|
d,
|
|
1067
1087
|
(B) => {
|
|
1068
1088
|
u[v] = B, l &= ~(1 << v), h && c();
|
|
@@ -1077,70 +1097,70 @@ function J(e, t, r) {
|
|
|
1077
1097
|
};
|
|
1078
1098
|
});
|
|
1079
1099
|
}
|
|
1080
|
-
function
|
|
1100
|
+
function on(e) {
|
|
1081
1101
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
1082
1102
|
}
|
|
1083
|
-
var
|
|
1084
|
-
return
|
|
1103
|
+
var sn = function(t) {
|
|
1104
|
+
return an(t) && !un(t);
|
|
1085
1105
|
};
|
|
1086
|
-
function
|
|
1106
|
+
function an(e) {
|
|
1087
1107
|
return !!e && typeof e == "object";
|
|
1088
1108
|
}
|
|
1089
|
-
function
|
|
1109
|
+
function un(e) {
|
|
1090
1110
|
var t = Object.prototype.toString.call(e);
|
|
1091
|
-
return t === "[object RegExp]" || t === "[object Date]" ||
|
|
1111
|
+
return t === "[object RegExp]" || t === "[object Date]" || cn(e);
|
|
1092
1112
|
}
|
|
1093
|
-
var
|
|
1094
|
-
function
|
|
1095
|
-
return e.$$typeof ===
|
|
1113
|
+
var hn = typeof Symbol == "function" && Symbol.for, ln = hn ? Symbol.for("react.element") : 60103;
|
|
1114
|
+
function cn(e) {
|
|
1115
|
+
return e.$$typeof === ln;
|
|
1096
1116
|
}
|
|
1097
|
-
function
|
|
1117
|
+
function fn(e) {
|
|
1098
1118
|
return Array.isArray(e) ? [] : {};
|
|
1099
1119
|
}
|
|
1100
1120
|
function ne(e, t) {
|
|
1101
|
-
return t.clone !== !1 && t.isMergeableObject(e) ? X(
|
|
1121
|
+
return t.clone !== !1 && t.isMergeableObject(e) ? X(fn(e), e, t) : e;
|
|
1102
1122
|
}
|
|
1103
|
-
function
|
|
1123
|
+
function pn(e, t, r) {
|
|
1104
1124
|
return e.concat(t).map(function(n) {
|
|
1105
1125
|
return ne(n, r);
|
|
1106
1126
|
});
|
|
1107
1127
|
}
|
|
1108
|
-
function
|
|
1128
|
+
function dn(e, t) {
|
|
1109
1129
|
if (!t.customMerge)
|
|
1110
1130
|
return X;
|
|
1111
1131
|
var r = t.customMerge(e);
|
|
1112
1132
|
return typeof r == "function" ? r : X;
|
|
1113
1133
|
}
|
|
1114
|
-
function
|
|
1134
|
+
function mn(e) {
|
|
1115
1135
|
return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(e).filter(function(t) {
|
|
1116
1136
|
return Object.propertyIsEnumerable.call(e, t);
|
|
1117
1137
|
}) : [];
|
|
1118
1138
|
}
|
|
1119
|
-
function
|
|
1120
|
-
return Object.keys(e).concat(
|
|
1139
|
+
function pt(e) {
|
|
1140
|
+
return Object.keys(e).concat(mn(e));
|
|
1121
1141
|
}
|
|
1122
|
-
function
|
|
1142
|
+
function jt(e, t) {
|
|
1123
1143
|
try {
|
|
1124
1144
|
return t in e;
|
|
1125
1145
|
} catch (r) {
|
|
1126
1146
|
return !1;
|
|
1127
1147
|
}
|
|
1128
1148
|
}
|
|
1129
|
-
function
|
|
1130
|
-
return
|
|
1149
|
+
function bn(e, t) {
|
|
1150
|
+
return jt(e, t) && !(Object.hasOwnProperty.call(e, t) && Object.propertyIsEnumerable.call(e, t));
|
|
1131
1151
|
}
|
|
1132
|
-
function
|
|
1152
|
+
function gn(e, t, r) {
|
|
1133
1153
|
var n = {};
|
|
1134
|
-
return r.isMergeableObject(e) &&
|
|
1154
|
+
return r.isMergeableObject(e) && pt(e).forEach(function(i) {
|
|
1135
1155
|
n[i] = ne(e[i], r);
|
|
1136
|
-
}),
|
|
1137
|
-
|
|
1156
|
+
}), pt(t).forEach(function(i) {
|
|
1157
|
+
bn(e, i) || (jt(e, i) && r.isMergeableObject(t[i]) ? n[i] = dn(i, r)(e[i], t[i], r) : n[i] = ne(t[i], r));
|
|
1138
1158
|
}), n;
|
|
1139
1159
|
}
|
|
1140
1160
|
function X(e, t, r) {
|
|
1141
|
-
r = r || {}, r.arrayMerge = r.arrayMerge ||
|
|
1161
|
+
r = r || {}, r.arrayMerge = r.arrayMerge || pn, r.isMergeableObject = r.isMergeableObject || sn, r.cloneUnlessOtherwiseSpecified = ne;
|
|
1142
1162
|
var n = Array.isArray(t), i = Array.isArray(e), o = n === i;
|
|
1143
|
-
return o ? n ? r.arrayMerge(e, t, r) :
|
|
1163
|
+
return o ? n ? r.arrayMerge(e, t, r) : gn(e, t, r) : ne(t, r);
|
|
1144
1164
|
}
|
|
1145
1165
|
X.all = function(t, r) {
|
|
1146
1166
|
if (!Array.isArray(t))
|
|
@@ -1149,105 +1169,107 @@ X.all = function(t, r) {
|
|
|
1149
1169
|
return X(n, i, r);
|
|
1150
1170
|
}, {});
|
|
1151
1171
|
};
|
|
1152
|
-
var
|
|
1153
|
-
const
|
|
1172
|
+
var yn = X, vn = yn;
|
|
1173
|
+
const En = /* @__PURE__ */ on(vn);
|
|
1154
1174
|
function Ae(e, t) {
|
|
1155
|
-
var r = t && t.cache ? t.cache :
|
|
1175
|
+
var r = t && t.cache ? t.cache : Bn, n = t && t.serializer ? t.serializer : Hn, i = t && t.strategy ? t.strategy : xn;
|
|
1156
1176
|
return i(e, {
|
|
1157
1177
|
cache: r,
|
|
1158
1178
|
serializer: n
|
|
1159
1179
|
});
|
|
1160
1180
|
}
|
|
1161
|
-
function
|
|
1181
|
+
function _n(e) {
|
|
1162
1182
|
return e == null || typeof e == "number" || typeof e == "boolean";
|
|
1163
1183
|
}
|
|
1164
|
-
function
|
|
1165
|
-
var i =
|
|
1184
|
+
function kt(e, t, r, n) {
|
|
1185
|
+
var i = _n(n) ? n : r(n), o = t.get(i);
|
|
1166
1186
|
return typeof o == "undefined" && (o = e.call(this, n), t.set(i, o)), o;
|
|
1167
1187
|
}
|
|
1168
|
-
function
|
|
1188
|
+
function Vt(e, t, r) {
|
|
1169
1189
|
var n = Array.prototype.slice.call(arguments, 3), i = r(n), o = t.get(i);
|
|
1170
1190
|
return typeof o == "undefined" && (o = e.apply(this, n), t.set(i, o)), o;
|
|
1171
1191
|
}
|
|
1172
|
-
function
|
|
1192
|
+
function Je(e, t, r, n, i) {
|
|
1173
1193
|
return r.bind(t, e, n, i);
|
|
1174
1194
|
}
|
|
1175
|
-
function
|
|
1176
|
-
var r = e.length === 1 ?
|
|
1177
|
-
return
|
|
1195
|
+
function xn(e, t) {
|
|
1196
|
+
var r = e.length === 1 ? kt : Vt;
|
|
1197
|
+
return Je(e, this, r, t.cache.create(), t.serializer);
|
|
1198
|
+
}
|
|
1199
|
+
function Sn(e, t) {
|
|
1200
|
+
return Je(e, this, Vt, t.cache.create(), t.serializer);
|
|
1178
1201
|
}
|
|
1179
|
-
function
|
|
1180
|
-
return
|
|
1202
|
+
function Tn(e, t) {
|
|
1203
|
+
return Je(e, this, kt, t.cache.create(), t.serializer);
|
|
1181
1204
|
}
|
|
1182
|
-
var
|
|
1205
|
+
var Hn = function() {
|
|
1183
1206
|
return JSON.stringify(arguments);
|
|
1184
|
-
}
|
|
1185
|
-
|
|
1186
|
-
|
|
1187
|
-
|
|
1188
|
-
|
|
1189
|
-
|
|
1190
|
-
|
|
1191
|
-
|
|
1192
|
-
|
|
1193
|
-
|
|
1194
|
-
|
|
1195
|
-
}()
|
|
1196
|
-
), Sn = {
|
|
1207
|
+
};
|
|
1208
|
+
function Ye() {
|
|
1209
|
+
this.cache = /* @__PURE__ */ Object.create(null);
|
|
1210
|
+
}
|
|
1211
|
+
Ye.prototype.get = function(e) {
|
|
1212
|
+
return this.cache[e];
|
|
1213
|
+
};
|
|
1214
|
+
Ye.prototype.set = function(e, t) {
|
|
1215
|
+
this.cache[e] = t;
|
|
1216
|
+
};
|
|
1217
|
+
var Bn = {
|
|
1197
1218
|
create: function() {
|
|
1198
|
-
return new
|
|
1219
|
+
return new Ye();
|
|
1199
1220
|
}
|
|
1200
|
-
},
|
|
1201
|
-
variadic:
|
|
1221
|
+
}, Pe = {
|
|
1222
|
+
variadic: Sn,
|
|
1223
|
+
monadic: Tn
|
|
1202
1224
|
}, m;
|
|
1203
1225
|
(function(e) {
|
|
1204
1226
|
e[e.EXPECT_ARGUMENT_CLOSING_BRACE = 1] = "EXPECT_ARGUMENT_CLOSING_BRACE", e[e.EMPTY_ARGUMENT = 2] = "EMPTY_ARGUMENT", e[e.MALFORMED_ARGUMENT = 3] = "MALFORMED_ARGUMENT", e[e.EXPECT_ARGUMENT_TYPE = 4] = "EXPECT_ARGUMENT_TYPE", e[e.INVALID_ARGUMENT_TYPE = 5] = "INVALID_ARGUMENT_TYPE", e[e.EXPECT_ARGUMENT_STYLE = 6] = "EXPECT_ARGUMENT_STYLE", e[e.INVALID_NUMBER_SKELETON = 7] = "INVALID_NUMBER_SKELETON", e[e.INVALID_DATE_TIME_SKELETON = 8] = "INVALID_DATE_TIME_SKELETON", e[e.EXPECT_NUMBER_SKELETON = 9] = "EXPECT_NUMBER_SKELETON", e[e.EXPECT_DATE_TIME_SKELETON = 10] = "EXPECT_DATE_TIME_SKELETON", e[e.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE = 11] = "UNCLOSED_QUOTE_IN_ARGUMENT_STYLE", e[e.EXPECT_SELECT_ARGUMENT_OPTIONS = 12] = "EXPECT_SELECT_ARGUMENT_OPTIONS", e[e.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE = 13] = "EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE", e[e.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE = 14] = "INVALID_PLURAL_ARGUMENT_OFFSET_VALUE", e[e.EXPECT_SELECT_ARGUMENT_SELECTOR = 15] = "EXPECT_SELECT_ARGUMENT_SELECTOR", e[e.EXPECT_PLURAL_ARGUMENT_SELECTOR = 16] = "EXPECT_PLURAL_ARGUMENT_SELECTOR", e[e.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT = 17] = "EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT", e[e.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT = 18] = "EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT", e[e.INVALID_PLURAL_ARGUMENT_SELECTOR = 19] = "INVALID_PLURAL_ARGUMENT_SELECTOR", e[e.DUPLICATE_PLURAL_ARGUMENT_SELECTOR = 20] = "DUPLICATE_PLURAL_ARGUMENT_SELECTOR", e[e.DUPLICATE_SELECT_ARGUMENT_SELECTOR = 21] = "DUPLICATE_SELECT_ARGUMENT_SELECTOR", e[e.MISSING_OTHER_CLAUSE = 22] = "MISSING_OTHER_CLAUSE", e[e.INVALID_TAG = 23] = "INVALID_TAG", e[e.INVALID_TAG_NAME = 25] = "INVALID_TAG_NAME", e[e.UNMATCHED_CLOSING_TAG = 26] = "UNMATCHED_CLOSING_TAG", e[e.UNCLOSED_TAG = 27] = "UNCLOSED_TAG";
|
|
1205
1227
|
})(m || (m = {}));
|
|
1206
|
-
var
|
|
1228
|
+
var E;
|
|
1207
1229
|
(function(e) {
|
|
1208
1230
|
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";
|
|
1209
|
-
})(
|
|
1231
|
+
})(E || (E = {}));
|
|
1210
1232
|
var W;
|
|
1211
1233
|
(function(e) {
|
|
1212
1234
|
e[e.number = 0] = "number", e[e.dateTime = 1] = "dateTime";
|
|
1213
1235
|
})(W || (W = {}));
|
|
1214
|
-
function
|
|
1215
|
-
return e.type ===
|
|
1236
|
+
function dt(e) {
|
|
1237
|
+
return e.type === E.literal;
|
|
1216
1238
|
}
|
|
1217
|
-
function
|
|
1218
|
-
return e.type ===
|
|
1239
|
+
function wn(e) {
|
|
1240
|
+
return e.type === E.argument;
|
|
1219
1241
|
}
|
|
1220
|
-
function
|
|
1221
|
-
return e.type ===
|
|
1242
|
+
function Xt(e) {
|
|
1243
|
+
return e.type === E.number;
|
|
1222
1244
|
}
|
|
1223
|
-
function
|
|
1224
|
-
return e.type ===
|
|
1245
|
+
function Wt(e) {
|
|
1246
|
+
return e.type === E.date;
|
|
1225
1247
|
}
|
|
1226
|
-
function
|
|
1227
|
-
return e.type ===
|
|
1248
|
+
function zt(e) {
|
|
1249
|
+
return e.type === E.time;
|
|
1228
1250
|
}
|
|
1229
|
-
function
|
|
1230
|
-
return e.type ===
|
|
1251
|
+
function Zt(e) {
|
|
1252
|
+
return e.type === E.select;
|
|
1231
1253
|
}
|
|
1232
|
-
function
|
|
1233
|
-
return e.type ===
|
|
1254
|
+
function Qt(e) {
|
|
1255
|
+
return e.type === E.plural;
|
|
1234
1256
|
}
|
|
1235
|
-
function
|
|
1236
|
-
return e.type ===
|
|
1257
|
+
function An(e) {
|
|
1258
|
+
return e.type === E.pound;
|
|
1237
1259
|
}
|
|
1238
|
-
function
|
|
1239
|
-
return e.type ===
|
|
1260
|
+
function Jt(e) {
|
|
1261
|
+
return e.type === E.tag;
|
|
1240
1262
|
}
|
|
1241
|
-
function
|
|
1263
|
+
function Yt(e) {
|
|
1242
1264
|
return !!(e && typeof e == "object" && e.type === W.number);
|
|
1243
1265
|
}
|
|
1244
|
-
function
|
|
1266
|
+
function Fe(e) {
|
|
1245
1267
|
return !!(e && typeof e == "object" && e.type === W.dateTime);
|
|
1246
1268
|
}
|
|
1247
|
-
var
|
|
1248
|
-
function
|
|
1269
|
+
var qt = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, Pn = /(?:[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;
|
|
1270
|
+
function On(e) {
|
|
1249
1271
|
var t = {};
|
|
1250
|
-
return e.replace(
|
|
1272
|
+
return e.replace(Pn, function(r) {
|
|
1251
1273
|
var n = r.length;
|
|
1252
1274
|
switch (r[0]) {
|
|
1253
1275
|
case "G":
|
|
@@ -1336,11 +1358,11 @@ function An(e) {
|
|
|
1336
1358
|
return "";
|
|
1337
1359
|
}), t;
|
|
1338
1360
|
}
|
|
1339
|
-
var
|
|
1340
|
-
function
|
|
1361
|
+
var In = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
|
|
1362
|
+
function Ln(e) {
|
|
1341
1363
|
if (e.length === 0)
|
|
1342
1364
|
throw new Error("Number skeleton cannot be empty");
|
|
1343
|
-
for (var t = e.split(
|
|
1365
|
+
for (var t = e.split(In).filter(function(c) {
|
|
1344
1366
|
return c.length > 0;
|
|
1345
1367
|
}), r = [], n = 0, i = t; n < i.length; n++) {
|
|
1346
1368
|
var o = i[n], s = o.split("/");
|
|
@@ -1355,17 +1377,17 @@ function Pn(e) {
|
|
|
1355
1377
|
}
|
|
1356
1378
|
return r;
|
|
1357
1379
|
}
|
|
1358
|
-
function
|
|
1380
|
+
function Nn(e) {
|
|
1359
1381
|
return e.replace(/^(.*?)-/, "");
|
|
1360
1382
|
}
|
|
1361
|
-
var
|
|
1362
|
-
function
|
|
1383
|
+
var mt = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, Kt = /^(@+)?(\+|#+)?[rs]?$/g, Mn = /(\*)(0+)|(#+)(0+)|(0+)/g, er = /^(0+)$/;
|
|
1384
|
+
function bt(e) {
|
|
1363
1385
|
var t = {};
|
|
1364
|
-
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(
|
|
1386
|
+
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(Kt, function(r, n, i) {
|
|
1365
1387
|
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)), "";
|
|
1366
1388
|
}), t;
|
|
1367
1389
|
}
|
|
1368
|
-
function
|
|
1390
|
+
function tr(e) {
|
|
1369
1391
|
switch (e) {
|
|
1370
1392
|
case "sign-auto":
|
|
1371
1393
|
return {
|
|
@@ -1405,7 +1427,7 @@ function Yt(e) {
|
|
|
1405
1427
|
};
|
|
1406
1428
|
}
|
|
1407
1429
|
}
|
|
1408
|
-
function
|
|
1430
|
+
function Cn(e) {
|
|
1409
1431
|
var t;
|
|
1410
1432
|
if (e[0] === "E" && e[1] === "E" ? (t = {
|
|
1411
1433
|
notation: "engineering"
|
|
@@ -1413,17 +1435,17 @@ function Ln(e) {
|
|
|
1413
1435
|
notation: "scientific"
|
|
1414
1436
|
}, e = e.slice(1)), t) {
|
|
1415
1437
|
var r = e.slice(0, 2);
|
|
1416
|
-
if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !
|
|
1438
|
+
if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !er.test(e))
|
|
1417
1439
|
throw new Error("Malformed concise eng/scientific notation");
|
|
1418
1440
|
t.minimumIntegerDigits = e.length;
|
|
1419
1441
|
}
|
|
1420
1442
|
return t;
|
|
1421
1443
|
}
|
|
1422
|
-
function
|
|
1423
|
-
var t = {}, r =
|
|
1444
|
+
function gt(e) {
|
|
1445
|
+
var t = {}, r = tr(e);
|
|
1424
1446
|
return r || t;
|
|
1425
1447
|
}
|
|
1426
|
-
function
|
|
1448
|
+
function $n(e) {
|
|
1427
1449
|
for (var t = {}, r = 0, n = e; r < n.length; r++) {
|
|
1428
1450
|
var i = n[r];
|
|
1429
1451
|
switch (i.stem) {
|
|
@@ -1447,7 +1469,7 @@ function Nn(e) {
|
|
|
1447
1469
|
continue;
|
|
1448
1470
|
case "measure-unit":
|
|
1449
1471
|
case "unit":
|
|
1450
|
-
t.style = "unit", t.unit =
|
|
1472
|
+
t.style = "unit", t.unit = Nn(i.options[0]);
|
|
1451
1473
|
continue;
|
|
1452
1474
|
case "compact-short":
|
|
1453
1475
|
case "K":
|
|
@@ -1459,12 +1481,12 @@ function Nn(e) {
|
|
|
1459
1481
|
continue;
|
|
1460
1482
|
case "scientific":
|
|
1461
1483
|
t = g(g(g({}, t), { notation: "scientific" }), i.options.reduce(function(h, u) {
|
|
1462
|
-
return g(g({}, h),
|
|
1484
|
+
return g(g({}, h), gt(u));
|
|
1463
1485
|
}, {}));
|
|
1464
1486
|
continue;
|
|
1465
1487
|
case "engineering":
|
|
1466
1488
|
t = g(g(g({}, t), { notation: "engineering" }), i.options.reduce(function(h, u) {
|
|
1467
|
-
return g(g({}, h),
|
|
1489
|
+
return g(g({}, h), gt(u));
|
|
1468
1490
|
}, {}));
|
|
1469
1491
|
continue;
|
|
1470
1492
|
case "notation-simple":
|
|
@@ -1509,7 +1531,7 @@ function Nn(e) {
|
|
|
1509
1531
|
case "integer-width":
|
|
1510
1532
|
if (i.options.length > 1)
|
|
1511
1533
|
throw new RangeError("integer-width stems only accept a single optional option");
|
|
1512
|
-
i.options[0].replace(
|
|
1534
|
+
i.options[0].replace(Mn, function(h, u, l, f, c, p) {
|
|
1513
1535
|
if (u)
|
|
1514
1536
|
t.minimumIntegerDigits = l.length;
|
|
1515
1537
|
else {
|
|
@@ -1522,27 +1544,27 @@ function Nn(e) {
|
|
|
1522
1544
|
});
|
|
1523
1545
|
continue;
|
|
1524
1546
|
}
|
|
1525
|
-
if (
|
|
1547
|
+
if (er.test(i.stem)) {
|
|
1526
1548
|
t.minimumIntegerDigits = i.stem.length;
|
|
1527
1549
|
continue;
|
|
1528
1550
|
}
|
|
1529
|
-
if (
|
|
1551
|
+
if (mt.test(i.stem)) {
|
|
1530
1552
|
if (i.options.length > 1)
|
|
1531
1553
|
throw new RangeError("Fraction-precision stems only accept a single optional option");
|
|
1532
|
-
i.stem.replace(
|
|
1554
|
+
i.stem.replace(mt, function(h, u, l, f, c, p) {
|
|
1533
1555
|
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), "";
|
|
1534
1556
|
});
|
|
1535
1557
|
var o = i.options[0];
|
|
1536
|
-
o === "w" ? t = g(g({}, t), { trailingZeroDisplay: "stripIfInteger" }) : o && (t = g(g({}, t),
|
|
1558
|
+
o === "w" ? t = g(g({}, t), { trailingZeroDisplay: "stripIfInteger" }) : o && (t = g(g({}, t), bt(o)));
|
|
1537
1559
|
continue;
|
|
1538
1560
|
}
|
|
1539
|
-
if (
|
|
1540
|
-
t = g(g({}, t),
|
|
1561
|
+
if (Kt.test(i.stem)) {
|
|
1562
|
+
t = g(g({}, t), bt(i.stem));
|
|
1541
1563
|
continue;
|
|
1542
1564
|
}
|
|
1543
|
-
var s =
|
|
1565
|
+
var s = tr(i.stem);
|
|
1544
1566
|
s && (t = g(g({}, t), s));
|
|
1545
|
-
var a =
|
|
1567
|
+
var a = Cn(i.stem);
|
|
1546
1568
|
a && (t = g(g({}, t), a));
|
|
1547
1569
|
}
|
|
1548
1570
|
return t;
|
|
@@ -2962,13 +2984,13 @@ var le = {
|
|
|
2962
2984
|
"h"
|
|
2963
2985
|
]
|
|
2964
2986
|
};
|
|
2965
|
-
function
|
|
2987
|
+
function Rn(e, t) {
|
|
2966
2988
|
for (var r = "", n = 0; n < e.length; n++) {
|
|
2967
2989
|
var i = e.charAt(n);
|
|
2968
2990
|
if (i === "j") {
|
|
2969
2991
|
for (var o = 0; n + 1 < e.length && e.charAt(n + 1) === i; )
|
|
2970
2992
|
o++, n++;
|
|
2971
|
-
var s = 1 + (o & 1), a = o < 2 ? 1 : 3 + (o >> 1), h = "a", u =
|
|
2993
|
+
var s = 1 + (o & 1), a = o < 2 ? 1 : 3 + (o >> 1), h = "a", u = Un(t);
|
|
2972
2994
|
for ((u == "H" || u == "k") && (a = 0); a-- > 0; )
|
|
2973
2995
|
r += h;
|
|
2974
2996
|
for (; s-- > 0; )
|
|
@@ -2978,7 +3000,7 @@ function Mn(e, t) {
|
|
|
2978
3000
|
}
|
|
2979
3001
|
return r;
|
|
2980
3002
|
}
|
|
2981
|
-
function
|
|
3003
|
+
function Un(e) {
|
|
2982
3004
|
var t = e.hourCycle;
|
|
2983
3005
|
if (t === void 0 && // @ts-ignore hourCycle(s) is not identified yet
|
|
2984
3006
|
e.hourCycles && // @ts-ignore
|
|
@@ -3000,20 +3022,20 @@ function Cn(e) {
|
|
|
3000
3022
|
var i = le[n || ""] || le[r || ""] || le["".concat(r, "-001")] || le["001"];
|
|
3001
3023
|
return i[0];
|
|
3002
3024
|
}
|
|
3003
|
-
var
|
|
3025
|
+
var Oe, Dn = new RegExp("^".concat(qt.source, "*")), Gn = new RegExp("".concat(qt.source, "*$"));
|
|
3004
3026
|
function b(e, t) {
|
|
3005
3027
|
return { start: e, end: t };
|
|
3006
3028
|
}
|
|
3007
|
-
var
|
|
3029
|
+
var Fn = !!String.prototype.startsWith && "_a".startsWith("a", 1), jn = !!String.fromCodePoint, kn = !!Object.fromEntries, Vn = !!String.prototype.codePointAt, Xn = !!String.prototype.trimStart, Wn = !!String.prototype.trimEnd, zn = !!Number.isSafeInteger, Zn = zn ? Number.isSafeInteger : function(e) {
|
|
3008
3030
|
return typeof e == "number" && isFinite(e) && Math.floor(e) === e && Math.abs(e) <= 9007199254740991;
|
|
3009
|
-
},
|
|
3031
|
+
}, je = !0;
|
|
3010
3032
|
try {
|
|
3011
|
-
var
|
|
3012
|
-
|
|
3033
|
+
var Qn = nr("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
3034
|
+
je = ((Oe = Qn.exec("a")) === null || Oe === void 0 ? void 0 : Oe[0]) === "a";
|
|
3013
3035
|
} catch (e) {
|
|
3014
|
-
|
|
3036
|
+
je = !1;
|
|
3015
3037
|
}
|
|
3016
|
-
var
|
|
3038
|
+
var yt = Fn ? (
|
|
3017
3039
|
// Native
|
|
3018
3040
|
function(t, r, n) {
|
|
3019
3041
|
return t.startsWith(r, n);
|
|
@@ -3023,7 +3045,7 @@ var mt = Un ? (
|
|
|
3023
3045
|
function(t, r, n) {
|
|
3024
3046
|
return t.slice(n, n + r.length) === r;
|
|
3025
3047
|
}
|
|
3026
|
-
),
|
|
3048
|
+
), ke = jn ? String.fromCodePoint : (
|
|
3027
3049
|
// IE11
|
|
3028
3050
|
function() {
|
|
3029
3051
|
for (var t = [], r = 0; r < arguments.length; r++)
|
|
@@ -3035,9 +3057,9 @@ var mt = Un ? (
|
|
|
3035
3057
|
}
|
|
3036
3058
|
return n;
|
|
3037
3059
|
}
|
|
3038
|
-
),
|
|
3060
|
+
), vt = (
|
|
3039
3061
|
// native
|
|
3040
|
-
|
|
3062
|
+
kn ? Object.fromEntries : (
|
|
3041
3063
|
// Ponyfill
|
|
3042
3064
|
function(t) {
|
|
3043
3065
|
for (var r = {}, n = 0, i = t; n < i.length; n++) {
|
|
@@ -3047,7 +3069,7 @@ var mt = Un ? (
|
|
|
3047
3069
|
return r;
|
|
3048
3070
|
}
|
|
3049
3071
|
)
|
|
3050
|
-
),
|
|
3072
|
+
), rr = Vn ? (
|
|
3051
3073
|
// Native
|
|
3052
3074
|
function(t, r) {
|
|
3053
3075
|
return t.codePointAt(r);
|
|
@@ -3061,7 +3083,7 @@ var mt = Un ? (
|
|
|
3061
3083
|
return i < 55296 || i > 56319 || r + 1 === n || (o = t.charCodeAt(r + 1)) < 56320 || o > 57343 ? i : (i - 55296 << 10) + (o - 56320) + 65536;
|
|
3062
3084
|
}
|
|
3063
3085
|
}
|
|
3064
|
-
),
|
|
3086
|
+
), Jn = Xn ? (
|
|
3065
3087
|
// Native
|
|
3066
3088
|
function(t) {
|
|
3067
3089
|
return t.trimStart();
|
|
@@ -3069,9 +3091,9 @@ var mt = Un ? (
|
|
|
3069
3091
|
) : (
|
|
3070
3092
|
// Ponyfill
|
|
3071
3093
|
function(t) {
|
|
3072
|
-
return t.replace(
|
|
3094
|
+
return t.replace(Dn, "");
|
|
3073
3095
|
}
|
|
3074
|
-
),
|
|
3096
|
+
), Yn = Wn ? (
|
|
3075
3097
|
// Native
|
|
3076
3098
|
function(t) {
|
|
3077
3099
|
return t.trimEnd();
|
|
@@ -3079,32 +3101,32 @@ var mt = Un ? (
|
|
|
3079
3101
|
) : (
|
|
3080
3102
|
// Ponyfill
|
|
3081
3103
|
function(t) {
|
|
3082
|
-
return t.replace(
|
|
3104
|
+
return t.replace(Gn, "");
|
|
3083
3105
|
}
|
|
3084
3106
|
);
|
|
3085
|
-
function
|
|
3107
|
+
function nr(e, t) {
|
|
3086
3108
|
return new RegExp(e, t);
|
|
3087
3109
|
}
|
|
3088
|
-
var
|
|
3089
|
-
if (
|
|
3090
|
-
var
|
|
3091
|
-
|
|
3110
|
+
var Ve;
|
|
3111
|
+
if (je) {
|
|
3112
|
+
var Et = nr("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
3113
|
+
Ve = function(t, r) {
|
|
3092
3114
|
var n;
|
|
3093
|
-
|
|
3094
|
-
var i =
|
|
3115
|
+
Et.lastIndex = r;
|
|
3116
|
+
var i = Et.exec(t);
|
|
3095
3117
|
return (n = i[1]) !== null && n !== void 0 ? n : "";
|
|
3096
3118
|
};
|
|
3097
3119
|
} else
|
|
3098
|
-
|
|
3120
|
+
Ve = function(t, r) {
|
|
3099
3121
|
for (var n = []; ; ) {
|
|
3100
|
-
var i =
|
|
3101
|
-
if (i === void 0 ||
|
|
3122
|
+
var i = rr(t, r);
|
|
3123
|
+
if (i === void 0 || ir(i) || ti(i))
|
|
3102
3124
|
break;
|
|
3103
3125
|
n.push(i), r += i >= 65536 ? 2 : 1;
|
|
3104
3126
|
}
|
|
3105
|
-
return
|
|
3127
|
+
return ke.apply(void 0, n);
|
|
3106
3128
|
};
|
|
3107
|
-
var
|
|
3129
|
+
var qn = (
|
|
3108
3130
|
/** @class */
|
|
3109
3131
|
function() {
|
|
3110
3132
|
function e(t, r) {
|
|
@@ -3128,14 +3150,14 @@ var Qn = (
|
|
|
3128
3150
|
if (o === 35 && (r === "plural" || r === "selectordinal")) {
|
|
3129
3151
|
var a = this.clonePosition();
|
|
3130
3152
|
this.bump(), i.push({
|
|
3131
|
-
type:
|
|
3153
|
+
type: E.pound,
|
|
3132
3154
|
location: b(a, this.clonePosition())
|
|
3133
3155
|
});
|
|
3134
3156
|
} else if (o === 60 && !this.ignoreTag && this.peek() === 47) {
|
|
3135
3157
|
if (n)
|
|
3136
3158
|
break;
|
|
3137
3159
|
return this.error(m.UNMATCHED_CLOSING_TAG, b(this.clonePosition(), this.clonePosition()));
|
|
3138
|
-
} else if (o === 60 && !this.ignoreTag &&
|
|
3160
|
+
} else if (o === 60 && !this.ignoreTag && Xe(this.peek() || 0)) {
|
|
3139
3161
|
var s = this.parseTag(t, r);
|
|
3140
3162
|
if (s.err)
|
|
3141
3163
|
return s;
|
|
@@ -3156,7 +3178,7 @@ var Qn = (
|
|
|
3156
3178
|
if (this.bumpSpace(), this.bumpIf("/>"))
|
|
3157
3179
|
return {
|
|
3158
3180
|
val: {
|
|
3159
|
-
type:
|
|
3181
|
+
type: E.literal,
|
|
3160
3182
|
value: "<".concat(i, "/>"),
|
|
3161
3183
|
location: b(n, this.clonePosition())
|
|
3162
3184
|
},
|
|
@@ -3168,12 +3190,12 @@ var Qn = (
|
|
|
3168
3190
|
return o;
|
|
3169
3191
|
var s = o.val, a = this.clonePosition();
|
|
3170
3192
|
if (this.bumpIf("</")) {
|
|
3171
|
-
if (this.isEOF() || !
|
|
3193
|
+
if (this.isEOF() || !Xe(this.char()))
|
|
3172
3194
|
return this.error(m.INVALID_TAG, b(a, this.clonePosition()));
|
|
3173
3195
|
var h = this.clonePosition(), u = this.parseTagName();
|
|
3174
3196
|
return i !== u ? this.error(m.UNMATCHED_CLOSING_TAG, b(h, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
|
|
3175
3197
|
val: {
|
|
3176
|
-
type:
|
|
3198
|
+
type: E.tag,
|
|
3177
3199
|
value: i,
|
|
3178
3200
|
children: s,
|
|
3179
3201
|
location: b(n, this.clonePosition())
|
|
@@ -3186,7 +3208,7 @@ var Qn = (
|
|
|
3186
3208
|
return this.error(m.INVALID_TAG, b(n, this.clonePosition()));
|
|
3187
3209
|
}, e.prototype.parseTagName = function() {
|
|
3188
3210
|
var t = this.offset();
|
|
3189
|
-
for (this.bump(); !this.isEOF() &&
|
|
3211
|
+
for (this.bump(); !this.isEOF() && ei(this.char()); )
|
|
3190
3212
|
this.bump();
|
|
3191
3213
|
return this.message.slice(t, this.offset());
|
|
3192
3214
|
}, e.prototype.parseLiteral = function(t, r) {
|
|
@@ -3210,12 +3232,12 @@ var Qn = (
|
|
|
3210
3232
|
}
|
|
3211
3233
|
var h = b(n, this.clonePosition());
|
|
3212
3234
|
return {
|
|
3213
|
-
val: { type:
|
|
3235
|
+
val: { type: E.literal, value: i, location: h },
|
|
3214
3236
|
err: null
|
|
3215
3237
|
};
|
|
3216
3238
|
}, e.prototype.tryParseLeftAngleBracket = function() {
|
|
3217
3239
|
return !this.isEOF() && this.char() === 60 && (this.ignoreTag || // If at the opening tag or closing tag position, bail.
|
|
3218
|
-
!
|
|
3240
|
+
!Kn(this.peek() || 0)) ? (this.bump(), "<") : null;
|
|
3219
3241
|
}, e.prototype.tryParseQuote = function(t) {
|
|
3220
3242
|
if (this.isEOF() || this.char() !== 39)
|
|
3221
3243
|
return null;
|
|
@@ -3249,12 +3271,12 @@ var Qn = (
|
|
|
3249
3271
|
r.push(n);
|
|
3250
3272
|
this.bump();
|
|
3251
3273
|
}
|
|
3252
|
-
return
|
|
3274
|
+
return ke.apply(void 0, r);
|
|
3253
3275
|
}, e.prototype.tryParseUnquoted = function(t, r) {
|
|
3254
3276
|
if (this.isEOF())
|
|
3255
3277
|
return null;
|
|
3256
3278
|
var n = this.char();
|
|
3257
|
-
return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(),
|
|
3279
|
+
return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(), ke(n));
|
|
3258
3280
|
}, e.prototype.parseArgument = function(t, r) {
|
|
3259
3281
|
var n = this.clonePosition();
|
|
3260
3282
|
if (this.bump(), this.bumpSpace(), this.isEOF())
|
|
@@ -3270,7 +3292,7 @@ var Qn = (
|
|
|
3270
3292
|
case 125:
|
|
3271
3293
|
return this.bump(), {
|
|
3272
3294
|
val: {
|
|
3273
|
-
type:
|
|
3295
|
+
type: E.argument,
|
|
3274
3296
|
// value does not include the opening and closing braces.
|
|
3275
3297
|
value: i,
|
|
3276
3298
|
location: b(n, this.clonePosition())
|
|
@@ -3283,7 +3305,7 @@ var Qn = (
|
|
|
3283
3305
|
return this.error(m.MALFORMED_ARGUMENT, b(n, this.clonePosition()));
|
|
3284
3306
|
}
|
|
3285
3307
|
}, e.prototype.parseIdentifierIfPossible = function() {
|
|
3286
|
-
var t = this.clonePosition(), r = this.offset(), n =
|
|
3308
|
+
var t = this.clonePosition(), r = this.offset(), n = Ve(this.message, r), i = r + n.length;
|
|
3287
3309
|
this.bumpTo(i);
|
|
3288
3310
|
var o = this.clonePosition(), s = b(t, o);
|
|
3289
3311
|
return { value: n, location: s };
|
|
@@ -3302,7 +3324,7 @@ var Qn = (
|
|
|
3302
3324
|
var l = this.clonePosition(), f = this.parseSimpleArgStyleIfPossible();
|
|
3303
3325
|
if (f.err)
|
|
3304
3326
|
return f;
|
|
3305
|
-
var c =
|
|
3327
|
+
var c = Yn(f.val);
|
|
3306
3328
|
if (c.length === 0)
|
|
3307
3329
|
return this.error(m.EXPECT_ARGUMENT_STYLE, b(this.clonePosition(), this.clonePosition()));
|
|
3308
3330
|
var p = b(l, this.clonePosition());
|
|
@@ -3312,25 +3334,25 @@ var Qn = (
|
|
|
3312
3334
|
if (d.err)
|
|
3313
3335
|
return d;
|
|
3314
3336
|
var v = b(i, this.clonePosition());
|
|
3315
|
-
if (u &&
|
|
3316
|
-
var B =
|
|
3337
|
+
if (u && yt(u == null ? void 0 : u.style, "::", 0)) {
|
|
3338
|
+
var B = Jn(u.style.slice(2));
|
|
3317
3339
|
if (a === "number") {
|
|
3318
3340
|
var f = this.parseNumberSkeletonFromString(B, u.styleLocation);
|
|
3319
3341
|
return f.err ? f : {
|
|
3320
|
-
val: { type:
|
|
3342
|
+
val: { type: E.number, value: n, location: v, style: f.val },
|
|
3321
3343
|
err: null
|
|
3322
3344
|
};
|
|
3323
3345
|
} else {
|
|
3324
3346
|
if (B.length === 0)
|
|
3325
3347
|
return this.error(m.EXPECT_DATE_TIME_SKELETON, v);
|
|
3326
3348
|
var $ = B;
|
|
3327
|
-
this.locale && ($ =
|
|
3349
|
+
this.locale && ($ = Rn(B, this.locale));
|
|
3328
3350
|
var c = {
|
|
3329
3351
|
type: W.dateTime,
|
|
3330
3352
|
pattern: $,
|
|
3331
3353
|
location: u.styleLocation,
|
|
3332
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
3333
|
-
}, N = a === "date" ?
|
|
3354
|
+
parsedOptions: this.shouldParseSkeletons ? On($) : {}
|
|
3355
|
+
}, N = a === "date" ? E.date : E.time;
|
|
3334
3356
|
return {
|
|
3335
3357
|
val: { type: N, value: n, location: v, style: c },
|
|
3336
3358
|
err: null
|
|
@@ -3339,7 +3361,7 @@ var Qn = (
|
|
|
3339
3361
|
}
|
|
3340
3362
|
return {
|
|
3341
3363
|
val: {
|
|
3342
|
-
type: a === "number" ?
|
|
3364
|
+
type: a === "number" ? E.number : a === "date" ? E.date : E.time,
|
|
3343
3365
|
value: n,
|
|
3344
3366
|
location: v,
|
|
3345
3367
|
style: (o = u == null ? void 0 : u.style) !== null && o !== void 0 ? o : null
|
|
@@ -3350,9 +3372,9 @@ var Qn = (
|
|
|
3350
3372
|
case "plural":
|
|
3351
3373
|
case "selectordinal":
|
|
3352
3374
|
case "select": {
|
|
3353
|
-
var
|
|
3375
|
+
var x = this.clonePosition();
|
|
3354
3376
|
if (this.bumpSpace(), !this.bumpIf(","))
|
|
3355
|
-
return this.error(m.EXPECT_SELECT_ARGUMENT_OPTIONS, b(
|
|
3377
|
+
return this.error(m.EXPECT_SELECT_ARGUMENT_OPTIONS, b(x, g({}, x)));
|
|
3356
3378
|
this.bumpSpace();
|
|
3357
3379
|
var R = this.parseIdentifierIfPossible(), P = 0;
|
|
3358
3380
|
if (a !== "select" && R.value === "offset") {
|
|
@@ -3364,26 +3386,26 @@ var Qn = (
|
|
|
3364
3386
|
return f;
|
|
3365
3387
|
this.bumpSpace(), R = this.parseIdentifierIfPossible(), P = f.val;
|
|
3366
3388
|
}
|
|
3367
|
-
var
|
|
3368
|
-
if (
|
|
3369
|
-
return
|
|
3389
|
+
var D = this.tryParsePluralOrSelectOptions(t, a, r, R);
|
|
3390
|
+
if (D.err)
|
|
3391
|
+
return D;
|
|
3370
3392
|
var d = this.tryParseArgumentClose(i);
|
|
3371
3393
|
if (d.err)
|
|
3372
3394
|
return d;
|
|
3373
3395
|
var ue = b(i, this.clonePosition());
|
|
3374
3396
|
return a === "select" ? {
|
|
3375
3397
|
val: {
|
|
3376
|
-
type:
|
|
3398
|
+
type: E.select,
|
|
3377
3399
|
value: n,
|
|
3378
|
-
options:
|
|
3400
|
+
options: vt(D.val),
|
|
3379
3401
|
location: ue
|
|
3380
3402
|
},
|
|
3381
3403
|
err: null
|
|
3382
3404
|
} : {
|
|
3383
3405
|
val: {
|
|
3384
|
-
type:
|
|
3406
|
+
type: E.plural,
|
|
3385
3407
|
value: n,
|
|
3386
|
-
options:
|
|
3408
|
+
options: vt(D.val),
|
|
3387
3409
|
offset: P,
|
|
3388
3410
|
pluralType: a === "plural" ? "cardinal" : "ordinal",
|
|
3389
3411
|
location: ue
|
|
@@ -3434,7 +3456,7 @@ var Qn = (
|
|
|
3434
3456
|
}, e.prototype.parseNumberSkeletonFromString = function(t, r) {
|
|
3435
3457
|
var n = [];
|
|
3436
3458
|
try {
|
|
3437
|
-
n =
|
|
3459
|
+
n = Ln(t);
|
|
3438
3460
|
} catch (i) {
|
|
3439
3461
|
return this.error(m.INVALID_NUMBER_SKELETON, r);
|
|
3440
3462
|
}
|
|
@@ -3443,7 +3465,7 @@ var Qn = (
|
|
|
3443
3465
|
type: W.number,
|
|
3444
3466
|
tokens: n,
|
|
3445
3467
|
location: r,
|
|
3446
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
3468
|
+
parsedOptions: this.shouldParseSkeletons ? $n(n) : {}
|
|
3447
3469
|
},
|
|
3448
3470
|
err: null
|
|
3449
3471
|
};
|
|
@@ -3491,7 +3513,7 @@ var Qn = (
|
|
|
3491
3513
|
break;
|
|
3492
3514
|
}
|
|
3493
3515
|
var h = b(i, this.clonePosition());
|
|
3494
|
-
return o ? (s *= n,
|
|
3516
|
+
return o ? (s *= n, Zn(s) ? { val: s, err: null } : this.error(r, h)) : this.error(t, h);
|
|
3495
3517
|
}, e.prototype.offset = function() {
|
|
3496
3518
|
return this.position.offset;
|
|
3497
3519
|
}, e.prototype.isEOF = function() {
|
|
@@ -3506,7 +3528,7 @@ var Qn = (
|
|
|
3506
3528
|
var t = this.position.offset;
|
|
3507
3529
|
if (t >= this.message.length)
|
|
3508
3530
|
throw Error("out of bound");
|
|
3509
|
-
var r =
|
|
3531
|
+
var r = rr(this.message, t);
|
|
3510
3532
|
if (r === void 0)
|
|
3511
3533
|
throw Error("Offset ".concat(t, " is at invalid UTF-16 code unit boundary"));
|
|
3512
3534
|
return r;
|
|
@@ -3525,7 +3547,7 @@ var Qn = (
|
|
|
3525
3547
|
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);
|
|
3526
3548
|
}
|
|
3527
3549
|
}, e.prototype.bumpIf = function(t) {
|
|
3528
|
-
if (
|
|
3550
|
+
if (yt(this.message, t, this.offset())) {
|
|
3529
3551
|
for (var r = 0; r < t.length; r++)
|
|
3530
3552
|
this.bump();
|
|
3531
3553
|
return !0;
|
|
@@ -3547,7 +3569,7 @@ var Qn = (
|
|
|
3547
3569
|
break;
|
|
3548
3570
|
}
|
|
3549
3571
|
}, e.prototype.bumpSpace = function() {
|
|
3550
|
-
for (; !this.isEOF() &&
|
|
3572
|
+
for (; !this.isEOF() && ir(this.char()); )
|
|
3551
3573
|
this.bump();
|
|
3552
3574
|
}, e.prototype.peek = function() {
|
|
3553
3575
|
if (this.isEOF())
|
|
@@ -3557,44 +3579,44 @@ var Qn = (
|
|
|
3557
3579
|
}, e;
|
|
3558
3580
|
}()
|
|
3559
3581
|
);
|
|
3560
|
-
function
|
|
3582
|
+
function Xe(e) {
|
|
3561
3583
|
return e >= 97 && e <= 122 || e >= 65 && e <= 90;
|
|
3562
3584
|
}
|
|
3563
|
-
function
|
|
3564
|
-
return
|
|
3585
|
+
function Kn(e) {
|
|
3586
|
+
return Xe(e) || e === 47;
|
|
3565
3587
|
}
|
|
3566
|
-
function
|
|
3588
|
+
function ei(e) {
|
|
3567
3589
|
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;
|
|
3568
3590
|
}
|
|
3569
|
-
function
|
|
3591
|
+
function ir(e) {
|
|
3570
3592
|
return e >= 9 && e <= 13 || e === 32 || e === 133 || e >= 8206 && e <= 8207 || e === 8232 || e === 8233;
|
|
3571
3593
|
}
|
|
3572
|
-
function
|
|
3594
|
+
function ti(e) {
|
|
3573
3595
|
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;
|
|
3574
3596
|
}
|
|
3575
|
-
function
|
|
3597
|
+
function We(e) {
|
|
3576
3598
|
e.forEach(function(t) {
|
|
3577
|
-
if (delete t.location,
|
|
3599
|
+
if (delete t.location, Zt(t) || Qt(t))
|
|
3578
3600
|
for (var r in t.options)
|
|
3579
|
-
delete t.options[r].location,
|
|
3601
|
+
delete t.options[r].location, We(t.options[r].value);
|
|
3580
3602
|
else
|
|
3581
|
-
|
|
3603
|
+
Xt(t) && Yt(t.style) || (Wt(t) || zt(t)) && Fe(t.style) ? delete t.style.location : Jt(t) && We(t.children);
|
|
3582
3604
|
});
|
|
3583
3605
|
}
|
|
3584
|
-
function
|
|
3606
|
+
function ri(e, t) {
|
|
3585
3607
|
t === void 0 && (t = {}), t = g({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
|
|
3586
|
-
var r = new
|
|
3608
|
+
var r = new qn(e, t).parse();
|
|
3587
3609
|
if (r.err) {
|
|
3588
3610
|
var n = SyntaxError(m[r.err.kind]);
|
|
3589
3611
|
throw n.location = r.err.location, n.originalMessage = r.err.message, n;
|
|
3590
3612
|
}
|
|
3591
|
-
return t != null && t.captureLocation ||
|
|
3613
|
+
return t != null && t.captureLocation || We(r.val), r.val;
|
|
3592
3614
|
}
|
|
3593
3615
|
var z;
|
|
3594
3616
|
(function(e) {
|
|
3595
3617
|
e.MISSING_VALUE = "MISSING_VALUE", e.INVALID_VALUE = "INVALID_VALUE", e.MISSING_INTL_API = "MISSING_INTL_API";
|
|
3596
3618
|
})(z || (z = {}));
|
|
3597
|
-
var
|
|
3619
|
+
var Ee = (
|
|
3598
3620
|
/** @class */
|
|
3599
3621
|
function(e) {
|
|
3600
3622
|
L(t, e);
|
|
@@ -3606,7 +3628,7 @@ var _e = (
|
|
|
3606
3628
|
return "[formatjs Error: ".concat(this.code, "] ").concat(this.message);
|
|
3607
3629
|
}, t;
|
|
3608
3630
|
}(Error)
|
|
3609
|
-
),
|
|
3631
|
+
), _t = (
|
|
3610
3632
|
/** @class */
|
|
3611
3633
|
function(e) {
|
|
3612
3634
|
L(t, e);
|
|
@@ -3614,8 +3636,8 @@ var _e = (
|
|
|
3614
3636
|
return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'), z.INVALID_VALUE, o) || this;
|
|
3615
3637
|
}
|
|
3616
3638
|
return t;
|
|
3617
|
-
}(
|
|
3618
|
-
),
|
|
3639
|
+
}(Ee)
|
|
3640
|
+
), ni = (
|
|
3619
3641
|
/** @class */
|
|
3620
3642
|
function(e) {
|
|
3621
3643
|
L(t, e);
|
|
@@ -3623,8 +3645,8 @@ var _e = (
|
|
|
3623
3645
|
return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n), z.INVALID_VALUE, i) || this;
|
|
3624
3646
|
}
|
|
3625
3647
|
return t;
|
|
3626
|
-
}(
|
|
3627
|
-
),
|
|
3648
|
+
}(Ee)
|
|
3649
|
+
), ii = (
|
|
3628
3650
|
/** @class */
|
|
3629
3651
|
function(e) {
|
|
3630
3652
|
L(t, e);
|
|
@@ -3632,129 +3654,129 @@ var _e = (
|
|
|
3632
3654
|
return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'), z.MISSING_VALUE, n) || this;
|
|
3633
3655
|
}
|
|
3634
3656
|
return t;
|
|
3635
|
-
}(
|
|
3636
|
-
),
|
|
3657
|
+
}(Ee)
|
|
3658
|
+
), _;
|
|
3637
3659
|
(function(e) {
|
|
3638
3660
|
e[e.literal = 0] = "literal", e[e.object = 1] = "object";
|
|
3639
|
-
})(
|
|
3640
|
-
function
|
|
3661
|
+
})(_ || (_ = {}));
|
|
3662
|
+
function oi(e) {
|
|
3641
3663
|
return e.length < 2 ? e : e.reduce(function(t, r) {
|
|
3642
3664
|
var n = t[t.length - 1];
|
|
3643
|
-
return !n || n.type !==
|
|
3665
|
+
return !n || n.type !== _.literal || r.type !== _.literal ? t.push(r) : n.value += r.value, t;
|
|
3644
3666
|
}, []);
|
|
3645
3667
|
}
|
|
3646
|
-
function
|
|
3668
|
+
function si(e) {
|
|
3647
3669
|
return typeof e == "function";
|
|
3648
3670
|
}
|
|
3649
3671
|
function pe(e, t, r, n, i, o, s) {
|
|
3650
|
-
if (e.length === 1 &&
|
|
3672
|
+
if (e.length === 1 && dt(e[0]))
|
|
3651
3673
|
return [
|
|
3652
3674
|
{
|
|
3653
|
-
type:
|
|
3675
|
+
type: _.literal,
|
|
3654
3676
|
value: e[0].value
|
|
3655
3677
|
}
|
|
3656
3678
|
];
|
|
3657
3679
|
for (var a = [], h = 0, u = e; h < u.length; h++) {
|
|
3658
3680
|
var l = u[h];
|
|
3659
|
-
if (
|
|
3681
|
+
if (dt(l)) {
|
|
3660
3682
|
a.push({
|
|
3661
|
-
type:
|
|
3683
|
+
type: _.literal,
|
|
3662
3684
|
value: l.value
|
|
3663
3685
|
});
|
|
3664
3686
|
continue;
|
|
3665
3687
|
}
|
|
3666
|
-
if (
|
|
3688
|
+
if (An(l)) {
|
|
3667
3689
|
typeof o == "number" && a.push({
|
|
3668
|
-
type:
|
|
3690
|
+
type: _.literal,
|
|
3669
3691
|
value: r.getNumberFormat(t).format(o)
|
|
3670
3692
|
});
|
|
3671
3693
|
continue;
|
|
3672
3694
|
}
|
|
3673
3695
|
var f = l.value;
|
|
3674
3696
|
if (!(i && f in i))
|
|
3675
|
-
throw new
|
|
3697
|
+
throw new ii(f, s);
|
|
3676
3698
|
var c = i[f];
|
|
3677
|
-
if (
|
|
3699
|
+
if (wn(l)) {
|
|
3678
3700
|
(!c || typeof c == "string" || typeof c == "number") && (c = typeof c == "string" || typeof c == "number" ? String(c) : ""), a.push({
|
|
3679
|
-
type: typeof c == "string" ?
|
|
3701
|
+
type: typeof c == "string" ? _.literal : _.object,
|
|
3680
3702
|
value: c
|
|
3681
3703
|
});
|
|
3682
3704
|
continue;
|
|
3683
3705
|
}
|
|
3684
|
-
if (
|
|
3685
|
-
var p = typeof l.style == "string" ? n.date[l.style] :
|
|
3706
|
+
if (Wt(l)) {
|
|
3707
|
+
var p = typeof l.style == "string" ? n.date[l.style] : Fe(l.style) ? l.style.parsedOptions : void 0;
|
|
3686
3708
|
a.push({
|
|
3687
|
-
type:
|
|
3709
|
+
type: _.literal,
|
|
3688
3710
|
value: r.getDateTimeFormat(t, p).format(c)
|
|
3689
3711
|
});
|
|
3690
3712
|
continue;
|
|
3691
3713
|
}
|
|
3692
|
-
if (
|
|
3693
|
-
var p = typeof l.style == "string" ? n.time[l.style] :
|
|
3714
|
+
if (zt(l)) {
|
|
3715
|
+
var p = typeof l.style == "string" ? n.time[l.style] : Fe(l.style) ? l.style.parsedOptions : n.time.medium;
|
|
3694
3716
|
a.push({
|
|
3695
|
-
type:
|
|
3717
|
+
type: _.literal,
|
|
3696
3718
|
value: r.getDateTimeFormat(t, p).format(c)
|
|
3697
3719
|
});
|
|
3698
3720
|
continue;
|
|
3699
3721
|
}
|
|
3700
|
-
if (
|
|
3701
|
-
var p = typeof l.style == "string" ? n.number[l.style] :
|
|
3722
|
+
if (Xt(l)) {
|
|
3723
|
+
var p = typeof l.style == "string" ? n.number[l.style] : Yt(l.style) ? l.style.parsedOptions : void 0;
|
|
3702
3724
|
p && p.scale && (c = c * (p.scale || 1)), a.push({
|
|
3703
|
-
type:
|
|
3725
|
+
type: _.literal,
|
|
3704
3726
|
value: r.getNumberFormat(t, p).format(c)
|
|
3705
3727
|
});
|
|
3706
3728
|
continue;
|
|
3707
3729
|
}
|
|
3708
|
-
if (
|
|
3730
|
+
if (Jt(l)) {
|
|
3709
3731
|
var d = l.children, v = l.value, B = i[v];
|
|
3710
|
-
if (!
|
|
3711
|
-
throw new
|
|
3732
|
+
if (!si(B))
|
|
3733
|
+
throw new ni(v, "function", s);
|
|
3712
3734
|
var $ = pe(d, t, r, n, i, o), N = B($.map(function(P) {
|
|
3713
3735
|
return P.value;
|
|
3714
3736
|
}));
|
|
3715
3737
|
Array.isArray(N) || (N = [N]), a.push.apply(a, N.map(function(P) {
|
|
3716
3738
|
return {
|
|
3717
|
-
type: typeof P == "string" ?
|
|
3739
|
+
type: typeof P == "string" ? _.literal : _.object,
|
|
3718
3740
|
value: P
|
|
3719
3741
|
};
|
|
3720
3742
|
}));
|
|
3721
3743
|
}
|
|
3722
|
-
if (
|
|
3723
|
-
var
|
|
3724
|
-
if (!
|
|
3725
|
-
throw new
|
|
3726
|
-
a.push.apply(a, pe(
|
|
3744
|
+
if (Zt(l)) {
|
|
3745
|
+
var x = l.options[c] || l.options.other;
|
|
3746
|
+
if (!x)
|
|
3747
|
+
throw new _t(l.value, c, Object.keys(l.options), s);
|
|
3748
|
+
a.push.apply(a, pe(x.value, t, r, n, i));
|
|
3727
3749
|
continue;
|
|
3728
3750
|
}
|
|
3729
|
-
if (
|
|
3730
|
-
var
|
|
3731
|
-
if (!
|
|
3751
|
+
if (Qt(l)) {
|
|
3752
|
+
var x = l.options["=".concat(c)];
|
|
3753
|
+
if (!x) {
|
|
3732
3754
|
if (!Intl.PluralRules)
|
|
3733
|
-
throw new
|
|
3755
|
+
throw new Ee(`Intl.PluralRules is not available in this environment.
|
|
3734
3756
|
Try polyfilling it using "@formatjs/intl-pluralrules"
|
|
3735
3757
|
`, z.MISSING_INTL_API, s);
|
|
3736
3758
|
var R = r.getPluralRules(t, { type: l.pluralType }).select(c - (l.offset || 0));
|
|
3737
|
-
|
|
3759
|
+
x = l.options[R] || l.options.other;
|
|
3738
3760
|
}
|
|
3739
|
-
if (!
|
|
3740
|
-
throw new
|
|
3741
|
-
a.push.apply(a, pe(
|
|
3761
|
+
if (!x)
|
|
3762
|
+
throw new _t(l.value, c, Object.keys(l.options), s);
|
|
3763
|
+
a.push.apply(a, pe(x.value, t, r, n, i, c - (l.offset || 0)));
|
|
3742
3764
|
continue;
|
|
3743
3765
|
}
|
|
3744
3766
|
}
|
|
3745
|
-
return
|
|
3767
|
+
return oi(a);
|
|
3746
3768
|
}
|
|
3747
|
-
function
|
|
3769
|
+
function ai(e, t) {
|
|
3748
3770
|
return t ? g(g(g({}, e || {}), t || {}), Object.keys(e).reduce(function(r, n) {
|
|
3749
3771
|
return r[n] = g(g({}, e[n]), t[n] || {}), r;
|
|
3750
3772
|
}, {})) : e;
|
|
3751
3773
|
}
|
|
3752
|
-
function
|
|
3774
|
+
function ui(e, t) {
|
|
3753
3775
|
return t ? Object.keys(e).reduce(function(r, n) {
|
|
3754
|
-
return r[n] =
|
|
3776
|
+
return r[n] = ai(e[n], t[n]), r;
|
|
3755
3777
|
}, g({}, e)) : e;
|
|
3756
3778
|
}
|
|
3757
|
-
function
|
|
3779
|
+
function Ie(e) {
|
|
3758
3780
|
return {
|
|
3759
3781
|
create: function() {
|
|
3760
3782
|
return {
|
|
@@ -3768,7 +3790,7 @@ function Oe(e) {
|
|
|
3768
3790
|
}
|
|
3769
3791
|
};
|
|
3770
3792
|
}
|
|
3771
|
-
function
|
|
3793
|
+
function hi(e) {
|
|
3772
3794
|
return e === void 0 && (e = {
|
|
3773
3795
|
number: {},
|
|
3774
3796
|
dateTime: {},
|
|
@@ -3779,28 +3801,28 @@ function si(e) {
|
|
|
3779
3801
|
r[n] = arguments[n];
|
|
3780
3802
|
return new ((t = Intl.NumberFormat).bind.apply(t, V([void 0], r, !1)))();
|
|
3781
3803
|
}, {
|
|
3782
|
-
cache:
|
|
3783
|
-
strategy:
|
|
3804
|
+
cache: Ie(e.number),
|
|
3805
|
+
strategy: Pe.variadic
|
|
3784
3806
|
}),
|
|
3785
3807
|
getDateTimeFormat: Ae(function() {
|
|
3786
3808
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3787
3809
|
r[n] = arguments[n];
|
|
3788
3810
|
return new ((t = Intl.DateTimeFormat).bind.apply(t, V([void 0], r, !1)))();
|
|
3789
3811
|
}, {
|
|
3790
|
-
cache:
|
|
3791
|
-
strategy:
|
|
3812
|
+
cache: Ie(e.dateTime),
|
|
3813
|
+
strategy: Pe.variadic
|
|
3792
3814
|
}),
|
|
3793
3815
|
getPluralRules: Ae(function() {
|
|
3794
3816
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3795
3817
|
r[n] = arguments[n];
|
|
3796
3818
|
return new ((t = Intl.PluralRules).bind.apply(t, V([void 0], r, !1)))();
|
|
3797
3819
|
}, {
|
|
3798
|
-
cache:
|
|
3799
|
-
strategy:
|
|
3820
|
+
cache: Ie(e.pluralRules),
|
|
3821
|
+
strategy: Pe.variadic
|
|
3800
3822
|
})
|
|
3801
3823
|
};
|
|
3802
3824
|
}
|
|
3803
|
-
var
|
|
3825
|
+
var li = (
|
|
3804
3826
|
/** @class */
|
|
3805
3827
|
function() {
|
|
3806
3828
|
function e(t, r, n, i) {
|
|
@@ -3815,7 +3837,7 @@ var ai = (
|
|
|
3815
3837
|
if (u.length === 1)
|
|
3816
3838
|
return u[0].value;
|
|
3817
3839
|
var l = u.reduce(function(f, c) {
|
|
3818
|
-
return !f.length || c.type !==
|
|
3840
|
+
return !f.length || c.type !== _.literal || typeof f[f.length - 1] != "string" ? f.push(c.value) : f[f.length - 1] += c.value, f;
|
|
3819
3841
|
}, []);
|
|
3820
3842
|
return l.length <= 1 ? l[0] || "" : l;
|
|
3821
3843
|
}, this.formatToParts = function(h) {
|
|
@@ -3832,13 +3854,13 @@ var ai = (
|
|
|
3832
3854
|
throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");
|
|
3833
3855
|
var s = i || {};
|
|
3834
3856
|
s.formatters;
|
|
3835
|
-
var a =
|
|
3857
|
+
var a = jr(s, ["formatters"]);
|
|
3836
3858
|
this.ast = e.__parse(t, g(g({}, a), { locale: this.resolvedLocale }));
|
|
3837
3859
|
} else
|
|
3838
3860
|
this.ast = t;
|
|
3839
3861
|
if (!Array.isArray(this.ast))
|
|
3840
3862
|
throw new TypeError("A message must be provided as a String or AST.");
|
|
3841
|
-
this.formats =
|
|
3863
|
+
this.formats = ui(e.formats, n), this.formatters = i && i.formatters || hi(this.formatterCache);
|
|
3842
3864
|
}
|
|
3843
3865
|
return Object.defineProperty(e, "defaultLocale", {
|
|
3844
3866
|
get: function() {
|
|
@@ -3851,7 +3873,7 @@ var ai = (
|
|
|
3851
3873
|
var r = Intl.NumberFormat.supportedLocalesOf(t);
|
|
3852
3874
|
return r.length > 0 ? new Intl.Locale(r[0]) : new Intl.Locale(typeof t == "string" ? t : t[0]);
|
|
3853
3875
|
}
|
|
3854
|
-
}, e.__parse =
|
|
3876
|
+
}, e.__parse = ri, e.formats = {
|
|
3855
3877
|
number: {
|
|
3856
3878
|
integer: {
|
|
3857
3879
|
maximumFractionDigits: 0
|
|
@@ -3912,7 +3934,7 @@ var ai = (
|
|
|
3912
3934
|
}, e;
|
|
3913
3935
|
}()
|
|
3914
3936
|
);
|
|
3915
|
-
function
|
|
3937
|
+
function ci(e, t) {
|
|
3916
3938
|
if (t == null)
|
|
3917
3939
|
return;
|
|
3918
3940
|
if (t in e)
|
|
@@ -3933,92 +3955,92 @@ function ui(e, t) {
|
|
|
3933
3955
|
n = void 0;
|
|
3934
3956
|
return n;
|
|
3935
3957
|
}
|
|
3936
|
-
const C = {},
|
|
3958
|
+
const C = {}, fi = (e, t, r) => r && (t in C || (C[t] = {}), e in C[t] || (C[t][e] = r), r), or = (e, t) => {
|
|
3937
3959
|
if (t == null)
|
|
3938
3960
|
return;
|
|
3939
3961
|
if (t in C && e in C[t])
|
|
3940
3962
|
return C[t][e];
|
|
3941
|
-
const r =
|
|
3963
|
+
const r = _e(t);
|
|
3942
3964
|
for (let n = 0; n < r.length; n++) {
|
|
3943
|
-
const i = r[n], o =
|
|
3965
|
+
const i = r[n], o = di(i, e);
|
|
3944
3966
|
if (o)
|
|
3945
|
-
return
|
|
3967
|
+
return fi(e, t, o);
|
|
3946
3968
|
}
|
|
3947
3969
|
};
|
|
3948
|
-
let
|
|
3970
|
+
let qe;
|
|
3949
3971
|
const ae = ve({});
|
|
3950
|
-
function
|
|
3951
|
-
return
|
|
3972
|
+
function pi(e) {
|
|
3973
|
+
return qe[e] || null;
|
|
3952
3974
|
}
|
|
3953
|
-
function
|
|
3954
|
-
return e in
|
|
3975
|
+
function sr(e) {
|
|
3976
|
+
return e in qe;
|
|
3955
3977
|
}
|
|
3956
|
-
function
|
|
3957
|
-
if (!
|
|
3978
|
+
function di(e, t) {
|
|
3979
|
+
if (!sr(e))
|
|
3958
3980
|
return null;
|
|
3959
|
-
const r =
|
|
3960
|
-
return
|
|
3981
|
+
const r = pi(e);
|
|
3982
|
+
return ci(r, t);
|
|
3961
3983
|
}
|
|
3962
|
-
function
|
|
3984
|
+
function mi(e) {
|
|
3963
3985
|
if (e == null)
|
|
3964
3986
|
return;
|
|
3965
|
-
const t =
|
|
3987
|
+
const t = _e(e);
|
|
3966
3988
|
for (let r = 0; r < t.length; r++) {
|
|
3967
3989
|
const n = t[r];
|
|
3968
|
-
if (
|
|
3990
|
+
if (sr(n))
|
|
3969
3991
|
return n;
|
|
3970
3992
|
}
|
|
3971
3993
|
}
|
|
3972
|
-
function
|
|
3973
|
-
delete C[e], ae.update((r) => (r[e] =
|
|
3994
|
+
function ar(e, ...t) {
|
|
3995
|
+
delete C[e], ae.update((r) => (r[e] = En.all([r[e] || {}, ...t]), r));
|
|
3974
3996
|
}
|
|
3975
3997
|
J(
|
|
3976
3998
|
[ae],
|
|
3977
3999
|
([e]) => Object.keys(e)
|
|
3978
4000
|
);
|
|
3979
|
-
ae.subscribe((e) =>
|
|
4001
|
+
ae.subscribe((e) => qe = e);
|
|
3980
4002
|
const de = {};
|
|
3981
|
-
function
|
|
4003
|
+
function bi(e, t) {
|
|
3982
4004
|
de[e].delete(t), de[e].size === 0 && delete de[e];
|
|
3983
4005
|
}
|
|
3984
|
-
function
|
|
4006
|
+
function ur(e) {
|
|
3985
4007
|
return de[e];
|
|
3986
4008
|
}
|
|
3987
|
-
function
|
|
3988
|
-
return
|
|
3989
|
-
const r =
|
|
4009
|
+
function gi(e) {
|
|
4010
|
+
return _e(e).map((t) => {
|
|
4011
|
+
const r = ur(t);
|
|
3990
4012
|
return [t, r ? [...r] : []];
|
|
3991
4013
|
}).filter(([, t]) => t.length > 0);
|
|
3992
4014
|
}
|
|
3993
|
-
function
|
|
3994
|
-
return e == null ? !1 :
|
|
4015
|
+
function ze(e) {
|
|
4016
|
+
return e == null ? !1 : _e(e).some(
|
|
3995
4017
|
(t) => {
|
|
3996
4018
|
var r;
|
|
3997
|
-
return (r =
|
|
4019
|
+
return (r = ur(t)) == null ? void 0 : r.size;
|
|
3998
4020
|
}
|
|
3999
4021
|
);
|
|
4000
4022
|
}
|
|
4001
|
-
function
|
|
4023
|
+
function yi(e, t) {
|
|
4002
4024
|
return Promise.all(
|
|
4003
|
-
t.map((n) => (
|
|
4004
|
-
).then((n) =>
|
|
4025
|
+
t.map((n) => (bi(e, n), n().then((i) => i.default || i)))
|
|
4026
|
+
).then((n) => ar(e, ...n));
|
|
4005
4027
|
}
|
|
4006
4028
|
const ee = {};
|
|
4007
|
-
function
|
|
4008
|
-
if (!
|
|
4029
|
+
function hr(e) {
|
|
4030
|
+
if (!ze(e))
|
|
4009
4031
|
return e in ee ? ee[e] : Promise.resolve();
|
|
4010
|
-
const t =
|
|
4032
|
+
const t = gi(e);
|
|
4011
4033
|
return ee[e] = Promise.all(
|
|
4012
4034
|
t.map(
|
|
4013
|
-
([r, n]) =>
|
|
4035
|
+
([r, n]) => yi(r, n)
|
|
4014
4036
|
)
|
|
4015
4037
|
).then(() => {
|
|
4016
|
-
if (
|
|
4017
|
-
return
|
|
4038
|
+
if (ze(e))
|
|
4039
|
+
return hr(e);
|
|
4018
4040
|
delete ee[e];
|
|
4019
4041
|
}), ee[e];
|
|
4020
4042
|
}
|
|
4021
|
-
const
|
|
4043
|
+
const vi = {
|
|
4022
4044
|
number: {
|
|
4023
4045
|
scientific: { notation: "scientific" },
|
|
4024
4046
|
engineering: { notation: "engineering" },
|
|
@@ -4047,78 +4069,78 @@ const bi = {
|
|
|
4047
4069
|
timeZoneName: "short"
|
|
4048
4070
|
}
|
|
4049
4071
|
}
|
|
4050
|
-
},
|
|
4072
|
+
}, Ei = {
|
|
4051
4073
|
fallbackLocale: null,
|
|
4052
4074
|
loadingDelay: 200,
|
|
4053
|
-
formats:
|
|
4075
|
+
formats: vi,
|
|
4054
4076
|
warnOnMissingMessages: !0,
|
|
4055
4077
|
handleMissingMessage: void 0,
|
|
4056
4078
|
ignoreTag: !0
|
|
4057
|
-
},
|
|
4079
|
+
}, _i = Ei;
|
|
4058
4080
|
function Z() {
|
|
4059
|
-
return
|
|
4081
|
+
return _i;
|
|
4060
4082
|
}
|
|
4061
|
-
const
|
|
4062
|
-
var
|
|
4083
|
+
const Le = ve(!1);
|
|
4084
|
+
var xi = Object.defineProperty, Si = Object.defineProperties, Ti = Object.getOwnPropertyDescriptors, xt = Object.getOwnPropertySymbols, Hi = Object.prototype.hasOwnProperty, Bi = Object.prototype.propertyIsEnumerable, St = (e, t, r) => t in e ? xi(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, wi = (e, t) => {
|
|
4063
4085
|
for (var r in t || (t = {}))
|
|
4064
|
-
|
|
4065
|
-
if (
|
|
4066
|
-
for (var r of
|
|
4067
|
-
|
|
4086
|
+
Hi.call(t, r) && St(e, r, t[r]);
|
|
4087
|
+
if (xt)
|
|
4088
|
+
for (var r of xt(t))
|
|
4089
|
+
Bi.call(t, r) && St(e, r, t[r]);
|
|
4068
4090
|
return e;
|
|
4069
|
-
},
|
|
4070
|
-
let
|
|
4091
|
+
}, Ai = (e, t) => Si(e, Ti(t));
|
|
4092
|
+
let Ze;
|
|
4071
4093
|
const me = ve(null);
|
|
4072
|
-
function
|
|
4094
|
+
function Tt(e) {
|
|
4073
4095
|
return e.split("-").map((t, r, n) => n.slice(0, r + 1).join("-")).reverse();
|
|
4074
4096
|
}
|
|
4075
|
-
function
|
|
4076
|
-
const r =
|
|
4077
|
-
return t ? [.../* @__PURE__ */ new Set([...r, ...
|
|
4097
|
+
function _e(e, t = Z().fallbackLocale) {
|
|
4098
|
+
const r = Tt(e);
|
|
4099
|
+
return t ? [.../* @__PURE__ */ new Set([...r, ...Tt(t)])] : r;
|
|
4078
4100
|
}
|
|
4079
4101
|
function U() {
|
|
4080
|
-
return
|
|
4102
|
+
return Ze != null ? Ze : void 0;
|
|
4081
4103
|
}
|
|
4082
4104
|
me.subscribe((e) => {
|
|
4083
|
-
|
|
4105
|
+
Ze = e != null ? e : void 0, typeof window != "undefined" && e != null && document.documentElement.setAttribute("lang", e);
|
|
4084
4106
|
});
|
|
4085
|
-
const
|
|
4086
|
-
if (e &&
|
|
4107
|
+
const Pi = (e) => {
|
|
4108
|
+
if (e && mi(e) && ze(e)) {
|
|
4087
4109
|
const { loadingDelay: t } = Z();
|
|
4088
4110
|
let r;
|
|
4089
4111
|
return typeof window != "undefined" && U() != null && t ? r = window.setTimeout(
|
|
4090
|
-
() =>
|
|
4112
|
+
() => Le.set(!0),
|
|
4091
4113
|
t
|
|
4092
|
-
) :
|
|
4114
|
+
) : Le.set(!0), hr(e).then(() => {
|
|
4093
4115
|
me.set(e);
|
|
4094
4116
|
}).finally(() => {
|
|
4095
|
-
clearTimeout(r),
|
|
4117
|
+
clearTimeout(r), Le.set(!1);
|
|
4096
4118
|
});
|
|
4097
4119
|
}
|
|
4098
4120
|
return me.set(e);
|
|
4099
|
-
}, Y =
|
|
4100
|
-
set:
|
|
4101
|
-
}),
|
|
4121
|
+
}, Y = Ai(wi({}, me), {
|
|
4122
|
+
set: Pi
|
|
4123
|
+
}), xe = (e) => {
|
|
4102
4124
|
const t = /* @__PURE__ */ Object.create(null);
|
|
4103
4125
|
return (n) => {
|
|
4104
4126
|
const i = JSON.stringify(n);
|
|
4105
4127
|
return i in t ? t[i] : t[i] = e(n);
|
|
4106
4128
|
};
|
|
4107
4129
|
};
|
|
4108
|
-
var
|
|
4130
|
+
var Oi = Object.defineProperty, be = Object.getOwnPropertySymbols, lr = Object.prototype.hasOwnProperty, cr = Object.prototype.propertyIsEnumerable, Ht = (e, t, r) => t in e ? Oi(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Ke = (e, t) => {
|
|
4109
4131
|
for (var r in t || (t = {}))
|
|
4110
|
-
|
|
4132
|
+
lr.call(t, r) && Ht(e, r, t[r]);
|
|
4111
4133
|
if (be)
|
|
4112
4134
|
for (var r of be(t))
|
|
4113
|
-
|
|
4135
|
+
cr.call(t, r) && Ht(e, r, t[r]);
|
|
4114
4136
|
return e;
|
|
4115
4137
|
}, q = (e, t) => {
|
|
4116
4138
|
var r = {};
|
|
4117
4139
|
for (var n in e)
|
|
4118
|
-
|
|
4140
|
+
lr.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
4119
4141
|
if (e != null && be)
|
|
4120
4142
|
for (var n of be(e))
|
|
4121
|
-
t.indexOf(n) < 0 &&
|
|
4143
|
+
t.indexOf(n) < 0 && cr.call(e, n) && (r[n] = e[n]);
|
|
4122
4144
|
return r;
|
|
4123
4145
|
};
|
|
4124
4146
|
const ie = (e, t) => {
|
|
@@ -4126,21 +4148,21 @@ const ie = (e, t) => {
|
|
|
4126
4148
|
if (e in r && t in r[e])
|
|
4127
4149
|
return r[e][t];
|
|
4128
4150
|
throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`);
|
|
4129
|
-
},
|
|
4151
|
+
}, Ii = xe(
|
|
4130
4152
|
(e) => {
|
|
4131
4153
|
var t = e, { locale: r, format: n } = t, i = q(t, ["locale", "format"]);
|
|
4132
4154
|
if (r == null)
|
|
4133
4155
|
throw new Error('[svelte-i18n] A "locale" must be set to format numbers');
|
|
4134
4156
|
return n && (i = ie("number", n)), new Intl.NumberFormat(r, i);
|
|
4135
4157
|
}
|
|
4136
|
-
),
|
|
4158
|
+
), Li = xe(
|
|
4137
4159
|
(e) => {
|
|
4138
4160
|
var t = e, { locale: r, format: n } = t, i = q(t, ["locale", "format"]);
|
|
4139
4161
|
if (r == null)
|
|
4140
4162
|
throw new Error('[svelte-i18n] A "locale" must be set to format dates');
|
|
4141
4163
|
return n ? i = ie("date", n) : Object.keys(i).length === 0 && (i = ie("date", "short")), new Intl.DateTimeFormat(r, i);
|
|
4142
4164
|
}
|
|
4143
|
-
),
|
|
4165
|
+
), Ni = xe(
|
|
4144
4166
|
(e) => {
|
|
4145
4167
|
var t = e, { locale: r, format: n } = t, i = q(t, ["locale", "format"]);
|
|
4146
4168
|
if (r == null)
|
|
@@ -4149,33 +4171,33 @@ const ie = (e, t) => {
|
|
|
4149
4171
|
);
|
|
4150
4172
|
return n ? i = ie("time", n) : Object.keys(i).length === 0 && (i = ie("time", "short")), new Intl.DateTimeFormat(r, i);
|
|
4151
4173
|
}
|
|
4152
|
-
),
|
|
4174
|
+
), Mi = (e = {}) => {
|
|
4153
4175
|
var t = e, {
|
|
4154
4176
|
locale: r = U()
|
|
4155
4177
|
} = t, n = q(t, [
|
|
4156
4178
|
"locale"
|
|
4157
4179
|
]);
|
|
4158
|
-
return
|
|
4159
|
-
},
|
|
4180
|
+
return Ii(Ke({ locale: r }, n));
|
|
4181
|
+
}, Ci = (e = {}) => {
|
|
4160
4182
|
var t = e, {
|
|
4161
4183
|
locale: r = U()
|
|
4162
4184
|
} = t, n = q(t, [
|
|
4163
4185
|
"locale"
|
|
4164
4186
|
]);
|
|
4165
|
-
return
|
|
4166
|
-
},
|
|
4187
|
+
return Li(Ke({ locale: r }, n));
|
|
4188
|
+
}, $i = (e = {}) => {
|
|
4167
4189
|
var t = e, {
|
|
4168
4190
|
locale: r = U()
|
|
4169
4191
|
} = t, n = q(t, [
|
|
4170
4192
|
"locale"
|
|
4171
4193
|
]);
|
|
4172
|
-
return
|
|
4173
|
-
},
|
|
4194
|
+
return Ni(Ke({ locale: r }, n));
|
|
4195
|
+
}, Ri = xe(
|
|
4174
4196
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
4175
|
-
(e, t = U()) => new
|
|
4197
|
+
(e, t = U()) => new li(e, t, Z().formats, {
|
|
4176
4198
|
ignoreTag: Z().ignoreTag
|
|
4177
4199
|
})
|
|
4178
|
-
),
|
|
4200
|
+
), Ui = (e, t = {}) => {
|
|
4179
4201
|
var r, n, i, o;
|
|
4180
4202
|
let s = t;
|
|
4181
4203
|
typeof e == "object" && (s = e, e = s.id);
|
|
@@ -4188,7 +4210,7 @@ const ie = (e, t) => {
|
|
|
4188
4210
|
throw new Error(
|
|
4189
4211
|
"[svelte-i18n] Cannot format a message without first setting the initial locale."
|
|
4190
4212
|
);
|
|
4191
|
-
let l =
|
|
4213
|
+
let l = or(e, h);
|
|
4192
4214
|
if (!l)
|
|
4193
4215
|
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;
|
|
4194
4216
|
else if (typeof l != "string")
|
|
@@ -4199,7 +4221,7 @@ const ie = (e, t) => {
|
|
|
4199
4221
|
return l;
|
|
4200
4222
|
let f = l;
|
|
4201
4223
|
try {
|
|
4202
|
-
f =
|
|
4224
|
+
f = Ri(l, h).format(a);
|
|
4203
4225
|
} catch (c) {
|
|
4204
4226
|
c instanceof Error && console.warn(
|
|
4205
4227
|
`[svelte-i18n] Message "${e}" has syntax error:`,
|
|
@@ -4207,20 +4229,30 @@ const ie = (e, t) => {
|
|
|
4207
4229
|
);
|
|
4208
4230
|
}
|
|
4209
4231
|
return f;
|
|
4210
|
-
},
|
|
4211
|
-
J([Y], () =>
|
|
4212
|
-
J([Y], () =>
|
|
4213
|
-
J([Y], () =>
|
|
4214
|
-
J([Y, ae], () =>
|
|
4215
|
-
window.emWidgets = { topic:
|
|
4216
|
-
const
|
|
4217
|
-
|
|
4218
|
-
|
|
4219
|
-
|
|
4220
|
-
|
|
4232
|
+
}, Di = (e, t) => $i(t).format(e), Gi = (e, t) => Ci(t).format(e), Fi = (e, t) => Mi(t).format(e), ji = (e, t = U()) => or(e, t), ki = J([Y, ae], () => Ui);
|
|
4233
|
+
J([Y], () => Di);
|
|
4234
|
+
J([Y], () => Gi);
|
|
4235
|
+
J([Y], () => Fi);
|
|
4236
|
+
J([Y, ae], () => ji);
|
|
4237
|
+
window.emWidgets = { topic: rn };
|
|
4238
|
+
const Vi = (e) => e.toLowerCase().match(/android/i) ? "Android" : e.toLowerCase().match(/iphone/i) ? "iPhone" : e.toLowerCase().match(/ipad|ipod/i) ? "iPad" : "PC", Xi = (e, t = {}) => {
|
|
4239
|
+
const r = new CustomEvent("track-custom-event", {
|
|
4240
|
+
detail: {
|
|
4241
|
+
type: e,
|
|
4242
|
+
data: t
|
|
4243
|
+
},
|
|
4244
|
+
bubbles: !0,
|
|
4245
|
+
composed: !0
|
|
4246
|
+
});
|
|
4247
|
+
document.dispatchEvent(r);
|
|
4248
|
+
};
|
|
4249
|
+
function Bt(e, t) {
|
|
4250
|
+
ar(e, t);
|
|
4251
|
+
}
|
|
4252
|
+
function Wi(e) {
|
|
4221
4253
|
Y.set(e);
|
|
4222
4254
|
}
|
|
4223
|
-
const
|
|
4255
|
+
const wt = {
|
|
4224
4256
|
en: {
|
|
4225
4257
|
logoutButton: "Logout"
|
|
4226
4258
|
},
|
|
@@ -4255,13 +4287,13 @@ const Tt = {
|
|
|
4255
4287
|
logoutButton: "Logout"
|
|
4256
4288
|
}
|
|
4257
4289
|
};
|
|
4258
|
-
function
|
|
4290
|
+
function At(e, t) {
|
|
4259
4291
|
if (e) {
|
|
4260
4292
|
const r = document.createElement("style");
|
|
4261
4293
|
r.innerHTML = t, e.appendChild(r);
|
|
4262
4294
|
}
|
|
4263
4295
|
}
|
|
4264
|
-
function
|
|
4296
|
+
function zi(e, t) {
|
|
4265
4297
|
const r = new URL(t);
|
|
4266
4298
|
fetch(r.href).then((n) => n.text()).then((n) => {
|
|
4267
4299
|
const i = document.createElement("style");
|
|
@@ -4270,7 +4302,7 @@ function ki(e, t) {
|
|
|
4270
4302
|
console.error("There was an error while trying to load client styling from URL", n);
|
|
4271
4303
|
});
|
|
4272
4304
|
}
|
|
4273
|
-
function
|
|
4305
|
+
function Zi(e, t, r) {
|
|
4274
4306
|
if (window.emMessageBus) {
|
|
4275
4307
|
const n = document.createElement("style");
|
|
4276
4308
|
window.emMessageBus.subscribe(t, (i) => {
|
|
@@ -4278,10 +4310,10 @@ function Vi(e, t, r) {
|
|
|
4278
4310
|
});
|
|
4279
4311
|
}
|
|
4280
4312
|
}
|
|
4281
|
-
function
|
|
4282
|
-
|
|
4313
|
+
function Qi(e) {
|
|
4314
|
+
Er(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))}");
|
|
4283
4315
|
}
|
|
4284
|
-
function
|
|
4316
|
+
function Ji(e) {
|
|
4285
4317
|
let t, r, n, i = (
|
|
4286
4318
|
/*$_*/
|
|
4287
4319
|
e[2]("logoutButton") + ""
|
|
@@ -4291,7 +4323,7 @@ function Wi(e) {
|
|
|
4291
4323
|
t = O("div"), r = O("button"), n = O("span"), o = ge(i), H(t, "class", "GeneralLogout");
|
|
4292
4324
|
},
|
|
4293
4325
|
m(h, u) {
|
|
4294
|
-
se(h, t, u), S(t, r), S(r, n), S(n, o), s || (a =
|
|
4326
|
+
se(h, t, u), S(t, r), S(r, n), S(n, o), s || (a = Lt(
|
|
4295
4327
|
r,
|
|
4296
4328
|
"click",
|
|
4297
4329
|
/*click_handler_1*/
|
|
@@ -4301,19 +4333,19 @@ function Wi(e) {
|
|
|
4301
4333
|
p(h, u) {
|
|
4302
4334
|
u & /*$_*/
|
|
4303
4335
|
4 && i !== (i = /*$_*/
|
|
4304
|
-
h[2]("logoutButton") + "") &&
|
|
4336
|
+
h[2]("logoutButton") + "") && Nt(o, i);
|
|
4305
4337
|
},
|
|
4306
4338
|
d(h) {
|
|
4307
4339
|
h && Q(t), s = !1, a();
|
|
4308
4340
|
}
|
|
4309
4341
|
};
|
|
4310
4342
|
}
|
|
4311
|
-
function
|
|
4343
|
+
function Yi(e) {
|
|
4312
4344
|
let t, r, n, i, o, s, a, h, u, l, f, c = !/*isMobile*/
|
|
4313
|
-
e[3] &&
|
|
4345
|
+
e[3] && qi(e);
|
|
4314
4346
|
return {
|
|
4315
4347
|
c() {
|
|
4316
|
-
t = O("p"), r = O("span"), n = K("svg"), i = K("defs"), o = K("style"), s = ge(".a88316b4-2478-4a69-b2eb-d32a5fb419dd{fill:var(--emw--color-white, #FFFFFF);}"), a = K("path"), h = K("path"), u =
|
|
4348
|
+
t = O("p"), r = O("span"), n = K("svg"), i = K("defs"), o = K("style"), s = ge(".a88316b4-2478-4a69-b2eb-d32a5fb419dd{fill:var(--emw--color-white, #FFFFFF);}"), a = K("path"), h = K("path"), u = Sr(), c && c.c(), H(a, "class", "a88316b4-2478-4a69-b2eb-d32a5fb419dd"), H(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"), H(h, "class", "a88316b4-2478-4a69-b2eb-d32a5fb419dd"), H(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"), H(n, "id", "bbfaf345-72af-4296-bf4b-2fd41fc03d5d"), H(n, "data-name", "Layer 1"), H(n, "xmlns", "http://www.w3.org/2000/svg"), H(n, "viewBox", "0 0 150 150"), Hr(r, "width", /*isMobile*/
|
|
4317
4349
|
e[3] ? (
|
|
4318
4350
|
/*mediaQuery*/
|
|
4319
4351
|
e[4].matches ? "50px" : "24px"
|
|
@@ -4323,7 +4355,7 @@ function zi(e) {
|
|
|
4323
4355
|
e[3] ? "PlayerAccountMenuItemBoxTablet" : ""));
|
|
4324
4356
|
},
|
|
4325
4357
|
m(p, d) {
|
|
4326
|
-
se(p, t, d), S(t, r), S(r, n), S(n, i), S(i, o), S(o, s), S(n, a), S(n, h), S(t, u), c && c.m(t, null), l || (f =
|
|
4358
|
+
se(p, t, d), S(t, r), S(r, n), S(n, i), S(i, o), S(o, s), S(n, a), S(n, h), S(t, u), c && c.m(t, null), l || (f = Lt(
|
|
4327
4359
|
t,
|
|
4328
4360
|
"click",
|
|
4329
4361
|
/*click_handler*/
|
|
@@ -4339,7 +4371,7 @@ function zi(e) {
|
|
|
4339
4371
|
}
|
|
4340
4372
|
};
|
|
4341
4373
|
}
|
|
4342
|
-
function
|
|
4374
|
+
function qi(e) {
|
|
4343
4375
|
let t, r = (
|
|
4344
4376
|
/*$_*/
|
|
4345
4377
|
e[2]("logoutButton") + ""
|
|
@@ -4354,19 +4386,19 @@ function Zi(e) {
|
|
|
4354
4386
|
p(i, o) {
|
|
4355
4387
|
o & /*$_*/
|
|
4356
4388
|
4 && r !== (r = /*$_*/
|
|
4357
|
-
i[2]("logoutButton") + "") &&
|
|
4389
|
+
i[2]("logoutButton") + "") && Nt(n, r);
|
|
4358
4390
|
},
|
|
4359
4391
|
d(i) {
|
|
4360
4392
|
i && Q(t);
|
|
4361
4393
|
}
|
|
4362
4394
|
};
|
|
4363
4395
|
}
|
|
4364
|
-
function
|
|
4396
|
+
function Ki(e) {
|
|
4365
4397
|
let t;
|
|
4366
4398
|
function r(o, s) {
|
|
4367
4399
|
return (
|
|
4368
4400
|
/*buttonlocation*/
|
|
4369
|
-
o[0] === "PlayerAccountMenu" ?
|
|
4401
|
+
o[0] === "PlayerAccountMenu" ? Yi : Ji
|
|
4370
4402
|
);
|
|
4371
4403
|
}
|
|
4372
4404
|
let n = r(e), i = n(e);
|
|
@@ -4380,44 +4412,44 @@ function Qi(e) {
|
|
|
4380
4412
|
p(o, [s]) {
|
|
4381
4413
|
n === (n = r(o)) && i ? i.p(o, s) : (i.d(1), i = n(o), i && (i.c(), i.m(t, null)));
|
|
4382
4414
|
},
|
|
4383
|
-
i:
|
|
4384
|
-
o:
|
|
4415
|
+
i: w,
|
|
4416
|
+
o: w,
|
|
4385
4417
|
d(o) {
|
|
4386
4418
|
o && Q(t), i.d(), e[15](null);
|
|
4387
4419
|
}
|
|
4388
4420
|
};
|
|
4389
4421
|
}
|
|
4390
|
-
function
|
|
4422
|
+
function eo(e, t, r) {
|
|
4391
4423
|
let n;
|
|
4392
|
-
|
|
4393
|
-
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, v = window.navigator.userAgent, B =
|
|
4424
|
+
vr(e, ki, (y) => r(2, n = y));
|
|
4425
|
+
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, v = window.navigator.userAgent, B = Vi(v) !== "PC";
|
|
4394
4426
|
const $ = window.matchMedia("(min-width: 768px)"), N = () => {
|
|
4395
4427
|
fetch(f).then((M) => M.json()).then((M) => {
|
|
4396
4428
|
Object.keys(M).forEach((Se) => {
|
|
4397
|
-
|
|
4429
|
+
Bt(Se, M[Se]);
|
|
4398
4430
|
});
|
|
4399
4431
|
}).catch((M) => {
|
|
4400
4432
|
console.log(M);
|
|
4401
4433
|
});
|
|
4402
4434
|
};
|
|
4403
|
-
Object.keys(
|
|
4404
|
-
|
|
4435
|
+
Object.keys(wt).forEach((y) => {
|
|
4436
|
+
Bt(y, wt[y]);
|
|
4405
4437
|
});
|
|
4406
|
-
const
|
|
4438
|
+
const x = () => {
|
|
4407
4439
|
let y = new Headers();
|
|
4408
4440
|
y.append("Content-type", "application/json"), y.append("X-SessionID", o);
|
|
4409
4441
|
let M = { method: "DELETE", headers: y };
|
|
4410
4442
|
fetch(`${i}/v1/player/session/player`, M).then((Se) => {
|
|
4411
|
-
window.postMessage({ type: "LogoutSuccessfull" }, window.location.href);
|
|
4443
|
+
window.postMessage({ type: "LogoutSuccessfull" }, window.location.href), Xi("logged_out", {});
|
|
4412
4444
|
});
|
|
4413
4445
|
}, R = () => (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), P = () => {
|
|
4414
|
-
|
|
4446
|
+
Wi(a);
|
|
4415
4447
|
};
|
|
4416
|
-
|
|
4448
|
+
Ar(() => () => {
|
|
4417
4449
|
});
|
|
4418
|
-
const
|
|
4419
|
-
function
|
|
4420
|
-
|
|
4450
|
+
const D = () => x(), ue = () => x();
|
|
4451
|
+
function fr(y) {
|
|
4452
|
+
Ne[y ? "unshift" : "push"](() => {
|
|
4421
4453
|
d = y, r(1, d);
|
|
4422
4454
|
});
|
|
4423
4455
|
}
|
|
@@ -4427,10 +4459,10 @@ function Ji(e, t, r) {
|
|
|
4427
4459
|
e.$$.dirty & /*endpoint, session, buttonlocation*/
|
|
4428
4460
|
193 && i && o && s && R(), e.$$.dirty & /*lang*/
|
|
4429
4461
|
256 && a && P(), e.$$.dirty & /*clientstyling, customStylingContainer*/
|
|
4430
|
-
1026 && u && d &&
|
|
4431
|
-
1026 && u && d &&
|
|
4432
|
-
2050 && l && d &&
|
|
4433
|
-
514 && h && d &&
|
|
4462
|
+
1026 && u && d && At(), e.$$.dirty & /*clientstyling, customStylingContainer*/
|
|
4463
|
+
1026 && u && d && At(d, u), e.$$.dirty & /*clientstylingurl, customStylingContainer*/
|
|
4464
|
+
2050 && l && d && zi(d, l), e.$$.dirty & /*mbsource, customStylingContainer*/
|
|
4465
|
+
514 && h && d && Zi(d, `${h}.Style`), e.$$.dirty & /*translationurl*/
|
|
4434
4466
|
4096 && f && N();
|
|
4435
4467
|
}, [
|
|
4436
4468
|
s,
|
|
@@ -4438,7 +4470,7 @@ function Ji(e, t, r) {
|
|
|
4438
4470
|
n,
|
|
4439
4471
|
B,
|
|
4440
4472
|
$,
|
|
4441
|
-
|
|
4473
|
+
x,
|
|
4442
4474
|
i,
|
|
4443
4475
|
o,
|
|
4444
4476
|
a,
|
|
@@ -4446,19 +4478,19 @@ function Ji(e, t, r) {
|
|
|
4446
4478
|
u,
|
|
4447
4479
|
l,
|
|
4448
4480
|
f,
|
|
4449
|
-
|
|
4481
|
+
D,
|
|
4450
4482
|
ue,
|
|
4451
|
-
|
|
4483
|
+
fr
|
|
4452
4484
|
];
|
|
4453
4485
|
}
|
|
4454
|
-
class
|
|
4486
|
+
class to extends Gr {
|
|
4455
4487
|
constructor(t) {
|
|
4456
|
-
super(),
|
|
4488
|
+
super(), Ur(
|
|
4457
4489
|
this,
|
|
4458
4490
|
t,
|
|
4459
|
-
|
|
4460
|
-
|
|
4461
|
-
|
|
4491
|
+
eo,
|
|
4492
|
+
Ki,
|
|
4493
|
+
Ot,
|
|
4462
4494
|
{
|
|
4463
4495
|
endpoint: 6,
|
|
4464
4496
|
session: 7,
|
|
@@ -4469,59 +4501,59 @@ class Yi extends $r {
|
|
|
4469
4501
|
clientstylingurl: 11,
|
|
4470
4502
|
translationurl: 12
|
|
4471
4503
|
},
|
|
4472
|
-
|
|
4504
|
+
Qi
|
|
4473
4505
|
);
|
|
4474
4506
|
}
|
|
4475
4507
|
get endpoint() {
|
|
4476
4508
|
return this.$$.ctx[6];
|
|
4477
4509
|
}
|
|
4478
4510
|
set endpoint(t) {
|
|
4479
|
-
this.$$set({ endpoint: t }),
|
|
4511
|
+
this.$$set({ endpoint: t }), A();
|
|
4480
4512
|
}
|
|
4481
4513
|
get session() {
|
|
4482
4514
|
return this.$$.ctx[7];
|
|
4483
4515
|
}
|
|
4484
4516
|
set session(t) {
|
|
4485
|
-
this.$$set({ session: t }),
|
|
4517
|
+
this.$$set({ session: t }), A();
|
|
4486
4518
|
}
|
|
4487
4519
|
get buttonlocation() {
|
|
4488
4520
|
return this.$$.ctx[0];
|
|
4489
4521
|
}
|
|
4490
4522
|
set buttonlocation(t) {
|
|
4491
|
-
this.$$set({ buttonlocation: t }),
|
|
4523
|
+
this.$$set({ buttonlocation: t }), A();
|
|
4492
4524
|
}
|
|
4493
4525
|
get lang() {
|
|
4494
4526
|
return this.$$.ctx[8];
|
|
4495
4527
|
}
|
|
4496
4528
|
set lang(t) {
|
|
4497
|
-
this.$$set({ lang: t }),
|
|
4529
|
+
this.$$set({ lang: t }), A();
|
|
4498
4530
|
}
|
|
4499
4531
|
get mbsource() {
|
|
4500
4532
|
return this.$$.ctx[9];
|
|
4501
4533
|
}
|
|
4502
4534
|
set mbsource(t) {
|
|
4503
|
-
this.$$set({ mbsource: t }),
|
|
4535
|
+
this.$$set({ mbsource: t }), A();
|
|
4504
4536
|
}
|
|
4505
4537
|
get clientstyling() {
|
|
4506
4538
|
return this.$$.ctx[10];
|
|
4507
4539
|
}
|
|
4508
4540
|
set clientstyling(t) {
|
|
4509
|
-
this.$$set({ clientstyling: t }),
|
|
4541
|
+
this.$$set({ clientstyling: t }), A();
|
|
4510
4542
|
}
|
|
4511
4543
|
get clientstylingurl() {
|
|
4512
4544
|
return this.$$.ctx[11];
|
|
4513
4545
|
}
|
|
4514
4546
|
set clientstylingurl(t) {
|
|
4515
|
-
this.$$set({ clientstylingurl: t }),
|
|
4547
|
+
this.$$set({ clientstylingurl: t }), A();
|
|
4516
4548
|
}
|
|
4517
4549
|
get translationurl() {
|
|
4518
4550
|
return this.$$.ctx[12];
|
|
4519
4551
|
}
|
|
4520
4552
|
set translationurl(t) {
|
|
4521
|
-
this.$$set({ translationurl: t }),
|
|
4553
|
+
this.$$set({ translationurl: t }), A();
|
|
4522
4554
|
}
|
|
4523
4555
|
}
|
|
4524
|
-
|
|
4556
|
+
Dr(to, { endpoint: {}, session: {}, buttonlocation: {}, lang: {}, mbsource: {}, clientstyling: {}, clientstylingurl: {}, translationurl: {} }, [], [], !0);
|
|
4525
4557
|
export {
|
|
4526
|
-
|
|
4558
|
+
to as default
|
|
4527
4559
|
};
|